@authing/react-ui-components 4.0.8 → 4.0.9-alpha.1
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/dist/asset-manifest.json +26 -0
- package/dist/index.html +1 -0
- package/dist/static/css/2.8119be6f.chunk.css +3 -0
- package/dist/static/css/2.8119be6f.chunk.css.map +1 -0
- package/dist/static/css/main.cb06883c.chunk.css +2 -0
- package/dist/static/css/main.cb06883c.chunk.css.map +1 -0
- package/dist/static/js/2.1b325b0f.chunk.js +3 -0
- package/dist/static/js/2.1b325b0f.chunk.js.LICENSE.txt +86 -0
- package/dist/static/js/2.1b325b0f.chunk.js.map +1 -0
- package/dist/static/js/3.297324da.chunk.js +2 -0
- package/dist/static/js/3.297324da.chunk.js.map +1 -0
- package/dist/static/js/main.abc48f5a.chunk.js +2 -0
- package/dist/static/js/main.abc48f5a.chunk.js.map +1 -0
- package/dist/static/js/runtime-main.ad73ab6b.js +2 -0
- package/dist/static/js/runtime-main.ad73ab6b.js.map +1 -0
- package/dist/static/media/loading.3cf0104f.svg +32 -0
- package/lib/index.min.css +1 -1
- package/lib/index.min.js +1 -1
- package/package.json +2 -3
- package/types/Guard/module.d.ts +2 -1
- package/types/GuardFace/index.d.ts +16 -0
- package/types/GuardSelect/index.d.ts +29 -0
- package/types/Login/hooks/useLoginMultiple.d.ts +1 -0
- package/types/SelectAccount/index.d.ts +3 -0
- package/types/TenantPortalSelect/index.d.ts +15 -0
- package/types/_utils/responseManagement/interface.d.ts +2 -1
- package/types/version/version.d.ts +1 -1
- package/LICENSE +0 -21
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@authing/react-ui-components",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.9-alpha.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "lib/index.min.js",
|
|
6
6
|
"typings": "types/index.d.ts",
|
|
@@ -234,6 +234,5 @@
|
|
|
234
234
|
"webpack-dev-server": "3.11.0",
|
|
235
235
|
"webpack-manifest-plugin": "2.2.0",
|
|
236
236
|
"workbox-webpack-plugin": "5.1.4"
|
|
237
|
-
}
|
|
238
|
-
"gitHead": "44b6d3f22978d3e56895a8aeb580d2f5dcac89d8"
|
|
237
|
+
}
|
|
239
238
|
}
|
package/types/Guard/module.d.ts
CHANGED
|
@@ -18,7 +18,8 @@ export declare const enum GuardModuleType {
|
|
|
18
18
|
SUBMIT_SUCCESS = "submitSuccess",
|
|
19
19
|
IDENTITY_BINDING_ASK = "identityBindingAsk",
|
|
20
20
|
IDENTITY_BINDING = "identityBinding",
|
|
21
|
-
SELF_UNLOCK = "selfUnlock"
|
|
21
|
+
SELF_UNLOCK = "selfUnlock",
|
|
22
|
+
FLOW_SELECT_ACCOUNT = "changeWeixinUnionid"
|
|
22
23
|
}
|
|
23
24
|
export interface GuardModuleAction {
|
|
24
25
|
action: string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import './styles.less';
|
|
2
|
+
import { AvatarProps } from 'antd/lib/avatar';
|
|
3
|
+
import { TagProps } from 'antd/lib/tag';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
export interface GuardFaceProps {
|
|
6
|
+
/** 顶部 avatar 头像展示 */
|
|
7
|
+
avatar: AvatarProps | string;
|
|
8
|
+
/** 标题头部 */
|
|
9
|
+
title: React.ReactNode;
|
|
10
|
+
/** 标题描述 */
|
|
11
|
+
description?: React.ReactNode;
|
|
12
|
+
/** 标签功能 */
|
|
13
|
+
tags?: TagProps[];
|
|
14
|
+
}
|
|
15
|
+
/** 顶部通用区域封装,同时兼容样式的层叠和功能的自定义 */
|
|
16
|
+
export declare const GuardFace: (props: GuardFaceProps) => JSX.Element;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import './styles.less';
|
|
2
|
+
import { AvatarProps } from 'antd/lib/avatar';
|
|
3
|
+
import { ListItemProps, ListProps } from 'antd/lib/list';
|
|
4
|
+
import React, { CSSProperties } from 'react';
|
|
5
|
+
export interface GuardSelectItem {
|
|
6
|
+
/** avatar 头像展示 */
|
|
7
|
+
avatar?: AvatarProps | string;
|
|
8
|
+
/** 标题 */
|
|
9
|
+
title?: React.ReactNode;
|
|
10
|
+
/** 描述 */
|
|
11
|
+
description?: React.ReactNode;
|
|
12
|
+
/** 右侧操作组 */
|
|
13
|
+
actions?: ListItemProps['actions'];
|
|
14
|
+
/** 右侧额外的渲染内容 */
|
|
15
|
+
extra?: ListItemProps['extra'];
|
|
16
|
+
/** 数据项子内容,便于自定义 */
|
|
17
|
+
children?: React.ReactNode;
|
|
18
|
+
/** 其他元字段 */
|
|
19
|
+
[key: string]: any;
|
|
20
|
+
}
|
|
21
|
+
export interface GuardSelectProps<T = any> extends ListProps<any> {
|
|
22
|
+
/**数据项之间的间隙,默认`20px` */
|
|
23
|
+
gap?: CSSProperties['marginBottom'];
|
|
24
|
+
/** 数据源 */
|
|
25
|
+
dataSource: T[];
|
|
26
|
+
onSelect?: (item?: T, index?: number) => void;
|
|
27
|
+
}
|
|
28
|
+
/** 选择列表组件 兼容绝大多数选择场景 */
|
|
29
|
+
export declare const GuardSelect: <D extends GuardSelectItem = any>(props: GuardSelectProps<D>) => JSX.Element;
|
|
@@ -14,6 +14,7 @@ declare function useLoginMultipleBackFill(options: {
|
|
|
14
14
|
isOnlyInternationSms?: boolean;
|
|
15
15
|
setAreaCode?: React.Dispatch<React.SetStateAction<string>>;
|
|
16
16
|
cancelBackfill?: boolean;
|
|
17
|
+
changeCurrentMethod?: (account: string) => void;
|
|
17
18
|
}): void;
|
|
18
19
|
/**
|
|
19
20
|
* 多账号统一状态管理
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import './styles.less';
|
|
3
|
+
/** 租户门户选择状态机返回数据类型 */
|
|
4
|
+
export interface TenantPortalSelectType {
|
|
5
|
+
title: string;
|
|
6
|
+
description: string;
|
|
7
|
+
logo: string;
|
|
8
|
+
list: {
|
|
9
|
+
tenantId: string;
|
|
10
|
+
tenantLogo: string;
|
|
11
|
+
tenantName: string;
|
|
12
|
+
userName: string;
|
|
13
|
+
}[];
|
|
14
|
+
}
|
|
15
|
+
export declare const GuardTenantPortalSelectView: () => JSX.Element;
|
|
@@ -16,6 +16,7 @@ export declare const enum ApiCode {
|
|
|
16
16
|
FIRST_LOGIN_PASSWORD = 1639,
|
|
17
17
|
FORCED_PASSWORD_RESET = 2058,
|
|
18
18
|
UNSAFE_PASSWORD_TIP = 2061,
|
|
19
|
-
UNSAFE_PASSWORD_RESET = 2071
|
|
19
|
+
UNSAFE_PASSWORD_RESET = 2071,
|
|
20
|
+
FLOW_SELECT_ACCOUNT = 2921
|
|
20
21
|
}
|
|
21
22
|
export declare const ChangeModuleApiCodeMapping: Record<string, GuardModuleType>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "4.0.
|
|
1
|
+
declare const _default: "4.0.9-alpha.1";
|
|
2
2
|
export default _default;
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2019-present Authing
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|