@contentful/experiences-visual-editor-react 3.5.0-dev-20250902T1514-0e19e78.0 → 3.6.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 +6 -3
- package/dist/index.js.map +1 -1
- package/dist/renderApp.js +6 -3
- package/dist/renderApp.js.map +1 -1
- package/package.json +4 -4
package/dist/renderApp.js
CHANGED
|
@@ -50346,9 +50346,10 @@ const useComponentProps = ({ node, entityStore, areEntitiesFetched, resolveDesig
|
|
|
50346
50346
|
className: props.cfSsrClassName ?? cfCsrClassName,
|
|
50347
50347
|
};
|
|
50348
50348
|
return {
|
|
50349
|
-
...sharedProps,
|
|
50350
|
-
...editorProps,
|
|
50351
50349
|
...sanitizeNodeProps(props),
|
|
50350
|
+
// Add those at last to not let them get overwritten by custom properties
|
|
50351
|
+
...editorProps,
|
|
50352
|
+
...sharedProps,
|
|
50352
50353
|
};
|
|
50353
50354
|
}, [cfCsrClassName, editorProps, node, props]);
|
|
50354
50355
|
return { componentProps };
|
|
@@ -50392,7 +50393,9 @@ const RegistrationComponent = ({ node, resolveDesignValue, componentRegistration
|
|
|
50392
50393
|
entityStore,
|
|
50393
50394
|
areEntitiesFetched,
|
|
50394
50395
|
});
|
|
50395
|
-
return React$1.createElement(ImportedComponentErrorBoundary, { componentId: node.data.blockId }, React$1.createElement(componentRegistration.component, { ...componentProps, ...slotNodes },
|
|
50396
|
+
return React$1.createElement(ImportedComponentErrorBoundary, { componentId: node.data.blockId }, React$1.createElement(componentRegistration.component, { ...componentProps, ...slotNodes },
|
|
50397
|
+
// If there are no children, a custom property called `children` can be passed through to the custom component
|
|
50398
|
+
...(children ?? [])));
|
|
50396
50399
|
};
|
|
50397
50400
|
|
|
50398
50401
|
var css_248z$1 = ".EmptyCanvasMessage-module_empty-canvas-container__7K-0l {\n height: 200px;\n display: flex;\n width: 100%;\n align-items: center;\n justify-content: center;\n flex-direction: row;\n transition: all 0.2s;\n color: var(--exp-builder-gray400);\n font-size: var(--exp-builder-font-size-l);\n font-family: var(--exp-builder-font-stack-primary);\n outline: 2px dashed var(--exp-builder-gray400);\n outline-offset: -2px;\n}\n\n.EmptyCanvasMessage-module_empty-canvas-icon__EztFr rect {\n fill: var(--exp-builder-gray400);\n}\n\n.EmptyCanvasMessage-module_empty-canvas-label__cbIrR {\n margin-left: var(--exp-builder-spacing-s);\n}\n";
|