@kubb/react-fabric 0.1.3 → 0.1.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/App-BSJU0vg2.d.ts +177 -0
- package/dist/App-Cdnk4C-T.d.cts +177 -0
- package/dist/{globals-BQ_tJj2b.d.ts → KubbFile-D4gyyfL-.d.ts} +1 -52
- package/dist/{globals-C-9ezLk9.d.cts → KubbFile-FGXV713i.d.cts} +1 -52
- package/dist/Runtime-CmpwGMfo.js +15482 -0
- package/dist/Runtime-CmpwGMfo.js.map +1 -0
- package/dist/Runtime-DuxjdecG.cjs +15520 -0
- package/dist/Runtime-DuxjdecG.cjs.map +1 -0
- package/dist/devtools.cjs +5 -5
- package/dist/devtools.cjs.map +1 -1
- package/dist/devtools.js +5 -5
- package/dist/devtools.js.map +1 -1
- package/dist/globals-BRG2DOJd.d.cts +52 -0
- package/dist/globals-D_1Lfe9-.d.ts +52 -0
- package/dist/globals.d.cts +3 -2
- package/dist/globals.d.ts +3 -2
- package/dist/index.cjs +152 -15637
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +49 -201
- package/dist/index.d.ts +49 -201
- package/dist/index.js +7 -15495
- package/dist/index.js.map +1 -1
- package/dist/{jsx-runtime-B3MMb3PL.cjs → jsx-runtime-CxtdoFyp.cjs} +8 -8
- package/dist/jsx-runtime-CxtdoFyp.cjs.map +1 -0
- package/dist/{jsx-runtime-BPQkRAg2.js → jsx-runtime-dzWW5eHB.js} +8 -8
- package/dist/jsx-runtime-dzWW5eHB.js.map +1 -0
- package/dist/jsx-runtime.cjs +2 -2
- package/dist/jsx-runtime.d.cts +3 -2
- package/dist/jsx-runtime.d.ts +3 -2
- package/dist/jsx-runtime.js +2 -2
- package/dist/parsers.cjs +9 -0
- package/dist/parsers.d.cts +18 -0
- package/dist/parsers.d.ts +18 -0
- package/dist/parsers.js +3 -0
- package/dist/plugins.cjs +40 -0
- package/dist/plugins.cjs.map +1 -0
- package/dist/plugins.d.cts +74 -0
- package/dist/plugins.d.ts +74 -0
- package/dist/plugins.js +34 -0
- package/dist/plugins.js.map +1 -0
- package/dist/{react-BBkwFtZV.js → react-DA-4hb8R.js} +7 -7
- package/dist/react-DA-4hb8R.js.map +1 -0
- package/dist/{react-Bq0UOw6S.cjs → react-m108td-u.cjs} +7 -7
- package/dist/react-m108td-u.cjs.map +1 -0
- package/dist/{types-D9OfSq91.d.ts → types-Brnyan9B.d.ts} +1 -1
- package/dist/{types-CUKR3KZn.d.cts → types-C3p0Ljxf.d.cts} +1 -1
- package/dist/types.d.cts +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +16 -2
- package/src/{kubbRenderer.ts → Renderer.ts} +1 -1
- package/src/{ReactTemplate.tsx → Runtime.tsx} +36 -30
- package/src/index.ts +9 -1
- package/src/parsers/index.ts +1 -0
- package/src/plugins/index.ts +3 -0
- package/src/plugins/reactPlugin.ts +59 -0
- package/src/utils/processFiles.ts +5 -4
- package/dist/jsx-runtime-B3MMb3PL.cjs.map +0 -1
- package/dist/jsx-runtime-BPQkRAg2.js.map +0 -1
- package/dist/react-BBkwFtZV.js.map +0 -1
- package/dist/react-Bq0UOw6S.cjs.map +0 -1
- package/src/createApp.ts +0 -19
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const require_react$1 = require('./react-
|
|
1
|
+
const require_react$1 = require('./react-m108td-u.cjs');
|
|
2
2
|
|
|
3
|
-
//#region ../../node_modules
|
|
4
|
-
var require_react_jsx_runtime_production = /* @__PURE__ */ require_react$1.__commonJS({ "../../node_modules
|
|
3
|
+
//#region ../../node_modules/react/cjs/react-jsx-runtime.production.js
|
|
4
|
+
var require_react_jsx_runtime_production = /* @__PURE__ */ require_react$1.__commonJS({ "../../node_modules/react/cjs/react-jsx-runtime.production.js": ((exports) => {
|
|
5
5
|
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
6
6
|
function jsxProd(type, config, maybeKey) {
|
|
7
7
|
var key = null;
|
|
@@ -26,8 +26,8 @@ var require_react_jsx_runtime_production = /* @__PURE__ */ require_react$1.__com
|
|
|
26
26
|
}) });
|
|
27
27
|
|
|
28
28
|
//#endregion
|
|
29
|
-
//#region ../../node_modules
|
|
30
|
-
var require_react_jsx_runtime_development = /* @__PURE__ */ require_react$1.__commonJS({ "../../node_modules
|
|
29
|
+
//#region ../../node_modules/react/cjs/react-jsx-runtime.development.js
|
|
30
|
+
var require_react_jsx_runtime_development = /* @__PURE__ */ require_react$1.__commonJS({ "../../node_modules/react/cjs/react-jsx-runtime.development.js": ((exports) => {
|
|
31
31
|
"production" !== process.env.NODE_ENV && (function() {
|
|
32
32
|
function getComponentNameFromType(type) {
|
|
33
33
|
if (null == type) return null;
|
|
@@ -217,8 +217,8 @@ var require_react_jsx_runtime_development = /* @__PURE__ */ require_react$1.__co
|
|
|
217
217
|
}) });
|
|
218
218
|
|
|
219
219
|
//#endregion
|
|
220
|
-
//#region ../../node_modules
|
|
221
|
-
var require_jsx_runtime = /* @__PURE__ */ require_react$1.__commonJS({ "../../node_modules
|
|
220
|
+
//#region ../../node_modules/react/jsx-runtime.js
|
|
221
|
+
var require_jsx_runtime = /* @__PURE__ */ require_react$1.__commonJS({ "../../node_modules/react/jsx-runtime.js": ((exports, module) => {
|
|
222
222
|
if (process.env.NODE_ENV === "production") module.exports = require_react_jsx_runtime_production();
|
|
223
223
|
else module.exports = require_react_jsx_runtime_development();
|
|
224
224
|
}) });
|
|
@@ -230,4 +230,4 @@ Object.defineProperty(exports, 'require_jsx_runtime', {
|
|
|
230
230
|
return require_jsx_runtime;
|
|
231
231
|
}
|
|
232
232
|
});
|
|
233
|
-
//# sourceMappingURL=jsx-runtime-
|
|
233
|
+
//# sourceMappingURL=jsx-runtime-CxtdoFyp.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsx-runtime-CxtdoFyp.cjs","names":["REACT_FRAGMENT_TYPE","REACT_ELEMENT_TYPE"],"sources":["../../../node_modules/react/cjs/react-jsx-runtime.production.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/jsx-runtime.js"],"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"],"x_google_ignoreList":[0,1,2],"mappings":";;;;CAWA,IAAI,qBAAqB,OAAO,IAAI,6BAA6B,EAC/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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sBAAsB,OAAO,IAAI,iBAAiB,EAClD,2BAA2B,OAAO,IAAI,sBAAsB,EAC5D,kBAAkB,OAAO,IAAI,aAAa,EAC1C,kBAAkB,OAAO,IAAI,aAAa,EAC1C,sBAAsB,OAAO,IAAI,iBAAiB,EAClD,yBAAyB,OAAO,IAAI,yBAAyB,EAC7D,uBACE,MAAM,iEACR,iBAAiB,OAAO,UAAU,gBAClC,cAAc,MAAM,SACpB,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,WAAWA;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"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as __commonJS, t as require_react } from "./react-
|
|
1
|
+
import { n as __commonJS, t as require_react } from "./react-DA-4hb8R.js";
|
|
2
2
|
|
|
3
|
-
//#region ../../node_modules
|
|
4
|
-
var require_react_jsx_runtime_production = /* @__PURE__ */ __commonJS({ "../../node_modules
|
|
3
|
+
//#region ../../node_modules/react/cjs/react-jsx-runtime.production.js
|
|
4
|
+
var require_react_jsx_runtime_production = /* @__PURE__ */ __commonJS({ "../../node_modules/react/cjs/react-jsx-runtime.production.js": ((exports) => {
|
|
5
5
|
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
6
6
|
function jsxProd(type, config, maybeKey) {
|
|
7
7
|
var key = null;
|
|
@@ -26,8 +26,8 @@ var require_react_jsx_runtime_production = /* @__PURE__ */ __commonJS({ "../../n
|
|
|
26
26
|
}) });
|
|
27
27
|
|
|
28
28
|
//#endregion
|
|
29
|
-
//#region ../../node_modules
|
|
30
|
-
var require_react_jsx_runtime_development = /* @__PURE__ */ __commonJS({ "../../node_modules
|
|
29
|
+
//#region ../../node_modules/react/cjs/react-jsx-runtime.development.js
|
|
30
|
+
var require_react_jsx_runtime_development = /* @__PURE__ */ __commonJS({ "../../node_modules/react/cjs/react-jsx-runtime.development.js": ((exports) => {
|
|
31
31
|
"production" !== process.env.NODE_ENV && (function() {
|
|
32
32
|
function getComponentNameFromType(type) {
|
|
33
33
|
if (null == type) return null;
|
|
@@ -217,12 +217,12 @@ var require_react_jsx_runtime_development = /* @__PURE__ */ __commonJS({ "../../
|
|
|
217
217
|
}) });
|
|
218
218
|
|
|
219
219
|
//#endregion
|
|
220
|
-
//#region ../../node_modules
|
|
221
|
-
var require_jsx_runtime = /* @__PURE__ */ __commonJS({ "../../node_modules
|
|
220
|
+
//#region ../../node_modules/react/jsx-runtime.js
|
|
221
|
+
var require_jsx_runtime = /* @__PURE__ */ __commonJS({ "../../node_modules/react/jsx-runtime.js": ((exports, module) => {
|
|
222
222
|
if (process.env.NODE_ENV === "production") module.exports = require_react_jsx_runtime_production();
|
|
223
223
|
else module.exports = require_react_jsx_runtime_development();
|
|
224
224
|
}) });
|
|
225
225
|
|
|
226
226
|
//#endregion
|
|
227
227
|
export { require_jsx_runtime as t };
|
|
228
|
-
//# sourceMappingURL=jsx-runtime-
|
|
228
|
+
//# sourceMappingURL=jsx-runtime-dzWW5eHB.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsx-runtime-dzWW5eHB.js","names":["REACT_FRAGMENT_TYPE","REACT_ELEMENT_TYPE"],"sources":["../../../node_modules/react/cjs/react-jsx-runtime.production.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/jsx-runtime.js"],"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"],"x_google_ignoreList":[0,1,2],"mappings":";;;;CAWA,IAAI,qBAAqB,OAAO,IAAI,6BAA6B,EAC/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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AAI,aAAa,aAC3B,QAAO;KAEP,QAAO"}
|
package/dist/jsx-runtime.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_react = require('./react-
|
|
1
|
+
const require_react = require('./react-m108td-u.cjs');
|
|
2
2
|
require('./globals-8sJ940pg.cjs');
|
|
3
|
-
const require_jsx_runtime$1 = require('./jsx-runtime-
|
|
3
|
+
const require_jsx_runtime$1 = require('./jsx-runtime-CxtdoFyp.cjs');
|
|
4
4
|
|
|
5
5
|
//#region src/jsx-runtime.ts
|
|
6
6
|
var import_jsx_runtime = /* @__PURE__ */ require_react.__toESM(require_jsx_runtime$1.require_jsx_runtime(), 1);
|
package/dist/jsx-runtime.d.cts
CHANGED
package/dist/jsx-runtime.d.ts
CHANGED
package/dist/jsx-runtime.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as __toESM } from "./react-
|
|
1
|
+
import { r as __toESM } from "./react-DA-4hb8R.js";
|
|
2
2
|
import "./globals-Df5klKjG.js";
|
|
3
|
-
import { t as require_jsx_runtime } from "./jsx-runtime-
|
|
3
|
+
import { t as require_jsx_runtime } from "./jsx-runtime-dzWW5eHB.js";
|
|
4
4
|
|
|
5
5
|
//#region src/jsx-runtime.ts
|
|
6
6
|
var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime(), 1);
|
package/dist/parsers.cjs
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
var __kubb_fabric_core_parsers = require("@kubb/fabric-core/parsers");
|
|
4
|
+
Object.keys(__kubb_fabric_core_parsers).forEach(function (k) {
|
|
5
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function () { return __kubb_fabric_core_parsers[k]; }
|
|
8
|
+
});
|
|
9
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import "./KubbFile-FGXV713i.cjs";
|
|
2
|
+
import { a as UserParser, i as Parser } from "./App-Cdnk4C-T.cjs";
|
|
3
|
+
|
|
4
|
+
//#region ../fabric-core/src/parsers/createParser.d.ts
|
|
5
|
+
declare function createParser<TOptions = any[], TMeta extends object = any>(parser: UserParser<TOptions, TMeta>): Parser<TOptions, TMeta>;
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region ../fabric-core/src/parsers/defaultParser.d.ts
|
|
8
|
+
declare const defaultParser: Parser<[], any>;
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region ../fabric-core/src/parsers/tsxParser.d.ts
|
|
11
|
+
declare const tsxParser: Parser<[], any>;
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region ../fabric-core/src/parsers/typescriptParser.d.ts
|
|
14
|
+
|
|
15
|
+
declare const typescriptParser: Parser<[], any>;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { createParser, defaultParser, tsxParser, typescriptParser };
|
|
18
|
+
//# sourceMappingURL=parsers.d.cts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import "./KubbFile-D4gyyfL-.js";
|
|
2
|
+
import { a as UserParser, i as Parser } from "./App-BSJU0vg2.js";
|
|
3
|
+
|
|
4
|
+
//#region ../fabric-core/src/parsers/createParser.d.ts
|
|
5
|
+
declare function createParser<TOptions = any[], TMeta extends object = any>(parser: UserParser<TOptions, TMeta>): Parser<TOptions, TMeta>;
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region ../fabric-core/src/parsers/defaultParser.d.ts
|
|
8
|
+
declare const defaultParser: Parser<[], any>;
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region ../fabric-core/src/parsers/tsxParser.d.ts
|
|
11
|
+
declare const tsxParser: Parser<[], any>;
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region ../fabric-core/src/parsers/typescriptParser.d.ts
|
|
14
|
+
|
|
15
|
+
declare const typescriptParser: Parser<[], any>;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { createParser, defaultParser, tsxParser, typescriptParser };
|
|
18
|
+
//# sourceMappingURL=parsers.d.ts.map
|
package/dist/parsers.js
ADDED
package/dist/plugins.cjs
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
const require_react$1 = require('./react-m108td-u.cjs');
|
|
2
|
+
const require_Runtime = require('./Runtime-DuxjdecG.cjs');
|
|
3
|
+
require('./jsx-runtime-CxtdoFyp.cjs');
|
|
4
|
+
let __kubb_fabric_core_plugins = require("@kubb/fabric-core/plugins");
|
|
5
|
+
__kubb_fabric_core_plugins = require_react$1.__toESM(__kubb_fabric_core_plugins);
|
|
6
|
+
|
|
7
|
+
//#region src/plugins/reactPlugin.ts
|
|
8
|
+
var import_react = /* @__PURE__ */ require_react$1.__toESM(require_react$1.require_react(), 1);
|
|
9
|
+
const reactPlugin = (0, __kubb_fabric_core_plugins.createPlugin)({
|
|
10
|
+
name: "react",
|
|
11
|
+
install() {},
|
|
12
|
+
inject(app, options = {}) {
|
|
13
|
+
const runtime = new require_Runtime.Runtime({
|
|
14
|
+
fileManager: app.context.fileManager,
|
|
15
|
+
...options
|
|
16
|
+
});
|
|
17
|
+
return {
|
|
18
|
+
async render(App) {
|
|
19
|
+
runtime.render((0, import_react.createElement)(App));
|
|
20
|
+
},
|
|
21
|
+
async renderToString(App) {
|
|
22
|
+
return runtime.renderToString((0, import_react.createElement)(App));
|
|
23
|
+
},
|
|
24
|
+
waitUntilExit() {
|
|
25
|
+
return runtime.waitUntilExit();
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
//#endregion
|
|
32
|
+
exports.reactPlugin = reactPlugin;
|
|
33
|
+
Object.keys(__kubb_fabric_core_plugins).forEach(function (k) {
|
|
34
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
35
|
+
enumerable: true,
|
|
36
|
+
get: function () { return __kubb_fabric_core_plugins[k]; }
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
//# sourceMappingURL=plugins.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugins.cjs","names":["Runtime"],"sources":["../src/plugins/reactPlugin.ts"],"sourcesContent":["import { createPlugin } from '@kubb/fabric-core/plugins'\nimport { Runtime } from '../Runtime.tsx'\nimport { createElement, type ElementType } from 'react'\n\ntype Options = {\n stdout?: NodeJS.WriteStream\n stdin?: NodeJS.ReadStream\n stderr?: NodeJS.WriteStream\n /**\n * Set this to true to always see the result of the render in the console(line per render)\n */\n debug?: boolean\n}\n\ntype ExtendOptions = {\n render(App: ElementType): Promise<void> | void\n renderToString(App: ElementType): Promise<string> | string\n waitUntilExit(): Promise<void>\n}\n\n// biome-ignore lint/suspicious/noTsIgnore: production ready\n// @ts-ignore\ndeclare module '@kubb/fabric-core' {\n interface App {\n render(App: ElementType): Promise<void> | void\n renderToString(App: ElementType): Promise<string> | string\n waitUntilExit(): Promise<void>\n }\n}\n\ndeclare global {\n namespace Kubb {\n interface App {\n render(App: ElementType): Promise<void> | void\n renderToString(App: ElementType): Promise<string> | string\n waitUntilExit(): Promise<void>\n }\n }\n}\n\nexport const reactPlugin = createPlugin<Options, ExtendOptions>({\n name: 'react',\n install() {},\n inject(app, options: Options = {}) {\n const runtime = new Runtime({ fileManager: app.context.fileManager, ...options })\n\n return {\n async render(App) {\n runtime.render(createElement(App))\n },\n async renderToString(App) {\n return runtime.renderToString(createElement(App))\n },\n waitUntilExit() {\n return runtime.waitUntilExit()\n },\n }\n },\n})\n"],"mappings":";;;;;;;;AAwCA,MAAa,2DAAmD;CAC9D,MAAM;CACN,UAAU;CACV,OAAO,KAAK,UAAmB,EAAE,EAAE;EACjC,MAAM,UAAU,IAAIA,wBAAQ;GAAE,aAAa,IAAI,QAAQ;GAAa,GAAG;GAAS,CAAC;AAEjF,SAAO;GACL,MAAM,OAAO,KAAK;AAChB,YAAQ,uCAAqB,IAAI,CAAC;;GAEpC,MAAM,eAAe,KAAK;AACxB,WAAO,QAAQ,+CAA6B,IAAI,CAAC;;GAEnD,gBAAgB;AACd,WAAO,QAAQ,eAAe;;GAEjC;;CAEJ,CAAC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { r as Extname } from "./KubbFile-FGXV713i.cjs";
|
|
2
|
+
import { o as Plugin, s as UserPlugin } from "./App-Cdnk4C-T.cjs";
|
|
3
|
+
import { ElementType } from "react";
|
|
4
|
+
|
|
5
|
+
//#region ../fabric-core/src/plugins/createPlugin.d.ts
|
|
6
|
+
declare function createPlugin<Options$2 = any[], TAppExtension extends Record<string, any> = {}>(plugin: UserPlugin<Options$2, TAppExtension>): Plugin<Options$2, TAppExtension>;
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region ../fabric-core/src/plugins/fsPlugin.d.ts
|
|
9
|
+
type WriteOptions = {
|
|
10
|
+
extension?: Record<Extname, Extname | ''>;
|
|
11
|
+
dryRun?: boolean;
|
|
12
|
+
};
|
|
13
|
+
type Options$1 = {
|
|
14
|
+
/**
|
|
15
|
+
* Optional callback that is invoked whenever a file is written by the plugin.
|
|
16
|
+
* Useful for tests to observe write operations without spying on internal functions.
|
|
17
|
+
*/
|
|
18
|
+
onWrite?: (path: string, data: string) => void | Promise<void>;
|
|
19
|
+
clean?: {
|
|
20
|
+
path: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
type ExtendOptions$1 = {
|
|
24
|
+
write(options?: WriteOptions): Promise<void>;
|
|
25
|
+
};
|
|
26
|
+
declare module '@kubb/fabric-core' {
|
|
27
|
+
interface App {
|
|
28
|
+
write(options?: WriteOptions): Promise<void>;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
declare global {
|
|
32
|
+
namespace Kubb {
|
|
33
|
+
interface App {
|
|
34
|
+
write(options?: WriteOptions): Promise<void>;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
declare const fsPlugin: Plugin<Options$1, ExtendOptions$1>;
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region src/plugins/reactPlugin.d.ts
|
|
41
|
+
type Options = {
|
|
42
|
+
stdout?: NodeJS.WriteStream;
|
|
43
|
+
stdin?: NodeJS.ReadStream;
|
|
44
|
+
stderr?: NodeJS.WriteStream;
|
|
45
|
+
/**
|
|
46
|
+
* Set this to true to always see the result of the render in the console(line per render)
|
|
47
|
+
*/
|
|
48
|
+
debug?: boolean;
|
|
49
|
+
};
|
|
50
|
+
type ExtendOptions = {
|
|
51
|
+
render(App: ElementType): Promise<void> | void;
|
|
52
|
+
renderToString(App: ElementType): Promise<string> | string;
|
|
53
|
+
waitUntilExit(): Promise<void>;
|
|
54
|
+
};
|
|
55
|
+
declare module '@kubb/fabric-core' {
|
|
56
|
+
interface App {
|
|
57
|
+
render(App: ElementType): Promise<void> | void;
|
|
58
|
+
renderToString(App: ElementType): Promise<string> | string;
|
|
59
|
+
waitUntilExit(): Promise<void>;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
declare global {
|
|
63
|
+
namespace Kubb {
|
|
64
|
+
interface App {
|
|
65
|
+
render(App: ElementType): Promise<void> | void;
|
|
66
|
+
renderToString(App: ElementType): Promise<string> | string;
|
|
67
|
+
waitUntilExit(): Promise<void>;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
declare const reactPlugin: Plugin<Options, ExtendOptions>;
|
|
72
|
+
//#endregion
|
|
73
|
+
export { createPlugin, fsPlugin, reactPlugin };
|
|
74
|
+
//# sourceMappingURL=plugins.d.cts.map
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { r as Extname } from "./KubbFile-D4gyyfL-.js";
|
|
2
|
+
import { o as Plugin, s as UserPlugin } from "./App-BSJU0vg2.js";
|
|
3
|
+
import { ElementType } from "react";
|
|
4
|
+
|
|
5
|
+
//#region ../fabric-core/src/plugins/createPlugin.d.ts
|
|
6
|
+
declare function createPlugin<Options$2 = any[], TAppExtension extends Record<string, any> = {}>(plugin: UserPlugin<Options$2, TAppExtension>): Plugin<Options$2, TAppExtension>;
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region ../fabric-core/src/plugins/fsPlugin.d.ts
|
|
9
|
+
type WriteOptions = {
|
|
10
|
+
extension?: Record<Extname, Extname | ''>;
|
|
11
|
+
dryRun?: boolean;
|
|
12
|
+
};
|
|
13
|
+
type Options$1 = {
|
|
14
|
+
/**
|
|
15
|
+
* Optional callback that is invoked whenever a file is written by the plugin.
|
|
16
|
+
* Useful for tests to observe write operations without spying on internal functions.
|
|
17
|
+
*/
|
|
18
|
+
onWrite?: (path: string, data: string) => void | Promise<void>;
|
|
19
|
+
clean?: {
|
|
20
|
+
path: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
type ExtendOptions$1 = {
|
|
24
|
+
write(options?: WriteOptions): Promise<void>;
|
|
25
|
+
};
|
|
26
|
+
declare module '@kubb/fabric-core' {
|
|
27
|
+
interface App {
|
|
28
|
+
write(options?: WriteOptions): Promise<void>;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
declare global {
|
|
32
|
+
namespace Kubb {
|
|
33
|
+
interface App {
|
|
34
|
+
write(options?: WriteOptions): Promise<void>;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
declare const fsPlugin: Plugin<Options$1, ExtendOptions$1>;
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region src/plugins/reactPlugin.d.ts
|
|
41
|
+
type Options = {
|
|
42
|
+
stdout?: NodeJS.WriteStream;
|
|
43
|
+
stdin?: NodeJS.ReadStream;
|
|
44
|
+
stderr?: NodeJS.WriteStream;
|
|
45
|
+
/**
|
|
46
|
+
* Set this to true to always see the result of the render in the console(line per render)
|
|
47
|
+
*/
|
|
48
|
+
debug?: boolean;
|
|
49
|
+
};
|
|
50
|
+
type ExtendOptions = {
|
|
51
|
+
render(App: ElementType): Promise<void> | void;
|
|
52
|
+
renderToString(App: ElementType): Promise<string> | string;
|
|
53
|
+
waitUntilExit(): Promise<void>;
|
|
54
|
+
};
|
|
55
|
+
declare module '@kubb/fabric-core' {
|
|
56
|
+
interface App {
|
|
57
|
+
render(App: ElementType): Promise<void> | void;
|
|
58
|
+
renderToString(App: ElementType): Promise<string> | string;
|
|
59
|
+
waitUntilExit(): Promise<void>;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
declare global {
|
|
63
|
+
namespace Kubb {
|
|
64
|
+
interface App {
|
|
65
|
+
render(App: ElementType): Promise<void> | void;
|
|
66
|
+
renderToString(App: ElementType): Promise<string> | string;
|
|
67
|
+
waitUntilExit(): Promise<void>;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
declare const reactPlugin: Plugin<Options, ExtendOptions>;
|
|
72
|
+
//#endregion
|
|
73
|
+
export { createPlugin, fsPlugin, reactPlugin };
|
|
74
|
+
//# sourceMappingURL=plugins.d.ts.map
|
package/dist/plugins.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { r as __toESM, t as require_react } from "./react-DA-4hb8R.js";
|
|
2
|
+
import { t as Runtime } from "./Runtime-CmpwGMfo.js";
|
|
3
|
+
import "./jsx-runtime-dzWW5eHB.js";
|
|
4
|
+
import { createPlugin } from "@kubb/fabric-core/plugins";
|
|
5
|
+
|
|
6
|
+
export * from "@kubb/fabric-core/plugins"
|
|
7
|
+
|
|
8
|
+
//#region src/plugins/reactPlugin.ts
|
|
9
|
+
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
10
|
+
const reactPlugin = createPlugin({
|
|
11
|
+
name: "react",
|
|
12
|
+
install() {},
|
|
13
|
+
inject(app, options = {}) {
|
|
14
|
+
const runtime = new Runtime({
|
|
15
|
+
fileManager: app.context.fileManager,
|
|
16
|
+
...options
|
|
17
|
+
});
|
|
18
|
+
return {
|
|
19
|
+
async render(App) {
|
|
20
|
+
runtime.render((0, import_react.createElement)(App));
|
|
21
|
+
},
|
|
22
|
+
async renderToString(App) {
|
|
23
|
+
return runtime.renderToString((0, import_react.createElement)(App));
|
|
24
|
+
},
|
|
25
|
+
waitUntilExit() {
|
|
26
|
+
return runtime.waitUntilExit();
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
//#endregion
|
|
33
|
+
export { reactPlugin };
|
|
34
|
+
//# sourceMappingURL=plugins.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugins.js","names":[],"sources":["../src/plugins/reactPlugin.ts"],"sourcesContent":["import { createPlugin } from '@kubb/fabric-core/plugins'\nimport { Runtime } from '../Runtime.tsx'\nimport { createElement, type ElementType } from 'react'\n\ntype Options = {\n stdout?: NodeJS.WriteStream\n stdin?: NodeJS.ReadStream\n stderr?: NodeJS.WriteStream\n /**\n * Set this to true to always see the result of the render in the console(line per render)\n */\n debug?: boolean\n}\n\ntype ExtendOptions = {\n render(App: ElementType): Promise<void> | void\n renderToString(App: ElementType): Promise<string> | string\n waitUntilExit(): Promise<void>\n}\n\n// biome-ignore lint/suspicious/noTsIgnore: production ready\n// @ts-ignore\ndeclare module '@kubb/fabric-core' {\n interface App {\n render(App: ElementType): Promise<void> | void\n renderToString(App: ElementType): Promise<string> | string\n waitUntilExit(): Promise<void>\n }\n}\n\ndeclare global {\n namespace Kubb {\n interface App {\n render(App: ElementType): Promise<void> | void\n renderToString(App: ElementType): Promise<string> | string\n waitUntilExit(): Promise<void>\n }\n }\n}\n\nexport const reactPlugin = createPlugin<Options, ExtendOptions>({\n name: 'react',\n install() {},\n inject(app, options: Options = {}) {\n const runtime = new Runtime({ fileManager: app.context.fileManager, ...options })\n\n return {\n async render(App) {\n runtime.render(createElement(App))\n },\n async renderToString(App) {\n return runtime.renderToString(createElement(App))\n },\n waitUntilExit() {\n return runtime.waitUntilExit()\n },\n }\n },\n})\n"],"mappings":";;;;;;;;;AAwCA,MAAa,cAAc,aAAqC;CAC9D,MAAM;CACN,UAAU;CACV,OAAO,KAAK,UAAmB,EAAE,EAAE;EACjC,MAAM,UAAU,IAAI,QAAQ;GAAE,aAAa,IAAI,QAAQ;GAAa,GAAG;GAAS,CAAC;AAEjF,SAAO;GACL,MAAM,OAAO,KAAK;AAChB,YAAQ,uCAAqB,IAAI,CAAC;;GAEpC,MAAM,eAAe,KAAK;AACxB,WAAO,QAAQ,+CAA6B,IAAI,CAAC;;GAEnD,gBAAgB;AACd,WAAO,QAAQ,eAAe;;GAEjC;;CAEJ,CAAC"}
|
|
@@ -24,8 +24,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
24
|
}) : target, mod));
|
|
25
25
|
|
|
26
26
|
//#endregion
|
|
27
|
-
//#region ../../node_modules
|
|
28
|
-
var require_react_production = /* @__PURE__ */ __commonJS({ "../../node_modules
|
|
27
|
+
//#region ../../node_modules/react/cjs/react.production.js
|
|
28
|
+
var require_react_production = /* @__PURE__ */ __commonJS({ "../../node_modules/react/cjs/react.production.js": ((exports) => {
|
|
29
29
|
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
30
30
|
function getIteratorFn(maybeIterable) {
|
|
31
31
|
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
|
|
@@ -376,8 +376,8 @@ var require_react_production = /* @__PURE__ */ __commonJS({ "../../node_modules/
|
|
|
376
376
|
}) });
|
|
377
377
|
|
|
378
378
|
//#endregion
|
|
379
|
-
//#region ../../node_modules
|
|
380
|
-
var require_react_development = /* @__PURE__ */ __commonJS({ "../../node_modules
|
|
379
|
+
//#region ../../node_modules/react/cjs/react.development.js
|
|
380
|
+
var require_react_development = /* @__PURE__ */ __commonJS({ "../../node_modules/react/cjs/react.development.js": ((exports, module) => {
|
|
381
381
|
"production" !== process.env.NODE_ENV && (function() {
|
|
382
382
|
function defineDeprecationWarning(methodName, info) {
|
|
383
383
|
Object.defineProperty(Component$1.prototype, methodName, { get: function() {
|
|
@@ -1127,12 +1127,12 @@ var require_react_development = /* @__PURE__ */ __commonJS({ "../../node_modules
|
|
|
1127
1127
|
}) });
|
|
1128
1128
|
|
|
1129
1129
|
//#endregion
|
|
1130
|
-
//#region ../../node_modules
|
|
1131
|
-
var require_react = /* @__PURE__ */ __commonJS({ "../../node_modules
|
|
1130
|
+
//#region ../../node_modules/react/index.js
|
|
1131
|
+
var require_react = /* @__PURE__ */ __commonJS({ "../../node_modules/react/index.js": ((exports, module) => {
|
|
1132
1132
|
if (process.env.NODE_ENV === "production") module.exports = require_react_production();
|
|
1133
1133
|
else module.exports = require_react_development();
|
|
1134
1134
|
}) });
|
|
1135
1135
|
|
|
1136
1136
|
//#endregion
|
|
1137
1137
|
export { __commonJS as n, __toESM as r, require_react as t };
|
|
1138
|
-
//# sourceMappingURL=react-
|
|
1138
|
+
//# sourceMappingURL=react-DA-4hb8R.js.map
|