@webstudio-is/react-sdk 0.225.0 → 0.227.0
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/lib/runtime.js +1 -0
- package/lib/types/context.d.ts +2 -1
- package/package.json +7 -7
- package/placeholder.d.ts +2 -1
package/lib/runtime.js
CHANGED
package/lib/types/context.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ImageLoader } from "@webstudio-is/image";
|
|
1
|
+
import type { ImageLoader, VideoLoader } from "@webstudio-is/image";
|
|
2
2
|
export type Params = {
|
|
3
3
|
/**
|
|
4
4
|
* When rendering a published version, there is no renderer defined.
|
|
@@ -21,6 +21,7 @@ export type Params = {
|
|
|
21
21
|
};
|
|
22
22
|
export declare const ReactSdkContext: import("react").Context<Params & {
|
|
23
23
|
imageLoader: ImageLoader;
|
|
24
|
+
videoLoader?: VideoLoader;
|
|
24
25
|
resources: Record<string, any>;
|
|
25
26
|
breakpoints: {
|
|
26
27
|
id: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webstudio-is/react-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.227.0",
|
|
4
4
|
"description": "Webstudio JavaScript / TypeScript API",
|
|
5
5
|
"author": "Webstudio <github@webstudio.is>",
|
|
6
6
|
"homepage": "https://webstudio.is",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"type-fest": "^4.37.0",
|
|
15
15
|
"vitest": "^3.1.2",
|
|
16
16
|
"zod": "^3.24.2",
|
|
17
|
-
"@webstudio-is/template": "0.
|
|
17
|
+
"@webstudio-is/template": "0.227.0",
|
|
18
18
|
"@webstudio-is/tsconfig": "1.0.7"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
"change-case": "^5.4.4",
|
|
27
27
|
"html-tags": "^4.0.0",
|
|
28
28
|
"nanoid": "^5.1.5",
|
|
29
|
-
"@webstudio-is/
|
|
30
|
-
"@webstudio-is/
|
|
31
|
-
"@webstudio-is/
|
|
32
|
-
"@webstudio-is/sdk": "0.
|
|
33
|
-
"@webstudio-is/
|
|
29
|
+
"@webstudio-is/fonts": "0.227.0",
|
|
30
|
+
"@webstudio-is/css-engine": "0.227.0",
|
|
31
|
+
"@webstudio-is/icons": "^0.227.0",
|
|
32
|
+
"@webstudio-is/sdk": "0.227.0",
|
|
33
|
+
"@webstudio-is/image": "0.227.0"
|
|
34
34
|
},
|
|
35
35
|
"exports": {
|
|
36
36
|
".": {
|
package/placeholder.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
declare module "__CONSTANTS__" {
|
|
2
|
-
import type { ImageLoader } from "@webstudio-is/image";
|
|
2
|
+
import type { ImageLoader, VideoLoader } from "@webstudio-is/image";
|
|
3
3
|
export const assetBaseUrl: string;
|
|
4
4
|
export const imageLoader: ImageLoader;
|
|
5
|
+
export const videoLoader: undefined | VideoLoader;
|
|
5
6
|
}
|
|
6
7
|
|
|
7
8
|
declare module "__CLIENT__" {
|