@authing/react-ui-components 4.2.3-alpha.8 → 4.3.0-alpha.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.
Files changed (39) hide show
  1. package/dist/asset-manifest.json +26 -0
  2. package/dist/index.html +1 -0
  3. package/dist/static/css/2.31681d53.chunk.css +3 -0
  4. package/dist/static/css/2.31681d53.chunk.css.map +1 -0
  5. package/dist/static/css/main.5aec6972.chunk.css +2 -0
  6. package/dist/static/css/main.5aec6972.chunk.css.map +1 -0
  7. package/dist/static/js/2.d2a1168e.chunk.js +3 -0
  8. package/dist/static/js/2.d2a1168e.chunk.js.LICENSE.txt +86 -0
  9. package/dist/static/js/2.d2a1168e.chunk.js.map +1 -0
  10. package/dist/static/js/3.b3dd7130.chunk.js +2 -0
  11. package/dist/static/js/3.b3dd7130.chunk.js.map +1 -0
  12. package/dist/static/js/main.b635a15a.chunk.js +2 -0
  13. package/dist/static/js/main.b635a15a.chunk.js.map +1 -0
  14. package/dist/static/js/runtime-main.6f6a6483.js +2 -0
  15. package/dist/static/js/runtime-main.6f6a6483.js.map +1 -0
  16. package/dist/static/media/loading.3cf0104f.svg +32 -0
  17. package/lib/index.min.css +1 -1
  18. package/lib/index.min.js +1 -1
  19. package/package.json +1 -1
  20. package/types/Guard/event.d.ts +0 -10
  21. package/types/Guard/module.d.ts +1 -0
  22. package/types/IdentityBinding/IdentityBinding.d.ts +3 -1
  23. package/types/_utils/context.d.ts +0 -1
  24. package/types/_utils/index.d.ts +1 -1
  25. package/types/_utils/responseManagement/interface.d.ts +1 -0
  26. package/types/version/version.d.ts +1 -1
  27. package/types/AppOtpVerify/DownloadVerifier.d.ts +0 -2
  28. package/types/AppOtpVerify/LoginApp.d.ts +0 -2
  29. package/types/AppOtpVerify/ScanQrcode.d.ts +0 -2
  30. package/types/AppOtpVerify/Steps.d.ts +0 -11
  31. package/types/AppOtpVerify/index.d.ts +0 -3
  32. package/types/Guard/core/hooks/useAgreements.d.ts +0 -13
  33. package/types/Guard/core/hooks/useGuardView.d.ts +0 -7
  34. package/types/LazyloadImage/index.d.ts +0 -12
  35. package/types/Login/core/withAuthingOtpPush/BeforeLogin.d.ts +0 -15
  36. package/types/Login/core/withAuthingOtpPush/PendingLogin.d.ts +0 -7
  37. package/types/Login/core/withAuthingOtpPush/index.d.ts +0 -3
  38. package/types/Login/core/withAuthingOtpPush/types.d.ts +0 -16
  39. package/types/Login/hooks/useOtpPushLogin.d.ts +0 -10
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.3.0-alpha.1",
4
4
  "private": false,
5
5
  "main": "lib/index.min.js",
6
6
  "typings": "types/index.d.ts",
@@ -5,15 +5,8 @@ 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 {
9
- currentView: string;
10
- currentModule: GuardModuleType;
11
- currentTab?: string;
12
- data?: any;
13
- }
14
8
  export interface GuardEvents extends LoginEvents, RegisterEvents, CompleteInfoEvents, ForgetPasswordEvents, IdentityBindingEvents, IdentityBindingAskEvents {
15
9
  onBeforeChangeModule?: (key: GuardModuleType, initData?: any) => boolean | Promise<boolean>;
16
- onChangeView?: (options: OnChangeViewOptions) => void;
17
10
  }
18
11
  export declare const guardEventsFilter: (props: any, multipleInstance?: {
19
12
  initStore: (appId: string, options: {
@@ -72,7 +65,6 @@ export declare const GuardEventsCamelToKebabMapping: {
72
65
  readonly onRegisterInfoCompletedError: "register-info-completed-error";
73
66
  readonly onLangChange: "lang-change";
74
67
  readonly onBeforeChangeModule: "before-change-module";
75
- readonly onChangeView: "change-view";
76
68
  };
77
69
  export interface GuardEventsKebabToCamelType {
78
70
  load: GuardEvents['onLoad'];
@@ -96,6 +88,4 @@ export interface GuardEventsKebabToCamelType {
96
88
  'register-info-completed-error': GuardEvents['onRegisterInfoCompletedError'];
97
89
  'lang-change': GuardEvents['onLangChange'];
98
90
  'before-change-module': GuardEvents['onBeforeChangeModule'];
99
- 'change-view': GuardEvents['onChangeView'];
100
91
  }
101
- export {};
@@ -18,6 +18,7 @@ export declare enum GuardModuleType {
18
18
  SUBMIT_SUCCESS = "submitSuccess",
19
19
  IDENTITY_BINDING_ASK = "identityBindingAsk",
20
20
  IDENTITY_BINDING = "identityBinding",
21
+ IDENTITY_BINDING_NO_ASK = "identityBindingNoAsk",
21
22
  SELF_UNLOCK = "selfUnlock",
22
23
  FLOW_SELECT_ACCOUNT = "flowSelectAccount",
23
24
  /** 多租户门户选择页 */
@@ -1,3 +1,5 @@
1
1
  import React from 'react';
2
2
  import './styles.less';
3
- export declare const GuardIdentityBindingView: React.FC;
3
+ export declare const GuardIdentityBindingView: React.FC<{
4
+ skipAsk?: boolean;
5
+ }>;
@@ -83,7 +83,6 @@ export declare const useGuardEvents: () => Partial<GuardEvents>;
83
83
  export declare const useGuardModule: () => {
84
84
  changeModule: ((moduleName: GuardModuleType, initData?: any) => Promise<void>) | undefined;
85
85
  backModule: (() => void) | undefined;
86
- currentModule: ModuleState;
87
86
  };
88
87
  export declare const useGuardFinallyConfig: () => GuardLocalConfig;
89
88
  export declare const useGuardContextLoaded: () => boolean;
@@ -27,7 +27,7 @@ export declare const getClassnames: (classnames: (string | boolean | undefined)[
27
27
  * @param item
28
28
  * @returns {boolean}
29
29
  */
30
- export declare function isObject(item: any): any;
30
+ export declare function isObject(item: any): boolean;
31
31
  /**
32
32
  * https://www.itranslater.com/qa/details/2115518846294557696
33
33
  * Deep merge two objects.
@@ -7,6 +7,7 @@ export declare enum CodeAction {
7
7
  export declare enum ApiCode {
8
8
  IDENTITY_BINDING_ASK = 1641,
9
9
  IDENTITY_BINDING = 1640,
10
+ IDENTITY_BINDING_NO_ASK = 1666,
10
11
  APP_MFA = 1636,
11
12
  MFA = 1635,
12
13
  ABORT_FLOW = 1699,
@@ -1,2 +1,2 @@
1
- declare const _default: "4.2.1";
1
+ declare const _default: "4.3.0-alpha.1";
2
2
  export default _default;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function DownloadVerifier(): JSX.Element;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function LoginApp(): JSX.Element;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const ScanQrcode: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
@@ -1,11 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import './steps.styles.less';
3
- interface StepsProps {
4
- current: number;
5
- items: StepItem[];
6
- }
7
- interface StepItem {
8
- title: ReactNode;
9
- }
10
- export declare function Steps(props: StepsProps): JSX.Element;
11
- export {};
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import './styles.less';
3
- export declare function AppOtpVerify(): JSX.Element;
@@ -1,13 +0,0 @@
1
- /// <reference types="react" />
2
- import { Agreement } from '../../../Type';
3
- interface Options {
4
- agreements: Agreement[];
5
- checkedAgreements: (string | number)[];
6
- toggleItemCheck: React.Dispatch<any>;
7
- }
8
- export declare function useAgreements(options: Options): {
9
- agreements: Agreement[];
10
- checkedAgreements: import("react").ReactText[];
11
- toggleItemCheck: () => void;
12
- };
13
- export {};
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- interface Options {
3
- changeTab?: React.Dispatch<any>;
4
- currentTab?: string;
5
- }
6
- export declare function useGuardView(options?: Options): void;
7
- export {};
@@ -1,12 +0,0 @@
1
- import { CSSProperties, ReactNode } from 'react';
2
- interface LazyloadImageProps {
3
- src: string;
4
- placeholder: ReactNode;
5
- className?: string;
6
- style?: CSSProperties;
7
- alt?: string;
8
- width?: string;
9
- height?: string;
10
- }
11
- export declare function LazyloadImage(props: LazyloadImageProps): JSX.Element;
12
- export {};
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- import { OnPushSuccessProps, OnLoginProps } from './types';
3
- import { AuthingGuardResponse } from '../../../_utils/http';
4
- interface BeforeLoginProps {
5
- onPushSuccess: (props: OnPushSuccessProps) => void;
6
- signinByPush: (props: OnLoginProps) => Promise<AuthingGuardResponse<{
7
- pushCodeId: string;
8
- }>>;
9
- pushLoginStatus: boolean;
10
- onchangePushLoginStatus: () => void;
11
- defaultAccount: string;
12
- setAccount: React.Dispatch<any>;
13
- }
14
- export declare function BeforeLogin(props: BeforeLoginProps): JSX.Element;
15
- export {};
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- import './styles.less';
3
- interface PendingLoginProps {
4
- onCancelLogin: () => void;
5
- }
6
- export declare function PendingLogin(props: PendingLoginProps): JSX.Element;
7
- export {};
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { LoginWithAuthingOtpPushProps } from './types';
3
- export declare function LoginWithAuthingOtpPush(props: LoginWithAuthingOtpPushProps): JSX.Element;
@@ -1,16 +0,0 @@
1
- import { BackFillMultipleState, StoreInstance } from '../../../Guard/core/hooks/useMultipleAccounts';
2
- export interface OnPushSuccessProps {
3
- pushCodeId: string;
4
- }
5
- export interface CheckPushCodeStatusProps {
6
- pushCodeId: string;
7
- }
8
- export interface OnLoginProps {
9
- account: string;
10
- }
11
- export declare type LoginStatus = 'before' | 'pending';
12
- export interface LoginWithAuthingOtpPushProps {
13
- onLoginSuccess?: any;
14
- multipleInstance?: StoreInstance;
15
- initData?: BackFillMultipleState;
16
- }
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function useOtpPushLoginWay(setLoginWay: React.Dispatch<any>): void;
3
- export declare function useOtpPushLoginCache(): {
4
- getCachedOtpLoginAccount: typeof getCachedOtpLoginAccount;
5
- cacheOtpLoginAccount: typeof cacheOtpLoginAccount;
6
- clearOtpLoginAccountCache: typeof clearOtpLoginAccountCache;
7
- };
8
- export declare function cacheOtpLoginAccount(account: string): void;
9
- export declare function getCachedOtpLoginAccount(): string;
10
- export declare function clearOtpLoginAccountCache(): void;