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

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.
Files changed (28) hide show
  1. package/LICENSE +21 -0
  2. package/dist/{HLSView-GKCGIZ5F.js → HLSView-S5JHEMWJ.js} +2 -2
  3. package/dist/Prebuilt/components/Polls/Voting/PeerParticipationSummary.d.ts +2 -2
  4. package/dist/Prebuilt/components/Polls/Voting/StatisticBox.d.ts +1 -1
  5. package/dist/Prebuilt/components/Polls/Voting/useQuizSummary.d.ts +7 -0
  6. package/dist/{chunk-FTOP3RHP.js → chunk-AWWYBQSE.js} +468 -452
  7. package/dist/chunk-AWWYBQSE.js.map +7 -0
  8. package/dist/index.cjs.js +1511 -1489
  9. package/dist/index.cjs.js.map +4 -4
  10. package/dist/index.js +1 -1
  11. package/dist/meta.cjs.json +124 -70
  12. package/dist/meta.esbuild.json +137 -83
  13. package/package.json +12 -6
  14. package/src/Introduction/Integrating.stories.mdx +1 -1
  15. package/src/Prebuilt/components/IconButtonWithOptions/IconButtonWithOptions.jsx +3 -3
  16. package/src/Prebuilt/components/Notifications/Notifications.tsx +14 -1
  17. package/src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.jsx +3 -4
  18. package/src/Prebuilt/components/Polls/CreateQuestions/QuestionForm.tsx +6 -5
  19. package/src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx +7 -59
  20. package/src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx +40 -14
  21. package/src/Prebuilt/components/Polls/Voting/StandardVoting.tsx +1 -1
  22. package/src/Prebuilt/components/Polls/Voting/StatisticBox.tsx +16 -11
  23. package/src/Prebuilt/components/Polls/Voting/Voting.tsx +5 -7
  24. package/src/Prebuilt/components/Polls/Voting/useQuizSummary.tsx +50 -0
  25. package/src/Prebuilt/layouts/WhiteboardView.tsx +4 -1
  26. package/src/Toast/Toast.tsx +1 -0
  27. package/dist/chunk-FTOP3RHP.js.map +0 -7
  28. /package/dist/{HLSView-GKCGIZ5F.js.map → HLSView-S5JHEMWJ.js.map} +0 -0
@@ -1486,7 +1486,7 @@
1486
1486
  "format": "esm"
1487
1487
  },
1488
1488
  "src/Toast/Toast.tsx": {
1489
- "bytes": 4279,
1489
+ "bytes": 4297,
1490
1490
  "imports": [
1491
1491
  {
1492
1492
  "path": "react",
@@ -2227,7 +2227,7 @@
2227
2227
  "format": "esm"
2228
2228
  },
2229
2229
  "src/Prebuilt/components/IconButtonWithOptions/IconButtonWithOptions.jsx": {
2230
- "bytes": 3097,
2230
+ "bytes": 3098,
2231
2231
  "imports": [
2232
2232
  {
2233
2233
  "path": "react",
@@ -4478,7 +4478,7 @@
4478
4478
  "format": "cjs"
4479
4479
  },
4480
4480
  "../hms-video-store/dist/index.js": {
4481
- "bytes": 320473,
4481
+ "bytes": 320301,
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",
@@ -6504,7 +6504,7 @@
6504
6504
  "format": "esm"
6505
6505
  },
6506
6506
  "src/Prebuilt/components/Polls/CreateQuestions/QuestionForm.tsx": {
6507
- "bytes": 9971,
6507
+ "bytes": 10090,
6508
6508
  "imports": [
6509
6509
  {
6510
6510
  "path": "react",
@@ -6728,7 +6728,7 @@
6728
6728
  "format": "esm"
6729
6729
  },
6730
6730
  "src/Prebuilt/components/Polls/Voting/StatisticBox.tsx": {
6731
- "bytes": 540,
6731
+ "bytes": 624,
6732
6732
  "imports": [
6733
6733
  {
6734
6734
  "path": "react",
@@ -6753,8 +6753,8 @@
6753
6753
  ],
6754
6754
  "format": "esm"
6755
6755
  },
6756
- "src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx": {
6757
- "bytes": 5842,
6756
+ "src/Prebuilt/components/Polls/Voting/useQuizSummary.tsx": {
6757
+ "bytes": 1684,
6758
6758
  "imports": [
6759
6759
  {
6760
6760
  "path": "react",
@@ -6767,70 +6767,61 @@
6767
6767
  "external": true
6768
6768
  },
6769
6769
  {
6770
- "path": "@100mslive/react-icons",
6770
+ "path": "<define:process.env>",
6771
6771
  "kind": "import-statement",
6772
6772
  "external": true
6773
6773
  },
6774
6774
  {
6775
- "path": "src/Layout/index.tsx",
6776
- "kind": "import-statement",
6777
- "original": "../../../../Layout"
6778
- },
6779
- {
6780
- "path": "src/Loading/index.ts",
6781
- "kind": "import-statement",
6782
- "original": "../../../../Loading"
6783
- },
6784
- {
6785
- "path": "src/Text/index.tsx",
6775
+ "path": "<runtime>",
6786
6776
  "kind": "import-statement",
6787
- "original": "../../../../Text"
6788
- },
6777
+ "external": true
6778
+ }
6779
+ ],
6780
+ "format": "esm"
6781
+ },
6782
+ "src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx": {
6783
+ "bytes": 2194,
6784
+ "imports": [
6789
6785
  {
6790
- "path": "src/Prebuilt/components/Polls/Voting/LeaderboardEntry.tsx",
6786
+ "path": "react",
6791
6787
  "kind": "import-statement",
6792
- "original": "./LeaderboardEntry"
6788
+ "external": true
6793
6789
  },
6794
6790
  {
6795
- "path": "src/Prebuilt/components/Polls/Voting/StatisticBox.tsx",
6791
+ "path": "@100mslive/react-sdk",
6796
6792
  "kind": "import-statement",
6797
- "original": "./StatisticBox"
6793
+ "external": true
6798
6794
  },
6799
6795
  {
6800
- "path": "src/Prebuilt/components/AppData/useSidepane.js",
6796
+ "path": "src/Layout/index.tsx",
6801
6797
  "kind": "import-statement",
6802
- "original": "../../AppData/useSidepane"
6798
+ "original": "../../../../Layout"
6803
6799
  },
6804
6800
  {
6805
- "path": "src/Prebuilt/components/AppData/useUISettings.js",
6801
+ "path": "src/Text/index.tsx",
6806
6802
  "kind": "import-statement",
6807
- "original": "../../AppData/useUISettings"
6803
+ "original": "../../../../Text"
6808
6804
  },
6809
6805
  {
6810
- "path": "src/Prebuilt/components/Polls/common/StatusIndicator.tsx",
6806
+ "path": "src/Prebuilt/components/Polls/Voting/StatisticBox.tsx",
6811
6807
  "kind": "import-statement",
6812
- "original": "../common/StatusIndicator"
6808
+ "original": "./StatisticBox"
6813
6809
  },
6814
6810
  {
6815
- "path": "src/Prebuilt/common/constants.ts",
6811
+ "path": "src/Prebuilt/components/Polls/Voting/useQuizSummary.tsx",
6816
6812
  "kind": "import-statement",
6817
- "original": "../../../common/constants"
6813
+ "original": "./useQuizSummary"
6818
6814
  },
6819
6815
  {
6820
6816
  "path": "<define:process.env>",
6821
6817
  "kind": "import-statement",
6822
6818
  "external": true
6823
- },
6824
- {
6825
- "path": "<runtime>",
6826
- "kind": "import-statement",
6827
- "external": true
6828
6819
  }
6829
6820
  ],
6830
6821
  "format": "esm"
6831
6822
  },
6832
- "src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx": {
6833
- "bytes": 1075,
6823
+ "src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx": {
6824
+ "bytes": 4039,
6834
6825
  "imports": [
6835
6826
  {
6836
6827
  "path": "react",
@@ -6842,25 +6833,60 @@
6842
6833
  "kind": "import-statement",
6843
6834
  "external": true
6844
6835
  },
6836
+ {
6837
+ "path": "@100mslive/react-icons",
6838
+ "kind": "import-statement",
6839
+ "external": true
6840
+ },
6845
6841
  {
6846
6842
  "path": "src/Layout/index.tsx",
6847
6843
  "kind": "import-statement",
6848
6844
  "original": "../../../../Layout"
6849
6845
  },
6846
+ {
6847
+ "path": "src/Loading/index.ts",
6848
+ "kind": "import-statement",
6849
+ "original": "../../../../Loading"
6850
+ },
6850
6851
  {
6851
6852
  "path": "src/Text/index.tsx",
6852
6853
  "kind": "import-statement",
6853
6854
  "original": "../../../../Text"
6854
6855
  },
6855
6856
  {
6856
- "path": "src/Prebuilt/components/Polls/Voting/StatisticBox.tsx",
6857
+ "path": "src/Prebuilt/components/Polls/Voting/LeaderboardEntry.tsx",
6857
6858
  "kind": "import-statement",
6858
- "original": "./StatisticBox"
6859
+ "original": "./LeaderboardEntry"
6859
6860
  },
6860
6861
  {
6861
- "path": "src/Prebuilt/common/utils.js",
6862
+ "path": "src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx",
6862
6863
  "kind": "import-statement",
6863
- "original": "../../../common/utils"
6864
+ "original": "./PeerParticipationSummary"
6865
+ },
6866
+ {
6867
+ "path": "src/Prebuilt/components/AppData/useSidepane.js",
6868
+ "kind": "import-statement",
6869
+ "original": "../../AppData/useSidepane"
6870
+ },
6871
+ {
6872
+ "path": "src/Prebuilt/components/AppData/useUISettings.js",
6873
+ "kind": "import-statement",
6874
+ "original": "../../AppData/useUISettings"
6875
+ },
6876
+ {
6877
+ "path": "src/Prebuilt/components/Polls/Voting/useQuizSummary.tsx",
6878
+ "kind": "import-statement",
6879
+ "original": "./useQuizSummary"
6880
+ },
6881
+ {
6882
+ "path": "src/Prebuilt/components/Polls/common/StatusIndicator.tsx",
6883
+ "kind": "import-statement",
6884
+ "original": "../common/StatusIndicator"
6885
+ },
6886
+ {
6887
+ "path": "src/Prebuilt/common/constants.ts",
6888
+ "kind": "import-statement",
6889
+ "original": "../../../common/constants"
6864
6890
  },
6865
6891
  {
6866
6892
  "path": "<define:process.env>",
@@ -6984,7 +7010,7 @@
6984
7010
  "format": "esm"
6985
7011
  },
6986
7012
  "src/Prebuilt/components/Polls/Voting/Voting.tsx": {
6987
- "bytes": 3244,
7013
+ "bytes": 3192,
6988
7014
  "imports": [
6989
7015
  {
6990
7016
  "path": "react",
@@ -10077,13 +10103,18 @@
10077
10103
  "format": "esm"
10078
10104
  },
10079
10105
  "src/Prebuilt/layouts/WhiteboardView.tsx": {
10080
- "bytes": 1906,
10106
+ "bytes": 2047,
10081
10107
  "imports": [
10082
10108
  {
10083
10109
  "path": "react",
10084
10110
  "kind": "import-statement",
10085
10111
  "external": true
10086
10112
  },
10113
+ {
10114
+ "path": "react-use",
10115
+ "kind": "import-statement",
10116
+ "external": true
10117
+ },
10087
10118
  {
10088
10119
  "path": "@100mslive/react-sdk",
10089
10120
  "kind": "import-statement",
@@ -10099,6 +10130,11 @@
10099
10130
  "kind": "import-statement",
10100
10131
  "original": "../components/VideoLayouts/ProminenceLayout"
10101
10132
  },
10133
+ {
10134
+ "path": "src/index.ts",
10135
+ "kind": "import-statement",
10136
+ "original": "../../"
10137
+ },
10102
10138
  {
10103
10139
  "path": "src/Layout/index.tsx",
10104
10140
  "kind": "import-statement",
@@ -11702,7 +11738,7 @@
11702
11738
  "format": "esm"
11703
11739
  },
11704
11740
  "src/Prebuilt/components/Notifications/Notifications.tsx": {
11705
- "bytes": 7752,
11741
+ "bytes": 8209,
11706
11742
  "imports": [
11707
11743
  {
11708
11744
  "path": "react",
@@ -12541,7 +12577,7 @@
12541
12577
  "dist/index.js": {
12542
12578
  "imports": [
12543
12579
  {
12544
- "path": "dist/chunk-FTOP3RHP.js",
12580
+ "path": "dist/chunk-AWWYBQSE.js",
12545
12581
  "kind": "import-statement"
12546
12582
  }
12547
12583
  ],
@@ -12614,16 +12650,16 @@
12614
12650
  "inputs": {},
12615
12651
  "bytes": 1822
12616
12652
  },
12617
- "dist/HLSView-GKCGIZ5F.js.map": {
12653
+ "dist/HLSView-S5JHEMWJ.js.map": {
12618
12654
  "imports": [],
12619
12655
  "exports": [],
12620
12656
  "inputs": {},
12621
12657
  "bytes": 58021
12622
12658
  },
12623
- "dist/HLSView-GKCGIZ5F.js": {
12659
+ "dist/HLSView-S5JHEMWJ.js": {
12624
12660
  "imports": [
12625
12661
  {
12626
- "path": "dist/chunk-FTOP3RHP.js",
12662
+ "path": "dist/chunk-AWWYBQSE.js",
12627
12663
  "kind": "import-statement"
12628
12664
  },
12629
12665
  {
@@ -12787,13 +12823,13 @@
12787
12823
  },
12788
12824
  "bytes": 36449
12789
12825
  },
12790
- "dist/chunk-FTOP3RHP.js.map": {
12826
+ "dist/chunk-AWWYBQSE.js.map": {
12791
12827
  "imports": [],
12792
12828
  "exports": [],
12793
12829
  "inputs": {},
12794
- "bytes": 3003490
12830
+ "bytes": 3004013
12795
12831
  },
12796
- "dist/chunk-FTOP3RHP.js": {
12832
+ "dist/chunk-AWWYBQSE.js": {
12797
12833
  "imports": [
12798
12834
  {
12799
12835
  "path": "react",
@@ -14231,22 +14267,22 @@
14231
14267
  "external": true
14232
14268
  },
14233
14269
  {
14234
- "path": "react",
14270
+ "path": "@100mslive/react-sdk",
14235
14271
  "kind": "import-statement",
14236
14272
  "external": true
14237
14273
  },
14238
14274
  {
14239
- "path": "@100mslive/react-sdk",
14275
+ "path": "react",
14240
14276
  "kind": "import-statement",
14241
14277
  "external": true
14242
14278
  },
14243
14279
  {
14244
- "path": "@100mslive/react-icons",
14280
+ "path": "react",
14245
14281
  "kind": "import-statement",
14246
14282
  "external": true
14247
14283
  },
14248
14284
  {
14249
- "path": "react",
14285
+ "path": "@100mslive/react-sdk",
14250
14286
  "kind": "import-statement",
14251
14287
  "external": true
14252
14288
  },
@@ -14260,6 +14296,16 @@
14260
14296
  "kind": "import-statement",
14261
14297
  "external": true
14262
14298
  },
14299
+ {
14300
+ "path": "@100mslive/react-icons",
14301
+ "kind": "import-statement",
14302
+ "external": true
14303
+ },
14304
+ {
14305
+ "path": "react",
14306
+ "kind": "import-statement",
14307
+ "external": true
14308
+ },
14263
14309
  {
14264
14310
  "path": "react",
14265
14311
  "kind": "import-statement",
@@ -14975,6 +15021,11 @@
14975
15021
  "kind": "import-statement",
14976
15022
  "external": true
14977
15023
  },
15024
+ {
15025
+ "path": "react-use",
15026
+ "kind": "import-statement",
15027
+ "external": true
15028
+ },
14978
15029
  {
14979
15030
  "path": "@100mslive/react-sdk",
14980
15031
  "kind": "import-statement",
@@ -14996,7 +15047,7 @@
14996
15047
  "external": true
14997
15048
  },
14998
15049
  {
14999
- "path": "dist/HLSView-GKCGIZ5F.js",
15050
+ "path": "dist/HLSView-S5JHEMWJ.js",
15000
15051
  "kind": "dynamic-import"
15001
15052
  },
15002
15053
  {
@@ -15418,7 +15469,7 @@
15418
15469
  ],
15419
15470
  "inputs": {
15420
15471
  "<define:process.env>": {
15421
- "bytesInOutput": 18388
15472
+ "bytesInOutput": 17187
15422
15473
  },
15423
15474
  "../../node_modules/lodash/lodash.js": {
15424
15475
  "bytesInOutput": 224265
@@ -15613,7 +15664,7 @@
15613
15664
  "bytesInOutput": 7824
15614
15665
  },
15615
15666
  "src/Stats/formatBytes.ts": {
15616
- "bytesInOutput": 471
15667
+ "bytesInOutput": 473
15617
15668
  },
15618
15669
  "src/Stats/StyledStats.tsx": {
15619
15670
  "bytesInOutput": 708
@@ -15628,7 +15679,7 @@
15628
15679
  "bytesInOutput": 738
15629
15680
  },
15630
15681
  "src/Toast/Toast.tsx": {
15631
- "bytesInOutput": 4076
15682
+ "bytesInOutput": 4094
15632
15683
  },
15633
15684
  "src/Accordion/index.ts": {
15634
15685
  "bytesInOutput": 149
@@ -15700,7 +15751,7 @@
15700
15751
  "bytesInOutput": 5480
15701
15752
  },
15702
15753
  "src/Prebuilt/components/IconButtonWithOptions/IconButtonWithOptions.jsx": {
15703
- "bytesInOutput": 2865
15754
+ "bytesInOutput": 2866
15704
15755
  },
15705
15756
  "src/Prebuilt/IconButton.jsx": {
15706
15757
  "bytesInOutput": 573
@@ -15814,7 +15865,7 @@
15814
15865
  "bytesInOutput": 2940
15815
15866
  },
15816
15867
  "src/Prebuilt/components/StatsForNerds.jsx": {
15817
- "bytesInOutput": 9585
15868
+ "bytesInOutput": 9587
15818
15869
  },
15819
15870
  "src/Prebuilt/components/MoreSettings/BulkRoleChangeModal.jsx": {
15820
15871
  "bytesInOutput": 5008
@@ -15841,7 +15892,7 @@
15841
15892
  "bytesInOutput": 10019
15842
15893
  },
15843
15894
  "../hms-video-store/dist/index.js": {
15844
- "bytesInOutput": 48115
15895
+ "bytesInOutput": 48233
15845
15896
  },
15846
15897
  "../../node_modules/reselect/es/index.js": {
15847
15898
  "bytesInOutput": 2537
@@ -15889,7 +15940,7 @@
15889
15940
  "bytesInOutput": 907
15890
15941
  },
15891
15942
  "src/Prebuilt/common/utils.js": {
15892
- "bytesInOutput": 3731
15943
+ "bytesInOutput": 2426
15893
15944
  },
15894
15945
  "src/Prebuilt/components/MoreSettings/ActionTile.jsx": {
15895
15946
  "bytesInOutput": 1390
@@ -15982,7 +16033,7 @@
15982
16033
  "bytesInOutput": 735
15983
16034
  },
15984
16035
  "src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.jsx": {
15985
- "bytesInOutput": 7927
16036
+ "bytesInOutput": 7547
15986
16037
  },
15987
16038
  "src/Prebuilt/components/Streaming/Common.jsx": {
15988
16039
  "bytesInOutput": 2247
@@ -15994,7 +16045,7 @@
15994
16045
  "bytesInOutput": 4875
15995
16046
  },
15996
16047
  "src/Prebuilt/components/Polls/CreateQuestions/QuestionForm.tsx": {
15997
- "bytesInOutput": 8578
16048
+ "bytesInOutput": 8169
15998
16049
  },
15999
16050
  "src/Prebuilt/components/Polls/CreateQuestions/DeleteQuestionModal.tsx": {
16000
16051
  "bytesInOutput": 2083
@@ -16021,25 +16072,28 @@
16021
16072
  "bytesInOutput": 2116
16022
16073
  },
16023
16074
  "src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx": {
16024
- "bytesInOutput": 6216
16075
+ "bytesInOutput": 3973
16025
16076
  },
16026
16077
  "src/Prebuilt/components/Polls/Voting/LeaderboardEntry.tsx": {
16027
16078
  "bytesInOutput": 1683
16028
16079
  },
16080
+ "src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx": {
16081
+ "bytesInOutput": 2277
16082
+ },
16029
16083
  "src/Prebuilt/components/Polls/Voting/StatisticBox.tsx": {
16030
- "bytesInOutput": 512
16084
+ "bytesInOutput": 634
16085
+ },
16086
+ "src/Prebuilt/components/Polls/Voting/useQuizSummary.tsx": {
16087
+ "bytesInOutput": 1874
16031
16088
  },
16032
16089
  "src/Prebuilt/components/Polls/Voting/Voting.tsx": {
16033
- "bytesInOutput": 3216
16090
+ "bytesInOutput": 3113
16034
16091
  },
16035
16092
  "src/Prebuilt/components/Polls/Voting/StandardVoting.tsx": {
16036
- "bytesInOutput": 1254
16037
- },
16038
- "src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx": {
16039
- "bytesInOutput": 1013
16093
+ "bytesInOutput": 1260
16040
16094
  },
16041
16095
  "src/Prebuilt/components/Polls/Voting/QuestionCard.jsx": {
16042
- "bytesInOutput": 8548
16096
+ "bytesInOutput": 8527
16043
16097
  },
16044
16098
  "src/Prebuilt/components/Polls/Voting/TimedVoting.tsx": {
16045
16099
  "bytesInOutput": 1101
@@ -16051,7 +16105,7 @@
16051
16105
  "bytesInOutput": 3444
16052
16106
  },
16053
16107
  "src/Prebuilt/components/Chat/ChatBody.tsx": {
16054
- "bytesInOutput": 14276
16108
+ "bytesInOutput": 14278
16055
16109
  },
16056
16110
  "src/Prebuilt/components/Chat/ChatActions.tsx": {
16057
16111
  "bytesInOutput": 9777
@@ -16162,7 +16216,7 @@
16162
16216
  "bytesInOutput": 3871
16163
16217
  },
16164
16218
  "src/Prebuilt/components/VideoLayouts/EqualProminence.tsx": {
16165
- "bytesInOutput": 2021
16219
+ "bytesInOutput": 2019
16166
16220
  },
16167
16221
  "src/Prebuilt/components/InsetTile.tsx": {
16168
16222
  "bytesInOutput": 4035
@@ -16177,7 +16231,7 @@
16177
16231
  "bytesInOutput": 1204
16178
16232
  },
16179
16233
  "src/Prebuilt/components/hooks/useTileLayout.tsx": {
16180
- "bytesInOutput": 3837
16234
+ "bytesInOutput": 3841
16181
16235
  },
16182
16236
  "src/Prebuilt/components/VideoLayouts/RoleProminence.tsx": {
16183
16237
  "bytesInOutput": 1737
@@ -16213,7 +16267,7 @@
16213
16267
  "bytesInOutput": 1415
16214
16268
  },
16215
16269
  "src/Prebuilt/layouts/WhiteboardView.tsx": {
16216
- "bytesInOutput": 1967
16270
+ "bytesInOutput": 2075
16217
16271
  },
16218
16272
  "src/Prebuilt/components/hooks/useCloseScreenshareWhiteboard.tsx": {
16219
16273
  "bytesInOutput": 997
@@ -16258,7 +16312,7 @@
16258
16312
  "bytesInOutput": 27
16259
16313
  },
16260
16314
  "src/Prebuilt/components/Notifications/Notifications.tsx": {
16261
- "bytesInOutput": 7354
16315
+ "bytesInOutput": 7908
16262
16316
  },
16263
16317
  "src/Prebuilt/components/Toast/ToastBatcher.js": {
16264
16318
  "bytesInOutput": 1768
@@ -16330,7 +16384,7 @@
16330
16384
  "bytesInOutput": 651
16331
16385
  }
16332
16386
  },
16333
- "bytes": 1221347
16387
+ "bytes": 1219888
16334
16388
  }
16335
16389
  }
16336
16390
  }
package/package.json CHANGED
@@ -10,9 +10,14 @@
10
10
  "prebuilt",
11
11
  "roomkit"
12
12
  ],
13
- "version": "0.2.1-alpha.0",
13
+ "version": "0.2.1-alpha.2",
14
14
  "author": "100ms",
15
15
  "license": "MIT",
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "https://github.com/100mslive/web-sdks.git",
19
+ "directory": "packages/roomkit-react"
20
+ },
16
21
  "files": [
17
22
  "dist",
18
23
  "src"
@@ -65,6 +70,7 @@
65
70
  "@types/react-window": "^1.8.5",
66
71
  "babel-loader": "^8.2.5",
67
72
  "babel-plugin-react-require": "3.1.3",
73
+ "esbuild-loader": "^4.0.2",
68
74
  "react": "^18.1.0",
69
75
  "rollup": "^2.70.1",
70
76
  "rollup-plugin-esbuild": "^5.0.0",
@@ -76,10 +82,10 @@
76
82
  "react": ">=17.0.2 <19.0.0"
77
83
  },
78
84
  "dependencies": {
79
- "@100mslive/hls-player": "0.2.1-alpha.0",
80
- "@100mslive/hms-virtual-background": "1.12.1-alpha.0",
81
- "@100mslive/react-icons": "0.9.1-alpha.0",
82
- "@100mslive/react-sdk": "0.9.1-alpha.0",
85
+ "@100mslive/hls-player": "0.2.1-alpha.2",
86
+ "@100mslive/hms-virtual-background": "1.12.1-alpha.2",
87
+ "@100mslive/react-icons": "0.9.1-alpha.2",
88
+ "@100mslive/react-sdk": "0.9.1-alpha.2",
83
89
  "@100mslive/types-prebuilt": "0.12.5",
84
90
  "@emoji-mart/data": "^1.0.6",
85
91
  "@emoji-mart/react": "^1.0.1",
@@ -114,5 +120,5 @@
114
120
  "uuid": "^8.3.2",
115
121
  "worker-timers": "^7.0.40"
116
122
  },
117
- "gitHead": "37788eb004f63672aae22043c6ad6b2debaff74c"
123
+ "gitHead": "28ace828c5944beff16c169195c807e4750e817e"
118
124
  }
@@ -8,7 +8,7 @@ You can use either npm or yarn to install the dependencies. Please install the r
8
8
  you're planning to use with react or other framework/plain JavaScript.
9
9
 
10
10
  ```bash
11
- npm install --save @100mslive/hms-video @100mslive/hms-video-store
11
+ npm install --save @100mslive/hms-video-store
12
12
  ```
13
13
 
14
14
  ```bash
@@ -12,7 +12,7 @@ const IconSection = styled(IconButton, {
12
12
  p: '$4',
13
13
  r: '$1',
14
14
  borderTopRightRadius: 0,
15
- borderColor: '$border_default',
15
+ borderColor: '$border_bright',
16
16
  borderBottomRightRadius: 0,
17
17
  position: 'relative',
18
18
  '&:not([disabled]):focus-visible': {
@@ -28,10 +28,10 @@ const IconSection = styled(IconButton, {
28
28
  const OptionsSection = styled(IconButton, {
29
29
  w: 'unset',
30
30
  h: '$14',
31
- p: '$4',
31
+ p: '$4 $2',
32
32
  r: '$1',
33
33
  borderTopLeftRadius: 0,
34
- borderColor: '$border_default',
34
+ borderColor: '$border_bright',
35
35
  borderBottomLeftRadius: 0,
36
36
  borderLeftWidth: 0,
37
37
  position: 'relative',
@@ -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: