@100mslive/roomkit-react 0.3.11-alpha.7 → 0.3.12-alpha.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -21,7 +21,7 @@
21
21
  "format": "esm"
22
22
  },
23
23
  "src/Prebuilt/common/constants.ts": {
24
- "bytes": 4455,
24
+ "bytes": 4521,
25
25
  "imports": [
26
26
  {
27
27
  "path": "@100mslive/react-sdk",
@@ -3879,7 +3879,7 @@
3879
3879
  "format": "esm"
3880
3880
  },
3881
3881
  "src/Prebuilt/components/MoreSettings/CaptionContent.tsx": {
3882
- "bytes": 4817,
3882
+ "bytes": 5156,
3883
3883
  "imports": [
3884
3884
  {
3885
3885
  "path": "react",
@@ -3926,6 +3926,11 @@
3926
3926
  "kind": "import-statement",
3927
3927
  "original": "../AppData/useUISettings"
3928
3928
  },
3929
+ {
3930
+ "path": "src/Prebuilt/common/constants.ts",
3931
+ "kind": "import-statement",
3932
+ "original": "../../common/constants"
3933
+ },
3929
3934
  {
3930
3935
  "path": "<define:process.env>",
3931
3936
  "kind": "import-statement",
@@ -4167,7 +4172,7 @@
4167
4172
  "format": "esm"
4168
4173
  },
4169
4174
  "src/Prebuilt/components/MoreSettings/SplitComponents/DesktopOptions.tsx": {
4170
- "bytes": 8447,
4175
+ "bytes": 9601,
4171
4176
  "imports": [
4172
4177
  {
4173
4178
  "path": "react",
@@ -4635,7 +4640,7 @@
4635
4640
  "format": "cjs"
4636
4641
  },
4637
4642
  "../hms-video-store/dist/index.js": {
4638
- "bytes": 336520,
4643
+ "bytes": 338171,
4639
4644
  "imports": [
4640
4645
  {
4641
4646
  "path": "../../node_modules/reselect/es/index.js",
@@ -5115,7 +5120,7 @@
5115
5120
  "format": "esm"
5116
5121
  },
5117
5122
  "src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx": {
5118
- "bytes": 12430,
5123
+ "bytes": 13299,
5119
5124
  "imports": [
5120
5125
  {
5121
5126
  "path": "react",
@@ -10449,7 +10454,7 @@
10449
10454
  ],
10450
10455
  "format": "esm"
10451
10456
  },
10452
- "../../../../../../../tmp/tmp-2864-AGTaUz8PPyiH/18fa9a28e413/tldraw.css": {
10457
+ "../../../../../../../tmp/tmp-2737-MgFOw37oAaow/18fbf1ded163/tldraw.css": {
10453
10458
  "bytes": 80111,
10454
10459
  "imports": [
10455
10460
  {
@@ -10499,7 +10504,7 @@
10499
10504
  }
10500
10505
  ]
10501
10506
  },
10502
- "../../../../../../../tmp/tmp-2864-AGTaUz8PPyiH/18fa9a28de81/index.css": {
10507
+ "../../../../../../../tmp/tmp-2737-MgFOw37oAaow/18fbf1deca50/index.css": {
10503
10508
  "bytes": 597,
10504
10509
  "imports": [
10505
10510
  {
@@ -10508,7 +10513,7 @@
10508
10513
  "external": true
10509
10514
  },
10510
10515
  {
10511
- "path": "../../../../../../../tmp/tmp-2864-AGTaUz8PPyiH/18fa9a28e413/tldraw.css",
10516
+ "path": "../../../../../../../tmp/tmp-2737-MgFOw37oAaow/18fbf1ded163/tldraw.css",
10512
10517
  "kind": "import-rule",
10513
10518
  "original": "@tldraw/tldraw/tldraw.css"
10514
10519
  }
@@ -10583,7 +10588,7 @@
10583
10588
  "original": "../../common/constants"
10584
10589
  },
10585
10590
  {
10586
- "path": "../../../../../../../tmp/tmp-2864-AGTaUz8PPyiH/18fa9a28de81/index.css",
10591
+ "path": "../../../../../../../tmp/tmp-2737-MgFOw37oAaow/18fbf1deca50/index.css",
10587
10592
  "kind": "import-statement",
10588
10593
  "original": "@100mslive/hms-whiteboard/index.css"
10589
10594
  },
@@ -10612,7 +10617,7 @@
10612
10617
  "format": "esm"
10613
10618
  },
10614
10619
  "src/Prebuilt/components/VideoLayouts/GridLayout.tsx": {
10615
- "bytes": 5896,
10620
+ "bytes": 5282,
10616
10621
  "imports": [
10617
10622
  {
10618
10623
  "path": "react",
@@ -10629,16 +10634,6 @@
10629
10634
  "kind": "import-statement",
10630
10635
  "external": true
10631
10636
  },
10632
- {
10633
- "path": "@100mslive/react-icons",
10634
- "kind": "import-statement",
10635
- "external": true
10636
- },
10637
- {
10638
- "path": "src/Prebuilt/components/Toast/ToastManager.js",
10639
- "kind": "import-statement",
10640
- "original": "../Toast/ToastManager"
10641
- },
10642
10637
  {
10643
10638
  "path": "src/Prebuilt/components/VideoLayouts/EqualProminence.tsx",
10644
10639
  "kind": "import-statement",
@@ -10780,7 +10775,7 @@
10780
10775
  "format": "esm"
10781
10776
  },
10782
10777
  "src/Prebuilt/plugins/CaptionsViewer.tsx": {
10783
- "bytes": 6930,
10778
+ "bytes": 7075,
10784
10779
  "imports": [
10785
10780
  {
10786
10781
  "path": "react",
@@ -12760,13 +12755,18 @@
12760
12755
  "format": "esm"
12761
12756
  },
12762
12757
  "src/Prebuilt/components/Notifications/Notifications.tsx": {
12763
- "bytes": 7891,
12758
+ "bytes": 9725,
12764
12759
  "imports": [
12765
12760
  {
12766
12761
  "path": "react",
12767
12762
  "kind": "import-statement",
12768
12763
  "external": true
12769
12764
  },
12765
+ {
12766
+ "path": "ts-pattern",
12767
+ "kind": "import-statement",
12768
+ "external": true
12769
+ },
12770
12770
  {
12771
12771
  "path": "@100mslive/react-sdk",
12772
12772
  "kind": "import-statement",
@@ -13671,7 +13671,7 @@
13671
13671
  "dist/index.js": {
13672
13672
  "imports": [
13673
13673
  {
13674
- "path": "dist/chunk-QYLNZM7J.js",
13674
+ "path": "dist/chunk-D5F44IP2.js",
13675
13675
  "kind": "import-statement"
13676
13676
  }
13677
13677
  ],
@@ -13745,16 +13745,16 @@
13745
13745
  "inputs": {},
13746
13746
  "bytes": 1822
13747
13747
  },
13748
- "dist/HLSView-6WWKBVGS.js.map": {
13748
+ "dist/HLSView-2BPYWKSN.js.map": {
13749
13749
  "imports": [],
13750
13750
  "exports": [],
13751
13751
  "inputs": {},
13752
13752
  "bytes": 99904
13753
13753
  },
13754
- "dist/HLSView-6WWKBVGS.js": {
13754
+ "dist/HLSView-2BPYWKSN.js": {
13755
13755
  "imports": [
13756
13756
  {
13757
- "path": "dist/chunk-QYLNZM7J.js",
13757
+ "path": "dist/chunk-D5F44IP2.js",
13758
13758
  "kind": "import-statement"
13759
13759
  },
13760
13760
  {
@@ -13932,7 +13932,7 @@
13932
13932
  "default"
13933
13933
  ],
13934
13934
  "entryPoint": "src/Prebuilt/layouts/HLSView.jsx",
13935
- "cssBundle": "dist/HLSView-QAQYL76T.css",
13935
+ "cssBundle": "dist/HLSView-OAQTW322.css",
13936
13936
  "inputs": {
13937
13937
  "src/Prebuilt/layouts/HLSView.jsx": {
13938
13938
  "bytesInOutput": 25793
@@ -13991,13 +13991,13 @@
13991
13991
  },
13992
13992
  "bytes": 58515
13993
13993
  },
13994
- "dist/chunk-QYLNZM7J.js.map": {
13994
+ "dist/chunk-D5F44IP2.js.map": {
13995
13995
  "imports": [],
13996
13996
  "exports": [],
13997
13997
  "inputs": {},
13998
- "bytes": 3249458
13998
+ "bytes": 3261159
13999
13999
  },
14000
- "dist/chunk-QYLNZM7J.js": {
14000
+ "dist/chunk-D5F44IP2.js": {
14001
14001
  "imports": [
14002
14002
  {
14003
14003
  "path": "react",
@@ -16214,11 +16214,6 @@
16214
16214
  "kind": "import-statement",
16215
16215
  "external": true
16216
16216
  },
16217
- {
16218
- "path": "@100mslive/react-icons",
16219
- "kind": "import-statement",
16220
- "external": true
16221
- },
16222
16217
  {
16223
16218
  "path": "react",
16224
16219
  "kind": "import-statement",
@@ -16475,7 +16470,7 @@
16475
16470
  "external": true
16476
16471
  },
16477
16472
  {
16478
- "path": "dist/HLSView-6WWKBVGS.js",
16473
+ "path": "dist/HLSView-2BPYWKSN.js",
16479
16474
  "kind": "dynamic-import"
16480
16475
  },
16481
16476
  {
@@ -16628,6 +16623,11 @@
16628
16623
  "kind": "import-statement",
16629
16624
  "external": true
16630
16625
  },
16626
+ {
16627
+ "path": "ts-pattern",
16628
+ "kind": "import-statement",
16629
+ "external": true
16630
+ },
16631
16631
  {
16632
16632
  "path": "@100mslive/react-sdk",
16633
16633
  "kind": "import-statement",
@@ -16953,28 +16953,28 @@
16953
16953
  ],
16954
16954
  "inputs": {
16955
16955
  "<define:process.env>": {
16956
- "bytesInOutput": 17870
16956
+ "bytesInOutput": 17885
16957
16957
  },
16958
16958
  "../../node_modules/lodash/lodash.js": {
16959
- "bytesInOutput": 224301
16959
+ "bytesInOutput": 224310
16960
16960
  },
16961
16961
  "../../node_modules/ua-parser-js/src/ua-parser.js": {
16962
- "bytesInOutput": 42491
16962
+ "bytesInOutput": 42472
16963
16963
  },
16964
16964
  "../../node_modules/lodash.isequal/index.js": {
16965
16965
  "bytesInOutput": 26591
16966
16966
  },
16967
16967
  "../../node_modules/sdp/sdp.js": {
16968
- "bytesInOutput": 22279
16968
+ "bytesInOutput": 22292
16969
16969
  },
16970
16970
  "../../node_modules/sdp-transform/lib/grammar.js": {
16971
16971
  "bytesInOutput": 16120
16972
16972
  },
16973
16973
  "../../node_modules/sdp-transform/lib/parser.js": {
16974
- "bytesInOutput": 3492
16974
+ "bytesInOutput": 3497
16975
16975
  },
16976
16976
  "../../node_modules/sdp-transform/lib/writer.js": {
16977
- "bytesInOutput": 3071
16977
+ "bytesInOutput": 3068
16978
16978
  },
16979
16979
  "../../node_modules/sdp-transform/lib/index.js": {
16980
16980
  "bytesInOutput": 615
@@ -17001,7 +17001,7 @@
17001
17001
  "bytesInOutput": 5031
17002
17002
  },
17003
17003
  "src/Prebuilt/common/constants.ts": {
17004
- "bytesInOutput": 3065
17004
+ "bytesInOutput": 3121
17005
17005
  },
17006
17006
  "src/Theme/ThemeProvider.tsx": {
17007
17007
  "bytesInOutput": 1926
@@ -17133,10 +17133,10 @@
17133
17133
  "bytesInOutput": 27
17134
17134
  },
17135
17135
  "src/AudioLevel/useBorderAudioLevel.tsx": {
17136
- "bytesInOutput": 755
17136
+ "bytesInOutput": 753
17137
17137
  },
17138
17138
  "src/AudioLevel/AudioLevel.tsx": {
17139
- "bytesInOutput": 2195
17139
+ "bytesInOutput": 2196
17140
17140
  },
17141
17141
  "src/AudioLevel/audio-level.png": {
17142
17142
  "bytesInOutput": 880
@@ -17151,7 +17151,7 @@
17151
17151
  "bytesInOutput": 7231
17152
17152
  },
17153
17153
  "src/Stats/formatBytes.ts": {
17154
- "bytesInOutput": 471
17154
+ "bytesInOutput": 470
17155
17155
  },
17156
17156
  "src/Stats/StyledStats.tsx": {
17157
17157
  "bytesInOutput": 708
@@ -17241,7 +17241,7 @@
17241
17241
  "bytesInOutput": 1486
17242
17242
  },
17243
17243
  "src/Prebuilt/common/utils.js": {
17244
- "bytesInOutput": 2789
17244
+ "bytesInOutput": 2786
17245
17245
  },
17246
17246
  "src/Prebuilt/components/AppData/useSidepane.js": {
17247
17247
  "bytesInOutput": 2499
@@ -17337,7 +17337,7 @@
17337
17337
  "bytesInOutput": 474
17338
17338
  },
17339
17339
  "src/Prebuilt/components/MoreSettings/SplitComponents/DesktopOptions.tsx": {
17340
- "bytesInOutput": 7090
17340
+ "bytesInOutput": 8369
17341
17341
  },
17342
17342
  "src/Prebuilt/components/PIP/index.jsx": {
17343
17343
  "bytesInOutput": 178
@@ -17346,7 +17346,7 @@
17346
17346
  "bytesInOutput": 2621
17347
17347
  },
17348
17348
  "src/Prebuilt/components/PIP/PIPManager.ts": {
17349
- "bytesInOutput": 9064
17349
+ "bytesInOutput": 9062
17350
17350
  },
17351
17351
  "src/Prebuilt/components/PIP/pipUtils.js": {
17352
17352
  "bytesInOutput": 4289
@@ -17367,7 +17367,7 @@
17367
17367
  "bytesInOutput": 7036
17368
17368
  },
17369
17369
  "src/Prebuilt/components/StatsForNerds.jsx": {
17370
- "bytesInOutput": 9374
17370
+ "bytesInOutput": 9373
17371
17371
  },
17372
17372
  "src/Prebuilt/components/MoreSettings/BulkRoleChangeModal.jsx": {
17373
17373
  "bytesInOutput": 4856
@@ -17376,7 +17376,7 @@
17376
17376
  "bytesInOutput": 989
17377
17377
  },
17378
17378
  "src/Prebuilt/components/MoreSettings/CaptionContent.tsx": {
17379
- "bytesInOutput": 4757
17379
+ "bytesInOutput": 5013
17380
17380
  },
17381
17381
  "src/Prebuilt/components/MoreSettings/FullScreenItem.tsx": {
17382
17382
  "bytesInOutput": 628
@@ -17397,16 +17397,16 @@
17397
17397
  "bytesInOutput": 1651
17398
17398
  },
17399
17399
  "src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx": {
17400
- "bytesInOutput": 10844
17400
+ "bytesInOutput": 11874
17401
17401
  },
17402
17402
  "src/Prebuilt/components/Header/StreamActions.tsx": {
17403
17403
  "bytesInOutput": 9080
17404
17404
  },
17405
17405
  "../hms-video-store/dist/index.js": {
17406
- "bytesInOutput": 49434
17406
+ "bytesInOutput": 49496
17407
17407
  },
17408
17408
  "../../node_modules/reselect/es/index.js": {
17409
- "bytesInOutput": 2539
17409
+ "bytesInOutput": 2537
17410
17410
  },
17411
17411
  "../../node_modules/webrtc-adapter/src/js/adapter_core.js": {
17412
17412
  "bytesInOutput": 118
@@ -17418,10 +17418,10 @@
17418
17418
  "bytesInOutput": 6313
17419
17419
  },
17420
17420
  "../../node_modules/webrtc-adapter/src/js/chrome/chrome_shim.js": {
17421
- "bytesInOutput": 22682
17421
+ "bytesInOutput": 22678
17422
17422
  },
17423
17423
  "../../node_modules/webrtc-adapter/src/js/chrome/getusermedia.js": {
17424
- "bytesInOutput": 6082
17424
+ "bytesInOutput": 6079
17425
17425
  },
17426
17426
  "../../node_modules/webrtc-adapter/src/js/chrome/getdisplaymedia.js": {
17427
17427
  "bytesInOutput": 1256
@@ -17430,7 +17430,7 @@
17430
17430
  "bytesInOutput": 9143
17431
17431
  },
17432
17432
  "../../node_modules/webrtc-adapter/src/js/firefox/getusermedia.js": {
17433
- "bytesInOutput": 2125
17433
+ "bytesInOutput": 2122
17434
17434
  },
17435
17435
  "../../node_modules/webrtc-adapter/src/js/firefox/getdisplaymedia.js": {
17436
17436
  "bytesInOutput": 842
@@ -17544,7 +17544,7 @@
17544
17544
  "bytesInOutput": 2832
17545
17545
  },
17546
17546
  "src/Prebuilt/components/Preview/PreviewJoin.tsx": {
17547
- "bytesInOutput": 9541
17547
+ "bytesInOutput": 9542
17548
17548
  },
17549
17549
  "src/Prebuilt/layouts/SidePane.tsx": {
17550
17550
  "bytesInOutput": 5831
@@ -17553,7 +17553,7 @@
17553
17553
  "bytesInOutput": 735
17554
17554
  },
17555
17555
  "src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx": {
17556
- "bytesInOutput": 7619
17556
+ "bytesInOutput": 7615
17557
17557
  },
17558
17558
  "src/Prebuilt/components/Streaming/Common.jsx": {
17559
17559
  "bytesInOutput": 2247
@@ -17652,7 +17652,7 @@
17652
17652
  "bytesInOutput": 1115
17653
17653
  },
17654
17654
  "src/Prebuilt/components/hooks/usePinnedMessages.ts": {
17655
- "bytesInOutput": 2501
17655
+ "bytesInOutput": 2502
17656
17656
  },
17657
17657
  "src/Prebuilt/components/Chat/EmptyChat.tsx": {
17658
17658
  "bytesInOutput": 1882
@@ -17688,7 +17688,7 @@
17688
17688
  "bytesInOutput": 1021
17689
17689
  },
17690
17690
  "src/Prebuilt/components/Chat/StickIndicator.tsx": {
17691
- "bytesInOutput": 542
17691
+ "bytesInOutput": 543
17692
17692
  },
17693
17693
  "src/Prebuilt/components/Footer/PaginatedParticipants.tsx": {
17694
17694
  "bytesInOutput": 4119
@@ -17745,7 +17745,7 @@
17745
17745
  "bytesInOutput": 4871
17746
17746
  },
17747
17747
  "src/Prebuilt/components/VideoLayouts/GridLayout.tsx": {
17748
- "bytesInOutput": 4991
17748
+ "bytesInOutput": 4427
17749
17749
  },
17750
17750
  "src/Prebuilt/components/VideoLayouts/EqualProminence.tsx": {
17751
17751
  "bytesInOutput": 1785
@@ -17760,13 +17760,13 @@
17760
17760
  "bytesInOutput": 451
17761
17761
  },
17762
17762
  "src/Prebuilt/components/Pagination.tsx": {
17763
- "bytesInOutput": 1698
17763
+ "bytesInOutput": 1699
17764
17764
  },
17765
17765
  "src/Prebuilt/components/VideoLayouts/Grid.tsx": {
17766
17766
  "bytesInOutput": 1029
17767
17767
  },
17768
17768
  "src/Prebuilt/components/hooks/useTileLayout.tsx": {
17769
- "bytesInOutput": 3837
17769
+ "bytesInOutput": 3834
17770
17770
  },
17771
17771
  "src/Prebuilt/components/VideoLayouts/RoleProminence.tsx": {
17772
17772
  "bytesInOutput": 2080
@@ -17795,11 +17795,11 @@
17795
17795
  "src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx": {
17796
17796
  "bytesInOutput": 2656
17797
17797
  },
17798
- "../../../../../../../tmp/tmp-2864-AGTaUz8PPyiH/18fa9a28de81/index.css": {
17798
+ "../../../../../../../tmp/tmp-2737-MgFOw37oAaow/18fbf1deca50/index.css": {
17799
17799
  "bytesInOutput": 0
17800
17800
  },
17801
17801
  "src/Prebuilt/common/PeersSorter.ts": {
17802
- "bytesInOutput": 2972
17802
+ "bytesInOutput": 2973
17803
17803
  },
17804
17804
  "src/Prebuilt/layouts/EmbedView.jsx": {
17805
17805
  "bytesInOutput": 2656
@@ -17808,7 +17808,7 @@
17808
17808
  "bytesInOutput": 1506
17809
17809
  },
17810
17810
  "src/Prebuilt/plugins/CaptionsViewer.tsx": {
17811
- "bytesInOutput": 6044
17811
+ "bytesInOutput": 6221
17812
17812
  },
17813
17813
  "src/Prebuilt/components/hooks/useCloseScreenshareWhiteboard.tsx": {
17814
17814
  "bytesInOutput": 585
@@ -17856,7 +17856,7 @@
17856
17856
  "bytesInOutput": 27
17857
17857
  },
17858
17858
  "src/Prebuilt/components/Notifications/Notifications.tsx": {
17859
- "bytesInOutput": 7178
17859
+ "bytesInOutput": 9069
17860
17860
  },
17861
17861
  "src/Prebuilt/components/Notifications/AutoplayBlockedModal.tsx": {
17862
17862
  "bytesInOutput": 1053
@@ -17871,7 +17871,7 @@
17871
17871
  "bytesInOutput": 1935
17872
17872
  },
17873
17873
  "src/Prebuilt/components/Toast/ToastConfig.jsx": {
17874
- "bytesInOutput": 5751
17874
+ "bytesInOutput": 5752
17875
17875
  },
17876
17876
  "src/Prebuilt/components/Notifications/InitErrorModal.tsx": {
17877
17877
  "bytesInOutput": 1565
@@ -17934,7 +17934,7 @@
17934
17934
  "bytesInOutput": 651
17935
17935
  }
17936
17936
  },
17937
- "bytes": 1301773
17937
+ "bytes": 1305955
17938
17938
  },
17939
17939
  "dist/index.css.map": {
17940
17940
  "imports": [],
@@ -17996,22 +17996,22 @@
17996
17996
  }
17997
17997
  ],
17998
17998
  "inputs": {
17999
- "../../../../../../../tmp/tmp-2864-AGTaUz8PPyiH/18fa9a28e413/tldraw.css": {
17999
+ "../../../../../../../tmp/tmp-2737-MgFOw37oAaow/18fbf1ded163/tldraw.css": {
18000
18000
  "bytesInOutput": 75223
18001
18001
  },
18002
- "../../../../../../../tmp/tmp-2864-AGTaUz8PPyiH/18fa9a28de81/index.css": {
18002
+ "../../../../../../../tmp/tmp-2737-MgFOw37oAaow/18fbf1deca50/index.css": {
18003
18003
  "bytesInOutput": 401
18004
18004
  }
18005
18005
  },
18006
18006
  "bytes": 75901
18007
18007
  },
18008
- "dist/HLSView-QAQYL76T.css.map": {
18008
+ "dist/HLSView-OAQTW322.css.map": {
18009
18009
  "imports": [],
18010
18010
  "exports": [],
18011
18011
  "inputs": {},
18012
18012
  "bytes": 122402
18013
18013
  },
18014
- "dist/HLSView-QAQYL76T.css": {
18014
+ "dist/HLSView-OAQTW322.css": {
18015
18015
  "imports": [
18016
18016
  {
18017
18017
  "path": "https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap",
@@ -18065,10 +18065,10 @@
18065
18065
  }
18066
18066
  ],
18067
18067
  "inputs": {
18068
- "../../../../../../../tmp/tmp-2864-AGTaUz8PPyiH/18fa9a28e413/tldraw.css": {
18068
+ "../../../../../../../tmp/tmp-2737-MgFOw37oAaow/18fbf1ded163/tldraw.css": {
18069
18069
  "bytesInOutput": 75223
18070
18070
  },
18071
- "../../../../../../../tmp/tmp-2864-AGTaUz8PPyiH/18fa9a28de81/index.css": {
18071
+ "../../../../../../../tmp/tmp-2737-MgFOw37oAaow/18fbf1deca50/index.css": {
18072
18072
  "bytesInOutput": 401
18073
18073
  }
18074
18074
  },
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "prebuilt",
11
11
  "roomkit"
12
12
  ],
13
- "version": "0.3.11-alpha.7",
13
+ "version": "0.3.12-alpha.0",
14
14
  "author": "100ms",
15
15
  "license": "MIT",
16
16
  "repository": {
@@ -74,12 +74,12 @@
74
74
  "react": ">=17.0.2 <19.0.0"
75
75
  },
76
76
  "dependencies": {
77
- "@100mslive/hls-player": "0.3.11-alpha.7",
77
+ "@100mslive/hls-player": "0.3.12-alpha.0",
78
78
  "@100mslive/hms-noise-cancellation": "0.0.1",
79
- "@100mslive/hms-virtual-background": "1.13.11-alpha.7",
80
- "@100mslive/hms-whiteboard": "0.0.1-alpha.7",
81
- "@100mslive/react-icons": "0.10.11-alpha.7",
82
- "@100mslive/react-sdk": "0.10.11-alpha.7",
79
+ "@100mslive/hms-virtual-background": "1.13.12-alpha.0",
80
+ "@100mslive/hms-whiteboard": "0.0.2-alpha.0",
81
+ "@100mslive/react-icons": "0.10.12-alpha.0",
82
+ "@100mslive/react-sdk": "0.10.12-alpha.0",
83
83
  "@100mslive/types-prebuilt": "0.12.8",
84
84
  "@emoji-mart/data": "^1.0.6",
85
85
  "@emoji-mart/react": "^1.0.1",
@@ -115,5 +115,5 @@
115
115
  "uuid": "^8.3.2",
116
116
  "worker-timers": "^7.0.40"
117
117
  },
118
- "gitHead": "361d36f30fc8719e81d889901337ef3936cd88bc"
118
+ "gitHead": "5e32c0c62aba5aa7786a01912511da6ac33461a2"
119
119
  }
@@ -86,6 +86,9 @@ export const POLL_VIEWS = {
86
86
  RESULTS: 'RESULTS',
87
87
  };
88
88
 
89
+ export const CAPTION_TOAST = {
90
+ captionToast: 'captionToast',
91
+ };
89
92
  export const SUBSCRIBED_NOTIFICATIONS = {
90
93
  PEER_JOINED: 'PEER_JOINED',
91
94
  PEER_LEFT: 'PEER_LEFT',
@@ -8,14 +8,17 @@ import { Text } from '../../../Text';
8
8
  // @ts-ignore: No implicit Any
9
9
  import { ToastManager } from '../Toast/ToastManager';
10
10
  // @ts-ignore: No implicit Any
11
- import { useSetIsCaptionEnabled } from '../AppData/useUISettings';
11
+ import { useSetAppDataByKey, useSetIsCaptionEnabled } from '../AppData/useUISettings';
12
+ import { CAPTION_TOAST } from '../../common/constants';
12
13
 
13
14
  export const CaptionContent = ({ isMobile, onExit }: { isMobile: boolean; onExit: () => void }) => {
14
15
  const DURATION = 2000;
15
16
  const actions = useHMSActions();
16
17
  const isTranscriptionEnabled = useHMSStore(selectIsTranscriptionEnabled);
18
+ const [toastId, setToastId] = useSetAppDataByKey(CAPTION_TOAST.captionToast);
17
19
 
18
20
  const [isCaptionEnabled, setIsCaptionEnabled] = useSetIsCaptionEnabled();
21
+
19
22
  return (
20
23
  <>
21
24
  <Text
@@ -86,34 +89,38 @@ export const CaptionContent = ({ isMobile, onExit }: { isMobile: boolean; onExit
86
89
  data-testid="popup_change_btn"
87
90
  onClick={async () => {
88
91
  try {
92
+ ToastManager.removeToast(toastId);
89
93
  if (isTranscriptionEnabled) {
90
94
  await actions.stopTranscription({
91
95
  mode: HMSTranscriptionMode.CAPTION,
92
96
  });
93
- ToastManager.addToast({
97
+ const id = ToastManager.addToast({
94
98
  title: `Disabling Closed Caption for everyone.`,
95
99
  variant: 'standard',
96
100
  duration: DURATION,
97
101
  icon: <Loading color="currentColor" />,
98
102
  });
103
+ setToastId(id);
99
104
  onExit();
100
105
  return;
101
106
  }
102
107
  await actions.startTranscription({
103
108
  mode: HMSTranscriptionMode.CAPTION,
104
109
  });
105
- ToastManager.addToast({
110
+ const id = ToastManager.addToast({
106
111
  title: `Enabling Closed Caption for everyone.`,
107
112
  variant: 'standard',
108
113
  duration: DURATION,
109
114
  icon: <Loading color="currentColor" />,
110
115
  });
116
+ setToastId(id);
111
117
  } catch (err) {
112
- ToastManager.addToast({
118
+ const id = ToastManager.addToast({
113
119
  title: `Failed to ${isTranscriptionEnabled ? 'disabled' : 'enabled'} closed caption`,
114
120
  variant: 'error',
115
121
  icon: <AlertTriangleIcon style={{ marginRight: '0.5rem' }} />,
116
122
  });
123
+ setToastId(id);
117
124
  }
118
125
  onExit();
119
126
  }}