@authing/react-ui-components 3.0.2-beta.11 → 3.0.2-beta.12

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.
package/lib/index.d.ts CHANGED
@@ -358,7 +358,7 @@ declare module '@authing/react-ui-components/components/AuthingGuard/ToggleLang/
358
358
 
359
359
  }
360
360
  declare module '@authing/react-ui-components/components/AuthingGuard/api/appConfig' {
361
- import { Lang, Protocol } from '@authing/react-ui-components/components/AuthingGuard/types/index';
361
+ import { Lang, LoginMethods, Protocol } from '@authing/react-ui-components/components/AuthingGuard/types/index';
362
362
  import { IAzureAdConnectionConfig, ICasConnectionConfig, IOAuthConnectionConfig, ISamlConnectionConfig, OIDCConnectionConfig, SocialConnectionItem } from '@authing/react-ui-components/components/AuthingGuard/api/userPoolConfig';
363
363
  import { PasswordStrength } from '@authing/react-ui-components/components/_utils/index';
364
364
  export enum ApplicationMfaType {
@@ -366,6 +366,11 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
366
366
  EMAIL = "EMAIL"
367
367
  }
368
368
  export const ApplicationMfaTypeLabel: () => Record<ApplicationMfaType, string>;
369
+ export type QrcodeTabsSettings = Record<LoginMethods, Array<{
370
+ id: string;
371
+ title: string;
372
+ isDefault?: boolean;
373
+ }>>;
369
374
  export interface OidcClientMetadata {
370
375
  grant_types: string[];
371
376
  client_id: string;
@@ -406,6 +411,7 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
406
411
  css: string;
407
412
  name: string;
408
413
  logo: string;
414
+ description?: string;
409
415
  redirectUris: string[];
410
416
  registerDisabled: boolean;
411
417
  registerTabs: {
@@ -415,9 +421,11 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
415
421
  [x: string]: string;
416
422
  };
417
423
  };
424
+ qrcodeTabsSettings: QrcodeTabsSettings;
418
425
  loginTabs: {
419
426
  list: string[];
420
427
  default: string;
428
+ defaultV2?: string;
421
429
  title: {
422
430
  [x: string]: string;
423
431
  };
@@ -546,8 +554,10 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/userPoo
546
554
  export interface SocialConnectionItem {
547
555
  name: string;
548
556
  name_en: string;
557
+ displayName: string;
549
558
  logo: string;
550
559
  description: string;
560
+ identifier: string;
551
561
  provider: SocialConnectionProvider;
552
562
  authorizationUrl: string;
553
563
  tooltip: Record<Lang, string>;
@@ -649,6 +659,7 @@ declare module '@authing/react-ui-components/components/AuthingGuard/index' {
649
659
  import './style.less';
650
660
  interface AuthingGuardProps extends GuardEventsHandler {
651
661
  appId: string;
662
+ tenantId?: string;
652
663
  config?: UserConfig;
653
664
  visible?: boolean;
654
665
  className?: string;
@@ -683,6 +694,7 @@ declare module '@authing/react-ui-components/components/AuthingGuard/types/Forms
683
694
  }
684
695
  export interface QrLoginFormProps extends BaseFormProps {
685
696
  type: LoginMethods.AppQr | LoginMethods.WxMinQr | LoginMethods.WechatMpQrcode;
697
+ idpId?: string;
686
698
  }
687
699
  export interface EmailRegisterFormProps extends BaseFormProps {
688
700
  onValidateFail?: (error: any) => void;
@@ -742,7 +754,7 @@ declare module '@authing/react-ui-components/components/AuthingGuard/types/Forms
742
754
  declare module '@authing/react-ui-components/components/AuthingGuard/types/GuardConfig' {
743
755
  import { AuthenticationClient, AuthenticationClientOptions, CommonMessage, SocialConnectionProvider, User } from 'authing-js-sdk';
744
756
  import { QrCodeAuthenticationClient } from 'authing-js-sdk/build/main/lib/authentication/QrCodeAuthenticationClient';
745
- import { SocialConnectionItem, EnterpriseConnectionItem, ApplicationConfig, PasswordLoginMethods, Agreement } from '@authing/react-ui-components/components/AuthingGuard/api/index';
757
+ import { SocialConnectionItem, EnterpriseConnectionItem, ApplicationConfig, PasswordLoginMethods, Agreement, QrcodeTabsSettings } from '@authing/react-ui-components/components/AuthingGuard/api/index';
746
758
  import { Lang } from '@authing/react-ui-components/components/AuthingGuard/types/Locales';
747
759
  export type { AuthenticationClient, CommonMessage, User } from 'authing-js-sdk';
748
760
  export enum GuardMode {
@@ -916,6 +928,7 @@ declare module '@authing/react-ui-components/components/AuthingGuard/types/Guard
916
928
  export interface UserConfig {
917
929
  logo?: string;
918
930
  title?: string;
931
+ description?: string;
919
932
  zIndex?: number;
920
933
  isSSO?: boolean;
921
934
  mode?: GuardMode;
@@ -972,6 +985,8 @@ declare module '@authing/react-ui-components/components/AuthingGuard/types/Guard
972
985
  publicKey: ApplicationConfig['publicKey'];
973
986
  agreementEnabled: boolean;
974
987
  agreements: Agreement[];
988
+ loginMethodTitleMapping: Record<string, string>;
989
+ qrcodeTabsSettings: QrcodeTabsSettings;
975
990
  }
976
991
  export interface LocalesConfig {
977
992
  defaultLang?: Lang;
@@ -1896,6 +1911,12 @@ declare module '@authing/react-ui-components/components/ShieldSpin/index' {
1896
1911
  export const Spin: () => JSX.Element;
1897
1912
  export {};
1898
1913
 
1914
+ }
1915
+ declare module '@authing/react-ui-components/components/ShieldSpin/loading' {
1916
+ /// <reference types="react" />
1917
+ import './style.less';
1918
+ export const ShieldSpinLoading: () => JSX.Element;
1919
+
1899
1920
  }
1900
1921
  declare module '@authing/react-ui-components/components/SubmitButton/index' {
1901
1922
  import React from 'react';
@@ -1967,6 +1988,12 @@ declare module '@authing/react-ui-components/components/Type/index' {
1967
1988
  }
1968
1989
  export const getDefaultG2Config: () => IG2Config;
1969
1990
 
1991
+ }
1992
+ declare module '@authing/react-ui-components/components/ValidatorRules/PasswordFormItem' {
1993
+ import React from 'react';
1994
+ import { PasswordFormItemProps } from '@authing/react-ui-components/components/ValidatorRules/index';
1995
+ export const PasswordFormItem: React.FC<PasswordFormItemProps>;
1996
+
1970
1997
  }
1971
1998
  declare module '@authing/react-ui-components/components/ValidatorRules/ValidatorFormItem' {
1972
1999
  import React from 'react';
@@ -1977,21 +2004,31 @@ declare module '@authing/react-ui-components/components/ValidatorRules/Validator
1977
2004
  }
1978
2005
  declare module '@authing/react-ui-components/components/ValidatorRules/index' {
1979
2006
  import { FormInstance, FormItemProps } from 'antd/lib/form';
2007
+ import FormItem from 'antd/lib/form/FormItem';
2008
+ import { PasswordFormItem } from '@authing/react-ui-components/components/ValidatorRules/PasswordFormItem';
2009
+ import { EmailFormItem, PhoneFormItem } from '@authing/react-ui-components/components/ValidatorRules/ValidatorFormItem';
1980
2010
  export interface ValidatorFormItemProps extends FormItemProps {
1981
- userPoolId?: string;
1982
2011
  form?: FormInstance;
1983
2012
  checkRepeat?: boolean;
1984
2013
  }
1985
2014
  export interface ValidatorFormItemMetaProps extends ValidatorFormItemProps {
1986
- userPoolId?: string;
1987
2015
  form?: FormInstance;
1988
2016
  checkRepeat?: boolean;
1989
2017
  method: 'email' | 'phone';
1990
2018
  }
2019
+ export interface PasswordFormItemProps extends FormItemProps {
2020
+ }
1991
2021
  export interface ICheckProps {
1992
2022
  check: (values: any) => void;
1993
2023
  }
1994
- export { EmailFormItem, PhoneFormItem } from '@authing/react-ui-components/components/ValidatorRules/ValidatorFormItem';
2024
+ type InternalFormItemType = typeof FormItem;
2025
+ interface FormItemInterface extends InternalFormItemType {
2026
+ Password: typeof PasswordFormItem;
2027
+ Email: typeof EmailFormItem;
2028
+ Phone: typeof PhoneFormItem;
2029
+ }
2030
+ const CustomFormItem: FormItemInterface;
2031
+ export default CustomFormItem;
1995
2032
 
1996
2033
  }
1997
2034
  declare module '@authing/react-ui-components/components/VerifyCodeInput/index' {
@@ -2032,6 +2069,17 @@ declare module '@authing/react-ui-components/components/_utils/config' {
2032
2069
  publicConfig: ApplicationConfig;
2033
2070
  }>;
2034
2071
 
2072
+ }
2073
+ declare module '@authing/react-ui-components/components/_utils/context' {
2074
+ import React from 'react';
2075
+ import { ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
2076
+ export const createGuardContext: () => {
2077
+ Context: React.Context<ApplicationConfig | undefined>;
2078
+ Provider: React.Provider<ApplicationConfig | undefined>;
2079
+ Consumer: React.Consumer<ApplicationConfig | undefined>;
2080
+ };
2081
+ export const usePublicConfig: () => ApplicationConfig | undefined;
2082
+
2035
2083
  }
2036
2084
  declare module '@authing/react-ui-components/components/_utils/guradHttp' {
2037
2085
  export class GuardHttp {
@@ -2077,7 +2125,11 @@ declare module '@authing/react-ui-components/components/_utils/http' {
2077
2125
  baseUrl: string;
2078
2126
  setBaseUrl(base: string): void;
2079
2127
  langHeader: string;
2128
+ tenantHeader: string;
2129
+ tenantId: string;
2080
2130
  setLangHeader(key: string | undefined): void;
2131
+ setTenantHeader(key: string | undefined): void;
2132
+ setTenantId(tenantId: string): void;
2081
2133
  };
2082
2134
  export interface AuthingResponse<T = any> {
2083
2135
  code: number;
@@ -2269,7 +2321,7 @@ declare module '@authing/react-ui-components/components/version/index' {
2269
2321
 
2270
2322
  }
2271
2323
  declare module '@authing/react-ui-components/components/version/version' {
2272
- const _default: "3.0.2-beta.11";
2324
+ const _default: "3.0.2-beta.12";
2273
2325
  export default _default;
2274
2326
 
2275
2327
  }
@@ -2677,7 +2729,7 @@ declare module '@authing/react-ui-components/scripts/start' {
2677
2729
 
2678
2730
  }
2679
2731
  declare module '@authing/react-ui-components/scripts/tag' {
2680
- function feLog(): void;
2732
+ export {};
2681
2733
 
2682
2734
  }
2683
2735
  declare module '@authing/react-ui-components/scripts/test' {
@@ -2685,13 +2737,18 @@ declare module '@authing/react-ui-components/scripts/test' {
2685
2737
 
2686
2738
  }
2687
2739
  declare module '@authing/react-ui-components/scripts/utils/is-guard-publish' {
2688
- function _exports(): boolean;
2740
+ function _exports(): any;
2689
2741
  export = _exports;
2690
2742
 
2691
2743
  }
2692
2744
  declare module '@authing/react-ui-components/setupTests' {
2693
2745
  import '@testing-library/jest-dom';
2694
2746
 
2747
+ }
2748
+ declare module '@authing/react-ui-components/vite.config' {
2749
+ const _default: import("vite").UserConfigExport;
2750
+ export default _default;
2751
+
2695
2752
  }
2696
2753
  declare module '@authing/react-ui-components' {
2697
2754
  import main = require('@authing/react-ui-components/components/index');