@authing/guard-shim-react18 4.5.40-ey.0 → 4.5.40-ey.2

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.
@@ -2,8 +2,8 @@ import './index.less';
2
2
  export * from 'antd';
3
3
  export * from '@ant-design/icons';
4
4
  export declare const antdLocales: {
5
- zhCN: import("shim-antd/lib/locale-provider").Locale;
6
- enUS: import("shim-antd/lib/locale-provider").Locale;
7
- jaJP: import("shim-antd/lib/locale-provider").Locale;
8
- zhTW: import("shim-antd/lib/locale-provider").Locale;
5
+ zhCN: import("antd/lib/locale-provider").Locale;
6
+ enUS: import("antd/lib/locale-provider").Locale;
7
+ jaJP: import("antd/lib/locale-provider").Locale;
8
+ zhTW: import("antd/lib/locale-provider").Locale;
9
9
  };
@@ -4,5 +4,5 @@ export declare enum CompleteInfoAuthFlowAction {
4
4
  Skip = "skip-completion"
5
5
  }
6
6
  export declare const authFlow: (action: CompleteInfoAuthFlowAction, data?: CompleteInfoRequest) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
7
- export declare const registerSkipMethod: (fnName: RegisterCompleteInfoInitData["businessRequestName"] | string, content: any) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
8
- export declare const registerRequest: (action: CompleteInfoAuthFlowAction, registerFnName: RegisterCompleteInfoInitData["businessRequestName"], registerContent: any, registerProfile?: any) => Promise<import("../_utils/http").AuthingGuardResponse<any> | undefined>;
7
+ export declare const registerSkipMethod: (fnName: RegisterCompleteInfoInitData['businessRequestName'] | string, content: any) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
8
+ export declare const registerRequest: (action: CompleteInfoAuthFlowAction, registerFnName: RegisterCompleteInfoInitData['businessRequestName'], registerContent: any, registerProfile?: any) => Promise<import("../_utils/http").AuthingGuardResponse<any> | undefined>;
@@ -2,21 +2,21 @@ import { User } from 'authing-js-sdk';
2
2
  import { CompleteInfoMetaData, CompleteInfoRequest, ExtendsField } from './interface';
3
3
  import { ApplicationConfig } from '../Type/application';
4
4
  export declare const completeFieldsFilter: (user: User, field: ExtendsField) => boolean;
5
- export declare const extendsFieldsToMetaData: (extendsFields: ApplicationConfig["extendsFields"] | undefined, selectOptions: {
5
+ export declare const extendsFieldsToMetaData: (extendsFields: import("../Type/application").ExtendsField[] | undefined, selectOptions: {
6
6
  key: string;
7
7
  options: {
8
8
  value: string;
9
9
  label: string;
10
10
  }[];
11
11
  }[]) => CompleteInfoMetaData[];
12
- export declare const eyFieldValuesToRegisterProfile: (extendsFields: ApplicationConfig["extendsFields"], fieldValues?: CompleteInfoRequest["fieldValues"]) => {
12
+ export declare const eyFieldValuesToRegisterProfile: (extendsFields: ApplicationConfig['extendsFields'], fieldValues?: CompleteInfoRequest['fieldValues']) => {
13
13
  registerProfile: Record<string, any>;
14
14
  udf: {
15
15
  key: string;
16
16
  value: string;
17
17
  }[];
18
18
  };
19
- export declare const fieldValuesToRegisterProfile: (extendsFields: ApplicationConfig["extendsFields"], fieldValues?: CompleteInfoRequest["fieldValues"]) => {
19
+ export declare const fieldValuesToRegisterProfile: (extendsFields: ApplicationConfig['extendsFields'], fieldValues?: CompleteInfoRequest['fieldValues']) => {
20
20
  registerProfile: Record<string, any>;
21
21
  udf: {
22
22
  key: string;
@@ -242,7 +242,7 @@ declare class MultipleAccount {
242
242
  serverSideLoginMethods: LoginWay[];
243
243
  isInternationSms: boolean;
244
244
  }) => void;
245
- setLoginWay: (tab: "input" | "qrcode", way: LoginWay, id?: string, internation?: {
245
+ setLoginWay: (tab: 'input' | 'qrcode', way: LoginWay, id?: string, internation?: {
246
246
  phoneCountryCode: string;
247
247
  areaCode: string;
248
248
  }) => void;
@@ -250,7 +250,7 @@ declare class MultipleAccount {
250
250
  id: string;
251
251
  loginAccount?: string;
252
252
  usertype?: string;
253
- }, "way" | "tab" | "phoneCountryCode">) => void;
253
+ }, 'way' | 'tab' | 'phoneCountryCode'>) => void;
254
254
  setLoginWayByHttpData: (account: string, data: {
255
255
  username?: string;
256
256
  phone?: string;
@@ -286,7 +286,7 @@ declare const useSelectAccounts: ({ appId, finallyConfig }: {
286
286
  serverSideLoginMethods: LoginWay[];
287
287
  isInternationSms: boolean;
288
288
  }) => void;
289
- setLoginWay: (tab: "input" | "qrcode", way: LoginWay, id?: string, internation?: {
289
+ setLoginWay: (tab: 'input' | 'qrcode', way: LoginWay, id?: string, internation?: {
290
290
  phoneCountryCode: string;
291
291
  areaCode: string;
292
292
  }) => void;
@@ -294,7 +294,7 @@ declare const useSelectAccounts: ({ appId, finallyConfig }: {
294
294
  id: string;
295
295
  loginAccount?: string;
296
296
  usertype?: string;
297
- }, "way" | "tab" | "phoneCountryCode">) => void;
297
+ }, 'way' | 'tab' | 'phoneCountryCode'>) => void;
298
298
  setLoginWayByHttpData: (account: string, data: {
299
299
  username?: string;
300
300
  phone?: string;
@@ -317,7 +317,7 @@ declare const useSelectAccounts: ({ appId, finallyConfig }: {
317
317
  getOriginWay: () => string;
318
318
  } | undefined;
319
319
  isMultipleAccount: boolean;
320
- referMultipleState: (type: "login" | "multiple", data?: BackFillMultipleState) => void;
320
+ referMultipleState: (type: 'login' | 'multiple', data?: BackFillMultipleState) => void;
321
321
  multipleAccountData: BackFillMultipleState | undefined;
322
322
  clearBackFillData: () => void;
323
323
  };
@@ -29,7 +29,7 @@ export declare enum IdentityBindingAction {
29
29
  export declare const PhoneCode: (params: PhoneCodeParams) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
30
30
  export declare const EmailCode: (params: EmailCodeParams) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
31
31
  export declare const Password: (params: PasswordParams) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
32
- export declare const useIdentityBindingBusinessRequest: (type?: "register" | "bind") => {
32
+ export declare const useIdentityBindingBusinessRequest: (type?: 'register' | 'bind') => {
33
33
  "phone-code": (params: PhoneCodeParams) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
34
34
  "emial-code": (params: EmailCodeParams) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
35
35
  password: (params: PasswordParams) => Promise<import("../_utils/http").AuthingGuardResponse<any>>;
@@ -31,24 +31,24 @@ declare function useLoginSelectAccount(setLoginWay: React.Dispatch<any>): {
31
31
  serverSideLoginMethods: LoginWay[];
32
32
  isInternationSms: boolean;
33
33
  }) => void;
34
- setLoginWay: (tab: "input" | "qrcode", way: LoginWay, id?: string, internation?: {
34
+ setLoginWay: (tab: "input" | "qrcode", way: LoginWay, id?: string | undefined, internation?: {
35
35
  phoneCountryCode: string;
36
36
  areaCode: string;
37
- }) => void;
37
+ } | undefined) => void;
38
38
  setUserInfo: (user: Omit<import("../../Guard/core/hooks/useMultipleAccounts").User & {
39
39
  id: string;
40
- loginAccount?: string;
41
- usertype?: string;
40
+ loginAccount?: string | undefined;
41
+ usertype?: string | undefined;
42
42
  }, "way" | "tab" | "phoneCountryCode">) => void;
43
43
  setLoginWayByHttpData: (account: string, data: {
44
- username?: string;
45
- phone?: string;
46
- email?: string;
44
+ username?: string | undefined;
45
+ phone?: string | undefined;
46
+ email?: string | undefined;
47
47
  }) => void;
48
48
  setLoginWayByLDAPData: (account: string, data: {
49
- name?: string;
50
- phone?: string;
51
- email?: string;
49
+ name?: string | undefined;
50
+ phone?: string | undefined;
51
+ email?: string | undefined;
52
52
  }) => void;
53
53
  getMemoUser: (excludeWays?: LoginWay[]) => import("../multipleAccounts/panel").SelectOptions[];
54
54
  getMemoSingleUser: (id: string) => {
@@ -39,6 +39,6 @@ interface WorkQrCodeProps extends Omit<UiQrProps, 'description' | 'status'> {
39
39
  }
40
40
  declare const WorkQrCode: React.ForwardRefExoticComponent<WorkQrCodeProps & React.RefAttributes<any>>;
41
41
  declare const WorkGeneQrCode: React.ForwardRefExoticComponent<WorkQrCodeProps & {
42
- authorizationUrl?: string;
42
+ authorizationUrl?: string | undefined;
43
43
  } & React.RefAttributes<any>>;
44
44
  export { WorkQrCode, WorkGeneQrCode };
@@ -1 +1 @@
1
- export declare const useIsChangeComplete: (currentMode: "phone" | "email" | string) => boolean;
1
+ export declare const useIsChangeComplete: (currentMode: 'phone' | 'email' | string) => boolean;
@@ -19,47 +19,91 @@ export declare const useMergeDefaultConfig: (defaultConfig: GuardLocalConfig, co
19
19
  export declare const useFetchConsoleConfig: (forceUpdate: number, appId?: string, config?: GuardLocalConfig, httpClient?: GuardHttp, setError?: any) => {
20
20
  finallyConfig: {
21
21
  host: string;
22
- isInvited?: boolean;
23
- isSSO?: boolean;
24
- defaultScenes?: import("../..").GuardModuleType;
22
+ isInvited?: boolean | undefined;
23
+ isSSO?: boolean | undefined;
24
+ defaultScenes?: import("../..").GuardModuleType | undefined;
25
25
  defaultInitData?: any;
26
- showLoading?: boolean;
26
+ showLoading?: boolean | undefined;
27
27
  loadingComponent?: React.ReactNode;
28
- openEventsMapping?: boolean;
29
- disableRegister?: boolean;
30
- registerMethods?: string[];
31
- defaultRegisterMethod?: string;
32
- publicKey?: string;
33
- agreementEnabled?: boolean;
34
- agreements?: import("../../Type").Agreement[];
28
+ openEventsMapping?: boolean | undefined;
29
+ disableRegister?: boolean | undefined;
30
+ registerMethods?: string[] | undefined;
31
+ defaultRegisterMethod?: string | undefined;
32
+ publicKey?: string | undefined;
33
+ agreementEnabled?: boolean | undefined;
34
+ agreements?: import("../../Type").Agreement[] | undefined;
35
35
  registerContext?: any;
36
- title?: string;
37
- logo?: string;
38
- lang?: string;
39
- langRange?: import("../../Type").Lang[];
40
- isHost?: boolean;
36
+ title?: string | undefined;
37
+ logo?: string | undefined;
38
+ lang?: string | undefined;
39
+ langRange?: import("../../Type").Lang[] | undefined;
40
+ isHost?: boolean | undefined;
41
41
  mode: import("../../Type").GuardMode;
42
42
  clickCloseable: boolean;
43
43
  escCloseable: boolean;
44
- userpool?: string;
45
- contentCss?: string;
46
- target?: HTMLElement | string;
47
- style?: React.CSSProperties;
48
- __internalRequest__?: boolean;
49
- __singleComponent__?: boolean;
50
- __unAuthFlow__?: boolean;
51
- autoRegister?: boolean;
52
- disableResetPwd?: boolean;
53
- defaultLoginMethod?: LoginMethods;
54
- loginMethods?: LoginMethods[];
55
- passwordLoginMethods?: string[];
56
- socialConnections?: import("../../Type").SocialConnectionProvider[];
57
- socialConnectionsBtnShape?: "default" | "button" | "icon";
58
- enterpriseConnections?: string[];
59
- qrCodeScanOptions?: Parameters<import("authing-js-sdk/build/main/lib/authentication/QrCodeAuthenticationClient").QrCodeAuthenticationClient["startScanning"]>[1];
60
- _closeLoopCheckQrcode?: boolean;
61
- loginHint?: string;
62
- goBack?: null | (() => void);
44
+ userpool?: string | undefined;
45
+ contentCss?: string | undefined;
46
+ target?: string | HTMLElement | undefined;
47
+ style?: React.CSSProperties | undefined;
48
+ __internalRequest__?: boolean | undefined;
49
+ __singleComponent__?: boolean | undefined;
50
+ __unAuthFlow__?: boolean | undefined;
51
+ autoRegister?: boolean | undefined;
52
+ disableResetPwd?: boolean | undefined;
53
+ defaultLoginMethod?: LoginMethods | undefined;
54
+ loginMethods?: LoginMethods[] | undefined;
55
+ passwordLoginMethods?: string[] | undefined;
56
+ socialConnections?: import("../../Type").SocialConnectionProvider[] | undefined;
57
+ socialConnectionsBtnShape?: "button" | "default" | "icon" | undefined;
58
+ enterpriseConnections?: string[] | undefined;
59
+ qrCodeScanOptions?: {
60
+ extIdpConnId?: string | undefined;
61
+ autoExchangeUserInfo?: boolean | undefined;
62
+ size?: {
63
+ height: number;
64
+ width: number;
65
+ } | undefined;
66
+ containerSize?: {
67
+ height: number;
68
+ width: number;
69
+ } | undefined;
70
+ interval?: number | undefined;
71
+ onStart?: ((timer: any) => any) | undefined;
72
+ onResult?: ((data: import("authing-js-sdk/build/main/lib/authentication/types").QRCodeStatus) => any) | undefined;
73
+ onScanned?: ((userInfo: import("authing-js-sdk/build/main/lib/authentication/types").QRCodeUserInfo) => any) | undefined;
74
+ onSuccess?: ((userInfo: import("authing-js-sdk/build/main/lib/authentication/types").QRCodeUserInfo, ticket: string) => any) | undefined;
75
+ onCancel?: (() => any) | undefined;
76
+ onError?: ((message: string) => any) | undefined;
77
+ onExpired?: (() => any) | undefined;
78
+ onCodeShow?: ((random: string, url: string) => any) | undefined;
79
+ onCodeLoaded?: ((random: string, url: string) => any) | undefined;
80
+ onCodeLoadFailed?: ((message: string) => any) | undefined;
81
+ onCodeDestroyed?: ((random: string) => any) | undefined;
82
+ onRetry?: (() => any) | undefined;
83
+ onMfa?: ((code: number, message: string, data: Record<string, any>) => {}) | undefined;
84
+ tips?: {
85
+ title?: string | undefined;
86
+ scanned?: string | undefined;
87
+ succeed?: string | undefined;
88
+ canceled?: string | undefined;
89
+ expired?: string | undefined;
90
+ retry?: string | undefined;
91
+ failed?: string | undefined;
92
+ middleTitle?: string | undefined;
93
+ referText?: string | undefined;
94
+ } | undefined;
95
+ onAuthFlow?: ((flow: Record<string, any>) => {}) | undefined;
96
+ customData?: {
97
+ [x: string]: any;
98
+ } | undefined;
99
+ context?: {
100
+ [x: string]: any;
101
+ } | undefined;
102
+ withCustomData?: boolean | undefined;
103
+ } | undefined;
104
+ _closeLoopCheckQrcode?: boolean | undefined;
105
+ loginHint?: string | undefined;
106
+ goBack?: (() => void) | null | undefined;
63
107
  };
64
108
  guardPageConfig: GuardPageConfig;
65
109
  } | {
@@ -94,47 +94,93 @@ export declare const useGuardModule: () => {
94
94
  };
95
95
  export declare const useGuardFinallyConfig: () => {
96
96
  title: string;
97
- isInvited?: boolean;
98
- isSSO?: boolean;
99
- defaultScenes?: GuardModuleType;
97
+ isInvited?: boolean | undefined;
98
+ isSSO?: boolean | undefined;
99
+ defaultScenes?: GuardModuleType | undefined;
100
100
  defaultInitData?: any;
101
- showLoading?: boolean;
102
- loadingComponent?: ReactNode;
103
- openEventsMapping?: boolean;
104
- disableRegister?: boolean;
105
- registerMethods?: string[];
106
- defaultRegisterMethod?: string;
107
- publicKey?: string;
108
- agreementEnabled?: boolean;
109
- agreements?: import("../Type").Agreement[];
101
+ showLoading?: boolean | undefined;
102
+ loadingComponent?: React.ReactNode;
103
+ openEventsMapping?: boolean | undefined;
104
+ disableRegister?: boolean | undefined;
105
+ registerMethods?: string[] | undefined;
106
+ defaultRegisterMethod?: string | undefined;
107
+ publicKey?: string | undefined;
108
+ agreementEnabled?: boolean | undefined;
109
+ agreements?: import("../Type").Agreement[] | undefined;
110
110
  registerContext?: any;
111
- logo?: string;
112
- lang?: string;
113
- langRange?: Lang[];
111
+ logo?: string | undefined;
112
+ lang?: string | undefined;
113
+ langRange?: Lang[] | undefined;
114
114
  host: string;
115
- isHost?: boolean;
115
+ isHost?: boolean | undefined;
116
116
  mode: import("../Type").GuardMode;
117
117
  clickCloseable: boolean;
118
118
  escCloseable: boolean;
119
- userpool?: string;
120
- contentCss?: string;
121
- target?: HTMLElement | string;
122
- style?: React.CSSProperties;
123
- __internalRequest__?: boolean;
124
- __singleComponent__?: boolean;
125
- __unAuthFlow__?: boolean;
126
- autoRegister?: boolean;
127
- disableResetPwd?: boolean;
128
- defaultLoginMethod?: import("../Type").LoginMethods;
129
- loginMethods?: import("../Type").LoginMethods[];
130
- passwordLoginMethods?: string[];
131
- socialConnections?: import("../Type").SocialConnectionProvider[];
132
- socialConnectionsBtnShape?: "default" | "button" | "icon";
133
- enterpriseConnections?: string[];
134
- qrCodeScanOptions?: Parameters<import("authing-js-sdk/build/main/lib/authentication/QrCodeAuthenticationClient").QrCodeAuthenticationClient["startScanning"]>[1];
135
- _closeLoopCheckQrcode?: boolean;
136
- loginHint?: string;
137
- goBack?: null | (() => void);
119
+ userpool?: string | undefined;
120
+ contentCss?: string | undefined;
121
+ target?: string | HTMLElement | undefined;
122
+ style?: React.CSSProperties | undefined;
123
+ __internalRequest__?: boolean | undefined;
124
+ __singleComponent__?: boolean | undefined; /**
125
+ * 切换多账号 isMultipleAccount 状态
126
+ */
127
+ __unAuthFlow__?: boolean | undefined;
128
+ autoRegister?: boolean | undefined;
129
+ disableResetPwd?: boolean | undefined;
130
+ defaultLoginMethod?: import("../Type").LoginMethods | undefined;
131
+ loginMethods?: import("../Type").LoginMethods[] | undefined;
132
+ passwordLoginMethods?: string[] | undefined;
133
+ socialConnections?: import("../Type").SocialConnectionProvider[] | undefined;
134
+ socialConnectionsBtnShape?: "button" | "default" | "icon" | undefined;
135
+ enterpriseConnections?: string[] | undefined;
136
+ qrCodeScanOptions?: {
137
+ extIdpConnId?: string | undefined;
138
+ autoExchangeUserInfo?: boolean | undefined;
139
+ size?: {
140
+ height: number;
141
+ width: number;
142
+ } | undefined;
143
+ containerSize?: {
144
+ height: number;
145
+ width: number;
146
+ } | undefined;
147
+ interval?: number | undefined;
148
+ onStart?: ((timer: any) => any) | undefined;
149
+ onResult?: ((data: import("authing-js-sdk/build/main/lib/authentication/types").QRCodeStatus) => any) | undefined;
150
+ onScanned?: ((userInfo: import("authing-js-sdk/build/main/lib/authentication/types").QRCodeUserInfo) => any) | undefined;
151
+ onSuccess?: ((userInfo: import("authing-js-sdk/build/main/lib/authentication/types").QRCodeUserInfo, ticket: string) => any) | undefined;
152
+ onCancel?: (() => any) | undefined;
153
+ onError?: ((message: string) => any) | undefined;
154
+ onExpired?: (() => any) | undefined;
155
+ onCodeShow?: ((random: string, url: string) => any) | undefined;
156
+ onCodeLoaded?: ((random: string, url: string) => any) | undefined;
157
+ onCodeLoadFailed?: ((message: string) => any) | undefined;
158
+ onCodeDestroyed?: ((random: string) => any) | undefined;
159
+ onRetry?: (() => any) | undefined;
160
+ onMfa?: ((code: number, message: string, data: Record<string, any>) => {}) | undefined;
161
+ tips?: {
162
+ title?: string | undefined;
163
+ scanned?: string | undefined;
164
+ succeed?: string | undefined;
165
+ canceled?: string | undefined;
166
+ expired?: string | undefined;
167
+ retry?: string | undefined;
168
+ failed?: string | undefined;
169
+ middleTitle?: string | undefined;
170
+ referText?: string | undefined;
171
+ } | undefined;
172
+ onAuthFlow?: ((flow: Record<string, any>) => {}) | undefined;
173
+ customData?: {
174
+ [x: string]: any;
175
+ } | undefined;
176
+ context?: {
177
+ [x: string]: any;
178
+ } | undefined;
179
+ withCustomData?: boolean | undefined;
180
+ } | undefined;
181
+ _closeLoopCheckQrcode?: boolean | undefined;
182
+ loginHint?: string | undefined;
183
+ goBack?: (() => void) | null | undefined;
138
184
  };
139
185
  export declare const useGuardContextLoaded: () => boolean;
140
186
  export declare const useGuardIsAuthFlow: () => boolean;
@@ -151,19 +197,53 @@ export declare const useGuardAccountSelectInstance: () => {
151
197
  * when: 多账号页面跳转进入登录页面
152
198
  * 携带的回填数据信息
153
199
  */
154
- multipleAccountData?: BackFillMultipleState;
200
+ multipleAccountData?: BackFillMultipleState | undefined;
155
201
  /**
156
202
  * 多账号 store 实例
157
203
  */
158
- instance?: StoreInstance;
204
+ instance?: {
205
+ initStore: (appId: string, options: {
206
+ serverSideLoginMethods: import("../Guard/core/hooks/useMultipleAccounts").LoginWay[];
207
+ isInternationSms: boolean;
208
+ }) => void;
209
+ setLoginWay: (tab: "input" | "qrcode", way: import("../Guard/core/hooks/useMultipleAccounts").LoginWay, id?: string | undefined, internation?: {
210
+ phoneCountryCode: string;
211
+ areaCode: string;
212
+ } | undefined) => void;
213
+ setUserInfo: (user: Omit<import("../Guard/core/hooks/useMultipleAccounts").User & {
214
+ id: string;
215
+ loginAccount?: string | undefined;
216
+ usertype?: string | undefined;
217
+ }, "way" | "tab" | "phoneCountryCode">) => void;
218
+ setLoginWayByHttpData: (account: string, data: {
219
+ username?: string | undefined;
220
+ phone?: string | undefined;
221
+ email?: string | undefined;
222
+ }) => void;
223
+ setLoginWayByLDAPData: (account: string, data: {
224
+ name?: string | undefined;
225
+ phone?: string | undefined;
226
+ email?: string | undefined;
227
+ }) => void;
228
+ getMemoUser: (excludeWays?: import("../Guard/core/hooks/useMultipleAccounts").LoginWay[]) => import("../Login/multipleAccounts/panel").SelectOptions[];
229
+ getMemoSingleUser: (id: string) => {
230
+ way: import("../Guard/core/hooks/useMultipleAccounts").LoginWay;
231
+ account: string;
232
+ } | undefined;
233
+ delUserById: (id: string) => string;
234
+ getMemberState: () => boolean;
235
+ getFirstBackFillData: () => BackFillMultipleState | undefined;
236
+ getOriginAccount: () => string;
237
+ getOriginWay: () => string;
238
+ } | undefined;
159
239
  /**
160
240
  * 切换多账号 isMultipleAccount 状态
161
241
  */
162
- referMultipleState?: (type: "login" | "multiple") => void;
242
+ referMultipleState?: ((type: 'login' | 'multiple') => void) | undefined;
163
243
  /**
164
244
  * 清空回填数据
165
245
  */
166
- clearBackFillData?: () => void;
246
+ clearBackFillData?: (() => void) | undefined;
167
247
  };
168
248
  export declare const useGuardMultipleInstance: () => {
169
249
  /**
@@ -174,19 +254,53 @@ export declare const useGuardMultipleInstance: () => {
174
254
  * when: 多账号页面跳转进入登录页面
175
255
  * 携带的回填数据信息
176
256
  */
177
- multipleAccountData?: BackFillMultipleState;
257
+ multipleAccountData?: BackFillMultipleState | undefined;
178
258
  /**
179
259
  * 多账号 store 实例
180
260
  */
181
- instance?: StoreInstance;
261
+ instance?: {
262
+ initStore: (appId: string, options: {
263
+ serverSideLoginMethods: import("../Guard/core/hooks/useMultipleAccounts").LoginWay[];
264
+ isInternationSms: boolean;
265
+ }) => void;
266
+ setLoginWay: (tab: "input" | "qrcode", way: import("../Guard/core/hooks/useMultipleAccounts").LoginWay, id?: string | undefined, internation?: {
267
+ phoneCountryCode: string;
268
+ areaCode: string;
269
+ } | undefined) => void;
270
+ setUserInfo: (user: Omit<import("../Guard/core/hooks/useMultipleAccounts").User & {
271
+ id: string;
272
+ loginAccount?: string | undefined;
273
+ usertype?: string | undefined;
274
+ }, "way" | "tab" | "phoneCountryCode">) => void;
275
+ setLoginWayByHttpData: (account: string, data: {
276
+ username?: string | undefined;
277
+ phone?: string | undefined;
278
+ email?: string | undefined;
279
+ }) => void;
280
+ setLoginWayByLDAPData: (account: string, data: {
281
+ name?: string | undefined;
282
+ phone?: string | undefined;
283
+ email?: string | undefined;
284
+ }) => void;
285
+ getMemoUser: (excludeWays?: import("../Guard/core/hooks/useMultipleAccounts").LoginWay[]) => import("../Login/multipleAccounts/panel").SelectOptions[];
286
+ getMemoSingleUser: (id: string) => {
287
+ way: import("../Guard/core/hooks/useMultipleAccounts").LoginWay;
288
+ account: string;
289
+ } | undefined;
290
+ delUserById: (id: string) => string;
291
+ getMemberState: () => boolean;
292
+ getFirstBackFillData: () => BackFillMultipleState | undefined;
293
+ getOriginAccount: () => string;
294
+ getOriginWay: () => string;
295
+ } | undefined;
182
296
  /**
183
297
  * 切换多账号 isMultipleAccount 状态
184
298
  */
185
- referMultipleState?: (type: "login" | "multiple") => void;
299
+ referMultipleState?: ((type: 'login' | 'multiple') => void) | undefined;
186
300
  /**
187
301
  * 清空回填数据
188
302
  */
189
- clearBackFillData?: () => void;
303
+ clearBackFillData?: (() => void) | undefined;
190
304
  };
191
305
  export declare const useGuardPhoneRegex: () => RegExp | null;
192
306
  /**
@@ -200,4 +314,4 @@ export declare const useRobotVerify: () => "always_enable" | "disable" | "condit
200
314
  /** 当前用户池是否是国外用户池 */
201
315
  export declare const useIsForeignUserpool: () => boolean;
202
316
  /** 当前应用是否开启人机验证策略 */
203
- export declare const useCaptchaCheck: (sence: "login" | "register") => boolean;
317
+ export declare const useCaptchaCheck: (sence: 'login' | 'register') => boolean;
@@ -3,12 +3,12 @@ import { AxiosRequestConfig } from 'axios';
3
3
  export declare const requestClient: {
4
4
  (input: URL | RequestInfo, init?: RequestInit | undefined): Promise<any>;
5
5
  get<T>(path: string, query?: Record<string, any>, init?: AxiosRequestConfig): Promise<AuthingResponse<T>>;
6
- post<T>(path: string, data: any, config?: {
6
+ post<T_1>(path: string, data: any, config?: {
7
7
  headers: any;
8
- }): Promise<AuthingResponse<T>>;
9
- postForm<T>(path: string, formData: any, config?: {
8
+ }): Promise<AuthingResponse<T_1>>;
9
+ postForm<T_2>(path: string, formData: any, config?: {
10
10
  headers: any;
11
- }): Promise<AuthingResponse<T>>;
11
+ }): Promise<AuthingResponse<T_2>>;
12
12
  baseUrl: string;
13
13
  setBaseUrl(base: string): void;
14
14
  langHeader: string;
@@ -78,7 +78,7 @@ export declare const getSortLabels: (methods: string[], i18nConfig: Map<string,
78
78
  export declare const getSortTabs: (tabs: string[], tab?: string) => string[];
79
79
  export declare const isDisabled: (values: Record<string, any>, requireNames?: string[]) => boolean;
80
80
  export declare const isWeComOrigin: (event: MessageEvent) => boolean;
81
- export declare const isDingTalkOrigin: (origin: string) => origin is "https://login.dingtalk.com";
81
+ export declare const isDingTalkOrigin: (origin: string) => boolean;
82
82
  export * from './popupCenter';
83
83
  export * from './clipboard';
84
84
  export * from './locales';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authing/guard-shim-react18",
3
- "version": "4.5.40-ey.0",
3
+ "version": "4.5.40-ey.2",
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",