@kubb/react-fabric 0.1.8 → 0.2.1
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/README.md +273 -26
- package/dist/{App-D7ehObix.d.ts → Fabric-nxgJyzWH.d.cts} +27 -27
- package/dist/{App-CbT7rbmH.d.cts → Fabric-tVWTpMR5.d.ts} +27 -27
- package/dist/{KubbFile-D4gyyfL-.d.ts → KubbFile-DFnA3mmn.d.ts} +1 -1
- package/dist/{KubbFile-FGXV713i.d.cts → KubbFile-DHCtBOpy.d.cts} +1 -1
- package/dist/chunk-CVmoYqME.js +27 -0
- package/dist/chunk-DWy1uDak.cjs +39 -0
- package/dist/devtools-DPye8o33.js +11448 -0
- package/dist/devtools-DPye8o33.js.map +1 -0
- package/dist/devtools-DnQsy6Us.cjs +11456 -0
- package/dist/devtools-DnQsy6Us.cjs.map +1 -0
- package/dist/devtools.cjs +2 -10885
- package/dist/devtools.d.cts +11 -1
- package/dist/devtools.d.ts +11 -1
- package/dist/devtools.js +2 -10885
- package/dist/{globals-BRG2DOJd.d.cts → globals-C7dPa-nz.d.cts} +3 -3
- package/dist/{globals-D_1Lfe9-.d.ts → globals-CxZEi_Pn.d.ts} +3 -3
- package/dist/globals.d.cts +3 -3
- package/dist/globals.d.ts +3 -3
- package/dist/index.cjs +34 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -9
- package/dist/index.d.ts +16 -9
- package/dist/index.js +15 -5
- package/dist/index.js.map +1 -1
- package/dist/jsx-dev-runtime.cjs +8 -0
- package/dist/jsx-dev-runtime.js +5 -0
- package/dist/jsx-runtime-9ohe6OS2.cjs +36 -0
- package/dist/jsx-runtime-9ohe6OS2.cjs.map +1 -0
- package/dist/{react-BBkwFtZV.js → jsx-runtime-BOrVcbIT.cjs} +253 -42
- package/dist/jsx-runtime-BOrVcbIT.cjs.map +1 -0
- package/dist/{react-Bq0UOw6S.cjs → jsx-runtime-CFd_ktZn.js} +239 -57
- package/dist/jsx-runtime-CFd_ktZn.js.map +1 -0
- package/dist/jsx-runtime-CvGZkcTo.js +13 -0
- package/dist/jsx-runtime-CvGZkcTo.js.map +1 -0
- package/dist/jsx-runtime.cjs +6 -15
- package/dist/jsx-runtime.d.cts +3 -3
- package/dist/jsx-runtime.d.ts +3 -3
- package/dist/jsx-runtime.js +3 -12
- package/dist/parsers.d.cts +2 -2
- package/dist/parsers.d.ts +2 -2
- package/dist/{Runtime-JI640uK4.cjs → plugins-CEGJdkpj.cjs} +115 -81
- package/dist/plugins-CEGJdkpj.cjs.map +1 -0
- package/dist/{Runtime-DWlDUeLZ.js → plugins-aZCNhIC8.js} +90 -63
- package/dist/plugins-aZCNhIC8.js.map +1 -0
- package/dist/plugins.cjs +4 -35
- package/dist/plugins.d.cts +16 -49
- package/dist/plugins.d.ts +16 -49
- package/dist/plugins.js +3 -33
- package/dist/reactPlugin-B47Guoya.d.ts +38 -0
- package/dist/reactPlugin-CLgWWifj.d.cts +38 -0
- package/dist/{types-C3p0Ljxf.d.cts → types-DoYRYV1C.d.cts} +1 -1
- package/dist/{types-Brnyan9B.d.ts → types-u_NEi07i.d.ts} +1 -1
- package/dist/types.d.cts +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +11 -7
- package/src/Renderer.ts +26 -22
- package/src/Runtime.tsx +8 -7
- package/src/createReactFabric.ts +17 -0
- package/src/devtools.ts +106 -111
- package/src/index.ts +2 -1
- package/src/plugins/reactPlugin.ts +4 -3
- package/dist/Runtime-DWlDUeLZ.js.map +0 -1
- package/dist/Runtime-JI640uK4.cjs.map +0 -1
- package/dist/devtools.cjs.map +0 -1
- package/dist/devtools.js.map +0 -1
- package/dist/jsx-runtime-Dg-pJBHd.js +0 -228
- package/dist/jsx-runtime-Dg-pJBHd.js.map +0 -1
- package/dist/jsx-runtime-d2dmYscH.cjs +0 -233
- package/dist/jsx-runtime-d2dmYscH.cjs.map +0 -1
- package/dist/jsx-runtime.cjs.map +0 -1
- package/dist/jsx-runtime.js.map +0 -1
- package/dist/plugins.cjs.map +0 -1
- package/dist/plugins.js.map +0 -1
- package/dist/react-BBkwFtZV.js.map +0 -1
- package/dist/react-Bq0UOw6S.cjs.map +0 -1
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
const
|
|
2
|
-
const require_jsx_runtime$1 = require('./jsx-runtime-
|
|
1
|
+
const require_chunk = require('./chunk-DWy1uDak.cjs');
|
|
2
|
+
const require_jsx_runtime$1 = require('./jsx-runtime-BOrVcbIT.cjs');
|
|
3
|
+
let __kubb_fabric_core_plugins = require("@kubb/fabric-core/plugins");
|
|
4
|
+
__kubb_fabric_core_plugins = require_chunk.__toESM(__kubb_fabric_core_plugins);
|
|
3
5
|
let node_process = require("node:process");
|
|
4
|
-
node_process =
|
|
6
|
+
node_process = require_chunk.__toESM(node_process);
|
|
5
7
|
let signal_exit = require("signal-exit");
|
|
6
|
-
signal_exit =
|
|
8
|
+
signal_exit = require_chunk.__toESM(signal_exit);
|
|
7
9
|
let __kubb_fabric_core_parsers_typescript = require("@kubb/fabric-core/parsers/typescript");
|
|
8
|
-
__kubb_fabric_core_parsers_typescript =
|
|
10
|
+
__kubb_fabric_core_parsers_typescript = require_chunk.__toESM(__kubb_fabric_core_parsers_typescript);
|
|
9
11
|
|
|
10
12
|
//#region \0@oxc-project+runtime@0.95.0/helpers/typeof.js
|
|
11
13
|
function _typeof(o) {
|
|
@@ -50,8 +52,8 @@ function _defineProperty(e, r, t) {
|
|
|
50
52
|
|
|
51
53
|
//#endregion
|
|
52
54
|
//#region src/components/Root.tsx
|
|
53
|
-
var import_react = /* @__PURE__ */
|
|
54
|
-
var import_jsx_runtime = /* @__PURE__ */
|
|
55
|
+
var import_react = /* @__PURE__ */ require_chunk.__toESM(require_jsx_runtime$1.require_react());
|
|
56
|
+
var import_jsx_runtime = /* @__PURE__ */ require_chunk.__toESM(require_jsx_runtime$1.require_jsx_runtime());
|
|
55
57
|
var ErrorBoundary = class extends import_react.Component {
|
|
56
58
|
constructor(..._args) {
|
|
57
59
|
super(..._args);
|
|
@@ -88,40 +90,9 @@ function Root({ onError, onExit: onExit$1, children }) {
|
|
|
88
90
|
Root.Context = RootContext;
|
|
89
91
|
Root.displayName = "KubbRoot";
|
|
90
92
|
|
|
91
|
-
//#endregion
|
|
92
|
-
//#region \0@oxc-project+runtime@0.95.0/helpers/checkPrivateRedeclaration.js
|
|
93
|
-
function _checkPrivateRedeclaration(e, t) {
|
|
94
|
-
if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
//#endregion
|
|
98
|
-
//#region \0@oxc-project+runtime@0.95.0/helpers/classPrivateFieldInitSpec.js
|
|
99
|
-
function _classPrivateFieldInitSpec(e, t, a) {
|
|
100
|
-
_checkPrivateRedeclaration(e, t), t.set(e, a);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
//#endregion
|
|
104
|
-
//#region \0@oxc-project+runtime@0.95.0/helpers/assertClassBrand.js
|
|
105
|
-
function _assertClassBrand(e, t, n) {
|
|
106
|
-
if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
107
|
-
throw new TypeError("Private element is not present on this object");
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
//#endregion
|
|
111
|
-
//#region \0@oxc-project+runtime@0.95.0/helpers/classPrivateFieldSet2.js
|
|
112
|
-
function _classPrivateFieldSet2(s, a, r) {
|
|
113
|
-
return s.set(_assertClassBrand(s, a), r), r;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
//#endregion
|
|
117
|
-
//#region \0@oxc-project+runtime@0.95.0/helpers/classPrivateFieldGet2.js
|
|
118
|
-
function _classPrivateFieldGet2(s, a) {
|
|
119
|
-
return s.get(_assertClassBrand(s, a));
|
|
120
|
-
}
|
|
121
|
-
|
|
122
93
|
//#endregion
|
|
123
94
|
//#region ../../node_modules/.pnpm/react-reconciler@0.32.0_react@19.2.0/node_modules/react-reconciler/cjs/react-reconciler-constants.production.js
|
|
124
|
-
var require_react_reconciler_constants_production = /* @__PURE__ */
|
|
95
|
+
var require_react_reconciler_constants_production = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/.pnpm/react-reconciler@0.32.0_react@19.2.0/node_modules/react-reconciler/cjs/react-reconciler-constants.production.js": ((exports) => {
|
|
125
96
|
exports.ConcurrentRoot = 1;
|
|
126
97
|
exports.DefaultEventPriority = 32;
|
|
127
98
|
exports.NoEventPriority = 0;
|
|
@@ -129,13 +100,13 @@ var require_react_reconciler_constants_production = /* @__PURE__ */ require_reac
|
|
|
129
100
|
|
|
130
101
|
//#endregion
|
|
131
102
|
//#region ../../node_modules/.pnpm/react-reconciler@0.32.0_react@19.2.0/node_modules/react-reconciler/cjs/react-reconciler-constants.development.js
|
|
132
|
-
var require_react_reconciler_constants_development = /* @__PURE__ */
|
|
103
|
+
var require_react_reconciler_constants_development = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/.pnpm/react-reconciler@0.32.0_react@19.2.0/node_modules/react-reconciler/cjs/react-reconciler-constants.development.js": ((exports) => {
|
|
133
104
|
"production" !== process.env.NODE_ENV && (exports.ConcurrentRoot = 1, exports.ContinuousEventPriority = 8, exports.DefaultEventPriority = 32, exports.DiscreteEventPriority = 2, exports.IdleEventPriority = 268435456, exports.LegacyRoot = 0, exports.NoEventPriority = 0);
|
|
134
105
|
}) });
|
|
135
106
|
|
|
136
107
|
//#endregion
|
|
137
108
|
//#region ../../node_modules/.pnpm/react-reconciler@0.32.0_react@19.2.0/node_modules/react-reconciler/constants.js
|
|
138
|
-
var require_constants = /* @__PURE__ */
|
|
109
|
+
var require_constants = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/.pnpm/react-reconciler@0.32.0_react@19.2.0/node_modules/react-reconciler/constants.js": ((exports, module) => {
|
|
139
110
|
if (process.env.NODE_ENV === "production") module.exports = require_react_reconciler_constants_production();
|
|
140
111
|
else module.exports = require_react_reconciler_constants_development();
|
|
141
112
|
}) });
|
|
@@ -198,7 +169,7 @@ const nodeNames = [
|
|
|
198
169
|
|
|
199
170
|
//#endregion
|
|
200
171
|
//#region ../../node_modules/.pnpm/scheduler@0.26.0/node_modules/scheduler/cjs/scheduler.production.js
|
|
201
|
-
var require_scheduler_production = /* @__PURE__ */
|
|
172
|
+
var require_scheduler_production = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/.pnpm/scheduler@0.26.0/node_modules/scheduler/cjs/scheduler.production.js": ((exports) => {
|
|
202
173
|
function push(heap, node) {
|
|
203
174
|
var index = heap.length;
|
|
204
175
|
heap.push(node);
|
|
@@ -431,7 +402,7 @@ var require_scheduler_production = /* @__PURE__ */ require_react$1.__commonJS({
|
|
|
431
402
|
|
|
432
403
|
//#endregion
|
|
433
404
|
//#region ../../node_modules/.pnpm/scheduler@0.26.0/node_modules/scheduler/cjs/scheduler.development.js
|
|
434
|
-
var require_scheduler_development = /* @__PURE__ */
|
|
405
|
+
var require_scheduler_development = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/.pnpm/scheduler@0.26.0/node_modules/scheduler/cjs/scheduler.development.js": ((exports) => {
|
|
435
406
|
"production" !== process.env.NODE_ENV && (function() {
|
|
436
407
|
function performWorkUntilDeadline$1() {
|
|
437
408
|
needsPaint$1 = !1;
|
|
@@ -666,14 +637,14 @@ var require_scheduler_development = /* @__PURE__ */ require_react$1.__commonJS({
|
|
|
666
637
|
|
|
667
638
|
//#endregion
|
|
668
639
|
//#region ../../node_modules/.pnpm/scheduler@0.26.0/node_modules/scheduler/index.js
|
|
669
|
-
var require_scheduler = /* @__PURE__ */
|
|
640
|
+
var require_scheduler = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/.pnpm/scheduler@0.26.0/node_modules/scheduler/index.js": ((exports, module) => {
|
|
670
641
|
if (process.env.NODE_ENV === "production") module.exports = require_scheduler_production();
|
|
671
642
|
else module.exports = require_scheduler_development();
|
|
672
643
|
}) });
|
|
673
644
|
|
|
674
645
|
//#endregion
|
|
675
646
|
//#region ../../node_modules/.pnpm/react-reconciler@0.32.0_react@19.2.0/node_modules/react-reconciler/cjs/react-reconciler.production.js
|
|
676
|
-
var require_react_reconciler_production = /* @__PURE__ */
|
|
647
|
+
var require_react_reconciler_production = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/.pnpm/react-reconciler@0.32.0_react@19.2.0/node_modules/react-reconciler/cjs/react-reconciler.production.js": ((exports, module) => {
|
|
677
648
|
module.exports = function($$$config) {
|
|
678
649
|
function createFiber(tag, pendingProps, key, mode) {
|
|
679
650
|
return new FiberNode(tag, pendingProps, key, mode);
|
|
@@ -5944,7 +5915,7 @@ var require_react_reconciler_production = /* @__PURE__ */ require_react$1.__comm
|
|
|
5944
5915
|
(fiber = fiber.alternate) && markRetryLaneImpl(fiber, retryLane);
|
|
5945
5916
|
}
|
|
5946
5917
|
var exports$1 = {};
|
|
5947
|
-
var React =
|
|
5918
|
+
var React = require_jsx_runtime$1.require_react(), Scheduler = require_scheduler(), assign = Object.assign, REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), 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_PROVIDER_TYPE = Symbol.for("react.provider"), 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_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
5948
5919
|
var REACT_ACTIVITY_TYPE = Symbol.for("react.activity");
|
|
5949
5920
|
var REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel");
|
|
5950
5921
|
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), isArrayImpl = Array.isArray, ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, rendererVersion = $$$config.rendererVersion, rendererPackageName = $$$config.rendererPackageName, extraDevToolsConfig = $$$config.extraDevToolsConfig, getPublicInstance = $$$config.getPublicInstance, getRootHostContext = $$$config.getRootHostContext, getChildHostContext = $$$config.getChildHostContext, prepareForCommit = $$$config.prepareForCommit, resetAfterCommit = $$$config.resetAfterCommit, createInstance = $$$config.createInstance;
|
|
@@ -6582,7 +6553,7 @@ var require_react_reconciler_production = /* @__PURE__ */ require_react$1.__comm
|
|
|
6582
6553
|
|
|
6583
6554
|
//#endregion
|
|
6584
6555
|
//#region ../../node_modules/.pnpm/react-reconciler@0.32.0_react@19.2.0/node_modules/react-reconciler/cjs/react-reconciler.development.js
|
|
6585
|
-
var require_react_reconciler_development = /* @__PURE__ */
|
|
6556
|
+
var require_react_reconciler_development = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/.pnpm/react-reconciler@0.32.0_react@19.2.0/node_modules/react-reconciler/cjs/react-reconciler.development.js": ((exports, module) => {
|
|
6586
6557
|
"production" !== process.env.NODE_ENV && (module.exports = function($$$config) {
|
|
6587
6558
|
function findHook(fiber, id) {
|
|
6588
6559
|
for (fiber = fiber.memoizedState; null !== fiber && 0 < id;) fiber = fiber.next, id--;
|
|
@@ -13407,7 +13378,7 @@ var require_react_reconciler_development = /* @__PURE__ */ require_react$1.__com
|
|
|
13407
13378
|
return map;
|
|
13408
13379
|
}
|
|
13409
13380
|
var exports$1 = {};
|
|
13410
|
-
var React =
|
|
13381
|
+
var React = require_jsx_runtime$1.require_react(), Scheduler = require_scheduler(), assign = Object.assign, REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), 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_PROVIDER_TYPE = Symbol.for("react.provider"), 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_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
13411
13382
|
var REACT_ACTIVITY_TYPE = Symbol.for("react.activity");
|
|
13412
13383
|
var REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel");
|
|
13413
13384
|
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), isArrayImpl = Array.isArray, ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, rendererVersion = $$$config.rendererVersion, rendererPackageName = $$$config.rendererPackageName, extraDevToolsConfig = $$$config.extraDevToolsConfig, getPublicInstance = $$$config.getPublicInstance, getRootHostContext = $$$config.getRootHostContext, getChildHostContext = $$$config.getChildHostContext, prepareForCommit = $$$config.prepareForCommit, resetAfterCommit = $$$config.resetAfterCommit, createInstance = $$$config.createInstance;
|
|
@@ -15086,15 +15057,15 @@ var require_react_reconciler_development = /* @__PURE__ */ require_react$1.__com
|
|
|
15086
15057
|
|
|
15087
15058
|
//#endregion
|
|
15088
15059
|
//#region ../../node_modules/.pnpm/react-reconciler@0.32.0_react@19.2.0/node_modules/react-reconciler/index.js
|
|
15089
|
-
var require_react_reconciler = /* @__PURE__ */
|
|
15060
|
+
var require_react_reconciler = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/.pnpm/react-reconciler@0.32.0_react@19.2.0/node_modules/react-reconciler/index.js": ((exports, module) => {
|
|
15090
15061
|
if (process.env.NODE_ENV === "production") module.exports = require_react_reconciler_production();
|
|
15091
15062
|
else module.exports = require_react_reconciler_development();
|
|
15092
15063
|
}) });
|
|
15093
15064
|
|
|
15094
15065
|
//#endregion
|
|
15095
15066
|
//#region src/Renderer.ts
|
|
15096
|
-
var import_react_reconciler = /* @__PURE__ */
|
|
15097
|
-
var import_constants$1 = /* @__PURE__ */
|
|
15067
|
+
var import_react_reconciler = /* @__PURE__ */ require_chunk.__toESM(require_react_reconciler(), 1);
|
|
15068
|
+
var import_constants$1 = /* @__PURE__ */ require_chunk.__toESM(require_constants(), 1);
|
|
15098
15069
|
let currentUpdatePriority = import_constants$1.NoEventPriority;
|
|
15099
15070
|
/**
|
|
15100
15071
|
* @link https://www.npmjs.com/package/react-devtools-inline
|
|
@@ -15171,7 +15142,6 @@ const Renderer = (0, import_react_reconciler.default)({
|
|
|
15171
15142
|
removeChildFromContainer(node, removeNode) {
|
|
15172
15143
|
removeChildNode(node, removeNode);
|
|
15173
15144
|
},
|
|
15174
|
-
resetFormInstance() {},
|
|
15175
15145
|
commitMount() {},
|
|
15176
15146
|
commitUpdate(node, _payload, _type, _oldProps, newProps) {
|
|
15177
15147
|
const { props } = newProps;
|
|
@@ -15187,35 +15157,35 @@ const Renderer = (0, import_react_reconciler.default)({
|
|
|
15187
15157
|
currentUpdatePriority = newPriority;
|
|
15188
15158
|
},
|
|
15189
15159
|
getCurrentUpdatePriority: () => currentUpdatePriority,
|
|
15190
|
-
resolveUpdatePriority
|
|
15160
|
+
resolveUpdatePriority() {
|
|
15161
|
+
if (currentUpdatePriority !== import_constants$1.NoEventPriority) return currentUpdatePriority;
|
|
15162
|
+
return import_constants$1.DefaultEventPriority;
|
|
15163
|
+
},
|
|
15191
15164
|
maySuspendCommit() {
|
|
15192
15165
|
return false;
|
|
15193
15166
|
},
|
|
15194
|
-
|
|
15195
|
-
|
|
15196
|
-
|
|
15197
|
-
},
|
|
15198
|
-
preloadInstance() {
|
|
15199
|
-
return true;
|
|
15200
|
-
},
|
|
15201
|
-
suspendInstance() {},
|
|
15167
|
+
NotPendingTransition: void 0,
|
|
15168
|
+
HostTransitionContext: (0, import_react.createContext)(null),
|
|
15169
|
+
resetFormInstance() {},
|
|
15170
|
+
requestPostPaintCallback() {},
|
|
15202
15171
|
shouldAttemptEagerTransition() {
|
|
15203
15172
|
return false;
|
|
15204
15173
|
},
|
|
15205
|
-
|
|
15206
|
-
|
|
15207
|
-
|
|
15208
|
-
},
|
|
15209
|
-
trackSchedulerEvent: function() {
|
|
15210
|
-
throw new Error("Function not implemented.");
|
|
15174
|
+
trackSchedulerEvent() {},
|
|
15175
|
+
resolveEventType() {
|
|
15176
|
+
return null;
|
|
15211
15177
|
},
|
|
15212
|
-
|
|
15213
|
-
|
|
15178
|
+
resolveEventTimeStamp() {
|
|
15179
|
+
return -1.1;
|
|
15214
15180
|
},
|
|
15215
|
-
|
|
15216
|
-
|
|
15181
|
+
preloadInstance() {
|
|
15182
|
+
return true;
|
|
15217
15183
|
},
|
|
15218
|
-
|
|
15184
|
+
startSuspendingCommit() {},
|
|
15185
|
+
suspendInstance() {},
|
|
15186
|
+
waitForCommitToBeReady() {
|
|
15187
|
+
return null;
|
|
15188
|
+
}
|
|
15219
15189
|
});
|
|
15220
15190
|
|
|
15221
15191
|
//#endregion
|
|
@@ -15345,15 +15315,46 @@ function processFiles(node, fileManager) {
|
|
|
15345
15315
|
}
|
|
15346
15316
|
}
|
|
15347
15317
|
|
|
15318
|
+
//#endregion
|
|
15319
|
+
//#region \0@oxc-project+runtime@0.95.0/helpers/checkPrivateRedeclaration.js
|
|
15320
|
+
function _checkPrivateRedeclaration(e, t) {
|
|
15321
|
+
if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
15322
|
+
}
|
|
15323
|
+
|
|
15348
15324
|
//#endregion
|
|
15349
15325
|
//#region \0@oxc-project+runtime@0.95.0/helpers/classPrivateMethodInitSpec.js
|
|
15350
15326
|
function _classPrivateMethodInitSpec(e, a) {
|
|
15351
15327
|
_checkPrivateRedeclaration(e, a), a.add(e);
|
|
15352
15328
|
}
|
|
15353
15329
|
|
|
15330
|
+
//#endregion
|
|
15331
|
+
//#region \0@oxc-project+runtime@0.95.0/helpers/classPrivateFieldInitSpec.js
|
|
15332
|
+
function _classPrivateFieldInitSpec(e, t, a) {
|
|
15333
|
+
_checkPrivateRedeclaration(e, t), t.set(e, a);
|
|
15334
|
+
}
|
|
15335
|
+
|
|
15336
|
+
//#endregion
|
|
15337
|
+
//#region \0@oxc-project+runtime@0.95.0/helpers/assertClassBrand.js
|
|
15338
|
+
function _assertClassBrand(e, t, n) {
|
|
15339
|
+
if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
15340
|
+
throw new TypeError("Private element is not present on this object");
|
|
15341
|
+
}
|
|
15342
|
+
|
|
15343
|
+
//#endregion
|
|
15344
|
+
//#region \0@oxc-project+runtime@0.95.0/helpers/classPrivateFieldGet2.js
|
|
15345
|
+
function _classPrivateFieldGet2(s, a) {
|
|
15346
|
+
return s.get(_assertClassBrand(s, a));
|
|
15347
|
+
}
|
|
15348
|
+
|
|
15349
|
+
//#endregion
|
|
15350
|
+
//#region \0@oxc-project+runtime@0.95.0/helpers/classPrivateFieldSet2.js
|
|
15351
|
+
function _classPrivateFieldSet2(s, a, r) {
|
|
15352
|
+
return s.set(_assertClassBrand(s, a), r), r;
|
|
15353
|
+
}
|
|
15354
|
+
|
|
15354
15355
|
//#endregion
|
|
15355
15356
|
//#region src/Runtime.tsx
|
|
15356
|
-
var import_constants = /* @__PURE__ */
|
|
15357
|
+
var import_constants = /* @__PURE__ */ require_chunk.__toESM(require_constants());
|
|
15357
15358
|
var _options = /* @__PURE__ */ new WeakMap();
|
|
15358
15359
|
var _isUnmounted = /* @__PURE__ */ new WeakMap();
|
|
15359
15360
|
var _container = /* @__PURE__ */ new WeakMap();
|
|
@@ -15396,11 +15397,11 @@ var Runtime = class {
|
|
|
15396
15397
|
const originalError = console.error;
|
|
15397
15398
|
console.error = (data) => {
|
|
15398
15399
|
const message = typeof data === "string" ? data : data === null || data === void 0 ? void 0 : data.message;
|
|
15399
|
-
if (message.match(/Encountered two children with the same key/gi)) return;
|
|
15400
|
-
if (message.match(/React will try to recreat/gi)) return;
|
|
15401
|
-
if (message.match(/Each child in a list should have a unique/gi)) return;
|
|
15402
|
-
if (message.match(/The above error occurred in the <KubbErrorBoundary/gi)) return;
|
|
15403
|
-
if (message.match(/A React Element from an older version of React was render/gi)) return;
|
|
15400
|
+
if (message === null || message === void 0 ? void 0 : message.match(/Encountered two children with the same key/gi)) return;
|
|
15401
|
+
if (message === null || message === void 0 ? void 0 : message.match(/React will try to recreat/gi)) return;
|
|
15402
|
+
if (message === null || message === void 0 ? void 0 : message.match(/Each child in a list should have a unique/gi)) return;
|
|
15403
|
+
if (message === null || message === void 0 ? void 0 : message.match(/The above error occurred in the <KubbErrorBoundary/gi)) return;
|
|
15404
|
+
if (message === null || message === void 0 ? void 0 : message.match(/A React Element from an older version of React was render/gi)) return;
|
|
15404
15405
|
originalError(data);
|
|
15405
15406
|
};
|
|
15406
15407
|
const logRecoverableError = typeof reportError === "function" ? reportError : console.error;
|
|
@@ -15417,8 +15418,8 @@ var Runtime = class {
|
|
|
15417
15418
|
this.unmount(code);
|
|
15418
15419
|
}, { alwaysLast: false }).bind(this);
|
|
15419
15420
|
Renderer.injectIntoDevTools({
|
|
15420
|
-
bundleType:
|
|
15421
|
-
version: "19.1.
|
|
15421
|
+
bundleType: 1,
|
|
15422
|
+
version: "19.1.0",
|
|
15422
15423
|
rendererPackageName: "kubb"
|
|
15423
15424
|
});
|
|
15424
15425
|
}
|
|
@@ -15480,6 +15481,33 @@ async function _getOutput(node) {
|
|
|
15480
15481
|
return files.length ? [...files].flatMap((file) => [...file.sources].map((item) => item.value)).filter(Boolean).join("\n\n") : text;
|
|
15481
15482
|
}
|
|
15482
15483
|
|
|
15484
|
+
//#endregion
|
|
15485
|
+
//#region src/plugins/reactPlugin.ts
|
|
15486
|
+
const reactPlugin = (0, __kubb_fabric_core_plugins.createPlugin)({
|
|
15487
|
+
name: "react",
|
|
15488
|
+
install() {},
|
|
15489
|
+
inject(app, options = {}) {
|
|
15490
|
+
const runtime = new Runtime({
|
|
15491
|
+
fileManager: app.context.fileManager,
|
|
15492
|
+
...options
|
|
15493
|
+
});
|
|
15494
|
+
return {
|
|
15495
|
+
async render(App) {
|
|
15496
|
+
runtime.render((0, import_react.createElement)(App));
|
|
15497
|
+
await app.context.events.emit("start");
|
|
15498
|
+
},
|
|
15499
|
+
async renderToString(App) {
|
|
15500
|
+
await app.context.events.emit("start");
|
|
15501
|
+
return runtime.renderToString((0, import_react.createElement)(App));
|
|
15502
|
+
},
|
|
15503
|
+
async waitUntilExit() {
|
|
15504
|
+
await runtime.waitUntilExit();
|
|
15505
|
+
await app.context.events.emit("end");
|
|
15506
|
+
}
|
|
15507
|
+
};
|
|
15508
|
+
}
|
|
15509
|
+
});
|
|
15510
|
+
|
|
15483
15511
|
//#endregion
|
|
15484
15512
|
Object.defineProperty(exports, 'Root', {
|
|
15485
15513
|
enumerable: true,
|
|
@@ -15517,4 +15545,10 @@ Object.defineProperty(exports, '_classPrivateFieldSet2', {
|
|
|
15517
15545
|
return _classPrivateFieldSet2;
|
|
15518
15546
|
}
|
|
15519
15547
|
});
|
|
15520
|
-
|
|
15548
|
+
Object.defineProperty(exports, 'reactPlugin', {
|
|
15549
|
+
enumerable: true,
|
|
15550
|
+
get: function () {
|
|
15551
|
+
return reactPlugin;
|
|
15552
|
+
}
|
|
15553
|
+
});
|
|
15554
|
+
//# sourceMappingURL=plugins-CEGJdkpj.cjs.map
|