@authing/react-ui-components 4.3.0-alpha.5 → 4.3.1-hep.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/lib/index.min.css +2 -2
- package/lib/index.min.js +1 -1
- package/package.json +1 -1
- package/types/AccountMerge/UserRadio.d.ts +5 -0
- package/types/AccountMerge/index.d.ts +3 -0
- package/types/AccountMerge/interface.d.ts +27 -0
- package/types/AccountMerge/utils.d.ts +3 -0
- package/types/ChangeAccoutType/index.d.ts +3 -0
- package/types/CompleteInfo/core/components/TreeSelect.d.ts +11 -0
- package/types/CompleteInfo/index.d.ts +1 -0
- package/types/CompleteInfo/interface.d.ts +8 -4
- package/types/Guard/module.d.ts +5 -1
- package/types/IdentityBinding/IdentityBinding.d.ts +3 -1
- package/types/IdentityBinding/businessRequest.d.ts +5 -2
- package/types/Login/core/withWeComQrcode.d.ts +2 -0
- package/types/Type/application.d.ts +3 -0
- package/types/_utils/index.d.ts +1 -1
- package/types/_utils/responseManagement/interface.d.ts +2 -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
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface BriefUserInfo {
|
|
2
|
+
displayName: string;
|
|
3
|
+
avatar: string;
|
|
4
|
+
phone: string;
|
|
5
|
+
email: string;
|
|
6
|
+
username: string;
|
|
7
|
+
name: string;
|
|
8
|
+
}
|
|
9
|
+
export interface GuardAccountMergeInitData {
|
|
10
|
+
currentUserInfo: BriefUserInfo;
|
|
11
|
+
existingUserInfo: BriefUserInfo;
|
|
12
|
+
mergeToken?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface UserRadioProps {
|
|
15
|
+
currentUserInfo: BriefUserInfo;
|
|
16
|
+
existingUserInfo: BriefUserInfo;
|
|
17
|
+
onChange?: (value: any) => void;
|
|
18
|
+
value?: any;
|
|
19
|
+
}
|
|
20
|
+
export interface UserRadioItemProps extends BriefUserInfo {
|
|
21
|
+
value: boolean;
|
|
22
|
+
selected: boolean;
|
|
23
|
+
onClick: (value: boolean) => void;
|
|
24
|
+
}
|
|
25
|
+
export declare enum AuthFlowAction {
|
|
26
|
+
MERGE = "confirm-account-merge"
|
|
27
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare type OptionType = {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
children: OptionType[];
|
|
6
|
+
};
|
|
7
|
+
interface TreeSelectProps {
|
|
8
|
+
options: OptionType[];
|
|
9
|
+
}
|
|
10
|
+
declare const TreeSelect: React.FC<TreeSelectProps>;
|
|
11
|
+
export default TreeSelect;
|
|
@@ -7,19 +7,21 @@ export interface CompleteInfoEvents extends IG2Events {
|
|
|
7
7
|
onRegisterInfoCompleted?: (user: User, udfs: {
|
|
8
8
|
key: any;
|
|
9
9
|
value: any;
|
|
10
|
-
}[], authClient: AuthenticationClient
|
|
10
|
+
}[], authClient: AuthenticationClient, opts?: {
|
|
11
|
+
phone?: string;
|
|
12
|
+
canMergeUser?: boolean;
|
|
13
|
+
}) => void;
|
|
11
14
|
onRegisterInfoCompletedError?: (error: CommonMessage, udfs: {
|
|
12
15
|
key: any;
|
|
13
16
|
value: any;
|
|
14
17
|
}[], authClient: AuthenticationClient) => void;
|
|
18
|
+
onAccountMergeCompleteInfo?: (user: User) => void;
|
|
15
19
|
}
|
|
16
20
|
export interface GuardCompleteInfoProps extends IG2FCProps, CompleteInfoEvents {
|
|
17
21
|
config: Partial<CompleteInfoConfig>;
|
|
18
22
|
}
|
|
19
23
|
export interface GuardCompleteInfoViewProps extends GuardCompleteInfoProps {
|
|
20
24
|
config: CompleteInfoConfig;
|
|
21
|
-
initData: any;
|
|
22
|
-
onLogin?: any;
|
|
23
25
|
}
|
|
24
26
|
export declare type ExtendsFieldType = 'user' | 'internal';
|
|
25
27
|
export interface ExtendsField {
|
|
@@ -52,6 +54,7 @@ export interface CompleteInfoMetaData {
|
|
|
52
54
|
name: string;
|
|
53
55
|
required: boolean;
|
|
54
56
|
validateRules: CompleteInfoRule[];
|
|
57
|
+
checkUnique?: boolean;
|
|
55
58
|
options?: CompleteInfoSelectOption[];
|
|
56
59
|
}
|
|
57
60
|
export declare enum CompleteInfoBaseControls {
|
|
@@ -70,7 +73,8 @@ export declare enum CompleteInfoExtendsControls {
|
|
|
70
73
|
STRING = "string",
|
|
71
74
|
TEXT = "text",
|
|
72
75
|
GENDER = "gender",
|
|
73
|
-
COUNTRY = "country"
|
|
76
|
+
COUNTRY = "country",
|
|
77
|
+
TREE = "tree"
|
|
74
78
|
}
|
|
75
79
|
export interface CompleteInfoInitData {
|
|
76
80
|
skip: boolean;
|
package/types/Guard/module.d.ts
CHANGED
|
@@ -18,12 +18,16 @@ 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
|
/** 多租户门户选择页 */
|
|
24
25
|
TENANT_PORTAL = "tenant-portal",
|
|
25
26
|
New_SUBMIT_SUCCESS = "newSubmitSuccess",
|
|
26
|
-
RESET_ACCOUNT_NAME = "resetAccountName"
|
|
27
|
+
RESET_ACCOUNT_NAME = "resetAccountName",
|
|
28
|
+
/** 高教社特殊节点 */
|
|
29
|
+
CUSTOM_COMPLETE_INFO = "customCompleteInfo",
|
|
30
|
+
ACCOUNT_MERGE = "accountMerge"
|
|
27
31
|
}
|
|
28
32
|
export interface GuardModuleAction {
|
|
29
33
|
action: string;
|
|
@@ -21,12 +21,15 @@ export declare enum IdentityBindingAction {
|
|
|
21
21
|
CreateUser = "create-federation-account",
|
|
22
22
|
BindByPassword = "bind-identity-by-password",
|
|
23
23
|
BindByPhoneCode = "bind-identity-by-phone-code",
|
|
24
|
-
BindByEmailCode = "bind-identity-by-email-code"
|
|
24
|
+
BindByEmailCode = "bind-identity-by-email-code",
|
|
25
|
+
RegisterByPassword = "register-bind-by-password",
|
|
26
|
+
RegisterByPhoneCode = "register-bind-by-phone-code",
|
|
27
|
+
RegisterByEmailCode = "register-bind-by-email-code"
|
|
25
28
|
}
|
|
26
29
|
export declare const PhoneCode: (params: PhoneCodeParams) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
|
|
27
30
|
export declare const EmailCode: (params: EmailCodeParams) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
|
|
28
31
|
export declare const Password: (params: PasswordParams) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
|
|
29
|
-
export declare const useIdentityBindingBusinessRequest: () => {
|
|
32
|
+
export declare const useIdentityBindingBusinessRequest: (type?: 'register' | 'bind') => {
|
|
30
33
|
"phone-code": (params: PhoneCodeParams) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
|
|
31
34
|
"emial-code": (params: EmailCodeParams) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
|
|
32
35
|
password: (params: PasswordParams) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
|
|
@@ -274,6 +274,9 @@ export interface ApplicationConfig {
|
|
|
274
274
|
verifyCodeLength: number;
|
|
275
275
|
websocket: string;
|
|
276
276
|
welcomeMessage: any;
|
|
277
|
+
userPortal?: {
|
|
278
|
+
mergeAccount?: boolean;
|
|
279
|
+
};
|
|
277
280
|
skipComplateFileds: boolean;
|
|
278
281
|
selfUnlockStrategy: 'captcha' | 'password-captcha';
|
|
279
282
|
defaultLanguageConfig: Lang;
|
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.
|
|
@@ -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,
|
|
@@ -15,6 +16,7 @@ export declare enum ApiCode {
|
|
|
15
16
|
FLOW_END = 1600,
|
|
16
17
|
FIRST_LOGIN_PASSWORD = 1639,
|
|
17
18
|
FORCED_PASSWORD_RESET = 2058,
|
|
19
|
+
ACCOUNT_MERGE = 10000,
|
|
18
20
|
UNSAFE_PASSWORD_TIP = 2061,
|
|
19
21
|
UNSAFE_PASSWORD_RESET = 2071,
|
|
20
22
|
FLOW_SELECT_ACCOUNT = 2921,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "4.3.
|
|
1
|
+
declare const _default: "4.3.1-hep.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>
|