@automattic/newspack-blocks 1.54.0 → 1.54.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,3 +1,10 @@
1
+ ## [1.54.1](https://github.com/Automattic/newspack-blocks/compare/v1.54.0...v1.54.1) (2022-07-29)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **donate-block:** handle default frequency from attributes ([4de797a](https://github.com/Automattic/newspack-blocks/commit/4de797a396c7ca3f7f07416c44a9f87a8ce37af1))
7
+
1
8
  # [1.54.0](https://github.com/Automattic/newspack-blocks/compare/v1.53.1...v1.54.0) (2022-07-26)
2
9
 
3
10
 
@@ -7,7 +7,7 @@
7
7
  * Author URI: https://newspack.blog/
8
8
  * Text Domain: newspack-blocks
9
9
  * Domain Path: /languages
10
- * Version: 1.54.0
10
+ * Version: 1.54.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', '1.54.0' );
18
+ define( 'NEWSPACK_BLOCKS__VERSION', '1.54.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": "1.54.0",
3
+ "version": "1.54.1",
4
4
  "author": "Automattic",
5
5
  "devDependencies": {
6
6
  "@rushstack/eslint-patch": "^1.1.4",
@@ -207,6 +207,8 @@ function newspack_blocks_render_block_donate( $attributes ) {
207
207
  return '';
208
208
  }
209
209
 
210
+ $configuration['defaultFrequency'] = $attributes['defaultFrequency'];
211
+
210
212
  /* If block has additional CSS class(es) */
211
213
  if ( isset( $attributes['className'] ) ) {
212
214
  $classname = $attributes['className'];
@@ -4,4 +4,4 @@
4
4
 
5
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
6
 
7
- return ComposerAutoloaderInit49fbd6ec7deee2cfafc0623f87888fe4::getLoader();
7
+ return ComposerAutoloaderInit7f3933c5a0628e03eb9eb2c8f047e7f5::getLoader();
@@ -2,7 +2,7 @@
2
2
 
3
3
  // autoload_real.php @generated by Composer
4
4
 
5
- class ComposerAutoloaderInit49fbd6ec7deee2cfafc0623f87888fe4
5
+ class ComposerAutoloaderInit7f3933c5a0628e03eb9eb2c8f047e7f5
6
6
  {
7
7
  private static $loader;
8
8
 
@@ -22,15 +22,15 @@ class ComposerAutoloaderInit49fbd6ec7deee2cfafc0623f87888fe4
22
22
  return self::$loader;
23
23
  }
24
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInit49fbd6ec7deee2cfafc0623f87888fe4', 'loadClassLoader'), true, true);
25
+ spl_autoload_register(array('ComposerAutoloaderInit7f3933c5a0628e03eb9eb2c8f047e7f5', 'loadClassLoader'), true, true);
26
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
27
- spl_autoload_unregister(array('ComposerAutoloaderInit49fbd6ec7deee2cfafc0623f87888fe4', 'loadClassLoader'));
27
+ spl_autoload_unregister(array('ComposerAutoloaderInit7f3933c5a0628e03eb9eb2c8f047e7f5', 'loadClassLoader'));
28
28
 
29
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
30
  if ($useStaticLoader) {
31
31
  require __DIR__ . '/autoload_static.php';
32
32
 
33
- call_user_func(\Composer\Autoload\ComposerStaticInit49fbd6ec7deee2cfafc0623f87888fe4::getInitializer($loader));
33
+ call_user_func(\Composer\Autoload\ComposerStaticInit7f3933c5a0628e03eb9eb2c8f047e7f5::getInitializer($loader));
34
34
  } else {
35
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
36
  foreach ($map as $namespace => $path) {
@@ -4,7 +4,7 @@
4
4
 
5
5
  namespace Composer\Autoload;
6
6
 
7
- class ComposerStaticInit49fbd6ec7deee2cfafc0623f87888fe4
7
+ class ComposerStaticInit7f3933c5a0628e03eb9eb2c8f047e7f5
8
8
  {
9
9
  public static $classMap = array (
10
10
  'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
@@ -13,7 +13,7 @@ class ComposerStaticInit49fbd6ec7deee2cfafc0623f87888fe4
13
13
  public static function getInitializer(ClassLoader $loader)
14
14
  {
15
15
  return \Closure::bind(function () use ($loader) {
16
- $loader->classMap = ComposerStaticInit49fbd6ec7deee2cfafc0623f87888fe4::$classMap;
16
+ $loader->classMap = ComposerStaticInit7f3933c5a0628e03eb9eb2c8f047e7f5::$classMap;
17
17
 
18
18
  }, null, ClassLoader::class);
19
19
  }
@@ -5,7 +5,7 @@
5
5
  'type' => 'wordpress-plugin',
6
6
  'install_path' => __DIR__ . '/../../',
7
7
  'aliases' => array(),
8
- 'reference' => 'd0c5ef37143589ab35d9926bda95d6de2e196b63',
8
+ 'reference' => '4de797a396c7ca3f7f07416c44a9f87a8ce37af1',
9
9
  'name' => 'automattic/newspack-blocks',
10
10
  'dev' => false,
11
11
  ),
@@ -16,7 +16,7 @@
16
16
  'type' => 'wordpress-plugin',
17
17
  'install_path' => __DIR__ . '/../../',
18
18
  'aliases' => array(),
19
- 'reference' => 'd0c5ef37143589ab35d9926bda95d6de2e196b63',
19
+ 'reference' => '4de797a396c7ca3f7f07416c44a9f87a8ce37af1',
20
20
  'dev_requirement' => false,
21
21
  ),
22
22
  ),