@100mslive/roomkit-react 0.2.2-alpha.4 → 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-S5NNUR2M.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",
@@ -6696,8 +6696,19 @@
6696
6696
  ],
6697
6697
  "format": "esm"
6698
6698
  },
6699
+ "src/Prebuilt/components/Polls/common/utils.ts": {
6700
+ "bytes": 482,
6701
+ "imports": [
6702
+ {
6703
+ "path": "<define:process.env>",
6704
+ "kind": "import-statement",
6705
+ "external": true
6706
+ }
6707
+ ],
6708
+ "format": "esm"
6709
+ },
6699
6710
  "src/Prebuilt/components/Polls/Voting/LeaderboardEntry.tsx": {
6700
- "bytes": 2113,
6711
+ "bytes": 2162,
6701
6712
  "imports": [
6702
6713
  {
6703
6714
  "path": "react",
@@ -6719,6 +6730,11 @@
6719
6730
  "kind": "import-statement",
6720
6731
  "original": "../../../../Text"
6721
6732
  },
6733
+ {
6734
+ "path": "src/Prebuilt/components/Polls/common/utils.ts",
6735
+ "kind": "import-statement",
6736
+ "original": "../common/utils"
6737
+ },
6722
6738
  {
6723
6739
  "path": "<define:process.env>",
6724
6740
  "kind": "import-statement",
@@ -6728,7 +6744,7 @@
6728
6744
  "format": "esm"
6729
6745
  },
6730
6746
  "src/Prebuilt/components/Polls/Voting/StatisticBox.tsx": {
6731
- "bytes": 624,
6747
+ "bytes": 656,
6732
6748
  "imports": [
6733
6749
  {
6734
6750
  "path": "react",
@@ -6780,7 +6796,7 @@
6780
6796
  "format": "esm"
6781
6797
  },
6782
6798
  "src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx": {
6783
- "bytes": 2250,
6799
+ "bytes": 2284,
6784
6800
  "imports": [
6785
6801
  {
6786
6802
  "path": "react",
@@ -6812,6 +6828,11 @@
6812
6828
  "kind": "import-statement",
6813
6829
  "original": "./useQuizSummary"
6814
6830
  },
6831
+ {
6832
+ "path": "src/Prebuilt/components/Polls/common/utils.ts",
6833
+ "kind": "import-statement",
6834
+ "original": "../common/utils"
6835
+ },
6815
6836
  {
6816
6837
  "path": "<define:process.env>",
6817
6838
  "kind": "import-statement",
@@ -6897,7 +6918,7 @@
6897
6918
  "format": "esm"
6898
6919
  },
6899
6920
  "src/Prebuilt/components/Polls/Voting/QuestionCard.jsx": {
6900
- "bytes": 7080,
6921
+ "bytes": 6905,
6901
6922
  "imports": [
6902
6923
  {
6903
6924
  "path": "react",
@@ -6984,7 +7005,7 @@
6984
7005
  "format": "esm"
6985
7006
  },
6986
7007
  "src/Prebuilt/components/Polls/Voting/TimedVoting.tsx": {
6987
- "bytes": 1025,
7008
+ "bytes": 1596,
6988
7009
  "imports": [
6989
7010
  {
6990
7011
  "path": "react",
@@ -7001,6 +7022,11 @@
7001
7022
  "kind": "import-statement",
7002
7023
  "original": "./QuestionCard"
7003
7024
  },
7025
+ {
7026
+ "path": "src/Prebuilt/common/utils.js",
7027
+ "kind": "import-statement",
7028
+ "original": "../../../common/utils"
7029
+ },
7004
7030
  {
7005
7031
  "path": "<define:process.env>",
7006
7032
  "kind": "import-statement",
@@ -7010,7 +7036,7 @@
7010
7036
  "format": "esm"
7011
7037
  },
7012
7038
  "src/Prebuilt/components/Polls/Voting/Voting.tsx": {
7013
- "bytes": 3251,
7039
+ "bytes": 3340,
7014
7040
  "imports": [
7015
7041
  {
7016
7042
  "path": "react",
@@ -7220,7 +7246,7 @@
7220
7246
  "format": "esm"
7221
7247
  },
7222
7248
  "src/Prebuilt/components/Chat/ChatActions.tsx": {
7223
- "bytes": 10168,
7249
+ "bytes": 10219,
7224
7250
  "imports": [
7225
7251
  {
7226
7252
  "path": "react",
@@ -7397,7 +7423,7 @@
7397
7423
  "format": "esm"
7398
7424
  },
7399
7425
  "src/Prebuilt/components/Chat/ChatBody.tsx": {
7400
- "bytes": 14641,
7426
+ "bytes": 14776,
7401
7427
  "imports": [
7402
7428
  {
7403
7429
  "path": "react",
@@ -12572,7 +12598,7 @@
12572
12598
  "imports": [],
12573
12599
  "exports": [],
12574
12600
  "inputs": {},
12575
- "bytes": 3068537
12601
+ "bytes": 3072595
12576
12602
  },
12577
12603
  "dist/index.cjs.js": {
12578
12604
  "imports": [
@@ -13986,6 +14012,11 @@
13986
14012
  "kind": "require-call",
13987
14013
  "external": true
13988
14014
  },
14015
+ {
14016
+ "path": "@100mslive/react-sdk",
14017
+ "kind": "require-call",
14018
+ "external": true
14019
+ },
13989
14020
  {
13990
14021
  "path": "react",
13991
14022
  "kind": "require-call",
@@ -15246,7 +15277,7 @@
15246
15277
  "entryPoint": "src/index.ts",
15247
15278
  "inputs": {
15248
15279
  "<define:process.env>": {
15249
- "bytesInOutput": 17194
15280
+ "bytesInOutput": 18104
15250
15281
  },
15251
15282
  "src/Theme/base.config.ts": {
15252
15283
  "bytesInOutput": 6104
@@ -15732,7 +15763,7 @@
15732
15763
  "bytesInOutput": 8158
15733
15764
  },
15734
15765
  "src/Prebuilt/common/utils.js": {
15735
- "bytesInOutput": 2908
15766
+ "bytesInOutput": 3810
15736
15767
  },
15737
15768
  "src/Prebuilt/components/Header/StreamActions.tsx": {
15738
15769
  "bytesInOutput": 12096
@@ -15849,10 +15880,10 @@
15849
15880
  "bytesInOutput": 865
15850
15881
  },
15851
15882
  "src/Prebuilt/components/Polls/common/MultipleChoiceOptions.jsx": {
15852
- "bytesInOutput": 4600
15883
+ "bytesInOutput": 4621
15853
15884
  },
15854
15885
  "src/Prebuilt/components/Polls/common/SingleChoiceOptions.jsx": {
15855
- "bytesInOutput": 5368
15886
+ "bytesInOutput": 5422
15856
15887
  },
15857
15888
  "src/Prebuilt/components/Polls/CreateQuestions/QuestionForm.tsx": {
15858
15889
  "bytesInOutput": 10146
@@ -15863,32 +15894,35 @@
15863
15894
  "src/Prebuilt/components/Polls/CreateQuestions/CreateQuestions.jsx": {
15864
15895
  "bytesInOutput": 5588
15865
15896
  },
15897
+ "src/Prebuilt/components/Polls/common/utils.ts": {
15898
+ "bytesInOutput": 664
15899
+ },
15866
15900
  "src/Prebuilt/components/Polls/Voting/LeaderboardEntry.tsx": {
15867
- "bytesInOutput": 2704
15901
+ "bytesInOutput": 2717
15868
15902
  },
15869
15903
  "src/Prebuilt/components/Polls/Voting/StatisticBox.tsx": {
15870
- "bytesInOutput": 978
15904
+ "bytesInOutput": 1010
15871
15905
  },
15872
15906
  "src/Prebuilt/components/Polls/Voting/useQuizSummary.tsx": {
15873
15907
  "bytesInOutput": 2203
15874
15908
  },
15875
15909
  "src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx": {
15876
- "bytesInOutput": 2881
15910
+ "bytesInOutput": 2884
15877
15911
  },
15878
15912
  "src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx": {
15879
15913
  "bytesInOutput": 5052
15880
15914
  },
15881
15915
  "src/Prebuilt/components/Polls/Voting/QuestionCard.jsx": {
15882
- "bytesInOutput": 8620
15916
+ "bytesInOutput": 8565
15883
15917
  },
15884
15918
  "src/Prebuilt/components/Polls/Voting/StandardVoting.tsx": {
15885
15919
  "bytesInOutput": 1658
15886
15920
  },
15887
15921
  "src/Prebuilt/components/Polls/Voting/TimedVoting.tsx": {
15888
- "bytesInOutput": 1338
15922
+ "bytesInOutput": 2071
15889
15923
  },
15890
15924
  "src/Prebuilt/components/Polls/Voting/Voting.tsx": {
15891
- "bytesInOutput": 4052
15925
+ "bytesInOutput": 4217
15892
15926
  },
15893
15927
  "src/Prebuilt/components/Polls/Polls.tsx": {
15894
15928
  "bytesInOutput": 1177
@@ -15903,7 +15937,7 @@
15903
15937
  "bytesInOutput": 3164
15904
15938
  },
15905
15939
  "src/Prebuilt/components/Chat/ChatActions.tsx": {
15906
- "bytesInOutput": 11560
15940
+ "bytesInOutput": 11568
15907
15941
  },
15908
15942
  "src/Prebuilt/images/empty-chat.svg": {
15909
15943
  "bytesInOutput": 2366
@@ -15915,7 +15949,7 @@
15915
15949
  "bytesInOutput": 920
15916
15950
  },
15917
15951
  "src/Prebuilt/components/Chat/ChatBody.tsx": {
15918
- "bytesInOutput": 17029
15952
+ "bytesInOutput": 17144
15919
15953
  },
15920
15954
  "src/Prebuilt/components/Chat/ChatSelector.tsx": {
15921
15955
  "bytesInOutput": 8560
@@ -16158,7 +16192,7 @@
16158
16192
  "bytesInOutput": 3195
16159
16193
  },
16160
16194
  "src/Prebuilt/components/Toast/ToastConfig.jsx": {
16161
- "bytesInOutput": 7805
16195
+ "bytesInOutput": 7810
16162
16196
  },
16163
16197
  "src/Prebuilt/components/Toast/ToastBatcher.js": {
16164
16198
  "bytesInOutput": 2151
@@ -16242,7 +16276,7 @@
16242
16276
  "bytesInOutput": 2980
16243
16277
  }
16244
16278
  },
16245
- "bytes": 1439299
16279
+ "bytes": 1442919
16246
16280
  }
16247
16281
  }
16248
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",
@@ -6696,8 +6696,19 @@
6696
6696
  ],
6697
6697
  "format": "esm"
6698
6698
  },
6699
+ "src/Prebuilt/components/Polls/common/utils.ts": {
6700
+ "bytes": 482,
6701
+ "imports": [
6702
+ {
6703
+ "path": "<define:process.env>",
6704
+ "kind": "import-statement",
6705
+ "external": true
6706
+ }
6707
+ ],
6708
+ "format": "esm"
6709
+ },
6699
6710
  "src/Prebuilt/components/Polls/Voting/LeaderboardEntry.tsx": {
6700
- "bytes": 2113,
6711
+ "bytes": 2162,
6701
6712
  "imports": [
6702
6713
  {
6703
6714
  "path": "react",
@@ -6719,6 +6730,11 @@
6719
6730
  "kind": "import-statement",
6720
6731
  "original": "../../../../Text"
6721
6732
  },
6733
+ {
6734
+ "path": "src/Prebuilt/components/Polls/common/utils.ts",
6735
+ "kind": "import-statement",
6736
+ "original": "../common/utils"
6737
+ },
6722
6738
  {
6723
6739
  "path": "<define:process.env>",
6724
6740
  "kind": "import-statement",
@@ -6728,7 +6744,7 @@
6728
6744
  "format": "esm"
6729
6745
  },
6730
6746
  "src/Prebuilt/components/Polls/Voting/StatisticBox.tsx": {
6731
- "bytes": 624,
6747
+ "bytes": 656,
6732
6748
  "imports": [
6733
6749
  {
6734
6750
  "path": "react",
@@ -6780,7 +6796,7 @@
6780
6796
  "format": "esm"
6781
6797
  },
6782
6798
  "src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx": {
6783
- "bytes": 2250,
6799
+ "bytes": 2284,
6784
6800
  "imports": [
6785
6801
  {
6786
6802
  "path": "react",
@@ -6812,6 +6828,11 @@
6812
6828
  "kind": "import-statement",
6813
6829
  "original": "./useQuizSummary"
6814
6830
  },
6831
+ {
6832
+ "path": "src/Prebuilt/components/Polls/common/utils.ts",
6833
+ "kind": "import-statement",
6834
+ "original": "../common/utils"
6835
+ },
6815
6836
  {
6816
6837
  "path": "<define:process.env>",
6817
6838
  "kind": "import-statement",
@@ -6897,7 +6918,7 @@
6897
6918
  "format": "esm"
6898
6919
  },
6899
6920
  "src/Prebuilt/components/Polls/Voting/QuestionCard.jsx": {
6900
- "bytes": 7080,
6921
+ "bytes": 6905,
6901
6922
  "imports": [
6902
6923
  {
6903
6924
  "path": "react",
@@ -6984,7 +7005,7 @@
6984
7005
  "format": "esm"
6985
7006
  },
6986
7007
  "src/Prebuilt/components/Polls/Voting/TimedVoting.tsx": {
6987
- "bytes": 1025,
7008
+ "bytes": 1596,
6988
7009
  "imports": [
6989
7010
  {
6990
7011
  "path": "react",
@@ -7001,6 +7022,11 @@
7001
7022
  "kind": "import-statement",
7002
7023
  "original": "./QuestionCard"
7003
7024
  },
7025
+ {
7026
+ "path": "src/Prebuilt/common/utils.js",
7027
+ "kind": "import-statement",
7028
+ "original": "../../../common/utils"
7029
+ },
7004
7030
  {
7005
7031
  "path": "<define:process.env>",
7006
7032
  "kind": "import-statement",
@@ -7010,7 +7036,7 @@
7010
7036
  "format": "esm"
7011
7037
  },
7012
7038
  "src/Prebuilt/components/Polls/Voting/Voting.tsx": {
7013
- "bytes": 3251,
7039
+ "bytes": 3340,
7014
7040
  "imports": [
7015
7041
  {
7016
7042
  "path": "react",
@@ -7220,7 +7246,7 @@
7220
7246
  "format": "esm"
7221
7247
  },
7222
7248
  "src/Prebuilt/components/Chat/ChatActions.tsx": {
7223
- "bytes": 10168,
7249
+ "bytes": 10219,
7224
7250
  "imports": [
7225
7251
  {
7226
7252
  "path": "react",
@@ -7397,7 +7423,7 @@
7397
7423
  "format": "esm"
7398
7424
  },
7399
7425
  "src/Prebuilt/components/Chat/ChatBody.tsx": {
7400
- "bytes": 14641,
7426
+ "bytes": 14776,
7401
7427
  "imports": [
7402
7428
  {
7403
7429
  "path": "react",
@@ -12577,7 +12603,7 @@
12577
12603
  "dist/index.js": {
12578
12604
  "imports": [
12579
12605
  {
12580
- "path": "dist/chunk-S5NNUR2M.js",
12606
+ "path": "dist/chunk-DY3FWEXJ.js",
12581
12607
  "kind": "import-statement"
12582
12608
  }
12583
12609
  ],
@@ -12650,16 +12676,16 @@
12650
12676
  "inputs": {},
12651
12677
  "bytes": 1822
12652
12678
  },
12653
- "dist/HLSView-DPM6YJWZ.js.map": {
12679
+ "dist/HLSView-U346BIZQ.js.map": {
12654
12680
  "imports": [],
12655
12681
  "exports": [],
12656
12682
  "inputs": {},
12657
12683
  "bytes": 58852
12658
12684
  },
12659
- "dist/HLSView-DPM6YJWZ.js": {
12685
+ "dist/HLSView-U346BIZQ.js": {
12660
12686
  "imports": [
12661
12687
  {
12662
- "path": "dist/chunk-S5NNUR2M.js",
12688
+ "path": "dist/chunk-DY3FWEXJ.js",
12663
12689
  "kind": "import-statement"
12664
12690
  },
12665
12691
  {
@@ -12823,13 +12849,13 @@
12823
12849
  },
12824
12850
  "bytes": 36970
12825
12851
  },
12826
- "dist/chunk-S5NNUR2M.js.map": {
12852
+ "dist/chunk-DY3FWEXJ.js.map": {
12827
12853
  "imports": [],
12828
12854
  "exports": [],
12829
12855
  "inputs": {},
12830
- "bytes": 3005199
12856
+ "bytes": 3009159
12831
12857
  },
12832
- "dist/chunk-S5NNUR2M.js": {
12858
+ "dist/chunk-DY3FWEXJ.js": {
12833
12859
  "imports": [
12834
12860
  {
12835
12861
  "path": "react",
@@ -14326,6 +14352,11 @@
14326
14352
  "kind": "import-statement",
14327
14353
  "external": true
14328
14354
  },
14355
+ {
14356
+ "path": "@100mslive/react-sdk",
14357
+ "kind": "import-statement",
14358
+ "external": true
14359
+ },
14329
14360
  {
14330
14361
  "path": "react",
14331
14362
  "kind": "import-statement",
@@ -15047,7 +15078,7 @@
15047
15078
  "external": true
15048
15079
  },
15049
15080
  {
15050
- "path": "dist/HLSView-DPM6YJWZ.js",
15081
+ "path": "dist/HLSView-U346BIZQ.js",
15051
15082
  "kind": "dynamic-import"
15052
15083
  },
15053
15084
  {
@@ -15469,7 +15500,7 @@
15469
15500
  ],
15470
15501
  "inputs": {
15471
15502
  "<define:process.env>": {
15472
- "bytesInOutput": 17194
15503
+ "bytesInOutput": 18104
15473
15504
  },
15474
15505
  "../../node_modules/lodash/lodash.js": {
15475
15506
  "bytesInOutput": 224265
@@ -15940,7 +15971,7 @@
15940
15971
  "bytesInOutput": 907
15941
15972
  },
15942
15973
  "src/Prebuilt/common/utils.js": {
15943
- "bytesInOutput": 2426
15974
+ "bytesInOutput": 3207
15944
15975
  },
15945
15976
  "src/Prebuilt/components/MoreSettings/ActionTile.jsx": {
15946
15977
  "bytesInOutput": 1390
@@ -16054,7 +16085,7 @@
16054
16085
  "bytesInOutput": 204
16055
16086
  },
16056
16087
  "src/Prebuilt/components/Polls/common/MultipleChoiceOptions.jsx": {
16057
- "bytesInOutput": 3643
16088
+ "bytesInOutput": 3664
16058
16089
  },
16059
16090
  "src/Prebuilt/components/Polls/common/OptionInputWithDelete.tsx": {
16060
16091
  "bytesInOutput": 889
@@ -16066,7 +16097,7 @@
16066
16097
  "bytesInOutput": 594
16067
16098
  },
16068
16099
  "src/Prebuilt/components/Polls/common/SingleChoiceOptions.jsx": {
16069
- "bytesInOutput": 4331
16100
+ "bytesInOutput": 4389
16070
16101
  },
16071
16102
  "src/Prebuilt/components/Polls/CreateQuestions/SavedQuestion.tsx": {
16072
16103
  "bytesInOutput": 2116
@@ -16075,28 +16106,31 @@
16075
16106
  "bytesInOutput": 4010
16076
16107
  },
16077
16108
  "src/Prebuilt/components/Polls/Voting/LeaderboardEntry.tsx": {
16078
- "bytesInOutput": 2075
16109
+ "bytesInOutput": 2069
16110
+ },
16111
+ "src/Prebuilt/components/Polls/common/utils.ts": {
16112
+ "bytesInOutput": 480
16079
16113
  },
16080
16114
  "src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx": {
16081
- "bytesInOutput": 2325
16115
+ "bytesInOutput": 2309
16082
16116
  },
16083
16117
  "src/Prebuilt/components/Polls/Voting/StatisticBox.tsx": {
16084
- "bytesInOutput": 634
16118
+ "bytesInOutput": 666
16085
16119
  },
16086
16120
  "src/Prebuilt/components/Polls/Voting/useQuizSummary.tsx": {
16087
16121
  "bytesInOutput": 1874
16088
16122
  },
16089
16123
  "src/Prebuilt/components/Polls/Voting/Voting.tsx": {
16090
- "bytesInOutput": 3206
16124
+ "bytesInOutput": 3355
16091
16125
  },
16092
16126
  "src/Prebuilt/components/Polls/Voting/StandardVoting.tsx": {
16093
16127
  "bytesInOutput": 1221
16094
16128
  },
16095
16129
  "src/Prebuilt/components/Polls/Voting/QuestionCard.jsx": {
16096
- "bytesInOutput": 7337
16130
+ "bytesInOutput": 7270
16097
16131
  },
16098
16132
  "src/Prebuilt/components/Polls/Voting/TimedVoting.tsx": {
16099
- "bytesInOutput": 1028
16133
+ "bytesInOutput": 1674
16100
16134
  },
16101
16135
  "src/Prebuilt/components/SidePaneTabs.tsx": {
16102
16136
  "bytesInOutput": 7277
@@ -16105,10 +16139,10 @@
16105
16139
  "bytesInOutput": 3444
16106
16140
  },
16107
16141
  "src/Prebuilt/components/Chat/ChatBody.tsx": {
16108
- "bytesInOutput": 14276
16142
+ "bytesInOutput": 14381
16109
16143
  },
16110
16144
  "src/Prebuilt/components/Chat/ChatActions.tsx": {
16111
- "bytesInOutput": 9777
16145
+ "bytesInOutput": 9785
16112
16146
  },
16113
16147
  "src/Prebuilt/components/Chat/MwebChatOption.tsx": {
16114
16148
  "bytesInOutput": 417
@@ -16384,7 +16418,7 @@
16384
16418
  "bytesInOutput": 651
16385
16419
  }
16386
16420
  },
16387
- "bytes": 1220229
16421
+ "bytes": 1223442
16388
16422
  }
16389
16423
  }
16390
16424
  }
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "prebuilt",
11
11
  "roomkit"
12
12
  ],
13
- "version": "0.2.2-alpha.4",
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.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",
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": "75d0bdf72d3ed51decf146ccdba347bf8dd8d25d"
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>