@adyen/kyc-components 3.43.5 → 3.43.6

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 React, { lazy, Suspense, forwardRef, memo, useMemo as useMemo$1 } from "preact/compat";
7
7
  import isISIN from "validator/es/lib/isISIN.js";
@@ -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
  });
@@ -43828,7 +43828,7 @@ const ConfigurationApiProvider = ({
43828
43828
  }) => {
43829
43829
  const authContext = useAuthContext();
43830
43830
  const { isEmbeddedDropin, loadingContext } = authContext;
43831
- const sdkVersion = "3.43.5";
43831
+ const sdkVersion = "3.43.6";
43832
43832
  useAnalytics({
43833
43833
  onUserEvent,
43834
43834
  legalEntityId: rootLegalEntityId,
@@ -44673,7 +44673,7 @@ const DebugModal = ({ rootLegalEntityId, onExit, getRootLegalEntity }) => {
44673
44673
  const { i18n } = useI18nContext();
44674
44674
  const [tab, setTab] = useState("metadata");
44675
44675
  const metadata = {
44676
- sdkVersion: "3.43.5",
44676
+ sdkVersion: "3.43.6",
44677
44677
  locale: i18n.locale,
44678
44678
  rootLegalEntityId
44679
44679
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/kyc-components",
3
- "version": "3.43.5",
3
+ "version": "3.43.6",
4
4
  "keywords": [
5
5
  "adyen",
6
6
  "adyen-kyc",
@@ -85,7 +85,7 @@
85
85
  "@adyen/openbankingsdk": "^0.2.3",
86
86
  "@adyen/ui-assets-icons-16": "^4.3.1",
87
87
  "classnames": "^2.5.1",
88
- "isomorphic-dompurify": "^0.13.0",
88
+ "isomorphic-dompurify": "^2.17.0",
89
89
  "onfido-sdk-ui": "14.38.0",
90
90
  "preact": "^10.25.4",
91
91
  "react": "npm:@preact/compat@^18.3.1",