diff --git a/CHANGELOG.md b/CHANGELOG.md index 51d1a7242..314e43095 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +##### [Version 3.11.3](https://github.com/Codeinwp/visualizer/compare/v3.11.2...v3.11.3) (2024-05-27) + +- Fixed the rendering of Visualizer widgets in the Customizer + ##### [Version 3.11.2](https://github.com/Codeinwp/visualizer/compare/v3.11.1...v3.11.2) (2024-05-23) - Fixed Visualizer block widget not loading diff --git a/classes/Visualizer/Module/Admin.php b/classes/Visualizer/Module/Admin.php index 614f829f0..252f46d85 100644 --- a/classes/Visualizer/Module/Admin.php +++ b/classes/Visualizer/Module/Admin.php @@ -333,7 +333,7 @@ public function enqueueMediaScripts() { global $typenow; global $current_screen; - if ( post_type_supports( $typenow, 'editor' ) || $current_screen->id === 'widgets' ) { + if ( post_type_supports( $typenow, 'editor' ) || $current_screen->id === 'widgets' || $current_screen->id === 'customize' ) { wp_enqueue_style( 'visualizer-media', VISUALIZER_ABSURL . 'css/media.css', array( 'media-views' ), Visualizer_Plugin::VERSION ); // Load all the assets for the different libraries we support. diff --git a/classes/Visualizer/Plugin.php b/classes/Visualizer/Plugin.php index af9ab7a30..207a2870d 100644 --- a/classes/Visualizer/Plugin.php +++ b/classes/Visualizer/Plugin.php @@ -28,7 +28,7 @@ class Visualizer_Plugin { const NAME = 'visualizer'; - const VERSION = '3.11.2'; + const VERSION = '3.11.3'; // custom post types const CPT_VISUALIZER = 'visualizer'; diff --git a/css/media.css b/css/media.css index 806f2dedb..c69ad4b1a 100644 --- a/css/media.css +++ b/css/media.css @@ -1,5 +1,5 @@ /* - Version: 3.11.2 + Version: 3.11.3 */ #visualizer-library-view { padding: 30px 10px 10px 30px; diff --git a/index.php b/index.php index cf5750c1b..67ffa6df2 100644 --- a/index.php +++ b/index.php @@ -3,7 +3,7 @@ Plugin Name: Visualizer: Tables and Charts for WordPress Plugin URI: https://themeisle.com/plugins/visualizer-charts-and-graphs/ Description: Effortlessly create and embed responsive charts and tables with Visualizer, a powerful WordPress plugin that enhances data presentation from multiple sources. - Version: 3.11.2 + Version: 3.11.3 Author: Themeisle Author URI: http://themeisle.com Requires at least: 5.2 diff --git a/package.json b/package.json index 71ae10712..0b4fc948d 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "visualizer", - "version": "3.11.2", + "version": "3.11.3", "description": "Visualizer Lite", "repository": { "type": "git", diff --git a/readme.txt b/readme.txt index e782ee453..6f545e653 100755 --- a/readme.txt +++ b/readme.txt @@ -226,6 +226,13 @@ Pay attention that to turn your shortcodes into graphs, your theme has to have ` == Changelog == +##### [Version 3.11.3](https://github.com/Codeinwp/visualizer/compare/v3.11.2...v3.11.3) (2024-05-27) + +- Fixed the rendering of Visualizer widgets in the Customizer + + + + ##### [Version 3.11.2](https://github.com/Codeinwp/visualizer/compare/v3.11.1...v3.11.2) (2024-05-23) - Fixed Visualizer block widget not loading diff --git a/tests/e2e/specs/gutenberg-editor.spec.js b/tests/e2e/specs/gutenberg-editor.spec.js index 5da67cae7..dfd92f6c1 100644 --- a/tests/e2e/specs/gutenberg-editor.spec.js +++ b/tests/e2e/specs/gutenberg-editor.spec.js @@ -148,4 +148,22 @@ test.describe( 'Charts with Gutenberg Editor', () => { await expect(page.locator('rect').first()).toBeVisible(); } ); + + test( 'check widgets in the Customizer', async ( { admin, editor, page } ) => { + await createChartWithAdmin( admin, page ); + + await admin.visitAdminPage( 'customize.php' ); + + await page.getByRole('heading', { name: 'Widgets' }).click(); + await page.getByRole('heading', { name: 'Footer' }).click(); + await page.getByRole('button', { name: 'Got it' }).click(); + await page.getByLabel('Document tools').getByLabel('Add block').click(); + await page.getByPlaceholder('Search', { exact: true }).fill('visualizer'); + await page.getByRole('option', { name: ' Visualizer Chart' }).click(); + await page.getByText('Display an existing chart').click(); + await page.locator('.visualizer-settings__charts-controls').first().click(); + await expect(page.getByLabel('Block: Visualizer Chart')).toContainText('Visualizer'); + await expect(page.locator('rect').first()).toBeVisible(); + + } ); } );