@authing/guard-shim-react18 4.5.47-alpha.2 → 4.5.47-alpha.4

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.
@@ -117,6 +117,7 @@ declare class MultipleAccount {
117
117
  private memberState;
118
118
  /**
119
119
  * 二维码登录时的ID
120
+ *「loginWay = "social"」社会化身份源登录时 其 id 表示为「唯一标识」
120
121
  */
121
122
  private qrCodeId?;
122
123
  /**
@@ -137,6 +138,10 @@ declare class MultipleAccount {
137
138
  * 是否开启国际化短信
138
139
  */
139
140
  private isInternationSms?;
141
+ /**
142
+ * 社会化登录列表 主要是为了做「置顶上次登录」
143
+ */
144
+ private socialLoginWays?;
140
145
  constructor();
141
146
  /**
142
147
  * 页面首次加载时初始化 Store
@@ -238,6 +243,7 @@ declare class MultipleAccount {
238
243
  * 外部暴露方法
239
244
  */
240
245
  getStore: () => {
246
+ getSocialLoginWays: () => User[] | undefined;
241
247
  initStore: (appId: string, options: {
242
248
  serverSideLoginMethods: LoginWay[];
243
249
  isInternationSms: boolean;
@@ -282,6 +288,7 @@ declare const useSelectAccounts: ({ appId, finallyConfig }: {
282
288
  finallyConfig?: any;
283
289
  }) => {
284
290
  instance: {
291
+ getSocialLoginWays: () => User[] | undefined;
285
292
  initStore: (appId: string, options: {
286
293
  serverSideLoginMethods: LoginWay[];
287
294
  isInternationSms: boolean;
@@ -27,6 +27,7 @@ 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;
30
31
  initStore: (appId: string, options: {
31
32
  serverSideLoginMethods: LoginWay[];
32
33
  isInternationSms: boolean;
@@ -1 +1,5 @@
1
+ import { ApplicationConfig } from '../../../Type/application';
1
2
  export declare const IdpButton: (props: any) => JSX.Element | null;
3
+ export declare const MoreIdpButton: (props: {
4
+ idps: ApplicationConfig['identityProviders'];
5
+ }) => JSX.Element;
@@ -285,9 +285,12 @@ export interface ApplicationConfig {
285
285
  protocol: Protocol;
286
286
  displayName: string;
287
287
  logo: string;
288
+ id: string;
288
289
  config: ISamlConnectionConfig | OIDCConnectionConfig | ICasConnectionConfig | IAzureAdConnectionConfig | IOAuthConnectionConfig;
289
290
  /** 是否开启内嵌模式 */
290
291
  embedded?: boolean;
292
+ tags?: string[];
293
+ tagsStatus?: boolean;
291
294
  }[];
292
295
  ssoPageComponentDisplay: {
293
296
  autoRegisterThenLoginHintInfo: boolean;
@@ -311,6 +314,11 @@ export interface ApplicationConfig {
311
314
  ad?: LoginTypeI18nProps;
312
315
  ldap?: LoginTypeI18nProps;
313
316
  };
317
+ idpLayout?: {
318
+ maxConns: number;
319
+ topLastUsed: boolean;
320
+ customMoreI18n: I18nLang;
321
+ };
314
322
  };
315
323
  protocol: Protocol;
316
324
  oidcConfig: OidcClientMetadata;
@@ -111,6 +111,7 @@ export declare const useGuardAccountSelectInstance: () => {
111
111
  * 多账号 store 实例
112
112
  */
113
113
  instance?: {
114
+ getSocialLoginWays: () => import("../Guard/core/hooks/useMultipleAccounts").User[] | undefined;
114
115
  initStore: (appId: string, options: {
115
116
  serverSideLoginMethods: import("../Guard/core/hooks/useMultipleAccounts").LoginWay[];
116
117
  isInternationSms: boolean;
@@ -28,7 +28,10 @@ export declare const useShaking: () => {
28
28
  * @returns
29
29
  */
30
30
  export declare const parsePhone: (isInternationSms: boolean, fieldValue: string, areaCode?: string) => {
31
- countryCode: string | undefined;
31
+ phoneNumber: string;
32
+ countryCode: undefined;
33
+ } | {
34
+ countryCode: string;
32
35
  phoneNumber: string;
33
36
  };
34
37
  export declare enum SocialConnectionEvent {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authing/guard-shim-react18",
3
- "version": "4.5.47-alpha.2",
3
+ "version": "4.5.47-alpha.4",
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",