@automattic/newspack-blocks 1.67.0 → 1.68.0
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/.cache/babel/078314f1ffd302d32bbe1124c797c4a8.json.gz +0 -0
- package/.cache/babel/08bd669298cd26a7d3a62aadcf637516.json.gz +0 -0
- package/.cache/babel/0988afa42fd3fe14da7ae43c9d02661e.json.gz +0 -0
- package/.cache/babel/0d164bb53cdb3442a8c8ab37dde2e4ce.json.gz +0 -0
- package/.cache/babel/0f96392a3b96da0b4dce7a77edef76ca.json.gz +0 -0
- package/.cache/babel/2dc630cecd79488c7912540ac3a1ae93.json.gz +0 -0
- package/.cache/babel/3807c3306deecdbdb91968cb3c978235.json.gz +0 -0
- package/.cache/babel/45308b31d062a1fb08079849840aaa43.json.gz +0 -0
- package/.cache/babel/48df6fe3b45d872e1ded6f33a70e3176.json.gz +0 -0
- package/.cache/babel/58350a62e3ef63157722789bf187a8d1.json.gz +0 -0
- package/.cache/babel/5ac50f37a9913d9f63c8751f5c415ba4.json.gz +0 -0
- package/.cache/babel/6170ac021bca94b65aaf9d91313c47a9.json.gz +0 -0
- package/.cache/babel/66c747a8bdec1ed403f703e47256fa03.json.gz +0 -0
- package/.cache/babel/695780d53e2d31de09fc42456ad05cff.json.gz +0 -0
- package/.cache/babel/6bc92299b6332d48bcc944e155ce08cd.json.gz +0 -0
- package/.cache/babel/900ca42963bd0a74c1498a6d1212d82f.json.gz +0 -0
- package/.cache/babel/91e706536d45a88f098e9394344dbeb9.json.gz +0 -0
- package/.cache/babel/ab39cbb804689d063293f37fa4485487.json.gz +0 -0
- package/.cache/babel/c0e75e9017dcf69507da774f93b23422.json.gz +0 -0
- package/.cache/babel/c917c2bc027ccb946305c9305b05755e.json.gz +0 -0
- package/.cache/babel/cf24b1c63d0cf0e037eb598706a79f88.json.gz +0 -0
- package/.cache/babel/e452902bef688c901938b578c6834c50.json.gz +0 -0
- package/.cache/babel/e499e66d1cc40fb9b6c4238bf3dd2e6a.json.gz +0 -0
- package/.cache/babel/f7fd26614549b5cbb31416d632c38ccd.json.gz +0 -0
- package/.cache/babel/fa8281f6c9d0ec08fd8106dcfff2b6ba.json.gz +0 -0
- package/CHANGELOG.md +42 -0
- package/block-list.json +10 -1
- package/composer.lock +7 -7
- package/dist/carousel/view.asset.php +1 -1
- package/dist/carousel/view.js +1 -1
- package/dist/{donateCheckoutBlock.asset.php → checkout-button/view.asset.php} +1 -1
- package/dist/checkout-button/view.css +1 -0
- package/dist/checkout-button/view.rtl.css +1 -0
- package/dist/donate/view.asset.php +1 -1
- package/dist/donate/view.css +1 -1
- package/dist/donate/view.rtl.css +1 -1
- package/dist/editor.asset.php +1 -1
- package/dist/editor.css +1 -1
- package/dist/editor.js +3 -3
- package/dist/editor.rtl.css +1 -1
- package/dist/{donateCheckoutModal.asset.php → modal.asset.php} +1 -1
- package/dist/modal.css +1 -0
- package/dist/modal.js +1 -0
- package/dist/modal.rtl.css +1 -0
- package/dist/modalCheckout.asset.php +1 -0
- package/dist/modalCheckout.js +1 -0
- package/includes/class-modal-checkout.php +383 -0
- package/includes/class-newspack-blocks.php +30 -6
- package/newspack-blocks.php +3 -2
- package/package.json +3 -3
- package/src/blocks/carousel/edit.js +21 -0
- package/src/blocks/carousel/index.js +3 -0
- package/src/blocks/carousel/view.php +7 -0
- package/src/blocks/checkout-button/block.json +79 -0
- package/src/blocks/checkout-button/edit.js +247 -0
- package/src/blocks/checkout-button/edit.scss +40 -0
- package/src/blocks/checkout-button/editor.js +23 -0
- package/src/blocks/checkout-button/index.js +27 -0
- package/src/blocks/checkout-button/save.js +64 -0
- package/src/blocks/{donate/checkout-modal/index.js → checkout-button/view.js} +1 -1
- package/src/blocks/checkout-button/view.php +35 -0
- package/src/blocks/checkout-button/view.scss +18 -0
- package/src/blocks/donate/frontend/class-newspack-blocks-donate-renderer.php +1 -233
- package/src/blocks/donate/styles/view.scss +0 -95
- package/src/blocks/homepage-articles/block.json +5 -0
- package/src/blocks/homepage-articles/edit.js +18 -0
- package/src/blocks/homepage-articles/utils.ts +4 -0
- package/src/components/query-controls.js +60 -0
- package/src/{blocks/donate/checkout-modal/view.scss → modal-checkout/checkout.scss} +1 -1
- package/src/modal-checkout/index.js +4 -0
- package/src/{blocks/donate/checkout-modal/block.js → modal-checkout/modal.js} +14 -11
- package/src/modal-checkout/modal.scss +97 -0
- package/src/{blocks/donate → modal-checkout}/templates/checkout-form.php +3 -3
- package/src/types/index.d.ts +1 -0
- package/vendor/autoload.php +1 -1
- package/vendor/composer/autoload_real.php +4 -4
- package/vendor/composer/autoload_static.php +2 -2
- package/vendor/composer/installed.php +2 -2
- package/webpack.config.js +2 -2
- package/.cache/babel/1d8b42985da54f10a9bfd0a9f87b5844.json.gz +0 -0
- package/.cache/babel/37bd7f90c2e7ea1e10bf840775d1b262.json.gz +0 -0
- package/.cache/babel/3a66da0fe7ab175effa6a338812e46cb.json.gz +0 -0
- package/.cache/babel/4ba56fc2684f5bebdd2c8c488ea03683.json.gz +0 -0
- package/.cache/babel/60ac312fdf07fb7730b1a8a9c1b5bd5a.json.gz +0 -0
- package/.cache/babel/61d00fc8add441f0b915e3af4b518ead.json.gz +0 -0
- package/.cache/babel/646a7267e14986e70c74dc9c32ca6a14.json.gz +0 -0
- package/.cache/babel/7464c382b8a939e4e43f9349d76843a8.json.gz +0 -0
- package/.cache/babel/917cc52662d270e7c529afbf210a2703.json.gz +0 -0
- package/.cache/babel/a1dde270d38efa30dfbbfe2b97be9e51.json.gz +0 -0
- package/.cache/babel/a5447d9807699029636883e96c6aa4c6.json.gz +0 -0
- package/.cache/babel/a7575c7f77cb736dbfe8a4d01910cc79.json.gz +0 -0
- package/.cache/babel/b13e3fd47c6307f8c1f8786edc053ed9.json.gz +0 -0
- package/.cache/babel/b38122e026094b152ef69677468e4415.json.gz +0 -0
- package/.cache/babel/bb3ca1de54603d2730484164ed55902b.json.gz +0 -0
- package/.cache/babel/c762aee66625f48b1de4e3b329d8c9fe.json.gz +0 -0
- package/.cache/babel/c9d601b83fd7c6412dd9ac187c06d7c1.json.gz +0 -0
- package/.cache/babel/fa5e94ee19268ccad7790a312d6fca4e.json.gz +0 -0
- package/.cache/babel/fe8f3849250ae54c53096ec8db55a8d6.json.gz +0 -0
- package/.cache/babel/fe99fe0bebf3e9d74bb240487620bdd4.json.gz +0 -0
- package/dist/donateCheckoutBlock.js +0 -1
- /package/dist/{donateCheckoutModal.js → checkout-button/view.js} +0 -0
- /package/dist/{donateCheckoutModal.css → modalCheckout.css} +0 -0
- /package/dist/{donateCheckoutModal.rtl.css → modalCheckout.rtl.css} +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,45 @@
|
|
|
1
|
+
# [1.68.0](https://github.com/Automattic/newspack-blocks/compare/v1.67.0...v1.68.0) (2023-05-08)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **checkout-button:** add to block list ([#1435](https://github.com/Automattic/newspack-blocks/issues/1435)) ([4376952](https://github.com/Automattic/newspack-blocks/commit/4376952c58e9b0a045d4afd72d77afd03f54b5d4))
|
|
7
|
+
* correct linting errors ([05d3e12](https://github.com/Automattic/newspack-blocks/commit/05d3e128f6552f0e9c7d50a63da06597c2aa0517))
|
|
8
|
+
* correct linting errors ([70f26d6](https://github.com/Automattic/newspack-blocks/commit/70f26d62ad116d8f014105ed76ab1ee622bd1683))
|
|
9
|
+
* **donate:** tiers based layout support check ([#1428](https://github.com/Automattic/newspack-blocks/issues/1428)) ([284f7a4](https://github.com/Automattic/newspack-blocks/commit/284f7a4afe102f99dcf2438d9567399f5f36c419))
|
|
10
|
+
* fixing linting errors ([7448cd2](https://github.com/Automattic/newspack-blocks/commit/7448cd251ef7a64c1d9d342d25df7777e034dbb7))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* Add brand query support to the blocks [#1427](https://github.com/Automattic/newspack-blocks/issues/1427) ([acf3ad8](https://github.com/Automattic/newspack-blocks/commit/acf3ad8fdce9fbfc092e1c4102527a20ac51f53d))
|
|
16
|
+
* add brands to post carousel ([e354d49](https://github.com/Automattic/newspack-blocks/commit/e354d49369b30d5e586c421f0ce3d9f9a99a5b50))
|
|
17
|
+
* add check for plugin before rendering fields ([9f237bb](https://github.com/Automattic/newspack-blocks/commit/9f237bbe07fc1bba5c280fe3f17441f2cbb59415))
|
|
18
|
+
* checkout button block ([#1421](https://github.com/Automattic/newspack-blocks/issues/1421)) ([4890a26](https://github.com/Automattic/newspack-blocks/commit/4890a265ae142adf312ac20e529b90c85e1149a3))
|
|
19
|
+
* initial pass at allowing multi-brand querying ([ce842f2](https://github.com/Automattic/newspack-blocks/commit/ce842f276d31fb4d201e5a78bcf3d9bc15673d7e))
|
|
20
|
+
* reorder query fields to move brands below tags ([8d91cff](https://github.com/Automattic/newspack-blocks/commit/8d91cff9ae6a8bc70a4bdc2c5557ef7b7b3bc108))
|
|
21
|
+
|
|
22
|
+
# [1.68.0-alpha.1](https://github.com/Automattic/newspack-blocks/compare/v1.67.0...v1.68.0-alpha.1) (2023-04-28)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* **checkout-button:** add to block list ([#1435](https://github.com/Automattic/newspack-blocks/issues/1435)) ([4376952](https://github.com/Automattic/newspack-blocks/commit/4376952c58e9b0a045d4afd72d77afd03f54b5d4))
|
|
28
|
+
* correct linting errors ([05d3e12](https://github.com/Automattic/newspack-blocks/commit/05d3e128f6552f0e9c7d50a63da06597c2aa0517))
|
|
29
|
+
* correct linting errors ([70f26d6](https://github.com/Automattic/newspack-blocks/commit/70f26d62ad116d8f014105ed76ab1ee622bd1683))
|
|
30
|
+
* **donate:** tiers based layout support check ([#1428](https://github.com/Automattic/newspack-blocks/issues/1428)) ([284f7a4](https://github.com/Automattic/newspack-blocks/commit/284f7a4afe102f99dcf2438d9567399f5f36c419))
|
|
31
|
+
* fixing linting errors ([7448cd2](https://github.com/Automattic/newspack-blocks/commit/7448cd251ef7a64c1d9d342d25df7777e034dbb7))
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Features
|
|
35
|
+
|
|
36
|
+
* Add brand query support to the blocks [#1427](https://github.com/Automattic/newspack-blocks/issues/1427) ([acf3ad8](https://github.com/Automattic/newspack-blocks/commit/acf3ad8fdce9fbfc092e1c4102527a20ac51f53d))
|
|
37
|
+
* add brands to post carousel ([e354d49](https://github.com/Automattic/newspack-blocks/commit/e354d49369b30d5e586c421f0ce3d9f9a99a5b50))
|
|
38
|
+
* add check for plugin before rendering fields ([9f237bb](https://github.com/Automattic/newspack-blocks/commit/9f237bbe07fc1bba5c280fe3f17441f2cbb59415))
|
|
39
|
+
* checkout button block ([#1421](https://github.com/Automattic/newspack-blocks/issues/1421)) ([4890a26](https://github.com/Automattic/newspack-blocks/commit/4890a265ae142adf312ac20e529b90c85e1149a3))
|
|
40
|
+
* initial pass at allowing multi-brand querying ([ce842f2](https://github.com/Automattic/newspack-blocks/commit/ce842f276d31fb4d201e5a78bcf3d9bc15673d7e))
|
|
41
|
+
* reorder query fields to move brands below tags ([8d91cff](https://github.com/Automattic/newspack-blocks/commit/8d91cff9ae6a8bc70a4bdc2c5557ef7b7b3bc108))
|
|
42
|
+
|
|
1
43
|
# [1.67.0](https://github.com/Automattic/newspack-blocks/compare/v1.66.1...v1.67.0) (2023-04-24)
|
|
2
44
|
|
|
3
45
|
|
package/block-list.json
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
2
|
+
"production": [
|
|
3
|
+
"author-list",
|
|
4
|
+
"author-profile",
|
|
5
|
+
"carousel",
|
|
6
|
+
"checkout-button",
|
|
7
|
+
"donate",
|
|
8
|
+
"homepage-articles",
|
|
9
|
+
"video-playlist",
|
|
10
|
+
"iframe"
|
|
11
|
+
]
|
|
3
12
|
}
|
package/composer.lock
CHANGED
|
@@ -1142,16 +1142,16 @@
|
|
|
1142
1142
|
},
|
|
1143
1143
|
{
|
|
1144
1144
|
"name": "phpunit/phpunit",
|
|
1145
|
-
"version": "9.6.
|
|
1145
|
+
"version": "9.6.7",
|
|
1146
1146
|
"source": {
|
|
1147
1147
|
"type": "git",
|
|
1148
1148
|
"url": "https://github.com/sebastianbergmann/phpunit.git",
|
|
1149
|
-
"reference": "
|
|
1149
|
+
"reference": "c993f0d3b0489ffc42ee2fe0bd645af1538a63b2"
|
|
1150
1150
|
},
|
|
1151
1151
|
"dist": {
|
|
1152
1152
|
"type": "zip",
|
|
1153
|
-
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/
|
|
1154
|
-
"reference": "
|
|
1153
|
+
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/c993f0d3b0489ffc42ee2fe0bd645af1538a63b2",
|
|
1154
|
+
"reference": "c993f0d3b0489ffc42ee2fe0bd645af1538a63b2",
|
|
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.
|
|
1228
|
+
"source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.7"
|
|
1229
1229
|
},
|
|
1230
1230
|
"funding": [
|
|
1231
1231
|
{
|
|
@@ -1241,7 +1241,7 @@
|
|
|
1241
1241
|
"type": "tidelift"
|
|
1242
1242
|
}
|
|
1243
1243
|
],
|
|
1244
|
-
"time": "2023-
|
|
1244
|
+
"time": "2023-04-14T08:58:40+00:00"
|
|
1245
1245
|
},
|
|
1246
1246
|
{
|
|
1247
1247
|
"name": "psr/container",
|
|
@@ -3369,5 +3369,5 @@
|
|
|
3369
3369
|
"platform-overrides": {
|
|
3370
3370
|
"php": "7.4"
|
|
3371
3371
|
},
|
|
3372
|
-
"plugin-api-version": "2.
|
|
3372
|
+
"plugin-api-version": "2.3.0"
|
|
3373
3373
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<?php return array('dependencies' => array('wp-a11y', 'wp-dom-ready', 'wp-escape-html', 'wp-i18n', 'wp-polyfill'), 'version' => '
|
|
1
|
+
<?php return array('dependencies' => array('wp-a11y', 'wp-dom-ready', 'wp-escape-html', 'wp-i18n', 'wp-polyfill'), 'version' => 'd8f04002ce17e88c62d5a93404d7ab4c');
|