x-runtime-lib 0.8.196 → 0.8.197
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 +4 -6
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -10526,11 +10526,11 @@ function bindView(e) {
|
|
|
10526
10526
|
let v = p.getString(m), y = p.getString(g), b = p.dump(_), { promise: x, resolve: S, reject: C } = e.promiseManager.create();
|
|
10527
10527
|
return e.callMethod(v, y, b).then((e) => S(e), (e) => C(e)), x.settled.then(p.runtime.executePendingJobs), x.handle;
|
|
10528
10528
|
}).consume((e) => p.setProp(p.global, "__callMethodV1__", e)), p.newFunction("__getStateV1__", (m) => {
|
|
10529
|
-
let g = p.getString(m);
|
|
10530
|
-
return
|
|
10529
|
+
let g = p.getString(m), { promise: _, resolve: v, reject: y } = e.promiseManager.create();
|
|
10530
|
+
return e.getState(g).then((e) => v(e), (e) => y(e)), _.settled.then(p.runtime.executePendingJobs), _.handle;
|
|
10531
10531
|
}).consume((e) => p.setProp(p.global, "__getStateV1__", e)), p.newFunction("__setStateV1__", (m, g) => {
|
|
10532
|
-
let _ = p.getString(m), v = p.dump(g);
|
|
10533
|
-
e.setState(_, v);
|
|
10532
|
+
let _ = p.getString(m), v = p.dump(g), { promise: y, resolve: b, reject: x } = e.promiseManager.create();
|
|
10533
|
+
return e.setState(_, v).then((e) => b(e), (e) => x(e)), y.settled.then(p.runtime.executePendingJobs), y.handle;
|
|
10534
10534
|
}).consume((e) => p.setProp(p.global, "__setStateV1__", e)), p.newFunction("__navigateToV1__", (m, g) => {
|
|
10535
10535
|
let _ = p.getString(m), v = p.getString(g);
|
|
10536
10536
|
if (e.mode === "runtime") {
|
|
@@ -10738,7 +10738,6 @@ var PromiseManager = class {
|
|
|
10738
10738
|
return !m || !m.properties ? !1 : !!m.properties.find((e) => e.id === p);
|
|
10739
10739
|
}
|
|
10740
10740
|
async getProperty(e, p) {
|
|
10741
|
-
this.debugTrace(makeFuncInfo("getProperty", e, p ?? ""));
|
|
10742
10741
|
let { kind: m, nodeId: g, propertyKey: _ } = unwrapPropertyId(e), v = this.data.value?.view.nodes[g];
|
|
10743
10742
|
if (!v) throw Error("node not found");
|
|
10744
10743
|
if (m === "elementProperty") return await this.getElementProperty(e, v, _);
|
|
@@ -10816,7 +10815,6 @@ var PromiseManager = class {
|
|
|
10816
10815
|
return this.customSlotProperties[g];
|
|
10817
10816
|
}
|
|
10818
10817
|
async setProperty(e, p, m) {
|
|
10819
|
-
this.debugTrace(makeFuncInfo("setProperty", e, p, m ?? ""));
|
|
10820
10818
|
let { kind: g, nodeId: v, propertyKey: y } = unwrapPropertyId(e), b = this.data.value?.view.nodes[v];
|
|
10821
10819
|
if (!b) throw Error("node not found");
|
|
10822
10820
|
if (p = cloneDeep_default(p), g === "elementProperty") await this.setElementProperty(e, p, y, b);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "x-runtime-lib",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.8.
|
|
4
|
+
"version": "0.8.197",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -33,7 +33,8 @@
|
|
|
33
33
|
"three": "^0.182.0",
|
|
34
34
|
"vue": "^3.5.27",
|
|
35
35
|
"vue-i18n": "^11.2.8",
|
|
36
|
-
"vuetify": "^3.11.7"
|
|
36
|
+
"vuetify": "^3.11.7",
|
|
37
|
+
"x-block-lib": "link:../x-block-lib"
|
|
37
38
|
},
|
|
38
39
|
"peerDependencies": {
|
|
39
40
|
"x-error-lib": "^0.5.13",
|