@tanstack/query-devtools 5.0.0-alpha.88 → 5.0.0-alpha.89
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/build/Devtools/{QPWQM7BG.js → 4VMGNIF2.js} +8 -8
- package/build/Devtools/{RZF5MSB2.jsx → AZTKLNIS.jsx} +8 -8
- package/build/Devtools/{QBS7PB6D.js → MUGBGUTD.js} +8 -8
- package/build/Devtools/{OYHFZDAP.jsx → PI4AXB4J.jsx} +8 -8
- package/build/chunk/{LOJK4LQB.jsx → 2N7SLCC6.jsx} +93 -58
- package/build/chunk/{MZOCHHZD.js → C5UID3AG.js} +180 -103
- package/build/chunk/{DFC6JMPR.jsx → KC3COQO2.jsx} +93 -58
- package/build/chunk/{YHTPXJWR.js → QGJD3TIO.js} +180 -103
- package/build/dev.cjs +199 -122
- package/build/dev.js +2 -2
- package/build/dev.jsx +2 -2
- package/build/index.cjs +199 -122
- package/build/index.js +2 -2
- package/build/index.jsx +2 -2
- package/package.json +3 -3
package/build/dev.cjs
CHANGED
|
@@ -10,7 +10,7 @@ var __export = (target, all) => {
|
|
|
10
10
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
11
|
};
|
|
12
12
|
|
|
13
|
-
// ../../node_modules/.pnpm/solid-js@1.
|
|
13
|
+
// ../../node_modules/.pnpm/solid-js@1.7.8/node_modules/solid-js/dist/solid.js
|
|
14
14
|
function setHydrateContext(context) {
|
|
15
15
|
sharedConfig.context = context;
|
|
16
16
|
}
|
|
@@ -75,7 +75,8 @@ function createEffect(fn, value, options) {
|
|
|
75
75
|
const c = createComputation(fn, value, false, STALE), s = SuspenseContext && lookup(Owner, SuspenseContext.id);
|
|
76
76
|
if (s)
|
|
77
77
|
c.suspense = s;
|
|
78
|
-
|
|
78
|
+
if (!options || !options.render)
|
|
79
|
+
c.user = true;
|
|
79
80
|
Effects ? Effects.push(c) : updateComputation(c);
|
|
80
81
|
}
|
|
81
82
|
function createMemo(fn, value, options) {
|
|
@@ -119,7 +120,7 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
119
120
|
function loadEnd(p, v, error2, key) {
|
|
120
121
|
if (pr === p) {
|
|
121
122
|
pr = null;
|
|
122
|
-
resolved = true;
|
|
123
|
+
key !== void 0 && (resolved = true);
|
|
123
124
|
if ((p === initP || v === initP) && options.onHydrated)
|
|
124
125
|
queueMicrotask(() => options.onHydrated(key, {
|
|
125
126
|
value: v
|
|
@@ -141,7 +142,7 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
141
142
|
runUpdates(() => {
|
|
142
143
|
if (err === void 0)
|
|
143
144
|
setValue(() => v);
|
|
144
|
-
setState(err !== void 0 ? "errored" : "ready");
|
|
145
|
+
setState(err !== void 0 ? "errored" : resolved ? "ready" : "unresolved");
|
|
145
146
|
setError(err);
|
|
146
147
|
for (const c of contexts.keys())
|
|
147
148
|
c.decrement();
|
|
@@ -327,8 +328,8 @@ function children(fn) {
|
|
|
327
328
|
}
|
|
328
329
|
function readSignal() {
|
|
329
330
|
const runningTransition = Transition && Transition.running;
|
|
330
|
-
if (this.sources && (
|
|
331
|
-
if (
|
|
331
|
+
if (this.sources && (runningTransition ? this.tState : this.state)) {
|
|
332
|
+
if ((runningTransition ? this.tState : this.state) === STALE)
|
|
332
333
|
updateComputation(this);
|
|
333
334
|
else {
|
|
334
335
|
const updates = Updates;
|
|
@@ -378,7 +379,7 @@ function writeSignal(node2, value, isComp) {
|
|
|
378
379
|
const TransitionRunning = Transition && Transition.running;
|
|
379
380
|
if (TransitionRunning && Transition.disposed.has(o))
|
|
380
381
|
continue;
|
|
381
|
-
if (TransitionRunning
|
|
382
|
+
if (TransitionRunning ? !o.tState : !o.state) {
|
|
382
383
|
if (o.pure)
|
|
383
384
|
Updates.push(o);
|
|
384
385
|
else
|
|
@@ -386,10 +387,10 @@ function writeSignal(node2, value, isComp) {
|
|
|
386
387
|
if (o.observers)
|
|
387
388
|
markDownstream(o);
|
|
388
389
|
}
|
|
389
|
-
if (TransitionRunning)
|
|
390
|
-
o.tState = STALE;
|
|
391
|
-
else
|
|
390
|
+
if (!TransitionRunning)
|
|
392
391
|
o.state = STALE;
|
|
392
|
+
else
|
|
393
|
+
o.tState = STALE;
|
|
393
394
|
}
|
|
394
395
|
if (Updates.length > 1e6) {
|
|
395
396
|
Updates = [];
|
|
@@ -502,9 +503,9 @@ function createComputation(fn, init, pure, state = STALE, options) {
|
|
|
502
503
|
}
|
|
503
504
|
function runTop(node2) {
|
|
504
505
|
const runningTransition = Transition && Transition.running;
|
|
505
|
-
if (
|
|
506
|
+
if ((runningTransition ? node2.tState : node2.state) === 0)
|
|
506
507
|
return;
|
|
507
|
-
if (
|
|
508
|
+
if ((runningTransition ? node2.tState : node2.state) === PENDING)
|
|
508
509
|
return lookUpstream(node2);
|
|
509
510
|
if (node2.suspense && untrack(node2.suspense.inFallback))
|
|
510
511
|
return node2.suspense.effects.push(node2);
|
|
@@ -512,7 +513,7 @@ function runTop(node2) {
|
|
|
512
513
|
while ((node2 = node2.owner) && (!node2.updatedAt || node2.updatedAt < ExecCount)) {
|
|
513
514
|
if (runningTransition && Transition.disposed.has(node2))
|
|
514
515
|
return;
|
|
515
|
-
if (
|
|
516
|
+
if (runningTransition ? node2.tState : node2.state)
|
|
516
517
|
ancestors.push(node2);
|
|
517
518
|
}
|
|
518
519
|
for (let i = ancestors.length - 1; i >= 0; i--) {
|
|
@@ -524,9 +525,9 @@ function runTop(node2) {
|
|
|
524
525
|
return;
|
|
525
526
|
}
|
|
526
527
|
}
|
|
527
|
-
if (
|
|
528
|
+
if ((runningTransition ? node2.tState : node2.state) === STALE) {
|
|
528
529
|
updateComputation(node2);
|
|
529
|
-
} else if (
|
|
530
|
+
} else if ((runningTransition ? node2.tState : node2.state) === PENDING) {
|
|
530
531
|
const updates = Updates;
|
|
531
532
|
Updates = null;
|
|
532
533
|
runUpdates(() => lookUpstream(node2, ancestors[0]), false);
|
|
@@ -640,8 +641,18 @@ function runUserEffects(queue) {
|
|
|
640
641
|
else
|
|
641
642
|
queue[userLength++] = e;
|
|
642
643
|
}
|
|
643
|
-
if (sharedConfig.context)
|
|
644
|
+
if (sharedConfig.context) {
|
|
645
|
+
if (sharedConfig.count) {
|
|
646
|
+
sharedConfig.effects || (sharedConfig.effects = []);
|
|
647
|
+
sharedConfig.effects.push(...queue.slice(0, userLength));
|
|
648
|
+
return;
|
|
649
|
+
} else if (sharedConfig.effects) {
|
|
650
|
+
queue = [...sharedConfig.effects, ...queue];
|
|
651
|
+
userLength += sharedConfig.effects.length;
|
|
652
|
+
delete sharedConfig.effects;
|
|
653
|
+
}
|
|
644
654
|
setHydrateContext();
|
|
655
|
+
}
|
|
645
656
|
for (i = 0; i < userLength; i++)
|
|
646
657
|
runTop(queue[i]);
|
|
647
658
|
}
|
|
@@ -654,10 +665,11 @@ function lookUpstream(node2, ignore) {
|
|
|
654
665
|
for (let i = 0; i < node2.sources.length; i += 1) {
|
|
655
666
|
const source = node2.sources[i];
|
|
656
667
|
if (source.sources) {
|
|
657
|
-
|
|
668
|
+
const state = runningTransition ? source.tState : source.state;
|
|
669
|
+
if (state === STALE) {
|
|
658
670
|
if (source !== ignore && (!source.updatedAt || source.updatedAt < ExecCount))
|
|
659
671
|
runTop(source);
|
|
660
|
-
} else if (
|
|
672
|
+
} else if (state === PENDING)
|
|
661
673
|
lookUpstream(source, ignore);
|
|
662
674
|
}
|
|
663
675
|
}
|
|
@@ -666,7 +678,7 @@ function markDownstream(node2) {
|
|
|
666
678
|
const runningTransition = Transition && Transition.running;
|
|
667
679
|
for (let i = 0; i < node2.observers.length; i += 1) {
|
|
668
680
|
const o = node2.observers[i];
|
|
669
|
-
if (
|
|
681
|
+
if (runningTransition ? !o.tState : !o.state) {
|
|
670
682
|
if (runningTransition)
|
|
671
683
|
o.tState = PENDING;
|
|
672
684
|
else
|
|
@@ -696,18 +708,18 @@ function cleanNode(node2) {
|
|
|
696
708
|
}
|
|
697
709
|
if (Transition && Transition.running && node2.pure) {
|
|
698
710
|
if (node2.tOwned) {
|
|
699
|
-
for (i =
|
|
711
|
+
for (i = node2.tOwned.length - 1; i >= 0; i--)
|
|
700
712
|
cleanNode(node2.tOwned[i]);
|
|
701
713
|
delete node2.tOwned;
|
|
702
714
|
}
|
|
703
715
|
reset(node2, true);
|
|
704
716
|
} else if (node2.owned) {
|
|
705
|
-
for (i =
|
|
717
|
+
for (i = node2.owned.length - 1; i >= 0; i--)
|
|
706
718
|
cleanNode(node2.owned[i]);
|
|
707
719
|
node2.owned = null;
|
|
708
720
|
}
|
|
709
721
|
if (node2.cleanups) {
|
|
710
|
-
for (i =
|
|
722
|
+
for (i = node2.cleanups.length - 1; i >= 0; i--)
|
|
711
723
|
node2.cleanups[i]();
|
|
712
724
|
node2.cleanups = null;
|
|
713
725
|
}
|
|
@@ -728,28 +740,34 @@ function reset(node2, top) {
|
|
|
728
740
|
}
|
|
729
741
|
}
|
|
730
742
|
function castError(err) {
|
|
731
|
-
if (err instanceof Error
|
|
743
|
+
if (err instanceof Error)
|
|
732
744
|
return err;
|
|
733
|
-
return new Error("Unknown error"
|
|
745
|
+
return new Error(typeof err === "string" ? err : "Unknown error", {
|
|
746
|
+
cause: err
|
|
747
|
+
});
|
|
734
748
|
}
|
|
735
|
-
function runErrors(fns,
|
|
736
|
-
|
|
737
|
-
f
|
|
749
|
+
function runErrors(err, fns, owner) {
|
|
750
|
+
try {
|
|
751
|
+
for (const f of fns)
|
|
752
|
+
f(err);
|
|
753
|
+
} catch (e) {
|
|
754
|
+
handleError(e, owner && owner.owner || null);
|
|
755
|
+
}
|
|
738
756
|
}
|
|
739
|
-
function handleError(err) {
|
|
740
|
-
|
|
741
|
-
const
|
|
757
|
+
function handleError(err, owner = Owner) {
|
|
758
|
+
const fns = ERROR && lookup(owner, ERROR);
|
|
759
|
+
const error = castError(err);
|
|
742
760
|
if (!fns)
|
|
743
|
-
throw
|
|
761
|
+
throw error;
|
|
744
762
|
if (Effects)
|
|
745
763
|
Effects.push({
|
|
746
764
|
fn() {
|
|
747
|
-
runErrors(fns,
|
|
765
|
+
runErrors(error, fns, owner);
|
|
748
766
|
},
|
|
749
767
|
state: STALE
|
|
750
768
|
});
|
|
751
769
|
else
|
|
752
|
-
runErrors(fns,
|
|
770
|
+
runErrors(error, fns, owner);
|
|
753
771
|
}
|
|
754
772
|
function lookup(owner, key) {
|
|
755
773
|
return owner ? owner.context && owner.context[key] !== void 0 ? owner.context[key] : lookup(owner.owner, key) : void 0;
|
|
@@ -946,6 +964,13 @@ function trueFn() {
|
|
|
946
964
|
function resolveSource(s) {
|
|
947
965
|
return !(s = typeof s === "function" ? s() : s) ? {} : s;
|
|
948
966
|
}
|
|
967
|
+
function resolveSources() {
|
|
968
|
+
for (let i = 0, length2 = this.length; i < length2; ++i) {
|
|
969
|
+
const v = this[i]();
|
|
970
|
+
if (v !== void 0)
|
|
971
|
+
return v;
|
|
972
|
+
}
|
|
973
|
+
}
|
|
949
974
|
function mergeProps(...sources) {
|
|
950
975
|
let proxy = false;
|
|
951
976
|
for (let i = 0; i < sources.length; i++) {
|
|
@@ -978,22 +1003,41 @@ function mergeProps(...sources) {
|
|
|
978
1003
|
}, propTraps);
|
|
979
1004
|
}
|
|
980
1005
|
const target = {};
|
|
1006
|
+
const sourcesMap = {};
|
|
1007
|
+
const defined = /* @__PURE__ */ new Set();
|
|
981
1008
|
for (let i = sources.length - 1; i >= 0; i--) {
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
1009
|
+
const source = sources[i];
|
|
1010
|
+
if (!source)
|
|
1011
|
+
continue;
|
|
1012
|
+
const sourceKeys = Object.getOwnPropertyNames(source);
|
|
1013
|
+
for (let i2 = 0, length2 = sourceKeys.length; i2 < length2; i2++) {
|
|
1014
|
+
const key = sourceKeys[i2];
|
|
1015
|
+
if (key === "__proto__" || key === "constructor")
|
|
1016
|
+
continue;
|
|
1017
|
+
const desc = Object.getOwnPropertyDescriptor(source, key);
|
|
1018
|
+
if (!defined.has(key)) {
|
|
1019
|
+
if (desc.get) {
|
|
1020
|
+
defined.add(key);
|
|
1021
|
+
Object.defineProperty(target, key, {
|
|
1022
|
+
enumerable: true,
|
|
1023
|
+
configurable: true,
|
|
1024
|
+
get: resolveSources.bind(sourcesMap[key] = [desc.get.bind(source)])
|
|
1025
|
+
});
|
|
1026
|
+
} else {
|
|
1027
|
+
if (desc.value !== void 0)
|
|
1028
|
+
defined.add(key);
|
|
1029
|
+
target[key] = desc.value;
|
|
1030
|
+
}
|
|
1031
|
+
} else {
|
|
1032
|
+
const sources2 = sourcesMap[key];
|
|
1033
|
+
if (sources2) {
|
|
1034
|
+
if (desc.get) {
|
|
1035
|
+
sources2.push(desc.get.bind(source));
|
|
1036
|
+
} else if (desc.value !== void 0) {
|
|
1037
|
+
sources2.push(() => desc.value);
|
|
995
1038
|
}
|
|
996
|
-
})
|
|
1039
|
+
} else if (target[key] === void 0)
|
|
1040
|
+
target[key] = desc.value;
|
|
997
1041
|
}
|
|
998
1042
|
}
|
|
999
1043
|
}
|
|
@@ -1006,8 +1050,11 @@ function lazy(fn) {
|
|
|
1006
1050
|
const ctx = sharedConfig.context;
|
|
1007
1051
|
if (ctx) {
|
|
1008
1052
|
const [s, set] = createSignal();
|
|
1053
|
+
sharedConfig.count || (sharedConfig.count = 0);
|
|
1054
|
+
sharedConfig.count++;
|
|
1009
1055
|
(p || (p = fn())).then((mod) => {
|
|
1010
1056
|
setHydrateContext(ctx);
|
|
1057
|
+
sharedConfig.count--;
|
|
1011
1058
|
set(() => mod.default);
|
|
1012
1059
|
setHydrateContext();
|
|
1013
1060
|
});
|
|
@@ -1045,26 +1092,27 @@ function Index(props) {
|
|
|
1045
1092
|
return createMemo(indexArray(() => props.each, props.children, fallback || void 0));
|
|
1046
1093
|
}
|
|
1047
1094
|
function Show(props) {
|
|
1048
|
-
let strictEqual = false;
|
|
1049
1095
|
const keyed = props.keyed;
|
|
1050
1096
|
const condition = createMemo(() => props.when, void 0, {
|
|
1051
|
-
equals: (a, b) =>
|
|
1097
|
+
equals: (a, b) => keyed ? a === b : !a === !b
|
|
1052
1098
|
});
|
|
1053
1099
|
return createMemo(() => {
|
|
1054
1100
|
const c = condition();
|
|
1055
1101
|
if (c) {
|
|
1056
1102
|
const child = props.children;
|
|
1057
1103
|
const fn = typeof child === "function" && child.length > 0;
|
|
1058
|
-
|
|
1059
|
-
|
|
1104
|
+
return fn ? untrack(() => child(keyed ? c : () => {
|
|
1105
|
+
if (!untrack(condition))
|
|
1106
|
+
throw narrowedError("Show");
|
|
1107
|
+
return props.when;
|
|
1108
|
+
})) : child;
|
|
1060
1109
|
}
|
|
1061
1110
|
return props.fallback;
|
|
1062
1111
|
}, void 0, void 0);
|
|
1063
1112
|
}
|
|
1064
1113
|
function Switch(props) {
|
|
1065
|
-
let strictEqual = false;
|
|
1066
1114
|
let keyed = false;
|
|
1067
|
-
const equals = (a, b) => a[0] === b[0] && (
|
|
1115
|
+
const equals = (a, b) => a[0] === b[0] && (keyed ? a[1] === b[1] : !a[1] === !b[1]) && a[2] === b[2];
|
|
1068
1116
|
const conditions = children(() => props.children), evalConditions = createMemo(() => {
|
|
1069
1117
|
let conds = conditions();
|
|
1070
1118
|
if (!Array.isArray(conds))
|
|
@@ -1086,17 +1134,23 @@ function Switch(props) {
|
|
|
1086
1134
|
return props.fallback;
|
|
1087
1135
|
const c = cond.children;
|
|
1088
1136
|
const fn = typeof c === "function" && c.length > 0;
|
|
1089
|
-
|
|
1090
|
-
|
|
1137
|
+
return fn ? untrack(() => c(keyed ? when : () => {
|
|
1138
|
+
if (untrack(evalConditions)[0] !== index)
|
|
1139
|
+
throw narrowedError("Match");
|
|
1140
|
+
return cond.when;
|
|
1141
|
+
})) : c;
|
|
1091
1142
|
}, void 0, void 0);
|
|
1092
1143
|
}
|
|
1093
1144
|
function Match(props) {
|
|
1094
1145
|
return props;
|
|
1095
1146
|
}
|
|
1096
|
-
var sharedConfig, equalFn, $PROXY, $TRACK, signalOptions, ERROR, runEffects, STALE, PENDING, UNOWNED, NO_INIT, Owner, Transition, Scheduler, ExternalSourceFactory, Listener, Updates, Effects, ExecCount, transPending, setTransPending, SuspenseContext, FALLBACK, hydrationEnabled, propTraps;
|
|
1147
|
+
var sharedConfig, equalFn, $PROXY, $TRACK, signalOptions, ERROR, runEffects, STALE, PENDING, UNOWNED, NO_INIT, Owner, Transition, Scheduler, ExternalSourceFactory, Listener, Updates, Effects, ExecCount, transPending, setTransPending, SuspenseContext, FALLBACK, hydrationEnabled, propTraps, narrowedError;
|
|
1097
1148
|
var init_solid = __esm({
|
|
1098
|
-
"../../node_modules/.pnpm/solid-js@1.
|
|
1099
|
-
sharedConfig = {
|
|
1149
|
+
"../../node_modules/.pnpm/solid-js@1.7.8/node_modules/solid-js/dist/solid.js"() {
|
|
1150
|
+
sharedConfig = {
|
|
1151
|
+
context: void 0,
|
|
1152
|
+
registry: void 0
|
|
1153
|
+
};
|
|
1100
1154
|
equalFn = (a, b) => a === b;
|
|
1101
1155
|
$PROXY = Symbol("solid-proxy");
|
|
1102
1156
|
$TRACK = Symbol("solid-track");
|
|
@@ -1153,10 +1207,15 @@ var init_solid = __esm({
|
|
|
1153
1207
|
return _.keys();
|
|
1154
1208
|
}
|
|
1155
1209
|
};
|
|
1210
|
+
narrowedError = (name) => `Stale read from <${name}>.`;
|
|
1156
1211
|
}
|
|
1157
1212
|
});
|
|
1158
1213
|
|
|
1159
|
-
// ../../node_modules/.pnpm/solid-js@1.
|
|
1214
|
+
// ../../node_modules/.pnpm/solid-js@1.7.8/node_modules/solid-js/web/dist/web.js
|
|
1215
|
+
function getPropAlias(prop, tagName) {
|
|
1216
|
+
const a = PropAliases[prop];
|
|
1217
|
+
return typeof a === "object" ? a[tagName] ? a["$"] : void 0 : a;
|
|
1218
|
+
}
|
|
1160
1219
|
function reconcileArrays(parentNode, a, b) {
|
|
1161
1220
|
let bLength = b.length, aEnd = a.length, bEnd = bLength, aStart = 0, bStart = 0, after = a[aEnd - 1].nextSibling, map = null;
|
|
1162
1221
|
while (aStart < aEnd || bStart < bEnd) {
|
|
@@ -1224,18 +1283,16 @@ function render(code, element, init, options = {}) {
|
|
|
1224
1283
|
element.textContent = "";
|
|
1225
1284
|
};
|
|
1226
1285
|
}
|
|
1227
|
-
function template(html,
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
node2 = node2.firstChild;
|
|
1238
|
-
return node2;
|
|
1286
|
+
function template(html, isCE, isSVG) {
|
|
1287
|
+
let node2;
|
|
1288
|
+
const create = () => {
|
|
1289
|
+
const t = document.createElement("template");
|
|
1290
|
+
t.innerHTML = html;
|
|
1291
|
+
return isSVG ? t.content.firstChild.firstChild : t.content.firstChild;
|
|
1292
|
+
};
|
|
1293
|
+
const fn = isCE ? () => untrack(() => document.importNode(node2 || (node2 = create()), true)) : () => (node2 || (node2 = create())).cloneNode(true);
|
|
1294
|
+
fn.cloneNode = fn;
|
|
1295
|
+
return fn;
|
|
1239
1296
|
}
|
|
1240
1297
|
function delegateEvents(eventNames, document2 = window.document) {
|
|
1241
1298
|
const e = document2[$$EVENTS] || (document2[$$EVENTS] = /* @__PURE__ */ new Set());
|
|
@@ -1367,7 +1424,7 @@ function toggleClassKey(node2, key, value) {
|
|
|
1367
1424
|
node2.classList.toggle(classNames[i], value);
|
|
1368
1425
|
}
|
|
1369
1426
|
function assignProp(node2, prop, value, prev2, isSVG, skipRef) {
|
|
1370
|
-
let isCE, isProp, isChildProp;
|
|
1427
|
+
let isCE, isProp, isChildProp, propAlias, forceProp;
|
|
1371
1428
|
if (prop === "style")
|
|
1372
1429
|
return style(node2, value, prev2);
|
|
1373
1430
|
if (prop === "classList")
|
|
@@ -1396,13 +1453,19 @@ function assignProp(node2, prop, value, prev2, isSVG, skipRef) {
|
|
|
1396
1453
|
addEventListener(node2, name, value, delegate);
|
|
1397
1454
|
delegate && delegateEvents([name]);
|
|
1398
1455
|
}
|
|
1399
|
-
} else if (
|
|
1456
|
+
} else if (prop.slice(0, 5) === "attr:") {
|
|
1457
|
+
setAttribute(node2, prop.slice(5), value);
|
|
1458
|
+
} else if ((forceProp = prop.slice(0, 5) === "prop:") || (isChildProp = ChildProperties.has(prop)) || !isSVG && ((propAlias = getPropAlias(prop, node2.tagName)) || (isProp = Properties.has(prop))) || (isCE = node2.nodeName.includes("-"))) {
|
|
1459
|
+
if (forceProp) {
|
|
1460
|
+
prop = prop.slice(5);
|
|
1461
|
+
isProp = true;
|
|
1462
|
+
}
|
|
1400
1463
|
if (prop === "class" || prop === "className")
|
|
1401
1464
|
className(node2, value);
|
|
1402
1465
|
else if (isCE && !isProp && !isChildProp)
|
|
1403
1466
|
node2[toPropertyName(prop)] = value;
|
|
1404
1467
|
else
|
|
1405
|
-
node2[
|
|
1468
|
+
node2[propAlias || prop] = value;
|
|
1406
1469
|
} else {
|
|
1407
1470
|
const ns = isSVG && prop.indexOf(":") > -1 && SVGNamespace[prop.split(":")[0]];
|
|
1408
1471
|
if (ns)
|
|
@@ -1427,17 +1490,8 @@ function eventHandler(e) {
|
|
|
1427
1490
|
return node2 || document;
|
|
1428
1491
|
}
|
|
1429
1492
|
});
|
|
1430
|
-
if (sharedConfig.registry && !sharedConfig.done)
|
|
1431
|
-
sharedConfig.done = true;
|
|
1432
|
-
document.querySelectorAll("[id^=pl-]").forEach((elem) => {
|
|
1433
|
-
while (elem && elem.nodeType !== 8 && elem.nodeValue !== "pl-" + e) {
|
|
1434
|
-
let x = elem.nextSibling;
|
|
1435
|
-
elem.remove();
|
|
1436
|
-
elem = x;
|
|
1437
|
-
}
|
|
1438
|
-
elem && elem.remove();
|
|
1439
|
-
});
|
|
1440
|
-
}
|
|
1493
|
+
if (sharedConfig.registry && !sharedConfig.done)
|
|
1494
|
+
sharedConfig.done = _$HY.done = true;
|
|
1441
1495
|
while (node2) {
|
|
1442
1496
|
const handler = node2[key];
|
|
1443
1497
|
if (handler && !node2.disabled) {
|
|
@@ -1450,8 +1504,18 @@ function eventHandler(e) {
|
|
|
1450
1504
|
}
|
|
1451
1505
|
}
|
|
1452
1506
|
function insertExpression(parent, value, current, marker, unwrapArray) {
|
|
1453
|
-
if (sharedConfig.context
|
|
1454
|
-
current = [...parent.childNodes];
|
|
1507
|
+
if (sharedConfig.context) {
|
|
1508
|
+
!current && (current = [...parent.childNodes]);
|
|
1509
|
+
let cleaned = [];
|
|
1510
|
+
for (let i = 0; i < current.length; i++) {
|
|
1511
|
+
const node2 = current[i];
|
|
1512
|
+
if (node2.nodeType === 8 && node2.data.slice(0, 2) === "!$")
|
|
1513
|
+
node2.remove();
|
|
1514
|
+
else
|
|
1515
|
+
cleaned.push(node2);
|
|
1516
|
+
}
|
|
1517
|
+
current = cleaned;
|
|
1518
|
+
}
|
|
1455
1519
|
while (typeof current === "function")
|
|
1456
1520
|
current = current();
|
|
1457
1521
|
if (value === current)
|
|
@@ -1517,7 +1581,7 @@ function insertExpression(parent, value, current, marker, unwrapArray) {
|
|
|
1517
1581
|
appendNodes(parent, array);
|
|
1518
1582
|
}
|
|
1519
1583
|
current = array;
|
|
1520
|
-
} else if (value
|
|
1584
|
+
} else if (value.nodeType) {
|
|
1521
1585
|
if (sharedConfig.context && value.parentNode)
|
|
1522
1586
|
return current = multi ? [value] : value;
|
|
1523
1587
|
if (Array.isArray(current)) {
|
|
@@ -1536,14 +1600,14 @@ function insertExpression(parent, value, current, marker, unwrapArray) {
|
|
|
1536
1600
|
function normalizeIncomingArray(normalized, array, current, unwrap) {
|
|
1537
1601
|
let dynamic = false;
|
|
1538
1602
|
for (let i = 0, len = array.length; i < len; i++) {
|
|
1539
|
-
let item = array[i], prev2 = current && current[i];
|
|
1540
|
-
if (item
|
|
1541
|
-
normalized.push(item);
|
|
1542
|
-
} else if (item == null || item === true || item === false)
|
|
1603
|
+
let item = array[i], prev2 = current && current[i], t;
|
|
1604
|
+
if (item == null || item === true || item === false)
|
|
1543
1605
|
;
|
|
1544
|
-
else if (
|
|
1606
|
+
else if ((t = typeof item) === "object" && item.nodeType) {
|
|
1607
|
+
normalized.push(item);
|
|
1608
|
+
} else if (Array.isArray(item)) {
|
|
1545
1609
|
dynamic = normalizeIncomingArray(normalized, item, prev2) || dynamic;
|
|
1546
|
-
} else if (
|
|
1610
|
+
} else if (t === "function") {
|
|
1547
1611
|
if (unwrap) {
|
|
1548
1612
|
while (typeof item === "function")
|
|
1549
1613
|
item = item();
|
|
@@ -1554,13 +1618,9 @@ function normalizeIncomingArray(normalized, array, current, unwrap) {
|
|
|
1554
1618
|
}
|
|
1555
1619
|
} else {
|
|
1556
1620
|
const value = String(item);
|
|
1557
|
-
if (
|
|
1558
|
-
if (prev2 && prev2.nodeType === 8)
|
|
1559
|
-
normalized.push(prev2);
|
|
1560
|
-
} else if (prev2 && prev2.nodeType === 3) {
|
|
1561
|
-
prev2.data = value;
|
|
1621
|
+
if (prev2 && prev2.nodeType === 3 && prev2.data === value)
|
|
1562
1622
|
normalized.push(prev2);
|
|
1563
|
-
|
|
1623
|
+
else
|
|
1564
1624
|
normalized.push(document.createTextNode(value));
|
|
1565
1625
|
}
|
|
1566
1626
|
}
|
|
@@ -1593,7 +1653,7 @@ function cleanChildren(parent, current, marker, replacement) {
|
|
|
1593
1653
|
}
|
|
1594
1654
|
var booleans, Properties, ChildProperties, Aliases, PropAliases, DelegatedEvents, SVGNamespace, $$EVENTS, isServer;
|
|
1595
1655
|
var init_web = __esm({
|
|
1596
|
-
"../../node_modules/.pnpm/solid-js@1.
|
|
1656
|
+
"../../node_modules/.pnpm/solid-js@1.7.8/node_modules/solid-js/web/dist/web.js"() {
|
|
1597
1657
|
init_solid();
|
|
1598
1658
|
init_solid();
|
|
1599
1659
|
booleans = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden", "indeterminate", "ismap", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless", "selected"];
|
|
@@ -1605,11 +1665,28 @@ var init_web = __esm({
|
|
|
1605
1665
|
});
|
|
1606
1666
|
PropAliases = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
1607
1667
|
class: "className",
|
|
1608
|
-
formnovalidate:
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1668
|
+
formnovalidate: {
|
|
1669
|
+
$: "formNoValidate",
|
|
1670
|
+
BUTTON: 1,
|
|
1671
|
+
INPUT: 1
|
|
1672
|
+
},
|
|
1673
|
+
ismap: {
|
|
1674
|
+
$: "isMap",
|
|
1675
|
+
IMG: 1
|
|
1676
|
+
},
|
|
1677
|
+
nomodule: {
|
|
1678
|
+
$: "noModule",
|
|
1679
|
+
SCRIPT: 1
|
|
1680
|
+
},
|
|
1681
|
+
playsinline: {
|
|
1682
|
+
$: "playsInline",
|
|
1683
|
+
VIDEO: 1
|
|
1684
|
+
},
|
|
1685
|
+
readonly: {
|
|
1686
|
+
$: "readOnly",
|
|
1687
|
+
INPUT: 1,
|
|
1688
|
+
TEXTAREA: 1
|
|
1689
|
+
}
|
|
1613
1690
|
});
|
|
1614
1691
|
DelegatedEvents = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "contextmenu", "focusin", "focusout", "input", "keydown", "keyup", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "pointerdown", "pointermove", "pointerout", "pointerover", "pointerup", "touchend", "touchmove", "touchstart"]);
|
|
1615
1692
|
SVGNamespace = {
|
|
@@ -3676,7 +3753,7 @@ var init_emotion_css_esm = __esm({
|
|
|
3676
3753
|
}
|
|
3677
3754
|
});
|
|
3678
3755
|
|
|
3679
|
-
// ../../node_modules/.pnpm/@solid-primitives+transition-group@1.0.2_solid-js@1.
|
|
3756
|
+
// ../../node_modules/.pnpm/@solid-primitives+transition-group@1.0.2_solid-js@1.7.8/node_modules/@solid-primitives/transition-group/dist/index.js
|
|
3680
3757
|
function createListTransition(source, options) {
|
|
3681
3758
|
const initSource = untrack(source);
|
|
3682
3759
|
if (isServer) {
|
|
@@ -3743,7 +3820,7 @@ function createListTransition(source, options) {
|
|
|
3743
3820
|
}
|
|
3744
3821
|
var noop;
|
|
3745
3822
|
var init_dist = __esm({
|
|
3746
|
-
"../../node_modules/.pnpm/@solid-primitives+transition-group@1.0.2_solid-js@1.
|
|
3823
|
+
"../../node_modules/.pnpm/@solid-primitives+transition-group@1.0.2_solid-js@1.7.8/node_modules/@solid-primitives/transition-group/dist/index.js"() {
|
|
3747
3824
|
init_solid();
|
|
3748
3825
|
init_web();
|
|
3749
3826
|
noop = () => {
|
|
@@ -3751,7 +3828,7 @@ var init_dist = __esm({
|
|
|
3751
3828
|
}
|
|
3752
3829
|
});
|
|
3753
3830
|
|
|
3754
|
-
// ../../node_modules/.pnpm/@solid-primitives+utils@6.2.0_solid-js@1.
|
|
3831
|
+
// ../../node_modules/.pnpm/@solid-primitives+utils@6.2.0_solid-js@1.7.8/node_modules/@solid-primitives/utils/dist/chunk/APG4HSEJ.js
|
|
3755
3832
|
function handleDiffArray(current, prev2, handleAdded, handleRemoved) {
|
|
3756
3833
|
const currLength = current.length;
|
|
3757
3834
|
const prevLength = prev2.length;
|
|
@@ -3785,7 +3862,7 @@ function handleDiffArray(current, prev2, handleAdded, handleRemoved) {
|
|
|
3785
3862
|
}
|
|
3786
3863
|
var noop2, isNonNullable, filterNonNullable, access, asArray;
|
|
3787
3864
|
var init_APG4HSEJ = __esm({
|
|
3788
|
-
"../../node_modules/.pnpm/@solid-primitives+utils@6.2.0_solid-js@1.
|
|
3865
|
+
"../../node_modules/.pnpm/@solid-primitives+utils@6.2.0_solid-js@1.7.8/node_modules/@solid-primitives/utils/dist/chunk/APG4HSEJ.js"() {
|
|
3789
3866
|
noop2 = () => void 0;
|
|
3790
3867
|
isNonNullable = (i) => i != null;
|
|
3791
3868
|
filterNonNullable = (arr) => arr.filter(isNonNullable);
|
|
@@ -3794,14 +3871,14 @@ var init_APG4HSEJ = __esm({
|
|
|
3794
3871
|
}
|
|
3795
3872
|
});
|
|
3796
3873
|
|
|
3797
|
-
// ../../node_modules/.pnpm/@solid-primitives+utils@6.2.0_solid-js@1.
|
|
3874
|
+
// ../../node_modules/.pnpm/@solid-primitives+utils@6.2.0_solid-js@1.7.8/node_modules/@solid-primitives/utils/dist/index/index.js
|
|
3798
3875
|
var init_index = __esm({
|
|
3799
|
-
"../../node_modules/.pnpm/@solid-primitives+utils@6.2.0_solid-js@1.
|
|
3876
|
+
"../../node_modules/.pnpm/@solid-primitives+utils@6.2.0_solid-js@1.7.8/node_modules/@solid-primitives/utils/dist/index/index.js"() {
|
|
3800
3877
|
init_APG4HSEJ();
|
|
3801
3878
|
}
|
|
3802
3879
|
});
|
|
3803
3880
|
|
|
3804
|
-
// ../../node_modules/.pnpm/@solid-primitives+refs@1.0.4_solid-js@1.
|
|
3881
|
+
// ../../node_modules/.pnpm/@solid-primitives+refs@1.0.4_solid-js@1.7.8/node_modules/@solid-primitives/refs/dist/index.js
|
|
3805
3882
|
function getResolvedElements(value, predicate) {
|
|
3806
3883
|
if (predicate(value))
|
|
3807
3884
|
return value;
|
|
@@ -3831,14 +3908,14 @@ function resolveElements(fn, predicate = defaultElementPredicate, serverPredicat
|
|
|
3831
3908
|
}
|
|
3832
3909
|
var defaultElementPredicate;
|
|
3833
3910
|
var init_dist2 = __esm({
|
|
3834
|
-
"../../node_modules/.pnpm/@solid-primitives+refs@1.0.4_solid-js@1.
|
|
3911
|
+
"../../node_modules/.pnpm/@solid-primitives+refs@1.0.4_solid-js@1.7.8/node_modules/@solid-primitives/refs/dist/index.js"() {
|
|
3835
3912
|
init_solid();
|
|
3836
3913
|
init_web();
|
|
3837
3914
|
defaultElementPredicate = isServer ? (item) => item != null && typeof item === "object" && "t" in item : (item) => item instanceof Element;
|
|
3838
3915
|
}
|
|
3839
3916
|
});
|
|
3840
3917
|
|
|
3841
|
-
// ../../node_modules/.pnpm/solid-transition-group@0.2.2_solid-js@1.
|
|
3918
|
+
// ../../node_modules/.pnpm/solid-transition-group@0.2.2_solid-js@1.7.8/node_modules/solid-transition-group/dist/index.js
|
|
3842
3919
|
function createClassnames(props) {
|
|
3843
3920
|
return createMemo(() => {
|
|
3844
3921
|
const name = props.name || "s";
|
|
@@ -3914,7 +3991,7 @@ function exitTransition(classnames3, events, el, done) {
|
|
|
3914
3991
|
}
|
|
3915
3992
|
var TransitionGroup;
|
|
3916
3993
|
var init_dist3 = __esm({
|
|
3917
|
-
"../../node_modules/.pnpm/solid-transition-group@0.2.2_solid-js@1.
|
|
3994
|
+
"../../node_modules/.pnpm/solid-transition-group@0.2.2_solid-js@1.7.8/node_modules/solid-transition-group/dist/index.js"() {
|
|
3918
3995
|
init_solid();
|
|
3919
3996
|
init_dist();
|
|
3920
3997
|
init_dist2();
|
|
@@ -3968,7 +4045,7 @@ var init_dist3 = __esm({
|
|
|
3968
4045
|
}
|
|
3969
4046
|
});
|
|
3970
4047
|
|
|
3971
|
-
// ../../node_modules/.pnpm/@solid-primitives+keyed@1.2.0_solid-js@1.
|
|
4048
|
+
// ../../node_modules/.pnpm/@solid-primitives+keyed@1.2.0_solid-js@1.7.8/node_modules/@solid-primitives/keyed/dist/index.js
|
|
3972
4049
|
function dispose2(list) {
|
|
3973
4050
|
for (const o of list)
|
|
3974
4051
|
o.dispose();
|
|
@@ -4066,14 +4143,14 @@ function Key(props) {
|
|
|
4066
4143
|
}
|
|
4067
4144
|
var FALLBACK2;
|
|
4068
4145
|
var init_dist4 = __esm({
|
|
4069
|
-
"../../node_modules/.pnpm/@solid-primitives+keyed@1.2.0_solid-js@1.
|
|
4146
|
+
"../../node_modules/.pnpm/@solid-primitives+keyed@1.2.0_solid-js@1.7.8/node_modules/@solid-primitives/keyed/dist/index.js"() {
|
|
4070
4147
|
init_solid();
|
|
4071
4148
|
init_web();
|
|
4072
4149
|
FALLBACK2 = Symbol("fallback");
|
|
4073
4150
|
}
|
|
4074
4151
|
});
|
|
4075
4152
|
|
|
4076
|
-
// ../../node_modules/.pnpm/@solid-primitives+storage@1.3.11_solid-js@1.
|
|
4153
|
+
// ../../node_modules/.pnpm/@solid-primitives+storage@1.3.11_solid-js@1.7.8/node_modules/@solid-primitives/storage/dist/index.js
|
|
4077
4154
|
function createStorage(props) {
|
|
4078
4155
|
const [error, setError] = createSignal();
|
|
4079
4156
|
const handleError2 = props?.throw ? (err, fallback) => {
|
|
@@ -4218,7 +4295,7 @@ function createStorage(props) {
|
|
|
4218
4295
|
}
|
|
4219
4296
|
var createLocalStorage, addClearMethod, serializeCookieOptions, cookieStorage;
|
|
4220
4297
|
var init_dist5 = __esm({
|
|
4221
|
-
"../../node_modules/.pnpm/@solid-primitives+storage@1.3.11_solid-js@1.
|
|
4298
|
+
"../../node_modules/.pnpm/@solid-primitives+storage@1.3.11_solid-js@1.7.8/node_modules/@solid-primitives/storage/dist/index.js"() {
|
|
4222
4299
|
init_solid();
|
|
4223
4300
|
createLocalStorage = createStorage;
|
|
4224
4301
|
addClearMethod = (storage) => {
|
|
@@ -4298,7 +4375,7 @@ var init_dist5 = __esm({
|
|
|
4298
4375
|
}
|
|
4299
4376
|
});
|
|
4300
4377
|
|
|
4301
|
-
// ../../node_modules/.pnpm/@solid-primitives+resize-observer@2.0.18_solid-js@1.
|
|
4378
|
+
// ../../node_modules/.pnpm/@solid-primitives+resize-observer@2.0.18_solid-js@1.7.8/node_modules/@solid-primitives/resize-observer/dist/index.js
|
|
4302
4379
|
function makeResizeObserver(callback, options) {
|
|
4303
4380
|
if (isServer) {
|
|
4304
4381
|
return { observe: noop2, unobserve: noop2 };
|
|
@@ -4329,7 +4406,7 @@ function createResizeObserver(targets, onResize, options) {
|
|
|
4329
4406
|
}, []);
|
|
4330
4407
|
}
|
|
4331
4408
|
var init_dist6 = __esm({
|
|
4332
|
-
"../../node_modules/.pnpm/@solid-primitives+resize-observer@2.0.18_solid-js@1.
|
|
4409
|
+
"../../node_modules/.pnpm/@solid-primitives+resize-observer@2.0.18_solid-js@1.7.8/node_modules/@solid-primitives/resize-observer/dist/index.js"() {
|
|
4333
4410
|
init_index();
|
|
4334
4411
|
init_solid();
|
|
4335
4412
|
init_web();
|