@chamn/engine 0.0.19 → 0.0.21
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 +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +26 -18
- package/dist/index.mjs.map +1 -1
- package/dist/utils/defaultEngineConfig.d.ts +1 -0
- package/package.json +7 -7
package/dist/index.mjs
CHANGED
|
@@ -6674,36 +6674,43 @@ 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
|
+
node: r,
|
|
6683
|
+
ctx: window.__C_ENGINE_DESIGNER_PLUGIN_CTX__
|
|
6684
|
+
}));
|
|
6685
|
+
class c extends Q.Component {
|
|
6679
6686
|
constructor() {
|
|
6680
6687
|
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
6688
|
}
|
|
6682
6689
|
componentDidMount() {
|
|
6683
|
-
|
|
6690
|
+
i.instanceManager.add(r.id, this);
|
|
6684
6691
|
}
|
|
6685
6692
|
componentWillUnmount() {
|
|
6686
|
-
this._STATUS = "DESTROY",
|
|
6693
|
+
this._STATUS = "DESTROY", i.instanceManager.remove(r.id, this);
|
|
6687
6694
|
}
|
|
6688
6695
|
render() {
|
|
6689
6696
|
const {
|
|
6690
|
-
children:
|
|
6691
|
-
onlyRenderChild:
|
|
6692
|
-
...
|
|
6697
|
+
children: d = [],
|
|
6698
|
+
onlyRenderChild: f,
|
|
6699
|
+
...p
|
|
6693
6700
|
} = this.props;
|
|
6694
|
-
let
|
|
6695
|
-
return Vr(
|
|
6701
|
+
let h = d;
|
|
6702
|
+
return Vr(d) || (h = [d]), !h.filter(Boolean).length && (r.isContainer() || r.value.componentName === to.ROOT_CONTAINER) && h.push(Q.createElement(i.dropPlaceholder, {
|
|
6696
6703
|
node: r
|
|
6697
|
-
})),
|
|
6704
|
+
})), f ? h : Q.createElement(s, p, ...h);
|
|
6698
6705
|
}
|
|
6699
6706
|
}
|
|
6700
|
-
return Q.forwardRef(function(
|
|
6707
|
+
return Q.forwardRef(function(u, d) {
|
|
6701
6708
|
return /* @__PURE__ */ b(iT, {
|
|
6702
6709
|
node: r,
|
|
6703
|
-
targetComponent:
|
|
6704
|
-
children: Q.createElement(
|
|
6705
|
-
ref:
|
|
6706
|
-
...
|
|
6710
|
+
targetComponent: c,
|
|
6711
|
+
children: Q.createElement(c, {
|
|
6712
|
+
ref: d,
|
|
6713
|
+
...u
|
|
6707
6714
|
})
|
|
6708
6715
|
});
|
|
6709
6716
|
});
|
|
@@ -11381,7 +11388,8 @@ class ND extends Q.Component {
|
|
|
11381
11388
|
onNodeDraEnd: c,
|
|
11382
11389
|
...g,
|
|
11383
11390
|
ghostView: p,
|
|
11384
|
-
assets: h
|
|
11391
|
+
assets: h,
|
|
11392
|
+
pluginCtx: this.props.pluginCtx
|
|
11385
11393
|
}), v && uh(v, document.body)]
|
|
11386
11394
|
});
|
|
11387
11395
|
}
|
|
@@ -16436,7 +16444,7 @@ var FI = kI.create({
|
|
|
16436
16444
|
}), Jm = fI(FI, 2), va = Jm[0], ns = Jm[1];
|
|
16437
16445
|
function VI(e) {
|
|
16438
16446
|
var t = LI.config(e), n = t.monaco, r = dI(t, ["monaco"]);
|
|
16439
|
-
ns(function(o) {
|
|
16447
|
+
dbeugger, ns(function(o) {
|
|
16440
16448
|
return {
|
|
16441
16449
|
config: Xm(o.config, r),
|
|
16442
16450
|
monaco: n
|
|
@@ -24074,7 +24082,7 @@ class _B extends Q.Component {
|
|
|
24074
24082
|
});
|
|
24075
24083
|
}
|
|
24076
24084
|
}
|
|
24077
|
-
I(_B, "version", "0.0.
|
|
24085
|
+
I(_B, "version", "0.0.21");
|
|
24078
24086
|
export {
|
|
24079
24087
|
_B as Engine,
|
|
24080
24088
|
AB as InnerComponentMeta,
|