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

Sign up to get free protection for your applications and to get access to all the features.
@@ -2282,7 +2282,7 @@
2282
2282
  "format": "esm"
2283
2283
  },
2284
2284
  "src/Prebuilt/components/AppData/AppData.tsx": {
2285
- "bytes": 6283,
2285
+ "bytes": 6401,
2286
2286
  "imports": [
2287
2287
  {
2288
2288
  "path": "react",
@@ -5601,7 +5601,7 @@
5601
5601
  "format": "cjs"
5602
5602
  },
5603
5603
  "../hms-video-store/dist/index.js": {
5604
- "bytes": 356920,
5604
+ "bytes": 357265,
5605
5605
  "imports": [
5606
5606
  {
5607
5607
  "path": "../../node_modules/reselect/es/index.js",
@@ -6547,7 +6547,7 @@
6547
6547
  "format": "esm"
6548
6548
  },
6549
6549
  "src/Prebuilt/components/ScreenShareToggle.jsx": {
6550
- "bytes": 1717,
6550
+ "bytes": 1909,
6551
6551
  "imports": [
6552
6552
  {
6553
6553
  "path": "react",
@@ -6569,6 +6569,11 @@
6569
6569
  "kind": "import-statement",
6570
6570
  "original": "./pdfAnnotator/shareScreenOptions"
6571
6571
  },
6572
+ {
6573
+ "path": "src/Prebuilt/components/Toast/ToastManager.js",
6574
+ "kind": "import-statement",
6575
+ "original": "./Toast/ToastManager"
6576
+ },
6572
6577
  {
6573
6578
  "path": "src/Layout/index.tsx",
6574
6579
  "kind": "import-statement",
@@ -9888,19 +9893,8 @@
9888
9893
  ],
9889
9894
  "format": "esm"
9890
9895
  },
9891
- "src/Prebuilt/components/VirtualBackground/constants.ts": {
9892
- "bytes": 696,
9893
- "imports": [
9894
- {
9895
- "path": "<define:process.env>",
9896
- "kind": "import-statement",
9897
- "external": true
9898
- }
9899
- ],
9900
- "format": "esm"
9901
- },
9902
9896
  "src/Prebuilt/components/VirtualBackground/VBPicker.tsx": {
9903
- "bytes": 8023,
9897
+ "bytes": 7931,
9904
9898
  "imports": [
9905
9899
  {
9906
9900
  "path": "react",
@@ -9977,11 +9971,6 @@
9977
9971
  "kind": "import-statement",
9978
9972
  "original": "../../common/constants"
9979
9973
  },
9980
- {
9981
- "path": "src/Prebuilt/components/VirtualBackground/constants.ts",
9982
- "kind": "import-statement",
9983
- "original": "./constants"
9984
- },
9985
9974
  {
9986
9975
  "path": "<define:process.env>",
9987
9976
  "kind": "import-statement",
@@ -11227,7 +11216,7 @@
11227
11216
  ],
11228
11217
  "format": "esm"
11229
11218
  },
11230
- "../../../../../../../tmp/tmp-2803-t7udrge7U055/190e434ca603/tldraw.css": {
11219
+ "../../../../../../../tmp/tmp-2795-fw31Lj57HETD/190fe5a3d7e3/tldraw.css": {
11231
11220
  "bytes": 80111,
11232
11221
  "imports": [
11233
11222
  {
@@ -11277,7 +11266,7 @@
11277
11266
  }
11278
11267
  ]
11279
11268
  },
11280
- "../../../../../../../tmp/tmp-2803-t7udrge7U055/190e434ca4c1/index.css": {
11269
+ "../../../../../../../tmp/tmp-2795-fw31Lj57HETD/190fe5a3d151/index.css": {
11281
11270
  "bytes": 597,
11282
11271
  "imports": [
11283
11272
  {
@@ -11286,7 +11275,7 @@
11286
11275
  "external": true
11287
11276
  },
11288
11277
  {
11289
- "path": "../../../../../../../tmp/tmp-2803-t7udrge7U055/190e434ca603/tldraw.css",
11278
+ "path": "../../../../../../../tmp/tmp-2795-fw31Lj57HETD/190fe5a3d7e3/tldraw.css",
11290
11279
  "kind": "import-rule",
11291
11280
  "original": "@tldraw/tldraw/tldraw.css"
11292
11281
  }
@@ -11361,7 +11350,7 @@
11361
11350
  "original": "../../common/constants"
11362
11351
  },
11363
11352
  {
11364
- "path": "../../../../../../../tmp/tmp-2803-t7udrge7U055/190e434ca4c1/index.css",
11353
+ "path": "../../../../../../../tmp/tmp-2795-fw31Lj57HETD/190fe5a3d151/index.css",
11365
11354
  "kind": "import-statement",
11366
11355
  "original": "@100mslive/hms-whiteboard/index.css"
11367
11356
  },
@@ -15248,7 +15237,7 @@
15248
15237
  "dist/index.js": {
15249
15238
  "imports": [
15250
15239
  {
15251
- "path": "dist/chunk-5GS4O2BK.js",
15240
+ "path": "dist/chunk-SCKPBPAN.js",
15252
15241
  "kind": "import-statement"
15253
15242
  }
15254
15243
  ],
@@ -15324,16 +15313,16 @@
15324
15313
  "inputs": {},
15325
15314
  "bytes": 1882
15326
15315
  },
15327
- "dist/HLSView-WZULAPSG.js.map": {
15316
+ "dist/HLSView-O4KQ2SQJ.js.map": {
15328
15317
  "imports": [],
15329
15318
  "exports": [],
15330
15319
  "inputs": {},
15331
15320
  "bytes": 100275
15332
15321
  },
15333
- "dist/HLSView-WZULAPSG.js": {
15322
+ "dist/HLSView-O4KQ2SQJ.js": {
15334
15323
  "imports": [
15335
15324
  {
15336
- "path": "dist/chunk-5GS4O2BK.js",
15325
+ "path": "dist/chunk-SCKPBPAN.js",
15337
15326
  "kind": "import-statement"
15338
15327
  },
15339
15328
  {
@@ -15511,7 +15500,7 @@
15511
15500
  "default"
15512
15501
  ],
15513
15502
  "entryPoint": "src/Prebuilt/layouts/HLSView.jsx",
15514
- "cssBundle": "dist/HLSView-2B7JRVYF.css",
15503
+ "cssBundle": "dist/HLSView-DIQJQC42.css",
15515
15504
  "inputs": {
15516
15505
  "src/Prebuilt/layouts/HLSView.jsx": {
15517
15506
  "bytesInOutput": 27671
@@ -15570,13 +15559,13 @@
15570
15559
  },
15571
15560
  "bytes": 61702
15572
15561
  },
15573
- "dist/chunk-5GS4O2BK.js.map": {
15562
+ "dist/chunk-SCKPBPAN.js.map": {
15574
15563
  "imports": [],
15575
15564
  "exports": [],
15576
15565
  "inputs": {},
15577
- "bytes": 3477743
15566
+ "bytes": 3477799
15578
15567
  },
15579
- "dist/chunk-5GS4O2BK.js": {
15568
+ "dist/chunk-SCKPBPAN.js": {
15580
15569
  "imports": [
15581
15570
  {
15582
15571
  "path": "react",
@@ -18099,7 +18088,7 @@
18099
18088
  "external": true
18100
18089
  },
18101
18090
  {
18102
- "path": "dist/HLSView-WZULAPSG.js",
18091
+ "path": "dist/HLSView-O4KQ2SQJ.js",
18103
18092
  "kind": "dynamic-import"
18104
18093
  },
18105
18094
  {
@@ -18698,7 +18687,7 @@
18698
18687
  ],
18699
18688
  "inputs": {
18700
18689
  "<define:process.env>": {
18701
- "bytesInOutput": 17981
18690
+ "bytesInOutput": 17959
18702
18691
  },
18703
18692
  "../../node_modules/lodash/lodash.js": {
18704
18693
  "bytesInOutput": 224289
@@ -18986,7 +18975,7 @@
18986
18975
  "bytesInOutput": 7926
18987
18976
  },
18988
18977
  "src/Prebuilt/components/AppData/AppData.tsx": {
18989
- "bytesInOutput": 5997
18978
+ "bytesInOutput": 6249
18990
18979
  },
18991
18980
  "src/Prebuilt/components/Settings/LayoutSettings.tsx": {
18992
18981
  "bytesInOutput": 2705
@@ -19292,7 +19281,7 @@
19292
19281
  "bytesInOutput": 905
19293
19282
  },
19294
19283
  "src/Prebuilt/components/ScreenShareToggle.jsx": {
19295
- "bytesInOutput": 1612
19284
+ "bytesInOutput": 1750
19296
19285
  },
19297
19286
  "src/Prebuilt/components/pdfAnnotator/shareScreenOptions.jsx": {
19298
19287
  "bytesInOutput": 7124
@@ -19514,7 +19503,7 @@
19514
19503
  "bytesInOutput": 1050
19515
19504
  },
19516
19505
  "src/Prebuilt/components/VirtualBackground/VBPicker.tsx": {
19517
- "bytesInOutput": 7903
19506
+ "bytesInOutput": 7862
19518
19507
  },
19519
19508
  "src/Prebuilt/components/VirtualBackground/VBCollection.tsx": {
19520
19509
  "bytesInOutput": 1157
@@ -19525,9 +19514,6 @@
19525
19514
  "src/Prebuilt/components/VirtualBackground/VBHandler.tsx": {
19526
19515
  "bytesInOutput": 3443
19527
19516
  },
19528
- "src/Prebuilt/components/VirtualBackground/constants.ts": {
19529
- "bytesInOutput": 714
19530
- },
19531
19517
  "src/Prebuilt/components/Chip.tsx": {
19532
19518
  "bytesInOutput": 778
19533
19519
  },
@@ -19594,7 +19580,7 @@
19594
19580
  "src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx": {
19595
19581
  "bytesInOutput": 2830
19596
19582
  },
19597
- "../../../../../../../tmp/tmp-2803-t7udrge7U055/190e434ca4c1/index.css": {
19583
+ "../../../../../../../tmp/tmp-2795-fw31Lj57HETD/190fe5a3d151/index.css": {
19598
19584
  "bytesInOutput": 0
19599
19585
  },
19600
19586
  "src/Prebuilt/common/PeersSorter.ts": {
@@ -19760,7 +19746,7 @@
19760
19746
  "bytesInOutput": 2632
19761
19747
  }
19762
19748
  },
19763
- "bytes": 1445908
19749
+ "bytes": 1445462
19764
19750
  },
19765
19751
  "dist/index.css.map": {
19766
19752
  "imports": [],
@@ -19822,22 +19808,22 @@
19822
19808
  }
19823
19809
  ],
19824
19810
  "inputs": {
19825
- "../../../../../../../tmp/tmp-2803-t7udrge7U055/190e434ca603/tldraw.css": {
19811
+ "../../../../../../../tmp/tmp-2795-fw31Lj57HETD/190fe5a3d7e3/tldraw.css": {
19826
19812
  "bytesInOutput": 75223
19827
19813
  },
19828
- "../../../../../../../tmp/tmp-2803-t7udrge7U055/190e434ca4c1/index.css": {
19814
+ "../../../../../../../tmp/tmp-2795-fw31Lj57HETD/190fe5a3d151/index.css": {
19829
19815
  "bytesInOutput": 401
19830
19816
  }
19831
19817
  },
19832
19818
  "bytes": 75901
19833
19819
  },
19834
- "dist/HLSView-2B7JRVYF.css.map": {
19820
+ "dist/HLSView-DIQJQC42.css.map": {
19835
19821
  "imports": [],
19836
19822
  "exports": [],
19837
19823
  "inputs": {},
19838
19824
  "bytes": 122402
19839
19825
  },
19840
- "dist/HLSView-2B7JRVYF.css": {
19826
+ "dist/HLSView-DIQJQC42.css": {
19841
19827
  "imports": [
19842
19828
  {
19843
19829
  "path": "https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap",
@@ -19891,10 +19877,10 @@
19891
19877
  }
19892
19878
  ],
19893
19879
  "inputs": {
19894
- "../../../../../../../tmp/tmp-2803-t7udrge7U055/190e434ca603/tldraw.css": {
19880
+ "../../../../../../../tmp/tmp-2795-fw31Lj57HETD/190fe5a3d7e3/tldraw.css": {
19895
19881
  "bytesInOutput": 75223
19896
19882
  },
19897
- "../../../../../../../tmp/tmp-2803-t7udrge7U055/190e434ca4c1/index.css": {
19883
+ "../../../../../../../tmp/tmp-2795-fw31Lj57HETD/190fe5a3d151/index.css": {
19898
19884
  "bytesInOutput": 401
19899
19885
  }
19900
19886
  },
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "prebuilt",
11
11
  "roomkit"
12
12
  ],
13
- "version": "0.3.17-alpha.0",
13
+ "version": "0.3.17-alpha.1",
14
14
  "author": "100ms",
15
15
  "license": "MIT",
16
16
  "repository": {
@@ -75,13 +75,13 @@
75
75
  "react": ">=17.0.2 <19.0.0"
76
76
  },
77
77
  "dependencies": {
78
- "@100mslive/hls-player": "0.3.17-alpha.0",
78
+ "@100mslive/hls-player": "0.3.17-alpha.1",
79
79
  "@100mslive/hms-noise-cancellation": "0.0.1",
80
- "@100mslive/hms-virtual-background": "1.13.17-alpha.0",
81
- "@100mslive/hms-whiteboard": "0.0.7-alpha.0",
82
- "@100mslive/react-icons": "0.10.17-alpha.0",
83
- "@100mslive/react-sdk": "0.10.17-alpha.0",
84
- "@100mslive/types-prebuilt": "0.12.9",
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",
84
+ "@100mslive/types-prebuilt": "0.12.11",
85
85
  "@emoji-mart/data": "^1.0.6",
86
86
  "@emoji-mart/react": "^1.0.1",
87
87
  "@radix-ui/react-accordion": "1.0.0",
@@ -117,5 +117,5 @@
117
117
  "uuid": "^8.3.2",
118
118
  "worker-timers": "^7.0.40"
119
119
  },
120
- "gitHead": "3fff3238f614b199bfd20704192c64d3a800c001"
120
+ "gitHead": "4d8b6da71642585295d7dfc3b05c43809f35ea8c"
121
121
  }
@@ -117,9 +117,10 @@ export const AppData = React.memo(() => {
117
117
  ...uiSettings,
118
118
  [UI_SETTINGS.isAudioOnly]: undefined,
119
119
  [UI_SETTINGS.uiViewMode]: uiSettings.uiViewMode || UI_MODE_GRID,
120
+ [UI_SETTINGS.maxTileCount]: elements?.video_tile_layout?.grid?.tiles_in_view || 9,
120
121
  };
121
122
  hmsActions.setAppData(APP_DATA.uiSettings, updatedSettings, true);
122
- }, [preferences, hmsActions]);
123
+ }, [preferences, hmsActions, elements?.video_tile_layout]);
123
124
 
124
125
  useEffect(() => {
125
126
  if (!preferences.subscribedNotifications) {
@@ -2,6 +2,7 @@ import React, { Fragment } from 'react';
2
2
  import { selectIsAllowedToPublish, useAwayNotifications, useHMSStore, useScreenShare } from '@100mslive/react-sdk';
3
3
  import { ShareScreenIcon } from '@100mslive/react-icons';
4
4
  import { ShareScreenOptions } from './pdfAnnotator/shareScreenOptions';
5
+ import { ToastManager } from './Toast/ToastManager';
5
6
  import { Box, Flex } from '../../Layout';
6
7
  import { Tooltip } from '../../Tooltip';
7
8
  import { ScreenShareButton } from './ShareMenuIcon';
@@ -13,7 +14,17 @@ export const ScreenshareToggle = ({ css = {} }) => {
13
14
  const isAllowedToPublish = useHMSStore(selectIsAllowedToPublish);
14
15
  const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
15
16
 
16
- const { amIScreenSharing, screenShareVideoTrackId: video, toggleScreenShare } = useScreenShare();
17
+ const {
18
+ amIScreenSharing,
19
+ screenShareVideoTrackId: video,
20
+ toggleScreenShare,
21
+ } = useScreenShare(error => {
22
+ ToastManager.addToast({
23
+ title: error.message,
24
+ variant: 'error',
25
+ duration: 2000,
26
+ });
27
+ });
17
28
  const { requestPermission } = useAwayNotifications();
18
29
  const isVideoScreenshare = amIScreenSharing && !!video;
19
30
  if (!isAllowedToPublish.screen || !isScreenshareSupported()) {
@@ -30,7 +30,6 @@ import { useSidepaneResetOnLayoutUpdate } from '../AppData/useSidepaneResetOnLay
30
30
  // @ts-ignore
31
31
  import { useSetAppDataByKey, useUISettings } from '../AppData/useUISettings';
32
32
  import { APP_DATA, SIDE_PANE_OPTIONS, UI_SETTINGS } from '../../common/constants';
33
- import { defaultMedia } from './constants';
34
33
 
35
34
  const iconDims = { height: '40px', width: '40px' };
36
35
 
@@ -52,9 +51,7 @@ export const VBPicker = ({ backgroundMedia = [] }: { backgroundMedia: VirtualBac
52
51
  const [loadingEffects, setLoadingEffects] = useSetAppDataByKey(APP_DATA.loadingEffects);
53
52
  const isPluginAdded = useHMSStore(selectIsLocalVideoPluginPresent(VBHandler?.getName() || ''));
54
53
  const background = useHMSStore(selectAppData(APP_DATA.background));
55
- const mediaList = backgroundMedia.length
56
- ? backgroundMedia.map((media: VirtualBackgroundMedia) => media.url || '')
57
- : defaultMedia;
54
+ const mediaList = backgroundMedia.map((media: VirtualBackgroundMedia) => media.url || '');
58
55
 
59
56
  const inPreview = roomState === HMSRoomState.Preview;
60
57
  // Hidden in preview as the effect will be visible in the preview tile
@@ -1 +0,0 @@
1
- export declare const defaultMedia: string[];