@automattic/newspack-blocks 1.57.0 → 1.58.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/00255e6096be9e31ec354db849dfefaa.json.gz +0 -0
- package/.cache/babel/03ee6a9b413adafb1d24ee7efe4e0de7.json.gz +0 -0
- package/.cache/babel/0c12c4398bbbf2d771b13dd1d0e64097.json.gz +0 -0
- package/.cache/babel/{6b91a44d9cf1f1637760f08ca7007f6c.json.gz → 0d4960812610f2f863b7c53527ae85ac.json.gz} +0 -0
- package/.cache/babel/11204cbbf0ea2c37c74c52ef24eee1cf.json.gz +0 -0
- package/.cache/babel/17a433ab631a32d0712f3f75cf85ea99.json.gz +0 -0
- package/.cache/babel/2143ceff6d186bc13bc902e0f1f33dbf.json.gz +0 -0
- package/.cache/babel/281ca171ce8947f87f574df11059e00b.json.gz +0 -0
- package/.cache/babel/2da6786ede3ddda4c86eeac524a6a796.json.gz +0 -0
- package/.cache/babel/{71371fcf9db60a3a1e024991cb3b4bf3.json.gz → 3266d1d76445fa1073cfe2cee8994f03.json.gz} +0 -0
- package/.cache/babel/38b1f9b72e3b22262c5b0fd0a3ea002a.json.gz +0 -0
- package/.cache/babel/{135b54a95dc2dbf2a490d2082c47927b.json.gz → 3975ca3d8d9ca3c68d7ea3f58fb76b47.json.gz} +0 -0
- package/.cache/babel/{16e3bf3539f6599603cd50264ed387cd.json.gz → 3b2c440027c793c8f7978d7622cbfca0.json.gz} +0 -0
- package/.cache/babel/3fa1dbae1ebf6204aa04a8081e410f2e.json.gz +0 -0
- package/.cache/babel/{982d5c0203e2985c886fcae84400c10f.json.gz → 427a6423ebde76bcb488747127e47351.json.gz} +0 -0
- package/.cache/babel/480d26447b7ee019a37e4e18422403e9.json.gz +0 -0
- package/.cache/babel/{360ba23978d689820fc00bdcdc20f25b.json.gz → 573a6a858ebefcfc8d03bcc121ded073.json.gz} +0 -0
- package/.cache/babel/6333c664d69f13036f42bcf575c8e65d.json.gz +0 -0
- package/.cache/babel/{45352fcfd93e7066291df99d4a1adc48.json.gz → 63e7b9aa8a81ea06587cc196172bf2ad.json.gz} +0 -0
- package/.cache/babel/{716d63bab53dda7512875ba9f9cd2809.json.gz → 648cffdd5ec4a2446f8935a17b98080b.json.gz} +0 -0
- package/.cache/babel/{f50f27ba4b367318e30e91dbe003e5c8.json.gz → 6d07c1a0b2768b0433b8f1b9d16eae11.json.gz} +0 -0
- package/.cache/babel/6ef313cb6d3a59f73a6b78e1a729fb13.json.gz +0 -0
- package/.cache/babel/72321dde68f0bb9c334d90d6f4584be8.json.gz +0 -0
- package/.cache/babel/{3dfc7ef8cd5b05a687aec86c55d987a1.json.gz → 7e21e4c521dc1687d10e47ca1cba5ccd.json.gz} +0 -0
- package/.cache/babel/{347417d83405bac53ff3126377775cff.json.gz → 81fcb17d42a554573a91ef0b1cfe2f82.json.gz} +0 -0
- package/.cache/babel/{222c0ebeba5b6d47620d460ce4dddb2f.json.gz → 8959ab8fcfa783cb56e9418b99c0951c.json.gz} +0 -0
- package/.cache/babel/{7d19881ff4e24afd3a6b3ecb16b6f137.json.gz → 8ca686b1603d30fd05ff210182b49660.json.gz} +0 -0
- package/.cache/babel/{43e8a184b2c88b76ab5d3f74e7da5c9b.json.gz → 8de5c373bbc4b6fbeec373d582935887.json.gz} +0 -0
- package/.cache/babel/{bfa345e2a31bc09a8533c28e0d3897a2.json.gz → 8e35fb010830b9aec84e125915cf4afd.json.gz} +0 -0
- package/.cache/babel/8e4356bb363ec8feca62c892193583e8.json.gz +0 -0
- package/.cache/babel/8f24517cff634d2e91c19e51be8816cc.json.gz +0 -0
- package/.cache/babel/{bcbfa796f1ebd36be6dfa1c04603eb85.json.gz → 963b1e44be998c4dcc6845745c377369.json.gz} +0 -0
- package/.cache/babel/{c1c66b5df03ee927b03731d1ffc9b12e.json.gz → 975dfea566db37a1a09322effcd7e124.json.gz} +0 -0
- package/.cache/babel/{6e2e98bfc24542fc076ffaeccac35aef.json.gz → 9ec25be8a78e2838aa277d1211297f45.json.gz} +0 -0
- package/.cache/babel/{89de12a7b3c31be7b9670d3d5bf6992b.json.gz → a5405f86b8d1485e62a125275507e60f.json.gz} +0 -0
- package/.cache/babel/{0be72f2c4dcf90e53a21c17a61b813a5.json.gz → a8a6812e1c7b65cc6d0bdebe2a35c8ca.json.gz} +0 -0
- package/.cache/babel/abfad2632df08f961d60b11fc146d38f.json.gz +0 -0
- package/.cache/babel/b3a335ab950f502914013810b43b0ad5.json.gz +0 -0
- package/.cache/babel/{2ef414e63685642b486b71a962a5cc09.json.gz → b6f74d8551c5af82f277e67bc9978c5e.json.gz} +0 -0
- package/.cache/babel/{77329d55fddfede9bf39d3cea09f124c.json.gz → ba711530bd319618a0510d8361bebb45.json.gz} +0 -0
- package/.cache/babel/{c5ef6d77f32bff979468a18e339d0df3.json.gz → ba99f69b07bc475d53d1121387396514.json.gz} +0 -0
- package/.cache/babel/bb9a2c39b3e8555b578d242cd4477180.json.gz +0 -0
- package/.cache/babel/c1763075e83157fa2cb2c98bb58a134e.json.gz +0 -0
- package/.cache/babel/c8b10cf6f706fb669d6dd7564385768d.json.gz +0 -0
- package/.cache/babel/d1c60b4b717e103f2dddf0dbeb274e89.json.gz +0 -0
- package/.cache/babel/db5215643b0737dc5245972a5c25f736.json.gz +0 -0
- package/.cache/babel/{428696c483a193dae4fd10ca50507f13.json.gz → e6ce03a9908c9c4dc2c723531f1073f6.json.gz} +0 -0
- package/.cache/babel/{e54ab6f751b764475a5e98500354c854.json.gz → eb854e03c810bdb969497b2a36119bfa.json.gz} +0 -0
- package/.cache/babel/ec25bb53826070b7f301e64f02355b8c.json.gz +0 -0
- package/.cache/babel/fb05a8c9fe507b5b3ec88c5e5bb5bb15.json.gz +0 -0
- package/.cache/babel/fca370866bdd67aa150a2e218952090b.json.gz +0 -0
- package/CHANGELOG.md +26 -0
- package/README.md +5 -1
- package/composer.json +9 -1
- package/composer.lock +1872 -177
- package/dist/carousel/view.asset.php +1 -1
- package/dist/carousel/view.js +1 -1
- package/dist/donateStreamlined.asset.php +1 -1
- package/dist/donateStreamlined.js +1 -1
- package/dist/editor.asset.php +1 -1
- package/dist/editor.js +5 -5
- package/newspack-blocks.php +2 -2
- package/package.json +7 -7
- package/src/blocks/donate/class-wp-rest-newspack-donate-controller.php +12 -8
- package/src/blocks/donate/streamlined/index.ts +8 -0
- package/src/blocks/donate/streamlined/utils.ts +6 -1
- package/src/blocks/donate/view.php +1 -1
- 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/.cache/babel/1e7b99d3f4417381523ebcf71ad9e022.json.gz +0 -0
- package/.cache/babel/288e99252b9199a1901ad8ff034bcc0f.json.gz +0 -0
- package/.cache/babel/2ccf55a034174d61b60710dced2ec4fc.json.gz +0 -0
- package/.cache/babel/2de76e1f605aa116a3c683124fc6b427.json.gz +0 -0
- package/.cache/babel/35e5128bd317a0e2dd21b79c86af6aea.json.gz +0 -0
- package/.cache/babel/3975901bce3f47a2a682d190007d7ac0.json.gz +0 -0
- package/.cache/babel/571255733c4c403fc96c2a6e8d6c07d4.json.gz +0 -0
- package/.cache/babel/5b6c81be9c2f78728c02e68d7c551b98.json.gz +0 -0
- package/.cache/babel/5c72ea72414db575ad09b6c47a89caaf.json.gz +0 -0
- package/.cache/babel/63f2adb2a7ce4cbd6162c9669aa1402c.json.gz +0 -0
- package/.cache/babel/6937dc2a29257b2530470046d91dc67f.json.gz +0 -0
- package/.cache/babel/6ace59a2e7815ffc030edeb72f5eddb7.json.gz +0 -0
- package/.cache/babel/6f3d4b24121944865c8dfec81f4632d8.json.gz +0 -0
- package/.cache/babel/725e695c6992a4d01573b83867255ea9.json.gz +0 -0
- package/.cache/babel/7557a4c53a70a37c63225204d4c0861e.json.gz +0 -0
- package/.cache/babel/876e42a53b2af16090e8d9d5eb51736d.json.gz +0 -0
- package/.cache/babel/8966cff6915a38b79627cf406cbad473.json.gz +0 -0
- package/.cache/babel/993e16c7a6d6e525d80b9fbf4cfb4d8a.json.gz +0 -0
- package/.cache/babel/99c5500f66a78b4638ccb09b75f47131.json.gz +0 -0
- package/.cache/babel/aeccd7f0e81234276558a2ca75c9d096.json.gz +0 -0
- package/.cache/babel/bcb5d46de2f506661ce92afe876493b4.json.gz +0 -0
- package/.cache/babel/ccb609d68e60c9bab58109dc547aebfa.json.gz +0 -0
- package/.cache/babel/e467ac5c55ed9169a8b8e32ede515ccb.json.gz +0 -0
- package/.cache/babel/ed58d8ad423f2d071771ec9862c023bb.json.gz +0 -0
- package/.cache/babel/f97d3db2ff21560c4938e072bdcadaa6.json.gz +0 -0
- package/.cache/babel/fc5388fde6874a49aaf4764a60f50d49.json.gz +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,29 @@
|
|
|
1
|
+
# [1.58.0](https://github.com/Automattic/newspack-blocks/compare/v1.57.0...v1.58.0) (2022-09-27)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **donate:** handle zero fees ([744fa50](https://github.com/Automattic/newspack-blocks/commit/744fa50eb4b4c1585a078c5cfc773be1f491920a))
|
|
7
|
+
* **donate:** user id handling ([29efec8](https://github.com/Automattic/newspack-blocks/commit/29efec84644b7b1ddcc2b72734b58d03c760f30c))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* **donations:** pass client metadata when creating a WC membership ([764a4e4](https://github.com/Automattic/newspack-blocks/commit/764a4e4bbcb5777ab5be7f17894907c709bf424c))
|
|
13
|
+
|
|
14
|
+
# [1.58.0-alpha.1](https://github.com/Automattic/newspack-blocks/compare/v1.57.0...v1.58.0-alpha.1) (2022-09-26)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **donate:** handle zero fees ([744fa50](https://github.com/Automattic/newspack-blocks/commit/744fa50eb4b4c1585a078c5cfc773be1f491920a))
|
|
20
|
+
* **donate:** user id handling ([29efec8](https://github.com/Automattic/newspack-blocks/commit/29efec84644b7b1ddcc2b72734b58d03c760f30c))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
|
|
25
|
+
* **donations:** pass client metadata when creating a WC membership ([764a4e4](https://github.com/Automattic/newspack-blocks/commit/764a4e4bbcb5777ab5be7f17894907c709bf424c))
|
|
26
|
+
|
|
1
27
|
# [1.57.0](https://github.com/Automattic/newspack-blocks/compare/v1.56.0...v1.57.0) (2022-09-14)
|
|
2
28
|
|
|
3
29
|
|
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ is performed on changed files before commiting. In other words, is run during `p
|
|
|
27
27
|
| run manually | `composer lint` | `npm run lint:js` | `npm run lint:scss` |
|
|
28
28
|
| autofix ✨ | `./vendor/bin/phpcbf <file>` | `npm run lint:js -- --fix` | `npm run lint:scss -- --fix` |
|
|
29
29
|
|
|
30
|
-
### Building
|
|
30
|
+
### Building New Blocks
|
|
31
31
|
|
|
32
32
|
To get started with a new block:
|
|
33
33
|
|
|
@@ -37,3 +37,7 @@ To get started with a new block:
|
|
|
37
37
|
- Add the block slug to the `production` array in `src/setup/blocks.json`
|
|
38
38
|
- If the block requires server-side code add the slug to the `$newspack_blocks_blocks` array in `newspack-blocks.php`
|
|
39
39
|
- Execute `npm run build`. If all went smoothly, you should see a Newspack category in the block picker, and your block should appear within it.
|
|
40
|
+
|
|
41
|
+
### Usage
|
|
42
|
+
|
|
43
|
+
[End-user documentation can be found here](https://newspack.pub/support/blocks/homepage-posts/).
|
package/composer.json
CHANGED
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
"wp-coding-standards/wpcs": "*",
|
|
11
11
|
"dealerdirect/phpcodesniffer-composer-installer": "*",
|
|
12
12
|
"phpcompatibility/phpcompatibility-wp": "*",
|
|
13
|
-
"sirbrillig/phpcs-variable-analysis": "^2.10"
|
|
13
|
+
"sirbrillig/phpcs-variable-analysis": "^2.10",
|
|
14
|
+
"yoast/phpunit-polyfills": "^1.0",
|
|
15
|
+
"phpunit/phpunit": "^7.0"
|
|
14
16
|
},
|
|
15
17
|
"license": "GPL-3.0-or-later",
|
|
16
18
|
"scripts": {
|
|
@@ -31,5 +33,11 @@
|
|
|
31
33
|
"cat $1 | ./node_modules/.bin/newspack-scripts commitlint"
|
|
32
34
|
]
|
|
33
35
|
}
|
|
36
|
+
},
|
|
37
|
+
"config": {
|
|
38
|
+
"allow-plugins": {
|
|
39
|
+
"composer/installers": true,
|
|
40
|
+
"dealerdirect/phpcodesniffer-composer-installer": true
|
|
41
|
+
}
|
|
34
42
|
}
|
|
35
43
|
}
|