solid-js 2.0.0-experimental.1 → 2.0.0-experimental.11

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/server.cjs CHANGED
@@ -1,827 +1,2 @@
1
1
  'use strict';
2
2
 
3
- const equalFn = (a, b) => a === b;
4
- const $PROXY = Symbol("solid-proxy");
5
- const $TRACK = Symbol("solid-track");
6
- const $DEVCOMP = Symbol("solid-dev-component");
7
- const DEV = undefined;
8
- const ERROR = Symbol("error");
9
- function castError(err) {
10
- if (err instanceof Error) return err;
11
- return new Error(typeof err === "string" ? err : "Unknown error", {
12
- cause: err
13
- });
14
- }
15
- function handleError(err, owner = Owner) {
16
- const fns = owner && owner.context && owner.context[ERROR];
17
- const error = castError(err);
18
- if (!fns) throw error;
19
- try {
20
- for (const f of fns) f(error);
21
- } catch (e) {
22
- handleError(e, owner && owner.owner || null);
23
- }
24
- }
25
- const UNOWNED = {
26
- context: null,
27
- owner: null,
28
- owned: null,
29
- cleanups: null
30
- };
31
- let Owner = null;
32
- function createOwner() {
33
- const o = {
34
- owner: Owner,
35
- context: Owner ? Owner.context : null,
36
- owned: null,
37
- cleanups: null
38
- };
39
- if (Owner) {
40
- if (!Owner.owned) Owner.owned = [o];else Owner.owned.push(o);
41
- }
42
- return o;
43
- }
44
- function createRoot(fn, detachedOwner) {
45
- const owner = Owner,
46
- current = detachedOwner === undefined ? owner : detachedOwner,
47
- root = fn.length === 0 ? UNOWNED : {
48
- context: current ? current.context : null,
49
- owner: current,
50
- owned: null,
51
- cleanups: null
52
- };
53
- Owner = root;
54
- let result;
55
- try {
56
- result = fn(fn.length === 0 ? () => {} : () => cleanNode(root));
57
- } catch (err) {
58
- handleError(err);
59
- } finally {
60
- Owner = owner;
61
- }
62
- return result;
63
- }
64
- function createSignal(value, options) {
65
- return [() => value, v => {
66
- return value = typeof v === "function" ? v(value) : v;
67
- }];
68
- }
69
- function createComputed(fn, value) {
70
- Owner = createOwner();
71
- try {
72
- fn(value);
73
- } catch (err) {
74
- handleError(err);
75
- } finally {
76
- Owner = Owner.owner;
77
- }
78
- }
79
- const createRenderEffect = createComputed;
80
- function createEffect(fn, value) {}
81
- function createReaction(fn) {
82
- return fn => {
83
- fn();
84
- };
85
- }
86
- function createMemo(fn, value) {
87
- Owner = createOwner();
88
- let v;
89
- try {
90
- v = fn(value);
91
- } catch (err) {
92
- handleError(err);
93
- } finally {
94
- Owner = Owner.owner;
95
- }
96
- return () => v;
97
- }
98
- function createDeferred(source) {
99
- return source;
100
- }
101
- function createSelector(source, fn = equalFn) {
102
- return k => fn(k, source());
103
- }
104
- function batch(fn) {
105
- return fn();
106
- }
107
- const untrack = batch;
108
- function on(deps, fn, options = {}) {
109
- const isArray = Array.isArray(deps);
110
- const defer = options.defer;
111
- return () => {
112
- if (defer) return undefined;
113
- let value;
114
- if (isArray) {
115
- value = [];
116
- for (let i = 0; i < deps.length; i++) value.push(deps[i]());
117
- } else value = deps();
118
- return fn(value);
119
- };
120
- }
121
- function onMount(fn) {}
122
- function onCleanup(fn) {
123
- if (Owner) {
124
- if (!Owner.cleanups) Owner.cleanups = [fn];else Owner.cleanups.push(fn);
125
- }
126
- return fn;
127
- }
128
- function cleanNode(node) {
129
- if (node.owned) {
130
- for (let i = 0; i < node.owned.length; i++) cleanNode(node.owned[i]);
131
- node.owned = null;
132
- }
133
- if (node.cleanups) {
134
- for (let i = 0; i < node.cleanups.length; i++) node.cleanups[i]();
135
- node.cleanups = null;
136
- }
137
- }
138
- function catchError(fn, handler) {
139
- const owner = createOwner();
140
- owner.context = {
141
- ...owner.context,
142
- [ERROR]: [handler]
143
- };
144
- Owner = owner;
145
- try {
146
- return fn();
147
- } catch (err) {
148
- handleError(err);
149
- } finally {
150
- Owner = Owner.owner;
151
- }
152
- }
153
- function getListener() {
154
- return null;
155
- }
156
- function createContext(defaultValue) {
157
- const id = Symbol("context");
158
- return {
159
- id,
160
- Provider: createProvider(id),
161
- defaultValue
162
- };
163
- }
164
- function useContext(context) {
165
- return Owner && Owner.context && Owner.context[context.id] !== undefined ? Owner.context[context.id] : context.defaultValue;
166
- }
167
- function getOwner() {
168
- return Owner;
169
- }
170
- function children(fn) {
171
- const memo = createMemo(() => resolveChildren(fn()));
172
- memo.toArray = () => {
173
- const c = memo();
174
- return Array.isArray(c) ? c : c != null ? [c] : [];
175
- };
176
- return memo;
177
- }
178
- function runWithOwner(o, fn) {
179
- const prev = Owner;
180
- Owner = o;
181
- try {
182
- return fn();
183
- } catch (err) {
184
- handleError(err);
185
- } finally {
186
- Owner = prev;
187
- }
188
- }
189
- function resolveChildren(children) {
190
- if (typeof children === "function" && !children.length) return resolveChildren(children());
191
- if (Array.isArray(children)) {
192
- const results = [];
193
- for (let i = 0; i < children.length; i++) {
194
- const result = resolveChildren(children[i]);
195
- Array.isArray(result) ? results.push.apply(results, result) : results.push(result);
196
- }
197
- return results;
198
- }
199
- return children;
200
- }
201
- function createProvider(id) {
202
- return function provider(props) {
203
- return createMemo(() => {
204
- Owner.context = {
205
- ...Owner.context,
206
- [id]: props.value
207
- };
208
- return children(() => props.children);
209
- });
210
- };
211
- }
212
- function requestCallback(fn, options) {
213
- return {
214
- id: 0,
215
- fn: () => {},
216
- startTime: 0,
217
- expirationTime: 0
218
- };
219
- }
220
- function mapArray(list, mapFn, options = {}) {
221
- const items = list();
222
- let s = [];
223
- if (items && items.length) {
224
- for (let i = 0, len = items.length; i < len; i++) s.push(mapFn(items[i], () => i));
225
- } else if (options.fallback) s = [options.fallback()];
226
- return () => s;
227
- }
228
- function indexArray(list, mapFn, options = {}) {
229
- const items = list();
230
- let s = [];
231
- if (items && items.length) {
232
- for (let i = 0, len = items.length; i < len; i++) s.push(mapFn(() => items[i], i));
233
- } else if (options.fallback) s = [options.fallback()];
234
- return () => s;
235
- }
236
- function observable(input) {
237
- return {
238
- subscribe(observer) {
239
- if (!(observer instanceof Object) || observer == null) {
240
- throw new TypeError("Expected the observer to be an object.");
241
- }
242
- const handler = typeof observer === "function" ? observer : observer.next && observer.next.bind(observer);
243
- if (!handler) {
244
- return {
245
- unsubscribe() {}
246
- };
247
- }
248
- const dispose = createRoot(disposer => {
249
- createEffect(() => {
250
- const v = input();
251
- untrack(() => handler(v));
252
- });
253
- return disposer;
254
- });
255
- if (getOwner()) onCleanup(dispose);
256
- return {
257
- unsubscribe() {
258
- dispose();
259
- }
260
- };
261
- },
262
- [Symbol.observable || "@@observable"]() {
263
- return this;
264
- }
265
- };
266
- }
267
- function from(producer) {
268
- const [s, set] = createSignal(undefined);
269
- if ("subscribe" in producer) {
270
- const unsub = producer.subscribe(v => set(() => v));
271
- onCleanup(() => "unsubscribe" in unsub ? unsub.unsubscribe() : unsub());
272
- } else {
273
- const clean = producer(set);
274
- onCleanup(clean);
275
- }
276
- return s;
277
- }
278
- function enableExternalSource(factory) {}
279
- function onError(fn) {
280
- if (Owner) {
281
- if (Owner.context === null || !Owner.context[ERROR]) {
282
- Owner.context = {
283
- ...Owner.context,
284
- [ERROR]: [fn]
285
- };
286
- mutateContext(Owner, ERROR, [fn]);
287
- } else Owner.context[ERROR].push(fn);
288
- }
289
- }
290
- function mutateContext(o, key, value) {
291
- if (o.owned) {
292
- for (let i = 0; i < o.owned.length; i++) {
293
- if (o.owned[i].context === o.context) mutateContext(o.owned[i], key, value);
294
- if (!o.owned[i].context) {
295
- o.owned[i].context = o.context;
296
- mutateContext(o.owned[i], key, value);
297
- } else if (!o.owned[i].context[key]) {
298
- o.owned[i].context[key] = value;
299
- mutateContext(o.owned[i], key, value);
300
- }
301
- }
302
- }
303
- }
304
-
305
- function escape(s, attr) {
306
- const t = typeof s;
307
- if (t !== "string") {
308
- if (t === "function") return escape(s());
309
- if (Array.isArray(s)) {
310
- for (let i = 0; i < s.length; i++) s[i] = escape(s[i]);
311
- return s;
312
- }
313
- return s;
314
- }
315
- const delim = "<";
316
- const escDelim = "&lt;";
317
- let iDelim = s.indexOf(delim);
318
- let iAmp = s.indexOf("&");
319
- if (iDelim < 0 && iAmp < 0) return s;
320
- let left = 0,
321
- out = "";
322
- while (iDelim >= 0 && iAmp >= 0) {
323
- if (iDelim < iAmp) {
324
- if (left < iDelim) out += s.substring(left, iDelim);
325
- out += escDelim;
326
- left = iDelim + 1;
327
- iDelim = s.indexOf(delim, left);
328
- } else {
329
- if (left < iAmp) out += s.substring(left, iAmp);
330
- out += "&amp;";
331
- left = iAmp + 1;
332
- iAmp = s.indexOf("&", left);
333
- }
334
- }
335
- if (iDelim >= 0) {
336
- do {
337
- if (left < iDelim) out += s.substring(left, iDelim);
338
- out += escDelim;
339
- left = iDelim + 1;
340
- iDelim = s.indexOf(delim, left);
341
- } while (iDelim >= 0);
342
- } else while (iAmp >= 0) {
343
- if (left < iAmp) out += s.substring(left, iAmp);
344
- out += "&amp;";
345
- left = iAmp + 1;
346
- iAmp = s.indexOf("&", left);
347
- }
348
- return left < s.length ? out + s.substring(left) : out;
349
- }
350
- function resolveSSRNode(node) {
351
- const t = typeof node;
352
- if (t === "string") return node;
353
- if (node == null || t === "boolean") return "";
354
- if (Array.isArray(node)) {
355
- let prev = {};
356
- let mapped = "";
357
- for (let i = 0, len = node.length; i < len; i++) {
358
- if (typeof prev !== "object" && typeof node[i] !== "object") mapped += `<!--!$-->`;
359
- mapped += resolveSSRNode(prev = node[i]);
360
- }
361
- return mapped;
362
- }
363
- if (t === "object") return node.t;
364
- if (t === "function") return resolveSSRNode(node());
365
- return String(node);
366
- }
367
- const sharedConfig = {
368
- context: undefined,
369
- getContextId() {
370
- if (!this.context) throw new Error(`getContextId cannot be used under non-hydrating context`);
371
- return getContextId(this.context.count);
372
- },
373
- getNextContextId() {
374
- if (!this.context) throw new Error(`getNextContextId cannot be used under non-hydrating context`);
375
- return getContextId(this.context.count++);
376
- }
377
- };
378
- function getContextId(count) {
379
- const num = String(count),
380
- len = num.length - 1;
381
- return sharedConfig.context.id + (len ? String.fromCharCode(96 + len) : "") + num;
382
- }
383
- function setHydrateContext(context) {
384
- sharedConfig.context = context;
385
- }
386
- function nextHydrateContext() {
387
- return sharedConfig.context ? {
388
- ...sharedConfig.context,
389
- id: sharedConfig.getNextContextId(),
390
- count: 0
391
- } : undefined;
392
- }
393
- function createUniqueId() {
394
- return sharedConfig.getNextContextId();
395
- }
396
- function createComponent(Comp, props) {
397
- if (sharedConfig.context && !sharedConfig.context.noHydrate) {
398
- const c = sharedConfig.context;
399
- setHydrateContext(nextHydrateContext());
400
- const r = Comp(props || {});
401
- setHydrateContext(c);
402
- return r;
403
- }
404
- return Comp(props || {});
405
- }
406
- function mergeProps(...sources) {
407
- const target = {};
408
- for (let i = 0; i < sources.length; i++) {
409
- let source = sources[i];
410
- if (typeof source === "function") source = source();
411
- if (source) {
412
- const descriptors = Object.getOwnPropertyDescriptors(source);
413
- for (const key in descriptors) {
414
- if (key in target) continue;
415
- Object.defineProperty(target, key, {
416
- enumerable: true,
417
- get() {
418
- for (let i = sources.length - 1; i >= 0; i--) {
419
- let v,
420
- s = sources[i];
421
- if (typeof s === "function") s = s();
422
- v = (s || {})[key];
423
- if (v !== undefined) return v;
424
- }
425
- }
426
- });
427
- }
428
- }
429
- }
430
- return target;
431
- }
432
- function splitProps(props, ...keys) {
433
- const descriptors = Object.getOwnPropertyDescriptors(props),
434
- split = k => {
435
- const clone = {};
436
- for (let i = 0; i < k.length; i++) {
437
- const key = k[i];
438
- if (descriptors[key]) {
439
- Object.defineProperty(clone, key, descriptors[key]);
440
- delete descriptors[key];
441
- }
442
- }
443
- return clone;
444
- };
445
- return keys.map(split).concat(split(Object.keys(descriptors)));
446
- }
447
- function simpleMap(props, wrap) {
448
- const list = props.each || [],
449
- len = list.length,
450
- fn = props.children;
451
- if (len) {
452
- let mapped = Array(len);
453
- for (let i = 0; i < len; i++) mapped[i] = wrap(fn, list[i], i);
454
- return mapped;
455
- }
456
- return props.fallback;
457
- }
458
- function For(props) {
459
- return simpleMap(props, (fn, item, i) => fn(item, () => i));
460
- }
461
- function Index(props) {
462
- return simpleMap(props, (fn, item, i) => fn(() => item, i));
463
- }
464
- function Show(props) {
465
- let c;
466
- return props.when ? typeof (c = props.children) === "function" ? c(props.keyed ? props.when : () => props.when) : c : props.fallback || "";
467
- }
468
- function Switch(props) {
469
- let conditions = props.children;
470
- Array.isArray(conditions) || (conditions = [conditions]);
471
- for (let i = 0; i < conditions.length; i++) {
472
- const w = conditions[i].when;
473
- if (w) {
474
- const c = conditions[i].children;
475
- return typeof c === "function" ? c(conditions[i].keyed ? w : () => w) : c;
476
- }
477
- }
478
- return props.fallback || "";
479
- }
480
- function Match(props) {
481
- return props;
482
- }
483
- function resetErrorBoundaries() {}
484
- function ErrorBoundary(props) {
485
- let error,
486
- res,
487
- clean,
488
- sync = true;
489
- const ctx = sharedConfig.context;
490
- const id = sharedConfig.getContextId();
491
- function displayFallback() {
492
- cleanNode(clean);
493
- ctx.serialize(id, error);
494
- setHydrateContext({
495
- ...ctx,
496
- count: 0
497
- });
498
- const f = props.fallback;
499
- return typeof f === "function" && f.length ? f(error, () => {}) : f;
500
- }
501
- createMemo(() => {
502
- clean = Owner;
503
- return catchError(() => res = props.children, err => {
504
- error = err;
505
- !sync && ctx.replace("e" + id, displayFallback);
506
- sync = true;
507
- });
508
- });
509
- if (error) return displayFallback();
510
- sync = false;
511
- return {
512
- t: `<!--!$e${id}-->${resolveSSRNode(escape(res))}<!--!$/e${id}-->`
513
- };
514
- }
515
- const SuspenseContext = createContext();
516
- let resourceContext = null;
517
- function createResource(source, fetcher, options = {}) {
518
- if (typeof fetcher !== "function") {
519
- options = fetcher || {};
520
- fetcher = source;
521
- source = true;
522
- }
523
- const contexts = new Set();
524
- const id = sharedConfig.getNextContextId();
525
- let resource = {};
526
- let value = options.storage ? options.storage(options.initialValue)[0]() : options.initialValue;
527
- let p;
528
- let error;
529
- if (sharedConfig.context.async && options.ssrLoadFrom !== "initial") {
530
- resource = sharedConfig.context.resources[id] || (sharedConfig.context.resources[id] = {});
531
- if (resource.ref) {
532
- if (!resource.data && !resource.ref[0].loading && !resource.ref[0].error) resource.ref[1].refetch();
533
- return resource.ref;
534
- }
535
- }
536
- const read = () => {
537
- if (error) throw error;
538
- const resolved = options.ssrLoadFrom !== "initial" && sharedConfig.context.async && "data" in sharedConfig.context.resources[id];
539
- if (!resolved && resourceContext) resourceContext.push(id);
540
- if (!resolved && read.loading) {
541
- const ctx = useContext(SuspenseContext);
542
- if (ctx) {
543
- ctx.resources.set(id, read);
544
- contexts.add(ctx);
545
- }
546
- }
547
- return resolved ? sharedConfig.context.resources[id].data : value;
548
- };
549
- read.loading = false;
550
- read.error = undefined;
551
- read.state = "initialValue" in options ? "ready" : "unresolved";
552
- Object.defineProperty(read, "latest", {
553
- get() {
554
- return read();
555
- }
556
- });
557
- function load() {
558
- const ctx = sharedConfig.context;
559
- if (!ctx.async) return read.loading = !!(typeof source === "function" ? source() : source);
560
- if (ctx.resources && id in ctx.resources && "data" in ctx.resources[id]) {
561
- value = ctx.resources[id].data;
562
- return;
563
- }
564
- let lookup;
565
- try {
566
- resourceContext = [];
567
- lookup = typeof source === "function" ? source() : source;
568
- if (resourceContext.length) return;
569
- } finally {
570
- resourceContext = null;
571
- }
572
- if (!p) {
573
- if (lookup == null || lookup === false) return;
574
- p = fetcher(lookup, {
575
- value
576
- });
577
- }
578
- if (p != undefined && typeof p === "object" && "then" in p) {
579
- read.loading = true;
580
- read.state = "pending";
581
- p = p.then(res => {
582
- read.loading = false;
583
- read.state = "ready";
584
- ctx.resources[id].data = res;
585
- p = null;
586
- notifySuspense(contexts);
587
- return res;
588
- }).catch(err => {
589
- read.loading = false;
590
- read.state = "errored";
591
- read.error = error = castError(err);
592
- p = null;
593
- notifySuspense(contexts);
594
- throw error;
595
- });
596
- if (ctx.serialize) ctx.serialize(id, p, options.deferStream);
597
- return p;
598
- }
599
- ctx.resources[id].data = p;
600
- if (ctx.serialize) ctx.serialize(id, p);
601
- p = null;
602
- return ctx.resources[id].data;
603
- }
604
- if (options.ssrLoadFrom !== "initial") load();
605
- return resource.ref = [read, {
606
- refetch: load,
607
- mutate: v => value = v
608
- }];
609
- }
610
- function lazy(fn) {
611
- let p;
612
- let load = id => {
613
- if (!p) {
614
- p = fn();
615
- p.then(mod => p.resolved = mod.default);
616
- if (id) sharedConfig.context.lazy[id] = p;
617
- }
618
- return p;
619
- };
620
- const contexts = new Set();
621
- const wrap = props => {
622
- const id = sharedConfig.context.id;
623
- let ref = sharedConfig.context.lazy[id];
624
- if (ref) p = ref;else load(id);
625
- if (p.resolved) return p.resolved(props);
626
- const ctx = useContext(SuspenseContext);
627
- const track = {
628
- loading: true,
629
- error: undefined
630
- };
631
- if (ctx) {
632
- ctx.resources.set(id, track);
633
- contexts.add(ctx);
634
- }
635
- if (sharedConfig.context.async) {
636
- sharedConfig.context.block(p.then(() => {
637
- track.loading = false;
638
- notifySuspense(contexts);
639
- }));
640
- }
641
- return "";
642
- };
643
- wrap.preload = load;
644
- return wrap;
645
- }
646
- function suspenseComplete(c) {
647
- for (const r of c.resources.values()) {
648
- if (r.loading) return false;
649
- }
650
- return true;
651
- }
652
- function notifySuspense(contexts) {
653
- for (const c of contexts) {
654
- if (!suspenseComplete(c)) {
655
- continue;
656
- }
657
- c.completed();
658
- contexts.delete(c);
659
- }
660
- }
661
- function enableScheduling() {}
662
- function enableHydration() {}
663
- function startTransition(fn) {
664
- fn();
665
- }
666
- function useTransition() {
667
- return [() => false, fn => {
668
- fn();
669
- }];
670
- }
671
- function SuspenseList(props) {
672
- return props.children;
673
- }
674
- function Suspense(props) {
675
- let done;
676
- const ctx = sharedConfig.context;
677
- const id = sharedConfig.getContextId();
678
- const o = createOwner();
679
- const value = ctx.suspense[id] || (ctx.suspense[id] = {
680
- resources: new Map(),
681
- completed: () => {
682
- const res = runSuspense();
683
- if (suspenseComplete(value)) {
684
- done(resolveSSRNode(escape(res)));
685
- }
686
- }
687
- });
688
- function suspenseError(err) {
689
- if (!done || !done(undefined, err)) {
690
- runWithOwner(o.owner, () => {
691
- throw err;
692
- });
693
- }
694
- }
695
- function runSuspense() {
696
- setHydrateContext({
697
- ...ctx,
698
- count: 0
699
- });
700
- cleanNode(o);
701
- return runWithOwner(o, () => createComponent(SuspenseContext.Provider, {
702
- value,
703
- get children() {
704
- return catchError(() => props.children, suspenseError);
705
- }
706
- }));
707
- }
708
- const res = runSuspense();
709
- if (suspenseComplete(value)) {
710
- delete ctx.suspense[id];
711
- return res;
712
- }
713
- done = ctx.async ? ctx.registerFragment(id) : undefined;
714
- return catchError(() => {
715
- if (ctx.async) {
716
- setHydrateContext({
717
- ...ctx,
718
- count: 0,
719
- id: ctx.id + "0F",
720
- noHydrate: true
721
- });
722
- const res = {
723
- t: `<template id="pl-${id}"></template>${resolveSSRNode(escape(props.fallback))}<!--pl-${id}-->`
724
- };
725
- setHydrateContext(ctx);
726
- return res;
727
- }
728
- setHydrateContext({
729
- ...ctx,
730
- count: 0,
731
- id: ctx.id + "0F"
732
- });
733
- ctx.serialize(id, "$$f");
734
- return props.fallback;
735
- }, suspenseError);
736
- }
737
-
738
- function isWrappable(obj) {
739
- return obj != null && typeof obj === "object" && !Object.isFrozen(obj);
740
- }
741
- function unwrap(item) {
742
- return item;
743
- }
744
- function setProperty(state, property, value) {
745
- if (state[property] === value) return;
746
- if (value === undefined) {
747
- delete state[property];
748
- } else state[property] = value;
749
- }
750
- function createStore(state) {
751
- function setStore(fn) {
752
- fn(state);
753
- }
754
- return [state, setStore];
755
- }
756
- function reconcile(value) {
757
- return state => {
758
- if (!isWrappable(state) || !isWrappable(value)) return value;
759
- const targetKeys = Object.keys(value);
760
- const previousKeys = Object.keys(state);
761
- for (let i = 0, len = targetKeys.length; i < len; i++) {
762
- const key = targetKeys[i];
763
- setProperty(state, key, value[key]);
764
- }
765
- for (let i = 0, len = previousKeys.length; i < len; i++) {
766
- if (value[previousKeys[i]] === undefined) setProperty(state, previousKeys[i], undefined);
767
- }
768
- return state;
769
- };
770
- }
771
-
772
- exports.$DEVCOMP = $DEVCOMP;
773
- exports.$PROXY = $PROXY;
774
- exports.$TRACK = $TRACK;
775
- exports.DEV = DEV;
776
- exports.ErrorBoundary = ErrorBoundary;
777
- exports.For = For;
778
- exports.Index = Index;
779
- exports.Match = Match;
780
- exports.Show = Show;
781
- exports.Suspense = Suspense;
782
- exports.SuspenseList = SuspenseList;
783
- exports.Switch = Switch;
784
- exports.batch = batch;
785
- exports.catchError = catchError;
786
- exports.children = children;
787
- exports.createComponent = createComponent;
788
- exports.createContext = createContext;
789
- exports.createDeferred = createDeferred;
790
- exports.createEffect = createEffect;
791
- exports.createMemo = createMemo;
792
- exports.createReaction = createReaction;
793
- exports.createRenderEffect = createRenderEffect;
794
- exports.createResource = createResource;
795
- exports.createRoot = createRoot;
796
- exports.createSelector = createSelector;
797
- exports.createSignal = createSignal;
798
- exports.createStore = createStore;
799
- exports.createUniqueId = createUniqueId;
800
- exports.enableExternalSource = enableExternalSource;
801
- exports.enableHydration = enableHydration;
802
- exports.enableScheduling = enableScheduling;
803
- exports.equalFn = equalFn;
804
- exports.from = from;
805
- exports.getListener = getListener;
806
- exports.getOwner = getOwner;
807
- exports.indexArray = indexArray;
808
- exports.isWrappable = isWrappable;
809
- exports.lazy = lazy;
810
- exports.mapArray = mapArray;
811
- exports.mergeProps = mergeProps;
812
- exports.observable = observable;
813
- exports.on = on;
814
- exports.onCleanup = onCleanup;
815
- exports.onError = onError;
816
- exports.onMount = onMount;
817
- exports.reconcile = reconcile;
818
- exports.requestCallback = requestCallback;
819
- exports.resetErrorBoundaries = resetErrorBoundaries;
820
- exports.runWithOwner = runWithOwner;
821
- exports.sharedConfig = sharedConfig;
822
- exports.splitProps = splitProps;
823
- exports.startTransition = startTransition;
824
- exports.untrack = untrack;
825
- exports.unwrap = unwrap;
826
- exports.useContext = useContext;
827
- exports.useTransition = useTransition;