@100mslive/roomkit-react 0.3.25-alpha.0 → 0.3.25-alpha.2

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.
@@ -5784,7 +5784,7 @@
5784
5784
  "format": "cjs"
5785
5785
  },
5786
5786
  "../hms-video-store/dist/index.js": {
5787
- "bytes": 374174,
5787
+ "bytes": 375031,
5788
5788
  "imports": [
5789
5789
  {
5790
5790
  "path": "../../node_modules/reselect/es/index.js",
@@ -11331,7 +11331,7 @@
11331
11331
  ],
11332
11332
  "format": "esm"
11333
11333
  },
11334
- "../../../../../../../tmp/tmp-2773-hI6w7T2P7kzb/1932f8a9bf93/tldraw.css": {
11334
+ "../../../../../../../tmp/tmp-2859-ZHZzvOkuGxFk/1934d7456b93/tldraw.css": {
11335
11335
  "bytes": 80111,
11336
11336
  "imports": [
11337
11337
  {
@@ -11381,7 +11381,7 @@
11381
11381
  }
11382
11382
  ]
11383
11383
  },
11384
- "../../../../../../../tmp/tmp-2773-hI6w7T2P7kzb/1932f8a9b7e0/index.css": {
11384
+ "../../../../../../../tmp/tmp-2859-ZHZzvOkuGxFk/1934d7456371/index.css": {
11385
11385
  "bytes": 597,
11386
11386
  "imports": [
11387
11387
  {
@@ -11390,7 +11390,7 @@
11390
11390
  "external": true
11391
11391
  },
11392
11392
  {
11393
- "path": "../../../../../../../tmp/tmp-2773-hI6w7T2P7kzb/1932f8a9bf93/tldraw.css",
11393
+ "path": "../../../../../../../tmp/tmp-2859-ZHZzvOkuGxFk/1934d7456b93/tldraw.css",
11394
11394
  "kind": "import-rule",
11395
11395
  "original": "@tldraw/tldraw/tldraw.css"
11396
11396
  }
@@ -11465,7 +11465,7 @@
11465
11465
  "original": "../../common/constants"
11466
11466
  },
11467
11467
  {
11468
- "path": "../../../../../../../tmp/tmp-2773-hI6w7T2P7kzb/1932f8a9b7e0/index.css",
11468
+ "path": "../../../../../../../tmp/tmp-2859-ZHZzvOkuGxFk/1934d7456371/index.css",
11469
11469
  "kind": "import-statement",
11470
11470
  "original": "@100mslive/hms-whiteboard/index.css"
11471
11471
  },
@@ -12823,7 +12823,7 @@
12823
12823
  "format": "esm"
12824
12824
  },
12825
12825
  "src/Prebuilt/components/ConferenceScreen.tsx": {
12826
- "bytes": 8262,
12826
+ "bytes": 7133,
12827
12827
  "imports": [
12828
12828
  {
12829
12829
  "path": "react",
@@ -15729,7 +15729,7 @@
15729
15729
  "imports": [],
15730
15730
  "exports": [],
15731
15731
  "inputs": {},
15732
- "bytes": 3623645
15732
+ "bytes": 3623211
15733
15733
  },
15734
15734
  "dist/index.cjs.js": {
15735
15735
  "imports": [
@@ -19155,7 +19155,7 @@
19155
19155
  "bytesInOutput": 5035
19156
19156
  },
19157
19157
  "src/Prebuilt/common/constants.ts": {
19158
- "bytesInOutput": 3715
19158
+ "bytesInOutput": 3693
19159
19159
  },
19160
19160
  "src/Theme/ThemeProvider.tsx": {
19161
19161
  "bytesInOutput": 2005
@@ -19425,7 +19425,7 @@
19425
19425
  "bytesInOutput": 1053
19426
19426
  },
19427
19427
  "src/Prebuilt/components/ConferenceScreen.tsx": {
19428
- "bytesInOutput": 7859
19428
+ "bytesInOutput": 6684
19429
19429
  },
19430
19430
  "src/Prebuilt/components/Footer/Footer.tsx": {
19431
19431
  "bytesInOutput": 3740
@@ -19955,7 +19955,7 @@
19955
19955
  "src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx": {
19956
19956
  "bytesInOutput": 3051
19957
19957
  },
19958
- "../../../../../../../tmp/tmp-2773-hI6w7T2P7kzb/1932f8a9b7e0/index.css": {
19958
+ "../../../../../../../tmp/tmp-2859-ZHZzvOkuGxFk/1934d7456371/index.css": {
19959
19959
  "bytesInOutput": 0
19960
19960
  },
19961
19961
  "src/Prebuilt/common/PeersSorter.ts": {
@@ -20190,7 +20190,7 @@
20190
20190
  "bytesInOutput": 2777
20191
20191
  }
20192
20192
  },
20193
- "bytes": 1506084
20193
+ "bytes": 1504887
20194
20194
  },
20195
20195
  "dist/index.cjs.css.map": {
20196
20196
  "imports": [],
@@ -20252,10 +20252,10 @@
20252
20252
  }
20253
20253
  ],
20254
20254
  "inputs": {
20255
- "../../../../../../../tmp/tmp-2773-hI6w7T2P7kzb/1932f8a9bf93/tldraw.css": {
20255
+ "../../../../../../../tmp/tmp-2859-ZHZzvOkuGxFk/1934d7456b93/tldraw.css": {
20256
20256
  "bytesInOutput": 75223
20257
20257
  },
20258
- "../../../../../../../tmp/tmp-2773-hI6w7T2P7kzb/1932f8a9b7e0/index.css": {
20258
+ "../../../../../../../tmp/tmp-2859-ZHZzvOkuGxFk/1934d7456371/index.css": {
20259
20259
  "bytesInOutput": 401
20260
20260
  }
20261
20261
  },
@@ -5784,7 +5784,7 @@
5784
5784
  "format": "cjs"
5785
5785
  },
5786
5786
  "../hms-video-store/dist/index.js": {
5787
- "bytes": 374174,
5787
+ "bytes": 375031,
5788
5788
  "imports": [
5789
5789
  {
5790
5790
  "path": "../../node_modules/reselect/es/index.js",
@@ -11331,7 +11331,7 @@
11331
11331
  ],
11332
11332
  "format": "esm"
11333
11333
  },
11334
- "../../../../../../../tmp/tmp-2773-6RMsN9ZT6He3/1932f8a9bf82/tldraw.css": {
11334
+ "../../../../../../../tmp/tmp-2859-YlM1UiEV9wkf/1934d7456412/tldraw.css": {
11335
11335
  "bytes": 80111,
11336
11336
  "imports": [
11337
11337
  {
@@ -11381,7 +11381,7 @@
11381
11381
  }
11382
11382
  ]
11383
11383
  },
11384
- "../../../../../../../tmp/tmp-2773-6RMsN9ZT6He3/1932f8a9bd61/index.css": {
11384
+ "../../../../../../../tmp/tmp-2859-YlM1UiEV9wkf/1934d7455d80/index.css": {
11385
11385
  "bytes": 597,
11386
11386
  "imports": [
11387
11387
  {
@@ -11390,7 +11390,7 @@
11390
11390
  "external": true
11391
11391
  },
11392
11392
  {
11393
- "path": "../../../../../../../tmp/tmp-2773-6RMsN9ZT6He3/1932f8a9bf82/tldraw.css",
11393
+ "path": "../../../../../../../tmp/tmp-2859-YlM1UiEV9wkf/1934d7456412/tldraw.css",
11394
11394
  "kind": "import-rule",
11395
11395
  "original": "@tldraw/tldraw/tldraw.css"
11396
11396
  }
@@ -11465,7 +11465,7 @@
11465
11465
  "original": "../../common/constants"
11466
11466
  },
11467
11467
  {
11468
- "path": "../../../../../../../tmp/tmp-2773-6RMsN9ZT6He3/1932f8a9bd61/index.css",
11468
+ "path": "../../../../../../../tmp/tmp-2859-YlM1UiEV9wkf/1934d7455d80/index.css",
11469
11469
  "kind": "import-statement",
11470
11470
  "original": "@100mslive/hms-whiteboard/index.css"
11471
11471
  },
@@ -12823,7 +12823,7 @@
12823
12823
  "format": "esm"
12824
12824
  },
12825
12825
  "src/Prebuilt/components/ConferenceScreen.tsx": {
12826
- "bytes": 8262,
12826
+ "bytes": 7133,
12827
12827
  "imports": [
12828
12828
  {
12829
12829
  "path": "react",
@@ -15729,7 +15729,7 @@
15729
15729
  "imports": [],
15730
15730
  "exports": [],
15731
15731
  "inputs": {},
15732
- "bytes": 3663636
15732
+ "bytes": 3663110
15733
15733
  },
15734
15734
  "dist/index.js": {
15735
15735
  "imports": [
@@ -19221,7 +19221,7 @@
19221
19221
  "bytesInOutput": 5061
19222
19222
  },
19223
19223
  "src/Prebuilt/common/constants.ts": {
19224
- "bytesInOutput": 3613
19224
+ "bytesInOutput": 3591
19225
19225
  },
19226
19226
  "src/Theme/ThemeProvider.tsx": {
19227
19227
  "bytesInOutput": 1926
@@ -19491,7 +19491,7 @@
19491
19491
  "bytesInOutput": 1028
19492
19492
  },
19493
19493
  "src/Prebuilt/components/ConferenceScreen.tsx": {
19494
- "bytesInOutput": 7439
19494
+ "bytesInOutput": 6307
19495
19495
  },
19496
19496
  "src/Prebuilt/components/Footer/Footer.tsx": {
19497
19497
  "bytesInOutput": 3306
@@ -20021,7 +20021,7 @@
20021
20021
  "src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx": {
20022
20022
  "bytesInOutput": 2830
20023
20023
  },
20024
- "../../../../../../../tmp/tmp-2773-6RMsN9ZT6He3/1932f8a9bd61/index.css": {
20024
+ "../../../../../../../tmp/tmp-2859-YlM1UiEV9wkf/1934d7455d80/index.css": {
20025
20025
  "bytesInOutput": 0
20026
20026
  },
20027
20027
  "src/Prebuilt/common/PeersSorter.ts": {
@@ -20256,7 +20256,7 @@
20256
20256
  "bytesInOutput": 2632
20257
20257
  }
20258
20258
  },
20259
- "bytes": 1451045
20259
+ "bytes": 1449891
20260
20260
  },
20261
20261
  "dist/index.css.map": {
20262
20262
  "imports": [],
@@ -20318,10 +20318,10 @@
20318
20318
  }
20319
20319
  ],
20320
20320
  "inputs": {
20321
- "../../../../../../../tmp/tmp-2773-6RMsN9ZT6He3/1932f8a9bf82/tldraw.css": {
20321
+ "../../../../../../../tmp/tmp-2859-YlM1UiEV9wkf/1934d7456412/tldraw.css": {
20322
20322
  "bytesInOutput": 75223
20323
20323
  },
20324
- "../../../../../../../tmp/tmp-2773-6RMsN9ZT6He3/1932f8a9bd61/index.css": {
20324
+ "../../../../../../../tmp/tmp-2859-YlM1UiEV9wkf/1934d7455d80/index.css": {
20325
20325
  "bytesInOutput": 401
20326
20326
  }
20327
20327
  },
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "prebuilt",
11
11
  "roomkit"
12
12
  ],
13
- "version": "0.3.25-alpha.0",
13
+ "version": "0.3.25-alpha.2",
14
14
  "author": "100ms",
15
15
  "license": "MIT",
16
16
  "repository": {
@@ -75,12 +75,12 @@
75
75
  "react": ">=17.0.2 <19.0.0"
76
76
  },
77
77
  "dependencies": {
78
- "@100mslive/hls-player": "0.3.25-alpha.0",
78
+ "@100mslive/hls-player": "0.3.25-alpha.2",
79
79
  "@100mslive/hms-noise-cancellation": "0.0.1",
80
- "@100mslive/hms-virtual-background": "1.13.25-alpha.0",
81
- "@100mslive/hms-whiteboard": "0.0.15-alpha.0",
82
- "@100mslive/react-icons": "0.10.25-alpha.0",
83
- "@100mslive/react-sdk": "0.10.25-alpha.0",
80
+ "@100mslive/hms-virtual-background": "1.13.25-alpha.2",
81
+ "@100mslive/hms-whiteboard": "0.0.15-alpha.2",
82
+ "@100mslive/react-icons": "0.10.25-alpha.2",
83
+ "@100mslive/react-sdk": "0.10.25-alpha.2",
84
84
  "@100mslive/types-prebuilt": "0.12.12",
85
85
  "@emoji-mart/data": "^1.0.6",
86
86
  "@emoji-mart/react": "^1.0.1",
@@ -118,5 +118,5 @@
118
118
  "uuid": "^8.3.2",
119
119
  "worker-timers": "^7.0.40"
120
120
  },
121
- "gitHead": "b9a15a40498feb37cf34dc6fab790cb9dcfcd775"
121
+ "gitHead": "d4e908bd663f765d36f4b2203584613ab72b2e7f"
122
122
  }
@@ -1,9 +1,8 @@
1
- import React, { useEffect, useRef, useState } from 'react';
1
+ import React, { useEffect, useRef } from 'react';
2
2
  import { DefaultConferencingScreen_Elements } from '@100mslive/types-prebuilt';
3
3
  import { v4 as uuid } from 'uuid';
4
4
  import {
5
5
  HMSRoomState,
6
- selectAppData,
7
6
  selectIsConnectedToRoom,
8
7
  selectRoomState,
9
8
  useAwayNotifications,
@@ -34,7 +33,7 @@ import {
34
33
  // @ts-ignore: No implicit Any
35
34
  import { useAuthToken, useSetAppDataByKey } from './AppData/useUISettings';
36
35
  import { useLandscapeHLSStream, useMobileHLSStream } from '../common/hooks';
37
- import { APP_DATA, isAndroid, isIOS, isIPadOS } from '../common/constants';
36
+ import { APP_DATA } from '../common/constants';
38
37
 
39
38
  export const ConferenceScreen = () => {
40
39
  const { userName, endpoints, onJoin: onJoinFunc } = useHMSPrebuiltContext();
@@ -43,13 +42,11 @@ export const ConferenceScreen = () => {
43
42
  const roomState = useHMSStore(selectRoomState);
44
43
  const isConnectedToRoom = useHMSStore(selectIsConnectedToRoom);
45
44
  const hmsActions = useHMSActions();
46
- const [hideControls, setHideControls] = useState(false);
47
- const dropdownList = useHMSStore(selectAppData(APP_DATA.dropdownList));
45
+
48
46
  const authTokenInAppData = useAuthToken();
49
47
  const headerRef = useRef<HTMLDivElement | null>(null);
50
48
  const footerRef = useRef<HTMLDivElement | null>(null);
51
- const isMobileDevice = isAndroid || isIOS || isIPadOS;
52
- const dropdownListRef = useRef<string[]>();
49
+
53
50
  const [isHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
54
51
  const { requestPermission } = useAwayNotifications();
55
52
 
@@ -60,28 +57,6 @@ export const ConferenceScreen = () => {
60
57
  const isLandscapeHLSStream = useLandscapeHLSStream();
61
58
  const isMwebHLSStream = isMobileHLSStream || isLandscapeHLSStream;
62
59
 
63
- const toggleControls = () => {
64
- if (dropdownListRef.current?.length === 0 && isMobileDevice && !isMwebHLSStream) {
65
- setHideControls(value => !value);
66
- }
67
- };
68
-
69
- useEffect(() => {
70
- let timeout: undefined | ReturnType<typeof setTimeout>;
71
- dropdownListRef.current = dropdownList || [];
72
- if (dropdownListRef.current && dropdownListRef.current.length === 0) {
73
- clearTimeout(timeout);
74
- timeout = setTimeout(() => {
75
- if (dropdownListRef.current && dropdownListRef.current.length === 0) {
76
- setHideControls(isMobileDevice);
77
- }
78
- }, 5000);
79
- }
80
- return () => {
81
- clearTimeout(timeout);
82
- };
83
- }, [dropdownList, hideControls, isMobileDevice]);
84
-
85
60
  useEffect(() => {
86
61
  if (
87
62
  authTokenInAppData &&
@@ -128,8 +103,6 @@ export const ConferenceScreen = () => {
128
103
  return <FullPageProgress text={roomState === HMSRoomState.Connecting ? 'Joining...' : ''} />;
129
104
  }
130
105
 
131
- const hideControlsForStreaming = isMwebHLSStream ? true : hideControls;
132
-
133
106
  return (
134
107
  <>
135
108
  {isHLSStarted ? (
@@ -144,7 +117,7 @@ export const ConferenceScreen = () => {
144
117
  css={{
145
118
  h: '$18',
146
119
  transition: 'margin 0.3s ease-in-out',
147
- marginTop: hideControlsForStreaming ? `-${headerRef.current?.clientHeight}px` : 'none',
120
+ marginTop: isMwebHLSStream ? `-${headerRef.current?.clientHeight}px` : 'none',
148
121
  '@md': {
149
122
  h: '$17',
150
123
  },
@@ -170,13 +143,12 @@ export const ConferenceScreen = () => {
170
143
  }}
171
144
  id="conferencing"
172
145
  data-testid="conferencing"
173
- onClick={toggleControls}
174
146
  >
175
147
  {screenProps.elements ? (
176
148
  <VideoStreamingSection
177
149
  screenType={screenProps.screenType}
178
150
  elements={screenProps.elements}
179
- hideControls={hideControlsForStreaming}
151
+ hideControls={isMwebHLSStream}
180
152
  />
181
153
  ) : null}
182
154
  </Box>
@@ -188,7 +160,7 @@ export const ConferenceScreen = () => {
188
160
  maxHeight: '$24',
189
161
  transition: 'margin 0.3s ease-in-out',
190
162
  bg: '$background_dim',
191
- marginBottom: hideControlsForStreaming ? `-${footerRef.current?.clientHeight}px` : undefined,
163
+ marginBottom: isMwebHLSStream ? `-${footerRef.current?.clientHeight}px` : undefined,
192
164
  '@md': {
193
165
  maxHeight: 'unset',
194
166
  bg: screenProps.screenType === 'hls_live_streaming' ? 'transparent' : '$background_dim',