@adyen/kyc-components 2.38.1 → 2.39.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 (40) hide show
  1. package/dist/es/{AT-njBxlQEe.js → AT-DfFnDrfM.js} +3 -3
  2. package/dist/es/{AU-DFQDmtVS.js → AU-duGkeX5u.js} +3 -3
  3. package/dist/es/{BE-C2-55587.js → BE-DyUVAPGr.js} +3 -3
  4. package/dist/es/{BR-DRRnRMe_.js → BR-C6EuLR5N.js} +3 -3
  5. package/dist/es/{CA-DF_5NHUp.js → CA-D9XwVu9a.js} +3 -3
  6. package/dist/es/{CH-DS_pPGGY.js → CH-5BWWB7V-.js} +3 -3
  7. package/dist/es/{CZ-CGN19Iaf.js → CZ-K85AZiMU.js} +3 -3
  8. package/dist/es/{DE-CWIcy4sf.js → DE-DidUFPKJ.js} +3 -3
  9. package/dist/es/{DK-CUV7SrN_.js → DK-VkWwZpKj.js} +3 -3
  10. package/dist/es/{ES-CXBTHBlj.js → ES-_IZ-GJq2.js} +3 -3
  11. package/dist/es/{FI-D9lkf5Ag.js → FI-CwQpEt0y.js} +3 -3
  12. package/dist/es/{FR-C62B055T.js → FR-93Nh7eJw.js} +3 -3
  13. package/dist/es/{GB-C3gyya0v.js → GB-CLutKk3G.js} +3 -3
  14. package/dist/es/{HK-BHvvteyC.js → HK-Bi2_xTHs.js} +3 -3
  15. package/dist/es/{HR-BuR2eqt5.js → HR-B241qzlq.js} +3 -3
  16. package/dist/es/{HU-BeWCk1sl.js → HU-DAS2gLl6.js} +3 -3
  17. package/dist/es/{IE-DY6xU4Nq.js → IE-CqqnKWAt.js} +3 -3
  18. package/dist/es/{IT-DIpVZHWq.js → IT-CTbAQN-N.js} +3 -3
  19. package/dist/es/{LT-vsmh_veZ.js → LT-CL75MQds.js} +3 -3
  20. package/dist/es/{NL-D4GPWO-k.js → NL-byavnuPs.js} +3 -3
  21. package/dist/es/{NO-C2rMiNW_.js → NO-BhWA5RkZ.js} +3 -3
  22. package/dist/es/{PL-B6DmYhdz.js → PL-DvHlZoe-.js} +3 -3
  23. package/dist/es/{PT-CiWuVvP4.js → PT-CrMmPrqH.js} +3 -3
  24. package/dist/es/{RO-CbO4Kr4f.js → RO-ZjE_bLtQ.js} +3 -3
  25. package/dist/es/{SE-ClnBSAdx.js → SE-pVoKikqF.js} +3 -3
  26. package/dist/es/{SG-CQ7yymJt.js → SG-o7Vue3ft.js} +3 -3
  27. package/dist/es/{SI-CKmjaPXK.js → SI-D65TuGII.js} +3 -3
  28. package/dist/es/{SK-BHbQeHKV.js → SK-B8YA21ir.js} +3 -3
  29. package/dist/es/{US-Dxp45Utb.js → US-ynCbKn6I.js} +3 -3
  30. package/dist/es/adyen-kyc-components.es.js +103 -879
  31. package/dist/style.css +3871 -111033
  32. package/dist/types/components/Dropins/types.d.ts +1 -1
  33. package/dist/types/components/PayoutAccount/component/PayoutAccountComponent.d.ts +0 -1
  34. package/dist/types/components/SingpassBanner/index.d.ts +5 -0
  35. package/dist/types/components/TaskList/component/TaskListComponent.d.ts +1 -1
  36. package/dist/types/components/TaskList/types.d.ts +1 -0
  37. package/dist/types/components/internal/Alert/Alert.d.ts +1 -1
  38. package/dist/types/components/internal/Alert/types.d.ts +1 -0
  39. package/dist/types/core/hooks/singpass/useShouldShowSingpass.d.ts +14 -0
  40. package/package.json +1 -1
@@ -20,7 +20,7 @@ interface SingpassLinkResponseItem {
20
20
  authUrl: string;
21
21
  success: boolean;
22
22
  }
23
- interface SingpassLinkResponse {
23
+ export interface SingpassLinkResponse {
24
24
  item: SingpassLinkResponseItem;
25
25
  }
26
26
  export interface DropinComposerProps extends DropinAPIHandlers, BasicComponentProps {
@@ -1,4 +1,3 @@
1
- import '../PayoutAccount.scss';
2
1
  import { PayoutAccountProps, PayoutAccountSchema } from '../types';
3
2
  export declare const payoutAccountFields: Array<keyof PayoutAccountSchema>;
4
3
  declare function PayoutAccountComponent(props: PayoutAccountProps): import("preact/compat").JSX.Element;
@@ -0,0 +1,5 @@
1
+ interface SingpassBannerProps {
2
+ onClick: () => void;
3
+ }
4
+ export declare const SingpassBanner: (props: SingpassBannerProps) => import("preact").JSX.Element;
5
+ export {};
@@ -1,4 +1,4 @@
1
1
  import '../TaskList.scss';
2
2
  import { TaskListComponentProps } from '../types';
3
- declare function TaskListComponent({ tasks, trackingConfig, onNavigateToTask, legalEntityResponse, capabilityProblems, onPciDownload, isReview, pciStatus, serviceAgreementTypes, serviceAgreementAcceptanceInfos, hasRequiredTrustMemberCount, onTransferInstrumentDelete, }: TaskListComponentProps): import("preact").JSX.Element;
3
+ declare function TaskListComponent({ tasks, trackingConfig, onNavigateToTask, legalEntityResponse, capabilityProblems, onPciDownload, isReview, pciStatus, serviceAgreementTypes, serviceAgreementAcceptanceInfos, hasRequiredTrustMemberCount, onTransferInstrumentDelete, onRetrieveMyinfoBusinessWithSingpass, }: TaskListComponentProps): import("preact").JSX.Element;
4
4
  export default TaskListComponent;
@@ -68,6 +68,7 @@ export interface TaskListComponentProps {
68
68
  trackingConfig?: {
69
69
  topLevelLegalEntity: ExistingLegalEntity;
70
70
  };
71
+ onRetrieveMyinfoBusinessWithSingpass?: null | (() => void);
71
72
  }
72
73
  export interface TaskListGroupProps {
73
74
  title: string;
@@ -1,4 +1,4 @@
1
1
  import './_alert.scss';
2
2
  import { AlertIconProps, AlertProps } from './types';
3
- export declare const Alert: ({ title, type, className, hasCloseButton, children, }: AlertProps) => import("preact").JSX.Element;
3
+ export declare const Alert: ({ title, type, className, hasCloseButton, children, icon, }: AlertProps) => import("preact").JSX.Element;
4
4
  export declare const AlertIcon: ({ className, type }: AlertIconProps) => import("preact").JSX.Element;
@@ -6,6 +6,7 @@ export interface AlertProps {
6
6
  className?: string;
7
7
  hasCloseButton?: boolean;
8
8
  children?: ComponentChild;
9
+ icon?: false | ComponentChild;
9
10
  }
10
11
  export interface AlertIconProps {
11
12
  type: AlertTypes;
@@ -0,0 +1,14 @@
1
+ import { SingpassLinkResponse } from '../../../components/Dropins/types';
2
+ import { AccountHolderOption } from '../../../components/internal/AccountHolder/types';
3
+ import { ExistingLegalEntity } from '../../models/api/legal-entity';
4
+ interface UseShouldShowSingpassProps {
5
+ isExperimentEnabled: boolean;
6
+ legalEntity: ExistingLegalEntity;
7
+ accountHolder?: AccountHolderOption;
8
+ handleOpenSingpassAuthorizationLink?: () => Promise<SingpassLinkResponse>;
9
+ }
10
+ export declare const useShouldShowSingpass: ({ isExperimentEnabled, legalEntity, accountHolder, handleOpenSingpassAuthorizationLink, }: UseShouldShowSingpassProps) => {
11
+ shouldShowSingpass: boolean;
12
+ shouldShowSingpassForAccountHolder: (newAccountHolder?: AccountHolderOption) => boolean;
13
+ };
14
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/kyc-components",
3
- "version": "2.38.1",
3
+ "version": "2.39.0",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "files": [