@klauswuestefeld/jux-web 2024.2.7-1 → 2024.2.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.
@@ -1,5 +1,4 @@
1
1
  export declare const setBackendUrl: (backendUrl: string) => void;
2
- export declare const getBackendUrl: () => string;
3
2
  export declare const handleJuxEvents: (ev: Event) => void;
4
3
  export declare const backendRequest: (requestType: string, urlString: string, params: any, onJsonResponse: (response: any) => any, onHelpMessage: (message: string) => any, handleUnauthorized?: () => void) => void;
5
4
  export declare const backendPost: (endpoint: string, postContent: any, onJsonResponse: (response: any) => any, onHelpMessage: (message: string) => any) => void;
package/dist/jux-web.js CHANGED
@@ -14233,10 +14233,7 @@ var juxWeb = (function (exports) {
14233
14233
  };
14234
14234
  const clearSession = () => {
14235
14235
  // onUserChanged(null);
14236
- // TODO: find a better way to preserve backend-url
14237
- const backendUrl = getBackendUrl(); // Preserve backend, since the authentication was succcessfull
14238
14236
  localStorage.clear();
14239
- setBackendUrl(backendUrl);
14240
14237
  // @ts-ignore
14241
14238
  window.store = {};
14242
14239
  };
@@ -1,5 +1,6 @@
1
1
  export declare const setBackendToken: (token: string) => void;
2
2
  export declare const onTokenAcquired: (token: string, onUserLogin: any) => void;
3
+ export declare const clearSession: () => void;
3
4
  export declare const initSession: (clientApp: HTMLElement, supportedLoginTypes: string[], onUserLogin: any, backgroundImage: string, fetchUserBackendUrl: any, magicLinkRequestEndpoint: string | null, magicLinkAuthEndpoint: string | null) => void;
4
5
  export declare const onMicrosoftSignIn: (onUserLogin: any) => Promise<void>;
5
6
  export declare const onGoogleSignIn: (onUserLogin: any) => void;
package/dist/main.esm.js CHANGED
@@ -913,10 +913,7 @@ const onTokenAcquired = (token, onUserLogin) => {
913
913
  };
914
914
  const clearSession = () => {
915
915
  // onUserChanged(null);
916
- // TODO: find a better way to preserve backend-url
917
- const backendUrl = getBackendUrl(); // Preserve backend, since the authentication was succcessfull
918
916
  localStorage.clear();
919
- setBackendUrl(backendUrl);
920
917
  // @ts-ignore
921
918
  window.store = {};
922
919
  };
package/dist/main.js CHANGED
@@ -937,10 +937,7 @@ const onTokenAcquired = (token, onUserLogin) => {
937
937
  };
938
938
  const clearSession = () => {
939
939
  // onUserChanged(null);
940
- // TODO: find a better way to preserve backend-url
941
- const backendUrl = getBackendUrl(); // Preserve backend, since the authentication was succcessfull
942
940
  localStorage.clear();
943
- setBackendUrl(backendUrl);
944
941
  // @ts-ignore
945
942
  window.store = {};
946
943
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@klauswuestefeld/jux-web",
3
- "version": "2024.2.7-1",
3
+ "version": "2024.2.7",
4
4
  "author": "Jux.House",
5
5
  "license": "Copyrighted",
6
6
  "description": "",