@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 +1 -1
- package/dist/index.es.js +16 -16
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +16 -16
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12922,11 +12922,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
12922
12922
|
} },
|
|
12923
12923
|
article.contentCategory.name.slice(0, article.contentCategory.name.length - 1)
|
|
12924
12924
|
),
|
|
12925
|
-
article.summary && React__default.createElement(
|
|
12926
|
-
'p',
|
|
12927
|
-
{ className: 'pt-2 card-text' },
|
|
12928
|
-
article.summary
|
|
12929
|
-
)
|
|
12925
|
+
article.summary && React__default.createElement('p', { className: 'pt-2 card-text', dangerouslySetInnerHTML: { __html: article.summary } })
|
|
12930
12926
|
)
|
|
12931
12927
|
)
|
|
12932
12928
|
)
|
|
@@ -13003,11 +12999,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
13003
12999
|
} },
|
|
13004
13000
|
article.contentCategory.name.slice(0, article.contentCategory.name.length - 1)
|
|
13005
13001
|
),
|
|
13006
|
-
article.summary && React__default.createElement(
|
|
13007
|
-
'p',
|
|
13008
|
-
{ className: 'pt-2 card-text' },
|
|
13009
|
-
article.summary
|
|
13010
|
-
)
|
|
13002
|
+
article.summary && React__default.createElement('p', { className: 'pt-2 card-text', dangerouslySetInnerHTML: { __html: article.summary } })
|
|
13011
13003
|
)
|
|
13012
13004
|
)
|
|
13013
13005
|
)
|
|
@@ -13085,11 +13077,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
13085
13077
|
} },
|
|
13086
13078
|
article.contentCategory.name.slice(0, article.contentCategory.name.length - 1)
|
|
13087
13079
|
),
|
|
13088
|
-
article.summary && React__default.createElement(
|
|
13089
|
-
'p',
|
|
13090
|
-
{ className: 'pt-2 card-text' },
|
|
13091
|
-
article.summary
|
|
13092
|
-
)
|
|
13080
|
+
article.summary && React__default.createElement('p', { className: 'pt-2 card-text', dangerouslySetInnerHTML: { __html: article.summary } })
|
|
13093
13081
|
)
|
|
13094
13082
|
)
|
|
13095
13083
|
)
|
|
@@ -28661,6 +28649,18 @@ var Feature = function Feature(props) {
|
|
|
28661
28649
|
return false;
|
|
28662
28650
|
};
|
|
28663
28651
|
|
|
28652
|
+
var urlFor = function urlFor(source) {
|
|
28653
|
+
var client = props.client;
|
|
28654
|
+
|
|
28655
|
+
var builder = imageUrlBuilder(client);
|
|
28656
|
+
return builder.image(source).auto('format');
|
|
28657
|
+
};
|
|
28658
|
+
//image width
|
|
28659
|
+
var imageWidth = 900;
|
|
28660
|
+
if (main_36) {
|
|
28661
|
+
imageWidth = 450;
|
|
28662
|
+
}
|
|
28663
|
+
|
|
28664
28664
|
var renderUrl = function renderUrl(feature_link, feature_title, feature_body) {
|
|
28665
28665
|
if (checkUrlIsExternal(feature_link)) {
|
|
28666
28666
|
return React__default.createElement(
|
|
@@ -28719,7 +28719,7 @@ var Feature = function Feature(props) {
|
|
|
28719
28719
|
return React__default.createElement(
|
|
28720
28720
|
Carousel.Item,
|
|
28721
28721
|
{ key: index, style: { background: 'var(--primary)' } },
|
|
28722
|
-
React__default.createElement('img', { style: { maxHeight: '375px', minHeight: '300px', objectFit: 'cover', paddingLeft: '50%' }, className: 'd-block w-100', src: feature_img, alt: feature_alt }),
|
|
28722
|
+
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 }),
|
|
28723
28723
|
React__default.createElement(
|
|
28724
28724
|
Carousel.Caption,
|
|
28725
28725
|
{ style: { paddingRight: '50%', left: '3rem', right: '3rem', top: '0', height: '100%', display: 'flex', justifyContent: 'center', alignItems: 'center' } },
|