@adyen/kyc-components 3.41.6 → 3.41.8
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.
|
@@ -22596,7 +22596,7 @@ function PayoutAccount(props) {
|
|
|
22596
22596
|
const { data, valid, errors, schema } = useForm({
|
|
22597
22597
|
...props,
|
|
22598
22598
|
defaultData: props.data,
|
|
22599
|
-
schema:
|
|
22599
|
+
schema: ["accountHolder"],
|
|
22600
22600
|
rules: props.validators,
|
|
22601
22601
|
fieldProblems: props == null ? void 0 : props.fieldValidationErrors
|
|
22602
22602
|
});
|
|
@@ -32733,11 +32733,13 @@ const calculateTaskStatus = ({
|
|
|
32733
32733
|
});
|
|
32734
32734
|
};
|
|
32735
32735
|
const splitTaskIdentifier = (taskIdentifier) => {
|
|
32736
|
-
|
|
32737
|
-
|
|
32738
|
-
return { taskType
|
|
32736
|
+
const firstDashIndex = taskIdentifier.indexOf("-");
|
|
32737
|
+
if (firstDashIndex === -1) {
|
|
32738
|
+
return { taskType: taskIdentifier };
|
|
32739
32739
|
}
|
|
32740
|
-
|
|
32740
|
+
const taskType = taskIdentifier.slice(0, firstDashIndex);
|
|
32741
|
+
const id = taskIdentifier.slice(firstDashIndex + 1);
|
|
32742
|
+
return { taskType, id };
|
|
32741
32743
|
};
|
|
32742
32744
|
const determineTaskIdentifiers = ({
|
|
32743
32745
|
taskTypes: receivedTaskTypes,
|
|
@@ -32817,16 +32819,20 @@ const computed = dist.createComputed(
|
|
|
32817
32819
|
trustMembers
|
|
32818
32820
|
});
|
|
32819
32821
|
const taskStatuses = tasks.reduce((acc, taskIdentifier) => {
|
|
32820
|
-
|
|
32821
|
-
taskIdentifier
|
|
32822
|
-
|
|
32823
|
-
|
|
32824
|
-
|
|
32825
|
-
|
|
32826
|
-
|
|
32827
|
-
|
|
32828
|
-
|
|
32829
|
-
|
|
32822
|
+
try {
|
|
32823
|
+
acc[taskIdentifier] = calculateTaskStatus({
|
|
32824
|
+
taskIdentifier,
|
|
32825
|
+
// we know that neither `rootLegalEntity` nor `capabilityProblems` are undefined if there are tasks
|
|
32826
|
+
accountHolder,
|
|
32827
|
+
capabilityProblems,
|
|
32828
|
+
rootLegalEntity,
|
|
32829
|
+
legalRepresentative,
|
|
32830
|
+
trustMembers,
|
|
32831
|
+
transferInstruments
|
|
32832
|
+
});
|
|
32833
|
+
} catch (err) {
|
|
32834
|
+
logger$r.error(`Could not calculate task status for ${taskIdentifier}. `, err);
|
|
32835
|
+
}
|
|
32830
32836
|
return acc;
|
|
32831
32837
|
}, {});
|
|
32832
32838
|
return {
|
|
@@ -43649,7 +43655,7 @@ const ConfigurationApiProvider = ({
|
|
|
43649
43655
|
}) => {
|
|
43650
43656
|
const authContext = useAuthContext();
|
|
43651
43657
|
const { isEmbeddedDropin, loadingContext } = authContext;
|
|
43652
|
-
const sdkVersion = "3.41.
|
|
43658
|
+
const sdkVersion = "3.41.8";
|
|
43653
43659
|
useAnalytics({
|
|
43654
43660
|
onUserEvent,
|
|
43655
43661
|
legalEntityId: rootLegalEntityId,
|
|
@@ -44490,7 +44496,7 @@ const DebugModal = ({ rootLegalEntityId, onExit, getRootLegalEntity }) => {
|
|
|
44490
44496
|
const { i18n } = useI18nContext();
|
|
44491
44497
|
const [tab, setTab] = useState("metadata");
|
|
44492
44498
|
const metadata = {
|
|
44493
|
-
sdkVersion: "3.41.
|
|
44499
|
+
sdkVersion: "3.41.8",
|
|
44494
44500
|
locale: i18n.locale,
|
|
44495
44501
|
rootLegalEntityId
|
|
44496
44502
|
};
|