@contentful/experiences-visual-editor-react 3.3.1-dev-20250821T1304-a31a6e8.0 → 3.3.1-dev-20250825T0713-34ae1b3.0

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.
package/dist/renderApp.js CHANGED
@@ -40832,9 +40832,9 @@ var nodeIsSet = nodeUtil && nodeUtil.isSet;
40832
40832
  var isSet$1 = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
40833
40833
 
40834
40834
  /** Used to compose bitmasks for cloning. */
40835
- var CLONE_DEEP_FLAG$1 = 1,
40835
+ var CLONE_DEEP_FLAG$2 = 1,
40836
40836
  CLONE_FLAT_FLAG$1 = 2,
40837
- CLONE_SYMBOLS_FLAG$1 = 4;
40837
+ CLONE_SYMBOLS_FLAG$2 = 4;
40838
40838
 
40839
40839
  /** `Object#toString` result references. */
40840
40840
  var argsTag$1 = '[object Arguments]',
@@ -40899,9 +40899,9 @@ cloneableTags[weakMapTag] = false;
40899
40899
  */
40900
40900
  function baseClone(value, bitmask, customizer, key, object, stack) {
40901
40901
  var result,
40902
- isDeep = bitmask & CLONE_DEEP_FLAG$1,
40902
+ isDeep = bitmask & CLONE_DEEP_FLAG$2,
40903
40903
  isFlat = bitmask & CLONE_FLAT_FLAG$1,
40904
- isFull = bitmask & CLONE_SYMBOLS_FLAG$1;
40904
+ isFull = bitmask & CLONE_SYMBOLS_FLAG$2;
40905
40905
 
40906
40906
  if (customizer) {
40907
40907
  result = object ? customizer(value, key, object, stack) : customizer(value);
@@ -40973,6 +40973,32 @@ function baseClone(value, bitmask, customizer, key, object, stack) {
40973
40973
  return result;
40974
40974
  }
40975
40975
 
40976
+ /** Used to compose bitmasks for cloning. */
40977
+ var CLONE_DEEP_FLAG$1 = 1,
40978
+ CLONE_SYMBOLS_FLAG$1 = 4;
40979
+
40980
+ /**
40981
+ * This method is like `_.clone` except that it recursively clones `value`.
40982
+ *
40983
+ * @static
40984
+ * @memberOf _
40985
+ * @since 1.0.0
40986
+ * @category Lang
40987
+ * @param {*} value The value to recursively clone.
40988
+ * @returns {*} Returns the deep cloned value.
40989
+ * @see _.clone
40990
+ * @example
40991
+ *
40992
+ * var objects = [{ 'a': 1 }, { 'b': 2 }];
40993
+ *
40994
+ * var deep = _.cloneDeep(objects);
40995
+ * console.log(deep[0] === objects[0]);
40996
+ * // => false
40997
+ */
40998
+ function cloneDeep(value) {
40999
+ return baseClone(value, CLONE_DEEP_FLAG$1 | CLONE_SYMBOLS_FLAG$1);
41000
+ }
41001
+
40976
41002
  /** Used to stand-in for `undefined` hash values. */
40977
41003
  var HASH_UNDEFINED = '__lodash_hash_undefined__';
40978
41004
 
@@ -45243,7 +45269,7 @@ const transformRichText = (entryOrAsset, entityStore, path) => {
45243
45269
  // resolve any links to assets/entries/hyperlinks
45244
45270
  // we need to clone, as we want to keep the original Entity in the EntityStore intact,
45245
45271
  // and resolveLinks() is mutating the node object.
45246
- const richTextDocument = structuredClone(value);
45272
+ const richTextDocument = cloneDeep(value);
45247
45273
  resolveLinks(richTextDocument, entityStore);
45248
45274
  return richTextDocument;
45249
45275
  }
@@ -45720,11 +45746,11 @@ let EntityStoreBase$1 = class EntityStoreBase {
45720
45746
  addEntity(entity) {
45721
45747
  if (isAsset$1(entity)) {
45722
45748
  // cloned and frozen
45723
- this.assetMap.set(entity.sys.id, deepFreeze$1(structuredClone(entity)));
45749
+ this.assetMap.set(entity.sys.id, deepFreeze$1(cloneDeep(entity)));
45724
45750
  }
45725
45751
  else if (isEntry$1(entity)) {
45726
45752
  // cloned and frozen
45727
- this.entryMap.set(entity.sys.id, deepFreeze$1(structuredClone(entity)));
45753
+ this.entryMap.set(entity.sys.id, deepFreeze$1(cloneDeep(entity)));
45728
45754
  }
45729
45755
  else {
45730
45756
  throw new Error(`Attempted to add an entity to the store that is neither Asset nor Entry: '${JSON.stringify(entity)}'`);
@@ -49463,11 +49489,11 @@ class EntityStoreBase {
49463
49489
  addEntity(entity) {
49464
49490
  if (isAsset(entity)) {
49465
49491
  // cloned and frozen
49466
- this.assetMap.set(entity.sys.id, deepFreeze(structuredClone(entity)));
49492
+ this.assetMap.set(entity.sys.id, deepFreeze(cloneDeep(entity)));
49467
49493
  }
49468
49494
  else if (isEntry(entity)) {
49469
49495
  // cloned and frozen
49470
- this.entryMap.set(entity.sys.id, deepFreeze(structuredClone(entity)));
49496
+ this.entryMap.set(entity.sys.id, deepFreeze(cloneDeep(entity)));
49471
49497
  }
49472
49498
  else {
49473
49499
  throw new Error(`Attempted to add an entity to the store that is neither Asset nor Entry: '${JSON.stringify(entity)}'`);