@tanstack/router-devtools-core 1.167.1 → 1.167.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/dist/{BaseTanStackRouterDevtoolsPanel-qCkSGZav.js → BaseTanStackRouterDevtoolsPanel-BYamTwOT.js} +263 -57
- package/dist/BaseTanStackRouterDevtoolsPanel-BYamTwOT.js.map +1 -0
- package/dist/{BaseTanStackRouterDevtoolsPanel-DSj2U3K0.cjs → BaseTanStackRouterDevtoolsPanel-CKR5l6C5.cjs} +263 -57
- package/dist/BaseTanStackRouterDevtoolsPanel-CKR5l6C5.cjs.map +1 -0
- package/dist/{FloatingTanStackRouterDevtools-Dz-7tBRe.js → FloatingTanStackRouterDevtools-5lmIMjR6.js} +2 -2
- package/dist/{FloatingTanStackRouterDevtools-Dz-7tBRe.js.map → FloatingTanStackRouterDevtools-5lmIMjR6.js.map} +1 -1
- package/dist/{FloatingTanStackRouterDevtools-BGIBDKFY.cjs → FloatingTanStackRouterDevtools-eF_9_NhU.cjs} +2 -2
- package/dist/{FloatingTanStackRouterDevtools-BGIBDKFY.cjs.map → FloatingTanStackRouterDevtools-eF_9_NhU.cjs.map} +1 -1
- package/dist/cjs/Explorer.d.cts +1 -1
- package/dist/cjs/index.cjs +2 -2
- package/dist/cjs/utils.d.cts +24 -0
- package/dist/esm/Explorer.d.ts +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/utils.d.ts +24 -0
- package/package.json +4 -4
- package/src/BaseTanStackRouterDevtoolsPanel.tsx +6 -6
- package/src/Explorer.tsx +155 -5
- package/src/utils.tsx +129 -1
- package/dist/BaseTanStackRouterDevtoolsPanel-DSj2U3K0.cjs.map +0 -1
- package/dist/BaseTanStackRouterDevtoolsPanel-qCkSGZav.js.map +0 -1
|
@@ -940,16 +940,90 @@ function useIsMounted() {
|
|
|
940
940
|
});
|
|
941
941
|
return isMounted;
|
|
942
942
|
}
|
|
943
|
+
var SERVER_COMPONENT_STREAM = Symbol.for("tanstack.rsc.stream");
|
|
944
|
+
var RENDERABLE_RSC = Symbol.for("tanstack.rsc.renderable");
|
|
945
|
+
var RSC_SLOT_USAGES = Symbol.for("tanstack.rsc.slotUsages");
|
|
946
|
+
function trimTrailingUndefined(arr) {
|
|
947
|
+
let end = arr.length;
|
|
948
|
+
while (end > 0 && arr[end - 1] === void 0) end--;
|
|
949
|
+
if (end === 0) return arr;
|
|
950
|
+
return end === arr.length ? arr : arr.slice(0, end);
|
|
951
|
+
}
|
|
952
|
+
/**
|
|
953
|
+
* Checks if a value is any kind of server component
|
|
954
|
+
*/
|
|
955
|
+
var isServerComponent = (value) => {
|
|
956
|
+
return (typeof value === "object" || typeof value === "function") && value !== null && SERVER_COMPONENT_STREAM in value;
|
|
957
|
+
};
|
|
958
|
+
/**
|
|
959
|
+
* Gets the type of server component.
|
|
960
|
+
* - RENDERABLE_RSC === true → renderable (from renderServerComponent)
|
|
961
|
+
* - RENDERABLE_RSC === false or not present → composite (from createCompositeComponent)
|
|
962
|
+
*/
|
|
963
|
+
var getServerComponentType = (value) => {
|
|
964
|
+
if (!isServerComponent(value)) return null;
|
|
965
|
+
const v = value;
|
|
966
|
+
if (RENDERABLE_RSC in v && v[RENDERABLE_RSC] === true) return "renderableValue";
|
|
967
|
+
return "compositeSource";
|
|
968
|
+
};
|
|
969
|
+
/**
|
|
970
|
+
* Gets the slot names from a composite server component (dev only)
|
|
971
|
+
*/
|
|
972
|
+
var getServerComponentSlots = (value) => {
|
|
973
|
+
if (!isServerComponent(value)) return [];
|
|
974
|
+
const v = value;
|
|
975
|
+
const out = [];
|
|
976
|
+
if (RSC_SLOT_USAGES in v) {
|
|
977
|
+
const usages = v[RSC_SLOT_USAGES];
|
|
978
|
+
if (Array.isArray(usages)) for (const evt of usages) {
|
|
979
|
+
const name = evt?.slot;
|
|
980
|
+
if (typeof name === "string" && !out.includes(name)) out.push(name);
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
return out;
|
|
984
|
+
};
|
|
985
|
+
var getServerComponentSlotUsages = (value) => {
|
|
986
|
+
if (!isServerComponent(value)) return [];
|
|
987
|
+
const v = value;
|
|
988
|
+
if (!(RSC_SLOT_USAGES in v)) return [];
|
|
989
|
+
const usages = v[RSC_SLOT_USAGES];
|
|
990
|
+
if (!Array.isArray(usages)) return [];
|
|
991
|
+
return usages.filter((d) => {
|
|
992
|
+
return d && typeof d === "object" && typeof d.slot === "string" && (d.args === void 0 || Array.isArray(d.args));
|
|
993
|
+
});
|
|
994
|
+
};
|
|
995
|
+
var getServerComponentSlotUsageSummary = (value) => {
|
|
996
|
+
const usages = getServerComponentSlotUsages(value);
|
|
997
|
+
const out = {};
|
|
998
|
+
for (const evt of usages) {
|
|
999
|
+
const args = trimTrailingUndefined(evt.args ?? []);
|
|
1000
|
+
const prev = out[evt.slot] ?? (out[evt.slot] = {
|
|
1001
|
+
count: 0,
|
|
1002
|
+
invocations: []
|
|
1003
|
+
});
|
|
1004
|
+
prev.count++;
|
|
1005
|
+
prev.invocations.push(args);
|
|
1006
|
+
}
|
|
1007
|
+
return out;
|
|
1008
|
+
};
|
|
943
1009
|
/**
|
|
944
1010
|
* Displays a string regardless the type of the data
|
|
945
1011
|
* @param {unknown} value Value to be stringified
|
|
946
1012
|
*/
|
|
947
1013
|
var displayValue = (value) => {
|
|
1014
|
+
if (value === "React element") return "React element";
|
|
1015
|
+
const componentType = getServerComponentType(value);
|
|
1016
|
+
if (componentType === "compositeSource") {
|
|
1017
|
+
const slots = getServerComponentSlots(value);
|
|
1018
|
+
if (slots.length > 0) return `RSC composite source (${slots.length} ${slots.length === 1 ? "slot" : "slots"})`;
|
|
1019
|
+
return "RSC composite source";
|
|
1020
|
+
}
|
|
1021
|
+
if (componentType === "renderableValue") return "RSC renderable value";
|
|
948
1022
|
const name = Object.getOwnPropertyNames(Object(value));
|
|
949
1023
|
const newValue = typeof value === "bigint" ? `${value.toString()}n` : value;
|
|
950
1024
|
try {
|
|
951
1025
|
return JSON.stringify(newValue, name);
|
|
952
|
-
} catch
|
|
1026
|
+
} catch {
|
|
953
1027
|
return `unable to stringify`;
|
|
954
1028
|
}
|
|
955
1029
|
};
|
|
@@ -970,8 +1044,8 @@ function multiSortBy(arr, accessors = [(d) => d]) {
|
|
|
970
1044
|
}
|
|
971
1045
|
//#endregion
|
|
972
1046
|
//#region src/Explorer.tsx
|
|
973
|
-
var _tmpl$$3 = /* @__PURE__ */ require_context.template(`<span><svg xmlns=http://www.w3.org/2000/svg width=12 height=12 fill=none viewBox="0 0 24 24"><path stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=2 d="M9 18l6-6-6-6">`), _tmpl$2$1 = /* @__PURE__ */ require_context.template(`<div>`), _tmpl$3$1 = /* @__PURE__ */ require_context.template(`<button><span
|
|
974
|
-
var Expander = ({ expanded, style = {} }) => {
|
|
1047
|
+
var _tmpl$$3 = /* @__PURE__ */ require_context.template(`<span><svg xmlns=http://www.w3.org/2000/svg width=12 height=12 fill=none viewBox="0 0 24 24"><path stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=2 d="M9 18l6-6-6-6">`), _tmpl$2$1 = /* @__PURE__ */ require_context.template(`<div>`), _tmpl$3$1 = /* @__PURE__ */ require_context.template(`<button><span>:</span><span>`), _tmpl$4$1 = /* @__PURE__ */ require_context.template(`<div><span>slots</span><div>`), _tmpl$5$1 = /* @__PURE__ */ require_context.template(`<span>:`), _tmpl$6$1 = /* @__PURE__ */ require_context.template(`<span>`), _tmpl$7$1 = /* @__PURE__ */ require_context.template(`<button><span> `), _tmpl$8$1 = /* @__PURE__ */ require_context.template(`<div><div><button> [<!> ... <!>]`), _tmpl$9$1 = /* @__PURE__ */ require_context.template(`<button><span></span> 🔄 `);
|
|
1048
|
+
var Expander = ({ expanded, style: _style = {} }) => {
|
|
975
1049
|
const styles = useStyles();
|
|
976
1050
|
return (() => {
|
|
977
1051
|
var _el$ = _tmpl$$3(), _el$2 = _el$.firstChild;
|
|
@@ -1009,6 +1083,11 @@ function chunkArray(array, size) {
|
|
|
1009
1083
|
function isIterable(x) {
|
|
1010
1084
|
return Symbol.iterator in x;
|
|
1011
1085
|
}
|
|
1086
|
+
function isPlainObject(value) {
|
|
1087
|
+
if (!value || typeof value !== "object") return false;
|
|
1088
|
+
const proto = Object.getPrototypeOf(value);
|
|
1089
|
+
return proto === Object.prototype || proto === null;
|
|
1090
|
+
}
|
|
1012
1091
|
function Explorer({ value, defaultExpanded, pageSize = 100, filterSubEntries, ...rest }) {
|
|
1013
1092
|
const [expanded, setExpanded] = require_context.createSignal(Boolean(defaultExpanded));
|
|
1014
1093
|
const toggleExpanded = () => setExpanded((old) => !old);
|
|
@@ -1023,7 +1102,16 @@ function Explorer({ value, defaultExpanded, pageSize = 100, filterSubEntries, ..
|
|
|
1023
1102
|
defaultExpanded: subDefaultExpanded
|
|
1024
1103
|
};
|
|
1025
1104
|
};
|
|
1026
|
-
if (Array.isArray(value()))
|
|
1105
|
+
if (Array.isArray(value()) && value().length === 2 && value()[0] === "React element" && isPlainObject(value()[1])) {
|
|
1106
|
+
const v = value();
|
|
1107
|
+
entries = [makeProperty({
|
|
1108
|
+
label: "0",
|
|
1109
|
+
value: v[0]
|
|
1110
|
+
}), ...Object.entries(v[1]).map(([key, val]) => makeProperty({
|
|
1111
|
+
label: key,
|
|
1112
|
+
value: val
|
|
1113
|
+
}))];
|
|
1114
|
+
} else if (Array.isArray(value())) entries = value().map((d, i) => makeProperty({
|
|
1027
1115
|
label: i.toString(),
|
|
1028
1116
|
value: d
|
|
1029
1117
|
}));
|
|
@@ -1048,94 +1136,151 @@ function Explorer({ value, defaultExpanded, pageSize = 100, filterSubEntries, ..
|
|
|
1048
1136
|
value,
|
|
1049
1137
|
filterSubEntries
|
|
1050
1138
|
}, rest, entry));
|
|
1139
|
+
const serverComponentType = require_context.createMemo(() => getServerComponentType(value()));
|
|
1140
|
+
const serverComponentSlots = require_context.createMemo(() => getServerComponentSlots(value()));
|
|
1141
|
+
const serverComponentSlotUsageSummary = require_context.createMemo(() => getServerComponentSlotUsageSummary(value()));
|
|
1142
|
+
const isCompositeWithSlots = require_context.createMemo(() => serverComponentType() === "compositeSource" && serverComponentSlots().length > 0);
|
|
1051
1143
|
return (() => {
|
|
1052
1144
|
var _el$3 = _tmpl$2$1();
|
|
1053
1145
|
require_context.insert(_el$3, (() => {
|
|
1054
|
-
var _c$ = require_context.memo(() =>
|
|
1055
|
-
return () => _c$() ? [(() => {
|
|
1056
|
-
var _el$4 = _tmpl$3$1(), _el$5 = _el$4.firstChild, _el$6 = _el$5.firstChild;
|
|
1146
|
+
var _c$ = require_context.memo(() => serverComponentType() !== null);
|
|
1147
|
+
return () => _c$() ? require_context.memo(() => !!isCompositeWithSlots())() ? [(() => {
|
|
1148
|
+
var _el$4 = _tmpl$3$1(), _el$5 = _el$4.firstChild, _el$6 = _el$5.firstChild, _el$7 = _el$5.nextSibling;
|
|
1057
1149
|
_el$4.$$click = () => toggleExpanded();
|
|
1058
1150
|
require_context.insert(_el$4, require_context.createComponent(Expander, { get expanded() {
|
|
1059
1151
|
return expanded() ?? false;
|
|
1060
1152
|
} }), _el$5);
|
|
1061
|
-
require_context.insert(_el$
|
|
1062
|
-
require_context.insert(_el$
|
|
1063
|
-
require_context.insert(_el$5, () => subEntries().length, _el$6);
|
|
1064
|
-
require_context.insert(_el$5, () => subEntries().length > 1 ? `items` : `item`, null);
|
|
1153
|
+
require_context.insert(_el$5, () => rest.label, _el$6);
|
|
1154
|
+
require_context.insert(_el$7, () => displayValue(value()));
|
|
1065
1155
|
require_context.createRenderEffect((_p$) => {
|
|
1066
|
-
var _v$3 = styles().expandButton, _v$4 = styles().
|
|
1156
|
+
var _v$3 = styles().expandButton, _v$4 = styles().compositeComponent;
|
|
1067
1157
|
_v$3 !== _p$.e && require_context.className(_el$4, _p$.e = _v$3);
|
|
1068
|
-
_v$4 !== _p$.t && require_context.className(_el$
|
|
1158
|
+
_v$4 !== _p$.t && require_context.className(_el$7, _p$.t = _v$4);
|
|
1069
1159
|
return _p$;
|
|
1070
1160
|
}, {
|
|
1071
1161
|
e: void 0,
|
|
1072
1162
|
t: void 0
|
|
1073
1163
|
});
|
|
1074
1164
|
return _el$4;
|
|
1165
|
+
})(), require_context.memo(() => require_context.memo(() => !!(expanded() ?? false))() ? (() => {
|
|
1166
|
+
var _el$8 = _tmpl$4$1(), _el$9 = _el$8.firstChild, _el$0 = _el$9.nextSibling;
|
|
1167
|
+
require_context.insert(_el$0, () => serverComponentSlots().map((name) => {
|
|
1168
|
+
const usage = serverComponentSlotUsageSummary()[name];
|
|
1169
|
+
if (!usage) return null;
|
|
1170
|
+
return require_context.createComponent(Explorer, {
|
|
1171
|
+
label: `${name}:`,
|
|
1172
|
+
value: () => usage.invocations.map((args) => args.length === 1 ? args[0] : args)
|
|
1173
|
+
});
|
|
1174
|
+
}));
|
|
1175
|
+
require_context.createRenderEffect((_p$) => {
|
|
1176
|
+
var _v$5 = styles().rscMetaRow, _v$6 = styles().rscMetaLabel, _v$7 = styles().subEntries;
|
|
1177
|
+
_v$5 !== _p$.e && require_context.className(_el$8, _p$.e = _v$5);
|
|
1178
|
+
_v$6 !== _p$.t && require_context.className(_el$9, _p$.t = _v$6);
|
|
1179
|
+
_v$7 !== _p$.a && require_context.className(_el$0, _p$.a = _v$7);
|
|
1180
|
+
return _p$;
|
|
1181
|
+
}, {
|
|
1182
|
+
e: void 0,
|
|
1183
|
+
t: void 0,
|
|
1184
|
+
a: void 0
|
|
1185
|
+
});
|
|
1186
|
+
return _el$8;
|
|
1187
|
+
})() : null)] : [
|
|
1188
|
+
(() => {
|
|
1189
|
+
var _el$1 = _tmpl$5$1(), _el$10 = _el$1.firstChild;
|
|
1190
|
+
require_context.insert(_el$1, () => rest.label, _el$10);
|
|
1191
|
+
return _el$1;
|
|
1192
|
+
})(),
|
|
1193
|
+
" ",
|
|
1194
|
+
(() => {
|
|
1195
|
+
var _el$11 = _tmpl$6$1();
|
|
1196
|
+
require_context.insert(_el$11, () => displayValue(value()));
|
|
1197
|
+
require_context.createRenderEffect(() => require_context.className(_el$11, serverComponentType() === "compositeSource" ? styles().compositeComponent : styles().renderableComponent));
|
|
1198
|
+
return _el$11;
|
|
1199
|
+
})()
|
|
1200
|
+
] : require_context.memo(() => !!subEntryPages().length)() ? [(() => {
|
|
1201
|
+
var _el$12 = _tmpl$7$1(), _el$13 = _el$12.firstChild, _el$14 = _el$13.firstChild;
|
|
1202
|
+
_el$12.$$click = () => toggleExpanded();
|
|
1203
|
+
require_context.insert(_el$12, require_context.createComponent(Expander, { get expanded() {
|
|
1204
|
+
return expanded() ?? false;
|
|
1205
|
+
} }), _el$13);
|
|
1206
|
+
require_context.insert(_el$12, () => rest.label, _el$13);
|
|
1207
|
+
require_context.insert(_el$13, () => String(type).toLowerCase() === "iterable" ? "(Iterable) " : "", _el$14);
|
|
1208
|
+
require_context.insert(_el$13, () => subEntries().length, _el$14);
|
|
1209
|
+
require_context.insert(_el$13, () => subEntries().length > 1 ? `items` : `item`, null);
|
|
1210
|
+
require_context.createRenderEffect((_p$) => {
|
|
1211
|
+
var _v$8 = styles().expandButton, _v$9 = styles().info;
|
|
1212
|
+
_v$8 !== _p$.e && require_context.className(_el$12, _p$.e = _v$8);
|
|
1213
|
+
_v$9 !== _p$.t && require_context.className(_el$13, _p$.t = _v$9);
|
|
1214
|
+
return _p$;
|
|
1215
|
+
}, {
|
|
1216
|
+
e: void 0,
|
|
1217
|
+
t: void 0
|
|
1218
|
+
});
|
|
1219
|
+
return _el$12;
|
|
1075
1220
|
})(), require_context.memo(() => require_context.memo(() => !!(expanded() ?? false))() ? require_context.memo(() => subEntryPages().length === 1)() ? (() => {
|
|
1076
|
-
var _el$
|
|
1077
|
-
require_context.insert(_el$
|
|
1078
|
-
require_context.createRenderEffect(() => require_context.className(_el$
|
|
1079
|
-
return _el$
|
|
1221
|
+
var _el$15 = _tmpl$2$1();
|
|
1222
|
+
require_context.insert(_el$15, () => subEntries().map((entry, index) => handleEntry(entry)));
|
|
1223
|
+
require_context.createRenderEffect(() => require_context.className(_el$15, styles().subEntries));
|
|
1224
|
+
return _el$15;
|
|
1080
1225
|
})() : (() => {
|
|
1081
|
-
var _el$
|
|
1082
|
-
require_context.insert(_el$
|
|
1226
|
+
var _el$16 = _tmpl$2$1();
|
|
1227
|
+
require_context.insert(_el$16, () => subEntryPages().map((entries, index) => {
|
|
1083
1228
|
return (() => {
|
|
1084
|
-
var _el$
|
|
1085
|
-
_el$
|
|
1086
|
-
_el$
|
|
1087
|
-
require_context.insert(_el$
|
|
1229
|
+
var _el$17 = _tmpl$8$1(), _el$18 = _el$17.firstChild, _el$19 = _el$18.firstChild, _el$20 = _el$19.firstChild, _el$25 = _el$20.nextSibling, _el$26 = _el$25.nextSibling.nextSibling;
|
|
1230
|
+
_el$26.nextSibling;
|
|
1231
|
+
_el$19.$$click = () => setExpandedPages((old) => old.includes(index) ? old.filter((d) => d !== index) : [...old, index]);
|
|
1232
|
+
require_context.insert(_el$19, require_context.createComponent(Expander, { get expanded() {
|
|
1088
1233
|
return expandedPages().includes(index);
|
|
1089
|
-
} }), _el$
|
|
1090
|
-
require_context.insert(_el$
|
|
1091
|
-
require_context.insert(_el$
|
|
1092
|
-
require_context.insert(_el$
|
|
1234
|
+
} }), _el$20);
|
|
1235
|
+
require_context.insert(_el$19, index * pageSize, _el$25);
|
|
1236
|
+
require_context.insert(_el$19, index * pageSize + pageSize - 1, _el$26);
|
|
1237
|
+
require_context.insert(_el$18, (() => {
|
|
1093
1238
|
var _c$2 = require_context.memo(() => !!expandedPages().includes(index));
|
|
1094
1239
|
return () => _c$2() ? (() => {
|
|
1095
|
-
var _el$
|
|
1096
|
-
require_context.insert(_el$
|
|
1097
|
-
require_context.createRenderEffect(() => require_context.className(_el$
|
|
1098
|
-
return _el$
|
|
1240
|
+
var _el$27 = _tmpl$2$1();
|
|
1241
|
+
require_context.insert(_el$27, () => entries.map((entry) => handleEntry(entry)));
|
|
1242
|
+
require_context.createRenderEffect(() => require_context.className(_el$27, styles().subEntries));
|
|
1243
|
+
return _el$27;
|
|
1099
1244
|
})() : null;
|
|
1100
1245
|
})(), null);
|
|
1101
1246
|
require_context.createRenderEffect((_p$) => {
|
|
1102
|
-
var _v$
|
|
1103
|
-
_v$
|
|
1104
|
-
_v$
|
|
1247
|
+
var _v$0 = styles().entry, _v$1 = (0, clsx.clsx)(styles().labelButton, "labelButton");
|
|
1248
|
+
_v$0 !== _p$.e && require_context.className(_el$18, _p$.e = _v$0);
|
|
1249
|
+
_v$1 !== _p$.t && require_context.className(_el$19, _p$.t = _v$1);
|
|
1105
1250
|
return _p$;
|
|
1106
1251
|
}, {
|
|
1107
1252
|
e: void 0,
|
|
1108
1253
|
t: void 0
|
|
1109
1254
|
});
|
|
1110
|
-
return _el$
|
|
1255
|
+
return _el$17;
|
|
1111
1256
|
})();
|
|
1112
1257
|
}));
|
|
1113
|
-
require_context.createRenderEffect(() => require_context.className(_el$
|
|
1114
|
-
return _el$
|
|
1258
|
+
require_context.createRenderEffect(() => require_context.className(_el$16, styles().subEntries));
|
|
1259
|
+
return _el$16;
|
|
1115
1260
|
})() : null)] : require_context.memo(() => type() === "function")() ? require_context.createComponent(Explorer, {
|
|
1116
1261
|
get label() {
|
|
1117
1262
|
return (() => {
|
|
1118
|
-
var _el$
|
|
1119
|
-
_el$
|
|
1120
|
-
require_context.insert(_el$
|
|
1121
|
-
require_context.createRenderEffect(() => require_context.className(_el$
|
|
1122
|
-
return _el$
|
|
1263
|
+
var _el$28 = _tmpl$9$1(), _el$29 = _el$28.firstChild;
|
|
1264
|
+
_el$28.$$click = refreshValueSnapshot;
|
|
1265
|
+
require_context.insert(_el$29, () => rest.label);
|
|
1266
|
+
require_context.createRenderEffect(() => require_context.className(_el$28, styles().refreshValueBtn));
|
|
1267
|
+
return _el$28;
|
|
1123
1268
|
})();
|
|
1124
1269
|
},
|
|
1125
1270
|
value: valueSnapshot,
|
|
1126
1271
|
defaultExpanded: {}
|
|
1127
1272
|
}) : [
|
|
1128
1273
|
(() => {
|
|
1129
|
-
var _el$
|
|
1130
|
-
require_context.insert(_el$
|
|
1131
|
-
return _el$
|
|
1274
|
+
var _el$30 = _tmpl$5$1(), _el$31 = _el$30.firstChild;
|
|
1275
|
+
require_context.insert(_el$30, () => rest.label, _el$31);
|
|
1276
|
+
return _el$30;
|
|
1132
1277
|
})(),
|
|
1133
1278
|
" ",
|
|
1134
1279
|
(() => {
|
|
1135
|
-
var _el$
|
|
1136
|
-
require_context.insert(_el$
|
|
1137
|
-
require_context.createRenderEffect(() => require_context.className(_el$
|
|
1138
|
-
return _el$
|
|
1280
|
+
var _el$32 = _tmpl$6$1();
|
|
1281
|
+
require_context.insert(_el$32, () => displayValue(value()));
|
|
1282
|
+
require_context.createRenderEffect(() => require_context.className(_el$32, styles().value));
|
|
1283
|
+
return _el$32;
|
|
1139
1284
|
})()
|
|
1140
1285
|
];
|
|
1141
1286
|
})());
|
|
@@ -1144,7 +1289,7 @@ function Explorer({ value, defaultExpanded, pageSize = 100, filterSubEntries, ..
|
|
|
1144
1289
|
})();
|
|
1145
1290
|
}
|
|
1146
1291
|
var stylesFactory = (shadowDOMTarget) => {
|
|
1147
|
-
const { colors, font, size,
|
|
1292
|
+
const { colors, font, size, border } = tokens;
|
|
1148
1293
|
const { fontFamily, lineHeight, size: fontSize } = font;
|
|
1149
1294
|
const css = shadowDOMTarget ? goober.css.bind({ target: shadowDOMTarget }) : goober.css;
|
|
1150
1295
|
return {
|
|
@@ -1197,6 +1342,67 @@ var stylesFactory = (shadowDOMTarget) => {
|
|
|
1197
1342
|
`,
|
|
1198
1343
|
value: css`
|
|
1199
1344
|
color: ${colors.purple[400]};
|
|
1345
|
+
`,
|
|
1346
|
+
compositeComponent: css`
|
|
1347
|
+
display: inline-flex;
|
|
1348
|
+
align-items: center;
|
|
1349
|
+
padding: 1px ${size[1]};
|
|
1350
|
+
border-radius: ${border.radius.full};
|
|
1351
|
+
border: 1px solid ${colors.darkGray[500]};
|
|
1352
|
+
background: ${colors.darkGray[700]};
|
|
1353
|
+
color: ${colors.cyan[300]};
|
|
1354
|
+
font-style: normal;
|
|
1355
|
+
font-weight: ${font.weight.medium};
|
|
1356
|
+
`,
|
|
1357
|
+
renderableComponent: css`
|
|
1358
|
+
display: inline-flex;
|
|
1359
|
+
align-items: center;
|
|
1360
|
+
padding: 1px ${size[1]};
|
|
1361
|
+
border-radius: ${border.radius.full};
|
|
1362
|
+
border: 1px solid ${colors.darkGray[500]};
|
|
1363
|
+
background: ${colors.darkGray[700]};
|
|
1364
|
+
color: ${colors.teal[300]};
|
|
1365
|
+
font-style: normal;
|
|
1366
|
+
font-weight: ${font.weight.medium};
|
|
1367
|
+
`,
|
|
1368
|
+
rscMetaRow: css`
|
|
1369
|
+
display: flex;
|
|
1370
|
+
gap: ${size[1]};
|
|
1371
|
+
align-items: flex-start;
|
|
1372
|
+
margin-left: calc(${size[3]} + ${size[1]});
|
|
1373
|
+
margin-top: ${size[.5]};
|
|
1374
|
+
flex-wrap: wrap;
|
|
1375
|
+
`,
|
|
1376
|
+
rscMetaLabel: css`
|
|
1377
|
+
color: ${colors.gray[500]};
|
|
1378
|
+
font-size: ${fontSize["2xs"]};
|
|
1379
|
+
text-transform: uppercase;
|
|
1380
|
+
letter-spacing: 0.06em;
|
|
1381
|
+
padding-top: 2px;
|
|
1382
|
+
`,
|
|
1383
|
+
rscChipRow: css`
|
|
1384
|
+
display: flex;
|
|
1385
|
+
gap: ${size[1]};
|
|
1386
|
+
flex-wrap: wrap;
|
|
1387
|
+
`,
|
|
1388
|
+
rscChip: css`
|
|
1389
|
+
display: inline-flex;
|
|
1390
|
+
align-items: center;
|
|
1391
|
+
gap: ${size[.5]};
|
|
1392
|
+
padding: 1px ${size[1]};
|
|
1393
|
+
border-radius: ${border.radius.full};
|
|
1394
|
+
border: 1px solid ${colors.darkGray[500]};
|
|
1395
|
+
background: ${colors.darkGray[800]};
|
|
1396
|
+
color: ${colors.gray[200]};
|
|
1397
|
+
font-size: ${fontSize["2xs"]};
|
|
1398
|
+
line-height: ${lineHeight.xs};
|
|
1399
|
+
`,
|
|
1400
|
+
rscChipName: css`
|
|
1401
|
+
color: ${colors.gray[100]};
|
|
1402
|
+
`,
|
|
1403
|
+
rscChipMeta: css`
|
|
1404
|
+
color: ${colors.gray[400]};
|
|
1405
|
+
font-size: ${fontSize["2xs"]};
|
|
1200
1406
|
`,
|
|
1201
1407
|
subEntries: css`
|
|
1202
1408
|
margin-left: ${size[2]};
|
|
@@ -1448,23 +1654,23 @@ var BaseTanStackRouterDevtoolsPanel = function BaseTanStackRouterDevtoolsPanel({
|
|
|
1448
1654
|
cachedMatches = _cachedMatches;
|
|
1449
1655
|
require_context.createEffect(() => {
|
|
1450
1656
|
const pendingMatchesStore = router().stores.pendingMatchesSnapshot;
|
|
1451
|
-
setPendingMatches(pendingMatchesStore.
|
|
1657
|
+
setPendingMatches(pendingMatchesStore.get());
|
|
1452
1658
|
const subscription = pendingMatchesStore.subscribe(() => {
|
|
1453
|
-
setPendingMatches(pendingMatchesStore.
|
|
1659
|
+
setPendingMatches(pendingMatchesStore.get());
|
|
1454
1660
|
});
|
|
1455
1661
|
require_context.onCleanup(() => subscription.unsubscribe());
|
|
1456
1662
|
});
|
|
1457
1663
|
require_context.createEffect(() => {
|
|
1458
1664
|
const cachedMatchesStore = router().stores.cachedMatchesSnapshot;
|
|
1459
|
-
setCachedMatches(cachedMatchesStore.
|
|
1665
|
+
setCachedMatches(cachedMatchesStore.get());
|
|
1460
1666
|
const subscription = cachedMatchesStore.subscribe(() => {
|
|
1461
|
-
setCachedMatches(cachedMatchesStore.
|
|
1667
|
+
setCachedMatches(cachedMatchesStore.get());
|
|
1462
1668
|
});
|
|
1463
1669
|
require_context.onCleanup(() => subscription.unsubscribe());
|
|
1464
1670
|
});
|
|
1465
1671
|
} else {
|
|
1466
|
-
pendingMatches = () => router().stores.pendingMatchesSnapshot.
|
|
1467
|
-
cachedMatches = () => router().stores.cachedMatchesSnapshot.
|
|
1672
|
+
pendingMatches = () => router().stores.pendingMatchesSnapshot.get();
|
|
1673
|
+
cachedMatches = () => router().stores.cachedMatchesSnapshot.get();
|
|
1468
1674
|
}
|
|
1469
1675
|
require_context.createEffect(() => {
|
|
1470
1676
|
const matches = routerState().matches;
|
|
@@ -1992,4 +2198,4 @@ exports.useIsMounted = useIsMounted;
|
|
|
1992
2198
|
exports.useLocalStorage = useLocalStorage;
|
|
1993
2199
|
exports.useStyles = useStyles$1;
|
|
1994
2200
|
|
|
1995
|
-
//# sourceMappingURL=BaseTanStackRouterDevtoolsPanel-
|
|
2201
|
+
//# sourceMappingURL=BaseTanStackRouterDevtoolsPanel-CKR5l6C5.cjs.map
|