@adyen/kyc-components 3.40.0 → 3.40.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.
@@ -28588,7 +28588,8 @@ const adjustFormData = (oldFormData, newFormData) => (/* @__PURE__ */ new Set([.
28588
28588
  const setRemovedFieldsOnSchemaToDeletedValue = (newData, existingData) => (/* @__PURE__ */ new Set([...keysOf(existingData), ...keysOf(newData)])).keys().reduce((adjusted, formId) => {
28589
28589
  const oldFormData = existingData[formId];
28590
28590
  const newFormData = newData[formId];
28591
- if (isUndefinedOrNull(oldFormData) || isUndefinedOrNull(newFormData)) return adjusted;
28591
+ if (isUndefinedOrNull(oldFormData)) return { ...adjusted, [formId]: newFormData };
28592
+ if (isUndefinedOrNull(newFormData)) return adjusted;
28592
28593
  return { ...adjusted, [formId]: adjustFormData(oldFormData, newFormData) };
28593
28594
  }, {});
28594
28595
  const getRequiredForms = (forms, requiredFields, optionalFields) => {
@@ -45578,7 +45579,7 @@ const ConfigurationApiProvider = ({
45578
45579
  }) => {
45579
45580
  const authContext = useAuthContext();
45580
45581
  const { isEmbeddedDropin, loadingContext } = authContext;
45581
- const sdkVersion = "3.40.0";
45582
+ const sdkVersion = "3.40.1";
45582
45583
  useAnalytics({
45583
45584
  onUserEvent,
45584
45585
  legalEntityId: rootLegalEntityId,
@@ -46257,7 +46258,7 @@ const DebugModal = ({ rootLegalEntityId, onExit, getRootLegalEntity }) => {
46257
46258
  (settingName) => [settingName, getSetting(settingName)]
46258
46259
  );
46259
46260
  const debugModalMetaData = [
46260
- { key: "SDK version", value: "3.40.0", variant: "green" },
46261
+ { key: "SDK version", value: "3.40.1", variant: "green" },
46261
46262
  { key: "rootLegalEntityId", value: rootLegalEntityId, variant: "blue" },
46262
46263
  { key: "Locale", value: i18n.locale, variant: "blue" },
46263
46264
  { key: "Language", value: i18n.languageCode, variant: "blue" },
@@ -46289,7 +46290,7 @@ const DebugModal = ({ rootLegalEntityId, onExit, getRootLegalEntity }) => {
46289
46290
  };
46290
46291
  const copyToClipboard = async () => {
46291
46292
  const toCopy = {
46292
- sdkVersion: "3.40.0",
46293
+ sdkVersion: "3.40.1",
46293
46294
  experiments: Object.fromEntries(allExperimentsWithValues),
46294
46295
  settings: Object.fromEntries(allSettingsWithValues)
46295
46296
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/kyc-components",
3
- "version": "3.40.0",
3
+ "version": "3.40.1",
4
4
  "keywords": [
5
5
  "adyen",
6
6
  "adyen-kyc",