@automattic/newspack-blocks 4.34.0-alpha.2 → 4.34.0-alpha.4

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.
@@ -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-09-21T15:42:06+00:00\n"
5
+ "POT-Creation-Date: 2026-09-28T12:48:03+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"
@@ -304,45 +304,45 @@ msgstr ""
304
304
  msgid "Newspack Subscribe"
305
305
  msgstr ""
306
306
 
307
- #: includes/class-newspack-blocks.php:1062
307
+ #: includes/class-newspack-blocks.php:1132
308
308
  msgid "Common"
309
309
  msgstr ""
310
310
 
311
311
  #. translators: separates last two sponsor names; needs a space on either side.
312
- #: includes/class-newspack-blocks.php:1163
312
+ #: includes/class-newspack-blocks.php:1233
313
313
  msgid " and "
314
314
  msgstr " e "
315
315
 
316
316
  #. translators: separates all but the last two sponsor names; needs a space at the end.
317
- #: includes/class-newspack-blocks.php:1166
317
+ #: includes/class-newspack-blocks.php:1236
318
318
  msgid ", "
319
319
  msgstr ""
320
320
 
321
- #: includes/class-newspack-blocks.php:1501
321
+ #: includes/class-newspack-blocks.php:1571
322
322
  msgid "Jetpack donations is disabled in favour of Newspack donations."
323
323
  msgstr ""
324
324
 
325
- #: includes/class-newspack-blocks.php:1534 dist/editor.js:30
325
+ #: includes/class-newspack-blocks.php:1604 dist/editor.js:30
326
326
  #: src/shared/js/utils.js:54
327
327
  msgid "Draft"
328
328
  msgstr ""
329
329
 
330
- #: includes/class-newspack-blocks.php:1535 dist/editor.js:30
330
+ #: includes/class-newspack-blocks.php:1605 dist/editor.js:30
331
331
  #: src/shared/js/utils.js:54
332
332
  msgid "Scheduled"
333
333
  msgstr ""
334
334
 
335
335
  #. Translators: %s is the %s is the frequency.
336
- #: includes/class-newspack-blocks.php:1733 dist/editor.js:52
336
+ #: includes/class-newspack-blocks.php:1803 dist/editor.js:52
337
337
  #, php-format
338
338
  msgid "per %s"
339
339
  msgstr ""
340
340
 
341
- #: includes/class-newspack-blocks.php:1764
341
+ #: includes/class-newspack-blocks.php:1834
342
342
  msgid " once"
343
343
  msgstr ""
344
344
 
345
- #: includes/class-newspack-blocks.php:1767
345
+ #: includes/class-newspack-blocks.php:1837
346
346
  msgid " per "
347
347
  msgstr ""
348
348
 
@@ -556,24 +556,24 @@ msgid "Centered"
556
556
  msgstr ""
557
557
 
558
558
  #. translators: %d: Slide number.
559
- #: src/blocks/carousel/view.php:237
559
+ #: src/blocks/carousel/view.php:243
560
560
  #, php-format
561
561
  msgid "Go to slide %d"
562
562
  msgstr ""
563
563
 
564
- #: src/blocks/carousel/view.php:258
564
+ #: src/blocks/carousel/view.php:264
565
565
  msgid "Previous Slide"
566
566
  msgstr "Slide Anterior"
567
567
 
568
- #: src/blocks/carousel/view.php:259
568
+ #: src/blocks/carousel/view.php:265
569
569
  msgid "Next Slide"
570
570
  msgstr "Próximo Slide"
571
571
 
572
- #: src/blocks/carousel/view.php:303
572
+ #: src/blocks/carousel/view.php:309
573
573
  msgid "Pause Slideshow"
574
574
  msgstr "Pausa na apresentação"
575
575
 
576
- #: src/blocks/carousel/view.php:304
576
+ #: src/blocks/carousel/view.php:310
577
577
  msgid "Play Slideshow"
578
578
  msgstr ""
579
579
 
@@ -629,20 +629,20 @@ msgstr "Valor da Doação"
629
629
  msgid "Other"
630
630
  msgstr "Outro"
631
631
 
632
- #: src/blocks/homepage-articles/view.php:409 dist/editor.js:64
632
+ #: src/blocks/homepage-articles/view.php:415 dist/editor.js:64
633
633
  msgid "Load more posts"
634
634
  msgstr "Carregar mais posts"
635
635
 
636
- #: src/blocks/homepage-articles/view.php:416
636
+ #: src/blocks/homepage-articles/view.php:422
637
637
  msgid "Something went wrong. Please refresh the page and/or try again."
638
638
  msgstr ""
639
639
 
640
- #: src/blocks/homepage-articles/view.php:491
640
+ #: src/blocks/homepage-articles/view.php:497
641
641
  msgctxt "post author"
642
642
  msgid "by"
643
643
  msgstr "por"
644
644
 
645
- #: src/blocks/homepage-articles/view.php:508
645
+ #: src/blocks/homepage-articles/view.php:514
646
646
  msgctxt "post author"
647
647
  msgid " and "
648
648
  msgstr " e "
@@ -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.34.0-alpha.2\n"
5
+ "Project-Id-Version: Newspack Blocks 4.34.0-alpha.4\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-09-21T15:42:06+00:00\n"
12
+ "POT-Creation-Date: 2026-09-28T12:48:03+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"
@@ -298,48 +298,48 @@ msgstr ""
298
298
  msgid "Newspack Subscribe"
299
299
  msgstr ""
300
300
 
301
- #: includes/class-newspack-blocks.php:1062
301
+ #: includes/class-newspack-blocks.php:1132
302
302
  msgid "Common"
303
303
  msgstr ""
304
304
 
305
305
  #. translators: separates last two sponsor names; needs a space on either side.
306
- #: includes/class-newspack-blocks.php:1163
306
+ #: includes/class-newspack-blocks.php:1233
307
307
  msgid " and "
308
308
  msgstr ""
309
309
 
310
310
  #. translators: separates all but the last two sponsor names; needs a space at the end.
311
- #: includes/class-newspack-blocks.php:1166
311
+ #: includes/class-newspack-blocks.php:1236
312
312
  msgid ", "
313
313
  msgstr ""
314
314
 
315
- #: includes/class-newspack-blocks.php:1501
315
+ #: includes/class-newspack-blocks.php:1571
316
316
  msgid "Jetpack donations is disabled in favour of Newspack donations."
317
317
  msgstr ""
318
318
 
319
- #: includes/class-newspack-blocks.php:1534
319
+ #: includes/class-newspack-blocks.php:1604
320
320
  #: dist/editor.js:30
321
321
  #: src/shared/js/utils.js:54
322
322
  msgid "Draft"
323
323
  msgstr ""
324
324
 
325
- #: includes/class-newspack-blocks.php:1535
325
+ #: includes/class-newspack-blocks.php:1605
326
326
  #: dist/editor.js:30
327
327
  #: src/shared/js/utils.js:54
328
328
  msgid "Scheduled"
329
329
  msgstr ""
330
330
 
331
331
  #. Translators: %s is the %s is the frequency.
332
- #: includes/class-newspack-blocks.php:1733
332
+ #: includes/class-newspack-blocks.php:1803
333
333
  #: dist/editor.js:52
334
334
  #, php-format,js-format
335
335
  msgid "per %s"
336
336
  msgstr ""
337
337
 
338
- #: includes/class-newspack-blocks.php:1764
338
+ #: includes/class-newspack-blocks.php:1834
339
339
  msgid " once"
340
340
  msgstr ""
341
341
 
342
- #: includes/class-newspack-blocks.php:1767
342
+ #: includes/class-newspack-blocks.php:1837
343
343
  msgid " per "
344
344
  msgstr ""
345
345
 
@@ -569,24 +569,24 @@ msgid "Centered"
569
569
  msgstr ""
570
570
 
571
571
  #. translators: %d: Slide number.
572
- #: src/blocks/carousel/view.php:237
572
+ #: src/blocks/carousel/view.php:243
573
573
  #, php-format
574
574
  msgid "Go to slide %d"
575
575
  msgstr ""
576
576
 
577
- #: src/blocks/carousel/view.php:258
577
+ #: src/blocks/carousel/view.php:264
578
578
  msgid "Previous Slide"
579
579
  msgstr ""
580
580
 
581
- #: src/blocks/carousel/view.php:259
581
+ #: src/blocks/carousel/view.php:265
582
582
  msgid "Next Slide"
583
583
  msgstr ""
584
584
 
585
- #: src/blocks/carousel/view.php:303
585
+ #: src/blocks/carousel/view.php:309
586
586
  msgid "Pause Slideshow"
587
587
  msgstr ""
588
588
 
589
- #: src/blocks/carousel/view.php:304
589
+ #: src/blocks/carousel/view.php:310
590
590
  msgid "Play Slideshow"
591
591
  msgstr ""
592
592
 
@@ -641,21 +641,21 @@ msgstr ""
641
641
  msgid "Other"
642
642
  msgstr ""
643
643
 
644
- #: src/blocks/homepage-articles/view.php:409
644
+ #: src/blocks/homepage-articles/view.php:415
645
645
  #: dist/editor.js:64
646
646
  msgid "Load more posts"
647
647
  msgstr ""
648
648
 
649
- #: src/blocks/homepage-articles/view.php:416
649
+ #: src/blocks/homepage-articles/view.php:422
650
650
  msgid "Something went wrong. Please refresh the page and/or try again."
651
651
  msgstr ""
652
652
 
653
- #: src/blocks/homepage-articles/view.php:491
653
+ #: src/blocks/homepage-articles/view.php:497
654
654
  msgctxt "post author"
655
655
  msgid "by"
656
656
  msgstr ""
657
657
 
658
- #: src/blocks/homepage-articles/view.php:508
658
+ #: src/blocks/homepage-articles/view.php:514
659
659
  msgctxt "post author"
660
660
  msgid " and "
661
661
  msgstr ""
@@ -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.34.0-alpha.2
10
+ * Version: 4.34.0-alpha.4
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.34.0-alpha.2' );
18
+ define( 'NEWSPACK_BLOCKS__VERSION', '4.34.0-alpha.4' );
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.34.0-alpha.2",
3
+ "version": "4.34.0-alpha.4",
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": {
@@ -57,7 +57,7 @@
57
57
  },
58
58
  "devDependencies": {
59
59
  "@types/lodash": "^4.17.23",
60
- "newspack-components": "4.8.1-alpha.1",
60
+ "newspack-components": "4.9.0-alpha.1",
61
61
  "newspack-scripts": "5.11.0"
62
62
  },
63
63
  "overrides": {
@@ -19,6 +19,12 @@ function newspack_blocks_render_block_carousel( $attributes ) {
19
19
  return;
20
20
  }
21
21
 
22
+ // Skip the query when a revision or autosave is being prepared for the REST
23
+ // API: the output is never shown, and the query is costly on large sites.
24
+ if ( Newspack_Blocks::is_rest_revision_or_autosave_render() ) {
25
+ return '';
26
+ }
27
+
22
28
  static $newspack_blocks_carousel_id = 0;
23
29
  global $newspack_blocks_post_id;
24
30
 
@@ -256,6 +256,12 @@ function newspack_blocks_render_block_homepage_articles( $attributes ) {
256
256
  return;
257
257
  }
258
258
 
259
+ // Skip the query when a revision or autosave is being prepared for the REST
260
+ // API: the output is never shown, and the query is costly on large sites.
261
+ if ( Newspack_Blocks::is_rest_revision_or_autosave_render() ) {
262
+ return '';
263
+ }
264
+
259
265
  $block_name = apply_filters( 'newspack_blocks_block_name', 'newspack-blocks/homepage-articles' );
260
266
  $article_query = new WP_Query( Newspack_Blocks::build_articles_query( $attributes, $block_name ) );
261
267
  if ( ! $article_query->have_posts() ) {
@@ -3,7 +3,7 @@
3
3
  'name' => 'automattic/newspack-blocks',
4
4
  'pretty_version' => 'dev-main',
5
5
  'version' => 'dev-main',
6
- 'reference' => 'a27db19e71dc79f83fb88c77e58cde099da0b0a1',
6
+ 'reference' => '3a3d1d8320a07d1b71d8d883da94288043668b70',
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' => 'a27db19e71dc79f83fb88c77e58cde099da0b0a1',
16
+ 'reference' => '3a3d1d8320a07d1b71d8d883da94288043668b70',
17
17
  'type' => 'wordpress-plugin',
18
18
  'install_path' => __DIR__ . '/../../',
19
19
  'aliases' => array(),