@authing/react-ui-components 4.3.2-tn.2 → 4.3.2-zhihu.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 +1 -1
- 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/Login/core/withWeComQrcode.d.ts +2 -0
- package/types/Login/socialLogin/index.d.ts +1 -1
- package/types/Type/application.d.ts +14 -1
- package/types/_utils/context.d.ts +2 -0
- package/types/_utils/index.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.68edf311.chunk.css +0 -3
- package/dist/static/css/2.68edf311.chunk.css.map +0 -1
- package/dist/static/css/main.d2a5452d.chunk.css +0 -2
- package/dist/static/css/main.d2a5452d.chunk.css.map +0 -1
- package/dist/static/js/2.09cecd57.chunk.js +0 -3
- package/dist/static/js/2.09cecd57.chunk.js.LICENSE.txt +0 -86
- package/dist/static/js/2.09cecd57.chunk.js.map +0 -1
- package/dist/static/js/3.80072e1b.chunk.js +0 -2
- package/dist/static/js/3.80072e1b.chunk.js.map +0 -1
- package/dist/static/js/main.e53b9a3c.chunk.js +0 -2
- package/dist/static/js/main.e53b9a3c.chunk.js.map +0 -1
- package/dist/static/js/runtime-main.c557efef.js +0 -2
- package/dist/static/js/runtime-main.c557efef.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;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './style.less';
|
|
3
3
|
import { GuardLocalConfig } from '../../Guard';
|
|
4
|
-
import { ApplicationConfig, SocialConnectionItem } from '../../Type/application';
|
|
5
4
|
import { StoreInstance } from '../../Guard/core/hooks/useMultipleAccounts';
|
|
5
|
+
import { ApplicationConfig, SocialConnectionItem } from '../../Type';
|
|
6
6
|
export interface SocialLoginProps {
|
|
7
7
|
appId: string;
|
|
8
8
|
config: GuardLocalConfig;
|
|
@@ -8,7 +8,8 @@ export declare enum LoginMethods {
|
|
|
8
8
|
PhoneCode = "phone-code",
|
|
9
9
|
WxMinQr = "wechat-miniprogram-qrcode",
|
|
10
10
|
AD = "ad",
|
|
11
|
-
WechatMpQrcode = "wechatmp-qrcode"
|
|
11
|
+
WechatMpQrcode = "wechatmp-qrcode",
|
|
12
|
+
WechatworkCorpQrconnect = "wechatwork-corp-qrconnect"
|
|
12
13
|
}
|
|
13
14
|
export declare enum OIDCConnectionMode {
|
|
14
15
|
FRONT_CHANNEL = "FRONT_CHANNEL",
|
|
@@ -112,6 +113,12 @@ export interface QrCodeItem {
|
|
|
112
113
|
id: string;
|
|
113
114
|
title: string;
|
|
114
115
|
isDefault?: boolean;
|
|
116
|
+
QRConfig?: {
|
|
117
|
+
corpId: string;
|
|
118
|
+
agentId: string;
|
|
119
|
+
redirectUrl: string;
|
|
120
|
+
identifier: string;
|
|
121
|
+
};
|
|
115
122
|
}
|
|
116
123
|
export declare type QrcodeTabsSettings = Record<LoginMethods, Array<QrCodeItem>>;
|
|
117
124
|
export interface OidcClientMetadata {
|
|
@@ -307,4 +314,10 @@ export interface ApplicationConfig {
|
|
|
307
314
|
mfa: {
|
|
308
315
|
faceScore: number;
|
|
309
316
|
};
|
|
317
|
+
/** 是否开启自定义安全规则 */
|
|
318
|
+
customSecurityEnabled: boolean;
|
|
319
|
+
/** 应用的人机验证策略,始终开启、不开启、设置条件触发 */
|
|
320
|
+
appRobotVerify: 'always_enable' | 'disable' | 'condition_set';
|
|
321
|
+
/** 用户池的人机验证策略,始终开启、不开启、设置条件触发 */
|
|
322
|
+
userpoolRobotVerify: 'always_enable' | 'disable' | 'condition_set';
|
|
310
323
|
}
|
|
@@ -154,3 +154,5 @@ export declare const useGuardPhoneRegex: () => RegExp | null;
|
|
|
154
154
|
export declare const useGuardDefaultLanguage: () => Lang;
|
|
155
155
|
/** 用来操作和获取租户相关的内容 */
|
|
156
156
|
export declare const useGuardTenantProvider: () => MultipleTenant | undefined;
|
|
157
|
+
/** 当前人机验证策略 */
|
|
158
|
+
export declare const useRobotVerify: () => "always_enable" | "disable" | "condition_set";
|
package/types/_utils/index.d.ts
CHANGED
|
@@ -92,6 +92,8 @@ export declare const getLoginTypePipe: (publicConfig: ApplicationConfig, registe
|
|
|
92
92
|
} | undefined;
|
|
93
93
|
export declare const getPasswordIdentify: (identity: string) => string;
|
|
94
94
|
export declare const getCurrentLng: () => Lang;
|
|
95
|
+
export declare const isDingTalkOrigin: (origin: string) => boolean;
|
|
96
|
+
export declare const isWeComOrigin: (event: MessageEvent) => boolean;
|
|
95
97
|
export declare const regexFromString: (string: string) => RegExp | null;
|
|
96
98
|
export declare const getI18nLabel: (method: string | RegisterSortMethods, i18nFields: Map<string, TabFieldsI18nItem>, defaultLanguageConfig: Lang) => string;
|
|
97
99
|
export declare const getSortLabels: (methods: string[], i18nConfig: Map<string, TabFieldsI18nItem>, defaultLanguageConfig: Lang) => string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "4.3.2-
|
|
1
|
+
declare const _default: "4.3.2-zhihu.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.d2a5452d.chunk.css",
|
|
4
|
-
"main.js": "/static/js/main.e53b9a3c.chunk.js",
|
|
5
|
-
"main.js.map": "/static/js/main.e53b9a3c.chunk.js.map",
|
|
6
|
-
"runtime-main.js": "/static/js/runtime-main.c557efef.js",
|
|
7
|
-
"runtime-main.js.map": "/static/js/runtime-main.c557efef.js.map",
|
|
8
|
-
"static/css/2.68edf311.chunk.css": "/static/css/2.68edf311.chunk.css",
|
|
9
|
-
"static/js/2.09cecd57.chunk.js": "/static/js/2.09cecd57.chunk.js",
|
|
10
|
-
"static/js/2.09cecd57.chunk.js.map": "/static/js/2.09cecd57.chunk.js.map",
|
|
11
|
-
"static/js/3.80072e1b.chunk.js": "/static/js/3.80072e1b.chunk.js",
|
|
12
|
-
"static/js/3.80072e1b.chunk.js.map": "/static/js/3.80072e1b.chunk.js.map",
|
|
13
|
-
"index.html": "/index.html",
|
|
14
|
-
"static/css/2.68edf311.chunk.css.map": "/static/css/2.68edf311.chunk.css.map",
|
|
15
|
-
"static/css/main.d2a5452d.chunk.css.map": "/static/css/main.d2a5452d.chunk.css.map",
|
|
16
|
-
"static/js/2.09cecd57.chunk.js.LICENSE.txt": "/static/js/2.09cecd57.chunk.js.LICENSE.txt",
|
|
17
|
-
"static/media/loading.3cf0104f.svg": "/static/media/loading.3cf0104f.svg"
|
|
18
|
-
},
|
|
19
|
-
"entrypoints": [
|
|
20
|
-
"static/js/runtime-main.c557efef.js",
|
|
21
|
-
"static/css/2.68edf311.chunk.css",
|
|
22
|
-
"static/js/2.09cecd57.chunk.js",
|
|
23
|
-
"static/css/main.d2a5452d.chunk.css",
|
|
24
|
-
"static/js/main.e53b9a3c.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.68edf311.chunk.css" rel="stylesheet"><link href="/static/css/main.d2a5452d.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:"80072e1b"}[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.09cecd57.chunk.js"></script><script src="/static/js/main.e53b9a3c.chunk.js"></script></body></html>
|