@chamn/engine 0.0.19 → 0.0.20

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.mjs CHANGED
@@ -6674,36 +6674,40 @@ const lT = (e) => {
6674
6674
  class jB extends Q.Component {
6675
6675
  constructor(t) {
6676
6676
  super(t), Z(this, "instanceManager", new sT()), Z(this, "renderRef"), Z(this, "dropPlaceholder", lT), Z(this, "onGetComponent", (n, r) => {
6677
- const o = this;
6678
- class a extends Q.Component {
6677
+ var o, a;
6678
+ const i = this;
6679
+ let s = n;
6680
+ const l = (a = (o = r.material) == null ? void 0 : o.value.advanceCustom) == null ? void 0 : a.wrapComponent;
6681
+ l && (s = l(n));
6682
+ class c extends Q.Component {
6679
6683
  constructor() {
6680
6684
  super(...arguments), Z(this, "_DESIGN_BOX", !0), Z(this, "_NODE_MODEL", r), Z(this, "_NODE_ID", r.id), Z(this, "_UNIQUE_ID", `${r.id}_${On()}`), Z(this, "_STATUS");
6681
6685
  }
6682
6686
  componentDidMount() {
6683
- o.instanceManager.add(r.id, this);
6687
+ i.instanceManager.add(r.id, this);
6684
6688
  }
6685
6689
  componentWillUnmount() {
6686
- this._STATUS = "DESTROY", o.instanceManager.remove(r.id, this);
6690
+ this._STATUS = "DESTROY", i.instanceManager.remove(r.id, this);
6687
6691
  }
6688
6692
  render() {
6689
6693
  const {
6690
- children: s = [],
6691
- onlyRenderChild: l,
6692
- ...c
6694
+ children: d = [],
6695
+ onlyRenderChild: f,
6696
+ ...p
6693
6697
  } = this.props;
6694
- let u = s;
6695
- return Vr(s) || (u = [s]), !u.filter(Boolean).length && (r.isContainer() || r.value.componentName === to.ROOT_CONTAINER) && u.push(Q.createElement(o.dropPlaceholder, {
6698
+ let h = d;
6699
+ return Vr(d) || (h = [d]), !h.filter(Boolean).length && (r.isContainer() || r.value.componentName === to.ROOT_CONTAINER) && h.push(Q.createElement(i.dropPlaceholder, {
6696
6700
  node: r
6697
- })), l ? u : Q.createElement(n, c, ...u);
6701
+ })), f ? h : Q.createElement(s, p, ...h);
6698
6702
  }
6699
6703
  }
6700
- return Q.forwardRef(function(i, s) {
6704
+ return Q.forwardRef(function(u, d) {
6701
6705
  return /* @__PURE__ */ b(iT, {
6702
6706
  node: r,
6703
- targetComponent: a,
6704
- children: Q.createElement(a, {
6705
- ref: s,
6706
- ...i
6707
+ targetComponent: c,
6708
+ children: Q.createElement(c, {
6709
+ ref: d,
6710
+ ...u
6707
6711
  })
6708
6712
  });
6709
6713
  });
@@ -16436,7 +16440,7 @@ var FI = kI.create({
16436
16440
  }), Jm = fI(FI, 2), va = Jm[0], ns = Jm[1];
16437
16441
  function VI(e) {
16438
16442
  var t = LI.config(e), n = t.monaco, r = dI(t, ["monaco"]);
16439
- ns(function(o) {
16443
+ dbeugger, ns(function(o) {
16440
16444
  return {
16441
16445
  config: Xm(o.config, r),
16442
16446
  monaco: n
@@ -24074,7 +24078,7 @@ class _B extends Q.Component {
24074
24078
  });
24075
24079
  }
24076
24080
  }
24077
- I(_B, "version", "0.0.19");
24081
+ I(_B, "version", "0.0.20");
24078
24082
  export {
24079
24083
  _B as Engine,
24080
24084
  AB as InnerComponentMeta,