@quintype/arrow 3.15.1-perf.2 → 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-d0f6c865.js → index-3976fac4.js} +59 -51
- package/atoms/ExtendedLoadMore/{index-1e444d20.js → index-3c4ac692.js} +243 -208
- package/atoms/ExtendedLoadMore/index-4ddfe28d.js +93 -0
- package/atoms/ExtendedLoadMore/{index-c61a16dc.js → index-5c8eda4a.js} +88 -80
- package/atoms/ExtendedLoadMore/{index-1256e453.js → index-6e083738.js} +60 -52
- package/atoms/ExtendedLoadMore/{index-fd651f70.js → index-6ecceae4.js} +58 -50
- package/atoms/ExtendedLoadMore/{index-4356ce04.js → index-9e0d32b7.js} +76 -68
- package/atoms/ExtendedLoadMore/{index-beed3a68.js → index-a5c95f84.js} +70 -62
- package/atoms/ExtendedLoadMore/{index-0519e570.js → index-b22f1843.js} +70 -62
- package/atoms/ExtendedLoadMore/{index-e4cf9cb7.js → index-b5936059.js} +72 -64
- package/atoms/ExtendedLoadMore/{index-aba6b278.js → index-bc129cb8.js} +57 -49
- package/atoms/ExtendedLoadMore/{index-ad3c83c3.js → index-e7cde739.js} +74 -46
- package/atoms/ExtendedLoadMore/{index-c2f73d18.js → index-fee73a14.js} +62 -54
- 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 +72 -61
- 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 +345 -333
- package/rows/AsideCollection/index.js +340 -328
- package/rows/AstrologyCollection/index.js +321 -309
- package/rows/AuthorIntroductionCard/index.js +157 -148
- package/rows/AuthorsList/index.js +184 -174
- package/rows/CollectionFilter/index.js +361 -349
- package/rows/ElevenStories/index.js +357 -346
- package/rows/FourColFiveStories/index.js +304 -274
- package/rows/FourColGrid/index.js +351 -321
- package/rows/FourColPortraitStories/index.js +357 -327
- package/rows/FourColSixteenStories/index.js +288 -277
- package/rows/FourColTwelveStories/index.js +315 -304
- package/rows/FourStorySlider/index.js +358 -347
- package/rows/FourStorySliderPortrait/index.js +359 -348
- package/rows/FourTabbedBigStorySlider/index.js +322 -311
- package/rows/FullScreenSlider/index.js +336 -325
- package/rows/HalfScreenSlider/index.js +308 -297
- package/rows/ListComponent/index.js +322 -311
- package/rows/Listicles/index.js +150 -139
- package/rows/MagazineEditions/index.js +104 -93
- package/rows/MagazineHeaderCard/index.js +104 -93
- package/rows/MagazineWidget/index.js +326 -315
- package/rows/OneColStoryList/index.js +365 -335
- package/rows/OpinionCollection/index.js +250 -220
- package/rows/SixColSixStories/index.js +333 -303
- package/rows/StoryCollection/index.js +340 -328
- package/rows/TagIntroductionCard/index.js +30 -21
- package/rows/ThreeColFlexStories/index.js +348 -318
- package/rows/ThreeColFourteenStories/index.js +285 -274
- package/rows/ThreeColGrid/index.js +352 -322
- package/rows/ThreeColSevenStory/index.js +322 -311
- package/rows/ThreeColSixStories/index.js +323 -312
- package/rows/ThreeColTwelveStories/index.js +302 -291
- package/rows/TwoColFourStories/index.js +316 -305
- package/rows/TwoColFourStoryHighlight/index.js +317 -306
- package/rows/TwoColSevenStories/index.js +322 -311
- package/rows/TwoColSixStories/index.js +316 -305
- package/rows/TwoColTenStoriesSidebar/index.js +338 -327
- package/rows/TwoColThreeStories/index.js +316 -305
- 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/story-templates/ListicleStoryTemplate/index.js +937 -908
- package/story-templates/LiveBlogStoryTemplate/index.js +942 -913
- package/story-templates/PhotoStoryTemplate/index.js +912 -883
- package/story-templates/TextStoryTemplate/index.js +931 -902
- package/story-templates/VideoStoryTemplate/index.js +897 -868
- package/atoms/ExtendedLoadMore/index-81eb3978.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,
|
|
@@ -49,28 +56,28 @@ var ThreeColGridBase = function ThreeColGridBase(_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 ThreeColGridBase = function ThreeColGridBase(_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 ThreeColGridBase = function ThreeColGridBase(_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 ThreeColGridBase = function ThreeColGridBase(_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,
|
|
@@ -148,28 +155,29 @@ var ThreeColGridBase = function ThreeColGridBase(_ref2) {
|
|
|
148
155
|
};
|
|
149
156
|
ThreeColGridBase.propTypes = {
|
|
150
157
|
/** collection is the array of objects which is returning by API */
|
|
151
|
-
collection:
|
|
158
|
+
collection: PropTypes__default["default"].object.isRequired,
|
|
152
159
|
|
|
153
160
|
/** The config for the Row */
|
|
154
|
-
config:
|
|
155
|
-
theme:
|
|
156
|
-
border:
|
|
157
|
-
slotConfig:
|
|
158
|
-
footerButton:
|
|
159
|
-
collectionNameTemplate:
|
|
160
|
-
collectionNameBorderColor:
|
|
161
|
-
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
|
|
162
169
|
}),
|
|
163
|
-
getMoreStories:
|
|
164
|
-
isLoadMoreVisible:
|
|
165
|
-
isLoading:
|
|
166
|
-
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
|
|
167
174
|
};
|
|
168
175
|
ThreeColGridBase.defaultProps = {
|
|
169
176
|
getMoreStories: function getMoreStories() {},
|
|
170
177
|
isLoadMoreVisible: true,
|
|
171
178
|
isLoading: false
|
|
172
179
|
};
|
|
173
|
-
var ThreeColGrid = StateProvider(ThreeColGridBase);
|
|
180
|
+
var ThreeColGrid = index$1.StateProvider(ThreeColGridBase);
|
|
174
181
|
|
|
175
|
-
|
|
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": {
|
|
@@ -46,7 +53,7 @@ var SixColSixStoriesBase = function SixColSixStoriesBase(_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 SixColSixStoriesBase = function SixColSixStoriesBase(_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 SixColSixStoriesBase = function SixColSixStoriesBase(_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 SixColSixStoriesBase = function SixColSixStoriesBase(_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
|
})));
|
|
@@ -147,29 +154,30 @@ var SixColSixStoriesBase = function SixColSixStoriesBase(_ref2) {
|
|
|
147
154
|
};
|
|
148
155
|
SixColSixStoriesBase.propTypes = {
|
|
149
156
|
/** collection is the array of objects which is returning by API */
|
|
150
|
-
collection:
|
|
157
|
+
collection: PropTypes__default["default"].object.isRequired,
|
|
151
158
|
|
|
152
159
|
/** The config for the Row */
|
|
153
|
-
config:
|
|
154
|
-
borderColor:
|
|
155
|
-
theme:
|
|
156
|
-
border:
|
|
157
|
-
slotConfig:
|
|
158
|
-
footerButton:
|
|
159
|
-
collectionNameTemplate:
|
|
160
|
-
collectionNameBorderColor:
|
|
161
|
-
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
|
|
162
169
|
}),
|
|
163
|
-
getMoreStories:
|
|
164
|
-
isLoadMoreVisible:
|
|
165
|
-
isLoading:
|
|
166
|
-
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
|
|
167
174
|
};
|
|
168
175
|
SixColSixStoriesBase.defaultProps = {
|
|
169
176
|
getMoreStories: function getMoreStories() {},
|
|
170
177
|
isLoadMoreVisible: true,
|
|
171
178
|
isLoading: false
|
|
172
179
|
};
|
|
173
|
-
var SixColSixStories = StateProvider(SixColSixStoriesBase);
|
|
180
|
+
var SixColSixStories = index$1.StateProvider(SixColSixStoriesBase);
|
|
174
181
|
|
|
175
|
-
|
|
182
|
+
exports.SixColSixStories = SixColSixStories;
|
|
183
|
+
exports.SixColSixStoriesBase = SixColSixStoriesBase;
|