@powerhousedao/builder-tools 0.9.5-dev.1 → 0.9.5-dev.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerhousedao/builder-tools",
3
- "version": "0.9.5-dev.1",
3
+ "version": "0.9.5-dev.2",
4
4
  "type": "module",
5
5
  "license": "AGPL-3.0-only",
6
6
  "publishConfig": {
@@ -11,7 +11,6 @@
11
11
  ],
12
12
  "exports": {
13
13
  "./connect-studio": "./dist/connect-studio/index.js",
14
- "./connect-studio/hmr": "./dist/connect-studio/hmr.js",
15
14
  "./document-model-editor": "./dist/document-model-editor/index.js",
16
15
  "./editor-utils": "./dist/editor-utils/index.js",
17
16
  "./style.css": "./dist/style.css"
@@ -50,10 +49,11 @@
50
49
  "@radix-ui/react-select": "^2.1.5",
51
50
  "@radix-ui/react-slot": "^1.1.1",
52
51
  "@radix-ui/react-tabs": "^1.1.2",
53
- "@vitejs/plugin-basic-ssl": "^1.2.0",
54
- "@theguild/editor": "^1.3.10",
55
52
  "@tailwindcss/cli": "^4.0.9",
56
53
  "@tailwindcss/vite": "^4.0.9",
54
+ "@theguild/editor": "^1.3.10",
55
+ "@vitejs/plugin-basic-ssl": "^1.2.0",
56
+ "@vitejs/plugin-react": "^4.3.4",
57
57
  "change-case": "^5.4.4",
58
58
  "class-variance-authority": "^0.7.1",
59
59
  "clsx": "^2.1.1",
@@ -70,6 +70,7 @@
70
70
  "react-hook-form": "^7.54.2",
71
71
  "resolve.exports": "^2.0.3",
72
72
  "tailwind-merge": "^3.0.2",
73
+ "tailwindcss": "^4.0.9",
73
74
  "thememirror": "^2.0.1",
74
75
  "usehooks-ts": "^3.1.0",
75
76
  "uuid": "^11.0.5",
@@ -77,12 +78,11 @@
77
78
  "viem": "^2.23.3",
78
79
  "vite": "^6.2.2",
79
80
  "vite-envs": "^4.4.5",
80
- "tailwindcss": "^4.0.9",
81
81
  "zod": "^3.24.2",
82
82
  "@powerhousedao/config": "1.26.0",
83
- "@powerhousedao/design-system": "1.39.1-dev.1",
84
- "document-model": "2.28.0",
85
- "@powerhousedao/scalars": "1.33.0"
83
+ "@powerhousedao/scalars": "1.33.0",
84
+ "@powerhousedao/design-system": "1.39.2-dev.0",
85
+ "document-model": "2.28.0"
86
86
  },
87
87
  "peerDependencies": {
88
88
  "react": "^18.0.0",
@@ -1,2 +0,0 @@
1
- export declare const hmr: import("vite/types/hot.js").ViteHotContext | undefined;
2
- //# sourceMappingURL=hmr.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hmr.d.ts","sourceRoot":"","sources":["../../connect-studio/hmr.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,GAAG,wDAAkB,CAAC"}
@@ -1 +0,0 @@
1
- export const hmr = import.meta.hot;
@@ -1,3 +0,0 @@
1
- import { type PluginOption } from "vite";
2
- export declare const viteLoadHMRModule: (connectPath: string) => PluginOption;
3
- //# sourceMappingURL=hmr.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hmr.d.ts","sourceRoot":"","sources":["../../../connect-studio/vite-plugins/hmr.ts"],"names":[],"mappings":"AAEA,OAAO,EAAiB,KAAK,YAAY,EAAsB,MAAM,MAAM,CAAC;AAG5E,eAAO,MAAM,iBAAiB,GAAI,aAAa,MAAM,KAAG,YAYvD,CAAC"}
@@ -1,57 +0,0 @@
1
- import { exec } from "node:child_process";
2
- import { join } from "node:path";
3
- import { normalizePath } from "vite";
4
- import { HMR_MODULE_IMPORT, viteReplaceImports } from "./base.js";
5
- export const viteLoadHMRModule = (connectPath) => {
6
- return [
7
- viteReplaceImports({
8
- [HMR_MODULE_IMPORT]: normalizePath(join(connectPath, "hmr.js")),
9
- }),
10
- {
11
- name: "vite-plugin-studio-hmr-module",
12
- configureServer(server) {
13
- handleExternalPackageEvents(server);
14
- },
15
- },
16
- ];
17
- };
18
- const handleExternalPackageEvents = (server) => {
19
- server.ws.on("studio:add-external-package", (data, client) => {
20
- const { name } = data;
21
- const installProcess = exec(`ph install ${name}`, {
22
- cwd: process.cwd(),
23
- }, (error) => {
24
- if (error) {
25
- console.error(`\t[${name}]: ${error.message}`);
26
- }
27
- else {
28
- server.ws.send("studio:external-package-added", {
29
- name,
30
- });
31
- }
32
- });
33
- installProcess.stdout?.on("data", (data) => {
34
- console.log(`\t[${name}]: ${data.toString().trim()}`);
35
- });
36
- console.log("Installing external package:", name);
37
- });
38
- server.ws.on("studio:remove-external-package", (data, client) => {
39
- const { name } = data;
40
- const uninstallProcess = exec(`ph uninstall ${name}`, {
41
- cwd: process.cwd(),
42
- }, (error) => {
43
- if (error) {
44
- console.error(`\t[${name}]: ${error.message}`);
45
- }
46
- else {
47
- server.ws.send("studio:external-package-removed", {
48
- name,
49
- });
50
- }
51
- });
52
- uninstallProcess.stdout?.on("data", (data) => {
53
- console.log(`\t[${name}]: ${data.toString().trim()}`);
54
- });
55
- console.log("Removing external package:", name);
56
- });
57
- };