@webstudio-is/sdk 0.202.0 → 0.203.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 CHANGED
@@ -430,6 +430,7 @@ var Templates = z11.enum([
430
430
  "vanilla",
431
431
  "docker",
432
432
  "vercel",
433
+ "netlify",
433
434
  "netlify-functions",
434
435
  "netlify-edge-functions",
435
436
  "ssg",
@@ -967,7 +968,10 @@ var parseComponentName = (componentName) => {
967
968
  };
968
969
 
969
970
  // src/expression.ts
970
- import { parseExpressionAt } from "acorn";
971
+ import {
972
+ parse,
973
+ parseExpressionAt
974
+ } from "acorn";
971
975
  import { simple } from "acorn-walk";
972
976
  var lintExpression = ({
973
977
  expression,
@@ -996,7 +1000,7 @@ var lintExpression = ({
996
1000
  return diagnostics;
997
1001
  }
998
1002
  try {
999
- const root = parseExpressionAt(`(${expression})`, 0, {
1003
+ const root = parse(`(${expression})`, {
1000
1004
  ecmaVersion: "latest",
1001
1005
  // support parsing import to forbid explicitly
1002
1006
  sourceType: "module"
@@ -1,21 +1,21 @@
1
1
  import { z } from "zod";
2
- export declare const Templates: z.ZodEnum<["vanilla", "docker", "vercel", "netlify-functions", "netlify-edge-functions", "ssg", "ssg-netlify", "ssg-vercel"]>;
2
+ export declare const Templates: z.ZodEnum<["vanilla", "docker", "vercel", "netlify", "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", "netlify-functions", "netlify-edge-functions", "ssg", "ssg-netlify", "ssg-vercel"]>, "many">;
8
+ templates: z.ZodArray<z.ZodEnum<["vanilla", "docker", "vercel", "netlify", "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" | "netlify-functions" | "netlify-edge-functions" | "ssg" | "ssg-netlify" | "ssg-vercel")[];
13
+ templates: ("vanilla" | "docker" | "vercel" | "netlify" | "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" | "netlify-functions" | "netlify-edge-functions" | "ssg" | "ssg-netlify" | "ssg-vercel")[];
18
+ templates: ("vanilla" | "docker" | "vercel" | "netlify" | "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.202.0",
3
+ "version": "0.203.0",
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.202.0",
43
- "@webstudio-is/icons": "0.202.0",
44
- "@webstudio-is/fonts": "0.202.0"
42
+ "@webstudio-is/css-engine": "0.203.0",
43
+ "@webstudio-is/icons": "0.203.0",
44
+ "@webstudio-is/fonts": "0.203.0"
45
45
  },
46
46
  "devDependencies": {
47
47
  "html-tags": "^4.0.0",
48
48
  "vitest": "^3.0.2",
49
- "@webstudio-is/css-data": "0.0.0",
49
+ "@webstudio-is/template": "0.203.0",
50
50
  "@webstudio-is/tsconfig": "1.0.7",
51
- "@webstudio-is/template": "0.202.0"
51
+ "@webstudio-is/css-data": "0.0.0"
52
52
  },
53
53
  "scripts": {
54
54
  "typecheck": "tsc",