@100mslive/roomkit-react 0.2.8-alpha.12 → 0.2.8-alpha.14

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.js CHANGED
@@ -62,7 +62,7 @@ import {
62
62
  theme,
63
63
  useBorderAudioLevel,
64
64
  useTheme
65
- } from "./chunk-B22UTHMR.js";
65
+ } from "./chunk-25BO27QT.js";
66
66
  export {
67
67
  Accordion,
68
68
  AudioLevel,
@@ -7784,7 +7784,7 @@
7784
7784
  "imports": []
7785
7785
  },
7786
7786
  "src/Prebuilt/components/Chat/EmptyChat.tsx": {
7787
- "bytes": 1885,
7787
+ "bytes": 2142,
7788
7788
  "imports": [
7789
7789
  {
7790
7790
  "path": "react",
@@ -7826,6 +7826,11 @@
7826
7826
  "kind": "import-statement",
7827
7827
  "original": "../hooks/useChatBlacklist"
7828
7828
  },
7829
+ {
7830
+ "path": "src/Prebuilt/common/hooks.ts",
7831
+ "kind": "import-statement",
7832
+ "original": "../../common/hooks"
7833
+ },
7829
7834
  {
7830
7835
  "path": "<define:process.env>",
7831
7836
  "kind": "import-statement",
@@ -8446,7 +8451,7 @@
8446
8451
  "format": "esm"
8447
8452
  },
8448
8453
  "src/Prebuilt/components/Chat/Chat.tsx": {
8449
- "bytes": 4861,
8454
+ "bytes": 5393,
8450
8455
  "imports": [
8451
8456
  {
8452
8457
  "path": "react",
@@ -9306,7 +9311,7 @@
9306
9311
  "format": "esm"
9307
9312
  },
9308
9313
  "src/Prebuilt/layouts/SidePane.tsx": {
9309
- "bytes": 6417,
9314
+ "bytes": 6575,
9310
9315
  "imports": [
9311
9316
  {
9312
9317
  "path": "react",
@@ -11315,7 +11320,7 @@
11315
11320
  "format": "esm"
11316
11321
  },
11317
11322
  "src/Prebuilt/layouts/HLSView.jsx": {
11318
- "bytes": 26567,
11323
+ "bytes": 26749,
11319
11324
  "imports": [
11320
11325
  {
11321
11326
  "path": "react",
@@ -13607,7 +13612,7 @@
13607
13612
  "imports": [],
13608
13613
  "exports": [],
13609
13614
  "inputs": {},
13610
- "bytes": 3261627
13615
+ "bytes": 3263322
13611
13616
  },
13612
13617
  "dist/index.cjs.js": {
13613
13618
  "imports": [
@@ -16516,7 +16521,7 @@
16516
16521
  "entryPoint": "src/index.ts",
16517
16522
  "inputs": {
16518
16523
  "<define:process.env>": {
16519
- "bytesInOutput": 18259
16524
+ "bytesInOutput": 18257
16520
16525
  },
16521
16526
  "src/Theme/base.config.ts": {
16522
16527
  "bytesInOutput": 6104
@@ -17209,7 +17214,7 @@
17209
17214
  "bytesInOutput": 2366
17210
17215
  },
17211
17216
  "src/Prebuilt/components/Chat/EmptyChat.tsx": {
17212
- "bytesInOutput": 2348
17217
+ "bytesInOutput": 2555
17213
17218
  },
17214
17219
  "src/Prebuilt/components/hooks/usePinnedBy.tsx": {
17215
17220
  "bytesInOutput": 926
@@ -17245,7 +17250,7 @@
17245
17250
  "bytesInOutput": 6106
17246
17251
  },
17247
17252
  "src/Prebuilt/components/Chat/Chat.tsx": {
17248
- "bytesInOutput": 5683
17253
+ "bytesInOutput": 6161
17249
17254
  },
17250
17255
  "src/Prebuilt/components/Footer/PaginatedParticipants.tsx": {
17251
17256
  "bytesInOutput": 5344
@@ -17290,7 +17295,7 @@
17290
17295
  "bytesInOutput": 8756
17291
17296
  },
17292
17297
  "src/Prebuilt/layouts/SidePane.tsx": {
17293
- "bytesInOutput": 7572
17298
+ "bytesInOutput": 7752
17294
17299
  },
17295
17300
  "src/Prebuilt/components/Chip.tsx": {
17296
17301
  "bytesInOutput": 1118
@@ -17422,7 +17427,7 @@
17422
17427
  "bytesInOutput": 2886
17423
17428
  },
17424
17429
  "src/Prebuilt/layouts/HLSView.jsx": {
17425
- "bytesInOutput": 31039
17430
+ "bytesInOutput": 31215
17426
17431
  },
17427
17432
  "src/Prebuilt/layouts/VideoStreamingSection.tsx": {
17428
17433
  "bytesInOutput": 5017
@@ -17560,7 +17565,7 @@
17560
17565
  "bytesInOutput": 2980
17561
17566
  }
17562
17567
  },
17563
- "bytes": 1549124
17568
+ "bytes": 1550163
17564
17569
  }
17565
17570
  }
17566
17571
  }
@@ -7784,7 +7784,7 @@
7784
7784
  "imports": []
7785
7785
  },
7786
7786
  "src/Prebuilt/components/Chat/EmptyChat.tsx": {
7787
- "bytes": 1885,
7787
+ "bytes": 2142,
7788
7788
  "imports": [
7789
7789
  {
7790
7790
  "path": "react",
@@ -7826,6 +7826,11 @@
7826
7826
  "kind": "import-statement",
7827
7827
  "original": "../hooks/useChatBlacklist"
7828
7828
  },
7829
+ {
7830
+ "path": "src/Prebuilt/common/hooks.ts",
7831
+ "kind": "import-statement",
7832
+ "original": "../../common/hooks"
7833
+ },
7829
7834
  {
7830
7835
  "path": "<define:process.env>",
7831
7836
  "kind": "import-statement",
@@ -8446,7 +8451,7 @@
8446
8451
  "format": "esm"
8447
8452
  },
8448
8453
  "src/Prebuilt/components/Chat/Chat.tsx": {
8449
- "bytes": 4861,
8454
+ "bytes": 5393,
8450
8455
  "imports": [
8451
8456
  {
8452
8457
  "path": "react",
@@ -9306,7 +9311,7 @@
9306
9311
  "format": "esm"
9307
9312
  },
9308
9313
  "src/Prebuilt/layouts/SidePane.tsx": {
9309
- "bytes": 6417,
9314
+ "bytes": 6575,
9310
9315
  "imports": [
9311
9316
  {
9312
9317
  "path": "react",
@@ -11315,7 +11320,7 @@
11315
11320
  "format": "esm"
11316
11321
  },
11317
11322
  "src/Prebuilt/layouts/HLSView.jsx": {
11318
- "bytes": 26567,
11323
+ "bytes": 26749,
11319
11324
  "imports": [
11320
11325
  {
11321
11326
  "path": "react",
@@ -13612,7 +13617,7 @@
13612
13617
  "dist/index.js": {
13613
13618
  "imports": [
13614
13619
  {
13615
- "path": "dist/chunk-B22UTHMR.js",
13620
+ "path": "dist/chunk-25BO27QT.js",
13616
13621
  "kind": "import-statement"
13617
13622
  }
13618
13623
  ],
@@ -13685,16 +13690,16 @@
13685
13690
  "inputs": {},
13686
13691
  "bytes": 1822
13687
13692
  },
13688
- "dist/HLSView-IIPEBXAG.js.map": {
13693
+ "dist/HLSView-GJP4SJCZ.js.map": {
13689
13694
  "imports": [],
13690
13695
  "exports": [],
13691
13696
  "inputs": {},
13692
- "bytes": 88957
13697
+ "bytes": 89215
13693
13698
  },
13694
- "dist/HLSView-IIPEBXAG.js": {
13699
+ "dist/HLSView-GJP4SJCZ.js": {
13695
13700
  "imports": [
13696
13701
  {
13697
- "path": "dist/chunk-B22UTHMR.js",
13702
+ "path": "dist/chunk-25BO27QT.js",
13698
13703
  "kind": "import-statement"
13699
13704
  },
13700
13705
  {
@@ -13859,7 +13864,7 @@
13859
13864
  "entryPoint": "src/Prebuilt/layouts/HLSView.jsx",
13860
13865
  "inputs": {
13861
13866
  "src/Prebuilt/layouts/HLSView.jsx": {
13862
- "bytesInOutput": 25432
13867
+ "bytesInOutput": 25580
13863
13868
  },
13864
13869
  "src/Prebuilt/components/HlsStatsOverlay.jsx": {
13865
13870
  "bytesInOutput": 3521
@@ -13910,15 +13915,15 @@
13910
13915
  "bytesInOutput": 2101
13911
13916
  }
13912
13917
  },
13913
- "bytes": 54476
13918
+ "bytes": 54624
13914
13919
  },
13915
- "dist/chunk-B22UTHMR.js.map": {
13920
+ "dist/chunk-25BO27QT.js.map": {
13916
13921
  "imports": [],
13917
13922
  "exports": [],
13918
13923
  "inputs": {},
13919
- "bytes": 3168087
13924
+ "bytes": 3169514
13920
13925
  },
13921
- "dist/chunk-B22UTHMR.js": {
13926
+ "dist/chunk-25BO27QT.js": {
13922
13927
  "imports": [
13923
13928
  {
13924
13929
  "path": "react",
@@ -16286,7 +16291,7 @@
16286
16291
  "external": true
16287
16292
  },
16288
16293
  {
16289
- "path": "dist/HLSView-IIPEBXAG.js",
16294
+ "path": "dist/HLSView-GJP4SJCZ.js",
16290
16295
  "kind": "dynamic-import"
16291
16296
  },
16292
16297
  {
@@ -16760,7 +16765,7 @@
16760
16765
  ],
16761
16766
  "inputs": {
16762
16767
  "<define:process.env>": {
16763
- "bytesInOutput": 18259
16768
+ "bytesInOutput": 18257
16764
16769
  },
16765
16770
  "../../node_modules/lodash/lodash.js": {
16766
16771
  "bytesInOutput": 224291
@@ -17333,7 +17338,7 @@
17333
17338
  "bytesInOutput": 9637
17334
17339
  },
17335
17340
  "src/Prebuilt/layouts/SidePane.tsx": {
17336
- "bytesInOutput": 6115
17341
+ "bytesInOutput": 6271
17337
17342
  },
17338
17343
  "src/Prebuilt/components/Polls/Polls.tsx": {
17339
17344
  "bytesInOutput": 735
@@ -17423,7 +17428,7 @@
17423
17428
  "bytesInOutput": 7554
17424
17429
  },
17425
17430
  "src/Prebuilt/components/Chat/Chat.tsx": {
17426
- "bytesInOutput": 4500
17431
+ "bytesInOutput": 4926
17427
17432
  },
17428
17433
  "src/Prebuilt/components/Chat/ChatBody.tsx": {
17429
17434
  "bytesInOutput": 14396
@@ -17441,7 +17446,7 @@
17441
17446
  "bytesInOutput": 2757
17442
17447
  },
17443
17448
  "src/Prebuilt/components/Chat/EmptyChat.tsx": {
17444
- "bytesInOutput": 1775
17449
+ "bytesInOutput": 1952
17445
17450
  },
17446
17451
  "src/Prebuilt/images/empty-chat.svg": {
17447
17452
  "bytesInOutput": 2261
@@ -17714,7 +17719,7 @@
17714
17719
  "bytesInOutput": 651
17715
17720
  }
17716
17721
  },
17717
- "bytes": 1298112
17722
+ "bytes": 1298869
17718
17723
  }
17719
17724
  }
17720
17725
  }
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "prebuilt",
11
11
  "roomkit"
12
12
  ],
13
- "version": "0.2.8-alpha.12",
13
+ "version": "0.2.8-alpha.14",
14
14
  "author": "100ms",
15
15
  "license": "MIT",
16
16
  "repository": {
@@ -82,11 +82,11 @@
82
82
  "react": ">=17.0.2 <19.0.0"
83
83
  },
84
84
  "dependencies": {
85
- "@100mslive/hls-player": "0.2.8-alpha.12",
85
+ "@100mslive/hls-player": "0.2.8-alpha.14",
86
86
  "@100mslive/hms-noise-cancellation": "0.0.0-alpha.1",
87
- "@100mslive/hms-virtual-background": "1.12.8-alpha.12",
88
- "@100mslive/react-icons": "0.9.8-alpha.12",
89
- "@100mslive/react-sdk": "0.9.8-alpha.12",
87
+ "@100mslive/hms-virtual-background": "1.12.8-alpha.14",
88
+ "@100mslive/react-icons": "0.9.8-alpha.14",
89
+ "@100mslive/react-sdk": "0.9.8-alpha.14",
90
90
  "@100mslive/types-prebuilt": "0.12.7",
91
91
  "@emoji-mart/data": "^1.0.6",
92
92
  "@emoji-mart/react": "^1.0.1",
@@ -122,5 +122,5 @@
122
122
  "uuid": "^8.3.2",
123
123
  "worker-timers": "^7.0.40"
124
124
  },
125
- "gitHead": "c5c687051efa9506328ae118b2bf8cd79b9a655c"
125
+ "gitHead": "5f9ed79ce780bcb47007efda5728e38b173e7674"
126
126
  }
@@ -45,6 +45,7 @@ export const Chat = () => {
45
45
  if (!elements?.chat) {
46
46
  return null;
47
47
  }
48
+ const streaming = isMobileHLSStream || isLandscapeStream;
48
49
 
49
50
  return (
50
51
  <Flex
@@ -55,12 +56,12 @@ export const Chat = () => {
55
56
  gap: '$4',
56
57
  }}
57
58
  >
58
- {isMobile && elements?.chat?.is_overlay ? null : <PinnedMessage />}
59
+ {isMobile && elements?.chat?.is_overlay && !streaming ? null : <PinnedMessage />}
59
60
  <ChatBody ref={listRef} scrollToBottom={scrollToBottom} />
60
61
 
61
62
  <ChatPaused />
62
63
  <ChatBlocked />
63
- {isMobile && elements?.chat?.is_overlay ? <PinnedMessage /> : null}
64
+ {isMobile && elements?.chat?.is_overlay && !streaming ? <PinnedMessage /> : null}
64
65
  {isChatEnabled ? (
65
66
  <ChatFooter onSend={scrollToBottom}>
66
67
  <NewMessageIndicator scrollToBottom={scrollToBottom} listRef={listRef} />
@@ -70,7 +71,7 @@ export const Chat = () => {
70
71
  <Box
71
72
  css={{
72
73
  position: 'absolute',
73
- ...match({ isLandscapeStream, isChatEnabled })
74
+ ...match({ isLandscapeStream, isMobileHLSStream, isChatEnabled })
74
75
  .with(
75
76
  {
76
77
  isLandscapeStream: true,
@@ -85,6 +86,20 @@ export const Chat = () => {
85
86
  },
86
87
  () => ({ bottom: '$20', right: '$10' }),
87
88
  )
89
+ .with(
90
+ {
91
+ isMobileHLSStream: true,
92
+ isChatEnabled: false,
93
+ },
94
+ () => ({ bottom: '$19', right: '$8' }),
95
+ )
96
+ .with(
97
+ {
98
+ isMobileHLSStream: true,
99
+ isChatEnabled: true,
100
+ },
101
+ () => ({ bottom: '$17', right: '$8' }),
102
+ )
88
103
  .with(
89
104
  {
90
105
  isLandscapeStream: false,
@@ -273,7 +273,7 @@ export const ChatFooter = ({ onSend, children }: { onSend: (count: number) => vo
273
273
  css={{
274
274
  alignItems: 'center',
275
275
  }}
276
- gap="1"
276
+ gap="2"
277
277
  >
278
278
  {noAVPermissions ? <RaiseHand css={{ bg: '$surface_default' }} /> : null}
279
279
  <MoreSettings elements={elements} screenType={screenType} />
@@ -7,6 +7,7 @@ import { config as cssConfig } from '../../../Theme';
7
7
  import emptyChat from '../../images/empty-chat.svg';
8
8
  import { useRoomLayoutConferencingScreen } from '../../provider/roomLayoutProvider/hooks/useRoomLayoutScreen';
9
9
  import { useIsPeerBlacklisted } from '../hooks/useChatBlacklist';
10
+ import { useLandscapeHLSStream, useMobileHLSStream } from '../../common/hooks';
10
11
 
11
12
  export const EmptyChat = () => {
12
13
  const { elements } = useRoomLayoutConferencingScreen();
@@ -18,8 +19,11 @@ export const EmptyChat = () => {
18
19
  elements.chat.private_chat_enabled ||
19
20
  (elements.chat.roles_whitelist && elements.chat.roles_whitelist.length)) &&
20
21
  !isLocalPeerBlacklisted;
22
+ const isMobileHLSStream = useMobileHLSStream();
23
+ const isLandscapeStream = useLandscapeHLSStream();
24
+ const streaming = isMobileHLSStream || isLandscapeStream;
21
25
 
22
- if (isMobile && elements?.chat?.is_overlay) return <></>;
26
+ if (isMobile && elements?.chat?.is_overlay && !streaming) return <></>;
23
27
 
24
28
  return (
25
29
  <Flex
@@ -200,7 +200,7 @@ export const ConferenceScreen = () => {
200
200
  position: 'relative',
201
201
  }}
202
202
  justify="end"
203
- gap="1"
203
+ gap="2"
204
204
  >
205
205
  {noAVPermissions ? <RaiseHand /> : null}
206
206
  <MoreSettings elements={screenProps.elements} screenType={screenProps.screenType} />
@@ -188,10 +188,11 @@ const HLSView = () => {
188
188
  action: (
189
189
  <Button
190
190
  onClick={() => {
191
- hmsActions.setAppData({
191
+ hmsActions.setAppData(APP_DATA.pollState, {
192
192
  [POLL_STATE.pollInView]: pollId,
193
193
  [POLL_STATE.view]: POLL_VIEWS.VOTE,
194
194
  });
195
+ hmsActions.setAppData(APP_DATA.sidePane, SIDE_PANE_OPTIONS.POLLS);
195
196
  }}
196
197
  variant="standard"
197
198
  css={{
@@ -465,49 +466,51 @@ const HLSView = () => {
465
466
  <>
466
467
  {isMobile || isLandscape ? (
467
468
  <>
468
- {!showLoader && hlsState?.variants[0]?.playlist_type === HLSPlaylistType.DVR && (
469
- <Flex
470
- align="center"
471
- justify="center"
472
- css={{
473
- position: 'absolute',
474
- bg: '#00000066',
475
- display: 'inline-flex',
476
- gap: '$2',
477
- zIndex: 1,
478
- size: '100%',
479
- visibility: controlsVisible ? `` : `hidden`,
480
- opacity: controlsVisible ? `1` : '0',
481
- }}
482
- >
483
- <HMSVideoPlayer.Seeker
484
- title="backward"
485
- css={{
486
- visibility: isSeekEnabled ? `` : `hidden`,
487
- opacity: isSeekEnabled ? `1` : '0',
488
- }}
489
- >
490
- <BackwardArrowIcon width={32} height={32} />
491
- </HMSVideoPlayer.Seeker>
492
- <Box
493
- css={{
494
- bg: 'rgba(0, 0, 0, 0.6)',
495
- r: '$round',
496
- }}
497
- >
498
- <HMSVideoPlayer.PlayPauseButton isPaused={isPaused} width={48} height={48} />
499
- </Box>
500
- <HMSVideoPlayer.Seeker
501
- title="forward"
502
- css={{
503
- visibility: isSeekEnabled ? `` : `hidden`,
504
- opacity: isSeekEnabled ? `1` : '0',
505
- }}
506
- >
507
- <ForwardArrowIcon width={32} height={32} />
508
- </HMSVideoPlayer.Seeker>
509
- </Flex>
510
- )}
469
+ <Flex
470
+ align="center"
471
+ justify="center"
472
+ css={{
473
+ position: 'absolute',
474
+ bg: '#00000066',
475
+ display: 'inline-flex',
476
+ gap: '$2',
477
+ zIndex: 1,
478
+ size: '100%',
479
+ visibility: controlsVisible ? `` : `hidden`,
480
+ opacity: controlsVisible ? `1` : '0',
481
+ }}
482
+ >
483
+ {!showLoader && hlsState?.variants[0]?.playlist_type === HLSPlaylistType.DVR && (
484
+ <>
485
+ <HMSVideoPlayer.Seeker
486
+ title="backward"
487
+ css={{
488
+ visibility: isSeekEnabled ? `` : `hidden`,
489
+ opacity: isSeekEnabled ? `1` : '0',
490
+ }}
491
+ >
492
+ <BackwardArrowIcon width={32} height={32} />
493
+ </HMSVideoPlayer.Seeker>
494
+ <Box
495
+ css={{
496
+ bg: 'rgba(0, 0, 0, 0.6)',
497
+ r: '$round',
498
+ }}
499
+ >
500
+ <HMSVideoPlayer.PlayPauseButton isPaused={isPaused} width={48} height={48} />
501
+ </Box>
502
+ <HMSVideoPlayer.Seeker
503
+ title="forward"
504
+ css={{
505
+ visibility: isSeekEnabled ? `` : `hidden`,
506
+ opacity: isSeekEnabled ? `1` : '0',
507
+ }}
508
+ >
509
+ <ForwardArrowIcon width={32} height={32} />
510
+ </HMSVideoPlayer.Seeker>
511
+ </>
512
+ )}
513
+ </Flex>
511
514
  <Flex
512
515
  ref={controlsRef}
513
516
  direction="column"
@@ -72,6 +72,11 @@ const Wrapper = styled('div', {
72
72
  },
73
73
  },
74
74
  },
75
+ roomDescription: {
76
+ true: {
77
+ overflowY: 'auto',
78
+ },
79
+ },
75
80
  hideControls: {
76
81
  true: {},
77
82
  },
@@ -151,6 +156,7 @@ const SidePane = ({
151
156
  mobileStream: isMobileHLSStream,
152
157
  hideControls,
153
158
  overlayChat: !!elements?.chat?.is_overlay,
159
+ roomDescription: isMobile && sidepane === SIDE_PANE_OPTIONS.ROOM_DETAILS,
154
160
  };
155
161
 
156
162
  const SidepaneComponent = match(sidepane)