@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.
- package/dist/{CPIOZS5X-C5VhSMmP.js → CPIOZS5X-sgzx-Xcg.js} +2 -2
- package/dist/{DebugModal-2qPV3QiR.js → DebugModal-IWz7-Df_.js} +6 -6
- package/dist/{Introduction-QSBnlZdp.js → Introduction-CroEDoIx.js} +1 -1
- package/dist/{OKF6E45R-CfDVrj5C.js → OKF6E45R-DG1PD4NH.js} +2 -2
- package/dist/{WXAWMS3D-6HY5ACHQ.js → WXAWMS3D-BkseKQjn.js} +1 -1
- package/dist/adyen-kyc-components.js +1 -1
- package/dist/adyenConfig.js +1 -1
- package/dist/{core-DnJXG_2z.js → core-DfdYpYKH.js} +11 -10
- package/dist/{css-DWtBz-U6.js → css-Cg0430Ty.js} +1 -1
- package/dist/{json-CfYJ8CuG.js → json-DY0bAYj2.js} +1 -1
- package/dist/{plaintext-Cv8TglfR.js → plaintext-CoBc20Io.js} +1 -1
- package/dist/types/hooks/useAnalytics.d.ts +3 -2
- package/dist/{yaml-CQz3uVGi.js → yaml-DLxKOxoT.js} +1 -1
- package/package.json +1 -1
|
@@ -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-
|
|
2
|
-
import { p as getPreferredColorScheme, q as createMemo, r as createComponent } from "./core-
|
|
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-
|
|
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-
|
|
139
|
-
json: () => import("./json-
|
|
140
|
-
yaml: () => import("./yaml-
|
|
141
|
-
css: () => import("./css-
|
|
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.
|
|
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-
|
|
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-
|
|
2
|
-
import { p as getPreferredColorScheme, q as createMemo, r as createComponent } from "./core-
|
|
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-
|
|
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) {
|
package/dist/adyenConfig.js
CHANGED
|
@@ -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-
|
|
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-
|
|
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-
|
|
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
|
|
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
|
-
|
|
58147
|
+
useAnalytics({
|
|
58148
58148
|
onUserEvent,
|
|
58149
|
+
userEvents: userEvents2,
|
|
58149
58150
|
componentName,
|
|
58150
58151
|
onboardingVersion
|
|
58151
58152
|
});
|
|
58152
|
-
return /* @__PURE__ */ jsx$1(AnalyticsContext.Provider, { value:
|
|
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.
|
|
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-
|
|
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,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) =>
|
|
17
|
+
export declare const useAnalytics: ({ onUserEvent, userEvents, componentName, onboardingVersion, }: UseAnalyticsProps) => void;
|
|
17
18
|
export {};
|