@authing/guard-shim-react18 4.5.40-hep.0 → 4.5.40

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.
@@ -9,4 +9,3 @@ export declare const GuardCompleteInfo: React.FC<{
9
9
  }>;
10
10
  export declare const GuardLoginCompleteInfoView: React.FC;
11
11
  export declare const GuardRegisterCompleteInfoView: React.FC;
12
- export declare const GuardAccountMergeCompleteInfoView: React.FC;
@@ -7,15 +7,11 @@ export interface CompleteInfoEvents extends IG2Events {
7
7
  onRegisterInfoCompleted?: (user: User, udfs: {
8
8
  key: any;
9
9
  value: any;
10
- }[], authClient: AuthenticationClient, opts?: {
11
- phone?: string;
12
- canMergeUser?: boolean;
13
- }) => void;
10
+ }[], authClient: AuthenticationClient) => void;
14
11
  onRegisterInfoCompletedError?: (error: CommonMessage, udfs: {
15
12
  key: any;
16
13
  value: any;
17
14
  }[], authClient: AuthenticationClient) => void;
18
- onAccountMergeCompleteInfo?: (user: User) => void;
19
15
  }
20
16
  export interface GuardCompleteInfoProps extends IG2FCProps, CompleteInfoEvents {
21
17
  config: Partial<CompleteInfoConfig>;
@@ -59,7 +55,6 @@ export interface CompleteInfoMetaData {
59
55
  name: string;
60
56
  required: boolean;
61
57
  validateRules: CompleteInfoRule[];
62
- checkUnique?: boolean;
63
58
  options?: CompleteInfoSelectOption[];
64
59
  }
65
60
  export declare enum CompleteInfoBaseControls {
@@ -78,8 +73,7 @@ export declare enum CompleteInfoExtendsControls {
78
73
  STRING = "string",
79
74
  TEXT = "text",
80
75
  GENDER = "gender",
81
- COUNTRY = "country",
82
- TREE = "tree"
76
+ COUNTRY = "country"
83
77
  }
84
78
  export interface CompleteInfoInitData {
85
79
  skip: boolean;
@@ -26,10 +26,6 @@ export declare enum GuardModuleType {
26
26
  New_SUBMIT_SUCCESS = "newSubmitSuccess",// 提交成功展示页
27
27
  SELECT_ACCOUNT_2_LOGIN = "selectAccout2Login",// 选择登录身份
28
28
  RESET_ACCOUNT_NAME = "resetAccountName",
29
- /** 高教社特殊节点 */
30
- CUSTOM_COMPLETE_INFO = "customCompleteInfo",
31
- ACCOUNT_MERGE = "accountMerge",
32
- /**-------------- */
33
29
  APPLY_INVITATION = "applyInvitation",
34
30
  MESSAGE = "message",
35
31
  INVITE_AUTH = "inviteAuth",
@@ -39,7 +39,7 @@ declare function useLoginSelectAccount(setLoginWay: React.Dispatch<any>): {
39
39
  id: string;
40
40
  loginAccount?: string | undefined;
41
41
  usertype?: string | undefined;
42
- }, "tab" | "way" | "phoneCountryCode">) => void;
42
+ }, "way" | "tab" | "phoneCountryCode">) => void;
43
43
  setLoginWayByHttpData: (account: string, data: {
44
44
  username?: string | undefined;
45
45
  phone?: string | undefined;
@@ -61,7 +61,7 @@ declare function useLoginSelectAccount(setLoginWay: React.Dispatch<any>): {
61
61
  getOriginAccount: () => string;
62
62
  getOriginWay: () => string;
63
63
  } | undefined;
64
- referMultipleState: ((type: "multiple" | "login") => void) | undefined;
64
+ referMultipleState: ((type: "login" | "multiple") => void) | undefined;
65
65
  backfillData: BackFillMultipleState | undefined;
66
66
  defaultQrWay: string | undefined;
67
67
  };
@@ -6,6 +6,7 @@ export interface SendCodeByPhoneProps extends InputProps {
6
6
  data?: string;
7
7
  form?: any;
8
8
  onSendCodeBefore?: any;
9
+ onSendCodeAfter?: any;
9
10
  fieldName?: string;
10
11
  autoSubmit?: boolean;
11
12
  scene: SceneType;
@@ -53,7 +53,7 @@ export declare const useFetchConsoleConfig: (forceUpdate: number, appId?: string
53
53
  loginMethods?: LoginMethods[] | undefined;
54
54
  passwordLoginMethods?: string[] | undefined;
55
55
  socialConnections?: import("../../Type").SocialConnectionProvider[] | undefined;
56
- socialConnectionsBtnShape?: "button" | "icon" | "default" | undefined;
56
+ socialConnectionsBtnShape?: "button" | "default" | "icon" | undefined;
57
57
  enterpriseConnections?: string[] | undefined;
58
58
  qrCodeScanOptions?: {
59
59
  extIdpConnId?: string | undefined;
@@ -123,7 +123,7 @@ export declare const useGuardAccountSelectInstance: () => {
123
123
  id: string;
124
124
  loginAccount?: string | undefined;
125
125
  usertype?: string | undefined;
126
- }, "tab" | "way" | "phoneCountryCode">) => void;
126
+ }, "way" | "tab" | "phoneCountryCode">) => void;
127
127
  setLoginWayByHttpData: (account: string, data: {
128
128
  username?: string | undefined;
129
129
  phone?: string | undefined;
@@ -33,8 +33,7 @@ export declare function isObject(item: any): any;
33
33
  */
34
34
  export declare function deepMerge<T extends object = any>(target: T, ...sources: any[]): T;
35
35
  /**
36
- * 在托管页下上传query中指定的用户自定义字段进行补全
37
- * @param params 指定上传的用户自定义字段
36
+ * @description 在托管页下上传query.login_page_context中指定的用户自定义字段进行补全(/oidc/auth发起的认证只会携带 login_page_context)
38
37
  */
39
38
  export declare const getUserRegisterParams: () => {
40
39
  key: string;
@@ -58,10 +57,8 @@ export declare const getPasswordValidateRules: (strength?: PasswordStrength, cus
58
57
  export declare const sleep: (delay: number) => Promise<unknown>;
59
58
  export declare const shoudGoToComplete: (user: User, contextType: ComplateFiledsPlace, config: ApplicationConfig | undefined, autoRegister?: boolean) => boolean;
60
59
  export declare const transformMethod: (method: RegisterMethods | string) => string;
61
- export declare const transformSortMethod: (method: RegisterSortMethods | string) => string;
62
60
  export declare const mailDesensitization: (mail: string) => string;
63
61
  export declare const phoneDesensitization: (phone: string) => string;
64
- export declare const getHundreds: (num: number) => number;
65
62
  export declare const GuardPropsFilter: (pre: GuardProps, current: GuardProps) => boolean;
66
63
  export declare const getDocumentNode: (node: Node & ParentNode) => Document;
67
64
  export declare const getLoginTypePipe: (publicConfig: ApplicationConfig, registerMethod: RegisterMethods) => {
@@ -77,7 +74,6 @@ export declare const regexFromString: (string: string) => RegExp | null;
77
74
  export declare const getI18nLabel: (method: string | RegisterSortMethods, i18nFields: Map<string, TabFieldsI18nItem>, defaultLanguageConfig: Lang) => string;
78
75
  export declare const getSortLabels: (methods: string[], i18nConfig: Map<string, TabFieldsI18nItem>, defaultLanguageConfig: Lang) => string;
79
76
  export declare const getSortTabs: (tabs: string[], tab?: string) => string[];
80
- export declare const getPhoneInLoginPageContext: () => any;
81
77
  export declare const isDisabled: (values: Record<string, any>, requireNames?: string[]) => boolean;
82
78
  export declare const isWeComOrigin: (event: MessageEvent) => boolean;
83
79
  export declare const isDingTalkOrigin: (origin: string) => boolean;
@@ -6,5 +6,4 @@ export interface InitGuardI18nOptions {
6
6
  }
7
7
  export declare const fallbackLng: (code?: string) => string[];
8
8
  export declare const initGuardI18n: (options: InitGuardI18nOptions, callback: React.Dispatch<React.SetStateAction<boolean>>) => Promise<void>;
9
- export declare const resolvedLanguage: string;
10
9
  export { i18n };
@@ -17,12 +17,11 @@ export declare enum ApiCode {
17
17
  FLOW_END = 1600,
18
18
  FIRST_LOGIN_PASSWORD = 1639,
19
19
  FORCED_PASSWORD_RESET = 2058,
20
- ACCOUNT_MERGE = 10000,
21
20
  UNSAFE_PASSWORD_TIP = 2061,
22
21
  UNSAFE_PASSWORD_RESET = 2071,
23
22
  FLOW_SELECT_ACCOUNT = 2921,
24
- SELECT_ACCOUNT_2_LOGIN = 2930,
25
23
  TENANT_PORTAL = 1644,
24
+ SELECT_ACCOUNT_2_LOGIN = 2930,
26
25
  RESET_ACCOUNT_NAME = 1108,// 用户名重复
27
26
  INVITE_EXPIRE = 4032,// 链接过期
28
27
  INVITE_PAGE_EXPIRE = 4033
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authing/guard-shim-react18",
3
- "version": "4.5.40-hep.0",
3
+ "version": "4.5.40",
4
4
  "description": "Guard shim for react 18, only be used to internal",
5
5
  "types": "dist/typings/src/index.d.ts",
6
6
  "module": "dist/guard.min.js",
@@ -14,7 +14,7 @@
14
14
  "release:alpha": "npm publish --verbose --tag=alpha --access public"
15
15
  },
16
16
  "peerDependencies": {
17
- "authing-js-sdk": "^4.23.44"
17
+ "authing-js-sdk": "4.23.50"
18
18
  },
19
19
  "author": "https://github.com/authing",
20
20
  "license": "MIT"
@@ -1,5 +0,0 @@
1
- import { React } from 'shim-react';
2
- import { UserRadioItemProps, UserRadioProps } from './interface';
3
- import './styles.less';
4
- export declare const UserRadioItem: React.FC<UserRadioItemProps>;
5
- export declare const UserRadio: React.FC<UserRadioProps>;
@@ -1,3 +0,0 @@
1
- import { React } from 'shim-react';
2
- import './styles.less';
3
- export declare const GuardAccountMergeView: React.FC;
@@ -1,27 +0,0 @@
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
- }
@@ -1,3 +0,0 @@
1
- import { User } from 'authing-js-sdk';
2
- export declare const getDisplayName: (user: User) => string;
3
- export declare const getDisplayNameByEmail: (displayName: string) => string;
@@ -1,11 +0,0 @@
1
- import { React } from 'shim-react';
2
- export 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;