@100mslive/roomkit-react 0.2.1 → 0.2.2-alpha.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. package/dist/{HLSView-U7FQ2YLK.js → HLSView-4TLGLPKO.js} +19 -4
  2. package/dist/HLSView-4TLGLPKO.js.map +7 -0
  3. package/dist/Prebuilt/components/Polls/Voting/LeaderboardEntry.d.ts +2 -1
  4. package/dist/Prebuilt/components/RoleChangeRequest/RequestPrompt.d.ts +2 -1
  5. package/dist/Prebuilt/components/VirtualBackground/VBHandler.d.ts +1 -0
  6. package/dist/{chunk-GNQAOG73.js → chunk-ARSLHHAZ.js} +176 -159
  7. package/dist/{chunk-GNQAOG73.js.map → chunk-ARSLHHAZ.js.map} +3 -3
  8. package/dist/index.cjs.js +159 -124
  9. package/dist/index.cjs.js.map +3 -3
  10. package/dist/index.js +1 -1
  11. package/dist/meta.cjs.json +41 -41
  12. package/dist/meta.esbuild.json +50 -50
  13. package/package.json +6 -6
  14. package/src/Button/Button.tsx +2 -2
  15. package/src/Prebuilt/components/Notifications/PermissionErrorModal.tsx +8 -1
  16. package/src/Prebuilt/components/Polls/Voting/LeaderboardEntry.tsx +17 -5
  17. package/src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx +1 -0
  18. package/src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx +4 -2
  19. package/src/Prebuilt/components/Polls/Voting/QuestionCard.jsx +38 -81
  20. package/src/Prebuilt/components/Polls/Voting/StandardVoting.tsx +0 -1
  21. package/src/Prebuilt/components/Polls/Voting/TimedVoting.tsx +2 -3
  22. package/src/Prebuilt/components/Polls/Voting/Voting.tsx +3 -3
  23. package/src/Prebuilt/components/Polls/common/MultipleChoiceOptions.jsx +1 -2
  24. package/src/Prebuilt/components/Polls/common/SingleChoiceOptions.jsx +6 -4
  25. package/src/Prebuilt/components/Polls/common/StatusIndicator.tsx +1 -1
  26. package/src/Prebuilt/components/Preview/PreviewJoin.tsx +4 -14
  27. package/src/Prebuilt/components/RoleChangeRequest/RequestPrompt.tsx +15 -5
  28. package/src/Prebuilt/components/RoleChangeRequest/RoleChangeRequestModal.tsx +3 -0
  29. package/src/Prebuilt/components/VirtualBackground/VBHandler.tsx +11 -1
  30. package/src/Prebuilt/components/VirtualBackground/VBPicker.tsx +16 -2
  31. package/src/Prebuilt/layouts/HLSView.jsx +16 -1
  32. package/src/Sheet/Sheet.tsx +1 -1
  33. package/dist/HLSView-U7FQ2YLK.js.map +0 -7
@@ -242,7 +242,7 @@
242
242
  "format": "esm"
243
243
  },
244
244
  "src/Button/Button.tsx": {
245
- "bytes": 4738,
245
+ "bytes": 4742,
246
246
  "imports": [
247
247
  {
248
248
  "path": "react",
@@ -2713,7 +2713,7 @@
2713
2713
  "format": "esm"
2714
2714
  },
2715
2715
  "src/Sheet/Sheet.tsx": {
2716
- "bytes": 3142,
2716
+ "bytes": 3140,
2717
2717
  "imports": [
2718
2718
  {
2719
2719
  "path": "react",
@@ -4478,7 +4478,7 @@
4478
4478
  "format": "cjs"
4479
4479
  },
4480
4480
  "../hms-video-store/dist/index.js": {
4481
- "bytes": 320293,
4481
+ "bytes": 320733,
4482
4482
  "imports": [
4483
4483
  {
4484
4484
  "path": "../../node_modules/reselect/es/index.js",
@@ -6422,7 +6422,7 @@
6422
6422
  "format": "esm"
6423
6423
  },
6424
6424
  "src/Prebuilt/components/Polls/common/MultipleChoiceOptions.jsx": {
6425
- "bytes": 3799,
6425
+ "bytes": 3796,
6426
6426
  "imports": [
6427
6427
  {
6428
6428
  "path": "react",
@@ -6463,7 +6463,7 @@
6463
6463
  "format": "esm"
6464
6464
  },
6465
6465
  "src/Prebuilt/components/Polls/common/SingleChoiceOptions.jsx": {
6466
- "bytes": 4925,
6466
+ "bytes": 5021,
6467
6467
  "imports": [
6468
6468
  {
6469
6469
  "path": "react",
@@ -6697,7 +6697,7 @@
6697
6697
  "format": "esm"
6698
6698
  },
6699
6699
  "src/Prebuilt/components/Polls/Voting/LeaderboardEntry.tsx": {
6700
- "bytes": 1775,
6700
+ "bytes": 2113,
6701
6701
  "imports": [
6702
6702
  {
6703
6703
  "path": "react",
@@ -6780,7 +6780,7 @@
6780
6780
  "format": "esm"
6781
6781
  },
6782
6782
  "src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx": {
6783
- "bytes": 2194,
6783
+ "bytes": 2297,
6784
6784
  "imports": [
6785
6785
  {
6786
6786
  "path": "react",
@@ -6821,7 +6821,7 @@
6821
6821
  "format": "esm"
6822
6822
  },
6823
6823
  "src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx": {
6824
- "bytes": 4039,
6824
+ "bytes": 4084,
6825
6825
  "imports": [
6826
6826
  {
6827
6827
  "path": "react",
@@ -6897,7 +6897,7 @@
6897
6897
  "format": "esm"
6898
6898
  },
6899
6899
  "src/Prebuilt/components/Polls/Voting/QuestionCard.jsx": {
6900
- "bytes": 8553,
6900
+ "bytes": 7009,
6901
6901
  "imports": [
6902
6902
  {
6903
6903
  "path": "react",
@@ -6953,7 +6953,7 @@
6953
6953
  "format": "esm"
6954
6954
  },
6955
6955
  "src/Prebuilt/components/Polls/Voting/StandardVoting.tsx": {
6956
- "bytes": 1253,
6956
+ "bytes": 1212,
6957
6957
  "imports": [
6958
6958
  {
6959
6959
  "path": "react",
@@ -6984,7 +6984,7 @@
6984
6984
  "format": "esm"
6985
6985
  },
6986
6986
  "src/Prebuilt/components/Polls/Voting/TimedVoting.tsx": {
6987
- "bytes": 1090,
6987
+ "bytes": 1025,
6988
6988
  "imports": [
6989
6989
  {
6990
6990
  "path": "react",
@@ -7010,7 +7010,7 @@
7010
7010
  "format": "esm"
7011
7011
  },
7012
7012
  "src/Prebuilt/components/Polls/Voting/Voting.tsx": {
7013
- "bytes": 3192,
7013
+ "bytes": 3231,
7014
7014
  "imports": [
7015
7015
  {
7016
7016
  "path": "react",
@@ -8674,7 +8674,7 @@
8674
8674
  "format": "esm"
8675
8675
  },
8676
8676
  "src/Prebuilt/components/VirtualBackground/VBHandler.tsx": {
8677
- "bytes": 2178,
8677
+ "bytes": 2475,
8678
8678
  "imports": [
8679
8679
  {
8680
8680
  "path": "@100mslive/hms-virtual-background",
@@ -8706,7 +8706,7 @@
8706
8706
  "format": "esm"
8707
8707
  },
8708
8708
  "src/Prebuilt/components/VirtualBackground/VBPicker.tsx": {
8709
- "bytes": 5568,
8709
+ "bytes": 6013,
8710
8710
  "imports": [
8711
8711
  {
8712
8712
  "path": "react",
@@ -9042,7 +9042,7 @@
9042
9042
  "format": "esm"
9043
9043
  },
9044
9044
  "src/Prebuilt/components/Preview/PreviewJoin.tsx": {
9045
- "bytes": 10223,
9045
+ "bytes": 9986,
9046
9046
  "imports": [
9047
9047
  {
9048
9048
  "path": "react",
@@ -9168,7 +9168,7 @@
9168
9168
  "format": "esm"
9169
9169
  },
9170
9170
  "src/Prebuilt/components/RoleChangeRequest/RequestPrompt.tsx": {
9171
- "bytes": 2091,
9171
+ "bytes": 2289,
9172
9172
  "imports": [
9173
9173
  {
9174
9174
  "path": "react",
@@ -9199,7 +9199,7 @@
9199
9199
  "format": "esm"
9200
9200
  },
9201
9201
  "src/Prebuilt/components/RoleChangeRequest/RoleChangeRequestModal.tsx": {
9202
- "bytes": 2851,
9202
+ "bytes": 2958,
9203
9203
  "imports": [
9204
9204
  {
9205
9205
  "path": "react",
@@ -10523,7 +10523,7 @@
10523
10523
  "format": "esm"
10524
10524
  },
10525
10525
  "src/Prebuilt/layouts/HLSView.jsx": {
10526
- "bytes": 17061,
10526
+ "bytes": 17552,
10527
10527
  "imports": [
10528
10528
  {
10529
10529
  "path": "react",
@@ -11573,7 +11573,7 @@
11573
11573
  "imports": []
11574
11574
  },
11575
11575
  "src/Prebuilt/components/Notifications/PermissionErrorModal.tsx": {
11576
- "bytes": 4772,
11576
+ "bytes": 4888,
11577
11577
  "imports": [
11578
11578
  {
11579
11579
  "path": "react",
@@ -12577,7 +12577,7 @@
12577
12577
  "dist/index.js": {
12578
12578
  "imports": [
12579
12579
  {
12580
- "path": "dist/chunk-GNQAOG73.js",
12580
+ "path": "dist/chunk-ARSLHHAZ.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-U7FQ2YLK.js.map": {
12653
+ "dist/HLSView-4TLGLPKO.js.map": {
12654
12654
  "imports": [],
12655
12655
  "exports": [],
12656
12656
  "inputs": {},
12657
- "bytes": 58021
12657
+ "bytes": 58852
12658
12658
  },
12659
- "dist/HLSView-U7FQ2YLK.js": {
12659
+ "dist/HLSView-4TLGLPKO.js": {
12660
12660
  "imports": [
12661
12661
  {
12662
- "path": "dist/chunk-GNQAOG73.js",
12662
+ "path": "dist/chunk-ARSLHHAZ.js",
12663
12663
  "kind": "import-statement"
12664
12664
  },
12665
12665
  {
@@ -12779,7 +12779,7 @@
12779
12779
  "entryPoint": "src/Prebuilt/layouts/HLSView.jsx",
12780
12780
  "inputs": {
12781
12781
  "src/Prebuilt/layouts/HLSView.jsx": {
12782
- "bytesInOutput": 16830
12782
+ "bytesInOutput": 17351
12783
12783
  },
12784
12784
  "src/Prebuilt/components/HlsStatsOverlay.jsx": {
12785
12785
  "bytesInOutput": 3521
@@ -12821,15 +12821,15 @@
12821
12821
  "bytesInOutput": 3992
12822
12822
  }
12823
12823
  },
12824
- "bytes": 36449
12824
+ "bytes": 36970
12825
12825
  },
12826
- "dist/chunk-GNQAOG73.js.map": {
12826
+ "dist/chunk-ARSLHHAZ.js.map": {
12827
12827
  "imports": [],
12828
12828
  "exports": [],
12829
12829
  "inputs": {},
12830
- "bytes": 3004637
12830
+ "bytes": 3004868
12831
12831
  },
12832
- "dist/chunk-GNQAOG73.js": {
12832
+ "dist/chunk-ARSLHHAZ.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-U7FQ2YLK.js",
15050
+ "path": "dist/HLSView-4TLGLPKO.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": 18024
15472
+ "bytesInOutput": 17193
15473
15473
  },
15474
15474
  "../../node_modules/lodash/lodash.js": {
15475
15475
  "bytesInOutput": 224265
@@ -15499,7 +15499,7 @@
15499
15499
  "bytesInOutput": 27
15500
15500
  },
15501
15501
  "src/Button/Button.tsx": {
15502
- "bytesInOutput": 4339
15502
+ "bytesInOutput": 4343
15503
15503
  },
15504
15504
  "src/Layout/index.tsx": {
15505
15505
  "bytesInOutput": 27
@@ -15793,7 +15793,7 @@
15793
15793
  "bytesInOutput": 27
15794
15794
  },
15795
15795
  "src/Sheet/Sheet.tsx": {
15796
- "bytesInOutput": 2770
15796
+ "bytesInOutput": 2768
15797
15797
  },
15798
15798
  "src/Prebuilt/components/MoreSettings/MoreSettings.tsx": {
15799
15799
  "bytesInOutput": 392
@@ -15892,7 +15892,7 @@
15892
15892
  "bytesInOutput": 10019
15893
15893
  },
15894
15894
  "../hms-video-store/dist/index.js": {
15895
- "bytesInOutput": 48225
15895
+ "bytesInOutput": 48233
15896
15896
  },
15897
15897
  "../../node_modules/reselect/es/index.js": {
15898
15898
  "bytesInOutput": 2537
@@ -16021,10 +16021,10 @@
16021
16021
  "bytesInOutput": 2414
16022
16022
  },
16023
16023
  "src/Prebuilt/components/RoleChangeRequest/RoleChangeRequestModal.tsx": {
16024
- "bytesInOutput": 2968
16024
+ "bytesInOutput": 3077
16025
16025
  },
16026
16026
  "src/Prebuilt/components/Preview/PreviewJoin.tsx": {
16027
- "bytesInOutput": 9824
16027
+ "bytesInOutput": 9632
16028
16028
  },
16029
16029
  "src/Prebuilt/layouts/SidePane.tsx": {
16030
16030
  "bytesInOutput": 4443
@@ -16054,7 +16054,7 @@
16054
16054
  "bytesInOutput": 204
16055
16055
  },
16056
16056
  "src/Prebuilt/components/Polls/common/MultipleChoiceOptions.jsx": {
16057
- "bytesInOutput": 3637
16057
+ "bytesInOutput": 3643
16058
16058
  },
16059
16059
  "src/Prebuilt/components/Polls/common/OptionInputWithDelete.tsx": {
16060
16060
  "bytesInOutput": 889
@@ -16066,19 +16066,19 @@
16066
16066
  "bytesInOutput": 594
16067
16067
  },
16068
16068
  "src/Prebuilt/components/Polls/common/SingleChoiceOptions.jsx": {
16069
- "bytesInOutput": 4306
16069
+ "bytesInOutput": 4331
16070
16070
  },
16071
16071
  "src/Prebuilt/components/Polls/CreateQuestions/SavedQuestion.tsx": {
16072
16072
  "bytesInOutput": 2116
16073
16073
  },
16074
16074
  "src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx": {
16075
- "bytesInOutput": 3973
16075
+ "bytesInOutput": 4010
16076
16076
  },
16077
16077
  "src/Prebuilt/components/Polls/Voting/LeaderboardEntry.tsx": {
16078
- "bytesInOutput": 1683
16078
+ "bytesInOutput": 2075
16079
16079
  },
16080
16080
  "src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx": {
16081
- "bytesInOutput": 2277
16081
+ "bytesInOutput": 2372
16082
16082
  },
16083
16083
  "src/Prebuilt/components/Polls/Voting/StatisticBox.tsx": {
16084
16084
  "bytesInOutput": 634
@@ -16087,16 +16087,16 @@
16087
16087
  "bytesInOutput": 1874
16088
16088
  },
16089
16089
  "src/Prebuilt/components/Polls/Voting/Voting.tsx": {
16090
- "bytesInOutput": 3113
16090
+ "bytesInOutput": 3177
16091
16091
  },
16092
16092
  "src/Prebuilt/components/Polls/Voting/StandardVoting.tsx": {
16093
- "bytesInOutput": 1260
16093
+ "bytesInOutput": 1221
16094
16094
  },
16095
16095
  "src/Prebuilt/components/Polls/Voting/QuestionCard.jsx": {
16096
- "bytesInOutput": 8527
16096
+ "bytesInOutput": 7266
16097
16097
  },
16098
16098
  "src/Prebuilt/components/Polls/Voting/TimedVoting.tsx": {
16099
- "bytesInOutput": 1101
16099
+ "bytesInOutput": 1028
16100
16100
  },
16101
16101
  "src/Prebuilt/components/SidePaneTabs.tsx": {
16102
16102
  "bytesInOutput": 7277
@@ -16180,7 +16180,7 @@
16180
16180
  "bytesInOutput": 1050
16181
16181
  },
16182
16182
  "src/Prebuilt/components/VirtualBackground/VBPicker.tsx": {
16183
- "bytesInOutput": 5518
16183
+ "bytesInOutput": 5984
16184
16184
  },
16185
16185
  "src/Prebuilt/components/VirtualBackground/VBCollection.tsx": {
16186
16186
  "bytesInOutput": 1157
@@ -16189,7 +16189,7 @@
16189
16189
  "bytesInOutput": 1161
16190
16190
  },
16191
16191
  "src/Prebuilt/components/VirtualBackground/VBHandler.tsx": {
16192
- "bytesInOutput": 2848
16192
+ "bytesInOutput": 3124
16193
16193
  },
16194
16194
  "src/Prebuilt/components/VirtualBackground/constants.ts": {
16195
16195
  "bytesInOutput": 714
@@ -16207,7 +16207,7 @@
16207
16207
  "bytesInOutput": 2717
16208
16208
  },
16209
16209
  "src/Prebuilt/components/RoleChangeRequest/RequestPrompt.tsx": {
16210
- "bytesInOutput": 2041
16210
+ "bytesInOutput": 2163
16211
16211
  },
16212
16212
  "src/Prebuilt/layouts/VideoStreamingSection.tsx": {
16213
16213
  "bytesInOutput": 3196
@@ -16336,7 +16336,7 @@
16336
16336
  "bytesInOutput": 1593
16337
16337
  },
16338
16338
  "src/Prebuilt/components/Notifications/PermissionErrorModal.tsx": {
16339
- "bytesInOutput": 4382
16339
+ "bytesInOutput": 4534
16340
16340
  },
16341
16341
  "src/Prebuilt/images/android-perm-1.png": {
16342
16342
  "bytesInOutput": 10443
@@ -16384,7 +16384,7 @@
16384
16384
  "bytesInOutput": 651
16385
16385
  }
16386
16386
  },
16387
- "bytes": 1220717
16387
+ "bytes": 1220075
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.1",
13
+ "version": "0.2.2-alpha.0",
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.1",
86
- "@100mslive/hms-virtual-background": "1.12.1",
87
- "@100mslive/react-icons": "0.9.1",
88
- "@100mslive/react-sdk": "0.9.1",
85
+ "@100mslive/hls-player": "0.2.2-alpha.0",
86
+ "@100mslive/hms-virtual-background": "1.12.2-alpha.0",
87
+ "@100mslive/react-icons": "0.9.2-alpha.0",
88
+ "@100mslive/react-sdk": "0.9.2-alpha.0",
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": "d059b6f9ea6851f26271332df4cf83c9a4f3d567"
123
+ "gitHead": "8d716a49dfb9bfed4ee6863e9e55490b39b49ed5"
124
124
  }
@@ -143,8 +143,8 @@ const StyledButton = styled('button', {
143
143
  '$secondary_bright',
144
144
  '$secondary_dim',
145
145
  '$secondary_disabled',
146
- '$on_surface_high',
147
- '$on_surface_low',
146
+ '$on_secondary_high',
147
+ '$on_secondary_low',
148
148
  ),
149
149
  danger: getButtonVariants(
150
150
  '$alert_error_default',
@@ -44,7 +44,14 @@ export function PermissionErrorModal() {
44
44
  <Dialog.Root open={!!deviceType}>
45
45
  <Dialog.Portal>
46
46
  <Dialog.Overlay />
47
- <Dialog.Content css={{ w: 'min(380px, 90%)', p: '$8' }}>
47
+ <Dialog.Content
48
+ css={{
49
+ w: 'min(380px, 90%)',
50
+ p: '$8',
51
+ // overlay over Sheet.tsx
52
+ zIndex: 23,
53
+ }}
54
+ >
48
55
  <Dialog.Title
49
56
  css={{
50
57
  borderBottom: '1px solid $border_default',
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { CheckCircleIcon, TrophyFilledIcon } from '@100mslive/react-icons';
2
+ import { CheckCircleIcon, ClockIcon, TrophyFilledIcon } from '@100mslive/react-icons';
3
3
  import { Box, Flex } from '../../../../Layout';
4
4
  import { Text } from '../../../../Text';
5
5
 
@@ -12,6 +12,7 @@ export const LeaderboardEntry = ({
12
12
  correctResponses,
13
13
  userName,
14
14
  maxPossibleScore,
15
+ duration,
15
16
  }: {
16
17
  position: number;
17
18
  score: number;
@@ -19,6 +20,7 @@ export const LeaderboardEntry = ({
19
20
  correctResponses: number;
20
21
  userName: string;
21
22
  maxPossibleScore: number;
23
+ duration: number;
22
24
  }) => {
23
25
  return (
24
26
  <Flex align="center" justify="between" css={{ my: '$4' }}>
@@ -49,13 +51,23 @@ export const LeaderboardEntry = ({
49
51
  </Text>
50
52
  </Box>
51
53
  </Flex>
54
+
52
55
  <Flex align="center" css={{ gap: '$4', color: '$on_surface_medium' }}>
53
56
  {position === 1 ? <TrophyFilledIcon height={16} width={16} /> : null}
54
- <CheckCircleIcon height={16} width={16} />
55
57
  {questionCount ? (
56
- <Text variant="xs">
57
- {correctResponses} / {questionCount}
58
- </Text>
58
+ <>
59
+ <CheckCircleIcon height={16} width={16} />
60
+ <Text variant="xs">
61
+ {correctResponses}/{questionCount}
62
+ </Text>
63
+ </>
64
+ ) : null}
65
+
66
+ {duration ? (
67
+ <Flex align="center" css={{ gap: '$2', color: '$on_surface_medium' }}>
68
+ <ClockIcon height={16} width={16} />
69
+ <Text variant="xs">{(duration / 1000).toFixed(3)}s</Text>
70
+ </Flex>
59
71
  ) : null}
60
72
  </Flex>
61
73
  </Flex>
@@ -86,6 +86,7 @@ export const LeaderboardSummary = ({ pollID }: { pollID: string }) => {
86
86
  correctResponses={question.correctResponses}
87
87
  userName={question.peer.username || ''}
88
88
  maxPossibleScore={maxPossibleScore}
89
+ duration={question.duration}
89
90
  />
90
91
  ))}
91
92
  {quizLeaderboard?.entries?.length > 5 && !viewAllEntries ? (
@@ -28,7 +28,8 @@ export const PeerParticipationSummary = ({ quiz }: { quiz: HMSPoll }) => {
28
28
  summary.correctUsers
29
29
  }/${summary.totalUsers})`,
30
30
  },
31
- { title: 'Avg. Time Taken', value: summary.avgTime },
31
+ // Time in ms
32
+ { title: 'Avg. Time Taken', value: `${(summary.avgTime / 1000).toFixed(3)}s` },
32
33
  {
33
34
  title: 'Avg. Score',
34
35
  value: Number.isInteger(summary.avgScore) ? summary.avgScore : summary.avgScore.toFixed(2),
@@ -37,7 +38,8 @@ export const PeerParticipationSummary = ({ quiz }: { quiz: HMSPoll }) => {
37
38
  : [
38
39
  { title: 'Your rank', value: peerEntry?.position ? `${peerEntry.position}/${summary.totalUsers}` : '-' },
39
40
  { title: 'Points', value: peerEntry?.score },
40
- { title: 'Time Taken', value: peerEntry?.duration },
41
+ // Time in ms
42
+ { title: 'Time Taken', value: `${((peerEntry?.duration || 0) / 1000).toFixed(3)}s` },
41
43
  {
42
44
  title: 'Correct Answers',
43
45
  value: peerEntry?.totalResponses ? `${peerEntry?.correctResponses}/${peerEntry.totalResponses}` : '-',