@adyen/kyc-components 3.43.1 → 3.43.3
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 -5
- package/dist/style.css +2 -1
- package/package.json +1 -1
|
@@ -11357,7 +11357,7 @@ const EntityTypeRadioGroupCard = ({
|
|
|
11357
11357
|
EntityTypeSelectionRadioCardBody,
|
|
11358
11358
|
{
|
|
11359
11359
|
description: optionDescription(option),
|
|
11360
|
-
examples: examples == null ? void 0 : examples[
|
|
11360
|
+
examples: examples == null ? void 0 : examples[option]
|
|
11361
11361
|
}
|
|
11362
11362
|
) : void 0,
|
|
11363
11363
|
optionClassNames: () => ({
|
|
@@ -13404,8 +13404,9 @@ function AddressForm(props) {
|
|
|
13404
13404
|
);
|
|
13405
13405
|
};
|
|
13406
13406
|
const addressSchema = getAddressSchemaForCountry(data.country);
|
|
13407
|
-
const setAddressField = ({ houseNumberOrName, street }) => {
|
|
13407
|
+
const setAddressField = ({ houseNumberOrName, street, line1 }) => {
|
|
13408
13408
|
const hasHouseNumber = !!houseNumberOrName;
|
|
13409
|
+
if (!street && line1) return handleChangeFor("address", "input")(line1);
|
|
13409
13410
|
if (hasHouseNumber) {
|
|
13410
13411
|
const isHouseNumberFirst = data.country ? COUNTRIES_WITH_HOUSE_NUMBER_FIRST.includes(data.country) : false;
|
|
13411
13412
|
const needsComma = data.country ? COUNTRIES_WITH_COMMA_SEPARATED.includes(data.country) : false;
|
|
@@ -13614,8 +13615,9 @@ function FieldContainer({
|
|
|
13614
13615
|
const [showSearchList, setShowSearchList] = useState(false);
|
|
13615
13616
|
const [selectedAddressId, setSelectedAddressId] = useState();
|
|
13616
13617
|
const setAddressField = useCallback(
|
|
13617
|
-
({ houseNumberOrName, street }) => {
|
|
13618
|
+
({ houseNumberOrName, street, line1 }) => {
|
|
13618
13619
|
const hasHouseNumber = !!houseNumberOrName;
|
|
13620
|
+
if (!street && line1) return handleChangeFor("address", "input")(line1);
|
|
13619
13621
|
if (hasHouseNumber) {
|
|
13620
13622
|
const isHouseNumberFirst = data.country ? COUNTRIES_WITH_HOUSE_NUMBER_FIRST.includes(data.country) : false;
|
|
13621
13623
|
const needsComma = data.country ? COUNTRIES_WITH_COMMA_SEPARATED.includes(data.country) : false;
|
|
@@ -32875,7 +32877,11 @@ const calculateTaskStatus = ({
|
|
|
32875
32877
|
if (!matchingAccount) throw new Error(`Could not find transfer instrument with id ${id}`);
|
|
32876
32878
|
ignorePendingCapabilities = isInstantVerifiedAccount(matchingAccount);
|
|
32877
32879
|
relevantEntityIds = [id];
|
|
32880
|
+
break;
|
|
32878
32881
|
}
|
|
32882
|
+
case TaskTypes.CUSTOMER_SUPPORT:
|
|
32883
|
+
relevantEntityIds = [rootLegalEntity.id];
|
|
32884
|
+
break;
|
|
32879
32885
|
}
|
|
32880
32886
|
return getRegularTaskStatus({
|
|
32881
32887
|
taskType,
|
|
@@ -32894,6 +32900,11 @@ const splitTaskIdentifier = (taskIdentifier) => {
|
|
|
32894
32900
|
const id = taskIdentifier.slice(firstDashIndex + 1);
|
|
32895
32901
|
return { taskType, id };
|
|
32896
32902
|
};
|
|
32903
|
+
const NEEDS_SUPPORT_DETAILS = [
|
|
32904
|
+
"theCompanyIWorkFor",
|
|
32905
|
+
"mySoleProprietorName",
|
|
32906
|
+
"aTrust"
|
|
32907
|
+
];
|
|
32897
32908
|
const determineTaskIdentifiers = ({
|
|
32898
32909
|
taskTypes: receivedTaskTypes,
|
|
32899
32910
|
rootLegalEntity,
|
|
@@ -32939,6 +32950,9 @@ const determineTaskIdentifiers = ({
|
|
|
32939
32950
|
}
|
|
32940
32951
|
});
|
|
32941
32952
|
}
|
|
32953
|
+
if (accountHolder && NEEDS_SUPPORT_DETAILS.includes(accountHolder)) {
|
|
32954
|
+
tasks.push("CUSTOMER_SUPPORT");
|
|
32955
|
+
}
|
|
32942
32956
|
return tasks;
|
|
32943
32957
|
};
|
|
32944
32958
|
const mapReceivedTaskType = (taskType) => {
|
|
@@ -43818,7 +43832,7 @@ const ConfigurationApiProvider = ({
|
|
|
43818
43832
|
}) => {
|
|
43819
43833
|
const authContext = useAuthContext();
|
|
43820
43834
|
const { isEmbeddedDropin, loadingContext } = authContext;
|
|
43821
|
-
const sdkVersion = "3.43.
|
|
43835
|
+
const sdkVersion = "3.43.3";
|
|
43822
43836
|
useAnalytics({
|
|
43823
43837
|
onUserEvent,
|
|
43824
43838
|
legalEntityId: rootLegalEntityId,
|
|
@@ -44663,7 +44677,7 @@ const DebugModal = ({ rootLegalEntityId, onExit, getRootLegalEntity }) => {
|
|
|
44663
44677
|
const { i18n } = useI18nContext();
|
|
44664
44678
|
const [tab, setTab] = useState("metadata");
|
|
44665
44679
|
const metadata = {
|
|
44666
|
-
sdkVersion: "3.43.
|
|
44680
|
+
sdkVersion: "3.43.3",
|
|
44667
44681
|
locale: i18n.locale,
|
|
44668
44682
|
rootLegalEntityId
|
|
44669
44683
|
};
|
package/dist/style.css
CHANGED
|
@@ -2838,7 +2838,8 @@ fieldset {
|
|
|
2838
2838
|
flex: 1;
|
|
2839
2839
|
}
|
|
2840
2840
|
|
|
2841
|
-
.adyen-layout-xs-only .adyen-kyc-dropin__content-main
|
|
2841
|
+
.adyen-layout-xs-only .adyen-kyc-dropin__content-main,
|
|
2842
|
+
.adyen-layout-xs-only .adyen-kyc-form-with-sidebar {
|
|
2842
2843
|
flex-direction: column;
|
|
2843
2844
|
}.adyen-kyc-expiry-modal__footer {
|
|
2844
2845
|
display: flex;
|