@100mslive/roomkit-react 0.1.11-alpha.0 → 0.1.11-alpha.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{HLSView-TEG6Y6WL.js → HLSView-ZGRQ5DG4.js} +2 -2
- package/dist/{chunk-VSALCLHF.js → chunk-Y4STTXFY.js} +8 -3
- package/dist/{chunk-VSALCLHF.js.map → chunk-Y4STTXFY.js.map} +2 -2
- package/dist/index.cjs.js +8 -2
- package/dist/index.cjs.js.map +3 -3
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +12 -7
- package/dist/meta.esbuild.json +19 -14
- package/package.json +6 -6
- package/src/Prebuilt/common/utils.js +2 -0
- package/src/Prebuilt/components/MwebLandscapePrompt.tsx +7 -0
- /package/dist/{HLSView-TEG6Y6WL.js.map → HLSView-ZGRQ5DG4.js.map} +0 -0
package/dist/index.js
CHANGED
package/dist/meta.cjs.json
CHANGED
@@ -4112,7 +4112,7 @@
|
|
4112
4112
|
"format": "esm"
|
4113
4113
|
},
|
4114
4114
|
"src/Prebuilt/common/utils.js": {
|
4115
|
-
"bytes":
|
4115
|
+
"bytes": 4325,
|
4116
4116
|
"imports": [
|
4117
4117
|
{
|
4118
4118
|
"path": "src/Prebuilt/common/constants.js",
|
@@ -9535,7 +9535,7 @@
|
|
9535
9535
|
"format": "esm"
|
9536
9536
|
},
|
9537
9537
|
"src/Prebuilt/components/MwebLandscapePrompt.tsx": {
|
9538
|
-
"bytes":
|
9538
|
+
"bytes": 2625,
|
9539
9539
|
"imports": [
|
9540
9540
|
{
|
9541
9541
|
"path": "react",
|
@@ -9577,6 +9577,11 @@
|
|
9577
9577
|
"kind": "import-statement",
|
9578
9578
|
"original": "../../Theme"
|
9579
9579
|
},
|
9580
|
+
{
|
9581
|
+
"path": "src/Prebuilt/common/utils.js",
|
9582
|
+
"kind": "import-statement",
|
9583
|
+
"original": "../common/utils"
|
9584
|
+
},
|
9580
9585
|
{
|
9581
9586
|
"path": "<define:process.env>",
|
9582
9587
|
"kind": "import-statement",
|
@@ -10701,7 +10706,7 @@
|
|
10701
10706
|
"imports": [],
|
10702
10707
|
"exports": [],
|
10703
10708
|
"inputs": {},
|
10704
|
-
"bytes":
|
10709
|
+
"bytes": 1106049
|
10705
10710
|
},
|
10706
10711
|
"dist/index.cjs.js": {
|
10707
10712
|
"imports": [
|
@@ -12985,7 +12990,7 @@
|
|
12985
12990
|
"entryPoint": "src/index.ts",
|
12986
12991
|
"inputs": {
|
12987
12992
|
"<define:process.env>": {
|
12988
|
-
"bytesInOutput":
|
12993
|
+
"bytesInOutput": 18606
|
12989
12994
|
},
|
12990
12995
|
"src/Theme/base.config.ts": {
|
12991
12996
|
"bytesInOutput": 6104
|
@@ -13405,7 +13410,7 @@
|
|
13405
13410
|
"bytesInOutput": 8156
|
13406
13411
|
},
|
13407
13412
|
"src/Prebuilt/common/utils.js": {
|
13408
|
-
"bytesInOutput":
|
13413
|
+
"bytesInOutput": 2908
|
13409
13414
|
},
|
13410
13415
|
"src/Prebuilt/services/FeatureFlags.jsx": {
|
13411
13416
|
"bytesInOutput": 1701
|
@@ -13762,7 +13767,7 @@
|
|
13762
13767
|
"bytesInOutput": 2925
|
13763
13768
|
},
|
13764
13769
|
"src/Prebuilt/components/MwebLandscapePrompt.tsx": {
|
13765
|
-
"bytesInOutput":
|
13770
|
+
"bytesInOutput": 3195
|
13766
13771
|
},
|
13767
13772
|
"src/Prebuilt/components/Toast/ToastConfig.jsx": {
|
13768
13773
|
"bytesInOutput": 7487
|
@@ -13837,7 +13842,7 @@
|
|
13837
13842
|
"bytesInOutput": 2930
|
13838
13843
|
}
|
13839
13844
|
},
|
13840
|
-
"bytes":
|
13845
|
+
"bytes": 900903
|
13841
13846
|
}
|
13842
13847
|
}
|
13843
13848
|
}
|
package/dist/meta.esbuild.json
CHANGED
@@ -4112,7 +4112,7 @@
|
|
4112
4112
|
"format": "esm"
|
4113
4113
|
},
|
4114
4114
|
"src/Prebuilt/common/utils.js": {
|
4115
|
-
"bytes":
|
4115
|
+
"bytes": 4325,
|
4116
4116
|
"imports": [
|
4117
4117
|
{
|
4118
4118
|
"path": "src/Prebuilt/common/constants.js",
|
@@ -9535,7 +9535,7 @@
|
|
9535
9535
|
"format": "esm"
|
9536
9536
|
},
|
9537
9537
|
"src/Prebuilt/components/MwebLandscapePrompt.tsx": {
|
9538
|
-
"bytes":
|
9538
|
+
"bytes": 2625,
|
9539
9539
|
"imports": [
|
9540
9540
|
{
|
9541
9541
|
"path": "react",
|
@@ -9577,6 +9577,11 @@
|
|
9577
9577
|
"kind": "import-statement",
|
9578
9578
|
"original": "../../Theme"
|
9579
9579
|
},
|
9580
|
+
{
|
9581
|
+
"path": "src/Prebuilt/common/utils.js",
|
9582
|
+
"kind": "import-statement",
|
9583
|
+
"original": "../common/utils"
|
9584
|
+
},
|
9580
9585
|
{
|
9581
9586
|
"path": "<define:process.env>",
|
9582
9587
|
"kind": "import-statement",
|
@@ -10706,7 +10711,7 @@
|
|
10706
10711
|
"dist/index.js": {
|
10707
10712
|
"imports": [
|
10708
10713
|
{
|
10709
|
-
"path": "dist/chunk-
|
10714
|
+
"path": "dist/chunk-Y4STTXFY.js",
|
10710
10715
|
"kind": "import-statement"
|
10711
10716
|
}
|
10712
10717
|
],
|
@@ -10778,16 +10783,16 @@
|
|
10778
10783
|
"inputs": {},
|
10779
10784
|
"bytes": 1798
|
10780
10785
|
},
|
10781
|
-
"dist/HLSView-
|
10786
|
+
"dist/HLSView-ZGRQ5DG4.js.map": {
|
10782
10787
|
"imports": [],
|
10783
10788
|
"exports": [],
|
10784
10789
|
"inputs": {},
|
10785
10790
|
"bytes": 53119
|
10786
10791
|
},
|
10787
|
-
"dist/HLSView-
|
10792
|
+
"dist/HLSView-ZGRQ5DG4.js": {
|
10788
10793
|
"imports": [
|
10789
10794
|
{
|
10790
|
-
"path": "dist/chunk-
|
10795
|
+
"path": "dist/chunk-Y4STTXFY.js",
|
10791
10796
|
"kind": "import-statement"
|
10792
10797
|
},
|
10793
10798
|
{
|
@@ -10938,13 +10943,13 @@
|
|
10938
10943
|
},
|
10939
10944
|
"bytes": 32956
|
10940
10945
|
},
|
10941
|
-
"dist/chunk-
|
10946
|
+
"dist/chunk-Y4STTXFY.js.map": {
|
10942
10947
|
"imports": [],
|
10943
10948
|
"exports": [],
|
10944
10949
|
"inputs": {},
|
10945
|
-
"bytes":
|
10950
|
+
"bytes": 1043326
|
10946
10951
|
},
|
10947
|
-
"dist/chunk-
|
10952
|
+
"dist/chunk-Y4STTXFY.js": {
|
10948
10953
|
"imports": [
|
10949
10954
|
{
|
10950
10955
|
"path": "react",
|
@@ -12837,7 +12842,7 @@
|
|
12837
12842
|
"external": true
|
12838
12843
|
},
|
12839
12844
|
{
|
12840
|
-
"path": "dist/HLSView-
|
12845
|
+
"path": "dist/HLSView-ZGRQ5DG4.js",
|
12841
12846
|
"kind": "dynamic-import"
|
12842
12847
|
},
|
12843
12848
|
{
|
@@ -13201,7 +13206,7 @@
|
|
13201
13206
|
],
|
13202
13207
|
"inputs": {
|
13203
13208
|
"<define:process.env>": {
|
13204
|
-
"bytesInOutput":
|
13209
|
+
"bytesInOutput": 18499
|
13205
13210
|
},
|
13206
13211
|
"src/Button/Button.tsx": {
|
13207
13212
|
"bytesInOutput": 4304
|
@@ -13612,7 +13617,7 @@
|
|
13612
13617
|
"bytesInOutput": 1733
|
13613
13618
|
},
|
13614
13619
|
"src/Prebuilt/common/utils.js": {
|
13615
|
-
"bytesInOutput":
|
13620
|
+
"bytesInOutput": 2377
|
13616
13621
|
},
|
13617
13622
|
"src/Prebuilt/services/FeatureFlags.jsx": {
|
13618
13623
|
"bytesInOutput": 1400
|
@@ -13909,7 +13914,7 @@
|
|
13909
13914
|
"bytesInOutput": 464
|
13910
13915
|
},
|
13911
13916
|
"src/Prebuilt/components/MwebLandscapePrompt.tsx": {
|
13912
|
-
"bytesInOutput":
|
13917
|
+
"bytesInOutput": 2489
|
13913
13918
|
},
|
13914
13919
|
"src/Prebuilt/components/Notifications/Notifications.tsx": {
|
13915
13920
|
"bytesInOutput": 6988
|
@@ -13975,7 +13980,7 @@
|
|
13975
13980
|
"bytesInOutput": 391
|
13976
13981
|
}
|
13977
13982
|
},
|
13978
|
-
"bytes":
|
13983
|
+
"bytes": 700411
|
13979
13984
|
}
|
13980
13985
|
}
|
13981
13986
|
}
|
package/package.json
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
"prebuilt",
|
11
11
|
"roomkit"
|
12
12
|
],
|
13
|
-
"version": "0.1.11-alpha.
|
13
|
+
"version": "0.1.11-alpha.1",
|
14
14
|
"author": "100ms",
|
15
15
|
"license": "MIT",
|
16
16
|
"files": [
|
@@ -76,10 +76,10 @@
|
|
76
76
|
"react": ">=17.0.2 <19.0.0"
|
77
77
|
},
|
78
78
|
"dependencies": {
|
79
|
-
"@100mslive/hls-player": "0.1.20-alpha.
|
80
|
-
"@100mslive/hms-virtual-background": "1.11.20-alpha.
|
81
|
-
"@100mslive/react-icons": "0.8.20-alpha.
|
82
|
-
"@100mslive/react-sdk": "0.8.20-alpha.
|
79
|
+
"@100mslive/hls-player": "0.1.20-alpha.1",
|
80
|
+
"@100mslive/hms-virtual-background": "1.11.20-alpha.1",
|
81
|
+
"@100mslive/react-icons": "0.8.20-alpha.1",
|
82
|
+
"@100mslive/react-sdk": "0.8.20-alpha.1",
|
83
83
|
"@100mslive/types-prebuilt": "0.12.0",
|
84
84
|
"@emoji-mart/data": "^1.0.6",
|
85
85
|
"@emoji-mart/react": "^1.0.1",
|
@@ -114,5 +114,5 @@
|
|
114
114
|
"uuid": "^8.3.2",
|
115
115
|
"worker-timers": "^7.0.40"
|
116
116
|
},
|
117
|
-
"gitHead": "
|
117
|
+
"gitHead": "4f83c845def51e14e085f6ecab89d03479091d5d"
|
118
118
|
}
|
@@ -6,12 +6,19 @@ import { Box, Flex } from '../../Layout';
|
|
6
6
|
import { Dialog } from '../../Modal';
|
7
7
|
import { Text } from '../../Text';
|
8
8
|
import { config as cssConfig } from '../../Theme';
|
9
|
+
// @ts-ignore
|
10
|
+
import { isMobileUserAgent } from '../common/utils';
|
9
11
|
|
10
12
|
export const MwebLandscapePrompt = () => {
|
11
13
|
const [showMwebLandscapePrompt, setShowMwebLandscapePrompt] = useState(false);
|
12
14
|
const isLandscape = useMedia(cssConfig.media.ls);
|
13
15
|
|
14
16
|
useEffect(() => {
|
17
|
+
if (!isMobileUserAgent) {
|
18
|
+
setShowMwebLandscapePrompt(false);
|
19
|
+
return;
|
20
|
+
}
|
21
|
+
|
15
22
|
if (!window.screen?.orientation) {
|
16
23
|
setShowMwebLandscapePrompt(isLandscape);
|
17
24
|
return;
|
File without changes
|