@100mslive/roomkit-react 0.3.12-alpha.6 → 0.3.12
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{HLSView-K5XFYK3X.js → HLSView-C2U74KCJ.js} +2 -2
- package/dist/{HLSView-KCRIRMQE.css → HLSView-ZPNPCOF2.css} +3 -3
- package/dist/{HLSView-KCRIRMQE.css.map → HLSView-ZPNPCOF2.css.map} +1 -1
- package/dist/{chunk-FQVXDJIG.js → chunk-K7H5ZUXQ.js} +63 -61
- package/dist/chunk-K7H5ZUXQ.js.map +7 -0
- package/dist/index.cjs.css +2 -2
- package/dist/index.cjs.css.map +1 -1
- package/dist/index.cjs.js +32 -30
- package/dist/index.cjs.js.map +3 -3
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +18 -18
- package/dist/meta.esbuild.json +32 -32
- package/package.json +7 -7
- package/src/Prebuilt/components/MoreSettings/CaptionContent.tsx +6 -6
- package/src/Prebuilt/components/Notifications/Notifications.tsx +1 -1
- package/src/Prebuilt/components/Notifications/TranscriptionNotifications.tsx +2 -2
- package/src/Prebuilt/components/Polls/Voting/Voting.tsx +6 -4
- package/dist/chunk-FQVXDJIG.js.map +0 -7
- /package/dist/{HLSView-K5XFYK3X.js.map → HLSView-C2U74KCJ.js.map} +0 -0
package/dist/meta.esbuild.json
CHANGED
@@ -4104,7 +4104,7 @@
|
|
4104
4104
|
"format": "esm"
|
4105
4105
|
},
|
4106
4106
|
"src/Prebuilt/components/MoreSettings/CaptionContent.tsx": {
|
4107
|
-
"bytes":
|
4107
|
+
"bytes": 5092,
|
4108
4108
|
"imports": [
|
4109
4109
|
{
|
4110
4110
|
"path": "react",
|
@@ -4890,7 +4890,7 @@
|
|
4890
4890
|
"format": "cjs"
|
4891
4891
|
},
|
4892
4892
|
"../hms-video-store/dist/index.js": {
|
4893
|
-
"bytes":
|
4893
|
+
"bytes": 338116,
|
4894
4894
|
"imports": [
|
4895
4895
|
{
|
4896
4896
|
"path": "../../node_modules/reselect/es/index.js",
|
@@ -7672,7 +7672,7 @@
|
|
7672
7672
|
"format": "esm"
|
7673
7673
|
},
|
7674
7674
|
"src/Prebuilt/components/Polls/Voting/Voting.tsx": {
|
7675
|
-
"bytes":
|
7675
|
+
"bytes": 4997,
|
7676
7676
|
"imports": [
|
7677
7677
|
{
|
7678
7678
|
"path": "react",
|
@@ -10944,7 +10944,7 @@
|
|
10944
10944
|
],
|
10945
10945
|
"format": "esm"
|
10946
10946
|
},
|
10947
|
-
"../../../../../../../tmp/tmp-
|
10947
|
+
"../../../../../../../tmp/tmp-2885-87IK8KcEQhMu/18fe903153d2/tldraw.css": {
|
10948
10948
|
"bytes": 80111,
|
10949
10949
|
"imports": [
|
10950
10950
|
{
|
@@ -10994,7 +10994,7 @@
|
|
10994
10994
|
}
|
10995
10995
|
]
|
10996
10996
|
},
|
10997
|
-
"../../../../../../../tmp/tmp-
|
10997
|
+
"../../../../../../../tmp/tmp-2885-87IK8KcEQhMu/18fe90314cd0/index.css": {
|
10998
10998
|
"bytes": 597,
|
10999
10999
|
"imports": [
|
11000
11000
|
{
|
@@ -11003,7 +11003,7 @@
|
|
11003
11003
|
"external": true
|
11004
11004
|
},
|
11005
11005
|
{
|
11006
|
-
"path": "../../../../../../../tmp/tmp-
|
11006
|
+
"path": "../../../../../../../tmp/tmp-2885-87IK8KcEQhMu/18fe903153d2/tldraw.css",
|
11007
11007
|
"kind": "import-rule",
|
11008
11008
|
"original": "@tldraw/tldraw/tldraw.css"
|
11009
11009
|
}
|
@@ -11078,7 +11078,7 @@
|
|
11078
11078
|
"original": "../../common/constants"
|
11079
11079
|
},
|
11080
11080
|
{
|
11081
|
-
"path": "../../../../../../../tmp/tmp-
|
11081
|
+
"path": "../../../../../../../tmp/tmp-2885-87IK8KcEQhMu/18fe90314cd0/index.css",
|
11082
11082
|
"kind": "import-statement",
|
11083
11083
|
"original": "@100mslive/hms-whiteboard/index.css"
|
11084
11084
|
},
|
@@ -13356,7 +13356,7 @@
|
|
13356
13356
|
"format": "esm"
|
13357
13357
|
},
|
13358
13358
|
"src/Prebuilt/components/Notifications/Notifications.tsx": {
|
13359
|
-
"bytes":
|
13359
|
+
"bytes": 8034,
|
13360
13360
|
"imports": [
|
13361
13361
|
{
|
13362
13362
|
"path": "react",
|
@@ -14302,7 +14302,7 @@
|
|
14302
14302
|
"dist/index.js": {
|
14303
14303
|
"imports": [
|
14304
14304
|
{
|
14305
|
-
"path": "dist/chunk-
|
14305
|
+
"path": "dist/chunk-K7H5ZUXQ.js",
|
14306
14306
|
"kind": "import-statement"
|
14307
14307
|
}
|
14308
14308
|
],
|
@@ -14376,16 +14376,16 @@
|
|
14376
14376
|
"inputs": {},
|
14377
14377
|
"bytes": 1822
|
14378
14378
|
},
|
14379
|
-
"dist/HLSView-
|
14379
|
+
"dist/HLSView-C2U74KCJ.js.map": {
|
14380
14380
|
"imports": [],
|
14381
14381
|
"exports": [],
|
14382
14382
|
"inputs": {},
|
14383
14383
|
"bytes": 100275
|
14384
14384
|
},
|
14385
|
-
"dist/HLSView-
|
14385
|
+
"dist/HLSView-C2U74KCJ.js": {
|
14386
14386
|
"imports": [
|
14387
14387
|
{
|
14388
|
-
"path": "dist/chunk-
|
14388
|
+
"path": "dist/chunk-K7H5ZUXQ.js",
|
14389
14389
|
"kind": "import-statement"
|
14390
14390
|
},
|
14391
14391
|
{
|
@@ -14563,7 +14563,7 @@
|
|
14563
14563
|
"default"
|
14564
14564
|
],
|
14565
14565
|
"entryPoint": "src/Prebuilt/layouts/HLSView.jsx",
|
14566
|
-
"cssBundle": "dist/HLSView-
|
14566
|
+
"cssBundle": "dist/HLSView-ZPNPCOF2.css",
|
14567
14567
|
"inputs": {
|
14568
14568
|
"src/Prebuilt/layouts/HLSView.jsx": {
|
14569
14569
|
"bytesInOutput": 27671
|
@@ -14622,13 +14622,13 @@
|
|
14622
14622
|
},
|
14623
14623
|
"bytes": 61702
|
14624
14624
|
},
|
14625
|
-
"dist/chunk-
|
14625
|
+
"dist/chunk-K7H5ZUXQ.js.map": {
|
14626
14626
|
"imports": [],
|
14627
14627
|
"exports": [],
|
14628
14628
|
"inputs": {},
|
14629
|
-
"bytes":
|
14629
|
+
"bytes": 3271885
|
14630
14630
|
},
|
14631
|
-
"dist/chunk-
|
14631
|
+
"dist/chunk-K7H5ZUXQ.js": {
|
14632
14632
|
"imports": [
|
14633
14633
|
{
|
14634
14634
|
"path": "react",
|
@@ -17101,7 +17101,7 @@
|
|
17101
17101
|
"external": true
|
17102
17102
|
},
|
17103
17103
|
{
|
17104
|
-
"path": "dist/HLSView-
|
17104
|
+
"path": "dist/HLSView-C2U74KCJ.js",
|
17105
17105
|
"kind": "dynamic-import"
|
17106
17106
|
},
|
17107
17107
|
{
|
@@ -17603,7 +17603,7 @@
|
|
17603
17603
|
],
|
17604
17604
|
"inputs": {
|
17605
17605
|
"<define:process.env>": {
|
17606
|
-
"bytesInOutput":
|
17606
|
+
"bytesInOutput": 17823
|
17607
17607
|
},
|
17608
17608
|
"../../node_modules/lodash/lodash.js": {
|
17609
17609
|
"bytesInOutput": 224310
|
@@ -18026,7 +18026,7 @@
|
|
18026
18026
|
"bytesInOutput": 1015
|
18027
18027
|
},
|
18028
18028
|
"src/Prebuilt/components/MoreSettings/CaptionContent.tsx": {
|
18029
|
-
"bytesInOutput":
|
18029
|
+
"bytesInOutput": 4981
|
18030
18030
|
},
|
18031
18031
|
"src/Prebuilt/components/MoreSettings/FullScreenItem.tsx": {
|
18032
18032
|
"bytesInOutput": 628
|
@@ -18053,7 +18053,7 @@
|
|
18053
18053
|
"bytesInOutput": 9482
|
18054
18054
|
},
|
18055
18055
|
"../hms-video-store/dist/index.js": {
|
18056
|
-
"bytesInOutput":
|
18056
|
+
"bytesInOutput": 49490
|
18057
18057
|
},
|
18058
18058
|
"../../node_modules/reselect/es/index.js": {
|
18059
18059
|
"bytesInOutput": 2537
|
@@ -18260,7 +18260,7 @@
|
|
18260
18260
|
"bytesInOutput": 1874
|
18261
18261
|
},
|
18262
18262
|
"src/Prebuilt/components/Polls/Voting/Voting.tsx": {
|
18263
|
-
"bytesInOutput":
|
18263
|
+
"bytesInOutput": 5206
|
18264
18264
|
},
|
18265
18265
|
"src/Prebuilt/components/Polls/Voting/StandardVoting.tsx": {
|
18266
18266
|
"bytesInOutput": 1304
|
@@ -18290,7 +18290,7 @@
|
|
18290
18290
|
"bytesInOutput": 5649
|
18291
18291
|
},
|
18292
18292
|
"src/Prebuilt/components/Chat/ChatBody.tsx": {
|
18293
|
-
"bytesInOutput":
|
18293
|
+
"bytesInOutput": 14742
|
18294
18294
|
},
|
18295
18295
|
"src/Prebuilt/components/Chat/ChatActions.tsx": {
|
18296
18296
|
"bytesInOutput": 9785
|
@@ -18419,7 +18419,7 @@
|
|
18419
18419
|
"bytesInOutput": 3834
|
18420
18420
|
},
|
18421
18421
|
"src/Prebuilt/components/VideoLayouts/RoleProminence.tsx": {
|
18422
|
-
"bytesInOutput":
|
18422
|
+
"bytesInOutput": 2183
|
18423
18423
|
},
|
18424
18424
|
"src/Prebuilt/components/SecondaryTiles.tsx": {
|
18425
18425
|
"bytesInOutput": 2706
|
@@ -18445,7 +18445,7 @@
|
|
18445
18445
|
"src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx": {
|
18446
18446
|
"bytesInOutput": 2793
|
18447
18447
|
},
|
18448
|
-
"../../../../../../../tmp/tmp-
|
18448
|
+
"../../../../../../../tmp/tmp-2885-87IK8KcEQhMu/18fe90314cd0/index.css": {
|
18449
18449
|
"bytesInOutput": 0
|
18450
18450
|
},
|
18451
18451
|
"src/Prebuilt/common/PeersSorter.ts": {
|
@@ -18506,7 +18506,7 @@
|
|
18506
18506
|
"bytesInOutput": 27
|
18507
18507
|
},
|
18508
18508
|
"src/Prebuilt/components/Notifications/Notifications.tsx": {
|
18509
|
-
"bytesInOutput":
|
18509
|
+
"bytesInOutput": 8113
|
18510
18510
|
},
|
18511
18511
|
"src/Prebuilt/components/Notifications/AutoplayBlockedModal.tsx": {
|
18512
18512
|
"bytesInOutput": 1053
|
@@ -18587,7 +18587,7 @@
|
|
18587
18587
|
"bytesInOutput": 651
|
18588
18588
|
}
|
18589
18589
|
},
|
18590
|
-
"bytes":
|
18590
|
+
"bytes": 1342648
|
18591
18591
|
},
|
18592
18592
|
"dist/index.css.map": {
|
18593
18593
|
"imports": [],
|
@@ -18649,22 +18649,22 @@
|
|
18649
18649
|
}
|
18650
18650
|
],
|
18651
18651
|
"inputs": {
|
18652
|
-
"../../../../../../../tmp/tmp-
|
18652
|
+
"../../../../../../../tmp/tmp-2885-87IK8KcEQhMu/18fe903153d2/tldraw.css": {
|
18653
18653
|
"bytesInOutput": 75223
|
18654
18654
|
},
|
18655
|
-
"../../../../../../../tmp/tmp-
|
18655
|
+
"../../../../../../../tmp/tmp-2885-87IK8KcEQhMu/18fe90314cd0/index.css": {
|
18656
18656
|
"bytesInOutput": 401
|
18657
18657
|
}
|
18658
18658
|
},
|
18659
18659
|
"bytes": 75901
|
18660
18660
|
},
|
18661
|
-
"dist/HLSView-
|
18661
|
+
"dist/HLSView-ZPNPCOF2.css.map": {
|
18662
18662
|
"imports": [],
|
18663
18663
|
"exports": [],
|
18664
18664
|
"inputs": {},
|
18665
18665
|
"bytes": 122402
|
18666
18666
|
},
|
18667
|
-
"dist/HLSView-
|
18667
|
+
"dist/HLSView-ZPNPCOF2.css": {
|
18668
18668
|
"imports": [
|
18669
18669
|
{
|
18670
18670
|
"path": "https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap",
|
@@ -18718,10 +18718,10 @@
|
|
18718
18718
|
}
|
18719
18719
|
],
|
18720
18720
|
"inputs": {
|
18721
|
-
"../../../../../../../tmp/tmp-
|
18721
|
+
"../../../../../../../tmp/tmp-2885-87IK8KcEQhMu/18fe903153d2/tldraw.css": {
|
18722
18722
|
"bytesInOutput": 75223
|
18723
18723
|
},
|
18724
|
-
"../../../../../../../tmp/tmp-
|
18724
|
+
"../../../../../../../tmp/tmp-2885-87IK8KcEQhMu/18fe90314cd0/index.css": {
|
18725
18725
|
"bytesInOutput": 401
|
18726
18726
|
}
|
18727
18727
|
},
|
package/package.json
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
"prebuilt",
|
11
11
|
"roomkit"
|
12
12
|
],
|
13
|
-
"version": "0.3.12
|
13
|
+
"version": "0.3.12",
|
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.12
|
77
|
+
"@100mslive/hls-player": "0.3.12",
|
78
78
|
"@100mslive/hms-noise-cancellation": "0.0.1",
|
79
|
-
"@100mslive/hms-virtual-background": "1.13.12
|
80
|
-
"@100mslive/hms-whiteboard": "0.0.2
|
81
|
-
"@100mslive/react-icons": "0.10.12
|
82
|
-
"@100mslive/react-sdk": "0.10.12
|
79
|
+
"@100mslive/hms-virtual-background": "1.13.12",
|
80
|
+
"@100mslive/hms-whiteboard": "0.0.2",
|
81
|
+
"@100mslive/react-icons": "0.10.12",
|
82
|
+
"@100mslive/react-sdk": "0.10.12",
|
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": "
|
118
|
+
"gitHead": "c1b1df2d10e69653f9edee4c00742b842bad96c7"
|
119
119
|
}
|
@@ -27,8 +27,7 @@ export const CaptionContent = ({ isMobile, onExit }: { isMobile: boolean; onExit
|
|
27
27
|
color: '$on_surface_high',
|
28
28
|
fontWeight: '$semiBold',
|
29
29
|
display: 'flex',
|
30
|
-
|
31
|
-
'@md': { px: '$8', borderBottom: '1px solid $border_default' },
|
30
|
+
'@md': { px: '$8' },
|
32
31
|
}}
|
33
32
|
>
|
34
33
|
{isTranscriptionEnabled ? 'Disable' : 'Enable'} Closed Caption (CC) for this session?
|
@@ -40,7 +39,7 @@ export const CaptionContent = ({ isMobile, onExit }: { isMobile: boolean; onExit
|
|
40
39
|
</Box>
|
41
40
|
</Text>
|
42
41
|
{!isMobile ? (
|
43
|
-
<Text variant="sm" css={{ color: '$on_surface_medium',
|
42
|
+
<Text variant="sm" css={{ color: '$on_surface_medium', mt: '$4', '@md': { px: '$8' } }}>
|
44
43
|
This will {isTranscriptionEnabled ? 'disable' : 'enable'} Closed Captions for everyone in this room. You
|
45
44
|
can
|
46
45
|
{isTranscriptionEnabled ? 'enable' : 'disable'} it later.
|
@@ -68,12 +67,13 @@ export const CaptionContent = ({ isMobile, onExit }: { isMobile: boolean; onExit
|
|
68
67
|
align="center"
|
69
68
|
css={{
|
70
69
|
width: '100%',
|
70
|
+
'@md': { px: '$4' },
|
71
71
|
}}
|
72
72
|
>
|
73
73
|
{isMobile && isTranscriptionEnabled ? (
|
74
74
|
<Button
|
75
75
|
variant="standard"
|
76
|
-
css={{ w: '100%', mb: '$
|
76
|
+
css={{ w: '100%', mb: '$4' }}
|
77
77
|
outlined
|
78
78
|
onClick={() => {
|
79
79
|
setIsCaptionEnabled(!isCaptionEnabled);
|
@@ -115,7 +115,7 @@ export const CaptionContent = ({ isMobile, onExit }: { isMobile: boolean; onExit
|
|
115
115
|
setToastId(id);
|
116
116
|
} catch (err) {
|
117
117
|
const id = ToastManager.replaceToast(toastId, {
|
118
|
-
title: `Failed to ${isTranscriptionEnabled ? '
|
118
|
+
title: `Failed to ${isTranscriptionEnabled ? 'disable' : 'enable'} closed caption`,
|
119
119
|
variant: 'error',
|
120
120
|
icon: <AlertTriangleIcon style={{ marginRight: '0.5rem' }} />,
|
121
121
|
});
|
@@ -129,7 +129,7 @@ export const CaptionContent = ({ isMobile, onExit }: { isMobile: boolean; onExit
|
|
129
129
|
</Flex>
|
130
130
|
</Flex>
|
131
131
|
{isMobile && (
|
132
|
-
<Text variant="sm" css={{ color: '$on_surface_medium', pb: '$
|
132
|
+
<Text variant="sm" css={{ color: '$on_surface_medium', pb: '$4', mb: '$8', '@md': { px: '$8', mt: '$4' } }}>
|
133
133
|
This will {isTranscriptionEnabled ? 'disable' : 'enable'} Closed Captions for everyone in this room. You
|
134
134
|
can
|
135
135
|
{isTranscriptionEnabled ? 'enable' : 'disable'} it later.
|
@@ -172,7 +172,7 @@ export function Notifications() {
|
|
172
172
|
}
|
173
173
|
break;
|
174
174
|
case HMSNotificationTypes.NEW_MESSAGE:
|
175
|
-
if (amIScreenSharing) {
|
175
|
+
if (amIScreenSharing && !notification.data?.ignored) {
|
176
176
|
showNotification(`New message from ${notification.data.senderName}`, {
|
177
177
|
body: notification.data.message,
|
178
178
|
icon: logoURL,
|
@@ -37,7 +37,7 @@ export const TranscriptionNotifications = () => {
|
|
37
37
|
title: `Closed Captioning enabled for everyone`,
|
38
38
|
variant: 'standard',
|
39
39
|
duration: 2000,
|
40
|
-
icon: <
|
40
|
+
icon: <ClosedCaptionIcon style={{ marginRight: '0.5rem' }} />,
|
41
41
|
});
|
42
42
|
})
|
43
43
|
.with({ state: HMSTranscriptionState.STOPPED }, () => {
|
@@ -45,7 +45,7 @@ export const TranscriptionNotifications = () => {
|
|
45
45
|
title: `Closed Captioning disabled for everyone`,
|
46
46
|
variant: 'standard',
|
47
47
|
duration: 2000,
|
48
|
-
icon: <
|
48
|
+
icon: <OpenCaptionIcon style={{ marginRight: '0.5rem' }} />,
|
49
49
|
});
|
50
50
|
})
|
51
51
|
.otherwise(() => null);
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import React, { useEffect, useRef, useState } from 'react';
|
2
2
|
import {
|
3
|
-
|
3
|
+
selectLocalPeer,
|
4
4
|
selectPeerNameByID,
|
5
5
|
selectPermissions,
|
6
6
|
selectPollByID,
|
@@ -31,7 +31,9 @@ export const Voting = ({ id, toggleVoting }: { id: string; toggleVoting: () => v
|
|
31
31
|
const showSingleView = poll?.type === 'quiz' && poll.state === 'started';
|
32
32
|
const fetchedInitialResponses = useRef(false);
|
33
33
|
const [savedResponses, setSavedResponses] = useState<Record<any, any>>({});
|
34
|
-
const
|
34
|
+
const localPeer = useHMSStore(selectLocalPeer);
|
35
|
+
const localPeerId = localPeer?.id;
|
36
|
+
const customerUserId = localPeer?.customerUserId;
|
35
37
|
|
36
38
|
// To reset whenever a different poll is opened
|
37
39
|
useEffect(() => {
|
@@ -51,7 +53,7 @@ export const Voting = ({ id, toggleVoting }: { id: string; toggleVoting: () => v
|
|
51
53
|
|
52
54
|
useEffect(() => {
|
53
55
|
if (poll?.questions) {
|
54
|
-
const localPeerResponses = getPeerResponses(poll.questions, localPeerId);
|
56
|
+
const localPeerResponses = getPeerResponses(poll.questions, localPeerId, customerUserId);
|
55
57
|
// @ts-ignore
|
56
58
|
localPeerResponses?.forEach(response => {
|
57
59
|
if (response) {
|
@@ -63,7 +65,7 @@ export const Voting = ({ id, toggleVoting }: { id: string; toggleVoting: () => v
|
|
63
65
|
}
|
64
66
|
});
|
65
67
|
}
|
66
|
-
}, [localPeerId, poll?.questions, id]);
|
68
|
+
}, [localPeerId, poll?.questions, id, customerUserId]);
|
67
69
|
|
68
70
|
if (!poll) {
|
69
71
|
return null;
|