@100mslive/roomkit-react 0.2.2-alpha.5 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{HLSView-HMMJY2KC.js → HLSView-LVQBZ4PX.js} +2 -2
- package/dist/Prebuilt/components/Chat/ChatActions.d.ts +1 -1
- package/dist/{chunk-YOFFMNAR.js → chunk-AMKCMJY4.js} +257 -230
- package/dist/chunk-AMKCMJY4.js.map +7 -0
- package/dist/index.cjs.js +485 -457
- package/dist/index.cjs.js.map +3 -3
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +36 -26
- package/dist/meta.esbuild.json +42 -32
- package/package.json +6 -6
- package/src/Prebuilt/common/utils.js +13 -0
- package/src/Prebuilt/components/Chat/ChatActions.tsx +3 -3
- package/src/Prebuilt/components/Chat/ChatBody.tsx +9 -5
- package/src/Prebuilt/components/Polls/Voting/LeaderboardEntry.tsx +1 -1
- package/src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx +1 -1
- package/src/Prebuilt/components/Polls/Voting/QuestionCard.jsx +2 -8
- package/src/Prebuilt/components/Polls/Voting/StatisticBox.tsx +1 -1
- package/src/Prebuilt/components/Polls/Voting/TimedVoting.tsx +31 -20
- package/src/Prebuilt/components/Polls/Voting/Voting.tsx +7 -8
- package/src/Prebuilt/components/Polls/common/MultipleChoiceOptions.jsx +2 -2
- package/src/Prebuilt/components/Polls/common/SingleChoiceOptions.jsx +4 -5
- package/dist/chunk-YOFFMNAR.js.map +0 -7
- /package/dist/{HLSView-HMMJY2KC.js.map → HLSView-LVQBZ4PX.js.map} +0 -0
package/dist/index.js
CHANGED
package/dist/meta.cjs.json
CHANGED
@@ -4478,7 +4478,7 @@
|
|
4478
4478
|
"format": "cjs"
|
4479
4479
|
},
|
4480
4480
|
"../hms-video-store/dist/index.js": {
|
4481
|
-
"bytes":
|
4481
|
+
"bytes": 320781,
|
4482
4482
|
"imports": [
|
4483
4483
|
{
|
4484
4484
|
"path": "../../node_modules/reselect/es/index.js",
|
@@ -4707,7 +4707,7 @@
|
|
4707
4707
|
"format": "esm"
|
4708
4708
|
},
|
4709
4709
|
"src/Prebuilt/common/utils.js": {
|
4710
|
-
"bytes":
|
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":
|
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":
|
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":
|
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":
|
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":
|
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":
|
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":
|
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":
|
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":
|
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":
|
12601
|
+
"bytes": 3072574
|
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":
|
15280
|
+
"bytesInOutput": 18038
|
15271
15281
|
},
|
15272
15282
|
"src/Theme/base.config.ts": {
|
15273
15283
|
"bytesInOutput": 6104
|
@@ -15741,7 +15751,7 @@
|
|
15741
15751
|
"bytesInOutput": 615
|
15742
15752
|
},
|
15743
15753
|
"../hms-video-store/dist/index.js": {
|
15744
|
-
"bytesInOutput":
|
15754
|
+
"bytesInOutput": 52755
|
15745
15755
|
},
|
15746
15756
|
"src/Prebuilt/components/hooks/usePlaylistMusic.js": {
|
15747
15757
|
"bytesInOutput": 1384
|
@@ -15753,7 +15763,7 @@
|
|
15753
15763
|
"bytesInOutput": 8158
|
15754
15764
|
},
|
15755
15765
|
"src/Prebuilt/common/utils.js": {
|
15756
|
-
"bytesInOutput":
|
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":
|
15883
|
+
"bytesInOutput": 4621
|
15874
15884
|
},
|
15875
15885
|
"src/Prebuilt/components/Polls/common/SingleChoiceOptions.jsx": {
|
15876
|
-
"bytesInOutput":
|
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":
|
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":
|
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":
|
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":
|
15922
|
+
"bytesInOutput": 2071
|
15913
15923
|
},
|
15914
15924
|
"src/Prebuilt/components/Polls/Voting/Voting.tsx": {
|
15915
|
-
"bytesInOutput":
|
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":
|
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":
|
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":
|
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":
|
16279
|
+
"bytes": 1442845
|
16270
16280
|
}
|
16271
16281
|
}
|
16272
16282
|
}
|
package/dist/meta.esbuild.json
CHANGED
@@ -4478,7 +4478,7 @@
|
|
4478
4478
|
"format": "cjs"
|
4479
4479
|
},
|
4480
4480
|
"../hms-video-store/dist/index.js": {
|
4481
|
-
"bytes":
|
4481
|
+
"bytes": 320781,
|
4482
4482
|
"imports": [
|
4483
4483
|
{
|
4484
4484
|
"path": "../../node_modules/reselect/es/index.js",
|
@@ -4707,7 +4707,7 @@
|
|
4707
4707
|
"format": "esm"
|
4708
4708
|
},
|
4709
4709
|
"src/Prebuilt/common/utils.js": {
|
4710
|
-
"bytes":
|
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":
|
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":
|
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":
|
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":
|
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":
|
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":
|
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":
|
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":
|
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":
|
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-
|
12606
|
+
"path": "dist/chunk-AMKCMJY4.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-
|
12679
|
+
"dist/HLSView-LVQBZ4PX.js.map": {
|
12675
12680
|
"imports": [],
|
12676
12681
|
"exports": [],
|
12677
12682
|
"inputs": {},
|
12678
12683
|
"bytes": 58852
|
12679
12684
|
},
|
12680
|
-
"dist/HLSView-
|
12685
|
+
"dist/HLSView-LVQBZ4PX.js": {
|
12681
12686
|
"imports": [
|
12682
12687
|
{
|
12683
|
-
"path": "dist/chunk-
|
12688
|
+
"path": "dist/chunk-AMKCMJY4.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-
|
12852
|
+
"dist/chunk-AMKCMJY4.js.map": {
|
12848
12853
|
"imports": [],
|
12849
12854
|
"exports": [],
|
12850
12855
|
"inputs": {},
|
12851
|
-
"bytes":
|
12856
|
+
"bytes": 3009138
|
12852
12857
|
},
|
12853
|
-
"dist/chunk-
|
12858
|
+
"dist/chunk-AMKCMJY4.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-
|
15081
|
+
"path": "dist/HLSView-LVQBZ4PX.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":
|
15503
|
+
"bytesInOutput": 18038
|
15494
15504
|
},
|
15495
15505
|
"../../node_modules/lodash/lodash.js": {
|
15496
15506
|
"bytesInOutput": 224265
|
@@ -15913,7 +15923,7 @@
|
|
15913
15923
|
"bytesInOutput": 10019
|
15914
15924
|
},
|
15915
15925
|
"../hms-video-store/dist/index.js": {
|
15916
|
-
"bytesInOutput":
|
15926
|
+
"bytesInOutput": 48225
|
15917
15927
|
},
|
15918
15928
|
"../../node_modules/reselect/es/index.js": {
|
15919
15929
|
"bytesInOutput": 2537
|
@@ -15961,7 +15971,7 @@
|
|
15961
15971
|
"bytesInOutput": 907
|
15962
15972
|
},
|
15963
15973
|
"src/Prebuilt/common/utils.js": {
|
15964
|
-
"bytesInOutput":
|
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":
|
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":
|
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":
|
16115
|
+
"bytesInOutput": 2309
|
16106
16116
|
},
|
16107
16117
|
"src/Prebuilt/components/Polls/Voting/StatisticBox.tsx": {
|
16108
|
-
"bytesInOutput":
|
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":
|
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":
|
16130
|
+
"bytesInOutput": 7270
|
16121
16131
|
},
|
16122
16132
|
"src/Prebuilt/components/Polls/Voting/TimedVoting.tsx": {
|
16123
|
-
"bytesInOutput":
|
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":
|
16142
|
+
"bytesInOutput": 14381
|
16133
16143
|
},
|
16134
16144
|
"src/Prebuilt/components/Chat/ChatActions.tsx": {
|
16135
|
-
"bytesInOutput":
|
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":
|
16421
|
+
"bytes": 1223368
|
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
|
13
|
+
"version": "0.2.2",
|
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
|
86
|
-
"@100mslive/hms-virtual-background": "1.12.2
|
87
|
-
"@100mslive/react-icons": "0.9.2
|
88
|
-
"@100mslive/react-sdk": "0.9.2
|
85
|
+
"@100mslive/hls-player": "0.2.2",
|
86
|
+
"@100mslive/hms-virtual-background": "1.12.2",
|
87
|
+
"@100mslive/react-icons": "0.9.2",
|
88
|
+
"@100mslive/react-sdk": "0.9.2",
|
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": "
|
123
|
+
"gitHead": "e1fee68a01f0166cc2c5e19a39c7b0119e0a3bd8"
|
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={
|
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={
|
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,
|
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
|
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: '$
|
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
|
{
|