@authing/react-ui-components 4.3.12 → 4.3.13-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/lib/index.min.js.LICENSE.txt +9 -3
- 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 +12 -5
- package/types/CompleteInfo/utils.d.ts +6 -0
- package/types/Guard/module.d.ts +4 -1
- package/types/Login/core/withDingTalkQrcode.d.ts +2 -0
- package/types/Login/core/withLandrayQrcode.d.ts +11 -0
- 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 +1 -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.c8e70804.chunk.css +0 -3
- package/dist/static/css/2.c8e70804.chunk.css.map +0 -1
- package/dist/static/css/main.98fc077f.chunk.css +0 -2
- package/dist/static/css/main.98fc077f.chunk.css.map +0 -1
- package/dist/static/js/2.a44b6e48.chunk.js +0 -3
- package/dist/static/js/2.a44b6e48.chunk.js.LICENSE.txt +0 -92
- package/dist/static/js/2.a44b6e48.chunk.js.map +0 -1
- package/dist/static/js/3.cdb98af5.chunk.js +0 -2
- package/dist/static/js/3.cdb98af5.chunk.js.map +0 -1
- package/dist/static/js/main.078d3347.chunk.js +0 -2
- package/dist/static/js/main.078d3347.chunk.js.map +0 -1
- package/dist/static/js/runtime-main.f781373c.js +0 -2
- package/dist/static/js/runtime-main.f781373c.js.map +0 -1
- package/dist/static/media/loading.3cf0104f.svg +0 -32
|
@@ -5,9 +5,15 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
/*!
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
Copyright (c) 2017 Jed Watson.
|
|
9
|
+
Licensed under the MIT License (MIT), see
|
|
10
|
+
http://jedwatson.github.io/classnames
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/*!
|
|
14
|
+
Copyright (c) 2018 Jed Watson.
|
|
15
|
+
Licensed under the MIT License (MIT), see
|
|
16
|
+
http://jedwatson.github.io/classnames
|
|
11
17
|
*/
|
|
12
18
|
|
|
13
19
|
/**
|
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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AuthenticationClient, CommonMessage, User } from 'authing-js-sdk';
|
|
2
|
-
import { IG2Config, IG2Events, IG2FCProps } from '../Type';
|
|
2
|
+
import { IG2Config, IG2Events, IG2FCProps, Lang } from '../Type';
|
|
3
3
|
export interface CompleteInfoConfig extends IG2Config {
|
|
4
4
|
}
|
|
5
5
|
export declare const getDefaultCompleteInfoConfig: () => CompleteInfoConfig;
|
|
@@ -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 {
|
|
@@ -41,6 +43,9 @@ export interface CompleteInfoRule {
|
|
|
41
43
|
type: FormValidateRule;
|
|
42
44
|
content: string;
|
|
43
45
|
errorMessage?: string;
|
|
46
|
+
i18n?: {
|
|
47
|
+
errorMessage: Record<Lang, []>;
|
|
48
|
+
};
|
|
44
49
|
}
|
|
45
50
|
export interface CompleteInfoSelectOption {
|
|
46
51
|
value: string;
|
|
@@ -52,6 +57,7 @@ export interface CompleteInfoMetaData {
|
|
|
52
57
|
name: string;
|
|
53
58
|
required: boolean;
|
|
54
59
|
validateRules: CompleteInfoRule[];
|
|
60
|
+
checkUnique?: boolean;
|
|
55
61
|
options?: CompleteInfoSelectOption[];
|
|
56
62
|
}
|
|
57
63
|
export declare enum CompleteInfoBaseControls {
|
|
@@ -70,7 +76,8 @@ export declare enum CompleteInfoExtendsControls {
|
|
|
70
76
|
STRING = "string",
|
|
71
77
|
TEXT = "text",
|
|
72
78
|
GENDER = "gender",
|
|
73
|
-
COUNTRY = "country"
|
|
79
|
+
COUNTRY = "country",
|
|
80
|
+
TREE = "tree"
|
|
74
81
|
}
|
|
75
82
|
export interface CompleteInfoInitData {
|
|
76
83
|
skip: boolean;
|
|
@@ -20,3 +20,9 @@ export declare const fieldValuesToRegisterProfile: (extendsFields: ApplicationCo
|
|
|
20
20
|
value: string;
|
|
21
21
|
}[];
|
|
22
22
|
};
|
|
23
|
+
/**
|
|
24
|
+
* @description 获取对应key的国际化value
|
|
25
|
+
* @param record :example {key:"",i18n:{key:{zh_CN:{enabled:true,value:""}}}
|
|
26
|
+
* @param key
|
|
27
|
+
*/
|
|
28
|
+
export declare const getI18nValue: (record: any, key: string) => any;
|
package/types/Guard/module.d.ts
CHANGED
|
@@ -24,7 +24,10 @@ export declare enum GuardModuleType {
|
|
|
24
24
|
/** 多租户门户选择页 */
|
|
25
25
|
TENANT_PORTAL = "tenant-portal",
|
|
26
26
|
New_SUBMIT_SUCCESS = "newSubmitSuccess",
|
|
27
|
-
RESET_ACCOUNT_NAME = "resetAccountName"
|
|
27
|
+
RESET_ACCOUNT_NAME = "resetAccountName",
|
|
28
|
+
/** 高教社特殊节点 */
|
|
29
|
+
CUSTOM_COMPLETE_INFO = "customCompleteInfo",
|
|
30
|
+
ACCOUNT_MERGE = "accountMerge"
|
|
28
31
|
}
|
|
29
32
|
export interface GuardModuleAction {
|
|
30
33
|
action: string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { StoreInstance } from '../../Guard/core/hooks/useMultipleAccounts';
|
|
3
|
+
interface LoginWithLandrayQrcodeProps {
|
|
4
|
+
onLoginSuccess: any;
|
|
5
|
+
canLoop: boolean;
|
|
6
|
+
qrCodeScanOptions: any;
|
|
7
|
+
id: string;
|
|
8
|
+
multipleInstance?: StoreInstance;
|
|
9
|
+
}
|
|
10
|
+
export declare const LoginWithLandrayQrcode: (props: LoginWithLandrayQrcodeProps) => JSX.Element | null;
|
|
11
|
+
export {};
|
|
@@ -289,6 +289,9 @@ export interface ApplicationConfig {
|
|
|
289
289
|
verifyCodeLength: number;
|
|
290
290
|
websocket: string;
|
|
291
291
|
welcomeMessage: any;
|
|
292
|
+
userPortal?: {
|
|
293
|
+
mergeAccount?: boolean;
|
|
294
|
+
};
|
|
292
295
|
skipComplateFileds: boolean;
|
|
293
296
|
selfUnlockStrategy: 'captcha' | 'password-captcha';
|
|
294
297
|
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.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "4.3.
|
|
1
|
+
declare const _default: "4.3.13-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.98fc077f.chunk.css",
|
|
4
|
-
"main.js": "/static/js/main.078d3347.chunk.js",
|
|
5
|
-
"main.js.map": "/static/js/main.078d3347.chunk.js.map",
|
|
6
|
-
"runtime-main.js": "/static/js/runtime-main.f781373c.js",
|
|
7
|
-
"runtime-main.js.map": "/static/js/runtime-main.f781373c.js.map",
|
|
8
|
-
"static/css/2.c8e70804.chunk.css": "/static/css/2.c8e70804.chunk.css",
|
|
9
|
-
"static/js/2.a44b6e48.chunk.js": "/static/js/2.a44b6e48.chunk.js",
|
|
10
|
-
"static/js/2.a44b6e48.chunk.js.map": "/static/js/2.a44b6e48.chunk.js.map",
|
|
11
|
-
"static/js/3.cdb98af5.chunk.js": "/static/js/3.cdb98af5.chunk.js",
|
|
12
|
-
"static/js/3.cdb98af5.chunk.js.map": "/static/js/3.cdb98af5.chunk.js.map",
|
|
13
|
-
"index.html": "/index.html",
|
|
14
|
-
"static/css/2.c8e70804.chunk.css.map": "/static/css/2.c8e70804.chunk.css.map",
|
|
15
|
-
"static/css/main.98fc077f.chunk.css.map": "/static/css/main.98fc077f.chunk.css.map",
|
|
16
|
-
"static/js/2.a44b6e48.chunk.js.LICENSE.txt": "/static/js/2.a44b6e48.chunk.js.LICENSE.txt",
|
|
17
|
-
"static/media/loading.3cf0104f.svg": "/static/media/loading.3cf0104f.svg"
|
|
18
|
-
},
|
|
19
|
-
"entrypoints": [
|
|
20
|
-
"static/js/runtime-main.f781373c.js",
|
|
21
|
-
"static/css/2.c8e70804.chunk.css",
|
|
22
|
-
"static/js/2.a44b6e48.chunk.js",
|
|
23
|
-
"static/css/main.98fc077f.chunk.css",
|
|
24
|
-
"static/js/main.078d3347.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.c8e70804.chunk.css" rel="stylesheet"><link href="/static/css/main.98fc077f.chunk.css" rel="stylesheet"></head><body><div id="root"></div><script>!function(e){function t(t){for(var n,a,i=t[0],c=t[1],l=t[2],s=0,p=[];s<i.length;s++)a=i[s],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&p.push(o[a][0]),o[a]=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,i=1;i<r.length;i++){var c=r[i];0!==o[c]&&(n=!1)}n&&(u.splice(t--,1),e=a(a.s=r[0]))}return e}var n={},o={1:0},u=[];function a(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,a),r.l=!0,r.exports}a.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,i=document.createElement("script");i.charset="utf-8",i.timeout=120,a.nc&&i.setAttribute("nonce",a.nc),i.src=function(e){return a.p+"static/js/"+({}[e]||e)+"."+{3:"cdb98af5"}[e]+".chunk.js"}(e);var c=new Error;u=function(t){i.onerror=i.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:i})}),12e4);i.onerror=i.onload=u,document.head.appendChild(i)}return Promise.all(t)},a.m=e,a.c=n,a.d=function(e,t,r){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(a.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)a.d(r,n,function(t){return e[t]}.bind(null,n));return r},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="/",a.oe=function(e){throw console.error(e),e};var i=this["webpackJsonp@authing/react-ui-components"]=this["webpackJsonp@authing/react-ui-components"]||[],c=i.push.bind(i);i.push=t,i=i.slice();for(var l=0;l<i.length;l++)t(i[l]);var f=c;r()}([])</script><script src="/static/js/2.a44b6e48.chunk.js"></script><script src="/static/js/main.078d3347.chunk.js"></script></body></html>
|