@100mslive/roomkit-react 0.3.22-alpha.2 → 0.3.22-alpha.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (190) 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/{HLSView-XRGOWFRB.js → HLSView-CSOBLYBP.js} +24 -38
  12. package/dist/HLSView-CSOBLYBP.js.map +7 -0
  13. package/dist/{PDFView-RJK44WVO.css → HLSView-QZMIDGI4.css} +3 -3
  14. package/dist/{EmbedView-Y24VRONT.css.map → HLSView-QZMIDGI4.css.map} +1 -1
  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-4VBHLZDR.js +34747 -0
  48. package/dist/chunk-4VBHLZDR.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 +22687 -22873
  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 +5125 -5444
  57. package/dist/meta.esbuild.json +6238 -9055
  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 +159 -11
  65. package/src/Prebuilt/components/Notifications/PeerNotifications.tsx +2 -23
  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-5G5WGPIO.css +0 -2780
  80. package/dist/ConferenceScreen-5G5WGPIO.css.map +0 -7
  81. package/dist/ConferenceScreen-KS5URW6Z.js +0 -1778
  82. package/dist/ConferenceScreen-KS5URW6Z.js.map +0 -7
  83. package/dist/EmbedView-BCRQ3GHV.js +0 -17
  84. package/dist/EmbedView-BCRQ3GHV.js.map +0 -7
  85. package/dist/EmbedView-Y24VRONT.css +0 -2780
  86. package/dist/EmojiReaction-NA5F5DWN.js +0 -11
  87. package/dist/EmojiReaction-NA5F5DWN.js.map +0 -7
  88. package/dist/HLSView-DC43TOIW.css +0 -2780
  89. package/dist/HLSView-DC43TOIW.css.map +0 -7
  90. package/dist/HLSView-XRGOWFRB.js.map +0 -7
  91. package/dist/LeaveScreen-3OZN3MU3.css +0 -2780
  92. package/dist/LeaveScreen-3OZN3MU3.css.map +0 -7
  93. package/dist/LeaveScreen-PC4KB6OG.js +0 -556
  94. package/dist/LeaveScreen-PC4KB6OG.js.map +0 -7
  95. package/dist/MoreSettings-KTRYHDB2.css +0 -2780
  96. package/dist/MoreSettings-KTRYHDB2.css.map +0 -7
  97. package/dist/MoreSettings-XLNYT7PW.js +0 -16
  98. package/dist/MoreSettings-XLNYT7PW.js.map +0 -7
  99. package/dist/PDFView-LJ7I3K3H.js +0 -84
  100. package/dist/PDFView-LJ7I3K3H.js.map +0 -7
  101. package/dist/PDFView-RJK44WVO.css.map +0 -7
  102. package/dist/Polls-AULCHMLW.js +0 -1584
  103. package/dist/Polls-AULCHMLW.js.map +0 -7
  104. package/dist/Polls-K4GO5ZOC.css +0 -2780
  105. package/dist/Polls-K4GO5ZOC.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/RaiseHand-E4OVMBW6.js +0 -10
  111. package/dist/RaiseHand-E4OVMBW6.js.map +0 -7
  112. package/dist/RoleProminence-LHUXHLVI.css +0 -2780
  113. package/dist/RoleProminence-LHUXHLVI.css.map +0 -7
  114. package/dist/RoleProminence-RWJP2Z36.js +0 -116
  115. package/dist/RoleProminence-RWJP2Z36.js.map +0 -7
  116. package/dist/RoomDetailsPane-6BM2FPWW.css +0 -2780
  117. package/dist/RoomDetailsPane-6BM2FPWW.css.map +0 -7
  118. package/dist/RoomDetailsPane-7OP2CNJW.js +0 -53
  119. package/dist/RoomDetailsPane-7OP2CNJW.js.map +0 -7
  120. package/dist/ScreenshareLayout-RHTD2PQT.css +0 -2780
  121. package/dist/ScreenshareLayout-RHTD2PQT.css.map +0 -7
  122. package/dist/ScreenshareLayout-TM7DLYLH.js +0 -358
  123. package/dist/ScreenshareLayout-TM7DLYLH.js.map +0 -7
  124. package/dist/SidePaneTabs-T7BKZ2AT.js +0 -1354
  125. package/dist/SidePaneTabs-T7BKZ2AT.js.map +0 -7
  126. package/dist/SidePaneTabs-TBUPHNAU.css +0 -2780
  127. package/dist/SidePaneTabs-TBUPHNAU.css.map +0 -7
  128. package/dist/VBPicker-M5VYFEUB.css +0 -2780
  129. package/dist/VBPicker-M5VYFEUB.css.map +0 -7
  130. package/dist/VBPicker-TQLIL3NC.js +0 -322
  131. package/dist/VBPicker-TQLIL3NC.js.map +0 -7
  132. package/dist/WaitingView-TLJ52XYA.js +0 -10
  133. package/dist/WaitingView-TLJ52XYA.js.map +0 -7
  134. package/dist/WhiteboardLayout-PZZTM2FW.css +0 -2780
  135. package/dist/WhiteboardLayout-PZZTM2FW.css.map +0 -7
  136. package/dist/WhiteboardLayout-YYZ5UVGG.js +0 -96
  137. package/dist/WhiteboardLayout-YYZ5UVGG.js.map +0 -7
  138. package/dist/android-perm-1.png +0 -0
  139. package/dist/audio-level.png +0 -0
  140. package/dist/chunk-42XPBCZO.js +0 -487
  141. package/dist/chunk-42XPBCZO.js.map +0 -7
  142. package/dist/chunk-4BQ3AMVG.js +0 -16802
  143. package/dist/chunk-4BQ3AMVG.js.map +0 -7
  144. package/dist/chunk-4L5OKEIV.js +0 -90
  145. package/dist/chunk-4L5OKEIV.js.map +0 -7
  146. package/dist/chunk-6BX3VCVC.js +0 -6337
  147. package/dist/chunk-6BX3VCVC.js.map +0 -7
  148. package/dist/chunk-A3COGXMF.js +0 -114
  149. package/dist/chunk-A3COGXMF.js.map +0 -7
  150. package/dist/chunk-B3HHL3ND.js +0 -178
  151. package/dist/chunk-B3HHL3ND.js.map +0 -7
  152. package/dist/chunk-B5NLX6N6.js +0 -41
  153. package/dist/chunk-B5NLX6N6.js.map +0 -7
  154. package/dist/chunk-BXBPZGSP.js +0 -161
  155. package/dist/chunk-BXBPZGSP.js.map +0 -7
  156. package/dist/chunk-DVVFWHQG.js +0 -136
  157. package/dist/chunk-DVVFWHQG.js.map +0 -7
  158. package/dist/chunk-GV2DTYSU.js +0 -262
  159. package/dist/chunk-GV2DTYSU.js.map +0 -7
  160. package/dist/chunk-KF2YEUWU.js +0 -254
  161. package/dist/chunk-KF2YEUWU.js.map +0 -7
  162. package/dist/chunk-KQXTIHI6.js +0 -59
  163. package/dist/chunk-KQXTIHI6.js.map +0 -7
  164. package/dist/chunk-MR3HE7HV.js +0 -830
  165. package/dist/chunk-MR3HE7HV.js.map +0 -7
  166. package/dist/chunk-OQBTPJPO.js +0 -71
  167. package/dist/chunk-OQBTPJPO.js.map +0 -7
  168. package/dist/chunk-P7OOTR7P.js +0 -2595
  169. package/dist/chunk-P7OOTR7P.js.map +0 -7
  170. package/dist/chunk-THDU2DKP.js +0 -30
  171. package/dist/chunk-THDU2DKP.js.map +0 -7
  172. package/dist/chunk-U4QYH2BP.js +0 -98
  173. package/dist/chunk-U4QYH2BP.js.map +0 -7
  174. package/dist/chunk-USEEH3QW.js +0 -418
  175. package/dist/chunk-USEEH3QW.js.map +0 -7
  176. package/dist/chunk-UZW3C3ML.js +0 -171
  177. package/dist/chunk-UZW3C3ML.js.map +0 -7
  178. package/dist/chunk-YDIB6WKJ.js +0 -576
  179. package/dist/chunk-YDIB6WKJ.js.map +0 -7
  180. package/dist/chunk-ZFTULCCP.js +0 -62
  181. package/dist/chunk-ZFTULCCP.js.map +0 -7
  182. package/dist/empty-chat.svg +0 -12
  183. package/dist/ios-perm-0.png +0 -0
  184. package/dist/pdf-share.png +0 -0
  185. package/dist/screen-share.png +0 -0
  186. package/dist/transaction_error.svg +0 -12
  187. package/src/Prebuilt/components/Notifications/DeviceChangeNotifications.tsx +0 -18
  188. package/src/Prebuilt/components/Notifications/ErrorNotifications.tsx +0 -56
  189. package/src/Prebuilt/components/Notifications/MessageNotifications.tsx +0 -24
  190. package/src/Prebuilt/components/Notifications/PollNotificationModal.tsx +0 -71
@@ -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
  };