@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.
|
|
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.
|
|
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() {
|
package/dist/logout-syncer/sw.js
CHANGED
|
@@ -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;
|