@adyen/kyc-components 3.64.0 → 3.64.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.
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "preact/jsx-runtime";
2
- import { b as useI18nContext, A as AlertIcon, h as FormHeader, D as DropinLayout } from "./core-Coy1ocfj.js";
2
+ import { b as useI18nContext, A as AlertIcon, h as FormHeader, D as DropinLayout } from "./core-DMef9uHG.js";
3
3
  function AccountSetupRejected() {
4
4
  const { i18n } = useI18nContext();
5
5
  const content = /* @__PURE__ */ jsxs("div", { children: [
@@ -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 "./HASRA6WW-DysnKis4.js";
2
- import { ac as getPreferredColorScheme, ad as createMemo, ae as createComponent } from "./core-Coy1ocfj.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 "./HASRA6WW-BBh_ldjJ.js";
2
+ import { ac as getPreferredColorScheme, ad as createMemo, ae as createComponent } from "./core-DMef9uHG.js";
3
3
  var DevtoolsPanelComponent = (props) => {
4
4
  const [localStore, setLocalStore] = createLocalStorage({
5
5
  prefix: "TanstackQueryDevtools"
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "preact/jsx-runtime";
2
- import { b as useI18nContext, c as useAnalyticsContext, l as useToastContext, H as useConfigurationApi, i as useLegalEntity, n as useUpdateLegalEntity, m as useQueryClient, I as resolveFieldMetadata, J as contactDetailsValidationRules, K as defaultFieldMetadata, M as fieldConfig, N as getAsyncPhoneValidationRules, O as useMultiForm, h as FormHeader, P as ContactDetails, G as ActionBar, Q as createLogger } from "./core-Coy1ocfj.js";
2
+ import { b as useI18nContext, c as useAnalyticsContext, l as useToastContext, H as useConfigurationApi, i as useLegalEntity, n as useUpdateLegalEntity, m as useQueryClient, I as resolveFieldMetadata, J as contactDetailsValidationRules, K as defaultFieldMetadata, M as fieldConfig, N as getAsyncPhoneValidationRules, O as useMultiForm, h as FormHeader, P as ContactDetails, G as ActionBar, Q as createLogger } from "./core-DMef9uHG.js";
3
3
  import { useCallback, useMemo, useEffect } from "preact/hooks";
4
4
  const mapCustomerSupportSchemaToCustomerSupportType = (customerSupport) => {
5
5
  var _a, _b, _c;
@@ -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, Z as Tag, _ as entriesOf, $ as InputText, b as useI18nContext, a0 as splitTaskIdentifier, a1 as TaskItemStatus, a2 as useExperimentsContext, a3 as useSettingsContext, a4 as useGlobalStore, a5 as listToRecord, a6 as valuesOf, a7 as useTaskStatuses, a8 as Modal, Q as createLogger, a9 as Icon, aa as SettingNames, ab as ExperimentNames } from "./core-Coy1ocfj.js";
3
+ import { B as Button, Z as Tag, _ as entriesOf, $ as InputText, b as useI18nContext, a0 as splitTaskIdentifier, a1 as TaskItemStatus, a2 as useExperimentsContext, a3 as useSettingsContext, a4 as useGlobalStore, a5 as listToRecord, a6 as valuesOf, a7 as useTaskStatuses, a8 as Modal, Q as createLogger, a9 as Icon, aa as SettingNames, ab as ExperimentNames } from "./core-DMef9uHG.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-ClS07N_Y.js"),
139
- json: () => import("./json-66NbIsmg.js"),
140
- yaml: () => import("./yaml-B7DXCyLe.js"),
141
- css: () => import("./css-Dt3Xtm1p.js")
138
+ plaintext: () => import("./plaintext-Bn-4mEeM.js"),
139
+ json: () => import("./json-C8Ve6tYd.js"),
140
+ yaml: () => import("./yaml-B0cSIA3u.js"),
141
+ css: () => import("./css-BuS1n-Pw.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.64.0",
432
+ sdkVersion: "3.64.1",
433
433
  locale: i18n.locale,
434
434
  rootLegalEntityId: rootLegalEntity.id
435
435
  };
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs } from "preact/jsx-runtime";
2
- import { i as useLegalEntity, j as Loader, k as useGetTaskStatus, b as useI18nContext, c as useAnalyticsContext, l as useToastContext, m as useQueryClient, n as useUpdateLegalEntity, o as getOwnDecisionMakers, p as getAvailableDecisionMakerRoleTypes, q as useDataMissingRemediations, T as TaskTypes, r as getAllowedDecisionMakerRoles, D as DropinLayout, h as FormHeader, E as EntityGuidanceStatus, s as iconStatus, v as ContextGuidance, w as DecisionMakerType, x as Alert, y as CardGroup, z as EntityAssociation, B as Button, G as ActionBar } from "./core-Coy1ocfj.js";
2
+ import { i as useLegalEntity, j as Loader, k as useGetTaskStatus, b as useI18nContext, c as useAnalyticsContext, l as useToastContext, m as useQueryClient, n as useUpdateLegalEntity, o as getOwnDecisionMakers, p as getAvailableDecisionMakerRoleTypes, q as useDataMissingRemediations, T as TaskTypes, r as getAllowedDecisionMakerRoles, D as DropinLayout, h as FormHeader, E as EntityGuidanceStatus, s as iconStatus, v as ContextGuidance, w as DecisionMakerType, x as Alert, y as CardGroup, z as EntityAssociation, B as Button, G as ActionBar } from "./core-DMef9uHG.js";
3
3
  import { useState, useEffect } from "preact/hooks";
4
4
  const DecisionMakers = (props) => {
5
5
  const { data, isLoading } = useLegalEntity();
@@ -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 { af as createContext, ag as createSignal, ah as onMount, ai as createEffect, ad as createMemo, ae as createComponent, aj as Portal, ak as Show, al as template, am as insert, an as createRenderEffect, ao as className, ap as clearDelegatedEvents, aq as delegateEvents, ar as useContext, as as onCleanup, at as sortFns, au as mutationSortFns, av as on, aw as setAttribute, ax as getSidedProp, ay as use, az as createUniqueId, aA as batch, aB as getQueryStatusLabel, aC as getMutationStatusColor, aD as getQueryStatusColor, aE as getQueryStatusColorByLabel, aF as displayValue, aG as For, aH as convertRemToPixels, aI as untrack, aJ as $TRACK, aK as useTransition, aL as spread, aM as mergeProps, aN as createRoot, aO as serialize, aP as Index, aQ as updateNestedDataByPath, aR as addEventListener, aS as stringify, aT as Match, aU as Switch, aV as deleteNestedDataByPath, aW as splitProps, aX as Dynamic, aY as createComputed } from "./core-Coy1ocfj.js";
4
+ import { af as createContext, ag as createSignal, ah as onMount, ai as createEffect, ad as createMemo, ae as createComponent, aj as Portal, ak as Show, al as template, am as insert, an as createRenderEffect, ao as className, ap as clearDelegatedEvents, aq as delegateEvents, ar as useContext, as as onCleanup, at as sortFns, au as mutationSortFns, av as on, aw as setAttribute, ax as getSidedProp, ay as use, az as createUniqueId, aA as batch, aB as getQueryStatusLabel, aC as getMutationStatusColor, aD as getQueryStatusColor, aE as getQueryStatusColorByLabel, aF as displayValue, aG as For, aH as convertRemToPixels, aI as untrack, aJ as $TRACK, aK as useTransition, aL as spread, aM as mergeProps, aN as createRoot, aO as serialize, aP as Index, aQ as updateNestedDataByPath, aR as addEventListener, aS as stringify, aT as Match, aU as Switch, aV as deleteNestedDataByPath, aW as splitProps, aX as Dynamic, aY as createComputed } from "./core-DMef9uHG.js";
5
5
  var isNonNullable = (i2) => i2 != null;
6
6
  var filterNonNullable = (arr) => arr.filter(isNonNullable);
7
7
  function chain(callbacks) {
@@ -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 "./HASRA6WW-DysnKis4.js";
2
- import { ac as getPreferredColorScheme, ad as createMemo, ae as createComponent } from "./core-Coy1ocfj.js";
1
+ import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, D as Devtools, Q as QueryDevtoolsContext } from "./HASRA6WW-BBh_ldjJ.js";
2
+ import { ac as getPreferredColorScheme, ad as createMemo, ae as createComponent } from "./core-DMef9uHG.js";
3
3
  var DevtoolsComponent = (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 useAnalyticsContext, S as StepProgressIndicator, B as Button } from "./core-Coy1ocfj.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 useAnalyticsContext, S as StepProgressIndicator, B as Button } from "./core-DMef9uHG.js";
4
4
  import { useMemo } from "preact/compat";
5
5
  var IntroductionScreens = ((IntroductionScreens2) => {
6
6
  IntroductionScreens2["PROLOGUE"] = "PROLOGUE";
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs } from "preact/jsx-runtime";
2
2
  import { useState } from "preact/hooks";
3
- import { U as useApiContext, V as useMutation, W as httpPost, b as useI18nContext, l as useToastContext, X as LoaderWrapper, h as FormHeader, Y as Checkbox, G as ActionBar, D as DropinLayout } from "./core-Coy1ocfj.js";
3
+ import { U as useApiContext, V as useMutation, W as httpPost, b as useI18nContext, l as useToastContext, X as LoaderWrapper, h as FormHeader, Y as Checkbox, G as ActionBar, D as DropinLayout } from "./core-DMef9uHG.js";
4
4
  const confirmReview = async (legalEntityId, url) => {
5
5
  return httpPost({
6
6
  loadingContext: url,
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs } from "preact/jsx-runtime";
2
2
  import { useState } from "preact/hooks";
3
- import { b as useI18nContext, d as useForm, e as Typography, F as Field, R as RadioGroupCard, B as Button, f as Svg, L as LegalEntityType } from "./core-Coy1ocfj.js";
3
+ import { b as useI18nContext, d as useForm, e as Typography, F as Field, R as RadioGroupCard, B as Button, f as Svg, L as LegalEntityType } from "./core-DMef9uHG.js";
4
4
  const setupAccountMethods = ["singpass", "manual"];
5
5
  const setupAccountMethodFields = ["setupAccountMethod"];
6
6
  const getSingpassSelectionDisabled = (legalEntityType) => {
@@ -1,4 +1,4 @@
1
- import { C as Core } from "./core-Coy1ocfj.js";
1
+ import { C as Core } from "./core-DMef9uHG.js";
2
2
  if (CSS.supports("container", "foo / inline-size") === false) {
3
3
  import("container-query-polyfill");
4
4
  }
@@ -1,4 +1,4 @@
1
- import { C as Core } from "./core-Coy1ocfj.js";
1
+ import { C as Core } from "./core-DMef9uHG.js";
2
2
  const environmentMap = Object.freeze({
3
3
  live: "https://live.adyen.com",
4
4
  test: "https://test.adyen.com"
@@ -42139,7 +42139,7 @@ const BusinessTypeSelection = ({
42139
42139
  });
42140
42140
  const newAccountHolder = ((_c2 = data.businessType) == null ? void 0 : _c2.accountHolder) || ((_d2 = data.legalArrangement) == null ? void 0 : _d2.accountHolder);
42141
42141
  const targetLegalArrangement = (_e2 = data.legalArrangement) == null ? void 0 : _e2.id;
42142
- const trustOrUnincorporatedPartnership = ((_f2 = data.legalArrangement) == null ? void 0 : _f2.id) === "aTrust" || ((_g2 = data.legalArrangement) == null ? void 0 : _g2.id) === "partnershipUnincorporated";
42142
+ const trustOrUnincorporatedPartnership = ((_f2 = data.legalArrangement) == null ? void 0 : _f2.id) === "aTrust" || ((_g2 = data.legalArrangement) == null ? void 0 : _g2.id) === "partnershipUnincorporated" && isExperimentEnabled(ExperimentNames.EnableUnincorporatedPartnershipInHO);
42143
42143
  const targetLegalEntityType = getTargetLegalEntityType(
42144
42144
  (_h2 = data.businessType) == null ? void 0 : _h2.id,
42145
42145
  (_i2 = data.legalArrangement) == null ? void 0 : _i2.id,
@@ -50737,21 +50737,21 @@ const hasProgressedBeyondEntitySelection = (legalEntity) => {
50737
50737
  return hasOwnEntityAssocation || !!hasOrganizationType;
50738
50738
  };
50739
50739
  const Introduction = lazy$1(
50740
- async () => (await import("./Introduction-CW1frGWu.js")).Introduction
50740
+ async () => (await import("./Introduction-Dh3oNC_b.js")).Introduction
50741
50741
  );
50742
50742
  const SingpassSelection = lazy$1(
50743
- async () => (await import("./SingpassSelection-CnBicSOw.js")).SingpassSelection
50743
+ async () => (await import("./SingpassSelection-BUEOfpN3.js")).SingpassSelection
50744
50744
  );
50745
50745
  const AccountSetupRejected = lazy$1(
50746
- async () => (await import("./AccountSetupRejected-Dy_VeWhw.js")).AccountSetupRejected
50746
+ async () => (await import("./AccountSetupRejected-DE4V7-3v.js")).AccountSetupRejected
50747
50747
  );
50748
50748
  const DecisionMakers = lazy$1(
50749
- async () => (await import("./DecisionMakers-DXIKUq2C.js")).DecisionMakers
50749
+ async () => (await import("./DecisionMakers-DMRBLJ03.js")).DecisionMakers
50750
50750
  );
50751
50751
  const CustomerSupport = lazy$1(
50752
- async () => (await import("./CustomerSupport-CasBYndK.js")).CustomerSupport
50752
+ async () => (await import("./CustomerSupport-BRVILv21.js")).CustomerSupport
50753
50753
  );
50754
- const Review = lazy$1(async () => (await import("./Review-DtIANMrI.js")).Review);
50754
+ const Review = lazy$1(async () => (await import("./Review-TmWR8Zbc.js")).Review);
50755
50755
  const SignPCIComponent$2 = lazy$1(
50756
50756
  async () => (await Promise.resolve().then(() => SignPCIComponent$1)).SignPCIComponent
50757
50757
  );
@@ -55421,7 +55421,7 @@ var TanstackQueryDevtools = (_k = class {
55421
55421
  if (__privateGet(this, _Component)) {
55422
55422
  Devtools = __privateGet(this, _Component);
55423
55423
  } else {
55424
- Devtools = lazy(() => import("./I3HPI4QX-CJrdsThE.js"));
55424
+ Devtools = lazy(() => import("./I3HPI4QX-DgZhje7B.js"));
55425
55425
  __privateSet(this, _Component, Devtools);
55426
55426
  }
55427
55427
  setupStyleSheet(__privateGet(this, _styleNonce), __privateGet(this, _shadowDOMTarget));
@@ -55543,7 +55543,7 @@ var TanstackQueryDevtoolsPanel = (_l = class {
55543
55543
  if (__privateGet(this, _Component2)) {
55544
55544
  Devtools = __privateGet(this, _Component2);
55545
55545
  } else {
55546
- Devtools = lazy(() => import("./CXEL7IU7-DXEnuiiT.js"));
55546
+ Devtools = lazy(() => import("./CXEL7IU7-DcK7-pPj.js"));
55547
55547
  __privateSet(this, _Component2, Devtools);
55548
55548
  }
55549
55549
  setupStyleSheet(__privateGet(this, _styleNonce2), __privateGet(this, _shadowDOMTarget2));
@@ -55762,7 +55762,7 @@ const convertToEmbeddedEvent = (eventQueueItem, sessionData) => {
55762
55762
  };
55763
55763
  };
55764
55764
  const useAnalytics = ({ userEvents: userEvents2, sessionId, sessionData }) => {
55765
- const sdkVersion = "3.64.0";
55765
+ const sdkVersion = "3.64.1";
55766
55766
  const rootLegalEntity = useGlobalStore((store) => store.rootLegalEntity);
55767
55767
  const countryCode = useGlobalStore((store) => store.rootLegalEntityCountry);
55768
55768
  const capabilities = Object.keys(rootLegalEntity.capabilities ?? {});
@@ -55836,7 +55836,7 @@ const AnalyticsProvider = ({
55836
55836
  const { onboardingVersion } = useVersion();
55837
55837
  const userEvents2 = useMemo(() => createUserEvents(), []);
55838
55838
  const sessionData = {
55839
- sdkVersion: "3.64.0",
55839
+ sdkVersion: "3.64.1",
55840
55840
  componentName,
55841
55841
  userAgent: navigator.userAgent,
55842
55842
  legalEntityId,
@@ -55970,7 +55970,7 @@ const ConfigurationApiProvider = ({ children: children2 }) => {
55970
55970
  [baseUrl, rootLegalEntityId]
55971
55971
  );
55972
55972
  return /* @__PURE__ */ jsxs(ConfigurationApiContext.Provider, { value: contextValue, children: [
55973
- /* @__PURE__ */ jsx$1("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.64.0" }),
55973
+ /* @__PURE__ */ jsx$1("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.64.1" }),
55974
55974
  children2
55975
55975
  ] });
55976
55976
  };
@@ -56445,7 +56445,7 @@ function StateProvider({
56445
56445
  );
56446
56446
  return /* @__PURE__ */ jsx$1(StateContext.Provider, { value: contextValue, children: children2 });
56447
56447
  }
56448
- const DebugModal = lazy$1(async () => (await import("./DebugModal-IlmV_vyp.js").then((n) => n.D)).DebugModal);
56448
+ const DebugModal = lazy$1(async () => (await import("./DebugModal-BJk5v_Fq.js").then((n) => n.D)).DebugModal);
56449
56449
  const DebugListener = () => {
56450
56450
  const [debugUiOpen, setDebugUiOpen] = useState(false);
56451
56451
  const { isSettingEnabled } = useSettingsContext();
@@ -1,4 +1,4 @@
1
- import { c as cssProps } from "./DebugModal-IlmV_vyp.js";
1
+ import { c as cssProps } from "./DebugModal-BJk5v_Fq.js";
2
2
  const definitions = {
3
3
  any: { regex: /.*/g, css: cssProps.text },
4
4
  property: { regex: /(^|[\r\n])[^:]*:/g, css: cssProps.key },
@@ -1,4 +1,4 @@
1
- import { c as cssProps } from "./DebugModal-IlmV_vyp.js";
1
+ import { c as cssProps } from "./DebugModal-BJk5v_Fq.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-IlmV_vyp.js";
1
+ import { c as cssProps } from "./DebugModal-BJk5v_Fq.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-IlmV_vyp.js";
1
+ import { c as cssProps } from "./DebugModal-BJk5v_Fq.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/kyc-components",
3
- "version": "3.64.0",
3
+ "version": "3.64.1",
4
4
  "keywords": [
5
5
  "adyen",
6
6
  "adyen-kyc",