@adyen/kyc-components 4.26.1 → 4.27.0-beta.1
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/dist/{AcceptTermsOfServiceWorkflow-DXSq3XzA.js → AcceptTermsOfServiceWorkflow-CO6qEeAD.js} +4 -4
- package/dist/{Accordion-BAdwrgCR.js → Accordion-CTQfC17W.js} +1 -1
- package/dist/{AccountSetupRejected-BLEWjmc8.js → AccountSetupRejected-CFvogFuo.js} +2 -2
- package/dist/{AdaptiveWorkflow-DwdMyu1A.js → AdaptiveWorkflow-CTKpyw02.js} +22 -22
- package/dist/{AdaptiveWorkflowComponent-DPv1YHos.js → AdaptiveWorkflowComponent-CvTwsWi3.js} +5 -5
- package/dist/{AddressFields-B0QVYM-e.js → AddressFields-vl2AeVHz.js} +33 -72
- package/dist/{Avatar-C2zeqSSB.js → Avatar-yJfk9A6l.js} +1 -1
- package/dist/{BusinessFinancingDropin-evYHYnXE.js → BusinessFinancingDropin-tSylhmJS.js} +123 -55
- package/dist/{BusinessFinancingPage-C_agz96E.js → BusinessFinancingPage-9AcfHWyP.js} +6 -6
- package/dist/{BusinessRegistrationNumberField-DeYcZlQS.js → BusinessRegistrationNumberField-B6w6LvSZ.js} +6 -6
- package/dist/{BusinessRegistrationNumberFieldGroup-D9D0BPdp.js → BusinessRegistrationNumberFieldGroup-CICYxSyn.js} +6 -6
- package/dist/{BusinessTypeSelectionPage-DmgeZsex.js → BusinessTypeSelectionPage-lLt_PL1z.js} +13 -13
- package/dist/{Button-Dwr6jvJZ.js → Button-BYafPrZH.js} +1 -1
- package/dist/{Checkbox-BLyyDG9b.js → Checkbox-DXF-eRBj.js} +8 -8
- package/dist/{ComponentGroup-BLvYZoxp.js → ComponentGroup-DNspJrHk.js} +3 -3
- package/dist/{ConstitutionalDocument-B3o3NLMO.js → ConstitutionalDocument-Dg3dmkpH.js} +19 -26
- package/dist/{ContactDetails-7zYbKJtH.js → ContactDetails-5W0oQVYG.js} +5 -5
- package/dist/{ContextGuidance-C2AXK9Ep.js → ContextGuidance-BrbPzdaI.js} +3 -3
- package/dist/{CountryField-Bl8gp3wu.js → CountryField-DlMYQYfd.js} +4 -4
- package/dist/{Currency-Be6zg8XM.js → Currency-BCJuV60i.js} +16 -10
- package/dist/{CustomerSupport-lUVh_sWN.js → CustomerSupport-Bdg11WcM.js} +29 -16
- package/dist/{DateField-CO2CodgD.js → DateField-DfnBDOVl.js} +4 -4
- package/dist/{DebugModal-l52lDfKB.js → DebugModal-D1RMhAfR.js} +228 -10
- package/dist/{DecisionMakerDetails-9y6Fm96G.js → DecisionMakerDetails-Cv_NdD0z.js} +79 -174
- package/dist/{DecisionMakerDetailsPage-9kRW2Zh8.js → DecisionMakerDetailsPage-dTsh8vkz.js} +9 -9
- package/dist/{DecisionMakers-CYjKftby.js → DecisionMakers-DAhjhaMS.js} +17 -18
- package/dist/{Dropzone-QRtCFpVT.js → Dropzone-rk15b_Tb.js} +7 -7
- package/dist/{EmailField-D-Ndm0JS.js → EmailField-BOX8HtRe.js} +4 -4
- package/dist/{EmbeddedStatus-4YjyzkcD.js → EmbeddedStatus-mdQsQfof.js} +2 -2
- package/dist/{EndStateLayout-C5Pqler-.js → EndStateLayout-B-M90Rnh.js} +2 -2
- package/dist/{EntityAssociation-CS8XqKk-.js → EntityAssociation-B5Zq7_F6.js} +6 -6
- package/dist/{ErrorPanel-DaipnVsu.js → ErrorPanel-BLvDkiVa.js} +10 -17
- package/dist/{GlobalEntryModal-COOjZvh7.js → GlobalEntryModal-DZsHeRPL.js} +439 -298
- package/dist/{GlobalEntryPage-C9SGXXJk.js → GlobalEntryPage-RyQIoaWL.js} +7 -8
- package/dist/{Icon-_YUEZg1p.js → Icon-jVvV1zXc.js} +1 -1
- package/dist/{IdentityNumber-D_cOLEsP.js → IdentityNumber-C8CMJtgD.js} +5 -5
- package/dist/{IdentityNumberFieldGroup-CoLugvku.js → IdentityNumberFieldGroup-Cj5U1Onz.js} +2 -2
- package/dist/{IdentityScreeningWorkflow-B_nLC0Ru.js → IdentityScreeningWorkflow-BCDn25Or.js} +12 -13
- package/dist/{IndividualDropin-CRKk-szG.js → IndividualDropin-B6dY0iN3.js} +149 -231
- package/dist/{IndustryCodeFieldGroup-0vRXN8GP.js → IndustryCodeFieldGroup-B649faYk.js} +5 -5
- package/dist/{InputDate-Cxk_f6Us.js → InputDate-3rYzWzXX.js} +8 -4
- package/dist/{InputText-CObXfKKh.js → InputText-OCbzlaaN.js} +2 -2
- package/dist/{Introduction-CmhxGGzY.js → Introduction-Duow8A7U.js} +6 -6
- package/dist/{InvitedDecisionMakerComponent-BkHurym6.js → InvitedDecisionMakerComponent-BVQ37JLZ.js} +13 -14
- package/dist/{JpAddressFields-CuvfbjX6.js → JpAddressFields-Bh7Bvw__.js} +9 -10
- package/dist/{LegalCompanyNameField-CkINYTFB.js → LegalCompanyNameField-Yj5Fa3-I.js} +5 -5
- package/dist/{LegalRepresentativeDetailsPage-mlE80SrL.js → LegalRepresentativeDetailsPage-C10ojT9w.js} +4 -4
- package/dist/{Link-D0Yqc2r0.js → Link-DwPkGikd.js} +1 -1
- package/dist/{ListItem-DY-qq1lS.js → ListItem-n927geYb.js} +2 -2
- package/dist/{Modal-DnDjAzqZ.js → Modal-jjSjdW5W.js} +3 -3
- package/dist/{Name-Dhj905G8.js → Name-D-A5XBTb.js} +4 -4
- package/dist/{NumberField-BlDjTB0U.js → NumberField-D291GWYR.js} +4 -4
- package/dist/{PatriotActDisclosure-jNLKR-RM.js → PatriotActDisclosure-DMjKJEKH.js} +10 -10
- package/dist/{PayoutDetailsDropin-DO1CtLRd.js → PayoutDetailsDropin-B5MNHR3S.js} +41 -43
- package/dist/{PayoutDetailsPage-C-W1PCRf.js → PayoutDetailsPage-DMAxzS2V.js} +5 -5
- package/dist/{Review-BLcoVl6O.js → Review-BDontauk.js} +6 -6
- package/dist/{RootBusinessDetailsPage-DNZi9Zgj.js → RootBusinessDetailsPage-INMIQvN4.js} +4 -4
- package/dist/{RootBusinessLinesPage-D2IPigk5.js → RootBusinessLinesPage-BiIb7UVU.js} +22 -23
- package/dist/{RootIndividualDetailsPage-Cfa9R28c.js → RootIndividualDetailsPage-BS5BgowF.js} +6 -6
- package/dist/{Select-C0Pp8Jeb.js → Select-BRK2a2V5.js} +92 -92
- package/dist/{SignPCIComponent-I3asF5GE.js → SignPCIComponent-B5JmN8BT.js} +14 -14
- package/dist/{SingpassSelection-C4Ptdwzb.js → SingpassSelection-B84oJmvG.js} +5 -5
- package/dist/{SoleProprietorshipPage-CiI2VKw_.js → SoleProprietorshipPage-C-jxJkmQ.js} +4 -4
- package/dist/{SourceOfFundsPage-DrJqgPMf.js → SourceOfFundsPage-C27vODL5.js} +24 -24
- package/dist/{SourceOfFundsWorkflow-tE06S4__.js → SourceOfFundsWorkflow-DOqaH_wk.js} +4 -4
- package/dist/StateField-CRLgYS1X.js +364 -0
- package/dist/{Step-CLZTcCEQ.js → Step-BTVKO9gW.js} +5 -5
- package/dist/Summary-C9Nr0dot.js +21 -0
- package/dist/{SummarySection-v-mSwYL0.js → SummarySection-D67yguze.js} +5 -19
- package/dist/{Task-CUr-Zb5N.js → Task-BaQ6wqz5.js} +7 -7
- package/dist/{TaskGroup-BGUboNOL.js → TaskGroup-C7lBWbYp.js} +3 -3
- package/dist/{TaskListItem-DMkmZn3B.js → TaskListItem-Cu3fSvOJ.js} +10 -10
- package/dist/{TaskStepperContextProvider-9wlnwii7.js → TaskStepperContextProvider-DiMf4UV6.js} +1 -1
- package/dist/{TaskVerificationStatus-zoxTZ2mt.js → TaskVerificationStatus-C1CllzL1.js} +17 -17
- package/dist/{TaxInformationFieldGroup-CraKcKMs.js → TaxInformationFieldGroup-vQoQHydJ.js} +7 -7
- package/dist/{TaxReportingDropin-B-ywMdBt.js → TaxReportingDropin-CTnL6VMm.js} +13 -15
- package/dist/{TaxReportingWorkflow-BmUdyOKl.js → TaxReportingWorkflow-5_eG0AcD.js} +4 -4
- package/dist/{TermsOfServiceManagement-D1Yv4Z5p.js → TermsOfServiceManagement-xL-xisqE.js} +46 -43
- package/dist/{TextArea-CyFcFhHo.js → TextArea-CcaUENX2.js} +4 -4
- package/dist/{TextField-D61xVlV2.js → TextField-fhhAQSKg.js} +5 -5
- package/dist/{TrustDetailsPage-D2FS-As0.js → TrustDetailsPage-DcNS-XWz.js} +61 -54
- package/dist/{TrustMemberCompanyPage-DDcSOUi2.js → TrustMemberCompanyPage-xtxgO6d4.js} +5 -5
- package/dist/{TrustMemberIndividualPage-CJBz1p3R.js → TrustMemberIndividualPage-BMWAg_eS.js} +4 -4
- package/dist/{TrustMemberRoleAndTypePage-OeN1HW_E.js → TrustMemberRoleAndTypePage-DR3pLJf9.js} +43 -36
- package/dist/{TrustMembersOverview-DkrEZL6_.js → TrustMembersOverview-D-jTaw37.js} +13 -13
- package/dist/{UboTaskItem-Dc6ExVuW.js → UboTaskItem-DsoetWEU.js} +7 -7
- package/dist/{UnincorporatedPartnershipIndividualPage-D0ZYvh8k.js → UnincorporatedPartnershipIndividualPage-3sSr2dCv.js} +4 -4
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-BtapkuO6.js → UnincorporatedPartnershipMemberCompanyPage-s6NiptRo.js} +5 -5
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-CbdYYTQT.js → UnincorporatedPartnershipMemberRoleAndTypePage-Cr6UEryR.js} +9 -9
- package/dist/{UnincorporatedPartnershipMembersOverview-Cs1DHVNP.js → UnincorporatedPartnershipMembersOverview-CbwWOxQs.js} +6 -6
- package/dist/{VerificationErrorAlert-D9sBE-Tj.js → VerificationErrorAlert-Bm7-u85-.js} +3 -3
- package/dist/{WebsiteField-BCoO-m_7.js → WebsiteField-DTlbxzaa.js} +5 -5
- package/dist/{Workflow-driWy_eJ.js → Workflow-DT43cTzE.js} +6 -6
- package/dist/{accountHolderUtils-BAbeRIOy.js → accountHolderUtils-D0E9se-W.js} +1 -1
- package/dist/adyen-business-financing.js +7 -7
- package/dist/adyen-individual-configuration.js +6 -6
- package/dist/adyen-individual-status.js +5 -5
- package/dist/adyen-invited-decision-maker.js +3 -3
- package/dist/adyen-onboarding.js +30 -30
- package/dist/adyen-terms-of-service-management.js +3 -3
- package/dist/adyen-terms-of-service-status.js +3 -3
- package/dist/adyen-transfer-instrument-configuration.js +5 -5
- package/dist/adyen-transfer-instrument-management.js +13 -13
- package/dist/adyen-verification-status.js +3 -3
- package/dist/{bafinUtils-COyCy9xG.js → bafinUtils-CvQzDDfD.js} +519 -531
- package/dist/{constants-fGRziJEH.js → constants-BOu8Hnt9.js} +6 -6
- package/dist/{dropinUtils-cIGIoJvF.js → dropinUtils-DfyQ8xFE.js} +165 -364
- package/dist/en-US-8KLaHQaT.js +7 -0
- package/dist/{en-US-Cz4JoU20.js → en-US-BMMx67Za.js} +16 -2
- package/dist/{en-US-nYL_eSJ-.js → en-US-BfRvYdHX.js} +8 -2
- package/dist/en-US-DGdFfmUC.js +136 -0
- package/dist/{en-US.instructions-BVNIyLRs.js → en-US.instructions-myDXMUbk.js} +2 -1
- package/dist/{error-B9rHWK9Q.js → error-CUHwmdwD.js} +2 -2
- package/dist/formatDataForSummary-BMFPIUER.js +498 -0
- package/dist/{formatValidationError-BJqU7LCU.js → formatValidationError-B5GNhAeh.js} +2 -2
- package/dist/{getDefaultRegistrationNumberType-BcV1GDOs.js → getDefaultRegistrationNumberType-CyaKz1Fj.js} +4 -4
- package/dist/{getProblemsForEntity-mdb3Bfpj.js → getProblemsForEntity-FHk416BA.js} +1 -1
- package/dist/{getTrustedDecisionMakers-D89oYOLp.js → getTrustedDecisionMakers-DByctgob.js} +1 -1
- package/dist/{getValidationError-dcpAlebZ.js → getValidationError-B4YX_EgR.js} +2 -2
- package/dist/{legalArrangementUtils-Crgt_L7h.js → legalArrangementUtils-CHlmmcB8.js} +11 -2
- package/dist/{mapAddressLocalizationToJpAddressSchema-B9pzYF3B.js → mapAddressLocalizationToJpAddressSchema-BrQMDBLX.js} +2 -2
- package/dist/{mapExistingFile-BXfeQxev.js → mapExistingFile-CqbTLZ6i.js} +1 -1
- package/dist/mapJpAddressSchemaToAddressLocalizations-BL4eAlDH.js +19 -0
- package/dist/{mapTransferInstrumentToPayoutAccount-Ba_L9EEB.js → mapTransferInstrumentToPayoutAccount-DhwdciyT.js} +2 -2
- package/dist/{processCapabilities-FL4-KAbd.js → processCapabilities-B75YIdXZ.js} +11 -4
- package/dist/{processValidationErrors-DWdgik5u.js → processValidationErrors-Dtt1FnM2.js} +4 -4
- package/dist/{resolveEnvironment-BnKqnU98.js → resolveEnvironment-CpWP_8og.js} +53 -16
- package/dist/roleMetadata-BW4HRw1l.js +57 -0
- package/dist/style.css +218 -230
- package/dist/styles-DYaAeu4q.js +218 -230
- package/dist/trustMemberType-Ix2sf6e_.js +13 -0
- package/dist/types/api/address/useAddressCleanse.d.ts +2 -0
- package/dist/types/api/address/useRetrieveAddress.d.ts +1 -0
- package/dist/types/api/address/useRetrieveFromPostcodeJp.d.ts +1 -0
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/utils.d.ts +7 -2
- package/dist/types/components/Business/forms/FinancialInformation/mapping/mapFinancialInformationToFinancialReport.d.ts +1 -1
- package/dist/types/components/Business/forms/rules.d.ts +3 -1
- package/dist/types/components/Business/utils/formatDataForSummary.d.ts +2 -1
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +78 -0
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingFinancialInformation.d.ts +3 -0
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +2 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +6 -3
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/validate.d.ts +3 -0
- package/dist/types/components/GlobalEntry/fields/DbaQuestionnaire/DbaQuestionnaire.d.ts +3 -0
- package/dist/types/components/GlobalEntry/fields/DbaQuestionnaire/types.d.ts +5 -0
- package/dist/types/components/GlobalEntry/fields/LlcQuestionnaire/LlcQuestionnaire.d.ts +3 -0
- package/dist/types/components/GlobalEntry/fields/LlcQuestionnaire/types.d.ts +5 -0
- package/dist/types/components/GlobalEntry/fields/PaperworkQuestionnaire/PaperworkQuestionnaire.d.ts +1 -6
- package/dist/types/components/GlobalEntry/fields/PaperworkQuestionnaire/fieldConfig.d.ts +11 -0
- package/dist/types/components/GlobalEntry/fields/PaperworkQuestionnaire/types.d.ts +6 -1
- package/dist/types/components/GlobalEntry/fields/Questionnaire/Questionnaire.d.ts +2 -0
- package/dist/types/components/GlobalEntry/fields/Questionnaire/types.d.ts +17 -0
- package/dist/types/components/GlobalEntry/fields/TrustQuestionnaire/TrustQuestionnaire.d.ts +3 -0
- package/dist/types/components/GlobalEntry/fields/TrustQuestionnaire/types.d.ts +5 -0
- package/dist/types/components/GlobalEntry/forms/EntityInformation/EntityInformation.d.ts +1 -3
- package/dist/types/components/GlobalEntry/forms/EntityInformation/types.d.ts +1 -2
- package/dist/types/components/GlobalEntry/forms/RegistrationInformation/types.d.ts +5 -1
- package/dist/types/components/GlobalEntry/mapping/globalEntryKeyMapping.d.ts +0 -3
- package/dist/types/components/GlobalEntry/mapping/mapGlobalEntrySchemaToLegalEntity.d.ts +2 -3
- package/dist/types/components/GlobalEntry/mapping/mapLegalEntityToGlobalEntrySchema.d.ts +1 -6
- package/dist/types/components/GlobalEntry/rules.d.ts +5 -2
- package/dist/types/components/GlobalEntry/utils/getAvailableCompanyStructures.d.ts +2 -1
- package/dist/types/components/GlobalEntry/utils/submitGlobalEntry.d.ts +1 -4
- package/dist/types/components/GlobalEntry/utils/utils.d.ts +7 -4
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +1 -2
- package/dist/types/components/Individual/forms/Individual.rules.d.ts +7 -6
- package/dist/types/components/Individual/helpers/findRelevantTaxInformation.d.ts +8 -2
- package/dist/types/components/Individual/helpers/getSubmittableTaxInformation.d.ts +20 -0
- package/dist/types/components/Individual/mapping/mapIndividualSchemaToLegalEntity.d.ts +5 -3
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/utils.d.ts +6 -67
- package/dist/types/components/Individual/tasks/IndividualDropin/IndividualSummary.d.ts +27 -0
- package/dist/types/components/Individual/utils/formatDataForSummary.d.ts +49 -0
- package/dist/types/components/Shared/FormFlow/FormFlow.d.ts +1 -1
- package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +0 -5
- package/dist/types/components/Shared/Summary/Summary.d.ts +10 -7
- package/dist/types/components/Shared/Summary/types.d.ts +3 -21
- package/dist/types/components/Shared/SummarySection/SummaryBulletList.d.ts +8 -0
- package/dist/types/components/Shared/devex/DebugListener/DebugTheme.d.ts +2 -0
- package/dist/types/components/Shared/devex/DebugListener/customTheme.d.ts +49 -0
- package/dist/types/components/Shared/fields/RegistrationAndOperationalAddressFields/types.d.ts +2 -0
- package/dist/types/components/Shared/fields/RegistrationAndOperationalAddressFields/utils.d.ts +2 -4
- package/dist/types/components/Shared/fields/ReportedValueOptionField/types.d.ts +3 -0
- package/dist/types/components/Shared/forms/Address/constants.d.ts +2 -0
- package/dist/types/components/Shared/forms/Address/localized/jp/JpAddressFields.d.ts +2 -9
- package/dist/types/components/Shared/forms/Address/localized/jp/mapAddressLocalizationToJpAddressSchema.d.ts +2 -2
- package/dist/types/components/Shared/forms/Address/localized/jp/mapJpAddressSchemaToAddressLocalizations.d.ts +2 -2
- package/dist/types/components/Shared/forms/Address/localized/jp/mapJpAddressSummary.d.ts +2 -4
- package/dist/types/components/Shared/forms/Address/rules.d.ts +13 -0
- package/dist/types/components/Shared/forms/Address/types.d.ts +7 -1
- package/dist/types/components/Shared/forms/Address/utils.d.ts +5 -11
- package/dist/types/components/Trust/forms/Trust/rules.d.ts +3 -1
- package/dist/types/components/Trust/tasks/RoleAndTypeDropin/formatRoleAndEntityTypeSummary.d.ts +2 -3
- package/dist/types/components/Trust/utils/formatDataForSummary.d.ts +2 -1
- package/dist/types/core/EmbedShell/EmbedShell.d.ts +4 -1
- package/dist/types/core/EmbedShell/useTheme.d.ts +9 -0
- package/dist/types/embeds/onboarding/adyen-onboarding.d.ts +1 -1
- package/dist/types/embeds/onboarding/adyen-onboarding.types.d.ts +8 -0
- package/dist/types/hooks/useStoredStateOrProvince.d.ts +9 -0
- package/dist/types/types/datasets/state-code.d.ts +36 -1
- package/dist/types/types/form-rules.d.ts +2 -2
- package/dist/types/utils/analytics/getPrefilledDetails.d.ts +3 -0
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/fieldConfigurations.d.ts +1 -1
- package/dist/types/utils/legalArrangementUtils.d.ts +2 -0
- package/dist/{types-BymnGWO9.js → types-DVMWWwBT.js} +1 -1
- package/dist/{form-rules-CZbkNMEw.js → unincorporatedPartnership-CiU2fnqv.js} +38 -4
- package/dist/{useBusinessDetailsData-BJau7oMt.js → useBusinessDetailsData-BtEHoBoN.js} +100 -90
- package/dist/{useCanSeeIntroduction-BQuCt-eO.js → useCanSeeIntroduction-kxOGIxnh.js} +2 -2
- package/dist/useCreateLegalEntity-CgzVD39K.js +24 -0
- package/dist/{useDataMissingRemediations-DKjYzfe2.js → useDataMissingRemediations-BfC7ECSn.js} +1 -1
- package/dist/{useForm-VDjedfk9.js → useForm-CiHfxEX0.js} +3 -3
- package/dist/{useHideTaskStepper-BgCN--mG.js → useHideTaskStepper-Betx9MGy.js} +1 -1
- package/dist/{useId-Cs-bSalH.js → useId-ChrmzN7R.js} +2 -2
- package/dist/{useNavigate-CKp2oemi.js → useNavigate-xbrKpFCu.js} +33 -33
- package/dist/{useSalesChannels-D0q-Vat7.js → useSalesChannels-C2qQmPGf.js} +1 -1
- package/dist/{useTaskLandedEvent-QBmeEeS6.js → useTaskLandedEvent-Brv74FDb.js} +1 -1
- package/dist/{useTrustMembers-COumqoMC.js → useTrustMembers-BA5fCul_.js} +3 -3
- package/dist/{useUnincorporatedPartnershipMembers-DcfQJdVZ.js → useUnincorporatedPartnershipMembers-J6rxK5Ie.js} +2 -2
- package/dist/{utils-BFxg3gPM.js → utils-ChZNfG5_.js} +1 -1
- package/dist/{utils-BiPEtEaV.js → utils-ClAXyRqf.js} +4 -5
- package/dist/{utils-B6TRzLRs.js → utils-Do6-kryk.js} +3 -3
- package/dist/utils-VV2acmQG.js +49 -0
- package/dist/{validate-Dt3Xmp_L.js → validate-BHOzYoxU.js} +26 -2
- package/dist/{validate-BN38Qq-w.js → validate-D5990ODb.js} +20 -9
- package/dist/{validate-D3JIeysp.js → validate-Dtiozjlb.js} +4 -4
- package/dist/{validate-_7WKym8c.js → validate-NJNmUaTh.js} +11 -5
- package/dist/{validateExtractionResult-IRRMwcNi.js → validateExtractionResult-D3AuQo5-.js} +3 -3
- package/package.json +6 -5
- package/dist/Image-CxnjHtP1.js +0 -33
- package/dist/List-qvNxW9lm.js +0 -72
- package/dist/StateField-BBGSo1NG.js +0 -296
- package/dist/en-US-U0d3NI20.js +0 -7
- package/dist/mapJpAddressSchemaToAddressLocalizations-kHaGv8kC.js +0 -75
- package/dist/mapLegalEntityToIndividualSchema-D6qGKj-2.js +0 -254
- package/dist/trustMemberGuidance-BpeDHAJP.js +0 -27
- package/dist/types/components/Shared/NewSummary/NewSummary.d.ts +0 -10
- package/dist/types/components/Shared/Summary/summaryItem.d.ts +0 -17
- package/dist/types/components/Shared/forms/Address/localized/jp/jpAddressSchema.d.ts +0 -17
- package/dist/unincorporatedPartnership-BbNowjM2.js +0 -11
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "6e6cbaa8-950f-4632-850d-212507650d09", e._sentryDebugIdIdentifier = "sentry-dbid-6e6cbaa8-950f-4632-850d-212507650d09");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-CxeMoCm4.js";
|
|
6
6
|
import { s as getOwnEntityAssociations } from "./entityAssociationUtil-BlfcBl3i.js";
|
|
7
|
-
import {
|
|
8
|
-
import { i as useToggleContext } from "./Checkbox-
|
|
7
|
+
import { t as TrustMemberTypes } from "./trustMemberType-Ix2sf6e_.js";
|
|
8
|
+
import { i as useToggleContext } from "./Checkbox-DXF-eRBj.js";
|
|
9
9
|
import { n as useAssociatedLegalEntity } from "./getFormSlice-CxtXJ0-P.js";
|
|
10
10
|
import { n as getLegalEntityNameBasedOnType } from "./getName-Cii7OyRd.js";
|
|
11
11
|
import { useMemo } from "preact/hooks";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "de873b08-dc8b-403d-8d87-388cf38f1112", e._sentryDebugIdIdentifier = "sentry-dbid-de873b08-dc8b-403d-8d87-388cf38f1112");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-CxeMoCm4.js";
|
|
6
6
|
import { s as getOwnEntityAssociations } from "./entityAssociationUtil-BlfcBl3i.js";
|
|
7
7
|
import { n as useAssociatedLegalEntity } from "./getFormSlice-CxtXJ0-P.js";
|
|
8
|
-
import { t as UnincorporatedPartnershipMemberTypes } from "./unincorporatedPartnership-
|
|
8
|
+
import { t as UnincorporatedPartnershipMemberTypes } from "./unincorporatedPartnership-CiU2fnqv.js";
|
|
9
9
|
import { n as getLegalEntityNameBasedOnType } from "./getName-Cii7OyRd.js";
|
|
10
10
|
import { useMemo } from "preact/hooks";
|
|
11
11
|
//#region src/components/UnincorporatedPartnership/utils/unincorporatedPartnershipMembers.ts
|
|
@@ -2,7 +2,7 @@ try {
|
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "4acb2c32-46dc-41f9-9021-5f6fe840121e", e._sentryDebugIdIdentifier = "sentry-dbid-4acb2c32-46dc-41f9-9021-5f6fe840121e");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { t as getCapabilities } from "./processCapabilities-
|
|
5
|
+
import { t as getCapabilities } from "./processCapabilities-B75YIdXZ.js";
|
|
6
6
|
//#region src/adaptiveWorkflow/utils/utils.ts
|
|
7
7
|
/** Read a value from a nested object using dot-notation path. */
|
|
8
8
|
function getNestedValue(obj, path) {
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "cb0b3cd8-6cdc-4d58-8762-b79dc27990d9", e._sentryDebugIdIdentifier = "sentry-dbid-cb0b3cd8-6cdc-4d58-8762-b79dc27990d9");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { t as getLegalEntityCountry } from "./getLegalEntityCountry-BK-HHa65.js";
|
|
6
6
|
import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
7
|
-
import { t as getCapabilities } from "./processCapabilities-
|
|
7
|
+
import { t as getCapabilities } from "./processCapabilities-B75YIdXZ.js";
|
|
8
8
|
import { d as hasOwnEntityAssociationOfType } from "./entityAssociationUtil-BlfcBl3i.js";
|
|
9
|
-
import { t as allowIndividualWithoutSoleProp } from "./accountHolderUtils-
|
|
10
|
-
import {
|
|
9
|
+
import { t as allowIndividualWithoutSoleProp } from "./accountHolderUtils-D0E9se-W.js";
|
|
10
|
+
import { a as TRUST_COUNTRIES, i as SOLE_PROP_COUNTRIES, t as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES } from "./legalArrangementUtils-CHlmmcB8.js";
|
|
11
11
|
//#region src/components/Shared/forms/BusinessTypeSelection/utils.ts
|
|
12
|
-
var TRUST_COUNTRIES = [CountryCodes.Australia, CountryCodes.NewZealand];
|
|
13
12
|
var BUSINESS_BANK_ACCOUNT_COUNTRIES = [
|
|
14
13
|
CountryCodes.UnitedStates,
|
|
15
14
|
CountryCodes.UnitedKingdom,
|
|
@@ -4,9 +4,9 @@ try {
|
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
6
|
import { t as Typography } from "./Typography-CAc_f5Iq.js";
|
|
7
|
-
import { t as Button } from "./Button-
|
|
8
|
-
import { i as useAnalyticsContext, t as Modal } from "./Modal-
|
|
9
|
-
import { t as useId } from "./useId-
|
|
7
|
+
import { t as Button } from "./Button-BYafPrZH.js";
|
|
8
|
+
import { i as useAnalyticsContext, t as Modal } from "./Modal-jjSjdW5W.js";
|
|
9
|
+
import { t as useId } from "./useId-ChrmzN7R.js";
|
|
10
10
|
import { useEffect, useState } from "preact/hooks";
|
|
11
11
|
import cx from "classnames";
|
|
12
12
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
try {
|
|
2
|
+
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "2243046f-174b-432d-95bf-59ab40382573", e._sentryDebugIdIdentifier = "sentry-dbid-2243046f-174b-432d-95bf-59ab40382573");
|
|
4
|
+
} catch (e) {}
|
|
5
|
+
import { f as addressFields } from "./StateField-CRLgYS1X.js";
|
|
6
|
+
import { t as capitalize } from "./getProps-DVqK7eRw.js";
|
|
7
|
+
//#region src/components/Shared/fields/RegistrationAndOperationalAddressFields/utils.ts
|
|
8
|
+
/**
|
|
9
|
+
* Parses the nested trusted fields on a legal entity e.g. ['registrationAddress.address', 'registrationAddress.postalCode'],
|
|
10
|
+
* rebuilding them into the flattened, prefixed fields for the addresses, e.g., `registrationAddress.address` -> `registrationAddressAddress`
|
|
11
|
+
*
|
|
12
|
+
* @param prefix - `registrationAddress` or `operationalAddress`
|
|
13
|
+
* @param trustedFields - trustedFields on legal entity
|
|
14
|
+
* @returns An array of the nested field keys that are trusted
|
|
15
|
+
*/
|
|
16
|
+
var getNestedTrustedFields = (prefix, trustedFields) => {
|
|
17
|
+
if (!trustedFields) return [];
|
|
18
|
+
const flattenedTrustedFields = [];
|
|
19
|
+
for (const trustedField of trustedFields) {
|
|
20
|
+
const [group, field] = trustedField.split(".");
|
|
21
|
+
if (group === prefix && field) flattenedTrustedFields.push(`${prefix}${capitalize(field)}`);
|
|
22
|
+
}
|
|
23
|
+
return flattenedTrustedFields;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Flattens a nested address schema using the provided prefix to avoid collisions so each
|
|
27
|
+
* field can be handled individually.
|
|
28
|
+
*
|
|
29
|
+
* `flattenAddressSchema('registrationAddress', { city: 'Chicago' })` -> `{ registrationAddressCity: 'Chicago' }`
|
|
30
|
+
*/
|
|
31
|
+
function flattenAddressSchema(prefix, address) {
|
|
32
|
+
const flattenedAddressSchema = {};
|
|
33
|
+
for (const field of addressFields) flattenedAddressSchema[`${prefix}${capitalize(field)}`] = address?.[field];
|
|
34
|
+
return flattenedAddressSchema;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Nests a flattened address schema, removing the provided prefix from each field. Used for
|
|
38
|
+
* utilities that still expect nested data.
|
|
39
|
+
*
|
|
40
|
+
* `flattenAddressSchema('registrationAddress', { registrationAddressCity: 'Chicago' })` -> `{ city: 'Chicago' }`
|
|
41
|
+
*/
|
|
42
|
+
function nestAddressSchema(prefix, flatData) {
|
|
43
|
+
const nestedAddressSchema = {};
|
|
44
|
+
for (const field of addressFields) nestedAddressSchema[field] = flatData?.[`${prefix}${capitalize(field)}`];
|
|
45
|
+
return nestedAddressSchema;
|
|
46
|
+
}
|
|
47
|
+
var getPrefixedAddressFieldNames = (prefix) => addressFields.map((field) => `${prefix}${capitalize(field)}`);
|
|
48
|
+
//#endregion
|
|
49
|
+
export { nestAddressSchema as i, getNestedTrustedFields as n, getPrefixedAddressFieldNames as r, flattenAddressSchema as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "1694fb0f-7879-4139-8940-8089d787074f", e._sentryDebugIdIdentifier = "sentry-dbid-1694fb0f-7879-4139-8940-8089d787074f");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { t as addressValidators } from "./validate-
|
|
5
|
+
import { t as addressValidators } from "./validate-NJNmUaTh.js";
|
|
6
6
|
import { t as capitalize } from "./getProps-DVqK7eRw.js";
|
|
7
7
|
//#region src/components/EFP/tasks/BusinessFinancingDropin/validate.ts
|
|
8
8
|
var validateLegalEntityIdentifier = (legalEntityIdentifier) => {
|
|
@@ -37,6 +37,30 @@ var businessFinancingCompanyDetailsValidations = {
|
|
|
37
37
|
},
|
|
38
38
|
errorMessage: "fieldIsRequired"
|
|
39
39
|
},
|
|
40
|
+
yearlyRevenue: {
|
|
41
|
+
modes: ["blur"],
|
|
42
|
+
validate: (value) => {
|
|
43
|
+
const numValue = Number(value);
|
|
44
|
+
return !Number.isNaN(numValue) && numValue >= 0;
|
|
45
|
+
},
|
|
46
|
+
errorMessage: "fieldIsRequired"
|
|
47
|
+
},
|
|
48
|
+
totalDebt: {
|
|
49
|
+
modes: ["blur"],
|
|
50
|
+
validate: (value) => {
|
|
51
|
+
const numValue = Number(value);
|
|
52
|
+
return !Number.isNaN(numValue) && numValue >= 0;
|
|
53
|
+
},
|
|
54
|
+
errorMessage: "fieldIsRequired"
|
|
55
|
+
},
|
|
56
|
+
cashPosition: {
|
|
57
|
+
modes: ["blur"],
|
|
58
|
+
validate: (value) => {
|
|
59
|
+
const numValue = Number(value);
|
|
60
|
+
return !Number.isNaN(numValue) && numValue >= 0;
|
|
61
|
+
},
|
|
62
|
+
errorMessage: "fieldIsRequired"
|
|
63
|
+
},
|
|
40
64
|
financialReportingDate: {
|
|
41
65
|
modes: ["blur"],
|
|
42
66
|
validate: (value) => validateDateNotInTheFuture(value),
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "1627250c-1267-4439-bc77-0dbbad4d1f0a", e._sentryDebugIdIdentifier = "sentry-dbid-1627250c-1267-4439-bc77-0dbbad4d1f0a");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
|
-
import {
|
|
6
|
+
import { _t as useLocalStorage, ot as isEmpty } from "./resolveEnvironment-CpWP_8og.js";
|
|
7
7
|
import { t as createLogger } from "./logger-Z8AeTE4x.js";
|
|
8
8
|
import { r as httpPost, s as useApiContext } from "./http-C8rt2BZk.js";
|
|
9
9
|
import { t as useSettingsContext } from "./useSettingsContext-Bpf4UqRT.js";
|
|
10
10
|
import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
11
|
-
import { i as useToggleContext } from "./Checkbox-
|
|
12
|
-
import { i as useAnalyticsContext, r as KEYBOARD_KEYS } from "./Modal-
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
11
|
+
import { i as useToggleContext } from "./Checkbox-DXF-eRBj.js";
|
|
12
|
+
import { i as useAnalyticsContext, r as KEYBOARD_KEYS } from "./Modal-jjSjdW5W.js";
|
|
13
|
+
import { a as resolveFieldMetadata, i as convertFullToHalf } from "./unincorporatedPartnership-CiU2fnqv.js";
|
|
14
|
+
import { p as isJapanLocalizationEnabled } from "./StateField-CRLgYS1X.js";
|
|
15
|
+
import { T as validateJaKanaLegalCompanyName, u as CountryField, w as validateJaHaniLegalCompanyName } from "./dropinUtils-DfyQ8xFE.js";
|
|
16
|
+
import { b as toFullWidth } from "./bafinUtils-CvQzDDfD.js";
|
|
17
|
+
import { a as defaultFieldMetadata, i as defaultFieldConfigV4, o as defaultFieldMetadataV4, r as defaultFieldConfig, s as getLegalCompanyNameGuidanceText, t as LEGAL_COMPANY_NAME_FIELD } from "./LegalCompanyNameField-Yj5Fa3-I.js";
|
|
17
18
|
import { useEffect, useState } from "preact/hooks";
|
|
18
19
|
import { jsx } from "preact/jsx-runtime";
|
|
19
20
|
import { queryOptions, skipToken, useMutation, useQuery, useQueryClient } from "@tanstack/preact-query";
|
|
@@ -37,6 +38,16 @@ var useClearCompanyData = (options) => {
|
|
|
37
38
|
});
|
|
38
39
|
};
|
|
39
40
|
//#endregion
|
|
41
|
+
//#region src/hooks/useStoredStateOrProvince.ts
|
|
42
|
+
var getStoredStateOrProvinceKey = (legalEntityId) => `STATE_OR_PROVINCE-${legalEntityId}`;
|
|
43
|
+
var useStoredStateOrProvince = ({ legalEntityId }) => {
|
|
44
|
+
const [storedStateOrProvince, setStoredStateOrProvince] = useLocalStorage(getStoredStateOrProvinceKey(legalEntityId), void 0);
|
|
45
|
+
return {
|
|
46
|
+
storedStateOrProvince,
|
|
47
|
+
setStoredStateOrProvince
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
//#endregion
|
|
40
51
|
//#region src/utils/performance.ts
|
|
41
52
|
/**
|
|
42
53
|
* Start timing an operation
|
|
@@ -438,4 +449,4 @@ var CountryOfGoverningLawFieldValidation = () => ({ countryOfGoverningLaw: {
|
|
|
438
449
|
errorMessage: "fieldIsRequired"
|
|
439
450
|
} });
|
|
440
451
|
//#endregion
|
|
441
|
-
export { CountryOfGoverningLawField as a, useCompanyTypeExamples as c, companySearchQueryOptions as d, useCompanySearch as f, COUNTRY_OF_GOVERNING_LAW_FIELD as i, useCompanySelection as l,
|
|
452
|
+
export { CountryOfGoverningLawField as a, useCompanyTypeExamples as c, companySearchQueryOptions as d, useCompanySearch as f, useClearCompanyData as h, COUNTRY_OF_GOVERNING_LAW_FIELD as i, useCompanySelection as l, useStoredStateOrProvince as m, COUNTRY_OF_GOVERNING_LAW_POSSIBLE as n, useLegalCompanyNameField as o, trackPerformance as p, isNormalizedStringMatch as r, localizedLegalCompanyNameFieldConfig as s, CountryOfGoverningLawFieldValidation as t, verifyTinQueryOptions as u };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "92234f2d-d97b-4557-893a-96f8851e0b69", e._sentryDebugIdIdentifier = "sentry-dbid-92234f2d-d97b-4557-893a-96f8851e0b69");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
|
-
import { t as Icon } from "./Icon-
|
|
6
|
+
import { t as Icon } from "./Icon-jVvV1zXc.js";
|
|
7
7
|
import { t as Typography } from "./Typography-CAc_f5Iq.js";
|
|
8
8
|
import { t as Loader } from "./Loader-BDaKGf77.js";
|
|
9
|
-
import { n as IconButton } from "./Button-
|
|
10
|
-
import { i as useAnalyticsContext } from "./Modal-
|
|
9
|
+
import { n as IconButton } from "./Button-BYafPrZH.js";
|
|
10
|
+
import { i as useAnalyticsContext } from "./Modal-jjSjdW5W.js";
|
|
11
11
|
import { d as isNewlyUploadedFile } from "./documentUtils-6K3LdjjN.js";
|
|
12
12
|
import { useEffect } from "preact/hooks";
|
|
13
13
|
import cx from "classnames";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "b97bfbe5-d03d-426f-a63d-6bc81c286a08", e._sentryDebugIdIdentifier = "sentry-dbid-b97bfbe5-d03d-426f-a63d-6bc81c286a08");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import {
|
|
5
|
+
import { B as ADDRESS_VALID_CHAR_REGEX, G as NO_ALPHABET_REGEX, K as NO_ALPHABET_UNICODE_REGEX, V as EMOJI_REGEX, X as chomeAndBanchiValidator, ct as isInvalidName, dt as matchesRegex, it as hasText, nt as hasMaximumTwoRepeatedCharacters, rt as hasRepeatedCharacters, ut as isValidMinLength } from "./resolveEnvironment-CpWP_8og.js";
|
|
6
6
|
import { t as createLogger } from "./logger-Z8AeTE4x.js";
|
|
7
7
|
import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
8
|
-
import { n as countrySpecificFormatters } from "./InputDate-
|
|
8
|
+
import { n as countrySpecificFormatters } from "./InputDate-3rYzWzXX.js";
|
|
9
9
|
//#region src/utils/regex/postalCodePatterns.ts
|
|
10
10
|
var createRegExpByDigits = (digits) => new RegExp(`^\\d{${digits}}$`);
|
|
11
11
|
var postalCodePatterns = {
|
|
@@ -37,6 +37,7 @@ var postalCodePatterns = {
|
|
|
37
37
|
[CountryCodes.Luxembourg]: createRegExpByDigits(4),
|
|
38
38
|
[CountryCodes.Malaysia]: createRegExpByDigits(5),
|
|
39
39
|
[CountryCodes.Malta]: /^[A-Za-z]{2,3} ?\d{2}(?:\d{2})?$/,
|
|
40
|
+
[CountryCodes.Mexico]: createRegExpByDigits(5),
|
|
40
41
|
[CountryCodes.Monaco]: /^980\d{2}$/,
|
|
41
42
|
[CountryCodes.Netherlands]: /^(?:NL-)?[1-9]\d{3} ?(?:[ABCDEFGHIJKLMNOPQRTUVWXYZ][A-Z]|S[BCEFGHIJKLMNOPQRTUVWXYZ])$/,
|
|
42
43
|
[CountryCodes.NewZealand]: createRegExpByDigits(4),
|
|
@@ -49,7 +50,7 @@ var postalCodePatterns = {
|
|
|
49
50
|
[CountryCodes.Slovenia]: /^(SI-)?\d{4}$/,
|
|
50
51
|
[CountryCodes.Singapore]: createRegExpByDigits(6),
|
|
51
52
|
[CountryCodes.Spain]: /(?:0[1-9]|[1-4]\d|5[0-2])\d{3}/,
|
|
52
|
-
[CountryCodes.Sweden]:
|
|
53
|
+
[CountryCodes.Sweden]: /^(\d{3} \d{2}|\d{5})$/,
|
|
53
54
|
[CountryCodes.Switzerland]: /^[1-9]\d{3}$/,
|
|
54
55
|
[CountryCodes.UnitedKingdom]: /^[ABCDEFGHIJKLMNOPRSTUWYZ](?:[ABCDEFGHKLMNOPQRSTUVWXY][0-9][ABEHMNPRVWXY0-9]?|[0-9][ABCDEFGHJKPSTUW0-9]?)(?: ?[0-9][ABDEFGHJLNPQRSTUWXYZ]{1,2})?$/,
|
|
55
56
|
[CountryCodes.UnitedStates]: /^\d{5}(?:[ -]?\d{4})?$/
|
|
@@ -216,7 +217,12 @@ var addressValidationRulesV4 = (country, t) => {
|
|
|
216
217
|
errorMessage: "checkForTypos"
|
|
217
218
|
}
|
|
218
219
|
],
|
|
219
|
-
street2
|
|
220
|
+
street2,
|
|
221
|
+
dependentLocality: [{
|
|
222
|
+
modes: ["blur"],
|
|
223
|
+
validate: hasText,
|
|
224
|
+
errorMessage: "fieldIsRequired"
|
|
225
|
+
}]
|
|
220
226
|
};
|
|
221
227
|
};
|
|
222
228
|
var addressValidators = ({ isFeatureEnabled = () => false, country, t }) => ({ ...isFeatureEnabled?.("StrictNameAndAddressValidationV4") ? addressValidationRulesV4(country, t) : addressValidationRules(country) });
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "1708dfcc-d02e-41f9-9815-a79fce596743", e._sentryDebugIdIdentifier = "sentry-dbid-1708dfcc-d02e-41f9-9815-a79fce596743");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
6
|
import { t as createLogger } from "./logger-Z8AeTE4x.js";
|
|
7
7
|
import { t as Typography } from "./Typography-CAc_f5Iq.js";
|
|
8
|
-
import { n as IconButton, t as Button } from "./Button-
|
|
8
|
+
import { n as IconButton, t as Button } from "./Button-BYafPrZH.js";
|
|
9
9
|
import { r as httpPost, s as useApiContext } from "./http-C8rt2BZk.js";
|
|
10
10
|
import { a as objectsDeepEqual, c as valuesOf, s as keysOf } from "./genUtils-nphCwt1A.js";
|
|
11
|
-
import { t as localizeDateString } from "./localizeDateString-Dxlqr4rL.js";
|
|
12
11
|
import { t as Spacer } from "./Spacer-CEHRO4Ml.js";
|
|
12
|
+
import { t as localizeDateString } from "./localizeDateString-Dxlqr4rL.js";
|
|
13
13
|
import { useMemo } from "preact/hooks";
|
|
14
14
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
15
15
|
import { useMutation, useQuery } from "@tanstack/preact-query";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adyen/kyc-components",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.27.0-beta.1",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"adyen",
|
|
6
6
|
"adyen-for-platforms",
|
|
@@ -72,6 +72,7 @@
|
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
74
|
"@adyen/adyen-document-viewer": "^1.4.5",
|
|
75
|
+
"@adyen/adyen-shared-web": "0.4.0",
|
|
75
76
|
"@adyen/openbankingsdk": "^0.2.3",
|
|
76
77
|
"@adyen/ui-assets-icons-16": "^7.10.0",
|
|
77
78
|
"@preact/signals": "^2.11.1",
|
|
@@ -183,7 +184,7 @@
|
|
|
183
184
|
"build:cdn": "rm -rf dist-cdn && vite build --mode production-cdn && ./scripts/move-sourcemaps.sh && node ./scripts/ensureUniqueOutputNames.js",
|
|
184
185
|
"build:watch": "vite build --mode production --watch",
|
|
185
186
|
"contracts": "node scripts/contract-drift-check.ts",
|
|
186
|
-
"check:all": "concurrently \"pnpm types:check\" \"pnpm lint:quiet\" \"pnpm lint:styles:quiet\" \"pnpm format:check\" \"pnpm check:skills\" -n tsc,eslint,stylelint,format,skills -c cyan,magenta,yellow,blue,green",
|
|
187
|
+
"check:all": "VITE_CONFIG_NATIVE_IGNORE_WARNING=true concurrently \"pnpm types:check\" \"pnpm lint:quiet\" \"pnpm lint:styles:quiet\" \"pnpm format:check\" \"pnpm check:skills\" -n tsc,eslint,stylelint,format,skills -c cyan,magenta,yellow,blue,green",
|
|
187
188
|
"check:skills": "node scripts/verify-skills.ts",
|
|
188
189
|
"check:commits": "commitlint --from",
|
|
189
190
|
"check:commits:since-main": "pnpm check:commits main",
|
|
@@ -197,7 +198,7 @@
|
|
|
197
198
|
"format:check": "oxfmt --check",
|
|
198
199
|
"format:fix": "oxfmt --write",
|
|
199
200
|
"preview:e2e": "VITE_PLAYGROUND_BARE_UI=true vite preview --mode e2e",
|
|
200
|
-
"fix:all": "pnpm lint:fix && pnpm format:fix",
|
|
201
|
+
"fix:all": "VITE_CONFIG_NATIVE_IGNORE_WARNING=true pnpm lint:fix && pnpm format:fix",
|
|
201
202
|
"fix:lint": "pnpm lint:fix",
|
|
202
203
|
"lint:all": "concurrently \"pnpm lint\" \"pnpm lint:styles\" -p none",
|
|
203
204
|
"lint": "eslint --cache",
|
|
@@ -210,9 +211,9 @@
|
|
|
210
211
|
"lint:styles:quiet:fix": "pnpm lint:styles:fix --quiet",
|
|
211
212
|
"sentry:upload-sourcemaps": "bash ./scripts/upload-sentry-sourcemaps.sh",
|
|
212
213
|
"start": "pnpm dev",
|
|
213
|
-
"storybook": "storybook dev -p 6006 --no-version-updates",
|
|
214
|
+
"storybook": "VITE_CONFIG_NATIVE_IGNORE_WARNING=true storybook dev -p 6006 --no-version-updates",
|
|
214
215
|
"storybook:build": "storybook build",
|
|
215
|
-
"test": "vitest",
|
|
216
|
+
"test": "VITE_CONFIG_NATIVE_IGNORE_WARNING=true vitest",
|
|
216
217
|
"test:run": "vitest --run",
|
|
217
218
|
"test:coverage": "vitest --coverage",
|
|
218
219
|
"test:e2e": "NODE_OPTIONS=--no-experimental-strip-types playwright test --config=tests/playwright.e2e.config.ts",
|
package/dist/Image-CxnjHtP1.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
try {
|
|
2
|
-
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "cd0e7b13-b5c4-4b27-a649-d95d870bd7bd", e._sentryDebugIdIdentifier = "sentry-dbid-cd0e7b13-b5c4-4b27-a649-d95d870bd7bd");
|
|
4
|
-
} catch (e) {}
|
|
5
|
-
import { t as Loader } from "./Loader-BDaKGf77.js";
|
|
6
|
-
import { Suspense } from "preact/compat";
|
|
7
|
-
import { jsx } from "preact/jsx-runtime";
|
|
8
|
-
//#region src/components/ui/atoms/Image/Image.tsx
|
|
9
|
-
/**
|
|
10
|
-
* Tiny helper to display treeshakable images
|
|
11
|
-
*
|
|
12
|
-
* It needs to receive an import function to enable treeshaking
|
|
13
|
-
* this way other modules/exports have no knowledge of the image being imported
|
|
14
|
-
* *
|
|
15
|
-
* @example
|
|
16
|
-
* ```jsx
|
|
17
|
-
* <Image lazyLoadedImage={lazy(() => import('../local/path/my-image.svg?component'))} />
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @param importFn lazy with dynamic import with a path that contains ?component
|
|
21
|
-
*/
|
|
22
|
-
var Image = ({ lazyLoadedImage, alt, className }) => {
|
|
23
|
-
return /* @__PURE__ */ jsx(Suspense, {
|
|
24
|
-
fallback: /* @__PURE__ */ jsx(Loader, {}),
|
|
25
|
-
children: /* @__PURE__ */ jsx(lazyLoadedImage, {
|
|
26
|
-
"aria-label": alt,
|
|
27
|
-
className,
|
|
28
|
-
role: "img"
|
|
29
|
-
})
|
|
30
|
-
});
|
|
31
|
-
};
|
|
32
|
-
//#endregion
|
|
33
|
-
export { Image as t };
|
package/dist/List-qvNxW9lm.js
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
try {
|
|
2
|
-
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "1e5ac361-3e28-4412-9114-885100cbd2eb", e._sentryDebugIdIdentifier = "sentry-dbid-1e5ac361-3e28-4412-9114-885100cbd2eb");
|
|
4
|
-
} catch (e) {}
|
|
5
|
-
import cx from "classnames";
|
|
6
|
-
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
7
|
-
import { toChildArray } from "preact";
|
|
8
|
-
var List_module_default = {
|
|
9
|
-
list: "_list_s1vme_1",
|
|
10
|
-
"list-header": "_list-header_s1vme_8",
|
|
11
|
-
listHeader: "_list-header_s1vme_8",
|
|
12
|
-
"list-footer": "_list-footer_s1vme_15",
|
|
13
|
-
listFooter: "_list-footer_s1vme_15",
|
|
14
|
-
"list-items": "_list-items_s1vme_22",
|
|
15
|
-
listItems: "_list-items_s1vme_22",
|
|
16
|
-
"list-items-plain": "_list-items-plain_s1vme_27",
|
|
17
|
-
listItemsPlain: "_list-items-plain_s1vme_27",
|
|
18
|
-
"list-items-grouped-primary": "_list-items-grouped-primary_s1vme_31",
|
|
19
|
-
listItemsGroupedPrimary: "_list-items-grouped-primary_s1vme_31",
|
|
20
|
-
"list-items-grouped-secondary": "_list-items-grouped-secondary_s1vme_37",
|
|
21
|
-
listItemsGroupedSecondary: "_list-items-grouped-secondary_s1vme_37",
|
|
22
|
-
"list-items-padding-none": "_list-items-padding-none_s1vme_42",
|
|
23
|
-
listItemsPaddingNone: "_list-items-padding-none_s1vme_42",
|
|
24
|
-
"list-items-padding-small": "_list-items-padding-small_s1vme_46",
|
|
25
|
-
listItemsPaddingSmall: "_list-items-padding-small_s1vme_46",
|
|
26
|
-
"list-items-padding-medium": "_list-items-padding-medium_s1vme_50",
|
|
27
|
-
listItemsPaddingMedium: "_list-items-padding-medium_s1vme_50",
|
|
28
|
-
"list-items-padding-large": "_list-items-padding-large_s1vme_54",
|
|
29
|
-
listItemsPaddingLarge: "_list-items-padding-large_s1vme_54",
|
|
30
|
-
"list-item-row-separator": "_list-item-row-separator_s1vme_58",
|
|
31
|
-
listItemRowSeparator: "_list-item-row-separator_s1vme_58"
|
|
32
|
-
};
|
|
33
|
-
//#endregion
|
|
34
|
-
//#region src/components/ui/atoms/List/List.tsx
|
|
35
|
-
var List = ({ children, dividers = true, footer, header, padding = "medium", variant = "plain" }) => {
|
|
36
|
-
const childrenArray = toChildArray(children);
|
|
37
|
-
const listVariantStyles = {
|
|
38
|
-
plain: List_module_default.listItemsPlain,
|
|
39
|
-
"grouped-primary": List_module_default.listItemsGroupedPrimary,
|
|
40
|
-
"grouped-secondary": List_module_default.listItemsGroupedSecondary
|
|
41
|
-
};
|
|
42
|
-
const listClassName = cx(List_module_default.listItems, listVariantStyles[variant], variant !== "plain" && {
|
|
43
|
-
[List_module_default.listItemsPaddingSmall]: padding === "small",
|
|
44
|
-
[List_module_default.listItemsPaddingMedium]: padding === "medium",
|
|
45
|
-
[List_module_default.listItemsPaddingLarge]: padding === "large"
|
|
46
|
-
}, { [List_module_default.listItemsPaddingNone]: padding === "none" });
|
|
47
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
48
|
-
className: List_module_default.list,
|
|
49
|
-
children: [
|
|
50
|
-
header && /* @__PURE__ */ jsx("div", {
|
|
51
|
-
className: List_module_default.listHeader,
|
|
52
|
-
children: header
|
|
53
|
-
}),
|
|
54
|
-
/* @__PURE__ */ jsx("ul", {
|
|
55
|
-
className: listClassName,
|
|
56
|
-
children: childrenArray.map((item) => {
|
|
57
|
-
const itemClassname = cx(List_module_default.listItem, { [List_module_default.listItemRowSeparator]: dividers });
|
|
58
|
-
return /* @__PURE__ */ jsx("li", {
|
|
59
|
-
className: itemClassname,
|
|
60
|
-
children: item
|
|
61
|
-
});
|
|
62
|
-
})
|
|
63
|
-
}),
|
|
64
|
-
footer && /* @__PURE__ */ jsx("div", {
|
|
65
|
-
className: List_module_default.listFooter,
|
|
66
|
-
children: footer
|
|
67
|
-
})
|
|
68
|
-
]
|
|
69
|
-
});
|
|
70
|
-
};
|
|
71
|
-
//#endregion
|
|
72
|
-
export { List as t };
|