@mjhls/mjh-framework 1.0.166 → 1.0.167

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.167
3
3
 
4
4
 
5
5
 
package/dist/index.es.js CHANGED
@@ -28653,6 +28653,18 @@ var Feature = function Feature(props) {
28653
28653
  return false;
28654
28654
  };
28655
28655
 
28656
+ var urlFor = function urlFor(source) {
28657
+ var client = props.client;
28658
+
28659
+ var builder = imageUrlBuilder(client);
28660
+ return builder.image(source).auto('format');
28661
+ };
28662
+ //image width
28663
+ var imageWidth = 900;
28664
+ if (main_36) {
28665
+ imageWidth = 450;
28666
+ }
28667
+
28656
28668
  var renderUrl = function renderUrl(feature_link, feature_title, feature_body) {
28657
28669
  if (checkUrlIsExternal(feature_link)) {
28658
28670
  return React__default.createElement(
@@ -28711,7 +28723,7 @@ var Feature = function Feature(props) {
28711
28723
  return React__default.createElement(
28712
28724
  Carousel$1.Item,
28713
28725
  { 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 }),
28726
+ 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
28727
  React__default.createElement(
28716
28728
  Carousel$1.Caption,
28717
28729
  { style: { paddingRight: '50%', left: '3rem', right: '3rem', top: '0', height: '100%', display: 'flex', justifyContent: 'center', alignItems: 'center' } },