@webstudio-is/sdk 0.274.5 → 0.276.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/core-templates.js +1 -1
- package/lib/index.js +510 -18
- package/lib/runtime.js +290 -2
- package/lib/schema-org.js +5703 -0
- package/lib/schema.js +33 -8
- package/lib/types/core-metas.d.ts +1 -1
- package/lib/types/index.d.ts +2 -0
- package/lib/types/input-json-schema.d.ts +15 -0
- package/lib/types/json-ld-utils.d.ts +3 -0
- package/lib/types/json-ld.d.ts +31 -0
- package/lib/types/runtime.d.ts +1 -0
- package/lib/types/schema/animation-schema.d.ts +1768 -50560
- package/lib/types/schema/assets.d.ts +126 -479
- package/lib/types/schema/breakpoints.d.ts +6 -54
- package/lib/types/schema/component-meta.d.ts +464 -11361
- package/lib/types/schema/data-sources.d.ts +38 -238
- package/lib/types/schema/deployment.d.ts +20 -31
- package/lib/types/schema/instances.d.ts +34 -165
- package/lib/types/schema/pages.d.ts +109 -1211
- package/lib/types/schema/prop-meta.d.ts +48 -435
- package/lib/types/schema/props.d.ts +937 -35745
- package/lib/types/schema/resources.d.ts +15 -136
- package/lib/types/schema/style-source-selections.d.ts +4 -16
- package/lib/types/schema/style-sources.d.ts +7 -49
- package/lib/types/schema/styles.d.ts +804 -5240
- package/lib/types/schema/webstudio.d.ts +1259 -23420
- package/lib/types/scope.d.ts +3 -1
- package/package.json +20 -11
package/lib/types/scope.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export type Scope = {
|
|
|
6
6
|
*/
|
|
7
7
|
getName(id: string, preferredName: string): string;
|
|
8
8
|
};
|
|
9
|
+
declare const normalizeJsName: (name: string) => string;
|
|
9
10
|
/**
|
|
10
11
|
* Utility to maintain unique variable when generate code.
|
|
11
12
|
* Single scope is shared for generated module for simplicity.
|
|
@@ -13,4 +14,5 @@ export type Scope = {
|
|
|
13
14
|
* occupiedIdentifiers parameter prevents collision with hardcoded
|
|
14
15
|
* identifiers.
|
|
15
16
|
*/
|
|
16
|
-
export declare const createScope: (occupiedIdentifiers?: string[], normalizeName?:
|
|
17
|
+
export declare const createScope: (occupiedIdentifiers?: string[], normalizeName?: typeof normalizeJsName, separator?: string) => Scope;
|
|
18
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webstudio-is/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.276.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
|
+
"./schema-org": {
|
|
22
|
+
"webstudio": "./src/schema-org.ts",
|
|
23
|
+
"types": "./lib/types/schema-org.d.ts",
|
|
24
|
+
"import": "./lib/schema-org.js"
|
|
25
|
+
},
|
|
21
26
|
"./link-utils": {
|
|
22
27
|
"webstudio": "./src/link-utils.ts",
|
|
23
28
|
"types": "./lib/types/link-utils.d.ts",
|
|
@@ -52,27 +57,31 @@
|
|
|
52
57
|
"acorn": "^8.14.1",
|
|
53
58
|
"acorn-walk": "^8.3.4",
|
|
54
59
|
"change-case": "^5.4.4",
|
|
60
|
+
"json-schema-typed": "^8.0.2",
|
|
55
61
|
"reserved-identifiers": "^1.0.0",
|
|
56
62
|
"type-fest": "^4.37.0",
|
|
57
63
|
"warn-once": "^0.1.1",
|
|
58
|
-
"zod": "^
|
|
59
|
-
"@webstudio-is/
|
|
60
|
-
"@webstudio-is/
|
|
61
|
-
"@webstudio-is/
|
|
62
|
-
"@webstudio-is/wsauth": "0.
|
|
64
|
+
"zod": "^4.4.3",
|
|
65
|
+
"@webstudio-is/fonts": "0.276.0",
|
|
66
|
+
"@webstudio-is/icons": "0.276.0",
|
|
67
|
+
"@webstudio-is/css-engine": "0.276.0",
|
|
68
|
+
"@webstudio-is/wsauth": "0.276.0"
|
|
63
69
|
},
|
|
64
70
|
"devDependencies": {
|
|
65
71
|
"html-tags": "^4.0.0",
|
|
72
|
+
"papaparse": "^5.5.3",
|
|
73
|
+
"@types/papaparse": "^5.5.2",
|
|
66
74
|
"vitest": "^3.1.2",
|
|
67
|
-
"@webstudio-is/
|
|
68
|
-
"@webstudio-is/
|
|
75
|
+
"@webstudio-is/template": "0.276.0",
|
|
76
|
+
"@webstudio-is/css-data": "0.276.0",
|
|
69
77
|
"@webstudio-is/tsconfig": "1.0.7"
|
|
70
78
|
},
|
|
71
79
|
"scripts": {
|
|
72
|
-
"typecheck": "
|
|
80
|
+
"typecheck": "tsc --noEmit -p tsconfig.typecheck.json",
|
|
73
81
|
"test": "vitest run",
|
|
74
|
-
"build:
|
|
75
|
-
"build": "
|
|
82
|
+
"build:schema-org-data": "tsx scripts/schema-org-data.ts && oxfmt src/__generated__/schema-org-data.ts",
|
|
83
|
+
"build:normalize.css": "tsx --conditions=webstudio ./scripts/normalize.css.ts && oxfmt src/__generated__/normalize.css.ts",
|
|
84
|
+
"build": "rm -rf lib && esbuild src/index.ts src/runtime.ts src/schema-org.ts src/link-utils.ts src/schema.ts src/__generated__/normalize.css.ts src/core-templates.tsx --outdir=lib --bundle --format=esm --packages=external",
|
|
76
85
|
"dts": "tsc --project tsconfig.dts.json"
|
|
77
86
|
}
|
|
78
87
|
}
|