@adyen/kyc-components 3.50.0 → 3.50.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.
@@ -1,7 +1,7 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
- import { b as createContext, d as createSignal, o as onMount, e as createEffect, c as createMemo, a as createComponent, P as Portal, S as Show, t as template, i as insert, f as createRenderEffect, h as className, j as clearDelegatedEvents, k as delegateEvents, u as useContext, l as onCleanup, s as sortFns, m as mutationSortFns, n as on, p as setAttribute, q as getSidedProp, r as use, v as createUniqueId, w as batch, x as getQueryStatusLabel, y as getMutationStatusColor, z as getQueryStatusColor, A as getQueryStatusColorByLabel, B as displayValue, F as For, C as convertRemToPixels, D as untrack, $ as $TRACK, E as useTransition, G as spread, H as mergeProps, I as createRoot, J as serialize, K as Index, L as updateNestedDataByPath, M as addEventListener, N as stringify, O as Match, Q as Switch, R as deleteNestedDataByPath, T as splitProps, U as Dynamic, V as createComputed } from "./index-BSV6Ni-p.js";
4
+ import { b as createContext, d as createSignal, o as onMount, e as createEffect, c as createMemo, a as createComponent, P as Portal, S as Show, t as template, i as insert, f as createRenderEffect, h as className, j as clearDelegatedEvents, k as delegateEvents, u as useContext, l as onCleanup, s as sortFns, m as mutationSortFns, n as on, p as setAttribute, q as getSidedProp, r as use, v as createUniqueId, w as batch, x as getQueryStatusLabel, y as getMutationStatusColor, z as getQueryStatusColor, A as getQueryStatusColorByLabel, B as displayValue, F as For, C as convertRemToPixels, D as untrack, $ as $TRACK, E as useTransition, G as spread, H as mergeProps, I as createRoot, J as serialize, K as Index, L as updateNestedDataByPath, M as addEventListener, N as stringify, O as Match, Q as Switch, R as deleteNestedDataByPath, T as splitProps, U as Dynamic, V as createComputed } from "./index-BGerupa5.js";
5
5
  var isNonNullable = (i2) => i2 != null;
6
6
  var filterNonNullable = (arr) => arr.filter(isNonNullable);
7
7
  function chain(callbacks) {
@@ -1,5 +1,5 @@
1
- import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, D as Devtools, Q as QueryDevtoolsContext } from "./B4MFY5CR-Bt-nnzG3.js";
2
- import { g as getPreferredColorScheme, c as createMemo, a as createComponent } from "./index-BSV6Ni-p.js";
1
+ import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, D as Devtools, Q as QueryDevtoolsContext } from "./B4MFY5CR-B_M9Rijb.js";
2
+ import { g as getPreferredColorScheme, c as createMemo, a as createComponent } from "./index-BGerupa5.js";
3
3
  var DevtoolsComponent = (props) => {
4
4
  const [localStore, setLocalStore] = createLocalStorage({
5
5
  prefix: "TanstackQueryDevtools"
@@ -1,5 +1,5 @@
1
- import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, b as ParentPanel, C as ContentView, Q as QueryDevtoolsContext } from "./B4MFY5CR-Bt-nnzG3.js";
2
- import { g as getPreferredColorScheme, c as createMemo, a as createComponent } from "./index-BSV6Ni-p.js";
1
+ import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, b as ParentPanel, C as ContentView, Q as QueryDevtoolsContext } from "./B4MFY5CR-B_M9Rijb.js";
2
+ import { g as getPreferredColorScheme, c as createMemo, a as createComponent } from "./index-BGerupa5.js";
3
3
  var DevtoolsPanelComponent = (props) => {
4
4
  const [localStore, setLocalStore] = createLocalStorage({
5
5
  prefix: "TanstackQueryDevtools"
@@ -1,4 +1,4 @@
1
- import { W } from "./index-BSV6Ni-p.js";
1
+ import { W } from "./index-BGerupa5.js";
2
2
  export {
3
3
  W as default
4
4
  };
@@ -28112,6 +28112,7 @@ function PayoutVerificationMethod(props) {
28112
28112
  });
28113
28113
  const formUtils = createFormUtils(props, i18n);
28114
28114
  const { sliceData, updateStateSlice } = useGlobalDataSlice("payoutVerificationMethod");
28115
+ const { clearStateSlice: clearPayoutAccountDetails } = useGlobalDataSlice("payoutAccountDetails");
28115
28116
  useEffect(
28116
28117
  () => updateStateSlice({ data: { ...sliceData, ...data }, errors, valid, fieldProblems }),
28117
28118
  [data, errors, fieldProblems, valid]
@@ -28176,7 +28177,10 @@ function PayoutVerificationMethod(props) {
28176
28177
  readonly: !intraRegionCrossBorderPayoutsAllowed || allowedBankCountries.length === 1 || bankInfoValidated,
28177
28178
  allowedCountries: allowedBankCountries,
28178
28179
  classNameModifiers: ["country"],
28179
- handleChangeFor: () => handleChangeFor("bankCountry", "input"),
28180
+ handleChangeFor: () => (e) => {
28181
+ clearPayoutAccountDetails();
28182
+ return handleChangeFor("bankCountry", "input")(e);
28183
+ },
28180
28184
  helperText: {
28181
28185
  country: intraRegionCrossBorderPayoutsAllowed ? void 0 : i18n.get(
28182
28186
  legalEntityType === LegalEntityType.INDIVIDUAL ? "youCanOnlyUseABankAccountInTheCountryRegionWhereYouLive" : "youCanOnlyUseABankAccountInTheCountryRegionWhereYourCompanyIsRegistered"
@@ -41023,7 +41027,7 @@ function ServiceAgreementDropin({
41023
41027
  });
41024
41028
  }
41025
41029
  };
41026
- const isSoleProprietor = hasSolePropInLegalEntity(legalEntityResponse) && accountHolder === "mySoleProprietorName";
41030
+ const isSoleProprietor = hasSolePropInLegalEntity(legalEntityResponse) || accountHolder === "mySoleProprietorName";
41027
41031
  const addSignerAlert = /* @__PURE__ */ jsx(
41028
41032
  Alert,
41029
41033
  {
@@ -50802,7 +50806,7 @@ const ConfigurationApiProvider = ({
50802
50806
  }) => {
50803
50807
  const authContext = useAuthContext();
50804
50808
  const { isEmbeddedDropin, loadingContext } = authContext;
50805
- const sdkVersion = "3.50.0";
50809
+ const sdkVersion = "3.50.2";
50806
50810
  const rootLegalEntityId = useGlobalStore((store) => store.rootLegalEntity.id);
50807
50811
  useAnalytics({
50808
50812
  onUserEvent,
@@ -51155,7 +51159,7 @@ function StateReducer() {
51155
51159
  },
51156
51160
  valid: {
51157
51161
  ...state.valid,
51158
- [dataStoreId]: {}
51162
+ [dataStoreId]: false
51159
51163
  },
51160
51164
  fieldProblems: {
51161
51165
  ...state.fieldProblems,
@@ -51164,7 +51168,7 @@ function StateReducer() {
51164
51168
  };
51165
51169
  mergedState.validityByForm = {
51166
51170
  ...mergedState.validityByForm,
51167
- [dataStoreId]: {}
51171
+ [dataStoreId]: false
51168
51172
  };
51169
51173
  mergedState.allValid = Object.values(mergedState.validityByForm).every(
51170
51174
  (isValid) => isValid
@@ -51686,7 +51690,7 @@ const DebugModal = ({ onExit }) => {
51686
51690
  const [tab, setTab] = useState("metadata");
51687
51691
  const rootLegalEntity = useGlobalStore((store) => store.rootLegalEntity);
51688
51692
  const metadata = {
51689
- sdkVersion: "3.50.0",
51693
+ sdkVersion: "3.50.2",
51690
51694
  locale: i18n.locale,
51691
51695
  rootLegalEntityId: rootLegalEntity.id
51692
51696
  };
@@ -54683,7 +54687,7 @@ var TanstackQueryDevtools = (_k = class {
54683
54687
  if (__privateGet(this, _Component)) {
54684
54688
  Devtools = __privateGet(this, _Component);
54685
54689
  } else {
54686
- Devtools = lazy(() => import("./HO4MOOFI-70Nm-7sY.js"));
54690
+ Devtools = lazy(() => import("./HO4MOOFI-6-_r_YKd.js"));
54687
54691
  __privateSet(this, _Component, Devtools);
54688
54692
  }
54689
54693
  setupStyleSheet(__privateGet(this, _styleNonce), __privateGet(this, _shadowDOMTarget));
@@ -54805,7 +54809,7 @@ var TanstackQueryDevtoolsPanel = (_l = class {
54805
54809
  if (__privateGet(this, _Component2)) {
54806
54810
  Devtools = __privateGet(this, _Component2);
54807
54811
  } else {
54808
- Devtools = lazy(() => import("./HUY7CZI3-1U-zoofU.js"));
54812
+ Devtools = lazy(() => import("./HUY7CZI3-BSnh9U8W.js"));
54809
54813
  __privateSet(this, _Component2, Devtools);
54810
54814
  }
54811
54815
  setupStyleSheet(__privateGet(this, _styleNonce2), __privateGet(this, _shadowDOMTarget2));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/kyc-components",
3
- "version": "3.50.0",
3
+ "version": "3.50.2",
4
4
  "keywords": [
5
5
  "adyen",
6
6
  "adyen-kyc",