@kubb/renderer-jsx 5.0.0-beta.7 → 5.0.0-beta.71
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/LICENSE +17 -10
- package/README.md +37 -27
- package/dist/index.cjs +388 -17919
- package/dist/index.d.ts +248 -165
- package/dist/index.js +373 -17901
- package/dist/jsx-dev-runtime.cjs +3 -10
- package/dist/jsx-dev-runtime.d.ts +4 -8
- package/dist/jsx-dev-runtime.js +1 -9
- package/dist/jsx-runtime.cjs +24 -6
- package/dist/jsx-runtime.d.ts +59 -10
- package/dist/jsx-runtime.js +24 -7
- package/dist/rolldown-runtime-C0LytTxp.js +8 -0
- package/dist/rolldown-runtime-ClG-MNz_.cjs +13 -0
- package/dist/types-OZ23urxc.d.ts +119 -0
- package/dist/types.d.ts +2 -2
- package/package.json +8 -31
- package/dist/chunk-Bb7HlUDG.js +0 -28
- package/dist/jsx-namespace-CNp0arTN.d.ts +0 -39
- package/dist/jsx-runtime-Cvu_ZYgL.js +0 -1448
- package/dist/jsx-runtime-DdmO3p0U.cjs +0 -1503
- package/dist/types-nAFMiWFw.d.ts +0 -168
- package/src/Renderer.ts +0 -182
- package/src/Runtime.tsx +0 -159
- package/src/components/Const.tsx +0 -72
- package/src/components/File.tsx +0 -186
- package/src/components/Function.tsx +0 -152
- package/src/components/Jsx.tsx +0 -34
- package/src/components/Root.tsx +0 -70
- package/src/components/Type.tsx +0 -66
- package/src/constants.ts +0 -28
- package/src/createRenderer.tsx +0 -93
- package/src/dom.ts +0 -105
- package/src/globals.ts +0 -34
- package/src/index.ts +0 -8
- package/src/jsx-dev-runtime.ts +0 -10
- package/src/jsx-namespace.d.ts +0 -52
- package/src/jsx-runtime.ts +0 -12
- package/src/types.ts +0 -207
- package/src/utils.ts +0 -267
package/dist/jsx-dev-runtime.cjs
CHANGED
|
@@ -1,11 +1,4 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_jsx_runtime
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const Fragment = import_jsx_runtime.Fragment;
|
|
6
|
-
const jsxDEV = import_jsx_runtime.jsx;
|
|
7
|
-
//#endregion
|
|
8
|
-
exports.Fragment = Fragment;
|
|
9
|
-
exports.jsxDEV = jsxDEV;
|
|
10
|
-
|
|
11
|
-
//# sourceMappingURL=jsx-dev-runtime.cjs.map
|
|
2
|
+
const require_jsx_runtime = require("./jsx-runtime.cjs");
|
|
3
|
+
exports.Fragment = require_jsx_runtime.Fragment;
|
|
4
|
+
exports.jsxDEV = require_jsx_runtime.jsxDEV;
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import * as _$react from "react";
|
|
5
|
-
import * as React$1 from "react/jsx-runtime";
|
|
1
|
+
import { t as __name } from "./rolldown-runtime-C0LytTxp.js";
|
|
2
|
+
import { d as KubbReactNode, u as KubbReactElement } from "./types-OZ23urxc.js";
|
|
3
|
+
import { Fragment, JSX, jsxDEV } from "./jsx-runtime.js";
|
|
6
4
|
|
|
7
5
|
//#region src/jsx-dev-runtime.d.ts
|
|
8
|
-
declare const Fragment: _$react.ExoticComponent<_$react.FragmentProps>;
|
|
9
|
-
declare const jsxDEV: typeof React$1.jsx;
|
|
10
6
|
type JSXElement = KubbReactElement;
|
|
11
7
|
type ReactNode = KubbReactNode;
|
|
12
8
|
//#endregion
|
|
13
|
-
export { Fragment, JSX, JSXElement, ReactNode, jsxDEV };
|
|
9
|
+
export { Fragment, type JSX, JSXElement, ReactNode, jsxDEV };
|
|
14
10
|
//# sourceMappingURL=jsx-dev-runtime.d.ts.map
|
package/dist/jsx-dev-runtime.js
CHANGED
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as require_jsx_runtime } from "./jsx-runtime-Cvu_ZYgL.js";
|
|
3
|
-
//#region src/jsx-dev-runtime.ts
|
|
4
|
-
var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime(), 1);
|
|
5
|
-
const Fragment = import_jsx_runtime.Fragment;
|
|
6
|
-
const jsxDEV = import_jsx_runtime.jsx;
|
|
7
|
-
//#endregion
|
|
1
|
+
import { Fragment, jsxDEV } from "./jsx-runtime.js";
|
|
8
2
|
export { Fragment, jsxDEV };
|
|
9
|
-
|
|
10
|
-
//# sourceMappingURL=jsx-dev-runtime.js.map
|
package/dist/jsx-runtime.cjs
CHANGED
|
@@ -1,11 +1,29 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
|
|
2
|
+
require("./rolldown-runtime-ClG-MNz_.cjs");
|
|
3
3
|
//#region src/jsx-runtime.ts
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
const KUBB_ELEMENT = Symbol.for("kubb.element");
|
|
5
|
+
/**
|
|
6
|
+
* Fragment marker. A `<>…</>` compiles to `jsx(Fragment, …)`, and the renderer
|
|
7
|
+
* unwraps it while walking the tree.
|
|
8
|
+
*/
|
|
9
|
+
const Fragment = Symbol.for("kubb.fragment");
|
|
10
|
+
/**
|
|
11
|
+
* Create a Kubb JSX element. The automatic JSX runtime calls this for every tag,
|
|
12
|
+
* so the renderer never depends on React at runtime. The `type` is a host
|
|
13
|
+
* string, a function component, or `Fragment`, and children are folded into
|
|
14
|
+
* `props`.
|
|
15
|
+
*/
|
|
16
|
+
function createElement(type, props, key) {
|
|
17
|
+
return {
|
|
18
|
+
$$typeof: KUBB_ELEMENT,
|
|
19
|
+
type,
|
|
20
|
+
key: key ?? null,
|
|
21
|
+
props: props ?? {}
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
const jsx = createElement;
|
|
25
|
+
const jsxs = createElement;
|
|
26
|
+
const jsxDEV = createElement;
|
|
9
27
|
//#endregion
|
|
10
28
|
exports.Fragment = Fragment;
|
|
11
29
|
exports.jsx = jsx;
|
package/dist/jsx-runtime.d.ts
CHANGED
|
@@ -1,16 +1,65 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { t as JSX } from "./jsx-namespace-CNp0arTN.js";
|
|
4
|
-
import * as _$react from "react";
|
|
5
|
-
import * as React$1 from "react/jsx-runtime";
|
|
1
|
+
import { t as __name } from "./rolldown-runtime-C0LytTxp.js";
|
|
2
|
+
import { a as KubbExportProps, c as KubbImportProps, d as KubbReactNode, f as KubbSourceProps, i as KubbConstProps, l as KubbJsxProps, m as LineBreakProps, n as Key, o as KubbFileProps, p as KubbTypeProps, r as KubbArrowFunctionProps, s as KubbFunctionProps, u as KubbReactElement } from "./types-OZ23urxc.js";
|
|
6
3
|
|
|
4
|
+
//#region src/jsx-namespace.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* JSX contract for `@kubb/renderer-jsx`, resolved through `jsxImportSource`.
|
|
7
|
+
*
|
|
8
|
+
* It is self-contained and does not extend `React.JSX`. The renderer only emits
|
|
9
|
+
* the custom `kubb-*` hosts plus `br`, and supports pure function components, so
|
|
10
|
+
* the HTML element and class-component machinery from `@types/react` is not needed.
|
|
11
|
+
*/
|
|
12
|
+
declare namespace JSX {
|
|
13
|
+
type ElementType = string | ((props: any) => KubbReactNode);
|
|
14
|
+
type Element = KubbReactElement;
|
|
15
|
+
interface ElementClass {
|
|
16
|
+
render(): KubbReactNode;
|
|
17
|
+
}
|
|
18
|
+
interface ElementAttributesProperty {
|
|
19
|
+
props: {};
|
|
20
|
+
}
|
|
21
|
+
interface ElementChildrenAttribute {
|
|
22
|
+
children: {};
|
|
23
|
+
}
|
|
24
|
+
interface IntrinsicAttributes {
|
|
25
|
+
key?: Key | null;
|
|
26
|
+
}
|
|
27
|
+
interface IntrinsicClassAttributes<T> {
|
|
28
|
+
key?: Key | null;
|
|
29
|
+
}
|
|
30
|
+
interface IntrinsicElements {
|
|
31
|
+
'kubb-jsx': KubbJsxProps;
|
|
32
|
+
'kubb-file': KubbFileProps;
|
|
33
|
+
'kubb-source': KubbSourceProps;
|
|
34
|
+
'kubb-import': KubbImportProps;
|
|
35
|
+
'kubb-export': KubbExportProps;
|
|
36
|
+
'kubb-function': KubbFunctionProps;
|
|
37
|
+
'kubb-arrow-function': KubbArrowFunctionProps;
|
|
38
|
+
'kubb-const': KubbConstProps;
|
|
39
|
+
'kubb-type': KubbTypeProps;
|
|
40
|
+
br: LineBreakProps;
|
|
41
|
+
}
|
|
42
|
+
type LibraryManagedAttributes<C, P> = P;
|
|
43
|
+
}
|
|
44
|
+
//#endregion
|
|
7
45
|
//#region src/jsx-runtime.d.ts
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
46
|
+
/**
|
|
47
|
+
* Fragment marker. A `<>…</>` compiles to `jsx(Fragment, …)`, and the renderer
|
|
48
|
+
* unwraps it while walking the tree.
|
|
49
|
+
*/
|
|
50
|
+
declare const Fragment: unique symbol;
|
|
51
|
+
/**
|
|
52
|
+
* Create a Kubb JSX element. The automatic JSX runtime calls this for every tag,
|
|
53
|
+
* so the renderer never depends on React at runtime. The `type` is a host
|
|
54
|
+
* string, a function component, or `Fragment`, and children are folded into
|
|
55
|
+
* `props`.
|
|
56
|
+
*/
|
|
57
|
+
declare function createElement(type: unknown, props: Record<string, unknown> | null, key?: Key | null): KubbReactElement;
|
|
58
|
+
declare const jsx: typeof createElement;
|
|
59
|
+
declare const jsxs: typeof createElement;
|
|
60
|
+
declare const jsxDEV: typeof createElement;
|
|
12
61
|
type JSXElement = KubbReactElement;
|
|
13
62
|
type ReactNode = KubbReactNode;
|
|
14
63
|
//#endregion
|
|
15
|
-
export { Fragment, JSX, JSXElement, ReactNode, jsx, jsxDEV, jsxs };
|
|
64
|
+
export { Fragment, type JSX, JSXElement, ReactNode, jsx, jsxDEV, jsxs };
|
|
16
65
|
//# sourceMappingURL=jsx-runtime.d.ts.map
|
package/dist/jsx-runtime.js
CHANGED
|
@@ -1,11 +1,28 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { t as require_jsx_runtime } from "./jsx-runtime-Cvu_ZYgL.js";
|
|
1
|
+
import "./rolldown-runtime-C0LytTxp.js";
|
|
3
2
|
//#region src/jsx-runtime.ts
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
const KUBB_ELEMENT = Symbol.for("kubb.element");
|
|
4
|
+
/**
|
|
5
|
+
* Fragment marker. A `<>…</>` compiles to `jsx(Fragment, …)`, and the renderer
|
|
6
|
+
* unwraps it while walking the tree.
|
|
7
|
+
*/
|
|
8
|
+
const Fragment = Symbol.for("kubb.fragment");
|
|
9
|
+
/**
|
|
10
|
+
* Create a Kubb JSX element. The automatic JSX runtime calls this for every tag,
|
|
11
|
+
* so the renderer never depends on React at runtime. The `type` is a host
|
|
12
|
+
* string, a function component, or `Fragment`, and children are folded into
|
|
13
|
+
* `props`.
|
|
14
|
+
*/
|
|
15
|
+
function createElement(type, props, key) {
|
|
16
|
+
return {
|
|
17
|
+
$$typeof: KUBB_ELEMENT,
|
|
18
|
+
type,
|
|
19
|
+
key: key ?? null,
|
|
20
|
+
props: props ?? {}
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
const jsx = createElement;
|
|
24
|
+
const jsxs = createElement;
|
|
25
|
+
const jsxDEV = createElement;
|
|
9
26
|
//#endregion
|
|
10
27
|
export { Fragment, jsx, jsxDEV, jsxs };
|
|
11
28
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __name = (target, value) => __defProp(target, "name", {
|
|
4
|
+
value,
|
|
5
|
+
configurable: true
|
|
6
|
+
});
|
|
7
|
+
//#endregion
|
|
8
|
+
Object.defineProperty(exports, "__name", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function() {
|
|
11
|
+
return __name;
|
|
12
|
+
}
|
|
13
|
+
});
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { t as __name } from "./rolldown-runtime-C0LytTxp.js";
|
|
2
|
+
import { ArrowFunctionNode, ConstNode, ExportNode, FileNode, FunctionNode, ImportNode, SourceNode, TypeNode } from "@kubb/ast";
|
|
3
|
+
|
|
4
|
+
//#region src/types.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Unique key for a Kubb JSX element in lists or conditional renders.
|
|
7
|
+
*/
|
|
8
|
+
type Key = string | number | bigint;
|
|
9
|
+
/**
|
|
10
|
+
* Element produced by a Kubb JSX component. The renderer walks these at runtime,
|
|
11
|
+
* so the fields stay opaque to type-checking.
|
|
12
|
+
*/
|
|
13
|
+
type KubbReactElement = {
|
|
14
|
+
type: unknown;
|
|
15
|
+
props: unknown;
|
|
16
|
+
key: Key | null;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Anything a Kubb JSX component accepts as children: an element, a primitive
|
|
20
|
+
* rendered as text, a nullish value that is skipped, or an iterable of nodes.
|
|
21
|
+
*/
|
|
22
|
+
type KubbReactNode = KubbReactElement | string | number | bigint | boolean | null | undefined | Iterable<KubbReactNode>;
|
|
23
|
+
/**
|
|
24
|
+
* Props for the `<kubb-jsx>` element.
|
|
25
|
+
* Embeds a raw JSX string verbatim in generated output.
|
|
26
|
+
*/
|
|
27
|
+
type KubbJsxProps = {
|
|
28
|
+
children?: string;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Props for the `<kubb-file>` element.
|
|
32
|
+
* Represents a generated file.
|
|
33
|
+
*/
|
|
34
|
+
type KubbFileProps = {
|
|
35
|
+
id?: string | null;
|
|
36
|
+
children?: KubbReactNode;
|
|
37
|
+
baseName: string;
|
|
38
|
+
path: string;
|
|
39
|
+
/**
|
|
40
|
+
* Absolute on-disk path to copy verbatim into the output, bypassing the parser. Use to emit a
|
|
41
|
+
* real source file shipped inside a package (a template) into the generated folder.
|
|
42
|
+
*/
|
|
43
|
+
copy?: string | null;
|
|
44
|
+
meta?: FileNode['meta'] | null;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Props for the `<kubb-source>` element.
|
|
48
|
+
* Marks a block of source text associated with a file.
|
|
49
|
+
*/
|
|
50
|
+
type KubbSourceProps = Omit<SourceNode, 'kind'> & {
|
|
51
|
+
children?: KubbReactNode;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Props for the `<kubb-import>` element.
|
|
55
|
+
* Declares an import statement in the generated file.
|
|
56
|
+
*/
|
|
57
|
+
type KubbImportProps = Omit<ImportNode, 'kind'> & {};
|
|
58
|
+
/**
|
|
59
|
+
* Props for the `<kubb-export>` element.
|
|
60
|
+
* Declares an export statement in the generated file.
|
|
61
|
+
*/
|
|
62
|
+
type KubbExportProps = Omit<ExportNode, 'kind'> & {};
|
|
63
|
+
/**
|
|
64
|
+
* Props for the `<kubb-function>` element.
|
|
65
|
+
* Generates a function declaration.
|
|
66
|
+
*/
|
|
67
|
+
type KubbFunctionProps = Omit<FunctionNode, 'kind'> & {
|
|
68
|
+
children?: KubbReactNode;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* Props for the `<kubb-arrow-function>` element.
|
|
72
|
+
* Generates an arrow function declaration.
|
|
73
|
+
*/
|
|
74
|
+
type KubbArrowFunctionProps = Omit<ArrowFunctionNode, 'kind'> & {
|
|
75
|
+
children?: KubbReactNode;
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* Props for the `<kubb-const>` element.
|
|
79
|
+
* Generates a constant declaration.
|
|
80
|
+
*/
|
|
81
|
+
type KubbConstProps = Omit<ConstNode, 'kind'> & {
|
|
82
|
+
children?: KubbReactNode;
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* Props for the `<kubb-type>` element.
|
|
86
|
+
* Generates a TypeScript type alias declaration.
|
|
87
|
+
*/
|
|
88
|
+
type KubbTypeProps = Omit<TypeNode, 'kind'> & {
|
|
89
|
+
children?: KubbReactNode;
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* Props for the `<br>` element. It emits a single line break and takes no
|
|
93
|
+
* attributes of its own.
|
|
94
|
+
*/
|
|
95
|
+
type LineBreakProps = {};
|
|
96
|
+
/**
|
|
97
|
+
* JSDoc comment block to attach to a generated declaration.
|
|
98
|
+
* Each string in `comments` becomes one line inside the `/** … *\/` block.
|
|
99
|
+
*
|
|
100
|
+
* @example
|
|
101
|
+
* ```ts
|
|
102
|
+
* { comments: ['@description A pet object.', '@deprecated Use PetV2 instead.'] }
|
|
103
|
+
* // Emits:
|
|
104
|
+
* // /**
|
|
105
|
+
* // * @description A pet object.
|
|
106
|
+
* // * @deprecated Use PetV2 instead.
|
|
107
|
+
* // *\/
|
|
108
|
+
* ```
|
|
109
|
+
*/
|
|
110
|
+
type JSDoc = {
|
|
111
|
+
/**
|
|
112
|
+
* Lines to emit inside the JSDoc block, in source order.
|
|
113
|
+
* Use standard JSDoc tags such as `@description`, `@deprecated`, `@see`, etc.
|
|
114
|
+
*/
|
|
115
|
+
comments: Array<string>;
|
|
116
|
+
};
|
|
117
|
+
//#endregion
|
|
118
|
+
export { KubbExportProps as a, KubbImportProps as c, KubbReactNode as d, KubbSourceProps as f, KubbConstProps as i, KubbJsxProps as l, LineBreakProps as m, Key as n, KubbFileProps as o, KubbTypeProps as p, KubbArrowFunctionProps as r, KubbFunctionProps as s, JSDoc as t, KubbReactElement as u };
|
|
119
|
+
//# sourceMappingURL=types-OZ23urxc.d.ts.map
|
package/dist/types.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { a as KubbExportProps, c as KubbImportProps, d as KubbReactNode, f as KubbSourceProps, i as KubbConstProps, l as KubbJsxProps, m as LineBreakProps, n as Key, o as KubbFileProps, p as KubbTypeProps, r as KubbArrowFunctionProps, s as KubbFunctionProps, t as JSDoc, u as KubbReactElement } from "./types-OZ23urxc.js";
|
|
2
|
+
export { JSDoc, Key, KubbArrowFunctionProps, KubbConstProps, KubbExportProps, KubbFileProps, KubbFunctionProps, KubbImportProps, KubbJsxProps, KubbReactElement, KubbReactNode, KubbSourceProps, KubbTypeProps, LineBreakProps };
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/renderer-jsx",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "5.0.0-beta.71",
|
|
4
|
+
"description": "Self-contained synchronous JSX renderer for Kubb. Turns JSX into FileNodes with built-in components (File, Function, Type, Const) for component-based, type-safe code generation. No React dependency.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"codegen",
|
|
7
7
|
"jsx",
|
|
8
8
|
"jsx-runtime",
|
|
9
9
|
"kubb",
|
|
10
|
-
"
|
|
10
|
+
"meta-framework",
|
|
11
11
|
"typescript"
|
|
12
12
|
],
|
|
13
13
|
"license": "MIT",
|
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
"directory": "packages/renderer-jsx"
|
|
19
19
|
},
|
|
20
20
|
"files": [
|
|
21
|
-
"src",
|
|
22
21
|
"dist",
|
|
23
22
|
"*.d.ts",
|
|
24
23
|
"*.d.cts",
|
|
@@ -28,18 +27,12 @@
|
|
|
28
27
|
"!/**/__snapshots__/**"
|
|
29
28
|
],
|
|
30
29
|
"type": "module",
|
|
31
|
-
"sideEffects":
|
|
32
|
-
"./dist/globals.js",
|
|
33
|
-
"./dist/globals.cjs"
|
|
34
|
-
],
|
|
30
|
+
"sideEffects": false,
|
|
35
31
|
"main": "./dist/index.cjs",
|
|
36
32
|
"module": "./dist/index.js",
|
|
37
33
|
"types": "./dist/index.d.ts",
|
|
38
34
|
"typesVersions": {
|
|
39
35
|
"*": {
|
|
40
|
-
"globals": [
|
|
41
|
-
"./dist/globals.d.ts"
|
|
42
|
-
],
|
|
43
36
|
"jsx-dev-runtime": [
|
|
44
37
|
"./dist/jsx-runtime.d.ts"
|
|
45
38
|
],
|
|
@@ -75,41 +68,25 @@
|
|
|
75
68
|
"registry": "https://registry.npmjs.org/"
|
|
76
69
|
},
|
|
77
70
|
"dependencies": {
|
|
78
|
-
"
|
|
71
|
+
"yaml": "^2.9.0",
|
|
72
|
+
"@kubb/ast": "5.0.0-beta.71"
|
|
79
73
|
},
|
|
80
74
|
"devDependencies": {
|
|
81
|
-
"@types/react": "^19.2.14",
|
|
82
|
-
"@types/react-reconciler": "0.33.0",
|
|
83
|
-
"react": "19.2.5",
|
|
84
|
-
"react-reconciler": "0.33.0",
|
|
85
75
|
"@internals/utils": "0.0.0"
|
|
86
76
|
},
|
|
87
|
-
"size-limit": [
|
|
88
|
-
{
|
|
89
|
-
"path": "./dist/*.js",
|
|
90
|
-
"limit": "510 KiB",
|
|
91
|
-
"gzip": true
|
|
92
|
-
}
|
|
93
|
-
],
|
|
94
77
|
"engines": {
|
|
95
78
|
"node": ">=22"
|
|
96
79
|
},
|
|
97
|
-
"inlinedDependencies": {
|
|
98
|
-
"react": "19.2.5",
|
|
99
|
-
"react-reconciler": "0.33.0",
|
|
100
|
-
"scheduler": "0.27.0"
|
|
101
|
-
},
|
|
102
80
|
"scripts": {
|
|
103
|
-
"build": "tsdown
|
|
81
|
+
"build": "tsdown",
|
|
104
82
|
"clean": "node -e \"require('fs').rmSync('./dist', {recursive:true,force:true})\"",
|
|
105
83
|
"lint": "oxlint .",
|
|
106
84
|
"lint:fix": "oxlint --fix .",
|
|
107
85
|
"release": "pnpm publish --no-git-check",
|
|
108
86
|
"release:canary": "bash ../../.github/canary.sh && node ../../scripts/build.js canary && pnpm publish --no-git-check -tag canary",
|
|
87
|
+
"release:stage": "pnpm stage publish --no-git-check",
|
|
109
88
|
"start": "tsdown --watch ./src",
|
|
110
|
-
"start:devtools": "npx react-devtools",
|
|
111
89
|
"test": "vitest --passWithNoTests",
|
|
112
|
-
"test:devtools": "node ./dist/runner.cjs",
|
|
113
90
|
"typecheck": "tsc -p ./tsconfig.json --noEmit --emitDeclarationOnly false"
|
|
114
91
|
}
|
|
115
92
|
}
|
package/dist/chunk-Bb7HlUDG.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
//#region \0rolldown/runtime.js
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __name = (target, value) => __defProp(target, "name", {
|
|
5
|
-
value,
|
|
6
|
-
configurable: true
|
|
7
|
-
});
|
|
8
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
9
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
10
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
11
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
12
|
-
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
13
|
-
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
15
|
-
key = keys[i];
|
|
16
|
-
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
17
|
-
get: ((k) => from[k]).bind(null, key),
|
|
18
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
return to;
|
|
22
|
-
};
|
|
23
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
24
|
-
value: mod,
|
|
25
|
-
enumerable: true
|
|
26
|
-
}) : target, mod));
|
|
27
|
-
//#endregion
|
|
28
|
-
export { __name as n, __toESM as r, __commonJSMin as t };
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { n as __name } from "./chunk-Bb7HlUDG.js";
|
|
2
|
-
import { _ as KubbTextProps, c as KubbConstProps, d as KubbFunctionProps, f as KubbImportProps, g as KubbSourceProps, h as KubbReactNode, l as KubbExportProps, m as KubbReactElement, p as KubbJsxProps, s as KubbArrowFunctionProps, u as KubbFileProps, v as KubbTypeProps, y as LineBreakProps } from "./types-nAFMiWFw.js";
|
|
3
|
-
import React from "react";
|
|
4
|
-
|
|
5
|
-
//#region src/jsx-namespace.d.ts
|
|
6
|
-
declare namespace JSX$1 {
|
|
7
|
-
type ElementType = React.JSX.ElementType;
|
|
8
|
-
type Element = KubbReactElement;
|
|
9
|
-
interface ElementClass extends React.JSX.ElementClass {
|
|
10
|
-
render(): KubbReactNode;
|
|
11
|
-
}
|
|
12
|
-
interface ElementAttributesProperty {
|
|
13
|
-
props: {};
|
|
14
|
-
}
|
|
15
|
-
interface ElementChildrenAttribute {
|
|
16
|
-
children: {};
|
|
17
|
-
}
|
|
18
|
-
interface IntrinsicElements extends React.JSX.IntrinsicElements {
|
|
19
|
-
'kubb-jsx': KubbJsxProps;
|
|
20
|
-
'kubb-text': KubbTextProps;
|
|
21
|
-
'kubb-file': KubbFileProps;
|
|
22
|
-
'kubb-source': KubbSourceProps;
|
|
23
|
-
'kubb-import': KubbImportProps;
|
|
24
|
-
'kubb-export': KubbExportProps;
|
|
25
|
-
'kubb-function': KubbFunctionProps;
|
|
26
|
-
'kubb-arrow-function': KubbArrowFunctionProps;
|
|
27
|
-
'kubb-const': KubbConstProps;
|
|
28
|
-
'kubb-type': KubbTypeProps;
|
|
29
|
-
br: LineBreakProps;
|
|
30
|
-
indent: {};
|
|
31
|
-
dedent: {};
|
|
32
|
-
}
|
|
33
|
-
type LibraryManagedAttributes<C, P> = React.JSX.LibraryManagedAttributes<C, P>;
|
|
34
|
-
interface IntrinsicClassAttributes<T> extends React.JSX.IntrinsicClassAttributes<T> {}
|
|
35
|
-
interface IntrinsicElements extends React.JSX.IntrinsicElements {}
|
|
36
|
-
}
|
|
37
|
-
//#endregion
|
|
38
|
-
export { JSX$1 as t };
|
|
39
|
-
//# sourceMappingURL=jsx-namespace-CNp0arTN.d.ts.map
|