@adyen/kyc-components 2.56.3 → 2.57.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 (161) hide show
  1. package/dist/es/adyen-kyc-components.es.js +2339 -4348
  2. package/dist/es/{bg-BG-C4nC7lgg.js → bg-BG-Cg7uHZ7u.js} +1 -3
  3. package/dist/es/{cs-CZ-BxobhOz0.js → cs-CZ-MP5JPvEI.js} +1 -3
  4. package/dist/es/{da-DK-CJQ_v5bw.js → da-DK-Bf4-HdQJ.js} +1 -3
  5. package/dist/es/{de-DE-DyXEvGpl.js → de-DE-CpV6Dp0r.js} +1 -3
  6. package/dist/es/{el-GR-B87xOyEW.js → el-GR-DzwQKvWE.js} +1 -3
  7. package/dist/es/{es-ES-CQ080JE6.js → es-ES-E5qWUSQV.js} +1 -3
  8. package/dist/es/{et-EE-C59Hbpp8.js → et-EE-DRZrZKKJ.js} +1 -3
  9. package/dist/es/{fi-FI-CQ7Kqosi.js → fi-FI-Bk1rCYU6.js} +1 -3
  10. package/dist/es/{fr-FR-Ds-rVWJg.js → fr-FR-tlByDhb7.js} +1 -3
  11. package/dist/es/{hr-HR-qZTRHb6-.js → hr-HR-CZUCz_Lu.js} +1 -3
  12. package/dist/es/{hu-HU-u0MXZonO.js → hu-HU-CmEicftd.js} +1 -3
  13. package/dist/es/instant-verification-method-NGPLGC6g.js +50 -0
  14. package/dist/es/{it-IT-Db2fDOwj.js → it-IT-BNGHjXBu.js} +1 -3
  15. package/dist/es/{lt-LT-YNRlk3E4.js → lt-LT-BDv4TY99.js} +1 -3
  16. package/dist/es/{lv-LV-Bs6ze43-.js → lv-LV-HfHaTFsC.js} +1 -3
  17. package/dist/es/{nl-NL-DaPcO0Ip.js → nl-NL-CSyNOXAT.js} +1 -3
  18. package/dist/es/{no-NO-COWxcdtp.js → no-NO-BzBtvG7T.js} +1 -3
  19. package/dist/es/{pl-PL-B9x4FJoF.js → pl-PL-CwUuiZyG.js} +1 -3
  20. package/dist/es/{pt-PT-CzVzrodv.js → pt-PT-CY_ZCE9N.js} +1 -3
  21. package/dist/es/{ro-RO-DdA0NkvN.js → ro-RO-C-OpimQU.js} +1 -3
  22. package/dist/es/{sk-SK-DZTRus9V.js → sk-SK-Vi54HLZU.js} +1 -3
  23. package/dist/es/{sl-SI-6y2JusJ9.js → sl-SI-2FDuP5IV.js} +1 -3
  24. package/dist/es/{sv-SE-NsI7llcr.js → sv-SE-lw5yiImq.js} +1 -3
  25. package/dist/es/tink-logo-WImtH5CL.js +8 -0
  26. package/dist/style.css +278 -446
  27. package/dist/types/components/AdditionalInformation/VerifiedBusinessCard.d.ts +1 -1
  28. package/dist/types/components/AdditionalInformation/utils.d.ts +9 -0
  29. package/dist/types/components/BaseElement.d.ts +1 -1
  30. package/dist/types/components/BusinessDetails/forms.d.ts +1 -1
  31. package/dist/types/components/BusinessDetails/types.d.ts +0 -2
  32. package/dist/types/components/BusinessSelection/types.d.ts +1 -2
  33. package/dist/types/components/Company/component/CompanyComponent.d.ts +2 -3
  34. package/dist/types/components/Company/rules.d.ts +2 -2
  35. package/dist/types/components/CompanyStructure/component/CompanyStructureComponent.d.ts +3 -3
  36. package/dist/types/components/CompanyStructure/types.d.ts +1 -4
  37. package/dist/types/components/CompanyType/types.d.ts +1 -2
  38. package/dist/types/components/Dropins/BusinessDetailsDropin/components/BusinessDetailsDropinComponent.d.ts +1 -1
  39. package/dist/types/components/Dropins/BusinessDetailsDropin/utils.d.ts +1 -1
  40. package/dist/types/components/Dropins/CompanyDropin/components/CompanyDropinComponent.d.ts +1 -1
  41. package/dist/types/components/EmbeddedDropins/CreateIndividualComponent/CreateIndividualComponent.d.ts +1 -2
  42. package/dist/types/components/Individual/types.d.ts +1 -1
  43. package/dist/types/components/Individual/validators.d.ts +2 -1
  44. package/dist/types/components/PayoutDetails/component/PayoutDetailsComponent.d.ts +8 -4
  45. package/dist/types/components/PayoutDetails/types.d.ts +4 -1
  46. package/dist/types/components/PayoutVerificationMethod/component/PreferInstantVerificationMethod/PreferInstantVerificationMethod.d.ts +9 -0
  47. package/dist/types/components/PayoutVerificationMethod/types.d.ts +5 -0
  48. package/dist/types/components/PersonalDetails/types.d.ts +1 -2
  49. package/dist/types/components/RegistrationAddress/types.d.ts +1 -4
  50. package/dist/types/components/SoleProp/component/SolePropComponent.d.ts +1 -1
  51. package/dist/types/components/TaskList/component/TaskListItem.d.ts +1 -1
  52. package/dist/types/components/TaskList/types.d.ts +0 -2
  53. package/dist/types/components/index.d.ts +1 -3
  54. package/dist/types/components/internal/AccountHolder/types.d.ts +0 -10
  55. package/dist/types/components/internal/Address/AddressComponent.d.ts +1 -1
  56. package/dist/types/components/internal/Address/constants.d.ts +2 -1
  57. package/dist/types/components/internal/Address/types.d.ts +2 -3
  58. package/dist/types/components/internal/Address/utils.d.ts +2 -3
  59. package/dist/types/components/internal/BusinessRegistrationNumber/fieldConfig.d.ts +2 -0
  60. package/dist/types/components/internal/BusinessRegistrationNumberField/BusinessRegistrationNumberField.d.ts +1 -1
  61. package/dist/types/components/internal/Button/Button.d.ts +1 -1
  62. package/dist/types/components/internal/Button/types.d.ts +1 -0
  63. package/dist/types/components/internal/Card/Card.d.ts +1 -1
  64. package/dist/types/components/internal/Card/types.d.ts +3 -0
  65. package/dist/types/components/internal/FormFields/MaskedInputText/MaskedInputText.d.ts +3 -1
  66. package/dist/types/components/internal/Link/Link.d.ts +1 -1
  67. package/dist/types/components/internal/Link/types.d.ts +1 -0
  68. package/dist/types/components/internal/Svg/svgs.d.ts +1 -0
  69. package/dist/types/core/Context/ExperimentContext/types.d.ts +4 -4
  70. package/dist/types/core/Context/SettingsContext/types.d.ts +3 -1
  71. package/dist/types/core/Context/StateContext/types.d.ts +2 -3
  72. package/dist/types/core/hooks/useBusinessData/types.d.ts +1 -2
  73. package/dist/types/core/hooks/useBusinessData/useBusinessData.d.ts +3 -0
  74. package/dist/types/core/hooks/useForm/reducer.d.ts +3 -3
  75. package/dist/types/core/hooks/useForm/types.d.ts +2 -2
  76. package/dist/types/core/hooks/useForm/useForm.d.ts +1 -1
  77. package/dist/types/core/models/api/company-search.d.ts +0 -1
  78. package/dist/types/core/models/api/document.d.ts +2 -1
  79. package/dist/types/core/models/company.d.ts +0 -4
  80. package/dist/types/core/models/form-rules.d.ts +2 -0
  81. package/dist/types/core/models/form.d.ts +0 -1
  82. package/dist/types/core/process-field-configurations.d.ts +2 -3
  83. package/dist/types/utils/datasetUtil.d.ts +3 -1
  84. package/dist/types/utils/formUtils.d.ts +1 -0
  85. package/dist/types/utils/getFieldsWithExistingData.d.ts +1 -2
  86. package/dist/types/utils/mapping/businessDetails/index.d.ts +1 -0
  87. package/dist/types/utils/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +1 -2
  88. package/dist/types/utils/mapping/componentApiMapping.d.ts +5 -43
  89. package/dist/types/utils/mapping/mapping.d.ts +1 -2
  90. package/dist/types/utils/masking/masks/businessRegistrationNumberMasks.d.ts +4 -0
  91. package/dist/types/utils/regex/businessRegistrationNumberPatterns.d.ts +1 -0
  92. package/package.json +1 -1
  93. package/dist/es/tink-logo-CXMbO28D.js +0 -5
  94. package/dist/types/components/AdditionalInformation/index.d.ts +0 -1
  95. package/dist/types/components/BasicInformation/index.d.ts +0 -1
  96. package/dist/types/components/BusinessDetails/index.d.ts +0 -1
  97. package/dist/types/components/BusinessSelection/index.d.ts +0 -1
  98. package/dist/types/components/Company/index.d.ts +0 -1
  99. package/dist/types/components/CompanyBasics/component/CompanyBasicsComponent.d.ts +0 -8
  100. package/dist/types/components/CompanyBasics/index.d.ts +0 -1
  101. package/dist/types/components/CompanyBasics/types.d.ts +0 -27
  102. package/dist/types/components/CompanyLookup/CompanyLookupResultsHeader.d.ts +0 -2
  103. package/dist/types/components/CompanyLookup/CompanyLookupResultsList.d.ts +0 -2
  104. package/dist/types/components/CompanyLookup/LookupResult.d.ts +0 -3
  105. package/dist/types/components/CompanyLookup/component/CompanyLookupComponent.d.ts +0 -5
  106. package/dist/types/components/CompanyLookup/index.d.ts +0 -1
  107. package/dist/types/components/CompanyLookup/types.d.ts +0 -66
  108. package/dist/types/components/CompanyOtherDetails/component/CompanyOtherDetailsComponent.d.ts +0 -8
  109. package/dist/types/components/CompanyOtherDetails/index.d.ts +0 -1
  110. package/dist/types/components/CompanyOtherDetails/types.d.ts +0 -20
  111. package/dist/types/components/CompanyRegistrationDetails/index.d.ts +0 -1
  112. package/dist/types/components/CompanySearch/component/CompanySearchComponent.d.ts +0 -2
  113. package/dist/types/components/CompanySearch/forms.d.ts +0 -40
  114. package/dist/types/components/CompanySearch/index.d.ts +0 -1
  115. package/dist/types/components/CompanySearch/types.d.ts +0 -34
  116. package/dist/types/components/CompanyStructure/index.d.ts +0 -1
  117. package/dist/types/components/Dropins/BusinessDetailsDropin/index.d.ts +0 -1
  118. package/dist/types/components/Dropins/CompanySearchDropin/components/CompanySearchDropinComponent.d.ts +0 -2
  119. package/dist/types/components/Dropins/CompanySearchDropin/index.d.ts +0 -1
  120. package/dist/types/components/Dropins/CompanySearchDropin/types.d.ts +0 -24
  121. package/dist/types/components/Dropins/CompanySearchDropin/utils.d.ts +0 -15
  122. package/dist/types/components/Dropins/FormNavigation/index.d.ts +0 -1
  123. package/dist/types/components/RegistrationAddress/index.d.ts +0 -1
  124. package/dist/types/components/RegistrationDocument/index.d.ts +0 -1
  125. package/dist/types/components/TaxDocument/index.d.ts +0 -1
  126. package/dist/types/components/internal/AccountHolder/AccountHolder.d.ts +0 -3
  127. package/dist/types/components/internal/AccountHolder/index.d.ts +0 -1
  128. package/dist/types/components/internal/AccountHolder/validate.d.ts +0 -3
  129. package/dist/types/components/internal/Alert/index.d.ts +0 -1
  130. package/dist/types/components/internal/BusinessNameField/index.d.ts +0 -1
  131. package/dist/types/components/internal/BusinessRegistrationNumberField/index.d.ts +0 -1
  132. package/dist/types/components/internal/Card/index.d.ts +0 -2
  133. package/dist/types/components/internal/CountryField/index.d.ts +0 -1
  134. package/dist/types/components/internal/CountryOfGoverningLawField/index.d.ts +0 -1
  135. package/dist/types/components/internal/DBANameField/index.d.ts +0 -1
  136. package/dist/types/components/internal/DateOfIncorporationField/index.d.ts +0 -1
  137. package/dist/types/components/internal/FormFields/MultiSelectList/index.d.ts +0 -1
  138. package/dist/types/components/internal/FormFields/RadioGroupCard/index.d.ts +0 -3
  139. package/dist/types/components/internal/LegalCompanyNameField/index.d.ts +0 -1
  140. package/dist/types/components/internal/LegalFormField/index.d.ts +0 -1
  141. package/dist/types/components/internal/NaceCodeField/index.d.ts +0 -1
  142. package/dist/types/components/internal/StateField/index.d.ts +0 -1
  143. package/dist/types/components/internal/StockExchangeMICField/index.d.ts +0 -1
  144. package/dist/types/components/internal/StockISINField/index.d.ts +0 -1
  145. package/dist/types/components/internal/StockTickerSymbol/index.d.ts +0 -1
  146. package/dist/types/components/internal/TaxId/index.d.ts +0 -1
  147. package/dist/types/components/internal/TaxInformationField/index.d.ts +0 -1
  148. package/dist/types/components/internal/TradingNameField/index.d.ts +0 -1
  149. package/dist/types/core/hooks/useBusinessData/index.d.ts +0 -1
  150. package/dist/types/core/hooks/useCompanySearch/index.d.ts +0 -1
  151. package/dist/types/core/hooks/useCompanySearch/types.d.ts +0 -46
  152. package/dist/types/core/hooks/useCompanySearch/useCompanySearch.d.ts +0 -5
  153. package/dist/types/core/hooks/useCompanySearchTaskSubmit.d.ts +0 -36
  154. package/dist/types/core/hooks/useEnableNewEntryFlow.d.ts +0 -1
  155. package/dist/types/core/hooks/useStaticValidator/index.d.ts +0 -1
  156. package/dist/types/types/index.d.ts +0 -9
  157. package/dist/types/utils/mapping/companySearch/index.d.ts +0 -4
  158. package/dist/types/utils/mapping/companySearch/mapCompanyDataResponseToFormSchema.d.ts +0 -3
  159. package/dist/types/utils/mapping/companySearch/mapCompanySearchSchemaToLegalEntity.d.ts +0 -5
  160. package/dist/types/utils/mapping/companySearch/mapLegalEntityToCompanySearchSchema.d.ts +0 -5
  161. /package/dist/types/utils/mapping/{companySearch → businessDetails}/mapOrganizationTypeToCompanyType.d.ts +0 -0
@@ -1,6 +1,6 @@
1
1
  import './VerifiedBusinessCard.scss';
2
2
  import type { CompanyDatasetResponse } from '../../core/models/api/company-search';
3
- import type { AddressSchema } from '../../types';
3
+ import type { AddressSchema } from '../internal/Address/types';
4
4
  interface VerifiedBusinessDataProps {
5
5
  verifiedBusiness: CompanyDatasetResponse | undefined;
6
6
  verifiedAddress: AddressSchema | undefined;
@@ -2,5 +2,14 @@ import type { CompanyDatasetResponse } from '../../core/models/api/company-searc
2
2
  import type { ValidatorMode } from '../../utils/validation/types';
3
3
  import type { AddressSchema } from '../internal/Address/types';
4
4
  import type { AdditionalInformationSchema } from './types';
5
+ /**
6
+ * Parses the nested trusted fields on a legal entity e.g. ['registrationAddress.address', 'registrationAddress.postalCode']
7
+ *
8
+ * @param field - field in formSchema
9
+ * @param data - data in useForm
10
+ * @param trustedFields - trustedFields on legal entity
11
+ * @returns An array of the nested field keys that are trusted
12
+ */
13
+ export declare const getNestedTrustedFields: <FormSchema>(field: keyof FormSchema, data: FormSchema | undefined, trustedFields: string[] | undefined) => Array<keyof FormSchema>;
5
14
  export declare const mapAddressData: (verifiedBusiness: CompanyDatasetResponse) => AddressSchema;
6
15
  export declare const applyVerifiedBusinessData: (verifiedBusiness: CompanyDatasetResponse | undefined, handleChangeFor: (key: keyof AdditionalInformationSchema, mode?: ValidatorMode) => (e: any) => void) => void;
@@ -34,7 +34,7 @@ export declare abstract class BaseElement<P extends BaseElementProps> {
34
34
  /**
35
35
  * Unmounts an element and mounts it again on the same node
36
36
  */
37
- remount(component?: JSX.Element): this;
37
+ remount(): this;
38
38
  /**
39
39
  * Unmounts a payment element from the DOM
40
40
  */
@@ -15,7 +15,7 @@ export declare const getForms: (country: CountryCode) => {
15
15
  readonly formName: "companyStructureFormName";
16
16
  readonly formHeading: "companyStructureFormName";
17
17
  readonly formDescription: "companyStructureFormDescription";
18
- readonly fields: (keyof import("../CompanyStructure/types").CompanyStructureSchema)[];
18
+ readonly fields: "entityType"[];
19
19
  };
20
20
  readonly additionalInformation: {
21
21
  readonly formId: "additionalInformation";
@@ -2,7 +2,6 @@ import type { Dispatch, StateUpdater } from 'preact/hooks';
2
2
  import type { HookStatus } from '../../core/hooks/types';
3
3
  import type { BaseOuterFormProps } from '../../core/hooks/useForm';
4
4
  import type { CompanyDatasetResponse, CompanySearchRequest, CompanySearchResult } from '../../core/models/api/company-search';
5
- import type { LegalEntityType } from '../../core/models/api/legal-entity-type';
6
5
  import type { CountryCode } from '../../core/models/country-code';
7
6
  import type { FormModel } from '../../core/models/form';
8
7
  import type { BaseTrackingPayload } from '../../core/utils';
@@ -43,5 +42,4 @@ export interface BusinessDetailsProps extends BaseOuterFormProps<BusinessDetails
43
42
  verifyBusinessData: (data: CompanyDatasetResponse, tin: string) => Promise<boolean | undefined>;
44
43
  proceedToManualDataEntry: () => Promise<void>;
45
44
  onSubmit?: (company: BusinessDetailsSchema) => void;
46
- onTypeSwitch?: (legalEntityType: LegalEntityType) => void;
47
45
  }
@@ -1,7 +1,6 @@
1
1
  import type { Dispatch, StateUpdater } from 'preact/hooks';
2
2
  import type { HookStatus } from '../../core/hooks/types';
3
3
  import type { CompanyDatasetResponse, CompanySearchResult } from '../../core/models/api/company-search';
4
- import type { ProvinceCode } from '../../core/models/province-code';
5
4
  import type { StateCode } from '../../core/models/state-code';
6
5
  export interface BusinessSelectionProps {
7
6
  showCompanyStructure: boolean;
@@ -11,7 +10,7 @@ export interface BusinessSelectionProps {
11
10
  resettingTrustedData: HookStatus;
12
11
  searchResults: CompanySearchResult[] | undefined;
13
12
  invalidTin: boolean;
14
- fetchBusinessData: (company: CompanySearchResult, state?: StateCode | ProvinceCode) => Promise<CompanyDatasetResponse | undefined>;
13
+ fetchBusinessData: (company: CompanySearchResult, state?: StateCode) => Promise<CompanyDatasetResponse | undefined>;
15
14
  verifyBusinessData: (data: CompanyDatasetResponse, tin: string) => Promise<boolean | undefined>;
16
15
  resetTinVerification: () => void;
17
16
  proceedToManualDataEntry: () => Promise<void>;
@@ -1,5 +1,4 @@
1
1
  import './CompanyComponent.scss';
2
- import type { CompanyTypeSchema } from '../../CompanyType/types';
3
2
  import type { CompanyProps } from '../types';
4
3
  export declare const companyForms: {
5
4
  readonly companyNameAndCountry: {
@@ -10,12 +9,12 @@ export declare const companyForms: {
10
9
  readonly companyType: {
11
10
  readonly formId: "companyType";
12
11
  readonly formName: "companyStructure";
13
- readonly fields: (keyof CompanyTypeSchema)[];
12
+ readonly fields: "entityType"[];
14
13
  };
15
14
  readonly companyRegistrationDetails: {
16
15
  readonly formId: "companyRegistrationDetails";
17
16
  readonly formName: "registrationDetails";
18
- readonly fields: ("dateOfIncorporation" | "stockExchangeMIC" | "stockISIN" | "stockTickerSymbol" | keyof import("../../internal/BusinessRegistrationNumberField/types").BusinessRegistrationNumberFieldSchema | keyof import("../../internal/VatNumberField").VatNumberFieldSchema | keyof import("../../internal/TaxInformationField/types").TaxInformationFieldSchema | keyof import("../../internal/TradingNameField/types").TradingNameFieldSchema)[];
17
+ readonly fields: ("dateOfIncorporation" | "stockExchangeMIC" | "stockISIN" | "stockTickerSymbol" | keyof import("../../internal/VatNumberField").VatNumberFieldSchema | keyof import("../../internal/BusinessRegistrationNumberField/types").BusinessRegistrationNumberFieldSchema | keyof import("../../internal/TaxInformationField/types").TaxInformationFieldSchema | keyof import("../../internal/TradingNameField/types").TradingNameFieldSchema)[];
19
18
  };
20
19
  readonly companyRegistrationAddress: {
21
20
  readonly formId: "companyRegistrationAddress";
@@ -1,12 +1,12 @@
1
1
  import type { CountryCode } from '../../core/models/country-code';
2
2
  import type { FormRules } from '../../core/models/form-rules';
3
3
  import type { BusinessDetailsSchema } from '../BusinessDetails/types';
4
- import type { CompanySearchSchema } from '../CompanySearch/types';
5
4
  import type { SolePropSchema } from '../SoleProp/types';
6
5
  import type { CompanySchema } from './types';
7
6
  export declare const COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION: CountryCode[];
8
7
  export declare const COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION: CountryCode[];
9
8
  export declare const COUNTRIES_WITH_POSSIBLE_REGISTRATION_EXEMPTIONS_FOR_SOLE_PROPS: CountryCode[];
9
+ export declare const COUNTRIES_WITH_POSSIBLE_REGISTRATION_EXEMPTIONS_FOR_ORGANIZATIONS: CountryCode[];
10
10
  export declare const COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER: CountryCode[];
11
11
  /**
12
12
  * Also used to determine what documenttype needs to be used
@@ -22,4 +22,4 @@ export declare const COUNTRIES_THAT_USES_UEN_OR_GST: CountryCode[];
22
22
  * @description These are the countries that currently have a search provider that requires their tax information (TIN, VAT, etc) to search and verify details.
23
23
  */
24
24
  export declare const COUNTRIES_USING_COMPANY_SEARCH: readonly CountryCode[];
25
- export declare const rules: FormRules<CompanySchema | CompanySearchSchema | SolePropSchema | BusinessDetailsSchema>;
25
+ export declare const rules: FormRules<CompanySchema | SolePropSchema | BusinessDetailsSchema>;
@@ -1,6 +1,6 @@
1
1
  import './CompanyStructureComponent.scss';
2
- import type { CompanySearchSchema } from '../../CompanySearch/types';
2
+ import type { BusinessDetailsSchema } from '../../BusinessDetails/types';
3
3
  import type { CompanyStructureProps, CompanyStructureSchema } from '../types';
4
- export declare const COMPANY_STRUCTURE_FORM_ID: keyof CompanySearchSchema;
4
+ export declare const COMPANY_STRUCTURE_FORM_ID: keyof BusinessDetailsSchema;
5
5
  export declare const companyStructureFields: Array<keyof CompanyStructureSchema>;
6
- export declare function CompanyStructureComponent({ id, data, labels, heading, description, formVerificationErrors, fieldValidationErrors, requiredFields, country, verifiedBusiness, kompanyVerifiedData, showCompanyStructure, shouldValidate, ...props }: CompanyStructureProps): import("preact").JSX.Element;
6
+ export declare function CompanyStructureComponent({ data, labels, heading, description, formVerificationErrors, fieldValidationErrors, requiredFields, country, verifiedBusiness, showCompanyStructure, shouldValidate, }: CompanyStructureProps): import("preact").JSX.Element;
@@ -2,14 +2,11 @@ import type { BaseInnerFormProps } from '../../core/hooks/useForm';
2
2
  import type { CompanyDatasetResponse } from '../../core/models/api/company-search';
3
3
  import type { CompanyTypesValue } from '../../core/models/api/company-types-value';
4
4
  import type { CountryCode } from '../../core/models/country-code';
5
- import type { CompanySearchSchema } from '../CompanySearch/types';
6
- import type { AccountHolderSchema } from '../internal/AccountHolder/types';
7
- export interface CompanyStructureSchema extends AccountHolderSchema {
5
+ export interface CompanyStructureSchema {
8
6
  entityType?: CompanyTypesValue;
9
7
  }
10
8
  export interface CompanyStructureProps extends BaseInnerFormProps<CompanyStructureSchema> {
11
9
  country: CountryCode;
12
10
  verifiedBusiness?: CompanyDatasetResponse | undefined;
13
- kompanyVerifiedData?: CompanySearchSchema;
14
11
  showCompanyStructure?: boolean;
15
12
  }
@@ -1,8 +1,7 @@
1
1
  import type { BaseInnerFormProps } from '../../core/hooks/useForm';
2
2
  import type { CompanyTypesValue } from '../../core/models/api/company-types-value';
3
3
  import type { CountryCode } from '../../core/models/country-code';
4
- import type { AccountHolderSchema } from '../internal/AccountHolder/types';
5
- export interface CompanyTypeSchema extends AccountHolderSchema {
4
+ export interface CompanyTypeSchema {
6
5
  entityType?: CompanyTypesValue;
7
6
  }
8
7
  export interface CompanyTypeProps extends BaseInnerFormProps<CompanyTypeSchema> {
@@ -1,2 +1,2 @@
1
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, handleClearCompanyData, onTypeSwitch, }: BusinessDetailsDropinProps): import("preact").JSX.Element;
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, handleClearCompanyData, }: BusinessDetailsDropinProps): import("preact").JSX.Element;
@@ -10,4 +10,4 @@ export declare const isDocumentsRequired: (forms: FormModelWithValidity[]) => bo
10
10
  export declare const removeConditionalForms: (forms: FormModelWithValidity[], isSkippingCompanyStructure: boolean) => FormModelWithValidity[];
11
11
  export declare const formatDataForSummary: (data: BusinessDetailsSchema, forms: FormModelWithValidity[], labels: OuterFormLabels<BusinessDetailsSchema>, i18n: Language) => {};
12
12
  export declare function submitDocuments({ data, legalEntity, forms, documentUtils, baseTrackingPayload, }: SubmitDocumentsProps): Promise<void>;
13
- export declare function submit({ data, legalEntityResponse, isTargetLegalEntityType, baseTrackingPayload, forms, problems, documentUtils, i18n, setLoadingStatus, setProblems, showToast, clearToasts, handleUpdateLegalEntity, onExternalSubmit, accountHolder, }: SubmitProps): Promise<void>;
13
+ export declare function submit({ data, legalEntityResponse, baseTrackingPayload, forms, problems, documentUtils, i18n, setLoadingStatus, setProblems, showToast, clearToasts, handleUpdateLegalEntity, onExternalSubmit, accountHolder, }: 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, onSubmit: onExternalSubmit, handleCreateDocument, handleGetDocument, handleUpdateDocument, handleAddressSearch, handleFindAddress, handleCreateLegalEntity, handleUpdateLegalEntity, handleHomeClick, onTypeSwitch, onChange, trustedFields, }: CompanyDropinProps): import("preact").JSX.Element;
2
+ export declare function CompanyDropinComponent({ country: parentCountry, problems: propProblems, hideDropinLayout, taskName, capabilities, homeButtonLabel, taskType, trackingConfig, associationDetail, parentLegalEntity, legalEntityResponse, onSubmit: onExternalSubmit, handleCreateDocument, handleGetDocument, handleUpdateDocument, handleAddressSearch, handleFindAddress, handleCreateLegalEntity, handleUpdateLegalEntity, handleHomeClick, onTypeSwitch, onChange, trustedFields, }: CompanyDropinProps): import("preact").JSX.Element;
@@ -4,7 +4,6 @@ import type { TaskTypes } from '../../TaskList/types';
4
4
  interface CreateIndividualComponentPropsBase {
5
5
  taskType?: TaskTypes;
6
6
  onSubmitSuccess?(data: IndividualSchema): void;
7
- handleBackClick?(): void;
8
7
  modalView?: boolean;
9
8
  onClose?(): void;
10
9
  onUnmount?(): void;
@@ -13,5 +12,5 @@ export type CreateIndividualComponentProps = CreateIndividualComponentPropsBase
13
12
  parentLegalEntityId: string;
14
13
  legalEntityId: string;
15
14
  }, 'parentLegalEntityId' | 'legalEntityId'>;
16
- export declare function CreateIndividualComponent({ parentLegalEntityId, legalEntityId, taskType, onSubmitSuccess, handleBackClick, modalView, onClose, onUnmount, }: CreateIndividualComponentProps): import("preact").JSX.Element;
15
+ export declare function CreateIndividualComponent({ parentLegalEntityId, legalEntityId, taskType, onSubmitSuccess, modalView, onClose, onUnmount, }: CreateIndividualComponentProps): import("preact").JSX.Element;
17
16
  export {};
@@ -7,13 +7,13 @@ import type { LegalEntityAssociation } from '../../core/models/api/legal-entity-
7
7
  import type { LegalEntityType } from '../../core/models/api/legal-entity-type';
8
8
  import type { CountryCode } from '../../core/models/country-code';
9
9
  import type { FormModel } from '../../core/models/form';
10
- import type { AddressSchema } from '../../types';
11
10
  import type { ContactDetailsSchema } from '../ContactDetails/types';
12
11
  import type { DocumentUploadSchema } from '../DocumentUpload/types';
13
12
  import type { DropinAPIHandlers, DropinProps } from '../Dropins/types';
14
13
  import type { IdDocumentUploadSchema } from '../IdDocumentUpload/types';
15
14
  import type { IdVerificationMethodSchema } from '../IdVerificationMethod/types';
16
15
  import type { AccountHolderOption } from '../internal/AccountHolder/types';
16
+ import type { AddressSchema } from '../internal/Address/types';
17
17
  import type { PersonalDetailsSchema } from '../PersonalDetails/types';
18
18
  import type { TaskTypes } from '../TaskList/types';
19
19
  import type { TrustMember } from '../TrustMembers/types';
@@ -3,10 +3,11 @@ import type { CountryCode } from '../../core/models/country-code';
3
3
  import type { ValidatorRule } from '../../utils/validation/types';
4
4
  import type { PersonalDetailsSchema } from '../PersonalDetails/types';
5
5
  import { TaskTypes } from '../TaskList/types';
6
- export declare const validators: ({ country, isExperimentEnabled, taskType, }: {
6
+ export declare const validators: ({ country, isExperimentEnabled, taskType, isLegalAgeEnforced, }: {
7
7
  country: CountryCode;
8
8
  isExperimentEnabled?: (experiment: ExperimentName) => boolean;
9
9
  taskType?: TaskTypes;
10
+ isLegalAgeEnforced?: boolean;
10
11
  }) => {
11
12
  birthDate: () => ValidatorRule<string, PersonalDetailsSchema>[];
12
13
  nationality: () => ValidatorRule<PersonalDetailsSchema["nationality"], PersonalDetailsSchema>;
@@ -1,9 +1,9 @@
1
1
  import '../PayoutDetails.scss';
2
- import type { FormList, FormModel } from '../../../core/models/form';
2
+ import type { FormList } from '../../../core/models/form';
3
3
  import type { BankDocumentSchema } from '../../BankDocument';
4
4
  import type { AccountVerificationSchema } from '../../BankVerification/types';
5
+ import type { PayoutAccountSchema } from '../../PayoutAccount/types';
5
6
  import type { PayoutVerificationMethodSchema } from '../../PayoutVerificationMethod/types';
6
- import { TaskTypes } from '../../TaskList/types';
7
7
  import type { PayoutDetailsProps } from '../types';
8
8
  export declare const payoutSteps: {
9
9
  readonly payoutVerificationMethod: {
@@ -11,7 +11,11 @@ export declare const payoutSteps: {
11
11
  readonly formName: "verificationMethod";
12
12
  readonly fields: (keyof PayoutVerificationMethodSchema)[];
13
13
  };
14
- readonly payoutAccountDetails: (tasktype: TaskTypes, isNewEntryFlowExperimentEnabled: boolean) => FormModel;
14
+ readonly payoutAccountDetails: {
15
+ readonly formId: "payoutAccountDetails";
16
+ readonly formName: "bankAccount";
17
+ readonly fields: (keyof PayoutAccountSchema)[];
18
+ };
15
19
  readonly payoutAccountDocuments: {
16
20
  readonly formId: "payoutAccountDocuments";
17
21
  readonly formName: "bankDocument";
@@ -25,5 +29,5 @@ export declare const payoutSteps: {
25
29
  readonly fields: (keyof AccountVerificationSchema)[];
26
30
  };
27
31
  };
28
- export declare const getAppropriatePayoutDetailsSteps: (currentTask: TaskTypes, isEditing: boolean, instantVerificationAvailable: boolean, canChangeCountry: boolean, isNewEntryFlowExperimentEnabled: boolean) => FormList;
32
+ export declare const getAppropriatePayoutDetailsSteps: (isEditing: boolean, instantVerificationAvailable: boolean, canChangeCountry: boolean) => FormList;
29
33
  export declare function PayoutDetailsComponent(props: PayoutDetailsProps): import("preact").JSX.Element;
@@ -10,6 +10,7 @@ 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 { LoadingStatus } from '../internal/LoaderWrapper/constants';
13
14
  import type { PayoutAccountSchema } from '../PayoutAccount/types';
14
15
  import type { PayoutVerificationMethodSchema } from '../PayoutVerificationMethod/types';
15
16
  import type { TaskTypes } from '../TaskList/types';
@@ -32,14 +33,16 @@ export interface PayoutDetailsProps extends BaseOuterFormProps<PayoutDetailsSche
32
33
  onNext?: () => void;
33
34
  accountHolder: string;
34
35
  bankVerificationVendors?: CountryBankVerificationVendors;
36
+ bankVendorsLoadingStatus: LoadingStatus;
35
37
  instantVerificationEnabled?: boolean;
36
38
  refreshLegalEntity?(): Promise<LegalEntity>;
37
39
  createTrustedTransferInstrument?: (code: string, state: string) => Promise<CreateTrustedTransferInstrumentResponse | undefined>;
38
40
  handleBankVerificationError?: (errorCode: string, errorMessage: string, state: string, metadata?: Map<string, string>) => Promise<BankVerificationErrorResponse>;
39
41
  country: CountryCode;
42
+ handleNextClick(): void;
40
43
  }
41
44
  export type PayoutDropinApiHandlers = Required<Pick<DropinAPIHandlers, 'handleCreateDocument' | 'handleGetDocument' | 'handleUpdateDocument' | 'handleUpdateTransferInstrument' | 'handleCreateTransferInstrument'>>;
42
- export interface PayoutDetailsDropinProps extends Omit<PayoutDetailsProps, 'country' | 'accountHolder'>, Omit<DropinProps, 'legalEntityResponse'>, PayoutDropinApiHandlers {
45
+ export interface PayoutDetailsDropinProps extends Omit<PayoutDetailsProps, 'country' | 'accountHolder' | 'handleNextClick' | 'bankVendorsLoadingStatus'>, Omit<DropinProps, 'legalEntityResponse'>, PayoutDropinApiHandlers {
43
46
  accountHolder?: string;
44
47
  transferInstrument?: TransferInstrument;
45
48
  setTransferInstrument?: Dispatch<StateUpdater<TransferInstrument>>;
@@ -0,0 +1,9 @@
1
+ import type { VerificationMethod } from '../../types';
2
+ interface PreferInstantVerificationMethodProps {
3
+ providerName: string | undefined;
4
+ bankInfoValidated: boolean;
5
+ instantVerificationAvailable: boolean;
6
+ selectVerificationMethod: (method: VerificationMethod) => void;
7
+ }
8
+ export declare const PreferInstantVerificationMethod: ({ providerName, bankInfoValidated, instantVerificationAvailable, selectVerificationMethod, }: PreferInstantVerificationMethodProps) => import("preact").JSX.Element;
9
+ export {};
@@ -1,7 +1,9 @@
1
1
  import type { BaseInnerFormProps } from '../../core/hooks/useForm';
2
2
  import type { ExistingLegalEntity } from '../../core/models/api/legal-entity';
3
3
  import type { CountryCode } from '../../core/models/country-code';
4
+ import type { FormModel } from '../../core/models/form';
4
5
  import type { CountryBankVerificationVendors } from '../BankVerification/types';
6
+ import type { LoadingStatus } from '../internal/LoaderWrapper/constants';
5
7
  export declare const payoutVerificationMethods: readonly ["instantVerification", "manualVerification"];
6
8
  export type VerificationMethod = (typeof payoutVerificationMethods)[number];
7
9
  export interface PayoutVerificationMethodSchema {
@@ -12,7 +14,10 @@ export interface PayoutVerificationMethodProps extends BaseInnerFormProps<Payout
12
14
  country: CountryCode;
13
15
  accountHolder: string;
14
16
  bankVerificationVendors?: CountryBankVerificationVendors;
17
+ bankVendorsLoadingStatus: LoadingStatus;
15
18
  instantVerificationAllowed: boolean;
16
19
  bankInfoValidated: boolean;
17
20
  legalEntityResponse: ExistingLegalEntity;
21
+ handleNextClick: () => void;
22
+ forms?: FormModel[];
18
23
  }
@@ -7,13 +7,12 @@ import type { TranslationKey } from '../../language/types';
7
7
  import type { ValidationRuleResults } from '../../utils/validation/types';
8
8
  import type { ContactDetailsSchema } from '../ContactDetails/types';
9
9
  import type { IdentityNumberSchema } from '../IdentityNumber/type';
10
- import type { AccountHolderSchema } from '../internal/AccountHolder/types';
11
10
  import type { DecisionMakerRoleSchema } from '../internal/DecisionMakerRole';
12
11
  import type { IndividualIdNumberType } from '../internal/IdFieldTypeSelector/countryIdNumberTypes';
13
12
  import type { NameSchema } from '../internal/Name/types';
14
13
  import type { TaskTypes } from '../TaskList/types';
15
14
  import type { AdditionalIdentityInfoSchema } from './component/IdentityComponent/types';
16
- export interface PersonalDetailsSchema extends NameSchema, IdentityNumberSchema, AdditionalIdentityInfoSchema, DecisionMakerRoleSchema, ContactDetailsSchema, AccountHolderSchema {
15
+ export interface PersonalDetailsSchema extends NameSchema, IdentityNumberSchema, AdditionalIdentityInfoSchema, DecisionMakerRoleSchema, ContactDetailsSchema {
17
16
  birthDate?: string;
18
17
  residencyCountry?: CountryCode;
19
18
  nationality?: CountryCode;
@@ -1,10 +1,9 @@
1
1
  import type { BaseOuterFormProps } from '../../core/hooks/useForm';
2
- import type { CompanyDatasetResponse } from '../../core/models/api/company-search';
3
2
  import type { CountryCode } from '../../core/models/country-code';
4
3
  import type { FormModel } from '../../core/models/form';
5
4
  import type { TranslationKey } from '../../language/types';
6
- import type { AddressSchema } from '../../types';
7
5
  import type { DropinAPIHandlers } from '../Dropins/types';
6
+ import type { AddressSchema } from '../internal/Address/types';
8
7
  export interface RegistrationAddressSchema {
9
8
  registrationAddress?: AddressSchema;
10
9
  operationalAddress?: AddressSchema;
@@ -16,8 +15,6 @@ export interface RegistrationAddressProps extends BaseOuterFormProps<Registratio
16
15
  country?: CountryCode;
17
16
  handleAddressSearch?: DropinAPIHandlers['handleAddressSearch'];
18
17
  handleFindAddress?: DropinAPIHandlers['handleFindAddress'];
19
- verifiedBusiness?: CompanyDatasetResponse | undefined;
20
- kompanyAddress?: string;
21
18
  }
22
19
  export declare enum operationalAddressIsSameIds {
23
20
  OPERATIONAL_ADDRESS_IS_SAME = "OperationAddressAnswerYes",
@@ -8,7 +8,7 @@ export declare const solePropForms: {
8
8
  readonly solePropRegistrationDetails: {
9
9
  readonly formId: "solePropRegistrationDetails";
10
10
  readonly formName: "registrationDetails";
11
- readonly fields: ("dateOfIncorporation" | "stockExchangeMIC" | "stockISIN" | "stockTickerSymbol" | keyof import("../../internal/BusinessRegistrationNumberField/types").BusinessRegistrationNumberFieldSchema | keyof import("../../internal/VatNumberField").VatNumberFieldSchema | keyof import("../../internal/TaxInformationField/types").TaxInformationFieldSchema | keyof import("../../internal/TradingNameField/types").TradingNameFieldSchema)[];
11
+ readonly fields: ("dateOfIncorporation" | "stockExchangeMIC" | "stockISIN" | "stockTickerSymbol" | keyof import("../../internal/VatNumberField").VatNumberFieldSchema | keyof import("../../internal/BusinessRegistrationNumberField/types").BusinessRegistrationNumberFieldSchema | keyof import("../../internal/TaxInformationField/types").TaxInformationFieldSchema | keyof import("../../internal/TradingNameField/types").TradingNameFieldSchema)[];
12
12
  };
13
13
  readonly solePropRegistrationAddress: {
14
14
  readonly formId: "solePropRegistrationAddress";
@@ -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, testId, }: TaskListItemProps) => import("preact").JSX.Element;
3
+ declare const TaskListItem: ({ title, 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;
@@ -14,7 +14,6 @@ export declare enum TaskTypes {
14
14
  REVIEW = "REVIEW",
15
15
  INDIVIDUAL = "INDIVIDUAL",
16
16
  COMPANY = "COMPANY",
17
- COMPANY_SEARCH = "COMPANY_SEARCH",
18
17
  BUSINESS_DETAILS = "BUSINESS_DETAILS",
19
18
  PAYOUT = "PAYOUT",
20
19
  PAYIN = "PAYIN",
@@ -80,7 +79,6 @@ export interface TaskListItemProps extends TaskStatusProps {
80
79
  icon: IconName;
81
80
  title: string;
82
81
  statusLabel?: string;
83
- tagline?: string;
84
82
  disabled?: boolean;
85
83
  problems?: EntityProblems;
86
84
  actions?: ActionsMenuOption[];
@@ -2,9 +2,8 @@ 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
+ import { BusinessDetailsDropinComponent } from './Dropins/BusinessDetailsDropin/components/BusinessDetailsDropinComponent';
6
6
  import { CompanyDropinComponent } from './Dropins/CompanyDropin';
7
- import { CompanySearchDropinComponent } from './Dropins/CompanySearchDropin';
8
7
  import { DropinComposerComponent } from './Dropins/DropinComposer';
9
8
  import { IndividualDropinComponent } from './Dropins/IndividualDropin';
10
9
  import { PayoutDetailsDropinComponent } from './Dropins/PayoutDetailsDropin';
@@ -24,7 +23,6 @@ export declare const componentsMap: {
24
23
  readonly individualDropin: typeof IndividualDropinComponent;
25
24
  readonly businessDetailsDropin: typeof BusinessDetailsDropinComponent;
26
25
  readonly companyDropin: typeof CompanyDropinComponent;
27
- readonly companySearchDropin: typeof CompanySearchDropinComponent;
28
26
  readonly taskList: typeof DropinComposerComponent;
29
27
  readonly payoutAccount: typeof PayoutDetailsDropinComponent;
30
28
  readonly trustDropin: typeof TrustDropinComponent;
@@ -1,12 +1,2 @@
1
- import type { BaseInnerFormProps } 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
1
  export type LegalArrangementOption = 'aTrust' | 'partnershipIncorporated' | 'partnershipUnincorporated' | 'associationIncorporated';
5
2
  export type AccountHolderOption = 'myName' | 'mySoleProprietorName' | 'theCompanyIWorkFor' | 'aTrust';
6
- export interface AccountHolderSchema {
7
- accountHolder?: AccountHolderOption;
8
- }
9
- export interface AccountHolderProps extends BaseInnerFormProps<AccountHolderSchema> {
10
- legalEntityType: LegalEntityType;
11
- country: CountryCode;
12
- }
@@ -1,3 +1,3 @@
1
1
  import './Address.scss';
2
2
  import type { AddressProps } from './types';
3
- export declare function AddressComponent({ data, labels, placeholders, helperText, readOnly, hideCountry, fieldValidationErrors, allFields, requiredFields, optionalFields, readOnlyFields, trustedFields, shouldValidate, handleAddressSearch, handleFindAddress, onChange, legalEntityId, verifiedAddress, }: AddressProps): import("preact").JSX.Element;
3
+ export declare function AddressComponent({ data, labels, placeholders, helperText, readOnly, hideCountry, fieldValidationErrors, allFields, requiredFields, optionalFields, readOnlyFields, obscuredFields, trustedFields, shouldValidate, handleAddressSearch, handleFindAddress, onChange, legalEntityId, verifiedAddress, condensed, }: AddressProps): import("preact").JSX.Element;
@@ -1,8 +1,9 @@
1
1
  import type { CountryCode } from '../../../core/models/country-code';
2
- import type { AddressLabels, AddressSchemas } from './types';
2
+ import type { AddressLabels, AddressSchema, AddressSchemas } from './types';
3
3
  export declare const ADDRESS_SCHEMA: readonly ["address", "otherAddressInformation", "postalCode", "city", "stateOrProvince", "country"];
4
4
  export declare const COUNTRIES_WITH_STATES_DATASET: CountryCode[];
5
5
  export declare const COUNTRIES_WITH_HOUSE_NUMBER_FIRST: CountryCode[];
6
6
  export declare const COUNTRIES_WITH_COMMA_SEPARATED: CountryCode[];
7
7
  export declare const ADDRESS_SCHEMAS: AddressSchemas;
8
+ export declare const CONDENSED_ADDRESS_FIELDS: Partial<Record<CountryCode, Array<keyof AddressSchema>>>;
8
9
  export declare const LABELS: AddressLabels;
@@ -2,7 +2,6 @@ import type { BaseInnerFormProps } from '../../../core/hooks/useForm';
2
2
  import type { CompanyDatasetResponse } from '../../../core/models/api/company-search';
3
3
  import type { CountryCode } from '../../../core/models/country-code';
4
4
  import type { TranslationKey } from '../../../language/types';
5
- import type { AddressField } from '../../../types';
6
5
  import type { RecordWithDefault } from '../../../utils/recordWithDefault';
7
6
  import type { ValidationRuleResult, ValidatorMode } from '../../../utils/validation/types';
8
7
  import type { DropinAPIHandlers } from '../../Dropins/types';
@@ -25,8 +24,8 @@ export interface AddressProps extends BaseInnerFormProps<AddressSchema> {
25
24
  handleFindAddress: DropinAPIHandlers['handleFindAddress'];
26
25
  legalEntityId?: string;
27
26
  verifiedBusiness?: CompanyDatasetResponse | undefined;
28
- kompanyAddress?: string;
29
27
  verifiedAddress?: AddressSchema;
28
+ condensed?: boolean;
30
29
  }
31
30
  export interface FieldContainerProps {
32
31
  legalEntityId?: string;
@@ -50,7 +49,7 @@ export interface ReadOnlyAddressProps {
50
49
  data: AddressSchema;
51
50
  label: TranslationKey;
52
51
  }
53
- export type AddressSchemas = RecordWithDefault<CountryCode, AddressField[]>;
52
+ export type AddressSchemas = RecordWithDefault<CountryCode, Array<keyof AddressSchema>>;
54
53
  export type AddressLabels = {
55
54
  [label: string]: RecordWithDefault<CountryCode, TranslationKey>;
56
55
  };
@@ -1,7 +1,6 @@
1
1
  import type { CountryCode } from '../../../core/models/country-code';
2
- import type { AddressSchema } from '../../../types';
3
2
  import type { DatasetUtil } from '../../../utils/datasetUtil';
4
- import type { AddressSchemaLabels } from './types';
3
+ import type { AddressSchema, AddressSchemaLabels } from './types';
5
4
  /**
6
5
  * Returns the key for a field of the passed country or the default key for that field.
7
6
  * @param fieldName - The data to pre-fill the address fields
@@ -12,7 +11,7 @@ export declare const getKeyForField: (fieldName: string, country?: CountryCode)
12
11
  * Returns the address schema of the selected country or the default address schema.
13
12
  * @param country - The selected country
14
13
  */
15
- export declare const getAddressSchemaForCountry: (country: CountryCode | undefined) => ("address" | "city" | "country" | "otherAddressInformation" | "postalCode" | "stateOrProvince")[];
14
+ export declare const getAddressSchemaForCountry: (country: CountryCode | undefined) => (keyof AddressSchema)[];
16
15
  /**
17
16
  * Returns the field labels for each field in the selected countries address schema.
18
17
  * @param country - The selected country
@@ -1,3 +1,4 @@
1
+ import type { ExperimentName } from '../../../core/Context/ExperimentContext/types';
1
2
  import { CompanyTypesValue } from '../../../core/models/api/company-types-value';
2
3
  import type { FieldMetadata } from '../../../core/models/country-config';
3
4
  import type { PerCountryFieldConfig } from '../../../core/models/field-configurations';
@@ -8,6 +9,7 @@ interface FieldConfigParams {
8
9
  companyType: CompanyTypesValue | 'trust' | undefined;
9
10
  registrationNumberType: CompanyRegistrationNumberType | undefined;
10
11
  state?: StateCodeUS | undefined;
12
+ isExperimentEnabled?: (experiment: ExperimentName) => boolean;
11
13
  }
12
14
  export declare const defaultFieldMetadata: FieldMetadata<BusinessRegistrationNumberSchema, 'registrationNumber'>;
13
15
  export declare const defaultFieldConfig: PerCountryFieldConfig<BusinessRegistrationNumberSchema, 'registrationNumber', FieldConfigParams>;
@@ -1,3 +1,3 @@
1
1
  import type { BusinessRegistrationNumberFieldProps, BusinessRegistrationNumberFieldSchema } from './types';
2
2
  export declare const BUSINESS_REGISTRATION_NUMBER_FIELD: Array<keyof BusinessRegistrationNumberFieldSchema>;
3
- export declare function BusinessRegistrationNumberField({ data, valid, errors, labels, mask, guidanceText, placeholders, readonly, shouldValidate, optional, handleChangeFor, country, canExempt, companyType, registrationNumberOptions, registrationNumberType, setRegistrationNumberType, }: BusinessRegistrationNumberFieldProps): import("preact").JSX.Element;
3
+ export declare function BusinessRegistrationNumberField({ data, valid, errors, labels, mask, guidanceText, placeholders, readonly, shouldValidate, optional, handleChangeFor, country, canExempt, companyType, registrationNumberOptions, registrationNumberType, setRegistrationNumberType, helperText, }: BusinessRegistrationNumberFieldProps): import("preact").JSX.Element;
@@ -2,5 +2,5 @@ import './_button.component.scss';
2
2
  import '../Link/_link.component.scss';
3
3
  import type { JSX } from 'preact';
4
4
  import type { ButtonProps } from './types';
5
- export declare const Button: ({ showAsLink, secondary, tertiary, className, role, small, block, critical, shaded, label, icon, title, disabled, type, onClick, onKeyDown, loading, testId, underline, }: ButtonProps) => JSX.Element;
5
+ export declare const Button: ({ showAsLink, secondary, tertiary, className, role, small, block, critical, shaded, label, icon, iconPosition, title, disabled, type, onClick, onKeyDown, loading, testId, underline, }: ButtonProps) => JSX.Element;
6
6
  export default Button;
@@ -14,6 +14,7 @@ export interface ButtonProps {
14
14
  label?: string;
15
15
  icon?: IconName;
16
16
  iconOnly?: boolean;
17
+ iconPosition?: 'left' | 'right';
17
18
  title?: string;
18
19
  disabled?: boolean;
19
20
  type?: 'submit' | 'button';
@@ -1,4 +1,4 @@
1
1
  import './_card.component.scss';
2
2
  import type { JSX } from 'preact';
3
3
  import type { CardProps } from './types';
4
- export declare function Card({ className, children, stateful, active, disabled, fetching, warning, warningMessage, title, subTitle, headerButton, onClick, onKeyDown, }: CardProps): JSX.Element;
4
+ export declare function Card({ className, children, stateful, active, disabled, fetching, warning, warningMessage, title, subTitle, headerButton, background, onClick, onKeyDown, }: CardProps): JSX.Element;
@@ -11,11 +11,14 @@ export interface CardProps {
11
11
  title?: string;
12
12
  subTitle?: string;
13
13
  headerButton?: ComponentChildren;
14
+ background?: CardVariant;
14
15
  onClick?: (e: JSX.TargetedMouseEvent<HTMLElement>) => void;
15
16
  onKeyDown?: (e: JSX.TargetedKeyboardEvent<HTMLElement>) => void;
16
17
  }
18
+ type CardVariant = 'primary' | 'secondary';
17
19
  export interface CardGroupProps {
18
20
  children?: ComponentChildren;
19
21
  className?: string;
20
22
  spaced?: boolean;
21
23
  }
24
+ export {};
@@ -23,5 +23,7 @@ export interface MaskedInputTextProps extends MaskSettings {
23
23
  input?: string[];
24
24
  };
25
25
  acceptObscuredValue?: boolean;
26
+ helper?: string | JSX.Element;
27
+ helperPosition?: 'above' | 'below';
26
28
  }
27
- export declare const MaskedInputText: ({ value, onInput, onBlur, onFocus, onMismatch: onMismatchExternal, isValid: validationIsValid, errorMessage, shouldValidate, mask, name, label, placeholder, transformOnType, readonly, disabled, optional, formatGuidance, classNameModifiers, acceptObscuredValue, }: MaskedInputTextProps) => JSX.Element;
29
+ export declare const MaskedInputText: ({ value, onInput, onBlur, onFocus, onMismatch: onMismatchExternal, isValid: validationIsValid, errorMessage, shouldValidate, mask, name, label, placeholder, transformOnType, readonly, disabled, optional, formatGuidance, classNameModifiers, acceptObscuredValue, helper, helperPosition, }: MaskedInputTextProps) => JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import './_link.component.scss';
2
2
  import '../Button/_button.component.scss';
3
3
  import type LinkProps from './types';
4
- declare const Link: ({ className, children, href, external, icon, showAsButton, onClick }: LinkProps) => import("preact").JSX.Element;
4
+ declare const Link: ({ className, children, href, external, icon, showAsButton, onClick, iconPosition, }: LinkProps) => import("preact").JSX.Element;
5
5
  export default Link;
@@ -5,6 +5,7 @@ export default interface LinkProps {
5
5
  href: string;
6
6
  external?: boolean;
7
7
  icon?: IconName;
8
+ iconPosition?: 'left' | 'right';
8
9
  className?: classNames.Argument;
9
10
  children: string | HTMLElement | JSX.Element;
10
11
  showAsButton?: boolean;
@@ -69,6 +69,7 @@ export declare const svgs: {
69
69
  readonly 'passport-cutoff': import("preact").FunctionComponent<import("preact/compat").JSX.SVGAttributes<SVGSVGElement>>;
70
70
  readonly 'passport-front': import("preact").FunctionComponent<import("preact/compat").JSX.SVGAttributes<SVGSVGElement>>;
71
71
  readonly 'passport-glare': import("preact").FunctionComponent<import("preact/compat").JSX.SVGAttributes<SVGSVGElement>>;
72
+ readonly 'instant-verification-method': import("preact").FunctionComponent<import("preact/compat").JSX.SVGAttributes<SVGSVGElement>>;
72
73
  readonly 'id-verification-instant': import("preact").FunctionComponent<import("preact/compat").JSX.SVGAttributes<SVGSVGElement>>;
73
74
  readonly 'id-verification-manual': import("preact").FunctionComponent<import("preact/compat").JSX.SVGAttributes<SVGSVGElement>>;
74
75
  readonly 'payout-verification-instant': import("preact").FunctionComponent<import("preact/compat").JSX.SVGAttributes<SVGSVGElement>>;