@kubb/react-fabric 0.5.3 → 0.5.5

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 (52) hide show
  1. package/README.md +21 -24
  2. package/dist/{Fabric-C7RMr4BK.d.ts → Fabric-D-A981Bs.d.ts} +24 -25
  3. package/dist/{Fabric-CStIaz99.d.cts → Fabric-xy241PKd.d.cts} +24 -25
  4. package/dist/{chunk-BHcwYQRN.js → chunk-B1nHLT4p.js} +2 -7
  5. package/dist/{chunk-DSlc6foC.cjs → chunk-BrXtsOCC.cjs} +3 -5
  6. package/dist/{devtools-DRXCsX9I.cjs → devtools-CRkwwngz.cjs} +2 -2
  7. package/dist/{devtools-DRXCsX9I.cjs.map → devtools-CRkwwngz.cjs.map} +1 -1
  8. package/dist/devtools.cjs +1 -1
  9. package/dist/globals.d.cts +2 -2
  10. package/dist/globals.d.ts +2 -2
  11. package/dist/index.cjs +5 -5
  12. package/dist/index.d.cts +31 -45
  13. package/dist/index.d.ts +10 -24
  14. package/dist/index.js +4 -4
  15. package/dist/jsx-dev-runtime.cjs +11 -11
  16. package/dist/jsx-dev-runtime.cjs.map +1 -1
  17. package/dist/jsx-dev-runtime.d.cts +5 -5
  18. package/dist/jsx-dev-runtime.d.ts +5 -5
  19. package/dist/jsx-dev-runtime.js +11 -11
  20. package/dist/jsx-dev-runtime.js.map +1 -1
  21. package/dist/{jsx-namespace-BLxjMbms.d.ts → jsx-namespace-CEeBVrTq.d.ts} +2 -2
  22. package/dist/{jsx-namespace-DLxNuglH.d.cts → jsx-namespace-DawWRiRq.d.cts} +2 -2
  23. package/dist/{jsx-runtime-cR2hscK9.cjs → jsx-runtime-DqTOrEsT.cjs} +12 -12
  24. package/dist/{jsx-runtime-cR2hscK9.cjs.map → jsx-runtime-DqTOrEsT.cjs.map} +1 -1
  25. package/dist/{jsx-runtime-DT7hOgNn.js → jsx-runtime-zJCtyvtC.js} +12 -12
  26. package/dist/{jsx-runtime-DT7hOgNn.js.map → jsx-runtime-zJCtyvtC.js.map} +1 -1
  27. package/dist/jsx-runtime.cjs +2 -2
  28. package/dist/jsx-runtime.d.cts +5 -5
  29. package/dist/jsx-runtime.d.ts +5 -5
  30. package/dist/jsx-runtime.js +2 -2
  31. package/dist/parsers.d.cts +5 -5
  32. package/dist/parsers.d.ts +5 -5
  33. package/dist/plugins.cjs +3 -3
  34. package/dist/plugins.d.cts +5 -5
  35. package/dist/plugins.d.ts +5 -5
  36. package/dist/plugins.js +3 -3
  37. package/dist/{react-Czh2e85z.js → react-B97TdWcV.js} +17 -17
  38. package/dist/{react-Czh2e85z.js.map → react-B97TdWcV.js.map} +1 -1
  39. package/dist/{react-DNGR2CL5.cjs → react-D_EYlsv-.cjs} +17 -17
  40. package/dist/{react-DNGR2CL5.cjs.map → react-D_EYlsv-.cjs.map} +1 -1
  41. package/dist/{reactPlugin-Ct0yCk0a.cjs → reactPlugin-CpRWhf6R.cjs} +46 -46
  42. package/dist/{reactPlugin-Ct0yCk0a.cjs.map → reactPlugin-CpRWhf6R.cjs.map} +1 -1
  43. package/dist/{reactPlugin-DajNNKBt.d.cts → reactPlugin-CrCzxP4y.d.cts} +2 -2
  44. package/dist/{reactPlugin-TmG3R6xY.d.ts → reactPlugin-Iyi8Falf.d.ts} +2 -2
  45. package/dist/{reactPlugin-CjsXM659.js → reactPlugin-PG1kqZRe.js} +47 -47
  46. package/dist/{reactPlugin-CjsXM659.js.map → reactPlugin-PG1kqZRe.js.map} +1 -1
  47. package/dist/{types-KXnjAqUg.d.ts → types-BjJ5OLXP.d.ts} +2 -2
  48. package/dist/{types-BZlZnQLJ.d.cts → types-WtAhPPHc.d.cts} +2 -2
  49. package/dist/types.d.cts +2 -2
  50. package/dist/types.d.ts +2 -2
  51. package/package.json +4 -4
  52. package/src/plugins/reactPlugin.ts +5 -5
@@ -1,4 +1,4 @@
1
- import { b as Source, g as Import, h as File, p as Export } from "./Fabric-C7RMr4BK.js";
1
+ import { b as Source, g as Import, h as File, p as Export } from "./Fabric-D-A981Bs.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-KXnjAqUg.d.ts.map
104
+ //# sourceMappingURL=types-BjJ5OLXP.d.ts.map
@@ -1,4 +1,4 @@
1
- import { b as Source, g as Import, h as File, p as Export } from "./Fabric-CStIaz99.cjs";
1
+ import { b as Source, g as Import, h as File, p as Export } from "./Fabric-xy241PKd.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-BZlZnQLJ.d.cts.map
104
+ //# sourceMappingURL=types-WtAhPPHc.d.cts.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-CStIaz99.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-BZlZnQLJ.cjs";
1
+ import { _ as KubbFile_d_exports, a as FabricOptions, i as FabricMode, n as FabricConfig, r as FabricContext } from "./Fabric-xy241PKd.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-WtAhPPHc.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-C7RMr4BK.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-KXnjAqUg.js";
1
+ import { _ as KubbFile_d_exports, a as FabricOptions, i as FabricMode, n as FabricConfig, r as FabricContext } from "./Fabric-D-A981Bs.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-BjJ5OLXP.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.5.3",
3
+ "version": "0.5.5",
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",
@@ -105,19 +105,19 @@
105
105
  ],
106
106
  "dependencies": {
107
107
  "dedent": "^1.7.0",
108
- "execa": "^9.6.0",
108
+ "execa": "^9.6.1",
109
109
  "indent-string": "^5.0.0",
110
110
  "natural-orderby": "^5.0.0",
111
111
  "react-devtools-core": "6.1.2",
112
112
  "signal-exit": "^4.1.0",
113
113
  "ws": "8.18.0",
114
- "@kubb/fabric-core": "0.5.3"
114
+ "@kubb/fabric-core": "0.5.5"
115
115
  },
116
116
  "devDependencies": {
117
117
  "@types/react": "^19.2.7",
118
118
  "@types/react-reconciler": "0.32.0",
119
119
  "@types/ws": "^8.18.1",
120
- "react": "^19.2.0",
120
+ "react": "^19.2.3",
121
121
  "react-reconciler": "0.32.0"
122
122
  },
123
123
  "engines": {
@@ -1,4 +1,4 @@
1
- import { createPlugin } from '@kubb/fabric-core/plugins'
1
+ import { definePlugin } from '@kubb/fabric-core/plugins'
2
2
  import { createElement, type ElementType } from 'react'
3
3
  import { Runtime } from '../Runtime.tsx'
4
4
 
@@ -28,7 +28,7 @@ declare global {
28
28
  }
29
29
  }
30
30
 
31
- export const reactPlugin = createPlugin<Options, ExtendOptions>({
31
+ export const reactPlugin = definePlugin<Options, ExtendOptions>({
32
32
  name: 'react',
33
33
  install() {},
34
34
  inject(ctx, options = {}) {
@@ -37,16 +37,16 @@ export const reactPlugin = createPlugin<Options, ExtendOptions>({
37
37
  return {
38
38
  async render(App) {
39
39
  await runtime.render(createElement(App))
40
- await ctx.emit('start')
40
+ await ctx.emit('lifecycle:start')
41
41
  },
42
42
  async renderToString(App) {
43
- await ctx.emit('start')
43
+ await ctx.emit('lifecycle:start')
44
44
  return runtime.renderToString(createElement(App))
45
45
  },
46
46
  async waitUntilExit() {
47
47
  await runtime.waitUntilExit()
48
48
 
49
- await ctx.emit('end')
49
+ await ctx.emit('lifecycle:end')
50
50
  },
51
51
  }
52
52
  },