@financial-times/cp-content-pipeline-schema 3.3.0 → 3.3.2
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 +15 -0
- package/lib/fixtures/dummyContext.js +7 -0
- package/lib/fixtures/dummyContext.js.map +1 -1
- package/lib/generated/index.d.ts +17 -5
- package/lib/model/CapiResponse.js +16 -1
- package/lib/model/CapiResponse.js.map +1 -1
- package/lib/model/CapiResponse.test.js +14 -0
- package/lib/model/CapiResponse.test.js.map +1 -1
- package/lib/model/Topper.js +3 -3
- package/lib/model/Topper.js.map +1 -1
- package/lib/resolvers/index.d.ts +4 -1
- package/lib/resolvers/topper.d.ts +4 -1
- package/lib/resolvers/topper.js +4 -0
- package/lib/resolvers/topper.js.map +1 -1
- package/package.json +1 -1
- package/src/fixtures/dummyContext.ts +8 -1
- package/src/generated/index.ts +17 -5
- package/src/model/CapiResponse.test.ts +19 -0
- package/src/model/CapiResponse.ts +17 -1
- package/src/model/Topper.ts +4 -5
- package/src/resolvers/topper.ts +4 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/typedefs/topper.graphql +13 -1
package/typedefs/topper.graphql
CHANGED
|
@@ -403,7 +403,7 @@ type TopperWithFlourish implements Topper & TopperWithTheme {
|
|
|
403
403
|
leadFlourish: LeadFlourish
|
|
404
404
|
}
|
|
405
405
|
|
|
406
|
-
type PartnerContentTopper implements Topper {
|
|
406
|
+
type PartnerContentTopper implements Topper & TopperWithImages & TopperWithTheme {
|
|
407
407
|
"The headline text of the topper."
|
|
408
408
|
headline: String!
|
|
409
409
|
|
|
@@ -427,4 +427,16 @@ type PartnerContentTopper implements Topper {
|
|
|
427
427
|
|
|
428
428
|
"The variant of the follow button to be displayed on the topper."
|
|
429
429
|
followButtonVariant: FollowButtonVariant
|
|
430
|
+
|
|
431
|
+
"An array of images to be displayed on the topper."
|
|
432
|
+
images: [Image!]!
|
|
433
|
+
|
|
434
|
+
"A fallback image to be used if the 'images' are not availableimages: [Image!]!."
|
|
435
|
+
fallbackImage: Image
|
|
436
|
+
|
|
437
|
+
"Whether the headline should be large."
|
|
438
|
+
isLargeHeadline: Boolean
|
|
439
|
+
|
|
440
|
+
"The layout of the topper, eg. 'split-text-left'."
|
|
441
|
+
layout: String
|
|
430
442
|
}
|