@adyen/kyc-components 3.44.0 → 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.
- package/dist/es/adyen-kyc-components.es.js +19 -10
- package/dist/style.css +3 -1
- package/package.json +2 -2
|
@@ -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
|
});
|
|
@@ -23631,6 +23631,7 @@ function PayoutDetails(props) {
|
|
|
23631
23631
|
bankVendorsLoadingStatus,
|
|
23632
23632
|
instantVerificationAvailable,
|
|
23633
23633
|
setHideSidebar,
|
|
23634
|
+
setHideFooter,
|
|
23634
23635
|
setSkipSubmit,
|
|
23635
23636
|
createTrustedTransferInstrument: createTrustedTransferInstrument2,
|
|
23636
23637
|
handleBankVerificationError: handleBankVerificationError2,
|
|
@@ -23696,6 +23697,13 @@ function PayoutDetails(props) {
|
|
|
23696
23697
|
resetInvalidFieldState();
|
|
23697
23698
|
}
|
|
23698
23699
|
}, [i18n, validateAccountDetails]);
|
|
23700
|
+
const shouldHideFooter = useMemo(
|
|
23701
|
+
() => (activeForm == null ? void 0 : activeForm.formId) === "payoutVerificationMethod" && isExperimentEnabled("EnablePreferInstantVerificationFlow"),
|
|
23702
|
+
[activeForm == null ? void 0 : activeForm.formId, isExperimentEnabled]
|
|
23703
|
+
);
|
|
23704
|
+
useEffect(() => {
|
|
23705
|
+
setHideFooter == null ? void 0 : setHideFooter(shouldHideFooter);
|
|
23706
|
+
}, [shouldHideFooter]);
|
|
23699
23707
|
return /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-payout", children: [
|
|
23700
23708
|
/* @__PURE__ */ jsx(
|
|
23701
23709
|
"div",
|
|
@@ -25837,7 +25845,7 @@ function Summary({
|
|
|
25837
25845
|
}
|
|
25838
25846
|
),
|
|
25839
25847
|
/* @__PURE__ */ jsx("div", { className: "adyen-kyc-summary__content", children: renderSummaryContent(data) }),
|
|
25840
|
-
showLegalCaption && /* @__PURE__ */ jsx("
|
|
25848
|
+
showLegalCaption && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-summary__legal-caption", children: /* @__PURE__ */ jsx("span", { children: i18n.get("summaryLegalCaption") }) }),
|
|
25841
25849
|
showTaxExemptedLegalCaption && /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-summary__legal-caption", children: [
|
|
25842
25850
|
/* @__PURE__ */ jsx("p", { children: i18n.get("summaryTaxExemptionLegalCaptionTitle") }),
|
|
25843
25851
|
/* @__PURE__ */ jsxs("ul", { children: [
|
|
@@ -26982,7 +26990,7 @@ function AdditionalInformation({
|
|
|
26982
26990
|
if (currentData.exemptedFromVat) {
|
|
26983
26991
|
fieldsToRemove.push("vatNumber");
|
|
26984
26992
|
} else {
|
|
26985
|
-
fieldsToRemove.push("
|
|
26993
|
+
fieldsToRemove.push("vatAbsenceReason");
|
|
26986
26994
|
}
|
|
26987
26995
|
if (currentData.exemptedFromTax) {
|
|
26988
26996
|
fieldsToRemove.push("taxInformation");
|
|
@@ -29410,7 +29418,7 @@ function FormRouterContextProvider({
|
|
|
29410
29418
|
return /* @__PURE__ */ jsx(FormRouterContext.Provider, { value: contextValue, children });
|
|
29411
29419
|
}
|
|
29412
29420
|
const MaybeModal = ({ children, inline = false, onClose, onBack }) => {
|
|
29413
|
-
return inline ? /* @__PURE__ */ jsx(
|
|
29421
|
+
return inline ? /* @__PURE__ */ jsx(Fragment, { children }) : /* @__PURE__ */ jsx(Modal, { onClose, onBack, children });
|
|
29414
29422
|
};
|
|
29415
29423
|
const range = (stop, start = 0, step = 1) => Array.from({ length: (stop - start) / step + 1 }, (_, i) => start + i * step);
|
|
29416
29424
|
const shouldHighlight = (active, current, fillBefore) => !fillBefore ? active === current : active >= current;
|
|
@@ -29632,7 +29640,7 @@ const FormWrapper = ({
|
|
|
29632
29640
|
] })
|
|
29633
29641
|
] }),
|
|
29634
29642
|
!hideFooter && /* @__PURE__ */ jsxs(ModalFooter, { children: [
|
|
29635
|
-
/* @__PURE__ */ jsx("div", { style: { width: "30%" }, children: /* @__PURE__ */ jsx(
|
|
29643
|
+
/* @__PURE__ */ jsx("div", { style: { width: "30%", display: asModal ? "unset" : "none" }, children: /* @__PURE__ */ jsx(
|
|
29636
29644
|
StepProgressIndicator,
|
|
29637
29645
|
{
|
|
29638
29646
|
activeStepIndex: steps.current ?? 0,
|
|
@@ -35695,6 +35703,7 @@ function PayoutDetailsDropin({
|
|
|
35695
35703
|
const formValidity = currentState.validityByForm;
|
|
35696
35704
|
const bankAccountCountry = ((_c = (_b = currentState == null ? void 0 : currentState.data) == null ? void 0 : _b.payoutVerificationMethod) == null ? void 0 : _c.bankCountry) ?? defaultPayoutCountry;
|
|
35697
35705
|
const [hideFooterAndSidebar, setHideFooterAndSidebar] = useState(false);
|
|
35706
|
+
const [hideFooter, setHideFooter] = useState(false);
|
|
35698
35707
|
const [skipSubmit, setSkipSubmit] = useState(false);
|
|
35699
35708
|
const [loadingStatus, setLoadingStatus] = useState("loading");
|
|
35700
35709
|
const [bankVendorsLoadingStatus, setBankVendorsLoadingStatus] = useState("loading");
|
|
@@ -36016,7 +36025,7 @@ function PayoutDetailsDropin({
|
|
|
36016
36025
|
handleHomeClick,
|
|
36017
36026
|
handleCloseClick,
|
|
36018
36027
|
hideSidebar: hideSidebar || hideFooterAndSidebar,
|
|
36019
|
-
hideFooter: hideFooterAndSidebar,
|
|
36028
|
+
hideFooter: hideFooter || hideFooterAndSidebar,
|
|
36020
36029
|
loadingStatus,
|
|
36021
36030
|
asModal,
|
|
36022
36031
|
forms,
|
|
@@ -36040,7 +36049,7 @@ function PayoutDetailsDropin({
|
|
|
36040
36049
|
onBack: handleBackClick,
|
|
36041
36050
|
accountHolder: accountHolder ?? getLegalEntityNameBasedOnType(legalEntityResponse),
|
|
36042
36051
|
setHideSidebar: setHideFooterAndSidebar,
|
|
36043
|
-
setHideFooter
|
|
36052
|
+
setHideFooter,
|
|
36044
36053
|
setSkipSubmit,
|
|
36045
36054
|
onChange,
|
|
36046
36055
|
legalEntityResponse,
|
|
@@ -44391,7 +44400,7 @@ const ConfigurationApiProvider = ({
|
|
|
44391
44400
|
}) => {
|
|
44392
44401
|
const authContext = useAuthContext();
|
|
44393
44402
|
const { isEmbeddedDropin, loadingContext } = authContext;
|
|
44394
|
-
const sdkVersion = "3.44.
|
|
44403
|
+
const sdkVersion = "3.44.2";
|
|
44395
44404
|
useAnalytics({
|
|
44396
44405
|
onUserEvent,
|
|
44397
44406
|
legalEntityId: rootLegalEntityId,
|
|
@@ -45238,7 +45247,7 @@ const DebugModal = ({ rootLegalEntityId, onExit, getRootLegalEntity }) => {
|
|
|
45238
45247
|
const { i18n } = useI18nContext();
|
|
45239
45248
|
const [tab, setTab] = useState("metadata");
|
|
45240
45249
|
const metadata = {
|
|
45241
|
-
sdkVersion: "3.44.
|
|
45250
|
+
sdkVersion: "3.44.2",
|
|
45242
45251
|
locale: i18n.locale,
|
|
45243
45252
|
rootLegalEntityId
|
|
45244
45253
|
};
|
package/dist/style.css
CHANGED
|
@@ -2230,6 +2230,7 @@ fieldset {
|
|
|
2230
2230
|
}
|
|
2231
2231
|
}.adyen-kyc-check-guidance {
|
|
2232
2232
|
margin: var(--adyen-sdk-spacer-090, 24px) 0 var(--adyen-sdk-spacer-030, 6px);
|
|
2233
|
+
position: relative;
|
|
2233
2234
|
}
|
|
2234
2235
|
.adyen-kyc-check-guidance__image {
|
|
2235
2236
|
width: 100%;
|
|
@@ -2538,6 +2539,7 @@ fieldset {
|
|
|
2538
2539
|
.adyen-kyc-modal__footer {
|
|
2539
2540
|
border-top: var(--adyen-sdk-border-width-s, 1px) solid var(--adyen-sdk-color-outline-primary, #dbdee2);
|
|
2540
2541
|
padding: var(--adyen-sdk-spacer-070, 16px) var(--adyen-sdk-spacer-090, 24px);
|
|
2542
|
+
margin-top: var(--adyen-sdk-spacer-070, 16px);
|
|
2541
2543
|
display: flex;
|
|
2542
2544
|
justify-content: space-between;
|
|
2543
2545
|
align-items: center;
|
|
@@ -4629,7 +4631,7 @@ fieldset {
|
|
|
4629
4631
|
border-radius: var(--adyen-sdk-border-radius-m, 8px);
|
|
4630
4632
|
}
|
|
4631
4633
|
.adyen-layout-xs-only .adyen-kyc-ui-element-container {
|
|
4632
|
-
padding: var(--adyen-sdk-spacer-
|
|
4634
|
+
padding: var(--adyen-sdk-spacer-070, 16px);
|
|
4633
4635
|
}
|
|
4634
4636
|
|
|
4635
4637
|
/*
|
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",
|