@authing/native-js-ui-components 3.1.39-rc.2 → 4.0.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 CHANGED
@@ -8,32 +8,10 @@ declare module '@authing/native-js-ui-components/App' {
8
8
  declare module '@authing/native-js-ui-components/App.test' {
9
9
  export {};
10
10
 
11
- }
12
- declare module '@authing/native-js-ui-components/components/AuthingGuard/index' {
13
- import { UserConfig, GuardEventsHandlerKebab } from "@authing/react-ui-components";
14
- import "@authing/react-ui-components/lib/index.min.css";
15
- export type EventListeners = {
16
- [key in keyof GuardEventsHandlerKebab]: Exclude<Required<GuardEventsHandlerKebab>[key], undefined>[];
17
- };
18
- export class AuthingGuard {
19
- private appId;
20
- private config?;
21
- private tenantId?;
22
- constructor(appId: string, config?: UserConfig | undefined, tenantId?: string | undefined);
23
- static getGuardContainer(selector?: string | HTMLElement): Element | null;
24
- private visible;
25
- private eventListeners;
26
- private render;
27
- on<T extends keyof GuardEventsHandlerKebab>(evt: T, handler: Exclude<GuardEventsHandlerKebab[T], undefined>): void;
28
- show(): void;
29
- hide(): void;
30
- }
31
-
32
11
  }
33
12
  declare module '@authing/native-js-ui-components/components/Guard/index' {
34
- import { AuthenticationClient, GuardEventsKebabToCamelType } from '@authing/react-ui-components';
35
- import '@authing/react-ui-components/lib/index.min.css';
36
- import { GuardLocalConfig } from '@authing/react-ui-components/components/Guard/config';
13
+ import { AuthenticationClient, GuardEventsKebabToCamelType, GuardLocalConfig } from "@authing/react-ui-components";
14
+ import "@authing/react-ui-components/lib/index.min.css";
37
15
  export interface NativeGuardProps {
38
16
  appId?: string;
39
17
  config?: Partial<GuardLocalConfig>;
@@ -59,8 +37,8 @@ declare module '@authing/native-js-ui-components/components/Guard/index' {
59
37
  private eventListeners;
60
38
  render(): void;
61
39
  render(aliginOrCb: () => void): void;
62
- render(aliginOrCb: 'none' | 'center' | 'left' | 'right'): void;
63
- render(aliginOrCb: 'none' | 'center' | 'left' | 'right', callback: () => void): void;
40
+ render(aliginOrCb: "none" | "center" | "left" | "right"): void;
41
+ render(aliginOrCb: "none" | "center" | "left" | "right", callback: () => void): void;
64
42
  on<T extends keyof GuardEventsKebabToCamelType>(evt: T, handler: Exclude<GuardEventsKebabToCamelType[T], undefined>): void;
65
43
  show(): void;
66
44
  hide(): void;
@@ -70,10 +48,9 @@ declare module '@authing/native-js-ui-components/components/Guard/index' {
70
48
  }
71
49
  declare module '@authing/native-js-ui-components/components/index' {
72
50
  import { Guard } from "@authing/native-js-ui-components/components/Guard/index";
73
- import { AuthingGuard } from "@authing/native-js-ui-components/components/AuthingGuard/index";
74
- import { User, GuardMode, UserConfig, GuardScenes, LoginMethods, getAuthClient, CommonMessage, initAuthClient, RegisterMethods, GuardModuleType, GuardEventsHandler, AuthenticationClient, GuardEventsHandlerKebab, GuardEventsCamelToKebabMap, GuardEvents, GuardEventsKebabToCamelType, GuardEventsCamelToKebabMapping, GuardConfig, GuardLocalConfig } from "@authing/react-ui-components";
75
- export { Guard, AuthingGuard, GuardMode, GuardScenes, LoginMethods, getAuthClient, initAuthClient, RegisterMethods, GuardEventsCamelToKebabMap, GuardEventsCamelToKebabMapping, };
76
- export type { GuardConfig, GuardLocalConfig, GuardEvents, User, UserConfig, CommonMessage, GuardModuleType, GuardEventsHandler, AuthenticationClient, GuardEventsHandlerKebab, GuardEventsKebabToCamelType, };
51
+ import { User, GuardMode, GuardModuleType, LoginMethods, CommonMessage, RegisterMethods, AuthenticationClient, GuardEvents, GuardEventsKebabToCamelType, GuardEventsCamelToKebabMapping, GuardLocalConfig } from "@authing/react-ui-components";
52
+ export { Guard, GuardMode, GuardModuleType, LoginMethods, RegisterMethods, GuardEventsCamelToKebabMapping };
53
+ export type { GuardLocalConfig, GuardEvents, User, CommonMessage, AuthenticationClient, GuardEventsKebabToCamelType };
77
54
 
78
55
  }
79
56
  declare module '@authing/native-js-ui-components/index' {