@newskit-render/feed 1.8.5-alpha.0 → 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
@@ -18,301 +18,486 @@ export var titeAttributesdefaultMock = {
18
18
  };
19
19
  export var articleListMock = [
20
20
  {
21
- categories: [{ slug: 'entertainment' }],
22
- bylines: [{ name: 'Jim Morrison' }],
23
- summary: null,
24
- publisher: 'VIRGIN',
25
- publishedDateTime: '2022-04-04T08:50:29.000Z',
26
- updatedDateTime: '2022-04-12T11:17:09.000Z',
27
- headline: 'It has survived not only five centuries',
28
21
  id: '32596',
29
- body: [],
30
- },
31
- {
32
- categories: [],
33
- bylines: null,
34
- summary: {
35
- children: [
36
- {
37
- text: 'Some test description',
38
- },
39
- ],
22
+ type: 'article',
23
+ attributes: {
24
+ headline: 'It has survived not only five centuries',
25
+ slug: 'it-has-survived',
26
+ byline: [{ name: 'Jim Morrison' }],
27
+ datePublished: '2022-04-04T08:50:29Z',
28
+ dateUpdated: '2022-04-12T11:17:09Z',
29
+ body: [],
40
30
  },
41
- publisher: 'VIRGIN',
42
- updatedDateTime: '2022-01-12T01:17:09.000Z',
43
- publishedDateTime: '2022-04-04T08:31:44.000Z',
44
- headline: 'Testing Image Credits',
45
- id: '32594',
46
- body: [],
47
- },
48
- {
49
- categories: [{ slug: 'tv-film' }, { slug: 'entertainment' }],
50
- bylines: [{ name: 'Janis Joplin' }],
51
- summary: {
52
- children: [
53
- {
54
- text: 'Some test description 2',
55
- },
56
- ],
31
+ relationships: {
32
+ categories: {
33
+ data: [
34
+ {
35
+ id: 'entertainment id',
36
+ type: 'category',
37
+ category: {
38
+ data: {
39
+ attributes: {
40
+ title: 'entertainment title',
41
+ slug: 'entertainment',
42
+ },
43
+ },
44
+ },
45
+ },
46
+ ],
47
+ },
57
48
  },
58
- publisher: 'VIRGIN',
59
- publishedDateTime: '2022-03-25T23:59:00.000Z',
60
- updatedDateTime: '2022-03-30T10:25:09.000Z',
61
- headline: 'test publish article after fix deployed',
62
- id: '32579',
63
- body: [],
64
49
  },
65
50
  {
66
- categories: [{ name: 'test' }],
67
- bylines: null,
68
- summary: {
69
- children: [
70
- {
71
- text: 'Some test description 3',
72
- },
73
- ],
51
+ id: '32594',
52
+ type: 'article',
53
+ attributes: {
54
+ headline: 'Testing Image Credits',
55
+ slug: 'testing',
56
+ byline: [],
57
+ datePublished: '2022-04-04T08:31:44Z',
58
+ dateUpdated: '2022-01-12T01:17:09Z',
59
+ body: [],
74
60
  },
75
- publisher: 'VIRGIN',
76
- publishedDateTime: '2022-03-25T22:59:00.000Z',
77
- updatedDateTime: '2022-03-28T12:15:09.000Z',
78
- headline: 'Another Test Article',
79
- id: '32591',
80
- body: [],
81
- },
82
- {
83
- categories: [],
84
- bylines: [],
85
- summary: {
86
- children: [
87
- {
88
- text: 'Some test description 4',
89
- },
90
- ],
61
+ relationships: {
62
+ categories: {
63
+ data: [],
64
+ },
91
65
  },
92
- publisher: 'VIRGIN',
93
- updatedDateTime: '2022-01-12T01:17:09.000Z',
94
- publishedDateTime: '2022-04-04T08:31:44.000Z',
95
- headline: 'Testing Empty Bylines Array',
96
- id: '32598',
97
- body: [],
98
66
  },
99
- ];
100
- export var 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(titeAttributesMock.title, "</title>\n <atom:link href=\"").concat(domainMock).concat(titeAttributesMock.link, "\" rel=\"self\" type=\"application/rss+xml\" />\n <link>").concat(domainMock).concat(titeAttributesMock.link, "</link>\n <description>").concat(titeAttributesMock.description, "</description>\n <lastBuildDate>").concat(lastBuildDateMock, "</lastBuildDate>\n <pubDate>").concat(updatedDateTimeMock, "</pubDate>\n <language>").concat(titeAttributesMock.language, "</language>\n <sy:updatePeriod>").concat(titeAttributesMock.updatePeriod, "</sy:updatePeriod>\n <sy:updateFrequency>").concat(titeAttributesMock.updateFrequency, "</sy:updateFrequency>\n <generator>Newskit Render</generator>\n <image>\n <url>").concat(domainMock).concat(titeAttributesMock.logoUrl, "</url>\n <title>").concat(titeAttributesMock.title, "</title>\n <link>").concat(domainMock).concat(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");
101
- export var articleListWithBodyMock = [
102
67
  {
103
- categories: [{ slug: 'tv-film' }, { slug: 'entertainment' }],
104
- bylines: [{ name: 'Janis Joplin' }],
105
- summary: null,
106
- publisher: 'VIRGIN',
107
- publishedDateTime: '2022-03-25T23:59:00.000Z',
108
- updatedDateTime: '2022-04-12T11:17:09.000Z',
109
- headline: 'test publish article after fix deployed',
110
68
  id: '32579',
111
- body: [
112
- {
113
- type: 'paragraph',
114
- paragraphs: [
69
+ type: 'article',
70
+ attributes: {
71
+ headline: 'test publish article after fix deployed slug',
72
+ slug: 'test-publish-article',
73
+ byline: [{ name: 'Janis Joplin' }],
74
+ datePublished: '2022-03-25T23:59:00Z',
75
+ dateUpdated: '2022-03-30T10:25:09Z',
76
+ body: [],
77
+ },
78
+ relationships: {
79
+ categories: {
80
+ data: [
115
81
  {
116
- bold: true,
117
- italic: false,
118
- underline: false,
119
- text: 'Bold',
120
- type: 'text',
121
- monospace: false,
82
+ id: 'tv film id',
83
+ type: 'category',
84
+ category: {
85
+ data: {
86
+ attributes: {
87
+ title: 'tv film title',
88
+ slug: 'tv-film',
89
+ },
90
+ },
91
+ },
122
92
  },
123
93
  {
124
- bold: false,
125
- italic: true,
126
- underline: false,
127
- text: 'Italic',
128
- type: 'text',
129
- monospace: false,
94
+ id: 'entertainment id',
95
+ type: 'category',
96
+ category: {
97
+ data: {
98
+ attributes: {
99
+ title: 'entertainment title',
100
+ slug: 'entertainment',
101
+ },
102
+ },
103
+ },
130
104
  },
105
+ ],
106
+ },
107
+ },
108
+ },
109
+ {
110
+ id: '32580',
111
+ type: 'article',
112
+ attributes: {
113
+ headline: 'test publish article after fix deployed headline',
114
+ slug: '',
115
+ byline: [{ name: 'Janis Joplin' }],
116
+ datePublished: '2022-03-25T23:59:00Z',
117
+ dateUpdated: '2022-03-30T10:25:09Z',
118
+ body: [],
119
+ },
120
+ relationships: {
121
+ categories: {
122
+ data: [
131
123
  {
132
- bold: false,
133
- italic: false,
134
- underline: true,
135
- text: 'Underline',
136
- type: 'text',
137
- monospace: false,
124
+ id: 'tv film id',
125
+ type: 'category',
126
+ category: {
127
+ data: {
128
+ attributes: {
129
+ title: 'tv film title',
130
+ slug: 'tv-film',
131
+ },
132
+ },
133
+ },
138
134
  },
139
135
  {
140
- bold: false,
141
- italic: false,
142
- underline: false,
143
- text: 'None',
144
- type: 'text',
145
- monospace: false,
136
+ id: 'entertainment id',
137
+ type: 'category',
138
+ category: {
139
+ data: {
140
+ attributes: {
141
+ title: 'entertainment title',
142
+ slug: 'entertainment',
143
+ },
144
+ },
145
+ },
146
146
  },
147
+ ],
148
+ },
149
+ },
150
+ },
151
+ {
152
+ id: '32591',
153
+ type: 'article',
154
+ attributes: {
155
+ headline: 'Another Test Article',
156
+ slug: 'another-test',
157
+ byline: [],
158
+ datePublished: '2022-03-25T22:59:00Z',
159
+ dateUpdated: '2022-03-28T12:15:09Z',
160
+ body: [],
161
+ },
162
+ relationships: {
163
+ categories: {
164
+ data: [
147
165
  {
148
- bold: true,
149
- italic: true,
150
- underline: true,
151
- text: 'All',
152
- type: 'text',
153
- monospace: false,
166
+ id: 'test id',
167
+ type: 'category',
168
+ category: {
169
+ data: {
170
+ attributes: {
171
+ title: 'test title',
172
+ slug: 'test',
173
+ },
174
+ },
175
+ },
154
176
  },
155
177
  ],
156
178
  },
157
- {
158
- type: 'paragraph',
159
- paragraphs: [
160
- {
161
- bold: false,
162
- italic: false,
163
- underline: false,
164
- text: 'Something was said ',
165
- type: 'text',
166
- monospace: false,
179
+ },
180
+ },
181
+ {
182
+ id: '32598',
183
+ type: 'article',
184
+ attributes: {
185
+ headline: 'Testing Empty Bylines Array',
186
+ slug: 'testing-empty-bylines',
187
+ byline: [],
188
+ datePublished: '2022-04-04T08:31:44Z',
189
+ dateUpdated: '2022-01-12T01:17:09Z',
190
+ body: [],
191
+ },
192
+ relationships: {
193
+ categories: {
194
+ data: [],
195
+ },
196
+ },
197
+ },
198
+ ];
199
+ export var 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(titeAttributesMock.title, "</title>\n <atom:link href=\"").concat(domainMock).concat(titeAttributesMock.link, "\" rel=\"self\" type=\"application/rss+xml\" />\n <link>").concat(domainMock).concat(titeAttributesMock.link, "</link>\n <description>").concat(titeAttributesMock.description, "</description>\n <lastBuildDate>").concat(lastBuildDateMock, "</lastBuildDate>\n <pubDate>").concat(updatedDateTimeMock, "</pubDate>\n <language>").concat(titeAttributesMock.language, "</language>\n <sy:updatePeriod>").concat(titeAttributesMock.updatePeriod, "</sy:updatePeriod>\n <sy:updateFrequency>").concat(titeAttributesMock.updateFrequency, "</sy:updateFrequency>\n <generator>Newskit Render</generator>\n <image>\n <url>").concat(domainMock).concat(titeAttributesMock.logoUrl, "</url>\n <title>").concat(titeAttributesMock.title, "</title>\n <link>").concat(domainMock).concat(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");
200
+ export var articleListWithBodyMock = [
201
+ {
202
+ id: '32579',
203
+ type: 'article',
204
+ attributes: {
205
+ headline: 'test publish article after fix deployed',
206
+ slug: 'test-publish-article',
207
+ byline: [{ name: 'Janis Joplin' }],
208
+ datePublished: '2022-03-25T23:59:00Z',
209
+ dateUpdated: '2022-04-12T11:17:09Z',
210
+ body: [
211
+ {
212
+ type: 'paragraph',
213
+ children: [
214
+ {
215
+ type: 'text',
216
+ attributes: {
217
+ bold: true,
218
+ italic: false,
219
+ underline: false,
220
+ text: 'Bold',
221
+ monospace: false,
222
+ },
223
+ },
224
+ {
225
+ type: 'text',
226
+ attributes: {
227
+ bold: false,
228
+ italic: true,
229
+ underline: false,
230
+ text: 'Italic',
231
+ monospace: false,
232
+ },
233
+ },
234
+ {
235
+ type: 'text',
236
+ attributes: {
237
+ bold: false,
238
+ italic: false,
239
+ underline: true,
240
+ text: 'Underline',
241
+ monospace: false,
242
+ },
243
+ },
244
+ {
245
+ type: 'text',
246
+ attributes: {
247
+ bold: false,
248
+ italic: false,
249
+ underline: false,
250
+ text: 'None',
251
+ monospace: false,
252
+ },
253
+ },
254
+ {
255
+ type: 'text',
256
+ attributes: {
257
+ bold: true,
258
+ italic: true,
259
+ underline: true,
260
+ text: 'All',
261
+ monospace: false,
262
+ },
263
+ },
264
+ ],
265
+ },
266
+ {
267
+ type: 'paragraph',
268
+ children: [
269
+ {
270
+ type: 'text',
271
+ attributes: {
272
+ bold: false,
273
+ italic: false,
274
+ underline: false,
275
+ text: 'Something was said',
276
+ monospace: false,
277
+ },
278
+ },
279
+ {
280
+ type: 'hyperlink',
281
+ attributes: {
282
+ url: 'htttps://somelink',
283
+ text: 'find out what here',
284
+ },
285
+ },
286
+ {
287
+ type: 'line-break',
288
+ },
289
+ {
290
+ type: 'text',
291
+ attributes: {
292
+ bold: false,
293
+ italic: false,
294
+ underline: false,
295
+ text: 'and then something else',
296
+ monospace: false,
297
+ },
298
+ },
299
+ ],
300
+ },
301
+ {
302
+ type: 'image',
303
+ attributes: {
304
+ alt: 'alt test',
305
+ caption: 'A caption',
306
+ credit: 'A credit',
307
+ height: 300,
308
+ width: 500,
309
+ url: 'https://some/image/url',
310
+ },
311
+ },
312
+ {
313
+ type: 'image',
314
+ attributes: {
315
+ alt: '',
316
+ caption: '',
317
+ credit: '',
318
+ height: 300,
319
+ width: 500,
320
+ url: 'https://some/image/url',
167
321
  },
322
+ },
323
+ ],
324
+ },
325
+ relationships: {
326
+ categories: {
327
+ data: [
168
328
  {
169
- url: 'htttps://somelink',
170
- text: 'find ourt what here ',
171
- type: 'hyperlink',
329
+ id: 'tv film id',
330
+ type: 'category',
331
+ category: {
332
+ data: {
333
+ attributes: {
334
+ title: 'tv film title',
335
+ slug: 'tv-film',
336
+ },
337
+ },
338
+ },
172
339
  },
173
340
  {
174
- bold: false,
175
- italic: false,
176
- underline: false,
177
- text: 'and then something else',
178
- type: 'text',
179
- monospace: false,
341
+ id: 'entertainment id',
342
+ type: 'category',
343
+ category: {
344
+ data: {
345
+ attributes: {
346
+ title: 'entertainment title',
347
+ slug: 'entertainment',
348
+ },
349
+ },
350
+ },
180
351
  },
181
352
  ],
182
353
  },
183
- {
184
- type: 'image',
185
- alt: 'alt test',
186
- caption: 'A caption',
187
- credit: 'A credit',
188
- height: 300,
189
- width: 500,
190
- url: 'https://some/image/url',
191
- },
192
- {
193
- type: 'image',
194
- alt: '',
195
- caption: '',
196
- credit: '',
197
- height: 300,
198
- width: 500,
199
- url: 'https://some/image/url',
200
- },
201
- ],
354
+ },
202
355
  },
203
356
  ];
204
- export var 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(titeAttributesMock.title, "</title>\n <atom:link href=\"").concat(domainMock).concat(titeAttributesMock.link, "\" rel=\"self\" type=\"application/rss+xml\" />\n <link>").concat(domainMock).concat(titeAttributesMock.link, "</link>\n <description>").concat(titeAttributesMock.description, "</description>\n <lastBuildDate>").concat(lastBuildDateMock, "</lastBuildDate>\n <pubDate>").concat(updatedDateTimeMock, "</pubDate>\n <language>").concat(titeAttributesMock.language, "</language>\n <sy:updatePeriod>").concat(titeAttributesMock.updatePeriod, "</sy:updatePeriod>\n <sy:updateFrequency>").concat(titeAttributesMock.updateFrequency, "</sy:updateFrequency>\n <generator>Newskit Render</generator>\n <image>\n <url>").concat(domainMock).concat(titeAttributesMock.logoUrl, "</url>\n <title>").concat(titeAttributesMock.title, "</title>\n <link>").concat(domainMock).concat(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");
357
+ export var 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(titeAttributesMock.title, "</title>\n <atom:link href=\"").concat(domainMock).concat(titeAttributesMock.link, "\" rel=\"self\" type=\"application/rss+xml\" />\n <link>").concat(domainMock).concat(titeAttributesMock.link, "</link>\n <description>").concat(titeAttributesMock.description, "</description>\n <lastBuildDate>").concat(lastBuildDateMock, "</lastBuildDate>\n <pubDate>").concat(updatedDateTimeMock, "</pubDate>\n <language>").concat(titeAttributesMock.language, "</language>\n <sy:updatePeriod>").concat(titeAttributesMock.updatePeriod, "</sy:updatePeriod>\n <sy:updateFrequency>").concat(titeAttributesMock.updateFrequency, "</sy:updateFrequency>\n <generator>Newskit Render</generator>\n <image>\n <url>").concat(domainMock).concat(titeAttributesMock.logoUrl, "</url>\n <title>").concat(titeAttributesMock.title, "</title>\n <link>").concat(domainMock).concat(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");
205
358
  export var mockBodyBlocks = [
206
359
  {
207
360
  type: 'paragraph',
208
- paragraphs: [
361
+ children: [
209
362
  {
210
- bold: false,
211
- italic: false,
212
- underline: false,
213
- text: 'Something was said ',
214
363
  type: 'text',
215
- monospace: false,
364
+ attributes: {
365
+ bold: false,
366
+ italic: false,
367
+ underline: false,
368
+ text: 'Something was said',
369
+ monospace: false,
370
+ },
216
371
  },
217
372
  {
218
- url: 'htttps://somelink',
219
- text: 'find ourt what here ',
220
373
  type: 'hyperlink',
374
+ attributes: {
375
+ url: 'htttps://somelink',
376
+ text: 'find out what here',
377
+ },
221
378
  },
222
379
  ],
223
380
  },
224
381
  {
225
382
  type: 'image',
226
- alt: '',
227
- caption: '',
228
- credit: '',
229
- height: 300,
230
- width: 500,
231
- url: 'https://some/image/url',
383
+ attributes: {
384
+ alt: '',
385
+ caption: '',
386
+ credit: '',
387
+ height: 300,
388
+ width: 500,
389
+ url: 'https://some/image/url',
390
+ },
232
391
  },
233
392
  {
234
393
  type: 'tweet',
235
- id: '123456789',
394
+ attributes: {
395
+ id: '123456789',
396
+ },
236
397
  },
237
398
  {
238
399
  type: 'instagram',
239
- id: '123456789',
400
+ attributes: {
401
+ id: '123456789',
402
+ },
240
403
  },
241
404
  {
242
405
  type: 'youtube',
243
- id: '123456789',
406
+ attributes: {
407
+ id: '123456789',
408
+ },
244
409
  },
245
410
  {
246
411
  type: 'embed',
247
- url: '/something',
412
+ attributes: {
413
+ url: '/something',
414
+ },
248
415
  },
249
416
  {
250
417
  type: 'video-brightcove',
251
- id: '123456789',
252
- playerId: 'default',
253
- accountId: '456',
418
+ attributes: {
419
+ id: '123456789',
420
+ playerId: 'default',
421
+ accountId: '456',
422
+ },
254
423
  },
255
424
  {
256
425
  type: 'heading',
257
- level: 3,
426
+ attributes: {
427
+ level: 3,
428
+ },
258
429
  children: [
259
430
  {
260
431
  type: 'text',
261
- text: 'A heading level 3',
262
- bold: false,
263
- italic: false,
432
+ attributes: {
433
+ text: 'A heading level 3',
434
+ bold: false,
435
+ italic: false,
436
+ },
264
437
  },
265
438
  ],
266
439
  },
267
440
  {
268
441
  type: 'unordered-list',
269
- items: [
442
+ children: [
270
443
  {
271
444
  type: 'text',
272
- text: 'Eos et accusamus',
273
- bold: false,
274
- italic: false,
445
+ attributes: {
446
+ text: 'Eos et accusamus',
447
+ bold: false,
448
+ italic: false,
449
+ },
275
450
  },
276
451
  {
277
452
  type: 'text',
278
- text: 'Expedita distinctio',
279
- bold: false,
280
- italic: false,
453
+ attributes: {
454
+ text: 'Expedita distinctio',
455
+ bold: false,
456
+ italic: false,
457
+ },
281
458
  },
282
459
  {
283
460
  type: 'text',
284
- text: 'Libero tempore, cum soluta nobis',
285
- bold: false,
286
- italic: false,
461
+ attributes: {
462
+ text: 'Libero tempore, cum soluta nobis',
463
+ bold: false,
464
+ italic: false,
465
+ },
287
466
  },
288
467
  ],
289
468
  },
290
469
  {
291
470
  type: 'ordered-list',
292
- items: [
471
+ children: [
293
472
  {
294
473
  type: 'text',
295
- text: 'Eos ordered',
296
- bold: false,
297
- italic: false,
474
+ attributes: {
475
+ text: 'Eos ordered',
476
+ bold: false,
477
+ italic: false,
478
+ },
298
479
  },
299
480
  {
300
481
  type: 'text',
301
- text: 'Expedita distinctio order',
302
- bold: false,
303
- italic: false,
482
+ attributes: {
483
+ text: 'Expedita distinctio order',
484
+ bold: false,
485
+ italic: false,
486
+ },
304
487
  },
305
488
  {
306
489
  type: 'text',
307
- text: 'Libero tempore, cum soluta nobis order',
308
- bold: false,
309
- italic: false,
490
+ attributes: {
491
+ text: 'Libero tempore, cum soluta nobis order',
492
+ bold: false,
493
+ italic: false,
494
+ },
310
495
  },
311
496
  ],
312
497
  },
313
498
  ];
314
499
  export var expectedBodyBlocks = [
315
- "<p>Something was said <a href=\"htttps://somelink\">find ourt what here </a></p>",
500
+ "<p>Something was said<a href=\"htttps://somelink\">find out what here</a></p>",
316
501
  "<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>",
317
502
  "<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>",
318
503
  "<blockquote className=\"instagram-media\" data-instgrm-captioned data-instgrm-version=\"4\"><a href=\"https://instagram.com/p/123456789/\"></a></blockquote>",
@@ -326,34 +511,45 @@ export var expectedBodyBlocks = [
326
511
  export var mockList = [
327
512
  {
328
513
  type: 'text',
329
- text: 'Libero tempore, cum soluta nobis order',
330
- bold: false,
331
- italic: false,
514
+ attributes: {
515
+ text: 'Libero tempore, cum soluta nobis order',
516
+ bold: false,
517
+ italic: false,
518
+ },
332
519
  },
333
520
  {
334
- url: 'htttps://somelink',
335
- text: 'find ourt what here ',
336
521
  type: 'hyperlink',
522
+ attributes: {
523
+ text: 'find out what here',
524
+ url: 'htttps://somelink',
525
+ },
526
+ },
527
+ {
528
+ type: 'line-break',
337
529
  },
338
530
  {
339
531
  type: 'ordered-list',
340
- items: [
532
+ children: [
341
533
  {
342
534
  type: 'text',
343
- text: 'Eos et accusamus',
344
- bold: false,
345
- italic: false,
535
+ attributes: {
536
+ text: 'Eos et accusamus',
537
+ bold: false,
538
+ italic: false,
539
+ },
346
540
  },
347
541
  ],
348
542
  },
349
543
  {
350
544
  type: 'unordered-list',
351
- items: [
545
+ children: [
352
546
  {
353
547
  type: 'text',
354
- text: 'Eos et accusamus ordered',
355
- bold: false,
356
- italic: false,
548
+ attributes: {
549
+ text: 'Eos et accusamus ordered',
550
+ bold: false,
551
+ italic: false,
552
+ },
357
553
  },
358
554
  ],
359
555
  },