@authing/react-ui-components 4.0.4-hep.0 → 4.0.4-rc.11
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 +1 -1
- package/lib/index.min.js +1 -1
- package/package.json +2 -2
- package/types/CompleteInfo/index.d.ts +0 -1
- package/types/CompleteInfo/interface.d.ts +4 -8
- package/types/Guard/core/renderModule.d.ts +2 -1
- package/types/Guard/module.d.ts +0 -2
- package/types/MFA/interface.d.ts +0 -1
- package/types/Type/application.d.ts +0 -3
- package/types/Type/index.d.ts +1 -1
- package/types/_utils/hooks/index.d.ts +4 -0
- package/types/_utils/locales/ja-jp/index.d.ts +4 -0
- package/types/_utils/responseManagement/interface.d.ts +0 -1
- 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.2cdfb9d1.chunk.css +0 -3
- package/dist/static/css/2.2cdfb9d1.chunk.css.map +0 -1
- package/dist/static/css/main.f438f284.chunk.css +0 -2
- package/dist/static/css/main.f438f284.chunk.css.map +0 -1
- package/dist/static/js/2.9a1287ca.chunk.js +0 -3
- package/dist/static/js/2.9a1287ca.chunk.js.LICENSE.txt +0 -112
- package/dist/static/js/2.9a1287ca.chunk.js.map +0 -1
- package/dist/static/js/3.d3328d89.chunk.js +0 -2
- package/dist/static/js/3.d3328d89.chunk.js.map +0 -1
- package/dist/static/js/main.5735e6f1.chunk.js +0 -2
- package/dist/static/js/main.5735e6f1.chunk.js.map +0 -1
- package/dist/static/js/runtime-main.e75981a3.js +0 -2
- package/dist/static/js/runtime-main.e75981a3.js.map +0 -1
- package/dist/static/media/loading.3cf0104f.svg +0 -32
- package/types/AccountMerge/UserRadio.d.ts +0 -5
- package/types/AccountMerge/index.d.ts +0 -3
- package/types/AccountMerge/interface.d.ts +0 -27
- package/types/AccountMerge/utils.d.ts +0 -3
- package/types/BindTotp/api/constant.d.ts +0 -2
- package/types/BindTotp/api/index.d.ts +0 -19
- package/types/ChangePassword/api/index.d.ts +0 -3
- package/types/CompleteInfo/api/constant.d.ts +0 -1
- package/types/CompleteInfo/api/index.d.ts +0 -4
- package/types/CompleteInfo/api/request.d.ts +0 -8
- package/types/CompleteInfo/core/components/TreeSelect.d.ts +0 -11
- package/types/ForgetPassword/api/constant.d.ts +0 -1
- package/types/ForgetPassword/api/index.d.ts +0 -1
- package/types/ForgetPassword/api/request.d.ts +0 -24
- package/types/Guard/api/constant.d.ts +0 -2
- package/types/Guard/api/index.d.ts +0 -13
- package/types/Guard/core/componentsMapping.d.ts +0 -8
- package/types/Guard/core/hooks/useBusinessRequest.d.ts +0 -14
- package/types/Guard/core/hooks/useCss.d.ts +0 -5
- package/types/Guard/core/hooks/useEvents.d.ts +0 -15
- package/types/Guard/core/hooks/useFDA.d.ts +0 -20
- package/types/Guard/core/hooks/useModule.d.ts +0 -16
- package/types/IdentityBinding/api/index.d.ts +0 -1
- package/types/IdentityBinding/api/request.d.ts +0 -1
- package/types/IdentityBindingAsk/api/index.d.ts +0 -9
- package/types/Login/api/constant.d.ts +0 -6
- package/types/Login/api/index.d.ts +0 -1
- package/types/Login/api/request.d.ts +0 -114
- package/types/Login/core/withWeComQrcode.d.ts +0 -2
- package/types/MFA/api/constant.d.ts +0 -6
- package/types/MFA/api/index.d.ts +0 -2
- package/types/MFA/api/request.d.ts +0 -50
- package/types/NeedHelpView/api/constant.d.ts +0 -1
- package/types/NeedHelpView/api/index.d.ts +0 -1
- package/types/NeedHelpView/api/request.d.ts +0 -12
- package/types/Qrcode/api/constant.d.ts +0 -3
- package/types/Qrcode/api/index.d.ts +0 -1
- package/types/Qrcode/api/request.d.ts +0 -44
- package/types/RecoveryCode/api/constant.d.ts +0 -1
- package/types/RecoveryCode/api/index.d.ts +0 -1
- package/types/RecoveryCode/api/request.d.ts +0 -10
- package/types/Register/api/constant.d.ts +0 -2
- package/types/Register/api/index.d.ts +0 -2
- package/types/Register/api/request.d.ts +0 -57
- package/types/SelfUnlock/api/index.d.ts +0 -1
- package/types/SendCode/api/index.d.ts +0 -1
- package/types/ValidatorRules/api/index.d.ts +0 -1
- package/types/_utils/actions/index.d.ts +0 -23
- package/types/_utils/http/api/constant.d.ts +0 -7
- package/types/_utils/http/api/index.d.ts +0 -1
- package/types/_utils/http/api/request.d.ts +0 -72
- package/types/_utils/http/base/index.d.ts +0 -10
- package/types/_utils/http/constant.d.ts +0 -46
- package/types/_utils/http/events/index.d.ts +0 -16
- package/types/_utils/http/events/modal/login.d.ts +0 -62
- package/types/_utils/http/events/modal/register.d.ts +0 -73
- package/types/_utils/http/events/utils.d.ts +0 -25
- package/types/_utils/http/header/index.d.ts +0 -41
- package/types/_utils/http/index.d.ts +0 -6
- package/types/_utils/http/instance.d.ts +0 -2
- package/types/_utils/http/interceptors/request.d.ts +0 -6
- package/types/_utils/http/interceptors/response.d.ts +0 -43
- package/types/_utils/http/utils.d.ts +0 -20
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@authing/react-ui-components",
|
|
3
|
-
"version": "4.0.4-
|
|
3
|
+
"version": "4.0.4-rc.11",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "lib/index.min.js",
|
|
6
6
|
"typings": "types/index.d.ts",
|
|
@@ -235,4 +235,4 @@
|
|
|
235
235
|
"webpack-manifest-plugin": "2.2.0",
|
|
236
236
|
"workbox-webpack-plugin": "5.1.4"
|
|
237
237
|
}
|
|
238
|
-
}
|
|
238
|
+
}
|
|
@@ -7,21 +7,19 @@ export interface CompleteInfoEvents extends IG2Events {
|
|
|
7
7
|
onRegisterInfoCompleted?: (user: User, udfs: {
|
|
8
8
|
definition: any;
|
|
9
9
|
value: any;
|
|
10
|
-
}[], authClient: AuthenticationClient
|
|
11
|
-
phone?: string;
|
|
12
|
-
canMergeUser?: boolean;
|
|
13
|
-
}) => void;
|
|
10
|
+
}[], authClient: AuthenticationClient) => void;
|
|
14
11
|
onRegisterInfoCompletedError?: (error: CommonMessage, udfs: {
|
|
15
12
|
definition: any;
|
|
16
13
|
value: any;
|
|
17
14
|
}[], authClient: AuthenticationClient) => void;
|
|
18
|
-
onAccountMergeCompleteInfo?: (user: User) => void;
|
|
19
15
|
}
|
|
20
16
|
export interface GuardCompleteInfoProps extends IG2FCProps, CompleteInfoEvents {
|
|
21
17
|
config: Partial<CompleteInfoConfig>;
|
|
22
18
|
}
|
|
23
19
|
export interface GuardCompleteInfoViewProps extends GuardCompleteInfoProps {
|
|
24
20
|
config: CompleteInfoConfig;
|
|
21
|
+
initData: any;
|
|
22
|
+
onLogin?: any;
|
|
25
23
|
}
|
|
26
24
|
export declare type ExtendsFieldType = 'user' | 'internal';
|
|
27
25
|
export interface ExtendsField {
|
|
@@ -54,7 +52,6 @@ export interface CompleteInfoMetaData {
|
|
|
54
52
|
name: string;
|
|
55
53
|
required: boolean;
|
|
56
54
|
validateRules: CompleteInfoRule[];
|
|
57
|
-
checkUnique?: boolean;
|
|
58
55
|
options?: CompleteInfoSelectOption[];
|
|
59
56
|
}
|
|
60
57
|
export declare enum CompleteInfoBaseControls {
|
|
@@ -73,8 +70,7 @@ export declare enum CompleteInfoExtendsControls {
|
|
|
73
70
|
STRING = "string",
|
|
74
71
|
TEXT = "text",
|
|
75
72
|
GENDER = "gender",
|
|
76
|
-
COUNTRY = "country"
|
|
77
|
-
TREE = "tree"
|
|
73
|
+
COUNTRY = "country"
|
|
78
74
|
}
|
|
79
75
|
export interface CompleteInfoInitData {
|
|
80
76
|
skip: boolean;
|
package/types/Guard/module.d.ts
CHANGED
|
@@ -14,12 +14,10 @@ export declare enum GuardModuleType {
|
|
|
14
14
|
LOGIN_COMPLETE_INFO = "loginCompleteInfo",
|
|
15
15
|
REGISTER_PASSWORD = "registerPassword",
|
|
16
16
|
REGISTER_COMPLETE_INFO = "registerCompleteInfo",
|
|
17
|
-
CUSTOM_COMPLETE_INFO = "customCompleteInfo",
|
|
18
17
|
RECOVERY_CODE = "recoveryCode",
|
|
19
18
|
SUBMIT_SUCCESS = "submitSuccess",
|
|
20
19
|
IDENTITY_BINDING_ASK = "identityBindingAsk",
|
|
21
20
|
IDENTITY_BINDING = "identityBinding",
|
|
22
|
-
ACCOUNT_MERGE = "accountMerge",
|
|
23
21
|
SELF_UNLOCK = "selfUnlock"
|
|
24
22
|
}
|
|
25
23
|
export interface GuardModuleAction {
|
package/types/MFA/interface.d.ts
CHANGED
|
@@ -251,9 +251,6 @@ export interface ApplicationConfig {
|
|
|
251
251
|
verifyCodeLength: number;
|
|
252
252
|
websocket: string;
|
|
253
253
|
welcomeMessage: any;
|
|
254
|
-
userPortal?: {
|
|
255
|
-
mergeAccount?: boolean;
|
|
256
|
-
};
|
|
257
254
|
skipComplateFileds: boolean;
|
|
258
255
|
selfUnlockStrategy: 'captcha' | 'password-captcha';
|
|
259
256
|
defaultLanguageConfig: Lang;
|
package/types/Type/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { FacePlugin } from '../_utils/facePlugin/interface';
|
|
|
4
4
|
import { ApplicationConfig } from './application';
|
|
5
5
|
export * from './application';
|
|
6
6
|
export type { CommonMessage, User };
|
|
7
|
-
export declare type Lang = 'zh-CN' | 'en-US' | 'zh-TW';
|
|
7
|
+
export declare type Lang = 'zh-CN' | 'en-US' | 'zh-TW' | 'ja-JP';
|
|
8
8
|
export declare enum GuardMode {
|
|
9
9
|
Modal = "modal",
|
|
10
10
|
Normal = "normal"
|
|
@@ -28,6 +28,10 @@ export declare const parsePhone: (isInternationSms: boolean, fieldValue: string,
|
|
|
28
28
|
countryCode: string | undefined;
|
|
29
29
|
phoneNumber: string;
|
|
30
30
|
};
|
|
31
|
+
export declare enum SocialConnectionEvent {
|
|
32
|
+
Message = "message",
|
|
33
|
+
Auth = "auth"
|
|
34
|
+
}
|
|
31
35
|
/**
|
|
32
36
|
*
|
|
33
37
|
* @param config
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "4.0.4-
|
|
1
|
+
declare const _default: "4.0.4-rc.11";
|
|
2
2
|
export default _default;
|
package/dist/asset-manifest.json
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"files": {
|
|
3
|
-
"main.css": "/static/css/main.f438f284.chunk.css",
|
|
4
|
-
"main.js": "/static/js/main.5735e6f1.chunk.js",
|
|
5
|
-
"main.js.map": "/static/js/main.5735e6f1.chunk.js.map",
|
|
6
|
-
"runtime-main.js": "/static/js/runtime-main.e75981a3.js",
|
|
7
|
-
"runtime-main.js.map": "/static/js/runtime-main.e75981a3.js.map",
|
|
8
|
-
"static/css/2.2cdfb9d1.chunk.css": "/static/css/2.2cdfb9d1.chunk.css",
|
|
9
|
-
"static/js/2.9a1287ca.chunk.js": "/static/js/2.9a1287ca.chunk.js",
|
|
10
|
-
"static/js/2.9a1287ca.chunk.js.map": "/static/js/2.9a1287ca.chunk.js.map",
|
|
11
|
-
"static/js/3.d3328d89.chunk.js": "/static/js/3.d3328d89.chunk.js",
|
|
12
|
-
"static/js/3.d3328d89.chunk.js.map": "/static/js/3.d3328d89.chunk.js.map",
|
|
13
|
-
"index.html": "/index.html",
|
|
14
|
-
"static/css/2.2cdfb9d1.chunk.css.map": "/static/css/2.2cdfb9d1.chunk.css.map",
|
|
15
|
-
"static/css/main.f438f284.chunk.css.map": "/static/css/main.f438f284.chunk.css.map",
|
|
16
|
-
"static/js/2.9a1287ca.chunk.js.LICENSE.txt": "/static/js/2.9a1287ca.chunk.js.LICENSE.txt",
|
|
17
|
-
"static/media/loading.3cf0104f.svg": "/static/media/loading.3cf0104f.svg"
|
|
18
|
-
},
|
|
19
|
-
"entrypoints": [
|
|
20
|
-
"static/js/runtime-main.e75981a3.js",
|
|
21
|
-
"static/css/2.2cdfb9d1.chunk.css",
|
|
22
|
-
"static/js/2.9a1287ca.chunk.js",
|
|
23
|
-
"static/css/main.f438f284.chunk.css",
|
|
24
|
-
"static/js/main.5735e6f1.chunk.js"
|
|
25
|
-
]
|
|
26
|
-
}
|
package/dist/index.html
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<!doctype html><html lang="zh"><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.2cdfb9d1.chunk.css" rel="stylesheet"><link href="/static/css/main.f438f284.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:"d3328d89"}[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.9a1287ca.chunk.js"></script><script src="/static/js/main.5735e6f1.chunk.js"></script></body></html>
|