@100mslive/roomkit-react 0.3.17-alpha.0 → 0.3.17-alpha.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{HLSView-WZULAPSG.js → HLSView-DRQ5LA2D.js} +2 -2
- package/dist/{HLSView-2B7JRVYF.css → HLSView-XS66ENNF.css} +3 -3
- package/dist/{HLSView-2B7JRVYF.css.map → HLSView-XS66ENNF.css.map} +1 -1
- package/dist/{chunk-5GS4O2BK.js → chunk-UBM3HDE3.js} +69 -81
- package/dist/chunk-UBM3HDE3.js.map +7 -0
- package/dist/index.cjs.css +2 -2
- package/dist/index.cjs.css.map +1 -1
- package/dist/index.cjs.js +73 -91
- 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 +26 -40
- package/dist/meta.esbuild.json +36 -50
- package/package.json +8 -8
- package/src/Prebuilt/components/AppData/AppData.tsx +2 -1
- package/src/Prebuilt/components/Preview/PreviewJoin.tsx +10 -13
- package/src/Prebuilt/components/ScreenShareToggle.jsx +12 -1
- package/src/Prebuilt/components/VirtualBackground/VBPicker.tsx +1 -4
- package/dist/Prebuilt/components/VirtualBackground/constants.d.ts +0 -1
- package/dist/chunk-5GS4O2BK.js.map +0 -7
- package/src/Prebuilt/components/VirtualBackground/constants.ts +0 -14
- /package/dist/{HLSView-WZULAPSG.js.map → HLSView-DRQ5LA2D.js.map} +0 -0
package/dist/meta.esbuild.json
CHANGED
@@ -2282,7 +2282,7 @@
|
|
2282
2282
|
"format": "esm"
|
2283
2283
|
},
|
2284
2284
|
"src/Prebuilt/components/AppData/AppData.tsx": {
|
2285
|
-
"bytes":
|
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":
|
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":
|
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":
|
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",
|
@@ -10235,7 +10224,7 @@
|
|
10235
10224
|
"format": "esm"
|
10236
10225
|
},
|
10237
10226
|
"src/Prebuilt/components/Preview/PreviewJoin.tsx": {
|
10238
|
-
"bytes":
|
10227
|
+
"bytes": 10002,
|
10239
10228
|
"imports": [
|
10240
10229
|
{
|
10241
10230
|
"path": "react",
|
@@ -11227,7 +11216,7 @@
|
|
11227
11216
|
],
|
11228
11217
|
"format": "esm"
|
11229
11218
|
},
|
11230
|
-
"../../../../../../../tmp/tmp-
|
11219
|
+
"../../../../../../../tmp/tmp-2865-eNfTB5aEIwBt/191030a899b2/tldraw.css": {
|
11231
11220
|
"bytes": 80111,
|
11232
11221
|
"imports": [
|
11233
11222
|
{
|
@@ -11277,7 +11266,7 @@
|
|
11277
11266
|
}
|
11278
11267
|
]
|
11279
11268
|
},
|
11280
|
-
"../../../../../../../tmp/tmp-
|
11269
|
+
"../../../../../../../tmp/tmp-2865-eNfTB5aEIwBt/191030a891f0/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-
|
11278
|
+
"path": "../../../../../../../tmp/tmp-2865-eNfTB5aEIwBt/191030a899b2/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-
|
11353
|
+
"path": "../../../../../../../tmp/tmp-2865-eNfTB5aEIwBt/191030a891f0/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-
|
15240
|
+
"path": "dist/chunk-UBM3HDE3.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-
|
15316
|
+
"dist/HLSView-DRQ5LA2D.js.map": {
|
15328
15317
|
"imports": [],
|
15329
15318
|
"exports": [],
|
15330
15319
|
"inputs": {},
|
15331
15320
|
"bytes": 100275
|
15332
15321
|
},
|
15333
|
-
"dist/HLSView-
|
15322
|
+
"dist/HLSView-DRQ5LA2D.js": {
|
15334
15323
|
"imports": [
|
15335
15324
|
{
|
15336
|
-
"path": "dist/chunk-
|
15325
|
+
"path": "dist/chunk-UBM3HDE3.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-
|
15503
|
+
"cssBundle": "dist/HLSView-XS66ENNF.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-
|
15562
|
+
"dist/chunk-UBM3HDE3.js.map": {
|
15574
15563
|
"imports": [],
|
15575
15564
|
"exports": [],
|
15576
15565
|
"inputs": {},
|
15577
|
-
"bytes":
|
15566
|
+
"bytes": 3477555
|
15578
15567
|
},
|
15579
|
-
"dist/chunk-
|
15568
|
+
"dist/chunk-UBM3HDE3.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-
|
18091
|
+
"path": "dist/HLSView-DRQ5LA2D.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":
|
18690
|
+
"bytesInOutput": 17961
|
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":
|
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":
|
19284
|
+
"bytesInOutput": 1750
|
19296
19285
|
},
|
19297
19286
|
"src/Prebuilt/components/pdfAnnotator/shareScreenOptions.jsx": {
|
19298
19287
|
"bytesInOutput": 7124
|
@@ -19367,7 +19356,7 @@
|
|
19367
19356
|
"bytesInOutput": 3077
|
19368
19357
|
},
|
19369
19358
|
"src/Prebuilt/components/Preview/PreviewJoin.tsx": {
|
19370
|
-
"bytesInOutput":
|
19359
|
+
"bytesInOutput": 9964
|
19371
19360
|
},
|
19372
19361
|
"src/Prebuilt/layouts/SidePane.tsx": {
|
19373
19362
|
"bytesInOutput": 6439
|
@@ -19514,7 +19503,7 @@
|
|
19514
19503
|
"bytesInOutput": 1050
|
19515
19504
|
},
|
19516
19505
|
"src/Prebuilt/components/VirtualBackground/VBPicker.tsx": {
|
19517
|
-
"bytesInOutput":
|
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-
|
19583
|
+
"../../../../../../../tmp/tmp-2865-eNfTB5aEIwBt/191030a891f0/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":
|
19749
|
+
"bytes": 1445351
|
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-
|
19811
|
+
"../../../../../../../tmp/tmp-2865-eNfTB5aEIwBt/191030a899b2/tldraw.css": {
|
19826
19812
|
"bytesInOutput": 75223
|
19827
19813
|
},
|
19828
|
-
"../../../../../../../tmp/tmp-
|
19814
|
+
"../../../../../../../tmp/tmp-2865-eNfTB5aEIwBt/191030a891f0/index.css": {
|
19829
19815
|
"bytesInOutput": 401
|
19830
19816
|
}
|
19831
19817
|
},
|
19832
19818
|
"bytes": 75901
|
19833
19819
|
},
|
19834
|
-
"dist/HLSView-
|
19820
|
+
"dist/HLSView-XS66ENNF.css.map": {
|
19835
19821
|
"imports": [],
|
19836
19822
|
"exports": [],
|
19837
19823
|
"inputs": {},
|
19838
19824
|
"bytes": 122402
|
19839
19825
|
},
|
19840
|
-
"dist/HLSView-
|
19826
|
+
"dist/HLSView-XS66ENNF.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-
|
19880
|
+
"../../../../../../../tmp/tmp-2865-eNfTB5aEIwBt/191030a899b2/tldraw.css": {
|
19895
19881
|
"bytesInOutput": 75223
|
19896
19882
|
},
|
19897
|
-
"../../../../../../../tmp/tmp-
|
19883
|
+
"../../../../../../../tmp/tmp-2865-eNfTB5aEIwBt/191030a891f0/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.
|
13
|
+
"version": "0.3.17-alpha.2",
|
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.
|
78
|
+
"@100mslive/hls-player": "0.3.17-alpha.2",
|
79
79
|
"@100mslive/hms-noise-cancellation": "0.0.1",
|
80
|
-
"@100mslive/hms-virtual-background": "1.13.17-alpha.
|
81
|
-
"@100mslive/hms-whiteboard": "0.0.7-alpha.
|
82
|
-
"@100mslive/react-icons": "0.10.17-alpha.
|
83
|
-
"@100mslive/react-sdk": "0.10.17-alpha.
|
84
|
-
"@100mslive/types-prebuilt": "0.12.
|
80
|
+
"@100mslive/hms-virtual-background": "1.13.17-alpha.2",
|
81
|
+
"@100mslive/hms-whiteboard": "0.0.7-alpha.2",
|
82
|
+
"@100mslive/react-icons": "0.10.17-alpha.2",
|
83
|
+
"@100mslive/react-sdk": "0.10.17-alpha.2",
|
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": "
|
120
|
+
"gitHead": "4eac5aec26328f724b6b1a7c9d7df52ed701e193"
|
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) {
|
@@ -131,23 +131,20 @@ const PreviewJoin = ({
|
|
131
131
|
|
132
132
|
return roomState === HMSRoomState.Preview ? (
|
133
133
|
<Flex justify="center" css={{ size: '100%', position: 'relative' }}>
|
134
|
-
<Container css={{ h: '100%', pt: '$
|
134
|
+
<Container css={{ h: '100%', pt: '$6', '@md': { justifyContent: 'space-between', pt: '$10' } }}>
|
135
135
|
{toggleVideo ? null : <Box />}
|
136
|
-
<Flex direction="column" justify="center" css={{ w: '100%', maxWidth: '
|
136
|
+
<Flex direction="column" justify="center" css={{ w: '100%', maxWidth: '600px', gap: '$8' }}>
|
137
137
|
<Logo />
|
138
|
-
<Text
|
139
|
-
variant="h4"
|
140
|
-
css={{ wordBreak: 'break-word', textAlign: 'center', mt: '$14', mb: '$4', '@md': { mt: '$8', mb: '$2' } }}
|
141
|
-
>
|
138
|
+
<Text variant="h4" css={{ wordBreak: 'break-word', textAlign: 'center' }}>
|
142
139
|
{previewHeader.title}
|
143
140
|
</Text>
|
144
141
|
<Text
|
145
|
-
css={{ c: '$on_surface_medium',
|
142
|
+
css={{ c: '$on_surface_medium', textAlign: 'center', maxWidth: '100%', wordWrap: 'break-word' }}
|
146
143
|
variant="sm"
|
147
144
|
>
|
148
145
|
{previewHeader.sub_title}
|
149
146
|
</Text>
|
150
|
-
<Flex justify="center" css={{
|
147
|
+
<Flex justify="center" css={{ gap: '$4' }}>
|
151
148
|
{isStreamingOn ? (
|
152
149
|
<Chip
|
153
150
|
content="LIVE"
|
@@ -160,7 +157,7 @@ const PreviewJoin = ({
|
|
160
157
|
</Flex>
|
161
158
|
</Flex>
|
162
159
|
{toggleVideo ? <PreviewTile name={name} error={previewError} /> : null}
|
163
|
-
<Box css={{ w: '100%', maxWidth: `${Math.max(aspectRatio, 1) *
|
160
|
+
<Box css={{ w: '100%', maxWidth: `${Math.max(aspectRatio, 1) * 340}px` }}>
|
164
161
|
<PreviewControls hideSettings={!toggleVideo && !toggleAudio} vbEnabled={!!virtual_background} />
|
165
162
|
<PreviewForm
|
166
163
|
name={name}
|
@@ -210,11 +207,11 @@ export const PreviewTile = ({ name, error }: { name: string; error?: boolean })
|
|
210
207
|
css={{
|
211
208
|
bg: '$surface_default',
|
212
209
|
aspectRatio,
|
213
|
-
height: 'min(
|
210
|
+
height: 'min(340px, 70vh)',
|
214
211
|
width: 'auto',
|
215
|
-
maxWidth: '
|
212
|
+
maxWidth: '600px',
|
216
213
|
overflow: 'clip',
|
217
|
-
mt: '$
|
214
|
+
mt: '$10',
|
218
215
|
'@md': {
|
219
216
|
mt: 0,
|
220
217
|
width: 'min(220px, 70vw)',
|
@@ -261,7 +258,7 @@ export const PreviewControls = ({ hideSettings, vbEnabled }: { hideSettings: boo
|
|
261
258
|
justify={hideSettings && isMobile ? 'center' : 'between'}
|
262
259
|
css={{
|
263
260
|
width: '100%',
|
264
|
-
mt: '$
|
261
|
+
mt: '$6',
|
265
262
|
}}
|
266
263
|
>
|
267
264
|
<Flex css={{ gap: '$4' }}>
|
@@ -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 {
|
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.
|
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[];
|