@automattic/newspack-blocks 1.58.0 → 1.58.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.
@@ -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.58.0
10
+ * Version: 1.58.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.58.0' );
18
+ define( 'NEWSPACK_BLOCKS__VERSION', '1.58.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.58.0",
3
+ "version": "1.58.1",
4
4
  "author": "Automattic",
5
5
  "devDependencies": {
6
6
  "@rushstack/eslint-patch": "^1.2.0",
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "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",
20
20
  "dependencies": {
21
- "@stripe/stripe-js": "^1.36.0",
21
+ "@stripe/stripe-js": "^1.38.1",
22
22
  "classnames": "^2.3.2",
23
23
  "lodash": "^4.17.21",
24
24
  "newspack-components": "^2.1.0",
@@ -285,26 +285,25 @@ class Edit extends Component {
285
285
  showAuthor ||
286
286
  showDate ) && (
287
287
  <div className="entry-wrapper">
288
- { ( post.newspack_post_sponsors || showCategory ) &&
289
- 0 < post.newspack_category_info.length &&
290
- ( ! post.newspack_post_sponsors ||
291
- post.newspack_sponsors_show_categories ) && (
292
- <div
293
- className={
294
- 'cat-links' +
295
- ( post.newspack_post_sponsors ? ' sponsor-label' : '' )
296
- }
297
- >
298
- { post.newspack_post_sponsors && (
299
- <span className="flag">
300
- { post.newspack_post_sponsors[ 0 ].flag }
301
- </span>
302
- ) }
303
- { showCategory && (
288
+ { ( post.newspack_post_sponsors ||
289
+ ( showCategory && 0 < post.newspack_category_info.length ) ) && (
290
+ <div
291
+ className={
292
+ 'cat-links' + ( post.newspack_post_sponsors ? ' sponsor-label' : '' )
293
+ }
294
+ >
295
+ { post.newspack_post_sponsors && (
296
+ <span className="flag">
297
+ { post.newspack_post_sponsors[ 0 ].flag }
298
+ </span>
299
+ ) }
300
+ { showCategory &&
301
+ ( ! post.newspack_post_sponsors ||
302
+ post.newspack_sponsors_show_categories ) && (
304
303
  <a href="#">{ decodeEntities( post.newspack_category_info ) }</a>
305
304
  ) }
306
- </div>
307
- ) }
305
+ </div>
306
+ ) }
308
307
  { showTitle && (
309
308
  <h3 className="entry-title">
310
309
  <a href="#">{ decodeEntities( post.title.rendered.trim() ) }</a>
@@ -154,7 +154,7 @@ function newspack_blocks_render_block_carousel( $attributes ) {
154
154
  <div class="entry-meta">
155
155
  <?php
156
156
  if ( ! empty( $sponsors ) ) :
157
- $sponsor_classes[] = 'entry-sponsors';
157
+ $sponsor_classes = [ 'entry-sponsors' ];
158
158
  if ( Newspack_Blocks::newspack_display_sponsors_and_authors( $sponsors ) ) {
159
159
  $sponsor_classes[] = 'plus-author';
160
160
  }
@@ -171,20 +171,20 @@ class Edit extends Component {
171
171
  ) }
172
172
 
173
173
  <div className="entry-wrapper">
174
- { ( post.newspack_post_sponsors || showCategory ) &&
175
- 0 < post.newspack_category_info.length &&
176
- ( ! post.newspack_post_sponsors || post.newspack_sponsors_show_categories ) && (
177
- <div
178
- className={ 'cat-links' + ( post.newspack_post_sponsors ? ' sponsor-label' : '' ) }
179
- >
180
- { post.newspack_post_sponsors && (
181
- <span className="flag">{ post.newspack_post_sponsors[ 0 ].flag }</span>
182
- ) }
183
- { showCategory && (
174
+ { ( post.newspack_post_sponsors ||
175
+ ( showCategory && 0 < post.newspack_category_info.length ) ) && (
176
+ <div
177
+ className={ 'cat-links' + ( post.newspack_post_sponsors ? ' sponsor-label' : '' ) }
178
+ >
179
+ { post.newspack_post_sponsors && (
180
+ <span className="flag">{ post.newspack_post_sponsors[ 0 ].flag }</span>
181
+ ) }
182
+ { showCategory &&
183
+ ( ! post.newspack_post_sponsors || post.newspack_sponsors_show_categories ) && (
184
184
  <a href="#">{ decodeEntities( post.newspack_category_info ) }</a>
185
185
  ) }
186
- </div>
187
- ) }
186
+ </div>
187
+ ) }
188
188
  { RichText.isEmpty( sectionHeader ) ? (
189
189
  <h2 className="entry-title" key="title">
190
190
  <a href="#">{ postTitle }</a>
@@ -172,7 +172,7 @@ call_user_func(
172
172
  <div class="entry-meta">
173
173
  <?php
174
174
  if ( ! empty( $sponsors ) ) :
175
- $sponsor_classes[] = 'entry-sponsors';
175
+ $sponsor_classes = [ 'entry-sponsors' ];
176
176
  if ( Newspack_Blocks::newspack_display_sponsors_and_authors( $sponsors ) ) {
177
177
  $sponsor_classes[] = 'plus-author';
178
178
  }
@@ -4,4 +4,4 @@
4
4
 
5
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
6
 
7
- return ComposerAutoloaderInited31aaab4ad399c15f9f84cc5fecbd40::getLoader();
7
+ return ComposerAutoloaderInitd86fcc59b21375da8d08e9b62c12e821::getLoader();
@@ -2,7 +2,7 @@
2
2
 
3
3
  // autoload_real.php @generated by Composer
4
4
 
5
- class ComposerAutoloaderInited31aaab4ad399c15f9f84cc5fecbd40
5
+ class ComposerAutoloaderInitd86fcc59b21375da8d08e9b62c12e821
6
6
  {
7
7
  private static $loader;
8
8
 
@@ -22,15 +22,15 @@ class ComposerAutoloaderInited31aaab4ad399c15f9f84cc5fecbd40
22
22
  return self::$loader;
23
23
  }
24
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInited31aaab4ad399c15f9f84cc5fecbd40', 'loadClassLoader'), true, true);
25
+ spl_autoload_register(array('ComposerAutoloaderInitd86fcc59b21375da8d08e9b62c12e821', 'loadClassLoader'), true, true);
26
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
27
- spl_autoload_unregister(array('ComposerAutoloaderInited31aaab4ad399c15f9f84cc5fecbd40', 'loadClassLoader'));
27
+ spl_autoload_unregister(array('ComposerAutoloaderInitd86fcc59b21375da8d08e9b62c12e821', '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\ComposerStaticInited31aaab4ad399c15f9f84cc5fecbd40::getInitializer($loader));
33
+ call_user_func(\Composer\Autoload\ComposerStaticInitd86fcc59b21375da8d08e9b62c12e821::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 ComposerStaticInited31aaab4ad399c15f9f84cc5fecbd40
7
+ class ComposerStaticInitd86fcc59b21375da8d08e9b62c12e821
8
8
  {
9
9
  public static $classMap = array (
10
10
  'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
@@ -13,7 +13,7 @@ class ComposerStaticInited31aaab4ad399c15f9f84cc5fecbd40
13
13
  public static function getInitializer(ClassLoader $loader)
14
14
  {
15
15
  return \Closure::bind(function () use ($loader) {
16
- $loader->classMap = ComposerStaticInited31aaab4ad399c15f9f84cc5fecbd40::$classMap;
16
+ $loader->classMap = ComposerStaticInitd86fcc59b21375da8d08e9b62c12e821::$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' => 'b661cbcc08369bcaf96e7b0073487070973bf76b',
8
+ 'reference' => '43b4e4d711d7497f12c6d698222e5fba807d497c',
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' => 'b661cbcc08369bcaf96e7b0073487070973bf76b',
19
+ 'reference' => '43b4e4d711d7497f12c6d698222e5fba807d497c',
20
20
  'dev_requirement' => false,
21
21
  ),
22
22
  ),