@mjhls/mjh-framework 1.0.392 → 1.0.394
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/cjs/{AuthorComponent-37deda17.js → AuthorComponent-4706f297.js} +3 -7
- package/dist/cjs/{GridContent-1871749e.js → GridContent-dd1844d5.js} +1 -1
- package/dist/cjs/GridContent.js +2 -2
- package/dist/cjs/IssueContentDeck.js +1 -1
- package/dist/cjs/QueueDeckExpanded.js +1 -1
- package/dist/cjs/index.js +90 -37
- package/dist/esm/{AuthorComponent-beb2ad16.js → AuthorComponent-c9e46673.js} +3 -7
- package/dist/esm/{GridContent-3229be76.js → GridContent-4a5cef9e.js} +1 -1
- package/dist/esm/GridContent.js +2 -2
- package/dist/esm/IssueContentDeck.js +1 -1
- package/dist/esm/QueueDeckExpanded.js +1 -1
- package/dist/esm/index.js +90 -37
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -31,7 +31,7 @@ var AuthorComponent = function AuthorComponent(_ref) {
|
|
|
31
31
|
{ href: '/authors/' + url.current, className: 'text-muted' },
|
|
32
32
|
displayName
|
|
33
33
|
),
|
|
34
|
-
length !== index + 1 && '
|
|
34
|
+
length !== index + 1 && ', '
|
|
35
35
|
);
|
|
36
36
|
} else if (displayName) {
|
|
37
37
|
return React__default.createElement(
|
|
@@ -46,11 +46,7 @@ var AuthorComponent = function AuthorComponent(_ref) {
|
|
|
46
46
|
'span',
|
|
47
47
|
{ className: 'text-muted' },
|
|
48
48
|
displayName,
|
|
49
|
-
length !== index + 1 &&
|
|
50
|
-
'span',
|
|
51
|
-
{ className: 'author-seperator' },
|
|
52
|
-
','
|
|
53
|
-
)
|
|
49
|
+
length !== index + 1 && ', '
|
|
54
50
|
)
|
|
55
51
|
);
|
|
56
52
|
}
|
|
@@ -91,7 +87,7 @@ var AuthorComponent = function AuthorComponent(_ref) {
|
|
|
91
87
|
React__default.createElement(
|
|
92
88
|
'style',
|
|
93
89
|
{ jsx: true },
|
|
94
|
-
'\n #author-sec' + index + ' {\n line-height: 25px;\n position: relative;\n height: auto;\n // max-height: 50px;\n }\n .hide-content {\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n }\n #overlay-content' + index + ' {\n position: absolute;\n cursor: pointer;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n z-index: 1000;\n }\n
|
|
90
|
+
'\n #author-sec' + index + ' {\n line-height: 25px;\n position: relative;\n height: auto;\n // max-height: 50px;\n }\n .hide-content {\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n }\n #overlay-content' + index + ' {\n position: absolute;\n cursor: pointer;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n z-index: 1000;\n }\n '
|
|
95
91
|
)
|
|
96
92
|
);
|
|
97
93
|
};
|
|
@@ -22,7 +22,7 @@ var index$1 = require('./index-fa0fb52c.js');
|
|
|
22
22
|
var entities = require('./entities-310b46ee.js');
|
|
23
23
|
var ADInfeed = require('./ADInfeed-f544f2a5.js');
|
|
24
24
|
var get$1 = require('./get-5aa7468c.js');
|
|
25
|
-
var AuthorComponent = require('./AuthorComponent-
|
|
25
|
+
var AuthorComponent = require('./AuthorComponent-4706f297.js');
|
|
26
26
|
|
|
27
27
|
var Dfp = React__default.lazy(function () {
|
|
28
28
|
return Promise.resolve().then(function () { return require('./Dfp-27b922b0.js'); });
|
package/dist/cjs/GridContent.js
CHANGED
|
@@ -29,8 +29,8 @@ require('./AdSlot-1e40a214.js');
|
|
|
29
29
|
require('./promise-d5136080.js');
|
|
30
30
|
require('./ADInfeed-f544f2a5.js');
|
|
31
31
|
require('./get-5aa7468c.js');
|
|
32
|
-
var GridContent = require('./GridContent-
|
|
33
|
-
require('./AuthorComponent-
|
|
32
|
+
var GridContent = require('./GridContent-dd1844d5.js');
|
|
33
|
+
require('./AuthorComponent-4706f297.js');
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
@@ -16,7 +16,7 @@ require('react-dom');
|
|
|
16
16
|
var index = require('./index-b5eb3ff8.js');
|
|
17
17
|
var index$1 = require('./index-fa0fb52c.js');
|
|
18
18
|
require('./slicedToArray-419d467a.js');
|
|
19
|
-
var AuthorComponent = require('./AuthorComponent-
|
|
19
|
+
var AuthorComponent = require('./AuthorComponent-4706f297.js');
|
|
20
20
|
var Badge = _interopDefault(require('react-bootstrap/Badge'));
|
|
21
21
|
|
|
22
22
|
var urlFor = function urlFor(source, client) {
|
|
@@ -27,7 +27,7 @@ var slicedToArray = require('./slicedToArray-419d467a.js');
|
|
|
27
27
|
require('./AdSlot-1e40a214.js');
|
|
28
28
|
require('./promise-d5136080.js');
|
|
29
29
|
var ADInfeed = require('./ADInfeed-f544f2a5.js');
|
|
30
|
-
var AuthorComponent = require('./AuthorComponent-
|
|
30
|
+
var AuthorComponent = require('./AuthorComponent-4706f297.js');
|
|
31
31
|
var reactBootstrap = require('react-bootstrap');
|
|
32
32
|
|
|
33
33
|
var urlFor = function urlFor(source, builder) {
|
package/dist/cjs/index.js
CHANGED
|
@@ -36,8 +36,8 @@ var promise = require('./promise-d5136080.js');
|
|
|
36
36
|
var ADInfeed = require('./ADInfeed-f544f2a5.js');
|
|
37
37
|
var DeckContent = require('./DeckContent.js');
|
|
38
38
|
var get$1 = require('./get-5aa7468c.js');
|
|
39
|
-
var GridContent = require('./GridContent-
|
|
40
|
-
var AuthorComponent = require('./AuthorComponent-
|
|
39
|
+
var GridContent = require('./GridContent-dd1844d5.js');
|
|
40
|
+
var AuthorComponent = require('./AuthorComponent-4706f297.js');
|
|
41
41
|
var DeckQueue = require('./DeckQueue.js');
|
|
42
42
|
require('react-bootstrap/Media');
|
|
43
43
|
var ThumbnailCard = require('./ThumbnailCard.js');
|
|
@@ -14234,6 +14234,54 @@ var NativeAd = function NativeAd(props) {
|
|
|
14234
14234
|
);
|
|
14235
14235
|
};
|
|
14236
14236
|
|
|
14237
|
+
var urlFor$4 = function urlFor(source, client) {
|
|
14238
|
+
var builder = index.imageUrlBuilder(client);
|
|
14239
|
+
return builder.image(source).auto('format');
|
|
14240
|
+
};
|
|
14241
|
+
|
|
14242
|
+
var MultiFigure = function MultiFigure(props) {
|
|
14243
|
+
var images = props.node.images,
|
|
14244
|
+
client = props.client;
|
|
14245
|
+
|
|
14246
|
+
|
|
14247
|
+
if (images && images.length > 0) {
|
|
14248
|
+
return React__default.createElement(
|
|
14249
|
+
'div',
|
|
14250
|
+
{ className: 'multi-figure-container' },
|
|
14251
|
+
React__default.createElement(
|
|
14252
|
+
reactBootstrap.Row,
|
|
14253
|
+
{ noGutters: true },
|
|
14254
|
+
images.map(function (image, index) {
|
|
14255
|
+
return React__default.createElement(
|
|
14256
|
+
reactBootstrap.Col,
|
|
14257
|
+
{ xs: 12, md: 12 / images.length, key: index },
|
|
14258
|
+
React__default.createElement(
|
|
14259
|
+
'a',
|
|
14260
|
+
_extends$2._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'text' } }),
|
|
14261
|
+
React__default.createElement(
|
|
14262
|
+
'div',
|
|
14263
|
+
null,
|
|
14264
|
+
React__default.createElement('img', { className: 'multi-figure-image', src: urlFor$4(image.asset, client).url(), alt: image.alt }),
|
|
14265
|
+
image.caption && React__default.createElement(
|
|
14266
|
+
'p',
|
|
14267
|
+
{ className: 'multi-figure-caption' },
|
|
14268
|
+
image.caption
|
|
14269
|
+
)
|
|
14270
|
+
)
|
|
14271
|
+
)
|
|
14272
|
+
);
|
|
14273
|
+
})
|
|
14274
|
+
),
|
|
14275
|
+
React__default.createElement(
|
|
14276
|
+
'style',
|
|
14277
|
+
{ jsx: 'true' },
|
|
14278
|
+
'\n .multi-figure-container {\n margin-bottom: 8px;\n }\n .multi-figure-image {\n width: 100%;\n height: auto;\n max-height: 180px;\n min-height: 150px;\n object-fit: cover;\n }\n .multi-figure-caption {\n font-size: 90%;\n color: #6c757d;\n }\n\n @media only screen and (min-width: 768px) {\n .multi-figure-container [class*=\'col-\'] + [class*=\'col-\'] {\n padding-left: 10px;\n }\n }\n '
|
|
14279
|
+
)
|
|
14280
|
+
);
|
|
14281
|
+
}
|
|
14282
|
+
return null;
|
|
14283
|
+
};
|
|
14284
|
+
|
|
14237
14285
|
var Figure = dynamic(function () {
|
|
14238
14286
|
return Promise.resolve().then(function () { return require('./Figure-c49ee0f8.js'); });
|
|
14239
14287
|
}, { ssr: false });
|
|
@@ -14300,70 +14348,75 @@ var getSerializers = function getSerializers() {
|
|
|
14300
14348
|
|
|
14301
14349
|
return React__default.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag });
|
|
14302
14350
|
},
|
|
14303
|
-
|
|
14351
|
+
multifigure: function multifigure(_ref4) {
|
|
14304
14352
|
var node = _ref4.node;
|
|
14353
|
+
|
|
14354
|
+
return React__default.createElement(MultiFigure, { node: node, client: client });
|
|
14355
|
+
},
|
|
14356
|
+
slideshow: function slideshow(_ref5) {
|
|
14357
|
+
var node = _ref5.node;
|
|
14305
14358
|
var slides = node.slides;
|
|
14306
14359
|
|
|
14307
14360
|
return React__default.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
14308
14361
|
},
|
|
14309
|
-
sidebar: function sidebar(
|
|
14310
|
-
var node =
|
|
14362
|
+
sidebar: function sidebar(_ref6) {
|
|
14363
|
+
var node = _ref6.node;
|
|
14311
14364
|
var caption = node.caption,
|
|
14312
14365
|
content = node.content;
|
|
14313
14366
|
|
|
14314
14367
|
return React__default.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
14315
14368
|
},
|
|
14316
|
-
datatable: function datatable(
|
|
14317
|
-
var node =
|
|
14369
|
+
datatable: function datatable(_ref7) {
|
|
14370
|
+
var node = _ref7.node;
|
|
14318
14371
|
var table = node.table;
|
|
14319
14372
|
|
|
14320
14373
|
return React__default.createElement(TableShow, { rows: table.rows });
|
|
14321
14374
|
},
|
|
14322
|
-
media: function media(
|
|
14323
|
-
var node =
|
|
14375
|
+
media: function media(_ref8) {
|
|
14376
|
+
var node = _ref8.node;
|
|
14324
14377
|
|
|
14325
14378
|
return React__default.createElement(Media, { node: node, client: client });
|
|
14326
14379
|
},
|
|
14327
|
-
iframe: function iframe(
|
|
14328
|
-
var node =
|
|
14380
|
+
iframe: function iframe(_ref9) {
|
|
14381
|
+
var node = _ref9.node;
|
|
14329
14382
|
|
|
14330
14383
|
return React__default.createElement(IFrame, { url: node.url });
|
|
14331
14384
|
},
|
|
14332
|
-
video: function video(
|
|
14333
|
-
var node =
|
|
14385
|
+
video: function video(_ref10) {
|
|
14386
|
+
var node = _ref10.node;
|
|
14334
14387
|
|
|
14335
14388
|
return React__default.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {} });
|
|
14336
14389
|
},
|
|
14337
|
-
audio: function audio(
|
|
14338
|
-
var node =
|
|
14390
|
+
audio: function audio(_ref11) {
|
|
14391
|
+
var node = _ref11.node;
|
|
14339
14392
|
|
|
14340
14393
|
return React__default.createElement(Audio, { node: node });
|
|
14341
14394
|
},
|
|
14342
|
-
poll: function poll(
|
|
14343
|
-
var node =
|
|
14395
|
+
poll: function poll(_ref12) {
|
|
14396
|
+
var node = _ref12.node;
|
|
14344
14397
|
|
|
14345
14398
|
return React__default.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, onVote: onVote, showVotes: showVotes, getSerializers: getSerializers(props) });
|
|
14346
14399
|
},
|
|
14347
|
-
quiz: function quiz(
|
|
14348
|
-
var node =
|
|
14400
|
+
quiz: function quiz(_ref13) {
|
|
14401
|
+
var node = _ref13.node;
|
|
14349
14402
|
var quizzes = node.quizzes;
|
|
14350
14403
|
|
|
14351
14404
|
return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
14352
14405
|
},
|
|
14353
|
-
leads: function leads(
|
|
14354
|
-
var node =
|
|
14406
|
+
leads: function leads(_ref14) {
|
|
14407
|
+
var node = _ref14.node;
|
|
14355
14408
|
var leadID = node.leadID;
|
|
14356
14409
|
|
|
14357
14410
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
14358
14411
|
return React__default.createElement(Leads, { url: url });
|
|
14359
14412
|
},
|
|
14360
|
-
slideshows: function slideshows(
|
|
14361
|
-
var node =
|
|
14413
|
+
slideshows: function slideshows(_ref15) {
|
|
14414
|
+
var node = _ref15.node;
|
|
14362
14415
|
|
|
14363
14416
|
return React__default.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
14364
14417
|
},
|
|
14365
|
-
nativeAd: function nativeAd(
|
|
14366
|
-
var node =
|
|
14418
|
+
nativeAd: function nativeAd(_ref16) {
|
|
14419
|
+
var node = _ref16.node;
|
|
14367
14420
|
|
|
14368
14421
|
return React__default.createElement(NativeAd, { node: node });
|
|
14369
14422
|
}
|
|
@@ -14396,32 +14449,32 @@ var getSerializers = function getSerializers() {
|
|
|
14396
14449
|
children
|
|
14397
14450
|
);
|
|
14398
14451
|
},
|
|
14399
|
-
alignleft: function alignleft(
|
|
14400
|
-
var children =
|
|
14452
|
+
alignleft: function alignleft(_ref17) {
|
|
14453
|
+
var children = _ref17.children;
|
|
14401
14454
|
return React__default.createElement(
|
|
14402
14455
|
'div',
|
|
14403
14456
|
{ style: { textAlign: 'left' } },
|
|
14404
14457
|
children
|
|
14405
14458
|
);
|
|
14406
14459
|
},
|
|
14407
|
-
alignright: function alignright(
|
|
14408
|
-
var children =
|
|
14460
|
+
alignright: function alignright(_ref18) {
|
|
14461
|
+
var children = _ref18.children;
|
|
14409
14462
|
return React__default.createElement(
|
|
14410
14463
|
'div',
|
|
14411
14464
|
{ style: { textAlign: 'right' } },
|
|
14412
14465
|
children
|
|
14413
14466
|
);
|
|
14414
14467
|
},
|
|
14415
|
-
aligncenter: function aligncenter(
|
|
14416
|
-
var children =
|
|
14468
|
+
aligncenter: function aligncenter(_ref19) {
|
|
14469
|
+
var children = _ref19.children;
|
|
14417
14470
|
return React__default.createElement(
|
|
14418
14471
|
'div',
|
|
14419
14472
|
{ style: { textAlign: 'center' } },
|
|
14420
14473
|
children
|
|
14421
14474
|
);
|
|
14422
14475
|
},
|
|
14423
|
-
alignjustify: function alignjustify(
|
|
14424
|
-
var children =
|
|
14476
|
+
alignjustify: function alignjustify(_ref20) {
|
|
14477
|
+
var children = _ref20.children;
|
|
14425
14478
|
return React__default.createElement(
|
|
14426
14479
|
'div',
|
|
14427
14480
|
{ style: { textAlign: 'justify' } },
|
|
@@ -14628,13 +14681,13 @@ var SetCookie = function SetCookie(key, value) {
|
|
|
14628
14681
|
js_cookie.set(key, value, { expires: 1, sameSite: 'none', secure: true });
|
|
14629
14682
|
};
|
|
14630
14683
|
|
|
14631
|
-
var urlFor$
|
|
14684
|
+
var urlFor$5 = function urlFor(source, client) {
|
|
14632
14685
|
var builder = index.imageUrlBuilder(client);
|
|
14633
14686
|
return builder.image(source).auto('format');
|
|
14634
14687
|
};
|
|
14635
14688
|
|
|
14636
14689
|
var renderCardImage$1 = function renderCardImage(thumbnail, client, imageHeight, imageWidth) {
|
|
14637
|
-
var url = urlFor$
|
|
14690
|
+
var url = urlFor$5(thumbnail, client);
|
|
14638
14691
|
if (imageHeight) url = url.height(imageHeight);
|
|
14639
14692
|
if (imageWidth) url = url.width(imageWidth);
|
|
14640
14693
|
return url.url();
|
|
@@ -17401,14 +17454,14 @@ var renderAuthor$1 = function renderAuthor(authorName, authorURL, index, length)
|
|
|
17401
17454
|
{ href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
17402
17455
|
authorName
|
|
17403
17456
|
),
|
|
17404
|
-
length !== index + 1 && '
|
|
17457
|
+
length !== index + 1 && ', '
|
|
17405
17458
|
);
|
|
17406
17459
|
} else if (authorName) {
|
|
17407
17460
|
return React__default.createElement(
|
|
17408
17461
|
'span',
|
|
17409
17462
|
{ key: index },
|
|
17410
17463
|
authorName,
|
|
17411
|
-
length !== index + 1 && '
|
|
17464
|
+
length !== index + 1 && ', '
|
|
17412
17465
|
);
|
|
17413
17466
|
}
|
|
17414
17467
|
};
|
|
@@ -26,7 +26,7 @@ var AuthorComponent = function AuthorComponent(_ref) {
|
|
|
26
26
|
{ href: '/authors/' + url.current, className: 'text-muted' },
|
|
27
27
|
displayName
|
|
28
28
|
),
|
|
29
|
-
length !== index + 1 && '
|
|
29
|
+
length !== index + 1 && ', '
|
|
30
30
|
);
|
|
31
31
|
} else if (displayName) {
|
|
32
32
|
return React__default.createElement(
|
|
@@ -41,11 +41,7 @@ var AuthorComponent = function AuthorComponent(_ref) {
|
|
|
41
41
|
'span',
|
|
42
42
|
{ className: 'text-muted' },
|
|
43
43
|
displayName,
|
|
44
|
-
length !== index + 1 &&
|
|
45
|
-
'span',
|
|
46
|
-
{ className: 'author-seperator' },
|
|
47
|
-
','
|
|
48
|
-
)
|
|
44
|
+
length !== index + 1 && ', '
|
|
49
45
|
)
|
|
50
46
|
);
|
|
51
47
|
}
|
|
@@ -86,7 +82,7 @@ var AuthorComponent = function AuthorComponent(_ref) {
|
|
|
86
82
|
React__default.createElement(
|
|
87
83
|
'style',
|
|
88
84
|
{ jsx: true },
|
|
89
|
-
'\n #author-sec' + index + ' {\n line-height: 25px;\n position: relative;\n height: auto;\n // max-height: 50px;\n }\n .hide-content {\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n }\n #overlay-content' + index + ' {\n position: absolute;\n cursor: pointer;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n z-index: 1000;\n }\n
|
|
85
|
+
'\n #author-sec' + index + ' {\n line-height: 25px;\n position: relative;\n height: auto;\n // max-height: 50px;\n }\n .hide-content {\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n }\n #overlay-content' + index + ' {\n position: absolute;\n cursor: pointer;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n z-index: 1000;\n }\n '
|
|
90
86
|
)
|
|
91
87
|
);
|
|
92
88
|
};
|
|
@@ -16,7 +16,7 @@ import { L as LazyLoad } from './index-5f9f807a.js';
|
|
|
16
16
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
17
17
|
import { A as ADInfeed } from './ADInfeed-88c335d9.js';
|
|
18
18
|
import { g as get_1 } from './get-53653403.js';
|
|
19
|
-
import { A as AuthorComponent } from './AuthorComponent-
|
|
19
|
+
import { A as AuthorComponent } from './AuthorComponent-c9e46673.js';
|
|
20
20
|
|
|
21
21
|
var Dfp = React__default.lazy(function () {
|
|
22
22
|
return import('./Dfp-3b3273ee.js');
|
package/dist/esm/GridContent.js
CHANGED
|
@@ -27,5 +27,5 @@ import './AdSlot-971ce41c.js';
|
|
|
27
27
|
import './promise-5d7cd78a.js';
|
|
28
28
|
import './ADInfeed-88c335d9.js';
|
|
29
29
|
import './get-53653403.js';
|
|
30
|
-
export { G as default } from './GridContent-
|
|
31
|
-
import './AuthorComponent-
|
|
30
|
+
export { G as default } from './GridContent-4a5cef9e.js';
|
|
31
|
+
import './AuthorComponent-c9e46673.js';
|
|
@@ -11,7 +11,7 @@ import 'react-dom';
|
|
|
11
11
|
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
12
12
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
13
13
|
import './slicedToArray-04e02710.js';
|
|
14
|
-
import { A as AuthorComponent } from './AuthorComponent-
|
|
14
|
+
import { A as AuthorComponent } from './AuthorComponent-c9e46673.js';
|
|
15
15
|
import Badge from 'react-bootstrap/Badge';
|
|
16
16
|
|
|
17
17
|
var urlFor = function urlFor(source, client) {
|
|
@@ -21,7 +21,7 @@ import { _ as _slicedToArray } from './slicedToArray-04e02710.js';
|
|
|
21
21
|
import './AdSlot-971ce41c.js';
|
|
22
22
|
import './promise-5d7cd78a.js';
|
|
23
23
|
import { A as ADInfeed } from './ADInfeed-88c335d9.js';
|
|
24
|
-
import { A as AuthorComponent } from './AuthorComponent-
|
|
24
|
+
import { A as AuthorComponent } from './AuthorComponent-c9e46673.js';
|
|
25
25
|
import { Container, Media } from 'react-bootstrap';
|
|
26
26
|
|
|
27
27
|
var urlFor = function urlFor(source, builder) {
|
package/dist/esm/index.js
CHANGED
|
@@ -29,8 +29,8 @@ import { _ as _anInstance, a as _forOf, b as _redefineAll, c as _setSpecies } fr
|
|
|
29
29
|
import { A as ADInfeed } from './ADInfeed-88c335d9.js';
|
|
30
30
|
export { default as DeckContent } from './DeckContent.js';
|
|
31
31
|
import { i as isFunction_1, a as isArray_1, _ as _arrayMap } from './get-53653403.js';
|
|
32
|
-
export { A as AD, G as GridContent } from './GridContent-
|
|
33
|
-
import { A as AuthorComponent } from './AuthorComponent-
|
|
32
|
+
export { A as AD, G as GridContent } from './GridContent-4a5cef9e.js';
|
|
33
|
+
import { A as AuthorComponent } from './AuthorComponent-c9e46673.js';
|
|
34
34
|
export { default as DeckQueue } from './DeckQueue.js';
|
|
35
35
|
import 'react-bootstrap/Media';
|
|
36
36
|
export { default as ThumbnailCard } from './ThumbnailCard.js';
|
|
@@ -14231,6 +14231,54 @@ var NativeAd = function NativeAd(props) {
|
|
|
14231
14231
|
);
|
|
14232
14232
|
};
|
|
14233
14233
|
|
|
14234
|
+
var urlFor$4 = function urlFor(source, client) {
|
|
14235
|
+
var builder = imageUrlBuilder(client);
|
|
14236
|
+
return builder.image(source).auto('format');
|
|
14237
|
+
};
|
|
14238
|
+
|
|
14239
|
+
var MultiFigure = function MultiFigure(props) {
|
|
14240
|
+
var images = props.node.images,
|
|
14241
|
+
client = props.client;
|
|
14242
|
+
|
|
14243
|
+
|
|
14244
|
+
if (images && images.length > 0) {
|
|
14245
|
+
return React__default.createElement(
|
|
14246
|
+
'div',
|
|
14247
|
+
{ className: 'multi-figure-container' },
|
|
14248
|
+
React__default.createElement(
|
|
14249
|
+
Row$1,
|
|
14250
|
+
{ noGutters: true },
|
|
14251
|
+
images.map(function (image, index) {
|
|
14252
|
+
return React__default.createElement(
|
|
14253
|
+
Col$1,
|
|
14254
|
+
{ xs: 12, md: 12 / images.length, key: index },
|
|
14255
|
+
React__default.createElement(
|
|
14256
|
+
'a',
|
|
14257
|
+
_extends$2({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'text' } }),
|
|
14258
|
+
React__default.createElement(
|
|
14259
|
+
'div',
|
|
14260
|
+
null,
|
|
14261
|
+
React__default.createElement('img', { className: 'multi-figure-image', src: urlFor$4(image.asset, client).url(), alt: image.alt }),
|
|
14262
|
+
image.caption && React__default.createElement(
|
|
14263
|
+
'p',
|
|
14264
|
+
{ className: 'multi-figure-caption' },
|
|
14265
|
+
image.caption
|
|
14266
|
+
)
|
|
14267
|
+
)
|
|
14268
|
+
)
|
|
14269
|
+
);
|
|
14270
|
+
})
|
|
14271
|
+
),
|
|
14272
|
+
React__default.createElement(
|
|
14273
|
+
'style',
|
|
14274
|
+
{ jsx: 'true' },
|
|
14275
|
+
'\n .multi-figure-container {\n margin-bottom: 8px;\n }\n .multi-figure-image {\n width: 100%;\n height: auto;\n max-height: 180px;\n min-height: 150px;\n object-fit: cover;\n }\n .multi-figure-caption {\n font-size: 90%;\n color: #6c757d;\n }\n\n @media only screen and (min-width: 768px) {\n .multi-figure-container [class*=\'col-\'] + [class*=\'col-\'] {\n padding-left: 10px;\n }\n }\n '
|
|
14276
|
+
)
|
|
14277
|
+
);
|
|
14278
|
+
}
|
|
14279
|
+
return null;
|
|
14280
|
+
};
|
|
14281
|
+
|
|
14234
14282
|
var Figure = dynamic(function () {
|
|
14235
14283
|
return import('./Figure-7ba30e53.js');
|
|
14236
14284
|
}, { ssr: false });
|
|
@@ -14297,70 +14345,75 @@ var getSerializers = function getSerializers() {
|
|
|
14297
14345
|
|
|
14298
14346
|
return React__default.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag });
|
|
14299
14347
|
},
|
|
14300
|
-
|
|
14348
|
+
multifigure: function multifigure(_ref4) {
|
|
14301
14349
|
var node = _ref4.node;
|
|
14350
|
+
|
|
14351
|
+
return React__default.createElement(MultiFigure, { node: node, client: client });
|
|
14352
|
+
},
|
|
14353
|
+
slideshow: function slideshow(_ref5) {
|
|
14354
|
+
var node = _ref5.node;
|
|
14302
14355
|
var slides = node.slides;
|
|
14303
14356
|
|
|
14304
14357
|
return React__default.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
14305
14358
|
},
|
|
14306
|
-
sidebar: function sidebar(
|
|
14307
|
-
var node =
|
|
14359
|
+
sidebar: function sidebar(_ref6) {
|
|
14360
|
+
var node = _ref6.node;
|
|
14308
14361
|
var caption = node.caption,
|
|
14309
14362
|
content = node.content;
|
|
14310
14363
|
|
|
14311
14364
|
return React__default.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
14312
14365
|
},
|
|
14313
|
-
datatable: function datatable(
|
|
14314
|
-
var node =
|
|
14366
|
+
datatable: function datatable(_ref7) {
|
|
14367
|
+
var node = _ref7.node;
|
|
14315
14368
|
var table = node.table;
|
|
14316
14369
|
|
|
14317
14370
|
return React__default.createElement(TableShow, { rows: table.rows });
|
|
14318
14371
|
},
|
|
14319
|
-
media: function media(
|
|
14320
|
-
var node =
|
|
14372
|
+
media: function media(_ref8) {
|
|
14373
|
+
var node = _ref8.node;
|
|
14321
14374
|
|
|
14322
14375
|
return React__default.createElement(Media, { node: node, client: client });
|
|
14323
14376
|
},
|
|
14324
|
-
iframe: function iframe(
|
|
14325
|
-
var node =
|
|
14377
|
+
iframe: function iframe(_ref9) {
|
|
14378
|
+
var node = _ref9.node;
|
|
14326
14379
|
|
|
14327
14380
|
return React__default.createElement(IFrame, { url: node.url });
|
|
14328
14381
|
},
|
|
14329
|
-
video: function video(
|
|
14330
|
-
var node =
|
|
14382
|
+
video: function video(_ref10) {
|
|
14383
|
+
var node = _ref10.node;
|
|
14331
14384
|
|
|
14332
14385
|
return React__default.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {} });
|
|
14333
14386
|
},
|
|
14334
|
-
audio: function audio(
|
|
14335
|
-
var node =
|
|
14387
|
+
audio: function audio(_ref11) {
|
|
14388
|
+
var node = _ref11.node;
|
|
14336
14389
|
|
|
14337
14390
|
return React__default.createElement(Audio, { node: node });
|
|
14338
14391
|
},
|
|
14339
|
-
poll: function poll(
|
|
14340
|
-
var node =
|
|
14392
|
+
poll: function poll(_ref12) {
|
|
14393
|
+
var node = _ref12.node;
|
|
14341
14394
|
|
|
14342
14395
|
return React__default.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, onVote: onVote, showVotes: showVotes, getSerializers: getSerializers(props) });
|
|
14343
14396
|
},
|
|
14344
|
-
quiz: function quiz(
|
|
14345
|
-
var node =
|
|
14397
|
+
quiz: function quiz(_ref13) {
|
|
14398
|
+
var node = _ref13.node;
|
|
14346
14399
|
var quizzes = node.quizzes;
|
|
14347
14400
|
|
|
14348
14401
|
return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
14349
14402
|
},
|
|
14350
|
-
leads: function leads(
|
|
14351
|
-
var node =
|
|
14403
|
+
leads: function leads(_ref14) {
|
|
14404
|
+
var node = _ref14.node;
|
|
14352
14405
|
var leadID = node.leadID;
|
|
14353
14406
|
|
|
14354
14407
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
14355
14408
|
return React__default.createElement(Leads, { url: url });
|
|
14356
14409
|
},
|
|
14357
|
-
slideshows: function slideshows(
|
|
14358
|
-
var node =
|
|
14410
|
+
slideshows: function slideshows(_ref15) {
|
|
14411
|
+
var node = _ref15.node;
|
|
14359
14412
|
|
|
14360
14413
|
return React__default.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
14361
14414
|
},
|
|
14362
|
-
nativeAd: function nativeAd(
|
|
14363
|
-
var node =
|
|
14415
|
+
nativeAd: function nativeAd(_ref16) {
|
|
14416
|
+
var node = _ref16.node;
|
|
14364
14417
|
|
|
14365
14418
|
return React__default.createElement(NativeAd, { node: node });
|
|
14366
14419
|
}
|
|
@@ -14393,32 +14446,32 @@ var getSerializers = function getSerializers() {
|
|
|
14393
14446
|
children
|
|
14394
14447
|
);
|
|
14395
14448
|
},
|
|
14396
|
-
alignleft: function alignleft(
|
|
14397
|
-
var children =
|
|
14449
|
+
alignleft: function alignleft(_ref17) {
|
|
14450
|
+
var children = _ref17.children;
|
|
14398
14451
|
return React__default.createElement(
|
|
14399
14452
|
'div',
|
|
14400
14453
|
{ style: { textAlign: 'left' } },
|
|
14401
14454
|
children
|
|
14402
14455
|
);
|
|
14403
14456
|
},
|
|
14404
|
-
alignright: function alignright(
|
|
14405
|
-
var children =
|
|
14457
|
+
alignright: function alignright(_ref18) {
|
|
14458
|
+
var children = _ref18.children;
|
|
14406
14459
|
return React__default.createElement(
|
|
14407
14460
|
'div',
|
|
14408
14461
|
{ style: { textAlign: 'right' } },
|
|
14409
14462
|
children
|
|
14410
14463
|
);
|
|
14411
14464
|
},
|
|
14412
|
-
aligncenter: function aligncenter(
|
|
14413
|
-
var children =
|
|
14465
|
+
aligncenter: function aligncenter(_ref19) {
|
|
14466
|
+
var children = _ref19.children;
|
|
14414
14467
|
return React__default.createElement(
|
|
14415
14468
|
'div',
|
|
14416
14469
|
{ style: { textAlign: 'center' } },
|
|
14417
14470
|
children
|
|
14418
14471
|
);
|
|
14419
14472
|
},
|
|
14420
|
-
alignjustify: function alignjustify(
|
|
14421
|
-
var children =
|
|
14473
|
+
alignjustify: function alignjustify(_ref20) {
|
|
14474
|
+
var children = _ref20.children;
|
|
14422
14475
|
return React__default.createElement(
|
|
14423
14476
|
'div',
|
|
14424
14477
|
{ style: { textAlign: 'justify' } },
|
|
@@ -14625,13 +14678,13 @@ var SetCookie = function SetCookie(key, value) {
|
|
|
14625
14678
|
js_cookie.set(key, value, { expires: 1, sameSite: 'none', secure: true });
|
|
14626
14679
|
};
|
|
14627
14680
|
|
|
14628
|
-
var urlFor$
|
|
14681
|
+
var urlFor$5 = function urlFor(source, client) {
|
|
14629
14682
|
var builder = imageUrlBuilder(client);
|
|
14630
14683
|
return builder.image(source).auto('format');
|
|
14631
14684
|
};
|
|
14632
14685
|
|
|
14633
14686
|
var renderCardImage$1 = function renderCardImage(thumbnail, client, imageHeight, imageWidth) {
|
|
14634
|
-
var url = urlFor$
|
|
14687
|
+
var url = urlFor$5(thumbnail, client);
|
|
14635
14688
|
if (imageHeight) url = url.height(imageHeight);
|
|
14636
14689
|
if (imageWidth) url = url.width(imageWidth);
|
|
14637
14690
|
return url.url();
|
|
@@ -17398,14 +17451,14 @@ var renderAuthor$1 = function renderAuthor(authorName, authorURL, index, length)
|
|
|
17398
17451
|
{ href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
17399
17452
|
authorName
|
|
17400
17453
|
),
|
|
17401
|
-
length !== index + 1 && '
|
|
17454
|
+
length !== index + 1 && ', '
|
|
17402
17455
|
);
|
|
17403
17456
|
} else if (authorName) {
|
|
17404
17457
|
return React__default.createElement(
|
|
17405
17458
|
'span',
|
|
17406
17459
|
{ key: index },
|
|
17407
17460
|
authorName,
|
|
17408
|
-
length !== index + 1 && '
|
|
17461
|
+
length !== index + 1 && ', '
|
|
17409
17462
|
);
|
|
17410
17463
|
}
|
|
17411
17464
|
};
|