@kubb/react-fabric 0.13.0 → 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/{chunk-DbZtQ4qb.js → chunk-Cnw5r_-A.js} +1 -5
- package/dist/{getFunctionParams-BaDz1zZu.d.cts → getFunctionParams-BJb7Kd-D.d.ts} +2 -1
- package/dist/{getFunctionParams-CINBJQGH.d.ts → getFunctionParams-ClT1iMr_.d.ts} +2 -3
- package/dist/globals.d.ts +2 -2
- package/dist/index.cjs +27 -27
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +28 -28
- package/dist/index.js.map +1 -1
- package/dist/jsx-dev-runtime.cjs +4 -21
- package/dist/jsx-dev-runtime.cjs.map +1 -1
- package/dist/jsx-dev-runtime.d.ts +3 -3
- package/dist/jsx-dev-runtime.js +5 -22
- package/dist/jsx-dev-runtime.js.map +1 -1
- package/dist/{jsx-namespace-Bg7Kfg54.d.ts → jsx-namespace-BLQ6SvuD.d.ts} +2 -2
- package/dist/{jsx-namespace-zRAnd-2Y.d.cts → jsx-namespace-CFK460kI.d.ts} +3 -3
- package/dist/{jsx-runtime-CRt7_dDm.cjs → jsx-runtime-7CEZevwV.cjs} +5 -23
- package/dist/{jsx-runtime-CRt7_dDm.cjs.map → jsx-runtime-7CEZevwV.cjs.map} +1 -1
- package/dist/{jsx-runtime-CQFBnRKx.js → jsx-runtime-Dm7PKVbc.js} +6 -24
- package/dist/{jsx-runtime-CQFBnRKx.js.map → jsx-runtime-Dm7PKVbc.js.map} +1 -1
- package/dist/jsx-runtime.cjs +4 -3
- package/dist/jsx-runtime.d.ts +3 -3
- package/dist/jsx-runtime.js +5 -4
- package/dist/plugins.cjs +3 -3
- package/dist/plugins.d.ts +1 -1
- package/dist/plugins.js +3 -3
- package/dist/{react--draJ5Pm.js → react-D652OKii.js} +31 -91
- package/dist/{react--draJ5Pm.js.map → react-D652OKii.js.map} +1 -1
- package/dist/{react-s8IDJhpB.cjs → react-DorQ0Kea.cjs} +30 -100
- package/dist/{react-s8IDJhpB.cjs.map → react-DorQ0Kea.cjs.map} +1 -1
- package/dist/{reactPlugin-9aTetBnU.cjs → reactPlugin-BGbgHJfV.cjs} +410 -1663
- package/dist/reactPlugin-BGbgHJfV.cjs.map +1 -0
- package/dist/{reactPlugin-D7d08sbQ.d.ts → reactPlugin-CJEggKNs.d.ts} +8 -7
- package/dist/{reactPlugin-CfilrfRJ.d.cts → reactPlugin-DYARkyXy.d.ts} +9 -8
- package/dist/{reactPlugin-CQr7EBIP.js → reactPlugin-tE73eBS_.js} +411 -1646
- package/dist/reactPlugin-tE73eBS_.js.map +1 -0
- package/dist/types.d.ts +4 -3
- package/package.json +5 -5
- package/src/plugins/reactPlugin.ts +5 -0
- package/dist/globals.d.cts +0 -23
- package/dist/index.d.cts +0 -346
- package/dist/jsx-dev-runtime.d.cts +0 -13
- package/dist/jsx-runtime.d.cts +0 -15
- package/dist/parsers.d.cts +0 -1
- package/dist/plugins.d.cts +0 -3
- package/dist/reactPlugin-9aTetBnU.cjs.map +0 -1
- package/dist/reactPlugin-CQr7EBIP.js.map +0 -1
- package/dist/types.d.cts +0 -61
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { r as __name } from "./chunk-DbZtQ4qb.js";
|
|
2
1
|
import { FabricReactElement, t as types_d_exports } from "./types.js";
|
|
3
2
|
import { TreeNode } from "@kubb/fabric-core";
|
|
4
3
|
|
|
@@ -230,11 +229,6 @@ declare class FileManager$1 {
|
|
|
230
229
|
}
|
|
231
230
|
//#endregion
|
|
232
231
|
//#region ../fabric-core/src/Fabric.d.ts
|
|
233
|
-
declare global {
|
|
234
|
-
namespace Kubb {
|
|
235
|
-
interface Fabric {}
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
232
|
/**
|
|
239
233
|
* Defines core runtime options for Fabric.
|
|
240
234
|
*/
|
|
@@ -416,6 +410,11 @@ interface Fabric<T extends FabricOptions = FabricOptions> extends Kubb.Fabric {
|
|
|
416
410
|
* Add one or more files to the Fabric file manager and merge the source, imports, exports
|
|
417
411
|
*/
|
|
418
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;
|
|
419
418
|
}
|
|
420
419
|
//#endregion
|
|
421
420
|
//#region ../fabric-core/src/plugins/types.d.ts
|
|
@@ -446,6 +445,7 @@ type ExtendOptions = {
|
|
|
446
445
|
render(App: FabricReactElement): Promise<void>;
|
|
447
446
|
renderToString(App: FabricReactElement): Promise<string>;
|
|
448
447
|
waitUntilExit(): Promise<void>;
|
|
448
|
+
unmount(error?: Error | number | null): void;
|
|
449
449
|
};
|
|
450
450
|
declare global {
|
|
451
451
|
namespace Kubb {
|
|
@@ -458,4 +458,5 @@ declare global {
|
|
|
458
458
|
}
|
|
459
459
|
declare const reactPlugin: Plugin<Options, ExtendOptions>;
|
|
460
460
|
//#endregion
|
|
461
|
-
export { reactPlugin as n, Options as t };
|
|
461
|
+
export { reactPlugin as n, Options as t };
|
|
462
|
+
//# sourceMappingURL=reactPlugin-CJEggKNs.d.ts.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { FabricReactElement, t as types_d_exports } from "./types.cjs";
|
|
1
|
+
import { FabricReactElement, t as types_d_exports } from "./types.js";
|
|
3
2
|
import { TreeNode } from "@kubb/fabric-core";
|
|
4
3
|
|
|
5
4
|
//#region ../fabric-core/src/KubbFile.d.ts
|
|
@@ -230,11 +229,6 @@ declare class FileManager$1 {
|
|
|
230
229
|
}
|
|
231
230
|
//#endregion
|
|
232
231
|
//#region ../fabric-core/src/Fabric.d.ts
|
|
233
|
-
declare global {
|
|
234
|
-
namespace Kubb {
|
|
235
|
-
interface Fabric {}
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
232
|
/**
|
|
239
233
|
* Defines core runtime options for Fabric.
|
|
240
234
|
*/
|
|
@@ -416,6 +410,11 @@ interface Fabric<T extends FabricOptions = FabricOptions> extends Kubb.Fabric {
|
|
|
416
410
|
* Add one or more files to the Fabric file manager and merge the source, imports, exports
|
|
417
411
|
*/
|
|
418
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;
|
|
419
418
|
}
|
|
420
419
|
//#endregion
|
|
421
420
|
//#region ../fabric-core/src/plugins/types.d.ts
|
|
@@ -446,6 +445,7 @@ type ExtendOptions = {
|
|
|
446
445
|
render(App: FabricReactElement): Promise<void>;
|
|
447
446
|
renderToString(App: FabricReactElement): Promise<string>;
|
|
448
447
|
waitUntilExit(): Promise<void>;
|
|
448
|
+
unmount(error?: Error | number | null): void;
|
|
449
449
|
};
|
|
450
450
|
declare global {
|
|
451
451
|
namespace Kubb {
|
|
@@ -458,4 +458,5 @@ declare global {
|
|
|
458
458
|
}
|
|
459
459
|
declare const reactPlugin: Plugin<Options, ExtendOptions>;
|
|
460
460
|
//#endregion
|
|
461
|
-
export { reactPlugin as n, Options as t };
|
|
461
|
+
export { reactPlugin as n, Options as t };
|
|
462
|
+
//# sourceMappingURL=reactPlugin-DYARkyXy.d.ts.map
|