@automattic/newspack-blocks 4.8.0-alpha.1 → 4.8.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,10 +1,21 @@
1
- # [4.8.0-alpha.1](https://github.com/Automattic/newspack-blocks/compare/v4.7.2-alpha.1...v4.8.0-alpha.1) (2025-03-27)
1
+ ## [4.8.1](https://github.com/Automattic/newspack-blocks/compare/v4.8.0...v4.8.1) (2025-03-31)
2
+
3
+
4
+ ### Reverts
5
+
6
+ * Revert "fix(donate-block): handle decimals in custom amount input (#2074)" (#2094) ([bc4efc2](https://github.com/Automattic/newspack-blocks/commit/bc4efc2a4d6af25ae177ebd5902f69c42495df67)), closes [#2074](https://github.com/Automattic/newspack-blocks/issues/2074) [#2094](https://github.com/Automattic/newspack-blocks/issues/2094)
7
+
8
+ # [4.8.0](https://github.com/Automattic/newspack-blocks/compare/v4.7.1...v4.8.0) (2025-03-31)
2
9
 
3
10
 
4
11
  ### Bug Fixes
5
12
 
13
+ * **api:** avoid warning newspack blocks api accessing attachment images ([#2069](https://github.com/Automattic/newspack-blocks/issues/2069)) ([93ffebf](https://github.com/Automattic/newspack-blocks/commit/93ffebf19ae195aa23fd175635c16644d67a33bf))
6
14
  * better handle deleted terms ([#2076](https://github.com/Automattic/newspack-blocks/issues/2076)) ([7d7a639](https://github.com/Automattic/newspack-blocks/commit/7d7a6396e1e5e388c178e0ce58bcfa8962565075))
7
15
  * correct checkout button block width in WP 6.8 ([#2087](https://github.com/Automattic/newspack-blocks/issues/2087)) ([a9def73](https://github.com/Automattic/newspack-blocks/commit/a9def73c86aac2eb8c71b5e75890b2c09732c54b))
16
+ * **donate-block:** handle decimals in custom amount input ([#2074](https://github.com/Automattic/newspack-blocks/issues/2074)) ([9db74fe](https://github.com/Automattic/newspack-blocks/commit/9db74fe6f703e104b5703065ce86ac17e1abad07))
17
+ * make sure five column border layout works ([#2072](https://github.com/Automattic/newspack-blocks/issues/2072)) ([a1dbfbc](https://github.com/Automattic/newspack-blocks/commit/a1dbfbce9091072e64b763c9a13316a7d1bf8943))
18
+ * **modal-checkout:** trigger REST API endpoint to refresh post-checko… ([#2080](https://github.com/Automattic/newspack-blocks/issues/2080)) ([e534446](https://github.com/Automattic/newspack-blocks/commit/e5344463fc07207e7406f7a4b9d0a7d4708a6359))
8
19
 
9
20
 
10
21
  ### Features
@@ -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.8.0-alpha.1
10
+ * Version: 4.8.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.8.0-alpha.1' );
18
+ define( 'NEWSPACK_BLOCKS__VERSION', '4.8.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.8.0-alpha.1",
3
+ "version": "4.8.1",
4
4
  "author": "Automattic",
5
5
  "devDependencies": {
6
6
  "@rushstack/eslint-patch": "^1.11.0",
@@ -140,14 +140,6 @@ class Newspack_Blocks_Donate_Renderer_Frequency_Based extends Newspack_Blocks_Do
140
140
 
141
141
  $configuration = self::get_configuration( $attributes );
142
142
 
143
- // Calculate the value for the "step" property of the custom amount donation value `input` element.
144
- $thousand_separator = get_option( 'woocommerce_price_thousand_sep', false );
145
- if ( $thousand_separator !== '.' ) {
146
- $decimals = get_option( 'woocommerce_price_num_decimals', 2 );
147
- $input_element_step = '0.' . str_repeat( '0', $decimals - 1 ) . '1';
148
- }
149
- $input_element_step = '1';
150
-
151
143
  ob_start();
152
144
 
153
145
  /**
@@ -208,7 +200,6 @@ class Newspack_Blocks_Donate_Renderer_Frequency_Based extends Newspack_Blocks_Do
208
200
  name='donation_value_<?php echo esc_attr( $frequency_slug ); ?>_untiered'
209
201
  value='<?php echo esc_attr( $amount ); ?>'
210
202
  id='newspack-<?php echo esc_attr( $frequency_slug . '-' . $uid ); ?>-untiered-input'
211
- step='<?php echo esc_attr( $input_element_step ); ?>'
212
203
  />
213
204
  </div>
214
205
  <?php else : ?>
@@ -314,7 +305,6 @@ class Newspack_Blocks_Donate_Renderer_Frequency_Based extends Newspack_Blocks_Do
314
305
  min='<?php echo esc_attr( $configuration['minimumDonation'] ); ?>'
315
306
  name='donation_value_<?php echo esc_attr( $frequency_slug ); ?>_other'
316
307
  id='newspack-tier-<?php echo esc_attr( $frequency_slug . '-' . $uid ); ?>-other-input'
317
- step='<?php echo esc_attr( $input_element_step ); ?>'
318
308
  />
319
309
  </div>
320
310
  <?php
@@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) {
22
22
 
23
23
  require_once __DIR__ . '/composer/autoload_real.php';
24
24
 
25
- return ComposerAutoloaderInitc58aaca9ed97cbe0b6ad41eca21064c6::getLoader();
25
+ return ComposerAutoloaderInit808b45bde591249a1be83aec837d082f::getLoader();
@@ -2,7 +2,7 @@
2
2
 
3
3
  // autoload_real.php @generated by Composer
4
4
 
5
- class ComposerAutoloaderInitc58aaca9ed97cbe0b6ad41eca21064c6
5
+ class ComposerAutoloaderInit808b45bde591249a1be83aec837d082f
6
6
  {
7
7
  private static $loader;
8
8
 
@@ -22,12 +22,12 @@ class ComposerAutoloaderInitc58aaca9ed97cbe0b6ad41eca21064c6
22
22
  return self::$loader;
23
23
  }
24
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInitc58aaca9ed97cbe0b6ad41eca21064c6', 'loadClassLoader'), true, true);
25
+ spl_autoload_register(array('ComposerAutoloaderInit808b45bde591249a1be83aec837d082f', 'loadClassLoader'), true, true);
26
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
27
- spl_autoload_unregister(array('ComposerAutoloaderInitc58aaca9ed97cbe0b6ad41eca21064c6', 'loadClassLoader'));
27
+ spl_autoload_unregister(array('ComposerAutoloaderInit808b45bde591249a1be83aec837d082f', 'loadClassLoader'));
28
28
 
29
29
  require __DIR__ . '/autoload_static.php';
30
- call_user_func(\Composer\Autoload\ComposerStaticInitc58aaca9ed97cbe0b6ad41eca21064c6::getInitializer($loader));
30
+ call_user_func(\Composer\Autoload\ComposerStaticInit808b45bde591249a1be83aec837d082f::getInitializer($loader));
31
31
 
32
32
  $loader->register(true);
33
33
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  namespace Composer\Autoload;
6
6
 
7
- class ComposerStaticInitc58aaca9ed97cbe0b6ad41eca21064c6
7
+ class ComposerStaticInit808b45bde591249a1be83aec837d082f
8
8
  {
9
9
  public static $classMap = array (
10
10
  'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
@@ -13,7 +13,7 @@ class ComposerStaticInitc58aaca9ed97cbe0b6ad41eca21064c6
13
13
  public static function getInitializer(ClassLoader $loader)
14
14
  {
15
15
  return \Closure::bind(function () use ($loader) {
16
- $loader->classMap = ComposerStaticInitc58aaca9ed97cbe0b6ad41eca21064c6::$classMap;
16
+ $loader->classMap = ComposerStaticInit808b45bde591249a1be83aec837d082f::$classMap;
17
17
 
18
18
  }, null, ClassLoader::class);
19
19
  }
@@ -3,7 +3,7 @@
3
3
  'name' => 'automattic/newspack-blocks',
4
4
  'pretty_version' => 'dev-trunk',
5
5
  'version' => 'dev-trunk',
6
- 'reference' => 'f6955159de39a930a1e8def34095def79126a96c',
6
+ 'reference' => 'bc4efc2a4d6af25ae177ebd5902f69c42495df67',
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-trunk',
15
15
  'version' => 'dev-trunk',
16
- 'reference' => 'f6955159de39a930a1e8def34095def79126a96c',
16
+ 'reference' => 'bc4efc2a4d6af25ae177ebd5902f69c42495df67',
17
17
  'type' => 'wordpress-plugin',
18
18
  'install_path' => __DIR__ . '/../../',
19
19
  'aliases' => array(),