@kubb/react-fabric 0.3.1 → 0.4.1
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-D1uNzkRd.d.cts → Fabric-DECM64S6.d.cts} +1 -1
- package/dist/{Fabric-OfeFgFB2.d.ts → Fabric-DGhsnD3H.d.ts} +1 -4
- package/dist/chunk-BHcwYQRN.js +47 -0
- package/dist/{chunk-CUT6urMc.cjs → chunk-DSlc6foC.cjs} +19 -6
- package/dist/{devtools-wdFpV122.js → devtools-D6dZodXp.js} +1 -1
- package/dist/{devtools-wdFpV122.js.map → devtools-D6dZodXp.js.map} +1 -1
- package/dist/{devtools-BajE-eCd.cjs → devtools-DRXCsX9I.cjs} +2 -2
- package/dist/{devtools-BajE-eCd.cjs.map → devtools-DRXCsX9I.cjs.map} +1 -1
- package/dist/devtools.cjs +1 -1
- package/dist/devtools.js +1 -1
- package/dist/globals.d.cts +2 -2
- package/dist/globals.d.ts +2 -2
- package/dist/index.cjs +80 -114
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +27 -16
- package/dist/index.d.ts +15 -4
- package/dist/index.js +71 -57
- package/dist/index.js.map +1 -1
- package/dist/jsx-dev-runtime-BiO7A4L5.cjs +1363 -0
- package/dist/jsx-dev-runtime-BiO7A4L5.cjs.map +1 -0
- package/dist/jsx-dev-runtime-aYzeEJ2N.js +1352 -0
- package/dist/jsx-dev-runtime-aYzeEJ2N.js.map +1 -0
- package/dist/jsx-dev-runtime.cjs +9 -5
- package/dist/jsx-dev-runtime.cjs.map +1 -0
- package/dist/jsx-dev-runtime.d.cts +3 -3
- package/dist/jsx-dev-runtime.d.ts +3 -3
- package/dist/jsx-dev-runtime.js +9 -2
- package/dist/jsx-dev-runtime.js.map +1 -0
- package/dist/{jsx-namespace-kapEWb5o.d.cts → jsx-namespace-C5bbnidQ.d.cts} +2 -2
- package/dist/{jsx-namespace-BEUVmgyn.d.ts → jsx-namespace-eskZDKHk.d.ts} +2 -2
- package/dist/jsx-runtime-B95ZQ2MZ.js +252 -0
- package/dist/jsx-runtime-B95ZQ2MZ.js.map +1 -0
- package/dist/jsx-runtime-BnIQNoyE.cjs +263 -0
- package/dist/jsx-runtime-BnIQNoyE.cjs.map +1 -0
- package/dist/jsx-runtime.cjs +6 -8
- package/dist/jsx-runtime.d.cts +3 -3
- package/dist/jsx-runtime.d.ts +3 -3
- package/dist/jsx-runtime.js +6 -1
- package/dist/parsers.d.cts +1 -1
- package/dist/parsers.d.ts +1 -1
- package/dist/plugins.cjs +3 -2
- package/dist/plugins.d.cts +2 -2
- package/dist/plugins.d.ts +2 -2
- package/dist/plugins.js +3 -2
- package/dist/reactPlugin-B-vyv4g0.cjs +15640 -0
- package/dist/reactPlugin-B-vyv4g0.cjs.map +1 -0
- package/dist/reactPlugin-BtX7BIDy.js +15598 -0
- package/dist/reactPlugin-BtX7BIDy.js.map +1 -0
- package/dist/{reactPlugin-DVGn6gSn.d.ts → reactPlugin-DAOLEVg9.d.ts} +2 -2
- package/dist/{reactPlugin-heqDYGKi.d.cts → reactPlugin-DkhxnXP_.d.cts} +2 -2
- package/dist/{types-zrCju594.d.cts → types-C2T-S5lY.d.cts} +2 -2
- package/dist/{types-34ycUiHt.d.ts → types-rKVyNQC0.d.ts} +2 -2
- package/dist/types.d.cts +2 -2
- package/dist/types.d.ts +2 -2
- package/package.json +6 -6
- package/src/index.ts +12 -2
- package/dist/jsx-runtime-BhbaU98p.cjs +0 -2
- package/dist/jsx-runtime-Dm0btT2y.js +0 -4
- package/dist/reactPlugin-B7zzvM5n.js +0 -625
- package/dist/reactPlugin-B7zzvM5n.js.map +0 -1
- package/dist/reactPlugin-B9OmXm5F.cjs +0 -669
- package/dist/reactPlugin-B9OmXm5F.cjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as Plugin } from "./Fabric-
|
|
1
|
+
import { o as Plugin } from "./Fabric-DGhsnD3H.js";
|
|
2
2
|
import { ElementType } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/plugins/reactPlugin.d.ts
|
|
@@ -28,4 +28,4 @@ declare global {
|
|
|
28
28
|
declare const reactPlugin: Plugin<Options, ExtendOptions>;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { reactPlugin as n, Options as t };
|
|
31
|
-
//# sourceMappingURL=reactPlugin-
|
|
31
|
+
//# sourceMappingURL=reactPlugin-DAOLEVg9.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as Plugin } from "./Fabric-
|
|
1
|
+
import { o as Plugin } from "./Fabric-DECM64S6.cjs";
|
|
2
2
|
import { ElementType } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/plugins/reactPlugin.d.ts
|
|
@@ -28,4 +28,4 @@ declare global {
|
|
|
28
28
|
declare const reactPlugin: Plugin<Options, ExtendOptions>;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { reactPlugin as n, Options as t };
|
|
31
|
-
//# sourceMappingURL=reactPlugin-
|
|
31
|
+
//# sourceMappingURL=reactPlugin-DkhxnXP_.d.cts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as Source, g as Import, h as File, p as Export } from "./Fabric-
|
|
1
|
+
import { b as Source, g as Import, h as File, p as Export } from "./Fabric-DECM64S6.cjs";
|
|
2
2
|
import React, { JSX, Key, ReactNode } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/getFunctionParams.d.ts
|
|
@@ -101,4 +101,4 @@ type KubbExportProps = Export;
|
|
|
101
101
|
type LineBreakProps = React.DetailedHTMLProps<React.HTMLAttributes<HTMLBRElement>, HTMLBRElement>;
|
|
102
102
|
//#endregion
|
|
103
103
|
export { Param as _, JSDoc as a, KubbExportProps as c, KubbNode as d, KubbSourceProps as f, FunctionParams as g, TextNode as h, ElementNames as i, KubbFileProps as l, LineBreakProps as m, DOMNode as n, Key as o, KubbTextProps as p, DOMNodeAttribute as r, KubbElement as s, DOMElement as t, KubbImportProps as u, Params as v, createFunctionParams as y };
|
|
104
|
-
//# sourceMappingURL=types-
|
|
104
|
+
//# sourceMappingURL=types-C2T-S5lY.d.cts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as Source, g as Import, h as File, p as Export } from "./Fabric-
|
|
1
|
+
import { b as Source, g as Import, h as File, p as Export } from "./Fabric-DGhsnD3H.js";
|
|
2
2
|
import React, { JSX, Key, ReactNode } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/getFunctionParams.d.ts
|
|
@@ -101,4 +101,4 @@ type KubbExportProps = Export;
|
|
|
101
101
|
type LineBreakProps = React.DetailedHTMLProps<React.HTMLAttributes<HTMLBRElement>, HTMLBRElement>;
|
|
102
102
|
//#endregion
|
|
103
103
|
export { Param as _, JSDoc as a, KubbExportProps as c, KubbNode as d, KubbSourceProps as f, FunctionParams as g, TextNode as h, ElementNames as i, KubbFileProps as l, LineBreakProps as m, DOMNode as n, Key as o, KubbTextProps as p, DOMNodeAttribute as r, KubbElement as s, DOMElement as t, KubbImportProps as u, Params as v, createFunctionParams as y };
|
|
104
|
-
//# sourceMappingURL=types-
|
|
104
|
+
//# sourceMappingURL=types-rKVyNQC0.d.ts.map
|
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 Param, a as JSDoc, c as KubbExportProps, d as KubbNode, f as KubbSourceProps, h as TextNode, i as ElementNames, l as KubbFileProps, m as LineBreakProps, n as DOMNode, o as Key, p as KubbTextProps, r as DOMNodeAttribute, s as KubbElement, t as DOMElement, u as KubbImportProps, v as Params } from "./types-
|
|
1
|
+
import { _ as KubbFile_d_exports, a as FabricOptions, i as FabricMode, n as FabricConfig, r as FabricContext } from "./Fabric-DECM64S6.cjs";
|
|
2
|
+
import { _ as Param, a as JSDoc, c as KubbExportProps, d as KubbNode, f as KubbSourceProps, h as TextNode, i as ElementNames, l as KubbFileProps, m as LineBreakProps, n as DOMNode, o as Key, p as KubbTextProps, r as DOMNodeAttribute, s as KubbElement, t as DOMElement, u as KubbImportProps, v as Params } from "./types-C2T-S5lY.cjs";
|
|
3
3
|
export { 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, 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 Param, a as JSDoc, c as KubbExportProps, d as KubbNode, f as KubbSourceProps, h as TextNode, i as ElementNames, l as KubbFileProps, m as LineBreakProps, n as DOMNode, o as Key, p as KubbTextProps, r as DOMNodeAttribute, s as KubbElement, t as DOMElement, u as KubbImportProps, v as Params } from "./types-
|
|
1
|
+
import { _ as KubbFile_d_exports, a as FabricOptions, i as FabricMode, n as FabricConfig, r as FabricContext } from "./Fabric-DGhsnD3H.js";
|
|
2
|
+
import { _ as Param, a as JSDoc, c as KubbExportProps, d as KubbNode, f as KubbSourceProps, h as TextNode, i as ElementNames, l as KubbFileProps, m as LineBreakProps, n as DOMNode, o as Key, p as KubbTextProps, r as DOMNodeAttribute, s as KubbElement, t as DOMElement, u as KubbImportProps, v as Params } from "./types-rKVyNQC0.js";
|
|
3
3
|
export { 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, TextNode };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/react-fabric",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
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",
|
|
@@ -108,17 +108,17 @@
|
|
|
108
108
|
"execa": "^9.6.0",
|
|
109
109
|
"indent-string": "^5.0.0",
|
|
110
110
|
"natural-orderby": "^5.0.0",
|
|
111
|
-
"react": "^19.2.0",
|
|
112
111
|
"react-devtools-core": "6.1.2",
|
|
113
|
-
"react-reconciler": "0.32.0",
|
|
114
112
|
"signal-exit": "^4.1.0",
|
|
115
113
|
"ws": "8.18.0",
|
|
116
|
-
"@kubb/fabric-core": "0.
|
|
114
|
+
"@kubb/fabric-core": "0.4.1"
|
|
117
115
|
},
|
|
118
116
|
"devDependencies": {
|
|
119
|
-
"@types/react": "^19.2.
|
|
117
|
+
"@types/react": "^19.2.6",
|
|
120
118
|
"@types/react-reconciler": "0.32.0",
|
|
121
|
-
"@types/ws": "^8.18.1"
|
|
119
|
+
"@types/ws": "^8.18.1",
|
|
120
|
+
"react": "^19.2.0",
|
|
121
|
+
"react-reconciler": "0.32.0"
|
|
122
122
|
},
|
|
123
123
|
"engines": {
|
|
124
124
|
"node": ">=20"
|
package/src/index.ts
CHANGED
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
// import './globals.ts'
|
|
2
|
+
import React from 'react'
|
|
2
3
|
|
|
3
4
|
// expose fabric core helpers
|
|
4
5
|
export * from '@kubb/fabric-core'
|
|
6
|
+
|
|
5
7
|
// react helpers
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
+
export const useState = React.useState
|
|
9
|
+
export const createContext = React.createContext
|
|
10
|
+
export const createElement = React.createElement
|
|
11
|
+
export const Fragment = React.Fragment
|
|
12
|
+
export const use = React.use
|
|
13
|
+
export const useContext = React.useContext
|
|
14
|
+
export const useEffect = React.useEffect
|
|
15
|
+
export const useReducer = React.useReducer
|
|
16
|
+
export const useRef = React.useRef
|
|
17
|
+
// // components
|
|
8
18
|
export { App } from './components/App.tsx'
|
|
9
19
|
export { Const } from './components/Const.tsx'
|
|
10
20
|
export { File } from './components/File.tsx'
|