@adyen/kyc-components 2.42.0 → 2.43.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 (112) hide show
  1. package/dist/es/adyen-kyc-components.es.js +2967 -1497
  2. package/dist/es/{arrow-left-CwJQyOFz.js → arrow-left-CCxYxfCP.js} +1 -1
  3. package/dist/es/{arrow-right-Cs_AKUOH.js → arrow-right-DF4Qe-8E.js} +1 -1
  4. package/dist/es/{bin-8yaAerXc.js → bin-CGwewvcn.js} +1 -1
  5. package/dist/es/{check-_cOIMziL.js → check-CeSLN4_9.js} +1 -1
  6. package/dist/es/{checkmark-CZpv8i5a.js → checkmark-DEh9MPYR.js} +1 -1
  7. package/dist/es/{checkmark-small-C4TPve-W.js → checkmark-small-D_9HLctx.js} +1 -1
  8. package/dist/es/{chevron-down-CwS2tE_6.js → chevron-down-BzENwYSf.js} +1 -1
  9. package/dist/es/{chevron-right-B8cQLres.js → chevron-right-DczMHcvL.js} +1 -1
  10. package/dist/es/{chevron-up-DccG0tVR.js → chevron-up-BLtnROd5.js} +1 -1
  11. package/dist/es/{company-2-Cof0usfn.js → company-2-JG34IScE.js} +1 -1
  12. package/dist/es/{company-BKO80hWm.js → company-D5_F_6SW.js} +1 -1
  13. package/dist/es/{contract-DrX5y2Qf.js → contract-C6wDy9zU.js} +1 -1
  14. package/dist/es/{controlling-person-B_dn0b9H.js → controlling-person-C4KoSyi2.js} +1 -1
  15. package/dist/es/{cross-aFMJCrLf.js → cross-BadGfrgB.js} +1 -1
  16. package/dist/es/{decision-maker-28_rW1ah.js → decision-maker-Cef3-OzY.js} +1 -1
  17. package/dist/es/{document-Bn_3PIDG.js → document-Cg4kZHpA.js} +1 -1
  18. package/dist/es/{download-DgAZobJV.js → download-DGC5_Bxe.js} +1 -1
  19. package/dist/es/{edit-Dg19Ah77.js → edit--fDhojib.js} +1 -1
  20. package/dist/es/{field-error-DkFiF_Cv.js → field-error-WElEN1mN.js} +1 -1
  21. package/dist/es/{info-circle-CXFfd_nO.js → info-circle-DkHN1ugA.js} +1 -1
  22. package/dist/es/{light-bulb-CQ29JPA7.js → light-bulb-DEUhbRWP.js} +1 -1
  23. package/dist/es/{location-DmmjAv9A.js → location-B1Til-7Q.js} +1 -1
  24. package/dist/es/{more-horiz-dyZQKaOn.js → more-horiz-BieZKfy3.js} +1 -1
  25. package/dist/es/{new-document-CeV8zHP8.js → new-document-BEAJnXCG.js} +1 -1
  26. package/dist/es/{owners-C1dyQqRO.js → owners-D1pksb86.js} +1 -1
  27. package/dist/es/{payout-B-c43MDS.js → payout-BFiI--HY.js} +1 -1
  28. package/dist/es/{pci-CVqIvwR-.js → pci-DMQLRoAn.js} +1 -1
  29. package/dist/es/{plus-BUH0nzS_.js → plus-DAnbeoyS.js} +1 -1
  30. package/dist/es/{remove-Bor5X8Xu.js → remove-CEmd9YX7.js} +1 -1
  31. package/dist/es/{review-DcoDSRJT.js → review-CeQeKHXH.js} +1 -1
  32. package/dist/es/{search-SGLIdnsr.js → search-hf3HRVbu.js} +1 -1
  33. package/dist/es/{signatory-BMaWV_18.js → signatory-BVoLPYPu.js} +1 -1
  34. package/dist/es/{store-N4c2LHJ_.js → store-D2z639xh.js} +1 -1
  35. package/dist/es/{trust-BcVDhtGL.js → trust-CpcaQaV7.js} +1 -1
  36. package/dist/es/{user-C8STPF6-.js → user-D6swzlYs.js} +1 -1
  37. package/dist/es/{user-business-Dcvcw8gB.js → user-business-CwS5j1qX.js} +1 -1
  38. package/dist/es/{users-3-D3QDBEk-.js → users-3-BdjQ9rEA.js} +1 -1
  39. package/dist/es/{warning-Dxxpni4H.js → warning-99uFf1WU.js} +1 -1
  40. package/dist/es/{wrong-DNwa4zZR.js → wrong-1wvh7nZe.js} +1 -1
  41. package/dist/style.css +1386 -1149
  42. package/dist/types/components/BaseElement.d.ts +3 -0
  43. package/dist/types/components/BusinessDetails/component/BusinessDetailsComponent.d.ts +2 -0
  44. package/dist/types/components/BusinessDetails/forms.d.ts +23 -0
  45. package/dist/types/components/BusinessDetails/index.d.ts +1 -0
  46. package/dist/types/components/BusinessDetails/types.d.ts +33 -0
  47. package/dist/types/components/Company/component/CompanyComponent.d.ts +2 -2
  48. package/dist/types/components/Company/rules.d.ts +4 -10
  49. package/dist/types/components/CompanyNameAndCountry/component/CompanyNameAndCountryComponent.d.ts +1 -0
  50. package/dist/types/components/CompanyNameAndCountry/types.d.ts +2 -1
  51. package/dist/types/components/CompanySearch/forms.d.ts +1 -1
  52. package/dist/types/components/Dropins/BusinessDetailsDropin/components/BusinessDetailsDropinComponent.d.ts +2 -0
  53. package/dist/types/components/Dropins/BusinessDetailsDropin/index.d.ts +1 -0
  54. package/dist/types/components/Dropins/BusinessDetailsDropin/types.d.ts +55 -0
  55. package/dist/types/components/Dropins/BusinessDetailsDropin/utils.d.ts +12 -0
  56. package/dist/types/components/Dropins/CompanyDropin/components/CompanyDropinComponent.d.ts +1 -1
  57. package/dist/types/components/Dropins/CompanySearchDropin/components/CompanySearchDropinComponent.d.ts +1 -1
  58. package/dist/types/components/Dropins/CompanySearchDropin/types.d.ts +2 -0
  59. package/dist/types/components/Dropins/DropinComposer/components/DropinComposerComponent.d.ts +1 -1
  60. package/dist/types/components/Dropins/IndividualDropin/components/IndividualDropinComponent.d.ts +1 -1
  61. package/dist/types/components/Dropins/PayoutDetailsDropin/components/PayoutDetailsDropinComponent.d.ts +1 -1
  62. package/dist/types/components/Dropins/PciDropin/components/PciDropinComponent.d.ts +1 -1
  63. package/dist/types/components/Dropins/ServiceAgreementDropinComponent/components/ServiceAgreementDropinComponent.d.ts +1 -1
  64. package/dist/types/components/Dropins/ServiceAgreementDropinComponent/types.d.ts +1 -0
  65. package/dist/types/components/Dropins/SolePropDropin/components/SolePropDropinComponent.d.ts +1 -1
  66. package/dist/types/components/Dropins/types.d.ts +3 -5
  67. package/dist/types/components/EmbeddedDropins/CreateIndividualComponent/CreateIndividualComponent.d.ts +1 -3
  68. package/dist/types/components/EmbeddedDropins/CreateTransferInstrumentComponent/CreateTransferInstrumentComponent.d.ts +1 -3
  69. package/dist/types/components/EmbeddedDropins/ViewVerificationStatus/ViewVerificationStatusComponent.d.ts +1 -3
  70. package/dist/types/components/EventEmitter.d.ts +2 -0
  71. package/dist/types/components/PayoutAccount/types.d.ts +0 -2
  72. package/dist/types/components/PayoutDetails/types.d.ts +0 -2
  73. package/dist/types/components/SoleProp/component/SolePropComponent.d.ts +1 -1
  74. package/dist/types/components/TaskList/component/TaskListItem.d.ts +1 -1
  75. package/dist/types/components/TaskList/types.d.ts +1 -0
  76. package/dist/types/components/UIElement.d.ts +4 -6
  77. package/dist/types/components/index.d.ts +2 -0
  78. package/dist/types/components/internal/CountryField/CountryField.d.ts +1 -1
  79. package/dist/types/components/internal/CountryOfGoverningLawField/CountryOfGoverningLawField.d.ts +3 -0
  80. package/dist/types/components/internal/CountryOfGoverningLawField/index.d.ts +1 -0
  81. package/dist/types/components/internal/CountryOfGoverningLawField/types.d.ts +9 -0
  82. package/dist/types/components/internal/Modal/Modal.d.ts +21 -0
  83. package/dist/types/components/internal/Summary/Summary.d.ts +1 -1
  84. package/dist/types/components/internal/Summary/types.d.ts +1 -0
  85. package/dist/types/core/Context/ExperimentContext/types.d.ts +4 -2
  86. package/dist/types/core/Context/ExpiryContext/ExpiredBanner.d.ts +1 -0
  87. package/dist/types/core/Context/ExpiryContext/ExpiryContext.d.ts +11 -0
  88. package/dist/types/core/Context/ExpiryContext/ExpiryModal.d.ts +6 -0
  89. package/dist/types/core/Context/ExpiryContext/useExpiryThreshold.d.ts +12 -0
  90. package/dist/types/core/Context/I18nProvider/I18nProvider.d.ts +3 -1
  91. package/dist/types/core/Context/StateContext/types.d.ts +3 -2
  92. package/dist/types/core/SDKValidation/index.d.ts +1 -1
  93. package/dist/types/core/core.d.ts +2 -1
  94. package/dist/types/core/hooks/useForm/types.d.ts +11 -0
  95. package/dist/types/core/hooks/useIsElementVisible.d.ts +2 -2
  96. package/dist/types/core/hooks/useScenarioConfiguration.d.ts +2 -1
  97. package/dist/types/core/models/api/contracts.d.ts +4 -0
  98. package/dist/types/core/models/api/organization.d.ts +9 -3
  99. package/dist/types/core/models/company.d.ts +4 -0
  100. package/dist/types/core/process-field-configurations.d.ts +3 -4
  101. package/dist/types/core/types.d.ts +11 -0
  102. package/dist/types/utils/company-util.d.ts +7 -1
  103. package/dist/types/utils/getFieldsWithExistingData.d.ts +2 -1
  104. package/dist/types/utils/mapping/businessDetails/index.d.ts +2 -0
  105. package/dist/types/utils/mapping/businessDetails/mapBusinessDetailsSchemaToLegalEntity.d.ts +5 -0
  106. package/dist/types/utils/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +4 -0
  107. package/dist/types/utils/mapping/companySearch/mapLegalEntityToCompanySearchSchema.d.ts +2 -1
  108. package/dist/types/utils/mapping/componentApiMapping.d.ts +42 -1
  109. package/dist/types/utils/mapping/documentGuidanceMap.d.ts +1 -1
  110. package/package.json +2 -8
  111. package/dist/types/core/Context/QueryContext/QueryClient.d.ts +0 -2
  112. package/dist/types/core/Context/QueryContext/QueryClientProvider.d.ts +0 -4
@@ -28,6 +28,9 @@ export declare abstract class BaseElement<P extends BaseElementProps> {
28
28
  updateLocale({ locale }: {
29
29
  locale: string;
30
30
  }): void;
31
+ updateExpiry({ expiry }: {
32
+ expiry?: number;
33
+ }): void;
31
34
  /**
32
35
  * Unmounts an element and mounts it again on the same node
33
36
  */
@@ -0,0 +1,2 @@
1
+ import type { BusinessDetailsProps } from '../types';
2
+ export declare function BusinessDetailsComponent(props: BusinessDetailsProps): import("preact").JSX.Element;
@@ -0,0 +1,23 @@
1
+ import { type CountryCode } from '../../core/models/country-code';
2
+ import type { FormList } from '../../core/models/form';
3
+ import type { BusinessRegistrationNumberFieldSchema } from '../internal/BusinessRegistrationNumberField';
4
+ import type { CountryFieldSchema } from '../internal/CountryField/types';
5
+ import type { DateOfIncorporationFieldSchema } from '../internal/DateOfIncorporationField/types';
6
+ import type { LegalCompanyNameFieldSchema } from '../internal/LegalCompanyNameField/types';
7
+ import type { StateFieldSchema } from '../internal/StateField/types';
8
+ import type { StockExchangeMICFieldSchema } from '../internal/StockExchangeMICField/types';
9
+ import type { StockISINFieldSchema } from '../internal/StockISINField/types';
10
+ import type { TaxInformationFieldSchema } from '../internal/TaxInformationField';
11
+ import type { TradingNameFieldSchema } from '../internal/TradingNameField/types';
12
+ import type { VatNumberFieldSchema } from '../internal/VatNumberField';
13
+ interface BusinessNameFieldSchema {
14
+ businessName?: string;
15
+ }
16
+ export interface BasicInformationSchema extends CountryFieldSchema, BusinessNameFieldSchema, StateFieldSchema, TaxInformationFieldSchema, BusinessRegistrationNumberFieldSchema {
17
+ }
18
+ export interface AdditionalInformationSchema extends LegalCompanyNameFieldSchema, TradingNameFieldSchema, DateOfIncorporationFieldSchema, StockISINFieldSchema, StockExchangeMICFieldSchema, TaxInformationFieldSchema, BusinessRegistrationNumberFieldSchema, VatNumberFieldSchema {
19
+ }
20
+ export declare const FIELDS_NEEDED_FOR_COMPANY_SEARCH: Array<keyof BusinessNameFieldSchema | keyof BasicInformationSchema | keyof AdditionalInformationSchema>;
21
+ export declare const getForms: (country: CountryCode) => FormList;
22
+ export declare const documentFormsIds: string[];
23
+ export {};
@@ -0,0 +1 @@
1
+ export * from './component/BusinessDetailsComponent';
@@ -0,0 +1,33 @@
1
+ import type { BaseOuterFormProps } from '../../core/hooks/useForm';
2
+ import type { LegalEntityType } from '../../core/models/api/legal-entity-type';
3
+ import type { CountryCode } from '../../core/models/country-code';
4
+ import type { FormModel } from '../../core/models/form';
5
+ import type { BaseTrackingPayload } from '../../core/utils';
6
+ import type { CompanyStructureSchema } from '../CompanyStructure/types';
7
+ import type { DocumentUploadSchema } from '../DocumentUpload/types';
8
+ import type { DropinAPIHandlers } from '../Dropins/types';
9
+ import type { RegistrationAddressSchema } from '../RegistrationAddress/types';
10
+ import type { AdditionalInformationSchema, BasicInformationSchema } from './forms';
11
+ export interface BusinessDetailsSchema {
12
+ basicInformation?: BasicInformationSchema;
13
+ companyStructure?: CompanyStructureSchema;
14
+ additionalInformation?: AdditionalInformationSchema;
15
+ companyRegistrationAddress?: RegistrationAddressSchema;
16
+ companyRegistrationDocument?: DocumentUploadSchema;
17
+ companyTaxDocument?: DocumentUploadSchema;
18
+ }
19
+ export interface BusinessDetailsProps extends BaseOuterFormProps<BusinessDetailsSchema> {
20
+ country: CountryCode;
21
+ isTopLevelEntity: boolean;
22
+ baseTrackingPayload: BaseTrackingPayload;
23
+ forms?: FormModel[];
24
+ handleAddressSearch: DropinAPIHandlers['handleAddressSearch'];
25
+ handleFindAddress: DropinAPIHandlers['handleFindAddress'];
26
+ handleCompanyIndexSearch: DropinAPIHandlers['handleCompanyIndexSearch'];
27
+ handleCompanyDeepSearch: DropinAPIHandlers['handleCompanyDeepSearch'];
28
+ handleGetCompanyDataset: DropinAPIHandlers['handleGetCompanyDataset'];
29
+ handleRefreshCompanyDataset: DropinAPIHandlers['handleRefreshCompanyDataset'];
30
+ handleVerifyTin: DropinAPIHandlers['handleVerifyTin'];
31
+ onSubmit?: (company: BusinessDetailsSchema) => void;
32
+ onTypeSwitch?: (legalEntityType: LegalEntityType) => void;
33
+ }
@@ -6,7 +6,7 @@ export declare const companyForms: {
6
6
  readonly companyNameAndCountry: {
7
7
  readonly formId: "companyNameAndCountry";
8
8
  readonly formName: "basicInformation";
9
- readonly fields: ("country" | "legalCompanyName")[];
9
+ readonly fields: ("country" | "legalCompanyName" | keyof import("../../internal/CountryOfGoverningLawField/types").CountryOfGoverningLawFieldSchema)[];
10
10
  };
11
11
  readonly companyType: {
12
12
  readonly formId: "companyType";
@@ -26,7 +26,7 @@ export declare const companyForms: {
26
26
  readonly companyRegistrationDocument: {
27
27
  readonly formId: "companyRegistrationDocument";
28
28
  readonly formName: "registrationDocument";
29
- readonly formHeading: "companyRegistrationDocumentHeading";
29
+ readonly formHeading: "companyRegistrationDocumentFormHeading";
30
30
  readonly formDescription: "companyRegistrationDocumentFormDescription";
31
31
  readonly fields: readonly ["registrationDocument"];
32
32
  };
@@ -1,11 +1,13 @@
1
1
  import type { CountryCode } from '../../core/models/country-code';
2
2
  import type { FormRules } from '../../core/models/form-rules';
3
+ import type { BusinessDetailsSchema } from '../BusinessDetails/types';
3
4
  import type { CompanySearchSchema } from '../CompanySearch/types';
4
5
  import type { SolePropSchema } from '../SoleProp/types';
5
6
  import type { CompanySchema } from './types';
6
7
  export declare const COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION: CountryCode[];
7
8
  export declare const COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION: CountryCode[];
8
9
  export declare const COUNTRIES_WITH_POSSIBLE_REGISTRATION_EXEMPTIONS_FOR_SOLE_PROPS: CountryCode[];
10
+ export declare const COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER: CountryCode[];
9
11
  /**
10
12
  * Also used to determine what documenttype needs to be used
11
13
  * when uploading tax document in mapping.ts
@@ -16,16 +18,8 @@ export declare const COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_COMPANIES: readon
16
18
  export declare const COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_SOLE_PROPS: readonly CountryCode[];
17
19
  export declare const COUNTRIES_THAT_REQUIRE_DATE_OF_INCORPORATION: CountryCode[];
18
20
  export declare const COUNTRIES_THAT_USES_UEN_OR_GST: CountryCode[];
19
- /**
20
- * @description These are the countries the currently have a search provider that does not redirect the user outside of the app.
21
- */
22
- export declare const COUNTRIES_WITH_IN_APP_SEARCH_COMPANY_VERIFICATION: readonly CountryCode[];
23
- /**
24
- * @description These are the countries the currently have a search provider that will redirect the user to their phone or some other device to search and verify details.
25
- */
26
- export declare const COUNTRIES_WITH_REDIRECT_SEARCH_COMPANY_VERIFICATION: readonly CountryCode[];
27
21
  /**
28
22
  * @description These are the countries the currently have a search provider that requires their tax information (TIN, VAT, etc) to search and verify details.
29
23
  */
30
- export declare const COUNTRIES_WITH_TAX_INFO_REQUIRED_FOR_COMPANY_SEARCH: readonly CountryCode[];
31
- export declare const rules: FormRules<(CompanySchema & CompanySearchSchema) | SolePropSchema>;
24
+ export declare const COUNTRIES_USING_COMPANY_SEARCH: readonly CountryCode[];
25
+ export declare const rules: FormRules<CompanySchema | CompanySearchSchema | SolePropSchema | BusinessDetailsSchema>;
@@ -1,4 +1,5 @@
1
1
  import type { CompanyNameAndCountryProps, CompanyNameAndCountrySchema } from '../types';
2
+ export declare const countryWithGoverningLawFields: Array<keyof CompanyNameAndCountrySchema>;
2
3
  export declare const companyNameAndCountryFields: Array<keyof CompanyNameAndCountrySchema>;
3
4
  declare function CompanyNameAndCountry(props: CompanyNameAndCountryProps): import("preact/compat").JSX.Element;
4
5
  export declare const CompanyNameAndCountryComponent: typeof CompanyNameAndCountry;
@@ -1,8 +1,9 @@
1
1
  import type { BaseInnerFormProps } from '../../core/hooks/useForm';
2
2
  import type { CountryCode } from '../../core/models/country-code';
3
3
  import type { CountryFieldSchema } from '../internal/CountryField/types';
4
+ import type { CountryOfGoverningLawFieldSchema } from '../internal/CountryOfGoverningLawField/types';
4
5
  import type { LegalCompanyNameFieldSchema } from '../internal/LegalCompanyNameField/types';
5
- export type CompanyNameAndCountrySchema = LegalCompanyNameFieldSchema & CountryFieldSchema;
6
+ export type CompanyNameAndCountrySchema = LegalCompanyNameFieldSchema & CountryFieldSchema & CountryOfGoverningLawFieldSchema;
6
7
  export interface CompanyNameAndCountryProps extends BaseInnerFormProps<CompanyNameAndCountrySchema> {
7
8
  onCountryChange?(country: CountryCode): void;
8
9
  disableCountry?: boolean;
@@ -25,7 +25,7 @@ export declare const forms: {
25
25
  readonly companyRegistrationDocument: {
26
26
  readonly formId: keyof CompanySearchSchema;
27
27
  readonly formName: "companyRegistrationDocumentFormName";
28
- readonly formHeading: "companyRegistrationDocumentHeading";
28
+ readonly formHeading: "companyRegistrationDocumentFormHeading";
29
29
  readonly formDescription: "companyRegistrationDocumentFormDescription";
30
30
  readonly fields: readonly ["registrationDocument"];
31
31
  };
@@ -0,0 +1,2 @@
1
+ import { type BusinessDetailsDropinProps } from '../types';
2
+ export declare function BusinessDetailsDropinComponent({ country, problems, legalEntityResponse, isTargetLegalEntityType, parentLegalEntity, trackingConfig, capabilities, taskName, hideDropinLayout, homeButtonLabel, taskType, onChange, onSubmit: onExternalSubmit, handleHomeClick, handleCreateDocument, handleGetDocument, handleUpdateDocument, handleAddressSearch, handleFindAddress, handleUpdateLegalEntity, handleCompanyIndexSearch, handleCompanyDeepSearch, handleGetCompanyDataset, handleRefreshCompanyDataset, handleVerifyTin, onTypeSwitch, }: BusinessDetailsDropinProps): import("preact").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './components/BusinessDetailsDropinComponent';
@@ -0,0 +1,55 @@
1
+ import type { Dispatch, StateUpdater } from 'preact/hooks';
2
+ import type { ExistingLegalEntity, LegalEntity } from '../../../core/models/api/legal-entity';
3
+ import type { EntityProblems } from '../../../core/models/errors/entity-problems';
4
+ import type { FormModelWithValidity } from '../../../core/models/form';
5
+ import type { BaseTrackingPayload } from '../../../core/utils';
6
+ import type Language from '../../../language/Language';
7
+ import type { DocumentApiUtils } from '../../../utils/api/documentUtils';
8
+ import type { BusinessDetailsProps, BusinessDetailsSchema } from '../../BusinessDetails/types';
9
+ import type { LoadingStatus } from '../../internal/LoaderWrapper/constants';
10
+ import type { ToastOptions } from '../../internal/Toast';
11
+ import type { TrustMember } from '../../TrustMembers/types';
12
+ import type { DropinAPIHandlers, DropinProps } from '../types';
13
+ export declare enum BusinessDetailsEvents {
14
+ TASK_START = "BusinessDetails_TaskStarted",
15
+ TASK_SUBMIT = "BusinessDetails_TaskSubmitted",
16
+ TASK_SAVED = "BusinessDetails_TaskSaved",
17
+ TASK_ERROR = "BusinessDetails_TaskError",
18
+ DOCUMENTS_SAVED = "BusinessDetails_DocumentsSaved",
19
+ DOCUMENTS_ERROR = "BusinessDetails_DocumentsError",
20
+ NO_SEARCH_RESULTS = "BusinessDetails_NoSearchResults",
21
+ TIN_MATCH = "BusinessDetails_TinMatch",
22
+ TIN_NO_MATCH = "BusinessDetails_TinNoMatch",
23
+ SELECTION_RESET = "BusinessDetails_CompanySelectionReset",
24
+ SELECTION_ERROR = "BusinessDetails_CompanySelectionError"
25
+ }
26
+ export type BusinessDetailsDropinApihandler = Required<Pick<DropinAPIHandlers, 'handleCreateDocument' | 'handleGetDocument' | 'handleUpdateDocument' | 'handleUpdateLegalEntity'>>;
27
+ export interface BusinessDetailsDropinProps extends Omit<BusinessDetailsProps, 'isTopLevelEntity' | 'baseTrackingPayload'>, BusinessDetailsDropinApihandler, DropinProps {
28
+ legalEntityResponse: ExistingLegalEntity;
29
+ isTargetLegalEntityType?: boolean;
30
+ parentLegalEntity?: LegalEntity;
31
+ associationDetail?: TrustMember;
32
+ }
33
+ export interface SubmitDocumentsProps {
34
+ data: BusinessDetailsSchema;
35
+ legalEntity: ExistingLegalEntity;
36
+ forms: FormModelWithValidity[];
37
+ documentUtils: DocumentApiUtils;
38
+ baseTrackingPayload: BaseTrackingPayload;
39
+ }
40
+ export interface SubmitProps {
41
+ data: BusinessDetailsSchema;
42
+ legalEntityResponse: ExistingLegalEntity;
43
+ isTargetLegalEntityType: boolean;
44
+ baseTrackingPayload: BaseTrackingPayload;
45
+ forms: FormModelWithValidity[];
46
+ documentUtils: DocumentApiUtils;
47
+ i18n: Language;
48
+ problems: EntityProblems | undefined;
49
+ setLoadingStatus: Dispatch<StateUpdater<LoadingStatus>>;
50
+ setProblems: Dispatch<StateUpdater<EntityProblems | undefined>>;
51
+ showToast: (options: ToastOptions) => void;
52
+ clearToasts: () => void;
53
+ handleUpdateLegalEntity: Required<DropinAPIHandlers>['handleUpdateLegalEntity'];
54
+ onExternalSubmit: ((data: BusinessDetailsSchema) => void) | undefined;
55
+ }
@@ -0,0 +1,12 @@
1
+ import type { OuterFormLabels } from '../../../core/hooks/useForm';
2
+ import type { ParseConfiguration } from '../../../core/hooks/useScenarioConfiguration';
3
+ import type { FormModelWithValidity } from '../../../core/models/form';
4
+ import type Language from '../../../language';
5
+ import type { BusinessDetailsSchema } from '../../BusinessDetails/types';
6
+ import type { SubmitDocumentsProps, SubmitProps } from './types';
7
+ export declare const parseConfiguration: ParseConfiguration;
8
+ export declare const canSubmit: (data: BusinessDetailsSchema) => boolean;
9
+ export declare const isDocumentsRequired: (forms: FormModelWithValidity[]) => boolean;
10
+ export declare const formatDataForSummary: (data: BusinessDetailsSchema, forms: FormModelWithValidity[], labels: OuterFormLabels<BusinessDetailsSchema>, i18n: Language) => {};
11
+ export declare function submitDocuments({ data, legalEntity, forms, documentUtils, baseTrackingPayload, }: SubmitDocumentsProps): Promise<void>;
12
+ export declare function submit({ data, legalEntityResponse, isTargetLegalEntityType, baseTrackingPayload, forms, problems, documentUtils, i18n, setLoadingStatus, setProblems, showToast, clearToasts, handleUpdateLegalEntity, onExternalSubmit, }: SubmitProps): Promise<void>;
@@ -1,2 +1,2 @@
1
1
  import type { CompanyDropinProps } from '../types';
2
- export declare function CompanyDropinComponent({ country: parentCountry, problems: propProblems, hideDropinLayout, taskName, capabilities, homeButtonLabel, taskType, trackingConfig, associationDetail, parentLegalEntity, legalEntityResponse, isTargetLegalEntityType, eventEmitter, onSubmit: onExternalSubmit, handleCreateDocument, handleGetDocument, handleUpdateDocument, handleAddressSearch, handleFindAddress, handleCreateLegalEntity, handleUpdateLegalEntity, handleHomeClick, onTypeSwitch, onChange, accountHolder, }: CompanyDropinProps): import("preact").JSX.Element;
2
+ export declare function CompanyDropinComponent({ country: parentCountry, problems: propProblems, hideDropinLayout, taskName, capabilities, homeButtonLabel, taskType, trackingConfig, associationDetail, parentLegalEntity, legalEntityResponse, isTargetLegalEntityType, onSubmit: onExternalSubmit, handleCreateDocument, handleGetDocument, handleUpdateDocument, handleAddressSearch, handleFindAddress, handleCreateLegalEntity, handleUpdateLegalEntity, handleHomeClick, onTypeSwitch, onChange, accountHolder, }: CompanyDropinProps): import("preact").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import type { CompanySearchDropinProps } from '../types';
2
- export declare function CompanySearchDropinComponent({ country: parentCountry, problems: propProblems, legalEntityResponse, isTargetLegalEntityType, parentLegalEntity, trackingConfig, eventEmitter, taskType, capabilities, taskName, hideDropinLayout, homeButtonLabel, onChange, onSubmit: onExternalSubmit, handleHomeClick, handleCreateDocument, handleGetDocument, handleUpdateDocument, handleAddressSearch, handleFindAddress, handleUpdateLegalEntity, handleCompanyIndexSearch, handleCompanyDeepSearch, handleGetCompanyDataset, handleRefreshCompanyDataset, handleVerifyTin, onTypeSwitch, }: CompanySearchDropinProps): import("preact").JSX.Element;
2
+ export declare function CompanySearchDropinComponent({ country: parentCountry, problems: propProblems, legalEntityResponse, isTargetLegalEntityType, parentLegalEntity, trackingConfig, taskType, capabilities, taskName, hideDropinLayout, homeButtonLabel, accountHolder, onChange, onSubmit: onExternalSubmit, handleHomeClick, handleCreateDocument, handleGetDocument, handleUpdateDocument, handleAddressSearch, handleFindAddress, handleUpdateLegalEntity, handleCompanyIndexSearch, handleCompanyDeepSearch, handleGetCompanyDataset, handleRefreshCompanyDataset, handleVerifyTin, onTypeSwitch, }: CompanySearchDropinProps): import("preact").JSX.Element;
@@ -1,5 +1,6 @@
1
1
  import type { ExistingLegalEntity, LegalEntity } from '../../../core/models/api/legal-entity';
2
2
  import type { CompanySearchProps } from '../../CompanySearch/types';
3
+ import type { AccountHolderOption } from '../../internal/AccountHolder/types';
3
4
  import type { TrustMember } from '../../TrustMembers/types';
4
5
  import type { DropinAPIHandlers, DropinProps } from '../types';
5
6
  export declare enum CompanySearchEvents {
@@ -21,4 +22,5 @@ export interface CompanySearchDropinProps extends Omit<CompanySearchProps, 'isTo
21
22
  isTargetLegalEntityType?: boolean;
22
23
  parentLegalEntity?: LegalEntity;
23
24
  associationDetail?: TrustMember;
25
+ accountHolder?: AccountHolderOption;
24
26
  }
@@ -1,2 +1,2 @@
1
1
  import type { DropinComposerProps } from '../../types';
2
- export declare function DropinComposerComponent({ capabilities, legalEntityResponse, eventEmitter, onSubmit, onChange, onLoad, onNavigate, ...args }: DropinComposerProps): import("preact").JSX.Element;
2
+ export declare function DropinComposerComponent({ capabilities, legalEntityResponse, onSubmit, onChange, onLoad, onNavigate, ...args }: DropinComposerProps): import("preact").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import type { IndividualDropinProps } from '../../../Individual/types';
2
- export declare function IndividualDropinComponent({ handleCreateDocument, handleGetDocument, handleUpdateDocument, handleAddressSearch, handleFindAddress, handleGetIdVerificationToken, handleGetIdVerificationStartCheck, taskType, trackingConfig, parentLegalEntity, legalEntityResponse, taskName, eventEmitter, handleHomeClick, homeButtonLabel, isTargetLegalEntityType, country: parentCountry, handleCreateLegalEntity, capabilities, onChange, problems: propProblems, handleUpdateLegalEntity, trustMember, onSubmit: externalOnSubmit, onTypeSwitch, hideNavigation, handleBackClick: externalBackClick, }: IndividualDropinProps): import("preact").JSX.Element;
2
+ export declare function IndividualDropinComponent({ handleCreateDocument, handleGetDocument, handleUpdateDocument, handleAddressSearch, handleFindAddress, handleGetIdVerificationToken, handleGetIdVerificationStartCheck, taskType, trackingConfig, parentLegalEntity, legalEntityResponse, taskName, handleHomeClick, homeButtonLabel, isTargetLegalEntityType, country: parentCountry, handleCreateLegalEntity, capabilities, onChange, problems: propProblems, handleUpdateLegalEntity, trustMember, onSubmit: externalOnSubmit, onTypeSwitch, hideNavigation, handleBackClick: externalBackClick, }: IndividualDropinProps): import("preact").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import type { PayoutDetailsDropinProps } from '../../../PayoutDetails/types';
2
- export declare function PayoutDetailsDropinComponent({ transferInstrument, setTransferInstrument, handleCreateDocument, handleGetDocument, handleUpdateDocument, handleUpdateTransferInstrument, handleCreateTransferInstrument, handleGetBankVerificationVendors, legalEntityResponse, associatedLegalArrangement, trackingConfig, accountHolder, problems: propProblems, onSubmit: externalOnSubmit, onChange, taskType: propTaskType, taskName, eventEmitter, capabilities, handleHomeClick, homeButtonLabel, hideNavigation, refreshLegalEntity, navigateBackToTaskList, createTrustedTransferInstrument, handleBankVerificationError, handleBackClick: externalBackClick, }: PayoutDetailsDropinProps): import("preact").JSX.Element;
2
+ export declare function PayoutDetailsDropinComponent({ transferInstrument, setTransferInstrument, handleCreateDocument, handleGetDocument, handleUpdateDocument, handleUpdateTransferInstrument, handleCreateTransferInstrument, handleGetBankVerificationVendors, legalEntityResponse, associatedLegalArrangement, trackingConfig, accountHolder, problems: propProblems, onSubmit: externalOnSubmit, onChange, taskType: propTaskType, taskName, capabilities, handleHomeClick, homeButtonLabel, hideNavigation, refreshLegalEntity, navigateBackToTaskList, createTrustedTransferInstrument, handleBankVerificationError, handleBackClick: externalBackClick, }: PayoutDetailsDropinProps): import("preact").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import type { PciDropinProps } from '../types';
2
- export declare function PciDropinComponent({ legalEntityResponse, pciTemplateResponse, handleHomeClick, handleSign, taskType, eventEmitter, trackingConfig, }: PciDropinProps): import("preact").JSX.Element;
2
+ export declare function PciDropinComponent({ legalEntityResponse, pciTemplateResponse, handleHomeClick, handleSign, taskType, trackingConfig, }: PciDropinProps): import("preact").JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import './ServiceAgreementDropinComponent.scss';
2
2
  import type { ServiceAgreementDropinProps } from '../types';
3
- export declare function ServiceAgreementDropinComponent({ legalEntityResponse, handleGetServiceAgreement, handleViewAcceptedTermsOfServiceDocument, handleDownloadAcceptedTermsOfServiceDocument, handleHomeClick, handleSign, taskType, serviceAgreementTypes, serviceAgreementAcceptanceInfos, trackingConfig, }: ServiceAgreementDropinProps): import("preact").JSX.Element;
3
+ export declare function ServiceAgreementDropinComponent({ legalEntityResponse, handleGetServiceAgreement, handleViewAcceptedTermsOfServiceDocument, handleDownloadAcceptedTermsOfServiceDocument, handleDownloadUnacceptedTermsOfServiceDocument, handleHomeClick, handleSign, taskType, serviceAgreementTypes, serviceAgreementAcceptanceInfos, trackingConfig, }: ServiceAgreementDropinProps): import("preact").JSX.Element;
@@ -26,5 +26,6 @@ export interface ServiceAgreementDropinProps extends DropinProps {
26
26
  handleGetServiceAgreement(legalEntityId: string, data: ServiceAgreementRequest): Promise<ServiceAgreementResponse>;
27
27
  handleViewAcceptedTermsOfServiceDocument: DropinAPIHandlers['handleViewAcceptedTermsOfServiceDocument'];
28
28
  handleDownloadAcceptedTermsOfServiceDocument: DropinAPIHandlers['handleDownloadAcceptedTermsOfServiceDocument'];
29
+ handleDownloadUnacceptedTermsOfServiceDocument: DropinAPIHandlers['handleDownloadUnacceptedTermsOfServiceDocument'];
29
30
  handleSign(legalEntityId: string, termsOfServiceDocumentId: string, signedBy: ServiceAgreementSignRequest): void;
30
31
  }
@@ -1,2 +1,2 @@
1
1
  import type { SolePropDropinProps } from '../../../SoleProp/types';
2
- export declare function SolePropDropinComponent({ problems: problemsProp, capabilities, country: externalCountry, parentLegalEntity, legalEntityResponse, eventEmitter, homeButtonLabel, hideDropinLayout, onSubmit: onExternalSubmit, onChange, taskType, trackingConfig, handleHomeClick, handleCreateDocument, handleGetDocument, handleUpdateDocument, handleAddressSearch, handleFindAddress, handleUpdateLegalEntity, handleCreateLegalEntity, }: SolePropDropinProps): import("preact").JSX.Element;
2
+ export declare function SolePropDropinComponent({ problems: problemsProp, capabilities, country: externalCountry, parentLegalEntity, legalEntityResponse, homeButtonLabel, hideDropinLayout, onSubmit: onExternalSubmit, onChange, taskType, trackingConfig, handleHomeClick, handleCreateDocument, handleGetDocument, handleUpdateDocument, handleAddressSearch, handleFindAddress, handleUpdateLegalEntity, handleCreateLegalEntity, }: SolePropDropinProps): import("preact").JSX.Element;
@@ -2,7 +2,7 @@ import type { State, TopLevelDataSchema } from '../../core/Context/StateContext/
2
2
  import type { Address, AddressSearchRequest, AddressSearchResponse } from '../../core/models/api/address-search';
3
3
  import type { CapabilityName } from '../../core/models/api/capability';
4
4
  import type { CompanyDatasetRequest, CompanyDatasetResponse, CompanySearchRequest, CompanySearchResponse, TinVerificationRequest, TinVerificationResponse } from '../../core/models/api/company-search';
5
- import type { DownloadPci, PciQuestionnaireIds, PciQuestionnaires, PciStatus, PciStatusRequest, PciTemplateRequest, PciTemplateResponse, ServiceAgreementAcceptanceInfos, ServiceAgreementAcceptedDocumentResponse, ServiceAgreementRequest, ServiceAgreementResponse, ServiceAgreementSignRequest, ServiceAgreementSignResponse, ServiceAgreementStatus, SignedBy } from '../../core/models/api/contracts';
5
+ import type { DownloadPci, PciQuestionnaireIds, PciQuestionnaires, PciStatus, PciStatusRequest, PciTemplateRequest, PciTemplateResponse, ServiceAgreementAcceptanceInfos, ServiceAgreementAcceptedDocumentResponse, ServiceAgreementRequest, ServiceAgreementResponse, ServiceAgreementSignRequest, ServiceAgreementSignResponse, ServiceAgreementStatus, ServiceAgreementUnacceptedDocumentRequest, ServiceAgreementUnacceptedDocumentResponse, SignedBy } from '../../core/models/api/contracts';
6
6
  import type { Document, ExistingDocument } from '../../core/models/api/document';
7
7
  import type { BankVerificationVendorsResponse } from '../../core/models/api/get-bankVerification-providers';
8
8
  import type { InstantIdVerificationStartCheckRequest, InstantIdVerificationStartCheckResponse, InstantIdVerificationTokenRequest, InstantIdVerificationTokenResponse } from '../../core/models/api/instant-id-verification';
@@ -13,9 +13,7 @@ import type { OnboardingLinkConfig, OnboardingLinkResponse, OnboardingStatusResp
13
13
  import type { CountryCode } from '../../core/models/country-code';
14
14
  import type { BaseTrackingPayload } from '../../core/utils';
15
15
  import type { TranslationKey } from '../../language/types';
16
- import type EventEmitter from '../EventEmitter';
17
16
  import type { TaskTypes } from '../TaskList/types';
18
- import type { BasicComponentProps } from '../UIElement';
19
17
  interface SingpassLinkResponseItem {
20
18
  authUrl: string;
21
19
  success: boolean;
@@ -23,7 +21,7 @@ interface SingpassLinkResponseItem {
23
21
  export interface SingpassLinkResponse {
24
22
  item: SingpassLinkResponseItem;
25
23
  }
26
- export interface DropinComposerProps extends DropinAPIHandlers, BasicComponentProps {
24
+ export interface DropinComposerProps extends DropinAPIHandlers {
27
25
  capabilities?: CapabilityName[];
28
26
  legalEntityResponse: ExistingLegalEntity;
29
27
  onChange?: (state: State<TopLevelDataSchema>) => void;
@@ -54,6 +52,7 @@ export interface DropinAPIHandlers {
54
52
  handleGetServiceAgreementStatus?(legalEntityId: string): Promise<ServiceAgreementStatus>;
55
53
  handleViewAcceptedTermsOfServiceDocument?(legalEntityId: string, termsOfServiceAcceptanceReference: string): Promise<ServiceAgreementAcceptedDocumentResponse>;
56
54
  handleDownloadAcceptedTermsOfServiceDocument?(legalEntityId: string, termsOfServiceAcceptanceReference: string): Promise<ServiceAgreementAcceptedDocumentResponse>;
55
+ handleDownloadUnacceptedTermsOfServiceDocument?(legalEntityId: string, data: ServiceAgreementUnacceptedDocumentRequest): Promise<ServiceAgreementUnacceptedDocumentResponse>;
57
56
  handleGetServiceAgreementAcceptanceInfos?(legalEntityId: string): Promise<ServiceAgreementAcceptanceInfos>;
58
57
  handleAddressSearch?(data: AddressSearchRequest, legalEntityId: string): Promise<AddressSearchResponse>;
59
58
  handleFindAddress?(addressId: string): Promise<Address>;
@@ -71,7 +70,6 @@ export interface DropinAPIHandlers {
71
70
  export interface DropinProps {
72
71
  legalEntityResponse?: ExistingLegalEntity;
73
72
  baseTrackingPayload?: BaseTrackingPayload;
74
- eventEmitter: EventEmitter;
75
73
  homeButtonLabel?: string;
76
74
  handleHomeClick?(): void;
77
75
  handleBackClick?(): void;
@@ -1,16 +1,14 @@
1
1
  import type { RequireAtLeastOne } from 'type-fest';
2
- import EventEmitter from '../../EventEmitter';
3
2
  import type { IndividualSchema } from '../../Individual/types';
4
3
  import type { TaskTypes } from '../../TaskList/types';
5
4
  interface CreateIndividualComponentPropsBase {
6
5
  taskType?: TaskTypes;
7
6
  onSubmitSuccess?(data: IndividualSchema): void;
8
7
  handleBackClick?(): void;
9
- eventEmitter?: EventEmitter;
10
8
  }
11
9
  export type CreateIndividualComponentProps = CreateIndividualComponentPropsBase & RequireAtLeastOne<{
12
10
  parentLegalEntityId: string;
13
11
  legalEntityId: string;
14
12
  }, 'parentLegalEntityId' | 'legalEntityId'>;
15
- export declare function CreateIndividualComponent({ parentLegalEntityId, legalEntityId, taskType, onSubmitSuccess, handleBackClick, eventEmitter, }: CreateIndividualComponentProps): import("preact").JSX.Element;
13
+ export declare function CreateIndividualComponent({ parentLegalEntityId, legalEntityId, taskType, onSubmitSuccess, handleBackClick, }: CreateIndividualComponentProps): import("preact").JSX.Element;
16
14
  export {};
@@ -1,5 +1,4 @@
1
1
  import type { ExistingLegalEntity } from '../../../core/models/api/legal-entity';
2
- import EventEmitter from '../../EventEmitter';
3
2
  import type { PayoutDetailsSchema } from '../../PayoutDetails/types';
4
3
  export interface CreateTransferInstrumentComponentProps {
5
4
  legalEntityId: ExistingLegalEntity['id'];
@@ -7,6 +6,5 @@ export interface CreateTransferInstrumentComponentProps {
7
6
  openBankingPartnerConfigId?: string;
8
7
  onSubmitSuccess?(data: PayoutDetailsSchema): void;
9
8
  handleBackClick?(): void;
10
- eventEmitter?: EventEmitter;
11
9
  }
12
- export declare function CreateTransferInstrumentComponent({ legalEntityId, transferInstrumentId, openBankingPartnerConfigId, onSubmitSuccess, handleBackClick, eventEmitter, }: CreateTransferInstrumentComponentProps): import("preact").JSX.Element;
10
+ export declare function CreateTransferInstrumentComponent({ legalEntityId, transferInstrumentId, openBankingPartnerConfigId, onSubmitSuccess, handleBackClick, }: CreateTransferInstrumentComponentProps): import("preact").JSX.Element;
@@ -1,7 +1,6 @@
1
1
  import './ViewVerificationStatusComponent.scss';
2
2
  import type { ExistingLegalEntity } from '../../../core/models/api/legal-entity';
3
3
  import { OnboardingStatus } from '../../../core/models/api/view-verification-status';
4
- import type EventEmitter from '../../EventEmitter';
5
4
  import type { ErrorEntity, OnboardingRedirectConfig } from './types';
6
5
  import { OnboardingUrlTarget } from './types';
7
6
  export interface ViewVerificationStatusComponentProps {
@@ -13,6 +12,5 @@ export interface ViewVerificationStatusComponentProps {
13
12
  onStatusChange?: (status: OnboardingStatus) => void;
14
13
  onError?: (errorEntity: ErrorEntity) => void;
15
14
  onRedirect?: (config: OnboardingRedirectConfig) => void;
16
- eventEmitter?: EventEmitter;
17
15
  }
18
- export declare function ViewVerificationStatusComponent({ legalEntityId, hideExplanation, returnUrl, redirectTarget, themeId, onStatusChange, onError, onRedirect, eventEmitter, }: ViewVerificationStatusComponentProps): import("preact").JSX.Element;
16
+ export declare function ViewVerificationStatusComponent({ legalEntityId, hideExplanation, returnUrl, redirectTarget, themeId, onStatusChange, onError, onRedirect, }: ViewVerificationStatusComponentProps): import("preact").JSX.Element;
@@ -2,11 +2,13 @@ type NextEventListener = () => void;
2
2
  type BackEventListener = () => void;
3
3
  type ValidateEventListener = () => void;
4
4
  type UpdateLocaleEventListener = (locale: string) => void;
5
+ type UpdateExpiryEventListener = (expiry: number | undefined) => void;
5
6
  interface EventListenerTypeMap {
6
7
  next: NextEventListener;
7
8
  back: BackEventListener;
8
9
  validate: ValidateEventListener;
9
10
  updateLocale: UpdateLocaleEventListener;
11
+ updateExpiry: UpdateExpiryEventListener;
10
12
  }
11
13
  type EventName = keyof EventListenerTypeMap;
12
14
  declare class EventEmitter {
@@ -3,7 +3,6 @@ import type { CapabilityName } from '../../core/models/api/capability';
3
3
  import type { LegalEntity } from '../../core/models/api/legal-entity';
4
4
  import type { CountryCode } from '../../core/models/country-code';
5
5
  import type { FormModel } from '../../core/models/form';
6
- import type EventEmitter from '../EventEmitter';
7
6
  import type { BankAccountNumberSchema } from '../internal/BankAccountNumber/types';
8
7
  import type { CurrencySchema } from '../internal/Currency/types';
9
8
  export interface PayoutAccountSchema extends CurrencySchema, BankAccountNumberSchema {
@@ -20,7 +19,6 @@ export interface PayoutAccountSchema extends CurrencySchema, BankAccountNumberSc
20
19
  accountHolderCity?: string;
21
20
  }
22
21
  export interface PayoutAccountProps extends BaseInnerFormProps<PayoutAccountSchema> {
23
- eventEmitter?: EventEmitter;
24
22
  capabilities?: CapabilityName[];
25
23
  activeForm?: FormModel;
26
24
  forms?: FormModel[];
@@ -10,7 +10,6 @@ import type { FormModel } from '../../core/models/form';
10
10
  import type { BankDocumentSchema } from '../BankDocument';
11
11
  import type { AccountVerificationSchema, CountryBankVerificationVendors } from '../BankVerification/types';
12
12
  import type { DropinAPIHandlers, DropinProps } from '../Dropins/types';
13
- import type EventEmitter from '../EventEmitter';
14
13
  import type { PayoutAccountSchema } from '../PayoutAccount/types';
15
14
  import type { PayoutVerificationMethodSchema } from '../PayoutVerificationMethod/types';
16
15
  import type { TaskTypes } from '../TaskList/types';
@@ -22,7 +21,6 @@ export interface PayoutDetailsSchema {
22
21
  }
23
22
  export interface PayoutDetailsProps extends BaseOuterFormProps<PayoutDetailsSchema> {
24
23
  capabilities?: CapabilityName[];
25
- eventEmitter: EventEmitter;
26
24
  activeForm?: FormModel;
27
25
  forms?: FormModel[];
28
26
  problems?: EntityProblems;
@@ -3,7 +3,7 @@ export declare const solePropForms: {
3
3
  readonly solePropNameAndCountry: {
4
4
  readonly formId: "solePropNameAndCountry";
5
5
  readonly formName: "basicInformation";
6
- readonly fields: ("country" | "legalCompanyName")[];
6
+ readonly fields: ("country" | "legalCompanyName" | keyof import("../../internal/CountryOfGoverningLawField/types").CountryOfGoverningLawFieldSchema)[];
7
7
  };
8
8
  readonly solePropRegistrationDetails: {
9
9
  readonly formId: "solePropRegistrationDetails";
@@ -1,4 +1,4 @@
1
1
  import '../TaskListItem.scss';
2
2
  import type { TaskListItemProps } from '../types';
3
- declare const TaskListItem: ({ title, tagline, icon, status, statusLabel, onNavigateToTask, disabled, problems, downloadHandler, info, loading, showErrorAlerts, showWarningAlert, warningMessage, removeEntity, isRemoveDisabled, handleIsRemoveDisabled, }: TaskListItemProps) => import("preact").JSX.Element;
3
+ declare const TaskListItem: ({ title, tagline, icon, status, statusLabel, onNavigateToTask, disabled, problems, downloadHandler, info, loading, showErrorAlerts, showWarningAlert, warningMessage, removeEntity, isRemoveDisabled, handleIsRemoveDisabled, testId, }: TaskListItemProps) => import("preact").JSX.Element;
4
4
  export default TaskListItem;
@@ -91,4 +91,5 @@ export interface TaskListItemProps extends TaskStatusProps {
91
91
  removeEntity?: () => void;
92
92
  isRemoveDisabled?: boolean;
93
93
  handleIsRemoveDisabled?: Dispatch<StateUpdater<boolean>>;
94
+ testId?: string;
94
95
  }
@@ -1,24 +1,22 @@
1
1
  import '../style/_utilities.scss';
2
2
  import type { JSX } from 'preact';
3
+ import type { EmptyObject } from 'type-fest';
3
4
  import type { AuthProviderProps } from '../core/Context/AuthContext/AuthProvider';
4
5
  import type { CoreProviderProps } from '../core/Context/CoreProvider';
5
6
  import type { ExperimentsProps } from '../core/Context/ExperimentContext/types';
7
+ import type { ExpiryProviderProps } from '../core/Context/ExpiryContext/ExpiryContext';
6
8
  import type { I18nProviderProps } from '../core/Context/I18nProvider/I18nProvider';
7
9
  import type { SettingsProps } from '../core/Context/SettingsContext/types';
8
10
  import type { UserEventCallback } from '../core/user-events';
9
11
  import type { BaseElementProps } from './BaseElement';
10
12
  import { BaseElement } from './BaseElement';
11
- import type EventEmitter from './EventEmitter';
12
13
  import type { ComponentMap } from './index';
13
- export interface BasicComponentProps {
14
- eventEmitter?: EventEmitter;
15
- }
16
- export interface UIElementProps<ComponentProps extends BasicComponentProps> extends BaseElementProps, CoreProviderProps, AuthProviderProps, I18nProviderProps, SettingsProps, ExperimentsProps {
14
+ export interface UIElementProps<ComponentProps extends object> extends BaseElementProps, CoreProviderProps, AuthProviderProps, I18nProviderProps, ExpiryProviderProps, SettingsProps, ExperimentsProps {
17
15
  onUserEvent?: UserEventCallback;
18
16
  component: (props: ComponentProps) => JSX.Element;
19
17
  componentName: keyof ComponentMap;
20
18
  componentProps: ComponentProps;
21
19
  }
22
- export declare class UIElement<ComponentProps extends BasicComponentProps = BasicComponentProps> extends BaseElement<UIElementProps<ComponentProps>> {
20
+ export declare class UIElement<ComponentProps extends object = EmptyObject> extends BaseElement<UIElementProps<ComponentProps>> {
23
21
  render: () => JSX.Element;
24
22
  }
@@ -2,6 +2,7 @@ import type { CoreProviderProps } from '../core/Context/CoreProvider';
2
2
  import type { ExperimentsProps } from '../core/Context/ExperimentContext/types';
3
3
  import type { SettingsProps } from '../core/Context/SettingsContext/types';
4
4
  import type { UserEventCallback } from '../core/user-events';
5
+ import { BusinessDetailsDropinComponent } from './Dropins/BusinessDetailsDropin';
5
6
  import { CompanyDropinComponent } from './Dropins/CompanyDropin';
6
7
  import { CompanySearchDropinComponent } from './Dropins/CompanySearchDropin';
7
8
  import { DropinComposerComponent } from './Dropins/DropinComposer';
@@ -18,6 +19,7 @@ import { ViewVerificationStatusComponent } from './EmbeddedDropins/ViewVerificat
18
19
  */
19
20
  export declare const componentsMap: {
20
21
  readonly individualDropin: typeof IndividualDropinComponent;
22
+ readonly businessDetailsDropin: typeof BusinessDetailsDropinComponent;
21
23
  readonly companyDropin: typeof CompanyDropinComponent;
22
24
  readonly companySearchDropin: typeof CompanySearchDropinComponent;
23
25
  readonly taskList: typeof DropinComposerComponent;
@@ -1,3 +1,3 @@
1
1
  import type { CountryFieldProps, CountryFieldSchema } from './types';
2
2
  export declare const COUNTRY_FIELD: Array<keyof CountryFieldSchema>;
3
- export declare function CountryField({ data, valid, errors, labels, readonly, handleChangeFor, helperText, allowedCountries, classNameModifiers, }: CountryFieldProps): import("preact").JSX.Element;
3
+ export declare function CountryField({ name, data, valid, errors, labels, readonly, handleChangeFor, helperText, allowedCountries, classNameModifiers, }: CountryFieldProps): import("preact").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import type { CountryOfGoverningLawFieldProps, CountryOfGoverningLawFieldSchema } from './types';
2
+ export declare const COUNTRY_OF_GOVERNING_LAW_FIELD: Array<keyof CountryOfGoverningLawFieldSchema>;
3
+ export declare function CountryOfGoverningLawField({ data, valid, errors, labels, readonly, handleChangeFor, helperText, allowedCountries, classNameModifiers, }: CountryOfGoverningLawFieldProps): import("preact").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './CountryOfGoverningLawField';
@@ -0,0 +1,9 @@
1
+ import type { BaseFormFieldProps } from '../../../core/hooks/useForm';
2
+ import type { CountryCode } from '../../../core/models/country-code';
3
+ export interface CountryOfGoverningLawFieldSchema {
4
+ countryOfGoverningLaw?: CountryCode;
5
+ differentCountryOfGoverningLaw?: boolean;
6
+ }
7
+ export interface CountryOfGoverningLawFieldProps extends BaseFormFieldProps<CountryOfGoverningLawFieldSchema> {
8
+ allowedCountries?: readonly CountryCode[];
9
+ }
@@ -0,0 +1,21 @@
1
+ import './_modal.scss';
2
+ import './Overlay/_overlay.scss';
3
+ import type { ComponentChildren, JSX } from 'preact';
4
+ export interface ModalProps {
5
+ header?: ComponentChildren;
6
+ content?: ComponentChildren;
7
+ footer?: ComponentChildren;
8
+ size?: 'small' | 'medium' | 'large';
9
+ classNames?: {
10
+ modal?: string;
11
+ header?: string;
12
+ content?: string;
13
+ footer?: string;
14
+ };
15
+ isDismissible?: boolean;
16
+ isOpen?: boolean;
17
+ title?: string;
18
+ onClose?: () => void;
19
+ role?: JSX.AriaRole;
20
+ }
21
+ export declare const Modal: ({ content, footer, header, classNames, size, title, isDismissible, isOpen, onClose, role, }: ModalProps) => JSX.Element;
@@ -4,4 +4,4 @@ import type { TopLevelDataSchema } from '../../../core/Context/StateContext/type
4
4
  import type { FormModel } from '../../../core/models/form';
5
5
  import type { SummaryProps } from './types';
6
6
  export declare const summaryStep: FormModel;
7
- export declare function Summary<TLDS extends PartialDeep<TopLevelDataSchema>>({ data, forms, omittedKeys, gotoForm, labels, problems, trackNavigation, omittedForms, showLegalCaption, }: SummaryProps<TLDS>): import("preact").JSX.Element;
7
+ export declare function Summary<TLDS extends PartialDeep<TopLevelDataSchema>>({ data, forms, omittedKeys, gotoForm, labels, problems, trackNavigation, omittedForms, showLegalCaption, showTaxExemptedLegalCaption, }: SummaryProps<TLDS>): import("preact").JSX.Element;
@@ -14,4 +14,5 @@ export interface SummaryProps<Schema> {
14
14
  gotoForm(nextFormIndex: number): void;
15
15
  problems?: EntityProblems;
16
16
  showLegalCaption?: boolean;
17
+ showTaxExemptedLegalCaption?: boolean;
17
18
  }