@adyen/kyc-components 3.34.0 → 3.34.1
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.
|
@@ -5258,11 +5258,15 @@ var CompanyTypesValue = /* @__PURE__ */ ((CompanyTypesValue2) => {
|
|
|
5258
5258
|
CompanyTypesValue2["SOLE_PROPRIETORSHIP"] = "soleProprietorship";
|
|
5259
5259
|
return CompanyTypesValue2;
|
|
5260
5260
|
})(CompanyTypesValue || {});
|
|
5261
|
-
const isEmpty = (obj) => {
|
|
5262
|
-
if (
|
|
5263
|
-
if (
|
|
5264
|
-
|
|
5265
|
-
return
|
|
5261
|
+
const isEmpty = (obj, ignoreEmptyProperties = true) => {
|
|
5262
|
+
if (obj === null || obj === void 0) return true;
|
|
5263
|
+
if (Array.isArray(obj)) return obj.length === 0;
|
|
5264
|
+
if (typeof obj !== "object") return false;
|
|
5265
|
+
return keysOf(obj).every(
|
|
5266
|
+
(key) => !Object.hasOwn(obj, key) || // if it's an inherited property, we don't care
|
|
5267
|
+
ignoreEmptyProperties && isEmpty(obj[key], true)
|
|
5268
|
+
// or if the property is itself empty
|
|
5269
|
+
);
|
|
5266
5270
|
};
|
|
5267
5271
|
const makeArrayOfRepeatedObjects = (length, obj) => {
|
|
5268
5272
|
const array = [];
|
|
@@ -15030,7 +15034,7 @@ const mapCompanyToLegalEntity = (data) => {
|
|
|
15030
15034
|
data.companyNameAndCountry,
|
|
15031
15035
|
requestObj.organization
|
|
15032
15036
|
);
|
|
15033
|
-
if (data.companyFinancialInformation) {
|
|
15037
|
+
if (!isEmpty(data.companyFinancialInformation)) {
|
|
15034
15038
|
requestObj.organization.financialReports = [
|
|
15035
15039
|
formatObject(
|
|
15036
15040
|
data.companyFinancialInformation,
|
|
@@ -41616,7 +41620,7 @@ const ConfigurationApiProvider = ({
|
|
|
41616
41620
|
}) => {
|
|
41617
41621
|
const authContext = useAuthContext();
|
|
41618
41622
|
const { isEmbeddedDropin, loadingContext } = authContext;
|
|
41619
|
-
const sdkVersion = "3.34.
|
|
41623
|
+
const sdkVersion = "3.34.1";
|
|
41620
41624
|
useAnalytics({
|
|
41621
41625
|
onUserEvent,
|
|
41622
41626
|
legalEntityId: rootLegalEntityId,
|
|
@@ -42247,7 +42251,7 @@ const DebugModal = ({ rootLegalEntityId, onExit, getRootLegalEntity }) => {
|
|
|
42247
42251
|
};
|
|
42248
42252
|
const copyToClipboard = async () => {
|
|
42249
42253
|
const toCopy = {
|
|
42250
|
-
sdkVersion: "3.34.
|
|
42254
|
+
sdkVersion: "3.34.1",
|
|
42251
42255
|
experiments: Object.fromEntries(allExperimentsWithValues),
|
|
42252
42256
|
settings: Object.fromEntries(allSettingsWithValues)
|
|
42253
42257
|
};
|
|
@@ -42273,7 +42277,7 @@ const DebugModal = ({ rootLegalEntityId, onExit, getRootLegalEntity }) => {
|
|
|
42273
42277
|
/* @__PURE__ */ jsxs("div", { className: "adyen-kyc-debug-modal__meta", children: [
|
|
42274
42278
|
/* @__PURE__ */ jsxs("span", { children: [
|
|
42275
42279
|
"SDK version: ",
|
|
42276
|
-
"3.34.
|
|
42280
|
+
"3.34.1"
|
|
42277
42281
|
] }),
|
|
42278
42282
|
/* @__PURE__ */ jsxs("span", { children: [
|
|
42279
42283
|
"rootLegalEntityId: ",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const isEmpty: (obj:
|
|
1
|
+
export declare const isEmpty: (obj: unknown | unknown[], ignoreEmptyProperties?: boolean) => boolean;
|