@aprovan/patchwork-editor 0.1.2-dev.879ed82 → 0.1.2-dev.93c7b6a

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.
@@ -10,4 +10,4 @@
10
10
  CLI Cleaning output folder
11
11
  ESM Build start
12
12
  ESM dist/index.js 105.26 KB
13
- ESM ⚡️ Build success in 803ms
13
+ ESM ⚡️ Build success in 1052ms
package/dist/lib/vfs.d.ts CHANGED
@@ -8,10 +8,11 @@ export declare function getVFSConfig(): Promise<{
8
8
  }>;
9
9
  /**
10
10
  * Get the VFS store instance (creates one if needed).
11
+ * Store uses HttpBackend to persist to the stitchery server.
11
12
  */
12
13
  export declare function getVFSStore(): VFSStore;
13
14
  /**
14
- * Save a virtual project to disk via the VFS server.
15
+ * Save a virtual project to disk via the stitchery server.
15
16
  * Projects are saved under their ID in the VFS directory.
16
17
  */
17
18
  export declare function saveProject(project: VirtualProject): Promise<void>;
@@ -30,6 +31,6 @@ export declare function saveFile(path: string, content: string): Promise<void>;
30
31
  export declare function loadFile(path: string, encoding?: 'utf8' | 'base64'): Promise<string>;
31
32
  export declare function subscribeToChanges(callback: (record: ChangeRecord) => void): () => void;
32
33
  /**
33
- * Check if VFS is available (backend server has /vfs routes enabled).
34
+ * Check if VFS is available (stitchery server is running with vfs-dir enabled).
34
35
  */
35
36
  export declare function isVFSAvailable(): Promise<boolean>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aprovan/patchwork-editor",
3
- "version": "0.1.2-dev.879ed82",
3
+ "version": "0.1.2-dev.93c7b6a",
4
4
  "description": "Components for facilitating widget generation and editing",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -27,8 +27,8 @@
27
27
  "shiki": "^3.22.0",
28
28
  "tailwind-merge": "^3.4.0",
29
29
  "tiptap-markdown": "^0.9.0",
30
- "@aprovan/bobbin": "0.1.0-dev.879ed82",
31
- "@aprovan/patchwork-compiler": "0.1.2-dev.879ed82"
30
+ "@aprovan/patchwork-compiler": "0.1.2-dev.93c7b6a",
31
+ "@aprovan/bobbin": "0.1.0-dev.93c7b6a"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "react": "^18.0.0 || ^19.0.0",
package/src/lib/vfs.ts CHANGED
@@ -6,11 +6,11 @@ import {
6
6
  } from '@aprovan/patchwork-compiler';
7
7
 
8
8
  /**
9
- * VFS client for persisting virtual projects via HTTP.
9
+ * VFS client for persisting virtual projects to the stitchery server.
10
10
  * Uses HttpBackend which makes HTTP requests to /vfs routes.
11
11
  */
12
12
 
13
- // VFS base URL - points to a backend server's /vfs routes
13
+ // VFS base URL - points to stitchery server's VFS routes
14
14
  const VFS_BASE_URL = '/vfs';
15
15
 
16
16
  // Cached VFS config
@@ -41,6 +41,7 @@ let storeInstance: VFSStore | null = null;
41
41
 
42
42
  /**
43
43
  * Get the VFS store instance (creates one if needed).
44
+ * Store uses HttpBackend to persist to the stitchery server.
44
45
  */
45
46
  export function getVFSStore(): VFSStore {
46
47
  if (!storeInstance) {
@@ -54,7 +55,7 @@ export function getVFSStore(): VFSStore {
54
55
  }
55
56
 
56
57
  /**
57
- * Save a virtual project to disk via the VFS server.
58
+ * Save a virtual project to disk via the stitchery server.
58
59
  * Projects are saved under their ID in the VFS directory.
59
60
  */
60
61
  export async function saveProject(project: VirtualProject): Promise<void> {
@@ -111,7 +112,7 @@ export function subscribeToChanges(
111
112
  }
112
113
 
113
114
  /**
114
- * Check if VFS is available (backend server has /vfs routes enabled).
115
+ * Check if VFS is available (stitchery server is running with vfs-dir enabled).
115
116
  */
116
117
  export async function isVFSAvailable(): Promise<boolean> {
117
118
  try {