@adyen/kyc-components 2.36.3 → 2.37.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 (153) hide show
  1. package/dist/es/AT-0q_5SJBQ.js +24 -0
  2. package/dist/es/AT-BgQV6hNb.js +29 -0
  3. package/dist/es/AT-njBxlQEe.js +25 -0
  4. package/dist/es/AU-C8Ubk0YW.js +19 -0
  5. package/dist/es/AU-DFQDmtVS.js +22 -0
  6. package/dist/es/AU-Dqj7rU9m.js +31 -0
  7. package/dist/es/BE-B9YzjIbl.js +21 -0
  8. package/dist/es/BE-C2-55587.js +20 -0
  9. package/dist/es/BE-DXN0rypg.js +25 -0
  10. package/dist/es/BR-B9ECFEsA.js +30 -0
  11. package/dist/es/BR-Cm5wlqzu.js +26 -0
  12. package/dist/es/BR-DRRnRMe_.js +24 -0
  13. package/dist/es/CA-CcUb1PsZ.js +28 -0
  14. package/dist/es/CA-DF_5NHUp.js +16 -0
  15. package/dist/es/CA-GPzRNbT4.js +19 -0
  16. package/dist/es/CH-BN1IKzah.js +20 -0
  17. package/dist/es/CH-DQ7wM16k.js +20 -0
  18. package/dist/es/CH-DS_pPGGY.js +20 -0
  19. package/dist/es/CZ-BC067qOt.js +24 -0
  20. package/dist/es/CZ-BC6mPfpV.js +28 -0
  21. package/dist/es/CZ-CGN19Iaf.js +24 -0
  22. package/dist/es/DE-BPXDYsIg.js +31 -0
  23. package/dist/es/DE-C2b48uc9.js +26 -0
  24. package/dist/es/DE-CWIcy4sf.js +25 -0
  25. package/dist/es/DK-CUV7SrN_.js +23 -0
  26. package/dist/es/DK-DQdJTd7G.js +24 -0
  27. package/dist/es/DK-DzkpuGcK.js +22 -0
  28. package/dist/es/ES-CXBTHBlj.js +24 -0
  29. package/dist/es/ES-DlS7RO1p.js +24 -0
  30. package/dist/es/ES-kwu_f0TB.js +33 -0
  31. package/dist/es/FI-D9lkf5Ag.js +20 -0
  32. package/dist/es/FI-DJJ7pR5Q.js +22 -0
  33. package/dist/es/FI-DrPckuaI.js +25 -0
  34. package/dist/es/FR-C62B055T.js +22 -0
  35. package/dist/es/FR-CgtCG2F8.js +28 -0
  36. package/dist/es/FR-CmqiYchK.js +26 -0
  37. package/dist/es/GB-BsDyOPB2.js +19 -0
  38. package/dist/es/GB-C3gyya0v.js +23 -0
  39. package/dist/es/GB-CyOmxXhp.js +31 -0
  40. package/dist/es/HK-BHvvteyC.js +16 -0
  41. package/dist/es/HK-DL3Ev2gw.js +22 -0
  42. package/dist/es/HK-aqSN9boX.js +19 -0
  43. package/dist/es/HR-BYmZgEjN.js +22 -0
  44. package/dist/es/HR-BuR2eqt5.js +23 -0
  45. package/dist/es/HR-lqt3S_K0.js +24 -0
  46. package/dist/es/HU-BeWCk1sl.js +21 -0
  47. package/dist/es/HU-CXniaSYg.js +21 -0
  48. package/dist/es/HU-Cy7JJAmz.js +24 -0
  49. package/dist/es/IE-BqkOpYi0.js +29 -0
  50. package/dist/es/IE-DY6xU4Nq.js +16 -0
  51. package/dist/es/IE-ncc5PJTM.js +19 -0
  52. package/dist/es/IT-DIpVZHWq.js +25 -0
  53. package/dist/es/IT-DUpC-s62.js +24 -0
  54. package/dist/es/IT-o8X0Ep0w.js +24 -0
  55. package/dist/es/LT-DYEMsFLH.js +25 -0
  56. package/dist/es/LT-YEft7Aof.js +27 -0
  57. package/dist/es/LT-vsmh_veZ.js +16 -0
  58. package/dist/es/NL-Bl-zh21O.js +24 -0
  59. package/dist/es/NL-C0CXV7LQ.js +26 -0
  60. package/dist/es/NL-D4GPWO-k.js +18 -0
  61. package/dist/es/NO-6kmy-zV2.js +24 -0
  62. package/dist/es/NO-BWDB_9Zh.js +28 -0
  63. package/dist/es/NO-C2rMiNW_.js +16 -0
  64. package/dist/es/PL-B6DmYhdz.js +23 -0
  65. package/dist/es/PL-Cci2LxIN.js +24 -0
  66. package/dist/es/PL-DfF0yMD3.js +25 -0
  67. package/dist/es/PT-CiWuVvP4.js +23 -0
  68. package/dist/es/PT-ClgahH9J.js +25 -0
  69. package/dist/es/PT-_SJeajc_.js +29 -0
  70. package/dist/es/RO-B_4Ca0mt.js +20 -0
  71. package/dist/es/RO-CbO4Kr4f.js +16 -0
  72. package/dist/es/RO-DzjKAzZD.js +24 -0
  73. package/dist/es/SE-BJB_aDpP.js +26 -0
  74. package/dist/es/SE-ClnBSAdx.js +21 -0
  75. package/dist/es/SE-L3pYtteT.js +24 -0
  76. package/dist/es/SG-BCG6hbHH.js +19 -0
  77. package/dist/es/SG-Bys5Yryz.js +25 -0
  78. package/dist/es/SG-CQ7yymJt.js +21 -0
  79. package/dist/es/SI-CKmjaPXK.js +22 -0
  80. package/dist/es/SI-Dba9CKmF.js +25 -0
  81. package/dist/es/SI-DdcTeBdP.js +24 -0
  82. package/dist/es/SK-BHbQeHKV.js +21 -0
  83. package/dist/es/SK-DOx6jvRF.js +24 -0
  84. package/dist/es/SK-DdRSQwOF.js +28 -0
  85. package/dist/es/US-BfGmXLD9.js +19 -0
  86. package/dist/es/US-CtLttEVX.js +26 -0
  87. package/dist/es/US-Dxp45Utb.js +17 -0
  88. package/dist/es/adyen-kyc-components.es.js +928 -506
  89. package/dist/es/company-2-JG34IScE.js +8 -0
  90. package/dist/es/user-D6swzlYs.js +11 -0
  91. package/dist/es/user-business-CwS5j1qX.js +11 -0
  92. package/dist/es/users-3-BdjQ9rEA.js +8 -0
  93. package/dist/style.css +7777 -5851
  94. package/dist/types/components/BankVerification/BankVerification.d.ts +1 -1
  95. package/dist/types/components/BankVerification/types.d.ts +5 -5
  96. package/dist/types/components/BusinessTypeSelection/component/EntityTypeRadioGroupCard.d.ts +11 -0
  97. package/dist/types/components/BusinessTypeSelection/utils.d.ts +6 -3
  98. package/dist/types/components/Company/component/CompanyComponent.d.ts +4 -0
  99. package/dist/types/components/Company/types.d.ts +2 -1
  100. package/dist/types/components/CompanyBasics/types.d.ts +3 -3
  101. package/dist/types/components/CompanyLookup/types.d.ts +4 -4
  102. package/dist/types/components/CompanySearch/forms.d.ts +2 -0
  103. package/dist/types/components/DocumentUpload/types.d.ts +4 -0
  104. package/dist/types/components/Dropins/PayoutDetailsDropin/components/PayoutDetailsDropinComponent.d.ts +0 -3
  105. package/dist/types/components/Dropins/ServiceAgreementDropinComponent/components/ServiceAgreementDropinComponent.d.ts +2 -1
  106. package/dist/types/components/Dropins/ServiceAgreementDropinComponent/components/useServiceAgreement.d.ts +1 -0
  107. package/dist/types/components/Dropins/ServiceAgreementDropinComponent/types.d.ts +6 -2
  108. package/dist/types/components/Dropins/types.d.ts +4 -2
  109. package/dist/types/components/Individual/types.d.ts +2 -3
  110. package/dist/types/components/PayoutAccount/types.d.ts +2 -1
  111. package/dist/types/components/PayoutDetails/types.d.ts +4 -3
  112. package/dist/types/components/RegistrationDocument/RegistrationDocumentComponent.d.ts +2 -0
  113. package/dist/types/components/RegistrationDocument/config.d.ts +3 -0
  114. package/dist/types/components/RegistrationDocument/index.d.ts +1 -0
  115. package/dist/types/components/RegistrationDocument/types.d.ts +15 -0
  116. package/dist/types/components/SoleProp/types.d.ts +2 -1
  117. package/dist/types/components/TaskList/types.d.ts +2 -2
  118. package/dist/types/components/TaxDocument/TaxDocumentComponent.d.ts +2 -0
  119. package/dist/types/components/TaxDocument/config.d.ts +3 -0
  120. package/dist/types/components/TaxDocument/index.d.ts +1 -0
  121. package/dist/types/components/TaxDocument/types.d.ts +15 -0
  122. package/dist/types/components/Trust/types.d.ts +2 -1
  123. package/dist/types/components/internal/BusinessRegistrationNumberField/types.d.ts +2 -2
  124. package/dist/types/components/internal/EntityAssociation/types.d.ts +2 -2
  125. package/dist/types/components/internal/FormFields/RadioGroupCard/RadioCard.d.ts +1 -1
  126. package/dist/types/components/internal/FormFields/RadioGroupCard/RadioCardSelect.d.ts +3 -2
  127. package/dist/types/components/internal/FormFields/RadioGroupCard/RadioGroupCard.d.ts +1 -1
  128. package/dist/types/components/internal/FormFields/RadioGroupCard/types.d.ts +9 -3
  129. package/dist/types/components/internal/Icon/Icon.d.ts +4 -0
  130. package/dist/types/components/internal/Remove/types.d.ts +3 -3
  131. package/dist/types/components/internal/Summary/Summary.d.ts +1 -1
  132. package/dist/types/components/internal/Summary/types.d.ts +1 -0
  133. package/dist/types/components/internal/TaxInformationField/types.d.ts +2 -2
  134. package/dist/types/components/internal/VatNumberField/types.d.ts +2 -2
  135. package/dist/types/core/hooks/introduction/useHasSeenIntroduction.d.ts +1 -1
  136. package/dist/types/core/hooks/useBankConfigurationHandlers.d.ts +2 -1
  137. package/dist/types/core/hooks/useCompanySearch/types.d.ts +2 -2
  138. package/dist/types/core/hooks/useCompanySearchTaskSubmit.d.ts +3 -3
  139. package/dist/types/core/hooks/useForm/types.d.ts +11 -10
  140. package/dist/types/core/hooks/useFormComposer.d.ts +2 -2
  141. package/dist/types/core/hooks/useLocalStorage.d.ts +2 -2
  142. package/dist/types/core/models/api/contracts.d.ts +6 -0
  143. package/dist/types/core/models/api/get-configuration.d.ts +2 -1
  144. package/dist/types/core/models/form-rules.d.ts +2 -0
  145. package/dist/types/core/models/form.d.ts +1 -0
  146. package/dist/types/datasets/localized/companyTypeExamples/getCompanyTypeExamplesForCountry.d.ts +5 -0
  147. package/dist/types/datasets/localized/legalArrangementTypeExamples/getLegalArrangementTypeExamplesForCountry.d.ts +5 -0
  148. package/dist/types/datasets/localized/legalEntityTypeExamples/getBusinessTypeExamplesForCountry.d.ts +5 -0
  149. package/dist/types/utils/accountHolderUtils.d.ts +2 -0
  150. package/dist/types/utils/api/processCapabilitites.d.ts +4 -2
  151. package/dist/types/utils/getLegalEntityCountry.d.ts +3 -0
  152. package/dist/types/utils/useStateFromProp.d.ts +2 -2
  153. package/package.json +1 -1
@@ -3,5 +3,5 @@ export interface UseHasSeenIntroductionProps {
3
3
  }
4
4
  export declare const useHasSeenIntroduction: ({ legalEntityId }: UseHasSeenIntroductionProps) => {
5
5
  hasSeenIntroduction: boolean;
6
- setHasSeenIntroduction: import("preact/hooks").Dispatch<import("preact/hooks").StateUpdater<boolean>>;
6
+ setHasSeenIntroduction: import("preact/hooks").StateUpdater<boolean>;
7
7
  };
@@ -1,5 +1,6 @@
1
1
  import { DropinAPIHandlers } from '../../components/Dropins/types';
2
2
  import { ConfigurationApi } from '../Context/ConfigurationApiContext/ConfigurationApiContext';
3
+ import { CapabilityName } from '../models/api/capability';
3
4
  import { BankVerificationVendorsResponse } from '../models/api/get-bankVerification-providers';
4
5
  import { GetConfigurationResponse } from '../models/api/get-configuration';
5
6
  import { LegalEntityType } from '../models/api/legal-entity-type';
@@ -10,7 +11,7 @@ interface UseBankConfigurationHandlersProps {
10
11
  bankAccountCountry: CountryCode;
11
12
  getConfiguration: ConfigurationApi['getConfiguration'];
12
13
  legalEntityType: LegalEntityType;
13
- capabilities?: Array<string>;
14
+ capabilities?: CapabilityName[];
14
15
  }
15
16
  /** **
16
17
  * There are some differences in the response provided by bankVerificationVendors
@@ -1,5 +1,5 @@
1
1
  import type { AxiosError } from 'axios';
2
- import type { Dispatch, StateUpdater } from 'preact/hooks';
2
+ import type { StateUpdater } from 'preact/hooks';
3
3
  import type { CompanyBasicsSchema } from '../../../components/CompanyBasics/types';
4
4
  import type { DropinAPIHandlers } from '../../../components/Dropins/types';
5
5
  import type { ValidatorMode } from '../../../utils/validation/types';
@@ -26,7 +26,7 @@ export interface UseCompanySearchOptions {
26
26
  canVerify: boolean;
27
27
  baseTrackingPayload: BaseTrackingPayload;
28
28
  limit?: number;
29
- setKompanyAddress: Dispatch<StateUpdater<string | undefined>>;
29
+ setKompanyAddress: StateUpdater<string | undefined>;
30
30
  handleChangeFor: (key: keyof CompanyBasicsSchema, mode?: ValidatorMode) => (e: any) => void;
31
31
  handleCompanyIndexSearch: DropinAPIHandlers['handleCompanyIndexSearch'];
32
32
  handleCompanyDeepSearch: DropinAPIHandlers['handleCompanyDeepSearch'];
@@ -1,4 +1,4 @@
1
- import { Dispatch, StateUpdater } from 'preact/hooks';
1
+ import { StateUpdater } from 'preact/hooks';
2
2
  import { CompanySearchSchema } from '../../components/CompanySearch/types';
3
3
  import { DropinAPIHandlers } from '../../components/Dropins/types';
4
4
  import { LoadingStatus } from '../../components/internal/LoaderWrapper/constants';
@@ -22,8 +22,8 @@ export interface FormTaskSubmitOptions {
22
22
  problems?: EntityProblems;
23
23
  baseTrackingPayload: BaseTrackingPayload;
24
24
  documentUtils: DocumentApiUtils;
25
- setProblems: Dispatch<StateUpdater<EntityProblems | undefined>>;
26
- setLoadingStatus: Dispatch<StateUpdater<LoadingStatus>>;
25
+ setProblems: StateUpdater<EntityProblems | undefined>;
26
+ setLoadingStatus: StateUpdater<LoadingStatus>;
27
27
  onExternalSubmit?: (company: CompanySearchSchema) => void;
28
28
  handleUpdateLegalEntity: Required<DropinAPIHandlers>['handleUpdateLegalEntity'];
29
29
  }
@@ -1,8 +1,9 @@
1
- import { Dispatch, StateUpdater } from 'preact/hooks';
1
+ import { StateUpdater } from 'preact/hooks';
2
2
  import type { Translatable, TranslationKey } from '../../../language/types';
3
3
  import { Mask } from '../../../utils/masking/maskTypes';
4
4
  import type { ValidationRuleResult, ValidatorMode, ValidatorRules } from '../../../utils/validation/types';
5
5
  import type { AnyFormIdOfTLDS } from '../../Context/StateContext/types';
6
+ import { CapabilityName } from '../../models/api/capability';
6
7
  import type { CountryCode } from '../../models/country-code';
7
8
  import type { EntityProblems } from '../../models/errors/entity-problems';
8
9
  import type { FormVerificationErrors } from '../../models/errors/form-verification-errors';
@@ -87,7 +88,7 @@ export interface BaseFormProps<FormSchema> {
87
88
  }
88
89
  export interface BaseOuterFormProps<FormSchema> extends BaseFormProps<FormSchema> {
89
90
  problems?: EntityProblems;
90
- capabilities?: string[];
91
+ capabilities?: CapabilityName[];
91
92
  country?: CountryCode;
92
93
  activeForm?: FormModel;
93
94
  requiredFields?: {
@@ -107,13 +108,13 @@ export interface BaseOuterFormProps<FormSchema> extends BaseFormProps<FormSchema
107
108
  };
108
109
  evaluateConfiguration?: (data: FormSchema) => void;
109
110
  setCustomFormNavigationHandlers?(formId: string, onNext: () => void, onBack: () => void): void;
110
- setHideDropinLayout?: Dispatch<StateUpdater<boolean>>;
111
- setHideNavigation?: Dispatch<StateUpdater<boolean>>;
112
- setHideFooter?: Dispatch<StateUpdater<boolean>>;
113
- setHideOnHomeButton?: Dispatch<StateUpdater<boolean>>;
114
- setHideBackButton?: Dispatch<StateUpdater<boolean>>;
115
- setSubmitButtonLabel?: Dispatch<StateUpdater<TranslationKey>>;
116
- setSkipSubmit?: Dispatch<StateUpdater<boolean>>;
111
+ setHideDropinLayout?: StateUpdater<boolean>;
112
+ setHideNavigation?: StateUpdater<boolean>;
113
+ setHideFooter?: StateUpdater<boolean>;
114
+ setHideOnHomeButton?: StateUpdater<boolean>;
115
+ setHideBackButton?: StateUpdater<boolean>;
116
+ setSubmitButtonLabel?: StateUpdater<TranslationKey>;
117
+ setSkipSubmit?: StateUpdater<boolean>;
117
118
  }
118
119
  export interface BaseInnerFormProps<FormSchema> extends BaseFormProps<FormSchema> {
119
120
  formVerificationErrors?: FormVerificationErrors;
@@ -125,5 +126,5 @@ export interface BaseInnerFormProps<FormSchema> extends BaseFormProps<FormSchema
125
126
  readOnlyFields?: Array<keyof FormSchema>;
126
127
  id?: string;
127
128
  dataStoreId?: string;
128
- capabilities?: string[];
129
+ capabilities?: CapabilityName[];
129
130
  }
@@ -1,4 +1,4 @@
1
- import { Dispatch, StateUpdater } from 'preact/hooks';
1
+ import { StateUpdater } from 'preact/hooks';
2
2
  import { TranslationKey } from '../../language/types';
3
3
  import { EntityProblems } from '../models/errors/entity-problems';
4
4
  import { FormModelWithValidity } from '../models/form';
@@ -10,7 +10,7 @@ export interface FormComposer {
10
10
  gotoFormByFormIndex(index: number): void;
11
11
  activeForm: FormModelWithValidity;
12
12
  shouldValidate: boolean;
13
- setShouldValidate: Dispatch<StateUpdater<boolean>>;
13
+ setShouldValidate: StateUpdater<boolean>;
14
14
  }
15
15
  export declare const useFormComposer: ({ problems, baseTrackingPayload, forms, formRef, submitButtonLabel, externalBackClick, onSubmit, skipSubmit, onSkipSubmit, }: {
16
16
  problems?: EntityProblems;
@@ -1,4 +1,4 @@
1
- import { Dispatch, StateUpdater } from 'preact/hooks';
1
+ import { StateUpdater } from 'preact/hooks';
2
2
  type Serializer<T> = (object: T | undefined) => string;
3
3
  type Parser<T> = (val: string) => T | undefined;
4
4
  type Options<T> = Partial<{
@@ -10,5 +10,5 @@ export declare const useLocalStorage: <T>(key: string, defaultValue: T, options?
10
10
  serializer: Serializer<T>;
11
11
  parser: Parser<T>;
12
12
  syncData: boolean;
13
- }>) => [T, Dispatch<StateUpdater<T>>];
13
+ }>) => [T, StateUpdater<T>];
14
14
  export {};
@@ -54,6 +54,12 @@ export interface ServiceAgreementSignResponse extends ServiceAgreementSignReques
54
54
  export interface ServiceAgreementStatus {
55
55
  termsOfServiceTypes: ServiceAgreementType[];
56
56
  }
57
+ export interface ServiceAgreementAcceptedDocumentResponse {
58
+ id: string;
59
+ document: string;
60
+ termsOfServiceAcceptanceReference: string;
61
+ termsOfServiceDocumentFormat: string;
62
+ }
57
63
  export interface ServiceAgreementAcceptanceInfos {
58
64
  data: ServiceAgreementAcceptanceInfo[];
59
65
  }
@@ -1,11 +1,12 @@
1
1
  import type { CountryBankVerificationVendors } from '../../../components/BankVerification/types';
2
2
  import type { TaskTypes } from '../../../components/TaskList/types';
3
3
  import type { CountryCode } from '../country-code';
4
+ import { CapabilityName } from './capability';
4
5
  import type { GetScenariosResponse } from './get-scenarios';
5
6
  import type { LegalEntityType } from './legal-entity-type';
6
7
  export interface GetConfigurationRequest {
7
8
  country: CountryCode;
8
- capabilities?: string[];
9
+ capabilities?: CapabilityName[];
9
10
  legalEntityType: LegalEntityType;
10
11
  }
11
12
  export interface GetConfigurationResponse {
@@ -1,5 +1,6 @@
1
1
  import { TaskTypes } from '../../components/TaskList/types';
2
2
  import { AccountFormatRequirements } from '../../datasets/accountFormats/getAccountFormatForCountry';
3
+ import { ExperimentName } from '../Context/ExperimentContext/types';
3
4
  import { SettingName } from '../Context/SettingsContext/types';
4
5
  import { TopLevelDataSchema } from '../Context/StateContext/types';
5
6
  import { CountryCode } from './country-code';
@@ -8,6 +9,7 @@ export interface FormRulesParams<TLDS extends TopLevelDataSchema> {
8
9
  country: CountryCode;
9
10
  taskType: TaskTypes;
10
11
  isSettingEnabled?: (setting: SettingName) => boolean;
12
+ isExperimentEnabled?: (experiment: ExperimentName) => boolean;
11
13
  requiredFields?: Partial<AccountFormatRequirements>;
12
14
  isEmbeddedDropin?: boolean;
13
15
  }
@@ -2,6 +2,7 @@ import { TranslationKey } from '../../language/types';
2
2
  export interface FormModel {
3
3
  formId: string;
4
4
  formName: TranslationKey;
5
+ formHeading?: TranslationKey;
5
6
  formDescription?: TranslationKey;
6
7
  fields?: readonly string[];
7
8
  hideNavigation?: boolean;
@@ -0,0 +1,5 @@
1
+ import { CompanyTypesValue } from '../../../core/models/api/company-types-value';
2
+ import { CountryCode } from '../../../core/models/country-code';
3
+ export type CompanyTypeExamples = Partial<Record<CompanyTypesValue, string[]>>;
4
+ export declare const getCompanyTypeExamplesForCountry: (country: CountryCode) => Promise<CompanyTypeExamples>;
5
+ export declare const useCompanyTypeExamples: (country: CountryCode) => Partial<Record<CompanyTypesValue, string[]>>;
@@ -0,0 +1,5 @@
1
+ import { LegalArrangementOption } from '../../../components/internal/AccountHolder/types';
2
+ import { CountryCode } from '../../../core/models/country-code';
3
+ export type LegalArrangementTypeExamples = Partial<Record<LegalArrangementOption, string[]>>;
4
+ export declare const getLegalArrangementTypeExamplesForCountry: (country: CountryCode) => Promise<LegalArrangementTypeExamples>;
5
+ export declare const useLegalArrangementTypeExamples: (country: CountryCode) => Partial<Record<LegalArrangementOption, string[]>>;
@@ -0,0 +1,5 @@
1
+ import { BusinessType } from '../../../components/BusinessTypeSelection/types';
2
+ import { CountryCode } from '../../../core/models/country-code';
3
+ export type BusinessTypeExamples = Partial<Record<BusinessType, string[]>>;
4
+ export declare const getBusinessTypeExamplesForCountry: (country: CountryCode) => Promise<BusinessTypeExamples>;
5
+ export declare const useBusinessTypeExamples: (country: CountryCode) => Partial<Record<BusinessType, string[]>>;
@@ -1,4 +1,5 @@
1
1
  import { AccountHolderOption } from '../components/internal/AccountHolder/types';
2
+ import { CapabilityName } from '../core/models/api/capability';
2
3
  import { LegalEntity } from '../core/models/api/legal-entity';
3
4
  import { LegalEntityType } from '../core/models/api/legal-entity-type';
4
5
  export declare const entityTypeToCorrespondingAccountHolderOption: Record<LegalEntityType, AccountHolderOption>;
@@ -7,3 +8,4 @@ export declare const entityTypeToCorrespondingAccountHolderOption: Record<LegalE
7
8
  ** The value is computed in the front end based on the associations and current flow of the legalEntity
8
9
  * */
9
10
  export declare const getDefaultAccountHolderType: (legalEntityResponse: LegalEntity | undefined, isTypeChanging?: boolean) => AccountHolderOption | undefined;
11
+ export declare const allowIndividualWithoutSoleProp: (capabilities: CapabilityName[]) => boolean;
@@ -1,5 +1,6 @@
1
1
  import { ExperimentName } from '../../core/Context/ExperimentContext/types';
2
- import { LegalEntity } from '../../core/models/api/legal-entity';
2
+ import { CapabilityName } from '../../core/models/api/capability';
3
+ import { ExistingLegalEntity, LegalEntity } from '../../core/models/api/legal-entity';
3
4
  import { CountryCode } from '../../core/models/country-code';
4
5
  import { CapabilityProblems } from '../../core/models/errors/capability-problems';
5
6
  import { EntityProblems } from '../../core/models/errors/entity-problems';
@@ -56,4 +57,5 @@ import { RemediationActionContext } from '../../core/models/errors/remediation-a
56
57
  declare function getCapabilityProblems(response: LegalEntity, country: CountryCode, isExperimentEnabled?: (key: ExperimentName) => boolean): CapabilityProblems;
57
58
  declare const getComponentMappingFromLEFieldPath: (context: RemediationActionContext, entityType: EntityProblems['entityType'], isExperimentEnabled?: (key: ExperimentName) => boolean) => any;
58
59
  export declare const remediationHasFileUploadField: (remediation: Remediation) => boolean;
59
- export { getCapabilityProblems, getComponentMappingFromLEFieldPath };
60
+ declare const getCapabilities: (legalEntity?: ExistingLegalEntity) => CapabilityName[];
61
+ export { getCapabilities, getCapabilityProblems, getComponentMappingFromLEFieldPath };
@@ -0,0 +1,3 @@
1
+ import { LegalEntity } from '../core/models/api/legal-entity';
2
+ import { CountryCode } from '../core/models/country-code';
3
+ export declare const getLegalEntityCountry: (legalEntityResponse: LegalEntity) => CountryCode;
@@ -1,9 +1,9 @@
1
- import { Dispatch, StateUpdater } from 'preact/hooks';
1
+ import { StateUpdater } from 'preact/hooks';
2
2
  type UseStateFromPropParams<T> = {
3
3
  initialValue?: T;
4
4
  passedValue: T;
5
5
  skipUpdate?: boolean;
6
6
  };
7
- type UseStateFromPropReturn<T> = [T | undefined, Dispatch<StateUpdater<T | undefined>>];
7
+ type UseStateFromPropReturn<T> = [T | undefined, StateUpdater<T | undefined>];
8
8
  declare const useStateFromProp: <T>({ initialValue, passedValue, skipUpdate, }: UseStateFromPropParams<T>) => UseStateFromPropReturn<T>;
9
9
  export default useStateFromProp;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/kyc-components",
3
- "version": "2.36.3",
3
+ "version": "2.37.0",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "files": [