@kubb/react-fabric 0.12.8 → 0.12.10
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/{chunk-CrnDzoTS.js → chunk-DbZtQ4qb.js} +3 -3
- package/dist/getFunctionParams-BaDz1zZu.d.cts +47 -0
- package/dist/getFunctionParams-CINBJQGH.d.ts +48 -0
- package/dist/globals.d.cts +2 -1
- package/dist/globals.d.ts +2 -2
- package/dist/index.cjs +47 -45
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -8
- package/dist/index.d.ts +10 -9
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/jsx-dev-runtime.cjs +2 -1
- package/dist/jsx-dev-runtime.cjs.map +1 -1
- package/dist/jsx-dev-runtime.d.cts +5 -4
- package/dist/jsx-dev-runtime.d.ts +5 -5
- package/dist/jsx-dev-runtime.js +2 -2
- package/dist/{jsx-namespace-BdDNwAgO.d.cts → jsx-namespace-Bg7Kfg54.d.ts} +2 -1
- package/dist/{jsx-namespace-BMpcDF6T.d.ts → jsx-namespace-zRAnd-2Y.d.cts} +2 -2
- package/dist/{jsx-runtime-CpElaHq6.js → jsx-runtime-CQFBnRKx.js} +3 -11
- package/dist/jsx-runtime-CQFBnRKx.js.map +1 -0
- package/dist/{jsx-runtime-6sQc68DD.cjs → jsx-runtime-CRt7_dDm.cjs} +3 -29
- package/dist/jsx-runtime-CRt7_dDm.cjs.map +1 -0
- package/dist/jsx-runtime.cjs +15 -6
- package/dist/jsx-runtime.cjs.map +1 -0
- package/dist/jsx-runtime.d.cts +5 -4
- package/dist/jsx-runtime.d.ts +5 -5
- package/dist/jsx-runtime.js +11 -2
- package/dist/jsx-runtime.js.map +1 -0
- package/dist/plugins.cjs +4 -3
- package/dist/plugins.d.cts +1 -1
- package/dist/plugins.d.ts +1 -2
- package/dist/plugins.js +3 -3
- package/dist/{react-Cfp4vMID.js → react--draJ5Pm.js} +1 -1
- package/dist/{react-Cfp4vMID.js.map → react--draJ5Pm.js.map} +1 -1
- package/dist/{react-DgrQzKJp.cjs → react-s8IDJhpB.cjs} +1 -1
- package/dist/{react-DgrQzKJp.cjs.map → react-s8IDJhpB.cjs.map} +1 -1
- package/dist/{reactPlugin-CvA5o0Zs.d.ts → reactPlugin-CfilrfRJ.d.cts} +2 -2
- package/dist/{reactPlugin-CC8Zsb0O.d.cts → reactPlugin-D7d08sbQ.d.ts} +2 -1
- package/dist/{reactPlugin-DA3LXXbQ.js → reactPlugin-DqJsInTf.js} +13 -13
- package/dist/{reactPlugin-DA3LXXbQ.js.map → reactPlugin-DqJsInTf.js.map} +1 -1
- package/dist/{reactPlugin-D9h2zvuq.cjs → reactPlugin-yxgFjveE.cjs} +12 -12
- package/dist/{reactPlugin-D9h2zvuq.cjs.map → reactPlugin-yxgFjveE.cjs.map} +1 -1
- package/dist/types.d.cts +60 -2
- package/dist/types.d.ts +61 -2
- package/package.json +18 -18
- package/dist/jsx-runtime-6sQc68DD.cjs.map +0 -1
- package/dist/jsx-runtime-CpElaHq6.js.map +0 -1
- package/dist/types-BKnc-nPE.d.ts +0 -103
- package/dist/types-K0AHi-aU.d.cts +0 -104
package/dist/types.d.cts
CHANGED
|
@@ -1,3 +1,61 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as __exportAll, n as Param, o as __name, r as Params, s as __reExport } from "./getFunctionParams-BaDz1zZu.cjs";
|
|
2
|
+
import React, { JSX, ReactNode } from "react";
|
|
3
|
+
import { KubbFile } from "@kubb/fabric-core/types";
|
|
2
4
|
export * from "@kubb/fabric-core/types";
|
|
3
|
-
|
|
5
|
+
|
|
6
|
+
//#region src/types.d.ts
|
|
7
|
+
declare namespace types_d_exports {
|
|
8
|
+
export { DOMElement, DOMNode, DOMNodeAttribute, ElementNames, FabricExportProps, FabricFileProps, FabricImportProps, FabricReactElement, FabricReactNode, FabricSourceProps, FabricTextProps, Key, LineBreakProps, Param, Params, TextNode };
|
|
9
|
+
}
|
|
10
|
+
import * as import__kubb_fabric_core_types from "@kubb/fabric-core/types";
|
|
11
|
+
type Key = string | number | bigint;
|
|
12
|
+
type ElementNames = 'br' | 'div' | 'indent' | 'dedent' | 'kubb-text' | 'kubb-file' | 'kubb-source' | 'kubb-import' | 'kubb-export' | 'kubb-root' | 'kubb-app';
|
|
13
|
+
type Node = {
|
|
14
|
+
parentNode: DOMElement | undefined;
|
|
15
|
+
internal_static?: boolean;
|
|
16
|
+
};
|
|
17
|
+
type DOMNodeAttribute = boolean | string | number;
|
|
18
|
+
type TextName = '#text';
|
|
19
|
+
type TextNode = {
|
|
20
|
+
nodeName: TextName;
|
|
21
|
+
nodeValue: string;
|
|
22
|
+
} & Node;
|
|
23
|
+
type DOMNode<T = {
|
|
24
|
+
nodeName: NodeNames;
|
|
25
|
+
}> = T extends {
|
|
26
|
+
nodeName: infer U;
|
|
27
|
+
} ? U extends '#text' ? TextNode : DOMElement : never;
|
|
28
|
+
type OutputTransformer = (s: string, index: number) => string;
|
|
29
|
+
type DOMElement = {
|
|
30
|
+
nodeName: ElementNames;
|
|
31
|
+
attributes: Map<string, DOMNodeAttribute>;
|
|
32
|
+
childNodes: DOMNode[];
|
|
33
|
+
internal_transform?: OutputTransformer;
|
|
34
|
+
isStaticDirty?: boolean;
|
|
35
|
+
staticNode?: DOMElement;
|
|
36
|
+
onComputeLayout?: () => void;
|
|
37
|
+
onRender?: () => void;
|
|
38
|
+
onImmediateRender?: () => void;
|
|
39
|
+
} & Node;
|
|
40
|
+
type NodeNames = ElementNames | TextName;
|
|
41
|
+
type FabricReactNode = ReactNode;
|
|
42
|
+
type FabricReactElement = JSX.Element;
|
|
43
|
+
type FabricTextProps = {
|
|
44
|
+
children?: FabricReactNode;
|
|
45
|
+
};
|
|
46
|
+
type FabricFileProps = {
|
|
47
|
+
id?: string;
|
|
48
|
+
children?: FabricReactNode;
|
|
49
|
+
baseName: string;
|
|
50
|
+
path: string;
|
|
51
|
+
override?: boolean;
|
|
52
|
+
meta?: KubbFile.File['meta'];
|
|
53
|
+
};
|
|
54
|
+
type FabricSourceProps = KubbFile.Source & {
|
|
55
|
+
children?: FabricReactNode;
|
|
56
|
+
};
|
|
57
|
+
type FabricImportProps = KubbFile.Import;
|
|
58
|
+
type FabricExportProps = KubbFile.Export;
|
|
59
|
+
type LineBreakProps = React.DetailedHTMLProps<React.HTMLAttributes<HTMLBRElement>, HTMLBRElement>;
|
|
60
|
+
//#endregion
|
|
61
|
+
export { DOMElement, DOMNode, DOMNodeAttribute, ElementNames, FabricExportProps, FabricFileProps, FabricImportProps, FabricReactElement, FabricReactNode, FabricSourceProps, FabricTextProps, Key, LineBreakProps, type Param, type Params, TextNode, types_d_exports as t };
|
package/dist/types.d.ts
CHANGED
|
@@ -1,3 +1,62 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as __reExport, n as __exportAll, r as __name } from "./chunk-DbZtQ4qb.js";
|
|
2
|
+
import { n as Param, r as Params } from "./getFunctionParams-CINBJQGH.js";
|
|
3
|
+
import { KubbFile } from "@kubb/fabric-core/types";
|
|
4
|
+
import React, { JSX, ReactNode } from "react";
|
|
2
5
|
export * from "@kubb/fabric-core/types";
|
|
3
|
-
|
|
6
|
+
|
|
7
|
+
//#region src/types.d.ts
|
|
8
|
+
declare namespace types_d_exports {
|
|
9
|
+
export { DOMElement, DOMNode, DOMNodeAttribute, ElementNames, FabricExportProps, FabricFileProps, FabricImportProps, FabricReactElement, FabricReactNode, FabricSourceProps, FabricTextProps, Key, LineBreakProps, Param, Params, TextNode };
|
|
10
|
+
}
|
|
11
|
+
import * as import__kubb_fabric_core_types from "@kubb/fabric-core/types";
|
|
12
|
+
type Key = string | number | bigint;
|
|
13
|
+
type ElementNames = 'br' | 'div' | 'indent' | 'dedent' | 'kubb-text' | 'kubb-file' | 'kubb-source' | 'kubb-import' | 'kubb-export' | 'kubb-root' | 'kubb-app';
|
|
14
|
+
type Node = {
|
|
15
|
+
parentNode: DOMElement | undefined;
|
|
16
|
+
internal_static?: boolean;
|
|
17
|
+
};
|
|
18
|
+
type DOMNodeAttribute = boolean | string | number;
|
|
19
|
+
type TextName = '#text';
|
|
20
|
+
type TextNode = {
|
|
21
|
+
nodeName: TextName;
|
|
22
|
+
nodeValue: string;
|
|
23
|
+
} & Node;
|
|
24
|
+
type DOMNode<T = {
|
|
25
|
+
nodeName: NodeNames;
|
|
26
|
+
}> = T extends {
|
|
27
|
+
nodeName: infer U;
|
|
28
|
+
} ? U extends '#text' ? TextNode : DOMElement : never;
|
|
29
|
+
type OutputTransformer = (s: string, index: number) => string;
|
|
30
|
+
type DOMElement = {
|
|
31
|
+
nodeName: ElementNames;
|
|
32
|
+
attributes: Map<string, DOMNodeAttribute>;
|
|
33
|
+
childNodes: DOMNode[];
|
|
34
|
+
internal_transform?: OutputTransformer;
|
|
35
|
+
isStaticDirty?: boolean;
|
|
36
|
+
staticNode?: DOMElement;
|
|
37
|
+
onComputeLayout?: () => void;
|
|
38
|
+
onRender?: () => void;
|
|
39
|
+
onImmediateRender?: () => void;
|
|
40
|
+
} & Node;
|
|
41
|
+
type NodeNames = ElementNames | TextName;
|
|
42
|
+
type FabricReactNode = ReactNode;
|
|
43
|
+
type FabricReactElement = JSX.Element;
|
|
44
|
+
type FabricTextProps = {
|
|
45
|
+
children?: FabricReactNode;
|
|
46
|
+
};
|
|
47
|
+
type FabricFileProps = {
|
|
48
|
+
id?: string;
|
|
49
|
+
children?: FabricReactNode;
|
|
50
|
+
baseName: string;
|
|
51
|
+
path: string;
|
|
52
|
+
override?: boolean;
|
|
53
|
+
meta?: KubbFile.File['meta'];
|
|
54
|
+
};
|
|
55
|
+
type FabricSourceProps = KubbFile.Source & {
|
|
56
|
+
children?: FabricReactNode;
|
|
57
|
+
};
|
|
58
|
+
type FabricImportProps = KubbFile.Import;
|
|
59
|
+
type FabricExportProps = KubbFile.Export;
|
|
60
|
+
type LineBreakProps = React.DetailedHTMLProps<React.HTMLAttributes<HTMLBRElement>, HTMLBRElement>;
|
|
61
|
+
//#endregion
|
|
62
|
+
export { DOMElement, DOMNode, DOMNodeAttribute, ElementNames, FabricExportProps, FabricFileProps, FabricImportProps, FabricReactElement, FabricReactNode, FabricSourceProps, FabricTextProps, Key, LineBreakProps, type Param, type Params, TextNode, types_d_exports as t };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/react-fabric",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.10",
|
|
4
4
|
"description": "React integration for Kubb's fabric - JSX runtime and component-based code generation with React reconciler for building type-safe generators",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -31,32 +31,32 @@
|
|
|
31
31
|
"type": "module",
|
|
32
32
|
"exports": {
|
|
33
33
|
".": {
|
|
34
|
-
"
|
|
35
|
-
"
|
|
34
|
+
"import": "./dist/index.js",
|
|
35
|
+
"require": "./dist/index.cjs"
|
|
36
36
|
},
|
|
37
37
|
"./globals": {
|
|
38
|
-
"
|
|
39
|
-
"
|
|
38
|
+
"import": "./dist/globals.js",
|
|
39
|
+
"require": "./dist/globals.cjs"
|
|
40
40
|
},
|
|
41
41
|
"./jsx-dev-runtime": {
|
|
42
|
-
"
|
|
43
|
-
"
|
|
42
|
+
"import": "./dist/jsx-dev-runtime.js",
|
|
43
|
+
"require": "./dist/jsx-dev-runtime.cjs"
|
|
44
44
|
},
|
|
45
45
|
"./jsx-runtime": {
|
|
46
|
-
"
|
|
47
|
-
"
|
|
46
|
+
"import": "./dist/jsx-runtime.js",
|
|
47
|
+
"require": "./dist/jsx-runtime.cjs"
|
|
48
48
|
},
|
|
49
49
|
"./parsers": {
|
|
50
|
-
"
|
|
51
|
-
"
|
|
50
|
+
"import": "./dist/parsers.js",
|
|
51
|
+
"require": "./dist/parsers.cjs"
|
|
52
52
|
},
|
|
53
53
|
"./plugins": {
|
|
54
|
-
"
|
|
55
|
-
"
|
|
54
|
+
"import": "./dist/plugins.js",
|
|
55
|
+
"require": "./dist/plugins.cjs"
|
|
56
56
|
},
|
|
57
57
|
"./types": {
|
|
58
|
-
"
|
|
59
|
-
"
|
|
58
|
+
"import": "./dist/types.js",
|
|
59
|
+
"require": "./dist/types.cjs"
|
|
60
60
|
},
|
|
61
61
|
"./package.json": "./package.json"
|
|
62
62
|
},
|
|
@@ -105,13 +105,13 @@
|
|
|
105
105
|
"execa": "^9.6.1",
|
|
106
106
|
"natural-orderby": "^5.0.0",
|
|
107
107
|
"react-devtools-core": "6.1.5",
|
|
108
|
-
"remeda": "^2.33.
|
|
108
|
+
"remeda": "^2.33.5",
|
|
109
109
|
"signal-exit": "^4.1.0",
|
|
110
110
|
"ws": "8.18.0",
|
|
111
|
-
"@kubb/fabric-core": "0.12.
|
|
111
|
+
"@kubb/fabric-core": "0.12.10"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
|
-
"@types/react": "^19.2.
|
|
114
|
+
"@types/react": "^19.2.13",
|
|
115
115
|
"@types/react-reconciler": "0.32.0",
|
|
116
116
|
"@types/ws": "^8.18.1",
|
|
117
117
|
"react": "19.2.3",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jsx-runtime-6sQc68DD.cjs","names":[],"sources":["../../../node_modules/.pnpm/react@19.2.3/node_modules/react/cjs/react-jsx-runtime.production.js","../../../node_modules/.pnpm/react@19.2.3/node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/.pnpm/react@19.2.3/node_modules/react/jsx-runtime.js","../src/jsx-runtime.ts"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\");\nfunction jsxProd(type, config, maybeKey) {\n var key = null;\n void 0 !== maybeKey && (key = \"\" + maybeKey);\n void 0 !== config.key && (key = \"\" + config.key);\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n config = maybeKey.ref;\n return {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n ref: void 0 !== config ? config : null,\n props: maybeKey\n };\n}\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsxProd;\nexports.jsxs = jsxProd;\n","/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function getComponentNameFromType(type) {\n if (null == type) return null;\n if (\"function\" === typeof type)\n return type.$$typeof === REACT_CLIENT_REFERENCE\n ? null\n : type.displayName || type.name || null;\n if (\"string\" === typeof type) return type;\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return \"Fragment\";\n case REACT_PROFILER_TYPE:\n return \"Profiler\";\n case REACT_STRICT_MODE_TYPE:\n return \"StrictMode\";\n case REACT_SUSPENSE_TYPE:\n return \"Suspense\";\n case REACT_SUSPENSE_LIST_TYPE:\n return \"SuspenseList\";\n case REACT_ACTIVITY_TYPE:\n return \"Activity\";\n }\n if (\"object\" === typeof type)\n switch (\n (\"number\" === typeof type.tag &&\n console.error(\n \"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"\n ),\n type.$$typeof)\n ) {\n case REACT_PORTAL_TYPE:\n return \"Portal\";\n case REACT_CONTEXT_TYPE:\n return type.displayName || \"Context\";\n case REACT_CONSUMER_TYPE:\n return (type._context.displayName || \"Context\") + \".Consumer\";\n case REACT_FORWARD_REF_TYPE:\n var innerType = type.render;\n type = type.displayName;\n type ||\n ((type = innerType.displayName || innerType.name || \"\"),\n (type = \"\" !== type ? \"ForwardRef(\" + type + \")\" : \"ForwardRef\"));\n return type;\n case REACT_MEMO_TYPE:\n return (\n (innerType = type.displayName || null),\n null !== innerType\n ? innerType\n : getComponentNameFromType(type.type) || \"Memo\"\n );\n case REACT_LAZY_TYPE:\n innerType = type._payload;\n type = type._init;\n try {\n return getComponentNameFromType(type(innerType));\n } catch (x) {}\n }\n return null;\n }\n function testStringCoercion(value) {\n return \"\" + value;\n }\n function checkKeyStringCoercion(value) {\n try {\n testStringCoercion(value);\n var JSCompiler_inline_result = !1;\n } catch (e) {\n JSCompiler_inline_result = !0;\n }\n if (JSCompiler_inline_result) {\n JSCompiler_inline_result = console;\n var JSCompiler_temp_const = JSCompiler_inline_result.error;\n var JSCompiler_inline_result$jscomp$0 =\n (\"function\" === typeof Symbol &&\n Symbol.toStringTag &&\n value[Symbol.toStringTag]) ||\n value.constructor.name ||\n \"Object\";\n JSCompiler_temp_const.call(\n JSCompiler_inline_result,\n \"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",\n JSCompiler_inline_result$jscomp$0\n );\n return testStringCoercion(value);\n }\n }\n function getTaskName(type) {\n if (type === REACT_FRAGMENT_TYPE) return \"<>\";\n if (\n \"object\" === typeof type &&\n null !== type &&\n type.$$typeof === REACT_LAZY_TYPE\n )\n return \"<...>\";\n try {\n var name = getComponentNameFromType(type);\n return name ? \"<\" + name + \">\" : \"<...>\";\n } catch (x) {\n return \"<...>\";\n }\n }\n function getOwner() {\n var dispatcher = ReactSharedInternals.A;\n return null === dispatcher ? null : dispatcher.getOwner();\n }\n function UnknownOwner() {\n return Error(\"react-stack-top-frame\");\n }\n function hasValidKey(config) {\n if (hasOwnProperty.call(config, \"key\")) {\n var getter = Object.getOwnPropertyDescriptor(config, \"key\").get;\n if (getter && getter.isReactWarning) return !1;\n }\n return void 0 !== config.key;\n }\n function defineKeyPropWarningGetter(props, displayName) {\n function warnAboutAccessingKey() {\n specialPropKeyWarningShown ||\n ((specialPropKeyWarningShown = !0),\n console.error(\n \"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)\",\n displayName\n ));\n }\n warnAboutAccessingKey.isReactWarning = !0;\n Object.defineProperty(props, \"key\", {\n get: warnAboutAccessingKey,\n configurable: !0\n });\n }\n function elementRefGetterWithDeprecationWarning() {\n var componentName = getComponentNameFromType(this.type);\n didWarnAboutElementRef[componentName] ||\n ((didWarnAboutElementRef[componentName] = !0),\n console.error(\n \"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.\"\n ));\n componentName = this.props.ref;\n return void 0 !== componentName ? componentName : null;\n }\n function ReactElement(type, key, props, owner, debugStack, debugTask) {\n var refProp = props.ref;\n type = {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n props: props,\n _owner: owner\n };\n null !== (void 0 !== refProp ? refProp : null)\n ? Object.defineProperty(type, \"ref\", {\n enumerable: !1,\n get: elementRefGetterWithDeprecationWarning\n })\n : Object.defineProperty(type, \"ref\", { enumerable: !1, value: null });\n type._store = {};\n Object.defineProperty(type._store, \"validated\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: 0\n });\n Object.defineProperty(type, \"_debugInfo\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: null\n });\n Object.defineProperty(type, \"_debugStack\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugStack\n });\n Object.defineProperty(type, \"_debugTask\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugTask\n });\n Object.freeze && (Object.freeze(type.props), Object.freeze(type));\n return type;\n }\n function jsxDEVImpl(\n type,\n config,\n maybeKey,\n isStaticChildren,\n debugStack,\n debugTask\n ) {\n var children = config.children;\n if (void 0 !== children)\n if (isStaticChildren)\n if (isArrayImpl(children)) {\n for (\n isStaticChildren = 0;\n isStaticChildren < children.length;\n isStaticChildren++\n )\n validateChildKeys(children[isStaticChildren]);\n Object.freeze && Object.freeze(children);\n } else\n console.error(\n \"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.\"\n );\n else validateChildKeys(children);\n if (hasOwnProperty.call(config, \"key\")) {\n children = getComponentNameFromType(type);\n var keys = Object.keys(config).filter(function (k) {\n return \"key\" !== k;\n });\n isStaticChildren =\n 0 < keys.length\n ? \"{key: someKey, \" + keys.join(\": ..., \") + \": ...}\"\n : \"{key: someKey}\";\n didWarnAboutKeySpread[children + isStaticChildren] ||\n ((keys =\n 0 < keys.length ? \"{\" + keys.join(\": ..., \") + \": ...}\" : \"{}\"),\n console.error(\n 'A props object containing a \"key\" prop is being spread into JSX:\\n let props = %s;\\n <%s {...props} />\\nReact keys must be passed directly to JSX without using spread:\\n let props = %s;\\n <%s key={someKey} {...props} />',\n isStaticChildren,\n children,\n keys,\n children\n ),\n (didWarnAboutKeySpread[children + isStaticChildren] = !0));\n }\n children = null;\n void 0 !== maybeKey &&\n (checkKeyStringCoercion(maybeKey), (children = \"\" + maybeKey));\n hasValidKey(config) &&\n (checkKeyStringCoercion(config.key), (children = \"\" + config.key));\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n children &&\n defineKeyPropWarningGetter(\n maybeKey,\n \"function\" === typeof type\n ? type.displayName || type.name || \"Unknown\"\n : type\n );\n return ReactElement(\n type,\n children,\n maybeKey,\n getOwner(),\n debugStack,\n debugTask\n );\n }\n function validateChildKeys(node) {\n isValidElement(node)\n ? node._store && (node._store.validated = 1)\n : \"object\" === typeof node &&\n null !== node &&\n node.$$typeof === REACT_LAZY_TYPE &&\n (\"fulfilled\" === node._payload.status\n ? isValidElement(node._payload.value) &&\n node._payload.value._store &&\n (node._payload.value._store.validated = 1)\n : node._store && (node._store.validated = 1));\n }\n function isValidElement(object) {\n return (\n \"object\" === typeof object &&\n null !== object &&\n object.$$typeof === REACT_ELEMENT_TYPE\n );\n }\n var React = require(\"react\"),\n REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\"),\n REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n REACT_ACTIVITY_TYPE = Symbol.for(\"react.activity\"),\n REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\"),\n ReactSharedInternals =\n React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,\n hasOwnProperty = Object.prototype.hasOwnProperty,\n isArrayImpl = Array.isArray,\n createTask = console.createTask\n ? console.createTask\n : function () {\n return null;\n };\n React = {\n react_stack_bottom_frame: function (callStackForError) {\n return callStackForError();\n }\n };\n var specialPropKeyWarningShown;\n var didWarnAboutElementRef = {};\n var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(\n React,\n UnknownOwner\n )();\n var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));\n var didWarnAboutKeySpread = {};\n exports.Fragment = REACT_FRAGMENT_TYPE;\n exports.jsx = function (type, config, maybeKey) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !1,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n exports.jsxs = function (type, config, maybeKey) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !0,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n })();\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","import * as React from 'react/jsx-runtime'\nimport type { FabricReactElement, FabricReactNode } from './types.ts'\n\nexport const Fragment = React.Fragment\nexport const jsx = React.jsx\nexport const jsxDEV = React.jsx\nexport const jsxs = React.jsxs\n\nexport type * from './jsx-namespace.d.ts'\n\nexport type JSXElement = FabricReactElement\nexport type ReactNode = FabricReactNode\n"],"x_google_ignoreList":[0,1,2],"mappings":";;;;;;;;;;;;;KAWI,qBAAqB,OAAO,IAAI,6BAA6B;KAC/D,sBAAsB,OAAO,IAAI,iBAAiB;CACpD,SAAS,QAAQ,MAAM,QAAQ,UAAU;EACvC,IAAI,MAAM;AACV,OAAK,MAAM,aAAa,MAAM,KAAK;AACnC,OAAK,MAAM,OAAO,QAAQ,MAAM,KAAK,OAAO;AAC5C,MAAI,SAAS,QAAQ;AACnB,cAAW,EAAE;AACb,QAAK,IAAI,YAAY,OACnB,WAAU,aAAa,SAAS,YAAY,OAAO;QAChD,YAAW;AAClB,WAAS,SAAS;AAClB,SAAO;GACL,UAAU;GACJ;GACD;GACL,KAAK,KAAK,MAAM,SAAS,SAAS;GAClC,OAAO;GACR;;AAEH,SAAQ,WAAW;AACnB,SAAQ,MAAM;AACd,SAAQ,OAAO;;;;;;;;;;;;;;;ACtBf,kBAAiB,QAAQ,IAAI,aAC1B,WAAY;EACX,SAAS,yBAAyB,MAAM;AACtC,OAAI,QAAQ,KAAM,QAAO;AACzB,OAAI,eAA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AyB;MAC7D,uBACE,MAAM;MACR,iBAAiB,OAAO,UAAU;MAClC,cAAc,MAAM;MACpB,aAAa,QAAQ,aACjB,QAAQ,aACR,WAAY;AACV,UAAO;;AAEf,UAAQ,EACN,0BAA0B,SAAU,mBAAmB;AACrD,UAAO,mBAAmB;KAE7B;EACD,IAAI;EACJ,IAAI,yBAAyB,EAAE;EAC/B,IAAI,yBAAyB,MAAM,yBAAyB,KAC1D,OACA,aACD,EAAE;EACH,IAAI,wBAAwB,WAAW,YAAY,aAAa,CAAC;EACjE,IAAI,wBAAwB,EAAE;AAC9B,UAAQ,WAAW;AACnB,UAAQ,MAAM,SAAU,MAAM,QAAQ,UAAU;GAC9C,IAAI,mBACF,MAAM,qBAAqB;AAC7B,UAAO,WACL,MACA,QACA,UACA,CAAC,GACD,mBACI,MAAM,wBAAwB,GAC9B,wBACJ,mBAAmB,WAAW,YAAY,KAAK,CAAC,GAAG,sBACpD;;AAEH,UAAQ,OAAO,SAAU,MAAM,QAAQ,UAAU;GAC/C,IAAI,mBACF,MAAM,qBAAqB;AAC7B,UAAO,WACL,MACA,QACA,UACA,CAAC,GACD,mBACI,MAAM,wBAAwB,GAC9B,wBACJ,mBAAmB,WAAW,YAAY,KAAK,CAAC,GAAG,sBACpD;;KAED;;;;;;AC7VN,KAAI,QAAQ,IAAI,aAAa,aAC3B,QAAO;KAEP,QAAO;;;;;;ACFT,MAAa,8BAAiB;AAC9B,MAAa,yBAAY;AACzB,MAAa,4BAAe;AAC5B,MAAa,0BAAa"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jsx-runtime-CpElaHq6.js","names":[],"sources":["../../../node_modules/.pnpm/react@19.2.3/node_modules/react/cjs/react-jsx-runtime.production.js","../../../node_modules/.pnpm/react@19.2.3/node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/.pnpm/react@19.2.3/node_modules/react/jsx-runtime.js","../src/jsx-runtime.ts"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\");\nfunction jsxProd(type, config, maybeKey) {\n var key = null;\n void 0 !== maybeKey && (key = \"\" + maybeKey);\n void 0 !== config.key && (key = \"\" + config.key);\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n config = maybeKey.ref;\n return {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n ref: void 0 !== config ? config : null,\n props: maybeKey\n };\n}\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsxProd;\nexports.jsxs = jsxProd;\n","/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function getComponentNameFromType(type) {\n if (null == type) return null;\n if (\"function\" === typeof type)\n return type.$$typeof === REACT_CLIENT_REFERENCE\n ? null\n : type.displayName || type.name || null;\n if (\"string\" === typeof type) return type;\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return \"Fragment\";\n case REACT_PROFILER_TYPE:\n return \"Profiler\";\n case REACT_STRICT_MODE_TYPE:\n return \"StrictMode\";\n case REACT_SUSPENSE_TYPE:\n return \"Suspense\";\n case REACT_SUSPENSE_LIST_TYPE:\n return \"SuspenseList\";\n case REACT_ACTIVITY_TYPE:\n return \"Activity\";\n }\n if (\"object\" === typeof type)\n switch (\n (\"number\" === typeof type.tag &&\n console.error(\n \"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"\n ),\n type.$$typeof)\n ) {\n case REACT_PORTAL_TYPE:\n return \"Portal\";\n case REACT_CONTEXT_TYPE:\n return type.displayName || \"Context\";\n case REACT_CONSUMER_TYPE:\n return (type._context.displayName || \"Context\") + \".Consumer\";\n case REACT_FORWARD_REF_TYPE:\n var innerType = type.render;\n type = type.displayName;\n type ||\n ((type = innerType.displayName || innerType.name || \"\"),\n (type = \"\" !== type ? \"ForwardRef(\" + type + \")\" : \"ForwardRef\"));\n return type;\n case REACT_MEMO_TYPE:\n return (\n (innerType = type.displayName || null),\n null !== innerType\n ? innerType\n : getComponentNameFromType(type.type) || \"Memo\"\n );\n case REACT_LAZY_TYPE:\n innerType = type._payload;\n type = type._init;\n try {\n return getComponentNameFromType(type(innerType));\n } catch (x) {}\n }\n return null;\n }\n function testStringCoercion(value) {\n return \"\" + value;\n }\n function checkKeyStringCoercion(value) {\n try {\n testStringCoercion(value);\n var JSCompiler_inline_result = !1;\n } catch (e) {\n JSCompiler_inline_result = !0;\n }\n if (JSCompiler_inline_result) {\n JSCompiler_inline_result = console;\n var JSCompiler_temp_const = JSCompiler_inline_result.error;\n var JSCompiler_inline_result$jscomp$0 =\n (\"function\" === typeof Symbol &&\n Symbol.toStringTag &&\n value[Symbol.toStringTag]) ||\n value.constructor.name ||\n \"Object\";\n JSCompiler_temp_const.call(\n JSCompiler_inline_result,\n \"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",\n JSCompiler_inline_result$jscomp$0\n );\n return testStringCoercion(value);\n }\n }\n function getTaskName(type) {\n if (type === REACT_FRAGMENT_TYPE) return \"<>\";\n if (\n \"object\" === typeof type &&\n null !== type &&\n type.$$typeof === REACT_LAZY_TYPE\n )\n return \"<...>\";\n try {\n var name = getComponentNameFromType(type);\n return name ? \"<\" + name + \">\" : \"<...>\";\n } catch (x) {\n return \"<...>\";\n }\n }\n function getOwner() {\n var dispatcher = ReactSharedInternals.A;\n return null === dispatcher ? null : dispatcher.getOwner();\n }\n function UnknownOwner() {\n return Error(\"react-stack-top-frame\");\n }\n function hasValidKey(config) {\n if (hasOwnProperty.call(config, \"key\")) {\n var getter = Object.getOwnPropertyDescriptor(config, \"key\").get;\n if (getter && getter.isReactWarning) return !1;\n }\n return void 0 !== config.key;\n }\n function defineKeyPropWarningGetter(props, displayName) {\n function warnAboutAccessingKey() {\n specialPropKeyWarningShown ||\n ((specialPropKeyWarningShown = !0),\n console.error(\n \"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)\",\n displayName\n ));\n }\n warnAboutAccessingKey.isReactWarning = !0;\n Object.defineProperty(props, \"key\", {\n get: warnAboutAccessingKey,\n configurable: !0\n });\n }\n function elementRefGetterWithDeprecationWarning() {\n var componentName = getComponentNameFromType(this.type);\n didWarnAboutElementRef[componentName] ||\n ((didWarnAboutElementRef[componentName] = !0),\n console.error(\n \"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.\"\n ));\n componentName = this.props.ref;\n return void 0 !== componentName ? componentName : null;\n }\n function ReactElement(type, key, props, owner, debugStack, debugTask) {\n var refProp = props.ref;\n type = {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n props: props,\n _owner: owner\n };\n null !== (void 0 !== refProp ? refProp : null)\n ? Object.defineProperty(type, \"ref\", {\n enumerable: !1,\n get: elementRefGetterWithDeprecationWarning\n })\n : Object.defineProperty(type, \"ref\", { enumerable: !1, value: null });\n type._store = {};\n Object.defineProperty(type._store, \"validated\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: 0\n });\n Object.defineProperty(type, \"_debugInfo\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: null\n });\n Object.defineProperty(type, \"_debugStack\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugStack\n });\n Object.defineProperty(type, \"_debugTask\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugTask\n });\n Object.freeze && (Object.freeze(type.props), Object.freeze(type));\n return type;\n }\n function jsxDEVImpl(\n type,\n config,\n maybeKey,\n isStaticChildren,\n debugStack,\n debugTask\n ) {\n var children = config.children;\n if (void 0 !== children)\n if (isStaticChildren)\n if (isArrayImpl(children)) {\n for (\n isStaticChildren = 0;\n isStaticChildren < children.length;\n isStaticChildren++\n )\n validateChildKeys(children[isStaticChildren]);\n Object.freeze && Object.freeze(children);\n } else\n console.error(\n \"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.\"\n );\n else validateChildKeys(children);\n if (hasOwnProperty.call(config, \"key\")) {\n children = getComponentNameFromType(type);\n var keys = Object.keys(config).filter(function (k) {\n return \"key\" !== k;\n });\n isStaticChildren =\n 0 < keys.length\n ? \"{key: someKey, \" + keys.join(\": ..., \") + \": ...}\"\n : \"{key: someKey}\";\n didWarnAboutKeySpread[children + isStaticChildren] ||\n ((keys =\n 0 < keys.length ? \"{\" + keys.join(\": ..., \") + \": ...}\" : \"{}\"),\n console.error(\n 'A props object containing a \"key\" prop is being spread into JSX:\\n let props = %s;\\n <%s {...props} />\\nReact keys must be passed directly to JSX without using spread:\\n let props = %s;\\n <%s key={someKey} {...props} />',\n isStaticChildren,\n children,\n keys,\n children\n ),\n (didWarnAboutKeySpread[children + isStaticChildren] = !0));\n }\n children = null;\n void 0 !== maybeKey &&\n (checkKeyStringCoercion(maybeKey), (children = \"\" + maybeKey));\n hasValidKey(config) &&\n (checkKeyStringCoercion(config.key), (children = \"\" + config.key));\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n children &&\n defineKeyPropWarningGetter(\n maybeKey,\n \"function\" === typeof type\n ? type.displayName || type.name || \"Unknown\"\n : type\n );\n return ReactElement(\n type,\n children,\n maybeKey,\n getOwner(),\n debugStack,\n debugTask\n );\n }\n function validateChildKeys(node) {\n isValidElement(node)\n ? node._store && (node._store.validated = 1)\n : \"object\" === typeof node &&\n null !== node &&\n node.$$typeof === REACT_LAZY_TYPE &&\n (\"fulfilled\" === node._payload.status\n ? isValidElement(node._payload.value) &&\n node._payload.value._store &&\n (node._payload.value._store.validated = 1)\n : node._store && (node._store.validated = 1));\n }\n function isValidElement(object) {\n return (\n \"object\" === typeof object &&\n null !== object &&\n object.$$typeof === REACT_ELEMENT_TYPE\n );\n }\n var React = require(\"react\"),\n REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\"),\n REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n REACT_ACTIVITY_TYPE = Symbol.for(\"react.activity\"),\n REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\"),\n ReactSharedInternals =\n React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,\n hasOwnProperty = Object.prototype.hasOwnProperty,\n isArrayImpl = Array.isArray,\n createTask = console.createTask\n ? console.createTask\n : function () {\n return null;\n };\n React = {\n react_stack_bottom_frame: function (callStackForError) {\n return callStackForError();\n }\n };\n var specialPropKeyWarningShown;\n var didWarnAboutElementRef = {};\n var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(\n React,\n UnknownOwner\n )();\n var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));\n var didWarnAboutKeySpread = {};\n exports.Fragment = REACT_FRAGMENT_TYPE;\n exports.jsx = function (type, config, maybeKey) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !1,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n exports.jsxs = function (type, config, maybeKey) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !0,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n })();\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","import * as React from 'react/jsx-runtime'\nimport type { FabricReactElement, FabricReactNode } from './types.ts'\n\nexport const Fragment = React.Fragment\nexport const jsx = React.jsx\nexport const jsxDEV = React.jsx\nexport const jsxs = React.jsxs\n\nexport type * from './jsx-namespace.d.ts'\n\nexport type JSXElement = FabricReactElement\nexport type ReactNode = FabricReactNode\n"],"x_google_ignoreList":[0,1,2],"mappings":";;;;;;;;;;;;;;KAWI,qBAAqB,OAAO,IAAI,6BAA6B;KAC/D,sBAAsB,OAAO,IAAI,iBAAiB;CACpD,SAAS,QAAQ,MAAM,QAAQ,UAAU;EACvC,IAAI,MAAM;AACV,OAAK,MAAM,aAAa,MAAM,KAAK;AACnC,OAAK,MAAM,OAAO,QAAQ,MAAM,KAAK,OAAO;AAC5C,MAAI,SAAS,QAAQ;AACnB,cAAW,EAAE;AACb,QAAK,IAAI,YAAY,OACnB,WAAU,aAAa,SAAS,YAAY,OAAO;QAChD,YAAW;AAClB,WAAS,SAAS;AAClB,SAAO;GACL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ED
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { i as __reExport, n as __exportAll, r as __name } from "./chunk-CrnDzoTS.js";
|
|
2
|
-
import { KubbFile } from "@kubb/fabric-core/types";
|
|
3
|
-
import React, { JSX, ReactNode } from "react";
|
|
4
|
-
|
|
5
|
-
//#region src/utils/getFunctionParams.d.ts
|
|
6
|
-
type Param = {
|
|
7
|
-
/**
|
|
8
|
-
* `object` will return the pathParams as an object.
|
|
9
|
-
*
|
|
10
|
-
* `inline` will return the pathParams as comma separated params.
|
|
11
|
-
* @default `'inline'`
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
mode?: 'object' | 'inline' | 'inlineSpread';
|
|
15
|
-
type?: 'string' | 'number' | (string & {});
|
|
16
|
-
optional?: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* @example test = "default"
|
|
19
|
-
*/
|
|
20
|
-
default?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Used for no TypeScript(with mode object)
|
|
23
|
-
* @example test: "default"
|
|
24
|
-
*/
|
|
25
|
-
value?: string;
|
|
26
|
-
children?: Params;
|
|
27
|
-
};
|
|
28
|
-
type Params = Record<string, Param | undefined>;
|
|
29
|
-
type Options = {
|
|
30
|
-
type: 'constructor' | 'call' | 'object' | 'objectValue';
|
|
31
|
-
transformName?: (name: string) => string;
|
|
32
|
-
transformType?: (type: string) => string;
|
|
33
|
-
};
|
|
34
|
-
declare function createFunctionParams(params: Params): Params;
|
|
35
|
-
declare class FunctionParams {
|
|
36
|
-
#private;
|
|
37
|
-
static factory(params: Params): FunctionParams;
|
|
38
|
-
constructor(params: Params);
|
|
39
|
-
get params(): Params;
|
|
40
|
-
get flatParams(): Params;
|
|
41
|
-
toCall({
|
|
42
|
-
transformName,
|
|
43
|
-
transformType
|
|
44
|
-
}?: Pick<Options, 'transformName' | 'transformType'>): string;
|
|
45
|
-
toObject(): string;
|
|
46
|
-
toObjectValue(): string;
|
|
47
|
-
toConstructor(): string;
|
|
48
|
-
}
|
|
49
|
-
declare namespace types_d_exports {
|
|
50
|
-
export { DOMElement, DOMNode, DOMNodeAttribute, ElementNames, FabricExportProps, FabricFileProps, FabricImportProps, FabricReactElement, FabricReactNode, FabricSourceProps, FabricTextProps, Key, LineBreakProps, Param, Params, TextNode };
|
|
51
|
-
}
|
|
52
|
-
import * as import__kubb_fabric_core_types from "@kubb/fabric-core/types";
|
|
53
|
-
type Key = string | number | bigint;
|
|
54
|
-
type ElementNames = 'br' | 'div' | 'indent' | 'dedent' | 'kubb-text' | 'kubb-file' | 'kubb-source' | 'kubb-import' | 'kubb-export' | 'kubb-root' | 'kubb-app';
|
|
55
|
-
type Node = {
|
|
56
|
-
parentNode: DOMElement | undefined;
|
|
57
|
-
internal_static?: boolean;
|
|
58
|
-
};
|
|
59
|
-
type DOMNodeAttribute = boolean | string | number;
|
|
60
|
-
type TextName = '#text';
|
|
61
|
-
type TextNode = {
|
|
62
|
-
nodeName: TextName;
|
|
63
|
-
nodeValue: string;
|
|
64
|
-
} & Node;
|
|
65
|
-
type DOMNode<T = {
|
|
66
|
-
nodeName: NodeNames;
|
|
67
|
-
}> = T extends {
|
|
68
|
-
nodeName: infer U;
|
|
69
|
-
} ? U extends '#text' ? TextNode : DOMElement : never;
|
|
70
|
-
type OutputTransformer = (s: string, index: number) => string;
|
|
71
|
-
type DOMElement = {
|
|
72
|
-
nodeName: ElementNames;
|
|
73
|
-
attributes: Map<string, DOMNodeAttribute>;
|
|
74
|
-
childNodes: DOMNode[];
|
|
75
|
-
internal_transform?: OutputTransformer;
|
|
76
|
-
isStaticDirty?: boolean;
|
|
77
|
-
staticNode?: DOMElement;
|
|
78
|
-
onComputeLayout?: () => void;
|
|
79
|
-
onRender?: () => void;
|
|
80
|
-
onImmediateRender?: () => void;
|
|
81
|
-
} & Node;
|
|
82
|
-
type NodeNames = ElementNames | TextName;
|
|
83
|
-
type FabricReactNode = ReactNode;
|
|
84
|
-
type FabricReactElement = JSX.Element;
|
|
85
|
-
type FabricTextProps = {
|
|
86
|
-
children?: FabricReactNode;
|
|
87
|
-
};
|
|
88
|
-
type FabricFileProps = {
|
|
89
|
-
id?: string;
|
|
90
|
-
children?: FabricReactNode;
|
|
91
|
-
baseName: string;
|
|
92
|
-
path: string;
|
|
93
|
-
override?: boolean;
|
|
94
|
-
meta?: KubbFile.File['meta'];
|
|
95
|
-
};
|
|
96
|
-
type FabricSourceProps = KubbFile.Source & {
|
|
97
|
-
children?: FabricReactNode;
|
|
98
|
-
};
|
|
99
|
-
type FabricImportProps = KubbFile.Import;
|
|
100
|
-
type FabricExportProps = KubbFile.Export;
|
|
101
|
-
type LineBreakProps = React.DetailedHTMLProps<React.HTMLAttributes<HTMLBRElement>, HTMLBRElement>;
|
|
102
|
-
//#endregion
|
|
103
|
-
export { Param as _, FabricExportProps as a, FabricReactElement as c, FabricTextProps as d, Key as f, FunctionParams as g, types_d_exports as h, ElementNames as i, FabricReactNode as l, TextNode as m, DOMNode as n, FabricFileProps as o, LineBreakProps as p, DOMNodeAttribute as r, FabricImportProps as s, DOMElement as t, FabricSourceProps as u, Params as v, createFunctionParams as y };
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import React, { JSX, ReactNode } from "react";
|
|
2
|
-
import { KubbFile } from "@kubb/fabric-core/types";
|
|
3
|
-
|
|
4
|
-
//#region rolldown:runtime
|
|
5
|
-
//#endregion
|
|
6
|
-
//#region src/utils/getFunctionParams.d.ts
|
|
7
|
-
type Param = {
|
|
8
|
-
/**
|
|
9
|
-
* `object` will return the pathParams as an object.
|
|
10
|
-
*
|
|
11
|
-
* `inline` will return the pathParams as comma separated params.
|
|
12
|
-
* @default `'inline'`
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
mode?: 'object' | 'inline' | 'inlineSpread';
|
|
16
|
-
type?: 'string' | 'number' | (string & {});
|
|
17
|
-
optional?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* @example test = "default"
|
|
20
|
-
*/
|
|
21
|
-
default?: string;
|
|
22
|
-
/**
|
|
23
|
-
* Used for no TypeScript(with mode object)
|
|
24
|
-
* @example test: "default"
|
|
25
|
-
*/
|
|
26
|
-
value?: string;
|
|
27
|
-
children?: Params;
|
|
28
|
-
};
|
|
29
|
-
type Params = Record<string, Param | undefined>;
|
|
30
|
-
type Options = {
|
|
31
|
-
type: 'constructor' | 'call' | 'object' | 'objectValue';
|
|
32
|
-
transformName?: (name: string) => string;
|
|
33
|
-
transformType?: (type: string) => string;
|
|
34
|
-
};
|
|
35
|
-
declare function createFunctionParams(params: Params): Params;
|
|
36
|
-
declare class FunctionParams {
|
|
37
|
-
#private;
|
|
38
|
-
static factory(params: Params): FunctionParams;
|
|
39
|
-
constructor(params: Params);
|
|
40
|
-
get params(): Params;
|
|
41
|
-
get flatParams(): Params;
|
|
42
|
-
toCall({
|
|
43
|
-
transformName,
|
|
44
|
-
transformType
|
|
45
|
-
}?: Pick<Options, 'transformName' | 'transformType'>): string;
|
|
46
|
-
toObject(): string;
|
|
47
|
-
toObjectValue(): string;
|
|
48
|
-
toConstructor(): string;
|
|
49
|
-
}
|
|
50
|
-
declare namespace types_d_exports {
|
|
51
|
-
export { DOMElement, DOMNode, DOMNodeAttribute, ElementNames, FabricExportProps, FabricFileProps, FabricImportProps, FabricReactElement, FabricReactNode, FabricSourceProps, FabricTextProps, Key, LineBreakProps, Param, Params, TextNode };
|
|
52
|
-
}
|
|
53
|
-
import * as import__kubb_fabric_core_types from "@kubb/fabric-core/types";
|
|
54
|
-
type Key = string | number | bigint;
|
|
55
|
-
type ElementNames = 'br' | 'div' | 'indent' | 'dedent' | 'kubb-text' | 'kubb-file' | 'kubb-source' | 'kubb-import' | 'kubb-export' | 'kubb-root' | 'kubb-app';
|
|
56
|
-
type Node = {
|
|
57
|
-
parentNode: DOMElement | undefined;
|
|
58
|
-
internal_static?: boolean;
|
|
59
|
-
};
|
|
60
|
-
type DOMNodeAttribute = boolean | string | number;
|
|
61
|
-
type TextName = '#text';
|
|
62
|
-
type TextNode = {
|
|
63
|
-
nodeName: TextName;
|
|
64
|
-
nodeValue: string;
|
|
65
|
-
} & Node;
|
|
66
|
-
type DOMNode<T = {
|
|
67
|
-
nodeName: NodeNames;
|
|
68
|
-
}> = T extends {
|
|
69
|
-
nodeName: infer U;
|
|
70
|
-
} ? U extends '#text' ? TextNode : DOMElement : never;
|
|
71
|
-
type OutputTransformer = (s: string, index: number) => string;
|
|
72
|
-
type DOMElement = {
|
|
73
|
-
nodeName: ElementNames;
|
|
74
|
-
attributes: Map<string, DOMNodeAttribute>;
|
|
75
|
-
childNodes: DOMNode[];
|
|
76
|
-
internal_transform?: OutputTransformer;
|
|
77
|
-
isStaticDirty?: boolean;
|
|
78
|
-
staticNode?: DOMElement;
|
|
79
|
-
onComputeLayout?: () => void;
|
|
80
|
-
onRender?: () => void;
|
|
81
|
-
onImmediateRender?: () => void;
|
|
82
|
-
} & Node;
|
|
83
|
-
type NodeNames = ElementNames | TextName;
|
|
84
|
-
type FabricReactNode = ReactNode;
|
|
85
|
-
type FabricReactElement = JSX.Element;
|
|
86
|
-
type FabricTextProps = {
|
|
87
|
-
children?: FabricReactNode;
|
|
88
|
-
};
|
|
89
|
-
type FabricFileProps = {
|
|
90
|
-
id?: string;
|
|
91
|
-
children?: FabricReactNode;
|
|
92
|
-
baseName: string;
|
|
93
|
-
path: string;
|
|
94
|
-
override?: boolean;
|
|
95
|
-
meta?: KubbFile.File['meta'];
|
|
96
|
-
};
|
|
97
|
-
type FabricSourceProps = KubbFile.Source & {
|
|
98
|
-
children?: FabricReactNode;
|
|
99
|
-
};
|
|
100
|
-
type FabricImportProps = KubbFile.Import;
|
|
101
|
-
type FabricExportProps = KubbFile.Export;
|
|
102
|
-
type LineBreakProps = React.DetailedHTMLProps<React.HTMLAttributes<HTMLBRElement>, HTMLBRElement>;
|
|
103
|
-
//#endregion
|
|
104
|
-
export { Param as _, FabricExportProps as a, __name as b, FabricReactElement as c, FabricTextProps as d, Key as f, FunctionParams as g, types_d_exports as h, ElementNames as i, FabricReactNode as l, TextNode as m, DOMNode as n, FabricFileProps as o, LineBreakProps as p, DOMNodeAttribute as r, FabricImportProps as s, DOMElement as t, FabricSourceProps as u, Params as v, createFunctionParams as y };
|