@automattic/newspack-blocks 4.31.0-alpha.4 → 4.31.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 CHANGED
@@ -1,9 +1,30 @@
1
- # @automattic/newspack-blocks [4.31.0-alpha.4](https://github.com/Automattic/newspack-workspace/compare/newspack-blocks@4.31.0-alpha.3...newspack-blocks@4.31.0-alpha.4) (2026-08-31)
1
+ ## @automattic/newspack-blocks [4.31.1](https://github.com/Automattic/newspack-workspace/compare/newspack-blocks@4.31.0...newspack-blocks@4.31.1) (2026-09-09)
2
2
 
3
3
 
4
4
  ### Bug Fixes
5
5
 
6
- * **homepage-articles:** neutralize editor author links (NPPM-3165) ([#992](https://github.com/Automattic/newspack-workspace/issues/992)) ([b19c5ae](https://github.com/Automattic/newspack-workspace/commit/b19c5aeeab022ecd28afaba72999f4af1810f8e7))
6
+ * **homepage-articles:** reset dedup state per render pass (NPLAUNC-242) ([#1019](https://github.com/Automattic/newspack-workspace/issues/1019)) ([0ecdc9b](https://github.com/Automattic/newspack-workspace/commit/0ecdc9b7e9511799df668738a732ef6f0d808cb4))
7
+
8
+ # @automattic/newspack-blocks [4.31.0](https://github.com/Automattic/newspack-workspace/compare/newspack-blocks@4.30.5...newspack-blocks@4.31.0) (2026-08-31)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **blocks:** allow opted-in post types on the public /articles endpoint ([#522](https://github.com/Automattic/newspack-workspace/issues/522)) ([4ad30b4](https://github.com/Automattic/newspack-workspace/commit/4ad30b494bbdf5ecbb57576ddb922d9a300acb33))
14
+ * **blocks:** escape checkout-button container class attribute ([#616](https://github.com/Automattic/newspack-workspace/issues/616)) ([f727cc2](https://github.com/Automattic/newspack-workspace/commit/f727cc209f2e50ae49f4397350d65721cb2c4b9b))
15
+
16
+
17
+ ### Features
18
+
19
+ * add tag labels to the Carousel block ([#429](https://github.com/Automattic/newspack-workspace/issues/429)) ([567e5ab](https://github.com/Automattic/newspack-workspace/commit/567e5ab9fb54b69bd6e9377eac3f3f76ca8e29c2))
20
+ * **subscriptions:** add a card to a manually created subscription ([#840](https://github.com/Automattic/newspack-workspace/issues/840)) ([3c752a0](https://github.com/Automattic/newspack-workspace/commit/3c752a00aebdfdf393ad36bc063e9df4c0c82d91))
21
+
22
+
23
+ ### Dependencies
24
+
25
+ * **newspack-colors:** upgraded to 1.1.4
26
+ * **newspack-icons:** upgraded to 1.1.2
27
+ * **newspack-components:** upgraded to 4.7.0
7
28
 
8
29
  ## @automattic/newspack-blocks [4.30.5](https://github.com/Automattic/newspack-workspace/compare/newspack-blocks@4.30.4...newspack-blocks@4.30.5) (2026-08-31)
9
30
 
@@ -20,6 +20,14 @@ class Newspack_Blocks {
20
20
  'tiers-based' => 'newspack-blocks-donate-tiers-based',
21
21
  ];
22
22
 
23
+ /**
24
+ * Nesting depth of `the_content` filter applications. A depth of zero marks
25
+ * the start of a top-level render pass, where deduplication state is reset.
26
+ *
27
+ * @var int
28
+ */
29
+ private static $content_render_depth = 0;
30
+
23
31
  /**
24
32
  * Add hooks and filters.
25
33
  */
@@ -30,6 +38,8 @@ class Newspack_Blocks {
30
38
  add_post_type_support( 'page', 'newspack_blocks' );
31
39
  add_action( 'jetpack_register_gutenberg_extensions', [ __CLASS__, 'disable_jetpack_donate' ], 99 );
32
40
  add_filter( 'the_content', [ __CLASS__, 'hide_post_content_when_iframe_block_is_fullscreen' ] );
41
+ add_filter( 'the_content', [ __CLASS__, 'start_content_render_pass' ], PHP_INT_MIN );
42
+ add_filter( 'the_content', [ __CLASS__, 'end_content_render_pass' ], PHP_INT_MAX );
33
43
  add_filter( 'body_class', [ __CLASS__, 'add_body_classes' ] );
34
44
  add_filter( 'admin_body_class', [ __CLASS__, 'add_body_classes' ] );
35
45
 
@@ -616,6 +626,73 @@ class Newspack_Blocks {
616
626
  return false;
617
627
  }
618
628
 
629
+ /**
630
+ * Mark the start of a `the_content` render pass.
631
+ *
632
+ * Deduplication state accumulates in globals for the life of the request,
633
+ * which is right for a front-end page but wrong wherever one request renders
634
+ * the same content more than once (a REST save renders it up to three times)
635
+ * or renders several posts (a REST collection). There, every top-level pass
636
+ * starts from a clean slate so each returns the same posts. Nested passes
637
+ * (a Query Loop rendering Post Content, a synced pattern) keep the state of
638
+ * the pass they belong to.
639
+ *
640
+ * @param string $content Post content.
641
+ * @return string Unmodified post content.
642
+ */
643
+ public static function start_content_render_pass( $content ) {
644
+ if ( 0 === self::$content_render_depth && self::should_reset_deduplication_per_render_pass() ) {
645
+ self::reset_deduplication();
646
+ }
647
+ self::$content_render_depth++;
648
+ return $content;
649
+ }
650
+
651
+ /**
652
+ * Mark the end of a `the_content` render pass.
653
+ *
654
+ * @param string $content Post content.
655
+ * @return string Unmodified post content.
656
+ */
657
+ public static function end_content_render_pass( $content ) {
658
+ self::$content_render_depth = max( 0, self::$content_render_depth - 1 );
659
+ return $content;
660
+ }
661
+
662
+ /**
663
+ * Whether deduplication state should be reset at the start of each top-level
664
+ * `the_content` pass.
665
+ *
666
+ * On the front end the state is kept for the whole request, because a block
667
+ * theme can render Content Loop blocks in the template before the post
668
+ * content, and those have to be excluded from the blocks inside it.
669
+ *
670
+ * @return bool
671
+ */
672
+ public static function should_reset_deduplication_per_render_pass() {
673
+ $is_front_end = ! is_admin()
674
+ && ! wp_doing_ajax()
675
+ && ! wp_doing_cron()
676
+ && ! ( defined( 'REST_REQUEST' ) && REST_REQUEST )
677
+ && ! ( defined( 'WP_CLI' ) && WP_CLI );
678
+
679
+ return ! $is_front_end;
680
+ }
681
+
682
+ /**
683
+ * Forget which posts have been rendered so far, so the next Content Loop or
684
+ * Carousel block starts deduplicating from scratch.
685
+ *
686
+ * The list of posts picked by specific-posts blocks is left alone: it is
687
+ * derived from the current post, which `wp_reset_postdata()` cannot restore
688
+ * inside a REST request once a block's loop has moved it, so recomputing it
689
+ * per pass would give each pass a different exclusion list.
690
+ */
691
+ public static function reset_deduplication() {
692
+ global $newspack_blocks_post_id;
693
+ $newspack_blocks_post_id = [];
694
+ }
695
+
619
696
  /**
620
697
  * Whether the block should be included in the deduplication logic.
621
698
  *
@@ -712,6 +789,8 @@ class Newspack_Blocks {
712
789
  'has_password' => false,
713
790
  'is_newspack_query' => true,
714
791
  'tax_query' => [], // phpcs:ignore WordPress.DB.SlowDBQuery.slow_db_query_tax_query
792
+ // The total is only needed to decide whether a More button has a next page.
793
+ 'no_found_rows' => empty( $attributes['moreButton'] ),
715
794
  );
716
795
  if ( $specific_mode && $specific_posts ) {
717
796
  $args['posts_per_page'] = count( $specific_posts );
@@ -2,7 +2,7 @@ msgid ""
2
2
  msgstr ""
3
3
  "Project-Id-Version: Newspack Blocks\n"
4
4
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/newspack-blocks\n"
5
- "POT-Creation-Date: 2026-08-31T16:35:45+00:00\n"
5
+ "POT-Creation-Date: 2026-09-09T13:54:18+00:00\n"
6
6
  "PO-Revision-Date: 2024-08-30 08:45-0700\n"
7
7
  "Last-Translator: \n"
8
8
  "Language-Team: \n"
@@ -282,45 +282,45 @@ msgstr ""
282
282
  msgid "Newspack Subscribe"
283
283
  msgstr ""
284
284
 
285
- #: includes/class-newspack-blocks.php:983
285
+ #: includes/class-newspack-blocks.php:1062
286
286
  msgid "Common"
287
287
  msgstr ""
288
288
 
289
289
  #. translators: separates last two sponsor names; needs a space on either side.
290
- #: includes/class-newspack-blocks.php:1084
290
+ #: includes/class-newspack-blocks.php:1163
291
291
  msgid " and "
292
292
  msgstr " und "
293
293
 
294
294
  #. translators: separates all but the last two sponsor names; needs a space at the end.
295
- #: includes/class-newspack-blocks.php:1087
295
+ #: includes/class-newspack-blocks.php:1166
296
296
  msgid ", "
297
297
  msgstr ""
298
298
 
299
- #: includes/class-newspack-blocks.php:1422
299
+ #: includes/class-newspack-blocks.php:1501
300
300
  msgid "Jetpack donations is disabled in favour of Newspack donations."
301
301
  msgstr ""
302
302
 
303
- #: includes/class-newspack-blocks.php:1455 dist/editor.js:26
303
+ #: includes/class-newspack-blocks.php:1534 dist/editor.js:26
304
304
  #: src/shared/js/utils.js:54
305
305
  msgid "Draft"
306
306
  msgstr ""
307
307
 
308
- #: includes/class-newspack-blocks.php:1456 dist/editor.js:26
308
+ #: includes/class-newspack-blocks.php:1535 dist/editor.js:26
309
309
  #: src/shared/js/utils.js:54
310
310
  msgid "Scheduled"
311
311
  msgstr ""
312
312
 
313
313
  #. Translators: %s is the %s is the frequency.
314
- #: includes/class-newspack-blocks.php:1654 dist/editor.js:48
314
+ #: includes/class-newspack-blocks.php:1733 dist/editor.js:48
315
315
  #, php-format
316
316
  msgid "per %s"
317
317
  msgstr ""
318
318
 
319
- #: includes/class-newspack-blocks.php:1685
319
+ #: includes/class-newspack-blocks.php:1764
320
320
  msgid " once"
321
321
  msgstr ""
322
322
 
323
- #: includes/class-newspack-blocks.php:1688
323
+ #: includes/class-newspack-blocks.php:1767
324
324
  msgid " per "
325
325
  msgstr ""
326
326
 
@@ -2,7 +2,7 @@ msgid ""
2
2
  msgstr ""
3
3
  "Project-Id-Version: Newspack Blocks 1.0.0-alpha.20\n"
4
4
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/newspack-blocks\n"
5
- "POT-Creation-Date: 2026-08-31T16:35:45+00:00\n"
5
+ "POT-Creation-Date: 2026-09-09T13:54:18+00:00\n"
6
6
  "PO-Revision-Date: 2025-08-12T14:56:45+00:00\n"
7
7
  "Last-Translator: \n"
8
8
  "Language-Team: \n"
@@ -274,45 +274,45 @@ msgstr ""
274
274
  msgid "Newspack Subscribe"
275
275
  msgstr ""
276
276
 
277
- #: includes/class-newspack-blocks.php:983
277
+ #: includes/class-newspack-blocks.php:1062
278
278
  msgid "Common"
279
279
  msgstr ""
280
280
 
281
281
  #. translators: separates last two sponsor names; needs a space on either side.
282
- #: includes/class-newspack-blocks.php:1084
282
+ #: includes/class-newspack-blocks.php:1163
283
283
  msgid " and "
284
284
  msgstr " y "
285
285
 
286
286
  #. translators: separates all but the last two sponsor names; needs a space at the end.
287
- #: includes/class-newspack-blocks.php:1087
287
+ #: includes/class-newspack-blocks.php:1166
288
288
  msgid ", "
289
289
  msgstr ""
290
290
 
291
- #: includes/class-newspack-blocks.php:1422
291
+ #: includes/class-newspack-blocks.php:1501
292
292
  msgid "Jetpack donations is disabled in favour of Newspack donations."
293
293
  msgstr ""
294
294
 
295
- #: includes/class-newspack-blocks.php:1455 dist/editor.js:26
295
+ #: includes/class-newspack-blocks.php:1534 dist/editor.js:26
296
296
  #: src/shared/js/utils.js:54
297
297
  msgid "Draft"
298
298
  msgstr ""
299
299
 
300
- #: includes/class-newspack-blocks.php:1456 dist/editor.js:26
300
+ #: includes/class-newspack-blocks.php:1535 dist/editor.js:26
301
301
  #: src/shared/js/utils.js:54
302
302
  msgid "Scheduled"
303
303
  msgstr ""
304
304
 
305
305
  #. Translators: %s is the %s is the frequency.
306
- #: includes/class-newspack-blocks.php:1654 dist/editor.js:48
306
+ #: includes/class-newspack-blocks.php:1733 dist/editor.js:48
307
307
  #, php-format
308
308
  msgid "per %s"
309
309
  msgstr ""
310
310
 
311
- #: includes/class-newspack-blocks.php:1685
311
+ #: includes/class-newspack-blocks.php:1764
312
312
  msgid " once"
313
313
  msgstr ""
314
314
 
315
- #: includes/class-newspack-blocks.php:1688
315
+ #: includes/class-newspack-blocks.php:1767
316
316
  msgid " per "
317
317
  msgstr ""
318
318
 
@@ -2,7 +2,7 @@ msgid ""
2
2
  msgstr ""
3
3
  "Project-Id-Version: Newspack Blocks 1.0.0-alpha.25\n"
4
4
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/newspack-blocks\n"
5
- "POT-Creation-Date: 2026-08-31T16:35:45+00:00\n"
5
+ "POT-Creation-Date: 2026-09-09T13:54:18+00:00\n"
6
6
  "PO-Revision-Date: 2024-08-30 08:46-0700\n"
7
7
  "Last-Translator: \n"
8
8
  "Language-Team: \n"
@@ -272,45 +272,45 @@ msgstr ""
272
272
  msgid "Newspack Subscribe"
273
273
  msgstr ""
274
274
 
275
- #: includes/class-newspack-blocks.php:983
275
+ #: includes/class-newspack-blocks.php:1062
276
276
  msgid "Common"
277
277
  msgstr ""
278
278
 
279
279
  #. translators: separates last two sponsor names; needs a space on either side.
280
- #: includes/class-newspack-blocks.php:1084
280
+ #: includes/class-newspack-blocks.php:1163
281
281
  msgid " and "
282
282
  msgstr " et "
283
283
 
284
284
  #. translators: separates all but the last two sponsor names; needs a space at the end.
285
- #: includes/class-newspack-blocks.php:1087
285
+ #: includes/class-newspack-blocks.php:1166
286
286
  msgid ", "
287
287
  msgstr ""
288
288
 
289
- #: includes/class-newspack-blocks.php:1422
289
+ #: includes/class-newspack-blocks.php:1501
290
290
  msgid "Jetpack donations is disabled in favour of Newspack donations."
291
291
  msgstr ""
292
292
 
293
- #: includes/class-newspack-blocks.php:1455 dist/editor.js:26
293
+ #: includes/class-newspack-blocks.php:1534 dist/editor.js:26
294
294
  #: src/shared/js/utils.js:54
295
295
  msgid "Draft"
296
296
  msgstr ""
297
297
 
298
- #: includes/class-newspack-blocks.php:1456 dist/editor.js:26
298
+ #: includes/class-newspack-blocks.php:1535 dist/editor.js:26
299
299
  #: src/shared/js/utils.js:54
300
300
  msgid "Scheduled"
301
301
  msgstr ""
302
302
 
303
303
  #. Translators: %s is the %s is the frequency.
304
- #: includes/class-newspack-blocks.php:1654 dist/editor.js:48
304
+ #: includes/class-newspack-blocks.php:1733 dist/editor.js:48
305
305
  #, php-format
306
306
  msgid "per %s"
307
307
  msgstr ""
308
308
 
309
- #: includes/class-newspack-blocks.php:1685
309
+ #: includes/class-newspack-blocks.php:1764
310
310
  msgid " once"
311
311
  msgstr ""
312
312
 
313
- #: includes/class-newspack-blocks.php:1688
313
+ #: includes/class-newspack-blocks.php:1767
314
314
  msgid " per "
315
315
  msgstr ""
316
316
 
@@ -2,7 +2,7 @@ msgid ""
2
2
  msgstr ""
3
3
  "Project-Id-Version: Newspack Blocks 1.0.0-alpha.20\n"
4
4
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/newspack-blocks\n"
5
- "POT-Creation-Date: 2026-08-31T16:35:45+00:00\n"
5
+ "POT-Creation-Date: 2026-09-09T13:54:18+00:00\n"
6
6
  "PO-Revision-Date: 2024-08-30 08:46-0700\n"
7
7
  "Last-Translator: \n"
8
8
  "Language-Team: \n"
@@ -272,45 +272,45 @@ msgstr ""
272
272
  msgid "Newspack Subscribe"
273
273
  msgstr ""
274
274
 
275
- #: includes/class-newspack-blocks.php:983
275
+ #: includes/class-newspack-blocks.php:1062
276
276
  msgid "Common"
277
277
  msgstr ""
278
278
 
279
279
  #. translators: separates last two sponsor names; needs a space on either side.
280
- #: includes/class-newspack-blocks.php:1084
280
+ #: includes/class-newspack-blocks.php:1163
281
281
  msgid " and "
282
282
  msgstr " og "
283
283
 
284
284
  #. translators: separates all but the last two sponsor names; needs a space at the end.
285
- #: includes/class-newspack-blocks.php:1087
285
+ #: includes/class-newspack-blocks.php:1166
286
286
  msgid ", "
287
287
  msgstr ""
288
288
 
289
- #: includes/class-newspack-blocks.php:1422
289
+ #: includes/class-newspack-blocks.php:1501
290
290
  msgid "Jetpack donations is disabled in favour of Newspack donations."
291
291
  msgstr ""
292
292
 
293
- #: includes/class-newspack-blocks.php:1455 dist/editor.js:26
293
+ #: includes/class-newspack-blocks.php:1534 dist/editor.js:26
294
294
  #: src/shared/js/utils.js:54
295
295
  msgid "Draft"
296
296
  msgstr ""
297
297
 
298
- #: includes/class-newspack-blocks.php:1456 dist/editor.js:26
298
+ #: includes/class-newspack-blocks.php:1535 dist/editor.js:26
299
299
  #: src/shared/js/utils.js:54
300
300
  msgid "Scheduled"
301
301
  msgstr ""
302
302
 
303
303
  #. Translators: %s is the %s is the frequency.
304
- #: includes/class-newspack-blocks.php:1654 dist/editor.js:48
304
+ #: includes/class-newspack-blocks.php:1733 dist/editor.js:48
305
305
  #, php-format
306
306
  msgid "per %s"
307
307
  msgstr ""
308
308
 
309
- #: includes/class-newspack-blocks.php:1685
309
+ #: includes/class-newspack-blocks.php:1764
310
310
  msgid " once"
311
311
  msgstr ""
312
312
 
313
- #: includes/class-newspack-blocks.php:1688
313
+ #: includes/class-newspack-blocks.php:1767
314
314
  msgid " per "
315
315
  msgstr ""
316
316
 
@@ -2,7 +2,7 @@ msgid ""
2
2
  msgstr ""
3
3
  "Project-Id-Version: Newspack Blocks 1.0.0-alpha.25\n"
4
4
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/newspack-blocks\n"
5
- "POT-Creation-Date: 2026-08-31T16:35:45+00:00\n"
5
+ "POT-Creation-Date: 2026-09-09T13:54:18+00:00\n"
6
6
  "PO-Revision-Date: 2024-08-30 08:46-0700\n"
7
7
  "Last-Translator: \n"
8
8
  "Language-Team: \n"
@@ -272,45 +272,45 @@ msgstr ""
272
272
  msgid "Newspack Subscribe"
273
273
  msgstr ""
274
274
 
275
- #: includes/class-newspack-blocks.php:983
275
+ #: includes/class-newspack-blocks.php:1062
276
276
  msgid "Common"
277
277
  msgstr ""
278
278
 
279
279
  #. translators: separates last two sponsor names; needs a space on either side.
280
- #: includes/class-newspack-blocks.php:1084
280
+ #: includes/class-newspack-blocks.php:1163
281
281
  msgid " and "
282
282
  msgstr " e "
283
283
 
284
284
  #. translators: separates all but the last two sponsor names; needs a space at the end.
285
- #: includes/class-newspack-blocks.php:1087
285
+ #: includes/class-newspack-blocks.php:1166
286
286
  msgid ", "
287
287
  msgstr ""
288
288
 
289
- #: includes/class-newspack-blocks.php:1422
289
+ #: includes/class-newspack-blocks.php:1501
290
290
  msgid "Jetpack donations is disabled in favour of Newspack donations."
291
291
  msgstr ""
292
292
 
293
- #: includes/class-newspack-blocks.php:1455 dist/editor.js:26
293
+ #: includes/class-newspack-blocks.php:1534 dist/editor.js:26
294
294
  #: src/shared/js/utils.js:54
295
295
  msgid "Draft"
296
296
  msgstr ""
297
297
 
298
- #: includes/class-newspack-blocks.php:1456 dist/editor.js:26
298
+ #: includes/class-newspack-blocks.php:1535 dist/editor.js:26
299
299
  #: src/shared/js/utils.js:54
300
300
  msgid "Scheduled"
301
301
  msgstr ""
302
302
 
303
303
  #. Translators: %s is the %s is the frequency.
304
- #: includes/class-newspack-blocks.php:1654 dist/editor.js:48
304
+ #: includes/class-newspack-blocks.php:1733 dist/editor.js:48
305
305
  #, php-format
306
306
  msgid "per %s"
307
307
  msgstr ""
308
308
 
309
- #: includes/class-newspack-blocks.php:1685
309
+ #: includes/class-newspack-blocks.php:1764
310
310
  msgid " once"
311
311
  msgstr ""
312
312
 
313
- #: includes/class-newspack-blocks.php:1688
313
+ #: includes/class-newspack-blocks.php:1767
314
314
  msgid " per "
315
315
  msgstr ""
316
316
 
@@ -2,14 +2,14 @@
2
2
  # This file is distributed under the same license as the Newspack Blocks plugin.
3
3
  msgid ""
4
4
  msgstr ""
5
- "Project-Id-Version: Newspack Blocks 4.30.5\n"
5
+ "Project-Id-Version: Newspack Blocks 4.31.0\n"
6
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/newspack-blocks\n"
7
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
9
  "MIME-Version: 1.0\n"
10
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "POT-Creation-Date: 2026-08-31T16:35:45+00:00\n"
12
+ "POT-Creation-Date: 2026-09-09T13:54:18+00:00\n"
13
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
14
  "X-Generator: WP-CLI 2.12.0\n"
15
15
  "X-Domain: newspack-blocks\n"
@@ -263,48 +263,48 @@ msgstr ""
263
263
  msgid "Newspack Subscribe"
264
264
  msgstr ""
265
265
 
266
- #: includes/class-newspack-blocks.php:983
266
+ #: includes/class-newspack-blocks.php:1062
267
267
  msgid "Common"
268
268
  msgstr ""
269
269
 
270
270
  #. translators: separates last two sponsor names; needs a space on either side.
271
- #: includes/class-newspack-blocks.php:1084
271
+ #: includes/class-newspack-blocks.php:1163
272
272
  msgid " and "
273
273
  msgstr ""
274
274
 
275
275
  #. translators: separates all but the last two sponsor names; needs a space at the end.
276
- #: includes/class-newspack-blocks.php:1087
276
+ #: includes/class-newspack-blocks.php:1166
277
277
  msgid ", "
278
278
  msgstr ""
279
279
 
280
- #: includes/class-newspack-blocks.php:1422
280
+ #: includes/class-newspack-blocks.php:1501
281
281
  msgid "Jetpack donations is disabled in favour of Newspack donations."
282
282
  msgstr ""
283
283
 
284
- #: includes/class-newspack-blocks.php:1455
284
+ #: includes/class-newspack-blocks.php:1534
285
285
  #: dist/editor.js:26
286
286
  #: src/shared/js/utils.js:54
287
287
  msgid "Draft"
288
288
  msgstr ""
289
289
 
290
- #: includes/class-newspack-blocks.php:1456
290
+ #: includes/class-newspack-blocks.php:1535
291
291
  #: dist/editor.js:26
292
292
  #: src/shared/js/utils.js:54
293
293
  msgid "Scheduled"
294
294
  msgstr ""
295
295
 
296
296
  #. Translators: %s is the %s is the frequency.
297
- #: includes/class-newspack-blocks.php:1654
297
+ #: includes/class-newspack-blocks.php:1733
298
298
  #: dist/editor.js:48
299
299
  #, php-format,js-format
300
300
  msgid "per %s"
301
301
  msgstr ""
302
302
 
303
- #: includes/class-newspack-blocks.php:1685
303
+ #: includes/class-newspack-blocks.php:1764
304
304
  msgid " once"
305
305
  msgstr ""
306
306
 
307
- #: includes/class-newspack-blocks.php:1688
307
+ #: includes/class-newspack-blocks.php:1767
308
308
  msgid " per "
309
309
  msgstr ""
310
310
 
@@ -7,7 +7,7 @@
7
7
  * Author URI: https://newspack.com/
8
8
  * Text Domain: newspack-blocks
9
9
  * Domain Path: /languages
10
- * Version: 4.31.0-alpha.4
10
+ * Version: 4.31.1
11
11
  *
12
12
  * @package Newspack_Blocks
13
13
  */
@@ -15,7 +15,7 @@
15
15
  define( 'NEWSPACK_BLOCKS__PLUGIN_FILE', __FILE__ );
16
16
  define( 'NEWSPACK_BLOCKS__BLOCKS_DIRECTORY', 'dist/' );
17
17
  define( 'NEWSPACK_BLOCKS__PLUGIN_DIR', plugin_dir_path( NEWSPACK_BLOCKS__PLUGIN_FILE ) );
18
- define( 'NEWSPACK_BLOCKS__VERSION', '4.31.0-alpha.4' );
18
+ define( 'NEWSPACK_BLOCKS__VERSION', '4.31.1' );
19
19
 
20
20
  require_once NEWSPACK_BLOCKS__PLUGIN_DIR . 'includes/class-newspack-blocks.php';
21
21
  require_once NEWSPACK_BLOCKS__PLUGIN_DIR . 'includes/class-newspack-blocks-api.php';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automattic/newspack-blocks",
3
- "version": "4.31.0-alpha.4",
3
+ "version": "4.31.1",
4
4
  "author": "Automattic",
5
5
  "description": "=== Newspack Blocks === Contributors: (this should be a list of wordpress.org userid's) Donate link: https://example.com/ Tags: comments, spam Requires at least: 4.5 Tested up to: 5.1.1 Stable tag: 0.1.0 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html",
6
6
  "repository": {
@@ -47,8 +47,8 @@
47
47
  "dependencies": {
48
48
  "classnames": "^2.5.1",
49
49
  "lodash": "^4.17.21",
50
- "newspack-colors": "1.1.4-alpha.1",
51
- "newspack-icons": "1.1.2-alpha.1",
50
+ "newspack-colors": "1.1.4",
51
+ "newspack-icons": "1.1.2",
52
52
  "redux": "^5.0.0",
53
53
  "redux-saga": "^1.5.0",
54
54
  "regenerator-runtime": "^0.14.1",
@@ -56,7 +56,7 @@
56
56
  },
57
57
  "devDependencies": {
58
58
  "@types/lodash": "^4.17.23",
59
- "newspack-components": "4.7.0-alpha.2",
59
+ "newspack-components": "4.7.0",
60
60
  "newspack-scripts": "5.11.0"
61
61
  },
62
62
  "overrides": {
@@ -3,7 +3,7 @@
3
3
  'name' => 'automattic/newspack-blocks',
4
4
  'pretty_version' => 'dev-main',
5
5
  'version' => 'dev-main',
6
- 'reference' => '886a5b8835197e4c0904f279ddcb22ffadb7db6b',
6
+ 'reference' => '0ecdc9b7e9511799df668738a732ef6f0d808cb4',
7
7
  'type' => 'wordpress-plugin',
8
8
  'install_path' => __DIR__ . '/../../',
9
9
  'aliases' => array(),
@@ -13,7 +13,7 @@
13
13
  'automattic/newspack-blocks' => array(
14
14
  'pretty_version' => 'dev-main',
15
15
  'version' => 'dev-main',
16
- 'reference' => '886a5b8835197e4c0904f279ddcb22ffadb7db6b',
16
+ 'reference' => '0ecdc9b7e9511799df668738a732ef6f0d808cb4',
17
17
  'type' => 'wordpress-plugin',
18
18
  'install_path' => __DIR__ . '/../../',
19
19
  'aliases' => array(),