diff --git a/dailyjs/.gitignore b/dailyjs/.gitignore new file mode 100644 index 0000000..058f0ec --- /dev/null +++ b/dailyjs/.gitignore @@ -0,0 +1,35 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +node_modules +.pnp +.pnp.js + +# testing +/coverage + +# next.js +.next +out + +# production +build + +# misc +.DS_Store +*.pem + +# debug +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# local env files +.env +.env.local +.env.development.local +.env.test.local +.env.production.local + +# vercel +.vercel \ No newline at end of file diff --git a/dailyjs/README.md b/dailyjs/README.md index 4f3c0de..81f366e 100644 --- a/dailyjs/README.md +++ b/dailyjs/README.md @@ -20,6 +20,10 @@ Record a call video and audio using both cloud and local modes Send emoji reactions to all clients using sendAppMessage +### [📃 Pagination](./pagination) + +Demonstrates using manual track management to support larger call sizes + --- ## Getting started diff --git a/dailyjs/basic-call/components/App/App.js b/dailyjs/basic-call/components/App/App.js index d31c62f..fa7c678 100644 --- a/dailyjs/basic-call/components/App/App.js +++ b/dailyjs/basic-call/components/App/App.js @@ -3,16 +3,18 @@ import ExpiryTimer from '@dailyjs/shared/components/ExpiryTimer'; import { useCallState } from '@dailyjs/shared/contexts/CallProvider'; import { useCallUI } from '@dailyjs/shared/hooks/useCallUI'; +import PropTypes from 'prop-types'; import Room from '../Room'; import { Asides } from './Asides'; import { Modals } from './Modals'; -export const App = () => { +export const App = ({ customComponentForState }) => { const { roomExp, state } = useCallState(); const componentForState = useCallUI({ state, room: () => , + ...customComponentForState, }); // Memoize children to avoid unnecassary renders from HOC @@ -42,4 +44,8 @@ export const App = () => { ); }; +App.propTypes = { + customComponentForState: PropTypes.any, +}; + export default App; diff --git a/dailyjs/basic-call/components/Room/Header.js b/dailyjs/basic-call/components/Room/Header.js index d3eff5a..e1f05ac 100644 --- a/dailyjs/basic-call/components/Room/Header.js +++ b/dailyjs/basic-call/components/Room/Header.js @@ -13,7 +13,7 @@ export const Header = () => {
Basic call demo
{`${participantCount} ${ - participantCount > 1 ? 'participants' : 'participant' + participantCount === 1 ? 'participant' : 'participants' }`}
{customCapsule && ( diff --git a/dailyjs/basic-call/components/Room/RoomContainer.js b/dailyjs/basic-call/components/Room/RoomContainer.js index da0071f..e3e674d 100644 --- a/dailyjs/basic-call/components/Room/RoomContainer.js +++ b/dailyjs/basic-call/components/Room/RoomContainer.js @@ -6,7 +6,7 @@ import useJoinSound from '@dailyjs/shared/hooks/useJoinSound'; import PropTypes from 'prop-types'; import WaitingRoom from '../WaitingRoom'; -const RoomContainer = ({ children }) => { +export const RoomContainer = ({ children }) => { const { localParticipant } = useParticipants(); const isOwner = !!localParticipant?.isOwner; @@ -17,10 +17,8 @@ const RoomContainer = ({ children }) => { <> {/* Show waiting room notification & modal if call owner */} {isOwner && } - {/* Tray buttons */} - {/* Audio tags */}