@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 +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/plugins.cjs +1 -1
- package/dist/plugins.d.ts +1 -1
- package/dist/plugins.js +1 -1
- package/dist/{reactPlugin-DTg048L6.cjs → reactPlugin-BGbgHJfV.cjs} +5 -1
- package/dist/{reactPlugin-DTg048L6.cjs.map → reactPlugin-BGbgHJfV.cjs.map} +1 -1
- package/dist/{reactPlugin-BAQFl4pj.d.ts → reactPlugin-CJEggKNs.d.ts} +7 -6
- package/dist/{reactPlugin-Ch2aSTYS.d.ts → reactPlugin-DYARkyXy.d.ts} +7 -6
- package/dist/{reactPlugin-BkDkx1cs.js → reactPlugin-tE73eBS_.js} +5 -1
- package/dist/{reactPlugin-BkDkx1cs.js.map → reactPlugin-tE73eBS_.js.map} +1 -1
- package/package.json +2 -2
- package/src/plugins/reactPlugin.ts +5 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/react-fabric",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.2",
|
|
4
4
|
"description": "React integration for Kubb's fabric - JSX runtime and component-based code generation with React reconciler for building type-safe generators",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"react-devtools-core": "6.1.5",
|
|
106
106
|
"remeda": "^2.33.6",
|
|
107
107
|
"ws": "8.18.0",
|
|
108
|
-
"@kubb/fabric-core": "0.13.
|
|
108
|
+
"@kubb/fabric-core": "0.13.2"
|
|
109
109
|
},
|
|
110
110
|
"devDependencies": {
|
|
111
111
|
"@types/react": "^19.2.14",
|
|
@@ -18,6 +18,7 @@ type ExtendOptions = {
|
|
|
18
18
|
render(App: FabricReactElement): Promise<void>
|
|
19
19
|
renderToString(App: FabricReactElement): Promise<string>
|
|
20
20
|
waitUntilExit(): Promise<void>
|
|
21
|
+
unmount(error?: Error | number | null): void
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
declare global {
|
|
@@ -48,6 +49,10 @@ export const reactPlugin = definePlugin<Options, ExtendOptions>({
|
|
|
48
49
|
async waitUntilExit() {
|
|
49
50
|
await runtime.waitUntilExit()
|
|
50
51
|
},
|
|
52
|
+
unmount(error) {
|
|
53
|
+
runtime.unmount(error)
|
|
54
|
+
ctx.removeAll()
|
|
55
|
+
},
|
|
51
56
|
}
|
|
52
57
|
},
|
|
53
58
|
})
|