@adyen/kyc-components 2.43.2 → 2.44.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 (56) hide show
  1. package/dist/es/adyen-kyc-components.es.js +204 -293
  2. package/dist/style.css +56 -194
  3. package/dist/types/components/BusinessTypeSelection/utils.d.ts +2 -2
  4. package/dist/types/components/CompanyBasics/component/CompanyBasicsComponent.d.ts +1 -1
  5. package/dist/types/components/CompanyOtherDetails/component/CompanyOtherDetailsComponent.d.ts +1 -1
  6. package/dist/types/components/EventEmitter.d.ts +3 -3
  7. package/dist/types/components/internal/Accordion/Accordion.d.ts +11 -3
  8. package/dist/types/components/internal/ContextGuidance/ContextGuidance.d.ts +1 -1
  9. package/dist/types/components/internal/DocumentGuidance/DocumentGuidance.d.ts +1 -1
  10. package/dist/types/components/internal/FormFields/Field/Field.d.ts +1 -1
  11. package/dist/types/components/internal/FormFields/Field/types.d.ts +1 -0
  12. package/dist/types/components/internal/FormFields/InputRadio/InputRadio.d.ts +1 -1
  13. package/dist/types/components/internal/FormFields/MaskedInputText/MaskedInputText.d.ts +2 -1
  14. package/dist/types/components/internal/IdFieldTypeSelector/countryIdNumberTypes.d.ts +1 -1
  15. package/dist/types/components/internal/IdFieldTypeSelector/inferCompanyRegistrationNumberType.d.ts +1 -1
  16. package/dist/types/core/Context/ExperimentContext/types.d.ts +3 -1
  17. package/dist/types/core/Context/SettingsContext/useSetting.d.ts +2 -2
  18. package/dist/types/core/SDKValidation/index.d.ts +2 -2
  19. package/dist/types/core/Services/session.d.ts +1 -1
  20. package/dist/types/core/core.d.ts +4 -4
  21. package/dist/types/core/hooks/useAsyncValidator.d.ts +1 -1
  22. package/dist/types/core/hooks/useBankConfigurationHandlers.d.ts +1 -1
  23. package/dist/types/core/hooks/useForm/reducer.d.ts +5 -3
  24. package/dist/types/core/hooks/useForm/types.d.ts +3 -0
  25. package/dist/types/core/hooks/useIdVerificationToken.d.ts +2 -2
  26. package/dist/types/core/hooks/useLocalStorage.d.ts +1 -5
  27. package/dist/types/core/hooks/useStaticValidator/useStaticValidator.d.ts +2 -2
  28. package/dist/types/core/models/errors/validation-error.d.ts +2 -1
  29. package/dist/types/core/models/field-configurations.d.ts +1 -1
  30. package/dist/types/utils/api/documentUtils.d.ts +1 -1
  31. package/dist/types/utils/api/processCapabilitites.d.ts +1 -1
  32. package/dist/types/utils/company-util.d.ts +1 -1
  33. package/dist/types/utils/entriesOf.d.ts +2 -2
  34. package/dist/types/utils/mapping/componentApiMapping.d.ts +1 -1
  35. package/dist/types/utils/mapping/mapping.d.ts +1 -1
  36. package/dist/types/utils/omitObscuredFieldsIfUnchanged.d.ts +1 -1
  37. package/dist/types/utils/regex/patternValidators.d.ts +1 -1
  38. package/dist/types/utils/trustMembers/handlers/addOrUpdateAssociatedTrustMember.d.ts +2 -2
  39. package/dist/types/utils/trustMembers/handlers/addOrUpdateUndefinedBeneficiary.d.ts +1 -1
  40. package/dist/types/utils/trustMembers/handlers/createExemptSettlor.d.ts +2 -2
  41. package/dist/types/utils/trustMembers/handlers/deleteAssociatedTrustMember.d.ts +1 -1
  42. package/dist/types/utils/trustMembers/handlers/deleteUndefinedBeneficiary.d.ts +1 -1
  43. package/dist/types/utils/trustMembers/handlers/updateExemptSettlorName.d.ts +2 -2
  44. package/dist/types/utils/validatorUtils.d.ts +3 -3
  45. package/dist/types/utils/verification/verificationUtils.d.ts +1 -1
  46. package/package.json +5 -4
  47. package/dist/types/components/internal/Accordion/AccordionContext.d.ts +0 -2
  48. package/dist/types/components/internal/Accordion/index.d.ts +0 -1
  49. package/dist/types/components/internal/Accordion/types.d.ts +0 -22
  50. package/dist/types/components/internal/AccordionItem/AccordionItem.d.ts +0 -3
  51. package/dist/types/components/internal/AccordionItem/index.d.ts +0 -1
  52. package/dist/types/components/internal/AccordionItem/types.d.ts +0 -14
  53. package/dist/types/components/internal/AccordionItem/useAccordionContext.d.ts +0 -1
  54. package/dist/types/components/internal/CollapsibleContainer/CollapsibleContainer.d.ts +0 -3
  55. package/dist/types/components/internal/CollapsibleContainer/index.d.ts +0 -1
  56. package/dist/types/components/internal/CollapsibleContainer/types.d.ts +0 -6
@@ -13,7 +13,8 @@ export interface ValidationError {
13
13
  errorCode: string;
14
14
  }
15
15
  export declare const isValidationError: (error: Error | undefined) => boolean;
16
- export declare const isDocumentUploadError: (error: Error | undefined) => boolean;
16
+ export declare const isIdDocumentUploadError: (error: Error | undefined) => boolean;
17
+ export declare const isBankStatementUploadError: (error: Error | undefined) => boolean;
17
18
  export interface ValidationResponse {
18
19
  invalidFields?: InvalidField[];
19
20
  errorCode?: string;
@@ -7,5 +7,5 @@ export type FieldConfigurations<FormSchema> = {
7
7
  };
8
8
  export type PerCountryFieldConfig<FormSchema, FieldName extends keyof FormSchema, Params extends object> = PerCountry<FieldMetadata<FormSchema, FieldName> | ((params: Params) => FieldMetadata<FormSchema, FieldName>)>;
9
9
  export type NoParams = Record<string, never>;
10
- export declare const resolveFieldMetadata: <FormSchema, FieldName extends keyof FormSchema, Params extends object>(countryEntry: FieldMetadata<FormSchema, FieldName> | ((params: Params) => FieldMetadata<FormSchema, FieldName>), params: Params, defaultMetadata: FieldMetadata<FormSchema, FieldName>) => FieldMetadata<FormSchema, FieldName>;
10
+ export declare const resolveFieldMetadata: <FormSchema, FieldName extends keyof FormSchema, Params extends object>(countryEntry: FieldMetadata<FormSchema, FieldName> | ((params: Params) => FieldMetadata<FormSchema, FieldName>) | undefined, params: Params, defaultMetadata: FieldMetadata<FormSchema, FieldName>) => FieldMetadata<FormSchema, FieldName>;
11
11
  export {};
@@ -6,7 +6,7 @@ export type DocumentApiUtils = {
6
6
  fetchDocument(documentId: string, entityId: string): Promise<Document>;
7
7
  uploadDocuments(documents: Document[], entityId: string): Promise<Document[]>;
8
8
  };
9
- declare const documentApiUtils: (createDocumentHandler: Required<DropinAPIHandlers>['handleCreateDocument'], getDocumentHandler: Required<DropinAPIHandlers>['handleGetDocument'], updateDocumentHandler: Required<DropinAPIHandlers>['handleUpdateDocument']) => DocumentApiUtils;
9
+ declare const documentApiUtils: (createDocumentHandler: Required<DropinAPIHandlers>["handleCreateDocument"], getDocumentHandler: Required<DropinAPIHandlers>["handleGetDocument"], updateDocumentHandler: Required<DropinAPIHandlers>["handleUpdateDocument"]) => DocumentApiUtils;
10
10
  export declare const getDocument: (entityId: string | undefined, documentType: DocumentType) => ExistingDocument | undefined;
11
11
  export declare const getIdDocument: (entityId: string) => Document | undefined;
12
12
  export interface CreateDocumentRequestProps {
@@ -55,7 +55,7 @@ import type { RemediationActionContext } from '../../core/models/errors/remediat
55
55
  *
56
56
  * */
57
57
  declare function getCapabilityProblems(response: LegalEntity, country: CountryCode, isExperimentEnabled?: (key: ExperimentName) => boolean): CapabilityProblems;
58
- declare const getComponentMappingFromLEFieldPath: (context: RemediationActionContext, entityType: EntityProblems['entityType'], isExperimentEnabled?: (key: ExperimentName) => boolean) => any;
58
+ declare const getComponentMappingFromLEFieldPath: (context: RemediationActionContext, entityType: EntityProblems["entityType"], isExperimentEnabled?: (key: ExperimentName) => boolean) => any;
59
59
  export declare const remediationHasFileUploadField: (remediation: Remediation) => boolean;
60
60
  declare const getCapabilities: (legalEntity?: ExistingLegalEntity) => CapabilityName[];
61
61
  export { getCapabilities, getCapabilityProblems, getComponentMappingFromLEFieldPath };
@@ -5,7 +5,7 @@ import type { SoleProprietor } from '../core/models/api/sole-proprietor';
5
5
  import type { Trust } from '../core/models/api/trust';
6
6
  import type { CountryCode } from '../core/models/country-code';
7
7
  export declare const countryToTaxInfoTypeMap: Record<string, TaxInformationType>;
8
- export declare const updateTaxInformation: <T extends Organization | LegalArrangement | Trust>({ taxId, country, exemptedFromTax, isUen, entity, }: {
8
+ export declare const updateTaxInformation: <T extends Organization | SoleProprietor | Trust>({ taxId, country, exemptedFromTax, isUen, entity, }: {
9
9
  taxId: string;
10
10
  country: CountryCode;
11
11
  exemptedFromTax?: boolean;
@@ -1,4 +1,4 @@
1
1
  import type { Entries } from 'type-fest';
2
2
  export declare const entriesOf: <T extends object>(object: T) => Entries<T>;
3
- export declare const valuesOf: <T extends object>(object: T) => T[keyof T][];
4
- export declare const keysOf: <T extends object>(object: T) => (keyof T)[];
3
+ export declare const valuesOf: <T extends object>(object: T) => Array<T[keyof T]>;
4
+ export declare const keysOf: <T extends object>(object: T) => Array<keyof T>;
@@ -102,7 +102,7 @@ export declare const companyComponentsKeyMapping: {
102
102
  'companyRegistrationDetails.exemptedFromVat': string;
103
103
  };
104
104
  export declare const companyApiKeyMapping: {
105
- [x: string]: "companyType.entityType" | "companyNameAndCountry.country" | "companyNameAndCountry.legalCompanyName" | "companyNameAndCountry.countryOfGoverningLaw" | "companyRegistrationAddress.registrationAddress.country" | "companyRegistrationAddress.registrationAddress.postalCode" | "companyRegistrationAddress.registrationAddress.city" | "companyRegistrationAddress.registrationAddress.stateOrProvince" | "companyRegistrationAddress.registrationAddress.otherAddressInformation" | "companyRegistrationAddress.registrationAddress.address" | "companyRegistrationAddress.operationalAddress.country" | "companyRegistrationAddress.operationalAddress.postalCode" | "companyRegistrationAddress.operationalAddress.city" | "companyRegistrationAddress.operationalAddress.stateOrProvince" | "companyRegistrationAddress.operationalAddress.otherAddressInformation" | "companyRegistrationAddress.operationalAddress.address" | "companyRegistrationDetails.dateOfIncorporation" | "companyRegistrationDetails.tradingName" | "companyRegistrationDetails.vatAbsenceReason" | "companyRegistrationDetails.vatNumber" | "companyRegistrationDetails.registrationNumber" | "companyRegistrationDetails.stockExchangeMIC" | "companyRegistrationDetails.stockISIN" | "companyRegistrationDetails.isUen";
105
+ [x: string]: "companyType.entityType" | "companyNameAndCountry.country" | "companyNameAndCountry.legalCompanyName" | "companyNameAndCountry.countryOfGoverningLaw" | "companyRegistrationDetails.dateOfIncorporation" | "companyRegistrationDetails.tradingName" | "companyRegistrationDetails.vatAbsenceReason" | "companyRegistrationDetails.vatNumber" | "companyRegistrationDetails.registrationNumber" | "companyRegistrationDetails.stockExchangeMIC" | "companyRegistrationDetails.stockISIN" | "companyRegistrationDetails.isUen" | "companyRegistrationAddress.registrationAddress.country" | "companyRegistrationAddress.registrationAddress.postalCode" | "companyRegistrationAddress.registrationAddress.city" | "companyRegistrationAddress.registrationAddress.stateOrProvince" | "companyRegistrationAddress.registrationAddress.otherAddressInformation" | "companyRegistrationAddress.registrationAddress.address" | "companyRegistrationAddress.operationalAddress.country" | "companyRegistrationAddress.operationalAddress.postalCode" | "companyRegistrationAddress.operationalAddress.city" | "companyRegistrationAddress.operationalAddress.stateOrProvince" | "companyRegistrationAddress.operationalAddress.otherAddressInformation" | "companyRegistrationAddress.operationalAddress.address";
106
106
  };
107
107
  export declare const companySearchComponentsKeyMapping: {
108
108
  'companyBasics.country': string;
@@ -12,7 +12,7 @@ import type { Individual } from '../../core/models/api/individual';
12
12
  import type { ExistingLegalEntity, LegalEntity } from '../../core/models/api/legal-entity';
13
13
  import type { TransferInstrument } from '../../core/models/api/transfer-instrument';
14
14
  import type { FileSchema } from '../../core/models/file';
15
- export declare const adjustIdentificationData: (data: PersonalDetailsSchema, apiData: Individual['identificationData']) => Individual['identificationData'];
15
+ export declare const adjustIdentificationData: (data: PersonalDetailsSchema, apiData: Individual["identificationData"]) => Individual["identificationData"];
16
16
  /**
17
17
  * Easy to use function for mapping transferInstrument response to payout account details component data
18
18
  * @param transferInstrument - a transferInstrument the same as found in API response
@@ -1,2 +1,2 @@
1
1
  import type { RecursiveKeyOf } from './getNestedPropertyKeys';
2
- export declare const omitObscuredFieldsIfUnchanged: <Schema extends object>(obscuredFields: RecursiveKeyOf<Schema>[], dataSubmitted: Schema, savedData: Schema) => Schema;
2
+ export declare const omitObscuredFieldsIfUnchanged: <Schema extends object>(obscuredFields: Array<RecursiveKeyOf<Schema>>, dataSubmitted: Schema | undefined, savedData: Schema | undefined) => Schema;
@@ -1,3 +1,3 @@
1
1
  import type { ValidatorRule } from '../validation/types';
2
2
  export declare const validateNotEmptyOnBlur: ValidatorRule<string | undefined, object>;
3
- export declare const validatePatternOnBlur: <ValueType extends string, FormSchema>(pattern: RegExp) => ValidatorRule<ValueType, FormSchema>;
3
+ export declare const validatePatternOnBlur: <ValueType extends string | undefined, FormSchema>(pattern: RegExp) => ValidatorRule<ValueType, FormSchema>;
@@ -4,10 +4,10 @@ import type { ExistingLegalEntity } from '../../../core/models/api/legal-entity'
4
4
  export declare const addOrUpdateAssociatedTrustMember: ({ newOrUpdated, trust, handleUpdateLegalEntity, }: {
5
5
  newOrUpdated: RegularTrustMember | CompanyTrustMember | ExemptSettlor;
6
6
  trust: ExistingLegalEntity;
7
- handleUpdateLegalEntity: NonNullable<DropinAPIHandlers['handleUpdateLegalEntity']>;
7
+ handleUpdateLegalEntity: NonNullable<DropinAPIHandlers["handleUpdateLegalEntity"]>;
8
8
  }) => Promise<void>;
9
9
  export declare const updateRootTrusteeTrustMember: ({ trustMember, trust, handleUpdateLegalEntity, }: {
10
10
  trustMember: RootTrustee;
11
11
  trust: ExistingLegalEntity;
12
- handleUpdateLegalEntity: NonNullable<DropinAPIHandlers['handleUpdateLegalEntity']>;
12
+ handleUpdateLegalEntity: NonNullable<DropinAPIHandlers["handleUpdateLegalEntity"]>;
13
13
  }) => Promise<void>;
@@ -4,5 +4,5 @@ import type { ExistingLegalEntity } from '../../../core/models/api/legal-entity'
4
4
  export declare const addOrUpdateUndefinedBeneficiary: ({ newOrUpdated, trust, handleUpdateLegalEntity, }: {
5
5
  newOrUpdated: UndefinedBeneficiary;
6
6
  trust: ExistingLegalEntity;
7
- handleUpdateLegalEntity: NonNullable<DropinAPIHandlers['handleUpdateLegalEntity']>;
7
+ handleUpdateLegalEntity: NonNullable<DropinAPIHandlers["handleUpdateLegalEntity"]>;
8
8
  }) => Promise<void>;
@@ -4,9 +4,9 @@ import type { ExistingLegalEntity } from '../../../core/models/api/legal-entity'
4
4
  export declare const createExemptSettlor: ({ exemptSettlor, trust, handleCreateLegalEntity, }: {
5
5
  exemptSettlor: ExemptSettlor;
6
6
  trust: ExistingLegalEntity;
7
- handleCreateLegalEntity: NonNullable<DropinAPIHandlers['handleCreateLegalEntity']>;
7
+ handleCreateLegalEntity: NonNullable<DropinAPIHandlers["handleCreateLegalEntity"]>;
8
8
  }) => Promise<ExistingLegalEntity>;
9
9
  export declare const createOrganizationExemptSettlor: ({ exemptSettlor, handleCreateLegalEntity, }: {
10
10
  exemptSettlor: ExemptSettlor;
11
- handleCreateLegalEntity: NonNullable<DropinAPIHandlers['handleCreateLegalEntity']>;
11
+ handleCreateLegalEntity: NonNullable<DropinAPIHandlers["handleCreateLegalEntity"]>;
12
12
  }) => Promise<ExistingLegalEntity>;
@@ -4,5 +4,5 @@ import type { ExistingLegalEntity } from '../../../core/models/api/legal-entity'
4
4
  export declare const deleteAssociatedTrustMember: ({ associatedTrustMember, trust, handleUpdateLegalEntity, }: {
5
5
  associatedTrustMember: RegularTrustMember | CompanyTrustMember | ExemptSettlor;
6
6
  trust: ExistingLegalEntity;
7
- handleUpdateLegalEntity: NonNullable<DropinAPIHandlers['handleUpdateLegalEntity']>;
7
+ handleUpdateLegalEntity: NonNullable<DropinAPIHandlers["handleUpdateLegalEntity"]>;
8
8
  }) => Promise<void>;
@@ -8,5 +8,5 @@ import type { ExistingLegalEntity } from '../../../core/models/api/legal-entity'
8
8
  export declare const deleteUndefinedBeneficiary: ({ undefinedBeneficiary, trust, handleUpdateLegalEntity, }: {
9
9
  undefinedBeneficiary: UndefinedBeneficiary;
10
10
  trust: ExistingLegalEntity;
11
- handleUpdateLegalEntity: NonNullable<DropinAPIHandlers['handleUpdateLegalEntity']>;
11
+ handleUpdateLegalEntity: NonNullable<DropinAPIHandlers["handleUpdateLegalEntity"]>;
12
12
  }) => Promise<void>;
@@ -4,9 +4,9 @@ import type { ExistingLegalEntity } from '../../../core/models/api/legal-entity'
4
4
  export declare const exemptSettlorNamesTheSame: (existingSettlor: ExemptSettlor, newSettlor: ExemptSettlor) => boolean;
5
5
  export declare const updateExemptSettlorName: ({ exemptSettlor, handleUpdateLegalEntity, }: {
6
6
  exemptSettlor: ExemptSettlor;
7
- handleUpdateLegalEntity: NonNullable<DropinAPIHandlers['handleUpdateLegalEntity']>;
7
+ handleUpdateLegalEntity: NonNullable<DropinAPIHandlers["handleUpdateLegalEntity"]>;
8
8
  }) => Promise<ExistingLegalEntity>;
9
9
  export declare const updateOrganizationExemptSettlorName: ({ exemptSettlor, handleUpdateLegalEntity, }: {
10
10
  exemptSettlor: ExemptSettlor;
11
- handleUpdateLegalEntity: NonNullable<DropinAPIHandlers['handleUpdateLegalEntity']>;
11
+ handleUpdateLegalEntity: NonNullable<DropinAPIHandlers["handleUpdateLegalEntity"]>;
12
12
  }) => Promise<ExistingLegalEntity>;
@@ -1,8 +1,8 @@
1
1
  import type { CountryCode } from '../core/models/country-code';
2
2
  import type { CountryFormatRules } from './validation/types';
3
- export declare const getMaxLengthByFieldAndCountry: <FormSchema extends object>(formattingRules: Partial<Record<"AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BQ" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CW" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "EL" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KR" | "KP" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "SH" | "KN" | "LC" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "US" | "UM" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW", Partial<{ [field in keyof FormSchema]: import("./validation/types").Format<FormSchema[field]>; }>>>, field: keyof FormSchema, country: CountryCode, ignoreIfFormatterExists: boolean) => number;
4
- export declare const isUndefinedOrNull: (input: unknown) => input is null;
5
- export declare const isEmpty: (input: unknown) => input is null;
3
+ export declare const getMaxLengthByFieldAndCountry: <FormSchema extends object>(formattingRules: CountryFormatRules<FormSchema>, field: keyof FormSchema, country: CountryCode, ignoreIfFormatterExists: boolean) => number;
4
+ export declare const isUndefinedOrNull: (input: unknown) => input is undefined | null;
5
+ export declare const isEmpty: (input: unknown) => input is null | undefined;
6
6
  export declare const isString: (input: unknown) => input is string;
7
7
  export declare const hasText: (input: unknown) => boolean;
8
8
  export declare const SPECIAL_CHARS = "?\\-\\+_=!@#$%^&*(){}~<>\\[\\]\\/\\\\";
@@ -3,5 +3,5 @@ import type { CountryCode } from '../../core/models/country-code';
3
3
  import type { IdVerificationStatus } from '../../core/models/id-verification-status';
4
4
  export declare function useVerification(fieldsToVerify: any[], country: CountryCode): {
5
5
  hasFieldsToVerify: boolean;
6
- verifyFields: (formState: Pick<IdFormState, 'data'>, savedData: PersonalDetailsSchema) => Promise<IdVerificationStatus[]>;
6
+ verifyFields: (formState: Pick<IdFormState, "data">, savedData: PersonalDetailsSchema) => Promise<IdVerificationStatus[]>;
7
7
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/kyc-components",
3
- "version": "2.43.2",
3
+ "version": "2.44.0",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -59,8 +59,9 @@
59
59
  "storybook:build": "vite-node ./.storybook/buildStorybook.ts",
60
60
  "test": "vitest",
61
61
  "test:coverage": "vitest --coverage",
62
- "test:e2e": "playwright test --project local-chrome",
63
- "test:e2e:debug": "cross-env PWDEBUG=console playwright test --debug --project chromium",
62
+ "test:e2e": "playwright test",
63
+ "test:e2e:debug": "cross-env PWDEBUG=console playwright test --debug",
64
+ "test:e2e:ui": "playwright test --ui",
64
65
  "test:ui": "vitest --ui",
65
66
  "test:watch": "npm run test --watch",
66
67
  "types:build": "tsc --project tsconfig-build.json",
@@ -128,7 +129,7 @@
128
129
  "stylelint-config-sass-guidelines": "^10.0.0",
129
130
  "stylelint-scss": "^4.7.0",
130
131
  "type-fest": "^3.13.1",
131
- "typescript": "5.1.6",
132
+ "typescript": "^5.5.2",
132
133
  "typescript-strict-plugin": "^2.2.0",
133
134
  "vite": "^5.2.6",
134
135
  "vite-node": "^1.4.0",
@@ -1,2 +0,0 @@
1
- import type { AccordionContextType } from './types';
2
- export declare const AccordionContext: import("preact").Context<AccordionContextType>;
@@ -1 +0,0 @@
1
- export { default } from './Accordion';
@@ -1,22 +0,0 @@
1
- import type { ComponentChildren } from 'preact';
2
- export interface AccordionProps {
3
- children: ComponentChildren;
4
- className?: string;
5
- expand?: boolean;
6
- type?: string;
7
- onExpandSection?: (title: string) => void;
8
- }
9
- export type AccordionSection = {
10
- id: string;
11
- isOpen: boolean;
12
- };
13
- export type AccordionContextType = {
14
- expand: boolean;
15
- items: AccordionSection[];
16
- setItems: (items: AccordionSection[] | ((items: AccordionSection[]) => AccordionSection[])) => void;
17
- onExpandSection?: (title: string) => void;
18
- };
19
- export declare enum Placement {
20
- Left = 0,
21
- Right = 1
22
- }
@@ -1,3 +0,0 @@
1
- import './_accordion-item.component.scss';
2
- import type { AccordionItemProps } from './types';
3
- export default function AccordionItem({ children, open, title, subTitle, expandIconPlacement, iconPlacement, icon, onOpen, onClose, }: AccordionItemProps): import("preact").JSX.Element;
@@ -1 +0,0 @@
1
- export { default } from './AccordionItem';
@@ -1,14 +0,0 @@
1
- import type { ComponentChildren } from 'preact';
2
- import type { Placement } from '../Accordion/types';
3
- import type { IconName } from '../Icon/Icon';
4
- export interface AccordionItemProps {
5
- children: ComponentChildren;
6
- open?: boolean;
7
- title?: string;
8
- subTitle?: string;
9
- expandIconPlacement?: Placement;
10
- icon?: IconName;
11
- iconPlacement?: Placement;
12
- onOpen?: () => void;
13
- onClose?: () => void;
14
- }
@@ -1 +0,0 @@
1
- export declare const useAccordionContext: () => import("../Accordion/types").AccordionContextType;
@@ -1,3 +0,0 @@
1
- import './CollapsibleContainer.scss';
2
- import type { CollapsibleContainerProps } from './types';
3
- export default function CollapsibleContainer({ children, collapsed, animationDuration, }: CollapsibleContainerProps): import("preact").JSX.Element;
@@ -1 +0,0 @@
1
- export { default } from './CollapsibleContainer';
@@ -1,6 +0,0 @@
1
- import type { ComponentChildren } from 'preact';
2
- export interface CollapsibleContainerProps {
3
- children: ComponentChildren;
4
- collapsed?: boolean;
5
- animationDuration?: number;
6
- }