@automattic/newspack-blocks 4.28.0-alpha.2 → 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.
- package/CHANGELOG.md +35 -2
- package/dist/blocks/checkout-button/block.json +3 -0
- package/dist/editor-rtl.css +16 -13
- package/dist/editor.asset.php +1 -1
- package/dist/editor.css +16 -13
- package/dist/editor.js +27 -25
- package/dist/modal.asset.php +1 -1
- package/dist/modal.js +1 -1
- package/dist/modalCheckout-rtl.css +1 -1
- package/dist/modalCheckout.asset.php +1 -1
- package/dist/modalCheckout.css +1 -1
- package/dist/modalCheckout.js +1 -1
- package/includes/class-modal-checkout.php +131 -168
- package/includes/class-newspack-blocks.php +1 -0
- package/includes/modal-checkout/class-checkout-data.php +23 -0
- package/newspack-blocks.php +2 -2
- package/package.json +5 -5
- package/src/blocks/checkout-button/block.json +3 -0
- package/src/blocks/checkout-button/coupon-control.js +141 -0
- package/src/blocks/checkout-button/edit.js +6 -2
- package/src/blocks/checkout-button/edit.scss +3 -2
- package/src/blocks/checkout-button/view.php +9 -2
- package/src/blocks/donate/frontend/class-newspack-blocks-donate-renderer-frequency-based.php +2 -2
- package/src/blocks/donate/frontend/class-newspack-blocks-donate-renderer-tiers-based.php +1 -1
- package/src/modal-checkout/checkout.scss +1 -53
- package/src/modal-checkout/index.js +7 -89
- package/src/modal-checkout/modal.js +0 -12
- package/src/modal-checkout/templates/form-checkout.php +10 -20
- package/src/modal-checkout/templates/form-coupon.php +9 -0
- package/src/modal-checkout/templates/thankyou.php +1 -1
- package/vendor/composer/installed.php +2 -2
- package/webpack.config.js +6 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,42 @@
|
|
|
1
|
-
# @automattic/newspack-blocks [4.
|
|
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
2
|
|
|
3
3
|
|
|
4
4
|
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
* **
|
|
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
|
+
|
|
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)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Bug Fixes
|
|
27
|
+
|
|
28
|
+
* **checkout:** sync repeat trial pricing in modal checkout ([#264](https://github.com/Automattic/newspack-workspace/issues/264)) ([ce943c6](https://github.com/Automattic/newspack-workspace/commit/ce943c61d137f81326704deb7be0b73d82da3f17))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Features
|
|
32
|
+
|
|
33
|
+
* add tag labels support to Content Loop block ([#2282](https://github.com/Automattic/newspack-workspace/issues/2282)) ([b5ef988](https://github.com/Automattic/newspack-workspace/commit/b5ef988bc2007bdc509ef872ffc54e6220216786))
|
|
34
|
+
* **newsletters:** add redirect-to-URL option to subscription form ([#432](https://github.com/Automattic/newspack-workspace/issues/432)) ([5c56caa](https://github.com/Automattic/newspack-workspace/commit/5c56caa5c3e8dc93eb09548f45ffb93084ce42ee))
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
### Dependencies
|
|
38
|
+
|
|
39
|
+
* **newspack-components:** upgraded to 4.5.0
|
|
7
40
|
|
|
8
41
|
## @automattic/newspack-blocks [4.27.1](https://github.com/Automattic/newspack-workspace/compare/newspack-blocks@4.27.0...newspack-blocks@4.27.1) (2026-07-14)
|
|
9
42
|
|