@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.
package/dist/index.cjs CHANGED
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_react$1 = require('./react-DorQ0Kea.cjs');
3
3
  require('./jsx-runtime-7CEZevwV.cjs');
4
4
  const require_jsx_runtime$1 = require('./jsx-runtime.cjs');
5
- const require_reactPlugin = require('./reactPlugin-DTg048L6.cjs');
5
+ const require_reactPlugin = require('./reactPlugin-BGbgHJfV.cjs');
6
6
  let _kubb_fabric_core = require("@kubb/fabric-core");
7
7
  let node_child_process = require("node:child_process");
8
8
  let ws = require("ws");
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { i as createFunctionParams, t as FunctionParams } from "./getFunctionParams-ClT1iMr_.js";
2
2
  import { FabricReactElement, FabricReactNode, Key, t as types_d_exports } from "./types.js";
3
- import { t as Options$1 } from "./reactPlugin-Ch2aSTYS.js";
3
+ import { t as Options$1 } from "./reactPlugin-DYARkyXy.js";
4
4
  import { Fabric, FileManager, FileManager as FileManager$1, FileProcessor, TreeNode, TreeNode as TreeNode$1, createContext, createFabric, createFile, useApp, useContext, useFile, useLifecycle } from "@kubb/fabric-core";
5
5
  import { Fabric as Fabric$1, FabricConfig, FabricMode, KubbFile } from "@kubb/fabric-core/types";
6
6
  import * as react from "react";
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import { i as __toESM } from "./chunk-Cnw5r_-A.js";
2
2
  import { t as require_react } from "./react-D652OKii.js";
3
3
  import "./jsx-runtime-Dm7PKVbc.js";
4
4
  import { Fragment, jsx, jsxs } from "./jsx-runtime.js";
5
- import { i as Root, n as Runtime, r as Renderer, t as reactPlugin } from "./reactPlugin-BkDkx1cs.js";
5
+ import { i as Root, n as Runtime, r as Renderer, t as reactPlugin } from "./reactPlugin-tE73eBS_.js";
6
6
  import { AppContext, FileContext, FileManager, FileProcessor, NodeTreeContext, RootContext, TreeNode, createContext, createFabric, createFabric as createFabric$1, createFile, createJSDoc, onProcessExit, provide, useApp, useContext, useContext as useContext$1, useFile, useFile as useFile$1, useFileManager, useLifecycle, useNodeTree } from "@kubb/fabric-core";
7
7
  import { spawn } from "node:child_process";
8
8
  import ws from "ws";
package/dist/plugins.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  require('./react-DorQ0Kea.cjs');
3
3
  require('./jsx-runtime-7CEZevwV.cjs');
4
- const require_reactPlugin = require('./reactPlugin-DTg048L6.cjs');
4
+ const require_reactPlugin = require('./reactPlugin-BGbgHJfV.cjs');
5
5
 
6
6
  exports.reactPlugin = require_reactPlugin.reactPlugin;
7
7
  var _kubb_fabric_core_plugins = require("@kubb/fabric-core/plugins");
package/dist/plugins.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { n as reactPlugin } from "./reactPlugin-Ch2aSTYS.js";
1
+ import { n as reactPlugin } from "./reactPlugin-DYARkyXy.js";
2
2
  export * from "@kubb/fabric-core/plugins";
3
3
  export { reactPlugin };
package/dist/plugins.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import "./react-D652OKii.js";
2
2
  import "./jsx-runtime-Dm7PKVbc.js";
3
- import { t as reactPlugin } from "./reactPlugin-BkDkx1cs.js";
3
+ import { t as reactPlugin } from "./reactPlugin-tE73eBS_.js";
4
4
 
5
5
  export * from "@kubb/fabric-core/plugins"
6
6
 
@@ -16681,6 +16681,10 @@ const reactPlugin = (0, _kubb_fabric_core_plugins.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
  }
@@ -16711,4 +16715,4 @@ Object.defineProperty(exports, 'reactPlugin', {
16711
16715
  return reactPlugin;
16712
16716
  }
16713
16717
  });
16714
- //# sourceMappingURL=reactPlugin-DTg048L6.cjs.map
16718
+ //# sourceMappingURL=reactPlugin-BGbgHJfV.cjs.map