diff --git a/.changeset/fluffy-elephants-care.md b/.changeset/fluffy-elephants-care.md deleted file mode 100644 index a710b33d..00000000 --- a/.changeset/fluffy-elephants-care.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@wpmedia/text-output-block": patch ---- - -Added text output block diff --git a/.changeset/hungry-news-ring.md b/.changeset/hungry-news-ring.md deleted file mode 100644 index c4ef7a06..00000000 --- a/.changeset/hungry-news-ring.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@wpmedia/text-output-block': patch ---- - -Removed consumer dependancy diff --git a/.changeset/soft-jeans-listen.md b/.changeset/soft-jeans-listen.md deleted file mode 100644 index 3032e324..00000000 --- a/.changeset/soft-jeans-listen.md +++ /dev/null @@ -1,5 +0,0 @@ ---- - ---- - -Added textfile block diff --git a/.changeset/sweet-moles-sell.md b/.changeset/sweet-moles-sell.md deleted file mode 100644 index 434ad030..00000000 --- a/.changeset/sweet-moles-sell.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@wpmedia/feeds-xml-output': patch ---- - -Corrected options parameter for building xml diff --git a/blocks/ans-feature-block/CHANGELOG.md b/blocks/ans-feature-block/CHANGELOG.md index 5d3cbeb6..f570efc7 100644 --- a/blocks/ans-feature-block/CHANGELOG.md +++ b/blocks/ans-feature-block/CHANGELOG.md @@ -1,5 +1,15 @@ # @wpmedia/ans-feature-block +## 1.15.0 + +### Minor Changes + +- [#658](https://github.com/WPMedia/feed-components/pull/658) [`a5039bd`](https://github.com/WPMedia/feed-components/commit/a5039bd9ec2f74f876a3fdf0718e0fbd6c5c05b8) Thanks [@vgalatro](https://github.com/vgalatro)! - OBF 1.15 release + +### Patch Changes + +- [#660](https://github.com/WPMedia/feed-components/pull/660) [`ca229d0`](https://github.com/WPMedia/feed-components/commit/ca229d0826e865a1ce682812918a2c46980367df) Thanks [@vgalatro](https://github.com/vgalatro)! - OBF 1.15.1 to sandbox + ## 1.14.0 ### Minor Changes diff --git a/blocks/ans-feature-block/package.json b/blocks/ans-feature-block/package.json index c91928af..0b0ea5f5 100644 --- a/blocks/ans-feature-block/package.json +++ b/blocks/ans-feature-block/package.json @@ -1,6 +1,6 @@ { "name": "@wpmedia/ans-feature-block", - "version": "1.14.0", + "version": "1.15.0", "description": "Fusion components for building ANS feeds", "main": "index.js", "files": [ diff --git a/blocks/feeds-source-collections-block/CHANGELOG.md b/blocks/feeds-source-collections-block/CHANGELOG.md index 7703fc15..cc199473 100644 --- a/blocks/feeds-source-collections-block/CHANGELOG.md +++ b/blocks/feeds-source-collections-block/CHANGELOG.md @@ -1,5 +1,15 @@ # @wpmedia/feeds-source-collections-block +## 1.15.0 + +### Minor Changes + +- [#658](https://github.com/WPMedia/feed-components/pull/658) [`a5039bd`](https://github.com/WPMedia/feed-components/commit/a5039bd9ec2f74f876a3fdf0718e0fbd6c5c05b8) Thanks [@vgalatro](https://github.com/vgalatro)! - OBF 1.15 release + +### Patch Changes + +- [#660](https://github.com/WPMedia/feed-components/pull/660) [`ca229d0`](https://github.com/WPMedia/feed-components/commit/ca229d0826e865a1ce682812918a2c46980367df) Thanks [@vgalatro](https://github.com/vgalatro)! - OBF 1.15.1 to sandbox + ## 1.14.0 ### Minor Changes diff --git a/blocks/feeds-source-collections-block/package.json b/blocks/feeds-source-collections-block/package.json index 8e404ddd..144b3cb8 100644 --- a/blocks/feeds-source-collections-block/package.json +++ b/blocks/feeds-source-collections-block/package.json @@ -1,6 +1,6 @@ { "name": "@wpmedia/feeds-source-collections-block", - "version": "1.14.0", + "version": "1.15.0", "description": "Content source to search collections by _id or alias", "main": "index.js", "files": [ diff --git a/blocks/feeds-source-content-api-block/CHANGELOG.md b/blocks/feeds-source-content-api-block/CHANGELOG.md index fb130720..f70adacd 100644 --- a/blocks/feeds-source-content-api-block/CHANGELOG.md +++ b/blocks/feeds-source-content-api-block/CHANGELOG.md @@ -1,5 +1,15 @@ # @wpmedia/feeds-source-content-api-block +## 1.15.0 + +### Minor Changes + +- [#658](https://github.com/WPMedia/feed-components/pull/658) [`a5039bd`](https://github.com/WPMedia/feed-components/commit/a5039bd9ec2f74f876a3fdf0718e0fbd6c5c05b8) Thanks [@vgalatro](https://github.com/vgalatro)! - OBF 1.15 release + +### Patch Changes + +- [#660](https://github.com/WPMedia/feed-components/pull/660) [`ca229d0`](https://github.com/WPMedia/feed-components/commit/ca229d0826e865a1ce682812918a2c46980367df) Thanks [@vgalatro](https://github.com/vgalatro)! - OBF 1.15.1 to sandbox + ## 1.14.0 ### Minor Changes diff --git a/blocks/feeds-source-content-api-block/package.json b/blocks/feeds-source-content-api-block/package.json index 82a8788c..5a0d6ef7 100644 --- a/blocks/feeds-source-content-api-block/package.json +++ b/blocks/feeds-source-content-api-block/package.json @@ -1,6 +1,6 @@ { "name": "@wpmedia/feeds-source-content-api-block", - "version": "1.14.0", + "version": "1.15.0", "description": "Fusion components for building sitemaps", "main": "index.js", "files": [ diff --git a/blocks/feeds-source-content-api-by-day-block/CHANGELOG.md b/blocks/feeds-source-content-api-by-day-block/CHANGELOG.md index c953612d..528ec33a 100644 --- a/blocks/feeds-source-content-api-by-day-block/CHANGELOG.md +++ b/blocks/feeds-source-content-api-by-day-block/CHANGELOG.md @@ -1,5 +1,15 @@ # @wpmedia/feeds-source-content-api-by-day-block +## 1.15.0 + +### Minor Changes + +- [#658](https://github.com/WPMedia/feed-components/pull/658) [`a5039bd`](https://github.com/WPMedia/feed-components/commit/a5039bd9ec2f74f876a3fdf0718e0fbd6c5c05b8) Thanks [@vgalatro](https://github.com/vgalatro)! - OBF 1.15 release + +### Patch Changes + +- [#660](https://github.com/WPMedia/feed-components/pull/660) [`ca229d0`](https://github.com/WPMedia/feed-components/commit/ca229d0826e865a1ce682812918a2c46980367df) Thanks [@vgalatro](https://github.com/vgalatro)! - OBF 1.15.1 to sandbox + ## 1.14.0 ### Minor Changes diff --git a/blocks/feeds-source-content-api-by-day-block/package.json b/blocks/feeds-source-content-api-by-day-block/package.json index 55dd210f..aedac249 100644 --- a/blocks/feeds-source-content-api-by-day-block/package.json +++ b/blocks/feeds-source-content-api-by-day-block/package.json @@ -1,6 +1,6 @@ { "name": "@wpmedia/feeds-source-content-api-by-day-block", - "version": "1.14.0", + "version": "1.15.0", "description": "content source to search by a single day, for sitemap/YYYY-MM-DD", "main": "index.js", "files": [ diff --git a/blocks/feeds-source-content-api-by-day2-block/CHANGELOG.md b/blocks/feeds-source-content-api-by-day2-block/CHANGELOG.md index dd77e3cd..0b735f09 100644 --- a/blocks/feeds-source-content-api-by-day2-block/CHANGELOG.md +++ b/blocks/feeds-source-content-api-by-day2-block/CHANGELOG.md @@ -1,5 +1,15 @@ # @wpmedia/feeds-source-content-api-by-day2-block +## 1.15.0 + +### Minor Changes + +- [#658](https://github.com/WPMedia/feed-components/pull/658) [`a5039bd`](https://github.com/WPMedia/feed-components/commit/a5039bd9ec2f74f876a3fdf0718e0fbd6c5c05b8) Thanks [@vgalatro](https://github.com/vgalatro)! - OBF 1.15 release + +### Patch Changes + +- [#660](https://github.com/WPMedia/feed-components/pull/660) [`ca229d0`](https://github.com/WPMedia/feed-components/commit/ca229d0826e865a1ce682812918a2c46980367df) Thanks [@vgalatro](https://github.com/vgalatro)! - OBF 1.15.1 to sandbox + ## 1.14.0 ### Minor Changes diff --git a/blocks/feeds-source-content-api-by-day2-block/package.json b/blocks/feeds-source-content-api-by-day2-block/package.json index bfd46e2b..8b879f78 100644 --- a/blocks/feeds-source-content-api-by-day2-block/package.json +++ b/blocks/feeds-source-content-api-by-day2-block/package.json @@ -1,6 +1,6 @@ { "name": "@wpmedia/feeds-source-content-api-by-day2-block", - "version": "1.14.0", + "version": "1.15.0", "description": "content source to search by a single day, 1 hour TTL", "main": "index.js", "files": [ diff --git a/blocks/feeds-source-content-api-by-day3-block/CHANGELOG.md b/blocks/feeds-source-content-api-by-day3-block/CHANGELOG.md index c0424448..78c00058 100644 --- a/blocks/feeds-source-content-api-by-day3-block/CHANGELOG.md +++ b/blocks/feeds-source-content-api-by-day3-block/CHANGELOG.md @@ -1,5 +1,15 @@ # @wpmedia/feeds-source-content-api-by-day3-block +## 1.15.0 + +### Minor Changes + +- [#658](https://github.com/WPMedia/feed-components/pull/658) [`a5039bd`](https://github.com/WPMedia/feed-components/commit/a5039bd9ec2f74f876a3fdf0718e0fbd6c5c05b8) Thanks [@vgalatro](https://github.com/vgalatro)! - OBF 1.15 release + +### Patch Changes + +- [#660](https://github.com/WPMedia/feed-components/pull/660) [`ca229d0`](https://github.com/WPMedia/feed-components/commit/ca229d0826e865a1ce682812918a2c46980367df) Thanks [@vgalatro](https://github.com/vgalatro)! - OBF 1.15.1 to sandbox + ## 1.14.0 ### Minor Changes diff --git a/blocks/feeds-source-content-api-by-day3-block/package.json b/blocks/feeds-source-content-api-by-day3-block/package.json index 01f2780b..403767ae 100644 --- a/blocks/feeds-source-content-api-by-day3-block/package.json +++ b/blocks/feeds-source-content-api-by-day3-block/package.json @@ -1,6 +1,6 @@ { "name": "@wpmedia/feeds-source-content-api-by-day3-block", - "version": "1.14.0", + "version": "1.15.0", "description": "content source to search by a single day, for sitemap/YYYY-MM-DD with 24 hour (86400) ttl.", "main": "index.js", "files": [ diff --git a/blocks/feeds-source-single-content-block/CHANGELOG.md b/blocks/feeds-source-single-content-block/CHANGELOG.md index 69016a35..2ff297da 100644 --- a/blocks/feeds-source-single-content-block/CHANGELOG.md +++ b/blocks/feeds-source-single-content-block/CHANGELOG.md @@ -1,5 +1,15 @@ # @wpmedia/feeds-source-single-content-block +## 1.15.0 + +### Minor Changes + +- [#658](https://github.com/WPMedia/feed-components/pull/658) [`a5039bd`](https://github.com/WPMedia/feed-components/commit/a5039bd9ec2f74f876a3fdf0718e0fbd6c5c05b8) Thanks [@vgalatro](https://github.com/vgalatro)! - OBF 1.15 release + +### Patch Changes + +- [#660](https://github.com/WPMedia/feed-components/pull/660) [`ca229d0`](https://github.com/WPMedia/feed-components/commit/ca229d0826e865a1ce682812918a2c46980367df) Thanks [@vgalatro](https://github.com/vgalatro)! - OBF 1.15.1 to sandbox + ## 1.14.0 ### Minor Changes diff --git a/blocks/feeds-source-single-content-block/package.json b/blocks/feeds-source-single-content-block/package.json index 40c8ad1d..0bff5c4e 100644 --- a/blocks/feeds-source-single-content-block/package.json +++ b/blocks/feeds-source-single-content-block/package.json @@ -1,6 +1,6 @@ { "name": "@wpmedia/feeds-source-single-content-block", - "version": "1.14.0", + "version": "1.15.0", "description": "content source to get by _id or website_url", "main": "index.js", "files": [ diff --git a/blocks/feeds-source-video-api-block/CHANGELOG.md b/blocks/feeds-source-video-api-block/CHANGELOG.md index 6b659d90..daedc8c2 100644 --- a/blocks/feeds-source-video-api-block/CHANGELOG.md +++ b/blocks/feeds-source-video-api-block/CHANGELOG.md @@ -1,5 +1,15 @@ # @wpmedia/feeds-source-video-api-block +## 1.8.0 + +### Minor Changes + +- [#658](https://github.com/WPMedia/feed-components/pull/658) [`a5039bd`](https://github.com/WPMedia/feed-components/commit/a5039bd9ec2f74f876a3fdf0718e0fbd6c5c05b8) Thanks [@vgalatro](https://github.com/vgalatro)! - OBF 1.15 release + +### Patch Changes + +- [#660](https://github.com/WPMedia/feed-components/pull/660) [`ca229d0`](https://github.com/WPMedia/feed-components/commit/ca229d0826e865a1ce682812918a2c46980367df) Thanks [@vgalatro](https://github.com/vgalatro)! - OBF 1.15.1 to sandbox + ## 1.7.0 ### Minor Changes diff --git a/blocks/feeds-source-video-api-block/package.json b/blocks/feeds-source-video-api-block/package.json index bb5e307b..6d399a18 100644 --- a/blocks/feeds-source-video-api-block/package.json +++ b/blocks/feeds-source-video-api-block/package.json @@ -1,6 +1,6 @@ { "name": "@wpmedia/feeds-source-video-api-block", - "version": "1.7.0", + "version": "1.8.0", "description": "Fusion components for building sitemaps", "main": "index.js", "files": [ diff --git a/blocks/json-output-block/CHANGELOG.md b/blocks/json-output-block/CHANGELOG.md index 9135544f..17397f61 100644 --- a/blocks/json-output-block/CHANGELOG.md +++ b/blocks/json-output-block/CHANGELOG.md @@ -1,5 +1,15 @@ # @wpmedia/json-output-block +## 1.15.0 + +### Minor Changes + +- [#658](https://github.com/WPMedia/feed-components/pull/658) [`a5039bd`](https://github.com/WPMedia/feed-components/commit/a5039bd9ec2f74f876a3fdf0718e0fbd6c5c05b8) Thanks [@vgalatro](https://github.com/vgalatro)! - OBF 1.15 release + +### Patch Changes + +- [#660](https://github.com/WPMedia/feed-components/pull/660) [`ca229d0`](https://github.com/WPMedia/feed-components/commit/ca229d0826e865a1ce682812918a2c46980367df) Thanks [@vgalatro](https://github.com/vgalatro)! - OBF 1.15.1 to sandbox + ## 1.14.0 ### Minor Changes diff --git a/blocks/json-output-block/package.json b/blocks/json-output-block/package.json index 69915a5b..669a50ad 100644 --- a/blocks/json-output-block/package.json +++ b/blocks/json-output-block/package.json @@ -1,6 +1,6 @@ { "name": "@wpmedia/json-output-block", - "version": "1.14.0", + "version": "1.15.0", "description": "JSON Output Type", "main": "index.js", "files": [ diff --git a/blocks/mrss-feature-block/CHANGELOG.md b/blocks/mrss-feature-block/CHANGELOG.md index a793b1f9..6ad5dac0 100644 --- a/blocks/mrss-feature-block/CHANGELOG.md +++ b/blocks/mrss-feature-block/CHANGELOG.md @@ -1,5 +1,15 @@ # @wpmedia/mrss-feature-block +## 1.15.0 + +### Minor Changes + +- [#658](https://github.com/WPMedia/feed-components/pull/658) [`a5039bd`](https://github.com/WPMedia/feed-components/commit/a5039bd9ec2f74f876a3fdf0718e0fbd6c5c05b8) Thanks [@vgalatro](https://github.com/vgalatro)! - OBF 1.15 release + +### Patch Changes + +- [#660](https://github.com/WPMedia/feed-components/pull/660) [`ca229d0`](https://github.com/WPMedia/feed-components/commit/ca229d0826e865a1ce682812918a2c46980367df) Thanks [@vgalatro](https://github.com/vgalatro)! - OBF 1.15.1 to sandbox + ## 1.14.0 ### Minor Changes diff --git a/blocks/mrss-feature-block/package.json b/blocks/mrss-feature-block/package.json index d79e849c..2912a051 100644 --- a/blocks/mrss-feature-block/package.json +++ b/blocks/mrss-feature-block/package.json @@ -1,6 +1,6 @@ { "name": "@wpmedia/mrss-feature-block", - "version": "1.14.0", + "version": "1.15.0", "description": "Fusion components for building rss", "main": "index.js", "files": [ diff --git a/blocks/rss-alexa-feature-block/CHANGELOG.md b/blocks/rss-alexa-feature-block/CHANGELOG.md index 15ee15d5..f9f1c386 100644 --- a/blocks/rss-alexa-feature-block/CHANGELOG.md +++ b/blocks/rss-alexa-feature-block/CHANGELOG.md @@ -1,5 +1,15 @@ # @wpmedia/rss-alexa-feature-block +## 1.15.0 + +### Minor Changes + +- [#658](https://github.com/WPMedia/feed-components/pull/658) [`a5039bd`](https://github.com/WPMedia/feed-components/commit/a5039bd9ec2f74f876a3fdf0718e0fbd6c5c05b8) Thanks [@vgalatro](https://github.com/vgalatro)! - OBF 1.15 release + +### Patch Changes + +- [#660](https://github.com/WPMedia/feed-components/pull/660) [`ca229d0`](https://github.com/WPMedia/feed-components/commit/ca229d0826e865a1ce682812918a2c46980367df) Thanks [@vgalatro](https://github.com/vgalatro)! - OBF 1.15.1 to sandbox + ## 1.14.0 ### Minor Changes diff --git a/blocks/rss-alexa-feature-block/package.json b/blocks/rss-alexa-feature-block/package.json index 2e0aa245..8bf8505d 100644 --- a/blocks/rss-alexa-feature-block/package.json +++ b/blocks/rss-alexa-feature-block/package.json @@ -1,6 +1,6 @@ { "name": "@wpmedia/rss-alexa-feature-block", - "version": "1.14.0", + "version": "1.15.0", "description": "Fusion components for building rss alexa feed", "main": "index.js", "files": [ diff --git a/blocks/rss-fbia-feature-block/CHANGELOG.md b/blocks/rss-fbia-feature-block/CHANGELOG.md index 28d8fe8d..39f734ef 100644 --- a/blocks/rss-fbia-feature-block/CHANGELOG.md +++ b/blocks/rss-fbia-feature-block/CHANGELOG.md @@ -1,5 +1,15 @@ # @wpmedia/sitemaps-feature-block +## 1.15.0 + +### Minor Changes + +- [#658](https://github.com/WPMedia/feed-components/pull/658) [`a5039bd`](https://github.com/WPMedia/feed-components/commit/a5039bd9ec2f74f876a3fdf0718e0fbd6c5c05b8) Thanks [@vgalatro](https://github.com/vgalatro)! - OBF 1.15 release + +### Patch Changes + +- [#660](https://github.com/WPMedia/feed-components/pull/660) [`ca229d0`](https://github.com/WPMedia/feed-components/commit/ca229d0826e865a1ce682812918a2c46980367df) Thanks [@vgalatro](https://github.com/vgalatro)! - OBF 1.15.1 to sandbox + ## 1.14.0 ### Minor Changes diff --git a/blocks/rss-fbia-feature-block/features/rss/__snapshots__/xml.test.js.snap b/blocks/rss-fbia-feature-block/features/rss/__snapshots__/xml.test.js.snap index 5cca7262..0f040cd7 100644 --- a/blocks/rss-fbia-feature-block/features/rss/__snapshots__/xml.test.js.snap +++ b/blocks/rss-fbia-feature-block/features/rss/__snapshots__/xml.test.js.snap @@ -143,7 +143,7 @@ Object { "content:encoded": Object { "$": "Tips for Safe Hand washing

Tips for Safe Hand washing

Tips to keep you wash for 20 seconds

JOHN SMITHJANE DOE
Hand washing can be fun if you make it a songHarold Hands

coronvirus

try singing the happy birthday song

be sure to wash your thumbs

DescriptionAmount
apples$0.25
pears$0.50
oranges$0.70
", +
DescriptionAmount
apples$0.25
pears$0.50
oranges$0.70
", }, "dc:creator": Object { "$": "John Smith, Jane Doe", @@ -163,7 +163,7 @@ Object { }, Object { "content:encoded": Object { - "$": "I'm out of ideas

I'm out of ideas

", + "$": "I'm out of ideas

I'm out of ideas

", }, "description": Object { "$": "", @@ -212,7 +212,7 @@ Object { "item": Array [ Object { "content:encoded": Object { - "$": "<meta property=\\"og:title\\" content=\\"\\"/><meta property=\\"og:url\\" content=\\"http://demo-prod.origin.arcpublishing.com/food/2020/04/07/tips-for-safe-hand-washing\\"/><meta property=\\"og:description\\" content=\\"\\"/><meta property=\\"fb:use_automatic_ad_placement\\" content=\\"enable=false\\"/><meta property=\\"op:markup_version\\" content=\\"v1.0\\"/><meta property=\\"fb:article_style\\" content=\\"default\\"/><meta property=\\"og:image\\" content=\\"hi/abcdefghijklmnopqrstuvwxyz=/arc-anglerfish-arc2-prod-demo.s3.amazonaws.com/public/JTWX7EUOLJE4FCHYGN2COQAERY.png\\"/><meta property=\\"fb:likes_and_comments\\" content=\\"disable\\"/></head><body><article><header><h1/><time datetime=\\"2020-04-08T10:34:41.432Z\\" class=\\"op-modified\\">2020-04-08T10:34:41.432Z</time><time datetime=\\"2020-04-08T10:34:41.432Z\\" class=\\"op-published\\">2020-04-08T10:34:41.432Z</time><figure class=\\"fb-feed-cover\\"><img src=\\"hi/abcdefghijklmnopqrstuvwxyz=/arc-anglerfish-arc2-prod-demo.s3.amazonaws.com/public/JTWX7EUOLJE4FCHYGN2COQAERY.png\\"/></figure><h2 class=\\"op-kicker\\">coronvirus</h2></header><footer><aside>John is a journalist</aside><small>© 2023 google news</small></footer></article></body></html>", + "$": "<!doctype html><html lang=\\"en\\"><head><link rel=\\"canonical\\" href=\\"http://demo-prod.origin.arcpublishing.com/food/2020/04/07/tips-for-safe-hand-washing\\"/><title/><meta property=\\"og:title\\" content=\\"\\"/><meta property=\\"og:url\\" content=\\"http://demo-prod.origin.arcpublishing.com/food/2020/04/07/tips-for-safe-hand-washing\\"/><meta property=\\"og:description\\" content=\\"\\"/><meta property=\\"fb:use_automatic_ad_placement\\" content=\\"enable=false\\"/><meta property=\\"op:markup_version\\" content=\\"v1.0\\"/><meta property=\\"fb:article_style\\" content=\\"default\\"/><meta property=\\"og:image\\" content=\\"hi/abcdefghijklmnopqrstuvwxyz=/arc-anglerfish-arc2-prod-demo.s3.amazonaws.com/public/JTWX7EUOLJE4FCHYGN2COQAERY.png\\"/><meta property=\\"fb:likes_and_comments\\" content=\\"disable\\"/></head><body><article><header><h1/><time datetime=\\"2020-04-08T10:34:41.432Z\\" class=\\"op-modified\\">2020-04-08T10:34:41.432Z</time><time datetime=\\"2020-04-08T10:34:41.432Z\\" class=\\"op-published\\">2020-04-08T10:34:41.432Z</time><figure class=\\"fb-feed-cover\\"><img src=\\"hi/abcdefghijklmnopqrstuvwxyz=/arc-anglerfish-arc2-prod-demo.s3.amazonaws.com/public/JTWX7EUOLJE4FCHYGN2COQAERY.png\\"/></figure><h2 class=\\"op-kicker\\">coronvirus</h2></header><footer><aside>John is a journalist</aside><small>© 2024 google news</small></footer></article></body></html>", }, "guid": Object { "#": "http://demo-prod.origin.arcpublishing.com/food/2020/04/07/tips-for-safe-hand-washing", @@ -223,7 +223,7 @@ Object { }, Object { "content:encoded": Object { - "$": "<!doctype html><html lang=\\"en\\"><head><link rel=\\"canonical\\" href=\\"http://demo-prod.origin.arcpublishing.com/food/empty-recipe\\"/><title/><meta property=\\"og:title\\" content=\\"\\"/><meta property=\\"og:url\\" content=\\"http://demo-prod.origin.arcpublishing.com/food/empty-recipe\\"/><meta property=\\"og:description\\" content=\\"\\"/><meta property=\\"fb:use_automatic_ad_placement\\" content=\\"enable=false\\"/><meta property=\\"op:markup_version\\" content=\\"v1.0\\"/><meta property=\\"fb:article_style\\" content=\\"default\\"/><meta property=\\"og:image\\" content=\\"\\"/><meta property=\\"fb:likes_and_comments\\" content=\\"disable\\"/></head><body><article><header><h1/><time datetime=\\"2021-04-08T10:34:41.432Z\\" class=\\"op-modified\\">2021-04-08T10:34:41.432Z</time><time datetime=\\"2021-04-08T10:34:41.432Z\\" class=\\"op-published\\">2021-04-08T10:34:41.432Z</time></header><footer><small>© 2023 google news</small></footer></article></body></html>", + "$": "<!doctype html><html lang=\\"en\\"><head><link rel=\\"canonical\\" href=\\"http://demo-prod.origin.arcpublishing.com/food/empty-recipe\\"/><title/><meta property=\\"og:title\\" content=\\"\\"/><meta property=\\"og:url\\" content=\\"http://demo-prod.origin.arcpublishing.com/food/empty-recipe\\"/><meta property=\\"og:description\\" content=\\"\\"/><meta property=\\"fb:use_automatic_ad_placement\\" content=\\"enable=false\\"/><meta property=\\"op:markup_version\\" content=\\"v1.0\\"/><meta property=\\"fb:article_style\\" content=\\"default\\"/><meta property=\\"og:image\\" content=\\"\\"/><meta property=\\"fb:likes_and_comments\\" content=\\"disable\\"/></head><body><article><header><h1/><time datetime=\\"2021-04-08T10:34:41.432Z\\" class=\\"op-modified\\">2021-04-08T10:34:41.432Z</time><time datetime=\\"2021-04-08T10:34:41.432Z\\" class=\\"op-published\\">2021-04-08T10:34:41.432Z</time></header><footer><small>© 2024 google news</small></footer></article></body></html>", }, "guid": Object { "#": "http://demo-prod.origin.arcpublishing.com/food/empty-recipe", diff --git a/blocks/rss-fbia-feature-block/package.json b/blocks/rss-fbia-feature-block/package.json index 98fe2c2e..7680b34f 100644 --- a/blocks/rss-fbia-feature-block/package.json +++ b/blocks/rss-fbia-feature-block/package.json @@ -1,6 +1,6 @@ { "name": "@wpmedia/rss-fbia-feature-block", - "version": "1.14.0", + "version": "1.15.0", "description": "Fusion components for building Facebook Instant Articles", "main": "index.js", "files": [ diff --git a/blocks/rss-feature-block/CHANGELOG.md b/blocks/rss-feature-block/CHANGELOG.md index fb8c8214..3989b619 100644 --- a/blocks/rss-feature-block/CHANGELOG.md +++ b/blocks/rss-feature-block/CHANGELOG.md @@ -1,5 +1,15 @@ # @wpmedia/rss-feature-block +## 1.15.0 + +### Minor Changes + +- [#658](https://github.com/WPMedia/feed-components/pull/658) [`a5039bd`](https://github.com/WPMedia/feed-components/commit/a5039bd9ec2f74f876a3fdf0718e0fbd6c5c05b8) Thanks [@vgalatro](https://github.com/vgalatro)! - OBF 1.15 release + +### Patch Changes + +- [#660](https://github.com/WPMedia/feed-components/pull/660) [`ca229d0`](https://github.com/WPMedia/feed-components/commit/ca229d0826e865a1ce682812918a2c46980367df) Thanks [@vgalatro](https://github.com/vgalatro)! - OBF 1.15.1 to sandbox + ## 1.14.0 ### Minor Changes diff --git a/blocks/rss-feature-block/package.json b/blocks/rss-feature-block/package.json index e44a1589..413e8615 100644 --- a/blocks/rss-feature-block/package.json +++ b/blocks/rss-feature-block/package.json @@ -1,6 +1,6 @@ { "name": "@wpmedia/rss-feature-block", - "version": "1.14.0", + "version": "1.15.0", "description": "Fusion components for building rss", "main": "index.js", "files": [ diff --git a/blocks/rss-flipboard-feature-block/CHANGELOG.md b/blocks/rss-flipboard-feature-block/CHANGELOG.md index 4dc9c60d..c97744cd 100644 --- a/blocks/rss-flipboard-feature-block/CHANGELOG.md +++ b/blocks/rss-flipboard-feature-block/CHANGELOG.md @@ -1,5 +1,15 @@ # @wpmedia/rss-google-news-feature-block +## 1.15.0 + +### Minor Changes + +- [#658](https://github.com/WPMedia/feed-components/pull/658) [`a5039bd`](https://github.com/WPMedia/feed-components/commit/a5039bd9ec2f74f876a3fdf0718e0fbd6c5c05b8) Thanks [@vgalatro](https://github.com/vgalatro)! - OBF 1.15 release + +### Patch Changes + +- [#660](https://github.com/WPMedia/feed-components/pull/660) [`ca229d0`](https://github.com/WPMedia/feed-components/commit/ca229d0826e865a1ce682812918a2c46980367df) Thanks [@vgalatro](https://github.com/vgalatro)! - OBF 1.15.1 to sandbox + ## 1.14.0 ### Minor Changes diff --git a/blocks/rss-flipboard-feature-block/package.json b/blocks/rss-flipboard-feature-block/package.json index 042da89d..3a5c4732 100644 --- a/blocks/rss-flipboard-feature-block/package.json +++ b/blocks/rss-flipboard-feature-block/package.json @@ -1,6 +1,6 @@ { "name": "@wpmedia/rss-flipboard-feature-block", - "version": "1.14.0", + "version": "1.15.0", "description": "Fusion components for building flipboard-rss", "main": "index.js", "files": [ diff --git a/blocks/rss-google-news-feature-block/CHANGELOG.md b/blocks/rss-google-news-feature-block/CHANGELOG.md index fe2f4e1a..c529db45 100644 --- a/blocks/rss-google-news-feature-block/CHANGELOG.md +++ b/blocks/rss-google-news-feature-block/CHANGELOG.md @@ -1,5 +1,15 @@ # @wpmedia/rss-google-news-feature-block +## 1.15.0 + +### Minor Changes + +- [#658](https://github.com/WPMedia/feed-components/pull/658) [`a5039bd`](https://github.com/WPMedia/feed-components/commit/a5039bd9ec2f74f876a3fdf0718e0fbd6c5c05b8) Thanks [@vgalatro](https://github.com/vgalatro)! - OBF 1.15 release + +### Patch Changes + +- [#660](https://github.com/WPMedia/feed-components/pull/660) [`ca229d0`](https://github.com/WPMedia/feed-components/commit/ca229d0826e865a1ce682812918a2c46980367df) Thanks [@vgalatro](https://github.com/vgalatro)! - OBF 1.15.1 to sandbox + ## 1.14.0 ### Minor Changes diff --git a/blocks/rss-google-news-feature-block/package.json b/blocks/rss-google-news-feature-block/package.json index 840bb7a0..0c0ce409 100644 --- a/blocks/rss-google-news-feature-block/package.json +++ b/blocks/rss-google-news-feature-block/package.json @@ -1,6 +1,6 @@ { "name": "@wpmedia/rss-google-news-feature-block", - "version": "1.14.0", + "version": "1.15.0", "description": "Fusion components for building google-news-rss", "main": "index.js", "files": [ diff --git a/blocks/rss-msn-feature-block/CHANGELOG.md b/blocks/rss-msn-feature-block/CHANGELOG.md index ecda95e4..d72fcb83 100644 --- a/blocks/rss-msn-feature-block/CHANGELOG.md +++ b/blocks/rss-msn-feature-block/CHANGELOG.md @@ -1,5 +1,15 @@ # @wpmedia/rss-msn-feature-block +## 1.15.0 + +### Minor Changes + +- [#658](https://github.com/WPMedia/feed-components/pull/658) [`a5039bd`](https://github.com/WPMedia/feed-components/commit/a5039bd9ec2f74f876a3fdf0718e0fbd6c5c05b8) Thanks [@vgalatro](https://github.com/vgalatro)! - OBF 1.15 release + +### Patch Changes + +- [#660](https://github.com/WPMedia/feed-components/pull/660) [`ca229d0`](https://github.com/WPMedia/feed-components/commit/ca229d0826e865a1ce682812918a2c46980367df) Thanks [@vgalatro](https://github.com/vgalatro)! - OBF 1.15.1 to sandbox + ## 1.14.0 ### Minor Changes diff --git a/blocks/rss-msn-feature-block/package.json b/blocks/rss-msn-feature-block/package.json index eeba5c78..4d30d28b 100644 --- a/blocks/rss-msn-feature-block/package.json +++ b/blocks/rss-msn-feature-block/package.json @@ -1,6 +1,6 @@ { "name": "@wpmedia/rss-msn-feature-block", - "version": "1.14.0", + "version": "1.15.0", "description": "Fusion components for building msn-rss", "main": "index.js", "files": [ diff --git a/blocks/sitemap-feature-block/CHANGELOG.md b/blocks/sitemap-feature-block/CHANGELOG.md index bddf1b3c..6dd7d004 100644 --- a/blocks/sitemap-feature-block/CHANGELOG.md +++ b/blocks/sitemap-feature-block/CHANGELOG.md @@ -1,5 +1,15 @@ # @wpmedia/sitemaps-feature-block +## 1.15.0 + +### Minor Changes + +- [#658](https://github.com/WPMedia/feed-components/pull/658) [`a5039bd`](https://github.com/WPMedia/feed-components/commit/a5039bd9ec2f74f876a3fdf0718e0fbd6c5c05b8) Thanks [@vgalatro](https://github.com/vgalatro)! - OBF 1.15 release + +### Patch Changes + +- [#660](https://github.com/WPMedia/feed-components/pull/660) [`ca229d0`](https://github.com/WPMedia/feed-components/commit/ca229d0826e865a1ce682812918a2c46980367df) Thanks [@vgalatro](https://github.com/vgalatro)! - OBF 1.15.1 to sandbox + ## 1.14.0 ### Minor Changes diff --git a/blocks/sitemap-feature-block/package.json b/blocks/sitemap-feature-block/package.json index 30cf0d2c..bb0b8545 100644 --- a/blocks/sitemap-feature-block/package.json +++ b/blocks/sitemap-feature-block/package.json @@ -1,6 +1,6 @@ { "name": "@wpmedia/sitemap-feature-block", - "version": "1.14.0", + "version": "1.15.0", "description": "Fusion components for building sitemaps", "main": "index.js", "files": [ diff --git a/blocks/sitemap-index-by-day-feature-block/CHANGELOG.md b/blocks/sitemap-index-by-day-feature-block/CHANGELOG.md index 9e922508..7f935960 100644 --- a/blocks/sitemap-index-by-day-feature-block/CHANGELOG.md +++ b/blocks/sitemap-index-by-day-feature-block/CHANGELOG.md @@ -1,5 +1,15 @@ # @wpmedia/sitemap-index-by-day-feature-block +## 1.15.0 + +### Minor Changes + +- [#658](https://github.com/WPMedia/feed-components/pull/658) [`a5039bd`](https://github.com/WPMedia/feed-components/commit/a5039bd9ec2f74f876a3fdf0718e0fbd6c5c05b8) Thanks [@vgalatro](https://github.com/vgalatro)! - OBF 1.15 release + +### Patch Changes + +- [#660](https://github.com/WPMedia/feed-components/pull/660) [`ca229d0`](https://github.com/WPMedia/feed-components/commit/ca229d0826e865a1ce682812918a2c46980367df) Thanks [@vgalatro](https://github.com/vgalatro)! - OBF 1.15.1 to sandbox + ## 1.14.0 ### Minor Changes diff --git a/blocks/sitemap-index-by-day-feature-block/package.json b/blocks/sitemap-index-by-day-feature-block/package.json index f09285d9..579f213f 100644 --- a/blocks/sitemap-index-by-day-feature-block/package.json +++ b/blocks/sitemap-index-by-day-feature-block/package.json @@ -1,6 +1,6 @@ { "name": "@wpmedia/sitemap-index-by-day-feature-block", - "version": "1.14.0", + "version": "1.15.0", "description": "Fusion feature for building sitemap-index by day", "main": "index.js", "files": [ diff --git a/blocks/sitemap-index-feature-block/CHANGELOG.md b/blocks/sitemap-index-feature-block/CHANGELOG.md index 1a1de2ab..7a6b7b7e 100644 --- a/blocks/sitemap-index-feature-block/CHANGELOG.md +++ b/blocks/sitemap-index-feature-block/CHANGELOG.md @@ -1,5 +1,15 @@ # @wpmedia/sitemap-index-feature-block +## 1.15.0 + +### Minor Changes + +- [#658](https://github.com/WPMedia/feed-components/pull/658) [`a5039bd`](https://github.com/WPMedia/feed-components/commit/a5039bd9ec2f74f876a3fdf0718e0fbd6c5c05b8) Thanks [@vgalatro](https://github.com/vgalatro)! - OBF 1.15 release + +### Patch Changes + +- [#660](https://github.com/WPMedia/feed-components/pull/660) [`ca229d0`](https://github.com/WPMedia/feed-components/commit/ca229d0826e865a1ce682812918a2c46980367df) Thanks [@vgalatro](https://github.com/vgalatro)! - OBF 1.15.1 to sandbox + ## 1.14.0 ### Minor Changes diff --git a/blocks/sitemap-index-feature-block/package.json b/blocks/sitemap-index-feature-block/package.json index d7b16427..45a6d11a 100644 --- a/blocks/sitemap-index-feature-block/package.json +++ b/blocks/sitemap-index-feature-block/package.json @@ -1,6 +1,6 @@ { "name": "@wpmedia/sitemap-index-feature-block", - "version": "1.14.0", + "version": "1.15.0", "description": "Fusion components for building sitemap-index", "main": "index.js", "files": [ diff --git a/blocks/sitemap-news-feature-block/CHANGELOG.md b/blocks/sitemap-news-feature-block/CHANGELOG.md index 6f7da25b..7b744b38 100644 --- a/blocks/sitemap-news-feature-block/CHANGELOG.md +++ b/blocks/sitemap-news-feature-block/CHANGELOG.md @@ -1,5 +1,15 @@ # @wpmedia/sitemaps-news-feature-block +## 1.15.0 + +### Minor Changes + +- [#658](https://github.com/WPMedia/feed-components/pull/658) [`a5039bd`](https://github.com/WPMedia/feed-components/commit/a5039bd9ec2f74f876a3fdf0718e0fbd6c5c05b8) Thanks [@vgalatro](https://github.com/vgalatro)! - OBF 1.15 release + +### Patch Changes + +- [#660](https://github.com/WPMedia/feed-components/pull/660) [`ca229d0`](https://github.com/WPMedia/feed-components/commit/ca229d0826e865a1ce682812918a2c46980367df) Thanks [@vgalatro](https://github.com/vgalatro)! - OBF 1.15.1 to sandbox + ## 1.14.0 ### Minor Changes diff --git a/blocks/sitemap-news-feature-block/package.json b/blocks/sitemap-news-feature-block/package.json index ff98298f..84a8a97c 100644 --- a/blocks/sitemap-news-feature-block/package.json +++ b/blocks/sitemap-news-feature-block/package.json @@ -1,6 +1,6 @@ { "name": "@wpmedia/sitemap-news-feature-block", - "version": "1.14.0", + "version": "1.15.0", "description": "Fusion components for building news sitemaps", "main": "index.js", "files": [ diff --git a/blocks/sitemap-section-feature-block/CHANGELOG.md b/blocks/sitemap-section-feature-block/CHANGELOG.md index 79ff4bcc..0de15781 100644 --- a/blocks/sitemap-section-feature-block/CHANGELOG.md +++ b/blocks/sitemap-section-feature-block/CHANGELOG.md @@ -1,5 +1,15 @@ # @wpmedia/sitemap-section-feature-block +## 1.15.0 + +### Minor Changes + +- [#658](https://github.com/WPMedia/feed-components/pull/658) [`a5039bd`](https://github.com/WPMedia/feed-components/commit/a5039bd9ec2f74f876a3fdf0718e0fbd6c5c05b8) Thanks [@vgalatro](https://github.com/vgalatro)! - OBF 1.15 release + +### Patch Changes + +- [#660](https://github.com/WPMedia/feed-components/pull/660) [`ca229d0`](https://github.com/WPMedia/feed-components/commit/ca229d0826e865a1ce682812918a2c46980367df) Thanks [@vgalatro](https://github.com/vgalatro)! - OBF 1.15.1 to sandbox + ## 1.14.1 ### Patch Changes diff --git a/blocks/sitemap-section-feature-block/package.json b/blocks/sitemap-section-feature-block/package.json index 748e828e..59f75fc3 100644 --- a/blocks/sitemap-section-feature-block/package.json +++ b/blocks/sitemap-section-feature-block/package.json @@ -1,6 +1,6 @@ { "name": "@wpmedia/sitemap-section-feature-block", - "version": "1.14.1", + "version": "1.15.0", "description": "sitemaps section using Site Service", "main": "index.js", "files": [ diff --git a/blocks/sitemap-section-index-feature-block/CHANGELOG.md b/blocks/sitemap-section-index-feature-block/CHANGELOG.md index 934b0940..91550bf7 100644 --- a/blocks/sitemap-section-index-feature-block/CHANGELOG.md +++ b/blocks/sitemap-section-index-feature-block/CHANGELOG.md @@ -1,5 +1,15 @@ # @wpmedia/sitemap-section-index-feature-block +## 1.15.0 + +### Minor Changes + +- [#658](https://github.com/WPMedia/feed-components/pull/658) [`a5039bd`](https://github.com/WPMedia/feed-components/commit/a5039bd9ec2f74f876a3fdf0718e0fbd6c5c05b8) Thanks [@vgalatro](https://github.com/vgalatro)! - OBF 1.15 release + +### Patch Changes + +- [#660](https://github.com/WPMedia/feed-components/pull/660) [`ca229d0`](https://github.com/WPMedia/feed-components/commit/ca229d0826e865a1ce682812918a2c46980367df) Thanks [@vgalatro](https://github.com/vgalatro)! - OBF 1.15.1 to sandbox + ## 1.14.0 ### Minor Changes diff --git a/blocks/sitemap-section-index-feature-block/package.json b/blocks/sitemap-section-index-feature-block/package.json index 4883f8bd..d7799f05 100644 --- a/blocks/sitemap-section-index-feature-block/package.json +++ b/blocks/sitemap-section-index-feature-block/package.json @@ -1,6 +1,6 @@ { "name": "@wpmedia/sitemap-section-index-feature-block", - "version": "1.14.0", + "version": "1.15.0", "description": "sitemaps section index using Site Service", "main": "index.js", "files": [ diff --git a/blocks/sitemap-video-feature-block/CHANGELOG.md b/blocks/sitemap-video-feature-block/CHANGELOG.md index 4204c686..2ab359bc 100644 --- a/blocks/sitemap-video-feature-block/CHANGELOG.md +++ b/blocks/sitemap-video-feature-block/CHANGELOG.md @@ -1,5 +1,15 @@ # @wpmedia/sitemap-video-feature-block +## 1.15.0 + +### Minor Changes + +- [#658](https://github.com/WPMedia/feed-components/pull/658) [`a5039bd`](https://github.com/WPMedia/feed-components/commit/a5039bd9ec2f74f876a3fdf0718e0fbd6c5c05b8) Thanks [@vgalatro](https://github.com/vgalatro)! - OBF 1.15 release + +### Patch Changes + +- [#660](https://github.com/WPMedia/feed-components/pull/660) [`ca229d0`](https://github.com/WPMedia/feed-components/commit/ca229d0826e865a1ce682812918a2c46980367df) Thanks [@vgalatro](https://github.com/vgalatro)! - OBF 1.15.1 to sandbox + ## 1.14.0 ### Minor Changes diff --git a/blocks/sitemap-video-feature-block/package.json b/blocks/sitemap-video-feature-block/package.json index 70e77f6e..8796ce5a 100644 --- a/blocks/sitemap-video-feature-block/package.json +++ b/blocks/sitemap-video-feature-block/package.json @@ -1,6 +1,6 @@ { "name": "@wpmedia/sitemap-video-feature-block", - "version": "1.14.0", + "version": "1.15.0", "description": "Fusion components for building sitemaps", "main": "index.js", "files": [ diff --git a/blocks/story-feed-querybuilder-content-source-block/CHANGELOG.md b/blocks/story-feed-querybuilder-content-source-block/CHANGELOG.md new file mode 100644 index 00000000..ea9fa761 --- /dev/null +++ b/blocks/story-feed-querybuilder-content-source-block/CHANGELOG.md @@ -0,0 +1,15 @@ +# @wpmedia/story-feed-querybuilder-content-source-block + +## 0.1.0 +### Minor Changes + + + +- [#658](https://github.com/WPMedia/feed-components/pull/658) [`a5039bd`](https://github.com/WPMedia/feed-components/commit/a5039bd9ec2f74f876a3fdf0718e0fbd6c5c05b8) Thanks [@vgalatro](https://github.com/vgalatro)! - OBF 1.15 release + + +### Patch Changes + + + +- [#660](https://github.com/WPMedia/feed-components/pull/660) [`ca229d0`](https://github.com/WPMedia/feed-components/commit/ca229d0826e865a1ce682812918a2c46980367df) Thanks [@vgalatro](https://github.com/vgalatro)! - OBF 1.15.1 to sandbox diff --git a/blocks/story-feed-querybuilder-content-source-block/package.json b/blocks/story-feed-querybuilder-content-source-block/package.json index 9271d50b..2cefed3c 100644 --- a/blocks/story-feed-querybuilder-content-source-block/package.json +++ b/blocks/story-feed-querybuilder-content-source-block/package.json @@ -1,6 +1,6 @@ { "name": "@wpmedia/story-feed-querybuilder-content-source-block", - "version": "0.0.1", + "version": "0.1.0", "description": "Content source block to use with queryBuilder integration", "main": "index.js", "files": [ diff --git a/blocks/text-output-block/CHANGELOG.md b/blocks/text-output-block/CHANGELOG.md index e4d87c4d..7e5dba94 100644 --- a/blocks/text-output-block/CHANGELOG.md +++ b/blocks/text-output-block/CHANGELOG.md @@ -1,4 +1,18 @@ # Change Log +## 0.1.0 + +### Minor Changes + +- [#658](https://github.com/WPMedia/feed-components/pull/658) [`a5039bd`](https://github.com/WPMedia/feed-components/commit/a5039bd9ec2f74f876a3fdf0718e0fbd6c5c05b8) Thanks [@vgalatro](https://github.com/vgalatro)! - OBF 1.15 release + +### Patch Changes + +- [#654](https://github.com/WPMedia/feed-components/pull/654) [`f1b5ff3`](https://github.com/WPMedia/feed-components/commit/f1b5ff34e5e468f928b4d73d7359c313d39f4ec5) Thanks [@blakeganderson](https://github.com/blakeganderson)! - Added text output block + +* [#659](https://github.com/WPMedia/feed-components/pull/659) [`6ffadfb`](https://github.com/WPMedia/feed-components/commit/6ffadfb6cafd6df4227213188f332b0b4ecdc4b4) Thanks [@rmbrntt](https://github.com/rmbrntt)! - Removed consumer dependancy + +- [#660](https://github.com/WPMedia/feed-components/pull/660) [`ca229d0`](https://github.com/WPMedia/feed-components/commit/ca229d0826e865a1ce682812918a2c46980367df) Thanks [@vgalatro](https://github.com/vgalatro)! - OBF 1.15.1 to sandbox + All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. diff --git a/blocks/text-output-block/index.js b/blocks/text-output-block/index.js index f053ebf7..4ba52ba2 100644 --- a/blocks/text-output-block/index.js +++ b/blocks/text-output-block/index.js @@ -1 +1 @@ -module.exports = {}; +module.exports = {} diff --git a/blocks/text-output-block/jest.config.js b/blocks/text-output-block/jest.config.js index 063a34cb..578294d0 100644 --- a/blocks/text-output-block/jest.config.js +++ b/blocks/text-output-block/jest.config.js @@ -1,5 +1,5 @@ -const base = require("../../jest/jest.config.base"); +const base = require('../../jest/jest.config.base') module.exports = { - ...base, -}; + ...base, +} diff --git a/blocks/text-output-block/output-types/text.js b/blocks/text-output-block/output-types/text.js index 5996849a..bd54281e 100644 --- a/blocks/text-output-block/output-types/text.js +++ b/blocks/text-output-block/output-types/text.js @@ -1,18 +1,19 @@ -import PropTypes from "prop-types"; +import PropTypes from 'prop-types' const TextOutputType = ({ children }) => { - const generateText = (child) => { - if (Array.isArray(child)) return child.map(generateText).join("\n"); - return child; - }; - return generateText(children); -}; + const generateText = (child) => { + if (Array.isArray(child)) return child.map(generateText).join('\n') + return child + } -TextOutputType.contentType = "text/plain"; -TextOutputType.fallback = false; + return generateText(children) +} + +TextOutputType.contentType = 'text/plain' +TextOutputType.fallback = false TextOutputType.propTypes = { - children: PropTypes.node, -}; + children: PropTypes.node, +} -export default TextOutputType; \ No newline at end of file +export default TextOutputType diff --git a/blocks/text-output-block/output-types/text.test.jsx b/blocks/text-output-block/output-types/text.test.jsx index 0624cb2c..f706f840 100644 --- a/blocks/text-output-block/output-types/text.test.jsx +++ b/blocks/text-output-block/output-types/text.test.jsx @@ -5,16 +5,16 @@ * @jest-environment node */ // eslint-disable-next-line no-unused-vars -import Consumer from 'fusion:consumer' -import {TextOutputType} from "./text"; +import TextOutputType from './text' it('should match the snapshot', () => { - const videoSitemap = TextOutputType("hello world") - expect(videoSitemap).toMatchSnapshot() - }) - -it("should render array of children as plain text", () => { - const videoSitemap = TextOutputType(["hello world", "print output"]) - expect(videoSitemap).toEqual("hello world\nprint output"); -}); + const videoSitemap = TextOutputType({ children: 'hello world' }) + expect(videoSitemap).toMatchSnapshot() +}) +it('should render array of children as plain text', () => { + const videoSitemap = TextOutputType({ + children: ['hello world', 'print output'], + }) + expect(videoSitemap).toEqual('hello world\nprint output') +}) diff --git a/blocks/text-output-block/package.json b/blocks/text-output-block/package.json index fea1bbc5..72509f64 100644 --- a/blocks/text-output-block/package.json +++ b/blocks/text-output-block/package.json @@ -1,6 +1,6 @@ { "name": "@wpmedia/text-output-block", - "version": "0.0.1", + "version": "0.1.0", "description": "Fusion News Theme text output block", "main": "index.js", "files": [ diff --git a/blocks/textfile-block/CHANGELOG.md b/blocks/textfile-block/CHANGELOG.md index e9fb6ecf..c159ed47 100644 --- a/blocks/textfile-block/CHANGELOG.md +++ b/blocks/textfile-block/CHANGELOG.md @@ -1,4 +1,14 @@ # Change Log +## 0.1.0 + +### Minor Changes + +- [#658](https://github.com/WPMedia/feed-components/pull/658) [`a5039bd`](https://github.com/WPMedia/feed-components/commit/a5039bd9ec2f74f876a3fdf0718e0fbd6c5c05b8) Thanks [@vgalatro](https://github.com/vgalatro)! - OBF 1.15 release + +### Patch Changes + +- [#660](https://github.com/WPMedia/feed-components/pull/660) [`ca229d0`](https://github.com/WPMedia/feed-components/commit/ca229d0826e865a1ce682812918a2c46980367df) Thanks [@vgalatro](https://github.com/vgalatro)! - OBF 1.15.1 to sandbox + All notable changes to this project will be documented in this file. -See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. \ No newline at end of file +See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. diff --git a/blocks/textfile-block/features/textfile/__snapshots__/text.test.js.snap b/blocks/textfile-block/features/textfile/__snapshots__/text.test.js.snap new file mode 100644 index 00000000..9c5483f1 --- /dev/null +++ b/blocks/textfile-block/features/textfile/__snapshots__/text.test.js.snap @@ -0,0 +1,10 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`should not render anything when no data is given 1`] = `""`; + +exports[`should render the simple text 1`] = ` +"User-agent: * +Allow: / + +Sitemap: http://www.example.com/sitemap.xml" +`; diff --git a/blocks/textfile-block/features/textfile/text.js b/blocks/textfile-block/features/textfile/text.js index f396b734..321a0a4b 100644 --- a/blocks/textfile-block/features/textfile/text.js +++ b/blocks/textfile-block/features/textfile/text.js @@ -1,19 +1,18 @@ import PropTypes from 'fusion:prop-types' -import Consumer from 'fusion:consumer' -export function Textfile({ customFields }){ - const { Text = "" } = customFields || {}; - return Text; -}; +const Textfile = ({ customFields }) => { + const { Text = '' } = customFields || {} + return Text +} -Textfile.label = "Text File – Arc Block"; +Textfile.label = 'Text File – Arc Block' -Textfile.icon = "notes-paper-text"; +Textfile.icon = 'notes-paper-text' Textfile.propTypes = { - customFields: PropTypes.shape({ - // eslint-disable-next-line react/no-typos - Text: PropTypes.richtext, - }), + customFields: PropTypes.shape({ + // eslint-disable-next-line react/no-typos + Text: PropTypes.richtext, + }), } -export default Consumer(Textfile) +export default Textfile diff --git a/blocks/textfile-block/features/textfile/text.test.js b/blocks/textfile-block/features/textfile/text.test.js index f67390e6..e951e94b 100644 --- a/blocks/textfile-block/features/textfile/text.test.js +++ b/blocks/textfile-block/features/textfile/text.test.js @@ -1,17 +1,18 @@ -import TextFile from "./text"; +import TextFile from './text' -const simple = "User-agent: *\nAllow: /\n\nSitemap: http://www.example.com/sitemap.xml"; +const simple = + 'User-agent: *\nAllow: /\n\nSitemap: http://www.example.com/sitemap.xml' it('should render the simple text', () => { - const textFile = TextFile({ - customFields: { - Text: simple - }, - }) - expect(textFile).toMatchSnapshot() + const textFile = TextFile({ + customFields: { + Text: simple, + }, + }) + expect(textFile).toMatchSnapshot() }) it('should not render anything when no data is given', () => { - const textFile = TextFile({}) - expect(textFile).toMatchSnapshot() + const textFile = TextFile({}) + expect(textFile).toMatchSnapshot() }) diff --git a/blocks/textfile-block/jest.config.js b/blocks/textfile-block/jest.config.js index 063a34cb..578294d0 100644 --- a/blocks/textfile-block/jest.config.js +++ b/blocks/textfile-block/jest.config.js @@ -1,5 +1,5 @@ -const base = require("../../jest/jest.config.base"); +const base = require('../../jest/jest.config.base') module.exports = { - ...base, -}; + ...base, +} diff --git a/blocks/textfile-block/package.json b/blocks/textfile-block/package.json index e1e0c0c4..e5749245 100644 --- a/blocks/textfile-block/package.json +++ b/blocks/textfile-block/package.json @@ -1,6 +1,6 @@ { "name": "@wpmedia/textfile-block", - "version": "0.0.1", + "version": "0.1.0", "description": "Fusion News Theme text file block", "license": "CC-BY-NC-ND-4.0", "main": "index.js", diff --git a/utils/xml-output/CHANGELOG.md b/utils/xml-output/CHANGELOG.md index 5ca78e48..d25706fe 100644 --- a/utils/xml-output/CHANGELOG.md +++ b/utils/xml-output/CHANGELOG.md @@ -1,5 +1,15 @@ # @wpmedia/feeds-xml-output +## 1.1.0 + +### Minor Changes + +- [#658](https://github.com/WPMedia/feed-components/pull/658) [`a5039bd`](https://github.com/WPMedia/feed-components/commit/a5039bd9ec2f74f876a3fdf0718e0fbd6c5c05b8) Thanks [@vgalatro](https://github.com/vgalatro)! - OBF 1.15 release + +### Patch Changes + +- [#656](https://github.com/WPMedia/feed-components/pull/656) [`3285622`](https://github.com/WPMedia/feed-components/commit/3285622f7b4c5a816d25d6fbefb8c17e0e6ad530) Thanks [@vgalatro](https://github.com/vgalatro)! - Corrected options parameter for building xml + ## 0.3.0 ### Minor Changes diff --git a/utils/xml-output/package.json b/utils/xml-output/package.json index 141143a4..78ae6677 100644 --- a/utils/xml-output/package.json +++ b/utils/xml-output/package.json @@ -1,6 +1,6 @@ { "name": "@wpmedia/feeds-xml-output", - "version": "1.0.1", + "version": "1.1.0", "description": "For use in creating an XML output type", "main": "dist/feeds-xml-output.cjs.js", "module": "dist/feeds-xml-output.esm.js", diff --git a/utils/xml-output/src/index.js b/utils/xml-output/src/index.js index 7bd96dcb..bfc29700 100644 --- a/utils/xml-output/src/index.js +++ b/utils/xml-output/src/index.js @@ -1,11 +1,11 @@ -import { create } from 'xmlbuilder2'; +import { create } from 'xmlbuilder2' export const XmlOutput = ({ children }) => { return children ? create({ invalidCharReplacement: '' }, children[0]) .dec({ encoding: 'UTF-8' }) .end() - : null; -}; + : null +} -XmlOutput.contentType = 'application/xml'; +XmlOutput.contentType = 'application/xml' diff --git a/utils/xml-output/src/xmlOutput.test.js b/utils/xml-output/src/xmlOutput.test.js index a6cb9506..133a4122 100644 --- a/utils/xml-output/src/xmlOutput.test.js +++ b/utils/xml-output/src/xmlOutput.test.js @@ -1,172 +1,181 @@ -import { XmlOutput } from './index'; +import { XmlOutput } from './index' const exampleData = [ - { - rss: { - '@xmlns:atom': 'http://www.w3.org/2005/Atom', - '@xmlns:content': 'http://purl.org/rss/1.0/modules/content/', - '@xmlns:dc': 'http://purl.org/dc/elements/1.1/', - '@xmlns:sy': 'http://purl.org/rss/1.0/modules/syndication/', - '@version': '2.0', - '@xmlns:media': 'http://search.yahoo.com/mrss/', - channel: { - title: { '$': 'Test Feed' }, - link: 'https://corecomponents-the-gazette-prod.cdn.arcpublishing.com', - 'atom:link': { - '@href': 'https://corecomponents-the-gazette-prod.cdn.arcpublishing.com/', - '@rel': 'self', - '@type': 'application/rss+xml' + { + rss: { + '@xmlns:atom': 'http://www.w3.org/2005/Atom', + '@xmlns:content': 'http://purl.org/rss/1.0/modules/content/', + '@xmlns:dc': 'http://purl.org/dc/elements/1.1/', + '@xmlns:sy': 'http://purl.org/rss/1.0/modules/syndication/', + '@version': '2.0', + '@xmlns:media': 'http://search.yahoo.com/mrss/', + channel: { + title: { $: 'Test Feed' }, + link: 'https://corecomponents-the-gazette-prod.cdn.arcpublishing.com', + 'atom:link': { + '@href': + 'https://corecomponents-the-gazette-prod.cdn.arcpublishing.com/', + '@rel': 'self', + '@type': 'application/rss+xml', + }, + description: { $: 'description' }, + lastBuildDate: 'Wed, 17 Jan 2024 14:29:50 +0000', + language: 'en', + copyright: '2024', + ttl: '1', + 'sy:updatePeriod': 'hourly', + 'sy:updateFrequency': '1', + item: [ + { + title: { $: 'Marissa’s Test Story' }, + link: 'https://corecomponents-the-gazette-prod.cdn.arcpublishing.com/2020/11/09/marissas-test-story/', + guid: { + '#': 'https://corecomponents-the-gazette-prod.cdn.arcpublishing.com/2020/11/09/marissas-test-story/', + '@isPermaLink': true, + }, + 'dc:creator': { $: 'Marissa Halpert' }, + description: { $: '' }, + pubDate: 'Mon, 09 Nov 2020 22:18:01 +0000', + 'content:encoded': { + $: `<p>Purple refers to any of a variety of colors with hue between red and blue.</p><p>Purple is closely associated with violet. In optics, purple and violet refer to colors that look similar, but purples are mixtures of red light and blue or violet light, whereas violets are spectral colors (of single wavelengths of light). In common usage, both refer to colors that are between red and blue in hue, with purples closer to red and violets closer to blue. Similarly, in the traditional painters' color wheel, purple and violet are both placed between red and blue, with purple closer to red.</p><p>Purple has long been associated with royalty, originally because Phoenician purple dye was extremely expensive in antiquity. Purple was the color worn by Roman magistrates; it became the imperial color worn by the rulers of the Byzantine Empire and the Holy Roman Empire, and later by Roman Catholic bishops. Similarly in Japan, the color is traditionally associated with the emperor and aristocracy.</p><p>According to contemporary surveys in Europe and the United States, purple is the color most often associated with royalty, magic, mystery, and piety. When combined with pink, it is associated with eroticism, femininity, and seduction.</p><p><br/></p><blockquote><p>Testing block quote</p></blockquote><p><a href="https://en.wikipedia.org/wiki/Purple">The best color</a></p>`, + }, + }, + { + title: { $: 'Test story for the Washington Post setup' }, + link: 'https://corecomponents-the-gazette-prod.cdn.arcpublishing.com/2019/11/18/test-story-for-the-washington-post-setup/', + guid: { + '#': 'https://corecomponents-the-gazette-prod.cdn.arcpublishing.com/2019/11/18/test-story-for-the-washington-post-setup/', + '@isPermaLink': true, + }, + description: { $: '' }, + pubDate: 'Mon, 18 Nov 2019 21:19:08 +0000', + 'content:encoded': { + $: '<p>This is to test if the Content API content source works with the Washington Post features we have set up on Core Components Sandbox. </p>', + }, + }, + { + title: { $: 'test' }, + link: 'https://corecomponents-the-gazette-prod.cdn.arcpublishing.com/2019/08/28/test/', + guid: { + '#': 'https://corecomponents-the-gazette-prod.cdn.arcpublishing.com/2019/08/28/test/', + '@isPermaLink': true, + }, + 'dc:creator': { $: 'aefsaf' }, + description: { $: 'test' }, + pubDate: 'Wed, 28 Aug 2019 19:37:06 +0000', + 'content:encoded': { $: '<p>testestetset</p>' }, + }, + { + title: { $: 'Test story 1 - Gazette story shared to Prophet' }, + link: 'https://corecomponents-the-gazette-prod.cdn.arcpublishing.com/2019/04/17/test-story-1/', + guid: { + '#': 'https://corecomponents-the-gazette-prod.cdn.arcpublishing.com/2019/04/17/test-story-1/', + '@isPermaLink': true, + }, + description: { $: '' }, + pubDate: 'Wed, 17 Apr 2019 15:58:37 +0000', + 'content:encoded': { + $: '<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>', + }, + '#': [ + { + 'media:content': { + '@url': + 'https://corecomponents-the-gazette-prod.cdn.arcpublishing.com/resizer/WHs28CYC_hGdxryDL_EJsSx7oWY=/arc-anglerfish-arc2-sandbox-sandbox-corecomponents.s3.amazonaws.com/public/SQCYL5S5IFDYLF76K5SFSFHLVU.jpg', + '@type': 'image/jpeg', + '@height': 835, + '@width': 1114, }, - description: { '$': 'description' }, - lastBuildDate: 'Wed, 17 Jan 2024 14:29:50 +0000', - language: 'en', - copyright: '2024', - ttl: '1', - 'sy:updatePeriod': 'hourly', - 'sy:updateFrequency': '1', - item: [ - { - title: { '$': 'Marissa’s Test Story' }, - link: 'https://corecomponents-the-gazette-prod.cdn.arcpublishing.com/2020/11/09/marissas-test-story/', - guid: { - '#': 'https://corecomponents-the-gazette-prod.cdn.arcpublishing.com/2020/11/09/marissas-test-story/', - '@isPermaLink': true - }, - 'dc:creator': { '$': 'Marissa Halpert' }, - description: { '$': '' }, - pubDate: 'Mon, 09 Nov 2020 22:18:01 +0000', - 'content:encoded': { - '$': `<p>Purple refers to any of a variety of colors with hue between red and blue.</p><p>Purple is closely associated with violet. In optics, purple and violet refer to colors that look similar, but purples are mixtures of red light and blue or violet light, whereas violets are spectral colors (of single wavelengths of light). In common usage, both refer to colors that are between red and blue in hue, with purples closer to red and violets closer to blue. Similarly, in the traditional painters' color wheel, purple and violet are both placed between red and blue, with purple closer to red.</p><p>Purple has long been associated with royalty, originally because Phoenician purple dye was extremely expensive in antiquity. Purple was the color worn by Roman magistrates; it became the imperial color worn by the rulers of the Byzantine Empire and the Holy Roman Empire, and later by Roman Catholic bishops. Similarly in Japan, the color is traditionally associated with the emperor and aristocracy.</p><p>According to contemporary surveys in Europe and the United States, purple is the color most often associated with royalty, magic, mystery, and piety. When combined with pink, it is associated with eroticism, femininity, and seduction.</p><p><br/></p><blockquote><p>Testing block quote</p></blockquote><p><a href="https://en.wikipedia.org/wiki/Purple">The best color</a></p>` - } - }, - { - title: { '$': 'Test story for the Washington Post setup' }, - link: 'https://corecomponents-the-gazette-prod.cdn.arcpublishing.com/2019/11/18/test-story-for-the-washington-post-setup/', - guid: { - '#': 'https://corecomponents-the-gazette-prod.cdn.arcpublishing.com/2019/11/18/test-story-for-the-washington-post-setup/', - '@isPermaLink': true - }, - description: { '$': '' }, - pubDate: 'Mon, 18 Nov 2019 21:19:08 +0000', - 'content:encoded': { - '$': '<p>This is to test if the Content API content source works with the Washington Post features we have set up on Core Components Sandbox. </p>' - } - }, - { - title: { '$': 'test' }, - link: 'https://corecomponents-the-gazette-prod.cdn.arcpublishing.com/2019/08/28/test/', - guid: { - '#': 'https://corecomponents-the-gazette-prod.cdn.arcpublishing.com/2019/08/28/test/', - '@isPermaLink': true - }, - 'dc:creator': { '$': 'aefsaf' }, - description: { '$': 'test' }, - pubDate: 'Wed, 28 Aug 2019 19:37:06 +0000', - 'content:encoded': { '$': '<p>testestetset</p>' } - }, - { - title: { '$': 'Test story 1 - Gazette story shared to Prophet' }, - link: 'https://corecomponents-the-gazette-prod.cdn.arcpublishing.com/2019/04/17/test-story-1/', - guid: { - '#': 'https://corecomponents-the-gazette-prod.cdn.arcpublishing.com/2019/04/17/test-story-1/', - '@isPermaLink': true - }, - description: { '$': '' }, - pubDate: 'Wed, 17 Apr 2019 15:58:37 +0000', - 'content:encoded': { - '$': '<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>' - }, - '#': [ - { - 'media:content': { - '@url': 'https://corecomponents-the-gazette-prod.cdn.arcpublishing.com/resizer/WHs28CYC_hGdxryDL_EJsSx7oWY=/arc-anglerfish-arc2-sandbox-sandbox-corecomponents.s3.amazonaws.com/public/SQCYL5S5IFDYLF76K5SFSFHLVU.jpg', - '@type': 'image/jpeg', - '@height': 835, - '@width': 1114 - } - } - ] - } - ] - } - } - } -]; + }, + ], + }, + ], + }, + }, + }, +] const exampleDataInvalid = [ - { - rss: { - '@xmlns:atom': 'http://www.w3.org/2005/Atom', - '@xmlns:content': 'http://purl.org/rss/1.0/modules/content/', - '@xmlns:dc': 'http://purl.org/dc/elements/1.1/', - '@xmlns:sy': 'http://purl.org/rss/1.0/modules/syndication/', - '@version': '2.0', - '@xmlns:media': 'http://search.yahoo.com/mrss/', - channel: { - title: { '$': 'Test Feed' }, - link: 'https://corecomponents-the-gazette-prod.cdn.arcpublishing.com', - 'atom:link': { - '@href': 'https://corecomponents-the-gazette-prod.cdn.arcpublishing.com/', - '@rel': 'self', - '@type': 'application/rss+xml' + { + rss: { + '@xmlns:atom': 'http://www.w3.org/2005/Atom', + '@xmlns:content': 'http://purl.org/rss/1.0/modules/content/', + '@xmlns:dc': 'http://purl.org/dc/elements/1.1/', + '@xmlns:sy': 'http://purl.org/rss/1.0/modules/syndication/', + '@version': '2.0', + '@xmlns:media': 'http://search.yahoo.com/mrss/', + channel: { + title: { $: 'Test Feed' }, + link: 'https://corecomponents-the-gazette-prod.cdn.arcpublishing.com', + 'atom:link': { + '@href': + 'https://corecomponents-the-gazette-prod.cdn.arcpublishing.com/', + '@rel': 'self', + '@type': 'application/rss+xml', + }, + description: { $: 'description' }, + lastBuildDate: 'Wed, 17 Jan 2024 14:29:50 +0000', + language: 'en', + copyright: '2024', + ttl: '1', + 'sy:updatePeriod': 'hourly', + 'sy:updateFrequency': '1', + item: [ + { + title: { + $: 'ä, ë, ï, ö, ü, ÿ, Ä, Ë, Ï, Ö, Ü, Ÿ, â, ê, î, ô, û, Â, Ê, Î, Ô, Û, á, é, í, ó, ú, ý, Á, É, Í, Ó, Ú, Ý, à, è, ì, ò, ù, À, È, Ì, Ò, Ù', + }, + link: 'https://corecomponents-the-gazette-prod.cdn.arcpublishing.com/2019/04/17/test-story-1/', + guid: { + '#': 'https://corecomponents-the-gazette-prod.cdn.arcpublishing.com/2019/04/17/test-story-1/', + '@isPermaLink': true, + }, + description: { $: '␀' }, + pubDate: 'Wed, 17 Apr 2019 15:58:37 +0000', + 'content:encoded': { + $: '<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>', + }, + '#': [ + { + 'media:content': { + '@url': + 'https://corecomponents-the-gazette-prod.cdn.arcpublishing.com/resizer/WHs28CYC_hGdxryDL_EJsSx7oWY=/arc-anglerfish-arc2-sandbox-sandbox-corecomponents.s3.amazonaws.com/public/SQCYL5S5IFDYLF76K5SFSFHLVU.jpg␀', + '@type': 'image/jpeg', + '@height': 835, + '@width': 1114, + 'media:description': { + '@type': 'plain', + $: 'Description has character', + }, + 'media:credit': { + '@role': 'author', + '@scheme': 'urn:ebu', + '#': 'Author ends in␀', + }, }, - description: { '$': 'description' }, - lastBuildDate: 'Wed, 17 Jan 2024 14:29:50 +0000', - language: 'en', - copyright: '2024', - ttl: '1', - 'sy:updatePeriod': 'hourly', - 'sy:updateFrequency': '1', - item: [ - { - title: { '$': 'ä, ë, ï, ö, ü, ÿ, Ä, Ë, Ï, Ö, Ü, Ÿ, â, ê, î, ô, û, Â, Ê, Î, Ô, Û, á, é, í, ó, ú, ý, Á, É, Í, Ó, Ú, Ý, à, è, ì, ò, ù, À, È, Ì, Ò, Ù' }, - link: 'https://corecomponents-the-gazette-prod.cdn.arcpublishing.com/2019/04/17/test-story-1/', - guid: { - '#': 'https://corecomponents-the-gazette-prod.cdn.arcpublishing.com/2019/04/17/test-story-1/', - '@isPermaLink': true - }, - description: { '$': '␀' }, - pubDate: 'Wed, 17 Apr 2019 15:58:37 +0000', - 'content:encoded': { - '$': '<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>' - }, - '#': [ - { - 'media:content': { - '@url': 'https://corecomponents-the-gazette-prod.cdn.arcpublishing.com/resizer/WHs28CYC_hGdxryDL_EJsSx7oWY=/arc-anglerfish-arc2-sandbox-sandbox-corecomponents.s3.amazonaws.com/public/SQCYL5S5IFDYLF76K5SFSFHLVU.jpg␀', - '@type': 'image/jpeg', - '@height': 835, - '@width': 1114, - 'media:description': { '@type': 'plain', $: 'Description has character' }, - 'media:credit': { - '@role': 'author', - '@scheme': 'urn:ebu', - '#': 'Author ends in␀', - }, - } - } - ] - } - ] - } - } - } -]; + }, + ], + }, + ], + }, + }, + }, +] describe('XmlOutput()', () => { - it('builds valid XML', () => { - const result = XmlOutput({ children: exampleData }); - // eslint-disable-next-line no-undef - const parser = new DOMParser(); - const xmlDoc = parser.parseFromString(result, 'text/xml'); - expect(xmlDoc?.documentElement?.nodeName).not.toBe('parsererror'); - }); + it('builds valid XML', () => { + const result = XmlOutput({ children: exampleData }) + // eslint-disable-next-line no-undef + const parser = new DOMParser() + const xmlDoc = parser.parseFromString(result, 'text/xml') + expect(xmlDoc?.documentElement?.nodeName).not.toBe('parsererror') + }) - it('filters out invalid characters', () => { - const result = XmlOutput({ children: exampleDataInvalid }); - // eslint-disable-next-line no-undef - const parser = new DOMParser(); - const xmlDoc = parser.parseFromString(result, 'text/xml'); - expect(xmlDoc?.documentElement?.nodeName).not.toBe('parsererror'); - }); -}); \ No newline at end of file + it('filters out invalid characters', () => { + const result = XmlOutput({ children: exampleDataInvalid }) + // eslint-disable-next-line no-undef + const parser = new DOMParser() + const xmlDoc = parser.parseFromString(result, 'text/xml') + expect(xmlDoc?.documentElement?.nodeName).not.toBe('parsererror') + }) +})