@authing/react-ui-components 2.4.55 → 2.4.56-alpha.0

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.
Files changed (35) hide show
  1. package/lib/index.d.ts +14 -2
  2. package/lib/index.min.js +1 -1
  3. package/package.json +3 -3
  4. package/src/components/AuthingGuard/Forms/QrCodeLoginForm/index.tsx +3 -1
  5. package/src/components/AuthingGuard/Forms/SocialAndIdpLogin/index.tsx +3 -3
  6. package/src/components/AuthingGuard/GuardLayout/index.tsx +11 -0
  7. package/src/components/AuthingGuard/LoginLayout/index.tsx +67 -23
  8. package/src/components/AuthingGuard/api/appConfig.ts +18 -1
  9. package/src/components/AuthingGuard/api/userPoolConfig.ts +2 -0
  10. package/src/components/AuthingGuard/style.less +1 -0
  11. package/src/components/AuthingGuard/types/Forms.ts +1 -0
  12. package/src/components/AuthingGuard/types/GuardConfig.ts +3 -0
  13. package/src/index.tsx +16 -5
  14. package/yarn-error.log +20371 -0
  15. package/build/asset-manifest.json +0 -26
  16. package/build/favicon.ico +0 -0
  17. package/build/index.html +0 -1
  18. package/build/logo192.png +0 -0
  19. package/build/logo512.png +0 -0
  20. package/build/manifest.json +0 -25
  21. package/build/robots.txt +0 -3
  22. package/build/static/css/2.51c07e65.chunk.css +0 -3
  23. package/build/static/css/2.51c07e65.chunk.css.map +0 -1
  24. package/build/static/css/main.779f221a.chunk.css +0 -2
  25. package/build/static/css/main.779f221a.chunk.css.map +0 -1
  26. package/build/static/js/2.bbae9fdb.chunk.js +0 -3
  27. package/build/static/js/2.bbae9fdb.chunk.js.LICENSE.txt +0 -102
  28. package/build/static/js/2.bbae9fdb.chunk.js.map +0 -1
  29. package/build/static/js/3.fd17f196.chunk.js +0 -2
  30. package/build/static/js/3.fd17f196.chunk.js.map +0 -1
  31. package/build/static/js/main.5f341531.chunk.js +0 -2
  32. package/build/static/js/main.5f341531.chunk.js.map +0 -1
  33. package/build/static/js/runtime-main.ef138021.js +0 -2
  34. package/build/static/js/runtime-main.ef138021.js.map +0 -1
  35. package/build/static/media/loading.4a67a5f3.svg +0 -29
package/lib/index.d.ts CHANGED
@@ -395,13 +395,18 @@ declare module '@authing/react-ui-components/components/AuthingGuard/ToggleLang/
395
395
 
396
396
  }
397
397
  declare module '@authing/react-ui-components/components/AuthingGuard/api/appConfig' {
398
- import { Lang, Protocol } from '@authing/react-ui-components/components/AuthingGuard/types/index';
398
+ import { Lang, LoginMethods, Protocol } from '@authing/react-ui-components/components/AuthingGuard/types/index';
399
399
  import { IAzureAdConnectionConfig, ICasConnectionConfig, ISamlConnectionConfig, OIDCConnectionConfig, SocialConnectionItem } from '@authing/react-ui-components/components/AuthingGuard/api/userPoolConfig';
400
400
  export enum ApplicationMfaType {
401
401
  SMS = "SMS",
402
402
  EMAIL = "EMAIL"
403
403
  }
404
404
  export const ApplicationMfaTypeLabel: () => Record<ApplicationMfaType, string>;
405
+ export type QrcodeTabsSettings = Record<LoginMethods, Array<{
406
+ id: string;
407
+ title: string;
408
+ isDefault?: boolean;
409
+ }>>;
405
410
  export interface OidcClientMetadata {
406
411
  grant_types: string[];
407
412
  client_id: string;
@@ -452,9 +457,11 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
452
457
  [x: string]: string;
453
458
  };
454
459
  };
460
+ qrcodeTabsSettings: QrcodeTabsSettings;
455
461
  loginTabs: {
456
462
  list: string[];
457
463
  default: string;
464
+ defaultV2?: string;
458
465
  title: {
459
466
  [x: string]: string;
460
467
  };
@@ -601,8 +608,10 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/userPoo
601
608
  }
602
609
  export interface SocialConnectionItem {
603
610
  name: string;
611
+ displayName: string;
604
612
  logo: string;
605
613
  description: string;
614
+ identifier: string;
606
615
  provider: SocialConnectionProvider;
607
616
  authorizationUrl: string;
608
617
  tooltip: Record<Lang, string>;
@@ -763,6 +772,7 @@ declare module '@authing/react-ui-components/components/AuthingGuard/types/Forms
763
772
  }
764
773
  export interface QrLoginFormProps extends BaseFormProps {
765
774
  type: LoginMethods.AppQr | LoginMethods.WxMinQr | LoginMethods.WechatMpQrcode;
775
+ idpId?: string;
766
776
  }
767
777
  export interface EmailRegisterFormProps extends BaseFormProps {
768
778
  onValidateFail?: (error: any) => void;
@@ -822,7 +832,7 @@ declare module '@authing/react-ui-components/components/AuthingGuard/types/Forms
822
832
  declare module '@authing/react-ui-components/components/AuthingGuard/types/GuardConfig' {
823
833
  import { AuthenticationClient, AuthenticationClientOptions, CommonMessage, SocialConnectionProvider, User } from 'authing-js-sdk';
824
834
  import { QrCodeAuthenticationClient } from 'authing-js-sdk/build/main/lib/authentication/QrCodeAuthenticationClient';
825
- import { SocialConnectionItem, EnterpriseConnectionItem, ApplicationConfig, PasswordLoginMethods, Agreement } from '@authing/react-ui-components/components/AuthingGuard/api/index';
835
+ import { SocialConnectionItem, EnterpriseConnectionItem, ApplicationConfig, PasswordLoginMethods, Agreement, QrcodeTabsSettings } from '@authing/react-ui-components/components/AuthingGuard/api/index';
826
836
  import { Lang } from '@authing/react-ui-components/components/AuthingGuard/types/Locales';
827
837
  export type { AuthenticationClient, CommonMessage, User } from 'authing-js-sdk';
828
838
  export enum GuardMode {
@@ -1053,6 +1063,8 @@ declare module '@authing/react-ui-components/components/AuthingGuard/types/Guard
1053
1063
  publicKey: ApplicationConfig['publicKey'];
1054
1064
  agreementEnabled: boolean;
1055
1065
  agreements: Agreement[];
1066
+ loginMethodTitleMapping: Record<string, string>;
1067
+ qrcodeTabsSettings: QrcodeTabsSettings;
1056
1068
  }
1057
1069
  export interface LocalesConfig {
1058
1070
  defaultLang?: Lang;