@quintype/arrow 3.15.1-perf.1 → 3.15.1-perf.4
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 +48 -2128
- package/atoms/Author/styles.arrow.css +1 -1
- package/atoms/AuthorWithTime/index.js +116 -2556
- package/atoms/AuthorWithTime/styles.arrow.css +1 -1
- package/atoms/CollectionName/index.js +48 -2127
- package/atoms/CollectionName/styles.arrow.css +1 -1
- package/atoms/ExtendedLoadMore/{index-6f8c780e.js → index-0f809dd9.js} +73 -62
- package/atoms/ExtendedLoadMore/index-142f015c.js +476 -0
- package/atoms/ExtendedLoadMore/{index-2d713010.js → index-37a9ccff.js} +63 -47
- package/atoms/ExtendedLoadMore/{index-8345922c.js → index-446679c8.js} +67 -51
- package/atoms/ExtendedLoadMore/{index-6daa674c.js → index-44f97338.js} +86 -68
- package/atoms/ExtendedLoadMore/{index-c8f346d0.js → index-57dd4870.js} +80 -64
- package/atoms/ExtendedLoadMore/{index-7eb05b3d.js → index-66dd4dbd.js} +70 -54
- package/atoms/ExtendedLoadMore/{index-6cb56d1a.js → index-8462c597.js} +93 -80
- package/atoms/ExtendedLoadMore/{index-aa8b8ab8.js → index-93cb06d1.js} +252 -226
- package/atoms/ExtendedLoadMore/index-afd44863.js +95 -0
- package/atoms/ExtendedLoadMore/{index-5a7900ba.js → index-b5754c5d.js} +67 -53
- package/atoms/ExtendedLoadMore/{index-4191a84c.js → index-bbaf526e.js} +78 -62
- package/atoms/ExtendedLoadMore/{index-99af722e.js → index-cfb262ef.js} +65 -48
- package/atoms/ExtendedLoadMore/index.js +20 -5
- package/atoms/ExtendedLoadMore/styles.arrow.css +1 -1
- package/atoms/Headline/index.js +95 -2175
- package/atoms/Headline/styles.arrow.css +1 -1
- package/atoms/HeroImage/index.js +91 -2230
- package/atoms/HeroImage/styles.arrow.css +1 -1
- package/atoms/LoadmoreButton/index.js +40 -2133
- package/atoms/LoadmoreButton/styles.arrow.css +1 -1
- package/atoms/ScrollSnap/index.js +89 -2241
- package/atoms/ScrollSnap/styles.arrow.css +1 -1
- package/atoms/SectionTag/index.js +40 -2120
- package/atoms/SectionTag/styles.arrow.css +1 -1
- package/atoms/Subheadline/index.js +35 -2115
- package/atoms/Subheadline/styles.arrow.css +1 -1
- package/atoms/TimeStamp/index.js +43 -2483
- package/atoms/TimeStamp/styles.arrow.css +1 -1
- package/molecules/KeyEvents/index.js +95 -2606
- package/molecules/KeyEvents/styles.arrow.css +1 -1
- package/molecules/PageIntroductionCard/index.js +59 -2487
- package/molecules/PageIntroductionCard/styles.arrow.css +1 -1
- package/molecules/SocialShareTemplate/index.js +213 -2800
- package/molecules/SocialShareTemplate/styles.arrow.css +1 -1
- package/molecules/StoryCard/index.js +308 -2816
- package/molecules/StoryCard/styles.arrow.css +1 -1
- package/molecules/StoryElementCard/index.js +611 -3352
- package/molecules/StoryElementCard/styles.arrow.css +1 -1
- package/molecules/StorycardContent/index.js +218 -2658
- package/molecules/StorycardContent/styles.arrow.css +1 -1
- package/package.json +1 -1
- package/rows/AlternateCollectionFilter/index.js +438 -2993
- package/rows/AlternateCollectionFilter/styles.arrow.css +1 -1
- package/rows/AsideCollection/index.js +432 -2987
- package/rows/AsideCollection/styles.arrow.css +1 -1
- package/rows/AstrologyCollection/index.js +411 -2966
- package/rows/AstrologyCollection/styles.arrow.css +1 -1
- package/rows/AuthorIntroductionCard/index.js +183 -2890
- package/rows/AuthorIntroductionCard/styles.arrow.css +1 -1
- package/rows/AuthorsList/index.js +217 -2936
- package/rows/AuthorsList/styles.arrow.css +1 -1
- package/rows/CollectionFilter/index.js +453 -3008
- package/rows/CollectionFilter/styles.arrow.css +1 -1
- package/rows/ElevenStories/index.js +439 -2959
- package/rows/ElevenStories/styles.arrow.css +1 -1
- package/rows/FourColFiveStories/index.js +374 -2872
- package/rows/FourColFiveStories/styles.arrow.css +1 -1
- package/rows/FourColGrid/index.js +426 -2927
- package/rows/FourColGrid/styles.arrow.css +1 -1
- package/rows/FourColPortraitStories/index.js +430 -2931
- package/rows/FourColPortraitStories/styles.arrow.css +1 -1
- package/rows/FourColSixteenStories/index.js +368 -2894
- package/rows/FourColSixteenStories/styles.arrow.css +1 -1
- package/rows/FourColTwelveStories/index.js +387 -2900
- package/rows/FourColTwelveStories/styles.arrow.css +1 -1
- package/rows/FourStorySlider/index.js +443 -2963
- package/rows/FourStorySlider/styles.arrow.css +1 -1
- package/rows/FourStorySliderPortrait/index.js +444 -2964
- package/rows/FourStorySliderPortrait/styles.arrow.css +1 -1
- package/rows/FourTabbedBigStorySlider/index.js +403 -2923
- package/rows/FourTabbedBigStorySlider/styles.arrow.css +1 -1
- package/rows/FullScreenSlider/index.js +422 -2942
- package/rows/FullScreenSlider/styles.arrow.css +1 -1
- package/rows/HalfScreenSlider/index.js +390 -2910
- package/rows/HalfScreenSlider/styles.arrow.css +1 -1
- package/rows/ListComponent/index.js +398 -2918
- package/rows/ListComponent/styles.arrow.css +1 -1
- package/rows/Listicles/index.js +189 -2375
- package/rows/Listicles/styles.arrow.css +1 -1
- package/rows/MagazineEditions/index.js +128 -2580
- package/rows/MagazineEditions/styles.arrow.css +1 -1
- package/rows/MagazineHeaderCard/index.js +125 -2577
- package/rows/MagazineHeaderCard/styles.arrow.css +1 -1
- package/rows/MagazineWidget/index.js +408 -2928
- package/rows/MagazineWidget/styles.arrow.css +1 -1
- package/rows/OneColStoryList/index.js +439 -2940
- package/rows/OneColStoryList/styles.arrow.css +1 -1
- package/rows/OpinionCollection/index.js +308 -2800
- package/rows/OpinionCollection/styles.arrow.css +1 -1
- package/rows/SixColSixStories/index.js +405 -2906
- package/rows/SixColSixStories/styles.arrow.css +1 -1
- package/rows/StoryCollection/index.js +432 -2987
- package/rows/StoryCollection/styles.arrow.css +1 -1
- package/rows/TagIntroductionCard/index.js +35 -1833
- package/rows/TagIntroductionCard/styles.arrow.css +1 -1
- package/rows/ThreeColFlexStories/index.js +421 -2922
- package/rows/ThreeColFlexStories/styles.arrow.css +1 -1
- package/rows/ThreeColFourteenStories/index.js +358 -2871
- package/rows/ThreeColFourteenStories/styles.arrow.css +1 -1
- package/rows/ThreeColGrid/index.js +428 -2929
- package/rows/ThreeColGrid/styles.arrow.css +1 -1
- package/rows/ThreeColSevenStory/index.js +406 -2926
- package/rows/ThreeColSevenStory/styles.arrow.css +1 -1
- package/rows/ThreeColSixStories/index.js +400 -2920
- package/rows/ThreeColSixStories/styles.arrow.css +1 -1
- package/rows/ThreeColTwelveStories/index.js +383 -2909
- package/rows/ThreeColTwelveStories/styles.arrow.css +1 -1
- package/rows/TwoColFourStories/index.js +395 -2915
- package/rows/TwoColFourStories/styles.arrow.css +1 -1
- package/rows/TwoColFourStoryHighlight/index.js +398 -2924
- package/rows/TwoColFourStoryHighlight/styles.arrow.css +1 -1
- package/rows/TwoColSevenStories/index.js +400 -2920
- package/rows/TwoColSevenStories/styles.arrow.css +1 -1
- package/rows/TwoColSixStories/index.js +398 -2924
- package/rows/TwoColSixStories/styles.arrow.css +1 -1
- package/rows/TwoColTenStoriesSidebar/index.js +418 -2938
- package/rows/TwoColTenStoriesSidebar/styles.arrow.css +1 -1
- package/rows/TwoColThreeStories/index.js +392 -2912
- package/rows/TwoColThreeStories/styles.arrow.css +1 -1
- package/story-elements/AlsoRead/index.js +92 -2229
- package/story-elements/AlsoRead/styles.arrow.css +1 -1
- package/story-elements/Attachment/index.js +53 -1899
- package/story-elements/Attachment/styles.arrow.css +1 -1
- package/story-elements/BigFact/index.js +49 -1895
- package/story-elements/BigFact/styles.arrow.css +1 -1
- package/story-elements/BlockQuote/index.js +79 -2206
- package/story-elements/BlockQuote/styles.arrow.css +1 -1
- package/story-elements/Blurb/index.js +52 -1957
- package/story-elements/Blurb/styles.arrow.css +1 -1
- package/story-elements/Image/index.js +147 -2329
- package/story-elements/Image/styles.arrow.css +1 -1
- package/story-elements/ImageGallery/index.js +135 -2317
- package/story-elements/ImageGallery/styles.arrow.css +1 -1
- package/story-elements/ImageSlideshow/index.js +173 -2355
- package/story-elements/ImageSlideshow/styles.arrow.css +1 -1
- package/story-elements/QuestionAnswer/index.js +79 -2207
- package/story-elements/QuestionAnswer/styles.arrow.css +1 -1
- package/story-elements/Quote/index.js +52 -1898
- package/story-elements/Quote/styles.arrow.css +1 -1
- package/story-elements/Reference/index.js +53 -1899
- package/story-elements/Reference/styles.arrow.css +1 -1
- package/story-elements/StoryElement/index.js +34 -1738
- package/story-elements/Summary/index.js +56 -1902
- package/story-elements/Summary/styles.arrow.css +1 -1
- package/story-elements/Text/index.js +48 -2176
- package/story-elements/Text/styles.arrow.css +1 -1
- package/story-elements/Video/index.js +35 -1739
- package/story-elements/Video/styles.arrow.css +1 -1
- package/story-templates/ListicleStoryTemplate/index.js +1182 -4038
- package/story-templates/ListicleStoryTemplate/styles.arrow.css +1 -1
- package/story-templates/LiveBlogStoryTemplate/index.js +1377 -4233
- package/story-templates/LiveBlogStoryTemplate/styles.arrow.css +1 -1
- package/story-templates/PhotoStoryTemplate/index.js +1162 -4018
- package/story-templates/PhotoStoryTemplate/styles.arrow.css +1 -1
- package/story-templates/TextStoryTemplate/index.js +1277 -4133
- package/story-templates/TextStoryTemplate/styles.arrow.css +1 -1
- package/story-templates/VideoStoryTemplate/index.js +1231 -4087
- package/story-templates/VideoStoryTemplate/styles.arrow.css +1 -1
- package/atoms/ExtendedLoadMore/index-e39b3ca8.js +0 -3023
- package/atoms/ExtendedLoadMore/index-f6e578e3.js +0 -86
|
@@ -1,25 +1,58 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var _getClassName = require('babel-plugin-react-css-modules/dist/browser/getClassName');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var PropTypes = require('prop-types');
|
|
6
|
+
var components = require('@quintype/components');
|
|
7
|
+
var lodash = require('lodash');
|
|
8
|
+
var index = require('./index-142f015c.js');
|
|
9
|
+
var reactRedux = require('react-redux');
|
|
10
|
+
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
11
|
+
var ReactDOM = require('react-dom');
|
|
12
|
+
var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
13
|
+
|
|
14
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
15
|
+
|
|
16
|
+
function _interopNamespace(e) {
|
|
17
|
+
if (e && e.__esModule) return e;
|
|
18
|
+
var n = Object.create(null);
|
|
19
|
+
if (e) {
|
|
20
|
+
Object.keys(e).forEach(function (k) {
|
|
21
|
+
if (k !== 'default') {
|
|
22
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
23
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () { return e[k]; }
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
n["default"] = e;
|
|
31
|
+
return Object.freeze(n);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
var _getClassName__default = /*#__PURE__*/_interopDefaultLegacy(_getClassName);
|
|
35
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
36
|
+
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
37
|
+
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
38
|
+
var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
|
|
39
|
+
var _slicedToArray__default = /*#__PURE__*/_interopDefaultLegacy(_slicedToArray);
|
|
7
40
|
|
|
8
|
-
var StateContext = /*#__PURE__*/createContext(); // eslint-disable-next-line react/display-name
|
|
41
|
+
var StateContext = /*#__PURE__*/React.createContext(); // eslint-disable-next-line react/display-name
|
|
9
42
|
|
|
10
43
|
var StateProvider = function StateProvider(RowComponent) {
|
|
11
44
|
return function (props) {
|
|
12
45
|
return (
|
|
13
46
|
/*#__PURE__*/
|
|
14
47
|
// eslint-disable-next-line react/prop-types
|
|
15
|
-
|
|
48
|
+
React__default["default"].createElement(StateContext.Provider, {
|
|
16
49
|
value: props.config
|
|
17
|
-
}, /*#__PURE__*/
|
|
50
|
+
}, /*#__PURE__*/React__default["default"].createElement(RowComponent, props))
|
|
18
51
|
);
|
|
19
52
|
};
|
|
20
53
|
};
|
|
21
54
|
var useStateValue = function useStateValue() {
|
|
22
|
-
return useContext(StateContext);
|
|
55
|
+
return React.useContext(StateContext);
|
|
23
56
|
};
|
|
24
57
|
|
|
25
58
|
var CrownIcon = function CrownIcon(_ref) {
|
|
@@ -28,7 +61,7 @@ var CrownIcon = function CrownIcon(_ref) {
|
|
|
28
61
|
_ref$color = _ref.color,
|
|
29
62
|
color = _ref$color === void 0 ? "#D8D8D8" : _ref$color,
|
|
30
63
|
positionTop = _ref.positionTop;
|
|
31
|
-
return /*#__PURE__*/
|
|
64
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
32
65
|
xmlns: "http://www.w3.org/2000/svg",
|
|
33
66
|
width: width,
|
|
34
67
|
height: height,
|
|
@@ -37,28 +70,28 @@ var CrownIcon = function CrownIcon(_ref) {
|
|
|
37
70
|
position: "relative",
|
|
38
71
|
top: positionTop
|
|
39
72
|
}
|
|
40
|
-
}, /*#__PURE__*/
|
|
73
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
41
74
|
fill: "none",
|
|
42
75
|
fillRule: "evenodd",
|
|
43
76
|
stroke: "none",
|
|
44
77
|
strokeWidth: "1"
|
|
45
|
-
}, /*#__PURE__*/
|
|
78
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
46
79
|
transform: "translate(8 8)"
|
|
47
|
-
}, /*#__PURE__*/
|
|
80
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
48
81
|
d: "M0 0H24V24H0z"
|
|
49
|
-
}), /*#__PURE__*/
|
|
82
|
+
}), /*#__PURE__*/React__default["default"].createElement("g", {
|
|
50
83
|
fill: color,
|
|
51
84
|
fillRule: "nonzero",
|
|
52
85
|
transform: "translate(0 2)"
|
|
53
|
-
}, /*#__PURE__*/
|
|
86
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
54
87
|
d: "M21.043 19.553c0-.743-.601-1.344-1.344-1.344h-15.4a1.343 1.343 0 100 2.688h15.4c.743 0 1.344-.603 1.344-1.344zM1.598 8.673c.022 0 .042 0 .064-.003l2.131 7.713h16.411l2.132-7.713c.022 0 .041.003.063.003a1.599 1.599 0 10-1.52-1.108L17.025 9.82 12.882 2.95a1.599 1.599 0 10-1.765 0L6.976 9.82 3.121 7.565a1.599 1.599 0 10-1.523 1.107z"
|
|
55
88
|
}))))));
|
|
56
89
|
};
|
|
57
90
|
CrownIcon.propTypes = {
|
|
58
|
-
height:
|
|
59
|
-
width:
|
|
60
|
-
color:
|
|
61
|
-
positionTop:
|
|
91
|
+
height: PropTypes__default["default"].string,
|
|
92
|
+
width: PropTypes__default["default"].string,
|
|
93
|
+
color: PropTypes__default["default"].string,
|
|
94
|
+
positionTop: PropTypes__default["default"].string
|
|
62
95
|
};
|
|
63
96
|
|
|
64
97
|
var KeyIcon = function KeyIcon(_ref) {
|
|
@@ -67,7 +100,7 @@ var KeyIcon = function KeyIcon(_ref) {
|
|
|
67
100
|
_ref$color = _ref.color,
|
|
68
101
|
color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
|
|
69
102
|
positionTop = _ref.positionTop;
|
|
70
|
-
return /*#__PURE__*/
|
|
103
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
71
104
|
xmlns: "http://www.w3.org/2000/svg",
|
|
72
105
|
width: width,
|
|
73
106
|
height: height,
|
|
@@ -76,16 +109,16 @@ var KeyIcon = function KeyIcon(_ref) {
|
|
|
76
109
|
position: "relative",
|
|
77
110
|
top: positionTop
|
|
78
111
|
}
|
|
79
|
-
}, /*#__PURE__*/
|
|
112
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
80
113
|
fill: "none",
|
|
81
114
|
fillRule: "evenodd",
|
|
82
115
|
stroke: "none",
|
|
83
116
|
strokeWidth: "1"
|
|
84
|
-
}, /*#__PURE__*/
|
|
117
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
85
118
|
transform: "translate(8 8)"
|
|
86
|
-
}, /*#__PURE__*/
|
|
119
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
87
120
|
d: "M0 0H24V24H0z"
|
|
88
|
-
}), /*#__PURE__*/
|
|
121
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
89
122
|
fill: color,
|
|
90
123
|
fillRule: "nonzero",
|
|
91
124
|
d: "M12.71 4.364A6.54 6.54 0 000 6.545a6.54 6.54 0 0012.71 2.182h4.745v4.364h4.363V8.727H24V4.364H12.71zM6.544 8.727a2.181 2.181 0 110-4.362 2.181 2.181 0 010 4.362z",
|
|
@@ -93,10 +126,10 @@ var KeyIcon = function KeyIcon(_ref) {
|
|
|
93
126
|
})))));
|
|
94
127
|
};
|
|
95
128
|
KeyIcon.propTypes = {
|
|
96
|
-
height:
|
|
97
|
-
width:
|
|
98
|
-
color:
|
|
99
|
-
positionTop:
|
|
129
|
+
height: PropTypes__default["default"].string,
|
|
130
|
+
width: PropTypes__default["default"].string,
|
|
131
|
+
color: PropTypes__default["default"].string,
|
|
132
|
+
positionTop: PropTypes__default["default"].string
|
|
100
133
|
};
|
|
101
134
|
|
|
102
135
|
var LockIcon = function LockIcon(_ref) {
|
|
@@ -105,7 +138,7 @@ var LockIcon = function LockIcon(_ref) {
|
|
|
105
138
|
_ref$color = _ref.color,
|
|
106
139
|
color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
|
|
107
140
|
positionTop = _ref.positionTop;
|
|
108
|
-
return /*#__PURE__*/
|
|
141
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
109
142
|
xmlns: "http://www.w3.org/2000/svg",
|
|
110
143
|
width: width,
|
|
111
144
|
height: height,
|
|
@@ -114,28 +147,28 @@ var LockIcon = function LockIcon(_ref) {
|
|
|
114
147
|
position: "relative",
|
|
115
148
|
top: positionTop
|
|
116
149
|
}
|
|
117
|
-
}, /*#__PURE__*/
|
|
150
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
118
151
|
fill: "none",
|
|
119
152
|
fillRule: "evenodd",
|
|
120
153
|
stroke: "none",
|
|
121
154
|
strokeWidth: "1"
|
|
122
|
-
}, /*#__PURE__*/
|
|
155
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
123
156
|
transform: "translate(8 8)"
|
|
124
|
-
}, /*#__PURE__*/
|
|
157
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
125
158
|
d: "M0 0H24V24H0z"
|
|
126
|
-
}), /*#__PURE__*/
|
|
159
|
+
}), /*#__PURE__*/React__default["default"].createElement("g", {
|
|
127
160
|
fill: color,
|
|
128
161
|
fillRule: "nonzero",
|
|
129
162
|
transform: "translate(3)"
|
|
130
|
-
}, /*#__PURE__*/
|
|
163
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
131
164
|
d: "M15.692 9h-.747V6c0-3.31-2.681-6-5.978-6C5.67 0 2.989 2.69 2.989 6v3h-.747A2.249 2.249 0 000 11.25v10.5A2.249 2.249 0 002.242 24h13.45a2.249 2.249 0 002.242-2.25v-10.5A2.249 2.249 0 0015.692 9zM4.982 6c0-2.206 1.787-4 3.985-4s3.985 1.794 3.985 4v3h-7.97V6z"
|
|
132
165
|
}))))));
|
|
133
166
|
};
|
|
134
167
|
LockIcon.propTypes = {
|
|
135
|
-
height:
|
|
136
|
-
width:
|
|
137
|
-
color:
|
|
138
|
-
positionTop:
|
|
168
|
+
height: PropTypes__default["default"].string,
|
|
169
|
+
width: PropTypes__default["default"].string,
|
|
170
|
+
color: PropTypes__default["default"].string,
|
|
171
|
+
positionTop: PropTypes__default["default"].string
|
|
139
172
|
};
|
|
140
173
|
|
|
141
174
|
var StarIcon = function StarIcon(_ref) {
|
|
@@ -145,7 +178,7 @@ var StarIcon = function StarIcon(_ref) {
|
|
|
145
178
|
color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
|
|
146
179
|
_ref$positionTop = _ref.positionTop,
|
|
147
180
|
positionTop = _ref$positionTop === void 0 ? "" : _ref$positionTop;
|
|
148
|
-
return /*#__PURE__*/
|
|
181
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
149
182
|
xmlns: "http://www.w3.org/2000/svg",
|
|
150
183
|
width: width,
|
|
151
184
|
height: height,
|
|
@@ -154,21 +187,21 @@ var StarIcon = function StarIcon(_ref) {
|
|
|
154
187
|
position: "relative",
|
|
155
188
|
top: positionTop
|
|
156
189
|
}
|
|
157
|
-
}, /*#__PURE__*/
|
|
190
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
158
191
|
fill: "none",
|
|
159
192
|
fillRule: "evenodd",
|
|
160
193
|
stroke: "none",
|
|
161
194
|
strokeWidth: "1"
|
|
162
|
-
}, /*#__PURE__*/
|
|
195
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
163
196
|
fill: color,
|
|
164
197
|
d: "M20 26L12.946577 29.7082039 14.2936609 21.854102 8.5873218 16.2917961 16.4732885 15.145898 20 8 23.5267115 15.145898 31.4126782 16.2917961 25.7063391 21.854102 27.053423 29.7082039z"
|
|
165
198
|
}))));
|
|
166
199
|
};
|
|
167
200
|
StarIcon.propTypes = {
|
|
168
|
-
height:
|
|
169
|
-
width:
|
|
170
|
-
color:
|
|
171
|
-
positionTop:
|
|
201
|
+
height: PropTypes__default["default"].string,
|
|
202
|
+
width: PropTypes__default["default"].string,
|
|
203
|
+
color: PropTypes__default["default"].string,
|
|
204
|
+
positionTop: PropTypes__default["default"].string
|
|
172
205
|
};
|
|
173
206
|
|
|
174
207
|
var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
@@ -180,7 +213,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
|
180
213
|
|
|
181
214
|
switch (iconType) {
|
|
182
215
|
case "crown":
|
|
183
|
-
return /*#__PURE__*/
|
|
216
|
+
return /*#__PURE__*/React__default["default"].createElement(CrownIcon, {
|
|
184
217
|
width: width,
|
|
185
218
|
height: height,
|
|
186
219
|
color: color,
|
|
@@ -188,7 +221,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
|
188
221
|
});
|
|
189
222
|
|
|
190
223
|
case "lock":
|
|
191
|
-
return /*#__PURE__*/
|
|
224
|
+
return /*#__PURE__*/React__default["default"].createElement(LockIcon, {
|
|
192
225
|
width: width,
|
|
193
226
|
height: height,
|
|
194
227
|
color: color,
|
|
@@ -196,7 +229,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
|
196
229
|
});
|
|
197
230
|
|
|
198
231
|
case "key":
|
|
199
|
-
return /*#__PURE__*/
|
|
232
|
+
return /*#__PURE__*/React__default["default"].createElement(KeyIcon, {
|
|
200
233
|
width: width,
|
|
201
234
|
height: height,
|
|
202
235
|
color: color,
|
|
@@ -204,7 +237,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
|
204
237
|
});
|
|
205
238
|
|
|
206
239
|
default:
|
|
207
|
-
return /*#__PURE__*/
|
|
240
|
+
return /*#__PURE__*/React__default["default"].createElement(StarIcon, {
|
|
208
241
|
width: width,
|
|
209
242
|
height: height,
|
|
210
243
|
color: color,
|
|
@@ -213,21 +246,21 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
|
|
|
213
246
|
}
|
|
214
247
|
};
|
|
215
248
|
PremiumStoryIcon.propTypes = {
|
|
216
|
-
width:
|
|
217
|
-
height:
|
|
218
|
-
color:
|
|
219
|
-
iconType:
|
|
220
|
-
positionTop:
|
|
249
|
+
width: PropTypes__default["default"].string,
|
|
250
|
+
height: PropTypes__default["default"].string,
|
|
251
|
+
color: PropTypes__default["default"].string,
|
|
252
|
+
iconType: PropTypes__default["default"].string,
|
|
253
|
+
positionTop: PropTypes__default["default"].string
|
|
221
254
|
};
|
|
222
255
|
|
|
223
256
|
function LiveIcon() {
|
|
224
|
-
return /*#__PURE__*/
|
|
257
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
225
258
|
className: "live-icon",
|
|
226
259
|
xmlns: "http://www.w3.org/2000/svg",
|
|
227
260
|
width: "25",
|
|
228
261
|
height: "24",
|
|
229
262
|
viewBox: "0 0 25 24"
|
|
230
|
-
}, /*#__PURE__*/
|
|
263
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
231
264
|
fill: "#ff5858",
|
|
232
265
|
d: "M12 18a6 6 0 110-12 6 6 0 010 12zm0 2.5a8.5 8.5 0 110-17 8.5 8.5 0 010 17zm0-1a7.5 7.5 0 100-15 7.5 7.5 0 000 15z"
|
|
233
266
|
}));
|
|
@@ -256,8 +289,8 @@ var Headline = function Headline(_ref) {
|
|
|
256
289
|
enablePremiumStoryIcon = _premiumStoryIconConf3 === void 0 ? false : _premiumStoryIconConf3,
|
|
257
290
|
_premiumStoryIconConf4 = premiumStoryIconConfig.showLiveIcon,
|
|
258
291
|
showLiveIcon = _premiumStoryIconConf4 === void 0 ? false : _premiumStoryIconConf4;
|
|
259
|
-
var alternateHeadline =
|
|
260
|
-
var premiumStory = enablePremiumStoryIcon &&
|
|
292
|
+
var alternateHeadline = lodash.get(story, ["alternative", "home", "default", "headline"]);
|
|
293
|
+
var premiumStory = enablePremiumStoryIcon && lodash.get(story, ["access"]) === "subscription";
|
|
261
294
|
var headline = alternateHeadline || story.headline;
|
|
262
295
|
var HeaderTag = "h" + headerLevel;
|
|
263
296
|
|
|
@@ -280,41 +313,41 @@ var Headline = function Headline(_ref) {
|
|
|
280
313
|
}
|
|
281
314
|
};
|
|
282
315
|
|
|
283
|
-
var textColor = getTextColor(configData.theme);
|
|
316
|
+
var textColor = index.getTextColor(configData.theme);
|
|
284
317
|
var wrapperClass = premiumStory ? "wrapper" : "";
|
|
285
318
|
var iconSize = "24px";
|
|
286
|
-
var enableLiveIcon = showLiveIcon && story["story-template"] === "live-blog" && !
|
|
287
|
-
return /*#__PURE__*/
|
|
319
|
+
var enableLiveIcon = showLiveIcon && story["story-template"] === "live-blog" && !lodash.get(story, ["metadata", "is-closed"], false);
|
|
320
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
288
321
|
"data-test-id": "headline",
|
|
289
|
-
className: "arrow-component arr--headline " +
|
|
290
|
-
}, premiumStory && /*#__PURE__*/
|
|
322
|
+
className: "arrow-component arr--headline " + _getClassName__default["default"](wrapperClass, _styleModuleImportMap$8)
|
|
323
|
+
}, premiumStory && /*#__PURE__*/React__default["default"].createElement(PremiumStoryIcon, {
|
|
291
324
|
width: iconSize,
|
|
292
325
|
height: iconSize,
|
|
293
326
|
color: iconColor,
|
|
294
327
|
iconType: iconStyle,
|
|
295
328
|
positionTop: positionHeadline()
|
|
296
|
-
}), isLink ? /*#__PURE__*/
|
|
297
|
-
href: getStoryUrl(story, "/".concat(story.slug)),
|
|
298
|
-
externalLink: isExternalStory(story),
|
|
329
|
+
}), isLink ? /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
330
|
+
href: index.getStoryUrl(story, "/".concat(story.slug)),
|
|
331
|
+
externalLink: index.isExternalStory(story),
|
|
299
332
|
"aria-label": "headline"
|
|
300
|
-
}, /*#__PURE__*/
|
|
301
|
-
className:
|
|
302
|
-
}, enableLiveIcon && /*#__PURE__*/
|
|
303
|
-
className:
|
|
304
|
-
}, enableLiveIcon && /*#__PURE__*/
|
|
333
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeaderTag, {
|
|
334
|
+
className: _getClassName__default["default"]("headline ".concat(textColor), _styleModuleImportMap$8)
|
|
335
|
+
}, enableLiveIcon && /*#__PURE__*/React__default["default"].createElement(LiveIcon, null), headline)) : /*#__PURE__*/React__default["default"].createElement(HeaderTag, {
|
|
336
|
+
className: _getClassName__default["default"]("headline ".concat(textColor), _styleModuleImportMap$8)
|
|
337
|
+
}, enableLiveIcon && /*#__PURE__*/React__default["default"].createElement(LiveIcon, null), headline));
|
|
305
338
|
};
|
|
306
339
|
Headline.propTypes = {
|
|
307
340
|
/** The Story Object from the API response */
|
|
308
|
-
story:
|
|
341
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
309
342
|
|
|
310
343
|
/** Header tags ranging h1-h6, where h[headerLevel] */
|
|
311
|
-
headerLevel:
|
|
312
|
-
premiumStoryIconConfig:
|
|
313
|
-
iconColor:
|
|
314
|
-
iconType:
|
|
315
|
-
enablePremiumStoryIcon:
|
|
344
|
+
headerLevel: PropTypes__default["default"].string,
|
|
345
|
+
premiumStoryIconConfig: PropTypes__default["default"].shape({
|
|
346
|
+
iconColor: PropTypes__default["default"].string,
|
|
347
|
+
iconType: PropTypes__default["default"].string,
|
|
348
|
+
enablePremiumStoryIcon: PropTypes__default["default"].bool
|
|
316
349
|
}),
|
|
317
|
-
isLink:
|
|
350
|
+
isLink: PropTypes__default["default"].bool
|
|
318
351
|
};
|
|
319
352
|
Headline.defaultProps = {
|
|
320
353
|
headerLevel: "6",
|
|
@@ -336,22 +369,22 @@ var TimeStamp = function TimeStamp(_ref) {
|
|
|
336
369
|
_ref$config = _ref.config,
|
|
337
370
|
config = _ref$config === void 0 ? {} : _ref$config;
|
|
338
371
|
var configState = useStateValue() || {};
|
|
339
|
-
var isTime =
|
|
372
|
+
var isTime = lodash.get(config, ["showTime"], lodash.get(configState, ["showTime"], true));
|
|
340
373
|
var time = story["last-published-at"] || story["first-published-at"];
|
|
341
374
|
var isBottomClasses = isBottom ? "bottom-fix" : "";
|
|
342
|
-
var textColor = getTextColor(configState.theme);
|
|
343
|
-
return /*#__PURE__*/
|
|
375
|
+
var textColor = index.getTextColor(configState.theme);
|
|
376
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isTime && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
344
377
|
"data-test-id": "publish-time",
|
|
345
|
-
className: "time arr--publish-time " +
|
|
346
|
-
}, /*#__PURE__*/
|
|
378
|
+
className: "time arr--publish-time " + _getClassName__default["default"]("time ".concat(textColor, " ").concat(isBottomClasses), _styleModuleImportMap$7)
|
|
379
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
347
380
|
className: "timestamp-m_time-wrapper__3O2lM"
|
|
348
|
-
}, getTimeStamp(time, formatter, config))));
|
|
381
|
+
}, index.getTimeStamp(time, index.formatter, config))));
|
|
349
382
|
};
|
|
350
383
|
TimeStamp.propTypes = {
|
|
351
384
|
/** The Story Object from the API response */
|
|
352
|
-
story:
|
|
353
|
-
isBottom:
|
|
354
|
-
config:
|
|
385
|
+
story: PropTypes__default["default"].object,
|
|
386
|
+
isBottom: PropTypes__default["default"].bool,
|
|
387
|
+
config: PropTypes__default["default"].object
|
|
355
388
|
};
|
|
356
389
|
|
|
357
390
|
var _styleModuleImportMap$6 = {
|
|
@@ -377,27 +410,27 @@ var AuthorBase = function AuthorBase(_ref) {
|
|
|
377
410
|
_ref$config = _ref.config,
|
|
378
411
|
config = _ref$config === void 0 ? {} : _ref$config;
|
|
379
412
|
var configData = useStateValue() || {};
|
|
380
|
-
var isAuthor =
|
|
413
|
+
var isAuthor = lodash.get(configData, ["showAuthor"], true);
|
|
381
414
|
|
|
382
|
-
var _get =
|
|
415
|
+
var _get = lodash.get(story, ["authors", "0"], ""),
|
|
383
416
|
avatarUrl = _get["avatar-url"],
|
|
384
417
|
avatarS3Key = _get["avatar-s3-key"],
|
|
385
418
|
authorName = _get.name,
|
|
386
419
|
slug = _get.slug;
|
|
387
420
|
|
|
388
421
|
var isBottomClasses = isBottom ? "bottom-fix" : "";
|
|
389
|
-
var textColor = getTextColor(configData.theme);
|
|
390
|
-
var mountAt =
|
|
422
|
+
var textColor = index.getTextColor(configData.theme);
|
|
423
|
+
var mountAt = lodash.get(config, ["mountAt"], "");
|
|
391
424
|
|
|
392
425
|
var authorImage = function authorImage(dir) {
|
|
393
426
|
if (!avatarUrl && !avatarS3Key) {
|
|
394
427
|
return null;
|
|
395
428
|
}
|
|
396
429
|
|
|
397
|
-
return /*#__PURE__*/
|
|
430
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
398
431
|
"data-test-id": "author-image",
|
|
399
|
-
className:
|
|
400
|
-
}, /*#__PURE__*/
|
|
432
|
+
className: _getClassName__default["default"]("author-image ".concat(dir, "-image"), _styleModuleImportMap$6)
|
|
433
|
+
}, /*#__PURE__*/React__default["default"].createElement("figure", null, avatarS3Key ? /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
|
|
401
434
|
slug: avatarS3Key,
|
|
402
435
|
"aspect-ratio": [1, 1],
|
|
403
436
|
defaultWidth: 400,
|
|
@@ -405,49 +438,49 @@ var AuthorBase = function AuthorBase(_ref) {
|
|
|
405
438
|
auto: ["format", "compress"]
|
|
406
439
|
},
|
|
407
440
|
alt: authorName
|
|
408
|
-
}) : /*#__PURE__*/
|
|
441
|
+
}) : /*#__PURE__*/React__default["default"].createElement("img", {
|
|
409
442
|
src: avatarUrl
|
|
410
443
|
})));
|
|
411
444
|
};
|
|
412
445
|
|
|
413
446
|
var isPrefix = function isPrefix(dir) {
|
|
414
447
|
if (prefix) {
|
|
415
|
-
return /*#__PURE__*/
|
|
416
|
-
className: "arr-author-prefix " +
|
|
448
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
449
|
+
className: "arr-author-prefix " + _getClassName__default["default"]("prefix ".concat(textColor), _styleModuleImportMap$6)
|
|
417
450
|
}, prefix);
|
|
418
451
|
}
|
|
419
452
|
|
|
420
453
|
return !hideAuthorImage && authorImage(dir);
|
|
421
454
|
};
|
|
422
455
|
|
|
423
|
-
return /*#__PURE__*/
|
|
456
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isAuthor && /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
424
457
|
href: "".concat(mountAt, "/author/") + slug,
|
|
425
458
|
"aria-label": "author-name",
|
|
426
|
-
className: "author-name arr-author-name arrow-component " +
|
|
427
|
-
}, isPrefix("ltr"), /*#__PURE__*/
|
|
459
|
+
className: "author-name arr-author-name arrow-component " + _getClassName__default["default"]("author ".concat(isBottomClasses), _styleModuleImportMap$6)
|
|
460
|
+
}, isPrefix("ltr"), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
428
461
|
"data-test-id": "author-name",
|
|
429
|
-
className: "author-name " +
|
|
462
|
+
className: "author-name " + _getClassName__default["default"]("author-name ".concat(textColor), _styleModuleImportMap$6)
|
|
430
463
|
}, authorName || story["author-name"]), !prefix && isPrefix("rtl")));
|
|
431
464
|
};
|
|
432
465
|
|
|
433
466
|
function mapStateToProps$1(state) {
|
|
434
467
|
return {
|
|
435
|
-
config:
|
|
468
|
+
config: lodash.get(state, ["qt", "config"], {})
|
|
436
469
|
};
|
|
437
470
|
}
|
|
438
471
|
|
|
439
|
-
var Author = connect(mapStateToProps$1)(AuthorBase);
|
|
472
|
+
var Author = reactRedux.connect(mapStateToProps$1)(AuthorBase);
|
|
440
473
|
AuthorBase.propTypes = {
|
|
441
474
|
/** The Story Object from the API response */
|
|
442
|
-
story:
|
|
475
|
+
story: PropTypes__default["default"].object.isRequired,
|
|
443
476
|
|
|
444
477
|
/** Hide Author Avatar Image */
|
|
445
|
-
hideAuthorImage:
|
|
478
|
+
hideAuthorImage: PropTypes__default["default"].bool,
|
|
446
479
|
// fix Author bottom of the storyCard
|
|
447
|
-
isBottom:
|
|
480
|
+
isBottom: PropTypes__default["default"].bool,
|
|
448
481
|
// fix prefix before the author name
|
|
449
|
-
prefix:
|
|
450
|
-
config:
|
|
482
|
+
prefix: PropTypes__default["default"].string,
|
|
483
|
+
config: PropTypes__default["default"].object
|
|
451
484
|
};
|
|
452
485
|
AuthorBase.defaultProps = {
|
|
453
486
|
hideAuthorImage: false,
|
|
@@ -468,14 +501,14 @@ var Dot = function Dot(_ref) {
|
|
|
468
501
|
height = _ref$height === void 0 ? "3px" : _ref$height,
|
|
469
502
|
_ref$color = _ref.color,
|
|
470
503
|
color = _ref$color === void 0 ? "light" : _ref$color;
|
|
471
|
-
return /*#__PURE__*/
|
|
472
|
-
className:
|
|
473
|
-
}, /*#__PURE__*/
|
|
504
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
505
|
+
className: _getClassName__default["default"](color, _styleModuleImportMap$5)
|
|
506
|
+
}, /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
474
507
|
xmlns: "http://www.w3.org/2000/svg",
|
|
475
508
|
width: width,
|
|
476
509
|
height: height,
|
|
477
510
|
viewBox: "0 0 3 3"
|
|
478
|
-
}, /*#__PURE__*/
|
|
511
|
+
}, /*#__PURE__*/React__default["default"].createElement("circle", {
|
|
479
512
|
cx: "87",
|
|
480
513
|
cy: "9",
|
|
481
514
|
r: "1",
|
|
@@ -486,9 +519,9 @@ var Dot = function Dot(_ref) {
|
|
|
486
519
|
};
|
|
487
520
|
Dot.propTypes = {
|
|
488
521
|
/** height , width and color of the dot icon */
|
|
489
|
-
color:
|
|
490
|
-
width:
|
|
491
|
-
height:
|
|
522
|
+
color: PropTypes__default["default"].string,
|
|
523
|
+
width: PropTypes__default["default"].string,
|
|
524
|
+
height: PropTypes__default["default"].string
|
|
492
525
|
};
|
|
493
526
|
|
|
494
527
|
var _styleModuleImportMap$4 = {
|
|
@@ -504,22 +537,22 @@ var Divider = function Divider(_ref) {
|
|
|
504
537
|
height = _ref$height === void 0 ? "10" : _ref$height,
|
|
505
538
|
_ref$color = _ref.color,
|
|
506
539
|
color = _ref$color === void 0 ? "light" : _ref$color;
|
|
507
|
-
return /*#__PURE__*/
|
|
508
|
-
className:
|
|
509
|
-
}, /*#__PURE__*/
|
|
540
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
541
|
+
className: _getClassName__default["default"](color, _styleModuleImportMap$4)
|
|
542
|
+
}, /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
510
543
|
xmlns: "http://www.w3.org/2000/svg",
|
|
511
544
|
width: width,
|
|
512
545
|
height: height
|
|
513
|
-
}, /*#__PURE__*/
|
|
546
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
514
547
|
fill: "inherit",
|
|
515
548
|
d: "M0 0h1v10H0z"
|
|
516
549
|
})));
|
|
517
550
|
};
|
|
518
551
|
Divider.propTypes = {
|
|
519
552
|
/** height , width and color of the dot icon */
|
|
520
|
-
color:
|
|
521
|
-
width:
|
|
522
|
-
height:
|
|
553
|
+
color: PropTypes__default["default"].string,
|
|
554
|
+
width: PropTypes__default["default"].string,
|
|
555
|
+
height: PropTypes__default["default"].string
|
|
523
556
|
};
|
|
524
557
|
|
|
525
558
|
var _styleModuleImportMap$3 = {
|
|
@@ -537,28 +570,28 @@ var ReadTime = function ReadTime(_ref) {
|
|
|
537
570
|
_ref$isLightTheme = _ref.isLightTheme,
|
|
538
571
|
isLightTheme = _ref$isLightTheme === void 0 ? false : _ref$isLightTheme;
|
|
539
572
|
var config = useStateValue() || {};
|
|
540
|
-
var showReadTime =
|
|
541
|
-
var readTime =
|
|
542
|
-
var textColor = isLightTheme ? "light" : getTextColor(config.theme);
|
|
573
|
+
var showReadTime = lodash.get(config, ["showReadTime"]) || lodash.get(opts, ["showReadTime"], true);
|
|
574
|
+
var readTime = lodash.get(story, ["read-time"], 0);
|
|
575
|
+
var textColor = isLightTheme ? "light" : index.getTextColor(config.theme);
|
|
543
576
|
if (!showReadTime || !readTime) return null;
|
|
544
|
-
var timeToRead =
|
|
545
|
-
return /*#__PURE__*/
|
|
577
|
+
var timeToRead = lodash.get(opts, ["localizedTimeToRead"]) || "min read";
|
|
578
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
546
579
|
"data-test-id": "read-time",
|
|
547
|
-
className: "arrow-component arr--read-time " +
|
|
548
|
-
}, /*#__PURE__*/
|
|
580
|
+
className: "arrow-component arr--read-time " + _getClassName__default["default"]("read-time-wrapper ".concat(textColor), _styleModuleImportMap$3)
|
|
581
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
549
582
|
className: "read-time-indicator read-time-m_dot-indicator__3Sqh2"
|
|
550
|
-
}, /*#__PURE__*/
|
|
583
|
+
}, /*#__PURE__*/React__default["default"].createElement(Dot, {
|
|
551
584
|
color: textColor
|
|
552
|
-
})), /*#__PURE__*/
|
|
585
|
+
})), /*#__PURE__*/React__default["default"].createElement("span", null, readTime, " ", timeToRead)));
|
|
553
586
|
};
|
|
554
587
|
ReadTime.propTypes = {
|
|
555
|
-
story:
|
|
556
|
-
"read-time":
|
|
588
|
+
story: PropTypes__default["default"].shape({
|
|
589
|
+
"read-time": PropTypes__default["default"].number
|
|
557
590
|
}),
|
|
558
|
-
opts:
|
|
559
|
-
showReadTime:
|
|
591
|
+
opts: PropTypes__default["default"].shape({
|
|
592
|
+
showReadTime: PropTypes__default["default"].bool
|
|
560
593
|
}),
|
|
561
|
-
isLightTheme:
|
|
594
|
+
isLightTheme: PropTypes__default["default"].bool
|
|
562
595
|
};
|
|
563
596
|
|
|
564
597
|
var _styleModuleImportMap$2 = {
|
|
@@ -580,42 +613,42 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
|
|
|
580
613
|
config = _ref$config === void 0 ? {} : _ref$config,
|
|
581
614
|
isLightTheme = _ref.isLightTheme;
|
|
582
615
|
var configState = useStateValue() || {};
|
|
583
|
-
var isAuthor =
|
|
584
|
-
var isTime =
|
|
585
|
-
var isReadTime =
|
|
616
|
+
var isAuthor = lodash.get(config, ["showAuthor"], lodash.get(configState, ["showAuthor"], true));
|
|
617
|
+
var isTime = lodash.get(config, ["showTime"], lodash.get(configState, ["showTime"], true));
|
|
618
|
+
var isReadTime = lodash.get(configState, ["showReadTime"], true);
|
|
586
619
|
var isBottomClasses = isBottom ? "bottom-fix" : "";
|
|
587
620
|
var seperatorStyle = separator === "dot" ? "dot" : "dash";
|
|
588
|
-
var textColor = isLightTheme ? "light" : getTextColor(configState.theme);
|
|
621
|
+
var textColor = isLightTheme ? "light" : index.getTextColor(configState.theme);
|
|
589
622
|
|
|
590
623
|
var getSeparator = function getSeparator() {
|
|
591
624
|
if (separator === "divider") {
|
|
592
|
-
return /*#__PURE__*/
|
|
625
|
+
return /*#__PURE__*/React__default["default"].createElement(Divider, {
|
|
593
626
|
color: textColor
|
|
594
627
|
});
|
|
595
628
|
}
|
|
596
629
|
|
|
597
|
-
return /*#__PURE__*/
|
|
630
|
+
return /*#__PURE__*/React__default["default"].createElement(Dot, {
|
|
598
631
|
color: textColor
|
|
599
632
|
});
|
|
600
633
|
};
|
|
601
634
|
|
|
602
635
|
var getTimeStamp = function getTimeStamp() {
|
|
603
636
|
if (!isTime) return null;
|
|
604
|
-
return /*#__PURE__*/
|
|
605
|
-
className: "arr-separator " +
|
|
606
|
-
}, getSeparator()), /*#__PURE__*/
|
|
637
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isAuthor && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
638
|
+
className: "arr-separator " + _getClassName__default["default"]("".concat(seperatorStyle), _styleModuleImportMap$2)
|
|
639
|
+
}, getSeparator()), /*#__PURE__*/React__default["default"].createElement(TimeStamp, {
|
|
607
640
|
story: story,
|
|
608
641
|
config: config
|
|
609
|
-
}), isReadTime && /*#__PURE__*/
|
|
642
|
+
}), isReadTime && /*#__PURE__*/React__default["default"].createElement(ReadTime, {
|
|
610
643
|
story: story,
|
|
611
644
|
opts: config,
|
|
612
645
|
isLightTheme: isLightTheme
|
|
613
646
|
}));
|
|
614
647
|
};
|
|
615
648
|
|
|
616
|
-
return /*#__PURE__*/
|
|
617
|
-
className: "arr--author-time " +
|
|
618
|
-
}, isAuthor ? /*#__PURE__*/
|
|
649
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
650
|
+
className: "arr--author-time " + _getClassName__default["default"]("author-time-wrapper ".concat(isBottomClasses), _styleModuleImportMap$2)
|
|
651
|
+
}, isAuthor ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(Author, {
|
|
619
652
|
story: story,
|
|
620
653
|
isBottom: true,
|
|
621
654
|
hideAuthorImage: hideAuthorImage,
|
|
@@ -623,19 +656,19 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
|
|
|
623
656
|
}), getTimeStamp()) : getTimeStamp());
|
|
624
657
|
};
|
|
625
658
|
AuthorWithTime.propTypes = {
|
|
626
|
-
story:
|
|
659
|
+
story: PropTypes__default["default"].object,
|
|
627
660
|
|
|
628
661
|
/** Style of separator between the Author & Timestamp */
|
|
629
|
-
separator:
|
|
662
|
+
separator: PropTypes__default["default"].oneOf(["dot", "divider"]),
|
|
630
663
|
|
|
631
664
|
/** hide the author image */
|
|
632
|
-
hideAuthorImage:
|
|
665
|
+
hideAuthorImage: PropTypes__default["default"].bool,
|
|
633
666
|
// fix author and time at the end
|
|
634
|
-
isBottom:
|
|
667
|
+
isBottom: PropTypes__default["default"].bool,
|
|
635
668
|
// fix prefix before the author name
|
|
636
|
-
prefix:
|
|
637
|
-
config:
|
|
638
|
-
isLightTheme:
|
|
669
|
+
prefix: PropTypes__default["default"].string,
|
|
670
|
+
config: PropTypes__default["default"].object,
|
|
671
|
+
isLightTheme: PropTypes__default["default"].bool
|
|
639
672
|
};
|
|
640
673
|
AuthorWithTime.defaultProps = {
|
|
641
674
|
separator: "dot",
|
|
@@ -670,18 +703,18 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
|
|
|
670
703
|
_ref$navigate = _ref.navigate,
|
|
671
704
|
navigate = _ref$navigate === void 0 ? true : _ref$navigate;
|
|
672
705
|
var collectionTitle = useStateValue() || {};
|
|
673
|
-
var showRowTitle =
|
|
706
|
+
var showRowTitle = lodash.get(collectionTitle, ["showRowTitle"], true);
|
|
674
707
|
var supportedTemplates = ["borderLeft", "borderBottom", "crossLine", "borderBottomFull"];
|
|
675
708
|
var templateStyle = supportedTemplates.includes(collectionNameTemplate) ? " collection-".concat(collectionNameTemplate) : "";
|
|
676
|
-
var slug = navigate && collection && getSlug(collection, config) || "";
|
|
709
|
+
var slug = navigate && collection && index.getSlug(collection, config) || "";
|
|
677
710
|
var collectionName = customCollectionName || collection.name || "";
|
|
678
|
-
var textColor = getTextColor(collectionTitle.theme);
|
|
711
|
+
var textColor = index.getTextColor(collectionTitle.theme);
|
|
679
712
|
var HeaderTag = "h" + headerLevel;
|
|
680
|
-
var CollectionNameBorderColor = rgbToHex(collectionNameBorderColor);
|
|
713
|
+
var CollectionNameBorderColor = index.rgbToHex(collectionNameBorderColor);
|
|
681
714
|
var borderBottomFullStyle = templateStyle.includes("collection-borderBottomFull") ? "4px solid ".concat(CollectionNameBorderColor) : "";
|
|
682
715
|
|
|
683
716
|
var borderBottomStyle = function borderBottomStyle() {
|
|
684
|
-
return templateStyle.includes("collection-borderBottom") && !templateStyle.includes("collection-borderBottomFull") ? /*#__PURE__*/
|
|
717
|
+
return templateStyle.includes("collection-borderBottom") && !templateStyle.includes("collection-borderBottomFull") ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
685
718
|
className: "collection-name-m_border-bottom__1MnlV",
|
|
686
719
|
style: {
|
|
687
720
|
borderBottom: "4px solid ".concat(CollectionNameBorderColor)
|
|
@@ -689,7 +722,7 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
|
|
|
689
722
|
}) : "";
|
|
690
723
|
};
|
|
691
724
|
|
|
692
|
-
var isMobile = clientWidth("mobile");
|
|
725
|
+
var isMobile = index.clientWidth("mobile");
|
|
693
726
|
|
|
694
727
|
var getBorderHeight = function getBorderHeight() {
|
|
695
728
|
if (isMobile) {
|
|
@@ -741,40 +774,40 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
|
|
|
741
774
|
}
|
|
742
775
|
};
|
|
743
776
|
|
|
744
|
-
return /*#__PURE__*/
|
|
777
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, showRowTitle && collectionName && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
745
778
|
style: {
|
|
746
779
|
borderBottom: borderBottomFullStyle
|
|
747
780
|
},
|
|
748
781
|
"data-test-id": "collection-name",
|
|
749
|
-
className: ("arr--collection-name arrow-component ".concat(templateStyle) ? "arr--collection-name arrow-component ".concat(templateStyle) + " " : "") +
|
|
750
|
-
}, templateStyle.includes("collection-borderLeft") && /*#__PURE__*/
|
|
782
|
+
className: ("arr--collection-name arrow-component ".concat(templateStyle) ? "arr--collection-name arrow-component ".concat(templateStyle) + " " : "") + _getClassName__default["default"]("collection ".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$1)
|
|
783
|
+
}, templateStyle.includes("collection-borderLeft") && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
751
784
|
className: "arr-collection-name-border-left collection-name-m_border-left__3_pYw",
|
|
752
785
|
style: {
|
|
753
786
|
color: CollectionNameBorderColor,
|
|
754
787
|
fontSize: getBorderHeight()
|
|
755
788
|
}
|
|
756
|
-
}), slug && !slug.includes(undefined) ? /*#__PURE__*/
|
|
789
|
+
}), slug && !slug.includes(undefined) ? /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
757
790
|
href: slug,
|
|
758
791
|
"aria-label": "collection-name"
|
|
759
|
-
}, /*#__PURE__*/
|
|
792
|
+
}, /*#__PURE__*/React__default["default"].createElement(HeaderTag, null, collectionName)) : /*#__PURE__*/React__default["default"].createElement(HeaderTag, null, collectionName), borderBottomStyle()));
|
|
760
793
|
};
|
|
761
794
|
CollectionNameBase.propTypes = {
|
|
762
795
|
/** Collection name border color */
|
|
763
|
-
collectionNameBorderColor: PropTypes
|
|
796
|
+
collectionNameBorderColor: PropTypes.PropTypes.string,
|
|
764
797
|
|
|
765
798
|
/** The Collection Object from the API response */
|
|
766
|
-
collection: PropTypes
|
|
799
|
+
collection: PropTypes.PropTypes.object,
|
|
767
800
|
|
|
768
801
|
/** The publisher config from the API response */
|
|
769
|
-
config: PropTypes
|
|
802
|
+
config: PropTypes.PropTypes.object,
|
|
770
803
|
|
|
771
804
|
/** The style template for the component */
|
|
772
|
-
collectionNameTemplate: PropTypes
|
|
805
|
+
collectionNameTemplate: PropTypes.PropTypes.oneOf(["", "borderLeft", "borderBottom", "crossLine", "borderBottomFull"]),
|
|
773
806
|
|
|
774
807
|
/** Header tags ranging h1-h6, where h[headerLevel] */
|
|
775
|
-
headerLevel: PropTypes
|
|
776
|
-
customCollectionName: PropTypes
|
|
777
|
-
navigate: PropTypes
|
|
808
|
+
headerLevel: PropTypes.PropTypes.string,
|
|
809
|
+
customCollectionName: PropTypes.PropTypes.string,
|
|
810
|
+
navigate: PropTypes.PropTypes.bool
|
|
778
811
|
};
|
|
779
812
|
CollectionNameBase.defaultProps = {
|
|
780
813
|
collectionNameTemplate: "",
|
|
@@ -783,26 +816,11 @@ CollectionNameBase.defaultProps = {
|
|
|
783
816
|
|
|
784
817
|
function mapStateToProps(state) {
|
|
785
818
|
return {
|
|
786
|
-
config:
|
|
819
|
+
config: lodash.get(state, ["qt", "config"], {})
|
|
787
820
|
};
|
|
788
821
|
}
|
|
789
822
|
|
|
790
|
-
var CollectionName = connect(mapStateToProps)(CollectionNameBase);
|
|
791
|
-
|
|
792
|
-
function _defineProperty(obj, key, value) {
|
|
793
|
-
if (key in obj) {
|
|
794
|
-
Object.defineProperty(obj, key, {
|
|
795
|
-
value: value,
|
|
796
|
-
enumerable: true,
|
|
797
|
-
configurable: true,
|
|
798
|
-
writable: true
|
|
799
|
-
});
|
|
800
|
-
} else {
|
|
801
|
-
obj[key] = value;
|
|
802
|
-
}
|
|
803
|
-
|
|
804
|
-
return obj;
|
|
805
|
-
}
|
|
823
|
+
var CollectionName = reactRedux.connect(mapStateToProps)(CollectionNameBase);
|
|
806
824
|
|
|
807
825
|
var _styleModuleImportMap = {
|
|
808
826
|
"./load-more.m.css": {
|
|
@@ -815,7 +833,7 @@ var _styleModuleImportMap = {
|
|
|
815
833
|
|
|
816
834
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
817
835
|
|
|
818
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
|
|
836
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
819
837
|
var LoadmoreButton = function LoadmoreButton(_ref) {
|
|
820
838
|
var _ref$config = _ref.config,
|
|
821
839
|
config = _ref$config === void 0 ? {} : _ref$config,
|
|
@@ -834,28 +852,28 @@ var LoadmoreButton = function LoadmoreButton(_ref) {
|
|
|
834
852
|
_config$customUrlPath = config.customUrlPath,
|
|
835
853
|
customUrlPath = _config$customUrlPath === void 0 ? "" : _config$customUrlPath;
|
|
836
854
|
if (!showButton) return null;
|
|
837
|
-
var textColor = getTextColor(theme);
|
|
838
|
-
var slug = customUrlPath ? "/".concat(customUrlPath) : generateNavigateSlug(collection, _objectSpread(_objectSpread({}, qtConfig), config));
|
|
839
|
-
return template === "SubsequentLoadCount" ? /*#__PURE__*/
|
|
855
|
+
var textColor = index.getTextColor(theme);
|
|
856
|
+
var slug = customUrlPath ? "/".concat(customUrlPath) : index.generateNavigateSlug(collection, _objectSpread(_objectSpread({}, qtConfig), config));
|
|
857
|
+
return template === "SubsequentLoadCount" ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
840
858
|
onClick: onClick,
|
|
841
859
|
"data-test-id": "load-more",
|
|
842
|
-
className: "arr--button " +
|
|
843
|
-
}, buttonText) : /*#__PURE__*/
|
|
860
|
+
className: "arr--button " + _getClassName__default["default"]("button ".concat(textColor, " default"), _styleModuleImportMap)
|
|
861
|
+
}, buttonText) : /*#__PURE__*/React__default["default"].createElement(components.LinkBase, {
|
|
844
862
|
href: slug,
|
|
845
863
|
navigateTo: navigate,
|
|
846
864
|
"data-test-id": "load-more",
|
|
847
865
|
"aria-label": "load-more"
|
|
848
|
-
}, /*#__PURE__*/
|
|
849
|
-
className: "arr--button " +
|
|
866
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
867
|
+
className: "arr--button " + _getClassName__default["default"]("button ".concat(textColor, " default"), _styleModuleImportMap)
|
|
850
868
|
}, buttonText));
|
|
851
869
|
};
|
|
852
870
|
LoadmoreButton.propTypes = {
|
|
853
|
-
collection:
|
|
854
|
-
template:
|
|
855
|
-
config:
|
|
856
|
-
onClick:
|
|
857
|
-
navigate:
|
|
858
|
-
qtConfig:
|
|
871
|
+
collection: PropTypes__default["default"].object,
|
|
872
|
+
template: PropTypes__default["default"].string,
|
|
873
|
+
config: PropTypes__default["default"].object,
|
|
874
|
+
onClick: PropTypes__default["default"].func,
|
|
875
|
+
navigate: PropTypes__default["default"].func,
|
|
876
|
+
qtConfig: PropTypes__default["default"].object
|
|
859
877
|
};
|
|
860
878
|
|
|
861
879
|
var isClient = typeof window !== "undefined";
|
|
@@ -867,7 +885,7 @@ var hasIntersectionObserverSupport = function hasIntersectionObserverSupport() {
|
|
|
867
885
|
|
|
868
886
|
|
|
869
887
|
var getIntersectionObserver = function getIntersectionObserver() {
|
|
870
|
-
return Promise.resolve(isClient && !hasIntersectionObserverSupport() &&
|
|
888
|
+
return Promise.resolve(isClient && !hasIntersectionObserverSupport() && Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('intersection-observer')); }));
|
|
871
889
|
}; // options for intersection observer in order to improve the effect
|
|
872
890
|
|
|
873
891
|
|
|
@@ -900,12 +918,12 @@ var getObserver = function getObserver() {
|
|
|
900
918
|
var useNearScreen = (function (_ref) {
|
|
901
919
|
var ref = _ref.ref;
|
|
902
920
|
|
|
903
|
-
var _useState = useState(false),
|
|
904
|
-
_useState2 =
|
|
921
|
+
var _useState = React.useState(false),
|
|
922
|
+
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
905
923
|
show = _useState2[0],
|
|
906
924
|
setShow = _useState2[1];
|
|
907
925
|
|
|
908
|
-
useEffect(function () {
|
|
926
|
+
React.useEffect(function () {
|
|
909
927
|
var current = ref.current;
|
|
910
928
|
if (!current) return; // get observer async and only when needed
|
|
911
929
|
|
|
@@ -932,36 +950,36 @@ var EMPTY_HTML = {
|
|
|
932
950
|
var isServer = typeof window === "undefined";
|
|
933
951
|
var ProgressiveHydration = function ProgressiveHydration(props) {
|
|
934
952
|
var children = props.children;
|
|
935
|
-
var ref = useRef(null);
|
|
953
|
+
var ref = React.useRef(null);
|
|
936
954
|
var isNearScreen = useNearScreen({
|
|
937
955
|
ref: ref
|
|
938
956
|
});
|
|
939
|
-
useEffect(function () {
|
|
957
|
+
React.useEffect(function () {
|
|
940
958
|
var el = ref.current; // CLIENT:
|
|
941
959
|
// If we want to force the hydration OR the element is near screen
|
|
942
960
|
// then we hydrate the content to get the functionality ready
|
|
943
961
|
|
|
944
962
|
if (isNearScreen) {
|
|
945
963
|
var action = el.hasChildNodes() ? "hydrate" : "render";
|
|
946
|
-
|
|
964
|
+
ReactDOM__default["default"][action](children, el);
|
|
947
965
|
}
|
|
948
966
|
}, [children, isNearScreen]); // SERVER: Just render the content as usual
|
|
949
967
|
|
|
950
968
|
if (isServer) {
|
|
951
|
-
return /*#__PURE__*/
|
|
969
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
952
970
|
ref: ref
|
|
953
971
|
}, children);
|
|
954
972
|
} // CLIENT: Avoid hydration until we say so
|
|
955
973
|
|
|
956
974
|
|
|
957
|
-
return /*#__PURE__*/
|
|
975
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
958
976
|
ref: ref,
|
|
959
977
|
suppressHydrationWarning: true,
|
|
960
978
|
dangerouslySetInnerHTML: EMPTY_HTML
|
|
961
979
|
});
|
|
962
980
|
};
|
|
963
981
|
ProgressiveHydration.propTypes = {
|
|
964
|
-
children:
|
|
982
|
+
children: PropTypes__default["default"].element
|
|
965
983
|
};
|
|
966
984
|
|
|
967
985
|
var LoadMoreTarget = function LoadMoreTarget(_ref) {
|
|
@@ -969,7 +987,7 @@ var LoadMoreTarget = function LoadMoreTarget(_ref) {
|
|
|
969
987
|
componentName = _ref.componentName,
|
|
970
988
|
offset = _ref.offset,
|
|
971
989
|
limit = _ref.limit;
|
|
972
|
-
return /*#__PURE__*/
|
|
990
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
973
991
|
id: "ELM-".concat(collection.id),
|
|
974
992
|
"data-collection-slug": collection["slug"],
|
|
975
993
|
"data-component-name": componentName,
|
|
@@ -978,13 +996,21 @@ var LoadMoreTarget = function LoadMoreTarget(_ref) {
|
|
|
978
996
|
});
|
|
979
997
|
};
|
|
980
998
|
LoadMoreTarget.propTypes = {
|
|
981
|
-
collection:
|
|
982
|
-
id:
|
|
983
|
-
slug:
|
|
999
|
+
collection: PropTypes__default["default"].shape({
|
|
1000
|
+
id: PropTypes__default["default"].string,
|
|
1001
|
+
slug: PropTypes__default["default"].string
|
|
984
1002
|
}),
|
|
985
|
-
componentName:
|
|
986
|
-
offset:
|
|
987
|
-
limit:
|
|
988
|
-
};
|
|
989
|
-
|
|
990
|
-
|
|
1003
|
+
componentName: PropTypes__default["default"].string,
|
|
1004
|
+
offset: PropTypes__default["default"].number,
|
|
1005
|
+
limit: PropTypes__default["default"].number
|
|
1006
|
+
};
|
|
1007
|
+
|
|
1008
|
+
exports.Author = Author;
|
|
1009
|
+
exports.AuthorWithTime = AuthorWithTime;
|
|
1010
|
+
exports.CollectionName = CollectionName;
|
|
1011
|
+
exports.Headline = Headline;
|
|
1012
|
+
exports.LoadMoreTarget = LoadMoreTarget;
|
|
1013
|
+
exports.LoadmoreButton = LoadmoreButton;
|
|
1014
|
+
exports.ProgressiveHydration = ProgressiveHydration;
|
|
1015
|
+
exports.StateProvider = StateProvider;
|
|
1016
|
+
exports.useStateValue = useStateValue;
|