@adyen/kyc-components 2.59.7 → 2.59.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
  import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
2
2
  import { useContext, useState, useCallback, useEffect, useMemo, useReducer, useId, useRef, useLayoutEffect } from "preact/hooks";
3
3
  import { createContext, isValidElement, createElement, render } from "preact";
4
- import { sanitize } from "isomorphic-dompurify";
4
+ import DOMPurify from "isomorphic-dompurify";
5
5
  import cx from "classnames";
6
6
  import { lazy, Suspense, forwardRef, memo, useMemo as useMemo$1 } from "preact/compat";
7
7
  import debounce$1 from "lodash-es/debounce";
@@ -1498,7 +1498,7 @@ const determineAllowedAttributes = (allowedTags) => {
1498
1498
  }
1499
1499
  return allowedAttributes;
1500
1500
  };
1501
- const sanitizeHtml = (unsafeInput, allowedTags = []) => sanitize(unsafeInput, {
1501
+ const sanitizeHtml = (unsafeInput, allowedTags = []) => DOMPurify.sanitize(unsafeInput, {
1502
1502
  ALLOWED_TAGS: allowedTags,
1503
1503
  ALLOWED_ATTR: determineAllowedAttributes(allowedTags)
1504
1504
  });
@@ -24885,7 +24885,7 @@ function AdditionalInformationComponent({
24885
24885
  if (currentData.exemptedFromVat) {
24886
24886
  fieldsToRemove.push("vatNumber");
24887
24887
  } else {
24888
- fieldsToRemove.push("exemptedFromVat", "vatAbsenceReason");
24888
+ fieldsToRemove.push("vatAbsenceReason");
24889
24889
  }
24890
24890
  if (currentData.exemptedFromTax) {
24891
24891
  fieldsToRemove.push("taxInformation");
@@ -39410,7 +39410,7 @@ const ConfigurationApiProvider = ({
39410
39410
  }) => {
39411
39411
  const authContext = useAuthContext();
39412
39412
  const { isEmbeddedDropin, loadingContext } = authContext;
39413
- const sdkVersion = "2.59.7";
39413
+ const sdkVersion = "2.59.9";
39414
39414
  useAnalytics({
39415
39415
  onUserEvent,
39416
39416
  legalEntityId: rootLegalEntityId,
@@ -40083,7 +40083,7 @@ const DebugModal = ({ rootLegalEntityId, onExit, getRootLegalEntity }) => {
40083
40083
  };
40084
40084
  const copyToClipboard = async () => {
40085
40085
  const toCopy = {
40086
- sdkVersion: "2.59.7",
40086
+ sdkVersion: "2.59.9",
40087
40087
  experiments: Object.fromEntries(allExperimentsWithValues),
40088
40088
  settings: Object.fromEntries(allSettingsWithValues)
40089
40089
  };
@@ -40148,7 +40148,7 @@ const DebugModal = ({ rootLegalEntityId, onExit, getRootLegalEntity }) => {
40148
40148
  /* @__PURE__ */ jsx("div", { className: "adyen-kyc-debug-modal__meta", children: /* @__PURE__ */ jsx("table", { children: /* @__PURE__ */ jsxs("tbody", { children: [
40149
40149
  /* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsxs("td", { children: [
40150
40150
  /* @__PURE__ */ jsx("span", { className: "adyen-kyc-debug-modal__table-key", children: "SDK version" }),
40151
- /* @__PURE__ */ jsx(Tag, { variant: "green", className: "adyen-kyc-tag--large", children: "2.59.7" })
40151
+ /* @__PURE__ */ jsx(Tag, { variant: "green", className: "adyen-kyc-tag--large", children: "2.59.9" })
40152
40152
  ] }) }),
40153
40153
  /* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsxs("td", { children: [
40154
40154
  /* @__PURE__ */ jsx("span", { className: "adyen-kyc-debug-modal__table-key", children: "rootLegalEntityId" }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/kyc-components",
3
- "version": "2.59.7",
3
+ "version": "2.59.9",
4
4
  "keywords": [
5
5
  "adyen",
6
6
  "adyen-kyc",
@@ -83,7 +83,7 @@
83
83
  "@adyen/openbankingsdk": "^0.1.2",
84
84
  "@adyen/ui-assets-icons-16": "^4.3.0",
85
85
  "classnames": "^2.3.2",
86
- "isomorphic-dompurify": "^0.13.0",
86
+ "isomorphic-dompurify": "^2.17.0",
87
87
  "lodash-es": "^4.17.21",
88
88
  "onfido-sdk-ui": "12.3.5",
89
89
  "preact": "^10.17.1",