@contentful/experiences-visual-editor-react 1.31.1 → 1.32.0-beta.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
@@ -4688,7 +4688,9 @@ const useComponentProps = ({ node, areEntitiesFetched, resolveDesignValue, rende
4688
4688
  };
4689
4689
  const customComponentProps = {
4690
4690
  ...sharedProps,
4691
- isInExpEditorMode: true,
4691
+ // Allows custom components to render differently in the editor. This needs to be activated
4692
+ // through options as the component has to be aware of this prop to not cause any React warnings.
4693
+ ...(options?.enableCustomEditorView ? { isInExpEditorMode: true } : {}),
4692
4694
  ...sanitizeNodeProps(props),
4693
4695
  };
4694
4696
  const structuralOrPatternComponentProps = {