@kubb/react-fabric 0.5.3 → 0.5.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/README.md +21 -24
- package/dist/{Fabric-C7RMr4BK.d.ts → Fabric-D-A981Bs.d.ts} +24 -25
- package/dist/{Fabric-CStIaz99.d.cts → Fabric-xy241PKd.d.cts} +24 -25
- package/dist/{chunk-BHcwYQRN.js → chunk-B1nHLT4p.js} +2 -7
- package/dist/{chunk-DSlc6foC.cjs → chunk-BrXtsOCC.cjs} +3 -5
- package/dist/{devtools-DRXCsX9I.cjs → devtools-CRkwwngz.cjs} +2 -2
- package/dist/{devtools-DRXCsX9I.cjs.map → devtools-CRkwwngz.cjs.map} +1 -1
- package/dist/devtools.cjs +1 -1
- package/dist/globals.d.cts +2 -2
- package/dist/globals.d.ts +2 -2
- package/dist/index.cjs +5 -5
- package/dist/index.d.cts +31 -45
- package/dist/index.d.ts +10 -24
- package/dist/index.js +4 -4
- package/dist/jsx-dev-runtime.cjs +11 -11
- package/dist/jsx-dev-runtime.cjs.map +1 -1
- package/dist/jsx-dev-runtime.d.cts +5 -5
- package/dist/jsx-dev-runtime.d.ts +5 -5
- package/dist/jsx-dev-runtime.js +11 -11
- package/dist/jsx-dev-runtime.js.map +1 -1
- package/dist/{jsx-namespace-BLxjMbms.d.ts → jsx-namespace-CEeBVrTq.d.ts} +2 -2
- package/dist/{jsx-namespace-DLxNuglH.d.cts → jsx-namespace-DawWRiRq.d.cts} +2 -2
- package/dist/{jsx-runtime-cR2hscK9.cjs → jsx-runtime-DqTOrEsT.cjs} +12 -12
- package/dist/{jsx-runtime-cR2hscK9.cjs.map → jsx-runtime-DqTOrEsT.cjs.map} +1 -1
- package/dist/{jsx-runtime-DT7hOgNn.js → jsx-runtime-zJCtyvtC.js} +12 -12
- package/dist/{jsx-runtime-DT7hOgNn.js.map → jsx-runtime-zJCtyvtC.js.map} +1 -1
- package/dist/jsx-runtime.cjs +2 -2
- package/dist/jsx-runtime.d.cts +5 -5
- package/dist/jsx-runtime.d.ts +5 -5
- package/dist/jsx-runtime.js +2 -2
- package/dist/parsers.d.cts +5 -5
- package/dist/parsers.d.ts +5 -5
- package/dist/plugins.cjs +3 -3
- package/dist/plugins.d.cts +5 -5
- package/dist/plugins.d.ts +5 -5
- package/dist/plugins.js +3 -3
- package/dist/{react-Czh2e85z.js → react-B97TdWcV.js} +17 -17
- package/dist/{react-Czh2e85z.js.map → react-B97TdWcV.js.map} +1 -1
- package/dist/{react-DNGR2CL5.cjs → react-D_EYlsv-.cjs} +17 -17
- package/dist/{react-DNGR2CL5.cjs.map → react-D_EYlsv-.cjs.map} +1 -1
- package/dist/{reactPlugin-Ct0yCk0a.cjs → reactPlugin-CpRWhf6R.cjs} +46 -46
- package/dist/{reactPlugin-Ct0yCk0a.cjs.map → reactPlugin-CpRWhf6R.cjs.map} +1 -1
- package/dist/{reactPlugin-DajNNKBt.d.cts → reactPlugin-CrCzxP4y.d.cts} +2 -2
- package/dist/{reactPlugin-TmG3R6xY.d.ts → reactPlugin-Iyi8Falf.d.ts} +2 -2
- package/dist/{reactPlugin-CjsXM659.js → reactPlugin-PG1kqZRe.js} +47 -47
- package/dist/{reactPlugin-CjsXM659.js.map → reactPlugin-PG1kqZRe.js.map} +1 -1
- package/dist/{types-KXnjAqUg.d.ts → types-BjJ5OLXP.d.ts} +2 -2
- package/dist/{types-BZlZnQLJ.d.cts → types-WtAhPPHc.d.cts} +2 -2
- package/dist/types.d.cts +2 -2
- package/dist/types.d.ts +2 -2
- package/package.json +4 -4
- package/src/plugins/reactPlugin.ts +5 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as Plugin } from "./Fabric-
|
|
1
|
+
import { o as Plugin } from "./Fabric-xy241PKd.cjs";
|
|
2
2
|
import { ElementType } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/plugins/reactPlugin.d.ts
|
|
@@ -28,4 +28,4 @@ declare global {
|
|
|
28
28
|
declare const reactPlugin: Plugin<Options, ExtendOptions>;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { reactPlugin as n, Options as t };
|
|
31
|
-
//# sourceMappingURL=reactPlugin-
|
|
31
|
+
//# sourceMappingURL=reactPlugin-CrCzxP4y.d.cts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as Plugin } from "./Fabric-
|
|
1
|
+
import { o as Plugin } from "./Fabric-D-A981Bs.js";
|
|
2
2
|
import { ElementType } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/plugins/reactPlugin.d.ts
|
|
@@ -28,4 +28,4 @@ declare global {
|
|
|
28
28
|
declare const reactPlugin: Plugin<Options, ExtendOptions>;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { reactPlugin as n, Options as t };
|
|
31
|
-
//# sourceMappingURL=reactPlugin-
|
|
31
|
+
//# sourceMappingURL=reactPlugin-Iyi8Falf.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { r as __toESM, t as
|
|
2
|
-
import { t as require_react } from "./react-
|
|
3
|
-
import { n as jsx } from "./jsx-runtime-
|
|
1
|
+
import { r as __toESM, t as __commonJSMin } from "./chunk-B1nHLT4p.js";
|
|
2
|
+
import { t as require_react } from "./react-B97TdWcV.js";
|
|
3
|
+
import { n as jsx } from "./jsx-runtime-zJCtyvtC.js";
|
|
4
4
|
import { onExit } from "signal-exit";
|
|
5
|
-
import {
|
|
5
|
+
import { definePlugin } from "@kubb/fabric-core/plugins";
|
|
6
6
|
import process$1 from "node:process";
|
|
7
7
|
import { createExport, createImport, print } from "@kubb/fabric-core/parsers/typescript";
|
|
8
8
|
|
|
9
|
-
//#region \0@oxc-project+runtime@0.
|
|
9
|
+
//#region \0@oxc-project+runtime@0.99.0/helpers/typeof.js
|
|
10
10
|
function _typeof(o) {
|
|
11
11
|
"@babel/helpers - typeof";
|
|
12
12
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o$1) {
|
|
@@ -17,7 +17,7 @@ function _typeof(o) {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
//#endregion
|
|
20
|
-
//#region \0@oxc-project+runtime@0.
|
|
20
|
+
//#region \0@oxc-project+runtime@0.99.0/helpers/toPrimitive.js
|
|
21
21
|
function toPrimitive(t, r) {
|
|
22
22
|
if ("object" != _typeof(t) || !t) return t;
|
|
23
23
|
var e = t[Symbol.toPrimitive];
|
|
@@ -30,14 +30,14 @@ function toPrimitive(t, r) {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
//#endregion
|
|
33
|
-
//#region \0@oxc-project+runtime@0.
|
|
33
|
+
//#region \0@oxc-project+runtime@0.99.0/helpers/toPropertyKey.js
|
|
34
34
|
function toPropertyKey(t) {
|
|
35
35
|
var i = toPrimitive(t, "string");
|
|
36
36
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
//#endregion
|
|
40
|
-
//#region \0@oxc-project+runtime@0.
|
|
40
|
+
//#region \0@oxc-project+runtime@0.99.0/helpers/defineProperty.js
|
|
41
41
|
function _defineProperty(e, r, t) {
|
|
42
42
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
43
43
|
value: t,
|
|
@@ -87,7 +87,7 @@ Root.Context = RootContext;
|
|
|
87
87
|
Root.displayName = "KubbRoot";
|
|
88
88
|
|
|
89
89
|
//#endregion
|
|
90
|
-
//#region ../../node_modules/.pnpm/react-reconciler@0.32.0_react@19.2.
|
|
90
|
+
//#region ../../node_modules/.pnpm/react-reconciler@0.32.0_react@19.2.3/node_modules/react-reconciler/cjs/react-reconciler-constants.production.js
|
|
91
91
|
/**
|
|
92
92
|
* @license React
|
|
93
93
|
* react-reconciler-constants.production.js
|
|
@@ -97,14 +97,14 @@ Root.displayName = "KubbRoot";
|
|
|
97
97
|
* This source code is licensed under the MIT license found in the
|
|
98
98
|
* LICENSE file in the root directory of this source tree.
|
|
99
99
|
*/
|
|
100
|
-
var require_react_reconciler_constants_production = /* @__PURE__ */
|
|
100
|
+
var require_react_reconciler_constants_production = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
101
101
|
exports.ConcurrentRoot = 1;
|
|
102
102
|
exports.DefaultEventPriority = 32;
|
|
103
103
|
exports.NoEventPriority = 0;
|
|
104
|
-
})
|
|
104
|
+
}));
|
|
105
105
|
|
|
106
106
|
//#endregion
|
|
107
|
-
//#region ../../node_modules/.pnpm/react-reconciler@0.32.0_react@19.2.
|
|
107
|
+
//#region ../../node_modules/.pnpm/react-reconciler@0.32.0_react@19.2.3/node_modules/react-reconciler/cjs/react-reconciler-constants.development.js
|
|
108
108
|
/**
|
|
109
109
|
* @license React
|
|
110
110
|
* react-reconciler-constants.development.js
|
|
@@ -114,16 +114,16 @@ var require_react_reconciler_constants_production = /* @__PURE__ */ __commonJS({
|
|
|
114
114
|
* This source code is licensed under the MIT license found in the
|
|
115
115
|
* LICENSE file in the root directory of this source tree.
|
|
116
116
|
*/
|
|
117
|
-
var require_react_reconciler_constants_development = /* @__PURE__ */
|
|
117
|
+
var require_react_reconciler_constants_development = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
118
118
|
"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);
|
|
119
|
-
})
|
|
119
|
+
}));
|
|
120
120
|
|
|
121
121
|
//#endregion
|
|
122
|
-
//#region ../../node_modules/.pnpm/react-reconciler@0.32.0_react@19.2.
|
|
123
|
-
var require_constants = /* @__PURE__ */
|
|
122
|
+
//#region ../../node_modules/.pnpm/react-reconciler@0.32.0_react@19.2.3/node_modules/react-reconciler/constants.js
|
|
123
|
+
var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
124
124
|
if (process.env.NODE_ENV === "production") module.exports = require_react_reconciler_constants_production();
|
|
125
125
|
else module.exports = require_react_reconciler_constants_development();
|
|
126
|
-
})
|
|
126
|
+
}));
|
|
127
127
|
|
|
128
128
|
//#endregion
|
|
129
129
|
//#region src/dom.ts
|
|
@@ -195,7 +195,7 @@ const nodeNames = new Set([
|
|
|
195
195
|
* This source code is licensed under the MIT license found in the
|
|
196
196
|
* LICENSE file in the root directory of this source tree.
|
|
197
197
|
*/
|
|
198
|
-
var require_scheduler_production = /* @__PURE__ */
|
|
198
|
+
var require_scheduler_production = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
199
199
|
function push(heap, node) {
|
|
200
200
|
var index = heap.length;
|
|
201
201
|
heap.push(node);
|
|
@@ -424,7 +424,7 @@ var require_scheduler_production = /* @__PURE__ */ __commonJS({ "../../node_modu
|
|
|
424
424
|
}
|
|
425
425
|
};
|
|
426
426
|
};
|
|
427
|
-
})
|
|
427
|
+
}));
|
|
428
428
|
|
|
429
429
|
//#endregion
|
|
430
430
|
//#region ../../node_modules/.pnpm/scheduler@0.26.0/node_modules/scheduler/cjs/scheduler.development.js
|
|
@@ -437,7 +437,7 @@ var require_scheduler_production = /* @__PURE__ */ __commonJS({ "../../node_modu
|
|
|
437
437
|
* This source code is licensed under the MIT license found in the
|
|
438
438
|
* LICENSE file in the root directory of this source tree.
|
|
439
439
|
*/
|
|
440
|
-
var require_scheduler_development = /* @__PURE__ */
|
|
440
|
+
var require_scheduler_development = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
441
441
|
"production" !== process.env.NODE_ENV && (function() {
|
|
442
442
|
function performWorkUntilDeadline$1() {
|
|
443
443
|
needsPaint$1 = !1;
|
|
@@ -668,17 +668,17 @@ var require_scheduler_development = /* @__PURE__ */ __commonJS({ "../../node_mod
|
|
|
668
668
|
};
|
|
669
669
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
670
670
|
})();
|
|
671
|
-
})
|
|
671
|
+
}));
|
|
672
672
|
|
|
673
673
|
//#endregion
|
|
674
674
|
//#region ../../node_modules/.pnpm/scheduler@0.26.0/node_modules/scheduler/index.js
|
|
675
|
-
var require_scheduler = /* @__PURE__ */
|
|
675
|
+
var require_scheduler = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
676
676
|
if (process.env.NODE_ENV === "production") module.exports = require_scheduler_production();
|
|
677
677
|
else module.exports = require_scheduler_development();
|
|
678
|
-
})
|
|
678
|
+
}));
|
|
679
679
|
|
|
680
680
|
//#endregion
|
|
681
|
-
//#region ../../node_modules/.pnpm/react-reconciler@0.32.0_react@19.2.
|
|
681
|
+
//#region ../../node_modules/.pnpm/react-reconciler@0.32.0_react@19.2.3/node_modules/react-reconciler/cjs/react-reconciler.production.js
|
|
682
682
|
/**
|
|
683
683
|
* @license React
|
|
684
684
|
* react-reconciler.production.js
|
|
@@ -688,7 +688,7 @@ var require_scheduler = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/s
|
|
|
688
688
|
* This source code is licensed under the MIT license found in the
|
|
689
689
|
* LICENSE file in the root directory of this source tree.
|
|
690
690
|
*/
|
|
691
|
-
var require_react_reconciler_production = /* @__PURE__ */
|
|
691
|
+
var require_react_reconciler_production = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
692
692
|
module.exports = function($$$config) {
|
|
693
693
|
function createFiber(tag, pendingProps, key, mode) {
|
|
694
694
|
return new FiberNode(tag, pendingProps, key, mode);
|
|
@@ -2046,10 +2046,10 @@ var require_react_reconciler_production = /* @__PURE__ */ __commonJS({ "../../no
|
|
|
2046
2046
|
index: 0
|
|
2047
2047
|
})));
|
|
2048
2048
|
}
|
|
2049
|
-
memoCache
|
|
2049
|
+
null == memoCache && (memoCache = {
|
|
2050
2050
|
data: [],
|
|
2051
2051
|
index: 0
|
|
2052
|
-
};
|
|
2052
|
+
});
|
|
2053
2053
|
null === updateQueue && (updateQueue = createFunctionComponentUpdateQueue(), currentlyRenderingFiber.updateQueue = updateQueue);
|
|
2054
2054
|
updateQueue.memoCache = memoCache;
|
|
2055
2055
|
updateQueue = memoCache.data[memoCache.index];
|
|
@@ -6593,10 +6593,10 @@ var require_react_reconciler_production = /* @__PURE__ */ __commonJS({ "../../no
|
|
|
6593
6593
|
};
|
|
6594
6594
|
module.exports.default = module.exports;
|
|
6595
6595
|
Object.defineProperty(module.exports, "__esModule", { value: !0 });
|
|
6596
|
-
})
|
|
6596
|
+
}));
|
|
6597
6597
|
|
|
6598
6598
|
//#endregion
|
|
6599
|
-
//#region ../../node_modules/.pnpm/react-reconciler@0.32.0_react@19.2.
|
|
6599
|
+
//#region ../../node_modules/.pnpm/react-reconciler@0.32.0_react@19.2.3/node_modules/react-reconciler/cjs/react-reconciler.development.js
|
|
6600
6600
|
/**
|
|
6601
6601
|
* @license React
|
|
6602
6602
|
* react-reconciler.development.js
|
|
@@ -6606,7 +6606,7 @@ var require_react_reconciler_production = /* @__PURE__ */ __commonJS({ "../../no
|
|
|
6606
6606
|
* This source code is licensed under the MIT license found in the
|
|
6607
6607
|
* LICENSE file in the root directory of this source tree.
|
|
6608
6608
|
*/
|
|
6609
|
-
var require_react_reconciler_development = /* @__PURE__ */
|
|
6609
|
+
var require_react_reconciler_development = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6610
6610
|
"production" !== process.env.NODE_ENV && (module.exports = function($$$config) {
|
|
6611
6611
|
function findHook(fiber, id) {
|
|
6612
6612
|
for (fiber = fiber.memoizedState; null !== fiber && 0 < id;) fiber = fiber.next, id--;
|
|
@@ -8685,10 +8685,10 @@ var require_react_reconciler_development = /* @__PURE__ */ __commonJS({ "../../n
|
|
|
8685
8685
|
index: 0
|
|
8686
8686
|
})));
|
|
8687
8687
|
}
|
|
8688
|
-
memoCache
|
|
8688
|
+
null == memoCache && (memoCache = {
|
|
8689
8689
|
data: [],
|
|
8690
8690
|
index: 0
|
|
8691
|
-
};
|
|
8691
|
+
});
|
|
8692
8692
|
null === updateQueue && (updateQueue = createFunctionComponentUpdateQueue(), currentlyRenderingFiber.updateQueue = updateQueue);
|
|
8693
8693
|
updateQueue.memoCache = memoCache;
|
|
8694
8694
|
updateQueue = memoCache.data[memoCache.index];
|
|
@@ -15106,14 +15106,14 @@ var require_react_reconciler_development = /* @__PURE__ */ __commonJS({ "../../n
|
|
|
15106
15106
|
exports$1.updateContainerSync = updateContainerSync;
|
|
15107
15107
|
return exports$1;
|
|
15108
15108
|
}, module.exports.default = module.exports, Object.defineProperty(module.exports, "__esModule", { value: !0 }));
|
|
15109
|
-
})
|
|
15109
|
+
}));
|
|
15110
15110
|
|
|
15111
15111
|
//#endregion
|
|
15112
|
-
//#region ../../node_modules/.pnpm/react-reconciler@0.32.0_react@19.2.
|
|
15113
|
-
var require_react_reconciler = /* @__PURE__ */
|
|
15112
|
+
//#region ../../node_modules/.pnpm/react-reconciler@0.32.0_react@19.2.3/node_modules/react-reconciler/index.js
|
|
15113
|
+
var require_react_reconciler = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
15114
15114
|
if (process.env.NODE_ENV === "production") module.exports = require_react_reconciler_production();
|
|
15115
15115
|
else module.exports = require_react_reconciler_development();
|
|
15116
|
-
})
|
|
15116
|
+
}));
|
|
15117
15117
|
|
|
15118
15118
|
//#endregion
|
|
15119
15119
|
//#region src/Renderer.ts
|
|
@@ -15398,38 +15398,38 @@ async function processFiles(node) {
|
|
|
15398
15398
|
}
|
|
15399
15399
|
|
|
15400
15400
|
//#endregion
|
|
15401
|
-
//#region \0@oxc-project+runtime@0.
|
|
15401
|
+
//#region \0@oxc-project+runtime@0.99.0/helpers/checkPrivateRedeclaration.js
|
|
15402
15402
|
function _checkPrivateRedeclaration(e, t) {
|
|
15403
15403
|
if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
15404
15404
|
}
|
|
15405
15405
|
|
|
15406
15406
|
//#endregion
|
|
15407
|
-
//#region \0@oxc-project+runtime@0.
|
|
15407
|
+
//#region \0@oxc-project+runtime@0.99.0/helpers/classPrivateMethodInitSpec.js
|
|
15408
15408
|
function _classPrivateMethodInitSpec(e, a) {
|
|
15409
15409
|
_checkPrivateRedeclaration(e, a), a.add(e);
|
|
15410
15410
|
}
|
|
15411
15411
|
|
|
15412
15412
|
//#endregion
|
|
15413
|
-
//#region \0@oxc-project+runtime@0.
|
|
15413
|
+
//#region \0@oxc-project+runtime@0.99.0/helpers/classPrivateFieldInitSpec.js
|
|
15414
15414
|
function _classPrivateFieldInitSpec(e, t, a) {
|
|
15415
15415
|
_checkPrivateRedeclaration(e, t), t.set(e, a);
|
|
15416
15416
|
}
|
|
15417
15417
|
|
|
15418
15418
|
//#endregion
|
|
15419
|
-
//#region \0@oxc-project+runtime@0.
|
|
15419
|
+
//#region \0@oxc-project+runtime@0.99.0/helpers/assertClassBrand.js
|
|
15420
15420
|
function _assertClassBrand(e, t, n) {
|
|
15421
15421
|
if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
15422
15422
|
throw new TypeError("Private element is not present on this object");
|
|
15423
15423
|
}
|
|
15424
15424
|
|
|
15425
15425
|
//#endregion
|
|
15426
|
-
//#region \0@oxc-project+runtime@0.
|
|
15426
|
+
//#region \0@oxc-project+runtime@0.99.0/helpers/classPrivateFieldGet2.js
|
|
15427
15427
|
function _classPrivateFieldGet2(s, a) {
|
|
15428
15428
|
return s.get(_assertClassBrand(s, a));
|
|
15429
15429
|
}
|
|
15430
15430
|
|
|
15431
15431
|
//#endregion
|
|
15432
|
-
//#region \0@oxc-project+runtime@0.
|
|
15432
|
+
//#region \0@oxc-project+runtime@0.99.0/helpers/classPrivateFieldSet2.js
|
|
15433
15433
|
function _classPrivateFieldSet2(s, a, r) {
|
|
15434
15434
|
return s.set(_assertClassBrand(s, a), r), r;
|
|
15435
15435
|
}
|
|
@@ -15568,7 +15568,7 @@ async function _getOutput(node) {
|
|
|
15568
15568
|
|
|
15569
15569
|
//#endregion
|
|
15570
15570
|
//#region src/plugins/reactPlugin.ts
|
|
15571
|
-
const reactPlugin =
|
|
15571
|
+
const reactPlugin = definePlugin({
|
|
15572
15572
|
name: "react",
|
|
15573
15573
|
install() {},
|
|
15574
15574
|
inject(ctx, options = {}) {
|
|
@@ -15579,15 +15579,15 @@ const reactPlugin = createPlugin({
|
|
|
15579
15579
|
return {
|
|
15580
15580
|
async render(App) {
|
|
15581
15581
|
await runtime.render((0, import_react.createElement)(App));
|
|
15582
|
-
await ctx.emit("start");
|
|
15582
|
+
await ctx.emit("lifecycle:start");
|
|
15583
15583
|
},
|
|
15584
15584
|
async renderToString(App) {
|
|
15585
|
-
await ctx.emit("start");
|
|
15585
|
+
await ctx.emit("lifecycle:start");
|
|
15586
15586
|
return runtime.renderToString((0, import_react.createElement)(App));
|
|
15587
15587
|
},
|
|
15588
15588
|
async waitUntilExit() {
|
|
15589
15589
|
await runtime.waitUntilExit();
|
|
15590
|
-
await ctx.emit("end");
|
|
15590
|
+
await ctx.emit("lifecycle:end");
|
|
15591
15591
|
}
|
|
15592
15592
|
};
|
|
15593
15593
|
}
|
|
@@ -15595,4 +15595,4 @@ const reactPlugin = createPlugin({
|
|
|
15595
15595
|
|
|
15596
15596
|
//#endregion
|
|
15597
15597
|
export { _classPrivateFieldInitSpec as a, _classPrivateFieldGet2 as i, Runtime as n, Root as o, _classPrivateFieldSet2 as r, RootContext as s, reactPlugin as t };
|
|
15598
|
-
//# sourceMappingURL=reactPlugin-
|
|
15598
|
+
//# sourceMappingURL=reactPlugin-PG1kqZRe.js.map
|