@authing/react-ui-components 4.4.1-alpha.5 → 4.4.1-alpha.7
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 +2 -2
- package/types/AppOtpVerify/DownloadVerifier.d.ts +2 -0
- package/types/AppOtpVerify/LoginApp.d.ts +2 -0
- package/types/AppOtpVerify/ScanQrcode.d.ts +2 -0
- package/types/AppOtpVerify/Steps.d.ts +11 -0
- package/types/AppOtpVerify/index.d.ts +3 -0
- package/types/CommonFormItem/context.d.ts +4 -0
- package/types/CommonFormItem/index.d.ts +8 -0
- package/types/CommonInput/index.d.ts +7 -0
- package/types/Guard/core/hooks/useAgreements.d.ts +1 -2
- package/types/SendCode/SendCodeByPhone.d.ts +2 -0
- package/types/Type/application.d.ts +1 -0
- package/types/Type/index.d.ts +2 -0
- package/types/_utils/config/index.d.ts +1 -0
- package/types/_utils/context.d.ts +4 -0
- package/types/_utils/index.d.ts +1 -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.839329b5.chunk.css +0 -3
- package/dist/static/css/2.839329b5.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.acd455a5.chunk.js +0 -3
- package/dist/static/js/2.acd455a5.chunk.js.LICENSE.txt +0 -124
- package/dist/static/js/2.acd455a5.chunk.js.map +0 -1
- package/dist/static/js/3.ca746d7e.chunk.js +0 -2
- package/dist/static/js/3.ca746d7e.chunk.js.map +0 -1
- package/dist/static/js/main.59425d4f.chunk.js +0 -2
- package/dist/static/js/main.59425d4f.chunk.js.map +0 -1
- package/dist/static/js/runtime-main.5d2cd96c.js +0 -2
- package/dist/static/js/runtime-main.5d2cd96c.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.4.1-alpha.
|
|
3
|
+
"version": "4.4.1-alpha.7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "lib/index.min.js",
|
|
6
6
|
"typings": "types/index.d.ts",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
],
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"antd": "^4.8.0",
|
|
14
|
-
"authing-js-sdk": "4.23.
|
|
14
|
+
"authing-js-sdk": "4.23.40",
|
|
15
15
|
"classnames": "^2.3.1",
|
|
16
16
|
"fastclick": "^1.0.6",
|
|
17
17
|
"global": "^4.4.0",
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import './steps.styles.less';
|
|
3
|
+
interface StepsProps {
|
|
4
|
+
current: number;
|
|
5
|
+
items: StepItem[];
|
|
6
|
+
}
|
|
7
|
+
interface StepItem {
|
|
8
|
+
title: ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export declare function Steps(props: StepsProps): JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { FormItemProps } from 'antd/lib/form';
|
|
3
|
+
declare type Status = 'blur' | 'focus';
|
|
4
|
+
export declare const CommonFormItem: FC<FormItemProps>;
|
|
5
|
+
export declare const Item: FC<FormItemProps & {
|
|
6
|
+
inputstatus: Status;
|
|
7
|
+
}>;
|
|
8
|
+
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { Agreement } from '../../../Type';
|
|
3
2
|
interface Options {
|
|
4
3
|
agreements: Agreement[];
|
|
@@ -8,7 +7,7 @@ interface Options {
|
|
|
8
7
|
}
|
|
9
8
|
export declare function useAgreements(options: Options): {
|
|
10
9
|
agreements: Agreement[];
|
|
11
|
-
checkedAgreements:
|
|
10
|
+
checkedAgreements: (string | number)[];
|
|
12
11
|
checkAllAgreements: () => void;
|
|
13
12
|
unCheckAllAgreements: () => void;
|
|
14
13
|
};
|
package/types/Type/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { AuthenticationClient, CommonMessage, User } from 'authing-js-sdk';
|
|
2
3
|
import { GuardModuleType } from '../Guard/module';
|
|
3
4
|
import { FacePlugin } from '../_utils/facePlugin/interface';
|
|
@@ -42,6 +43,7 @@ export interface IG2Config {
|
|
|
42
43
|
userpool?: string;
|
|
43
44
|
contentCss?: string;
|
|
44
45
|
target?: HTMLElement | string;
|
|
46
|
+
style?: React.CSSProperties;
|
|
45
47
|
__internalRequest__?: boolean;
|
|
46
48
|
__singleComponent__?: boolean;
|
|
47
49
|
__unAuthFlow__?: boolean;
|
|
@@ -43,6 +43,7 @@ export declare const useFetchConsoleConfig: (forceUpdate: number, appId?: string
|
|
|
43
43
|
userpool?: string | undefined;
|
|
44
44
|
contentCss?: string | undefined;
|
|
45
45
|
target?: string | HTMLElement | undefined;
|
|
46
|
+
style?: import("react").CSSProperties | undefined;
|
|
46
47
|
__internalRequest__?: boolean | undefined;
|
|
47
48
|
__singleComponent__?: boolean | undefined;
|
|
48
49
|
__unAuthFlow__?: boolean | undefined;
|
|
@@ -47,6 +47,8 @@ export interface IGuardContext {
|
|
|
47
47
|
defaultLanguageConfig: Lang;
|
|
48
48
|
/** 租户信息获取和操作处理相关 */
|
|
49
49
|
tenantInstance?: MultipleTenant;
|
|
50
|
+
/** 判断是否是国外的用户池 */
|
|
51
|
+
isForeignUserpool: boolean;
|
|
50
52
|
}
|
|
51
53
|
export declare const createGuardXContext: () => {
|
|
52
54
|
Provider: React.FC<{
|
|
@@ -157,3 +159,5 @@ export declare const useGuardDefaultLanguage: () => Lang;
|
|
|
157
159
|
export declare const useGuardTenantProvider: () => MultipleTenant | undefined;
|
|
158
160
|
/** 当前人机验证策略 */
|
|
159
161
|
export declare const useRobotVerify: () => "always_enable" | "disable" | "condition_set";
|
|
162
|
+
/** 当前用户池是否是国外用户池 */
|
|
163
|
+
export declare const useIsForeignUserpool: () => boolean;
|
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.4.1-alpha.
|
|
1
|
+
declare const _default: "4.4.1-alpha.7";
|
|
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.59425d4f.chunk.js",
|
|
5
|
-
"main.js.map": "/static/js/main.59425d4f.chunk.js.map",
|
|
6
|
-
"runtime-main.js": "/static/js/runtime-main.5d2cd96c.js",
|
|
7
|
-
"runtime-main.js.map": "/static/js/runtime-main.5d2cd96c.js.map",
|
|
8
|
-
"static/css/2.839329b5.chunk.css": "/static/css/2.839329b5.chunk.css",
|
|
9
|
-
"static/js/2.acd455a5.chunk.js": "/static/js/2.acd455a5.chunk.js",
|
|
10
|
-
"static/js/2.acd455a5.chunk.js.map": "/static/js/2.acd455a5.chunk.js.map",
|
|
11
|
-
"static/js/3.ca746d7e.chunk.js": "/static/js/3.ca746d7e.chunk.js",
|
|
12
|
-
"static/js/3.ca746d7e.chunk.js.map": "/static/js/3.ca746d7e.chunk.js.map",
|
|
13
|
-
"index.html": "/index.html",
|
|
14
|
-
"static/css/2.839329b5.chunk.css.map": "/static/css/2.839329b5.chunk.css.map",
|
|
15
|
-
"static/css/main.98fc077f.chunk.css.map": "/static/css/main.98fc077f.chunk.css.map",
|
|
16
|
-
"static/js/2.acd455a5.chunk.js.LICENSE.txt": "/static/js/2.acd455a5.chunk.js.LICENSE.txt",
|
|
17
|
-
"static/media/loading.3cf0104f.svg": "/static/media/loading.3cf0104f.svg"
|
|
18
|
-
},
|
|
19
|
-
"entrypoints": [
|
|
20
|
-
"static/js/runtime-main.5d2cd96c.js",
|
|
21
|
-
"static/css/2.839329b5.chunk.css",
|
|
22
|
-
"static/js/2.acd455a5.chunk.js",
|
|
23
|
-
"static/css/main.98fc077f.chunk.css",
|
|
24
|
-
"static/js/main.59425d4f.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.839329b5.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:"ca746d7e"}[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.acd455a5.chunk.js"></script><script src="/static/js/main.59425d4f.chunk.js"></script></body></html>
|