@100mslive/roomkit-react 0.3.16-alpha.3 → 0.3.16-alpha.4

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.
@@ -2891,7 +2891,7 @@
2891
2891
  "format": "esm"
2892
2892
  },
2893
2893
  "src/Prebuilt/components/AudioVideoToggle.tsx": {
2894
- "bytes": 13270,
2894
+ "bytes": 13312,
2895
2895
  "imports": [
2896
2896
  {
2897
2897
  "path": "react",
@@ -4193,7 +4193,7 @@
4193
4193
  "format": "esm"
4194
4194
  },
4195
4195
  "src/Prebuilt/components/PIP/PIPChat.tsx": {
4196
- "bytes": 8423,
4196
+ "bytes": 9811,
4197
4197
  "imports": [
4198
4198
  {
4199
4199
  "path": "react",
@@ -4245,6 +4245,11 @@
4245
4245
  "kind": "import-statement",
4246
4246
  "original": "../../provider/roomLayoutProvider/hooks/useRoomLayoutScreen"
4247
4247
  },
4248
+ {
4249
+ "path": "src/Prebuilt/components/hooks/useChatBlacklist.ts",
4250
+ "kind": "import-statement",
4251
+ "original": "../hooks/useChatBlacklist"
4252
+ },
4248
4253
  {
4249
4254
  "path": "src/Prebuilt/components/Chat/utils.ts",
4250
4255
  "kind": "import-statement",
@@ -4295,7 +4300,7 @@
4295
4300
  "format": "esm"
4296
4301
  },
4297
4302
  "src/Prebuilt/components/PIP/PIPWindow.tsx": {
4298
- "bytes": 381,
4303
+ "bytes": 378,
4299
4304
  "imports": [
4300
4305
  {
4301
4306
  "path": "react",
@@ -5062,7 +5067,7 @@
5062
5067
  "format": "esm"
5063
5068
  },
5064
5069
  "src/Prebuilt/components/PIP/usePIPChat.tsx": {
5065
- "bytes": 3642,
5070
+ "bytes": 3691,
5066
5071
  "imports": [
5067
5072
  {
5068
5073
  "path": "react",
@@ -5098,7 +5103,7 @@
5098
5103
  "format": "esm"
5099
5104
  },
5100
5105
  "src/Prebuilt/components/MoreSettings/SplitComponents/DesktopOptions.tsx": {
5101
- "bytes": 10050,
5106
+ "bytes": 10425,
5102
5107
  "imports": [
5103
5108
  {
5104
5109
  "path": "react",
@@ -5205,6 +5210,11 @@
5205
5210
  "kind": "import-statement",
5206
5211
  "original": "../MuteAllModal"
5207
5212
  },
5213
+ {
5214
+ "path": "src/Prebuilt/components/AppData/useSidepane.js",
5215
+ "kind": "import-statement",
5216
+ "original": "../../AppData/useSidepane"
5217
+ },
5208
5218
  {
5209
5219
  "path": "src/Prebuilt/components/hooks/useDropdownList.ts",
5210
5220
  "kind": "import-statement",
@@ -6184,34 +6194,8 @@
6184
6194
  ],
6185
6195
  "format": "esm"
6186
6196
  },
6187
- "src/Prebuilt/components/PIP/PIPProvider.tsx": {
6188
- "bytes": 1470,
6189
- "imports": [
6190
- {
6191
- "path": "react",
6192
- "kind": "import-statement",
6193
- "external": true
6194
- },
6195
- {
6196
- "path": "src/Prebuilt/components/PIP/context.ts",
6197
- "kind": "import-statement",
6198
- "original": "./context"
6199
- },
6200
- {
6201
- "path": "<define:process.env>",
6202
- "kind": "import-statement",
6203
- "external": true
6204
- },
6205
- {
6206
- "path": "<runtime>",
6207
- "kind": "import-statement",
6208
- "external": true
6209
- }
6210
- ],
6211
- "format": "esm"
6212
- },
6213
6197
  "src/Prebuilt/components/MoreSettings/MoreSettings.tsx": {
6214
- "bytes": 1083,
6198
+ "bytes": 994,
6215
6199
  "imports": [
6216
6200
  {
6217
6201
  "path": "react",
@@ -6243,11 +6227,6 @@
6243
6227
  "kind": "import-statement",
6244
6228
  "original": "../../.."
6245
6229
  },
6246
- {
6247
- "path": "src/Prebuilt/components/PIP/PIPProvider.tsx",
6248
- "kind": "import-statement",
6249
- "original": "../PIP/PIPProvider"
6250
- },
6251
6230
  {
6252
6231
  "path": "src/Prebuilt/common/hooks.ts",
6253
6232
  "kind": "import-statement",
@@ -11248,7 +11227,7 @@
11248
11227
  ],
11249
11228
  "format": "esm"
11250
11229
  },
11251
- "../../../../../../../tmp/tmp-2785-lIWJeGC2ezlG/190bf79b6eb2/tldraw.css": {
11230
+ "../../../../../../../tmp/tmp-2843-BbFpF4vrZY8Z/190c59b28d32/tldraw.css": {
11252
11231
  "bytes": 80111,
11253
11232
  "imports": [
11254
11233
  {
@@ -11298,7 +11277,7 @@
11298
11277
  }
11299
11278
  ]
11300
11279
  },
11301
- "../../../../../../../tmp/tmp-2785-lIWJeGC2ezlG/190bf79b6940/index.css": {
11280
+ "../../../../../../../tmp/tmp-2843-BbFpF4vrZY8Z/190c59b28750/index.css": {
11302
11281
  "bytes": 597,
11303
11282
  "imports": [
11304
11283
  {
@@ -11307,7 +11286,7 @@
11307
11286
  "external": true
11308
11287
  },
11309
11288
  {
11310
- "path": "../../../../../../../tmp/tmp-2785-lIWJeGC2ezlG/190bf79b6eb2/tldraw.css",
11289
+ "path": "../../../../../../../tmp/tmp-2843-BbFpF4vrZY8Z/190c59b28d32/tldraw.css",
11311
11290
  "kind": "import-rule",
11312
11291
  "original": "@tldraw/tldraw/tldraw.css"
11313
11292
  }
@@ -11382,7 +11361,7 @@
11382
11361
  "original": "../../common/constants"
11383
11362
  },
11384
11363
  {
11385
- "path": "../../../../../../../tmp/tmp-2785-lIWJeGC2ezlG/190bf79b6940/index.css",
11364
+ "path": "../../../../../../../tmp/tmp-2843-BbFpF4vrZY8Z/190c59b28750/index.css",
11386
11365
  "kind": "import-statement",
11387
11366
  "original": "@100mslive/hms-whiteboard/index.css"
11388
11367
  },
@@ -13690,7 +13669,7 @@
13690
13669
  "format": "esm"
13691
13670
  },
13692
13671
  "src/Prebuilt/components/Notifications/Notifications.tsx": {
13693
- "bytes": 8058,
13672
+ "bytes": 8158,
13694
13673
  "imports": [
13695
13674
  {
13696
13675
  "path": "react",
@@ -13792,6 +13771,11 @@
13792
13771
  "kind": "import-statement",
13793
13772
  "original": "../AppData/useUISettings"
13794
13773
  },
13774
+ {
13775
+ "path": "src/Prebuilt/components/PIP/usePIPChat.tsx",
13776
+ "kind": "import-statement",
13777
+ "original": "../PIP/usePIPChat"
13778
+ },
13795
13779
  {
13796
13780
  "path": "src/Prebuilt/common/constants.ts",
13797
13781
  "kind": "import-statement",
@@ -13821,6 +13805,32 @@
13821
13805
  ],
13822
13806
  "format": "esm"
13823
13807
  },
13808
+ "src/Prebuilt/components/PIP/PIPProvider.tsx": {
13809
+ "bytes": 1470,
13810
+ "imports": [
13811
+ {
13812
+ "path": "react",
13813
+ "kind": "import-statement",
13814
+ "external": true
13815
+ },
13816
+ {
13817
+ "path": "src/Prebuilt/components/PIP/context.ts",
13818
+ "kind": "import-statement",
13819
+ "original": "./context"
13820
+ },
13821
+ {
13822
+ "path": "<define:process.env>",
13823
+ "kind": "import-statement",
13824
+ "external": true
13825
+ },
13826
+ {
13827
+ "path": "<runtime>",
13828
+ "kind": "import-statement",
13829
+ "external": true
13830
+ }
13831
+ ],
13832
+ "format": "esm"
13833
+ },
13824
13834
  "src/Prebuilt/components/Preview/PreviewScreen.tsx": {
13825
13835
  "bytes": 1597,
13826
13836
  "imports": [
@@ -14175,7 +14185,7 @@
14175
14185
  "format": "esm"
14176
14186
  },
14177
14187
  "src/Prebuilt/App.tsx": {
14178
- "bytes": 10754,
14188
+ "bytes": 10923,
14179
14189
  "imports": [
14180
14190
  {
14181
14191
  "path": "react",
@@ -14247,6 +14257,11 @@
14247
14257
  "kind": "import-statement",
14248
14258
  "original": "./components/Notifications"
14249
14259
  },
14260
+ {
14261
+ "path": "src/Prebuilt/components/PIP/PIPProvider.tsx",
14262
+ "kind": "import-statement",
14263
+ "original": "./components/PIP/PIPProvider"
14264
+ },
14250
14265
  {
14251
14266
  "path": "src/Prebuilt/components/Preview/PreviewScreen.tsx",
14252
14267
  "kind": "import-statement",
@@ -15233,7 +15248,7 @@
15233
15248
  "dist/index.js": {
15234
15249
  "imports": [
15235
15250
  {
15236
- "path": "dist/chunk-ADT3Q26H.js",
15251
+ "path": "dist/chunk-5HC75I2C.js",
15237
15252
  "kind": "import-statement"
15238
15253
  }
15239
15254
  ],
@@ -15309,16 +15324,16 @@
15309
15324
  "inputs": {},
15310
15325
  "bytes": 1882
15311
15326
  },
15312
- "dist/HLSView-TBAYH564.js.map": {
15327
+ "dist/HLSView-42Y5RAI7.js.map": {
15313
15328
  "imports": [],
15314
15329
  "exports": [],
15315
15330
  "inputs": {},
15316
15331
  "bytes": 100275
15317
15332
  },
15318
- "dist/HLSView-TBAYH564.js": {
15333
+ "dist/HLSView-42Y5RAI7.js": {
15319
15334
  "imports": [
15320
15335
  {
15321
- "path": "dist/chunk-ADT3Q26H.js",
15336
+ "path": "dist/chunk-5HC75I2C.js",
15322
15337
  "kind": "import-statement"
15323
15338
  },
15324
15339
  {
@@ -15496,7 +15511,7 @@
15496
15511
  "default"
15497
15512
  ],
15498
15513
  "entryPoint": "src/Prebuilt/layouts/HLSView.jsx",
15499
- "cssBundle": "dist/HLSView-OECKVTGC.css",
15514
+ "cssBundle": "dist/HLSView-UXXIMR66.css",
15500
15515
  "inputs": {
15501
15516
  "src/Prebuilt/layouts/HLSView.jsx": {
15502
15517
  "bytesInOutput": 27671
@@ -15555,13 +15570,13 @@
15555
15570
  },
15556
15571
  "bytes": 61702
15557
15572
  },
15558
- "dist/chunk-ADT3Q26H.js.map": {
15573
+ "dist/chunk-5HC75I2C.js.map": {
15559
15574
  "imports": [],
15560
15575
  "exports": [],
15561
15576
  "inputs": {},
15562
- "bytes": 3473419
15577
+ "bytes": 3476472
15563
15578
  },
15564
- "dist/chunk-ADT3Q26H.js": {
15579
+ "dist/chunk-5HC75I2C.js": {
15565
15580
  "imports": [
15566
15581
  {
15567
15582
  "path": "react",
@@ -16823,11 +16838,6 @@
16823
16838
  "kind": "import-statement",
16824
16839
  "external": true
16825
16840
  },
16826
- {
16827
- "path": "react",
16828
- "kind": "import-statement",
16829
- "external": true
16830
- },
16831
16841
  {
16832
16842
  "path": "@100mslive/react-icons",
16833
16843
  "kind": "import-statement",
@@ -18089,7 +18099,7 @@
18089
18099
  "external": true
18090
18100
  },
18091
18101
  {
18092
- "path": "dist/HLSView-TBAYH564.js",
18102
+ "path": "dist/HLSView-42Y5RAI7.js",
18093
18103
  "kind": "dynamic-import"
18094
18104
  },
18095
18105
  {
@@ -18422,6 +18432,11 @@
18422
18432
  "kind": "import-statement",
18423
18433
  "external": true
18424
18434
  },
18435
+ {
18436
+ "path": "react",
18437
+ "kind": "import-statement",
18438
+ "external": true
18439
+ },
18425
18440
  {
18426
18441
  "path": "react-use",
18427
18442
  "kind": "import-statement",
@@ -18683,7 +18698,7 @@
18683
18698
  ],
18684
18699
  "inputs": {
18685
18700
  "<define:process.env>": {
18686
- "bytesInOutput": 17979
18701
+ "bytesInOutput": 17961
18687
18702
  },
18688
18703
  "../../node_modules/lodash/lodash.js": {
18689
18704
  "bytesInOutput": 224289
@@ -18968,7 +18983,7 @@
18968
18983
  "bytesInOutput": 887
18969
18984
  },
18970
18985
  "src/Prebuilt/App.tsx": {
18971
- "bytesInOutput": 7879
18986
+ "bytesInOutput": 7926
18972
18987
  },
18973
18988
  "src/Prebuilt/components/AppData/AppData.tsx": {
18974
18989
  "bytesInOutput": 5997
@@ -19022,7 +19037,7 @@
19022
19037
  "bytesInOutput": 3306
19023
19038
  },
19024
19039
  "src/Prebuilt/components/AudioVideoToggle.tsx": {
19025
- "bytesInOutput": 13589
19040
+ "bytesInOutput": 13613
19026
19041
  },
19027
19042
  "src/Prebuilt/components/IconButtonWithOptions/IconButtonWithOptions.tsx": {
19028
19043
  "bytesInOutput": 3207
@@ -19097,10 +19112,10 @@
19097
19112
  "bytesInOutput": 4835
19098
19113
  },
19099
19114
  "src/Prebuilt/components/MoreSettings/MoreSettings.tsx": {
19100
- "bytesInOutput": 532
19115
+ "bytesInOutput": 474
19101
19116
  },
19102
19117
  "src/Prebuilt/components/MoreSettings/SplitComponents/DesktopOptions.tsx": {
19103
- "bytesInOutput": 8918
19118
+ "bytesInOutput": 9143
19104
19119
  },
19105
19120
  "src/Prebuilt/components/PIP/index.jsx": {
19106
19121
  "bytesInOutput": 178
@@ -19118,7 +19133,7 @@
19118
19133
  "bytesInOutput": 2509
19119
19134
  },
19120
19135
  "src/Prebuilt/components/PIP/PIPChat.tsx": {
19121
- "bytesInOutput": 8163
19136
+ "bytesInOutput": 9624
19122
19137
  },
19123
19138
  "src/TextArea/index.tsx": {
19124
19139
  "bytesInOutput": 27
@@ -19157,7 +19172,7 @@
19157
19172
  "bytesInOutput": 621
19158
19173
  },
19159
19174
  "src/Prebuilt/components/PIP/PIPWindow.tsx": {
19160
- "bytesInOutput": 277
19175
+ "bytesInOutput": 274
19161
19176
  },
19162
19177
  "src/Prebuilt/components/RoleChangeModal.tsx": {
19163
19178
  "bytesInOutput": 5737
@@ -19202,7 +19217,7 @@
19202
19217
  "bytesInOutput": 1898
19203
19218
  },
19204
19219
  "src/Prebuilt/components/PIP/usePIPChat.tsx": {
19205
- "bytesInOutput": 3657
19220
+ "bytesInOutput": 3730
19206
19221
  },
19207
19222
  "src/Prebuilt/components/PIP/usePIPWindow.tsx": {
19208
19223
  "bytesInOutput": 271
@@ -19273,9 +19288,6 @@
19273
19288
  "src/Prebuilt/components/hooks/useUnreadPollQuizPresent.tsx": {
19274
19289
  "bytesInOutput": 658
19275
19290
  },
19276
- "src/Prebuilt/components/PIP/PIPProvider.tsx": {
19277
- "bytesInOutput": 1140
19278
- },
19279
19291
  "src/Prebuilt/components/RaiseHand.tsx": {
19280
19292
  "bytesInOutput": 905
19281
19293
  },
@@ -19364,7 +19376,7 @@
19364
19376
  "bytesInOutput": 735
19365
19377
  },
19366
19378
  "src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx": {
19367
- "bytesInOutput": 8204
19379
+ "bytesInOutput": 8201
19368
19380
  },
19369
19381
  "src/Prebuilt/components/Streaming/Common.jsx": {
19370
19382
  "bytesInOutput": 2317
@@ -19400,7 +19412,7 @@
19400
19412
  "bytesInOutput": 4435
19401
19413
  },
19402
19414
  "src/Prebuilt/components/Polls/CreateQuestions/SavedQuestion.tsx": {
19403
- "bytesInOutput": 2054
19415
+ "bytesInOutput": 2042
19404
19416
  },
19405
19417
  "src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx": {
19406
19418
  "bytesInOutput": 4213
@@ -19582,7 +19594,7 @@
19582
19594
  "src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx": {
19583
19595
  "bytesInOutput": 2830
19584
19596
  },
19585
- "../../../../../../../tmp/tmp-2785-lIWJeGC2ezlG/190bf79b6940/index.css": {
19597
+ "../../../../../../../tmp/tmp-2843-BbFpF4vrZY8Z/190c59b28750/index.css": {
19586
19598
  "bytesInOutput": 0
19587
19599
  },
19588
19600
  "src/Prebuilt/common/PeersSorter.ts": {
@@ -19643,7 +19655,7 @@
19643
19655
  "bytesInOutput": 27
19644
19656
  },
19645
19657
  "src/Prebuilt/components/Notifications/Notifications.tsx": {
19646
- "bytesInOutput": 8125
19658
+ "bytesInOutput": 8177
19647
19659
  },
19648
19660
  "src/Prebuilt/components/Notifications/AutoplayBlockedModal.tsx": {
19649
19661
  "bytesInOutput": 1053
@@ -19690,6 +19702,9 @@
19690
19702
  "src/Prebuilt/components/Notifications/TranscriptionNotifications.tsx": {
19691
19703
  "bytesInOutput": 2185
19692
19704
  },
19705
+ "src/Prebuilt/components/PIP/PIPProvider.tsx": {
19706
+ "bytesInOutput": 1144
19707
+ },
19693
19708
  "src/Prebuilt/components/Preview/PreviewScreen.tsx": {
19694
19709
  "bytesInOutput": 1335
19695
19710
  },
@@ -19745,7 +19760,7 @@
19745
19760
  "bytesInOutput": 2632
19746
19761
  }
19747
19762
  },
19748
- "bytes": 1443928
19763
+ "bytes": 1445720
19749
19764
  },
19750
19765
  "dist/index.css.map": {
19751
19766
  "imports": [],
@@ -19807,22 +19822,22 @@
19807
19822
  }
19808
19823
  ],
19809
19824
  "inputs": {
19810
- "../../../../../../../tmp/tmp-2785-lIWJeGC2ezlG/190bf79b6eb2/tldraw.css": {
19825
+ "../../../../../../../tmp/tmp-2843-BbFpF4vrZY8Z/190c59b28d32/tldraw.css": {
19811
19826
  "bytesInOutput": 75223
19812
19827
  },
19813
- "../../../../../../../tmp/tmp-2785-lIWJeGC2ezlG/190bf79b6940/index.css": {
19828
+ "../../../../../../../tmp/tmp-2843-BbFpF4vrZY8Z/190c59b28750/index.css": {
19814
19829
  "bytesInOutput": 401
19815
19830
  }
19816
19831
  },
19817
19832
  "bytes": 75901
19818
19833
  },
19819
- "dist/HLSView-OECKVTGC.css.map": {
19834
+ "dist/HLSView-UXXIMR66.css.map": {
19820
19835
  "imports": [],
19821
19836
  "exports": [],
19822
19837
  "inputs": {},
19823
19838
  "bytes": 122402
19824
19839
  },
19825
- "dist/HLSView-OECKVTGC.css": {
19840
+ "dist/HLSView-UXXIMR66.css": {
19826
19841
  "imports": [
19827
19842
  {
19828
19843
  "path": "https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap",
@@ -19876,10 +19891,10 @@
19876
19891
  }
19877
19892
  ],
19878
19893
  "inputs": {
19879
- "../../../../../../../tmp/tmp-2785-lIWJeGC2ezlG/190bf79b6eb2/tldraw.css": {
19894
+ "../../../../../../../tmp/tmp-2843-BbFpF4vrZY8Z/190c59b28d32/tldraw.css": {
19880
19895
  "bytesInOutput": 75223
19881
19896
  },
19882
- "../../../../../../../tmp/tmp-2785-lIWJeGC2ezlG/190bf79b6940/index.css": {
19897
+ "../../../../../../../tmp/tmp-2843-BbFpF4vrZY8Z/190c59b28750/index.css": {
19883
19898
  "bytesInOutput": 401
19884
19899
  }
19885
19900
  },
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "prebuilt",
11
11
  "roomkit"
12
12
  ],
13
- "version": "0.3.16-alpha.3",
13
+ "version": "0.3.16-alpha.4",
14
14
  "author": "100ms",
15
15
  "license": "MIT",
16
16
  "repository": {
@@ -75,12 +75,12 @@
75
75
  "react": ">=17.0.2 <19.0.0"
76
76
  },
77
77
  "dependencies": {
78
- "@100mslive/hls-player": "0.3.16-alpha.3",
78
+ "@100mslive/hls-player": "0.3.16-alpha.4",
79
79
  "@100mslive/hms-noise-cancellation": "0.0.1",
80
- "@100mslive/hms-virtual-background": "1.13.16-alpha.3",
81
- "@100mslive/hms-whiteboard": "0.0.6-alpha.3",
82
- "@100mslive/react-icons": "0.10.16-alpha.3",
83
- "@100mslive/react-sdk": "0.10.16-alpha.3",
80
+ "@100mslive/hms-virtual-background": "1.13.16-alpha.4",
81
+ "@100mslive/hms-whiteboard": "0.0.6-alpha.4",
82
+ "@100mslive/react-icons": "0.10.16-alpha.4",
83
+ "@100mslive/react-sdk": "0.10.16-alpha.4",
84
84
  "@100mslive/types-prebuilt": "0.12.9",
85
85
  "@emoji-mart/data": "^1.0.6",
86
86
  "@emoji-mart/react": "^1.0.1",
@@ -117,5 +117,5 @@
117
117
  "uuid": "^8.3.2",
118
118
  "worker-timers": "^7.0.40"
119
119
  },
120
- "gitHead": "29cf5bab0d55c5bbaff581afae570ec967cdef3d"
120
+ "gitHead": "df6bed3e5f7e9f27af45b138e1e0ce6d6839c3e4"
121
121
  }
@@ -23,6 +23,7 @@ import { KeyboardHandler } from './components/Input/KeyboardInputManager';
23
23
  import { LeaveScreen } from './components/LeaveScreen';
24
24
  import { MwebLandscapePrompt } from './components/MwebLandscapePrompt';
25
25
  import { Notifications } from './components/Notifications';
26
+ import { PIPProvider } from './components/PIP/PIPProvider';
26
27
  import { PreviewScreen } from './components/Preview/PreviewScreen';
27
28
  // @ts-ignore: No implicit Any
28
29
  import { ToastContainer } from './components/Toast/ToastContainer';
@@ -218,24 +219,26 @@ export const HMSPrebuilt = React.forwardRef<HMSPrebuiltRefType, HMSPrebuiltProps
218
219
  },
219
220
  }}
220
221
  >
221
- <Init />
222
- <DialogContainerProvider dialogContainerSelector={containerSelector}>
223
- <Box
224
- className={DEFAULT_PORTAL_CONTAINER.slice(1)} // Skips the '.' in the selector
225
- css={{
226
- bg: '$background_dim',
227
- size: '100%',
228
- lineHeight: '1.5',
229
- '-webkit-text-size-adjust': '100%',
230
- position: 'relative',
231
- }}
232
- >
233
- <AppRoutes
234
- authTokenByRoomCodeEndpoint={tokenByRoomCodeEndpoint}
235
- defaultAuthToken={authToken}
236
- />
237
- </Box>
238
- </DialogContainerProvider>
222
+ <PIPProvider>
223
+ <Init />
224
+ <DialogContainerProvider dialogContainerSelector={containerSelector}>
225
+ <Box
226
+ className={DEFAULT_PORTAL_CONTAINER.slice(1)} // Skips the '.' in the selector
227
+ css={{
228
+ bg: '$background_dim',
229
+ size: '100%',
230
+ lineHeight: '1.5',
231
+ '-webkit-text-size-adjust': '100%',
232
+ position: 'relative',
233
+ }}
234
+ >
235
+ <AppRoutes
236
+ authTokenByRoomCodeEndpoint={tokenByRoomCodeEndpoint}
237
+ defaultAuthToken={authToken}
238
+ />
239
+ </Box>
240
+ </DialogContainerProvider>
241
+ </PIPProvider>
239
242
  </HMSThemeProvider>
240
243
  );
241
244
  }}
@@ -44,7 +44,7 @@ import { useRoomLayoutConferencingScreen } from '../provider/roomLayoutProvider/
44
44
  // @ts-ignore: No implicit Any
45
45
  import { useIsNoiseCancellationEnabled, useSetNoiseCancellation } from './AppData/useUISettings';
46
46
  import { useAudioOutputTest } from './hooks/useAudioOutputTest';
47
- import { isMacOS, TEST_AUDIO_URL } from '../common/constants';
47
+ import { isAndroid, isIOS, isMacOS, TEST_AUDIO_URL } from '../common/constants';
48
48
 
49
49
  const krispPlugin = new HMSKrispPlugin();
50
50
  // const optionsCSS = { fontWeight: '$semiBold', color: '$on_surface_high', w: '100%' };
@@ -372,7 +372,7 @@ export const AudioVideoToggle = ({ hideOptions = false }: { hideOptions?: boolea
372
372
  </IconButtonWithOptions>
373
373
  ) : null}
374
374
 
375
- {localVideoTrack?.facingMode && roomState === HMSRoomState.Preview ? (
375
+ {localVideoTrack?.facingMode && roomState === HMSRoomState.Preview && (isIOS || isAndroid) ? (
376
376
  <Tooltip title="Switch Camera" key="switchCamera">
377
377
  <IconButton
378
378
  onClick={async () => {
@@ -10,7 +10,6 @@ import { DesktopOptions } from './SplitComponents/DesktopOptions';
10
10
  // @ts-ignore: No implicit Any
11
11
  import { MwebOptions } from './SplitComponents/MwebOptions';
12
12
  import { config as cssConfig } from '../../..';
13
- import { PIPProvider } from '../PIP/PIPProvider';
14
13
  import { useLandscapeHLSStream } from '../../common/hooks';
15
14
 
16
15
  export const MoreSettings = ({
@@ -25,8 +24,6 @@ export const MoreSettings = ({
25
24
  return isMobile || isLandscapeHLSStream ? (
26
25
  <MwebOptions elements={elements} screenType={screenType} />
27
26
  ) : (
28
- <PIPProvider>
29
- <DesktopOptions elements={elements} screenType={screenType} />
30
- </PIPProvider>
27
+ <DesktopOptions elements={elements} screenType={screenType} />
31
28
  );
32
29
  };
@@ -48,12 +48,14 @@ import { CaptionModal } from '../CaptionModal';
48
48
  import { FullScreenItem } from '../FullScreenItem';
49
49
  import { MuteAllModal } from '../MuteAllModal';
50
50
  // @ts-ignore: No implicit any
51
+ import { useIsSidepaneTypeOpen, useSidepaneToggle } from '../../AppData/useSidepane';
52
+ // @ts-ignore: No implicit any
51
53
  import { useDropdownList } from '../../hooks/useDropdownList';
52
54
  import { useMyMetadata } from '../../hooks/useMetadata';
53
55
  // @ts-ignore: No implicit any
54
56
  import { usePIPChat } from '../../PIP/usePIPChat';
55
57
  // @ts-ignore: No implicit any
56
- import { APP_DATA, isMacOS } from '../../../common/constants';
58
+ import { APP_DATA, isMacOS, SIDE_PANE_OPTIONS } from '../../../common/constants';
57
59
 
58
60
  const MODALS = {
59
61
  CHANGE_NAME: 'changeName',
@@ -85,6 +87,8 @@ export const DesktopOptions = ({
85
87
  const isTranscriptionAllowed = useHMSStore(selectIsTranscriptionAllowedByMode(HMSTranscriptionMode.CAPTION));
86
88
  const isTranscriptionEnabled = useHMSStore(selectIsTranscriptionEnabled);
87
89
  const { isSupported, pipWindow, requestPipWindow } = usePIPChat();
90
+ const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
91
+ const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
88
92
  const showPipChatOption = !!elements?.chat && isSupported;
89
93
 
90
94
  useDropdownList({ open: openModals.size > 0, name: 'MoreSettings' });
@@ -180,7 +184,13 @@ export const DesktopOptions = ({
180
184
  </Dropdown.Item>
181
185
  ) : null}
182
186
 
183
- <PIPChatOption showPIPChat={showPipChatOption} openChat={async () => await requestPipWindow(350, 500)} />
187
+ <PIPChatOption
188
+ showPIPChat={showPipChatOption}
189
+ openChat={async () => {
190
+ isChatOpen && toggleChat();
191
+ await requestPipWindow(350, 500);
192
+ }}
193
+ />
184
194
  <FullScreenItem />
185
195
  <Dropdown.ItemSeparator css={{ mx: 0 }} />
186
196
  <Dropdown.Item onClick={() => updateState(MODALS.DEVICE_SETTINGS, true)} data-testid="device_settings_btn">
@@ -35,6 +35,7 @@ import { useRoomLayoutConferencingScreen } from '../../provider/roomLayoutProvid
35
35
  import { usePollViewToggle } from '../AppData/useSidepane';
36
36
  // @ts-ignore: No implicit Any
37
37
  import { useIsNotificationDisabled, useSubscribedNotifications } from '../AppData/useUISettings';
38
+ import { usePIPChat } from '../PIP/usePIPChat';
38
39
  import { ROLE_CHANGE_DECLINED } from '../../common/constants';
39
40
 
40
41
  const pollToastKey: Record<string, string> = {};
@@ -52,6 +53,7 @@ export function Notifications() {
52
53
  const { showNotification } = useAwayNotifications();
53
54
  const amIScreenSharing = useHMSStore(selectIsLocalScreenShared);
54
55
  const logoURL = useRoomLayout()?.logo?.url;
56
+ const { pipWindow } = usePIPChat();
55
57
 
56
58
  const handleRoleChangeDenied = useCallback((request: HMSRoleChangeRequest & { peerName: string }) => {
57
59
  ToastManager.addToast({
@@ -172,7 +174,7 @@ export function Notifications() {
172
174
  }
173
175
  break;
174
176
  case HMSNotificationTypes.NEW_MESSAGE:
175
- if (amIScreenSharing && !notification.data?.ignored) {
177
+ if (amIScreenSharing && !notification.data?.ignored && !pipWindow) {
176
178
  showNotification(`New message from ${notification.data.senderName}`, {
177
179
  body: notification.data.message,
178
180
  icon: logoURL,