bt-core-app 1.4.409 → 1.4.411

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.
@@ -9518,12 +9518,12 @@ function Zx(e) {
9518
9518
  const t = "isInDemoMode", n = localStorage.getItem(t), a = W((e == null ? void 0 : e.startInDemo) == !0 || n == "true"), l = (e == null ? void 0 : e.apis) ?? [];
9519
9519
  function r() {
9520
9520
  var v;
9521
- ((v = e == null ? void 0 : e.auth) == null ? void 0 : v.isLoggedIn.value) == !0 && (e == null || e.auth.logout("/")), (e == null ? void 0 : e.getAuthToken) != null && e.auth != null && e.auth.setAuth(Hw(e.getAuthToken())), a.value = !0, localStorage.setItem(t, "true"), window.location.href = location.href;
9521
+ ((v = e == null ? void 0 : e.auth) == null ? void 0 : v.isLoggedIn.value) == !0 && (e == null || e.auth.logout()), (e == null ? void 0 : e.getAuthToken) != null && e.auth != null && e.auth.setAuth(Hw(e.getAuthToken())), a.value = !0, localStorage.setItem(t, "true"), window.location.href = location.href;
9522
9522
  }
9523
- function i() {
9523
+ function i(v) {
9524
9524
  a.value = !1;
9525
- const v = B0();
9526
- v && v._s.forEach((m) => m.$reset()), localStorage.setItem(t, "false"), window.location.href = location.href;
9525
+ const m = B0();
9526
+ m && m._s.forEach((g) => g.$reset()), localStorage.setItem(t, "false"), (e == null ? void 0 : e.auth) != null && (e == null || e.auth.logout()), window.location.href = v == !0 ? location.origin : location.href;
9527
9527
  }
9528
9528
  function o(v) {
9529
9529
  let m;
@@ -33781,7 +33781,7 @@ function VV(e, t, n) {
33781
33781
  r.isDemoing.value || r.startDemo(), c(), a.updateNavigationChange(e, t);
33782
33782
  else {
33783
33783
  if (r.isDemoing.value)
33784
- return r.endDemo(), c(), { path: "/" };
33784
+ return r.endDemo(!1), c(), { path: "/" };
33785
33785
  if (c(), l.tryLogin()) {
33786
33786
  const f = (i == null ? void 0 : i.subscriptions) ?? [], d = (i == null ? void 0 : i.permissions) ?? [];
33787
33787
  if (l.doShow(f, d, "view")) {
package/dist/index.d.ts CHANGED
@@ -209,7 +209,7 @@ export declare interface BTDates {
209
209
  }
210
210
 
211
211
  export declare interface BTDemo {
212
- endDemo: () => void;
212
+ endDemo: (goHome?: boolean) => void;
213
213
  isDemoing: Ref<boolean>;
214
214
  startDemo: () => void;
215
215
  data: DemoApiGroup[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bt-core-app",
3
- "version": "1.4.409",
3
+ "version": "1.4.411",
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": {