@authing/react-ui-components 4.2.3-alpha.8 → 4.2.3-alpha.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authing/react-ui-components",
3
- "version": "4.2.3-alpha.8",
3
+ "version": "4.2.3-alpha.9",
4
4
  "private": false,
5
5
  "main": "lib/index.min.js",
6
6
  "typings": "types/index.d.ts",
@@ -3,11 +3,13 @@ import { Agreement } from '../../../Type';
3
3
  interface Options {
4
4
  agreements: Agreement[];
5
5
  checkedAgreements: (string | number)[];
6
- toggleItemCheck: React.Dispatch<any>;
6
+ checkAllAgreements: React.Dispatch<any>;
7
+ noCheckAllAgreements: React.Dispatch<any>;
7
8
  }
8
9
  export declare function useAgreements(options: Options): {
9
10
  agreements: Agreement[];
10
11
  checkedAgreements: import("react").ReactText[];
11
- toggleItemCheck: () => void;
12
+ checkAllAgreements: import("react").Dispatch<any>;
13
+ noCheckAllAgreements: import("react").Dispatch<any>;
12
14
  };
13
15
  export {};
@@ -5,7 +5,7 @@ import { IdentityBindingEvents } from '../IdentityBinding/interface';
5
5
  import { IdentityBindingAskEvents } from '../IdentityBindingAsk';
6
6
  import { LoginEvents } from '../Login/interface';
7
7
  import { RegisterEvents } from '../Register/interface';
8
- interface OnChangeViewOptions {
8
+ interface OnAfterChangeModuleOptions {
9
9
  currentView: string;
10
10
  currentModule: GuardModuleType;
11
11
  currentTab?: string;
@@ -13,7 +13,7 @@ interface OnChangeViewOptions {
13
13
  }
14
14
  export interface GuardEvents extends LoginEvents, RegisterEvents, CompleteInfoEvents, ForgetPasswordEvents, IdentityBindingEvents, IdentityBindingAskEvents {
15
15
  onBeforeChangeModule?: (key: GuardModuleType, initData?: any) => boolean | Promise<boolean>;
16
- onChangeView?: (options: OnChangeViewOptions) => void;
16
+ onAfterChangeModule?: (options: OnAfterChangeModuleOptions) => void;
17
17
  }
18
18
  export declare const guardEventsFilter: (props: any, multipleInstance?: {
19
19
  initStore: (appId: string, options: {
@@ -72,7 +72,7 @@ export declare const GuardEventsCamelToKebabMapping: {
72
72
  readonly onRegisterInfoCompletedError: "register-info-completed-error";
73
73
  readonly onLangChange: "lang-change";
74
74
  readonly onBeforeChangeModule: "before-change-module";
75
- readonly onChangeView: "change-view";
75
+ readonly onAfterChangeModule: "after-change-module";
76
76
  };
77
77
  export interface GuardEventsKebabToCamelType {
78
78
  load: GuardEvents['onLoad'];
@@ -96,6 +96,6 @@ export interface GuardEventsKebabToCamelType {
96
96
  'register-info-completed-error': GuardEvents['onRegisterInfoCompletedError'];
97
97
  'lang-change': GuardEvents['onLangChange'];
98
98
  'before-change-module': GuardEvents['onBeforeChangeModule'];
99
- 'change-view': GuardEvents['onChangeView'];
99
+ 'after-change-module': GuardEvents['onAfterChangeModule'];
100
100
  }
101
101
  export {};
package/types/index.d.ts CHANGED
@@ -4,3 +4,4 @@ export * from './AuthClientProvider';
4
4
  export * from './Guard';
5
5
  export * from './Type';
6
6
  export * from './version';
7
+ export * from './Guard/core/hooks/useGuardView';
@@ -1,2 +1,2 @@
1
- declare const _default: "4.2.1";
1
+ declare const _default: "4.2.3-alpha.9";
2
2
  export default _default;