bt-core-app 1.4.377 → 1.4.379

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.
@@ -23772,15 +23772,14 @@ function br() {
23772
23772
  function Ap() {
23773
23773
  const e = xs(), t = br();
23774
23774
  function n() {
23775
- const a = t.navHistory.length;
23776
- if (a > 1) {
23775
+ if (t.navHistory.length > 1) {
23777
23776
  t.navHistory.pop();
23778
- const l = t.navHistory[a - 1];
23779
- t.navHistory.pop(), e.push(l);
23780
- } else
23781
- e.back();
23777
+ const a = t.navHistory[t.navHistory.length - 1];
23778
+ t.navHistory.pop(), a != null && e.push(a);
23779
+ }
23782
23780
  }
23783
23781
  return {
23782
+ canNavBack: _(() => t.navHistory.length > 0),
23784
23783
  navBack: n
23785
23784
  };
23786
23785
  }
@@ -23866,9 +23865,9 @@ function qM(e) {
23866
23865
  }
23867
23866
  }
23868
23867
  function w(T, L) {
23869
- console.log(T), console.log(L), L != null && T.name == L.name && (L.params.id == "new" || L.query.id == "new") && n.pop(), T != null && (T.params == null || T.params.navIgnore != "true") && n.push(T);
23868
+ T.name == (L == null ? void 0 : L.name) && ((L == null ? void 0 : L.params.id) == "new" || (L == null ? void 0 : L.query.id) == "new") && n.pop(), T.params.navIgnore !== "true" && n.push(T);
23870
23869
  const M = T.meta.nav ?? T.name, P = u(M), W = T.meta.background ?? (P == null ? void 0 : P.background);
23871
- W != o.value && (o.value = W, i.value == null && x()), l.value = T.meta.hideNavigation !== "true" && (P == null ? void 0 : P.hideNavigation) !== !0, a.value = T.meta.hideAppBar !== "true" && (P == null ? void 0 : P.hideAppBar) !== !0, console.log(n);
23870
+ W != o.value && (o.value = W, i.value == null && x()), l.value = T.meta.hideNavigation !== "true" && (P == null ? void 0 : P.hideNavigation) !== !0, a.value = T.meta.hideAppBar !== "true" && (P == null ? void 0 : P.hideAppBar) !== !0;
23872
23871
  }
23873
23872
  return _c = {
23874
23873
  showAppBar: a,
package/dist/index.d.ts CHANGED
@@ -1727,6 +1727,7 @@ export declare function useLocalDb(): LocalForage;
1727
1727
  export declare function useMenu(): BTMenu;
1728
1728
 
1729
1729
  export declare function useNavBack(): {
1730
+ canNavBack: ComputedRef<boolean>;
1730
1731
  navBack: () => void;
1731
1732
  };
1732
1733
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bt-core-app",
3
- "version": "1.4.377",
3
+ "version": "1.4.379",
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": {