@100mslive/roomkit-react 0.2.2-alpha.5 → 0.2.2-alpha.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -62,7 +62,7 @@ import {
62
62
  theme,
63
63
  useBorderAudioLevel,
64
64
  useTheme
65
- } from "./chunk-YOFFMNAR.js";
65
+ } from "./chunk-DY3FWEXJ.js";
66
66
  export {
67
67
  Accordion,
68
68
  AudioLevel,
@@ -4707,7 +4707,7 @@
4707
4707
  "format": "esm"
4708
4708
  },
4709
4709
  "src/Prebuilt/common/utils.js": {
4710
- "bytes": 5391,
4710
+ "bytes": 5891,
4711
4711
  "imports": [
4712
4712
  {
4713
4713
  "path": "src/Prebuilt/common/constants.ts",
@@ -6422,7 +6422,7 @@
6422
6422
  "format": "esm"
6423
6423
  },
6424
6424
  "src/Prebuilt/components/Polls/common/MultipleChoiceOptions.jsx": {
6425
- "bytes": 3796,
6425
+ "bytes": 3819,
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": 5021,
6466
+ "bytes": 5045,
6467
6467
  "imports": [
6468
6468
  {
6469
6469
  "path": "react",
@@ -6744,7 +6744,7 @@
6744
6744
  "format": "esm"
6745
6745
  },
6746
6746
  "src/Prebuilt/components/Polls/Voting/StatisticBox.tsx": {
6747
- "bytes": 624,
6747
+ "bytes": 656,
6748
6748
  "imports": [
6749
6749
  {
6750
6750
  "path": "react",
@@ -6796,7 +6796,7 @@
6796
6796
  "format": "esm"
6797
6797
  },
6798
6798
  "src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx": {
6799
- "bytes": 2279,
6799
+ "bytes": 2284,
6800
6800
  "imports": [
6801
6801
  {
6802
6802
  "path": "react",
@@ -6918,7 +6918,7 @@
6918
6918
  "format": "esm"
6919
6919
  },
6920
6920
  "src/Prebuilt/components/Polls/Voting/QuestionCard.jsx": {
6921
- "bytes": 7080,
6921
+ "bytes": 6905,
6922
6922
  "imports": [
6923
6923
  {
6924
6924
  "path": "react",
@@ -7005,7 +7005,7 @@
7005
7005
  "format": "esm"
7006
7006
  },
7007
7007
  "src/Prebuilt/components/Polls/Voting/TimedVoting.tsx": {
7008
- "bytes": 1025,
7008
+ "bytes": 1596,
7009
7009
  "imports": [
7010
7010
  {
7011
7011
  "path": "react",
@@ -7022,6 +7022,11 @@
7022
7022
  "kind": "import-statement",
7023
7023
  "original": "./QuestionCard"
7024
7024
  },
7025
+ {
7026
+ "path": "src/Prebuilt/common/utils.js",
7027
+ "kind": "import-statement",
7028
+ "original": "../../../common/utils"
7029
+ },
7025
7030
  {
7026
7031
  "path": "<define:process.env>",
7027
7032
  "kind": "import-statement",
@@ -7031,7 +7036,7 @@
7031
7036
  "format": "esm"
7032
7037
  },
7033
7038
  "src/Prebuilt/components/Polls/Voting/Voting.tsx": {
7034
- "bytes": 3251,
7039
+ "bytes": 3340,
7035
7040
  "imports": [
7036
7041
  {
7037
7042
  "path": "react",
@@ -7241,7 +7246,7 @@
7241
7246
  "format": "esm"
7242
7247
  },
7243
7248
  "src/Prebuilt/components/Chat/ChatActions.tsx": {
7244
- "bytes": 10168,
7249
+ "bytes": 10219,
7245
7250
  "imports": [
7246
7251
  {
7247
7252
  "path": "react",
@@ -7418,7 +7423,7 @@
7418
7423
  "format": "esm"
7419
7424
  },
7420
7425
  "src/Prebuilt/components/Chat/ChatBody.tsx": {
7421
- "bytes": 14641,
7426
+ "bytes": 14776,
7422
7427
  "imports": [
7423
7428
  {
7424
7429
  "path": "react",
@@ -12593,7 +12598,7 @@
12593
12598
  "imports": [],
12594
12599
  "exports": [],
12595
12600
  "inputs": {},
12596
- "bytes": 3069617
12601
+ "bytes": 3072595
12597
12602
  },
12598
12603
  "dist/index.cjs.js": {
12599
12604
  "imports": [
@@ -14007,6 +14012,11 @@
14007
14012
  "kind": "require-call",
14008
14013
  "external": true
14009
14014
  },
14015
+ {
14016
+ "path": "@100mslive/react-sdk",
14017
+ "kind": "require-call",
14018
+ "external": true
14019
+ },
14010
14020
  {
14011
14021
  "path": "react",
14012
14022
  "kind": "require-call",
@@ -15267,7 +15277,7 @@
15267
15277
  "entryPoint": "src/index.ts",
15268
15278
  "inputs": {
15269
15279
  "<define:process.env>": {
15270
- "bytesInOutput": 17187
15280
+ "bytesInOutput": 18104
15271
15281
  },
15272
15282
  "src/Theme/base.config.ts": {
15273
15283
  "bytesInOutput": 6104
@@ -15753,7 +15763,7 @@
15753
15763
  "bytesInOutput": 8158
15754
15764
  },
15755
15765
  "src/Prebuilt/common/utils.js": {
15756
- "bytesInOutput": 2908
15766
+ "bytesInOutput": 3810
15757
15767
  },
15758
15768
  "src/Prebuilt/components/Header/StreamActions.tsx": {
15759
15769
  "bytesInOutput": 12096
@@ -15870,10 +15880,10 @@
15870
15880
  "bytesInOutput": 865
15871
15881
  },
15872
15882
  "src/Prebuilt/components/Polls/common/MultipleChoiceOptions.jsx": {
15873
- "bytesInOutput": 4600
15883
+ "bytesInOutput": 4621
15874
15884
  },
15875
15885
  "src/Prebuilt/components/Polls/common/SingleChoiceOptions.jsx": {
15876
- "bytesInOutput": 5368
15886
+ "bytesInOutput": 5422
15877
15887
  },
15878
15888
  "src/Prebuilt/components/Polls/CreateQuestions/QuestionForm.tsx": {
15879
15889
  "bytesInOutput": 10146
@@ -15891,28 +15901,28 @@
15891
15901
  "bytesInOutput": 2717
15892
15902
  },
15893
15903
  "src/Prebuilt/components/Polls/Voting/StatisticBox.tsx": {
15894
- "bytesInOutput": 978
15904
+ "bytesInOutput": 1010
15895
15905
  },
15896
15906
  "src/Prebuilt/components/Polls/Voting/useQuizSummary.tsx": {
15897
15907
  "bytesInOutput": 2203
15898
15908
  },
15899
15909
  "src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx": {
15900
- "bytesInOutput": 2877
15910
+ "bytesInOutput": 2884
15901
15911
  },
15902
15912
  "src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx": {
15903
15913
  "bytesInOutput": 5052
15904
15914
  },
15905
15915
  "src/Prebuilt/components/Polls/Voting/QuestionCard.jsx": {
15906
- "bytesInOutput": 8770
15916
+ "bytesInOutput": 8565
15907
15917
  },
15908
15918
  "src/Prebuilt/components/Polls/Voting/StandardVoting.tsx": {
15909
15919
  "bytesInOutput": 1658
15910
15920
  },
15911
15921
  "src/Prebuilt/components/Polls/Voting/TimedVoting.tsx": {
15912
- "bytesInOutput": 1338
15922
+ "bytesInOutput": 2071
15913
15923
  },
15914
15924
  "src/Prebuilt/components/Polls/Voting/Voting.tsx": {
15915
- "bytesInOutput": 4052
15925
+ "bytesInOutput": 4217
15916
15926
  },
15917
15927
  "src/Prebuilt/components/Polls/Polls.tsx": {
15918
15928
  "bytesInOutput": 1177
@@ -15927,7 +15937,7 @@
15927
15937
  "bytesInOutput": 3164
15928
15938
  },
15929
15939
  "src/Prebuilt/components/Chat/ChatActions.tsx": {
15930
- "bytesInOutput": 11560
15940
+ "bytesInOutput": 11568
15931
15941
  },
15932
15942
  "src/Prebuilt/images/empty-chat.svg": {
15933
15943
  "bytesInOutput": 2366
@@ -15939,7 +15949,7 @@
15939
15949
  "bytesInOutput": 920
15940
15950
  },
15941
15951
  "src/Prebuilt/components/Chat/ChatBody.tsx": {
15942
- "bytesInOutput": 17029
15952
+ "bytesInOutput": 17144
15943
15953
  },
15944
15954
  "src/Prebuilt/components/Chat/ChatSelector.tsx": {
15945
15955
  "bytesInOutput": 8560
@@ -16182,7 +16192,7 @@
16182
16192
  "bytesInOutput": 3195
16183
16193
  },
16184
16194
  "src/Prebuilt/components/Toast/ToastConfig.jsx": {
16185
- "bytesInOutput": 7805
16195
+ "bytesInOutput": 7810
16186
16196
  },
16187
16197
  "src/Prebuilt/components/Toast/ToastBatcher.js": {
16188
16198
  "bytesInOutput": 2151
@@ -16266,7 +16276,7 @@
16266
16276
  "bytesInOutput": 2980
16267
16277
  }
16268
16278
  },
16269
- "bytes": 1440165
16279
+ "bytes": 1442919
16270
16280
  }
16271
16281
  }
16272
16282
  }
@@ -4707,7 +4707,7 @@
4707
4707
  "format": "esm"
4708
4708
  },
4709
4709
  "src/Prebuilt/common/utils.js": {
4710
- "bytes": 5391,
4710
+ "bytes": 5891,
4711
4711
  "imports": [
4712
4712
  {
4713
4713
  "path": "src/Prebuilt/common/constants.ts",
@@ -6422,7 +6422,7 @@
6422
6422
  "format": "esm"
6423
6423
  },
6424
6424
  "src/Prebuilt/components/Polls/common/MultipleChoiceOptions.jsx": {
6425
- "bytes": 3796,
6425
+ "bytes": 3819,
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": 5021,
6466
+ "bytes": 5045,
6467
6467
  "imports": [
6468
6468
  {
6469
6469
  "path": "react",
@@ -6744,7 +6744,7 @@
6744
6744
  "format": "esm"
6745
6745
  },
6746
6746
  "src/Prebuilt/components/Polls/Voting/StatisticBox.tsx": {
6747
- "bytes": 624,
6747
+ "bytes": 656,
6748
6748
  "imports": [
6749
6749
  {
6750
6750
  "path": "react",
@@ -6796,7 +6796,7 @@
6796
6796
  "format": "esm"
6797
6797
  },
6798
6798
  "src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx": {
6799
- "bytes": 2279,
6799
+ "bytes": 2284,
6800
6800
  "imports": [
6801
6801
  {
6802
6802
  "path": "react",
@@ -6918,7 +6918,7 @@
6918
6918
  "format": "esm"
6919
6919
  },
6920
6920
  "src/Prebuilt/components/Polls/Voting/QuestionCard.jsx": {
6921
- "bytes": 7080,
6921
+ "bytes": 6905,
6922
6922
  "imports": [
6923
6923
  {
6924
6924
  "path": "react",
@@ -7005,7 +7005,7 @@
7005
7005
  "format": "esm"
7006
7006
  },
7007
7007
  "src/Prebuilt/components/Polls/Voting/TimedVoting.tsx": {
7008
- "bytes": 1025,
7008
+ "bytes": 1596,
7009
7009
  "imports": [
7010
7010
  {
7011
7011
  "path": "react",
@@ -7022,6 +7022,11 @@
7022
7022
  "kind": "import-statement",
7023
7023
  "original": "./QuestionCard"
7024
7024
  },
7025
+ {
7026
+ "path": "src/Prebuilt/common/utils.js",
7027
+ "kind": "import-statement",
7028
+ "original": "../../../common/utils"
7029
+ },
7025
7030
  {
7026
7031
  "path": "<define:process.env>",
7027
7032
  "kind": "import-statement",
@@ -7031,7 +7036,7 @@
7031
7036
  "format": "esm"
7032
7037
  },
7033
7038
  "src/Prebuilt/components/Polls/Voting/Voting.tsx": {
7034
- "bytes": 3251,
7039
+ "bytes": 3340,
7035
7040
  "imports": [
7036
7041
  {
7037
7042
  "path": "react",
@@ -7241,7 +7246,7 @@
7241
7246
  "format": "esm"
7242
7247
  },
7243
7248
  "src/Prebuilt/components/Chat/ChatActions.tsx": {
7244
- "bytes": 10168,
7249
+ "bytes": 10219,
7245
7250
  "imports": [
7246
7251
  {
7247
7252
  "path": "react",
@@ -7418,7 +7423,7 @@
7418
7423
  "format": "esm"
7419
7424
  },
7420
7425
  "src/Prebuilt/components/Chat/ChatBody.tsx": {
7421
- "bytes": 14641,
7426
+ "bytes": 14776,
7422
7427
  "imports": [
7423
7428
  {
7424
7429
  "path": "react",
@@ -12598,7 +12603,7 @@
12598
12603
  "dist/index.js": {
12599
12604
  "imports": [
12600
12605
  {
12601
- "path": "dist/chunk-YOFFMNAR.js",
12606
+ "path": "dist/chunk-DY3FWEXJ.js",
12602
12607
  "kind": "import-statement"
12603
12608
  }
12604
12609
  ],
@@ -12671,16 +12676,16 @@
12671
12676
  "inputs": {},
12672
12677
  "bytes": 1822
12673
12678
  },
12674
- "dist/HLSView-HMMJY2KC.js.map": {
12679
+ "dist/HLSView-U346BIZQ.js.map": {
12675
12680
  "imports": [],
12676
12681
  "exports": [],
12677
12682
  "inputs": {},
12678
12683
  "bytes": 58852
12679
12684
  },
12680
- "dist/HLSView-HMMJY2KC.js": {
12685
+ "dist/HLSView-U346BIZQ.js": {
12681
12686
  "imports": [
12682
12687
  {
12683
- "path": "dist/chunk-YOFFMNAR.js",
12688
+ "path": "dist/chunk-DY3FWEXJ.js",
12684
12689
  "kind": "import-statement"
12685
12690
  },
12686
12691
  {
@@ -12844,13 +12849,13 @@
12844
12849
  },
12845
12850
  "bytes": 36970
12846
12851
  },
12847
- "dist/chunk-YOFFMNAR.js.map": {
12852
+ "dist/chunk-DY3FWEXJ.js.map": {
12848
12853
  "imports": [],
12849
12854
  "exports": [],
12850
12855
  "inputs": {},
12851
- "bytes": 3006166
12856
+ "bytes": 3009159
12852
12857
  },
12853
- "dist/chunk-YOFFMNAR.js": {
12858
+ "dist/chunk-DY3FWEXJ.js": {
12854
12859
  "imports": [
12855
12860
  {
12856
12861
  "path": "react",
@@ -14347,6 +14352,11 @@
14347
14352
  "kind": "import-statement",
14348
14353
  "external": true
14349
14354
  },
14355
+ {
14356
+ "path": "@100mslive/react-sdk",
14357
+ "kind": "import-statement",
14358
+ "external": true
14359
+ },
14350
14360
  {
14351
14361
  "path": "react",
14352
14362
  "kind": "import-statement",
@@ -15068,7 +15078,7 @@
15068
15078
  "external": true
15069
15079
  },
15070
15080
  {
15071
- "path": "dist/HLSView-HMMJY2KC.js",
15081
+ "path": "dist/HLSView-U346BIZQ.js",
15072
15082
  "kind": "dynamic-import"
15073
15083
  },
15074
15084
  {
@@ -15490,7 +15500,7 @@
15490
15500
  ],
15491
15501
  "inputs": {
15492
15502
  "<define:process.env>": {
15493
- "bytesInOutput": 17187
15503
+ "bytesInOutput": 18104
15494
15504
  },
15495
15505
  "../../node_modules/lodash/lodash.js": {
15496
15506
  "bytesInOutput": 224265
@@ -15961,7 +15971,7 @@
15961
15971
  "bytesInOutput": 907
15962
15972
  },
15963
15973
  "src/Prebuilt/common/utils.js": {
15964
- "bytesInOutput": 2426
15974
+ "bytesInOutput": 3207
15965
15975
  },
15966
15976
  "src/Prebuilt/components/MoreSettings/ActionTile.jsx": {
15967
15977
  "bytesInOutput": 1390
@@ -16075,7 +16085,7 @@
16075
16085
  "bytesInOutput": 204
16076
16086
  },
16077
16087
  "src/Prebuilt/components/Polls/common/MultipleChoiceOptions.jsx": {
16078
- "bytesInOutput": 3643
16088
+ "bytesInOutput": 3664
16079
16089
  },
16080
16090
  "src/Prebuilt/components/Polls/common/OptionInputWithDelete.tsx": {
16081
16091
  "bytesInOutput": 889
@@ -16087,7 +16097,7 @@
16087
16097
  "bytesInOutput": 594
16088
16098
  },
16089
16099
  "src/Prebuilt/components/Polls/common/SingleChoiceOptions.jsx": {
16090
- "bytesInOutput": 4331
16100
+ "bytesInOutput": 4389
16091
16101
  },
16092
16102
  "src/Prebuilt/components/Polls/CreateQuestions/SavedQuestion.tsx": {
16093
16103
  "bytesInOutput": 2116
@@ -16102,25 +16112,25 @@
16102
16112
  "bytesInOutput": 480
16103
16113
  },
16104
16114
  "src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx": {
16105
- "bytesInOutput": 2302
16115
+ "bytesInOutput": 2309
16106
16116
  },
16107
16117
  "src/Prebuilt/components/Polls/Voting/StatisticBox.tsx": {
16108
- "bytesInOutput": 634
16118
+ "bytesInOutput": 666
16109
16119
  },
16110
16120
  "src/Prebuilt/components/Polls/Voting/useQuizSummary.tsx": {
16111
16121
  "bytesInOutput": 1874
16112
16122
  },
16113
16123
  "src/Prebuilt/components/Polls/Voting/Voting.tsx": {
16114
- "bytesInOutput": 3206
16124
+ "bytesInOutput": 3355
16115
16125
  },
16116
16126
  "src/Prebuilt/components/Polls/Voting/StandardVoting.tsx": {
16117
16127
  "bytesInOutput": 1221
16118
16128
  },
16119
16129
  "src/Prebuilt/components/Polls/Voting/QuestionCard.jsx": {
16120
- "bytesInOutput": 7455
16130
+ "bytesInOutput": 7270
16121
16131
  },
16122
16132
  "src/Prebuilt/components/Polls/Voting/TimedVoting.tsx": {
16123
- "bytesInOutput": 1028
16133
+ "bytesInOutput": 1674
16124
16134
  },
16125
16135
  "src/Prebuilt/components/SidePaneTabs.tsx": {
16126
16136
  "bytesInOutput": 7277
@@ -16129,10 +16139,10 @@
16129
16139
  "bytesInOutput": 3444
16130
16140
  },
16131
16141
  "src/Prebuilt/components/Chat/ChatBody.tsx": {
16132
- "bytesInOutput": 14276
16142
+ "bytesInOutput": 14381
16133
16143
  },
16134
16144
  "src/Prebuilt/components/Chat/ChatActions.tsx": {
16135
- "bytesInOutput": 9777
16145
+ "bytesInOutput": 9785
16136
16146
  },
16137
16147
  "src/Prebuilt/components/Chat/MwebChatOption.tsx": {
16138
16148
  "bytesInOutput": 417
@@ -16408,7 +16418,7 @@
16408
16418
  "bytesInOutput": 651
16409
16419
  }
16410
16420
  },
16411
- "bytes": 1220903
16421
+ "bytes": 1223442
16412
16422
  }
16413
16423
  }
16414
16424
  }
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "prebuilt",
11
11
  "roomkit"
12
12
  ],
13
- "version": "0.2.2-alpha.5",
13
+ "version": "0.2.2-alpha.6",
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.5",
86
- "@100mslive/hms-virtual-background": "1.12.2-alpha.5",
87
- "@100mslive/react-icons": "0.9.2-alpha.5",
88
- "@100mslive/react-sdk": "0.9.2-alpha.5",
85
+ "@100mslive/hls-player": "0.2.2-alpha.6",
86
+ "@100mslive/hms-virtual-background": "1.12.2-alpha.6",
87
+ "@100mslive/react-icons": "0.9.2-alpha.6",
88
+ "@100mslive/react-sdk": "0.9.2-alpha.6",
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": "f92ee12444119121ba670c4127c808a992a8b2c1"
123
+ "gitHead": "6398566b05595e4d9ab9c6b293142a657933eb15"
124
124
  }
@@ -147,6 +147,19 @@ export const getPeerResponses = (questions, peerid, userid) => {
147
147
  );
148
148
  };
149
149
 
150
+ export const getLastAttemptedIndex = (questions, peerid, userid = '') => {
151
+ const peerResponses = getPeerResponses(questions, peerid, userid) || [];
152
+ for (let i = 0; i < peerResponses.length; i++) {
153
+ // If another peer has attempted, undefined changes to an empty array
154
+ if (peerResponses[i] === undefined || peerResponses[i].length === 0) {
155
+ // Backend question index starts at 1
156
+ return i + 1;
157
+ }
158
+ }
159
+ // To indicate all have been attempted
160
+ return questions.length + 1;
161
+ };
162
+
150
163
  export const getPeerParticipationSummary = (poll, localPeerID, localCustomerUserID) => {
151
164
  let correctResponses = 0;
152
165
  let score = 0;
@@ -53,7 +53,7 @@ export const ChatActions = ({
53
53
  sentByLocalPeer: boolean;
54
54
  isMobile: boolean;
55
55
  openSheet: boolean;
56
- setOpenSheet: (value: boolean) => void;
56
+ setOpenSheet: (value: boolean, e?: React.MouseEvent<HTMLElement, MouseEvent>) => void;
57
57
  }) => {
58
58
  const { elements } = useRoomLayoutConferencingScreen();
59
59
  const { can_hide_message = false, can_block_user = false } = elements?.chat?.real_time_controls || {};
@@ -174,7 +174,7 @@ export const ChatActions = ({
174
174
  if (isMobile) {
175
175
  return (
176
176
  <Sheet.Root open={openSheet} onOpenChange={setOpenSheet}>
177
- <Sheet.Content css={{ bg: '$surface_default', pb: '$14' }} onClick={() => setOpenSheet(false)}>
177
+ <Sheet.Content css={{ bg: '$surface_default', pb: '$14' }} onClick={e => setOpenSheet(false, e)}>
178
178
  <Sheet.Title
179
179
  css={{
180
180
  display: 'flex',
@@ -190,7 +190,7 @@ export const ChatActions = ({
190
190
  }}
191
191
  >
192
192
  Message options
193
- <Sheet.Close css={{ color: '$on_surface_high' }} onClick={() => setOpenSheet(false)}>
193
+ <Sheet.Close css={{ color: '$on_surface_high' }} onClick={e => setOpenSheet(false, e)}>
194
194
  <CrossIcon />
195
195
  </Sheet.Close>
196
196
  </Sheet.Title>
@@ -189,7 +189,7 @@ const ChatMessage = React.memo(
189
189
  roles: message.recipientRoles,
190
190
  receiver: message.recipientPeer,
191
191
  });
192
- const [openSheet, setOpenSheet] = useState(false);
192
+ const [openSheet, setOpenSheetBare] = useState(false);
193
193
  const showPinAction = !!elements?.chat?.allow_pinning_messages;
194
194
  const showReply = message.sender !== selectedPeer.id && message.sender !== localPeerId && isPrivateChatEnabled;
195
195
  useLayoutEffect(() => {
@@ -198,6 +198,11 @@ const ChatMessage = React.memo(
198
198
  }
199
199
  }, [index, message.id]);
200
200
 
201
+ const setOpenSheet = (value: boolean, e?: React.MouseEvent<HTMLElement, MouseEvent>) => {
202
+ e?.stopPropagation();
203
+ setOpenSheetBare(value);
204
+ };
205
+
201
206
  return (
202
207
  <Box
203
208
  css={{
@@ -228,9 +233,9 @@ const ChatMessage = React.memo(
228
233
  },
229
234
  }}
230
235
  data-testid="chat_msg"
231
- onClick={() => {
236
+ onClick={e => {
232
237
  if (isMobile) {
233
- setOpenSheet(true);
238
+ setOpenSheet(true, e);
234
239
  }
235
240
  }}
236
241
  >
@@ -321,8 +326,7 @@ const ChatMessage = React.memo(
321
326
  color: isOverlay ? '#FFF' : '$on_surface_high',
322
327
  }}
323
328
  onClick={e => {
324
- e.stopPropagation();
325
- setOpenSheet(true);
329
+ setOpenSheet(true, e);
326
330
  }}
327
331
  >
328
332
  <AnnotisedMessage message={message.message} />
@@ -24,7 +24,7 @@ export const LeaderboardEntry = ({
24
24
  duration: number;
25
25
  }) => {
26
26
  return (
27
- <Flex align="center" justify="between" css={{ my: '$4' }}>
27
+ <Flex align="center" justify="between" css={{ my: '$8' }}>
28
28
  <Flex align="center" css={{ gap: '$6' }}>
29
29
  <Flex
30
30
  align="center"
@@ -38,7 +38,7 @@ export const PeerParticipationSummary = ({ quiz }: { quiz: HMSPoll }) => {
38
38
  ]
39
39
  : [
40
40
  { title: 'Your rank', value: peerEntry?.position || '-' },
41
- { title: 'Points', value: peerEntry?.score },
41
+ { title: 'Points', value: peerEntry?.score || 0 },
42
42
  // Time in ms
43
43
  { title: 'Time Taken', value: getFormattedTime(peerEntry?.duration) },
44
44
  {
@@ -73,11 +73,6 @@ export const QuestionCard = ({
73
73
  },
74
74
  ]);
75
75
  startTime.current = Date.now();
76
-
77
- if (isQuiz && index !== totalQuestions) {
78
- setSingleOptionAnswer(undefined);
79
- setMultipleOptionAnswer(new Set());
80
- }
81
76
  }, [
82
77
  isValidVote,
83
78
  actions.interactivityCenter,
@@ -118,8 +113,8 @@ export const QuestionCard = ({
118
113
  gap: '$4',
119
114
  }}
120
115
  >
121
- {respondedToQuiz && isCorrectAnswer && pollEnded ? <CheckCircleIcon height={20} width={20} /> : null}
122
- {respondedToQuiz && !isCorrectAnswer && pollEnded ? <CrossCircleIcon height={20} width={20} /> : null}
116
+ {respondedToQuiz && isCorrectAnswer && pollEnded ? <CheckCircleIcon height={16} width={16} /> : null}
117
+ {respondedToQuiz && !isCorrectAnswer && pollEnded ? <CrossCircleIcon height={16} width={16} /> : null}
123
118
  QUESTION {index} OF {totalQuestions}: {type.toUpperCase()}
124
119
  </Text>
125
120
  </Flex>
@@ -152,7 +147,6 @@ export const QuestionCard = ({
152
147
  showVoteCount={showVoteCount}
153
148
  localPeerResponse={localPeerResponse}
154
149
  isStopped={pollState === 'stopped'}
155
- answer={singleOptionAnswer}
156
150
  />
157
151
  ) : null}
158
152
 
@@ -3,7 +3,7 @@ import { Box } from '../../../../Layout';
3
3
  import { Text } from '../../../../Text';
4
4
 
5
5
  export const StatisticBox = ({ title, value = 0 }: { title: string; value: string | number | undefined }) => {
6
- if (!value) {
6
+ if (!value && !(typeof value === 'number')) {
7
7
  return <></>;
8
8
  }
9
9
  return (