@times-components/article-extras 0.29.1-alpha.1 → 0.30.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/CHANGELOG.md +19 -0
- package/dist/article-extras.js +6 -3
- package/package.json +20 -20
- package/rnw.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.30.1](https://github.com/newsuk/times-components/compare/@times-components/article-extras@0.30.0...@times-components/article-extras@0.30.1) (2024-08-08)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @times-components/article-extras
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [0.30.0](https://github.com/newsuk/times-components/compare/@times-components/article-extras@0.29.0...@times-components/article-extras@0.30.0) (2024-08-08)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **TMG-1729:** test-integrated commenting with internal cps endpoint ([#3910](https://github.com/newsuk/times-components/issues/3910)) ([7a4958d](https://github.com/newsuk/times-components/commit/7a4958db25785ecb068e0ab2d29fc0295bc8358f))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# [0.29.0](https://github.com/newsuk/times-components/compare/@times-components/article-extras@0.28.15...@times-components/article-extras@0.29.0) (2024-08-08)
|
|
7
26
|
|
|
8
27
|
|
package/dist/article-extras.js
CHANGED
|
@@ -53,7 +53,8 @@ const ArticleExtras = _ref => {
|
|
|
53
53
|
isCommentEnabled = _ref.isCommentEnabled,
|
|
54
54
|
storefrontConfig = _ref.storefrontConfig,
|
|
55
55
|
breadcrumbs = _ref.breadcrumbs,
|
|
56
|
-
domainSpecificUrl = _ref.domainSpecificUrl
|
|
56
|
+
domainSpecificUrl = _ref.domainSpecificUrl,
|
|
57
|
+
isEntitlementFeatureEnabled = _ref.isEntitlementFeatureEnabled;
|
|
57
58
|
|
|
58
59
|
const renderBreadcrumb = function renderBreadcrumb() {
|
|
59
60
|
let _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
|
|
@@ -129,7 +130,8 @@ const ArticleExtras = _ref => {
|
|
|
129
130
|
commentingConfig: commentingConfig,
|
|
130
131
|
isCommentEnabled: isCommentEnabled,
|
|
131
132
|
storefrontConfig: storefrontConfig,
|
|
132
|
-
domainSpecificUrl: domainSpecificUrl
|
|
133
|
+
domainSpecificUrl: domainSpecificUrl,
|
|
134
|
+
isEntitlementFeatureEnabled: isEntitlementFeatureEnabled
|
|
133
135
|
}));
|
|
134
136
|
};
|
|
135
137
|
|
|
@@ -153,7 +155,8 @@ ArticleExtras.propTypes = {
|
|
|
153
155
|
isCommentEnabled: _propTypes.default.bool,
|
|
154
156
|
storefrontConfig: _propTypes.default.string.isRequired,
|
|
155
157
|
breadcrumbs: _propTypes.default.arrayOf(_propTypes.default.shape({})),
|
|
156
|
-
domainSpecificUrl: _propTypes.default.string.isRequired
|
|
158
|
+
domainSpecificUrl: _propTypes.default.string.isRequired,
|
|
159
|
+
isEntitlementFeatureEnabled: _propTypes.default.bool.isRequired
|
|
157
160
|
};
|
|
158
161
|
ArticleExtras.defaultProps = {
|
|
159
162
|
relatedArticleSlice: null,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@times-components/article-extras",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.30.1",
|
|
4
4
|
"description": "Extra information components at the bottom of the articles, such as topics, related articles and comments ",
|
|
5
5
|
"main": "dist/index",
|
|
6
6
|
"dev": "src/index",
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
"homepage": "https://github.com/newsuk/times-components#readme",
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@babel/core": "7.4.4",
|
|
36
|
-
"@times-components/eslint-config-thetimes": "
|
|
37
|
-
"@times-components/jest-configurator-web": "
|
|
38
|
-
"@times-components/jest-serializer": "
|
|
39
|
-
"@times-components/storybook": "
|
|
40
|
-
"@times-components/test-utils": "
|
|
41
|
-
"@times-components/webpack-configurator": "
|
|
36
|
+
"@times-components/eslint-config-thetimes": "0.8.18",
|
|
37
|
+
"@times-components/jest-configurator-web": "0.8.2",
|
|
38
|
+
"@times-components/jest-serializer": "3.13.20",
|
|
39
|
+
"@times-components/storybook": "4.12.34",
|
|
40
|
+
"@times-components/test-utils": "2.4.2",
|
|
41
|
+
"@times-components/webpack-configurator": "2.1.1",
|
|
42
42
|
"babel-jest": "24.8.0",
|
|
43
43
|
"eslint": "5.9.0",
|
|
44
44
|
"jest": "24.8.0",
|
|
@@ -49,18 +49,18 @@
|
|
|
49
49
|
"webpack": "4.30.0"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@times-components/article-comments": "
|
|
53
|
-
"@times-components/article-topics": "
|
|
54
|
-
"@times-components/button": "
|
|
55
|
-
"@times-components/context": "
|
|
56
|
-
"@times-components/message-bar": "
|
|
57
|
-
"@times-components/related-articles": "
|
|
58
|
-
"@times-components/save-and-share-bar": "
|
|
59
|
-
"@times-components/ts-components": "
|
|
60
|
-
"@times-components/ts-newskit": "
|
|
61
|
-
"@times-components/ts-styleguide": "
|
|
62
|
-
"@times-components/user-state": "
|
|
63
|
-
"@times-components/utils": "
|
|
52
|
+
"@times-components/article-comments": "0.44.1",
|
|
53
|
+
"@times-components/article-topics": "4.11.55",
|
|
54
|
+
"@times-components/button": "2.10.61",
|
|
55
|
+
"@times-components/context": "1.24.0",
|
|
56
|
+
"@times-components/message-bar": "0.7.85",
|
|
57
|
+
"@times-components/related-articles": "6.17.79",
|
|
58
|
+
"@times-components/save-and-share-bar": "0.22.3",
|
|
59
|
+
"@times-components/ts-components": "1.100.1",
|
|
60
|
+
"@times-components/ts-newskit": "1.189.0",
|
|
61
|
+
"@times-components/ts-styleguide": "1.50.34",
|
|
62
|
+
"@times-components/user-state": "0.5.51",
|
|
63
|
+
"@times-components/utils": "6.26.0",
|
|
64
64
|
"prop-types": "15.7.2",
|
|
65
65
|
"styled-components": "4.3.2"
|
|
66
66
|
},
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"publishConfig": {
|
|
76
76
|
"access": "public"
|
|
77
77
|
},
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "2e1568dc2806e98d22c7435343794433e71264e8"
|
|
79
79
|
}
|
package/rnw.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=13)}([function(e,t){e.exports=require("@times-components/ts-styleguide/rnw")},function(e,t){e.exports=require("react")},function(e,t){e.exports=require("styled-components")},function(e,t){e.exports=require("@times-components/user-state/rnw")},function(e,t){e.exports=require("prop-types")},function(e,t){e.exports=require("@times-components/article-comments/rnw")},function(e,t){e.exports=require("@times-components/related-articles/rnw")},function(e,t){e.exports=require("@times-components/message-bar/rnw")},function(e,t){e.exports=require("@times-components/save-and-share-bar/rnw")},function(e,t){e.exports=require("@times-components/ts-components/rnw")},function(e,t){e.exports=require("@times-components/ts-newskit/rnw")},function(e,t){e.exports=require("@times-components/article-topics/rnw")},function(e,t){e.exports=require("@times-components/utils/rnw")},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n.n(r),i=(n(4),n(3)),a=n.n(i),c=n(5),l=n.n(c),s=n(6),d=n.n(s),p=n(7),u=n(8),m=n.n(u),b=n(9),f=n(10),g=n(11),h=n.n(g),y=n(12),w=n(2),x=n.n(w),O=n(0),v=x()(y.TcView).withConfig({displayName:"responsive",componentId:"rerzrc-0"})(["padding-left:",";padding-right:",";@media (min-width:","px){width:80.8%;margin:0 auto;padding-left:0;padding-right:0;}@media (min-width:","px){width:56.2%;}"],Object(O.spacing)(2),Object(O.spacing)(2),O.breakpoints.medium,O.breakpoints.wide);function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){E(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},{topicsContainer:{borderTopColor:O.colours.functional.keyline,borderTopWidth:1},topicsContainerTablet:{alignSelf:"center",width:O.tabletWidth},topicsMetaContainer:{justifyContent:"flex-start"}});const P=e=>{let t=e.topics;return t&&t.length>0?o.a.createElement(v,null,o.a.createElement("nav",{"data-cy":"topic-tags"},o.a.createElement(h.a,{style:S.topicsContainer,topics:t}))):null};P.defaultProps={topics:null};var C=P;const k=x.a.div.withConfig({displayName:"responsive__ShareAndSaveContainer",componentId:"hqs3q1-0"})(["border-top-color:",";border-top-style:solid;border-top-width:1px;width:56.2%;margin:0 auto;@media (max-width:","px){display:none;}",";"],O.colours.functional.keyline,O.breakpoints.huge,e=>e.showBottomBorder&&"border-bottom-color: ".concat(O.colours.functional.keyline,";\n border-bottom-style: solid;\n border-bottom-width: 1px;")),q=x.a.div.withConfig({displayName:"responsive__BreadcrumbContainer",componentId:"hqs3q1-1"})(["display:flex;justify-content:center;margin:0 auto;padding-bottom:8px;",";@media (min-width:","px){width:80.8%;}@media (min-width:","px){width:56.2%;}"],e=>e.$border?"\n border-bottom-color: ".concat(O.colours.functional.keyline,";\n border-bottom-style: solid;\n border-bottom-width: 1px;\n "):"",O.breakpoints.medium,O.breakpoints.wide);function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){B(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function B(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const I=x.a.div.withConfig({displayName:"styles__NativeAd",componentId:"sc-1ul3b7n-0"})(["clear:both;display:flex;flex-wrap:wrap;margin:0 auto 30px;width:80.8%;min-height:210px;@media (min-width:768px){min-height:120px;}@media (min-width:","px){width:56.2%;}&.hidden{visibility:hidden;}"],O.breakpoints.wide),N=x.a.h2.withConfig({displayName:"styles__NativeAdTitle",componentId:"sc-1ul3b7n-1"})(["border-bottom:1px solid #dbdbdb;color:#333;flex:1 1 100%;font:normal ","px / 17px ",";margin-bottom:10px;padding:5px 0;text-transform:uppercase;"],O.fontSizes.teaser,O.fontsWithFallback.bodyRegular),T=x.a.div.withConfig({displayName:"styles__Ad",componentId:"sc-1ul3b7n-2"})(["flex:1 1 50%;@media (max-width:767px){flex:1 1 46%;&:first-of-type{margin-right:1.5%;}&:last-child{margin-left:1.5%;}}"]);A(A({},Object(O.fontFactory)({font:"supporting",fontSize:"tertiary"})),{},{color:O.colours.functional.secondary,maxWidth:330,textAlign:"center"}),Object(O.spacing)(0),Object(O.spacing)(5),O.colours.functional.keyline,Object(O.spacing)(10),A(A({color:O.colours.functional.primary},Object(O.fontFactory)({font:"headline",fontSize:"commentsHeadline"})),{},{maxWidth:315,paddingBottom:Object(O.spacing)(2),paddingTop:Object(O.spacing)(6),textAlign:"center"}),O.tabletWidth;const D={clear:"both"},M=e=>{let t=e.analyticsStream,n=e.articleId,r=e.commentsEnabled,i=e.registerNode,c=e.savingEnabled,s=e.sharingEnabled,u=e.articleUrl,g=e.section,h=e.articleHeadline,y=e.relatedArticleSlice,w=e.relatedArticlesVisible,x=e.commentingConfig,O=e.topics,v=e.isSharingSavingEnabled,j=e.isCommentEnabled,E=e.storefrontConfig,S=e.breadcrumbs,P=e.domainSpecificUrl;const
|
|
1
|
+
module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=13)}([function(e,t){e.exports=require("@times-components/ts-styleguide/rnw")},function(e,t){e.exports=require("react")},function(e,t){e.exports=require("styled-components")},function(e,t){e.exports=require("@times-components/user-state/rnw")},function(e,t){e.exports=require("prop-types")},function(e,t){e.exports=require("@times-components/article-comments/rnw")},function(e,t){e.exports=require("@times-components/related-articles/rnw")},function(e,t){e.exports=require("@times-components/message-bar/rnw")},function(e,t){e.exports=require("@times-components/save-and-share-bar/rnw")},function(e,t){e.exports=require("@times-components/ts-components/rnw")},function(e,t){e.exports=require("@times-components/ts-newskit/rnw")},function(e,t){e.exports=require("@times-components/article-topics/rnw")},function(e,t){e.exports=require("@times-components/utils/rnw")},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n.n(r),i=(n(4),n(3)),a=n.n(i),c=n(5),l=n.n(c),s=n(6),d=n.n(s),p=n(7),u=n(8),m=n.n(u),b=n(9),f=n(10),g=n(11),h=n.n(g),y=n(12),w=n(2),x=n.n(w),O=n(0),v=x()(y.TcView).withConfig({displayName:"responsive",componentId:"rerzrc-0"})(["padding-left:",";padding-right:",";@media (min-width:","px){width:80.8%;margin:0 auto;padding-left:0;padding-right:0;}@media (min-width:","px){width:56.2%;}"],Object(O.spacing)(2),Object(O.spacing)(2),O.breakpoints.medium,O.breakpoints.wide);function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){E(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},{topicsContainer:{borderTopColor:O.colours.functional.keyline,borderTopWidth:1},topicsContainerTablet:{alignSelf:"center",width:O.tabletWidth},topicsMetaContainer:{justifyContent:"flex-start"}});const P=e=>{let t=e.topics;return t&&t.length>0?o.a.createElement(v,null,o.a.createElement("nav",{"data-cy":"topic-tags"},o.a.createElement(h.a,{style:S.topicsContainer,topics:t}))):null};P.defaultProps={topics:null};var C=P;const k=x.a.div.withConfig({displayName:"responsive__ShareAndSaveContainer",componentId:"hqs3q1-0"})(["border-top-color:",";border-top-style:solid;border-top-width:1px;width:56.2%;margin:0 auto;@media (max-width:","px){display:none;}",";"],O.colours.functional.keyline,O.breakpoints.huge,e=>e.showBottomBorder&&"border-bottom-color: ".concat(O.colours.functional.keyline,";\n border-bottom-style: solid;\n border-bottom-width: 1px;")),q=x.a.div.withConfig({displayName:"responsive__BreadcrumbContainer",componentId:"hqs3q1-1"})(["display:flex;justify-content:center;margin:0 auto;padding-bottom:8px;",";@media (min-width:","px){width:80.8%;}@media (min-width:","px){width:56.2%;}"],e=>e.$border?"\n border-bottom-color: ".concat(O.colours.functional.keyline,";\n border-bottom-style: solid;\n border-bottom-width: 1px;\n "):"",O.breakpoints.medium,O.breakpoints.wide);function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){B(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function B(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const I=x.a.div.withConfig({displayName:"styles__NativeAd",componentId:"sc-1ul3b7n-0"})(["clear:both;display:flex;flex-wrap:wrap;margin:0 auto 30px;width:80.8%;min-height:210px;@media (min-width:768px){min-height:120px;}@media (min-width:","px){width:56.2%;}&.hidden{visibility:hidden;}"],O.breakpoints.wide),N=x.a.h2.withConfig({displayName:"styles__NativeAdTitle",componentId:"sc-1ul3b7n-1"})(["border-bottom:1px solid #dbdbdb;color:#333;flex:1 1 100%;font:normal ","px / 17px ",";margin-bottom:10px;padding:5px 0;text-transform:uppercase;"],O.fontSizes.teaser,O.fontsWithFallback.bodyRegular),T=x.a.div.withConfig({displayName:"styles__Ad",componentId:"sc-1ul3b7n-2"})(["flex:1 1 50%;@media (max-width:767px){flex:1 1 46%;&:first-of-type{margin-right:1.5%;}&:last-child{margin-left:1.5%;}}"]);A(A({},Object(O.fontFactory)({font:"supporting",fontSize:"tertiary"})),{},{color:O.colours.functional.secondary,maxWidth:330,textAlign:"center"}),Object(O.spacing)(0),Object(O.spacing)(5),O.colours.functional.keyline,Object(O.spacing)(10),A(A({color:O.colours.functional.primary},Object(O.fontFactory)({font:"headline",fontSize:"commentsHeadline"})),{},{maxWidth:315,paddingBottom:Object(O.spacing)(2),paddingTop:Object(O.spacing)(6),textAlign:"center"}),O.tabletWidth;const D={clear:"both"},M=e=>{let t=e.analyticsStream,n=e.articleId,r=e.commentsEnabled,i=e.registerNode,c=e.savingEnabled,s=e.sharingEnabled,u=e.articleUrl,g=e.section,h=e.articleHeadline,y=e.relatedArticleSlice,w=e.relatedArticlesVisible,x=e.commentingConfig,O=e.topics,v=e.isSharingSavingEnabled,j=e.isCommentEnabled,E=e.storefrontConfig,S=e.breadcrumbs,P=e.domainSpecificUrl,_=e.isEntitlementFeatureEnabled;const A=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{showBorder:!1},t=e.showBorder;return S&&S.length>0?o.a.createElement(q,{$border:t},o.a.createElement(f.Breadcrumb,{data:S})):null},B=(e,r)=>o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{id:"related-articles",ref:e=>i(e)},r&&A({showBorder:!1}),o.a.createElement(d.a,{analyticsStream:t,isVisible:w,slice:y}),e&&o.a.createElement(b.RecommendedFetch,{articleId:n,articleHeadline:h,articleSection:g})),o.a.createElement(I,{className:"group-3 hidden",key:"1"},o.a.createElement(N,null,"Sponsored"),o.a.createElement(T,{id:"advert-inarticle-native-1","data-parent":"group-3"}),o.a.createElement(T,{id:"advert-inarticle-native-2","data-parent":"group-3"})));return o.a.createElement(a.a,{state:a.a.showArticleExtras,fallback:B(!1,!0)},o.a.createElement("div",{style:D}),A({showBorder:O&&O.length>0}),o.a.createElement(C,{topics:O}),v&&o.a.createElement(a.a,{state:a.a.showSaveAndShareBar},o.a.createElement(p.MessageContext.Consumer,null,e=>{let t=e.showMessage;return o.a.createElement(k,{showBottomBorder:!y},o.a.createElement(m.a,{articleId:n,articleHeadline:h,articleUrl:u,onCopyLink:()=>t("Article link copied"),onSaveToMyArticles:()=>{},onShareOnEmail:()=>{},savingEnabled:c,sharingEnabled:s}))})),B(!0,!1),o.a.createElement(l.a,{articleId:n,isEnabled:r,commentingConfig:x,isCommentEnabled:j,storefrontConfig:E,domainSpecificUrl:P,isEntitlementFeatureEnabled:_}))};M.defaultProps={relatedArticleSlice:null,topics:null,isSharingSavingEnabled:!0,isCommentEnabled:!0,breadcrumbs:[]};var F=M;t.default=F}]);
|