@authing/native-js-ui-components 3.0.1-rc.3 → 3.0.4

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.
@@ -151,7 +151,8 @@ module.exports = function (webpackEnv) {
151
151
  autoprefixer: {
152
152
  flexbox: 'no-2009',
153
153
  },
154
- stage: 3,
154
+ // upgrade 3 to 4, fixed compiled css bug: font-feature-settings:"tnum","tnum",,"tnum"
155
+ stage: 4,
155
156
  }),
156
157
  // Adds PostCSS Normalize as the reset css with default options,
157
158
  // so that it honors browserslist config in package.json
package/lib/index.d.ts CHANGED
@@ -31,9 +31,36 @@ 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
- export * from '@authing/native-js-ui-components/components/AuthingGuard/index';
59
+ import { Guard } from "@authing/native-js-ui-components/components/Guard/index";
60
+ import { GuardConfig, GuardLocalConfig } from "@authing/react-ui-components/components";
61
+ export * from "@authing/native-js-ui-components/components/AuthingGuard/index";
62
+ export { Guard };
63
+ export type { GuardConfig, GuardLocalConfig };
37
64
 
38
65
  }
39
66
  declare module '@authing/native-js-ui-components/index' {