@adyen/kyc-components 3.43.4 → 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
  });
@@ -22827,10 +22827,6 @@ function PayoutAccount(props) {
22827
22827
  )
22828
22828
  ] });
22829
22829
  }
22830
- const MemoizedPayoutAccount = memo(
22831
- PayoutAccount,
22832
- (prevProps, nextProps) => objectsDeepEqual(prevProps.requiredFields, nextProps.requiredFields) && objectsDeepEqual(prevProps.optionalFields, nextProps.optionalFields) && objectsDeepEqual(prevProps.data, nextProps.data) && objectsDeepEqual(prevProps.formVerificationErrors, nextProps.formVerificationErrors) && objectsDeepEqual(prevProps.fieldValidationErrors, nextProps.fieldValidationErrors) && prevProps.country === nextProps.country && prevProps.shouldValidate === nextProps.shouldValidate && prevProps.arePayoutAccountDetailsInvalid === nextProps.arePayoutAccountDetailsInvalid && prevProps.invalidFieldNames === nextProps.invalidFieldNames
22833
- );
22834
22830
  const eeaCountries = [
22835
22831
  CountryCodes.Austria,
22836
22832
  CountryCodes.Belgium,
@@ -23627,7 +23623,7 @@ function PayoutDetails(props) {
23627
23623
  {
23628
23624
  className: (activeForm == null ? void 0 : activeForm.formId) !== payoutSteps.payoutAccountDetails.formId ? "adyen-kyc-form-wrapper adyen-kyc-form-wrapper--hidden" : "adyen-kyc-form-wrapper",
23629
23625
  children: /* @__PURE__ */ jsx(
23630
- MemoizedPayoutAccount,
23626
+ PayoutAccount,
23631
23627
  {
23632
23628
  ...payoutAccountFormProps,
23633
23629
  heading: taskHeading,
@@ -26875,9 +26871,9 @@ function AdditionalInformation({
26875
26871
  return mergeFieldMetadataIntoProps(
26876
26872
  field,
26877
26873
  resolveFieldMetadata(
26878
- defaultFieldConfig$a[country],
26874
+ isExperimentEnabled("StrictNameAndAddressValidationV4") ? defaultFieldConfigV4[country] : defaultFieldConfig$a[country],
26879
26875
  { isBusiness: true },
26880
- defaultFieldMetadata$b
26876
+ isExperimentEnabled("StrictNameAndAddressValidationV4") ? defaultFieldMetadataV4 : defaultFieldMetadata$b
26881
26877
  ),
26882
26878
  acc
26883
26879
  );
@@ -43832,7 +43828,7 @@ const ConfigurationApiProvider = ({
43832
43828
  }) => {
43833
43829
  const authContext = useAuthContext();
43834
43830
  const { isEmbeddedDropin, loadingContext } = authContext;
43835
- const sdkVersion = "3.43.4";
43831
+ const sdkVersion = "3.43.6";
43836
43832
  useAnalytics({
43837
43833
  onUserEvent,
43838
43834
  legalEntityId: rootLegalEntityId,
@@ -44677,7 +44673,7 @@ const DebugModal = ({ rootLegalEntityId, onExit, getRootLegalEntity }) => {
44677
44673
  const { i18n } = useI18nContext();
44678
44674
  const [tab, setTab] = useState("metadata");
44679
44675
  const metadata = {
44680
- sdkVersion: "3.43.4",
44676
+ sdkVersion: "3.43.6",
44681
44677
  locale: i18n.locale,
44682
44678
  rootLegalEntityId
44683
44679
  };
@@ -1,5 +1,3 @@
1
1
  import type { PayoutAccountProps, PayoutAccountSchema } from './types';
2
2
  export declare const payoutAccountFields: Array<keyof PayoutAccountSchema>;
3
- declare function PayoutAccount(props: PayoutAccountProps): import("preact").JSX.Element;
4
- export declare const MemoizedPayoutAccount: typeof PayoutAccount;
5
- export {};
3
+ export declare function PayoutAccount(props: PayoutAccountProps): import("preact").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/kyc-components",
3
- "version": "3.43.4",
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",