@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/renderApp.js
CHANGED
|
@@ -58403,11 +58403,12 @@ const useComponent = ({ node, resolveDesignValue, renderDropzone, userIsDragging
|
|
|
58403
58403
|
return React.createElement(MissingComponentPlacehoder, { blockId: node.data.blockId });
|
|
58404
58404
|
}
|
|
58405
58405
|
const { dragProps = {} } = props || {};
|
|
58406
|
-
const { editorMode:
|
|
58406
|
+
const { editorMode: isInExpEditorMode, renderDropzone: _renderDropzone, node: _node, ...customComponentProps } = componentProps;
|
|
58407
58407
|
const modifiedProps = isStructureComponent || isPatternNode ? componentProps : customComponentProps;
|
|
58408
58408
|
const element = React.createElement(ImportedComponentErrorBoundary, { componentId: node.data.blockId }, React.createElement(componentRegistration.component, {
|
|
58409
58409
|
...modifiedProps,
|
|
58410
58410
|
dragProps,
|
|
58411
|
+
isInExpEditorMode,
|
|
58411
58412
|
}));
|
|
58412
58413
|
if (!requiresDragWrapper) {
|
|
58413
58414
|
return element;
|