@automattic/newspack-blocks 3.0.4 → 3.0.5

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 (30) hide show
  1. package/.cache/babel/7170efa5ce57b069b83f283e91811450.json.gz +0 -0
  2. package/.cache/babel/b28476e53228af2a7d6a9e55a5d63e64.json.gz +0 -0
  3. package/.cache/babel/c19be800a50892a02f080513c40bccbd.json.gz +0 -0
  4. package/.cache/babel/daa1bb86cfbd47c4ba1fc391d8194453.json.gz +0 -0
  5. package/.eslintrc.js +3 -0
  6. package/CHANGELOG.md +21 -2
  7. package/composer.lock +12 -12
  8. package/dist/editor.asset.php +1 -1
  9. package/dist/editor.js +2 -2
  10. package/includes/class-modal-checkout.php +42 -0
  11. package/includes/class-newspack-blocks-api.php +10 -11
  12. package/includes/class-newspack-blocks.php +43 -0
  13. package/includes/plugins/class-the-events-calendar.php +84 -0
  14. package/newspack-blocks.php +4 -2
  15. package/package.json +2 -2
  16. package/src/blocks/author-profile/class-wp-rest-newspack-authors-controller.php +42 -30
  17. package/src/blocks/carousel/edit.js +2 -2
  18. package/src/blocks/homepage-articles/{edit.js → edit.tsx} +34 -33
  19. package/src/blocks/homepage-articles/templates/article.php +3 -2
  20. package/src/blocks/homepage-articles/utils.ts +8 -31
  21. package/src/components/editor-panels.js +14 -3
  22. package/src/types/index.d.ts +109 -0
  23. package/vendor/autoload.php +1 -1
  24. package/vendor/composer/autoload_real.php +4 -4
  25. package/vendor/composer/autoload_static.php +2 -2
  26. package/vendor/composer/installed.php +2 -2
  27. package/.cache/babel/2fa9c6a361abed0c298ce473e621c94c.json.gz +0 -0
  28. package/.cache/babel/538ade6c2456b5eff86c58dc45c63d8a.json.gz +0 -0
  29. package/.cache/babel/6868f766c1c67a550ee0fb3a6ac463de.json.gz +0 -0
  30. package/.cache/babel/fdd76bf50199728a7f02fe0f3bf347cd.json.gz +0 -0
package/.eslintrc.js CHANGED
@@ -1,5 +1,8 @@
1
1
  require( '@rushstack/eslint-patch/modern-module-resolution' );
2
2
 
3
3
  module.exports = {
4
+ rules: {
5
+ '@typescript-eslint/ban-ts-comment': 'warn',
6
+ },
4
7
  extends: [ './node_modules/newspack-scripts/config/eslintrc.js' ],
5
8
  };
package/CHANGELOG.md CHANGED
@@ -1,9 +1,28 @@
1
- ## [3.0.4](https://github.com/Automattic/newspack-blocks/compare/v3.0.3...v3.0.4) (2024-03-07)
1
+ ## [3.0.5](https://github.com/Automattic/newspack-blocks/compare/v3.0.4...v3.0.5) (2024-03-25)
2
2
 
3
3
 
4
4
  ### Bug Fixes
5
5
 
6
- * show credit option for homepage posts & carousel blocks ([#1687](https://github.com/Automattic/newspack-blocks/issues/1687)) ([92a7bd3](https://github.com/Automattic/newspack-blocks/commit/92a7bd33dd1b8a41ecd85a62a748e743015d634a))
6
+ * **author-profile:** only display guest author profile when linked ([#1688](https://github.com/Automattic/newspack-blocks/issues/1688)) ([ee1bb21](https://github.com/Automattic/newspack-blocks/commit/ee1bb2138ad1d8705746585916c371d3b3243089))
7
+ * correct carousel button styles in editor ([#1680](https://github.com/Automattic/newspack-blocks/issues/1680)) ([d4aba73](https://github.com/Automattic/newspack-blocks/commit/d4aba73ee6a65115122d35b1587afbfc28d08fcd))
8
+ * **modal-checkout:** ensure customer location when state is required but country is not ([#1683](https://github.com/Automattic/newspack-blocks/issues/1683)) ([27badf8](https://github.com/Automattic/newspack-blocks/commit/27badf8690dfcc84819bd495a1e0a947756b7739))
9
+
10
+ ## [3.0.5-alpha.1](https://github.com/Automattic/newspack-blocks/compare/v3.0.4...v3.0.5-alpha.1) (2024-03-07)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * **author-profile:** only display guest author profile when linked ([#1688](https://github.com/Automattic/newspack-blocks/issues/1688)) ([ee1bb21](https://github.com/Automattic/newspack-blocks/commit/ee1bb2138ad1d8705746585916c371d3b3243089))
16
+ * correct carousel button styles in editor ([#1680](https://github.com/Automattic/newspack-blocks/issues/1680)) ([d4aba73](https://github.com/Automattic/newspack-blocks/commit/d4aba73ee6a65115122d35b1587afbfc28d08fcd))
17
+ * **modal-checkout:** ensure customer location when state is required but country is not ([#1683](https://github.com/Automattic/newspack-blocks/issues/1683)) ([27badf8](https://github.com/Automattic/newspack-blocks/commit/27badf8690dfcc84819bd495a1e0a947756b7739))
18
+
19
+ ## [3.0.4-alpha.1](https://github.com/Automattic/newspack-blocks/compare/v3.0.3...v3.0.4-alpha.1) (2024-03-07)
20
+
21
+ ### Bug Fixes
22
+
23
+ * correct carousel button styles in editor ([#1680](https://github.com/Automattic/newspack-blocks/issues/1680)) ([d4aba73](https://github.com/Automattic/newspack-blocks/commit/d4aba73ee6a65115122d35b1587afbfc28d08fcd))
24
+ * **modal-checkout:** ensure customer location when state is required but country is not ([#1683](https://github.com/Automattic/newspack-blocks/issues/1683)) ([27badf8](https://github.com/Automattic/newspack-blocks/commit/27badf8690dfcc84819bd495a1e0a947756b7739))
25
+
7
26
 
8
27
  ## [3.0.3](https://github.com/Automattic/newspack-blocks/compare/v3.0.2...v3.0.3) (2024-03-04)
9
28
 
package/composer.lock CHANGED
@@ -488,16 +488,16 @@
488
488
  },
489
489
  {
490
490
  "name": "nikic/php-parser",
491
- "version": "v5.0.0",
491
+ "version": "v5.0.1",
492
492
  "source": {
493
493
  "type": "git",
494
494
  "url": "https://github.com/nikic/PHP-Parser.git",
495
- "reference": "4a21235f7e56e713259a6f76bf4b5ea08502b9dc"
495
+ "reference": "2218c2252c874a4624ab2f613d86ac32d227bc69"
496
496
  },
497
497
  "dist": {
498
498
  "type": "zip",
499
- "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/4a21235f7e56e713259a6f76bf4b5ea08502b9dc",
500
- "reference": "4a21235f7e56e713259a6f76bf4b5ea08502b9dc",
499
+ "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/2218c2252c874a4624ab2f613d86ac32d227bc69",
500
+ "reference": "2218c2252c874a4624ab2f613d86ac32d227bc69",
501
501
  "shasum": ""
502
502
  },
503
503
  "require": {
@@ -540,9 +540,9 @@
540
540
  ],
541
541
  "support": {
542
542
  "issues": "https://github.com/nikic/PHP-Parser/issues",
543
- "source": "https://github.com/nikic/PHP-Parser/tree/v5.0.0"
543
+ "source": "https://github.com/nikic/PHP-Parser/tree/v5.0.1"
544
544
  },
545
- "time": "2024-01-07T17:17:35+00:00"
545
+ "time": "2024-02-21T19:24:10+00:00"
546
546
  },
547
547
  {
548
548
  "name": "phar-io/manifest",
@@ -1286,16 +1286,16 @@
1286
1286
  },
1287
1287
  {
1288
1288
  "name": "phpunit/phpunit",
1289
- "version": "9.6.16",
1289
+ "version": "9.6.17",
1290
1290
  "source": {
1291
1291
  "type": "git",
1292
1292
  "url": "https://github.com/sebastianbergmann/phpunit.git",
1293
- "reference": "3767b2c56ce02d01e3491046f33466a1ae60a37f"
1293
+ "reference": "1a156980d78a6666721b7e8e8502fe210b587fcd"
1294
1294
  },
1295
1295
  "dist": {
1296
1296
  "type": "zip",
1297
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/3767b2c56ce02d01e3491046f33466a1ae60a37f",
1298
- "reference": "3767b2c56ce02d01e3491046f33466a1ae60a37f",
1297
+ "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/1a156980d78a6666721b7e8e8502fe210b587fcd",
1298
+ "reference": "1a156980d78a6666721b7e8e8502fe210b587fcd",
1299
1299
  "shasum": ""
1300
1300
  },
1301
1301
  "require": {
@@ -1369,7 +1369,7 @@
1369
1369
  "support": {
1370
1370
  "issues": "https://github.com/sebastianbergmann/phpunit/issues",
1371
1371
  "security": "https://github.com/sebastianbergmann/phpunit/security/policy",
1372
- "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.16"
1372
+ "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.17"
1373
1373
  },
1374
1374
  "funding": [
1375
1375
  {
@@ -1385,7 +1385,7 @@
1385
1385
  "type": "tidelift"
1386
1386
  }
1387
1387
  ],
1388
- "time": "2024-01-19T07:03:14+00:00"
1388
+ "time": "2024-02-23T13:14:51+00:00"
1389
1389
  },
1390
1390
  {
1391
1391
  "name": "psr/container",
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'moment', 'react', 'wp-a11y', 'wp-api-fetch', 'wp-autop', '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' => '278a5e70cf84cc655da271d2525ab0cf');
1
+ <?php return array('dependencies' => array('lodash', 'moment', 'react', 'wp-a11y', 'wp-api-fetch', 'wp-autop', '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' => '14d1102800c69f486c9bf60625e65ee0');