@klauswuestefeld/jux-web 2024.11.25 → 2024.12.6
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/api-client.d.ts +2 -1
- package/dist/jux/jux-event.d.ts +2 -2
- package/dist/jux-web.js +531 -261
- package/dist/login/auth.d.ts +1 -1
- package/dist/login/session.d.ts +1 -0
- package/dist/main.esm.js +80 -5
- package/dist/main.js +80 -5
- package/package.json +1 -1
package/dist/api-client.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export declare const setBackendUrl: (backendUrl: string) => void;
|
|
|
2
2
|
export declare const getBackendUrl: () => string;
|
|
3
3
|
export declare const handleJuxEvent: (ev: Event) => void;
|
|
4
4
|
export declare const backendRequest: (url: string, options: any, onSuccess: any, onError: any, onRedirect?: any, requestType?: string, handleUnauthorized?: (res: any) => void, retrial?: boolean, retrialNum?: number) => Promise<any>;
|
|
5
|
-
export declare const backendPost: (endpoint: string, postContent: any, onJsonResponse: (response: any) => any, onHelpMessage: (message: string) => any) => void;
|
|
5
|
+
export declare const backendPost: (endpoint: string, postContent: any, onJsonResponse: (response: any) => any, onHelpMessage: (message: string) => any, handleUnauthorized?: any) => void;
|
|
6
6
|
export declare const backendGet: (endpoint: string, params: any, onJsonResponse: (response: any) => any, onHelpMessage: (message: string) => any, handleUnauthorized?: any) => void;
|
|
7
7
|
export declare const requestMagicLink: (data: any, onJsonResponse: (response: any) => any, onUnauthorized: () => void) => void;
|
|
8
8
|
export declare const openMagicLink: (magicToken: string, onJsonResponse: (response: any) => any, onHelpMessage: (message: string) => any) => void;
|
|
@@ -10,4 +10,5 @@ export declare const googleLogin: (token: string, onLogin: (response: any) => an
|
|
|
10
10
|
export declare const microsoftLogin: (token: string, onLogin: (response: any) => any, onLoginError: (message: string) => any) => void;
|
|
11
11
|
export declare const getSSOAuthorizationEndpoint: (onSuccess: (response: any) => any, onError: (message: string) => any) => void;
|
|
12
12
|
export declare const validateSSOToken: (token: string, redirectUri: string, onLogin: (response: any) => any, onError: (message: string) => any, handleUnauthorized: (response: any) => void) => void;
|
|
13
|
+
export declare const authPasswordLogin: (credentials: any, onLogin: (response: any) => any, onLoginError: (message: string) => any, handleUnauthorized: (response: any) => void) => void;
|
|
13
14
|
export declare const getMXData: (domainName: string) => Promise<any>;
|
package/dist/jux/jux-event.d.ts
CHANGED
|
@@ -8,5 +8,5 @@ export declare class JuxEvent extends Event {
|
|
|
8
8
|
onRedirect?: (result: any) => any;
|
|
9
9
|
constructor(type: string, method: string, endpoint: string, onResult?: (result: any) => any, params?: any, onError?: (error: any) => void, onRedirect?: (result: any) => any);
|
|
10
10
|
}
|
|
11
|
-
export declare const query: (element: HTMLElement, endpoint: string, onResult: (result: any) => any, params?: any, onError?: (
|
|
12
|
-
export declare const command: (element: HTMLElement, endpoint: string, onResult?: (
|
|
11
|
+
export declare const query: (element: HTMLElement, endpoint: string, onResult: (result: any) => any, params?: any, onError?: (error: any) => void, onRedirect?: (result: any) => any) => void;
|
|
12
|
+
export declare const command: (element: HTMLElement, endpoint: string, onResult?: (result: any) => any, params?: any, onError?: (error: any) => void, onRedirect?: (result: any) => any) => void;
|