@authing/react-ui-components 4.2.3-alpha.6 → 4.3.0-alpha.0

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 (36) 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 +2 -2
  18. package/lib/index.min.js +1 -1
  19. package/package.json +1 -1
  20. package/types/Guard/core/hooks/useMultipleAccounts.d.ts +1 -1
  21. package/types/Guard/module.d.ts +0 -1
  22. package/types/Login/multipleAccounts/panel.d.ts +0 -1
  23. package/types/Type/application.d.ts +1 -7
  24. package/types/_utils/index.d.ts +1 -1
  25. package/types/version/version.d.ts +1 -1
  26. package/types/AppOtpVerify/DownloadVerifier.d.ts +0 -2
  27. package/types/AppOtpVerify/LoginApp.d.ts +0 -2
  28. package/types/AppOtpVerify/ScanQrcode.d.ts +0 -2
  29. package/types/AppOtpVerify/Steps.d.ts +0 -11
  30. package/types/AppOtpVerify/index.d.ts +0 -3
  31. package/types/LazyloadImage/index.d.ts +0 -12
  32. package/types/Login/core/withAuthingOtpPush/BeforeLogin.d.ts +0 -15
  33. package/types/Login/core/withAuthingOtpPush/PendingLogin.d.ts +0 -7
  34. package/types/Login/core/withAuthingOtpPush/index.d.ts +0 -3
  35. package/types/Login/core/withAuthingOtpPush/types.d.ts +0 -16
  36. package/types/Login/hooks/useOtpPushLogin.d.ts +0 -11
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authing/react-ui-components",
3
- "version": "4.2.3-alpha.6",
3
+ "version": "4.3.0-alpha.0",
4
4
  "private": false,
5
5
  "main": "lib/index.min.js",
6
6
  "typings": "types/index.d.ts",
@@ -13,7 +13,7 @@ export declare const QR_CODE_WAY: LoginWay[];
13
13
  * 登录时所有支持的登录列表(前端定义列表)
14
14
  * 这里稍微有点乱 因为Login中的登录方式和这里的不匹配,暂时放在了一起
15
15
  */
16
- export declare type LoginWay = 'email' | 'phone' | 'password' | 'phone-code' | 'email-code' | 'social' | 'wechat-miniprogram-qrcode' | 'wechatmp-qrcode' | 'app-qrcode' | 'ad' | 'ldap' | 'ldap-password' | 'ldap-email' | 'ldap-phone' | 'authing-otp-push';
16
+ export declare type LoginWay = 'email' | 'phone' | 'password' | 'phone-code' | 'email-code' | 'social' | 'wechat-miniprogram-qrcode' | 'wechatmp-qrcode' | 'app-qrcode' | 'ad' | 'ldap' | 'ldap-password' | 'ldap-email' | 'ldap-phone';
17
17
  /**
18
18
  * when: 多账号页面跳转进入登录页面
19
19
  * 携带的回填数据信息
@@ -20,7 +20,6 @@ export declare enum GuardModuleType {
20
20
  IDENTITY_BINDING = "identityBinding",
21
21
  SELF_UNLOCK = "selfUnlock",
22
22
  FLOW_SELECT_ACCOUNT = "flowSelectAccount",
23
- APP_OTP_VERIFY = "appOtpVerify",
24
23
  /** 多租户门户选择页 */
25
24
  TENANT_PORTAL = "tenant-portal",
26
25
  New_SUBMIT_SUCCESS = "newSubmitSuccess"
@@ -40,7 +40,6 @@ export interface SelectOptions {
40
40
  * 替代图片元素
41
41
  */
42
42
  element?: React.ReactElement;
43
- way: string;
44
43
  }
45
44
  declare const SelectPanel: React.FC<SelectPanelProps>;
46
45
  export { SelectPanel };
@@ -8,8 +8,7 @@ export declare enum LoginMethods {
8
8
  PhoneCode = "phone-code",
9
9
  WxMinQr = "wechat-miniprogram-qrcode",
10
10
  AD = "ad",
11
- WechatMpQrcode = "wechatmp-qrcode",
12
- AuthingOtpPush = "authing-otp-push"
11
+ WechatMpQrcode = "wechatmp-qrcode"
13
12
  }
14
13
  export declare enum OIDCConnectionMode {
15
14
  FRONT_CHANNEL = "FRONT_CHANNEL",
@@ -308,9 +307,4 @@ export interface ApplicationConfig {
308
307
  mfa: {
309
308
  faceScore: number;
310
309
  };
311
- authingOtpPushTabConfig: {
312
- enabledLoginMethods: Array<string> | null;
313
- validLoginMethods: Array<string> | null;
314
- validRegisterMethods: Array<string> | null;
315
- };
316
310
  }
@@ -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.
@@ -1,2 +1,2 @@
1
- declare const _default: "4.2.3-alpha.5";
1
+ declare const _default: "4.2.2-alpha.10";
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,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,11 +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
- declare function cacheOtpLoginAccount(account: string): void;
9
- declare function getCachedOtpLoginAccount(): string;
10
- declare function clearOtpLoginAccountCache(): void;
11
- export {};