@chamn/engine 0.0.40 → 0.0.42
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.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +19 -18
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
package/dist/index.mjs
CHANGED
|
@@ -9792,28 +9792,28 @@ class JI {
|
|
|
9792
9792
|
constructor(t, n) {
|
|
9793
9793
|
he(this, "assets"), he(this, "loadStatus"), he(this, "win", window), he(this, "_onSuccessList", []), he(this, "_onErrorList", []), this.assets = JSON.parse(JSON.stringify(t || [])), this.loadStatus = "INIT", n != null && n.window && (this.win = n.window);
|
|
9794
9794
|
}
|
|
9795
|
-
load() {
|
|
9796
|
-
const
|
|
9797
|
-
for (let
|
|
9798
|
-
const
|
|
9799
|
-
|
|
9800
|
-
const
|
|
9801
|
-
|
|
9802
|
-
async: !1,
|
|
9803
|
-
before: (
|
|
9795
|
+
load(t) {
|
|
9796
|
+
const n = this.assets || [], r = [];
|
|
9797
|
+
for (let o = 0; o < n.length; o++) {
|
|
9798
|
+
const a = n[o];
|
|
9799
|
+
a.id || (a.id = Zn()), r.push(a.id);
|
|
9800
|
+
const i = a.resources.map((s) => s.src);
|
|
9801
|
+
i.length && Rv(i, a.id, {
|
|
9802
|
+
async: (t == null ? void 0 : t.async) ?? !1,
|
|
9803
|
+
before: (s, l) => (this.win.document.body.appendChild(l), !1)
|
|
9804
9804
|
});
|
|
9805
9805
|
}
|
|
9806
|
-
return new Promise((
|
|
9807
|
-
if (
|
|
9808
|
-
this._onSuccessList.forEach((
|
|
9806
|
+
return new Promise((o, a) => {
|
|
9807
|
+
if (n.length === 0) {
|
|
9808
|
+
this._onSuccessList.forEach((i) => i()), o("");
|
|
9809
9809
|
return;
|
|
9810
9810
|
}
|
|
9811
|
-
Rv.ready(
|
|
9811
|
+
Rv.ready(r, {
|
|
9812
9812
|
success: () => {
|
|
9813
|
-
this._onSuccessList.forEach((
|
|
9813
|
+
this._onSuccessList.forEach((i) => i()), o("");
|
|
9814
9814
|
},
|
|
9815
|
-
error: (
|
|
9816
|
-
this._onErrorList.forEach((
|
|
9815
|
+
error: (i) => {
|
|
9816
|
+
this._onErrorList.forEach((s) => s(i)), a(i);
|
|
9817
9817
|
}
|
|
9818
9818
|
});
|
|
9819
9819
|
});
|
|
@@ -14208,7 +14208,8 @@ class qB extends ie.Component {
|
|
|
14208
14208
|
const n = new Hb({
|
|
14209
14209
|
container: this.domRef.current,
|
|
14210
14210
|
name: "OutlineTree",
|
|
14211
|
-
eventPriority: 999
|
|
14211
|
+
eventPriority: 999,
|
|
14212
|
+
mainDocument: document
|
|
14212
14213
|
}), {
|
|
14213
14214
|
pluginCtx: r
|
|
14214
14215
|
} = this.props, o = r.pageModel, a = await this.getDesignerHandler(), i = a.getDnd();
|
|
@@ -34595,7 +34596,7 @@ class ese extends ie.Component {
|
|
|
34595
34596
|
});
|
|
34596
34597
|
}
|
|
34597
34598
|
}
|
|
34598
|
-
F(ese, "version", "0.0.
|
|
34599
|
+
F(ese, "version", "0.0.42");
|
|
34599
34600
|
export {
|
|
34600
34601
|
ese as Engine,
|
|
34601
34602
|
use as InnerComponentMeta,
|