@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/README.md +3 -5
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +21 -17
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
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
|
-
|
|
6678
|
-
|
|
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
|
-
|
|
6687
|
+
i.instanceManager.add(r.id, this);
|
|
6684
6688
|
}
|
|
6685
6689
|
componentWillUnmount() {
|
|
6686
|
-
this._STATUS = "DESTROY",
|
|
6690
|
+
this._STATUS = "DESTROY", i.instanceManager.remove(r.id, this);
|
|
6687
6691
|
}
|
|
6688
6692
|
render() {
|
|
6689
6693
|
const {
|
|
6690
|
-
children:
|
|
6691
|
-
onlyRenderChild:
|
|
6692
|
-
...
|
|
6694
|
+
children: d = [],
|
|
6695
|
+
onlyRenderChild: f,
|
|
6696
|
+
...p
|
|
6693
6697
|
} = this.props;
|
|
6694
|
-
let
|
|
6695
|
-
return Vr(
|
|
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
|
-
})),
|
|
6701
|
+
})), f ? h : Q.createElement(s, p, ...h);
|
|
6698
6702
|
}
|
|
6699
6703
|
}
|
|
6700
|
-
return Q.forwardRef(function(
|
|
6704
|
+
return Q.forwardRef(function(u, d) {
|
|
6701
6705
|
return /* @__PURE__ */ b(iT, {
|
|
6702
6706
|
node: r,
|
|
6703
|
-
targetComponent:
|
|
6704
|
-
children: Q.createElement(
|
|
6705
|
-
ref:
|
|
6706
|
-
...
|
|
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.
|
|
24081
|
+
I(_B, "version", "0.0.20");
|
|
24078
24082
|
export {
|
|
24079
24083
|
_B as Engine,
|
|
24080
24084
|
AB as InnerComponentMeta,
|