@adyen/kyc-components 3.60.7 → 3.60.8

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,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, C as template, D as insert, F as createRenderEffect, G as className, H as clearDelegatedEvents, J as delegateEvents, K as useContext, N as onCleanup, O as sortFns, Q as mutationSortFns, R as on, U as setAttribute, V as getSidedProp, W as use, X as createUniqueId, Y as batch, Z as getQueryStatusLabel, _ as getMutationStatusColor, $ as getQueryStatusColor, a0 as getQueryStatusColorByLabel, a1 as displayValue, a2 as For, a3 as convertRemToPixels, a4 as untrack, a5 as $TRACK, a6 as useTransition, a7 as spread, a8 as mergeProps, a9 as createRoot, aa as serialize, ab as Index, ac as updateNestedDataByPath, ad as addEventListener, ae as stringify, af as Match, ag as Switch, ah as deleteNestedDataByPath, ai as splitProps, aj as Dynamic, ak as createComputed } from "./index-BXvH3LBB.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, C as template, D as insert, F as createRenderEffect, G as className, H as clearDelegatedEvents, J as delegateEvents, K as useContext, N as onCleanup, O as sortFns, Q as mutationSortFns, R as on, U as setAttribute, V as getSidedProp, W as use, X as createUniqueId, Y as batch, Z as getQueryStatusLabel, _ as getMutationStatusColor, $ as getQueryStatusColor, a0 as getQueryStatusColorByLabel, a1 as displayValue, a2 as For, a3 as convertRemToPixels, a4 as untrack, a5 as $TRACK, a6 as useTransition, a7 as spread, a8 as mergeProps, a9 as createRoot, aa as serialize, ab as Index, ac as updateNestedDataByPath, ad as addEventListener, ae as stringify, af as Match, ag as Switch, ah as deleteNestedDataByPath, ai as splitProps, aj as Dynamic, ak as createComputed } from "./index-B3OeqVym.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 createLogger, n as Icon, o as SettingNames, E as ExperimentNames } from "./index-BXvH3LBB.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 "./index-B3OeqVym.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-BolrXcJP.js"),
139
- json: () => import("./json-DwvmCuYm.js"),
140
- yaml: () => import("./yaml-CTEvq48i.js"),
141
- css: () => import("./css-DFn7MtsT.js")
138
+ plaintext: () => import("./plaintext-4ca3dfxl.js"),
139
+ json: () => import("./json-DzmtI3Mp.js"),
140
+ yaml: () => import("./yaml-DwFNsUWx.js"),
141
+ css: () => import("./css-td1IksfN.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.7",
432
+ sdkVersion: "3.60.8",
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-BHnRatG5.js";
2
- import { p as getPreferredColorScheme, q as createMemo, r as createComponent } from "./index-BXvH3LBB.js";
1
+ import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, D as Devtools, Q as QueryDevtoolsContext } from "./B4MFY5CR-DiAYK7Dr.js";
2
+ import { p as getPreferredColorScheme, q as createMemo, r as createComponent } from "./index-B3OeqVym.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-BHnRatG5.js";
2
- import { p as getPreferredColorScheme, q as createMemo, r as createComponent } from "./index-BXvH3LBB.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 "./B4MFY5CR-DiAYK7Dr.js";
2
+ import { p as getPreferredColorScheme, q as createMemo, r as createComponent } from "./index-B3OeqVym.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-BXvH3LBB.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 userEvents, S as StepProgressIndicator, B as Button } from "./index-B3OeqVym.js";
4
4
  import { useMemo } from "preact/compat";
5
5
  var IntroductionScreens = ((IntroductionScreens2) => {
6
6
  IntroductionScreens2["PROLOGUE"] = "PROLOGUE";
@@ -1,4 +1,4 @@
1
- import { al } from "./index-BXvH3LBB.js";
1
+ import { al } from "./index-B3OeqVym.js";
2
2
  export {
3
3
  al as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { c as cssProps } from "./DebugModal-DfzSMFw6.js";
1
+ import { c as cssProps } from "./DebugModal-Cgx9tT9n.js";
2
2
  const definitions = {
3
3
  any: { regex: /.*/g, css: cssProps.text },
4
4
  property: { regex: /(^|[\r\n])[^:]*:/g, css: cssProps.key },
@@ -31701,15 +31701,10 @@ const rules$1 = ({
31701
31701
  requiredIfPhoneScenarioDisabled: () => !isExperimentEnabled("EnablePhoneFieldScenario") ? REQUIRED$1 : void 0,
31702
31702
  jobTitleIfRequiredForRole: () => {
31703
31703
  var _a2, _b2;
31704
- if (taskType === TaskTypes.DECISION_MAKER) {
31705
- if ((_b2 = (_a2 = data.personalDetails) == null ? void 0 : _a2.role) == null ? void 0 : _b2.some(
31706
- (role) => DECISION_MAKER_TYPES_WITH_JOBTITLE$1.includes(role)
31707
- )) {
31708
- return REQUIRED$1;
31709
- }
31710
- return;
31711
- }
31712
- if (JOB_TITLE_REQUIRED_FOR_COUNTRIES$1.includes(country)) {
31704
+ if (taskType !== TaskTypes.DECISION_MAKER) return;
31705
+ if (((_b2 = (_a2 = data.personalDetails) == null ? void 0 : _a2.role) == null ? void 0 : _b2.some(
31706
+ (role) => DECISION_MAKER_TYPES_WITH_JOBTITLE$1.includes(role)
31707
+ )) || JOB_TITLE_REQUIRED_FOR_COUNTRIES$1.includes(country)) {
31713
31708
  return REQUIRED$1;
31714
31709
  }
31715
31710
  },
@@ -47449,13 +47444,8 @@ const IndividualOnfidoRules = ({
47449
47444
  requiredIfPhoneScenarioDisabled: () => !isExperimentEnabled("EnablePhoneFieldScenario") ? REQUIRED : void 0,
47450
47445
  jobTitleIfRequiredForRole: () => {
47451
47446
  var _a2, _b2;
47452
- if (taskType === TaskTypes.DECISION_MAKER) {
47453
- if ((_b2 = (_a2 = data.basicDetails) == null ? void 0 : _a2.role) == null ? void 0 : _b2.some((role) => DECISION_MAKER_TYPES_WITH_JOBTITLE.includes(role))) {
47454
- return REQUIRED;
47455
- }
47456
- return;
47457
- }
47458
- if (JOB_TITLE_REQUIRED_FOR_COUNTRIES.includes(country)) {
47447
+ if (taskType !== TaskTypes.DECISION_MAKER) return;
47448
+ if (((_b2 = (_a2 = data.basicDetails) == null ? void 0 : _a2.role) == null ? void 0 : _b2.some((role) => DECISION_MAKER_TYPES_WITH_JOBTITLE.includes(role))) || JOB_TITLE_REQUIRED_FOR_COUNTRIES.includes(country)) {
47459
47449
  return REQUIRED;
47460
47450
  }
47461
47451
  },
@@ -52296,7 +52286,7 @@ const hasProgressedBeyondEntitySelection = (legalEntity) => {
52296
52286
  return hasOwnEntityAssocation || !!hasOrganizationType;
52297
52287
  };
52298
52288
  const Introduction = lazy$1(
52299
- async () => (await import("./Introduction-DrKpaADN.js")).Introduction
52289
+ async () => (await import("./Introduction-CE3a76j3.js")).Introduction
52300
52290
  );
52301
52291
  const PAGES_WITH_POLLING = [TaskTypes.DECISION_MAKER_OVERVIEW, TaskTypes.TASKS_OVERVIEW];
52302
52292
  const logger$c = createLogger();
@@ -57309,7 +57299,7 @@ var TanstackQueryDevtools = (_k = class {
57309
57299
  if (__privateGet(this, _Component)) {
57310
57300
  Devtools = __privateGet(this, _Component);
57311
57301
  } else {
57312
- Devtools = lazy(() => import("./HO4MOOFI-Dy_AeoHo.js"));
57302
+ Devtools = lazy(() => import("./HO4MOOFI-JCLMNnM8.js"));
57313
57303
  __privateSet(this, _Component, Devtools);
57314
57304
  }
57315
57305
  setupStyleSheet(__privateGet(this, _styleNonce), __privateGet(this, _shadowDOMTarget));
@@ -57431,7 +57421,7 @@ var TanstackQueryDevtoolsPanel = (_l = class {
57431
57421
  if (__privateGet(this, _Component2)) {
57432
57422
  Devtools = __privateGet(this, _Component2);
57433
57423
  } else {
57434
- Devtools = lazy(() => import("./HUY7CZI3-BQQRBWnq.js"));
57424
+ Devtools = lazy(() => import("./HUY7CZI3-B8qeOQnE.js"));
57435
57425
  __privateSet(this, _Component2, Devtools);
57436
57426
  }
57437
57427
  setupStyleSheet(__privateGet(this, _styleNonce2), __privateGet(this, _shadowDOMTarget2));
@@ -57652,7 +57642,7 @@ const useAnalytics = ({
57652
57642
  componentName,
57653
57643
  onboardingVersion
57654
57644
  }) => {
57655
- const sdkVersion = "3.60.7";
57645
+ const sdkVersion = "3.60.8";
57656
57646
  const { isEmbeddedDropin, loadingContext: base } = useAuthContext();
57657
57647
  const rootLegalEntity = useGlobalStore((store) => store.rootLegalEntity);
57658
57648
  const countryCode = useGlobalStore((store) => store.rootLegalEntityCountry);
@@ -58143,7 +58133,7 @@ const ConfigurationApiProvider = ({
58143
58133
  [authContext, rootLegalEntityId]
58144
58134
  );
58145
58135
  return /* @__PURE__ */ jsxs(ConfigurationApiContext.Provider, { value: contextValue, children: [
58146
- /* @__PURE__ */ jsx$1("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.60.7" }),
58136
+ /* @__PURE__ */ jsx$1("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.60.8" }),
58147
58137
  children2
58148
58138
  ] });
58149
58139
  };
@@ -58588,7 +58578,7 @@ function StateProvider({
58588
58578
  );
58589
58579
  return /* @__PURE__ */ jsx$1(StateContext.Provider, { value: contextValue, children: children2 });
58590
58580
  }
58591
- const DebugModal = lazy$1(async () => (await import("./DebugModal-DfzSMFw6.js").then((n) => n.D)).DebugModal);
58581
+ const DebugModal = lazy$1(async () => (await import("./DebugModal-Cgx9tT9n.js").then((n) => n.D)).DebugModal);
58592
58582
  const DebugListener = () => {
58593
58583
  const [debugUiOpen, setDebugUiOpen] = useState(false);
58594
58584
  const { isSettingEnabled } = useSettingsContext();
@@ -1,4 +1,4 @@
1
- import { c as cssProps } from "./DebugModal-DfzSMFw6.js";
1
+ import { c as cssProps } from "./DebugModal-Cgx9tT9n.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-DfzSMFw6.js";
1
+ import { c as cssProps } from "./DebugModal-Cgx9tT9n.js";
2
2
  const definitions = {
3
3
  any: { regex: /.*/g, css: cssProps.text }
4
4
  };
@@ -1,4 +1,4 @@
1
- import { c as cssProps } from "./DebugModal-DfzSMFw6.js";
1
+ import { c as cssProps } from "./DebugModal-Cgx9tT9n.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/dist/style.css CHANGED
@@ -300,7 +300,7 @@
300
300
  box-shadow: var(--adyen-sdk-shadow-high, 0px 18px 36px rgba(0, 17, 44, 0.12), 0px 4px 8px rgba(0, 17, 44, 0.06));
301
301
  overflow: hidden;
302
302
  padding: var(--adyen-sdk-spacer-000, 0px);
303
- position: relative;
303
+ position: fixed;
304
304
  }
305
305
  .adyen-kyc-modal:focus-visible {
306
306
  outline: none;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/kyc-components",
3
- "version": "3.60.7",
3
+ "version": "3.60.8",
4
4
  "keywords": [
5
5
  "adyen",
6
6
  "adyen-kyc",