@financial-times/cp-content-pipeline-ui 9.9.0 → 9.11.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 +31 -0
- package/lib/components/Topper/{Columnist.d.ts → Columnists.d.ts} +3 -3
- package/lib/components/Topper/Columnists.js +22 -0
- package/lib/components/Topper/Columnists.js.map +1 -0
- package/lib/components/Topper/Tags.d.ts +1 -1
- package/lib/components/Topper/Tags.js +2 -2
- package/lib/components/Topper/Tags.js.map +1 -1
- package/lib/components/Topper/index.js +17 -8
- package/lib/components/Topper/index.js.map +1 -1
- package/lib/components/content-tree/Clip/components/ClipTag.d.ts +1 -0
- package/lib/components/content-tree/Clip/components/ClipTag.js +32 -3
- package/lib/components/content-tree/Clip/components/ClipTag.js.map +1 -1
- package/lib/components/content-tree/Clip/template/component.d.ts +1 -0
- package/lib/components/content-tree/Clip/template/component.js +3 -3
- package/lib/components/content-tree/Clip/template/component.js.map +1 -1
- package/lib/components/content-tree/Workarounds.d.ts +3 -0
- package/package.json +4 -4
- package/src/components/Topper/Columnists.tsx +50 -0
- package/src/components/Topper/Tags.tsx +3 -3
- package/src/components/Topper/index.tsx +21 -10
- package/src/components/content-tree/Clip/components/ClipTag.tsx +58 -11
- package/src/components/content-tree/Clip/template/component.tsx +4 -0
- package/src/components/content-tree/Workarounds.ts +3 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/lib/components/Topper/Columnist.js +0 -18
- package/lib/components/Topper/Columnist.js.map +0 -1
- package/src/components/Topper/Columnist.tsx +0 -40
|
@@ -8,6 +8,7 @@ type Preset = 'full-player' | 'thumbnail'
|
|
|
8
8
|
export interface ClipProps extends ContentProps<ComponentWorkarounds.ClipSet> {
|
|
9
9
|
preload?: string
|
|
10
10
|
preset?: Preset
|
|
11
|
+
maxClipWidth?: number
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
export interface ClipPropsOld {
|
|
@@ -34,6 +35,7 @@ const ClipComponent: React.FC<ClipProps> = ({
|
|
|
34
35
|
content,
|
|
35
36
|
preset = 'full-player',
|
|
36
37
|
preload = 'auto',
|
|
38
|
+
maxClipWidth = 0,
|
|
37
39
|
}) => {
|
|
38
40
|
let poster = 'poster' in content ? content.poster : ''
|
|
39
41
|
let id: string
|
|
@@ -82,6 +84,7 @@ const ClipComponent: React.FC<ClipProps> = ({
|
|
|
82
84
|
noDescription
|
|
83
85
|
noInfoBox
|
|
84
86
|
systemTitle={systemTitle}
|
|
87
|
+
maxClipWidth={maxClipWidth}
|
|
85
88
|
/>
|
|
86
89
|
)
|
|
87
90
|
}
|
|
@@ -105,6 +108,7 @@ const ClipComponent: React.FC<ClipProps> = ({
|
|
|
105
108
|
accessibility={accessibility}
|
|
106
109
|
preload={preload}
|
|
107
110
|
dataTrackable="next-article-cp-clip"
|
|
111
|
+
maxClipWidth={maxClipWidth}
|
|
108
112
|
/>
|
|
109
113
|
</Container>
|
|
110
114
|
</ContentLayout>
|