@kubb/react-fabric 0.13.1 → 0.13.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.
@@ -229,11 +229,6 @@ declare class FileManager$1 {
229
229
  }
230
230
  //#endregion
231
231
  //#region ../fabric-core/src/Fabric.d.ts
232
- declare global {
233
- namespace Kubb {
234
- interface Fabric {}
235
- }
236
- }
237
232
  /**
238
233
  * Defines core runtime options for Fabric.
239
234
  */
@@ -415,6 +410,11 @@ interface Fabric<T extends FabricOptions = FabricOptions> extends Kubb.Fabric {
415
410
  * Add one or more files to the Fabric file manager and merge the source, imports, exports
416
411
  */
417
412
  upsertFile(...files: File[]): Promise<void>;
413
+ /**
414
+ * Unmount the Fabric instance and remove all registered event listeners.
415
+ * Plugins may extend this to perform additional cleanup (e.g. process signal listeners).
416
+ */
417
+ unmount(error?: Error | number | null): void;
418
418
  }
419
419
  //#endregion
420
420
  //#region ../fabric-core/src/plugins/types.d.ts
@@ -445,6 +445,7 @@ type ExtendOptions = {
445
445
  render(App: FabricReactElement): Promise<void>;
446
446
  renderToString(App: FabricReactElement): Promise<string>;
447
447
  waitUntilExit(): Promise<void>;
448
+ unmount(error?: Error | number | null): void;
448
449
  };
449
450
  declare global {
450
451
  namespace Kubb {
@@ -458,4 +459,4 @@ declare global {
458
459
  declare const reactPlugin: Plugin<Options, ExtendOptions>;
459
460
  //#endregion
460
461
  export { reactPlugin as n, Options as t };
461
- //# sourceMappingURL=reactPlugin-BAQFl4pj.d.ts.map
462
+ //# sourceMappingURL=reactPlugin-CJEggKNs.d.ts.map
@@ -229,11 +229,6 @@ declare class FileManager$1 {
229
229
  }
230
230
  //#endregion
231
231
  //#region ../fabric-core/src/Fabric.d.ts
232
- declare global {
233
- namespace Kubb {
234
- interface Fabric {}
235
- }
236
- }
237
232
  /**
238
233
  * Defines core runtime options for Fabric.
239
234
  */
@@ -415,6 +410,11 @@ interface Fabric<T extends FabricOptions = FabricOptions> extends Kubb.Fabric {
415
410
  * Add one or more files to the Fabric file manager and merge the source, imports, exports
416
411
  */
417
412
  upsertFile(...files: File[]): Promise<void>;
413
+ /**
414
+ * Unmount the Fabric instance and remove all registered event listeners.
415
+ * Plugins may extend this to perform additional cleanup (e.g. process signal listeners).
416
+ */
417
+ unmount(error?: Error | number | null): void;
418
418
  }
419
419
  //#endregion
420
420
  //#region ../fabric-core/src/plugins/types.d.ts
@@ -445,6 +445,7 @@ type ExtendOptions = {
445
445
  render(App: FabricReactElement): Promise<void>;
446
446
  renderToString(App: FabricReactElement): Promise<string>;
447
447
  waitUntilExit(): Promise<void>;
448
+ unmount(error?: Error | number | null): void;
448
449
  };
449
450
  declare global {
450
451
  namespace Kubb {
@@ -458,4 +459,4 @@ declare global {
458
459
  declare const reactPlugin: Plugin<Options, ExtendOptions>;
459
460
  //#endregion
460
461
  export { reactPlugin as n, Options as t };
461
- //# sourceMappingURL=reactPlugin-Ch2aSTYS.d.ts.map
462
+ //# sourceMappingURL=reactPlugin-DYARkyXy.d.ts.map
@@ -16681,6 +16681,10 @@ const reactPlugin = definePlugin({
16681
16681
  },
16682
16682
  async waitUntilExit() {
16683
16683
  await runtime.waitUntilExit();
16684
+ },
16685
+ unmount(error) {
16686
+ runtime.unmount(error);
16687
+ ctx.removeAll();
16684
16688
  }
16685
16689
  };
16686
16690
  }
@@ -16688,4 +16692,4 @@ const reactPlugin = definePlugin({
16688
16692
 
16689
16693
  //#endregion
16690
16694
  export { Root as i, Runtime as n, Renderer as r, reactPlugin as t };
16691
- //# sourceMappingURL=reactPlugin-BkDkx1cs.js.map
16695
+ //# sourceMappingURL=reactPlugin-tE73eBS_.js.map