app-v3-scripts-editor 1.24.2 → 1.24.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.
|
@@ -84365,7 +84365,21 @@ const Zs = ({
|
|
|
84365
84365
|
type: t,
|
|
84366
84366
|
getResetValues: n
|
|
84367
84367
|
}) => {
|
|
84368
|
-
const r = je(t), o = je(!0)
|
|
84368
|
+
const r = je(t), o = je(!0), i = je({}), a = ce.useWatch((l) => l, e), s = (l, c) => {
|
|
84369
|
+
if (!It.isEqual(l, c)) {
|
|
84370
|
+
if (l && c && typeof l == "object" && typeof c == "object" && !Array.isArray(l) && !Array.isArray(c)) {
|
|
84371
|
+
const u = Object.entries(l).reduce((d, [f, h]) => {
|
|
84372
|
+
const m = s(
|
|
84373
|
+
h,
|
|
84374
|
+
c[f]
|
|
84375
|
+
);
|
|
84376
|
+
return m !== void 0 && (d[f] = m), d;
|
|
84377
|
+
}, {});
|
|
84378
|
+
return Object.keys(u).length > 0 ? u : void 0;
|
|
84379
|
+
}
|
|
84380
|
+
return It.cloneDeep(l);
|
|
84381
|
+
}
|
|
84382
|
+
};
|
|
84369
84383
|
Je(() => {
|
|
84370
84384
|
if (o.current) {
|
|
84371
84385
|
o.current = !1, r.current = t;
|
|
@@ -84373,16 +84387,26 @@ const Zs = ({
|
|
|
84373
84387
|
}
|
|
84374
84388
|
if (!t || r.current === t)
|
|
84375
84389
|
return;
|
|
84376
|
-
|
|
84377
|
-
|
|
84390
|
+
if (r.current === void 0) {
|
|
84391
|
+
r.current = t;
|
|
84392
|
+
return;
|
|
84393
|
+
}
|
|
84394
|
+
const l = e.getFieldsValue(!0), c = s(
|
|
84395
|
+
l,
|
|
84396
|
+
i.current
|
|
84397
|
+
), u = Object.keys(l).reduce((f, h) => (f[h] = void 0, f), {}), d = It.cloneDeep(
|
|
84398
|
+
(n == null ? void 0 : n({ currentValues: l, nextType: t })) ?? {}
|
|
84378
84399
|
);
|
|
84379
84400
|
e.setFieldsValue({
|
|
84380
|
-
...
|
|
84381
|
-
...
|
|
84382
|
-
|
|
84401
|
+
...u,
|
|
84402
|
+
...c,
|
|
84403
|
+
...d,
|
|
84404
|
+
title: l.title,
|
|
84383
84405
|
type: t
|
|
84384
84406
|
}), r.current = t;
|
|
84385
|
-
}, [e, n, t])
|
|
84407
|
+
}, [e, n, t]), Je(() => {
|
|
84408
|
+
i.current = a ?? e.getFieldsValue(!0);
|
|
84409
|
+
}, [e, a]);
|
|
84386
84410
|
}, C7 = {
|
|
84387
84411
|
AI_AGENT: "AI Agent"
|
|
84388
84412
|
}, Ctt = {
|
|
@@ -117483,7 +117507,7 @@ var J0t = "scripts_editor_3c0va90", e1t = "scripts_editor_3c0va91", t1t = "scrip
|
|
|
117483
117507
|
function Xue(e) {
|
|
117484
117508
|
return Or({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20" }, child: [] }, { tag: "path", attr: { d: "M8 11h8" }, child: [] }, { tag: "path", attr: { d: "M8 7h6" }, child: [] }] })(e);
|
|
117485
117509
|
}
|
|
117486
|
-
const s1t = "1.24.
|
|
117510
|
+
const s1t = "1.24.3", l1t = {
|
|
117487
117511
|
version: s1t
|
|
117488
117512
|
};
|
|
117489
117513
|
var Yp = /* @__PURE__ */ ((e) => (e.BOT = "bot", e.CLONE = "clone", e))(Yp || {});
|