@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.
Files changed (62) hide show
  1. package/dist/{Fabric-D1uNzkRd.d.cts → Fabric-DECM64S6.d.cts} +1 -1
  2. package/dist/{Fabric-OfeFgFB2.d.ts → Fabric-DGhsnD3H.d.ts} +1 -4
  3. package/dist/chunk-BHcwYQRN.js +47 -0
  4. package/dist/{chunk-CUT6urMc.cjs → chunk-DSlc6foC.cjs} +19 -6
  5. package/dist/{devtools-wdFpV122.js → devtools-D6dZodXp.js} +1 -1
  6. package/dist/{devtools-wdFpV122.js.map → devtools-D6dZodXp.js.map} +1 -1
  7. package/dist/{devtools-BajE-eCd.cjs → devtools-DRXCsX9I.cjs} +2 -2
  8. package/dist/{devtools-BajE-eCd.cjs.map → devtools-DRXCsX9I.cjs.map} +1 -1
  9. package/dist/devtools.cjs +1 -1
  10. package/dist/devtools.js +1 -1
  11. package/dist/globals.d.cts +2 -2
  12. package/dist/globals.d.ts +2 -2
  13. package/dist/index.cjs +80 -114
  14. package/dist/index.cjs.map +1 -1
  15. package/dist/index.d.cts +27 -16
  16. package/dist/index.d.ts +15 -4
  17. package/dist/index.js +71 -57
  18. package/dist/index.js.map +1 -1
  19. package/dist/jsx-dev-runtime-BiO7A4L5.cjs +1363 -0
  20. package/dist/jsx-dev-runtime-BiO7A4L5.cjs.map +1 -0
  21. package/dist/jsx-dev-runtime-aYzeEJ2N.js +1352 -0
  22. package/dist/jsx-dev-runtime-aYzeEJ2N.js.map +1 -0
  23. package/dist/jsx-dev-runtime.cjs +9 -5
  24. package/dist/jsx-dev-runtime.cjs.map +1 -0
  25. package/dist/jsx-dev-runtime.d.cts +3 -3
  26. package/dist/jsx-dev-runtime.d.ts +3 -3
  27. package/dist/jsx-dev-runtime.js +9 -2
  28. package/dist/jsx-dev-runtime.js.map +1 -0
  29. package/dist/{jsx-namespace-kapEWb5o.d.cts → jsx-namespace-C5bbnidQ.d.cts} +2 -2
  30. package/dist/{jsx-namespace-BEUVmgyn.d.ts → jsx-namespace-eskZDKHk.d.ts} +2 -2
  31. package/dist/jsx-runtime-B95ZQ2MZ.js +252 -0
  32. package/dist/jsx-runtime-B95ZQ2MZ.js.map +1 -0
  33. package/dist/jsx-runtime-BnIQNoyE.cjs +263 -0
  34. package/dist/jsx-runtime-BnIQNoyE.cjs.map +1 -0
  35. package/dist/jsx-runtime.cjs +6 -8
  36. package/dist/jsx-runtime.d.cts +3 -3
  37. package/dist/jsx-runtime.d.ts +3 -3
  38. package/dist/jsx-runtime.js +6 -1
  39. package/dist/parsers.d.cts +1 -1
  40. package/dist/parsers.d.ts +1 -1
  41. package/dist/plugins.cjs +3 -2
  42. package/dist/plugins.d.cts +2 -2
  43. package/dist/plugins.d.ts +2 -2
  44. package/dist/plugins.js +3 -2
  45. package/dist/reactPlugin-B-vyv4g0.cjs +15640 -0
  46. package/dist/reactPlugin-B-vyv4g0.cjs.map +1 -0
  47. package/dist/reactPlugin-BtX7BIDy.js +15598 -0
  48. package/dist/reactPlugin-BtX7BIDy.js.map +1 -0
  49. package/dist/{reactPlugin-DVGn6gSn.d.ts → reactPlugin-DAOLEVg9.d.ts} +2 -2
  50. package/dist/{reactPlugin-heqDYGKi.d.cts → reactPlugin-DkhxnXP_.d.cts} +2 -2
  51. package/dist/{types-zrCju594.d.cts → types-C2T-S5lY.d.cts} +2 -2
  52. package/dist/{types-34ycUiHt.d.ts → types-rKVyNQC0.d.ts} +2 -2
  53. package/dist/types.d.cts +2 -2
  54. package/dist/types.d.ts +2 -2
  55. package/package.json +6 -6
  56. package/src/index.ts +12 -2
  57. package/dist/jsx-runtime-BhbaU98p.cjs +0 -2
  58. package/dist/jsx-runtime-Dm0btT2y.js +0 -4
  59. package/dist/reactPlugin-B7zzvM5n.js +0 -625
  60. package/dist/reactPlugin-B7zzvM5n.js.map +0 -1
  61. package/dist/reactPlugin-B9OmXm5F.cjs +0 -669
  62. package/dist/reactPlugin-B9OmXm5F.cjs.map +0 -1
@@ -1,4 +1,4 @@
1
- import { o as Plugin } from "./Fabric-OfeFgFB2.js";
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-DVGn6gSn.d.ts.map
31
+ //# sourceMappingURL=reactPlugin-DAOLEVg9.d.ts.map
@@ -1,4 +1,4 @@
1
- import { o as Plugin } from "./Fabric-D1uNzkRd.cjs";
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-heqDYGKi.d.cts.map
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-D1uNzkRd.cjs";
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-zrCju594.d.cts.map
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-OfeFgFB2.js";
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-34ycUiHt.d.ts.map
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-D1uNzkRd.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-zrCju594.cjs";
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-OfeFgFB2.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-34ycUiHt.js";
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.1",
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.3.1"
114
+ "@kubb/fabric-core": "0.4.1"
117
115
  },
118
116
  "devDependencies": {
119
- "@types/react": "^19.2.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 { createContext, createElement, Fragment, use, useContext, useEffect, useReducer, useRef, useState } from 'react'
7
- // components
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'
@@ -1,2 +0,0 @@
1
- let react_jsx_dev_runtime = require("react/jsx-dev-runtime");
2
- let react_jsx_runtime = require("react/jsx-runtime");
@@ -1,4 +0,0 @@
1
- import { jsxDEV } from "react/jsx-dev-runtime";
2
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
-
4
- export { jsxs as i, jsx as n, jsxDEV as r, Fragment as t };