@100mslive/roomkit-react 0.3.24-alpha.1 → 0.3.24-alpha.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Theme/ThemeProvider.d.ts +1 -0
- package/dist/index.cjs.css +2 -2
- package/dist/index.cjs.css.map +1 -1
- package/dist/index.cjs.js +12 -6
- package/dist/index.cjs.js.map +2 -2
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/index.js +12 -6
- package/dist/index.js.map +2 -2
- package/dist/meta.cjs.json +14 -14
- package/dist/meta.esbuild.json +14 -14
- package/package.json +7 -7
- package/src/Prebuilt/App.tsx +1 -0
- package/src/Theme/ThemeProvider.tsx +9 -3
package/dist/meta.cjs.json
CHANGED
@@ -94,7 +94,7 @@
|
|
94
94
|
"format": "esm"
|
95
95
|
},
|
96
96
|
"src/Theme/ThemeProvider.tsx": {
|
97
|
-
"bytes":
|
97
|
+
"bytes": 2984,
|
98
98
|
"imports": [
|
99
99
|
{
|
100
100
|
"path": "react",
|
@@ -11316,7 +11316,7 @@
|
|
11316
11316
|
],
|
11317
11317
|
"format": "esm"
|
11318
11318
|
},
|
11319
|
-
"../../../../../../../tmp/tmp-
|
11319
|
+
"../../../../../../../tmp/tmp-2751-tqlqG462Okj5/192b46cb6713/tldraw.css": {
|
11320
11320
|
"bytes": 80111,
|
11321
11321
|
"imports": [
|
11322
11322
|
{
|
@@ -11366,7 +11366,7 @@
|
|
11366
11366
|
}
|
11367
11367
|
]
|
11368
11368
|
},
|
11369
|
-
"../../../../../../../tmp/tmp-
|
11369
|
+
"../../../../../../../tmp/tmp-2751-tqlqG462Okj5/192b46cb5fc1/index.css": {
|
11370
11370
|
"bytes": 597,
|
11371
11371
|
"imports": [
|
11372
11372
|
{
|
@@ -11375,7 +11375,7 @@
|
|
11375
11375
|
"external": true
|
11376
11376
|
},
|
11377
11377
|
{
|
11378
|
-
"path": "../../../../../../../tmp/tmp-
|
11378
|
+
"path": "../../../../../../../tmp/tmp-2751-tqlqG462Okj5/192b46cb6713/tldraw.css",
|
11379
11379
|
"kind": "import-rule",
|
11380
11380
|
"original": "@tldraw/tldraw/tldraw.css"
|
11381
11381
|
}
|
@@ -11450,7 +11450,7 @@
|
|
11450
11450
|
"original": "../../common/constants"
|
11451
11451
|
},
|
11452
11452
|
{
|
11453
|
-
"path": "../../../../../../../tmp/tmp-
|
11453
|
+
"path": "../../../../../../../tmp/tmp-2751-tqlqG462Okj5/192b46cb5fc1/index.css",
|
11454
11454
|
"kind": "import-statement",
|
11455
11455
|
"original": "@100mslive/hms-whiteboard/index.css"
|
11456
11456
|
},
|
@@ -14591,7 +14591,7 @@
|
|
14591
14591
|
"format": "esm"
|
14592
14592
|
},
|
14593
14593
|
"src/Prebuilt/App.tsx": {
|
14594
|
-
"bytes":
|
14594
|
+
"bytes": 11106,
|
14595
14595
|
"imports": [
|
14596
14596
|
{
|
14597
14597
|
"path": "react",
|
@@ -15719,7 +15719,7 @@
|
|
15719
15719
|
"imports": [],
|
15720
15720
|
"exports": [],
|
15721
15721
|
"inputs": {},
|
15722
|
-
"bytes":
|
15722
|
+
"bytes": 3615535
|
15723
15723
|
},
|
15724
15724
|
"dist/index.cjs.js": {
|
15725
15725
|
"imports": [
|
@@ -19052,7 +19052,7 @@
|
|
19052
19052
|
"cssBundle": "dist/index.cjs.css",
|
19053
19053
|
"inputs": {
|
19054
19054
|
"<define:process.env>": {
|
19055
|
-
"bytesInOutput":
|
19055
|
+
"bytesInOutput": 18054
|
19056
19056
|
},
|
19057
19057
|
"../../node_modules/lodash/lodash.js": {
|
19058
19058
|
"bytesInOutput": 224308
|
@@ -19133,7 +19133,7 @@
|
|
19133
19133
|
"bytesInOutput": 3715
|
19134
19134
|
},
|
19135
19135
|
"src/Theme/ThemeProvider.tsx": {
|
19136
|
-
"bytesInOutput":
|
19136
|
+
"bytesInOutput": 2121
|
19137
19137
|
},
|
19138
19138
|
"src/Theme/useSSR.tsx": {
|
19139
19139
|
"bytesInOutput": 455
|
@@ -19334,7 +19334,7 @@
|
|
19334
19334
|
"bytesInOutput": 925
|
19335
19335
|
},
|
19336
19336
|
"src/Prebuilt/App.tsx": {
|
19337
|
-
"bytesInOutput":
|
19337
|
+
"bytesInOutput": 8605
|
19338
19338
|
},
|
19339
19339
|
"src/Prebuilt/components/AppData/AppData.tsx": {
|
19340
19340
|
"bytesInOutput": 6918
|
@@ -19930,7 +19930,7 @@
|
|
19930
19930
|
"src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx": {
|
19931
19931
|
"bytesInOutput": 3051
|
19932
19932
|
},
|
19933
|
-
"../../../../../../../tmp/tmp-
|
19933
|
+
"../../../../../../../tmp/tmp-2751-tqlqG462Okj5/192b46cb5fc1/index.css": {
|
19934
19934
|
"bytesInOutput": 0
|
19935
19935
|
},
|
19936
19936
|
"src/Prebuilt/common/PeersSorter.ts": {
|
@@ -20165,7 +20165,7 @@
|
|
20165
20165
|
"bytesInOutput": 2777
|
20166
20166
|
}
|
20167
20167
|
},
|
20168
|
-
"bytes":
|
20168
|
+
"bytes": 1502931
|
20169
20169
|
},
|
20170
20170
|
"dist/index.cjs.css.map": {
|
20171
20171
|
"imports": [],
|
@@ -20227,10 +20227,10 @@
|
|
20227
20227
|
}
|
20228
20228
|
],
|
20229
20229
|
"inputs": {
|
20230
|
-
"../../../../../../../tmp/tmp-
|
20230
|
+
"../../../../../../../tmp/tmp-2751-tqlqG462Okj5/192b46cb6713/tldraw.css": {
|
20231
20231
|
"bytesInOutput": 75223
|
20232
20232
|
},
|
20233
|
-
"../../../../../../../tmp/tmp-
|
20233
|
+
"../../../../../../../tmp/tmp-2751-tqlqG462Okj5/192b46cb5fc1/index.css": {
|
20234
20234
|
"bytesInOutput": 401
|
20235
20235
|
}
|
20236
20236
|
},
|
package/dist/meta.esbuild.json
CHANGED
@@ -94,7 +94,7 @@
|
|
94
94
|
"format": "esm"
|
95
95
|
},
|
96
96
|
"src/Theme/ThemeProvider.tsx": {
|
97
|
-
"bytes":
|
97
|
+
"bytes": 2984,
|
98
98
|
"imports": [
|
99
99
|
{
|
100
100
|
"path": "react",
|
@@ -11316,7 +11316,7 @@
|
|
11316
11316
|
],
|
11317
11317
|
"format": "esm"
|
11318
11318
|
},
|
11319
|
-
"../../../../../../../tmp/tmp-
|
11319
|
+
"../../../../../../../tmp/tmp-2751-TYV0g1e1Ftj6/192b46cb6082/tldraw.css": {
|
11320
11320
|
"bytes": 80111,
|
11321
11321
|
"imports": [
|
11322
11322
|
{
|
@@ -11366,7 +11366,7 @@
|
|
11366
11366
|
}
|
11367
11367
|
]
|
11368
11368
|
},
|
11369
|
-
"../../../../../../../tmp/tmp-
|
11369
|
+
"../../../../../../../tmp/tmp-2751-TYV0g1e1Ftj6/192b46cb5a00/index.css": {
|
11370
11370
|
"bytes": 597,
|
11371
11371
|
"imports": [
|
11372
11372
|
{
|
@@ -11375,7 +11375,7 @@
|
|
11375
11375
|
"external": true
|
11376
11376
|
},
|
11377
11377
|
{
|
11378
|
-
"path": "../../../../../../../tmp/tmp-
|
11378
|
+
"path": "../../../../../../../tmp/tmp-2751-TYV0g1e1Ftj6/192b46cb6082/tldraw.css",
|
11379
11379
|
"kind": "import-rule",
|
11380
11380
|
"original": "@tldraw/tldraw/tldraw.css"
|
11381
11381
|
}
|
@@ -11450,7 +11450,7 @@
|
|
11450
11450
|
"original": "../../common/constants"
|
11451
11451
|
},
|
11452
11452
|
{
|
11453
|
-
"path": "../../../../../../../tmp/tmp-
|
11453
|
+
"path": "../../../../../../../tmp/tmp-2751-TYV0g1e1Ftj6/192b46cb5a00/index.css",
|
11454
11454
|
"kind": "import-statement",
|
11455
11455
|
"original": "@100mslive/hms-whiteboard/index.css"
|
11456
11456
|
},
|
@@ -14591,7 +14591,7 @@
|
|
14591
14591
|
"format": "esm"
|
14592
14592
|
},
|
14593
14593
|
"src/Prebuilt/App.tsx": {
|
14594
|
-
"bytes":
|
14594
|
+
"bytes": 11106,
|
14595
14595
|
"imports": [
|
14596
14596
|
{
|
14597
14597
|
"path": "react",
|
@@ -15719,7 +15719,7 @@
|
|
15719
15719
|
"imports": [],
|
15720
15720
|
"exports": [],
|
15721
15721
|
"inputs": {},
|
15722
|
-
"bytes":
|
15722
|
+
"bytes": 3655285
|
15723
15723
|
},
|
15724
15724
|
"dist/index.js": {
|
15725
15725
|
"imports": [
|
@@ -19118,7 +19118,7 @@
|
|
19118
19118
|
"cssBundle": "dist/index.css",
|
19119
19119
|
"inputs": {
|
19120
19120
|
"<define:process.env>": {
|
19121
|
-
"bytesInOutput":
|
19121
|
+
"bytesInOutput": 18054
|
19122
19122
|
},
|
19123
19123
|
"../../node_modules/lodash/lodash.js": {
|
19124
19124
|
"bytesInOutput": 224303
|
@@ -19199,7 +19199,7 @@
|
|
19199
19199
|
"bytesInOutput": 3613
|
19200
19200
|
},
|
19201
19201
|
"src/Theme/ThemeProvider.tsx": {
|
19202
|
-
"bytesInOutput":
|
19202
|
+
"bytesInOutput": 2042
|
19203
19203
|
},
|
19204
19204
|
"src/Theme/useSSR.tsx": {
|
19205
19205
|
"bytesInOutput": 424
|
@@ -19400,7 +19400,7 @@
|
|
19400
19400
|
"bytesInOutput": 887
|
19401
19401
|
},
|
19402
19402
|
"src/Prebuilt/App.tsx": {
|
19403
|
-
"bytesInOutput":
|
19403
|
+
"bytesInOutput": 8105
|
19404
19404
|
},
|
19405
19405
|
"src/Prebuilt/components/AppData/AppData.tsx": {
|
19406
19406
|
"bytesInOutput": 6633
|
@@ -19996,7 +19996,7 @@
|
|
19996
19996
|
"src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx": {
|
19997
19997
|
"bytesInOutput": 2830
|
19998
19998
|
},
|
19999
|
-
"../../../../../../../tmp/tmp-
|
19999
|
+
"../../../../../../../tmp/tmp-2751-TYV0g1e1Ftj6/192b46cb5a00/index.css": {
|
20000
20000
|
"bytesInOutput": 0
|
20001
20001
|
},
|
20002
20002
|
"src/Prebuilt/common/PeersSorter.ts": {
|
@@ -20231,7 +20231,7 @@
|
|
20231
20231
|
"bytesInOutput": 2632
|
20232
20232
|
}
|
20233
20233
|
},
|
20234
|
-
"bytes":
|
20234
|
+
"bytes": 1448113
|
20235
20235
|
},
|
20236
20236
|
"dist/index.css.map": {
|
20237
20237
|
"imports": [],
|
@@ -20293,10 +20293,10 @@
|
|
20293
20293
|
}
|
20294
20294
|
],
|
20295
20295
|
"inputs": {
|
20296
|
-
"../../../../../../../tmp/tmp-
|
20296
|
+
"../../../../../../../tmp/tmp-2751-TYV0g1e1Ftj6/192b46cb6082/tldraw.css": {
|
20297
20297
|
"bytesInOutput": 75223
|
20298
20298
|
},
|
20299
|
-
"../../../../../../../tmp/tmp-
|
20299
|
+
"../../../../../../../tmp/tmp-2751-TYV0g1e1Ftj6/192b46cb5a00/index.css": {
|
20300
20300
|
"bytesInOutput": 401
|
20301
20301
|
}
|
20302
20302
|
},
|
package/package.json
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
"prebuilt",
|
11
11
|
"roomkit"
|
12
12
|
],
|
13
|
-
"version": "0.3.24-alpha.
|
13
|
+
"version": "0.3.24-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.24-alpha.
|
78
|
+
"@100mslive/hls-player": "0.3.24-alpha.2",
|
79
79
|
"@100mslive/hms-noise-cancellation": "0.0.1",
|
80
|
-
"@100mslive/hms-virtual-background": "1.13.24-alpha.
|
81
|
-
"@100mslive/hms-whiteboard": "0.0.14-alpha.
|
82
|
-
"@100mslive/react-icons": "0.10.24-alpha.
|
83
|
-
"@100mslive/react-sdk": "0.10.24-alpha.
|
80
|
+
"@100mslive/hms-virtual-background": "1.13.24-alpha.2",
|
81
|
+
"@100mslive/hms-whiteboard": "0.0.14-alpha.2",
|
82
|
+
"@100mslive/react-icons": "0.10.24-alpha.2",
|
83
|
+
"@100mslive/react-sdk": "0.10.24-alpha.2",
|
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": "
|
120
|
+
"gitHead": "e4156f3df2ca373cfc388e1dcad98d242b026367"
|
121
121
|
}
|
package/src/Prebuilt/App.tsx
CHANGED
@@ -30,6 +30,7 @@ export type ThemeProviderProps = {
|
|
30
30
|
themeType?: string;
|
31
31
|
theme?: Theme;
|
32
32
|
aspectRatio?: { width: number; height: number };
|
33
|
+
container?: string;
|
33
34
|
};
|
34
35
|
|
35
36
|
const defaultContext = {
|
@@ -53,6 +54,7 @@ export const HMSThemeProvider: React.FC<React.PropsWithChildren<ThemeProviderPro
|
|
53
54
|
themeType,
|
54
55
|
theme: userTheme,
|
55
56
|
aspectRatio = defaultAspectRatio,
|
57
|
+
container = '',
|
56
58
|
children,
|
57
59
|
}) => {
|
58
60
|
const systemTheme = ThemeTypes.default;
|
@@ -64,13 +66,17 @@ export const HMSThemeProvider: React.FC<React.PropsWithChildren<ThemeProviderPro
|
|
64
66
|
if (!isBrowser) {
|
65
67
|
return updatedTheme;
|
66
68
|
}
|
69
|
+
let element = document.querySelector(container);
|
70
|
+
if (!element) {
|
71
|
+
element = document.documentElement;
|
72
|
+
}
|
67
73
|
if (previousClassName.current) {
|
68
|
-
|
74
|
+
element.classList.remove(previousClassName.current);
|
69
75
|
}
|
70
76
|
previousClassName.current = updatedTheme.className;
|
71
|
-
|
77
|
+
element.classList.add(updatedTheme);
|
72
78
|
return updatedTheme;
|
73
|
-
}, [userTheme, currentTheme, isBrowser]);
|
79
|
+
}, [userTheme, container, currentTheme, isBrowser]);
|
74
80
|
|
75
81
|
const toggleTheme = useCallback((themeToUpdateTo?: ThemeTypes) => {
|
76
82
|
if (themeToUpdateTo) {
|