@contentful/experiences-visual-editor-react 1.40.0-alpha-20250626T1127-cab6b9d.0 → 1.40.0-alpha-20250702T0805-d0f2745.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 +8 -1
- package/dist/index.js.map +1 -1
- package/dist/renderApp.js +8 -1
- package/dist/renderApp.js.map +1 -1
- package/package.json +4 -4
package/dist/renderApp.js
CHANGED
|
@@ -45812,7 +45812,14 @@ function buildTemplate({ template, context, }) {
|
|
|
45812
45812
|
|
|
45813
45813
|
const stylesToKeep = ['cfImageAsset'];
|
|
45814
45814
|
const stylesToRemove = CF_STYLE_ATTRIBUTES.filter((style) => !stylesToKeep.includes(style));
|
|
45815
|
-
|
|
45815
|
+
// cfWrapColumns & cfWrapColumnsCount are no real style attributes as they are handled on the editor side
|
|
45816
|
+
const propsToRemove = [
|
|
45817
|
+
'cfHyperlink',
|
|
45818
|
+
'cfOpenInNewTab',
|
|
45819
|
+
'cfSsrClassName',
|
|
45820
|
+
'cfWrapColumns',
|
|
45821
|
+
'cfWrapColumnsCount',
|
|
45822
|
+
];
|
|
45816
45823
|
const sanitizeNodeProps = (nodeProps) => {
|
|
45817
45824
|
return omit(nodeProps, stylesToRemove, propsToRemove);
|
|
45818
45825
|
};
|