@webstudio-is/sdk 0.267.0 → 0.269.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/index.js +370 -41
- package/lib/link-utils.js +27 -0
- package/lib/types/expression.d.ts +8 -1
- package/lib/types/index.d.ts +1 -0
- package/lib/types/instances-utils.d.ts +8 -0
- package/lib/types/link-utils.d.ts +19 -0
- package/lib/types/page-meta-generator.d.ts +1 -0
- package/lib/types/page-utils.d.ts +22 -3
- package/lib/types/schema/component-meta.d.ts +49 -4
- package/lib/types/schema/pages.d.ts +824 -39
- package/lib/types/schema/prop-meta.d.ts +27 -0
- package/package.json +13 -7
|
@@ -309,6 +309,33 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
309
309
|
label?: string | undefined;
|
|
310
310
|
defaultValue?: string | undefined;
|
|
311
311
|
contentMode?: boolean | undefined;
|
|
312
|
+
}>, z.ZodObject<{
|
|
313
|
+
control: z.ZodLiteral<"timeZone">;
|
|
314
|
+
type: z.ZodLiteral<"string">;
|
|
315
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
316
|
+
options: z.ZodArray<z.ZodString, "many">;
|
|
317
|
+
label: z.ZodOptional<z.ZodString>;
|
|
318
|
+
description: z.ZodOptional<z.ZodString>;
|
|
319
|
+
required: z.ZodBoolean;
|
|
320
|
+
contentMode: z.ZodOptional<z.ZodBoolean>;
|
|
321
|
+
}, "strip", z.ZodTypeAny, {
|
|
322
|
+
options: string[];
|
|
323
|
+
type: "string";
|
|
324
|
+
required: boolean;
|
|
325
|
+
control: "timeZone";
|
|
326
|
+
description?: string | undefined;
|
|
327
|
+
label?: string | undefined;
|
|
328
|
+
defaultValue?: string | undefined;
|
|
329
|
+
contentMode?: boolean | undefined;
|
|
330
|
+
}, {
|
|
331
|
+
options: string[];
|
|
332
|
+
type: "string";
|
|
333
|
+
required: boolean;
|
|
334
|
+
control: "timeZone";
|
|
335
|
+
description?: string | undefined;
|
|
336
|
+
label?: string | undefined;
|
|
337
|
+
defaultValue?: string | undefined;
|
|
338
|
+
contentMode?: boolean | undefined;
|
|
312
339
|
}>, z.ZodObject<{
|
|
313
340
|
control: z.ZodLiteral<"multi-select">;
|
|
314
341
|
type: z.ZodLiteral<"string[]">;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webstudio-is/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.269.0",
|
|
4
4
|
"description": "Webstudio project data schema",
|
|
5
5
|
"author": "Webstudio <github@webstudio.is>",
|
|
6
6
|
"homepage": "https://webstudio.is",
|
|
@@ -18,6 +18,11 @@
|
|
|
18
18
|
"types": "./lib/types/runtime.d.ts",
|
|
19
19
|
"import": "./lib/runtime.js"
|
|
20
20
|
},
|
|
21
|
+
"./link-utils": {
|
|
22
|
+
"webstudio": "./src/link-utils.ts",
|
|
23
|
+
"types": "./lib/types/link-utils.d.ts",
|
|
24
|
+
"import": "./lib/link-utils.js"
|
|
25
|
+
},
|
|
21
26
|
"./normalize.css": {
|
|
22
27
|
"webstudio": "./src/__generated__/normalize.css.ts",
|
|
23
28
|
"types": "./lib/types/__generated__/normalize.css.d.ts",
|
|
@@ -46,22 +51,23 @@
|
|
|
46
51
|
"type-fest": "^4.37.0",
|
|
47
52
|
"warn-once": "^0.1.1",
|
|
48
53
|
"zod": "^3.24.2",
|
|
49
|
-
"@webstudio-is/
|
|
50
|
-
"@webstudio-is/
|
|
51
|
-
"@webstudio-is/
|
|
54
|
+
"@webstudio-is/css-engine": "0.269.0",
|
|
55
|
+
"@webstudio-is/fonts": "0.269.0",
|
|
56
|
+
"@webstudio-is/icons": "0.269.0",
|
|
57
|
+
"@webstudio-is/wsauth": "0.269.0"
|
|
52
58
|
},
|
|
53
59
|
"devDependencies": {
|
|
54
60
|
"html-tags": "^4.0.0",
|
|
55
61
|
"vitest": "^3.1.2",
|
|
56
|
-
"@webstudio-is/template": "0.
|
|
57
|
-
"@webstudio-is/css-data": "0.
|
|
62
|
+
"@webstudio-is/template": "0.269.0",
|
|
63
|
+
"@webstudio-is/css-data": "0.269.0",
|
|
58
64
|
"@webstudio-is/tsconfig": "1.0.7"
|
|
59
65
|
},
|
|
60
66
|
"scripts": {
|
|
61
67
|
"typecheck": "tsgo --noEmit -p tsconfig.typecheck.json",
|
|
62
68
|
"test": "vitest run",
|
|
63
69
|
"build:normalize.css": "tsx --conditions=webstudio ./scripts/normalize.css.ts && prettier --write src/__generated__/normalize.css.ts",
|
|
64
|
-
"build": "rm -rf lib && esbuild src/index.ts src/runtime.ts src/__generated__/normalize.css.ts src/core-templates.tsx --outdir=lib --bundle --format=esm --packages=external",
|
|
70
|
+
"build": "rm -rf lib && esbuild src/index.ts src/runtime.ts src/link-utils.ts src/__generated__/normalize.css.ts src/core-templates.tsx --outdir=lib --bundle --format=esm --packages=external",
|
|
65
71
|
"dts": "tsc --project tsconfig.dts.json"
|
|
66
72
|
}
|
|
67
73
|
}
|