@adyen/kyc-components 3.61.1 → 3.61.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,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-6HY5ACHQ.js";
2
- import { p as getPreferredColorScheme, q as createMemo, r as createComponent } from "./core-DnJXG_2z.js";
1
+ import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, D as Devtools, Q as QueryDevtoolsContext } from "./WXAWMS3D-D2tl7FvI.js";
2
+ import { p as getPreferredColorScheme, q as createMemo, r as createComponent } from "./core-DXKGtvMY.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-DnJXG_2z.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-DXKGtvMY.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-Cv8TglfR.js"),
139
- json: () => import("./json-CfYJ8CuG.js"),
140
- yaml: () => import("./yaml-CQz3uVGi.js"),
141
- css: () => import("./css-DWtBz-U6.js")
138
+ plaintext: () => import("./plaintext-DXIvo2q0.js"),
139
+ json: () => import("./json-Zs_gNV8L.js"),
140
+ yaml: () => import("./yaml-D9YvkDTA.js"),
141
+ css: () => import("./css-CT4RTTOU.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.61.1",
432
+ sdkVersion: "3.61.3",
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-DnJXG_2z.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-DXKGtvMY.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-6HY5ACHQ.js";
2
- import { p as getPreferredColorScheme, q as createMemo, r as createComponent } from "./core-DnJXG_2z.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-D2tl7FvI.js";
2
+ import { p as getPreferredColorScheme, q as createMemo, r as createComponent } from "./core-DXKGtvMY.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-DnJXG_2z.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-DXKGtvMY.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-DnJXG_2z.js";
1
+ import { C as Core } from "./core-DXKGtvMY.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-DnJXG_2z.js";
1
+ import { C as Core } from "./core-DXKGtvMY.js";
2
2
  const environmentMap = Object.freeze({
3
3
  live: "https://live.adyen.com",
4
4
  test: "https://test.adyen.com"
@@ -35368,7 +35368,6 @@ function BusinessDetailsDropin({
35368
35368
  currentProblems == null ? void 0 : currentProblems.remediationActions,
35369
35369
  currentProblems == null ? void 0 : currentProblems.missingData,
35370
35370
  subjectEntity,
35371
- isExperimentEnabled,
35372
35371
  customRules,
35373
35372
  trustedFields
35374
35373
  ]
@@ -35442,6 +35441,8 @@ function BusinessDetailsDropin({
35442
35441
  userEvents: userEvents2
35443
35442
  });
35444
35443
  }, [
35444
+ setAccountHolder,
35445
+ accountHolder,
35445
35446
  associatedLeTrackingParams,
35446
35447
  currentState.data,
35447
35448
  legalEntityResponse,
@@ -35450,7 +35451,6 @@ function BusinessDetailsDropin({
35450
35451
  nestedLegalEntityDetails,
35451
35452
  currentProblems,
35452
35453
  taskType,
35453
- accountHolder,
35454
35454
  forms,
35455
35455
  documentUtils,
35456
35456
  i18n,
@@ -35459,7 +35459,7 @@ function BusinessDetailsDropin({
35459
35459
  handleCreateLegalEntity,
35460
35460
  onExternalSubmit,
35461
35461
  isExperimentEnabled,
35462
- setAccountHolder
35462
+ userEvents2
35463
35463
  ]);
35464
35464
  const {
35465
35465
  handleNextClick,
@@ -35539,7 +35539,8 @@ function BusinessDetailsDropin({
35539
35539
  verifyTin2,
35540
35540
  currentCountry,
35541
35541
  subjectEntity == null ? void 0 : subjectEntity.id,
35542
- subjectEntity == null ? void 0 : subjectEntity.type
35542
+ subjectEntity == null ? void 0 : subjectEntity.type,
35543
+ userEvents2
35543
35544
  ]);
35544
35545
  const handleCompanySearch = useCallback(
35545
35546
  async (currentData) => {
@@ -35616,6 +35617,7 @@ function BusinessDetailsDropin({
35616
35617
  if (activeForm.formId === "companyStructure" && (searchResults == null ? void 0 : searchResults.length)) {
35617
35618
  setShowCompanyStructure(false);
35618
35619
  }
35620
+ return gotoFormByFormIndex(index);
35619
35621
  } else {
35620
35622
  if (verifiedBusiness) return gotoFormByFormIndex(index);
35621
35623
  if (activeForm.formId !== formWith2Views) return gotoFormByFormIndex(index);
@@ -52827,7 +52829,7 @@ const hasProgressedBeyondEntitySelection = (legalEntity) => {
52827
52829
  return hasOwnEntityAssocation || !!hasOrganizationType;
52828
52830
  };
52829
52831
  const Introduction = lazy$1(
52830
- async () => (await import("./Introduction-QSBnlZdp.js")).Introduction
52832
+ async () => (await import("./Introduction-BYkxpFLZ.js")).Introduction
52831
52833
  );
52832
52834
  const PAGES_WITH_POLLING = [TaskTypes.DECISION_MAKER_OVERVIEW, TaskTypes.TASKS_OVERVIEW];
52833
52835
  const logger$b = createLogger();
@@ -57721,7 +57723,7 @@ var TanstackQueryDevtools = (_k = class {
57721
57723
  if (__privateGet(this, _Component)) {
57722
57724
  Devtools = __privateGet(this, _Component);
57723
57725
  } else {
57724
- Devtools = lazy(() => import("./CPIOZS5X-C5VhSMmP.js"));
57726
+ Devtools = lazy(() => import("./CPIOZS5X-cBVcxn3m.js"));
57725
57727
  __privateSet(this, _Component, Devtools);
57726
57728
  }
57727
57729
  setupStyleSheet(__privateGet(this, _styleNonce), __privateGet(this, _shadowDOMTarget));
@@ -57843,7 +57845,7 @@ var TanstackQueryDevtoolsPanel = (_l = class {
57843
57845
  if (__privateGet(this, _Component2)) {
57844
57846
  Devtools = __privateGet(this, _Component2);
57845
57847
  } else {
57846
- Devtools = lazy(() => import("./OKF6E45R-CfDVrj5C.js"));
57848
+ Devtools = lazy(() => import("./OKF6E45R-uSvZqNWv.js"));
57847
57849
  __privateSet(this, _Component2, Devtools);
57848
57850
  }
57849
57851
  setupStyleSheet(__privateGet(this, _styleNonce2), __privateGet(this, _shadowDOMTarget2));
@@ -58036,11 +58038,11 @@ const convertToEmbeddedEvent = (eventQueueItem, sessionData) => {
58036
58038
  };
58037
58039
  const useAnalytics = ({
58038
58040
  onUserEvent,
58041
+ userEvents: userEvents2,
58039
58042
  componentName,
58040
58043
  onboardingVersion
58041
58044
  }) => {
58042
- const userEvents2 = createUserEvents();
58043
- const sdkVersion = "3.61.1";
58045
+ const sdkVersion = "3.61.3";
58044
58046
  const { isEmbeddedDropin, loadingContext: base } = useAuthContext();
58045
58047
  const rootLegalEntity = useGlobalStore((store) => store.rootLegalEntity);
58046
58048
  const countryCode = useGlobalStore((store) => store.rootLegalEntityCountry);
@@ -58097,7 +58099,6 @@ const useAnalytics = ({
58097
58099
  sdkVersion,
58098
58100
  userEvents2
58099
58101
  ]);
58100
- return userEvents2;
58101
58102
  };
58102
58103
  const getVersionConfiguration = async (context) => {
58103
58104
  const { loadingContext, legalEntityId } = context;
@@ -58143,13 +58144,15 @@ const AnalyticsProvider = ({
58143
58144
  children: children2,
58144
58145
  legalEntityId
58145
58146
  }) => {
58147
+ const userEvents2 = useMemo(() => createUserEvents(), []);
58146
58148
  const { onboardingVersion } = useVersionConfiguration(legalEntityId);
58147
- const contextValue = useAnalytics({
58149
+ useAnalytics({
58148
58150
  onUserEvent,
58151
+ userEvents: userEvents2,
58149
58152
  componentName,
58150
58153
  onboardingVersion
58151
58154
  });
58152
- return /* @__PURE__ */ jsx$1(AnalyticsContext.Provider, { value: contextValue, children: children2 });
58155
+ return /* @__PURE__ */ jsx$1(AnalyticsContext.Provider, { value: userEvents2, children: children2 });
58153
58156
  };
58154
58157
  const AuthProvider = ({
58155
58158
  children: children2,
@@ -58535,7 +58538,7 @@ const ConfigurationApiProvider = ({ children: children2 }) => {
58535
58538
  [authContext, rootLegalEntityId]
58536
58539
  );
58537
58540
  return /* @__PURE__ */ jsxs(ConfigurationApiContext.Provider, { value: contextValue, children: [
58538
- /* @__PURE__ */ jsx$1("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.61.1" }),
58541
+ /* @__PURE__ */ jsx$1("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.61.3" }),
58539
58542
  children2
58540
58543
  ] });
58541
58544
  };
@@ -58995,7 +58998,7 @@ function StateProvider({
58995
58998
  );
58996
58999
  return /* @__PURE__ */ jsx$1(StateContext.Provider, { value: contextValue, children: children2 });
58997
59000
  }
58998
- const DebugModal = lazy$1(async () => (await import("./DebugModal-2qPV3QiR.js").then((n) => n.D)).DebugModal);
59001
+ const DebugModal = lazy$1(async () => (await import("./DebugModal-C4bdcbNH.js").then((n) => n.D)).DebugModal);
58999
59002
  const DebugListener = () => {
59000
59003
  const [debugUiOpen, setDebugUiOpen] = useState(false);
59001
59004
  const { isSettingEnabled } = useSettingsContext();
@@ -1,4 +1,4 @@
1
- import { c as cssProps } from "./DebugModal-2qPV3QiR.js";
1
+ import { c as cssProps } from "./DebugModal-C4bdcbNH.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-2qPV3QiR.js";
1
+ import { c as cssProps } from "./DebugModal-C4bdcbNH.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-2qPV3QiR.js";
1
+ import { c as cssProps } from "./DebugModal-C4bdcbNH.js";
2
2
  const definitions = {
3
3
  any: { regex: /.*/g, css: cssProps.text }
4
4
  };
@@ -1,9 +1,10 @@
1
- import type { AnalyticsEventPayload, EventQueueItem, EventType, MixpanelProperty, UserEventCallback } from '#core/user-events';
1
+ import type { AnalyticsEventPayload, EventQueueItem, EventType, MixpanelProperty, UserEventCallback, UserEvents } from '#core/user-events';
2
2
  import type { EmbeddedAnalyticsSessionRequest } from '#models/api/analytics';
3
3
  import type { ComponentMap } from '../components';
4
4
  import type { OnboardingVersion } from './useVersionConfiguration';
5
5
  export type UseAnalyticsProps = {
6
6
  onUserEvent?: UserEventCallback;
7
+ userEvents: UserEvents;
7
8
  componentName: keyof ComponentMap;
8
9
  onboardingVersion: OnboardingVersion;
9
10
  };
@@ -13,5 +14,5 @@ type EmbeddedEventItem = {
13
14
  eventData: AnalyticsEventPayload | Record<string, MixpanelProperty>;
14
15
  };
15
16
  export declare const convertToEmbeddedEvent: (eventQueueItem: EventQueueItem, sessionData: EmbeddedAnalyticsSessionRequest) => EmbeddedEventItem & EmbeddedAnalyticsSessionRequest;
16
- export declare const useAnalytics: ({ onUserEvent, componentName, onboardingVersion, }: UseAnalyticsProps) => import("#core/user-events").UserEvents;
17
+ export declare const useAnalytics: ({ onUserEvent, userEvents, componentName, onboardingVersion, }: UseAnalyticsProps) => void;
17
18
  export {};
@@ -1,4 +1,4 @@
1
- import { c as cssProps } from "./DebugModal-2qPV3QiR.js";
1
+ import { c as cssProps } from "./DebugModal-C4bdcbNH.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.61.1",
3
+ "version": "3.61.3",
4
4
  "keywords": [
5
5
  "adyen",
6
6
  "adyen-kyc",