@mjhls/mjh-framework 1.0.166 → 1.0.168

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/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- # mjh-framework v. 1.0.166
2
+ # mjh-framework v. 1.0.168
3
3
 
4
4
 
5
5
 
package/dist/index.es.js CHANGED
@@ -12914,11 +12914,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
12914
12914
  } },
12915
12915
  article.contentCategory.name.slice(0, article.contentCategory.name.length - 1)
12916
12916
  ),
12917
- article.summary && React__default.createElement(
12918
- 'p',
12919
- { className: 'pt-2 card-text' },
12920
- article.summary
12921
- )
12917
+ article.summary && React__default.createElement('p', { className: 'pt-2 card-text', dangerouslySetInnerHTML: { __html: article.summary } })
12922
12918
  )
12923
12919
  )
12924
12920
  )
@@ -12995,11 +12991,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
12995
12991
  } },
12996
12992
  article.contentCategory.name.slice(0, article.contentCategory.name.length - 1)
12997
12993
  ),
12998
- article.summary && React__default.createElement(
12999
- 'p',
13000
- { className: 'pt-2 card-text' },
13001
- article.summary
13002
- )
12994
+ article.summary && React__default.createElement('p', { className: 'pt-2 card-text', dangerouslySetInnerHTML: { __html: article.summary } })
13003
12995
  )
13004
12996
  )
13005
12997
  )
@@ -13077,11 +13069,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
13077
13069
  } },
13078
13070
  article.contentCategory.name.slice(0, article.contentCategory.name.length - 1)
13079
13071
  ),
13080
- article.summary && React__default.createElement(
13081
- 'p',
13082
- { className: 'pt-2 card-text' },
13083
- article.summary
13084
- )
13072
+ article.summary && React__default.createElement('p', { className: 'pt-2 card-text', dangerouslySetInnerHTML: { __html: article.summary } })
13085
13073
  )
13086
13074
  )
13087
13075
  )
@@ -28653,6 +28641,18 @@ var Feature = function Feature(props) {
28653
28641
  return false;
28654
28642
  };
28655
28643
 
28644
+ var urlFor = function urlFor(source) {
28645
+ var client = props.client;
28646
+
28647
+ var builder = imageUrlBuilder(client);
28648
+ return builder.image(source).auto('format');
28649
+ };
28650
+ //image width
28651
+ var imageWidth = 900;
28652
+ if (main_36) {
28653
+ imageWidth = 450;
28654
+ }
28655
+
28656
28656
  var renderUrl = function renderUrl(feature_link, feature_title, feature_body) {
28657
28657
  if (checkUrlIsExternal(feature_link)) {
28658
28658
  return React__default.createElement(
@@ -28711,7 +28711,7 @@ var Feature = function Feature(props) {
28711
28711
  return React__default.createElement(
28712
28712
  Carousel$1.Item,
28713
28713
  { key: index, style: { background: 'var(--primary)' } },
28714
- React__default.createElement('img', { style: { maxHeight: '375px', minHeight: '300px', objectFit: 'cover', paddingLeft: '50%' }, className: 'd-block w-100', src: feature_img, alt: feature_alt }),
28714
+ React__default.createElement('img', { style: { maxHeight: '375px', minHeight: '300px', objectFit: 'cover', paddingLeft: '50%' }, className: 'd-block w-100', src: urlFor(feature_img).width(imageWidth).url(), alt: feature_alt }),
28715
28715
  React__default.createElement(
28716
28716
  Carousel$1.Caption,
28717
28717
  { style: { paddingRight: '50%', left: '3rem', right: '3rem', top: '0', height: '100%', display: 'flex', justifyContent: 'center', alignItems: 'center' } },