@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.
Files changed (137) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/lib/components/BigNumber/index.d.ts +4 -1
  3. package/lib/components/BigNumber/index.js +1 -1
  4. package/lib/components/BigNumber/index.js.map +1 -1
  5. package/lib/components/Body/index.test.js +12 -1
  6. package/lib/components/Body/index.test.js.map +1 -1
  7. package/lib/components/Byline/index.js +2 -2
  8. package/lib/components/Byline/index.js.map +1 -1
  9. package/lib/components/Clip/components/ClipTag.d.ts +3 -3
  10. package/lib/components/Clip/components/ClipTag.js.map +1 -1
  11. package/lib/components/Clip/components/ClosedCaptions.d.ts +2 -2
  12. package/lib/components/Clip/components/VideoDescription.d.ts +2 -2
  13. package/lib/components/Clip/components/VideoDescription.js.map +1 -1
  14. package/lib/components/Clip/template/component.d.ts +9 -4
  15. package/lib/components/Clip/template/component.js +19 -14
  16. package/lib/components/Clip/template/component.js.map +1 -1
  17. package/lib/components/Clip/test/fixtures.js +114 -77
  18. package/lib/components/Clip/test/fixtures.js.map +1 -1
  19. package/lib/components/Clip/test/snapshot.spec.js +110 -61
  20. package/lib/components/Clip/test/snapshot.spec.js.map +1 -1
  21. package/lib/components/Flourish/index.d.ts +4 -12
  22. package/lib/components/Flourish/index.js +1 -1
  23. package/lib/components/Flourish/index.js.map +1 -1
  24. package/lib/components/Flourish/test/snapshot.spec.js +48 -6
  25. package/lib/components/Flourish/test/snapshot.spec.js.map +1 -1
  26. package/lib/components/Heading/index.d.ts +2 -1
  27. package/lib/components/Heading/index.js +2 -2
  28. package/lib/components/Heading/index.js.map +1 -1
  29. package/lib/components/ImageOverrideWrappers/index.d.ts +4 -0
  30. package/lib/components/ImageOverrideWrappers/index.js +44 -0
  31. package/lib/components/ImageOverrideWrappers/index.js.map +1 -0
  32. package/lib/components/ImageSet/index.d.ts +12 -8
  33. package/lib/components/ImageSet/index.js +13 -8
  34. package/lib/components/ImageSet/index.js.map +1 -1
  35. package/lib/components/Layout/index.d.ts +3 -13
  36. package/lib/components/Layout/index.js +1 -1
  37. package/lib/components/Layout/index.js.map +1 -1
  38. package/lib/components/MainImage/index.js +2 -2
  39. package/lib/components/MainImage/index.js.map +1 -1
  40. package/lib/components/Paragraph/index.d.ts +4 -1
  41. package/lib/components/Paragraph/index.js.map +1 -1
  42. package/lib/components/Pullquote/index.d.ts +4 -1
  43. package/lib/components/Pullquote/index.js +7 -6
  44. package/lib/components/Pullquote/index.js.map +1 -1
  45. package/lib/components/Recommended/index.d.ts +5 -8
  46. package/lib/components/Recommended/index.js +1 -6
  47. package/lib/components/Recommended/index.js.map +1 -1
  48. package/lib/components/RichText/BasicComponents.d.ts +12 -11
  49. package/lib/components/RichText/BasicComponents.js +2 -2
  50. package/lib/components/RichText/BasicComponents.js.map +1 -1
  51. package/lib/components/RichText/index.d.ts +10 -3
  52. package/lib/components/RichText/index.js +8 -2
  53. package/lib/components/RichText/index.js.map +1 -1
  54. package/lib/components/Scrollytelling/ScrollyImage.d.ts +6 -3
  55. package/lib/components/Scrollytelling/ScrollyImage.js +2 -2
  56. package/lib/components/Scrollytelling/ScrollyImage.js.map +1 -1
  57. package/lib/components/Scrollytelling/index.d.ts +14 -6
  58. package/lib/components/Scrollytelling/index.js +3 -3
  59. package/lib/components/Scrollytelling/index.js.map +1 -1
  60. package/lib/components/Table/TableBody.d.ts +4 -1
  61. package/lib/components/Table/TableBody.js +1 -1
  62. package/lib/components/Table/TableBody.js.map +1 -1
  63. package/lib/components/Table/TableCell.d.ts +4 -4
  64. package/lib/components/Table/TableCell.js +2 -2
  65. package/lib/components/Table/TableCell.js.map +1 -1
  66. package/lib/components/Table/index.d.ts +4 -1
  67. package/lib/components/Table/index.js +1 -1
  68. package/lib/components/Table/index.js.map +1 -1
  69. package/lib/components/Topper/Picture.d.ts +1 -1
  70. package/lib/components/Topper/Picture.js +6 -3
  71. package/lib/components/Topper/Picture.js.map +1 -1
  72. package/lib/components/Topper/index.js +7 -1
  73. package/lib/components/Topper/index.js.map +1 -1
  74. package/lib/components/Tweet/index.d.ts +5 -3
  75. package/lib/components/Tweet/index.js +1 -1
  76. package/lib/components/Tweet/index.js.map +1 -1
  77. package/lib/components/Video/index.d.ts +4 -2
  78. package/lib/components/Video/index.js +1 -1
  79. package/lib/components/Video/index.js.map +1 -1
  80. package/lib/components/Workarounds.d.ts +89 -0
  81. package/lib/components/Workarounds.js +3 -0
  82. package/lib/components/Workarounds.js.map +1 -0
  83. package/lib/components/YoutubeVideo/index.d.ts +5 -2
  84. package/lib/components/YoutubeVideo/index.js +1 -1
  85. package/lib/components/YoutubeVideo/index.js.map +1 -1
  86. package/lib/components/types.d.ts +5 -0
  87. package/lib/components/types.js +3 -0
  88. package/lib/components/types.js.map +1 -0
  89. package/lib/context.d.ts +14 -0
  90. package/lib/context.js +2 -1
  91. package/lib/context.js.map +1 -1
  92. package/lib/index.d.ts +1 -1
  93. package/lib/index.js +2 -1
  94. package/lib/index.js.map +1 -1
  95. package/lib/stories/Clip.stories.d.ts +39 -243
  96. package/lib/stories/Clip.stories.js +320 -307
  97. package/lib/stories/Clip.stories.js.map +1 -1
  98. package/package.json +2 -1
  99. package/src/components/BigNumber/index.tsx +6 -3
  100. package/src/components/Body/__snapshots__/index.test.tsx.snap +2 -1
  101. package/src/components/Body/index.test.tsx +12 -1
  102. package/src/components/Byline/index.tsx +9 -4
  103. package/src/components/Clip/components/ClipTag.tsx +3 -6
  104. package/src/components/Clip/components/ClosedCaptions.tsx +2 -2
  105. package/src/components/Clip/components/VideoDescription.tsx +2 -2
  106. package/src/components/Clip/template/component.tsx +39 -41
  107. package/src/components/Clip/test/__snapshots__/snapshot.spec.tsx.snap +4 -8
  108. package/src/components/Clip/test/fixtures.ts +127 -90
  109. package/src/components/Clip/test/snapshot.spec.tsx +123 -102
  110. package/src/components/Flourish/index.tsx +10 -21
  111. package/src/components/Flourish/test/snapshot.spec.tsx +48 -36
  112. package/src/components/Heading/index.tsx +6 -5
  113. package/src/components/ImageOverrideWrappers/index.tsx +34 -0
  114. package/src/components/ImageSet/index.tsx +75 -55
  115. package/src/components/Layout/index.tsx +6 -18
  116. package/src/components/MainImage/index.tsx +10 -8
  117. package/src/components/Paragraph/index.tsx +4 -1
  118. package/src/components/Pullquote/index.tsx +15 -8
  119. package/src/components/Recommended/index.tsx +11 -11
  120. package/src/components/RichText/BasicComponents.tsx +22 -20
  121. package/src/components/RichText/index.tsx +35 -12
  122. package/src/components/Scrollytelling/ScrollyImage.tsx +10 -7
  123. package/src/components/Scrollytelling/index.tsx +19 -9
  124. package/src/components/Table/TableBody.tsx +7 -3
  125. package/src/components/Table/TableCell.tsx +9 -7
  126. package/src/components/Table/index.tsx +12 -9
  127. package/src/components/Topper/Picture.tsx +17 -12
  128. package/src/components/Topper/index.tsx +7 -4
  129. package/src/components/Tweet/index.tsx +5 -3
  130. package/src/components/Video/index.tsx +4 -6
  131. package/src/components/Workarounds.ts +190 -0
  132. package/src/components/YoutubeVideo/index.tsx +5 -4
  133. package/src/components/types.ts +6 -0
  134. package/src/context.ts +22 -1
  135. package/src/index.ts +4 -1
  136. package/src/stories/Clip.stories.tsx +357 -341
  137. 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
- dataLayout: {
42
- options: ['in-line', 'full-grid', 'mid-grid'],
43
- control: { type: 'radio' },
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
- type: 'clip-set',
124
- autoplay: false,
125
- loop: false,
126
- muted: false,
127
- dataLayout: 'in-line',
128
- id: '16cd2e1c-5299-4f4c-be67-1620fd0bc396',
129
- noAudio: null,
130
- caption: 'Former US president Donald Trump speaks on airport tarmac after being booked at Fulton County jail',
131
- credits: 'Reuters',
132
- description: 'Former US president Donald Trump speaks on airport tarmac after being booked at Fulton County jail',
133
- displayTitle: null,
134
- contentWarning: [],
135
- source: null,
136
- subtitle: null,
137
- publishedDate: '2023-10-30T10:54:19.210Z',
138
- clips: [
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
- url: 'https://next-media-api.ft.com/clips/captions/32069811',
187
- mediaType: 'text/vtt',
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
- transcript: {
191
- source: 'transcript',
192
- structured: {
193
- tree: {
194
- type: 'body',
195
- version: 1,
196
- children: [
197
- {
198
- type: 'paragraph',
199
- children: [
200
- {
201
- type: 'text',
202
- 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. ",
203
- },
204
- ],
205
- },
206
- {
207
- type: 'paragraph',
208
- children: [
209
- {
210
- type: 'text',
211
- 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. ",
212
- },
213
- ],
214
- },
215
- {
216
- type: 'paragraph',
217
- children: [
218
- {
219
- type: 'text',
220
- value: "This is their way of campaigning. And this is one instance, but you have three other instances. It's election interference. ",
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
- autoplay: true,
236
- loop: true,
237
- muted: true,
238
- dataLayout: 'in-line',
239
- id: '44e42a16-4cb5-4cf0-b5c2-518f6366d21a',
240
- noAudio: null,
241
- caption: null,
242
- credits: 'FT',
243
- description: 'Open-air cooking over fire',
244
- displayTitle: null,
245
- contentWarning: [],
246
- source: null,
247
- subtitle: null,
248
- publishedDate: '2024-01-03T17:26:32.057Z',
249
- clips: [
250
- {
251
- __typename: 'Clip',
252
- format: 'standard-inline',
253
- dataSource: [
254
- {
255
- audioCodec: 'aac',
256
- binaryUrl: 'https://spark-clips-prod.s3.eu-west-1.amazonaws.com/optimised-media-files/17043027476580/1920x1920.mp4',
257
- duration: 10975,
258
- mediaType: 'video/mp4',
259
- pixelHeight: 1080,
260
- pixelWidth: 1080,
261
- videoCodec: 'h264',
262
- },
263
- ],
264
- 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',
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
- url: 'https://storytelling-clips.s3.amazonaws.com/World/Sikh%20leader-clip_Trudeau.mp4',
278
- credits: 'FT',
279
- caption: 'Luxaviation chief Patrick Hansen',
280
- poster: 'https://d1e00ek4ebabms.cloudfront.net/production/9d3a16ee-ffe8-4e96-b58d-d163fdb1b6d2.jpg',
281
- alt: 'Civilians hug Ukrainian soldiers in Balakliya town square',
282
- dataLayout: 'in-line',
283
- description: 'Luxaviation chief Patrick Hansen speaks at the FT’s Business of Luxury summit in Monaco',
284
- noAudio: false,
285
- accessibility: {
286
- captions: [
287
- {
288
- url: 'https://next-media-api.ft.com/captions/16862228218010.vtt',
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
- audioCodec: 'aac',
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
- type: 'clip-set',
345
- autoplay: true,
346
- loop: true,
347
- muted: true,
348
- dataLayout: 'in-line',
349
- id: '362347ce-f304-47ec-8078-cae042a2f490',
350
- noAudio: null,
351
- caption: "'Trace Pong' leaves a line behind the path of the ball",
352
- credits: 'Courtesy of the artist',
353
- description: "'Trace Pong' leaves a line behind the path of the ball",
354
- displayTitle: null,
355
- contentWarning: [],
356
- source: null,
357
- subtitle: null,
358
- publishedDate: '2023-10-30T10:51:59.822Z',
359
- clips: [
360
- {
361
- __typename: 'Clip',
362
- format: 'standard-inline',
363
- dataSource: [
364
- {
365
- audioCodec: 'aac',
366
- binaryUrl: 'https://spark-clips-prod.s3.eu-west-1.amazonaws.com/optimised-media-files/16984305828900/640x360.mp4',
367
- duration: 24052,
368
- mediaType: 'video/mp4',
369
- pixelHeight: 360,
370
- pixelWidth: 640,
371
- videoCodec: 'h264',
372
- },
373
- {
374
- audioCodec: 'aac',
375
- binaryUrl: 'https://spark-clips-prod.s3.eu-west-1.amazonaws.com/optimised-media-files/16984305828900/1280x720.mp4',
376
- duration: 24052,
377
- mediaType: 'video/mp4',
378
- pixelHeight: 720,
379
- pixelWidth: 1280,
380
- videoCodec: 'h264',
381
- },
382
- {
383
- audioCodec: 'aac',
384
- binaryUrl: 'https://spark-clips-prod.s3.eu-west-1.amazonaws.com/optimised-media-files/16984305828900/1920x1080.mp4',
385
- duration: 24052,
386
- mediaType: 'video/mp4',
387
- pixelHeight: 1080,
388
- pixelWidth: 1920,
389
- videoCodec: 'h264',
390
- },
391
- {
392
- audioCodec: 'mp3',
393
- binaryUrl: 'https://spark-clips-prod.s3.eu-west-1.amazonaws.com/optimised-media-files/16984305828900/0x0.mp3',
394
- duration: 24072,
395
- mediaType: 'audio/mpeg',
396
- pixelHeight: null,
397
- pixelWidth: null,
398
- videoCodec: null,
399
- },
400
- ],
401
- 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',
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
- type: 'clip-set',
416
- autoplay: true,
417
- loop: true,
418
- muted: true,
419
- dataLayout: 'in-line',
420
- id: '362347ce-f304-47ec-8078-cae042a2f490',
421
- noAudio: null,
422
- caption: "'Trace Pong' leaves a line behind the path of the ball",
423
- credits: 'Courtesy of the artist',
424
- description: "'Trace Pong' leaves a line behind the path of the ball",
425
- displayTitle: null,
426
- contentWarning: [],
427
- source: null,
428
- subtitle: null,
429
- publishedDate: '2023-10-30T10:51:59.822Z',
430
- clips: [
431
- {
432
- __typename: 'Clip',
433
- format: 'standard-inline',
434
- 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',
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
- accessibility: {
449
- captions: [],
450
- transcript: null,
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
- dataLayout: '',
471
- id: '362347ce-f304-47ec-8078-cae042a2f490',
472
- loop: true,
473
- muted: true,
474
- noAudio: null,
475
- poster: 'https://spark-clips-prod.s3.eu-west-1.amazonaws.com/poster-images/e37aa9c0-69bd-4bd0-8874-c90f0a265894',
476
- publishedDate: '2023-10-30T10:51:59.822Z',
477
- type: 'clip-set',
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