@tanstack/router-devtools-core 1.133.22 → 1.133.25
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/{BaseTanStackRouterDevtoolsPanel-z0YMII09.cjs → BaseTanStackRouterDevtoolsPanel-CXtqf9z_.cjs} +17 -17
- package/dist/{BaseTanStackRouterDevtoolsPanel-z0YMII09.cjs.map → BaseTanStackRouterDevtoolsPanel-CXtqf9z_.cjs.map} +1 -1
- package/dist/{BaseTanStackRouterDevtoolsPanel-KIEU40vQ.js → BaseTanStackRouterDevtoolsPanel-DYX5cXun.js} +17 -17
- package/dist/{BaseTanStackRouterDevtoolsPanel-KIEU40vQ.js.map → BaseTanStackRouterDevtoolsPanel-DYX5cXun.js.map} +1 -1
- package/dist/{FloatingTanStackRouterDevtools-7aOMOekg.cjs → FloatingTanStackRouterDevtools-CR-IUwId.cjs} +3 -3
- package/dist/{FloatingTanStackRouterDevtools-7aOMOekg.cjs.map → FloatingTanStackRouterDevtools-CR-IUwId.cjs.map} +1 -1
- package/dist/{FloatingTanStackRouterDevtools-kcMbkHXI.js → FloatingTanStackRouterDevtools-DLsVEFsK.js} +3 -3
- package/dist/{FloatingTanStackRouterDevtools-kcMbkHXI.js.map → FloatingTanStackRouterDevtools-DLsVEFsK.js.map} +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/{index-CC1CXbDA.cjs → index-T2C4hF4E.cjs} +234 -203
- package/dist/index-T2C4hF4E.cjs.map +1 -0
- package/dist/{index-DX7UIGS3.js → index-znsFa8JN.js} +241 -210
- package/dist/index-znsFa8JN.js.map +1 -0
- package/package.json +3 -3
- package/dist/index-CC1CXbDA.cjs.map +0 -1
- package/dist/index-DX7UIGS3.js.map +0 -1
|
@@ -123,12 +123,9 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
123
123
|
if (pr === p) {
|
|
124
124
|
pr = null;
|
|
125
125
|
key !== void 0 && (resolved = true);
|
|
126
|
-
if ((p === initP || v === initP) && options.onHydrated)
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
value: v
|
|
130
|
-
})
|
|
131
|
-
);
|
|
126
|
+
if ((p === initP || v === initP) && options.onHydrated) queueMicrotask(() => options.onHydrated(key, {
|
|
127
|
+
value: v
|
|
128
|
+
}));
|
|
132
129
|
initP = NO_INIT;
|
|
133
130
|
completeLoad(v, error2);
|
|
134
131
|
}
|
|
@@ -157,20 +154,28 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
157
154
|
loadEnd(pr, untrack(value));
|
|
158
155
|
return;
|
|
159
156
|
}
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
157
|
+
let error2;
|
|
158
|
+
const p = initP !== NO_INIT ? initP : untrack(() => {
|
|
159
|
+
try {
|
|
160
|
+
return fetcher(lookup, {
|
|
161
|
+
value: value(),
|
|
162
|
+
refetching
|
|
163
|
+
});
|
|
164
|
+
} catch (fetcherError) {
|
|
165
|
+
error2 = fetcherError;
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
if (error2 !== void 0) {
|
|
169
|
+
loadEnd(pr, void 0, castError(error2), lookup);
|
|
170
|
+
return;
|
|
171
|
+
} else if (!isPromise(p)) {
|
|
167
172
|
loadEnd(pr, p, void 0, lookup);
|
|
168
173
|
return p;
|
|
169
174
|
}
|
|
170
175
|
pr = p;
|
|
171
|
-
if ("
|
|
172
|
-
if (p.
|
|
173
|
-
else loadEnd(pr, void 0, castError(p.
|
|
176
|
+
if ("v" in p) {
|
|
177
|
+
if (p.s === 1) loadEnd(pr, p.v, void 0, lookup);
|
|
178
|
+
else loadEnd(pr, void 0, castError(p.v), lookup);
|
|
174
179
|
return p;
|
|
175
180
|
}
|
|
176
181
|
scheduled = true;
|
|
@@ -179,10 +184,7 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
179
184
|
setState(resolved ? "refreshing" : "pending");
|
|
180
185
|
trigger();
|
|
181
186
|
}, false);
|
|
182
|
-
return p.then(
|
|
183
|
-
(v) => loadEnd(p, v, void 0, lookup),
|
|
184
|
-
(e) => loadEnd(p, void 0, castError(e), lookup)
|
|
185
|
-
);
|
|
187
|
+
return p.then((v) => loadEnd(p, v, void 0, lookup), (e) => loadEnd(p, void 0, castError(e), lookup));
|
|
186
188
|
}
|
|
187
189
|
Object.defineProperties(read, {
|
|
188
190
|
state: {
|
|
@@ -206,15 +208,13 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
206
208
|
}
|
|
207
209
|
}
|
|
208
210
|
});
|
|
209
|
-
|
|
211
|
+
let owner = Owner;
|
|
212
|
+
if (dynamic) createComputed(() => (owner = Owner, load(false)));
|
|
210
213
|
else load(false);
|
|
211
|
-
return [
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
mutate: setValue
|
|
216
|
-
}
|
|
217
|
-
];
|
|
214
|
+
return [read, {
|
|
215
|
+
refetch: (info) => runWithOwner(owner, () => load(info)),
|
|
216
|
+
mutate: setValue
|
|
217
|
+
}];
|
|
218
218
|
}
|
|
219
219
|
function untrack(fn) {
|
|
220
220
|
if (Listener === null) return fn();
|
|
@@ -233,6 +233,20 @@ function onCleanup(fn) {
|
|
|
233
233
|
else Owner.cleanups.push(fn);
|
|
234
234
|
return fn;
|
|
235
235
|
}
|
|
236
|
+
function runWithOwner(o, fn) {
|
|
237
|
+
const prev = Owner;
|
|
238
|
+
const prevListener = Listener;
|
|
239
|
+
Owner = o;
|
|
240
|
+
Listener = null;
|
|
241
|
+
try {
|
|
242
|
+
return runUpdates(fn, true);
|
|
243
|
+
} catch (err) {
|
|
244
|
+
handleError(err);
|
|
245
|
+
} finally {
|
|
246
|
+
Owner = prev;
|
|
247
|
+
Listener = prevListener;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
236
250
|
const [transPending, setTransPending] = /* @__PURE__ */ createSignal(false);
|
|
237
251
|
function createContext(defaultValue, options) {
|
|
238
252
|
const id = Symbol("context");
|
|
@@ -248,12 +262,12 @@ function useContext(context) {
|
|
|
248
262
|
}
|
|
249
263
|
function children(fn) {
|
|
250
264
|
const children2 = createMemo(fn);
|
|
251
|
-
const
|
|
252
|
-
|
|
253
|
-
const c =
|
|
265
|
+
const memo2 = createMemo(() => resolveChildren(children2()));
|
|
266
|
+
memo2.toArray = () => {
|
|
267
|
+
const c = memo2();
|
|
254
268
|
return Array.isArray(c) ? c : c != null ? [c] : [];
|
|
255
269
|
};
|
|
256
|
-
return
|
|
270
|
+
return memo2;
|
|
257
271
|
}
|
|
258
272
|
let SuspenseContext;
|
|
259
273
|
function readSignal() {
|
|
@@ -316,11 +330,7 @@ function updateComputation(node) {
|
|
|
316
330
|
if (!node.fn) return;
|
|
317
331
|
cleanNode(node);
|
|
318
332
|
const time = ExecCount;
|
|
319
|
-
runComputation(
|
|
320
|
-
node,
|
|
321
|
-
node.value,
|
|
322
|
-
time
|
|
323
|
-
);
|
|
333
|
+
runComputation(node, node.value, time);
|
|
324
334
|
}
|
|
325
335
|
function runComputation(node, value, time) {
|
|
326
336
|
let nextValue;
|
|
@@ -451,8 +461,7 @@ function lookUpstream(node, ignore) {
|
|
|
451
461
|
if (source.sources) {
|
|
452
462
|
const state = source.state;
|
|
453
463
|
if (state === STALE) {
|
|
454
|
-
if (source !== ignore && (!source.updatedAt || source.updatedAt < ExecCount))
|
|
455
|
-
runTop(source);
|
|
464
|
+
if (source !== ignore && (!source.updatedAt || source.updatedAt < ExecCount)) runTop(source);
|
|
456
465
|
} else if (state === PENDING) lookUpstream(source, ignore);
|
|
457
466
|
}
|
|
458
467
|
}
|
|
@@ -522,16 +531,13 @@ function resolveChildren(children2) {
|
|
|
522
531
|
function createProvider(id, options) {
|
|
523
532
|
return function provider(props) {
|
|
524
533
|
let res;
|
|
525
|
-
createRenderEffect(
|
|
526
|
-
|
|
527
|
-
Owner.context
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
}),
|
|
533
|
-
void 0
|
|
534
|
-
);
|
|
534
|
+
createRenderEffect(() => res = untrack(() => {
|
|
535
|
+
Owner.context = {
|
|
536
|
+
...Owner.context,
|
|
537
|
+
[id]: props.value
|
|
538
|
+
};
|
|
539
|
+
return children(() => props.children);
|
|
540
|
+
}), void 0);
|
|
535
541
|
return res;
|
|
536
542
|
};
|
|
537
543
|
}
|
|
@@ -675,29 +681,25 @@ function mergeProps(...sources) {
|
|
|
675
681
|
sources[i] = typeof s === "function" ? (proxy = true, createMemo(s)) : s;
|
|
676
682
|
}
|
|
677
683
|
if (SUPPORTS_PROXY && proxy) {
|
|
678
|
-
return new Proxy(
|
|
679
|
-
{
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
if (v !== void 0) return v;
|
|
684
|
-
}
|
|
685
|
-
},
|
|
686
|
-
has(property) {
|
|
687
|
-
for (let i = sources.length - 1; i >= 0; i--) {
|
|
688
|
-
if (property in resolveSource(sources[i])) return true;
|
|
689
|
-
}
|
|
690
|
-
return false;
|
|
691
|
-
},
|
|
692
|
-
keys() {
|
|
693
|
-
const keys = [];
|
|
694
|
-
for (let i = 0; i < sources.length; i++)
|
|
695
|
-
keys.push(...Object.keys(resolveSource(sources[i])));
|
|
696
|
-
return [...new Set(keys)];
|
|
684
|
+
return new Proxy({
|
|
685
|
+
get(property) {
|
|
686
|
+
for (let i = sources.length - 1; i >= 0; i--) {
|
|
687
|
+
const v = resolveSource(sources[i])[property];
|
|
688
|
+
if (v !== void 0) return v;
|
|
697
689
|
}
|
|
698
690
|
},
|
|
699
|
-
|
|
700
|
-
|
|
691
|
+
has(property) {
|
|
692
|
+
for (let i = sources.length - 1; i >= 0; i--) {
|
|
693
|
+
if (property in resolveSource(sources[i])) return true;
|
|
694
|
+
}
|
|
695
|
+
return false;
|
|
696
|
+
},
|
|
697
|
+
keys() {
|
|
698
|
+
const keys = [];
|
|
699
|
+
for (let i = 0; i < sources.length; i++) keys.push(...Object.keys(resolveSource(sources[i])));
|
|
700
|
+
return [...new Set(keys)];
|
|
701
|
+
}
|
|
702
|
+
}, propTraps);
|
|
701
703
|
}
|
|
702
704
|
const sourcesMap = {};
|
|
703
705
|
const defined = /* @__PURE__ */ Object.create(null);
|
|
@@ -737,37 +739,29 @@ function splitProps(props, ...keys) {
|
|
|
737
739
|
if (SUPPORTS_PROXY && $PROXY in props) {
|
|
738
740
|
const blocked = new Set(keys.length > 1 ? keys.flat() : keys[0]);
|
|
739
741
|
const res = keys.map((k) => {
|
|
740
|
-
return new Proxy(
|
|
741
|
-
{
|
|
742
|
-
|
|
743
|
-
return k.includes(property) ? props[property] : void 0;
|
|
744
|
-
},
|
|
745
|
-
has(property) {
|
|
746
|
-
return k.includes(property) && property in props;
|
|
747
|
-
},
|
|
748
|
-
keys() {
|
|
749
|
-
return k.filter((property) => property in props);
|
|
750
|
-
}
|
|
742
|
+
return new Proxy({
|
|
743
|
+
get(property) {
|
|
744
|
+
return k.includes(property) ? props[property] : void 0;
|
|
751
745
|
},
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
});
|
|
755
|
-
res.push(
|
|
756
|
-
new Proxy(
|
|
757
|
-
{
|
|
758
|
-
get(property) {
|
|
759
|
-
return blocked.has(property) ? void 0 : props[property];
|
|
760
|
-
},
|
|
761
|
-
has(property) {
|
|
762
|
-
return blocked.has(property) ? false : property in props;
|
|
763
|
-
},
|
|
764
|
-
keys() {
|
|
765
|
-
return Object.keys(props).filter((k) => !blocked.has(k));
|
|
766
|
-
}
|
|
746
|
+
has(property) {
|
|
747
|
+
return k.includes(property) && property in props;
|
|
767
748
|
},
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
749
|
+
keys() {
|
|
750
|
+
return k.filter((property) => property in props);
|
|
751
|
+
}
|
|
752
|
+
}, propTraps);
|
|
753
|
+
});
|
|
754
|
+
res.push(new Proxy({
|
|
755
|
+
get(property) {
|
|
756
|
+
return blocked.has(property) ? void 0 : props[property];
|
|
757
|
+
},
|
|
758
|
+
has(property) {
|
|
759
|
+
return blocked.has(property) ? false : property in props;
|
|
760
|
+
},
|
|
761
|
+
keys() {
|
|
762
|
+
return Object.keys(props).filter((k) => !blocked.has(k));
|
|
763
|
+
}
|
|
764
|
+
}, propTraps));
|
|
771
765
|
return res;
|
|
772
766
|
}
|
|
773
767
|
const otherObject = {};
|
|
@@ -811,17 +805,15 @@ function lazy(fn) {
|
|
|
811
805
|
comp = s;
|
|
812
806
|
}
|
|
813
807
|
let Comp;
|
|
814
|
-
return createMemo(
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
}) : ""
|
|
824
|
-
);
|
|
808
|
+
return createMemo(() => (Comp = comp()) ? untrack(() => {
|
|
809
|
+
if (IS_DEV) ;
|
|
810
|
+
if (!ctx || sharedConfig.done) return Comp(props);
|
|
811
|
+
const c = sharedConfig.context;
|
|
812
|
+
setHydrateContext(ctx);
|
|
813
|
+
const r = Comp(props);
|
|
814
|
+
setHydrateContext(c);
|
|
815
|
+
return r;
|
|
816
|
+
}) : "");
|
|
825
817
|
};
|
|
826
818
|
wrap.preload = () => p || ((p = fn()).then((mod) => comp = () => mod.default), p);
|
|
827
819
|
return wrap;
|
|
@@ -844,26 +836,18 @@ function Show(props) {
|
|
|
844
836
|
const condition = keyed ? conditionValue : createMemo(conditionValue, void 0, {
|
|
845
837
|
equals: (a, b) => !a === !b
|
|
846
838
|
});
|
|
847
|
-
return createMemo(
|
|
848
|
-
()
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
)
|
|
860
|
-
) : child;
|
|
861
|
-
}
|
|
862
|
-
return props.fallback;
|
|
863
|
-
},
|
|
864
|
-
void 0,
|
|
865
|
-
void 0
|
|
866
|
-
);
|
|
839
|
+
return createMemo(() => {
|
|
840
|
+
const c = condition();
|
|
841
|
+
if (c) {
|
|
842
|
+
const child = props.children;
|
|
843
|
+
const fn = typeof child === "function" && child.length > 0;
|
|
844
|
+
return fn ? untrack(() => child(keyed ? c : () => {
|
|
845
|
+
if (!untrack(condition)) throw narrowedError("Show");
|
|
846
|
+
return conditionValue();
|
|
847
|
+
})) : child;
|
|
848
|
+
}
|
|
849
|
+
return props.fallback;
|
|
850
|
+
}, void 0, void 0);
|
|
867
851
|
}
|
|
868
852
|
function Switch(props) {
|
|
869
853
|
const chs = children(() => props.children);
|
|
@@ -875,11 +859,7 @@ function Switch(props) {
|
|
|
875
859
|
const index = i;
|
|
876
860
|
const mp = mps[i];
|
|
877
861
|
const prevFunc = func;
|
|
878
|
-
const conditionValue = createMemo(
|
|
879
|
-
() => prevFunc() ? void 0 : mp.when,
|
|
880
|
-
void 0,
|
|
881
|
-
void 0
|
|
882
|
-
);
|
|
862
|
+
const conditionValue = createMemo(() => prevFunc() ? void 0 : mp.when, void 0, void 0);
|
|
883
863
|
const condition = mp.keyed ? conditionValue : createMemo(conditionValue, void 0, {
|
|
884
864
|
equals: (a, b) => !a === !b
|
|
885
865
|
});
|
|
@@ -887,25 +867,17 @@ function Switch(props) {
|
|
|
887
867
|
}
|
|
888
868
|
return func;
|
|
889
869
|
});
|
|
890
|
-
return createMemo(
|
|
891
|
-
()
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
return conditionValue();
|
|
902
|
-
}
|
|
903
|
-
)
|
|
904
|
-
) : child;
|
|
905
|
-
},
|
|
906
|
-
void 0,
|
|
907
|
-
void 0
|
|
908
|
-
);
|
|
870
|
+
return createMemo(() => {
|
|
871
|
+
const sel = switchFunc()();
|
|
872
|
+
if (!sel) return props.fallback;
|
|
873
|
+
const [index, conditionValue, mp] = sel;
|
|
874
|
+
const child = mp.children;
|
|
875
|
+
const fn = typeof child === "function" && child.length > 0;
|
|
876
|
+
return fn ? untrack(() => child(mp.keyed ? conditionValue() : () => {
|
|
877
|
+
if (untrack(switchFunc)()?.[0] !== index) throw narrowedError("Match");
|
|
878
|
+
return conditionValue();
|
|
879
|
+
})) : child;
|
|
880
|
+
}, void 0, void 0);
|
|
909
881
|
}
|
|
910
882
|
function Match(props) {
|
|
911
883
|
return props;
|
|
@@ -913,6 +885,7 @@ function Match(props) {
|
|
|
913
885
|
const booleans = [
|
|
914
886
|
"allowfullscreen",
|
|
915
887
|
"async",
|
|
888
|
+
"alpha",
|
|
916
889
|
"autofocus",
|
|
917
890
|
"autoplay",
|
|
918
891
|
"checked",
|
|
@@ -935,30 +908,59 @@ const booleans = [
|
|
|
935
908
|
"required",
|
|
936
909
|
"reversed",
|
|
937
910
|
"seamless",
|
|
938
|
-
"selected"
|
|
911
|
+
"selected",
|
|
912
|
+
"adauctionheaders",
|
|
913
|
+
"browsingtopics",
|
|
914
|
+
"credentialless",
|
|
915
|
+
"defaultchecked",
|
|
916
|
+
"defaultmuted",
|
|
917
|
+
"defaultselected",
|
|
918
|
+
"defer",
|
|
919
|
+
"disablepictureinpicture",
|
|
920
|
+
"disableremoteplayback",
|
|
921
|
+
"preservespitch",
|
|
922
|
+
"shadowrootclonable",
|
|
923
|
+
"shadowrootcustomelementregistry",
|
|
924
|
+
"shadowrootdelegatesfocus",
|
|
925
|
+
"shadowrootserializable",
|
|
926
|
+
"sharedstoragewritable"
|
|
939
927
|
];
|
|
940
928
|
const Properties = /* @__PURE__ */ new Set([
|
|
941
929
|
"className",
|
|
942
930
|
"value",
|
|
943
931
|
"readOnly",
|
|
932
|
+
"noValidate",
|
|
944
933
|
"formNoValidate",
|
|
945
934
|
"isMap",
|
|
946
935
|
"noModule",
|
|
947
936
|
"playsInline",
|
|
937
|
+
"adAuctionHeaders",
|
|
938
|
+
"allowFullscreen",
|
|
939
|
+
"browsingTopics",
|
|
940
|
+
"defaultChecked",
|
|
941
|
+
"defaultMuted",
|
|
942
|
+
"defaultSelected",
|
|
943
|
+
"disablePictureInPicture",
|
|
944
|
+
"disableRemotePlayback",
|
|
945
|
+
"preservesPitch",
|
|
946
|
+
"shadowRootClonable",
|
|
947
|
+
"shadowRootCustomElementRegistry",
|
|
948
|
+
"shadowRootDelegatesFocus",
|
|
949
|
+
"shadowRootSerializable",
|
|
950
|
+
"sharedStorageWritable",
|
|
948
951
|
...booleans
|
|
949
952
|
]);
|
|
950
|
-
const ChildProperties = /* @__PURE__ */ new Set([
|
|
951
|
-
"innerHTML",
|
|
952
|
-
"textContent",
|
|
953
|
-
"innerText",
|
|
954
|
-
"children"
|
|
955
|
-
]);
|
|
953
|
+
const ChildProperties = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]);
|
|
956
954
|
const Aliases = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
957
955
|
className: "class",
|
|
958
956
|
htmlFor: "for"
|
|
959
957
|
});
|
|
960
958
|
const PropAliases = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
961
959
|
class: "className",
|
|
960
|
+
novalidate: {
|
|
961
|
+
$: "noValidate",
|
|
962
|
+
FORM: 1
|
|
963
|
+
},
|
|
962
964
|
formnovalidate: {
|
|
963
965
|
$: "formNoValidate",
|
|
964
966
|
BUTTON: 1,
|
|
@@ -980,36 +982,69 @@ const PropAliases = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(
|
|
|
980
982
|
$: "readOnly",
|
|
981
983
|
INPUT: 1,
|
|
982
984
|
TEXTAREA: 1
|
|
985
|
+
},
|
|
986
|
+
adauctionheaders: {
|
|
987
|
+
$: "adAuctionHeaders",
|
|
988
|
+
IFRAME: 1
|
|
989
|
+
},
|
|
990
|
+
allowfullscreen: {
|
|
991
|
+
$: "allowFullscreen",
|
|
992
|
+
IFRAME: 1
|
|
993
|
+
},
|
|
994
|
+
browsingtopics: {
|
|
995
|
+
$: "browsingTopics",
|
|
996
|
+
IMG: 1
|
|
997
|
+
},
|
|
998
|
+
defaultchecked: {
|
|
999
|
+
$: "defaultChecked",
|
|
1000
|
+
INPUT: 1
|
|
1001
|
+
},
|
|
1002
|
+
defaultmuted: {
|
|
1003
|
+
$: "defaultMuted",
|
|
1004
|
+
AUDIO: 1,
|
|
1005
|
+
VIDEO: 1
|
|
1006
|
+
},
|
|
1007
|
+
defaultselected: {
|
|
1008
|
+
$: "defaultSelected",
|
|
1009
|
+
OPTION: 1
|
|
1010
|
+
},
|
|
1011
|
+
disablepictureinpicture: {
|
|
1012
|
+
$: "disablePictureInPicture",
|
|
1013
|
+
VIDEO: 1
|
|
1014
|
+
},
|
|
1015
|
+
disableremoteplayback: {
|
|
1016
|
+
$: "disableRemotePlayback",
|
|
1017
|
+
AUDIO: 1,
|
|
1018
|
+
VIDEO: 1
|
|
1019
|
+
},
|
|
1020
|
+
preservespitch: {
|
|
1021
|
+
$: "preservesPitch",
|
|
1022
|
+
AUDIO: 1,
|
|
1023
|
+
VIDEO: 1
|
|
1024
|
+
},
|
|
1025
|
+
shadowrootclonable: {
|
|
1026
|
+
$: "shadowRootClonable",
|
|
1027
|
+
TEMPLATE: 1
|
|
1028
|
+
},
|
|
1029
|
+
shadowrootdelegatesfocus: {
|
|
1030
|
+
$: "shadowRootDelegatesFocus",
|
|
1031
|
+
TEMPLATE: 1
|
|
1032
|
+
},
|
|
1033
|
+
shadowrootserializable: {
|
|
1034
|
+
$: "shadowRootSerializable",
|
|
1035
|
+
TEMPLATE: 1
|
|
1036
|
+
},
|
|
1037
|
+
sharedstoragewritable: {
|
|
1038
|
+
$: "sharedStorageWritable",
|
|
1039
|
+
IFRAME: 1,
|
|
1040
|
+
IMG: 1
|
|
983
1041
|
}
|
|
984
1042
|
});
|
|
985
1043
|
function getPropAlias(prop, tagName) {
|
|
986
1044
|
const a = PropAliases[prop];
|
|
987
1045
|
return typeof a === "object" ? a[tagName] ? a["$"] : void 0 : a;
|
|
988
1046
|
}
|
|
989
|
-
const DelegatedEvents = /* @__PURE__ */ new Set([
|
|
990
|
-
"beforeinput",
|
|
991
|
-
"click",
|
|
992
|
-
"dblclick",
|
|
993
|
-
"contextmenu",
|
|
994
|
-
"focusin",
|
|
995
|
-
"focusout",
|
|
996
|
-
"input",
|
|
997
|
-
"keydown",
|
|
998
|
-
"keyup",
|
|
999
|
-
"mousedown",
|
|
1000
|
-
"mousemove",
|
|
1001
|
-
"mouseout",
|
|
1002
|
-
"mouseover",
|
|
1003
|
-
"mouseup",
|
|
1004
|
-
"pointerdown",
|
|
1005
|
-
"pointermove",
|
|
1006
|
-
"pointerout",
|
|
1007
|
-
"pointerover",
|
|
1008
|
-
"pointerup",
|
|
1009
|
-
"touchend",
|
|
1010
|
-
"touchmove",
|
|
1011
|
-
"touchstart"
|
|
1012
|
-
]);
|
|
1047
|
+
const 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"]);
|
|
1013
1048
|
const SVGElements = /* @__PURE__ */ new Set([
|
|
1014
1049
|
"altGlyph",
|
|
1015
1050
|
"altGlyphDef",
|
|
@@ -1093,6 +1128,7 @@ const SVGNamespace = {
|
|
|
1093
1128
|
xlink: "http://www.w3.org/1999/xlink",
|
|
1094
1129
|
xml: "http://www.w3.org/XML/1998/namespace"
|
|
1095
1130
|
};
|
|
1131
|
+
const memo = (fn) => createMemo(() => fn());
|
|
1096
1132
|
function reconcileArrays(parentNode, a, b) {
|
|
1097
1133
|
let bLength = b.length, aEnd = a.length, bEnd = bLength, aStart = 0, bStart = 0, after = a[aEnd - 1].nextSibling, map = null;
|
|
1098
1134
|
while (aStart < aEnd || bStart < bEnd) {
|
|
@@ -1245,9 +1281,7 @@ function style(node, value, prev) {
|
|
|
1245
1281
|
function spread(node, props = {}, isSVG, skipChildren) {
|
|
1246
1282
|
const prevProps = {};
|
|
1247
1283
|
if (!skipChildren) {
|
|
1248
|
-
createRenderEffect(
|
|
1249
|
-
() => prevProps.children = insertExpression(node, props.children, prevProps.children)
|
|
1250
|
-
);
|
|
1284
|
+
createRenderEffect(() => prevProps.children = insertExpression(node, props.children, prevProps.children));
|
|
1251
1285
|
}
|
|
1252
1286
|
createRenderEffect(() => typeof props.ref === "function" && use(props.ref, node));
|
|
1253
1287
|
createRenderEffect(() => assign(node, props, isSVG, true, prevProps, true));
|
|
@@ -1294,8 +1328,7 @@ function toPropertyName(name) {
|
|
|
1294
1328
|
}
|
|
1295
1329
|
function toggleClassKey(node, key, value) {
|
|
1296
1330
|
const classNames = key.trim().split(/\s+/);
|
|
1297
|
-
for (let i = 0, nameLen = classNames.length; i < nameLen; i++)
|
|
1298
|
-
node.classList.toggle(classNames[i], value);
|
|
1331
|
+
for (let i = 0, nameLen = classNames.length; i < nameLen; i++) node.classList.toggle(classNames[i], value);
|
|
1299
1332
|
}
|
|
1300
1333
|
function assignProp(node, prop, value, prev, isSVG, skipRef, props) {
|
|
1301
1334
|
let isCE, isProp, isChildProp, propAlias, forceProp;
|
|
@@ -1487,11 +1520,7 @@ function normalizeIncomingArray(normalized, array, current, unwrap) {
|
|
|
1487
1520
|
} else if (t === "function") {
|
|
1488
1521
|
if (unwrap) {
|
|
1489
1522
|
while (typeof item === "function") item = item();
|
|
1490
|
-
dynamic = normalizeIncomingArray(
|
|
1491
|
-
normalized,
|
|
1492
|
-
Array.isArray(item) ? item : [item],
|
|
1493
|
-
Array.isArray(prev) ? prev : [prev]
|
|
1494
|
-
) || dynamic;
|
|
1523
|
+
dynamic = normalizeIncomingArray(normalized, Array.isArray(item) ? item : [item], Array.isArray(prev) ? prev : [prev]) || dynamic;
|
|
1495
1524
|
} else {
|
|
1496
1525
|
normalized.push(item);
|
|
1497
1526
|
dynamic = true;
|
|
@@ -1516,8 +1545,7 @@ function cleanChildren(parent, current, marker, replacement) {
|
|
|
1516
1545
|
const el = current[i];
|
|
1517
1546
|
if (node !== el) {
|
|
1518
1547
|
const isParent = el.parentNode === parent;
|
|
1519
|
-
if (!inserted && !i)
|
|
1520
|
-
isParent ? parent.replaceChild(node, el) : parent.insertBefore(node, marker);
|
|
1548
|
+
if (!inserted && !i) isParent ? parent.replaceChild(node, el) : parent.insertBefore(node, marker);
|
|
1521
1549
|
else isParent && el.remove();
|
|
1522
1550
|
} else inserted = true;
|
|
1523
1551
|
}
|
|
@@ -1528,8 +1556,10 @@ function getHydrationKey() {
|
|
|
1528
1556
|
return sharedConfig.getNextContextId();
|
|
1529
1557
|
}
|
|
1530
1558
|
const SVG_NAMESPACE = "http://www.w3.org/2000/svg";
|
|
1531
|
-
function createElement(tagName, isSVG = false) {
|
|
1532
|
-
return isSVG ? document.createElementNS(SVG_NAMESPACE, tagName) : document.createElement(tagName
|
|
1559
|
+
function createElement(tagName, isSVG = false, is = void 0) {
|
|
1560
|
+
return isSVG ? document.createElementNS(SVG_NAMESPACE, tagName) : document.createElement(tagName, {
|
|
1561
|
+
is
|
|
1562
|
+
});
|
|
1533
1563
|
}
|
|
1534
1564
|
function createDynamic(component, props) {
|
|
1535
1565
|
const cached = createMemo(component);
|
|
@@ -1540,7 +1570,7 @@ function createDynamic(component, props) {
|
|
|
1540
1570
|
return untrack(() => component2(props));
|
|
1541
1571
|
case "string":
|
|
1542
1572
|
const isSvg = SVGElements.has(component2);
|
|
1543
|
-
const el = sharedConfig.context ? getNextElement() : createElement(component2, isSvg);
|
|
1573
|
+
const el = sharedConfig.context ? getNextElement() : createElement(component2, isSvg, untrack(() => props.is));
|
|
1544
1574
|
spread(el, props, isSvg);
|
|
1545
1575
|
return el;
|
|
1546
1576
|
}
|
|
@@ -1605,7 +1635,7 @@ class TanStackRouterDevtoolsCore {
|
|
|
1605
1635
|
if (this.#Component) {
|
|
1606
1636
|
Devtools = this.#Component;
|
|
1607
1637
|
} else {
|
|
1608
|
-
Devtools = lazy(() => Promise.resolve().then(() => require("./FloatingTanStackRouterDevtools-
|
|
1638
|
+
Devtools = lazy(() => Promise.resolve().then(() => require("./FloatingTanStackRouterDevtools-CR-IUwId.cjs")));
|
|
1609
1639
|
this.#Component = Devtools;
|
|
1610
1640
|
}
|
|
1611
1641
|
return createComponent(ShadowDomTargetContext.Provider, {
|
|
@@ -1697,7 +1727,7 @@ class TanStackRouterDevtoolsPanelCore {
|
|
|
1697
1727
|
if (this.#Component) {
|
|
1698
1728
|
BaseTanStackRouterDevtoolsPanel = this.#Component;
|
|
1699
1729
|
} else {
|
|
1700
|
-
BaseTanStackRouterDevtoolsPanel = lazy(() => Promise.resolve().then(() => require("./BaseTanStackRouterDevtoolsPanel-
|
|
1730
|
+
BaseTanStackRouterDevtoolsPanel = lazy(() => Promise.resolve().then(() => require("./BaseTanStackRouterDevtoolsPanel-CXtqf9z_.cjs")).then((n) => n.BaseTanStackRouterDevtoolsPanel$1));
|
|
1701
1731
|
this.#Component = BaseTanStackRouterDevtoolsPanel;
|
|
1702
1732
|
}
|
|
1703
1733
|
return createComponent(ShadowDomTargetContext.Provider, {
|
|
@@ -1781,6 +1811,7 @@ exports.createSignal = createSignal;
|
|
|
1781
1811
|
exports.createUniqueId = createUniqueId;
|
|
1782
1812
|
exports.delegateEvents = delegateEvents;
|
|
1783
1813
|
exports.insert = insert;
|
|
1814
|
+
exports.memo = memo;
|
|
1784
1815
|
exports.mergeProps = mergeProps;
|
|
1785
1816
|
exports.onCleanup = onCleanup;
|
|
1786
1817
|
exports.setAttribute = setAttribute;
|
|
@@ -1789,4 +1820,4 @@ exports.template = template;
|
|
|
1789
1820
|
exports.untrack = untrack;
|
|
1790
1821
|
exports.useContext = useContext;
|
|
1791
1822
|
exports.useDevtoolsOnClose = useDevtoolsOnClose;
|
|
1792
|
-
//# sourceMappingURL=index-
|
|
1823
|
+
//# sourceMappingURL=index-T2C4hF4E.cjs.map
|