@adyen/kyc-components 4.4.0 → 4.5.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (316) hide show
  1. package/dist/{AcceptTermsOfServiceComponent-CtSxtBKi.js → AcceptTermsOfServiceComponent-CecGGc1X.js} +14 -14
  2. package/dist/{AccountSetupRejected-Izp48yEO.js → AccountSetupRejected-SKRfXM45.js} +1 -1
  3. package/dist/{ActionBar-Ca6J5mWK.js → ActionBar-NfqEa4Lj.js} +1 -1
  4. package/dist/{Address-D_vmsuPk.js → Address-DmC7K_9S.js} +10 -10
  5. package/dist/{Avatar-CKx8J5lx.js → Avatar-DkqYMxqu.js} +1 -1
  6. package/dist/{BusinessFinancingComponent-DaxARiGM.js → BusinessFinancingComponent-cYBfPHpF.js} +5 -5
  7. package/dist/{BusinessFinancingDropin-Dd2HLLMa.js → BusinessFinancingDropin-jEPDLEm2.js} +106 -143
  8. package/dist/{BusinessFinancingPage-BOejVYXh.js → BusinessFinancingPage-D_bJLl-t.js} +4 -4
  9. package/dist/{BusinessTypeSelectionPage-CTDOUjiA.js → BusinessTypeSelectionPage-CZeSwYus.js} +9 -9
  10. package/dist/{Checkbox-RZJnbRBZ.js → Checkbox-DEpPoJN_.js} +1 -1
  11. package/dist/{Confirm-DHTZz6n-.js → Confirm-CYgHkICM.js} +2 -2
  12. package/dist/{ConstitutionalDocument-CG6z6hOH.js → ConstitutionalDocument-DgivwkYj.js} +18 -18
  13. package/dist/{ContactDetails-X7roxa7M.js → ContactDetails-opl6-mP9.js} +7 -6
  14. package/dist/{ContextGuidance-DeZxHGha.js → ContextGuidance-gC4RuGIB.js} +1 -1
  15. package/dist/{CountryField-prWQNOFZ.js → CountryField-BNisulC2.js} +3 -3
  16. package/dist/{CreateIndividualComponent-Cr5P6AhY.js → CreateIndividualComponent-BaXw9qdQ.js} +5 -5
  17. package/dist/{CreateTransferInstrumentComponent-BUzLyFsB.js → CreateTransferInstrumentComponent-Dj0ENBoI.js} +4 -4
  18. package/dist/{Currency-BCTmbxvQ.js → Currency-C1POIMJZ.js} +9 -15
  19. package/dist/{CustomerSupport-BUSF6AeJ.js → CustomerSupport-BZYjtYIh.js} +10 -10
  20. package/dist/{DebugModal-DnwBnRrX.js → DebugModal-BfObi6jq.js} +7 -7
  21. package/dist/{DecisionMakerDetailsPage-l8dykx5K.js → DecisionMakerDetailsPage-B9TlNZ0D.js} +8 -8
  22. package/dist/{DecisionMakers-DwsykbVA.js → DecisionMakers-DH44nnKN.js} +20 -20
  23. package/dist/{Dropzone-BpVTBLdK.js → Dropzone-BbFC9YFN.js} +4 -4
  24. package/dist/{EmbeddedStatus-CiAT9LVT.js → EmbeddedStatus-C80N4YnY.js} +2 -2
  25. package/dist/{EndStateLayout-DmuB86Km.js → EndStateLayout-LuO-W__f.js} +1 -1
  26. package/dist/{EntityAssociation-B2agfeew.js → EntityAssociation-CqyEchYv.js} +4 -4
  27. package/dist/{EntityGuidanceStatus-ByQeAaJX.js → EntityGuidanceStatus-kD9uByJU.js} +3 -3
  28. package/dist/{ErrorPanel-Dc-0FFlw.js → ErrorPanel-Wws7gA5m.js} +1 -1
  29. package/dist/{Field-BCh4RjjH.js → Field-BnYaQCpL.js} +1 -1
  30. package/dist/{FormNavigation-Dw9vBfOE.js → FormNavigation-DdP2rb2I.js} +3 -3
  31. package/dist/{Individual.rules-Df2tyewj.js → Individual.rules-BOr9HYuB.js} +10 -6
  32. package/dist/{IndividualDropin-ffk4cENA.js → IndividualDropin-DQrqvsVq.js} +377 -64
  33. package/dist/{InputDate-lBYns5ES.js → InputDate-D7tf-vyK.js} +1 -1
  34. package/dist/{InputText-cE4sdkOF.js → InputText-DJmeZHiM.js} +2 -2
  35. package/dist/{Introduction-BLHqyzh4.js → Introduction-C5ZzdtBf.js} +4 -4
  36. package/dist/{JpAddress-DgMxCxUO.js → JpAddress-BLSFMUBF.js} +9 -9
  37. package/dist/{LandingLayout-DO4D3GZF.js → LandingLayout-DCtOMPr1.js} +1 -1
  38. package/dist/{LegalCompanyNameField-C2V3zE5H.js → LegalCompanyNameField-C4QSM1kF.js} +6 -6
  39. package/dist/{LegalRepresentativeDetailsPage-C-fi8ExM.js → LegalRepresentativeDetailsPage-BNnoUySl.js} +4 -4
  40. package/dist/{Link-C53bmm0L.js → Link-DHZbclel.js} +1 -1
  41. package/dist/{ListItem-DPoOuxMs.js → ListItem-DRdYYUwm.js} +2 -2
  42. package/dist/{LoaderWrapper-CyNmE5d5.js → LoaderWrapper-DbnjDZaG.js} +1 -1
  43. package/dist/{ManageIndividualComponent-D2TaeVp-.js → ManageIndividualComponent-B8NRYoKJ.js} +4 -4
  44. package/dist/{ManageTermsOfServiceComponent-B06SqV2S.js → ManageTermsOfServiceComponent-BhqRq0Vj.js} +3 -3
  45. package/dist/{ManageTransferInstrumentComponent-CD5CeLd4.js → ManageTransferInstrumentComponent-Cn_V6mz7.js} +14 -12
  46. package/dist/{MaskedInput-BiyWZvf9.js → MaskedInput-Bmnp6vfE.js} +4 -4
  47. package/dist/{MaybeModal-CQ9Nwb5m.js → MaybeModal-JqIe8Hi4.js} +2 -2
  48. package/dist/{Modal-B2axEGgw.js → Modal-C4g499L3.js} +15 -25
  49. package/dist/{Name-DF_giEzW.js → Name-BAP43zgz.js} +4 -4
  50. package/dist/NewSummary-D04coEyZ.js +60 -0
  51. package/dist/{OnboardingDropinComponent-JrMNoZpj.js → OnboardingDropinComponent-CYZHcP1A.js} +73 -72
  52. package/dist/{PayoutDetailsDropin-CiUSUC71.js → PayoutDetailsDropin-CDOhcFNG.js} +37 -38
  53. package/dist/{PayoutDetailsPage-DqQzTo4c.js → PayoutDetailsPage-B6ObdKoo.js} +5 -5
  54. package/dist/{RadioGroup-DoV1tEJl.js → RadioGroup-Brbd7IGZ.js} +1 -1
  55. package/dist/{RadioGroupCard-9aQGW7JN.js → RadioGroupCard-CLjm3HWF.js} +1 -1
  56. package/dist/{Review-ai4kHVX1.js → Review-CUs3fAkl.js} +6 -6
  57. package/dist/{RootBusinessDetailsPage-DSkrHvsT.js → RootBusinessDetailsPage-DbQaq7S-.js} +4 -4
  58. package/dist/{RootBusinessLinesPage-A0Tr3mxD.js → RootBusinessLinesPage-ClrIGBCx.js} +73 -74
  59. package/dist/{RootIndividualDetailsPage-Bq6hAuWB.js → RootIndividualDetailsPage-C7NXtN3M.js} +5 -5
  60. package/dist/{Select-DpfHA9OG.js → Select-DeoKjJst.js} +4 -4
  61. package/dist/{SignPCIComponent-BQiuhLUm.js → SignPCIComponent-CBm2s71f.js} +10 -10
  62. package/dist/{SingpassSelection-DZllhRC7.js → SingpassSelection-D3GBr1C7.js} +6 -6
  63. package/dist/{SoleProprietorshipPage-dW52UoqY.js → SoleProprietorshipPage-3kI9hRjQ.js} +3 -3
  64. package/dist/{SourceOfFundsPage-CP1y52UZ.js → SourceOfFundsPage-BaN1Heuy.js} +37 -32
  65. package/dist/{StepProgressIndicator-CbH70qse.js → StepProgressIndicator-DTMH_ysU.js} +1 -1
  66. package/dist/{StoreProvider-mHLtWums.js → StoreProvider-CDvuKNZP.js} +18 -20
  67. package/dist/{Summary-D-nudpZf.js → Summary-DrjyVpAf.js} +9 -7
  68. package/dist/{TaxInformationField-b3yhWTWD.js → TaxInformationField-P4kd2RBf.js} +19 -24
  69. package/dist/{TaxReportingDropin-B-8GeWGr.js → TaxReportingDropin-DoLfjPDT.js} +14 -14
  70. package/dist/{TextArea-C0PzOf5N.js → TextArea-8HzHbl8a.js} +2 -2
  71. package/dist/{TileGroup-CKUlaXGR.js → TileGroup-C7pJdtfG.js} +2 -2
  72. package/dist/{TrustDetailsPage-Czk6U1Tc.js → TrustDetailsPage-CZxWlMFk.js} +31 -32
  73. package/dist/{TrustMemberCompanyPage-DXT3RepM.js → TrustMemberCompanyPage-ChlEiIX1.js} +4 -4
  74. package/dist/{TrustMemberIndividualPage-DWmPqSUW.js → TrustMemberIndividualPage-D0ErvJ2Q.js} +4 -4
  75. package/dist/{TrustMemberRoleAndTypePage-c23IPOaR.js → TrustMemberRoleAndTypePage--2DWDQYD.js} +21 -21
  76. package/dist/{TrustMembersOverview-BRNYhXYG.js → TrustMembersOverview-1pruZb7Q.js} +10 -10
  77. package/dist/{UnincorporatedPartnershipIndividualPage-CZVQg1Lm.js → UnincorporatedPartnershipIndividualPage-DY5POsz3.js} +4 -4
  78. package/dist/{UnincorporatedPartnershipMemberCompanyPage-D3GMfr2u.js → UnincorporatedPartnershipMemberCompanyPage-CVS8HujV.js} +4 -4
  79. package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-Dwi-t1pR.js → UnincorporatedPartnershipMemberRoleAndTypePage-BiWrP7jm.js} +11 -11
  80. package/dist/{UnincorporatedPartnershipMembersOverview-D-hiEWen.js → UnincorporatedPartnershipMembersOverview-CwihTjBJ.js} +7 -7
  81. package/dist/{VerificationErrorAlert-Bv13UiEj.js → VerificationErrorAlert-C5fltP_W.js} +2 -2
  82. package/dist/{ViewVerificationStatusComponent-8v5Nm_wk.js → ViewVerificationStatusComponent-THjhd99f.js} +2 -2
  83. package/dist/adyen-business-financing.js +2 -2
  84. package/dist/adyen-individual-configuration.js +2 -2
  85. package/dist/adyen-individual-status.js +2 -2
  86. package/dist/adyen-invited-decision-maker.js +7 -7
  87. package/dist/adyen-kyc-components.js +15 -15
  88. package/dist/adyen-onboarding.js +2 -2
  89. package/dist/adyen-terms-of-service-management.js +2 -2
  90. package/dist/adyen-terms-of-service-status.js +2 -2
  91. package/dist/adyen-transfer-instrument-configuration.js +2 -2
  92. package/dist/adyen-transfer-instrument-management.js +2 -2
  93. package/dist/adyen-verification-status.js +2 -2
  94. package/dist/{bafinUtils-pwkl8kSq.js → bafinUtils-BPLSJ1MR.js} +1 -1
  95. package/dist/{bg-BG-DyX-yYYI.js → bg-BG-BnwkqGm9.js} +2 -2
  96. package/dist/{bg-BG-DqRXdvRT.js → bg-BG-C6dSR1jk.js} +2 -2
  97. package/dist/bg-BG-DKld3x63.js +13 -0
  98. package/dist/{commonValidators-Q1vH12Fp.js → commonValidators-MPgcG-b2.js} +1 -1
  99. package/dist/{cs-CZ-CmPmY5GZ.js → cs-CZ-B6atm9_Q.js} +2 -2
  100. package/dist/cs-CZ-BBLagJI6.js +13 -0
  101. package/dist/{cs-CZ-BD5bYeuJ.js → cs-CZ-BeMYkFfD.js} +2 -2
  102. package/dist/{da-DK-DaINWU5x.js → da-DK-Cv6XUSoW.js} +2 -2
  103. package/dist/da-DK-D9FgPh5e.js +13 -0
  104. package/dist/{da-DK-h8DYQ_Iq.js → da-DK-mUuPR2YO.js} +2 -2
  105. package/dist/{de-DE-KqZs1FFF.js → de-DE-BplDsJEb.js} +2 -2
  106. package/dist/de-DE-Cg_RNIr-.js +13 -0
  107. package/dist/{de-DE-LQE_LFFL.js → de-DE-CwT6O212.js} +2 -2
  108. package/dist/{dropinUtils-cvPDQGkm.js → dropinUtils-CH5elK0n.js} +15 -14
  109. package/dist/{el-GR-DGbzdIL0.js → el-GR-BuAfpG6u.js} +2 -2
  110. package/dist/el-GR-ZRGBgvMu.js +13 -0
  111. package/dist/{el-GR-Bn45KMp-.js → el-GR-dRK7xHn2.js} +2 -2
  112. package/dist/{en-US-BtFr9JRa.js → en-US-DIlZD5Wh.js} +7 -1
  113. package/dist/{en-US-CEnwRsyr.js → en-US-UidrdpJ0.js} +2 -2
  114. package/dist/es-ES-BZiC4JWr.js +13 -0
  115. package/dist/{es-ES-DdGmXdxO.js → es-ES-Bh8k9Zx8.js} +2 -2
  116. package/dist/{es-ES-DzGJ9DrB.js → es-ES-DRsix_Xn.js} +2 -2
  117. package/dist/{et-EE-D5SNtVsM.js → et-EE-BBnYC5q8.js} +2 -2
  118. package/dist/{et-EE-JKt5dMOQ.js → et-EE-BXiYapXy.js} +2 -2
  119. package/dist/et-EE-D_NmrrzQ.js +13 -0
  120. package/dist/{fi-FI-n9XAQuIy.js → fi-FI-BftTiz0c.js} +2 -2
  121. package/dist/fi-FI-CEH4BfU3.js +13 -0
  122. package/dist/{fi-FI-CIYa9SyS.js → fi-FI-DhUeTfn1.js} +2 -2
  123. package/dist/{formUtils-Cu4r_cE7.js → formUtils-Bl8SBmWK.js} +3 -3
  124. package/dist/{fr-FR-iD1onxpA.js → fr-FR-C6jxjXAI.js} +2 -2
  125. package/dist/{fr-FR-l5z31r7i.js → fr-FR-CocDMzBc.js} +2 -2
  126. package/dist/fr-FR-NxOktkWc.js +13 -0
  127. package/dist/{getName-D92TbZE4.js → getName-C_u_P9U0.js} +1 -1
  128. package/dist/{getProblemsForEntity-Cn6NNpx3.js → getProblemsForEntity-BZRck7Nu.js} +1 -1
  129. package/dist/{hr-HR-CAqaI1xJ.js → hr-HR-B_TEU3r4.js} +2 -2
  130. package/dist/{hr-HR-BtowKWUi.js → hr-HR-D9OGeEuB.js} +2 -2
  131. package/dist/hr-HR-D_MUIhtx.js +13 -0
  132. package/dist/{hu-HU-CRpdELm_.js → hu-HU-CX83V9tu.js} +2 -2
  133. package/dist/{hu-HU-MHIPehPS.js → hu-HU-DjaoFDqm.js} +2 -2
  134. package/dist/hu-HU-LxStrFGU.js +13 -0
  135. package/dist/{iframeWidget-LYI4Hywy.js → iframeWidget-DRlrwi6o.js} +4 -4
  136. package/dist/{isEmpty-BtKNXm_E.js → isEmpty-JkZqLeJ_.js} +1 -1
  137. package/dist/{it-IT-BAvmkEF8.js → it-IT-B4bk2Xev.js} +2 -2
  138. package/dist/{it-IT-DkiyBNl6.js → it-IT-CXlaZNIj.js} +2 -2
  139. package/dist/it-IT-OppZz3gW.js +13 -0
  140. package/dist/{ja-JP-B0Ox3Ixh.js → ja-JP-A6ArIIZ8.js} +2 -2
  141. package/dist/ja-JP-CethQRoG.js +13 -0
  142. package/dist/{ja-JP-g6VOUGXZ.js → ja-JP-DK55NCZY.js} +1 -2
  143. package/dist/{japanSupportUtils-Cjg3HGeh.js → japanSupportUtils-B6aNrTga.js} +1 -1
  144. package/dist/{localizeDateString-iKn35I7t.js → localizeDateString-DJzFcyYr.js} +1 -1
  145. package/dist/lt-LT-CBTFJxth.js +13 -0
  146. package/dist/{lt-LT-DDs3ngzd.js → lt-LT-CfQUS8PP.js} +2 -2
  147. package/dist/{lt-LT-DWs-lYAv.js → lt-LT-ww192lYg.js} +2 -2
  148. package/dist/{lv-LV-CdCU8ZaR.js → lv-LV-CpHy-ZoF.js} +2 -2
  149. package/dist/lv-LV-DTaBIHLh.js +13 -0
  150. package/dist/{lv-LV-CmB2-IO5.js → lv-LV-DoKxsoVR.js} +2 -2
  151. package/dist/{mapExistingFile-DAKnbl3q.js → mapExistingFile-ebhAtDpQ.js} +4 -4
  152. package/dist/{mapJpAddressSchemaToAddressLocalizations-BwqkpwLG.js → mapJpAddressSchemaToAddressLocalizations-6-TZehkD.js} +2 -2
  153. package/dist/{mapLegalEntityToIndividualSchema-DHNvFq3z.js → mapLegalEntityToIndividualSchema-DV9h15hI.js} +4 -4
  154. package/dist/{mapTransferInstrumentToPayoutAccount-CFiPK7nF.js → mapTransferInstrumentToPayoutAccount-DtwUb1q5.js} +1 -1
  155. package/dist/{nl-NL-D7k3hkBl.js → nl-NL-BwWFlBOs.js} +2 -2
  156. package/dist/nl-NL-CYFznuWn.js +13 -0
  157. package/dist/{nl-NL-DV4NqPVW.js → nl-NL-J7XpCpQm.js} +2 -2
  158. package/dist/no-NO-BsEie1We.js +13 -0
  159. package/dist/{no-NO-B9618F4_.js → no-NO-CtDyNTm6.js} +2 -2
  160. package/dist/{no-NO-DOOgOJr1.js → no-NO-JWsSd7iY.js} +2 -2
  161. package/dist/{patternValidators-DHivz8FR.js → patternValidators-ORRO5SAA.js} +1 -1
  162. package/dist/pl-PL-BH_LPZJa.js +13 -0
  163. package/dist/{pl-PL-DqzUSnFK.js → pl-PL-CCX1rSGF.js} +2 -2
  164. package/dist/{pl-PL-Bvnak7w3.js → pl-PL-CLmmSNgn.js} +2 -2
  165. package/dist/{process-field-configurations-TVQJVhh6.js → process-field-configurations-Cb30tRmq.js} +3 -3
  166. package/dist/{pt-BR-BZkPZ0kK.js → pt-BR-BJOww8U1.js} +2 -2
  167. package/dist/pt-BR-C-YbDjn-.js +13 -0
  168. package/dist/{pt-BR-zuqB_CBf.js → pt-BR-D4BTdo_w.js} +2 -2
  169. package/dist/pt-PT-BTbVsews.js +13 -0
  170. package/dist/{pt-PT-DkfqmPrD.js → pt-PT-CL9VzmZE.js} +2 -2
  171. package/dist/{pt-PT-CFY1O_K0.js → pt-PT-DBZj2dDI.js} +2 -2
  172. package/dist/{resolveEnvironment-DRIoWKkq.js → resolveEnvironment-Btgj9fGu.js} +3 -3
  173. package/dist/ro-RO-C5PJhlmM.js +13 -0
  174. package/dist/{ro-RO-BEVRugNx.js → ro-RO-Cu1T3z6k.js} +2 -2
  175. package/dist/{ro-RO-7CJ4F5iB.js → ro-RO-DaU2--fX.js} +2 -2
  176. package/dist/{roleMetadata-23PazJen.js → roleMetadata-YdrYEXdt.js} +2 -2
  177. package/dist/{sk-SK-DubwJifw.js → sk-SK-B-1yRol7.js} +2 -2
  178. package/dist/{sk-SK-Bh7WfMNd.js → sk-SK-CEjJ-qZG.js} +2 -2
  179. package/dist/sk-SK-DO-AqRjE.js +13 -0
  180. package/dist/{sl-SI-CxGdSydw.js → sl-SI-BfO3xEJx.js} +2 -2
  181. package/dist/sl-SI-CJH14wbj.js +13 -0
  182. package/dist/{sl-SI-59OQIZ3f.js → sl-SI-C_4ajjU4.js} +2 -2
  183. package/dist/style.css +11 -9
  184. package/dist/styles-CLV89_hH.js +11 -9
  185. package/dist/{sv-SE-CgB54Aa4.js → sv-SE-CMLKzwtj.js} +2 -2
  186. package/dist/{sv-SE-CQWBP7n1.js → sv-SE-DKnUr7xo.js} +2 -2
  187. package/dist/sv-SE-ZsucW_Uj.js +13 -0
  188. package/dist/types/api/companySelection/useCompanySelection.d.ts +1 -1
  189. package/dist/types/api/invitations/invitations.types.d.ts +14 -0
  190. package/dist/types/api/invitations/useCreateInvitation.d.ts +14 -0
  191. package/dist/types/components/Apps/tasks/TaskList/types.d.ts +2 -2
  192. package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +2 -2
  193. package/dist/types/components/Business/forms/FinancialInformation/FinancialInformation.d.ts +1 -1
  194. package/dist/types/components/Business/forms/FinancialInformation/mapping/mapFinancialInformationToFinancialReport.d.ts +1 -1
  195. package/dist/types/components/Business/forms/FinancialInformation/types.d.ts +7 -17
  196. package/dist/types/components/Business/forms/rules.d.ts +0 -1
  197. package/dist/types/components/Business/utils/useCompanySearchExperiments.d.ts +0 -1
  198. package/dist/types/components/BusinessLines/tasks/utils.d.ts +4 -4
  199. package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +2607 -2607
  200. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingFinancialInformation.d.ts +1 -1
  201. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +4 -4
  202. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +4 -5
  203. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/validate.d.ts +1 -1
  204. package/dist/types/components/Individual/forms/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +2 -2
  205. package/dist/types/components/Individual/forms/IdDocumentUpload/types.d.ts +2 -2
  206. package/dist/types/components/Individual/forms/IdVerificationMethod/validateExtractionResult.d.ts +2 -2
  207. package/dist/types/components/Individual/forms/Individual.d.ts +5 -0
  208. package/dist/types/components/Individual/forms/Individual.rules.d.ts +1 -0
  209. package/dist/types/components/Individual/forms/Individual.types.d.ts +2 -0
  210. package/dist/types/components/Individual/forms/InviteDetails/InviteDetails.d.ts +4 -0
  211. package/dist/types/components/Individual/forms/InviteDetails/InviteDetails.types.d.ts +13 -0
  212. package/dist/types/components/Individual/forms/InviteDetails/validate.d.ts +3 -0
  213. package/dist/types/components/Individual/forms/form-ids.d.ts +1 -1
  214. package/dist/types/components/Shared/FormNavigation/types.d.ts +2 -2
  215. package/dist/types/components/Shared/FormWrapper/FormWrapper.d.ts +2 -2
  216. package/dist/types/components/Shared/NewSummary/NewSummary.d.ts +1 -1
  217. package/dist/types/components/Shared/fields/Currency/fieldConfig.d.ts +3 -0
  218. package/dist/types/components/Shared/fields/Currency/types.d.ts +1 -1
  219. package/dist/types/components/Shared/fields/FinancialReportingDate/fieldConfig.d.ts +3 -0
  220. package/dist/types/components/Shared/fields/IdFieldTypeSelector/CompanyRegistrationNumberTypeSelector.d.ts +2 -2
  221. package/dist/types/components/Shared/fields/IdFieldTypeSelector/VatNumberTypeSelector.d.ts +2 -2
  222. package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +5 -5
  223. package/dist/types/components/Shared/fields/NumberOfEmployees/fieldConfig.d.ts +3 -0
  224. package/dist/types/components/Shared/fields/ReportedValueOptionField/ReportedValueOptionField.d.ts +3 -0
  225. package/dist/types/components/Shared/fields/ReportedValueOptionField/fieldConfig.d.ts +5 -0
  226. package/dist/types/components/Shared/fields/ReportedValueOptionField/types.d.ts +10 -0
  227. package/dist/types/components/Shared/forms/Address/types.d.ts +3 -3
  228. package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
  229. package/dist/types/components/Shared/forms/BusinessTypeSelection/types.d.ts +6 -6
  230. package/dist/types/components/Shared/forms/DocumentUpload/types.d.ts +2 -2
  231. package/dist/types/components/Shared/forms/RegistrationAddress/types.d.ts +2 -2
  232. package/dist/types/components/Trust/utils/trustMemberGuidance.d.ts +2 -2
  233. package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipMembers/types.d.ts +2 -2
  234. package/dist/types/components/ui/atoms/RadioGroup/RadioGroup.d.ts +2 -2
  235. package/dist/types/components/ui/molecules/Dropzone/FilePicker.d.ts +2 -2
  236. package/dist/types/components/ui/molecules/Dropzone/types.d.ts +2 -2
  237. package/dist/types/context/ExperimentContext/types.d.ts +0 -4
  238. package/dist/types/core/models/api/financialReport.d.ts +7 -1
  239. package/dist/types/core/user-events.d.ts +1 -1
  240. package/dist/types/embeds/business-financing/adyen-business-financing.types.d.ts +5 -0
  241. package/dist/types/embeds/individual-configuration/adyen-individual-configuration.types.d.ts +5 -0
  242. package/dist/types/embeds/individual-status/adyen-individual-status.types.d.ts +5 -0
  243. package/dist/types/embeds/invited-decision-maker/adyen-invited-decision-maker.types.d.ts +5 -0
  244. package/dist/types/embeds/onboarding/adyen-onboarding.types.d.ts +5 -0
  245. package/dist/types/embeds/terms-of-service-management/adyen-terms-of-service-management.types.d.ts +5 -0
  246. package/dist/types/embeds/terms-of-service-status/adyen-terms-of-service-status.types.d.ts +5 -0
  247. package/dist/types/embeds/transfer-instrument-configuration/adyen-transfer-instrument-configuration.types.d.ts +5 -0
  248. package/dist/types/embeds/transfer-instrument-management/adyen-transfer-instrument-management.types.d.ts +5 -0
  249. package/dist/types/embeds/verification-status/adyen-verification-status.types.d.ts +5 -0
  250. package/dist/types/hooks/useForm/types.d.ts +3 -3
  251. package/dist/types/language/types.d.ts +3 -8
  252. package/dist/types/language/utils.d.ts +2 -2
  253. package/dist/types/types/errors/error-message.d.ts +2 -2
  254. package/dist/types/types/errors/remediation.d.ts +2 -2
  255. package/dist/types/types/form-configuration.d.ts +2 -2
  256. package/dist/types/types/form.d.ts +2 -2
  257. package/dist/types/utils/decisionMaker.d.ts +2 -2
  258. package/dist/types/utils/entityStatusUtil.d.ts +1 -1
  259. package/dist/types/utils/fieldConfigurations.d.ts +2 -2
  260. package/dist/types/utils/formUtils.d.ts +4 -3
  261. package/dist/types/utils/roleMetadata.d.ts +4 -4
  262. package/dist/{types-DW90uFG-.js → types-DItwm0zf.js} +2 -2
  263. package/dist/{types-s-Q2XpkZ.js → types-DV-k9m0i.js} +1 -1
  264. package/dist/{types-CCxHnxb7.js → types-DhC6v0PF.js} +1 -1
  265. package/dist/{types-DP1DvIeR.js → types-_ugkpUNx.js} +2 -6
  266. package/dist/{unincorporated-partnership-DPbAzJDe.js → unincorporated-partnership-CIe8e4wR.js} +1 -1
  267. package/dist/{useAssociatedLegalEntity-BEuHjBZz.js → useAssociatedLegalEntity-Cn5H9wTJ.js} +1 -1
  268. package/dist/{useBusinessDetailsData-BO8XWfJZ.js → useBusinessDetailsData-FR_NRvw9.js} +339 -313
  269. package/dist/{useCreateLegalEntity-Bk8GSKP1.js → useCreateLegalEntity-p2CrQlAX.js} +1 -1
  270. package/dist/{useForm-vad8DlLx.js → useForm-C8AWA3sh.js} +3 -3
  271. package/dist/{useFormContext-B5QKkdAI.js → useFormContext-C1SR24Ki.js} +7 -7
  272. package/dist/{FormWrapper-DBd93g5-.js → useGlobalData-CLlOpZnu.js} +66 -11
  273. package/dist/{useMultiForm-cC2wlHNB.js → useMultiForm-DPExov8c.js} +12 -6
  274. package/dist/{useOnboardingStatus-V-UqaVrD.js → useOnboardingStatus-BD-8KaSZ.js} +1 -1
  275. package/dist/{useScenarios-BbG9i_sD.js → useScenarios-DJzsH2gd.js} +1 -1
  276. package/dist/{useTermsOfServiceStatus-QeWE09L-.js → useTermsOfServiceStatus-CbE9Ro0N.js} +1 -1
  277. package/dist/{useToastContext-wDfBfnfF.js → useToastContext-D9-q58mO.js} +1 -1
  278. package/dist/{useUnincorporatedPartnershipMembers-qPE2KPx9.js → useUnincorporatedPartnershipMembers-DB6EK6uW.js} +4 -4
  279. package/dist/{useUpdateBusinessLines-Dt0n6cQU.js → useUpdateBusinessLines-1pywGJxr.js} +4 -4
  280. package/dist/{useUpdateLegalEntity-DZgtsmFg.js → useUpdateLegalEntity-BswSgPWT.js} +2 -2
  281. package/dist/{utils-DvL1qQJh.js → utils-B-6ygFSY.js} +3 -3
  282. package/dist/{utils-CXINiC_b.js → utils-BQ0Na9UT.js} +2 -2
  283. package/dist/{utils-t9bNKGqn.js → utils-CFBp4SLl.js} +1 -1
  284. package/dist/{utils-JAP5Kj4w.js → utils-D4c7_3F2.js} +6 -6
  285. package/dist/{utils-Cg8MDRUC.js → utils-DgFq9CIB.js} +1 -1
  286. package/dist/{validate-CkFqyHrv.js → validate-CdMI5st2.js} +5 -5
  287. package/dist/{validate-DmrKFNZ-.js → validate-D__xHxXc.js} +24 -12
  288. package/dist/{validationError-BZEfEJF0.js → validationError-NidfTgvm.js} +1 -1
  289. package/package.json +7 -17
  290. package/dist/bg-BG-CRbKoTLs.js +0 -13
  291. package/dist/cs-CZ-DR5Pfj3g.js +0 -13
  292. package/dist/da-DK-CG2NcTvu.js +0 -13
  293. package/dist/de-DE-NMS4xBab.js +0 -13
  294. package/dist/el-GR-DWM1mhuZ.js +0 -13
  295. package/dist/es-ES-BWe46jej.js +0 -13
  296. package/dist/et-EE-CylmXBkF.js +0 -13
  297. package/dist/fi-FI-larJ5zXy.js +0 -13
  298. package/dist/fr-FR-DVqpakkq.js +0 -13
  299. package/dist/hr-HR-C-Hn5lAD.js +0 -13
  300. package/dist/hu-HU-DynB7VhD.js +0 -13
  301. package/dist/it-IT-M7AqGzBo.js +0 -13
  302. package/dist/ja-JP-BcGZdMJa.js +0 -13
  303. package/dist/lt-LT-SQmafLDX.js +0 -13
  304. package/dist/lv-LV-B5Os0zqy.js +0 -13
  305. package/dist/nl-NL-BVRcJEzp.js +0 -13
  306. package/dist/no-NO-DlnsfTwn.js +0 -13
  307. package/dist/pl-PL-B-V8iF6C.js +0 -13
  308. package/dist/pt-BR-Bq41lr7C.js +0 -13
  309. package/dist/pt-PT-D-EPzKV-.js +0 -13
  310. package/dist/ro-RO-Dt2gs44k.js +0 -13
  311. package/dist/sk-SK-B6LcEArz.js +0 -13
  312. package/dist/sl-SI-DNbu8KiE.js +0 -13
  313. package/dist/sv-SE-DgMcRRS8.js +0 -13
  314. package/dist/types/api/utils/getLookupBaseUrl.d.ts +0 -9
  315. package/dist/useGlobalData-Btrs_29g.js +0 -68
  316. /package/dist/types/components/{Business/forms/FinancialInformation → Shared/fields/ReportedValueOptionField}/ReportedValue.d.ts +0 -0
@@ -8,7 +8,7 @@
8
8
  }
9
9
  ;
10
10
  import { useMutation } from "@tanstack/preact-query";
11
- import { b as useApiContext, h as httpPost } from "./StoreProvider-mHLtWums.js";
11
+ import { b as useApiContext, h as httpPost } from "./StoreProvider-CDvuKNZP.js";
12
12
  const createLegalEntity = async (legalEntityId, baseUrl, data) => {
13
13
  return httpPost(
14
14
  {
@@ -2,14 +2,14 @@
2
2
  {
3
3
  try {
4
4
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "fc8033e2-4931-47ab-a631-e2b0ce3a8c49", e._sentryDebugIdIdentifier = "sentry-dbid-fc8033e2-4931-47ab-a631-e2b0ce3a8c49");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "a7807e02-90ba-4e55-b8c1-85f2d68905e1", e._sentryDebugIdIdentifier = "sentry-dbid-a7807e02-90ba-4e55-b8c1-85f2d68905e1");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { useState, useCallback, useMemo, useReducer, useEffect } from "preact/hooks";
11
- import { m as createLogger, ax as isEmpty, b2 as doArraysMatch } from "./StoreProvider-mHLtWums.js";
12
- import { V as ValidationResult, o as omitKeys, a as addKeys } from "./utils-Cg8MDRUC.js";
11
+ import { m as createLogger, ax as isEmpty, b2 as doArraysMatch } from "./StoreProvider-CDvuKNZP.js";
12
+ import { V as ValidationResult, o as omitKeys, a as addKeys } from "./utils-DgFq9CIB.js";
13
13
  const logger = createLogger();
14
14
  const useAsyncValidator = (asyncRules) => {
15
15
  const [asyncValidationResults, setAsyncValidationResults] = useState({});
@@ -2,7 +2,7 @@
2
2
  {
3
3
  try {
4
4
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "2e39a492-5664-42bc-9144-9b6b9994cdc2", e._sentryDebugIdIdentifier = "sentry-dbid-2e39a492-5664-42bc-9144-9b6b9994cdc2");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "4032a977-480b-4586-ab47-3f6322507054", e._sentryDebugIdIdentifier = "sentry-dbid-4032a977-480b-4586-ab47-3f6322507054");
6
6
  } catch (e) {
7
7
  }
8
8
  }
@@ -10,13 +10,13 @@
10
10
  import { jsx, jsxs } from "preact/jsx-runtime";
11
11
  import { useMemo, useRef, useState, useContext } from "preact/hooks";
12
12
  import cx from "classnames";
13
- import { z as useAnalyticsContext, u as useTranslation, W as Button } from "./StoreProvider-mHLtWums.js";
14
- import { L as LoaderWrapper } from "./LoaderWrapper-CyNmE5d5.js";
15
- import { M as MaybeModal } from "./MaybeModal-CQ9Nwb5m.js";
13
+ import { z as useAnalyticsContext, u as useTranslation, W as Button } from "./StoreProvider-CDvuKNZP.js";
14
+ import { L as LoaderWrapper } from "./LoaderWrapper-DbnjDZaG.js";
15
+ import { M as MaybeModal } from "./MaybeModal-JqIe8Hi4.js";
16
16
  import { P as ProgressBar } from "./ProgressBar-B7gTQncy.js";
17
- import { F as FormRouterContextProvider } from "./dropinUtils-cvPDQGkm.js";
18
- import { C as Confirm } from "./Confirm-DHTZz6n-.js";
19
- import { S as Summary } from "./Summary-D-nudpZf.js";
17
+ import { F as FormRouterContextProvider } from "./dropinUtils-CH5elK0n.js";
18
+ import { C as Confirm } from "./Confirm-CYgHkICM.js";
19
+ import { S as Summary } from "./Summary-DrjyVpAf.js";
20
20
  import { createContext } from "preact";
21
21
  const FormContext = createContext(null);
22
22
  function FormContextProvider({
@@ -2,22 +2,27 @@
2
2
  {
3
3
  try {
4
4
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "4a04f4f3-9adf-45fe-9fc3-b024f12267f4", e._sentryDebugIdIdentifier = "sentry-dbid-4a04f4f3-9adf-45fe-9fc3-b024f12267f4");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "0acf0cdc-8aaf-4592-be6f-91e136550bff", e._sentryDebugIdIdentifier = "sentry-dbid-0acf0cdc-8aaf-4592-be6f-91e136550bff");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsxs, jsx } from "preact/jsx-runtime";
11
- import { useState } from "preact/hooks";
12
- import { u as useTranslation, z as useAnalyticsContext, J as useExperimentsContext, W as Button } from "./StoreProvider-mHLtWums.js";
13
- import { L as LoaderWrapper } from "./LoaderWrapper-CyNmE5d5.js";
14
- import { M as MaybeModal } from "./MaybeModal-CQ9Nwb5m.js";
15
- import { a as ModalContent, b as ModalHeader, c as ModalFooter } from "./Modal-B2axEGgw.js";
11
+ import { useContext, useState, useCallback, useMemo } from "preact/hooks";
12
+ import { bp as StateContext, u as useTranslation, z as useAnalyticsContext, J as useExperimentsContext, W as Button } from "./StoreProvider-CDvuKNZP.js";
13
+ import { L as LoaderWrapper } from "./LoaderWrapper-DbnjDZaG.js";
14
+ import { M as MaybeModal } from "./MaybeModal-JqIe8Hi4.js";
15
+ import { a as ModalContent, b as ModalHeader, c as ModalFooter } from "./Modal-C4g499L3.js";
16
16
  import { S as Spacer } from "./Spacer-BK3jDget.js";
17
- import { S as StepProgressIndicator } from "./StepProgressIndicator-CbH70qse.js";
18
- import { F as FormRouterContextProvider } from "./dropinUtils-cvPDQGkm.js";
19
- import { F as FormNavigation } from "./FormNavigation-Dw9vBfOE.js";
20
- import { s as summaryStep, S as Summary } from "./Summary-D-nudpZf.js";
17
+ import { S as StepProgressIndicator } from "./StepProgressIndicator-DTMH_ysU.js";
18
+ import { F as FormRouterContextProvider } from "./dropinUtils-CH5elK0n.js";
19
+ import { F as FormNavigation } from "./FormNavigation-DdP2rb2I.js";
20
+ import { s as summaryStep, S as Summary } from "./Summary-DrjyVpAf.js";
21
+ import { a as debounce } from "./debouncedInputEvent-Cv2S512Y.js";
22
+ function useStateContext() {
23
+ const context = useContext(StateContext);
24
+ return context;
25
+ }
21
26
  const FormWrapper = ({
22
27
  asModal = false,
23
28
  summary,
@@ -130,6 +135,56 @@ const FormWrapper = ({
130
135
  ] })
131
136
  ] });
132
137
  };
138
+ const ON_CHANGE_DEBOUNCE_DURATION = 200;
139
+ function useGlobalData() {
140
+ const { getData } = useStateContext();
141
+ return getData();
142
+ }
143
+ function useGlobalDataSlice(sliceId) {
144
+ const { dispatch, getData } = useStateContext();
145
+ const sliceData = getData()[sliceId];
146
+ const updateState = useCallback(
147
+ (updatedSlice) => dispatch({
148
+ type: "addToState",
149
+ value: {
150
+ ...updatedSlice,
151
+ dataStoreId: sliceId
152
+ }
153
+ // TODO merge SFValue and StateSlice types
154
+ }),
155
+ [sliceId]
156
+ );
157
+ const clearState = useCallback(
158
+ () => dispatch({
159
+ type: "removeFromState",
160
+ value: { dataStoreId: sliceId }
161
+ }),
162
+ [sliceId]
163
+ );
164
+ const updateStateSlice = useMemo(
165
+ // can this debounce be useDebounce?
166
+ () => debounce(updateState, ON_CHANGE_DEBOUNCE_DURATION),
167
+ [updateState]
168
+ );
169
+ const clearStateSlice = useMemo(
170
+ () => debounce(clearState, ON_CHANGE_DEBOUNCE_DURATION),
171
+ [clearState]
172
+ );
173
+ return { sliceData, updateStateSlice, clearStateSlice };
174
+ }
175
+ function useResetGlobalData() {
176
+ const { dispatch } = useStateContext();
177
+ return useCallback(
178
+ () => dispatch({
179
+ type: "resetState"
180
+ }),
181
+ [dispatch]
182
+ );
183
+ }
133
184
  export {
134
- FormWrapper as F
185
+ FormWrapper as F,
186
+ useGlobalData as a,
187
+ useResetGlobalData as b,
188
+ useStateContext as c,
189
+ useGlobalDataSlice as u
135
190
  };
@@ -2,15 +2,15 @@
2
2
  {
3
3
  try {
4
4
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "d274d1a3-6bdd-429b-9033-ae5b17c7569a", e._sentryDebugIdIdentifier = "sentry-dbid-d274d1a3-6bdd-429b-9033-ae5b17c7569a");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "937fccad-3781-4467-a269-eec433a68fa5", e._sentryDebugIdIdentifier = "sentry-dbid-937fccad-3781-4467-a269-eec433a68fa5");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { useCallback, useMemo, useReducer, useEffect } from "preact/hooks";
11
- import { ah as objectsDeepEqual, m as createLogger, ax as isEmpty } from "./StoreProvider-mHLtWums.js";
12
- import { V as ValidationResult } from "./utils-Cg8MDRUC.js";
13
- import { a as isNotEmptyValidator } from "./commonValidators-Q1vH12Fp.js";
11
+ import { ah as objectsDeepEqual, m as createLogger, ax as isEmpty } from "./StoreProvider-CDvuKNZP.js";
12
+ import { V as ValidationResult } from "./utils-DgFq9CIB.js";
13
+ import { a as isNotEmptyValidator } from "./commonValidators-MPgcG-b2.js";
14
14
  const omitKeys = (obj, omit) => Object.keys(obj).filter((k) => !omit.includes(k)).reduce((a, c) => {
15
15
  a[c] = obj[c];
16
16
  return a;
@@ -493,7 +493,7 @@ function reducer({
493
493
  ...clonedState.fieldProblems,
494
494
  [formName]: {
495
495
  ...clonedState.fieldProblems[formName],
496
- ...!clearFieldProblems && clonedState.fieldProblems[formName][key] ? { [key]: true } : {}
496
+ ...!clearFieldProblems && clonedState.fieldProblems?.[formName]?.[key] ? { [key]: true } : {}
497
497
  }
498
498
  }
499
499
  };
@@ -609,7 +609,13 @@ const useMultiFormAsyncValidator = (asyncRules) => {
609
609
  [asyncRules]
610
610
  );
611
611
  const triggerAsyncFormValidation = async (formName, state, selectedSchema) => {
612
- const asyncValidationResults = await (selectedSchema ?? state.requiredFields?.[formName])?.reduce(async (accPromise, fieldName) => {
612
+ const fields = selectedSchema ?? state.requiredFields?.[formName];
613
+ if (!fields?.length) {
614
+ return {
615
+ isValid: true
616
+ };
617
+ }
618
+ const asyncValidationResults = await fields.reduce(async (accPromise, fieldName) => {
613
619
  const acc = await accPromise;
614
620
  const asyncValidationResult = await triggerAsyncValidation(
615
621
  fieldName,
@@ -8,7 +8,7 @@
8
8
  }
9
9
  ;
10
10
  import { useQuery } from "@tanstack/preact-query";
11
- import { b as useApiContext, j as httpGet } from "./StoreProvider-mHLtWums.js";
11
+ import { b as useApiContext, j as httpGet } from "./StoreProvider-CDvuKNZP.js";
12
12
  const getOnboardingStatus = async (legalEntityId, baseUrl) => {
13
13
  return httpGet({
14
14
  baseUrl,
@@ -8,7 +8,7 @@
8
8
  }
9
9
  ;
10
10
  import { useQuery, skipToken } from "@tanstack/preact-query";
11
- import { b as useApiContext, ao as entriesOf, at as Scenarios, j as httpGet } from "./StoreProvider-mHLtWums.js";
11
+ import { b as useApiContext, ao as entriesOf, at as Scenarios, j as httpGet } from "./StoreProvider-CDvuKNZP.js";
12
12
  const getScenarios = async (legalEntityId, baseUrl, legalEntityType, countryCode) => {
13
13
  const scenarioParams = new URLSearchParams({
14
14
  countryCode,
@@ -8,7 +8,7 @@
8
8
  }
9
9
  ;
10
10
  import { useQuery } from "@tanstack/preact-query";
11
- import { b as useApiContext, j as httpGet } from "./StoreProvider-mHLtWums.js";
11
+ import { b as useApiContext, j as httpGet } from "./StoreProvider-CDvuKNZP.js";
12
12
  const getTermsOfServiceAcceptanceInfos = async (legalEntityId, baseUrl) => {
13
13
  return httpGet({
14
14
  baseUrl,
@@ -9,7 +9,7 @@
9
9
  ;
10
10
  import { useQueryClient } from "@tanstack/preact-query";
11
11
  import { useCallback, useContext } from "preact/hooks";
12
- import { m as createLogger, b as useApiContext, au as ToastContext } from "./StoreProvider-mHLtWums.js";
12
+ import { m as createLogger, b as useApiContext, au as ToastContext } from "./StoreProvider-CDvuKNZP.js";
13
13
  const logger = createLogger();
14
14
  const QUERIES_TO_INVALIDATE_WHEN_ROOT_LE_IS_INVALIDATED = [
15
15
  "businessLines",
@@ -8,10 +8,10 @@
8
8
  }
9
9
  ;
10
10
  import { useMemo } from "preact/hooks";
11
- import { L as LegalEntityTypes, ad as getOwnEntityAssociations, R as useLegalEntity, U as ROOT_LE } from "./StoreProvider-mHLtWums.js";
12
- import { u as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-BEuHjBZz.js";
13
- import { U as UnincorporatedPartnershipMemberTypes } from "./unincorporated-partnership-DPbAzJDe.js";
14
- import { g as getLegalEntityNameBasedOnType } from "./getName-D92TbZE4.js";
11
+ import { L as LegalEntityTypes, ad as getOwnEntityAssociations, R as useLegalEntity, U as ROOT_LE } from "./StoreProvider-CDvuKNZP.js";
12
+ import { u as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-Cn5H9wTJ.js";
13
+ import { U as UnincorporatedPartnershipMemberTypes } from "./unincorporated-partnership-CIe8e4wR.js";
14
+ import { g as getLegalEntityNameBasedOnType } from "./getName-C_u_P9U0.js";
15
15
  const getMemberOwnerId = (memberId, entityAssociations) => entityAssociations.find((association) => association.associatorId === memberId)?.legalEntityId;
16
16
  const convertEntityAssociationIntoUnincorporatedPartnershipMember = (association) => {
17
17
  if (association.entityType === LegalEntityTypes.INDIVIDUAL || association.entityType === LegalEntityTypes.ORGANIZATION)
@@ -2,18 +2,18 @@
2
2
  {
3
3
  try {
4
4
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "2920efc7-0636-4979-b161-1411fcc785c1", e._sentryDebugIdIdentifier = "sentry-dbid-2920efc7-0636-4979-b161-1411fcc785c1");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "c39df30c-329b-49c6-a355-e0d34d01b1ee", e._sentryDebugIdIdentifier = "sentry-dbid-c39df30c-329b-49c6-a355-e0d34d01b1ee");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { useQuery, useMutation } from "@tanstack/preact-query";
11
- import { b as useApiContext, j as httpGet, ax as isEmpty, u as useTranslation, J as useExperimentsContext, C as IconButton, h as httpPost } from "./StoreProvider-mHLtWums.js";
11
+ import { b as useApiContext, j as httpGet, ax as isEmpty, u as useTranslation, J as useExperimentsContext, C as IconButton, h as httpPost } from "./StoreProvider-CDvuKNZP.js";
12
12
  import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
13
13
  import { useRef, useMemo, useState, useEffect } from "preact/hooks";
14
- import { F as Field } from "./Field-BCh4RjjH.js";
14
+ import { F as Field } from "./Field-BnYaQCpL.js";
15
15
  import { L as List } from "./List-BAzyC6sw.js";
16
- import { S as Select } from "./Select-DpfHA9OG.js";
16
+ import { S as Select } from "./Select-DeoKjJst.js";
17
17
  import { signal } from "@preact/signals";
18
18
  const fetchIndustryCodes = async (legalEntityId, baseUrl, businessLineTypes2, locale) => {
19
19
  const results = await Promise.all(
@@ -8,8 +8,8 @@
8
8
  }
9
9
  ;
10
10
  import { useQueryClient, useMutation } from "@tanstack/preact-query";
11
- import { a as useInvalidateRootLegalEntity } from "./useToastContext-wDfBfnfF.js";
12
- import { b as useApiContext, h as httpPost } from "./StoreProvider-mHLtWums.js";
11
+ import { a as useInvalidateRootLegalEntity } from "./useToastContext-D9-q58mO.js";
12
+ import { b as useApiContext, h as httpPost } from "./StoreProvider-CDvuKNZP.js";
13
13
  const updateLegalEntity = async (rootLegalEntityId, baseUrl, data) => {
14
14
  return httpPost(
15
15
  {
@@ -2,15 +2,15 @@
2
2
  {
3
3
  try {
4
4
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "743f4150-84b1-4d53-8c7c-10cdbc8fc429", e._sentryDebugIdIdentifier = "sentry-dbid-743f4150-84b1-4d53-8c7c-10cdbc8fc429");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "63f6d0fd-3eab-429d-a823-24e60e20ddbd", e._sentryDebugIdIdentifier = "sentry-dbid-63f6d0fd-3eab-429d-a823-24e60e20ddbd");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsx } from "preact/jsx-runtime";
11
- import { L as LegalEntityTypes, O as Typography } from "./StoreProvider-mHLtWums.js";
11
+ import { L as LegalEntityTypes, O as Typography } from "./StoreProvider-CDvuKNZP.js";
12
12
  import { C as Currencies } from "./currency-CrdnaaDu.js";
13
- import { l as localizeDateString } from "./localizeDateString-iKn35I7t.js";
13
+ import { l as localizeDateString } from "./localizeDateString-DJzFcyYr.js";
14
14
  const formatCurrency = (amount, currency, locale) => {
15
15
  const { format } = new Intl.NumberFormat(
16
16
  locale,
@@ -2,13 +2,13 @@
2
2
  {
3
3
  try {
4
4
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "56e345e2-187c-4bcb-ae4c-12a48538b336", e._sentryDebugIdIdentifier = "sentry-dbid-56e345e2-187c-4bcb-ae4c-12a48538b336");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "87054414-5cbc-4a95-ab95-7d201b6965c7", e._sentryDebugIdIdentifier = "sentry-dbid-87054414-5cbc-4a95-ab95-7d201b6965c7");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { s as summaryItem } from "./summaryItem-CAQCQSkt.js";
11
- import { aa as CountryCodes } from "./StoreProvider-mHLtWums.js";
11
+ import { aa as CountryCodes } from "./StoreProvider-CDvuKNZP.js";
12
12
  const addressFields = [
13
13
  "address",
14
14
  "otherAddressInformation",
@@ -7,7 +7,7 @@
7
7
  }
8
8
  }
9
9
  ;
10
- import { aa as CountryCodes } from "./StoreProvider-mHLtWums.js";
10
+ import { aa as CountryCodes } from "./StoreProvider-CDvuKNZP.js";
11
11
  function getLocalizedIdDocumentTypeOptions(country) {
12
12
  switch (country) {
13
13
  case CountryCodes.Japan:
@@ -2,16 +2,16 @@
2
2
  {
3
3
  try {
4
4
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "044f895d-7f9c-4887-b62a-26d62de5184d", e._sentryDebugIdIdentifier = "sentry-dbid-044f895d-7f9c-4887-b62a-26d62de5184d");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "8097fc50-ef75-41a7-9e6b-c5359f96df41", e._sentryDebugIdIdentifier = "sentry-dbid-8097fc50-ef75-41a7-9e6b-c5359f96df41");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
- import { C as CompanyTypesValues } from "./bafinUtils-pwkl8kSq.js";
11
- import { a9 as getLegalEntityCountry, bC as getCapabilities, L as LegalEntityTypes, r as hasOwnEntityAssociationOfType, aa as CountryCodes } from "./StoreProvider-mHLtWums.js";
12
- import { d as allowIndividualWithoutSoleProp } from "./OnboardingDropinComponent-JrMNoZpj.js";
13
- import { S as SOLE_PROP_COUNTRIES } from "./Individual.rules-Df2tyewj.js";
14
- import { A as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES } from "./types-CCxHnxb7.js";
10
+ import { C as CompanyTypesValues } from "./bafinUtils-BPLSJ1MR.js";
11
+ import { a9 as getLegalEntityCountry, bC as getCapabilities, L as LegalEntityTypes, r as hasOwnEntityAssociationOfType, aa as CountryCodes } from "./StoreProvider-CDvuKNZP.js";
12
+ import { d as allowIndividualWithoutSoleProp } from "./OnboardingDropinComponent-CYZHcP1A.js";
13
+ import { S as SOLE_PROP_COUNTRIES } from "./Individual.rules-BOr9HYuB.js";
14
+ import { A as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES } from "./types-DhC6v0PF.js";
15
15
  const TRUST_COUNTRIES = [CountryCodes.Australia, CountryCodes.NewZealand];
16
16
  const BUSINESS_BANK_ACCOUNT_COUNTRIES = [
17
17
  CountryCodes.UnitedStates,
@@ -7,7 +7,7 @@
7
7
  }
8
8
  }
9
9
  ;
10
- import { ao as entriesOf } from "./StoreProvider-mHLtWums.js";
10
+ import { ao as entriesOf } from "./StoreProvider-CDvuKNZP.js";
11
11
  class ValidationResult {
12
12
  validationResults;
13
13
  constructor(results) {
@@ -2,14 +2,14 @@
2
2
  {
3
3
  try {
4
4
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "6a5be49f-d207-444a-8e48-a86b9d928fa8", e._sentryDebugIdIdentifier = "sentry-dbid-6a5be49f-d207-444a-8e48-a86b9d928fa8");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "8c23fdab-3ab0-4e07-9417-b6fd411ae821", e._sentryDebugIdIdentifier = "sentry-dbid-8c23fdab-3ab0-4e07-9417-b6fd411ae821");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import "@tanstack/preact-query";
11
- import { h as httpPost, ar as httpDelete, j as httpGet, m as createLogger, bp as StateContext, u as useTranslation, z as useAnalyticsContext, B as Icon, O as Typography, V as Loader, C as IconButton } from "./StoreProvider-mHLtWums.js";
12
- import { g as getLocalizedIdDocumentTypeOptions } from "./utils-t9bNKGqn.js";
11
+ import { h as httpPost, ar as httpDelete, j as httpGet, m as createLogger, bp as StateContext, u as useTranslation, z as useAnalyticsContext, B as Icon, O as Typography, V as Loader, C as IconButton } from "./StoreProvider-CDvuKNZP.js";
12
+ import { g as getLocalizedIdDocumentTypeOptions } from "./utils-CFBp4SLl.js";
13
13
  import { jsx, jsxs } from "preact/jsx-runtime";
14
14
  import cx from "classnames";
15
15
  import { useEffect } from "preact/hooks";
@@ -201,7 +201,7 @@ const createDocumentRequest = async ({
201
201
  type: entityType
202
202
  },
203
203
  type: documentType,
204
- description: description || `Document type: ${documentType}`
204
+ description
205
205
  };
206
206
  }
207
207
  return;
@@ -212,7 +212,7 @@ const createDocumentRequest = async ({
212
212
  type: entityType
213
213
  },
214
214
  type: documentType,
215
- description: description || `Document type: ${documentType}`,
215
+ description,
216
216
  attachments: page1ToUpload && page2ToUpload && encodedPage1 && encodedPage2 ? [
217
217
  createAttachment(encodedPage1, page1ToUpload.name, "front"),
218
218
  createAttachment(encodedPage2, page2ToUpload.name, "back")
@@ -2,12 +2,12 @@
2
2
  {
3
3
  try {
4
4
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "97465e0b-2937-4e75-8c61-a5a4e12d7b95", e._sentryDebugIdIdentifier = "sentry-dbid-97465e0b-2937-4e75-8c61-a5a4e12d7b95");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "7bf17450-cdb4-4422-b9e3-ac07f7089ae7", e._sentryDebugIdIdentifier = "sentry-dbid-7bf17450-cdb4-4422-b9e3-ac07f7089ae7");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
- import { aK as hasText } from "./StoreProvider-mHLtWums.js";
10
+ import { aK as hasText } from "./StoreProvider-CDvuKNZP.js";
11
11
  const validateLegalEntityIdentifier = (legalEntityIdentifier) => {
12
12
  if (!legalEntityIdentifier) {
13
13
  return true;
@@ -26,15 +26,21 @@ const businessFinancingCompanyDetailsValidations = {
26
26
  validate: (numberOfEmployees) => Number.isInteger(Number(numberOfEmployees)) && Number(numberOfEmployees) > 0,
27
27
  errorMessage: "atLeastOneEmployeeIsRequired"
28
28
  },
29
- netAssets: {
29
+ balanceSheetTotal: {
30
30
  modes: ["blur"],
31
- validate: (value) => !Number.isNaN(Number(value)),
32
- errorMessage: "pleaseEnterAValidNumber"
31
+ validate: (value) => {
32
+ const numValue = Number(value);
33
+ return !Number.isNaN(numValue) && numValue > 0;
34
+ },
35
+ errorMessage: "fieldIsRequired"
33
36
  },
34
37
  annualTurnover: {
35
38
  modes: ["blur"],
36
- validate: (value) => !Number.isNaN(Number(value)),
37
- errorMessage: "pleaseEnterAValidNumber"
39
+ validate: (value) => {
40
+ const numValue = Number(value);
41
+ return !Number.isNaN(numValue) && numValue > 0;
42
+ },
43
+ errorMessage: "fieldIsRequired"
38
44
  },
39
45
  financialReportingDate: {
40
46
  modes: ["blur"],
@@ -63,15 +69,21 @@ const businessFinancingParentCompanyDetailsValidations = {
63
69
  validate: (legalEntityIdentifier) => validateLegalEntityIdentifier(legalEntityIdentifier),
64
70
  errorMessage: "invalidFormat"
65
71
  },
66
- netAssets: {
72
+ balanceSheetTotal: {
67
73
  modes: ["blur"],
68
- validate: (value) => !Number.isNaN(Number(value)),
69
- errorMessage: "pleaseEnterAValidNumber"
74
+ validate: (value) => {
75
+ const numValue = Number(value);
76
+ return !Number.isNaN(numValue) && numValue > 0;
77
+ },
78
+ errorMessage: "fieldIsRequired"
70
79
  },
71
80
  annualTurnover: {
72
81
  modes: ["blur"],
73
- validate: (value) => !Number.isNaN(Number(value)),
74
- errorMessage: "pleaseEnterAValidNumber"
82
+ validate: (value) => {
83
+ const numValue = Number(value);
84
+ return !Number.isNaN(numValue) && numValue > 0;
85
+ },
86
+ errorMessage: "fieldIsRequired"
75
87
  },
76
88
  financialReportingDate: {
77
89
  modes: ["blur"],
@@ -7,7 +7,7 @@
7
7
  }
8
8
  }
9
9
  ;
10
- import { y as TaskTypes, ba as remediationPayoutApiKeyMapping, bb as remediationBusinessDetailsApiKeyMapping, bc as remediationIndividualApiKeyMapping } from "./StoreProvider-mHLtWums.js";
10
+ import { y as TaskTypes, ba as remediationPayoutApiKeyMapping, bb as remediationBusinessDetailsApiKeyMapping, bc as remediationIndividualApiKeyMapping } from "./StoreProvider-CDvuKNZP.js";
11
11
  import { a as assignToProp } from "./utils-DNSfZiio.js";
12
12
  const isMaintenanceModeError = (error) => error && typeof error === "object" && "messageCode" in error && error.messageCode === "maintenanceMode";
13
13
  const overrideKeyMapping = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/kyc-components",
3
- "version": "4.4.0",
3
+ "version": "4.5.0-beta.0",
4
4
  "keywords": [
5
5
  "adyen",
6
6
  "adyen-kyc",
@@ -100,22 +100,20 @@
100
100
  "wouter-preact": "^3.9.0"
101
101
  },
102
102
  "devDependencies": {
103
- "@adyen/bento-design-tokens": "^1.87.1",
103
+ "@adyen/bento-design-tokens": "^1.91.0",
104
104
  "@commitlint/cli": "^19.8.1",
105
105
  "@commitlint/config-conventional": "^19.8.1",
106
106
  "@commitlint/prompt-cli": "^19.8.1",
107
- "@eslint/compat": "^1.4.1",
108
107
  "@eslint/js": "^9.39.4",
109
108
  "@playwright/test": "^1.58.2",
110
109
  "@preact/eslint-plugin-signals": "^0.2.0",
111
110
  "@preact/preset-vite": "^2.10.3",
112
111
  "@sentry/bundler-plugin-core": "3.5.0",
113
112
  "@sentry/cli": "2.42.2",
114
- "@slack/types": "^2.19.0",
113
+ "@slack/types": "^2.20.1",
115
114
  "@storybook/addon-a11y": "10.1.10",
116
115
  "@storybook/addon-docs": "10.1.10",
117
116
  "@storybook/addon-vitest": "10.1.10",
118
- "@storybook/cli": "10.1.10",
119
117
  "@storybook/preact-vite": "10.1.10",
120
118
  "@tanstack/eslint-plugin-query": "^5.91.4",
121
119
  "@tanstack/preact-query-devtools": "^5.92.0",
@@ -128,11 +126,8 @@
128
126
  "@vitest/browser-playwright": "4.0.10",
129
127
  "@vitest/coverage-v8": "4.0.10",
130
128
  "@vitest/ui": "4.0.10",
131
- "chalk": "^5.6.2",
132
129
  "concurrently": "^9.2.1",
133
- "cross-env": "^7.0.3",
134
130
  "ctrf-cli": "^0.0.5",
135
- "dotenv": "^17.3.1",
136
131
  "eslint": "^9.39.4",
137
132
  "eslint-config-prettier": "^10.1.8",
138
133
  "eslint-import-resolver-typescript": "^4.4.4",
@@ -148,12 +143,11 @@
148
143
  "eslint-plugin-simple-import-sort": "^12.1.1",
149
144
  "eslint-plugin-testing-library": "^7.16.0",
150
145
  "eslint-plugin-unicorn": "^63.0.0",
151
- "happy-dom": "^20.8.3",
146
+ "happy-dom": "^20.8.9",
152
147
  "inquirer": "^12.11.1",
153
148
  "jsonc-eslint-parser": "^2.4.2",
154
149
  "msw": "2.7.3",
155
150
  "msw-storybook-addon": "^2.0.6",
156
- "openapi-typescript": "^7.13.0",
157
151
  "phone": "^3.1.71",
158
152
  "playwright-ctrf-json-reporter": "^0.0.27",
159
153
  "postcss": "^8.5.8",
@@ -172,7 +166,6 @@
172
166
  "stylelint-config-recommended-scss": "^14.1.0",
173
167
  "stylelint-config-sass-guidelines": "^12.1.0",
174
168
  "stylelint-scss": "^6.14.0",
175
- "svgo": "^4.0.1",
176
169
  "tsc-alias": "^1.8.16",
177
170
  "type-fest": "^4.41.0",
178
171
  "typescript": "^5.9.3",
@@ -198,7 +191,7 @@
198
191
  "analyze:bundle:cdn": "rollup-plugin-visualizer bundle-stats/report-cdn.json --filename bundle-stats/report-cdn.html --template sunburst --open",
199
192
  "build:npm": "rm -rf dist && pnpm types:build && vite build --mode production && vite-node ./scripts/ensureNoReactImportsInDist.ts",
200
193
  "build:demo": "rm -rf .demo && vite build --mode demo",
201
- "build:e2e": "rm -rf .e2e && cross-env VITE_PLAYGROUND_BARE_UI=true VITE_PLAYGROUND_NEW=true vite build --mode e2e",
194
+ "build:e2e": "rm -rf .e2e && VITE_PLAYGROUND_BARE_UI=true VITE_PLAYGROUND_NEW=true vite build --mode e2e",
202
195
  "build:cdn": "rm -rf dist-cdn && vite build --mode production-cdn && ./scripts/move-sourcemaps.sh && node ./scripts/ensureUniqueOutputNames.js",
203
196
  "build:watch": "vite build --mode production --watch",
204
197
  "check:all": "concurrently \"pnpm types:check\" \"pnpm lint:quiet\" \"pnpm lint:styles\" \"pnpm prettier\" -n tsc,eslint,stylelint,prettier -c cyan,magenta,yellow,blue",
@@ -210,8 +203,8 @@
210
203
  "demo": "pnpm build:demo && pnpm demo:serve",
211
204
  "demo:serve": "vite preview --mode demo",
212
205
  "dev": "concurrently \"vite dev\" \"pnpm types:watch\" -n vite,tsc -c green,cyan -k",
213
- "dev:e2e": "cross-env VITE_PLAYGROUND_BARE_UI=true VITE_PLAYGROUND_NEW=true vite dev --mode e2e",
214
- "preview:e2e": "cross-env VITE_PLAYGROUND_BARE_UI=true VITE_PLAYGROUND_NEW=true vite preview --mode e2e",
206
+ "dev:e2e": "VITE_PLAYGROUND_BARE_UI=true VITE_PLAYGROUND_NEW=true vite dev --mode e2e",
207
+ "preview:e2e": "VITE_PLAYGROUND_BARE_UI=true VITE_PLAYGROUND_NEW=true vite preview --mode e2e",
215
208
  "fix:all": "pnpm lint:fix && pnpm prettier:fix",
216
209
  "fix:lint": "pnpm lint:fix",
217
210
  "fix:prettier": "pnpm prettier:fix",
@@ -229,9 +222,6 @@
229
222
  "start": "pnpm dev",
230
223
  "storybook": "storybook dev -p 6006 --no-version-updates",
231
224
  "storybook:build": "storybook build",
232
- "svgo:all": "pnpm svgo:icons && pnpm svgo:images",
233
- "svgo:icons": "svgo --config=./assets/icons.svgo.conf.js --folder=./assets/icons",
234
- "svgo:images": "svgo --config=./assets/images.svgo.conf.js --folder=./assets/images -r",
235
225
  "test": "vitest",
236
226
  "test:run": "vitest --run",
237
227
  "test:coverage": "vitest --coverage",