@contentful/experiences-components-react 3.3.0 → 3.3.1-dev-20250825T0658-5f2fae7.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/index.js CHANGED
@@ -3,7 +3,7 @@ import React, { forwardRef } from 'react';
3
3
  import { documentToReactComponents } from '@contentful/rich-text-react-renderer';
4
4
  import { BLOCKS } from '@contentful/rich-text-types';
5
5
  import { z } from 'zod';
6
- import 'lodash-es';
6
+ import { cloneDeep } from 'lodash-es';
7
7
  import 'md5';
8
8
  import { create } from 'zustand';
9
9
 
@@ -1910,11 +1910,11 @@ class EntityStoreBase {
1910
1910
  addEntity(entity) {
1911
1911
  if (isAsset(entity)) {
1912
1912
  // cloned and frozen
1913
- this.assetMap.set(entity.sys.id, deepFreeze(structuredClone(entity)));
1913
+ this.assetMap.set(entity.sys.id, deepFreeze(cloneDeep(entity)));
1914
1914
  }
1915
1915
  else if (isEntry(entity)) {
1916
1916
  // cloned and frozen
1917
- this.entryMap.set(entity.sys.id, deepFreeze(structuredClone(entity)));
1917
+ this.entryMap.set(entity.sys.id, deepFreeze(cloneDeep(entity)));
1918
1918
  }
1919
1919
  else {
1920
1920
  throw new Error(`Attempted to add an entity to the store that is neither Asset nor Entry: '${JSON.stringify(entity)}'`);