@contentful/experiences-core 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/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1800,7 +1800,14 @@ function buildTemplate({ template, context, }) {
|
|
|
1800
1800
|
|
|
1801
1801
|
const stylesToKeep = ['cfImageAsset'];
|
|
1802
1802
|
const stylesToRemove = CF_STYLE_ATTRIBUTES.filter((style) => !stylesToKeep.includes(style));
|
|
1803
|
-
|
|
1803
|
+
// cfWrapColumns & cfWrapColumnsCount are no real style attributes as they are handled on the editor side
|
|
1804
|
+
const propsToRemove = [
|
|
1805
|
+
'cfHyperlink',
|
|
1806
|
+
'cfOpenInNewTab',
|
|
1807
|
+
'cfSsrClassName',
|
|
1808
|
+
'cfWrapColumns',
|
|
1809
|
+
'cfWrapColumnsCount',
|
|
1810
|
+
];
|
|
1804
1811
|
const sanitizeNodeProps = (nodeProps) => {
|
|
1805
1812
|
return omit(nodeProps, stylesToRemove, propsToRemove);
|
|
1806
1813
|
};
|