@promakeai/inspector 1.2.2 → 1.2.3
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/App.d.ts.map +1 -1
- package/dist/components/ControlBox/index.d.ts.map +1 -1
- package/dist/inspector.js +121 -118
- package/package.json +1 -1
package/dist/App.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../src/App.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAsRH,wBAAgB,GAAG,
|
|
1
|
+
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../src/App.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAsRH,wBAAgB,GAAG,4CA6tBlB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ControlBox/index.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAUH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAMtE,UAAU,eAAe;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,WAAW,CAAC;IACrB,WAAW,EAAE,mBAAmB,CAAC;IACjC,SAAS,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,SAAS,GAAG,aAAa,GAAG,IAAI,CAAC;IACzE,aAAa,EAAE,CAAC,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,SAAS,GAAG,aAAa,CAAC,EAAE,CAAC;IAC1E,WAAW,EAAE,CACX,GAAG,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,SAAS,GAAG,aAAa,GAAG,IAAI,KAC/D,IAAI,CAAC;IACV,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;IAC7B,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,CAAC;IACjD,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACjC;AA6BD,wBAAgB,UAAU,CAAC,EACzB,SAAS,EACT,OAAO,EACP,WAAW,EACX,SAAS,EACT,aAAa,EACb,WAAW,EACX,OAAO,EACP,cAAc,EACd,YAAiB,EACjB,eAAe,EACf,MAAM,EAAE,YAAY,GACrB,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ControlBox/index.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAUH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAMtE,UAAU,eAAe;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,WAAW,CAAC;IACrB,WAAW,EAAE,mBAAmB,CAAC;IACjC,SAAS,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,SAAS,GAAG,aAAa,GAAG,IAAI,CAAC;IACzE,aAAa,EAAE,CAAC,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,SAAS,GAAG,aAAa,CAAC,EAAE,CAAC;IAC1E,WAAW,EAAE,CACX,GAAG,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,SAAS,GAAG,aAAa,GAAG,IAAI,KAC/D,IAAI,CAAC;IACV,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;IAC7B,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,CAAC;IACjD,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACjC;AA6BD,wBAAgB,UAAU,CAAC,EACzB,SAAS,EACT,OAAO,EACP,WAAW,EACX,SAAS,EACT,aAAa,EACb,WAAW,EACX,OAAO,EACP,cAAc,EACd,YAAiB,EACjB,eAAe,EACf,MAAM,EAAE,YAAY,GACrB,EAAE,eAAe,2CA8nBjB"}
|
package/dist/inspector.js
CHANGED
|
@@ -187,13 +187,13 @@ function So({
|
|
|
187
187
|
const l = 16, f = () => {
|
|
188
188
|
const S = Date.now(), k = S - d;
|
|
189
189
|
if (k >= l) {
|
|
190
|
-
const
|
|
191
|
-
r(
|
|
190
|
+
const x = i.getBoundingClientRect();
|
|
191
|
+
r(x);
|
|
192
192
|
const B = Array.from(i.children).filter((E) => !E.closest("[data-inspector-ignore]")).map((E) => E.getBoundingClientRect());
|
|
193
193
|
g(B), d = S;
|
|
194
194
|
} else p || (p = window.setTimeout(() => {
|
|
195
|
-
const
|
|
196
|
-
r(
|
|
195
|
+
const x = i.getBoundingClientRect();
|
|
196
|
+
r(x);
|
|
197
197
|
const B = Array.from(i.children).filter((E) => !E.closest("[data-inspector-ignore]")).map((E) => E.getBoundingClientRect());
|
|
198
198
|
g(B), d = Date.now(), p = null;
|
|
199
199
|
}, l - k));
|
|
@@ -207,10 +207,10 @@ function So({
|
|
|
207
207
|
typeof ResizeObserver < "u" && (v = new ResizeObserver(() => {
|
|
208
208
|
f();
|
|
209
209
|
}), v.observe(i));
|
|
210
|
-
let
|
|
211
|
-
return typeof MutationObserver < "u" && (
|
|
210
|
+
let C = null;
|
|
211
|
+
return typeof MutationObserver < "u" && (C = new MutationObserver(() => {
|
|
212
212
|
f();
|
|
213
|
-
}),
|
|
213
|
+
}), C.observe(i, {
|
|
214
214
|
attributes: !0,
|
|
215
215
|
attributeFilter: ["style", "class"],
|
|
216
216
|
childList: !0,
|
|
@@ -220,7 +220,7 @@ function So({
|
|
|
220
220
|
characterData: !0
|
|
221
221
|
// Track text content changes
|
|
222
222
|
})), () => {
|
|
223
|
-
window.removeEventListener("scroll", _, !0), window.removeEventListener("resize", _), v && v.disconnect(),
|
|
223
|
+
window.removeEventListener("scroll", _, !0), window.removeEventListener("resize", _), v && v.disconnect(), C && C.disconnect(), p && clearTimeout(p);
|
|
224
224
|
};
|
|
225
225
|
}, [i, t]), n ? /* @__PURE__ */ h(Kt, { children: [
|
|
226
226
|
/* @__PURE__ */ s(
|
|
@@ -1245,7 +1245,7 @@ const Kn = "_textarea_d64yp_1", Yn = {
|
|
|
1245
1245
|
const f = typeof p == "object" ? p?.current : null;
|
|
1246
1246
|
if (!f || !o) return;
|
|
1247
1247
|
f.style.height = "auto";
|
|
1248
|
-
const _ = window.getComputedStyle(f), v = parseInt(_.lineHeight) || 20,
|
|
1248
|
+
const _ = window.getComputedStyle(f), v = parseInt(_.lineHeight) || 20, C = parseInt(_.paddingTop) || 0, S = parseInt(_.paddingBottom) || 0, k = parseInt(_.borderTopWidth) || 0, x = parseInt(_.borderBottomWidth) || 0, L = v * n + C + S + k + x, B = v * r + C + S + k + x, E = Math.min(Math.max(f.scrollHeight, L), B);
|
|
1249
1249
|
f.style.height = `${E}px`;
|
|
1250
1250
|
}, [o, n, r, p]);
|
|
1251
1251
|
M(() => {
|
|
@@ -1448,11 +1448,11 @@ const Qn = "_container_co6v7_1", er = "_textarea_co6v7_19", tr = "_input_co6v7_4
|
|
|
1448
1448
|
inputContainer: or
|
|
1449
1449
|
};
|
|
1450
1450
|
function nr({ element: e, elementData: t, onRequestAI: o }) {
|
|
1451
|
-
const { theme: n, labels: r, addChange: a, updateChange: g, changes: u, isSaving: c } = Y(), [i, p] = N(""), [d, l] = N(""), [f, _] = N(""), [v,
|
|
1451
|
+
const { theme: n, labels: r, addChange: a, updateChange: g, changes: u, isSaving: c } = Y(), [i, p] = N(""), [d, l] = N(""), [f, _] = N(""), [v, C] = N({ safe: !0, instanceCount: 1 }), S = P(null), k = P(null), x = Jn(e);
|
|
1452
1452
|
M(() => {
|
|
1453
1453
|
if (e) {
|
|
1454
1454
|
const b = Ct(e);
|
|
1455
|
-
|
|
1455
|
+
C(b);
|
|
1456
1456
|
}
|
|
1457
1457
|
}, [e]);
|
|
1458
1458
|
const L = ae((b) => {
|
|
@@ -1470,8 +1470,8 @@ function nr({ element: e, elementData: t, onRequestAI: o }) {
|
|
|
1470
1470
|
M(() => {
|
|
1471
1471
|
if (!e) return;
|
|
1472
1472
|
const b = t.isTextNode && t.textContent ? t.textContent : e.textContent?.trim() || "";
|
|
1473
|
-
p(b), l(b), k.current = null,
|
|
1474
|
-
}, [e, t,
|
|
1473
|
+
p(b), l(b), k.current = null, x && _(e.href || ""), S.current && (S.current.focus(), S.current.select());
|
|
1474
|
+
}, [e, t, x]), M(() => {
|
|
1475
1475
|
if (c || !k.current) return;
|
|
1476
1476
|
u.some((w) => w.id === k.current) || (p(d), L(d), k.current = null);
|
|
1477
1477
|
}, [u, c, d, L]);
|
|
@@ -1486,8 +1486,8 @@ function nr({ element: e, elementData: t, onRequestAI: o }) {
|
|
|
1486
1486
|
k.current = w.id, a(w);
|
|
1487
1487
|
}
|
|
1488
1488
|
}, [L, d, t, a, g]), E = ae((b) => {
|
|
1489
|
-
_(b),
|
|
1490
|
-
}, [e,
|
|
1489
|
+
_(b), x && e && (e.href = b);
|
|
1490
|
+
}, [e, x]), V = () => {
|
|
1491
1491
|
o && o(`Change the text "${d}" to something else`);
|
|
1492
1492
|
};
|
|
1493
1493
|
return /* @__PURE__ */ h("div", { className: je.container, children: [
|
|
@@ -1513,7 +1513,7 @@ function nr({ element: e, elementData: t, onRequestAI: o }) {
|
|
|
1513
1513
|
}
|
|
1514
1514
|
}
|
|
1515
1515
|
) }),
|
|
1516
|
-
|
|
1516
|
+
x && /* @__PURE__ */ h("div", { className: je.inputContainer, children: [
|
|
1517
1517
|
/* @__PURE__ */ s(
|
|
1518
1518
|
"label",
|
|
1519
1519
|
{
|
|
@@ -1655,9 +1655,9 @@ function fr({ element: e, elementData: t }) {
|
|
|
1655
1655
|
if (e instanceof HTMLImageElement)
|
|
1656
1656
|
v = e.src;
|
|
1657
1657
|
else {
|
|
1658
|
-
const
|
|
1659
|
-
if (
|
|
1660
|
-
const S =
|
|
1658
|
+
const C = window.getComputedStyle(e).backgroundImage;
|
|
1659
|
+
if (C && C !== "none") {
|
|
1660
|
+
const S = C.match(/url\(["']?(.+?)["']?\)/);
|
|
1661
1661
|
v = S ? S[1] : "";
|
|
1662
1662
|
} else {
|
|
1663
1663
|
const S = e.querySelector("img");
|
|
@@ -1673,8 +1673,8 @@ function fr({ element: e, elementData: t }) {
|
|
|
1673
1673
|
if (e instanceof HTMLImageElement)
|
|
1674
1674
|
e.src = v;
|
|
1675
1675
|
else {
|
|
1676
|
-
const
|
|
1677
|
-
if (
|
|
1676
|
+
const C = window.getComputedStyle(e).backgroundImage;
|
|
1677
|
+
if (C && C !== "none")
|
|
1678
1678
|
e.style.backgroundImage = `url("${v}")`;
|
|
1679
1679
|
else {
|
|
1680
1680
|
const S = e.querySelector("img");
|
|
@@ -1686,15 +1686,15 @@ function fr({ element: e, elementData: t }) {
|
|
|
1686
1686
|
);
|
|
1687
1687
|
M(() => {
|
|
1688
1688
|
if (p || !d.current) return;
|
|
1689
|
-
i.some((
|
|
1689
|
+
i.some((C) => C.id === d.current) || (a(null), n(null), f(l.current), d.current = null);
|
|
1690
1690
|
}, [i, p, f]);
|
|
1691
1691
|
const _ = (v) => {
|
|
1692
1692
|
n(v);
|
|
1693
|
-
const
|
|
1694
|
-
|
|
1693
|
+
const C = new FileReader();
|
|
1694
|
+
C.onload = (S) => {
|
|
1695
1695
|
const k = S.target?.result;
|
|
1696
1696
|
a(k), f(k);
|
|
1697
|
-
const
|
|
1697
|
+
const x = Io(
|
|
1698
1698
|
t,
|
|
1699
1699
|
l.current,
|
|
1700
1700
|
k,
|
|
@@ -1704,8 +1704,8 @@ function fr({ element: e, elementData: t }) {
|
|
|
1704
1704
|
type: v.type
|
|
1705
1705
|
}
|
|
1706
1706
|
);
|
|
1707
|
-
d.current =
|
|
1708
|
-
},
|
|
1707
|
+
d.current = x.id, c(x);
|
|
1708
|
+
}, C.readAsDataURL(v);
|
|
1709
1709
|
};
|
|
1710
1710
|
return /* @__PURE__ */ h("div", { className: $t.container, children: [
|
|
1711
1711
|
/* @__PURE__ */ s(ur, { onFileSelect: _, previewImage: r }),
|
|
@@ -2294,19 +2294,19 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
2294
2294
|
"ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
2295
2295
|
r(d)
|
|
2296
2296
|
), typeof d == "string" && l && typeof l.as == "string") {
|
|
2297
|
-
var f = l.as, _ = n(f, l.crossOrigin), v = typeof l.integrity == "string" ? l.integrity : void 0,
|
|
2297
|
+
var f = l.as, _ = n(f, l.crossOrigin), v = typeof l.integrity == "string" ? l.integrity : void 0, C = typeof l.fetchPriority == "string" ? l.fetchPriority : void 0;
|
|
2298
2298
|
f === "style" ? c.d.S(
|
|
2299
2299
|
d,
|
|
2300
2300
|
typeof l.precedence == "string" ? l.precedence : void 0,
|
|
2301
2301
|
{
|
|
2302
2302
|
crossOrigin: _,
|
|
2303
2303
|
integrity: v,
|
|
2304
|
-
fetchPriority:
|
|
2304
|
+
fetchPriority: C
|
|
2305
2305
|
}
|
|
2306
2306
|
) : f === "script" && c.d.X(d, {
|
|
2307
2307
|
crossOrigin: _,
|
|
2308
2308
|
integrity: v,
|
|
2309
|
-
fetchPriority:
|
|
2309
|
+
fetchPriority: C,
|
|
2310
2310
|
nonce: typeof l.nonce == "string" ? l.nonce : void 0
|
|
2311
2311
|
});
|
|
2312
2312
|
}
|
|
@@ -2438,30 +2438,30 @@ var He = function(e, t, o) {
|
|
|
2438
2438
|
!Ve(e) && e.preventDefault();
|
|
2439
2439
|
}, xt = z.memo(function(e) {
|
|
2440
2440
|
var t = e.onMove, o = e.onKey, n = ro(e, ["onMove", "onKey"]), r = P(null), a = ht(t), g = ht(o), u = P(null), c = P(!1), i = Qe(function() {
|
|
2441
|
-
var f = function(
|
|
2442
|
-
Gt(
|
|
2441
|
+
var f = function(C) {
|
|
2442
|
+
Gt(C), (Ve(C) ? C.touches.length > 0 : C.buttons > 0) && r.current ? a(Ut(r.current, C, u.current)) : v(!1);
|
|
2443
2443
|
}, _ = function() {
|
|
2444
2444
|
return v(!1);
|
|
2445
2445
|
};
|
|
2446
|
-
function v(
|
|
2447
|
-
var S = c.current, k = mt(r.current),
|
|
2448
|
-
|
|
2446
|
+
function v(C) {
|
|
2447
|
+
var S = c.current, k = mt(r.current), x = C ? k.addEventListener : k.removeEventListener;
|
|
2448
|
+
x(S ? "touchmove" : "mousemove", f), x(S ? "touchend" : "mouseup", _);
|
|
2449
2449
|
}
|
|
2450
|
-
return [function(
|
|
2451
|
-
var S =
|
|
2450
|
+
return [function(C) {
|
|
2451
|
+
var S = C.nativeEvent, k = r.current;
|
|
2452
2452
|
if (k && (Gt(S), !(function(L, B) {
|
|
2453
2453
|
return B && !Ve(L);
|
|
2454
2454
|
})(S, c.current) && k)) {
|
|
2455
2455
|
if (Ve(S)) {
|
|
2456
2456
|
c.current = !0;
|
|
2457
|
-
var
|
|
2458
|
-
|
|
2457
|
+
var x = S.changedTouches || [];
|
|
2458
|
+
x.length && (u.current = x[0].identifier);
|
|
2459
2459
|
}
|
|
2460
2460
|
k.focus(), a(Ut(k, S, u.current)), v(!0);
|
|
2461
2461
|
}
|
|
2462
|
-
}, function(
|
|
2463
|
-
var S =
|
|
2464
|
-
S < 37 || S > 40 || (
|
|
2462
|
+
}, function(C) {
|
|
2463
|
+
var S = C.which || C.keyCode;
|
|
2464
|
+
S < 37 || S > 40 || (C.preventDefault(), g({ left: S === 39 ? 0.05 : S === 37 ? -0.05 : 0, top: S === 40 ? 0.05 : S === 38 ? -0.05 : 0 }));
|
|
2465
2465
|
}, v];
|
|
2466
2466
|
}, [g, a]), p = i[0], d = i[1], l = i[2];
|
|
2467
2467
|
return M(function() {
|
|
@@ -2593,7 +2593,7 @@ function kt({
|
|
|
2593
2593
|
originalValue: n,
|
|
2594
2594
|
onReset: r
|
|
2595
2595
|
}) {
|
|
2596
|
-
const { theme: a } = Y(), g = n !== void 0 && t !== n, [u, c] = N(""), [i, p] = N(!1), [d, l] = N(!1), f = P(null), _ = P(null), [v,
|
|
2596
|
+
const { theme: a } = Y(), g = n !== void 0 && t !== n, [u, c] = N(""), [i, p] = N(!1), [d, l] = N(!1), f = P(null), _ = P(null), [v, C] = N({ top: 0, left: 0 }), S = Qe(() => {
|
|
2597
2597
|
let b = { r: 0, g: 0, b: 0, a: 1 };
|
|
2598
2598
|
if (t === "transparent")
|
|
2599
2599
|
b = { r: 255, g: 255, b: 255, a: 0 };
|
|
@@ -2635,7 +2635,7 @@ function kt({
|
|
|
2635
2635
|
T >= W || T > G ? U = w.bottom + 8 : U = Math.max(w.top - W - 8, Z.top + 8), U + W > Z.bottom - 8 && (U = Z.bottom - W - 8), U < Z.top + 8 && (U = Z.top + 8);
|
|
2636
2636
|
} else
|
|
2637
2637
|
U = w.bottom + 8, U + W > A - 8 && (U = w.top - W - 8), U < 8 && (U = 8);
|
|
2638
|
-
te + J > O - 8 && (te = O - J - 8), te < 8 && (te = 8),
|
|
2638
|
+
te + J > O - 8 && (te = O - J - 8), te < 8 && (te = 8), C({ top: U, left: te });
|
|
2639
2639
|
});
|
|
2640
2640
|
}, [d]), M(() => {
|
|
2641
2641
|
if (!d) return;
|
|
@@ -2650,7 +2650,7 @@ function kt({
|
|
|
2650
2650
|
clearTimeout(A), document.removeEventListener("mousedown", b), document.removeEventListener("keydown", w);
|
|
2651
2651
|
};
|
|
2652
2652
|
}, [d]);
|
|
2653
|
-
const
|
|
2653
|
+
const x = (b) => {
|
|
2654
2654
|
if (b.a < 1)
|
|
2655
2655
|
o(`rgba(${b.r}, ${b.g}, ${b.b}, ${b.a})`);
|
|
2656
2656
|
else {
|
|
@@ -2743,7 +2743,7 @@ function kt({
|
|
|
2743
2743
|
boxShadow: "var(--pi-shadow-lg)",
|
|
2744
2744
|
pointerEvents: "auto"
|
|
2745
2745
|
},
|
|
2746
|
-
children: /* @__PURE__ */ s(Rr, { color: S, onChange:
|
|
2746
|
+
children: /* @__PURE__ */ s(Rr, { color: S, onChange: x })
|
|
2747
2747
|
}
|
|
2748
2748
|
),
|
|
2749
2749
|
Zr()
|
|
@@ -2761,11 +2761,11 @@ function ee({
|
|
|
2761
2761
|
originalValue: u,
|
|
2762
2762
|
onReset: c
|
|
2763
2763
|
}) {
|
|
2764
|
-
const { labels: i, theme: p } = Y(), d = u !== void 0 && t !== u, [l, f] = N(!1), _ = P(0), v = P(0),
|
|
2764
|
+
const { labels: i, theme: p } = Y(), d = u !== void 0 && t !== u, [l, f] = N(!1), _ = P(0), v = P(0), C = P(null), k = ((E) => {
|
|
2765
2765
|
if (!E) return 0;
|
|
2766
2766
|
const V = parseFloat(E.replace(/[^\d.-]/g, ""));
|
|
2767
2767
|
return isNaN(V) ? 0 : V;
|
|
2768
|
-
})(t),
|
|
2768
|
+
})(t), x = (E) => {
|
|
2769
2769
|
o(E.target.value);
|
|
2770
2770
|
}, L = (E) => (Math.round(E * 100) / 100).toString();
|
|
2771
2771
|
M(() => {
|
|
@@ -2813,7 +2813,7 @@ function ee({
|
|
|
2813
2813
|
{
|
|
2814
2814
|
type: "text",
|
|
2815
2815
|
value: t || "",
|
|
2816
|
-
onChange:
|
|
2816
|
+
onChange: x,
|
|
2817
2817
|
className: m.input,
|
|
2818
2818
|
style: {
|
|
2819
2819
|
backgroundColor: "transparent",
|
|
@@ -2824,7 +2824,7 @@ function ee({
|
|
|
2824
2824
|
/* @__PURE__ */ s(
|
|
2825
2825
|
"div",
|
|
2826
2826
|
{
|
|
2827
|
-
ref:
|
|
2827
|
+
ref: C,
|
|
2828
2828
|
onMouseDown: B,
|
|
2829
2829
|
className: m.dragHandle,
|
|
2830
2830
|
style: {
|
|
@@ -2912,21 +2912,21 @@ function xe({
|
|
|
2912
2912
|
onOpenChange: a
|
|
2913
2913
|
}) {
|
|
2914
2914
|
const [g, u] = j.useState(t), [c, i] = j.useState(!1), p = j.useRef(null), d = j.useRef(null), l = j.useRef(/* @__PURE__ */ new Map()), f = e !== void 0 ? e : g, _ = r !== void 0 ? r : c, v = j.useCallback(
|
|
2915
|
-
(
|
|
2916
|
-
r === void 0 && i(
|
|
2915
|
+
(x) => {
|
|
2916
|
+
r === void 0 && i(x), a?.(x);
|
|
2917
2917
|
},
|
|
2918
2918
|
[r, a]
|
|
2919
|
-
),
|
|
2920
|
-
(
|
|
2921
|
-
e === void 0 && u(
|
|
2919
|
+
), C = j.useCallback(
|
|
2920
|
+
(x) => {
|
|
2921
|
+
e === void 0 && u(x), o?.(x), v(!1);
|
|
2922
2922
|
},
|
|
2923
2923
|
[e, o, v]
|
|
2924
|
-
), S = j.useCallback((
|
|
2925
|
-
l.current.set(
|
|
2924
|
+
), S = j.useCallback((x, L) => {
|
|
2925
|
+
l.current.set(x, L);
|
|
2926
2926
|
}, []), k = j.useMemo(
|
|
2927
2927
|
() => ({
|
|
2928
2928
|
value: f,
|
|
2929
|
-
onValueChange:
|
|
2929
|
+
onValueChange: C,
|
|
2930
2930
|
open: _,
|
|
2931
2931
|
setOpen: v,
|
|
2932
2932
|
triggerRef: p,
|
|
@@ -2934,7 +2934,7 @@ function xe({
|
|
|
2934
2934
|
itemLabels: l.current,
|
|
2935
2935
|
registerItem: S
|
|
2936
2936
|
}),
|
|
2937
|
-
[f,
|
|
2937
|
+
[f, C, _, v, S]
|
|
2938
2938
|
);
|
|
2939
2939
|
return /* @__PURE__ */ s(lo.Provider, { value: k, children: n });
|
|
2940
2940
|
}
|
|
@@ -2993,7 +2993,7 @@ function Se({
|
|
|
2993
2993
|
style: r,
|
|
2994
2994
|
sideOffset: a = 4
|
|
2995
2995
|
}) {
|
|
2996
|
-
const { open: g, setOpen: u, triggerRef: c, contentRef: i, value: p } = ot(), { theme: d } = Y(), [l, f] = j.useState(-1), _ = j.useRef(/* @__PURE__ */ new Map()), [v,
|
|
2996
|
+
const { open: g, setOpen: u, triggerRef: c, contentRef: i, value: p } = ot(), { theme: d } = Y(), [l, f] = j.useState(-1), _ = j.useRef(/* @__PURE__ */ new Map()), [v, C] = j.useState({
|
|
2997
2997
|
top: 0,
|
|
2998
2998
|
left: 0,
|
|
2999
2999
|
width: 0,
|
|
@@ -3004,22 +3004,22 @@ function Se({
|
|
|
3004
3004
|
if (!g || !c.current) return;
|
|
3005
3005
|
const k = requestAnimationFrame(() => {
|
|
3006
3006
|
if (!c.current) return;
|
|
3007
|
-
const
|
|
3007
|
+
const x = c.current.getBoundingClientRect(), L = window.innerHeight, B = window.innerWidth, E = c.current.closest(
|
|
3008
3008
|
'[class*="controlBox"]'
|
|
3009
3009
|
);
|
|
3010
3010
|
let V = 300, b = !1;
|
|
3011
3011
|
if (E) {
|
|
3012
|
-
const A = E.getBoundingClientRect(), O = A.bottom -
|
|
3012
|
+
const A = E.getBoundingClientRect(), O = A.bottom - x.bottom - a - 16, J = x.top - A.top - a - 16;
|
|
3013
3013
|
b = O < 150 && J > O, V = Math.max(Math.min(b ? J : O, 300), 100);
|
|
3014
3014
|
} else {
|
|
3015
|
-
const A = L -
|
|
3015
|
+
const A = L - x.bottom - a, O = x.top - a;
|
|
3016
3016
|
b = A < 200 && O > A, V = Math.min(b ? O - 16 : A - 16, 300);
|
|
3017
3017
|
}
|
|
3018
|
-
let w =
|
|
3019
|
-
w +
|
|
3020
|
-
top: b ?
|
|
3018
|
+
let w = x.left;
|
|
3019
|
+
w + x.width > B - 8 && (w = B - x.width - 8), w < 8 && (w = 8), C({
|
|
3020
|
+
top: b ? x.top - a : x.bottom + a,
|
|
3021
3021
|
left: w,
|
|
3022
|
-
width:
|
|
3022
|
+
width: x.width,
|
|
3023
3023
|
maxHeight: V,
|
|
3024
3024
|
openAbove: b
|
|
3025
3025
|
});
|
|
@@ -3029,30 +3029,30 @@ function Se({
|
|
|
3029
3029
|
if (!g) return;
|
|
3030
3030
|
const k = (B) => {
|
|
3031
3031
|
i.current && !i.current.contains(B.target) && c.current && !c.current.contains(B.target) && u(!1);
|
|
3032
|
-
},
|
|
3032
|
+
}, x = (B) => {
|
|
3033
3033
|
(B.key === "Escape" || B.key === "Tab") && u(!1);
|
|
3034
3034
|
}, L = setTimeout(() => {
|
|
3035
|
-
document.addEventListener("mousedown", k), document.addEventListener("keydown",
|
|
3035
|
+
document.addEventListener("mousedown", k), document.addEventListener("keydown", x);
|
|
3036
3036
|
}, 100);
|
|
3037
3037
|
return () => {
|
|
3038
|
-
clearTimeout(L), document.removeEventListener("mousedown", k), document.removeEventListener("keydown",
|
|
3038
|
+
clearTimeout(L), document.removeEventListener("mousedown", k), document.removeEventListener("keydown", x);
|
|
3039
3039
|
};
|
|
3040
3040
|
}, [g, u]), j.useEffect(() => {
|
|
3041
3041
|
if (!g) return;
|
|
3042
|
-
const k = (
|
|
3042
|
+
const k = (x) => {
|
|
3043
3043
|
const L = _.current.size;
|
|
3044
|
-
if (
|
|
3045
|
-
|
|
3044
|
+
if (x.key === "ArrowDown")
|
|
3045
|
+
x.preventDefault(), f((B) => {
|
|
3046
3046
|
const E = B < L - 1 ? B + 1 : 0;
|
|
3047
3047
|
return _.current.get(E)?.scrollIntoView({ block: "nearest" }), E;
|
|
3048
3048
|
});
|
|
3049
|
-
else if (
|
|
3050
|
-
|
|
3049
|
+
else if (x.key === "ArrowUp")
|
|
3050
|
+
x.preventDefault(), f((B) => {
|
|
3051
3051
|
const E = B > 0 ? B - 1 : L - 1;
|
|
3052
3052
|
return _.current.get(E)?.scrollIntoView({ block: "nearest" }), E;
|
|
3053
3053
|
});
|
|
3054
|
-
else if (
|
|
3055
|
-
|
|
3054
|
+
else if (x.key === "Enter" && l >= 0) {
|
|
3055
|
+
x.preventDefault();
|
|
3056
3056
|
const B = _.current.get(l);
|
|
3057
3057
|
B && B.click();
|
|
3058
3058
|
}
|
|
@@ -3061,7 +3061,7 @@ function Se({
|
|
|
3061
3061
|
}, [g, l]), j.useEffect(() => {
|
|
3062
3062
|
if (g && p) {
|
|
3063
3063
|
const k = Array.from(_.current.entries()).find(
|
|
3064
|
-
([
|
|
3064
|
+
([x, L]) => L.dataset.value === p
|
|
3065
3065
|
)?.[0];
|
|
3066
3066
|
k !== void 0 && (f(k), _.current.get(k)?.scrollIntoView({ block: "nearest" }));
|
|
3067
3067
|
}
|
|
@@ -3094,8 +3094,8 @@ function Se({
|
|
|
3094
3094
|
"div",
|
|
3095
3095
|
{
|
|
3096
3096
|
className: o === "popper" ? We.viewportPopper : We.viewport,
|
|
3097
|
-
children: j.Children.map(t, (k,
|
|
3098
|
-
_index:
|
|
3097
|
+
children: j.Children.map(t, (k, x) => j.isValidElement(k) ? j.cloneElement(k, {
|
|
3098
|
+
_index: x,
|
|
3099
3099
|
_itemRefs: _,
|
|
3100
3100
|
_focusedIndex: l
|
|
3101
3101
|
}) : k)
|
|
@@ -3128,8 +3128,8 @@ function we({
|
|
|
3128
3128
|
g.current.delete(a);
|
|
3129
3129
|
};
|
|
3130
3130
|
}, [a, g]);
|
|
3131
|
-
const v = (
|
|
3132
|
-
|
|
3131
|
+
const v = (C) => {
|
|
3132
|
+
C.stopPropagation(), r || i?.(e);
|
|
3133
3133
|
};
|
|
3134
3134
|
return /* @__PURE__ */ h(
|
|
3135
3135
|
"div",
|
|
@@ -3156,11 +3156,11 @@ function we({
|
|
|
3156
3156
|
...n
|
|
3157
3157
|
},
|
|
3158
3158
|
onClick: v,
|
|
3159
|
-
onMouseEnter: (
|
|
3160
|
-
r || (
|
|
3159
|
+
onMouseEnter: (C) => {
|
|
3160
|
+
r || (C.currentTarget.style.backgroundColor = d.inputBackgroundColor || "rgba(0, 0, 0, 0.05)");
|
|
3161
3161
|
},
|
|
3162
|
-
onMouseLeave: (
|
|
3163
|
-
!r && !f && (
|
|
3162
|
+
onMouseLeave: (C) => {
|
|
3163
|
+
!r && !f && (C.currentTarget.style.backgroundColor = "transparent");
|
|
3164
3164
|
},
|
|
3165
3165
|
children: [
|
|
3166
3166
|
l && /* @__PURE__ */ s(
|
|
@@ -4087,7 +4087,7 @@ function ga({
|
|
|
4087
4087
|
const l = e.paddingVertical || e.paddingTop || "0px", f = e.paddingHorizontal || e.paddingLeft || "0px";
|
|
4088
4088
|
t("paddingTop", l), t("paddingBottom", l), t("paddingLeft", f), t("paddingRight", f);
|
|
4089
4089
|
} else if (p.current === "all" && g === "vh") {
|
|
4090
|
-
const l = e.paddingTop || "0px", f = e.paddingBottom || "0px", _ = e.paddingLeft || "0px", v = e.paddingRight || "0px",
|
|
4090
|
+
const l = e.paddingTop || "0px", f = e.paddingBottom || "0px", _ = e.paddingLeft || "0px", v = e.paddingRight || "0px", C = parseFloat(l), S = parseFloat(f), k = parseFloat(_), x = parseFloat(v), L = C > 0 || S > 0 ? Math.min(C || 999999, S || 999999) : 0, B = k > 0 || x > 0 ? Math.min(k || 999999, x || 999999) : 0;
|
|
4091
4091
|
t("paddingVertical", L > 0 ? `${L}px` : "0px"), t("paddingHorizontal", B > 0 ? `${B}px` : "0px");
|
|
4092
4092
|
}
|
|
4093
4093
|
p.current = g;
|
|
@@ -4098,7 +4098,7 @@ function ga({
|
|
|
4098
4098
|
const l = e.marginVertical || e.marginTop || "0px", f = e.marginHorizontal || e.marginLeft || "0px";
|
|
4099
4099
|
t("marginTop", l), t("marginBottom", l), t("marginLeft", f), t("marginRight", f);
|
|
4100
4100
|
} else if (d.current === "all" && c === "vh") {
|
|
4101
|
-
const l = e.marginTop || "0px", f = e.marginBottom || "0px", _ = e.marginLeft || "0px", v = e.marginRight || "0px",
|
|
4101
|
+
const l = e.marginTop || "0px", f = e.marginBottom || "0px", _ = e.marginLeft || "0px", v = e.marginRight || "0px", C = parseFloat(l), S = parseFloat(f), k = parseFloat(_), x = parseFloat(v), L = C > 0 || S > 0 ? Math.min(C || 999999, S || 999999) : 0, B = k > 0 || x > 0 ? Math.min(k || 999999, x || 999999) : 0;
|
|
4102
4102
|
t("marginVertical", L > 0 ? `${L}px` : "0px"), t("marginHorizontal", B > 0 ? `${B}px` : "0px");
|
|
4103
4103
|
}
|
|
4104
4104
|
d.current = c;
|
|
@@ -4412,7 +4412,7 @@ function va({
|
|
|
4412
4412
|
}) {
|
|
4413
4413
|
const { theme: r, labels: a, addChange: g, changes: u, isSaving: c } = Y(), [i, p] = N(
|
|
4414
4414
|
() => st(e)
|
|
4415
|
-
), [d, l] = N({ safe: !0, instanceCount: 1 }), f = P(/* @__PURE__ */ new Map()), _ = P(/* @__PURE__ */ new Map()), [v,
|
|
4415
|
+
), [d, l] = N({ safe: !0, instanceCount: 1 }), f = P(/* @__PURE__ */ new Map()), _ = P(/* @__PURE__ */ new Map()), [v, C] = N(!1), [S, k] = N(!1), [x, L] = N(!1), [B, E] = N(!1), [V, b] = N(!1), [w, A] = N(!1), { previewStyle: O, resetSingleProperty: J } = br(e), W = P(st(e));
|
|
4416
4416
|
M(() => {
|
|
4417
4417
|
if (e) {
|
|
4418
4418
|
const T = Ct(e);
|
|
@@ -4426,7 +4426,7 @@ function va({
|
|
|
4426
4426
|
n && n("Change the styles of this element");
|
|
4427
4427
|
};
|
|
4428
4428
|
M(() => {
|
|
4429
|
-
|
|
4429
|
+
C(!1), k(!1), L(!1), E(!1), b(!1), A(!1);
|
|
4430
4430
|
}, [e]), M(() => {
|
|
4431
4431
|
c || f.current.forEach((T, G) => {
|
|
4432
4432
|
const de = T.filter((ie) => u.some((le) => le.id === ie));
|
|
@@ -4476,7 +4476,7 @@ function va({
|
|
|
4476
4476
|
scrollbarColor: `${r.borderColor} transparent`
|
|
4477
4477
|
},
|
|
4478
4478
|
children: [
|
|
4479
|
-
Me(e, "layout") && /* @__PURE__ */ h(Pe, { open: v, onOpenChange:
|
|
4479
|
+
Me(e, "layout") && /* @__PURE__ */ h(Pe, { open: v, onOpenChange: C, children: [
|
|
4480
4480
|
/* @__PURE__ */ s(Le, { asChild: !0, children: /* @__PURE__ */ h(
|
|
4481
4481
|
"div",
|
|
4482
4482
|
{
|
|
@@ -4557,7 +4557,7 @@ function va({
|
|
|
4557
4557
|
}
|
|
4558
4558
|
) })
|
|
4559
4559
|
] }),
|
|
4560
|
-
Me(e, "image") && /* @__PURE__ */ h(Pe, { open:
|
|
4560
|
+
Me(e, "image") && /* @__PURE__ */ h(Pe, { open: x, onOpenChange: L, children: [
|
|
4561
4561
|
/* @__PURE__ */ s(Le, { asChild: !0, children: /* @__PURE__ */ h(
|
|
4562
4562
|
"div",
|
|
4563
4563
|
{
|
|
@@ -4568,10 +4568,10 @@ function va({
|
|
|
4568
4568
|
border: `1px solid ${r.inputBorderColor}`
|
|
4569
4569
|
},
|
|
4570
4570
|
onMouseEnter: (T) => {
|
|
4571
|
-
|
|
4571
|
+
x || (T.currentTarget.style.backgroundColor = r.secondaryButtonHoverColor || r.inputBackgroundColor);
|
|
4572
4572
|
},
|
|
4573
4573
|
onMouseLeave: (T) => {
|
|
4574
|
-
|
|
4574
|
+
x || (T.currentTarget.style.backgroundColor = "transparent");
|
|
4575
4575
|
},
|
|
4576
4576
|
children: [
|
|
4577
4577
|
/* @__PURE__ */ s("span", { children: a.imageSectionTitle || "Image" }),
|
|
@@ -4580,7 +4580,7 @@ function va({
|
|
|
4580
4580
|
{
|
|
4581
4581
|
className: re(
|
|
4582
4582
|
q.chevron,
|
|
4583
|
-
|
|
4583
|
+
x && q.chevronOpen
|
|
4584
4584
|
)
|
|
4585
4585
|
}
|
|
4586
4586
|
)
|
|
@@ -4743,18 +4743,18 @@ function Na({
|
|
|
4743
4743
|
const { theme: g, labels: u, addChange: c, changes: i } = Y(), [p, d] = N(!1), [l, f] = N(0), [_, v] = N({
|
|
4744
4744
|
safe: !0,
|
|
4745
4745
|
instanceCount: 1
|
|
4746
|
-
}),
|
|
4746
|
+
}), C = P(null), S = P([]), k = e?.parentElement, x = k && k !== document.body && !k.closest("#inspector-canvas-root");
|
|
4747
4747
|
M(() => {
|
|
4748
4748
|
if (e) {
|
|
4749
4749
|
const b = Ct(e);
|
|
4750
4750
|
v(b);
|
|
4751
4751
|
}
|
|
4752
4752
|
}, [e]), M(() => {
|
|
4753
|
-
d(!1), f(0),
|
|
4753
|
+
d(!1), f(0), C.current = null, S.current = [];
|
|
4754
4754
|
}, [e]), M(() => {
|
|
4755
|
-
if (
|
|
4756
|
-
(w) => w.id ===
|
|
4757
|
-
) || (e && (e.style.display = "", e.removeAttribute("data-inspector-deleted")), d(!1),
|
|
4755
|
+
if (C.current && (i.some(
|
|
4756
|
+
(w) => w.id === C.current
|
|
4757
|
+
) || (e && (e.style.display = "", e.removeAttribute("data-inspector-deleted")), d(!1), C.current = null)), S.current.length > 0) {
|
|
4758
4758
|
const b = S.current.filter(
|
|
4759
4759
|
(A) => i.some((O) => O.id === A)
|
|
4760
4760
|
), w = S.current.length - b.length;
|
|
@@ -4780,7 +4780,7 @@ function Na({
|
|
|
4780
4780
|
w,
|
|
4781
4781
|
O
|
|
4782
4782
|
);
|
|
4783
|
-
|
|
4783
|
+
C.current = J.id, c(J), e.style.display = "none", e.setAttribute("data-inspector-deleted", "true"), d(!0), o?.();
|
|
4784
4784
|
}, [e, t, p, c, o]), E = ae(() => {
|
|
4785
4785
|
if (!e || p || !e.parentElement) return;
|
|
4786
4786
|
const w = e.cloneNode(!0);
|
|
@@ -4788,8 +4788,8 @@ function Na({
|
|
|
4788
4788
|
const A = Do(t, w.outerHTML, w);
|
|
4789
4789
|
S.current.push(A.id), c(A), f((O) => O + 1);
|
|
4790
4790
|
}, [e, t, p, c]), V = ae(() => {
|
|
4791
|
-
!
|
|
4792
|
-
}, [
|
|
4791
|
+
!x || !k || r?.(k);
|
|
4792
|
+
}, [x, k, r]);
|
|
4793
4793
|
return /* @__PURE__ */ h("div", { className: ye.container, children: [
|
|
4794
4794
|
/* @__PURE__ */ s(
|
|
4795
4795
|
vt,
|
|
@@ -4799,7 +4799,7 @@ function Na({
|
|
|
4799
4799
|
}
|
|
4800
4800
|
),
|
|
4801
4801
|
/* @__PURE__ */ h("div", { className: ye.section, children: [
|
|
4802
|
-
|
|
4802
|
+
x && /* @__PURE__ */ h(
|
|
4803
4803
|
"button",
|
|
4804
4804
|
{
|
|
4805
4805
|
className: `${ye.actionButton} ${ye.parentButton}`,
|
|
@@ -4987,10 +4987,10 @@ function Za({
|
|
|
4987
4987
|
changes: f,
|
|
4988
4988
|
undoLastChange: _,
|
|
4989
4989
|
discardAllChanges: v,
|
|
4990
|
-
clearChanges:
|
|
4990
|
+
clearChanges: C,
|
|
4991
4991
|
getMergedChanges: S,
|
|
4992
4992
|
setSaving: k
|
|
4993
|
-
} = Y(), { sendToParent:
|
|
4993
|
+
} = Y(), { sendToParent: x } = Jt(), L = f.length > 0, [B, E] = N(!1), [V, b] = N(null), [w, A] = N(!1), [O, J] = N(null), W = V ? "switch" : w ? "goToCode" : O ? "prompt" : "close", fe = (I) => {
|
|
4994
4994
|
I !== t && (L ? (b(I), E(!0)) : i?.(I));
|
|
4995
4995
|
}, U = () => {
|
|
4996
4996
|
v(), E(!1);
|
|
@@ -5003,7 +5003,7 @@ function Za({
|
|
|
5003
5003
|
const I = V;
|
|
5004
5004
|
b(null), i?.(I);
|
|
5005
5005
|
}, Z = () => {
|
|
5006
|
-
|
|
5006
|
+
x("INSPECTOR_GO_TO_CODE", { element: o });
|
|
5007
5007
|
}, T = () => {
|
|
5008
5008
|
L ? (A(!0), E(!0)) : Z();
|
|
5009
5009
|
}, G = () => {
|
|
@@ -5027,9 +5027,9 @@ function Za({
|
|
|
5027
5027
|
}, Ce = () => {
|
|
5028
5028
|
if (f.length === 0) return;
|
|
5029
5029
|
const I = S();
|
|
5030
|
-
k(!0),
|
|
5030
|
+
k(!0), C(), setTimeout(() => {
|
|
5031
5031
|
k(!1);
|
|
5032
|
-
}),
|
|
5032
|
+
}, 200), x("INSPECTOR_CHANGES_SAVED", {
|
|
5033
5033
|
changes: I,
|
|
5034
5034
|
element: o
|
|
5035
5035
|
});
|
|
@@ -5541,7 +5541,7 @@ function oi(e, t) {
|
|
|
5541
5541
|
const c = Array.from(g.children), i = [];
|
|
5542
5542
|
for (const f of c) {
|
|
5543
5543
|
if (!(f instanceof HTMLElement) || f.closest("[data-inspector-ignore]")) continue;
|
|
5544
|
-
const _ = f.getBoundingClientRect(), v = f.hasAttribute("data-dev-id"),
|
|
5544
|
+
const _ = f.getBoundingClientRect(), v = f.hasAttribute("data-dev-id"), C = _.width > 0 && _.height > 0, S = f.children.length > 0, k = f.textContent && f.textContent.trim().length > 0, x = [
|
|
5545
5545
|
"BUTTON",
|
|
5546
5546
|
"A",
|
|
5547
5547
|
"INPUT",
|
|
@@ -5550,7 +5550,7 @@ function oi(e, t) {
|
|
|
5550
5550
|
"SELECT",
|
|
5551
5551
|
"TEXTAREA"
|
|
5552
5552
|
].includes(f.tagName);
|
|
5553
|
-
(v ||
|
|
5553
|
+
(v || C && (S || k || x)) && i.push(f);
|
|
5554
5554
|
}
|
|
5555
5555
|
const p = i.filter(
|
|
5556
5556
|
(f) => f.hasAttribute("data-dev-id")
|
|
@@ -5596,12 +5596,12 @@ function li() {
|
|
|
5596
5596
|
null
|
|
5597
5597
|
), [d, l] = N(
|
|
5598
5598
|
null
|
|
5599
|
-
), [f, _] = N(null), [v,
|
|
5599
|
+
), [f, _] = N(null), [v, C] = N(null), [S, k] = N(!1), [x, L] = N(!1), [B, E] = N(!1), [V, b] = N(!1), [w, A] = N(!1), [O, J] = N(!0), [W, fe] = N([]), { sendToParent: U, listenToParent: te } = Jt(), Z = P(null), T = P(null), G = Qe(() => {
|
|
5600
5600
|
const y = [];
|
|
5601
|
-
return S && y.push("text"),
|
|
5602
|
-
}, [S,
|
|
5601
|
+
return S && y.push("text"), x && y.push("image"), B && y.push("style"), V && y.push("actions"), W.length > 1 && y.push("subElements"), y;
|
|
5602
|
+
}, [S, x, B, V, W.length]);
|
|
5603
5603
|
M(() => {
|
|
5604
|
-
G.length > 0 ? (!v || !G.includes(v)) &&
|
|
5604
|
+
G.length > 0 ? (!v || !G.includes(v)) && C(G[0]) : C(null);
|
|
5605
5605
|
}, [G, v]), M(() => (Z.current = new _o((y) => {
|
|
5606
5606
|
U("INSPECTOR_ERROR", y);
|
|
5607
5607
|
}), Z.current.start(), T.current = new ko((y) => {
|
|
@@ -5640,6 +5640,9 @@ function li() {
|
|
|
5640
5640
|
case "FORCE_CLOSE_INSPECTOR":
|
|
5641
5641
|
le();
|
|
5642
5642
|
break;
|
|
5643
|
+
case "SET_ACTIVE_TAB":
|
|
5644
|
+
C(y.tab);
|
|
5645
|
+
break;
|
|
5643
5646
|
}
|
|
5644
5647
|
}), [te]), M(() => {
|
|
5645
5648
|
if (!r || u) return;
|
|
@@ -5688,10 +5691,10 @@ function li() {
|
|
|
5688
5691
|
c(!0), document.body.style.overflow = "hidden";
|
|
5689
5692
|
}
|
|
5690
5693
|
async function ie() {
|
|
5691
|
-
c(!1), l(null), _(null),
|
|
5694
|
+
c(!1), l(null), _(null), C(null), fe([]), k(!1), L(!1), E(!1), b(!1), document.body.style.overflow = "", window.__styleEditorHasChanges = !1, window.__styleEditorSave = null;
|
|
5692
5695
|
}
|
|
5693
5696
|
function le() {
|
|
5694
|
-
n(), a(!1), c(!1), l(null), _(null), p(null),
|
|
5697
|
+
n(), a(!1), c(!1), l(null), _(null), p(null), C(null), fe([]), k(!1), L(!1), E(!1), b(!1), document.body.style.overflow = "", document.body.style.cursor = "", window.__styleEditorHasChanges = !1, window.__styleEditorSave = null, U("INSPECTOR_CLOSED", {});
|
|
5695
5698
|
}
|
|
5696
5699
|
function pe(y) {
|
|
5697
5700
|
if (y === document.body || y === document.documentElement)
|
|
@@ -5901,7 +5904,7 @@ function li() {
|
|
|
5901
5904
|
elementData: f,
|
|
5902
5905
|
activeTab: v,
|
|
5903
5906
|
availableTabs: G,
|
|
5904
|
-
onTabChange:
|
|
5907
|
+
onTabChange: C,
|
|
5905
5908
|
onClose: ie,
|
|
5906
5909
|
onPromptSubmit: (y) => {
|
|
5907
5910
|
U("INSPECTOR_PROMPT_SUBMITTED", {
|