@webstudio-is/sdk 0.168.0 → 0.173.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.
@@ -13,4 +13,4 @@ export type Scope = {
13
13
  * occupiedIdentifiers parameter prevents collision with hardcoded
14
14
  * identifiers.
15
15
  */
16
- export declare const createScope: (occupiedIdentifiers?: string[]) => Scope;
16
+ export declare const createScope: (occupiedIdentifiers?: string[], normalizeName?: (name: string) => string, separator?: string) => Scope;
@@ -0,0 +1 @@
1
+ export * from "./jsx";
package/package.json CHANGED
@@ -1,15 +1,20 @@
1
1
  {
2
2
  "name": "@webstudio-is/sdk",
3
- "version": "0.168.0",
3
+ "version": "0.173.0",
4
4
  "description": "Webstudio project data schema",
5
5
  "author": "Webstudio <github@webstudio.is>",
6
6
  "homepage": "https://webstudio.is",
7
7
  "license": "AGPL-3.0-or-later",
8
8
  "type": "module",
9
9
  "exports": {
10
- "webstudio": "./src/index.ts",
11
- "types": "./lib/types/index.d.ts",
12
- "import": "./lib/index.js"
10
+ ".": {
11
+ "webstudio": "./src/index.ts",
12
+ "types": "./lib/types/index.d.ts",
13
+ "import": "./lib/index.js"
14
+ },
15
+ "./testing": {
16
+ "webstudio": "./src/testing.ts"
17
+ }
13
18
  },
14
19
  "files": [
15
20
  "lib/*",
@@ -21,20 +26,18 @@
21
26
  "acorn-walk": "^8.3.2",
22
27
  "type-fest": "^4.3.1",
23
28
  "zod": "^3.22.4",
24
- "@webstudio-is/css-engine": "0.168.0",
25
- "@webstudio-is/fonts": "0.168.0"
29
+ "@webstudio-is/fonts": "0.173.0",
30
+ "@webstudio-is/css-engine": "0.173.0"
26
31
  },
27
32
  "devDependencies": {
28
33
  "@jest/globals": "^29.7.0",
29
34
  "strip-indent": "^4.0.0",
30
- "@webstudio-is/jest-config": "1.0.7",
31
- "@webstudio-is/tsconfig": "1.0.7"
35
+ "@webstudio-is/tsconfig": "1.0.7",
36
+ "@webstudio-is/jest-config": "1.0.7"
32
37
  },
33
38
  "scripts": {
34
39
  "typecheck": "tsc",
35
40
  "test": "NODE_OPTIONS=--experimental-vm-modules jest",
36
- "checks": "pnpm typecheck && pnpm test",
37
- "dev": "rm -rf lib && esbuild 'src/**/*.ts' 'src/**/*.tsx' --outdir=lib --watch",
38
41
  "build": "rm -rf lib && esbuild src/index.ts --outdir=lib --bundle --format=esm --packages=external",
39
42
  "dts": "tsc --project tsconfig.dts.json"
40
43
  }
@@ -1,84 +0,0 @@
1
- /**
2
- * Generates data based utilities at build time
3
- */
4
- export declare const generateFormsProperties: (props: Map<string, {
5
- value: number;
6
- type: "number";
7
- id: string;
8
- name: string;
9
- instanceId: string;
10
- required?: boolean | undefined;
11
- } | {
12
- value: string;
13
- type: "string";
14
- id: string;
15
- name: string;
16
- instanceId: string;
17
- required?: boolean | undefined;
18
- } | {
19
- value: boolean;
20
- type: "boolean";
21
- id: string;
22
- name: string;
23
- instanceId: string;
24
- required?: boolean | undefined;
25
- } | {
26
- type: "json";
27
- id: string;
28
- name: string;
29
- instanceId: string;
30
- value?: unknown;
31
- required?: boolean | undefined;
32
- } | {
33
- value: string;
34
- type: "asset";
35
- id: string;
36
- name: string;
37
- instanceId: string;
38
- required?: boolean | undefined;
39
- } | {
40
- value: (string | {
41
- instanceId: string;
42
- pageId: string;
43
- }) & (string | {
44
- instanceId: string;
45
- pageId: string;
46
- } | undefined);
47
- type: "page";
48
- id: string;
49
- name: string;
50
- instanceId: string;
51
- required?: boolean | undefined;
52
- } | {
53
- value: string[];
54
- type: "string[]";
55
- id: string;
56
- name: string;
57
- instanceId: string;
58
- required?: boolean | undefined;
59
- } | {
60
- value: string;
61
- type: "parameter";
62
- id: string;
63
- name: string;
64
- instanceId: string;
65
- required?: boolean | undefined;
66
- } | {
67
- value: string;
68
- type: "expression";
69
- id: string;
70
- name: string;
71
- instanceId: string;
72
- required?: boolean | undefined;
73
- } | {
74
- value: {
75
- code: string;
76
- type: "execute";
77
- args: string[];
78
- }[];
79
- type: "action";
80
- id: string;
81
- name: string;
82
- instanceId: string;
83
- required?: boolean | undefined;
84
- }>) => string;