bt-core-app 2.0.133 → 2.0.134

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.
@@ -9595,10 +9595,12 @@ function pP(e) {
9595
9595
  isLoggedIn: T(() => r.value.isLoggedIn === !0),
9596
9596
  login: p,
9597
9597
  logout: m,
9598
+ refreshTokenExpired: _,
9598
9599
  resetAuthState: l,
9599
9600
  setAuth: b,
9600
9601
  testToken: S,
9601
9602
  timeZone: T(() => r.value.timeZone ?? e.defaultTimeZone ?? Wp),
9603
+ tokenExpired: D,
9602
9604
  tryLogin: C,
9603
9605
  tryRefreshToken: w
9604
9606
  }, ky;
@@ -14038,10 +14040,10 @@ function rse(e, t, a, n) {
14038
14040
  function d() {
14039
14041
  document.title = `${i.isDemoing.value ? "(Demo) " : ""}${aP() ?? ""}`;
14040
14042
  }
14041
- if (e.query.isDemo === "true" && !i.isDemoing.value && i.startDemo(), s)
14043
+ if (e.query.isDemo === "true" && !i.isDemoing.value && i.startDemo(), d(), s)
14042
14044
  if (i.isDemoing.value)
14043
- d(), l.updateNavigationChange(e, t);
14044
- else if (d(), r.tryLogin()) {
14045
+ l.updateNavigationChange(e, t);
14046
+ else if (r.tryLogin()) {
14045
14047
  const f = (o == null ? void 0 : o.subscriptions) ?? [], g = (o == null ? void 0 : o.permissions) ?? [];
14046
14048
  if (f.push(...u), g.push(...c), r.doShow(f, g, "view")) {
14047
14049
  l.updateNavigationChange(e, t);
@@ -14050,7 +14052,7 @@ function rse(e, t, a, n) {
14050
14052
  return { name: a };
14051
14053
  } else
14052
14054
  return r.login(window.location.pathname), { name: a };
14053
- else if (d(), l.updateNavigationChange(e, t), e.path == "/" && r.tryLogin() && ia((v = t.name) == null ? void 0 : v.toString()))
14055
+ else if (l.updateNavigationChange(e, t), e.path == "/" && r.tryLogin() && ia((v = t.name) == null ? void 0 : v.toString()))
14054
14056
  return { name: n };
14055
14057
  }
14056
14058
  const IB = (e) => ia(e) || /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(e) || "Email must be valid", Hf = (e) => !!e || "Required";
@@ -79904,6 +79906,7 @@ export {
79904
79906
  Foe as useStore,
79905
79907
  Fo as useStoreDefinition,
79906
79908
  tse as useStyle,
79909
+ aP as useTabTitle,
79907
79910
  cD as useTracker,
79908
79911
  Poe as useUrls,
79909
79912
  JL as validEmail,
package/dist/index.d.ts CHANGED
@@ -254,10 +254,12 @@ export declare interface BTAuth {
254
254
  isLoggedIn: ComputedRef<boolean>;
255
255
  login: (redirectPath?: string, query?: any) => void;
256
256
  logout: (navNameRedirect?: string) => void;
257
+ refreshTokenExpired: () => boolean;
257
258
  resetAuthState: () => void;
258
259
  setAuth: (jwtToken?: string) => void;
259
260
  testToken: () => Promise<boolean>;
260
261
  timeZone: ComputedRef<string>;
262
+ tokenExpired: () => boolean;
261
263
  tryLogin: () => boolean | undefined;
262
264
  tryRefreshToken: () => Promise<void>;
263
265
  }
@@ -2688,6 +2690,8 @@ export declare function useStyle(actualUsedHeight?: MaybeRefOrGetter<number>, ig
2688
2690
  style: ComputedRef<string>;
2689
2691
  };
2690
2692
 
2693
+ export declare function useTabTitle(): string | undefined;
2694
+
2691
2695
  export declare function useTracker<T>(data: MaybeRefOrGetter<T>, options?: UseTrackerOptions): TrackedItem<T>;
2692
2696
 
2693
2697
  export declare interface UseTrackerOptions {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bt-core-app",
3
- "version": "2.0.133",
3
+ "version": "2.0.134",
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": {