@adyen/kyc-components 2.61.1 → 2.61.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.
|
@@ -3747,11 +3747,11 @@ const Field = ({
|
|
|
3747
3747
|
const returnValue = typeof errorMessage === "string" && errorMessage || "invalid";
|
|
3748
3748
|
userEvents.addFieldEvent("Encountered error", {
|
|
3749
3749
|
actionType: "input",
|
|
3750
|
-
field:
|
|
3750
|
+
field: name,
|
|
3751
3751
|
returnType: "validation",
|
|
3752
3752
|
returnValue
|
|
3753
3753
|
});
|
|
3754
|
-
}, [
|
|
3754
|
+
}, [name, errorMessage]);
|
|
3755
3755
|
return /* @__PURE__ */ jsx(
|
|
3756
3756
|
"div",
|
|
3757
3757
|
{
|
|
@@ -4035,12 +4035,11 @@ function Checkbox({
|
|
|
4035
4035
|
enableTracking = false,
|
|
4036
4036
|
...props
|
|
4037
4037
|
}) {
|
|
4038
|
-
const field = typeof label === "string" ? label : props.name;
|
|
4039
4038
|
const handleChange = (newValue) => {
|
|
4040
4039
|
if (enableTracking) {
|
|
4041
4040
|
userEvents.addFieldEvent("Interacted with form field", {
|
|
4042
4041
|
actionType: "input",
|
|
4043
|
-
field,
|
|
4042
|
+
field: props.name,
|
|
4044
4043
|
returnValue: String(newValue)
|
|
4045
4044
|
});
|
|
4046
4045
|
}
|
|
@@ -9685,9 +9684,8 @@ function TaxInformationField({
|
|
|
9685
9684
|
);
|
|
9686
9685
|
useEffect(() => {
|
|
9687
9686
|
const hasSavedTaxId = defaultData == null ? void 0 : defaultData.find((taxId) => taxId.country === country);
|
|
9688
|
-
if (currentCountryTaxInformation
|
|
9689
|
-
|
|
9690
|
-
}
|
|
9687
|
+
if ((currentCountryTaxInformation == null ? void 0 : currentCountryTaxInformation.country) === country) return;
|
|
9688
|
+
if (currentCountryTaxInformation && !hasSavedTaxId) return;
|
|
9691
9689
|
handleChangeFor("taxInformation", "input")(defaultData);
|
|
9692
9690
|
}, [country]);
|
|
9693
9691
|
const showTaxIdExemptedOptions = canExempt && (((_a = getTaxIdNumberOptions(country, companyType)) == null ? void 0 : _a.length) ?? 0) > 1;
|
|
@@ -11011,7 +11009,7 @@ const isExistingFile = (file) => "existing" in file && file.existing;
|
|
|
11011
11009
|
const isNewlyUploadedFile = (file) => !isExistingFile(file);
|
|
11012
11010
|
function DropzoneFile(props) {
|
|
11013
11011
|
var _a;
|
|
11014
|
-
const {
|
|
11012
|
+
const { file, errorMessage, onDelete } = props;
|
|
11015
11013
|
const { i18n } = useI18nContext();
|
|
11016
11014
|
let documentIcon;
|
|
11017
11015
|
const formatSize = (bytes) => {
|
|
@@ -11032,11 +11030,11 @@ function DropzoneFile(props) {
|
|
|
11032
11030
|
if (!errorMessage) return;
|
|
11033
11031
|
userEvents.addFieldEvent("Encountered error", {
|
|
11034
11032
|
actionType: "change",
|
|
11035
|
-
field:
|
|
11033
|
+
field: "dropzone file",
|
|
11036
11034
|
returnType: "validation",
|
|
11037
11035
|
returnValue: errorMessage
|
|
11038
11036
|
});
|
|
11039
|
-
}, [
|
|
11037
|
+
}, [errorMessage]);
|
|
11040
11038
|
return /* @__PURE__ */ jsxs(
|
|
11041
11039
|
"div",
|
|
11042
11040
|
{
|
|
@@ -11228,7 +11226,7 @@ function Dropzone(props) {
|
|
|
11228
11226
|
if (enableTracking) {
|
|
11229
11227
|
userEvents.addFieldEvent("Interacted with form field", {
|
|
11230
11228
|
actionType: "change",
|
|
11231
|
-
field:
|
|
11229
|
+
field: name || "file picker"
|
|
11232
11230
|
});
|
|
11233
11231
|
}
|
|
11234
11232
|
const currentFiles = (data == null ? void 0 : data[name]) || [];
|
|
@@ -11266,7 +11264,6 @@ function Dropzone(props) {
|
|
|
11266
11264
|
return /* @__PURE__ */ jsx(
|
|
11267
11265
|
DropzoneFile,
|
|
11268
11266
|
{
|
|
11269
|
-
label,
|
|
11270
11267
|
file,
|
|
11271
11268
|
onDelete: () => handleFileDelete(file),
|
|
11272
11269
|
errorMessage: (_a2 = errors == null ? void 0 : errors[name]) == null ? void 0 : _a2.errorMessage
|
|
@@ -19138,6 +19135,7 @@ function FilePicker({
|
|
|
19138
19135
|
errorMessage,
|
|
19139
19136
|
multiple = false,
|
|
19140
19137
|
label,
|
|
19138
|
+
name,
|
|
19141
19139
|
iconPrefix = "generic-document",
|
|
19142
19140
|
enableTracking = false,
|
|
19143
19141
|
// file validation options
|
|
@@ -19184,7 +19182,7 @@ function FilePicker({
|
|
|
19184
19182
|
if (enableTracking) {
|
|
19185
19183
|
userEvents.addFieldEvent("Interacted with form field", {
|
|
19186
19184
|
actionType: "change",
|
|
19187
|
-
field:
|
|
19185
|
+
field: name || "dropzone"
|
|
19188
19186
|
});
|
|
19189
19187
|
}
|
|
19190
19188
|
setFiles([...newFiles, ...files]);
|
|
@@ -19203,7 +19201,6 @@ function FilePicker({
|
|
|
19203
19201
|
files.map((file) => /* @__PURE__ */ jsx(
|
|
19204
19202
|
DropzoneFile,
|
|
19205
19203
|
{
|
|
19206
|
-
label,
|
|
19207
19204
|
file,
|
|
19208
19205
|
onDelete: () => handleFileDelete(file),
|
|
19209
19206
|
errorMessage,
|
|
@@ -19573,6 +19570,7 @@ function BankDocument(props) {
|
|
|
19573
19570
|
FilePicker,
|
|
19574
19571
|
{
|
|
19575
19572
|
...childProps,
|
|
19573
|
+
name: "bankStatementDocument",
|
|
19576
19574
|
files: data.bankStatementDocument ?? [],
|
|
19577
19575
|
setFiles: handleChangeFor("bankStatementDocument"),
|
|
19578
19576
|
isValid: valid.bankStatementDocument ?? isBankStatementOptional,
|
|
@@ -30818,7 +30816,7 @@ const DecisionMakersComponent = ({
|
|
|
30818
30816
|
task: TaskTypes.DECISION_MAKER_OVERVIEW,
|
|
30819
30817
|
actionLevel: "task",
|
|
30820
30818
|
actionType: "alert",
|
|
30821
|
-
label:
|
|
30819
|
+
label: "missingDecisionMaker"
|
|
30822
30820
|
});
|
|
30823
30821
|
}
|
|
30824
30822
|
}, [remediationMessages.DECISION_MAKER, showWarning]);
|
|
@@ -31851,7 +31849,7 @@ function TaskListComponent({
|
|
|
31851
31849
|
task: TaskTypes.TASKS_OVERVIEW,
|
|
31852
31850
|
actionLevel: "task",
|
|
31853
31851
|
actionType: "alert",
|
|
31854
|
-
label:
|
|
31852
|
+
label: "missingDecisionMaker"
|
|
31855
31853
|
});
|
|
31856
31854
|
}
|
|
31857
31855
|
}, [showDecisionMakersWarning]);
|
|
@@ -32781,7 +32779,7 @@ function IndividualDropinComponent({
|
|
|
32781
32779
|
legalEntityId: updatedLegalEntity.id,
|
|
32782
32780
|
entityType: updatedLegalEntity.type,
|
|
32783
32781
|
countryOfRegistration: ((_c2 = dataSubmitted.personalDetails) == null ? void 0 : _c2.residencyCountry) || null,
|
|
32784
|
-
|
|
32782
|
+
documentType: idDocumentType || null
|
|
32785
32783
|
});
|
|
32786
32784
|
}
|
|
32787
32785
|
return updatedLegalEntity;
|
|
@@ -32893,7 +32891,7 @@ function IndividualDropinComponent({
|
|
|
32893
32891
|
actionLevel: "task",
|
|
32894
32892
|
actionType: "submit",
|
|
32895
32893
|
countryOfRegistration: ((_b2 = dataSubmitted == null ? void 0 : dataSubmitted.personalDetails) == null ? void 0 : _b2.residencyCountry) || null,
|
|
32896
|
-
|
|
32894
|
+
documentType: idDocumentType || null
|
|
32897
32895
|
});
|
|
32898
32896
|
legalEntity.entityAssociations = filterOutUnwantedAssociationsIfRootLE(
|
|
32899
32897
|
taskType,
|
|
@@ -39681,7 +39679,7 @@ const ConfigurationApiProvider = ({
|
|
|
39681
39679
|
}) => {
|
|
39682
39680
|
const authContext = useAuthContext();
|
|
39683
39681
|
const { isEmbeddedDropin, loadingContext } = authContext;
|
|
39684
|
-
const sdkVersion = "2.61.
|
|
39682
|
+
const sdkVersion = "2.61.3";
|
|
39685
39683
|
useAnalytics({
|
|
39686
39684
|
onUserEvent,
|
|
39687
39685
|
legalEntityId: rootLegalEntityId,
|
|
@@ -40354,7 +40352,7 @@ const DebugModal = ({ rootLegalEntityId, onExit, getRootLegalEntity }) => {
|
|
|
40354
40352
|
};
|
|
40355
40353
|
const copyToClipboard = async () => {
|
|
40356
40354
|
const toCopy = {
|
|
40357
|
-
sdkVersion: "2.61.
|
|
40355
|
+
sdkVersion: "2.61.3",
|
|
40358
40356
|
experiments: Object.fromEntries(allExperimentsWithValues),
|
|
40359
40357
|
settings: Object.fromEntries(allSettingsWithValues)
|
|
40360
40358
|
};
|
|
@@ -40419,7 +40417,7 @@ const DebugModal = ({ rootLegalEntityId, onExit, getRootLegalEntity }) => {
|
|
|
40419
40417
|
/* @__PURE__ */ jsx("div", { className: "adyen-kyc-debug-modal__meta", children: /* @__PURE__ */ jsx("table", { children: /* @__PURE__ */ jsxs("tbody", { children: [
|
|
40420
40418
|
/* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsxs("td", { children: [
|
|
40421
40419
|
/* @__PURE__ */ jsx("span", { className: "adyen-kyc-debug-modal__table-key", children: "SDK version" }),
|
|
40422
|
-
/* @__PURE__ */ jsx(Tag, { variant: "green", className: "adyen-kyc-tag--large", children: "2.61.
|
|
40420
|
+
/* @__PURE__ */ jsx(Tag, { variant: "green", className: "adyen-kyc-tag--large", children: "2.61.3" })
|
|
40423
40421
|
] }) }),
|
|
40424
40422
|
/* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsxs("td", { children: [
|
|
40425
40423
|
/* @__PURE__ */ jsx("span", { className: "adyen-kyc-debug-modal__table-key", children: "rootLegalEntityId" }),
|
|
@@ -10,7 +10,8 @@ export interface FilePickerProps extends FileValidationOptions {
|
|
|
10
10
|
errorMessage?: TranslationKey;
|
|
11
11
|
multiple?: boolean;
|
|
12
12
|
label?: string;
|
|
13
|
+
name: string;
|
|
13
14
|
iconPrefix?: string;
|
|
14
15
|
enableTracking?: boolean;
|
|
15
16
|
}
|
|
16
|
-
export declare function FilePicker({ files, setFiles, isValid, errorMessage, multiple, label, iconPrefix, enableTracking, allowedFileTypes, maxSize, isOptional, maxNumberOfFiles, }: FilePickerProps): JSX.Element;
|
|
17
|
+
export declare function FilePicker({ files, setFiles, isValid, errorMessage, multiple, label, name, iconPrefix, enableTracking, allowedFileTypes, maxSize, isOptional, maxNumberOfFiles, }: FilePickerProps): JSX.Element;
|