@kubb/react-fabric 0.2.4 → 0.2.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.
@@ -1,11 +1,11 @@
1
- import { c as KubbFileProps, d as KubbSourceProps, f as KubbTextProps, l as KubbImportProps, p as LineBreakProps, s as KubbExportProps } from "./types-C9HPr_ft.cjs";
1
+ import { c as KubbExportProps, d as KubbNode, f as KubbSourceProps, l as KubbFileProps, m as LineBreakProps, p as KubbTextProps, u as KubbImportProps } from "./types-B2EZG5-G.cjs";
2
2
  import React from "react";
3
3
 
4
4
  //#region src/globals.d.ts
5
5
  declare module 'react' {
6
6
  namespace JSX {
7
7
  interface ElementClass extends React.ComponentClass<any> {
8
- render(): React.ReactNode;
8
+ render(): KubbNode;
9
9
  }
10
10
  interface ElementAttributesProperty {
11
11
  props: {};
@@ -23,4 +23,4 @@ declare module 'react' {
23
23
  }
24
24
  }
25
25
  }
26
- //# sourceMappingURL=globals-DHvLS0j3.d.cts.map
26
+ //# sourceMappingURL=globals-Bww8BuMp.d.cts.map
@@ -1,11 +1,11 @@
1
- import { c as KubbFileProps, d as KubbSourceProps, f as KubbTextProps, l as KubbImportProps, p as LineBreakProps, s as KubbExportProps } from "./types-P2Lm1k_W.js";
1
+ import { c as KubbExportProps, d as KubbNode, f as KubbSourceProps, l as KubbFileProps, m as LineBreakProps, p as KubbTextProps, u as KubbImportProps } from "./types-UALIyxCE.js";
2
2
  import React from "react";
3
3
 
4
4
  //#region src/globals.d.ts
5
5
  declare module 'react' {
6
6
  namespace JSX {
7
7
  interface ElementClass extends React.ComponentClass<any> {
8
- render(): React.ReactNode;
8
+ render(): KubbNode;
9
9
  }
10
10
  interface ElementAttributesProperty {
11
11
  props: {};
@@ -23,4 +23,4 @@ declare module 'react' {
23
23
  }
24
24
  }
25
25
  }
26
- //# sourceMappingURL=globals-C_mBzXoD.d.ts.map
26
+ //# sourceMappingURL=globals-C3pUb0jQ.d.ts.map
@@ -1,3 +1,3 @@
1
1
  import "./KubbFile-FGXV713i.cjs";
2
- import "./types-C9HPr_ft.cjs";
3
- import "./globals-DHvLS0j3.cjs";
2
+ import "./types-B2EZG5-G.cjs";
3
+ import "./globals-Bww8BuMp.cjs";
package/dist/globals.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  import "./KubbFile-D4gyyfL-.js";
2
- import "./types-P2Lm1k_W.js";
3
- import "./globals-C_mBzXoD.js";
2
+ import "./types-UALIyxCE.js";
3
+ import "./globals-C3pUb0jQ.js";
package/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { a as Import, c as Source, i as File$1, n as Export, o as Path, s as ResolvedFile, t as BaseName } from "./KubbFile-FGXV713i.cjs";
2
2
  import { a as FileProcessor, i as FileManager, n as FabricMode, r as FabricOptions, t as Fabric } from "./Fabric-BF1akKIl.cjs";
3
- import { a as JSDoc, h as FunctionParams, o as Key, u as KubbNode, v as createFunctionParams } from "./types-C9HPr_ft.cjs";
4
- import "./globals-DHvLS0j3.cjs";
3
+ import { a as JSDoc, d as KubbNode, g as FunctionParams, o as Key, y as createFunctionParams } from "./types-B2EZG5-G.cjs";
4
+ import "./globals-Bww8BuMp.cjs";
5
5
  import { t as Options$1 } from "./reactPlugin-DpMLHD7t.cjs";
6
6
  import * as react0 from "react";
7
7
  import React, { ReactNode, createContext, createElement, use, useContext, useEffect, useReducer, useRef, useState } from "react";
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { a as Import, c as Source, i as File$1, n as Export, o as Path, s as ResolvedFile, t as BaseName } from "./KubbFile-D4gyyfL-.js";
2
2
  import { a as FileProcessor, i as FileManager, n as FabricMode, r as FabricOptions, t as Fabric } from "./Fabric-E6DCwBtT.js";
3
- import { a as JSDoc, h as FunctionParams, o as Key, u as KubbNode, v as createFunctionParams } from "./types-P2Lm1k_W.js";
4
- import "./globals-C_mBzXoD.js";
3
+ import { a as JSDoc, d as KubbNode, g as FunctionParams, o as Key, y as createFunctionParams } from "./types-UALIyxCE.js";
4
+ import "./globals-C3pUb0jQ.js";
5
5
  import { t as Options$1 } from "./reactPlugin-B3xiMbv8.js";
6
6
  import * as react0 from "react";
7
7
  import React, { ReactNode, createContext, createElement, use, useContext, useEffect, useReducer, useRef, useState } from "react";
@@ -1,5 +1,11 @@
1
1
  import "./KubbFile-FGXV713i.cjs";
2
- import "./types-C9HPr_ft.cjs";
3
- import { t as JSX } from "./jsx-namespace-Cu6WTmTt.cjs";
2
+ import { d as KubbNode, s as KubbElement } from "./types-B2EZG5-G.cjs";
3
+ import { t as JSX } from "./jsx-namespace-CCcLTqTR.cjs";
4
4
  import { Fragment, jsxDEV } from "react/jsx-dev-runtime";
5
- export { Fragment, JSX, jsxDEV };
5
+
6
+ //#region src/jsx-dev-runtime.d.ts
7
+ type JSXElement = KubbElement;
8
+ type ReactNode = KubbNode;
9
+ //#endregion
10
+ export { Fragment, JSX, JSXElement, ReactNode, jsxDEV };
11
+ //# sourceMappingURL=jsx-dev-runtime.d.cts.map
@@ -1,5 +1,11 @@
1
1
  import "./KubbFile-D4gyyfL-.js";
2
- import "./types-P2Lm1k_W.js";
3
- import { t as JSX } from "./jsx-namespace-ghArQSma.js";
2
+ import { d as KubbNode, s as KubbElement } from "./types-UALIyxCE.js";
3
+ import { t as JSX } from "./jsx-namespace-DoTKeja2.js";
4
4
  import { Fragment, jsxDEV } from "react/jsx-dev-runtime";
5
- export { Fragment, JSX, jsxDEV };
5
+
6
+ //#region src/jsx-dev-runtime.d.ts
7
+ type JSXElement = KubbElement;
8
+ type ReactNode = KubbNode;
9
+ //#endregion
10
+ export { Fragment, JSX, JSXElement, ReactNode, jsxDEV };
11
+ //# sourceMappingURL=jsx-dev-runtime.d.ts.map
@@ -1,11 +1,12 @@
1
- import { c as KubbFileProps, d as KubbSourceProps, f as KubbTextProps, l as KubbImportProps, p as LineBreakProps, s as KubbExportProps } from "./types-P2Lm1k_W.js";
1
+ import { c as KubbExportProps, d as KubbNode, f as KubbSourceProps, l as KubbFileProps, m as LineBreakProps, p as KubbTextProps, s as KubbElement, u as KubbImportProps } from "./types-B2EZG5-G.cjs";
2
2
  import React from "react";
3
3
 
4
4
  //#region src/jsx-namespace.d.ts
5
- declare namespace JSX {
6
- type Element = React.ReactNode;
5
+
6
+ declare namespace JSX$1 {
7
+ type Element = KubbElement;
7
8
  interface ElementClass extends React.ComponentClass<any> {
8
- render(): React.ReactNode;
9
+ render(): KubbNode;
9
10
  }
10
11
  interface ElementAttributesProperty {
11
12
  props: {};
@@ -13,7 +14,7 @@ declare namespace JSX {
13
14
  interface ElementChildrenAttribute {
14
15
  children: {};
15
16
  }
16
- interface IntrinsicElements extends React.JSX.IntrinsicElements {
17
+ interface IntrinsicElements {
17
18
  'kubb-text': KubbTextProps;
18
19
  'kubb-file': KubbFileProps;
19
20
  'kubb-source': KubbSourceProps;
@@ -23,5 +24,5 @@ declare namespace JSX {
23
24
  }
24
25
  }
25
26
  //#endregion
26
- export { JSX as t };
27
- //# sourceMappingURL=jsx-namespace-ghArQSma.d.ts.map
27
+ export { JSX$1 as t };
28
+ //# sourceMappingURL=jsx-namespace-CCcLTqTR.d.cts.map
@@ -1,11 +1,12 @@
1
- import { c as KubbFileProps, d as KubbSourceProps, f as KubbTextProps, l as KubbImportProps, p as LineBreakProps, s as KubbExportProps } from "./types-C9HPr_ft.cjs";
1
+ import { c as KubbExportProps, d as KubbNode, f as KubbSourceProps, l as KubbFileProps, m as LineBreakProps, p as KubbTextProps, s as KubbElement, u as KubbImportProps } from "./types-UALIyxCE.js";
2
2
  import React from "react";
3
3
 
4
4
  //#region src/jsx-namespace.d.ts
5
- declare namespace JSX {
6
- type Element = React.ReactNode;
5
+
6
+ declare namespace JSX$1 {
7
+ type Element = KubbElement;
7
8
  interface ElementClass extends React.ComponentClass<any> {
8
- render(): React.ReactNode;
9
+ render(): KubbNode;
9
10
  }
10
11
  interface ElementAttributesProperty {
11
12
  props: {};
@@ -13,7 +14,7 @@ declare namespace JSX {
13
14
  interface ElementChildrenAttribute {
14
15
  children: {};
15
16
  }
16
- interface IntrinsicElements extends React.JSX.IntrinsicElements {
17
+ interface IntrinsicElements {
17
18
  'kubb-text': KubbTextProps;
18
19
  'kubb-file': KubbFileProps;
19
20
  'kubb-source': KubbSourceProps;
@@ -23,5 +24,5 @@ declare namespace JSX {
23
24
  }
24
25
  }
25
26
  //#endregion
26
- export { JSX as t };
27
- //# sourceMappingURL=jsx-namespace-Cu6WTmTt.d.cts.map
27
+ export { JSX$1 as t };
28
+ //# sourceMappingURL=jsx-namespace-DoTKeja2.d.ts.map
@@ -1,5 +1,11 @@
1
1
  import "./KubbFile-FGXV713i.cjs";
2
- import "./types-C9HPr_ft.cjs";
3
- import { t as JSX } from "./jsx-namespace-Cu6WTmTt.cjs";
2
+ import { d as KubbNode, s as KubbElement } from "./types-B2EZG5-G.cjs";
3
+ import { t as JSX } from "./jsx-namespace-CCcLTqTR.cjs";
4
4
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
5
- export { Fragment, JSX, jsx, jsxs };
5
+
6
+ //#region src/jsx-runtime.d.ts
7
+ type JSXElement = KubbElement;
8
+ type ReactNode = KubbNode;
9
+ //#endregion
10
+ export { Fragment, JSX, JSXElement, ReactNode, jsx, jsxs };
11
+ //# sourceMappingURL=jsx-runtime.d.cts.map
@@ -1,5 +1,11 @@
1
1
  import "./KubbFile-D4gyyfL-.js";
2
- import "./types-P2Lm1k_W.js";
3
- import { t as JSX } from "./jsx-namespace-ghArQSma.js";
2
+ import { d as KubbNode, s as KubbElement } from "./types-UALIyxCE.js";
3
+ import { t as JSX } from "./jsx-namespace-DoTKeja2.js";
4
4
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
5
- export { Fragment, JSX, jsx, jsxs };
5
+
6
+ //#region src/jsx-runtime.d.ts
7
+ type JSXElement = KubbElement;
8
+ type ReactNode = KubbNode;
9
+ //#endregion
10
+ export { Fragment, JSX, JSXElement, ReactNode, jsx, jsxs };
11
+ //# sourceMappingURL=jsx-runtime.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { a as Import, c as Source, i as File, n as Export } from "./KubbFile-FGXV713i.cjs";
2
- import React, { Key, ReactNode } from "react";
2
+ import React, { JSX, Key, ReactNode } from "react";
3
3
 
4
4
  //#region src/utils/getFunctionParams.d.ts
5
5
  type Param = {
@@ -78,6 +78,7 @@ type DOMElement = {
78
78
  } & Node;
79
79
  type NodeNames = ElementNames | TextName;
80
80
  type KubbNode = ReactNode;
81
+ type KubbElement = JSX.Element;
81
82
  type JSDoc = {
82
83
  comments: string[];
83
84
  };
@@ -99,5 +100,5 @@ type KubbImportProps = Import;
99
100
  type KubbExportProps = Export;
100
101
  type LineBreakProps = React.DetailedHTMLProps<React.HTMLAttributes<HTMLBRElement>, HTMLBRElement>;
101
102
  //#endregion
102
- export { Params as _, JSDoc as a, 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, Key as o, LineBreakProps as p, DOMNodeAttribute as r, KubbExportProps as s, DOMElement as t, KubbNode as u, createFunctionParams as v };
103
- //# sourceMappingURL=types-C9HPr_ft.d.cts.map
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-B2EZG5-G.d.cts.map
@@ -1,5 +1,5 @@
1
1
  import { a as Import, c as Source, i as File, n as Export } from "./KubbFile-D4gyyfL-.js";
2
- import React, { Key, ReactNode } from "react";
2
+ import React, { JSX, Key, ReactNode } from "react";
3
3
 
4
4
  //#region src/utils/getFunctionParams.d.ts
5
5
  type Param = {
@@ -78,6 +78,7 @@ type DOMElement = {
78
78
  } & Node;
79
79
  type NodeNames = ElementNames | TextName;
80
80
  type KubbNode = ReactNode;
81
+ type KubbElement = JSX.Element;
81
82
  type JSDoc = {
82
83
  comments: string[];
83
84
  };
@@ -99,5 +100,5 @@ type KubbImportProps = Import;
99
100
  type KubbExportProps = Export;
100
101
  type LineBreakProps = React.DetailedHTMLProps<React.HTMLAttributes<HTMLBRElement>, HTMLBRElement>;
101
102
  //#endregion
102
- export { Params as _, JSDoc as a, 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, Key as o, LineBreakProps as p, DOMNodeAttribute as r, KubbExportProps as s, DOMElement as t, KubbNode as u, createFunctionParams as v };
103
- //# sourceMappingURL=types-P2Lm1k_W.d.ts.map
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-UALIyxCE.d.ts.map
package/dist/types.d.cts CHANGED
@@ -1,3 +1,3 @@
1
1
  import "./KubbFile-FGXV713i.cjs";
2
- import { _ as Params, a as JSDoc, 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 Key, p as LineBreakProps, r as DOMNodeAttribute, s as KubbExportProps, t as DOMElement, u as KubbNode } from "./types-C9HPr_ft.cjs";
3
- export { DOMElement, DOMNode, DOMNodeAttribute, ElementNames, JSDoc, Key, KubbExportProps, KubbFileProps, KubbImportProps, KubbNode, KubbSourceProps, KubbTextProps, LineBreakProps, Param, Params, TextNode };
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-B2EZG5-G.cjs";
3
+ export { DOMElement, DOMNode, DOMNodeAttribute, ElementNames, JSDoc, Key, KubbElement, KubbExportProps, KubbFileProps, KubbImportProps, KubbNode, KubbSourceProps, KubbTextProps, LineBreakProps, Param, Params, TextNode };
package/dist/types.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  import "./KubbFile-D4gyyfL-.js";
2
- import { _ as Params, a as JSDoc, 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 Key, p as LineBreakProps, r as DOMNodeAttribute, s as KubbExportProps, t as DOMElement, u as KubbNode } from "./types-P2Lm1k_W.js";
3
- export { DOMElement, DOMNode, DOMNodeAttribute, ElementNames, JSDoc, Key, KubbExportProps, KubbFileProps, KubbImportProps, KubbNode, KubbSourceProps, KubbTextProps, LineBreakProps, Param, Params, TextNode };
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-UALIyxCE.js";
3
+ export { DOMElement, DOMNode, DOMNodeAttribute, ElementNames, JSDoc, Key, KubbElement, KubbExportProps, 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.2.4",
3
+ "version": "0.2.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",
@@ -105,11 +105,11 @@
105
105
  "react-reconciler": "0.32.0",
106
106
  "signal-exit": "^4.1.0",
107
107
  "react": "^19.2.0",
108
+ "@types/react": "^19.2.2",
108
109
  "ws": "8.18.0",
109
- "@kubb/fabric-core": "0.2.4"
110
+ "@kubb/fabric-core": "0.2.6"
110
111
  },
111
112
  "devDependencies": {
112
- "@types/react": "^19.2.2",
113
113
  "@types/react-reconciler": "0.32.0",
114
114
  "@types/ws": "^8.18.1",
115
115
  "tsdown": "^0.15.11",
package/src/globals.ts CHANGED
@@ -1,10 +1,11 @@
1
1
  import type { KubbExportProps, KubbFileProps, KubbImportProps, KubbSourceProps, KubbTextProps, LineBreakProps } from './types.ts'
2
2
  import type React from 'react'
3
+ import type { KubbNode } from '@kubb/react-fabric/types'
3
4
 
4
5
  declare module 'react' {
5
6
  namespace JSX {
6
7
  interface ElementClass extends React.ComponentClass<any> {
7
- render(): React.ReactNode
8
+ render(): KubbNode
8
9
  }
9
10
 
10
11
  interface ElementAttributesProperty {
@@ -14,6 +15,7 @@ declare module 'react' {
14
15
  interface ElementChildrenAttribute {
15
16
  children: {}
16
17
  }
18
+
17
19
  interface IntrinsicElements {
18
20
  'kubb-text': KubbTextProps
19
21
  'kubb-file': KubbFileProps
@@ -1,3 +1,8 @@
1
+ import type { KubbElement, KubbNode } from './types.ts'
2
+
1
3
  export type * from './jsx-namespace.d.ts'
2
4
 
3
5
  export { Fragment, jsxDEV } from 'react/jsx-dev-runtime'
6
+
7
+ export type JSXElement = KubbElement
8
+ export type ReactNode = KubbNode
@@ -1,11 +1,13 @@
1
1
  import type React from 'react'
2
+ import type { KubbNode, KubbElement } from './types.ts'
3
+
2
4
  import type { KubbExportProps, KubbFileProps, KubbImportProps, KubbSourceProps, KubbTextProps, LineBreakProps } from '@kubb/react-fabric/types'
3
5
 
4
6
  export namespace JSX {
5
- type Element = React.ReactNode
7
+ type Element = KubbElement
6
8
 
7
9
  interface ElementClass extends React.ComponentClass<any> {
8
- render(): React.ReactNode
10
+ render(): KubbNode
9
11
  }
10
12
 
11
13
  interface ElementAttributesProperty {
@@ -16,7 +18,7 @@ export namespace JSX {
16
18
  children: {}
17
19
  }
18
20
 
19
- interface IntrinsicElements extends React.JSX.IntrinsicElements {
21
+ interface IntrinsicElements {
20
22
  'kubb-text': KubbTextProps
21
23
  'kubb-file': KubbFileProps
22
24
  'kubb-source': KubbSourceProps
@@ -1,3 +1,8 @@
1
+ import type { KubbElement, KubbNode } from './types.ts'
2
+
1
3
  export type * from './jsx-namespace.d.ts'
2
4
 
3
5
  export { Fragment, jsx, jsxs } from 'react/jsx-runtime'
6
+
7
+ export type JSXElement = KubbElement
8
+ export type ReactNode = KubbNode
package/src/types.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { KubbFile } from '@kubb/fabric-core/types'
2
- import type { ReactNode } from 'react'
2
+ import type { ReactNode, JSX } from 'react'
3
3
  import type React from 'react'
4
4
  type ReactElementNames = 'br' | 'div'
5
5
 
@@ -45,6 +45,7 @@ export type DOMElement = {
45
45
  type NodeNames = ElementNames | TextName
46
46
 
47
47
  export type KubbNode = ReactNode
48
+ export type KubbElement = JSX.Element
48
49
 
49
50
  export type { Key } from 'react'
50
51