@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
package/dist/advanced.cjs
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk6DNYVH5Ucjs = require('./chunk-6DNYVH5U.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkWY4LI5PBcjs = require('./chunk-WY4LI5PB.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ var _chunkECNK25S4cjs = require('./chunk-ECNK25S4.cjs');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkINYTG4NGcjs = require('./chunk-INYTG4NG.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
@@ -28,13 +28,13 @@ var _chunkAR2T7JEXcjs = require('./chunk-AR2T7JEX.cjs');
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunkECKYFH5Qcjs = require('./chunk-ECKYFH5Q.cjs');
|
|
32
32
|
|
|
33
33
|
// src/versioned-signal.ts
|
|
34
34
|
function createVersionedSignal(initialValue, options) {
|
|
35
35
|
const equals = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _ => _.equals]), () => ( Object.is));
|
|
36
|
-
const value =
|
|
37
|
-
const version =
|
|
36
|
+
const value = _chunkECKYFH5Qcjs.signal.call(void 0, initialValue);
|
|
37
|
+
const version = _chunkECKYFH5Qcjs.signal.call(void 0, 0);
|
|
38
38
|
const bumpVersion = () => {
|
|
39
39
|
const next = version() + 1;
|
|
40
40
|
version(next);
|
|
@@ -55,8 +55,8 @@ function createVersionedSignal(initialValue, options) {
|
|
|
55
55
|
force: () => {
|
|
56
56
|
bumpVersion();
|
|
57
57
|
},
|
|
58
|
-
peekVersion: () =>
|
|
59
|
-
peekValue: () =>
|
|
58
|
+
peekVersion: () => _chunkECKYFH5Qcjs.untrack.call(void 0, () => version()),
|
|
59
|
+
peekValue: () => _chunkECKYFH5Qcjs.untrack.call(void 0, () => value())
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
62
|
|
|
@@ -83,5 +83,5 @@ function createVersionedSignal(initialValue, options) {
|
|
|
83
83
|
|
|
84
84
|
|
|
85
85
|
|
|
86
|
-
exports.createAttributeBinding =
|
|
86
|
+
exports.createAttributeBinding = _chunkINYTG4NGcjs.createAttributeBinding; exports.createChildBinding = _chunkINYTG4NGcjs.createChildBinding; exports.createClassBinding = _chunkINYTG4NGcjs.createClassBinding; exports.createContext = _chunk6DNYVH5Ucjs.createContext; exports.createRenderEffect = _chunkECKYFH5Qcjs.createRenderEffect; exports.createScope = _chunkWY4LI5PBcjs.createScope; exports.createSelector = _chunkECKYFH5Qcjs.createSelector; exports.createShow = _chunkINYTG4NGcjs.createShow; exports.createSignal = _chunkECKYFH5Qcjs.signal; exports.createStyleBinding = _chunkINYTG4NGcjs.createStyleBinding; exports.createTextBinding = _chunkINYTG4NGcjs.createTextBinding; exports.createVersionedSignal = createVersionedSignal; exports.effectScope = _chunkECKYFH5Qcjs.effectScope; exports.getDevtoolsHook = _chunkECKYFH5Qcjs.getDevtoolsHook; exports.hasContext = _chunk6DNYVH5Ucjs.hasContext; exports.isReactive = _chunkINYTG4NGcjs.isReactive; exports.nonReactive = _chunkINYTG4NGcjs.nonReactive; exports.reactive = _chunkINYTG4NGcjs.reactive; exports.registerErrorHandler = _chunkECKYFH5Qcjs.registerErrorHandler; exports.runInScope = _chunkWY4LI5PBcjs.runInScope; exports.setCycleProtectionOptions = _chunkECKYFH5Qcjs.setCycleProtectionOptions; exports.unwrap = _chunkINYTG4NGcjs.unwrap; exports.useContext = _chunk6DNYVH5Ucjs.useContext;
|
|
87
87
|
//# sourceMappingURL=advanced.cjs.map
|
package/dist/advanced.js
CHANGED
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
createContext,
|
|
3
3
|
hasContext,
|
|
4
4
|
useContext
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-UQTWIV3S.js";
|
|
6
6
|
import {
|
|
7
7
|
createScope,
|
|
8
8
|
runInScope
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-IIWHTV23.js";
|
|
10
10
|
import {
|
|
11
11
|
createAttributeBinding,
|
|
12
12
|
createChildBinding,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
nonReactive,
|
|
19
19
|
reactive,
|
|
20
20
|
unwrap
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-F5SDRX4J.js";
|
|
22
22
|
import {
|
|
23
23
|
createRenderEffect,
|
|
24
24
|
createSelector,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
setCycleProtectionOptions,
|
|
29
29
|
signal,
|
|
30
30
|
untrack
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-CFAWL76V.js";
|
|
32
32
|
|
|
33
33
|
// src/versioned-signal.ts
|
|
34
34
|
function createVersionedSignal(initialValue, options) {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkINYTG4NGcjs = require('./chunk-INYTG4NG.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
@@ -21,7 +21,7 @@ var _chunkAR2T7JEXcjs = require('./chunk-AR2T7JEX.cjs');
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkECKYFH5Qcjs = require('./chunk-ECKYFH5Q.cjs');
|
|
25
25
|
|
|
26
26
|
// src/reconcile.ts
|
|
27
27
|
function reconcileArrays(parentNode, a, b) {
|
|
@@ -151,7 +151,7 @@ var MAX_SAFE_VERSION = 9007199254740991;
|
|
|
151
151
|
function createVersionedSignalAccessor(initialValue) {
|
|
152
152
|
let current = initialValue;
|
|
153
153
|
let version = 0;
|
|
154
|
-
const track =
|
|
154
|
+
const track = _chunkECKYFH5Qcjs.signal.call(void 0, version);
|
|
155
155
|
function accessor(value) {
|
|
156
156
|
if (arguments.length === 0) {
|
|
157
157
|
track();
|
|
@@ -169,7 +169,7 @@ function createKeyedListContainer(startOverride, endOverride, defaultOwnerDocume
|
|
|
169
169
|
const endMarker = _nullishCoalesce(endOverride, () => ( markerOwnerDocument.createComment("fict:list:end")));
|
|
170
170
|
const dispose = () => {
|
|
171
171
|
for (const block of container.blocks.values()) {
|
|
172
|
-
|
|
172
|
+
_chunkECKYFH5Qcjs.destroyRoot.call(void 0, block.root);
|
|
173
173
|
}
|
|
174
174
|
container.blocks.clear();
|
|
175
175
|
container.nextBlocks.clear();
|
|
@@ -209,33 +209,33 @@ function createKeyedListContainer(startOverride, endOverride, defaultOwnerDocume
|
|
|
209
209
|
}
|
|
210
210
|
function createKeyedBlock(key, item, index, render, needsIndex = true, hostRoot) {
|
|
211
211
|
const itemSig = createVersionedSignalAccessor(item);
|
|
212
|
-
const indexSig = needsIndex ?
|
|
212
|
+
const indexSig = needsIndex ? _chunkECKYFH5Qcjs.signal.call(void 0, index) : (function indexSignal(next) {
|
|
213
213
|
if (arguments.length === 0) return index;
|
|
214
214
|
index = next;
|
|
215
215
|
return index;
|
|
216
216
|
});
|
|
217
|
-
const root =
|
|
217
|
+
const root = _chunkECKYFH5Qcjs.createRootContext.call(void 0, hostRoot);
|
|
218
218
|
const nodeOwnerDocument = _nullishCoalesce(_nullishCoalesce(root.ownerDocument, () => ( _optionalChain([hostRoot, 'optionalAccess', _11 => _11.ownerDocument]))), () => ( document));
|
|
219
|
-
const prevRoot =
|
|
219
|
+
const prevRoot = _chunkECKYFH5Qcjs.pushRoot.call(void 0, root);
|
|
220
220
|
let nodes = [];
|
|
221
221
|
let scopeDispose;
|
|
222
|
-
const prevSub =
|
|
222
|
+
const prevSub = _chunkECKYFH5Qcjs.setActiveSub.call(void 0, void 0);
|
|
223
223
|
try {
|
|
224
|
-
scopeDispose =
|
|
224
|
+
scopeDispose = _chunkECKYFH5Qcjs.effectScope.call(void 0, () => {
|
|
225
225
|
const rendered = render(itemSig, indexSig, key);
|
|
226
226
|
if (rendered instanceof Node || Array.isArray(rendered) && rendered.every((n) => n instanceof Node)) {
|
|
227
|
-
nodes =
|
|
227
|
+
nodes = _chunkINYTG4NGcjs.toNodeArray.call(void 0, rendered, nodeOwnerDocument);
|
|
228
228
|
} else {
|
|
229
|
-
const element =
|
|
230
|
-
nodes =
|
|
229
|
+
const element = _chunkINYTG4NGcjs.createElement.call(void 0, rendered);
|
|
230
|
+
nodes = _chunkINYTG4NGcjs.toNodeArray.call(void 0, element, nodeOwnerDocument);
|
|
231
231
|
}
|
|
232
232
|
});
|
|
233
233
|
if (scopeDispose) {
|
|
234
234
|
root.cleanups.push(scopeDispose);
|
|
235
235
|
}
|
|
236
236
|
} finally {
|
|
237
|
-
|
|
238
|
-
|
|
237
|
+
_chunkECKYFH5Qcjs.setActiveSub.call(void 0, prevSub);
|
|
238
|
+
_chunkECKYFH5Qcjs.popRoot.call(void 0, prevRoot);
|
|
239
239
|
}
|
|
240
240
|
return {
|
|
241
241
|
key,
|
|
@@ -347,7 +347,7 @@ function createKeyedList(getItems, keyFn, renderItem, needsIndex, startMarker, e
|
|
|
347
347
|
);
|
|
348
348
|
}
|
|
349
349
|
function createFineGrainedKeyedList(getItems, keyFn, renderItem, needsIndex, startOverride, endOverride) {
|
|
350
|
-
const hostRoot =
|
|
350
|
+
const hostRoot = _chunkECKYFH5Qcjs.getCurrentRoot.call(void 0, );
|
|
351
351
|
const container = createKeyedListContainer(
|
|
352
352
|
startOverride,
|
|
353
353
|
endOverride,
|
|
@@ -365,7 +365,7 @@ function createFineGrainedKeyedList(getItems, keyFn, renderItem, needsIndex, sta
|
|
|
365
365
|
let connectObserver = null;
|
|
366
366
|
let effectStarted = false;
|
|
367
367
|
let startScheduled = false;
|
|
368
|
-
let initialHydrating =
|
|
368
|
+
let initialHydrating = _chunkECKYFH5Qcjs.__fictIsHydrating.call(void 0, );
|
|
369
369
|
const collectBetween = () => {
|
|
370
370
|
const nodes = [];
|
|
371
371
|
let cursor = container.startMarker.nextSibling;
|
|
@@ -393,17 +393,17 @@ function createFineGrainedKeyedList(getItems, keyFn, renderItem, needsIndex, sta
|
|
|
393
393
|
};
|
|
394
394
|
const performDiff = () => {
|
|
395
395
|
if (disposed) return;
|
|
396
|
-
const isSSR =
|
|
396
|
+
const isSSR = _chunkECKYFH5Qcjs.__fictIsSSR.call(void 0, );
|
|
397
397
|
const parent = isSSR ? container.startMarker.parentNode : getConnectedParent();
|
|
398
398
|
if (!parent) return;
|
|
399
|
-
|
|
399
|
+
_chunkINYTG4NGcjs.batch.call(void 0, () => {
|
|
400
400
|
const oldBlocks = container.blocks;
|
|
401
401
|
const newBlocks = container.nextBlocks;
|
|
402
402
|
const prevOrderedBlocks = container.orderedBlocks;
|
|
403
403
|
const nextOrderedBlocks = container.nextOrderedBlocks;
|
|
404
404
|
const orderedIndexByKey = container.orderedIndexByKey;
|
|
405
405
|
const newItems = getItems();
|
|
406
|
-
if (initialHydrating &&
|
|
406
|
+
if (initialHydrating && _chunkINYTG4NGcjs.isHydratingActive.call(void 0, )) {
|
|
407
407
|
initialHydrating = false;
|
|
408
408
|
newBlocks.clear();
|
|
409
409
|
nextOrderedBlocks.length = 0;
|
|
@@ -416,7 +416,7 @@ function createFineGrainedKeyedList(getItems, keyFn, renderItem, needsIndex, sta
|
|
|
416
416
|
return;
|
|
417
417
|
}
|
|
418
418
|
const createdBlocks2 = [];
|
|
419
|
-
|
|
419
|
+
_chunkINYTG4NGcjs.withHydrationRange.call(void 0,
|
|
420
420
|
container.startMarker.nextSibling,
|
|
421
421
|
container.endMarker,
|
|
422
422
|
_nullishCoalesce(parent.ownerDocument, () => ( markerOwnerDocument)),
|
|
@@ -432,8 +432,8 @@ function createFineGrainedKeyedList(getItems, keyFn, renderItem, needsIndex, sta
|
|
|
432
432
|
}
|
|
433
433
|
const existing = newBlocks.get(key);
|
|
434
434
|
if (existing) {
|
|
435
|
-
|
|
436
|
-
|
|
435
|
+
_chunkECKYFH5Qcjs.destroyRoot.call(void 0, existing.root);
|
|
436
|
+
_chunkINYTG4NGcjs.removeNodes.call(void 0, existing.nodes);
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
439
|
const block = createKeyedBlock(key, item, index, renderItem, needsIndex, hostRoot);
|
|
@@ -454,7 +454,7 @@ function createFineGrainedKeyedList(getItems, keyFn, renderItem, needsIndex, sta
|
|
|
454
454
|
container.nextNodes.length = 0;
|
|
455
455
|
for (const block of createdBlocks2) {
|
|
456
456
|
if (newBlocks.get(block.key) === block) {
|
|
457
|
-
|
|
457
|
+
_chunkECKYFH5Qcjs.flushOnMount.call(void 0, block.root);
|
|
458
458
|
}
|
|
459
459
|
}
|
|
460
460
|
return;
|
|
@@ -462,7 +462,7 @@ function createFineGrainedKeyedList(getItems, keyFn, renderItem, needsIndex, sta
|
|
|
462
462
|
if (newItems.length === 0) {
|
|
463
463
|
if (oldBlocks.size > 0) {
|
|
464
464
|
for (const block of oldBlocks.values()) {
|
|
465
|
-
|
|
465
|
+
_chunkECKYFH5Qcjs.destroyRoot.call(void 0, block.root);
|
|
466
466
|
}
|
|
467
467
|
const range = (_nullishCoalesce(parent.ownerDocument, () => ( markerOwnerDocument))).createRange();
|
|
468
468
|
range.setStartAfter(container.startMarker);
|
|
@@ -543,8 +543,8 @@ function createFineGrainedKeyedList(getItems, keyFn, renderItem, needsIndex, sta
|
|
|
543
543
|
`[fict] Duplicate key "${String(key)}" detected in list rendering. Each item should have a unique key. The previous item with this key will be replaced.`
|
|
544
544
|
);
|
|
545
545
|
}
|
|
546
|
-
|
|
547
|
-
|
|
546
|
+
_chunkECKYFH5Qcjs.destroyRoot.call(void 0, existingBlock.root);
|
|
547
|
+
_chunkINYTG4NGcjs.removeNodes.call(void 0, existingBlock.nodes);
|
|
548
548
|
}
|
|
549
549
|
block = createKeyedBlock(key, item, index, renderItem, needsIndex, hostRoot);
|
|
550
550
|
createdBlocks.push(block);
|
|
@@ -557,8 +557,8 @@ function createFineGrainedKeyedList(getItems, keyFn, renderItem, needsIndex, sta
|
|
|
557
557
|
hasDuplicateKey = true;
|
|
558
558
|
const prior = nextOrderedBlocks[position];
|
|
559
559
|
if (prior && prior !== resolvedBlock) {
|
|
560
|
-
|
|
561
|
-
|
|
560
|
+
_chunkECKYFH5Qcjs.destroyRoot.call(void 0, prior.root);
|
|
561
|
+
_chunkINYTG4NGcjs.removeNodes.call(void 0, prior.nodes);
|
|
562
562
|
}
|
|
563
563
|
nextOrderedBlocks[position] = resolvedBlock;
|
|
564
564
|
} else {
|
|
@@ -596,7 +596,7 @@ function createFineGrainedKeyedList(getItems, keyFn, renderItem, needsIndex, sta
|
|
|
596
596
|
}
|
|
597
597
|
}
|
|
598
598
|
if (appendedNodes.length > 0) {
|
|
599
|
-
|
|
599
|
+
_chunkINYTG4NGcjs.insertNodesBefore.call(void 0, parent, appendedNodes, container.endMarker);
|
|
600
600
|
const currentNodes = container.currentNodes;
|
|
601
601
|
currentNodes.pop();
|
|
602
602
|
for (let i = 0; i < appendedNodes.length; i++) {
|
|
@@ -610,15 +610,15 @@ function createFineGrainedKeyedList(getItems, keyFn, renderItem, needsIndex, sta
|
|
|
610
610
|
container.nextOrderedBlocks = prevOrderedBlocks;
|
|
611
611
|
for (const block of createdBlocks) {
|
|
612
612
|
if (newBlocks.get(block.key) === block) {
|
|
613
|
-
|
|
613
|
+
_chunkECKYFH5Qcjs.flushOnMount.call(void 0, block.root);
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
616
|
return;
|
|
617
617
|
}
|
|
618
618
|
if (oldBlocks.size > 0) {
|
|
619
619
|
for (const block of oldBlocks.values()) {
|
|
620
|
-
|
|
621
|
-
|
|
620
|
+
_chunkECKYFH5Qcjs.destroyRoot.call(void 0, block.root);
|
|
621
|
+
_chunkINYTG4NGcjs.removeNodes.call(void 0, block.nodes);
|
|
622
622
|
}
|
|
623
623
|
oldBlocks.clear();
|
|
624
624
|
}
|
|
@@ -677,7 +677,7 @@ function createFineGrainedKeyedList(getItems, keyFn, renderItem, needsIndex, sta
|
|
|
677
677
|
container.nextOrderedBlocks = prevOrderedBlocks;
|
|
678
678
|
for (const block of createdBlocks) {
|
|
679
679
|
if (newBlocks.get(block.key) === block) {
|
|
680
|
-
|
|
680
|
+
_chunkECKYFH5Qcjs.flushOnMount.call(void 0, block.root);
|
|
681
681
|
}
|
|
682
682
|
}
|
|
683
683
|
});
|
|
@@ -688,19 +688,19 @@ function createFineGrainedKeyedList(getItems, keyFn, renderItem, needsIndex, sta
|
|
|
688
688
|
};
|
|
689
689
|
const ensureEffectStarted = () => {
|
|
690
690
|
if (disposed || effectStarted) return effectStarted;
|
|
691
|
-
const isSSR =
|
|
691
|
+
const isSSR = _chunkECKYFH5Qcjs.__fictIsSSR.call(void 0, );
|
|
692
692
|
const parent = isSSR ? container.startMarker.parentNode : getConnectedParent();
|
|
693
693
|
if (!parent) return false;
|
|
694
694
|
const start = () => {
|
|
695
|
-
effectDispose =
|
|
695
|
+
effectDispose = _chunkECKYFH5Qcjs.createRenderEffect.call(void 0, performDiff);
|
|
696
696
|
effectStarted = true;
|
|
697
697
|
};
|
|
698
698
|
if (hostRoot) {
|
|
699
|
-
const prev =
|
|
699
|
+
const prev = _chunkECKYFH5Qcjs.pushRoot.call(void 0, hostRoot);
|
|
700
700
|
try {
|
|
701
701
|
start();
|
|
702
702
|
} finally {
|
|
703
|
-
|
|
703
|
+
_chunkECKYFH5Qcjs.popRoot.call(void 0, prev);
|
|
704
704
|
}
|
|
705
705
|
} else {
|
|
706
706
|
start();
|
|
@@ -716,7 +716,7 @@ function createFineGrainedKeyedList(getItems, keyFn, renderItem, needsIndex, sta
|
|
|
716
716
|
if (getConnectedParent()) {
|
|
717
717
|
disconnectObserver();
|
|
718
718
|
if (ensureEffectStarted()) {
|
|
719
|
-
|
|
719
|
+
_chunkECKYFH5Qcjs.flush.call(void 0, );
|
|
720
720
|
}
|
|
721
721
|
}
|
|
722
722
|
});
|
|
@@ -756,7 +756,7 @@ function createFineGrainedKeyedList(getItems, keyFn, renderItem, needsIndex, sta
|
|
|
756
756
|
if (disposed) return;
|
|
757
757
|
scheduleStart();
|
|
758
758
|
if (ensureEffectStarted()) {
|
|
759
|
-
|
|
759
|
+
_chunkECKYFH5Qcjs.flush.call(void 0, );
|
|
760
760
|
} else {
|
|
761
761
|
waitForConnection();
|
|
762
762
|
}
|
|
@@ -776,4 +776,4 @@ function createFineGrainedKeyedList(getItems, keyFn, renderItem, needsIndex, sta
|
|
|
776
776
|
|
|
777
777
|
|
|
778
778
|
exports.reconcileArrays = reconcileArrays; exports.moveNodesBefore = moveNodesBefore; exports.isNodeBetweenMarkers = isNodeBetweenMarkers; exports.createKeyedList = createKeyedList;
|
|
779
|
-
//# sourceMappingURL=chunk-
|
|
779
|
+
//# sourceMappingURL=chunk-5FVWBK4M.cjs.map
|