@financial-times/cp-content-pipeline-ui 6.7.0 → 6.8.0
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 +38 -0
- package/lib/components/Clip/client/progressBar.js +2 -10
- package/lib/components/Clip/client/progressBar.js.map +1 -1
- package/lib/components/Clip/components/Container.js +2 -2
- package/lib/components/Clip/components/Container.js.map +1 -1
- package/lib/components/Clip/template/index.js +1 -0
- package/lib/components/Clip/template/index.js.map +1 -1
- package/lib/components/ImageSet/index.js +1 -1
- package/lib/components/ImageSet/index.js.map +1 -1
- package/lib/components/LiveBlogPost/index.js +21 -9
- package/lib/components/LiveBlogPost/index.js.map +1 -1
- package/lib/components/LiveBlogWrapper/index.js +1 -1
- package/lib/components/LiveBlogWrapper/index.js.map +1 -1
- package/lib/components/PartnerContentHeader/index.d.ts +5 -0
- package/lib/components/PartnerContentHeader/index.js +14 -0
- package/lib/components/PartnerContentHeader/index.js.map +1 -0
- package/lib/components/Recommended/index.js +1 -1
- package/lib/components/Recommended/index.js.map +1 -1
- package/lib/components/RichText/index.d.ts +1 -1
- package/lib/components/Table/index.js +1 -1
- package/lib/components/Table/index.js.map +1 -1
- package/lib/components/Topper/index.js +51 -24
- package/lib/components/Topper/index.js.map +1 -1
- package/lib/components/Video/index.js +1 -1
- package/lib/components/Video/index.js.map +1 -1
- package/lib/components/YoutubeVideo/index.js +1 -1
- package/lib/components/YoutubeVideo/index.js.map +1 -1
- package/lib/stories/Clip.stories.d.ts +1 -2
- package/lib/stories/Clip.stories.js +5 -5
- package/lib/stories/Clip.stories.js.map +1 -1
- package/package.json +5 -2
- package/src/components/Clip/client/main.scss +2 -2
- package/src/components/Clip/client/progressBar.scss +8 -14
- package/src/components/Clip/client/progressBar.ts +2 -8
- package/src/components/Clip/components/Container.tsx +3 -10
- package/src/components/Clip/template/index.ts +1 -0
- package/src/components/Clip/test/__snapshots__/snapshot.spec.tsx.snap +8 -8
- package/src/components/ImageSet/index.tsx +0 -1
- package/src/components/LiveBlogPost/index.tsx +42 -29
- package/src/components/LiveBlogWrapper/index.tsx +0 -1
- package/src/components/PartnerContentHeader/index.tsx +15 -0
- package/src/components/Recommended/index.tsx +0 -1
- package/src/components/Table/index.tsx +0 -1
- package/src/components/Topper/index.tsx +97 -91
- package/src/components/Video/index.tsx +1 -4
- package/src/components/YoutubeVideo/index.tsx +1 -4
- package/src/stories/Clip.stories.tsx +2 -3
- package/tsconfig.tsbuildinfo +1 -1
- package/lib/components/Expander/client/index.d.ts +0 -49
- package/lib/components/Expander/client/index.js +0 -124
- package/lib/components/Expander/client/index.js.map +0 -1
- package/lib/components/Expander/index.d.ts +0 -15
- package/lib/components/Expander/index.js +0 -27
- package/lib/components/Expander/index.js.map +0 -1
- package/lib/components/Expander/test/client/index.spec.d.ts +0 -1
- package/lib/components/Expander/test/client/index.spec.js +0 -103
- package/lib/components/Expander/test/client/index.spec.js.map +0 -1
- package/lib/components/Expander/test/index.spec.d.ts +0 -1
- package/lib/components/Expander/test/index.spec.js +0 -57
- package/lib/components/Expander/test/index.spec.js.map +0 -1
- package/lib/components/Expander/test/snapshot.spec.d.ts +0 -1
- package/lib/components/Expander/test/snapshot.spec.js +0 -63
- package/lib/components/Expander/test/snapshot.spec.js.map +0 -1
- package/lib/components/LiveBlogPost/client/index.d.ts +0 -5
- package/lib/components/LiveBlogPost/client/index.js +0 -12
- package/lib/components/LiveBlogPost/client/index.js.map +0 -1
- package/lib/stories/Expander.stories.d.ts +0 -54
- package/lib/stories/Expander.stories.js +0 -142
- package/lib/stories/Expander.stories.js.map +0 -1
- package/src/components/Expander/client/index.ts +0 -197
- package/src/components/Expander/client/main.scss +0 -162
- package/src/components/Expander/index.tsx +0 -74
- package/src/components/Expander/test/__snapshots__/snapshot.spec.tsx.snap +0 -225
- package/src/components/Expander/test/client/index.spec.tsx +0 -129
- package/src/components/Expander/test/index.spec.tsx +0 -77
- package/src/components/Expander/test/snapshot.spec.tsx +0 -73
- package/src/components/LiveBlogPost/client/index.ts +0 -9
- package/src/stories/Expander.stories.scss +0 -3
- package/src/stories/Expander.stories.tsx +0 -159
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Clip.stories.js","sourceRoot":"","sources":["../../src/stories/Clip.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"Clip.stories.js","sourceRoot":"","sources":["../../src/stories/Clip.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAmD;AACnD,4EAAwD;AACxD,+BAA4B;AAC5B,uEAAkD;AAClD,sFAA6E;AAE7E,qGAAqG;AACrG,kBAAe;IACb,KAAK,EAAE,MAAM;IACb,SAAS,EAAE,mBAAU;IACrB,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,QAAQ,EAAE;QACR,UAAU,EAAE;YACV,OAAO,EAAE,CAAC,SAAS,EAAE,WAAW,EAAE,UAAU,CAAC;YAC7C,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;SAC3B;KACF;CACF,CAAA;AAMD,MAAM,cAAc,GAAkC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IACrE,OAAO,CACL,2CACE,EAAE,EAAC,cAAc,EACjB,IAAI,EAAC,MAAM,EACX,SAAS,EAAC,4DAA4D,uBACpD,wBAAwB;QAE1C,uCACE,SAAS,EAAC,kBAAkB,oBACb,cAAc,oBACd,cAAc,EAC7B,KAAK,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE;YAE/B,uCACE,SAAS,EAAC,+DAA+D,oBAC1D,sBAAsB;gBAErC,ipBAWI;gBACJ,ipBAWI;gBACJ,ipBAWI;gBACJ,ipBAWI;gBACH,QAAQ;gBACT,ipBAWI;gBACJ,ipBAWI;gBACJ,ipBAWI;gBACJ,ipBAWI;gBACJ,ipBAWI;gBACJ,ipBAWI,CACA,CACF;QACN,uCAAK,SA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AED,8FAA8F;AAC9F,qBAAa,CAAC,IAAI,GAAG;IACnB,aAAa,EAAE;QACb,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,IAAI;KACjB;IACD,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE;QACL;YACE,UAAU,EAAE;gBACV;oBACE,UAAU,EAAE,KAAK;oBACjB,SAAS,EACP,oFAAoF;oBACtF,QAAQ,EAAE,MAAM;oBAChB,SAAS,EAAE,WAAW;oBACtB,WAAW,EAAE,IAAI;oBACjB,UAAU,EAAE,IAAI;oBAChB,UAAU,EAAE,MAAM;iBACnB;aACF;YACD,EAAE,EAAE,UAAU;YACd,MAAM,EACJ,wGAAwG;SAC3G;KACF;IACD,UAAU,EAAE,EAAE;IACd,EAAE,EAAE,sCAAsC;IAC1C,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,IAAI;IACX,OAAO,EAAE,IAAI;IACb,MAAM,EACJ,wGAAwG;IAC1G,aAAa,EAAE,0BAA0B;IACzC,IAAI,EAAE,UAAU;CACjB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@financial-times/cp-content-pipeline-ui",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.8.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -17,6 +17,9 @@
|
|
|
17
17
|
"@babel/preset-react": "^7.22.5",
|
|
18
18
|
"@dotcom-tool-kit/npm": "^3.1.4",
|
|
19
19
|
"@financial-times/content-tree": "github:financial-times/content-tree#14370e3",
|
|
20
|
+
"@financial-times/cp-content-pipeline-client": "^3.8.0",
|
|
21
|
+
"@financial-times/cp-content-pipeline-schema": "^2.11.0",
|
|
22
|
+
"@financial-times/cp-content-pipeline-styles": "^2.5.1",
|
|
20
23
|
"@financial-times/n-scrollytelling-image": "^1.1.0",
|
|
21
24
|
"@financial-times/o-colors": "^6.6.2",
|
|
22
25
|
"@financial-times/o-grid": "^6.1.5",
|
|
@@ -58,7 +61,7 @@
|
|
|
58
61
|
"@financial-times/o-loading": "^5.2.3",
|
|
59
62
|
"@financial-times/o-teaser": "^6.2.2",
|
|
60
63
|
"@financial-times/x-teaser": "^14.6.5",
|
|
61
|
-
"classnames": "^2.
|
|
64
|
+
"classnames": "^2.3.1"
|
|
62
65
|
},
|
|
63
66
|
"peerDependencies": {
|
|
64
67
|
"@financial-times/x-interaction": ">=14",
|
|
@@ -57,10 +57,10 @@
|
|
|
57
57
|
position: absolute;
|
|
58
58
|
justify-content: space-between;
|
|
59
59
|
align-items: flex-end;
|
|
60
|
-
padding: oSpacingByName('s1') oSpacingByName('s2') oSpacingByName('
|
|
60
|
+
padding: oSpacingByName('s1') oSpacingByName('s2') oSpacingByName('s6') oSpacingByName('s2');
|
|
61
61
|
box-sizing: border-box;
|
|
62
62
|
@include oGridRespondTo($from: L) {
|
|
63
|
-
padding: oSpacingByName('s1') oSpacingByName('s6') oSpacingByName('
|
|
63
|
+
padding: oSpacingByName('s1') oSpacingByName('s6') oSpacingByName('s6') oSpacingByName('s6')
|
|
64
64
|
}
|
|
65
65
|
background: linear-gradient(0deg, rgba(0, 0, 0, 0.3) 38.38%, rgba(153, 153, 153, 0) 100%);
|
|
66
66
|
|
|
@@ -24,22 +24,23 @@
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
&.cp-clip__progress-enlarged {
|
|
27
|
-
height: 8px;
|
|
27
|
+
$progress-enlarged-height: 8px;
|
|
28
|
+
height: $progress-enlarged-height;
|
|
28
29
|
margin-top: -4px;
|
|
29
30
|
|
|
30
31
|
.cp-clip__progress-cursor {
|
|
31
|
-
transform: translate(-
|
|
32
|
+
transform: translate(-50%, calc(-50% - $progress-enlarged-height / 2));
|
|
32
33
|
width: 18px;
|
|
33
34
|
border-radius: 50%;
|
|
34
35
|
height: 18px;
|
|
35
|
-
display:
|
|
36
|
+
display: block;
|
|
36
37
|
position: absolute;
|
|
37
|
-
|
|
38
38
|
}
|
|
39
39
|
.cp-clip__progress-time {
|
|
40
40
|
$progress-time-left-offset: -12px;
|
|
41
|
-
$progress-time-height-offset: -
|
|
42
|
-
display:
|
|
41
|
+
$progress-time-height-offset: -22px;
|
|
42
|
+
display: block;
|
|
43
|
+
position: absolute;
|
|
43
44
|
transform: translate($progress-time-left-offset, calc($progress-time-height-offset - 2px));
|
|
44
45
|
color: oColorsByName('white');
|
|
45
46
|
font-size: 14px;
|
|
@@ -47,18 +48,11 @@
|
|
|
47
48
|
@include oGridRespondTo(L) {
|
|
48
49
|
transform: translate($progress-time-left-offset, $progress-time-height-offset);
|
|
49
50
|
}
|
|
50
|
-
&.cp-clip__time-text-fixed-left {
|
|
51
|
-
left: calc(10% - 20px);
|
|
52
|
-
}
|
|
53
|
-
&.cp-clip__time-text-fixed-right {
|
|
54
|
-
right: calc(10% - 15px);
|
|
55
|
-
}
|
|
56
51
|
}
|
|
57
52
|
}
|
|
58
53
|
div {
|
|
59
54
|
background-color: oColorsByName('teal-70');
|
|
60
55
|
height: 100%;
|
|
61
|
-
float: left;
|
|
62
56
|
}
|
|
63
57
|
.cp-clip__progress-ended {
|
|
64
58
|
.cp-clip__progress-cursor,
|
|
@@ -74,7 +68,7 @@
|
|
|
74
68
|
}
|
|
75
69
|
.cp-clip__progress-bar {
|
|
76
70
|
padding: 0px;
|
|
77
|
-
|
|
71
|
+
width: 0%; // render 0 progress by default
|
|
78
72
|
}
|
|
79
73
|
}
|
|
80
74
|
}
|
|
@@ -156,6 +156,8 @@ class ProgressBar {
|
|
|
156
156
|
? `width ${durationAnimation}ms linear`
|
|
157
157
|
: 'none'
|
|
158
158
|
this.progressBar.style.width = `${progress}%`
|
|
159
|
+
this.cursor.style.left = `${progress}%`
|
|
160
|
+
this.timeText.style.left = `clamp(5%, ${progress}%, 95%)`
|
|
159
161
|
const timeFromProgress = !animation
|
|
160
162
|
this.updateTimeText(progress, timeFromProgress)
|
|
161
163
|
}
|
|
@@ -222,14 +224,6 @@ class ProgressBar {
|
|
|
222
224
|
if (timeFormatted !== this.timeText.textContent) {
|
|
223
225
|
this.timeText.textContent = timeFormatted
|
|
224
226
|
}
|
|
225
|
-
if (progress < 10) {
|
|
226
|
-
this.timeText.classList.add('cp-clip__time-text-fixed-left')
|
|
227
|
-
} else if (progress > 90) {
|
|
228
|
-
this.timeText.classList.add('cp-clip__time-text-fixed-right')
|
|
229
|
-
} else {
|
|
230
|
-
this.timeText.classList.remove('cp-clip__time-text-fixed-right')
|
|
231
|
-
this.timeText.classList.remove('cp-clip__time-text-fixed-left')
|
|
232
|
-
}
|
|
233
227
|
}
|
|
234
228
|
|
|
235
229
|
windowMouseMoveListener(e: MouseEvent) {
|
|
@@ -7,11 +7,9 @@ interface ContainerProps {
|
|
|
7
7
|
|
|
8
8
|
export const Container = ({ dataLayout, children }: ContainerProps) => {
|
|
9
9
|
return dataLayout === 'full-grid' ? (
|
|
10
|
-
<div className="n-content-layout__container"
|
|
11
|
-
{children}
|
|
12
|
-
</div>
|
|
10
|
+
<div className="n-content-layout__container">{children}</div>
|
|
13
11
|
) : dataLayout === 'mid-grid' ? (
|
|
14
|
-
<div className="n-content-layout__container"
|
|
12
|
+
<div className="n-content-layout__container">
|
|
15
13
|
<div
|
|
16
14
|
data-o-grid-colspan="12 S12 M12 L10 XL10"
|
|
17
15
|
className="n-content-layout__container--mid-grid"
|
|
@@ -20,11 +18,6 @@ export const Container = ({ dataLayout, children }: ContainerProps) => {
|
|
|
20
18
|
</div>
|
|
21
19
|
</div>
|
|
22
20
|
) : (
|
|
23
|
-
<div
|
|
24
|
-
className="n-content-layout__container--in-line"
|
|
25
|
-
data-component="clip-set"
|
|
26
|
-
>
|
|
27
|
-
{children}
|
|
28
|
-
</div>
|
|
21
|
+
<div className="n-content-layout__container--in-line">{children}</div>
|
|
29
22
|
)
|
|
30
23
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// This file will is used by next-es-interface and it renders the component as a string
|
|
2
|
+
/* eslint-disable import/no-unused-modules */
|
|
2
3
|
// TODO: Remove this file once next-es-interface and Elastic Search won't be used anymore to render articles (After r13n API will be used in Production by all the consumers: FT-App, next-article, FT Edit)
|
|
3
4
|
import React from 'react'
|
|
4
5
|
import ReactDOMServer from 'react-dom/server'
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`Clip Snapshot component rendered on server full-grid default render 1`] = `
|
|
4
4
|
"<div class=\\"n-content-layout\\" data-layout-width=\\"full-grid\\">
|
|
5
|
-
<div class=\\"n-content-layout__container\\"
|
|
5
|
+
<div class=\\"n-content-layout__container\\">
|
|
6
6
|
<div
|
|
7
7
|
data-cp-clip-layout=\\"full-grid\\"
|
|
8
8
|
data-cp-clip-poster=\\"\\"
|
|
@@ -64,7 +64,7 @@ exports[`Clip Snapshot component rendered on server full-grid default render 1`]
|
|
|
64
64
|
|
|
65
65
|
exports[`Clip Snapshot component rendered on server full-grid render with attributes 1`] = `
|
|
66
66
|
"<div class=\\"n-content-layout\\" data-layout-width=\\"full-grid\\">
|
|
67
|
-
<div class=\\"n-content-layout__container\\"
|
|
67
|
+
<div class=\\"n-content-layout__container\\">
|
|
68
68
|
<div
|
|
69
69
|
data-cp-clip-layout=\\"full-grid\\"
|
|
70
70
|
data-cp-clip-poster=\\"\\"
|
|
@@ -151,7 +151,7 @@ exports[`Clip Snapshot component rendered on server full-grid render with attrib
|
|
|
151
151
|
`;
|
|
152
152
|
|
|
153
153
|
exports[`Clip Snapshot component rendered on server in-line render 1`] = `
|
|
154
|
-
"<div class=\\"n-content-layout__container--in-line\\"
|
|
154
|
+
"<div class=\\"n-content-layout__container--in-line\\">
|
|
155
155
|
<div
|
|
156
156
|
data-cp-clip-layout=\\"in-line\\"
|
|
157
157
|
data-cp-clip-poster=\\"\\"
|
|
@@ -211,7 +211,7 @@ exports[`Clip Snapshot component rendered on server in-line render 1`] = `
|
|
|
211
211
|
`;
|
|
212
212
|
|
|
213
213
|
exports[`Clip Snapshot component rendered on server in-line render with attributes 1`] = `
|
|
214
|
-
"<div class=\\"n-content-layout__container--in-line\\"
|
|
214
|
+
"<div class=\\"n-content-layout__container--in-line\\">
|
|
215
215
|
<div
|
|
216
216
|
data-cp-clip-layout=\\"in-line\\"
|
|
217
217
|
data-cp-clip-poster=\\"\\"
|
|
@@ -298,7 +298,7 @@ exports[`Clip Snapshot component rendered on server in-line render with attribut
|
|
|
298
298
|
|
|
299
299
|
exports[`Clip Snapshot component rendered on server mid-grid default render 1`] = `
|
|
300
300
|
"<div class=\\"n-content-layout\\" data-layout-width=\\"full-grid\\">
|
|
301
|
-
<div class=\\"n-content-layout__container\\"
|
|
301
|
+
<div class=\\"n-content-layout__container\\">
|
|
302
302
|
<div
|
|
303
303
|
data-o-grid-colspan=\\"12 S12 M12 L10 XL10\\"
|
|
304
304
|
class=\\"n-content-layout__container--mid-grid\\"
|
|
@@ -365,7 +365,7 @@ exports[`Clip Snapshot component rendered on server mid-grid default render 1`]
|
|
|
365
365
|
|
|
366
366
|
exports[`Clip Snapshot component rendered on server mid-grid render with attributes 1`] = `
|
|
367
367
|
"<div class=\\"n-content-layout\\" data-layout-width=\\"full-grid\\">
|
|
368
|
-
<div class=\\"n-content-layout__container\\"
|
|
368
|
+
<div class=\\"n-content-layout__container\\">
|
|
369
369
|
<div
|
|
370
370
|
data-o-grid-colspan=\\"12 S12 M12 L10 XL10\\"
|
|
371
371
|
class=\\"n-content-layout__container--mid-grid\\"
|
|
@@ -463,7 +463,7 @@ exports[`Clip Snapshot component rendered on server mid-grid render with attribu
|
|
|
463
463
|
`;
|
|
464
464
|
|
|
465
465
|
exports[`Clip Snapshot component rendered on server renders multiple video sources 1`] = `
|
|
466
|
-
"<div class=\\"n-content-layout__container--in-line\\"
|
|
466
|
+
"<div class=\\"n-content-layout__container--in-line\\">
|
|
467
467
|
<div
|
|
468
468
|
data-cp-clip-layout=\\"in-line\\"
|
|
469
469
|
data-cp-clip-poster=\\"https://whatever/1080x1920.jpg\\"
|
|
@@ -561,7 +561,7 @@ exports[`Clip Snapshot component rendered on server renders multiple video sourc
|
|
|
561
561
|
|
|
562
562
|
exports[`Clip Snapshot component rendered on server supports new Origami images, fallbacking to the previous implementation 1`] = `
|
|
563
563
|
"<div class=\\"n-content-layout\\" data-layout-width=\\"full-grid\\">
|
|
564
|
-
<div class=\\"n-content-layout__container\\"
|
|
564
|
+
<div class=\\"n-content-layout__container\\">
|
|
565
565
|
<div
|
|
566
566
|
data-cp-clip-layout=\\"full-grid\\"
|
|
567
567
|
data-cp-clip-poster=\\"\\"
|
|
@@ -2,13 +2,10 @@ import React from 'react'
|
|
|
2
2
|
import ShareButtons from './ShareButtons'
|
|
3
3
|
import Timestamp from './Timestamp'
|
|
4
4
|
import RichText from '../RichText'
|
|
5
|
-
import Expander from '../Expander'
|
|
6
5
|
import classnames from 'classnames'
|
|
7
6
|
import Headshot from '../Headshot'
|
|
8
7
|
import Byline from '../Byline'
|
|
9
8
|
import { StructuredTreeFragment } from '@financial-times/cp-content-pipeline-client'
|
|
10
|
-
import parse from 'html-react-parser'
|
|
11
|
-
|
|
12
9
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
13
10
|
//TODO: CI-1975 remove "any" types
|
|
14
11
|
// this has been ported from x-dash, and a lot of what is expected into these arguments will take a lot of digging
|
|
@@ -17,26 +14,6 @@ type indicators = {
|
|
|
17
14
|
isOpinion?: boolean
|
|
18
15
|
}
|
|
19
16
|
|
|
20
|
-
const TruncatedPost = ({ id, children }: { id: string; children: any }) => {
|
|
21
|
-
return (
|
|
22
|
-
<div
|
|
23
|
-
data-trackable="truncated-post"
|
|
24
|
-
data-trackable-context-post={id}
|
|
25
|
-
data-trackable-category="live-blog"
|
|
26
|
-
className="x-live-blog-post__body n-content-body article--body"
|
|
27
|
-
>
|
|
28
|
-
<Expander
|
|
29
|
-
expandLabel="Expand post"
|
|
30
|
-
collapseLabel="Collapse post"
|
|
31
|
-
onlyMobile={true}
|
|
32
|
-
id={`truncated-${id}`}
|
|
33
|
-
>
|
|
34
|
-
{children}
|
|
35
|
-
</Expander>
|
|
36
|
-
</div>
|
|
37
|
-
)
|
|
38
|
-
}
|
|
39
|
-
|
|
40
17
|
export type LiveBlogPostProps = {
|
|
41
18
|
id: string
|
|
42
19
|
postId: string // Remove once wordpress is no longer in use
|
|
@@ -62,6 +39,23 @@ export type LiveBlogPostProps = {
|
|
|
62
39
|
authors: Array<any>
|
|
63
40
|
}
|
|
64
41
|
|
|
42
|
+
const truncatedSelector = () => {
|
|
43
|
+
const prefix = '.x-live-blog-post__body >'
|
|
44
|
+
const selectors = [
|
|
45
|
+
'p',
|
|
46
|
+
'blockquote',
|
|
47
|
+
'ul',
|
|
48
|
+
'.o-table-container',
|
|
49
|
+
'.n-content-recommended--single-story',
|
|
50
|
+
"[data-layout-name='card']",
|
|
51
|
+
'.n-content-big-number',
|
|
52
|
+
'hr',
|
|
53
|
+
'.n-content-tweet',
|
|
54
|
+
"[data-layout-name='timeline']",
|
|
55
|
+
]
|
|
56
|
+
return selectors.map((item) => `${prefix} ${item}`).join(',')
|
|
57
|
+
}
|
|
58
|
+
|
|
65
59
|
const LiveBlogPost = ({
|
|
66
60
|
id,
|
|
67
61
|
postId, // Remove once wordpress is no longer in use
|
|
@@ -88,15 +82,18 @@ const LiveBlogPost = ({
|
|
|
88
82
|
if (body && 'structured' in body) {
|
|
89
83
|
// Content comes from cp-content-pipeline-api
|
|
90
84
|
postBody = (
|
|
91
|
-
<
|
|
85
|
+
<div className="x-live-blog-post__body n-content-body article--body">
|
|
92
86
|
<RichText structuredContent={body.structured} />
|
|
93
|
-
</
|
|
87
|
+
</div>
|
|
94
88
|
)
|
|
95
89
|
} else {
|
|
96
|
-
const elements = parse(bodyHTML || content)
|
|
97
|
-
|
|
98
90
|
// Content comes from next-es or wordpress
|
|
99
|
-
postBody =
|
|
91
|
+
postBody = (
|
|
92
|
+
<div
|
|
93
|
+
className="x-live-blog-post__body n-content-body article--body"
|
|
94
|
+
dangerouslySetInnerHTML={{ __html: bodyHTML || content }}
|
|
95
|
+
/>
|
|
96
|
+
)
|
|
100
97
|
}
|
|
101
98
|
|
|
102
99
|
const author = authors?.[0] ?? null
|
|
@@ -158,7 +155,23 @@ const LiveBlogPost = ({
|
|
|
158
155
|
<div className="x-live-blog-post__breaking-news">Breaking news</div>
|
|
159
156
|
)}
|
|
160
157
|
{title && <h2 className="x-live-blog-post__title">{title}</h2>}
|
|
161
|
-
{
|
|
158
|
+
{isPinned ? (
|
|
159
|
+
<div
|
|
160
|
+
data-o-component="o-expander"
|
|
161
|
+
className="o-expander"
|
|
162
|
+
data-o-expander-shrink-to="1"
|
|
163
|
+
data-o-expander-item-selector={truncatedSelector()}
|
|
164
|
+
data-o-expander-collapsed-toggle-text={'Expand post'}
|
|
165
|
+
data-o-expander-expanded-toggle-text={'Collapse post'}
|
|
166
|
+
>
|
|
167
|
+
<div className="o-expander__content">{postBody}</div>
|
|
168
|
+
<a className="o-expander__toggle o-expander__text--custom">
|
|
169
|
+
<span className="o-expander__visually-hidden"> </span>
|
|
170
|
+
</a>
|
|
171
|
+
</div>
|
|
172
|
+
) : (
|
|
173
|
+
postBody
|
|
174
|
+
)}
|
|
162
175
|
<div className="x-live-blog-post__controls">
|
|
163
176
|
{showShareButtons && (
|
|
164
177
|
<ShareButtons
|
|
@@ -193,7 +193,6 @@ class BaseLiveBlogWrapper extends Component<LiveBlogWrapperTypes, stateTypes> {
|
|
|
193
193
|
className="x-live-blog-wrapper"
|
|
194
194
|
data-live-blog-wrapper-id={id}
|
|
195
195
|
ref={liveBlogWrapperElementRef}
|
|
196
|
-
data-component="live-blog-wrapper"
|
|
197
196
|
>
|
|
198
197
|
{postElements}
|
|
199
198
|
</div>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
|
|
3
|
+
const PartnerContentHeader = ({ name }: { name: string }) => (
|
|
4
|
+
<div className="partner-content-header">
|
|
5
|
+
<div className="partner-content-header__content">
|
|
6
|
+
<div className="partner-content-header__client">{name}</div>
|
|
7
|
+
<div className="partner-content-header__title">
|
|
8
|
+
<p>Partner Content</p>
|
|
9
|
+
<button className="partner-content__title__button"></button>
|
|
10
|
+
</div>
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
13
|
+
)
|
|
14
|
+
|
|
15
|
+
export default PartnerContentHeader
|
|
@@ -25,7 +25,6 @@ export default function Recommended({
|
|
|
25
25
|
className={classnames('n-content-recommended--single-story', {
|
|
26
26
|
'n-content-recommended--inset': !isInLiveBlog,
|
|
27
27
|
})}
|
|
28
|
-
data-component="recommended"
|
|
29
28
|
>
|
|
30
29
|
{!isInLiveBlog && (
|
|
31
30
|
<p className="n-content-recommended__title">{heading}</p>
|