@webstudio-is/react-sdk 0.252.2 → 0.254.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/types/context.d.ts +6 -0
- package/package.json +7 -7
package/lib/types/context.d.ts
CHANGED
|
@@ -6,6 +6,12 @@ export type Params = {
|
|
|
6
6
|
* - preview is the preview mode in builder
|
|
7
7
|
*/
|
|
8
8
|
renderer?: "canvas" | "preview";
|
|
9
|
+
/**
|
|
10
|
+
* Safe mode prevents external JavaScript execution in HTML embeds.
|
|
11
|
+
* When enabled, all HTML embeds act as if "run scripts on canvas" is false,
|
|
12
|
+
* regardless of their actual settings.
|
|
13
|
+
*/
|
|
14
|
+
isSafeMode?: boolean;
|
|
9
15
|
/**
|
|
10
16
|
* Base url or base path for any asset with ending slash.
|
|
11
17
|
* Used to load assets like fonts or images in styles
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webstudio-is/react-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.254.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.254.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.254.0",
|
|
30
|
+
"@webstudio-is/image": "0.254.0",
|
|
31
|
+
"@webstudio-is/css-engine": "0.254.0",
|
|
32
|
+
"@webstudio-is/sdk": "0.254.0",
|
|
33
|
+
"@webstudio-is/icons": "^0.254.0"
|
|
34
34
|
},
|
|
35
35
|
"exports": {
|
|
36
36
|
".": {
|