@contentful/experiences-core 1.17.1 → 1.17.2-dev-20241004T1906-f3fb9a4.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 CHANGED
@@ -385,6 +385,7 @@ const buildStyleTag = ({ styles, nodeId }) => {
385
385
  };
386
386
  const buildCfStyles = ({ cfHorizontalAlignment, cfVerticalAlignment, cfFlexDirection, cfFlexWrap, cfMargin, cfPadding, cfBackgroundColor, cfWidth, cfHeight, cfMaxWidth, cfBorder, cfBorderRadius, cfGap, cfBackgroundImageUrl, cfBackgroundImageOptions, cfFontSize, cfFontWeight, cfImageOptions, cfLineHeight, cfLetterSpacing, cfTextColor, cfTextAlign, cfTextTransform, cfTextBold, cfTextItalic, cfTextUnderline, cfColumnSpan, cfVisibility, }) => {
387
387
  return {
388
+ boxSizing: 'border-box',
388
389
  ...transformVisibility(cfVisibility),
389
390
  margin: cfMargin,
390
391
  padding: cfPadding,
@@ -402,14 +403,13 @@ const buildCfStyles = ({ cfHorizontalAlignment, cfVerticalAlignment, cfFlexDirec
402
403
  ...transformBackgroundImage(cfBackgroundImageUrl, cfBackgroundImageOptions),
403
404
  fontSize: cfFontSize,
404
405
  fontWeight: cfTextBold ? 'bold' : cfFontWeight,
405
- fontStyle: cfTextItalic ? 'italic' : 'normal',
406
+ fontStyle: cfTextItalic ? 'italic' : undefined,
407
+ textDecoration: cfTextUnderline ? 'underline' : undefined,
406
408
  lineHeight: cfLineHeight,
407
409
  letterSpacing: cfLetterSpacing,
408
410
  color: cfTextColor,
409
411
  textAlign: cfTextAlign,
410
412
  textTransform: cfTextTransform,
411
- textDecoration: cfTextUnderline ? 'underline' : 'none',
412
- boxSizing: 'border-box',
413
413
  objectFit: cfImageOptions?.objectFit,
414
414
  objectPosition: cfImageOptions?.objectPosition,
415
415
  };
@@ -753,7 +753,7 @@ const containerBuiltInStyles = {
753
753
  displayName: 'Margin',
754
754
  type: 'Text',
755
755
  group: 'style',
756
- description: 'The margin of the section',
756
+ description: 'The margin of the container',
757
757
  defaultValue: '0 auto 0 auto',
758
758
  },
759
759
  cfMaxWidth: {
@@ -912,7 +912,7 @@ const columnsBuiltInStyles = {
912
912
  type: 'Text',
913
913
  group: 'style',
914
914
  description: 'The margin of the columns',
915
- defaultValue: '0 0 0 0',
915
+ defaultValue: '0 auto 0 auto',
916
916
  },
917
917
  cfWidth: {
918
918
  displayName: 'Width',