@automattic/newspack-blocks 1.55.0 → 1.56.0-alpha.3

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 (53) hide show
  1. package/.cache/babel/056819eb4f39841509f41deee6bdd954.json.gz +0 -0
  2. package/.cache/babel/114a990440378f426c043ed8bab570ae.json.gz +0 -0
  3. package/.cache/babel/16467abe1e99b2a2a8f87045f85e0506.json.gz +0 -0
  4. package/.cache/babel/1e7b99d3f4417381523ebcf71ad9e022.json.gz +0 -0
  5. package/.cache/babel/347417d83405bac53ff3126377775cff.json.gz +0 -0
  6. package/.cache/babel/3d8064c1f0f7c2f78dd032dc9b69dba8.json.gz +0 -0
  7. package/.cache/babel/876e42a53b2af16090e8d9d5eb51736d.json.gz +0 -0
  8. package/.cache/babel/87e2dc4a961b25b0de8d1a8ac88eea13.json.gz +0 -0
  9. package/.cache/babel/c1c66b5df03ee927b03731d1ffc9b12e.json.gz +0 -0
  10. package/CHANGELOG.md +29 -0
  11. package/composer.lock +14 -14
  12. package/dist/carousel/view.asset.php +1 -1
  13. package/dist/carousel/view.js +1 -1
  14. package/dist/donate/view.asset.php +1 -1
  15. package/dist/donate/view.css +1 -1
  16. package/dist/donate/view.rtl.css +1 -1
  17. package/dist/donateStreamlined.asset.php +1 -1
  18. package/dist/donateStreamlined.css +1 -1
  19. package/dist/donateStreamlined.js +1 -1
  20. package/dist/donateStreamlined.rtl.css +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/includes/class-newspack-blocks.php +42 -8
  26. package/newspack-blocks.php +2 -2
  27. package/package.json +5 -5
  28. package/src/blocks/donate/block.json +12 -0
  29. package/src/blocks/donate/class-wp-rest-newspack-donate-controller.php +4 -3
  30. package/src/blocks/donate/edit.tsx +70 -63
  31. package/src/blocks/donate/editor.scss +6 -0
  32. package/src/blocks/donate/streamlined/{index.js → index.ts} +78 -26
  33. package/src/blocks/donate/streamlined/style.scss +14 -21
  34. package/src/blocks/donate/streamlined/{utils.js → utils.ts} +57 -32
  35. package/src/blocks/donate/types.d.ts +21 -0
  36. package/src/blocks/donate/utils.ts +50 -0
  37. package/src/blocks/donate/view.php +11 -21
  38. package/src/blocks/donate/view.scss +42 -121
  39. package/src/types/index.d.ts +14 -3
  40. package/tsconfig.json +5 -5
  41. package/vendor/autoload.php +1 -1
  42. package/vendor/composer/autoload_real.php +4 -4
  43. package/vendor/composer/autoload_static.php +2 -2
  44. package/vendor/composer/installed.php +2 -2
  45. package/.cache/babel/07ea121e1a27d4e1aeadd040add399e8.json.gz +0 -0
  46. package/.cache/babel/30842c75d24d49938b91b15241681cd1.json.gz +0 -0
  47. package/.cache/babel/a5759fe1915229088160b7f5eb8a2e75.json.gz +0 -0
  48. package/.cache/babel/d298f58c94d221b643c4c009ea0d8002.json.gz +0 -0
  49. package/.cache/babel/dc7e2d653dbbdbd1939aa281435afa5d.json.gz +0 -0
  50. package/.cache/babel/f219f545c91662aa510194c3eedb7fe3.json.gz +0 -0
  51. package/.cache/babel/f24c559fb42ef906405966598baf5f80.json.gz +0 -0
  52. package/.cache/babel/ff7e6ef7f0d151c2a8ae0a0cce8129ec.json.gz +0 -0
  53. package/src/assets/stripe-badge.svg +0 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,32 @@
1
+ # [1.56.0-alpha.3](https://github.com/Automattic/newspack-blocks/compare/v1.56.0-alpha.2...v1.56.0-alpha.3) (2022-08-12)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * force a new alpha build ([8bf60a8](https://github.com/Automattic/newspack-blocks/commit/8bf60a8ca1ffc739b3b0f0f62c595c44c4e7615f))
7
+
8
+ # [1.56.0-alpha.2](https://github.com/Automattic/newspack-blocks/compare/v1.56.0-alpha.1...v1.56.0-alpha.2) (2022-08-12)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * ensure amount is always defined for totalAmount calculation ([#1227](https://github.com/Automattic/newspack-blocks/issues/1227)) ([b1910dc](https://github.com/Automattic/newspack-blocks/commit/b1910dc117140c489d6a8ff960722e9693cd3327))
14
+ * resolve merge conflicts with [#1234](https://github.com/Automattic/newspack-blocks/issues/1234) ([15fe247](https://github.com/Automattic/newspack-blocks/commit/15fe2472a98d2938e64cdcf711eb61cfa15a40e8))
15
+
16
+
17
+ ### Features
18
+
19
+ * **donate:** refresh reader authentication ([#1236](https://github.com/Automattic/newspack-blocks/issues/1236)) ([f21904b](https://github.com/Automattic/newspack-blocks/commit/f21904b59a3a9d4295f74f34eebf3e9b8773cb4c))
20
+
21
+ # [1.56.0-alpha.1](https://github.com/Automattic/newspack-blocks/compare/v1.55.0...v1.56.0-alpha.1) (2022-08-10)
22
+
23
+
24
+ ### Features
25
+
26
+ * **donate:** add current_page_url to client metadata ([32e18a4](https://github.com/Automattic/newspack-blocks/commit/32e18a4f74a59723ab96ea9905fba0837a75c935))
27
+ * **donate:** customise donate button texts ([#1219](https://github.com/Automattic/newspack-blocks/issues/1219)) ([8bda0f0](https://github.com/Automattic/newspack-blocks/commit/8bda0f0ef23895455fd99aa17069aeed2c8468a4))
28
+ * **donate:** mobile style; UX tweaks ([#1201](https://github.com/Automattic/newspack-blocks/issues/1201)) ([65a1285](https://github.com/Automattic/newspack-blocks/commit/65a1285b49ffa86b145d24eac6968cdfd0530770))
29
+
1
30
  # [1.55.0](https://github.com/Automattic/newspack-blocks/compare/v1.54.1...v1.55.0) (2022-08-10)
2
31
 
3
32
 
package/composer.lock CHANGED
@@ -573,27 +573,27 @@
573
573
  },
574
574
  {
575
575
  "name": "sirbrillig/phpcs-variable-analysis",
576
- "version": "v2.11.3",
576
+ "version": "v2.11.4",
577
577
  "source": {
578
578
  "type": "git",
579
579
  "url": "https://github.com/sirbrillig/phpcs-variable-analysis.git",
580
- "reference": "c921498b474212fe4552928bbeb68d70250ce5e8"
580
+ "reference": "e9c99cda31b21ccb4da4c2124b57c8355ddce48e"
581
581
  },
582
582
  "dist": {
583
583
  "type": "zip",
584
- "url": "https://api.github.com/repos/sirbrillig/phpcs-variable-analysis/zipball/c921498b474212fe4552928bbeb68d70250ce5e8",
585
- "reference": "c921498b474212fe4552928bbeb68d70250ce5e8",
584
+ "url": "https://api.github.com/repos/sirbrillig/phpcs-variable-analysis/zipball/e9c99cda31b21ccb4da4c2124b57c8355ddce48e",
585
+ "reference": "e9c99cda31b21ccb4da4c2124b57c8355ddce48e",
586
586
  "shasum": ""
587
587
  },
588
588
  "require": {
589
589
  "php": ">=5.4.0",
590
- "squizlabs/php_codesniffer": "^3.5"
590
+ "squizlabs/php_codesniffer": "^3.5.6"
591
591
  },
592
592
  "require-dev": {
593
593
  "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
594
- "limedeck/phpunit-detailed-printer": "^3.1 || ^4.0 || ^5.0",
595
- "phpstan/phpstan": "^0.11.8",
596
- "phpunit/phpunit": "^5.0 || ^6.5 || ^7.0 || ^8.0",
594
+ "phpcsstandards/phpcsdevcs": "^1.1",
595
+ "phpstan/phpstan": "^1.7",
596
+ "phpunit/phpunit": "^4.8.36 || ^5.7.21 || ^6.5 || ^7.0 || ^8.0 || ^9.0",
597
597
  "sirbrillig/phpcs-import-detection": "^1.1"
598
598
  },
599
599
  "type": "phpcodesniffer-standard",
@@ -622,20 +622,20 @@
622
622
  "source": "https://github.com/sirbrillig/phpcs-variable-analysis",
623
623
  "wiki": "https://github.com/sirbrillig/phpcs-variable-analysis/wiki"
624
624
  },
625
- "time": "2022-02-21T17:01:13+00:00"
625
+ "time": "2022-06-13T13:49:41+00:00"
626
626
  },
627
627
  {
628
628
  "name": "squizlabs/php_codesniffer",
629
- "version": "3.6.2",
629
+ "version": "3.7.1",
630
630
  "source": {
631
631
  "type": "git",
632
632
  "url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
633
- "reference": "5e4e71592f69da17871dba6e80dd51bce74a351a"
633
+ "reference": "1359e176e9307e906dc3d890bcc9603ff6d90619"
634
634
  },
635
635
  "dist": {
636
636
  "type": "zip",
637
- "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/5e4e71592f69da17871dba6e80dd51bce74a351a",
638
- "reference": "5e4e71592f69da17871dba6e80dd51bce74a351a",
637
+ "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/1359e176e9307e906dc3d890bcc9603ff6d90619",
638
+ "reference": "1359e176e9307e906dc3d890bcc9603ff6d90619",
639
639
  "shasum": ""
640
640
  },
641
641
  "require": {
@@ -678,7 +678,7 @@
678
678
  "source": "https://github.com/squizlabs/PHP_CodeSniffer",
679
679
  "wiki": "https://github.com/squizlabs/PHP_CodeSniffer/wiki"
680
680
  },
681
- "time": "2021-12-12T21:44:58+00:00"
681
+ "time": "2022-06-18T07:21:10+00:00"
682
682
  },
683
683
  {
684
684
  "name": "symfony/console",
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('wp-a11y', 'wp-dom-ready', 'wp-escape-html', 'wp-i18n', 'wp-polyfill'), 'version' => 'f32aede36f435b3de7042e0e05130cb5');
1
+ <?php return array('dependencies' => array('wp-a11y', 'wp-dom-ready', 'wp-escape-html', 'wp-i18n', 'wp-polyfill'), 'version' => 'ca31a09ace27d218e4750a52e83dc225');