@authing/guard-shim-react 4.5.9-alpha.2 → 4.5.9

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.
@@ -42,6 +42,7 @@ export declare const GuardEventsCamelToKebabMapping: {
42
42
  readonly onLangChange: "lang-change";
43
43
  readonly onBeforeChangeModule: "before-change-module";
44
44
  readonly onAfterChangeModule: "after-change-module";
45
+ readonly onTenantSelect: "tenant-select";
45
46
  };
46
47
  export interface GuardEventsKebabToCamelType {
47
48
  load: GuardEvents['onLoad'];
@@ -66,5 +67,6 @@ export interface GuardEventsKebabToCamelType {
66
67
  'lang-change': GuardEvents['onLangChange'];
67
68
  'before-change-module': GuardEvents['onBeforeChangeModule'];
68
69
  'after-change-module': GuardEvents['onAfterChangeModule'];
70
+ 'tenant-select': GuardEvents['onTenantSelect'];
69
71
  }
70
72
  export {};
@@ -24,7 +24,6 @@ export interface GuardSelectProps<T = any> extends ListProps<any> {
24
24
  /** 数据源 */
25
25
  dataSource: T[];
26
26
  onSelect?: (item?: T, index?: number) => void;
27
- isNewStyle?: boolean;
28
27
  }
29
28
  /** 选择列表组件 兼容绝大多数选择场景 */
30
29
  export declare const GuardSelect: <D extends GuardSelectItem = any>(props: GuardSelectProps<D>) => JSX.Element;
@@ -23,7 +23,6 @@ export interface TenantPortalDataItem extends TenantPortalListType {
23
23
  avatar?: AvatarProps;
24
24
  extra?: React.ReactNode;
25
25
  title?: string;
26
- isJoin?: boolean;
27
26
  }
28
27
  /** 租户门户相关事件 */
29
28
  export interface TenantPortalEvents extends IG2Events {
@@ -31,26 +30,3 @@ export interface TenantPortalEvents extends IG2Events {
31
30
  /** 租户门户选择回调 */
32
31
  onTenantSelect?: (data?: TenantPortalSelectType) => void;
33
32
  }
34
- export declare type TenantView = 'default' | 'join' | 'create';
35
- export interface TenantButtonProps {
36
- className?: string;
37
- onClick?: () => void;
38
- style?: React.CSSProperties;
39
- icon: string;
40
- text: string;
41
- }
42
- export interface BackProps {
43
- onBack: () => void;
44
- }
45
- export interface CreateTenantProps extends BackProps {
46
- }
47
- export interface JoinTenantProps extends BackProps {
48
- }
49
- export declare enum JoinTenantStepEnum {
50
- InputTenantCode = "inputTenantCode",
51
- InputEnterpriseEmail = "inputEnterpriseEmail",
52
- VerifyEmailCode = "verifyEmailCode",
53
- NoEnterpriseDomain = "noEnterpriseDomain",
54
- JoinSuccess = "joinSuccess",
55
- JoinFailed = "joinFailed"
56
- }
@@ -350,8 +350,5 @@ export interface ApplicationConfig {
350
350
  appRobotVerify: 'always_enable' | 'disable' | 'condition_set';
351
351
  /** 用户池的人机验证策略,始终开启、不开启、设置条件触发 */
352
352
  userpoolRobotVerify: 'always_enable' | 'disable' | 'condition_set';
353
- /** 加入租户校验企业邮箱 */
354
- enableVerifyDomainInJoinTenant: boolean;
355
353
  passkeyEnabled: boolean;
356
- defaultAppId: string;
357
354
  }
@@ -12,7 +12,6 @@ export declare enum ApiCode {
12
12
  MFA = 1635,
13
13
  ABORT_FLOW = 1699,
14
14
  COMPLETE_INFO = 1642,
15
- TENANT_COMPLETE_INFO = 1645,
16
15
  UNLOCK = 1643,
17
16
  FLOW_END = 1600,
18
17
  FIRST_LOGIN_PASSWORD = 1639,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authing/guard-shim-react",
3
- "version": "4.5.9-alpha.2",
3
+ "version": "4.5.9",
4
4
  "description": "Guard shim for react 16 / 17, only be used to internal",
5
5
  "types": "dist/typings/src/index.d.ts",
6
6
  "module": "dist/guard.min.js",
@@ -1,4 +0,0 @@
1
- import { React } from 'shim-react';
2
- import { TenantButtonProps } from '../interface';
3
- import '../styles.less';
4
- export declare const CreateButton: React.FC<TenantButtonProps>;
@@ -1,8 +0,0 @@
1
- import { React } from 'shim-react';
2
- interface Props {
3
- email: string;
4
- setSent: (sent: boolean) => void;
5
- onFinish: () => void;
6
- }
7
- export declare const InputEmailCode: React.FC<Props>;
8
- export {};
@@ -1,4 +0,0 @@
1
- import { React } from 'shim-react';
2
- import { TenantButtonProps } from '../interface';
3
- import '../styles.less';
4
- export declare const ActionButton: React.FC<TenantButtonProps>;
@@ -1,6 +0,0 @@
1
- export declare enum TenantBusinessAction {
2
- JoinTenant = "join-tenant-portal",
3
- CreateTenant = "create-tenant-portal"
4
- }
5
- export declare const authFlow: (action: TenantBusinessAction, content: any) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
6
- export declare const getTenantInfoByCode: (code: string) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
@@ -1,4 +0,0 @@
1
- import { React } from 'shim-react';
2
- import { CreateTenantProps } from '../interface';
3
- import '../styles.less';
4
- export declare const CreateTenantView: React.FC<CreateTenantProps>;
@@ -1,4 +0,0 @@
1
- import { React } from 'shim-react';
2
- import { JoinTenantProps } from '../interface';
3
- import '../styles.less';
4
- export declare const JoinTenantView: React.FC<JoinTenantProps>;