@treely/strapi-slices 4.4.0 → 4.4.2

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.
@@ -1406,7 +1406,9 @@ var MapHero = function MapHero(_ref) {
1406
1406
  var slice = _ref.slice;
1407
1407
  var _useMediaQuery = useMediaQuery(BREAKPOINT_LG_QUERY),
1408
1408
  belowBreakpoint = _useMediaQuery[0];
1409
- return React.createElement(MapHeroContainer, null, slice.shape && React.createElement(ShapeContainer, null, React.createElement(Image, {
1409
+ return React.createElement(MapHeroContainer, {
1410
+ maxWidth: "full"
1411
+ }, slice.shape && React.createElement(ShapeContainer, null, React.createElement(Image, {
1410
1412
  src: strapiMediaUrl(slice.shape.img, 'medium'),
1411
1413
  alt: slice.shape.alt,
1412
1414
  fill: true,
@@ -2680,7 +2682,7 @@ var Blog = function Blog(_ref) {
2680
2682
  })), React.createElement(Box, {
2681
2683
  px: "2",
2682
2684
  py: "8"
2683
- }, blogPost.attributes.category && React.createElement(Text, {
2685
+ }, blogPost.attributes.category.data && React.createElement(Text, {
2684
2686
  size: "smMonoUppercase",
2685
2687
  color: "primary.800",
2686
2688
  mb: "2"
@@ -2693,7 +2695,7 @@ var Blog = function Blog(_ref) {
2693
2695
  height: "4"
2694
2696
  }), React.createElement(DatePersonPair, {
2695
2697
  date: formatDate(blogPost.attributes.createdAt),
2696
- person: blogPost.attributes.author ? {
2698
+ person: blogPost.attributes.author.data ? {
2697
2699
  name: blogPost.attributes.author.data.attributes.name,
2698
2700
  image: React.createElement(Image, {
2699
2701
  src: strapiMediaUrl(blogPost.attributes.author.data.attributes.img.img, 'thumbnail'),
@@ -3232,7 +3234,8 @@ var STATES = {
3232
3234
  paddingTitle: '0',
3233
3235
  justifyContent: 'space-between',
3234
3236
  buttonJustifyContent: 'start',
3235
- textMarginLeft: ['0', null, null, null, '14']
3237
+ textMarginLeft: ['0', null, null, null, '14'],
3238
+ textMarginRight: '0'
3236
3239
  },
3237
3240
  centerWithoutImage: {
3238
3241
  textAlign: 'center',
@@ -3240,7 +3243,8 @@ var STATES = {
3240
3243
  paddingTitle: '20',
3241
3244
  justifyContent: 'center',
3242
3245
  buttonJustifyContent: 'center',
3243
- textMarginLeft: '0'
3246
+ textMarginLeft: '0',
3247
+ textMarginRight: '0'
3244
3248
  },
3245
3249
  centerWithImage: {
3246
3250
  textAlign: 'center',
@@ -3248,7 +3252,8 @@ var STATES = {
3248
3252
  paddingTitle: '20',
3249
3253
  justifyContent: 'center',
3250
3254
  buttonJustifyContent: 'center',
3251
- textMarginLeft: '0'
3255
+ textMarginLeft: '0',
3256
+ textMarginRight: '0'
3252
3257
  },
3253
3258
  right: {
3254
3259
  textAlign: 'left',
@@ -3256,7 +3261,8 @@ var STATES = {
3256
3261
  paddingTitle: '0',
3257
3262
  justifyContent: 'start',
3258
3263
  buttonJustifyContent: 'start',
3259
- textMarginLeft: '0'
3264
+ textMarginLeft: '0',
3265
+ textMarginRight: ['0', null, null, null, '10']
3260
3266
  }
3261
3267
  };
3262
3268
  var VARIANTS$3 = {
@@ -3444,6 +3450,7 @@ var Cta = function Cta(_ref) {
3444
3450
  })) : React.createElement(React.Fragment, null), React.createElement(Box, {
3445
3451
  zIndex: "base",
3446
3452
  marginLeft: STATES[ctaCardType].textMarginLeft,
3453
+ marginRight: STATES[ctaCardType].textMarginRight,
3447
3454
  maxWidth: "3xl"
3448
3455
  }, React.createElement(Spacer, {
3449
3456
  height: ['0', null, null, null, '20']
@@ -3898,7 +3905,7 @@ var BlogCards = function BlogCards(_ref) {
3898
3905
  var _slice$blogPostCatego;
3899
3906
  return (_slice$blogPostCatego = slice.blogPostCategory) != null && (_slice$blogPostCatego = _slice$blogPostCatego.data) != null && _slice$blogPostCatego.attributes.name ? sortedBlogPosts.filter(function (blogPost) {
3900
3907
  var _blogPost$attributes$, _slice$blogPostCatego2;
3901
- return ((_blogPost$attributes$ = blogPost.attributes.category) == null ? void 0 : _blogPost$attributes$.data.attributes.name) === ((_slice$blogPostCatego2 = slice.blogPostCategory) == null || (_slice$blogPostCatego2 = _slice$blogPostCatego2.data) == null ? void 0 : _slice$blogPostCatego2.attributes.name);
3908
+ return ((_blogPost$attributes$ = blogPost.attributes.category.data) == null ? void 0 : _blogPost$attributes$.attributes.name) === ((_slice$blogPostCatego2 = slice.blogPostCategory) == null || (_slice$blogPostCatego2 = _slice$blogPostCatego2.data) == null ? void 0 : _slice$blogPostCatego2.attributes.name);
3902
3909
  }).slice(0, 3) : sortedBlogPosts.slice(0, 3);
3903
3910
  }, [sortedBlogPosts, slice]);
3904
3911
  return React.createElement(DefaultSectionContainer, {
@@ -3939,6 +3946,7 @@ var BlogCards = function BlogCards(_ref) {
3939
3946
  spacingY: 24,
3940
3947
  flexShrink: "0"
3941
3948
  }, blogPostsToDisplay.map(function (blogPost) {
3949
+ var _blogPost$attributes$2;
3942
3950
  return React.createElement(BlogItemContainer, {
3943
3951
  as: Link,
3944
3952
  href: "/blog/" + blogPost.attributes.slug,
@@ -3958,7 +3966,7 @@ var BlogCards = function BlogCards(_ref) {
3958
3966
  size: "smMonoUppercase",
3959
3967
  color: "primary.800",
3960
3968
  mb: "2"
3961
- }, blogPost.attributes.category.data.attributes.name), React.createElement(Heading, {
3969
+ }, (_blogPost$attributes$2 = blogPost.attributes.category.data) == null ? void 0 : _blogPost$attributes$2.attributes.name), React.createElement(Heading, {
3962
3970
  size: "lg"
3963
3971
  }, blogPost.attributes.title), blogPost.attributes.teaser && React.createElement(Text, {
3964
3972
  size: "mdRegularNormal",
@@ -3967,7 +3975,7 @@ var BlogCards = function BlogCards(_ref) {
3967
3975
  height: "4"
3968
3976
  }), React.createElement(DatePersonPair, {
3969
3977
  date: formatDate(blogPost.attributes.createdAt),
3970
- person: blogPost.attributes.author ? {
3978
+ person: blogPost.attributes.author.data ? {
3971
3979
  name: blogPost.attributes.author.data.attributes.name,
3972
3980
  image: React.createElement(Image, {
3973
3981
  src: strapiMediaUrl(blogPost.attributes.author.data.attributes.img.img, 'thumbnail'),
@@ -4182,11 +4190,9 @@ var SmallCheckout = function SmallCheckout(_ref) {
4182
4190
  textAlign: "center",
4183
4191
  mb: "3"
4184
4192
  }, subtitle), button && React.createElement(StrapiLinkButton, {
4185
- link: {
4186
- id: 1,
4187
- intercomLauncher: true,
4188
- text: button.text
4189
- },
4193
+ link: _extends({
4194
+ intercomLauncher: true
4195
+ }, button),
4190
4196
  variant: "outline"
4191
4197
  })));
4192
4198
  };