@adyen/kyc-components 3.60.0 → 3.60.1
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-c10bwvpC.js → B4MFY5CR-DPrejs6Z.js} +1 -1
- package/dist/es/{DebugModal-B09G6AIh.js → DebugModal-BaRS3wa1.js} +6 -6
- package/dist/es/{HO4MOOFI-CHPkZyf3.js → HO4MOOFI-DdIqwBfg.js} +2 -2
- package/dist/es/{HUY7CZI3-DDNDqc1d.js → HUY7CZI3-DgkgxO5E.js} +2 -2
- package/dist/es/{Introduction-BJ_LpbwA.js → Introduction-CjJADfTi.js} +1 -1
- package/dist/es/adyen-kyc-components.es.js +1 -1
- package/dist/es/{css-4sImMmzr.js → css-Cc3v-cq5.js} +1 -1
- package/dist/es/{index-BvjYwD0t.js → index-C-LIa1u3.js} +14 -13
- package/dist/es/{json-DiEVPc3C.js → json-sZSg9ISC.js} +1 -1
- package/dist/es/{plaintext-CXCnlOHt.js → plaintext-e77G1tnL.js} +1 -1
- package/dist/es/{yaml-B-WI_qx4.js → yaml-B8sDVhM2.js} +1 -1
- package/dist/types/api/taskStatus/useTaskStatus.d.ts +2 -2
- package/dist/types/components/Shared/tasks/TaskList/utils.d.ts +2 -0
- package/dist/types/stores/globalStore/taskStatus.d.ts +3 -0
- 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-C-LIa1u3.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-C-LIa1u3.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-e77G1tnL.js"),
|
|
139
|
+
json: () => import("./json-sZSg9ISC.js"),
|
|
140
|
+
yaml: () => import("./yaml-B8sDVhM2.js"),
|
|
141
|
+
css: () => import("./css-Cc3v-cq5.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.1",
|
|
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-DPrejs6Z.js";
|
|
2
|
+
import { w as getPreferredColorScheme, x as createMemo, y as createComponent } from "./index-C-LIa1u3.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-DPrejs6Z.js";
|
|
2
|
+
import { w as getPreferredColorScheme, x as createMemo, y as createComponent } from "./index-C-LIa1u3.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-C-LIa1u3.js";
|
|
4
4
|
import { useMemo } from "preact/compat";
|
|
5
5
|
var IntroductionScreens = ((IntroductionScreens2) => {
|
|
6
6
|
IntroductionScreens2["PROLOGUE"] = "PROLOGUE";
|
|
@@ -44582,6 +44582,13 @@ function useDataMissingRemediations({
|
|
|
44582
44582
|
}
|
|
44583
44583
|
};
|
|
44584
44584
|
}
|
|
44585
|
+
const normalizeTaskStatuses = (taskStatuses) => {
|
|
44586
|
+
var _a2;
|
|
44587
|
+
return (_a2 = taskStatuses == null ? void 0 : taskStatuses.statuses) == null ? void 0 : _a2.reduce((acc, currentTask) => {
|
|
44588
|
+
acc[currentTask.type] = currentTask.status;
|
|
44589
|
+
return acc;
|
|
44590
|
+
}, {});
|
|
44591
|
+
};
|
|
44585
44592
|
const Remove = ({
|
|
44586
44593
|
onRemove,
|
|
44587
44594
|
onRemoveStatusChange,
|
|
@@ -44981,13 +44988,7 @@ function TaskList({
|
|
|
44981
44988
|
const { data: taskStatuses } = useTaskStatus({
|
|
44982
44989
|
refetchInterval: 3e3
|
|
44983
44990
|
});
|
|
44984
|
-
const normalizedTasks = taskStatuses
|
|
44985
|
-
(acc, currentTask) => {
|
|
44986
|
-
acc[currentTask.type] = currentTask.status;
|
|
44987
|
-
return acc;
|
|
44988
|
-
},
|
|
44989
|
-
{}
|
|
44990
|
-
);
|
|
44991
|
+
const normalizedTasks = normalizeTaskStatuses(taskStatuses);
|
|
44991
44992
|
return /* @__PURE__ */ jsxs("div", { className: "adyen-task-list__container", children: [
|
|
44992
44993
|
canSeeIntroduction && /* @__PURE__ */ jsx$1("div", { className: "adyen-task-list__nav", children: /* @__PURE__ */ jsx$1(Button, { variant: "link", onClick: () => onNavigateToTask(TaskTypes.INTRODUCTION), children: i18n.get("goToIntroduction") }) }),
|
|
44993
44994
|
canChangeEntityType && /* @__PURE__ */ jsxs("header", { className: "adyen-task-list__heading", children: [
|
|
@@ -52115,7 +52116,7 @@ const hasProgressedBeyondEntitySelection = (legalEntity) => {
|
|
|
52115
52116
|
return hasOwnEntityAssocation || !!hasOrganizationType;
|
|
52116
52117
|
};
|
|
52117
52118
|
const Introduction = lazy$1(
|
|
52118
|
-
async () => (await import("./Introduction-
|
|
52119
|
+
async () => (await import("./Introduction-CjJADfTi.js")).Introduction
|
|
52119
52120
|
);
|
|
52120
52121
|
const PAGES_WITH_POLLING = [TaskTypes.DECISION_MAKER_OVERVIEW, TaskTypes.TASKS_OVERVIEW];
|
|
52121
52122
|
const logger$c = createLogger();
|
|
@@ -57128,7 +57129,7 @@ var TanstackQueryDevtools = (_k = class {
|
|
|
57128
57129
|
if (__privateGet(this, _Component)) {
|
|
57129
57130
|
Devtools = __privateGet(this, _Component);
|
|
57130
57131
|
} else {
|
|
57131
|
-
Devtools = lazy(() => import("./HO4MOOFI-
|
|
57132
|
+
Devtools = lazy(() => import("./HO4MOOFI-DdIqwBfg.js"));
|
|
57132
57133
|
__privateSet(this, _Component, Devtools);
|
|
57133
57134
|
}
|
|
57134
57135
|
setupStyleSheet(__privateGet(this, _styleNonce), __privateGet(this, _shadowDOMTarget));
|
|
@@ -57250,7 +57251,7 @@ var TanstackQueryDevtoolsPanel = (_l = class {
|
|
|
57250
57251
|
if (__privateGet(this, _Component2)) {
|
|
57251
57252
|
Devtools = __privateGet(this, _Component2);
|
|
57252
57253
|
} else {
|
|
57253
|
-
Devtools = lazy(() => import("./HUY7CZI3-
|
|
57254
|
+
Devtools = lazy(() => import("./HUY7CZI3-DgkgxO5E.js"));
|
|
57254
57255
|
__privateSet(this, _Component2, Devtools);
|
|
57255
57256
|
}
|
|
57256
57257
|
setupStyleSheet(__privateGet(this, _styleNonce2), __privateGet(this, _shadowDOMTarget2));
|
|
@@ -57471,7 +57472,7 @@ const useAnalytics = ({
|
|
|
57471
57472
|
componentName,
|
|
57472
57473
|
onboardingVersion
|
|
57473
57474
|
}) => {
|
|
57474
|
-
const sdkVersion = "3.60.
|
|
57475
|
+
const sdkVersion = "3.60.1";
|
|
57475
57476
|
const { isEmbeddedDropin, loadingContext: base } = useAuthContext();
|
|
57476
57477
|
const rootLegalEntity = useGlobalStore((store) => store.rootLegalEntity);
|
|
57477
57478
|
const countryCode = useGlobalStore((store) => store.rootLegalEntityCountry);
|
|
@@ -57962,7 +57963,7 @@ const ConfigurationApiProvider = ({
|
|
|
57962
57963
|
[authContext, rootLegalEntityId]
|
|
57963
57964
|
);
|
|
57964
57965
|
return /* @__PURE__ */ jsxs(ConfigurationApiContext.Provider, { value: contextValue, children: [
|
|
57965
|
-
/* @__PURE__ */ jsx$1("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.60.
|
|
57966
|
+
/* @__PURE__ */ jsx$1("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.60.1" }),
|
|
57966
57967
|
children2
|
|
57967
57968
|
] });
|
|
57968
57969
|
};
|
|
@@ -58403,7 +58404,7 @@ function StateProvider({
|
|
|
58403
58404
|
);
|
|
58404
58405
|
return /* @__PURE__ */ jsx$1(StateContext.Provider, { value: contextValue, children: children2 });
|
|
58405
58406
|
}
|
|
58406
|
-
const DebugModal = lazy$1(async () => (await import("./DebugModal-
|
|
58407
|
+
const DebugModal = lazy$1(async () => (await import("./DebugModal-BaRS3wa1.js").then((n) => n.D)).DebugModal);
|
|
58407
58408
|
const DebugListener = () => {
|
|
58408
58409
|
const [debugUiOpen, setDebugUiOpen] = useState(false);
|
|
58409
58410
|
const { isSettingEnabled } = useSettingsContext();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { QueryOptions } from '#api/types';
|
|
2
|
-
import type {
|
|
2
|
+
import type { TaskStatusApiResponse } from '#stores/globalStore/taskStatus';
|
|
3
3
|
/**
|
|
4
4
|
* @param options additional options passed to Tanstack Query, eg; refetchInterval for polling
|
|
5
5
|
*/
|
|
6
|
-
export declare const useTaskStatus: (options?: QueryOptions<
|
|
6
|
+
export declare const useTaskStatus: (options?: QueryOptions<TaskStatusApiResponse>) => import("@tanstack/react-query").UseQueryResult<TaskStatusApiResponse, Error>;
|