@adyen/kyc-components 3.61.1 → 3.61.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-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-BkseKQjn.js";
2
+ import { p as getPreferredColorScheme, q as createMemo, r as createComponent } from "./core-DfdYpYKH.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-DfdYpYKH.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-CoBc20Io.js"),
139
+ json: () => import("./json-DY0bAYj2.js"),
140
+ yaml: () => import("./yaml-DLxKOxoT.js"),
141
+ css: () => import("./css-Cg0430Ty.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.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-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-DfdYpYKH.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-BkseKQjn.js";
2
+ import { p as getPreferredColorScheme, q as createMemo, r as createComponent } from "./core-DfdYpYKH.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-DfdYpYKH.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-DfdYpYKH.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-DfdYpYKH.js";
2
2
  const environmentMap = Object.freeze({
3
3
  live: "https://live.adyen.com",
4
4
  test: "https://test.adyen.com"
@@ -52827,7 +52827,7 @@ const hasProgressedBeyondEntitySelection = (legalEntity) => {
52827
52827
  return hasOwnEntityAssocation || !!hasOrganizationType;
52828
52828
  };
52829
52829
  const Introduction = lazy$1(
52830
- async () => (await import("./Introduction-QSBnlZdp.js")).Introduction
52830
+ async () => (await import("./Introduction-CroEDoIx.js")).Introduction
52831
52831
  );
52832
52832
  const PAGES_WITH_POLLING = [TaskTypes.DECISION_MAKER_OVERVIEW, TaskTypes.TASKS_OVERVIEW];
52833
52833
  const logger$b = createLogger();
@@ -57721,7 +57721,7 @@ var TanstackQueryDevtools = (_k = class {
57721
57721
  if (__privateGet(this, _Component)) {
57722
57722
  Devtools = __privateGet(this, _Component);
57723
57723
  } else {
57724
- Devtools = lazy(() => import("./CPIOZS5X-C5VhSMmP.js"));
57724
+ Devtools = lazy(() => import("./CPIOZS5X-sgzx-Xcg.js"));
57725
57725
  __privateSet(this, _Component, Devtools);
57726
57726
  }
57727
57727
  setupStyleSheet(__privateGet(this, _styleNonce), __privateGet(this, _shadowDOMTarget));
@@ -57843,7 +57843,7 @@ var TanstackQueryDevtoolsPanel = (_l = class {
57843
57843
  if (__privateGet(this, _Component2)) {
57844
57844
  Devtools = __privateGet(this, _Component2);
57845
57845
  } else {
57846
- Devtools = lazy(() => import("./OKF6E45R-CfDVrj5C.js"));
57846
+ Devtools = lazy(() => import("./OKF6E45R-DG1PD4NH.js"));
57847
57847
  __privateSet(this, _Component2, Devtools);
57848
57848
  }
57849
57849
  setupStyleSheet(__privateGet(this, _styleNonce2), __privateGet(this, _shadowDOMTarget2));
@@ -58036,11 +58036,11 @@ const convertToEmbeddedEvent = (eventQueueItem, sessionData) => {
58036
58036
  };
58037
58037
  const useAnalytics = ({
58038
58038
  onUserEvent,
58039
+ userEvents: userEvents2,
58039
58040
  componentName,
58040
58041
  onboardingVersion
58041
58042
  }) => {
58042
- const userEvents2 = createUserEvents();
58043
- const sdkVersion = "3.61.1";
58043
+ const sdkVersion = "3.61.2";
58044
58044
  const { isEmbeddedDropin, loadingContext: base } = useAuthContext();
58045
58045
  const rootLegalEntity = useGlobalStore((store) => store.rootLegalEntity);
58046
58046
  const countryCode = useGlobalStore((store) => store.rootLegalEntityCountry);
@@ -58097,7 +58097,6 @@ const useAnalytics = ({
58097
58097
  sdkVersion,
58098
58098
  userEvents2
58099
58099
  ]);
58100
- return userEvents2;
58101
58100
  };
58102
58101
  const getVersionConfiguration = async (context) => {
58103
58102
  const { loadingContext, legalEntityId } = context;
@@ -58143,13 +58142,15 @@ const AnalyticsProvider = ({
58143
58142
  children: children2,
58144
58143
  legalEntityId
58145
58144
  }) => {
58145
+ const userEvents2 = useMemo(() => createUserEvents(), []);
58146
58146
  const { onboardingVersion } = useVersionConfiguration(legalEntityId);
58147
- const contextValue = useAnalytics({
58147
+ useAnalytics({
58148
58148
  onUserEvent,
58149
+ userEvents: userEvents2,
58149
58150
  componentName,
58150
58151
  onboardingVersion
58151
58152
  });
58152
- return /* @__PURE__ */ jsx$1(AnalyticsContext.Provider, { value: contextValue, children: children2 });
58153
+ return /* @__PURE__ */ jsx$1(AnalyticsContext.Provider, { value: userEvents2, children: children2 });
58153
58154
  };
58154
58155
  const AuthProvider = ({
58155
58156
  children: children2,
@@ -58535,7 +58536,7 @@ const ConfigurationApiProvider = ({ children: children2 }) => {
58535
58536
  [authContext, rootLegalEntityId]
58536
58537
  );
58537
58538
  return /* @__PURE__ */ jsxs(ConfigurationApiContext.Provider, { value: contextValue, children: [
58538
- /* @__PURE__ */ jsx$1("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.61.1" }),
58539
+ /* @__PURE__ */ jsx$1("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.61.2" }),
58539
58540
  children2
58540
58541
  ] });
58541
58542
  };
@@ -58995,7 +58996,7 @@ function StateProvider({
58995
58996
  );
58996
58997
  return /* @__PURE__ */ jsx$1(StateContext.Provider, { value: contextValue, children: children2 });
58997
58998
  }
58998
- const DebugModal = lazy$1(async () => (await import("./DebugModal-2qPV3QiR.js").then((n) => n.D)).DebugModal);
58999
+ const DebugModal = lazy$1(async () => (await import("./DebugModal-IWz7-Df_.js").then((n) => n.D)).DebugModal);
58999
59000
  const DebugListener = () => {
59000
59001
  const [debugUiOpen, setDebugUiOpen] = useState(false);
59001
59002
  const { isSettingEnabled } = useSettingsContext();
@@ -1,4 +1,4 @@
1
- import { c as cssProps } from "./DebugModal-2qPV3QiR.js";
1
+ import { c as cssProps } from "./DebugModal-IWz7-Df_.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-IWz7-Df_.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-IWz7-Df_.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-IWz7-Df_.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.2",
4
4
  "keywords": [
5
5
  "adyen",
6
6
  "adyen-kyc",