@adyen/kyc-components 3.62.4 → 3.62.5

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-D13c_LyK.js";
2
- import { p as getPreferredColorScheme, q as createMemo, r as createComponent } from "./core-Bh2eO708.js";
1
+ import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, D as Devtools, Q as QueryDevtoolsContext } from "./WXAWMS3D-DQjRhnfM.js";
2
+ import { p as getPreferredColorScheme, q as createMemo, r as createComponent } from "./core-tbkhBGc3.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-Bh2eO708.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-tbkhBGc3.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-FzFkzSvp.js"),
139
- json: () => import("./json-BZG9w_E-.js"),
140
- yaml: () => import("./yaml-D_3m1c9r.js"),
141
- css: () => import("./css-xnEthvch.js")
138
+ plaintext: () => import("./plaintext-g3Akuw64.js"),
139
+ json: () => import("./json-QT-V6QSV.js"),
140
+ yaml: () => import("./yaml-Durv0F6i.js"),
141
+ css: () => import("./css-p5xDSyfA.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.62.4",
432
+ sdkVersion: "3.62.5",
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-Bh2eO708.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-tbkhBGc3.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-D13c_LyK.js";
2
- import { p as getPreferredColorScheme, q as createMemo, r as createComponent } from "./core-Bh2eO708.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-DQjRhnfM.js";
2
+ import { p as getPreferredColorScheme, q as createMemo, r as createComponent } from "./core-tbkhBGc3.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-Bh2eO708.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-tbkhBGc3.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-Bh2eO708.js";
1
+ import { C as Core } from "./core-tbkhBGc3.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-Bh2eO708.js";
1
+ import { C as Core } from "./core-tbkhBGc3.js";
2
2
  const environmentMap = Object.freeze({
3
3
  live: "https://live.adyen.com",
4
4
  test: "https://test.adyen.com"
@@ -52774,7 +52774,11 @@ function SignPCIComponent({
52774
52774
  const additionalSalesChannels = useSalesChannelsSettings();
52775
52775
  const { i18n } = useI18nContext();
52776
52776
  const queryClient = useQueryClient();
52777
- const { data: legalEntityData, isError: isLegalEntityError } = useLegalEntity();
52777
+ const {
52778
+ data: legalEntityData,
52779
+ isError: isLegalEntityError,
52780
+ isLoading: isLegalEntityLoading
52781
+ } = useLegalEntity();
52778
52782
  const { data: pciTemplateData, isLoading: isPciTemplateDataLoading } = usePciTemplate({
52779
52783
  additionalSalesChannels,
52780
52784
  language: i18n.locale.substring(0, 2) ?? "en"
@@ -52802,7 +52806,7 @@ function SignPCIComponent({
52802
52806
  }
52803
52807
  onClose == null ? void 0 : onClose();
52804
52808
  };
52805
- if (isPciStatusLoading || isPciTemplateDataLoading) {
52809
+ if (isLegalEntityLoading || isPciStatusLoading || isPciTemplateDataLoading || !legalEntityData || !pciTemplateData) {
52806
52810
  return /* @__PURE__ */ jsx$1(Loader, { size: "medium" });
52807
52811
  }
52808
52812
  if (isLegalEntityError || isPciStatusError) {
@@ -52962,7 +52966,7 @@ const hasProgressedBeyondEntitySelection = (legalEntity) => {
52962
52966
  return hasOwnEntityAssocation || !!hasOrganizationType;
52963
52967
  };
52964
52968
  const Introduction = lazy$1(
52965
- async () => (await import("./Introduction-5JCuwv_t.js")).Introduction
52969
+ async () => (await import("./Introduction-CQpPe0JI.js")).Introduction
52966
52970
  );
52967
52971
  const PAGES_WITH_POLLING = [TaskTypes.DECISION_MAKER_OVERVIEW, TaskTypes.TASKS_OVERVIEW];
52968
52972
  const logger$8 = createLogger();
@@ -57683,7 +57687,7 @@ var TanstackQueryDevtools = (_k = class {
57683
57687
  if (__privateGet(this, _Component)) {
57684
57688
  Devtools = __privateGet(this, _Component);
57685
57689
  } else {
57686
- Devtools = lazy(() => import("./CPIOZS5X-CllBtSdV.js"));
57690
+ Devtools = lazy(() => import("./CPIOZS5X-CaG40EZu.js"));
57687
57691
  __privateSet(this, _Component, Devtools);
57688
57692
  }
57689
57693
  setupStyleSheet(__privateGet(this, _styleNonce), __privateGet(this, _shadowDOMTarget));
@@ -57805,7 +57809,7 @@ var TanstackQueryDevtoolsPanel = (_l = class {
57805
57809
  if (__privateGet(this, _Component2)) {
57806
57810
  Devtools = __privateGet(this, _Component2);
57807
57811
  } else {
57808
- Devtools = lazy(() => import("./OKF6E45R-BTlw7gZF.js"));
57812
+ Devtools = lazy(() => import("./OKF6E45R-D_H5bQ3b.js"));
57809
57813
  __privateSet(this, _Component2, Devtools);
57810
57814
  }
57811
57815
  setupStyleSheet(__privateGet(this, _styleNonce2), __privateGet(this, _shadowDOMTarget2));
@@ -58024,7 +58028,7 @@ const convertToEmbeddedEvent = (eventQueueItem, sessionData) => {
58024
58028
  };
58025
58029
  };
58026
58030
  const useAnalytics = ({ userEvents: userEvents2, sessionId, sessionData }) => {
58027
- const sdkVersion = "3.62.4";
58031
+ const sdkVersion = "3.62.5";
58028
58032
  const rootLegalEntity = useGlobalStore((store) => store.rootLegalEntity);
58029
58033
  const countryCode = useGlobalStore((store) => store.rootLegalEntityCountry);
58030
58034
  const capabilities = Object.keys(rootLegalEntity.capabilities ?? {});
@@ -58098,7 +58102,7 @@ const AnalyticsProvider = ({
58098
58102
  const { onboardingVersion } = useVersion();
58099
58103
  const userEvents2 = useMemo(() => createUserEvents(), []);
58100
58104
  const sessionData = {
58101
- sdkVersion: "3.62.4",
58105
+ sdkVersion: "3.62.5",
58102
58106
  componentName,
58103
58107
  userAgent: navigator.userAgent,
58104
58108
  legalEntityId,
@@ -58283,7 +58287,7 @@ const ConfigurationApiProvider = ({ children: children2 }) => {
58283
58287
  [baseUrl, rootLegalEntityId]
58284
58288
  );
58285
58289
  return /* @__PURE__ */ jsxs(ConfigurationApiContext.Provider, { value: contextValue, children: [
58286
- /* @__PURE__ */ jsx$1("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.62.4" }),
58290
+ /* @__PURE__ */ jsx$1("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.62.5" }),
58287
58291
  children2
58288
58292
  ] });
58289
58293
  };
@@ -58758,7 +58762,7 @@ function StateProvider({
58758
58762
  );
58759
58763
  return /* @__PURE__ */ jsx$1(StateContext.Provider, { value: contextValue, children: children2 });
58760
58764
  }
58761
- const DebugModal = lazy$1(async () => (await import("./DebugModal-C5fl5Q-D.js").then((n) => n.D)).DebugModal);
58765
+ const DebugModal = lazy$1(async () => (await import("./DebugModal-BuwmjsKS.js").then((n) => n.D)).DebugModal);
58762
58766
  const DebugListener = () => {
58763
58767
  const [debugUiOpen, setDebugUiOpen] = useState(false);
58764
58768
  const { isSettingEnabled } = useSettingsContext();
@@ -1,4 +1,4 @@
1
- import { c as cssProps } from "./DebugModal-C5fl5Q-D.js";
1
+ import { c as cssProps } from "./DebugModal-BuwmjsKS.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-C5fl5Q-D.js";
1
+ import { c as cssProps } from "./DebugModal-BuwmjsKS.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-C5fl5Q-D.js";
1
+ import { c as cssProps } from "./DebugModal-BuwmjsKS.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-C5fl5Q-D.js";
1
+ import { c as cssProps } from "./DebugModal-BuwmjsKS.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.62.4",
3
+ "version": "3.62.5",
4
4
  "keywords": [
5
5
  "adyen",
6
6
  "adyen-kyc",