@100mslive/roomkit-react 0.3.17-alpha.1 → 0.3.17-alpha.10

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.
@@ -2281,19 +2281,40 @@
2281
2281
  ],
2282
2282
  "format": "esm"
2283
2283
  },
2284
+ "src/Prebuilt/components/MoreSettings/constants.ts": {
2285
+ "bytes": 493,
2286
+ "imports": [
2287
+ {
2288
+ "path": "<define:process.env>",
2289
+ "kind": "import-statement",
2290
+ "external": true
2291
+ }
2292
+ ],
2293
+ "format": "esm"
2294
+ },
2284
2295
  "src/Prebuilt/components/AppData/AppData.tsx": {
2285
- "bytes": 6401,
2296
+ "bytes": 6711,
2286
2297
  "imports": [
2287
2298
  {
2288
2299
  "path": "react",
2289
2300
  "kind": "import-statement",
2290
2301
  "external": true
2291
2302
  },
2303
+ {
2304
+ "path": "react-use",
2305
+ "kind": "import-statement",
2306
+ "external": true
2307
+ },
2292
2308
  {
2293
2309
  "path": "@100mslive/react-sdk",
2294
2310
  "kind": "import-statement",
2295
2311
  "external": true
2296
2312
  },
2313
+ {
2314
+ "path": "src/Theme/index.tsx",
2315
+ "kind": "import-statement",
2316
+ "original": "../../../Theme"
2317
+ },
2297
2318
  {
2298
2319
  "path": "src/Prebuilt/components/Settings/LayoutSettings.tsx",
2299
2320
  "kind": "import-statement",
@@ -2324,6 +2345,11 @@
2324
2345
  "kind": "import-statement",
2325
2346
  "original": "../../common/constants"
2326
2347
  },
2348
+ {
2349
+ "path": "src/Prebuilt/components/MoreSettings/constants.ts",
2350
+ "kind": "import-statement",
2351
+ "original": "../MoreSettings/constants"
2352
+ },
2327
2353
  {
2328
2354
  "path": "<define:process.env>",
2329
2355
  "kind": "import-statement",
@@ -2891,7 +2917,7 @@
2891
2917
  "format": "esm"
2892
2918
  },
2893
2919
  "src/Prebuilt/components/AudioVideoToggle.tsx": {
2894
- "bytes": 13290,
2920
+ "bytes": 13759,
2895
2921
  "imports": [
2896
2922
  {
2897
2923
  "path": "react",
@@ -4885,17 +4911,6 @@
4885
4911
  ],
4886
4912
  "format": "esm"
4887
4913
  },
4888
- "src/Prebuilt/components/MoreSettings/constants.ts": {
4889
- "bytes": 430,
4890
- "imports": [
4891
- {
4892
- "path": "<define:process.env>",
4893
- "kind": "import-statement",
4894
- "external": true
4895
- }
4896
- ],
4897
- "format": "esm"
4898
- },
4899
4914
  "src/Prebuilt/components/MoreSettings/MuteAllContent.tsx": {
4900
4915
  "bytes": 2900,
4901
4916
  "imports": [
@@ -5601,7 +5616,7 @@
5601
5616
  "format": "cjs"
5602
5617
  },
5603
5618
  "../hms-video-store/dist/index.js": {
5604
- "bytes": 357265,
5619
+ "bytes": 361757,
5605
5620
  "imports": [
5606
5621
  {
5607
5622
  "path": "../../node_modules/reselect/es/index.js",
@@ -5614,9 +5629,9 @@
5614
5629
  "original": "ua-parser-js"
5615
5630
  },
5616
5631
  {
5617
- "path": "../../node_modules/lodash.isequal/index.js",
5632
+ "path": "uuid",
5618
5633
  "kind": "import-statement",
5619
- "original": "lodash.isequal"
5634
+ "external": true
5620
5635
  },
5621
5636
  {
5622
5637
  "path": "uuid",
@@ -5624,9 +5639,9 @@
5624
5639
  "external": true
5625
5640
  },
5626
5641
  {
5627
- "path": "uuid",
5642
+ "path": "../../node_modules/lodash.isequal/index.js",
5628
5643
  "kind": "import-statement",
5629
- "external": true
5644
+ "original": "lodash.isequal"
5630
5645
  },
5631
5646
  {
5632
5647
  "path": "../../node_modules/webrtc-adapter/src/js/adapter_core.js",
@@ -10224,7 +10239,7 @@
10224
10239
  "format": "esm"
10225
10240
  },
10226
10241
  "src/Prebuilt/components/Preview/PreviewJoin.tsx": {
10227
- "bytes": 10118,
10242
+ "bytes": 10002,
10228
10243
  "imports": [
10229
10244
  {
10230
10245
  "path": "react",
@@ -11216,7 +11231,7 @@
11216
11231
  ],
11217
11232
  "format": "esm"
11218
11233
  },
11219
- "../../../../../../../tmp/tmp-2795-fw31Lj57HETD/190fe5a3d7e3/tldraw.css": {
11234
+ "../../../../../../../tmp/tmp-2833-M4d9noIFuBRI/191217092dd2/tldraw.css": {
11220
11235
  "bytes": 80111,
11221
11236
  "imports": [
11222
11237
  {
@@ -11266,7 +11281,7 @@
11266
11281
  }
11267
11282
  ]
11268
11283
  },
11269
- "../../../../../../../tmp/tmp-2795-fw31Lj57HETD/190fe5a3d151/index.css": {
11284
+ "../../../../../../../tmp/tmp-2833-M4d9noIFuBRI/191217092780/index.css": {
11270
11285
  "bytes": 597,
11271
11286
  "imports": [
11272
11287
  {
@@ -11275,7 +11290,7 @@
11275
11290
  "external": true
11276
11291
  },
11277
11292
  {
11278
- "path": "../../../../../../../tmp/tmp-2795-fw31Lj57HETD/190fe5a3d7e3/tldraw.css",
11293
+ "path": "../../../../../../../tmp/tmp-2833-M4d9noIFuBRI/191217092dd2/tldraw.css",
11279
11294
  "kind": "import-rule",
11280
11295
  "original": "@tldraw/tldraw/tldraw.css"
11281
11296
  }
@@ -11350,7 +11365,7 @@
11350
11365
  "original": "../../common/constants"
11351
11366
  },
11352
11367
  {
11353
- "path": "../../../../../../../tmp/tmp-2795-fw31Lj57HETD/190fe5a3d151/index.css",
11368
+ "path": "../../../../../../../tmp/tmp-2833-M4d9noIFuBRI/191217092780/index.css",
11354
11369
  "kind": "import-statement",
11355
11370
  "original": "@100mslive/hms-whiteboard/index.css"
11356
11371
  },
@@ -15237,7 +15252,7 @@
15237
15252
  "dist/index.js": {
15238
15253
  "imports": [
15239
15254
  {
15240
- "path": "dist/chunk-SCKPBPAN.js",
15255
+ "path": "dist/chunk-GCTIXYTC.js",
15241
15256
  "kind": "import-statement"
15242
15257
  }
15243
15258
  ],
@@ -15313,16 +15328,16 @@
15313
15328
  "inputs": {},
15314
15329
  "bytes": 1882
15315
15330
  },
15316
- "dist/HLSView-O4KQ2SQJ.js.map": {
15331
+ "dist/HLSView-NMG7P72A.js.map": {
15317
15332
  "imports": [],
15318
15333
  "exports": [],
15319
15334
  "inputs": {},
15320
15335
  "bytes": 100275
15321
15336
  },
15322
- "dist/HLSView-O4KQ2SQJ.js": {
15337
+ "dist/HLSView-NMG7P72A.js": {
15323
15338
  "imports": [
15324
15339
  {
15325
- "path": "dist/chunk-SCKPBPAN.js",
15340
+ "path": "dist/chunk-GCTIXYTC.js",
15326
15341
  "kind": "import-statement"
15327
15342
  },
15328
15343
  {
@@ -15500,7 +15515,7 @@
15500
15515
  "default"
15501
15516
  ],
15502
15517
  "entryPoint": "src/Prebuilt/layouts/HLSView.jsx",
15503
- "cssBundle": "dist/HLSView-DIQJQC42.css",
15518
+ "cssBundle": "dist/HLSView-2TQQHGUX.css",
15504
15519
  "inputs": {
15505
15520
  "src/Prebuilt/layouts/HLSView.jsx": {
15506
15521
  "bytesInOutput": 27671
@@ -15559,13 +15574,13 @@
15559
15574
  },
15560
15575
  "bytes": 61702
15561
15576
  },
15562
- "dist/chunk-SCKPBPAN.js.map": {
15577
+ "dist/chunk-GCTIXYTC.js.map": {
15563
15578
  "imports": [],
15564
15579
  "exports": [],
15565
15580
  "inputs": {},
15566
- "bytes": 3477799
15581
+ "bytes": 3487531
15567
15582
  },
15568
- "dist/chunk-SCKPBPAN.js": {
15583
+ "dist/chunk-GCTIXYTC.js": {
15569
15584
  "imports": [
15570
15585
  {
15571
15586
  "path": "react",
@@ -15877,6 +15892,11 @@
15877
15892
  "kind": "import-statement",
15878
15893
  "external": true
15879
15894
  },
15895
+ {
15896
+ "path": "react-use",
15897
+ "kind": "import-statement",
15898
+ "external": true
15899
+ },
15880
15900
  {
15881
15901
  "path": "@100mslive/react-sdk",
15882
15902
  "kind": "import-statement",
@@ -18088,7 +18108,7 @@
18088
18108
  "external": true
18089
18109
  },
18090
18110
  {
18091
- "path": "dist/HLSView-O4KQ2SQJ.js",
18111
+ "path": "dist/HLSView-NMG7P72A.js",
18092
18112
  "kind": "dynamic-import"
18093
18113
  },
18094
18114
  {
@@ -18687,13 +18707,13 @@
18687
18707
  ],
18688
18708
  "inputs": {
18689
18709
  "<define:process.env>": {
18690
- "bytesInOutput": 17959
18710
+ "bytesInOutput": 17991
18691
18711
  },
18692
18712
  "../../node_modules/lodash/lodash.js": {
18693
18713
  "bytesInOutput": 224289
18694
18714
  },
18695
18715
  "../../node_modules/ua-parser-js/src/ua-parser.js": {
18696
- "bytesInOutput": 42494
18716
+ "bytesInOutput": 42491
18697
18717
  },
18698
18718
  "../../node_modules/lodash.isequal/index.js": {
18699
18719
  "bytesInOutput": 26591
@@ -18705,7 +18725,7 @@
18705
18725
  "bytesInOutput": 16120
18706
18726
  },
18707
18727
  "../../node_modules/sdp-transform/lib/parser.js": {
18708
- "bytesInOutput": 3492
18728
+ "bytesInOutput": 3495
18709
18729
  },
18710
18730
  "../../node_modules/sdp-transform/lib/writer.js": {
18711
18731
  "bytesInOutput": 3068
@@ -18714,7 +18734,7 @@
18714
18734
  "bytesInOutput": 615
18715
18735
  },
18716
18736
  "../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js": {
18717
- "bytesInOutput": 3839
18737
+ "bytesInOutput": 3851
18718
18738
  },
18719
18739
  "../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js": {
18720
18740
  "bytesInOutput": 7632
@@ -18897,7 +18917,7 @@
18897
18917
  "bytesInOutput": 27
18898
18918
  },
18899
18919
  "src/AudioLevel/useBorderAudioLevel.tsx": {
18900
- "bytesInOutput": 753
18920
+ "bytesInOutput": 755
18901
18921
  },
18902
18922
  "src/AudioLevel/AudioLevel.tsx": {
18903
18923
  "bytesInOutput": 2195
@@ -18915,7 +18935,7 @@
18915
18935
  "bytesInOutput": 8580
18916
18936
  },
18917
18937
  "src/Stats/formatBytes.ts": {
18918
- "bytesInOutput": 473
18938
+ "bytesInOutput": 470
18919
18939
  },
18920
18940
  "src/Stats/StyledStats.tsx": {
18921
18941
  "bytesInOutput": 708
@@ -18975,7 +18995,7 @@
18975
18995
  "bytesInOutput": 7926
18976
18996
  },
18977
18997
  "src/Prebuilt/components/AppData/AppData.tsx": {
18978
- "bytesInOutput": 6249
18998
+ "bytesInOutput": 6417
18979
18999
  },
18980
19000
  "src/Prebuilt/components/Settings/LayoutSettings.tsx": {
18981
19001
  "bytesInOutput": 2705
@@ -19010,6 +19030,9 @@
19010
19030
  "src/Prebuilt/components/AppData/useSidepane.js": {
19011
19031
  "bytesInOutput": 2499
19012
19032
  },
19033
+ "src/Prebuilt/components/MoreSettings/constants.ts": {
19034
+ "bytesInOutput": 490
19035
+ },
19013
19036
  "src/Prebuilt/components/AuthToken.jsx": {
19014
19037
  "bytesInOutput": 3650
19015
19038
  },
@@ -19020,13 +19043,13 @@
19020
19043
  "bytesInOutput": 4698
19021
19044
  },
19022
19045
  "src/Prebuilt/components/ConferenceScreen.tsx": {
19023
- "bytesInOutput": 7403
19046
+ "bytesInOutput": 7400
19024
19047
  },
19025
19048
  "src/Prebuilt/components/Footer/Footer.tsx": {
19026
19049
  "bytesInOutput": 3306
19027
19050
  },
19028
19051
  "src/Prebuilt/components/AudioVideoToggle.tsx": {
19029
- "bytesInOutput": 13687
19052
+ "bytesInOutput": 14235
19030
19053
  },
19031
19054
  "src/Prebuilt/components/IconButtonWithOptions/IconButtonWithOptions.tsx": {
19032
19055
  "bytesInOutput": 3293
@@ -19047,7 +19070,7 @@
19047
19070
  "bytesInOutput": 2859
19048
19071
  },
19049
19072
  "src/Prebuilt/components/Settings/DeviceSettings.jsx": {
19050
- "bytesInOutput": 6554
19073
+ "bytesInOutput": 6568
19051
19074
  },
19052
19075
  "src/Prebuilt/primitives/DropdownTrigger.jsx": {
19053
19076
  "bytesInOutput": 1308
@@ -19110,7 +19133,7 @@
19110
19133
  "bytesInOutput": 178
19111
19134
  },
19112
19135
  "src/Prebuilt/components/PIP/PIPComponent.tsx": {
19113
- "bytesInOutput": 2679
19136
+ "bytesInOutput": 2681
19114
19137
  },
19115
19138
  "src/Prebuilt/components/PIP/PIPManager.ts": {
19116
19139
  "bytesInOutput": 9818
@@ -19122,7 +19145,7 @@
19122
19145
  "bytesInOutput": 2509
19123
19146
  },
19124
19147
  "src/Prebuilt/components/PIP/PIPChat.tsx": {
19125
- "bytesInOutput": 9624
19148
+ "bytesInOutput": 9621
19126
19149
  },
19127
19150
  "src/TextArea/index.tsx": {
19128
19151
  "bytesInOutput": 27
@@ -19176,13 +19199,13 @@
19176
19199
  "bytesInOutput": 7700
19177
19200
  },
19178
19201
  "src/Prebuilt/components/StatsForNerds.jsx": {
19179
- "bytesInOutput": 9411
19202
+ "bytesInOutput": 9408
19180
19203
  },
19181
19204
  "src/Prebuilt/components/MoreSettings/BulkRoleChangeModal.jsx": {
19182
19205
  "bytesInOutput": 5008
19183
19206
  },
19184
19207
  "src/Prebuilt/components/MoreSettings/CaptionModal.tsx": {
19185
- "bytesInOutput": 1015
19208
+ "bytesInOutput": 1017
19186
19209
  },
19187
19210
  "src/Prebuilt/components/MoreSettings/CaptionContent.tsx": {
19188
19211
  "bytesInOutput": 5092
@@ -19199,9 +19222,6 @@
19199
19222
  "src/Prebuilt/components/MoreSettings/MuteAllContent.tsx": {
19200
19223
  "bytesInOutput": 2579
19201
19224
  },
19202
- "src/Prebuilt/components/MoreSettings/constants.ts": {
19203
- "bytesInOutput": 437
19204
- },
19205
19225
  "src/Prebuilt/components/hooks/useMetadata.tsx": {
19206
19226
  "bytesInOutput": 1898
19207
19227
  },
@@ -19221,7 +19241,7 @@
19221
19241
  "bytesInOutput": 9486
19222
19242
  },
19223
19243
  "../hms-video-store/dist/index.js": {
19224
- "bytesInOutput": 50057
19244
+ "bytesInOutput": 50264
19225
19245
  },
19226
19246
  "../../node_modules/reselect/es/index.js": {
19227
19247
  "bytesInOutput": 2539
@@ -19236,10 +19256,10 @@
19236
19256
  "bytesInOutput": 6313
19237
19257
  },
19238
19258
  "../../node_modules/webrtc-adapter/src/js/chrome/chrome_shim.js": {
19239
- "bytesInOutput": 22682
19259
+ "bytesInOutput": 22678
19240
19260
  },
19241
19261
  "../../node_modules/webrtc-adapter/src/js/chrome/getusermedia.js": {
19242
- "bytesInOutput": 6082
19262
+ "bytesInOutput": 6078
19243
19263
  },
19244
19264
  "../../node_modules/webrtc-adapter/src/js/chrome/getdisplaymedia.js": {
19245
19265
  "bytesInOutput": 1256
@@ -19257,7 +19277,7 @@
19257
19277
  "bytesInOutput": 11868
19258
19278
  },
19259
19279
  "../../node_modules/webrtc-adapter/src/js/common_shim.js": {
19260
- "bytesInOutput": 12460
19280
+ "bytesInOutput": 12458
19261
19281
  },
19262
19282
  "src/Prebuilt/components/Header/AdditionalRoomState.jsx": {
19263
19283
  "bytesInOutput": 4461
@@ -19272,7 +19292,7 @@
19272
19292
  "bytesInOutput": 3302
19273
19293
  },
19274
19294
  "src/Prebuilt/components/AppData/useSheet.ts": {
19275
- "bytesInOutput": 844
19295
+ "bytesInOutput": 846
19276
19296
  },
19277
19297
  "src/Prebuilt/components/hooks/useUnreadPollQuizPresent.tsx": {
19278
19298
  "bytesInOutput": 658
@@ -19356,10 +19376,10 @@
19356
19376
  "bytesInOutput": 3077
19357
19377
  },
19358
19378
  "src/Prebuilt/components/Preview/PreviewJoin.tsx": {
19359
- "bytesInOutput": 10077
19379
+ "bytesInOutput": 9964
19360
19380
  },
19361
19381
  "src/Prebuilt/layouts/SidePane.tsx": {
19362
- "bytesInOutput": 6439
19382
+ "bytesInOutput": 6436
19363
19383
  },
19364
19384
  "src/Prebuilt/components/Polls/Polls.tsx": {
19365
19385
  "bytesInOutput": 735
@@ -19452,7 +19472,7 @@
19452
19472
  "bytesInOutput": 5646
19453
19473
  },
19454
19474
  "src/Prebuilt/components/Chat/ChatFooter.tsx": {
19455
- "bytesInOutput": 10882
19475
+ "bytesInOutput": 10879
19456
19476
  },
19457
19477
  "src/Prebuilt/components/Chat/ChatSelectorContainer.tsx": {
19458
19478
  "bytesInOutput": 5318
@@ -19580,7 +19600,7 @@
19580
19600
  "src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx": {
19581
19601
  "bytesInOutput": 2830
19582
19602
  },
19583
- "../../../../../../../tmp/tmp-2795-fw31Lj57HETD/190fe5a3d151/index.css": {
19603
+ "../../../../../../../tmp/tmp-2833-M4d9noIFuBRI/191217092780/index.css": {
19584
19604
  "bytesInOutput": 0
19585
19605
  },
19586
19606
  "src/Prebuilt/common/PeersSorter.ts": {
@@ -19641,7 +19661,7 @@
19641
19661
  "bytesInOutput": 27
19642
19662
  },
19643
19663
  "src/Prebuilt/components/Notifications/Notifications.tsx": {
19644
- "bytesInOutput": 8179
19664
+ "bytesInOutput": 8176
19645
19665
  },
19646
19666
  "src/Prebuilt/components/Notifications/AutoplayBlockedModal.tsx": {
19647
19667
  "bytesInOutput": 1053
@@ -19746,7 +19766,7 @@
19746
19766
  "bytesInOutput": 2632
19747
19767
  }
19748
19768
  },
19749
- "bytes": 1445462
19769
+ "bytes": 1446300
19750
19770
  },
19751
19771
  "dist/index.css.map": {
19752
19772
  "imports": [],
@@ -19808,22 +19828,22 @@
19808
19828
  }
19809
19829
  ],
19810
19830
  "inputs": {
19811
- "../../../../../../../tmp/tmp-2795-fw31Lj57HETD/190fe5a3d7e3/tldraw.css": {
19831
+ "../../../../../../../tmp/tmp-2833-M4d9noIFuBRI/191217092dd2/tldraw.css": {
19812
19832
  "bytesInOutput": 75223
19813
19833
  },
19814
- "../../../../../../../tmp/tmp-2795-fw31Lj57HETD/190fe5a3d151/index.css": {
19834
+ "../../../../../../../tmp/tmp-2833-M4d9noIFuBRI/191217092780/index.css": {
19815
19835
  "bytesInOutput": 401
19816
19836
  }
19817
19837
  },
19818
19838
  "bytes": 75901
19819
19839
  },
19820
- "dist/HLSView-DIQJQC42.css.map": {
19840
+ "dist/HLSView-2TQQHGUX.css.map": {
19821
19841
  "imports": [],
19822
19842
  "exports": [],
19823
19843
  "inputs": {},
19824
19844
  "bytes": 122402
19825
19845
  },
19826
- "dist/HLSView-DIQJQC42.css": {
19846
+ "dist/HLSView-2TQQHGUX.css": {
19827
19847
  "imports": [
19828
19848
  {
19829
19849
  "path": "https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap",
@@ -19877,10 +19897,10 @@
19877
19897
  }
19878
19898
  ],
19879
19899
  "inputs": {
19880
- "../../../../../../../tmp/tmp-2795-fw31Lj57HETD/190fe5a3d7e3/tldraw.css": {
19900
+ "../../../../../../../tmp/tmp-2833-M4d9noIFuBRI/191217092dd2/tldraw.css": {
19881
19901
  "bytesInOutput": 75223
19882
19902
  },
19883
- "../../../../../../../tmp/tmp-2795-fw31Lj57HETD/190fe5a3d151/index.css": {
19903
+ "../../../../../../../tmp/tmp-2833-M4d9noIFuBRI/191217092780/index.css": {
19884
19904
  "bytesInOutput": 401
19885
19905
  }
19886
19906
  },
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "prebuilt",
11
11
  "roomkit"
12
12
  ],
13
- "version": "0.3.17-alpha.1",
13
+ "version": "0.3.17-alpha.10",
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.17-alpha.1",
78
+ "@100mslive/hls-player": "0.3.17-alpha.10",
79
79
  "@100mslive/hms-noise-cancellation": "0.0.1",
80
- "@100mslive/hms-virtual-background": "1.13.17-alpha.1",
81
- "@100mslive/hms-whiteboard": "0.0.7-alpha.1",
82
- "@100mslive/react-icons": "0.10.17-alpha.1",
83
- "@100mslive/react-sdk": "0.10.17-alpha.1",
80
+ "@100mslive/hms-virtual-background": "1.13.17-alpha.10",
81
+ "@100mslive/hms-whiteboard": "0.0.7-alpha.10",
82
+ "@100mslive/react-icons": "0.10.17-alpha.10",
83
+ "@100mslive/react-sdk": "0.10.17-alpha.10",
84
84
  "@100mslive/types-prebuilt": "0.12.11",
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": "4d8b6da71642585295d7dfc3b05c43809f35ea8c"
120
+ "gitHead": "881ef62a6dbcdead74b8923522bd497f4cbe865d"
121
121
  }
@@ -1,4 +1,5 @@
1
1
  import React, { useEffect, useMemo, useRef } from 'react';
2
+ import { useMedia } from 'react-use';
2
3
  import {
3
4
  HMSRoomState,
4
5
  selectFullAppData,
@@ -10,6 +11,7 @@ import {
10
11
  useHMSStore,
11
12
  useRecordingStreaming,
12
13
  } from '@100mslive/react-sdk';
14
+ import { config as cssConfig } from '../../../Theme';
13
15
  import { LayoutMode } from '../Settings/LayoutSettings';
14
16
  import { useRoomLayoutConferencingScreen } from '../../provider/roomLayoutProvider/hooks/useRoomLayoutScreen';
15
17
  //@ts-ignore
@@ -26,6 +28,7 @@ import {
26
28
  UI_MODE_GRID,
27
29
  UI_SETTINGS,
28
30
  } from '../../common/constants';
31
+ import { DEFAULT_TILES_IN_VIEW } from '../MoreSettings/constants';
29
32
 
30
33
  const initialAppData = {
31
34
  [APP_DATA.uiSettings]: {
@@ -80,6 +83,7 @@ export const AppData = React.memo(() => {
80
83
  const { isLocalVideoEnabled } = useAVToggle();
81
84
  const sidepaneOpenedRef = useRef(false);
82
85
  const [, setNoiseCancellationEnabled] = useSetNoiseCancellation();
86
+ const isMobile = useMedia(cssConfig.media.md);
83
87
 
84
88
  useEffect(() => {
85
89
  if (elements?.noise_cancellation?.enabled_by_default) {
@@ -117,10 +121,12 @@ export const AppData = React.memo(() => {
117
121
  ...uiSettings,
118
122
  [UI_SETTINGS.isAudioOnly]: undefined,
119
123
  [UI_SETTINGS.uiViewMode]: uiSettings.uiViewMode || UI_MODE_GRID,
120
- [UI_SETTINGS.maxTileCount]: elements?.video_tile_layout?.grid?.tiles_in_view || 9,
124
+ [UI_SETTINGS.maxTileCount]: isMobile
125
+ ? DEFAULT_TILES_IN_VIEW.MWEB
126
+ : Number(elements?.video_tile_layout?.grid?.tiles_in_view) || DEFAULT_TILES_IN_VIEW.DESKTOP,
121
127
  };
122
128
  hmsActions.setAppData(APP_DATA.uiSettings, updatedSettings, true);
123
- }, [preferences, hmsActions, elements?.video_tile_layout]);
129
+ }, [preferences, hmsActions, elements?.video_tile_layout, isMobile]);
124
130
 
125
131
  useEffect(() => {
126
132
  if (!preferences.subscribedNotifications) {
@@ -1,4 +1,4 @@
1
- import React, { Fragment, useEffect, useState } from 'react';
1
+ import React, { Fragment, useCallback, useEffect, useState } from 'react';
2
2
  import { HMSKrispPlugin } from '@100mslive/hms-noise-cancellation';
3
3
  import {
4
4
  DeviceType,
@@ -14,6 +14,7 @@ import {
14
14
  useDevices,
15
15
  useHMSActions,
16
16
  useHMSStore,
17
+ useHMSVanillaStore,
17
18
  } from '@100mslive/react-sdk';
18
19
  import {
19
20
  AudioLevelIcon,
@@ -105,22 +106,26 @@ const useNoiseCancellationWithPlugin = () => {
105
106
  const actions = useHMSActions();
106
107
  const [inProgress, setInProgress] = useState(false);
107
108
  const [, setNoiseCancellationEnabled] = useSetNoiseCancellation();
108
- const setNoiseCancellationWithPlugin = async (enabled: boolean) => {
109
- if (inProgress) {
110
- return;
111
- }
112
- if (!krispPlugin.checkSupport().isSupported) {
113
- throw Error('Krisp plugin is not supported');
114
- }
115
- setInProgress(true);
116
- if (enabled) {
117
- await actions.addPluginToAudioTrack(krispPlugin);
118
- } else {
119
- await actions.removePluginFromAudioTrack(krispPlugin);
120
- }
121
- setNoiseCancellationEnabled(enabled);
122
- setInProgress(false);
123
- };
109
+ const isEnabledForRoom = useHMSStore(selectRoom)?.isNoiseCancellationEnabled;
110
+ const setNoiseCancellationWithPlugin = useCallback(
111
+ async (enabled: boolean) => {
112
+ if (!isEnabledForRoom || inProgress) {
113
+ return;
114
+ }
115
+ if (!krispPlugin.checkSupport().isSupported) {
116
+ throw Error('Krisp plugin is not supported');
117
+ }
118
+ setInProgress(true);
119
+ if (enabled) {
120
+ await actions.addPluginToAudioTrack(krispPlugin);
121
+ } else {
122
+ await actions.removePluginFromAudioTrack(krispPlugin);
123
+ }
124
+ setNoiseCancellationEnabled(enabled);
125
+ setInProgress(false);
126
+ },
127
+ [actions, inProgress, isEnabledForRoom, setNoiseCancellationEnabled],
128
+ );
124
129
  return {
125
130
  setNoiseCancellationWithPlugin,
126
131
  inProgress,
@@ -274,6 +279,7 @@ export const AudioVideoToggle = ({ hideOptions = false }: { hideOptions?: boolea
274
279
  const localPeer = useHMSStore(selectLocalPeer);
275
280
  const { isLocalVideoEnabled, isLocalAudioEnabled, toggleAudio, toggleVideo } = useAVToggle();
276
281
  const actions = useHMSActions();
282
+ const vanillaStore = useHMSVanillaStore();
277
283
  const videoTrackId = useHMSStore(selectLocalVideoTrackID);
278
284
  const localVideoTrack = useHMSStore(selectVideoTrackByID(videoTrackId));
279
285
  const roomState = useHMSStore(selectRoomState);
@@ -289,7 +295,14 @@ export const AudioVideoToggle = ({ hideOptions = false }: { hideOptions?: boolea
289
295
 
290
296
  useEffect(() => {
291
297
  (async () => {
292
- if (isNoiseCancellationEnabled && !isKrispPluginAdded && !inProgress && localPeer?.audioTrack) {
298
+ const isEnabledForRoom = vanillaStore.getState(selectRoom)?.isNoiseCancellationEnabled;
299
+ if (
300
+ isEnabledForRoom &&
301
+ isNoiseCancellationEnabled &&
302
+ !isKrispPluginAdded &&
303
+ !inProgress &&
304
+ localPeer?.audioTrack
305
+ ) {
293
306
  try {
294
307
  await setNoiseCancellationWithPlugin(true);
295
308
  ToastManager.addToast({
@@ -10,3 +10,5 @@ export const trackTypeOptions = [
10
10
  { label: 'audio', value: 'audio' },
11
11
  { label: 'video', value: 'video' },
12
12
  ];
13
+
14
+ export const DEFAULT_TILES_IN_VIEW = { MWEB: 4, DESKTOP: 9 };