@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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @platforma-sdk/ui-vue
2
2
 
3
+ ## 1.7.34
4
+
5
+ ### Patch Changes
6
+
7
+ - eddcfed: Add Errors page to ui-examples
8
+
3
9
  ## 1.7.32
4
10
 
5
11
  ### Patch Changes
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
- routes: Object.fromEntries(
3401
- Object.entries(c.routes).map(([f, h]) => [f, vw(h)])
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.routes[u] : void 0;
12593
+ return u ? l.getRoute(u) : void 0;
12589
12594
  }
12590
12595
  });
12591
12596
  return (l, u) => (_(), C("div", UR, [