@vue/devtools-applet 7.7.6 → 7.7.8
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/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +158 -157
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -379,11 +379,11 @@ function no(n, e = !0, o) {
|
|
|
379
379
|
function Ye(n, e = !1) {
|
|
380
380
|
function o(u, { flush: C = "sync", deep: T = !1, timeout: k, throwOnTimeout: g } = {}) {
|
|
381
381
|
let $ = null;
|
|
382
|
-
const V = [new Promise((
|
|
382
|
+
const V = [new Promise((w) => {
|
|
383
383
|
$ = te(
|
|
384
384
|
n,
|
|
385
385
|
(P) => {
|
|
386
|
-
u(P) !== e && ($ ? $() : Ze(() => $ == null ? void 0 : $()),
|
|
386
|
+
u(P) !== e && ($ ? $() : Ze(() => $ == null ? void 0 : $()), w(P));
|
|
387
387
|
},
|
|
388
388
|
{
|
|
389
389
|
flush: C,
|
|
@@ -401,7 +401,7 @@ function Ye(n, e = !1) {
|
|
|
401
401
|
return o((P) => P === u, C);
|
|
402
402
|
const { flush: T = "sync", deep: k = !1, timeout: g, throwOnTimeout: $ } = C ?? {};
|
|
403
403
|
let z = null;
|
|
404
|
-
const
|
|
404
|
+
const w = [new Promise((P) => {
|
|
405
405
|
z = te(
|
|
406
406
|
[n, u],
|
|
407
407
|
([F, K]) => {
|
|
@@ -414,9 +414,9 @@ function Ye(n, e = !1) {
|
|
|
414
414
|
}
|
|
415
415
|
);
|
|
416
416
|
})];
|
|
417
|
-
return g != null &&
|
|
417
|
+
return g != null && w.push(
|
|
418
418
|
It(g, $).then(() => Y(n)).finally(() => (z == null || z(), Y(n)))
|
|
419
|
-
), Promise.race(
|
|
419
|
+
), Promise.race(w);
|
|
420
420
|
}
|
|
421
421
|
function l(u) {
|
|
422
422
|
return o((C) => !!C, u);
|
|
@@ -632,23 +632,23 @@ function ao(n = {}) {
|
|
|
632
632
|
f.value && o && he(["copy", "cut"], T, { passive: !0 });
|
|
633
633
|
async function k(V = Y(t)) {
|
|
634
634
|
if (f.value && V != null) {
|
|
635
|
-
let
|
|
636
|
-
if (!
|
|
635
|
+
let w = !(p.value && z(a.value));
|
|
636
|
+
if (!w)
|
|
637
637
|
try {
|
|
638
638
|
await e.clipboard.writeText(V);
|
|
639
639
|
} catch {
|
|
640
|
-
|
|
640
|
+
w = !0;
|
|
641
641
|
}
|
|
642
|
-
|
|
642
|
+
w && g(V), v.value = V, u.value = !0, C.start();
|
|
643
643
|
}
|
|
644
644
|
}
|
|
645
645
|
function g(V) {
|
|
646
|
-
const
|
|
647
|
-
|
|
646
|
+
const w = document.createElement("textarea");
|
|
647
|
+
w.value = V ?? "", w.style.position = "absolute", w.style.opacity = "0", document.body.appendChild(w), w.select(), document.execCommand("copy"), w.remove();
|
|
648
648
|
}
|
|
649
649
|
function $() {
|
|
650
|
-
var V,
|
|
651
|
-
return (P = (
|
|
650
|
+
var V, w, P;
|
|
651
|
+
return (P = (w = (V = document == null ? void 0 : document.getSelection) == null ? void 0 : V.call(document)) == null ? void 0 : w.toString()) != null ? P : "";
|
|
652
652
|
}
|
|
653
653
|
function z(V) {
|
|
654
654
|
return V === "granted" || V === "prompt";
|
|
@@ -763,11 +763,11 @@ function po(n = {}) {
|
|
|
763
763
|
}
|
|
764
764
|
function T(g, $) {
|
|
765
765
|
var z, V;
|
|
766
|
-
const
|
|
767
|
-
|
|
766
|
+
const w = (z = g.key) == null ? void 0 : z.toLowerCase(), F = [(V = g.code) == null ? void 0 : V.toLowerCase(), w].filter(Boolean);
|
|
767
|
+
w && ($ ? p.add(w) : p.delete(w));
|
|
768
768
|
for (const K of F)
|
|
769
769
|
v.add(K), u(K, $);
|
|
770
|
-
|
|
770
|
+
w === "meta" && !$ ? (f.forEach((K) => {
|
|
771
771
|
p.delete(K), u(K, !1);
|
|
772
772
|
}), f.clear()) : typeof g.getModifierState == "function" && g.getModifierState("Meta") && $ && [...p, ...F].forEach((K) => f.add(K));
|
|
773
773
|
}
|
|
@@ -780,8 +780,8 @@ function po(n = {}) {
|
|
|
780
780
|
return Reflect.get(g, $, z);
|
|
781
781
|
if ($ = $.toLowerCase(), $ in t && ($ = t[$]), !($ in a))
|
|
782
782
|
if (/[+_-]/.test($)) {
|
|
783
|
-
const
|
|
784
|
-
a[$] = E(() =>
|
|
783
|
+
const w = $.split(/[+_-]/g).map((P) => P.trim());
|
|
784
|
+
a[$] = E(() => w.map((P) => Y(k[P])).every(Boolean));
|
|
785
785
|
} else
|
|
786
786
|
a[$] = ve(!1);
|
|
787
787
|
const V = Reflect.get(g, $, z);
|
|
@@ -803,11 +803,11 @@ function fo(n, e, o, t = {}) {
|
|
|
803
803
|
} = t, T = et(), k = o || (T == null ? void 0 : T.emit) || ((l = T == null ? void 0 : T.$emit) == null ? void 0 : l.bind(T)) || ((p = (s = T == null ? void 0 : T.proxy) == null ? void 0 : s.$emit) == null ? void 0 : p.bind(T == null ? void 0 : T.proxy));
|
|
804
804
|
let g = f;
|
|
805
805
|
g = g || `update:${e.toString()}`;
|
|
806
|
-
const $ = (
|
|
807
|
-
C ? C(
|
|
806
|
+
const $ = (w) => i ? typeof i == "function" ? i(w) : io(w) : w, z = () => qn(n[e]) ? $(n[e]) : u, V = (w) => {
|
|
807
|
+
C ? C(w) && k(g, w) : k(g, w);
|
|
808
808
|
};
|
|
809
809
|
if (a) {
|
|
810
|
-
const
|
|
810
|
+
const w = z(), P = R(w);
|
|
811
811
|
let F = !1;
|
|
812
812
|
return te(
|
|
813
813
|
() => n[e],
|
|
@@ -826,8 +826,8 @@ function fo(n, e, o, t = {}) {
|
|
|
826
826
|
get() {
|
|
827
827
|
return z();
|
|
828
828
|
},
|
|
829
|
-
set(
|
|
830
|
-
V(
|
|
829
|
+
set(w) {
|
|
830
|
+
V(w);
|
|
831
831
|
}
|
|
832
832
|
});
|
|
833
833
|
}
|
|
@@ -1113,38 +1113,38 @@ const mo = { class: "flex pl5px" }, ho = { class: "w160px py5px" }, go = /* @__P
|
|
|
1113
1113
|
return yt(A) ? A.length : xt(A) ? Object.keys(A).length : 0;
|
|
1114
1114
|
}), v = E(() => e.data.path || [e.data.key]), u = E(() => v.value[v.value.length - 1]), C = E(() => {
|
|
1115
1115
|
var m, _, N, M, G, re, Ie;
|
|
1116
|
-
const A = ["Reactive"],
|
|
1117
|
-
if (A.includes(
|
|
1118
|
-
return
|
|
1116
|
+
const A = ["Reactive"], b = ((_ = (m = e.data.value) == null ? void 0 : m._custom) == null ? void 0 : _.stateTypeName) || ((N = e.data) == null ? void 0 : N.stateTypeName);
|
|
1117
|
+
if (A.includes(b))
|
|
1118
|
+
return b;
|
|
1119
1119
|
if ((G = (M = e.data.value) == null ? void 0 : M.fields) != null && G.abstract)
|
|
1120
1120
|
return "";
|
|
1121
1121
|
{
|
|
1122
1122
|
const Re = (Ie = (re = e.data.value) == null ? void 0 : re._custom) == null ? void 0 : Ie.type, je = l.value === "custom" && !Re ? `"${t.value}"` : t.value === "" ? '""' : t.value, $e = l.value === "custom" && Re === "ref" ? _t(je) : l.value, ze = l.value === "string" ? "select-text" : "", De = `<span title="${l.value === "string" ? bn(e.data.value) : ""}" class="${$e}-state-type flex whitespace-nowrap ${ze}">${je}</span>`;
|
|
1123
|
-
return
|
|
1123
|
+
return b ? `${De} <span class="text-gray-500">(${b})</span>` : De;
|
|
1124
1124
|
}
|
|
1125
1125
|
}), T = E(() => {
|
|
1126
|
-
const { value: A, inherit:
|
|
1126
|
+
const { value: A, inherit: b, customType: m } = s.value, _ = m === "set";
|
|
1127
1127
|
let N = [];
|
|
1128
1128
|
return yt(A) ? A.slice(0, o.value).map((G, re) => ({
|
|
1129
1129
|
key: re.toString(),
|
|
1130
1130
|
path: [...v.value, re.toString()],
|
|
1131
1131
|
value: G,
|
|
1132
|
-
...
|
|
1132
|
+
...b,
|
|
1133
1133
|
editable: e.data.editable && !_,
|
|
1134
1134
|
creating: !1
|
|
1135
1135
|
})) : (xt(A) && (N = Object.keys(A).slice(0, o.value).map((M) => ({
|
|
1136
1136
|
key: M,
|
|
1137
1137
|
path: [...v.value, M],
|
|
1138
1138
|
value: A[M],
|
|
1139
|
-
...
|
|
1139
|
+
...b,
|
|
1140
1140
|
editable: e.data.editable && !_,
|
|
1141
1141
|
creating: !1
|
|
1142
1142
|
})), l.value !== "custom" && (N = At(N))), N === e.data.value ? [] : N);
|
|
1143
|
-
}), k = E(() => T.value.length > 0), g = R(), $ = at(), { isHovering: z } = vo(() => g.value), { editingType: V, editing:
|
|
1144
|
-
te(() =>
|
|
1143
|
+
}), k = E(() => T.value.length > 0), g = R(), $ = at(), { isHovering: z } = vo(() => g.value), { editingType: V, editing: w, editingText: P, toggleEditing: F, nodeId: K } = Kn();
|
|
1144
|
+
te(() => w.value, (A) => {
|
|
1145
1145
|
if (A) {
|
|
1146
|
-
const { value:
|
|
1147
|
-
P.value = wn(
|
|
1146
|
+
const { value: b } = s.value;
|
|
1147
|
+
P.value = wn(b, s.value.customType);
|
|
1148
1148
|
} else
|
|
1149
1149
|
P.value = "";
|
|
1150
1150
|
});
|
|
@@ -1164,8 +1164,8 @@ const mo = { class: "flex pl5px" }, ho = { class: "w160px py5px" }, go = /* @__P
|
|
|
1164
1164
|
}
|
|
1165
1165
|
const { addNewProp: L, draftingNewProp: I, resetDrafting: O } = Wn();
|
|
1166
1166
|
function ee(A) {
|
|
1167
|
-
const
|
|
1168
|
-
p.value.includes(
|
|
1167
|
+
const b = `${e.depth}-${e.index}`;
|
|
1168
|
+
p.value.includes(b) || i(b), L(A, s.value.value);
|
|
1169
1169
|
}
|
|
1170
1170
|
async function ne() {
|
|
1171
1171
|
const A = e.data;
|
|
@@ -1181,24 +1181,24 @@ const mo = { class: "flex pl5px" }, ho = { class: "w160px py5px" }, go = /* @__P
|
|
|
1181
1181
|
}
|
|
1182
1182
|
}), await D.value.sendInspectorState($.value.inspectorId), O();
|
|
1183
1183
|
}
|
|
1184
|
-
return (A,
|
|
1184
|
+
return (A, b) => (d(), h("div", null, [
|
|
1185
1185
|
c("div", {
|
|
1186
1186
|
ref_key: "containerRef",
|
|
1187
1187
|
ref: g,
|
|
1188
1188
|
class: ae(["font-state-field flex items-center text-3.5", [k.value && "cursor-pointer hover:bg-active"]]),
|
|
1189
1189
|
style: Ee({ paddingLeft: `${A.depth * 15 + 4}px` }),
|
|
1190
|
-
onClick:
|
|
1190
|
+
onClick: b[1] || (b[1] = (m) => r(i)(`${A.depth}-${A.index}`))
|
|
1191
1191
|
}, [
|
|
1192
1192
|
k.value ? (d(), B(st, {
|
|
1193
1193
|
key: 0,
|
|
1194
1194
|
value: r(p).includes(`${A.depth}-${A.index}`)
|
|
1195
1195
|
}, null, 8, ["value"])) : (d(), h("span", _o)),
|
|
1196
1196
|
c("span", yo, ie(u.value), 1),
|
|
1197
|
-
|
|
1198
|
-
r(
|
|
1197
|
+
b[5] || (b[5] = c("span", { mx1: "" }, ":", -1)),
|
|
1198
|
+
r(w) ? (d(), B(qe, {
|
|
1199
1199
|
key: 2,
|
|
1200
1200
|
modelValue: r(P),
|
|
1201
|
-
"onUpdate:modelValue":
|
|
1201
|
+
"onUpdate:modelValue": b[0] || (b[0] = (m) => Ge(P) ? P.value = m : null),
|
|
1202
1202
|
class: "mr-1",
|
|
1203
1203
|
"custom-type": s.value.customType,
|
|
1204
1204
|
onCancel: r(F),
|
|
@@ -1214,7 +1214,7 @@ const mo = { class: "flex pl5px" }, ho = { class: "w160px py5px" }, go = /* @__P
|
|
|
1214
1214
|
], 2),
|
|
1215
1215
|
y(go, {
|
|
1216
1216
|
hovering: r(z),
|
|
1217
|
-
"disable-edit": r($).disableEdit || r(
|
|
1217
|
+
"disable-edit": r($).disableEdit || r(w),
|
|
1218
1218
|
data: A.data,
|
|
1219
1219
|
depth: A.depth,
|
|
1220
1220
|
onEnableEditInput: r(F),
|
|
@@ -1232,7 +1232,7 @@ const mo = { class: "flex pl5px" }, ho = { class: "w160px py5px" }, go = /* @__P
|
|
|
1232
1232
|
flat: "",
|
|
1233
1233
|
size: "mini",
|
|
1234
1234
|
class: "ml-4",
|
|
1235
|
-
onClick:
|
|
1235
|
+
onClick: b[2] || (b[2] = (m) => o.value += Tt)
|
|
1236
1236
|
}, {
|
|
1237
1237
|
icon: H(() => [
|
|
1238
1238
|
y(r(ue), { icon: "i-material-symbols-more-horiz" })
|
|
@@ -1248,14 +1248,14 @@ const mo = { class: "flex pl5px" }, ho = { class: "w160px py5px" }, go = /* @__P
|
|
|
1248
1248
|
c("span", wo, [
|
|
1249
1249
|
y(qe, {
|
|
1250
1250
|
modelValue: r(I).key,
|
|
1251
|
-
"onUpdate:modelValue":
|
|
1251
|
+
"onUpdate:modelValue": b[3] || (b[3] = (m) => r(I).key = m),
|
|
1252
1252
|
"show-actions": !1
|
|
1253
1253
|
}, null, 8, ["modelValue"])
|
|
1254
1254
|
]),
|
|
1255
|
-
|
|
1255
|
+
b[6] || (b[6] = c("span", { "mx-1": "" }, ":", -1)),
|
|
1256
1256
|
y(qe, {
|
|
1257
1257
|
modelValue: r(I).value,
|
|
1258
|
-
"onUpdate:modelValue":
|
|
1258
|
+
"onUpdate:modelValue": b[4] || (b[4] = (m) => r(I).value = m),
|
|
1259
1259
|
"auto-focus": !1,
|
|
1260
1260
|
onCancel: r(O),
|
|
1261
1261
|
onSubmit: ne
|
|
@@ -1440,9 +1440,9 @@ const mo = { class: "flex pl5px" }, ho = { class: "w160px py5px" }, go = /* @__P
|
|
|
1440
1440
|
var V;
|
|
1441
1441
|
return (V = i.timelineLayersState.value) == null ? void 0 : V[o.pluginId];
|
|
1442
1442
|
}), f = E(() => l.value[p.value] ?? null), v = E(() => a.value ? "Stop recording" : "Start recording"), u = E(() => {
|
|
1443
|
-
var
|
|
1443
|
+
var w;
|
|
1444
1444
|
const V = [];
|
|
1445
|
-
for (const P in (
|
|
1445
|
+
for (const P in (w = f.value) == null ? void 0 : w.data)
|
|
1446
1446
|
V.push({
|
|
1447
1447
|
key: P,
|
|
1448
1448
|
type: P,
|
|
@@ -1452,14 +1452,14 @@ const mo = { class: "flex pl5px" }, ho = { class: "w160px py5px" }, go = /* @__P
|
|
|
1452
1452
|
return V;
|
|
1453
1453
|
}), C = E(() => {
|
|
1454
1454
|
var P, F, K;
|
|
1455
|
-
const V = (P = f.value) == null ? void 0 : P.groupId,
|
|
1456
|
-
if (
|
|
1457
|
-
const ce = ((F =
|
|
1455
|
+
const V = (P = f.value) == null ? void 0 : P.groupId, w = s.value.get(V);
|
|
1456
|
+
if (w) {
|
|
1457
|
+
const ce = ((F = w[w.length - 1]) == null ? void 0 : F.time) - (((K = w[0]) == null ? void 0 : K.time) ?? 0);
|
|
1458
1458
|
return [{
|
|
1459
1459
|
key: "events",
|
|
1460
1460
|
type: "events",
|
|
1461
1461
|
editable: !1,
|
|
1462
|
-
value:
|
|
1462
|
+
value: w.length
|
|
1463
1463
|
}, ce && {
|
|
1464
1464
|
key: "duration",
|
|
1465
1465
|
type: "duration",
|
|
@@ -1470,14 +1470,14 @@ const mo = { class: "flex pl5px" }, ho = { class: "w160px py5px" }, go = /* @__P
|
|
|
1470
1470
|
}), T = E(() => ({ "Event Info": u.value, ...C.value && { "Group Info": C.value } }));
|
|
1471
1471
|
function k(V) {
|
|
1472
1472
|
var P;
|
|
1473
|
-
const
|
|
1474
|
-
|
|
1473
|
+
const w = V.groupId;
|
|
1474
|
+
w !== void 0 && (s.value.set(w, s.value.get(w) ?? []), (P = s.value.get(w)) == null || P.push(V));
|
|
1475
1475
|
}
|
|
1476
1476
|
function g(V) {
|
|
1477
|
-
const
|
|
1478
|
-
if (!
|
|
1477
|
+
const w = oe(V);
|
|
1478
|
+
if (!w)
|
|
1479
1479
|
return;
|
|
1480
|
-
const { layerId: P, event: F } =
|
|
1480
|
+
const { layerId: P, event: F } = w;
|
|
1481
1481
|
o.layerIds.includes(P) && (l.value.push(F), k(F));
|
|
1482
1482
|
}
|
|
1483
1483
|
D.functions.on(X.TIMELINE_EVENT_UPDATED, g), ke(() => {
|
|
@@ -1494,7 +1494,7 @@ const mo = { class: "flex pl5px" }, ho = { class: "w160px py5px" }, go = /* @__P
|
|
|
1494
1494
|
[o.pluginId]: !a.value
|
|
1495
1495
|
});
|
|
1496
1496
|
}
|
|
1497
|
-
return (V,
|
|
1497
|
+
return (V, w) => (d(), h("div", Lo, [
|
|
1498
1498
|
V.headerVisible ? (d(), B(Ve, {
|
|
1499
1499
|
key: 0,
|
|
1500
1500
|
"doc-link": V.docLink,
|
|
@@ -1517,7 +1517,7 @@ const mo = { class: "flex pl5px" }, ho = { class: "w160px py5px" }, go = /* @__P
|
|
|
1517
1517
|
c("div", Uo, [
|
|
1518
1518
|
y(Mo, {
|
|
1519
1519
|
modelValue: p.value,
|
|
1520
|
-
"onUpdate:modelValue":
|
|
1520
|
+
"onUpdate:modelValue": w[0] || (w[0] = (P) => p.value = P),
|
|
1521
1521
|
data: l.value
|
|
1522
1522
|
}, null, 8, ["modelValue", "data"])
|
|
1523
1523
|
])
|
|
@@ -1546,7 +1546,7 @@ const mo = { class: "flex pl5px" }, ho = { class: "w160px py5px" }, go = /* @__P
|
|
|
1546
1546
|
key: 2,
|
|
1547
1547
|
class: "flex-1"
|
|
1548
1548
|
}, {
|
|
1549
|
-
default: H(() =>
|
|
1549
|
+
default: H(() => w[1] || (w[1] = [
|
|
1550
1550
|
Q(" No events ")
|
|
1551
1551
|
])),
|
|
1552
1552
|
_: 1
|
|
@@ -1815,120 +1815,121 @@ const sl = { class: "absolute left-0 top-0 h-full w-full flex flex-col rounded-b
|
|
|
1815
1815
|
emits: ["openInEditor", "onInspectComponentStart", "onInspectComponentEnd"],
|
|
1816
1816
|
setup(n, { emit: e }) {
|
|
1817
1817
|
const o = e, t = R(), l = R(!1), { width: s } = uo(t), p = E(() => l.value ? s.value < 700 : !1), i = R(""), a = R(""), [f, v] = Kt(!0), u = R(!1), C = R(!1), T = R(""), k = R(!1), g = ll();
|
|
1818
|
-
function $(
|
|
1818
|
+
function $(x, S = [], U = []) {
|
|
1819
1819
|
var W;
|
|
1820
|
-
return S.push(
|
|
1820
|
+
return S.push(x.id), ((W = x.children) == null ? void 0 : W.length) === 0 && U.push([...S]), Array.isArray(x.children) && x.children.forEach((le) => {
|
|
1821
1821
|
$(le, S, U);
|
|
1822
1822
|
}), S.pop(), U;
|
|
1823
1823
|
}
|
|
1824
|
-
function z(
|
|
1824
|
+
function z(x) {
|
|
1825
1825
|
const S = [], U = (W) => {
|
|
1826
1826
|
W == null || W.forEach((le) => {
|
|
1827
1827
|
var ht;
|
|
1828
1828
|
S.push(le), (ht = le.children) != null && ht.length && U(le.children);
|
|
1829
1829
|
});
|
|
1830
1830
|
};
|
|
1831
|
-
return U(
|
|
1831
|
+
return U(x), S;
|
|
1832
1832
|
}
|
|
1833
|
-
function V(
|
|
1833
|
+
function V(x, S) {
|
|
1834
1834
|
const U = [];
|
|
1835
|
-
return
|
|
1835
|
+
return x == null || x.forEach((W) => {
|
|
1836
1836
|
U.push(...W.slice(0, S + 1));
|
|
1837
1837
|
}), [...new Set(U)];
|
|
1838
1838
|
}
|
|
1839
|
-
function
|
|
1839
|
+
function w(x, S) {
|
|
1840
1840
|
const U = [];
|
|
1841
|
-
return
|
|
1841
|
+
return x.forEach((W) => {
|
|
1842
1842
|
const le = W.indexOf(S);
|
|
1843
1843
|
le !== -1 && U.push(...W.slice(0, le + 1));
|
|
1844
1844
|
}), [...new Set(U)];
|
|
1845
1845
|
}
|
|
1846
1846
|
const P = R([]), F = E(() => {
|
|
1847
|
-
var
|
|
1848
|
-
return (
|
|
1849
|
-
}), K = E(() => z(P.value)), ce = E(() => K.value.map((
|
|
1850
|
-
const
|
|
1847
|
+
var x, S;
|
|
1848
|
+
return (x = P.value) != null && x.length ? $((S = P.value) == null ? void 0 : S[0]) : [];
|
|
1849
|
+
}), K = E(() => z(P.value)), ce = E(() => K.value.map((x) => x.id)), L = R({}), I = R(""), O = E(() => {
|
|
1850
|
+
const x = [], S = (U) => {
|
|
1851
1851
|
U.forEach((W) => {
|
|
1852
1852
|
var le;
|
|
1853
|
-
W.id === I.value &&
|
|
1853
|
+
W.id === I.value && x.push(W), (le = W.children) != null && le.length && S(W.children);
|
|
1854
1854
|
});
|
|
1855
1855
|
};
|
|
1856
|
-
return S(P.value),
|
|
1856
|
+
return S(P.value), x[0];
|
|
1857
1857
|
}), ee = E(() => {
|
|
1858
|
-
var
|
|
1859
|
-
return ((
|
|
1858
|
+
var x;
|
|
1859
|
+
return ((x = O.value) == null ? void 0 : x.file) ?? "";
|
|
1860
1860
|
}), ne = E(() => nt({
|
|
1861
1861
|
state: L.value,
|
|
1862
1862
|
filterKey: a.value,
|
|
1863
|
-
processGroup(
|
|
1864
|
-
return Sn(Object.values(Tn(At(
|
|
1863
|
+
processGroup(x) {
|
|
1864
|
+
return Sn(Object.values(Tn(At(x), "stateType")));
|
|
1865
1865
|
}
|
|
1866
|
-
})), { expanded: A } = _e(), { expanded:
|
|
1866
|
+
})), { expanded: A } = _e(), { expanded: b } = _e("component-state");
|
|
1867
1867
|
Go();
|
|
1868
|
-
async function m(
|
|
1869
|
-
return D.value.getInspectorTree({ inspectorId: Pe, filter:
|
|
1868
|
+
async function m(x = "") {
|
|
1869
|
+
return D.value.getInspectorTree({ inspectorId: Pe, filter: x }).then((S) => {
|
|
1870
1870
|
var W, le;
|
|
1871
1871
|
const U = oe(S);
|
|
1872
1872
|
P.value = U, I.value = (le = (W = P.value) == null ? void 0 : W[0]) == null ? void 0 : le.id, A.value = V(F.value, 1), u.value = !0;
|
|
1873
1873
|
});
|
|
1874
1874
|
}
|
|
1875
|
-
function _(
|
|
1876
|
-
if (!
|
|
1875
|
+
function _(x) {
|
|
1876
|
+
if (!x || !(x != null && x.state))
|
|
1877
1877
|
return {};
|
|
1878
1878
|
const S = {};
|
|
1879
|
-
return
|
|
1879
|
+
return x.state.forEach((U) => {
|
|
1880
1880
|
S[U.type] || (S[U.type] = []), S[U.type].push(U);
|
|
1881
1881
|
}), S;
|
|
1882
1882
|
}
|
|
1883
|
-
function N(
|
|
1884
|
-
D.value.getInspectorState({ inspectorId: Pe, nodeId:
|
|
1883
|
+
function N(x) {
|
|
1884
|
+
D.value.getInspectorState({ inspectorId: Pe, nodeId: x }).then((S) => {
|
|
1885
1885
|
const U = oe(S);
|
|
1886
|
-
U && (L.value = _(U),
|
|
1886
|
+
U && (L.value = _(U), b.value = Array.from({ length: Object.keys(L.value).length }, (W, le) => `${le}`));
|
|
1887
1887
|
});
|
|
1888
1888
|
}
|
|
1889
|
-
te(I, (
|
|
1890
|
-
N(
|
|
1889
|
+
te(I, (x) => {
|
|
1890
|
+
N(x), k.value && vt();
|
|
1891
1891
|
});
|
|
1892
|
-
function M(
|
|
1893
|
-
const S = oe(
|
|
1892
|
+
function M(x) {
|
|
1893
|
+
const S = oe(x);
|
|
1894
1894
|
S.inspectorId !== Pe || S.nodeId !== I.value || (L.value = _({ state: S.state.state }));
|
|
1895
1895
|
}
|
|
1896
1896
|
D.functions.on(X.INSPECTOR_STATE_UPDATED, M), m();
|
|
1897
|
-
function G(
|
|
1898
|
-
const S =
|
|
1897
|
+
function G(x) {
|
|
1898
|
+
const S = x.trim().toLowerCase();
|
|
1899
1899
|
v(), m(S).then(() => {
|
|
1900
1900
|
v();
|
|
1901
1901
|
});
|
|
1902
1902
|
}
|
|
1903
|
-
Gt(i, (
|
|
1904
|
-
G(
|
|
1903
|
+
Gt(i, (x) => {
|
|
1904
|
+
G(x);
|
|
1905
1905
|
}, { debounce: 300 });
|
|
1906
|
-
function re(
|
|
1906
|
+
function re(x) {
|
|
1907
1907
|
var U, W;
|
|
1908
|
-
const S = oe(
|
|
1908
|
+
const S = oe(x);
|
|
1909
1909
|
S.inspectorId === Pe && (i.value ? G(i.value) : P.value = S.rootNodes, ce.value.includes(I.value) || (I.value = (W = (U = P.value) == null ? void 0 : U[0]) == null ? void 0 : W.id, A.value = V(F.value, 1)));
|
|
1910
1910
|
}
|
|
1911
1911
|
D.functions.on(X.INSPECTOR_TREE_UPDATED, re), ke(() => {
|
|
1912
1912
|
D.functions.off(X.INSPECTOR_STATE_UPDATED, M), D.functions.off(X.INSPECTOR_TREE_UPDATED, re);
|
|
1913
1913
|
});
|
|
1914
|
-
const Ie = Pt(), Re = E(() => Ie.appRecords.value.map((
|
|
1915
|
-
label:
|
|
1916
|
-
value:
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1914
|
+
const Ie = Pt(), Re = E(() => Ie.appRecords.value.map((x) => ({
|
|
1915
|
+
label: x.name + (x.version ? ` (${x.version})` : ""),
|
|
1916
|
+
value: x.id,
|
|
1917
|
+
iframe: x.iframe
|
|
1918
|
+
}))), je = E(() => Re.value.map((x) => ({
|
|
1919
|
+
label: x.label + (x.iframe ? ` (iframe: ${x.iframe})` : ""),
|
|
1920
|
+
id: x.value
|
|
1920
1921
|
}))), $e = R(Ie.activeAppRecordId.value);
|
|
1921
1922
|
tt(() => {
|
|
1922
1923
|
$e.value = Ie.activeAppRecordId.value;
|
|
1923
1924
|
});
|
|
1924
|
-
async function ze(
|
|
1925
|
-
await D.value.toggleApp(
|
|
1925
|
+
async function ze(x, S = {}) {
|
|
1926
|
+
await D.value.toggleApp(x, S), I.value = "", await m();
|
|
1926
1927
|
}
|
|
1927
1928
|
async function De() {
|
|
1928
1929
|
C.value = !0, o("onInspectComponentStart");
|
|
1929
1930
|
try {
|
|
1930
|
-
const
|
|
1931
|
-
$e.value !==
|
|
1931
|
+
const x = JSON.parse(await D.value.inspectComponentInspector()), S = x.id.split(":")[0];
|
|
1932
|
+
$e.value !== x.appId && await ze(S, { inspectingComponent: !0 }), I.value = x.id, A.value.includes(x.id) || A.value.push(x.id), A.value = [.../* @__PURE__ */ new Set([...A.value, ...w(F.value, x.id)])], on();
|
|
1932
1933
|
} finally {
|
|
1933
1934
|
C.value = !1, o("onInspectComponentEnd");
|
|
1934
1935
|
}
|
|
@@ -1936,8 +1937,8 @@ const sl = { class: "absolute left-0 top-0 h-full w-full flex flex-col rounded-b
|
|
|
1936
1937
|
function ft() {
|
|
1937
1938
|
C.value = !1, D.value.cancelInspectComponentInspector();
|
|
1938
1939
|
}
|
|
1939
|
-
he("keydown", (
|
|
1940
|
-
|
|
1940
|
+
he("keydown", (x) => {
|
|
1941
|
+
x.key === "s" && (x.ctrlKey || x.metaKey) && !C.value ? De() : x.key === "Escape" && C.value && ft();
|
|
1941
1942
|
});
|
|
1942
1943
|
function en() {
|
|
1943
1944
|
D.value.scrollToComponent(I.value);
|
|
@@ -1948,8 +1949,8 @@ const sl = { class: "absolute left-0 top-0 h-full w-full flex flex-col rounded-b
|
|
|
1948
1949
|
});
|
|
1949
1950
|
}
|
|
1950
1951
|
function vt() {
|
|
1951
|
-
D.value.getComponentRenderCode(I.value).then((
|
|
1952
|
-
T.value =
|
|
1952
|
+
D.value.getComponentRenderCode(I.value).then((x) => {
|
|
1953
|
+
T.value = x, k.value = !0;
|
|
1953
1954
|
});
|
|
1954
1955
|
}
|
|
1955
1956
|
function nn() {
|
|
@@ -1959,14 +1960,14 @@ const sl = { class: "absolute left-0 top-0 h-full w-full flex flex-col rounded-b
|
|
|
1959
1960
|
function on() {
|
|
1960
1961
|
setTimeout(() => {
|
|
1961
1962
|
var S;
|
|
1962
|
-
const
|
|
1963
|
-
|
|
1963
|
+
const x = (S = mt.value) == null ? void 0 : S.querySelector(".active");
|
|
1964
|
+
x == null || x.scrollIntoView({ behavior: "smooth", block: "center" });
|
|
1964
1965
|
}, 300);
|
|
1965
1966
|
}
|
|
1966
1967
|
function ln() {
|
|
1967
1968
|
T.value = "", k.value = !1;
|
|
1968
1969
|
}
|
|
1969
|
-
return (
|
|
1970
|
+
return (x, S) => (d(), h("div", rl, [
|
|
1970
1971
|
y(r(Le), {
|
|
1971
1972
|
ref_key: "splitpanesRef",
|
|
1972
1973
|
ref: t,
|
|
@@ -2183,7 +2184,7 @@ const sl = { class: "absolute left-0 top-0 h-full w-full flex flex-col rounded-b
|
|
|
2183
2184
|
}, 8, ["modelValue"])) : j("", !0)
|
|
2184
2185
|
]));
|
|
2185
2186
|
}
|
|
2186
|
-
}), fs = /* @__PURE__ */ be(bl, [["__scopeId", "data-v-
|
|
2187
|
+
}), fs = /* @__PURE__ */ be(bl, [["__scopeId", "data-v-476b73cc"]]), wl = {}, kl = { class: "h-screen w-screen $ui-fcc flex-col" };
|
|
2187
2188
|
function Il(n, e) {
|
|
2188
2189
|
return d(), h("div", kl, [
|
|
2189
2190
|
e[0] || (e[0] = c("div", { class: "outer" }, [
|
|
@@ -2455,7 +2456,7 @@ const Vl = /* @__PURE__ */ be(Sl, [["render", El]]), Nl = {
|
|
|
2455
2456
|
V(G, _, N);
|
|
2456
2457
|
}), _.pop(), N;
|
|
2457
2458
|
}
|
|
2458
|
-
function
|
|
2459
|
+
function w(m, _) {
|
|
2459
2460
|
const N = [];
|
|
2460
2461
|
return m == null || m.forEach((M) => {
|
|
2461
2462
|
N.push(...M.slice(0, _ + 1));
|
|
@@ -2508,16 +2509,16 @@ const Vl = /* @__PURE__ */ be(Sl, [["render", El]]), Nl = {
|
|
|
2508
2509
|
function ne(m = "") {
|
|
2509
2510
|
D.value.getInspectorTree({ inspectorId: l.value, filter: m }).then((_) => {
|
|
2510
2511
|
const N = oe(_);
|
|
2511
|
-
i.value = N, !u.value && N.length && (u.value = N[0].id, e.value =
|
|
2512
|
+
i.value = N, !u.value && N.length && (u.value = N[0].id, e.value = w(a.value, 1), O(N[0].id));
|
|
2512
2513
|
});
|
|
2513
2514
|
}
|
|
2514
2515
|
Zt(l).toBeTruthy().then(() => ne());
|
|
2515
2516
|
function A(m) {
|
|
2516
2517
|
var N, M;
|
|
2517
2518
|
const _ = oe(m);
|
|
2518
|
-
!_.rootNodes.length || _.inspectorId !== l.value || (i.value = _.rootNodes, v.value.includes(u.value) || (u.value = (M = (N = i.value) == null ? void 0 : N[0]) == null ? void 0 : M.id, e.value =
|
|
2519
|
+
!_.rootNodes.length || _.inspectorId !== l.value || (i.value = _.rootNodes, v.value.includes(u.value) || (u.value = (M = (N = i.value) == null ? void 0 : N[0]) == null ? void 0 : M.id, e.value = w(a.value, 1)));
|
|
2519
2520
|
}
|
|
2520
|
-
function
|
|
2521
|
+
function b(m) {
|
|
2521
2522
|
const _ = oe(m);
|
|
2522
2523
|
if (_.inspectorId !== l.value || !_.state || _.nodeId !== u.value)
|
|
2523
2524
|
return;
|
|
@@ -2525,9 +2526,9 @@ const Vl = /* @__PURE__ */ be(Sl, [["render", El]]), Nl = {
|
|
|
2525
2526
|
C.value = I(M);
|
|
2526
2527
|
}
|
|
2527
2528
|
return Me(() => {
|
|
2528
|
-
D.functions.on(X.INSPECTOR_TREE_UPDATED, A), D.functions.on(X.INSPECTOR_STATE_UPDATED,
|
|
2529
|
+
D.functions.on(X.INSPECTOR_TREE_UPDATED, A), D.functions.on(X.INSPECTOR_STATE_UPDATED, b);
|
|
2529
2530
|
}), ke(() => {
|
|
2530
|
-
D.functions.off(X.INSPECTOR_TREE_UPDATED, A), D.functions.off(X.INSPECTOR_STATE_UPDATED,
|
|
2531
|
+
D.functions.off(X.INSPECTOR_TREE_UPDATED, A), D.functions.off(X.INSPECTOR_STATE_UPDATED, b);
|
|
2531
2532
|
}), (m, _) => (d(), h("div", Xl, [
|
|
2532
2533
|
y(Ve, {
|
|
2533
2534
|
"doc-link": r(t).homepage
|
|
@@ -2901,65 +2902,65 @@ const m1 = /* @__PURE__ */ be(p1, [["render", v1]]), h1 = {
|
|
|
2901
2902
|
__name: "Index",
|
|
2902
2903
|
setup(n) {
|
|
2903
2904
|
const { expanded: e } = _e(), { expanded: o } = _e("pinia-store-state"), t = Qt, l = R([]), s = R([]), p = xe(), i = R(""), a = R([]), f = E(() => {
|
|
2904
|
-
var
|
|
2905
|
-
return (
|
|
2906
|
-
}), v = E(() =>
|
|
2907
|
-
te(T, (
|
|
2908
|
-
!
|
|
2905
|
+
var b, m;
|
|
2906
|
+
return (b = a.value) != null && b.length ? z((m = a.value) == null ? void 0 : m[0]) : [];
|
|
2907
|
+
}), v = E(() => w(a.value)), u = E(() => v.value.map((b) => b.id)), C = R({}), T = R(""), k = R("");
|
|
2908
|
+
te(T, (b, m) => {
|
|
2909
|
+
!b.trim().length && !m.trim().length || ee(b);
|
|
2909
2910
|
});
|
|
2910
2911
|
const g = E(() => nt({
|
|
2911
2912
|
state: C.value,
|
|
2912
2913
|
filterKey: k.value
|
|
2913
2914
|
})), $ = E(() => {
|
|
2914
|
-
var
|
|
2915
|
-
return !((
|
|
2915
|
+
var b, m;
|
|
2916
|
+
return !((b = C.value.state) != null && b.length) && !((m = C.value.getters) != null && m.length);
|
|
2916
2917
|
});
|
|
2917
|
-
function z(
|
|
2918
|
+
function z(b, m = [], _ = []) {
|
|
2918
2919
|
var N;
|
|
2919
|
-
return m.push(
|
|
2920
|
+
return m.push(b.id), ((N = b.children) == null ? void 0 : N.length) === 0 && _.push([...m]), Array.isArray(b.children) && b.children.forEach((M) => {
|
|
2920
2921
|
z(M, m, _);
|
|
2921
2922
|
}), m.pop(), _;
|
|
2922
2923
|
}
|
|
2923
|
-
function V(
|
|
2924
|
+
function V(b, m) {
|
|
2924
2925
|
const _ = [];
|
|
2925
|
-
return
|
|
2926
|
+
return b == null || b.forEach((N) => {
|
|
2926
2927
|
_.push(...N.slice(0, m + 1));
|
|
2927
2928
|
}), [...new Set(_)];
|
|
2928
2929
|
}
|
|
2929
|
-
function b
|
|
2930
|
+
function w(b) {
|
|
2930
2931
|
const m = [], _ = (N) => {
|
|
2931
2932
|
N == null || N.forEach((M) => {
|
|
2932
2933
|
var G;
|
|
2933
2934
|
m.push(M), (G = M.children) != null && G.length && _(M.children);
|
|
2934
2935
|
});
|
|
2935
2936
|
};
|
|
2936
|
-
return _(
|
|
2937
|
+
return _(b), m;
|
|
2937
2938
|
}
|
|
2938
2939
|
function P() {
|
|
2939
|
-
D.value.getInspectorNodeActions(t).then((
|
|
2940
|
-
l.value =
|
|
2940
|
+
D.value.getInspectorNodeActions(t).then((b) => {
|
|
2941
|
+
l.value = b;
|
|
2941
2942
|
});
|
|
2942
2943
|
}
|
|
2943
2944
|
function F() {
|
|
2944
|
-
D.value.getInspectorActions(t).then((
|
|
2945
|
-
s.value =
|
|
2945
|
+
D.value.getInspectorActions(t).then((b) => {
|
|
2946
|
+
s.value = b;
|
|
2946
2947
|
});
|
|
2947
2948
|
}
|
|
2948
2949
|
P(), F();
|
|
2949
|
-
function K(
|
|
2950
|
-
D.value.callInspectorNodeAction(t,
|
|
2950
|
+
function K(b) {
|
|
2951
|
+
D.value.callInspectorNodeAction(t, b, i.value);
|
|
2951
2952
|
}
|
|
2952
|
-
function ce(
|
|
2953
|
-
D.value.callInspectorAction(t,
|
|
2953
|
+
function ce(b) {
|
|
2954
|
+
D.value.callInspectorAction(t, b);
|
|
2954
2955
|
}
|
|
2955
|
-
function L(
|
|
2956
|
+
function L(b) {
|
|
2956
2957
|
var m;
|
|
2957
|
-
for (const _ in
|
|
2958
|
-
(m =
|
|
2959
|
-
return
|
|
2958
|
+
for (const _ in b)
|
|
2959
|
+
(m = b[_]) != null && m.length || delete b[_];
|
|
2960
|
+
return b;
|
|
2960
2961
|
}
|
|
2961
|
-
function I(
|
|
2962
|
-
D.value.getInspectorState({ inspectorId: t, nodeId:
|
|
2962
|
+
function I(b) {
|
|
2963
|
+
D.value.getInspectorState({ inspectorId: t, nodeId: b }).then((m) => {
|
|
2963
2964
|
const _ = oe(m);
|
|
2964
2965
|
_ && (C.value = L(_), o.value = Array.from({ length: Object.keys(C.value).length }, (N, M) => `${M}`));
|
|
2965
2966
|
});
|
|
@@ -2970,19 +2971,19 @@ const m1 = /* @__PURE__ */ be(p1, [["render", v1]]), h1 = {
|
|
|
2970
2971
|
te(i, () => {
|
|
2971
2972
|
O(), I(i.value);
|
|
2972
2973
|
});
|
|
2973
|
-
function ee(
|
|
2974
|
-
D.value.getInspectorTree({ inspectorId: t, filter:
|
|
2974
|
+
function ee(b = "") {
|
|
2975
|
+
D.value.getInspectorTree({ inspectorId: t, filter: b }).then((m) => {
|
|
2975
2976
|
const _ = oe(m);
|
|
2976
2977
|
a.value = _, !i.value && _.length && (i.value = _[0].id, I(_[0].id), e.value = V(f.value, 1));
|
|
2977
2978
|
});
|
|
2978
2979
|
}
|
|
2979
2980
|
ee();
|
|
2980
|
-
function ne(
|
|
2981
|
-
const m = oe(
|
|
2981
|
+
function ne(b) {
|
|
2982
|
+
const m = oe(b);
|
|
2982
2983
|
m.inspectorId !== t || !m.rootNodes.length || (a.value = m.rootNodes, u.value.includes(i.value) || (i.value = m.rootNodes[0].id, e.value = V(f.value, 1), I(m.rootNodes[0].id)));
|
|
2983
2984
|
}
|
|
2984
|
-
function A(
|
|
2985
|
-
const m = oe(
|
|
2985
|
+
function A(b) {
|
|
2986
|
+
const m = oe(b);
|
|
2986
2987
|
if (m.inspectorId !== t)
|
|
2987
2988
|
return;
|
|
2988
2989
|
const _ = m.state;
|
|
@@ -2993,7 +2994,7 @@ const m1 = /* @__PURE__ */ be(p1, [["render", v1]]), h1 = {
|
|
|
2993
2994
|
}
|
|
2994
2995
|
return D.functions.on(X.INSPECTOR_TREE_UPDATED, ne), D.functions.on(X.INSPECTOR_STATE_UPDATED, A), ke(() => {
|
|
2995
2996
|
D.functions.off(X.INSPECTOR_TREE_UPDATED, ne), D.functions.off(X.INSPECTOR_STATE_UPDATED, A);
|
|
2996
|
-
}), (
|
|
2997
|
+
}), (b, m) => (d(), h("div", I1, [
|
|
2997
2998
|
y(Ve, {
|
|
2998
2999
|
"doc-link": "https://pinia.vuejs.org/",
|
|
2999
3000
|
"github-repo-link": "https://github.com/vuejs/pinia"
|
|
@@ -3349,11 +3350,11 @@ const z1 = /* @__PURE__ */ be(U1, [["render", j1]]), B1 = {
|
|
|
3349
3350
|
O && (T.value = z(O), o.value = Array.from({ length: Object.keys(T.value).length }, (ee, ne) => `${ne}`));
|
|
3350
3351
|
});
|
|
3351
3352
|
}
|
|
3352
|
-
function
|
|
3353
|
+
function w() {
|
|
3353
3354
|
T.value = {};
|
|
3354
3355
|
}
|
|
3355
3356
|
te(s, () => {
|
|
3356
|
-
|
|
3357
|
+
w(), V(s.value);
|
|
3357
3358
|
});
|
|
3358
3359
|
const P = async (L = "") => {
|
|
3359
3360
|
await D.value.getInspectorTree({ inspectorId: l.value, filter: L }).then((I) => {
|