@mjhls/mjh-framework 1.0.129 → 1.0.131
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/README.md
CHANGED
package/dist/index.es.js
CHANGED
|
@@ -12164,7 +12164,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
12164
12164
|
}),
|
|
12165
12165
|
React__default.createElement(
|
|
12166
12166
|
'style',
|
|
12167
|
-
{ jsx: true },
|
|
12167
|
+
{ jsx: 'true' },
|
|
12168
12168
|
'\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 '
|
|
12169
12169
|
)
|
|
12170
12170
|
);
|
|
@@ -18441,11 +18441,12 @@ var TableShow = function TableShow(_ref) {
|
|
|
18441
18441
|
};
|
|
18442
18442
|
|
|
18443
18443
|
var Media$2 = function Media$$1(_ref) {
|
|
18444
|
-
var
|
|
18445
|
-
|
|
18446
|
-
|
|
18447
|
-
|
|
18448
|
-
|
|
18444
|
+
var node$$1 = _ref.node,
|
|
18445
|
+
client = _ref.client;
|
|
18446
|
+
var uploadDoc = node$$1.upload_doc,
|
|
18447
|
+
poster = node$$1.poster,
|
|
18448
|
+
blank = node$$1.blank,
|
|
18449
|
+
caption = node$$1.caption;
|
|
18449
18450
|
|
|
18450
18451
|
var builder = imageUrlBuilder(client);
|
|
18451
18452
|
|
|
@@ -18454,49 +18455,33 @@ var Media$2 = function Media$$1(_ref) {
|
|
|
18454
18455
|
};
|
|
18455
18456
|
|
|
18456
18457
|
var renderFigure = function renderFigure(uploadDoc, poster, blank, caption) {
|
|
18457
|
-
if (uploadDoc && uploadDoc.asset
|
|
18458
|
-
|
|
18459
|
-
|
|
18460
|
-
|
|
18461
|
-
|
|
18462
|
-
|
|
18463
|
-
|
|
18464
|
-
|
|
18465
|
-
src: urlFor(poster
|
|
18466
|
-
fluid: true
|
|
18467
|
-
}),
|
|
18468
|
-
caption && React__default.createElement(
|
|
18469
|
-
Figure.Caption,
|
|
18470
|
-
null,
|
|
18471
|
-
caption
|
|
18458
|
+
if (uploadDoc && uploadDoc.asset) {
|
|
18459
|
+
if (poster && poster.asset) {
|
|
18460
|
+
return React__default.createElement(
|
|
18461
|
+
Figure,
|
|
18462
|
+
{ className: 'mb-3' },
|
|
18463
|
+
React__default.createElement(
|
|
18464
|
+
'a',
|
|
18465
|
+
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
18466
|
+
React__default.createElement(Figure.Image, { src: urlFor(poster).url(), fluid: true })
|
|
18472
18467
|
)
|
|
18473
|
-
)
|
|
18474
|
-
)
|
|
18475
|
-
|
|
18476
|
-
|
|
18477
|
-
|
|
18478
|
-
{ className: 'd-block text-center mb-3' },
|
|
18479
|
-
React__default.createElement(Figure.Image, {
|
|
18480
|
-
src: urlFor(poster.asset).url()
|
|
18481
|
-
}),
|
|
18482
|
-
caption && React__default.createElement(
|
|
18483
|
-
Figure.Caption,
|
|
18484
|
-
null,
|
|
18468
|
+
);
|
|
18469
|
+
} else if (caption && caption !== '') {
|
|
18470
|
+
return React__default.createElement(
|
|
18471
|
+
'a',
|
|
18472
|
+
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', className: 'd-block text-center' },
|
|
18485
18473
|
caption
|
|
18486
|
-
)
|
|
18487
|
-
|
|
18474
|
+
);
|
|
18475
|
+
}
|
|
18476
|
+
return null;
|
|
18488
18477
|
}
|
|
18478
|
+
return null;
|
|
18489
18479
|
};
|
|
18490
18480
|
|
|
18491
18481
|
return React__default.createElement(
|
|
18492
18482
|
React__default.Fragment,
|
|
18493
18483
|
null,
|
|
18494
|
-
renderFigure(uploadDoc, poster, blank, caption)
|
|
18495
|
-
!poster && uploadDoc && uploadDoc.asset && React__default.createElement(
|
|
18496
|
-
'a',
|
|
18497
|
-
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
18498
|
-
caption
|
|
18499
|
-
)
|
|
18484
|
+
renderFigure(uploadDoc, poster, blank, caption)
|
|
18500
18485
|
);
|
|
18501
18486
|
};
|
|
18502
18487
|
|
|
@@ -25944,12 +25929,8 @@ var getSerializers$1 = function getSerializers(client, pageview, videoAccountIDs
|
|
|
25944
25929
|
},
|
|
25945
25930
|
media: function media(_ref7) {
|
|
25946
25931
|
var node = _ref7.node;
|
|
25947
|
-
var upload_doc = node.upload_doc,
|
|
25948
|
-
poster = node.poster,
|
|
25949
|
-
caption = node.caption,
|
|
25950
|
-
blank = node.blank;
|
|
25951
25932
|
|
|
25952
|
-
return React__default.createElement(Media$2, {
|
|
25933
|
+
return React__default.createElement(Media$2, { node: node, client: client });
|
|
25953
25934
|
},
|
|
25954
25935
|
iframe: function iframe(_ref8) {
|
|
25955
25936
|
var node = _ref8.node;
|