@newskit-render/feed 1.8.5 → 1.8.6-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (154) hide show
  1. package/README.md +4 -4
  2. package/dist/cjs/config/index.d.ts +1 -0
  3. package/dist/cjs/config/index.js +9 -0
  4. package/dist/cjs/config/index.js.map +1 -0
  5. package/dist/cjs/helpers/client.d.ts +2 -0
  6. package/dist/cjs/helpers/client.js +35 -0
  7. package/dist/cjs/helpers/client.js.map +1 -0
  8. package/dist/cjs/helpers/createSitemap/buildSiteMapImages.d.ts +2 -2
  9. package/dist/cjs/helpers/createSitemap/buildSiteMapImages.js +2 -2
  10. package/dist/cjs/helpers/createSitemap/buildSiteMapImages.js.map +1 -1
  11. package/dist/cjs/helpers/createSitemap/buildSiteMapVideos.d.ts +2 -10
  12. package/dist/cjs/helpers/createSitemap/buildSiteMapVideos.js +8 -5
  13. package/dist/cjs/helpers/createSitemap/buildSiteMapVideos.js.map +1 -1
  14. package/dist/cjs/helpers/createSitemap/createArticleSitemap.d.ts +2 -1
  15. package/dist/cjs/helpers/createSitemap/createArticleSitemap.js +23 -14
  16. package/dist/cjs/helpers/createSitemap/createArticleSitemap.js.map +1 -1
  17. package/dist/cjs/helpers/createSitemap/createPagesSitemap.d.ts +2 -3
  18. package/dist/cjs/helpers/createSitemap/createPagesSitemap.js +14 -15
  19. package/dist/cjs/helpers/createSitemap/createPagesSitemap.js.map +1 -1
  20. package/dist/cjs/helpers/createSitemap/getCategorySlug.d.ts +2 -2
  21. package/dist/cjs/helpers/createSitemap/getCategorySlug.js +2 -1
  22. package/dist/cjs/helpers/createSitemap/getCategorySlug.js.map +1 -1
  23. package/dist/cjs/helpers/queryArticleList.d.ts +4 -3
  24. package/dist/cjs/helpers/queryArticleList.js +28 -39
  25. package/dist/cjs/helpers/queryArticleList.js.map +1 -1
  26. package/dist/cjs/helpers/queryPages.d.ts +3 -3
  27. package/dist/cjs/helpers/queryPages.js +35 -33
  28. package/dist/cjs/helpers/queryPages.js.map +1 -1
  29. package/dist/cjs/helpers/types.d.ts +11 -35
  30. package/dist/cjs/helpers/types.js.map +1 -1
  31. package/dist/cjs/rss/RSSFeedResolver.js +3 -5
  32. package/dist/cjs/rss/RSSFeedResolver.js.map +1 -1
  33. package/dist/cjs/rss/__tests__/mocks.d.ts +118 -194
  34. package/dist/cjs/rss/__tests__/mocks.js +408 -212
  35. package/dist/cjs/rss/__tests__/mocks.js.map +1 -1
  36. package/dist/cjs/rss/contentEncodedUtils/createBlockElements.d.ts +1 -0
  37. package/dist/cjs/rss/contentEncodedUtils/createBlockElements.js +6 -4
  38. package/dist/cjs/rss/contentEncodedUtils/createBlockElements.js.map +1 -1
  39. package/dist/cjs/rss/contentEncodedUtils/createImage.d.ts +1 -1
  40. package/dist/cjs/rss/contentEncodedUtils/createImage.js +1 -1
  41. package/dist/cjs/rss/contentEncodedUtils/createImage.js.map +1 -1
  42. package/dist/cjs/rss/contentEncodedUtils/createItems.js +7 -7
  43. package/dist/cjs/rss/contentEncodedUtils/createItems.js.map +1 -1
  44. package/dist/cjs/rss/contentEncodedUtils/createParagraph.js +13 -8
  45. package/dist/cjs/rss/contentEncodedUtils/createParagraph.js.map +1 -1
  46. package/dist/cjs/rss/contentEncodedUtils/createRSSFeed.js +1 -1
  47. package/dist/cjs/rss/contentEncodedUtils/createRSSFeed.js.map +1 -1
  48. package/dist/cjs/rss/contentEncodedUtils/createSummary.d.ts +2 -2
  49. package/dist/cjs/rss/contentEncodedUtils/createSummary.js +5 -7
  50. package/dist/cjs/rss/contentEncodedUtils/createSummary.js.map +1 -1
  51. package/dist/cjs/rss/helpers/articleHelper.d.ts +1 -1
  52. package/dist/cjs/rss/helpers/articleHelper.js +12 -13
  53. package/dist/cjs/rss/helpers/articleHelper.js.map +1 -1
  54. package/dist/cjs/rss/helpers/buildBodyDataTypesMap.js +12 -6
  55. package/dist/cjs/rss/helpers/buildBodyDataTypesMap.js.map +1 -1
  56. package/dist/cjs/rss/helpers/buildLists.js +4 -2
  57. package/dist/cjs/rss/helpers/buildLists.js.map +1 -1
  58. package/dist/cjs/rss/queries/getArticleList.js +1 -1
  59. package/dist/cjs/rss/queries/getArticleList.js.map +1 -1
  60. package/dist/cjs/rss/types.d.ts +87 -38
  61. package/dist/cjs/rss/types.js +1 -0
  62. package/dist/cjs/rss/types.js.map +1 -1
  63. package/dist/cjs/sitemap/__tests__/mocks.d.ts +5 -4
  64. package/dist/cjs/sitemap/__tests__/mocks.js +94 -56
  65. package/dist/cjs/sitemap/__tests__/mocks.js.map +1 -1
  66. package/dist/cjs/sitemap/queries/getArticleList.js +1 -1
  67. package/dist/cjs/sitemap/queries/getArticleList.js.map +1 -1
  68. package/dist/cjs/sitemap/queries/getCompetitions.d.ts +1 -1
  69. package/dist/cjs/sitemap/queries/getCompetitions.js +2 -2
  70. package/dist/cjs/sitemap/queries/getCompetitions.js.map +1 -1
  71. package/dist/cjs/sitemap/queries/getPages.d.ts +1 -1
  72. package/dist/cjs/sitemap/queries/getPages.js +2 -2
  73. package/dist/cjs/sitemap/queries/getPages.js.map +1 -1
  74. package/dist/cjs/sitemap/resolvers/genericSitemapResolver.js +12 -13
  75. package/dist/cjs/sitemap/resolvers/genericSitemapResolver.js.map +1 -1
  76. package/dist/cjs/sitemap/resolvers/newsSitemapResolver.js +3 -5
  77. package/dist/cjs/sitemap/resolvers/newsSitemapResolver.js.map +1 -1
  78. package/dist/esm/config/index.d.ts +1 -0
  79. package/dist/esm/config/index.js +6 -0
  80. package/dist/esm/config/index.js.map +1 -0
  81. package/dist/esm/helpers/client.d.ts +2 -0
  82. package/dist/esm/helpers/client.js +32 -0
  83. package/dist/esm/helpers/client.js.map +1 -0
  84. package/dist/esm/helpers/createSitemap/buildSiteMapImages.d.ts +2 -2
  85. package/dist/esm/helpers/createSitemap/buildSiteMapImages.js +2 -2
  86. package/dist/esm/helpers/createSitemap/buildSiteMapImages.js.map +1 -1
  87. package/dist/esm/helpers/createSitemap/buildSiteMapVideos.d.ts +2 -10
  88. package/dist/esm/helpers/createSitemap/buildSiteMapVideos.js +8 -5
  89. package/dist/esm/helpers/createSitemap/buildSiteMapVideos.js.map +1 -1
  90. package/dist/esm/helpers/createSitemap/createArticleSitemap.d.ts +2 -1
  91. package/dist/esm/helpers/createSitemap/createArticleSitemap.js +23 -14
  92. package/dist/esm/helpers/createSitemap/createArticleSitemap.js.map +1 -1
  93. package/dist/esm/helpers/createSitemap/createPagesSitemap.d.ts +2 -3
  94. package/dist/esm/helpers/createSitemap/createPagesSitemap.js +14 -15
  95. package/dist/esm/helpers/createSitemap/createPagesSitemap.js.map +1 -1
  96. package/dist/esm/helpers/createSitemap/getCategorySlug.d.ts +2 -2
  97. package/dist/esm/helpers/createSitemap/getCategorySlug.js +2 -1
  98. package/dist/esm/helpers/createSitemap/getCategorySlug.js.map +1 -1
  99. package/dist/esm/helpers/queryArticleList.d.ts +4 -3
  100. package/dist/esm/helpers/queryArticleList.js +28 -39
  101. package/dist/esm/helpers/queryArticleList.js.map +1 -1
  102. package/dist/esm/helpers/queryPages.d.ts +3 -3
  103. package/dist/esm/helpers/queryPages.js +36 -34
  104. package/dist/esm/helpers/queryPages.js.map +1 -1
  105. package/dist/esm/helpers/types.d.ts +11 -35
  106. package/dist/esm/helpers/types.js.map +1 -1
  107. package/dist/esm/rss/RSSFeedResolver.js +4 -6
  108. package/dist/esm/rss/RSSFeedResolver.js.map +1 -1
  109. package/dist/esm/rss/__tests__/mocks.d.ts +118 -194
  110. package/dist/esm/rss/__tests__/mocks.js +408 -212
  111. package/dist/esm/rss/__tests__/mocks.js.map +1 -1
  112. package/dist/esm/rss/contentEncodedUtils/createBlockElements.d.ts +1 -0
  113. package/dist/esm/rss/contentEncodedUtils/createBlockElements.js +4 -3
  114. package/dist/esm/rss/contentEncodedUtils/createBlockElements.js.map +1 -1
  115. package/dist/esm/rss/contentEncodedUtils/createImage.d.ts +1 -1
  116. package/dist/esm/rss/contentEncodedUtils/createImage.js +1 -1
  117. package/dist/esm/rss/contentEncodedUtils/createImage.js.map +1 -1
  118. package/dist/esm/rss/contentEncodedUtils/createItems.js +7 -7
  119. package/dist/esm/rss/contentEncodedUtils/createItems.js.map +1 -1
  120. package/dist/esm/rss/contentEncodedUtils/createParagraph.js +14 -9
  121. package/dist/esm/rss/contentEncodedUtils/createParagraph.js.map +1 -1
  122. package/dist/esm/rss/contentEncodedUtils/createRSSFeed.js +1 -1
  123. package/dist/esm/rss/contentEncodedUtils/createRSSFeed.js.map +1 -1
  124. package/dist/esm/rss/contentEncodedUtils/createSummary.d.ts +2 -2
  125. package/dist/esm/rss/contentEncodedUtils/createSummary.js +5 -7
  126. package/dist/esm/rss/contentEncodedUtils/createSummary.js.map +1 -1
  127. package/dist/esm/rss/helpers/articleHelper.d.ts +1 -1
  128. package/dist/esm/rss/helpers/articleHelper.js +12 -13
  129. package/dist/esm/rss/helpers/articleHelper.js.map +1 -1
  130. package/dist/esm/rss/helpers/buildBodyDataTypesMap.js +12 -6
  131. package/dist/esm/rss/helpers/buildBodyDataTypesMap.js.map +1 -1
  132. package/dist/esm/rss/helpers/buildLists.js +5 -3
  133. package/dist/esm/rss/helpers/buildLists.js.map +1 -1
  134. package/dist/esm/rss/queries/getArticleList.js +1 -1
  135. package/dist/esm/rss/queries/getArticleList.js.map +1 -1
  136. package/dist/esm/rss/types.d.ts +87 -38
  137. package/dist/esm/rss/types.js +1 -0
  138. package/dist/esm/rss/types.js.map +1 -1
  139. package/dist/esm/sitemap/__tests__/mocks.d.ts +5 -4
  140. package/dist/esm/sitemap/__tests__/mocks.js +94 -56
  141. package/dist/esm/sitemap/__tests__/mocks.js.map +1 -1
  142. package/dist/esm/sitemap/queries/getArticleList.js +1 -1
  143. package/dist/esm/sitemap/queries/getArticleList.js.map +1 -1
  144. package/dist/esm/sitemap/queries/getCompetitions.d.ts +1 -1
  145. package/dist/esm/sitemap/queries/getCompetitions.js +1 -1
  146. package/dist/esm/sitemap/queries/getCompetitions.js.map +1 -1
  147. package/dist/esm/sitemap/queries/getPages.d.ts +1 -1
  148. package/dist/esm/sitemap/queries/getPages.js +1 -1
  149. package/dist/esm/sitemap/queries/getPages.js.map +1 -1
  150. package/dist/esm/sitemap/resolvers/genericSitemapResolver.js +13 -14
  151. package/dist/esm/sitemap/resolvers/genericSitemapResolver.js.map +1 -1
  152. package/dist/esm/sitemap/resolvers/newsSitemapResolver.js +3 -5
  153. package/dist/esm/sitemap/resolvers/newsSitemapResolver.js.map +1 -1
  154. package/package.json +6 -2
@@ -21,301 +21,486 @@ exports.titeAttributesdefaultMock = {
21
21
  };
22
22
  exports.articleListMock = [
23
23
  {
24
- categories: [{ slug: 'entertainment' }],
25
- bylines: [{ name: 'Jim Morrison' }],
26
- summary: null,
27
- publisher: 'VIRGIN',
28
- publishedDateTime: '2022-04-04T08:50:29.000Z',
29
- updatedDateTime: '2022-04-12T11:17:09.000Z',
30
- headline: 'It has survived not only five centuries',
31
24
  id: '32596',
32
- body: [],
33
- },
34
- {
35
- categories: [],
36
- bylines: null,
37
- summary: {
38
- children: [
39
- {
40
- text: 'Some test description',
41
- },
42
- ],
25
+ type: 'article',
26
+ attributes: {
27
+ headline: 'It has survived not only five centuries',
28
+ slug: 'it-has-survived',
29
+ byline: [{ name: 'Jim Morrison' }],
30
+ datePublished: '2022-04-04T08:50:29Z',
31
+ dateUpdated: '2022-04-12T11:17:09Z',
32
+ body: [],
43
33
  },
44
- publisher: 'VIRGIN',
45
- updatedDateTime: '2022-01-12T01:17:09.000Z',
46
- publishedDateTime: '2022-04-04T08:31:44.000Z',
47
- headline: 'Testing Image Credits',
48
- id: '32594',
49
- body: [],
50
- },
51
- {
52
- categories: [{ slug: 'tv-film' }, { slug: 'entertainment' }],
53
- bylines: [{ name: 'Janis Joplin' }],
54
- summary: {
55
- children: [
56
- {
57
- text: 'Some test description 2',
58
- },
59
- ],
34
+ relationships: {
35
+ categories: {
36
+ data: [
37
+ {
38
+ id: 'entertainment id',
39
+ type: 'category',
40
+ category: {
41
+ data: {
42
+ attributes: {
43
+ title: 'entertainment title',
44
+ slug: 'entertainment',
45
+ },
46
+ },
47
+ },
48
+ },
49
+ ],
50
+ },
60
51
  },
61
- publisher: 'VIRGIN',
62
- publishedDateTime: '2022-03-25T23:59:00.000Z',
63
- updatedDateTime: '2022-03-30T10:25:09.000Z',
64
- headline: 'test publish article after fix deployed',
65
- id: '32579',
66
- body: [],
67
52
  },
68
53
  {
69
- categories: [{ name: 'test' }],
70
- bylines: null,
71
- summary: {
72
- children: [
73
- {
74
- text: 'Some test description 3',
75
- },
76
- ],
54
+ id: '32594',
55
+ type: 'article',
56
+ attributes: {
57
+ headline: 'Testing Image Credits',
58
+ slug: 'testing',
59
+ byline: [],
60
+ datePublished: '2022-04-04T08:31:44Z',
61
+ dateUpdated: '2022-01-12T01:17:09Z',
62
+ body: [],
77
63
  },
78
- publisher: 'VIRGIN',
79
- publishedDateTime: '2022-03-25T22:59:00.000Z',
80
- updatedDateTime: '2022-03-28T12:15:09.000Z',
81
- headline: 'Another Test Article',
82
- id: '32591',
83
- body: [],
84
- },
85
- {
86
- categories: [],
87
- bylines: [],
88
- summary: {
89
- children: [
90
- {
91
- text: 'Some test description 4',
92
- },
93
- ],
64
+ relationships: {
65
+ categories: {
66
+ data: [],
67
+ },
94
68
  },
95
- publisher: 'VIRGIN',
96
- updatedDateTime: '2022-01-12T01:17:09.000Z',
97
- publishedDateTime: '2022-04-04T08:31:44.000Z',
98
- headline: 'Testing Empty Bylines Array',
99
- id: '32598',
100
- body: [],
101
69
  },
102
- ];
103
- exports.rssMock = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<rss version=\"2.0\"\n xmlns:content=\"http://purl.org/rss/1.0/modules/content/\"\n xmlns:wfw=\"http://wellformedweb.org/CommentAPI/\"\n xmlns:dc=\"http://purl.org/dc/elements/1.1/\"\n xmlns:atom=\"http://www.w3.org/2005/Atom\"\n xmlns:sy=\"http://purl.org/rss/1.0/modules/syndication/\"\n xmlns:slash=\"http://purl.org/rss/1.0/modules/slash/\"\t\n xmlns:georss=\"http://www.georss.org/georss\"\n xmlns:geo=\"http://www.w3.org/2003/01/geo/wgs84_pos#\"\n>\n<channel>\n <title>".concat(exports.titeAttributesMock.title, "</title>\n <atom:link href=\"").concat(exports.domainMock).concat(exports.titeAttributesMock.link, "\" rel=\"self\" type=\"application/rss+xml\" />\n <link>").concat(exports.domainMock).concat(exports.titeAttributesMock.link, "</link>\n <description>").concat(exports.titeAttributesMock.description, "</description>\n <lastBuildDate>").concat(exports.lastBuildDateMock, "</lastBuildDate>\n <pubDate>").concat(exports.updatedDateTimeMock, "</pubDate>\n <language>").concat(exports.titeAttributesMock.language, "</language>\n <sy:updatePeriod>").concat(exports.titeAttributesMock.updatePeriod, "</sy:updatePeriod>\n <sy:updateFrequency>").concat(exports.titeAttributesMock.updateFrequency, "</sy:updateFrequency>\n <generator>Newskit Render</generator>\n <image>\n <url>").concat(exports.domainMock).concat(exports.titeAttributesMock.logoUrl, "</url>\n <title>").concat(exports.titeAttributesMock.title, "</title>\n <link>").concat(exports.domainMock).concat(exports.titeAttributesMock.link, "</link>\n <width>32</width>\n <height>32</height>\n </image>\n <item>\n <title>It has survived not only five centuries</title>\n <link>https://demo.com/entertainment/32596/it-has-survived-not-only-five-centuries</link>\n <pubDate>Mon, 04 Apr 2022 08:50:29 GMT</pubDate>\n <dc:creator><![CDATA[Jim Morrison]]></dc:creator>\n <category><![CDATA[entertainment]]></category>\n <description><![CDATA[]]></description>\n <guid isPermaLink=\"false\">Post 32596 at Demo Site</guid>\n <content:encoded><![CDATA[]]></content:encoded>\n </item>\n <item>\n <title>Testing Image Credits</title>\n <link>https://demo.com/uncategorized/32594/testing-image-credits</link>\n <pubDate>Mon, 04 Apr 2022 08:31:44 GMT</pubDate>\n <dc:creator><![CDATA[Demo Site]]></dc:creator>\n <category><![CDATA[uncategorized]]></category>\n <description><![CDATA[Some test description]]></description>\n <guid isPermaLink=\"false\">Post 32594 at Demo Site</guid>\n <content:encoded><![CDATA[]]></content:encoded>\n </item>\n <item>\n <title>test publish article after fix deployed</title>\n <link>https://demo.com/tv-film/32579/test-publish-article-after-fix-deployed</link>\n <pubDate>Fri, 25 Mar 2022 23:59:00 GMT</pubDate>\n <dc:creator><![CDATA[Janis Joplin]]></dc:creator>\n <category><![CDATA[tv-film]]></category><category><![CDATA[entertainment]]></category>\n <description><![CDATA[Some test description 2]]></description>\n <guid isPermaLink=\"false\">Post 32579 at Demo Site</guid>\n <content:encoded><![CDATA[]]></content:encoded>\n </item>\n <item>\n <title>Another Test Article</title>\n <link>https://demo.com/uncategorized/32591/another-test-article</link>\n <pubDate>Fri, 25 Mar 2022 22:59:00 GMT</pubDate>\n <dc:creator><![CDATA[Demo Site]]></dc:creator>\n <category><![CDATA[uncategorized]]></category>\n <description><![CDATA[Some test description 3]]></description>\n <guid isPermaLink=\"false\">Post 32591 at Demo Site</guid>\n <content:encoded><![CDATA[]]></content:encoded>\n </item>\n <item>\n <title>Testing Empty Bylines Array</title>\n <link>https://demo.com/uncategorized/32598/testing-empty-bylines-array</link>\n <pubDate>Mon, 04 Apr 2022 08:31:44 GMT</pubDate>\n <dc:creator><![CDATA[Demo Site]]></dc:creator>\n <category><![CDATA[uncategorized]]></category>\n <description><![CDATA[Some test description 4]]></description>\n <guid isPermaLink=\"false\">Post 32598 at Demo Site</guid>\n <content:encoded><![CDATA[]]></content:encoded>\n </item>\n \n</channel>\n</rss>\n");
104
- exports.articleListWithBodyMock = [
105
70
  {
106
- categories: [{ slug: 'tv-film' }, { slug: 'entertainment' }],
107
- bylines: [{ name: 'Janis Joplin' }],
108
- summary: null,
109
- publisher: 'VIRGIN',
110
- publishedDateTime: '2022-03-25T23:59:00.000Z',
111
- updatedDateTime: '2022-04-12T11:17:09.000Z',
112
- headline: 'test publish article after fix deployed',
113
71
  id: '32579',
114
- body: [
115
- {
116
- type: 'paragraph',
117
- paragraphs: [
72
+ type: 'article',
73
+ attributes: {
74
+ headline: 'test publish article after fix deployed slug',
75
+ slug: 'test-publish-article',
76
+ byline: [{ name: 'Janis Joplin' }],
77
+ datePublished: '2022-03-25T23:59:00Z',
78
+ dateUpdated: '2022-03-30T10:25:09Z',
79
+ body: [],
80
+ },
81
+ relationships: {
82
+ categories: {
83
+ data: [
118
84
  {
119
- bold: true,
120
- italic: false,
121
- underline: false,
122
- text: 'Bold',
123
- type: 'text',
124
- monospace: false,
85
+ id: 'tv film id',
86
+ type: 'category',
87
+ category: {
88
+ data: {
89
+ attributes: {
90
+ title: 'tv film title',
91
+ slug: 'tv-film',
92
+ },
93
+ },
94
+ },
125
95
  },
126
96
  {
127
- bold: false,
128
- italic: true,
129
- underline: false,
130
- text: 'Italic',
131
- type: 'text',
132
- monospace: false,
97
+ id: 'entertainment id',
98
+ type: 'category',
99
+ category: {
100
+ data: {
101
+ attributes: {
102
+ title: 'entertainment title',
103
+ slug: 'entertainment',
104
+ },
105
+ },
106
+ },
133
107
  },
108
+ ],
109
+ },
110
+ },
111
+ },
112
+ {
113
+ id: '32580',
114
+ type: 'article',
115
+ attributes: {
116
+ headline: 'test publish article after fix deployed headline',
117
+ slug: '',
118
+ byline: [{ name: 'Janis Joplin' }],
119
+ datePublished: '2022-03-25T23:59:00Z',
120
+ dateUpdated: '2022-03-30T10:25:09Z',
121
+ body: [],
122
+ },
123
+ relationships: {
124
+ categories: {
125
+ data: [
134
126
  {
135
- bold: false,
136
- italic: false,
137
- underline: true,
138
- text: 'Underline',
139
- type: 'text',
140
- monospace: false,
127
+ id: 'tv film id',
128
+ type: 'category',
129
+ category: {
130
+ data: {
131
+ attributes: {
132
+ title: 'tv film title',
133
+ slug: 'tv-film',
134
+ },
135
+ },
136
+ },
141
137
  },
142
138
  {
143
- bold: false,
144
- italic: false,
145
- underline: false,
146
- text: 'None',
147
- type: 'text',
148
- monospace: false,
139
+ id: 'entertainment id',
140
+ type: 'category',
141
+ category: {
142
+ data: {
143
+ attributes: {
144
+ title: 'entertainment title',
145
+ slug: 'entertainment',
146
+ },
147
+ },
148
+ },
149
149
  },
150
+ ],
151
+ },
152
+ },
153
+ },
154
+ {
155
+ id: '32591',
156
+ type: 'article',
157
+ attributes: {
158
+ headline: 'Another Test Article',
159
+ slug: 'another-test',
160
+ byline: [],
161
+ datePublished: '2022-03-25T22:59:00Z',
162
+ dateUpdated: '2022-03-28T12:15:09Z',
163
+ body: [],
164
+ },
165
+ relationships: {
166
+ categories: {
167
+ data: [
150
168
  {
151
- bold: true,
152
- italic: true,
153
- underline: true,
154
- text: 'All',
155
- type: 'text',
156
- monospace: false,
169
+ id: 'test id',
170
+ type: 'category',
171
+ category: {
172
+ data: {
173
+ attributes: {
174
+ title: 'test title',
175
+ slug: 'test',
176
+ },
177
+ },
178
+ },
157
179
  },
158
180
  ],
159
181
  },
160
- {
161
- type: 'paragraph',
162
- paragraphs: [
163
- {
164
- bold: false,
165
- italic: false,
166
- underline: false,
167
- text: 'Something was said ',
168
- type: 'text',
169
- monospace: false,
182
+ },
183
+ },
184
+ {
185
+ id: '32598',
186
+ type: 'article',
187
+ attributes: {
188
+ headline: 'Testing Empty Bylines Array',
189
+ slug: 'testing-empty-bylines',
190
+ byline: [],
191
+ datePublished: '2022-04-04T08:31:44Z',
192
+ dateUpdated: '2022-01-12T01:17:09Z',
193
+ body: [],
194
+ },
195
+ relationships: {
196
+ categories: {
197
+ data: [],
198
+ },
199
+ },
200
+ },
201
+ ];
202
+ exports.rssMock = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<rss version=\"2.0\"\n xmlns:content=\"http://purl.org/rss/1.0/modules/content/\"\n xmlns:wfw=\"http://wellformedweb.org/CommentAPI/\"\n xmlns:dc=\"http://purl.org/dc/elements/1.1/\"\n xmlns:atom=\"http://www.w3.org/2005/Atom\"\n xmlns:sy=\"http://purl.org/rss/1.0/modules/syndication/\"\n xmlns:slash=\"http://purl.org/rss/1.0/modules/slash/\"\t\n xmlns:georss=\"http://www.georss.org/georss\"\n xmlns:geo=\"http://www.w3.org/2003/01/geo/wgs84_pos#\"\n>\n<channel>\n <title>".concat(exports.titeAttributesMock.title, "</title>\n <atom:link href=\"").concat(exports.domainMock).concat(exports.titeAttributesMock.link, "\" rel=\"self\" type=\"application/rss+xml\" />\n <link>").concat(exports.domainMock).concat(exports.titeAttributesMock.link, "</link>\n <description>").concat(exports.titeAttributesMock.description, "</description>\n <lastBuildDate>").concat(exports.lastBuildDateMock, "</lastBuildDate>\n <pubDate>").concat(exports.updatedDateTimeMock, "</pubDate>\n <language>").concat(exports.titeAttributesMock.language, "</language>\n <sy:updatePeriod>").concat(exports.titeAttributesMock.updatePeriod, "</sy:updatePeriod>\n <sy:updateFrequency>").concat(exports.titeAttributesMock.updateFrequency, "</sy:updateFrequency>\n <generator>Newskit Render</generator>\n <image>\n <url>").concat(exports.domainMock).concat(exports.titeAttributesMock.logoUrl, "</url>\n <title>").concat(exports.titeAttributesMock.title, "</title>\n <link>").concat(exports.domainMock).concat(exports.titeAttributesMock.link, "</link>\n <width>32</width>\n <height>32</height>\n </image>\n <item>\n <title>It has survived not only five centuries</title>\n <link>https://demo.com/entertainment/32596/it-has-survived</link>\n <pubDate>Mon, 04 Apr 2022 08:50:29 GMT</pubDate>\n <dc:creator><![CDATA[Jim Morrison]]></dc:creator>\n <category><![CDATA[entertainment]]></category>\n <description><![CDATA[]]></description>\n <guid isPermaLink=\"false\">Post 32596 at Demo Site</guid>\n <content:encoded><![CDATA[]]></content:encoded>\n </item>\n <item>\n <title>Testing Image Credits</title>\n <link>https://demo.com/uncategorized/32594/testing</link>\n <pubDate>Mon, 04 Apr 2022 08:31:44 GMT</pubDate>\n <dc:creator><![CDATA[Demo Site]]></dc:creator>\n <category><![CDATA[uncategorized]]></category>\n <description><![CDATA[]]></description>\n <guid isPermaLink=\"false\">Post 32594 at Demo Site</guid>\n <content:encoded><![CDATA[]]></content:encoded>\n </item>\n <item>\n <title>test publish article after fix deployed slug</title>\n <link>https://demo.com/tv-film/32579/test-publish-article</link>\n <pubDate>Fri, 25 Mar 2022 23:59:00 GMT</pubDate>\n <dc:creator><![CDATA[Janis Joplin]]></dc:creator>\n <category><![CDATA[tv-film]]></category><category><![CDATA[entertainment]]></category>\n <description><![CDATA[]]></description>\n <guid isPermaLink=\"false\">Post 32579 at Demo Site</guid>\n <content:encoded><![CDATA[]]></content:encoded>\n </item>\n <item>\n <title>test publish article after fix deployed headline</title>\n <link>https://demo.com/tv-film/32580/test-publish-article-after-fix-deployed-headline</link>\n <pubDate>Fri, 25 Mar 2022 23:59:00 GMT</pubDate>\n <dc:creator><![CDATA[Janis Joplin]]></dc:creator>\n <category><![CDATA[tv-film]]></category><category><![CDATA[entertainment]]></category>\n <description><![CDATA[]]></description>\n <guid isPermaLink=\"false\">Post 32580 at Demo Site</guid>\n <content:encoded><![CDATA[]]></content:encoded>\n </item>\n <item>\n <title>Another Test Article</title>\n <link>https://demo.com/test/32591/another-test</link>\n <pubDate>Fri, 25 Mar 2022 22:59:00 GMT</pubDate>\n <dc:creator><![CDATA[Demo Site]]></dc:creator>\n <category><![CDATA[test]]></category>\n <description><![CDATA[]]></description>\n <guid isPermaLink=\"false\">Post 32591 at Demo Site</guid>\n <content:encoded><![CDATA[]]></content:encoded>\n </item>\n <item>\n <title>Testing Empty Bylines Array</title>\n <link>https://demo.com/uncategorized/32598/testing-empty-bylines</link>\n <pubDate>Mon, 04 Apr 2022 08:31:44 GMT</pubDate>\n <dc:creator><![CDATA[Demo Site]]></dc:creator>\n <category><![CDATA[uncategorized]]></category>\n <description><![CDATA[]]></description>\n <guid isPermaLink=\"false\">Post 32598 at Demo Site</guid>\n <content:encoded><![CDATA[]]></content:encoded>\n </item>\n \n</channel>\n</rss>\n");
203
+ exports.articleListWithBodyMock = [
204
+ {
205
+ id: '32579',
206
+ type: 'article',
207
+ attributes: {
208
+ headline: 'test publish article after fix deployed',
209
+ slug: 'test-publish-article',
210
+ byline: [{ name: 'Janis Joplin' }],
211
+ datePublished: '2022-03-25T23:59:00Z',
212
+ dateUpdated: '2022-04-12T11:17:09Z',
213
+ body: [
214
+ {
215
+ type: 'paragraph',
216
+ children: [
217
+ {
218
+ type: 'text',
219
+ attributes: {
220
+ bold: true,
221
+ italic: false,
222
+ underline: false,
223
+ text: 'Bold',
224
+ monospace: false,
225
+ },
226
+ },
227
+ {
228
+ type: 'text',
229
+ attributes: {
230
+ bold: false,
231
+ italic: true,
232
+ underline: false,
233
+ text: 'Italic',
234
+ monospace: false,
235
+ },
236
+ },
237
+ {
238
+ type: 'text',
239
+ attributes: {
240
+ bold: false,
241
+ italic: false,
242
+ underline: true,
243
+ text: 'Underline',
244
+ monospace: false,
245
+ },
246
+ },
247
+ {
248
+ type: 'text',
249
+ attributes: {
250
+ bold: false,
251
+ italic: false,
252
+ underline: false,
253
+ text: 'None',
254
+ monospace: false,
255
+ },
256
+ },
257
+ {
258
+ type: 'text',
259
+ attributes: {
260
+ bold: true,
261
+ italic: true,
262
+ underline: true,
263
+ text: 'All',
264
+ monospace: false,
265
+ },
266
+ },
267
+ ],
268
+ },
269
+ {
270
+ type: 'paragraph',
271
+ children: [
272
+ {
273
+ type: 'text',
274
+ attributes: {
275
+ bold: false,
276
+ italic: false,
277
+ underline: false,
278
+ text: 'Something was said',
279
+ monospace: false,
280
+ },
281
+ },
282
+ {
283
+ type: 'hyperlink',
284
+ attributes: {
285
+ url: 'htttps://somelink',
286
+ text: 'find out what here',
287
+ },
288
+ },
289
+ {
290
+ type: 'line-break',
291
+ },
292
+ {
293
+ type: 'text',
294
+ attributes: {
295
+ bold: false,
296
+ italic: false,
297
+ underline: false,
298
+ text: 'and then something else',
299
+ monospace: false,
300
+ },
301
+ },
302
+ ],
303
+ },
304
+ {
305
+ type: 'image',
306
+ attributes: {
307
+ alt: 'alt test',
308
+ caption: 'A caption',
309
+ credit: 'A credit',
310
+ height: 300,
311
+ width: 500,
312
+ url: 'https://some/image/url',
313
+ },
314
+ },
315
+ {
316
+ type: 'image',
317
+ attributes: {
318
+ alt: '',
319
+ caption: '',
320
+ credit: '',
321
+ height: 300,
322
+ width: 500,
323
+ url: 'https://some/image/url',
170
324
  },
325
+ },
326
+ ],
327
+ },
328
+ relationships: {
329
+ categories: {
330
+ data: [
171
331
  {
172
- url: 'htttps://somelink',
173
- text: 'find ourt what here ',
174
- type: 'hyperlink',
332
+ id: 'tv film id',
333
+ type: 'category',
334
+ category: {
335
+ data: {
336
+ attributes: {
337
+ title: 'tv film title',
338
+ slug: 'tv-film',
339
+ },
340
+ },
341
+ },
175
342
  },
176
343
  {
177
- bold: false,
178
- italic: false,
179
- underline: false,
180
- text: 'and then something else',
181
- type: 'text',
182
- monospace: false,
344
+ id: 'entertainment id',
345
+ type: 'category',
346
+ category: {
347
+ data: {
348
+ attributes: {
349
+ title: 'entertainment title',
350
+ slug: 'entertainment',
351
+ },
352
+ },
353
+ },
183
354
  },
184
355
  ],
185
356
  },
186
- {
187
- type: 'image',
188
- alt: 'alt test',
189
- caption: 'A caption',
190
- credit: 'A credit',
191
- height: 300,
192
- width: 500,
193
- url: 'https://some/image/url',
194
- },
195
- {
196
- type: 'image',
197
- alt: '',
198
- caption: '',
199
- credit: '',
200
- height: 300,
201
- width: 500,
202
- url: 'https://some/image/url',
203
- },
204
- ],
357
+ },
205
358
  },
206
359
  ];
207
- exports.rssWithBodyMock = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<rss version=\"2.0\"\n xmlns:content=\"http://purl.org/rss/1.0/modules/content/\"\n xmlns:wfw=\"http://wellformedweb.org/CommentAPI/\"\n xmlns:dc=\"http://purl.org/dc/elements/1.1/\"\n xmlns:atom=\"http://www.w3.org/2005/Atom\"\n xmlns:sy=\"http://purl.org/rss/1.0/modules/syndication/\"\n xmlns:slash=\"http://purl.org/rss/1.0/modules/slash/\"\t\n xmlns:georss=\"http://www.georss.org/georss\"\n xmlns:geo=\"http://www.w3.org/2003/01/geo/wgs84_pos#\"\n>\n<channel>\n <title>".concat(exports.titeAttributesMock.title, "</title>\n <atom:link href=\"").concat(exports.domainMock).concat(exports.titeAttributesMock.link, "\" rel=\"self\" type=\"application/rss+xml\" />\n <link>").concat(exports.domainMock).concat(exports.titeAttributesMock.link, "</link>\n <description>").concat(exports.titeAttributesMock.description, "</description>\n <lastBuildDate>").concat(exports.lastBuildDateMock, "</lastBuildDate>\n <pubDate>").concat(exports.updatedDateTimeMock, "</pubDate>\n <language>").concat(exports.titeAttributesMock.language, "</language>\n <sy:updatePeriod>").concat(exports.titeAttributesMock.updatePeriod, "</sy:updatePeriod>\n <sy:updateFrequency>").concat(exports.titeAttributesMock.updateFrequency, "</sy:updateFrequency>\n <generator>Newskit Render</generator>\n <image>\n <url>").concat(exports.domainMock).concat(exports.titeAttributesMock.logoUrl, "</url>\n <title>").concat(exports.titeAttributesMock.title, "</title>\n <link>").concat(exports.domainMock).concat(exports.titeAttributesMock.link, "</link>\n <width>32</width>\n <height>32</height>\n </image>\n <item>\n <title>test publish article after fix deployed</title>\n <link>https://demo.com/tv-film/32579/test-publish-article-after-fix-deployed</link>\n <pubDate>Fri, 25 Mar 2022 23:59:00 GMT</pubDate>\n <dc:creator><![CDATA[Janis Joplin]]></dc:creator>\n <category><![CDATA[tv-film]]></category><category><![CDATA[entertainment]]></category>\n <description><![CDATA[<p><strong>Bold</strong><em>Italic</em><u>Underline</u>None<strong><em><u>All</u></em></strong></p>]]></description>\n <guid isPermaLink=\"false\">Post 32579 at Demo Site</guid>\n <content:encoded><![CDATA[<p><strong>Bold</strong><em>Italic</em><u>Underline</u>None<strong><em><u>All</u></em></strong></p>\n\n<p>Something was said <a href=\"htttps://somelink\">find ourt what here </a>and then something else</p>\n\n<figure><picture><source media=\"screen and (max-width: 479px)\" srcset=\"https://some/image/url?w=0&amp;strip=all&amp;crop=1\"><source media=\"screen and (min-width: 480px) and (max-width: 767px)\" srcset=\"https://some/image/url?w=0&amp;strip=all&amp;crop=1\"><source media=\"screen and (min-width: 768px) and (max-width: 1023px)\" srcset=\"https://some/image/url?w=719&amp;strip=all&amp;crop=1\"><source media=\"screen and (min-width: 1024px) and (max-width: 1439px)\" srcset=\"https://some/image/url?w=0&amp;strip=all&amp;crop=1\"><source media=\"screen and (min-width: 1440px)\" srcset=\"https://some/image/url?w=0&amp;strip=all&amp;crop=1\"><img alt='alt test' src='https://some/image/url' width='500' height='300' /><picture><figcaption>A caption</figcaption><figcredit>A credit</figcredit></figure>\n\n<picture><source media=\"screen and (max-width: 479px)\" srcset=\"https://some/image/url?w=0&amp;strip=all&amp;crop=1\"><source media=\"screen and (min-width: 480px) and (max-width: 767px)\" srcset=\"https://some/image/url?w=0&amp;strip=all&amp;crop=1\"><source media=\"screen and (min-width: 768px) and (max-width: 1023px)\" srcset=\"https://some/image/url?w=719&amp;strip=all&amp;crop=1\"><source media=\"screen and (min-width: 1024px) and (max-width: 1439px)\" srcset=\"https://some/image/url?w=0&amp;strip=all&amp;crop=1\"><source media=\"screen and (min-width: 1440px)\" srcset=\"https://some/image/url?w=0&amp;strip=all&amp;crop=1\"><img src='https://some/image/url' width='500' height='300' /><picture>]]></content:encoded>\n </item>\n \n</channel>\n</rss>\n");
360
+ exports.rssWithBodyMock = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<rss version=\"2.0\"\n xmlns:content=\"http://purl.org/rss/1.0/modules/content/\"\n xmlns:wfw=\"http://wellformedweb.org/CommentAPI/\"\n xmlns:dc=\"http://purl.org/dc/elements/1.1/\"\n xmlns:atom=\"http://www.w3.org/2005/Atom\"\n xmlns:sy=\"http://purl.org/rss/1.0/modules/syndication/\"\n xmlns:slash=\"http://purl.org/rss/1.0/modules/slash/\"\t\n xmlns:georss=\"http://www.georss.org/georss\"\n xmlns:geo=\"http://www.w3.org/2003/01/geo/wgs84_pos#\"\n>\n<channel>\n <title>".concat(exports.titeAttributesMock.title, "</title>\n <atom:link href=\"").concat(exports.domainMock).concat(exports.titeAttributesMock.link, "\" rel=\"self\" type=\"application/rss+xml\" />\n <link>").concat(exports.domainMock).concat(exports.titeAttributesMock.link, "</link>\n <description>").concat(exports.titeAttributesMock.description, "</description>\n <lastBuildDate>").concat(exports.lastBuildDateMock, "</lastBuildDate>\n <pubDate>").concat(exports.updatedDateTimeMock, "</pubDate>\n <language>").concat(exports.titeAttributesMock.language, "</language>\n <sy:updatePeriod>").concat(exports.titeAttributesMock.updatePeriod, "</sy:updatePeriod>\n <sy:updateFrequency>").concat(exports.titeAttributesMock.updateFrequency, "</sy:updateFrequency>\n <generator>Newskit Render</generator>\n <image>\n <url>").concat(exports.domainMock).concat(exports.titeAttributesMock.logoUrl, "</url>\n <title>").concat(exports.titeAttributesMock.title, "</title>\n <link>").concat(exports.domainMock).concat(exports.titeAttributesMock.link, "</link>\n <width>32</width>\n <height>32</height>\n </image>\n <item>\n <title>test publish article after fix deployed</title>\n <link>https://demo.com/tv-film/32579/test-publish-article</link>\n <pubDate>Fri, 25 Mar 2022 23:59:00 GMT</pubDate>\n <dc:creator><![CDATA[Janis Joplin]]></dc:creator>\n <category><![CDATA[tv-film]]></category><category><![CDATA[entertainment]]></category>\n <description><![CDATA[<p><strong>Bold</strong><em>Italic</em><u>Underline</u>None<strong><em><u>All</u></em></strong></p>]]></description>\n <guid isPermaLink=\"false\">Post 32579 at Demo Site</guid>\n <content:encoded><![CDATA[<p><strong>Bold</strong><em>Italic</em><u>Underline</u>None<strong><em><u>All</u></em></strong></p>\n\n<p>Something was said<a href=\"htttps://somelink\">find out what here</a><br />and then something else</p>\n\n<figure><picture><source media=\"screen and (max-width: 479px)\" srcset=\"https://some/image/url?w=0&amp;strip=all&amp;crop=1\"><source media=\"screen and (min-width: 480px) and (max-width: 767px)\" srcset=\"https://some/image/url?w=0&amp;strip=all&amp;crop=1\"><source media=\"screen and (min-width: 768px) and (max-width: 1023px)\" srcset=\"https://some/image/url?w=719&amp;strip=all&amp;crop=1\"><source media=\"screen and (min-width: 1024px) and (max-width: 1439px)\" srcset=\"https://some/image/url?w=0&amp;strip=all&amp;crop=1\"><source media=\"screen and (min-width: 1440px)\" srcset=\"https://some/image/url?w=0&amp;strip=all&amp;crop=1\"><img alt='alt test' src='https://some/image/url' width='500' height='300' /><picture><figcaption>A caption</figcaption><figcredit>A credit</figcredit></figure>\n\n<picture><source media=\"screen and (max-width: 479px)\" srcset=\"https://some/image/url?w=0&amp;strip=all&amp;crop=1\"><source media=\"screen and (min-width: 480px) and (max-width: 767px)\" srcset=\"https://some/image/url?w=0&amp;strip=all&amp;crop=1\"><source media=\"screen and (min-width: 768px) and (max-width: 1023px)\" srcset=\"https://some/image/url?w=719&amp;strip=all&amp;crop=1\"><source media=\"screen and (min-width: 1024px) and (max-width: 1439px)\" srcset=\"https://some/image/url?w=0&amp;strip=all&amp;crop=1\"><source media=\"screen and (min-width: 1440px)\" srcset=\"https://some/image/url?w=0&amp;strip=all&amp;crop=1\"><img src='https://some/image/url' width='500' height='300' /><picture>]]></content:encoded>\n </item>\n \n</channel>\n</rss>\n");
208
361
  exports.mockBodyBlocks = [
209
362
  {
210
363
  type: 'paragraph',
211
- paragraphs: [
364
+ children: [
212
365
  {
213
- bold: false,
214
- italic: false,
215
- underline: false,
216
- text: 'Something was said ',
217
366
  type: 'text',
218
- monospace: false,
367
+ attributes: {
368
+ bold: false,
369
+ italic: false,
370
+ underline: false,
371
+ text: 'Something was said',
372
+ monospace: false,
373
+ },
219
374
  },
220
375
  {
221
- url: 'htttps://somelink',
222
- text: 'find ourt what here ',
223
376
  type: 'hyperlink',
377
+ attributes: {
378
+ url: 'htttps://somelink',
379
+ text: 'find out what here',
380
+ },
224
381
  },
225
382
  ],
226
383
  },
227
384
  {
228
385
  type: 'image',
229
- alt: '',
230
- caption: '',
231
- credit: '',
232
- height: 300,
233
- width: 500,
234
- url: 'https://some/image/url',
386
+ attributes: {
387
+ alt: '',
388
+ caption: '',
389
+ credit: '',
390
+ height: 300,
391
+ width: 500,
392
+ url: 'https://some/image/url',
393
+ },
235
394
  },
236
395
  {
237
396
  type: 'tweet',
238
- id: '123456789',
397
+ attributes: {
398
+ id: '123456789',
399
+ },
239
400
  },
240
401
  {
241
402
  type: 'instagram',
242
- id: '123456789',
403
+ attributes: {
404
+ id: '123456789',
405
+ },
243
406
  },
244
407
  {
245
408
  type: 'youtube',
246
- id: '123456789',
409
+ attributes: {
410
+ id: '123456789',
411
+ },
247
412
  },
248
413
  {
249
414
  type: 'embed',
250
- url: '/something',
415
+ attributes: {
416
+ url: '/something',
417
+ },
251
418
  },
252
419
  {
253
420
  type: 'video-brightcove',
254
- id: '123456789',
255
- playerId: 'default',
256
- accountId: '456',
421
+ attributes: {
422
+ id: '123456789',
423
+ playerId: 'default',
424
+ accountId: '456',
425
+ },
257
426
  },
258
427
  {
259
428
  type: 'heading',
260
- level: 3,
429
+ attributes: {
430
+ level: 3,
431
+ },
261
432
  children: [
262
433
  {
263
434
  type: 'text',
264
- text: 'A heading level 3',
265
- bold: false,
266
- italic: false,
435
+ attributes: {
436
+ text: 'A heading level 3',
437
+ bold: false,
438
+ italic: false,
439
+ },
267
440
  },
268
441
  ],
269
442
  },
270
443
  {
271
444
  type: 'unordered-list',
272
- items: [
445
+ children: [
273
446
  {
274
447
  type: 'text',
275
- text: 'Eos et accusamus',
276
- bold: false,
277
- italic: false,
448
+ attributes: {
449
+ text: 'Eos et accusamus',
450
+ bold: false,
451
+ italic: false,
452
+ },
278
453
  },
279
454
  {
280
455
  type: 'text',
281
- text: 'Expedita distinctio',
282
- bold: false,
283
- italic: false,
456
+ attributes: {
457
+ text: 'Expedita distinctio',
458
+ bold: false,
459
+ italic: false,
460
+ },
284
461
  },
285
462
  {
286
463
  type: 'text',
287
- text: 'Libero tempore, cum soluta nobis',
288
- bold: false,
289
- italic: false,
464
+ attributes: {
465
+ text: 'Libero tempore, cum soluta nobis',
466
+ bold: false,
467
+ italic: false,
468
+ },
290
469
  },
291
470
  ],
292
471
  },
293
472
  {
294
473
  type: 'ordered-list',
295
- items: [
474
+ children: [
296
475
  {
297
476
  type: 'text',
298
- text: 'Eos ordered',
299
- bold: false,
300
- italic: false,
477
+ attributes: {
478
+ text: 'Eos ordered',
479
+ bold: false,
480
+ italic: false,
481
+ },
301
482
  },
302
483
  {
303
484
  type: 'text',
304
- text: 'Expedita distinctio order',
305
- bold: false,
306
- italic: false,
485
+ attributes: {
486
+ text: 'Expedita distinctio order',
487
+ bold: false,
488
+ italic: false,
489
+ },
307
490
  },
308
491
  {
309
492
  type: 'text',
310
- text: 'Libero tempore, cum soluta nobis order',
311
- bold: false,
312
- italic: false,
493
+ attributes: {
494
+ text: 'Libero tempore, cum soluta nobis order',
495
+ bold: false,
496
+ italic: false,
497
+ },
313
498
  },
314
499
  ],
315
500
  },
316
501
  ];
317
502
  exports.expectedBodyBlocks = [
318
- "<p>Something was said <a href=\"htttps://somelink\">find ourt what here </a></p>",
503
+ "<p>Something was said<a href=\"htttps://somelink\">find out what here</a></p>",
319
504
  "<picture><source media=\"screen and (max-width: 479px)\" srcset=\"https://some/image/url?w=0&amp;strip=all&amp;crop=1\"><source media=\"screen and (min-width: 480px) and (max-width: 767px)\" srcset=\"https://some/image/url?w=0&amp;strip=all&amp;crop=1\"><source media=\"screen and (min-width: 768px) and (max-width: 1023px)\" srcset=\"https://some/image/url?w=719&amp;strip=all&amp;crop=1\"><source media=\"screen and (min-width: 1024px) and (max-width: 1439px)\" srcset=\"https://some/image/url?w=0&amp;strip=all&amp;crop=1\"><source media=\"screen and (min-width: 1440px)\" srcset=\"https://some/image/url?w=0&amp;strip=all&amp;crop=1\"><img src='https://some/image/url' width='500' height='300' /><picture>",
320
505
  "<blockquote class=\"twitter-tweet\"><a href=\"https://twitter.com/x/status/123456789\"></a></blockquote> <script async src=\"https://platform.twitter.com/widgets.js\" charset=\"utf-8\"></script>",
321
506
  "<blockquote className=\"instagram-media\" data-instgrm-captioned data-instgrm-version=\"4\"><a href=\"https://instagram.com/p/123456789/\"></a></blockquote>",
@@ -329,34 +514,45 @@ exports.expectedBodyBlocks = [
329
514
  exports.mockList = [
330
515
  {
331
516
  type: 'text',
332
- text: 'Libero tempore, cum soluta nobis order',
333
- bold: false,
334
- italic: false,
517
+ attributes: {
518
+ text: 'Libero tempore, cum soluta nobis order',
519
+ bold: false,
520
+ italic: false,
521
+ },
335
522
  },
336
523
  {
337
- url: 'htttps://somelink',
338
- text: 'find ourt what here ',
339
524
  type: 'hyperlink',
525
+ attributes: {
526
+ text: 'find out what here',
527
+ url: 'htttps://somelink',
528
+ },
529
+ },
530
+ {
531
+ type: 'line-break',
340
532
  },
341
533
  {
342
534
  type: 'ordered-list',
343
- items: [
535
+ children: [
344
536
  {
345
537
  type: 'text',
346
- text: 'Eos et accusamus',
347
- bold: false,
348
- italic: false,
538
+ attributes: {
539
+ text: 'Eos et accusamus',
540
+ bold: false,
541
+ italic: false,
542
+ },
349
543
  },
350
544
  ],
351
545
  },
352
546
  {
353
547
  type: 'unordered-list',
354
- items: [
548
+ children: [
355
549
  {
356
550
  type: 'text',
357
- text: 'Eos et accusamus ordered',
358
- bold: false,
359
- italic: false,
551
+ attributes: {
552
+ text: 'Eos et accusamus ordered',
553
+ bold: false,
554
+ italic: false,
555
+ },
360
556
  },
361
557
  ],
362
558
  },