@authing/react-ui-components 4.3.1 → 4.3.2-tn.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.
Files changed (32) hide show
  1. package/dist/asset-manifest.json +18 -18
  2. package/dist/index.html +1 -1
  3. package/dist/static/css/2.68edf311.chunk.css +3 -0
  4. package/dist/static/css/2.68edf311.chunk.css.map +1 -0
  5. package/dist/static/css/main.d2a5452d.chunk.css +2 -0
  6. package/dist/static/css/main.d2a5452d.chunk.css.map +1 -0
  7. package/dist/static/js/2.09cecd57.chunk.js +3 -0
  8. package/dist/static/js/{2.d2a1168e.chunk.js.LICENSE.txt → 2.09cecd57.chunk.js.LICENSE.txt} +0 -0
  9. package/dist/static/js/2.09cecd57.chunk.js.map +1 -0
  10. package/dist/static/js/{3.b3dd7130.chunk.js → 3.80072e1b.chunk.js} +2 -2
  11. package/dist/static/js/{3.b3dd7130.chunk.js.map → 3.80072e1b.chunk.js.map} +1 -1
  12. package/dist/static/js/main.e53b9a3c.chunk.js +2 -0
  13. package/dist/static/js/main.e53b9a3c.chunk.js.map +1 -0
  14. package/dist/static/js/{runtime-main.6f6a6483.js → runtime-main.c557efef.js} +2 -2
  15. package/dist/static/js/{runtime-main.6f6a6483.js.map → runtime-main.c557efef.js.map} +1 -1
  16. package/lib/index.min.css +1 -1
  17. package/lib/index.min.js +1 -1
  18. package/package.json +2 -3
  19. package/types/Guard/event.d.ts +2 -1
  20. package/types/TenantPortalSelect/index.d.ts +0 -13
  21. package/types/TenantPortalSelect/interface.d.ts +33 -0
  22. package/types/_utils/index.d.ts +1 -1
  23. package/types/version/version.d.ts +1 -1
  24. package/LICENSE +0 -21
  25. package/dist/static/css/2.31681d53.chunk.css +0 -3
  26. package/dist/static/css/2.31681d53.chunk.css.map +0 -1
  27. package/dist/static/css/main.5aec6972.chunk.css +0 -2
  28. package/dist/static/css/main.5aec6972.chunk.css.map +0 -1
  29. package/dist/static/js/2.d2a1168e.chunk.js +0 -3
  30. package/dist/static/js/2.d2a1168e.chunk.js.map +0 -1
  31. package/dist/static/js/main.b635a15a.chunk.js +0 -2
  32. package/dist/static/js/main.b635a15a.chunk.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authing/react-ui-components",
3
- "version": "4.3.1",
3
+ "version": "4.3.2-tn.1",
4
4
  "private": false,
5
5
  "main": "lib/index.min.js",
6
6
  "typings": "types/index.d.ts",
@@ -235,6 +235,5 @@
235
235
  "webpack-dev-server": "3.11.0",
236
236
  "webpack-manifest-plugin": "2.2.0",
237
237
  "workbox-webpack-plugin": "5.1.4"
238
- },
239
- "gitHead": "d464051d33c7350b716615a3836bfd9998eb8a13"
238
+ }
240
239
  }
@@ -5,7 +5,8 @@ import { IdentityBindingEvents } from '../IdentityBinding/interface';
5
5
  import { IdentityBindingAskEvents } from '../IdentityBindingAsk';
6
6
  import { LoginEvents } from '../Login/interface';
7
7
  import { RegisterEvents } from '../Register/interface';
8
- export interface GuardEvents extends LoginEvents, RegisterEvents, CompleteInfoEvents, ForgetPasswordEvents, IdentityBindingEvents, IdentityBindingAskEvents {
8
+ import { TenantPortalEvents } from '../TenantPortalSelect/interface';
9
+ export interface GuardEvents extends LoginEvents, RegisterEvents, CompleteInfoEvents, ForgetPasswordEvents, IdentityBindingEvents, IdentityBindingAskEvents, TenantPortalEvents {
9
10
  onBeforeChangeModule?: (key: GuardModuleType, initData?: any) => boolean | Promise<boolean>;
10
11
  }
11
12
  export declare const guardEventsFilter: (props: any, multipleInstance?: {
@@ -1,16 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import './styles.less';
3
- /** 租户门户选择状态机返回数据类型 */
4
- export interface TenantPortalSelectType {
5
- title: string;
6
- description: string;
7
- logo: string;
8
- list: {
9
- tenantName: string;
10
- tenantId: string;
11
- tenantLogo: string;
12
- host: string;
13
- userName: string;
14
- }[];
15
- }
16
3
  export declare const GuardTenantPortalSelectView: () => JSX.Element;
@@ -0,0 +1,33 @@
1
+ /// <reference types="react" />
2
+ import { AvatarProps } from 'antd/lib/avatar';
3
+ import { AuthenticationClient, IG2Events, User } from '../Type';
4
+ export interface TenantPortalListType {
5
+ tenantName: string;
6
+ tenantId: string;
7
+ tenantLogo: string;
8
+ host: string;
9
+ description: string;
10
+ /** 是否为用户池 */
11
+ isUserPool: boolean;
12
+ userName?: string;
13
+ }
14
+ export interface TenantPortalSelectType extends Omit<TenantPortalListType, 'userName'> {
15
+ }
16
+ /** 租户门户选择状态机返回数据类型 */
17
+ export interface TenantPortalDataType {
18
+ title: string;
19
+ description: string;
20
+ logo: string;
21
+ list: TenantPortalListType[];
22
+ }
23
+ export interface TenantPortalDataItem extends TenantPortalListType {
24
+ avatar?: AvatarProps;
25
+ extra?: React.ReactNode;
26
+ title?: string;
27
+ }
28
+ /** 租户门户相关事件 */
29
+ export interface TenantPortalEvents extends IG2Events {
30
+ onLogin?: (user: User, authClient: AuthenticationClient) => void;
31
+ /** 租户门户选择回调 */
32
+ onTenantSelect?: (data?: TenantPortalSelectType) => void;
33
+ }
@@ -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): boolean;
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";
1
+ declare const _default: "4.3.2-tn.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.