@automattic/newspack-blocks 2.0.0 → 2.1.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 (38) hide show
  1. package/.cache/babel/39bcc541624feefe54d1493493ae1ce8.json.gz +0 -0
  2. package/.cache/babel/405a59e43e00b2c52dbadde7c6a04c87.json.gz +0 -0
  3. package/.cache/babel/6715650e6d89955011841839faac29f2.json.gz +0 -0
  4. package/.cache/babel/8b2ff59858cc47bf8aca96b47daeb4e4.json.gz +0 -0
  5. package/.cache/babel/fb39540b9437544cb27c360f7d885b90.json.gz +0 -0
  6. package/CHANGELOG.md +22 -0
  7. package/dist/editor.asset.php +1 -1
  8. package/dist/editor.js +4 -4
  9. package/dist/modal.asset.php +1 -1
  10. package/dist/modal.js +1 -1
  11. package/dist/modalCheckout.asset.php +1 -1
  12. package/dist/modalCheckout.css +1 -1
  13. package/dist/modalCheckout.rtl.css +1 -1
  14. package/includes/class-modal-checkout.php +202 -52
  15. package/newspack-blocks.php +2 -2
  16. package/package.json +3 -3
  17. package/src/blocks/checkout-button/block.json +2 -1
  18. package/src/blocks/checkout-button/edit.js +1 -42
  19. package/src/blocks/donate/block.json +10 -0
  20. package/src/blocks/donate/edit/index.tsx +4 -0
  21. package/src/blocks/donate/frontend/class-newspack-blocks-donate-renderer-base.php +14 -2
  22. package/src/blocks/donate/frontend/class-newspack-blocks-donate-renderer-frequency-based.php +2 -2
  23. package/src/blocks/donate/frontend/class-newspack-blocks-donate-renderer-tiers-based.php +1 -1
  24. package/src/blocks/donate/types.ts +4 -0
  25. package/src/blocks/homepage-articles/edit.js +4 -4
  26. package/src/components/redirect-after-success.tsx +50 -0
  27. package/src/modal-checkout/checkout.scss +2 -2
  28. package/src/modal-checkout/modal.js +17 -0
  29. package/src/modal-checkout/templates/checkout-form.php +11 -1
  30. package/src/modal-checkout/templates/thankyou.php +48 -35
  31. package/vendor/autoload.php +1 -1
  32. package/vendor/composer/autoload_real.php +4 -4
  33. package/vendor/composer/autoload_static.php +2 -2
  34. package/vendor/composer/installed.php +2 -2
  35. package/.cache/babel/05ef61416b32f57c09787aa5b64d2174.json.gz +0 -0
  36. package/.cache/babel/6e8243b5aa4f0e5b85ddf1418e5908d0.json.gz +0 -0
  37. package/.cache/babel/a2068f9bffb6026a246057f4a1058bd9.json.gz +0 -0
  38. package/.cache/babel/a3f4c297e3a52f8342c1ffea1b4b1c0c.json.gz +0 -0
package/CHANGELOG.md CHANGED
@@ -1,3 +1,25 @@
1
+ # [2.1.0-alpha.2](https://github.com/Automattic/newspack-blocks/compare/v2.1.0-alpha.1...v2.1.0-alpha.2) (2023-11-03)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **homepage-posts:** change copy for deduplication block option ([#1578](https://github.com/Automattic/newspack-blocks/issues/1578)) ([dff89a0](https://github.com/Automattic/newspack-blocks/commit/dff89a040e45109eaa0ae04248cb41f2d6543aca))
7
+ * **modal-checkout:** add id attributes to hidden inputs ([90f077c](https://github.com/Automattic/newspack-blocks/commit/90f077ce49c164014e7779140e207a1278afda3e))
8
+
9
+
10
+ ### Features
11
+
12
+ * expose is_modal_checkout method ([4315730](https://github.com/Automattic/newspack-blocks/commit/43157303d800e1447088c40f283d670c9fc6682e))
13
+ * **modal-checkout:** dequeue WC styles ([#1572](https://github.com/Automattic/newspack-blocks/issues/1572)) ([9aa0039](https://github.com/Automattic/newspack-blocks/commit/9aa003954bb5676d009f0ef60765a82c9ec811d9))
14
+ * **modal-checkout:** handle non-redirect-based flow (e.g. Apple Pay) ([#1573](https://github.com/Automattic/newspack-blocks/issues/1573)) ([671b551](https://github.com/Automattic/newspack-blocks/commit/671b551bfedd4724fc85005e21387b1ef462c97c))
15
+
16
+ # [2.1.0-alpha.1](https://github.com/Automattic/newspack-blocks/compare/v2.0.0...v2.1.0-alpha.1) (2023-10-31)
17
+
18
+
19
+ ### Features
20
+
21
+ * **donate-block:** changes to button-after-success ([#1571](https://github.com/Automattic/newspack-blocks/issues/1571)) ([ac1c6a6](https://github.com/Automattic/newspack-blocks/commit/ac1c6a63f028f6cafa1e5cd852520ebf6ce75845))
22
+
1
23
  # [2.0.0](https://github.com/Automattic/newspack-blocks/compare/v1.75.6...v2.0.0) (2023-10-31)
2
24
 
3
25
 
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'moment', 'react', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-dom-ready', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => 'c76fdcdc9329a03b61c3ba67fc8e2e30');
1
+ <?php return array('dependencies' => array('lodash', 'moment', 'react', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-dom-ready', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '12b9eee4ae84ccb806f8aecf29e83649');