@newskit-render/feed 1.8.5 → 1.8.6-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/cjs/config/index.d.ts +1 -0
- package/dist/cjs/config/index.js +9 -0
- package/dist/cjs/config/index.js.map +1 -0
- package/dist/cjs/helpers/client.d.ts +2 -0
- package/dist/cjs/helpers/client.js +35 -0
- package/dist/cjs/helpers/client.js.map +1 -0
- package/dist/cjs/helpers/createSitemap/buildSiteMapImages.d.ts +2 -2
- package/dist/cjs/helpers/createSitemap/buildSiteMapImages.js +2 -2
- package/dist/cjs/helpers/createSitemap/buildSiteMapImages.js.map +1 -1
- package/dist/cjs/helpers/createSitemap/buildSiteMapVideos.d.ts +2 -10
- package/dist/cjs/helpers/createSitemap/buildSiteMapVideos.js +8 -5
- package/dist/cjs/helpers/createSitemap/buildSiteMapVideos.js.map +1 -1
- package/dist/cjs/helpers/createSitemap/createArticleSitemap.d.ts +2 -1
- package/dist/cjs/helpers/createSitemap/createArticleSitemap.js +23 -14
- package/dist/cjs/helpers/createSitemap/createArticleSitemap.js.map +1 -1
- package/dist/cjs/helpers/createSitemap/createPagesSitemap.d.ts +2 -3
- package/dist/cjs/helpers/createSitemap/createPagesSitemap.js +14 -15
- package/dist/cjs/helpers/createSitemap/createPagesSitemap.js.map +1 -1
- package/dist/cjs/helpers/createSitemap/getCategorySlug.d.ts +2 -2
- package/dist/cjs/helpers/createSitemap/getCategorySlug.js +2 -1
- package/dist/cjs/helpers/createSitemap/getCategorySlug.js.map +1 -1
- package/dist/cjs/helpers/queryArticleList.d.ts +4 -3
- package/dist/cjs/helpers/queryArticleList.js +28 -39
- package/dist/cjs/helpers/queryArticleList.js.map +1 -1
- package/dist/cjs/helpers/queryPages.d.ts +3 -3
- package/dist/cjs/helpers/queryPages.js +35 -33
- package/dist/cjs/helpers/queryPages.js.map +1 -1
- package/dist/cjs/helpers/types.d.ts +11 -35
- package/dist/cjs/helpers/types.js.map +1 -1
- package/dist/cjs/rss/RSSFeedResolver.js +3 -5
- package/dist/cjs/rss/RSSFeedResolver.js.map +1 -1
- package/dist/cjs/rss/__tests__/mocks.d.ts +118 -194
- package/dist/cjs/rss/__tests__/mocks.js +408 -212
- package/dist/cjs/rss/__tests__/mocks.js.map +1 -1
- package/dist/cjs/rss/contentEncodedUtils/createBlockElements.d.ts +1 -0
- package/dist/cjs/rss/contentEncodedUtils/createBlockElements.js +6 -4
- package/dist/cjs/rss/contentEncodedUtils/createBlockElements.js.map +1 -1
- package/dist/cjs/rss/contentEncodedUtils/createImage.d.ts +1 -1
- package/dist/cjs/rss/contentEncodedUtils/createImage.js +1 -1
- package/dist/cjs/rss/contentEncodedUtils/createImage.js.map +1 -1
- package/dist/cjs/rss/contentEncodedUtils/createItems.js +7 -7
- package/dist/cjs/rss/contentEncodedUtils/createItems.js.map +1 -1
- package/dist/cjs/rss/contentEncodedUtils/createParagraph.js +13 -8
- package/dist/cjs/rss/contentEncodedUtils/createParagraph.js.map +1 -1
- package/dist/cjs/rss/contentEncodedUtils/createRSSFeed.js +1 -1
- package/dist/cjs/rss/contentEncodedUtils/createRSSFeed.js.map +1 -1
- package/dist/cjs/rss/contentEncodedUtils/createSummary.d.ts +2 -2
- package/dist/cjs/rss/contentEncodedUtils/createSummary.js +5 -7
- package/dist/cjs/rss/contentEncodedUtils/createSummary.js.map +1 -1
- package/dist/cjs/rss/helpers/articleHelper.d.ts +1 -1
- package/dist/cjs/rss/helpers/articleHelper.js +12 -13
- package/dist/cjs/rss/helpers/articleHelper.js.map +1 -1
- package/dist/cjs/rss/helpers/buildBodyDataTypesMap.js +12 -6
- package/dist/cjs/rss/helpers/buildBodyDataTypesMap.js.map +1 -1
- package/dist/cjs/rss/helpers/buildLists.js +4 -2
- package/dist/cjs/rss/helpers/buildLists.js.map +1 -1
- package/dist/cjs/rss/queries/getArticleList.js +1 -1
- package/dist/cjs/rss/queries/getArticleList.js.map +1 -1
- package/dist/cjs/rss/types.d.ts +87 -38
- package/dist/cjs/rss/types.js +1 -0
- package/dist/cjs/rss/types.js.map +1 -1
- package/dist/cjs/sitemap/__tests__/mocks.d.ts +5 -4
- package/dist/cjs/sitemap/__tests__/mocks.js +94 -56
- package/dist/cjs/sitemap/__tests__/mocks.js.map +1 -1
- package/dist/cjs/sitemap/queries/getArticleList.js +1 -1
- package/dist/cjs/sitemap/queries/getArticleList.js.map +1 -1
- package/dist/cjs/sitemap/queries/getCompetitions.d.ts +1 -1
- package/dist/cjs/sitemap/queries/getCompetitions.js +2 -2
- package/dist/cjs/sitemap/queries/getCompetitions.js.map +1 -1
- package/dist/cjs/sitemap/queries/getPages.d.ts +1 -1
- package/dist/cjs/sitemap/queries/getPages.js +2 -2
- package/dist/cjs/sitemap/queries/getPages.js.map +1 -1
- package/dist/cjs/sitemap/resolvers/genericSitemapResolver.js +12 -13
- package/dist/cjs/sitemap/resolvers/genericSitemapResolver.js.map +1 -1
- package/dist/cjs/sitemap/resolvers/newsSitemapResolver.js +3 -5
- package/dist/cjs/sitemap/resolvers/newsSitemapResolver.js.map +1 -1
- package/dist/esm/config/index.d.ts +1 -0
- package/dist/esm/config/index.js +6 -0
- package/dist/esm/config/index.js.map +1 -0
- package/dist/esm/helpers/client.d.ts +2 -0
- package/dist/esm/helpers/client.js +32 -0
- package/dist/esm/helpers/client.js.map +1 -0
- package/dist/esm/helpers/createSitemap/buildSiteMapImages.d.ts +2 -2
- package/dist/esm/helpers/createSitemap/buildSiteMapImages.js +2 -2
- package/dist/esm/helpers/createSitemap/buildSiteMapImages.js.map +1 -1
- package/dist/esm/helpers/createSitemap/buildSiteMapVideos.d.ts +2 -10
- package/dist/esm/helpers/createSitemap/buildSiteMapVideos.js +8 -5
- package/dist/esm/helpers/createSitemap/buildSiteMapVideos.js.map +1 -1
- package/dist/esm/helpers/createSitemap/createArticleSitemap.d.ts +2 -1
- package/dist/esm/helpers/createSitemap/createArticleSitemap.js +23 -14
- package/dist/esm/helpers/createSitemap/createArticleSitemap.js.map +1 -1
- package/dist/esm/helpers/createSitemap/createPagesSitemap.d.ts +2 -3
- package/dist/esm/helpers/createSitemap/createPagesSitemap.js +14 -15
- package/dist/esm/helpers/createSitemap/createPagesSitemap.js.map +1 -1
- package/dist/esm/helpers/createSitemap/getCategorySlug.d.ts +2 -2
- package/dist/esm/helpers/createSitemap/getCategorySlug.js +2 -1
- package/dist/esm/helpers/createSitemap/getCategorySlug.js.map +1 -1
- package/dist/esm/helpers/queryArticleList.d.ts +4 -3
- package/dist/esm/helpers/queryArticleList.js +28 -39
- package/dist/esm/helpers/queryArticleList.js.map +1 -1
- package/dist/esm/helpers/queryPages.d.ts +3 -3
- package/dist/esm/helpers/queryPages.js +36 -34
- package/dist/esm/helpers/queryPages.js.map +1 -1
- package/dist/esm/helpers/types.d.ts +11 -35
- package/dist/esm/helpers/types.js.map +1 -1
- package/dist/esm/rss/RSSFeedResolver.js +4 -6
- package/dist/esm/rss/RSSFeedResolver.js.map +1 -1
- package/dist/esm/rss/__tests__/mocks.d.ts +118 -194
- package/dist/esm/rss/__tests__/mocks.js +408 -212
- package/dist/esm/rss/__tests__/mocks.js.map +1 -1
- package/dist/esm/rss/contentEncodedUtils/createBlockElements.d.ts +1 -0
- package/dist/esm/rss/contentEncodedUtils/createBlockElements.js +4 -3
- package/dist/esm/rss/contentEncodedUtils/createBlockElements.js.map +1 -1
- package/dist/esm/rss/contentEncodedUtils/createImage.d.ts +1 -1
- package/dist/esm/rss/contentEncodedUtils/createImage.js +1 -1
- package/dist/esm/rss/contentEncodedUtils/createImage.js.map +1 -1
- package/dist/esm/rss/contentEncodedUtils/createItems.js +7 -7
- package/dist/esm/rss/contentEncodedUtils/createItems.js.map +1 -1
- package/dist/esm/rss/contentEncodedUtils/createParagraph.js +14 -9
- package/dist/esm/rss/contentEncodedUtils/createParagraph.js.map +1 -1
- package/dist/esm/rss/contentEncodedUtils/createRSSFeed.js +1 -1
- package/dist/esm/rss/contentEncodedUtils/createRSSFeed.js.map +1 -1
- package/dist/esm/rss/contentEncodedUtils/createSummary.d.ts +2 -2
- package/dist/esm/rss/contentEncodedUtils/createSummary.js +5 -7
- package/dist/esm/rss/contentEncodedUtils/createSummary.js.map +1 -1
- package/dist/esm/rss/helpers/articleHelper.d.ts +1 -1
- package/dist/esm/rss/helpers/articleHelper.js +12 -13
- package/dist/esm/rss/helpers/articleHelper.js.map +1 -1
- package/dist/esm/rss/helpers/buildBodyDataTypesMap.js +12 -6
- package/dist/esm/rss/helpers/buildBodyDataTypesMap.js.map +1 -1
- package/dist/esm/rss/helpers/buildLists.js +5 -3
- package/dist/esm/rss/helpers/buildLists.js.map +1 -1
- package/dist/esm/rss/queries/getArticleList.js +1 -1
- package/dist/esm/rss/queries/getArticleList.js.map +1 -1
- package/dist/esm/rss/types.d.ts +87 -38
- package/dist/esm/rss/types.js +1 -0
- package/dist/esm/rss/types.js.map +1 -1
- package/dist/esm/sitemap/__tests__/mocks.d.ts +5 -4
- package/dist/esm/sitemap/__tests__/mocks.js +94 -56
- package/dist/esm/sitemap/__tests__/mocks.js.map +1 -1
- package/dist/esm/sitemap/queries/getArticleList.js +1 -1
- package/dist/esm/sitemap/queries/getArticleList.js.map +1 -1
- package/dist/esm/sitemap/queries/getCompetitions.d.ts +1 -1
- package/dist/esm/sitemap/queries/getCompetitions.js +1 -1
- package/dist/esm/sitemap/queries/getCompetitions.js.map +1 -1
- package/dist/esm/sitemap/queries/getPages.d.ts +1 -1
- package/dist/esm/sitemap/queries/getPages.js +1 -1
- package/dist/esm/sitemap/queries/getPages.js.map +1 -1
- package/dist/esm/sitemap/resolvers/genericSitemapResolver.js +13 -14
- package/dist/esm/sitemap/resolvers/genericSitemapResolver.js.map +1 -1
- package/dist/esm/sitemap/resolvers/newsSitemapResolver.js +3 -5
- package/dist/esm/sitemap/resolvers/newsSitemapResolver.js.map +1 -1
- 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
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
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
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
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
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
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
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
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
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
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
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
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
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
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
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
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
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
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
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
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
|
-
|
|
170
|
-
|
|
171
|
-
|
|
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
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
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
|
|
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&strip=all&crop=1\"><source media=\"screen and (min-width: 480px) and (max-width: 767px)\" srcset=\"https://some/image/url?w=0&strip=all&crop=1\"><source media=\"screen and (min-width: 768px) and (max-width: 1023px)\" srcset=\"https://some/image/url?w=719&strip=all&crop=1\"><source media=\"screen and (min-width: 1024px) and (max-width: 1439px)\" srcset=\"https://some/image/url?w=0&strip=all&crop=1\"><source media=\"screen and (min-width: 1440px)\" srcset=\"https://some/image/url?w=0&strip=all&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&strip=all&crop=1\"><source media=\"screen and (min-width: 480px) and (max-width: 767px)\" srcset=\"https://some/image/url?w=0&strip=all&crop=1\"><source media=\"screen and (min-width: 768px) and (max-width: 1023px)\" srcset=\"https://some/image/url?w=719&strip=all&crop=1\"><source media=\"screen and (min-width: 1024px) and (max-width: 1439px)\" srcset=\"https://some/image/url?w=0&strip=all&crop=1\"><source media=\"screen and (min-width: 1440px)\" srcset=\"https://some/image/url?w=0&strip=all&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
|
-
|
|
361
|
+
children: [
|
|
209
362
|
{
|
|
210
|
-
bold: false,
|
|
211
|
-
italic: false,
|
|
212
|
-
underline: false,
|
|
213
|
-
text: 'Something was said ',
|
|
214
363
|
type: 'text',
|
|
215
|
-
|
|
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
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
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
|
-
|
|
394
|
+
attributes: {
|
|
395
|
+
id: '123456789',
|
|
396
|
+
},
|
|
236
397
|
},
|
|
237
398
|
{
|
|
238
399
|
type: 'instagram',
|
|
239
|
-
|
|
400
|
+
attributes: {
|
|
401
|
+
id: '123456789',
|
|
402
|
+
},
|
|
240
403
|
},
|
|
241
404
|
{
|
|
242
405
|
type: 'youtube',
|
|
243
|
-
|
|
406
|
+
attributes: {
|
|
407
|
+
id: '123456789',
|
|
408
|
+
},
|
|
244
409
|
},
|
|
245
410
|
{
|
|
246
411
|
type: 'embed',
|
|
247
|
-
|
|
412
|
+
attributes: {
|
|
413
|
+
url: '/something',
|
|
414
|
+
},
|
|
248
415
|
},
|
|
249
416
|
{
|
|
250
417
|
type: 'video-brightcove',
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
418
|
+
attributes: {
|
|
419
|
+
id: '123456789',
|
|
420
|
+
playerId: 'default',
|
|
421
|
+
accountId: '456',
|
|
422
|
+
},
|
|
254
423
|
},
|
|
255
424
|
{
|
|
256
425
|
type: 'heading',
|
|
257
|
-
|
|
426
|
+
attributes: {
|
|
427
|
+
level: 3,
|
|
428
|
+
},
|
|
258
429
|
children: [
|
|
259
430
|
{
|
|
260
431
|
type: 'text',
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
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
|
-
|
|
442
|
+
children: [
|
|
270
443
|
{
|
|
271
444
|
type: 'text',
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
445
|
+
attributes: {
|
|
446
|
+
text: 'Eos et accusamus',
|
|
447
|
+
bold: false,
|
|
448
|
+
italic: false,
|
|
449
|
+
},
|
|
275
450
|
},
|
|
276
451
|
{
|
|
277
452
|
type: 'text',
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
453
|
+
attributes: {
|
|
454
|
+
text: 'Expedita distinctio',
|
|
455
|
+
bold: false,
|
|
456
|
+
italic: false,
|
|
457
|
+
},
|
|
281
458
|
},
|
|
282
459
|
{
|
|
283
460
|
type: 'text',
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
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
|
-
|
|
471
|
+
children: [
|
|
293
472
|
{
|
|
294
473
|
type: 'text',
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
474
|
+
attributes: {
|
|
475
|
+
text: 'Eos ordered',
|
|
476
|
+
bold: false,
|
|
477
|
+
italic: false,
|
|
478
|
+
},
|
|
298
479
|
},
|
|
299
480
|
{
|
|
300
481
|
type: 'text',
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
482
|
+
attributes: {
|
|
483
|
+
text: 'Expedita distinctio order',
|
|
484
|
+
bold: false,
|
|
485
|
+
italic: false,
|
|
486
|
+
},
|
|
304
487
|
},
|
|
305
488
|
{
|
|
306
489
|
type: 'text',
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
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
|
|
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&strip=all&crop=1\"><source media=\"screen and (min-width: 480px) and (max-width: 767px)\" srcset=\"https://some/image/url?w=0&strip=all&crop=1\"><source media=\"screen and (min-width: 768px) and (max-width: 1023px)\" srcset=\"https://some/image/url?w=719&strip=all&crop=1\"><source media=\"screen and (min-width: 1024px) and (max-width: 1439px)\" srcset=\"https://some/image/url?w=0&strip=all&crop=1\"><source media=\"screen and (min-width: 1440px)\" srcset=\"https://some/image/url?w=0&strip=all&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
|
-
|
|
330
|
-
|
|
331
|
-
|
|
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
|
-
|
|
532
|
+
children: [
|
|
341
533
|
{
|
|
342
534
|
type: 'text',
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
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
|
-
|
|
545
|
+
children: [
|
|
352
546
|
{
|
|
353
547
|
type: 'text',
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
548
|
+
attributes: {
|
|
549
|
+
text: 'Eos et accusamus ordered',
|
|
550
|
+
bold: false,
|
|
551
|
+
italic: false,
|
|
552
|
+
},
|
|
357
553
|
},
|
|
358
554
|
],
|
|
359
555
|
},
|