@kubb/react-fabric 0.11.5 → 0.11.6
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/{Fabric-BELBf-bX.d.cts → Fabric-4Ac6xwwR.d.ts} +4 -2
- package/dist/{Fabric-8pppnIg0.d.ts → Fabric-xd8epqSF.d.cts} +1 -2
- package/dist/{TreeNode-Dqmg64Vf.d.cts → TreeNode-CoigrXFC.d.ts} +3 -3
- package/dist/{TreeNode-B5YhdIi1.d.ts → TreeNode-Pwm74f2F.d.cts} +2 -3
- package/dist/{chunk-BCPZiDLE.js → chunk-DkQCb-7t.js} +5 -1
- package/dist/globals.d.cts +3 -4
- package/dist/globals.d.ts +4 -4
- package/dist/index.cjs +110 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +26 -24
- package/dist/index.d.ts +27 -24
- package/dist/index.js +107 -9
- package/dist/index.js.map +1 -1
- package/dist/jsx-dev-runtime.cjs +28 -12
- package/dist/jsx-dev-runtime.cjs.map +1 -1
- package/dist/jsx-dev-runtime.d.cts +6 -7
- package/dist/jsx-dev-runtime.d.ts +7 -7
- package/dist/jsx-dev-runtime.js +25 -8
- package/dist/jsx-dev-runtime.js.map +1 -1
- package/dist/{jsx-namespace-Cwg_oGAF.d.cts → jsx-namespace-CDB8OdrC.d.cts} +3 -3
- package/dist/{jsx-namespace-CfIw-cgT.d.ts → jsx-namespace-rawlYj_g.d.ts} +3 -3
- package/dist/{jsx-runtime-Cq39dA50.cjs → jsx-runtime-6sQc68DD.cjs} +30 -13
- package/dist/{jsx-runtime-Cq39dA50.cjs.map → jsx-runtime-6sQc68DD.cjs.map} +1 -1
- package/dist/{jsx-runtime-Isgf9orn.js → jsx-runtime-CT8FKS42.js} +27 -9
- package/dist/{jsx-runtime-Isgf9orn.js.map → jsx-runtime-CT8FKS42.js.map} +1 -1
- package/dist/jsx-runtime.cjs +2 -2
- package/dist/jsx-runtime.d.cts +6 -7
- package/dist/jsx-runtime.d.ts +7 -7
- package/dist/jsx-runtime.js +2 -2
- package/dist/parsers.d.cts +2 -3
- package/dist/parsers.d.ts +3 -3
- package/dist/plugins.cjs +3 -4
- package/dist/plugins.d.cts +3 -4
- package/dist/plugins.d.ts +4 -4
- package/dist/plugins.js +3 -4
- package/dist/{react-DfIUVisP.js → react-CDrFaZVO.js} +92 -32
- package/dist/{react-DfIUVisP.js.map → react-CDrFaZVO.js.map} +1 -1
- package/dist/{react-CWV4qQg2.cjs → react-DgrQzKJp.cjs} +144 -35
- package/dist/{react-CWV4qQg2.cjs.map → react-DgrQzKJp.cjs.map} +1 -1
- package/dist/{reactPlugin-0E3yLJvd.d.ts → reactPlugin-6pWd-WfZ.d.cts} +2 -3
- package/dist/{Renderer-CRT9gs-h.cjs → reactPlugin-BzGD_nR7.cjs} +11134 -8373
- package/dist/reactPlugin-BzGD_nR7.cjs.map +1 -0
- package/dist/{reactPlugin-yhmHKdUw.d.cts → reactPlugin-CpMrftCn.d.ts} +3 -3
- package/dist/{Renderer-CgXqdVqV.js → reactPlugin-lOa0xpGM.js} +11108 -8359
- package/dist/reactPlugin-lOa0xpGM.js.map +1 -0
- package/dist/{types-BKNiqRcq.d.cts → types-125Qu-Uh.d.ts} +4 -4
- package/dist/{types-BKiEQWrZ.d.ts → types-BrE57KWH.d.cts} +3 -4
- package/dist/types.d.cts +2 -2
- package/dist/types.d.ts +2 -2
- package/package.json +5 -12
- package/shims.d.ts +1 -0
- package/src/components/App.tsx +5 -0
- package/src/createReactFabric.ts +2 -2
- package/src/devtools.ts +3 -4
- package/src/index.ts +1 -1
- package/dist/Renderer-7rMwyODQ.cjs +0 -4
- package/dist/Renderer-CRT9gs-h.cjs.map +0 -1
- package/dist/Renderer-CgXqdVqV.js.map +0 -1
- package/dist/Renderer-D_r5OSso.js +0 -4
- package/dist/chunk-BrXtsOCC.cjs +0 -41
- package/dist/devtools-Cz49mTX5.js +0 -102
- package/dist/devtools-Cz49mTX5.js.map +0 -1
- package/dist/devtools-msRXXQfJ.cjs +0 -109
- package/dist/devtools-msRXXQfJ.cjs.map +0 -1
- package/dist/devtools.cjs +0 -3
- package/dist/devtools.d.cts +0 -11
- package/dist/devtools.d.ts +0 -11
- package/dist/devtools.js +0 -3
- package/dist/reactPlugin-BJ_35CCS.cjs +0 -499
- package/dist/reactPlugin-BJ_35CCS.cjs.map +0 -1
- package/dist/reactPlugin-E8nSWNDp.js +0 -469
- package/dist/reactPlugin-E8nSWNDp.js.map +0 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { r as __name } from "./chunk-DkQCb-7t.js";
|
|
2
|
+
import { b as Source, c as FileManager, g as Import, h as File, p as Export } from "./Fabric-4Ac6xwwR.js";
|
|
3
|
+
import { t as TreeNode } from "./TreeNode-CoigrXFC.js";
|
|
3
4
|
import React, { JSX, Key, ReactNode } from "react";
|
|
4
5
|
|
|
5
6
|
//#region ../fabric-core/src/composables/useNodeTree.d.ts
|
|
@@ -125,5 +126,4 @@ type KubbImportProps = Import;
|
|
|
125
126
|
type KubbExportProps = Export;
|
|
126
127
|
type LineBreakProps = React.DetailedHTMLProps<React.HTMLAttributes<HTMLBRElement>, HTMLBRElement>;
|
|
127
128
|
//#endregion
|
|
128
|
-
export { Params as _, Key as a, RootContextProps as b, KubbFileProps as c, KubbSourceProps as d, KubbTextProps as f, Param as g, FunctionParams as h, ElementNames as i, KubbImportProps as l, TextNode as m, DOMNode as n, KubbElement as o, LineBreakProps as p, DOMNodeAttribute as r, KubbExportProps as s, DOMElement as t, KubbNode as u, createFunctionParams as v, ComponentNode as x, JSDoc as y };
|
|
129
|
-
//# sourceMappingURL=types-BKNiqRcq.d.cts.map
|
|
129
|
+
export { Params as _, Key as a, RootContextProps as b, KubbFileProps as c, KubbSourceProps as d, KubbTextProps as f, Param as g, FunctionParams as h, ElementNames as i, KubbImportProps as l, TextNode as m, DOMNode as n, KubbElement as o, LineBreakProps as p, DOMNodeAttribute as r, KubbExportProps as s, DOMElement as t, KubbNode as u, createFunctionParams as v, ComponentNode as x, JSDoc as y };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as Source, c as FileManager, g as Import, h as File, p as Export } from "./Fabric-
|
|
2
|
-
import { t as TreeNode } from "./TreeNode-
|
|
1
|
+
import { b as Source, c as FileManager, g as Import, h as File, p as Export, x as __name } from "./Fabric-xd8epqSF.cjs";
|
|
2
|
+
import { t as TreeNode } from "./TreeNode-Pwm74f2F.cjs";
|
|
3
3
|
import React, { JSX, Key, ReactNode } from "react";
|
|
4
4
|
|
|
5
5
|
//#region ../fabric-core/src/composables/useNodeTree.d.ts
|
|
@@ -125,5 +125,4 @@ type KubbImportProps = Import;
|
|
|
125
125
|
type KubbExportProps = Export;
|
|
126
126
|
type LineBreakProps = React.DetailedHTMLProps<React.HTMLAttributes<HTMLBRElement>, HTMLBRElement>;
|
|
127
127
|
//#endregion
|
|
128
|
-
export { Params as _, Key as a, RootContextProps as b, KubbFileProps as c, KubbSourceProps as d, KubbTextProps as f, Param as g, FunctionParams as h, ElementNames as i, KubbImportProps as l, TextNode as m, DOMNode as n, KubbElement as o, LineBreakProps as p, DOMNodeAttribute as r, KubbExportProps as s, DOMElement as t, KubbNode as u, createFunctionParams as v, ComponentNode as x, JSDoc as y };
|
|
129
|
-
//# sourceMappingURL=types-BKiEQWrZ.d.ts.map
|
|
128
|
+
export { Params as _, Key as a, RootContextProps as b, KubbFileProps as c, KubbSourceProps as d, KubbTextProps as f, Param as g, FunctionParams as h, ElementNames as i, KubbImportProps as l, TextNode as m, DOMNode as n, KubbElement as o, LineBreakProps as p, DOMNodeAttribute as r, KubbExportProps as s, DOMElement as t, KubbNode as u, createFunctionParams as v, ComponentNode as x, JSDoc as y };
|
package/dist/types.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { _ as KubbFile_d_exports, a as FabricOptions, i as FabricMode, n as FabricConfig, r as FabricContext } from "./Fabric-
|
|
2
|
-
import { _ as Params, a as Key, b as RootContextProps, c as KubbFileProps, d as KubbSourceProps, f as KubbTextProps, g as Param, i as ElementNames, l as KubbImportProps, m as TextNode, n as DOMNode, o as KubbElement, p as LineBreakProps, r as DOMNodeAttribute, s as KubbExportProps, t as DOMElement, u as KubbNode, x as ComponentNode, y as JSDoc } from "./types-
|
|
1
|
+
import { _ as KubbFile_d_exports, a as FabricOptions, i as FabricMode, n as FabricConfig, r as FabricContext } from "./Fabric-xd8epqSF.cjs";
|
|
2
|
+
import { _ as Params, a as Key, b as RootContextProps, c as KubbFileProps, d as KubbSourceProps, f as KubbTextProps, g as Param, i as ElementNames, l as KubbImportProps, m as TextNode, n as DOMNode, o as KubbElement, p as LineBreakProps, r as DOMNodeAttribute, s as KubbExportProps, t as DOMElement, u as KubbNode, x as ComponentNode, y as JSDoc } from "./types-BrE57KWH.cjs";
|
|
3
3
|
export { ComponentNode, DOMElement, DOMNode, DOMNodeAttribute, ElementNames, FabricConfig, FabricContext, FabricMode, FabricOptions, JSDoc, Key, KubbElement, KubbExportProps, KubbFile_d_exports as KubbFile, KubbFileProps, KubbImportProps, KubbNode, KubbSourceProps, KubbTextProps, LineBreakProps, Param, Params, RootContextProps, TextNode };
|
package/dist/types.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { _ as KubbFile_d_exports, a as FabricOptions, i as FabricMode, n as FabricConfig, r as FabricContext } from "./Fabric-
|
|
2
|
-
import { _ as Params, a as Key, b as RootContextProps, c as KubbFileProps, d as KubbSourceProps, f as KubbTextProps, g as Param, i as ElementNames, l as KubbImportProps, m as TextNode, n as DOMNode, o as KubbElement, p as LineBreakProps, r as DOMNodeAttribute, s as KubbExportProps, t as DOMElement, u as KubbNode, x as ComponentNode, y as JSDoc } from "./types-
|
|
1
|
+
import { _ as KubbFile_d_exports, a as FabricOptions, i as FabricMode, n as FabricConfig, r as FabricContext } from "./Fabric-4Ac6xwwR.js";
|
|
2
|
+
import { _ as Params, a as Key, b as RootContextProps, c as KubbFileProps, d as KubbSourceProps, f as KubbTextProps, g as Param, i as ElementNames, l as KubbImportProps, m as TextNode, n as DOMNode, o as KubbElement, p as LineBreakProps, r as DOMNodeAttribute, s as KubbExportProps, t as DOMElement, u as KubbNode, x as ComponentNode, y as JSDoc } from "./types-125Qu-Uh.js";
|
|
3
3
|
export { ComponentNode, DOMElement, DOMNode, DOMNodeAttribute, ElementNames, FabricConfig, FabricContext, FabricMode, FabricOptions, JSDoc, Key, KubbElement, KubbExportProps, KubbFile_d_exports as KubbFile, KubbFileProps, KubbImportProps, KubbNode, KubbSourceProps, KubbTextProps, LineBreakProps, Param, Params, RootContextProps, TextNode };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/react-fabric",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.6",
|
|
4
4
|
"description": "React integration for Kubb, providing JSX runtime support and React component generation capabilities for code generation plugins.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -29,10 +29,6 @@
|
|
|
29
29
|
"require": "./dist/index.cjs",
|
|
30
30
|
"import": "./dist/index.js"
|
|
31
31
|
},
|
|
32
|
-
"./devtools": {
|
|
33
|
-
"require": "./dist/devtools.cjs",
|
|
34
|
-
"import": "./dist/devtools.js"
|
|
35
|
-
},
|
|
36
32
|
"./globals": {
|
|
37
33
|
"require": "./dist/globals.cjs",
|
|
38
34
|
"import": "./dist/globals.js"
|
|
@@ -67,9 +63,6 @@
|
|
|
67
63
|
"globals": [
|
|
68
64
|
"./dist/globals.d.ts"
|
|
69
65
|
],
|
|
70
|
-
"devtools": [
|
|
71
|
-
"./dist/devtools.d.ts"
|
|
72
|
-
],
|
|
73
66
|
"jsx-dev-runtime": [
|
|
74
67
|
"./dist/jsx-runtime.d.ts"
|
|
75
68
|
],
|
|
@@ -108,17 +101,17 @@
|
|
|
108
101
|
"execa": "^9.6.1",
|
|
109
102
|
"indent-string": "^5.0.0",
|
|
110
103
|
"natural-orderby": "^5.0.0",
|
|
111
|
-
"react-devtools-core": "6.1.
|
|
104
|
+
"react-devtools-core": "6.1.5",
|
|
112
105
|
"signal-exit": "^4.1.0",
|
|
113
106
|
"ws": "8.18.0",
|
|
114
|
-
"@kubb/fabric-core": "0.11.
|
|
107
|
+
"@kubb/fabric-core": "0.11.6"
|
|
115
108
|
},
|
|
116
109
|
"devDependencies": {
|
|
117
110
|
"@types/react": "^19.2.8",
|
|
118
111
|
"@types/react-reconciler": "0.32.0",
|
|
119
112
|
"@types/ws": "^8.18.1",
|
|
120
|
-
"react": "19.2.
|
|
121
|
-
"react-reconciler": "0.
|
|
113
|
+
"react": "19.2.3",
|
|
114
|
+
"react-reconciler": "0.33.0"
|
|
122
115
|
},
|
|
123
116
|
"engines": {
|
|
124
117
|
"node": ">=20"
|
package/shims.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare module 'react-devtools-core'
|
package/src/components/App.tsx
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AppContext, NodeTreeContext, provide, RootContext, useContext, useNodeTree } from '@kubb/fabric-core'
|
|
2
|
+
import type * as React from 'react'
|
|
2
3
|
import type { KubbNode } from '../types.ts'
|
|
3
4
|
|
|
4
5
|
export type AppProps<TMeta extends object = object> = {
|
|
@@ -12,6 +13,10 @@ export type AppProps<TMeta extends object = object> = {
|
|
|
12
13
|
children?: KubbNode
|
|
13
14
|
}
|
|
14
15
|
|
|
16
|
+
export function Div(props: { children: React.ReactNode }) {
|
|
17
|
+
return <div>{props.children}</div>
|
|
18
|
+
}
|
|
19
|
+
|
|
15
20
|
/**
|
|
16
21
|
* App container containing the AppContext carrying `meta` and an `exit` hook.
|
|
17
22
|
*/
|
package/src/createReactFabric.ts
CHANGED
|
@@ -8,12 +8,12 @@ import { reactPlugin } from './plugins/reactPlugin.ts'
|
|
|
8
8
|
export function createReactFabric(
|
|
9
9
|
config: FabricConfig<Options & { mode?: FabricMode; devtools?: boolean }> = {},
|
|
10
10
|
): Fabric<Options & { mode?: FabricMode; devtools?: boolean }> {
|
|
11
|
-
const fabric = createFabric({ mode: config.mode })
|
|
12
|
-
|
|
13
11
|
if (config.devtools) {
|
|
14
12
|
open()
|
|
15
13
|
}
|
|
16
14
|
|
|
15
|
+
const fabric = createFabric({ mode: config.mode })
|
|
16
|
+
|
|
17
17
|
fabric.use(reactPlugin, {
|
|
18
18
|
stdout: config.stdout,
|
|
19
19
|
stderr: config.stderr,
|
package/src/devtools.ts
CHANGED
|
@@ -2,6 +2,8 @@ import { execa } from 'execa'
|
|
|
2
2
|
import { onExit } from 'signal-exit'
|
|
3
3
|
import ws from 'ws'
|
|
4
4
|
|
|
5
|
+
import { Renderer } from './Renderer.ts'
|
|
6
|
+
|
|
5
7
|
declare global {
|
|
6
8
|
var WebSocket: typeof WebSocket
|
|
7
9
|
var self: any
|
|
@@ -89,7 +91,7 @@ export function open() {
|
|
|
89
91
|
preferLocal: true,
|
|
90
92
|
cancelSignal: controller.signal,
|
|
91
93
|
gracefulCancel: true,
|
|
92
|
-
})`npx react-devtools`
|
|
94
|
+
})`npx react-devtools@6.1.5`
|
|
93
95
|
|
|
94
96
|
// Destructure the functions from the module
|
|
95
97
|
const { initialize, connectToDevTools } = devtools
|
|
@@ -98,9 +100,6 @@ export function open() {
|
|
|
98
100
|
initialize()
|
|
99
101
|
console.info('Initializing devtools')
|
|
100
102
|
|
|
101
|
-
// Now dynamically import the Renderer after DevTools is initialized
|
|
102
|
-
const { Renderer } = await import('./Renderer.ts')
|
|
103
|
-
|
|
104
103
|
// Inject the renderer BEFORE connecting to DevTools
|
|
105
104
|
// This ensures DevTools can properly discover the custom renderer
|
|
106
105
|
Renderer.injectIntoDevTools({
|
package/src/index.ts
CHANGED
|
@@ -15,7 +15,7 @@ export const useEffect = React.useEffect
|
|
|
15
15
|
export const useReducer = React.useReducer
|
|
16
16
|
export const useRef = React.useRef
|
|
17
17
|
// components
|
|
18
|
-
export { App } from './components/App.tsx'
|
|
18
|
+
export { App, Div } from './components/App.tsx'
|
|
19
19
|
export { Const } from './components/Const.tsx'
|
|
20
20
|
export { File } from './components/File.tsx'
|
|
21
21
|
export { Function } from './components/Function.tsx'
|