@mjhls/mjh-framework 1.0.338 → 1.0.339
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/{ADInfeed-b042a194.js → ADInfeed-43996091.js} +10 -1
- package/dist/cjs/DeckContent.js +4 -3
- package/dist/cjs/DeckQueue.js +3 -2
- package/dist/cjs/{Dfp-9ede68c7.js → Dfp-e77be4e4.js} +1 -1
- package/dist/cjs/{GridContent-609021de.js → GridContent-7a85d904.js} +8 -7
- package/dist/cjs/GridContent.js +4 -3
- package/dist/cjs/IssueContentDeck.js +168 -43
- package/dist/cjs/MasterDeck.js +2 -1
- package/dist/cjs/QueueDeckExpanded.js +6 -5
- package/dist/cjs/VideoSeriesListing.js +2 -1
- package/dist/cjs/index.js +19 -18
- package/dist/cjs/{visibility-sensor-c2ccc22d.js → moment-66a6a284.js} +0 -1012
- package/dist/cjs/visibility-sensor-43e0b37c.js +1016 -0
- package/dist/esm/{ADInfeed-aadcfc25.js → ADInfeed-ca26fca6.js} +10 -1
- package/dist/esm/DeckContent.js +3 -2
- package/dist/esm/DeckQueue.js +2 -1
- package/dist/esm/{Dfp-9293acfb.js → Dfp-7c317aa4.js} +1 -1
- package/dist/esm/{GridContent-f2278de3.js → GridContent-e2b1de22.js} +4 -3
- package/dist/esm/GridContent.js +4 -3
- package/dist/esm/IssueContentDeck.js +168 -43
- package/dist/esm/MasterDeck.js +2 -1
- package/dist/esm/QueueDeckExpanded.js +3 -2
- package/dist/esm/VideoSeriesListing.js +2 -1
- package/dist/esm/index.js +4 -3
- package/dist/esm/{visibility-sensor-3cea5efb.js → moment-12415288.js} +2 -1009
- package/dist/esm/visibility-sensor-49d5805d.js +1010 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -41,7 +41,16 @@ var ADInfeed = function ADInfeed(_ref) {
|
|
|
41
41
|
React__default.createElement(
|
|
42
42
|
Card,
|
|
43
43
|
{ className: 'ad-wrapper', style: { display: 'block !important', flexDirection: index === 0 || index % 4 === 0 ? 'top' : 'row' } },
|
|
44
|
-
React__default.createElement(AdSlot.DFPAdSlot, {
|
|
44
|
+
React__default.createElement(AdSlot.DFPAdSlot, {
|
|
45
|
+
className: className,
|
|
46
|
+
networkID: networkID,
|
|
47
|
+
adUnit: adUnit,
|
|
48
|
+
slotId: slotId,
|
|
49
|
+
targeting: targeting,
|
|
50
|
+
sizes: sizes,
|
|
51
|
+
checkIsAdFound: checkIsAdFound,
|
|
52
|
+
refreshFlag: false
|
|
53
|
+
})
|
|
45
54
|
),
|
|
46
55
|
React__default.createElement(
|
|
47
56
|
'style',
|
package/dist/cjs/DeckContent.js
CHANGED
|
@@ -17,9 +17,10 @@ var Container = _interopDefault(require('react-bootstrap/Container'));
|
|
|
17
17
|
var Row = _interopDefault(require('react-bootstrap/Row'));
|
|
18
18
|
var Col = _interopDefault(require('react-bootstrap/Col'));
|
|
19
19
|
var Card = _interopDefault(require('react-bootstrap/Card'));
|
|
20
|
-
var
|
|
20
|
+
var moment = require('./moment-66a6a284.js');
|
|
21
21
|
var Router = require('next/router');
|
|
22
22
|
var Router__default = _interopDefault(Router);
|
|
23
|
+
var visibilitySensor = require('./visibility-sensor-43e0b37c.js');
|
|
23
24
|
require('react-dom');
|
|
24
25
|
var index = require('./index-b5eb3ff8.js');
|
|
25
26
|
var index$1 = require('./index-fa0fb52c.js');
|
|
@@ -27,7 +28,7 @@ var entities = require('./entities-310b46ee.js');
|
|
|
27
28
|
require('./slicedToArray-879ab2fb.js');
|
|
28
29
|
require('./AdSlot-c5bff604.js');
|
|
29
30
|
require('./promise-3b44b2a3.js');
|
|
30
|
-
var ADInfeed = require('./ADInfeed-
|
|
31
|
+
var ADInfeed = require('./ADInfeed-43996091.js');
|
|
31
32
|
|
|
32
33
|
var DeckContent = function (_React$Component) {
|
|
33
34
|
inherits$2._inherits(DeckContent, _React$Component);
|
|
@@ -324,7 +325,7 @@ var DeckContent = function (_React$Component) {
|
|
|
324
325
|
_this.props.showPublished && row.published && React__default.createElement(
|
|
325
326
|
Card.Subtitle,
|
|
326
327
|
null,
|
|
327
|
-
|
|
328
|
+
moment.moment(row.published).format('MMMM DD, YYYY')
|
|
328
329
|
),
|
|
329
330
|
_this.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && row.authorMapping.map(function (authorDetail, index) {
|
|
330
331
|
return _this.renderAuthor(authorDetail, index, row.authorMapping.length);
|
package/dist/cjs/DeckQueue.js
CHANGED
|
@@ -17,9 +17,10 @@ var Container = _interopDefault(require('react-bootstrap/Container'));
|
|
|
17
17
|
var Row = _interopDefault(require('react-bootstrap/Row'));
|
|
18
18
|
var Col = _interopDefault(require('react-bootstrap/Col'));
|
|
19
19
|
var Card = _interopDefault(require('react-bootstrap/Card'));
|
|
20
|
-
var
|
|
20
|
+
var moment = require('./moment-66a6a284.js');
|
|
21
21
|
var Router = require('next/router');
|
|
22
22
|
var Router__default = _interopDefault(Router);
|
|
23
|
+
var visibilitySensor = require('./visibility-sensor-43e0b37c.js');
|
|
23
24
|
require('react-dom');
|
|
24
25
|
var index = require('./index-b5eb3ff8.js');
|
|
25
26
|
var index$1 = require('./index-fa0fb52c.js');
|
|
@@ -266,7 +267,7 @@ var DeckQueue = function (_React$Component) {
|
|
|
266
267
|
_this2.props.showPublished && row.published && React__default.createElement(
|
|
267
268
|
Card.Subtitle,
|
|
268
269
|
null,
|
|
269
|
-
|
|
270
|
+
moment.moment(row.published).format('MMMM DD, YYYY')
|
|
270
271
|
),
|
|
271
272
|
_this2.props.showRecent && row.recent && row.recent.title && React__default.createElement(
|
|
272
273
|
Card.Subtitle,
|
|
@@ -9,7 +9,7 @@ var debounce = require('./debounce-528ad412.js');
|
|
|
9
9
|
var React = require('react');
|
|
10
10
|
var React__default = _interopDefault(React);
|
|
11
11
|
var PropTypes = _interopDefault(require('prop-types'));
|
|
12
|
-
var visibilitySensor = require('./visibility-sensor-
|
|
12
|
+
var visibilitySensor = require('./visibility-sensor-43e0b37c.js');
|
|
13
13
|
require('react-dom');
|
|
14
14
|
var slicedToArray = require('./slicedToArray-879ab2fb.js');
|
|
15
15
|
|
|
@@ -13,17 +13,18 @@ var Container = _interopDefault(require('react-bootstrap/Container'));
|
|
|
13
13
|
var Row = _interopDefault(require('react-bootstrap/Row'));
|
|
14
14
|
var Col = _interopDefault(require('react-bootstrap/Col'));
|
|
15
15
|
var Card = _interopDefault(require('react-bootstrap/Card'));
|
|
16
|
-
var
|
|
16
|
+
var moment = require('./moment-66a6a284.js');
|
|
17
17
|
var Router = require('next/router');
|
|
18
18
|
var Router__default = _interopDefault(Router);
|
|
19
|
+
var visibilitySensor = require('./visibility-sensor-43e0b37c.js');
|
|
19
20
|
var index = require('./index-b5eb3ff8.js');
|
|
20
21
|
var index$1 = require('./index-fa0fb52c.js');
|
|
21
22
|
var entities = require('./entities-310b46ee.js');
|
|
22
|
-
var ADInfeed = require('./ADInfeed-
|
|
23
|
+
var ADInfeed = require('./ADInfeed-43996091.js');
|
|
23
24
|
var get$1 = require('./get-3b23d857.js');
|
|
24
25
|
|
|
25
26
|
var Dfp = React__default.lazy(function () {
|
|
26
|
-
return Promise.resolve().then(function () { return require('./Dfp-
|
|
27
|
+
return Promise.resolve().then(function () { return require('./Dfp-e77be4e4.js'); });
|
|
27
28
|
});
|
|
28
29
|
|
|
29
30
|
var AD = function AD(props) {
|
|
@@ -316,7 +317,7 @@ var GridContent = function (_React$Component) {
|
|
|
316
317
|
_this2.props.showPublished && row.published && React__default.createElement(
|
|
317
318
|
Card.Subtitle,
|
|
318
319
|
{ style: { marginTop: 0 } },
|
|
319
|
-
|
|
320
|
+
moment.moment(row.published).format('MMMM DD, YYYY')
|
|
320
321
|
),
|
|
321
322
|
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && row.authorMapping.map(function (authorDetail, index) {
|
|
322
323
|
return _this2.renderAuthor(authorDetail, index, row.authorMapping.length);
|
|
@@ -430,7 +431,7 @@ var GridContent = function (_React$Component) {
|
|
|
430
431
|
_this2.props.showPublished && row.published && React__default.createElement(
|
|
431
432
|
Card.Subtitle,
|
|
432
433
|
{ style: { marginTop: 0 } },
|
|
433
|
-
|
|
434
|
+
moment.moment(row.published).format('MMMM DD, YYYY')
|
|
434
435
|
),
|
|
435
436
|
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && row.authorMapping.map(function (authorDetail, index) {
|
|
436
437
|
return _this2.renderAuthor(authorDetail, index, row.authorMapping.length);
|
|
@@ -492,7 +493,7 @@ var GridContent = function (_React$Component) {
|
|
|
492
493
|
_this2.props.showPublished && row.published && React__default.createElement(
|
|
493
494
|
Card.Subtitle,
|
|
494
495
|
{ style: { marginTop: 0 } },
|
|
495
|
-
|
|
496
|
+
moment.moment(row.published).format('MMMM DD, YYYY')
|
|
496
497
|
),
|
|
497
498
|
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && row.authorMapping.map(function (authorDetail, index) {
|
|
498
499
|
return _this2.renderAuthor(authorDetail, index, row.authorMapping.length);
|
|
@@ -552,7 +553,7 @@ var GridContent = function (_React$Component) {
|
|
|
552
553
|
_this2.props.showPublished && row.published && React__default.createElement(
|
|
553
554
|
Card.Subtitle,
|
|
554
555
|
{ style: { marginTop: 0 } },
|
|
555
|
-
|
|
556
|
+
moment.moment(row.published).format('MMMM DD, YYYY')
|
|
556
557
|
),
|
|
557
558
|
_this2.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && row.authorMapping.map(function (authorDetail, index) {
|
|
558
559
|
return _this2.renderAuthor(authorDetail, index, row.authorMapping.length);
|
package/dist/cjs/GridContent.js
CHANGED
|
@@ -14,8 +14,9 @@ require('react-bootstrap/Container');
|
|
|
14
14
|
require('react-bootstrap/Row');
|
|
15
15
|
require('react-bootstrap/Col');
|
|
16
16
|
require('react-bootstrap/Card');
|
|
17
|
-
require('./
|
|
17
|
+
require('./moment-66a6a284.js');
|
|
18
18
|
require('next/router');
|
|
19
|
+
require('./visibility-sensor-43e0b37c.js');
|
|
19
20
|
require('react-dom');
|
|
20
21
|
require('./index-b5eb3ff8.js');
|
|
21
22
|
require('./index-fa0fb52c.js');
|
|
@@ -23,9 +24,9 @@ require('./entities-310b46ee.js');
|
|
|
23
24
|
require('./slicedToArray-879ab2fb.js');
|
|
24
25
|
require('./AdSlot-c5bff604.js');
|
|
25
26
|
require('./promise-3b44b2a3.js');
|
|
26
|
-
require('./ADInfeed-
|
|
27
|
+
require('./ADInfeed-43996091.js');
|
|
27
28
|
require('./get-3b23d857.js');
|
|
28
|
-
var GridContent = require('./GridContent-
|
|
29
|
+
var GridContent = require('./GridContent-7a85d904.js');
|
|
29
30
|
|
|
30
31
|
|
|
31
32
|
|
|
@@ -9,70 +9,195 @@ require('prop-types');
|
|
|
9
9
|
var Row = _interopDefault(require('react-bootstrap/Row'));
|
|
10
10
|
var Col = _interopDefault(require('react-bootstrap/Col'));
|
|
11
11
|
var Card = _interopDefault(require('react-bootstrap/Card'));
|
|
12
|
+
var moment = require('./moment-66a6a284.js');
|
|
12
13
|
require('react-dom');
|
|
13
14
|
var index = require('./index-b5eb3ff8.js');
|
|
14
15
|
var index$1 = require('./index-fa0fb52c.js');
|
|
15
16
|
var Badge = _interopDefault(require('react-bootstrap/Badge'));
|
|
16
17
|
|
|
17
|
-
var
|
|
18
|
-
var
|
|
18
|
+
var urlFor = function urlFor(source, client) {
|
|
19
|
+
var builder = index.imageUrlBuilder(client);
|
|
20
|
+
return builder.image(source).auto('format');
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
var renderCardImage = function renderCardImage(props) {
|
|
24
|
+
var coverImage = props.coverImage,
|
|
19
25
|
imageHeight = props.imageHeight,
|
|
20
26
|
imageWidth = props.imageWidth,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
27
|
+
client = props.client,
|
|
28
|
+
Settings = props.Settings;
|
|
24
29
|
|
|
25
|
-
|
|
26
|
-
var
|
|
27
|
-
|
|
28
|
-
|
|
30
|
+
if (coverImage && coverImage.asset) {
|
|
31
|
+
var url = urlFor(coverImage, client);
|
|
32
|
+
if (imageHeight) url = url.height(imageHeight);
|
|
33
|
+
if (imageWidth) url = url.width(imageWidth);
|
|
34
|
+
return url.url();
|
|
35
|
+
} else {
|
|
36
|
+
return Settings.logo;
|
|
37
|
+
}
|
|
38
|
+
};
|
|
29
39
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
+
var PublicationDeckStack = function PublicationDeckStack(props) {
|
|
41
|
+
var title = props.title,
|
|
42
|
+
coverImage = props.coverImage,
|
|
43
|
+
link = props.link,
|
|
44
|
+
published = props.published,
|
|
45
|
+
author = props.author,
|
|
46
|
+
summary = props.summary,
|
|
47
|
+
section = props.section,
|
|
48
|
+
imageHeight = props.imageHeight,
|
|
49
|
+
imageWidth = props.imageWidth,
|
|
50
|
+
client = props.client,
|
|
51
|
+
Settings = props.Settings,
|
|
52
|
+
key = props.key;
|
|
40
53
|
|
|
41
54
|
return React__default.createElement(
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
55
|
+
Col,
|
|
56
|
+
{ md: 12, lg: 12, style: { display: 'flex', flex: '1 0 auto' }, key: key },
|
|
57
|
+
React__default.createElement(
|
|
58
|
+
Card,
|
|
59
|
+
{ style: { boxShadow: 'none', borderBottom: '1px solid #aaa', paddingBottom: '1rem' } },
|
|
60
|
+
React__default.createElement(
|
|
61
|
+
'a',
|
|
62
|
+
{ href: '/view/' + link },
|
|
63
|
+
coverImage && React__default.createElement(
|
|
64
|
+
index$1.LazyLoad,
|
|
65
|
+
{ height: imageHeight },
|
|
66
|
+
React__default.createElement(Card.Img, {
|
|
67
|
+
variant: 'right',
|
|
68
|
+
src: renderCardImage({ coverImage: coverImage, imageHeight: imageHeight, imageWidth: imageWidth, client: client, Settings: Settings }),
|
|
69
|
+
alt: title,
|
|
70
|
+
style: { width: '170px', height: 'auto', objectFit: 'contain', padding: '1rem', float: 'left', marginTop: '1rem', paddingBottom: '1rem' }
|
|
71
|
+
})
|
|
72
|
+
),
|
|
48
73
|
React__default.createElement(
|
|
49
|
-
Card,
|
|
74
|
+
Card.Body,
|
|
50
75
|
null,
|
|
76
|
+
section ? React__default.createElement(
|
|
77
|
+
Badge,
|
|
78
|
+
{ variant: 'success' },
|
|
79
|
+
section.name
|
|
80
|
+
) : '',
|
|
51
81
|
React__default.createElement(
|
|
52
|
-
|
|
53
|
-
{
|
|
54
|
-
row.thumbnail && React__default.createElement(
|
|
55
|
-
index$1.LazyLoad,
|
|
56
|
-
{ height: imageHeight },
|
|
57
|
-
React__default.createElement(Card.Img, { variant: 'top', src: renderCardImage(row.thumbnail), alt: row.title })
|
|
58
|
-
),
|
|
82
|
+
Card.Title,
|
|
83
|
+
{ style: { color: '#121212', fontSize: '1.1rem' } },
|
|
59
84
|
React__default.createElement(
|
|
60
|
-
|
|
85
|
+
'span',
|
|
61
86
|
null,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
87
|
+
title
|
|
88
|
+
),
|
|
89
|
+
React__default.createElement('br', null),
|
|
90
|
+
React__default.createElement(
|
|
91
|
+
'div',
|
|
92
|
+
{ style: { float: 'left', marginTop: '10px' } },
|
|
67
93
|
React__default.createElement(
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
94
|
+
'p',
|
|
95
|
+
{ style: { color: '#484848', fontSize: '.9rem', fontWeight: '600' }, className: 'mb-0' },
|
|
96
|
+
moment.moment(published).format('MMMM DD, YYYY ')
|
|
97
|
+
),
|
|
98
|
+
author.length > 0 && React__default.createElement(
|
|
99
|
+
'p',
|
|
100
|
+
{ style: { color: '#484848', fontSize: '.9rem', fontWeight: '600' }, className: 'mb-0' },
|
|
101
|
+
'By ',
|
|
102
|
+
author
|
|
71
103
|
)
|
|
72
104
|
)
|
|
105
|
+
),
|
|
106
|
+
React__default.createElement(
|
|
107
|
+
'p',
|
|
108
|
+
{ style: { float: 'left' } },
|
|
109
|
+
summary
|
|
110
|
+
)
|
|
111
|
+
)
|
|
112
|
+
)
|
|
113
|
+
)
|
|
114
|
+
);
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
var PublicationDeckBlock = function PublicationDeckBlock(props) {
|
|
118
|
+
var title = props.title,
|
|
119
|
+
coverImage = props.coverImage,
|
|
120
|
+
link = props.link,
|
|
121
|
+
section = props.section,
|
|
122
|
+
imageHeight = props.imageHeight,
|
|
123
|
+
imageWidth = props.imageWidth,
|
|
124
|
+
client = props.client,
|
|
125
|
+
Settings = props.Settings,
|
|
126
|
+
key = props.key;
|
|
127
|
+
|
|
128
|
+
return React__default.createElement(
|
|
129
|
+
Col,
|
|
130
|
+
{ md: 12, lg: 6, style: { display: 'flex', flex: '1 0 auto' }, key: key },
|
|
131
|
+
React__default.createElement(
|
|
132
|
+
Card,
|
|
133
|
+
null,
|
|
134
|
+
React__default.createElement(
|
|
135
|
+
'a',
|
|
136
|
+
{ href: '/view/' + link },
|
|
137
|
+
coverImage && React__default.createElement(
|
|
138
|
+
index$1.LazyLoad,
|
|
139
|
+
{ height: imageHeight },
|
|
140
|
+
React__default.createElement(Card.Img, { variant: 'top', src: renderCardImage({ coverImage: coverImage, imageHeight: imageHeight, imageWidth: imageWidth, client: client, Settings: Settings }), alt: title })
|
|
141
|
+
),
|
|
142
|
+
React__default.createElement(
|
|
143
|
+
Card.Body,
|
|
144
|
+
null,
|
|
145
|
+
section && section.name ? React__default.createElement(
|
|
146
|
+
Badge,
|
|
147
|
+
{ variant: 'success' },
|
|
148
|
+
section && section.name
|
|
149
|
+
) : '',
|
|
150
|
+
React__default.createElement(
|
|
151
|
+
Card.Title,
|
|
152
|
+
null,
|
|
153
|
+
title
|
|
73
154
|
)
|
|
74
155
|
)
|
|
75
|
-
)
|
|
156
|
+
)
|
|
157
|
+
)
|
|
158
|
+
);
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
var IssueContentDeck = function IssueContentDeck(props) {
|
|
162
|
+
var data = props.data,
|
|
163
|
+
imageHeight = props.imageHeight,
|
|
164
|
+
imageWidth = props.imageWidth,
|
|
165
|
+
website = props.website,
|
|
166
|
+
client = props.client,
|
|
167
|
+
_props$variant = props.variant,
|
|
168
|
+
variant = _props$variant === undefined ? 'block' : _props$variant;
|
|
169
|
+
|
|
170
|
+
return React__default.createElement(
|
|
171
|
+
Row,
|
|
172
|
+
null,
|
|
173
|
+
data && data.length ? data.map(function (row, index) {
|
|
174
|
+
if (variant === 'stack') {
|
|
175
|
+
return row.url && row.url.current && React__default.createElement(PublicationDeckStack, {
|
|
176
|
+
key: index,
|
|
177
|
+
title: row.title,
|
|
178
|
+
coverImage: row.thumbnail,
|
|
179
|
+
link: row.url.current,
|
|
180
|
+
section: row.issueSection,
|
|
181
|
+
Settings: website,
|
|
182
|
+
imageHeight: imageHeight,
|
|
183
|
+
imageWidth: imageWidth,
|
|
184
|
+
client: client,
|
|
185
|
+
published: row.published,
|
|
186
|
+
author: row.authorMapping.displayName || '',
|
|
187
|
+
summary: row.summary
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
return React__default.createElement(PublicationDeckBlock, {
|
|
191
|
+
key: index,
|
|
192
|
+
title: row.title,
|
|
193
|
+
coverImage: row.thumbnail,
|
|
194
|
+
link: row.url.current,
|
|
195
|
+
section: row.issueSection,
|
|
196
|
+
Settings: website,
|
|
197
|
+
imageHeight: imageHeight,
|
|
198
|
+
imageWidth: imageWidth,
|
|
199
|
+
client: client
|
|
200
|
+
});
|
|
76
201
|
}) : React__default.createElement(
|
|
77
202
|
'div',
|
|
78
203
|
null,
|
package/dist/cjs/MasterDeck.js
CHANGED
|
@@ -17,9 +17,10 @@ var Container = _interopDefault(require('react-bootstrap/Container'));
|
|
|
17
17
|
require('react-bootstrap/Row');
|
|
18
18
|
require('react-bootstrap/Col');
|
|
19
19
|
require('react-bootstrap/Card');
|
|
20
|
-
|
|
20
|
+
require('./moment-66a6a284.js');
|
|
21
21
|
var Router = require('next/router');
|
|
22
22
|
var Router__default = _interopDefault(Router);
|
|
23
|
+
var visibilitySensor = require('./visibility-sensor-43e0b37c.js');
|
|
23
24
|
require('react-dom');
|
|
24
25
|
require('./index-b5eb3ff8.js');
|
|
25
26
|
var promise = require('./promise-3b44b2a3.js');
|
|
@@ -13,9 +13,10 @@ var React = require('react');
|
|
|
13
13
|
var React__default = _interopDefault(React);
|
|
14
14
|
require('prop-types');
|
|
15
15
|
require('react-bootstrap/Card');
|
|
16
|
-
var
|
|
16
|
+
var moment = require('./moment-66a6a284.js');
|
|
17
17
|
var Router = require('next/router');
|
|
18
18
|
var Router__default = _interopDefault(Router);
|
|
19
|
+
var visibilitySensor = require('./visibility-sensor-43e0b37c.js');
|
|
19
20
|
require('react-dom');
|
|
20
21
|
var index = require('./index-b5eb3ff8.js');
|
|
21
22
|
var index$1 = require('./index-fa0fb52c.js');
|
|
@@ -23,7 +24,7 @@ var entities = require('./entities-310b46ee.js');
|
|
|
23
24
|
var slicedToArray = require('./slicedToArray-879ab2fb.js');
|
|
24
25
|
require('./AdSlot-c5bff604.js');
|
|
25
26
|
require('./promise-3b44b2a3.js');
|
|
26
|
-
var ADInfeed = require('./ADInfeed-
|
|
27
|
+
var ADInfeed = require('./ADInfeed-43996091.js');
|
|
27
28
|
var reactBootstrap = require('react-bootstrap');
|
|
28
29
|
|
|
29
30
|
var urlFor = function urlFor(source, builder) {
|
|
@@ -255,7 +256,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
255
256
|
showPublished && article.published && React__default.createElement(
|
|
256
257
|
'p',
|
|
257
258
|
{ className: 'card-text', style: { color: 'var(--dark)', marginBottom: '.25rem' } },
|
|
258
|
-
|
|
259
|
+
moment.moment(article.published).format('MMMM DD, YYYY')
|
|
259
260
|
),
|
|
260
261
|
showAuthor && article.authorMapping && article.authorMapping.length > 0 && article.authorMapping.map(function (authorDetail, index) {
|
|
261
262
|
return renderAuthor(authorDetail, index, article.authorMapping.length);
|
|
@@ -335,7 +336,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
335
336
|
showPublished && article.published && React__default.createElement(
|
|
336
337
|
'p',
|
|
337
338
|
{ className: 'card-text', style: { color: 'var(--dark)', marginBottom: '.25rem' } },
|
|
338
|
-
|
|
339
|
+
moment.moment(article.published).format('MMMM DD, YYYY')
|
|
339
340
|
),
|
|
340
341
|
showAuthor && article.authorMapping && article.authorMapping.length > 0 && article.authorMapping.map(function (authorDetail, index) {
|
|
341
342
|
return renderAuthor(authorDetail, index, article.authorMapping.length);
|
|
@@ -416,7 +417,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
416
417
|
showPublished && article.published && React__default.createElement(
|
|
417
418
|
'p',
|
|
418
419
|
{ className: 'card-text', style: { color: 'var(--dark)', marginBottom: '.25rem' } },
|
|
419
|
-
|
|
420
|
+
moment.moment(article.published).format('MMMM DD, YYYY')
|
|
420
421
|
),
|
|
421
422
|
showAuthor && article.authorMapping && article.authorMapping.length > 0 && article.authorMapping.map(function (authorDetail, index) {
|
|
422
423
|
return renderAuthor(authorDetail, index, article.authorMapping.length);
|
|
@@ -12,9 +12,10 @@ var React = require('react');
|
|
|
12
12
|
var React__default = _interopDefault(React);
|
|
13
13
|
require('prop-types');
|
|
14
14
|
var Container = _interopDefault(require('react-bootstrap/Container'));
|
|
15
|
-
|
|
15
|
+
require('./moment-66a6a284.js');
|
|
16
16
|
var Router = require('next/router');
|
|
17
17
|
var Router__default = _interopDefault(Router);
|
|
18
|
+
var visibilitySensor = require('./visibility-sensor-43e0b37c.js');
|
|
18
19
|
require('react-dom');
|
|
19
20
|
require('./index-fa0fb52c.js');
|
|
20
21
|
require('./slicedToArray-879ab2fb.js');
|
package/dist/cjs/index.js
CHANGED
|
@@ -19,9 +19,10 @@ var Container = _interopDefault(require('react-bootstrap/Container'));
|
|
|
19
19
|
var Row = _interopDefault(require('react-bootstrap/Row'));
|
|
20
20
|
var Col = _interopDefault(require('react-bootstrap/Col'));
|
|
21
21
|
require('react-bootstrap/Card');
|
|
22
|
-
var
|
|
22
|
+
var moment = require('./moment-66a6a284.js');
|
|
23
23
|
var Router = require('next/router');
|
|
24
24
|
var Router__default = _interopDefault(Router);
|
|
25
|
+
var visibilitySensor = require('./visibility-sensor-43e0b37c.js');
|
|
25
26
|
require('react-dom');
|
|
26
27
|
var index = require('./index-b5eb3ff8.js');
|
|
27
28
|
require('./index-fa0fb52c.js');
|
|
@@ -29,10 +30,10 @@ var entities = require('./entities-310b46ee.js');
|
|
|
29
30
|
var slicedToArray = require('./slicedToArray-879ab2fb.js');
|
|
30
31
|
var AdSlot = require('./AdSlot-c5bff604.js');
|
|
31
32
|
require('./promise-3b44b2a3.js');
|
|
32
|
-
require('./ADInfeed-
|
|
33
|
+
require('./ADInfeed-43996091.js');
|
|
33
34
|
var DeckContent = require('./DeckContent.js');
|
|
34
35
|
var get$1 = require('./get-3b23d857.js');
|
|
35
|
-
var GridContent = require('./GridContent-
|
|
36
|
+
var GridContent = require('./GridContent-7a85d904.js');
|
|
36
37
|
var DeckQueue = require('./DeckQueue.js');
|
|
37
38
|
require('react-bootstrap/Media');
|
|
38
39
|
var ThumbnailCard = require('./ThumbnailCard.js');
|
|
@@ -85,7 +86,7 @@ var momentTimezone = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
|
85
86
|
|
|
86
87
|
/*global define*/
|
|
87
88
|
if ( module.exports) {
|
|
88
|
-
module.exports = factory(
|
|
89
|
+
module.exports = factory(moment.moment); // Node
|
|
89
90
|
} else {
|
|
90
91
|
factory(root.moment); // Browser
|
|
91
92
|
}
|
|
@@ -14483,7 +14484,7 @@ var fbsHero = function fbsHero(props) {
|
|
|
14483
14484
|
React__default.createElement(
|
|
14484
14485
|
'p',
|
|
14485
14486
|
null,
|
|
14486
|
-
|
|
14487
|
+
moment.moment(topArticle.published).format(removeTimeStamp ? 'MMMM DD, YYYY' : 'MMMM DD, YYYY hh:mma')
|
|
14487
14488
|
),
|
|
14488
14489
|
topArticle.authorMapping && topArticle.authorMapping[0] && React__default.createElement(
|
|
14489
14490
|
'p',
|
|
@@ -14526,7 +14527,7 @@ var fbsHero = function fbsHero(props) {
|
|
|
14526
14527
|
React__default.createElement(
|
|
14527
14528
|
'p',
|
|
14528
14529
|
null,
|
|
14529
|
-
|
|
14530
|
+
moment.moment(article.published).format(removeTimeStamp ? 'MMMM DD, YYYY' : 'MMMM DD, YYYY hh:mma')
|
|
14530
14531
|
),
|
|
14531
14532
|
article.authorMapping && article.authorMapping[0] && React__default.createElement(
|
|
14532
14533
|
'p',
|
|
@@ -14681,7 +14682,7 @@ var OncliveHero = function OncliveHero(props) {
|
|
|
14681
14682
|
article.title
|
|
14682
14683
|
),
|
|
14683
14684
|
React__default.createElement('div', null),
|
|
14684
|
-
|
|
14685
|
+
moment.moment(article.published).format('MMMM Do YYYY, h:mma'),
|
|
14685
14686
|
article.authorMapping && article.authorMapping[0] && article.authorMapping[0].displayName && React__default.createElement(
|
|
14686
14687
|
'p',
|
|
14687
14688
|
{ className: 'mb-2' },
|
|
@@ -14755,7 +14756,7 @@ var OncliveLargeHero = function OncliveLargeHero(props) {
|
|
|
14755
14756
|
React__default.createElement(
|
|
14756
14757
|
'p',
|
|
14757
14758
|
null,
|
|
14758
|
-
|
|
14759
|
+
moment.moment(topArticle.published).format(removeTimeStamp ? 'MMMM DD, YYYY' : 'MMMM DD, YYYY hh:mma')
|
|
14759
14760
|
),
|
|
14760
14761
|
React__default.createElement(
|
|
14761
14762
|
'p',
|
|
@@ -14793,7 +14794,7 @@ var OncliveLargeHero = function OncliveLargeHero(props) {
|
|
|
14793
14794
|
article.title
|
|
14794
14795
|
),
|
|
14795
14796
|
React__default.createElement('div', null),
|
|
14796
|
-
|
|
14797
|
+
moment.moment(article.published).format(removeTimeStamp ? 'MMMM DD, YYYY' : 'MMMM Do YYYY, h:mma'),
|
|
14797
14798
|
article.authorMapping && article.authorMapping[0] && article.authorMapping[0].displayName && React__default.createElement(
|
|
14798
14799
|
'p',
|
|
14799
14800
|
{ className: 'mb-2' },
|
|
@@ -14841,7 +14842,7 @@ var OncliveLargeHero = function OncliveLargeHero(props) {
|
|
|
14841
14842
|
article.title
|
|
14842
14843
|
),
|
|
14843
14844
|
React__default.createElement('div', null),
|
|
14844
|
-
|
|
14845
|
+
moment.moment(article.published).format(removeTimeStamp ? 'MMMM DD, YYYY' : 'MMMM Do YYYY, h:mma'),
|
|
14845
14846
|
article.authorMapping && article.authorMapping[0] && article.authorMapping[0].displayName && React__default.createElement(
|
|
14846
14847
|
'p',
|
|
14847
14848
|
{ className: 'mb-2' },
|
|
@@ -14885,7 +14886,7 @@ var OncliveLargeHero = function OncliveLargeHero(props) {
|
|
|
14885
14886
|
article.title
|
|
14886
14887
|
),
|
|
14887
14888
|
React__default.createElement('div', null),
|
|
14888
|
-
|
|
14889
|
+
moment.moment(article.published).format(removeTimeStamp ? 'MMMM DD, YYYY' : 'MMMM Do YYYY, h:mma'),
|
|
14889
14890
|
article.authorMapping && article.authorMapping[0] && article.authorMapping[0].displayName && React__default.createElement(
|
|
14890
14891
|
'p',
|
|
14891
14892
|
{ className: 'mb-2' },
|
|
@@ -15019,7 +15020,7 @@ var YahooHero = function YahooHero(props) {
|
|
|
15019
15020
|
React__default.createElement(
|
|
15020
15021
|
'p',
|
|
15021
15022
|
null,
|
|
15022
|
-
|
|
15023
|
+
moment.moment(topArticle.published).format(removeTimeStamp ? 'MMMM DD, YYYY' : 'MMMM DD, YYYY hh:mma')
|
|
15023
15024
|
),
|
|
15024
15025
|
React__default.createElement(
|
|
15025
15026
|
'p',
|
|
@@ -15054,7 +15055,7 @@ var YahooHero = function YahooHero(props) {
|
|
|
15054
15055
|
React__default.createElement(
|
|
15055
15056
|
'p',
|
|
15056
15057
|
{ className: 'yh-sub-article--info' },
|
|
15057
|
-
|
|
15058
|
+
moment.moment(article.published).format(removeTimeStamp ? 'MMMM DD, YYYY' : 'MMMM DD, YYYY hh:mma')
|
|
15058
15059
|
),
|
|
15059
15060
|
article.authorMapping && article.authorMapping[0] && React__default.createElement(
|
|
15060
15061
|
'p',
|
|
@@ -15169,7 +15170,7 @@ var GridHero = function GridHero(props) {
|
|
|
15169
15170
|
React__default.createElement(
|
|
15170
15171
|
'p',
|
|
15171
15172
|
{ className: 'article-date' },
|
|
15172
|
-
|
|
15173
|
+
moment.moment(topArticle.published).format('MMMM DD, YYYY ')
|
|
15173
15174
|
),
|
|
15174
15175
|
topArticle.authorMapping && topArticle.authorMapping.length > 0 && topArticle.authorMapping.map(function (authorDetail, index) {
|
|
15175
15176
|
return renderAuthor(authorDetail, index, topArticle.authorMapping.length);
|
|
@@ -15217,7 +15218,7 @@ var GridHero = function GridHero(props) {
|
|
|
15217
15218
|
React__default.createElement(
|
|
15218
15219
|
'p',
|
|
15219
15220
|
{ className: 'article-date' },
|
|
15220
|
-
|
|
15221
|
+
moment.moment(article.published).format('MMMM DD, YYYY ')
|
|
15221
15222
|
),
|
|
15222
15223
|
article.authorMapping && article.authorMapping.length > 0 && article.authorMapping.map(function (authorDetail, index) {
|
|
15223
15224
|
return renderAuthor(authorDetail, index, article.authorMapping.length);
|
|
@@ -15309,7 +15310,7 @@ var RelatedContent = function RelatedContent(props) {
|
|
|
15309
15310
|
props.showPublished && React__default.createElement(
|
|
15310
15311
|
'p',
|
|
15311
15312
|
{ className: 'pb-0 mb-0' },
|
|
15312
|
-
|
|
15313
|
+
moment.moment(article.published).format('MMMM DD, YYYY hh:mma')
|
|
15313
15314
|
),
|
|
15314
15315
|
props.showAuthor && article.authorMapping && article.authorMapping[0] && React__default.createElement(
|
|
15315
15316
|
'p',
|
|
@@ -15391,7 +15392,7 @@ var ConferenceArticleCard = function ConferenceArticleCard(props) {
|
|
|
15391
15392
|
React__default.createElement(
|
|
15392
15393
|
'p',
|
|
15393
15394
|
{ className: 'conf-media__card-text' },
|
|
15394
|
-
|
|
15395
|
+
moment.moment(data.published).format('MMMM Do YYYY, h:mma')
|
|
15395
15396
|
),
|
|
15396
15397
|
React__default.createElement(
|
|
15397
15398
|
'p',
|
|
@@ -16542,7 +16543,7 @@ var Article = function Article(props) {
|
|
|
16542
16543
|
React__default.createElement(
|
|
16543
16544
|
'div',
|
|
16544
16545
|
null,
|
|
16545
|
-
|
|
16546
|
+
moment.moment(published).format('LL')
|
|
16546
16547
|
),
|
|
16547
16548
|
React__default.createElement(
|
|
16548
16549
|
'div',
|