@chamn/engine 0.10.1 → 0.10.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/index.es.js CHANGED
@@ -2,7 +2,7 @@ var wo = Object.defineProperty;
2
2
  var So = (n, t, e) => t in n ? wo(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
3
3
  var w = (n, t, e) => So(n, typeof t != "symbol" ? t + "" : t, e);
4
4
  import { jsxs as b, jsx as r, Fragment as z } from "react/jsx-runtime";
5
- import G, { useMemo as T, useState as R, useRef as P, useContext as Ne, useEffect as L, useCallback as F, forwardRef as oe, useImperativeHandle as se, isValidElement as No, createContext as Co } from "react";
5
+ import G, { useMemo as T, useState as R, useRef as P, useContext as Ne, useEffect as D, useCallback as F, forwardRef as oe, useImperativeHandle as se, isValidElement as No, createContext as Co } from "react";
6
6
  import { Resizable as Dn } from "re-resizable";
7
7
  import { Button as J, Popover as xt, Collapse as Je, Input as de, Tabs as vn, message as qe, ConfigProvider as H, InputNumber as ca, Modal as ze, Switch as _o, Select as Xe, AutoComplete as dt, ColorPicker as da, Slider as ko, Radio as $, Row as B, Col as A, Card as yn, Alert as Po, Tooltip as Ro, Dropdown as xn, TreeSelect as Eo, Space as bn, Empty as Ln, Segmented as To } from "antd";
8
8
  import { PushpinOutlined as Mo, CloseOutlined as Io, DoubleRightOutlined as Vo, SearchOutlined as Do, AppstoreAddOutlined as Lo, EyeInvisibleOutlined as ua, CopyOutlined as pa, DeleteOutlined as bt, RightOutlined as Ao, EyeOutlined as Bo, ApartmentOutlined as zo, CloseCircleOutlined as Oo, QuestionCircleOutlined as $o, SwapOutlined as ma, HolderOutlined as Fo, PlusOutlined as wn, MinusOutlined as ga, MinusCircleOutlined as Ho, DatabaseOutlined as Uo, BorderOutlined as Go, MobileOutlined as jo } from "@ant-design/icons";
@@ -1768,14 +1768,14 @@ const Oa = G.createContext({
1768
1768
  } = Ne(Oa), [f, g] = R((j = t.current) == null ? void 0 : j.titleEditable), [y, h] = R("");
1769
1769
  t.current.titleEditable = f;
1770
1770
  const v = l.expandKeys.find((I) => I === a.key), x = (I) => {
1771
- let D = l.expandKeys;
1772
- I !== void 0 ? I === !0 ? v || D.push(a.key || "") : v && (D = D.filter((Z) => Z !== a.key)) : v ? D = D.filter((Z) => Z !== a.key) : D.push(a.key || ""), c({
1773
- expandKeys: D
1771
+ let L = l.expandKeys;
1772
+ I !== void 0 ? I === !0 ? v || L.push(a.key || "") : v && (L = L.filter((Z) => Z !== a.key)) : v ? L = L.filter((Z) => Z !== a.key) : L.push(a.key || ""), c({
1773
+ expandKeys: L
1774
1774
  });
1775
1775
  }, C = l.currentSelectNodeKeys.find((I) => I === a.key), S = P(null), k = async () => {
1776
- var D;
1776
+ var L;
1777
1777
  if (x(!0), f) {
1778
- (D = S == null ? void 0 : S.current) == null || D.focus();
1778
+ (L = S == null ? void 0 : S.current) == null || L.focus();
1779
1779
  return;
1780
1780
  }
1781
1781
  if (a.canBeSelected !== void 0 && a.canBeSelected === !1)
@@ -1794,13 +1794,13 @@ const Oa = G.createContext({
1794
1794
  [De]: a.key
1795
1795
  }, W = P(), K = P();
1796
1796
  K.current = l, W.current = (I) => {
1797
- const D = l.expandKeys, Z = Array.from(/* @__PURE__ */ new Set([...D, I]));
1797
+ const L = l.expandKeys, Z = Array.from(/* @__PURE__ */ new Set([...L, I]));
1798
1798
  c({
1799
1799
  expandKeys: Z
1800
1800
  });
1801
1801
  };
1802
1802
  const te = P(null);
1803
- L(() => {
1803
+ D(() => {
1804
1804
  var Ue, Vn;
1805
1805
  let I = 0;
1806
1806
  (Ue = te.current) == null || Ue.addEventListener("mouseenter", () => {
@@ -1811,7 +1811,7 @@ const Oa = G.createContext({
1811
1811
  }), (Vn = te.current) == null || Vn.addEventListener("mouseleave", () => {
1812
1812
  clearTimeout(I);
1813
1813
  });
1814
- const D = (be) => {
1814
+ const L = (be) => {
1815
1815
  var pe;
1816
1816
  if (t.current.titleEditable) {
1817
1817
  if (be.target === ((pe = S.current) == null ? void 0 : pe.input))
@@ -1822,17 +1822,17 @@ const Oa = G.createContext({
1822
1822
  let Z;
1823
1823
  return (async () => {
1824
1824
  const be = await n.pluginCtx.pluginManager.get("Designer"), pe = be == null ? void 0 : be.export, et = pe == null ? void 0 : pe.getDesignerWindow();
1825
- et == null || et.addEventListener("click", D), Z = et || null;
1826
- })(), document.addEventListener("click", D), () => {
1827
- I && clearTimeout(I), document.removeEventListener("click", D), Z == null || Z.removeEventListener("click", D);
1825
+ et == null || et.addEventListener("click", L), Z = et || null;
1826
+ })(), document.addEventListener("click", L), () => {
1827
+ I && clearTimeout(I), document.removeEventListener("click", L), Z == null || Z.removeEventListener("click", L);
1828
1828
  };
1829
1829
  }, []);
1830
1830
  const U = (Y = l.pageModel) == null ? void 0 : Y.getNode(a.key || ""), $e = () => {
1831
1831
  const I = !s;
1832
1832
  if (!U)
1833
1833
  return;
1834
- const D = U.value.configure.devState ?? {};
1835
- D.condition = I, U.value.configure.devState = D, U.updateValue(), i(I);
1834
+ const L = U.value.configure.devState ?? {};
1835
+ L.condition = I, U.value.configure.devState = L, U.updateValue(), i(I);
1836
1836
  };
1837
1837
  let Fe = a.title;
1838
1838
  a.titleViewRender && (Fe = a.titleViewRender({
@@ -1848,8 +1848,8 @@ const Oa = G.createContext({
1848
1848
  onMouseMove: async () => {
1849
1849
  if (!a.key)
1850
1850
  return;
1851
- const I = await (p == null ? void 0 : p()), D = I == null ? void 0 : I.getDynamicComponentInstances(a.key);
1852
- typeof (D == null ? void 0 : D._CONDITION) < "u" && i(D == null ? void 0 : D._CONDITION);
1851
+ const I = await (p == null ? void 0 : p()), L = I == null ? void 0 : I.getDynamicComponentInstances(a.key);
1852
+ typeof (L == null ? void 0 : L._CONDITION) < "u" && i(L == null ? void 0 : L._CONDITION);
1853
1853
  },
1854
1854
  children: [
1855
1855
  (Q = a.children) != null && Q.length ? /* @__PURE__ */ r("span", { style: { paddingRight: "5px" }, className: ne.arrowSpan, onClickCapture: () => x(), children: /* @__PURE__ */ r(Ao, { className: V([ne.nodeArrow, v && ne.expanded]) }) }) : null,
@@ -1864,7 +1864,7 @@ const Oa = G.createContext({
1864
1864
  var Lt;
1865
1865
  if (!U)
1866
1866
  return;
1867
- const I = U, D = (Lt = I.materialsModel.findByComponentName(I.value.componentName)) == null ? void 0 : Lt.value.title, Z = I.value.title || D || I.value.componentName || "";
1867
+ const I = U, L = (Lt = I.materialsModel.findByComponentName(I.value.componentName)) == null ? void 0 : Lt.value.title, Z = I.value.title || L || I.value.componentName || "";
1868
1868
  h(Z), g(!0), setTimeout(() => {
1869
1869
  var Ue;
1870
1870
  (Ue = S.current) == null || Ue.focus();
@@ -1936,9 +1936,9 @@ const Oa = G.createContext({
1936
1936
  paddingLeft: `${N}px`,
1937
1937
  height: v ? "auto" : "0"
1938
1938
  },
1939
- children: v && ((xe = a.children) == null ? void 0 : xe.map((I, D) => {
1940
- const Z = `${I.key}-${D}`;
1941
- return /* @__PURE__ */ r($a, { item: I, paths: [...o, D], level: e + 1, pluginCtx: n.pluginCtx }, Z);
1939
+ children: v && ((xe = a.children) == null ? void 0 : xe.map((I, L) => {
1940
+ const Z = `${I.key}-${L}`;
1941
+ return /* @__PURE__ */ r($a, { item: I, paths: [...o, L], level: e + 1, pluginCtx: n.pluginCtx }, Z);
1942
1942
  }))
1943
1943
  }
1944
1944
  )
@@ -2318,27 +2318,38 @@ const Fa = ({
2318
2318
  setterContext: t,
2319
2319
  initialValue: e,
2320
2320
  ...a
2321
- }) => /* @__PURE__ */ r(
2322
- H,
2323
- {
2324
- theme: {
2325
- token: {
2326
- borderRadius: 4
2327
- }
2328
- },
2329
- children: /* @__PURE__ */ r(
2330
- de,
2331
- {
2332
- ...a,
2333
- value: a.value ?? e,
2334
- onChange: (o) => {
2335
- var s;
2336
- (s = a.onChange) == null || s.call(a, o), n == null || n(o.target.value);
2321
+ }) => {
2322
+ const [o, s] = R(a.value ?? e ?? ""), i = P(a.value ?? e);
2323
+ return D(() => {
2324
+ const l = a.value ?? e;
2325
+ l !== i.current && (i.current = l, s(l ?? ""));
2326
+ }, [a.value, e]), /* @__PURE__ */ r(
2327
+ H,
2328
+ {
2329
+ theme: {
2330
+ token: {
2331
+ borderRadius: 4
2337
2332
  }
2338
- }
2339
- )
2340
- }
2341
- );
2333
+ },
2334
+ children: /* @__PURE__ */ r(
2335
+ de,
2336
+ {
2337
+ ...a,
2338
+ value: o,
2339
+ onChange: (l) => {
2340
+ const c = l.target.value;
2341
+ s(c);
2342
+ },
2343
+ onBlur: (l) => {
2344
+ var d, u;
2345
+ const c = l.target.value;
2346
+ i.current = c, (d = a.onChange) == null || d.call(a, l), n == null || n(c), (u = a.onBlur) == null || u.call(a, l);
2347
+ }
2348
+ }
2349
+ )
2350
+ }
2351
+ );
2352
+ };
2342
2353
  Fa.setterName = "字符设置器";
2343
2354
  const Ha = ({
2344
2355
  onValueChange: n,
@@ -2390,7 +2401,7 @@ function zi(n) {
2390
2401
  }, s = {
2391
2402
  [t]: n.value
2392
2403
  }, i = P(null);
2393
- return L(() => {
2404
+ return D(() => {
2394
2405
  var l;
2395
2406
  (l = i.current) == null || l.setFields({
2396
2407
  [t]: n.value
@@ -2439,7 +2450,7 @@ const Oi = "_dragItem_xzliq_2", $i = "_sortModalBox_xzliq_13", Fi = "_addOneBtn_
2439
2450
  ...s
2440
2451
  }) => {
2441
2452
  const [i, l] = R([]);
2442
- L(() => {
2453
+ D(() => {
2443
2454
  const m = n.map((f, g) => ({
2444
2455
  val: f,
2445
2456
  oldIndex: g,
@@ -2553,7 +2564,7 @@ const Ua = ({
2553
2564
  }
2554
2565
  ]
2555
2566
  );
2556
- return L(() => {
2567
+ return D(() => {
2557
2568
  var y;
2558
2569
  t.setCollapseHeaderExt && ((y = t.setCollapseHeaderExt) == null || y.call(
2559
2570
  t,
@@ -2644,7 +2655,7 @@ const Ga = ({
2644
2655
  initialValue: o
2645
2656
  }) => {
2646
2657
  const { keyPaths: s } = a, i = P(null);
2647
- return L(() => {
2658
+ return D(() => {
2648
2659
  var l;
2649
2660
  (l = i.current) == null || l.setFields(e || {});
2650
2661
  }, [e]), /* @__PURE__ */ r(
@@ -3193,7 +3204,7 @@ const Ka = (n) => {
3193
3204
  }
3194
3205
  }, Kn = ({ editor: n, value: t, initialValue: e, onChange: a, height: o, editorOptions: s }) => {
3195
3206
  const i = P(), l = P();
3196
- return l.current = t, L(() => {
3207
+ return l.current = t, D(() => {
3197
3208
  var d, u;
3198
3209
  const c = Er(((d = i.current) == null ? void 0 : d.getValue()) || "", {});
3199
3210
  JSON.stringify(t) !== JSON.stringify(c) && ((u = i.current) == null || u.setValue(JSON.stringify(t, null, 2)));
@@ -3402,7 +3413,17 @@ const Ja = ({
3402
3413
  valueValidator: a,
3403
3414
  ...o
3404
3415
  }) => {
3405
- const [s, i] = R("");
3416
+ const [s, i] = R(""), [l, c] = R(o.value ?? e ?? ""), d = P(o.value ?? e);
3417
+ D(() => {
3418
+ const p = o.value ?? e;
3419
+ p !== d.current && (d.current = p, c(p ?? ""));
3420
+ }, [o.value, e]);
3421
+ const u = (p) => {
3422
+ if (a !== void 0) {
3423
+ const m = a(p);
3424
+ i(m ? "" : "error");
3425
+ }
3426
+ };
3406
3427
  return /* @__PURE__ */ r(
3407
3428
  H,
3408
3429
  {
@@ -3416,15 +3437,15 @@ const Ja = ({
3416
3437
  {
3417
3438
  status: s,
3418
3439
  ...o,
3419
- value: o.value ?? e,
3420
- onChange: (l) => {
3421
- var d;
3422
- const c = l.target.value;
3423
- if (a !== void 0) {
3424
- const u = a(c);
3425
- i(u ? "" : "error");
3426
- }
3427
- (d = o.onChange) == null || d.call(o, l), n == null || n(l.target.value);
3440
+ value: l,
3441
+ onChange: (p) => {
3442
+ const m = p.target.value;
3443
+ c(m), u(m);
3444
+ },
3445
+ onBlur: (p) => {
3446
+ var f, g;
3447
+ const m = p.target.value;
3448
+ d.current = m, (f = o.onChange) == null || f.call(o, p), n == null || n(m), (g = o.onBlur) == null || g.call(o, p);
3428
3449
  }
3429
3450
  }
3430
3451
  )
@@ -4347,7 +4368,7 @@ const Ji = "_inputAuto_gk0d2_2", Xi = "_active_gk0d2_6", qn = {
4347
4368
  const o = P(null), [s, i] = R(e ?? (a || "")), [l, c] = R(!1), d = () => {
4348
4369
  n == null || n(s);
4349
4370
  };
4350
- L(() => {
4371
+ D(() => {
4351
4372
  i(e);
4352
4373
  }, [e]);
4353
4374
  const u = T(() => {
@@ -4660,7 +4681,7 @@ const Qi = "_cssSizeInput_1ig9c_2", Zi = "_unitSelect_1ig9c_5", Jn = {
4660
4681
  },
4661
4682
  [n, e]
4662
4683
  );
4663
- return L(() => {
4684
+ return D(() => {
4664
4685
  const s = At(document.body, "mousemove", (c) => {
4665
4686
  o(c);
4666
4687
  }), i = At(document.body, "mouseup", (c) => {
@@ -6185,7 +6206,7 @@ const Kt = (n = {}) => {
6185
6206
  const [s, i] = R(
6186
6207
  localStorage.getItem("CHAMN_STYLE_EDITOR_MODE") || "VISUAL"
6187
6208
  ), l = P(null), c = P(null), d = P(null), u = P(null), p = P(null), m = P(null), f = P(null), g = P(null);
6188
- L(() => {
6209
+ D(() => {
6189
6210
  localStorage.setItem("CHAMN_STYLE_EDITOR_MODE", s);
6190
6211
  }, [s]);
6191
6212
  const y = T(() => [l, c, d, u, p, m, f], [l, c, d, u, p, m, f]), h = P(null), v = F(
@@ -6217,7 +6238,7 @@ const Kt = (n = {}) => {
6217
6238
  },
6218
6239
  [e]
6219
6240
  );
6220
- L(() => {
6241
+ D(() => {
6221
6242
  v(h.current);
6222
6243
  }, [s, v]), se(
6223
6244
  o,
@@ -6392,7 +6413,7 @@ const Kt = (n = {}) => {
6392
6413
  const d = s.value.style || [], { normalProperty: u } = je(d);
6393
6414
  (p = o.current) == null || p.setValue(on(u) || {});
6394
6415
  }, [s]);
6395
- return L(() => (c(), s.emitter.on("onNodeChange", c), s.emitter.on("onReloadPage", c), () => {
6416
+ return D(() => (c(), s.emitter.on("onNodeChange", c), s.emitter.on("onReloadPage", c), () => {
6396
6417
  s.emitter.off("onNodeChange", c), s.emitter.off("onReloadPage", c);
6397
6418
  }), [s.emitter, s.id, c]), /* @__PURE__ */ r(
6398
6419
  oo,
@@ -6432,7 +6453,7 @@ const Kt = (n = {}) => {
6432
6453
  const c = e || s.value;
6433
6454
  return c === void 0 ? "_undefined_" : c === null ? "_null_" : c || "_undefined_";
6434
6455
  }, [e, s.value]);
6435
- return L(() => {
6456
+ return D(() => {
6436
6457
  n == null || n(a ?? void 0);
6437
6458
  }, []), /* @__PURE__ */ r(
6438
6459
  H,
@@ -6495,9 +6516,9 @@ const Ce = {
6495
6516
  });
6496
6517
  let c = e;
6497
6518
  const { formState: d, updateContext: u, updateConditionConfig: p } = G.useContext(Pt);
6498
- if (L(() => {
6519
+ if (D(() => {
6499
6520
  n.condition && p(o, n.condition);
6500
- }, [o, n.condition, p]), L(() => {
6521
+ }, [o, n.condition, p]), D(() => {
6501
6522
  var v;
6502
6523
  const h = (n.condition ?? (() => !0))(d);
6503
6524
  (v = n.onConditionValueChange) == null || v.call(n, h);
@@ -6601,7 +6622,7 @@ const Ce = {
6601
6622
  ...o || {},
6602
6623
  ...i
6603
6624
  };
6604
- L(() => {
6625
+ D(() => {
6605
6626
  var f;
6606
6627
  const u = ((f = l[t.join(".")]) == null ? void 0 : f.setter) || "", m = n.find((g) => g.componentName === u) || Bi(s.value, n) || n[0];
6607
6628
  a(m);
@@ -7297,7 +7318,7 @@ const Gl = "_l_1lpc6_2", jl = "_r_1lpc6_11", Wl = "_b_1lpc6_20", Kl = "_dragBox_
7297
7318
  const { data: t } = n, { onDataChange: e, pageModel: a, pluginCtx: o, nodeModel: s } = Ze();
7298
7319
  St(t, Re, {});
7299
7320
  const i = t[Re], [l, c] = R(!1), d = P(null), [u, p] = R();
7300
- return L(() => {
7321
+ return D(() => {
7301
7322
  var f;
7302
7323
  const m = {
7303
7324
  id: t.id,
@@ -7451,7 +7472,7 @@ const ht = "args.", nc = (n, t) => {
7451
7472
  const { data: t } = n, { pageModel: e, onDataChange: a, pluginCtx: o, nodeModel: s } = Ze();
7452
7473
  St(t, Re, {});
7453
7474
  const i = t[Re], l = P(null), [c, d] = R();
7454
- L(() => {
7475
+ D(() => {
7455
7476
  var y;
7456
7477
  const g = {
7457
7478
  id: t.id || "",
@@ -7572,7 +7593,7 @@ const ht = "args.", nc = (n, t) => {
7572
7593
  );
7573
7594
  }, rc = (n) => {
7574
7595
  const { data: t } = n, { onDataChange: e } = Ze(), a = P(null), [o, s] = R(!1);
7575
- L(() => {
7596
+ D(() => {
7576
7597
  var l;
7577
7598
  (l = a.current) == null || l.setFields({
7578
7599
  link: t.link
@@ -7657,7 +7678,7 @@ const ht = "args.", nc = (n, t) => {
7657
7678
  const c = t[Re], d = P(null), [u, p] = R(), m = (S) => l.getEdges().some(
7658
7679
  (N) => N.source === String(t.id) && (N.sourceHandle || ie) === S
7659
7680
  ), f = m(ie), g = m(Ae);
7660
- L(() => {
7681
+ D(() => {
7661
7682
  var k;
7662
7683
  const S = {
7663
7684
  id: t.id,
@@ -8057,7 +8078,7 @@ const pc = {
8057
8078
  },
8058
8079
  [l, t, c, s]
8059
8080
  );
8060
- L(() => {
8081
+ D(() => {
8061
8082
  const { nodes: S, edges: k } = gc(n.value);
8062
8083
  s(S), c(k), setTimeout(() => {
8063
8084
  g(!0);
@@ -8234,7 +8255,7 @@ const xc = {
8234
8255
  }, Sc = (n) => {
8235
8256
  var c, d, u;
8236
8257
  const { node: t } = n, e = ((c = t == null ? void 0 : t.material) == null ? void 0 : c.value.props) || [], a = P(null);
8237
- L(() => {
8258
+ D(() => {
8238
8259
  const p = () => {
8239
8260
  var f, g;
8240
8261
  const m = ((f = t == null ? void 0 : t.getPlainProps) == null ? void 0 : f.call(t)) || {};
@@ -8282,7 +8303,7 @@ const xc = {
8282
8303
  }
8283
8304
  }, uo = (n) => {
8284
8305
  const t = n.node, e = t.value.state || {}, a = P(null);
8285
- L(() => {
8306
+ D(() => {
8286
8307
  var i;
8287
8308
  const s = t.value.state || {};
8288
8309
  (i = a == null ? void 0 : a.current) == null || i.setValue(JSON.stringify(s, null, 2));
@@ -8481,7 +8502,7 @@ const xc = {
8481
8502
  setter: x
8482
8503
  });
8483
8504
  }, o = P(null);
8484
- L(() => {
8505
+ D(() => {
8485
8506
  var C;
8486
8507
  const v = t == null ? void 0 : t.value.loop, x = {
8487
8508
  id: t == null ? void 0 : t.id,
@@ -9172,7 +9193,7 @@ const xc = {
9172
9193
  property: ((y = t.value) == null ? void 0 : y.property) || "",
9173
9194
  value: ((h = t.value) == null ? void 0 : h.value) || ""
9174
9195
  });
9175
- L(() => {
9196
+ D(() => {
9176
9197
  t.value && c(t.value);
9177
9198
  }, [t.value]);
9178
9199
  const [d, u] = R(Xt), p = (v) => {
@@ -9341,7 +9362,7 @@ const xc = {
9341
9362
  }
9342
9363
  }),
9343
9364
  []
9344
- ), L(() => {
9365
+ ), D(() => {
9345
9366
  t.initialValue && o(t.initialValue);
9346
9367
  }, []);
9347
9368
  const [s, i] = R({
@@ -9710,7 +9731,7 @@ const xc = {
9710
9731
  }
9711
9732
  }),
9712
9733
  []
9713
- ), L(() => {
9734
+ ), D(() => {
9714
9735
  t.initialValue && o([...t.initialValue]);
9715
9736
  }, []);
9716
9737
  const l = (d) => {
@@ -9808,7 +9829,7 @@ const xc = {
9808
9829
  ]), o = P({}), s = (h) => {
9809
9830
  e(h);
9810
9831
  }, [i, l] = R([]), c = T(() => ra.filter((h) => !i.includes(h.key)), [i]), d = T(() => ra.filter((h) => i.includes(h.key)), [i]), [u, p] = R(n.initialValue ?? {});
9811
- L(() => {
9832
+ D(() => {
9812
9833
  const h = Object.keys(u);
9813
9834
  l(h);
9814
9835
  }, [u]);
@@ -9836,7 +9857,7 @@ const xc = {
9836
9857
  }
9837
9858
  }) : p(h), await ye(), (v = g.current) == null || v.call(g);
9838
9859
  }
9839
- }), L(() => {
9860
+ }), D(() => {
9840
9861
  var h;
9841
9862
  (h = g.current) == null || h.call(g);
9842
9863
  }, [t]);
@@ -9963,7 +9984,7 @@ const xc = {
9963
9984
  const f = e.value.style || [], { expressionProperty: g, normalProperty: y } = je(f), h = _r(e.value.css);
9964
9985
  (v = t.current) == null || v.setValue([...g]), (x = o.current) == null || x.setValue(h), (C = i.current) == null || C.setValue(e.value.classNames || []), (S = s.current) == null || S.setValue(on(y) || {});
9965
9986
  }, [e]);
9966
- L(() => (d(), e.emitter.on("onNodeChange", d), e.emitter.on("onReloadPage", d), () => {
9987
+ D(() => (d(), e.emitter.on("onNodeChange", d), e.emitter.on("onReloadPage", d), () => {
9967
9988
  e.emitter.off("onNodeChange", d), e.emitter.off("onReloadPage", d);
9968
9989
  }), [e.emitter, e.id, n.activeTab, d]);
9969
9990
  const u = (f) => {
@@ -10066,7 +10087,7 @@ const xc = {
10066
10087
  ], ad = (n) => {
10067
10088
  var c;
10068
10089
  const { node: t } = n, [e, a] = R([]), o = t == null ? void 0 : t.value.eventListener;
10069
- L(() => {
10090
+ D(() => {
10070
10091
  var u, p;
10071
10092
  const d = ((p = (u = t == null ? void 0 : t.material) == null ? void 0 : u.value.events) == null ? void 0 : p.map((m) => typeof m == "string" ? {
10072
10093
  label: m,
@@ -10349,7 +10370,7 @@ const rd = {
10349
10370
  let Zt = !1;
10350
10371
  const dd = (n) => {
10351
10372
  const { pluginCtx: t } = n, e = t.pageModel.value.componentsTree.value.state || {}, a = P(null);
10352
- L(() => {
10373
+ D(() => {
10353
10374
  var s;
10354
10375
  (s = a == null ? void 0 : a.current) == null || s.setValue(JSON.stringify(e, null, 2)), t.pageModel.emitter.on("onReloadPage", () => {
10355
10376
  var i;
@@ -10868,7 +10889,7 @@ const bd = [
10868
10889
  const c = t.current, d = c == null ? void 0 : c.export.getDesignerWindow(), u = d == null ? void 0 : d.innerWidth;
10869
10890
  s(Number(u));
10870
10891
  }, []);
10871
- L(() => {
10892
+ D(() => {
10872
10893
  let c, d;
10873
10894
  return n.ctx.pluginManager.onPluginReadyOk("Designer").then((u) => {
10874
10895
  t.current = u, d = u == null ? void 0 : u.export.getDesignerWindow(), c = () => {
@@ -11501,7 +11522,7 @@ class _d extends G.Component {
11501
11522
  return /* @__PURE__ */ r("div", { className: V([Ir.engineContainer, this.props.className]), style: this.props.style, children: /* @__PURE__ */ r(Tr, { ref: this.workbenchRef, emitter: this.emitter, ...this.workbenchConfig }) });
11502
11523
  }
11503
11524
  }
11504
- w(_d, "version", "0.10.1");
11525
+ w(_d, "version", "0.10.2");
11505
11526
  export {
11506
11527
  mo as AdvancePanel,
11507
11528
  go as AdvancePanelConfig,