@quintype/arrow 3.15.1-perf.0 → 3.15.1-perf.3
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/atoms/Author/index.js +38 -29
- package/atoms/AuthorWithTime/index.js +83 -73
- package/atoms/CollectionName/index.js +40 -30
- package/atoms/ExtendedLoadMore/{index-4577d5b9.js → index-3976fac4.js} +62 -55
- package/atoms/ExtendedLoadMore/{index-0edaa434.js → index-3c4ac692.js} +243 -208
- package/atoms/ExtendedLoadMore/index-4ddfe28d.js +93 -0
- package/atoms/ExtendedLoadMore/{index-70ce7471.js → index-5c8eda4a.js} +88 -80
- package/atoms/ExtendedLoadMore/{index-b3ef1488.js → index-6e083738.js} +63 -56
- package/atoms/ExtendedLoadMore/{index-48664b07.js → index-6ecceae4.js} +61 -54
- package/atoms/ExtendedLoadMore/{index-4c3c2b6f.js → index-9e0d32b7.js} +79 -72
- package/atoms/ExtendedLoadMore/{index-c47ff5bc.js → index-a5c95f84.js} +73 -66
- package/atoms/ExtendedLoadMore/{index-4b9207c4.js → index-b22f1843.js} +70 -62
- package/atoms/ExtendedLoadMore/{index-8f6483ba.js → index-b5936059.js} +75 -68
- package/atoms/ExtendedLoadMore/{index-b841407e.js → index-bc129cb8.js} +60 -53
- package/atoms/ExtendedLoadMore/{index-d08b6c2f.js → index-e7cde739.js} +74 -46
- package/atoms/ExtendedLoadMore/{index-867b9437.js → index-fee73a14.js} +67 -61
- package/atoms/ExtendedLoadMore/index.js +13 -5
- package/atoms/ExtendedLoadMore/styles.arrow.css +1 -1
- package/atoms/Headline/index.js +85 -76
- package/atoms/HeroImage/index.js +69 -60
- package/atoms/LoadmoreButton/index.js +32 -23
- package/atoms/ScrollSnap/index.js +72 -63
- package/atoms/SectionTag/index.js +34 -25
- package/atoms/Subheadline/index.js +31 -22
- package/atoms/TimeStamp/index.js +34 -24
- package/molecules/KeyEvents/index.js +75 -66
- package/molecules/PageIntroductionCard/index.js +43 -34
- package/molecules/SocialShareTemplate/index.js +97 -88
- package/molecules/StoryCard/index.js +242 -232
- package/molecules/StoryElementCard/index.js +512 -483
- package/molecules/StorycardContent/index.js +172 -162
- package/package.json +1 -1
- package/rows/AlternateCollectionFilter/index.js +349 -339
- package/rows/AsideCollection/index.js +346 -340
- package/rows/AstrologyCollection/index.js +325 -315
- package/rows/AuthorIntroductionCard/index.js +157 -150
- package/rows/AuthorsList/index.js +187 -180
- package/rows/CollectionFilter/index.js +365 -355
- package/rows/ElevenStories/index.js +360 -351
- package/rows/FourColFiveStories/index.js +308 -279
- package/rows/FourColGrid/index.js +355 -326
- package/rows/FourColPortraitStories/index.js +364 -336
- package/rows/FourColSixteenStories/index.js +291 -281
- package/rows/FourColTwelveStories/index.js +318 -308
- package/rows/FourStorySlider/index.js +362 -352
- package/rows/FourStorySliderPortrait/index.js +363 -353
- package/rows/FourTabbedBigStorySlider/index.js +325 -314
- package/rows/FullScreenSlider/index.js +339 -330
- package/rows/HalfScreenSlider/index.js +311 -302
- package/rows/ListComponent/index.js +325 -315
- package/rows/Listicles/index.js +154 -145
- package/rows/MagazineEditions/index.js +107 -98
- package/rows/MagazineHeaderCard/index.js +107 -98
- package/rows/MagazineWidget/index.js +329 -320
- package/rows/OneColStoryList/index.js +369 -340
- package/rows/OpinionCollection/index.js +254 -225
- package/rows/SixColSixStories/index.js +337 -308
- package/rows/StoryCollection/index.js +346 -340
- package/rows/TagIntroductionCard/index.js +30 -23
- package/rows/ThreeColFlexStories/index.js +352 -323
- package/rows/ThreeColFourteenStories/index.js +288 -278
- package/rows/ThreeColGrid/index.js +356 -327
- package/rows/ThreeColSevenStory/index.js +325 -316
- package/rows/ThreeColSixStories/index.js +326 -316
- package/rows/ThreeColTwelveStories/index.js +305 -295
- package/rows/TwoColFourStories/index.js +319 -308
- package/rows/TwoColFourStoryHighlight/index.js +320 -309
- package/rows/TwoColSevenStories/index.js +326 -315
- package/rows/TwoColSixStories/index.js +319 -310
- package/rows/TwoColTenStoriesSidebar/index.js +341 -330
- package/rows/TwoColThreeStories/index.js +319 -308
- package/story-elements/AlsoRead/index.js +70 -61
- package/story-elements/Attachment/index.js +40 -31
- package/story-elements/BigFact/index.js +35 -26
- package/story-elements/BlockQuote/index.js +61 -51
- package/story-elements/Blurb/index.js +36 -27
- package/story-elements/Image/index.js +113 -86
- package/story-elements/ImageGallery/index.js +98 -71
- package/story-elements/ImageSlideshow/index.js +147 -120
- package/story-elements/QuestionAnswer/index.js +55 -46
- package/story-elements/Quote/index.js +37 -28
- package/story-elements/Reference/index.js +40 -31
- package/story-elements/StoryElement/index.js +28 -19
- package/story-elements/Summary/index.js +40 -31
- package/story-elements/Text/index.js +34 -25
- package/story-elements/Video/index.js +29 -20
- package/{rows → story-templates}/ListicleStoryTemplate/index.js +947 -926
- package/{rows → story-templates}/ListicleStoryTemplate/styles.arrow.css +0 -0
- package/{rows → story-templates}/LiveBlogStoryTemplate/index.js +952 -931
- package/{rows → story-templates}/LiveBlogStoryTemplate/styles.arrow.css +0 -0
- package/{rows → story-templates}/PhotoStoryTemplate/index.js +922 -901
- package/{rows → story-templates}/PhotoStoryTemplate/styles.arrow.css +0 -0
- package/{rows → story-templates}/TextStoryTemplate/index.js +941 -920
- package/{rows → story-templates}/TextStoryTemplate/styles.arrow.css +0 -0
- package/{rows → story-templates}/VideoStoryTemplate/index.js +907 -886
- package/{rows → story-templates}/VideoStoryTemplate/styles.arrow.css +0 -0
- package/atoms/ExtendedLoadMore/index-96c36b0e.js +0 -86
|
@@ -1,15 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var index = require('./index-e7cde739.js');
|
|
5
|
+
var index$2 = require('./index-b22f1843.js');
|
|
6
|
+
var index$3 = require('./index-5c8eda4a.js');
|
|
7
|
+
var index$4 = require('./index-4ddfe28d.js');
|
|
8
|
+
var index$1 = require('./index-3c4ac692.js');
|
|
9
|
+
var components = require('@quintype/components');
|
|
10
|
+
var PropTypes = require('prop-types');
|
|
11
|
+
var reactRedux = require('react-redux');
|
|
12
|
+
require('react-timeago');
|
|
13
|
+
require('date-fns-tz');
|
|
14
|
+
require('react-dom');
|
|
15
|
+
|
|
16
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
17
|
+
|
|
18
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
19
|
+
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
13
20
|
|
|
14
21
|
var loadMore = function loadMore(_ref) {
|
|
15
22
|
var isLoading = _ref.isLoading,
|
|
@@ -23,7 +30,7 @@ var loadMore = function loadMore(_ref) {
|
|
|
23
30
|
getMoreStories(offset, limit);
|
|
24
31
|
};
|
|
25
32
|
|
|
26
|
-
var
|
|
33
|
+
var ThreeColGridBase = function ThreeColGridBase(_ref2) {
|
|
27
34
|
var collection = _ref2.collection,
|
|
28
35
|
_ref2$config = _ref2.config,
|
|
29
36
|
config = _ref2$config === void 0 ? {} : _ref2$config,
|
|
@@ -49,28 +56,28 @@ var ThreeColGrid = function ThreeColGrid(_ref2) {
|
|
|
49
56
|
footerButton = _config$footerButton === void 0 ? "" : _config$footerButton,
|
|
50
57
|
_config$subsequentLoa = config.subsequentLoadCount,
|
|
51
58
|
subsequentLoadCount = _config$subsequentLoa === void 0 ? 3 : _config$subsequentLoa;
|
|
52
|
-
var storyItems = collectionToStories(collection);
|
|
59
|
+
var storyItems = components.collectionToStories(collection);
|
|
53
60
|
if (!storyItems.length) return null;
|
|
54
|
-
var textColor = getTextColor(theme);
|
|
61
|
+
var textColor = index.getTextColor(theme);
|
|
55
62
|
var footerSlot = footerSlotConfig.footerSlot;
|
|
56
63
|
var footerSlotComp = footerSlot ? footerSlot() : null;
|
|
57
64
|
|
|
58
|
-
var _get = get_1(slotConfig, [0], {}),
|
|
65
|
+
var _get = index.get_1(slotConfig, [0], {}),
|
|
59
66
|
_get$type = _get.type,
|
|
60
67
|
type = _get$type === void 0 ? "" : _get$type,
|
|
61
68
|
component = _get.component;
|
|
62
69
|
|
|
63
|
-
var adWidgetSlot = type === "ad" || type === "widget" ? getSlot(type, component) : null;
|
|
64
|
-
var dispatch = useDispatch();
|
|
65
|
-
var qtConfig = useSelector(function (state) {
|
|
66
|
-
return get_1(state, ["qt", "config"], {});
|
|
70
|
+
var adWidgetSlot = type === "ad" || type === "widget" ? index.getSlot(type, component) : null;
|
|
71
|
+
var dispatch = reactRedux.useDispatch();
|
|
72
|
+
var qtConfig = reactRedux.useSelector(function (state) {
|
|
73
|
+
return index.get_1(state, ["qt", "config"], {});
|
|
67
74
|
});
|
|
68
75
|
|
|
69
76
|
var getLoadMore = function getLoadMore(opts) {
|
|
70
77
|
if (!isLoadMoreVisible) return null;
|
|
71
78
|
|
|
72
79
|
if (isolatedLoadMore) {
|
|
73
|
-
return /*#__PURE__*/
|
|
80
|
+
return /*#__PURE__*/React__default["default"].createElement(index$1.LoadMoreTarget, {
|
|
74
81
|
collection: collection,
|
|
75
82
|
componentName: "ThreeColGrid",
|
|
76
83
|
offset: storyItems.length,
|
|
@@ -78,8 +85,8 @@ var ThreeColGrid = function ThreeColGrid(_ref2) {
|
|
|
78
85
|
});
|
|
79
86
|
}
|
|
80
87
|
|
|
81
|
-
var url = generateNavigateSlug(collection, qtConfig);
|
|
82
|
-
return /*#__PURE__*/
|
|
88
|
+
var url = index.generateNavigateSlug(collection, qtConfig);
|
|
89
|
+
return /*#__PURE__*/React__default["default"].createElement(index$1.ProgressiveHydration, null, /*#__PURE__*/React__default["default"].createElement(index$1.LoadmoreButton, {
|
|
83
90
|
config: config,
|
|
84
91
|
collection: collection,
|
|
85
92
|
template: footerButton,
|
|
@@ -87,26 +94,26 @@ var ThreeColGrid = function ThreeColGrid(_ref2) {
|
|
|
87
94
|
return loadMore(opts);
|
|
88
95
|
},
|
|
89
96
|
navigate: function navigate() {
|
|
90
|
-
return navigateTo(dispatch, url);
|
|
97
|
+
return index.navigateTo(dispatch, url);
|
|
91
98
|
},
|
|
92
99
|
qtConfig: qtConfig
|
|
93
100
|
}));
|
|
94
101
|
};
|
|
95
102
|
|
|
96
103
|
var storyCard = function storyCard(story) {
|
|
97
|
-
return /*#__PURE__*/
|
|
104
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
98
105
|
className: "three-col-m_cards__2HyyK"
|
|
99
|
-
}, /*#__PURE__*/
|
|
106
|
+
}, /*#__PURE__*/React__default["default"].createElement(index$2.StoryCard, {
|
|
100
107
|
story: story,
|
|
101
108
|
border: border,
|
|
102
109
|
theme: theme,
|
|
103
110
|
isHorizontalMobile: true,
|
|
104
111
|
config: config
|
|
105
|
-
}, /*#__PURE__*/
|
|
112
|
+
}, /*#__PURE__*/React__default["default"].createElement(index$3.HeroImage, {
|
|
106
113
|
aspectRatio: [[16, 9]],
|
|
107
114
|
story: story,
|
|
108
115
|
isHorizontalMobile: true
|
|
109
|
-
}), /*#__PURE__*/
|
|
116
|
+
}), /*#__PURE__*/React__default["default"].createElement(index$4.StorycardContent, {
|
|
110
117
|
theme: theme,
|
|
111
118
|
border: border,
|
|
112
119
|
story: story,
|
|
@@ -116,28 +123,28 @@ var ThreeColGrid = function ThreeColGrid(_ref2) {
|
|
|
116
123
|
})));
|
|
117
124
|
};
|
|
118
125
|
|
|
119
|
-
return /*#__PURE__*/
|
|
126
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
120
127
|
className: "full-width-with-padding arrow-component",
|
|
121
128
|
"data-test-id": "three-col-grid",
|
|
122
129
|
style: {
|
|
123
130
|
backgroundColor: theme,
|
|
124
131
|
color: textColor
|
|
125
132
|
}
|
|
126
|
-
}, /*#__PURE__*/
|
|
133
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
127
134
|
className: "three-col-m_three-col-grid__y7rZK"
|
|
128
|
-
}, /*#__PURE__*/
|
|
135
|
+
}, /*#__PURE__*/React__default["default"].createElement(index$1.CollectionName, {
|
|
129
136
|
collection: collection,
|
|
130
137
|
collectionNameTemplate: collectionNameTemplate,
|
|
131
138
|
collectionNameBorderColor: collectionNameBorderColor
|
|
132
|
-
}), /*#__PURE__*/
|
|
139
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
133
140
|
className: "three-col-m_wrapper__20m5m"
|
|
134
|
-
}, storyItems.slice(0, 2).map(function (story, index) {
|
|
135
|
-
return /*#__PURE__*/
|
|
136
|
-
key: "story-3col1-".concat(index, "-").concat(get_1(story, ["id"], "0"))
|
|
141
|
+
}, storyItems.slice(0, 2).map(function (story, index$1) {
|
|
142
|
+
return /*#__PURE__*/React__default["default"].createElement(React.Fragment, {
|
|
143
|
+
key: "story-3col1-".concat(index$1, "-").concat(index.get_1(story, ["id"], "0"))
|
|
137
144
|
}, storyCard(story));
|
|
138
|
-
}), storyItems.length < 2 && /*#__PURE__*/
|
|
139
|
-
return /*#__PURE__*/
|
|
140
|
-
key: "story-3col1-".concat(index, "-").concat(get_1(story, ["id"], "0"))
|
|
145
|
+
}), storyItems.length < 2 && /*#__PURE__*/React__default["default"].createElement("div", null), adWidgetSlot, storyItems.slice(2).map(function (story, index$1) {
|
|
146
|
+
return /*#__PURE__*/React__default["default"].createElement(React.Fragment, {
|
|
147
|
+
key: "story-3col1-".concat(index$1, "-").concat(index.get_1(story, ["id"], "0"))
|
|
141
148
|
}, storyCard(story));
|
|
142
149
|
})), getLoadMore({
|
|
143
150
|
isLoading: isLoading,
|
|
@@ -146,31 +153,31 @@ var ThreeColGrid = function ThreeColGrid(_ref2) {
|
|
|
146
153
|
subsequentLoadCount: subsequentLoadCount
|
|
147
154
|
}), footerSlotComp));
|
|
148
155
|
};
|
|
149
|
-
|
|
150
|
-
ThreeColGrid.propTypes = {
|
|
156
|
+
ThreeColGridBase.propTypes = {
|
|
151
157
|
/** collection is the array of objects which is returning by API */
|
|
152
|
-
collection:
|
|
158
|
+
collection: PropTypes__default["default"].object.isRequired,
|
|
153
159
|
|
|
154
160
|
/** The config for the Row */
|
|
155
|
-
config:
|
|
156
|
-
theme:
|
|
157
|
-
border:
|
|
158
|
-
slotConfig:
|
|
159
|
-
footerButton:
|
|
160
|
-
collectionNameTemplate:
|
|
161
|
-
collectionNameBorderColor:
|
|
162
|
-
subsequentLoadCount:
|
|
161
|
+
config: PropTypes__default["default"].shape({
|
|
162
|
+
theme: PropTypes__default["default"].string,
|
|
163
|
+
border: PropTypes__default["default"].bool,
|
|
164
|
+
slotConfig: PropTypes__default["default"].array,
|
|
165
|
+
footerButton: PropTypes__default["default"].string,
|
|
166
|
+
collectionNameTemplate: PropTypes__default["default"].string,
|
|
167
|
+
collectionNameBorderColor: PropTypes__default["default"].string,
|
|
168
|
+
subsequentLoadCount: PropTypes__default["default"].number
|
|
163
169
|
}),
|
|
164
|
-
getMoreStories:
|
|
165
|
-
isLoadMoreVisible:
|
|
166
|
-
isLoading:
|
|
167
|
-
isolatedLoadMore:
|
|
170
|
+
getMoreStories: PropTypes__default["default"].func,
|
|
171
|
+
isLoadMoreVisible: PropTypes__default["default"].bool,
|
|
172
|
+
isLoading: PropTypes__default["default"].bool,
|
|
173
|
+
isolatedLoadMore: PropTypes__default["default"].bool
|
|
168
174
|
};
|
|
169
|
-
|
|
175
|
+
ThreeColGridBase.defaultProps = {
|
|
170
176
|
getMoreStories: function getMoreStories() {},
|
|
171
177
|
isLoadMoreVisible: true,
|
|
172
178
|
isLoading: false
|
|
173
179
|
};
|
|
174
|
-
var
|
|
180
|
+
var ThreeColGrid = index$1.StateProvider(ThreeColGridBase);
|
|
175
181
|
|
|
176
|
-
|
|
182
|
+
exports.ThreeColGrid = ThreeColGrid;
|
|
183
|
+
exports.ThreeColGridBase = ThreeColGridBase;
|
|
@@ -1,14 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-e7cde739.js');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var PropTypes = require('prop-types');
|
|
6
|
+
var components = require('@quintype/components');
|
|
7
|
+
var index$1 = require('./index-3c4ac692.js');
|
|
8
|
+
var index$3 = require('./index-5c8eda4a.js');
|
|
9
|
+
var index$2 = require('./index-b22f1843.js');
|
|
10
|
+
var reactRedux = require('react-redux');
|
|
11
|
+
require('react-timeago');
|
|
12
|
+
require('date-fns-tz');
|
|
13
|
+
require('react-dom');
|
|
14
|
+
|
|
15
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
16
|
+
|
|
17
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
18
|
+
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
12
19
|
|
|
13
20
|
var _styleModuleImportMap = {
|
|
14
21
|
"./six-col-six-stories.m.css": {
|
|
@@ -37,7 +44,7 @@ var loadMore = function loadMore(_ref) {
|
|
|
37
44
|
getMoreStories(offset, limit);
|
|
38
45
|
};
|
|
39
46
|
|
|
40
|
-
var
|
|
47
|
+
var SixColSixStoriesBase = function SixColSixStoriesBase(_ref2) {
|
|
41
48
|
var _ref2$collection = _ref2.collection,
|
|
42
49
|
collection = _ref2$collection === void 0 ? {} : _ref2$collection,
|
|
43
50
|
_ref2$config = _ref2.config,
|
|
@@ -46,7 +53,7 @@ var SixColSixStories = function SixColSixStories(_ref2) {
|
|
|
46
53
|
isLoadMoreVisible = _ref2.isLoadMoreVisible,
|
|
47
54
|
isLoading = _ref2.isLoading,
|
|
48
55
|
isolatedLoadMore = _ref2.isolatedLoadMore;
|
|
49
|
-
var stories = collectionToStories(collection);
|
|
56
|
+
var stories = components.collectionToStories(collection);
|
|
50
57
|
if (!stories.length) return null;
|
|
51
58
|
var _config$collectionNam = config.collectionNameBorderColor,
|
|
52
59
|
collectionNameBorderColor = _config$collectionNam === void 0 ? "" : _config$collectionNam,
|
|
@@ -64,18 +71,18 @@ var SixColSixStories = function SixColSixStories(_ref2) {
|
|
|
64
71
|
localizationConfig = _config$localizationC === void 0 ? {} : _config$localizationC,
|
|
65
72
|
_config$subsequentLoa = config.subsequentLoadCount,
|
|
66
73
|
subsequentLoadCount = _config$subsequentLoa === void 0 ? 6 : _config$subsequentLoa;
|
|
67
|
-
var textColor = getTextColor(theme);
|
|
74
|
+
var textColor = index.getTextColor(theme);
|
|
68
75
|
var borderStyle = border === "fullBorder" ? "vertical-border" : "";
|
|
69
|
-
var dispatch = useDispatch();
|
|
70
|
-
var qtConfig = useSelector(function (state) {
|
|
71
|
-
return get_1(state, ["qt", "config"], {});
|
|
76
|
+
var dispatch = reactRedux.useDispatch();
|
|
77
|
+
var qtConfig = reactRedux.useSelector(function (state) {
|
|
78
|
+
return index.get_1(state, ["qt", "config"], {});
|
|
72
79
|
});
|
|
73
80
|
|
|
74
81
|
var getLoadMore = function getLoadMore(opts) {
|
|
75
82
|
if (!isLoadMoreVisible) return null;
|
|
76
83
|
|
|
77
84
|
if (isolatedLoadMore) {
|
|
78
|
-
return /*#__PURE__*/
|
|
85
|
+
return /*#__PURE__*/React__default["default"].createElement(index$1.LoadMoreTarget, {
|
|
79
86
|
collection: collection,
|
|
80
87
|
componentName: "SixColSixStories",
|
|
81
88
|
offset: stories.length,
|
|
@@ -83,8 +90,8 @@ var SixColSixStories = function SixColSixStories(_ref2) {
|
|
|
83
90
|
});
|
|
84
91
|
}
|
|
85
92
|
|
|
86
|
-
var url = generateNavigateSlug(collection, qtConfig);
|
|
87
|
-
return /*#__PURE__*/
|
|
93
|
+
var url = index.generateNavigateSlug(collection, qtConfig);
|
|
94
|
+
return /*#__PURE__*/React__default["default"].createElement(index$1.ProgressiveHydration, null, /*#__PURE__*/React__default["default"].createElement(index$1.LoadmoreButton, {
|
|
88
95
|
config: config,
|
|
89
96
|
collection: collection,
|
|
90
97
|
template: footerButton,
|
|
@@ -92,49 +99,49 @@ var SixColSixStories = function SixColSixStories(_ref2) {
|
|
|
92
99
|
return loadMore(opts);
|
|
93
100
|
},
|
|
94
101
|
navigate: function navigate() {
|
|
95
|
-
return navigateTo(dispatch, url);
|
|
102
|
+
return index.navigateTo(dispatch, url);
|
|
96
103
|
},
|
|
97
104
|
qtConfig: qtConfig
|
|
98
105
|
}));
|
|
99
106
|
};
|
|
100
107
|
|
|
101
|
-
return /*#__PURE__*/
|
|
108
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
102
109
|
className: "full-width-with-padding arrow-component",
|
|
103
110
|
"data-test-id": "six-col-six-stories",
|
|
104
111
|
style: {
|
|
105
112
|
backgroundColor: theme,
|
|
106
113
|
color: textColor
|
|
107
114
|
}
|
|
108
|
-
}, /*#__PURE__*/
|
|
115
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
109
116
|
className: "six-col-six-stories-m_wrapper__2k2bf"
|
|
110
|
-
}, /*#__PURE__*/
|
|
117
|
+
}, /*#__PURE__*/React__default["default"].createElement(index$1.CollectionName, {
|
|
111
118
|
collection: collection,
|
|
112
119
|
collectionNameTemplate: collectionNameTemplate,
|
|
113
120
|
collectionNameBorderColor: collectionNameBorderColor,
|
|
114
121
|
headerLevel: "2"
|
|
115
|
-
}), /*#__PURE__*/
|
|
122
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
116
123
|
className: "six-col-six-stories-m_row-wrapper__2YNUO"
|
|
117
|
-
}, stories.map(function (story, index) {
|
|
118
|
-
return /*#__PURE__*/
|
|
119
|
-
key: "six-col-six-stories-".concat(index),
|
|
120
|
-
className: _getClassName("card-wrapper ".concat(borderStyle, " ").concat(textColor), _styleModuleImportMap)
|
|
121
|
-
}, /*#__PURE__*/
|
|
124
|
+
}, stories.map(function (story, index$4) {
|
|
125
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
126
|
+
key: "six-col-six-stories-".concat(index$4),
|
|
127
|
+
className: index._getClassName("card-wrapper ".concat(borderStyle, " ").concat(textColor), _styleModuleImportMap)
|
|
128
|
+
}, /*#__PURE__*/React__default["default"].createElement(index$2.StoryCard, {
|
|
122
129
|
story: story,
|
|
123
130
|
theme: theme,
|
|
124
131
|
config: config
|
|
125
|
-
}, /*#__PURE__*/
|
|
132
|
+
}, /*#__PURE__*/React__default["default"].createElement(index$3.HeroImage, {
|
|
126
133
|
story: story,
|
|
127
134
|
aspectRatio: [[16, 9], [16, 9]]
|
|
128
|
-
}), /*#__PURE__*/
|
|
135
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
129
136
|
className: "six-col-six-stories-m_content-wrapper__3n5nT"
|
|
130
|
-
}, /*#__PURE__*/
|
|
137
|
+
}, /*#__PURE__*/React__default["default"].createElement(index$3.SectionTag, {
|
|
131
138
|
story: story,
|
|
132
139
|
borderColor: borderColor
|
|
133
|
-
}), /*#__PURE__*/
|
|
140
|
+
}), /*#__PURE__*/React__default["default"].createElement(index$1.Headline, {
|
|
134
141
|
story: story,
|
|
135
142
|
headerLevel: "6",
|
|
136
143
|
premiumStoryIconConfig: config
|
|
137
|
-
})), /*#__PURE__*/
|
|
144
|
+
})), /*#__PURE__*/React__default["default"].createElement(index$1.AuthorWithTime, {
|
|
138
145
|
config: localizationConfig,
|
|
139
146
|
story: story
|
|
140
147
|
})));
|
|
@@ -145,32 +152,32 @@ var SixColSixStories = function SixColSixStories(_ref2) {
|
|
|
145
152
|
subsequentLoadCount: subsequentLoadCount
|
|
146
153
|
})));
|
|
147
154
|
};
|
|
148
|
-
|
|
149
|
-
var index = StateProvider(SixColSixStories);
|
|
150
|
-
SixColSixStories.propTypes = {
|
|
155
|
+
SixColSixStoriesBase.propTypes = {
|
|
151
156
|
/** collection is the array of objects which is returning by API */
|
|
152
|
-
collection:
|
|
157
|
+
collection: PropTypes__default["default"].object.isRequired,
|
|
153
158
|
|
|
154
159
|
/** The config for the Row */
|
|
155
|
-
config:
|
|
156
|
-
borderColor:
|
|
157
|
-
theme:
|
|
158
|
-
border:
|
|
159
|
-
slotConfig:
|
|
160
|
-
footerButton:
|
|
161
|
-
collectionNameTemplate:
|
|
162
|
-
collectionNameBorderColor:
|
|
163
|
-
subsequentLoadCount:
|
|
160
|
+
config: PropTypes__default["default"].shape({
|
|
161
|
+
borderColor: PropTypes__default["default"].string,
|
|
162
|
+
theme: PropTypes__default["default"].string,
|
|
163
|
+
border: PropTypes__default["default"].string,
|
|
164
|
+
slotConfig: PropTypes__default["default"].array,
|
|
165
|
+
footerButton: PropTypes__default["default"].string,
|
|
166
|
+
collectionNameTemplate: PropTypes__default["default"].string,
|
|
167
|
+
collectionNameBorderColor: PropTypes__default["default"].string,
|
|
168
|
+
subsequentLoadCount: PropTypes__default["default"].number
|
|
164
169
|
}),
|
|
165
|
-
getMoreStories:
|
|
166
|
-
isLoadMoreVisible:
|
|
167
|
-
isLoading:
|
|
168
|
-
isolatedLoadMore:
|
|
170
|
+
getMoreStories: PropTypes__default["default"].func,
|
|
171
|
+
isLoadMoreVisible: PropTypes__default["default"].bool,
|
|
172
|
+
isLoading: PropTypes__default["default"].bool,
|
|
173
|
+
isolatedLoadMore: PropTypes__default["default"].bool
|
|
169
174
|
};
|
|
170
|
-
|
|
175
|
+
SixColSixStoriesBase.defaultProps = {
|
|
171
176
|
getMoreStories: function getMoreStories() {},
|
|
172
177
|
isLoadMoreVisible: true,
|
|
173
178
|
isLoading: false
|
|
174
179
|
};
|
|
180
|
+
var SixColSixStories = index$1.StateProvider(SixColSixStoriesBase);
|
|
175
181
|
|
|
176
|
-
|
|
182
|
+
exports.SixColSixStories = SixColSixStories;
|
|
183
|
+
exports.SixColSixStoriesBase = SixColSixStoriesBase;
|