@authing/native-js-ui-components 2.4.56 → 3.0.0-rc.1
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 +26 -1
- package/lib/index.min.css +2 -1
- package/lib/index.min.js +1 -1
- package/package.json +4 -3
- package/src/App.tsx +5 -10
- package/src/components/AuthingGuard/index.tsx +24 -9
- package/src/components/Guard/index.tsx +143 -0
- package/src/components/index.ts +5 -1
package/lib/index.d.ts
CHANGED
|
@@ -31,9 +31,34 @@ declare module '@authing/native-js-ui-components/components/AuthingGuard/index'
|
|
|
31
31
|
hide(): void;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
+
}
|
|
35
|
+
declare module '@authing/native-js-ui-components/components/Guard/index' {
|
|
36
|
+
import { User, GuardMode, GuardScenes, LoginMethods, getAuthClient, CommonMessage, initAuthClient, RegisterMethods, GuardEventsHandler, AuthenticationClient, GuardEventsHandlerKebab, GuardEventsCamelToKebabMap, AuthenticationClientOptions } from "@authing/react-ui-components";
|
|
37
|
+
import "@authing/react-ui-components/lib/index.min.css";
|
|
38
|
+
import { GuardLocalConfig } from "@authing/react-ui-components/components/Guard/config";
|
|
39
|
+
export type { User, CommonMessage, GuardEventsHandler, AuthenticationClient, GuardEventsHandlerKebab, AuthenticationClientOptions, };
|
|
40
|
+
export { GuardMode, GuardScenes, LoginMethods, getAuthClient, initAuthClient, RegisterMethods, GuardEventsCamelToKebabMap, };
|
|
41
|
+
export type EventListeners = {
|
|
42
|
+
[key in keyof GuardEventsHandlerKebab]: Exclude<Required<GuardEventsHandlerKebab>[key], undefined>[];
|
|
43
|
+
};
|
|
44
|
+
export class Guard {
|
|
45
|
+
private appId;
|
|
46
|
+
private config?;
|
|
47
|
+
constructor(appId: string, config?: Partial<GuardLocalConfig> | undefined);
|
|
48
|
+
static getGuardContainer(selector?: string | HTMLElement): Element | null;
|
|
49
|
+
private visible;
|
|
50
|
+
private eventListeners;
|
|
51
|
+
private render;
|
|
52
|
+
on<T extends keyof GuardEventsHandlerKebab>(evt: T, handler: Exclude<GuardEventsHandlerKebab[T], undefined>): void;
|
|
53
|
+
show(): void;
|
|
54
|
+
hide(): void;
|
|
55
|
+
}
|
|
56
|
+
|
|
34
57
|
}
|
|
35
58
|
declare module '@authing/native-js-ui-components/components/index' {
|
|
36
|
-
|
|
59
|
+
import { Guard } from "@authing/native-js-ui-components/components/Guard/index";
|
|
60
|
+
export * from "@authing/native-js-ui-components/components/AuthingGuard/index";
|
|
61
|
+
export { Guard };
|
|
37
62
|
|
|
38
63
|
}
|
|
39
64
|
declare module '@authing/native-js-ui-components/index' {
|