@automattic/newspack-blocks 1.68.2 → 1.69.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/.cache/babel/15387cb771ffa80b113069531d7dbf2a.json.gz +0 -0
  2. package/.cache/babel/20e776cde824c2a3cb901dca6977367b.json.gz +0 -0
  3. package/.cache/babel/56046f06a99a61b7847b604a58062e17.json.gz +0 -0
  4. package/.cache/babel/6444da3051780011261cc12e796a6e36.json.gz +0 -0
  5. package/.cache/babel/764469c94d0f935d0d48d3b8ca9964ff.json.gz +0 -0
  6. package/.cache/babel/845433093cc647521f9ed7aada6399c5.json.gz +0 -0
  7. package/.cache/babel/acff6371a410845f5da464cb4e237aaf.json.gz +0 -0
  8. package/.cache/babel/f5dc184121cc109a8bc4f20364bd68b5.json.gz +0 -0
  9. package/CHANGELOG.md +15 -0
  10. package/composer.lock +12 -12
  11. package/dist/block_styles.asset.php +1 -1
  12. package/dist/block_styles.css +1 -1
  13. package/dist/block_styles.rtl.css +1 -1
  14. package/dist/carousel/view.asset.php +1 -1
  15. package/dist/carousel/view.js +1 -1
  16. package/dist/donate/view.asset.php +1 -1
  17. package/dist/donate/view.css +1 -1
  18. package/dist/donate/view.rtl.css +1 -1
  19. package/dist/donateStreamlined.asset.php +1 -1
  20. package/dist/donateStreamlined.js +1 -1
  21. package/dist/editor.asset.php +1 -1
  22. package/dist/editor.css +1 -1
  23. package/dist/editor.js +1 -1
  24. package/dist/editor.rtl.css +1 -1
  25. package/dist/homepage-articles/view.asset.php +1 -1
  26. package/dist/homepage-articles/view.css +1 -1
  27. package/dist/homepage-articles/view.rtl.css +1 -1
  28. package/dist/modal.asset.php +1 -1
  29. package/dist/modal.css +1 -1
  30. package/dist/modal.js +1 -1
  31. package/dist/modal.rtl.css +1 -1
  32. package/includes/class-modal-checkout.php +70 -1
  33. package/newspack-blocks.php +2 -2
  34. package/package.json +5 -5
  35. package/src/block-styles/core/columns/view.scss +2 -8
  36. package/src/blocks/checkout-button/block.json +7 -0
  37. package/src/blocks/checkout-button/edit.js +99 -12
  38. package/src/blocks/checkout-button/save.js +3 -1
  39. package/src/blocks/checkout-button/view.php +8 -1
  40. package/src/blocks/donate/styles/style-variations.scss +1 -4
  41. package/src/blocks/homepage-articles/view.scss +2 -8
  42. package/src/blocks/video-playlist/editor.scss +1 -4
  43. package/src/modal-checkout/modal.js +57 -14
  44. package/src/modal-checkout/modal.scss +57 -4
  45. package/src/templates/author-profile-card.php +26 -18
  46. package/vendor/autoload.php +1 -1
  47. package/vendor/composer/autoload_real.php +4 -4
  48. package/vendor/composer/autoload_static.php +2 -2
  49. package/vendor/composer/installed.php +2 -2
  50. package/.cache/babel/0988afa42fd3fe14da7ae43c9d02661e.json.gz +0 -0
  51. package/.cache/babel/0fc85d33d9c79c26521df1d74d37473e.json.gz +0 -0
  52. package/.cache/babel/1f75e279f33d30dace0c18b21b746178.json.gz +0 -0
  53. package/.cache/babel/5ee469cfff0fc7181d9e0db8e1d58cf0.json.gz +0 -0
  54. package/.cache/babel/6170ac021bca94b65aaf9d91313c47a9.json.gz +0 -0
  55. package/.cache/babel/66c747a8bdec1ed403f703e47256fa03.json.gz +0 -0
  56. package/.cache/babel/6b02d0502dfcd8c011a2ba4381ab01f4.json.gz +0 -0
  57. package/.cache/babel/91e706536d45a88f098e9394344dbeb9.json.gz +0 -0
package/CHANGELOG.md CHANGED
@@ -1,3 +1,18 @@
1
+ # [1.69.0-alpha.2](https://github.com/Automattic/newspack-blocks/compare/v1.69.0-alpha.1...v1.69.0-alpha.2) (2023-05-31)
2
+
3
+
4
+ ### Features
5
+
6
+ * **checkout-button:** front-end product variation selection ([#1459](https://github.com/Automattic/newspack-blocks/issues/1459)) ([d492a9a](https://github.com/Automattic/newspack-blocks/commit/d492a9ade4ef5030fbda6e2b156e3d823813383d))
7
+
8
+ # [1.69.0-alpha.1](https://github.com/Automattic/newspack-blocks/compare/v1.68.2...v1.69.0-alpha.1) (2023-05-25)
9
+
10
+
11
+ ### Features
12
+
13
+ * adding link to the author bio avatar ([#1449](https://github.com/Automattic/newspack-blocks/issues/1449)) ([60d9f1c](https://github.com/Automattic/newspack-blocks/commit/60d9f1c61306b9c76be3f487d56f95a04a4565f0))
14
+ * **checkout-button:** support product variations ([#1442](https://github.com/Automattic/newspack-blocks/issues/1442)) ([aa70495](https://github.com/Automattic/newspack-blocks/commit/aa70495940a6c85e9eb9747eb91a989df97e9921))
15
+
1
16
  ## [1.68.2](https://github.com/Automattic/newspack-blocks/compare/v1.68.1...v1.68.2) (2023-05-24)
2
17
 
3
18
 
package/composer.lock CHANGED
@@ -1142,16 +1142,16 @@
1142
1142
  },
1143
1143
  {
1144
1144
  "name": "phpunit/phpunit",
1145
- "version": "9.6.7",
1145
+ "version": "9.6.8",
1146
1146
  "source": {
1147
1147
  "type": "git",
1148
1148
  "url": "https://github.com/sebastianbergmann/phpunit.git",
1149
- "reference": "c993f0d3b0489ffc42ee2fe0bd645af1538a63b2"
1149
+ "reference": "17d621b3aff84d0c8b62539e269e87d8d5baa76e"
1150
1150
  },
1151
1151
  "dist": {
1152
1152
  "type": "zip",
1153
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/c993f0d3b0489ffc42ee2fe0bd645af1538a63b2",
1154
- "reference": "c993f0d3b0489ffc42ee2fe0bd645af1538a63b2",
1153
+ "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/17d621b3aff84d0c8b62539e269e87d8d5baa76e",
1154
+ "reference": "17d621b3aff84d0c8b62539e269e87d8d5baa76e",
1155
1155
  "shasum": ""
1156
1156
  },
1157
1157
  "require": {
@@ -1225,7 +1225,7 @@
1225
1225
  "support": {
1226
1226
  "issues": "https://github.com/sebastianbergmann/phpunit/issues",
1227
1227
  "security": "https://github.com/sebastianbergmann/phpunit/security/policy",
1228
- "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.7"
1228
+ "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.8"
1229
1229
  },
1230
1230
  "funding": [
1231
1231
  {
@@ -1241,7 +1241,7 @@
1241
1241
  "type": "tidelift"
1242
1242
  }
1243
1243
  ],
1244
- "time": "2023-04-14T08:58:40+00:00"
1244
+ "time": "2023-05-11T05:14:45+00:00"
1245
1245
  },
1246
1246
  {
1247
1247
  "name": "psr/container",
@@ -1591,16 +1591,16 @@
1591
1591
  },
1592
1592
  {
1593
1593
  "name": "sebastian/diff",
1594
- "version": "4.0.4",
1594
+ "version": "4.0.5",
1595
1595
  "source": {
1596
1596
  "type": "git",
1597
1597
  "url": "https://github.com/sebastianbergmann/diff.git",
1598
- "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d"
1598
+ "reference": "74be17022044ebaaecfdf0c5cd504fc9cd5a7131"
1599
1599
  },
1600
1600
  "dist": {
1601
1601
  "type": "zip",
1602
- "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/3461e3fccc7cfdfc2720be910d3bd73c69be590d",
1603
- "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d",
1602
+ "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/74be17022044ebaaecfdf0c5cd504fc9cd5a7131",
1603
+ "reference": "74be17022044ebaaecfdf0c5cd504fc9cd5a7131",
1604
1604
  "shasum": ""
1605
1605
  },
1606
1606
  "require": {
@@ -1645,7 +1645,7 @@
1645
1645
  ],
1646
1646
  "support": {
1647
1647
  "issues": "https://github.com/sebastianbergmann/diff/issues",
1648
- "source": "https://github.com/sebastianbergmann/diff/tree/4.0.4"
1648
+ "source": "https://github.com/sebastianbergmann/diff/tree/4.0.5"
1649
1649
  },
1650
1650
  "funding": [
1651
1651
  {
@@ -1653,7 +1653,7 @@
1653
1653
  "type": "github"
1654
1654
  }
1655
1655
  ],
1656
- "time": "2020-10-26T13:10:38+00:00"
1656
+ "time": "2023-05-07T05:35:17+00:00"
1657
1657
  },
1658
1658
  {
1659
1659
  "name": "sebastian/environment",
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('wp-polyfill'), 'version' => '68918905de44c9622e4e8531cc01fe3a');
1
+ <?php return array('dependencies' => array('wp-polyfill'), 'version' => 'e25b16758ee7b64bfad43d42a902c2ec');
@@ -1 +1 @@
1
- div.wp-block-columns{gap:32px}div.wp-block-columns.is-style-borders{gap:64px}@media only screen and (max-width:781px){div.wp-block-columns.is-not-stacked-on-mobile{gap:20px}div.wp-block-columns.is-not-stacked-on-mobile.is-style-borders{gap:40px}}@media only screen and (min-width:782px){.wp-block-columns.is-style-first-col-to-second .wp-block-column:nth-child(2),.wp-block-columns.is-style-first-col-to-third .wp-block-column:nth-child(2),.wp-block-columns.is-style-first-col-to-third .wp-block-column:nth-child(3){order:-1}}.wp-block-columns.is-style-borders>.wp-block-column{position:relative}.wp-block-columns.is-style-borders>.wp-block-column:after{border:solid #ccc;border-width:1px 0 0;bottom:-32px;content:"";left:0;position:absolute;right:0}.wp-block-columns.is-style-borders>.wp-block-column:last-child:after{display:none}@media only screen and (min-width:782px){.wp-block-columns.is-style-borders>.wp-block-column{margin-bottom:0}.wp-block-columns.is-style-borders>.wp-block-column:after{border-right-width:1px;border-top-width:0;bottom:0;left:auto;right:-32px;top:0}}@media only screen and (min-width:782px){.wp-block-columns.is-style-borders.is-style-first-col-to-second .wp-block-column:first-child:after,.wp-block-columns.is-style-borders.is-style-first-col-to-third .wp-block-column:first-child:after{display:none}.wp-block-columns.is-style-borders.is-style-first-col-to-second .wp-block-column:nth-child(2):after,.wp-block-columns.is-style-borders.is-style-first-col-to-third .wp-block-column:nth-child(3):after{display:block}}.wp-block-columns.is-not-stacked-on-mobile.is-style-borders>.wp-block-column:after{border-right-width:1px;border-top-width:0;bottom:0;left:auto;right:-20px;top:0}@media only screen and (min-width:782px){.wp-block-columns.is-not-stacked-on-mobile.is-style-borders>.wp-block-column:after{right:-32px}}.wp-block-columns.is-not-stacked-on-mobile.is-style-borders.is-style-first-col-to-second>.wp-block-column:first-child:after,.wp-block-columns.is-not-stacked-on-mobile.is-style-borders.is-style-first-col-to-third>.wp-block-column:first-child:after{display:none}.wp-block-columns.is-not-stacked-on-mobile.is-style-borders.is-style-first-col-to-second>.wp-block-column:nth-child(2):after,.wp-block-columns.is-not-stacked-on-mobile.is-style-borders.is-style-first-col-to-third>.wp-block-column:nth-child(3):after{display:block}.wp-block-columns.is-not-stacked-on-mobile>.wp-block-column:not(:first-child),.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column:not(:first-child){margin-left:0}@media(min-width:600px)and (max-width:781px){.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column:not(:only-child){flex-basis:unset!important;flex-grow:1}}.wp-block-group.is-style-border{border:1px solid #ccc}.wp-block-group.is-style-border:not(.has-background){padding:20px 30px}
1
+ div.wp-block-columns{gap:32px}div.wp-block-columns.is-style-borders{gap:64px}@media only screen and (max-width:781px){div.wp-block-columns.is-not-stacked-on-mobile{gap:20px}div.wp-block-columns.is-not-stacked-on-mobile.is-style-borders{gap:40px}}@media only screen and (min-width:782px){.wp-block-columns.is-style-first-col-to-second .wp-block-column:nth-child(2),.wp-block-columns.is-style-first-col-to-third .wp-block-column:nth-child(2),.wp-block-columns.is-style-first-col-to-third .wp-block-column:nth-child(3){order:-1}}.wp-block-columns.is-style-borders>.wp-block-column{position:relative}.wp-block-columns.is-style-borders>.wp-block-column:after{border:solid #ccc;border-width:1px 0 0;bottom:-32px;content:"";left:0;position:absolute;right:0}.wp-block-columns.is-style-borders>.wp-block-column:last-child:after{display:none}@media only screen and (min-width:782px){.wp-block-columns.is-style-borders>.wp-block-column{margin-bottom:0}.wp-block-columns.is-style-borders>.wp-block-column:after{border-right-width:1px;border-top-width:0;inset:0 -32px 0 auto}}@media only screen and (min-width:782px){.wp-block-columns.is-style-borders.is-style-first-col-to-second .wp-block-column:first-child:after,.wp-block-columns.is-style-borders.is-style-first-col-to-third .wp-block-column:first-child:after{display:none}.wp-block-columns.is-style-borders.is-style-first-col-to-second .wp-block-column:nth-child(2):after,.wp-block-columns.is-style-borders.is-style-first-col-to-third .wp-block-column:nth-child(3):after{display:block}}.wp-block-columns.is-not-stacked-on-mobile.is-style-borders>.wp-block-column:after{border-right-width:1px;border-top-width:0;inset:0 -20px 0 auto}@media only screen and (min-width:782px){.wp-block-columns.is-not-stacked-on-mobile.is-style-borders>.wp-block-column:after{right:-32px}}.wp-block-columns.is-not-stacked-on-mobile.is-style-borders.is-style-first-col-to-second>.wp-block-column:first-child:after,.wp-block-columns.is-not-stacked-on-mobile.is-style-borders.is-style-first-col-to-third>.wp-block-column:first-child:after{display:none}.wp-block-columns.is-not-stacked-on-mobile.is-style-borders.is-style-first-col-to-second>.wp-block-column:nth-child(2):after,.wp-block-columns.is-not-stacked-on-mobile.is-style-borders.is-style-first-col-to-third>.wp-block-column:nth-child(3):after{display:block}.wp-block-columns.is-not-stacked-on-mobile>.wp-block-column:not(:first-child),.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column:not(:first-child){margin-left:0}@media(min-width:600px)and (max-width:781px){.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column:not(:only-child){flex-basis:unset!important;flex-grow:1}}.wp-block-group.is-style-border{border:1px solid #ccc}.wp-block-group.is-style-border:not(.has-background){padding:20px 30px}
@@ -1 +1 @@
1
- div.wp-block-columns{gap:32px}div.wp-block-columns.is-style-borders{gap:64px}@media only screen and (max-width:781px){div.wp-block-columns.is-not-stacked-on-mobile{gap:20px}div.wp-block-columns.is-not-stacked-on-mobile.is-style-borders{gap:40px}}@media only screen and (min-width:782px){.wp-block-columns.is-style-first-col-to-second .wp-block-column:nth-child(2),.wp-block-columns.is-style-first-col-to-third .wp-block-column:nth-child(2),.wp-block-columns.is-style-first-col-to-third .wp-block-column:nth-child(3){order:-1}}.wp-block-columns.is-style-borders>.wp-block-column{position:relative}.wp-block-columns.is-style-borders>.wp-block-column:after{border:solid #ccc;border-width:1px 0 0;bottom:-32px;content:"";right:0;position:absolute;left:0}.wp-block-columns.is-style-borders>.wp-block-column:last-child:after{display:none}@media only screen and (min-width:782px){.wp-block-columns.is-style-borders>.wp-block-column{margin-bottom:0}.wp-block-columns.is-style-borders>.wp-block-column:after{border-left-width:1px;border-top-width:0;bottom:0;right:auto;left:-32px;top:0}}@media only screen and (min-width:782px){.wp-block-columns.is-style-borders.is-style-first-col-to-second .wp-block-column:first-child:after,.wp-block-columns.is-style-borders.is-style-first-col-to-third .wp-block-column:first-child:after{display:none}.wp-block-columns.is-style-borders.is-style-first-col-to-second .wp-block-column:nth-child(2):after,.wp-block-columns.is-style-borders.is-style-first-col-to-third .wp-block-column:nth-child(3):after{display:block}}.wp-block-columns.is-not-stacked-on-mobile.is-style-borders>.wp-block-column:after{border-left-width:1px;border-top-width:0;bottom:0;right:auto;left:-20px;top:0}@media only screen and (min-width:782px){.wp-block-columns.is-not-stacked-on-mobile.is-style-borders>.wp-block-column:after{left:-32px}}.wp-block-columns.is-not-stacked-on-mobile.is-style-borders.is-style-first-col-to-second>.wp-block-column:first-child:after,.wp-block-columns.is-not-stacked-on-mobile.is-style-borders.is-style-first-col-to-third>.wp-block-column:first-child:after{display:none}.wp-block-columns.is-not-stacked-on-mobile.is-style-borders.is-style-first-col-to-second>.wp-block-column:nth-child(2):after,.wp-block-columns.is-not-stacked-on-mobile.is-style-borders.is-style-first-col-to-third>.wp-block-column:nth-child(3):after{display:block}.wp-block-columns.is-not-stacked-on-mobile>.wp-block-column:not(:first-child),.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column:not(:first-child){margin-right:0}@media(min-width:600px)and (max-width:781px){.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column:not(:only-child){flex-basis:unset!important;flex-grow:1}}.wp-block-group.is-style-border{border:1px solid #ccc}.wp-block-group.is-style-border:not(.has-background){padding:20px 30px}
1
+ div.wp-block-columns{gap:32px}div.wp-block-columns.is-style-borders{gap:64px}@media only screen and (max-width:781px){div.wp-block-columns.is-not-stacked-on-mobile{gap:20px}div.wp-block-columns.is-not-stacked-on-mobile.is-style-borders{gap:40px}}@media only screen and (min-width:782px){.wp-block-columns.is-style-first-col-to-second .wp-block-column:nth-child(2),.wp-block-columns.is-style-first-col-to-third .wp-block-column:nth-child(2),.wp-block-columns.is-style-first-col-to-third .wp-block-column:nth-child(3){order:-1}}.wp-block-columns.is-style-borders>.wp-block-column{position:relative}.wp-block-columns.is-style-borders>.wp-block-column:after{border:solid #ccc;border-width:1px 0 0;bottom:-32px;content:"";right:0;position:absolute;left:0}.wp-block-columns.is-style-borders>.wp-block-column:last-child:after{display:none}@media only screen and (min-width:782px){.wp-block-columns.is-style-borders>.wp-block-column{margin-bottom:0}.wp-block-columns.is-style-borders>.wp-block-column:after{border-left-width:1px;border-top-width:0;inset:0 -32px 0 auto}}@media only screen and (min-width:782px){.wp-block-columns.is-style-borders.is-style-first-col-to-second .wp-block-column:first-child:after,.wp-block-columns.is-style-borders.is-style-first-col-to-third .wp-block-column:first-child:after{display:none}.wp-block-columns.is-style-borders.is-style-first-col-to-second .wp-block-column:nth-child(2):after,.wp-block-columns.is-style-borders.is-style-first-col-to-third .wp-block-column:nth-child(3):after{display:block}}.wp-block-columns.is-not-stacked-on-mobile.is-style-borders>.wp-block-column:after{border-left-width:1px;border-top-width:0;inset:0 -20px 0 auto}@media only screen and (min-width:782px){.wp-block-columns.is-not-stacked-on-mobile.is-style-borders>.wp-block-column:after{left:-32px}}.wp-block-columns.is-not-stacked-on-mobile.is-style-borders.is-style-first-col-to-second>.wp-block-column:first-child:after,.wp-block-columns.is-not-stacked-on-mobile.is-style-borders.is-style-first-col-to-third>.wp-block-column:first-child:after{display:none}.wp-block-columns.is-not-stacked-on-mobile.is-style-borders.is-style-first-col-to-second>.wp-block-column:nth-child(2):after,.wp-block-columns.is-not-stacked-on-mobile.is-style-borders.is-style-first-col-to-third>.wp-block-column:nth-child(3):after{display:block}.wp-block-columns.is-not-stacked-on-mobile>.wp-block-column:not(:first-child),.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column:not(:first-child){margin-right:0}@media(min-width:600px)and (max-width:781px){.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column:not(:only-child){flex-basis:unset!important;flex-grow:1}}.wp-block-group.is-style-border{border:1px solid #ccc}.wp-block-group.is-style-border:not(.has-background){padding:20px 30px}
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('wp-a11y', 'wp-dom-ready', 'wp-escape-html', 'wp-i18n', 'wp-polyfill'), 'version' => '6266be0a55a9970aeb393d3bff9e6628');
1
+ <?php return array('dependencies' => array('wp-a11y', 'wp-dom-ready', 'wp-escape-html', 'wp-i18n', 'wp-polyfill'), 'version' => 'bca282f2bf246a1ce6c60f4386c56194');