@adyen/kyc-components 2.61.1 → 2.61.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.
|
@@ -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
|
}
|
|
@@ -11011,7 +11010,7 @@ const isExistingFile = (file) => "existing" in file && file.existing;
|
|
|
11011
11010
|
const isNewlyUploadedFile = (file) => !isExistingFile(file);
|
|
11012
11011
|
function DropzoneFile(props) {
|
|
11013
11012
|
var _a;
|
|
11014
|
-
const {
|
|
11013
|
+
const { file, errorMessage, onDelete } = props;
|
|
11015
11014
|
const { i18n } = useI18nContext();
|
|
11016
11015
|
let documentIcon;
|
|
11017
11016
|
const formatSize = (bytes) => {
|
|
@@ -11032,11 +11031,11 @@ function DropzoneFile(props) {
|
|
|
11032
11031
|
if (!errorMessage) return;
|
|
11033
11032
|
userEvents.addFieldEvent("Encountered error", {
|
|
11034
11033
|
actionType: "change",
|
|
11035
|
-
field:
|
|
11034
|
+
field: "dropzone file",
|
|
11036
11035
|
returnType: "validation",
|
|
11037
11036
|
returnValue: errorMessage
|
|
11038
11037
|
});
|
|
11039
|
-
}, [
|
|
11038
|
+
}, [errorMessage]);
|
|
11040
11039
|
return /* @__PURE__ */ jsxs(
|
|
11041
11040
|
"div",
|
|
11042
11041
|
{
|
|
@@ -11228,7 +11227,7 @@ function Dropzone(props) {
|
|
|
11228
11227
|
if (enableTracking) {
|
|
11229
11228
|
userEvents.addFieldEvent("Interacted with form field", {
|
|
11230
11229
|
actionType: "change",
|
|
11231
|
-
field:
|
|
11230
|
+
field: name || "file picker"
|
|
11232
11231
|
});
|
|
11233
11232
|
}
|
|
11234
11233
|
const currentFiles = (data == null ? void 0 : data[name]) || [];
|
|
@@ -11266,7 +11265,6 @@ function Dropzone(props) {
|
|
|
11266
11265
|
return /* @__PURE__ */ jsx(
|
|
11267
11266
|
DropzoneFile,
|
|
11268
11267
|
{
|
|
11269
|
-
label,
|
|
11270
11268
|
file,
|
|
11271
11269
|
onDelete: () => handleFileDelete(file),
|
|
11272
11270
|
errorMessage: (_a2 = errors == null ? void 0 : errors[name]) == null ? void 0 : _a2.errorMessage
|
|
@@ -19138,6 +19136,7 @@ function FilePicker({
|
|
|
19138
19136
|
errorMessage,
|
|
19139
19137
|
multiple = false,
|
|
19140
19138
|
label,
|
|
19139
|
+
name,
|
|
19141
19140
|
iconPrefix = "generic-document",
|
|
19142
19141
|
enableTracking = false,
|
|
19143
19142
|
// file validation options
|
|
@@ -19184,7 +19183,7 @@ function FilePicker({
|
|
|
19184
19183
|
if (enableTracking) {
|
|
19185
19184
|
userEvents.addFieldEvent("Interacted with form field", {
|
|
19186
19185
|
actionType: "change",
|
|
19187
|
-
field:
|
|
19186
|
+
field: name || "dropzone"
|
|
19188
19187
|
});
|
|
19189
19188
|
}
|
|
19190
19189
|
setFiles([...newFiles, ...files]);
|
|
@@ -19203,7 +19202,6 @@ function FilePicker({
|
|
|
19203
19202
|
files.map((file) => /* @__PURE__ */ jsx(
|
|
19204
19203
|
DropzoneFile,
|
|
19205
19204
|
{
|
|
19206
|
-
label,
|
|
19207
19205
|
file,
|
|
19208
19206
|
onDelete: () => handleFileDelete(file),
|
|
19209
19207
|
errorMessage,
|
|
@@ -19573,6 +19571,7 @@ function BankDocument(props) {
|
|
|
19573
19571
|
FilePicker,
|
|
19574
19572
|
{
|
|
19575
19573
|
...childProps,
|
|
19574
|
+
name: "bankStatementDocument",
|
|
19576
19575
|
files: data.bankStatementDocument ?? [],
|
|
19577
19576
|
setFiles: handleChangeFor("bankStatementDocument"),
|
|
19578
19577
|
isValid: valid.bankStatementDocument ?? isBankStatementOptional,
|
|
@@ -30818,7 +30817,7 @@ const DecisionMakersComponent = ({
|
|
|
30818
30817
|
task: TaskTypes.DECISION_MAKER_OVERVIEW,
|
|
30819
30818
|
actionLevel: "task",
|
|
30820
30819
|
actionType: "alert",
|
|
30821
|
-
label:
|
|
30820
|
+
label: "missingDecisionMaker"
|
|
30822
30821
|
});
|
|
30823
30822
|
}
|
|
30824
30823
|
}, [remediationMessages.DECISION_MAKER, showWarning]);
|
|
@@ -31851,7 +31850,7 @@ function TaskListComponent({
|
|
|
31851
31850
|
task: TaskTypes.TASKS_OVERVIEW,
|
|
31852
31851
|
actionLevel: "task",
|
|
31853
31852
|
actionType: "alert",
|
|
31854
|
-
label:
|
|
31853
|
+
label: "missingDecisionMaker"
|
|
31855
31854
|
});
|
|
31856
31855
|
}
|
|
31857
31856
|
}, [showDecisionMakersWarning]);
|
|
@@ -32781,7 +32780,7 @@ function IndividualDropinComponent({
|
|
|
32781
32780
|
legalEntityId: updatedLegalEntity.id,
|
|
32782
32781
|
entityType: updatedLegalEntity.type,
|
|
32783
32782
|
countryOfRegistration: ((_c2 = dataSubmitted.personalDetails) == null ? void 0 : _c2.residencyCountry) || null,
|
|
32784
|
-
|
|
32783
|
+
documentType: idDocumentType || null
|
|
32785
32784
|
});
|
|
32786
32785
|
}
|
|
32787
32786
|
return updatedLegalEntity;
|
|
@@ -32893,7 +32892,7 @@ function IndividualDropinComponent({
|
|
|
32893
32892
|
actionLevel: "task",
|
|
32894
32893
|
actionType: "submit",
|
|
32895
32894
|
countryOfRegistration: ((_b2 = dataSubmitted == null ? void 0 : dataSubmitted.personalDetails) == null ? void 0 : _b2.residencyCountry) || null,
|
|
32896
|
-
|
|
32895
|
+
documentType: idDocumentType || null
|
|
32897
32896
|
});
|
|
32898
32897
|
legalEntity.entityAssociations = filterOutUnwantedAssociationsIfRootLE(
|
|
32899
32898
|
taskType,
|
|
@@ -39681,7 +39680,7 @@ const ConfigurationApiProvider = ({
|
|
|
39681
39680
|
}) => {
|
|
39682
39681
|
const authContext = useAuthContext();
|
|
39683
39682
|
const { isEmbeddedDropin, loadingContext } = authContext;
|
|
39684
|
-
const sdkVersion = "2.61.
|
|
39683
|
+
const sdkVersion = "2.61.2";
|
|
39685
39684
|
useAnalytics({
|
|
39686
39685
|
onUserEvent,
|
|
39687
39686
|
legalEntityId: rootLegalEntityId,
|
|
@@ -40354,7 +40353,7 @@ const DebugModal = ({ rootLegalEntityId, onExit, getRootLegalEntity }) => {
|
|
|
40354
40353
|
};
|
|
40355
40354
|
const copyToClipboard = async () => {
|
|
40356
40355
|
const toCopy = {
|
|
40357
|
-
sdkVersion: "2.61.
|
|
40356
|
+
sdkVersion: "2.61.2",
|
|
40358
40357
|
experiments: Object.fromEntries(allExperimentsWithValues),
|
|
40359
40358
|
settings: Object.fromEntries(allSettingsWithValues)
|
|
40360
40359
|
};
|
|
@@ -40419,7 +40418,7 @@ const DebugModal = ({ rootLegalEntityId, onExit, getRootLegalEntity }) => {
|
|
|
40419
40418
|
/* @__PURE__ */ jsx("div", { className: "adyen-kyc-debug-modal__meta", children: /* @__PURE__ */ jsx("table", { children: /* @__PURE__ */ jsxs("tbody", { children: [
|
|
40420
40419
|
/* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsxs("td", { children: [
|
|
40421
40420
|
/* @__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.
|
|
40421
|
+
/* @__PURE__ */ jsx(Tag, { variant: "green", className: "adyen-kyc-tag--large", children: "2.61.2" })
|
|
40423
40422
|
] }) }),
|
|
40424
40423
|
/* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsxs("td", { children: [
|
|
40425
40424
|
/* @__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;
|