@adyen/kyc-components 3.79.6 → 3.79.8

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 (79) hide show
  1. package/dist/{AcceptTermsOfServiceComponent-CxlsswDe.js → AcceptTermsOfServiceComponent-CvBncbDK.js} +5 -5
  2. package/dist/{AccountSetupRejected-DJZlyMXP.js → AccountSetupRejected-K6hoUisO.js} +2 -2
  3. package/dist/{Avatar-DZ0JMZzW.js → Avatar-D3r48uwO.js} +1 -1
  4. package/dist/{BusinessDetailsDropin-fQi44NMX.js → BusinessDetailsDropin-BNFfTz4N.js} +6 -6
  5. package/dist/{BusinessFinancingComponent-Y_4y49UE.js → BusinessFinancingComponent-BvNFQvsY.js} +2 -2
  6. package/dist/{BusinessFinancingDropin-D8fpMbzf.js → BusinessFinancingDropin-C4L5jeHq.js} +8 -8
  7. package/dist/{BusinessFinancingPage-WEATbBQ3.js → BusinessFinancingPage-B97eSHgm.js} +2 -2
  8. package/dist/{BusinessTypeSelectionPage-RcJfOlJn.js → BusinessTypeSelectionPage-B7bX-W4q.js} +3 -3
  9. package/dist/{ContractViewer-5ZoVLg57.js → ContractViewer-KWy8AMkE.js} +1 -1
  10. package/dist/{CreateIndividualComponent-C7A8u43W.js → CreateIndividualComponent-CKx7SwzM.js} +2 -2
  11. package/dist/{CreateTransferInstrumentComponent-DoLikB9W.js → CreateTransferInstrumentComponent-CmeFRaHY.js} +1 -1
  12. package/dist/{CustomerSupport-CXo6cQS1.js → CustomerSupport-RECXwijV.js} +4 -4
  13. package/dist/{DebugModal-BEVHhoY-.js → DebugModal-C5yOlHoc.js} +8 -8
  14. package/dist/{DecisionMakerDetailsPage-CEDKTbMt.js → DecisionMakerDetailsPage-DwhEhTKP.js} +2 -2
  15. package/dist/{DecisionMakers-BgtfZ8GW.js → DecisionMakers-C9d2OKba.js} +3 -3
  16. package/dist/{EmbeddedStatus-D9uJM2I7.js → EmbeddedStatus-DF9_tLmF.js} +2 -2
  17. package/dist/{FormEndState-Ytnk1eJG.js → FormEndState-CMJLGaZB.js} +1 -1
  18. package/dist/{FormFlow-Cqk7gI0d.js → FormFlow-DexrAWst.js} +1 -1
  19. package/dist/{IndividualOnfidoDropin-DSDTWPn8.js → IndividualOnfidoDropin-XIfo-Tp5.js} +15 -12
  20. package/dist/{Introduction-CqdVELXg.js → Introduction-DSzLYGKF.js} +2 -2
  21. package/dist/{LandingLayout-frgca7uQ.js → LandingLayout-CkmK88cD.js} +1 -1
  22. package/dist/{LegalRepresentativeDetailsPage-wbQTbF6A.js → LegalRepresentativeDetailsPage-HD-oZoee.js} +2 -2
  23. package/dist/{ManageIndividualComponent-CEGNObp5.js → ManageIndividualComponent-C0KroAy5.js} +3 -3
  24. package/dist/{ManagePCIComponent-CsUdQj8n.js → ManagePCIComponent-DsZbyLGk.js} +3 -3
  25. package/dist/{ManageTermsOfServiceComponent-y5fNtWNr.js → ManageTermsOfServiceComponent-DYe_MkGz.js} +3 -3
  26. package/dist/{ManageTransferInstrumentComponent-McQ1eu4M.js → ManageTransferInstrumentComponent-C7wANLqn.js} +3 -3
  27. package/dist/{OnboardingDropinComponent-Cch9eUJw.js → OnboardingDropinComponent-D-4t_f_V.js} +31 -31
  28. package/dist/{ProviderButton-DflgO7Ds.js → ProviderButton-BAOkGhsp.js} +1 -1
  29. package/dist/{Review-CnkMaLwh.js → Review-CVqIFqae.js} +2 -2
  30. package/dist/{RootBusinessDetailsPage-B67aBIDM.js → RootBusinessDetailsPage-DNgWc8k2.js} +2 -2
  31. package/dist/{RootIndividualDetailsPage-Bl_U_9-9.js → RootIndividualDetailsPage-BF6QVV9f.js} +2 -2
  32. package/dist/{SignPCIComponent-CnOmaZGq.js → SignPCIComponent-CU_22XfH.js} +4 -4
  33. package/dist/{SingpassSelection-S9QNe6lz.js → SingpassSelection-DD0BCFDK.js} +1 -1
  34. package/dist/{SoleProprietorshipPage-BdAyJdBM.js → SoleProprietorshipPage-3kANXCmS.js} +2 -2
  35. package/dist/{SourceOfFundsPage-ZTsglpDg.js → SourceOfFundsPage-DqPzadeq.js} +9 -9
  36. package/dist/{StoreProvider-FGY-AWKM.js → StoreProvider-C9f1cNU1.js} +32 -23
  37. package/dist/{TaskItemStatus-aMPlR4pt.js → TaskItemStatus-Cf_EPMsj.js} +1 -1
  38. package/dist/{TaxReportingDropin-B30LteyS.js → TaxReportingDropin-BynPOewY.js} +6 -6
  39. package/dist/{TileGroup-D8f2nzfF.js → TileGroup-DEn6_dY6.js} +1 -1
  40. package/dist/{TrustDetailsPage-fwL3Jh2B.js → TrustDetailsPage-CqgvdvpC.js} +4 -4
  41. package/dist/{TrustMemberCompanyPage-C79gTM0V.js → TrustMemberCompanyPage-CHMdL0pR.js} +3 -3
  42. package/dist/{TrustMemberIndividualPage-DeSCc9wX.js → TrustMemberIndividualPage-ERJ7GGO0.js} +2 -2
  43. package/dist/{UnincorporatedPartnershipIndividualPage-By4Ib_Wd.js → UnincorporatedPartnershipIndividualPage-CgkOqLFy.js} +2 -2
  44. package/dist/{UnincorporatedPartnershipMemberCompanyPage-COFBpTM_.js → UnincorporatedPartnershipMemberCompanyPage-dk0i0YTR.js} +2 -2
  45. package/dist/{VerificationErrorAlert-Bsy_SYxm.js → VerificationErrorAlert-CZ9R1U9u.js} +1 -1
  46. package/dist/{ViewVerificationStatusComponent-DnGqCtq9.js → ViewVerificationStatusComponent-B8r7DQP_.js} +2 -2
  47. package/dist/adyen-business-financing.js +2 -2
  48. package/dist/adyen-individual.js +2 -2
  49. package/dist/adyen-kyc-components.js +14 -14
  50. package/dist/adyen-manage-individual.js +2 -2
  51. package/dist/adyen-manage-pci.js +2 -2
  52. package/dist/adyen-manage-terms-of-service.js +2 -2
  53. package/dist/adyen-manage-transfer-instruments.js +2 -2
  54. package/dist/adyen-onboarding.js +2 -2
  55. package/dist/adyen-sign-pci.js +2 -2
  56. package/dist/adyen-terms-of-service.js +2 -2
  57. package/dist/adyen-transfer-instrument.js +2 -2
  58. package/dist/adyen-verification-status.js +2 -2
  59. package/dist/{css-nkiMABO0.js → css-B_piGAoR.js} +1 -1
  60. package/dist/{getFieldsWithExistingData-UfIpD426.js → getFieldsWithExistingData-ZQJwfmNg.js} +1 -1
  61. package/dist/{hasDataChanged-BY_-EetZ.js → hasDataChanged-CAXxypQo.js} +1 -1
  62. package/dist/{json-N_oPCNNx.js → json-DrXnw38t.js} +1 -1
  63. package/dist/{localizeDateString-BHT2rwHk.js → localizeDateString-8rLJWShn.js} +1 -1
  64. package/dist/{mapFinancialReportsToFinancialInformation-D5eiCpsS.js → mapFinancialReportsToFinancialInformation-DsGPUKLz.js} +1 -1
  65. package/dist/{plaintext-BXEhmqTe.js → plaintext-CthAkigD.js} +1 -1
  66. package/dist/{resolveEnvironment-D-zsP3RA.js → resolveEnvironment-B_FJpuNt.js} +3 -3
  67. package/dist/{rules-g_wc6GUX.js → rules-DGPc1OTP.js} +1 -1
  68. package/dist/types/api/configurations/useScenarios.d.ts +6 -6
  69. package/dist/types/core/models/api/get-scenarios.d.ts +26 -20
  70. package/dist/{useMultiForm-DtKUEHFb.js → useMultiForm-D5ZOI3Aa.js} +1 -1
  71. package/dist/{useOnboardingStatus-Bs5TS7fK.js → useOnboardingStatus-CQXiKHRZ.js} +1 -1
  72. package/dist/{useSalesChannelsSettings-Bmz_5KJw.js → useSalesChannelsSettings-Zql8KDQv.js} +1 -1
  73. package/dist/{useTermsOfServiceStatus-aQ0hoMK0.js → useTermsOfServiceStatus-CL9FXPiO.js} +1 -1
  74. package/dist/{useUpdateLegalEntity-BNgSPkMo.js → useUpdateLegalEntity-Bg9VWqdX.js} +1 -1
  75. package/dist/{utils-RGgkpJ7K.js → utils-Dh8ZmxRb.js} +3 -3
  76. package/dist/{validate-DCf_SDU1.js → validate-B71wt5Eb.js} +1 -1
  77. package/dist/{validate-e6_m4njO.js → validate-BnncPwEt.js} +1 -1
  78. package/dist/{yaml-a0ovn_cl.js → yaml-BxJwsExg.js} +1 -1
  79. package/package.json +1 -1
@@ -9,8 +9,8 @@
9
9
  ;
10
10
  import { jsx } from "preact/jsx-runtime";
11
11
  import register from "preact-custom-element";
12
- import { s as stylesheets, E as EmbedShell, r as resolveEnvironment } from "./resolveEnvironment-D-zsP3RA.js";
13
- import { M as ManagePCIComponent } from "./ManagePCIComponent-CsUdQj8n.js";
12
+ import { s as stylesheets, E as EmbedShell, r as resolveEnvironment } from "./resolveEnvironment-B_FJpuNt.js";
13
+ import { M as ManagePCIComponent } from "./ManagePCIComponent-DsZbyLGk.js";
14
14
  const AdyenManagePci = ({
15
15
  rootlegalentityid,
16
16
  fetchToken,
@@ -9,8 +9,8 @@
9
9
  ;
10
10
  import { jsx } from "preact/jsx-runtime";
11
11
  import register from "preact-custom-element";
12
- import { s as stylesheets, E as EmbedShell, r as resolveEnvironment } from "./resolveEnvironment-D-zsP3RA.js";
13
- import { M as ManageTermsOfServiceComponent } from "./ManageTermsOfServiceComponent-y5fNtWNr.js";
12
+ import { s as stylesheets, E as EmbedShell, r as resolveEnvironment } from "./resolveEnvironment-B_FJpuNt.js";
13
+ import { M as ManageTermsOfServiceComponent } from "./ManageTermsOfServiceComponent-DYe_MkGz.js";
14
14
  const AdyenManageTermsOfService = ({
15
15
  rootlegalentityid,
16
16
  fetchToken,
@@ -9,8 +9,8 @@
9
9
  ;
10
10
  import { jsx } from "preact/jsx-runtime";
11
11
  import register from "preact-custom-element";
12
- import { s as stylesheets, E as EmbedShell, r as resolveEnvironment } from "./resolveEnvironment-D-zsP3RA.js";
13
- import { M as ManageTransferInstrumentComponent } from "./ManageTransferInstrumentComponent-McQ1eu4M.js";
12
+ import { s as stylesheets, E as EmbedShell, r as resolveEnvironment } from "./resolveEnvironment-B_FJpuNt.js";
13
+ import { M as ManageTransferInstrumentComponent } from "./ManageTransferInstrumentComponent-C7wANLqn.js";
14
14
  const AdyenManageTransferInstruments = ({
15
15
  rootlegalentityid,
16
16
  fetchToken,
@@ -9,8 +9,8 @@
9
9
  ;
10
10
  import { jsx } from "preact/jsx-runtime";
11
11
  import register from "preact-custom-element";
12
- import { s as stylesheets, E as EmbedShell, r as resolveEnvironment } from "./resolveEnvironment-D-zsP3RA.js";
13
- import { O as OnboardingDropinComponent } from "./OnboardingDropinComponent-Cch9eUJw.js";
12
+ import { s as stylesheets, E as EmbedShell, r as resolveEnvironment } from "./resolveEnvironment-B_FJpuNt.js";
13
+ import { O as OnboardingDropinComponent } from "./OnboardingDropinComponent-D-4t_f_V.js";
14
14
  const AdyenOnboarding = ({
15
15
  rootlegalentityid,
16
16
  fetchToken,
@@ -9,8 +9,8 @@
9
9
  ;
10
10
  import { jsx } from "preact/jsx-runtime";
11
11
  import register from "preact-custom-element";
12
- import { s as stylesheets, E as EmbedShell, r as resolveEnvironment } from "./resolveEnvironment-D-zsP3RA.js";
13
- import { SignPCIComponent } from "./SignPCIComponent-CnOmaZGq.js";
12
+ import { s as stylesheets, E as EmbedShell, r as resolveEnvironment } from "./resolveEnvironment-B_FJpuNt.js";
13
+ import { SignPCIComponent } from "./SignPCIComponent-CU_22XfH.js";
14
14
  const AdyenSignPci = ({
15
15
  rootlegalentityid,
16
16
  fetchToken,
@@ -9,8 +9,8 @@
9
9
  ;
10
10
  import { jsx } from "preact/jsx-runtime";
11
11
  import register from "preact-custom-element";
12
- import { s as stylesheets, E as EmbedShell, r as resolveEnvironment } from "./resolveEnvironment-D-zsP3RA.js";
13
- import { AcceptTermsOfServiceComponent } from "./AcceptTermsOfServiceComponent-CxlsswDe.js";
12
+ import { s as stylesheets, E as EmbedShell, r as resolveEnvironment } from "./resolveEnvironment-B_FJpuNt.js";
13
+ import { AcceptTermsOfServiceComponent } from "./AcceptTermsOfServiceComponent-CvBncbDK.js";
14
14
  const AdyenTermsOfService = ({
15
15
  rootlegalentityid,
16
16
  fetchToken,
@@ -9,8 +9,8 @@
9
9
  ;
10
10
  import { jsx } from "preact/jsx-runtime";
11
11
  import register from "preact-custom-element";
12
- import { s as stylesheets, E as EmbedShell, r as resolveEnvironment } from "./resolveEnvironment-D-zsP3RA.js";
13
- import { C as CreateTransferInstrumentComponent } from "./CreateTransferInstrumentComponent-DoLikB9W.js";
12
+ import { s as stylesheets, E as EmbedShell, r as resolveEnvironment } from "./resolveEnvironment-B_FJpuNt.js";
13
+ import { C as CreateTransferInstrumentComponent } from "./CreateTransferInstrumentComponent-CmeFRaHY.js";
14
14
  const AdyenTransferInstrument = ({
15
15
  rootlegalentityid,
16
16
  fetchToken,
@@ -9,8 +9,8 @@
9
9
  ;
10
10
  import { jsx } from "preact/jsx-runtime";
11
11
  import register from "preact-custom-element";
12
- import { s as stylesheets, E as EmbedShell, r as resolveEnvironment } from "./resolveEnvironment-D-zsP3RA.js";
13
- import { V as ViewVerificationStatusComponent } from "./ViewVerificationStatusComponent-DnGqCtq9.js";
12
+ import { s as stylesheets, E as EmbedShell, r as resolveEnvironment } from "./resolveEnvironment-B_FJpuNt.js";
13
+ import { V as ViewVerificationStatusComponent } from "./ViewVerificationStatusComponent-B8r7DQP_.js";
14
14
  const AdyenVerificationStatus = ({
15
15
  rootlegalentityid,
16
16
  fetchToken,
@@ -7,7 +7,7 @@
7
7
  }
8
8
  }
9
9
  ;
10
- import { c as cssProps } from "./DebugModal-BEVHhoY-.js";
10
+ import { c as cssProps } from "./DebugModal-C5yOlHoc.js";
11
11
  const definitions = {
12
12
  any: { regex: /.*/g, css: cssProps.text },
13
13
  property: { regex: /(^|[\r\n])[^:]*:/g, css: cssProps.key },
@@ -7,7 +7,7 @@
7
7
  }
8
8
  }
9
9
  ;
10
- import { dL as getNestedPropertyKeys } from "./StoreProvider-FGY-AWKM.js";
10
+ import { dL as getNestedPropertyKeys } from "./StoreProvider-C9f1cNU1.js";
11
11
  const getFieldsWithExistingData = (legalEntity, keyMapping, documentMapping, knownProblematicFields = []) => {
12
12
  const apiFieldsWithExistingData = getNestedPropertyKeys(legalEntity);
13
13
  const nonDocumentFields = apiFieldsWithExistingData.map((field) => keyMapping[field]).filter(Boolean).filter((field) => !knownProblematicFields.includes(field));
@@ -7,7 +7,7 @@
7
7
  }
8
8
  }
9
9
  ;
10
- import { be as entriesOf, b0 as objectsDeepEqual } from "./StoreProvider-FGY-AWKM.js";
10
+ import { be as entriesOf, b0 as objectsDeepEqual } from "./StoreProvider-C9f1cNU1.js";
11
11
  const hasDataChanged = (initialData, currentData) => entriesOf(currentData ?? {}).some(([key, value]) => {
12
12
  if (typeof value === "object") {
13
13
  return !objectsDeepEqual(value, initialData?.[key]);
@@ -7,7 +7,7 @@
7
7
  }
8
8
  }
9
9
  ;
10
- import { c as cssProps } from "./DebugModal-BEVHhoY-.js";
10
+ import { c as cssProps } from "./DebugModal-C5yOlHoc.js";
11
11
  const definitions = {
12
12
  any: { regex: /.*/g, css: cssProps.text },
13
13
  number: { regex: /-?\d+(\.\d+)?([eE][+-]?\d+)?/g, css: cssProps.number },
@@ -7,7 +7,7 @@
7
7
  }
8
8
  }
9
9
  ;
10
- import { X as createLogger } from "./StoreProvider-FGY-AWKM.js";
10
+ import { X as createLogger } from "./StoreProvider-C9f1cNU1.js";
11
11
  const localizeDateString = (dateString, locale, options) => {
12
12
  const logger = createLogger();
13
13
  const formatOptions = {
@@ -7,7 +7,7 @@
7
7
  }
8
8
  }
9
9
  ;
10
- import { dM as isDateOlderThanAYear, cn as drop } from "./StoreProvider-FGY-AWKM.js";
10
+ import { dM as isDateOlderThanAYear, cn as drop } from "./StoreProvider-C9f1cNU1.js";
11
11
  const mapFinancialInformationToFinancialReport = ({
12
12
  currency,
13
13
  financialReportingDate,
@@ -7,7 +7,7 @@
7
7
  }
8
8
  }
9
9
  ;
10
- import { c as cssProps } from "./DebugModal-BEVHhoY-.js";
10
+ import { c as cssProps } from "./DebugModal-C5yOlHoc.js";
11
11
  const definitions = {
12
12
  any: { regex: /.*/g, css: cssProps.text }
13
13
  };
@@ -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] = "b427f60c-59b4-4b89-890d-f297cfd29d16", e._sentryDebugIdIdentifier = "sentry-dbid-b427f60c-59b4-4b89-890d-f297cfd29d16");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "c1dac8db-0d53-4b4c-8db5-d67730f81c41", e._sentryDebugIdIdentifier = "sentry-dbid-c1dac8db-0d53-4b4c-8db5-d67730f81c41");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsxs, jsx } from "preact/jsx-runtime";
11
- import { br as refreshSession, _ as Button, L as Loader, S as SettingsProvider, Q as QueryClientProvider, f as ApiProvider, E as ExperimentsContextProvider, h as StoreProvider, j as AnalyticsProvider, I as I18nProvider, D as DebugListener, T as ToastContextProvider, k as StateProvider, o as setSdkTokenHandler, n as normalizeEnvironment } from "./StoreProvider-FGY-AWKM.js";
11
+ import { br as refreshSession, _ as Button, L as Loader, S as SettingsProvider, Q as QueryClientProvider, f as ApiProvider, E as ExperimentsContextProvider, h as StoreProvider, j as AnalyticsProvider, I as I18nProvider, D as DebugListener, T as ToastContextProvider, k as StateProvider, o as setSdkTokenHandler, n as normalizeEnvironment } from "./StoreProvider-C9f1cNU1.js";
12
12
  import { useState, useEffect } from "preact/hooks";
13
13
  const sheet = new CSSStyleSheet();
14
14
  const stylesheets = [sheet];
@@ -56,7 +56,7 @@ const EmbedShell = ({
56
56
  experiments,
57
57
  refreshExperiments,
58
58
  children: /* @__PURE__ */ jsxs(StoreProvider, { children: [
59
- /* @__PURE__ */ jsx("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.79.6" }),
59
+ /* @__PURE__ */ jsx("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.79.8" }),
60
60
  /* @__PURE__ */ jsx(
61
61
  AnalyticsProvider,
62
62
  {
@@ -7,7 +7,7 @@
7
7
  }
8
8
  }
9
9
  ;
10
- import { ap as CountryCodes, cP as DecisionMakerType, cQ as createFormRules, cS as allowedCountriesForNominee, bK as getAddressSchemaForCountry, bL as COUNTRIES_WITH_STATES_DATASET, W as TaskTypes, ci as getLocalizedIdDocumentTypeOptions, cT as Scenarios } from "./StoreProvider-FGY-AWKM.js";
10
+ import { ap as CountryCodes, cP as DecisionMakerType, cQ as createFormRules, cS as allowedCountriesForNominee, bK as getAddressSchemaForCountry, bL as COUNTRIES_WITH_STATES_DATASET, W as TaskTypes, ci as getLocalizedIdDocumentTypeOptions, cT as Scenarios } from "./StoreProvider-C9f1cNU1.js";
11
11
  const REQUIRED = "REQUIRED";
12
12
  const OPTIONAL = "OPTIONAL";
13
13
  const SOLE_PROP_COUNTRIES = [
@@ -15,7 +15,7 @@ export type QueryKeyScenarios = ['scenarios', LeType, CountryCode];
15
15
  * @param legalEntityType - needs to be dynamic, might not match the legalEntityId's legalEntityType
16
16
  */
17
17
  export declare const useScenarios: (countryCode: CountryCode, legalEntityType: LeType, options?: QueryOptions<ConfigurationsResponse>) => {
18
- data: ("L" | "L0" | "L1" | "L1_ID" | "L1_IDO" | "L1_NAT" | "L1_IDDOC" | "L_REGDOC" | "L_TAXDOC" | "L_PROOFOFADDRESS" | "L_PH" | "L_MOTION" | "L_TAXINFO" | "L_BAFIN")[] | undefined;
18
+ data: ("L0" | "L1" | "L_TAXINFO" | "L1_ID" | "L1_IDO" | "L1_NAT" | "L1_IDDOC" | "L_PH" | "L_MOTION" | "L" | "L_REGDOC" | "L_TAXDOC" | "L_PROOFOFADDRESS" | "L_BAFIN")[] | undefined;
19
19
  error: Error;
20
20
  isError: true;
21
21
  isPending: false;
@@ -42,7 +42,7 @@ export declare const useScenarios: (countryCode: CountryCode, legalEntityType: L
42
42
  fetchStatus: import("@tanstack/query-core").FetchStatus;
43
43
  promise: Promise<ConfigurationsResponse>;
44
44
  } | {
45
- data: ("L" | "L0" | "L1" | "L1_ID" | "L1_IDO" | "L1_NAT" | "L1_IDDOC" | "L_REGDOC" | "L_TAXDOC" | "L_PROOFOFADDRESS" | "L_PH" | "L_MOTION" | "L_TAXINFO" | "L_BAFIN")[] | undefined;
45
+ data: ("L0" | "L1" | "L_TAXINFO" | "L1_ID" | "L1_IDO" | "L1_NAT" | "L1_IDDOC" | "L_PH" | "L_MOTION" | "L" | "L_REGDOC" | "L_TAXDOC" | "L_PROOFOFADDRESS" | "L_BAFIN")[] | undefined;
46
46
  error: null;
47
47
  isError: false;
48
48
  isPending: false;
@@ -69,7 +69,7 @@ export declare const useScenarios: (countryCode: CountryCode, legalEntityType: L
69
69
  fetchStatus: import("@tanstack/query-core").FetchStatus;
70
70
  promise: Promise<ConfigurationsResponse>;
71
71
  } | {
72
- data: ("L" | "L0" | "L1" | "L1_ID" | "L1_IDO" | "L1_NAT" | "L1_IDDOC" | "L_REGDOC" | "L_TAXDOC" | "L_PROOFOFADDRESS" | "L_PH" | "L_MOTION" | "L_TAXINFO" | "L_BAFIN")[] | undefined;
72
+ data: ("L0" | "L1" | "L_TAXINFO" | "L1_ID" | "L1_IDO" | "L1_NAT" | "L1_IDDOC" | "L_PH" | "L_MOTION" | "L" | "L_REGDOC" | "L_TAXDOC" | "L_PROOFOFADDRESS" | "L_BAFIN")[] | undefined;
73
73
  error: Error;
74
74
  isError: true;
75
75
  isPending: false;
@@ -96,7 +96,7 @@ export declare const useScenarios: (countryCode: CountryCode, legalEntityType: L
96
96
  fetchStatus: import("@tanstack/query-core").FetchStatus;
97
97
  promise: Promise<ConfigurationsResponse>;
98
98
  } | {
99
- data: ("L" | "L0" | "L1" | "L1_ID" | "L1_IDO" | "L1_NAT" | "L1_IDDOC" | "L_REGDOC" | "L_TAXDOC" | "L_PROOFOFADDRESS" | "L_PH" | "L_MOTION" | "L_TAXINFO" | "L_BAFIN")[] | undefined;
99
+ data: ("L0" | "L1" | "L_TAXINFO" | "L1_ID" | "L1_IDO" | "L1_NAT" | "L1_IDDOC" | "L_PH" | "L_MOTION" | "L" | "L_REGDOC" | "L_TAXDOC" | "L_PROOFOFADDRESS" | "L_BAFIN")[] | undefined;
100
100
  error: null;
101
101
  isError: false;
102
102
  isPending: true;
@@ -123,7 +123,7 @@ export declare const useScenarios: (countryCode: CountryCode, legalEntityType: L
123
123
  fetchStatus: import("@tanstack/query-core").FetchStatus;
124
124
  promise: Promise<ConfigurationsResponse>;
125
125
  } | {
126
- data: ("L" | "L0" | "L1" | "L1_ID" | "L1_IDO" | "L1_NAT" | "L1_IDDOC" | "L_REGDOC" | "L_TAXDOC" | "L_PROOFOFADDRESS" | "L_PH" | "L_MOTION" | "L_TAXINFO" | "L_BAFIN")[] | undefined;
126
+ data: ("L0" | "L1" | "L_TAXINFO" | "L1_ID" | "L1_IDO" | "L1_NAT" | "L1_IDDOC" | "L_PH" | "L_MOTION" | "L" | "L_REGDOC" | "L_TAXDOC" | "L_PROOFOFADDRESS" | "L_BAFIN")[] | undefined;
127
127
  error: null;
128
128
  isError: false;
129
129
  isPending: true;
@@ -150,7 +150,7 @@ export declare const useScenarios: (countryCode: CountryCode, legalEntityType: L
150
150
  fetchStatus: import("@tanstack/query-core").FetchStatus;
151
151
  promise: Promise<ConfigurationsResponse>;
152
152
  } | {
153
- data: ("L" | "L0" | "L1" | "L1_ID" | "L1_IDO" | "L1_NAT" | "L1_IDDOC" | "L_REGDOC" | "L_TAXDOC" | "L_PROOFOFADDRESS" | "L_PH" | "L_MOTION" | "L_TAXINFO" | "L_BAFIN")[] | undefined;
153
+ data: ("L0" | "L1" | "L_TAXINFO" | "L1_ID" | "L1_IDO" | "L1_NAT" | "L1_IDDOC" | "L_PH" | "L_MOTION" | "L" | "L_REGDOC" | "L_TAXDOC" | "L_PROOFOFADDRESS" | "L_BAFIN")[] | undefined;
154
154
  isError: false;
155
155
  error: null;
156
156
  isPending: false;
@@ -1,22 +1,28 @@
1
+ import type { Scenario as ApiScenario } from '../../../api/configurations/configurations.types';
1
2
  /**
2
- * @description These are the available scenarios matching the API
3
- * kycexternalapi/src/main/java/com/adyen/services/kycexternalapi/entity/Scenario.java
3
+ * @description The available scenarios matching the API. Scenarios are a way of defining
4
+ * when certain fields must be provided by default. For an example of how they are used,
5
+ * see {@link businessDetailsFieldsPerScenario}.
6
+ *
7
+ * *Note*: this const determines in which order scenarios will be evaluated; later entries have
8
+ * higher precedence. This is needed because the backend may sort them inconsistently.
9
+ *
10
+ * E.g. if `L1` and `L1_IDDOC` both define rules for a field, `L1_IDDOC` will take precedence.
4
11
  */
5
- export declare const enum Scenarios {
6
- L = "L",
7
- L0 = "L0",
8
- L1 = "L1",
9
- L1_ID = "L1_ID",
10
- L1_IDO = "L1_IDO",
11
- L1_NAT = "L1_NAT",
12
- L1_IDDOC = "L1_IDDOC",
13
- L2 = "L2",
14
- L_REGDOC = "L_REGDOC",
15
- L_TAXDOC = "L_TAXDOC",
16
- L_PROOFOFADDRESS = "L_PROOFOFADDRESS",
17
- L_PH = "L_PH",
18
- L_MOTION = "L_MOTION",
19
- L_TAXINFO = "L_TAXINFO",
20
- L_BAFIN = "L_BAFIN"
21
- }
22
- export type Scenario = `${Scenarios}`;
12
+ export declare const Scenarios: {
13
+ readonly L0: "L0";
14
+ readonly L1: "L1";
15
+ readonly L1_ID: "L1_ID";
16
+ readonly L1_IDO: "L1_IDO";
17
+ readonly L1_NAT: "L1_NAT";
18
+ readonly L1_IDDOC: "L1_IDDOC";
19
+ readonly L: "L";
20
+ readonly L_REGDOC: "L_REGDOC";
21
+ readonly L_TAXDOC: "L_TAXDOC";
22
+ readonly L_PROOFOFADDRESS: "L_PROOFOFADDRESS";
23
+ readonly L_PH: "L_PH";
24
+ readonly L_MOTION: "L_MOTION";
25
+ readonly L_TAXINFO: "L_TAXINFO";
26
+ readonly L_BAFIN: "L_BAFIN";
27
+ };
28
+ export type Scenario = ApiScenario;
@@ -8,7 +8,7 @@
8
8
  }
9
9
  ;
10
10
  import { useCallback, useMemo, useReducer, useEffect } from "preact/hooks";
11
- import { b0 as objectsDeepEqual, dH as ValidationResult, X as createLogger, dI as isNotEmptyValidator, aq as isEmpty } from "./StoreProvider-FGY-AWKM.js";
11
+ import { b0 as objectsDeepEqual, dH as ValidationResult, X as createLogger, dI as isNotEmptyValidator, aq as isEmpty } from "./StoreProvider-C9f1cNU1.js";
12
12
  const omitKeys = (obj, omit) => Object.keys(obj).filter((k) => !omit.includes(k)).reduce((a, c) => {
13
13
  a[c] = obj[c];
14
14
  return a;
@@ -7,7 +7,7 @@
7
7
  }
8
8
  }
9
9
  ;
10
- import { p as useApiContext, q as useQuery, r as httpGet } from "./StoreProvider-FGY-AWKM.js";
10
+ import { p as useApiContext, q as useQuery, r as httpGet } from "./StoreProvider-C9f1cNU1.js";
11
11
  const getOnboardingStatus = async (legalEntityId, baseUrl) => {
12
12
  return httpGet({
13
13
  baseUrl,
@@ -7,7 +7,7 @@
7
7
  }
8
8
  }
9
9
  ;
10
- import { p as useApiContext, q as useQuery, bj as httpPost, J as useSettingsContext, K as SettingNames } from "./StoreProvider-FGY-AWKM.js";
10
+ import { p as useApiContext, q as useQuery, bj as httpPost, J as useSettingsContext, K as SettingNames } from "./StoreProvider-C9f1cNU1.js";
11
11
  import { useMemo } from "preact/hooks";
12
12
  const getPciStatus = async (legalEntityId, baseUrl, data) => {
13
13
  return httpPost(
@@ -7,7 +7,7 @@
7
7
  }
8
8
  }
9
9
  ;
10
- import { p as useApiContext, q as useQuery, r as httpGet } from "./StoreProvider-FGY-AWKM.js";
10
+ import { p as useApiContext, q as useQuery, r as httpGet } from "./StoreProvider-C9f1cNU1.js";
11
11
  const getTermsOfServiceAcceptanceInfos = async (legalEntityId, baseUrl) => {
12
12
  return httpGet({
13
13
  baseUrl,
@@ -7,7 +7,7 @@
7
7
  }
8
8
  }
9
9
  ;
10
- import { p as useApiContext, bh as useMutation, bj as httpPost, bg as useInvalidateRootLegalEntity, bp as useQueryClient } from "./StoreProvider-FGY-AWKM.js";
10
+ import { p as useApiContext, bh as useMutation, bj as httpPost, bg as useInvalidateRootLegalEntity, bp as useQueryClient } from "./StoreProvider-C9f1cNU1.js";
11
11
  const createLegalEntity = async (legalEntityId, baseUrl, data) => {
12
12
  return httpPost(
13
13
  {
@@ -7,9 +7,9 @@
7
7
  }
8
8
  }
9
9
  ;
10
- import { g as getLegalEntityCountry, dS as getCapabilities, y as LegalEntityType, M as hasOwnEntityAssociationOfType, O as CompanyTypesValue, ap as CountryCodes, dU as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES } from "./StoreProvider-FGY-AWKM.js";
11
- import { b as allowIndividualWithoutSoleProp } from "./OnboardingDropinComponent-Cch9eUJw.js";
12
- import { S as SOLE_PROP_COUNTRIES } from "./rules-g_wc6GUX.js";
10
+ import { g as getLegalEntityCountry, dS as getCapabilities, y as LegalEntityType, M as hasOwnEntityAssociationOfType, O as CompanyTypesValue, ap as CountryCodes, dU as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES } from "./StoreProvider-C9f1cNU1.js";
11
+ import { b as allowIndividualWithoutSoleProp } from "./OnboardingDropinComponent-D-4t_f_V.js";
12
+ import { S as SOLE_PROP_COUNTRIES } from "./rules-DGPc1OTP.js";
13
13
  const TRUST_COUNTRIES = [CountryCodes.Australia, CountryCodes.NewZealand];
14
14
  const BUSINESS_BANK_ACCOUNT_COUNTRIES = [
15
15
  CountryCodes.UnitedStates,
@@ -7,7 +7,7 @@
7
7
  }
8
8
  }
9
9
  ;
10
- import { dJ as hasText } from "./StoreProvider-FGY-AWKM.js";
10
+ import { dJ as hasText } from "./StoreProvider-C9f1cNU1.js";
11
11
  const validateLegalEntityIdentifier = (legalEntityIdentifier) => {
12
12
  if (!legalEntityIdentifier) {
13
13
  return true;
@@ -8,7 +8,7 @@
8
8
  }
9
9
  ;
10
10
  import { useCallback } from "preact/hooks";
11
- import { p as useApiContext, bj as httpPost, dK as emailPattern } from "./StoreProvider-FGY-AWKM.js";
11
+ import { p as useApiContext, bj as httpPost, dK as emailPattern } from "./StoreProvider-C9f1cNU1.js";
12
12
  const validatePhoneNumber = (baseUrl, data) => {
13
13
  return httpPost(
14
14
  {
@@ -7,7 +7,7 @@
7
7
  }
8
8
  }
9
9
  ;
10
- import { c as cssProps } from "./DebugModal-BEVHhoY-.js";
10
+ import { c as cssProps } from "./DebugModal-C5yOlHoc.js";
11
11
  const definitions = {
12
12
  any: { regex: /.*/g, css: cssProps.text },
13
13
  boolean: { regex: /^(\s*)([\w-]+)(:)\s*(.*)$/g, css: cssProps.boolean },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/kyc-components",
3
- "version": "3.79.6",
3
+ "version": "3.79.8",
4
4
  "keywords": [
5
5
  "adyen",
6
6
  "adyen-kyc",