@mjhls/mjh-framework 1.0.129 → 1.0.130
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 +27 -46
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +27 -46
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12171,7 +12171,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
12171
12171
|
}),
|
|
12172
12172
|
React__default.createElement(
|
|
12173
12173
|
'style',
|
|
12174
|
-
{ jsx: true },
|
|
12174
|
+
{ jsx: 'true' },
|
|
12175
12175
|
'\n .img-wrapper img {\n max-height: 200px;\n width: 100%;\n object-fit: cover;\n }\n @media only screen and (min-width: 768px) {\n .img-wrapper {\n width: 42%;\n }\n .img-wrapper > img {\n padding-right: 1em;\n }\n }\n @media only screen and (max-width: 767px) {\n .img-wrapper {\n width: 100%;\n }\n .img-wrapper img {\n padding-bottom: 1em;\n }\n .media {\n flex-direction: column;\n }\n }\n '
|
|
12176
12176
|
)
|
|
12177
12177
|
);
|
|
@@ -18448,11 +18448,12 @@ var TableShow = function TableShow(_ref) {
|
|
|
18448
18448
|
};
|
|
18449
18449
|
|
|
18450
18450
|
var Media$1 = function Media$$1(_ref) {
|
|
18451
|
-
var
|
|
18452
|
-
|
|
18453
|
-
|
|
18454
|
-
|
|
18455
|
-
|
|
18451
|
+
var node$$1 = _ref.node,
|
|
18452
|
+
client = _ref.client;
|
|
18453
|
+
var uploadDoc = node$$1.upload_doc,
|
|
18454
|
+
poster = node$$1.poster,
|
|
18455
|
+
blank = node$$1.blank,
|
|
18456
|
+
caption = node$$1.caption;
|
|
18456
18457
|
|
|
18457
18458
|
var builder = imageUrlBuilder(client);
|
|
18458
18459
|
|
|
@@ -18461,49 +18462,33 @@ var Media$1 = function Media$$1(_ref) {
|
|
|
18461
18462
|
};
|
|
18462
18463
|
|
|
18463
18464
|
var renderFigure = function renderFigure(uploadDoc, poster, blank, caption) {
|
|
18464
|
-
if (uploadDoc && uploadDoc.asset
|
|
18465
|
-
|
|
18466
|
-
|
|
18467
|
-
|
|
18468
|
-
|
|
18469
|
-
|
|
18470
|
-
|
|
18471
|
-
|
|
18472
|
-
src: urlFor(poster
|
|
18473
|
-
fluid: true
|
|
18474
|
-
}),
|
|
18475
|
-
caption && React__default.createElement(
|
|
18476
|
-
reactBootstrap.Figure.Caption,
|
|
18477
|
-
null,
|
|
18478
|
-
caption
|
|
18465
|
+
if (uploadDoc && uploadDoc.asset) {
|
|
18466
|
+
if (poster && poster.asset) {
|
|
18467
|
+
return React__default.createElement(
|
|
18468
|
+
reactBootstrap.Figure,
|
|
18469
|
+
{ className: 'mb-3' },
|
|
18470
|
+
React__default.createElement(
|
|
18471
|
+
'a',
|
|
18472
|
+
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
18473
|
+
React__default.createElement(reactBootstrap.Figure.Image, { src: urlFor(poster).url(), fluid: true })
|
|
18479
18474
|
)
|
|
18480
|
-
)
|
|
18481
|
-
)
|
|
18482
|
-
|
|
18483
|
-
|
|
18484
|
-
|
|
18485
|
-
{ className: 'd-block text-center mb-3' },
|
|
18486
|
-
React__default.createElement(reactBootstrap.Figure.Image, {
|
|
18487
|
-
src: urlFor(poster.asset).url()
|
|
18488
|
-
}),
|
|
18489
|
-
caption && React__default.createElement(
|
|
18490
|
-
reactBootstrap.Figure.Caption,
|
|
18491
|
-
null,
|
|
18475
|
+
);
|
|
18476
|
+
} else if (caption && caption !== '') {
|
|
18477
|
+
return React__default.createElement(
|
|
18478
|
+
'a',
|
|
18479
|
+
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', className: 'd-block text-center' },
|
|
18492
18480
|
caption
|
|
18493
|
-
)
|
|
18494
|
-
|
|
18481
|
+
);
|
|
18482
|
+
}
|
|
18483
|
+
return null;
|
|
18495
18484
|
}
|
|
18485
|
+
return null;
|
|
18496
18486
|
};
|
|
18497
18487
|
|
|
18498
18488
|
return React__default.createElement(
|
|
18499
18489
|
React__default.Fragment,
|
|
18500
18490
|
null,
|
|
18501
|
-
renderFigure(uploadDoc, poster, blank, caption)
|
|
18502
|
-
!poster && uploadDoc && uploadDoc.asset && React__default.createElement(
|
|
18503
|
-
'a',
|
|
18504
|
-
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
18505
|
-
caption
|
|
18506
|
-
)
|
|
18491
|
+
renderFigure(uploadDoc, poster, blank, caption)
|
|
18507
18492
|
);
|
|
18508
18493
|
};
|
|
18509
18494
|
|
|
@@ -25951,12 +25936,8 @@ var getSerializers$1 = function getSerializers(client, pageview, videoAccountIDs
|
|
|
25951
25936
|
},
|
|
25952
25937
|
media: function media(_ref7) {
|
|
25953
25938
|
var node = _ref7.node;
|
|
25954
|
-
var upload_doc = node.upload_doc,
|
|
25955
|
-
poster = node.poster,
|
|
25956
|
-
caption = node.caption,
|
|
25957
|
-
blank = node.blank;
|
|
25958
25939
|
|
|
25959
|
-
return React__default.createElement(Media$1, {
|
|
25940
|
+
return React__default.createElement(Media$1, { node: node, client: client });
|
|
25960
25941
|
},
|
|
25961
25942
|
iframe: function iframe(_ref8) {
|
|
25962
25943
|
var node = _ref8.node;
|