@automattic/newspack-blocks 1.56.0-alpha.3 → 1.56.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.
- package/.cache/babel/61adfc654653cccf682bfdc461433858.json.gz +0 -0
- package/CHANGELOG.md +7 -0
- package/dist/donateStreamlined.asset.php +1 -1
- package/newspack-blocks.php +2 -2
- package/package.json +1 -1
- package/src/blocks/donate/streamlined/utils.ts +2 -4
- package/src/blocks/donate/view.php +1 -0
- 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/114a990440378f426c043ed8bab570ae.json.gz +0 -0
|
Binary file
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [1.56.0-alpha.4](https://github.com/Automattic/newspack-blocks/compare/v1.56.0-alpha.3...v1.56.0-alpha.4) (2022-08-12)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* merge conflicts and force new build again ([b9020c6](https://github.com/Automattic/newspack-blocks/commit/b9020c67eff7bf09af7b10117b33b34592501356))
|
|
7
|
+
|
|
1
8
|
# [1.56.0-alpha.3](https://github.com/Automattic/newspack-blocks/compare/v1.56.0-alpha.2...v1.56.0-alpha.3) (2022-08-12)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<?php return array('dependencies' => array('wp-i18n', 'wp-polyfill'), 'version' => '
|
|
1
|
+
<?php return array('dependencies' => array('wp-i18n', 'wp-polyfill'), 'version' => '04c7a17c732b43e79f651e279acbe729');
|
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.56.0-alpha.
|
|
10
|
+
* Version: 1.56.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', '1.56.0-alpha.
|
|
18
|
+
define( 'NEWSPACK_BLOCKS__VERSION', '1.56.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
|
@@ -43,10 +43,8 @@ export const renderMessages = (
|
|
|
43
43
|
el.appendChild( messageEl );
|
|
44
44
|
} );
|
|
45
45
|
|
|
46
|
-
if ( 'success' === type ) {
|
|
47
|
-
|
|
48
|
-
el.parentElement.replaceWith( el );
|
|
49
|
-
}
|
|
46
|
+
if ( 'success' === type && el.parentElement ) {
|
|
47
|
+
el.parentElement.replaceWith( el );
|
|
50
48
|
}
|
|
51
49
|
};
|
|
52
50
|
|
|
@@ -318,6 +318,7 @@ function newspack_blocks_render_block_donate( $attributes ) {
|
|
|
318
318
|
$stripe_data['fee_multiplier'],
|
|
319
319
|
$stripe_data['fee_static'],
|
|
320
320
|
$stripe_data['usedPublishableKey'],
|
|
321
|
+
$attributes['paymentRequestType'],
|
|
321
322
|
\Newspack\Stripe_Connection::can_use_captcha() ? $stripe_data['captchaSiteKey'] : null,
|
|
322
323
|
];
|
|
323
324
|
} else {
|
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 ComposerAutoloaderInitcebe59cc26acc0c30ed777ac88666858
|
|
6
6
|
{
|
|
7
7
|
private static $loader;
|
|
8
8
|
|
|
@@ -22,15 +22,15 @@ class ComposerAutoloaderInit46bd4152e4fd301ba5256bb16f4c9423
|
|
|
22
22
|
return self::$loader;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
spl_autoload_register(array('
|
|
25
|
+
spl_autoload_register(array('ComposerAutoloaderInitcebe59cc26acc0c30ed777ac88666858', '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('ComposerAutoloaderInitcebe59cc26acc0c30ed777ac88666858', '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\ComposerStaticInitcebe59cc26acc0c30ed777ac88666858::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 ComposerStaticInitcebe59cc26acc0c30ed777ac88666858
|
|
8
8
|
{
|
|
9
9
|
public static $classMap = array (
|
|
10
10
|
'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
|
|
@@ -13,7 +13,7 @@ class ComposerStaticInit46bd4152e4fd301ba5256bb16f4c9423
|
|
|
13
13
|
public static function getInitializer(ClassLoader $loader)
|
|
14
14
|
{
|
|
15
15
|
return \Closure::bind(function () use ($loader) {
|
|
16
|
-
$loader->classMap =
|
|
16
|
+
$loader->classMap = ComposerStaticInitcebe59cc26acc0c30ed777ac88666858::$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' => 'b9020c67eff7bf09af7b10117b33b34592501356',
|
|
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' => 'b9020c67eff7bf09af7b10117b33b34592501356',
|
|
20
20
|
'dev_requirement' => false,
|
|
21
21
|
),
|
|
22
22
|
),
|
|
Binary file
|