@100mslive/roomkit-react 0.3.11-alpha.7 → 0.3.11-alpha.9

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "prebuilt",
11
11
  "roomkit"
12
12
  ],
13
- "version": "0.3.11-alpha.7",
13
+ "version": "0.3.11-alpha.9",
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.7",
77
+ "@100mslive/hls-player": "0.3.11-alpha.9",
78
78
  "@100mslive/hms-noise-cancellation": "0.0.1",
79
- "@100mslive/hms-virtual-background": "1.13.11-alpha.7",
80
- "@100mslive/hms-whiteboard": "0.0.1-alpha.7",
81
- "@100mslive/react-icons": "0.10.11-alpha.7",
82
- "@100mslive/react-sdk": "0.10.11-alpha.7",
79
+ "@100mslive/hms-virtual-background": "1.13.11-alpha.9",
80
+ "@100mslive/hms-whiteboard": "0.0.1-alpha.9",
81
+ "@100mslive/react-icons": "0.10.11-alpha.9",
82
+ "@100mslive/react-sdk": "0.10.11-alpha.9",
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": "361d36f30fc8719e81d889901337ef3936cd88bc"
118
+ "gitHead": "75f465ed5c9e1c1f89f3eb1e9f30c3e104c55db4"
119
119
  }
@@ -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) {