@adyen/kyc-components 3.63.1 → 3.63.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,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 "./WXAWMS3D-BjlYbHL8.js";
2
- import { p as getPreferredColorScheme, q as createMemo, r as createComponent } from "./core-C3M21RQc.js";
1
+ import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, D as Devtools, Q as QueryDevtoolsContext } from "./WXAWMS3D-C0qahN6N.js";
2
+ import { p as getPreferredColorScheme, q as createMemo, r as createComponent } from "./core-CtLEZ35m.js";
3
3
  var DevtoolsComponent = (props) => {
4
4
  const [localStore, setLocalStore] = createLocalStorage({
5
5
  prefix: "TanstackQueryDevtools"
@@ -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 createLogger, n as Icon, o as SettingNames, E as ExperimentNames } from "./core-C3M21RQc.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 createLogger, n as Icon, o as SettingNames, E as ExperimentNames } from "./core-CtLEZ35m.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-B0SVKwXZ.js"),
139
- json: () => import("./json-CpZB8v_u.js"),
140
- yaml: () => import("./yaml-UkmIWfjc.js"),
141
- css: () => import("./css-BxzQOunc.js")
138
+ plaintext: () => import("./plaintext-jm6guQOB.js"),
139
+ json: () => import("./json-BOZMhevD.js"),
140
+ yaml: () => import("./yaml-BZYqXoHq.js"),
141
+ css: () => import("./css-Byr67uS8.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.63.1",
432
+ sdkVersion: "3.63.2",
433
433
  locale: i18n.locale,
434
434
  rootLegalEntityId: rootLegalEntity.id
435
435
  };
@@ -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 useAnalyticsContext, S as StepProgressIndicator, B as Button } from "./core-C3M21RQc.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 useAnalyticsContext, S as StepProgressIndicator, B as Button } from "./core-CtLEZ35m.js";
4
4
  import { useMemo } from "preact/compat";
5
5
  var IntroductionScreens = ((IntroductionScreens2) => {
6
6
  IntroductionScreens2["PROLOGUE"] = "PROLOGUE";
@@ -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 "./WXAWMS3D-BjlYbHL8.js";
2
- import { p as getPreferredColorScheme, q as createMemo, r as createComponent } from "./core-C3M21RQc.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 "./WXAWMS3D-C0qahN6N.js";
2
+ import { p as getPreferredColorScheme, q as createMemo, r as createComponent } from "./core-CtLEZ35m.js";
3
3
  var DevtoolsPanelComponent = (props) => {
4
4
  const [localStore, setLocalStore] = createLocalStorage({
5
5
  prefix: "TanstackQueryDevtools"
@@ -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 { w as createContext, x as createSignal, y as onMount, z as createEffect, q as createMemo, r as createComponent, P as Portal, A as Show, D as template, F as insert, G as createRenderEffect, H as className, J as clearDelegatedEvents, K as delegateEvents, N as useContext, O as onCleanup, Q as sortFns, R as mutationSortFns, U as on, V as setAttribute, W as getSidedProp, X as use, Y as createUniqueId, Z as batch, _ as getQueryStatusLabel, $ as getMutationStatusColor, a0 as getQueryStatusColor, a1 as getQueryStatusColorByLabel, a2 as displayValue, a3 as For, a4 as convertRemToPixels, a5 as untrack, a6 as $TRACK, a7 as useTransition, a8 as spread, a9 as mergeProps, aa as createRoot, ab as serialize, ac as Index, ad as updateNestedDataByPath, ae as addEventListener, af as stringify, ag as Match, ah as Switch, ai as deleteNestedDataByPath, aj as splitProps, ak as Dynamic, al as createComputed } from "./core-C3M21RQc.js";
4
+ import { w as createContext, x as createSignal, y as onMount, z as createEffect, q as createMemo, r as createComponent, P as Portal, A as Show, D as template, F as insert, G as createRenderEffect, H as className, J as clearDelegatedEvents, K as delegateEvents, N as useContext, O as onCleanup, Q as sortFns, R as mutationSortFns, U as on, V as setAttribute, W as getSidedProp, X as use, Y as createUniqueId, Z as batch, _ as getQueryStatusLabel, $ as getMutationStatusColor, a0 as getQueryStatusColor, a1 as getQueryStatusColorByLabel, a2 as displayValue, a3 as For, a4 as convertRemToPixels, a5 as untrack, a6 as $TRACK, a7 as useTransition, a8 as spread, a9 as mergeProps, aa as createRoot, ab as serialize, ac as Index, ad as updateNestedDataByPath, ae as addEventListener, af as stringify, ag as Match, ah as Switch, ai as deleteNestedDataByPath, aj as splitProps, ak as Dynamic, al as createComputed } from "./core-CtLEZ35m.js";
5
5
  var isNonNullable = (i2) => i2 != null;
6
6
  var filterNonNullable = (arr) => arr.filter(isNonNullable);
7
7
  function chain(callbacks) {
@@ -1,4 +1,4 @@
1
- import { C as Core } from "./core-C3M21RQc.js";
1
+ import { C as Core } from "./core-CtLEZ35m.js";
2
2
  if (CSS.supports("container", "foo / inline-size") === false) {
3
3
  import("container-query-polyfill");
4
4
  }
@@ -1,4 +1,4 @@
1
- import { C as Core } from "./core-C3M21RQc.js";
1
+ import { C as Core } from "./core-CtLEZ35m.js";
2
2
  const environmentMap = Object.freeze({
3
3
  live: "https://live.adyen.com",
4
4
  test: "https://test.adyen.com"
@@ -53273,7 +53273,11 @@ function SignPCIComponent({
53273
53273
  const additionalSalesChannels = useSalesChannelsSettings();
53274
53274
  const { i18n } = useI18nContext();
53275
53275
  const queryClient = useQueryClient();
53276
- const { data: legalEntityData, isError: isLegalEntityError } = useLegalEntity();
53276
+ const {
53277
+ data: legalEntityData,
53278
+ isError: isLegalEntityError,
53279
+ isLoading: isLegalEntityLoading
53280
+ } = useLegalEntity();
53277
53281
  const { data: pciTemplateData, isLoading: isPciTemplateDataLoading } = usePciTemplate({
53278
53282
  additionalSalesChannels,
53279
53283
  language: i18n.locale.substring(0, 2) ?? "en"
@@ -53301,7 +53305,7 @@ function SignPCIComponent({
53301
53305
  }
53302
53306
  onClose == null ? void 0 : onClose();
53303
53307
  };
53304
- if (isPciStatusLoading || isPciTemplateDataLoading) {
53308
+ if (isLegalEntityLoading || isPciStatusLoading || isPciTemplateDataLoading || !legalEntityData || !pciTemplateData) {
53305
53309
  return /* @__PURE__ */ jsx$1(Loader, { size: "medium" });
53306
53310
  }
53307
53311
  if (isLegalEntityError || isPciStatusError) {
@@ -53461,7 +53465,7 @@ const hasProgressedBeyondEntitySelection = (legalEntity) => {
53461
53465
  return hasOwnEntityAssocation || !!hasOrganizationType;
53462
53466
  };
53463
53467
  const Introduction = lazy$1(
53464
- async () => (await import("./Introduction-DrYhCPF7.js")).Introduction
53468
+ async () => (await import("./Introduction-imwEgL7W.js")).Introduction
53465
53469
  );
53466
53470
  const PAGES_WITH_POLLING = [TaskTypes.DECISION_MAKER_OVERVIEW, TaskTypes.TASKS_OVERVIEW];
53467
53471
  const logger$7 = createLogger();
@@ -58138,7 +58142,7 @@ var TanstackQueryDevtools = (_k = class {
58138
58142
  if (__privateGet(this, _Component)) {
58139
58143
  Devtools = __privateGet(this, _Component);
58140
58144
  } else {
58141
- Devtools = lazy(() => import("./CPIOZS5X-Ol4__2Ut.js"));
58145
+ Devtools = lazy(() => import("./CPIOZS5X-BAPAsUnD.js"));
58142
58146
  __privateSet(this, _Component, Devtools);
58143
58147
  }
58144
58148
  setupStyleSheet(__privateGet(this, _styleNonce), __privateGet(this, _shadowDOMTarget));
@@ -58260,7 +58264,7 @@ var TanstackQueryDevtoolsPanel = (_l = class {
58260
58264
  if (__privateGet(this, _Component2)) {
58261
58265
  Devtools = __privateGet(this, _Component2);
58262
58266
  } else {
58263
- Devtools = lazy(() => import("./OKF6E45R-C5DS8TxP.js"));
58267
+ Devtools = lazy(() => import("./OKF6E45R-DJQ6WuJ0.js"));
58264
58268
  __privateSet(this, _Component2, Devtools);
58265
58269
  }
58266
58270
  setupStyleSheet(__privateGet(this, _styleNonce2), __privateGet(this, _shadowDOMTarget2));
@@ -58479,7 +58483,7 @@ const convertToEmbeddedEvent = (eventQueueItem, sessionData) => {
58479
58483
  };
58480
58484
  };
58481
58485
  const useAnalytics = ({ userEvents: userEvents2, sessionId, sessionData }) => {
58482
- const sdkVersion = "3.63.1";
58486
+ const sdkVersion = "3.63.2";
58483
58487
  const rootLegalEntity = useGlobalStore((store) => store.rootLegalEntity);
58484
58488
  const countryCode = useGlobalStore((store) => store.rootLegalEntityCountry);
58485
58489
  const capabilities = Object.keys(rootLegalEntity.capabilities ?? {});
@@ -58553,7 +58557,7 @@ const AnalyticsProvider = ({
58553
58557
  const { onboardingVersion } = useVersion();
58554
58558
  const userEvents2 = useMemo(() => createUserEvents(), []);
58555
58559
  const sessionData = {
58556
- sdkVersion: "3.63.1",
58560
+ sdkVersion: "3.63.2",
58557
58561
  componentName,
58558
58562
  userAgent: navigator.userAgent,
58559
58563
  legalEntityId,
@@ -58705,7 +58709,7 @@ const ConfigurationApiProvider = ({ children: children2 }) => {
58705
58709
  [baseUrl, rootLegalEntityId]
58706
58710
  );
58707
58711
  return /* @__PURE__ */ jsxs(ConfigurationApiContext.Provider, { value: contextValue, children: [
58708
- /* @__PURE__ */ jsx$1("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.63.1" }),
58712
+ /* @__PURE__ */ jsx$1("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.63.2" }),
58709
58713
  children2
58710
58714
  ] });
58711
58715
  };
@@ -59180,7 +59184,7 @@ function StateProvider({
59180
59184
  );
59181
59185
  return /* @__PURE__ */ jsx$1(StateContext.Provider, { value: contextValue, children: children2 });
59182
59186
  }
59183
- const DebugModal = lazy$1(async () => (await import("./DebugModal-c4G6wyD8.js").then((n) => n.D)).DebugModal);
59187
+ const DebugModal = lazy$1(async () => (await import("./DebugModal-fAWDVtvl.js").then((n) => n.D)).DebugModal);
59184
59188
  const DebugListener = () => {
59185
59189
  const [debugUiOpen, setDebugUiOpen] = useState(false);
59186
59190
  const { isSettingEnabled } = useSettingsContext();
@@ -1,4 +1,4 @@
1
- import { c as cssProps } from "./DebugModal-c4G6wyD8.js";
1
+ import { c as cssProps } from "./DebugModal-fAWDVtvl.js";
2
2
  const definitions = {
3
3
  any: { regex: /.*/g, css: cssProps.text },
4
4
  property: { regex: /(^|[\r\n])[^:]*:/g, css: cssProps.key },
@@ -1,4 +1,4 @@
1
- import { c as cssProps } from "./DebugModal-c4G6wyD8.js";
1
+ import { c as cssProps } from "./DebugModal-fAWDVtvl.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-c4G6wyD8.js";
1
+ import { c as cssProps } from "./DebugModal-fAWDVtvl.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-c4G6wyD8.js";
1
+ import { c as cssProps } from "./DebugModal-fAWDVtvl.js";
2
2
  const definitions = {
3
3
  any: { regex: /.*/g, css: cssProps.text },
4
4
  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.63.1",
3
+ "version": "3.63.2",
4
4
  "keywords": [
5
5
  "adyen",
6
6
  "adyen-kyc",