@adyen/kyc-components 1.2.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.
- package/LICENSE +21 -0
- package/README.md +104 -0
- package/dist/adyen-kyc-components.bundle.js +18089 -0
- package/dist/adyen-kyc-components.cjs.js +18095 -0
- package/dist/adyen-kyc-components.css +59 -0
- package/dist/adyen-kyc-components.debug.js +50954 -0
- package/dist/adyen-kyc-components.esm.js +18045 -0
- package/dist/types/components/Address/Address.d.ts +7 -0
- package/dist/types/components/Address/index.d.ts +1 -0
- package/dist/types/components/BaseElement.d.ts +64 -0
- package/dist/types/components/BaseElement.test.d.ts +1 -0
- package/dist/types/components/Company/Company.d.ts +5 -0
- package/dist/types/components/Company/component/CompanyComponent.d.ts +7 -0
- package/dist/types/components/Company/index.d.ts +1 -0
- package/dist/types/components/Company/labels.d.ts +4 -0
- package/dist/types/components/Company/rules.d.ts +2 -0
- package/dist/types/components/Company/types.d.ts +36 -0
- package/dist/types/components/CompanyDetails/CompanyDetails.d.ts +5 -0
- package/dist/types/components/CompanyDetails/component/CompanyDetailsComponent.d.ts +5 -0
- package/dist/types/components/CompanyDetails/types.d.ts +15 -0
- package/dist/types/components/CompanyDetails/validate.d.ts +3 -0
- package/dist/types/components/CompanyNameAndCountry/CompanyNameAndCountry.d.ts +5 -0
- package/dist/types/components/CompanyNameAndCountry/component/CompanyNameAndCountryComponent.d.ts +4 -0
- package/dist/types/components/CompanyNameAndCountry/types.d.ts +8 -0
- package/dist/types/components/CompanyNameAndCountry/validate.d.ts +3 -0
- package/dist/types/components/CompanyType/CompanyType.d.ts +5 -0
- package/dist/types/components/CompanyType/component/CompanyTypeComponent.d.ts +5 -0
- package/dist/types/components/CompanyType/types.d.ts +8 -0
- package/dist/types/components/CompanyType/validate.d.ts +3 -0
- package/dist/types/components/ConstitutionalDocument/ConstitutionalDocumentComponent.d.ts +14 -0
- package/dist/types/components/ConstitutionalDocument/types.d.ts +11 -0
- package/dist/types/components/ContactDetails/ContactDetails.d.ts +5 -0
- package/dist/types/components/ContactDetails/component/ContactDetailsComponent.d.ts +4 -0
- package/dist/types/components/ContactDetails/types.d.ts +8 -0
- package/dist/types/components/ContactDetails/validate.d.ts +3 -0
- package/dist/types/components/DecisionMakers/DecisionMakers.d.ts +5 -0
- package/dist/types/components/DecisionMakers/component/DecisionMakersComponent.d.ts +5 -0
- package/dist/types/components/DecisionMakers/types.d.ts +11 -0
- package/dist/types/components/DocumentUpload/DocumentUpload.d.ts +4 -0
- package/dist/types/components/DocumentUpload/types.d.ts +21 -0
- package/dist/types/components/Dropins/CompanyDropin/CompanyDropin.d.ts +6 -0
- package/dist/types/components/Dropins/CompanyDropin/components/CompanyDropinComponent.d.ts +2 -0
- package/dist/types/components/Dropins/CompanyDropin/index.d.ts +2 -0
- package/dist/types/components/Dropins/Dropin.d.ts +21 -0
- package/dist/types/components/Dropins/DropinComposer/DropinComposer.d.ts +6 -0
- package/dist/types/components/Dropins/DropinComposer/components/DropinComposerComponent.d.ts +2 -0
- package/dist/types/components/Dropins/DropinLayout/ActionBar/ActionBar.d.ts +4 -0
- package/dist/types/components/Dropins/DropinLayout/ActionBar/index.d.ts +1 -0
- package/dist/types/components/Dropins/DropinLayout/ActionBar/type.d.ts +8 -0
- package/dist/types/components/Dropins/DropinLayout/DropinLayout.d.ts +3 -0
- package/dist/types/components/Dropins/DropinLayout/types.d.ts +6 -0
- package/dist/types/components/Dropins/FormComposer/FormComposer.d.ts +30 -0
- package/dist/types/components/Dropins/FormComposer/components/FormNavigation/FormNavigation.d.ts +4 -0
- package/dist/types/components/Dropins/FormComposer/components/FormNavigation/components/FormNavigationItem/FormNavigationItem.d.ts +4 -0
- package/dist/types/components/Dropins/FormComposer/components/FormNavigation/components/FormNavigationItem/index.d.ts +1 -0
- package/dist/types/components/Dropins/FormComposer/components/FormNavigation/index.d.ts +1 -0
- package/dist/types/components/Dropins/FormComposer/components/FormNavigation/types.d.ts +27 -0
- package/dist/types/components/Dropins/FormComposer/components/StepProgressIndicator/StepProgressIndicator.d.ts +6 -0
- package/dist/types/components/Dropins/FormComposer/types.d.ts +23 -0
- package/dist/types/components/Dropins/IndividualDropin/IndividualDropin.d.ts +6 -0
- package/dist/types/components/Dropins/IndividualDropin/components/IndividualDropinComponent.d.ts +2 -0
- package/dist/types/components/Dropins/IndividualDropin/index.d.ts +2 -0
- package/dist/types/components/Dropins/PayoutDetailsDropin/PayoutDetailsDropin.d.ts +6 -0
- package/dist/types/components/Dropins/PayoutDetailsDropin/components/PayoutDetailsDropinComponent.d.ts +2 -0
- package/dist/types/components/Dropins/PayoutDetailsDropin/index.d.ts +1 -0
- package/dist/types/components/Dropins/PciDropin/components/PciDropinComponent.d.ts +2 -0
- package/dist/types/components/Dropins/PciDropin/index.d.ts +1 -0
- package/dist/types/components/Dropins/PciDropin/types.d.ts +14 -0
- package/dist/types/components/Dropins/RoleAndTypeDropin/RoleAndTypeDropin.d.ts +6 -0
- package/dist/types/components/Dropins/RoleAndTypeDropin/components/RoleAndTypeComponent.d.ts +4 -0
- package/dist/types/components/Dropins/RoleAndTypeDropin/index.d.ts +1 -0
- package/dist/types/components/Dropins/RoleAndTypeDropin/types.d.ts +9 -0
- package/dist/types/components/Dropins/ServiceAgreementDropinComponent/components/ServiceAgreementDropinComponent.d.ts +2 -0
- package/dist/types/components/Dropins/ServiceAgreementDropinComponent/index.d.ts +1 -0
- package/dist/types/components/Dropins/ServiceAgreementDropinComponent/types.d.ts +13 -0
- package/dist/types/components/Dropins/SolePropDropin/SolePropDropin.d.ts +6 -0
- package/dist/types/components/Dropins/SolePropDropin/components/SolePropDropinComponent.d.ts +2 -0
- package/dist/types/components/Dropins/SolePropDropin/index.d.ts +2 -0
- package/dist/types/components/Dropins/TrustDropin/TrustDropin.d.ts +6 -0
- package/dist/types/components/Dropins/TrustDropin/components/TrustDropinComponent.d.ts +2 -0
- package/dist/types/components/Dropins/TrustDropin/index.d.ts +2 -0
- package/dist/types/components/Dropins/types.d.ts +51 -0
- package/dist/types/components/EventEmitter.d.ts +7 -0
- package/dist/types/components/EventEmitter.test.d.ts +1 -0
- package/dist/types/components/IdDocumentUpload/IdDocumentUpload.d.ts +5 -0
- package/dist/types/components/IdDocumentUpload/component/IdDocumentUploadComponent.d.ts +6 -0
- package/dist/types/components/IdDocumentUpload/component/components/UploadSwitcher.d.ts +2 -0
- package/dist/types/components/IdDocumentUpload/component/index.d.ts +1 -0
- package/dist/types/components/IdDocumentUpload/types.d.ts +49 -0
- package/dist/types/components/IdVerification/IdVerification.d.ts +6 -0
- package/dist/types/components/IdVerification/component/IdVerificationComponent.d.ts +4 -0
- package/dist/types/components/IdVerification/component/index.d.ts +1 -0
- package/dist/types/components/IdVerification/types.d.ts +25 -0
- package/dist/types/components/IdentityNumber/IdentityNumber.d.ts +5 -0
- package/dist/types/components/IdentityNumber/component/IdentityNumberComponent.d.ts +5 -0
- package/dist/types/components/IdentityNumber/formats.d.ts +12 -0
- package/dist/types/components/IdentityNumber/type.d.ts +10 -0
- package/dist/types/components/IdentityNumber/validate.d.ts +24 -0
- package/dist/types/components/IdentityNumber/validate.helper.d.ts +5 -0
- package/dist/types/components/Individual/Individual.d.ts +5 -0
- package/dist/types/components/Individual/component/IndividualComponent.d.ts +7 -0
- package/dist/types/components/Individual/index.d.ts +1 -0
- package/dist/types/components/Individual/rules.d.ts +3 -0
- package/dist/types/components/Individual/types.d.ts +47 -0
- package/dist/types/components/IndividualDocumentUpload/component/IndividualDocumentUploadComponent.d.ts +0 -0
- package/dist/types/components/LegalEntityTypeSwitcher/LegalEntityTypeSwitcher.d.ts +2 -0
- package/dist/types/components/LegalEntityTypeSwitcher/type.d.ts +6 -0
- package/dist/types/components/PayoutAccount/PayoutAccount.d.ts +5 -0
- package/dist/types/components/PayoutAccount/component/PayoutAccountComponent.d.ts +6 -0
- package/dist/types/components/PayoutAccount/types.d.ts +28 -0
- package/dist/types/components/PayoutBankStatement/PayoutBankStatement.d.ts +5 -0
- package/dist/types/components/PayoutBankStatement/component/PayoutBankStatementComponent.d.ts +6 -0
- package/dist/types/components/PayoutBankStatement/types.d.ts +20 -0
- package/dist/types/components/PayoutDetails/PayoutDetails.d.ts +5 -0
- package/dist/types/components/PayoutDetails/component/PayoutDetailsComponent.d.ts +6 -0
- package/dist/types/components/PayoutDetails/types.d.ts +27 -0
- package/dist/types/components/PersonalDetails/PersonalDetails.d.ts +5 -0
- package/dist/types/components/PersonalDetails/component/PersonalDetailsComponent.d.ts +4 -0
- package/dist/types/components/PersonalDetails/index.d.ts +1 -0
- package/dist/types/components/PersonalDetails/types.d.ts +19 -0
- package/dist/types/components/PersonalDetails/validate.d.ts +3 -0
- package/dist/types/components/ProofOfResidency/ProofOfResidencyComponent.d.ts +4 -0
- package/dist/types/components/ProofOfResidency/types.d.ts +14 -0
- package/dist/types/components/RegistrationAddress/RegistrationAddress.d.ts +5 -0
- package/dist/types/components/RegistrationAddress/component/RegistrationAddressComponent.d.ts +6 -0
- package/dist/types/components/RegistrationAddress/types.d.ts +24 -0
- package/dist/types/components/RegistrationAddress/validate.d.ts +3 -0
- package/dist/types/components/SoleProp/SoleProp.d.ts +5 -0
- package/dist/types/components/SoleProp/component/SolePropComponent.d.ts +6 -0
- package/dist/types/components/SoleProp/types.d.ts +28 -0
- package/dist/types/components/TaskList/TaskList.d.ts +5 -0
- package/dist/types/components/TaskList/component/TaskItemStatus.d.ts +3 -0
- package/dist/types/components/TaskList/component/TaskListComponent.d.ts +4 -0
- package/dist/types/components/TaskList/component/TaskListGroup.d.ts +5 -0
- package/dist/types/components/TaskList/component/TaskListItem.d.ts +4 -0
- package/dist/types/components/TaskList/types.d.ts +59 -0
- package/dist/types/components/Trust/Trust.d.ts +5 -0
- package/dist/types/components/Trust/component/TrustComponent.d.ts +6 -0
- package/dist/types/components/Trust/types.d.ts +22 -0
- package/dist/types/components/TrustDocumentUpload/TrustDocumentUpload.d.ts +5 -0
- package/dist/types/components/TrustDocumentUpload/component/TrustDocumentUploadComponent.d.ts +6 -0
- package/dist/types/components/TrustDocumentUpload/types.d.ts +5 -0
- package/dist/types/components/TrustMembers/TrustMembers.d.ts +5 -0
- package/dist/types/components/TrustMembers/component/TrustMembersComponent.d.ts +5 -0
- package/dist/types/components/TrustMembers/types.d.ts +18 -0
- package/dist/types/components/TrustRegistrationDetails/TrustRegistrationDetails.d.ts +5 -0
- package/dist/types/components/TrustRegistrationDetails/component/TrustRegistrationDetailsComponent.d.ts +4 -0
- package/dist/types/components/TrustRegistrationDetails/types.d.ts +15 -0
- package/dist/types/components/TrustRegistrationDetails/validate.d.ts +3 -0
- package/dist/types/components/TrustRoleAndEntityType/TrustRoleAndEntityType.d.ts +5 -0
- package/dist/types/components/TrustRoleAndEntityType/component/TrustRoleAndEntityTypeComponent.d.ts +3 -0
- package/dist/types/components/TrustRoleAndEntityType/types.d.ts +18 -0
- package/dist/types/components/TrustRoleAndEntityType/validate.d.ts +3 -0
- package/dist/types/components/UIElement.d.ts +34 -0
- package/dist/types/components/index.d.ts +27 -0
- package/dist/types/components/internal/Accordion/Accordion.d.ts +3 -0
- package/dist/types/components/internal/Accordion/AccordionContext.d.ts +2 -0
- package/dist/types/components/internal/Accordion/index.d.ts +1 -0
- package/dist/types/components/internal/Accordion/types.d.ts +22 -0
- package/dist/types/components/internal/AccordionItem/AccordionItem.d.ts +3 -0
- package/dist/types/components/internal/AccordionItem/index.d.ts +1 -0
- package/dist/types/components/internal/AccordionItem/types.d.ts +13 -0
- package/dist/types/components/internal/AccordionItem/useAccordionContext.d.ts +3 -0
- package/dist/types/components/internal/AccountHolder/AccountHolder.d.ts +3 -0
- package/dist/types/components/internal/AccountHolder/index.d.ts +1 -0
- package/dist/types/components/internal/AccountHolder/types.d.ts +17 -0
- package/dist/types/components/internal/AccountHolder/validate.d.ts +3 -0
- package/dist/types/components/internal/Address/Address.d.ts +13 -0
- package/dist/types/components/internal/Address/Address.test.d.ts +1 -0
- package/dist/types/components/internal/Address/components/CountryField.d.ts +3 -0
- package/dist/types/components/internal/Address/components/CountryField.test.d.ts +1 -0
- package/dist/types/components/internal/Address/components/FieldContainer.d.ts +9 -0
- package/dist/types/components/internal/Address/components/FieldContainer.test.d.ts +1 -0
- package/dist/types/components/internal/Address/components/ReadOnlyAddress.d.ts +3 -0
- package/dist/types/components/internal/Address/components/SearchAddress.d.ts +3 -0
- package/dist/types/components/internal/Address/components/StateField.d.ts +2 -0
- package/dist/types/components/internal/Address/components/StateField.test.d.ts +1 -0
- package/dist/types/components/internal/Address/constants.d.ts +6 -0
- package/dist/types/components/internal/Address/index.d.ts +1 -0
- package/dist/types/components/internal/Address/types.d.ts +82 -0
- package/dist/types/components/internal/Address/utils.d.ts +19 -0
- package/dist/types/components/internal/Address/validate.d.ts +3 -0
- package/dist/types/components/internal/Address/validate.formats.d.ts +4 -0
- package/dist/types/components/internal/Alert/Alert.d.ts +6 -0
- package/dist/types/components/internal/Alert/Alert.test.d.ts +1 -0
- package/dist/types/components/internal/Alert/components/ReviewAlert.d.ts +2 -0
- package/dist/types/components/internal/Alert/components/VerficationErrorAlert.d.ts +3 -0
- package/dist/types/components/internal/Alert/index.d.ts +1 -0
- package/dist/types/components/internal/Alert/types.d.ts +22 -0
- package/dist/types/components/internal/BankAccountNumber/BankAccountNumber.d.ts +3 -0
- package/dist/types/components/internal/BankAccountNumber/index.d.ts +1 -0
- package/dist/types/components/internal/BankAccountNumber/types.d.ts +5 -0
- package/dist/types/components/internal/BankCity/BankCity.d.ts +3 -0
- package/dist/types/components/internal/BankCity/index.d.ts +1 -0
- package/dist/types/components/internal/BankCity/types.d.ts +5 -0
- package/dist/types/components/internal/BankCode/BankCode.d.ts +3 -0
- package/dist/types/components/internal/BankCode/index.d.ts +1 -0
- package/dist/types/components/internal/BankCode/types.d.ts +5 -0
- package/dist/types/components/internal/BankName/BankName.d.ts +3 -0
- package/dist/types/components/internal/BankName/index.d.ts +1 -0
- package/dist/types/components/internal/BankName/types.d.ts +5 -0
- package/dist/types/components/internal/BranchCode/BranchCode.d.ts +3 -0
- package/dist/types/components/internal/BranchCode/index.d.ts +1 -0
- package/dist/types/components/internal/BranchCode/types.d.ts +5 -0
- package/dist/types/components/internal/BusinessRegistrationNumber/BusinessRegistrationNumber.d.ts +3 -0
- package/dist/types/components/internal/BusinessRegistrationNumber/index.d.ts +1 -0
- package/dist/types/components/internal/BusinessRegistrationNumber/registrationNoValidator.d.ts +368 -0
- package/dist/types/components/internal/BusinessRegistrationNumber/registrationNoValidator.test.d.ts +1 -0
- package/dist/types/components/internal/BusinessRegistrationNumber/types.d.ts +10 -0
- package/dist/types/components/internal/BusinessRegistrationNumber/validate.d.ts +14 -0
- package/dist/types/components/internal/Button/Button.d.ts +17 -0
- package/dist/types/components/internal/Button/Button.test.d.ts +1 -0
- package/dist/types/components/internal/Button/index.d.ts +1 -0
- package/dist/types/components/internal/Button/types.d.ts +25 -0
- package/dist/types/components/internal/Card/Card.d.ts +3 -0
- package/dist/types/components/internal/Card/CardGroup.d.ts +3 -0
- package/dist/types/components/internal/Card/types.d.ts +16 -0
- package/dist/types/components/internal/CardLayout/CardLayout.d.ts +3 -0
- package/dist/types/components/internal/CollapsibleContainer/CollapsibleContainer.d.ts +3 -0
- package/dist/types/components/internal/CollapsibleContainer/index.d.ts +1 -0
- package/dist/types/components/internal/CollapsibleContainer/types.d.ts +6 -0
- package/dist/types/components/internal/ContextGuidance/ContextGuidance.d.ts +2 -0
- package/dist/types/components/internal/ContextGuidance/index.d.ts +1 -0
- package/dist/types/components/internal/ContextGuidance/types.d.ts +10 -0
- package/dist/types/components/internal/ContractViewer/ContractViewer.d.ts +3 -0
- package/dist/types/components/internal/ContractViewer/components/Chapter/Chapter.d.ts +2 -0
- package/dist/types/components/internal/ContractViewer/components/ContentElements/ContentElements.d.ts +2 -0
- package/dist/types/components/internal/ContractViewer/components/InternalReference/InternalReference.d.ts +2 -0
- package/dist/types/components/internal/ContractViewer/components/List/List.d.ts +2 -0
- package/dist/types/components/internal/ContractViewer/components/Paragraph/Paragraph.d.ts +3 -0
- package/dist/types/components/internal/ContractViewer/components/Section/Section.d.ts +3 -0
- package/dist/types/components/internal/ContractViewer/components/Table/Table.d.ts +3 -0
- package/dist/types/components/internal/ContractViewer/components/Text/Text.d.ts +3 -0
- package/dist/types/components/internal/ContractViewer/components/Weblink/Weblink.d.ts +3 -0
- package/dist/types/components/internal/ContractViewer/index.d.ts +1 -0
- package/dist/types/components/internal/ContractViewer/types.d.ts +82 -0
- package/dist/types/components/internal/Currency/Currency.d.ts +5 -0
- package/dist/types/components/internal/Currency/Currency.test.d.ts +1 -0
- package/dist/types/components/internal/Currency/index.d.ts +1 -0
- package/dist/types/components/internal/Currency/types.d.ts +11 -0
- package/dist/types/components/internal/DocumentGuidance/DocumentGuidance.d.ts +4 -0
- package/dist/types/components/internal/DocumentGuidance/type.d.ts +5 -0
- package/dist/types/components/internal/EntityAssociation/EntityAssociation.d.ts +3 -0
- package/dist/types/components/internal/EntityAssociation/EntityAssociations.test.d.ts +1 -0
- package/dist/types/components/internal/EntityAssociation/types.d.ts +19 -0
- package/dist/types/components/internal/ErrorPanel/ErrorPanel.d.ts +13 -0
- package/dist/types/components/internal/ErrorPanel/ErrorPanel.test.d.ts +1 -0
- package/dist/types/components/internal/ErrorPanel/components/NavigateToFieldLink.d.ts +5 -0
- package/dist/types/components/internal/ErrorPanel/components/ServerValidationErrors.d.ts +3 -0
- package/dist/types/components/internal/ErrorPanel/components/VerificationErrors.d.ts +3 -0
- package/dist/types/components/internal/ErrorPanel/constants.d.ts +1 -0
- package/dist/types/components/internal/ErrorPanel/types.d.ts +33 -0
- package/dist/types/components/internal/FormFields/Checkbox/Checkbox.d.ts +21 -0
- package/dist/types/components/internal/FormFields/Checkbox/Checkbox.test.d.ts +1 -0
- package/dist/types/components/internal/FormFields/Checkbox/index.d.ts +1 -0
- package/dist/types/components/internal/FormFields/ConsentCheckbox/ConsentCheckbox.d.ts +6 -0
- package/dist/types/components/internal/FormFields/Dropzone/Dropzone.d.ts +17 -0
- package/dist/types/components/internal/FormFields/Dropzone/Dropzone.test.d.ts +1 -0
- package/dist/types/components/internal/FormFields/Dropzone/components/DropzoneFile.d.ts +3 -0
- package/dist/types/components/internal/FormFields/Dropzone/types.d.ts +27 -0
- package/dist/types/components/internal/FormFields/Dropzone/validate.d.ts +3 -0
- package/dist/types/components/internal/FormFields/Field/Field.d.ts +40 -0
- package/dist/types/components/internal/FormFields/Field/index.d.ts +1 -0
- package/dist/types/components/internal/FormFields/Field/types.d.ts +28 -0
- package/dist/types/components/internal/FormFields/Fieldset/Fieldset.d.ts +10 -0
- package/dist/types/components/internal/FormFields/Fieldset/Fieldset.test.d.ts +1 -0
- package/dist/types/components/internal/FormFields/Fieldset/index.d.ts +1 -0
- package/dist/types/components/internal/FormFields/InputBase.d.ts +25 -0
- package/dist/types/components/internal/FormFields/InputDate/InputDate.d.ts +5 -0
- package/dist/types/components/internal/FormFields/InputDate/index.d.ts +1 -0
- package/dist/types/components/internal/FormFields/InputDate/utils.d.ts +22 -0
- package/dist/types/components/internal/FormFields/InputDate/utils.test.d.ts +1 -0
- package/dist/types/components/internal/FormFields/InputEmail.d.ts +1 -0
- package/dist/types/components/internal/FormFields/InputFile.d.ts +1 -0
- package/dist/types/components/internal/FormFields/InputRadio/InputRadio.d.ts +3 -0
- package/dist/types/components/internal/FormFields/InputTelephone.d.ts +1 -0
- package/dist/types/components/internal/FormFields/InputText.d.ts +8 -0
- package/dist/types/components/internal/FormFields/RadioGroup/RadioGroup.d.ts +10 -0
- package/dist/types/components/internal/FormFields/RadioGroup/index.d.ts +1 -0
- package/dist/types/components/internal/FormFields/RadioGroup/types.d.ts +17 -0
- package/dist/types/components/internal/FormFields/RadioGroupCard/RadioGroupCard.d.ts +10 -0
- package/dist/types/components/internal/FormFields/RadioGroupCard/RadioGroupCard.test.d.ts +1 -0
- package/dist/types/components/internal/FormFields/RadioGroupCard/index.d.ts +1 -0
- package/dist/types/components/internal/FormFields/RadioGroupCard/types.d.ts +18 -0
- package/dist/types/components/internal/FormFields/Select/Select.d.ts +4 -0
- package/dist/types/components/internal/FormFields/Select/Select.test.d.ts +1 -0
- package/dist/types/components/internal/FormFields/Select/components/SelectButton.d.ts +3 -0
- package/dist/types/components/internal/FormFields/Select/components/SelectList.d.ts +3 -0
- package/dist/types/components/internal/FormFields/Select/components/SelectListItem.d.ts +3 -0
- package/dist/types/components/internal/FormFields/Select/index.d.ts +1 -0
- package/dist/types/components/internal/FormFields/Select/types.d.ts +113 -0
- package/dist/types/components/internal/FormFields/TextArea.d.ts +1 -0
- package/dist/types/components/internal/FormFields/index.d.ts +3 -0
- package/dist/types/components/internal/FormFields/utils.d.ts +2 -0
- package/dist/types/components/internal/FormFields/utils.test.d.ts +1 -0
- package/dist/types/components/internal/FormHeader/FormHeader.d.ts +3 -0
- package/dist/types/components/internal/FormHeader/type.d.ts +8 -0
- package/dist/types/components/internal/Heading/Heading.d.ts +8 -0
- package/dist/types/components/internal/Iban/Iban.d.ts +3 -0
- package/dist/types/components/internal/Iban/ibanValidator.d.ts +1 -0
- package/dist/types/components/internal/Iban/ibanValidator.test.d.ts +1 -0
- package/dist/types/components/internal/Iban/index.d.ts +1 -0
- package/dist/types/components/internal/Iban/types.d.ts +7 -0
- package/dist/types/components/internal/Icon/Icon.d.ts +7 -0
- package/dist/types/components/internal/Icon/Icon.test.d.ts +1 -0
- package/dist/types/components/internal/Icon/index.d.ts +1 -0
- package/dist/types/components/internal/LegalCompanyName/LegalCompanyName.d.ts +3 -0
- package/dist/types/components/internal/LegalCompanyName/index.d.ts +1 -0
- package/dist/types/components/internal/LegalCompanyName/types.d.ts +5 -0
- package/dist/types/components/internal/LegalCompanyName/validate.d.ts +3 -0
- package/dist/types/components/internal/Link/Link.d.ts +6 -0
- package/dist/types/components/internal/Link/Link.test.d.ts +1 -0
- package/dist/types/components/internal/Link/index.d.ts +1 -0
- package/dist/types/components/internal/Link/types.d.ts +12 -0
- package/dist/types/components/internal/List/List.d.ts +4 -0
- package/dist/types/components/internal/List/List.test.d.ts +1 -0
- package/dist/types/components/internal/List/ListItem.d.ts +3 -0
- package/dist/types/components/internal/List/types.d.ts +13 -0
- package/dist/types/components/internal/Loader/Loader.d.ts +22 -0
- package/dist/types/components/internal/Loader/index.d.ts +2 -0
- package/dist/types/components/internal/LoaderWrapper/LoaderWrapper.d.ts +12 -0
- package/dist/types/components/internal/LoaderWrapper/constants.d.ts +6 -0
- package/dist/types/components/internal/LoaderWrapper/index.d.ts +1 -0
- package/dist/types/components/internal/Modal/Modal.d.ts +4 -0
- package/dist/types/components/internal/Modal/Modal.test.d.ts +1 -0
- package/dist/types/components/internal/Modal/type.d.ts +15 -0
- package/dist/types/components/internal/Name/Name.d.ts +4 -0
- package/dist/types/components/internal/Name/index.d.ts +1 -0
- package/dist/types/components/internal/Name/types.d.ts +6 -0
- package/dist/types/components/internal/Name/validate.d.ts +4 -0
- package/dist/types/components/internal/PartOfTrust/PartOfTrust.d.ts +3 -0
- package/dist/types/components/internal/PartOfTrust/index.d.ts +1 -0
- package/dist/types/components/internal/PartOfTrust/types.d.ts +20 -0
- package/dist/types/components/internal/PhoneInput/PhoneInput.d.ts +10 -0
- package/dist/types/components/internal/PhoneInput/index.d.ts +1 -0
- package/dist/types/components/internal/PhoneInput/types.d.ts +12 -0
- package/dist/types/components/internal/PhoneInput/validate.d.ts +4 -0
- package/dist/types/components/internal/Role/Role.d.ts +3 -0
- package/dist/types/components/internal/Role/index.d.ts +1 -0
- package/dist/types/components/internal/Role/types.d.ts +11 -0
- package/dist/types/components/internal/Role/validate.d.ts +3 -0
- package/dist/types/components/internal/Shimmer/Shimmer.d.ts +2 -0
- package/dist/types/components/internal/Spinner/Spinner.d.ts +17 -0
- package/dist/types/components/internal/Spinner/index.d.ts +1 -0
- package/dist/types/components/internal/Status/Status.d.ts +4 -0
- package/dist/types/components/internal/Status/types.d.ts +6 -0
- package/dist/types/components/internal/Summary/Summary.d.ts +8 -0
- package/dist/types/components/internal/Summary/types.d.ts +17 -0
- package/dist/types/components/internal/SwiftCode/SwiftCode.d.ts +3 -0
- package/dist/types/components/internal/SwiftCode/index.d.ts +1 -0
- package/dist/types/components/internal/SwiftCode/types.d.ts +5 -0
- package/dist/types/components/internal/Tag/Tag.d.ts +9 -0
- package/dist/types/components/internal/Tag/index.d.ts +1 -0
- package/dist/types/components/internal/TaxId/TaxId.d.ts +3 -0
- package/dist/types/components/internal/TaxId/index.d.ts +1 -0
- package/dist/types/components/internal/TaxId/rules.d.ts +54 -0
- package/dist/types/components/internal/TaxId/taxIdValidation.d.ts +4 -0
- package/dist/types/components/internal/TaxId/taxIdValidation.test.d.ts +1 -0
- package/dist/types/components/internal/TaxId/types.d.ts +34 -0
- package/dist/types/components/internal/TaxId/validate.d.ts +4 -0
- package/dist/types/components/internal/Toast/Toast.d.ts +9 -0
- package/dist/types/components/internal/Toast/index.d.ts +1 -0
- package/dist/types/components/internal/Toast/types.d.ts +14 -0
- package/dist/types/components/internal/VatNumber/VatNumber.d.ts +8 -0
- package/dist/types/components/internal/VatNumber/index.d.ts +1 -0
- package/dist/types/components/internal/VatNumber/rules.d.ts +181 -0
- package/dist/types/components/internal/VatNumber/types.d.ts +25 -0
- package/dist/types/components/internal/VatNumber/validate.d.ts +4 -0
- package/dist/types/components/internal/VatNumber/vatNumberValidation.d.ts +4 -0
- package/dist/types/components/internal/VatNumber/vatNumberValidation.test.d.ts +1 -0
- package/dist/types/core/Context/CoreContext.d.ts +19 -0
- package/dist/types/core/Context/CoreProvider.d.ts +46 -0
- package/dist/types/core/Context/FormRouterContext/FormRouterContext.d.ts +1 -0
- package/dist/types/core/Context/FormRouterContext/FormRouterContextProvider.d.ts +3 -0
- package/dist/types/core/Context/FormRouterContext/types.d.ts +7 -0
- package/dist/types/core/Context/FormRouterContext/useFormRouterContext.d.ts +2 -0
- package/dist/types/core/Context/StateContext/StateContext.d.ts +1 -0
- package/dist/types/core/Context/StateContext/StateContextSetter.d.ts +2 -0
- package/dist/types/core/Context/StateContext/StateContextWatcher.d.ts +2 -0
- package/dist/types/core/Context/StateContext/StateProvider.d.ts +5 -0
- package/dist/types/core/Context/StateContext/StateReducer.d.ts +11 -0
- package/dist/types/core/Context/StateContext/types.d.ts +34 -0
- package/dist/types/core/Context/StateContext/useStateContext.d.ts +2 -0
- package/dist/types/core/Context/ToastContext/ToastContext.d.ts +1 -0
- package/dist/types/core/Context/ToastContext/ToastContextProvider.d.ts +4 -0
- package/dist/types/core/Context/ToastContext/useToastContext.d.ts +2 -0
- package/dist/types/core/Context/useCoreContext.d.ts +18 -0
- package/dist/types/core/Environment/Environment.d.ts +2 -0
- package/dist/types/core/Environment/Environment.test.d.ts +1 -0
- package/dist/types/core/Environment/index.d.ts +1 -0
- package/dist/types/core/SDKValidation/index.d.ts +4 -0
- package/dist/types/core/SDKValidation/schemas.d.ts +2 -0
- package/dist/types/core/SDKValidation/types.d.ts +14 -0
- package/dist/types/core/Services/fetch.d.ts +2 -0
- package/dist/types/core/Services/get-configuration-data.d.ts +20 -0
- package/dist/types/core/Services/get-dataset.d.ts +2 -0
- package/dist/types/core/Services/get-fonts.d.ts +16 -0
- package/dist/types/core/Services/get-images.d.ts +3 -0
- package/dist/types/core/Services/http.d.ts +16 -0
- package/dist/types/core/Services/verify-id-number.d.ts +2 -0
- package/dist/types/core/config.d.ts +11 -0
- package/dist/types/core/constants.d.ts +10 -0
- package/dist/types/core/core.d.ts +30 -0
- package/dist/types/core/core.test.d.ts +1 -0
- package/dist/types/core/errorMapping.d.ts +127 -0
- package/dist/types/core/models/api/address.d.ts +18 -0
- package/dist/types/core/models/api/attachment.d.ts +5 -0
- package/dist/types/core/models/api/capability.d.ts +9 -0
- package/dist/types/core/models/api/company-types-value.d.ts +10 -0
- package/dist/types/core/models/api/configuration.d.ts +15 -0
- package/dist/types/core/models/api/contracts.d.ts +76 -0
- package/dist/types/core/models/api/data-set.d.ts +5 -0
- package/dist/types/core/models/api/decision-maker-type.d.ts +5 -0
- package/dist/types/core/models/api/document.d.ts +25 -0
- package/dist/types/core/models/api/entity-type.d.ts +5 -0
- package/dist/types/core/models/api/id-verification-data.d.ts +5 -0
- package/dist/types/core/models/api/individual.d.ts +22 -0
- package/dist/types/core/models/api/instant-id-verification.d.ts +27 -0
- package/dist/types/core/models/api/legal-entity-association.d.ts +12 -0
- package/dist/types/core/models/api/legal-entity-type.d.ts +6 -0
- package/dist/types/core/models/api/legal-entity.d.ts +25 -0
- package/dist/types/core/models/api/organization.d.ts +36 -0
- package/dist/types/core/models/api/phone.d.ts +5 -0
- package/dist/types/core/models/api/problem.d.ts +13 -0
- package/dist/types/core/models/api/soleProprietor.d.ts +13 -0
- package/dist/types/core/models/api/transfer-instrument.d.ts +25 -0
- package/dist/types/core/models/api/trust-member-type.d.ts +7 -0
- package/dist/types/core/models/api/trust-types-value.d.ts +17 -0
- package/dist/types/core/models/api/trust.d.ts +14 -0
- package/dist/types/core/models/api/verification-error.d.ts +12 -0
- package/dist/types/core/models/api/verification-status.d.ts +6 -0
- package/dist/types/core/models/company.d.ts +17 -0
- package/dist/types/core/models/country-config.d.ts +9 -0
- package/dist/types/core/models/currency.d.ts +19 -0
- package/dist/types/core/models/decision-maker.d.ts +68 -0
- package/dist/types/core/models/errors/capability-problems.d.ts +7 -0
- package/dist/types/core/models/errors/entity-problems.d.ts +19 -0
- package/dist/types/core/models/errors/error-message.d.ts +5 -0
- package/dist/types/core/models/errors/field-errors.d.ts +4 -0
- package/dist/types/core/models/errors/form-verification-errors.d.ts +6 -0
- package/dist/types/core/models/errors/remediation-action-context.d.ts +4 -0
- package/dist/types/core/models/errors/remediation.d.ts +5 -0
- package/dist/types/core/models/errors/validation-error.d.ts +14 -0
- package/dist/types/core/models/field-configurations.d.ts +8 -0
- package/dist/types/core/models/form-labels.d.ts +5 -0
- package/dist/types/core/models/form-rules.d.ts +6 -0
- package/dist/types/core/models/form.d.ts +17 -0
- package/dist/types/core/models/id-verification-status.d.ts +7 -0
- package/dist/types/core/models/identity.d.ts +33 -0
- package/dist/types/core/models/payout-account.d.ts +16 -0
- package/dist/types/core/models/scenario-fields.d.ts +9 -0
- package/dist/types/core/models/sole-prop.d.ts +10 -0
- package/dist/types/core/models/trust.d.ts +7 -0
- package/dist/types/core/process-field-configurations.d.ts +76 -0
- package/dist/types/core/types.d.ts +18 -0
- package/dist/types/core/user-events.d.ts +65 -0
- package/dist/types/core/user-events.test.d.ts +1 -0
- package/dist/types/core/utils.d.ts +36 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/language/Language.d.ts +46 -0
- package/dist/types/language/Language.test.d.ts +1 -0
- package/dist/types/language/config.d.ts +774 -0
- package/dist/types/language/index.d.ts +1 -0
- package/dist/types/language/types.d.ts +6 -0
- package/dist/types/language/utils.d.ts +53 -0
- package/dist/types/language/utils.test.d.ts +1 -0
- package/dist/types/types/index.d.ts +9 -0
- package/dist/types/utils/Validator/Validator.d.ts +35 -0
- package/dist/types/utils/Validator/Validator.test.d.ts +1 -0
- package/dist/types/utils/Validator/types.d.ts +44 -0
- package/dist/types/utils/accountHolderUtils.d.ts +19 -0
- package/dist/types/utils/api/documentUtils.d.ts +20 -0
- package/dist/types/utils/api/processCapabilitites.d.ts +56 -0
- package/dist/types/utils/api/processValidationErrors.d.ts +9 -0
- package/dist/types/utils/bytesToSize.d.ts +1 -0
- package/dist/types/utils/company-util.d.ts +6 -0
- package/dist/types/utils/datasetUtil.d.ts +15 -0
- package/dist/types/utils/debounce.d.ts +1 -0
- package/dist/types/utils/decision-maker-roles.d.ts +49 -0
- package/dist/types/utils/decision-maker-roles.test.d.ts +4 -0
- package/dist/types/utils/entity-association-util.d.ts +91 -0
- package/dist/types/utils/entity-association-util.test.d.ts +4 -0
- package/dist/types/utils/file.d.ts +9 -0
- package/dist/types/utils/formUtils.d.ts +15 -0
- package/dist/types/utils/genUtils.d.ts +61 -0
- package/dist/types/utils/genUtils.test.d.ts +1 -0
- package/dist/types/utils/get-image.d.ts +11 -0
- package/dist/types/utils/get-image.test.d.ts +1 -0
- package/dist/types/utils/get-name.d.ts +1 -0
- package/dist/types/utils/get-props.d.ts +4 -0
- package/dist/types/utils/get-task-status.d.ts +9 -0
- package/dist/types/utils/get-task-status.test.d.ts +1 -0
- package/dist/types/utils/idGenerator.d.ts +1 -0
- package/dist/types/utils/mapping/componentApiMapping.d.ts +123 -0
- package/dist/types/utils/mapping/documentGuidanceMap.d.ts +6 -0
- package/dist/types/utils/mapping/mapping.d.ts +112 -0
- package/dist/types/utils/payout-account.d.ts +2 -0
- package/dist/types/utils/remove-object-empty-values.d.ts +1 -0
- package/dist/types/utils/scroll.d.ts +1 -0
- package/dist/types/utils/trust-util.d.ts +75 -0
- package/dist/types/utils/trust-util.test.d.ts +4 -0
- package/dist/types/utils/useForm/index.d.ts +1 -0
- package/dist/types/utils/useForm/reducer.d.ts +16 -0
- package/dist/types/utils/useForm/types.d.ts +91 -0
- package/dist/types/utils/useForm/useForm.d.ts +11 -0
- package/dist/types/utils/useForm/useForm.test.d.ts +1 -0
- package/dist/types/utils/uuid.d.ts +1 -0
- package/dist/types/utils/uuid.test.d.ts +1 -0
- package/dist/types/utils/validatorUtils.d.ts +27 -0
- package/dist/types/utils/verification/helpers/verifyIDNumber.d.ts +17 -0
- package/dist/types/utils/verification/verificationUtils.d.ts +7 -0
- package/package.json +93 -0
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
export declare const mandatoryApiFields: {
|
|
2
|
+
INDIVIDUAL: string[];
|
|
3
|
+
DECISIONMAKER: string[];
|
|
4
|
+
ORGANIZATION: string[];
|
|
5
|
+
SOLE_PROPRIETORSHIP: string[];
|
|
6
|
+
};
|
|
7
|
+
export declare const individualComponentsKeyMapping: {
|
|
8
|
+
'personalDetails.residencyCountry': string;
|
|
9
|
+
'personalDetails.firstName': string;
|
|
10
|
+
'personalDetails.lastName': string;
|
|
11
|
+
'personalDetails.birthDate': string;
|
|
12
|
+
'personalDetails.idNumber': string;
|
|
13
|
+
'personalDetails.phoneNumber': string;
|
|
14
|
+
'personalDetails.email': string;
|
|
15
|
+
'personalDetails.idNumberExempt': string;
|
|
16
|
+
'address.city': string;
|
|
17
|
+
'address.country': string;
|
|
18
|
+
'address.postalCode': string;
|
|
19
|
+
'address.stateOrProvince': string;
|
|
20
|
+
'address.street': string;
|
|
21
|
+
'address.houseNumberOrName': string;
|
|
22
|
+
};
|
|
23
|
+
export declare const individualApiKeyMapping: any;
|
|
24
|
+
export declare const companyComponentsKeyMapping: {
|
|
25
|
+
'companyNameAndCountry.legalCompanyName': string;
|
|
26
|
+
'companyType.entityType': string;
|
|
27
|
+
'companyDetails.tradingName': string;
|
|
28
|
+
'companyDetails.registrationNumber': string;
|
|
29
|
+
'companyDetails.vatNumber': string;
|
|
30
|
+
'companyDetails.exemptedFromVat': string;
|
|
31
|
+
'companyDetails.vatAbsenceReason': string;
|
|
32
|
+
'companyDetails.taxInformation': string;
|
|
33
|
+
'companyDetails.stockExchangeMIC': string;
|
|
34
|
+
'companyDetails.stockISIN': string;
|
|
35
|
+
'companyRegistrationDetails.registrationAddress.city': string;
|
|
36
|
+
'companyRegistrationDetails.registrationAddress.country': string;
|
|
37
|
+
'companyRegistrationDetails.registrationAddress.postalCode': string;
|
|
38
|
+
'companyRegistrationDetails.registrationAddress.stateOrProvince': string;
|
|
39
|
+
'companyRegistrationDetails.registrationAddress.street': string;
|
|
40
|
+
'companyRegistrationDetails.registrationAddress.houseNumberOrName': string;
|
|
41
|
+
'companyRegistrationDetails.operationalAddress.city': string;
|
|
42
|
+
'companyRegistrationDetails.operationalAddress.country': string;
|
|
43
|
+
'companyRegistrationDetails.operationalAddress.postalCode': string;
|
|
44
|
+
'companyRegistrationDetails.operationalAddress.stateOrProvince': string;
|
|
45
|
+
'companyRegistrationDetails.operationalAddress.street': string;
|
|
46
|
+
'companyRegistrationDetails.operationalAddress.houseNumberOrName': string;
|
|
47
|
+
'companyNameAndCountry.companyCountry': string;
|
|
48
|
+
};
|
|
49
|
+
export declare const companyApiKeyMapping: any;
|
|
50
|
+
export declare const payoutComponentKeyMapping: {
|
|
51
|
+
'payoutAccountDetails.transferInstrumentId': string;
|
|
52
|
+
'payoutAccountDetails.accountType': string;
|
|
53
|
+
'payoutAccountDetails.bankAccountNumber': string;
|
|
54
|
+
'payoutAccountDetails.bankBicSwift': string;
|
|
55
|
+
'payoutAccountDetails.bankCity': string;
|
|
56
|
+
'payoutAccountDetails.bankCode': string;
|
|
57
|
+
'payoutAccountDetails.bankName': string;
|
|
58
|
+
'payoutAccountDetails.branchCode': string;
|
|
59
|
+
'payoutAccountDetails.checkCode': string;
|
|
60
|
+
'payoutAccountDetails.bankCountry': string;
|
|
61
|
+
'payoutAccountDetails.currency': string;
|
|
62
|
+
'payoutAccountDetails.iban': string;
|
|
63
|
+
};
|
|
64
|
+
export declare const payoutApiKeyMapping: any;
|
|
65
|
+
export declare const remediationCompanyApiKeyMapping: any;
|
|
66
|
+
export declare const remediationIndividualApiKeyMapping: any;
|
|
67
|
+
export declare const remediationPayoutApiKeyMapping: any;
|
|
68
|
+
export declare const trustComponentsKeyMapping: {
|
|
69
|
+
'trustRegistrationDetails.trustType': string;
|
|
70
|
+
'trustRegistrationDetails.vatNumber': string;
|
|
71
|
+
'trustRegistrationDetails.legalName': string;
|
|
72
|
+
'trustRegistrationDetails.country': string;
|
|
73
|
+
'trustRegistrationAddress.registrationAddress.city': string;
|
|
74
|
+
'trustRegistrationAddress.registrationAddress.country': string;
|
|
75
|
+
'trustRegistrationAddress.registrationAddress.postalCode': string;
|
|
76
|
+
'trustRegistrationAddress.registrationAddress.stateOrProvince': string;
|
|
77
|
+
'trustRegistrationAddress.registrationAddress.street': string;
|
|
78
|
+
'trustRegistrationAddress.registrationAddress.houseNumberOrName': string;
|
|
79
|
+
'trustRegistrationAddress.operationalAddress.city': string;
|
|
80
|
+
'trustRegistrationAddress.operationalAddress.country': string;
|
|
81
|
+
'trustRegistrationAddress.operationalAddress.postalCode': string;
|
|
82
|
+
'trustRegistrationAddress.operationalAddress.stateOrProvince': string;
|
|
83
|
+
'trustRegistrationAddress.operationalAddress.street': string;
|
|
84
|
+
'trustRegistrationAddress.operationalAddress.houseNumberOrName': string;
|
|
85
|
+
};
|
|
86
|
+
export declare const trustApiKeyMapping: any;
|
|
87
|
+
export declare const solePropComponentsKeyMapping: {
|
|
88
|
+
'solePropNameAndCountry.legalCompanyName': string;
|
|
89
|
+
'solePropNameAndCountry.companyCountry': string;
|
|
90
|
+
'solePropRegistrationDetails.tradingName': string;
|
|
91
|
+
'solePropRegistrationDetails.vatNumber': string;
|
|
92
|
+
'solePropRegistrationDetails.registrationNumber': string;
|
|
93
|
+
'solePropRegistrationDetails.exemptedFromVat': string;
|
|
94
|
+
'solePropRegistrationDetails.vatAbsenceReason': string;
|
|
95
|
+
'solePropRegistrationDetails.taxInformation': string;
|
|
96
|
+
'solePropRegistrationAddress.registrationAddress.city': string;
|
|
97
|
+
'solePropRegistrationAddress.registrationAddress.country': string;
|
|
98
|
+
'solePropRegistrationAddress.registrationAddress.postalCode': string;
|
|
99
|
+
'solePropRegistrationAddress.registrationAddress.stateOrProvince': string;
|
|
100
|
+
'solePropRegistrationAddress.registrationAddress.street': string;
|
|
101
|
+
'solePropRegistrationAddress.registrationAddress.houseNumberOrName': string;
|
|
102
|
+
'solePropRegistrationAddress.operationalAddress.city': string;
|
|
103
|
+
'solePropRegistrationAddress.operationalAddress.country': string;
|
|
104
|
+
'solePropRegistrationAddress.operationalAddress.postalCode': string;
|
|
105
|
+
'solePropRegistrationAddress.operationalAddress.stateOrProvince': string;
|
|
106
|
+
'solePropRegistrationAddress.operationalAddress.street': string;
|
|
107
|
+
'solePropRegistrationAddress.operationalAddress.houseNumberOrName': string;
|
|
108
|
+
};
|
|
109
|
+
export declare const solePropApiKeyMapping: any;
|
|
110
|
+
export declare const documentTypeKeyMapping: {
|
|
111
|
+
passport: string;
|
|
112
|
+
driversLicense: string;
|
|
113
|
+
identityCard: string;
|
|
114
|
+
proofOfNationalIdNumber: string;
|
|
115
|
+
proofOfResidency: string;
|
|
116
|
+
proofOfIndividualTaxId: string;
|
|
117
|
+
registrationDocument: string;
|
|
118
|
+
taxDocument: string;
|
|
119
|
+
proofOfAddress: string;
|
|
120
|
+
bankStatementDocument: string;
|
|
121
|
+
trustDocument: string;
|
|
122
|
+
solePropConstitutionalDocument: string;
|
|
123
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DocumentType } from '../../core/models/api/document';
|
|
2
|
+
/**
|
|
3
|
+
* Returns the appropriate prefix for the document guidance image based on api documentType.
|
|
4
|
+
*/
|
|
5
|
+
declare const getDocumentGuidancePrefix: (documentType: DocumentType, isIcon?: boolean, isFront?: boolean) => "id" | "passport" | "id-front" | "id-back" | "generic-document";
|
|
6
|
+
export { getDocumentGuidancePrefix };
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { IndividualSchema } from '../../components/Individual/types';
|
|
2
|
+
import LegalEntity from '../../core/models/api/legal-entity';
|
|
3
|
+
import Document from '../../core/models/api/document';
|
|
4
|
+
import { CompanySchema } from '../../components/Company/types';
|
|
5
|
+
import TransferInstrument from '../../core/models/api/transfer-instrument';
|
|
6
|
+
import { PayoutBankStatementSchema } from '../../components/PayoutBankStatement/types';
|
|
7
|
+
import { PayoutDetailsSchema } from '../../components/PayoutDetails/types';
|
|
8
|
+
import { TrustSchema } from '../../components/Trust/types';
|
|
9
|
+
import { SolePropSchema } from '../../components/SoleProp/types';
|
|
10
|
+
/**
|
|
11
|
+
* Easy to use function for mapping Individual component data to a LegalEntity
|
|
12
|
+
* @param data - an Individual person data
|
|
13
|
+
* @returns a LegalEntity ready for use with API
|
|
14
|
+
*/
|
|
15
|
+
export declare const mapIndividualToLegalEntity: (data: IndividualSchema) => LegalEntity;
|
|
16
|
+
/**
|
|
17
|
+
* Easy to use function for mapping transferInstrument response to payout account details component data
|
|
18
|
+
* @param transferInstrument - a transferInstrument the same as found in API response
|
|
19
|
+
* @returns a Payout Details person data
|
|
20
|
+
*/
|
|
21
|
+
export declare const mapTransferInstrumentToPayoutAccount: (transferInstrument: TransferInstrument) => PayoutDetailsSchema;
|
|
22
|
+
/**
|
|
23
|
+
* Easy to use function for mapping payout account details component data to transferInstrument
|
|
24
|
+
* @param payoutDetails - Details person data
|
|
25
|
+
* @returns transferInstrument - a transferInstrument the same as found in API response
|
|
26
|
+
*/
|
|
27
|
+
export declare const mapPayoutAccountToTransferInstrument: ({ data, legalEntity }: {
|
|
28
|
+
data: any;
|
|
29
|
+
legalEntity: any;
|
|
30
|
+
}) => TransferInstrument;
|
|
31
|
+
/**
|
|
32
|
+
* Easy to use function for mapping LegalEntity response to Individual component data
|
|
33
|
+
* @param legalEntity - a LegalEntity the same as found in API response
|
|
34
|
+
* @returns an Individual person data
|
|
35
|
+
*/
|
|
36
|
+
export declare const mapLegalEntityToIndividual: (legalEntity: LegalEntity, isChangingType: boolean) => IndividualSchema;
|
|
37
|
+
/**
|
|
38
|
+
* Easy to use function for mapping LegalEntity response to Company component data
|
|
39
|
+
* @param legalEntity - a LegalEntity the same as found in API response
|
|
40
|
+
* @returns an Company data
|
|
41
|
+
*/
|
|
42
|
+
export declare const mapLegalEntityToCompany: (legalEntity: LegalEntity, isChangingType: boolean) => CompanySchema;
|
|
43
|
+
/**
|
|
44
|
+
* Easy to use function for mapping Company component data to a LegalEntity
|
|
45
|
+
* @param data - an Company person data
|
|
46
|
+
* @returns a LegalEntity ready for use with API
|
|
47
|
+
*/
|
|
48
|
+
export declare const mapCompanyToLegalEntity: (data: CompanySchema) => LegalEntity;
|
|
49
|
+
export declare const mapIndividualDocumentToApiDocument: (data: IndividualSchema, entityId: any) => Promise<Array<Document>>;
|
|
50
|
+
export declare const mapApiDocumentToIndividualDocuments: (entityId: string) => IndividualSchema;
|
|
51
|
+
export declare const mapCompanyDocumentToApiDocument: (data: CompanySchema, entityId: any) => Promise<Array<Document>>;
|
|
52
|
+
export declare const mapApiDocumentToCompanyDocuments: (entityId: string) => CompanySchema;
|
|
53
|
+
export declare const mapApiDocumentToPayoutDocuments: (entityId: string) => PayoutBankStatementSchema;
|
|
54
|
+
export declare const mapPayoutDocumentsToApiDocuments: (data: PayoutDetailsSchema, entityId: any) => Promise<Array<Document>>;
|
|
55
|
+
/**
|
|
56
|
+
* @param obj - source object
|
|
57
|
+
* @param mapping - key mappings between target and source object structure
|
|
58
|
+
* @example
|
|
59
|
+
* ```
|
|
60
|
+
* let mapping={ 'a.b': 'x.y.z'}
|
|
61
|
+
* let obj = {x: {y: {z: 'foo'}}}
|
|
62
|
+
* formatObject(obj, mapping) => {a:{b:'foo'}}
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
export declare const formatObject: (obj: any, mapping: {
|
|
66
|
+
[key: string]: string;
|
|
67
|
+
}) => {};
|
|
68
|
+
/**
|
|
69
|
+
* assigns the value provided to the key in targetObject.
|
|
70
|
+
* @param path - keys separated by a delimiter.
|
|
71
|
+
* @param obj - object to which value will be assigned
|
|
72
|
+
* @param val - value to be assigned
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* ```
|
|
76
|
+
* targetObject = {};
|
|
77
|
+
* assignToProp('x.y.z', targetObject, 'foo');
|
|
78
|
+
* console.log(targetObject); => {x:{y:{z:'foo'}}}
|
|
79
|
+
* ```
|
|
80
|
+
*/
|
|
81
|
+
export declare function assignToProp(path: any, obj: any, val: any): void;
|
|
82
|
+
/**
|
|
83
|
+
* Easy to use function for mapping LegalEntity response to Trust component data
|
|
84
|
+
* @param legalEntity - a LegalEntity the same as found in API response
|
|
85
|
+
* @returns an Company data
|
|
86
|
+
*/
|
|
87
|
+
export declare const mapLegalEntityToTrust: (legalEntity: LegalEntity) => TrustSchema;
|
|
88
|
+
export declare const mapTrustToLegalEntity: (data: TrustSchema) => LegalEntity;
|
|
89
|
+
/**
|
|
90
|
+
* Easy to use function for mapping LegalEntity response to SoleProprietor component data
|
|
91
|
+
* @param legalEntity - a LegalEntity the same as found in API response
|
|
92
|
+
* @returns an SoleProp data
|
|
93
|
+
*/
|
|
94
|
+
export declare const mapLegalEntityToSoleProp: (legalEntity: LegalEntity) => SolePropSchema;
|
|
95
|
+
export declare const mapSolePropToLegalEntity: (data: SolePropSchema) => LegalEntity;
|
|
96
|
+
export declare const mapSolePropDocumentToApiDocument: (data: SolePropSchema, entityId: any) => Promise<Array<Document>>;
|
|
97
|
+
export declare const mapApiDocumentToSolePropDocuments: (entityId: string) => SolePropSchema;
|
|
98
|
+
export declare const getPageName: (document: Document, pageIndex?: number) => string;
|
|
99
|
+
/**
|
|
100
|
+
* returns the indicated property of an object, if it exists.
|
|
101
|
+
*
|
|
102
|
+
* @param object - The object to query
|
|
103
|
+
* @param path - The property name or path to the property
|
|
104
|
+
* @returns The value at `obj[p]`.
|
|
105
|
+
|
|
106
|
+
* @example
|
|
107
|
+
* ```
|
|
108
|
+
* getProp({x: 100}, 'x'); //=> 100
|
|
109
|
+
* getProp({}, 'x'); //=> undefined
|
|
110
|
+
* ```
|
|
111
|
+
*/
|
|
112
|
+
export declare function getProp(object: any, path: string): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function removeObjectPropsWithEmptyValues(obj: object): object;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getScrollParent: (node: any) => any;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import Language from '../language';
|
|
2
|
+
import { isPartOfTrustIds } from '../components/internal/PartOfTrust/types';
|
|
3
|
+
import LegalEntity from '../core/models/api/legal-entity';
|
|
4
|
+
import { TrustMemberType } from '../core/models/api/trust-member-type';
|
|
5
|
+
import LegalEntityAssociation from '../core/models/api/legal-entity-association';
|
|
6
|
+
import { EntityProblems } from '../core/models/errors/entity-problems';
|
|
7
|
+
import { CapabilityProblems } from '../core/models/errors/capability-problems';
|
|
8
|
+
export declare const isPartOfTrustFromLegalEntity: (legalEntity: LegalEntity) => boolean;
|
|
9
|
+
export declare const getPartOfTrustItemDataFromLegalEntity: (legalEntity: LegalEntity) => isPartOfTrustIds;
|
|
10
|
+
export declare const getLabelFromPartOfTrustId: (id: isPartOfTrustIds) => string;
|
|
11
|
+
export declare const getOwnTrustMembers: (legalEntity: LegalEntity) => Array<LegalEntityAssociation>;
|
|
12
|
+
export declare const getOwnTrustMembersLegalEntityIds: (legalEntity: LegalEntity) => string[];
|
|
13
|
+
export declare const getOwnTrustLegalEntityIdAsArray: (legalEntity: LegalEntity) => string[];
|
|
14
|
+
export declare const getOwnTrustProblems: (legalEntity: LegalEntity, capabilityProblems: CapabilityProblems) => EntityProblems;
|
|
15
|
+
export declare const hasMinRequiredTrustMemberCount: (legalEntity: LegalEntity) => boolean;
|
|
16
|
+
export declare const getTranslatedTrustMemberRoles: (i18n: Language, allowedRoles?: TrustMemberType[]) => ({
|
|
17
|
+
name: string;
|
|
18
|
+
description: string;
|
|
19
|
+
id: TrustMemberType;
|
|
20
|
+
className: string;
|
|
21
|
+
} | {
|
|
22
|
+
name: string;
|
|
23
|
+
description: string;
|
|
24
|
+
id: TrustMemberType;
|
|
25
|
+
className: string;
|
|
26
|
+
} | {
|
|
27
|
+
name: string;
|
|
28
|
+
description: string;
|
|
29
|
+
id: TrustMemberType;
|
|
30
|
+
className: string;
|
|
31
|
+
} | {
|
|
32
|
+
name: string;
|
|
33
|
+
description: string;
|
|
34
|
+
id: TrustMemberType;
|
|
35
|
+
className: string;
|
|
36
|
+
} | {
|
|
37
|
+
name: string;
|
|
38
|
+
description: string;
|
|
39
|
+
id: TrustMemberType;
|
|
40
|
+
className: string;
|
|
41
|
+
})[];
|
|
42
|
+
export declare const getTrustMemberTagColor: (decisionMakerType: TrustMemberType) => string;
|
|
43
|
+
export declare const getTrustMemberName: (decisionMakerType: TrustMemberType) => string;
|
|
44
|
+
export declare const trustMemberRoles: {
|
|
45
|
+
definedBeneficiary: {
|
|
46
|
+
id: TrustMemberType;
|
|
47
|
+
name: string;
|
|
48
|
+
description: string;
|
|
49
|
+
className: string;
|
|
50
|
+
};
|
|
51
|
+
protector: {
|
|
52
|
+
id: TrustMemberType;
|
|
53
|
+
name: string;
|
|
54
|
+
description: string;
|
|
55
|
+
className: string;
|
|
56
|
+
};
|
|
57
|
+
secondaryTrustee: {
|
|
58
|
+
id: TrustMemberType;
|
|
59
|
+
name: string;
|
|
60
|
+
description: string;
|
|
61
|
+
className: string;
|
|
62
|
+
};
|
|
63
|
+
settlor: {
|
|
64
|
+
id: TrustMemberType;
|
|
65
|
+
name: string;
|
|
66
|
+
description: string;
|
|
67
|
+
className: string;
|
|
68
|
+
};
|
|
69
|
+
uboThroughOwnership: {
|
|
70
|
+
id: TrustMemberType;
|
|
71
|
+
name: string;
|
|
72
|
+
description: string;
|
|
73
|
+
className: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './useForm';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Processes default data and sets as default in state
|
|
3
|
+
*/
|
|
4
|
+
export declare function init({ schema, defaultData, processField, fieldProblems }: {
|
|
5
|
+
schema: any;
|
|
6
|
+
defaultData: any;
|
|
7
|
+
processField: any;
|
|
8
|
+
fieldProblems: any;
|
|
9
|
+
}): {
|
|
10
|
+
schema: any;
|
|
11
|
+
data: any;
|
|
12
|
+
valid: any;
|
|
13
|
+
errors: any;
|
|
14
|
+
fieldProblems: any;
|
|
15
|
+
};
|
|
16
|
+
export declare function getReducer(processField: any): (state: any, { type, key, value, mode, schema, defaultData, formValue, selectedSchema, fieldProblems }: any) => any;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { ValidatorRules } from '../Validator/types';
|
|
2
|
+
import { EntityProblems } from '../../core/models/errors/entity-problems';
|
|
3
|
+
import { FormVerificationErrors } from '../../core/models/errors/form-verification-errors';
|
|
4
|
+
import { StateUpdater } from 'preact/hooks';
|
|
5
|
+
export declare type FormState<FormSchema> = {
|
|
6
|
+
schema?: string[];
|
|
7
|
+
data: FormSchema;
|
|
8
|
+
errors: {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
};
|
|
11
|
+
valid: {
|
|
12
|
+
[key: string]: boolean;
|
|
13
|
+
};
|
|
14
|
+
fieldProblems?: {
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
};
|
|
17
|
+
isValid?: boolean;
|
|
18
|
+
};
|
|
19
|
+
export interface BaseFormProps<FormSchema> {
|
|
20
|
+
placeholders?: {
|
|
21
|
+
[field in keyof FormSchema]: any;
|
|
22
|
+
};
|
|
23
|
+
requiredFields?: Array<keyof FormSchema> | {
|
|
24
|
+
[field in keyof FormSchema]: any;
|
|
25
|
+
};
|
|
26
|
+
optionalFields?: Array<keyof FormSchema> | {
|
|
27
|
+
[field in keyof FormSchema]: any;
|
|
28
|
+
};
|
|
29
|
+
verifyFields?: Array<keyof FormSchema> | {
|
|
30
|
+
[field in keyof FormSchema]: any;
|
|
31
|
+
};
|
|
32
|
+
labels?: {
|
|
33
|
+
[field in keyof FormSchema]: any;
|
|
34
|
+
};
|
|
35
|
+
readOnly?: boolean;
|
|
36
|
+
readOnlyFields?: Array<keyof FormSchema> | {
|
|
37
|
+
[field in keyof FormSchema]: any;
|
|
38
|
+
};
|
|
39
|
+
onChange?(state: FormState<FormSchema>): void;
|
|
40
|
+
showValidation?: boolean;
|
|
41
|
+
data?: FormSchema;
|
|
42
|
+
validators?: ValidatorRules<FormSchema>;
|
|
43
|
+
ref?: any;
|
|
44
|
+
heading?: string;
|
|
45
|
+
name?: string;
|
|
46
|
+
description?: string;
|
|
47
|
+
}
|
|
48
|
+
export interface Form<FormSchema> extends FormState<FormSchema> {
|
|
49
|
+
handleChangeFor: (key: string, mode?: string) => (e: any) => void;
|
|
50
|
+
triggerValidation: (schema?: any) => void;
|
|
51
|
+
setSchema: (schema: any) => void;
|
|
52
|
+
setData: (key: string, value: any) => void;
|
|
53
|
+
setValid: (key: string, value: any) => void;
|
|
54
|
+
setErrors: (key: string, value: any) => void;
|
|
55
|
+
mergeForm: (formValue: any) => void;
|
|
56
|
+
setFieldProblems: (fieldProblems: any) => void;
|
|
57
|
+
}
|
|
58
|
+
export interface BaseOuterFormProps<FormSchema> extends BaseFormProps<FormSchema> {
|
|
59
|
+
problems?: EntityProblems;
|
|
60
|
+
capabilities?: Array<string>;
|
|
61
|
+
country?: string;
|
|
62
|
+
requiredFields?: {
|
|
63
|
+
[field in keyof FormSchema]: any;
|
|
64
|
+
};
|
|
65
|
+
optionalFields?: {
|
|
66
|
+
[field in keyof FormSchema]: any;
|
|
67
|
+
};
|
|
68
|
+
verifyFields?: {
|
|
69
|
+
[field in keyof FormSchema]: any;
|
|
70
|
+
};
|
|
71
|
+
readOnlyFields?: {
|
|
72
|
+
[field in keyof FormSchema]: any;
|
|
73
|
+
};
|
|
74
|
+
evaluateConfiguration?: (data: FormSchema) => {};
|
|
75
|
+
setHideDropinLayout?: StateUpdater<boolean>;
|
|
76
|
+
setHideNavigation?: StateUpdater<boolean>;
|
|
77
|
+
setHideFooter?: StateUpdater<boolean>;
|
|
78
|
+
setCustomFormNavigationHandlers?(formId: string, onNext: () => void, onBack: () => void): void;
|
|
79
|
+
}
|
|
80
|
+
export interface BaseInnerFormProps<FormSchema> extends BaseFormProps<FormSchema> {
|
|
81
|
+
formVerificationErrors?: FormVerificationErrors;
|
|
82
|
+
fieldValidationErrors?: {
|
|
83
|
+
[fieldName: string]: any;
|
|
84
|
+
};
|
|
85
|
+
requiredFields?: Array<keyof FormSchema>;
|
|
86
|
+
optionalFields?: Array<keyof FormSchema>;
|
|
87
|
+
verifyFields?: Array<keyof FormSchema>;
|
|
88
|
+
readOnlyFields?: Array<keyof FormSchema>;
|
|
89
|
+
id?: string;
|
|
90
|
+
dataStoreId?: string;
|
|
91
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FormatRules, ValidatorRules } from '../Validator/types';
|
|
2
|
+
import { Form } from './types';
|
|
3
|
+
interface UseFormArgs<FormSchema> {
|
|
4
|
+
rules?: ValidatorRules<FormSchema>;
|
|
5
|
+
schema?: (keyof FormSchema)[];
|
|
6
|
+
formatters?: FormatRules<FormSchema>;
|
|
7
|
+
defaultData?: object;
|
|
8
|
+
fieldProblems?: object;
|
|
9
|
+
}
|
|
10
|
+
declare function useForm<FormSchema>({ rules, schema, formatters, defaultData, fieldProblems }: UseFormArgs<FormSchema>): Form<FormSchema>;
|
|
11
|
+
export default useForm;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function uuidv4(): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import 'core-js/features/string/trim-start';
|
|
2
|
+
import { CountryBasedValidatorRules, CountryRuleset, Ruleset, ValidatorRules } from './Validator/types';
|
|
3
|
+
export declare const getMaxLengthByFormatRuleset: (formattingRules: any, field: any) => any;
|
|
4
|
+
export declare const getMaxLengthByFieldAndCountry: (formattingRules: any, field: any, country: any, ignoreIfFormatterExists: any) => any;
|
|
5
|
+
/**
|
|
6
|
+
* Merges country based and default validation rule sets.
|
|
7
|
+
* Only merges rule-sets for a field if the "modes" for the validation rule are different.
|
|
8
|
+
* Avoids having duplicate rules for the same fields (both of which would still be run)
|
|
9
|
+
*/
|
|
10
|
+
export declare function mergeCountryBasedValidators<FormSchema>(defaultValidatorsObj: ValidatorRules<FormSchema>, countryBasedValidators: CountryBasedValidatorRules<FormSchema>, country: string): ValidatorRules<FormSchema>;
|
|
11
|
+
/**
|
|
12
|
+
* Merges any 2 set of objects where we have a base set of rules and then a country based set with values for particular fields
|
|
13
|
+
* Example - formatting rules e.g. for SSN in IdentityNumberComponent
|
|
14
|
+
*/
|
|
15
|
+
export declare function mergeCountryBasedRulesets(defaultRuleset: Ruleset, countryBasedRuleset: CountryRuleset, country: string): Ruleset;
|
|
16
|
+
export declare const isUndefinedOrNull: (input: any) => boolean;
|
|
17
|
+
export declare const isEmpty: (input: any) => boolean;
|
|
18
|
+
export declare const isString: (input: any) => boolean;
|
|
19
|
+
export declare const hasText: (input: any) => boolean;
|
|
20
|
+
export declare const SPECIAL_CHARS = "?\\-\\+_=!@#$%^&*(){}~<>\\[\\]\\/\\\\";
|
|
21
|
+
export declare const getFormattingRegEx: (specChars: string, flags?: string) => RegExp;
|
|
22
|
+
export declare const getValidatingRegEx: (specChars: string, exclude: boolean) => RegExp;
|
|
23
|
+
export declare const CHARACTER_PATTERNS: {
|
|
24
|
+
[key: string]: RegExp;
|
|
25
|
+
};
|
|
26
|
+
export declare const exactLength: (input: string, length: number) => boolean;
|
|
27
|
+
export declare const trimValWithOneSpace: (val: any) => any;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FormState } from '../../useForm/types';
|
|
2
|
+
export interface IdSchema {
|
|
3
|
+
idNumber: string;
|
|
4
|
+
firstName: string;
|
|
5
|
+
lastName: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const verifyIDNumberHelper: (formState: Pick<FormState<IdSchema>, 'data'>, contextCountry: string, props: any) => Promise<{
|
|
8
|
+
status: string;
|
|
9
|
+
data: import("../../../core/models/api/id-verification-data").default;
|
|
10
|
+
fieldName: string;
|
|
11
|
+
translationKey: string;
|
|
12
|
+
} | {
|
|
13
|
+
status: string;
|
|
14
|
+
data: import("../../../core/models/api/id-verification-data").default;
|
|
15
|
+
fieldName: string;
|
|
16
|
+
translationKey?: undefined;
|
|
17
|
+
}>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IdSchema } from './helpers/verifyIDNumber';
|
|
2
|
+
import IdVerificationStatus from '../../core/models/id-verification-status';
|
|
3
|
+
import { FormState } from '../useForm/types';
|
|
4
|
+
export declare function useVerification(fieldsToVerify: any[], country: string): {
|
|
5
|
+
hasFieldsToVerify: boolean;
|
|
6
|
+
verifyFields: (formState: Pick<FormState<IdSchema>, 'data'>) => Promise<IdVerificationStatus[]>;
|
|
7
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@adyen/kyc-components",
|
|
3
|
+
"version": "1.2.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"files": [
|
|
7
|
+
"./dist"
|
|
8
|
+
],
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/types/index.d.ts",
|
|
12
|
+
"import": "./dist/adyen-kyc-components.esm.js",
|
|
13
|
+
"require": "./dist/adyen-kyc-components.cjs.js"
|
|
14
|
+
},
|
|
15
|
+
"./src/*": "./src/*"
|
|
16
|
+
},
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "https://github.com/Adyen/adyen-kyc-components/"
|
|
20
|
+
},
|
|
21
|
+
"scripts": {
|
|
22
|
+
"clean": "rm -rf dist",
|
|
23
|
+
"start": "npm run dev",
|
|
24
|
+
"dev": "cross-env NODE_ENV=development webpack serve --config=config/webpack.dev.js",
|
|
25
|
+
"test": "jest --config config/jest.config.js",
|
|
26
|
+
"test:watch": "npm run test --watch",
|
|
27
|
+
"build": "npm run clean && cross-env NODE_ENV=production webpack --config=config/webpack.prod.js",
|
|
28
|
+
"buildAll": "npm run build && npm run types:build-declarations",
|
|
29
|
+
"buildDemo": "cross-env NODE_ENV=production webpack --config=config/webpack.demo.js",
|
|
30
|
+
"lint": "eslint 'src/**/*.{js,ts,tsx}'",
|
|
31
|
+
"lint:scss": "stylelint 'src/**/*.scss' '!node_modules/**/*.scss' --fix",
|
|
32
|
+
"lint:fix": "npm run lint -- --fix",
|
|
33
|
+
"types:check": "tsc",
|
|
34
|
+
"types:build-declarations": "tsc --project tsconfig-build.json"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@babel/core": "^7.17.8",
|
|
38
|
+
"@babel/preset-env": "^7.16.11",
|
|
39
|
+
"@prefresh/babel-plugin": "^0.4.3",
|
|
40
|
+
"@prefresh/webpack": "^3.3.3",
|
|
41
|
+
"@testing-library/preact": "^2.0.1",
|
|
42
|
+
"@testing-library/preact-hooks": "^1.1.0",
|
|
43
|
+
"@types/jest": "^29.0.0",
|
|
44
|
+
"@typescript-eslint/eslint-plugin": "^5.4.0",
|
|
45
|
+
"@typescript-eslint/parser": "^5.8.1",
|
|
46
|
+
"autoprefixer": "^10.0.0",
|
|
47
|
+
"babel-loader": "^9.0.0",
|
|
48
|
+
"cross-env": "^7.0.3",
|
|
49
|
+
"css-loader": "^6.0.0",
|
|
50
|
+
"css-minimizer-webpack-plugin": "^4.0.0",
|
|
51
|
+
"dotenv": "^16.0.0",
|
|
52
|
+
"enzyme": "^3.11.0",
|
|
53
|
+
"enzyme-adapter-preact-pure": "^4.0.0",
|
|
54
|
+
"eslint": "^8.12.0",
|
|
55
|
+
"eslint-import-resolver-typescript": "^3.0.0",
|
|
56
|
+
"eslint-plugin-import": "^2.25.4",
|
|
57
|
+
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
58
|
+
"eslint-plugin-react": "^7.26.1",
|
|
59
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
60
|
+
"eslint-plugin-tsdoc": "^0.2.14",
|
|
61
|
+
"eslint-webpack-plugin": "^3.1.1",
|
|
62
|
+
"html-webpack-plugin": "^5.5.0",
|
|
63
|
+
"jest": "^29.0.0",
|
|
64
|
+
"jest-environment-jsdom": "^29.3.1",
|
|
65
|
+
"mini-css-extract-plugin": "^2.4.5",
|
|
66
|
+
"postcss": "^8.3.11",
|
|
67
|
+
"prettier": "^2.4.1",
|
|
68
|
+
"sass": "^1.43.4",
|
|
69
|
+
"sass-loader": "^13.0.0",
|
|
70
|
+
"style-loader": "^3.3.1",
|
|
71
|
+
"stylelint": "^14.1.0",
|
|
72
|
+
"stylelint-config-recommended": "^6.0.0",
|
|
73
|
+
"stylelint-config-sass-guidelines": "^9.0.1",
|
|
74
|
+
"stylelint-scss": "^4.2.0",
|
|
75
|
+
"stylelint-webpack-plugin": "^3.1.0",
|
|
76
|
+
"terser-webpack-plugin": "^5.2.4",
|
|
77
|
+
"testcafe": "2.1.0",
|
|
78
|
+
"ts-jest": "^29.0.0",
|
|
79
|
+
"ts-loader": "^9.2.6",
|
|
80
|
+
"typescript": "^4.4.4",
|
|
81
|
+
"webpack": "^5.61.0",
|
|
82
|
+
"webpack-cli": "^5.0.0",
|
|
83
|
+
"webpack-dev-server": "^4.4.0",
|
|
84
|
+
"webpack-merge": "^5.8.0"
|
|
85
|
+
},
|
|
86
|
+
"dependencies": {
|
|
87
|
+
"classnames": "^2.3.1",
|
|
88
|
+
"core-js": "^3.20.2",
|
|
89
|
+
"onfido-sdk-ui": "6.4.0",
|
|
90
|
+
"preact": "^10.5.15",
|
|
91
|
+
"whatwg-fetch": "^3.6.2"
|
|
92
|
+
}
|
|
93
|
+
}
|