@100mslive/roomkit-react 0.2.3-alpha.2 → 0.2.3-alpha.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{HLSView-7HBO24NV.js → HLSView-IUF7RGVF.js} +2 -2
- package/dist/{chunk-U5FEFLCO.js → chunk-2UXI3OG5.js} +6 -6
- package/dist/{chunk-U5FEFLCO.js.map → chunk-2UXI3OG5.js.map} +2 -2
- package/dist/index.cjs.js +4 -4
- package/dist/index.cjs.js.map +2 -2
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +5 -5
- package/dist/meta.esbuild.json +12 -12
- package/package.json +6 -6
- package/src/Prebuilt/components/Polls/Voting/TimedVoting.tsx +2 -2
- /package/dist/{HLSView-7HBO24NV.js.map → HLSView-IUF7RGVF.js.map} +0 -0
package/dist/index.js
CHANGED
package/dist/meta.cjs.json
CHANGED
@@ -7035,7 +7035,7 @@
|
|
7035
7035
|
"format": "esm"
|
7036
7036
|
},
|
7037
7037
|
"src/Prebuilt/components/Polls/Voting/TimedVoting.tsx": {
|
7038
|
-
"bytes":
|
7038
|
+
"bytes": 1616,
|
7039
7039
|
"imports": [
|
7040
7040
|
{
|
7041
7041
|
"path": "react",
|
@@ -12628,7 +12628,7 @@
|
|
12628
12628
|
"imports": [],
|
12629
12629
|
"exports": [],
|
12630
12630
|
"inputs": {},
|
12631
|
-
"bytes":
|
12631
|
+
"bytes": 3145951
|
12632
12632
|
},
|
12633
12633
|
"dist/index.cjs.js": {
|
12634
12634
|
"imports": [
|
@@ -15312,7 +15312,7 @@
|
|
15312
15312
|
"entryPoint": "src/index.ts",
|
15313
15313
|
"inputs": {
|
15314
15314
|
"<define:process.env>": {
|
15315
|
-
"bytesInOutput":
|
15315
|
+
"bytesInOutput": 18124
|
15316
15316
|
},
|
15317
15317
|
"src/Theme/base.config.ts": {
|
15318
15318
|
"bytesInOutput": 6104
|
@@ -15960,7 +15960,7 @@
|
|
15960
15960
|
"bytesInOutput": 1658
|
15961
15961
|
},
|
15962
15962
|
"src/Prebuilt/components/Polls/Voting/TimedVoting.tsx": {
|
15963
|
-
"bytesInOutput":
|
15963
|
+
"bytesInOutput": 2124
|
15964
15964
|
},
|
15965
15965
|
"src/Prebuilt/components/Polls/Voting/Voting.tsx": {
|
15966
15966
|
"bytesInOutput": 4217
|
@@ -16317,7 +16317,7 @@
|
|
16317
16317
|
"bytesInOutput": 2980
|
16318
16318
|
}
|
16319
16319
|
},
|
16320
|
-
"bytes":
|
16320
|
+
"bytes": 1476468
|
16321
16321
|
}
|
16322
16322
|
}
|
16323
16323
|
}
|
package/dist/meta.esbuild.json
CHANGED
@@ -7035,7 +7035,7 @@
|
|
7035
7035
|
"format": "esm"
|
7036
7036
|
},
|
7037
7037
|
"src/Prebuilt/components/Polls/Voting/TimedVoting.tsx": {
|
7038
|
-
"bytes":
|
7038
|
+
"bytes": 1616,
|
7039
7039
|
"imports": [
|
7040
7040
|
{
|
7041
7041
|
"path": "react",
|
@@ -12633,7 +12633,7 @@
|
|
12633
12633
|
"dist/index.js": {
|
12634
12634
|
"imports": [
|
12635
12635
|
{
|
12636
|
-
"path": "dist/chunk-
|
12636
|
+
"path": "dist/chunk-2UXI3OG5.js",
|
12637
12637
|
"kind": "import-statement"
|
12638
12638
|
}
|
12639
12639
|
],
|
@@ -12706,16 +12706,16 @@
|
|
12706
12706
|
"inputs": {},
|
12707
12707
|
"bytes": 1822
|
12708
12708
|
},
|
12709
|
-
"dist/HLSView-
|
12709
|
+
"dist/HLSView-IUF7RGVF.js.map": {
|
12710
12710
|
"imports": [],
|
12711
12711
|
"exports": [],
|
12712
12712
|
"inputs": {},
|
12713
12713
|
"bytes": 58852
|
12714
12714
|
},
|
12715
|
-
"dist/HLSView-
|
12715
|
+
"dist/HLSView-IUF7RGVF.js": {
|
12716
12716
|
"imports": [
|
12717
12717
|
{
|
12718
|
-
"path": "dist/chunk-
|
12718
|
+
"path": "dist/chunk-2UXI3OG5.js",
|
12719
12719
|
"kind": "import-statement"
|
12720
12720
|
},
|
12721
12721
|
{
|
@@ -12879,13 +12879,13 @@
|
|
12879
12879
|
},
|
12880
12880
|
"bytes": 36970
|
12881
12881
|
},
|
12882
|
-
"dist/chunk-
|
12882
|
+
"dist/chunk-2UXI3OG5.js.map": {
|
12883
12883
|
"imports": [],
|
12884
12884
|
"exports": [],
|
12885
12885
|
"inputs": {},
|
12886
|
-
"bytes":
|
12886
|
+
"bytes": 3082473
|
12887
12887
|
},
|
12888
|
-
"dist/chunk-
|
12888
|
+
"dist/chunk-2UXI3OG5.js": {
|
12889
12889
|
"imports": [
|
12890
12890
|
{
|
12891
12891
|
"path": "react",
|
@@ -15113,7 +15113,7 @@
|
|
15113
15113
|
"external": true
|
15114
15114
|
},
|
15115
15115
|
{
|
15116
|
-
"path": "dist/HLSView-
|
15116
|
+
"path": "dist/HLSView-IUF7RGVF.js",
|
15117
15117
|
"kind": "dynamic-import"
|
15118
15118
|
},
|
15119
15119
|
{
|
@@ -15535,7 +15535,7 @@
|
|
15535
15535
|
],
|
15536
15536
|
"inputs": {
|
15537
15537
|
"<define:process.env>": {
|
15538
|
-
"bytesInOutput":
|
15538
|
+
"bytesInOutput": 18124
|
15539
15539
|
},
|
15540
15540
|
"../../node_modules/lodash/lodash.js": {
|
15541
15541
|
"bytesInOutput": 224265
|
@@ -16171,7 +16171,7 @@
|
|
16171
16171
|
"bytesInOutput": 7270
|
16172
16172
|
},
|
16173
16173
|
"src/Prebuilt/components/Polls/Voting/TimedVoting.tsx": {
|
16174
|
-
"bytesInOutput":
|
16174
|
+
"bytesInOutput": 1727
|
16175
16175
|
},
|
16176
16176
|
"src/Prebuilt/components/SidePaneTabs.tsx": {
|
16177
16177
|
"bytesInOutput": 7277
|
@@ -16459,7 +16459,7 @@
|
|
16459
16459
|
"bytesInOutput": 651
|
16460
16460
|
}
|
16461
16461
|
},
|
16462
|
-
"bytes":
|
16462
|
+
"bytes": 1256661
|
16463
16463
|
}
|
16464
16464
|
}
|
16465
16465
|
}
|
package/package.json
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
"prebuilt",
|
11
11
|
"roomkit"
|
12
12
|
],
|
13
|
-
"version": "0.2.3-alpha.
|
13
|
+
"version": "0.2.3-alpha.3",
|
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.3-alpha.
|
86
|
-
"@100mslive/hms-virtual-background": "1.12.3-alpha.
|
87
|
-
"@100mslive/react-icons": "0.9.3-alpha.
|
88
|
-
"@100mslive/react-sdk": "0.9.3-alpha.
|
85
|
+
"@100mslive/hls-player": "0.2.3-alpha.3",
|
86
|
+
"@100mslive/hms-virtual-background": "1.12.3-alpha.3",
|
87
|
+
"@100mslive/react-icons": "0.9.3-alpha.3",
|
88
|
+
"@100mslive/react-sdk": "0.9.3-alpha.3",
|
89
89
|
"@100mslive/types-prebuilt": "0.12.6",
|
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": "efe546ad2a38a910d45110597d39e2815a6740b9"
|
124
124
|
}
|
@@ -12,14 +12,14 @@ export const TimedView = ({ poll }: { poll: HMSPoll }) => {
|
|
12
12
|
const activeQuestion = poll.questions?.find(question => question.index === currentIndex);
|
13
13
|
const attemptedAll = poll.questions?.length === lastAttemptedIndex - 1;
|
14
14
|
|
15
|
-
if (!activeQuestion || !poll.questions?.length) {
|
15
|
+
if ((!activeQuestion && !attemptedAll) || !poll.questions?.length) {
|
16
16
|
return null;
|
17
17
|
}
|
18
18
|
|
19
19
|
return (
|
20
20
|
<>
|
21
21
|
{poll.questions.map(question => {
|
22
|
-
return attemptedAll || activeQuestion
|
22
|
+
return attemptedAll || activeQuestion?.index === question.index ? (
|
23
23
|
<QuestionCard
|
24
24
|
key={question.index}
|
25
25
|
pollID={poll.id}
|
File without changes
|