solid-js 1.9.0 → 1.9.2
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 +1 -1
- package/dist/dev.cjs +1 -1
- package/dist/dev.js +318 -559
- package/dist/server.js +74 -168
- package/dist/solid.cjs +1 -1
- package/dist/solid.js +276 -486
- package/h/dist/h.js +9 -40
- package/h/jsx-runtime/dist/jsx.js +1 -1
- package/h/jsx-runtime/types/index.d.ts +8 -11
- package/h/jsx-runtime/types/jsx.d.ts +196 -59
- package/h/types/hyperscript.d.ts +11 -11
- package/html/dist/html.cjs +1 -1
- package/html/dist/html.js +94 -219
- package/html/types/lit.d.ts +33 -52
- package/package.json +1 -1
- package/store/dist/dev.js +43 -123
- package/store/dist/server.js +8 -20
- package/store/dist/store.js +40 -114
- package/store/types/index.d.ts +7 -21
- package/store/types/modifiers.d.ts +3 -6
- package/store/types/mutable.d.ts +2 -5
- package/store/types/server.d.ts +5 -25
- package/store/types/store.d.ts +61 -218
- package/types/index.d.ts +10 -75
- package/types/jsx.d.ts +195 -47
- package/types/reactive/array.d.ts +4 -12
- package/types/reactive/observable.d.ts +17 -25
- package/types/reactive/scheduler.d.ts +6 -9
- package/types/reactive/signal.d.ts +142 -233
- package/types/render/Suspense.d.ts +5 -5
- package/types/render/component.d.ts +42 -73
- package/types/render/flow.d.ts +31 -43
- package/types/render/hydration.d.ts +15 -15
- package/types/server/index.d.ts +2 -57
- package/types/server/reactive.d.ts +42 -73
- package/types/server/rendering.d.ts +98 -169
- package/universal/dist/dev.js +12 -28
- package/universal/dist/universal.js +12 -28
- package/universal/types/index.d.ts +1 -3
- package/universal/types/universal.d.ts +1 -0
- package/web/dist/dev.cjs +15 -15
- package/web/dist/dev.js +89 -635
- package/web/dist/server.cjs +14 -14
- package/web/dist/server.js +108 -635
- package/web/dist/web.cjs +15 -15
- package/web/dist/web.js +87 -623
- package/web/storage/dist/storage.js +3 -3
- package/web/types/core.d.ts +1 -10
- package/web/types/index.d.ts +10 -27
- package/web/types/server-mock.d.ts +32 -47
package/dist/dev.js
CHANGED
|
@@ -52,11 +52,9 @@ function enqueue(taskQueue, task) {
|
|
|
52
52
|
let m = 0;
|
|
53
53
|
let n = taskQueue.length - 1;
|
|
54
54
|
while (m <= n) {
|
|
55
|
-
const k =
|
|
55
|
+
const k = n + m >> 1;
|
|
56
56
|
const cmp = task.expirationTime - taskQueue[k].expirationTime;
|
|
57
|
-
if (cmp > 0) m = k + 1;
|
|
58
|
-
else if (cmp < 0) n = k - 1;
|
|
59
|
-
else return k;
|
|
57
|
+
if (cmp > 0) m = k + 1;else if (cmp < 0) n = k - 1;else return k;
|
|
60
58
|
}
|
|
61
59
|
return m;
|
|
62
60
|
}
|
|
@@ -181,25 +179,20 @@ function createRoot(fn, detachedOwner) {
|
|
|
181
179
|
owner = Owner,
|
|
182
180
|
unowned = fn.length === 0,
|
|
183
181
|
current = detachedOwner === undefined ? owner : detachedOwner,
|
|
184
|
-
root = unowned
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
:
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
? () =>
|
|
199
|
-
fn(() => {
|
|
200
|
-
throw new Error("Dispose method must be an explicit argument to createRoot function");
|
|
201
|
-
})
|
|
202
|
-
: () => fn(() => untrack(() => cleanNode(root)));
|
|
182
|
+
root = unowned ? {
|
|
183
|
+
owned: null,
|
|
184
|
+
cleanups: null,
|
|
185
|
+
context: null,
|
|
186
|
+
owner: null
|
|
187
|
+
} : {
|
|
188
|
+
owned: null,
|
|
189
|
+
cleanups: null,
|
|
190
|
+
context: current ? current.context : null,
|
|
191
|
+
owner: current
|
|
192
|
+
},
|
|
193
|
+
updateFn = unowned ? () => fn(() => {
|
|
194
|
+
throw new Error("Dispose method must be an explicit argument to createRoot function");
|
|
195
|
+
}) : () => fn(() => untrack(() => cleanNode(root)));
|
|
203
196
|
DevHooks.afterCreateOwner && DevHooks.afterCreateOwner(root);
|
|
204
197
|
Owner = root;
|
|
205
198
|
Listener = null;
|
|
@@ -225,26 +218,23 @@ function createSignal(value, options) {
|
|
|
225
218
|
}
|
|
226
219
|
const setter = value => {
|
|
227
220
|
if (typeof value === "function") {
|
|
228
|
-
if (Transition && Transition.running && Transition.sources.has(s)) value = value(s.tValue);
|
|
229
|
-
else value = value(s.value);
|
|
221
|
+
if (Transition && Transition.running && Transition.sources.has(s)) value = value(s.tValue);else value = value(s.value);
|
|
230
222
|
}
|
|
231
223
|
return writeSignal(s, value);
|
|
232
224
|
};
|
|
233
225
|
return [readSignal.bind(s), setter];
|
|
234
226
|
}
|
|
235
227
|
function createComputed(fn, value, options) {
|
|
236
|
-
const c = createComputation(fn, value, true, STALE, options);
|
|
237
|
-
if (Scheduler && Transition && Transition.running) Updates.push(c);
|
|
238
|
-
else updateComputation(c);
|
|
228
|
+
const c = createComputation(fn, value, true, STALE, options );
|
|
229
|
+
if (Scheduler && Transition && Transition.running) Updates.push(c);else updateComputation(c);
|
|
239
230
|
}
|
|
240
231
|
function createRenderEffect(fn, value, options) {
|
|
241
|
-
const c = createComputation(fn, value, false, STALE, options);
|
|
242
|
-
if (Scheduler && Transition && Transition.running) Updates.push(c);
|
|
243
|
-
else updateComputation(c);
|
|
232
|
+
const c = createComputation(fn, value, false, STALE, options );
|
|
233
|
+
if (Scheduler && Transition && Transition.running) Updates.push(c);else updateComputation(c);
|
|
244
234
|
}
|
|
245
235
|
function createEffect(fn, value, options) {
|
|
246
236
|
runEffects = runUserEffects;
|
|
247
|
-
const c = createComputation(fn, value, false, STALE, options),
|
|
237
|
+
const c = createComputation(fn, value, false, STALE, options ),
|
|
248
238
|
s = SuspenseContext && useContext(SuspenseContext);
|
|
249
239
|
if (s) c.suspense = s;
|
|
250
240
|
if (!options || !options.render) c.user = true;
|
|
@@ -252,16 +242,10 @@ function createEffect(fn, value, options) {
|
|
|
252
242
|
}
|
|
253
243
|
function createReaction(onInvalidate, options) {
|
|
254
244
|
let fn;
|
|
255
|
-
const c = createComputation(
|
|
256
|
-
()
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
},
|
|
260
|
-
undefined,
|
|
261
|
-
false,
|
|
262
|
-
0,
|
|
263
|
-
options
|
|
264
|
-
),
|
|
245
|
+
const c = createComputation(() => {
|
|
246
|
+
fn ? fn() : untrack(onInvalidate);
|
|
247
|
+
fn = undefined;
|
|
248
|
+
}, undefined, false, 0, options ),
|
|
265
249
|
s = SuspenseContext && useContext(SuspenseContext);
|
|
266
250
|
if (s) c.suspense = s;
|
|
267
251
|
c.user = true;
|
|
@@ -272,7 +256,7 @@ function createReaction(onInvalidate, options) {
|
|
|
272
256
|
}
|
|
273
257
|
function createMemo(fn, value, options) {
|
|
274
258
|
options = options ? Object.assign({}, signalOptions, options) : signalOptions;
|
|
275
|
-
const c = createComputation(fn, value, true, 0, options);
|
|
259
|
+
const c = createComputation(fn, value, true, 0, options );
|
|
276
260
|
c.observers = null;
|
|
277
261
|
c.observerSlots = null;
|
|
278
262
|
c.comparator = options.equals || undefined;
|
|
@@ -289,7 +273,7 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
289
273
|
let source;
|
|
290
274
|
let fetcher;
|
|
291
275
|
let options;
|
|
292
|
-
if (
|
|
276
|
+
if (arguments.length === 2 && typeof pFetcher === "object" || arguments.length === 1) {
|
|
293
277
|
source = true;
|
|
294
278
|
fetcher = pSource;
|
|
295
279
|
options = pFetcher || {};
|
|
@@ -314,19 +298,15 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
314
298
|
[state, setState] = createSignal(resolved ? "ready" : "unresolved");
|
|
315
299
|
if (sharedConfig.context) {
|
|
316
300
|
id = sharedConfig.getNextContextId();
|
|
317
|
-
if (options.ssrLoadFrom === "initial") initP = options.initialValue;
|
|
318
|
-
else if (sharedConfig.load && sharedConfig.has(id)) initP = sharedConfig.load(id);
|
|
301
|
+
if (options.ssrLoadFrom === "initial") initP = options.initialValue;else if (sharedConfig.load && sharedConfig.has(id)) initP = sharedConfig.load(id);
|
|
319
302
|
}
|
|
320
303
|
function loadEnd(p, v, error, key) {
|
|
321
304
|
if (pr === p) {
|
|
322
305
|
pr = null;
|
|
323
306
|
key !== undefined && (resolved = true);
|
|
324
|
-
if ((p === initP || v === initP) && options.onHydrated)
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
value: v
|
|
328
|
-
})
|
|
329
|
-
);
|
|
307
|
+
if ((p === initP || v === initP) && options.onHydrated) queueMicrotask(() => options.onHydrated(key, {
|
|
308
|
+
value: v
|
|
309
|
+
}));
|
|
330
310
|
initP = NO_INIT;
|
|
331
311
|
if (Transition && p && loadedUnderTransition) {
|
|
332
312
|
Transition.promises.delete(p);
|
|
@@ -357,8 +337,7 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
357
337
|
createComputed(() => {
|
|
358
338
|
track();
|
|
359
339
|
if (pr) {
|
|
360
|
-
if (c.resolved && Transition && loadedUnderTransition) Transition.promises.add(pr);
|
|
361
|
-
else if (!contexts.has(c)) {
|
|
340
|
+
if (c.resolved && Transition && loadedUnderTransition) Transition.promises.add(pr);else if (!contexts.has(c)) {
|
|
362
341
|
c.increment();
|
|
363
342
|
contexts.add(c);
|
|
364
343
|
}
|
|
@@ -377,35 +356,26 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
377
356
|
return;
|
|
378
357
|
}
|
|
379
358
|
if (Transition && pr) Transition.promises.delete(pr);
|
|
380
|
-
const p =
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
fetcher(lookup, {
|
|
385
|
-
value: value(),
|
|
386
|
-
refetching
|
|
387
|
-
})
|
|
388
|
-
);
|
|
359
|
+
const p = initP !== NO_INIT ? initP : untrack(() => fetcher(lookup, {
|
|
360
|
+
value: value(),
|
|
361
|
+
refetching
|
|
362
|
+
}));
|
|
389
363
|
if (!isPromise(p)) {
|
|
390
364
|
loadEnd(pr, p, undefined, lookup);
|
|
391
365
|
return p;
|
|
392
366
|
}
|
|
393
367
|
pr = p;
|
|
394
368
|
if ("value" in p) {
|
|
395
|
-
if (p.status === "success") loadEnd(pr, p.value, undefined, lookup);
|
|
396
|
-
else loadEnd(pr, undefined, castError(p.value), lookup);
|
|
369
|
+
if (p.status === "success") loadEnd(pr, p.value, undefined, lookup);else loadEnd(pr, undefined, castError(p.value), lookup);
|
|
397
370
|
return p;
|
|
398
371
|
}
|
|
399
372
|
scheduled = true;
|
|
400
|
-
queueMicrotask(() =>
|
|
373
|
+
queueMicrotask(() => scheduled = false);
|
|
401
374
|
runUpdates(() => {
|
|
402
375
|
setState(resolved ? "refreshing" : "pending");
|
|
403
376
|
trigger();
|
|
404
377
|
}, false);
|
|
405
|
-
return p.then(
|
|
406
|
-
v => loadEnd(p, v, undefined, lookup),
|
|
407
|
-
e => loadEnd(p, undefined, castError(e), lookup)
|
|
408
|
-
);
|
|
378
|
+
return p.then(v => loadEnd(p, v, undefined, lookup), e => loadEnd(p, undefined, castError(e), lookup));
|
|
409
379
|
}
|
|
410
380
|
Object.defineProperties(read, {
|
|
411
381
|
state: {
|
|
@@ -429,81 +399,50 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
429
399
|
}
|
|
430
400
|
}
|
|
431
401
|
});
|
|
432
|
-
if (dynamic) createComputed(() => load(false));
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
refetch: load,
|
|
438
|
-
mutate: setValue
|
|
439
|
-
}
|
|
440
|
-
];
|
|
402
|
+
if (dynamic) createComputed(() => load(false));else load(false);
|
|
403
|
+
return [read, {
|
|
404
|
+
refetch: load,
|
|
405
|
+
mutate: setValue
|
|
406
|
+
}];
|
|
441
407
|
}
|
|
442
408
|
function createDeferred(source, options) {
|
|
443
409
|
let t,
|
|
444
410
|
timeout = options ? options.timeoutMs : undefined;
|
|
445
|
-
const node = createComputation(
|
|
446
|
-
() => {
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
timeout
|
|
453
|
-
}
|
|
454
|
-
: undefined
|
|
455
|
-
);
|
|
456
|
-
return source();
|
|
457
|
-
},
|
|
458
|
-
undefined,
|
|
459
|
-
true
|
|
460
|
-
);
|
|
461
|
-
const [deferred, setDeferred] = createSignal(
|
|
462
|
-
Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value,
|
|
463
|
-
options
|
|
464
|
-
);
|
|
411
|
+
const node = createComputation(() => {
|
|
412
|
+
if (!t || !t.fn) t = requestCallback(() => setDeferred(() => node.value), timeout !== undefined ? {
|
|
413
|
+
timeout
|
|
414
|
+
} : undefined);
|
|
415
|
+
return source();
|
|
416
|
+
}, undefined, true);
|
|
417
|
+
const [deferred, setDeferred] = createSignal(Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value, options);
|
|
465
418
|
updateComputation(node);
|
|
466
|
-
setDeferred(() =>
|
|
467
|
-
Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value
|
|
468
|
-
);
|
|
419
|
+
setDeferred(() => Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value);
|
|
469
420
|
return deferred;
|
|
470
421
|
}
|
|
471
422
|
function createSelector(source, fn = equalFn, options) {
|
|
472
423
|
const subs = new Map();
|
|
473
|
-
const node = createComputation(
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
for (const
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
}
|
|
484
|
-
return v;
|
|
485
|
-
},
|
|
486
|
-
undefined,
|
|
487
|
-
true,
|
|
488
|
-
STALE,
|
|
489
|
-
options
|
|
490
|
-
);
|
|
424
|
+
const node = createComputation(p => {
|
|
425
|
+
const v = source();
|
|
426
|
+
for (const [key, val] of subs.entries()) if (fn(key, v) !== fn(key, p)) {
|
|
427
|
+
for (const c of val.values()) {
|
|
428
|
+
c.state = STALE;
|
|
429
|
+
if (c.pure) Updates.push(c);else Effects.push(c);
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
return v;
|
|
433
|
+
}, undefined, true, STALE, options );
|
|
491
434
|
updateComputation(node);
|
|
492
435
|
return key => {
|
|
493
436
|
const listener = Listener;
|
|
494
437
|
if (listener) {
|
|
495
438
|
let l;
|
|
496
|
-
if (
|
|
497
|
-
else subs.set(key, (l = new Set([listener])));
|
|
439
|
+
if (l = subs.get(key)) l.add(listener);else subs.set(key, l = new Set([listener]));
|
|
498
440
|
onCleanup(() => {
|
|
499
441
|
l.delete(listener);
|
|
500
442
|
!l.size && subs.delete(key);
|
|
501
443
|
});
|
|
502
444
|
}
|
|
503
|
-
return fn(
|
|
504
|
-
key,
|
|
505
|
-
Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value
|
|
506
|
-
);
|
|
445
|
+
return fn(key, Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value);
|
|
507
446
|
};
|
|
508
447
|
}
|
|
509
448
|
function batch(fn) {
|
|
@@ -543,10 +482,7 @@ function onMount(fn) {
|
|
|
543
482
|
createEffect(() => untrack(fn));
|
|
544
483
|
}
|
|
545
484
|
function onCleanup(fn) {
|
|
546
|
-
if (Owner === null)
|
|
547
|
-
console.warn("cleanups created outside a `createRoot` or `render` will never be run");
|
|
548
|
-
else if (Owner.cleanups === null) Owner.cleanups = [fn];
|
|
549
|
-
else Owner.cleanups.push(fn);
|
|
485
|
+
if (Owner === null) console.warn("cleanups created outside a `createRoot` or `render` will never be run");else if (Owner.cleanups === null) Owner.cleanups = [fn];else Owner.cleanups.push(fn);
|
|
550
486
|
return fn;
|
|
551
487
|
}
|
|
552
488
|
function catchError(fn, handler) {
|
|
@@ -600,17 +536,15 @@ function startTransition(fn) {
|
|
|
600
536
|
Owner = o;
|
|
601
537
|
let t;
|
|
602
538
|
if (Scheduler || SuspenseContext) {
|
|
603
|
-
t =
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
});
|
|
613
|
-
t.done || (t.done = new Promise(res => (t.resolve = res)));
|
|
539
|
+
t = Transition || (Transition = {
|
|
540
|
+
sources: new Set(),
|
|
541
|
+
effects: [],
|
|
542
|
+
promises: new Set(),
|
|
543
|
+
disposed: new Set(),
|
|
544
|
+
queue: new Set(),
|
|
545
|
+
running: true
|
|
546
|
+
});
|
|
547
|
+
t.done || (t.done = new Promise(res => t.resolve = res));
|
|
614
548
|
t.running = true;
|
|
615
549
|
}
|
|
616
550
|
runUpdates(fn, false);
|
|
@@ -618,7 +552,7 @@ function startTransition(fn) {
|
|
|
618
552
|
return t ? t.done : undefined;
|
|
619
553
|
});
|
|
620
554
|
}
|
|
621
|
-
const [transPending, setTransPending] = /*@__PURE__*/
|
|
555
|
+
const [transPending, setTransPending] = /*@__PURE__*/createSignal(false);
|
|
622
556
|
function useTransition() {
|
|
623
557
|
return [transPending, startTransition];
|
|
624
558
|
}
|
|
@@ -627,18 +561,12 @@ function resumeEffects(e) {
|
|
|
627
561
|
e.length = 0;
|
|
628
562
|
}
|
|
629
563
|
function devComponent(Comp, props) {
|
|
630
|
-
const c = createComputation(
|
|
631
|
-
(
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
return Comp(props);
|
|
637
|
-
}),
|
|
638
|
-
undefined,
|
|
639
|
-
true,
|
|
640
|
-
0
|
|
641
|
-
);
|
|
564
|
+
const c = createComputation(() => untrack(() => {
|
|
565
|
+
Object.assign(Comp, {
|
|
566
|
+
[$DEVCOMP]: true
|
|
567
|
+
});
|
|
568
|
+
return Comp(props);
|
|
569
|
+
}), undefined, true, 0);
|
|
642
570
|
c.props = props;
|
|
643
571
|
c.observers = null;
|
|
644
572
|
c.observerSlots = null;
|
|
@@ -649,8 +577,7 @@ function devComponent(Comp, props) {
|
|
|
649
577
|
}
|
|
650
578
|
function registerGraph(value) {
|
|
651
579
|
if (!Owner) return;
|
|
652
|
-
if (Owner.sourceMap) Owner.sourceMap.push(value);
|
|
653
|
-
else Owner.sourceMap = [value];
|
|
580
|
+
if (Owner.sourceMap) Owner.sourceMap.push(value);else Owner.sourceMap = [value];
|
|
654
581
|
value.graph = Owner;
|
|
655
582
|
}
|
|
656
583
|
function createContext(defaultValue, options) {
|
|
@@ -663,15 +590,13 @@ function createContext(defaultValue, options) {
|
|
|
663
590
|
}
|
|
664
591
|
function useContext(context) {
|
|
665
592
|
let value;
|
|
666
|
-
return Owner && Owner.context && (value = Owner.context[context.id]) !== undefined
|
|
667
|
-
? value
|
|
668
|
-
: context.defaultValue;
|
|
593
|
+
return Owner && Owner.context && (value = Owner.context[context.id]) !== undefined ? value : context.defaultValue;
|
|
669
594
|
}
|
|
670
595
|
function children(fn) {
|
|
671
596
|
const children = createMemo(fn);
|
|
672
597
|
const memo = createMemo(() => resolveChildren(children()), undefined, {
|
|
673
598
|
name: "children"
|
|
674
|
-
});
|
|
599
|
+
}) ;
|
|
675
600
|
memo.toArray = () => {
|
|
676
601
|
const c = memo();
|
|
677
602
|
return Array.isArray(c) ? c : c != null ? [c] : [];
|
|
@@ -684,7 +609,10 @@ function getSuspenseContext() {
|
|
|
684
609
|
}
|
|
685
610
|
function enableExternalSource(factory, untrack = fn => fn()) {
|
|
686
611
|
if (ExternalSourceConfig) {
|
|
687
|
-
const {
|
|
612
|
+
const {
|
|
613
|
+
factory: oldFactory,
|
|
614
|
+
untrack: oldUntrack
|
|
615
|
+
} = ExternalSourceConfig;
|
|
688
616
|
ExternalSourceConfig = {
|
|
689
617
|
factory: (fn, trigger) => {
|
|
690
618
|
const oldSource = oldFactory(fn, trigger);
|
|
@@ -709,8 +637,7 @@ function enableExternalSource(factory, untrack = fn => fn()) {
|
|
|
709
637
|
function readSignal() {
|
|
710
638
|
const runningTransition = Transition && Transition.running;
|
|
711
639
|
if (this.sources && (runningTransition ? this.tState : this.state)) {
|
|
712
|
-
if ((runningTransition ? this.tState : this.state) === STALE) updateComputation(this);
|
|
713
|
-
else {
|
|
640
|
+
if ((runningTransition ? this.tState : this.state) === STALE) updateComputation(this);else {
|
|
714
641
|
const updates = Updates;
|
|
715
642
|
Updates = null;
|
|
716
643
|
runUpdates(() => lookUpstream(this), false);
|
|
@@ -738,12 +665,11 @@ function readSignal() {
|
|
|
738
665
|
return this.value;
|
|
739
666
|
}
|
|
740
667
|
function writeSignal(node, value, isComp) {
|
|
741
|
-
let current =
|
|
742
|
-
Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value;
|
|
668
|
+
let current = Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value;
|
|
743
669
|
if (!node.comparator || !node.comparator(current, value)) {
|
|
744
670
|
if (Transition) {
|
|
745
671
|
const TransitionRunning = Transition.running;
|
|
746
|
-
if (TransitionRunning ||
|
|
672
|
+
if (TransitionRunning || !isComp && Transition.sources.has(node)) {
|
|
747
673
|
Transition.sources.add(node);
|
|
748
674
|
node.tValue = value;
|
|
749
675
|
}
|
|
@@ -756,12 +682,10 @@ function writeSignal(node, value, isComp) {
|
|
|
756
682
|
const TransitionRunning = Transition && Transition.running;
|
|
757
683
|
if (TransitionRunning && Transition.disposed.has(o)) continue;
|
|
758
684
|
if (TransitionRunning ? !o.tState : !o.state) {
|
|
759
|
-
if (o.pure) Updates.push(o);
|
|
760
|
-
else Effects.push(o);
|
|
685
|
+
if (o.pure) Updates.push(o);else Effects.push(o);
|
|
761
686
|
if (o.observers) markDownstream(o);
|
|
762
687
|
}
|
|
763
|
-
if (!TransitionRunning) o.state = STALE;
|
|
764
|
-
else o.tState = STALE;
|
|
688
|
+
if (!TransitionRunning) o.state = STALE;else o.tState = STALE;
|
|
765
689
|
}
|
|
766
690
|
if (Updates.length > 10e5) {
|
|
767
691
|
Updates = [];
|
|
@@ -777,11 +701,7 @@ function updateComputation(node) {
|
|
|
777
701
|
if (!node.fn) return;
|
|
778
702
|
cleanNode(node);
|
|
779
703
|
const time = ExecCount;
|
|
780
|
-
runComputation(
|
|
781
|
-
node,
|
|
782
|
-
Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value,
|
|
783
|
-
time
|
|
784
|
-
);
|
|
704
|
+
runComputation(node, Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value, time);
|
|
785
705
|
if (Transition && !Transition.running && Transition.sources.has(node)) {
|
|
786
706
|
queueMicrotask(() => {
|
|
787
707
|
runUpdates(() => {
|
|
@@ -846,15 +766,11 @@ function createComputation(fn, init, pure, state = STALE, options) {
|
|
|
846
766
|
c.state = 0;
|
|
847
767
|
c.tState = state;
|
|
848
768
|
}
|
|
849
|
-
if (Owner === null)
|
|
850
|
-
console.warn("computations created outside a `createRoot` or `render` will never be disposed");
|
|
851
|
-
else if (Owner !== UNOWNED) {
|
|
769
|
+
if (Owner === null) console.warn("computations created outside a `createRoot` or `render` will never be disposed");else if (Owner !== UNOWNED) {
|
|
852
770
|
if (Transition && Transition.running && Owner.pure) {
|
|
853
|
-
if (!Owner.tOwned) Owner.tOwned = [c];
|
|
854
|
-
else Owner.tOwned.push(c);
|
|
771
|
+
if (!Owner.tOwned) Owner.tOwned = [c];else Owner.tOwned.push(c);
|
|
855
772
|
} else {
|
|
856
|
-
if (!Owner.owned) Owner.owned = [c];
|
|
857
|
-
else Owner.owned.push(c);
|
|
773
|
+
if (!Owner.owned) Owner.owned = [c];else Owner.owned.push(c);
|
|
858
774
|
}
|
|
859
775
|
}
|
|
860
776
|
if (options && options.name) c.name = options.name;
|
|
@@ -907,8 +823,7 @@ function runUpdates(fn, init) {
|
|
|
907
823
|
if (Updates) return fn();
|
|
908
824
|
let wait = false;
|
|
909
825
|
if (!init) Updates = [];
|
|
910
|
-
if (Effects) wait = true;
|
|
911
|
-
else Effects = [];
|
|
826
|
+
if (Effects) wait = true;else Effects = [];
|
|
912
827
|
ExecCount++;
|
|
913
828
|
try {
|
|
914
829
|
const res = fn();
|
|
@@ -922,8 +837,7 @@ function runUpdates(fn, init) {
|
|
|
922
837
|
}
|
|
923
838
|
function completeUpdates(wait) {
|
|
924
839
|
if (Updates) {
|
|
925
|
-
if (Scheduler && Transition && Transition.running) scheduleQueue(Updates);
|
|
926
|
-
else runQueue(Updates);
|
|
840
|
+
if (Scheduler && Transition && Transition.running) scheduleQueue(Updates);else runQueue(Updates);
|
|
927
841
|
Updates = null;
|
|
928
842
|
}
|
|
929
843
|
if (wait) return;
|
|
@@ -963,8 +877,7 @@ function completeUpdates(wait) {
|
|
|
963
877
|
}
|
|
964
878
|
const e = Effects;
|
|
965
879
|
Effects = null;
|
|
966
|
-
if (e.length) runUpdates(() => runEffects(e), false);
|
|
967
|
-
else DevHooks.afterUpdate && DevHooks.afterUpdate();
|
|
880
|
+
if (e.length) runUpdates(() => runEffects(e), false);else DevHooks.afterUpdate && DevHooks.afterUpdate();
|
|
968
881
|
if (res) res();
|
|
969
882
|
}
|
|
970
883
|
function runQueue(queue) {
|
|
@@ -992,8 +905,7 @@ function runUserEffects(queue) {
|
|
|
992
905
|
userLength = 0;
|
|
993
906
|
for (i = 0; i < queue.length; i++) {
|
|
994
907
|
const e = queue[i];
|
|
995
|
-
if (!e.user) runTop(e);
|
|
996
|
-
else queue[userLength++] = e;
|
|
908
|
+
if (!e.user) runTop(e);else queue[userLength++] = e;
|
|
997
909
|
}
|
|
998
910
|
if (sharedConfig.context) {
|
|
999
911
|
if (sharedConfig.count) {
|
|
@@ -1012,15 +924,13 @@ function runUserEffects(queue) {
|
|
|
1012
924
|
}
|
|
1013
925
|
function lookUpstream(node, ignore) {
|
|
1014
926
|
const runningTransition = Transition && Transition.running;
|
|
1015
|
-
if (runningTransition) node.tState = 0;
|
|
1016
|
-
else node.state = 0;
|
|
927
|
+
if (runningTransition) node.tState = 0;else node.state = 0;
|
|
1017
928
|
for (let i = 0; i < node.sources.length; i += 1) {
|
|
1018
929
|
const source = node.sources[i];
|
|
1019
930
|
if (source.sources) {
|
|
1020
931
|
const state = runningTransition ? source.tState : source.state;
|
|
1021
932
|
if (state === STALE) {
|
|
1022
|
-
if (source !== ignore && (!source.updatedAt || source.updatedAt < ExecCount))
|
|
1023
|
-
runTop(source);
|
|
933
|
+
if (source !== ignore && (!source.updatedAt || source.updatedAt < ExecCount)) runTop(source);
|
|
1024
934
|
} else if (state === PENDING) lookUpstream(source, ignore);
|
|
1025
935
|
}
|
|
1026
936
|
}
|
|
@@ -1030,10 +940,8 @@ function markDownstream(node) {
|
|
|
1030
940
|
for (let i = 0; i < node.observers.length; i += 1) {
|
|
1031
941
|
const o = node.observers[i];
|
|
1032
942
|
if (runningTransition ? !o.tState : !o.state) {
|
|
1033
|
-
if (runningTransition) o.tState = PENDING;
|
|
1034
|
-
|
|
1035
|
-
if (o.pure) Updates.push(o);
|
|
1036
|
-
else Effects.push(o);
|
|
943
|
+
if (runningTransition) o.tState = PENDING;else o.state = PENDING;
|
|
944
|
+
if (o.pure) Updates.push(o);else Effects.push(o);
|
|
1037
945
|
o.observers && markDownstream(o);
|
|
1038
946
|
}
|
|
1039
947
|
}
|
|
@@ -1070,8 +978,7 @@ function cleanNode(node) {
|
|
|
1070
978
|
for (i = node.cleanups.length - 1; i >= 0; i--) node.cleanups[i]();
|
|
1071
979
|
node.cleanups = null;
|
|
1072
980
|
}
|
|
1073
|
-
if (Transition && Transition.running) node.tState = 0;
|
|
1074
|
-
else node.state = 0;
|
|
981
|
+
if (Transition && Transition.running) node.tState = 0;else node.state = 0;
|
|
1075
982
|
delete node.sourceMap;
|
|
1076
983
|
}
|
|
1077
984
|
function reset(node, top) {
|
|
@@ -1093,21 +1000,19 @@ function runErrors(err, fns, owner) {
|
|
|
1093
1000
|
try {
|
|
1094
1001
|
for (const f of fns) f(err);
|
|
1095
1002
|
} catch (e) {
|
|
1096
|
-
handleError(e,
|
|
1003
|
+
handleError(e, owner && owner.owner || null);
|
|
1097
1004
|
}
|
|
1098
1005
|
}
|
|
1099
1006
|
function handleError(err, owner = Owner) {
|
|
1100
1007
|
const fns = ERROR && owner && owner.context && owner.context[ERROR];
|
|
1101
1008
|
const error = castError(err);
|
|
1102
1009
|
if (!fns) throw error;
|
|
1103
|
-
if (Effects)
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
});
|
|
1110
|
-
else runErrors(error, fns, owner);
|
|
1010
|
+
if (Effects) Effects.push({
|
|
1011
|
+
fn() {
|
|
1012
|
+
runErrors(error, fns, owner);
|
|
1013
|
+
},
|
|
1014
|
+
state: STALE
|
|
1015
|
+
});else runErrors(error, fns, owner);
|
|
1111
1016
|
}
|
|
1112
1017
|
function resolveChildren(children) {
|
|
1113
1018
|
if (typeof children === "function" && !children.length) return resolveChildren(children());
|
|
@@ -1124,26 +1029,19 @@ function resolveChildren(children) {
|
|
|
1124
1029
|
function createProvider(id, options) {
|
|
1125
1030
|
return function provider(props) {
|
|
1126
1031
|
let res;
|
|
1127
|
-
createRenderEffect(
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
return children(() => props.children);
|
|
1135
|
-
})),
|
|
1136
|
-
undefined,
|
|
1137
|
-
options
|
|
1138
|
-
);
|
|
1032
|
+
createRenderEffect(() => res = untrack(() => {
|
|
1033
|
+
Owner.context = {
|
|
1034
|
+
...Owner.context,
|
|
1035
|
+
[id]: props.value
|
|
1036
|
+
};
|
|
1037
|
+
return children(() => props.children);
|
|
1038
|
+
}), undefined, options);
|
|
1139
1039
|
return res;
|
|
1140
1040
|
};
|
|
1141
1041
|
}
|
|
1142
1042
|
function onError(fn) {
|
|
1143
1043
|
ERROR || (ERROR = Symbol("error"));
|
|
1144
|
-
if (Owner === null)
|
|
1145
|
-
console.warn("error handlers created outside a `createRoot` or `render` will never be run");
|
|
1146
|
-
else if (Owner.context === null || !Owner.context[ERROR]) {
|
|
1044
|
+
if (Owner === null) console.warn("error handlers created outside a `createRoot` or `render` will never be run");else if (Owner.context === null || !Owner.context[ERROR]) {
|
|
1147
1045
|
Owner.context = {
|
|
1148
1046
|
...Owner.context,
|
|
1149
1047
|
[ERROR]: [fn]
|
|
@@ -1172,8 +1070,7 @@ function observable(input) {
|
|
|
1172
1070
|
if (!(observer instanceof Object) || observer == null) {
|
|
1173
1071
|
throw new TypeError("Expected the observer to be an object.");
|
|
1174
1072
|
}
|
|
1175
|
-
const handler =
|
|
1176
|
-
typeof observer === "function" ? observer : observer.next && observer.next.bind(observer);
|
|
1073
|
+
const handler = typeof observer === "function" ? observer : observer.next && observer.next.bind(observer);
|
|
1177
1074
|
if (!handler) {
|
|
1178
1075
|
return {
|
|
1179
1076
|
unsubscribe() {}
|
|
@@ -1204,7 +1101,7 @@ function from(producer) {
|
|
|
1204
1101
|
});
|
|
1205
1102
|
if ("subscribe" in producer) {
|
|
1206
1103
|
const unsub = producer.subscribe(v => set(() => v));
|
|
1207
|
-
onCleanup(() =>
|
|
1104
|
+
onCleanup(() => "unsubscribe" in unsub ? unsub.unsubscribe() : unsub());
|
|
1208
1105
|
} else {
|
|
1209
1106
|
const clean = producer(set);
|
|
1210
1107
|
onCleanup(clean);
|
|
@@ -1248,7 +1145,8 @@ function mapArray(list, mapFn, options = {}) {
|
|
|
1248
1145
|
});
|
|
1249
1146
|
len = 1;
|
|
1250
1147
|
}
|
|
1251
|
-
}
|
|
1148
|
+
}
|
|
1149
|
+
else if (len === 0) {
|
|
1252
1150
|
mapped = new Array(newLen);
|
|
1253
1151
|
for (j = 0; j < newLen; j++) {
|
|
1254
1152
|
items[j] = newItems[j];
|
|
@@ -1259,16 +1157,8 @@ function mapArray(list, mapFn, options = {}) {
|
|
|
1259
1157
|
temp = new Array(newLen);
|
|
1260
1158
|
tempdisposers = new Array(newLen);
|
|
1261
1159
|
indexes && (tempIndexes = new Array(newLen));
|
|
1262
|
-
for (
|
|
1263
|
-
|
|
1264
|
-
start < end && items[start] === newItems[start];
|
|
1265
|
-
start++
|
|
1266
|
-
);
|
|
1267
|
-
for (
|
|
1268
|
-
end = len - 1, newEnd = newLen - 1;
|
|
1269
|
-
end >= start && newEnd >= start && items[end] === newItems[newEnd];
|
|
1270
|
-
end--, newEnd--
|
|
1271
|
-
) {
|
|
1160
|
+
for (start = 0, end = Math.min(len, newLen); start < end && items[start] === newItems[start]; start++);
|
|
1161
|
+
for (end = len - 1, newEnd = newLen - 1; end >= start && newEnd >= start && items[end] === newItems[newEnd]; end--, newEnd--) {
|
|
1272
1162
|
temp[newEnd] = mapped[end];
|
|
1273
1163
|
tempdisposers[newEnd] = disposers[end];
|
|
1274
1164
|
indexes && (tempIndexes[newEnd] = indexes[end]);
|
|
@@ -1302,7 +1192,7 @@ function mapArray(list, mapFn, options = {}) {
|
|
|
1302
1192
|
}
|
|
1303
1193
|
} else mapped[j] = createRoot(mapper);
|
|
1304
1194
|
}
|
|
1305
|
-
mapped = mapped.slice(0,
|
|
1195
|
+
mapped = mapped.slice(0, len = newLen);
|
|
1306
1196
|
items = newItems.slice(0);
|
|
1307
1197
|
}
|
|
1308
1198
|
return mapped;
|
|
@@ -1312,7 +1202,7 @@ function mapArray(list, mapFn, options = {}) {
|
|
|
1312
1202
|
if (indexes) {
|
|
1313
1203
|
const [s, set] = createSignal(j, {
|
|
1314
1204
|
name: "index"
|
|
1315
|
-
});
|
|
1205
|
+
}) ;
|
|
1316
1206
|
indexes[j] = set;
|
|
1317
1207
|
return mapFn(newItems[j], s);
|
|
1318
1208
|
}
|
|
@@ -1371,13 +1261,13 @@ function indexArray(list, mapFn, options = {}) {
|
|
|
1371
1261
|
}
|
|
1372
1262
|
len = signals.length = disposers.length = newLen;
|
|
1373
1263
|
items = newItems.slice(0);
|
|
1374
|
-
return
|
|
1264
|
+
return mapped = mapped.slice(0, len);
|
|
1375
1265
|
});
|
|
1376
1266
|
function mapper(disposer) {
|
|
1377
1267
|
disposers[i] = disposer;
|
|
1378
1268
|
const [s, set] = createSignal(newItems[i], {
|
|
1379
1269
|
name: "value"
|
|
1380
|
-
});
|
|
1270
|
+
}) ;
|
|
1381
1271
|
signals[i] = set;
|
|
1382
1272
|
return mapFn(s, i);
|
|
1383
1273
|
}
|
|
@@ -1393,7 +1283,7 @@ function createComponent(Comp, props) {
|
|
|
1393
1283
|
if (sharedConfig.context) {
|
|
1394
1284
|
const c = sharedConfig.context;
|
|
1395
1285
|
setHydrateContext(nextHydrateContext());
|
|
1396
|
-
const r = devComponent(Comp, props || {});
|
|
1286
|
+
const r = devComponent(Comp, props || {}) ;
|
|
1397
1287
|
setHydrateContext(c);
|
|
1398
1288
|
return r;
|
|
1399
1289
|
}
|
|
@@ -1442,33 +1332,29 @@ function mergeProps(...sources) {
|
|
|
1442
1332
|
let proxy = false;
|
|
1443
1333
|
for (let i = 0; i < sources.length; i++) {
|
|
1444
1334
|
const s = sources[i];
|
|
1445
|
-
proxy = proxy ||
|
|
1446
|
-
sources[i] = typeof s === "function" ? (
|
|
1335
|
+
proxy = proxy || !!s && $PROXY in s;
|
|
1336
|
+
sources[i] = typeof s === "function" ? (proxy = true, createMemo(s)) : s;
|
|
1447
1337
|
}
|
|
1448
1338
|
if (SUPPORTS_PROXY && proxy) {
|
|
1449
|
-
return new Proxy(
|
|
1450
|
-
{
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
if (v !== undefined) return v;
|
|
1455
|
-
}
|
|
1456
|
-
},
|
|
1457
|
-
has(property) {
|
|
1458
|
-
for (let i = sources.length - 1; i >= 0; i--) {
|
|
1459
|
-
if (property in resolveSource(sources[i])) return true;
|
|
1460
|
-
}
|
|
1461
|
-
return false;
|
|
1462
|
-
},
|
|
1463
|
-
keys() {
|
|
1464
|
-
const keys = [];
|
|
1465
|
-
for (let i = 0; i < sources.length; i++)
|
|
1466
|
-
keys.push(...Object.keys(resolveSource(sources[i])));
|
|
1467
|
-
return [...new Set(keys)];
|
|
1339
|
+
return new Proxy({
|
|
1340
|
+
get(property) {
|
|
1341
|
+
for (let i = sources.length - 1; i >= 0; i--) {
|
|
1342
|
+
const v = resolveSource(sources[i])[property];
|
|
1343
|
+
if (v !== undefined) return v;
|
|
1468
1344
|
}
|
|
1469
1345
|
},
|
|
1470
|
-
|
|
1471
|
-
|
|
1346
|
+
has(property) {
|
|
1347
|
+
for (let i = sources.length - 1; i >= 0; i--) {
|
|
1348
|
+
if (property in resolveSource(sources[i])) return true;
|
|
1349
|
+
}
|
|
1350
|
+
return false;
|
|
1351
|
+
},
|
|
1352
|
+
keys() {
|
|
1353
|
+
const keys = [];
|
|
1354
|
+
for (let i = 0; i < sources.length; i++) keys.push(...Object.keys(resolveSource(sources[i])));
|
|
1355
|
+
return [...new Set(keys)];
|
|
1356
|
+
}
|
|
1357
|
+
}, propTraps);
|
|
1472
1358
|
}
|
|
1473
1359
|
const sourcesMap = {};
|
|
1474
1360
|
const defined = Object.create(null);
|
|
@@ -1481,20 +1367,15 @@ function mergeProps(...sources) {
|
|
|
1481
1367
|
if (key === "__proto__" || key === "constructor") continue;
|
|
1482
1368
|
const desc = Object.getOwnPropertyDescriptor(source, key);
|
|
1483
1369
|
if (!defined[key]) {
|
|
1484
|
-
defined[key] = desc.get
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
}
|
|
1490
|
-
: desc.value !== undefined
|
|
1491
|
-
? desc
|
|
1492
|
-
: undefined;
|
|
1370
|
+
defined[key] = desc.get ? {
|
|
1371
|
+
enumerable: true,
|
|
1372
|
+
configurable: true,
|
|
1373
|
+
get: resolveSources.bind(sourcesMap[key] = [desc.get.bind(source)])
|
|
1374
|
+
} : desc.value !== undefined ? desc : undefined;
|
|
1493
1375
|
} else {
|
|
1494
1376
|
const sources = sourcesMap[key];
|
|
1495
1377
|
if (sources) {
|
|
1496
|
-
if (desc.get) sources.push(desc.get.bind(source));
|
|
1497
|
-
else if (desc.value !== undefined) sources.push(() => desc.value);
|
|
1378
|
+
if (desc.get) sources.push(desc.get.bind(source));else if (desc.value !== undefined) sources.push(() => desc.value);
|
|
1498
1379
|
}
|
|
1499
1380
|
}
|
|
1500
1381
|
}
|
|
@@ -1504,8 +1385,7 @@ function mergeProps(...sources) {
|
|
|
1504
1385
|
for (let i = definedKeys.length - 1; i >= 0; i--) {
|
|
1505
1386
|
const key = definedKeys[i],
|
|
1506
1387
|
desc = defined[key];
|
|
1507
|
-
if (desc && desc.get) Object.defineProperty(target, key, desc);
|
|
1508
|
-
else target[key] = desc ? desc.value : undefined;
|
|
1388
|
+
if (desc && desc.get) Object.defineProperty(target, key, desc);else target[key] = desc ? desc.value : undefined;
|
|
1509
1389
|
}
|
|
1510
1390
|
return target;
|
|
1511
1391
|
}
|
|
@@ -1513,60 +1393,47 @@ function splitProps(props, ...keys) {
|
|
|
1513
1393
|
if (SUPPORTS_PROXY && $PROXY in props) {
|
|
1514
1394
|
const blocked = new Set(keys.length > 1 ? keys.flat() : keys[0]);
|
|
1515
1395
|
const res = keys.map(k => {
|
|
1516
|
-
return new Proxy(
|
|
1517
|
-
{
|
|
1518
|
-
|
|
1519
|
-
return k.includes(property) ? props[property] : undefined;
|
|
1520
|
-
},
|
|
1521
|
-
has(property) {
|
|
1522
|
-
return k.includes(property) && property in props;
|
|
1523
|
-
},
|
|
1524
|
-
keys() {
|
|
1525
|
-
return k.filter(property => property in props);
|
|
1526
|
-
}
|
|
1396
|
+
return new Proxy({
|
|
1397
|
+
get(property) {
|
|
1398
|
+
return k.includes(property) ? props[property] : undefined;
|
|
1527
1399
|
},
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
});
|
|
1531
|
-
res.push(
|
|
1532
|
-
new Proxy(
|
|
1533
|
-
{
|
|
1534
|
-
get(property) {
|
|
1535
|
-
return blocked.has(property) ? undefined : props[property];
|
|
1536
|
-
},
|
|
1537
|
-
has(property) {
|
|
1538
|
-
return blocked.has(property) ? false : property in props;
|
|
1539
|
-
},
|
|
1540
|
-
keys() {
|
|
1541
|
-
return Object.keys(props).filter(k => !blocked.has(k));
|
|
1542
|
-
}
|
|
1400
|
+
has(property) {
|
|
1401
|
+
return k.includes(property) && property in props;
|
|
1543
1402
|
},
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1403
|
+
keys() {
|
|
1404
|
+
return k.filter(property => property in props);
|
|
1405
|
+
}
|
|
1406
|
+
}, propTraps);
|
|
1407
|
+
});
|
|
1408
|
+
res.push(new Proxy({
|
|
1409
|
+
get(property) {
|
|
1410
|
+
return blocked.has(property) ? undefined : props[property];
|
|
1411
|
+
},
|
|
1412
|
+
has(property) {
|
|
1413
|
+
return blocked.has(property) ? false : property in props;
|
|
1414
|
+
},
|
|
1415
|
+
keys() {
|
|
1416
|
+
return Object.keys(props).filter(k => !blocked.has(k));
|
|
1417
|
+
}
|
|
1418
|
+
}, propTraps));
|
|
1547
1419
|
return res;
|
|
1548
1420
|
}
|
|
1549
1421
|
const otherObject = {};
|
|
1550
1422
|
const objects = keys.map(() => ({}));
|
|
1551
1423
|
for (const propName of Object.getOwnPropertyNames(props)) {
|
|
1552
1424
|
const desc = Object.getOwnPropertyDescriptor(props, propName);
|
|
1553
|
-
const isDefaultDesc =
|
|
1554
|
-
!desc.get && !desc.set && desc.enumerable && desc.writable && desc.configurable;
|
|
1425
|
+
const isDefaultDesc = !desc.get && !desc.set && desc.enumerable && desc.writable && desc.configurable;
|
|
1555
1426
|
let blocked = false;
|
|
1556
1427
|
let objectIndex = 0;
|
|
1557
1428
|
for (const k of keys) {
|
|
1558
1429
|
if (k.includes(propName)) {
|
|
1559
1430
|
blocked = true;
|
|
1560
|
-
isDefaultDesc
|
|
1561
|
-
? (objects[objectIndex][propName] = desc.value)
|
|
1562
|
-
: Object.defineProperty(objects[objectIndex], propName, desc);
|
|
1431
|
+
isDefaultDesc ? objects[objectIndex][propName] = desc.value : Object.defineProperty(objects[objectIndex], propName, desc);
|
|
1563
1432
|
}
|
|
1564
1433
|
++objectIndex;
|
|
1565
1434
|
}
|
|
1566
1435
|
if (!blocked) {
|
|
1567
|
-
isDefaultDesc
|
|
1568
|
-
? (otherObject[propName] = desc.value)
|
|
1569
|
-
: Object.defineProperty(otherObject, propName, desc);
|
|
1436
|
+
isDefaultDesc ? otherObject[propName] = desc.value : Object.defineProperty(otherObject, propName, desc);
|
|
1570
1437
|
}
|
|
1571
1438
|
}
|
|
1572
1439
|
return [...objects, otherObject];
|
|
@@ -1592,24 +1459,19 @@ function lazy(fn) {
|
|
|
1592
1459
|
comp = s;
|
|
1593
1460
|
}
|
|
1594
1461
|
let Comp;
|
|
1595
|
-
return createMemo(() =>
|
|
1596
|
-
(Comp
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
setHydrateContext(c);
|
|
1607
|
-
return r;
|
|
1608
|
-
})
|
|
1609
|
-
: ""
|
|
1610
|
-
);
|
|
1462
|
+
return createMemo(() => (Comp = comp()) ? untrack(() => {
|
|
1463
|
+
if (true) Object.assign(Comp, {
|
|
1464
|
+
[$DEVCOMP]: true
|
|
1465
|
+
});
|
|
1466
|
+
if (!ctx || sharedConfig.done) return Comp(props);
|
|
1467
|
+
const c = sharedConfig.context;
|
|
1468
|
+
setHydrateContext(ctx);
|
|
1469
|
+
const r = Comp(props);
|
|
1470
|
+
setHydrateContext(c);
|
|
1471
|
+
return r;
|
|
1472
|
+
}) : "");
|
|
1611
1473
|
};
|
|
1612
|
-
wrap.preload = () => p || ((p = fn()).then(mod =>
|
|
1474
|
+
wrap.preload = () => p || ((p = fn()).then(mod => comp = () => mod.default), p);
|
|
1613
1475
|
return wrap;
|
|
1614
1476
|
}
|
|
1615
1477
|
let counter = 0;
|
|
@@ -1618,112 +1480,75 @@ function createUniqueId() {
|
|
|
1618
1480
|
return ctx ? sharedConfig.getNextContextId() : `cl-${counter++}`;
|
|
1619
1481
|
}
|
|
1620
1482
|
|
|
1621
|
-
const narrowedError = name =>
|
|
1622
|
-
`Attempting to access a stale value from <${name}> that could possibly be undefined. This may occur because you are reading the accessor returned from the component at a time where it has already been unmounted. We recommend cleaning up any stale timers or async, or reading from the initial condition.`;
|
|
1483
|
+
const narrowedError = name => `Attempting to access a stale value from <${name}> that could possibly be undefined. This may occur because you are reading the accessor returned from the component at a time where it has already been unmounted. We recommend cleaning up any stale timers or async, or reading from the initial condition.` ;
|
|
1623
1484
|
function For(props) {
|
|
1624
1485
|
const fallback = "fallback" in props && {
|
|
1625
1486
|
fallback: () => props.fallback
|
|
1626
1487
|
};
|
|
1627
|
-
return createMemo(
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
{
|
|
1631
|
-
name: "value"
|
|
1632
|
-
}
|
|
1633
|
-
);
|
|
1488
|
+
return createMemo(mapArray(() => props.each, props.children, fallback || undefined), undefined, {
|
|
1489
|
+
name: "value"
|
|
1490
|
+
}) ;
|
|
1634
1491
|
}
|
|
1635
1492
|
function Index(props) {
|
|
1636
1493
|
const fallback = "fallback" in props && {
|
|
1637
1494
|
fallback: () => props.fallback
|
|
1638
1495
|
};
|
|
1639
|
-
return createMemo(
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
{
|
|
1643
|
-
name: "value"
|
|
1644
|
-
}
|
|
1645
|
-
);
|
|
1496
|
+
return createMemo(indexArray(() => props.each, props.children, fallback || undefined), undefined, {
|
|
1497
|
+
name: "value"
|
|
1498
|
+
}) ;
|
|
1646
1499
|
}
|
|
1647
1500
|
function Show(props) {
|
|
1648
1501
|
const keyed = props.keyed;
|
|
1649
1502
|
const condition = createMemo(() => props.when, undefined, {
|
|
1650
|
-
equals: (a, b) =>
|
|
1503
|
+
equals: (a, b) => keyed ? a === b : !a === !b,
|
|
1651
1504
|
name: "condition"
|
|
1652
|
-
});
|
|
1653
|
-
return createMemo(
|
|
1654
|
-
()
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
keyed
|
|
1663
|
-
? c
|
|
1664
|
-
: () => {
|
|
1665
|
-
if (!untrack(condition)) throw narrowedError("Show");
|
|
1666
|
-
return props.when;
|
|
1667
|
-
}
|
|
1668
|
-
)
|
|
1669
|
-
)
|
|
1670
|
-
: child;
|
|
1671
|
-
}
|
|
1672
|
-
return props.fallback;
|
|
1673
|
-
},
|
|
1674
|
-
undefined,
|
|
1675
|
-
{
|
|
1676
|
-
name: "value"
|
|
1505
|
+
} );
|
|
1506
|
+
return createMemo(() => {
|
|
1507
|
+
const c = condition();
|
|
1508
|
+
if (c) {
|
|
1509
|
+
const child = props.children;
|
|
1510
|
+
const fn = typeof child === "function" && child.length > 0;
|
|
1511
|
+
return fn ? untrack(() => child(keyed ? c : () => {
|
|
1512
|
+
if (!untrack(condition)) throw narrowedError("Show");
|
|
1513
|
+
return props.when;
|
|
1514
|
+
})) : child;
|
|
1677
1515
|
}
|
|
1678
|
-
|
|
1516
|
+
return props.fallback;
|
|
1517
|
+
}, undefined, {
|
|
1518
|
+
name: "value"
|
|
1519
|
+
} );
|
|
1679
1520
|
}
|
|
1680
1521
|
function Switch(props) {
|
|
1681
1522
|
let keyed = false;
|
|
1682
1523
|
const equals = (a, b) => (keyed ? a[1] === b[1] : !a[1] === !b[1]) && a[2] === b[2];
|
|
1683
1524
|
const conditions = children(() => props.children),
|
|
1684
|
-
evalConditions = createMemo(
|
|
1685
|
-
()
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
return [i, c, conds[i]];
|
|
1693
|
-
}
|
|
1525
|
+
evalConditions = createMemo(() => {
|
|
1526
|
+
let conds = conditions();
|
|
1527
|
+
if (!Array.isArray(conds)) conds = [conds];
|
|
1528
|
+
for (let i = 0; i < conds.length; i++) {
|
|
1529
|
+
const c = conds[i].when;
|
|
1530
|
+
if (c) {
|
|
1531
|
+
keyed = !!conds[i].keyed;
|
|
1532
|
+
return [i, c, conds[i]];
|
|
1694
1533
|
}
|
|
1695
|
-
return [-1];
|
|
1696
|
-
},
|
|
1697
|
-
undefined,
|
|
1698
|
-
{
|
|
1699
|
-
equals,
|
|
1700
|
-
name: "eval conditions"
|
|
1701
1534
|
}
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
)
|
|
1720
|
-
: c;
|
|
1721
|
-
},
|
|
1722
|
-
undefined,
|
|
1723
|
-
{
|
|
1724
|
-
name: "value"
|
|
1725
|
-
}
|
|
1726
|
-
);
|
|
1535
|
+
return [-1];
|
|
1536
|
+
}, undefined, {
|
|
1537
|
+
equals,
|
|
1538
|
+
name: "eval conditions"
|
|
1539
|
+
} );
|
|
1540
|
+
return createMemo(() => {
|
|
1541
|
+
const [index, when, cond] = evalConditions();
|
|
1542
|
+
if (index < 0) return props.fallback;
|
|
1543
|
+
const c = cond.children;
|
|
1544
|
+
const fn = typeof c === "function" && c.length > 0;
|
|
1545
|
+
return fn ? untrack(() => c(keyed ? when : () => {
|
|
1546
|
+
if (untrack(evalConditions)[0] !== index) throw narrowedError("Match");
|
|
1547
|
+
return cond.when;
|
|
1548
|
+
})) : c;
|
|
1549
|
+
}, undefined, {
|
|
1550
|
+
name: "value"
|
|
1551
|
+
} );
|
|
1727
1552
|
}
|
|
1728
1553
|
function Match(props) {
|
|
1729
1554
|
return props;
|
|
@@ -1734,34 +1559,28 @@ function resetErrorBoundaries() {
|
|
|
1734
1559
|
}
|
|
1735
1560
|
function ErrorBoundary(props) {
|
|
1736
1561
|
let err;
|
|
1737
|
-
if (sharedConfig.context && sharedConfig.load)
|
|
1738
|
-
err = sharedConfig.load(sharedConfig.getContextId());
|
|
1562
|
+
if (sharedConfig.context && sharedConfig.load) err = sharedConfig.load(sharedConfig.getContextId());
|
|
1739
1563
|
const [errored, setErrored] = createSignal(err, {
|
|
1740
1564
|
name: "errored"
|
|
1741
|
-
});
|
|
1565
|
+
} );
|
|
1742
1566
|
Errors || (Errors = new Set());
|
|
1743
1567
|
Errors.add(setErrored);
|
|
1744
1568
|
onCleanup(() => Errors.delete(setErrored));
|
|
1745
|
-
return createMemo(
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
return typeof f === "function" && f.length ? untrack(() => f(e, () => setErrored())) : f;
|
|
1752
|
-
}
|
|
1753
|
-
return catchError(() => props.children, setErrored);
|
|
1754
|
-
},
|
|
1755
|
-
undefined,
|
|
1756
|
-
{
|
|
1757
|
-
name: "value"
|
|
1569
|
+
return createMemo(() => {
|
|
1570
|
+
let e;
|
|
1571
|
+
if (e = errored()) {
|
|
1572
|
+
const f = props.fallback;
|
|
1573
|
+
if ((typeof f !== "function" || f.length == 0)) console.error(e);
|
|
1574
|
+
return typeof f === "function" && f.length ? untrack(() => f(e, () => setErrored())) : f;
|
|
1758
1575
|
}
|
|
1759
|
-
|
|
1576
|
+
return catchError(() => props.children, setErrored);
|
|
1577
|
+
}, undefined, {
|
|
1578
|
+
name: "value"
|
|
1579
|
+
} );
|
|
1760
1580
|
}
|
|
1761
1581
|
|
|
1762
|
-
const suspenseListEquals = (a, b) =>
|
|
1763
|
-
|
|
1764
|
-
const SuspenseListContext = /* #__PURE__ */ createContext();
|
|
1582
|
+
const suspenseListEquals = (a, b) => a.showContent === b.showContent && a.showFallback === b.showFallback;
|
|
1583
|
+
const SuspenseListContext = /* #__PURE__ */createContext();
|
|
1765
1584
|
function SuspenseList(props) {
|
|
1766
1585
|
let [wrapper, setWrapper] = createSignal(() => ({
|
|
1767
1586
|
inFallback: false
|
|
@@ -1772,51 +1591,51 @@ function SuspenseList(props) {
|
|
|
1772
1591
|
if (listContext) {
|
|
1773
1592
|
show = listContext.register(createMemo(() => wrapper()().inFallback));
|
|
1774
1593
|
}
|
|
1775
|
-
const resolved = createMemo(
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1594
|
+
const resolved = createMemo(prev => {
|
|
1595
|
+
const reveal = props.revealOrder,
|
|
1596
|
+
tail = props.tail,
|
|
1597
|
+
{
|
|
1598
|
+
showContent = true,
|
|
1599
|
+
showFallback = true
|
|
1600
|
+
} = show ? show() : {},
|
|
1601
|
+
reg = registry(),
|
|
1602
|
+
reverse = reveal === "backwards";
|
|
1603
|
+
if (reveal === "together") {
|
|
1604
|
+
const all = reg.every(inFallback => !inFallback());
|
|
1605
|
+
const res = reg.map(() => ({
|
|
1606
|
+
showContent: all && showContent,
|
|
1607
|
+
showFallback
|
|
1608
|
+
}));
|
|
1609
|
+
res.inFallback = !all;
|
|
1610
|
+
return res;
|
|
1611
|
+
}
|
|
1612
|
+
let stop = false;
|
|
1613
|
+
let inFallback = prev.inFallback;
|
|
1614
|
+
const res = [];
|
|
1615
|
+
for (let i = 0, len = reg.length; i < len; i++) {
|
|
1616
|
+
const n = reverse ? len - i - 1 : i,
|
|
1617
|
+
s = reg[n]();
|
|
1618
|
+
if (!stop && !s) {
|
|
1619
|
+
res[n] = {
|
|
1620
|
+
showContent,
|
|
1786
1621
|
showFallback
|
|
1787
|
-
}
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
s = reg[n]();
|
|
1797
|
-
if (!stop && !s) {
|
|
1798
|
-
res[n] = {
|
|
1799
|
-
showContent,
|
|
1800
|
-
showFallback
|
|
1801
|
-
};
|
|
1802
|
-
} else {
|
|
1803
|
-
const next = !stop;
|
|
1804
|
-
if (next) inFallback = true;
|
|
1805
|
-
res[n] = {
|
|
1806
|
-
showContent: next,
|
|
1807
|
-
showFallback: !tail || (next && tail === "collapsed") ? showFallback : false
|
|
1808
|
-
};
|
|
1809
|
-
stop = true;
|
|
1810
|
-
}
|
|
1622
|
+
};
|
|
1623
|
+
} else {
|
|
1624
|
+
const next = !stop;
|
|
1625
|
+
if (next) inFallback = true;
|
|
1626
|
+
res[n] = {
|
|
1627
|
+
showContent: next,
|
|
1628
|
+
showFallback: !tail || next && tail === "collapsed" ? showFallback : false
|
|
1629
|
+
};
|
|
1630
|
+
stop = true;
|
|
1811
1631
|
}
|
|
1812
|
-
if (!stop) inFallback = false;
|
|
1813
|
-
res.inFallback = inFallback;
|
|
1814
|
-
return res;
|
|
1815
|
-
},
|
|
1816
|
-
{
|
|
1817
|
-
inFallback: false
|
|
1818
1632
|
}
|
|
1819
|
-
|
|
1633
|
+
if (!stop) inFallback = false;
|
|
1634
|
+
res.inFallback = inFallback;
|
|
1635
|
+
return res;
|
|
1636
|
+
}, {
|
|
1637
|
+
inFallback: false
|
|
1638
|
+
});
|
|
1820
1639
|
setWrapper(() => resolved);
|
|
1821
1640
|
return createComponent(SuspenseListContext.Provider, {
|
|
1822
1641
|
value: {
|
|
@@ -1861,27 +1680,23 @@ function Suspense(props) {
|
|
|
1861
1680
|
const key = sharedConfig.getContextId();
|
|
1862
1681
|
let ref = sharedConfig.load(key);
|
|
1863
1682
|
if (ref) {
|
|
1864
|
-
if (typeof ref !== "object" || ref.status !== "success") p = ref;
|
|
1865
|
-
else sharedConfig.gather(key);
|
|
1683
|
+
if (typeof ref !== "object" || ref.status !== "success") p = ref;else sharedConfig.gather(key);
|
|
1866
1684
|
}
|
|
1867
1685
|
if (p && p !== "$$f") {
|
|
1868
1686
|
const [s, set] = createSignal(undefined, {
|
|
1869
1687
|
equals: false
|
|
1870
1688
|
});
|
|
1871
1689
|
flicker = s;
|
|
1872
|
-
p.then(
|
|
1873
|
-
()
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
set();
|
|
1883
|
-
}
|
|
1884
|
-
);
|
|
1690
|
+
p.then(() => {
|
|
1691
|
+
if (sharedConfig.done) return set();
|
|
1692
|
+
sharedConfig.gather(key);
|
|
1693
|
+
setHydrateContext(ctx);
|
|
1694
|
+
set();
|
|
1695
|
+
setHydrateContext();
|
|
1696
|
+
}, err => {
|
|
1697
|
+
error = err;
|
|
1698
|
+
set();
|
|
1699
|
+
});
|
|
1885
1700
|
}
|
|
1886
1701
|
}
|
|
1887
1702
|
const listContext = useContext(SuspenseListContext);
|
|
@@ -1896,14 +1711,17 @@ function Suspense(props) {
|
|
|
1896
1711
|
ctx = sharedConfig.context;
|
|
1897
1712
|
if (flicker) {
|
|
1898
1713
|
flicker();
|
|
1899
|
-
return
|
|
1714
|
+
return flicker = undefined;
|
|
1900
1715
|
}
|
|
1901
1716
|
if (ctx && p === "$$f") setHydrateContext();
|
|
1902
1717
|
const rendered = createMemo(() => props.children);
|
|
1903
1718
|
return createMemo(prev => {
|
|
1904
1719
|
const inFallback = store.inFallback(),
|
|
1905
|
-
{
|
|
1906
|
-
|
|
1720
|
+
{
|
|
1721
|
+
showContent = true,
|
|
1722
|
+
showFallback = true
|
|
1723
|
+
} = show ? show() : {};
|
|
1724
|
+
if ((!inFallback || p && p !== "$$f") && showContent) {
|
|
1907
1725
|
store.resolved = true;
|
|
1908
1726
|
dispose && dispose();
|
|
1909
1727
|
dispose = ctx = p = undefined;
|
|
@@ -1933,68 +1751,9 @@ const DEV = {
|
|
|
1933
1751
|
hooks: DevHooks,
|
|
1934
1752
|
writeSignal,
|
|
1935
1753
|
registerGraph
|
|
1936
|
-
};
|
|
1754
|
+
} ;
|
|
1937
1755
|
if (globalThis) {
|
|
1938
|
-
if (!globalThis.Solid$$) globalThis.Solid$$ = true;
|
|
1939
|
-
else
|
|
1940
|
-
console.warn(
|
|
1941
|
-
"You appear to have multiple instances of Solid. This can lead to unexpected behavior."
|
|
1942
|
-
);
|
|
1756
|
+
if (!globalThis.Solid$$) globalThis.Solid$$ = true;else console.warn("You appear to have multiple instances of Solid. This can lead to unexpected behavior.");
|
|
1943
1757
|
}
|
|
1944
1758
|
|
|
1945
|
-
export {
|
|
1946
|
-
$DEVCOMP,
|
|
1947
|
-
$PROXY,
|
|
1948
|
-
$TRACK,
|
|
1949
|
-
DEV,
|
|
1950
|
-
ErrorBoundary,
|
|
1951
|
-
For,
|
|
1952
|
-
Index,
|
|
1953
|
-
Match,
|
|
1954
|
-
Show,
|
|
1955
|
-
Suspense,
|
|
1956
|
-
SuspenseList,
|
|
1957
|
-
Switch,
|
|
1958
|
-
batch,
|
|
1959
|
-
cancelCallback,
|
|
1960
|
-
catchError,
|
|
1961
|
-
children,
|
|
1962
|
-
createComponent,
|
|
1963
|
-
createComputed,
|
|
1964
|
-
createContext,
|
|
1965
|
-
createDeferred,
|
|
1966
|
-
createEffect,
|
|
1967
|
-
createMemo,
|
|
1968
|
-
createReaction,
|
|
1969
|
-
createRenderEffect,
|
|
1970
|
-
createResource,
|
|
1971
|
-
createRoot,
|
|
1972
|
-
createSelector,
|
|
1973
|
-
createSignal,
|
|
1974
|
-
createUniqueId,
|
|
1975
|
-
enableExternalSource,
|
|
1976
|
-
enableHydration,
|
|
1977
|
-
enableScheduling,
|
|
1978
|
-
equalFn,
|
|
1979
|
-
from,
|
|
1980
|
-
getListener,
|
|
1981
|
-
getOwner,
|
|
1982
|
-
indexArray,
|
|
1983
|
-
lazy,
|
|
1984
|
-
mapArray,
|
|
1985
|
-
mergeProps,
|
|
1986
|
-
observable,
|
|
1987
|
-
on,
|
|
1988
|
-
onCleanup,
|
|
1989
|
-
onError,
|
|
1990
|
-
onMount,
|
|
1991
|
-
requestCallback,
|
|
1992
|
-
resetErrorBoundaries,
|
|
1993
|
-
runWithOwner,
|
|
1994
|
-
sharedConfig,
|
|
1995
|
-
splitProps,
|
|
1996
|
-
startTransition,
|
|
1997
|
-
untrack,
|
|
1998
|
-
useContext,
|
|
1999
|
-
useTransition
|
|
2000
|
-
};
|
|
1759
|
+
export { $DEVCOMP, $PROXY, $TRACK, DEV, ErrorBoundary, For, Index, Match, Show, Suspense, SuspenseList, Switch, batch, cancelCallback, catchError, children, createComponent, createComputed, createContext, createDeferred, createEffect, createMemo, createReaction, createRenderEffect, createResource, createRoot, createSelector, createSignal, createUniqueId, enableExternalSource, enableHydration, enableScheduling, equalFn, from, getListener, getOwner, indexArray, lazy, mapArray, mergeProps, observable, on, onCleanup, onError, onMount, requestCallback, resetErrorBoundaries, runWithOwner, sharedConfig, splitProps, startTransition, untrack, useContext, useTransition };
|