@authing/react-ui-components 4.3.3 → 4.3.4-adicon.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.
- package/LICENSE +21 -0
- package/lib/index.min.js +1 -1
- package/package.json +3 -2
- package/types/EY/CheckCaptcha/index.d.ts +2 -0
- package/types/EY/Error/index.d.ts +2 -0
- package/types/EY/ForgetPassword/index.d.ts +2 -0
- package/types/EY/InviteComplete/index.d.ts +2 -0
- package/types/EY/InviteIdentityBind/component/WeComQrcode.d.ts +2 -0
- package/types/EY/InviteIdentityBind/component/WeComQrcodeNew.d.ts +2 -0
- package/types/EY/InviteIdentityBind/index.d.ts +2 -0
- package/types/EY/InviteLoading/index.d.ts +2 -0
- package/types/EY/Login/components/EyLoginWithWeComQrcode.d.ts +2 -0
- package/types/EY/Login/components/EyLoginWithWeComQrcodeNew.d.ts +2 -0
- package/types/EY/Login/core/EmailVerify.d.ts +7 -0
- package/types/EY/Login/core/ScanCode.d.ts +7 -0
- package/types/EY/Login/index.d.ts +7 -0
- package/types/EY/PreCheckEmail/index.d.ts +2 -0
- package/types/EY/Protocol/index.d.ts +2 -0
- package/types/EY/components/EmailFormItem.d.ts +2 -0
- package/types/EY/components/GoBack.d.ts +2 -0
- package/types/EY/components/ResetPassword.d.ts +16 -0
- package/types/EY/interface.d.ts +75 -0
- package/types/Guard/core/hooks/useAgreements.d.ts +14 -0
- package/types/Guard/core/hooks/useGuardView.d.ts +7 -0
- package/types/LazyloadImage/index.d.ts +12 -0
- package/types/Login/core/withAD.d.ts +6 -0
- package/types/Login/core/withAuthingOtpPush/BeforeLogin.d.ts +17 -0
- package/types/Login/core/withAuthingOtpPush/HowBindClient.d.ts +2 -0
- package/types/Login/core/withAuthingOtpPush/HowGetAppLoginUrl.d.ts +2 -0
- package/types/Login/core/withAuthingOtpPush/HowUsePushLogin.d.ts +2 -0
- package/types/Login/core/withAuthingOtpPush/PendingLogin.d.ts +7 -0
- package/types/Login/core/withAuthingOtpPush/PushLoginGuideModal.d.ts +3 -0
- package/types/Login/core/withAuthingOtpPush/PushLoginGuideSelector.d.ts +9 -0
- package/types/Login/core/withAuthingOtpPush/index.d.ts +3 -0
- package/types/Login/core/withAuthingOtpPush/types.d.ts +28 -0
- package/types/Login/core/withWeComQrcode.d.ts +2 -0
- package/types/MFA/VerifyCodeInput/ey.d.ts +15 -0
- package/types/SelectAccount2Login/index.d.ts +3 -0
- package/types/Type/application.d.ts +6 -0
- package/types/_utils/index.d.ts +1 -1
- package/types/_utils/signRequestParams.d.ts +8 -0
- package/types/version/version.d.ts +1 -1
- package/dist/asset-manifest.json +0 -26
- package/dist/index.html +0 -1
- package/dist/static/css/2.31681d53.chunk.css +0 -3
- package/dist/static/css/2.31681d53.chunk.css.map +0 -1
- package/dist/static/css/main.5aec6972.chunk.css +0 -2
- package/dist/static/css/main.5aec6972.chunk.css.map +0 -1
- package/dist/static/js/2.d2a1168e.chunk.js +0 -3
- package/dist/static/js/2.d2a1168e.chunk.js.LICENSE.txt +0 -86
- package/dist/static/js/2.d2a1168e.chunk.js.map +0 -1
- package/dist/static/js/3.b3dd7130.chunk.js +0 -2
- package/dist/static/js/3.b3dd7130.chunk.js.map +0 -1
- package/dist/static/js/main.b635a15a.chunk.js +0 -2
- package/dist/static/js/main.b635a15a.chunk.js.map +0 -1
- package/dist/static/js/runtime-main.6f6a6483.js +0 -2
- package/dist/static/js/runtime-main.6f6a6483.js.map +0 -1
- package/dist/static/media/loading.3cf0104f.svg +0 -32
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@authing/react-ui-components",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.4-adicon.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "lib/index.min.js",
|
|
6
6
|
"typings": "types/index.d.ts",
|
|
@@ -235,5 +235,6 @@
|
|
|
235
235
|
"webpack-dev-server": "3.11.0",
|
|
236
236
|
"webpack-manifest-plugin": "2.2.0",
|
|
237
237
|
"workbox-webpack-plugin": "5.1.4"
|
|
238
|
-
}
|
|
238
|
+
},
|
|
239
|
+
"gitHead": "28addd3ebf4daa03f4b5c0114754c291c2e91505"
|
|
239
240
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare enum InputMethodMap {
|
|
3
|
+
email = "email-code",
|
|
4
|
+
phone = "phone-code"
|
|
5
|
+
}
|
|
6
|
+
interface ResetPasswordProps {
|
|
7
|
+
publicConfig: any;
|
|
8
|
+
setControlShow: any;
|
|
9
|
+
setPolicyStrength: any;
|
|
10
|
+
setCustomPasswordStrength: any;
|
|
11
|
+
setPhoneOrEmailText: any;
|
|
12
|
+
setResetToken: React.Dispatch<React.SetStateAction<string>>;
|
|
13
|
+
setUserId: React.Dispatch<React.SetStateAction<string>>;
|
|
14
|
+
}
|
|
15
|
+
export declare const ResetPassword: (props: ResetPasswordProps) => JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { GuardModuleType, Lang } from '..';
|
|
2
|
+
export interface InviteContext {
|
|
3
|
+
autoLogin: boolean;
|
|
4
|
+
email: string | null;
|
|
5
|
+
ticket: string;
|
|
6
|
+
enabledIdentifierCodeConfig: boolean;
|
|
7
|
+
enabledRegisterFillInfo: boolean;
|
|
8
|
+
enabledExtIdpBind: boolean;
|
|
9
|
+
allowSkipBindExtIdp: boolean;
|
|
10
|
+
sendIdentifierCodeMethod: 'prioritySMS' | 'priorityEmail' | 'SMS' | 'email';
|
|
11
|
+
receiverType: 'emailCode' | 'phoneCode';
|
|
12
|
+
phone: string | null;
|
|
13
|
+
username: string | null;
|
|
14
|
+
name: string | null;
|
|
15
|
+
verifyCodeMaxLength: number;
|
|
16
|
+
verifyCodeMaxErrCount: number;
|
|
17
|
+
extendsFieldsI18n?: {
|
|
18
|
+
[key: string]: Record<Lang, {
|
|
19
|
+
enabled: boolean;
|
|
20
|
+
value: string;
|
|
21
|
+
}>;
|
|
22
|
+
};
|
|
23
|
+
extendsFieldsOptions?: {
|
|
24
|
+
key: string;
|
|
25
|
+
options: {
|
|
26
|
+
value: string;
|
|
27
|
+
label: string;
|
|
28
|
+
}[];
|
|
29
|
+
}[];
|
|
30
|
+
extendsFields: any;
|
|
31
|
+
qrCodeBindMethods: Record<string, {
|
|
32
|
+
QRConfig: any;
|
|
33
|
+
id: string;
|
|
34
|
+
isDefault: boolean;
|
|
35
|
+
title: string;
|
|
36
|
+
}[]>;
|
|
37
|
+
socialConnections: any[];
|
|
38
|
+
registerInfoFillMsg?: string;
|
|
39
|
+
extIdpBindMsg?: string;
|
|
40
|
+
}
|
|
41
|
+
export interface EyGuardInviteLoginInitData extends Partial<InviteContext> {
|
|
42
|
+
canBack?: boolean;
|
|
43
|
+
verifyAccount: string;
|
|
44
|
+
context: any;
|
|
45
|
+
originModule: GuardModuleType;
|
|
46
|
+
originContext: any;
|
|
47
|
+
}
|
|
48
|
+
export interface EyGuardInviteCompleteInitData extends Partial<EyGuardInviteLoginInitData> {
|
|
49
|
+
metaData: any;
|
|
50
|
+
}
|
|
51
|
+
export interface EyGuardInviteIdentityBindInitData extends Partial<EyGuardInviteLoginInitData> {
|
|
52
|
+
weComConfig: {
|
|
53
|
+
QRConfig: any;
|
|
54
|
+
id: string;
|
|
55
|
+
isDefault: boolean;
|
|
56
|
+
title: string;
|
|
57
|
+
};
|
|
58
|
+
isNew: boolean;
|
|
59
|
+
socialConnections: any[];
|
|
60
|
+
}
|
|
61
|
+
export interface EyGuardProtocolInitData {
|
|
62
|
+
onAcceptHandle: () => void;
|
|
63
|
+
onRejectHandle: () => void;
|
|
64
|
+
mode: 'Guard' | 'Portal';
|
|
65
|
+
}
|
|
66
|
+
export interface EyLoginProps {
|
|
67
|
+
onBeforeLogin?: (loginInfo: any) => void;
|
|
68
|
+
onLoginSuccess?: (data: any, message?: string) => void;
|
|
69
|
+
onLoginFailed?: (code: number, data: any, message?: string) => void;
|
|
70
|
+
}
|
|
71
|
+
export declare const useRegisterHandleHook: (initData: any, submitButtonRef?: {
|
|
72
|
+
current: {
|
|
73
|
+
onSpin: (arg0: boolean) => void;
|
|
74
|
+
};
|
|
75
|
+
} | undefined) => (context: any) => Promise<void>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Agreement } from '../../../Type';
|
|
2
|
+
interface Options {
|
|
3
|
+
agreements: Agreement[];
|
|
4
|
+
checkedAgreements: (string | number)[];
|
|
5
|
+
checkAllAgreements: () => void;
|
|
6
|
+
unCheckAllAgreements: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function useAgreements(options: Options): {
|
|
9
|
+
agreements: Agreement[];
|
|
10
|
+
checkedAgreements: (string | number)[];
|
|
11
|
+
checkAllAgreements: () => void;
|
|
12
|
+
unCheckAllAgreements: () => void;
|
|
13
|
+
};
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
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 {};
|
|
@@ -16,6 +16,12 @@ interface LoginWithADProps {
|
|
|
16
16
|
* 根据输入的账号 & 返回获得对应的登录方法
|
|
17
17
|
*/
|
|
18
18
|
multipleInstance?: StoreInstance;
|
|
19
|
+
placeholder?: {
|
|
20
|
+
[propName: string]: {
|
|
21
|
+
i18n: any;
|
|
22
|
+
default?: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
19
25
|
}
|
|
20
26
|
export declare const LoginWithAD: (props: LoginWithADProps) => JSX.Element;
|
|
21
27
|
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { OnPushSuccessProps, OnLoginProps } from './types';
|
|
3
|
+
import { AuthingGuardResponse } from '../../../_utils/http';
|
|
4
|
+
import { Agreement } from '../../../Type';
|
|
5
|
+
interface BeforeLoginProps {
|
|
6
|
+
onPushSuccess: (props: OnPushSuccessProps) => void;
|
|
7
|
+
signinByPush: (props: OnLoginProps) => Promise<AuthingGuardResponse<{
|
|
8
|
+
pushCodeId: string;
|
|
9
|
+
}>>;
|
|
10
|
+
pushLoginStatus: boolean;
|
|
11
|
+
onchangePushLoginStatus: () => void;
|
|
12
|
+
defaultAccount: string;
|
|
13
|
+
setAccount: React.Dispatch<any>;
|
|
14
|
+
agreements: Agreement[];
|
|
15
|
+
}
|
|
16
|
+
export declare function BeforeLogin(props: BeforeLoginProps): JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SelectorOptions, Selector } from './types';
|
|
3
|
+
interface PushLoginGuideSelectorProps {
|
|
4
|
+
defaultValue: Selector;
|
|
5
|
+
onChange: (value: Selector) => void;
|
|
6
|
+
options: SelectorOptions;
|
|
7
|
+
}
|
|
8
|
+
export declare function PushLoginGuideSelector(props: PushLoginGuideSelectorProps): JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { BackFillMultipleState, StoreInstance } from '../../../Guard/core/hooks/useMultipleAccounts';
|
|
2
|
+
import { Agreement } from '../../../Type';
|
|
3
|
+
export interface OnPushSuccessProps {
|
|
4
|
+
pushCodeId: string;
|
|
5
|
+
}
|
|
6
|
+
export interface CheckPushCodeStatusProps {
|
|
7
|
+
pushCodeId: string;
|
|
8
|
+
}
|
|
9
|
+
export interface OnLoginProps {
|
|
10
|
+
account: string;
|
|
11
|
+
}
|
|
12
|
+
export type LoginStatus = 'before' | 'pending';
|
|
13
|
+
export interface LoginWithAuthingOtpPushProps {
|
|
14
|
+
onLoginSuccess?: any;
|
|
15
|
+
multipleInstance?: StoreInstance;
|
|
16
|
+
initData?: BackFillMultipleState;
|
|
17
|
+
agreements: Agreement[];
|
|
18
|
+
}
|
|
19
|
+
export interface PushLoginGudeModalProps {
|
|
20
|
+
visible: boolean;
|
|
21
|
+
onClose: () => void;
|
|
22
|
+
}
|
|
23
|
+
export type Selector = 'howUsePushLogin' | 'howBindClient' | 'howGetAppLoginUrl';
|
|
24
|
+
export interface SelectorOption {
|
|
25
|
+
value: Selector;
|
|
26
|
+
label: string;
|
|
27
|
+
}
|
|
28
|
+
export type SelectorOptions = SelectorOption[];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './style.less';
|
|
3
|
+
interface VerifyCodeInputProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
length?: number;
|
|
5
|
+
size?: string;
|
|
6
|
+
gutter?: string;
|
|
7
|
+
onEenter?: Function;
|
|
8
|
+
showDivider?: boolean;
|
|
9
|
+
onChange?: any;
|
|
10
|
+
value?: string;
|
|
11
|
+
onFinish?: any;
|
|
12
|
+
beforeSend: () => Promise<boolean>;
|
|
13
|
+
}
|
|
14
|
+
export declare const EyVerifyCodeInput: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<VerifyCodeInputProps>>;
|
|
15
|
+
export {};
|
package/types/_utils/index.d.ts
CHANGED
|
@@ -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):
|
|
30
|
+
export declare function isObject(item: any): any;
|
|
31
31
|
/**
|
|
32
32
|
* https://www.itranslater.com/qa/details/2115518846294557696
|
|
33
33
|
* Deep merge two objects.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const generateRandomStr: (length?: number) => string;
|
|
2
|
+
export declare const md5: (text: string) => string;
|
|
3
|
+
export declare const signRequestParams: (params: Record<string, any>) => Record<string, any> & {
|
|
4
|
+
_random: string;
|
|
5
|
+
_timestamp: number;
|
|
6
|
+
} & {
|
|
7
|
+
_sign: string;
|
|
8
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "4.3.
|
|
1
|
+
declare const _default: "4.3.4-adicon.0";
|
|
2
2
|
export default _default;
|
package/dist/asset-manifest.json
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"files": {
|
|
3
|
-
"main.css": "/static/css/main.5aec6972.chunk.css",
|
|
4
|
-
"main.js": "/static/js/main.b635a15a.chunk.js",
|
|
5
|
-
"main.js.map": "/static/js/main.b635a15a.chunk.js.map",
|
|
6
|
-
"runtime-main.js": "/static/js/runtime-main.6f6a6483.js",
|
|
7
|
-
"runtime-main.js.map": "/static/js/runtime-main.6f6a6483.js.map",
|
|
8
|
-
"static/css/2.31681d53.chunk.css": "/static/css/2.31681d53.chunk.css",
|
|
9
|
-
"static/js/2.d2a1168e.chunk.js": "/static/js/2.d2a1168e.chunk.js",
|
|
10
|
-
"static/js/2.d2a1168e.chunk.js.map": "/static/js/2.d2a1168e.chunk.js.map",
|
|
11
|
-
"static/js/3.b3dd7130.chunk.js": "/static/js/3.b3dd7130.chunk.js",
|
|
12
|
-
"static/js/3.b3dd7130.chunk.js.map": "/static/js/3.b3dd7130.chunk.js.map",
|
|
13
|
-
"index.html": "/index.html",
|
|
14
|
-
"static/css/2.31681d53.chunk.css.map": "/static/css/2.31681d53.chunk.css.map",
|
|
15
|
-
"static/css/main.5aec6972.chunk.css.map": "/static/css/main.5aec6972.chunk.css.map",
|
|
16
|
-
"static/js/2.d2a1168e.chunk.js.LICENSE.txt": "/static/js/2.d2a1168e.chunk.js.LICENSE.txt",
|
|
17
|
-
"static/media/loading.3cf0104f.svg": "/static/media/loading.3cf0104f.svg"
|
|
18
|
-
},
|
|
19
|
-
"entrypoints": [
|
|
20
|
-
"static/js/runtime-main.6f6a6483.js",
|
|
21
|
-
"static/css/2.31681d53.chunk.css",
|
|
22
|
-
"static/js/2.d2a1168e.chunk.js",
|
|
23
|
-
"static/css/main.5aec6972.chunk.css",
|
|
24
|
-
"static/js/main.b635a15a.chunk.js"
|
|
25
|
-
]
|
|
26
|
-
}
|
package/dist/index.html
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<!doctype html><html lang="zh-TW"><head><meta charset="utf-8"/><link rel="icon" href="https://files.authing.co/authing-console/login_logo.svg"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><title>Guard Examples</title><link href="/static/css/2.31681d53.chunk.css" rel="stylesheet"><link href="/static/css/main.5aec6972.chunk.css" rel="stylesheet"></head><body><div id="root"></div><script>!function(e){function t(t){for(var n,i,a=t[0],c=t[1],l=t[2],s=0,p=[];s<a.length;s++)i=a[s],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(f&&f(t);p.length;)p.shift()();return u.push.apply(u,l||[]),r()}function r(){for(var e,t=0;t<u.length;t++){for(var r=u[t],n=!0,a=1;a<r.length;a++){var c=r[a];0!==o[c]&&(n=!1)}n&&(u.splice(t--,1),e=i(i.s=r[0]))}return e}var n={},o={1:0},u=[];function i(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(e){var t=[],r=o[e];if(0!==r)if(r)t.push(r[2]);else{var n=new Promise((function(t,n){r=o[e]=[t,n]}));t.push(r[2]=n);var u,a=document.createElement("script");a.charset="utf-8",a.timeout=120,i.nc&&a.setAttribute("nonce",i.nc),a.src=function(e){return i.p+"static/js/"+({}[e]||e)+"."+{3:"b3dd7130"}[e]+".chunk.js"}(e);var c=new Error;u=function(t){a.onerror=a.onload=null,clearTimeout(l);var r=o[e];if(0!==r){if(r){var n=t&&("load"===t.type?"missing":t.type),u=t&&t.target&&t.target.src;c.message="Loading chunk "+e+" failed.\n("+n+": "+u+")",c.name="ChunkLoadError",c.type=n,c.request=u,r[1](c)}o[e]=void 0}};var l=setTimeout((function(){u({type:"timeout",target:a})}),12e4);a.onerror=a.onload=u,document.head.appendChild(a)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(r,n,function(t){return e[t]}.bind(null,n));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/",i.oe=function(e){throw console.error(e),e};var a=this["webpackJsonp@authing/react-ui-components"]=this["webpackJsonp@authing/react-ui-components"]||[],c=a.push.bind(a);a.push=t,a=a.slice();for(var l=0;l<a.length;l++)t(a[l]);var f=c;r()}([])</script><script src="/static/js/2.d2a1168e.chunk.js"></script><script src="/static/js/main.b635a15a.chunk.js"></script></body></html>
|