@100mslive/roomkit-react 0.3.24-alpha.6 → 0.3.24-alpha.7

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.
@@ -141,7 +141,7 @@
141
141
  "format": "esm"
142
142
  },
143
143
  "src/Layout/Flex.tsx": {
144
- "bytes": 1398,
144
+ "bytes": 1399,
145
145
  "imports": [
146
146
  {
147
147
  "path": "src/Theme/index.tsx",
@@ -2525,7 +2525,7 @@
2525
2525
  "format": "esm"
2526
2526
  },
2527
2527
  "src/Prebuilt/AppStateContext.tsx": {
2528
- "bytes": 3590,
2528
+ "bytes": 3767,
2529
2529
  "imports": [
2530
2530
  {
2531
2531
  "path": "react",
@@ -2537,6 +2537,11 @@
2537
2537
  "kind": "import-statement",
2538
2538
  "external": true
2539
2539
  },
2540
+ {
2541
+ "path": "@100mslive/hms-virtual-background",
2542
+ "kind": "import-statement",
2543
+ "external": true
2544
+ },
2540
2545
  {
2541
2546
  "path": "ts-pattern",
2542
2547
  "kind": "import-statement",
@@ -11316,7 +11321,7 @@
11316
11321
  ],
11317
11322
  "format": "esm"
11318
11323
  },
11319
- "../../../../../../../tmp/tmp-2865-T2DnBApIb1wH/192e270d7723/tldraw.css": {
11324
+ "../../../../../../../tmp/tmp-2885-KMtbR00Gpy3V/1930ab8ed512/tldraw.css": {
11320
11325
  "bytes": 80111,
11321
11326
  "imports": [
11322
11327
  {
@@ -11366,7 +11371,7 @@
11366
11371
  }
11367
11372
  ]
11368
11373
  },
11369
- "../../../../../../../tmp/tmp-2865-T2DnBApIb1wH/192e270d70d1/index.css": {
11374
+ "../../../../../../../tmp/tmp-2885-KMtbR00Gpy3V/1930ab8ecdf0/index.css": {
11370
11375
  "bytes": 597,
11371
11376
  "imports": [
11372
11377
  {
@@ -11375,7 +11380,7 @@
11375
11380
  "external": true
11376
11381
  },
11377
11382
  {
11378
- "path": "../../../../../../../tmp/tmp-2865-T2DnBApIb1wH/192e270d7723/tldraw.css",
11383
+ "path": "../../../../../../../tmp/tmp-2885-KMtbR00Gpy3V/1930ab8ed512/tldraw.css",
11379
11384
  "kind": "import-rule",
11380
11385
  "original": "@tldraw/tldraw/tldraw.css"
11381
11386
  }
@@ -11450,7 +11455,7 @@
11450
11455
  "original": "../../common/constants"
11451
11456
  },
11452
11457
  {
11453
- "path": "../../../../../../../tmp/tmp-2865-T2DnBApIb1wH/192e270d70d1/index.css",
11458
+ "path": "../../../../../../../tmp/tmp-2885-KMtbR00Gpy3V/1930ab8ecdf0/index.css",
11454
11459
  "kind": "import-statement",
11455
11460
  "original": "@100mslive/hms-whiteboard/index.css"
11456
11461
  },
@@ -14591,7 +14596,7 @@
14591
14596
  "format": "esm"
14592
14597
  },
14593
14598
  "src/Prebuilt/App.tsx": {
14594
- "bytes": 11054,
14599
+ "bytes": 10957,
14595
14600
  "imports": [
14596
14601
  {
14597
14602
  "path": "react",
@@ -14678,11 +14683,6 @@
14678
14683
  "kind": "import-statement",
14679
14684
  "original": "./components/Toast/ToastContainer"
14680
14685
  },
14681
- {
14682
- "path": "src/Prebuilt/components/VirtualBackground/VBHandler.tsx",
14683
- "kind": "import-statement",
14684
- "original": "./components/VirtualBackground/VBHandler"
14685
- },
14686
14686
  {
14687
14687
  "path": "src/Prebuilt/layouts/Sheet.tsx",
14688
14688
  "kind": "import-statement",
@@ -15719,7 +15719,7 @@
15719
15719
  "imports": [],
15720
15720
  "exports": [],
15721
15721
  "inputs": {},
15722
- "bytes": 3621722
15722
+ "bytes": 3621854
15723
15723
  },
15724
15724
  "dist/index.cjs.js": {
15725
15725
  "imports": [
@@ -16167,6 +16167,11 @@
16167
16167
  "kind": "require-call",
16168
16168
  "external": true
16169
16169
  },
16170
+ {
16171
+ "path": "@100mslive/hms-virtual-background",
16172
+ "kind": "require-call",
16173
+ "external": true
16174
+ },
16170
16175
  {
16171
16176
  "path": "ts-pattern",
16172
16177
  "kind": "require-call",
@@ -19052,7 +19057,7 @@
19052
19057
  "cssBundle": "dist/index.cjs.css",
19053
19058
  "inputs": {
19054
19059
  "<define:process.env>": {
19055
- "bytesInOutput": 18008
19060
+ "bytesInOutput": 18021
19056
19061
  },
19057
19062
  "../../node_modules/lodash/lodash.js": {
19058
19063
  "bytesInOutput": 224296
@@ -19121,7 +19126,7 @@
19121
19126
  "bytesInOutput": 27
19122
19127
  },
19123
19128
  "src/Layout/Flex.tsx": {
19124
- "bytesInOutput": 1295
19129
+ "bytesInOutput": 1296
19125
19130
  },
19126
19131
  "src/Theme/stitches.config.ts": {
19127
19132
  "bytesInOutput": 1622
@@ -19334,7 +19339,7 @@
19334
19339
  "bytesInOutput": 925
19335
19340
  },
19336
19341
  "src/Prebuilt/App.tsx": {
19337
- "bytesInOutput": 8561
19342
+ "bytesInOutput": 8534
19338
19343
  },
19339
19344
  "src/Prebuilt/components/AppData/AppData.tsx": {
19340
19345
  "bytesInOutput": 6918
@@ -19382,7 +19387,7 @@
19382
19387
  "bytesInOutput": 599
19383
19388
  },
19384
19389
  "src/Prebuilt/AppStateContext.tsx": {
19385
- "bytesInOutput": 3384
19390
+ "bytesInOutput": 3592
19386
19391
  },
19387
19392
  "src/Prebuilt/components/VirtualBackground/VBHandler.tsx": {
19388
19393
  "bytesInOutput": 4676
@@ -19930,7 +19935,7 @@
19930
19935
  "src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx": {
19931
19936
  "bytesInOutput": 3051
19932
19937
  },
19933
- "../../../../../../../tmp/tmp-2865-T2DnBApIb1wH/192e270d70d1/index.css": {
19938
+ "../../../../../../../tmp/tmp-2885-KMtbR00Gpy3V/1930ab8ecdf0/index.css": {
19934
19939
  "bytesInOutput": 0
19935
19940
  },
19936
19941
  "src/Prebuilt/common/PeersSorter.ts": {
@@ -20165,7 +20170,7 @@
20165
20170
  "bytesInOutput": 2777
20166
20171
  }
20167
20172
  },
20168
- "bytes": 1505476
20173
+ "bytes": 1505671
20169
20174
  },
20170
20175
  "dist/index.cjs.css.map": {
20171
20176
  "imports": [],
@@ -20227,10 +20232,10 @@
20227
20232
  }
20228
20233
  ],
20229
20234
  "inputs": {
20230
- "../../../../../../../tmp/tmp-2865-T2DnBApIb1wH/192e270d7723/tldraw.css": {
20235
+ "../../../../../../../tmp/tmp-2885-KMtbR00Gpy3V/1930ab8ed512/tldraw.css": {
20231
20236
  "bytesInOutput": 75223
20232
20237
  },
20233
- "../../../../../../../tmp/tmp-2865-T2DnBApIb1wH/192e270d70d1/index.css": {
20238
+ "../../../../../../../tmp/tmp-2885-KMtbR00Gpy3V/1930ab8ecdf0/index.css": {
20234
20239
  "bytesInOutput": 401
20235
20240
  }
20236
20241
  },
@@ -141,7 +141,7 @@
141
141
  "format": "esm"
142
142
  },
143
143
  "src/Layout/Flex.tsx": {
144
- "bytes": 1398,
144
+ "bytes": 1399,
145
145
  "imports": [
146
146
  {
147
147
  "path": "src/Theme/index.tsx",
@@ -2525,7 +2525,7 @@
2525
2525
  "format": "esm"
2526
2526
  },
2527
2527
  "src/Prebuilt/AppStateContext.tsx": {
2528
- "bytes": 3590,
2528
+ "bytes": 3767,
2529
2529
  "imports": [
2530
2530
  {
2531
2531
  "path": "react",
@@ -2537,6 +2537,11 @@
2537
2537
  "kind": "import-statement",
2538
2538
  "external": true
2539
2539
  },
2540
+ {
2541
+ "path": "@100mslive/hms-virtual-background",
2542
+ "kind": "import-statement",
2543
+ "external": true
2544
+ },
2540
2545
  {
2541
2546
  "path": "ts-pattern",
2542
2547
  "kind": "import-statement",
@@ -11316,7 +11321,7 @@
11316
11321
  ],
11317
11322
  "format": "esm"
11318
11323
  },
11319
- "../../../../../../../tmp/tmp-2865-lifFYM5v5Eng/192e270d7152/tldraw.css": {
11324
+ "../../../../../../../tmp/tmp-2885-yujtl5KEm6Ck/1930ab8edca3/tldraw.css": {
11320
11325
  "bytes": 80111,
11321
11326
  "imports": [
11322
11327
  {
@@ -11366,7 +11371,7 @@
11366
11371
  }
11367
11372
  ]
11368
11373
  },
11369
- "../../../../../../../tmp/tmp-2865-lifFYM5v5Eng/192e270d6a60/index.css": {
11374
+ "../../../../../../../tmp/tmp-2885-yujtl5KEm6Ck/1930ab8ed401/index.css": {
11370
11375
  "bytes": 597,
11371
11376
  "imports": [
11372
11377
  {
@@ -11375,7 +11380,7 @@
11375
11380
  "external": true
11376
11381
  },
11377
11382
  {
11378
- "path": "../../../../../../../tmp/tmp-2865-lifFYM5v5Eng/192e270d7152/tldraw.css",
11383
+ "path": "../../../../../../../tmp/tmp-2885-yujtl5KEm6Ck/1930ab8edca3/tldraw.css",
11379
11384
  "kind": "import-rule",
11380
11385
  "original": "@tldraw/tldraw/tldraw.css"
11381
11386
  }
@@ -11450,7 +11455,7 @@
11450
11455
  "original": "../../common/constants"
11451
11456
  },
11452
11457
  {
11453
- "path": "../../../../../../../tmp/tmp-2865-lifFYM5v5Eng/192e270d6a60/index.css",
11458
+ "path": "../../../../../../../tmp/tmp-2885-yujtl5KEm6Ck/1930ab8ed401/index.css",
11454
11459
  "kind": "import-statement",
11455
11460
  "original": "@100mslive/hms-whiteboard/index.css"
11456
11461
  },
@@ -14591,7 +14596,7 @@
14591
14596
  "format": "esm"
14592
14597
  },
14593
14598
  "src/Prebuilt/App.tsx": {
14594
- "bytes": 11054,
14599
+ "bytes": 10957,
14595
14600
  "imports": [
14596
14601
  {
14597
14602
  "path": "react",
@@ -14678,11 +14683,6 @@
14678
14683
  "kind": "import-statement",
14679
14684
  "original": "./components/Toast/ToastContainer"
14680
14685
  },
14681
- {
14682
- "path": "src/Prebuilt/components/VirtualBackground/VBHandler.tsx",
14683
- "kind": "import-statement",
14684
- "original": "./components/VirtualBackground/VBHandler"
14685
- },
14686
14686
  {
14687
14687
  "path": "src/Prebuilt/layouts/Sheet.tsx",
14688
14688
  "kind": "import-statement",
@@ -15719,7 +15719,7 @@
15719
15719
  "imports": [],
15720
15720
  "exports": [],
15721
15721
  "inputs": {},
15722
- "bytes": 3661666
15722
+ "bytes": 3661869
15723
15723
  },
15724
15724
  "dist/index.js": {
15725
15725
  "imports": [
@@ -16167,6 +16167,11 @@
16167
16167
  "kind": "import-statement",
16168
16168
  "external": true
16169
16169
  },
16170
+ {
16171
+ "path": "@100mslive/hms-virtual-background",
16172
+ "kind": "import-statement",
16173
+ "external": true
16174
+ },
16170
16175
  {
16171
16176
  "path": "ts-pattern",
16172
16177
  "kind": "import-statement",
@@ -19118,7 +19123,7 @@
19118
19123
  "cssBundle": "dist/index.css",
19119
19124
  "inputs": {
19120
19125
  "<define:process.env>": {
19121
- "bytesInOutput": 18008
19126
+ "bytesInOutput": 18021
19122
19127
  },
19123
19128
  "../../node_modules/lodash/lodash.js": {
19124
19129
  "bytesInOutput": 224291
@@ -19187,7 +19192,7 @@
19187
19192
  "bytesInOutput": 27
19188
19193
  },
19189
19194
  "src/Layout/Flex.tsx": {
19190
- "bytesInOutput": 1295
19195
+ "bytesInOutput": 1296
19191
19196
  },
19192
19197
  "src/Theme/stitches.config.ts": {
19193
19198
  "bytesInOutput": 1564
@@ -19400,7 +19405,7 @@
19400
19405
  "bytesInOutput": 887
19401
19406
  },
19402
19407
  "src/Prebuilt/App.tsx": {
19403
- "bytesInOutput": 8061
19408
+ "bytesInOutput": 8034
19404
19409
  },
19405
19410
  "src/Prebuilt/components/AppData/AppData.tsx": {
19406
19411
  "bytesInOutput": 6633
@@ -19448,7 +19453,7 @@
19448
19453
  "bytesInOutput": 577
19449
19454
  },
19450
19455
  "src/Prebuilt/AppStateContext.tsx": {
19451
- "bytesInOutput": 3017
19456
+ "bytesInOutput": 3223
19452
19457
  },
19453
19458
  "src/Prebuilt/components/VirtualBackground/VBHandler.tsx": {
19454
19459
  "bytesInOutput": 4450
@@ -19996,7 +20001,7 @@
19996
20001
  "src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx": {
19997
20002
  "bytesInOutput": 2830
19998
20003
  },
19999
- "../../../../../../../tmp/tmp-2865-lifFYM5v5Eng/192e270d6a60/index.css": {
20004
+ "../../../../../../../tmp/tmp-2885-yujtl5KEm6Ck/1930ab8ed401/index.css": {
20000
20005
  "bytesInOutput": 0
20001
20006
  },
20002
20007
  "src/Prebuilt/common/PeersSorter.ts": {
@@ -20231,7 +20236,7 @@
20231
20236
  "bytesInOutput": 2632
20232
20237
  }
20233
20238
  },
20234
- "bytes": 1450520
20239
+ "bytes": 1450713
20235
20240
  },
20236
20241
  "dist/index.css.map": {
20237
20242
  "imports": [],
@@ -20293,10 +20298,10 @@
20293
20298
  }
20294
20299
  ],
20295
20300
  "inputs": {
20296
- "../../../../../../../tmp/tmp-2865-lifFYM5v5Eng/192e270d7152/tldraw.css": {
20301
+ "../../../../../../../tmp/tmp-2885-yujtl5KEm6Ck/1930ab8edca3/tldraw.css": {
20297
20302
  "bytesInOutput": 75223
20298
20303
  },
20299
- "../../../../../../../tmp/tmp-2865-lifFYM5v5Eng/192e270d6a60/index.css": {
20304
+ "../../../../../../../tmp/tmp-2885-yujtl5KEm6Ck/1930ab8ed401/index.css": {
20300
20305
  "bytesInOutput": 401
20301
20306
  }
20302
20307
  },
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "prebuilt",
11
11
  "roomkit"
12
12
  ],
13
- "version": "0.3.24-alpha.6",
13
+ "version": "0.3.24-alpha.7",
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.24-alpha.6",
78
+ "@100mslive/hls-player": "0.3.24-alpha.7",
79
79
  "@100mslive/hms-noise-cancellation": "0.0.1",
80
- "@100mslive/hms-virtual-background": "1.13.24-alpha.6",
81
- "@100mslive/hms-whiteboard": "0.0.14-alpha.6",
82
- "@100mslive/react-icons": "0.10.24-alpha.6",
83
- "@100mslive/react-sdk": "0.10.24-alpha.6",
80
+ "@100mslive/hms-virtual-background": "1.13.24-alpha.7",
81
+ "@100mslive/hms-whiteboard": "0.0.14-alpha.7",
82
+ "@100mslive/react-icons": "0.10.24-alpha.7",
83
+ "@100mslive/react-sdk": "0.10.24-alpha.7",
84
84
  "@100mslive/types-prebuilt": "0.12.12",
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": "bddfa9de9e715b0daebe639ecd08454da5080576"
120
+ "gitHead": "8198b4df726edf43ed865408a68720e9bd4c9174"
121
121
  }
@@ -48,7 +48,7 @@ export const Flex = styled('div', {
48
48
  baseline: {
49
49
  alignItems: 'baseline',
50
50
  },
51
- strech: {
51
+ stretch: {
52
52
  alignItems: 'stretch',
53
53
  },
54
54
  },
@@ -27,7 +27,6 @@ import { PIPProvider } from './components/PIP/PIPProvider';
27
27
  import { PreviewScreen } from './components/Preview/PreviewScreen';
28
28
  // @ts-ignore: No implicit Any
29
29
  import { ToastContainer } from './components/Toast/ToastContainer';
30
- import { VBHandler } from './components/VirtualBackground/VBHandler';
31
30
  import { Sheet } from './layouts/Sheet';
32
31
  import { RoomLayoutContext, RoomLayoutProvider, useRoomLayout } from './provider/roomLayoutProvider';
33
32
  import { DialogContainerProvider } from '../context/DialogContext';
@@ -130,7 +129,6 @@ export const HMSPrebuilt = React.forwardRef<HMSPrebuiltRefType, HMSPrebuiltProps
130
129
  useEffect(() => {
131
130
  // leave room when component unmounts
132
131
  return () => {
133
- VBHandler.reset();
134
132
  reactiveStore?.current?.hmsActions.leave();
135
133
  };
136
134
  }, []);
@@ -1,5 +1,6 @@
1
1
  import React, { useContext, useEffect } from 'react';
2
2
  import { usePreviousDistinct } from 'react-use';
3
+ import { HMSVirtualBackgroundTypes } from '@100mslive/hms-virtual-background';
3
4
  import { match, P } from 'ts-pattern';
4
5
  import { HMSRoomState, selectRoomState, useHMSActions, useHMSStore } from '@100mslive/react-sdk';
5
6
  import { VBHandler } from './components/VirtualBackground/VBHandler';
@@ -79,6 +80,7 @@ export const useAppStateManager = () => {
79
80
  .otherwise(() => PrebuiltStates.MEETING);
80
81
  });
81
82
  VBHandler.reset();
83
+ hmsActions.setAppData(APP_DATA.background, HMSVirtualBackgroundTypes.NONE);
82
84
  redirectToLeave(1000); // to clear toasts after 1 second
83
85
  },
84
86
  )
@@ -88,6 +90,6 @@ export const useAppStateManager = () => {
88
90
  .otherwise(() => {
89
91
  // do nothing
90
92
  });
91
- }, [roomLayout, roomState, isLeaveScreenEnabled, isPreviewScreenEnabled, prevRoomState, redirectToLeave]);
93
+ }, [roomLayout, roomState, isLeaveScreenEnabled, isPreviewScreenEnabled, prevRoomState, redirectToLeave, hmsActions]);
92
94
  return { activeState, rejoin };
93
95
  };