@stream-io/video-react-sdk 1.21.2 → 1.21.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/index.cjs.js +7 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +7 -4
- package/dist/index.es.js.map +1 -1
- package/dist/src/components/BackgroundFilters/BackgroundFilters.d.ts +2 -2
- package/package.json +4 -4
- package/src/components/BackgroundFilters/BackgroundFilters.tsx +9 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { BackgroundBlurLevel, BackgroundFilter } from '@stream-io/video-filters-web';
|
|
3
|
-
export type BackgroundFiltersProps = {
|
|
2
|
+
import { BackgroundBlurLevel, BackgroundFilter, PlatformSupportFlags } from '@stream-io/video-filters-web';
|
|
3
|
+
export type BackgroundFiltersProps = PlatformSupportFlags & {
|
|
4
4
|
/**
|
|
5
5
|
* A list of URLs to use as background images.
|
|
6
6
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stream-io/video-react-sdk",
|
|
3
|
-
"version": "1.21.
|
|
3
|
+
"version": "1.21.3",
|
|
4
4
|
"main": "./dist/index.cjs.js",
|
|
5
5
|
"module": "./dist/index.es.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@floating-ui/react": "^0.27.6",
|
|
33
|
-
"@stream-io/video-client": "1.
|
|
34
|
-
"@stream-io/video-filters-web": "0.2.
|
|
35
|
-
"@stream-io/video-react-bindings": "1.8.
|
|
33
|
+
"@stream-io/video-client": "1.31.0",
|
|
34
|
+
"@stream-io/video-filters-web": "0.2.2",
|
|
35
|
+
"@stream-io/video-react-bindings": "1.8.3",
|
|
36
36
|
"chart.js": "^4.4.4",
|
|
37
37
|
"clsx": "^2.0.0",
|
|
38
38
|
"react-chartjs-2": "^5.3.0"
|
|
@@ -17,11 +17,12 @@ import {
|
|
|
17
17
|
createRenderer,
|
|
18
18
|
isPlatformSupported,
|
|
19
19
|
loadTFLite,
|
|
20
|
+
PlatformSupportFlags,
|
|
20
21
|
Renderer,
|
|
21
22
|
TFLite,
|
|
22
23
|
} from '@stream-io/video-filters-web';
|
|
23
24
|
|
|
24
|
-
export type BackgroundFiltersProps = {
|
|
25
|
+
export type BackgroundFiltersProps = PlatformSupportFlags & {
|
|
25
26
|
/**
|
|
26
27
|
* A list of URLs to use as background images.
|
|
27
28
|
*/
|
|
@@ -150,6 +151,8 @@ export const BackgroundFiltersProvider = (
|
|
|
150
151
|
modelFilePath,
|
|
151
152
|
basePath,
|
|
152
153
|
onError,
|
|
154
|
+
forceSafariSupport,
|
|
155
|
+
forceMobileSupport,
|
|
153
156
|
} = props;
|
|
154
157
|
|
|
155
158
|
const [backgroundFilter, setBackgroundFilter] = useState(bgFilterFromProps);
|
|
@@ -178,8 +181,11 @@ export const BackgroundFiltersProvider = (
|
|
|
178
181
|
|
|
179
182
|
const [isSupported, setIsSupported] = useState(false);
|
|
180
183
|
useEffect(() => {
|
|
181
|
-
isPlatformSupported(
|
|
182
|
-
|
|
184
|
+
isPlatformSupported({
|
|
185
|
+
forceSafariSupport,
|
|
186
|
+
forceMobileSupport,
|
|
187
|
+
}).then(setIsSupported);
|
|
188
|
+
}, [forceMobileSupport, forceSafariSupport]);
|
|
183
189
|
|
|
184
190
|
const [tfLite, setTfLite] = useState<TFLite>();
|
|
185
191
|
useEffect(() => {
|