@automattic/newspack-blocks 4.28.0 → 4.29.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/blocks/checkout-button/block.json +3 -0
  3. package/dist/editor-rtl.css +16 -13
  4. package/dist/editor.asset.php +1 -1
  5. package/dist/editor.css +16 -13
  6. package/dist/editor.js +27 -25
  7. package/dist/modal.asset.php +1 -1
  8. package/dist/modal.js +1 -1
  9. package/dist/modalCheckout-rtl.css +1 -1
  10. package/dist/modalCheckout.asset.php +1 -1
  11. package/dist/modalCheckout.css +1 -1
  12. package/dist/modalCheckout.js +1 -1
  13. package/includes/class-modal-checkout.php +131 -168
  14. package/includes/class-newspack-blocks.php +1 -0
  15. package/includes/modal-checkout/class-checkout-data.php +23 -0
  16. package/newspack-blocks.php +2 -2
  17. package/package.json +5 -5
  18. package/src/blocks/checkout-button/block.json +3 -0
  19. package/src/blocks/checkout-button/coupon-control.js +141 -0
  20. package/src/blocks/checkout-button/edit.js +6 -2
  21. package/src/blocks/checkout-button/edit.scss +3 -2
  22. package/src/blocks/checkout-button/view.php +9 -2
  23. package/src/blocks/donate/frontend/class-newspack-blocks-donate-renderer-frequency-based.php +2 -2
  24. package/src/blocks/donate/frontend/class-newspack-blocks-donate-renderer-tiers-based.php +1 -1
  25. package/src/modal-checkout/checkout.scss +1 -53
  26. package/src/modal-checkout/index.js +7 -89
  27. package/src/modal-checkout/modal.js +0 -12
  28. package/src/modal-checkout/templates/form-checkout.php +10 -20
  29. package/src/modal-checkout/templates/form-coupon.php +9 -0
  30. package/src/modal-checkout/templates/thankyou.php +1 -1
  31. package/vendor/composer/installed.php +2 -2
  32. package/webpack.config.js +6 -12
package/CHANGELOG.md CHANGED
@@ -1,3 +1,25 @@
1
+ # @automattic/newspack-blocks [4.29.0-alpha.1](https://github.com/Automattic/newspack-workspace/compare/newspack-blocks@4.28.0...newspack-blocks@4.29.0-alpha.1) (2026-07-23)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **modal-checkout:** always show deal-accurate order details ([#453](https://github.com/Automattic/newspack-workspace/issues/453)) ([3bcfe53](https://github.com/Automattic/newspack-workspace/commit/3bcfe532b421905b8292bae901897bd785bbd18b))
7
+ * **modal-checkout:** escape thank-you data-checkout, remove dead code ([#668](https://github.com/Automattic/newspack-workspace/issues/668)) ([1deb075](https://github.com/Automattic/newspack-workspace/commit/1deb0757842aea0f644a5946555f20015861d28e))
8
+ * **subscription-tiers:** prevent switching to the current subscription ([#542](https://github.com/Automattic/newspack-workspace/issues/542)) ([89fca28](https://github.com/Automattic/newspack-workspace/commit/89fca283c72e621c0cbf2fc61f2b0599e9581442))
9
+
10
+
11
+ ### Features
12
+
13
+ * **checkout-button:** auto-apply an attached coupon at checkout ([#446](https://github.com/Automattic/newspack-workspace/issues/446)) ([533fef9](https://github.com/Automattic/newspack-workspace/commit/533fef9c999285ed85c3e3ab32ffabdabe2642ad))
14
+
15
+
16
+ ### Dependencies
17
+
18
+ * **newspack-colors:** upgraded to 1.1.1-alpha.1
19
+ * **newspack-icons:** upgraded to 1.1.0-alpha.1
20
+ * **newspack-components:** upgraded to 4.6.0-alpha.1
21
+ * **newspack-scripts:** upgraded to 5.10.0-alpha.1
22
+
1
23
  # @automattic/newspack-blocks [4.28.0](https://github.com/Automattic/newspack-workspace/compare/newspack-blocks@4.27.1...newspack-blocks@4.28.0) (2026-07-20)
2
24
 
3
25
 
@@ -53,6 +53,9 @@
53
53
  },
54
54
  "width": {
55
55
  "type": "number"
56
+ },
57
+ "coupon": {
58
+ "type": "string"
56
59
  }
57
60
  },
58
61
  "supports": {