@100mslive/roomkit-react 0.2.2-alpha.0 → 0.2.2-alpha.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{HLSView-4TLGLPKO.js → HLSView-2DSOSSTP.js} +2 -2
- package/dist/{chunk-ARSLHHAZ.js → chunk-XXVJPGLN.js} +33 -32
- package/dist/{chunk-ARSLHHAZ.js.map → chunk-XXVJPGLN.js.map} +3 -3
- package/dist/index.cjs.js +6 -5
- package/dist/index.cjs.js.map +2 -2
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +7 -7
- package/dist/meta.esbuild.json +15 -15
- package/package.json +6 -6
- package/src/Prebuilt/components/Polls/Voting/Voting.tsx +4 -3
- package/src/Prebuilt/components/VirtualBackground/VBPicker.tsx +1 -1
- package/src/Prebuilt/images/first_person.png +0 -0
- /package/dist/{HLSView-4TLGLPKO.js.map → HLSView-2DSOSSTP.js.map} +0 -0
package/dist/index.js
CHANGED
package/dist/meta.cjs.json
CHANGED
@@ -7010,7 +7010,7 @@
|
|
7010
7010
|
"format": "esm"
|
7011
7011
|
},
|
7012
7012
|
"src/Prebuilt/components/Polls/Voting/Voting.tsx": {
|
7013
|
-
"bytes":
|
7013
|
+
"bytes": 3251,
|
7014
7014
|
"imports": [
|
7015
7015
|
{
|
7016
7016
|
"path": "react",
|
@@ -8706,7 +8706,7 @@
|
|
8706
8706
|
"format": "esm"
|
8707
8707
|
},
|
8708
8708
|
"src/Prebuilt/components/VirtualBackground/VBPicker.tsx": {
|
8709
|
-
"bytes":
|
8709
|
+
"bytes": 6047,
|
8710
8710
|
"imports": [
|
8711
8711
|
{
|
8712
8712
|
"path": "react",
|
@@ -12572,7 +12572,7 @@
|
|
12572
12572
|
"imports": [],
|
12573
12573
|
"exports": [],
|
12574
12574
|
"inputs": {},
|
12575
|
-
"bytes":
|
12575
|
+
"bytes": 3068294
|
12576
12576
|
},
|
12577
12577
|
"dist/index.cjs.js": {
|
12578
12578
|
"imports": [
|
@@ -15246,7 +15246,7 @@
|
|
15246
15246
|
"entryPoint": "src/index.ts",
|
15247
15247
|
"inputs": {
|
15248
15248
|
"<define:process.env>": {
|
15249
|
-
"bytesInOutput":
|
15249
|
+
"bytesInOutput": 17194
|
15250
15250
|
},
|
15251
15251
|
"src/Theme/base.config.ts": {
|
15252
15252
|
"bytesInOutput": 6104
|
@@ -15888,7 +15888,7 @@
|
|
15888
15888
|
"bytesInOutput": 1338
|
15889
15889
|
},
|
15890
15890
|
"src/Prebuilt/components/Polls/Voting/Voting.tsx": {
|
15891
|
-
"bytesInOutput":
|
15891
|
+
"bytesInOutput": 4052
|
15892
15892
|
},
|
15893
15893
|
"src/Prebuilt/components/Polls/Polls.tsx": {
|
15894
15894
|
"bytesInOutput": 1177
|
@@ -15987,7 +15987,7 @@
|
|
15987
15987
|
"bytesInOutput": 908
|
15988
15988
|
},
|
15989
15989
|
"src/Prebuilt/components/VirtualBackground/VBPicker.tsx": {
|
15990
|
-
"bytesInOutput":
|
15990
|
+
"bytesInOutput": 7372
|
15991
15991
|
},
|
15992
15992
|
"src/Prebuilt/layouts/SidePane.tsx": {
|
15993
15993
|
"bytesInOutput": 5399
|
@@ -16242,7 +16242,7 @@
|
|
16242
16242
|
"bytesInOutput": 2980
|
16243
16243
|
}
|
16244
16244
|
},
|
16245
|
-
"bytes":
|
16245
|
+
"bytes": 1439171
|
16246
16246
|
}
|
16247
16247
|
}
|
16248
16248
|
}
|
package/dist/meta.esbuild.json
CHANGED
@@ -7010,7 +7010,7 @@
|
|
7010
7010
|
"format": "esm"
|
7011
7011
|
},
|
7012
7012
|
"src/Prebuilt/components/Polls/Voting/Voting.tsx": {
|
7013
|
-
"bytes":
|
7013
|
+
"bytes": 3251,
|
7014
7014
|
"imports": [
|
7015
7015
|
{
|
7016
7016
|
"path": "react",
|
@@ -8706,7 +8706,7 @@
|
|
8706
8706
|
"format": "esm"
|
8707
8707
|
},
|
8708
8708
|
"src/Prebuilt/components/VirtualBackground/VBPicker.tsx": {
|
8709
|
-
"bytes":
|
8709
|
+
"bytes": 6047,
|
8710
8710
|
"imports": [
|
8711
8711
|
{
|
8712
8712
|
"path": "react",
|
@@ -12577,7 +12577,7 @@
|
|
12577
12577
|
"dist/index.js": {
|
12578
12578
|
"imports": [
|
12579
12579
|
{
|
12580
|
-
"path": "dist/chunk-
|
12580
|
+
"path": "dist/chunk-XXVJPGLN.js",
|
12581
12581
|
"kind": "import-statement"
|
12582
12582
|
}
|
12583
12583
|
],
|
@@ -12650,16 +12650,16 @@
|
|
12650
12650
|
"inputs": {},
|
12651
12651
|
"bytes": 1822
|
12652
12652
|
},
|
12653
|
-
"dist/HLSView-
|
12653
|
+
"dist/HLSView-2DSOSSTP.js.map": {
|
12654
12654
|
"imports": [],
|
12655
12655
|
"exports": [],
|
12656
12656
|
"inputs": {},
|
12657
12657
|
"bytes": 58852
|
12658
12658
|
},
|
12659
|
-
"dist/HLSView-
|
12659
|
+
"dist/HLSView-2DSOSSTP.js": {
|
12660
12660
|
"imports": [
|
12661
12661
|
{
|
12662
|
-
"path": "dist/chunk-
|
12662
|
+
"path": "dist/chunk-XXVJPGLN.js",
|
12663
12663
|
"kind": "import-statement"
|
12664
12664
|
},
|
12665
12665
|
{
|
@@ -12823,13 +12823,13 @@
|
|
12823
12823
|
},
|
12824
12824
|
"bytes": 36970
|
12825
12825
|
},
|
12826
|
-
"dist/chunk-
|
12826
|
+
"dist/chunk-XXVJPGLN.js.map": {
|
12827
12827
|
"imports": [],
|
12828
12828
|
"exports": [],
|
12829
12829
|
"inputs": {},
|
12830
|
-
"bytes":
|
12830
|
+
"bytes": 3004956
|
12831
12831
|
},
|
12832
|
-
"dist/chunk-
|
12832
|
+
"dist/chunk-XXVJPGLN.js": {
|
12833
12833
|
"imports": [
|
12834
12834
|
{
|
12835
12835
|
"path": "react",
|
@@ -15047,7 +15047,7 @@
|
|
15047
15047
|
"external": true
|
15048
15048
|
},
|
15049
15049
|
{
|
15050
|
-
"path": "dist/HLSView-
|
15050
|
+
"path": "dist/HLSView-2DSOSSTP.js",
|
15051
15051
|
"kind": "dynamic-import"
|
15052
15052
|
},
|
15053
15053
|
{
|
@@ -15469,7 +15469,7 @@
|
|
15469
15469
|
],
|
15470
15470
|
"inputs": {
|
15471
15471
|
"<define:process.env>": {
|
15472
|
-
"bytesInOutput":
|
15472
|
+
"bytesInOutput": 17194
|
15473
15473
|
},
|
15474
15474
|
"../../node_modules/lodash/lodash.js": {
|
15475
15475
|
"bytesInOutput": 224265
|
@@ -16087,7 +16087,7 @@
|
|
16087
16087
|
"bytesInOutput": 1874
|
16088
16088
|
},
|
16089
16089
|
"src/Prebuilt/components/Polls/Voting/Voting.tsx": {
|
16090
|
-
"bytesInOutput":
|
16090
|
+
"bytesInOutput": 3206
|
16091
16091
|
},
|
16092
16092
|
"src/Prebuilt/components/Polls/Voting/StandardVoting.tsx": {
|
16093
16093
|
"bytesInOutput": 1221
|
@@ -16105,7 +16105,7 @@
|
|
16105
16105
|
"bytesInOutput": 3444
|
16106
16106
|
},
|
16107
16107
|
"src/Prebuilt/components/Chat/ChatBody.tsx": {
|
16108
|
-
"bytesInOutput":
|
16108
|
+
"bytesInOutput": 14276
|
16109
16109
|
},
|
16110
16110
|
"src/Prebuilt/components/Chat/ChatActions.tsx": {
|
16111
16111
|
"bytesInOutput": 9777
|
@@ -16180,7 +16180,7 @@
|
|
16180
16180
|
"bytesInOutput": 1050
|
16181
16181
|
},
|
16182
16182
|
"src/Prebuilt/components/VirtualBackground/VBPicker.tsx": {
|
16183
|
-
"bytesInOutput":
|
16183
|
+
"bytesInOutput": 6018
|
16184
16184
|
},
|
16185
16185
|
"src/Prebuilt/components/VirtualBackground/VBCollection.tsx": {
|
16186
16186
|
"bytesInOutput": 1157
|
@@ -16384,7 +16384,7 @@
|
|
16384
16384
|
"bytesInOutput": 651
|
16385
16385
|
}
|
16386
16386
|
},
|
16387
|
-
"bytes":
|
16387
|
+
"bytes": 1220137
|
16388
16388
|
}
|
16389
16389
|
}
|
16390
16390
|
}
|
package/package.json
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
"prebuilt",
|
11
11
|
"roomkit"
|
12
12
|
],
|
13
|
-
"version": "0.2.2-alpha.
|
13
|
+
"version": "0.2.2-alpha.1",
|
14
14
|
"author": "100ms",
|
15
15
|
"license": "MIT",
|
16
16
|
"repository": {
|
@@ -82,10 +82,10 @@
|
|
82
82
|
"react": ">=17.0.2 <19.0.0"
|
83
83
|
},
|
84
84
|
"dependencies": {
|
85
|
-
"@100mslive/hls-player": "0.2.2-alpha.
|
86
|
-
"@100mslive/hms-virtual-background": "1.12.2-alpha.
|
87
|
-
"@100mslive/react-icons": "0.9.2-alpha.
|
88
|
-
"@100mslive/react-sdk": "0.9.2-alpha.
|
85
|
+
"@100mslive/hls-player": "0.2.2-alpha.1",
|
86
|
+
"@100mslive/hms-virtual-background": "1.12.2-alpha.1",
|
87
|
+
"@100mslive/react-icons": "0.9.2-alpha.1",
|
88
|
+
"@100mslive/react-sdk": "0.9.2-alpha.1",
|
89
89
|
"@100mslive/types-prebuilt": "0.12.5",
|
90
90
|
"@emoji-mart/data": "^1.0.6",
|
91
91
|
"@emoji-mart/react": "^1.0.1",
|
@@ -120,5 +120,5 @@
|
|
120
120
|
"uuid": "^8.3.2",
|
121
121
|
"worker-timers": "^7.0.40"
|
122
122
|
},
|
123
|
-
"gitHead": "
|
123
|
+
"gitHead": "470903541e619aa64cfa01ec9b3a59b32445e29d"
|
124
124
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import {
|
3
|
-
selectLocalPeerID,
|
4
3
|
selectPeerNameByID,
|
4
|
+
selectPermissions,
|
5
5
|
selectPollByID,
|
6
6
|
useHMSActions,
|
7
7
|
useHMSStore,
|
@@ -21,7 +21,8 @@ export const Voting = ({ id, toggleVoting }: { id: string; toggleVoting: () => v
|
|
21
21
|
const actions = useHMSActions();
|
22
22
|
const poll = useHMSStore(selectPollByID(id));
|
23
23
|
const pollCreatorName = useHMSStore(selectPeerNameByID(poll?.createdBy));
|
24
|
-
const
|
24
|
+
const permissions = useHMSStore(selectPermissions);
|
25
|
+
const canEndActivity = !!permissions?.pollWrite;
|
25
26
|
const { setPollView } = usePollViewState();
|
26
27
|
// Sets view - linear or vertical, toggles timer indicator
|
27
28
|
const showSingleView = poll?.type === 'quiz' && poll.state === 'started';
|
@@ -76,7 +77,7 @@ export const Voting = ({ id, toggleVoting }: { id: string; toggleVoting: () => v
|
|
76
77
|
|
77
78
|
{showSingleView ? <TimedView poll={poll} /> : <StandardView poll={poll} />}
|
78
79
|
|
79
|
-
{poll.state === 'started' &&
|
80
|
+
{poll.state === 'started' && canEndActivity && (
|
80
81
|
<Button
|
81
82
|
variant="danger"
|
82
83
|
css={{ fontWeight: '$semiBold', w: 'max-content', ml: 'auto', mt: '$8' }}
|
@@ -136,7 +136,7 @@ export const VBPicker = ({ backgroundMedia = [] }: { backgroundMedia: VirtualBac
|
|
136
136
|
activeBackground={activeBackground}
|
137
137
|
/>
|
138
138
|
|
139
|
-
{activeBackground === HMSVirtualBackgroundTypes.BLUR ? (
|
139
|
+
{activeBackground === HMSVirtualBackgroundTypes.BLUR && isEffectsEnabled && effectsKey ? (
|
140
140
|
<Slider
|
141
141
|
value={[blurAmount]}
|
142
142
|
onValueChange={async e => {
|
Binary file
|
File without changes
|