@authing/guard-shim-react18 4.5.47-alpha.8 → 4.5.47-alpha.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.
@@ -8,7 +8,6 @@
8
8
  * 再次打开页面时,初始化时先根据 FE 自定义的 LoginWay 跳转到不同的 tab 下(way)下使用 account 进行回填。TODO: 这里也可优化,应该在登录成功时候就进行 LoginWay 的格式化,而非转来转去。(但是这样无法直观的体现是哪种方式进行登录)
9
9
  */
10
10
  import { SelectOptions } from '../../../Login/multipleAccounts/panel';
11
- export declare const LAST_USED_IDP = "__authing_last_used_idp__";
12
11
  export declare const QR_CODE_WAY: LoginWay[];
13
12
  /**
14
13
  * 登录时所有支持的登录列表(前端定义列表)
@@ -118,7 +117,6 @@ declare class MultipleAccount {
118
117
  private memberState;
119
118
  /**
120
119
  * 二维码登录时的ID
121
- *「loginWay = "social"」社会化身份源登录时 其 id 表示为「唯一标识」
122
120
  */
123
121
  private qrCodeId?;
124
122
  /**
@@ -139,10 +137,6 @@ declare class MultipleAccount {
139
137
  * 是否开启国际化短信
140
138
  */
141
139
  private isInternationSms?;
142
- /**
143
- * 社会化登录列表 主要是为了做「置顶上次登录」
144
- */
145
- private socialLoginWays?;
146
140
  constructor();
147
141
  /**
148
142
  * 页面首次加载时初始化 Store
@@ -244,7 +238,6 @@ declare class MultipleAccount {
244
238
  * 外部暴露方法
245
239
  */
246
240
  getStore: () => {
247
- getSocialLoginWays: () => User[] | undefined;
248
241
  initStore: (appId: string, options: {
249
242
  serverSideLoginMethods: LoginWay[];
250
243
  isInternationSms: boolean;
@@ -289,7 +282,6 @@ declare const useSelectAccounts: ({ appId, finallyConfig }: {
289
282
  finallyConfig?: any;
290
283
  }) => {
291
284
  instance: {
292
- getSocialLoginWays: () => User[] | undefined;
293
285
  initStore: (appId: string, options: {
294
286
  serverSideLoginMethods: LoginWay[];
295
287
  isInternationSms: boolean;
@@ -27,7 +27,6 @@ declare function useLoginAccountBackFill(options: {
27
27
  declare function useLoginSelectAccount(setLoginWay: React.Dispatch<any>): {
28
28
  isMultipleAccount: boolean;
29
29
  multipleInstance: {
30
- getSocialLoginWays: () => import("../../Guard/core/hooks/useMultipleAccounts").User[] | undefined;
31
30
  initStore: (appId: string, options: {
32
31
  serverSideLoginMethods: LoginWay[];
33
32
  isInternationSms: boolean;
@@ -62,7 +61,7 @@ declare function useLoginSelectAccount(setLoginWay: React.Dispatch<any>): {
62
61
  getOriginAccount: () => string;
63
62
  getOriginWay: () => string;
64
63
  } | undefined;
65
- referMultipleState: ((type: "login" | "multiple") => void) | undefined;
64
+ referMultipleState: ((type: "multiple" | "login") => void) | undefined;
66
65
  backfillData: BackFillMultipleState | undefined;
67
66
  defaultQrWay: string | undefined;
68
67
  };
@@ -1,5 +1 @@
1
- import { ApplicationConfig } from '../../../Type/application';
2
1
  export declare const IdpButton: (props: any) => JSX.Element | null;
3
- export declare const MoreIdpButton: (props: {
4
- idps: ApplicationConfig['identityProviders'];
5
- }) => JSX.Element;
@@ -8,6 +8,7 @@ interface BindPasskeyProps {
8
8
  interface VerifyPasskeyProps {
9
9
  mfaToken: string;
10
10
  mfaLogin: (code: any, data: any, message?: string) => void;
11
+ mfaConfigsMap: Map<MFAType, boolean>;
11
12
  }
12
13
  export type MFAPasskeyProps = BindPasskeyProps & VerifyPasskeyProps & {
13
14
  passkeyEnabled: boolean;
@@ -285,12 +285,9 @@ export interface ApplicationConfig {
285
285
  protocol: Protocol;
286
286
  displayName: string;
287
287
  logo: string;
288
- id: string;
289
288
  config: ISamlConnectionConfig | OIDCConnectionConfig | ICasConnectionConfig | IAzureAdConnectionConfig | IOAuthConnectionConfig;
290
289
  /** 是否开启内嵌模式 */
291
290
  embedded?: boolean;
292
- tags?: string[];
293
- tagsStatus?: boolean;
294
291
  }[];
295
292
  ssoPageComponentDisplay: {
296
293
  autoRegisterThenLoginHintInfo: boolean;
@@ -314,11 +311,6 @@ export interface ApplicationConfig {
314
311
  ad?: LoginTypeI18nProps;
315
312
  ldap?: LoginTypeI18nProps;
316
313
  };
317
- idpLayout?: {
318
- maxConns: number;
319
- topLastUsed: boolean;
320
- customMoreI18n: I18nLang;
321
- };
322
314
  };
323
315
  protocol: Protocol;
324
316
  oidcConfig: OidcClientMetadata;
@@ -111,7 +111,6 @@ export declare const useGuardAccountSelectInstance: () => {
111
111
  * 多账号 store 实例
112
112
  */
113
113
  instance?: {
114
- getSocialLoginWays: () => import("../Guard/core/hooks/useMultipleAccounts").User[] | undefined;
115
114
  initStore: (appId: string, options: {
116
115
  serverSideLoginMethods: import("../Guard/core/hooks/useMultipleAccounts").LoginWay[];
117
116
  isInternationSms: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authing/guard-shim-react18",
3
- "version": "4.5.47-alpha.8",
3
+ "version": "4.5.47-alpha.9",
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",