@kubohiroya/turbowarp-plus-editor-project-folder 0.20.1 → 0.20.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/dist/index.d.ts CHANGED
@@ -70,6 +70,8 @@ export declare function mountProjectFolder({ vm, document, host, locale, autoRel
70
70
  status: "saved" | "unchanged";
71
71
  sourceRemoved: string[];
72
72
  }>;
73
+ /** Leaves the saved resource intact when another project or a catalog operation replaces it. */
74
+ detach: () => void;
73
75
  /** The folders kept in this browser, when they are offered, for a host that lists or exports them. */
74
76
  browserProjects: BrowserProjects | null;
75
77
  /**
package/dist/index.js CHANGED
@@ -2224,6 +2224,8 @@ function mountProjectFolder({ vm, document, host, locale = "en", autoReload = tr
2224
2224
  readUnsavedFile: (path) => session.readUnsavedFile(path),
2225
2225
  subscribeEdits: (listener) => session.subscribeEdits(listener),
2226
2226
  save: () => withBrowserProject(session.directory, () => session.save()).finally(renderReload),
2227
+ /** Leaves the saved resource intact when another project or a catalog operation replaces it. */
2228
+ detach: () => session.detach(),
2227
2229
  /** The folders kept in this browser, when they are offered, for a host that lists or exports them. */
2228
2230
  browserProjects,
2229
2231
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubohiroya/turbowarp-plus-editor-project-folder",
3
- "version": "0.20.1",
3
+ "version": "0.20.2",
4
4
  "description": "Read and save expanded Scratch project folders in TurboWarp Plus Editor",
5
5
  "type": "module",
6
6
  "license": "MPL-2.0",
package/src/index.ts CHANGED
@@ -399,6 +399,8 @@ export function mountProjectFolder({vm, document, host, locale = 'en', autoReloa
399
399
  readUnsavedFile: (path: string) => session.readUnsavedFile(path),
400
400
  subscribeEdits: (listener: () => void) => session.subscribeEdits(listener),
401
401
  save: () => withBrowserProject(session.directory, () => session.save()).finally(renderReload),
402
+ /** Leaves the saved resource intact when another project or a catalog operation replaces it. */
403
+ detach: () => session.detach(),
402
404
  /** The folders kept in this browser, when they are offered, for a host that lists or exports them. */
403
405
  browserProjects,
404
406
  /**