@100mslive/roomkit-react 0.1.9-alpha.0 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.js CHANGED
@@ -42,7 +42,7 @@ import {
42
42
  getLeft,
43
43
  useBorderAudioLevel,
44
44
  useTheme
45
- } from "./chunk-ANQRGVIX.js";
45
+ } from "./chunk-EDGWHFCM.js";
46
46
  import {
47
47
  Box,
48
48
  Flex,
@@ -63,7 +63,7 @@ import {
63
63
  styled,
64
64
  textEllipsis,
65
65
  theme
66
- } from "./chunk-XQ2NRKIW.js";
66
+ } from "./chunk-SONHO3VM.js";
67
67
  export {
68
68
  Accordion,
69
69
  AudioLevel,
@@ -1982,7 +1982,7 @@
1982
1982
  "format": "esm"
1983
1983
  },
1984
1984
  "src/Prebuilt/components/AppData/useSidepane.js": {
1985
- "bytes": 2450,
1985
+ "bytes": 2510,
1986
1986
  "imports": [
1987
1987
  {
1988
1988
  "path": "react",
@@ -2842,7 +2842,7 @@
2842
2842
  "format": "esm"
2843
2843
  },
2844
2844
  "src/Prebuilt/components/Leave/LeaveRoom.tsx": {
2845
- "bytes": 2251,
2845
+ "bytes": 2304,
2846
2846
  "imports": [
2847
2847
  {
2848
2848
  "path": "react",
@@ -7148,7 +7148,7 @@
7148
7148
  "format": "esm"
7149
7149
  },
7150
7150
  "src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.jsx": {
7151
- "bytes": 7348,
7151
+ "bytes": 7629,
7152
7152
  "imports": [
7153
7153
  {
7154
7154
  "path": "react",
@@ -7405,7 +7405,7 @@
7405
7405
  "format": "esm"
7406
7406
  },
7407
7407
  "src/Prebuilt/components/Polls/CreateQuestions/QuestionForm.jsx": {
7408
- "bytes": 7945,
7408
+ "bytes": 8093,
7409
7409
  "imports": [
7410
7410
  {
7411
7411
  "path": "react",
@@ -7676,7 +7676,7 @@
7676
7676
  "format": "esm"
7677
7677
  },
7678
7678
  "src/Prebuilt/components/Polls/Voting/Voting.jsx": {
7679
- "bytes": 3246,
7679
+ "bytes": 3265,
7680
7680
  "imports": [
7681
7681
  {
7682
7682
  "path": "react",
@@ -9244,7 +9244,7 @@
9244
9244
  "format": "esm"
9245
9245
  },
9246
9246
  "src/Prebuilt/components/hooks/useRedirectToLeave.tsx": {
9247
- "bytes": 746,
9247
+ "bytes": 661,
9248
9248
  "imports": [
9249
9249
  {
9250
9250
  "path": "react",
@@ -9275,7 +9275,7 @@
9275
9275
  "format": "esm"
9276
9276
  },
9277
9277
  "src/Prebuilt/AppStateContext.tsx": {
9278
- "bytes": 2523,
9278
+ "bytes": 2535,
9279
9279
  "imports": [
9280
9280
  {
9281
9281
  "path": "react",
@@ -9382,13 +9382,18 @@
9382
9382
  "format": "esm"
9383
9383
  },
9384
9384
  "src/Prebuilt/components/MwebLandscapePrompt.tsx": {
9385
- "bytes": 2181,
9385
+ "bytes": 2466,
9386
9386
  "imports": [
9387
9387
  {
9388
9388
  "path": "react",
9389
9389
  "kind": "import-statement",
9390
9390
  "external": true
9391
9391
  },
9392
+ {
9393
+ "path": "react-use",
9394
+ "kind": "import-statement",
9395
+ "external": true
9396
+ },
9392
9397
  {
9393
9398
  "path": "@100mslive/react-icons",
9394
9399
  "kind": "import-statement",
@@ -9414,6 +9419,11 @@
9414
9419
  "kind": "import-statement",
9415
9420
  "original": "../../Text"
9416
9421
  },
9422
+ {
9423
+ "path": "src/Theme/index.tsx",
9424
+ "kind": "import-statement",
9425
+ "original": "../../Theme"
9426
+ },
9417
9427
  {
9418
9428
  "path": "<define:process.env>",
9419
9429
  "kind": "import-statement",
@@ -9766,7 +9776,7 @@
9766
9776
  "format": "esm"
9767
9777
  },
9768
9778
  "src/Prebuilt/components/Notifications/Notifications.tsx": {
9769
- "bytes": 7271,
9779
+ "bytes": 7288,
9770
9780
  "imports": [
9771
9781
  {
9772
9782
  "path": "react",
@@ -10538,7 +10548,7 @@
10538
10548
  "imports": [],
10539
10549
  "exports": [],
10540
10550
  "inputs": {},
10541
- "bytes": 1094626
10551
+ "bytes": 1095884
10542
10552
  },
10543
10553
  "dist/index.cjs.js": {
10544
10554
  "imports": [
@@ -12592,6 +12602,11 @@
12592
12602
  "kind": "require-call",
12593
12603
  "external": true
12594
12604
  },
12605
+ {
12606
+ "path": "react-use",
12607
+ "kind": "require-call",
12608
+ "external": true
12609
+ },
12595
12610
  {
12596
12611
  "path": "@100mslive/react-icons",
12597
12612
  "kind": "require-call",
@@ -12797,7 +12812,7 @@
12797
12812
  "entryPoint": "src/index.ts",
12798
12813
  "inputs": {
12799
12814
  "<define:process.env>": {
12800
- "bytesInOutput": 18466
12815
+ "bytesInOutput": 18428
12801
12816
  },
12802
12817
  "src/Theme/base.config.ts": {
12803
12818
  "bytesInOutput": 6104
@@ -13067,7 +13082,7 @@
13067
13082
  "bytesInOutput": 7161
13068
13083
  },
13069
13084
  "src/Prebuilt/components/AppData/useSidepane.js": {
13070
- "bytesInOutput": 2428
13085
+ "bytesInOutput": 2515
13071
13086
  },
13072
13087
  "src/Prebuilt/components/AppData/AppData.jsx": {
13073
13088
  "bytesInOutput": 6787
@@ -13127,7 +13142,7 @@
13127
13142
  "bytesInOutput": 5237
13128
13143
  },
13129
13144
  "src/Prebuilt/components/Leave/LeaveRoom.tsx": {
13130
- "bytesInOutput": 2510
13145
+ "bytesInOutput": 2601
13131
13146
  },
13132
13147
  "src/Prebuilt/components/PIP/pipUtils.js": {
13133
13148
  "bytesInOutput": 4391
@@ -13412,7 +13427,7 @@
13412
13427
  "bytesInOutput": 1555
13413
13428
  },
13414
13429
  "src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.jsx": {
13415
- "bytesInOutput": 9161
13430
+ "bytesInOutput": 9433
13416
13431
  },
13417
13432
  "src/Prebuilt/components/Polls/CreateQuestions/DeleteQuestionModal.jsx": {
13418
13433
  "bytesInOutput": 2780
@@ -13433,7 +13448,7 @@
13433
13448
  "bytesInOutput": 4752
13434
13449
  },
13435
13450
  "src/Prebuilt/components/Polls/CreateQuestions/QuestionForm.jsx": {
13436
- "bytesInOutput": 9229
13451
+ "bytesInOutput": 9325
13437
13452
  },
13438
13453
  "src/Prebuilt/components/Polls/CreateQuestions/SavedQuestion.jsx": {
13439
13454
  "bytesInOutput": 2749
@@ -13451,7 +13466,7 @@
13451
13466
  "bytesInOutput": 1381
13452
13467
  },
13453
13468
  "src/Prebuilt/components/Polls/Voting/Voting.jsx": {
13454
- "bytesInOutput": 3872
13469
+ "bytesInOutput": 3891
13455
13470
  },
13456
13471
  "src/Prebuilt/components/Polls/Polls.tsx": {
13457
13472
  "bytesInOutput": 996
@@ -13556,16 +13571,16 @@
13556
13571
  "bytesInOutput": 4998
13557
13572
  },
13558
13573
  "src/Prebuilt/components/hooks/useRedirectToLeave.tsx": {
13559
- "bytesInOutput": 882
13574
+ "bytesInOutput": 789
13560
13575
  },
13561
13576
  "src/Prebuilt/AppStateContext.tsx": {
13562
- "bytesInOutput": 2724
13577
+ "bytesInOutput": 2697
13563
13578
  },
13564
13579
  "src/Prebuilt/components/LeaveScreen.tsx": {
13565
13580
  "bytesInOutput": 2925
13566
13581
  },
13567
13582
  "src/Prebuilt/components/MwebLandscapePrompt.tsx": {
13568
- "bytesInOutput": 2697
13583
+ "bytesInOutput": 3069
13569
13584
  },
13570
13585
  "src/Prebuilt/components/Toast/ToastConfig.jsx": {
13571
13586
  "bytesInOutput": 7487
@@ -13604,7 +13619,7 @@
13604
13619
  "bytesInOutput": 2271
13605
13620
  },
13606
13621
  "src/Prebuilt/components/Notifications/Notifications.tsx": {
13607
- "bytesInOutput": 7786
13622
+ "bytesInOutput": 7803
13608
13623
  },
13609
13624
  "src/Prebuilt/components/Notifications/index.tsx": {
13610
13625
  "bytesInOutput": 173
@@ -13640,7 +13655,7 @@
13640
13655
  "bytesInOutput": 2930
13641
13656
  }
13642
13657
  },
13643
- "bytes": 892744
13658
+ "bytes": 893540
13644
13659
  }
13645
13660
  }
13646
13661
  }
@@ -1982,7 +1982,7 @@
1982
1982
  "format": "esm"
1983
1983
  },
1984
1984
  "src/Prebuilt/components/AppData/useSidepane.js": {
1985
- "bytes": 2450,
1985
+ "bytes": 2510,
1986
1986
  "imports": [
1987
1987
  {
1988
1988
  "path": "react",
@@ -2842,7 +2842,7 @@
2842
2842
  "format": "esm"
2843
2843
  },
2844
2844
  "src/Prebuilt/components/Leave/LeaveRoom.tsx": {
2845
- "bytes": 2251,
2845
+ "bytes": 2304,
2846
2846
  "imports": [
2847
2847
  {
2848
2848
  "path": "react",
@@ -7148,7 +7148,7 @@
7148
7148
  "format": "esm"
7149
7149
  },
7150
7150
  "src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.jsx": {
7151
- "bytes": 7348,
7151
+ "bytes": 7629,
7152
7152
  "imports": [
7153
7153
  {
7154
7154
  "path": "react",
@@ -7405,7 +7405,7 @@
7405
7405
  "format": "esm"
7406
7406
  },
7407
7407
  "src/Prebuilt/components/Polls/CreateQuestions/QuestionForm.jsx": {
7408
- "bytes": 7945,
7408
+ "bytes": 8093,
7409
7409
  "imports": [
7410
7410
  {
7411
7411
  "path": "react",
@@ -7676,7 +7676,7 @@
7676
7676
  "format": "esm"
7677
7677
  },
7678
7678
  "src/Prebuilt/components/Polls/Voting/Voting.jsx": {
7679
- "bytes": 3246,
7679
+ "bytes": 3265,
7680
7680
  "imports": [
7681
7681
  {
7682
7682
  "path": "react",
@@ -9244,7 +9244,7 @@
9244
9244
  "format": "esm"
9245
9245
  },
9246
9246
  "src/Prebuilt/components/hooks/useRedirectToLeave.tsx": {
9247
- "bytes": 746,
9247
+ "bytes": 661,
9248
9248
  "imports": [
9249
9249
  {
9250
9250
  "path": "react",
@@ -9275,7 +9275,7 @@
9275
9275
  "format": "esm"
9276
9276
  },
9277
9277
  "src/Prebuilt/AppStateContext.tsx": {
9278
- "bytes": 2523,
9278
+ "bytes": 2535,
9279
9279
  "imports": [
9280
9280
  {
9281
9281
  "path": "react",
@@ -9382,13 +9382,18 @@
9382
9382
  "format": "esm"
9383
9383
  },
9384
9384
  "src/Prebuilt/components/MwebLandscapePrompt.tsx": {
9385
- "bytes": 2181,
9385
+ "bytes": 2466,
9386
9386
  "imports": [
9387
9387
  {
9388
9388
  "path": "react",
9389
9389
  "kind": "import-statement",
9390
9390
  "external": true
9391
9391
  },
9392
+ {
9393
+ "path": "react-use",
9394
+ "kind": "import-statement",
9395
+ "external": true
9396
+ },
9392
9397
  {
9393
9398
  "path": "@100mslive/react-icons",
9394
9399
  "kind": "import-statement",
@@ -9414,6 +9419,11 @@
9414
9419
  "kind": "import-statement",
9415
9420
  "original": "../../Text"
9416
9421
  },
9422
+ {
9423
+ "path": "src/Theme/index.tsx",
9424
+ "kind": "import-statement",
9425
+ "original": "../../Theme"
9426
+ },
9417
9427
  {
9418
9428
  "path": "<define:process.env>",
9419
9429
  "kind": "import-statement",
@@ -9766,7 +9776,7 @@
9766
9776
  "format": "esm"
9767
9777
  },
9768
9778
  "src/Prebuilt/components/Notifications/Notifications.tsx": {
9769
- "bytes": 7271,
9779
+ "bytes": 7288,
9770
9780
  "imports": [
9771
9781
  {
9772
9782
  "path": "react",
@@ -10543,11 +10553,11 @@
10543
10553
  "dist/index.js": {
10544
10554
  "imports": [
10545
10555
  {
10546
- "path": "dist/chunk-ANQRGVIX.js",
10556
+ "path": "dist/chunk-EDGWHFCM.js",
10547
10557
  "kind": "import-statement"
10548
10558
  },
10549
10559
  {
10550
- "path": "dist/chunk-XQ2NRKIW.js",
10560
+ "path": "dist/chunk-SONHO3VM.js",
10551
10561
  "kind": "import-statement"
10552
10562
  }
10553
10563
  ],
@@ -10619,16 +10629,16 @@
10619
10629
  "inputs": {},
10620
10630
  "bytes": 1836
10621
10631
  },
10622
- "dist/VirtualBackground-PMLQPJB6.js.map": {
10632
+ "dist/VirtualBackground-2VZVBRIC.js.map": {
10623
10633
  "imports": [],
10624
10634
  "exports": [],
10625
10635
  "inputs": {},
10626
10636
  "bytes": 9168
10627
10637
  },
10628
- "dist/VirtualBackground-PMLQPJB6.js": {
10638
+ "dist/VirtualBackground-2VZVBRIC.js": {
10629
10639
  "imports": [
10630
10640
  {
10631
- "path": "dist/chunk-XQ2NRKIW.js",
10641
+ "path": "dist/chunk-SONHO3VM.js",
10632
10642
  "kind": "import-statement"
10633
10643
  },
10634
10644
  {
@@ -10677,20 +10687,20 @@
10677
10687
  },
10678
10688
  "bytes": 6075
10679
10689
  },
10680
- "dist/HLSView-U53QN3AC.js.map": {
10690
+ "dist/HLSView-VGJ2XUDT.js.map": {
10681
10691
  "imports": [],
10682
10692
  "exports": [],
10683
10693
  "inputs": {},
10684
10694
  "bytes": 52770
10685
10695
  },
10686
- "dist/HLSView-U53QN3AC.js": {
10696
+ "dist/HLSView-VGJ2XUDT.js": {
10687
10697
  "imports": [
10688
10698
  {
10689
- "path": "dist/chunk-ANQRGVIX.js",
10699
+ "path": "dist/chunk-EDGWHFCM.js",
10690
10700
  "kind": "import-statement"
10691
10701
  },
10692
10702
  {
10693
- "path": "dist/chunk-XQ2NRKIW.js",
10703
+ "path": "dist/chunk-SONHO3VM.js",
10694
10704
  "kind": "import-statement"
10695
10705
  },
10696
10706
  {
@@ -10841,16 +10851,16 @@
10841
10851
  },
10842
10852
  "bytes": 32794
10843
10853
  },
10844
- "dist/chunk-ANQRGVIX.js.map": {
10854
+ "dist/chunk-EDGWHFCM.js.map": {
10845
10855
  "imports": [],
10846
10856
  "exports": [],
10847
10857
  "inputs": {},
10848
- "bytes": 980731
10858
+ "bytes": 981994
10849
10859
  },
10850
- "dist/chunk-ANQRGVIX.js": {
10860
+ "dist/chunk-EDGWHFCM.js": {
10851
10861
  "imports": [
10852
10862
  {
10853
- "path": "dist/chunk-XQ2NRKIW.js",
10863
+ "path": "dist/chunk-SONHO3VM.js",
10854
10864
  "kind": "import-statement"
10855
10865
  },
10856
10866
  {
@@ -11929,7 +11939,7 @@
11929
11939
  "external": true
11930
11940
  },
11931
11941
  {
11932
- "path": "dist/VirtualBackground-PMLQPJB6.js",
11942
+ "path": "dist/VirtualBackground-2VZVBRIC.js",
11933
11943
  "kind": "dynamic-import"
11934
11944
  },
11935
11945
  {
@@ -12033,7 +12043,7 @@
12033
12043
  "external": true
12034
12044
  },
12035
12045
  {
12036
- "path": "dist/VirtualBackground-PMLQPJB6.js",
12046
+ "path": "dist/VirtualBackground-2VZVBRIC.js",
12037
12047
  "kind": "dynamic-import"
12038
12048
  },
12039
12049
  {
@@ -12667,7 +12677,7 @@
12667
12677
  "external": true
12668
12678
  },
12669
12679
  {
12670
- "path": "dist/HLSView-U53QN3AC.js",
12680
+ "path": "dist/HLSView-VGJ2XUDT.js",
12671
12681
  "kind": "dynamic-import"
12672
12682
  },
12673
12683
  {
@@ -12760,6 +12770,11 @@
12760
12770
  "kind": "import-statement",
12761
12771
  "external": true
12762
12772
  },
12773
+ {
12774
+ "path": "react-use",
12775
+ "kind": "import-statement",
12776
+ "external": true
12777
+ },
12763
12778
  {
12764
12779
  "path": "@100mslive/react-icons",
12765
12780
  "kind": "import-statement",
@@ -13192,7 +13207,7 @@
13192
13207
  "bytesInOutput": 700
13193
13208
  },
13194
13209
  "src/Prebuilt/components/AppData/useSidepane.js": {
13195
- "bytesInOutput": 1846
13210
+ "bytesInOutput": 1907
13196
13211
  },
13197
13212
  "src/Prebuilt/components/AppData/useUISettings.js": {
13198
13213
  "bytesInOutput": 5419
@@ -13234,7 +13249,7 @@
13234
13249
  "bytesInOutput": 577
13235
13250
  },
13236
13251
  "src/Prebuilt/components/Leave/LeaveRoom.tsx": {
13237
- "bytesInOutput": 2001
13252
+ "bytesInOutput": 2084
13238
13253
  },
13239
13254
  "src/Prebuilt/components/Leave/DesktopLeaveRoom.tsx": {
13240
13255
  "bytesInOutput": 5525
@@ -13534,7 +13549,7 @@
13534
13549
  "bytesInOutput": 581
13535
13550
  },
13536
13551
  "src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.jsx": {
13537
- "bytesInOutput": 7616
13552
+ "bytesInOutput": 7876
13538
13553
  },
13539
13554
  "src/Prebuilt/components/Streaming/Common.jsx": {
13540
13555
  "bytesInOutput": 2220
@@ -13546,7 +13561,7 @@
13546
13561
  "bytesInOutput": 4359
13547
13562
  },
13548
13563
  "src/Prebuilt/components/Polls/CreateQuestions/QuestionForm.jsx": {
13549
- "bytesInOutput": 7439
13564
+ "bytesInOutput": 7535
13550
13565
  },
13551
13566
  "src/Prebuilt/components/Polls/CreateQuestions/DeleteQuestionModal.jsx": {
13552
13567
  "bytesInOutput": 2065
@@ -13570,7 +13585,7 @@
13570
13585
  "bytesInOutput": 2119
13571
13586
  },
13572
13587
  "src/Prebuilt/components/Polls/Voting/Voting.jsx": {
13573
- "bytesInOutput": 3040
13588
+ "bytesInOutput": 3059
13574
13589
  },
13575
13590
  "src/Prebuilt/components/Polls/Voting/StandardVoting.jsx": {
13576
13591
  "bytesInOutput": 1064
@@ -13636,16 +13651,16 @@
13636
13651
  "bytesInOutput": 2158
13637
13652
  },
13638
13653
  "src/Prebuilt/AppStateContext.tsx": {
13639
- "bytesInOutput": 2102
13654
+ "bytesInOutput": 2079
13640
13655
  },
13641
13656
  "src/Prebuilt/components/hooks/useRedirectToLeave.tsx": {
13642
- "bytesInOutput": 545
13657
+ "bytesInOutput": 464
13643
13658
  },
13644
13659
  "src/Prebuilt/components/MwebLandscapePrompt.tsx": {
13645
- "bytesInOutput": 2105
13660
+ "bytesInOutput": 2398
13646
13661
  },
13647
13662
  "src/Prebuilt/components/Notifications/Notifications.tsx": {
13648
- "bytesInOutput": 6971
13663
+ "bytesInOutput": 6988
13649
13664
  },
13650
13665
  "src/Prebuilt/components/Toast/ToastConfig.jsx": {
13651
13666
  "bytesInOutput": 6198
@@ -13708,15 +13723,15 @@
13708
13723
  "bytesInOutput": 391
13709
13724
  }
13710
13725
  },
13711
- "bytes": 647188
13726
+ "bytes": 647913
13712
13727
  },
13713
- "dist/chunk-XQ2NRKIW.js.map": {
13728
+ "dist/chunk-SONHO3VM.js.map": {
13714
13729
  "imports": [],
13715
13730
  "exports": [],
13716
13731
  "inputs": {},
13717
- "bytes": 42184
13732
+ "bytes": 42174
13718
13733
  },
13719
- "dist/chunk-XQ2NRKIW.js": {
13734
+ "dist/chunk-SONHO3VM.js": {
13720
13735
  "imports": [
13721
13736
  {
13722
13737
  "path": "@stitches/react",
@@ -13800,7 +13815,7 @@
13800
13815
  ],
13801
13816
  "inputs": {
13802
13817
  "<define:process.env>": {
13803
- "bytesInOutput": 18359
13818
+ "bytesInOutput": 18321
13804
13819
  },
13805
13820
  "src/Theme/stitches.config.ts": {
13806
13821
  "bytesInOutput": 1652
@@ -13854,7 +13869,7 @@
13854
13869
  "bytesInOutput": 1356
13855
13870
  }
13856
13871
  },
13857
- "bytes": 41675
13872
+ "bytes": 41637
13858
13873
  }
13859
13874
  }
13860
13875
  }
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "prebuilt",
11
11
  "roomkit"
12
12
  ],
13
- "version": "0.1.9-alpha.0",
13
+ "version": "0.1.9",
14
14
  "author": "100ms",
15
15
  "license": "MIT",
16
16
  "files": [
@@ -76,10 +76,10 @@
76
76
  "react": ">=17.0.2 <19.0.0"
77
77
  },
78
78
  "dependencies": {
79
- "@100mslive/hls-player": "0.1.18-alpha.0",
80
- "@100mslive/hms-virtual-background": "1.11.18-alpha.0",
81
- "@100mslive/react-icons": "0.8.18-alpha.0",
82
- "@100mslive/react-sdk": "0.8.18-alpha.0",
79
+ "@100mslive/hls-player": "0.1.18",
80
+ "@100mslive/hms-virtual-background": "1.11.18",
81
+ "@100mslive/react-icons": "0.8.18",
82
+ "@100mslive/react-sdk": "0.8.18",
83
83
  "@100mslive/types-prebuilt": "0.12.0",
84
84
  "@emoji-mart/data": "^1.0.6",
85
85
  "@emoji-mart/react": "^1.0.1",
@@ -114,5 +114,5 @@
114
114
  "uuid": "^8.3.2",
115
115
  "worker-timers": "^7.0.40"
116
116
  },
117
- "gitHead": "c8ed9e77d556152e44e6ecee18e13355695d18c5"
117
+ "gitHead": "b78d4abbfb1bb119dcdd29613484f22fbae5b149"
118
118
  }
@@ -58,10 +58,9 @@ export const useAppStateManager = () => {
58
58
  [HMSRoomState.Reconnecting, HMSRoomState.Connected].includes(prevRoomState) &&
59
59
  [HMSRoomState.Disconnecting, HMSRoomState.Disconnected].includes(roomState)
60
60
  ) {
61
- redirectToLeave().then(() => {
62
- const goTo = isPreviewScreenEnabled ? PrebuiltStates.PREVIEW : PrebuiltStates.MEETING;
63
- setActiveState(isLeaveScreenEnabled ? PrebuiltStates.LEAVE : goTo);
64
- });
61
+ const goTo = isPreviewScreenEnabled ? PrebuiltStates.PREVIEW : PrebuiltStates.MEETING;
62
+ setActiveState(isLeaveScreenEnabled ? PrebuiltStates.LEAVE : goTo);
63
+ redirectToLeave(1000); // to clear toasts after 1 second
65
64
  } else if (!prevRoomState && roomState === HMSRoomState.Disconnected) {
66
65
  setActiveState(isPreviewScreenEnabled ? PrebuiltStates.PREVIEW : PrebuiltStates.MEETING);
67
66
  }
@@ -39,20 +39,21 @@ export const useSidepaneToggle = sidepaneType => {
39
39
  };
40
40
 
41
41
  export const usePollViewToggle = () => {
42
+ const hmsActions = useHMSActions();
42
43
  const { view, setPollState } = usePollViewState();
43
44
  const isOpen = useSidepaneState() === SIDE_PANE_OPTIONS.POLLS;
44
- const toggleSidepane = useSidepaneToggle(SIDE_PANE_OPTIONS.POLLS);
45
45
 
46
46
  const togglePollView = useCallback(
47
47
  id => {
48
48
  id = typeof id === 'string' ? id : undefined;
49
+ const newView = id ? POLL_VIEWS.VOTE : isOpen && view ? null : POLL_VIEWS.CREATE_POLL_QUIZ;
49
50
  setPollState({
50
51
  [POLL_STATE.pollInView]: id,
51
- [POLL_STATE.view]: id ? POLL_VIEWS.VOTE : isOpen && view ? null : POLL_VIEWS.CREATE_POLL_QUIZ,
52
+ [POLL_STATE.view]: newView,
52
53
  });
53
- toggleSidepane();
54
+ hmsActions.setAppData(APP_DATA.sidePane, newView ? SIDE_PANE_OPTIONS.POLLS : '');
54
55
  },
55
- [view, setPollState, isOpen, toggleSidepane],
56
+ [hmsActions, view, setPollState, isOpen],
56
57
  );
57
58
 
58
59
  return togglePollView;
@@ -36,9 +36,11 @@ export const LeaveRoom = ({ screenType }: { screenType: keyof ConferencingScreen
36
36
 
37
37
  const stopStream = async () => {
38
38
  try {
39
- console.log('Stopping HLS stream');
40
- await hmsActions.stopHLSStreaming();
41
- ToastManager.addToast({ title: 'Stopping the stream' });
39
+ if (permissions?.hlsStreaming) {
40
+ console.log('Stopping HLS stream');
41
+ await hmsActions.stopHLSStreaming();
42
+ ToastManager.addToast({ title: 'Stopping the stream' });
43
+ }
42
44
  } catch (e) {
43
45
  console.error('Error stopping stream', e);
44
46
  ToastManager.addToast({ title: 'Error in stopping the stream', type: 'error' });
@@ -1,27 +1,33 @@
1
1
  import React, { useEffect, useState } from 'react';
2
+ import { useMedia } from 'react-use';
2
3
  import { RefreshIcon } from '@100mslive/react-icons';
3
4
  import { Button } from '../../Button';
4
5
  import { Box, Flex } from '../../Layout';
5
6
  import { Dialog } from '../../Modal';
6
7
  import { Text } from '../../Text';
8
+ import { config as cssConfig } from '../../Theme';
7
9
 
8
10
  export const MwebLandscapePrompt = () => {
9
11
  const [showMwebLandscapePrompt, setShowMwebLandscapePrompt] = useState(false);
12
+ const isLandscape = useMedia(cssConfig.media.ls);
10
13
 
11
14
  useEffect(() => {
15
+ if (!window.screen?.orientation) {
16
+ setShowMwebLandscapePrompt(isLandscape);
17
+ return;
18
+ }
12
19
  const handleRotation = () => {
13
20
  const angle = window.screen.orientation.angle;
14
- const type = window.screen.orientation.type;
21
+ const type = window.screen.orientation.type || '';
15
22
  // Angle check needed to diff bw mobile and desktop
16
- setShowMwebLandscapePrompt(angle >= 90 && type.includes('landscape'));
23
+ setShowMwebLandscapePrompt(angle ? angle >= 90 && type.includes('landscape') : isLandscape);
17
24
  };
18
25
  handleRotation();
19
26
  window.screen.orientation.addEventListener('change', handleRotation);
20
-
21
27
  return () => {
22
28
  window.screen.orientation.removeEventListener('change', handleRotation);
23
29
  };
24
- }, []);
30
+ }, [isLandscape]);
25
31
 
26
32
  return (
27
33
  <Dialog.Root open={showMwebLandscapePrompt} onOpenChange={setShowMwebLandscapePrompt}>