@adyen/kyc-components 3.18.0 → 3.19.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 (28) hide show
  1. package/dist/es/adyen-kyc-components.es.js +977 -344
  2. package/dist/style.css +164 -1812
  3. package/dist/types/components/Dropins/HighExposureDropin/components/AdditionalFieldsForHighExposureCompany.d.ts +4 -0
  4. package/dist/types/components/Dropins/HighExposureDropin/components/AdditionalFieldsForHighExposureParentCompany.d.ts +4 -0
  5. package/dist/types/components/Dropins/HighExposureDropin/components/AdditionalFieldsForHighExposureUltimateParentCompany.d.ts +4 -0
  6. package/dist/types/components/Dropins/HighExposureDropin/components/HighExposureDropinComponent.d.ts +6 -0
  7. package/dist/types/components/Dropins/HighExposureDropin/types.d.ts +34 -0
  8. package/dist/types/components/Dropins/HighExposureDropin/validate.d.ts +3 -0
  9. package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/OnboardingDropinComponent.d.ts +2 -1
  10. package/dist/types/components/EmbeddedDropins/UpdateLegalEntityForHighExposure/UpdateLegalEntityForHighExposure.d.ts +2 -0
  11. package/dist/types/components/index.d.ts +2 -0
  12. package/dist/types/components/internal/DocumentGuidance/DocumentGuidance.d.ts +1 -1
  13. package/dist/types/components/internal/FormFields/Field/Field.d.ts +5 -3
  14. package/dist/types/components/internal/IdFieldTypeSelector/countryIdNumberTypes.d.ts +8 -0
  15. package/dist/types/components/internal/IdFieldTypeSelector/inferTaxIdNumberType.d.ts +4 -1
  16. package/dist/types/components/internal/TaxId/fieldConfig.d.ts +3 -0
  17. package/dist/types/core/Context/StateContext/types.d.ts +2 -1
  18. package/dist/types/core/Services/componentApi/{get-service-agreement-acceptance-info.d.ts → get-service-agreement-acceptance-infos.d.ts} +1 -1
  19. package/dist/types/core/Services/componentApi/push-events.d.ts +1 -2
  20. package/dist/types/core/hooks/useAnalytics.d.ts +9 -3
  21. package/dist/types/core/process-field-configurations.d.ts +2 -0
  22. package/dist/types/core/user-events.d.ts +4 -8
  23. package/dist/types/core/utils.d.ts +1 -1
  24. package/dist/types/utils/api/processValidationErrors.d.ts +4 -1
  25. package/dist/types/utils/getNestedPropertyKeys.d.ts +1 -1
  26. package/dist/types/utils/mapping/componentApiMapping.d.ts +8 -0
  27. package/dist/types/utils/mapping/mapping.d.ts +4 -1
  28. package/package.json +7 -4
@@ -0,0 +1,4 @@
1
+ import type { HighExposureCompanyDetailsProps, HighExposureCompanySchema } from '../types';
2
+ export declare const highExposureCompanyDetailsFields: Array<keyof HighExposureCompanySchema>;
3
+ declare function AdditionalFieldsForHighExposureCompany({ requiredFields, ...props }: HighExposureCompanyDetailsProps): import("preact").JSX.Element;
4
+ export default AdditionalFieldsForHighExposureCompany;
@@ -0,0 +1,4 @@
1
+ import type { HighExposureParentCompanyDetailsProps, HighExposureParentCompanySchema } from '../types';
2
+ export declare const highExposureParentCompanyDetailsFields: Array<keyof HighExposureParentCompanySchema>;
3
+ declare function AdditionalFieldsForHighExposureParentCompany({ requiredFields, ...props }: HighExposureParentCompanyDetailsProps): import("preact").JSX.Element;
4
+ export default AdditionalFieldsForHighExposureParentCompany;
@@ -0,0 +1,4 @@
1
+ import type { HighExposureUltimateParentCompanyDetailsProps, HighExposureUltimateParentCompanySchema } from '../types';
2
+ export declare const highExposureUltimateParentCompanyDetailsFields: Array<keyof HighExposureUltimateParentCompanySchema>;
3
+ declare function AdditionalFieldsForHighExposureUltimateParentCompany({ requiredFields, ...props }: HighExposureUltimateParentCompanyDetailsProps): import("preact").JSX.Element;
4
+ export default AdditionalFieldsForHighExposureUltimateParentCompany;
@@ -0,0 +1,6 @@
1
+ import type { FormList } from '../../../../core/models/form';
2
+ import type { HighExposureDropinProps } from '../types';
3
+ export declare const highExposureForms: FormList;
4
+ export declare const ultimateParentCompanyFormId: string;
5
+ declare function HighExposureDropinComponent(props: HighExposureDropinProps): import("preact").JSX.Element;
6
+ export default HighExposureDropinComponent;
@@ -0,0 +1,34 @@
1
+ import type { BaseInnerFormProps, BaseOuterFormProps } from '../../../core/hooks/useForm';
2
+ import type { CapabilityName } from '../../../core/models/api/capability';
3
+ import type { ExistingLegalEntity, LegalEntity } from '../../../core/models/api/legal-entity';
4
+ import type { CountryCode } from '../../../core/models/country-code';
5
+ import type { FormModel } from '../../../core/models/form';
6
+ import type { DropinProps } from '../types';
7
+ export interface HighExposureCompanySchema {
8
+ country?: CountryCode;
9
+ numberOfEmployees?: number;
10
+ }
11
+ export type HighExposureParentCompanySchema = HighExposureCompanySchema;
12
+ export type HighExposureUltimateParentCompanySchema = HighExposureCompanySchema;
13
+ export interface HighExposureSchema {
14
+ company?: HighExposureCompanySchema;
15
+ parentCompany?: HighExposureParentCompanySchema;
16
+ ultimateParentCompany?: HighExposureParentCompanySchema;
17
+ }
18
+ export interface HighExposureDropinProps extends BaseOuterFormProps<HighExposureSchema> {
19
+ capabilities?: CapabilityName[];
20
+ activeForm?: FormModel;
21
+ forms?: FormModel[];
22
+ country: CountryCode;
23
+ }
24
+ export interface HighExposureProps extends HighExposureDropinProps, DropinProps {
25
+ legalEntityId: ExistingLegalEntity['id'];
26
+ legalEntity?: LegalEntity;
27
+ parentLegalEntity?: ExistingLegalEntity;
28
+ onSubmit?: (data: HighExposureSchema) => void;
29
+ }
30
+ export interface HighExposureCompanyDetailsProps extends BaseInnerFormProps<HighExposureCompanySchema> {
31
+ country: CountryCode;
32
+ }
33
+ export type HighExposureParentCompanyDetailsProps = HighExposureCompanyDetailsProps;
34
+ export type HighExposureUltimateParentCompanyDetailsProps = HighExposureCompanyDetailsProps;
@@ -0,0 +1,3 @@
1
+ import type { ValidatorRules } from '../../../utils/validation/types';
2
+ import type { HighExposureCompanySchema } from './types';
3
+ export declare const highExposureCompanyDetailsValidations: ValidatorRules<HighExposureCompanySchema>;
@@ -1,4 +1,5 @@
1
1
  export interface OnboardingDropinComponentProps {
2
2
  legalEntityId: string;
3
+ openBankingPartnerConfigId?: string;
3
4
  }
4
- export declare function OnboardingDropinComponent({ legalEntityId }: OnboardingDropinComponentProps): import("preact").JSX.Element;
5
+ export declare function OnboardingDropinComponent({ legalEntityId, openBankingPartnerConfigId, }: OnboardingDropinComponentProps): import("preact").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { HighExposureProps } from '../../Dropins/HighExposureDropin/types';
2
+ export declare function UpdateLegalEntityForHighExposure({ parentLegalEntity, capabilities, country, trackingConfig, problems: problemsProp, onSubmit: externalOnSubmit, onChange, hideDropinLayout, handleHomeClick, homeButtonLabel, legalEntityId, }: HighExposureProps): import("preact").JSX.Element;
@@ -15,6 +15,7 @@ import { CreateIndividualComponent } from './EmbeddedDropins/CreateIndividualCom
15
15
  import { CreateTransferInstrumentComponent } from './EmbeddedDropins/CreateTransferInstrumentComponent/CreateTransferInstrumentComponent';
16
16
  import { ManageTransferInstrumentComponent } from './EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentComponent';
17
17
  import { OnboardingDropinComponent } from './EmbeddedDropins/OnboardingDropinComponent/OnboardingDropinComponent';
18
+ import { UpdateLegalEntityForHighExposure } from './EmbeddedDropins/UpdateLegalEntityForHighExposure/UpdateLegalEntityForHighExposure';
18
19
  import { ViewVerificationStatusComponent } from './EmbeddedDropins/ViewVerificationStatus';
19
20
  /**
20
21
  * Maps each component with a Component element.
@@ -34,6 +35,7 @@ export declare const componentsMap: {
34
35
  readonly manageTransferInstrumentComponent: typeof ManageTransferInstrumentComponent;
35
36
  readonly onboardingDropinComponent: typeof OnboardingDropinComponent;
36
37
  readonly viewVerificationStatusComponent: typeof ViewVerificationStatusComponent;
38
+ readonly updateLegalEntityForHighExposureComponent: typeof UpdateLegalEntityForHighExposure;
37
39
  };
38
40
  export type ComponentMap = typeof componentsMap;
39
41
  export type ComponentProps<Name extends keyof ComponentMap> = Parameters<ComponentMap[Name]>[0];
@@ -1,4 +1,4 @@
1
- import './_document-guidance.component.scss';
1
+ import './DocumentGuidance.scss';
2
2
  import type { DocumentGuidanceProps } from './types';
3
3
  declare function DocumentGuidance({ type, className }: DocumentGuidanceProps): import("preact").JSX.Element;
4
4
  export default DocumentGuidance;
@@ -1,10 +1,12 @@
1
1
  import './Field.scss';
2
- import type { ComponentProps, JSX } from 'preact';
2
+ import type { ComponentChildren, ComponentProps, JSX } from 'preact';
3
3
  import type { FieldProps } from './types';
4
- export type MaybeLabelElementProps = (ComponentProps<'label'> & {
4
+ export type MaybeLabelElementProps = {
5
+ children: ComponentChildren;
6
+ } & ((ComponentProps<'label'> & {
5
7
  useLabelElement: true;
6
8
  }) | (ComponentProps<'div'> & {
7
9
  useLabelElement: false;
8
- });
10
+ }));
9
11
  declare const Field: ({ className, classNameModifiers, children, dataPlaceholder, disabled, optional, errorMessage, filled, focused, helper, inputWrapperModifiers, isLoading, isValid, label, name, onBlur, onFieldBlur, onFocus, onFocusField, showErrorIconBottom, useLabelElement, helperPosition, wrapperRef, }: FieldProps) => JSX.Element;
10
12
  export default Field;
@@ -123,6 +123,14 @@ export declare const taxIdNumberOptions: {
123
123
  readonly id: "uen";
124
124
  readonly name: "uen";
125
125
  }];
126
+ readonly JE: readonly [{
127
+ readonly id: "taxIdentificationNumber";
128
+ readonly name: "taxIdentificationNumber";
129
+ }, {
130
+ readonly id: "socialSecurityNumber";
131
+ readonly name: "socialSecurityNumber";
132
+ readonly applicableOnlyFor: readonly [CompanyTypesValue.SOLE_PROPRIETORSHIP];
133
+ }];
126
134
  };
127
135
  export declare const getTaxIdNumberOptions: (country: CountryCode, companyType: CompanyTypesValue | LegalEntityType.TRUST | undefined) => readonly TaxIdNumberOption[] | undefined;
128
136
  export type TaxIdNumberType = (typeof taxIdNumberOptions)[keyof typeof taxIdNumberOptions][number]['id'];
@@ -1,3 +1,5 @@
1
+ import type { CompanyTypesValue } from '../../../core/models/api/company-types-value';
2
+ import type { LegalEntityType } from '../../../core/models/api/legal-entity-type';
1
3
  import type { CountryCode } from '../../../core/models/country-code';
2
4
  import type { TaxIdNumberType } from './countryIdNumberTypes';
3
5
  /**
@@ -6,5 +8,6 @@ import type { TaxIdNumberType } from './countryIdNumberTypes';
6
8
  * We don't store this choice in the API.
7
9
  * @param taxId the existing tax ID number
8
10
  * @param country the country of the LE
11
+ * @param companyType the company type, e.g. `nonProfit`
9
12
  */
10
- export declare const inferTaxIdNumberType: (taxId: string, country: CountryCode) => TaxIdNumberType | undefined;
13
+ export declare const inferTaxIdNumberType: (taxId: string, country: CountryCode, companyType: CompanyTypesValue | LegalEntityType.TRUST | undefined) => TaxIdNumberType | undefined;
@@ -1,8 +1,11 @@
1
+ import { CompanyTypesValue } from '../../../core/models/api/company-types-value';
2
+ import type { LegalEntityType } from '../../../core/models/api/legal-entity-type';
1
3
  import type { FieldMetadata } from '../../../core/models/country-config';
2
4
  import type { PerCountryFieldConfig } from '../../../core/models/field-configurations';
3
5
  import type { TaxIdNumberType } from '../IdFieldTypeSelector/countryIdNumberTypes';
4
6
  import type { TaxIdSchema } from './types';
5
7
  export interface FieldConfigParams {
8
+ companyType: CompanyTypesValue | LegalEntityType.TRUST | undefined;
6
9
  taxIdNumberType: TaxIdNumberType | undefined;
7
10
  }
8
11
  export declare const defaultFieldMetadata: FieldMetadata<TaxIdSchema, 'taxId'>;
@@ -1,6 +1,7 @@
1
1
  import type { BusinessDetailsSchema } from '../../../components/BusinessDetails/types';
2
2
  import type { CompanySchema } from '../../../components/Company/types';
3
3
  import type { CompanySearchSchema } from '../../../components/CompanySearch/types';
4
+ import type { HighExposureSchema } from '../../../components/Dropins/HighExposureDropin/types';
4
5
  import type { TrustMemberSchema } from '../../../components/Dropins/RoleAndTypeDropin/types';
5
6
  import type { IndividualSchema } from '../../../components/Individual/types';
6
7
  import type { PayoutDetailsSchema } from '../../../components/PayoutDetails/types';
@@ -48,7 +49,7 @@ export type StateModel<TLDS extends TopLevelDataSchema = TopLevelDataSchema> = {
48
49
  prevState?: State<TLDS>;
49
50
  };
50
51
  };
51
- export type TopLevelDataSchema = IndividualSchema | BusinessDetailsSchema | CompanySchema | CompanySearchSchema | PayoutDetailsSchema | TrustSchema | TrustMemberSchema | SolePropSchema;
52
+ export type TopLevelDataSchema = IndividualSchema | BusinessDetailsSchema | CompanySchema | CompanySearchSchema | PayoutDetailsSchema | TrustSchema | TrustMemberSchema | SolePropSchema | HighExposureSchema;
52
53
  export type AnyFormIdOfTLDS = keyof IndividualSchema | keyof BusinessDetailsSchema | keyof CompanySchema | keyof CompanySearchSchema | keyof PayoutDetailsSchema | keyof TrustSchema | keyof TrustMemberSchema | keyof SolePropSchema;
53
54
  export interface State<TLDS extends TopLevelDataSchema> {
54
55
  data: TLDS;
@@ -1,3 +1,3 @@
1
1
  import type { ServiceAgreementAcceptanceInfos } from '../../models/api/contracts';
2
2
  import type { ComponentApiRequestContext } from '../types';
3
- export declare const getServiceAgreementAcceptanceInfo: (context: ComponentApiRequestContext) => Promise<ServiceAgreementAcceptanceInfos>;
3
+ export declare const getServiceAgreementAcceptanceInfos: (context: ComponentApiRequestContext) => Promise<ServiceAgreementAcceptanceInfos>;
@@ -1,2 +1 @@
1
- import type { EmbeddedEventItem } from '../../user-events';
2
- export declare const pushEvents: (loadingContext: string, sessionId: string, event: EmbeddedEventItem) => Promise<void>;
1
+ export declare const pushEvents: <T>(loadingContext: string, sessionId: string, event: T) => Promise<unknown>;
@@ -1,10 +1,16 @@
1
1
  import type { ComponentMap } from '../../components';
2
- import type { EmbeddedEventItem, EventQueueItem, UserEventCallback } from '../user-events';
3
- export type useAnalyticsProps = {
2
+ import type { EventData, EventQueueItem, EventType, UserEventCallback } from '../user-events';
3
+ export type UseAnalyticsProps = {
4
4
  legalEntityId: string;
5
5
  onUserEvent?: UserEventCallback;
6
6
  sdkVersion: string;
7
7
  componentName: keyof ComponentMap;
8
8
  };
9
+ type EmbeddedEventItem = {
10
+ eventType: EventType;
11
+ eventName: string;
12
+ eventData: EventData;
13
+ };
9
14
  export declare const convertToEmbeddedEvent: (eventQueueItem: EventQueueItem) => EmbeddedEventItem;
10
- export declare const useAnalytics: ({ onUserEvent, legalEntityId, sdkVersion, componentName, }: useAnalyticsProps) => Promise<void>;
15
+ export declare const useAnalytics: ({ onUserEvent, legalEntityId, sdkVersion, componentName, }: UseAnalyticsProps) => Promise<void>;
16
+ export {};
@@ -1,6 +1,7 @@
1
1
  import type { BusinessDetailsSchema } from '../components/BusinessDetails/types';
2
2
  import type { CompanySchema } from '../components/Company/types';
3
3
  import type { CompanySearchSchema } from '../components/CompanySearch/types';
4
+ import type { HighExposureSchema } from '../components/Dropins/HighExposureDropin/types';
4
5
  import type { IndividualSchema } from '../components/Individual/types';
5
6
  import type { PayoutAccountSchema } from '../components/PayoutAccount/types';
6
7
  import type { SolePropSchema } from '../components/SoleProp/types';
@@ -19,6 +20,7 @@ export declare function parseBusinessDetailsScenarios(scenario: Scenario[] | und
19
20
  export declare function parseCompanyScenarios(scenario: Scenario[], country: CountryCode): FieldConfigurations<CompanySchema>;
20
21
  export declare function parseCompanySearchScenarios(scenario: Scenario[] | undefined, country: CountryCode): FieldConfigurations<CompanySearchSchema>;
21
22
  export declare function parseTrustScenarios(scenario: Scenario[], country: CountryCode): FieldConfigurations<TrustSchema>;
23
+ export declare const parseHighExposureScenarios: (scenario: Scenario[] | undefined) => FieldConfigurations<HighExposureSchema>;
22
24
  export declare function parseSolePropScenarios(scenario: Scenario[], country: CountryCode): FieldConfigurations<SolePropSchema>;
23
25
  export declare function parsePayoutScenarios({ requiredFields, country, bankVerificationAvailable, }: {
24
26
  requiredFields: (keyof PayoutAccountSchema)[] | undefined;
@@ -1,8 +1,9 @@
1
+ export interface EventData {
2
+ [key: string]: string | number | boolean | any[] | null;
3
+ }
1
4
  export interface UserEvent {
2
5
  /** Object with segments should be a flat object (arbitrary key/value pairs for event data) */
3
- segmentation?: {
4
- [key: string]: string | number | boolean | any[] | null;
5
- };
6
+ segmentation?: EventData;
6
7
  }
7
8
  type UserEventWithKey = UserEvent & {
8
9
  key: string;
@@ -10,11 +11,6 @@ type UserEventWithKey = UserEvent & {
10
11
  export type EventType = 'track_pageview' | 'add_event' | 'start_event' | 'end_event';
11
12
  export type EventQueueItem = [EventType, string | UserEventWithKey];
12
13
  export type UserEventCallback = (eventQueueItem: EventQueueItem) => void;
13
- export type EmbeddedEventItem = {
14
- eventType: EventType;
15
- eventName: string;
16
- eventData?: UserEvent;
17
- };
18
14
  declare class UserEvents {
19
15
  private readonly queue;
20
16
  private readonly subscriptions;
@@ -7,7 +7,7 @@ type BaseTrackingPayloadParams = {
7
7
  };
8
8
  parentLegalEntity?: LegalEntity;
9
9
  legalEntity?: LegalEntity;
10
- task: TaskTypes;
10
+ task?: TaskTypes;
11
11
  };
12
12
  export type BaseTrackingPayload = {
13
13
  task: TaskTypes;
@@ -4,6 +4,9 @@ import type { ValidationError } from '../../core/models/errors/validation-error'
4
4
  * Processes server validation errors received from an erroneous HTTP response.
5
5
  * @param validationError - the validation error contain all invalid fields.
6
6
  * @param dropinTask - the dropin page we are processing validations for.
7
+ * @param keyMappings - the actual keymappings, for non-task components
7
8
  */
8
- declare const processValidationErrors: (validationError: ValidationError, dropinTask: TaskTypes) => {};
9
+ declare const processValidationErrors: <T extends string>(validationError: ValidationError, dropinTask?: TaskTypes, keyMappings?: {
10
+ [key: string]: T;
11
+ }) => {};
9
12
  export default processValidationErrors;
@@ -10,5 +10,5 @@ type RecursiveKeyOfHandleValue<TValue, Text extends string> = TValue extends any
10
10
  * Includes those nested within other objects, e.g. `'name.firstName'`.
11
11
  * @param includeUndefined - whether to include properties which are defined but have a value of `undefined`.
12
12
  */
13
- export declare function getNestedPropertyKeys<T extends object>(obj: T, includeUndefined?: boolean): Array<RecursiveKeyOf<T>>;
13
+ export declare function getNestedPropertyKeys<T extends object>(obj: T, includeUndefined?: boolean, includeFalsy?: boolean): Array<RecursiveKeyOf<T>>;
14
14
  export {};
@@ -1,4 +1,5 @@
1
1
  import type { CompanySchema } from '../../components/Company/types';
2
+ import type { HighExposureSchema } from '../../components/Dropins/HighExposureDropin/types';
2
3
  import type { IndividualSchema } from '../../components/Individual/types';
3
4
  import type { PayoutDetailsSchema } from '../../components/PayoutDetails/types';
4
5
  import type { SolePropSchema } from '../../components/SoleProp/types';
@@ -15,6 +16,7 @@ export declare const mandatoryApiFields: {
15
16
  ORGANIZATION: Array<Partial<RecursiveKeyOf<CompanySchema>>>;
16
17
  SOLE_PROPRIETORSHIP: Array<Partial<RecursiveKeyOf<SolePropSchema>>>;
17
18
  TRUST: Array<Partial<RecursiveKeyOf<TrustSchema>>>;
19
+ HIGH_EXPOSURE: Array<Partial<RecursiveKeyOf<HighExposureSchema>>>;
18
20
  };
19
21
  export declare const individualObscuredFields: Array<RecursiveKeyOf<IndividualSchema>>;
20
22
  export declare const individualComponentsKeyMapping: {
@@ -681,6 +683,12 @@ export declare const trustComponentsKeyMapping: {
681
683
  'trustRegistrationAddress.operationalAddress.otherAddressInformation': string;
682
684
  };
683
685
  export declare const trustApiKeyMapping: {};
686
+ export declare const highExposureComponentsKeyMapping: {
687
+ 'company.numberOfEmployees': string;
688
+ 'parentCompany.numberOfEmployees': string;
689
+ 'ultimateParentCompany.numberOfEmployees': string;
690
+ };
691
+ export declare const highExposureApiKeyMapping: {};
684
692
  export declare const solePropComponentsKeyMapping: {
685
693
  'solePropNameAndCountry.country': string;
686
694
  'solePropNameAndCountry.legalCompanyName': string;
@@ -1,5 +1,6 @@
1
1
  import type { BankDocumentSchema } from '../../components/BankDocument/types';
2
2
  import type { CompanySchema } from '../../components/Company/types';
3
+ import type { HighExposureSchema } from '../../components/Dropins/HighExposureDropin/types';
3
4
  import type { IndividualSchema } from '../../components/Individual/types';
4
5
  import type { AccountHolderOption } from '../../components/internal/AccountHolder/types';
5
6
  import type { PayoutDetailsSchema } from '../../components/PayoutDetails/types';
@@ -34,8 +35,10 @@ export declare const mapLegalEntityToCompany: (legalEntity: ExistingLegalEntity,
34
35
  export declare const mapCompanyToLegalEntity: (data: CompanySchema) => LegalEntity;
35
36
  export declare const mapLegalEntityToTrust: (legalEntity: LegalEntity) => TrustSchema;
36
37
  export declare const mapTrustToLegalEntity: (data: TrustSchema) => LegalEntity;
38
+ export declare const mapLegalEntityToHighExposure: (legalEntity: LegalEntity) => HighExposureSchema;
39
+ export declare const mapHighExposureToLegalEntity: (data: HighExposureSchema) => LegalEntity;
37
40
  export declare const mapLegalEntityToSoleProp: (legalEntity: LegalEntity) => SolePropSchema;
38
- export declare const mapSolePropToLegalEntity: (data: SolePropSchema, isCountryOfGoverningLawEnabled?: boolean) => LegalEntity;
41
+ export declare const mapSolePropToLegalEntity: (data: SolePropSchema) => LegalEntity;
39
42
  export type IndividualDocumentFields = Pick<IndividualSchema, 'idDocument' | 'proofOfResidence' | 'proofOfNationalId'>;
40
43
  export declare const getPage: ({ attachments }: Document, pageType?: PageType) => Attachment;
41
44
  export declare const getPageName: (document: Document, pageType?: PageType) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/kyc-components",
3
- "version": "3.18.0",
3
+ "version": "3.19.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",
@@ -69,10 +70,11 @@
69
70
  },
70
71
  "dependencies": {
71
72
  "@adyen/adyen-document-viewer": "^1.1.0",
73
+ "@adyen/bento-design-tokens": "^1.13.1",
72
74
  "@adyen/openbankingsdk": "^0.1.2",
73
75
  "classnames": "^2.3.2",
74
76
  "isomorphic-dompurify": "^0.13.0",
75
- "lodash": "^4.17.21",
77
+ "lodash-es": "^4.17.21",
76
78
  "onfido-sdk-ui": "12.3.5",
77
79
  "preact": "^10.17.1",
78
80
  "validator": "^13.5.2"
@@ -93,6 +95,7 @@
93
95
  "@testing-library/user-event": "^14.4.3",
94
96
  "@types/dompurify": "^3.0.5",
95
97
  "@types/inquirer": "^9.0.3",
98
+ "@types/lodash-es": "^4.17.12",
96
99
  "@types/validator": "^13.12.0",
97
100
  "@typescript-eslint/eslint-plugin": "^5.62.0",
98
101
  "@typescript-eslint/parser": "^5.62.0",