@adyen/kyc-components 3.60.2 → 3.60.4
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/es/{B4MFY5CR-BIgPWU_7.js → B4MFY5CR-Ru4kutHJ.js} +1 -1
- package/dist/es/{DebugModal-DnbM_Udl.js → DebugModal-CyGS7jM6.js} +6 -6
- package/dist/es/{HO4MOOFI-Cuh-Waxr.js → HO4MOOFI-Si-Obp4G.js} +2 -2
- package/dist/es/{HUY7CZI3-CAOnfwZS.js → HUY7CZI3-l1SVrsoe.js} +2 -2
- package/dist/es/{Introduction-B70EB0lq.js → Introduction-PVwKRw08.js} +1 -1
- package/dist/es/adyen-kyc-components.es.js +1 -1
- package/dist/es/{css-C8TfP9GE.js → css-ycyWqoyJ.js} +1 -1
- package/dist/es/{index-CDsJTloz.js → index-BDN6Z18W.js} +17 -9
- package/dist/es/{json-mWoPOZfN.js → json-aZQCTzqA.js} +1 -1
- package/dist/es/{plaintext-afn3Vc3A.js → plaintext-DQPwUatk.js} +1 -1
- package/dist/es/{yaml-DRDRk99v.js → yaml-D2Tl-1z0.js} +1 -1
- package/package.json +1 -1
|
@@ -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 { z as createContext, A as createSignal, C as onMount, D as createEffect, x as createMemo, y as createComponent, P as Portal, F as Show, G as template, H as insert, J as createRenderEffect, K as className, N as clearDelegatedEvents, O as delegateEvents, Q as useContext, R as onCleanup, U as sortFns, V as mutationSortFns, W as on, X as setAttribute, Y as getSidedProp, Z as use, _ as createUniqueId, $ as batch, a0 as getQueryStatusLabel, a1 as getMutationStatusColor, a2 as getQueryStatusColor, a3 as getQueryStatusColorByLabel, a4 as displayValue, a5 as For, a6 as convertRemToPixels, a7 as untrack, a8 as $TRACK, a9 as useTransition, aa as spread, ab as mergeProps, ac as createRoot, ad as serialize, ae as Index, af as updateNestedDataByPath, ag as addEventListener, ah as stringify, ai as Match, aj as Switch, ak as deleteNestedDataByPath, al as splitProps, am as Dynamic, an as createComputed } from "./index-
|
|
4
|
+
import { z as createContext, A as createSignal, C as onMount, D as createEffect, x as createMemo, y as createComponent, P as Portal, F as Show, G as template, H as insert, J as createRenderEffect, K as className, N as clearDelegatedEvents, O as delegateEvents, Q as useContext, R as onCleanup, U as sortFns, V as mutationSortFns, W as on, X as setAttribute, Y as getSidedProp, Z as use, _ as createUniqueId, $ as batch, a0 as getQueryStatusLabel, a1 as getMutationStatusColor, a2 as getQueryStatusColor, a3 as getQueryStatusColorByLabel, a4 as displayValue, a5 as For, a6 as convertRemToPixels, a7 as untrack, a8 as $TRACK, a9 as useTransition, aa as spread, ab as mergeProps, ac as createRoot, ad as serialize, ae as Index, af as updateNestedDataByPath, ag as addEventListener, ah as stringify, ai as Match, aj as Switch, ak as deleteNestedDataByPath, al as splitProps, am as Dynamic, an as createComputed } from "./index-BDN6Z18W.js";
|
|
5
5
|
var isNonNullable = (i2) => i2 != null;
|
|
6
6
|
var filterNonNullable = (arr) => arr.filter(isNonNullable);
|
|
7
7
|
function chain(callbacks) {
|
|
@@ -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 ModalHeader, n as ModalContent, o as ModalFooter, p as createLogger, q as Icon, r as SettingNames, E as ExperimentNames } from "./index-
|
|
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 ModalHeader, n as ModalContent, o as ModalFooter, p as createLogger, q as Icon, r as SettingNames, E as ExperimentNames } from "./index-BDN6Z18W.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-DQPwUatk.js"),
|
|
139
|
+
json: () => import("./json-aZQCTzqA.js"),
|
|
140
|
+
yaml: () => import("./yaml-D2Tl-1z0.js"),
|
|
141
|
+
css: () => import("./css-ycyWqoyJ.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.60.
|
|
432
|
+
sdkVersion: "3.60.4",
|
|
433
433
|
locale: i18n.locale,
|
|
434
434
|
rootLegalEntityId: rootLegalEntity.id
|
|
435
435
|
};
|
|
@@ -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 "./B4MFY5CR-
|
|
2
|
-
import { w as getPreferredColorScheme, x as createMemo, y as createComponent } from "./index-
|
|
1
|
+
import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, D as Devtools, Q as QueryDevtoolsContext } from "./B4MFY5CR-Ru4kutHJ.js";
|
|
2
|
+
import { w as getPreferredColorScheme, x as createMemo, y as createComponent } from "./index-BDN6Z18W.js";
|
|
3
3
|
var DevtoolsComponent = (props) => {
|
|
4
4
|
const [localStore, setLocalStore] = createLocalStorage({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -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 "./B4MFY5CR-
|
|
2
|
-
import { w as getPreferredColorScheme, x as createMemo, y as createComponent } from "./index-
|
|
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 "./B4MFY5CR-Ru4kutHJ.js";
|
|
2
|
+
import { w as getPreferredColorScheme, x as createMemo, y as createComponent } from "./index-BDN6Z18W.js";
|
|
3
3
|
var DevtoolsPanelComponent = (props) => {
|
|
4
4
|
const [localStore, setLocalStore] = createLocalStorage({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -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 userEvents, S as StepProgressIndicator, B as Button } from "./index-
|
|
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 userEvents, S as StepProgressIndicator, B as Button } from "./index-BDN6Z18W.js";
|
|
4
4
|
import { useMemo } from "preact/compat";
|
|
5
5
|
var IntroductionScreens = ((IntroductionScreens2) => {
|
|
6
6
|
IntroductionScreens2["PROLOGUE"] = "PROLOGUE";
|
|
@@ -39430,7 +39430,6 @@ function SourceOfFundsDropin({
|
|
|
39430
39430
|
return;
|
|
39431
39431
|
}
|
|
39432
39432
|
setLoadingStatus("loading");
|
|
39433
|
-
logger$w.log("Submitting data");
|
|
39434
39433
|
const { additionalData } = sofData;
|
|
39435
39434
|
const sofPayload = getSourceOfFundsPayload(sofType, additionalData);
|
|
39436
39435
|
if (sofType === "donations" || sofType === "inheritance") {
|
|
@@ -39439,10 +39438,15 @@ function SourceOfFundsDropin({
|
|
|
39439
39438
|
try {
|
|
39440
39439
|
await updateSourceOfFunds2(legalEntityResponse.id, activeBusinessLine.id, sofPayload);
|
|
39441
39440
|
await queryClient.invalidateQueries({
|
|
39442
|
-
queryKey: ["businessLines"
|
|
39441
|
+
queryKey: ["businessLines"],
|
|
39442
|
+
refetchType: "all"
|
|
39443
|
+
});
|
|
39444
|
+
await queryClient.invalidateQueries({
|
|
39445
|
+
queryKey: ["taskStatus"],
|
|
39443
39446
|
refetchType: "all"
|
|
39444
39447
|
});
|
|
39445
39448
|
await loadBusinessLines();
|
|
39449
|
+
handleHomeClick == null ? void 0 : handleHomeClick();
|
|
39446
39450
|
setGettingStarted(true);
|
|
39447
39451
|
setShowUploadPage(false);
|
|
39448
39452
|
setActiveSourceOfFund({});
|
|
@@ -39452,7 +39456,7 @@ function SourceOfFundsDropin({
|
|
|
39452
39456
|
setSofErrorMessage((e == null ? void 0 : e.message) || i18n.get("errorUpdatingSourceOfFunds"));
|
|
39453
39457
|
}
|
|
39454
39458
|
setLoadingStatus("success");
|
|
39455
|
-
}, [currentState == null ? void 0 : currentState.data]);
|
|
39459
|
+
}, [currentState == null ? void 0 : currentState.data, handleHomeClick]);
|
|
39456
39460
|
const handleGettingStarted = useCallback(() => {
|
|
39457
39461
|
setGettingStarted(!gettingStarted);
|
|
39458
39462
|
}, [gettingStarted]);
|
|
@@ -47024,6 +47028,10 @@ function HighExposureDropin(props) {
|
|
|
47024
47028
|
queryKey: ["taskStatus"],
|
|
47025
47029
|
refetchType: "all"
|
|
47026
47030
|
});
|
|
47031
|
+
await queryClient.invalidateQueries({
|
|
47032
|
+
queryKey: ["legalEntity"],
|
|
47033
|
+
refetchType: "all"
|
|
47034
|
+
});
|
|
47027
47035
|
if (!isStandaloneComponent && externalOnSubmit) {
|
|
47028
47036
|
externalOnSubmit == null ? void 0 : externalOnSubmit({ ...data });
|
|
47029
47037
|
} else {
|
|
@@ -52117,7 +52125,7 @@ const hasProgressedBeyondEntitySelection = (legalEntity) => {
|
|
|
52117
52125
|
return hasOwnEntityAssocation || !!hasOrganizationType;
|
|
52118
52126
|
};
|
|
52119
52127
|
const Introduction = lazy$1(
|
|
52120
|
-
async () => (await import("./Introduction-
|
|
52128
|
+
async () => (await import("./Introduction-PVwKRw08.js")).Introduction
|
|
52121
52129
|
);
|
|
52122
52130
|
const PAGES_WITH_POLLING = [TaskTypes.DECISION_MAKER_OVERVIEW, TaskTypes.TASKS_OVERVIEW];
|
|
52123
52131
|
const logger$c = createLogger();
|
|
@@ -57130,7 +57138,7 @@ var TanstackQueryDevtools = (_k = class {
|
|
|
57130
57138
|
if (__privateGet(this, _Component)) {
|
|
57131
57139
|
Devtools = __privateGet(this, _Component);
|
|
57132
57140
|
} else {
|
|
57133
|
-
Devtools = lazy(() => import("./HO4MOOFI-
|
|
57141
|
+
Devtools = lazy(() => import("./HO4MOOFI-Si-Obp4G.js"));
|
|
57134
57142
|
__privateSet(this, _Component, Devtools);
|
|
57135
57143
|
}
|
|
57136
57144
|
setupStyleSheet(__privateGet(this, _styleNonce), __privateGet(this, _shadowDOMTarget));
|
|
@@ -57252,7 +57260,7 @@ var TanstackQueryDevtoolsPanel = (_l = class {
|
|
|
57252
57260
|
if (__privateGet(this, _Component2)) {
|
|
57253
57261
|
Devtools = __privateGet(this, _Component2);
|
|
57254
57262
|
} else {
|
|
57255
|
-
Devtools = lazy(() => import("./HUY7CZI3-
|
|
57263
|
+
Devtools = lazy(() => import("./HUY7CZI3-l1SVrsoe.js"));
|
|
57256
57264
|
__privateSet(this, _Component2, Devtools);
|
|
57257
57265
|
}
|
|
57258
57266
|
setupStyleSheet(__privateGet(this, _styleNonce2), __privateGet(this, _shadowDOMTarget2));
|
|
@@ -57473,7 +57481,7 @@ const useAnalytics = ({
|
|
|
57473
57481
|
componentName,
|
|
57474
57482
|
onboardingVersion
|
|
57475
57483
|
}) => {
|
|
57476
|
-
const sdkVersion = "3.60.
|
|
57484
|
+
const sdkVersion = "3.60.4";
|
|
57477
57485
|
const { isEmbeddedDropin, loadingContext: base } = useAuthContext();
|
|
57478
57486
|
const rootLegalEntity = useGlobalStore((store) => store.rootLegalEntity);
|
|
57479
57487
|
const countryCode = useGlobalStore((store) => store.rootLegalEntityCountry);
|
|
@@ -57964,7 +57972,7 @@ const ConfigurationApiProvider = ({
|
|
|
57964
57972
|
[authContext, rootLegalEntityId]
|
|
57965
57973
|
);
|
|
57966
57974
|
return /* @__PURE__ */ jsxs(ConfigurationApiContext.Provider, { value: contextValue, children: [
|
|
57967
|
-
/* @__PURE__ */ jsx$1("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.60.
|
|
57975
|
+
/* @__PURE__ */ jsx$1("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.60.4" }),
|
|
57968
57976
|
children2
|
|
57969
57977
|
] });
|
|
57970
57978
|
};
|
|
@@ -58405,7 +58413,7 @@ function StateProvider({
|
|
|
58405
58413
|
);
|
|
58406
58414
|
return /* @__PURE__ */ jsx$1(StateContext.Provider, { value: contextValue, children: children2 });
|
|
58407
58415
|
}
|
|
58408
|
-
const DebugModal = lazy$1(async () => (await import("./DebugModal-
|
|
58416
|
+
const DebugModal = lazy$1(async () => (await import("./DebugModal-CyGS7jM6.js").then((n) => n.D)).DebugModal);
|
|
58409
58417
|
const DebugListener = () => {
|
|
58410
58418
|
const [debugUiOpen, setDebugUiOpen] = useState(false);
|
|
58411
58419
|
const { isSettingEnabled } = useSettingsContext();
|