@telicent-oss/ds 0.27.6 → 0.27.7

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/dist/ds.js CHANGED
@@ -80551,7 +80551,7 @@ const AuthModal = ({
80551
80551
  ] })
80552
80552
  ] }) });
80553
80553
  };
80554
- const registerAuthSync = (queryClient2) => onAuthEvent((event) => {
80554
+ const registerAuthSync = (queryClient2, baseUrl = "") => onAuthEvent((event) => {
80555
80555
  switch (event) {
80556
80556
  case AuthEvent.AUTHENTICATED:
80557
80557
  case AuthEvent.REAUTHENTICATED:
@@ -80560,15 +80560,15 @@ const registerAuthSync = (queryClient2) => onAuthEvent((event) => {
80560
80560
  });
80561
80561
  break;
80562
80562
  case AuthEvent.USER_CHANGED:
80563
- window.location.reload();
80563
+ window.location.replace(baseUrl);
80564
80564
  break;
80565
80565
  }
80566
80566
  });
80567
- const useAuthSync = (queryClient2) => {
80567
+ const useAuthSync = (queryClient2, baseUrl) => {
80568
80568
  useEffect(() => {
80569
- const unsubscribe = registerAuthSync(queryClient2);
80569
+ const unsubscribe = registerAuthSync(queryClient2, baseUrl);
80570
80570
  return unsubscribe;
80571
- }, [queryClient2]);
80571
+ }, [queryClient2, baseUrl]);
80572
80572
  };
80573
80573
  function bind(fn2, thisArg) {
80574
80574
  return function wrap() {
package/dist/ds.umd.cjs CHANGED
@@ -80569,7 +80569,7 @@ uniform ${i3} ${s4} u_${a3};
80569
80569
  ] })
80570
80570
  ] }) });
80571
80571
  };
80572
- const registerAuthSync = (queryClient2) => onAuthEvent((event) => {
80572
+ const registerAuthSync = (queryClient2, baseUrl = "") => onAuthEvent((event) => {
80573
80573
  switch (event) {
80574
80574
  case AuthEvent.AUTHENTICATED:
80575
80575
  case AuthEvent.REAUTHENTICATED:
@@ -80578,15 +80578,15 @@ uniform ${i3} ${s4} u_${a3};
80578
80578
  });
80579
80579
  break;
80580
80580
  case AuthEvent.USER_CHANGED:
80581
- window.location.reload();
80581
+ window.location.replace(baseUrl);
80582
80582
  break;
80583
80583
  }
80584
80584
  });
80585
- const useAuthSync = (queryClient2) => {
80585
+ const useAuthSync = (queryClient2, baseUrl) => {
80586
80586
  React$2.useEffect(() => {
80587
- const unsubscribe = registerAuthSync(queryClient2);
80587
+ const unsubscribe = registerAuthSync(queryClient2, baseUrl);
80588
80588
  return unsubscribe;
80589
- }, [queryClient2]);
80589
+ }, [queryClient2, baseUrl]);
80590
80590
  };
80591
80591
  function bind(fn, thisArg) {
80592
80592
  return function wrap() {
@@ -1,5 +1,5 @@
1
1
  /// <reference lib="webworker" />
2
- console.info("sw.js version: 0.27.6");
2
+ console.info("sw.js version: 0.27.7");
3
3
  self.addEventListener("install", () => self.skipWaiting());
4
4
  self.addEventListener("activate", (event) =>
5
5
  event.waitUntil(self.clients.claim())
@@ -1,4 +1,4 @@
1
1
  import { QueryClient } from '@tanstack/react-query';
2
2
 
3
- export declare const registerAuthSync: (queryClient: QueryClient) => () => void;
4
- export declare const useAuthSync: (queryClient: QueryClient) => void;
3
+ export declare const registerAuthSync: (queryClient: QueryClient, baseUrl?: string) => () => void;
4
+ export declare const useAuthSync: (queryClient: QueryClient, baseUrl: string) => void;
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "url": "https://github.com/telicent-oss/telicent-ds.git"
8
8
  },
9
9
  "type": "module",
10
- "version": "0.27.6",
10
+ "version": "0.27.7",
11
11
  "private": false,
12
12
  "dependencies": {
13
13
  "@emotion/react": "^11.10.6",