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

Sign up to get free protection for your applications and to get access to all the features.
@@ -4332,7 +4332,7 @@
4332
4332
  "format": "esm"
4333
4333
  },
4334
4334
  "src/Prebuilt/components/PIP/PIPChat.tsx": {
4335
- "bytes": 9811,
4335
+ "bytes": 10270,
4336
4336
  "imports": [
4337
4337
  {
4338
4338
  "path": "react",
@@ -6674,13 +6674,18 @@
6674
6674
  "format": "esm"
6675
6675
  },
6676
6676
  "src/Prebuilt/components/VirtualBackground/VBToggle.tsx": {
6677
- "bytes": 1353,
6677
+ "bytes": 1791,
6678
6678
  "imports": [
6679
6679
  {
6680
6680
  "path": "react",
6681
6681
  "kind": "import-statement",
6682
6682
  "external": true
6683
6683
  },
6684
+ {
6685
+ "path": "@100mslive/hms-virtual-background",
6686
+ "kind": "import-statement",
6687
+ "external": true
6688
+ },
6684
6689
  {
6685
6690
  "path": "@100mslive/react-sdk",
6686
6691
  "kind": "import-statement",
@@ -6706,6 +6711,11 @@
6706
6711
  "kind": "import-statement",
6707
6712
  "original": "../../IconButton"
6708
6713
  },
6714
+ {
6715
+ "path": "src/Prebuilt/components/VirtualBackground/VBHandler.tsx",
6716
+ "kind": "import-statement",
6717
+ "original": "./VBHandler"
6718
+ },
6709
6719
  {
6710
6720
  "path": "src/Prebuilt/components/AppData/useSidepane.js",
6711
6721
  "kind": "import-statement",
@@ -11277,7 +11287,7 @@
11277
11287
  ],
11278
11288
  "format": "esm"
11279
11289
  },
11280
- "../../../../../../../tmp/tmp-2832-c0B4C98IX1ak/1916e2c4b922/tldraw.css": {
11290
+ "../../../../../../../tmp/tmp-2875-5tcAYoV7E17q/191700008891/tldraw.css": {
11281
11291
  "bytes": 80111,
11282
11292
  "imports": [
11283
11293
  {
@@ -11327,7 +11337,7 @@
11327
11337
  }
11328
11338
  ]
11329
11339
  },
11330
- "../../../../../../../tmp/tmp-2832-c0B4C98IX1ak/1916e2c4b2a1/index.css": {
11340
+ "../../../../../../../tmp/tmp-2875-5tcAYoV7E17q/191700008300/index.css": {
11331
11341
  "bytes": 597,
11332
11342
  "imports": [
11333
11343
  {
@@ -11336,7 +11346,7 @@
11336
11346
  "external": true
11337
11347
  },
11338
11348
  {
11339
- "path": "../../../../../../../tmp/tmp-2832-c0B4C98IX1ak/1916e2c4b922/tldraw.css",
11349
+ "path": "../../../../../../../tmp/tmp-2875-5tcAYoV7E17q/191700008891/tldraw.css",
11340
11350
  "kind": "import-rule",
11341
11351
  "original": "@tldraw/tldraw/tldraw.css"
11342
11352
  }
@@ -11411,7 +11421,7 @@
11411
11421
  "original": "../../common/constants"
11412
11422
  },
11413
11423
  {
11414
- "path": "../../../../../../../tmp/tmp-2832-c0B4C98IX1ak/1916e2c4b2a1/index.css",
11424
+ "path": "../../../../../../../tmp/tmp-2875-5tcAYoV7E17q/191700008300/index.css",
11415
11425
  "kind": "import-statement",
11416
11426
  "original": "@100mslive/hms-whiteboard/index.css"
11417
11427
  },
@@ -15211,7 +15221,7 @@
15211
15221
  "dist/index.js": {
15212
15222
  "imports": [
15213
15223
  {
15214
- "path": "dist/chunk-O3I4DN7I.js",
15224
+ "path": "dist/chunk-NC3PKPDD.js",
15215
15225
  "kind": "import-statement"
15216
15226
  }
15217
15227
  ],
@@ -15287,16 +15297,16 @@
15287
15297
  "inputs": {},
15288
15298
  "bytes": 1882
15289
15299
  },
15290
- "dist/HLSView-LJQ65VXH.js.map": {
15300
+ "dist/HLSView-6KUW45BA.js.map": {
15291
15301
  "imports": [],
15292
15302
  "exports": [],
15293
15303
  "inputs": {},
15294
15304
  "bytes": 100275
15295
15305
  },
15296
- "dist/HLSView-LJQ65VXH.js": {
15306
+ "dist/HLSView-6KUW45BA.js": {
15297
15307
  "imports": [
15298
15308
  {
15299
- "path": "dist/chunk-O3I4DN7I.js",
15309
+ "path": "dist/chunk-NC3PKPDD.js",
15300
15310
  "kind": "import-statement"
15301
15311
  },
15302
15312
  {
@@ -15474,7 +15484,7 @@
15474
15484
  "default"
15475
15485
  ],
15476
15486
  "entryPoint": "src/Prebuilt/layouts/HLSView.jsx",
15477
- "cssBundle": "dist/HLSView-6CQOPAJJ.css",
15487
+ "cssBundle": "dist/HLSView-MI7WHLIB.css",
15478
15488
  "inputs": {
15479
15489
  "src/Prebuilt/layouts/HLSView.jsx": {
15480
15490
  "bytesInOutput": 27671
@@ -15533,13 +15543,13 @@
15533
15543
  },
15534
15544
  "bytes": 61702
15535
15545
  },
15536
- "dist/chunk-O3I4DN7I.js.map": {
15546
+ "dist/chunk-NC3PKPDD.js.map": {
15537
15547
  "imports": [],
15538
15548
  "exports": [],
15539
15549
  "inputs": {},
15540
- "bytes": 3483285
15550
+ "bytes": 3484873
15541
15551
  },
15542
- "dist/chunk-O3I4DN7I.js": {
15552
+ "dist/chunk-NC3PKPDD.js": {
15543
15553
  "imports": [
15544
15554
  {
15545
15555
  "path": "react",
@@ -16886,6 +16896,11 @@
16886
16896
  "kind": "import-statement",
16887
16897
  "external": true
16888
16898
  },
16899
+ {
16900
+ "path": "@100mslive/hms-virtual-background",
16901
+ "kind": "import-statement",
16902
+ "external": true
16903
+ },
16889
16904
  {
16890
16905
  "path": "@100mslive/react-sdk",
16891
16906
  "kind": "import-statement",
@@ -18072,7 +18087,7 @@
18072
18087
  "external": true
18073
18088
  },
18074
18089
  {
18075
- "path": "dist/HLSView-LJQ65VXH.js",
18090
+ "path": "dist/HLSView-6KUW45BA.js",
18076
18091
  "kind": "dynamic-import"
18077
18092
  },
18078
18093
  {
@@ -18646,7 +18661,7 @@
18646
18661
  ],
18647
18662
  "inputs": {
18648
18663
  "<define:process.env>": {
18649
- "bytesInOutput": 17966
18664
+ "bytesInOutput": 18005
18650
18665
  },
18651
18666
  "../../node_modules/lodash/lodash.js": {
18652
18667
  "bytesInOutput": 224289
@@ -19093,7 +19108,7 @@
19093
19108
  "bytesInOutput": 2509
19094
19109
  },
19095
19110
  "src/Prebuilt/components/PIP/PIPChat.tsx": {
19096
- "bytesInOutput": 9621
19111
+ "bytesInOutput": 10026
19097
19112
  },
19098
19113
  "src/TextArea/index.tsx": {
19099
19114
  "bytesInOutput": 27
@@ -19273,7 +19288,7 @@
19273
19288
  "bytesInOutput": 823
19274
19289
  },
19275
19290
  "src/Prebuilt/components/VirtualBackground/VBToggle.tsx": {
19276
- "bytesInOutput": 1280
19291
+ "bytesInOutput": 1805
19277
19292
  },
19278
19293
  "src/Prebuilt/components/Footer/ChatToggle.tsx": {
19279
19294
  "bytesInOutput": 1564
@@ -19542,7 +19557,7 @@
19542
19557
  "src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx": {
19543
19558
  "bytesInOutput": 2830
19544
19559
  },
19545
- "../../../../../../../tmp/tmp-2832-c0B4C98IX1ak/1916e2c4b2a1/index.css": {
19560
+ "../../../../../../../tmp/tmp-2875-5tcAYoV7E17q/191700008300/index.css": {
19546
19561
  "bytesInOutput": 0
19547
19562
  },
19548
19563
  "src/Prebuilt/common/PeersSorter.ts": {
@@ -19702,7 +19717,7 @@
19702
19717
  "bytesInOutput": 2628
19703
19718
  }
19704
19719
  },
19705
- "bytes": 1441928
19720
+ "bytes": 1442897
19706
19721
  },
19707
19722
  "dist/index.css.map": {
19708
19723
  "imports": [],
@@ -19764,22 +19779,22 @@
19764
19779
  }
19765
19780
  ],
19766
19781
  "inputs": {
19767
- "../../../../../../../tmp/tmp-2832-c0B4C98IX1ak/1916e2c4b922/tldraw.css": {
19782
+ "../../../../../../../tmp/tmp-2875-5tcAYoV7E17q/191700008891/tldraw.css": {
19768
19783
  "bytesInOutput": 75223
19769
19784
  },
19770
- "../../../../../../../tmp/tmp-2832-c0B4C98IX1ak/1916e2c4b2a1/index.css": {
19785
+ "../../../../../../../tmp/tmp-2875-5tcAYoV7E17q/191700008300/index.css": {
19771
19786
  "bytesInOutput": 401
19772
19787
  }
19773
19788
  },
19774
19789
  "bytes": 75901
19775
19790
  },
19776
- "dist/HLSView-6CQOPAJJ.css.map": {
19791
+ "dist/HLSView-MI7WHLIB.css.map": {
19777
19792
  "imports": [],
19778
19793
  "exports": [],
19779
19794
  "inputs": {},
19780
19795
  "bytes": 122402
19781
19796
  },
19782
- "dist/HLSView-6CQOPAJJ.css": {
19797
+ "dist/HLSView-MI7WHLIB.css": {
19783
19798
  "imports": [
19784
19799
  {
19785
19800
  "path": "https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap",
@@ -19833,10 +19848,10 @@
19833
19848
  }
19834
19849
  ],
19835
19850
  "inputs": {
19836
- "../../../../../../../tmp/tmp-2832-c0B4C98IX1ak/1916e2c4b922/tldraw.css": {
19851
+ "../../../../../../../tmp/tmp-2875-5tcAYoV7E17q/191700008891/tldraw.css": {
19837
19852
  "bytesInOutput": 75223
19838
19853
  },
19839
- "../../../../../../../tmp/tmp-2832-c0B4C98IX1ak/1916e2c4b2a1/index.css": {
19854
+ "../../../../../../../tmp/tmp-2875-5tcAYoV7E17q/191700008300/index.css": {
19840
19855
  "bytesInOutput": 401
19841
19856
  }
19842
19857
  },
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "prebuilt",
11
11
  "roomkit"
12
12
  ],
13
- "version": "0.3.19-alpha.0",
13
+ "version": "0.3.19-alpha.1",
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.19-alpha.0",
78
+ "@100mslive/hls-player": "0.3.19-alpha.1",
79
79
  "@100mslive/hms-noise-cancellation": "0.0.1",
80
- "@100mslive/hms-virtual-background": "1.13.19-alpha.0",
81
- "@100mslive/hms-whiteboard": "0.0.9-alpha.0",
82
- "@100mslive/react-icons": "0.10.19-alpha.0",
83
- "@100mslive/react-sdk": "0.10.19-alpha.0",
80
+ "@100mslive/hms-virtual-background": "1.13.19-alpha.1",
81
+ "@100mslive/hms-whiteboard": "0.0.9-alpha.1",
82
+ "@100mslive/react-icons": "0.10.19-alpha.1",
83
+ "@100mslive/react-sdk": "0.10.19-alpha.1",
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": "5de66a04a026c41273f2e5c7726569cf75ee4bc4"
120
+ "gitHead": "4e76816ac6791d45d6099d5ecf81b9b730bbb9db"
121
121
  }
@@ -102,9 +102,21 @@ export const PIPChat = () => {
102
102
  )}
103
103
  {filteredMessages.length === 0 ? (
104
104
  <div
105
- style={{ display: 'flex', height: '100%', width: '100%', alignItems: 'center', justifyContent: 'center' }}
105
+ style={{
106
+ display: 'flex',
107
+ flexDirection: 'column',
108
+ height: '100%',
109
+ width: '100%',
110
+ alignItems: 'center',
111
+ justifyContent: 'center',
112
+ }}
106
113
  >
107
- <Text>No messages here yet</Text>
114
+ <Text variant="h5" css={{ mt: '$8', c: '$on_surface_high' }}>
115
+ {canSendChatMessages ? 'Start a conversation' : 'No messages yet'}
116
+ </Text>
117
+ <Text variant="sm" style={{ maxWidth: '80%', textAlign: 'center', marginTop: '4px' }}>
118
+ There are no messages here yet. Start a conversation by sending a message.
119
+ </Text>
108
120
  </div>
109
121
  ) : (
110
122
  filteredMessages.map(message => (
@@ -1,15 +1,19 @@
1
- import React from 'react';
1
+ import React, { useEffect } from 'react';
2
+ import { HMSVirtualBackgroundTypes } from '@100mslive/hms-virtual-background';
2
3
  import {
3
4
  selectAppData,
4
5
  selectIsEffectsEnabled,
5
6
  selectIsLocalVideoEnabled,
6
7
  selectIsVBEnabled,
8
+ useAVToggle,
9
+ useHMSActions,
7
10
  useHMSStore,
8
11
  } from '@100mslive/react-sdk';
9
12
  import { VirtualBackgroundIcon } from '@100mslive/react-icons';
10
13
  import { Loading } from '../../../Loading';
11
14
  import { Tooltip } from '../../../Tooltip';
12
15
  import IconButton from '../../IconButton';
16
+ import { VBHandler } from './VBHandler';
13
17
  // @ts-ignore
14
18
  import { useIsSidepaneTypeOpen, useSidepaneToggle } from '../AppData/useSidepane';
15
19
  import { APP_DATA, isSafari, SIDE_PANE_OPTIONS } from '../../common/constants';
@@ -21,6 +25,15 @@ export const VBToggle = () => {
21
25
  const isVBEnabled = useHMSStore(selectIsVBEnabled);
22
26
  const isEffectsEnabled = useHMSStore(selectIsEffectsEnabled);
23
27
  const loadingEffects = useHMSStore(selectAppData(APP_DATA.loadingEffects));
28
+ const hmsActions = useHMSActions();
29
+ const { toggleVideo } = useAVToggle();
30
+
31
+ useEffect(() => {
32
+ if (!toggleVideo) {
33
+ VBHandler?.reset();
34
+ hmsActions.setAppData(APP_DATA.background, HMSVirtualBackgroundTypes.NONE);
35
+ }
36
+ }, [hmsActions, toggleVideo]);
24
37
 
25
38
  if (!isVideoOn || (!isEffectsEnabled && isSafari) || !isVBEnabled) {
26
39
  return null;