Skip to content

Commit

Permalink
Released Spectra 2.15.3
Browse files Browse the repository at this point in the history
  • Loading branch information
bsf-zanev committed Sep 18, 2024
2 parents 4b190d3 + 50cfbe2 commit fe18619
Show file tree
Hide file tree
Showing 30 changed files with 450 additions and 7,302 deletions.
11 changes: 10 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,14 @@ module.exports = function ( grunt ) {
files: ICONS_PHP_FILE_CHUNKS,
},
},

rename: {
main: {
files: [
{src: ['dist/blocks.js'], dest: 'dist/blocks.min.js'}
]
}
}
} );

/* Load Tasks */
Expand All @@ -274,6 +282,7 @@ module.exports = function ( grunt ) {
grunt.loadNpmTasks( 'grunt-contrib-clean' );
grunt.loadNpmTasks( 'grunt-contrib-cssmin' );
grunt.loadNpmTasks( 'grunt-contrib-uglify' );
grunt.loadNpmTasks( 'grunt-contrib-rename' );

grunt.loadNpmTasks( 'grunt-wp-i18n' );

Expand Down Expand Up @@ -561,7 +570,7 @@ module.exports = function ( grunt ) {
// rtlcss, you will still need to install ruby and sass on your system manually to run this
grunt.registerTask( 'rtl', ['rtlcss'] );

grunt.registerTask( 'minify', [ 'rtlcss', 'cssmin', 'uglify' ] );
grunt.registerTask( 'minify', [ 'rtlcss', 'cssmin', 'uglify', 'rename' ] );

grunt.registerTask( 'font-awesome-php-array-update', [ 'json2php', 'clean-icon-svg-json-file' ] );
};
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
**Requires at least:** 5.6
**Requires PHP:** 7.4
**Tested up to:** 6.6
**Stable tag:** 2.15.2
**Stable tag:** 2.15.3
**License:** GPLv2 or later
**License URI:** https://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -215,6 +215,10 @@ Our external packages use [Rating Star Component](https://github.com/n49/react-s

## Changelog ##

### 2.15.3 - Wednesday, 18th September 2024 ###
* Fix: Global - Resolved an issue causing the editor to freeze when the Info box and Separator blocks were used in the sync pattern.
* Fix: Global - Resolved an issue wherein the Design Library would alter the appearance List and Heading blocks in the editor.

### 2.15.2 - Thursday, 29th August 2024 ###
* Improvement: Container - Added a children-width option for flex columns.
* Fix: Container - Resolved an issue wherein the "Children Width" option would not work as intended.
Expand Down
5 changes: 3 additions & 2 deletions classes/class-uagb-init-blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ public function editor_assets() {

$uagb_ajax_nonce = wp_create_nonce( 'uagb_ajax_nonce' );

$script_dep_path = UAGB_DIR . 'dist/blocks.asset.php';
$script_dep_path = UAGB_DIR . 'dist/blocks.min.asset.php';
$script_info = file_exists( $script_dep_path )
? include $script_dep_path
: array(
Expand All @@ -629,9 +629,10 @@ public function editor_assets() {
wp_enqueue_style( 'wp-codemirror' );

// Scripts.
$blocks_script = file_exists( UAGB_DIR . 'dist/blocks.min.js' ) ? 'blocks.min.js' : 'blocks.js';
wp_enqueue_script(
'uagb-block-editor-js', // Handle.
UAGB_URL . 'dist/blocks.js',
UAGB_URL . 'dist/' . $blocks_script,
$script_dep, // Dependencies, defined above.
$script_info['version'], // UAGB_VER.
true // Enqueue the script in the footer.
Expand Down
2 changes: 1 addition & 1 deletion classes/class-uagb-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function define_constants() {
define( 'UAGB_BASE', plugin_basename( UAGB_FILE ) );
define( 'UAGB_DIR', plugin_dir_path( UAGB_FILE ) );
define( 'UAGB_URL', plugins_url( '/', UAGB_FILE ) );
define( 'UAGB_VER', '2.15.2' );
define( 'UAGB_VER', '2.15.3' );
define( 'UAGB_MODULES_DIR', UAGB_DIR . 'modules/' );
define( 'UAGB_MODULES_URL', UAGB_URL . 'modules/' );
define( 'UAGB_SLUG', 'spectra' );
Expand Down
12 changes: 6 additions & 6 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/blocks.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-dom-ready', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-url'), 'version' => '96c912952c67e63e75b1c9b2d6eddad0');
<?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-dom-ready', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-url'), 'version' => 'a7b5437c3e9e2d88cad0086c27177f62');
4 changes: 2 additions & 2 deletions dist/blocks.js → dist/blocks.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions includes/blocks/separator/attributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
'separatorSizeTablet' => 5,
'separatorSizeMobile' => 5,
'separatorSizeType' => 'px',
'separatorHeight' => 10,
'separatorHeightMobile' => 10,
'separatorHeightTablet' => 10,
'separatorHeight' => '',
'separatorHeightMobile' => '',
'separatorHeightTablet' => '',
'separatorHeightType' => 'px',
'separatorColor' => '',
'elementType' => 'none',
Expand Down
Loading

0 comments on commit fe18619

Please sign in to comment.