diff --git a/README.md b/README.md index 7651b9b..c128dd4 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Setup dependencies via `yarn install`. Add the required environment variables (e.g. your Daily API key) for the demo being used. Each demo's README will list the required environment variables to run it locally. -Run an example via `yarn workspace @dailyjs/basic-call dev` (replacing `basic-call` with the name of the demo). +Run an example via `yarn workspace @custom/basic-call dev` (replacing `basic-call` with the name of the demo). Please note: these demos are intended as educational resources for using the Daily platform as well as showcasing common usage patterns and best practices. That said, they are not intended to be used as production ready applications. @@ -18,7 +18,7 @@ Please note: these demos are intended as educational resources for using the Dai ## Contents -## [Daily JS (Web)](./dailyjs/) +## [Daily JS (Web)](./custom/) Examples that showcase the Daily CallObject using our Javascript library diff --git a/dailyjs/.gitignore b/custom/.gitignore similarity index 100% rename from dailyjs/.gitignore rename to custom/.gitignore diff --git a/dailyjs/README.md b/custom/README.md similarity index 92% rename from dailyjs/README.md rename to custom/README.md index 81f366e..31c48a8 100644 --- a/dailyjs/README.md +++ b/custom/README.md @@ -30,7 +30,7 @@ Demonstrates using manual track management to support larger call sizes We recommend starting with the [basic call](./basic-call) example, showcasing the common flow of a call Daily call, device management and error handling. -Run an examples with `yarn workspace @dailyjs/[demo-name] dev` (replacing `[demo-name]` with the name of the demo you'd like to run e.g. `basic-call`. +Run an examples with `yarn workspace @custom/[demo-name] dev` (replacing `[demo-name]` with the name of the demo you'd like to run e.g. `basic-call`. - Please ensure your Daily rooms are setup to use [web sockets](https://docs.daily.co/reference#domain-configuration) - Follow the instructions within each demo first, making sure to set all the necassary local environment variables etc diff --git a/dailyjs/basic-call/.babelrc b/custom/basic-call/.babelrc similarity index 100% rename from dailyjs/basic-call/.babelrc rename to custom/basic-call/.babelrc diff --git a/dailyjs/basic-call/.gitignore b/custom/basic-call/.gitignore similarity index 100% rename from dailyjs/basic-call/.gitignore rename to custom/basic-call/.gitignore diff --git a/dailyjs/basic-call/README.md b/custom/basic-call/README.md similarity index 94% rename from dailyjs/basic-call/README.md rename to custom/basic-call/README.md index 3fde13d..b8abd9a 100644 --- a/dailyjs/basic-call/README.md +++ b/custom/basic-call/README.md @@ -4,7 +4,7 @@ ### Live example -**[See it in action here ➡️](https://dailyjs-basic-call.vercel.app)** +**[See it in action here ➡️](https://custom-basic-call.vercel.app)** --- @@ -28,7 +28,7 @@ mv env.example .env.local # from project root... yarn -yarn workspace @dailyjs/basic-call dev +yarn workspace @custom/basic-call dev ``` ## How does this example work? diff --git a/dailyjs/basic-call/components/App/App.js b/custom/basic-call/components/App/App.js similarity index 84% rename from dailyjs/basic-call/components/App/App.js rename to custom/basic-call/components/App/App.js index fab2cfb..ecf4378 100644 --- a/dailyjs/basic-call/components/App/App.js +++ b/custom/basic-call/components/App/App.js @@ -1,7 +1,7 @@ import React, { useMemo } from 'react'; -import ExpiryTimer from '@dailyjs/shared/components/ExpiryTimer'; -import { useCallState } from '@dailyjs/shared/contexts/CallProvider'; -import { useCallUI } from '@dailyjs/shared/hooks/useCallUI'; +import ExpiryTimer from '@custom/shared/components/ExpiryTimer'; +import { useCallState } from '@custom/shared/contexts/CallProvider'; +import { useCallUI } from '@custom/shared/hooks/useCallUI'; import PropTypes from 'prop-types'; import Room from '../Call/Room'; diff --git a/dailyjs/basic-call/components/App/Asides.js b/custom/basic-call/components/App/Asides.js similarity index 65% rename from dailyjs/basic-call/components/App/Asides.js rename to custom/basic-call/components/App/Asides.js index f78b4c8..be0e418 100644 --- a/dailyjs/basic-call/components/App/Asides.js +++ b/custom/basic-call/components/App/Asides.js @@ -1,6 +1,6 @@ import React from 'react'; -import { PeopleAside } from '@dailyjs/shared/components/Aside/PeopleAside'; -import { useUIState } from '@dailyjs/shared/contexts/UIStateProvider'; +import { PeopleAside } from '@custom/shared/components/Aside/PeopleAside'; +import { useUIState } from '@custom/shared/contexts/UIStateProvider'; export const Asides = () => { const { asides } = useUIState(); diff --git a/dailyjs/basic-call/components/App/Modals.js b/custom/basic-call/components/App/Modals.js similarity index 62% rename from dailyjs/basic-call/components/App/Modals.js rename to custom/basic-call/components/App/Modals.js index 264ddd7..ba5c27c 100644 --- a/dailyjs/basic-call/components/App/Modals.js +++ b/custom/basic-call/components/App/Modals.js @@ -1,6 +1,6 @@ import React from 'react'; -import DeviceSelectModal from '@dailyjs/shared/components/DeviceSelectModal/DeviceSelectModal'; -import { useUIState } from '@dailyjs/shared/contexts/UIStateProvider'; +import DeviceSelectModal from '@custom/shared/components/DeviceSelectModal/DeviceSelectModal'; +import { useUIState } from '@custom/shared/contexts/UIStateProvider'; export const Modals = () => { const { modals } = useUIState(); diff --git a/dailyjs/basic-call/components/App/index.js b/custom/basic-call/components/App/index.js similarity index 100% rename from dailyjs/basic-call/components/App/index.js rename to custom/basic-call/components/App/index.js diff --git a/dailyjs/basic-call/components/Call/Container.js b/custom/basic-call/components/Call/Container.js similarity index 76% rename from dailyjs/basic-call/components/Call/Container.js rename to custom/basic-call/components/Call/Container.js index bfda121..22e0d08 100644 --- a/dailyjs/basic-call/components/Call/Container.js +++ b/custom/basic-call/components/Call/Container.js @@ -1,8 +1,8 @@ import React, { useMemo } from 'react'; -import { Audio } from '@dailyjs/shared/components/Audio'; -import { BasicTray } from '@dailyjs/shared/components/Tray'; -import { useParticipants } from '@dailyjs/shared/contexts/ParticipantsProvider'; -import useJoinSound from '@dailyjs/shared/hooks/useJoinSound'; +import { Audio } from '@custom/shared/components/Audio'; +import { BasicTray } from '@custom/shared/components/Tray'; +import { useParticipants } from '@custom/shared/contexts/ParticipantsProvider'; +import useJoinSound from '@custom/shared/hooks/useJoinSound'; import PropTypes from 'prop-types'; import { WaitingRoom } from './WaitingRoom'; diff --git a/dailyjs/basic-call/components/Call/Header.js b/custom/basic-call/components/Call/Header.js similarity index 85% rename from dailyjs/basic-call/components/Call/Header.js rename to custom/basic-call/components/Call/Header.js index 7412a5d..bde04c5 100644 --- a/dailyjs/basic-call/components/Call/Header.js +++ b/custom/basic-call/components/Call/Header.js @@ -1,7 +1,7 @@ import React, { useMemo } from 'react'; -import HeaderCapsule from '@dailyjs/shared/components/HeaderCapsule'; -import { useParticipants } from '@dailyjs/shared/contexts/ParticipantsProvider'; -import { useUIState } from '@dailyjs/shared/contexts/UIStateProvider'; +import HeaderCapsule from '@custom/shared/components/HeaderCapsule'; +import { useParticipants } from '@custom/shared/contexts/ParticipantsProvider'; +import { useUIState } from '@custom/shared/contexts/UIStateProvider'; export const Header = () => { const { participantCount } = useParticipants(); diff --git a/dailyjs/basic-call/components/Call/Room.js b/custom/basic-call/components/Call/Room.js similarity index 79% rename from dailyjs/basic-call/components/Call/Room.js rename to custom/basic-call/components/Call/Room.js index 7f8fffb..aa4cfe6 100644 --- a/dailyjs/basic-call/components/Call/Room.js +++ b/custom/basic-call/components/Call/Room.js @@ -1,5 +1,5 @@ import React from 'react'; -import VideoContainer from '@dailyjs/shared/components/VideoContainer/VideoContainer'; +import VideoContainer from '@custom/shared/components/VideoContainer/VideoContainer'; import { Container } from './Container'; import { Header } from './Header'; diff --git a/dailyjs/basic-call/components/Call/VideoGrid.js b/custom/basic-call/components/Call/VideoGrid.js similarity index 95% rename from dailyjs/basic-call/components/Call/VideoGrid.js rename to custom/basic-call/components/Call/VideoGrid.js index 7f66798..e71ff6d 100644 --- a/dailyjs/basic-call/components/Call/VideoGrid.js +++ b/custom/basic-call/components/Call/VideoGrid.js @@ -1,7 +1,7 @@ import React, { useState, useMemo, useEffect, useRef } from 'react'; -import Tile from '@dailyjs/shared/components/Tile'; -import { DEFAULT_ASPECT_RATIO } from '@dailyjs/shared/constants'; -import { useParticipants } from '@dailyjs/shared/contexts/ParticipantsProvider'; +import Tile from '@custom/shared/components/Tile'; +import { DEFAULT_ASPECT_RATIO } from '@custom/shared/constants'; +import { useParticipants } from '@custom/shared/contexts/ParticipantsProvider'; import { useDeepCompareMemo } from 'use-deep-compare'; /** diff --git a/dailyjs/basic-call/components/Call/WaitingRoom.js b/custom/basic-call/components/Call/WaitingRoom.js similarity index 73% rename from dailyjs/basic-call/components/Call/WaitingRoom.js rename to custom/basic-call/components/Call/WaitingRoom.js index c4b2605..4266d44 100644 --- a/dailyjs/basic-call/components/Call/WaitingRoom.js +++ b/custom/basic-call/components/Call/WaitingRoom.js @@ -2,8 +2,8 @@ import React from 'react'; import { WaitingRoomModal, WaitingRoomNotification, -} from '@dailyjs/shared/components/WaitingRoom'; -import { useWaitingRoom } from '@dailyjs/shared/contexts/WaitingRoomProvider'; +} from '@custom/shared/components/WaitingRoom'; +import { useWaitingRoom } from '@custom/shared/contexts/WaitingRoomProvider'; export const WaitingRoom = () => { const { setShowModal, showModal } = useWaitingRoom(); diff --git a/dailyjs/basic-call/components/Prejoin/CreatingRoom.js b/custom/basic-call/components/Prejoin/CreatingRoom.js similarity index 92% rename from dailyjs/basic-call/components/Prejoin/CreatingRoom.js rename to custom/basic-call/components/Prejoin/CreatingRoom.js index 4973120..aeb8100 100644 --- a/dailyjs/basic-call/components/Prejoin/CreatingRoom.js +++ b/custom/basic-call/components/Prejoin/CreatingRoom.js @@ -1,7 +1,7 @@ import React, { useState, useEffect } from 'react'; -import { Card, CardHeader, CardBody } from '@dailyjs/shared/components/Card'; -import Loader from '@dailyjs/shared/components/Loader'; -import { Well } from '@dailyjs/shared/components/Well'; +import { Card, CardHeader, CardBody } from '@custom/shared/components/Card'; +import Loader from '@custom/shared/components/Loader'; +import { Well } from '@custom/shared/components/Well'; import PropTypes from 'prop-types'; export const CreatingRoom = ({ onCreated }) => { diff --git a/dailyjs/basic-call/components/Prejoin/Intro.js b/custom/basic-call/components/Prejoin/Intro.js similarity index 88% rename from dailyjs/basic-call/components/Prejoin/Intro.js rename to custom/basic-call/components/Prejoin/Intro.js index c281faf..0f0eaf8 100644 --- a/dailyjs/basic-call/components/Prejoin/Intro.js +++ b/custom/basic-call/components/Prejoin/Intro.js @@ -1,14 +1,14 @@ import React, { useEffect, useState } from 'react'; -import Button from '@dailyjs/shared/components/Button'; +import Button from '@custom/shared/components/Button'; import { Card, CardBody, CardFooter, CardHeader, -} from '@dailyjs/shared/components/Card'; -import Field from '@dailyjs/shared/components/Field'; -import { TextInput, BooleanInput } from '@dailyjs/shared/components/Input'; -import Well from '@dailyjs/shared/components/Well'; +} from '@custom/shared/components/Card'; +import Field from '@custom/shared/components/Field'; +import { TextInput, BooleanInput } from '@custom/shared/components/Input'; +import Well from '@custom/shared/components/Well'; import PropTypes from 'prop-types'; /** diff --git a/dailyjs/basic-call/components/Prejoin/NotConfigured.js b/custom/basic-call/components/Prejoin/NotConfigured.js similarity index 92% rename from dailyjs/basic-call/components/Prejoin/NotConfigured.js rename to custom/basic-call/components/Prejoin/NotConfigured.js index 75a32fd..7c379ed 100644 --- a/dailyjs/basic-call/components/Prejoin/NotConfigured.js +++ b/custom/basic-call/components/Prejoin/NotConfigured.js @@ -1,5 +1,5 @@ import React from 'react'; -import { Card, CardBody, CardHeader } from '@dailyjs/shared/components/Card'; +import { Card, CardBody, CardHeader } from '@custom/shared/components/Card'; export const NotConfigured = () => ( diff --git a/dailyjs/basic-call/env.example b/custom/basic-call/env.example similarity index 100% rename from dailyjs/basic-call/env.example rename to custom/basic-call/env.example diff --git a/dailyjs/basic-call/image.png b/custom/basic-call/image.png similarity index 100% rename from dailyjs/basic-call/image.png rename to custom/basic-call/image.png diff --git a/dailyjs/basic-call/index.js b/custom/basic-call/index.js similarity index 100% rename from dailyjs/basic-call/index.js rename to custom/basic-call/index.js diff --git a/dailyjs/basic-call/next.config.js b/custom/basic-call/next.config.js similarity index 74% rename from dailyjs/basic-call/next.config.js rename to custom/basic-call/next.config.js index d054cbd..81f29cd 100644 --- a/dailyjs/basic-call/next.config.js +++ b/custom/basic-call/next.config.js @@ -1,5 +1,5 @@ const withPlugins = require('next-compose-plugins'); -const withTM = require('next-transpile-modules')(['@dailyjs/shared']); +const withTM = require('next-transpile-modules')(['@custom/shared']); const packageJson = require('./package.json'); diff --git a/dailyjs/basic-call/package.json b/custom/basic-call/package.json similarity index 87% rename from dailyjs/basic-call/package.json rename to custom/basic-call/package.json index 75705bd..f82188c 100644 --- a/dailyjs/basic-call/package.json +++ b/custom/basic-call/package.json @@ -1,5 +1,5 @@ { - "name": "@dailyjs/basic-call", + "name": "@custom/basic-call", "description": "Basic Call Example", "version": "0.1.0", "private": true, @@ -10,7 +10,7 @@ "lint": "next lint" }, "dependencies": { - "@dailyjs/shared": "*", + "@custom/shared": "*", "next": "^11.1.2", "pluralize": "^8.0.0" }, diff --git a/dailyjs/basic-call/pages/_app.js b/custom/basic-call/pages/_app.js similarity index 91% rename from dailyjs/basic-call/pages/_app.js rename to custom/basic-call/pages/_app.js index 3453010..d8a7a82 100644 --- a/dailyjs/basic-call/pages/_app.js +++ b/custom/basic-call/pages/_app.js @@ -1,5 +1,5 @@ import React from 'react'; -import GlobalStyle from '@dailyjs/shared/components/GlobalStyle'; +import GlobalStyle from '@custom/shared/components/GlobalStyle'; import Head from 'next/head'; import PropTypes from 'prop-types'; diff --git a/dailyjs/basic-call/pages/_document.js b/custom/basic-call/pages/_document.js similarity index 100% rename from dailyjs/basic-call/pages/_document.js rename to custom/basic-call/pages/_document.js diff --git a/dailyjs/basic-call/pages/api/createRoom.js b/custom/basic-call/pages/api/createRoom.js similarity index 100% rename from dailyjs/basic-call/pages/api/createRoom.js rename to custom/basic-call/pages/api/createRoom.js diff --git a/dailyjs/basic-call/pages/api/token.js b/custom/basic-call/pages/api/token.js similarity index 100% rename from dailyjs/basic-call/pages/api/token.js rename to custom/basic-call/pages/api/token.js diff --git a/dailyjs/basic-call/pages/index.js b/custom/basic-call/pages/index.js similarity index 88% rename from dailyjs/basic-call/pages/index.js rename to custom/basic-call/pages/index.js index e6107fb..6ba92ec 100644 --- a/dailyjs/basic-call/pages/index.js +++ b/custom/basic-call/pages/index.js @@ -1,11 +1,11 @@ import React, { useState, useCallback } from 'react'; -import { CallProvider } from '@dailyjs/shared/contexts/CallProvider'; -import { MediaDeviceProvider } from '@dailyjs/shared/contexts/MediaDeviceProvider'; -import { ParticipantsProvider } from '@dailyjs/shared/contexts/ParticipantsProvider'; -import { TracksProvider } from '@dailyjs/shared/contexts/TracksProvider'; -import { UIStateProvider } from '@dailyjs/shared/contexts/UIStateProvider'; -import { WaitingRoomProvider } from '@dailyjs/shared/contexts/WaitingRoomProvider'; -import getDemoProps from '@dailyjs/shared/lib/demoProps'; +import { CallProvider } from '@custom/shared/contexts/CallProvider'; +import { MediaDeviceProvider } from '@custom/shared/contexts/MediaDeviceProvider'; +import { ParticipantsProvider } from '@custom/shared/contexts/ParticipantsProvider'; +import { TracksProvider } from '@custom/shared/contexts/TracksProvider'; +import { UIStateProvider } from '@custom/shared/contexts/UIStateProvider'; +import { WaitingRoomProvider } from '@custom/shared/contexts/WaitingRoomProvider'; +import getDemoProps from '@custom/shared/lib/demoProps'; import PropTypes from 'prop-types'; import App from '../components/App'; import CreatingRoom from '../components/Prejoin/CreatingRoom'; diff --git a/dailyjs/basic-call/pages/not-found.js b/custom/basic-call/pages/not-found.js similarity index 89% rename from dailyjs/basic-call/pages/not-found.js rename to custom/basic-call/pages/not-found.js index 6a7b1f6..1d25fb7 100644 --- a/dailyjs/basic-call/pages/not-found.js +++ b/custom/basic-call/pages/not-found.js @@ -1,5 +1,5 @@ import React from 'react'; -import MessageCard from '@dailyjs/shared/components/MessageCard'; +import MessageCard from '@custom/shared/components/MessageCard'; export default function RoomNotFound() { return ( diff --git a/dailyjs/basic-call/public/assets/daily-logo-dark.svg b/custom/basic-call/public/assets/daily-logo-dark.svg similarity index 100% rename from dailyjs/basic-call/public/assets/daily-logo-dark.svg rename to custom/basic-call/public/assets/daily-logo-dark.svg diff --git a/dailyjs/basic-call/public/assets/daily-logo.svg b/custom/basic-call/public/assets/daily-logo.svg similarity index 100% rename from dailyjs/basic-call/public/assets/daily-logo.svg rename to custom/basic-call/public/assets/daily-logo.svg diff --git a/dailyjs/basic-call/public/assets/join.mp3 b/custom/basic-call/public/assets/join.mp3 similarity index 100% rename from dailyjs/basic-call/public/assets/join.mp3 rename to custom/basic-call/public/assets/join.mp3 diff --git a/dailyjs/basic-call/public/assets/message.mp3 b/custom/basic-call/public/assets/message.mp3 similarity index 100% rename from dailyjs/basic-call/public/assets/message.mp3 rename to custom/basic-call/public/assets/message.mp3 diff --git a/dailyjs/basic-call/public/assets/pattern-bg.png b/custom/basic-call/public/assets/pattern-bg.png similarity index 100% rename from dailyjs/basic-call/public/assets/pattern-bg.png rename to custom/basic-call/public/assets/pattern-bg.png diff --git a/dailyjs/flying-emojis/.babelrc b/custom/flying-emojis/.babelrc similarity index 100% rename from dailyjs/flying-emojis/.babelrc rename to custom/flying-emojis/.babelrc diff --git a/dailyjs/flying-emojis/README.md b/custom/flying-emojis/README.md similarity index 89% rename from dailyjs/flying-emojis/README.md rename to custom/flying-emojis/README.md index 4c7c69d..c46f833 100644 --- a/dailyjs/flying-emojis/README.md +++ b/custom/flying-emojis/README.md @@ -4,7 +4,7 @@ ### Live example -**[See it in action here ➡️](https://dailyjs-flying-emojis.vercel.app)** +**[See it in action here ➡️](https://custom-flying-emojis.vercel.app)** --- @@ -23,7 +23,7 @@ Please note: this demo is not currently mobile optimised mv env.example .env.local yarn -yarn workspace @dailyjs/flying-emojis dev +yarn workspace @custom/flying-emojis dev ``` ## Deploy your own on Vercel diff --git a/dailyjs/flying-emojis/components/App/App.js b/custom/flying-emojis/components/App/App.js similarity index 80% rename from dailyjs/flying-emojis/components/App/App.js rename to custom/flying-emojis/components/App/App.js index e006832..88c0bec 100644 --- a/dailyjs/flying-emojis/components/App/App.js +++ b/custom/flying-emojis/components/App/App.js @@ -1,5 +1,5 @@ import React from 'react'; -import App from '@dailyjs/basic-call/components/App'; +import App from '@custom/basic-call/components/App'; import FlyingEmojiOverlay from '../FlyingEmojis/FlyingEmojisOverlay'; export const AppWithEmojis = () => ( diff --git a/dailyjs/flying-emojis/components/App/index.js b/custom/flying-emojis/components/App/index.js similarity index 100% rename from dailyjs/flying-emojis/components/App/index.js rename to custom/flying-emojis/components/App/index.js diff --git a/dailyjs/flying-emojis/components/FlyingEmojis/FlyingEmojisOverlay.js b/custom/flying-emojis/components/FlyingEmojis/FlyingEmojisOverlay.js similarity index 98% rename from dailyjs/flying-emojis/components/FlyingEmojis/FlyingEmojisOverlay.js rename to custom/flying-emojis/components/FlyingEmojis/FlyingEmojisOverlay.js index 68f0ff9..35b87d7 100644 --- a/dailyjs/flying-emojis/components/FlyingEmojis/FlyingEmojisOverlay.js +++ b/custom/flying-emojis/components/FlyingEmojis/FlyingEmojisOverlay.js @@ -1,5 +1,5 @@ import React, { useEffect, useRef, useCallback } from 'react'; -import { useCallState } from '@dailyjs/shared/contexts/CallProvider'; +import { useCallState } from '@custom/shared/contexts/CallProvider'; const EMOJI_MAP = { fire: '🔥', diff --git a/dailyjs/flying-emojis/components/FlyingEmojis/index.js b/custom/flying-emojis/components/FlyingEmojis/index.js similarity index 100% rename from dailyjs/flying-emojis/components/FlyingEmojis/index.js rename to custom/flying-emojis/components/FlyingEmojis/index.js diff --git a/dailyjs/flying-emojis/components/Tray/Tray.js b/custom/flying-emojis/components/Tray/Tray.js similarity index 91% rename from dailyjs/flying-emojis/components/Tray/Tray.js rename to custom/flying-emojis/components/Tray/Tray.js index 113de3d..2ee605f 100644 --- a/dailyjs/flying-emojis/components/Tray/Tray.js +++ b/custom/flying-emojis/components/Tray/Tray.js @@ -1,8 +1,8 @@ import React, { useEffect, useState } from 'react'; -import Button from '@dailyjs/shared/components/Button'; -import { TrayButton } from '@dailyjs/shared/components/Tray'; -import { ReactComponent as IconStar } from '@dailyjs/shared/icons/star-md.svg'; +import Button from '@custom/shared/components/Button'; +import { TrayButton } from '@custom/shared/components/Tray'; +import { ReactComponent as IconStar } from '@custom/shared/icons/star-md.svg'; const COOLDOWN = 1500; diff --git a/dailyjs/flying-emojis/components/Tray/index.js b/custom/flying-emojis/components/Tray/index.js similarity index 100% rename from dailyjs/flying-emojis/components/Tray/index.js rename to custom/flying-emojis/components/Tray/index.js diff --git a/dailyjs/flying-emojis/env.example b/custom/flying-emojis/env.example similarity index 100% rename from dailyjs/flying-emojis/env.example rename to custom/flying-emojis/env.example diff --git a/dailyjs/flying-emojis/image.png b/custom/flying-emojis/image.png similarity index 100% rename from dailyjs/flying-emojis/image.png rename to custom/flying-emojis/image.png diff --git a/dailyjs/flying-emojis/index.js b/custom/flying-emojis/index.js similarity index 100% rename from dailyjs/flying-emojis/index.js rename to custom/flying-emojis/index.js diff --git a/dailyjs/live-fitness/next.config.js b/custom/flying-emojis/next.config.js similarity index 84% rename from dailyjs/live-fitness/next.config.js rename to custom/flying-emojis/next.config.js index 9a0a6ee..9140e28 100644 --- a/dailyjs/live-fitness/next.config.js +++ b/custom/flying-emojis/next.config.js @@ -1,7 +1,7 @@ const withPlugins = require('next-compose-plugins'); const withTM = require('next-transpile-modules')([ - '@dailyjs/shared', - '@dailyjs/basic-call', + '@custom/shared', + '@custom/basic-call', ]); const packageJson = require('./package.json'); diff --git a/dailyjs/flying-emojis/package.json b/custom/flying-emojis/package.json similarity index 83% rename from dailyjs/flying-emojis/package.json rename to custom/flying-emojis/package.json index a084b01..a3244d3 100644 --- a/dailyjs/flying-emojis/package.json +++ b/custom/flying-emojis/package.json @@ -1,5 +1,5 @@ { - "name": "@dailyjs/flying-emojis", + "name": "@custom/flying-emojis", "description": "Basic Call + Flying Emojis", "version": "0.1.0", "private": true, @@ -10,8 +10,8 @@ "lint": "next lint" }, "dependencies": { - "@dailyjs/basic-call": "*", - "@dailyjs/shared": "*", + "@custom/basic-call": "*", + "@custom/shared": "*", "next": "^11.0.0", "pluralize": "^8.0.0", "react": "^17.0.2", diff --git a/dailyjs/flying-emojis/pages/_app.js b/custom/flying-emojis/pages/_app.js similarity index 81% rename from dailyjs/flying-emojis/pages/_app.js rename to custom/flying-emojis/pages/_app.js index 16a9742..8f9ab26 100644 --- a/dailyjs/flying-emojis/pages/_app.js +++ b/custom/flying-emojis/pages/_app.js @@ -1,5 +1,5 @@ import React from 'react'; -import App from '@dailyjs/basic-call/pages/_app'; +import App from '@custom/basic-call/pages/_app'; import AppWithEmojis from '../components/App'; import Tray from '../components/Tray'; diff --git a/dailyjs/flying-emojis/pages/api b/custom/flying-emojis/pages/api similarity index 100% rename from dailyjs/flying-emojis/pages/api rename to custom/flying-emojis/pages/api diff --git a/dailyjs/flying-emojis/pages/index.js b/custom/flying-emojis/pages/index.js similarity index 63% rename from dailyjs/flying-emojis/pages/index.js rename to custom/flying-emojis/pages/index.js index d25e77e..84a3f53 100644 --- a/dailyjs/flying-emojis/pages/index.js +++ b/custom/flying-emojis/pages/index.js @@ -1,5 +1,5 @@ -import Index from '@dailyjs/basic-call/pages'; -import getDemoProps from '@dailyjs/shared/lib/demoProps'; +import Index from '@custom/basic-call/pages'; +import getDemoProps from '@custom/shared/lib/demoProps'; export async function getStaticProps() { const defaultProps = getDemoProps(); diff --git a/dailyjs/flying-emojis/public/assets/daily-logo-dark.svg b/custom/flying-emojis/public/assets/daily-logo-dark.svg similarity index 100% rename from dailyjs/flying-emojis/public/assets/daily-logo-dark.svg rename to custom/flying-emojis/public/assets/daily-logo-dark.svg diff --git a/dailyjs/flying-emojis/public/assets/daily-logo.svg b/custom/flying-emojis/public/assets/daily-logo.svg similarity index 100% rename from dailyjs/flying-emojis/public/assets/daily-logo.svg rename to custom/flying-emojis/public/assets/daily-logo.svg diff --git a/dailyjs/flying-emojis/public/assets/join.mp3 b/custom/flying-emojis/public/assets/join.mp3 similarity index 100% rename from dailyjs/flying-emojis/public/assets/join.mp3 rename to custom/flying-emojis/public/assets/join.mp3 diff --git a/dailyjs/flying-emojis/public/assets/message.mp3 b/custom/flying-emojis/public/assets/message.mp3 similarity index 100% rename from dailyjs/flying-emojis/public/assets/message.mp3 rename to custom/flying-emojis/public/assets/message.mp3 diff --git a/dailyjs/flying-emojis/public/assets/pattern-bg.png b/custom/flying-emojis/public/assets/pattern-bg.png similarity index 100% rename from dailyjs/flying-emojis/public/assets/pattern-bg.png rename to custom/flying-emojis/public/assets/pattern-bg.png diff --git a/dailyjs/live-fitness/.babelrc b/custom/live-fitness/.babelrc similarity index 100% rename from dailyjs/live-fitness/.babelrc rename to custom/live-fitness/.babelrc diff --git a/dailyjs/live-fitness/README.md b/custom/live-fitness/README.md similarity index 100% rename from dailyjs/live-fitness/README.md rename to custom/live-fitness/README.md diff --git a/dailyjs/live-fitness/components/App/App.js b/custom/live-fitness/components/App/App.js similarity index 84% rename from dailyjs/live-fitness/components/App/App.js rename to custom/live-fitness/components/App/App.js index 393d2ad..2d44366 100644 --- a/dailyjs/live-fitness/components/App/App.js +++ b/custom/live-fitness/components/App/App.js @@ -1,6 +1,6 @@ import React from 'react'; -import App from '@dailyjs/basic-call/components/App'; +import App from '@custom/basic-call/components/App'; import { RecordingProvider } from '../../contexts/RecordingProvider'; // Extend our basic call app component with the recording context diff --git a/dailyjs/live-fitness/components/App/index.js b/custom/live-fitness/components/App/index.js similarity index 100% rename from dailyjs/live-fitness/components/App/index.js rename to custom/live-fitness/components/App/index.js diff --git a/dailyjs/live-fitness/components/Tray/Tray.js b/custom/live-fitness/components/Tray/Tray.js similarity index 81% rename from dailyjs/live-fitness/components/Tray/Tray.js rename to custom/live-fitness/components/Tray/Tray.js index c26f253..2c12cae 100644 --- a/dailyjs/live-fitness/components/Tray/Tray.js +++ b/custom/live-fitness/components/Tray/Tray.js @@ -1,8 +1,8 @@ import React, { useEffect } from 'react'; -import { TrayButton } from '@dailyjs/shared/components/Tray'; -import { useUIState } from '@dailyjs/shared/contexts/UIStateProvider'; -import { ReactComponent as IconRecord } from '@dailyjs/shared/icons/record-md.svg'; +import { TrayButton } from '@custom/shared/components/Tray'; +import { useUIState } from '@custom/shared/contexts/UIStateProvider'; +import { ReactComponent as IconRecord } from '@custom/shared/icons/record-md.svg'; import { RECORDING_ERROR, diff --git a/dailyjs/live-fitness/components/Tray/index.js b/custom/live-fitness/components/Tray/index.js similarity index 100% rename from dailyjs/live-fitness/components/Tray/index.js rename to custom/live-fitness/components/Tray/index.js diff --git a/dailyjs/live-fitness/env.example b/custom/live-fitness/env.example similarity index 100% rename from dailyjs/live-fitness/env.example rename to custom/live-fitness/env.example diff --git a/dailyjs/pagination/next.config.js b/custom/live-fitness/next.config.js similarity index 84% rename from dailyjs/pagination/next.config.js rename to custom/live-fitness/next.config.js index 9a0a6ee..9140e28 100644 --- a/dailyjs/pagination/next.config.js +++ b/custom/live-fitness/next.config.js @@ -1,7 +1,7 @@ const withPlugins = require('next-compose-plugins'); const withTM = require('next-transpile-modules')([ - '@dailyjs/shared', - '@dailyjs/basic-call', + '@custom/shared', + '@custom/basic-call', ]); const packageJson = require('./package.json'); diff --git a/dailyjs/live-fitness/package.json b/custom/live-fitness/package.json similarity index 83% rename from dailyjs/live-fitness/package.json rename to custom/live-fitness/package.json index 56770d8..dab6395 100644 --- a/dailyjs/live-fitness/package.json +++ b/custom/live-fitness/package.json @@ -1,5 +1,5 @@ { - "name": "@dailyjs/live-fitness", + "name": "@custom/live-fitness", "description": "Live Fitness", "version": "0.1.0", "private": true, @@ -10,8 +10,8 @@ "lint": "next lint" }, "dependencies": { - "@dailyjs/shared": "*", - "@dailyjs/basic-call": "*", + "@custom/shared": "*", + "@custom/basic-call": "*", "next": "^11.0.0", "pluralize": "^8.0.0", "react": "^17.0.2", diff --git a/dailyjs/recording/pages/_app.js b/custom/live-fitness/pages/_app.js similarity index 86% rename from dailyjs/recording/pages/_app.js rename to custom/live-fitness/pages/_app.js index df733a8..7636341 100644 --- a/dailyjs/recording/pages/_app.js +++ b/custom/live-fitness/pages/_app.js @@ -1,5 +1,5 @@ import React from 'react'; -import App from '@dailyjs/basic-call/pages/_app'; +import App from '@custom/basic-call/pages/_app'; import AppWithRecording from '../components/App'; import { RecordingModal } from '../components/RecordingModal'; diff --git a/dailyjs/live-fitness/pages/api b/custom/live-fitness/pages/api similarity index 100% rename from dailyjs/live-fitness/pages/api rename to custom/live-fitness/pages/api diff --git a/dailyjs/recording/pages/index.js b/custom/live-fitness/pages/index.js similarity index 67% rename from dailyjs/recording/pages/index.js rename to custom/live-fitness/pages/index.js index 2668138..f61b429 100644 --- a/dailyjs/recording/pages/index.js +++ b/custom/live-fitness/pages/index.js @@ -1,5 +1,5 @@ -import Index from '@dailyjs/basic-call/pages'; -import getDemoProps from '@dailyjs/shared/lib/demoProps'; +import Index from '@custom/basic-call/pages'; +import getDemoProps from '@custom/shared/lib/demoProps'; export async function getStaticProps() { const defaultProps = getDemoProps(); diff --git a/dailyjs/live-fitness/public b/custom/live-fitness/public similarity index 100% rename from dailyjs/live-fitness/public rename to custom/live-fitness/public diff --git a/dailyjs/pagination/.babelrc b/custom/pagination/.babelrc similarity index 100% rename from dailyjs/pagination/.babelrc rename to custom/pagination/.babelrc diff --git a/dailyjs/pagination/README.md b/custom/pagination/README.md similarity index 96% rename from dailyjs/pagination/README.md rename to custom/pagination/README.md index 89272f3..c4753cf 100644 --- a/dailyjs/pagination/README.md +++ b/custom/pagination/README.md @@ -4,7 +4,7 @@ ### Live example -**[See it in action here ➡️](https://dailyjs-pagination.vercel.app)** +**[See it in action here ➡️](https://custom-pagination.vercel.app)** --- @@ -22,7 +22,7 @@ Please note: this demo is not currently mobile optimised mv env.example .env.local yarn -yarn workspace @dailyjs/live-streaming dev +yarn workspace @custom/live-streaming dev ``` Note: this example uses an additional env `MANUAL_TRACK_SUBS=1` that will disable [automatic track management](https://docs.daily.co/reference#%EF%B8%8F-setsubscribetotracksautomatically). diff --git a/dailyjs/pagination/components/App/App.js b/custom/pagination/components/App/App.js similarity index 71% rename from dailyjs/pagination/components/App/App.js rename to custom/pagination/components/App/App.js index 317d450..4f873b8 100644 --- a/dailyjs/pagination/components/App/App.js +++ b/custom/pagination/components/App/App.js @@ -1,7 +1,7 @@ import React from 'react'; -import App from '@dailyjs/basic-call/components/App'; -import Room from '@dailyjs/basic-call/components/Room'; +import App from '@custom/basic-call/components/App'; +import Room from '@custom/basic-call/components/Room'; import PaginatedVideoGrid from '../PaginatedVideoGrid'; export const AppWithPagination = () => ( diff --git a/dailyjs/pagination/components/App/index.js b/custom/pagination/components/App/index.js similarity index 100% rename from dailyjs/pagination/components/App/index.js rename to custom/pagination/components/App/index.js diff --git a/dailyjs/pagination/components/PaginatedVideoGrid/PaginatedVideoGrid.js b/custom/pagination/components/PaginatedVideoGrid/PaginatedVideoGrid.js similarity index 93% rename from dailyjs/pagination/components/PaginatedVideoGrid/PaginatedVideoGrid.js rename to custom/pagination/components/PaginatedVideoGrid/PaginatedVideoGrid.js index 4d3661e..20b5cbe 100644 --- a/dailyjs/pagination/components/PaginatedVideoGrid/PaginatedVideoGrid.js +++ b/custom/pagination/components/PaginatedVideoGrid/PaginatedVideoGrid.js @@ -5,19 +5,19 @@ import React, { useEffect, useState, } from 'react'; -import { Button } from '@dailyjs/shared/components/Button'; -import Tile from '@dailyjs/shared/components/Tile'; +import { Button } from '@custom/shared/components/Button'; +import Tile from '@custom/shared/components/Tile'; import { DEFAULT_ASPECT_RATIO, MEETING_STATE_JOINED, -} from '@dailyjs/shared/constants'; -import { useCallState } from '@dailyjs/shared/contexts/CallProvider'; -import { useParticipants } from '@dailyjs/shared/contexts/ParticipantsProvider'; -import { isLocalId } from '@dailyjs/shared/contexts/participantsState'; -import { useActiveSpeaker } from '@dailyjs/shared/hooks/useActiveSpeaker'; -import { useCamSubscriptions } from '@dailyjs/shared/hooks/useCamSubscriptions'; -import { ReactComponent as IconArrow } from '@dailyjs/shared/icons/raquo-md.svg'; -import sortByKey from '@dailyjs/shared/lib/sortByKey'; +} from '@custom/shared/constants'; +import { useCallState } from '@custom/shared/contexts/CallProvider'; +import { useParticipants } from '@custom/shared/contexts/ParticipantsProvider'; +import { isLocalId } from '@custom/shared/contexts/participantsState'; +import { useActiveSpeaker } from '@custom/shared/hooks/useActiveSpeaker'; +import { useCamSubscriptions } from '@custom/shared/hooks/useCamSubscriptions'; +import { ReactComponent as IconArrow } from '@custom/shared/icons/raquo-md.svg'; +import sortByKey from '@custom/shared/lib/sortByKey'; import PropTypes from 'prop-types'; import { useDeepCompareMemo } from 'use-deep-compare'; diff --git a/dailyjs/pagination/components/PaginatedVideoGrid/index.js b/custom/pagination/components/PaginatedVideoGrid/index.js similarity index 100% rename from dailyjs/pagination/components/PaginatedVideoGrid/index.js rename to custom/pagination/components/PaginatedVideoGrid/index.js diff --git a/dailyjs/pagination/components/Tray/Tray.js b/custom/pagination/components/Tray/Tray.js similarity index 60% rename from dailyjs/pagination/components/Tray/Tray.js rename to custom/pagination/components/Tray/Tray.js index e04e896..2099856 100644 --- a/dailyjs/pagination/components/Tray/Tray.js +++ b/custom/pagination/components/Tray/Tray.js @@ -1,8 +1,8 @@ import React from 'react'; -import { TrayButton } from '@dailyjs/shared/components/Tray'; -import { useCallState } from '@dailyjs/shared/contexts/CallProvider'; -import { ReactComponent as IconAdd } from '@dailyjs/shared/icons/add-md.svg'; +import { TrayButton } from '@custom/shared/components/Tray'; +import { useCallState } from '@custom/shared/contexts/CallProvider'; +import { ReactComponent as IconAdd } from '@custom/shared/icons/add-md.svg'; export const Tray = () => { const { callObject } = useCallState(); diff --git a/dailyjs/pagination/components/Tray/index.js b/custom/pagination/components/Tray/index.js similarity index 100% rename from dailyjs/pagination/components/Tray/index.js rename to custom/pagination/components/Tray/index.js diff --git a/dailyjs/pagination/env.example b/custom/pagination/env.example similarity index 100% rename from dailyjs/pagination/env.example rename to custom/pagination/env.example diff --git a/dailyjs/pagination/image.png b/custom/pagination/image.png similarity index 100% rename from dailyjs/pagination/image.png rename to custom/pagination/image.png diff --git a/dailyjs/recording/next.config.js b/custom/pagination/next.config.js similarity index 84% rename from dailyjs/recording/next.config.js rename to custom/pagination/next.config.js index 9a0a6ee..9140e28 100644 --- a/dailyjs/recording/next.config.js +++ b/custom/pagination/next.config.js @@ -1,7 +1,7 @@ const withPlugins = require('next-compose-plugins'); const withTM = require('next-transpile-modules')([ - '@dailyjs/shared', - '@dailyjs/basic-call', + '@custom/shared', + '@custom/basic-call', ]); const packageJson = require('./package.json'); diff --git a/dailyjs/pagination/package.json b/custom/pagination/package.json similarity index 83% rename from dailyjs/pagination/package.json rename to custom/pagination/package.json index 796128e..eff1894 100644 --- a/dailyjs/pagination/package.json +++ b/custom/pagination/package.json @@ -1,5 +1,5 @@ { - "name": "@dailyjs/pagination", + "name": "@custom/pagination", "description": "Basic Call + Pagination", "version": "0.1.0", "private": true, @@ -10,8 +10,8 @@ "lint": "next lint" }, "dependencies": { - "@dailyjs/shared": "*", - "@dailyjs/basic-call": "*", + "@custom/shared": "*", + "@custom/basic-call": "*", "next": "^11.0.0", "pluralize": "^8.0.0", "react": "^17.0.2", diff --git a/dailyjs/pagination/pages/_app.js b/custom/pagination/pages/_app.js similarity index 81% rename from dailyjs/pagination/pages/_app.js rename to custom/pagination/pages/_app.js index 5ffe4b9..d819eae 100644 --- a/dailyjs/pagination/pages/_app.js +++ b/custom/pagination/pages/_app.js @@ -1,6 +1,6 @@ import React from 'react'; -import App from '@dailyjs/basic-call/pages/_app'; +import App from '@custom/basic-call/pages/_app'; import AppWithPagination from '../components/App'; import Tray from '../components/Tray'; diff --git a/dailyjs/pagination/pages/api b/custom/pagination/pages/api similarity index 100% rename from dailyjs/pagination/pages/api rename to custom/pagination/pages/api diff --git a/dailyjs/pagination/pages/index.js b/custom/pagination/pages/index.js similarity index 67% rename from dailyjs/pagination/pages/index.js rename to custom/pagination/pages/index.js index 2668138..f61b429 100644 --- a/dailyjs/pagination/pages/index.js +++ b/custom/pagination/pages/index.js @@ -1,5 +1,5 @@ -import Index from '@dailyjs/basic-call/pages'; -import getDemoProps from '@dailyjs/shared/lib/demoProps'; +import Index from '@custom/basic-call/pages'; +import getDemoProps from '@custom/shared/lib/demoProps'; export async function getStaticProps() { const defaultProps = getDemoProps(); diff --git a/dailyjs/pagination/public/assets/daily-logo-dark.svg b/custom/pagination/public/assets/daily-logo-dark.svg similarity index 100% rename from dailyjs/pagination/public/assets/daily-logo-dark.svg rename to custom/pagination/public/assets/daily-logo-dark.svg diff --git a/dailyjs/pagination/public/assets/daily-logo.svg b/custom/pagination/public/assets/daily-logo.svg similarity index 100% rename from dailyjs/pagination/public/assets/daily-logo.svg rename to custom/pagination/public/assets/daily-logo.svg diff --git a/dailyjs/pagination/public/assets/join.mp3 b/custom/pagination/public/assets/join.mp3 similarity index 100% rename from dailyjs/pagination/public/assets/join.mp3 rename to custom/pagination/public/assets/join.mp3 diff --git a/dailyjs/pagination/public/assets/message.mp3 b/custom/pagination/public/assets/message.mp3 similarity index 100% rename from dailyjs/pagination/public/assets/message.mp3 rename to custom/pagination/public/assets/message.mp3 diff --git a/dailyjs/pagination/public/assets/pattern-bg.png b/custom/pagination/public/assets/pattern-bg.png similarity index 100% rename from dailyjs/pagination/public/assets/pattern-bg.png rename to custom/pagination/public/assets/pattern-bg.png diff --git a/dailyjs/recording/.babelrc b/custom/recording/.babelrc similarity index 100% rename from dailyjs/recording/.babelrc rename to custom/recording/.babelrc diff --git a/dailyjs/recording/README.md b/custom/recording/README.md similarity index 97% rename from dailyjs/recording/README.md rename to custom/recording/README.md index dd0aa59..523abe6 100644 --- a/dailyjs/recording/README.md +++ b/custom/recording/README.md @@ -22,7 +22,7 @@ Please note: this demo is not currently mobile optimised mv env.example .env.local yarn -yarn workspace @dailyjs/recording dev +yarn workspace @custom/recording dev ``` ### How does this demo work? diff --git a/dailyjs/recording/components/App/App.js b/custom/recording/components/App/App.js similarity index 84% rename from dailyjs/recording/components/App/App.js rename to custom/recording/components/App/App.js index 393d2ad..2d44366 100644 --- a/dailyjs/recording/components/App/App.js +++ b/custom/recording/components/App/App.js @@ -1,6 +1,6 @@ import React from 'react'; -import App from '@dailyjs/basic-call/components/App'; +import App from '@custom/basic-call/components/App'; import { RecordingProvider } from '../../contexts/RecordingProvider'; // Extend our basic call app component with the recording context diff --git a/dailyjs/recording/components/App/index.js b/custom/recording/components/App/index.js similarity index 100% rename from dailyjs/recording/components/App/index.js rename to custom/recording/components/App/index.js diff --git a/dailyjs/recording/components/RecordingModal/RecordingModal.js b/custom/recording/components/RecordingModal/RecordingModal.js similarity index 88% rename from dailyjs/recording/components/RecordingModal/RecordingModal.js rename to custom/recording/components/RecordingModal/RecordingModal.js index 50f4313..acface2 100644 --- a/dailyjs/recording/components/RecordingModal/RecordingModal.js +++ b/custom/recording/components/RecordingModal/RecordingModal.js @@ -1,10 +1,10 @@ import React, { useEffect } from 'react'; -import Button from '@dailyjs/shared/components/Button'; -import { CardBody } from '@dailyjs/shared/components/Card'; -import Modal from '@dailyjs/shared/components/Modal'; -import Well from '@dailyjs/shared/components/Well'; -import { useCallState } from '@dailyjs/shared/contexts/CallProvider'; -import { useUIState } from '@dailyjs/shared/contexts/UIStateProvider'; +import Button from '@custom/shared/components/Button'; +import { CardBody } from '@custom/shared/components/Card'; +import Modal from '@custom/shared/components/Modal'; +import Well from '@custom/shared/components/Well'; +import { useCallState } from '@custom/shared/contexts/CallProvider'; +import { useUIState } from '@custom/shared/contexts/UIStateProvider'; import { RECORDING_COUNTDOWN_1, RECORDING_COUNTDOWN_2, diff --git a/dailyjs/recording/components/RecordingModal/index.js b/custom/recording/components/RecordingModal/index.js similarity index 100% rename from dailyjs/recording/components/RecordingModal/index.js rename to custom/recording/components/RecordingModal/index.js diff --git a/dailyjs/recording/components/Tray/Tray.js b/custom/recording/components/Tray/Tray.js similarity index 80% rename from dailyjs/recording/components/Tray/Tray.js rename to custom/recording/components/Tray/Tray.js index 6eeba01..9eb14b9 100644 --- a/dailyjs/recording/components/Tray/Tray.js +++ b/custom/recording/components/Tray/Tray.js @@ -1,8 +1,8 @@ import React, { useEffect } from 'react'; -import { TrayButton } from '@dailyjs/shared/components/Tray'; -import { useUIState } from '@dailyjs/shared/contexts/UIStateProvider'; -import { ReactComponent as IconRecord } from '@dailyjs/shared/icons/record-md.svg'; +import { TrayButton } from '@custom/shared/components/Tray'; +import { useUIState } from '@custom/shared/contexts/UIStateProvider'; +import { ReactComponent as IconRecord } from '@custom/shared/icons/record-md.svg'; import { RECORDING_ERROR, diff --git a/dailyjs/recording/components/Tray/index.js b/custom/recording/components/Tray/index.js similarity index 100% rename from dailyjs/recording/components/Tray/index.js rename to custom/recording/components/Tray/index.js diff --git a/dailyjs/recording/contexts/RecordingProvider.js b/custom/recording/contexts/RecordingProvider.js similarity index 96% rename from dailyjs/recording/contexts/RecordingProvider.js rename to custom/recording/contexts/RecordingProvider.js index e56a3f0..326bb37 100644 --- a/dailyjs/recording/contexts/RecordingProvider.js +++ b/custom/recording/contexts/RecordingProvider.js @@ -6,13 +6,13 @@ import React, { useState, } from 'react'; -import { useCallState } from '@dailyjs/shared/contexts/CallProvider'; -import { useParticipants } from '@dailyjs/shared/contexts/ParticipantsProvider'; -import { useUIState } from '@dailyjs/shared/contexts/UIStateProvider'; +import { useCallState } from '@custom/shared/contexts/CallProvider'; +import { useParticipants } from '@custom/shared/contexts/ParticipantsProvider'; +import { useUIState } from '@custom/shared/contexts/UIStateProvider'; import { CALL_STATE_REDIRECTING, CALL_STATE_JOINED, -} from '@dailyjs/shared/contexts/useCallMachine'; +} from '@custom/shared/contexts/useCallMachine'; import PropTypes from 'prop-types'; import { useDeepCompareEffect } from 'use-deep-compare'; diff --git a/dailyjs/recording/env.example b/custom/recording/env.example similarity index 100% rename from dailyjs/recording/env.example rename to custom/recording/env.example diff --git a/dailyjs/recording/image.png b/custom/recording/image.png similarity index 100% rename from dailyjs/recording/image.png rename to custom/recording/image.png diff --git a/dailyjs/recording/index.js b/custom/recording/index.js similarity index 100% rename from dailyjs/recording/index.js rename to custom/recording/index.js diff --git a/dailyjs/flying-emojis/next.config.js b/custom/recording/next.config.js similarity index 84% rename from dailyjs/flying-emojis/next.config.js rename to custom/recording/next.config.js index 9a0a6ee..9140e28 100644 --- a/dailyjs/flying-emojis/next.config.js +++ b/custom/recording/next.config.js @@ -1,7 +1,7 @@ const withPlugins = require('next-compose-plugins'); const withTM = require('next-transpile-modules')([ - '@dailyjs/shared', - '@dailyjs/basic-call', + '@custom/shared', + '@custom/basic-call', ]); const packageJson = require('./package.json'); diff --git a/dailyjs/recording/package.json b/custom/recording/package.json similarity index 84% rename from dailyjs/recording/package.json rename to custom/recording/package.json index 48a1257..6f511f2 100644 --- a/dailyjs/recording/package.json +++ b/custom/recording/package.json @@ -1,5 +1,5 @@ { - "name": "@dailyjs/recording", + "name": "@custom/recording", "description": "Basic Call + Recording", "version": "0.1.0", "private": true, @@ -10,8 +10,8 @@ "lint": "next lint" }, "dependencies": { - "@dailyjs/shared": "*", - "@dailyjs/basic-call": "*", + "@custom/shared": "*", + "@custom/basic-call": "*", "next": "^11.0.0", "pluralize": "^8.0.0", "react": "^17.0.2", diff --git a/dailyjs/live-fitness/pages/_app.js b/custom/recording/pages/_app.js similarity index 86% rename from dailyjs/live-fitness/pages/_app.js rename to custom/recording/pages/_app.js index df733a8..7636341 100644 --- a/dailyjs/live-fitness/pages/_app.js +++ b/custom/recording/pages/_app.js @@ -1,5 +1,5 @@ import React from 'react'; -import App from '@dailyjs/basic-call/pages/_app'; +import App from '@custom/basic-call/pages/_app'; import AppWithRecording from '../components/App'; import { RecordingModal } from '../components/RecordingModal'; diff --git a/dailyjs/recording/pages/api b/custom/recording/pages/api similarity index 100% rename from dailyjs/recording/pages/api rename to custom/recording/pages/api diff --git a/dailyjs/live-fitness/pages/index.js b/custom/recording/pages/index.js similarity index 67% rename from dailyjs/live-fitness/pages/index.js rename to custom/recording/pages/index.js index 2668138..f61b429 100644 --- a/dailyjs/live-fitness/pages/index.js +++ b/custom/recording/pages/index.js @@ -1,5 +1,5 @@ -import Index from '@dailyjs/basic-call/pages'; -import getDemoProps from '@dailyjs/shared/lib/demoProps'; +import Index from '@custom/basic-call/pages'; +import getDemoProps from '@custom/shared/lib/demoProps'; export async function getStaticProps() { const defaultProps = getDemoProps(); diff --git a/dailyjs/recording/public/assets/daily-logo-dark.svg b/custom/recording/public/assets/daily-logo-dark.svg similarity index 100% rename from dailyjs/recording/public/assets/daily-logo-dark.svg rename to custom/recording/public/assets/daily-logo-dark.svg diff --git a/dailyjs/recording/public/assets/daily-logo.svg b/custom/recording/public/assets/daily-logo.svg similarity index 100% rename from dailyjs/recording/public/assets/daily-logo.svg rename to custom/recording/public/assets/daily-logo.svg diff --git a/dailyjs/recording/public/assets/join.mp3 b/custom/recording/public/assets/join.mp3 similarity index 100% rename from dailyjs/recording/public/assets/join.mp3 rename to custom/recording/public/assets/join.mp3 diff --git a/dailyjs/recording/public/assets/message.mp3 b/custom/recording/public/assets/message.mp3 similarity index 100% rename from dailyjs/recording/public/assets/message.mp3 rename to custom/recording/public/assets/message.mp3 diff --git a/dailyjs/recording/public/assets/pattern-bg.png b/custom/recording/public/assets/pattern-bg.png similarity index 100% rename from dailyjs/recording/public/assets/pattern-bg.png rename to custom/recording/public/assets/pattern-bg.png diff --git a/dailyjs/shared/components/Aside/Aside.js b/custom/shared/components/Aside/Aside.js similarity index 100% rename from dailyjs/shared/components/Aside/Aside.js rename to custom/shared/components/Aside/Aside.js diff --git a/dailyjs/shared/components/Aside/PeopleAside.js b/custom/shared/components/Aside/PeopleAside.js similarity index 91% rename from dailyjs/shared/components/Aside/PeopleAside.js rename to custom/shared/components/Aside/PeopleAside.js index db9da69..d5dc374 100644 --- a/dailyjs/shared/components/Aside/PeopleAside.js +++ b/custom/shared/components/Aside/PeopleAside.js @@ -1,9 +1,9 @@ import React from 'react'; -import { Aside } from '@dailyjs/shared/components/Aside'; -import { ReactComponent as IconCamOff } from '@dailyjs/shared/icons/camera-off-sm.svg'; -import { ReactComponent as IconCamOn } from '@dailyjs/shared/icons/camera-on-sm.svg'; -import { ReactComponent as IconMicOff } from '@dailyjs/shared/icons/mic-off-sm.svg'; -import { ReactComponent as IconMicOn } from '@dailyjs/shared/icons/mic-on-sm.svg'; +import { Aside } from '@custom/shared/components/Aside'; +import { ReactComponent as IconCamOff } from '@custom/shared/icons/camera-off-sm.svg'; +import { ReactComponent as IconCamOn } from '@custom/shared/icons/camera-on-sm.svg'; +import { ReactComponent as IconMicOff } from '@custom/shared/icons/mic-off-sm.svg'; +import { ReactComponent as IconMicOn } from '@custom/shared/icons/mic-on-sm.svg'; import PropTypes from 'prop-types'; import { useCallState } from '../../contexts/CallProvider'; import { useParticipants } from '../../contexts/ParticipantsProvider'; diff --git a/dailyjs/shared/components/Aside/index.js b/custom/shared/components/Aside/index.js similarity index 100% rename from dailyjs/shared/components/Aside/index.js rename to custom/shared/components/Aside/index.js diff --git a/dailyjs/shared/components/Audio/Audio.js b/custom/shared/components/Audio/Audio.js similarity index 97% rename from dailyjs/shared/components/Audio/Audio.js rename to custom/shared/components/Audio/Audio.js index 931ee56..a806340 100644 --- a/dailyjs/shared/components/Audio/Audio.js +++ b/custom/shared/components/Audio/Audio.js @@ -8,7 +8,7 @@ * into into a single audio node using the CombinedAudioTrack component */ import React, { useEffect, useMemo } from 'react'; -import { useTracks } from '@dailyjs/shared/contexts/TracksProvider'; +import { useTracks } from '@custom/shared/contexts/TracksProvider'; import Bowser from 'bowser'; import { Portal } from 'react-portal'; import AudioTrack from './AudioTrack'; diff --git a/dailyjs/shared/components/Audio/AudioTrack.js b/custom/shared/components/Audio/AudioTrack.js similarity index 100% rename from dailyjs/shared/components/Audio/AudioTrack.js rename to custom/shared/components/Audio/AudioTrack.js diff --git a/dailyjs/shared/components/Audio/CombinedAudioTrack.js b/custom/shared/components/Audio/CombinedAudioTrack.js similarity index 100% rename from dailyjs/shared/components/Audio/CombinedAudioTrack.js rename to custom/shared/components/Audio/CombinedAudioTrack.js diff --git a/dailyjs/shared/components/Audio/index.js b/custom/shared/components/Audio/index.js similarity index 100% rename from dailyjs/shared/components/Audio/index.js rename to custom/shared/components/Audio/index.js diff --git a/dailyjs/shared/components/Button/Button.js b/custom/shared/components/Button/Button.js similarity index 100% rename from dailyjs/shared/components/Button/Button.js rename to custom/shared/components/Button/Button.js diff --git a/dailyjs/shared/components/Button/index.js b/custom/shared/components/Button/index.js similarity index 100% rename from dailyjs/shared/components/Button/index.js rename to custom/shared/components/Button/index.js diff --git a/dailyjs/shared/components/Card/Card.js b/custom/shared/components/Card/Card.js similarity index 100% rename from dailyjs/shared/components/Card/Card.js rename to custom/shared/components/Card/Card.js diff --git a/dailyjs/shared/components/Card/index.js b/custom/shared/components/Card/index.js similarity index 100% rename from dailyjs/shared/components/Card/index.js rename to custom/shared/components/Card/index.js diff --git a/dailyjs/shared/components/DeviceSelect/DeviceSelect.js b/custom/shared/components/DeviceSelect/DeviceSelect.js similarity index 96% rename from dailyjs/shared/components/DeviceSelect/DeviceSelect.js rename to custom/shared/components/DeviceSelect/DeviceSelect.js index 0502a05..f0b0153 100644 --- a/dailyjs/shared/components/DeviceSelect/DeviceSelect.js +++ b/custom/shared/components/DeviceSelect/DeviceSelect.js @@ -1,5 +1,5 @@ import React from 'react'; -import { useMediaDevices } from '@dailyjs/shared/contexts/MediaDeviceProvider'; +import { useMediaDevices } from '@custom/shared/contexts/MediaDeviceProvider'; import Field from '../Field'; import { SelectInput } from '../Input'; diff --git a/dailyjs/shared/components/DeviceSelect/index.js b/custom/shared/components/DeviceSelect/index.js similarity index 100% rename from dailyjs/shared/components/DeviceSelect/index.js rename to custom/shared/components/DeviceSelect/index.js diff --git a/dailyjs/shared/components/DeviceSelectModal/DeviceSelectModal.js b/custom/shared/components/DeviceSelectModal/DeviceSelectModal.js similarity index 83% rename from dailyjs/shared/components/DeviceSelectModal/DeviceSelectModal.js rename to custom/shared/components/DeviceSelectModal/DeviceSelectModal.js index c81570a..4ec976b 100644 --- a/dailyjs/shared/components/DeviceSelectModal/DeviceSelectModal.js +++ b/custom/shared/components/DeviceSelectModal/DeviceSelectModal.js @@ -1,6 +1,6 @@ import React from 'react'; -import Modal from '@dailyjs/shared/components/Modal'; -import { useUIState } from '@dailyjs/shared/contexts/UIStateProvider'; +import Modal from '@custom/shared/components/Modal'; +import { useUIState } from '@custom/shared/contexts/UIStateProvider'; import Button from '../Button'; import DeviceSelect from '../DeviceSelect'; diff --git a/dailyjs/shared/components/DeviceSelectModal/index.js b/custom/shared/components/DeviceSelectModal/index.js similarity index 100% rename from dailyjs/shared/components/DeviceSelectModal/index.js rename to custom/shared/components/DeviceSelectModal/index.js diff --git a/dailyjs/shared/components/ExpiryTimer/ExpiryTimer.js b/custom/shared/components/ExpiryTimer/ExpiryTimer.js similarity index 100% rename from dailyjs/shared/components/ExpiryTimer/ExpiryTimer.js rename to custom/shared/components/ExpiryTimer/ExpiryTimer.js diff --git a/dailyjs/shared/components/ExpiryTimer/index.js b/custom/shared/components/ExpiryTimer/index.js similarity index 100% rename from dailyjs/shared/components/ExpiryTimer/index.js rename to custom/shared/components/ExpiryTimer/index.js diff --git a/dailyjs/shared/components/Field/Field.js b/custom/shared/components/Field/Field.js similarity index 100% rename from dailyjs/shared/components/Field/Field.js rename to custom/shared/components/Field/Field.js diff --git a/dailyjs/shared/components/Field/index.js b/custom/shared/components/Field/index.js similarity index 100% rename from dailyjs/shared/components/Field/index.js rename to custom/shared/components/Field/index.js diff --git a/dailyjs/shared/components/GlobalStyle/GlobalStyle.js b/custom/shared/components/GlobalStyle/GlobalStyle.js similarity index 100% rename from dailyjs/shared/components/GlobalStyle/GlobalStyle.js rename to custom/shared/components/GlobalStyle/GlobalStyle.js diff --git a/dailyjs/shared/components/GlobalStyle/index.js b/custom/shared/components/GlobalStyle/index.js similarity index 100% rename from dailyjs/shared/components/GlobalStyle/index.js rename to custom/shared/components/GlobalStyle/index.js diff --git a/dailyjs/shared/components/HairCheck/HairCheck.js b/custom/shared/components/HairCheck/HairCheck.js similarity index 91% rename from dailyjs/shared/components/HairCheck/HairCheck.js rename to custom/shared/components/HairCheck/HairCheck.js index d5ea397..4646036 100644 --- a/dailyjs/shared/components/HairCheck/HairCheck.js +++ b/custom/shared/components/HairCheck/HairCheck.js @@ -1,15 +1,15 @@ import React, { useState, useEffect, useMemo } from 'react'; -import Button from '@dailyjs/shared/components/Button'; -import { DEVICE_MODAL } from '@dailyjs/shared/components/DeviceSelectModal/DeviceSelectModal'; -import { TextInput } from '@dailyjs/shared/components/Input'; -import Loader from '@dailyjs/shared/components/Loader'; -import MuteButton from '@dailyjs/shared/components/MuteButton'; -import Tile from '@dailyjs/shared/components/Tile'; -import { ACCESS_STATE_LOBBY } from '@dailyjs/shared/constants'; -import { useCallState } from '@dailyjs/shared/contexts/CallProvider'; -import { useMediaDevices } from '@dailyjs/shared/contexts/MediaDeviceProvider'; -import { useParticipants } from '@dailyjs/shared/contexts/ParticipantsProvider'; -import { useUIState } from '@dailyjs/shared/contexts/UIStateProvider'; +import Button from '@custom/shared/components/Button'; +import { DEVICE_MODAL } from '@custom/shared/components/DeviceSelectModal/DeviceSelectModal'; +import { TextInput } from '@custom/shared/components/Input'; +import Loader from '@custom/shared/components/Loader'; +import MuteButton from '@custom/shared/components/MuteButton'; +import Tile from '@custom/shared/components/Tile'; +import { ACCESS_STATE_LOBBY } from '@custom/shared/constants'; +import { useCallState } from '@custom/shared/contexts/CallProvider'; +import { useMediaDevices } from '@custom/shared/contexts/MediaDeviceProvider'; +import { useParticipants } from '@custom/shared/contexts/ParticipantsProvider'; +import { useUIState } from '@custom/shared/contexts/UIStateProvider'; import { DEVICE_STATE_BLOCKED, DEVICE_STATE_NOT_FOUND, @@ -17,8 +17,8 @@ import { DEVICE_STATE_PENDING, DEVICE_STATE_LOADING, DEVICE_STATE_GRANTED, -} from '@dailyjs/shared/contexts/useDevices'; -import IconSettings from '@dailyjs/shared/icons/settings-sm.svg'; +} from '@custom/shared/contexts/useDevices'; +import IconSettings from '@custom/shared/icons/settings-sm.svg'; import { useDeepCompareMemo } from 'use-deep-compare'; diff --git a/dailyjs/shared/components/HairCheck/index.js b/custom/shared/components/HairCheck/index.js similarity index 100% rename from dailyjs/shared/components/HairCheck/index.js rename to custom/shared/components/HairCheck/index.js diff --git a/dailyjs/shared/components/HeaderCapsule/HeaderCapsule.js b/custom/shared/components/HeaderCapsule/HeaderCapsule.js similarity index 100% rename from dailyjs/shared/components/HeaderCapsule/HeaderCapsule.js rename to custom/shared/components/HeaderCapsule/HeaderCapsule.js diff --git a/dailyjs/shared/components/HeaderCapsule/index.js b/custom/shared/components/HeaderCapsule/index.js similarity index 100% rename from dailyjs/shared/components/HeaderCapsule/index.js rename to custom/shared/components/HeaderCapsule/index.js diff --git a/dailyjs/shared/components/Input/Input.js b/custom/shared/components/Input/Input.js similarity index 100% rename from dailyjs/shared/components/Input/Input.js rename to custom/shared/components/Input/Input.js diff --git a/dailyjs/shared/components/Input/index.js b/custom/shared/components/Input/index.js similarity index 100% rename from dailyjs/shared/components/Input/index.js rename to custom/shared/components/Input/index.js diff --git a/dailyjs/shared/components/Loader/Loader.js b/custom/shared/components/Loader/Loader.js similarity index 100% rename from dailyjs/shared/components/Loader/Loader.js rename to custom/shared/components/Loader/Loader.js diff --git a/dailyjs/shared/components/Loader/index.js b/custom/shared/components/Loader/index.js similarity index 100% rename from dailyjs/shared/components/Loader/index.js rename to custom/shared/components/Loader/index.js diff --git a/dailyjs/shared/components/MessageCard/MessageCard.js b/custom/shared/components/MessageCard/MessageCard.js similarity index 90% rename from dailyjs/shared/components/MessageCard/MessageCard.js rename to custom/shared/components/MessageCard/MessageCard.js index 19edbc7..425f54e 100644 --- a/dailyjs/shared/components/MessageCard/MessageCard.js +++ b/custom/shared/components/MessageCard/MessageCard.js @@ -1,11 +1,11 @@ import React from 'react'; -import Button from '@dailyjs/shared/components/Button'; +import Button from '@custom/shared/components/Button'; import { Card, CardBody, CardFooter, CardHeader, -} from '@dailyjs/shared/components/Card'; +} from '@custom/shared/components/Card'; import PropTypes from 'prop-types'; export const MessageCard = ({ diff --git a/dailyjs/shared/components/MessageCard/index.js b/custom/shared/components/MessageCard/index.js similarity index 100% rename from dailyjs/shared/components/MessageCard/index.js rename to custom/shared/components/MessageCard/index.js diff --git a/dailyjs/shared/components/Modal/Modal.js b/custom/shared/components/Modal/Modal.js similarity index 100% rename from dailyjs/shared/components/Modal/Modal.js rename to custom/shared/components/Modal/Modal.js diff --git a/dailyjs/shared/components/Modal/index.js b/custom/shared/components/Modal/index.js similarity index 100% rename from dailyjs/shared/components/Modal/index.js rename to custom/shared/components/Modal/index.js diff --git a/dailyjs/shared/components/MuteButton/MuteButton.js b/custom/shared/components/MuteButton/MuteButton.js similarity index 75% rename from dailyjs/shared/components/MuteButton/MuteButton.js rename to custom/shared/components/MuteButton/MuteButton.js index 8eef6e1..5d1a420 100644 --- a/dailyjs/shared/components/MuteButton/MuteButton.js +++ b/custom/shared/components/MuteButton/MuteButton.js @@ -1,8 +1,8 @@ import React, { useState } from 'react'; -import { ReactComponent as IconCameraOff } from '@dailyjs/shared/icons/camera-off-md.svg'; -import { ReactComponent as IconCameraOn } from '@dailyjs/shared/icons/camera-on-md.svg'; -import { ReactComponent as IconMicOff } from '@dailyjs/shared/icons/mic-off-md.svg'; -import { ReactComponent as IconMicOn } from '@dailyjs/shared/icons/mic-on-md.svg'; +import { ReactComponent as IconCameraOff } from '@custom/shared/icons/camera-off-md.svg'; +import { ReactComponent as IconCameraOn } from '@custom/shared/icons/camera-on-md.svg'; +import { ReactComponent as IconMicOff } from '@custom/shared/icons/mic-off-md.svg'; +import { ReactComponent as IconMicOn } from '@custom/shared/icons/mic-on-md.svg'; import classNames from 'classnames'; import PropTypes from 'prop-types'; import { useCallState } from '../../contexts/CallProvider'; diff --git a/dailyjs/shared/components/MuteButton/index.js b/custom/shared/components/MuteButton/index.js similarity index 100% rename from dailyjs/shared/components/MuteButton/index.js rename to custom/shared/components/MuteButton/index.js diff --git a/dailyjs/shared/components/ParticipantBar/ParticipantBar.js b/custom/shared/components/ParticipantBar/ParticipantBar.js similarity index 93% rename from dailyjs/shared/components/ParticipantBar/ParticipantBar.js rename to custom/shared/components/ParticipantBar/ParticipantBar.js index 416c27f..781b76a 100644 --- a/dailyjs/shared/components/ParticipantBar/ParticipantBar.js +++ b/custom/shared/components/ParticipantBar/ParticipantBar.js @@ -5,17 +5,17 @@ import React, { useRef, useState, } from 'react'; -import { Tile } from '@dailyjs/shared/components/Tile'; -import { DEFAULT_ASPECT_RATIO } from '@dailyjs/shared/constants'; -import { useCallState } from '@dailyjs/shared/contexts/CallProvider'; -import { useParticipants } from '@dailyjs/shared/contexts/ParticipantsProvider'; -import { useTracks } from '@dailyjs/shared/contexts/TracksProvider'; -import { useUIState } from '@dailyjs/shared/contexts/UIStateProvider'; -import { isLocalId } from '@dailyjs/shared/contexts/participantsState'; -import { useActiveSpeaker } from '@dailyjs/shared/hooks/useActiveSpeaker'; -import { useCamSubscriptions } from '@dailyjs/shared/hooks/useCamSubscriptions'; -import { useResize } from '@dailyjs/shared/hooks/useResize'; -import { useScrollbarWidth } from '@dailyjs/shared/hooks/useScrollbarWidth'; +import { Tile } from '@custom/shared/components/Tile'; +import { DEFAULT_ASPECT_RATIO } from '@custom/shared/constants'; +import { useCallState } from '@custom/shared/contexts/CallProvider'; +import { useParticipants } from '@custom/shared/contexts/ParticipantsProvider'; +import { useTracks } from '@custom/shared/contexts/TracksProvider'; +import { useUIState } from '@custom/shared/contexts/UIStateProvider'; +import { isLocalId } from '@custom/shared/contexts/participantsState'; +import { useActiveSpeaker } from '@custom/shared/hooks/useActiveSpeaker'; +import { useCamSubscriptions } from '@custom/shared/hooks/useCamSubscriptions'; +import { useResize } from '@custom/shared/hooks/useResize'; +import { useScrollbarWidth } from '@custom/shared/hooks/useScrollbarWidth'; import classnames from 'classnames'; import debounce from 'debounce'; import PropTypes from 'prop-types'; diff --git a/dailyjs/shared/components/ParticipantBar/index.js b/custom/shared/components/ParticipantBar/index.js similarity index 100% rename from dailyjs/shared/components/ParticipantBar/index.js rename to custom/shared/components/ParticipantBar/index.js diff --git a/dailyjs/shared/components/ParticipantBar/useBlockScrolling.js b/custom/shared/components/ParticipantBar/useBlockScrolling.js similarity index 100% rename from dailyjs/shared/components/ParticipantBar/useBlockScrolling.js rename to custom/shared/components/ParticipantBar/useBlockScrolling.js diff --git a/dailyjs/shared/components/Tile/Tile.js b/custom/shared/components/Tile/Tile.js similarity index 97% rename from dailyjs/shared/components/Tile/Tile.js rename to custom/shared/components/Tile/Tile.js index 2fcca38..a65b0f4 100644 --- a/dailyjs/shared/components/Tile/Tile.js +++ b/custom/shared/components/Tile/Tile.js @@ -1,6 +1,6 @@ import React, { memo, useEffect, useState, useRef } from 'react'; -import useVideoTrack from '@dailyjs/shared/hooks/useVideoTrack'; -import { ReactComponent as IconMicMute } from '@dailyjs/shared/icons/mic-off-sm.svg'; +import useVideoTrack from '@custom/shared/hooks/useVideoTrack'; +import { ReactComponent as IconMicMute } from '@custom/shared/icons/mic-off-sm.svg'; import classNames from 'classnames'; import PropTypes from 'prop-types'; import { DEFAULT_ASPECT_RATIO } from '../../constants'; diff --git a/dailyjs/shared/components/Tile/Video.js b/custom/shared/components/Tile/Video.js similarity index 100% rename from dailyjs/shared/components/Tile/Video.js rename to custom/shared/components/Tile/Video.js diff --git a/dailyjs/shared/components/Tile/avatar.svg b/custom/shared/components/Tile/avatar.svg similarity index 100% rename from dailyjs/shared/components/Tile/avatar.svg rename to custom/shared/components/Tile/avatar.svg diff --git a/dailyjs/shared/components/Tile/index.js b/custom/shared/components/Tile/index.js similarity index 100% rename from dailyjs/shared/components/Tile/index.js rename to custom/shared/components/Tile/index.js diff --git a/dailyjs/shared/components/Tray/BasicTray.js b/custom/shared/components/Tray/BasicTray.js similarity index 59% rename from dailyjs/shared/components/Tray/BasicTray.js rename to custom/shared/components/Tray/BasicTray.js index b7f5aaf..abe2b2f 100644 --- a/dailyjs/shared/components/Tray/BasicTray.js +++ b/custom/shared/components/Tray/BasicTray.js @@ -1,16 +1,16 @@ import React from 'react'; -import { PEOPLE_ASIDE } from '@dailyjs/shared/components/Aside/PeopleAside'; -import { DEVICE_MODAL } from '@dailyjs/shared/components/DeviceSelectModal'; -import { useCallState } from '@dailyjs/shared/contexts/CallProvider'; -import { useMediaDevices } from '@dailyjs/shared/contexts/MediaDeviceProvider'; -import { useUIState } from '@dailyjs/shared/contexts/UIStateProvider'; -import { ReactComponent as IconCameraOff } from '@dailyjs/shared/icons/camera-off-md.svg'; -import { ReactComponent as IconCameraOn } from '@dailyjs/shared/icons/camera-on-md.svg'; -import { ReactComponent as IconLeave } from '@dailyjs/shared/icons/leave-md.svg'; -import { ReactComponent as IconMicOff } from '@dailyjs/shared/icons/mic-off-md.svg'; -import { ReactComponent as IconMicOn } from '@dailyjs/shared/icons/mic-on-md.svg'; -import { ReactComponent as IconPeople } from '@dailyjs/shared/icons/people-md.svg'; -import { ReactComponent as IconSettings } from '@dailyjs/shared/icons/settings-md.svg'; +import { PEOPLE_ASIDE } from '@custom/shared/components/Aside/PeopleAside'; +import { DEVICE_MODAL } from '@custom/shared/components/DeviceSelectModal'; +import { useCallState } from '@custom/shared/contexts/CallProvider'; +import { useMediaDevices } from '@custom/shared/contexts/MediaDeviceProvider'; +import { useUIState } from '@custom/shared/contexts/UIStateProvider'; +import { ReactComponent as IconCameraOff } from '@custom/shared/icons/camera-off-md.svg'; +import { ReactComponent as IconCameraOn } from '@custom/shared/icons/camera-on-md.svg'; +import { ReactComponent as IconLeave } from '@custom/shared/icons/leave-md.svg'; +import { ReactComponent as IconMicOff } from '@custom/shared/icons/mic-off-md.svg'; +import { ReactComponent as IconMicOn } from '@custom/shared/icons/mic-on-md.svg'; +import { ReactComponent as IconPeople } from '@custom/shared/icons/people-md.svg'; +import { ReactComponent as IconSettings } from '@custom/shared/icons/settings-md.svg'; import { Tray, TrayButton } from './Tray'; export const BasicTray = () => { diff --git a/dailyjs/shared/components/Tray/Tray.js b/custom/shared/components/Tray/Tray.js similarity index 97% rename from dailyjs/shared/components/Tray/Tray.js rename to custom/shared/components/Tray/Tray.js index 8c540a4..df5c2b8 100644 --- a/dailyjs/shared/components/Tray/Tray.js +++ b/custom/shared/components/Tray/Tray.js @@ -1,5 +1,5 @@ import React from 'react'; -import Button from '@dailyjs/shared/components/Button'; +import Button from '@custom/shared/components/Button'; import classNames from 'classnames'; import PropTypes from 'prop-types'; diff --git a/dailyjs/shared/components/Tray/TrayButton.js b/custom/shared/components/Tray/TrayButton.js similarity index 93% rename from dailyjs/shared/components/Tray/TrayButton.js rename to custom/shared/components/Tray/TrayButton.js index dffece5..a39399b 100644 --- a/dailyjs/shared/components/Tray/TrayButton.js +++ b/custom/shared/components/Tray/TrayButton.js @@ -1,5 +1,5 @@ import React from 'react'; -import Button from '@dailyjs/shared/components/Button'; +import Button from '@custom/shared/components/Button'; import PropTypes from 'prop-types'; export const TrayButton = ({ children, label, onClick, orange = false }) => ( diff --git a/dailyjs/shared/components/Tray/TrayMicButton.js b/custom/shared/components/Tray/TrayMicButton.js similarity index 59% rename from dailyjs/shared/components/Tray/TrayMicButton.js rename to custom/shared/components/Tray/TrayMicButton.js index 68bea2a..f88a476 100644 --- a/dailyjs/shared/components/Tray/TrayMicButton.js +++ b/custom/shared/components/Tray/TrayMicButton.js @@ -1,8 +1,8 @@ import React from 'react'; -import { TrayButton } from '@dailyjs/shared/components/Tray'; -import { useAudioLevel } from '@dailyjs/shared/hooks/useAudioLevel'; -import { ReactComponent as IconMicOff } from '@dailyjs/shared/icons/mic-off-md.svg'; -import { ReactComponent as IconMicOn } from '@dailyjs/shared/icons/mic-on-md.svg'; +import { TrayButton } from '@custom/shared/components/Tray'; +import { useAudioLevel } from '@custom/shared/hooks/useAudioLevel'; +import { ReactComponent as IconMicOff } from '@custom/shared/icons/mic-off-md.svg'; +import { ReactComponent as IconMicOn } from '@custom/shared/icons/mic-on-md.svg'; import PropTypes from 'prop-types'; diff --git a/dailyjs/shared/components/Tray/index.js b/custom/shared/components/Tray/index.js similarity index 100% rename from dailyjs/shared/components/Tray/index.js rename to custom/shared/components/Tray/index.js diff --git a/dailyjs/shared/components/VideoContainer/VideoContainer.js b/custom/shared/components/VideoContainer/VideoContainer.js similarity index 100% rename from dailyjs/shared/components/VideoContainer/VideoContainer.js rename to custom/shared/components/VideoContainer/VideoContainer.js diff --git a/dailyjs/shared/components/VideoContainer/index.js b/custom/shared/components/VideoContainer/index.js similarity index 100% rename from dailyjs/shared/components/VideoContainer/index.js rename to custom/shared/components/VideoContainer/index.js diff --git a/dailyjs/shared/components/WaitingRoom/WaitingParticipantRow.js b/custom/shared/components/WaitingRoom/WaitingParticipantRow.js similarity index 100% rename from dailyjs/shared/components/WaitingRoom/WaitingParticipantRow.js rename to custom/shared/components/WaitingRoom/WaitingParticipantRow.js diff --git a/dailyjs/shared/components/WaitingRoom/WaitingRoomModal.js b/custom/shared/components/WaitingRoom/WaitingRoomModal.js similarity index 88% rename from dailyjs/shared/components/WaitingRoom/WaitingRoomModal.js rename to custom/shared/components/WaitingRoom/WaitingRoomModal.js index c036e2b..bdf42f2 100644 --- a/dailyjs/shared/components/WaitingRoom/WaitingRoomModal.js +++ b/custom/shared/components/WaitingRoom/WaitingRoomModal.js @@ -1,6 +1,6 @@ import React from 'react'; -import Modal from '@dailyjs/shared/components/Modal'; -import { useWaitingRoom } from '@dailyjs/shared/contexts/WaitingRoomProvider'; +import Modal from '@custom/shared/components/Modal'; +import { useWaitingRoom } from '@custom/shared/contexts/WaitingRoomProvider'; import PropTypes from 'prop-types'; import Button from '../Button'; import { WaitingParticipantRow } from './WaitingParticipantRow'; diff --git a/dailyjs/shared/components/WaitingRoom/WaitingRoomNotification.js b/custom/shared/components/WaitingRoom/WaitingRoomNotification.js similarity index 100% rename from dailyjs/shared/components/WaitingRoom/WaitingRoomNotification.js rename to custom/shared/components/WaitingRoom/WaitingRoomNotification.js diff --git a/dailyjs/shared/components/WaitingRoom/index.js b/custom/shared/components/WaitingRoom/index.js similarity index 100% rename from dailyjs/shared/components/WaitingRoom/index.js rename to custom/shared/components/WaitingRoom/index.js diff --git a/dailyjs/shared/components/Well/Well.js b/custom/shared/components/Well/Well.js similarity index 100% rename from dailyjs/shared/components/Well/Well.js rename to custom/shared/components/Well/Well.js diff --git a/dailyjs/shared/components/Well/index.js b/custom/shared/components/Well/index.js similarity index 100% rename from dailyjs/shared/components/Well/index.js rename to custom/shared/components/Well/index.js diff --git a/dailyjs/shared/constants.js b/custom/shared/constants.js similarity index 100% rename from dailyjs/shared/constants.js rename to custom/shared/constants.js diff --git a/dailyjs/shared/contexts/CallProvider.js b/custom/shared/contexts/CallProvider.js similarity index 100% rename from dailyjs/shared/contexts/CallProvider.js rename to custom/shared/contexts/CallProvider.js diff --git a/dailyjs/shared/contexts/MediaDeviceProvider.js b/custom/shared/contexts/MediaDeviceProvider.js similarity index 100% rename from dailyjs/shared/contexts/MediaDeviceProvider.js rename to custom/shared/contexts/MediaDeviceProvider.js diff --git a/dailyjs/shared/contexts/ParticipantsProvider.js b/custom/shared/contexts/ParticipantsProvider.js similarity index 99% rename from dailyjs/shared/contexts/ParticipantsProvider.js rename to custom/shared/contexts/ParticipantsProvider.js index 81b6a94..f6c9428 100644 --- a/dailyjs/shared/contexts/ParticipantsProvider.js +++ b/custom/shared/contexts/ParticipantsProvider.js @@ -10,7 +10,7 @@ import React, { import { useUIState, VIEW_MODE_SPEAKER, -} from '@dailyjs/shared/contexts/UIStateProvider'; +} from '@custom/shared/contexts/UIStateProvider'; import PropTypes from 'prop-types'; import { diff --git a/dailyjs/shared/contexts/TracksProvider.js b/custom/shared/contexts/TracksProvider.js similarity index 100% rename from dailyjs/shared/contexts/TracksProvider.js rename to custom/shared/contexts/TracksProvider.js diff --git a/dailyjs/shared/contexts/UIStateProvider.js b/custom/shared/contexts/UIStateProvider.js similarity index 100% rename from dailyjs/shared/contexts/UIStateProvider.js rename to custom/shared/contexts/UIStateProvider.js diff --git a/dailyjs/shared/contexts/WaitingRoomProvider.js b/custom/shared/contexts/WaitingRoomProvider.js similarity index 100% rename from dailyjs/shared/contexts/WaitingRoomProvider.js rename to custom/shared/contexts/WaitingRoomProvider.js diff --git a/dailyjs/shared/contexts/callState.js b/custom/shared/contexts/callState.js similarity index 100% rename from dailyjs/shared/contexts/callState.js rename to custom/shared/contexts/callState.js diff --git a/dailyjs/shared/contexts/participantsState.js b/custom/shared/contexts/participantsState.js similarity index 100% rename from dailyjs/shared/contexts/participantsState.js rename to custom/shared/contexts/participantsState.js diff --git a/dailyjs/shared/contexts/tracksState.js b/custom/shared/contexts/tracksState.js similarity index 100% rename from dailyjs/shared/contexts/tracksState.js rename to custom/shared/contexts/tracksState.js diff --git a/dailyjs/shared/contexts/useCallMachine.js b/custom/shared/contexts/useCallMachine.js similarity index 100% rename from dailyjs/shared/contexts/useCallMachine.js rename to custom/shared/contexts/useCallMachine.js diff --git a/dailyjs/shared/contexts/useDevices.js b/custom/shared/contexts/useDevices.js similarity index 100% rename from dailyjs/shared/contexts/useDevices.js rename to custom/shared/contexts/useDevices.js diff --git a/dailyjs/shared/hooks/useActiveSpeaker.js b/custom/shared/hooks/useActiveSpeaker.js similarity index 100% rename from dailyjs/shared/hooks/useActiveSpeaker.js rename to custom/shared/hooks/useActiveSpeaker.js diff --git a/dailyjs/shared/hooks/useAudioLevel.js b/custom/shared/hooks/useAudioLevel.js similarity index 100% rename from dailyjs/shared/hooks/useAudioLevel.js rename to custom/shared/hooks/useAudioLevel.js diff --git a/dailyjs/shared/hooks/useAudioTrack.js b/custom/shared/hooks/useAudioTrack.js similarity index 100% rename from dailyjs/shared/hooks/useAudioTrack.js rename to custom/shared/hooks/useAudioTrack.js diff --git a/dailyjs/shared/hooks/useCallUI.js b/custom/shared/hooks/useCallUI.js similarity index 94% rename from dailyjs/shared/hooks/useCallUI.js rename to custom/shared/hooks/useCallUI.js index ae28715..ea8c44c 100644 --- a/dailyjs/shared/hooks/useCallUI.js +++ b/custom/shared/hooks/useCallUI.js @@ -1,6 +1,6 @@ import React, { useCallback, useEffect } from 'react'; -import Loader from '@dailyjs/shared/components/Loader'; -import MessageCard from '@dailyjs/shared/components/MessageCard'; +import Loader from '@custom/shared/components/Loader'; +import MessageCard from '@custom/shared/components/MessageCard'; import { CALL_STATE_ENDED, CALL_STATE_JOINED, @@ -12,7 +12,7 @@ import { CALL_STATE_REDIRECTING, CALL_STATE_NOT_ALLOWED, CALL_STATE_EXPIRED, -} from '@dailyjs/shared/contexts/useCallMachine'; +} from '@custom/shared/contexts/useCallMachine'; import { useRouter } from 'next/router'; import HairCheck from '../components/HairCheck'; diff --git a/dailyjs/shared/hooks/useCamSubscriptions.js b/custom/shared/hooks/useCamSubscriptions.js similarity index 100% rename from dailyjs/shared/hooks/useCamSubscriptions.js rename to custom/shared/hooks/useCamSubscriptions.js diff --git a/dailyjs/shared/hooks/useJoinSound.js b/custom/shared/hooks/useJoinSound.js similarity index 100% rename from dailyjs/shared/hooks/useJoinSound.js rename to custom/shared/hooks/useJoinSound.js diff --git a/dailyjs/shared/hooks/useNetworkState.js b/custom/shared/hooks/useNetworkState.js similarity index 100% rename from dailyjs/shared/hooks/useNetworkState.js rename to custom/shared/hooks/useNetworkState.js diff --git a/dailyjs/shared/hooks/useResize.js b/custom/shared/hooks/useResize.js similarity index 100% rename from dailyjs/shared/hooks/useResize.js rename to custom/shared/hooks/useResize.js diff --git a/dailyjs/shared/hooks/useScrollbarWidth.js b/custom/shared/hooks/useScrollbarWidth.js similarity index 100% rename from dailyjs/shared/hooks/useScrollbarWidth.js rename to custom/shared/hooks/useScrollbarWidth.js diff --git a/dailyjs/shared/hooks/useSound.js b/custom/shared/hooks/useSound.js similarity index 100% rename from dailyjs/shared/hooks/useSound.js rename to custom/shared/hooks/useSound.js diff --git a/dailyjs/shared/hooks/useVideoTrack.js b/custom/shared/hooks/useVideoTrack.js similarity index 100% rename from dailyjs/shared/hooks/useVideoTrack.js rename to custom/shared/hooks/useVideoTrack.js diff --git a/dailyjs/shared/icons/add-md.svg b/custom/shared/icons/add-md.svg similarity index 100% rename from dailyjs/shared/icons/add-md.svg rename to custom/shared/icons/add-md.svg diff --git a/dailyjs/shared/icons/add-person-lg.svg b/custom/shared/icons/add-person-lg.svg similarity index 100% rename from dailyjs/shared/icons/add-person-lg.svg rename to custom/shared/icons/add-person-lg.svg diff --git a/dailyjs/shared/icons/avatar-md.svg b/custom/shared/icons/avatar-md.svg similarity index 100% rename from dailyjs/shared/icons/avatar-md.svg rename to custom/shared/icons/avatar-md.svg diff --git a/dailyjs/shared/icons/camera-off-md.svg b/custom/shared/icons/camera-off-md.svg similarity index 100% rename from dailyjs/shared/icons/camera-off-md.svg rename to custom/shared/icons/camera-off-md.svg diff --git a/dailyjs/shared/icons/camera-off-sm.svg b/custom/shared/icons/camera-off-sm.svg similarity index 100% rename from dailyjs/shared/icons/camera-off-sm.svg rename to custom/shared/icons/camera-off-sm.svg diff --git a/dailyjs/shared/icons/camera-on-md.svg b/custom/shared/icons/camera-on-md.svg similarity index 100% rename from dailyjs/shared/icons/camera-on-md.svg rename to custom/shared/icons/camera-on-md.svg diff --git a/dailyjs/shared/icons/camera-on-sm.svg b/custom/shared/icons/camera-on-sm.svg similarity index 100% rename from dailyjs/shared/icons/camera-on-sm.svg rename to custom/shared/icons/camera-on-sm.svg diff --git a/dailyjs/shared/icons/chat-md.svg b/custom/shared/icons/chat-md.svg similarity index 100% rename from dailyjs/shared/icons/chat-md.svg rename to custom/shared/icons/chat-md.svg diff --git a/dailyjs/shared/icons/close-sm.svg b/custom/shared/icons/close-sm.svg similarity index 100% rename from dailyjs/shared/icons/close-sm.svg rename to custom/shared/icons/close-sm.svg diff --git a/dailyjs/shared/icons/leave-md.svg b/custom/shared/icons/leave-md.svg similarity index 100% rename from dailyjs/shared/icons/leave-md.svg rename to custom/shared/icons/leave-md.svg diff --git a/dailyjs/shared/icons/mic-off-md.svg b/custom/shared/icons/mic-off-md.svg similarity index 100% rename from dailyjs/shared/icons/mic-off-md.svg rename to custom/shared/icons/mic-off-md.svg diff --git a/dailyjs/shared/icons/mic-off-sm.svg b/custom/shared/icons/mic-off-sm.svg similarity index 100% rename from dailyjs/shared/icons/mic-off-sm.svg rename to custom/shared/icons/mic-off-sm.svg diff --git a/dailyjs/shared/icons/mic-on-md.svg b/custom/shared/icons/mic-on-md.svg similarity index 100% rename from dailyjs/shared/icons/mic-on-md.svg rename to custom/shared/icons/mic-on-md.svg diff --git a/dailyjs/shared/icons/mic-on-sm.svg b/custom/shared/icons/mic-on-sm.svg similarity index 100% rename from dailyjs/shared/icons/mic-on-sm.svg rename to custom/shared/icons/mic-on-sm.svg diff --git a/dailyjs/shared/icons/people-md.svg b/custom/shared/icons/people-md.svg similarity index 100% rename from dailyjs/shared/icons/people-md.svg rename to custom/shared/icons/people-md.svg diff --git a/dailyjs/shared/icons/raquo-md.svg b/custom/shared/icons/raquo-md.svg similarity index 100% rename from dailyjs/shared/icons/raquo-md.svg rename to custom/shared/icons/raquo-md.svg diff --git a/dailyjs/shared/icons/record-md.svg b/custom/shared/icons/record-md.svg similarity index 100% rename from dailyjs/shared/icons/record-md.svg rename to custom/shared/icons/record-md.svg diff --git a/dailyjs/shared/icons/settings-md.svg b/custom/shared/icons/settings-md.svg similarity index 100% rename from dailyjs/shared/icons/settings-md.svg rename to custom/shared/icons/settings-md.svg diff --git a/dailyjs/shared/icons/settings-sm.svg b/custom/shared/icons/settings-sm.svg similarity index 100% rename from dailyjs/shared/icons/settings-sm.svg rename to custom/shared/icons/settings-sm.svg diff --git a/dailyjs/shared/icons/star-md.svg b/custom/shared/icons/star-md.svg similarity index 100% rename from dailyjs/shared/icons/star-md.svg rename to custom/shared/icons/star-md.svg diff --git a/dailyjs/shared/icons/streaming-md.svg b/custom/shared/icons/streaming-md.svg similarity index 100% rename from dailyjs/shared/icons/streaming-md.svg rename to custom/shared/icons/streaming-md.svg diff --git a/dailyjs/shared/index.js b/custom/shared/index.js similarity index 100% rename from dailyjs/shared/index.js rename to custom/shared/index.js diff --git a/dailyjs/shared/lib/demoProps.js b/custom/shared/lib/demoProps.js similarity index 100% rename from dailyjs/shared/lib/demoProps.js rename to custom/shared/lib/demoProps.js diff --git a/dailyjs/shared/lib/mediaUtils.js b/custom/shared/lib/mediaUtils.js similarity index 100% rename from dailyjs/shared/lib/mediaUtils.js rename to custom/shared/lib/mediaUtils.js diff --git a/dailyjs/shared/lib/sortByKey.js b/custom/shared/lib/sortByKey.js similarity index 100% rename from dailyjs/shared/lib/sortByKey.js rename to custom/shared/lib/sortByKey.js diff --git a/dailyjs/shared/lib/sortLastActive.js b/custom/shared/lib/sortLastActive.js similarity index 100% rename from dailyjs/shared/lib/sortLastActive.js rename to custom/shared/lib/sortLastActive.js diff --git a/dailyjs/shared/lib/token.js b/custom/shared/lib/token.js similarity index 100% rename from dailyjs/shared/lib/token.js rename to custom/shared/lib/token.js diff --git a/dailyjs/shared/package.json b/custom/shared/package.json similarity index 94% rename from dailyjs/shared/package.json rename to custom/shared/package.json index 0c0a123..eddb7ea 100644 --- a/dailyjs/shared/package.json +++ b/custom/shared/package.json @@ -1,5 +1,5 @@ { - "name": "@dailyjs/shared", + "name": "@custom/shared", "version": "0.1.0", "private": true, "main": "index.js", diff --git a/dailyjs/shared/styles/defaultTheme.js b/custom/shared/styles/defaultTheme.js similarity index 100% rename from dailyjs/shared/styles/defaultTheme.js rename to custom/shared/styles/defaultTheme.js diff --git a/dailyjs/shared/styles/global.js b/custom/shared/styles/global.js similarity index 100% rename from dailyjs/shared/styles/global.js rename to custom/shared/styles/global.js diff --git a/dailyjs/text-chat/.babelrc b/custom/text-chat/.babelrc similarity index 100% rename from dailyjs/text-chat/.babelrc rename to custom/text-chat/.babelrc diff --git a/dailyjs/text-chat/README.md b/custom/text-chat/README.md similarity index 93% rename from dailyjs/text-chat/README.md rename to custom/text-chat/README.md index 6703492..47e5b37 100644 --- a/dailyjs/text-chat/README.md +++ b/custom/text-chat/README.md @@ -4,7 +4,7 @@ ### Live example -**[See it in action here ➡️](https://dailyjs-text-chat.vercel.app)** +**[See it in action here ➡️](https://custom-text-chat.vercel.app)** --- @@ -25,7 +25,7 @@ Please note: this demo is not currently mobile optimised mv env.example .env.local yarn -yarn workspace @dailyjs/text-chat dev +yarn workspace @custom/text-chat dev ``` ## How does this example work? diff --git a/dailyjs/text-chat/components/App/App.js b/custom/text-chat/components/App/App.js similarity index 83% rename from dailyjs/text-chat/components/App/App.js rename to custom/text-chat/components/App/App.js index 7a9a4ce..2cd8161 100644 --- a/dailyjs/text-chat/components/App/App.js +++ b/custom/text-chat/components/App/App.js @@ -1,6 +1,6 @@ import React from 'react'; -import App from '@dailyjs/basic-call/components/App'; +import App from '@custom/basic-call/components/App'; import { ChatProvider } from '../../contexts/ChatProvider'; // Extend our basic call app component with the chat context diff --git a/dailyjs/text-chat/components/App/index.js b/custom/text-chat/components/App/index.js similarity index 100% rename from dailyjs/text-chat/components/App/index.js rename to custom/text-chat/components/App/index.js diff --git a/dailyjs/text-chat/components/ChatAside/ChatAside.js b/custom/text-chat/components/ChatAside/ChatAside.js similarity index 93% rename from dailyjs/text-chat/components/ChatAside/ChatAside.js rename to custom/text-chat/components/ChatAside/ChatAside.js index 830731a..cc9d8ae 100644 --- a/dailyjs/text-chat/components/ChatAside/ChatAside.js +++ b/custom/text-chat/components/ChatAside/ChatAside.js @@ -1,8 +1,8 @@ import React, { useEffect, useRef, useState } from 'react'; -import { Aside } from '@dailyjs/shared/components/Aside'; -import Button from '@dailyjs/shared/components/Button'; -import { TextInput } from '@dailyjs/shared/components/Input'; -import { useUIState } from '@dailyjs/shared/contexts/UIStateProvider'; +import { Aside } from '@custom/shared/components/Aside'; +import Button from '@custom/shared/components/Button'; +import { TextInput } from '@custom/shared/components/Input'; +import { useUIState } from '@custom/shared/contexts/UIStateProvider'; import { useChat } from '../../contexts/ChatProvider'; import { useMessageSound } from '../../hooks/useMessageSound'; diff --git a/dailyjs/text-chat/components/ChatAside/index.js b/custom/text-chat/components/ChatAside/index.js similarity index 100% rename from dailyjs/text-chat/components/ChatAside/index.js rename to custom/text-chat/components/ChatAside/index.js diff --git a/dailyjs/text-chat/components/Tray/Tray.js b/custom/text-chat/components/Tray/Tray.js similarity index 68% rename from dailyjs/text-chat/components/Tray/Tray.js rename to custom/text-chat/components/Tray/Tray.js index b9b12c8..e7115e0 100644 --- a/dailyjs/text-chat/components/Tray/Tray.js +++ b/custom/text-chat/components/Tray/Tray.js @@ -1,8 +1,8 @@ import React from 'react'; -import { TrayButton } from '@dailyjs/shared/components/Tray'; -import { useUIState } from '@dailyjs/shared/contexts/UIStateProvider'; -import { ReactComponent as IconChat } from '@dailyjs/shared/icons/chat-md.svg'; +import { TrayButton } from '@custom/shared/components/Tray'; +import { useUIState } from '@custom/shared/contexts/UIStateProvider'; +import { ReactComponent as IconChat } from '@custom/shared/icons/chat-md.svg'; import { useChat } from '../../contexts/ChatProvider'; import { CHAT_ASIDE } from '../ChatAside/ChatAside'; diff --git a/dailyjs/text-chat/components/Tray/index.js b/custom/text-chat/components/Tray/index.js similarity index 100% rename from dailyjs/text-chat/components/Tray/index.js rename to custom/text-chat/components/Tray/index.js diff --git a/dailyjs/text-chat/contexts/ChatProvider.js b/custom/text-chat/contexts/ChatProvider.js similarity index 96% rename from dailyjs/text-chat/contexts/ChatProvider.js rename to custom/text-chat/contexts/ChatProvider.js index 6ad611a..db90609 100644 --- a/dailyjs/text-chat/contexts/ChatProvider.js +++ b/custom/text-chat/contexts/ChatProvider.js @@ -5,7 +5,7 @@ import React, { useEffect, useState, } from 'react'; -import { useCallState } from '@dailyjs/shared/contexts/CallProvider'; +import { useCallState } from '@custom/shared/contexts/CallProvider'; import { nanoid } from 'nanoid'; import PropTypes from 'prop-types'; diff --git a/dailyjs/text-chat/env.example b/custom/text-chat/env.example similarity index 100% rename from dailyjs/text-chat/env.example rename to custom/text-chat/env.example diff --git a/dailyjs/text-chat/hooks/useMessageSound.js b/custom/text-chat/hooks/useMessageSound.js similarity index 87% rename from dailyjs/text-chat/hooks/useMessageSound.js rename to custom/text-chat/hooks/useMessageSound.js index 3324693..7449e10 100644 --- a/dailyjs/text-chat/hooks/useMessageSound.js +++ b/custom/text-chat/hooks/useMessageSound.js @@ -1,6 +1,6 @@ import { useEffect, useMemo } from 'react'; -import { useSound } from '@dailyjs/shared/hooks/useSound'; +import { useSound } from '@custom/shared/hooks/useSound'; import { debounce } from 'debounce'; /** diff --git a/dailyjs/text-chat/image.png b/custom/text-chat/image.png similarity index 100% rename from dailyjs/text-chat/image.png rename to custom/text-chat/image.png diff --git a/dailyjs/text-chat/index.js b/custom/text-chat/index.js similarity index 100% rename from dailyjs/text-chat/index.js rename to custom/text-chat/index.js diff --git a/custom/text-chat/next.config.js b/custom/text-chat/next.config.js new file mode 100644 index 0000000..9140e28 --- /dev/null +++ b/custom/text-chat/next.config.js @@ -0,0 +1,13 @@ +const withPlugins = require('next-compose-plugins'); +const withTM = require('next-transpile-modules')([ + '@custom/shared', + '@custom/basic-call', +]); + +const packageJson = require('./package.json'); + +module.exports = withPlugins([withTM], { + env: { + PROJECT_TITLE: packageJson.description, + }, +}); diff --git a/dailyjs/text-chat/package.json b/custom/text-chat/package.json similarity index 84% rename from dailyjs/text-chat/package.json rename to custom/text-chat/package.json index cd719e9..c2a4c9a 100644 --- a/dailyjs/text-chat/package.json +++ b/custom/text-chat/package.json @@ -1,5 +1,5 @@ { - "name": "@dailyjs/text-chat", + "name": "@custom/text-chat", "description": "Basic Call + Chat Example", "version": "0.1.0", "private": true, @@ -10,8 +10,8 @@ "lint": "next lint" }, "dependencies": { - "@dailyjs/shared": "*", - "@dailyjs/basic-call": "*", + "@custom/shared": "*", + "@custom/basic-call": "*", "next": "^11.0.0", "pluralize": "^8.0.0", "react": "^17.0.2", diff --git a/dailyjs/text-chat/pages/_app.js b/custom/text-chat/pages/_app.js similarity index 85% rename from dailyjs/text-chat/pages/_app.js rename to custom/text-chat/pages/_app.js index ad38f4e..64121fa 100644 --- a/dailyjs/text-chat/pages/_app.js +++ b/custom/text-chat/pages/_app.js @@ -1,5 +1,5 @@ import React from 'react'; -import App from '@dailyjs/basic-call/pages/_app'; +import App from '@custom/basic-call/pages/_app'; import AppWithChat from '../components/App'; import ChatAside from '../components/ChatAside'; diff --git a/dailyjs/text-chat/pages/api b/custom/text-chat/pages/api similarity index 100% rename from dailyjs/text-chat/pages/api rename to custom/text-chat/pages/api diff --git a/dailyjs/text-chat/pages/index.js b/custom/text-chat/pages/index.js similarity index 63% rename from dailyjs/text-chat/pages/index.js rename to custom/text-chat/pages/index.js index d25e77e..84a3f53 100644 --- a/dailyjs/text-chat/pages/index.js +++ b/custom/text-chat/pages/index.js @@ -1,5 +1,5 @@ -import Index from '@dailyjs/basic-call/pages'; -import getDemoProps from '@dailyjs/shared/lib/demoProps'; +import Index from '@custom/basic-call/pages'; +import getDemoProps from '@custom/shared/lib/demoProps'; export async function getStaticProps() { const defaultProps = getDemoProps(); diff --git a/dailyjs/text-chat/public/assets/daily-logo-dark.svg b/custom/text-chat/public/assets/daily-logo-dark.svg similarity index 100% rename from dailyjs/text-chat/public/assets/daily-logo-dark.svg rename to custom/text-chat/public/assets/daily-logo-dark.svg diff --git a/dailyjs/text-chat/public/assets/daily-logo.svg b/custom/text-chat/public/assets/daily-logo.svg similarity index 100% rename from dailyjs/text-chat/public/assets/daily-logo.svg rename to custom/text-chat/public/assets/daily-logo.svg diff --git a/dailyjs/text-chat/public/assets/join.mp3 b/custom/text-chat/public/assets/join.mp3 similarity index 100% rename from dailyjs/text-chat/public/assets/join.mp3 rename to custom/text-chat/public/assets/join.mp3 diff --git a/dailyjs/text-chat/public/assets/message.mp3 b/custom/text-chat/public/assets/message.mp3 similarity index 100% rename from dailyjs/text-chat/public/assets/message.mp3 rename to custom/text-chat/public/assets/message.mp3 diff --git a/dailyjs/text-chat/public/assets/pattern-bg.png b/custom/text-chat/public/assets/pattern-bg.png similarity index 100% rename from dailyjs/text-chat/public/assets/pattern-bg.png rename to custom/text-chat/public/assets/pattern-bg.png diff --git a/dailyjs/text-chat/next.config.js b/dailyjs/text-chat/next.config.js deleted file mode 100644 index 9a0a6ee..0000000 --- a/dailyjs/text-chat/next.config.js +++ /dev/null @@ -1,13 +0,0 @@ -const withPlugins = require('next-compose-plugins'); -const withTM = require('next-transpile-modules')([ - '@dailyjs/shared', - '@dailyjs/basic-call', -]); - -const packageJson = require('./package.json'); - -module.exports = withPlugins([withTM], { - env: { - PROJECT_TITLE: packageJson.description, - }, -}); diff --git a/package.json b/package.json index 6ac8fe8..f09ac5a 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "license": "MIT", "private": true, "workspaces": [ - "dailyjs/*", + "custom/*", "prebuilt-ui/*" ], "engines": {