@kubb/react-fabric 0.2.4 → 0.2.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.
- package/dist/{globals-DHvLS0j3.d.cts → globals-Bww8BuMp.d.cts} +3 -3
- package/dist/{globals-C_mBzXoD.d.ts → globals-C3pUb0jQ.d.ts} +3 -3
- package/dist/globals.d.cts +2 -2
- package/dist/globals.d.ts +2 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/jsx-dev-runtime.d.cts +9 -3
- package/dist/jsx-dev-runtime.d.ts +9 -3
- package/dist/{jsx-namespace-ghArQSma.d.ts → jsx-namespace-CCcLTqTR.d.cts} +8 -7
- package/dist/{jsx-namespace-Cu6WTmTt.d.cts → jsx-namespace-DoTKeja2.d.ts} +8 -7
- package/dist/jsx-runtime.d.cts +9 -3
- package/dist/jsx-runtime.d.ts +9 -3
- package/dist/{types-C9HPr_ft.d.cts → types-B2EZG5-G.d.cts} +4 -3
- package/dist/{types-P2Lm1k_W.d.ts → types-UALIyxCE.d.ts} +4 -3
- package/dist/types.d.cts +2 -2
- package/dist/types.d.ts +2 -2
- package/package.json +2 -2
- package/src/globals.ts +3 -1
- package/src/jsx-dev-runtime.ts +5 -0
- package/src/jsx-namespace.d.ts +5 -3
- package/src/jsx-runtime.ts +5 -0
- package/src/types.ts +2 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { c as
|
|
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():
|
|
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-
|
|
26
|
+
//# sourceMappingURL=globals-Bww8BuMp.d.cts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { c as
|
|
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():
|
|
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-
|
|
26
|
+
//# sourceMappingURL=globals-C3pUb0jQ.d.ts.map
|
package/dist/globals.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "./KubbFile-FGXV713i.cjs";
|
|
2
|
-
import "./types-
|
|
3
|
-
import "./globals-
|
|
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-
|
|
3
|
-
import "./globals-
|
|
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,
|
|
4
|
-
import "./globals-
|
|
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,
|
|
4
|
-
import "./globals-
|
|
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-
|
|
3
|
-
import { t as JSX } from "./jsx-namespace-
|
|
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
|
-
|
|
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-
|
|
3
|
-
import { t as JSX } from "./jsx-namespace-
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
6
|
-
|
|
5
|
+
|
|
6
|
+
declare namespace JSX$1 {
|
|
7
|
+
type Element = KubbElement;
|
|
7
8
|
interface ElementClass extends React.ComponentClass<any> {
|
|
8
|
-
render():
|
|
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
|
|
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-
|
|
27
|
+
export { JSX$1 as t };
|
|
28
|
+
//# sourceMappingURL=jsx-namespace-CCcLTqTR.d.cts.map
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { c as
|
|
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
|
-
|
|
6
|
-
|
|
5
|
+
|
|
6
|
+
declare namespace JSX$1 {
|
|
7
|
+
type Element = KubbElement;
|
|
7
8
|
interface ElementClass extends React.ComponentClass<any> {
|
|
8
|
-
render():
|
|
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
|
|
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-
|
|
27
|
+
export { JSX$1 as t };
|
|
28
|
+
//# sourceMappingURL=jsx-namespace-DoTKeja2.d.ts.map
|
package/dist/jsx-runtime.d.cts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import "./KubbFile-FGXV713i.cjs";
|
|
2
|
-
import "./types-
|
|
3
|
-
import { t as JSX } from "./jsx-namespace-
|
|
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
|
-
|
|
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
|
package/dist/jsx-runtime.d.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import "./KubbFile-D4gyyfL-.js";
|
|
2
|
-
import "./types-
|
|
3
|
-
import { t as JSX } from "./jsx-namespace-
|
|
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
|
-
|
|
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 {
|
|
103
|
-
//# sourceMappingURL=types-
|
|
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 {
|
|
103
|
-
//# sourceMappingURL=types-
|
|
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
|
|
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
|
|
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.
|
|
3
|
+
"version": "0.2.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",
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"signal-exit": "^4.1.0",
|
|
107
107
|
"react": "^19.2.0",
|
|
108
108
|
"ws": "8.18.0",
|
|
109
|
-
"@kubb/fabric-core": "0.2.
|
|
109
|
+
"@kubb/fabric-core": "0.2.5"
|
|
110
110
|
},
|
|
111
111
|
"devDependencies": {
|
|
112
112
|
"@types/react": "^19.2.2",
|
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():
|
|
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
|
package/src/jsx-dev-runtime.ts
CHANGED
package/src/jsx-namespace.d.ts
CHANGED
|
@@ -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 =
|
|
7
|
+
type Element = KubbElement
|
|
6
8
|
|
|
7
9
|
interface ElementClass extends React.ComponentClass<any> {
|
|
8
|
-
render():
|
|
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
|
|
21
|
+
interface IntrinsicElements {
|
|
20
22
|
'kubb-text': KubbTextProps
|
|
21
23
|
'kubb-file': KubbFileProps
|
|
22
24
|
'kubb-source': KubbSourceProps
|
package/src/jsx-runtime.ts
CHANGED
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
|
|