@webstudio-is/sdk 0.0.0-5558cd0 → 0.0.0-588fe22

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 CHANGED
@@ -430,8 +430,6 @@ var Templates = z11.enum([
430
430
  "vanilla",
431
431
  "docker",
432
432
  "vercel",
433
- "vercel-legacy",
434
- "netlify",
435
433
  "netlify-functions",
436
434
  "netlify-edge-functions",
437
435
  "ssg",
@@ -969,10 +967,7 @@ var parseComponentName = (componentName) => {
969
967
  };
970
968
 
971
969
  // src/expression.ts
972
- import {
973
- parse,
974
- parseExpressionAt
975
- } from "acorn";
970
+ import { parseExpressionAt } from "acorn";
976
971
  import { simple } from "acorn-walk";
977
972
  var lintExpression = ({
978
973
  expression,
@@ -1001,7 +996,7 @@ var lintExpression = ({
1001
996
  return diagnostics;
1002
997
  }
1003
998
  try {
1004
- const root = parse(`(${expression})`, {
999
+ const root = parseExpressionAt(`(${expression})`, 0, {
1005
1000
  ecmaVersion: "latest",
1006
1001
  // support parsing import to forbid explicitly
1007
1002
  sourceType: "module"
@@ -1,21 +1,21 @@
1
1
  import { z } from "zod";
2
- export declare const Templates: z.ZodEnum<["vanilla", "docker", "vercel", "vercel-legacy", "netlify", "netlify-functions", "netlify-edge-functions", "ssg", "ssg-netlify", "ssg-vercel"]>;
2
+ export declare const Templates: z.ZodEnum<["vanilla", "docker", "vercel", "netlify-functions", "netlify-edge-functions", "ssg", "ssg-netlify", "ssg-vercel"]>;
3
3
  export type Templates = z.infer<typeof Templates>;
4
4
  export declare const Deployment: z.ZodUnion<[z.ZodObject<{
5
5
  destination: z.ZodLiteral<"static">;
6
6
  name: z.ZodString;
7
7
  assetsDomain: z.ZodString;
8
- templates: z.ZodArray<z.ZodEnum<["vanilla", "docker", "vercel", "vercel-legacy", "netlify", "netlify-functions", "netlify-edge-functions", "ssg", "ssg-netlify", "ssg-vercel"]>, "many">;
8
+ templates: z.ZodArray<z.ZodEnum<["vanilla", "docker", "vercel", "netlify-functions", "netlify-edge-functions", "ssg", "ssg-netlify", "ssg-vercel"]>, "many">;
9
9
  }, "strip", z.ZodTypeAny, {
10
10
  name: string;
11
11
  destination: "static";
12
12
  assetsDomain: string;
13
- templates: ("vanilla" | "docker" | "vercel" | "vercel-legacy" | "netlify" | "netlify-functions" | "netlify-edge-functions" | "ssg" | "ssg-netlify" | "ssg-vercel")[];
13
+ templates: ("vanilla" | "docker" | "vercel" | "netlify-functions" | "netlify-edge-functions" | "ssg" | "ssg-netlify" | "ssg-vercel")[];
14
14
  }, {
15
15
  name: string;
16
16
  destination: "static";
17
17
  assetsDomain: string;
18
- templates: ("vanilla" | "docker" | "vercel" | "vercel-legacy" | "netlify" | "netlify-functions" | "netlify-edge-functions" | "ssg" | "ssg-netlify" | "ssg-vercel")[];
18
+ templates: ("vanilla" | "docker" | "vercel" | "netlify-functions" | "netlify-edge-functions" | "ssg" | "ssg-netlify" | "ssg-vercel")[];
19
19
  }>, z.ZodObject<{
20
20
  destination: z.ZodOptional<z.ZodLiteral<"saas">>;
21
21
  domains: z.ZodArray<z.ZodString, "many">;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webstudio-is/sdk",
3
- "version": "0.0.0-5558cd0",
3
+ "version": "0.0.0-588fe22",
4
4
  "description": "Webstudio project data schema",
5
5
  "author": "Webstudio <github@webstudio.is>",
6
6
  "homepage": "https://webstudio.is",
@@ -39,16 +39,16 @@
39
39
  "reserved-identifiers": "^1.0.0",
40
40
  "type-fest": "^4.32.0",
41
41
  "zod": "^3.22.4",
42
- "@webstudio-is/css-engine": "0.0.0-5558cd0",
43
- "@webstudio-is/icons": "0.0.0-5558cd0",
44
- "@webstudio-is/fonts": "0.0.0-5558cd0"
42
+ "@webstudio-is/css-engine": "0.0.0-588fe22",
43
+ "@webstudio-is/fonts": "0.0.0-588fe22",
44
+ "@webstudio-is/icons": "0.0.0-588fe22"
45
45
  },
46
46
  "devDependencies": {
47
47
  "html-tags": "^4.0.0",
48
- "vitest": "^3.0.4",
48
+ "vitest": "^3.0.2",
49
49
  "@webstudio-is/css-data": "0.0.0",
50
- "@webstudio-is/template": "0.0.0-5558cd0",
51
- "@webstudio-is/tsconfig": "1.0.7"
50
+ "@webstudio-is/tsconfig": "1.0.7",
51
+ "@webstudio-is/template": "0.0.0-588fe22"
52
52
  },
53
53
  "scripts": {
54
54
  "typecheck": "tsc",