bt-core-app 1.4.539 → 1.4.540

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.
@@ -12486,28 +12486,24 @@ function H2() {
12486
12486
  }
12487
12487
  const my = Symbol(), W2 = Symbol(), vy = Symbol(), hy = Symbol();
12488
12488
  function UV(e, t, n, a) {
12489
- var v;
12490
- const l = Ye(my), r = Ye(hy), i = Ye(vy), o = l.findItem(e.meta.nav ?? e.name) ?? void 0, s = e.meta.requiresAuth !== !1 || o != null && o.requiresAuth !== !1, c = e.query.isDemo === "true", u = e.meta.permissions ?? [], f = e.meta.subscriptions ?? [];
12491
- function h() {
12489
+ var h;
12490
+ const l = Ye(my), r = Ye(hy), i = Ye(vy), o = l.findItem(e.meta.nav ?? e.name) ?? void 0, s = e.meta.requiresAuth !== !1 || o != null && o.requiresAuth !== !1, c = e.meta.permissions ?? [], u = e.meta.subscriptions ?? [];
12491
+ function f() {
12492
12492
  document.title = `${i.isDemoing.value ? "(Demo) " : ""}${cx() ?? ""}`;
12493
12493
  }
12494
- if (s)
12495
- if (c)
12496
- i.isDemoing.value || i.startDemo(), h(), l.updateNavigationChange(e, t);
12497
- else {
12498
- if (i.isDemoing.value)
12499
- return i.endDemo(!1), h(), { path: "/" };
12500
- if (h(), r.tryLogin()) {
12501
- const m = (o == null ? void 0 : o.subscriptions) ?? [], g = (o == null ? void 0 : o.permissions) ?? [];
12502
- if (m.push(...f), g.push(...u), r.doShow(m, g, "view")) {
12503
- l.updateNavigationChange(e, t);
12504
- return;
12505
- } else
12506
- return { name: n };
12494
+ if (e.query.isDemo === "true" && !i.isDemoing.value && i.startDemo(), s)
12495
+ if (i.isDemoing.value)
12496
+ f(), l.updateNavigationChange(e, t);
12497
+ else if (f(), r.tryLogin()) {
12498
+ const v = (o == null ? void 0 : o.subscriptions) ?? [], m = (o == null ? void 0 : o.permissions) ?? [];
12499
+ if (v.push(...u), m.push(...c), r.doShow(v, m, "view")) {
12500
+ l.updateNavigationChange(e, t);
12501
+ return;
12507
12502
  } else
12508
- return r.login(window.location.pathname), { name: n };
12509
- }
12510
- else if (h(), l.updateNavigationChange(e, t), e.path == "/" && r.tryLogin() && vl((v = t.name) == null ? void 0 : v.toString()))
12503
+ return { name: n };
12504
+ } else
12505
+ return r.login(window.location.pathname), { name: n };
12506
+ else if (f(), l.updateNavigationChange(e, t), e.path == "/" && r.tryLogin() && vl((h = t.name) == null ? void 0 : h.toString()))
12511
12507
  return { name: a };
12512
12508
  }
12513
12509
  function YV(e) {
package/dist/index.d.ts CHANGED
@@ -728,10 +728,6 @@ export declare interface GroupedHeaderOption {
728
728
 
729
729
  export declare function guardRoute(to: RouteLocationNormalized, from: RouteLocationNormalized, restrictedName: string, loggedInHome: string): {
730
730
  name: string;
731
- path?: undefined;
732
- } | {
733
- path: string;
734
- name?: undefined;
735
731
  } | undefined;
736
732
 
737
733
  /**tests for whether string is contains in any of the given props of the given value */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bt-core-app",
3
- "version": "1.4.539",
3
+ "version": "1.4.540",
4
4
  "description": "Core app tools for some basic features like navigation, authentication, server apis, and cosmetics",
5
5
  "homepage": "https://github.com/BlitzItTech/bt-core",
6
6
  "bugs": {