@financial-times/cp-content-pipeline-ui 6.15.6 → 7.0.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 +22 -0
- package/lib/components/BigNumber/index.d.ts +4 -1
- package/lib/components/BigNumber/index.js +1 -1
- package/lib/components/BigNumber/index.js.map +1 -1
- package/lib/components/Body/index.test.js +12 -1
- package/lib/components/Body/index.test.js.map +1 -1
- package/lib/components/Byline/index.js +2 -2
- package/lib/components/Byline/index.js.map +1 -1
- package/lib/components/Clip/components/ClipTag.d.ts +3 -3
- package/lib/components/Clip/components/ClipTag.js.map +1 -1
- package/lib/components/Clip/components/ClosedCaptions.d.ts +2 -2
- package/lib/components/Clip/components/VideoDescription.d.ts +2 -2
- package/lib/components/Clip/components/VideoDescription.js.map +1 -1
- package/lib/components/Clip/template/component.d.ts +9 -4
- package/lib/components/Clip/template/component.js +19 -14
- package/lib/components/Clip/template/component.js.map +1 -1
- package/lib/components/Clip/test/fixtures.js +114 -77
- package/lib/components/Clip/test/fixtures.js.map +1 -1
- package/lib/components/Clip/test/snapshot.spec.js +110 -61
- package/lib/components/Clip/test/snapshot.spec.js.map +1 -1
- package/lib/components/Flourish/index.d.ts +4 -12
- package/lib/components/Flourish/index.js +1 -1
- package/lib/components/Flourish/index.js.map +1 -1
- package/lib/components/Flourish/test/snapshot.spec.js +48 -6
- package/lib/components/Flourish/test/snapshot.spec.js.map +1 -1
- package/lib/components/Heading/index.d.ts +2 -1
- package/lib/components/Heading/index.js +2 -2
- package/lib/components/Heading/index.js.map +1 -1
- package/lib/components/ImageOverrideWrappers/index.d.ts +4 -0
- package/lib/components/ImageOverrideWrappers/index.js +44 -0
- package/lib/components/ImageOverrideWrappers/index.js.map +1 -0
- package/lib/components/ImageSet/index.d.ts +12 -8
- package/lib/components/ImageSet/index.js +13 -8
- package/lib/components/ImageSet/index.js.map +1 -1
- package/lib/components/Layout/index.d.ts +3 -13
- package/lib/components/Layout/index.js +1 -1
- package/lib/components/Layout/index.js.map +1 -1
- package/lib/components/MainImage/index.js +2 -2
- package/lib/components/MainImage/index.js.map +1 -1
- package/lib/components/Paragraph/index.d.ts +4 -1
- package/lib/components/Paragraph/index.js.map +1 -1
- package/lib/components/Pullquote/index.d.ts +4 -1
- package/lib/components/Pullquote/index.js +7 -6
- package/lib/components/Pullquote/index.js.map +1 -1
- package/lib/components/Recommended/index.d.ts +5 -8
- package/lib/components/Recommended/index.js +1 -6
- package/lib/components/Recommended/index.js.map +1 -1
- package/lib/components/RichText/BasicComponents.d.ts +12 -11
- package/lib/components/RichText/BasicComponents.js +2 -2
- package/lib/components/RichText/BasicComponents.js.map +1 -1
- package/lib/components/RichText/index.d.ts +10 -3
- package/lib/components/RichText/index.js +8 -2
- package/lib/components/RichText/index.js.map +1 -1
- package/lib/components/Scrollytelling/ScrollyImage.d.ts +6 -3
- package/lib/components/Scrollytelling/ScrollyImage.js +2 -2
- package/lib/components/Scrollytelling/ScrollyImage.js.map +1 -1
- package/lib/components/Scrollytelling/index.d.ts +14 -6
- package/lib/components/Scrollytelling/index.js +3 -3
- package/lib/components/Scrollytelling/index.js.map +1 -1
- package/lib/components/Table/TableBody.d.ts +4 -1
- package/lib/components/Table/TableBody.js +1 -1
- package/lib/components/Table/TableBody.js.map +1 -1
- package/lib/components/Table/TableCell.d.ts +4 -4
- package/lib/components/Table/TableCell.js +2 -2
- package/lib/components/Table/TableCell.js.map +1 -1
- package/lib/components/Table/index.d.ts +4 -1
- package/lib/components/Table/index.js +1 -1
- package/lib/components/Table/index.js.map +1 -1
- package/lib/components/Topper/Picture.d.ts +1 -1
- package/lib/components/Topper/Picture.js +6 -3
- package/lib/components/Topper/Picture.js.map +1 -1
- package/lib/components/Topper/index.js +7 -1
- package/lib/components/Topper/index.js.map +1 -1
- package/lib/components/Tweet/index.d.ts +5 -3
- package/lib/components/Tweet/index.js +1 -1
- package/lib/components/Tweet/index.js.map +1 -1
- package/lib/components/Video/index.d.ts +4 -2
- package/lib/components/Video/index.js +1 -1
- package/lib/components/Video/index.js.map +1 -1
- package/lib/components/Workarounds.d.ts +89 -0
- package/lib/components/Workarounds.js +3 -0
- package/lib/components/Workarounds.js.map +1 -0
- package/lib/components/YoutubeVideo/index.d.ts +5 -2
- package/lib/components/YoutubeVideo/index.js +1 -1
- package/lib/components/YoutubeVideo/index.js.map +1 -1
- package/lib/components/types.d.ts +5 -0
- package/lib/components/types.js +3 -0
- package/lib/components/types.js.map +1 -0
- package/lib/context.d.ts +14 -0
- package/lib/context.js +2 -1
- package/lib/context.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -1
- package/lib/index.js.map +1 -1
- package/lib/stories/Clip.stories.d.ts +39 -243
- package/lib/stories/Clip.stories.js +320 -307
- package/lib/stories/Clip.stories.js.map +1 -1
- package/package.json +2 -1
- package/src/components/BigNumber/index.tsx +6 -3
- package/src/components/Body/__snapshots__/index.test.tsx.snap +2 -1
- package/src/components/Body/index.test.tsx +12 -1
- package/src/components/Byline/index.tsx +9 -4
- package/src/components/Clip/components/ClipTag.tsx +3 -6
- package/src/components/Clip/components/ClosedCaptions.tsx +2 -2
- package/src/components/Clip/components/VideoDescription.tsx +2 -2
- package/src/components/Clip/template/component.tsx +39 -41
- package/src/components/Clip/test/__snapshots__/snapshot.spec.tsx.snap +4 -8
- package/src/components/Clip/test/fixtures.ts +127 -90
- package/src/components/Clip/test/snapshot.spec.tsx +123 -102
- package/src/components/Flourish/index.tsx +10 -21
- package/src/components/Flourish/test/snapshot.spec.tsx +48 -36
- package/src/components/Heading/index.tsx +6 -5
- package/src/components/ImageOverrideWrappers/index.tsx +34 -0
- package/src/components/ImageSet/index.tsx +75 -55
- package/src/components/Layout/index.tsx +6 -18
- package/src/components/MainImage/index.tsx +10 -8
- package/src/components/Paragraph/index.tsx +4 -1
- package/src/components/Pullquote/index.tsx +15 -8
- package/src/components/Recommended/index.tsx +11 -11
- package/src/components/RichText/BasicComponents.tsx +22 -20
- package/src/components/RichText/index.tsx +35 -12
- package/src/components/Scrollytelling/ScrollyImage.tsx +10 -7
- package/src/components/Scrollytelling/index.tsx +19 -9
- package/src/components/Table/TableBody.tsx +7 -3
- package/src/components/Table/TableCell.tsx +9 -7
- package/src/components/Table/index.tsx +12 -9
- package/src/components/Topper/Picture.tsx +17 -12
- package/src/components/Topper/index.tsx +7 -4
- package/src/components/Tweet/index.tsx +5 -3
- package/src/components/Video/index.tsx +4 -6
- package/src/components/Workarounds.ts +190 -0
- package/src/components/YoutubeVideo/index.tsx +5 -4
- package/src/components/types.ts +6 -0
- package/src/context.ts +22 -1
- package/src/index.ts +4 -1
- package/src/stories/Clip.stories.tsx +357 -341
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -38,9 +38,11 @@ exports.default = {
|
|
|
38
38
|
component: Clip_1.default,
|
|
39
39
|
tags: ['autodocs'],
|
|
40
40
|
argTypes: {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
content: {
|
|
42
|
+
dataLayout: {
|
|
43
|
+
options: ['in-line', 'full-grid', 'mid-grid'],
|
|
44
|
+
control: { type: 'radio' },
|
|
45
|
+
},
|
|
44
46
|
},
|
|
45
47
|
},
|
|
46
48
|
};
|
|
@@ -120,108 +122,109 @@ const ThumbnailClipStory = (args) => {
|
|
|
120
122
|
};
|
|
121
123
|
// More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args
|
|
122
124
|
exports.Inline.args = {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
__typename: 'Clip',
|
|
141
|
-
format: 'standard-inline',
|
|
142
|
-
dataSource: [
|
|
143
|
-
{
|
|
144
|
-
audioCodec: 'aac',
|
|
145
|
-
binaryUrl: 'https://spark-clips-prod.s3.eu-west-1.amazonaws.com/optimised-media-files/16984330352240/640x640.mp4',
|
|
146
|
-
duration: 26250,
|
|
147
|
-
mediaType: 'video/mp4',
|
|
148
|
-
pixelHeight: 640,
|
|
149
|
-
pixelWidth: 640,
|
|
150
|
-
videoCodec: 'h264',
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
audioCodec: 'aac',
|
|
154
|
-
binaryUrl: 'https://spark-clips-prod.s3.eu-west-1.amazonaws.com/optimised-media-files/16984330352240/1280x1280.mp4',
|
|
155
|
-
duration: 26250,
|
|
156
|
-
mediaType: 'video/mp4',
|
|
157
|
-
pixelHeight: 1080,
|
|
158
|
-
pixelWidth: 1080,
|
|
159
|
-
videoCodec: 'h264',
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
audioCodec: 'aac',
|
|
163
|
-
binaryUrl: 'https://spark-clips-prod.s3.eu-west-1.amazonaws.com/optimised-media-files/16984330352240/1920x1920.mp4',
|
|
164
|
-
duration: 26250,
|
|
165
|
-
mediaType: 'video/mp4',
|
|
166
|
-
pixelHeight: 1080,
|
|
167
|
-
pixelWidth: 1080,
|
|
168
|
-
videoCodec: 'h264',
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
audioCodec: 'mp3',
|
|
172
|
-
binaryUrl: 'https://spark-clips-prod.s3.eu-west-1.amazonaws.com/optimised-media-files/16984330352240/0x0.mp3',
|
|
173
|
-
duration: 26280,
|
|
174
|
-
mediaType: 'audio/mpeg',
|
|
175
|
-
pixelHeight: null,
|
|
176
|
-
pixelWidth: null,
|
|
177
|
-
videoCodec: null,
|
|
178
|
-
},
|
|
179
|
-
],
|
|
180
|
-
poster: 'https://www.ft.com/__origami/service/image/v2/images/raw/https%3A%2F%2Fspark-clips-prod.s3.eu-west-1.amazonaws.com%2Fposter-images%2F440be423-1483-4243-8cd7-22ef8d003e70?source=cp-content-pipeline&fit=scale-down&quality=highest&width=700&dpr=1',
|
|
181
|
-
},
|
|
182
|
-
],
|
|
183
|
-
accessibility: {
|
|
184
|
-
captions: [
|
|
125
|
+
content: {
|
|
126
|
+
type: 'clip-set',
|
|
127
|
+
autoplay: false,
|
|
128
|
+
loop: false,
|
|
129
|
+
muted: false,
|
|
130
|
+
dataLayout: 'in-line',
|
|
131
|
+
id: '16cd2e1c-5299-4f4c-be67-1620fd0bc396',
|
|
132
|
+
noAudio: null,
|
|
133
|
+
caption: 'Former US president Donald Trump speaks on airport tarmac after being booked at Fulton County jail',
|
|
134
|
+
credits: 'Reuters',
|
|
135
|
+
description: 'Former US president Donald Trump speaks on airport tarmac after being booked at Fulton County jail',
|
|
136
|
+
displayTitle: null,
|
|
137
|
+
contentWarning: [],
|
|
138
|
+
source: null,
|
|
139
|
+
subtitle: null,
|
|
140
|
+
publishedDate: '2023-10-30T10:54:19.210Z',
|
|
141
|
+
clips: [
|
|
185
142
|
{
|
|
186
|
-
|
|
187
|
-
|
|
143
|
+
format: 'standard-inline',
|
|
144
|
+
dataSource: [
|
|
145
|
+
{
|
|
146
|
+
audioCodec: 'aac',
|
|
147
|
+
binaryUrl: 'https://spark-clips-prod.s3.eu-west-1.amazonaws.com/optimised-media-files/16984330352240/640x640.mp4',
|
|
148
|
+
duration: 26250,
|
|
149
|
+
mediaType: 'video/mp4',
|
|
150
|
+
pixelHeight: 640,
|
|
151
|
+
pixelWidth: 640,
|
|
152
|
+
videoCodec: 'h264',
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
audioCodec: 'aac',
|
|
156
|
+
binaryUrl: 'https://spark-clips-prod.s3.eu-west-1.amazonaws.com/optimised-media-files/16984330352240/1280x1280.mp4',
|
|
157
|
+
duration: 26250,
|
|
158
|
+
mediaType: 'video/mp4',
|
|
159
|
+
pixelHeight: 1080,
|
|
160
|
+
pixelWidth: 1080,
|
|
161
|
+
videoCodec: 'h264',
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
audioCodec: 'aac',
|
|
165
|
+
binaryUrl: 'https://spark-clips-prod.s3.eu-west-1.amazonaws.com/optimised-media-files/16984330352240/1920x1920.mp4',
|
|
166
|
+
duration: 26250,
|
|
167
|
+
mediaType: 'video/mp4',
|
|
168
|
+
pixelHeight: 1080,
|
|
169
|
+
pixelWidth: 1080,
|
|
170
|
+
videoCodec: 'h264',
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
audioCodec: 'mp3',
|
|
174
|
+
binaryUrl: 'https://spark-clips-prod.s3.eu-west-1.amazonaws.com/optimised-media-files/16984330352240/0x0.mp3',
|
|
175
|
+
duration: 26280,
|
|
176
|
+
mediaType: 'audio/mpeg',
|
|
177
|
+
pixelHeight: null,
|
|
178
|
+
pixelWidth: null,
|
|
179
|
+
videoCodec: null,
|
|
180
|
+
},
|
|
181
|
+
],
|
|
182
|
+
poster: 'https://www.ft.com/__origami/service/image/v2/images/raw/https%3A%2F%2Fspark-clips-prod.s3.eu-west-1.amazonaws.com%2Fposter-images%2F440be423-1483-4243-8cd7-22ef8d003e70?source=cp-content-pipeline&fit=scale-down&quality=highest&width=700&dpr=1',
|
|
188
183
|
},
|
|
189
184
|
],
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
185
|
+
accessibility: {
|
|
186
|
+
captions: [
|
|
187
|
+
{
|
|
188
|
+
url: 'https://next-media-api.ft.com/clips/captions/32069811',
|
|
189
|
+
mediaType: 'text/vtt',
|
|
190
|
+
},
|
|
191
|
+
],
|
|
192
|
+
transcript: {
|
|
193
|
+
source: 'transcript',
|
|
194
|
+
structured: {
|
|
195
|
+
tree: {
|
|
196
|
+
type: 'body',
|
|
197
|
+
version: 1,
|
|
198
|
+
children: [
|
|
199
|
+
{
|
|
200
|
+
type: 'paragraph',
|
|
201
|
+
children: [
|
|
202
|
+
{
|
|
203
|
+
type: 'text',
|
|
204
|
+
value: "What has taken place here is a travesty of justice. We did nothing wrong. I did nothing wrong, and everybody knows it. I've never had such support, and that goes with the other ones, too. ",
|
|
205
|
+
},
|
|
206
|
+
],
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
type: 'paragraph',
|
|
210
|
+
children: [
|
|
211
|
+
{
|
|
212
|
+
type: 'text',
|
|
213
|
+
value: "What they're doing is election interference. They're trying to interfere with an election. There's never been anything like it in our country before. ",
|
|
214
|
+
},
|
|
215
|
+
],
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
type: 'paragraph',
|
|
219
|
+
children: [
|
|
220
|
+
{
|
|
221
|
+
type: 'text',
|
|
222
|
+
value: "This is their way of campaigning. And this is one instance, but you have three other instances. It's election interference. ",
|
|
223
|
+
},
|
|
224
|
+
],
|
|
225
|
+
},
|
|
226
|
+
],
|
|
227
|
+
},
|
|
225
228
|
},
|
|
226
229
|
},
|
|
227
230
|
},
|
|
@@ -232,41 +235,43 @@ const InlineSquare = (args) => {
|
|
|
232
235
|
};
|
|
233
236
|
exports.InlineSquare = InlineSquare;
|
|
234
237
|
exports.InlineSquare.args = {
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
238
|
+
content: {
|
|
239
|
+
type: 'clip-set',
|
|
240
|
+
autoplay: true,
|
|
241
|
+
loop: true,
|
|
242
|
+
muted: true,
|
|
243
|
+
dataLayout: 'in-line',
|
|
244
|
+
id: '44e42a16-4cb5-4cf0-b5c2-518f6366d21a',
|
|
245
|
+
noAudio: null,
|
|
246
|
+
caption: null,
|
|
247
|
+
credits: 'FT',
|
|
248
|
+
description: 'Open-air cooking over fire',
|
|
249
|
+
displayTitle: null,
|
|
250
|
+
contentWarning: [],
|
|
251
|
+
source: null,
|
|
252
|
+
subtitle: null,
|
|
253
|
+
publishedDate: '2024-01-03T17:26:32.057Z',
|
|
254
|
+
clips: [
|
|
255
|
+
{
|
|
256
|
+
format: 'standard-inline',
|
|
257
|
+
dataSource: [
|
|
258
|
+
{
|
|
259
|
+
audioCodec: 'aac',
|
|
260
|
+
binaryUrl: 'https://spark-clips-prod.s3.eu-west-1.amazonaws.com/optimised-media-files/17043027476580/1920x1920.mp4',
|
|
261
|
+
duration: 10975,
|
|
262
|
+
mediaType: 'video/mp4',
|
|
263
|
+
pixelHeight: 1080,
|
|
264
|
+
pixelWidth: 1080,
|
|
265
|
+
videoCodec: 'h264',
|
|
266
|
+
},
|
|
267
|
+
],
|
|
268
|
+
poster: 'https://www.ft.com/__origami/service/image/v2/images/raw/https%3A%2F%2Fspark-clips-prod.s3.eu-west-1.amazonaws.com%2Fposter-images%2F78a110c8-24ff-4ca7-95e2-097ec6a22428?source=cp-content-pipeline&fit=scale-down&quality=highest&width=700&dpr=1',
|
|
269
|
+
},
|
|
270
|
+
],
|
|
271
|
+
accessibility: {
|
|
272
|
+
captions: [],
|
|
273
|
+
transcript: null,
|
|
265
274
|
},
|
|
266
|
-
],
|
|
267
|
-
accessibility: {
|
|
268
|
-
captions: [],
|
|
269
|
-
transcript: null,
|
|
270
275
|
},
|
|
271
276
|
};
|
|
272
277
|
const InlineLandscape = (args) => {
|
|
@@ -274,66 +279,69 @@ const InlineLandscape = (args) => {
|
|
|
274
279
|
};
|
|
275
280
|
exports.InlineLandscape = InlineLandscape;
|
|
276
281
|
exports.InlineLandscape.args = {
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
],
|
|
291
|
-
},
|
|
292
|
-
clips: [
|
|
293
|
-
{
|
|
294
|
-
__typename: 'Clip',
|
|
295
|
-
format: 'standard-inline',
|
|
296
|
-
dataSource: [
|
|
297
|
-
{
|
|
298
|
-
audioCodec: 'aac',
|
|
299
|
-
binaryUrl: 'https://spark-clips-prod.s3.eu-west-1.amazonaws.com/optimised-media-files/16984336376570/640x360.mp4',
|
|
300
|
-
duration: 29514,
|
|
301
|
-
mediaType: 'video/mp4',
|
|
302
|
-
pixelHeight: 360,
|
|
303
|
-
pixelWidth: 640,
|
|
304
|
-
videoCodec: 'h264',
|
|
305
|
-
},
|
|
282
|
+
content: {
|
|
283
|
+
type: 'clip-set',
|
|
284
|
+
id: '',
|
|
285
|
+
autoplay: false,
|
|
286
|
+
loop: false,
|
|
287
|
+
muted: false,
|
|
288
|
+
credits: 'FT',
|
|
289
|
+
caption: 'Luxaviation chief Patrick Hansen',
|
|
290
|
+
dataLayout: 'in-line',
|
|
291
|
+
description: 'Luxaviation chief Patrick Hansen speaks at the FT’s Business of Luxury summit in Monaco',
|
|
292
|
+
noAudio: false,
|
|
293
|
+
accessibility: {
|
|
294
|
+
captions: [
|
|
306
295
|
{
|
|
307
|
-
|
|
308
|
-
binaryUrl: 'https://spark-clips-prod.s3.eu-west-1.amazonaws.com/optimised-media-files/16984336376570/1280x720.mp4',
|
|
309
|
-
duration: 29514,
|
|
310
|
-
mediaType: 'video/mp4',
|
|
311
|
-
pixelHeight: 720,
|
|
312
|
-
pixelWidth: 1280,
|
|
313
|
-
videoCodec: 'h264',
|
|
314
|
-
},
|
|
315
|
-
{
|
|
316
|
-
audioCodec: 'aac',
|
|
317
|
-
binaryUrl: 'https://spark-clips-prod.s3.eu-west-1.amazonaws.com/optimised-media-files/16984336376570/1920x1080.mp4',
|
|
318
|
-
duration: 29514,
|
|
319
|
-
mediaType: 'video/mp4',
|
|
320
|
-
pixelHeight: 1080,
|
|
321
|
-
pixelWidth: 1920,
|
|
322
|
-
videoCodec: 'h264',
|
|
323
|
-
},
|
|
324
|
-
{
|
|
325
|
-
audioCodec: 'mp3',
|
|
326
|
-
binaryUrl: 'https://spark-clips-prod.s3.eu-west-1.amazonaws.com/optimised-media-files/16984336376570/0x0.mp3',
|
|
327
|
-
duration: 29544,
|
|
328
|
-
mediaType: 'audio/mpeg',
|
|
329
|
-
pixelHeight: null,
|
|
330
|
-
pixelWidth: null,
|
|
331
|
-
videoCodec: null,
|
|
296
|
+
url: 'https://next-media-api.ft.com/captions/16862228218010.vtt',
|
|
332
297
|
},
|
|
333
298
|
],
|
|
334
|
-
poster: 'https://www.ft.com/__origami/service/image/v2/images/raw/https%3A%2F%2Fspark-clips-prod.s3.eu-west-1.amazonaws.com%2Fposter-images%2F3fbe0b92-8018-4686-8387-eea9fab7e392?source=cp-content-pipeline&fit=scale-down&quality=highest&width=700&dpr=1',
|
|
335
299
|
},
|
|
336
|
-
|
|
300
|
+
clips: [
|
|
301
|
+
{
|
|
302
|
+
format: 'standard-inline',
|
|
303
|
+
dataSource: [
|
|
304
|
+
{
|
|
305
|
+
audioCodec: 'aac',
|
|
306
|
+
binaryUrl: 'https://spark-clips-prod.s3.eu-west-1.amazonaws.com/optimised-media-files/16984336376570/640x360.mp4',
|
|
307
|
+
duration: 29514,
|
|
308
|
+
mediaType: 'video/mp4',
|
|
309
|
+
pixelHeight: 360,
|
|
310
|
+
pixelWidth: 640,
|
|
311
|
+
videoCodec: 'h264',
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
audioCodec: 'aac',
|
|
315
|
+
binaryUrl: 'https://spark-clips-prod.s3.eu-west-1.amazonaws.com/optimised-media-files/16984336376570/1280x720.mp4',
|
|
316
|
+
duration: 29514,
|
|
317
|
+
mediaType: 'video/mp4',
|
|
318
|
+
pixelHeight: 720,
|
|
319
|
+
pixelWidth: 1280,
|
|
320
|
+
videoCodec: 'h264',
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
audioCodec: 'aac',
|
|
324
|
+
binaryUrl: 'https://spark-clips-prod.s3.eu-west-1.amazonaws.com/optimised-media-files/16984336376570/1920x1080.mp4',
|
|
325
|
+
duration: 29514,
|
|
326
|
+
mediaType: 'video/mp4',
|
|
327
|
+
pixelHeight: 1080,
|
|
328
|
+
pixelWidth: 1920,
|
|
329
|
+
videoCodec: 'h264',
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
audioCodec: 'mp3',
|
|
333
|
+
binaryUrl: 'https://spark-clips-prod.s3.eu-west-1.amazonaws.com/optimised-media-files/16984336376570/0x0.mp3',
|
|
334
|
+
duration: 29544,
|
|
335
|
+
mediaType: 'audio/mpeg',
|
|
336
|
+
pixelHeight: null,
|
|
337
|
+
pixelWidth: null,
|
|
338
|
+
videoCodec: null,
|
|
339
|
+
},
|
|
340
|
+
],
|
|
341
|
+
poster: 'https://www.ft.com/__origami/service/image/v2/images/raw/https%3A%2F%2Fspark-clips-prod.s3.eu-west-1.amazonaws.com%2Fposter-images%2F3fbe0b92-8018-4686-8387-eea9fab7e392?source=cp-content-pipeline&fit=scale-down&quality=highest&width=700&dpr=1',
|
|
342
|
+
},
|
|
343
|
+
],
|
|
344
|
+
},
|
|
337
345
|
};
|
|
338
346
|
const InlineAutoplay = (args) => {
|
|
339
347
|
return react_1.default.createElement(ClipStory, { ...args });
|
|
@@ -341,69 +349,70 @@ const InlineAutoplay = (args) => {
|
|
|
341
349
|
exports.InlineAutoplay = InlineAutoplay;
|
|
342
350
|
// More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args
|
|
343
351
|
exports.InlineAutoplay.args = {
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
352
|
+
content: {
|
|
353
|
+
type: 'clip-set',
|
|
354
|
+
autoplay: true,
|
|
355
|
+
loop: true,
|
|
356
|
+
muted: true,
|
|
357
|
+
dataLayout: 'in-line',
|
|
358
|
+
id: '362347ce-f304-47ec-8078-cae042a2f490',
|
|
359
|
+
noAudio: null,
|
|
360
|
+
caption: "'Trace Pong' leaves a line behind the path of the ball",
|
|
361
|
+
credits: 'Courtesy of the artist',
|
|
362
|
+
description: "'Trace Pong' leaves a line behind the path of the ball",
|
|
363
|
+
displayTitle: null,
|
|
364
|
+
contentWarning: [],
|
|
365
|
+
source: null,
|
|
366
|
+
subtitle: null,
|
|
367
|
+
publishedDate: '2023-10-30T10:51:59.822Z',
|
|
368
|
+
clips: [
|
|
369
|
+
{
|
|
370
|
+
format: 'standard-inline',
|
|
371
|
+
dataSource: [
|
|
372
|
+
{
|
|
373
|
+
audioCodec: 'aac',
|
|
374
|
+
binaryUrl: 'https://spark-clips-prod.s3.eu-west-1.amazonaws.com/optimised-media-files/16984305828900/640x360.mp4',
|
|
375
|
+
duration: 24052,
|
|
376
|
+
mediaType: 'video/mp4',
|
|
377
|
+
pixelHeight: 360,
|
|
378
|
+
pixelWidth: 640,
|
|
379
|
+
videoCodec: 'h264',
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
audioCodec: 'aac',
|
|
383
|
+
binaryUrl: 'https://spark-clips-prod.s3.eu-west-1.amazonaws.com/optimised-media-files/16984305828900/1280x720.mp4',
|
|
384
|
+
duration: 24052,
|
|
385
|
+
mediaType: 'video/mp4',
|
|
386
|
+
pixelHeight: 720,
|
|
387
|
+
pixelWidth: 1280,
|
|
388
|
+
videoCodec: 'h264',
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
audioCodec: 'aac',
|
|
392
|
+
binaryUrl: 'https://spark-clips-prod.s3.eu-west-1.amazonaws.com/optimised-media-files/16984305828900/1920x1080.mp4',
|
|
393
|
+
duration: 24052,
|
|
394
|
+
mediaType: 'video/mp4',
|
|
395
|
+
pixelHeight: 1080,
|
|
396
|
+
pixelWidth: 1920,
|
|
397
|
+
videoCodec: 'h264',
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
audioCodec: 'mp3',
|
|
401
|
+
binaryUrl: 'https://spark-clips-prod.s3.eu-west-1.amazonaws.com/optimised-media-files/16984305828900/0x0.mp3',
|
|
402
|
+
duration: 24072,
|
|
403
|
+
mediaType: 'audio/mpeg',
|
|
404
|
+
pixelHeight: null,
|
|
405
|
+
pixelWidth: null,
|
|
406
|
+
videoCodec: null,
|
|
407
|
+
},
|
|
408
|
+
],
|
|
409
|
+
poster: 'https://www.ft.com/__origami/service/image/v2/images/raw/https%3A%2F%2Fspark-clips-prod.s3.eu-west-1.amazonaws.com%2Fposter-images%2Ff5ca5815-b40d-4dac-80b6-b8e764817685?source=cp-content-pipeline&fit=scale-down&quality=highest&width=700&dpr=1',
|
|
410
|
+
},
|
|
411
|
+
],
|
|
412
|
+
accessibility: {
|
|
413
|
+
captions: [],
|
|
414
|
+
transcript: null,
|
|
402
415
|
},
|
|
403
|
-
],
|
|
404
|
-
accessibility: {
|
|
405
|
-
captions: [],
|
|
406
|
-
transcript: null,
|
|
407
416
|
},
|
|
408
417
|
};
|
|
409
418
|
const NoDataSource = (args) => {
|
|
@@ -412,31 +421,33 @@ const NoDataSource = (args) => {
|
|
|
412
421
|
exports.NoDataSource = NoDataSource;
|
|
413
422
|
// More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args
|
|
414
423
|
exports.NoDataSource.args = {
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
424
|
+
content: {
|
|
425
|
+
type: 'clip-set',
|
|
426
|
+
autoplay: true,
|
|
427
|
+
loop: true,
|
|
428
|
+
muted: true,
|
|
429
|
+
dataLayout: 'in-line',
|
|
430
|
+
id: '362347ce-f304-47ec-8078-cae042a2f490',
|
|
431
|
+
noAudio: null,
|
|
432
|
+
caption: "'Trace Pong' leaves a line behind the path of the ball",
|
|
433
|
+
credits: 'Courtesy of the artist',
|
|
434
|
+
description: "'Trace Pong' leaves a line behind the path of the ball",
|
|
435
|
+
displayTitle: null,
|
|
436
|
+
contentWarning: [],
|
|
437
|
+
source: null,
|
|
438
|
+
subtitle: null,
|
|
439
|
+
publishedDate: '2023-10-30T10:51:59.822Z',
|
|
440
|
+
clips: [
|
|
441
|
+
{
|
|
442
|
+
format: 'standard-inline',
|
|
443
|
+
dataSource: [],
|
|
444
|
+
poster: 'https://www.ft.com/__origami/service/image/v2/images/raw/https%3A%2F%2Fspark-clips-prod.s3.eu-west-1.amazonaws.com%2Fposter-images%2Ff5ca5815-b40d-4dac-80b6-b8e764817685?source=cp-content-pipeline&fit=scale-down&quality=highest&width=700&dpr=1',
|
|
445
|
+
},
|
|
446
|
+
],
|
|
447
|
+
accessibility: {
|
|
448
|
+
captions: [],
|
|
449
|
+
transcript: null,
|
|
435
450
|
},
|
|
436
|
-
],
|
|
437
|
-
accessibility: {
|
|
438
|
-
captions: [],
|
|
439
|
-
transcript: null,
|
|
440
451
|
},
|
|
441
452
|
};
|
|
442
453
|
const ThumbnailClip = (args) => {
|
|
@@ -445,35 +456,37 @@ const ThumbnailClip = (args) => {
|
|
|
445
456
|
exports.ThumbnailClip = ThumbnailClip;
|
|
446
457
|
// More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args
|
|
447
458
|
exports.ThumbnailClip.args = {
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
autoplay: true,
|
|
453
|
-
clips: [
|
|
454
|
-
{
|
|
455
|
-
dataSource: [
|
|
456
|
-
{
|
|
457
|
-
audioCodec: 'aac',
|
|
458
|
-
binaryUrl: 'https://spark-clips-prod.s3.eu-west-1.amazonaws.com/raw-media-files/17144958736710',
|
|
459
|
-
duration: 161012,
|
|
460
|
-
mediaType: 'video/mp4',
|
|
461
|
-
pixelHeight: 1080,
|
|
462
|
-
pixelWidth: 1920,
|
|
463
|
-
videoCodec: 'h264',
|
|
464
|
-
},
|
|
465
|
-
],
|
|
466
|
-
id: 'inline-1',
|
|
467
|
-
poster: 'https://spark-clips-prod.s3.eu-west-1.amazonaws.com/poster-images/e37aa9c0-69bd-4bd0-8874-c90f0a265894',
|
|
459
|
+
content: {
|
|
460
|
+
accessibility: {
|
|
461
|
+
captions: [],
|
|
462
|
+
transcript: null,
|
|
468
463
|
},
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
464
|
+
autoplay: true,
|
|
465
|
+
clips: [
|
|
466
|
+
{
|
|
467
|
+
dataSource: [
|
|
468
|
+
{
|
|
469
|
+
audioCodec: 'aac',
|
|
470
|
+
binaryUrl: 'https://spark-clips-prod.s3.eu-west-1.amazonaws.com/raw-media-files/17144958736710',
|
|
471
|
+
duration: 161012,
|
|
472
|
+
mediaType: 'video/mp4',
|
|
473
|
+
pixelHeight: 1080,
|
|
474
|
+
pixelWidth: 1920,
|
|
475
|
+
videoCodec: 'h264',
|
|
476
|
+
},
|
|
477
|
+
],
|
|
478
|
+
id: 'inline-1',
|
|
479
|
+
poster: 'https://spark-clips-prod.s3.eu-west-1.amazonaws.com/poster-images/e37aa9c0-69bd-4bd0-8874-c90f0a265894',
|
|
480
|
+
},
|
|
481
|
+
],
|
|
482
|
+
dataLayout: '',
|
|
483
|
+
id: '362347ce-f304-47ec-8078-cae042a2f490',
|
|
484
|
+
loop: true,
|
|
485
|
+
muted: true,
|
|
486
|
+
noAudio: null,
|
|
487
|
+
poster: 'https://spark-clips-prod.s3.eu-west-1.amazonaws.com/poster-images/e37aa9c0-69bd-4bd0-8874-c90f0a265894',
|
|
488
|
+
publishedDate: '2023-10-30T10:51:59.822Z',
|
|
489
|
+
type: 'clip-set',
|
|
490
|
+
},
|
|
478
491
|
};
|
|
479
492
|
//# sourceMappingURL=Clip.stories.js.map
|