@adyen/kyc-components 3.60.7 → 3.60.9

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-BdQgR9qW.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-BdQgR9qW.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-DBkC3q4M.js"),
139
+ json: () => import("./json-BfcMntF3.js"),
140
+ yaml: () => import("./yaml-D8epAzVP.js"),
141
+ css: () => import("./css-CQCYyAnN.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.9",
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-DvuT5svs.js";
2
+ import { p as getPreferredColorScheme, q as createMemo, r as createComponent } from "./index-BdQgR9qW.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-DvuT5svs.js";
2
+ import { p as getPreferredColorScheme, q as createMemo, r as createComponent } from "./index-BdQgR9qW.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-BdQgR9qW.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-BdQgR9qW.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-DyDBH04I.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
  },
@@ -35081,7 +35076,6 @@ function BusinessDetailsDropin({
35081
35076
  currentProblems == null ? void 0 : currentProblems.remediationActions,
35082
35077
  currentProblems == null ? void 0 : currentProblems.missingData,
35083
35078
  subjectEntity,
35084
- isExperimentEnabled,
35085
35079
  customRules,
35086
35080
  trustedFields
35087
35081
  ]
@@ -35154,6 +35148,8 @@ function BusinessDetailsDropin({
35154
35148
  isExperimentEnabled
35155
35149
  });
35156
35150
  }, [
35151
+ setAccountHolder,
35152
+ accountHolder,
35157
35153
  associatedLeTrackingParams,
35158
35154
  currentState.data,
35159
35155
  legalEntityResponse,
@@ -35162,7 +35158,6 @@ function BusinessDetailsDropin({
35162
35158
  nestedLegalEntityDetails,
35163
35159
  currentProblems,
35164
35160
  taskType,
35165
- accountHolder,
35166
35161
  forms,
35167
35162
  documentUtils,
35168
35163
  i18n,
@@ -35171,7 +35166,7 @@ function BusinessDetailsDropin({
35171
35166
  handleCreateLegalEntity,
35172
35167
  onExternalSubmit,
35173
35168
  isExperimentEnabled,
35174
- setAccountHolder
35169
+ userEvents
35175
35170
  ]);
35176
35171
  const {
35177
35172
  handleNextClick,
@@ -35251,7 +35246,8 @@ function BusinessDetailsDropin({
35251
35246
  verifyTin2,
35252
35247
  currentCountry,
35253
35248
  subjectEntity == null ? void 0 : subjectEntity.id,
35254
- subjectEntity == null ? void 0 : subjectEntity.type
35249
+ subjectEntity == null ? void 0 : subjectEntity.type,
35250
+ userEvents
35255
35251
  ]);
35256
35252
  const handleCompanySearch = useCallback(
35257
35253
  async (currentData) => {
@@ -35328,6 +35324,7 @@ function BusinessDetailsDropin({
35328
35324
  if (activeForm.formId === "companyStructure" && (searchResults == null ? void 0 : searchResults.length)) {
35329
35325
  setShowCompanyStructure(false);
35330
35326
  }
35327
+ return gotoFormByFormIndex(index);
35331
35328
  } else {
35332
35329
  if (verifiedBusiness) return gotoFormByFormIndex(index);
35333
35330
  if (activeForm.formId !== formWith2Views) return gotoFormByFormIndex(index);
@@ -47449,13 +47446,8 @@ const IndividualOnfidoRules = ({
47449
47446
  requiredIfPhoneScenarioDisabled: () => !isExperimentEnabled("EnablePhoneFieldScenario") ? REQUIRED : void 0,
47450
47447
  jobTitleIfRequiredForRole: () => {
47451
47448
  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)) {
47449
+ if (taskType !== TaskTypes.DECISION_MAKER) return;
47450
+ 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
47451
  return REQUIRED;
47460
47452
  }
47461
47453
  },
@@ -52296,7 +52288,7 @@ const hasProgressedBeyondEntitySelection = (legalEntity) => {
52296
52288
  return hasOwnEntityAssocation || !!hasOrganizationType;
52297
52289
  };
52298
52290
  const Introduction = lazy$1(
52299
- async () => (await import("./Introduction-DrKpaADN.js")).Introduction
52291
+ async () => (await import("./Introduction-DSMyaNcT.js")).Introduction
52300
52292
  );
52301
52293
  const PAGES_WITH_POLLING = [TaskTypes.DECISION_MAKER_OVERVIEW, TaskTypes.TASKS_OVERVIEW];
52302
52294
  const logger$c = createLogger();
@@ -57309,7 +57301,7 @@ var TanstackQueryDevtools = (_k = class {
57309
57301
  if (__privateGet(this, _Component)) {
57310
57302
  Devtools = __privateGet(this, _Component);
57311
57303
  } else {
57312
- Devtools = lazy(() => import("./HO4MOOFI-Dy_AeoHo.js"));
57304
+ Devtools = lazy(() => import("./HO4MOOFI-DU3o0aU0.js"));
57313
57305
  __privateSet(this, _Component, Devtools);
57314
57306
  }
57315
57307
  setupStyleSheet(__privateGet(this, _styleNonce), __privateGet(this, _shadowDOMTarget));
@@ -57431,7 +57423,7 @@ var TanstackQueryDevtoolsPanel = (_l = class {
57431
57423
  if (__privateGet(this, _Component2)) {
57432
57424
  Devtools = __privateGet(this, _Component2);
57433
57425
  } else {
57434
- Devtools = lazy(() => import("./HUY7CZI3-BQQRBWnq.js"));
57426
+ Devtools = lazy(() => import("./HUY7CZI3-W2Doip2x.js"));
57435
57427
  __privateSet(this, _Component2, Devtools);
57436
57428
  }
57437
57429
  setupStyleSheet(__privateGet(this, _styleNonce2), __privateGet(this, _shadowDOMTarget2));
@@ -57652,7 +57644,7 @@ const useAnalytics = ({
57652
57644
  componentName,
57653
57645
  onboardingVersion
57654
57646
  }) => {
57655
- const sdkVersion = "3.60.7";
57647
+ const sdkVersion = "3.60.9";
57656
57648
  const { isEmbeddedDropin, loadingContext: base } = useAuthContext();
57657
57649
  const rootLegalEntity = useGlobalStore((store) => store.rootLegalEntity);
57658
57650
  const countryCode = useGlobalStore((store) => store.rootLegalEntityCountry);
@@ -58143,7 +58135,7 @@ const ConfigurationApiProvider = ({
58143
58135
  [authContext, rootLegalEntityId]
58144
58136
  );
58145
58137
  return /* @__PURE__ */ jsxs(ConfigurationApiContext.Provider, { value: contextValue, children: [
58146
- /* @__PURE__ */ jsx$1("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.60.7" }),
58138
+ /* @__PURE__ */ jsx$1("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.60.9" }),
58147
58139
  children2
58148
58140
  ] });
58149
58141
  };
@@ -58588,7 +58580,7 @@ function StateProvider({
58588
58580
  );
58589
58581
  return /* @__PURE__ */ jsx$1(StateContext.Provider, { value: contextValue, children: children2 });
58590
58582
  }
58591
- const DebugModal = lazy$1(async () => (await import("./DebugModal-DfzSMFw6.js").then((n) => n.D)).DebugModal);
58583
+ const DebugModal = lazy$1(async () => (await import("./DebugModal-DyDBH04I.js").then((n) => n.D)).DebugModal);
58592
58584
  const DebugListener = () => {
58593
58585
  const [debugUiOpen, setDebugUiOpen] = useState(false);
58594
58586
  const { isSettingEnabled } = useSettingsContext();
@@ -1,4 +1,4 @@
1
- import { c as cssProps } from "./DebugModal-DfzSMFw6.js";
1
+ import { c as cssProps } from "./DebugModal-DyDBH04I.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-DyDBH04I.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-DyDBH04I.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.9",
4
4
  "keywords": [
5
5
  "adyen",
6
6
  "adyen-kyc",