@100mslive/roomkit-react 0.3.11-alpha.6 → 0.3.11-alpha.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "prebuilt",
11
11
  "roomkit"
12
12
  ],
13
- "version": "0.3.11-alpha.6",
13
+ "version": "0.3.11-alpha.8",
14
14
  "author": "100ms",
15
15
  "license": "MIT",
16
16
  "repository": {
@@ -74,12 +74,12 @@
74
74
  "react": ">=17.0.2 <19.0.0"
75
75
  },
76
76
  "dependencies": {
77
- "@100mslive/hls-player": "0.3.11-alpha.6",
77
+ "@100mslive/hls-player": "0.3.11-alpha.8",
78
78
  "@100mslive/hms-noise-cancellation": "0.0.1",
79
- "@100mslive/hms-virtual-background": "1.13.11-alpha.6",
80
- "@100mslive/hms-whiteboard": "0.0.1-alpha.6",
81
- "@100mslive/react-icons": "0.10.11-alpha.6",
82
- "@100mslive/react-sdk": "0.10.11-alpha.6",
79
+ "@100mslive/hms-virtual-background": "1.13.11-alpha.8",
80
+ "@100mslive/hms-whiteboard": "0.0.1-alpha.8",
81
+ "@100mslive/react-icons": "0.10.11-alpha.8",
82
+ "@100mslive/react-sdk": "0.10.11-alpha.8",
83
83
  "@100mslive/types-prebuilt": "0.12.8",
84
84
  "@emoji-mart/data": "^1.0.6",
85
85
  "@emoji-mart/react": "^1.0.1",
@@ -115,5 +115,5 @@
115
115
  "uuid": "^8.3.2",
116
116
  "worker-timers": "^7.0.40"
117
117
  },
118
- "gitHead": "951030b3ea1ecbfba6a716713b329bb3a56b7653"
118
+ "gitHead": "d1c0c9fe66f723e73a9356160b2107c6ac7ae27a"
119
119
  }
@@ -66,8 +66,8 @@ const initialAppData = {
66
66
  [POLL_STATE.pollInView]: '',
67
67
  [POLL_STATE.view]: '',
68
68
  },
69
- // by default on because of on demand now
70
- [APP_DATA.caption]: true,
69
+ // by default on because of on demand now, for beam disabled
70
+ [APP_DATA.caption]: false,
71
71
  };
72
72
 
73
73
  export const AppData = React.memo(() => {
@@ -17,12 +17,14 @@ import { ToastManager } from '../Toast/ToastManager';
17
17
  import { EqualProminence } from './EqualProminence';
18
18
  import { RoleProminence } from './RoleProminence';
19
19
  import { ScreenshareLayout } from './ScreenshareLayout';
20
- import { WhiteboardLayout } from './WhiteboardLayout';
21
20
  // @ts-ignore: No implicit Any
22
21
  import { usePinnedTrack, useSetAppDataByKey } from '../AppData/useUISettings';
23
22
  import { VideoTileContext } from '../hooks/useVideoTileLayout';
24
23
  import PeersSorter from '../../common/PeersSorter';
25
24
  import { APP_DATA } from '../../common/constants';
25
+ const WhiteboardLayout = React.lazy(() =>
26
+ import('./WhiteboardLayout').then(module => ({ default: module.WhiteboardLayout })),
27
+ );
26
28
 
27
29
  export type TileCustomisationProps = {
28
30
  hide_participant_name_on_tile: boolean;
@@ -136,12 +138,14 @@ export const GridLayout = ({
136
138
  } else if (whiteboard?.open) {
137
139
  return (
138
140
  <VideoTileContext.Provider value={tileLayout}>
139
- <WhiteboardLayout
140
- peers={sortedPeers}
141
- onPageSize={setPageSize}
142
- onPageChange={setMainPage}
143
- edgeToEdge={edge_to_edge}
144
- />
141
+ <React.Suspense>
142
+ <WhiteboardLayout
143
+ peers={sortedPeers}
144
+ onPageSize={setPageSize}
145
+ onPageChange={setMainPage}
146
+ edgeToEdge={edge_to_edge}
147
+ />
148
+ </React.Suspense>
145
149
  </VideoTileContext.Provider>
146
150
  );
147
151
  } else if (isRoleProminence) {