@adyen/kyc-components 3.44.1 → 3.44.2
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
|
|
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";
|
|
@@ -1507,7 +1507,7 @@ const determineAllowedAttributes = (allowedTags) => {
|
|
|
1507
1507
|
}
|
|
1508
1508
|
return allowedAttributes;
|
|
1509
1509
|
};
|
|
1510
|
-
const sanitizeHtml = (unsafeInput, allowedTags = []) => sanitize(unsafeInput, {
|
|
1510
|
+
const sanitizeHtml = (unsafeInput, allowedTags = []) => DOMPurify.sanitize(unsafeInput, {
|
|
1511
1511
|
ALLOWED_TAGS: allowedTags,
|
|
1512
1512
|
ALLOWED_ATTR: determineAllowedAttributes(allowedTags)
|
|
1513
1513
|
});
|
|
@@ -44400,7 +44400,7 @@ const ConfigurationApiProvider = ({
|
|
|
44400
44400
|
}) => {
|
|
44401
44401
|
const authContext = useAuthContext();
|
|
44402
44402
|
const { isEmbeddedDropin, loadingContext } = authContext;
|
|
44403
|
-
const sdkVersion = "3.44.
|
|
44403
|
+
const sdkVersion = "3.44.2";
|
|
44404
44404
|
useAnalytics({
|
|
44405
44405
|
onUserEvent,
|
|
44406
44406
|
legalEntityId: rootLegalEntityId,
|
|
@@ -45247,7 +45247,7 @@ const DebugModal = ({ rootLegalEntityId, onExit, getRootLegalEntity }) => {
|
|
|
45247
45247
|
const { i18n } = useI18nContext();
|
|
45248
45248
|
const [tab, setTab] = useState("metadata");
|
|
45249
45249
|
const metadata = {
|
|
45250
|
-
sdkVersion: "3.44.
|
|
45250
|
+
sdkVersion: "3.44.2",
|
|
45251
45251
|
locale: i18n.locale,
|
|
45252
45252
|
rootLegalEntityId
|
|
45253
45253
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adyen/kyc-components",
|
|
3
|
-
"version": "3.44.
|
|
3
|
+
"version": "3.44.2",
|
|
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": "^
|
|
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",
|