@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/index.js
CHANGED
|
@@ -1668,7 +1668,14 @@ function buildTemplate({ template, context, }) {
|
|
|
1668
1668
|
|
|
1669
1669
|
const stylesToKeep = ['cfImageAsset'];
|
|
1670
1670
|
const stylesToRemove = CF_STYLE_ATTRIBUTES.filter((style) => !stylesToKeep.includes(style));
|
|
1671
|
-
|
|
1671
|
+
// cfWrapColumns & cfWrapColumnsCount are no real style attributes as they are handled on the editor side
|
|
1672
|
+
const propsToRemove = [
|
|
1673
|
+
'cfHyperlink',
|
|
1674
|
+
'cfOpenInNewTab',
|
|
1675
|
+
'cfSsrClassName',
|
|
1676
|
+
'cfWrapColumns',
|
|
1677
|
+
'cfWrapColumnsCount',
|
|
1678
|
+
];
|
|
1672
1679
|
const sanitizeNodeProps = (nodeProps) => {
|
|
1673
1680
|
return omit(nodeProps, stylesToRemove, propsToRemove);
|
|
1674
1681
|
};
|