@100mslive/roomkit-react 0.2.3-alpha.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.js CHANGED
@@ -62,7 +62,7 @@ import {
62
62
  theme,
63
63
  useBorderAudioLevel,
64
64
  useTheme
65
- } from "./chunk-U5FEFLCO.js";
65
+ } from "./chunk-G25T3EBJ.js";
66
66
  export {
67
67
  Accordion,
68
68
  AudioLevel,
@@ -4498,7 +4498,7 @@
4498
4498
  "format": "cjs"
4499
4499
  },
4500
4500
  "../hms-video-store/dist/index.js": {
4501
- "bytes": 321732,
4501
+ "bytes": 321724,
4502
4502
  "imports": [
4503
4503
  {
4504
4504
  "path": "../../node_modules/reselect/es/index.js",
@@ -7035,7 +7035,7 @@
7035
7035
  "format": "esm"
7036
7036
  },
7037
7037
  "src/Prebuilt/components/Polls/Voting/TimedVoting.tsx": {
7038
- "bytes": 1596,
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": 3145903
12631
+ "bytes": 3145929
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": 18095
15315
+ "bytesInOutput": 18056
15316
15316
  },
15317
15317
  "src/Theme/base.config.ts": {
15318
15318
  "bytesInOutput": 6104
@@ -15792,7 +15792,7 @@
15792
15792
  "bytesInOutput": 615
15793
15793
  },
15794
15794
  "../hms-video-store/dist/index.js": {
15795
- "bytesInOutput": 52996
15795
+ "bytesInOutput": 52988
15796
15796
  },
15797
15797
  "src/Prebuilt/components/hooks/usePlaylistMusic.js": {
15798
15798
  "bytesInOutput": 1384
@@ -15960,7 +15960,7 @@
15960
15960
  "bytesInOutput": 1658
15961
15961
  },
15962
15962
  "src/Prebuilt/components/Polls/Voting/TimedVoting.tsx": {
15963
- "bytesInOutput": 2071
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": 1476386
16320
+ "bytes": 1476392
16321
16321
  }
16322
16322
  }
16323
16323
  }
@@ -4498,7 +4498,7 @@
4498
4498
  "format": "cjs"
4499
4499
  },
4500
4500
  "../hms-video-store/dist/index.js": {
4501
- "bytes": 321732,
4501
+ "bytes": 321724,
4502
4502
  "imports": [
4503
4503
  {
4504
4504
  "path": "../../node_modules/reselect/es/index.js",
@@ -7035,7 +7035,7 @@
7035
7035
  "format": "esm"
7036
7036
  },
7037
7037
  "src/Prebuilt/components/Polls/Voting/TimedVoting.tsx": {
7038
- "bytes": 1596,
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-U5FEFLCO.js",
12636
+ "path": "dist/chunk-G25T3EBJ.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-7HBO24NV.js.map": {
12709
+ "dist/HLSView-2BP4GO3Q.js.map": {
12710
12710
  "imports": [],
12711
12711
  "exports": [],
12712
12712
  "inputs": {},
12713
12713
  "bytes": 58852
12714
12714
  },
12715
- "dist/HLSView-7HBO24NV.js": {
12715
+ "dist/HLSView-2BP4GO3Q.js": {
12716
12716
  "imports": [
12717
12717
  {
12718
- "path": "dist/chunk-U5FEFLCO.js",
12718
+ "path": "dist/chunk-G25T3EBJ.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-U5FEFLCO.js.map": {
12882
+ "dist/chunk-G25T3EBJ.js.map": {
12883
12883
  "imports": [],
12884
12884
  "exports": [],
12885
12885
  "inputs": {},
12886
- "bytes": 3082425
12886
+ "bytes": 3082451
12887
12887
  },
12888
- "dist/chunk-U5FEFLCO.js": {
12888
+ "dist/chunk-G25T3EBJ.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-7HBO24NV.js",
15116
+ "path": "dist/HLSView-2BP4GO3Q.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": 18095
15538
+ "bytesInOutput": 18056
15539
15539
  },
15540
15540
  "../../node_modules/lodash/lodash.js": {
15541
15541
  "bytesInOutput": 224265
@@ -15964,7 +15964,7 @@
15964
15964
  "bytesInOutput": 10019
15965
15965
  },
15966
15966
  "../hms-video-store/dist/index.js": {
15967
- "bytesInOutput": 48434
15967
+ "bytesInOutput": 48426
15968
15968
  },
15969
15969
  "../../node_modules/reselect/es/index.js": {
15970
15970
  "bytesInOutput": 2537
@@ -16171,7 +16171,7 @@
16171
16171
  "bytesInOutput": 7270
16172
16172
  },
16173
16173
  "src/Prebuilt/components/Polls/Voting/TimedVoting.tsx": {
16174
- "bytesInOutput": 1674
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": 1256579
16462
+ "bytes": 1256585
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.2",
13
+ "version": "0.2.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.2",
86
- "@100mslive/hms-virtual-background": "1.12.3-alpha.2",
87
- "@100mslive/react-icons": "0.9.3-alpha.2",
88
- "@100mslive/react-sdk": "0.9.3-alpha.2",
85
+ "@100mslive/hls-player": "0.2.3",
86
+ "@100mslive/hms-virtual-background": "1.12.3",
87
+ "@100mslive/react-icons": "0.9.3",
88
+ "@100mslive/react-sdk": "0.9.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": "4f1741f9e77533d1e1af8b7e8fc18d0832fc9c4c"
123
+ "gitHead": "83684d84e695eaf15f683f361848293c2df337a2"
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.index === question.index ? (
22
+ return attemptedAll || activeQuestion?.index === question.index ? (
23
23
  <QuestionCard
24
24
  key={question.index}
25
25
  pollID={poll.id}