@authing/native-js-ui-components 3.1.13 → 3.1.21
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/lib/index.d.ts +24 -15
- package/lib/index.min.css +1 -1
- package/lib/index.min.js +1 -1
- package/package.json +6 -3
- package/src/App.tsx +3 -1
- package/src/components/AuthingGuard/index.tsx +9 -53
- package/src/components/Guard/index.tsx +63 -60
- package/src/components/index.ts +46 -4
package/lib/index.d.ts
CHANGED
|
@@ -10,10 +10,8 @@ declare module '@authing/native-js-ui-components/App.test' {
|
|
|
10
10
|
|
|
11
11
|
}
|
|
12
12
|
declare module '@authing/native-js-ui-components/components/AuthingGuard/index' {
|
|
13
|
-
import {
|
|
13
|
+
import { UserConfig, GuardEventsHandlerKebab } from "@authing/react-ui-components";
|
|
14
14
|
import "@authing/react-ui-components/lib/index.min.css";
|
|
15
|
-
export type { User, UserConfig, CommonMessage, GuardEventsHandler, AuthenticationClient, GuardEventsHandlerKebab, AuthenticationClientOptions, };
|
|
16
|
-
export { GuardMode, GuardScenes, LoginMethods, getAuthClient, initAuthClient, RegisterMethods, GuardEventsCamelToKebabMap, };
|
|
17
15
|
export type EventListeners = {
|
|
18
16
|
[key in keyof GuardEventsHandlerKebab]: Exclude<Required<GuardEventsHandlerKebab>[key], undefined>[];
|
|
19
17
|
};
|
|
@@ -33,23 +31,34 @@ declare module '@authing/native-js-ui-components/components/AuthingGuard/index'
|
|
|
33
31
|
|
|
34
32
|
}
|
|
35
33
|
declare module '@authing/native-js-ui-components/components/Guard/index' {
|
|
36
|
-
import {
|
|
34
|
+
import { AuthenticationClient, GuardEventsKebabToCamelType } from "@authing/react-ui-components";
|
|
37
35
|
import "@authing/react-ui-components/lib/index.min.css";
|
|
38
36
|
import { GuardLocalConfig } from "@authing/react-ui-components/components/Guard/config";
|
|
39
|
-
export
|
|
40
|
-
|
|
37
|
+
export interface NativeGuardProps {
|
|
38
|
+
appId?: string;
|
|
39
|
+
config?: Partial<GuardLocalConfig>;
|
|
40
|
+
tenantId?: string;
|
|
41
|
+
authClient?: AuthenticationClient;
|
|
42
|
+
}
|
|
43
|
+
export interface NativeGuardConstructor {
|
|
44
|
+
(appId?: string | NativeGuardProps, config?: Partial<GuardLocalConfig>, tenantId?: string, authClient?: AuthenticationClient): void;
|
|
45
|
+
(props: NativeGuardProps): void;
|
|
46
|
+
}
|
|
41
47
|
export type GuardEventListeners = {
|
|
42
|
-
[key in keyof
|
|
48
|
+
[key in keyof GuardEventsKebabToCamelType]: Exclude<Required<GuardEventsKebabToCamelType>[key], undefined>[];
|
|
43
49
|
};
|
|
44
50
|
export class Guard {
|
|
45
|
-
private appId
|
|
51
|
+
private appId?;
|
|
46
52
|
private config?;
|
|
47
|
-
|
|
53
|
+
private tenantId?;
|
|
54
|
+
private authClient?;
|
|
55
|
+
private visible?;
|
|
56
|
+
constructor(props?: NativeGuardProps);
|
|
57
|
+
constructor(appId?: string, config?: Partial<GuardLocalConfig>, tenantId?: string, authClient?: AuthenticationClient);
|
|
48
58
|
static getGuardContainer(selector?: string | HTMLElement): Element | null;
|
|
49
|
-
private visible;
|
|
50
59
|
private eventListeners;
|
|
51
60
|
private render;
|
|
52
|
-
on<T extends keyof
|
|
61
|
+
on<T extends keyof GuardEventsKebabToCamelType>(evt: T, handler: Exclude<GuardEventsKebabToCamelType[T], undefined>): void;
|
|
53
62
|
show(): void;
|
|
54
63
|
hide(): void;
|
|
55
64
|
}
|
|
@@ -57,10 +66,10 @@ declare module '@authing/native-js-ui-components/components/Guard/index' {
|
|
|
57
66
|
}
|
|
58
67
|
declare module '@authing/native-js-ui-components/components/index' {
|
|
59
68
|
import { Guard } from "@authing/native-js-ui-components/components/Guard/index";
|
|
60
|
-
import {
|
|
61
|
-
|
|
62
|
-
export { Guard };
|
|
63
|
-
export type { GuardConfig, GuardLocalConfig };
|
|
69
|
+
import { AuthingGuard } from "@authing/native-js-ui-components/components/AuthingGuard/index";
|
|
70
|
+
import { User, GuardMode, UserConfig, GuardScenes, LoginMethods, getAuthClient, CommonMessage, initAuthClient, RegisterMethods, GuardEventsHandler, AuthenticationClient, GuardEventsHandlerKebab, GuardEventsCamelToKebabMap, GuardEvents, GuardEventsKebabToCamelType, GuardEventsCamelToKebabMapping, GuardConfig, GuardLocalConfig } from "@authing/react-ui-components";
|
|
71
|
+
export { Guard, AuthingGuard, GuardMode, GuardScenes, LoginMethods, getAuthClient, initAuthClient, RegisterMethods, GuardEventsCamelToKebabMap, GuardEventsCamelToKebabMapping, };
|
|
72
|
+
export type { GuardConfig, GuardLocalConfig, GuardEvents, User, UserConfig, CommonMessage, GuardEventsHandler, AuthenticationClient, GuardEventsHandlerKebab, GuardEventsKebabToCamelType, };
|
|
64
73
|
|
|
65
74
|
}
|
|
66
75
|
declare module '@authing/native-js-ui-components/index' {
|