@kubb/renderer-jsx 5.0.0-beta.1 → 5.0.0-beta.100
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 +135 -0
- package/dist/index.cjs +363 -17931
- package/dist/index.d.ts +719 -179
- package/dist/index.js +347 -17912
- package/dist/jsx-dev-runtime.cjs +3 -10
- package/dist/jsx-dev-runtime.d.ts +4 -9
- package/dist/jsx-dev-runtime.js +1 -9
- package/dist/jsx-runtime.cjs +24 -6
- package/dist/jsx-runtime.d.ts +83 -11
- 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-seYG0czS.d.ts +44 -0
- package/dist/types.d.ts +2 -2
- package/package.json +7 -42
- package/dist/chunk-Bb7HlUDG.js +0 -28
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/jsx-dev-runtime.cjs.map +0 -1
- package/dist/jsx-dev-runtime.js.map +0 -1
- package/dist/jsx-namespace-CNp0arTN.d.ts +0 -39
- package/dist/jsx-runtime-Cvu_ZYgL.js +0 -1448
- package/dist/jsx-runtime-Cvu_ZYgL.js.map +0 -1
- package/dist/jsx-runtime-DdmO3p0U.cjs +0 -1503
- package/dist/jsx-runtime-DdmO3p0U.cjs.map +0 -1
- package/dist/jsx-runtime.cjs.map +0 -1
- package/dist/jsx-runtime.js.map +0 -1
- package/dist/types-nAFMiWFw.d.ts +0 -168
- package/src/Renderer.ts +0 -184
- package/src/Runtime.tsx +0 -170
- 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,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import * as _$react from "react";
|
|
5
|
-
import * as React$1 from "react/jsx-runtime";
|
|
6
|
-
|
|
1
|
+
import { t as __name } from "./rolldown-runtime-C0LytTxp.js";
|
|
2
|
+
import { i as KubbReactNode, r as KubbReactElement } from "./types-seYG0czS.js";
|
|
3
|
+
import { Fragment, JSX, jsxDEV } from "./jsx-runtime.js";
|
|
7
4
|
//#region src/jsx-dev-runtime.d.ts
|
|
8
|
-
declare const Fragment: _$react.ExoticComponent<_$react.FragmentProps>;
|
|
9
|
-
declare const jsxDEV: typeof React$1.jsx;
|
|
10
5
|
type JSXElement = KubbReactElement;
|
|
11
6
|
type ReactNode = KubbReactNode;
|
|
12
7
|
//#endregion
|
|
13
|
-
export { Fragment, JSX, JSXElement, ReactNode, jsxDEV };
|
|
8
|
+
export { Fragment, type JSX, JSXElement, ReactNode, jsxDEV };
|
|
14
9
|
//# 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,88 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { t as __name } from "./rolldown-runtime-C0LytTxp.js";
|
|
2
|
+
import { i as KubbReactNode, n as Key, r as KubbReactElement } from "./types-seYG0czS.js";
|
|
3
|
+
import { ast } from "@kubb/kit";
|
|
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']: {
|
|
32
|
+
children?: string;
|
|
33
|
+
};
|
|
34
|
+
['kubb-file']: {
|
|
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
|
+
['kubb-source']: Omit<ast.SourceNode, 'kind'> & {
|
|
47
|
+
children?: KubbReactNode;
|
|
48
|
+
};
|
|
49
|
+
['kubb-import']: Omit<ast.ImportNode, 'kind'> & {};
|
|
50
|
+
['kubb-export']: Omit<ast.ExportNode, 'kind'> & {};
|
|
51
|
+
['kubb-function']: Omit<ast.FunctionNode, 'kind'> & {
|
|
52
|
+
children?: KubbReactNode;
|
|
53
|
+
};
|
|
54
|
+
['kubb-arrow-function']: Omit<ast.ArrowFunctionNode, 'kind'> & {
|
|
55
|
+
children?: KubbReactNode;
|
|
56
|
+
};
|
|
57
|
+
['kubb-const']: Omit<ast.ConstNode, 'kind'> & {
|
|
58
|
+
children?: KubbReactNode;
|
|
59
|
+
};
|
|
60
|
+
['kubb-type']: Omit<ast.TypeNode, 'kind'> & {
|
|
61
|
+
children?: KubbReactNode;
|
|
62
|
+
};
|
|
63
|
+
br: {};
|
|
64
|
+
}
|
|
65
|
+
type LibraryManagedAttributes<C, P> = P;
|
|
66
|
+
}
|
|
67
|
+
//#endregion
|
|
7
68
|
//#region src/jsx-runtime.d.ts
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
69
|
+
/**
|
|
70
|
+
* Fragment marker. A `<>…</>` compiles to `jsx(Fragment, …)`, and the renderer
|
|
71
|
+
* unwraps it while walking the tree.
|
|
72
|
+
*/
|
|
73
|
+
declare const Fragment: unique symbol;
|
|
74
|
+
/**
|
|
75
|
+
* Create a Kubb JSX element. The automatic JSX runtime calls this for every tag,
|
|
76
|
+
* so the renderer never depends on React at runtime. The `type` is a host
|
|
77
|
+
* string, a function component, or `Fragment`, and children are folded into
|
|
78
|
+
* `props`.
|
|
79
|
+
*/
|
|
80
|
+
declare function createElement(type: unknown, props: Record<string, unknown> | null, key?: Key | null): KubbReactElement;
|
|
81
|
+
declare const jsx: typeof createElement;
|
|
82
|
+
declare const jsxs: typeof createElement;
|
|
83
|
+
declare const jsxDEV: typeof createElement;
|
|
12
84
|
type JSXElement = KubbReactElement;
|
|
13
85
|
type ReactNode = KubbReactNode;
|
|
14
86
|
//#endregion
|
|
15
|
-
export { Fragment, JSX, JSXElement, ReactNode, jsx, jsxDEV, jsxs };
|
|
87
|
+
export { Fragment, type JSX, JSXElement, ReactNode, jsx, jsxDEV, jsxs };
|
|
16
88
|
//# 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,44 @@
|
|
|
1
|
+
import { t as __name } from "./rolldown-runtime-C0LytTxp.js";
|
|
2
|
+
//#region src/types.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Unique key for a Kubb JSX element in lists or conditional renders.
|
|
5
|
+
*/
|
|
6
|
+
type Key = string | number | bigint;
|
|
7
|
+
/**
|
|
8
|
+
* Element produced by a Kubb JSX component. The renderer walks these at runtime,
|
|
9
|
+
* so the fields stay opaque to type-checking.
|
|
10
|
+
*/
|
|
11
|
+
type KubbReactElement = {
|
|
12
|
+
type: unknown;
|
|
13
|
+
props: unknown;
|
|
14
|
+
key: Key | null;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Anything a Kubb JSX component accepts as children: an element, a primitive
|
|
18
|
+
* rendered as text, a nullish value that is skipped, or an iterable of nodes.
|
|
19
|
+
*/
|
|
20
|
+
type KubbReactNode = KubbReactElement | string | number | bigint | boolean | null | undefined | Iterable<KubbReactNode>;
|
|
21
|
+
/**
|
|
22
|
+
* JSDoc comment block to attach to a generated declaration.
|
|
23
|
+
* Each string in `comments` becomes one line inside the `/** … *\/` block.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* { comments: ['@description A pet object.', '@deprecated Use PetV2 instead.'] }
|
|
28
|
+
* // Emits:
|
|
29
|
+
* // /**
|
|
30
|
+
* // * @description A pet object.
|
|
31
|
+
* // * @deprecated Use PetV2 instead.
|
|
32
|
+
* // *\/
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
type JSDoc = {
|
|
36
|
+
/**
|
|
37
|
+
* Lines to emit inside the JSDoc block, in source order.
|
|
38
|
+
* Use standard JSDoc tags such as `@description`, `@deprecated`, `@see`, etc.
|
|
39
|
+
*/
|
|
40
|
+
comments: Array<string>;
|
|
41
|
+
};
|
|
42
|
+
//#endregion
|
|
43
|
+
export { KubbReactNode as i, Key as n, KubbReactElement as r, JSDoc as t };
|
|
44
|
+
//# sourceMappingURL=types-seYG0czS.d.ts.map
|
package/dist/types.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { i as KubbReactNode, n as Key, r as KubbReactElement, t as JSDoc } from "./types-seYG0czS.js";
|
|
2
|
+
export { JSDoc, Key, KubbReactElement, KubbReactNode };
|
package/package.json
CHANGED
|
@@ -1,19 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/renderer-jsx",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "5.0.0-beta.100",
|
|
4
|
+
"description": "Self-contained synchronous JSX renderer for Kubb. Turns JSX into FileNodes with built-in components (File, Function, Type, Const). An alternative for the ast.factory syntax.",
|
|
5
5
|
"keywords": [
|
|
6
|
-
"code-generator",
|
|
7
6
|
"codegen",
|
|
8
|
-
"component-generation",
|
|
9
|
-
"file-generation",
|
|
10
7
|
"jsx",
|
|
11
8
|
"jsx-runtime",
|
|
12
9
|
"kubb",
|
|
13
|
-
"
|
|
14
|
-
"plugins",
|
|
15
|
-
"react",
|
|
16
|
-
"react-reconciler",
|
|
10
|
+
"meta-framework",
|
|
17
11
|
"typescript"
|
|
18
12
|
],
|
|
19
13
|
"license": "MIT",
|
|
@@ -24,7 +18,6 @@
|
|
|
24
18
|
"directory": "packages/renderer-jsx"
|
|
25
19
|
},
|
|
26
20
|
"files": [
|
|
27
|
-
"src",
|
|
28
21
|
"dist",
|
|
29
22
|
"*.d.ts",
|
|
30
23
|
"*.d.cts",
|
|
@@ -34,18 +27,12 @@
|
|
|
34
27
|
"!/**/__snapshots__/**"
|
|
35
28
|
],
|
|
36
29
|
"type": "module",
|
|
37
|
-
"sideEffects":
|
|
38
|
-
"./dist/globals.js",
|
|
39
|
-
"./dist/globals.cjs"
|
|
40
|
-
],
|
|
30
|
+
"sideEffects": false,
|
|
41
31
|
"main": "./dist/index.cjs",
|
|
42
32
|
"module": "./dist/index.js",
|
|
43
33
|
"types": "./dist/index.d.ts",
|
|
44
34
|
"typesVersions": {
|
|
45
35
|
"*": {
|
|
46
|
-
"globals": [
|
|
47
|
-
"./dist/globals.d.ts"
|
|
48
|
-
],
|
|
49
36
|
"jsx-dev-runtime": [
|
|
50
37
|
"./dist/jsx-runtime.d.ts"
|
|
51
38
|
],
|
|
@@ -81,41 +68,19 @@
|
|
|
81
68
|
"registry": "https://registry.npmjs.org/"
|
|
82
69
|
},
|
|
83
70
|
"dependencies": {
|
|
84
|
-
"
|
|
85
|
-
|
|
86
|
-
"devDependencies": {
|
|
87
|
-
"@types/react": "^19.2.14",
|
|
88
|
-
"@types/react-reconciler": "0.33.0",
|
|
89
|
-
"react": "19.2.5",
|
|
90
|
-
"react-reconciler": "0.33.0",
|
|
91
|
-
"@internals/utils": "0.0.0"
|
|
71
|
+
"yaml": "^2.9.0",
|
|
72
|
+
"@kubb/kit": "5.0.0-beta.100"
|
|
92
73
|
},
|
|
93
|
-
"size-limit": [
|
|
94
|
-
{
|
|
95
|
-
"path": "./dist/*.js",
|
|
96
|
-
"limit": "510 KiB",
|
|
97
|
-
"gzip": true
|
|
98
|
-
}
|
|
99
|
-
],
|
|
100
74
|
"engines": {
|
|
101
75
|
"node": ">=22"
|
|
102
76
|
},
|
|
103
|
-
"inlinedDependencies": {
|
|
104
|
-
"react": "19.2.5",
|
|
105
|
-
"react-reconciler": "0.33.0",
|
|
106
|
-
"scheduler": "0.27.0"
|
|
107
|
-
},
|
|
108
77
|
"scripts": {
|
|
109
|
-
"build": "tsdown
|
|
78
|
+
"build": "tsdown",
|
|
110
79
|
"clean": "node -e \"require('fs').rmSync('./dist', {recursive:true,force:true})\"",
|
|
111
80
|
"lint": "oxlint .",
|
|
112
81
|
"lint:fix": "oxlint --fix .",
|
|
113
|
-
"release": "pnpm publish --no-git-check",
|
|
114
|
-
"release:canary": "bash ../../.github/canary.sh && node ../../scripts/build.js canary && pnpm publish --no-git-check -tag canary",
|
|
115
82
|
"start": "tsdown --watch ./src",
|
|
116
|
-
"start:devtools": "npx react-devtools",
|
|
117
83
|
"test": "vitest --passWithNoTests",
|
|
118
|
-
"test:devtools": "node ./dist/runner.cjs",
|
|
119
84
|
"typecheck": "tsc -p ./tsconfig.json --noEmit --emitDeclarationOnly false"
|
|
120
85
|
}
|
|
121
86
|
}
|
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 };
|