@adyen/kyc-components 3.60.1 → 3.60.3

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 { z as createContext, A as createSignal, C as onMount, D as createEffect, x as createMemo, y as createComponent, P as Portal, F as Show, G as template, H as insert, J as createRenderEffect, K as className, N as clearDelegatedEvents, O as delegateEvents, Q as useContext, R as onCleanup, U as sortFns, V as mutationSortFns, W as on, X as setAttribute, Y as getSidedProp, Z as use, _ as createUniqueId, $ as batch, a0 as getQueryStatusLabel, a1 as getMutationStatusColor, a2 as getQueryStatusColor, a3 as getQueryStatusColorByLabel, a4 as displayValue, a5 as For, a6 as convertRemToPixels, a7 as untrack, a8 as $TRACK, a9 as useTransition, aa as spread, ab as mergeProps, ac as createRoot, ad as serialize, ae as Index, af as updateNestedDataByPath, ag as addEventListener, ah as stringify, ai as Match, aj as Switch, ak as deleteNestedDataByPath, al as splitProps, am as Dynamic, an as createComputed } from "./index-C-LIa1u3.js";
4
+ import { z as createContext, A as createSignal, C as onMount, D as createEffect, x as createMemo, y as createComponent, P as Portal, F as Show, G as template, H as insert, J as createRenderEffect, K as className, N as clearDelegatedEvents, O as delegateEvents, Q as useContext, R as onCleanup, U as sortFns, V as mutationSortFns, W as on, X as setAttribute, Y as getSidedProp, Z as use, _ as createUniqueId, $ as batch, a0 as getQueryStatusLabel, a1 as getMutationStatusColor, a2 as getQueryStatusColor, a3 as getQueryStatusColorByLabel, a4 as displayValue, a5 as For, a6 as convertRemToPixels, a7 as untrack, a8 as $TRACK, a9 as useTransition, aa as spread, ab as mergeProps, ac as createRoot, ad as serialize, ae as Index, af as updateNestedDataByPath, ag as addEventListener, ah as stringify, ai as Match, aj as Switch, ak as deleteNestedDataByPath, al as splitProps, am as Dynamic, an as createComputed } from "./index-7OGoWOfc.js";
5
5
  var isNonNullable = (i2) => i2 != null;
6
6
  var filterNonNullable = (arr) => arr.filter(isNonNullable);
7
7
  function chain(callbacks) {
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
2
2
  import { useMemo, useState } from "preact/hooks";
3
- import { B as Button, d as Tag, e as entriesOf, I as InputText, b as useI18nContext, s as splitTaskIdentifier, f as TaskItemStatus, h as useExperimentsContext, i as useSettingsContext, j as useGlobalStore, l as listToRecord, v as valuesOf, k as useTaskStatuses, M as Modal, m as ModalHeader, n as ModalContent, o as ModalFooter, p as createLogger, q as Icon, r as SettingNames, E as ExperimentNames } from "./index-C-LIa1u3.js";
3
+ import { B as Button, d as Tag, e as entriesOf, I as InputText, b as useI18nContext, s as splitTaskIdentifier, f as TaskItemStatus, h as useExperimentsContext, i as useSettingsContext, j as useGlobalStore, l as listToRecord, v as valuesOf, k as useTaskStatuses, M as Modal, m as ModalHeader, n as ModalContent, o as ModalFooter, p as createLogger, q as Icon, r as SettingNames, E as ExperimentNames } from "./index-7OGoWOfc.js";
4
4
  const tabs = "adyen-kyc-tabs";
5
5
  const styles$1 = {
6
6
  tabs
@@ -135,10 +135,10 @@ const transformModule = (highlights, codeNode, scope) => {
135
135
  };
136
136
  const supportedModules = ["plaintext", "json", "yaml", "css"];
137
137
  const moduleMap = {
138
- plaintext: () => import("./plaintext-e77G1tnL.js"),
139
- json: () => import("./json-sZSg9ISC.js"),
140
- yaml: () => import("./yaml-B8sDVhM2.js"),
141
- css: () => import("./css-Cc3v-cq5.js")
138
+ plaintext: () => import("./plaintext-C3BbjEEa.js"),
139
+ json: () => import("./json-T151h9Wo.js"),
140
+ yaml: () => import("./yaml-CdrN9cX4.js"),
141
+ css: () => import("./css-CQLsxKsu.js")
142
142
  };
143
143
  const getModule = async (name) => {
144
144
  if (!supportedModules.includes(name)) {
@@ -429,7 +429,7 @@ const DebugModal = ({ onExit }) => {
429
429
  const [tab, setTab] = useState("metadata");
430
430
  const rootLegalEntity = useGlobalStore((store) => store.rootLegalEntity);
431
431
  const metadata = {
432
- sdkVersion: "3.60.1",
432
+ sdkVersion: "3.60.3",
433
433
  locale: i18n.locale,
434
434
  rootLegalEntityId: rootLegalEntity.id
435
435
  };
@@ -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-DPrejs6Z.js";
2
- import { w as getPreferredColorScheme, x as createMemo, y as createComponent } from "./index-C-LIa1u3.js";
1
+ import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, D as Devtools, Q as QueryDevtoolsContext } from "./B4MFY5CR-DzT4u56M.js";
2
+ import { w as getPreferredColorScheme, x as createMemo, y as createComponent } from "./index-7OGoWOfc.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-DPrejs6Z.js";
2
- import { w as getPreferredColorScheme, x as createMemo, y as createComponent } from "./index-C-LIa1u3.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-DzT4u56M.js";
2
+ import { w as getPreferredColorScheme, x as createMemo, y as createComponent } from "./index-7OGoWOfc.js";
3
3
  var DevtoolsPanelComponent = (props) => {
4
4
  const [localStore, setLocalStore] = createLocalStorage({
5
5
  prefix: "TanstackQueryDevtools"
@@ -1,6 +1,6 @@
1
1
  import { jsxs, Fragment, jsx } from "preact/jsx-runtime";
2
2
  import { useMemo as useMemo$1, useState, useEffect } from "preact/hooks";
3
- import { T as TaskTypes, L as LegalEntityType, u as useCanSeeIntroduction, a as useLegalEntityType, t as toCapitalized, g as getTranslationKeysByPrefix, b as useI18nContext, c as userEvents, S as StepProgressIndicator, B as Button } from "./index-C-LIa1u3.js";
3
+ import { T as TaskTypes, L as LegalEntityType, u as useCanSeeIntroduction, a as useLegalEntityType, t as toCapitalized, g as getTranslationKeysByPrefix, b as useI18nContext, c as userEvents, S as StepProgressIndicator, B as Button } from "./index-7OGoWOfc.js";
4
4
  import { useMemo } from "preact/compat";
5
5
  var IntroductionScreens = ((IntroductionScreens2) => {
6
6
  IntroductionScreens2["PROLOGUE"] = "PROLOGUE";
@@ -1,4 +1,4 @@
1
- import { ao } from "./index-C-LIa1u3.js";
1
+ import { ao } from "./index-7OGoWOfc.js";
2
2
  export {
3
3
  ao as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { c as cssProps } from "./DebugModal-BaRS3wa1.js";
1
+ import { c as cssProps } from "./DebugModal-Dkup7iSX.js";
2
2
  const definitions = {
3
3
  any: { regex: /.*/g, css: cssProps.text },
4
4
  property: { regex: /(^|[\r\n])[^:]*:/g, css: cssProps.key },
@@ -39439,7 +39439,11 @@ function SourceOfFundsDropin({
39439
39439
  try {
39440
39440
  await updateSourceOfFunds2(legalEntityResponse.id, activeBusinessLine.id, sofPayload);
39441
39441
  await queryClient.invalidateQueries({
39442
- queryKey: ["businessLines", "taskStatus"],
39442
+ queryKey: ["businessLines"],
39443
+ refetchType: "all"
39444
+ });
39445
+ await queryClient.invalidateQueries({
39446
+ queryKey: ["taskStatus"],
39443
39447
  refetchType: "all"
39444
39448
  });
39445
39449
  await loadBusinessLines();
@@ -44585,7 +44589,8 @@ function useDataMissingRemediations({
44585
44589
  const normalizeTaskStatuses = (taskStatuses) => {
44586
44590
  var _a2;
44587
44591
  return (_a2 = taskStatuses == null ? void 0 : taskStatuses.statuses) == null ? void 0 : _a2.reduce((acc, currentTask) => {
44588
- acc[currentTask.type] = currentTask.status;
44592
+ const status = TaskStatus[currentTask.status];
44593
+ acc[currentTask.type] = status ?? TaskStatus.DETAILS_REQUIRED;
44589
44594
  return acc;
44590
44595
  }, {});
44591
44596
  };
@@ -47023,6 +47028,10 @@ function HighExposureDropin(props) {
47023
47028
  queryKey: ["taskStatus"],
47024
47029
  refetchType: "all"
47025
47030
  });
47031
+ await queryClient.invalidateQueries({
47032
+ queryKey: ["legalEntity"],
47033
+ refetchType: "all"
47034
+ });
47026
47035
  if (!isStandaloneComponent && externalOnSubmit) {
47027
47036
  externalOnSubmit == null ? void 0 : externalOnSubmit({ ...data });
47028
47037
  } else {
@@ -52116,7 +52125,7 @@ const hasProgressedBeyondEntitySelection = (legalEntity) => {
52116
52125
  return hasOwnEntityAssocation || !!hasOrganizationType;
52117
52126
  };
52118
52127
  const Introduction = lazy$1(
52119
- async () => (await import("./Introduction-CjJADfTi.js")).Introduction
52128
+ async () => (await import("./Introduction-DVtoewV_.js")).Introduction
52120
52129
  );
52121
52130
  const PAGES_WITH_POLLING = [TaskTypes.DECISION_MAKER_OVERVIEW, TaskTypes.TASKS_OVERVIEW];
52122
52131
  const logger$c = createLogger();
@@ -57129,7 +57138,7 @@ var TanstackQueryDevtools = (_k = class {
57129
57138
  if (__privateGet(this, _Component)) {
57130
57139
  Devtools = __privateGet(this, _Component);
57131
57140
  } else {
57132
- Devtools = lazy(() => import("./HO4MOOFI-DdIqwBfg.js"));
57141
+ Devtools = lazy(() => import("./HO4MOOFI-CpYXY3hP.js"));
57133
57142
  __privateSet(this, _Component, Devtools);
57134
57143
  }
57135
57144
  setupStyleSheet(__privateGet(this, _styleNonce), __privateGet(this, _shadowDOMTarget));
@@ -57251,7 +57260,7 @@ var TanstackQueryDevtoolsPanel = (_l = class {
57251
57260
  if (__privateGet(this, _Component2)) {
57252
57261
  Devtools = __privateGet(this, _Component2);
57253
57262
  } else {
57254
- Devtools = lazy(() => import("./HUY7CZI3-DgkgxO5E.js"));
57263
+ Devtools = lazy(() => import("./HUY7CZI3-DUfQplsy.js"));
57255
57264
  __privateSet(this, _Component2, Devtools);
57256
57265
  }
57257
57266
  setupStyleSheet(__privateGet(this, _styleNonce2), __privateGet(this, _shadowDOMTarget2));
@@ -57472,7 +57481,7 @@ const useAnalytics = ({
57472
57481
  componentName,
57473
57482
  onboardingVersion
57474
57483
  }) => {
57475
- const sdkVersion = "3.60.1";
57484
+ const sdkVersion = "3.60.3";
57476
57485
  const { isEmbeddedDropin, loadingContext: base } = useAuthContext();
57477
57486
  const rootLegalEntity = useGlobalStore((store) => store.rootLegalEntity);
57478
57487
  const countryCode = useGlobalStore((store) => store.rootLegalEntityCountry);
@@ -57963,7 +57972,7 @@ const ConfigurationApiProvider = ({
57963
57972
  [authContext, rootLegalEntityId]
57964
57973
  );
57965
57974
  return /* @__PURE__ */ jsxs(ConfigurationApiContext.Provider, { value: contextValue, children: [
57966
- /* @__PURE__ */ jsx$1("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.60.1" }),
57975
+ /* @__PURE__ */ jsx$1("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.60.3" }),
57967
57976
  children2
57968
57977
  ] });
57969
57978
  };
@@ -58404,7 +58413,7 @@ function StateProvider({
58404
58413
  );
58405
58414
  return /* @__PURE__ */ jsx$1(StateContext.Provider, { value: contextValue, children: children2 });
58406
58415
  }
58407
- const DebugModal = lazy$1(async () => (await import("./DebugModal-BaRS3wa1.js").then((n) => n.D)).DebugModal);
58416
+ const DebugModal = lazy$1(async () => (await import("./DebugModal-Dkup7iSX.js").then((n) => n.D)).DebugModal);
58408
58417
  const DebugListener = () => {
58409
58418
  const [debugUiOpen, setDebugUiOpen] = useState(false);
58410
58419
  const { isSettingEnabled } = useSettingsContext();
@@ -1,4 +1,4 @@
1
- import { c as cssProps } from "./DebugModal-BaRS3wa1.js";
1
+ import { c as cssProps } from "./DebugModal-Dkup7iSX.js";
2
2
  const definitions = {
3
3
  any: { regex: /.*/g, css: cssProps.text },
4
4
  number: { regex: /-?\d+(\.\d+)?([eE][+-]?\d+)?/g, css: cssProps.number },
@@ -1,4 +1,4 @@
1
- import { c as cssProps } from "./DebugModal-BaRS3wa1.js";
1
+ import { c as cssProps } from "./DebugModal-Dkup7iSX.js";
2
2
  const definitions = {
3
3
  any: { regex: /.*/g, css: cssProps.text }
4
4
  };
@@ -1,4 +1,4 @@
1
- import { c as cssProps } from "./DebugModal-BaRS3wa1.js";
1
+ import { c as cssProps } from "./DebugModal-Dkup7iSX.js";
2
2
  const definitions = {
3
3
  any: { regex: /.*/g, css: cssProps.text },
4
4
  boolean: { regex: /^(\s*)([\w-]+)(:)\s*(.*)$/g, css: cssProps.boolean },
@@ -17,13 +17,14 @@ export declare enum TaskStatus {
17
17
  UNKNOWN = 10
18
18
  }
19
19
  type Reason = 'rootLegalEntityIsEmpty' | 'newEntityAlwaysEmpty' | 'legalRepresentativeNeeded' | 'bankAccountNeeded' | 'missingRequiredDecisionMakers' | 'missingRequiredTrustMembers' | 'invalidInputError' | 'dataMissingError' | 'dataReviewNeeded' | 'pendingStatusError' | 'pendingCapabilities' | 'invalidCapabilities' | 'allCapabilitiesValid' | 'noIssuesFound';
20
+ export type ApiTaskStatus = 'DETAILS_REQUIRED' | 'ERROR' | 'PROCESSING' | 'FINISHED';
20
21
  export interface TaskStatusWithReason {
21
22
  status: TaskStatus;
22
23
  reason: Reason;
23
24
  details?: any;
24
25
  }
25
26
  export interface TaskStatusWithType {
26
- status: TaskStatus;
27
+ status: ApiTaskStatus;
27
28
  type: TaskTypes;
28
29
  }
29
30
  export interface TaskStatusApiResponse {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/kyc-components",
3
- "version": "3.60.1",
3
+ "version": "3.60.3",
4
4
  "keywords": [
5
5
  "adyen",
6
6
  "adyen-kyc",