@adyen/kyc-components 3.65.0 → 3.65.2

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.
@@ -8,7 +8,7 @@
8
8
  }
9
9
  ;
10
10
  import { jsxs, jsx } from "preact/jsx-runtime";
11
- import { u as useI18nContext, A as AlertIcon, w as FormHeader, D as DropinLayout } from "./core-D8ryGpa4.js";
11
+ import { u as useI18nContext, A as AlertIcon, w as FormHeader, D as DropinLayout } from "./core-DIdsJxCM.js";
12
12
  function AccountSetupRejected() {
13
13
  const { i18n } = useI18nContext();
14
14
  const content = /* @__PURE__ */ jsxs("div", { children: [
@@ -7,8 +7,8 @@
7
7
  }
8
8
  }
9
9
  ;
10
- import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, b as ParentPanel, C as ContentView, Q as QueryDevtoolsContext } from "./HASRA6WW-C4T4T8Nn.js";
11
- import { as as getPreferredColorScheme, at as createMemo, au as createComponent } from "./core-D8ryGpa4.js";
10
+ import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, b as ParentPanel, C as ContentView, Q as QueryDevtoolsContext } from "./HASRA6WW-CfSyvt8t.js";
11
+ import { as as getPreferredColorScheme, at as createMemo, au as createComponent } from "./core-DIdsJxCM.js";
12
12
  var DevtoolsPanelComponent = (props) => {
13
13
  const [localStore, setLocalStore] = createLocalStorage({
14
14
  prefix: "TanstackQueryDevtools"
@@ -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] = "28fb368b-b687-4702-8b6b-c45c5924fbd4", e._sentryDebugIdIdentifier = "sentry-dbid-28fb368b-b687-4702-8b6b-c45c5924fbd4");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "507da29d-482e-46b6-a2cb-b6923a2b2a73", e._sentryDebugIdIdentifier = "sentry-dbid-507da29d-482e-46b6-a2cb-b6923a2b2a73");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
- import { jsxs, jsx } from "preact/jsx-runtime";
11
- import { u as useI18nContext, n as useAnalyticsContext, G as useToastContext, $ as useConfigurationApi, x as useLegalEntity, J as useUpdateLegalEntity, H as useQueryClient, a0 as resolveFieldMetadata, a1 as contactDetailsValidationRules, a2 as defaultFieldMetadata, a3 as fieldConfig, a4 as getAsyncPhoneValidationRules, a5 as useMultiForm, w as FormHeader, a6 as ContactDetails, _ as ActionBar, g as createLogger } from "./core-D8ryGpa4.js";
10
+ import { jsx, jsxs } from "preact/jsx-runtime";
11
+ import { x as useLegalEntity, y as Loader, u as useI18nContext, n as useAnalyticsContext, G as useToastContext, $ as useConfigurationApi, J as useUpdateLegalEntity, H as useQueryClient, a0 as resolveFieldMetadata, a1 as contactDetailsValidationRules, a2 as defaultFieldMetadata, a3 as fieldConfig, a4 as getAsyncPhoneValidationRules, a5 as useMultiForm, w as FormHeader, a6 as ContactDetails, _ as ActionBar, g as createLogger } from "./core-DIdsJxCM.js";
12
12
  import { useCallback, useMemo, useEffect } from "preact/hooks";
13
13
  const mapCustomerSupportSchemaToCustomerSupportType = (customerSupport) => {
14
14
  var _a, _b, _c;
@@ -21,13 +21,23 @@ const mapCustomerSupportSchemaToCustomerSupportType = (customerSupport) => {
21
21
  };
22
22
  };
23
23
  const logger = createLogger();
24
- function CustomerSupport({ country, onSubmit }) {
24
+ const CustomerSupport = (props) => {
25
+ const { data, isLoading } = useLegalEntity();
26
+ if (isLoading || !data) {
27
+ return /* @__PURE__ */ jsx(Loader, {});
28
+ }
29
+ return /* @__PURE__ */ jsx(CustomerSupportInner, { ...props, legalEntity: data });
30
+ };
31
+ function CustomerSupportInner({
32
+ country,
33
+ onSubmit,
34
+ legalEntity
35
+ }) {
25
36
  var _a, _b, _c, _d;
26
37
  const { i18n } = useI18nContext();
27
38
  const userEvents = useAnalyticsContext();
28
39
  const { showToast } = useToastContext();
29
40
  const { validatePhoneNumber } = useConfigurationApi();
30
- const { data: legalEntity } = useLegalEntity();
31
41
  const { mutateAsync: updateLegalEntity } = useUpdateLegalEntity();
32
42
  const queryClient = useQueryClient();
33
43
  const requiredFields = {
@@ -57,11 +67,11 @@ function CustomerSupport({ country, onSubmit }) {
57
67
  }),
58
68
  [validatePhoneNumber]
59
69
  );
60
- const legalEntityType = legalEntity == null ? void 0 : legalEntity.type;
70
+ const legalEntityType = legalEntity.type;
61
71
  const defaultCustomerSupportData = {
62
72
  customerSupport: {
63
- phoneNumber: (_b = (_a = legalEntity == null ? void 0 : legalEntity[legalEntityType]) == null ? void 0 : _a.support) == null ? void 0 : _b.phone,
64
- email: (_d = (_c = legalEntity == null ? void 0 : legalEntity[legalEntityType]) == null ? void 0 : _c.support) == null ? void 0 : _d.email
73
+ phoneNumber: (_b = (_a = legalEntity[legalEntityType]) == null ? void 0 : _a.support) == null ? void 0 : _b.phone,
74
+ email: (_d = (_c = legalEntity[legalEntityType]) == null ? void 0 : _c.support) == null ? void 0 : _d.email
65
75
  }
66
76
  };
67
77
  const { data, handleChangeFor, valid, errors, isValid, triggerValidation } = useMultiForm({
@@ -87,7 +97,7 @@ function CustomerSupport({ country, onSubmit }) {
87
97
  try {
88
98
  const patchLegalEntity = {
89
99
  ...payload,
90
- id: legalEntity == null ? void 0 : legalEntity.id
100
+ id: legalEntity.id
91
101
  };
92
102
  await updateLegalEntity(patchLegalEntity);
93
103
  queryClient.invalidateQueries({ queryKey: ["legalEntity", legalEntity == null ? void 0 : legalEntity.id] });
@@ -2,14 +2,14 @@
2
2
  {
3
3
  try {
4
4
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "a2fa03f9-e358-4990-af96-2b8b2b67ad93", e._sentryDebugIdIdentifier = "sentry-dbid-a2fa03f9-e358-4990-af96-2b8b2b67ad93");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "b9db453b-e2bc-45e2-b17f-ef4c6a173795", e._sentryDebugIdIdentifier = "sentry-dbid-b9db453b-e2bc-45e2-b17f-ef4c6a173795");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
11
11
  import { useMemo, useState } from "preact/hooks";
12
- import { B as Button, T as Tag, e as entriesOf, I as InputText, u as useI18nContext, s as splitTaskIdentifier, a as TaskItemStatus, b as useExperimentsContext, c as useSettingsContext, d as useGlobalStore, l as listToRecord, v as valuesOf, f as useTaskStatuses, M as Modal, g as createLogger, h as Icon, S as SettingNames, E as ExperimentNames } from "./core-D8ryGpa4.js";
12
+ import { B as Button, T as Tag, e as entriesOf, I as InputText, u as useI18nContext, s as splitTaskIdentifier, a as TaskItemStatus, b as useExperimentsContext, c as useSettingsContext, d as useGlobalStore, l as listToRecord, v as valuesOf, f as useTaskStatuses, M as Modal, g as createLogger, h as Icon, S as SettingNames, E as ExperimentNames } from "./core-DIdsJxCM.js";
13
13
  const tabs = "adyen-kyc-tabs";
14
14
  const styles$1 = {
15
15
  tabs
@@ -144,10 +144,10 @@ const transformModule = (highlights, codeNode, scope) => {
144
144
  };
145
145
  const supportedModules = ["plaintext", "json", "yaml", "css"];
146
146
  const moduleMap = {
147
- plaintext: () => import("./plaintext-DOua1PdK.js"),
148
- json: () => import("./json-BNxOWY2H.js"),
149
- yaml: () => import("./yaml-DG6kdH_n.js"),
150
- css: () => import("./css-CycUexVO.js")
147
+ plaintext: () => import("./plaintext-BH4CRtX8.js"),
148
+ json: () => import("./json-BmGxOpp7.js"),
149
+ yaml: () => import("./yaml-tNYmD1NM.js"),
150
+ css: () => import("./css-BpiVr-9M.js")
151
151
  };
152
152
  const getModule = async (name) => {
153
153
  if (!supportedModules.includes(name)) {
@@ -438,7 +438,7 @@ const DebugModal = ({ onExit }) => {
438
438
  const [tab, setTab] = useState("metadata");
439
439
  const rootLegalEntity = useGlobalStore((store) => store.rootLegalEntity);
440
440
  const metadata = {
441
- sdkVersion: "3.65.0",
441
+ sdkVersion: "3.65.2",
442
442
  locale: i18n.locale,
443
443
  rootLegalEntityId: rootLegalEntity.id
444
444
  };
@@ -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] = "5161311f-a179-47e1-bbfc-bc6778389d50", e._sentryDebugIdIdentifier = "sentry-dbid-5161311f-a179-47e1-bbfc-bc6778389d50");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "00aad89a-1e53-4529-8f66-9bb92d7d747e", e._sentryDebugIdIdentifier = "sentry-dbid-00aad89a-1e53-4529-8f66-9bb92d7d747e");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsx, jsxs } from "preact/jsx-runtime";
11
- import { x as useLegalEntity, y as Loader, z as useGetTaskStatus, u as useI18nContext, n as useAnalyticsContext, G as useToastContext, H as useQueryClient, J as useUpdateLegalEntity, K as getOwnDecisionMakers, N as getAvailableDecisionMakerRoleTypes, O as useDataMissingRemediations, i as TaskTypes, P as getAllowedDecisionMakerRoles, D as DropinLayout, w as FormHeader, Q as EntityGuidanceStatus, U as iconStatus, V as ContextGuidance, W as DecisionMakerType, X as Alert, Y as CardGroup, Z as EntityAssociation, B as Button, _ as ActionBar } from "./core-D8ryGpa4.js";
11
+ import { x as useLegalEntity, y as Loader, z as useGetTaskStatus, u as useI18nContext, n as useAnalyticsContext, G as useToastContext, H as useQueryClient, J as useUpdateLegalEntity, K as getOwnDecisionMakers, N as getAvailableDecisionMakerRoleTypes, O as useDataMissingRemediations, i as TaskTypes, P as getAllowedDecisionMakerRoles, D as DropinLayout, w as FormHeader, Q as EntityGuidanceStatus, U as iconStatus, V as ContextGuidance, W as DecisionMakerType, X as Alert, Y as CardGroup, Z as EntityAssociation, B as Button, _ as ActionBar } from "./core-DIdsJxCM.js";
12
12
  import { useState, useEffect } from "preact/hooks";
13
13
  const DecisionMakers = (props) => {
14
14
  const { data, isLoading } = useLegalEntity();
@@ -34,8 +34,7 @@ const DecisionMakersInner = ({
34
34
  onSuccess: () => {
35
35
  queryClient.invalidateQueries({
36
36
  queryKey: ["legalEntity", legalEntity.id],
37
- exact: true,
38
- refetchType: "active"
37
+ refetchType: "all"
39
38
  });
40
39
  }
41
40
  });
@@ -113,7 +112,7 @@ const DecisionMakersInner = ({
113
112
  (entityAssociation) => entityAssociation.legalEntityId !== decisionMaker.reference
114
113
  )
115
114
  };
116
- updateLegalEntity.mutate(updatedEntityAssociations);
115
+ await updateLegalEntity.mutateAsync({ ...updatedEntityAssociations, id: legalEntity.id });
117
116
  const remainingDecisionMakers = decisionMakers.filter(
118
117
  (curr) => curr.legalEntityId !== decisionMaker.reference
119
118
  );
@@ -10,7 +10,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
10
10
  }
11
11
  }
12
12
  ;
13
- import { av as createContext, aw as createSignal, ax as onMount, ay as createEffect, at as createMemo, au as createComponent, az as Portal, aA as Show, aB as template, aC as insert, aD as createRenderEffect, aE as className, aF as clearDelegatedEvents, aG as delegateEvents, aH as useContext, aI as onCleanup, aJ as sortFns, aK as mutationSortFns, aL as on, aM as setAttribute, aN as getSidedProp, aO as use, aP as createUniqueId, aQ as batch, aR as getQueryStatusLabel, aS as getMutationStatusColor, aT as getQueryStatusColor, aU as getQueryStatusColorByLabel, aV as displayValue, aW as For, aX as convertRemToPixels, aY as untrack, aZ as $TRACK, a_ as useTransition, a$ as spread, b0 as mergeProps, b1 as createRoot, b2 as serialize, b3 as Index, b4 as updateNestedDataByPath, b5 as addEventListener, b6 as stringify, b7 as Match, b8 as Switch, b9 as deleteNestedDataByPath, ba as splitProps, bb as Dynamic, bc as createComputed } from "./core-D8ryGpa4.js";
13
+ import { av as createContext, aw as createSignal, ax as onMount, ay as createEffect, at as createMemo, au as createComponent, az as Portal, aA as Show, aB as template, aC as insert, aD as createRenderEffect, aE as className, aF as clearDelegatedEvents, aG as delegateEvents, aH as useContext, aI as onCleanup, aJ as sortFns, aK as mutationSortFns, aL as on, aM as setAttribute, aN as getSidedProp, aO as use, aP as createUniqueId, aQ as batch, aR as getQueryStatusLabel, aS as getMutationStatusColor, aT as getQueryStatusColor, aU as getQueryStatusColorByLabel, aV as displayValue, aW as For, aX as convertRemToPixels, aY as untrack, aZ as $TRACK, a_ as useTransition, a$ as spread, b0 as mergeProps, b1 as createRoot, b2 as serialize, b3 as Index, b4 as updateNestedDataByPath, b5 as addEventListener, b6 as stringify, b7 as Match, b8 as Switch, b9 as deleteNestedDataByPath, ba as splitProps, bb as Dynamic, bc as createComputed } from "./core-DIdsJxCM.js";
14
14
  var isNonNullable = (i2) => i2 != null;
15
15
  var filterNonNullable = (arr) => arr.filter(isNonNullable);
16
16
  function chain(callbacks) {
@@ -7,8 +7,8 @@
7
7
  }
8
8
  }
9
9
  ;
10
- import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, D as Devtools, Q as QueryDevtoolsContext } from "./HASRA6WW-C4T4T8Nn.js";
11
- import { as as getPreferredColorScheme, at as createMemo, au as createComponent } from "./core-D8ryGpa4.js";
10
+ import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, D as Devtools, Q as QueryDevtoolsContext } from "./HASRA6WW-CfSyvt8t.js";
11
+ import { as as getPreferredColorScheme, at as createMemo, au as createComponent } from "./core-DIdsJxCM.js";
12
12
  var DevtoolsComponent = (props) => {
13
13
  const [localStore, setLocalStore] = createLocalStorage({
14
14
  prefix: "TanstackQueryDevtools"
@@ -9,7 +9,7 @@
9
9
  ;
10
10
  import { jsxs, Fragment, jsx } from "preact/jsx-runtime";
11
11
  import { useMemo as useMemo$1, useState, useEffect } from "preact/hooks";
12
- import { i as TaskTypes, L as LegalEntityType, j as useCanSeeIntroduction, k as useLegalEntityType, t as toCapitalized, m as getTranslationKeysByPrefix, u as useI18nContext, n as useAnalyticsContext, o as StepProgressIndicator, B as Button } from "./core-D8ryGpa4.js";
12
+ import { i as TaskTypes, L as LegalEntityType, j as useCanSeeIntroduction, k as useLegalEntityType, t as toCapitalized, m as getTranslationKeysByPrefix, u as useI18nContext, n as useAnalyticsContext, o as StepProgressIndicator, B as Button } from "./core-DIdsJxCM.js";
13
13
  import { useMemo } from "preact/compat";
14
14
  var IntroductionScreens = ((IntroductionScreens2) => {
15
15
  IntroductionScreens2["PROLOGUE"] = "PROLOGUE";
@@ -9,7 +9,7 @@
9
9
  ;
10
10
  import { jsx, jsxs } from "preact/jsx-runtime";
11
11
  import { useState } from "preact/hooks";
12
- import { a7 as useApiContext, a8 as useMutation, a9 as httpPost, u as useI18nContext, G as useToastContext, aa as LoaderWrapper, w as FormHeader, ab as Checkbox, _ as ActionBar, D as DropinLayout } from "./core-D8ryGpa4.js";
12
+ import { a7 as useApiContext, a8 as useMutation, a9 as httpPost, u as useI18nContext, G as useToastContext, aa as LoaderWrapper, w as FormHeader, ab as Checkbox, _ as ActionBar, D as DropinLayout } from "./core-DIdsJxCM.js";
13
13
  const confirmReview = async (legalEntityId, url) => {
14
14
  return httpPost({
15
15
  loadingContext: url,
@@ -9,7 +9,7 @@
9
9
  ;
10
10
  import { jsx, jsxs } from "preact/jsx-runtime";
11
11
  import { useState } from "preact/hooks";
12
- import { u as useI18nContext, p as useForm, q as Typography, F as Field, R as RadioGroupCard, B as Button, r as Svg, L as LegalEntityType } from "./core-D8ryGpa4.js";
12
+ import { u as useI18nContext, p as useForm, q as Typography, F as Field, R as RadioGroupCard, B as Button, r as Svg, L as LegalEntityType } from "./core-DIdsJxCM.js";
13
13
  const setupAccountMethods = ["singpass", "manual"];
14
14
  const setupAccountMethodFields = ["setupAccountMethod"];
15
15
  const getSingpassSelectionDisabled = (legalEntityType) => {
@@ -8,7 +8,7 @@
8
8
  }
9
9
  ;
10
10
  import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
11
- import { a7 as useApiContext, ac as useQuery, ad as httpGet, q as Typography, u as useI18nContext, ae as useFormContext, F as Field, af as RadioGroup, ag as getFormProps, h as Icon, ah as isEmpty, r as Svg, ai as sofStyles, B as Button, aj as Card, ak as StructuredList, al as IconButton, H as useQueryClient, n as useAnalyticsContext, x as useLegalEntity, J as useUpdateLegalEntity, a5 as useMultiForm, am as isEmpty$1, an as getRequiredForms, ao as addValidityToForms, g as createLogger, ap as useFormComposer, y as Loader, aq as FormContextProvider, ar as FormWrapper } from "./core-D8ryGpa4.js";
11
+ import { a7 as useApiContext, ac as useQuery, ad as httpGet, q as Typography, u as useI18nContext, ae as useFormContext, F as Field, af as RadioGroup, ag as getFormProps, h as Icon, ah as isEmpty, r as Svg, ai as sofStyles, B as Button, aj as Card, ak as StructuredList, al as IconButton, H as useQueryClient, n as useAnalyticsContext, x as useLegalEntity, J as useUpdateLegalEntity, a5 as useMultiForm, am as isEmpty$1, an as getRequiredForms, ao as addValidityToForms, g as createLogger, ap as useFormComposer, y as Loader, aq as FormContextProvider, ar as FormWrapper } from "./core-DIdsJxCM.js";
12
12
  import { useState, useRef, useEffect, useMemo, useCallback } from "preact/hooks";
13
13
  import { signal } from "@preact/signals";
14
14
  import cx from "classnames";
@@ -7,7 +7,7 @@
7
7
  }
8
8
  }
9
9
  ;
10
- import { C as Core } from "./core-D8ryGpa4.js";
10
+ import { C as Core } from "./core-DIdsJxCM.js";
11
11
  if (CSS.supports("container", "foo / inline-size") === false) {
12
12
  import("container-query-polyfill");
13
13
  }
@@ -7,7 +7,7 @@
7
7
  }
8
8
  }
9
9
  ;
10
- import { C as Core } from "./core-D8ryGpa4.js";
10
+ import { C as Core } from "./core-DIdsJxCM.js";
11
11
  const environmentMap = Object.freeze({
12
12
  live: "https://live.adyen.com",
13
13
  test: "https://test.adyen.com"
@@ -19,7 +19,7 @@ var _focused, _cleanup, _setup, _a, _online, _cleanup2, _setup2, _b, _gcTimeout,
19
19
  {
20
20
  try {
21
21
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
22
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "4ac1397f-dd59-4711-93c8-49d1f6bd27fc", e._sentryDebugIdIdentifier = "sentry-dbid-4ac1397f-dd59-4711-93c8-49d1f6bd27fc");
22
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "40c1f9c9-f15f-4380-9259-08e2338a1193", e._sentryDebugIdIdentifier = "sentry-dbid-40c1f9c9-f15f-4380-9259-08e2338a1193");
23
23
  } catch (e) {
24
24
  }
25
25
  }
@@ -13835,8 +13835,7 @@ function BankVerification(props) {
13835
13835
  triggerValidation();
13836
13836
  queryClient.invalidateQueries({
13837
13837
  queryKey: ["legalEntity", rootLegalEntity.id],
13838
- exact: true,
13839
- refetchType: "active"
13838
+ refetchType: "all"
13840
13839
  });
13841
13840
  };
13842
13841
  const handleOnBack = () => {
@@ -16601,8 +16600,7 @@ const PreferInstantVerificationMethod = ({
16601
16600
  setMoveToNextStep(true);
16602
16601
  queryClient.invalidateQueries({
16603
16602
  queryKey: ["legalEntity", rootLegalEntity.id],
16604
- exact: true,
16605
- refetchType: "active"
16603
+ refetchType: "all"
16606
16604
  });
16607
16605
  };
16608
16606
  useEffect(() => {
@@ -41777,13 +41775,13 @@ const useUpdateSourceOfFunds = (options) => {
41777
41775
  ...options
41778
41776
  });
41779
41777
  };
41780
- const updateLegalEntity = async (legalEntityId, url, data) => {
41778
+ const updateLegalEntity = async (rootLegalEntityId, url, data) => {
41781
41779
  return httpPost(
41782
41780
  {
41783
41781
  loadingContext: url,
41784
41782
  errorLevel: "warn",
41785
41783
  errorMessage: `Failed to sign pci`,
41786
- path: `legalEntities/${legalEntityId}`,
41784
+ path: `legalEntities/${rootLegalEntityId}`,
41787
41785
  authentication: "jwt",
41788
41786
  headers: { "Content-Type": "application/json" }
41789
41787
  },
@@ -50705,26 +50703,26 @@ const hasProgressedBeyondEntitySelection = (legalEntity) => {
50705
50703
  return hasOwnEntityAssocation || !!hasOrganizationType;
50706
50704
  };
50707
50705
  const Introduction = lazy$1(
50708
- async () => (await import("./Introduction-DfZOVSDf.js")).Introduction
50706
+ async () => (await import("./Introduction-BhyckiXJ.js")).Introduction
50709
50707
  );
50710
50708
  const SingpassSelection = lazy$1(
50711
- async () => (await import("./SingpassSelection-hpY3DbKh.js")).SingpassSelection
50709
+ async () => (await import("./SingpassSelection-CQLxR5iu.js")).SingpassSelection
50712
50710
  );
50713
50711
  const AccountSetupRejected = lazy$1(
50714
- async () => (await import("./AccountSetupRejected-8Bcks_Pu.js")).AccountSetupRejected
50712
+ async () => (await import("./AccountSetupRejected-BuMFGJcE.js")).AccountSetupRejected
50715
50713
  );
50716
50714
  const DecisionMakers = lazy$1(
50717
- async () => (await import("./DecisionMakers-BJ5xphlP.js")).DecisionMakers
50715
+ async () => (await import("./DecisionMakers-BdpDYkXL.js")).DecisionMakers
50718
50716
  );
50719
50717
  const CustomerSupport = lazy$1(
50720
- async () => (await import("./CustomerSupport-BCIrCnC-.js")).CustomerSupport
50718
+ async () => (await import("./CustomerSupport-BRUe41dq.js")).CustomerSupport
50721
50719
  );
50722
- const Review = lazy$1(async () => (await import("./Review-VgvMT5nK.js")).Review);
50720
+ const Review = lazy$1(async () => (await import("./Review-LwTvCPcv.js")).Review);
50723
50721
  const SignPCIComponent$2 = lazy$1(
50724
50722
  async () => (await Promise.resolve().then(() => SignPCIComponent$1)).SignPCIComponent
50725
50723
  );
50726
50724
  const TaxReportingDropin = lazy$1(
50727
- async () => (await import("./TaxReportingDropin-Dqfa6FM8.js")).TaxReportingDropin
50725
+ async () => (await import("./TaxReportingDropin-BZ81Fc-K.js")).TaxReportingDropin
50728
50726
  );
50729
50727
  const PAGES_WITH_POLLING = [TaskTypes.DECISION_MAKER_OVERVIEW, TaskTypes.TASKS_OVERVIEW];
50730
50728
  const logger$6 = createLogger();
@@ -55147,7 +55145,7 @@ var TanstackQueryDevtools = (_l = class {
55147
55145
  if (__privateGet(this, _Component)) {
55148
55146
  Devtools = __privateGet(this, _Component);
55149
55147
  } else {
55150
- Devtools = lazy(() => import("./I3HPI4QX-s_JOUk5d.js"));
55148
+ Devtools = lazy(() => import("./I3HPI4QX-j9aCdTJN.js"));
55151
55149
  __privateSet(this, _Component, Devtools);
55152
55150
  }
55153
55151
  setupStyleSheet(__privateGet(this, _styleNonce), __privateGet(this, _shadowDOMTarget));
@@ -55269,7 +55267,7 @@ var TanstackQueryDevtoolsPanel = (_m = class {
55269
55267
  if (__privateGet(this, _Component2)) {
55270
55268
  Devtools = __privateGet(this, _Component2);
55271
55269
  } else {
55272
- Devtools = lazy(() => import("./CXEL7IU7-EInZOSNY.js"));
55270
+ Devtools = lazy(() => import("./CXEL7IU7-CdiV-vlq.js"));
55273
55271
  __privateSet(this, _Component2, Devtools);
55274
55272
  }
55275
55273
  setupStyleSheet(__privateGet(this, _styleNonce2), __privateGet(this, _shadowDOMTarget2));
@@ -55488,7 +55486,7 @@ const convertToEmbeddedEvent = (eventQueueItem, sessionData) => {
55488
55486
  };
55489
55487
  };
55490
55488
  const useAnalytics = ({ userEvents: userEvents2, sessionId, sessionData }) => {
55491
- const sdkVersion = "3.65.0";
55489
+ const sdkVersion = "3.65.2";
55492
55490
  const rootLegalEntity = useGlobalStore((store) => store.rootLegalEntity);
55493
55491
  const countryCode = useGlobalStore((store) => store.rootLegalEntityCountry);
55494
55492
  const capabilities = Object.keys(rootLegalEntity.capabilities ?? {});
@@ -55563,7 +55561,7 @@ const AnalyticsProvider = ({
55563
55561
  const { onboardingVersion } = useVersion();
55564
55562
  const userEvents2 = useMemo(() => createUserEvents(), []);
55565
55563
  const sessionData = {
55566
- sdkVersion: "3.65.0",
55564
+ sdkVersion: "3.65.2",
55567
55565
  componentName,
55568
55566
  userAgent: navigator.userAgent,
55569
55567
  legalEntityId,
@@ -55697,7 +55695,7 @@ const ConfigurationApiProvider = ({ children: children2 }) => {
55697
55695
  [baseUrl, rootLegalEntityId]
55698
55696
  );
55699
55697
  return /* @__PURE__ */ jsxs(ConfigurationApiContext.Provider, { value: contextValue, children: [
55700
- /* @__PURE__ */ jsx$1("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.65.0" }),
55698
+ /* @__PURE__ */ jsx$1("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.65.2" }),
55701
55699
  children2
55702
55700
  ] });
55703
55701
  };
@@ -56172,7 +56170,7 @@ function StateProvider({
56172
56170
  );
56173
56171
  return /* @__PURE__ */ jsx$1(StateContext.Provider, { value: contextValue, children: children2 });
56174
56172
  }
56175
- const DebugModal = lazy$1(async () => (await import("./DebugModal-BTbmQWwe.js").then((n) => n.D)).DebugModal);
56173
+ const DebugModal = lazy$1(async () => (await import("./DebugModal--aBU-s-k.js").then((n) => n.D)).DebugModal);
56176
56174
  const DebugListener = () => {
56177
56175
  const [debugUiOpen, setDebugUiOpen] = useState(false);
56178
56176
  const { isSettingEnabled } = useSettingsContext();
@@ -7,7 +7,7 @@
7
7
  }
8
8
  }
9
9
  ;
10
- import { c as cssProps } from "./DebugModal-BTbmQWwe.js";
10
+ import { c as cssProps } from "./DebugModal--aBU-s-k.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 { c as cssProps } from "./DebugModal-BTbmQWwe.js";
10
+ import { c as cssProps } from "./DebugModal--aBU-s-k.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 { c as cssProps } from "./DebugModal-BTbmQWwe.js";
10
+ import { c as cssProps } from "./DebugModal--aBU-s-k.js";
11
11
  const definitions = {
12
12
  any: { regex: /.*/g, css: cssProps.text }
13
13
  };
@@ -1,8 +1,8 @@
1
1
  import { type MutationOptions } from '@tanstack/react-query';
2
- import type { LegalEntity } from '../../core/models/api/legal-entity';
2
+ import type { NewPatchLegalEntity } from '../../core/models/api/legal-entity';
3
3
  import type { components } from './legalEntity.contract';
4
4
  type SuccessResponse = components['schemas']['LegalEntityDto'];
5
- export declare const useUpdateLegalEntity: (options?: Omit<MutationOptions<SuccessResponse, Error, LegalEntity>, "mutationFn">) => import("@tanstack/react-query").UseMutationResult<{
5
+ export declare const useUpdateLegalEntity: (options?: Omit<MutationOptions<SuccessResponse, Error, NewPatchLegalEntity>, "mutationFn">) => import("@tanstack/react-query").UseMutationResult<{
6
6
  readonly capabilities?: {
7
7
  [key: string]: components["schemas"]["LegalEntityCapabilityDto"];
8
8
  };
@@ -18,5 +18,5 @@ export declare const useUpdateLegalEntity: (options?: Omit<MutationOptions<Succe
18
18
  readonly trustedFields?: components["schemas"]["TrustedFieldsDto"][];
19
19
  type?: components["schemas"]["LegalEntityType"];
20
20
  unincorporatedPartnership?: components["schemas"]["UnincorporatedPartnershipDto"];
21
- }, Error, LegalEntity, unknown>;
21
+ }, Error, NewPatchLegalEntity, unknown>;
22
22
  export {};
@@ -1,2 +1,2 @@
1
1
  import type { CustomerSupportProps } from './types';
2
- export declare function CustomerSupport({ country, onSubmit }: CustomerSupportProps): import("preact/jsx-runtime").JSX.Element;
2
+ export declare const CustomerSupport: (props: CustomerSupportProps) => import("preact/jsx-runtime").JSX.Element;
@@ -30,9 +30,16 @@ export interface LegalEntityTrustedFields {
30
30
  provider: TrustedFieldsProvider;
31
31
  fields: string[];
32
32
  }
33
+ /** @deprecated - use type below */
33
34
  export type PatchLegalEntity = Omit<PartialDeep<LegalEntity, {
34
35
  recurseIntoArrays: true;
35
36
  }>, 'id'>;
37
+ /** This mandates the id property */
38
+ export type NewPatchLegalEntity = PartialDeep<LegalEntity, {
39
+ recurseIntoArrays: true;
40
+ }> & {
41
+ id: string;
42
+ };
36
43
  export type ExistingLegalEntity = SetRequired<LegalEntity, 'id' | 'type'>;
37
44
  /** Narrowed down type of LegalEntity, so that required fields are not optional */
38
45
  export type ExistingOrganizationLegalEntity = SetRequired<ExistingLegalEntity, 'organization'>;
@@ -7,7 +7,7 @@
7
7
  }
8
8
  }
9
9
  ;
10
- import { c as cssProps } from "./DebugModal-BTbmQWwe.js";
10
+ import { c as cssProps } from "./DebugModal--aBU-s-k.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.65.0",
3
+ "version": "3.65.2",
4
4
  "keywords": [
5
5
  "adyen",
6
6
  "adyen-kyc",