@adyen/kyc-components 4.22.0-beta.0 → 4.22.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (143) hide show
  1. package/dist/{AcceptTermsOfServiceWorkflow-D2mvc_PB.js → AcceptTermsOfServiceWorkflow-CLA1JNzc.js} +4 -4
  2. package/dist/{Accordion-DEivLTcw.js → Accordion-Cwp-Xc7e.js} +1 -1
  3. package/dist/{AccountSetupRejected-pcQcFAhQ.js → AccountSetupRejected-B2h3LRDZ.js} +1 -1
  4. package/dist/{AdaptiveWorkflow-C0EsaW8F.js → AdaptiveWorkflow-BHooRzh_.js} +16 -16
  5. package/dist/{AdaptiveWorkflowComponent-Nk2CJaU4.js → AdaptiveWorkflowComponent-D1EALddI.js} +3 -3
  6. package/dist/{AddressFields-3kqeRdC_.js → AddressFields-CU23S3JV.js} +10 -10
  7. package/dist/{Avatar-DHyXCNwV.js → Avatar-BbOb0bui.js} +1 -1
  8. package/dist/{BusinessFinancingDropin-BOECqGNd.js → BusinessFinancingDropin-Cc0oB8ka.js} +24 -26
  9. package/dist/{BusinessFinancingPage-DSy5an97.js → BusinessFinancingPage-D0EmBl9D.js} +3 -3
  10. package/dist/{BusinessRegistrationNumberField-DHccXqsX.js → BusinessRegistrationNumberField-c8mvmS4m.js} +5 -5
  11. package/dist/{BusinessRegistrationNumberFieldGroup-2e9GKH-i.js → BusinessRegistrationNumberFieldGroup-DNZALTo_.js} +5 -5
  12. package/dist/{BusinessTypeSelectionPage-BraXRUrg.js → BusinessTypeSelectionPage-CYjrUqoM.js} +12 -12
  13. package/dist/{Button-nDbNtBn3.js → Button-oqvTDztg.js} +1 -1
  14. package/dist/{Checkbox-BiKnP2fS.js → Checkbox-2Rp9bWYN.js} +1 -1
  15. package/dist/{ComponentGroup-Due-N8Yz.js → ComponentGroup-DbWo8fnI.js} +3 -3
  16. package/dist/{ConstitutionalDocument-CtRHXMb9.js → ConstitutionalDocument-64rqHz7d.js} +14 -14
  17. package/dist/{ContactDetails-Syyy5BfB.js → ContactDetails-ucx3UuP8.js} +5 -5
  18. package/dist/{ContextGuidance-D8leB0D6.js → ContextGuidance-CIwiyrm9.js} +2 -2
  19. package/dist/{Currency-CFsMnSP0.js → Currency-fvQfdQ2i.js} +5 -5
  20. package/dist/{CustomerSupport-DqayB3BM.js → CustomerSupport-CHHRYNTG.js} +11 -11
  21. package/dist/{DataConflictsModal-Bz2SYyi5.js → DataConflictsModal-BJHJVW3V.js} +6 -6
  22. package/dist/{DebugModal-fH0uKl1E.js → DebugModal-CptS2b87.js} +10 -10
  23. package/dist/{DecisionMakerDetails-7IPREpy1.js → DecisionMakerDetails-a_G8S1S9.js} +12 -12
  24. package/dist/{DecisionMakerDetailsPage-Bs9q7sxc.js → DecisionMakerDetailsPage-BsiheWPy.js} +7 -7
  25. package/dist/{DecisionMakers-Dw66GRhZ.js → DecisionMakers-DC3r2UzN.js} +12 -12
  26. package/dist/{Dropzone-CjLSK2UN.js → Dropzone-CTdbCPiL.js} +7 -7
  27. package/dist/{EmbeddedStatus-BIVFBjzu.js → EmbeddedStatus-DqanSUWu.js} +3 -3
  28. package/dist/{EndStateLayout-D2CSEwEn.js → EndStateLayout-CRNRpDeu.js} +2 -2
  29. package/dist/{EntityAssociation-LF_5ihhI.js → EntityAssociation-DqTOqixv.js} +6 -6
  30. package/dist/{ErrorPanel-tLtZnFnX.js → ErrorPanel-jcVYNW8o.js} +2 -2
  31. package/dist/{GlobalEntryModal-CY-t1fGQ.js → GlobalEntryModal-Bwy0lfz2.js} +209 -47
  32. package/dist/{GlobalEntryPage-xX4ruKnx.js → GlobalEntryPage-DPKND7LX.js} +11 -8
  33. package/dist/{Icon-BcaP-f1D.js → Icon-BblJeZYj.js} +1 -1
  34. package/dist/{IdentityNumber-4ky6SOcb.js → IdentityNumber-D9t0xamT.js} +5 -5
  35. package/dist/{IdentityNumberFieldGroup-BKKmSfLG.js → IdentityNumberFieldGroup-0Ll_77LW.js} +2 -2
  36. package/dist/{IdentityScreeningWorkflow-D0eNj4nD.js → IdentityScreeningWorkflow-DESXjfuC.js} +12 -12
  37. package/dist/{Individual.rules-PKwY3D-0.js → Individual.rules-4BHmKpNa.js} +4 -4
  38. package/dist/{IndividualDropin-DrQiG_Vy.js → IndividualDropin-CMejkT3R.js} +36 -39
  39. package/dist/{IndustryCodeFieldGroup-jm8KFccr.js → IndustryCodeFieldGroup-xFrcCogG.js} +4 -4
  40. package/dist/{InputDate-C14J5Af2.js → InputDate-DMcomeFj.js} +2 -2
  41. package/dist/{InputText-Dr-Wg0uc.js → InputText-BqeL5dXt.js} +3 -3
  42. package/dist/{Introduction-DXAxkrDG.js → Introduction-6WPMkIpx.js} +6 -6
  43. package/dist/{InvitedDecisionMakerComponent-CPMIUjiE.js → InvitedDecisionMakerComponent-w0xQxDgC.js} +9 -9
  44. package/dist/{JpAddressFields-olKUlhpt.js → JpAddressFields-Cic1nSNI.js} +8 -8
  45. package/dist/{LegalCompanyNameField-BrdI-awc.js → LegalCompanyNameField-Dl60xD84.js} +5 -5
  46. package/dist/{LegalName-CWoSqy0V.js → LegalName-DDKN6L93.js} +3 -3
  47. package/dist/{LegalRepresentativeDetailsPage-Ca3FLoSd.js → LegalRepresentativeDetailsPage-B2ubp7Rb.js} +3 -3
  48. package/dist/{Link-opuU6bLF.js → Link-Bb1XDrs1.js} +1 -1
  49. package/dist/{ListItem-CbjOa0L_.js → ListItem-CI4fqIkg.js} +2 -2
  50. package/dist/{Modal-BDNS-0rS.js → Modal-By_wpf9o.js} +2 -2
  51. package/dist/{Name-CxlxPgUR.js → Name-BpKVUmoY.js} +4 -4
  52. package/dist/{NewSummary-mLsovGX8.js → NewSummary-Bmi54FYk.js} +6 -6
  53. package/dist/{PatriotActDisclosure-kOnDnF8P.js → PatriotActDisclosure-DsZX3cb-.js} +9 -9
  54. package/dist/{PayoutDetailsDropin-CZ77wefd.js → PayoutDetailsDropin-BkzjalFb.js} +24 -24
  55. package/dist/{PayoutDetailsPage-Cyy-fDbK.js → PayoutDetailsPage-BLbHUm0I.js} +4 -4
  56. package/dist/{RadioGroup-C0mNADXE.js → RadioGroup-e6Ty_ggj.js} +11 -11
  57. package/dist/{Review-CDtJh9j3.js → Review-BG_iSaAN.js} +6 -6
  58. package/dist/{RootBusinessDetailsPage-CnVWFx0H.js → RootBusinessDetailsPage-D6ZEfFr4.js} +3 -3
  59. package/dist/{RootBusinessLinesPage-Dtx9X-mD.js → RootBusinessLinesPage-B6Swhdyx.js} +20 -20
  60. package/dist/{RootIndividualDetailsPage-q8PZ0Khk.js → RootIndividualDetailsPage-2Bu7fbyB.js} +4 -4
  61. package/dist/{Select-UO37dd_q.js → Select-CrcaoG0i.js} +6 -6
  62. package/dist/{SignPCIComponent-D21OqVWo.js → SignPCIComponent-B4Iz8PXX.js} +12 -12
  63. package/dist/{SingpassSelection-CRYphIRT.js → SingpassSelection-D2NSiGzi.js} +4 -4
  64. package/dist/{SoleProprietorshipPage-BKB0sRiP.js → SoleProprietorshipPage-bJ6oea6W.js} +3 -3
  65. package/dist/{SourceOfFundsPage-C2ZEp0lT.js → SourceOfFundsPage-Bu9e93PV.js} +23 -25
  66. package/dist/{SourceOfFundsWorkflow-Cy12c7ou.js → SourceOfFundsWorkflow-CW7McbuG.js} +4 -4
  67. package/dist/{StateField-CWS8eXex.js → StateField-BnyUQjAj.js} +46 -5
  68. package/dist/{Step-CYG94mSp.js → Step-CZq7qzCe.js} +4 -4
  69. package/dist/{Task-D6xuGucd.js → Task-Jhx4xFyF.js} +7 -7
  70. package/dist/{TaskGroup-C4ND30dB.js → TaskGroup-CHPDt1lw.js} +3 -3
  71. package/dist/{TaskListItem-Dc6n6llv.js → TaskListItem-BAHYod3y.js} +10 -10
  72. package/dist/{TaskStepperContextProvider-CvChF1W5.js → TaskStepperContextProvider-BtpYUg5S.js} +1 -1
  73. package/dist/{TaskVerificationStatus-pjPK5vVN.js → TaskVerificationStatus-onOyOzoM.js} +1 -1
  74. package/dist/{TaxInformationFieldGroup-BACQgHQ7.js → TaxInformationFieldGroup-D4bSgrDG.js} +7 -7
  75. package/dist/{TaxReportingDropin-DmOclyYQ.js → TaxReportingDropin-BD-WaKf5.js} +13 -13
  76. package/dist/{TaxReportingWorkflow-CBEB7oAn.js → TaxReportingWorkflow-UVCd2CGW.js} +4 -4
  77. package/dist/{TermsOfServiceManagement-No_9QGjv.js → TermsOfServiceManagement-Czlvu-_X.js} +11 -11
  78. package/dist/{TextArea-BzY5efza.js → TextArea-Doiwq6Fz.js} +4 -4
  79. package/dist/{TrustDetailsPage-BHjbebZX.js → TrustDetailsPage-Do_Pgp5e.js} +21 -23
  80. package/dist/{TrustMemberCompanyPage-BSe-Pn1O.js → TrustMemberCompanyPage-COKJWVwj.js} +4 -4
  81. package/dist/{TrustMemberIndividualPage-DxlZQF6W.js → TrustMemberIndividualPage-BTzYVATe.js} +3 -3
  82. package/dist/{TrustMemberRoleAndTypePage-AtlXyfKk.js → TrustMemberRoleAndTypePage-CvT2NyPL.js} +15 -16
  83. package/dist/{TrustMembersOverview-DpmUv4Vj.js → TrustMembersOverview-Dx2d70H1.js} +10 -10
  84. package/dist/{UboTaskItem-ESC2Ze3o.js → UboTaskItem-DItfn-Pd.js} +7 -7
  85. package/dist/{UnincorporatedPartnershipIndividualPage-BVpz27KZ.js → UnincorporatedPartnershipIndividualPage-CLBFd1-S.js} +3 -3
  86. package/dist/{UnincorporatedPartnershipMemberCompanyPage-BBxtLGt0.js → UnincorporatedPartnershipMemberCompanyPage-5RlKVr20.js} +4 -4
  87. package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-BuI7aE3O.js → UnincorporatedPartnershipMemberRoleAndTypePage-D3j7kPUH.js} +8 -8
  88. package/dist/{UnincorporatedPartnershipMembersOverview-sE8-A2hQ.js → UnincorporatedPartnershipMembersOverview-BrypfDgd.js} +6 -6
  89. package/dist/{VerificationErrorAlert-BCEhkhpr.js → VerificationErrorAlert-Dg0EN5Gg.js} +2 -2
  90. package/dist/{Workflow-CzSGihyD.js → Workflow-BbFLvLAf.js} +6 -6
  91. package/dist/{accountHolderUtils-3WiED1-j.js → accountHolderUtils-BnH2f3aW.js} +1 -1
  92. package/dist/adyen-business-financing.js +4 -4
  93. package/dist/adyen-individual-configuration.js +3 -3
  94. package/dist/adyen-individual-status.js +3 -3
  95. package/dist/adyen-invited-decision-maker.js +3 -3
  96. package/dist/adyen-onboarding.js +34 -25
  97. package/dist/adyen-terms-of-service-management.js +3 -3
  98. package/dist/adyen-terms-of-service-status.js +3 -3
  99. package/dist/adyen-transfer-instrument-configuration.js +3 -3
  100. package/dist/adyen-transfer-instrument-management.js +10 -10
  101. package/dist/adyen-verification-status.js +3 -3
  102. package/dist/{bafinUtils-h8n1IbJ9.js → bafinUtils-F8i4raV6.js} +9 -9
  103. package/dist/{constants-B9iXz9xK.js → constants-C1GRcz1y.js} +4 -4
  104. package/dist/{error-CHFF8jLc.js → error-3d6yiTPF.js} +3 -3
  105. package/dist/{form-rules-CKwx5XtT.js → form-rules-BhIs9ilj.js} +5 -5
  106. package/dist/{formatValidationError-DZ1CxHdw.js → formatValidationError-DdKr3rgo.js} +1 -1
  107. package/dist/{getDefaultRegistrationNumberType-6m6DEmW8.js → getDefaultRegistrationNumberType-CfU1YUaz.js} +5 -5
  108. package/dist/{getTrustedDecisionMakers-qs2frwk2.js → getTrustedDecisionMakers-Brlr-pKL.js} +1 -1
  109. package/dist/{mapJpAddressSchemaToAddressLocalizations-CX2djRYM.js → mapJpAddressSchemaToAddressLocalizations-CWb68lJV.js} +2 -2
  110. package/dist/{mapLegalEntityToIndividualSchema-ChE9qTUB.js → mapLegalEntityToIndividualSchema-B3XhBnaa.js} +6 -6
  111. package/dist/{mapTransferInstrumentToPayoutAccount-BmSbFaJJ.js → mapTransferInstrumentToPayoutAccount-n4ffPJ2c.js} +2 -2
  112. package/dist/{processValidationErrors-CRWq2tu-.js → processValidationErrors-BfqJR1rP.js} +3 -3
  113. package/dist/{resolveEnvironment-D2iMH7UD.js → resolveEnvironment-Bp-RuIhz.js} +9 -9
  114. package/dist/types/components/GlobalEntry/globalEntryKeyMapping.d.ts +15 -0
  115. package/dist/types/components/GlobalEntry/tasks/GlobalEntryModal.d.ts +6 -2
  116. package/dist/types/components/GlobalEntry/tasks/GlobalEntryPage.d.ts +5 -1
  117. package/dist/types/components/GlobalEntry/utils.d.ts +22 -1
  118. package/dist/types/components/Shared/FormFlow/FormFlow.d.ts +1 -1
  119. package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +1 -0
  120. package/dist/types/router/routeConfig.d.ts +1 -1
  121. package/dist/{types-Bdfu7HN6.js → types-C6GnB9nH.js} +1 -1
  122. package/dist/{useBusinessDetailsData-DZQuIMNw.js → useBusinessDetailsData-UyUhXzON.js} +38 -41
  123. package/dist/{useCanSeeIntroduction-BGYdkMIE.js → useCanSeeIntroduction-C6qXZZe8.js} +2 -2
  124. package/dist/{useForm-BJq32Ve1.js → useForm-BhfuVkAR.js} +2 -2
  125. package/dist/{useHideTaskStepper-CcCmW80A.js → useHideTaskStepper-Dlzsx-RK.js} +1 -1
  126. package/dist/{useId-BMocIuPK.js → useId-DqpXTon5.js} +1 -1
  127. package/dist/{useNavigate-D4ypqPBN.js → useNavigate-Xc0HARgb.js} +33 -33
  128. package/dist/{useSalesChannels-BCzs8Xya.js → useSalesChannels-gzi6QOI7.js} +2 -2
  129. package/dist/{useTaskLandedEvent-Cf1fN_gV.js → useTaskLandedEvent-BXv-wuAJ.js} +1 -1
  130. package/dist/{useTrustMembers-DqpnYNNj.js → useTrustMembers-wjNlRtOm.js} +1 -1
  131. package/dist/{useUnincorporatedPartnershipMembers-w3dG_nyc.js → useUnincorporatedPartnershipMembers-CfpBIS06.js} +1 -1
  132. package/dist/{utils-BMhvbUV1.js → utils-DebuaWe9.js} +4 -4
  133. package/dist/{StructuredList-CqZM_5X9.js → utils-DyriwmGv.js} +94 -5
  134. package/dist/{validate-DiEa5w30.js → validate-C2fajdCR.js} +4 -4
  135. package/dist/{validate-RLWN-I5L.js → validate-DruWE6jY.js} +2 -2
  136. package/dist/{validate-Dfw99Sal.js → validate-DzNLLQoR.js} +3 -3
  137. package/dist/{validate-BqIbVY0E.js → validate-MsZ6MiUq.js} +7 -7
  138. package/dist/{validateExtractionResult-DueyX5oY.js → validateExtractionResult-BfwUJj1D.js} +2 -2
  139. package/dist/{validationError-BhICjGiF.js → validationError-DudGlB6v.js} +2 -2
  140. package/package.json +1 -1
  141. package/dist/useCreateLegalEntity-CYZd_62a.js +0 -24
  142. package/dist/useUpdateLegalEntity-CvACAgDP.js +0 -29
  143. package/dist/utils-DdHbAadK.js +0 -80
@@ -1,11 +1,11 @@
1
1
  try {
2
2
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "8afb634a-c29c-41db-a179-66d90476b418", e._sentryDebugIdIdentifier = "sentry-dbid-8afb634a-c29c-41db-a179-66d90476b418");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "48814dfa-39da-4f52-9aa4-30f812478fa0", e._sentryDebugIdIdentifier = "sentry-dbid-48814dfa-39da-4f52-9aa4-30f812478fa0");
4
4
  } catch (e) {}
5
- import { $ as hasRepeatedCharacters, H as NO_ALPHABET_REGEX, K as chomeAndBanchiValidator, Q as hasMaximumTwoRepeatedCharacters, R as ADDRESS_VALID_CHAR_REGEX, U as NO_ALPHABET_UNICODE_REGEX, et as hasText, it as isInvalidName, ot as isValidMinLength, st as matchesRegex, z as EMOJI_REGEX } from "./resolveEnvironment-D2iMH7UD.js";
5
+ import { $ as hasRepeatedCharacters, H as NO_ALPHABET_REGEX, K as chomeAndBanchiValidator, Q as hasMaximumTwoRepeatedCharacters, R as ADDRESS_VALID_CHAR_REGEX, U as NO_ALPHABET_UNICODE_REGEX, et as hasText, it as isInvalidName, ot as isValidMinLength, st as matchesRegex, z as EMOJI_REGEX } from "./resolveEnvironment-Bp-RuIhz.js";
6
6
  import { t as createLogger } from "./logger-Z8AeTE4x.js";
7
7
  import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
8
- import { r as countrySpecificFormatters } from "./InputDate-C14J5Af2.js";
8
+ import { r as countrySpecificFormatters } from "./InputDate-DMcomeFj.js";
9
9
  //#region src/utils/regex/postalCodePatterns.ts
10
10
  var createRegExpByDigits = (digits) => new RegExp(`^\\d{${digits}}$`);
11
11
  var postalCodePatterns = {
@@ -1,18 +1,18 @@
1
1
  try {
2
2
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "d2229fa3-e337-43fc-b3d4-f8c6afba9734", e._sentryDebugIdIdentifier = "sentry-dbid-d2229fa3-e337-43fc-b3d4-f8c6afba9734");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "0841c7d6-b694-415c-a12c-ce84953aaaed", e._sentryDebugIdIdentifier = "sentry-dbid-0841c7d6-b694-415c-a12c-ce84953aaaed");
4
4
  } catch (e) {}
5
5
  import { r as useTranslation } from "./translation-BOm4lmPx.js";
6
- import { j as useToggleContext, nt as isEmpty } from "./resolveEnvironment-D2iMH7UD.js";
6
+ import { j as useToggleContext, nt as isEmpty } from "./resolveEnvironment-Bp-RuIhz.js";
7
7
  import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
8
8
  import { s as keysOf } from "./genUtils-Ce61IJs8.js";
9
9
  import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
10
10
  import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
11
- import { r as KEYBOARD_KEYS } from "./Modal-BDNS-0rS.js";
12
- import { m as resolveFieldMetadata, p as convertFullToHalf } from "./form-rules-CKwx5XtT.js";
13
- import { B as toFullWidth, H as CompanyTypesValues, V as isJapanLocalizationEnabled, k as REGISTRATION_NUMBER_EXEMPTION_RULES, v as COUNTRIES_REQUIRING_FINANCIAL_INFORMATION } from "./bafinUtils-h8n1IbJ9.js";
14
- import { i as validateJaKanaLegalCompanyName, r as validateJaHaniLegalCompanyName, u as CountryField } from "./RadioGroup-C0mNADXE.js";
15
- import { a as defaultFieldMetadata, i as defaultFieldConfigV4, o as defaultFieldMetadataV4, r as defaultFieldConfig, s as getLegalCompanyNameGuidanceText, t as LEGAL_COMPANY_NAME_FIELD } from "./LegalCompanyNameField-BrdI-awc.js";
11
+ import { r as KEYBOARD_KEYS } from "./Modal-By_wpf9o.js";
12
+ import { m as resolveFieldMetadata, p as convertFullToHalf } from "./form-rules-BhIs9ilj.js";
13
+ import { B as toFullWidth, H as CompanyTypesValues, V as isJapanLocalizationEnabled, k as REGISTRATION_NUMBER_EXEMPTION_RULES, v as COUNTRIES_REQUIRING_FINANCIAL_INFORMATION } from "./bafinUtils-F8i4raV6.js";
14
+ import { i as validateJaKanaLegalCompanyName, r as validateJaHaniLegalCompanyName, u as CountryField } from "./RadioGroup-e6Ty_ggj.js";
15
+ import { a as defaultFieldMetadata, i as defaultFieldConfigV4, o as defaultFieldMetadataV4, r as defaultFieldConfig, s as getLegalCompanyNameGuidanceText, t as LEGAL_COMPANY_NAME_FIELD } from "./LegalCompanyNameField-Dl60xD84.js";
16
16
  import { useEffect } from "preact/hooks";
17
17
  import { jsx } from "preact/jsx-runtime";
18
18
  var localizedLegalCompanyNameFieldConfig = {
@@ -1,11 +1,11 @@
1
1
  try {
2
2
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "20537e44-9139-496f-a6de-e148333a2710", e._sentryDebugIdIdentifier = "sentry-dbid-20537e44-9139-496f-a6de-e148333a2710");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "de2ce97d-82f5-405c-835c-ded1259d3f49", e._sentryDebugIdIdentifier = "sentry-dbid-de2ce97d-82f5-405c-835c-ded1259d3f49");
4
4
  } catch (e) {}
5
5
  import { r as useTranslation } from "./translation-BOm4lmPx.js";
6
6
  import { t as createLogger } from "./logger-Z8AeTE4x.js";
7
7
  import { t as Typography } from "./Typography-CAc_f5Iq.js";
8
- import { n as IconButton, t as Button } from "./Button-nDbNtBn3.js";
8
+ import { n as IconButton, t as Button } from "./Button-oqvTDztg.js";
9
9
  import { r as httpPost, s as useApiContext } from "./http-DsJtugN1.js";
10
10
  import { a as objectsDeepEqual, c as valuesOf, s as keysOf } from "./genUtils-Ce61IJs8.js";
11
11
  import { t as localizeDateString } from "./localizeDateString-Dxlqr4rL.js";
@@ -1,8 +1,8 @@
1
1
  try {
2
2
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "fe069c3d-976e-4c92-ae0c-b9f7c6cf442d", e._sentryDebugIdIdentifier = "sentry-dbid-fe069c3d-976e-4c92-ae0c-b9f7c6cf442d");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "fae48524-6bfc-48f8-be66-5851d92f7143", e._sentryDebugIdIdentifier = "sentry-dbid-fae48524-6bfc-48f8-be66-5851d92f7143");
4
4
  } catch (e) {}
5
- import { i as getFieldNameFromPath } from "./ErrorPanel-tLtZnFnX.js";
5
+ import { i as getFieldNameFromPath } from "./ErrorPanel-jcVYNW8o.js";
6
6
  //#region src/utils/validationError.ts
7
7
  var API_VALIDATION_ERROR_CODE = "30_102";
8
8
  var ID_DOCUMENT_UPLOAD_ERROR_CODE = "30_105";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/kyc-components",
3
- "version": "4.22.0-beta.0",
3
+ "version": "4.22.0-beta.1",
4
4
  "keywords": [
5
5
  "adyen",
6
6
  "adyen-for-platforms",
@@ -1,24 +0,0 @@
1
- try {
2
- let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "7bbcbbcd-5935-4626-97b4-2b208e820706", e._sentryDebugIdIdentifier = "sentry-dbid-7bbcbbcd-5935-4626-97b4-2b208e820706");
4
- } catch (e) {}
5
- import { r as httpPost, s as useApiContext } from "./http-DsJtugN1.js";
6
- import { useMutation } from "@tanstack/preact-query";
7
- //#region src/api/createLegalEntity/useCreateLegalEntity.ts
8
- var createLegalEntity = async (legalEntityId, baseUrl, data) => {
9
- return httpPost({
10
- baseUrl,
11
- path: `legalEntities/${legalEntityId}/create`
12
- }, data);
13
- };
14
- var useCreateLegalEntity = (options) => {
15
- const { rootLegalEntityId, baseUrl } = useApiContext();
16
- return useMutation({
17
- mutationFn: (payload) => {
18
- return createLegalEntity(rootLegalEntityId.value, baseUrl.value, payload);
19
- },
20
- ...options
21
- });
22
- };
23
- //#endregion
24
- export { useCreateLegalEntity as t };
@@ -1,29 +0,0 @@
1
- try {
2
- let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "3b0e8947-1d97-4e8b-9b54-a6335d19d089", e._sentryDebugIdIdentifier = "sentry-dbid-3b0e8947-1d97-4e8b-9b54-a6335d19d089");
4
- } catch (e) {}
5
- import { r as httpPost, s as useApiContext } from "./http-DsJtugN1.js";
6
- import { n as useInvalidateRootLegalEntity } from "./useId-BMocIuPK.js";
7
- import { useMutation, useQueryClient } from "@tanstack/preact-query";
8
- //#region src/api/legalEntity/useUpdateLegalEntity.ts
9
- var updateLegalEntity = async (rootLegalEntityId, baseUrl, data) => {
10
- return httpPost({
11
- baseUrl,
12
- path: `legalEntities/${rootLegalEntityId}`
13
- }, data);
14
- };
15
- var useUpdateLegalEntity = (options) => {
16
- const { rootLegalEntityId, baseUrl } = useApiContext();
17
- const invalidateRootLegalEntity = useInvalidateRootLegalEntity();
18
- const queryClient = useQueryClient();
19
- return useMutation({
20
- mutationFn: (payload) => updateLegalEntity(rootLegalEntityId.value, baseUrl.value, payload),
21
- onSuccess: async (response, payload) => {
22
- if (response.id === rootLegalEntityId.value) await invalidateRootLegalEntity();
23
- else queryClient.setQueryData(["legalEntity", payload.id], response);
24
- },
25
- ...options
26
- });
27
- };
28
- //#endregion
29
- export { useUpdateLegalEntity as t };
@@ -1,80 +0,0 @@
1
- try {
2
- let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "ffdd995a-7104-4d0a-bc33-35a8a818d69c", e._sentryDebugIdIdentifier = "sentry-dbid-ffdd995a-7104-4d0a-bc33-35a8a818d69c");
4
- } catch (e) {}
5
- function getProp(object, path) {
6
- return path.split(".").reduce((xs, x) => xs && xs[x] !== void 0 ? xs[x] : void 0, object);
7
- }
8
- /**
9
- * assigns the value provided to the key in targetObject.
10
- * @param path - keys separated by a delimiter.
11
- * @param obj - object to which value will be assigned
12
- * @param val - value to be assigned
13
- *
14
- * @example
15
- * ```
16
- * targetObject = {};
17
- * assignToProp('x.y.z', targetObject, 'foo');
18
- * console.log(targetObject); => {x:{y:{z:'foo'}}}
19
- * ```
20
- */
21
- function assignToProp(path, obj, val) {
22
- const splitPath = path.split(".");
23
- const pathDepth = splitPath.length;
24
- let currentObj = obj;
25
- splitPath.forEach((key, index) => {
26
- if (index === pathDepth - 1) currentObj[key] = val;
27
- else {
28
- if (!currentObj[key]) currentObj[key] = {};
29
- currentObj = currentObj[key];
30
- }
31
- });
32
- }
33
- function deleteProp(path, obj) {
34
- const splitPath = path.split(".");
35
- const pathDepth = splitPath.length;
36
- let currentObj = obj;
37
- splitPath.forEach((key, index) => {
38
- if (currentObj[key] === void 0) throw Error(`The given path does not exist on the object: ${key} (${path})`);
39
- if (index === pathDepth - 1) delete currentObj[key];
40
- else currentObj = currentObj[key];
41
- });
42
- }
43
- /**
44
- * @param obj - source object
45
- * @param mapping - key mappings from source to target object structure
46
- * @example
47
- * ```
48
- * let mapping={ 'a.b': 'x.y.z'}
49
- * let obj = {x: {y: {z: 'foo'}}}
50
- * formatObject(obj, mapping) => {a:{b:'foo'}}
51
- * ```
52
- */
53
- var formatObject = (obj, mapping) => {
54
- const formattedObj = {};
55
- Object.entries(mapping).forEach(([targetKey, sourceKey]) => {
56
- const value = getProp(obj, sourceKey);
57
- if (value !== void 0) assignToProp(targetKey, formattedObj, value);
58
- });
59
- return formattedObj;
60
- };
61
- /**
62
- * @param obj - source object
63
- * @param mapping - key mappings from target to source object structure
64
- * @example
65
- * ```
66
- * let mapping={ 'a.b': 'x.y.z'}
67
- * let obj = {x: {y: {z: 'foo'}}}
68
- * formatObject(obj, mapping) => {a:{b:'foo'}}
69
- * ```
70
- */
71
- var mapWith = (obj, mapping) => {
72
- const formattedObj = {};
73
- for (const [sourceKey, targetKey] of Object.entries(mapping)) {
74
- const value = getProp(obj, sourceKey);
75
- if (value !== void 0) assignToProp(targetKey, formattedObj, value);
76
- }
77
- return formattedObj;
78
- };
79
- //#endregion
80
- export { mapWith as a, getProp as i, deleteProp as n, formatObject as r, assignToProp as t };