@adyen/kyc-components 4.26.0-beta.1 → 4.27.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 (237) hide show
  1. package/dist/{AcceptTermsOfServiceWorkflow-Dqbo6l6E.js → AcceptTermsOfServiceWorkflow-CLxIT19W.js} +4 -4
  2. package/dist/{Accordion-BAdwrgCR.js → Accordion-CTQfC17W.js} +1 -1
  3. package/dist/{AccountSetupRejected-BiFdVnlI.js → AccountSetupRejected-Cuu1cHgb.js} +2 -2
  4. package/dist/{AdaptiveWorkflow-Cl6sIKYm.js → AdaptiveWorkflow-Du4hN8Ry.js} +22 -22
  5. package/dist/{AdaptiveWorkflowComponent-DTvjszP9.js → AdaptiveWorkflowComponent-CoOpFWm7.js} +5 -5
  6. package/dist/{AddressFields-DSJ_dDIS.js → AddressFields-Dzoa4PU5.js} +33 -72
  7. package/dist/{Avatar-C2zeqSSB.js → Avatar-yJfk9A6l.js} +1 -1
  8. package/dist/{BusinessFinancingDropin-BZsQMeo9.js → BusinessFinancingDropin-DP6b5D85.js} +123 -55
  9. package/dist/{BusinessFinancingPage-BilT7QB1.js → BusinessFinancingPage-BIGEXFdp.js} +6 -6
  10. package/dist/{BusinessRegistrationNumberField-CBEz-yoj.js → BusinessRegistrationNumberField-B2n9ugLK.js} +6 -6
  11. package/dist/{BusinessRegistrationNumberFieldGroup-CkoC1zF3.js → BusinessRegistrationNumberFieldGroup-BvKp9WMt.js} +6 -6
  12. package/dist/{BusinessTypeSelectionPage-CIO175KD.js → BusinessTypeSelectionPage-xRXq2lGM.js} +13 -13
  13. package/dist/{Button-Dwr6jvJZ.js → Button-BYafPrZH.js} +1 -1
  14. package/dist/{Checkbox-CpzEl3ji.js → Checkbox-qFA2J_1r.js} +8 -8
  15. package/dist/{ComponentGroup-BjjCPKWY.js → ComponentGroup-CyykPP2r.js} +3 -3
  16. package/dist/{ConstitutionalDocument-C_ZgPp87.js → ConstitutionalDocument-DzLLKoWV.js} +19 -26
  17. package/dist/{ContactDetails-DHHlpdct.js → ContactDetails-CcWafw_y.js} +5 -5
  18. package/dist/{ContextGuidance-SHSxyen7.js → ContextGuidance-gAsOnDqD.js} +3 -3
  19. package/dist/{CountryField-DUANNyWK.js → CountryField-Dxuy2L9C.js} +4 -4
  20. package/dist/{Currency-DFgCZFeZ.js → Currency-CAEcQwe6.js} +16 -10
  21. package/dist/{CustomerSupport-8Gp9EPcW.js → CustomerSupport-C1nrEyEr.js} +29 -16
  22. package/dist/{DateField-DfkL_Acw.js → DateField-D8GSp5fV.js} +4 -4
  23. package/dist/{DebugModal-DrmTRJup.js → DebugModal-Bwhnd1v5.js} +10 -10
  24. package/dist/{DecisionMakerDetails-DSuWWQR3.js → DecisionMakerDetails-DHsxYfa3.js} +79 -174
  25. package/dist/{DecisionMakerDetailsPage-DvaF8JWQ.js → DecisionMakerDetailsPage-DoisZYll.js} +9 -9
  26. package/dist/{DecisionMakers-HjFvfukQ.js → DecisionMakers-BD5J47Zs.js} +17 -18
  27. package/dist/{Dropzone-CM9xNqdS.js → Dropzone-CTz4GiZE.js} +7 -7
  28. package/dist/{EmailField-CIMaH5h8.js → EmailField-DoEYalIM.js} +4 -4
  29. package/dist/{EmbeddedStatus-4YjyzkcD.js → EmbeddedStatus-mdQsQfof.js} +2 -2
  30. package/dist/{EndStateLayout-C5Pqler-.js → EndStateLayout-B-M90Rnh.js} +2 -2
  31. package/dist/{EntityAssociation-mOKgAoTo.js → EntityAssociation-aB7bppFQ.js} +6 -6
  32. package/dist/{ErrorPanel-MWL7vQHx.js → ErrorPanel-CuoQueZk.js} +10 -17
  33. package/dist/{GlobalEntryModal-CLTA41r-.js → GlobalEntryModal-ZuajLl8B.js} +439 -298
  34. package/dist/{GlobalEntryPage-CxXk05KE.js → GlobalEntryPage-WrN5mVJe.js} +7 -8
  35. package/dist/{Icon-_YUEZg1p.js → Icon-jVvV1zXc.js} +1 -1
  36. package/dist/{IdentityNumber-DA8DOgxH.js → IdentityNumber-IDvVA7_z.js} +5 -5
  37. package/dist/{IdentityNumberFieldGroup-D4MTWr-z.js → IdentityNumberFieldGroup-CW8lJ6_d.js} +2 -2
  38. package/dist/{IdentityScreeningWorkflow-DfI-6mXR.js → IdentityScreeningWorkflow-TfHCTDlp.js} +12 -13
  39. package/dist/{IndividualDropin-B70zK0AA.js → IndividualDropin-MpaDWh9N.js} +147 -223
  40. package/dist/{IndustryCodeFieldGroup-CHPfvz-_.js → IndustryCodeFieldGroup-DsJF3GOE.js} +5 -5
  41. package/dist/{InputDate-BSxqqg_B.js → InputDate-Bmx3_p-j.js} +8 -4
  42. package/dist/{InputText-DIesIpnW.js → InputText-CGngUMdf.js} +2 -2
  43. package/dist/{Introduction--U4NyUxq.js → Introduction-Dt8pjcxt.js} +6 -6
  44. package/dist/{InvitedDecisionMakerComponent-DIBX_HRF.js → InvitedDecisionMakerComponent-1oXTODfv.js} +13 -14
  45. package/dist/{JpAddressFields-OgKOVHI0.js → JpAddressFields-DhzFwu0N.js} +9 -10
  46. package/dist/{LegalCompanyNameField-wgWJRR84.js → LegalCompanyNameField-BsY3tJfX.js} +5 -5
  47. package/dist/{LegalRepresentativeDetailsPage-BFtn7wzQ.js → LegalRepresentativeDetailsPage-C50GRV2l.js} +4 -4
  48. package/dist/{Link-D0Yqc2r0.js → Link-DwPkGikd.js} +1 -1
  49. package/dist/{ListItem-DY-qq1lS.js → ListItem-n927geYb.js} +2 -2
  50. package/dist/{Modal-C-T-spfu.js → Modal-ChWNV9yG.js} +3 -3
  51. package/dist/{Name-C8NOxqDE.js → Name-C8hhvQlN.js} +4 -4
  52. package/dist/{NumberField-CUGWeVc9.js → NumberField-C7vHy7Yz.js} +4 -4
  53. package/dist/{PatriotActDisclosure-CWcGyfuA.js → PatriotActDisclosure-CAvpE8su.js} +10 -10
  54. package/dist/{PayoutDetailsDropin-CZT8xUPC.js → PayoutDetailsDropin-ILM3oK4r.js} +41 -43
  55. package/dist/{PayoutDetailsPage-C54-v6yl.js → PayoutDetailsPage-DfZYYplh.js} +5 -5
  56. package/dist/{Review-CYIwvp62.js → Review-D_I4FUVw.js} +6 -6
  57. package/dist/{RootBusinessDetailsPage-CI8iAty4.js → RootBusinessDetailsPage-CoOUMflT.js} +4 -4
  58. package/dist/{RootBusinessLinesPage-ZPaIqKwi.js → RootBusinessLinesPage-DYz9wrU_.js} +22 -23
  59. package/dist/{RootIndividualDetailsPage-ApOJRs0B.js → RootIndividualDetailsPage-C42YybJq.js} +6 -6
  60. package/dist/{Select-DwuMMZWv.js → Select-BMGxcmZy.js} +92 -92
  61. package/dist/{SignPCIComponent-B4D4nPDO.js → SignPCIComponent-B4RkNT1l.js} +14 -14
  62. package/dist/{SingpassSelection-vy5Stz5H.js → SingpassSelection-Usq1Kdpp.js} +5 -5
  63. package/dist/{SoleProprietorshipPage-dyEpmmk3.js → SoleProprietorshipPage-tEf2zwhT.js} +4 -4
  64. package/dist/{SourceOfFundsPage-DgCWI7Ac.js → SourceOfFundsPage-BXG5weCA.js} +24 -24
  65. package/dist/{SourceOfFundsWorkflow-CdOOLWqA.js → SourceOfFundsWorkflow-BWWLrVaR.js} +4 -4
  66. package/dist/StateField-TYw5No81.js +364 -0
  67. package/dist/{Step-Cqaytd3J.js → Step-D8w1jd5O.js} +5 -5
  68. package/dist/Summary-BwvaKucT.js +21 -0
  69. package/dist/{SummarySection-BVPfXtuP.js → SummarySection-5L--khYg.js} +5 -19
  70. package/dist/{Task-CegWZQgV.js → Task-dSDYu-xr.js} +7 -7
  71. package/dist/{TaskGroup-BqSUUr1i.js → TaskGroup-298zewpP.js} +3 -3
  72. package/dist/{TaskListItem-CvYgXREa.js → TaskListItem-jRIQ_fJt.js} +10 -10
  73. package/dist/{TaskStepperContextProvider-9wlnwii7.js → TaskStepperContextProvider-DiMf4UV6.js} +1 -1
  74. package/dist/{TaskVerificationStatus-zoxTZ2mt.js → TaskVerificationStatus-C1CllzL1.js} +17 -17
  75. package/dist/{TaxInformationFieldGroup-lT5OgO75.js → TaxInformationFieldGroup-BkyZwtUe.js} +7 -7
  76. package/dist/{TaxReportingDropin-C9jUzNzP.js → TaxReportingDropin-BVohPujf.js} +13 -15
  77. package/dist/{TaxReportingWorkflow-C3qyl3rW.js → TaxReportingWorkflow-BdVibdaP.js} +4 -4
  78. package/dist/{TermsOfServiceManagement-DfFV6erX.js → TermsOfServiceManagement-Bh0BJ4wb.js} +46 -43
  79. package/dist/{TextArea-CQIt_2VI.js → TextArea-BaoeEZvH.js} +4 -4
  80. package/dist/{TextField-C8CRipRJ.js → TextField-BWevK7LS.js} +5 -5
  81. package/dist/{TrustDetailsPage-Ax5uaglT.js → TrustDetailsPage-B5x1-NPO.js} +61 -54
  82. package/dist/{TrustMemberCompanyPage-DBxTZo-8.js → TrustMemberCompanyPage-Ck2UKJma.js} +5 -5
  83. package/dist/{TrustMemberIndividualPage-DFhWDN3f.js → TrustMemberIndividualPage-CTUh7yn9.js} +4 -4
  84. package/dist/{TrustMemberRoleAndTypePage-Bdoyd1ix.js → TrustMemberRoleAndTypePage-D5_AZAMj.js} +43 -36
  85. package/dist/{TrustMembersOverview-BCdJRHAn.js → TrustMembersOverview-Dbt3KQhv.js} +13 -13
  86. package/dist/{UboTaskItem-DIIoWLbx.js → UboTaskItem-CV0B4ONJ.js} +7 -7
  87. package/dist/{UnincorporatedPartnershipIndividualPage-B20wDAzH.js → UnincorporatedPartnershipIndividualPage-g9PpNHfH.js} +4 -4
  88. package/dist/{UnincorporatedPartnershipMemberCompanyPage-DvcQYNzd.js → UnincorporatedPartnershipMemberCompanyPage-Chd2k8jM.js} +5 -5
  89. package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-Dx1pRB4b.js → UnincorporatedPartnershipMemberRoleAndTypePage-C7AvOkFK.js} +9 -9
  90. package/dist/{UnincorporatedPartnershipMembersOverview-C0cRXnsL.js → UnincorporatedPartnershipMembersOverview-m3TgX08K.js} +6 -6
  91. package/dist/{VerificationErrorAlert-D0K9gep-.js → VerificationErrorAlert-yOZ8yz_8.js} +3 -3
  92. package/dist/{WebsiteField-Bgf9bYOR.js → WebsiteField-Cn_VPhTx.js} +5 -5
  93. package/dist/{Workflow-DxRS9IMd.js → Workflow-BUgUDsPv.js} +6 -6
  94. package/dist/{accountHolderUtils-QdO9D_A_.js → accountHolderUtils-DhbLva46.js} +1 -1
  95. package/dist/adyen-business-financing.js +7 -7
  96. package/dist/adyen-individual-configuration.js +6 -6
  97. package/dist/adyen-individual-status.js +5 -5
  98. package/dist/adyen-invited-decision-maker.js +3 -3
  99. package/dist/adyen-onboarding.js +30 -30
  100. package/dist/adyen-terms-of-service-management.js +3 -3
  101. package/dist/adyen-terms-of-service-status.js +3 -3
  102. package/dist/adyen-transfer-instrument-configuration.js +5 -5
  103. package/dist/adyen-transfer-instrument-management.js +13 -13
  104. package/dist/adyen-verification-status.js +3 -3
  105. package/dist/{bafinUtils-CW20t7tP.js → bafinUtils-4C7AJpnd.js} +519 -531
  106. package/dist/{constants-DR4IoRWH.js → constants-dKwpavyU.js} +6 -6
  107. package/dist/{dropinUtils-C0hhy3A9.js → dropinUtils-D7sD4BX1.js} +165 -364
  108. package/dist/en-US-8KLaHQaT.js +7 -0
  109. package/dist/{en-US-Cz4JoU20.js → en-US-BMMx67Za.js} +16 -2
  110. package/dist/{en-US-nYL_eSJ-.js → en-US-BfRvYdHX.js} +8 -2
  111. package/dist/en-US-DGdFfmUC.js +136 -0
  112. package/dist/{en-US.instructions-BVNIyLRs.js → en-US.instructions-myDXMUbk.js} +2 -1
  113. package/dist/{error-m4DJ8d3r.js → error-vhREufv_.js} +2 -2
  114. package/dist/formatDataForSummary-CNiewg8c.js +498 -0
  115. package/dist/{formatValidationError-CwtW9tMt.js → formatValidationError-BO9k5bVJ.js} +2 -2
  116. package/dist/{getDefaultRegistrationNumberType-CVVuCd8E.js → getDefaultRegistrationNumberType-BWN86JDR.js} +4 -4
  117. package/dist/{getProblemsForEntity-mdb3Bfpj.js → getProblemsForEntity-FHk416BA.js} +1 -1
  118. package/dist/{getTrustedDecisionMakers-D89oYOLp.js → getTrustedDecisionMakers-DByctgob.js} +1 -1
  119. package/dist/{getValidationError-RnMEkCKd.js → getValidationError--VxsluPA.js} +2 -2
  120. package/dist/{legalArrangementUtils-Crgt_L7h.js → legalArrangementUtils-CHlmmcB8.js} +11 -2
  121. package/dist/{mapAddressLocalizationToJpAddressSchema-Dpsnbt5H.js → mapAddressLocalizationToJpAddressSchema-Di3_rcrj.js} +2 -2
  122. package/dist/{mapExistingFile-BXfeQxev.js → mapExistingFile-CqbTLZ6i.js} +1 -1
  123. package/dist/mapJpAddressSchemaToAddressLocalizations-TLZ9foPF.js +19 -0
  124. package/dist/{mapTransferInstrumentToPayoutAccount-6aBAKF7U.js → mapTransferInstrumentToPayoutAccount-BLq2P8NF.js} +2 -2
  125. package/dist/{processCapabilities-FL4-KAbd.js → processCapabilities-B75YIdXZ.js} +11 -4
  126. package/dist/{processValidationErrors-CcgBvwPJ.js → processValidationErrors-DKn7wWTY.js} +4 -4
  127. package/dist/{resolveEnvironment-DwfwgVEU.js → resolveEnvironment-CrNBwIpQ.js} +53 -16
  128. package/dist/roleMetadata-CmxqSnzp.js +57 -0
  129. package/dist/style.css +166 -230
  130. package/dist/styles-DYaAeu4q.js +166 -230
  131. package/dist/trustMemberType-Ix2sf6e_.js +13 -0
  132. package/dist/types/api/address/useAddressCleanse.d.ts +2 -0
  133. package/dist/types/api/address/useRetrieveAddress.d.ts +1 -0
  134. package/dist/types/api/address/useRetrieveFromPostcodeJp.d.ts +1 -0
  135. package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/utils.d.ts +7 -2
  136. package/dist/types/components/Business/forms/FinancialInformation/mapping/mapFinancialInformationToFinancialReport.d.ts +1 -1
  137. package/dist/types/components/Business/forms/rules.d.ts +3 -1
  138. package/dist/types/components/Business/utils/formatDataForSummary.d.ts +2 -1
  139. package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +78 -0
  140. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingFinancialInformation.d.ts +3 -0
  141. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +2 -1
  142. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +6 -3
  143. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/validate.d.ts +3 -0
  144. package/dist/types/components/GlobalEntry/fields/DbaQuestionnaire/DbaQuestionnaire.d.ts +3 -0
  145. package/dist/types/components/GlobalEntry/fields/DbaQuestionnaire/types.d.ts +5 -0
  146. package/dist/types/components/GlobalEntry/fields/LlcQuestionnaire/LlcQuestionnaire.d.ts +3 -0
  147. package/dist/types/components/GlobalEntry/fields/LlcQuestionnaire/types.d.ts +5 -0
  148. package/dist/types/components/GlobalEntry/fields/PaperworkQuestionnaire/PaperworkQuestionnaire.d.ts +1 -6
  149. package/dist/types/components/GlobalEntry/fields/PaperworkQuestionnaire/fieldConfig.d.ts +11 -0
  150. package/dist/types/components/GlobalEntry/fields/PaperworkQuestionnaire/types.d.ts +6 -1
  151. package/dist/types/components/GlobalEntry/fields/Questionnaire/Questionnaire.d.ts +2 -0
  152. package/dist/types/components/GlobalEntry/fields/Questionnaire/types.d.ts +17 -0
  153. package/dist/types/components/GlobalEntry/fields/TrustQuestionnaire/TrustQuestionnaire.d.ts +3 -0
  154. package/dist/types/components/GlobalEntry/fields/TrustQuestionnaire/types.d.ts +5 -0
  155. package/dist/types/components/GlobalEntry/forms/EntityInformation/EntityInformation.d.ts +1 -3
  156. package/dist/types/components/GlobalEntry/forms/EntityInformation/types.d.ts +1 -2
  157. package/dist/types/components/GlobalEntry/forms/RegistrationInformation/types.d.ts +5 -1
  158. package/dist/types/components/GlobalEntry/mapping/globalEntryKeyMapping.d.ts +0 -3
  159. package/dist/types/components/GlobalEntry/mapping/mapGlobalEntrySchemaToLegalEntity.d.ts +2 -3
  160. package/dist/types/components/GlobalEntry/mapping/mapLegalEntityToGlobalEntrySchema.d.ts +1 -6
  161. package/dist/types/components/GlobalEntry/rules.d.ts +5 -2
  162. package/dist/types/components/GlobalEntry/utils/getAvailableCompanyStructures.d.ts +2 -1
  163. package/dist/types/components/GlobalEntry/utils/submitGlobalEntry.d.ts +1 -4
  164. package/dist/types/components/GlobalEntry/utils/utils.d.ts +7 -4
  165. package/dist/types/components/Individual/forms/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +1 -2
  166. package/dist/types/components/Individual/forms/Individual.rules.d.ts +7 -6
  167. package/dist/types/components/Individual/helpers/findRelevantTaxInformation.d.ts +8 -2
  168. package/dist/types/components/Individual/helpers/getSubmittableTaxInformation.d.ts +20 -0
  169. package/dist/types/components/Individual/mapping/mapIndividualSchemaToLegalEntity.d.ts +5 -3
  170. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/utils.d.ts +6 -67
  171. package/dist/types/components/Individual/tasks/IndividualDropin/IndividualSummary.d.ts +27 -0
  172. package/dist/types/components/Individual/utils/formatDataForSummary.d.ts +49 -0
  173. package/dist/types/components/Shared/FormFlow/FormFlow.d.ts +1 -1
  174. package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +0 -5
  175. package/dist/types/components/Shared/Summary/Summary.d.ts +10 -7
  176. package/dist/types/components/Shared/Summary/types.d.ts +3 -21
  177. package/dist/types/components/Shared/SummarySection/SummaryBulletList.d.ts +8 -0
  178. package/dist/types/components/Shared/fields/RegistrationAndOperationalAddressFields/types.d.ts +2 -0
  179. package/dist/types/components/Shared/fields/RegistrationAndOperationalAddressFields/utils.d.ts +2 -4
  180. package/dist/types/components/Shared/fields/ReportedValueOptionField/types.d.ts +3 -0
  181. package/dist/types/components/Shared/forms/Address/constants.d.ts +2 -0
  182. package/dist/types/components/Shared/forms/Address/localized/jp/JpAddressFields.d.ts +2 -9
  183. package/dist/types/components/Shared/forms/Address/localized/jp/mapAddressLocalizationToJpAddressSchema.d.ts +2 -2
  184. package/dist/types/components/Shared/forms/Address/localized/jp/mapJpAddressSchemaToAddressLocalizations.d.ts +2 -2
  185. package/dist/types/components/Shared/forms/Address/localized/jp/mapJpAddressSummary.d.ts +2 -4
  186. package/dist/types/components/Shared/forms/Address/rules.d.ts +13 -0
  187. package/dist/types/components/Shared/forms/Address/types.d.ts +7 -1
  188. package/dist/types/components/Shared/forms/Address/utils.d.ts +5 -11
  189. package/dist/types/components/Trust/forms/Trust/rules.d.ts +3 -1
  190. package/dist/types/components/Trust/tasks/RoleAndTypeDropin/formatRoleAndEntityTypeSummary.d.ts +2 -3
  191. package/dist/types/components/Trust/utils/formatDataForSummary.d.ts +2 -1
  192. package/dist/types/core/EmbedShell/EmbedShell.d.ts +4 -1
  193. package/dist/types/core/EmbedShell/useTheme.d.ts +9 -0
  194. package/dist/types/embeds/onboarding/adyen-onboarding.d.ts +1 -1
  195. package/dist/types/embeds/onboarding/adyen-onboarding.types.d.ts +8 -0
  196. package/dist/types/hooks/useStoredStateOrProvince.d.ts +9 -0
  197. package/dist/types/types/datasets/state-code.d.ts +36 -1
  198. package/dist/types/types/form-rules.d.ts +2 -2
  199. package/dist/types/utils/analytics/getPrefilledDetails.d.ts +3 -0
  200. package/dist/types/utils/entityStatusUtil.d.ts +1 -1
  201. package/dist/types/utils/fieldConfigurations.d.ts +1 -1
  202. package/dist/types/utils/legalArrangementUtils.d.ts +2 -0
  203. package/dist/{types-BymnGWO9.js → types-DVMWWwBT.js} +1 -1
  204. package/dist/{form-rules-DaLzvm8o.js → unincorporatedPartnership-Dr3lPgDv.js} +38 -4
  205. package/dist/{useBusinessDetailsData-D1DJeC90.js → useBusinessDetailsData-DrN9ZzIG.js} +100 -90
  206. package/dist/{useCanSeeIntroduction-CvLOidr8.js → useCanSeeIntroduction-BDarBkmx.js} +2 -2
  207. package/dist/useCreateLegalEntity-CgzVD39K.js +24 -0
  208. package/dist/{useDataMissingRemediations-DKjYzfe2.js → useDataMissingRemediations-BfC7ECSn.js} +1 -1
  209. package/dist/{useForm-B5MdX_HU.js → useForm-Cibudto5.js} +3 -3
  210. package/dist/{useHideTaskStepper-BgCN--mG.js → useHideTaskStepper-Betx9MGy.js} +1 -1
  211. package/dist/{useId-DbtfzzaE.js → useId-e2xn6OME.js} +2 -2
  212. package/dist/{useNavigate-uuRpGZuZ.js → useNavigate-DxEfo192.js} +33 -33
  213. package/dist/{useSalesChannels-XZRfoa6v.js → useSalesChannels-C09EqYFN.js} +1 -1
  214. package/dist/{useTaskLandedEvent-DzsLZguJ.js → useTaskLandedEvent-C-kML6lH.js} +1 -1
  215. package/dist/{useTrustMembers-xuXOS0a8.js → useTrustMembers-CZ28rgNA.js} +3 -3
  216. package/dist/{useUnincorporatedPartnershipMembers-DcfQJdVZ.js → useUnincorporatedPartnershipMembers-e3nDscEc.js} +2 -2
  217. package/dist/{utils-BD22komZ.js → utils-C3-aLHsN.js} +3 -3
  218. package/dist/{utils-CtCqc_ym.js → utils-C_z60qSD.js} +4 -5
  219. package/dist/{utils-BFxg3gPM.js → utils-ChZNfG5_.js} +1 -1
  220. package/dist/utils-gszwUnoh.js +49 -0
  221. package/dist/{validate-mbqt6wsS.js → validate-BDG97Hw4.js} +4 -4
  222. package/dist/{validate-r2j-Yc-q.js → validate-C1VibHZH.js} +26 -2
  223. package/dist/{validate-DNq64o-B.js → validate-Dve-kxSi.js} +11 -5
  224. package/dist/{validate-83HsNk18.js → validate-bah41KLb.js} +20 -9
  225. package/dist/{validateExtractionResult-IRRMwcNi.js → validateExtractionResult-D3AuQo5-.js} +3 -3
  226. package/package.json +6 -5
  227. package/dist/Image-CxnjHtP1.js +0 -33
  228. package/dist/List-qvNxW9lm.js +0 -72
  229. package/dist/StateField-BMyu6YZZ.js +0 -296
  230. package/dist/en-US-U0d3NI20.js +0 -7
  231. package/dist/mapJpAddressSchemaToAddressLocalizations-CAoOxUg9.js +0 -75
  232. package/dist/mapLegalEntityToIndividualSchema-Bl89JIZK.js +0 -254
  233. package/dist/trustMemberGuidance-BpeDHAJP.js +0 -27
  234. package/dist/types/components/Shared/NewSummary/NewSummary.d.ts +0 -10
  235. package/dist/types/components/Shared/Summary/summaryItem.d.ts +0 -17
  236. package/dist/types/components/Shared/forms/Address/localized/jp/jpAddressSchema.d.ts +0 -17
  237. package/dist/unincorporatedPartnership-BbNowjM2.js +0 -11
@@ -1,5 +1,10 @@
1
1
  import type { BaseFormFieldProps } from '../../../../hooks/useForm/types';
2
+ import type { CountryCode } from '../../../../types/datasets/country-code';
3
+ import type { EntitySetupFieldSchema } from '../EntitySetupField/types';
2
4
  export interface PaperworkQuestionnaireFieldSchema {
3
5
  filedPaperwork?: 'yes' | 'no';
4
6
  }
5
- export type PaperworkQuestionnaireFieldProps = Pick<BaseFormFieldProps<PaperworkQuestionnaireFieldSchema>, 'data' | 'valid' | 'errors' | 'handleChangeFor' | 'label'>;
7
+ export type PaperworkQuestionnaireFieldProps = Pick<BaseFormFieldProps<PaperworkQuestionnaireFieldSchema>, 'data' | 'valid' | 'errors' | 'handleChangeFor'> & {
8
+ country: CountryCode;
9
+ entitySetup?: EntitySetupFieldSchema['entitySetup'];
10
+ };
@@ -0,0 +1,2 @@
1
+ import type { QuestionnaireProps } from './types';
2
+ export declare function Questionnaire({ name, label, helper, selected, tiles, isValid, errorMessage, isHorizontal, onChange, onHelpClick, }: QuestionnaireProps): import("preact/jsx-runtime").JSX.Element;
@@ -0,0 +1,17 @@
1
+ import type { FieldErrorMessage } from '../../../ui/atoms/Field/Field.types';
2
+ import type { TileProps } from '../../../ui/atoms/Tile/Tile';
3
+ export type QuestionnaireTile<Value extends string> = Omit<TileProps, 'value'> & {
4
+ value: Value;
5
+ };
6
+ export interface QuestionnaireProps {
7
+ name: string;
8
+ label?: string;
9
+ helper?: string;
10
+ selected?: string | string[];
11
+ tiles: TileProps[];
12
+ isValid?: boolean;
13
+ errorMessage?: FieldErrorMessage;
14
+ isHorizontal?: boolean;
15
+ onChange: (value: string | string[]) => void;
16
+ onHelpClick?: () => void;
17
+ }
@@ -0,0 +1,3 @@
1
+ import type { TrustQuestionnaireFieldProps, TrustQuestionnaireFieldSchema } from './types';
2
+ export declare const TRUST_QUESTIONNAIRE_FIELD: Array<keyof TrustQuestionnaireFieldSchema>;
3
+ export declare function TrustQuestionnaire({ data, valid, errors, handleChangeFor, }: TrustQuestionnaireFieldProps): import("preact/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import type { BaseFormFieldProps } from '../../../../hooks/useForm/types';
2
+ export interface TrustQuestionnaireFieldSchema {
3
+ isTrust?: 'yes' | 'no';
4
+ }
5
+ export type TrustQuestionnaireFieldProps = Pick<BaseFormFieldProps<TrustQuestionnaireFieldSchema>, 'data' | 'valid' | 'errors' | 'handleChangeFor'>;
@@ -1,10 +1,8 @@
1
1
  import type { BaseInnerFormProps } from '../../../../hooks/useForm/types';
2
- import type { CountryCode } from '../../../../types/datasets/country-code';
3
2
  import type { EntityInformationFormSchema } from './types';
4
3
  interface EntityInformationProps extends BaseInnerFormProps<EntityInformationFormSchema> {
5
4
  id: string;
6
- country: CountryCode;
7
5
  }
8
6
  export declare const ENTITY_INFORMATION_FIELDS: Array<keyof EntityInformationFormSchema>;
9
- export declare const EntityInformation: ({ id, country }: EntityInformationProps) => import("preact/jsx-runtime").JSX.Element;
7
+ export declare const EntityInformation: ({ id }: EntityInformationProps) => import("preact/jsx-runtime").JSX.Element;
10
8
  export {};
@@ -1,4 +1,3 @@
1
1
  import type { CountryFieldSchema } from '../../../Shared/fields/CountryField/types';
2
- import type { StateFieldSchema } from '../../../Shared/fields/StateField/types';
3
2
  import type { EntitySetupFieldSchema } from '../../fields/EntitySetupField/types';
4
- export type EntityInformationFormSchema = CountryFieldSchema & StateFieldSchema & EntitySetupFieldSchema;
3
+ export type EntityInformationFormSchema = CountryFieldSchema & EntitySetupFieldSchema;
@@ -2,7 +2,11 @@ import type { BusinessRegistrationNumberFieldSchema } from '../../../Shared/fiel
2
2
  import type { CountryOfGoverningLawFieldSchema } from '../../../Shared/fields/CountryOfGoverningLawField/types';
3
3
  import type { LegalCompanyNameFieldSchema } from '../../../Shared/fields/LegalCompanyNameField/types';
4
4
  import type { LocalizedLegalCompanyNameFieldSchema } from '../../../Shared/fields/LocalizedLegalCompanyNameField/types';
5
+ import type { StateFieldSchema } from '../../../Shared/fields/StateField/types';
5
6
  import type { TaxInformationFieldSchema } from '../../../Shared/fields/TaxInformationField/types';
7
+ import type { DbaQuestionnaireFieldSchema } from '../../fields/DbaQuestionnaire/types';
8
+ import type { LlcQuestionnaireFieldSchema } from '../../fields/LlcQuestionnaire/types';
6
9
  import type { PaperworkQuestionnaireFieldSchema } from '../../fields/PaperworkQuestionnaire/types';
10
+ import type { TrustQuestionnaireFieldSchema } from '../../fields/TrustQuestionnaire/types';
7
11
  import type { UnincorporatedOrganizationTypeFieldSchema } from '../../fields/UnincorporatedOrganizationTypeField/types';
8
- export type RegistrationInformationFormSchema = PaperworkQuestionnaireFieldSchema & UnincorporatedOrganizationTypeFieldSchema & BusinessRegistrationNumberFieldSchema & LegalCompanyNameFieldSchema & LocalizedLegalCompanyNameFieldSchema & CountryOfGoverningLawFieldSchema & TaxInformationFieldSchema;
12
+ export type RegistrationInformationFormSchema = DbaQuestionnaireFieldSchema & LlcQuestionnaireFieldSchema & PaperworkQuestionnaireFieldSchema & TrustQuestionnaireFieldSchema & UnincorporatedOrganizationTypeFieldSchema & BusinessRegistrationNumberFieldSchema & LegalCompanyNameFieldSchema & LocalizedLegalCompanyNameFieldSchema & StateFieldSchema & CountryOfGoverningLawFieldSchema & TaxInformationFieldSchema;
@@ -6,10 +6,7 @@ import type { GlobalEntrySchema } from '../tasks/types';
6
6
  */
7
7
  export declare const globalEntryKeyMappingForOrgs: MappingRecord<GlobalEntrySchema, Pick<LegalEntityDto, 'organization'>>;
8
8
  export declare const globalEntryKeyMappingForIndividuals: MappingRecord<GlobalEntrySchema, Pick<LegalEntityDto, 'individual'>>;
9
- export declare const globalEntryKeyMappingForSoleProps: MappingRecord<GlobalEntrySchema, Pick<LegalEntityDto, 'soleProprietorship'>>;
10
9
  /** Api-keyed mapping, for building the legal entity request from the form schema */
11
10
  export declare const globalEntryApiKeyMappingForOrgs: MappingRecord<Pick<LegalEntityDto, 'organization'>, GlobalEntrySchema>;
12
- /** Api-keyed mapping, for building the sole proprietorship request from the form schema */
13
- export declare const globalEntryApiKeyMappingForSoleProps: MappingRecord<Pick<LegalEntityDto, 'soleProprietorship'>, GlobalEntrySchema>;
14
11
  /** Api-keyed mapping, for building the legal entity request from the form schema */
15
12
  export declare const globalEntryApiKeyMappingForIndividuals: MappingRecord<Pick<LegalEntityDto, 'individual'>, GlobalEntrySchema>;
@@ -1,6 +1,5 @@
1
- import type { ExistingLegalEntity, LegalEntityDto, PatchLegalEntity } from '../../../api/legalEntity/legalEntity.types';
1
+ import type { ExistingLegalEntity, PatchLegalEntity } from '../../../api/legalEntity/legalEntity.types';
2
2
  import type { FeatureName } from '../../../context/ToggleContext/types';
3
3
  import type { AccountHolderOption } from '../../../types/accountHolder';
4
4
  import type { GlobalEntrySchema } from '../tasks/types';
5
- export declare const mapGlobalEntrySchemaToSoleProp: (data: GlobalEntrySchema) => Partial<LegalEntityDto>;
6
- export declare const mapGlobalEntrySchemaToLegalEntity: (data: GlobalEntrySchema, legalEntity: ExistingLegalEntity, accountHolder: AccountHolderOption, isFeatureEnabled: (feature: FeatureName) => boolean, newSoleProp?: ExistingLegalEntity) => PatchLegalEntity;
5
+ export declare const mapGlobalEntrySchemaToLegalEntity: (data: GlobalEntrySchema, legalEntity: ExistingLegalEntity, accountHolder: AccountHolderOption, isFeatureEnabled: (feature: FeatureName) => boolean) => PatchLegalEntity;
@@ -1,9 +1,4 @@
1
1
  import type { ExistingLegalEntity } from '../../../api/legalEntity/legalEntity.types';
2
2
  import type { AccountHolderOption } from '../../../types/accountHolder';
3
3
  import type { GlobalEntrySchema } from '../tasks/types';
4
- /**
5
- * @param legalEntity the root entity
6
- * @param associatedSoleProp the proprietorship associated to the root, when there is one. It holds
7
- * the registration details the root does not, so editing an existing proprietorship prefills.
8
- */
9
- export declare const mapLegalEntityToGlobalEntrySchema: (legalEntity: ExistingLegalEntity, accountHolder: AccountHolderOption, associatedSoleProp?: ExistingLegalEntity) => GlobalEntrySchema;
4
+ export declare const mapLegalEntityToGlobalEntrySchema: (legalEntity: ExistingLegalEntity, accountHolder: AccountHolderOption) => GlobalEntrySchema;
@@ -1,4 +1,4 @@
1
- import { TaskTypes } from '../../stores/globalStore/taskTypes';
1
+ import type { TaskTypes } from '../../stores/globalStore/taskTypes';
2
2
  import type { FormConfiguration } from '../../types/form-configuration';
3
3
  import type { FormRulesParams } from '../../types/form-rules';
4
4
  import type { GlobalEntrySchema } from './tasks/types';
@@ -11,11 +11,14 @@ interface GlobalEntryCustomRulesProps extends Omit<FormRulesParams<GlobalEntrySc
11
11
  export declare const globalEntryCustomRules: ({ accountHolder, data, isFeatureEnabled, isSettingEnabled, country, rootLegalEntity, }: GlobalEntryCustomRulesProps) => {
12
12
  entitySetupRequired: () => "REQUIRED";
13
13
  countryRequired: () => "REQUIRED";
14
- requireStateOrProvinceForCompanySearch: () => "REQUIRED" | undefined;
15
14
  businessSelectionRequired: () => "REQUIRED" | undefined;
16
15
  organizationTypeRequired: () => "REQUIRED" | undefined;
17
16
  countryOfGoverningLawRequired: () => "REQUIRED" | undefined;
18
17
  filedPaperworkRequired: () => "REQUIRED" | undefined;
18
+ doingBusinessAsRequired: () => "REQUIRED" | undefined;
19
+ isTrustRequired: () => "REQUIRED" | undefined;
20
+ requireStateOrProvinceForCompanySearch: () => "REQUIRED" | undefined;
21
+ isLimitedLiabilityCorporationRequired: () => "REQUIRED" | undefined;
19
22
  unincorporatedOrganizationTypeRequired: () => "REQUIRED" | undefined;
20
23
  legalCompanyNameRequired: () => "REQUIRED" | undefined;
21
24
  jaHaniLegalCompanyName: () => "REQUIRED" | undefined;
@@ -8,5 +8,6 @@ export interface GetAvailableCompanyStructuresProps {
8
8
  registrationNumberExempt: boolean | undefined;
9
9
  taxIdNumberType: TaxIdNumberType | undefined;
10
10
  legalEntity: ExistingLegalEntity;
11
+ isSingleMemberLlc: boolean;
11
12
  }
12
- export declare function getAvailableCompanyStructures({ country, registrationNumberType, registrationNumberExempt, taxIdNumberType, legalEntity, }: GetAvailableCompanyStructuresProps): CompanyType[];
13
+ export declare function getAvailableCompanyStructures({ country, registrationNumberType, registrationNumberExempt, taxIdNumberType, legalEntity, isSingleMemberLlc, }: GetAvailableCompanyStructuresProps): CompanyType[];
@@ -1,5 +1,4 @@
1
1
  import type { CompanySelectionResponse } from '../../../api/companySelection/companySelection.types';
2
- import type { CreateLegalEntity } from '../../../api/createLegalEntity/useCreateLegalEntity';
3
2
  import type { ExistingLegalEntity } from '../../../api/legalEntity/legalEntity.types';
4
3
  import type { UpdateLegalEntity } from '../../../api/legalEntity/useUpdateLegalEntity';
5
4
  import type { FeatureName } from '../../../context/ToggleContext/types';
@@ -10,13 +9,11 @@ import type { GlobalEntrySchema } from '../tasks/types';
10
9
  */
11
10
  interface SubmitGlobalEntryProps {
12
11
  legalEntity: ExistingLegalEntity;
13
- associatedSoleProp?: ExistingLegalEntity;
14
12
  data: GlobalEntrySchema;
15
- createLegalEntity: CreateLegalEntity;
16
13
  updateLegalEntity: UpdateLegalEntity;
17
14
  accountHolder: AccountHolderOption;
18
15
  isFeatureEnabled: (feature: FeatureName) => boolean;
19
16
  verifiedCompanyData?: CompanySelectionResponse;
20
17
  }
21
- export declare const submitGlobalEntry: ({ legalEntity, associatedSoleProp, data, updateLegalEntity, createLegalEntity, accountHolder, isFeatureEnabled, verifiedCompanyData, }: SubmitGlobalEntryProps) => Promise<AccountHolderOption | undefined>;
18
+ export declare const submitGlobalEntry: ({ legalEntity, data, updateLegalEntity, accountHolder, isFeatureEnabled, verifiedCompanyData, }: SubmitGlobalEntryProps) => Promise<AccountHolderOption | undefined>;
22
19
  export {};
@@ -4,15 +4,18 @@ import type { GlobalEntrySchema } from '../tasks/types';
4
4
  export declare const getGlobalEntryCompanyType: (legalEntity: ExistingLegalEntity | undefined, data: GlobalEntrySchema) => CompanyType | undefined;
5
5
  export declare const isPaperworkQuestionAsked: (data: GlobalEntrySchema) => boolean;
6
6
  export declare const getFiledPaperwork: (data: GlobalEntrySchema) => "yes" | "no" | null;
7
+ export declare const isTrustQuestionAsked: (data: GlobalEntrySchema) => boolean;
8
+ export declare const isSingleMemberLLC: (data: GlobalEntrySchema) => boolean;
9
+ export declare const isUsingCompanySearch: (data: GlobalEntrySchema) => boolean;
7
10
  export declare const isSoleProprietorship: (data: GlobalEntrySchema) => boolean;
8
11
  /**
9
- * `justMe` is always a natural person. Being part of a business only makes the entity an
10
- * `organization` when the primary partner is not an individual, because an individual partner in an
11
- * unincorporated partnership stays an individual legal entity.
12
+ * `justMe` is a natural person unless they represent a single-member LLC. Being part of a business
13
+ * only makes the entity an `organization` when the primary partner is not an individual, because an
14
+ * individual partner in an unincorporated partnership stays an individual legal entity.
12
15
  */
13
16
  export declare const determineLegalEntityType: (data: GlobalEntrySchema) => LegalEntityType;
14
17
  /**
15
18
  * The account holder is derived from the form data, not sent to the API and is kept client-side.
16
19
  */
17
20
  export declare const determineAccountHolder: (data: GlobalEntrySchema) => AccountHolderOption | undefined;
18
- export declare const determineEntityAssociations: (data: GlobalEntrySchema, accountHolder: AccountHolderOption, legalEntity: ExistingLegalEntity, newSoleProp?: ExistingLegalEntity) => LegalEntityAssociationDto[] | undefined;
21
+ export declare const determineEntityAssociations: (data: GlobalEntrySchema, accountHolder: AccountHolderOption, legalEntity: ExistingLegalEntity) => LegalEntityAssociationDto[] | undefined;
@@ -2,14 +2,13 @@ import type { BaseInnerFormProps } from '../../../../hooks/useForm/types';
2
2
  import type { NsTranslationKey } from '../../../../../types';
3
3
  import type { IndividualIdNumberType } from '../../../Shared/fields/IdFieldTypeSelector/countryIdNumberTypes';
4
4
  import type { TaxInformationFieldSchema } from '../../../Shared/fields/TaxInformationField/types';
5
- import type { JpAddressSchema } from '../../../Shared/forms/Address/localized/jp/jpAddressSchema';
6
5
  import type { AddressSchema } from '../../../Shared/forms/Address/types';
7
6
  import type { TaskType } from '../../../../stores/globalStore/taskTypes';
8
7
  import type { CountryCode } from '../../../../types/datasets/country-code';
9
8
  import type { ValidationRuleResults, ValidatorMode } from '../../../../utils/validation/types';
10
9
  import type { IdentityNumberSchema } from '../../fields/IdentityNumber/type';
11
10
  import type { AdditionalIdentityInfoSchema } from './Identity/Identity.types';
12
- export interface AdditionalPersonalDetailsSchema extends AddressSchema, JpAddressSchema, IdentityNumberSchema, TaxInformationFieldSchema, AdditionalIdentityInfoSchema {
11
+ export interface AdditionalPersonalDetailsSchema extends AddressSchema, IdentityNumberSchema, TaxInformationFieldSchema, AdditionalIdentityInfoSchema {
13
12
  birthDate?: string;
14
13
  nationality?: CountryCode;
15
14
  placeOfBirth?: string;
@@ -4,7 +4,7 @@ import type { FormRulesParams } from '../../../types/form-rules';
4
4
  import type { IndividualSchema } from './Individual.types';
5
5
  export declare const COUNTRIES_WHICH_USE_MULTIPLE_IDENTITY_TYPES: CountryCode[];
6
6
  export declare const DECISION_MAKER_TYPES_WITH_JOBTITLE: DecisionMakerType[];
7
- export declare const individualRules: ({ matchingScenario, data, country, taskType, isFeatureEnabled, isSettingEnabled, rootLegalEntity, problems, }: FormRulesParams<IndividualSchema>) => {
7
+ export declare const individualRules: ({ matchingScenario, data, country, taskType, isFeatureEnabled, isSettingEnabled, rootLegalEntity, problems, version, }: FormRulesParams<IndividualSchema>) => {
8
8
  countryUsesTaxId: () => "REQUIRED" | undefined;
9
9
  isDirectorIdNumberRequiredForCountry: () => "REQUIRED" | undefined;
10
10
  idNumberRules: () => "REQUIRED" | "OPTIONAL" | undefined;
@@ -27,11 +27,12 @@ export declare const individualRules: ({ matchingScenario, data, country, taskTy
27
27
  expiryDateRequired: () => "REQUIRED" | undefined;
28
28
  legalRepresentativeRelationshipRequired: () => "REQUIRED" | undefined;
29
29
  isProofOfRelationshipRequired: () => undefined;
30
- addressIfRequiredForCountry: () => "REQUIRED" | "OPTIONAL" | undefined;
31
- otherAddressInfoIfRequiredForCountry: () => "REQUIRED" | "OPTIONAL" | undefined;
32
- postalCodeIfRequiredForCountry: () => "REQUIRED" | undefined;
33
- cityIfRequiredForCountry: () => "REQUIRED" | undefined;
34
- stateOrProvinceIfRequiredForCountry: () => "REQUIRED" | undefined;
30
+ streetIfRequiredForCountry: () => "REQUIRED" | "OPTIONAL" | undefined;
31
+ street2IfRequiredForCountry: () => "REQUIRED" | "OPTIONAL" | undefined;
32
+ dependentLocalityIfRequiredForCountry: () => "REQUIRED" | "OPTIONAL" | undefined;
33
+ postalCodeIfRequiredForCountry: () => "REQUIRED" | "OPTIONAL" | undefined;
34
+ cityIfRequiredForCountry: () => "REQUIRED" | "OPTIONAL" | undefined;
35
+ stateOrProvinceIfRequiredForCountry: () => "REQUIRED" | "OPTIONAL" | undefined;
35
36
  nomineeDirectorRequiredForCountry: () => "REQUIRED" | undefined;
36
37
  nomineeShareHolderRequiredForCountry: () => "REQUIRED" | undefined;
37
38
  isUsingInstantVerificationOrHasExistingDocument: () => "REQUIRED" | undefined;
@@ -3,9 +3,16 @@ import type { CountryCode } from '../../../types/datasets/country-code';
3
3
  /**
4
4
  * A tax record whose `type` is known, and which can therefore be keyed into the summary.
5
5
  */
6
- type KeyableTaxInformation = TaxInformation & {
6
+ export type KeyableTaxInformation = TaxInformation & {
7
7
  type: TaxIdNumberType;
8
8
  };
9
+ /**
10
+ * The records a summary can key: those whose `type` is known.
11
+ *
12
+ * @param taxInformation - Every tax record captured for the individual.
13
+ * @returns The typed records, in the order they were captured.
14
+ */
15
+ export declare const getKeyableTaxInformation: (taxInformation: TaxInformation[] | undefined) => KeyableTaxInformation[];
9
16
  /**
10
17
  * Picks the single tax record to show in the summary.
11
18
  *
@@ -25,4 +32,3 @@ export declare const findRelevantTaxInformation: (taxInformation: TaxInformation
25
32
  nationality: CountryCode | undefined;
26
33
  country: CountryCode | undefined;
27
34
  }) => KeyableTaxInformation | undefined;
28
- export {};
@@ -0,0 +1,20 @@
1
+ /**
2
+ * The tax records the individual submit sends, shared by the mapper and the summary so the summary
3
+ * never shows a record the request omits.
4
+ *
5
+ * Keeps records for the current country of residence, plus records for countries already saved on
6
+ * the legal entity, and drops any record with a blank or whitespace-only number unless the user
7
+ * declared they don't have one (`numberAbsent`).
8
+ *
9
+ * @param taxInformation - Every tax record captured for the individual.
10
+ * @param currentCountry - The country of residence currently on the form.
11
+ * @param existingTaxInformation - Tax records already saved on the legal entity.
12
+ * @returns The records that are submitted, in the order they were captured.
13
+ */
14
+ export declare const getSubmittableTaxInformation: <T extends {
15
+ country?: string;
16
+ number?: string;
17
+ numberAbsent?: boolean;
18
+ }>(taxInformation: readonly T[] | undefined, currentCountry: string | undefined, existingTaxInformation: ReadonlyArray<{
19
+ country?: string;
20
+ }> | undefined) => T[];
@@ -1,9 +1,11 @@
1
1
  import type { LegalEntityDto } from '../../../api/legalEntity/legalEntity.types';
2
- import type { FeatureName } from '../../../context/ToggleContext/types';
2
+ import type { CountryCode } from '../../../types/datasets/country-code';
3
3
  import type { Scenario } from '../../../types/scenarios';
4
4
  import type { IndividualSchema } from '../forms/Individual.types';
5
- export declare const mapIndividualSchemaToLegalEntity: (individual: IndividualSchema, isFeatureEnabled: (key: FeatureName) => boolean, matchingScenario?: Scenario[],
5
+ export declare const mapIndividualSchemaToLegalEntity: (individual: IndividualSchema, matchingScenario?: Scenario[],
6
6
  /** Tax records already saved on the legal entity, so records for other countries are kept. */
7
7
  existingTaxInformation?: ReadonlyArray<{
8
8
  country?: string;
9
- }>) => LegalEntityDto;
9
+ }>,
10
+ /** The resolved country of residence, used when the schema has none. */
11
+ countryOfResidence?: CountryCode) => LegalEntityDto;
@@ -1,74 +1,13 @@
1
1
  import type { ExistingLegalEntity, LegalEntityAssociationDto } from '../../../../../api/legalEntity/legalEntity.types';
2
- import type { TFunction } from '../../../../../../types';
3
- import type { TaskType } from '../../../../../stores/globalStore/taskTypes';
4
2
  import type { EntityProblems } from '../../../../../types/errors/entity-problems';
3
+ import type { FormModelWithValidity } from '../../../../../types/form';
5
4
  import type { Scenario } from '../../../../../types/scenarios';
6
- import type { IndividualSchema } from '../../../forms/Individual.types';
7
5
  /**
8
- * A formatted summary section: either form field names or run-time translated labels, mapped to
9
- * the values shown in the summary list.
10
- */
11
- type SummarySection = Record<string, unknown>;
12
- /**
13
- * The shape produced by {@link formatDataForSummary}.
14
- *
15
- * This is deliberately not derived from `IndividualSchema`. Formatting replaces the type of
16
- * several fields (the phone object becomes a string, country codes become country names,
17
- * questionnaire answers become label lists) and introduces translated label keys that are only
18
- * known at run time, so each section is treated as a loose record of display values.
19
- */
20
- export interface FormattedSummaryData {
21
- basicDetails?: SummarySection;
22
- additionalPersonalDetails?: SummarySection;
23
- idVerificationMethod?: SummarySection;
24
- address?: SummarySection;
25
- manualIdUpload?: SummarySection;
26
- idDocument?: SummarySection;
27
- [section: string]: unknown;
28
- }
29
- /**
30
- * Formats the entire form data for the summary view.
31
- * This function transforms raw form data into a user-friendly format, including localization and data mapping.
32
- *
33
- * @param dataToFormat - The raw form data.
34
- * @param locale - language string
35
- * @param commonT - The translation function for the `common` namespace.
36
- * @param individualT - The translation function for the `individual` namespace.
37
- * @returns A new object with the formatted data for the summary.
38
- */
39
- export declare const formatDataForSummary: (dataToFormat: IndividualSchema, locale: string, commonT: TFunction<"common">, individualT: TFunction<"individual">) => FormattedSummaryData;
40
- /**
41
- * Prepares the final summary data by formatting and filtering the raw form data.
42
- *
43
- * @param data - The raw form data.
44
- * @param locale - language string
45
- * @param commonT - The translation function for the `common` namespace.
46
- * @param individualT - The translation function for the `individual` namespace.
47
- * @param taskType - The type of task being performed.
48
- * @returns The final summary data object.
49
- */
50
- export declare const getSummaryData: (data: IndividualSchema, locale: string, commonT: TFunction<"common">, individualT: TFunction<"individual">, taskType: TaskType) => {
51
- basicDetails: Omit<SummarySection, "firstName" | "lastName" | "role" | "nomineeShareholder"> | undefined;
52
- additionalPersonalDetails: Omit<SummarySection, "idNumberExempt"> | undefined;
53
- idDocument: unknown;
54
- };
55
- /**
56
- * Transforms a record of data into a structured list of items for display.
57
- * Each item in the list has a term (label) and details (value).
58
- *
59
- * @param data - The data record to transform.
60
- * @param commonT - The translation function.
61
- * @returns An array of structured list items.
6
+ * The sections of the details modal, in display order. The modal is not part of the flow, so it
7
+ * states its own forms rather than taking them from it.
62
8
  *
63
- * @example
64
- * const data = { name: 'John Doe', age: 30 };
65
- * getStructuredListItems(data, t);
66
- * // Returns: [{ term: 'Name', details: 'John Doe', type: 'text' }, { term: 'Age', details: '30', type: 'text' }]
9
+ * These mirror `individualForms`, which cannot be imported here: importing from `Individual.tsx`
10
+ * makes Vite inline that whole module into the entrypoint (see the Individual `AGENTS.md`).
67
11
  */
68
- export declare const getStructuredListItems: (data: Record<string, unknown> | undefined, commonT: TFunction<"common">) => {
69
- term: string;
70
- details: string;
71
- type: "list" | "text";
72
- }[];
12
+ export declare const DETAILS_SUMMARY_FORMS: FormModelWithValidity[];
73
13
  export declare const isMissingIdentityDocument: (problems: EntityProblems, legalEntity: ExistingLegalEntity, scenarios: Scenario[] | undefined, roles: Array<LegalEntityAssociationDto["type"]>) => boolean;
74
- export {};
@@ -0,0 +1,27 @@
1
+ import type { BooleanSettingName } from '../../../../context/SettingsContext/types';
2
+ import type { TaskType } from '../../../../stores/globalStore/taskTypes';
3
+ import type { CountryCode } from '../../../../types/datasets/country-code';
4
+ import type { EntityProblems } from '../../../../types/errors/entity-problems';
5
+ import type { FormModelWithValidity } from '../../../../types/form';
6
+ import type { IndividualSchema } from '../../forms/Individual.types';
7
+ interface IndividualSummaryProps {
8
+ data: IndividualSchema;
9
+ forms: FormModelWithValidity[];
10
+ taskType: TaskType;
11
+ country: CountryCode | undefined;
12
+ isSettingEnabled: (key: BooleanSettingName) => boolean;
13
+ problems?: EntityProblems;
14
+ handleEditForm: (formId: string) => void;
15
+ /** Tax records already saved on the legal entity, which the submit keeps. */
16
+ existingTaxInformation?: ReadonlyArray<{
17
+ country?: string;
18
+ }>;
19
+ }
20
+ /**
21
+ * The summary step of the individual task, passed to `FormFlow` as its `summaryComponent`.
22
+ *
23
+ * Row formatting lives in {@link formatDataForSummary}. This component owns the lazily loaded
24
+ * provider logo, which the formatter cannot, and composes the sections into `Summary`.
25
+ */
26
+ export declare const IndividualSummary: ({ data, forms, taskType, country, isSettingEnabled, problems, handleEditForm, existingTaxInformation, }: IndividualSummaryProps) => import("preact/jsx-runtime").JSX.Element;
27
+ export {};
@@ -0,0 +1,49 @@
1
+ import type { StructuredListItem } from '../../ui/atoms/StructuredList/StructuredList';
2
+ import type { BooleanSettingName } from '../../../context/SettingsContext/types';
3
+ import type { TFunction } from '../../../../types';
4
+ import type { SummarySectionData } from '../../Shared/SummarySection/SummarySection';
5
+ import type { TaskType } from '../../../stores/globalStore/taskTypes';
6
+ import type { CountryCode } from '../../../types/datasets/country-code';
7
+ import type { FormModelWithValidity } from '../../../types/form';
8
+ import type { IndividualSchema } from '../forms/Individual.types';
9
+ type IndividualTFunction = TFunction<readonly ['common', 'individual']>;
10
+ export interface IndividualSummarySection extends SummarySectionData {
11
+ /** Rendered as a `SummaryBulletList` instead of `items`, for data that is not term/value shaped. */
12
+ bullets?: string[];
13
+ }
14
+ export interface FormatDataForSummaryOptions {
15
+ data: IndividualSchema;
16
+ forms: FormModelWithValidity[];
17
+ t: IndividualTFunction;
18
+ language: string;
19
+ taskType: TaskType;
20
+ /** Country of residence, which decides the localized identity document labels. */
21
+ country: CountryCode | undefined;
22
+ isSettingEnabled: (key: BooleanSettingName) => boolean;
23
+ /**
24
+ * Shown as the verification method when identity was verified instantly. The caller provides it
25
+ * because the provider logo is a lazily loaded asset.
26
+ */
27
+ instantVerificationDetails?: StructuredListItem['details'];
28
+ /**
29
+ * Where the schema came from. A `legalEntity` already shows its name above the summary, and its
30
+ * documents arrive as metadata with no file, so they are summarized by upload date.
31
+ */
32
+ source?: SummarySource;
33
+ /**
34
+ * Tax records already saved on the legal entity, so the summary lists the same tax records the
35
+ * submit sends. Ignored for a `legalEntity` source, whose records are all saved.
36
+ */
37
+ existingTaxInformation?: ReadonlyArray<{
38
+ country?: string;
39
+ }>;
40
+ }
41
+ export type SummarySource = 'form' | 'legalEntity';
42
+ /**
43
+ * Builds the summary rows for the individual task.
44
+ *
45
+ * Rows are an ordered list rather than a record keyed by translation key, as Business and Trust
46
+ * use, because terms come from two namespaces and, for the invite flow, arrive pre-translated.
47
+ */
48
+ export declare function formatDataForSummary({ data, forms, t, language, taskType, country, isSettingEnabled, instantVerificationDetails, source, existingTaxInformation, }: FormatDataForSummaryOptions): IndividualSummarySection[];
49
+ export {};
@@ -1,3 +1,3 @@
1
1
  import type { FormFlowProps } from './FormFlow.types';
2
- declare const FormFlow: ({ asModal, children, currentStep, disableBackButton, disableNextButton, nextButtonLoading, forms, activeForm, gotoFormByFormIndex, gotoFormByFormId, handleBackClick, handleCancelClick, handleNextClick, loadingStatus, summary, summaryComponent, totalSteps, isGlobalEntry, }: FormFlowProps) => import("preact/jsx-runtime").JSX.Element;
2
+ declare const FormFlow: ({ asModal, children, currentStep, disableBackButton, disableNextButton, nextButtonLoading, forms, activeForm, gotoFormByFormIndex, gotoFormByFormId, handleBackClick, handleCancelClick, handleNextClick, loadingStatus, summaryComponent, totalSteps, isGlobalEntry, }: FormFlowProps) => import("preact/jsx-runtime").JSX.Element;
3
3
  export { FormFlow };
@@ -1,8 +1,6 @@
1
1
  import type { ComponentChildren } from 'preact';
2
2
  import type { LoadingStatus } from '../../ui/atoms/LoaderWrapper/constants';
3
3
  import type { FormModelWithValidity } from '../../../types/form';
4
- import type { SummaryProps } from '../Summary/types';
5
- type SummaryWithoutForms = Omit<SummaryProps<object>, 'forms' | 'gotoForm'>;
6
4
  export interface FormFlowProps {
7
5
  asModal?: boolean;
8
6
  children: ComponentChildren;
@@ -18,10 +16,7 @@ export interface FormFlowProps {
18
16
  handleNextClick(): void | Promise<void>;
19
17
  nextButtonLoading?: boolean;
20
18
  loadingStatus: LoadingStatus;
21
- /** @deprecated use summaryComponent */
22
- summary?: SummaryWithoutForms;
23
19
  summaryComponent?: ComponentChildren;
24
20
  totalSteps?: number;
25
21
  isGlobalEntry?: boolean;
26
22
  }
27
- export {};
@@ -1,7 +1,10 @@
1
- import type { JSX } from 'preact';
2
- import type { TopLevelDataSchema } from '../../../context/StateContext/types';
3
- import type { FormModel } from '../../../types/form';
4
- import type { SummaryProps } from './types';
5
- export declare const summaryStep: FormModel;
6
- /** @deprecated, use NewSummary */
7
- export declare function Summary<TLDS extends TopLevelDataSchema>({ data, forms, gotoForm, labels, problems, omitted, showFormHeader, showSectionHeader, showLegalCaption, showTaxExemptedLegalCaption, useStructuredList, }: SummaryProps<TLDS>): JSX.Element;
1
+ import type { ComponentChildren } from 'preact';
2
+ interface SummaryProps {
3
+ /**
4
+ * The content of the summary, in render order: typically an error panel, a `SummarySection` per
5
+ * section of data, and any trailing content such as a legal caption.
6
+ */
7
+ children?: ComponentChildren;
8
+ }
9
+ export declare const Summary: ({ children }: SummaryProps) => import("preact/jsx-runtime").JSX.Element;
10
+ export {};
@@ -1,25 +1,7 @@
1
1
  import type { Schema } from 'type-fest';
2
- import type { EntityProblems } from '../../../types/errors/entity-problems';
3
2
  import type { FormModel } from '../../../types/form';
4
- import type { SummaryItem } from './summaryItem';
5
- export type SummaryOf<T> = Partial<Schema<T, string | SummaryItem, {
3
+ export declare const summaryStep: FormModel;
4
+ /** The shape of a form schema with every leaf widened to its display string. */
5
+ export type SummaryOf<T> = Partial<Schema<T, string, {
6
6
  recurseIntoArrays: false;
7
7
  }>>;
8
- export interface Omitted {
9
- keys?: string[];
10
- forms?: string[];
11
- summaryEditButton?: string[];
12
- }
13
- export interface SummaryProps<Schema extends object> {
14
- data: SummaryOf<Schema>;
15
- omitted?: Omitted;
16
- forms: FormModel[];
17
- labels?: any;
18
- gotoForm(nextFormIndex: number): void;
19
- problems?: EntityProblems;
20
- showFormHeader?: boolean;
21
- showSectionHeader?: boolean;
22
- showLegalCaption?: boolean;
23
- showTaxExemptedLegalCaption?: boolean;
24
- useStructuredList?: boolean;
25
- }
@@ -0,0 +1,8 @@
1
+ export interface SummaryBulletListProps {
2
+ items: string[];
3
+ }
4
+ /**
5
+ * A bulleted list of values, for summary sections that describe a set rather than term/value
6
+ * pairs. Render it as a `SummarySection` child in place of a `StructuredList`.
7
+ */
8
+ export declare const SummaryBulletList: ({ items }: SummaryBulletListProps) => import("preact/jsx-runtime").JSX.Element | null;
@@ -9,12 +9,14 @@ export interface RegistrationAndOperationalAddressFieldsSchema {
9
9
  /** Flattened addresses fields */
10
10
  registrationAddressStreet?: string;
11
11
  registrationAddressStreet2?: string;
12
+ registrationAddressDependentLocality?: string;
12
13
  registrationAddressCity?: string;
13
14
  registrationAddressStateOrProvince?: string;
14
15
  registrationAddressPostalCode?: string;
15
16
  registrationAddressCountry?: CountryCode;
16
17
  operationalAddressStreet?: string;
17
18
  operationalAddressStreet2?: string;
19
+ operationalAddressDependentLocality?: string;
18
20
  operationalAddressCity?: string;
19
21
  operationalAddressStateOrProvince?: string;
20
22
  operationalAddressPostalCode?: string;
@@ -1,7 +1,5 @@
1
1
  import type { RegistrationAndOperationalAddressFieldsSchema } from '../../fields/RegistrationAndOperationalAddressFields/types';
2
- import type { JpAddressSchema } from '../../forms/Address/localized/jp/jpAddressSchema';
3
2
  import type { AddressSchema } from '../../forms/Address/types';
4
- export declare const ALL_ADDRESS_FIELDS: ("city" | "country" | "postalCode" | "searchAddress" | "stateOrProvince" | "street" | "street2" | "jaHaniStateOrProvince" | "jaHaniCity" | "jaHaniStreet" | "jaKanaCity" | "jaKanaStateOrProvince" | "street2FullWidth")[];
5
3
  /**
6
4
  * Parses the nested trusted fields on a legal entity e.g. ['registrationAddress.address', 'registrationAddress.postalCode'],
7
5
  * rebuilding them into the flattened, prefixed fields for the addresses, e.g., `registrationAddress.address` -> `registrationAddressAddress`
@@ -17,12 +15,12 @@ export declare const getNestedTrustedFields: (prefix: "registrationAddress" | "o
17
15
  *
18
16
  * `flattenAddressSchema('registrationAddress', { city: 'Chicago' })` -> `{ registrationAddressCity: 'Chicago' }`
19
17
  */
20
- export declare function flattenAddressSchema(prefix: 'registrationAddress' | 'operationalAddress', address: (AddressSchema & JpAddressSchema) | undefined): Partial<RegistrationAndOperationalAddressFieldsSchema>;
18
+ export declare function flattenAddressSchema(prefix: 'registrationAddress' | 'operationalAddress', address: AddressSchema | undefined): Partial<RegistrationAndOperationalAddressFieldsSchema>;
21
19
  /**
22
20
  * Nests a flattened address schema, removing the provided prefix from each field. Used for
23
21
  * utilities that still expect nested data.
24
22
  *
25
23
  * `flattenAddressSchema('registrationAddress', { registrationAddressCity: 'Chicago' })` -> `{ city: 'Chicago' }`
26
24
  */
27
- export declare function nestAddressSchema(prefix: 'registrationAddress' | 'operationalAddress', flatData: RegistrationAndOperationalAddressFieldsSchema | undefined): AddressSchema & JpAddressSchema;
25
+ export declare function nestAddressSchema(prefix: 'registrationAddress' | 'operationalAddress', flatData: RegistrationAndOperationalAddressFieldsSchema | undefined): AddressSchema;
28
26
  export declare const getPrefixedAddressFieldNames: <T extends Partial<RegistrationAndOperationalAddressFieldsSchema>>(prefix: "registrationAddress" | "operationalAddress") => (keyof T)[];
@@ -4,6 +4,9 @@ export interface ReportedValueOptionFieldSchema {
4
4
  reportedValueOption?: 'balanceSheetTotal' | 'annualTurnover';
5
5
  balanceSheetTotal?: number;
6
6
  annualTurnover?: number;
7
+ yearlyRevenue?: number;
8
+ totalDebt?: number;
9
+ cashPosition?: number;
7
10
  }
8
11
  export interface ReportedValueOptionFieldProps extends Pick<BaseFormFieldProps<ReportedValueOptionFieldSchema>, 'data' | 'valid' | 'errors' | 'handleChangeFor'> {
9
12
  currency: Currency;