@contentful/experiences-visual-editor-react 1.23.0 → 1.24.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 +2 -1
- package/dist/index.js.map +1 -1
- package/dist/renderApp.js +2 -1
- package/dist/renderApp.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -4616,11 +4616,12 @@ const useComponent = ({ node, resolveDesignValue, renderDropzone, userIsDragging
|
|
|
4616
4616
|
return React.createElement(MissingComponentPlacehoder, { blockId: node.data.blockId });
|
|
4617
4617
|
}
|
|
4618
4618
|
const { dragProps = {} } = props || {};
|
|
4619
|
-
const { editorMode:
|
|
4619
|
+
const { editorMode: isInExpEditorMode, renderDropzone: _renderDropzone, node: _node, ...customComponentProps } = componentProps;
|
|
4620
4620
|
const modifiedProps = isStructureComponent || isPatternNode ? componentProps : customComponentProps;
|
|
4621
4621
|
const element = React.createElement(ImportedComponentErrorBoundary, { componentId: node.data.blockId }, React.createElement(componentRegistration.component, {
|
|
4622
4622
|
...modifiedProps,
|
|
4623
4623
|
dragProps,
|
|
4624
|
+
isInExpEditorMode,
|
|
4624
4625
|
}));
|
|
4625
4626
|
if (!requiresDragWrapper) {
|
|
4626
4627
|
return element;
|