@100mslive/roomkit-react 0.3.22-alpha.3 → 0.3.22-alpha.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (192) hide show
  1. package/dist/Accordion/Accordion.d.ts +322 -134
  2. package/dist/Accordion/index.d.ts +322 -134
  3. package/dist/Avatar/Avatar.d.ts +141 -47
  4. package/dist/Button/Button.d.ts +141 -47
  5. package/dist/Checkbox/Checkbox.d.ts +322 -134
  6. package/dist/Collapsible/Collapsible.d.ts +483 -201
  7. package/dist/Divider/Divider.d.ts +322 -134
  8. package/dist/Dropdown/Dropdown.d.ts +1932 -804
  9. package/dist/Fieldset/Fieldset.d.ts +141 -47
  10. package/dist/Footer/Footer.d.ts +1288 -536
  11. package/dist/{PDFView-RMR33QH4.css → HLSView-CNAJ5SBZ.css} +3 -3
  12. package/dist/{LeaveScreen-ZAG5UJZL.css.map → HLSView-CNAJ5SBZ.css.map} +1 -1
  13. package/dist/{HLSView-EYGGK6BH.js → HLSView-YIWJTBCT.js} +24 -38
  14. package/dist/HLSView-YIWJTBCT.js.map +7 -0
  15. package/dist/IconButton/IconButton.d.ts +141 -47
  16. package/dist/Input/Input.d.ts +926 -362
  17. package/dist/Label/Label.d.ts +141 -47
  18. package/dist/Layout/Box.d.ts +141 -47
  19. package/dist/Layout/Flex.d.ts +141 -47
  20. package/dist/Link/Link.d.ts +141 -47
  21. package/dist/Modal/Dialog.d.ts +987 -329
  22. package/dist/Modal/DialogContent.d.ts +1127 -469
  23. package/dist/Pagination/StyledPagination.d.ts +644 -268
  24. package/dist/Popover/index.d.ts +483 -201
  25. package/dist/Prebuilt/IconButton.d.ts +322 -134
  26. package/dist/Prebuilt/components/Chat/ChatBody.d.ts +322 -134
  27. package/dist/Prebuilt/components/Leave/LeaveAtoms.d.ts +805 -335
  28. package/dist/Prebuilt/components/Settings/common.d.ts +322 -134
  29. package/dist/Progress/index.d.ts +322 -134
  30. package/dist/RadioGroup/RadioGroup.d.ts +483 -201
  31. package/dist/ReactSelect/ReactSelect.d.ts +1610 -670
  32. package/dist/Select/Select.d.ts +483 -201
  33. package/dist/Sheet/Sheet.d.ts +987 -329
  34. package/dist/Slider/Slider.d.ts +141 -47
  35. package/dist/Stats/StyledStats.d.ts +966 -402
  36. package/dist/Switch/Switch.d.ts +141 -47
  37. package/dist/Tabs/Tabs.d.ts +644 -268
  38. package/dist/Text/Text.d.ts +141 -47
  39. package/dist/TextArea/TextArea.d.ts +141 -47
  40. package/dist/Theme/base.config.d.ts +78 -26
  41. package/dist/Theme/stitches.config.d.ts +1514 -1067
  42. package/dist/TileMenu/StyledMenuTile.d.ts +1127 -469
  43. package/dist/Toast/Toast.d.ts +946 -382
  44. package/dist/Video/Video.d.ts +141 -47
  45. package/dist/VideoList/StyledVideoList.d.ts +483 -201
  46. package/dist/VideoTile/StyledVideoTile.d.ts +1610 -670
  47. package/dist/chunk-4UCH4XSJ.js +34759 -0
  48. package/dist/chunk-4UCH4XSJ.js.map +7 -0
  49. package/dist/index.cjs.css +2 -2
  50. package/dist/index.cjs.css.map +1 -1
  51. package/dist/index.cjs.js +22367 -22558
  52. package/dist/index.cjs.js.map +4 -4
  53. package/dist/index.css +2 -2
  54. package/dist/index.css.map +1 -1
  55. package/dist/index.js +15 -25
  56. package/dist/meta.cjs.json +5076 -5434
  57. package/dist/meta.esbuild.json +6290 -9146
  58. package/package.json +8 -8
  59. package/src/Avatar/Avatar.tsx +1 -1
  60. package/src/Popover/Popover.stories.tsx +1 -1
  61. package/src/Prebuilt/App.tsx +2 -6
  62. package/src/Prebuilt/components/Chat/Chat.tsx +8 -12
  63. package/src/Prebuilt/components/Chat/ChatFooter.tsx +1 -1
  64. package/src/Prebuilt/components/Notifications/Notifications.tsx +171 -13
  65. package/src/Prebuilt/components/Notifications/PeerNotifications.tsx +2 -9
  66. package/src/Prebuilt/components/Notifications/ReconnectNotifications.tsx +5 -1
  67. package/src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.tsx +5 -7
  68. package/src/Prebuilt/components/Notifications/TrackNotifications.tsx +1 -23
  69. package/src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx +5 -13
  70. package/src/Prebuilt/components/StatsForNerds.jsx +3 -32
  71. package/src/Prebuilt/components/VideoLayouts/GridLayout.tsx +31 -43
  72. package/src/Prebuilt/components/VideoLayouts/ProminenceLayout.tsx +2 -2
  73. package/src/Prebuilt/components/VirtualBackground/VBOption.tsx +1 -3
  74. package/src/Prebuilt/components/VirtualBackground/VBPicker.tsx +0 -6
  75. package/src/Prebuilt/layouts/HLSView.jsx +0 -1
  76. package/src/Prebuilt/layouts/PDFView.jsx +0 -1
  77. package/src/Prebuilt/layouts/SidePane.tsx +6 -12
  78. package/src/Prebuilt/layouts/VideoStreamingSection.tsx +34 -35
  79. package/dist/ConferenceScreen-CSVWECB5.js +0 -1778
  80. package/dist/ConferenceScreen-CSVWECB5.js.map +0 -7
  81. package/dist/ConferenceScreen-YRURU3RV.css +0 -2780
  82. package/dist/ConferenceScreen-YRURU3RV.css.map +0 -7
  83. package/dist/EmbedView-N2E4DZQA.js +0 -17
  84. package/dist/EmbedView-N2E4DZQA.js.map +0 -7
  85. package/dist/EmbedView-S54NTHF5.css +0 -2780
  86. package/dist/EmbedView-S54NTHF5.css.map +0 -7
  87. package/dist/EmojiReaction-3X4ST4AU.js +0 -11
  88. package/dist/EmojiReaction-3X4ST4AU.js.map +0 -7
  89. package/dist/HLSView-EYGGK6BH.js.map +0 -7
  90. package/dist/HLSView-LBTFLMI4.css +0 -2780
  91. package/dist/HLSView-LBTFLMI4.css.map +0 -7
  92. package/dist/LeaveScreen-D6XU64JL.js +0 -556
  93. package/dist/LeaveScreen-D6XU64JL.js.map +0 -7
  94. package/dist/LeaveScreen-ZAG5UJZL.css +0 -2780
  95. package/dist/MoreSettings-R7B4BSNT.css +0 -2780
  96. package/dist/MoreSettings-R7B4BSNT.css.map +0 -7
  97. package/dist/MoreSettings-TBJVM7OY.js +0 -16
  98. package/dist/MoreSettings-TBJVM7OY.js.map +0 -7
  99. package/dist/PDFView-JOIJDP65.js +0 -84
  100. package/dist/PDFView-JOIJDP65.js.map +0 -7
  101. package/dist/PDFView-RMR33QH4.css.map +0 -7
  102. package/dist/Polls-IN3V2HFI.js +0 -1584
  103. package/dist/Polls-IN3V2HFI.js.map +0 -7
  104. package/dist/Polls-JW7JWGTE.css +0 -2780
  105. package/dist/Polls-JW7JWGTE.css.map +0 -7
  106. package/dist/Prebuilt/components/Notifications/DeviceChangeNotifications.d.ts +0 -1
  107. package/dist/Prebuilt/components/Notifications/ErrorNotifications.d.ts +0 -1
  108. package/dist/Prebuilt/components/Notifications/MessageNotifications.d.ts +0 -1
  109. package/dist/Prebuilt/components/Notifications/PollNotificationModal.d.ts +0 -1
  110. package/dist/Prebuilt/components/Notifications/RoleChangeNotification.d.ts +0 -1
  111. package/dist/RaiseHand-WES4KKMD.js +0 -10
  112. package/dist/RaiseHand-WES4KKMD.js.map +0 -7
  113. package/dist/RoleProminence-4ZBDBCMU.css +0 -2780
  114. package/dist/RoleProminence-4ZBDBCMU.css.map +0 -7
  115. package/dist/RoleProminence-PB32DLIB.js +0 -116
  116. package/dist/RoleProminence-PB32DLIB.js.map +0 -7
  117. package/dist/RoomDetailsPane-CZH2SNLE.js +0 -53
  118. package/dist/RoomDetailsPane-CZH2SNLE.js.map +0 -7
  119. package/dist/RoomDetailsPane-XWH2KEFI.css +0 -2780
  120. package/dist/RoomDetailsPane-XWH2KEFI.css.map +0 -7
  121. package/dist/ScreenshareLayout-XVENPVK3.js +0 -358
  122. package/dist/ScreenshareLayout-XVENPVK3.js.map +0 -7
  123. package/dist/ScreenshareLayout-YUW3KHAB.css +0 -2780
  124. package/dist/ScreenshareLayout-YUW3KHAB.css.map +0 -7
  125. package/dist/SidePaneTabs-QXCDHOGG.js +0 -1354
  126. package/dist/SidePaneTabs-QXCDHOGG.js.map +0 -7
  127. package/dist/SidePaneTabs-WQGVOWRP.css +0 -2780
  128. package/dist/SidePaneTabs-WQGVOWRP.css.map +0 -7
  129. package/dist/VBPicker-XN74N67R.js +0 -322
  130. package/dist/VBPicker-XN74N67R.js.map +0 -7
  131. package/dist/VBPicker-YDM2YIOM.css +0 -2780
  132. package/dist/VBPicker-YDM2YIOM.css.map +0 -7
  133. package/dist/WaitingView-77PRTIBV.js +0 -10
  134. package/dist/WaitingView-77PRTIBV.js.map +0 -7
  135. package/dist/WhiteboardLayout-FZC7SOSG.js +0 -96
  136. package/dist/WhiteboardLayout-FZC7SOSG.js.map +0 -7
  137. package/dist/WhiteboardLayout-MNTUWEVK.css +0 -2780
  138. package/dist/WhiteboardLayout-MNTUWEVK.css.map +0 -7
  139. package/dist/android-perm-1.png +0 -0
  140. package/dist/audio-level.png +0 -0
  141. package/dist/chunk-26D5FDBW.js +0 -16812
  142. package/dist/chunk-26D5FDBW.js.map +0 -7
  143. package/dist/chunk-2J5WS52X.js +0 -2595
  144. package/dist/chunk-2J5WS52X.js.map +0 -7
  145. package/dist/chunk-2LWOQMYY.js +0 -30
  146. package/dist/chunk-2LWOQMYY.js.map +0 -7
  147. package/dist/chunk-3MRQJSIY.js +0 -171
  148. package/dist/chunk-3MRQJSIY.js.map +0 -7
  149. package/dist/chunk-4X4WB7X3.js +0 -98
  150. package/dist/chunk-4X4WB7X3.js.map +0 -7
  151. package/dist/chunk-7QZJMUHM.js +0 -90
  152. package/dist/chunk-7QZJMUHM.js.map +0 -7
  153. package/dist/chunk-ABCV7TX5.js +0 -71
  154. package/dist/chunk-ABCV7TX5.js.map +0 -7
  155. package/dist/chunk-BQOT4DK7.js +0 -418
  156. package/dist/chunk-BQOT4DK7.js.map +0 -7
  157. package/dist/chunk-ENHSO6YN.js +0 -6337
  158. package/dist/chunk-ENHSO6YN.js.map +0 -7
  159. package/dist/chunk-JKWX7W4K.js +0 -161
  160. package/dist/chunk-JKWX7W4K.js.map +0 -7
  161. package/dist/chunk-LO4BXA4G.js +0 -114
  162. package/dist/chunk-LO4BXA4G.js.map +0 -7
  163. package/dist/chunk-MRVWNFXC.js +0 -59
  164. package/dist/chunk-MRVWNFXC.js.map +0 -7
  165. package/dist/chunk-OA4HW7HW.js +0 -262
  166. package/dist/chunk-OA4HW7HW.js.map +0 -7
  167. package/dist/chunk-PJQSPAFZ.js +0 -178
  168. package/dist/chunk-PJQSPAFZ.js.map +0 -7
  169. package/dist/chunk-QHQKY35W.js +0 -830
  170. package/dist/chunk-QHQKY35W.js.map +0 -7
  171. package/dist/chunk-QKXHQ6DV.js +0 -254
  172. package/dist/chunk-QKXHQ6DV.js.map +0 -7
  173. package/dist/chunk-RTWNTT77.js +0 -62
  174. package/dist/chunk-RTWNTT77.js.map +0 -7
  175. package/dist/chunk-TBXRX6MK.js +0 -576
  176. package/dist/chunk-TBXRX6MK.js.map +0 -7
  177. package/dist/chunk-TCOPR3BK.js +0 -487
  178. package/dist/chunk-TCOPR3BK.js.map +0 -7
  179. package/dist/chunk-VKORP2LF.js +0 -41
  180. package/dist/chunk-VKORP2LF.js.map +0 -7
  181. package/dist/chunk-YYVDCP5Z.js +0 -136
  182. package/dist/chunk-YYVDCP5Z.js.map +0 -7
  183. package/dist/empty-chat.svg +0 -12
  184. package/dist/ios-perm-0.png +0 -0
  185. package/dist/pdf-share.png +0 -0
  186. package/dist/screen-share.png +0 -0
  187. package/dist/transaction_error.svg +0 -12
  188. package/src/Prebuilt/components/Notifications/DeviceChangeNotifications.tsx +0 -18
  189. package/src/Prebuilt/components/Notifications/ErrorNotifications.tsx +0 -56
  190. package/src/Prebuilt/components/Notifications/MessageNotifications.tsx +0 -24
  191. package/src/Prebuilt/components/Notifications/PollNotificationModal.tsx +0 -71
  192. package/src/Prebuilt/components/Notifications/RoleChangeNotification.tsx +0 -24
@@ -1,4 +1,4 @@
1
- import React, { Suspense, useEffect, useMemo, useState } from 'react';
1
+ import React, { useEffect, useMemo, useState } from 'react';
2
2
  import { GridVideoTileLayout } from '@100mslive/types-prebuilt/elements/video_tile_layout';
3
3
  import {
4
4
  selectLocalPeerID,
@@ -9,22 +9,16 @@ import {
9
9
  useHMSStore,
10
10
  useHMSVanillaStore,
11
11
  } from '@100mslive/react-sdk';
12
- import FullPageProgress from '../FullPageProgress';
12
+ // @ts-ignore: No implicit Any
13
13
  import { EqualProminence } from './EqualProminence';
14
+ import { RoleProminence } from './RoleProminence';
15
+ import { ScreenshareLayout } from './ScreenshareLayout';
16
+ import { WhiteboardLayout } from './WhiteboardLayout';
14
17
  // @ts-ignore: No implicit Any
15
18
  import { usePinnedTrack, useSetAppDataByKey } from '../AppData/useUISettings';
16
19
  import { VideoTileContext } from '../hooks/useVideoTileLayout';
17
20
  import PeersSorter from '../../common/PeersSorter';
18
21
  import { APP_DATA } from '../../common/constants';
19
- const RoleProminence = React.lazy(() =>
20
- import('./RoleProminence').then(module => ({ default: module.RoleProminence })),
21
- );
22
- const ScreenshareLayout = React.lazy(() =>
23
- import('./ScreenshareLayout').then(module => ({ default: module.ScreenshareLayout })),
24
- );
25
- const WhiteboardLayout = React.lazy(() =>
26
- import('./WhiteboardLayout').then(module => ({ default: module.WhiteboardLayout })),
27
- );
28
22
 
29
23
  export type TileCustomisationProps = {
30
24
  hide_participant_name_on_tile: boolean;
@@ -114,44 +108,38 @@ export const GridLayout = ({
114
108
 
115
109
  if (peerSharing) {
116
110
  return (
117
- <Suspense fallback={<FullPageProgress />}>
118
- <VideoTileContext.Provider value={tileLayout}>
119
- <ScreenshareLayout
120
- peers={sortedPeers}
121
- onPageSize={setPageSize}
122
- onPageChange={setMainPage}
123
- edgeToEdge={edge_to_edge}
124
- />
125
- </VideoTileContext.Provider>
126
- </Suspense>
111
+ <VideoTileContext.Provider value={tileLayout}>
112
+ <ScreenshareLayout
113
+ peers={sortedPeers}
114
+ onPageSize={setPageSize}
115
+ onPageChange={setMainPage}
116
+ edgeToEdge={edge_to_edge}
117
+ />
118
+ </VideoTileContext.Provider>
127
119
  );
128
120
  } else if (whiteboard?.open) {
129
121
  return (
130
- <Suspense fallback={<FullPageProgress />}>
131
- <VideoTileContext.Provider value={tileLayout}>
132
- <WhiteboardLayout
133
- peers={sortedPeers}
134
- onPageSize={setPageSize}
135
- onPageChange={setMainPage}
136
- edgeToEdge={edge_to_edge}
137
- />
138
- </VideoTileContext.Provider>
139
- </Suspense>
122
+ <VideoTileContext.Provider value={tileLayout}>
123
+ <WhiteboardLayout
124
+ peers={sortedPeers}
125
+ onPageSize={setPageSize}
126
+ onPageChange={setMainPage}
127
+ edgeToEdge={edge_to_edge}
128
+ />
129
+ </VideoTileContext.Provider>
140
130
  );
141
131
  } else if (isRoleProminence) {
142
132
  return (
143
- <Suspense fallback={<FullPageProgress />}>
144
- <VideoTileContext.Provider value={tileLayout}>
145
- <RoleProminence
146
- peers={sortedPeers}
147
- onPageSize={setPageSize}
148
- onPageChange={setMainPage}
149
- prominentRoles={prominentRoles}
150
- isInsetEnabled={isInsetEnabled}
151
- edgeToEdge={edge_to_edge}
152
- />
153
- </VideoTileContext.Provider>
154
- </Suspense>
133
+ <VideoTileContext.Provider value={tileLayout}>
134
+ <RoleProminence
135
+ peers={sortedPeers}
136
+ onPageSize={setPageSize}
137
+ onPageChange={setMainPage}
138
+ prominentRoles={prominentRoles}
139
+ isInsetEnabled={isInsetEnabled}
140
+ edgeToEdge={edge_to_edge}
141
+ />
142
+ </VideoTileContext.Provider>
155
143
  );
156
144
  }
157
145
  return (
@@ -70,9 +70,9 @@ const SecondarySection = ({
70
70
  rootCSS={{
71
71
  padding: 0,
72
72
  maxWidth: 240,
73
- aspectRatio: '16 / 9',
73
+ aspectRatio: 16 / 9,
74
74
  ...(hasSidebar ? { w: '100%' } : { h: '100%' }),
75
- '@md': { aspectRatio: '1' },
75
+ '@md': { aspectRatio: 1 },
76
76
  }}
77
77
  objectFit="contain"
78
78
  {...tileLayoutProps}
@@ -25,9 +25,7 @@ const Root = ({
25
25
  bg: '$surface_bright',
26
26
  border: `4px solid ${isActive ? '$primary_default' : '$surface_dim'}`,
27
27
  cursor: 'pointer',
28
- '@media (hover:hover)': {
29
- '&:hover': { border: '4px solid $primary_dim' },
30
- },
28
+ '&:hover': { border: '4px solid $primary_dim' },
31
29
  ...(mediaURL ? { height: '$20', backgroundImage: `url("${mediaURL}")`, backgroundSize: 'cover' } : {}),
32
30
  }}
33
31
  onClick={async () => {
@@ -180,9 +180,6 @@ export const VBPicker = ({ backgroundMedia = [] }: { backgroundMedia: VirtualBac
180
180
  onClick: async () => {
181
181
  await VBHandler.removeEffects();
182
182
  hmsActions.setAppData(APP_DATA.background, HMSVirtualBackgroundTypes.NONE);
183
- if (isMobile) {
184
- toggleVB();
185
- }
186
183
  },
187
184
  supported: true,
188
185
  },
@@ -238,9 +235,6 @@ export const VBPicker = ({ backgroundMedia = [] }: { backgroundMedia: VirtualBac
238
235
  onClick: async () => {
239
236
  await VBHandler?.setBackground(mediaURL);
240
237
  hmsActions.setAppData(APP_DATA.background, mediaURL);
241
- if (isMobile) {
242
- toggleVB();
243
- }
244
238
  },
245
239
  supported: true,
246
240
  }))}
@@ -286,7 +286,6 @@ const HLSView = () => {
286
286
  hlsPlayer.reset();
287
287
  };
288
288
  }
289
- // eslint-disable-next-line react-hooks/exhaustive-deps
290
289
  }, [hlsUrl, vanillaStore, hmsActions]);
291
290
 
292
291
  /**
@@ -19,7 +19,6 @@ export const PDFView = () => {
19
19
  return () => {
20
20
  resetConfig();
21
21
  };
22
- // eslint-disable-next-line react-hooks/exhaustive-deps
23
22
  }, []);
24
23
  useEffect(() => {
25
24
  (async () => {
@@ -1,10 +1,14 @@
1
- import React, { Suspense, useEffect } from 'react';
1
+ import React, { useEffect } from 'react';
2
2
  import { useMedia } from 'react-use';
3
3
  import { match } from 'ts-pattern';
4
4
  import { selectAppData, selectVideoTrackByPeerID, useHMSStore } from '@100mslive/react-sdk';
5
+ import { Polls } from '../components/Polls/Polls';
6
+ import { RoomDetailsPane } from '../components/RoomDetails/RoomDetailsPane';
5
7
  import { LayoutMode } from '../components/Settings/LayoutSettings';
8
+ import { SidePaneTabs } from '../components/SidePaneTabs';
6
9
  import { TileCustomisationProps } from '../components/VideoLayouts/GridLayout';
7
10
  import VideoTile from '../components/VideoTile';
11
+ import { VBPicker } from '../components/VirtualBackground/VBPicker';
8
12
  import { Flex } from '../../Layout';
9
13
  import { config as cssConfig, styled } from '../../Theme';
10
14
  // @ts-ignore: No implicit Any
@@ -18,16 +22,6 @@ import {
18
22
  import { useLandscapeHLSStream, useMobileHLSStream } from '../common/hooks';
19
23
  import { translateAcross } from '../../utils';
20
24
  import { APP_DATA, SIDE_PANE_OPTIONS, UI_SETTINGS } from '../common/constants';
21
- const SidePaneTabs = React.lazy(() =>
22
- import('../components/SidePaneTabs').then(module => ({ default: module.SidePaneTabs })),
23
- );
24
- const Polls = React.lazy(() => import('../components/Polls/Polls').then(module => ({ default: module.Polls })));
25
- const RoomDetailsPane = React.lazy(() =>
26
- import('../components/RoomDetails/RoomDetailsPane').then(module => ({ default: module.RoomDetailsPane })),
27
- );
28
- const VBPicker = React.lazy(() =>
29
- import('../components/VirtualBackground/VBPicker').then(module => ({ default: module.VBPicker })),
30
- );
31
25
 
32
26
  const Wrapper = styled('div', {
33
27
  w: '$100',
@@ -239,7 +233,7 @@ const SidePane = ({
239
233
  {...tileLayout}
240
234
  />
241
235
  )}
242
- <Suspense fallback={<></>}>{SidepaneComponent}</Suspense>
236
+ {SidepaneComponent}
243
237
  </Flex>
244
238
  );
245
239
  };
@@ -19,7 +19,13 @@ import FullPageProgress from '../components/FullPageProgress';
19
19
  import { GridLayout } from '../components/VideoLayouts/GridLayout';
20
20
  import { Box, Flex } from '../../Layout';
21
21
  import { config } from '../../Theme';
22
+ // @ts-ignore: No implicit Any
23
+ import { EmbedView } from './EmbedView';
24
+ // @ts-ignore: No implicit Any
25
+ import { PDFView } from './PDFView';
22
26
  import SidePane from './SidePane';
27
+ // @ts-ignore: No implicit Any
28
+ import { WaitingView } from './WaitingView';
23
29
  import { CaptionsViewer } from '../plugins/CaptionsViewer';
24
30
  // @ts-ignore: No implicit Any
25
31
  import { usePDFConfig, useUrlToEmbed } from '../components/AppData/useUISettings';
@@ -28,11 +34,6 @@ import { useLandscapeHLSStream, useMobileHLSStream, useWaitingRoomInfo } from '.
28
34
  import { SESSION_STORE_KEY } from '../common/constants';
29
35
  // @ts-ignore: No implicit Any
30
36
  const HLSView = React.lazy(() => import('./HLSView'));
31
- // @ts-ignore: No implicit Any
32
- const EmbedView = React.lazy(() => import('./EmbedView').then(module => ({ default: module.EmbedView })));
33
- // @ts-ignore: No implicit Any
34
- const PDFView = React.lazy(() => import('./PDFView').then(module => ({ default: module.PDFView })));
35
- const WaitingView = React.lazy(() => import('./WaitingView').then(module => ({ default: module.WaitingView })));
36
37
 
37
38
  export const VideoStreamingSection = ({
38
39
  screenType,
@@ -78,18 +79,18 @@ export const VideoStreamingSection = ({
78
79
  }
79
80
 
80
81
  return (
81
- <Flex
82
- css={{
83
- size: '100%',
84
- position: 'relative',
85
- gap: isMobileHLSStream || isLandscapeHLSStream ? '0' : '$4',
86
- }}
87
- direction={match<Record<string, boolean>, 'row' | 'column'>({ isLandscapeHLSStream, isMobileHLSStream })
88
- .with({ isLandscapeHLSStream: true }, () => 'row')
89
- .with({ isMobileHLSStream: true }, () => 'column')
90
- .otherwise(() => 'row')}
91
- >
92
- <Suspense fallback={<FullPageProgress />}>
82
+ <Suspense fallback={<FullPageProgress />}>
83
+ <Flex
84
+ css={{
85
+ size: '100%',
86
+ position: 'relative',
87
+ gap: isMobileHLSStream || isLandscapeHLSStream ? '0' : '$4',
88
+ }}
89
+ direction={match<Record<string, boolean>, 'row' | 'column'>({ isLandscapeHLSStream, isMobileHLSStream })
90
+ .with({ isLandscapeHLSStream: true }, () => 'row')
91
+ .with({ isMobileHLSStream: true }, () => 'column')
92
+ .otherwise(() => 'row')}
93
+ >
93
94
  {match({
94
95
  screenType,
95
96
  isNotAllowedToPublish,
@@ -141,29 +142,27 @@ export const VideoStreamingSection = ({
141
142
  return <GridLayout {...(elements as DefaultConferencingScreen_Elements)?.video_tile_layout?.grid} />;
142
143
  })}
143
144
  <CaptionsViewer setDefaultPosition={setCaptionPosition} defaultPosition={captionPosition} />
144
- </Suspense>
145
- <Box
146
- css={{
147
- flex: match({ isLandscapeHLSStream, isMobileHLSStream })
148
- .with({ isLandscapeHLSStream: true }, () => '1 1 0')
149
- .with({ isMobileHLSStream: true }, () => '2 1 0')
150
- .otherwise(() => undefined),
151
- position: 'relative',
152
- height: !isMobileHLSStream ? '100%' : undefined,
153
- maxHeight: '100%',
154
- '&:empty': { display: 'none' },
155
- overflowY: 'clip',
156
- }}
157
- >
158
- <Suspense fallback={<></>}>
145
+ <Box
146
+ css={{
147
+ flex: match({ isLandscapeHLSStream, isMobileHLSStream })
148
+ .with({ isLandscapeHLSStream: true }, () => '1 1 0')
149
+ .with({ isMobileHLSStream: true }, () => '2 1 0')
150
+ .otherwise(() => undefined),
151
+ position: 'relative',
152
+ height: !isMobileHLSStream ? '100%' : undefined,
153
+ maxHeight: '100%',
154
+ '&:empty': { display: 'none' },
155
+ overflowY: 'clip',
156
+ }}
157
+ >
159
158
  <SidePane
160
159
  screenType={screenType}
161
160
  // @ts-ignore
162
161
  tileProps={(elements as DefaultConferencingScreen_Elements)?.video_tile_layout?.grid}
163
162
  hideControls={hideControls}
164
163
  />
165
- </Suspense>
166
- </Box>
167
- </Flex>
164
+ </Box>
165
+ </Flex>
166
+ </Suspense>
168
167
  );
169
168
  };