@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.
- package/.cache/babel/6d58c3cff70fc3403def6dc49787b3fe.json.gz +0 -0
- package/.cache/babel/9b4ddedacf987769a9fe17e8aa8aa4cd.json.gz +0 -0
- package/CHANGELOG.md +16 -0
- package/composer.json +4 -1
- package/composer.lock +646 -530
- package/dist/donateStreamlined.asset.php +1 -1
- package/dist/donateStreamlined.js +1 -1
- package/dist/editor.asset.php +1 -1
- package/dist/editor.js +1 -1
- package/newspack-blocks.php +2 -2
- package/package.json +2 -2
- package/src/blocks/carousel/edit.js +17 -18
- package/src/blocks/carousel/view.php +1 -1
- package/src/blocks/homepage-articles/edit.js +12 -12
- package/src/blocks/homepage-articles/templates/article.php +1 -1
- package/vendor/autoload.php +1 -1
- package/vendor/composer/autoload_real.php +4 -4
- package/vendor/composer/autoload_static.php +2 -2
- package/vendor/composer/installed.php +2 -2
- package/.cache/babel/129b3b3260716b8eb972ac38a3e08f42.json.gz +0 -0
- package/.cache/babel/94ee8f45c55ecf01005a435ab588333b.json.gz +0 -0
package/newspack-blocks.php
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
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 ||
|
|
289
|
-
0 < post.newspack_category_info.length &&
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
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
|
-
|
|
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
|
|
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 ||
|
|
175
|
-
0 < post.newspack_category_info.length &&
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
{ post.newspack_post_sponsors
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
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
|
-
|
|
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
|
|
175
|
+
$sponsor_classes = [ 'entry-sponsors' ];
|
|
176
176
|
if ( Newspack_Blocks::newspack_display_sponsors_and_authors( $sponsors ) ) {
|
|
177
177
|
$sponsor_classes[] = 'plus-author';
|
|
178
178
|
}
|
package/vendor/autoload.php
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
// autoload_real.php @generated by Composer
|
|
4
4
|
|
|
5
|
-
class
|
|
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('
|
|
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('
|
|
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\
|
|
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
|
|
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 =
|
|
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' => '
|
|
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' => '
|
|
19
|
+
'reference' => '43b4e4d711d7497f12c6d698222e5fba807d497c',
|
|
20
20
|
'dev_requirement' => false,
|
|
21
21
|
),
|
|
22
22
|
),
|
|
Binary file
|
|
Binary file
|