webstudio 0.273.0 → 0.274.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/cli.js CHANGED
@@ -1,7 +1,8 @@
1
1
  import "node:process";
2
2
  import "yargs/helpers";
3
- import { ax } from "./cli-CrqM2Hge.js";
3
+ import { ay, ax } from "./cli-DfnIxogH.js";
4
4
  import "yargs";
5
5
  export {
6
- ax as main
6
+ ay as main,
7
+ ax as registerCommands
7
8
  };
@@ -1,7 +1,7 @@
1
1
  import { join } from "node:path";
2
2
  import { readFile, rm } from "node:fs/promises";
3
- import { b as baseComponentMetas, r as radixComponentMetas, a as animationComponentMetas } from "./metas-BiAyZSWN.js";
4
- import { g as generateRemixRoute } from "./cli-CrqM2Hge.js";
3
+ import { b as baseComponentMetas, r as radixComponentMetas, a as animationComponentMetas } from "./metas-rxEC7Qu1.js";
4
+ import { g as generateRemixRoute } from "./cli-DfnIxogH.js";
5
5
  const createFramework = async () => {
6
6
  const routeTemplatesDir = join("app", "route-templates");
7
7
  const htmlTemplate = await readFile(
@@ -1,7 +1,7 @@
1
1
  import { join } from "node:path";
2
2
  import { readFile, rm } from "node:fs/promises";
3
- import { b as baseComponentMetas, r as radixComponentMetas, a as animationComponentMetas } from "./metas-BiAyZSWN.js";
4
- import { g as generateRemixRoute } from "./cli-CrqM2Hge.js";
3
+ import { b as baseComponentMetas, r as radixComponentMetas, a as animationComponentMetas } from "./metas-rxEC7Qu1.js";
4
+ import { g as generateRemixRoute } from "./cli-DfnIxogH.js";
5
5
  const createFramework = async () => {
6
6
  const routeTemplatesDir = join("app", "route-templates");
7
7
  const htmlTemplate = await readFile(
@@ -1,7 +1,7 @@
1
1
  import { join } from "node:path";
2
2
  import { readFile, rm } from "node:fs/promises";
3
- import { b as baseComponentMetas, r as radixComponentMetas, a as animationComponentMetas } from "./metas-BiAyZSWN.js";
4
- import { i as isPathnamePattern } from "./cli-CrqM2Hge.js";
3
+ import { b as baseComponentMetas, r as radixComponentMetas, a as animationComponentMetas } from "./metas-rxEC7Qu1.js";
4
+ import { i as isPathnamePattern } from "./cli-DfnIxogH.js";
5
5
  const generateVikeRoute = (pagePath) => {
6
6
  if (pagePath === "/") {
7
7
  return "index";
@@ -1,4 +1,4 @@
1
- import { S as SlotComponentIcon, d as descendantComponent, E as EmbedIcon, M as MarkdownEmbedIcon, b as body, s as section, n as nav, m as main, h as header, f as footer, a as figure, c as aside, e as article, j as address, k as div, T as TextIcon, l as h6, o as h5, p as h4, q as h3, r as h2, t as h1, u as p, v as a, w as span, P as PaintBrushIcon, x as b, y as i, z as sup, A as sub, B as button, C as input, D as form, W as WebhookFormIcon, F as img, G as ul, H as ol, I as li, J as hr, K as code, L as BracesIcon, N as label, O as textarea, Q as radio, R as RadioCheckedIcon, U as checkbox, V as CheckboxCheckedIcon, X as VimeoIcon, Y as YoutubeIcon, Z as ButtonElementIcon, _ as BoxIcon, $ as XmlIcon, a0 as CalendarIcon, a1 as time, a2 as select, a3 as HeaderIcon, a4 as ResourceIcon, a5 as WindowInfoIcon, a6 as WindowTitleIcon, a7 as VideoIcon, a8 as AnimationGroupIcon, a9 as TextAnimationIcon, aa as StaggerAnimationIcon, ab as PlayIcon, ac as CollapsibleIcon, ad as TriggerIcon, ae as ContentIcon, af as DialogIcon, ag as OverlayIcon, ah as HeadingIcon, ai as PopoverIcon, aj as TooltipIcon, ak as TabsIcon, al as LabelIcon, am as AccordionIcon, an as ItemIcon, ao as NavigationMenuIcon, ap as ListIcon, aq as ListItemIcon, ar as ViewportIcon, as as SelectIcon, at as FormTextFieldIcon, au as CheckMarkIcon, av as SwitchIcon, aw as RadioGroupIcon } from "./cli-CrqM2Hge.js";
1
+ import { S as SlotComponentIcon, d as descendantComponent, E as EmbedIcon, M as MarkdownEmbedIcon, b as body, s as section, n as nav, m as main, h as header, f as footer, a as figure, c as aside, e as article, j as address, k as div, T as TextIcon, l as h6, o as h5, p as h4, q as h3, r as h2, t as h1, u as p, v as a, w as span, P as PaintBrushIcon, x as b, y as i, z as sup, A as sub, B as button, C as input, D as form, W as WebhookFormIcon, F as img, G as ul, H as ol, I as li, J as hr, K as code, L as BracesIcon, N as label, O as textarea, Q as radio, R as RadioCheckedIcon, U as checkbox, V as CheckboxCheckedIcon, X as VimeoIcon, Y as YoutubeIcon, Z as ButtonElementIcon, _ as BoxIcon, $ as XmlIcon, a0 as CalendarIcon, a1 as time, a2 as select, a3 as HeaderIcon, a4 as ResourceIcon, a5 as WindowInfoIcon, a6 as WindowTitleIcon, a7 as VideoIcon, a8 as AnimationGroupIcon, a9 as TextAnimationIcon, aa as StaggerAnimationIcon, ab as PlayIcon, ac as CollapsibleIcon, ad as TriggerIcon, ae as ContentIcon, af as DialogIcon, ag as OverlayIcon, ah as HeadingIcon, ai as PopoverIcon, aj as TooltipIcon, ak as TabsIcon, al as LabelIcon, am as AccordionIcon, an as ItemIcon, ao as NavigationMenuIcon, ap as ListIcon, aq as ListItemIcon, ar as ViewportIcon, as as SelectIcon, at as FormTextFieldIcon, au as CheckMarkIcon, av as SwitchIcon, aw as RadioGroupIcon } from "./cli-DfnIxogH.js";
2
2
  const meta$N = {
3
3
  category: "general",
4
4
  description: "Slot is a container for content that you want to reference across the project. Changes made to a Slot's children will be reflected in all other instances of that Slot.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webstudio",
3
- "version": "0.273.0",
3
+ "version": "0.274.0",
4
4
  "description": "Webstudio CLI",
5
5
  "author": "Webstudio <github@webstudio.is>",
6
6
  "homepage": "https://webstudio.is",
@@ -32,8 +32,11 @@
32
32
  "acorn": "^8.14.1",
33
33
  "acorn-walk": "^8.3.4",
34
34
  "change-case": "^5.4.4",
35
+ "chrome-launcher": "^1.2.1",
35
36
  "deepmerge": "^4.3.1",
36
37
  "env-paths": "^3.0.0",
38
+ "fast-deep-equal": "^3.1.3",
39
+ "immer": "^10.1.1",
37
40
  "nanoid": "^5.1.5",
38
41
  "p-limit": "^6.2.0",
39
42
  "parse5": "7.3.0",
@@ -44,8 +47,10 @@
44
47
  "warn-once": "^0.1.1",
45
48
  "yargs": "^17.7.2",
46
49
  "zod": "^3.24.2",
47
- "@webstudio-is/project-migrations": "0.273.0",
48
- "@webstudio-is/trpc-interface": "0.273.0"
50
+ "@webstudio-is/http-client": "0.274.0",
51
+ "@webstudio-is/project-migrations": "0.274.0",
52
+ "@webstudio-is/project-build": "0.0.0",
53
+ "@webstudio-is/protocol": "0.274.0"
49
54
  },
50
55
  "devDependencies": {
51
56
  "@cloudflare/vite-plugin": "^1.1.0",
@@ -75,23 +80,22 @@
75
80
  "vite": "^6.3.4",
76
81
  "vitest": "^3.1.2",
77
82
  "wrangler": "^3.63.2",
78
- "@webstudio-is/css-engine": "0.273.0",
79
- "@webstudio-is/http-client": "0.273.0",
80
- "@webstudio-is/image": "0.273.0",
81
- "@webstudio-is/protocol": "0.273.0",
82
- "@webstudio-is/react-sdk": "0.273.0",
83
- "@webstudio-is/sdk": "0.273.0",
84
- "@webstudio-is/sdk-components-animation": "0.273.0",
85
- "@webstudio-is/sdk-components-react-radix": "0.273.0",
86
- "@webstudio-is/sdk-components-react": "0.273.0",
87
- "@webstudio-is/sdk-components-react-remix": "0.273.0",
88
- "@webstudio-is/sdk-components-react-router": "0.273.0",
83
+ "@webstudio-is/css-engine": "0.274.0",
84
+ "@webstudio-is/image": "0.274.0",
85
+ "@webstudio-is/react-sdk": "0.274.0",
86
+ "@webstudio-is/sdk": "0.274.0",
87
+ "@webstudio-is/sdk-components-animation": "0.274.0",
88
+ "@webstudio-is/sdk-components-react": "0.274.0",
89
+ "@webstudio-is/sdk-components-react-remix": "0.274.0",
90
+ "@webstudio-is/sdk-components-react-router": "0.274.0",
91
+ "@webstudio-is/sdk-components-react-radix": "0.274.0",
89
92
  "@webstudio-is/tsconfig": "1.0.7",
90
- "@webstudio-is/wsauth": "0.273.0"
93
+ "@webstudio-is/wsauth": "0.274.0"
91
94
  },
92
95
  "scripts": {
93
96
  "typecheck": "tsgo --noEmit",
94
- "build": "rm -rf lib && vite build",
97
+ "generate-docs": "node scripts/generate-docs.mjs",
98
+ "build": "pnpm generate-docs && rm -rf lib && vite build",
95
99
  "test": "vitest run"
96
100
  }
97
101
  }
@@ -12,7 +12,7 @@
12
12
  "build-cf-types": "wrangler types"
13
13
  },
14
14
  "dependencies": {
15
- "@webstudio-is/wsauth": "0.273.0",
15
+ "@webstudio-is/wsauth": "0.274.0",
16
16
  "@remix-run/cloudflare": "2.16.5",
17
17
  "@remix-run/cloudflare-pages": "2.16.5"
18
18
  },
@@ -11,14 +11,14 @@
11
11
  "@remix-run/node": "2.16.5",
12
12
  "@remix-run/react": "2.16.5",
13
13
  "@remix-run/server-runtime": "2.16.5",
14
- "@webstudio-is/image": "0.273.0",
15
- "@webstudio-is/react-sdk": "0.273.0",
16
- "@webstudio-is/sdk": "0.273.0",
17
- "@webstudio-is/sdk-components-react": "0.273.0",
18
- "@webstudio-is/sdk-components-animation": "0.273.0",
19
- "@webstudio-is/sdk-components-react-radix": "0.273.0",
20
- "@webstudio-is/sdk-components-react-remix": "0.273.0",
21
- "@webstudio-is/wsauth": "0.273.0",
14
+ "@webstudio-is/image": "0.274.0",
15
+ "@webstudio-is/react-sdk": "0.274.0",
16
+ "@webstudio-is/sdk": "0.274.0",
17
+ "@webstudio-is/sdk-components-react": "0.274.0",
18
+ "@webstudio-is/sdk-components-animation": "0.274.0",
19
+ "@webstudio-is/sdk-components-react-radix": "0.274.0",
20
+ "@webstudio-is/sdk-components-react-remix": "0.274.0",
21
+ "@webstudio-is/wsauth": "0.274.0",
22
22
  "isbot": "^5.1.25",
23
23
  "react": "18.3.0-canary-14898b6a9-20240318",
24
24
  "react-dom": "18.3.0-canary-14898b6a9-20240318"
@@ -10,14 +10,14 @@
10
10
  "dependencies": {
11
11
  "@react-router/dev": "^7.5.3",
12
12
  "@react-router/fs-routes": "^7.5.3",
13
- "@webstudio-is/image": "0.273.0",
14
- "@webstudio-is/react-sdk": "0.273.0",
15
- "@webstudio-is/sdk": "0.273.0",
16
- "@webstudio-is/sdk-components-animation": "0.273.0",
17
- "@webstudio-is/sdk-components-react-radix": "0.273.0",
18
- "@webstudio-is/sdk-components-react-router": "0.273.0",
19
- "@webstudio-is/sdk-components-react": "0.273.0",
20
- "@webstudio-is/wsauth": "0.273.0",
13
+ "@webstudio-is/image": "0.274.0",
14
+ "@webstudio-is/react-sdk": "0.274.0",
15
+ "@webstudio-is/sdk": "0.274.0",
16
+ "@webstudio-is/sdk-components-animation": "0.274.0",
17
+ "@webstudio-is/sdk-components-react-radix": "0.274.0",
18
+ "@webstudio-is/sdk-components-react-router": "0.274.0",
19
+ "@webstudio-is/sdk-components-react": "0.274.0",
20
+ "@webstudio-is/wsauth": "0.274.0",
21
21
  "isbot": "^5.1.25",
22
22
  "react": "18.3.0-canary-14898b6a9-20240318",
23
23
  "react-dom": "18.3.0-canary-14898b6a9-20240318",
@@ -7,7 +7,7 @@
7
7
  },
8
8
  "dependencies": {
9
9
  "@cloudflare/vite-plugin": "^1.1.0",
10
- "@webstudio-is/wsauth": "0.273.0",
10
+ "@webstudio-is/wsauth": "0.274.0",
11
11
  "wrangler": "^4.14.1"
12
12
  }
13
13
  }
@@ -2,8 +2,5 @@
2
2
  "dependencies": {
3
3
  "worktop": "0.8.0-next.18",
4
4
  "zod": "^3.24.2"
5
- },
6
- "devDependencies": {
7
- "fast-glob": "^3.3.2"
8
5
  }
9
6
  }
@@ -4,20 +4,21 @@ import {
4
4
  } from "@remix-run/dev";
5
5
  import { defineConfig } from "vite";
6
6
 
7
- import { existsSync } from "node:fs";
8
- // @ts-ignore
9
- import path from "node:path";
10
- // @ts-ignore
11
- import fg from "fast-glob";
7
+ import { existsSync, readdirSync } from "node:fs";
12
8
 
13
- const rootDir = ["..", "../..", "../../.."]
14
- .map((dir) => path.join(__dirname, dir))
15
- .find((dir) => existsSync(path.join(dir, ".git")));
9
+ const rootDir = ["..", "../..", "../../.."].find((dir) =>
10
+ existsSync(`${dir}/.git`)
11
+ );
16
12
 
17
13
  const hasPrivateFolders =
18
- fg.sync([path.join(rootDir ?? "", "packages/*/private-src/*")], {
19
- ignore: ["**/node_modules/**"],
20
- }).length > 0;
14
+ rootDir !== undefined &&
15
+ existsSync(`${rootDir}/packages`) &&
16
+ readdirSync(`${rootDir}/packages`, { withFileTypes: true }).some((entry) => {
17
+ return (
18
+ entry.isDirectory() &&
19
+ existsSync(`${rootDir}/packages/${entry.name}/private-src`)
20
+ );
21
+ });
21
22
 
22
23
  const conditions = hasPrivateFolders
23
24
  ? ["webstudio-private", "webstudio"]
@@ -8,12 +8,12 @@
8
8
  "typecheck": "tsgo --noEmit"
9
9
  },
10
10
  "dependencies": {
11
- "@webstudio-is/image": "0.273.0",
12
- "@webstudio-is/react-sdk": "0.273.0",
13
- "@webstudio-is/sdk": "0.273.0",
14
- "@webstudio-is/sdk-components-react": "0.273.0",
15
- "@webstudio-is/sdk-components-animation": "0.273.0",
16
- "@webstudio-is/sdk-components-react-radix": "0.273.0",
11
+ "@webstudio-is/image": "0.274.0",
12
+ "@webstudio-is/react-sdk": "0.274.0",
13
+ "@webstudio-is/sdk": "0.274.0",
14
+ "@webstudio-is/sdk-components-react": "0.274.0",
15
+ "@webstudio-is/sdk-components-animation": "0.274.0",
16
+ "@webstudio-is/sdk-components-react-radix": "0.274.0",
17
17
  "react": "18.3.0-canary-14898b6a9-20240318",
18
18
  "react-dom": "18.3.0-canary-14898b6a9-20240318",
19
19
  "vike": "^0.4.229"