@platforma-sdk/ui-vue 1.7.32 → 1.7.34
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/CHANGELOG.md +6 -0
- package/dist/lib.js +10 -5
- package/dist/lib.umd.cjs +2 -2
- package/dist/src/defineApp.d.ts +8 -6
- package/dist/src/defineApp.d.ts.map +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/components/BlockLayout.vue +1 -1
- package/src/defineApp.ts +22 -8
package/CHANGELOG.md
CHANGED
package/dist/lib.js
CHANGED
|
@@ -3394,12 +3394,17 @@ function BI(r, e) {
|
|
|
3394
3394
|
const s = () => {
|
|
3395
3395
|
r.loadBlockState().then((l) => {
|
|
3396
3396
|
a.loaded = !0;
|
|
3397
|
-
const u = zw(l, r), c = e(u)
|
|
3397
|
+
const u = zw(l, r), c = e(u), f = Object.fromEntries(
|
|
3398
|
+
Object.entries(c.routes).map(([h, m]) => {
|
|
3399
|
+
const x = typeof m == "function" ? m() : m;
|
|
3400
|
+
return [h, vw(x)];
|
|
3401
|
+
})
|
|
3402
|
+
);
|
|
3398
3403
|
t = Object.assign(u, {
|
|
3399
3404
|
...c,
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3405
|
+
getRoute(h) {
|
|
3406
|
+
return f[h];
|
|
3407
|
+
}
|
|
3403
3408
|
});
|
|
3404
3409
|
}).catch((l) => {
|
|
3405
3410
|
console.error("load initial state error", l), a.error = l;
|
|
@@ -12585,7 +12590,7 @@ const WR = /* @__PURE__ */ Ju(BR, [["render", jR]]), UR = { class: "block block_
|
|
|
12585
12590
|
}, s = T(() => e.loaded ? e.useApp().href : void 0), a = T(() => {
|
|
12586
12591
|
if (e.loaded) {
|
|
12587
12592
|
const l = e.useApp(), u = t(l.snapshot.navigationState.href);
|
|
12588
|
-
return u ? l.
|
|
12593
|
+
return u ? l.getRoute(u) : void 0;
|
|
12589
12594
|
}
|
|
12590
12595
|
});
|
|
12591
12596
|
return (l, u) => (_(), C("div", UR, [
|