@100mslive/roomkit-react 0.2.2-alpha.3 → 0.2.2-alpha.4

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-O7BEFUE4.js";
65
+ } from "./chunk-S5NNUR2M.js";
66
66
  export {
67
67
  Accordion,
68
68
  AudioLevel,
@@ -4478,7 +4478,7 @@
4478
4478
  "format": "cjs"
4479
4479
  },
4480
4480
  "../hms-video-store/dist/index.js": {
4481
- "bytes": 320733,
4481
+ "bytes": 320789,
4482
4482
  "imports": [
4483
4483
  {
4484
4484
  "path": "../../node_modules/reselect/es/index.js",
@@ -6780,7 +6780,7 @@
6780
6780
  "format": "esm"
6781
6781
  },
6782
6782
  "src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx": {
6783
- "bytes": 2297,
6783
+ "bytes": 2250,
6784
6784
  "imports": [
6785
6785
  {
6786
6786
  "path": "react",
@@ -6897,7 +6897,7 @@
6897
6897
  "format": "esm"
6898
6898
  },
6899
6899
  "src/Prebuilt/components/Polls/Voting/QuestionCard.jsx": {
6900
- "bytes": 7009,
6900
+ "bytes": 7080,
6901
6901
  "imports": [
6902
6902
  {
6903
6903
  "path": "react",
@@ -12572,7 +12572,7 @@
12572
12572
  "imports": [],
12573
12573
  "exports": [],
12574
12574
  "inputs": {},
12575
- "bytes": 3068442
12575
+ "bytes": 3068537
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": 17184
15249
+ "bytesInOutput": 17194
15250
15250
  },
15251
15251
  "src/Theme/base.config.ts": {
15252
15252
  "bytesInOutput": 6104
@@ -15873,13 +15873,13 @@
15873
15873
  "bytesInOutput": 2203
15874
15874
  },
15875
15875
  "src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx": {
15876
- "bytesInOutput": 2928
15876
+ "bytesInOutput": 2881
15877
15877
  },
15878
15878
  "src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx": {
15879
15879
  "bytesInOutput": 5052
15880
15880
  },
15881
15881
  "src/Prebuilt/components/Polls/Voting/QuestionCard.jsx": {
15882
- "bytesInOutput": 8545
15882
+ "bytesInOutput": 8620
15883
15883
  },
15884
15884
  "src/Prebuilt/components/Polls/Voting/StandardVoting.tsx": {
15885
15885
  "bytesInOutput": 1658
@@ -16242,7 +16242,7 @@
16242
16242
  "bytesInOutput": 2980
16243
16243
  }
16244
16244
  },
16245
- "bytes": 1439261
16245
+ "bytes": 1439299
16246
16246
  }
16247
16247
  }
16248
16248
  }
@@ -4478,7 +4478,7 @@
4478
4478
  "format": "cjs"
4479
4479
  },
4480
4480
  "../hms-video-store/dist/index.js": {
4481
- "bytes": 320733,
4481
+ "bytes": 320789,
4482
4482
  "imports": [
4483
4483
  {
4484
4484
  "path": "../../node_modules/reselect/es/index.js",
@@ -6780,7 +6780,7 @@
6780
6780
  "format": "esm"
6781
6781
  },
6782
6782
  "src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx": {
6783
- "bytes": 2297,
6783
+ "bytes": 2250,
6784
6784
  "imports": [
6785
6785
  {
6786
6786
  "path": "react",
@@ -6897,7 +6897,7 @@
6897
6897
  "format": "esm"
6898
6898
  },
6899
6899
  "src/Prebuilt/components/Polls/Voting/QuestionCard.jsx": {
6900
- "bytes": 7009,
6900
+ "bytes": 7080,
6901
6901
  "imports": [
6902
6902
  {
6903
6903
  "path": "react",
@@ -12577,7 +12577,7 @@
12577
12577
  "dist/index.js": {
12578
12578
  "imports": [
12579
12579
  {
12580
- "path": "dist/chunk-O7BEFUE4.js",
12580
+ "path": "dist/chunk-S5NNUR2M.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-ZG7ZVFEM.js.map": {
12653
+ "dist/HLSView-DPM6YJWZ.js.map": {
12654
12654
  "imports": [],
12655
12655
  "exports": [],
12656
12656
  "inputs": {},
12657
12657
  "bytes": 58852
12658
12658
  },
12659
- "dist/HLSView-ZG7ZVFEM.js": {
12659
+ "dist/HLSView-DPM6YJWZ.js": {
12660
12660
  "imports": [
12661
12661
  {
12662
- "path": "dist/chunk-O7BEFUE4.js",
12662
+ "path": "dist/chunk-S5NNUR2M.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-O7BEFUE4.js.map": {
12826
+ "dist/chunk-S5NNUR2M.js.map": {
12827
12827
  "imports": [],
12828
12828
  "exports": [],
12829
12829
  "inputs": {},
12830
- "bytes": 3005104
12830
+ "bytes": 3005199
12831
12831
  },
12832
- "dist/chunk-O7BEFUE4.js": {
12832
+ "dist/chunk-S5NNUR2M.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-ZG7ZVFEM.js",
15050
+ "path": "dist/HLSView-DPM6YJWZ.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": 17184
15472
+ "bytesInOutput": 17194
15473
15473
  },
15474
15474
  "../../node_modules/lodash/lodash.js": {
15475
15475
  "bytesInOutput": 224265
@@ -16078,7 +16078,7 @@
16078
16078
  "bytesInOutput": 2075
16079
16079
  },
16080
16080
  "src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx": {
16081
- "bytesInOutput": 2372
16081
+ "bytesInOutput": 2325
16082
16082
  },
16083
16083
  "src/Prebuilt/components/Polls/Voting/StatisticBox.tsx": {
16084
16084
  "bytesInOutput": 634
@@ -16093,7 +16093,7 @@
16093
16093
  "bytesInOutput": 1221
16094
16094
  },
16095
16095
  "src/Prebuilt/components/Polls/Voting/QuestionCard.jsx": {
16096
- "bytesInOutput": 7266
16096
+ "bytesInOutput": 7337
16097
16097
  },
16098
16098
  "src/Prebuilt/components/Polls/Voting/TimedVoting.tsx": {
16099
16099
  "bytesInOutput": 1028
@@ -16384,7 +16384,7 @@
16384
16384
  "bytesInOutput": 651
16385
16385
  }
16386
16386
  },
16387
- "bytes": 1220195
16387
+ "bytes": 1220229
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.3",
13
+ "version": "0.2.2-alpha.4",
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.3",
86
- "@100mslive/hms-virtual-background": "1.12.2-alpha.3",
87
- "@100mslive/react-icons": "0.9.2-alpha.3",
88
- "@100mslive/react-sdk": "0.9.2-alpha.3",
85
+ "@100mslive/hls-player": "0.2.2-alpha.4",
86
+ "@100mslive/hms-virtual-background": "1.12.2-alpha.4",
87
+ "@100mslive/react-icons": "0.9.2-alpha.4",
88
+ "@100mslive/react-sdk": "0.9.2-alpha.4",
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": "a8ba9a5b8f03574b1b398575dced298fd1a9fab5"
123
+ "gitHead": "75d0bdf72d3ed51decf146ccdba347bf8dd8d25d"
124
124
  }
@@ -36,7 +36,7 @@ export const PeerParticipationSummary = ({ quiz }: { quiz: HMSPoll }) => {
36
36
  },
37
37
  ]
38
38
  : [
39
- { title: 'Your rank', value: peerEntry?.position ? `${peerEntry.position}/${summary.totalUsers}` : '-' },
39
+ { title: 'Your rank', value: peerEntry?.position || '-' },
40
40
  { title: 'Points', value: peerEntry?.score },
41
41
  // Time in ms
42
42
  { title: 'Time Taken', value: `${((peerEntry?.duration || 0) / 1000).toFixed(3)}s` },
@@ -40,6 +40,7 @@ export const QuestionCard = ({
40
40
  roleCanViewResponse && (localPeerResponse || (isLocalPeerCreator && pollState === 'stopped')) && !isQuiz;
41
41
 
42
42
  const isLive = pollState === 'started';
43
+ const pollEnded = pollState === 'stopped';
43
44
  const canRespond = isLive && !localPeerResponse;
44
45
  const startTime = useRef(Date.now());
45
46
  const isCorrectAnswer = checkCorrectAnswer(answer, localPeerResponse, type);
@@ -117,8 +118,8 @@ export const QuestionCard = ({
117
118
  gap: '$4',
118
119
  }}
119
120
  >
120
- {respondedToQuiz && isCorrectAnswer ? <CheckCircleIcon height={20} width={20} /> : null}
121
- {respondedToQuiz && !isCorrectAnswer ? <CrossCircleIcon height={20} width={20} /> : null}
121
+ {respondedToQuiz && isCorrectAnswer && pollEnded ? <CheckCircleIcon height={20} width={20} /> : null}
122
+ {respondedToQuiz && !isCorrectAnswer && pollEnded ? <CrossCircleIcon height={20} width={20} /> : null}
122
123
  QUESTION {index} OF {totalQuestions}: {type.toUpperCase()}
123
124
  </Text>
124
125
  </Flex>