@fictjs/runtime 0.16.0 → 0.17.0
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/advanced.cjs +9 -9
- package/dist/advanced.js +4 -4
- package/dist/{chunk-CBRGOLTR.cjs → chunk-5FVWBK4M.cjs} +40 -40
- package/dist/{chunk-CBRGOLTR.cjs.map → chunk-5FVWBK4M.cjs.map} +1 -1
- package/dist/{chunk-BADX4WTQ.cjs → chunk-6DNYVH5U.cjs} +17 -17
- package/dist/{chunk-BADX4WTQ.cjs.map → chunk-6DNYVH5U.cjs.map} +1 -1
- package/dist/{chunk-MAHWGB55.js → chunk-CFAWL76V.js} +5 -5
- package/dist/{chunk-MAHWGB55.js.map → chunk-CFAWL76V.js.map} +1 -1
- package/dist/{chunk-WJMZ7X46.cjs → chunk-ECKYFH5Q.cjs} +5 -5
- package/dist/{chunk-WJMZ7X46.cjs.map → chunk-ECKYFH5Q.cjs.map} +1 -1
- package/dist/{chunk-ZJZ6LMDN.js → chunk-F5SDRX4J.js} +2 -2
- package/dist/{chunk-ZJZ6LMDN.js.map → chunk-F5SDRX4J.js.map} +1 -1
- package/dist/{chunk-4P4DYWLQ.js → chunk-IIWHTV23.js} +3 -3
- package/dist/{chunk-AR2T7JEX.cjs → chunk-INYTG4NG.cjs} +174 -174
- package/dist/{chunk-AR2T7JEX.cjs.map → chunk-INYTG4NG.cjs.map} +1 -1
- package/dist/{chunk-RK2WSQYL.js → chunk-M42N54LG.js} +3 -3
- package/dist/{chunk-ZWQLXWSV.js → chunk-UQTWIV3S.js} +3 -3
- package/dist/{chunk-ECNK25S4.cjs → chunk-WY4LI5PB.cjs} +8 -8
- package/dist/{chunk-ECNK25S4.cjs.map → chunk-WY4LI5PB.cjs.map} +1 -1
- package/dist/index.cjs +42 -42
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.dev.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/internal-list.cjs +4 -4
- package/dist/internal-list.js +3 -3
- package/dist/internal.cjs +5 -5
- package/dist/internal.d.cts +2 -2
- package/dist/internal.d.ts +2 -2
- package/dist/internal.js +4 -4
- package/dist/jsx-dev-runtime.cjs.map +1 -1
- package/dist/jsx-dev-runtime.d.cts +46 -0
- package/dist/jsx-dev-runtime.d.ts +46 -0
- package/dist/jsx-dev-runtime.js.map +1 -1
- package/dist/jsx-runtime.cjs.map +1 -1
- package/dist/jsx-runtime.d.cts +46 -0
- package/dist/jsx-runtime.d.ts +46 -0
- package/dist/jsx-runtime.js.map +1 -1
- package/dist/loader.cjs +143 -26
- package/dist/loader.cjs.map +1 -1
- package/dist/loader.d.cts +1 -1
- package/dist/loader.d.ts +1 -1
- package/dist/loader.js +122 -5
- package/dist/loader.js.map +1 -1
- package/dist/{props-DabFQwLR.d.ts → props-C04ScJgm.d.ts} +46 -0
- package/dist/{props-tImUZAty.d.cts → props-CdmuXCiu.d.cts} +46 -0
- package/dist/{resume-C5IKAIdh.d.ts → resume-C166aAVg.d.ts} +2 -2
- package/dist/{resume-DPZxmA95.d.cts → resume-C20cRVj9.d.cts} +2 -2
- package/package.json +1 -1
- package/src/jsx.ts +46 -0
- package/src/loader.ts +153 -4
- package/src/resume.ts +5 -5
- /package/dist/{chunk-4P4DYWLQ.js.map → chunk-IIWHTV23.js.map} +0 -0
- /package/dist/{chunk-RK2WSQYL.js.map → chunk-M42N54LG.js.map} +0 -0
- /package/dist/{chunk-ZWQLXWSV.js.map → chunk-UQTWIV3S.js.map} +0 -0
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
removeNodes,
|
|
7
7
|
toNodeArray,
|
|
8
8
|
withHydrationRange
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-F5SDRX4J.js";
|
|
10
10
|
import {
|
|
11
11
|
__fictIsHydrating,
|
|
12
12
|
__fictIsSSR,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
pushRoot,
|
|
22
22
|
setActiveSub,
|
|
23
23
|
signal
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-CFAWL76V.js";
|
|
25
25
|
|
|
26
26
|
// src/reconcile.ts
|
|
27
27
|
function reconcileArrays(parentNode, a, b) {
|
|
@@ -776,4 +776,4 @@ export {
|
|
|
776
776
|
isNodeBetweenMarkers,
|
|
777
777
|
createKeyedList
|
|
778
778
|
};
|
|
779
|
-
//# sourceMappingURL=chunk-
|
|
779
|
+
//# sourceMappingURL=chunk-M42N54LG.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
insertNodesBefore,
|
|
4
4
|
removeNodes,
|
|
5
5
|
toNodeArray
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-F5SDRX4J.js";
|
|
7
7
|
import {
|
|
8
8
|
createRenderEffect,
|
|
9
9
|
createRootContext,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
getCurrentRoot,
|
|
13
13
|
popRoot,
|
|
14
14
|
pushRoot
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-CFAWL76V.js";
|
|
16
16
|
|
|
17
17
|
// src/context.ts
|
|
18
18
|
var contextStorage = /* @__PURE__ */ new WeakMap();
|
|
@@ -109,4 +109,4 @@ export {
|
|
|
109
109
|
useContext,
|
|
110
110
|
hasContext
|
|
111
111
|
};
|
|
112
|
-
//# sourceMappingURL=chunk-
|
|
112
|
+
//# sourceMappingURL=chunk-UQTWIV3S.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkINYTG4NGcjs = require('./chunk-INYTG4NG.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkECKYFH5Qcjs = require('./chunk-ECKYFH5Q.cjs');
|
|
10
10
|
|
|
11
11
|
// src/scope.ts
|
|
12
12
|
function createScope() {
|
|
@@ -19,17 +19,17 @@ function createScope() {
|
|
|
19
19
|
};
|
|
20
20
|
const run = (fn) => {
|
|
21
21
|
stop();
|
|
22
|
-
const { dispose: rootDispose, value } =
|
|
22
|
+
const { dispose: rootDispose, value } = _chunkECKYFH5Qcjs.createRoot.call(void 0, fn, { inherit: true });
|
|
23
23
|
dispose = rootDispose;
|
|
24
24
|
return value;
|
|
25
25
|
};
|
|
26
|
-
|
|
26
|
+
_chunkECKYFH5Qcjs.registerRootCleanup.call(void 0, stop);
|
|
27
27
|
return { run, stop };
|
|
28
28
|
}
|
|
29
29
|
function runInScope(flag, fn) {
|
|
30
30
|
const scope = createScope();
|
|
31
|
-
const evaluate = () =>
|
|
32
|
-
|
|
31
|
+
const evaluate = () => _chunkINYTG4NGcjs.isReactive.call(void 0, flag) ? flag() : !!flag;
|
|
32
|
+
_chunkECKYFH5Qcjs.createEffect.call(void 0, () => {
|
|
33
33
|
const enabled = evaluate();
|
|
34
34
|
if (enabled) {
|
|
35
35
|
scope.run(fn);
|
|
@@ -37,11 +37,11 @@ function runInScope(flag, fn) {
|
|
|
37
37
|
scope.stop();
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
|
-
|
|
40
|
+
_chunkECKYFH5Qcjs.onCleanup.call(void 0, scope.stop);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
exports.createScope = createScope; exports.runInScope = runInScope;
|
|
47
|
-
//# sourceMappingURL=chunk-
|
|
47
|
+
//# sourceMappingURL=chunk-WY4LI5PB.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/fict/fict/packages/runtime/dist/chunk-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/fict/fict/packages/runtime/dist/chunk-WY4LI5PB.cjs","../src/scope.ts"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;ACKO,SAAS,WAAA,CAAA,EAA6B;AAC3C,EAAA,IAAI,QAAA,EAA+B,IAAA;AAEnC,EAAA,MAAM,KAAA,EAAO,CAAA,EAAA,GAAM;AACjB,IAAA,GAAA,CAAI,OAAA,EAAS;AACX,MAAA,OAAA,CAAQ,CAAA;AACR,MAAA,QAAA,EAAU,IAAA;AAAA,IACZ;AAAA,EACF,CAAA;AAEA,EAAA,MAAM,IAAA,EAAM,CAAI,EAAA,EAAA,GAAmB;AACjC,IAAA,IAAA,CAAK,CAAA;AACL,IAAA,MAAM,EAAE,OAAA,EAAS,WAAA,EAAa,MAAM,EAAA,EAAI,0CAAA,EAAW,EAAI,EAAE,OAAA,EAAS,KAAK,CAAC,CAAA;AACxE,IAAA,QAAA,EAAU,WAAA;AACV,IAAA,OAAO,KAAA;AAAA,EACT,CAAA;AAEA,EAAA,mDAAA,IAAwB,CAAA;AACxB,EAAA,OAAO,EAAE,GAAA,EAAK,KAAK,CAAA;AACrB;AAMO,SAAS,UAAA,CAAW,IAAA,EAA8B,EAAA,EAAsB;AAC7E,EAAA,MAAM,MAAA,EAAQ,WAAA,CAAY,CAAA;AAC1B,EAAA,MAAM,SAAA,EAAW,CAAA,EAAA,GAAO,0CAAA,IAAe,EAAA,EAAK,IAAA,CAAuB,EAAA,EAAI,CAAC,CAAC,IAAA;AAEzE,EAAA,4CAAA,CAAa,EAAA,GAAM;AACjB,IAAA,MAAM,QAAA,EAAU,QAAA,CAAS,CAAA;AACzB,IAAA,GAAA,CAAI,OAAA,EAAS;AACX,MAAA,KAAA,CAAM,GAAA,CAAI,EAAE,CAAA;AAAA,IACd,EAAA,KAAO;AACL,MAAA,KAAA,CAAM,IAAA,CAAK,CAAA;AAAA,IACb;AAAA,EACF,CAAC,CAAA;AAED,EAAA,yCAAA,KAAU,CAAM,IAAI,CAAA;AACtB;ADbA;AACA;AACE;AACA;AACF,mEAAC","file":"/home/runner/work/fict/fict/packages/runtime/dist/chunk-WY4LI5PB.cjs","sourcesContent":[null,"import { isReactive, type MaybeReactive } from './binding'\nimport { createEffect } from './effect'\nimport { createRoot, onCleanup, registerRootCleanup } from './lifecycle'\n\nexport { effectScope } from './signal'\n\nexport interface ReactiveScope {\n run<T>(fn: () => T): T\n stop(): void\n}\n\n/**\n * Create an explicit reactive scope that can contain effects/memos and be stopped manually.\n * The scope registers with the current root for cleanup.\n */\nexport function createScope(): ReactiveScope {\n let dispose: (() => void) | null = null\n\n const stop = () => {\n if (dispose) {\n dispose()\n dispose = null\n }\n }\n\n const run = <T>(fn: () => T): T => {\n stop()\n const { dispose: rootDispose, value } = createRoot(fn, { inherit: true })\n dispose = rootDispose\n return value\n }\n\n registerRootCleanup(stop)\n return { run, stop }\n}\n\n/**\n * Run a block of reactive code inside a managed scope that follows a boolean flag.\n * When the flag turns false, the scope is disposed and all contained effects/memos are cleaned up.\n */\nexport function runInScope(flag: MaybeReactive<boolean>, fn: () => void): void {\n const scope = createScope()\n const evaluate = () => (isReactive(flag) ? (flag as () => boolean)() : !!flag)\n\n createEffect(() => {\n const enabled = evaluate()\n if (enabled) {\n scope.run(fn)\n } else {\n scope.stop()\n }\n })\n\n onCleanup(scope.stop)\n}\n"]}
|
package/dist/index.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk6DNYVH5Ucjs = require('./chunk-6DNYVH5U.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -19,7 +19,7 @@ var _chunkBADX4WTQcjs = require('./chunk-BADX4WTQ.cjs');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkINYTG4NGcjs = require('./chunk-INYTG4NG.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
@@ -40,7 +40,7 @@ var _chunkAR2T7JEXcjs = require('./chunk-AR2T7JEX.cjs');
|
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
var
|
|
43
|
+
var _chunkECKYFH5Qcjs = require('./chunk-ECKYFH5Q.cjs');
|
|
44
44
|
|
|
45
45
|
// src/ref.ts
|
|
46
46
|
function createRef() {
|
|
@@ -49,7 +49,7 @@ function createRef() {
|
|
|
49
49
|
|
|
50
50
|
// src/error-boundary.ts
|
|
51
51
|
function ErrorBoundary(props) {
|
|
52
|
-
const hostRoot =
|
|
52
|
+
const hostRoot = _chunkECKYFH5Qcjs.getCurrentRoot.call(void 0, );
|
|
53
53
|
const markerOwnerDocument = _nullishCoalesce(_optionalChain([hostRoot, 'optionalAccess', _ => _.ownerDocument]), () => ( document));
|
|
54
54
|
const fragment = markerOwnerDocument.createDocumentFragment();
|
|
55
55
|
const marker = markerOwnerDocument.createComment("fict:error-boundary");
|
|
@@ -71,25 +71,25 @@ function ErrorBoundary(props) {
|
|
|
71
71
|
cleanup = void 0;
|
|
72
72
|
}
|
|
73
73
|
if (activeNodes.length) {
|
|
74
|
-
|
|
74
|
+
_chunkINYTG4NGcjs.removeNodes.call(void 0, activeNodes);
|
|
75
75
|
activeNodes = [];
|
|
76
76
|
}
|
|
77
77
|
if (value == null || value === false) {
|
|
78
78
|
return;
|
|
79
79
|
}
|
|
80
|
-
const root =
|
|
81
|
-
const prev =
|
|
80
|
+
const root = _chunkECKYFH5Qcjs.createRootContext.call(void 0, hostRoot);
|
|
81
|
+
const prev = _chunkECKYFH5Qcjs.pushRoot.call(void 0, root);
|
|
82
82
|
let nodes = [];
|
|
83
83
|
try {
|
|
84
|
-
const output =
|
|
85
|
-
nodes =
|
|
84
|
+
const output = _chunkINYTG4NGcjs.createElement.call(void 0, value);
|
|
85
|
+
nodes = _chunkINYTG4NGcjs.toNodeArray.call(void 0, output, markerOwnerDocument);
|
|
86
86
|
const parentNode = marker.parentNode;
|
|
87
87
|
if (parentNode) {
|
|
88
|
-
|
|
88
|
+
_chunkINYTG4NGcjs.insertNodesBefore.call(void 0, parentNode, nodes, marker);
|
|
89
89
|
}
|
|
90
90
|
} catch (err) {
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
_chunkECKYFH5Qcjs.popRoot.call(void 0, prev);
|
|
92
|
+
_chunkECKYFH5Qcjs.destroyRoot.call(void 0, root);
|
|
93
93
|
if (renderingFallback) {
|
|
94
94
|
throw err;
|
|
95
95
|
}
|
|
@@ -104,11 +104,11 @@ function ErrorBoundary(props) {
|
|
|
104
104
|
}
|
|
105
105
|
return;
|
|
106
106
|
}
|
|
107
|
-
|
|
108
|
-
|
|
107
|
+
_chunkECKYFH5Qcjs.popRoot.call(void 0, prev);
|
|
108
|
+
_chunkECKYFH5Qcjs.flushOnMount.call(void 0, root);
|
|
109
109
|
cleanup = () => {
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
_chunkECKYFH5Qcjs.destroyRoot.call(void 0, root);
|
|
111
|
+
_chunkINYTG4NGcjs.removeNodes.call(void 0, nodes);
|
|
112
112
|
};
|
|
113
113
|
activeNodes = nodes;
|
|
114
114
|
};
|
|
@@ -117,7 +117,7 @@ function ErrorBoundary(props) {
|
|
|
117
117
|
renderValue(toView(null));
|
|
118
118
|
};
|
|
119
119
|
renderValue(_nullishCoalesce(props.children, () => ( null)));
|
|
120
|
-
|
|
120
|
+
_chunkECKYFH5Qcjs.registerErrorHandler.call(void 0, (err) => {
|
|
121
121
|
renderValue(toView(err));
|
|
122
122
|
_optionalChain([props, 'access', _6 => _6.onError, 'optionalCall', _7 => _7(err)]);
|
|
123
123
|
return true;
|
|
@@ -126,7 +126,7 @@ function ErrorBoundary(props) {
|
|
|
126
126
|
const isGetter = typeof props.resetKeys === "function" && props.resetKeys.length === 0;
|
|
127
127
|
const getter = isGetter ? props.resetKeys : void 0;
|
|
128
128
|
let prev = isGetter ? getter() : props.resetKeys;
|
|
129
|
-
|
|
129
|
+
_chunkECKYFH5Qcjs.createEffect.call(void 0, () => {
|
|
130
130
|
const next = getter ? getter() : props.resetKeys;
|
|
131
131
|
if (prev !== next) {
|
|
132
132
|
prev = next;
|
|
@@ -155,11 +155,11 @@ function createSuspenseToken() {
|
|
|
155
155
|
}
|
|
156
156
|
var isThenable = (value) => typeof value === "object" && value !== null && typeof value.then === "function";
|
|
157
157
|
function Suspense(props) {
|
|
158
|
-
const streamHooks =
|
|
159
|
-
const pending =
|
|
158
|
+
const streamHooks = _chunkECKYFH5Qcjs.__fictGetSSRStreamHooks.call(void 0, );
|
|
159
|
+
const pending = _chunkECKYFH5Qcjs.signal.call(void 0, 0);
|
|
160
160
|
let resolvedOnce = false;
|
|
161
161
|
let epoch = 0;
|
|
162
|
-
const hostRoot =
|
|
162
|
+
const hostRoot = _chunkECKYFH5Qcjs.getCurrentRoot.call(void 0, );
|
|
163
163
|
const markerOwnerDocument = _nullishCoalesce(_optionalChain([hostRoot, 'optionalAccess', _8 => _8.ownerDocument]), () => ( document));
|
|
164
164
|
const toFallback = (err) => typeof props.fallback === "function" ? props.fallback(err) : props.fallback;
|
|
165
165
|
const renderView = (view) => {
|
|
@@ -168,50 +168,50 @@ function Suspense(props) {
|
|
|
168
168
|
cleanup = void 0;
|
|
169
169
|
}
|
|
170
170
|
if (activeNodes.length) {
|
|
171
|
-
|
|
171
|
+
_chunkINYTG4NGcjs.removeNodes.call(void 0, activeNodes);
|
|
172
172
|
activeNodes = [];
|
|
173
173
|
}
|
|
174
174
|
if (view == null || view === false) {
|
|
175
175
|
return;
|
|
176
176
|
}
|
|
177
|
-
const root =
|
|
178
|
-
const prev =
|
|
177
|
+
const root = _chunkECKYFH5Qcjs.createRootContext.call(void 0, hostRoot);
|
|
178
|
+
const prev = _chunkECKYFH5Qcjs.pushRoot.call(void 0, root);
|
|
179
179
|
let nodes = [];
|
|
180
180
|
let boundaryPushed = false;
|
|
181
181
|
try {
|
|
182
182
|
if (streamBoundaryId) {
|
|
183
|
-
|
|
183
|
+
_chunkECKYFH5Qcjs.__fictPushSSRBoundary.call(void 0, streamBoundaryId);
|
|
184
184
|
boundaryPushed = true;
|
|
185
185
|
}
|
|
186
|
-
const output =
|
|
187
|
-
nodes =
|
|
186
|
+
const output = _chunkINYTG4NGcjs.createElement.call(void 0, view);
|
|
187
|
+
nodes = _chunkINYTG4NGcjs.toNodeArray.call(void 0, output, markerOwnerDocument);
|
|
188
188
|
const suspendedAttempt = root.suspended || nodes.length > 0 && nodes.every((node) => node instanceof Comment && node.data === "fict:suspend");
|
|
189
189
|
if (suspendedAttempt) {
|
|
190
|
-
|
|
191
|
-
|
|
190
|
+
_chunkECKYFH5Qcjs.popRoot.call(void 0, prev);
|
|
191
|
+
_chunkECKYFH5Qcjs.destroyRoot.call(void 0, root);
|
|
192
192
|
return;
|
|
193
193
|
}
|
|
194
194
|
const parentNode = endMarker.parentNode;
|
|
195
195
|
if (parentNode) {
|
|
196
|
-
|
|
196
|
+
_chunkINYTG4NGcjs.insertNodesBefore.call(void 0, parentNode, nodes, endMarker);
|
|
197
197
|
}
|
|
198
198
|
} catch (err) {
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
if (!
|
|
199
|
+
_chunkECKYFH5Qcjs.popRoot.call(void 0, prev);
|
|
200
|
+
_chunkECKYFH5Qcjs.destroyRoot.call(void 0, root);
|
|
201
|
+
if (!_chunkECKYFH5Qcjs.handleError.call(void 0, err, { source: "render" }, hostRoot)) {
|
|
202
202
|
throw err;
|
|
203
203
|
}
|
|
204
204
|
return;
|
|
205
205
|
} finally {
|
|
206
206
|
if (boundaryPushed) {
|
|
207
|
-
|
|
207
|
+
_chunkECKYFH5Qcjs.__fictPopSSRBoundary.call(void 0, _nullishCoalesce(streamBoundaryId, () => ( void 0)));
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
|
-
|
|
211
|
-
|
|
210
|
+
_chunkECKYFH5Qcjs.popRoot.call(void 0, prev);
|
|
211
|
+
_chunkECKYFH5Qcjs.flushOnMount.call(void 0, root);
|
|
212
212
|
cleanup = () => {
|
|
213
|
-
|
|
214
|
-
|
|
213
|
+
_chunkECKYFH5Qcjs.destroyRoot.call(void 0, root);
|
|
214
|
+
_chunkINYTG4NGcjs.removeNodes.call(void 0, nodes);
|
|
215
215
|
};
|
|
216
216
|
activeNodes = nodes;
|
|
217
217
|
};
|
|
@@ -237,7 +237,7 @@ function Suspense(props) {
|
|
|
237
237
|
_optionalChain([props, 'access', _10 => _10.onResolve, 'optionalCall', _11 => _11()]);
|
|
238
238
|
}
|
|
239
239
|
};
|
|
240
|
-
|
|
240
|
+
_chunkECKYFH5Qcjs.registerSuspenseHandler.call(void 0, (token) => {
|
|
241
241
|
const tokenEpoch = epoch;
|
|
242
242
|
if (!streamPending && streamBoundaryId && _optionalChain([streamHooks, 'optionalAccess', _12 => _12.boundaryPending])) {
|
|
243
243
|
streamPending = true;
|
|
@@ -275,7 +275,7 @@ function Suspense(props) {
|
|
|
275
275
|
} catch (callbackError) {
|
|
276
276
|
rejectionError = callbackError;
|
|
277
277
|
}
|
|
278
|
-
const handled =
|
|
278
|
+
const handled = _chunkECKYFH5Qcjs.handleError.call(void 0, rejectionError, { source: "render" }, hostRoot);
|
|
279
279
|
if (!handled) {
|
|
280
280
|
if (_optionalChain([streamHooks, 'optionalAccess', _16 => _16.onError])) {
|
|
281
281
|
streamHooks.onError(rejectionError, _nullishCoalesce(streamBoundaryId, () => ( void 0)));
|
|
@@ -298,7 +298,7 @@ function Suspense(props) {
|
|
|
298
298
|
const isGetter = typeof props.resetKeys === "function" && props.resetKeys.length === 0;
|
|
299
299
|
const getter = isGetter ? props.resetKeys : void 0;
|
|
300
300
|
let prev = isGetter ? getter() : props.resetKeys;
|
|
301
|
-
|
|
301
|
+
_chunkECKYFH5Qcjs.createEffect.call(void 0, () => {
|
|
302
302
|
const next = getter ? getter() : props.resetKeys;
|
|
303
303
|
if (prev !== next) {
|
|
304
304
|
prev = next;
|
|
@@ -340,5 +340,5 @@ function Suspense(props) {
|
|
|
340
340
|
|
|
341
341
|
|
|
342
342
|
|
|
343
|
-
exports.ErrorBoundary = ErrorBoundary; exports.Fragment =
|
|
343
|
+
exports.ErrorBoundary = ErrorBoundary; exports.Fragment = _chunkINYTG4NGcjs.Fragment; exports.Suspense = Suspense; exports.batch = _chunkINYTG4NGcjs.batch; exports.createContext = _chunk6DNYVH5Ucjs.createContext; exports.createEffect = _chunkECKYFH5Qcjs.createEffect; exports.createElement = _chunkINYTG4NGcjs.createElement; exports.createMemo = _chunkECKYFH5Qcjs.createMemo; exports.createPortal = _chunkINYTG4NGcjs.createPortal; exports.createRef = createRef; exports.createRoot = _chunkECKYFH5Qcjs.createRoot; exports.createSuspenseToken = createSuspenseToken; exports.hasContext = _chunk6DNYVH5Ucjs.hasContext; exports.keyed = _chunkINYTG4NGcjs.keyed; exports.mergeProps = _chunkINYTG4NGcjs.mergeProps; exports.onCleanup = _chunkECKYFH5Qcjs.onCleanup; exports.onDestroy = _chunkECKYFH5Qcjs.onDestroy; exports.onMount = _chunkECKYFH5Qcjs.onMount; exports.prop = _chunkINYTG4NGcjs.prop; exports.render = _chunkINYTG4NGcjs.render; exports.startTransition = _chunkINYTG4NGcjs.startTransition; exports.untrack = _chunkINYTG4NGcjs.untrack; exports.useContext = _chunk6DNYVH5Ucjs.useContext; exports.useDeferredValue = _chunkINYTG4NGcjs.useDeferredValue; exports.useTransition = _chunkINYTG4NGcjs.useTransition;
|
|
344
344
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { F as Fragment, J as JSX, M as Memo, d as createElement, c as createMemo, k as keyed, m as mergeProps, p as prop, r as render } from './props-
|
|
1
|
+
export { F as Fragment, J as JSX, M as Memo, d as createElement, c as createMemo, k as keyed, m as mergeProps, p as prop, r as render } from './props-CdmuXCiu.cjs';
|
|
2
2
|
import { S as RefObject, B as BaseProps, F as FictNode, T as SuspenseToken } from './binding-BlABuUiG.cjs';
|
|
3
3
|
export { a3 as ClassProp, Z as Cleanup, _ as Component, R as DOMElement, U as Effect, a5 as ErrorInfo, a4 as EventHandler, Y as FictVNode, $ as PropsWithChildren, a0 as Ref, a1 as RefCallback, a2 as StyleProp, j as createEffect, E as createPortal, X as createRoot, W as onCleanup, N as onDestroy, V as onMount } from './binding-BlABuUiG.cjs';
|
|
4
4
|
export { C as Context, F as FictDevtoolsHook, P as ProviderProps, c as createContext, h as hasContext, u as useContext } from './devtools-DWIZRe7L.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { F as Fragment, J as JSX, M as Memo, d as createElement, c as createMemo, k as keyed, m as mergeProps, p as prop, r as render } from './props-
|
|
1
|
+
export { F as Fragment, J as JSX, M as Memo, d as createElement, c as createMemo, k as keyed, m as mergeProps, p as prop, r as render } from './props-C04ScJgm.js';
|
|
2
2
|
import { S as RefObject, B as BaseProps, F as FictNode, T as SuspenseToken } from './binding-CQUGLLBI.js';
|
|
3
3
|
export { a3 as ClassProp, Z as Cleanup, _ as Component, R as DOMElement, U as Effect, a5 as ErrorInfo, a4 as EventHandler, Y as FictVNode, $ as PropsWithChildren, a0 as Ref, a1 as RefCallback, a2 as StyleProp, j as createEffect, E as createPortal, X as createRoot, W as onCleanup, N as onDestroy, V as onMount } from './binding-CQUGLLBI.js';
|
|
4
4
|
export { C as Context, F as FictDevtoolsHook, P as ProviderProps, c as createContext, h as hasContext, u as useContext } from './devtools-DNnnDGu1.js';
|