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

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.
@@ -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",
@@ -2891,7 +2891,7 @@
2891
2891
  "format": "esm"
2892
2892
  },
2893
2893
  "src/Prebuilt/components/AudioVideoToggle.tsx": {
2894
- "bytes": 13166,
2894
+ "bytes": 13290,
2895
2895
  "imports": [
2896
2896
  {
2897
2897
  "path": "react",
@@ -4269,7 +4269,7 @@
4269
4269
  "format": "esm"
4270
4270
  },
4271
4271
  "src/Prebuilt/components/PIP/PIPChatOption.tsx": {
4272
- "bytes": 611,
4272
+ "bytes": 616,
4273
4273
  "imports": [
4274
4274
  {
4275
4275
  "path": "react",
@@ -5601,7 +5601,7 @@
5601
5601
  "format": "cjs"
5602
5602
  },
5603
5603
  "../hms-video-store/dist/index.js": {
5604
- "bytes": 356541,
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-2785-Z6KRcy3f7V6p/190dadffaf02/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-2785-Z6KRcy3f7V6p/190dadffa730/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-2785-Z6KRcy3f7V6p/190dadffaf02/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-2785-Z6KRcy3f7V6p/190dadffa730/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-PUO554VI.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-LGGWBBBT.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-LGGWBBBT.js": {
15322
+ "dist/HLSView-O4KQ2SQJ.js": {
15334
15323
  "imports": [
15335
15324
  {
15336
- "path": "dist/chunk-PUO554VI.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-H5N53WVF.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-PUO554VI.js.map": {
15562
+ "dist/chunk-SCKPBPAN.js.map": {
15574
15563
  "imports": [],
15575
15564
  "exports": [],
15576
15565
  "inputs": {},
15577
- "bytes": 3476476
15566
+ "bytes": 3477799
15578
15567
  },
15579
- "dist/chunk-PUO554VI.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-LGGWBBBT.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": 17897
18690
+ "bytesInOutput": 17959
18702
18691
  },
18703
18692
  "../../node_modules/lodash/lodash.js": {
18704
18693
  "bytesInOutput": 224289
@@ -18725,7 +18714,7 @@
18725
18714
  "bytesInOutput": 615
18726
18715
  },
18727
18716
  "../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js": {
18728
- "bytesInOutput": 3842
18717
+ "bytesInOutput": 3839
18729
18718
  },
18730
18719
  "../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js": {
18731
18720
  "bytesInOutput": 7632
@@ -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
@@ -19037,7 +19026,7 @@
19037
19026
  "bytesInOutput": 3306
19038
19027
  },
19039
19028
  "src/Prebuilt/components/AudioVideoToggle.tsx": {
19040
- "bytesInOutput": 13563
19029
+ "bytesInOutput": 13687
19041
19030
  },
19042
19031
  "src/Prebuilt/components/IconButtonWithOptions/IconButtonWithOptions.tsx": {
19043
19032
  "bytesInOutput": 3293
@@ -19169,7 +19158,7 @@
19169
19158
  "bytesInOutput": 347
19170
19159
  },
19171
19160
  "src/Prebuilt/components/PIP/PIPChatOption.tsx": {
19172
- "bytesInOutput": 621
19161
+ "bytesInOutput": 626
19173
19162
  },
19174
19163
  "src/Prebuilt/components/PIP/PIPWindow.tsx": {
19175
19164
  "bytesInOutput": 274
@@ -19232,7 +19221,7 @@
19232
19221
  "bytesInOutput": 9486
19233
19222
  },
19234
19223
  "../hms-video-store/dist/index.js": {
19235
- "bytesInOutput": 50049
19224
+ "bytesInOutput": 50057
19236
19225
  },
19237
19226
  "../../node_modules/reselect/es/index.js": {
19238
19227
  "bytesInOutput": 2539
@@ -19250,7 +19239,7 @@
19250
19239
  "bytesInOutput": 22682
19251
19240
  },
19252
19241
  "../../node_modules/webrtc-adapter/src/js/chrome/getusermedia.js": {
19253
- "bytesInOutput": 6080
19242
+ "bytesInOutput": 6082
19254
19243
  },
19255
19244
  "../../node_modules/webrtc-adapter/src/js/chrome/getdisplaymedia.js": {
19256
19245
  "bytesInOutput": 1256
@@ -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-2785-Z6KRcy3f7V6p/190dadffa730/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": 1445688
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-2785-Z6KRcy3f7V6p/190dadffaf02/tldraw.css": {
19811
+ "../../../../../../../tmp/tmp-2795-fw31Lj57HETD/190fe5a3d7e3/tldraw.css": {
19826
19812
  "bytesInOutput": 75223
19827
19813
  },
19828
- "../../../../../../../tmp/tmp-2785-Z6KRcy3f7V6p/190dadffa730/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-H5N53WVF.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-H5N53WVF.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-2785-Z6KRcy3f7V6p/190dadffaf02/tldraw.css": {
19880
+ "../../../../../../../tmp/tmp-2795-fw31Lj57HETD/190fe5a3d7e3/tldraw.css": {
19895
19881
  "bytesInOutput": 75223
19896
19882
  },
19897
- "../../../../../../../tmp/tmp-2785-Z6KRcy3f7V6p/190dadffa730/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.16",
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.16",
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.16",
81
- "@100mslive/hms-whiteboard": "0.0.6",
82
- "@100mslive/react-icons": "0.10.16",
83
- "@100mslive/react-sdk": "0.10.16",
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": "580d445154522296643833e00082e4f2c9f0103b"
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) {
@@ -263,7 +263,13 @@ const AudioSettings = ({ onClick }: { onClick: () => void }) => {
263
263
  );
264
264
  };
265
265
  export const AudioVideoToggle = ({ hideOptions = false }: { hideOptions?: boolean }) => {
266
- const { allDevices, selectedDeviceIDs, updateDevice } = useDevices();
266
+ const { allDevices, selectedDeviceIDs, updateDevice } = useDevices(error => {
267
+ ToastManager.addToast({
268
+ title: error.message,
269
+ variant: 'error',
270
+ duration: 2000,
271
+ });
272
+ });
267
273
  const { videoInput, audioInput, audioOutput } = allDevices;
268
274
  const localPeer = useHMSStore(selectLocalPeer);
269
275
  const { isLocalVideoEnabled, isLocalAudioEnabled, toggleAudio, toggleVideo } = useAVToggle();
@@ -8,7 +8,7 @@ export const PIPChatOption = ({ openChat, showPIPChat }: { openChat: () => void;
8
8
  return <></>;
9
9
  }
10
10
  return (
11
- <Dropdown.Item onClick={openChat} data-testid="brb_btn">
11
+ <Dropdown.Item onClick={openChat} data-testid="pip_chat_btn">
12
12
  <ExternalLinkIcon height={18} width={18} style={{ padding: '0 $2' }} />
13
13
  <Text variant="sm" css={{ ml: '$4', color: '$on_surface_high' }}>
14
14
  Pop out Chat
@@ -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[];