@mjhls/mjh-framework 1.0.880-beta.0 → 1.0.881-beta.0
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/AlgoliaSearch.js +38 -37
- package/dist/cjs/ArticleCarousel.js +2 -1
- package/dist/cjs/ArticleProgramLandingPage.js +4 -3
- package/dist/cjs/ArticleSeriesLandingPage.js +8 -1
- package/dist/cjs/ArticleSeriesListing.js +2 -1
- package/dist/cjs/Auth.js +6 -6
- package/dist/cjs/{BlockContent-9c6b07ad.js → BlockContent-091a991f.js} +2 -2
- package/dist/cjs/ConferenceArticleCard.js +3 -2
- package/dist/cjs/DeckContent.js +5 -4
- package/dist/cjs/DeckQueue.js +285 -5
- package/dist/cjs/EventsDeck.js +11 -11
- package/dist/cjs/ExternalResources.js +7 -6
- package/dist/cjs/Feature.js +3 -2
- package/dist/cjs/ForbesHero.js +7 -6
- package/dist/cjs/GridContent.js +16 -15
- package/dist/cjs/GridHero.js +7 -6
- package/dist/cjs/GroupDeck.js +7 -6
- package/dist/cjs/Hero.js +3 -2
- package/dist/cjs/HorizontalArticleListing.js +4 -3
- package/dist/cjs/HorizontalHero.js +3 -2
- package/dist/cjs/IssueContentDeck.js +8 -7
- package/dist/cjs/IssueDeck.js +6 -5
- package/dist/cjs/IssueLanding.js +7 -4
- package/dist/cjs/MasterDeck.js +550 -35
- package/dist/cjs/MediaSeriesLanding.js +269 -266
- package/dist/cjs/OncliveHero.js +3 -2
- package/dist/cjs/OncliveLargeHero.js +10 -9
- package/dist/cjs/{Pagination-9cb60fba.js → Pagination-d6a59f99.js} +3 -2
- package/dist/cjs/PartnerDetailListing.js +10 -7
- package/dist/cjs/PubSection.js +5 -2
- package/dist/cjs/PublicationDeck.js +6 -5
- package/dist/cjs/PublicationLanding.js +3 -3
- package/dist/cjs/QueueDeckExpanded.js +1547 -43
- package/dist/cjs/RelatedContent.js +5 -4
- package/dist/cjs/SeriesListingDeck.js +3 -2
- package/dist/cjs/{SeriesSlider-ec146338.js → SeriesSlider-49b81b0b.js} +6 -6
- package/dist/cjs/TaxonomyCard.js +6 -5
- package/dist/cjs/TaxonomyDescription.js +4 -3
- package/dist/cjs/ThumbnailCard.js +5 -4
- package/dist/cjs/VerticalHero.js +3 -2
- package/dist/cjs/VideoProgramLandingPage.js +4 -3
- package/dist/cjs/VideoSeriesCard.js +5 -4
- package/dist/cjs/VideoSeriesLandingPage.js +9 -4
- package/dist/cjs/VideoSeriesListing.js +2 -1
- package/dist/cjs/View.js +12 -11
- package/dist/cjs/YahooHero.js +6 -5
- package/dist/cjs/YoutubeGroup.js +10 -9
- package/dist/cjs/getRelatedArticle.js +6 -6
- package/dist/cjs/getSerializers.js +4 -3
- package/dist/cjs/{urlFor-3a61226f.js → index-be0c82be.js} +1 -58
- package/dist/cjs/{index-17c6af5a.js → index-bf60a71c.js} +99 -72
- package/dist/cjs/index.js +11 -10
- package/dist/cjs/urlFor.js +57 -3
- package/dist/esm/AlgoliaSearch.js +2 -1
- package/dist/esm/ArticleCarousel.js +2 -1
- package/dist/esm/ArticleProgramLandingPage.js +4 -3
- package/dist/esm/ArticleSeriesLandingPage.js +8 -1
- package/dist/esm/ArticleSeriesListing.js +2 -1
- package/dist/esm/{BlockContent-f4515898.js → BlockContent-e9b4ddcf.js} +1 -1
- package/dist/esm/ConferenceArticleCard.js +2 -1
- package/dist/esm/DeckContent.js +2 -1
- package/dist/esm/DeckQueue.js +282 -2
- package/dist/esm/EventsDeck.js +1 -1
- package/dist/esm/ExternalResources.js +4 -3
- package/dist/esm/Feature.js +2 -1
- package/dist/esm/ForbesHero.js +2 -1
- package/dist/esm/GridContent.js +2 -1
- package/dist/esm/GridHero.js +2 -1
- package/dist/esm/GroupDeck.js +2 -1
- package/dist/esm/Hero.js +2 -1
- package/dist/esm/HorizontalArticleListing.js +4 -3
- package/dist/esm/HorizontalHero.js +2 -1
- package/dist/esm/IssueContentDeck.js +2 -1
- package/dist/esm/IssueDeck.js +2 -1
- package/dist/esm/IssueLanding.js +7 -4
- package/dist/esm/MasterDeck.js +550 -35
- package/dist/esm/MediaSeriesLanding.js +8 -5
- package/dist/esm/OncliveHero.js +2 -1
- package/dist/esm/OncliveLargeHero.js +2 -1
- package/dist/esm/{Pagination-256b60e5.js → Pagination-f7c4c5ae.js} +3 -2
- package/dist/esm/PartnerDetailListing.js +7 -4
- package/dist/esm/PubSection.js +5 -2
- package/dist/esm/PublicationDeck.js +2 -1
- package/dist/esm/QueueDeckExpanded.js +1533 -29
- package/dist/esm/RelatedContent.js +2 -1
- package/dist/esm/SeriesListingDeck.js +3 -2
- package/dist/esm/{SeriesSlider-d6561e33.js → SeriesSlider-ce19fa25.js} +1 -1
- package/dist/esm/TaxonomyCard.js +3 -2
- package/dist/esm/TaxonomyDescription.js +4 -3
- package/dist/esm/ThumbnailCard.js +2 -1
- package/dist/esm/VerticalHero.js +2 -1
- package/dist/esm/VideoProgramLandingPage.js +4 -3
- package/dist/esm/VideoSeriesCard.js +2 -1
- package/dist/esm/VideoSeriesLandingPage.js +8 -3
- package/dist/esm/VideoSeriesListing.js +2 -1
- package/dist/esm/View.js +5 -4
- package/dist/esm/YahooHero.js +2 -1
- package/dist/esm/YoutubeGroup.js +2 -1
- package/dist/esm/getSerializers.js +4 -3
- package/dist/esm/{urlFor-23b2244b.js → index-73819142.js} +1 -58
- package/dist/esm/{index-a35a5c39.js → index-e495ac6f.js} +40 -13
- package/dist/esm/index.js +8 -7
- package/dist/esm/urlFor.js +60 -2
- package/package.json +1 -1
|
@@ -16,12 +16,19 @@ import './events-6c3a7a63.js';
|
|
|
16
16
|
import './index-41a678ea.js';
|
|
17
17
|
import 'prop-types';
|
|
18
18
|
import 'react-bootstrap/Container';
|
|
19
|
+
import 'react-bootstrap/Row';
|
|
20
|
+
import 'react-bootstrap/Col';
|
|
19
21
|
import 'react-bootstrap/Card';
|
|
22
|
+
import './moment-e2f9b20c.js';
|
|
20
23
|
import 'next/router';
|
|
21
24
|
import './isSymbol-1981418f.js';
|
|
22
25
|
import './debounce-9207d8ee.js';
|
|
23
26
|
import './toNumber-2f7a84cd.js';
|
|
27
|
+
import './index.es-29c1cef5.js';
|
|
28
|
+
import 'react-dom';
|
|
29
|
+
import './visibility-sensor-72fd8f8b.js';
|
|
24
30
|
import './slicedToArray-67a08c9c.js';
|
|
31
|
+
import './index-73819142.js';
|
|
25
32
|
import './main-c0612122.js';
|
|
26
33
|
import './stringify-70b72959.js';
|
|
27
34
|
import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-64812e90.js';
|
|
@@ -31,8 +38,8 @@ import './AdSlot.js';
|
|
|
31
38
|
import './ADInfeed-0c13c803.js';
|
|
32
39
|
import './lodash-17fdfebb.js';
|
|
33
40
|
import './ADlgInfeed-e4e2031a.js';
|
|
34
|
-
import './Pagination-256b60e5.js';
|
|
35
41
|
import 'react-bootstrap/Spinner';
|
|
42
|
+
import './Pagination-f7c4c5ae.js';
|
|
36
43
|
import MasterDeck from './MasterDeck.js';
|
|
37
44
|
|
|
38
45
|
var _this = undefined;
|
|
@@ -23,7 +23,8 @@ import { I as InfiniteScroll } from './index.es-29c1cef5.js';
|
|
|
23
23
|
import 'react-dom';
|
|
24
24
|
import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
|
|
25
25
|
import './slicedToArray-67a08c9c.js';
|
|
26
|
-
import './
|
|
26
|
+
import './index-73819142.js';
|
|
27
|
+
import './urlFor.js';
|
|
27
28
|
import './index-5f7e79e7.js';
|
|
28
29
|
import './main-c0612122.js';
|
|
29
30
|
import './index-c7e2ac95.js';
|
|
@@ -4,7 +4,8 @@ import './web.dom.iterable-f8f967cd.js';
|
|
|
4
4
|
import React__default from 'react';
|
|
5
5
|
import { m as moment } from './moment-e2f9b20c.js';
|
|
6
6
|
import './slicedToArray-67a08c9c.js';
|
|
7
|
-
import
|
|
7
|
+
import './index-73819142.js';
|
|
8
|
+
import urlFor from './urlFor.js';
|
|
8
9
|
|
|
9
10
|
/*
|
|
10
11
|
Example usage - targetedonc.com/latest-conference
|
package/dist/esm/DeckContent.js
CHANGED
|
@@ -28,7 +28,8 @@ import { I as InfiniteScroll } from './index.es-29c1cef5.js';
|
|
|
28
28
|
import 'react-dom';
|
|
29
29
|
import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
|
|
30
30
|
import './slicedToArray-67a08c9c.js';
|
|
31
|
-
import
|
|
31
|
+
import './index-73819142.js';
|
|
32
|
+
import urlFor from './urlFor.js';
|
|
32
33
|
import { L as LazyLoad } from './index-5f7e79e7.js';
|
|
33
34
|
import { m as main_36 } from './main-c0612122.js';
|
|
34
35
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
package/dist/esm/DeckQueue.js
CHANGED
|
@@ -28,16 +28,294 @@ import { I as InfiniteScroll } from './index.es-29c1cef5.js';
|
|
|
28
28
|
import 'react-dom';
|
|
29
29
|
import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
|
|
30
30
|
import './slicedToArray-67a08c9c.js';
|
|
31
|
-
import
|
|
31
|
+
import './index-73819142.js';
|
|
32
|
+
import urlFor from './urlFor.js';
|
|
32
33
|
import { L as LazyLoad } from './index-5f7e79e7.js';
|
|
33
34
|
import { m as main_36 } from './main-c0612122.js';
|
|
34
35
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
36
|
+
import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-64812e90.js';
|
|
35
37
|
import { g as get_1 } from './get-1e515072.js';
|
|
36
38
|
import './eq-b470f743.js';
|
|
39
|
+
import Spinner$1 from 'react-bootstrap/Spinner';
|
|
40
|
+
import { P as Pagination } from './Pagination-f7c4c5ae.js';
|
|
37
41
|
|
|
38
42
|
var DeckQueue = function (_React$Component) {
|
|
39
43
|
_inherits(DeckQueue, _React$Component);
|
|
40
44
|
|
|
45
|
+
function DeckQueue() {
|
|
46
|
+
var _ref,
|
|
47
|
+
_this2 = this;
|
|
48
|
+
|
|
49
|
+
var _temp, _this, _ret;
|
|
50
|
+
|
|
51
|
+
_classCallCheck(this, DeckQueue);
|
|
52
|
+
|
|
53
|
+
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
|
54
|
+
args[_key] = arguments[_key];
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = DeckQueue.__proto__ || _Object$getPrototypeOf(DeckQueue)).call.apply(_ref, [this].concat(args))), _this), _this.page = _this.props.page, _this.data = _this.props.dataRecord, _this.query = _this.props.query, _this.params = _this.props.params, _this.client = _this.props.client, _this.pointer = _this.props.pointer ? _this.props.pointer : false, _this.pointerArray = _this.props.pointerArray ? _this.props.pointerArray : false, _this.defaultImage = _this.props.defaultImage ? _this.props.defaultImage : '/placeholder.jpg', _this.imageHeight = _this.props.imageHeight ? _this.props.imageHeight : 270, _this.state = {
|
|
58
|
+
data: _this.data,
|
|
59
|
+
currentPage: _this.props.currentPage || 1,
|
|
60
|
+
isDataLoading: false,
|
|
61
|
+
itemsPerPage: _this.params ? _this.params.to - _this.params.from : 2
|
|
62
|
+
}, _this.renderCardImage = function (row) {
|
|
63
|
+
if (row.thumbnail && row.thumbnail.asset) {
|
|
64
|
+
var url = urlFor({
|
|
65
|
+
client: _this.client,
|
|
66
|
+
source: row.thumbnail,
|
|
67
|
+
imageHeight: _this.imageHeight || null,
|
|
68
|
+
imageWidth: _this.props.imageWidth || null,
|
|
69
|
+
imageFit: _this.props.imageFit || null
|
|
70
|
+
});
|
|
71
|
+
return url;
|
|
72
|
+
} else {
|
|
73
|
+
return _this.defaultImage;
|
|
74
|
+
}
|
|
75
|
+
}, _this.seoPagination = function (pageNumber) {
|
|
76
|
+
var _this$props = _this.props,
|
|
77
|
+
pageview = _this$props.pageview,
|
|
78
|
+
router = _this$props.router;
|
|
79
|
+
|
|
80
|
+
var path = router.asPath;
|
|
81
|
+
var qrIndex = path.indexOf('?');
|
|
82
|
+
var pathname = router.pathname;
|
|
83
|
+
var queryString = '';
|
|
84
|
+
if (qrIndex > 0) {
|
|
85
|
+
path = path.substring(1, qrIndex);
|
|
86
|
+
var partialQS = router.asPath.substring(qrIndex + 1);
|
|
87
|
+
var partialQSArr = partialQS.split('&');
|
|
88
|
+
// exclude page=xxx from query string
|
|
89
|
+
partialQSArr.map(function (item) {
|
|
90
|
+
var itemArr = item.split('=');
|
|
91
|
+
var key = itemArr[0];
|
|
92
|
+
var val = itemArr[1];
|
|
93
|
+
if (key !== 'page') queryString += (queryString.length === 0 ? '' : '&') + key + '=' + val;
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
if (queryString.length > 0) path += '?' + queryString;
|
|
97
|
+
pageNumber = parseInt(pageNumber);
|
|
98
|
+
if (path[0] !== '/') path = '/' + path;
|
|
99
|
+
var newPath = pageNumber === 1 ? '' + path : path + '?page=' + pageNumber;
|
|
100
|
+
if (pageview) pageview(newPath);
|
|
101
|
+
router.push(pathname, newPath, {
|
|
102
|
+
shallow: true
|
|
103
|
+
});
|
|
104
|
+
}, _this.renderMobileAd = function (index, numberOfItemsBeforeAd) {
|
|
105
|
+
var rightItems = _this.props.rightItems;
|
|
106
|
+
|
|
107
|
+
var i = ((index + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
|
|
108
|
+
return React__default.createElement(
|
|
109
|
+
'div',
|
|
110
|
+
{ style: { display: 'flex', flex: '1 0 auto' } },
|
|
111
|
+
rightItems[i].component
|
|
112
|
+
);
|
|
113
|
+
}, _this.handlePageChange = function () {
|
|
114
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(selectedPage) {
|
|
115
|
+
var itemsPerPage, _this$props2, query, params, client, seoPaginate, start, newParams, newData;
|
|
116
|
+
|
|
117
|
+
return regenerator.wrap(function _callee$(_context) {
|
|
118
|
+
while (1) {
|
|
119
|
+
switch (_context.prev = _context.next) {
|
|
120
|
+
case 0:
|
|
121
|
+
itemsPerPage = _this.state.itemsPerPage;
|
|
122
|
+
_this$props2 = _this.props, query = _this$props2.query, params = _this$props2.params, client = _this$props2.client, seoPaginate = _this$props2.seoPaginate;
|
|
123
|
+
|
|
124
|
+
_this.setState({ isDataLoading: true, currentPage: selectedPage });
|
|
125
|
+
seoPaginate && _this.seoPagination(selectedPage);
|
|
126
|
+
lib_3.refresh();
|
|
127
|
+
document.body.scrollTop = 0;
|
|
128
|
+
document.documentElement.scrollTop = 0;
|
|
129
|
+
start = (selectedPage - 1) * itemsPerPage;
|
|
130
|
+
newParams = _extends({}, params, {
|
|
131
|
+
from: start,
|
|
132
|
+
to: start + itemsPerPage
|
|
133
|
+
});
|
|
134
|
+
_context.prev = 9;
|
|
135
|
+
_context.next = 12;
|
|
136
|
+
return client.fetch(query, newParams);
|
|
137
|
+
|
|
138
|
+
case 12:
|
|
139
|
+
newData = _context.sent;
|
|
140
|
+
|
|
141
|
+
if (_this.pointer && _this.pointerArray) newData = newData[_this.pointerArray][_this.pointer];
|
|
142
|
+
if (newData && newData.length > 0) {
|
|
143
|
+
_this.setState({ isDataLoading: false, data: newData });
|
|
144
|
+
}
|
|
145
|
+
_context.next = 20;
|
|
146
|
+
break;
|
|
147
|
+
|
|
148
|
+
case 17:
|
|
149
|
+
_context.prev = 17;
|
|
150
|
+
_context.t0 = _context['catch'](9);
|
|
151
|
+
|
|
152
|
+
console.error(_context.t0);
|
|
153
|
+
|
|
154
|
+
case 20:
|
|
155
|
+
case 'end':
|
|
156
|
+
return _context.stop();
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}, _callee, _this2, [[9, 17]]);
|
|
160
|
+
}));
|
|
161
|
+
|
|
162
|
+
return function (_x) {
|
|
163
|
+
return _ref2.apply(this, arguments);
|
|
164
|
+
};
|
|
165
|
+
}(), _temp), _possibleConstructorReturn(_this, _ret);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
_createClass(DeckQueue, [{
|
|
169
|
+
key: 'cardLoader',
|
|
170
|
+
value: function cardLoader(_ref3) {
|
|
171
|
+
var _this3 = this;
|
|
172
|
+
|
|
173
|
+
var columns = _ref3.columns,
|
|
174
|
+
variant = _ref3.variant;
|
|
175
|
+
|
|
176
|
+
var mode = variant && variant === 'right' ? 'row-reverse' : 'row';
|
|
177
|
+
var lgVar = Math.floor(12 / columns);
|
|
178
|
+
var numberOfItemsBeforeAd = 6;
|
|
179
|
+
|
|
180
|
+
return React__default.createElement(
|
|
181
|
+
Row$1,
|
|
182
|
+
null,
|
|
183
|
+
this.state.data && this.state.data.map(function (row, index) {
|
|
184
|
+
// const thumbnailURL = get(row, 'thumbnail.asset.url', this.props.defaultImage)
|
|
185
|
+
|
|
186
|
+
return React__default.createElement(
|
|
187
|
+
React__default.Fragment,
|
|
188
|
+
{ key: index },
|
|
189
|
+
React__default.createElement(
|
|
190
|
+
Col$1,
|
|
191
|
+
{ md: 12, lg: lgVar, style: { display: 'flex', flex: '1 0 auto' } },
|
|
192
|
+
React__default.createElement(
|
|
193
|
+
Card$1,
|
|
194
|
+
{ className: 'queue-card', style: { borderTop: '1px solid #EEE' } },
|
|
195
|
+
React__default.createElement(
|
|
196
|
+
Row$1,
|
|
197
|
+
{ style: { flexDirection: mode } },
|
|
198
|
+
(row.thumbnail && row.thumbnail.asset || _this3.props.defaultImage) && React__default.createElement(
|
|
199
|
+
Col$1,
|
|
200
|
+
{ md: 12, lg: 4 },
|
|
201
|
+
React__default.createElement(
|
|
202
|
+
'a',
|
|
203
|
+
{ href: _this3.page + '/' + get_1(row, 'url.current') },
|
|
204
|
+
React__default.createElement(
|
|
205
|
+
LazyLoad,
|
|
206
|
+
{ height: _this3.props.imageHeight },
|
|
207
|
+
React__default.createElement(Card$1.Img, { variant: 'top', src: _this3.renderCardImage(row), alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : '' })
|
|
208
|
+
)
|
|
209
|
+
)
|
|
210
|
+
),
|
|
211
|
+
React__default.createElement(
|
|
212
|
+
Col$1,
|
|
213
|
+
null,
|
|
214
|
+
React__default.createElement(
|
|
215
|
+
Card$1.Body,
|
|
216
|
+
{ style: { padding: '20px' } },
|
|
217
|
+
row.title && React__default.createElement(
|
|
218
|
+
Card$1.Title,
|
|
219
|
+
null,
|
|
220
|
+
React__default.createElement(
|
|
221
|
+
'a',
|
|
222
|
+
{ href: _this3.page + '/' + get_1(row, 'url.current') },
|
|
223
|
+
row.title
|
|
224
|
+
)
|
|
225
|
+
),
|
|
226
|
+
_this3.props.showPublished && row.published && React__default.createElement(
|
|
227
|
+
Card$1.Subtitle,
|
|
228
|
+
null,
|
|
229
|
+
moment(row.published).format('MMMM DD, YYYY')
|
|
230
|
+
),
|
|
231
|
+
_this3.props.showRecent && row.recent && row.recent.title && React__default.createElement(
|
|
232
|
+
Card$1.Subtitle,
|
|
233
|
+
null,
|
|
234
|
+
'Recent : ',
|
|
235
|
+
React__default.createElement(
|
|
236
|
+
'a',
|
|
237
|
+
{ href: 'view/' + row.recent.url.current },
|
|
238
|
+
row.recent.title
|
|
239
|
+
)
|
|
240
|
+
),
|
|
241
|
+
row.summary && React__default.createElement(
|
|
242
|
+
Card$1.Text,
|
|
243
|
+
null,
|
|
244
|
+
React__default.createElement(
|
|
245
|
+
'a',
|
|
246
|
+
{ href: _this3.page + '/' + get_1(row, 'url.current') },
|
|
247
|
+
clean_html_1(row.summary)
|
|
248
|
+
)
|
|
249
|
+
)
|
|
250
|
+
)
|
|
251
|
+
)
|
|
252
|
+
)
|
|
253
|
+
)
|
|
254
|
+
),
|
|
255
|
+
main_36 && _this3.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this3.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
256
|
+
);
|
|
257
|
+
})
|
|
258
|
+
);
|
|
259
|
+
}
|
|
260
|
+
}, {
|
|
261
|
+
key: 'render',
|
|
262
|
+
value: function render() {
|
|
263
|
+
var _props = this.props,
|
|
264
|
+
columns = _props.columns,
|
|
265
|
+
variant = _props.variant,
|
|
266
|
+
totalDataCount = _props.totalDataCount;
|
|
267
|
+
var _state = this.state,
|
|
268
|
+
isDataLoading = _state.isDataLoading,
|
|
269
|
+
itemsPerPage = _state.itemsPerPage,
|
|
270
|
+
currentPage = _state.currentPage;
|
|
271
|
+
|
|
272
|
+
return React__default.createElement(
|
|
273
|
+
'div',
|
|
274
|
+
{ className: 'contentDeck' },
|
|
275
|
+
isDataLoading ? React__default.createElement(
|
|
276
|
+
'div',
|
|
277
|
+
{ className: 'd-flex justify-content-center', style: { marginTop: '100px' } },
|
|
278
|
+
React__default.createElement(
|
|
279
|
+
Spinner$1,
|
|
280
|
+
{ animation: 'border', role: 'status' },
|
|
281
|
+
React__default.createElement(
|
|
282
|
+
'span',
|
|
283
|
+
{ className: 'sr-only' },
|
|
284
|
+
'Loading...'
|
|
285
|
+
)
|
|
286
|
+
)
|
|
287
|
+
) : React__default.createElement(
|
|
288
|
+
Container$1,
|
|
289
|
+
null,
|
|
290
|
+
this.cardLoader({ columns: columns, variant: variant }),
|
|
291
|
+
React__default.createElement(
|
|
292
|
+
'div',
|
|
293
|
+
{ className: 'pagination-wrapper' },
|
|
294
|
+
React__default.createElement(Pagination, {
|
|
295
|
+
pageCount: Math.ceil(totalDataCount / itemsPerPage),
|
|
296
|
+
pageRangeDisplayed: main_36 ? 3 : 9,
|
|
297
|
+
currentPage: currentPage,
|
|
298
|
+
onPageChange: this.handlePageChange
|
|
299
|
+
}),
|
|
300
|
+
React__default.createElement(
|
|
301
|
+
'style',
|
|
302
|
+
{ jsx: 'true' },
|
|
303
|
+
'\n .pagination-wrapper {\n margin: 3rem 0;\n }\n @media only screen and (max-width: 768px) {\n .pagination-wrapper {\n margin-bottom: 6rem;\n }\n }\n '
|
|
304
|
+
)
|
|
305
|
+
)
|
|
306
|
+
)
|
|
307
|
+
);
|
|
308
|
+
}
|
|
309
|
+
}]);
|
|
310
|
+
|
|
311
|
+
return DeckQueue;
|
|
312
|
+
}(React__default.Component);
|
|
313
|
+
|
|
314
|
+
var QueuePaginated = withRouter(DeckQueue);
|
|
315
|
+
|
|
316
|
+
var DeckQueue$1 = function (_React$Component) {
|
|
317
|
+
_inherits(DeckQueue, _React$Component);
|
|
318
|
+
|
|
41
319
|
function DeckQueue() {
|
|
42
320
|
var _ref;
|
|
43
321
|
|
|
@@ -317,6 +595,8 @@ var DeckQueue = function (_React$Component) {
|
|
|
317
595
|
page = _props.page;
|
|
318
596
|
|
|
319
597
|
|
|
598
|
+
if (this.props.totalDataCount) return React__default.createElement(QueuePaginated, this.props);
|
|
599
|
+
|
|
320
600
|
return React__default.createElement(
|
|
321
601
|
'div',
|
|
322
602
|
{ className: 'contentDeck' },
|
|
@@ -370,6 +650,6 @@ var DeckQueue = function (_React$Component) {
|
|
|
370
650
|
return DeckQueue;
|
|
371
651
|
}(React__default.Component);
|
|
372
652
|
|
|
373
|
-
var Queue = withRouter(DeckQueue);
|
|
653
|
+
var Queue = withRouter(DeckQueue$1);
|
|
374
654
|
|
|
375
655
|
export default Queue;
|
package/dist/esm/EventsDeck.js
CHANGED
|
@@ -18,8 +18,8 @@ import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-67a08c9c
|
|
|
18
18
|
import './main-c0612122.js';
|
|
19
19
|
import { _ as _JSON$stringify } from './stringify-70b72959.js';
|
|
20
20
|
import Button$1 from 'react-bootstrap/Button';
|
|
21
|
-
import { _ as _objectToArray } from './_object-to-array-c54dd835.js';
|
|
22
21
|
import Spinner$1 from 'react-bootstrap/Spinner';
|
|
22
|
+
import { _ as _objectToArray } from './_object-to-array-c54dd835.js';
|
|
23
23
|
import { _ as _defineProperty } from './defineProperty-d7d9b577.js';
|
|
24
24
|
import Form from 'react-bootstrap/Form';
|
|
25
25
|
import { m as momentTimezone } from './index-ef6d5dcf.js';
|
|
@@ -24,7 +24,8 @@ import './debounce-9207d8ee.js';
|
|
|
24
24
|
import './toNumber-2f7a84cd.js';
|
|
25
25
|
import 'react-dom';
|
|
26
26
|
import { _ as _slicedToArray } from './slicedToArray-67a08c9c.js';
|
|
27
|
-
import './
|
|
27
|
+
import './index-73819142.js';
|
|
28
|
+
import './urlFor.js';
|
|
28
29
|
import './index-5f7e79e7.js';
|
|
29
30
|
import './main-c0612122.js';
|
|
30
31
|
import './entities-7cc3bf45.js';
|
|
@@ -34,14 +35,14 @@ import './Segment.js';
|
|
|
34
35
|
import './Beam.js';
|
|
35
36
|
import './AdSlot.js';
|
|
36
37
|
import Button$1 from 'react-bootstrap/Button';
|
|
37
|
-
import { B as BlockContent } from './BlockContent-
|
|
38
|
+
import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
|
|
38
39
|
import './index-c7e2ac95.js';
|
|
39
40
|
import './smoothscroll-0cd4c7a6.js';
|
|
40
41
|
import './GroupDeck.js';
|
|
41
42
|
import 'react-bootstrap';
|
|
42
43
|
import './iconBase-602d52fe.js';
|
|
43
44
|
import './index.esm-29e48d38.js';
|
|
44
|
-
import { g as getSerializers } from './index-
|
|
45
|
+
import { g as getSerializers } from './index-e495ac6f.js';
|
|
45
46
|
import './util-7700fc59.js';
|
|
46
47
|
import './brightcove-react-player-loader.es-83f53e4e.js';
|
|
47
48
|
import 'next/head';
|
package/dist/esm/Feature.js
CHANGED
|
@@ -3,7 +3,8 @@ import './core.get-iterator-method-86d4db69.js';
|
|
|
3
3
|
import './web.dom.iterable-f8f967cd.js';
|
|
4
4
|
import React__default from 'react';
|
|
5
5
|
import './slicedToArray-67a08c9c.js';
|
|
6
|
-
import
|
|
6
|
+
import './index-73819142.js';
|
|
7
|
+
import urlFor from './urlFor.js';
|
|
7
8
|
import { m as main_36 } from './main-c0612122.js';
|
|
8
9
|
import Carousel from 'react-bootstrap/Carousel';
|
|
9
10
|
|
package/dist/esm/ForbesHero.js
CHANGED
|
@@ -6,7 +6,8 @@ import 'prop-types';
|
|
|
6
6
|
import { m as moment } from './moment-e2f9b20c.js';
|
|
7
7
|
import 'react-dom';
|
|
8
8
|
import './slicedToArray-67a08c9c.js';
|
|
9
|
-
import
|
|
9
|
+
import './index-73819142.js';
|
|
10
|
+
import urlFor from './urlFor.js';
|
|
10
11
|
import { L as LazyLoad } from './index-5f7e79e7.js';
|
|
11
12
|
import { A as AuthorComponent } from './AuthorComponent-e6f95c2f.js';
|
|
12
13
|
|
package/dist/esm/GridContent.js
CHANGED
|
@@ -28,7 +28,8 @@ import { I as InfiniteScroll } from './index.es-29c1cef5.js';
|
|
|
28
28
|
import 'react-dom';
|
|
29
29
|
import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
|
|
30
30
|
import './slicedToArray-67a08c9c.js';
|
|
31
|
-
import
|
|
31
|
+
import './index-73819142.js';
|
|
32
|
+
import urlFor from './urlFor.js';
|
|
32
33
|
import { L as LazyLoad } from './index-5f7e79e7.js';
|
|
33
34
|
import { m as main_36 } from './main-c0612122.js';
|
|
34
35
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
package/dist/esm/GridHero.js
CHANGED
|
@@ -6,7 +6,8 @@ import 'prop-types';
|
|
|
6
6
|
import { m as moment } from './moment-e2f9b20c.js';
|
|
7
7
|
import 'react-dom';
|
|
8
8
|
import './slicedToArray-67a08c9c.js';
|
|
9
|
-
import
|
|
9
|
+
import './index-73819142.js';
|
|
10
|
+
import urlFor from './urlFor.js';
|
|
10
11
|
import { L as LazyLoad } from './index-5f7e79e7.js';
|
|
11
12
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
12
13
|
import { A as AuthorComponent } from './AuthorComponent-e6f95c2f.js';
|
package/dist/esm/GroupDeck.js
CHANGED
|
@@ -7,7 +7,8 @@ import { _ as _typeof } from './typeof-c05a82ba.js';
|
|
|
7
7
|
import './_is-array-4df618a6.js';
|
|
8
8
|
import React__default, { useRef, useState, useEffect } from 'react';
|
|
9
9
|
import { _ as _slicedToArray } from './slicedToArray-67a08c9c.js';
|
|
10
|
-
import
|
|
10
|
+
import './index-73819142.js';
|
|
11
|
+
import urlFor from './urlFor.js';
|
|
11
12
|
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
12
13
|
import { s as smoothscroll } from './smoothscroll-0cd4c7a6.js';
|
|
13
14
|
|
package/dist/esm/Hero.js
CHANGED
|
@@ -3,7 +3,8 @@ import './core.get-iterator-method-86d4db69.js';
|
|
|
3
3
|
import './web.dom.iterable-f8f967cd.js';
|
|
4
4
|
import React__default from 'react';
|
|
5
5
|
import './slicedToArray-67a08c9c.js';
|
|
6
|
-
import
|
|
6
|
+
import './index-73819142.js';
|
|
7
|
+
import urlFor from './urlFor.js';
|
|
7
8
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
8
9
|
import { Card } from 'react-bootstrap';
|
|
9
10
|
|
|
@@ -24,7 +24,8 @@ import './debounce-9207d8ee.js';
|
|
|
24
24
|
import './toNumber-2f7a84cd.js';
|
|
25
25
|
import 'react-dom';
|
|
26
26
|
import './slicedToArray-67a08c9c.js';
|
|
27
|
-
import './
|
|
27
|
+
import './index-73819142.js';
|
|
28
|
+
import './urlFor.js';
|
|
28
29
|
import './index-5f7e79e7.js';
|
|
29
30
|
import './main-c0612122.js';
|
|
30
31
|
import './entities-7cc3bf45.js';
|
|
@@ -34,7 +35,7 @@ import './Segment.js';
|
|
|
34
35
|
import './Beam.js';
|
|
35
36
|
import './AdSlot.js';
|
|
36
37
|
import 'react-bootstrap/Button';
|
|
37
|
-
import { B as BlockContent } from './BlockContent-
|
|
38
|
+
import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
|
|
38
39
|
import './index-c7e2ac95.js';
|
|
39
40
|
import './smoothscroll-0cd4c7a6.js';
|
|
40
41
|
import './GroupDeck.js';
|
|
@@ -43,7 +44,7 @@ import 'react-bootstrap';
|
|
|
43
44
|
import './iconBase-602d52fe.js';
|
|
44
45
|
import { I as IoIosArrowForward } from './index.esm-29e48d38.js';
|
|
45
46
|
import ArticleCarousel from './ArticleCarousel.js';
|
|
46
|
-
import { g as getSerializers } from './index-
|
|
47
|
+
import { g as getSerializers } from './index-e495ac6f.js';
|
|
47
48
|
import './util-7700fc59.js';
|
|
48
49
|
import './brightcove-react-player-loader.es-83f53e4e.js';
|
|
49
50
|
import 'next/head';
|
|
@@ -4,7 +4,8 @@ import './web.dom.iterable-f8f967cd.js';
|
|
|
4
4
|
import React__default from 'react';
|
|
5
5
|
import './moment-e2f9b20c.js';
|
|
6
6
|
import './slicedToArray-67a08c9c.js';
|
|
7
|
-
import
|
|
7
|
+
import './index-73819142.js';
|
|
8
|
+
import urlFor from './urlFor.js';
|
|
8
9
|
import './iconBase-602d52fe.js';
|
|
9
10
|
import { a as FaLongArrowAltRight } from './index.esm-cf08bf18.js';
|
|
10
11
|
|
|
@@ -9,7 +9,8 @@ import Card$1 from 'react-bootstrap/Card';
|
|
|
9
9
|
import { m as moment } from './moment-e2f9b20c.js';
|
|
10
10
|
import 'react-dom';
|
|
11
11
|
import './slicedToArray-67a08c9c.js';
|
|
12
|
-
import
|
|
12
|
+
import './index-73819142.js';
|
|
13
|
+
import urlFor from './urlFor.js';
|
|
13
14
|
import { L as LazyLoad } from './index-5f7e79e7.js';
|
|
14
15
|
import { A as AuthorComponent } from './AuthorComponent-e6f95c2f.js';
|
|
15
16
|
import Badge from 'react-bootstrap/Badge';
|
package/dist/esm/IssueDeck.js
CHANGED
|
@@ -13,7 +13,8 @@ import Card$1 from 'react-bootstrap/Card';
|
|
|
13
13
|
import { I as InfiniteScroll } from './index.es-29c1cef5.js';
|
|
14
14
|
import 'react-dom';
|
|
15
15
|
import { _ as _slicedToArray } from './slicedToArray-67a08c9c.js';
|
|
16
|
-
import
|
|
16
|
+
import './index-73819142.js';
|
|
17
|
+
import urlFor from './urlFor.js';
|
|
17
18
|
import { L as LazyLoad } from './index-5f7e79e7.js';
|
|
18
19
|
import Button$1 from 'react-bootstrap/Button';
|
|
19
20
|
|
package/dist/esm/IssueLanding.js
CHANGED
|
@@ -23,9 +23,12 @@ import 'next/router';
|
|
|
23
23
|
import './isSymbol-1981418f.js';
|
|
24
24
|
import './debounce-9207d8ee.js';
|
|
25
25
|
import './toNumber-2f7a84cd.js';
|
|
26
|
+
import './index.es-29c1cef5.js';
|
|
26
27
|
import 'react-dom';
|
|
28
|
+
import './visibility-sensor-72fd8f8b.js';
|
|
27
29
|
import './slicedToArray-67a08c9c.js';
|
|
28
|
-
import './
|
|
30
|
+
import './index-73819142.js';
|
|
31
|
+
import './urlFor.js';
|
|
29
32
|
import './index-5f7e79e7.js';
|
|
30
33
|
import './main-c0612122.js';
|
|
31
34
|
import './entities-7cc3bf45.js';
|
|
@@ -40,17 +43,17 @@ import './ADlgInfeed-e4e2031a.js';
|
|
|
40
43
|
import './getContentCategory-15dcc413.js';
|
|
41
44
|
import './AuthorComponent-e6f95c2f.js';
|
|
42
45
|
import 'react-bootstrap/Button';
|
|
43
|
-
import
|
|
46
|
+
import './Pagination-f7c4c5ae.js';
|
|
47
|
+
import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
|
|
44
48
|
import './index-c7e2ac95.js';
|
|
45
49
|
import './smoothscroll-0cd4c7a6.js';
|
|
46
50
|
import './GroupDeck.js';
|
|
47
51
|
import 'react-bootstrap';
|
|
48
52
|
import './timeDifferenceCalc.js';
|
|
49
|
-
import './Pagination-256b60e5.js';
|
|
50
53
|
import QueueDeckExpanded from './QueueDeckExpanded.js';
|
|
51
54
|
import './iconBase-602d52fe.js';
|
|
52
55
|
import './index.esm-29e48d38.js';
|
|
53
|
-
import { g as getSerializers } from './index-
|
|
56
|
+
import { g as getSerializers } from './index-e495ac6f.js';
|
|
54
57
|
import './util-7700fc59.js';
|
|
55
58
|
import './brightcove-react-player-loader.es-83f53e4e.js';
|
|
56
59
|
import 'next/head';
|