@100mslive/roomkit-react 0.3.12-alpha.2 → 0.3.12-alpha.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{HLSView-CRIT7T2T.js → HLSView-EALBDQOP.js} +2 -2
- package/dist/{HLSView-BTT7LI2J.css → HLSView-NKSP5FXW.css} +3 -3
- package/dist/{HLSView-BTT7LI2J.css.map → HLSView-NKSP5FXW.css.map} +1 -1
- package/dist/{chunk-KJZOZLIO.js → chunk-Y4IB3NEG.js} +52 -50
- package/dist/{chunk-KJZOZLIO.js.map → chunk-Y4IB3NEG.js.map} +3 -3
- package/dist/index.cjs.css +2 -2
- package/dist/index.cjs.css.map +1 -1
- package/dist/index.cjs.js +20 -18
- 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 +14 -14
- package/dist/meta.esbuild.json +28 -28
- package/package.json +7 -7
- package/src/Prebuilt/components/MoreSettings/CaptionContent.tsx +6 -6
- package/src/Prebuilt/components/Notifications/TranscriptionNotifications.tsx +2 -2
- package/src/Prebuilt/components/Polls/Voting/Voting.tsx +6 -4
- /package/dist/{HLSView-CRIT7T2T.js.map → HLSView-EALBDQOP.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",
|
@@ -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-2913-xECWjJeQtR4x/18fe1ed4d253/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-2913-xECWjJeQtR4x/18fe1ed4cbe0/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-2913-xECWjJeQtR4x/18fe1ed4d253/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-2913-xECWjJeQtR4x/18fe1ed4cbe0/index.css",
|
11082
11082
|
"kind": "import-statement",
|
11083
11083
|
"original": "@100mslive/hms-whiteboard/index.css"
|
11084
11084
|
},
|
@@ -14302,7 +14302,7 @@
|
|
14302
14302
|
"dist/index.js": {
|
14303
14303
|
"imports": [
|
14304
14304
|
{
|
14305
|
-
"path": "dist/chunk-
|
14305
|
+
"path": "dist/chunk-Y4IB3NEG.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-EALBDQOP.js.map": {
|
14380
14380
|
"imports": [],
|
14381
14381
|
"exports": [],
|
14382
14382
|
"inputs": {},
|
14383
14383
|
"bytes": 100275
|
14384
14384
|
},
|
14385
|
-
"dist/HLSView-
|
14385
|
+
"dist/HLSView-EALBDQOP.js": {
|
14386
14386
|
"imports": [
|
14387
14387
|
{
|
14388
|
-
"path": "dist/chunk-
|
14388
|
+
"path": "dist/chunk-Y4IB3NEG.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-NKSP5FXW.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-Y4IB3NEG.js.map": {
|
14626
14626
|
"imports": [],
|
14627
14627
|
"exports": [],
|
14628
14628
|
"inputs": {},
|
14629
|
-
"bytes":
|
14629
|
+
"bytes": 3271901
|
14630
14630
|
},
|
14631
|
-
"dist/chunk-
|
14631
|
+
"dist/chunk-Y4IB3NEG.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-EALBDQOP.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": 17904
|
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
|
@@ -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-2913-xECWjJeQtR4x/18fe1ed4cbe0/index.css": {
|
18449
18449
|
"bytesInOutput": 0
|
18450
18450
|
},
|
18451
18451
|
"src/Prebuilt/common/PeersSorter.ts": {
|
@@ -18587,7 +18587,7 @@
|
|
18587
18587
|
"bytesInOutput": 651
|
18588
18588
|
}
|
18589
18589
|
},
|
18590
|
-
"bytes":
|
18590
|
+
"bytes": 1342672
|
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-2913-xECWjJeQtR4x/18fe1ed4d253/tldraw.css": {
|
18653
18653
|
"bytesInOutput": 75223
|
18654
18654
|
},
|
18655
|
-
"../../../../../../../tmp/tmp-
|
18655
|
+
"../../../../../../../tmp/tmp-2913-xECWjJeQtR4x/18fe1ed4cbe0/index.css": {
|
18656
18656
|
"bytesInOutput": 401
|
18657
18657
|
}
|
18658
18658
|
},
|
18659
18659
|
"bytes": 75901
|
18660
18660
|
},
|
18661
|
-
"dist/HLSView-
|
18661
|
+
"dist/HLSView-NKSP5FXW.css.map": {
|
18662
18662
|
"imports": [],
|
18663
18663
|
"exports": [],
|
18664
18664
|
"inputs": {},
|
18665
18665
|
"bytes": 122402
|
18666
18666
|
},
|
18667
|
-
"dist/HLSView-
|
18667
|
+
"dist/HLSView-NKSP5FXW.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-2913-xECWjJeQtR4x/18fe1ed4d253/tldraw.css": {
|
18722
18722
|
"bytesInOutput": 75223
|
18723
18723
|
},
|
18724
|
-
"../../../../../../../tmp/tmp-
|
18724
|
+
"../../../../../../../tmp/tmp-2913-xECWjJeQtR4x/18fe1ed4cbe0/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-alpha.
|
13
|
+
"version": "0.3.12-alpha.4",
|
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-alpha.
|
77
|
+
"@100mslive/hls-player": "0.3.12-alpha.4",
|
78
78
|
"@100mslive/hms-noise-cancellation": "0.0.1",
|
79
|
-
"@100mslive/hms-virtual-background": "1.13.12-alpha.
|
80
|
-
"@100mslive/hms-whiteboard": "0.0.2-alpha.
|
81
|
-
"@100mslive/react-icons": "0.10.12-alpha.
|
82
|
-
"@100mslive/react-sdk": "0.10.12-alpha.
|
79
|
+
"@100mslive/hms-virtual-background": "1.13.12-alpha.4",
|
80
|
+
"@100mslive/hms-whiteboard": "0.0.2-alpha.4",
|
81
|
+
"@100mslive/react-icons": "0.10.12-alpha.4",
|
82
|
+
"@100mslive/react-sdk": "0.10.12-alpha.4",
|
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": "1274c370d27307d203d1cffee2e2046726445e2e"
|
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.
|
@@ -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;
|
File without changes
|