@quintype/arrow 3.15.1-perf.0 → 3.15.1-perf.1
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/ExtendedLoadMore/{index-b841407e.js → index-2d713010.js} +10 -11
- package/atoms/ExtendedLoadMore/{index-c47ff5bc.js → index-4191a84c.js} +10 -11
- package/atoms/ExtendedLoadMore/{index-4577d5b9.js → index-5a7900ba.js} +9 -10
- package/atoms/ExtendedLoadMore/{index-70ce7471.js → index-6cb56d1a.js} +2 -2
- package/atoms/ExtendedLoadMore/{index-4c3c2b6f.js → index-6daa674c.js} +7 -8
- package/atoms/ExtendedLoadMore/{index-4b9207c4.js → index-6f8c780e.js} +3 -3
- package/atoms/ExtendedLoadMore/{index-867b9437.js → index-7eb05b3d.js} +14 -16
- package/atoms/ExtendedLoadMore/{index-b3ef1488.js → index-8345922c.js} +10 -11
- package/atoms/ExtendedLoadMore/{index-48664b07.js → index-99af722e.js} +9 -10
- package/atoms/ExtendedLoadMore/{index-0edaa434.js → index-aa8b8ab8.js} +2 -2
- package/atoms/ExtendedLoadMore/{index-8f6483ba.js → index-c8f346d0.js} +9 -10
- package/atoms/ExtendedLoadMore/{index-d08b6c2f.js → index-e39b3ca8.js} +9 -9
- package/atoms/ExtendedLoadMore/{index-96c36b0e.js → index-f6e578e3.js} +3 -3
- package/atoms/ExtendedLoadMore/index.js +1 -1
- package/atoms/ExtendedLoadMore/styles.arrow.css +1 -1
- package/molecules/KeyEvents/index.js +4 -6
- package/package.json +1 -1
- package/rows/AlternateCollectionFilter/index.js +6 -8
- package/rows/AsideCollection/index.js +9 -15
- package/rows/AstrologyCollection/index.js +6 -8
- package/rows/AuthorIntroductionCard/index.js +1 -3
- package/rows/AuthorsList/index.js +4 -7
- package/rows/CollectionFilter/index.js +6 -8
- package/rows/ElevenStories/index.js +5 -7
- package/rows/FourColFiveStories/index.js +6 -7
- package/rows/FourColGrid/index.js +6 -7
- package/rows/FourColPortraitStories/index.js +10 -12
- package/rows/FourColSixteenStories/index.js +5 -6
- package/rows/FourColTwelveStories/index.js +5 -6
- package/rows/FourStorySlider/index.js +6 -7
- package/rows/FourStorySliderPortrait/index.js +6 -7
- package/rows/FourTabbedBigStorySlider/index.js +5 -5
- package/rows/FullScreenSlider/index.js +5 -7
- package/rows/HalfScreenSlider/index.js +5 -7
- package/rows/ListComponent/index.js +5 -6
- package/rows/Listicles/index.js +6 -8
- package/rows/MagazineEditions/index.js +5 -7
- package/rows/MagazineHeaderCard/index.js +5 -7
- package/rows/MagazineWidget/index.js +5 -7
- package/rows/OneColStoryList/index.js +6 -7
- package/rows/OpinionCollection/index.js +6 -7
- package/rows/SixColSixStories/index.js +6 -7
- package/rows/StoryCollection/index.js +9 -15
- package/rows/TagIntroductionCard/index.js +1 -3
- package/rows/ThreeColFlexStories/index.js +6 -7
- package/rows/ThreeColFourteenStories/index.js +5 -6
- package/rows/ThreeColGrid/index.js +6 -7
- package/rows/ThreeColSevenStory/index.js +5 -7
- package/rows/ThreeColSixStories/index.js +5 -6
- package/rows/ThreeColTwelveStories/index.js +5 -6
- package/rows/TwoColFourStories/index.js +5 -5
- package/rows/TwoColFourStoryHighlight/index.js +5 -5
- package/rows/TwoColSevenStories/index.js +6 -6
- package/rows/TwoColSixStories/index.js +5 -7
- package/rows/TwoColTenStoriesSidebar/index.js +5 -5
- package/rows/TwoColThreeStories/index.js +5 -5
- package/{rows → story-templates}/ListicleStoryTemplate/index.js +13 -21
- package/{rows → story-templates}/ListicleStoryTemplate/styles.arrow.css +0 -0
- package/{rows → story-templates}/LiveBlogStoryTemplate/index.js +19 -27
- package/{rows → story-templates}/LiveBlogStoryTemplate/styles.arrow.css +0 -0
- package/{rows → story-templates}/PhotoStoryTemplate/index.js +15 -23
- package/{rows → story-templates}/PhotoStoryTemplate/styles.arrow.css +0 -0
- package/{rows → story-templates}/TextStoryTemplate/index.js +14 -22
- package/{rows → story-templates}/TextStoryTemplate/styles.arrow.css +0 -0
- package/{rows → story-templates}/VideoStoryTemplate/index.js +14 -22
- /package/{rows → story-templates}/VideoStoryTemplate/styles.arrow.css +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import PropTypes, { PropTypes as PropTypes$1 } from 'prop-types';
|
|
2
|
-
import React, {
|
|
2
|
+
import React, { useContext, createContext, useState, useEffect } from 'react';
|
|
3
3
|
import Timeago from 'react-timeago';
|
|
4
4
|
import { utcToZonedTime, format } from 'date-fns-tz';
|
|
5
5
|
import { Link, ResponsiveImage, ResponsiveHeroImage, LinkBase } from '@quintype/components';
|
|
@@ -4385,8 +4385,7 @@ KeyEventCards.propTypes = {
|
|
|
4385
4385
|
loadCards: PropTypes.bool,
|
|
4386
4386
|
showLoadMore: PropTypes.bool
|
|
4387
4387
|
};
|
|
4388
|
-
|
|
4389
|
-
var KeyEvents = function KeyEvents(_ref) {
|
|
4388
|
+
var KeyEventsBase = function KeyEventsBase(_ref) {
|
|
4390
4389
|
var _ref$story = _ref.story,
|
|
4391
4390
|
story = _ref$story === void 0 ? {} : _ref$story,
|
|
4392
4391
|
_ref$config = _ref.config,
|
|
@@ -4447,13 +4446,12 @@ var KeyEvents = function KeyEvents(_ref) {
|
|
|
4447
4446
|
qtConfig: qtConfig
|
|
4448
4447
|
}));
|
|
4449
4448
|
};
|
|
4450
|
-
|
|
4451
|
-
KeyEvents.propTypes = {
|
|
4449
|
+
KeyEventsBase.propTypes = {
|
|
4452
4450
|
story: PropTypes.object,
|
|
4453
4451
|
config: PropTypes.object,
|
|
4454
4452
|
showLoadMore: PropTypes.bool
|
|
4455
4453
|
};
|
|
4456
|
-
var KeyEvents
|
|
4454
|
+
var KeyEvents = StateProvider(KeyEventsBase);
|
|
4457
4455
|
|
|
4458
4456
|
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; }
|
|
4459
4457
|
|
|
@@ -4473,7 +4471,6 @@ var _styleModuleImportMap = {
|
|
|
4473
4471
|
"sticky": "aside-collection-m_sticky__AZXBP"
|
|
4474
4472
|
}
|
|
4475
4473
|
};
|
|
4476
|
-
|
|
4477
4474
|
var StoryCollection = function StoryCollection(_ref) {
|
|
4478
4475
|
var data = _ref.data,
|
|
4479
4476
|
slotData = _ref.slotData,
|
|
@@ -4579,7 +4576,6 @@ var StoryCollection = function StoryCollection(_ref) {
|
|
|
4579
4576
|
className: "aside-collection-m_info__3p4zt"
|
|
4580
4577
|
}, "No stories found.")));
|
|
4581
4578
|
};
|
|
4582
|
-
|
|
4583
4579
|
StoryCollection.propTypes = {
|
|
4584
4580
|
data: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),
|
|
4585
4581
|
config: PropTypes.object,
|
|
@@ -4587,8 +4583,7 @@ StoryCollection.propTypes = {
|
|
|
4587
4583
|
slotData: PropTypes.object,
|
|
4588
4584
|
opts: PropTypes.object
|
|
4589
4585
|
};
|
|
4590
|
-
|
|
4591
|
-
var AsideCollection = function AsideCollection(_ref4) {
|
|
4586
|
+
var AsideCollectionBase = function AsideCollectionBase(_ref4) {
|
|
4592
4587
|
var _ref4$data = _ref4.data,
|
|
4593
4588
|
data = _ref4$data === void 0 ? {} : _ref4$data,
|
|
4594
4589
|
_ref4$config = _ref4.config,
|
|
@@ -4665,7 +4660,7 @@ var AsideCollection = function AsideCollection(_ref4) {
|
|
|
4665
4660
|
},
|
|
4666
4661
|
"data-test-id": "aside-collection",
|
|
4667
4662
|
className: "arrow-component arr--aside-collection " + _getClassName(["wrapper", isHorizontal, isSticky].join(" "), _styleModuleImportMap)
|
|
4668
|
-
}, enableKeyEvents && /*#__PURE__*/React.createElement(KeyEvents
|
|
4663
|
+
}, enableKeyEvents && /*#__PURE__*/React.createElement(KeyEvents, {
|
|
4669
4664
|
story: keyEventsData.story,
|
|
4670
4665
|
showLoadMore: keyEventsData.showLoadMore,
|
|
4671
4666
|
config: keyEventsData.config
|
|
@@ -4673,8 +4668,7 @@ var AsideCollection = function AsideCollection(_ref4) {
|
|
|
4673
4668
|
return asideSlot(slot.type, slot, index);
|
|
4674
4669
|
}));
|
|
4675
4670
|
};
|
|
4676
|
-
|
|
4677
|
-
AsideCollection.propTypes = {
|
|
4671
|
+
AsideCollectionBase.propTypes = {
|
|
4678
4672
|
data: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),
|
|
4679
4673
|
config: PropTypes.object,
|
|
4680
4674
|
opts: PropTypes.object,
|
|
@@ -4691,6 +4685,6 @@ AsideCollection.propTypes = {
|
|
|
4691
4685
|
enableKeyEvents: PropTypes["boolean"],
|
|
4692
4686
|
storyId: PropTypes.string
|
|
4693
4687
|
};
|
|
4694
|
-
var
|
|
4688
|
+
var AsideCollection = StateProvider(AsideCollectionBase);
|
|
4695
4689
|
|
|
4696
|
-
export {
|
|
4690
|
+
export { AsideCollection, AsideCollectionBase, StoryCollection };
|
|
@@ -1867,7 +1867,6 @@ var _styleModuleImportMap = {
|
|
|
1867
1867
|
"light": "tag-intro-card-module_light__3BSZP"
|
|
1868
1868
|
}
|
|
1869
1869
|
};
|
|
1870
|
-
|
|
1871
1870
|
var TagIntroductionCard = function TagIntroductionCard(_ref) {
|
|
1872
1871
|
var data = _ref.data,
|
|
1873
1872
|
_ref$config = _ref.config,
|
|
@@ -1889,7 +1888,6 @@ var TagIntroductionCard = function TagIntroductionCard(_ref) {
|
|
|
1889
1888
|
className: _getClassName("description ".concat(textColor), _styleModuleImportMap)
|
|
1890
1889
|
}, tagDescription));
|
|
1891
1890
|
};
|
|
1892
|
-
|
|
1893
1891
|
TagIntroductionCard.propTypes = {
|
|
1894
1892
|
data: PropTypes.shape({
|
|
1895
1893
|
tagName: PropTypes.string,
|
|
@@ -1900,4 +1898,4 @@ TagIntroductionCard.propTypes = {
|
|
|
1900
1898
|
})
|
|
1901
1899
|
};
|
|
1902
1900
|
|
|
1903
|
-
export { TagIntroductionCard
|
|
1901
|
+
export { TagIntroductionCard };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Link, ResponsiveImage, ResponsiveHeroImage, LinkBase, collectionToStories } from '@quintype/components';
|
|
2
2
|
import PropTypes, { PropTypes as PropTypes$1 } from 'prop-types';
|
|
3
|
-
import React, { useState, useEffect, useRef,
|
|
3
|
+
import React, { useState, useEffect, useRef, useContext, createContext } from 'react';
|
|
4
4
|
import { connect, useSelector, useDispatch } from 'react-redux';
|
|
5
5
|
import ReactDOM from 'react-dom';
|
|
6
6
|
import Timeago from 'react-timeago';
|
|
@@ -4415,7 +4415,7 @@ var loadMore = function loadMore(_ref2) {
|
|
|
4415
4415
|
getMoreStories(offset, limit);
|
|
4416
4416
|
};
|
|
4417
4417
|
|
|
4418
|
-
var
|
|
4418
|
+
var ThreeColFlexStoriesBase = function ThreeColFlexStoriesBase(_ref3) {
|
|
4419
4419
|
var _ref3$collection = _ref3.collection,
|
|
4420
4420
|
collection = _ref3$collection === void 0 ? {} : _ref3$collection,
|
|
4421
4421
|
_ref3$config = _ref3.config,
|
|
@@ -4534,9 +4534,7 @@ var ThreeColFlexStories = function ThreeColFlexStories(_ref3) {
|
|
|
4534
4534
|
subsequentLoadCount: subsequentLoadCount
|
|
4535
4535
|
})));
|
|
4536
4536
|
};
|
|
4537
|
-
|
|
4538
|
-
var index = StateProvider(ThreeColFlexStories);
|
|
4539
|
-
ThreeColFlexStories.propTypes = {
|
|
4537
|
+
ThreeColFlexStoriesBase.propTypes = {
|
|
4540
4538
|
/** collection is the array of objects which is returning by API */
|
|
4541
4539
|
collection: PropTypes.object.isRequired,
|
|
4542
4540
|
|
|
@@ -4566,11 +4564,12 @@ FlexCard.propTypes = {
|
|
|
4566
4564
|
localizationConfig: PropTypes.object
|
|
4567
4565
|
})
|
|
4568
4566
|
};
|
|
4569
|
-
|
|
4567
|
+
ThreeColFlexStoriesBase.defaultProps = {
|
|
4570
4568
|
getMoreStories: function getMoreStories() {},
|
|
4571
4569
|
isLoadMoreVisible: true,
|
|
4572
4570
|
isLoading: false,
|
|
4573
4571
|
hideFirstCard: false
|
|
4574
4572
|
};
|
|
4573
|
+
var ThreeColFlexStories = StateProvider(ThreeColFlexStoriesBase);
|
|
4575
4574
|
|
|
4576
|
-
export {
|
|
4575
|
+
export { ThreeColFlexStories, ThreeColFlexStoriesBase };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { useContext, createContext } from 'react';
|
|
2
2
|
import PropTypes, { PropTypes as PropTypes$1 } from 'prop-types';
|
|
3
3
|
import { Link, ResponsiveHeroImage, ResponsiveImage, collectionToStories } from '@quintype/components';
|
|
4
4
|
import { connect, useSelector } from 'react-redux';
|
|
@@ -4139,7 +4139,7 @@ StoryCard.defaultProps = {
|
|
|
4139
4139
|
isHorizontalWithImageLast: false
|
|
4140
4140
|
};
|
|
4141
4141
|
|
|
4142
|
-
var
|
|
4142
|
+
var ThreeColFourteenStoriesBase = function ThreeColFourteenStoriesBase(_ref) {
|
|
4143
4143
|
var _ref$collection = _ref.collection,
|
|
4144
4144
|
collection = _ref$collection === void 0 ? {} : _ref$collection,
|
|
4145
4145
|
_ref$config = _ref.config,
|
|
@@ -4264,8 +4264,7 @@ var ThreeColFourteenStories = function ThreeColFourteenStories(_ref) {
|
|
|
4264
4264
|
return storyCallBack(restOftheStories);
|
|
4265
4265
|
}))))));
|
|
4266
4266
|
};
|
|
4267
|
-
|
|
4268
|
-
ThreeColFourteenStories.propTypes = {
|
|
4267
|
+
ThreeColFourteenStoriesBase.propTypes = {
|
|
4269
4268
|
/** collection is the array of objects which is returning by API */
|
|
4270
4269
|
collection: PropTypes.object.isRequired,
|
|
4271
4270
|
|
|
@@ -4279,6 +4278,6 @@ ThreeColFourteenStories.propTypes = {
|
|
|
4279
4278
|
borderColor: PropTypes.string
|
|
4280
4279
|
})
|
|
4281
4280
|
};
|
|
4282
|
-
var
|
|
4281
|
+
var ThreeColFourteenStories = StateProvider(ThreeColFourteenStoriesBase);
|
|
4283
4282
|
|
|
4284
|
-
export {
|
|
4283
|
+
export { ThreeColFourteenStories, ThreeColFourteenStoriesBase };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { useContext, createContext, useState, useEffect, useRef, Fragment } from 'react';
|
|
2
2
|
import PropTypes, { PropTypes as PropTypes$1 } from 'prop-types';
|
|
3
3
|
import { Link, ResponsiveImage, ResponsiveHeroImage, LinkBase, collectionToStories } from '@quintype/components';
|
|
4
4
|
import Timeago from 'react-timeago';
|
|
@@ -4453,7 +4453,7 @@ var loadMore = function loadMore(_ref) {
|
|
|
4453
4453
|
getMoreStories(offset, limit);
|
|
4454
4454
|
};
|
|
4455
4455
|
|
|
4456
|
-
var
|
|
4456
|
+
var ThreeColGridBase = function ThreeColGridBase(_ref2) {
|
|
4457
4457
|
var collection = _ref2.collection,
|
|
4458
4458
|
_ref2$config = _ref2.config,
|
|
4459
4459
|
config = _ref2$config === void 0 ? {} : _ref2$config,
|
|
@@ -4576,8 +4576,7 @@ var ThreeColGrid = function ThreeColGrid(_ref2) {
|
|
|
4576
4576
|
subsequentLoadCount: subsequentLoadCount
|
|
4577
4577
|
}), footerSlotComp));
|
|
4578
4578
|
};
|
|
4579
|
-
|
|
4580
|
-
ThreeColGrid.propTypes = {
|
|
4579
|
+
ThreeColGridBase.propTypes = {
|
|
4581
4580
|
/** collection is the array of objects which is returning by API */
|
|
4582
4581
|
collection: PropTypes.object.isRequired,
|
|
4583
4582
|
|
|
@@ -4596,11 +4595,11 @@ ThreeColGrid.propTypes = {
|
|
|
4596
4595
|
isLoading: PropTypes.bool,
|
|
4597
4596
|
isolatedLoadMore: PropTypes.bool
|
|
4598
4597
|
};
|
|
4599
|
-
|
|
4598
|
+
ThreeColGridBase.defaultProps = {
|
|
4600
4599
|
getMoreStories: function getMoreStories() {},
|
|
4601
4600
|
isLoadMoreVisible: true,
|
|
4602
4601
|
isLoading: false
|
|
4603
4602
|
};
|
|
4604
|
-
var
|
|
4603
|
+
var ThreeColGrid = StateProvider(ThreeColGridBase);
|
|
4605
4604
|
|
|
4606
|
-
export {
|
|
4605
|
+
export { ThreeColGrid, ThreeColGridBase };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { useContext, createContext } from 'react';
|
|
2
2
|
import { Link, ResponsiveImage, ResponsiveHeroImage, LinkBase, collectionToStories } from '@quintype/components';
|
|
3
3
|
import PropTypes, { PropTypes as PropTypes$1 } from 'prop-types';
|
|
4
4
|
import Timeago from 'react-timeago';
|
|
@@ -4322,8 +4322,7 @@ var _styleModuleImportMap = {
|
|
|
4322
4322
|
"ads": "three-col-seven-story-m_ads__2YttJ"
|
|
4323
4323
|
}
|
|
4324
4324
|
};
|
|
4325
|
-
|
|
4326
|
-
var ThreeColSevenStory = function ThreeColSevenStory(_ref) {
|
|
4325
|
+
var ThreeColSevenStoryBase = function ThreeColSevenStoryBase(_ref) {
|
|
4327
4326
|
var collection = _ref.collection,
|
|
4328
4327
|
_ref$config = _ref.config,
|
|
4329
4328
|
config = _ref$config === void 0 ? {} : _ref$config;
|
|
@@ -4483,8 +4482,7 @@ var ThreeColSevenStory = function ThreeColSevenStory(_ref) {
|
|
|
4483
4482
|
qtConfig: qtConfig
|
|
4484
4483
|
}), footerSlotComp));
|
|
4485
4484
|
};
|
|
4486
|
-
|
|
4487
|
-
ThreeColSevenStory.propTypes = {
|
|
4485
|
+
ThreeColSevenStoryBase.propTypes = {
|
|
4488
4486
|
/** collection is the array of objects which is returning by API */
|
|
4489
4487
|
collection: PropTypes.object.isRequired,
|
|
4490
4488
|
|
|
@@ -4499,6 +4497,6 @@ ThreeColSevenStory.propTypes = {
|
|
|
4499
4497
|
collectionNameBorderColor: PropTypes.string
|
|
4500
4498
|
})
|
|
4501
4499
|
};
|
|
4502
|
-
var
|
|
4500
|
+
var ThreeColSevenStory = StateProvider(ThreeColSevenStoryBase);
|
|
4503
4501
|
|
|
4504
|
-
export {
|
|
4502
|
+
export { ThreeColSevenStory, ThreeColSevenStoryBase };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { useContext, createContext } from 'react';
|
|
2
2
|
import PropTypes, { PropTypes as PropTypes$1 } from 'prop-types';
|
|
3
3
|
import { Link, ResponsiveHeroImage, ResponsiveImage, LinkBase, collectionToStories } from '@quintype/components';
|
|
4
4
|
import { connect, useSelector, useDispatch } from 'react-redux';
|
|
@@ -4311,7 +4311,7 @@ LoadmoreButton.propTypes = {
|
|
|
4311
4311
|
qtConfig: PropTypes.object
|
|
4312
4312
|
};
|
|
4313
4313
|
|
|
4314
|
-
var
|
|
4314
|
+
var ThreeColSixStoriesBase = function ThreeColSixStoriesBase(_ref) {
|
|
4315
4315
|
var _ref$collection = _ref.collection,
|
|
4316
4316
|
collection = _ref$collection === void 0 ? {} : _ref$collection,
|
|
4317
4317
|
_ref$config = _ref.config,
|
|
@@ -4465,9 +4465,7 @@ var ThreeColSixStories = function ThreeColSixStories(_ref) {
|
|
|
4465
4465
|
qtConfig: qtConfig
|
|
4466
4466
|
}), footerSlotComp));
|
|
4467
4467
|
};
|
|
4468
|
-
|
|
4469
|
-
var index = StateProvider(ThreeColSixStories);
|
|
4470
|
-
ThreeColSixStories.propTypes = {
|
|
4468
|
+
ThreeColSixStoriesBase.propTypes = {
|
|
4471
4469
|
/** collection is the array of objects which is returning by API */
|
|
4472
4470
|
collection: PropTypes.object.isRequired,
|
|
4473
4471
|
|
|
@@ -4482,5 +4480,6 @@ ThreeColSixStories.propTypes = {
|
|
|
4482
4480
|
collectionNameBorderColor: PropTypes.string
|
|
4483
4481
|
})
|
|
4484
4482
|
};
|
|
4483
|
+
var ThreeColSixStories = StateProvider(ThreeColSixStoriesBase);
|
|
4485
4484
|
|
|
4486
|
-
export {
|
|
4485
|
+
export { ThreeColSixStories, ThreeColSixStoriesBase };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { useContext, createContext } from 'react';
|
|
2
2
|
import PropTypes, { PropTypes as PropTypes$1 } from 'prop-types';
|
|
3
3
|
import { Link, ResponsiveImage, ResponsiveHeroImage, LinkBase, collectionToStories } from '@quintype/components';
|
|
4
4
|
import Timeago from 'react-timeago';
|
|
@@ -4328,7 +4328,7 @@ var getChildCollectionData = function getChildCollectionData() {
|
|
|
4328
4328
|
}));
|
|
4329
4329
|
};
|
|
4330
4330
|
|
|
4331
|
-
function
|
|
4331
|
+
function ThreeColTwelveStoriesBase(_ref) {
|
|
4332
4332
|
var collection = _ref.collection,
|
|
4333
4333
|
_ref$config = _ref.config,
|
|
4334
4334
|
config = _ref$config === void 0 ? {} : _ref$config;
|
|
@@ -4363,8 +4363,7 @@ function ThreeColTwelveStories(_ref) {
|
|
|
4363
4363
|
className: "three-col-twelve-stories-m_ad-widget-container__1_jAm"
|
|
4364
4364
|
}, adWidgetComponent())));
|
|
4365
4365
|
}
|
|
4366
|
-
|
|
4367
|
-
ThreeColTwelveStories.propTypes = {
|
|
4366
|
+
ThreeColTwelveStoriesBase.propTypes = {
|
|
4368
4367
|
collection: PropTypes.object.isRequired,
|
|
4369
4368
|
config: PropTypes.shape({
|
|
4370
4369
|
borderColor: PropTypes.string,
|
|
@@ -4376,6 +4375,6 @@ ThreeColTwelveStories.propTypes = {
|
|
|
4376
4375
|
collectionNameBorderColor: PropTypes.string
|
|
4377
4376
|
})
|
|
4378
4377
|
};
|
|
4379
|
-
var
|
|
4378
|
+
var ThreeColTwelveStories = StateProvider(ThreeColTwelveStoriesBase);
|
|
4380
4379
|
|
|
4381
|
-
export {
|
|
4380
|
+
export { ThreeColTwelveStories, ThreeColTwelveStoriesBase };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { useContext, createContext } from 'react';
|
|
2
2
|
import PropTypes, { PropTypes as PropTypes$1 } from 'prop-types';
|
|
3
3
|
import { Link, ResponsiveHeroImage, ResponsiveImage, LinkBase, collectionToStories } from '@quintype/components';
|
|
4
4
|
import { connect, useSelector, useDispatch } from 'react-redux';
|
|
@@ -4312,7 +4312,7 @@ var _styleModuleImportMap = {
|
|
|
4312
4312
|
"first-card-border-box": "two-col-four-story-m_first-card-border-box__29Jn2"
|
|
4313
4313
|
}
|
|
4314
4314
|
};
|
|
4315
|
-
var
|
|
4315
|
+
var TwoColFourStoriesBase = function TwoColFourStoriesBase(_ref) {
|
|
4316
4316
|
var collection = _ref.collection,
|
|
4317
4317
|
_ref$config = _ref.config,
|
|
4318
4318
|
config = _ref$config === void 0 ? {} : _ref$config;
|
|
@@ -4444,8 +4444,7 @@ var TwoColFourStories = function TwoColFourStories(_ref) {
|
|
|
4444
4444
|
qtConfig: qtConfig
|
|
4445
4445
|
}), footerSlotComp));
|
|
4446
4446
|
};
|
|
4447
|
-
|
|
4448
|
-
TwoColFourStories.propTypes = {
|
|
4447
|
+
TwoColFourStoriesBase.propTypes = {
|
|
4449
4448
|
/** collection is the array of objects which is returning by API */
|
|
4450
4449
|
collection: PropTypes.object.isRequired,
|
|
4451
4450
|
|
|
@@ -4459,5 +4458,6 @@ TwoColFourStories.propTypes = {
|
|
|
4459
4458
|
collectionNameBorderColor: PropTypes.string
|
|
4460
4459
|
})
|
|
4461
4460
|
};
|
|
4461
|
+
var TwoColFourStories = StateProvider(TwoColFourStoriesBase);
|
|
4462
4462
|
|
|
4463
|
-
export { TwoColFourStories,
|
|
4463
|
+
export { TwoColFourStories, TwoColFourStoriesBase };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { useContext, createContext } from 'react';
|
|
2
2
|
import PropTypes, { PropTypes as PropTypes$1 } from 'prop-types';
|
|
3
3
|
import { Link, ResponsiveHeroImage, ResponsiveImage, LinkBase, collectionToStories } from '@quintype/components';
|
|
4
4
|
import Timeago from 'react-timeago';
|
|
@@ -4323,7 +4323,7 @@ var _styleModuleImportMap = {
|
|
|
4323
4323
|
"storyHighlightWrapper": "two-col-four-story-highlight-m_storyHighlightWrapper__1Jl9S"
|
|
4324
4324
|
}
|
|
4325
4325
|
};
|
|
4326
|
-
var
|
|
4326
|
+
var TwoColFourStoryHighlightBase = function TwoColFourStoryHighlightBase(_ref) {
|
|
4327
4327
|
var collection = _ref.collection,
|
|
4328
4328
|
_ref$config = _ref.config,
|
|
4329
4329
|
config = _ref$config === void 0 ? {} : _ref$config;
|
|
@@ -4439,8 +4439,7 @@ var TwoColFourStoryHighlight = function TwoColFourStoryHighlight(_ref) {
|
|
|
4439
4439
|
story: firstStory
|
|
4440
4440
|
})))));
|
|
4441
4441
|
};
|
|
4442
|
-
|
|
4443
|
-
TwoColFourStoryHighlight.propTypes = {
|
|
4442
|
+
TwoColFourStoryHighlightBase.propTypes = {
|
|
4444
4443
|
collection: PropTypes.object.isRequired,
|
|
4445
4444
|
config: PropTypes.shape({
|
|
4446
4445
|
theme: PropTypes.string,
|
|
@@ -4452,5 +4451,6 @@ TwoColFourStoryHighlight.propTypes = {
|
|
|
4452
4451
|
localizationConfig: PropTypes.object
|
|
4453
4452
|
})
|
|
4454
4453
|
};
|
|
4454
|
+
var TwoColFourStoryHighlight = StateProvider(TwoColFourStoryHighlightBase);
|
|
4455
4455
|
|
|
4456
|
-
export { TwoColFourStoryHighlight,
|
|
4456
|
+
export { TwoColFourStoryHighlight, TwoColFourStoryHighlightBase };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { useContext, createContext } from 'react';
|
|
2
2
|
import PropTypes, { PropTypes as PropTypes$1 } from 'prop-types';
|
|
3
3
|
import { Link, ResponsiveHeroImage, ResponsiveImage, LinkBase, collectionToStories } from '@quintype/components';
|
|
4
4
|
import { connect, useSelector, useDispatch } from 'react-redux';
|
|
@@ -4326,7 +4326,7 @@ var _styleModuleImportMap = {
|
|
|
4326
4326
|
"blink": "two-col-seven-stories-m_blink__2Y25W"
|
|
4327
4327
|
}
|
|
4328
4328
|
};
|
|
4329
|
-
var
|
|
4329
|
+
var TwoColSevenStoriesBase = function TwoColSevenStoriesBase(_ref) {
|
|
4330
4330
|
var collection = _ref.collection,
|
|
4331
4331
|
_ref$config = _ref.config,
|
|
4332
4332
|
config = _ref$config === void 0 ? {} : _ref$config;
|
|
@@ -4467,8 +4467,7 @@ var TwoColSevenStories = function TwoColSevenStories(_ref) {
|
|
|
4467
4467
|
qtConfig: qtConfig
|
|
4468
4468
|
})));
|
|
4469
4469
|
};
|
|
4470
|
-
|
|
4471
|
-
TwoColSevenStories.propTypes = {
|
|
4470
|
+
TwoColSevenStoriesBase.propTypes = {
|
|
4472
4471
|
/** collection is the array of objects which is returning by API */
|
|
4473
4472
|
collection: PropTypes.object.isRequired,
|
|
4474
4473
|
|
|
@@ -4482,9 +4481,10 @@ TwoColSevenStories.propTypes = {
|
|
|
4482
4481
|
collectionNameBorderColor: PropTypes.string
|
|
4483
4482
|
})
|
|
4484
4483
|
};
|
|
4485
|
-
|
|
4484
|
+
TwoColSevenStoriesBase.defaultProps = {
|
|
4486
4485
|
theme: "#ffffff",
|
|
4487
4486
|
border: ""
|
|
4488
4487
|
};
|
|
4488
|
+
var TwoColSevenStories = StateProvider(TwoColSevenStoriesBase);
|
|
4489
4489
|
|
|
4490
|
-
export { TwoColSevenStories,
|
|
4490
|
+
export { TwoColSevenStories, TwoColSevenStoriesBase };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { useContext, createContext } from 'react';
|
|
2
2
|
import PropTypes, { PropTypes as PropTypes$1 } from 'prop-types';
|
|
3
3
|
import { useSelector, connect, useDispatch } from 'react-redux';
|
|
4
4
|
import { Link, ResponsiveHeroImage, ResponsiveImage, LinkBase, collectionToStories } from '@quintype/components';
|
|
@@ -4335,8 +4335,7 @@ var _styleModuleImportMap = {
|
|
|
4335
4335
|
"blink": "two-col-six-stories-m_blink__3sGRm"
|
|
4336
4336
|
}
|
|
4337
4337
|
};
|
|
4338
|
-
|
|
4339
|
-
var TwoColSixStories = function TwoColSixStories(_ref) {
|
|
4338
|
+
var TwoColSixStoriesBase = function TwoColSixStoriesBase(_ref) {
|
|
4340
4339
|
var collection = _ref.collection,
|
|
4341
4340
|
_ref$config = _ref.config,
|
|
4342
4341
|
config = _ref$config === void 0 ? {} : _ref$config;
|
|
@@ -4481,11 +4480,10 @@ var TwoColSixStories = function TwoColSixStories(_ref) {
|
|
|
4481
4480
|
template: "NavigateToPage"
|
|
4482
4481
|
}));
|
|
4483
4482
|
};
|
|
4484
|
-
|
|
4485
|
-
TwoColSixStories.propTypes = {
|
|
4483
|
+
TwoColSixStoriesBase.propTypes = {
|
|
4486
4484
|
collection: PropTypes.object,
|
|
4487
4485
|
config: PropTypes.object
|
|
4488
4486
|
};
|
|
4489
|
-
var
|
|
4487
|
+
var TwoColSixStories = StateProvider(TwoColSixStoriesBase);
|
|
4490
4488
|
|
|
4491
|
-
export {
|
|
4489
|
+
export { TwoColSixStories, TwoColSixStoriesBase };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { useContext, createContext } from 'react';
|
|
2
2
|
import PropTypes, { PropTypes as PropTypes$1 } from 'prop-types';
|
|
3
3
|
import { Link, ResponsiveHeroImage, ResponsiveImage, LinkBase, collectionToStories } from '@quintype/components';
|
|
4
4
|
import Timeago from 'react-timeago';
|
|
@@ -4383,7 +4383,7 @@ var _styleModuleImportMap = {
|
|
|
4383
4383
|
"first-card": "two-col-ten-stories-sidebar-m_first-card__3HJ3k"
|
|
4384
4384
|
}
|
|
4385
4385
|
};
|
|
4386
|
-
var
|
|
4386
|
+
var TwoColTenStoriesSidebarBase = function TwoColTenStoriesSidebarBase(_ref) {
|
|
4387
4387
|
var collection = _ref.collection,
|
|
4388
4388
|
_ref$config = _ref.config,
|
|
4389
4389
|
config = _ref$config === void 0 ? {} : _ref$config;
|
|
@@ -4532,8 +4532,7 @@ var TwoColTenStoriesSidebar = function TwoColTenStoriesSidebar(_ref) {
|
|
|
4532
4532
|
qtConfig: qtConfig
|
|
4533
4533
|
})));
|
|
4534
4534
|
};
|
|
4535
|
-
|
|
4536
|
-
TwoColTenStoriesSidebar.propTypes = {
|
|
4535
|
+
TwoColTenStoriesSidebarBase.propTypes = {
|
|
4537
4536
|
collection: PropTypes.object.isRequired,
|
|
4538
4537
|
config: PropTypes.shape({
|
|
4539
4538
|
theme: PropTypes.string,
|
|
@@ -4545,5 +4544,6 @@ TwoColTenStoriesSidebar.propTypes = {
|
|
|
4545
4544
|
localizationConfig: PropTypes.object
|
|
4546
4545
|
})
|
|
4547
4546
|
};
|
|
4547
|
+
var TwoColTenStoriesSidebar = StateProvider(TwoColTenStoriesSidebarBase);
|
|
4548
4548
|
|
|
4549
|
-
export { TwoColTenStoriesSidebar,
|
|
4549
|
+
export { TwoColTenStoriesSidebar, TwoColTenStoriesSidebarBase };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { useContext, createContext } from 'react';
|
|
2
2
|
import PropTypes, { PropTypes as PropTypes$1 } from 'prop-types';
|
|
3
3
|
import { Link, ResponsiveHeroImage, ResponsiveImage, LinkBase, collectionToStories } from '@quintype/components';
|
|
4
4
|
import { connect, useSelector, useDispatch } from 'react-redux';
|
|
@@ -4299,7 +4299,7 @@ LoadmoreButton.propTypes = {
|
|
|
4299
4299
|
qtConfig: PropTypes.object
|
|
4300
4300
|
};
|
|
4301
4301
|
|
|
4302
|
-
var
|
|
4302
|
+
var TwoColThreeStoriesBase = function TwoColThreeStoriesBase(_ref) {
|
|
4303
4303
|
var collection = _ref.collection,
|
|
4304
4304
|
_ref$config = _ref.config,
|
|
4305
4305
|
config = _ref$config === void 0 ? {} : _ref$config;
|
|
@@ -4417,8 +4417,7 @@ var TwoColThreeStories = function TwoColThreeStories(_ref) {
|
|
|
4417
4417
|
qtConfig: qtConfig
|
|
4418
4418
|
}), footerSlotComp));
|
|
4419
4419
|
};
|
|
4420
|
-
|
|
4421
|
-
TwoColThreeStories.propTypes = {
|
|
4420
|
+
TwoColThreeStoriesBase.propTypes = {
|
|
4422
4421
|
/** collection is the array of objects which is returning by API */
|
|
4423
4422
|
collection: PropTypes.object.isRequired,
|
|
4424
4423
|
|
|
@@ -4432,5 +4431,6 @@ TwoColThreeStories.propTypes = {
|
|
|
4432
4431
|
collectionNameBorderColor: PropTypes.string
|
|
4433
4432
|
})
|
|
4434
4433
|
};
|
|
4434
|
+
var TwoColThreeStories = StateProvider(TwoColThreeStoriesBase);
|
|
4435
4435
|
|
|
4436
|
-
export { TwoColThreeStories,
|
|
4436
|
+
export { TwoColThreeStories, TwoColThreeStoriesBase };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Link, ResponsiveImage, ResponsiveHeroImage, LazyLoadImages, StoryElement as StoryElement$1, LinkBase, SocialShare } from '@quintype/components';
|
|
2
|
-
import React, {
|
|
2
|
+
import React, { useContext, createContext, useState, useEffect, Suspense, lazy, useRef } from 'react';
|
|
3
3
|
import { useSelector, connect } from 'react-redux';
|
|
4
4
|
import PropTypes, { number, string, func, array, bool, PropTypes as PropTypes$1 } from 'prop-types';
|
|
5
5
|
import Timeago from 'react-timeago';
|
|
@@ -7826,8 +7826,7 @@ KeyEventCards.propTypes = {
|
|
|
7826
7826
|
loadCards: PropTypes.bool,
|
|
7827
7827
|
showLoadMore: PropTypes.bool
|
|
7828
7828
|
};
|
|
7829
|
-
|
|
7830
|
-
var KeyEvents = function KeyEvents(_ref) {
|
|
7829
|
+
var KeyEventsBase = function KeyEventsBase(_ref) {
|
|
7831
7830
|
var _ref$story = _ref.story,
|
|
7832
7831
|
story = _ref$story === void 0 ? {} : _ref$story,
|
|
7833
7832
|
_ref$config = _ref.config,
|
|
@@ -7888,13 +7887,12 @@ var KeyEvents = function KeyEvents(_ref) {
|
|
|
7888
7887
|
qtConfig: qtConfig
|
|
7889
7888
|
}));
|
|
7890
7889
|
};
|
|
7891
|
-
|
|
7892
|
-
KeyEvents.propTypes = {
|
|
7890
|
+
KeyEventsBase.propTypes = {
|
|
7893
7891
|
story: PropTypes.object,
|
|
7894
7892
|
config: PropTypes.object,
|
|
7895
7893
|
showLoadMore: PropTypes.bool
|
|
7896
7894
|
};
|
|
7897
|
-
var KeyEvents
|
|
7895
|
+
var KeyEvents = StateProvider(KeyEventsBase);
|
|
7898
7896
|
|
|
7899
7897
|
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; }
|
|
7900
7898
|
|
|
@@ -7914,7 +7912,6 @@ var _styleModuleImportMap$1 = {
|
|
|
7914
7912
|
"sticky": "aside-collection-m_sticky__AZXBP"
|
|
7915
7913
|
}
|
|
7916
7914
|
};
|
|
7917
|
-
|
|
7918
7915
|
var StoryCollection = function StoryCollection(_ref) {
|
|
7919
7916
|
var data = _ref.data,
|
|
7920
7917
|
slotData = _ref.slotData,
|
|
@@ -8020,7 +8017,6 @@ var StoryCollection = function StoryCollection(_ref) {
|
|
|
8020
8017
|
className: "aside-collection-m_info__3p4zt"
|
|
8021
8018
|
}, "No stories found.")));
|
|
8022
8019
|
};
|
|
8023
|
-
|
|
8024
8020
|
StoryCollection.propTypes = {
|
|
8025
8021
|
data: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),
|
|
8026
8022
|
config: PropTypes.object,
|
|
@@ -8028,8 +8024,7 @@ StoryCollection.propTypes = {
|
|
|
8028
8024
|
slotData: PropTypes.object,
|
|
8029
8025
|
opts: PropTypes.object
|
|
8030
8026
|
};
|
|
8031
|
-
|
|
8032
|
-
var AsideCollection = function AsideCollection(_ref4) {
|
|
8027
|
+
var AsideCollectionBase = function AsideCollectionBase(_ref4) {
|
|
8033
8028
|
var _ref4$data = _ref4.data,
|
|
8034
8029
|
data = _ref4$data === void 0 ? {} : _ref4$data,
|
|
8035
8030
|
_ref4$config = _ref4.config,
|
|
@@ -8106,7 +8101,7 @@ var AsideCollection = function AsideCollection(_ref4) {
|
|
|
8106
8101
|
},
|
|
8107
8102
|
"data-test-id": "aside-collection",
|
|
8108
8103
|
className: "arrow-component arr--aside-collection " + _getClassName(["wrapper", isHorizontal, isSticky].join(" "), _styleModuleImportMap$1)
|
|
8109
|
-
}, enableKeyEvents && /*#__PURE__*/React.createElement(KeyEvents
|
|
8104
|
+
}, enableKeyEvents && /*#__PURE__*/React.createElement(KeyEvents, {
|
|
8110
8105
|
story: keyEventsData.story,
|
|
8111
8106
|
showLoadMore: keyEventsData.showLoadMore,
|
|
8112
8107
|
config: keyEventsData.config
|
|
@@ -8114,8 +8109,7 @@ var AsideCollection = function AsideCollection(_ref4) {
|
|
|
8114
8109
|
return asideSlot(slot.type, slot, index);
|
|
8115
8110
|
}));
|
|
8116
8111
|
};
|
|
8117
|
-
|
|
8118
|
-
AsideCollection.propTypes = {
|
|
8112
|
+
AsideCollectionBase.propTypes = {
|
|
8119
8113
|
data: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),
|
|
8120
8114
|
config: PropTypes.object,
|
|
8121
8115
|
opts: PropTypes.object,
|
|
@@ -8132,7 +8126,7 @@ AsideCollection.propTypes = {
|
|
|
8132
8126
|
enableKeyEvents: PropTypes["boolean"],
|
|
8133
8127
|
storyId: PropTypes.string
|
|
8134
8128
|
};
|
|
8135
|
-
var AsideCollection
|
|
8129
|
+
var AsideCollection = StateProvider(AsideCollectionBase);
|
|
8136
8130
|
|
|
8137
8131
|
var _styleModuleImportMap = {
|
|
8138
8132
|
"./listicle-story.m.css": {
|
|
@@ -8164,8 +8158,7 @@ var _styleModuleImportMap = {
|
|
|
8164
8158
|
"headline-sideway-template": "listicle-story-m_headline-sideway-template__1kjin"
|
|
8165
8159
|
}
|
|
8166
8160
|
};
|
|
8167
|
-
|
|
8168
|
-
var ListicleStoryTemplate = function ListicleStoryTemplate(_ref) {
|
|
8161
|
+
var ListicleStoryTemplateBase = function ListicleStoryTemplateBase(_ref) {
|
|
8169
8162
|
var _ref$story = _ref.story,
|
|
8170
8163
|
story = _ref$story === void 0 ? {} : _ref$story,
|
|
8171
8164
|
_ref$config = _ref.config,
|
|
@@ -8295,7 +8288,7 @@ var ListicleStoryTemplate = function ListicleStoryTemplate(_ref) {
|
|
|
8295
8288
|
};
|
|
8296
8289
|
|
|
8297
8290
|
var SideColumnBlock = function SideColumnBlock() {
|
|
8298
|
-
return asideCollection && /*#__PURE__*/React.createElement(AsideCollection
|
|
8291
|
+
return asideCollection && /*#__PURE__*/React.createElement(AsideCollection, _extends({}, asideCollection, {
|
|
8299
8292
|
adComponent: adComponent,
|
|
8300
8293
|
widgetComp: widgetComp,
|
|
8301
8294
|
sticky: true,
|
|
@@ -8430,8 +8423,7 @@ var ListicleStoryTemplate = function ListicleStoryTemplate(_ref) {
|
|
|
8430
8423
|
}
|
|
8431
8424
|
}, renderTemplate());
|
|
8432
8425
|
};
|
|
8433
|
-
|
|
8434
|
-
ListicleStoryTemplate.propTypes = {
|
|
8426
|
+
ListicleStoryTemplateBase.propTypes = {
|
|
8435
8427
|
story: PropTypes.object,
|
|
8436
8428
|
config: PropTypes.shape({
|
|
8437
8429
|
templateType: PropTypes.string,
|
|
@@ -8445,6 +8437,6 @@ ListicleStoryTemplate.propTypes = {
|
|
|
8445
8437
|
widgetComp: PropTypes.func,
|
|
8446
8438
|
premiumStoryIconConfig: PropTypes.object
|
|
8447
8439
|
};
|
|
8448
|
-
var
|
|
8440
|
+
var ListicleStoryTemplate = StateProvider(ListicleStoryTemplateBase);
|
|
8449
8441
|
|
|
8450
|
-
export {
|
|
8442
|
+
export { ListicleStoryTemplate, ListicleStoryTemplateBase };
|
|
File without changes
|