@100mslive/roomkit-react 0.3.19-alpha.0 → 0.3.19-alpha.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{HLSView-LJQ65VXH.js → HLSView-BRZ2FW7O.js} +2 -2
- package/dist/{HLSView-6CQOPAJJ.css → HLSView-UXA322ED.css} +3 -3
- package/dist/{HLSView-6CQOPAJJ.css.map → HLSView-UXA322ED.css.map} +1 -1
- package/dist/{chunk-O3I4DN7I.js → chunk-KR2DZJO5.js} +585 -562
- package/dist/chunk-KR2DZJO5.js.map +7 -0
- package/dist/index.cjs.css +2 -2
- package/dist/index.cjs.css.map +1 -1
- package/dist/index.cjs.js +363 -343
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +41 -26
- package/dist/meta.esbuild.json +51 -36
- package/package.json +7 -7
- package/src/Prebuilt/components/PIP/PIPChat.tsx +14 -2
- package/src/Prebuilt/components/VirtualBackground/VBToggle.tsx +14 -1
- package/src/Video/Video.tsx +1 -1
- package/dist/chunk-O3I4DN7I.js.map +0 -7
- /package/dist/{HLSView-LJQ65VXH.js.map → HLSView-BRZ2FW7O.js.map} +0 -0
package/dist/meta.esbuild.json
CHANGED
@@ -1074,7 +1074,7 @@
|
|
1074
1074
|
"format": "esm"
|
1075
1075
|
},
|
1076
1076
|
"src/Video/Video.tsx": {
|
1077
|
-
"bytes":
|
1077
|
+
"bytes": 1585,
|
1078
1078
|
"imports": [
|
1079
1079
|
{
|
1080
1080
|
"path": "react",
|
@@ -4332,7 +4332,7 @@
|
|
4332
4332
|
"format": "esm"
|
4333
4333
|
},
|
4334
4334
|
"src/Prebuilt/components/PIP/PIPChat.tsx": {
|
4335
|
-
"bytes":
|
4335
|
+
"bytes": 10270,
|
4336
4336
|
"imports": [
|
4337
4337
|
{
|
4338
4338
|
"path": "react",
|
@@ -5729,7 +5729,7 @@
|
|
5729
5729
|
"format": "cjs"
|
5730
5730
|
},
|
5731
5731
|
"../hms-video-store/dist/index.js": {
|
5732
|
-
"bytes":
|
5732
|
+
"bytes": 364814,
|
5733
5733
|
"imports": [
|
5734
5734
|
{
|
5735
5735
|
"path": "../../node_modules/reselect/es/index.js",
|
@@ -6674,13 +6674,18 @@
|
|
6674
6674
|
"format": "esm"
|
6675
6675
|
},
|
6676
6676
|
"src/Prebuilt/components/VirtualBackground/VBToggle.tsx": {
|
6677
|
-
"bytes":
|
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-
|
11290
|
+
"../../../../../../../tmp/tmp-2790-CtzuXp4m7Mya/19197fbfd8e2/tldraw.css": {
|
11281
11291
|
"bytes": 80111,
|
11282
11292
|
"imports": [
|
11283
11293
|
{
|
@@ -11327,7 +11337,7 @@
|
|
11327
11337
|
}
|
11328
11338
|
]
|
11329
11339
|
},
|
11330
|
-
"../../../../../../../tmp/tmp-
|
11340
|
+
"../../../../../../../tmp/tmp-2790-CtzuXp4m7Mya/19197fbfd210/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-
|
11349
|
+
"path": "../../../../../../../tmp/tmp-2790-CtzuXp4m7Mya/19197fbfd8e2/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-
|
11424
|
+
"path": "../../../../../../../tmp/tmp-2790-CtzuXp4m7Mya/19197fbfd210/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-
|
15224
|
+
"path": "dist/chunk-KR2DZJO5.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-
|
15300
|
+
"dist/HLSView-BRZ2FW7O.js.map": {
|
15291
15301
|
"imports": [],
|
15292
15302
|
"exports": [],
|
15293
15303
|
"inputs": {},
|
15294
15304
|
"bytes": 100275
|
15295
15305
|
},
|
15296
|
-
"dist/HLSView-
|
15306
|
+
"dist/HLSView-BRZ2FW7O.js": {
|
15297
15307
|
"imports": [
|
15298
15308
|
{
|
15299
|
-
"path": "dist/chunk-
|
15309
|
+
"path": "dist/chunk-KR2DZJO5.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-
|
15487
|
+
"cssBundle": "dist/HLSView-UXA322ED.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-
|
15546
|
+
"dist/chunk-KR2DZJO5.js.map": {
|
15537
15547
|
"imports": [],
|
15538
15548
|
"exports": [],
|
15539
15549
|
"inputs": {},
|
15540
|
-
"bytes":
|
15550
|
+
"bytes": 3487223
|
15541
15551
|
},
|
15542
|
-
"dist/chunk-
|
15552
|
+
"dist/chunk-KR2DZJO5.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-
|
18090
|
+
"path": "dist/HLSView-BRZ2FW7O.js",
|
18076
18091
|
"kind": "dynamic-import"
|
18077
18092
|
},
|
18078
18093
|
{
|
@@ -18646,10 +18661,10 @@
|
|
18646
18661
|
],
|
18647
18662
|
"inputs": {
|
18648
18663
|
"<define:process.env>": {
|
18649
|
-
"bytesInOutput":
|
18664
|
+
"bytesInOutput": 18026
|
18650
18665
|
},
|
18651
18666
|
"../../node_modules/lodash/lodash.js": {
|
18652
|
-
"bytesInOutput":
|
18667
|
+
"bytesInOutput": 224291
|
18653
18668
|
},
|
18654
18669
|
"../../node_modules/ua-parser-js/src/ua-parser.js": {
|
18655
18670
|
"bytesInOutput": 42491
|
@@ -18658,7 +18673,7 @@
|
|
18658
18673
|
"bytesInOutput": 26591
|
18659
18674
|
},
|
18660
18675
|
"../../node_modules/sdp/sdp.js": {
|
18661
|
-
"bytesInOutput":
|
18676
|
+
"bytesInOutput": 22292
|
18662
18677
|
},
|
18663
18678
|
"../../node_modules/sdp-transform/lib/grammar.js": {
|
18664
18679
|
"bytesInOutput": 16120
|
@@ -18682,7 +18697,7 @@
|
|
18682
18697
|
"bytesInOutput": 373
|
18683
18698
|
},
|
18684
18699
|
"../../node_modules/object-assign/index.js": {
|
18685
|
-
"bytesInOutput":
|
18700
|
+
"bytesInOutput": 2163
|
18686
18701
|
},
|
18687
18702
|
"../../node_modules/prop-types/lib/ReactPropTypesSecret.js": {
|
18688
18703
|
"bytesInOutput": 308
|
@@ -18844,7 +18859,7 @@
|
|
18844
18859
|
"bytesInOutput": 27
|
18845
18860
|
},
|
18846
18861
|
"src/Video/Video.tsx": {
|
18847
|
-
"bytesInOutput":
|
18862
|
+
"bytesInOutput": 1192
|
18848
18863
|
},
|
18849
18864
|
"src/TileMenu/index.tsx": {
|
18850
18865
|
"bytesInOutput": 27
|
@@ -18988,7 +19003,7 @@
|
|
18988
19003
|
"bytesInOutput": 489
|
18989
19004
|
},
|
18990
19005
|
"src/Prebuilt/components/PIP/PIPManager.ts": {
|
18991
|
-
"bytesInOutput":
|
19006
|
+
"bytesInOutput": 9820
|
18992
19007
|
},
|
18993
19008
|
"src/Prebuilt/components/PIP/pipUtils.js": {
|
18994
19009
|
"bytesInOutput": 4289
|
@@ -19093,7 +19108,7 @@
|
|
19093
19108
|
"bytesInOutput": 2509
|
19094
19109
|
},
|
19095
19110
|
"src/Prebuilt/components/PIP/PIPChat.tsx": {
|
19096
|
-
"bytesInOutput":
|
19111
|
+
"bytesInOutput": 10026
|
19097
19112
|
},
|
19098
19113
|
"src/TextArea/index.tsx": {
|
19099
19114
|
"bytesInOutput": 27
|
@@ -19189,7 +19204,7 @@
|
|
19189
19204
|
"bytesInOutput": 9861
|
19190
19205
|
},
|
19191
19206
|
"../hms-video-store/dist/index.js": {
|
19192
|
-
"bytesInOutput":
|
19207
|
+
"bytesInOutput": 50504
|
19193
19208
|
},
|
19194
19209
|
"../../node_modules/reselect/es/index.js": {
|
19195
19210
|
"bytesInOutput": 2539
|
@@ -19207,7 +19222,7 @@
|
|
19207
19222
|
"bytesInOutput": 22678
|
19208
19223
|
},
|
19209
19224
|
"../../node_modules/webrtc-adapter/src/js/chrome/getusermedia.js": {
|
19210
|
-
"bytesInOutput":
|
19225
|
+
"bytesInOutput": 6086
|
19211
19226
|
},
|
19212
19227
|
"../../node_modules/webrtc-adapter/src/js/chrome/getdisplaymedia.js": {
|
19213
19228
|
"bytesInOutput": 1256
|
@@ -19273,7 +19288,7 @@
|
|
19273
19288
|
"bytesInOutput": 823
|
19274
19289
|
},
|
19275
19290
|
"src/Prebuilt/components/VirtualBackground/VBToggle.tsx": {
|
19276
|
-
"bytesInOutput":
|
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-
|
19560
|
+
"../../../../../../../tmp/tmp-2790-CtzuXp4m7Mya/19197fbfd210/index.css": {
|
19546
19561
|
"bytesInOutput": 0
|
19547
19562
|
},
|
19548
19563
|
"src/Prebuilt/common/PeersSorter.ts": {
|
@@ -19597,7 +19612,7 @@
|
|
19597
19612
|
"bytesInOutput": 27
|
19598
19613
|
},
|
19599
19614
|
"src/Prebuilt/components/Notifications/Notifications.tsx": {
|
19600
|
-
"bytesInOutput":
|
19615
|
+
"bytesInOutput": 8179
|
19601
19616
|
},
|
19602
19617
|
"src/Prebuilt/components/Notifications/AutoplayBlockedModal.tsx": {
|
19603
19618
|
"bytesInOutput": 1053
|
@@ -19702,7 +19717,7 @@
|
|
19702
19717
|
"bytesInOutput": 2628
|
19703
19718
|
}
|
19704
19719
|
},
|
19705
|
-
"bytes":
|
19720
|
+
"bytes": 1443107
|
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-
|
19782
|
+
"../../../../../../../tmp/tmp-2790-CtzuXp4m7Mya/19197fbfd8e2/tldraw.css": {
|
19768
19783
|
"bytesInOutput": 75223
|
19769
19784
|
},
|
19770
|
-
"../../../../../../../tmp/tmp-
|
19785
|
+
"../../../../../../../tmp/tmp-2790-CtzuXp4m7Mya/19197fbfd210/index.css": {
|
19771
19786
|
"bytesInOutput": 401
|
19772
19787
|
}
|
19773
19788
|
},
|
19774
19789
|
"bytes": 75901
|
19775
19790
|
},
|
19776
|
-
"dist/HLSView-
|
19791
|
+
"dist/HLSView-UXA322ED.css.map": {
|
19777
19792
|
"imports": [],
|
19778
19793
|
"exports": [],
|
19779
19794
|
"inputs": {},
|
19780
19795
|
"bytes": 122402
|
19781
19796
|
},
|
19782
|
-
"dist/HLSView-
|
19797
|
+
"dist/HLSView-UXA322ED.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-
|
19851
|
+
"../../../../../../../tmp/tmp-2790-CtzuXp4m7Mya/19197fbfd8e2/tldraw.css": {
|
19837
19852
|
"bytesInOutput": 75223
|
19838
19853
|
},
|
19839
|
-
"../../../../../../../tmp/tmp-
|
19854
|
+
"../../../../../../../tmp/tmp-2790-CtzuXp4m7Mya/19197fbfd210/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.
|
13
|
+
"version": "0.3.19-alpha.2",
|
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.
|
78
|
+
"@100mslive/hls-player": "0.3.19-alpha.2",
|
79
79
|
"@100mslive/hms-noise-cancellation": "0.0.1",
|
80
|
-
"@100mslive/hms-virtual-background": "1.13.19-alpha.
|
81
|
-
"@100mslive/hms-whiteboard": "0.0.9-alpha.
|
82
|
-
"@100mslive/react-icons": "0.10.19-alpha.
|
83
|
-
"@100mslive/react-sdk": "0.10.19-alpha.
|
80
|
+
"@100mslive/hms-virtual-background": "1.13.19-alpha.2",
|
81
|
+
"@100mslive/hms-whiteboard": "0.0.9-alpha.2",
|
82
|
+
"@100mslive/react-icons": "0.10.19-alpha.2",
|
83
|
+
"@100mslive/react-sdk": "0.10.19-alpha.2",
|
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": "
|
120
|
+
"gitHead": "88c8ac68235961d5352322c7be3efedad27f6d92"
|
121
121
|
}
|
@@ -102,9 +102,21 @@ export const PIPChat = () => {
|
|
102
102
|
)}
|
103
103
|
{filteredMessages.length === 0 ? (
|
104
104
|
<div
|
105
|
-
style={{
|
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
|
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;
|
package/src/Video/Video.tsx
CHANGED
@@ -57,5 +57,5 @@ interface Props {
|
|
57
57
|
|
58
58
|
export const Video: React.FC<Props & StyledProps> = ({ trackId, attach, ...props }) => {
|
59
59
|
const { videoRef } = useVideo({ trackId, attach });
|
60
|
-
return <StyledVideo
|
60
|
+
return <StyledVideo ref={videoRef} {...props} />;
|
61
61
|
};
|