@financial-times/cp-content-pipeline-schema 1.3.5 → 1.3.6

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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.3.6](https://github.com/Financial-Times/cp-content-pipeline/compare/cp-content-pipeline-schema-v1.3.5...cp-content-pipeline-schema-v1.3.6) (2023-09-20)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * main image inline display ([a63b9ab](https://github.com/Financial-Times/cp-content-pipeline/commit/a63b9abf07c3a23c77e9863091c0cc4f7fbc51d8))
9
+ * scrollytelling heading formats ([3a42419](https://github.com/Financial-Times/cp-content-pipeline/commit/3a42419f039a239a728b37e12b5df4caa1547cd6))
10
+
3
11
  ## [1.3.5](https://github.com/Financial-Times/cp-content-pipeline/compare/cp-content-pipeline-schema-v1.3.4...cp-content-pipeline-schema-v1.3.5) (2023-09-19)
4
12
 
5
13
 
@@ -9,7 +9,7 @@ exports.baseCapiObject = {
9
9
  title: 'Kwarteng faces test persuading UK watchdog of fiscal plans',
10
10
  standfirst: '',
11
11
  byline: 'Chris Giles in London',
12
- bodyXML: `<body><ft-content type="http://www.ft.com/ontology/content/ImageSet" url="http://api.ft.com/content/c45f7393-62c8-4a6b-b53d-641725351851" data-embedded="true"></ft-content><p><a href="https://amzn.to/3V3cwPP"><strong>Eliot After The Waste Land</strong></a><strong> (Eliot Biographies, 2)<br/></strong>by Robert Crawford, <em>Jonathan Cape £25</em></p><p>After a six-year wait, Robert Crawford follows up <em>Young Eliot</em> (2016) with his <a href="https://www.ft.com/content/210d7f37-115e-4197-b392-ffb094ed2699">second (and final) volume</a> on the life of TS Eliot in time for the centenary of “The Waste Land”. Here, he explores Eliot’s marriage, religious life and draws on the 1,131 letters written to American friend Emily Hale that were only released from embargo in 2020 to probe the poet’s later years with tact and empathy.</p><ft-content type="http://www.ft.com/ontology/content/ImageSet" url="http://api.ft.com/content/bf48b0fc-ad4b-4ce9-a734-faf3e9aab225" data-embedded="true"></ft-content><p><a href="https://amzn.to/3UFKeul"><strong>All the Knowledge in the World</strong></a><strong>: The Extraordinary History of the Encyclopaedia<br/></strong>by Simon Garfield, <em>Weidenfeld &amp; Nicolson £18.99</em></p><p>Simon Garfield, author of quirky histories on everything from fonts to maps, surveys the publishing phenomenon that is the encyclopedia. Tracing its origins from Ancient Greece right up to its modern incarnation in Wikipedia, his handsome book offers an erudite and amusing exploration of the human quest for knowledge.</p><ft-content type="http://www.ft.com/ontology/content/ImageSet" url="http://api.ft.com/content/cc74e2ec-3314-4b9f-81c1-bcfdf9dbaf99" data-embedded="true"></ft-content><p><a href="https://amzn.to/3VbW1AB"><strong>The Waste Land</strong></a><strong>: A Biography of a Poem<br/></strong>by Matthew Hollis, <em>Faber £20</em></p><p>In the 100 years since TS Eliot penned his famous poem, it has taken on a life of its own. So it’s fitting, perhaps, that Matthew Hollis treats Eliot’s work to its own biography. This richly analytical book locates the poem’s genesis in the aftermath of the first world war and the “nightmare agony” of Eliot’s disastrous marriage.</p><ft-content type="http://www.ft.com/ontology/content/ImageSet" url="http://api.ft.com/content/7393690b-e02e-4cdb-a263-57e7d1a6eedf" data-embedded="true"></ft-content><p><a href="https://amzn.to/3OgAT9M"><strong>Endless Flight</strong></a><strong>: The Life of Joseph Roth<br/></strong>by Keiron Pim, <em>Granta £25</em></p><p>“I paint the portrait of the age,” Joseph Roth once claimed. Certainly, his work as a journalist from 1917-1939, dissecting central and eastern Europe in more than a thousand essays and anticipating the collapse of democracy on the continent as well as 19 novels provides an exceptional anatomy of a tumultuous period of history. Keiron Pim’s <a href="https://www.ft.com/content/fee9056b-277e-41b4-9572-9fbac39f957b">biography</a> goes some way to introducing the great Austro-Hungarian writer to a new age.</p><ft-content type="http://www.ft.com/ontology/content/ImageSet" url="http://api.ft.com/content/6e7b048f-d08f-43f7-b1fa-95e98c8ca811" data-embedded="true"></ft-content><p><a href="https://amzn.to/3hX8PfS"><strong>Super-Infinite</strong></a><strong>: The Transformations of John Donne<br/></strong>by Katherine Rundell, <em>Faber £16.99</em></p><p>Katherine Rundell, a Fellow of All Souls College, Oxford, has produced a remarkable life of John Donne, the great poet of love, sex and death. Winner of this year’s Baillie Gifford Prize, her <a href="https://www.ft.com/content/c229396d-5448-44fa-b423-b018695d65d8">biography</a> of the man who was at once soldier, poet, prisoner and priest is sensitive and witty, capturing the essence of a tricky subject. </p><experimental><div class="n-content-layout" data-layout-name="card" data-layout-width="true"><div class="n-content-layout__container"><h2>Books of the Year 2022</h2><div class="n-content-layout__slot" data-slot-width="true"><h4></h4><div class="n-content-layout__slot" data-slot-width="true"><img alt="" data-copyright="" data-image-type="image" longdesc="" src="https://d1e00ek4ebabms.cloudfront.net/production/43c41a77-ab10-40ed-a2a2-efa99ef32a10.jpg"/></div></div><div class="n-content-layout__slot" data-slot-width="true"><h4></h4><div class="n-content-layout__slot" data-slot-width="true"><p>All this week, FT writers and critics share <a href="https://www.ft.com/content/2dd61d03-13ac-4278-8214-678c1d9a33c1">their favourites</a>. Some highlights are: <br/><br/><strong>Monday:</strong> <a href="https://www.ft.com/content/416e1e1d-22e7-439b-9388-5d0cd56f5a9c">Business</a> by Andrew Hill<br/><strong>Tuesday:</strong> <a href="https://www.ft.com/content/db8aaeb6-141f-4a7c-b364-2296fb0d8065">Environment</a> by Pilita Clark<br/><strong>Wednesday:</strong> <a href="https://www.ft.com/content/634c1974-bc76-4f56-9548-274816dcc638">Economics</a> by Martin Wolf<br/><strong>Thursday:</strong> Fiction by Laura Battle<br/><strong>Friday:</strong> Politics by Gideon Rachman<br/><strong>Saturday:</strong> Critics’ choice</p></div></div></div></div></experimental><ft-content type="http://www.ft.com/ontology/content/ImageSet" url="http://api.ft.com/content/fde6576e-ab0c-41ec-8e18-bcdb3d6c21c0" data-embedded="true"></ft-content><p><a href="https://amzn.to/3gn2kCl"><strong>The Book of Phobias and Manias</strong></a><strong>: A History of the World in 99 Obsessions<br/></strong>by Kate Summerscale, <em>Profile £16.99</em></p><p>This neat compendium from the prizewinning author of <em>The Suspicions of Mr Whicher</em> charts a broad and intriguing range of fears and madness. Although these phobias and manias are alphabetised, Kate Summerscale suggests groupings (textures, animals, communal crazes) that — accompanied by a lightly erudite introduction — illuminate some of the darker corners of our collective psyche.</p><ft-content type="http://www.ft.com/ontology/content/ImageSet" url="http://api.ft.com/content/a07a6f3b-41cf-47c7-9b79-1c755ebfe54c" data-embedded="true"></ft-content><p><a href="https://amzn.to/3hX9oq0"><strong>Papyrus</strong></a><strong>: The Invention of Books in the Ancient World<br/></strong>by Irene Vallejo, <em>Hodder &amp; Stoughton £25</em></p><p>Described as “a masterpiece” by Mario Vargas Llosa when it was first published in Spain in 2019, this bestselling phenomenon is now available in English. In it, Irene Vallejo recounts the birth of literary culture in the ancient world while interweaving dynamic, thrilling tales that underscore and celebrate the power of words to change the world.</p><ft-content type="http://www.ft.com/ontology/content/ImageSet" url="http://api.ft.com/content/60b81603-654d-46ac-85ef-5865eb7bc1e8" data-embedded="true"></ft-content><p><a href="https://amzn.to/3EIwiKD"><strong>Magnificent Rebels</strong></a><strong>: The First Romantics and the Invention of the Self</strong><br/>by Andrea Wulf, <em>John Murray £25/Knopf $35</em></p><p>Between 1794-1806, the cream of Germany’s intelligentsia descended on the tiny university town of Jena. There, Johann Wolfgang von Goethe mingled with philosophers Friedrich Schelling and Georg Wilhelm Friedrich Hegel, the scientist-explorer Alexander von Humboldt and the playwright Friedrich Schiller during the first flush of Romanticism. Andrea Wulf’s wonderful <a href="https://www.ft.com/content/391e2bcd-f14e-44e5-b6de-40990ce7272f">book</a> brings to life the “Jena set” and a golden age of German culture. </p><experimental><div class="n-content-layout" data-layout-name="card" data-layout-width="fullWidth"><div class="n-content-layout__container"><h3>Tell us what you think</h3><div class="n-content-layout__slot" data-slot-width="true"><p>What are your favourites from this list — and what books have we missed? Tell us in the comments below</p></div></div></div></experimental><p><em>Join our online book group on Facebook at </em><a href="https://www.facebook.com/groups/139838140082304/"><em>FT Books Café</em></a></p></body>`,
12
+ bodyXML: `<body><ft-content type="http://www.ft.com/ontology/content/ImageSet" url="http://api.ft.com/content/c45f7393-62c8-4a6b-b53d-641725351851" data-embedded="true"></ft-content><p><a href="https://amzn.to/3V3cwPP"><strong>Eliot After The Waste Land</strong></a><strong> (Eliot Biographies, 2)<br/></strong>by Robert Crawford, <em>Jonathan Cape £25</em></p><p>After a six-year wait, Robert Crawford follows up <em>Young Eliot</em> (2016) with his <a href="https://www.ft.com/content/210d7f37-115e-4197-b392-ffb094ed2699">second (and final) volume</a> on the life of TS Eliot in time for the centenary of “The Waste Land”. Here, he explores Eliot’s marriage, religious life and draws on the 1,131 letters written to American friend Emily Hale that were only released from embargo in 2020 to probe the poet’s later years with tact and empathy.</p><ft-content type="http://www.ft.com/ontology/content/ImageSet" url="http://api.ft.com/content/bf48b0fc-ad4b-4ce9-a734-faf3e9aab225" data-embedded="true"></ft-content><p><a href="https://amzn.to/3UFKeul"><strong>All the Knowledge in the World</strong></a><strong>: The Extraordinary History of the Encyclopaedia<br/></strong>by Simon Garfield, <em>Weidenfeld &amp; Nicolson £18.99</em></p><p>Simon Garfield, author of quirky histories on everything from fonts to maps, surveys the publishing phenomenon that is the encyclopedia. Tracing its origins from Ancient Greece right up to its modern incarnation in Wikipedia, his handsome book offers an erudite and amusing exploration of the human quest for knowledge.</p><ft-content type="http://www.ft.com/ontology/content/ImageSet" url="http://api.ft.com/content/cc74e2ec-3314-4b9f-81c1-bcfdf9dbaf99" data-embedded="true"></ft-content><p><a href="https://amzn.to/3VbW1AB"><strong>The Waste Land</strong></a><strong>: A Biography of a Poem<br/></strong>by Matthew Hollis, <em>Faber £20</em></p><p>In the 100 years since TS Eliot penned his famous poem, it has taken on a life of its own. So it’s fitting, perhaps, that Matthew Hollis treats Eliot’s work to its own biography. This richly analytical book locates the poem’s genesis in the aftermath of the first world war and the “nightmare agony” of Eliot’s disastrous marriage.</p><ft-content type="http://www.ft.com/ontology/content/ImageSet" url="http://api.ft.com/content/7393690b-e02e-4cdb-a263-57e7d1a6eedf" data-embedded="true"></ft-content><p><a href="https://amzn.to/3OgAT9M"><strong>Endless Flight</strong></a><strong>: The Life of Joseph Roth<br/></strong>by Keiron Pim, <em>Granta £25</em></p><p>“I paint the portrait of the age,” Joseph Roth once claimed. Certainly, his work as a journalist from 1917-1939, dissecting central and eastern Europe in more than a thousand essays and anticipating the collapse of democracy on the continent as well as 19 novels provides an exceptional anatomy of a tumultuous period of history. Keiron Pim’s <a href="https://www.ft.com/content/fee9056b-277e-41b4-9572-9fbac39f957b">biography</a> goes some way to introducing the great Austro-Hungarian writer to a new age.</p><ft-content type="http://www.ft.com/ontology/content/ImageSet" url="http://api.ft.com/content/6e7b048f-d08f-43f7-b1fa-95e98c8ca811" data-embedded="true"></ft-content><p><a href="https://amzn.to/3hX8PfS"><strong>Super-Infinite</strong></a><strong>: The Transformations of John Donne<br/></strong>by Katherine Rundell, <em>Faber £16.99</em></p><p>Katherine Rundell, a Fellow of All Souls College, Oxford, has produced a remarkable life of John Donne, the great poet of love, sex and death. Winner of this year’s Baillie Gifford Prize, her <a href="https://www.ft.com/content/c229396d-5448-44fa-b423-b018695d65d8">biography</a> of the man who was at once soldier, poet, prisoner and priest is sensitive and witty, capturing the essence of a tricky subject. </p><experimental><div class="n-content-layout" data-layout-name="card" data-layout-width="true"><div class="n-content-layout__container"><h2 theme-style="3">Books of the Year 2022</h2><div class="n-content-layout__slot" data-slot-width="true"><h4></h4><div class="n-content-layout__slot" data-slot-width="true"><img alt="" data-copyright="" data-image-type="image" longdesc="" src="https://d1e00ek4ebabms.cloudfront.net/production/43c41a77-ab10-40ed-a2a2-efa99ef32a10.jpg"/></div></div><div class="n-content-layout__slot" data-slot-width="true"><h4></h4><div class="n-content-layout__slot" data-slot-width="true"><p>All this week, FT writers and critics share <a href="https://www.ft.com/content/2dd61d03-13ac-4278-8214-678c1d9a33c1">their favourites</a>. Some highlights are: <br/><br/><strong>Monday:</strong> <a href="https://www.ft.com/content/416e1e1d-22e7-439b-9388-5d0cd56f5a9c">Business</a> by Andrew Hill<br/><strong>Tuesday:</strong> <a href="https://www.ft.com/content/db8aaeb6-141f-4a7c-b364-2296fb0d8065">Environment</a> by Pilita Clark<br/><strong>Wednesday:</strong> <a href="https://www.ft.com/content/634c1974-bc76-4f56-9548-274816dcc638">Economics</a> by Martin Wolf<br/><strong>Thursday:</strong> Fiction by Laura Battle<br/><strong>Friday:</strong> Politics by Gideon Rachman<br/><strong>Saturday:</strong> Critics’ choice</p></div></div></div></div></experimental><ft-content type="http://www.ft.com/ontology/content/ImageSet" url="http://api.ft.com/content/fde6576e-ab0c-41ec-8e18-bcdb3d6c21c0" data-embedded="true"></ft-content><p><a href="https://amzn.to/3gn2kCl"><strong>The Book of Phobias and Manias</strong></a><strong>: A History of the World in 99 Obsessions<br/></strong>by Kate Summerscale, <em>Profile £16.99</em></p><p>This neat compendium from the prizewinning author of <em>The Suspicions of Mr Whicher</em> charts a broad and intriguing range of fears and madness. Although these phobias and manias are alphabetised, Kate Summerscale suggests groupings (textures, animals, communal crazes) that — accompanied by a lightly erudite introduction — illuminate some of the darker corners of our collective psyche.</p><ft-content type="http://www.ft.com/ontology/content/ImageSet" url="http://api.ft.com/content/a07a6f3b-41cf-47c7-9b79-1c755ebfe54c" data-embedded="true"></ft-content><p><a href="https://amzn.to/3hX9oq0"><strong>Papyrus</strong></a><strong>: The Invention of Books in the Ancient World<br/></strong>by Irene Vallejo, <em>Hodder &amp; Stoughton £25</em></p><p>Described as “a masterpiece” by Mario Vargas Llosa when it was first published in Spain in 2019, this bestselling phenomenon is now available in English. In it, Irene Vallejo recounts the birth of literary culture in the ancient world while interweaving dynamic, thrilling tales that underscore and celebrate the power of words to change the world.</p><ft-content type="http://www.ft.com/ontology/content/ImageSet" url="http://api.ft.com/content/60b81603-654d-46ac-85ef-5865eb7bc1e8" data-embedded="true"></ft-content><p><a href="https://amzn.to/3EIwiKD"><strong>Magnificent Rebels</strong></a><strong>: The First Romantics and the Invention of the Self</strong><br/>by Andrea Wulf, <em>John Murray £25/Knopf $35</em></p><p>Between 1794-1806, the cream of Germany’s intelligentsia descended on the tiny university town of Jena. There, Johann Wolfgang von Goethe mingled with philosophers Friedrich Schelling and Georg Wilhelm Friedrich Hegel, the scientist-explorer Alexander von Humboldt and the playwright Friedrich Schiller during the first flush of Romanticism. Andrea Wulf’s wonderful <a href="https://www.ft.com/content/391e2bcd-f14e-44e5-b6de-40990ce7272f">book</a> brings to life the “Jena set” and a golden age of German culture. </p><experimental><div class="n-content-layout" data-layout-name="card" data-layout-width="fullWidth"><div class="n-content-layout__container"><h3>Tell us what you think</h3><div class="n-content-layout__slot" data-slot-width="true"><p>What are your favourites from this list — and what books have we missed? Tell us in the comments below</p></div></div></div></experimental><p><em>Join our online book group on Facebook at </em><a href="https://www.facebook.com/groups/139838140082304/"><em>FT Books Café</em></a></p></body>`,
13
13
  annotations: [
14
14
  {
15
15
  apiUrl: 'http://api.ft.com/things/9bfe954c-e0ec-4716-ae91-24bd0f7860c9',
@@ -1 +1 @@
1
- {"version":3,"file":"capiObject.js","sourceRoot":"","sources":["../../src/fixtures/capiObject.ts"],"names":[],"mappings":";;;AAEa,QAAA,cAAc,GAAoB;IAC7C,EAAE,EAAE,8DAA8D;IAClE,IAAI,EAAE,4CAA4C;IAClD,KAAK,EAAE,CAAC,4CAA4C,CAAC;IACrD,MAAM,EAAE,EAAE;IACV,KAAK,EAAE,4DAA4D;IACnE,UAAU,EAAE,EAAE;IACd,MAAM,EAAE,uBAAuB;IAC/B,OAAO,EAAE,g4PAAg4P;IACz4P,WAAW,EAAE;QACX;YACE,MAAM,EAAE,+DAA+D;YACvE,UAAU,EAAE,kCAAkC;YAC9C,EAAE,EAAE,+DAA+D;YACnE,SAAS,EAAE,6CAA6C;YACxD,SAAS,EAAE,qBAAqB;YAChC,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACL,uCAAuC;gBACvC,4CAA4C;gBAC5C,kCAAkC;aACnC;SACF;QACD;YACE,MAAM,EAAE,+DAA+D;YACvE,UAAU,EAAE,kCAAkC;YAC9C,EAAE,EAAE,+DAA+D;YACnE,SAAS,EAAE,0CAA0C;YACrD,SAAS,EAAE,sBAAsB;YACjC,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACL,uCAAuC;gBACvC,4CAA4C;gBAC5C,kCAAkC;aACnC;SACF;QACD;YACE,EAAE,EAAE,+DAA+D;YACnE,SAAS,EAAE,iDAAiD;YAC5D,SAAS,EAAE,aAAa;YACxB,MAAM,EAAE,EAAE;YACV,UAAU,EAAE,EAAE;YACd,IAAI,EAAE,EAAE;YACR,KAAK,EAAE,EAAE;SACV;KACF;IACD,SAAS,EAAE;QACT,EAAE,EAAE,EAAE;QACN,IAAI,EAAE,0CAAmD;QACzD,KAAK,EAAE,EAAE;QACT,WAAW,EAAE,EAAE;QACf,SAAS,EAAE,uCAAuC;KACnD;IACD,UAAU,EAAE,EAAE;IACd,WAAW,EAAE,SAAkB;IAC/B,MAAM,EAAE,EAAE;IACV,aAAa,EAAE,EAAE;IACjB,kBAAkB,EAAE,EAAE;CACvB,CAAA"}
1
+ {"version":3,"file":"capiObject.js","sourceRoot":"","sources":["../../src/fixtures/capiObject.ts"],"names":[],"mappings":";;;AAEa,QAAA,cAAc,GAAoB;IAC7C,EAAE,EAAE,8DAA8D;IAClE,IAAI,EAAE,4CAA4C;IAClD,KAAK,EAAE,CAAC,4CAA4C,CAAC;IACrD,MAAM,EAAE,EAAE;IACV,KAAK,EAAE,4DAA4D;IACnE,UAAU,EAAE,EAAE;IACd,MAAM,EAAE,uBAAuB;IAC/B,OAAO,EAAE,g5PAAg5P;IACz5P,WAAW,EAAE;QACX;YACE,MAAM,EAAE,+DAA+D;YACvE,UAAU,EAAE,kCAAkC;YAC9C,EAAE,EAAE,+DAA+D;YACnE,SAAS,EAAE,6CAA6C;YACxD,SAAS,EAAE,qBAAqB;YAChC,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACL,uCAAuC;gBACvC,4CAA4C;gBAC5C,kCAAkC;aACnC;SACF;QACD;YACE,MAAM,EAAE,+DAA+D;YACvE,UAAU,EAAE,kCAAkC;YAC9C,EAAE,EAAE,+DAA+D;YACnE,SAAS,EAAE,0CAA0C;YACrD,SAAS,EAAE,sBAAsB;YACjC,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACL,uCAAuC;gBACvC,4CAA4C;gBAC5C,kCAAkC;aACnC;SACF;QACD;YACE,EAAE,EAAE,+DAA+D;YACnE,SAAS,EAAE,iDAAiD;YAC5D,SAAS,EAAE,aAAa;YACxB,MAAM,EAAE,EAAE;YACV,UAAU,EAAE,EAAE;YACd,IAAI,EAAE,EAAE;YACR,KAAK,EAAE,EAAE;SACV;KACF;IACD,SAAS,EAAE;QACT,EAAE,EAAE,EAAE;QACN,IAAI,EAAE,0CAAmD;QACzD,KAAK,EAAE,EAAE;QACT,WAAW,EAAE,EAAE;QACf,SAAS,EAAE,uCAAuC;KACnD;IACD,UAAU,EAAE,EAAE;IACd,WAAW,EAAE,SAAkB;IAC/B,MAAM,EAAE,EAAE;IACV,aAAa,EAAE,EAAE;IACjB,kBAAkB,EAAE,EAAE;CACvB,CAAA"}
@@ -141,6 +141,7 @@ export declare class CapiResponse {
141
141
  relativeUrl(vanity?: boolean | null): Promise<string>;
142
142
  type(validate?: true): LiteralUnionScalarValues<typeof ContentType>;
143
143
  type(validate: false): LiteralUnionScalarValues<typeof ContentType> | string;
144
+ topperHasImage(): boolean;
144
145
  mainImage(): CAPIImage | null;
145
146
  teaserImage(): CAPIImage | null;
146
147
  rawCapiData(): ContentTypeSchemas;
@@ -23,6 +23,7 @@ const metadata_1 = require("../helpers/metadata");
23
23
  const capi_1 = require("./schemas/capi");
24
24
  const scalars_1 = require("../resolvers/scalars");
25
25
  const literal_union_1 = require("../resolvers/literal-union");
26
+ const Topper_1 = require("./Topper");
26
27
  function flattenFormattedZodIssues(issues, object, path = [], flattened = []) {
27
28
  if (issues._errors.length > 0) {
28
29
  const literalErrors = issues._errors.filter((error) => error.startsWith('Invalid literal value'));
@@ -247,6 +248,10 @@ class CapiResponse {
247
248
  }
248
249
  return type;
249
250
  }
251
+ topperHasImage() {
252
+ const topper = new Topper_1.Topper(this, this.context);
253
+ return topper.images()?.length > 0;
254
+ }
250
255
  mainImage() {
251
256
  return __classPrivateFieldGet(this, _CapiResponse_instances, "m", _CapiResponse_createCAPIImage).call(this, this.capiData.mainImage);
252
257
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CapiResponse.js","sourceRoot":"","sources":["../../src/model/CapiResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;AAMA,mFAAuD;AACvD,6FAA8E;AAC9E,4DAAkC;AAElC,iEAAuE;AACvE,2DAAiE;AAGjE,kEAAkC;AAElC,mCAAmC;AACnC,uCAAmC;AACnC,iEAAwC;AACxC,kDAAiD;AACjD,yCAAwC;AACxC,kDAK6B;AAC7B,8DAGmC;AA2BnC,SAAS,yBAAyB,CAChC,MAA0B,EAC1B,MAAqB,EACrB,OAAiB,EAAE,EACnB,YAAsB,EAAE;IAExB,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE;QAC7B,MAAM,aAAa,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CACpD,KAAK,CAAC,UAAU,CAAC,uBAAuB,CAAC,CAC1C,CAAA;QACD,MAAM,WAAW,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CACvC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,uBAAuB,CAAC,CACtD,CAAA;QAED,IAAI,aAAa,CAAC,MAAM,GAAG,CAAC,EAAE;YAC5B,SAAS,CAAC,IAAI,CACZ,GAAG,IAAI,CAAC,IAAI,CACV,GAAG,CACJ,sCAAsC,MAAM,qBAAqB;gBAChE,aAAa;qBACV,OAAO,CAAC,CAAC,KAAK,EAAE,E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 @@ class RichText {
25
25
  // timers for quicker, asynchronous resolvers from finishing.
26
26
  const tagMappings = this.contentApiData?.type() === 'LiveBlogPost'
27
27
  ? { ...tagMappings_1.commonTagMappings, ...tagMappings_1.liveBlogPostTagMappings }
28
- : { ...tagMappings_1.commonTagMappings, ...tagMappings_1.articleTagMappings };
28
+ : {
29
+ ...tagMappings_1.commonTagMappings,
30
+ ...(0, tagMappings_1.articleTagMappings)(this.contentApiData),
31
+ };
29
32
  setImmediate(() => {
30
33
  try {
31
34
  resolve((0, bodyXMLToTree_1.default)(this.value ?? '', tagMappings, context));
@@ -1 +1 @@
1
- {"version":3,"file":"RichText.js","sourceRoot":"","sources":["../../src/model/RichText.ts"],"names":[],"mappings":";;;;;;AAAA,4FAAmE;AACnE,wFAA+D;AAC/D,sHAA6F;AAI7F,uEAI8C;AAI9C,MAAa,QAAQ;IACnB,YACU,MAAuD,EACvD,KAAoB,EACpB,cAA6B;QAF7B,WAAM,GAAN,MAAM,CAAiD;QACvD,UAAK,GAAL,KAAK,CAAe;QACpB,mBAAc,GAAd,cAAc,CAAe;IACpC,CAAC;IAEJ,GAAG;QACD,OAAO,IAAI,CAAC,KAAK,CAAA;IACnB,CAAC;IAED,KAAK,CAAC,UAAU,CAAC,OAAsB;QACrC,MAAM,IAAI,GAAG,MAAM,IAAI,OAAO,CAAmB,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACnE,yEAAyE;YACzE,wEAAwE;YACxE,sEAAsE;YACtE,6DAA6D;YAC7D,MAAM,WAAW,GACf,IAAI,CAAC,cAAc,EAAE,IAAI,EAAE,KAAK,cAAc;gBAC5C,CAAC,CAAC,EAAE,GAAG,+BAAiB,EAAE,GAAG,qCAAuB,EAAE;gBACtD,CAAC,CAAC,EAAE,GAAG,+BAAiB,EAAE,GAAG,gCAAkB,EAAE,CAAA;YACrD,YAAY,CAAC,GAAG,EAAE;gBAChB,IAAI;oBACF,OAAO,CAAC,IAAA,uBAAa,EAAC,IAAI,CAAC,KAA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AAI,CAAC,cAAc,CAAC;iBAC3C,CAAA;YACP,YAAY,CAAC,GAAG,EAAE;gBAChB,IAAI;oBACF,OAAO,CAAC,IAAA,uBAAa,EAAC,IAAI,CAAC,KAAK,IAAI,EAAE,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC,CAAA;iBAC/D;gBAAC,OAAO,KAAK,EAAE;oBACd,MAAM,CAAC,KAAK,CAAC,CAAA;iBACd;YACH,CAAC,CAAC,CAAA;QACJ,CAAC,CAAC,CAAA;QAEF,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE,UAAU,EAAE,GAAG,IAAA,oCAA0B,EACzE,IAAI,EACJ,IAAI,CAAC,cAAc,CACpB,CAAA;QACD,MAAM,IAAI,GAAG,IAAA,qBAAW,EAAC,IAAI,CAAC,CAAA;QAE9B,OAAO;YACL,IAAI,EAAE,kBAAkB;YACxB,IAAI;YACJ,UAAU;SACX,CAAA;IACH,CAAC;CACF;AA9CD,4BA8CC"}
@@ -4,7 +4,7 @@ const extractTextFromNode = (node) => {
4
4
  if (node.type === 'text') {
5
5
  return node.value;
6
6
  }
7
- else if ('children' in node) {
7
+ else if ('children' in node && node.children) {
8
8
  return node.children.map(extractTextFromNode).join('');
9
9
  }
10
10
  else {
@@ -1 +1 @@
1
- {"version":3,"file":"extractText.js","sourceRoot":"","sources":["../../../src/resolvers/content-tree/extractText.ts"],"names":[],"mappings":";;AAEA,MAAM,mBAAmB,GAAG,CAC1B,IAAkD,EAC1C,EAAE;IACV,IAAI,IAAI,CAAC,IAAI,KAAK,MAAM,EAAE;QACxB,OAAO,IAAI,CAAC,KAAK,CAAA;KAClB;SAAM,IAAI,UAAU,IAAI,IAAI,EAAE;QAC7B,OAAO,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;KACvD;SAAM;QACL,OAAO,EAAE,CAAA;KACV;AACH,CAAC,CAAA;AAED,SAAwB,WAAW,CAAC,IAAsB;IACxD,OAAO,IAAI,CAAC,QAAQ;SACjB,MAAM,CAAC,CAAC,IAAI,EAAiC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,WAAW,CAAC;SAC1E,GAAG,CAAC,mBAAmB,CAAC;SACxB,GAAG,CAAC,CAAC,aAAa,EAAE,EAAE,CAAC,aAAa,CAAC,IAAI,EAAE,CAAC;SAC5C,IAAI,CAAC,MAAM,CAAC,CAAA;AACjB,CAAC;AAND,8BAMC"}
1
+ {"version":3,"file":"extractText.js","sourceRoot":"","sources":["../../../src/resolvers/content-tree/extractText.ts"],"names":[],"mappings":";;AAEA,MAAM,mBAAmB,GAAG,CAC1B,IAAkD,EAC1C,EAAE;IACV,IAAI,IAAI,CAAC,IAAI,KAAK,MAAM,EAAE;QACxB,OAAO,IAAI,CAAC,KAAK,CAAA;KAClB;SAAM,IAAI,UAAU,IAAI,IAAI,IAAI,IAAI,CAAC,QAAQ,EAAE;QAC9C,OAAO,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;KACvD;SAAM;QACL,OAAO,EAAE,CAAA;KACV;AACH,CAAC,CAAA;AAED,SAAwB,WAAW,CAAC,IAAsB;IACxD,OAAO,IAAI,CAAC,QAAQ;SACjB,MAAM,CAAC,CAAC,IAAI,EAAiC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,WAAW,CAAC;SAC1E,GAAG,CAAC,mBAAmB,CAAC;SACxB,GAAG,CAAC,CAAC,aAAa,EAAE,EAAE,CAAC,aAAa,CAAC,IAAI,EAAE,CAAC;SAC5C,IAAI,CAAC,MAAM,CAAC,CAAA;AACjB,CAAC;AAND,8BAMC"}
@@ -1,5 +1,6 @@
1
1
  import type { TagMappings } from './bodyXMLToTree';
2
- declare const articleTagMappings: TagMappings;
2
+ import { CapiResponse } from '../../model/CapiResponse';
3
+ declare const articleTagMappings: (capiData?: CapiResponse) => TagMappings;
3
4
  declare const liveBlogPostTagMappings: TagMappings;
4
5
  declare const commonTagMappings: TagMappings;
5
6
  export declare const getBooleanAttributeValue: ($el: any, attribute: string) => boolean;
@@ -64,16 +64,16 @@ const validScrollytellingOption = (key, attribute) => {
64
64
  ? attribute in scrollytellingOptionsToContentTree[key]
65
65
  : false;
66
66
  };
67
- const articleTagMappings = {
67
+ const articleTagMappings = (capiData) => ({
68
68
  'body > ft-content[type="http://www.ft.com/ontology/content/ImageSet"]:first-child': ($el) => ({
69
- type: 'main-image',
69
+ type: capiData?.topperHasImage() ? 'image-set' : 'main-image',
70
70
  id: $el.attr('url') || '',
71
71
  }),
72
72
  'body > ft-content[type="http://www.ft.com/ontology/content/ImageSet"]:not(:first-child),:not(body) > ft-content[type="http://www.ft.com/ontology/content/ImageSet"]': ($el) => ({
73
73
  type: 'image-set',
74
74
  id: $el.attr('url') || '',
75
75
  }),
76
- };
76
+ });
77
77
  exports.articleTagMappings = articleTagMappings;
78
78
  const liveBlogPostTagMappings = {
79
79
  'body > ft-content[type="http://www.ft.com/ontology/content/ImageSet"]': ($el) => ({
@@ -128,6 +128,20 @@ const commonTagMappings = {
128
128
  type: 'tweet',
129
129
  id: $el.attr('href') || '',
130
130
  }),
131
+ 'scrollable-text > p,h1,h2': ($el, traverse, context) => {
132
+ const textStyle = $el.attr('theme-style');
133
+ if (validScrollytellingOption('textStyle', textStyle)) {
134
+ return {
135
+ type: 'scrolly-heading',
136
+ level: scrollytellingOptionsToContentTree.textStyle[textStyle],
137
+ children: (0, nodePredicates_1.everyChildIsType)('text', traverse(), 'scrolly-heading', context),
138
+ };
139
+ }
140
+ return {
141
+ type: 'paragraph',
142
+ children: (0, nodePredicates_1.childrenOfTypes)(nodePredicates_1.phrasingTypes, traverse(), 'paragraph', context),
143
+ };
144
+ },
131
145
  h1: ($el, traverse, context) => ({
132
146
  type: 'heading',
133
147
  level: 'chapter',
@@ -417,20 +431,6 @@ const commonTagMappings = {
417
431
  type: 'scrolly-copy',
418
432
  children: (0, nodePredicates_1.childrenOfTypes)(['scrolly-heading', 'paragraph'], traverse(), 'scrolly-copy', context),
419
433
  }),
420
- 'scrollable-text > p': ($el, traverse, context) => {
421
- const textStyle = $el.attr('theme-style');
422
- if (validScrollytellingOption('textStyle', textStyle)) {
423
- return {
424
- type: 'scrolly-heading',
425
- level: scrollytellingOptionsToContentTree.textStyle[textStyle],
426
- children: (0, nodePredicates_1.everyChildIsType)('text', traverse(), 'scrolly-heading', context),
427
- };
428
- }
429
- return {
430
- type: 'paragraph',
431
- children: (0, nodePredicates_1.childrenOfTypes)(nodePredicates_1.phrasingTypes, traverse(), 'paragraph', context),
432
- };
433
- },
434
434
  // HACK:KB:20230703 needs to come after `scrollable-text > p`. todo sort by specificity
435
435
  p: ($el, traverse, context) => ({
436
436
  type: 'paragraph',
@@ -1 +1 @@
1
- {"version":3,"file":"tagMappings.js","sourceRoot":"","sources":["../../../src/resolvers/content-tree/tagMappings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAWA,qDAKyB;AAEzB,+FAAgF;AAGhF,MAAM,uBAAuB,GAA6C;IACxE,OAAO,EAAE,MAAM;IACf,IAAI,EAAE,UAAU;CACjB,CAAA;AAED,MAAM,gBAAgB,GAAoD;IACxE,MAAM,EAAE,MAAM;IACd,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;CACnB,CAAA;AAQD,+EAA+E;AAC/E,2EAA2E;AAC3E,MAAM,kCAAkC,GAAG;IACzC,KAAK,EAAE;QACL,GAAG,EAAE,aAAa;KACnB;IACD,QAAQ,EAAE;QACR,GAAG,EAAE,MAAM;QACX,GAAG,EAAE,QAAQ;QACb,GAAG,EAAE,OAAO,EAAE,iBAAiB;KAChC;IACD,OAAO,EAAE;QACP,GAAG,EAAE,iBAAiB;QACtB,GAAG,EAAE,kBAAkB,EAAE,mBAAmB;KAC7C;IACD,SAAS,EAAE;QACT,GAAG,EAA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QAAQ,EAAE,EAAE,WAAW,EAAE,OAAO,CAAC;KAC3E,CAAC;CACH,CAAA;AAWQ,8CAAiB;AAT1B,6EAA6E;AAC7E,6EAA6E;AAC7E,gCAAgC;AACzB,MAAM,wBAAwB,GAAG,CAAC,GAAQ,EAAE,SAAiB,EAAE,EAAE;IACtE,MAAM,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAA;IAC3C,OAAO,CAAC,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAA;AACzE,CAAC,CAAA;AAHY,QAAA,wBAAwB,4BAGpC;AAED,kBAAe,iBAAiB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@financial-times/cp-content-pipeline-schema",
3
- "version": "1.3.5",
3
+ "version": "1.3.6",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -8,7 +8,7 @@ export const baseCapiObject: InternalContent = {
8
8
  title: 'Kwarteng faces test persuading UK watchdog of fiscal plans',
9
9
  standfirst: '',
10
10
  byline: 'Chris Giles in London',
11
- bodyXML: `<body><ft-content type="http://www.ft.com/ontology/content/ImageSet" url="http://api.ft.com/content/c45f7393-62c8-4a6b-b53d-641725351851" data-embedded="true"></ft-content><p><a href="https://amzn.to/3V3cwPP"><strong>Eliot After The Waste Land</strong></a><strong> (Eliot Biographies, 2)<br/></strong>by Robert Crawford, <em>Jonathan Cape £25</em></p><p>After a six-year wait, Robert Crawford follows up <em>Young Eliot</em> (2016) with his <a href="https://www.ft.com/content/210d7f37-115e-4197-b392-ffb094ed2699">second (and final) volume</a> on the life of TS Eliot in time for the centenary of “The Waste Land”. Here, he explores Eliot’s marriage, religious life and draws on the 1,131 letters written to American friend Emily Hale that were only released from embargo in 2020 to probe the poet’s later years with tact and empathy.</p><ft-content type="http://www.ft.com/ontology/content/ImageSet" url="http://api.ft.com/content/bf48b0fc-ad4b-4ce9-a734-faf3e9aab225" data-embedded="true"></ft-content><p><a href="https://amzn.to/3UFKeul"><strong>All the Knowledge in the World</strong></a><strong>: The Extraordinary History of the Encyclopaedia<br/></strong>by Simon Garfield, <em>Weidenfeld &amp; Nicolson £18.99</em></p><p>Simon Garfield, author of quirky histories on everything from fonts to maps, surveys the publishing phenomenon that is the encyclopedia. Tracing its origins from Ancient Greece right up to its modern incarnation in Wikipedia, his handsome book offers an erudite and amusing exploration of the human quest for knowledge.</p><ft-content type="http://www.ft.com/ontology/content/ImageSet" url="http://api.ft.com/content/cc74e2ec-3314-4b9f-81c1-bcfdf9dbaf99" data-embedded="true"></ft-content><p><a href="https://amzn.to/3VbW1AB"><strong>The Waste Land</strong></a><strong>: A Biography of a Poem<br/></strong>by Matthew Hollis, <em>Faber £20</em></p><p>In the 100 years since TS Eliot penned his famous poem, it has taken on a life of its own. So it’s fitting, perhaps, that Matthew Hollis treats Eliot’s work to its own biography. This richly analytical book locates the poem’s genesis in the aftermath of the first world war and the “nightmare agony” of Eliot’s disastrous marriage.</p><ft-content type="http://www.ft.com/ontology/content/ImageSet" url="http://api.ft.com/content/7393690b-e02e-4cdb-a263-57e7d1a6eedf" data-embedded="true"></ft-content><p><a href="https://amzn.to/3OgAT9M"><strong>Endless Flight</strong></a><strong>: The Life of Joseph Roth<br/></strong>by Keiron Pim, <em>Granta £25</em></p><p>“I paint the portrait of the age,” Joseph Roth once claimed. Certainly, his work as a journalist from 1917-1939, dissecting central and eastern Europe in more than a thousand essays and anticipating the collapse of democracy on the continent as well as 19 novels provides an exceptional anatomy of a tumultuous period of history. Keiron Pim’s <a href="https://www.ft.com/content/fee9056b-277e-41b4-9572-9fbac39f957b">biography</a> goes some way to introducing the great Austro-Hungarian writer to a new age.</p><ft-content type="http://www.ft.com/ontology/content/ImageSet" url="http://api.ft.com/content/6e7b048f-d08f-43f7-b1fa-95e98c8ca811" data-embedded="true"></ft-content><p><a href="https://amzn.to/3hX8PfS"><strong>Super-Infinite</strong></a><strong>: The Transformations of John Donne<br/></strong>by Katherine Rundell, <em>Faber £16.99</em></p><p>Katherine Rundell, a Fellow of All Souls College, Oxford, has produced a remarkable life of John Donne, the great poet of love, sex and death. Winner of this year’s Baillie Gifford Prize, her <a href="https://www.ft.com/content/c229396d-5448-44fa-b423-b018695d65d8">biography</a> of the man who was at once soldier, poet, prisoner and priest is sensitive and witty, capturing the essence of a tricky subject. </p><experimental><div class="n-content-layout" data-layout-name="card" data-layout-width="true"><div class="n-content-layout__container"><h2>Books of the Year 2022</h2><div class="n-content-layout__slot" data-slot-width="true"><h4></h4><div class="n-content-layout__slot" data-slot-width="true"><img alt="" data-copyright="" data-image-type="image" longdesc="" src="https://d1e00ek4ebabms.cloudfront.net/production/43c41a77-ab10-40ed-a2a2-efa99ef32a10.jpg"/></div></div><div class="n-content-layout__slot" data-slot-width="true"><h4></h4><div class="n-content-layout__slot" data-slot-width="true"><p>All this week, FT writers and critics share <a href="https://www.ft.com/content/2dd61d03-13ac-4278-8214-678c1d9a33c1">their favourites</a>. Some highlights are: <br/><br/><strong>Monday:</strong> <a href="https://www.ft.com/content/416e1e1d-22e7-439b-9388-5d0cd56f5a9c">Business</a> by Andrew Hill<br/><strong>Tuesday:</strong> <a href="https://www.ft.com/content/db8aaeb6-141f-4a7c-b364-2296fb0d8065">Environment</a> by Pilita Clark<br/><strong>Wednesday:</strong> <a href="https://www.ft.com/content/634c1974-bc76-4f56-9548-274816dcc638">Economics</a> by Martin Wolf<br/><strong>Thursday:</strong> Fiction by Laura Battle<br/><strong>Friday:</strong> Politics by Gideon Rachman<br/><strong>Saturday:</strong> Critics’ choice</p></div></div></div></div></experimental><ft-content type="http://www.ft.com/ontology/content/ImageSet" url="http://api.ft.com/content/fde6576e-ab0c-41ec-8e18-bcdb3d6c21c0" data-embedded="true"></ft-content><p><a href="https://amzn.to/3gn2kCl"><strong>The Book of Phobias and Manias</strong></a><strong>: A History of the World in 99 Obsessions<br/></strong>by Kate Summerscale, <em>Profile £16.99</em></p><p>This neat compendium from the prizewinning author of <em>The Suspicions of Mr Whicher</em> charts a broad and intriguing range of fears and madness. Although these phobias and manias are alphabetised, Kate Summerscale suggests groupings (textures, animals, communal crazes) that — accompanied by a lightly erudite introduction — illuminate some of the darker corners of our collective psyche.</p><ft-content type="http://www.ft.com/ontology/content/ImageSet" url="http://api.ft.com/content/a07a6f3b-41cf-47c7-9b79-1c755ebfe54c" data-embedded="true"></ft-content><p><a href="https://amzn.to/3hX9oq0"><strong>Papyrus</strong></a><strong>: The Invention of Books in the Ancient World<br/></strong>by Irene Vallejo, <em>Hodder &amp; Stoughton £25</em></p><p>Described as “a masterpiece” by Mario Vargas Llosa when it was first published in Spain in 2019, this bestselling phenomenon is now available in English. In it, Irene Vallejo recounts the birth of literary culture in the ancient world while interweaving dynamic, thrilling tales that underscore and celebrate the power of words to change the world.</p><ft-content type="http://www.ft.com/ontology/content/ImageSet" url="http://api.ft.com/content/60b81603-654d-46ac-85ef-5865eb7bc1e8" data-embedded="true"></ft-content><p><a href="https://amzn.to/3EIwiKD"><strong>Magnificent Rebels</strong></a><strong>: The First Romantics and the Invention of the Self</strong><br/>by Andrea Wulf, <em>John Murray £25/Knopf $35</em></p><p>Between 1794-1806, the cream of Germany’s intelligentsia descended on the tiny university town of Jena. There, Johann Wolfgang von Goethe mingled with philosophers Friedrich Schelling and Georg Wilhelm Friedrich Hegel, the scientist-explorer Alexander von Humboldt and the playwright Friedrich Schiller during the first flush of Romanticism. Andrea Wulf’s wonderful <a href="https://www.ft.com/content/391e2bcd-f14e-44e5-b6de-40990ce7272f">book</a> brings to life the “Jena set” and a golden age of German culture. </p><experimental><div class="n-content-layout" data-layout-name="card" data-layout-width="fullWidth"><div class="n-content-layout__container"><h3>Tell us what you think</h3><div class="n-content-layout__slot" data-slot-width="true"><p>What are your favourites from this list — and what books have we missed? Tell us in the comments below</p></div></div></div></experimental><p><em>Join our online book group on Facebook at </em><a href="https://www.facebook.com/groups/139838140082304/"><em>FT Books Café</em></a></p></body>`,
11
+ bodyXML: `<body><ft-content type="http://www.ft.com/ontology/content/ImageSet" url="http://api.ft.com/content/c45f7393-62c8-4a6b-b53d-641725351851" data-embedded="true"></ft-content><p><a href="https://amzn.to/3V3cwPP"><strong>Eliot After The Waste Land</strong></a><strong> (Eliot Biographies, 2)<br/></strong>by Robert Crawford, <em>Jonathan Cape £25</em></p><p>After a six-year wait, Robert Crawford follows up <em>Young Eliot</em> (2016) with his <a href="https://www.ft.com/content/210d7f37-115e-4197-b392-ffb094ed2699">second (and final) volume</a> on the life of TS Eliot in time for the centenary of “The Waste Land”. Here, he explores Eliot’s marriage, religious life and draws on the 1,131 letters written to American friend Emily Hale that were only released from embargo in 2020 to probe the poet’s later years with tact and empathy.</p><ft-content type="http://www.ft.com/ontology/content/ImageSet" url="http://api.ft.com/content/bf48b0fc-ad4b-4ce9-a734-faf3e9aab225" data-embedded="true"></ft-content><p><a href="https://amzn.to/3UFKeul"><strong>All the Knowledge in the World</strong></a><strong>: The Extraordinary History of the Encyclopaedia<br/></strong>by Simon Garfield, <em>Weidenfeld &amp; Nicolson £18.99</em></p><p>Simon Garfield, author of quirky histories on everything from fonts to maps, surveys the publishing phenomenon that is the encyclopedia. Tracing its origins from Ancient Greece right up to its modern incarnation in Wikipedia, his handsome book offers an erudite and amusing exploration of the human quest for knowledge.</p><ft-content type="http://www.ft.com/ontology/content/ImageSet" url="http://api.ft.com/content/cc74e2ec-3314-4b9f-81c1-bcfdf9dbaf99" data-embedded="true"></ft-content><p><a href="https://amzn.to/3VbW1AB"><strong>The Waste Land</strong></a><strong>: A Biography of a Poem<br/></strong>by Matthew Hollis, <em>Faber £20</em></p><p>In the 100 years since TS Eliot penned his famous poem, it has taken on a life of its own. So it’s fitting, perhaps, that Matthew Hollis treats Eliot’s work to its own biography. This richly analytical book locates the poem’s genesis in the aftermath of the first world war and the “nightmare agony” of Eliot’s disastrous marriage.</p><ft-content type="http://www.ft.com/ontology/content/ImageSet" url="http://api.ft.com/content/7393690b-e02e-4cdb-a263-57e7d1a6eedf" data-embedded="true"></ft-content><p><a href="https://amzn.to/3OgAT9M"><strong>Endless Flight</strong></a><strong>: The Life of Joseph Roth<br/></strong>by Keiron Pim, <em>Granta £25</em></p><p>“I paint the portrait of the age,” Joseph Roth once claimed. Certainly, his work as a journalist from 1917-1939, dissecting central and eastern Europe in more than a thousand essays and anticipating the collapse of democracy on the continent as well as 19 novels provides an exceptional anatomy of a tumultuous period of history. Keiron Pim’s <a href="https://www.ft.com/content/fee9056b-277e-41b4-9572-9fbac39f957b">biography</a> goes some way to introducing the great Austro-Hungarian writer to a new age.</p><ft-content type="http://www.ft.com/ontology/content/ImageSet" url="http://api.ft.com/content/6e7b048f-d08f-43f7-b1fa-95e98c8ca811" data-embedded="true"></ft-content><p><a href="https://amzn.to/3hX8PfS"><strong>Super-Infinite</strong></a><strong>: The Transformations of John Donne<br/></strong>by Katherine Rundell, <em>Faber £16.99</em></p><p>Katherine Rundell, a Fellow of All Souls College, Oxford, has produced a remarkable life of John Donne, the great poet of love, sex and death. Winner of this year’s Baillie Gifford Prize, her <a href="https://www.ft.com/content/c229396d-5448-44fa-b423-b018695d65d8">biography</a> of the man who was at once soldier, poet, prisoner and priest is sensitive and witty, capturing the essence of a tricky subject. </p><experimental><div class="n-content-layout" data-layout-name="card" data-layout-width="true"><div class="n-content-layout__container"><h2 theme-style="3">Books of the Year 2022</h2><div class="n-content-layout__slot" data-slot-width="true"><h4></h4><div class="n-content-layout__slot" data-slot-width="true"><img alt="" data-copyright="" data-image-type="image" longdesc="" src="https://d1e00ek4ebabms.cloudfront.net/production/43c41a77-ab10-40ed-a2a2-efa99ef32a10.jpg"/></div></div><div class="n-content-layout__slot" data-slot-width="true"><h4></h4><div class="n-content-layout__slot" data-slot-width="true"><p>All this week, FT writers and critics share <a href="https://www.ft.com/content/2dd61d03-13ac-4278-8214-678c1d9a33c1">their favourites</a>. Some highlights are: <br/><br/><strong>Monday:</strong> <a href="https://www.ft.com/content/416e1e1d-22e7-439b-9388-5d0cd56f5a9c">Business</a> by Andrew Hill<br/><strong>Tuesday:</strong> <a href="https://www.ft.com/content/db8aaeb6-141f-4a7c-b364-2296fb0d8065">Environment</a> by Pilita Clark<br/><strong>Wednesday:</strong> <a href="https://www.ft.com/content/634c1974-bc76-4f56-9548-274816dcc638">Economics</a> by Martin Wolf<br/><strong>Thursday:</strong> Fiction by Laura Battle<br/><strong>Friday:</strong> Politics by Gideon Rachman<br/><strong>Saturday:</strong> Critics’ choice</p></div></div></div></div></experimental><ft-content type="http://www.ft.com/ontology/content/ImageSet" url="http://api.ft.com/content/fde6576e-ab0c-41ec-8e18-bcdb3d6c21c0" data-embedded="true"></ft-content><p><a href="https://amzn.to/3gn2kCl"><strong>The Book of Phobias and Manias</strong></a><strong>: A History of the World in 99 Obsessions<br/></strong>by Kate Summerscale, <em>Profile £16.99</em></p><p>This neat compendium from the prizewinning author of <em>The Suspicions of Mr Whicher</em> charts a broad and intriguing range of fears and madness. Although these phobias and manias are alphabetised, Kate Summerscale suggests groupings (textures, animals, communal crazes) that — accompanied by a lightly erudite introduction — illuminate some of the darker corners of our collective psyche.</p><ft-content type="http://www.ft.com/ontology/content/ImageSet" url="http://api.ft.com/content/a07a6f3b-41cf-47c7-9b79-1c755ebfe54c" data-embedded="true"></ft-content><p><a href="https://amzn.to/3hX9oq0"><strong>Papyrus</strong></a><strong>: The Invention of Books in the Ancient World<br/></strong>by Irene Vallejo, <em>Hodder &amp; Stoughton £25</em></p><p>Described as “a masterpiece” by Mario Vargas Llosa when it was first published in Spain in 2019, this bestselling phenomenon is now available in English. In it, Irene Vallejo recounts the birth of literary culture in the ancient world while interweaving dynamic, thrilling tales that underscore and celebrate the power of words to change the world.</p><ft-content type="http://www.ft.com/ontology/content/ImageSet" url="http://api.ft.com/content/60b81603-654d-46ac-85ef-5865eb7bc1e8" data-embedded="true"></ft-content><p><a href="https://amzn.to/3EIwiKD"><strong>Magnificent Rebels</strong></a><strong>: The First Romantics and the Invention of the Self</strong><br/>by Andrea Wulf, <em>John Murray £25/Knopf $35</em></p><p>Between 1794-1806, the cream of Germany’s intelligentsia descended on the tiny university town of Jena. There, Johann Wolfgang von Goethe mingled with philosophers Friedrich Schelling and Georg Wilhelm Friedrich Hegel, the scientist-explorer Alexander von Humboldt and the playwright Friedrich Schiller during the first flush of Romanticism. Andrea Wulf’s wonderful <a href="https://www.ft.com/content/391e2bcd-f14e-44e5-b6de-40990ce7272f">book</a> brings to life the “Jena set” and a golden age of German culture. </p><experimental><div class="n-content-layout" data-layout-name="card" data-layout-width="fullWidth"><div class="n-content-layout__container"><h3>Tell us what you think</h3><div class="n-content-layout__slot" data-slot-width="true"><p>What are your favourites from this list — and what books have we missed? Tell us in the comments below</p></div></div></div></experimental><p><em>Join our online book group on Facebook at </em><a href="https://www.facebook.com/groups/139838140082304/"><em>FT Books Café</em></a></p></body>`,
12
12
  annotations: [
13
13
  {
14
14
  apiUrl: 'http://api.ft.com/things/9bfe954c-e0ec-4716-ae91-24bd0f7860c9',
@@ -31,6 +31,7 @@ import {
31
31
  } from '../resolvers/literal-union'
32
32
 
33
33
  import { ContentPackageContainsArgs, Media } from '../generated'
34
+ import { Topper } from './Topper'
34
35
 
35
36
  type Design = {
36
37
  theme: LiteralUnionScalarValues<typeof PackageDesign>
@@ -373,6 +374,11 @@ export class CapiResponse {
373
374
  return type
374
375
  }
375
376
 
377
+ topperHasImage() {
378
+ const topper = new Topper(this, this.context)
379
+ return topper.images()?.length > 0
380
+ }
381
+
376
382
  mainImage() {
377
383
  return this.#createCAPIImage(this.capiData.mainImage)
378
384
  }
@@ -29,10 +29,14 @@ export class RichText {
29
29
  // prevents it from blocking the event loop, so the app can still handle
30
30
  // requests, and it won't skew resolver timing metrics by blocking the
31
31
  // timers for quicker, asynchronous resolvers from finishing.
32
+
32
33
  const tagMappings =
33
34
  this.contentApiData?.type() === 'LiveBlogPost'
34
35
  ? { ...commonTagMappings, ...liveBlogPostTagMappings }
35
- : { ...commonTagMappings, ...articleTagMappings }
36
+ : {
37
+ ...commonTagMappings,
38
+ ...articleTagMappings(this.contentApiData),
39
+ }
36
40
  setImmediate(() => {
37
41
  try {
38
42
  resolve(bodyXMLToTree(this.value ?? '', tagMappings, context))
@@ -510,7 +510,7 @@ Join our online book group on Facebook at FT Books Café",
510
510
  },
511
511
  ],
512
512
  "level": "subheading",
513
- "type": "heading",
513
+ "type": "scrolly-heading",
514
514
  },
515
515
  Object {
516
516
  "children": Array [
@@ -5,7 +5,7 @@ const extractTextFromNode = (
5
5
  ): string => {
6
6
  if (node.type === 'text') {
7
7
  return node.value
8
- } else if ('children' in node) {
8
+ } else if ('children' in node && node.children) {
9
9
  return node.children.map(extractTextFromNode).join('')
10
10
  } else {
11
11
  return ''
@@ -18,6 +18,7 @@ import {
18
18
 
19
19
  import * as scrollytelling from '@financial-times/n-scrollytelling-image/server'
20
20
  import { LiteralToPrimitiveDeep } from 'type-fest'
21
+ import { CapiResponse } from '../../model/CapiResponse'
21
22
 
22
23
  const tableResponsiveStyleMap: Record<string, Table['responsiveStyle']> = {
23
24
  stacked: 'flat',
@@ -79,10 +80,10 @@ const validScrollytellingOption = <
79
80
  : false
80
81
  }
81
82
 
82
- const articleTagMappings: TagMappings = {
83
+ const articleTagMappings = (capiData?: CapiResponse): TagMappings => ({
83
84
  'body > ft-content[type="http://www.ft.com/ontology/content/ImageSet"]:first-child':
84
85
  ($el) => ({
85
- type: 'main-image',
86
+ type: capiData?.topperHasImage() ? 'image-set' : 'main-image',
86
87
  id: $el.attr('url') || '',
87
88
  }),
88
89
  'body > ft-content[type="http://www.ft.com/ontology/content/ImageSet"]:not(:first-child),:not(body) > ft-content[type="http://www.ft.com/ontology/content/ImageSet"]':
@@ -90,7 +91,7 @@ const articleTagMappings: TagMappings = {
90
91
  type: 'image-set',
91
92
  id: $el.attr('url') || '',
92
93
  }),
93
- }
94
+ })
94
95
 
95
96
  const liveBlogPostTagMappings: TagMappings = {
96
97
  'body > ft-content[type="http://www.ft.com/ontology/content/ImageSet"]': (
@@ -152,6 +153,33 @@ const commonTagMappings: TagMappings = {
152
153
  type: 'tweet',
153
154
  id: $el.attr('href') || '',
154
155
  }),
156
+
157
+ 'scrollable-text > p,h1,h2': ($el, traverse, context) => {
158
+ const textStyle = $el.attr('theme-style')
159
+
160
+ if (validScrollytellingOption('textStyle', textStyle)) {
161
+ return {
162
+ type: 'scrolly-heading',
163
+ level: scrollytellingOptionsToContentTree.textStyle[textStyle],
164
+ children: everyChildIsType(
165
+ 'text',
166
+ traverse(),
167
+ 'scrolly-heading',
168
+ context
169
+ ),
170
+ }
171
+ }
172
+
173
+ return {
174
+ type: 'paragraph',
175
+ children: childrenOfTypes(
176
+ phrasingTypes,
177
+ traverse(),
178
+ 'paragraph',
179
+ context
180
+ ),
181
+ }
182
+ },
155
183
  h1: ($el, traverse, context) => ({
156
184
  type: 'heading',
157
185
  level: 'chapter',
@@ -552,33 +580,6 @@ const commonTagMappings: TagMappings = {
552
580
  ),
553
581
  }),
554
582
 
555
- 'scrollable-text > p': ($el, traverse, context) => {
556
- const textStyle = $el.attr('theme-style')
557
-
558
- if (validScrollytellingOption('textStyle', textStyle)) {
559
- return {
560
- type: 'scrolly-heading',
561
- level: scrollytellingOptionsToContentTree.textStyle[textStyle],
562
- children: everyChildIsType(
563
- 'text',
564
- traverse(),
565
- 'scrolly-heading',
566
- context
567
- ),
568
- }
569
- }
570
-
571
- return {
572
- type: 'paragraph',
573
- children: childrenOfTypes(
574
- phrasingTypes,
575
- traverse(),
576
- 'paragraph',
577
- context
578
- ),
579
- }
580
- },
581
-
582
583
  // HACK:KB:20230703 needs to come after `scrollable-text > p`. todo sort by specificity
583
584
  p: ($el, traverse, context) => ({
584
585
  type: 'paragraph',