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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. package/dist/{HLSView-DJGDJPXM.js → HLSView-ZG7ZVFEM.js} +19 -4
  2. package/dist/HLSView-ZG7ZVFEM.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-ERKB3GGI.js → chunk-O7BEFUE4.js} +226 -191
  7. package/dist/{chunk-ERKB3GGI.js.map → chunk-O7BEFUE4.js.map} +3 -3
  8. package/dist/index.cjs.js +185 -132
  9. package/dist/index.cjs.js.map +3 -3
  10. package/dist/index.js +1 -1
  11. package/dist/meta.cjs.json +45 -45
  12. package/dist/meta.esbuild.json +55 -55
  13. package/package.json +6 -6
  14. package/src/Button/Button.tsx +2 -2
  15. package/src/Prebuilt/components/Notifications/Notifications.tsx +14 -1
  16. package/src/Prebuilt/components/Notifications/PermissionErrorModal.tsx +8 -1
  17. package/src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.jsx +3 -4
  18. package/src/Prebuilt/components/Polls/Voting/LeaderboardEntry.tsx +17 -5
  19. package/src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx +1 -0
  20. package/src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx +4 -2
  21. package/src/Prebuilt/components/Polls/Voting/QuestionCard.jsx +38 -81
  22. package/src/Prebuilt/components/Polls/Voting/StandardVoting.tsx +0 -1
  23. package/src/Prebuilt/components/Polls/Voting/TimedVoting.tsx +2 -3
  24. package/src/Prebuilt/components/Polls/Voting/Voting.tsx +7 -6
  25. package/src/Prebuilt/components/Polls/common/MultipleChoiceOptions.jsx +1 -2
  26. package/src/Prebuilt/components/Polls/common/SingleChoiceOptions.jsx +6 -4
  27. package/src/Prebuilt/components/Polls/common/StatusIndicator.tsx +1 -1
  28. package/src/Prebuilt/components/Preview/PreviewJoin.tsx +4 -14
  29. package/src/Prebuilt/components/RoleChangeRequest/RequestPrompt.tsx +15 -5
  30. package/src/Prebuilt/components/RoleChangeRequest/RoleChangeRequestModal.tsx +3 -0
  31. package/src/Prebuilt/components/TileMenu/TileMenuContent.tsx +6 -1
  32. package/src/Prebuilt/components/VirtualBackground/VBHandler.tsx +11 -1
  33. package/src/Prebuilt/components/VirtualBackground/VBPicker.tsx +16 -2
  34. package/src/Prebuilt/layouts/HLSView.jsx +16 -1
  35. package/src/Sheet/Sheet.tsx +1 -1
  36. package/dist/HLSView-DJGDJPXM.js.map +0 -7
  37. package/src/Prebuilt/images/first_person.png +0 -0
@@ -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": 320301,
4481
+ "bytes": 320733,
4482
4482
  "imports": [
4483
4483
  {
4484
4484
  "path": "../../node_modules/reselect/es/index.js",
@@ -6211,7 +6211,7 @@
6211
6211
  "format": "esm"
6212
6212
  },
6213
6213
  "src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.jsx": {
6214
- "bytes": 7706,
6214
+ "bytes": 7668,
6215
6215
  "imports": [
6216
6216
  {
6217
6217
  "path": "react",
@@ -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": 3251,
7014
7014
  "imports": [
7015
7015
  {
7016
7016
  "path": "react",
@@ -8323,7 +8323,7 @@
8323
8323
  "format": "esm"
8324
8324
  },
8325
8325
  "src/Prebuilt/components/TileMenu/TileMenuContent.tsx": {
8326
- "bytes": 11390,
8326
+ "bytes": 11476,
8327
8327
  "imports": [
8328
8328
  {
8329
8329
  "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": 6047,
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",
@@ -11738,7 +11738,7 @@
11738
11738
  "format": "esm"
11739
11739
  },
11740
11740
  "src/Prebuilt/components/Notifications/Notifications.tsx": {
11741
- "bytes": 7752,
11741
+ "bytes": 8209,
11742
11742
  "imports": [
11743
11743
  {
11744
11744
  "path": "react",
@@ -12577,7 +12577,7 @@
12577
12577
  "dist/index.js": {
12578
12578
  "imports": [
12579
12579
  {
12580
- "path": "dist/chunk-ERKB3GGI.js",
12580
+ "path": "dist/chunk-O7BEFUE4.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-DJGDJPXM.js.map": {
12653
+ "dist/HLSView-ZG7ZVFEM.js.map": {
12654
12654
  "imports": [],
12655
12655
  "exports": [],
12656
12656
  "inputs": {},
12657
- "bytes": 58021
12657
+ "bytes": 58852
12658
12658
  },
12659
- "dist/HLSView-DJGDJPXM.js": {
12659
+ "dist/HLSView-ZG7ZVFEM.js": {
12660
12660
  "imports": [
12661
12661
  {
12662
- "path": "dist/chunk-ERKB3GGI.js",
12662
+ "path": "dist/chunk-O7BEFUE4.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-ERKB3GGI.js.map": {
12826
+ "dist/chunk-O7BEFUE4.js.map": {
12827
12827
  "imports": [],
12828
12828
  "exports": [],
12829
12829
  "inputs": {},
12830
- "bytes": 3003590
12830
+ "bytes": 3005104
12831
12831
  },
12832
- "dist/chunk-ERKB3GGI.js": {
12832
+ "dist/chunk-O7BEFUE4.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-DJGDJPXM.js",
15050
+ "path": "dist/HLSView-ZG7ZVFEM.js",
15051
15051
  "kind": "dynamic-import"
15052
15052
  },
15053
15053
  {
@@ -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
@@ -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
@@ -16033,7 +16033,7 @@
16033
16033
  "bytesInOutput": 735
16034
16034
  },
16035
16035
  "src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.jsx": {
16036
- "bytesInOutput": 7927
16036
+ "bytesInOutput": 7547
16037
16037
  },
16038
16038
  "src/Prebuilt/components/Streaming/Common.jsx": {
16039
16039
  "bytesInOutput": 2247
@@ -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": 3206
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
@@ -16105,7 +16105,7 @@
16105
16105
  "bytesInOutput": 3444
16106
16106
  },
16107
16107
  "src/Prebuilt/components/Chat/ChatBody.tsx": {
16108
- "bytesInOutput": 14278
16108
+ "bytesInOutput": 14276
16109
16109
  },
16110
16110
  "src/Prebuilt/components/Chat/ChatActions.tsx": {
16111
16111
  "bytesInOutput": 9777
@@ -16171,7 +16171,7 @@
16171
16171
  "bytesInOutput": 4473
16172
16172
  },
16173
16173
  "src/Prebuilt/components/TileMenu/TileMenuContent.tsx": {
16174
- "bytesInOutput": 11288
16174
+ "bytesInOutput": 11356
16175
16175
  },
16176
16176
  "src/Prebuilt/components/TileMenu/utils.ts": {
16177
16177
  "bytesInOutput": 160
@@ -16180,7 +16180,7 @@
16180
16180
  "bytesInOutput": 1050
16181
16181
  },
16182
16182
  "src/Prebuilt/components/VirtualBackground/VBPicker.tsx": {
16183
- "bytesInOutput": 5518
16183
+ "bytesInOutput": 6018
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
@@ -16312,7 +16312,7 @@
16312
16312
  "bytesInOutput": 27
16313
16313
  },
16314
16314
  "src/Prebuilt/components/Notifications/Notifications.tsx": {
16315
- "bytesInOutput": 7354
16315
+ "bytesInOutput": 7908
16316
16316
  },
16317
16317
  "src/Prebuilt/components/Toast/ToastBatcher.js": {
16318
16318
  "bytesInOutput": 1768
@@ -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": 1219711
16387
+ "bytes": 1220195
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.2",
13
+ "version": "0.2.2-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.2-alpha.2",
86
- "@100mslive/hms-virtual-background": "1.12.2-alpha.2",
87
- "@100mslive/react-icons": "0.9.2-alpha.2",
88
- "@100mslive/react-sdk": "0.9.2-alpha.2",
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",
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": "dc2bba6723a123d51715cc2786e3798b6ff189a9"
123
+ "gitHead": "a8ba9a5b8f03574b1b398575dced298fd1a9fab5"
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',
@@ -38,6 +38,9 @@ import { useIsNotificationDisabled, useSubscribedNotifications } from '../AppDat
38
38
  import { getMetadata } from '../../common/utils';
39
39
  // @ts-ignore: No implicit Any
40
40
  import { ROLE_CHANGE_DECLINED } from '../../common/constants';
41
+
42
+ const pollToastKey: Record<string, string> = {};
43
+
41
44
  export function Notifications() {
42
45
  const localPeerID = useHMSStore(selectLocalPeerID);
43
46
  const notification = useHMSNotifications();
@@ -151,7 +154,8 @@ export function Notifications() {
151
154
  case HMSNotificationTypes.POLL_STARTED:
152
155
  if (notification.data.startedBy !== localPeerID && screenProps.screenType !== 'hls_live_streaming') {
153
156
  const pollStartedBy = vanillaStore.getState(selectPeerNameByID(notification.data.startedBy)) || 'Participant';
154
- ToastManager.addToast({
157
+
158
+ const pollToastID = ToastManager.addToast({
155
159
  title: `${pollStartedBy} started a ${notification.data.type}: ${notification.data.title}`,
156
160
  action: (
157
161
  <Button
@@ -167,7 +171,16 @@ export function Notifications() {
167
171
  {notification.data.type === 'quiz' ? 'Answer' : 'Vote'}
168
172
  </Button>
169
173
  ),
174
+ duration: Infinity,
170
175
  });
176
+ pollToastKey[notification.data.id] = pollToastID;
177
+ }
178
+ break;
179
+ case HMSNotificationTypes.POLL_STOPPED:
180
+ const pollID = notification?.data.id;
181
+ if (pollID && pollToastKey?.[pollID]) {
182
+ ToastManager.removeToast(pollToastKey?.[notification.data.id]);
183
+ delete pollToastKey[notification?.data.id];
171
184
  }
172
185
  break;
173
186
  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',
@@ -67,7 +67,6 @@ const AddMenu = () => {
67
67
  const actions = useHMSActions();
68
68
  const [title, setTitle] = useState('');
69
69
  const localPeerRoleName = useHMSStore(selectLocalPeerRoleName);
70
- const [anonymous, setAnonymous] = useState(false);
71
70
  const [hideVoteCount, setHideVoteCount] = useState(false);
72
71
  const [error, setError] = useState();
73
72
  const [titleError, setTitleError] = useState('');
@@ -141,12 +140,12 @@ const AddMenu = () => {
141
140
  Hide Vote Count
142
141
  </Text>
143
142
  </Flex>
144
- <Flex align="center" css={{ mt: '$10' }}>
143
+ {/* <Flex align="center" css={{ mt: '$10' }}>
145
144
  <Switch onCheckedChange={value => setAnonymous(value)} css={{ mr: '$6' }} />
146
145
  <Text variant="body2" css={{ c: '$on_surface_medium' }}>
147
146
  Make Results Anonymous
148
147
  </Text>
149
- </Flex>
148
+ </Flex> */}
150
149
  {/* <Timer
151
150
  timer={timer}
152
151
  setTimer={setTimer}
@@ -164,7 +163,7 @@ const AddMenu = () => {
164
163
  .createPoll({
165
164
  id,
166
165
  title,
167
- anonymous,
166
+ anonymous: false,
168
167
  rolesThatCanViewResponses: hideVoteCount && localPeerRoleName ? [localPeerRoleName] : undefined,
169
168
  type: interactionType.toLowerCase(),
170
169
  // duration: showTimerDropDown ? timer : undefined,
@@ -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}` : '-',