# Changelog ## 1.6.7 - 2025-12-29 * **Styles** * Container's video background issue fixed ## 1.6.6 - 2025-12-09 * **Security** * Sanitized SVG file content with enshrined\svgSanitize\Sanitizer library * Enhanced Performance * **Fixed** * Fixed SVG file sanitization ## 1.6.5 - 2025-12-04 ### Added * **Performance Optimizations** * Transient caching system for block metadata (24-hour expiry) * Transient caching for initial block styles with content-based keys * Script deferring for non-critical JavaScript (op-common-js, omnipress-block-editor-js) * Preconnect resource hint for FontAwesome CDN * Smart cache invalidation on post save * **Documentation** * Comprehensive JSDoc documentation for content switcher JavaScript * Enhanced PHPDoc comments across codebase ### Changed * **Block Architecture** * Centralized asset management in BlockAssetsManager.php * Refactored BlockStylesHelper.php into modular, single-responsibility methods * Deprecated asset-related functions in Block.php (with _doing_it_wrong notices) * **SCSS Modernization** * Migrated from @import to @use syntax * Replaced deprecated darken() with color.adjust() from sass:color module * Complete rewrite of content-switcher.scss with design system variables * **Content Switcher Block** * Enhanced JavaScript with improved state management * Modern styling with smooth transitions and animations * Improved accessibility with focus-visible states ### Fixed * **Critical Bugs** * Fatal TypeError in BlockRegistrar.php when manifest files don't exist * PHP 7.4 parse errors caused by PHP 8.0 match expressions * filemtime() warnings for non-existent CSS files * Content switcher toggle not working in frontend and editor * CSS selector scoping issues in ContentSwitcher.php * **Performance** * Eliminated redundant file reads of all-blocks-json.json * Optimized runtime CSS generation with caching * Improved script loading order and deferring * **SCSS** * Fixed all Sass compilation deprecation warnings * Corrected variable references in _utilities.scss ### Security * **[CRITICAL]** Added SVG file sanitization in FileUploader.php to prevent XSS attacks * **[CRITICAL]** Added current_user_can() capability checks in file upload functionality * Added esc_attr() sanitization in ContentSwitcher.php * Enhanced input validation for uploaded files * Improved file existence checks before operations ### Deprecated * Block::enqueue_block_editor_assets() - Use BlockAssetsManager instead * Block::enqueue_block_assets() - Use BlockAssetsManager instead * Block::enqueue_block_styles() - Use BlockAssetsManager instead * Block::enqueue_common_scripts() - Use BlockAssetsManager instead * Block::enqueue_common_styles() - Use BlockAssetsManager instead * Block::enqueue_block_scripts() - Use BlockAssetsManager instead ### Technical Improvements * PHP 7.4 compatibility ensured (removed typed properties and PHP 8+ syntax) * Modular code design with focused, testable functions * Graceful error handling when files are missing * ~30% faster CSS generation through caching * Reduced database queries with transient caching ## 1.6.4 - 2025-05-26 ### Added * **Remote Slider Blocks** * New Remote Slider Container block for flexible and dynamic slider layouts * Remote Slider Slides block to easily manage individual slides inside the container * Navigation blocks (Previous/Next) for easy slider control * Remote Slider Pagination block to show current slide status * Multiple presets support for each Remote Slider block * **Image Accordion Blocks** * Image Accordions block for creating interactive image-based sections * Image Accordion Item block to be used inside the main Image Accordions block * **Frontend Functionality** * Active class toggler function in assets/js/frontend.js for dynamic styling based on block state or user interaction ### Fixed * **Gallery Block** * Fixed several bugs to improve performance and stability * Enhanced features for better user experience * Fixed issue where image changes were not reflected immediately in the editor ### Changed * **Layout and Styling** * Removed default `height: 100%` from container inner columns wrapper to fix layout issues, especially with column direction * **Default Effects** * Removed default zoom-in effect from Image and Gallery blocks for cleaner appearance ### Removed * **Deprecated/Experimental Blocks** * Image Accordion (standalone) * Synced Slider * Synced Slider Child * Synced Slider Thumb ## 1.6.3 - 2025-05-13 ### Added * Hover Effect for Image block * Gallery block [PRO] ### Fixed * WordPress Interactivity API compatibility * Enhanced block styles * Minor issues related to various blocks * Container overlay covering its content * Spacing CSS not generating correctly ## 1.6.2 - 2025-05-01 ### Fixed * Minor bugs related to various blocks and settings * Enhanced demo import process ## 1.6.1 - 2025-04-16 ### Added * **New Blocks** * Testimonial * Back to Top * Progress Bar [PRO] * Image Comparison [PRO] * Flip Box [PRO] * Tooltip * **New Settings** * Site preloader and page transition effects * Custom fields for any post types ### Fixed * Minor bugs ## 1.6.0 - 2025-04-02 ### Added * Coming soon and maintenance mode feature * New block for displaying any types of taxonomies [PRO] ## 1.5.6 - 2025-03-12 ### Added * **New Features** * Scroll Trigger setting for enhanced interactivity * Glassmorphism effect for modern, translucent aesthetics * Enhanced Conditional Display with more flexible options ### Fixed * **Mega Menu Block**: Resolved issue with accessing protected posts on frontend * Various minor bugs and inconsistencies across multiple blocks ### Improved * Block settings panels and user interface * Performance optimizations and code enhancements * WordPress compatibility * Updated documentation ## 1.5.4 ### Added * Keyboard shortcuts to copy and paste block styles * Keyboard shortcuts to insert blocks inside container block * Reset settings for spacing, border, and more ### Fixed * Heading Block crashes ### Improved * Settings UI enhancement ## 1.5.3 ### Fixed * Site crashes after updating to version 1.5.2 ## 1.5.2 ### Added * **New Blocks** * Block Quick Access Sidebar * Advanced Product Search * Related Product (single product showcase) * Product Grid 2 * Product Filter ### Fixed * Various minor issues with Advanced Query block and Post Grid block ### Improved * Advanced Query Block compatibility with single product block and product filter block ## 1.5.1 ### Fixed * Global components not functioning as expected in editor * Blocks appearing unstyled on initial page render after demo imports * WordPress 6.7 compatibility notice regarding `_load_textdomain_just_in_time` ### Added * Warning prompt before major plugin updates ## 1.5.0 ### Added * **New Features** * Copy and paste block styles * Global reusable component for each block [Beta] * Content Switcher block * WooCommerce category and product category with enhanced settings * **New Blocks** * Advanced Query block [Premium] ### Improved * Tabs block - easier and more stable in editor * Slide block with additional settings ### Breaking Changes * Icon block changes (see documentation for migration details) ### Fixed * Various minor issues ## 1.4.3 ### Fixed * Minor issues resolved ## 1.4.2 ### Added * **Image Block Enhancements** * Resize handler * Link and lightbox options * Advanced Query block [Premium] * Dynamic query block for Advanced Query Loop block * Admin notices for license activation, required plugin installations, and database updates ### Fixed * Undefined blockId warning in Post Grid block * Premium notice now properly hides after license activation ## 1.4.1 ### Added * Redesigned Settings page UI * Premium features showcase * Enhanced block compatibility with previous demos and patterns ### Fixed * Minor issues affecting blocks ## 1.4.0 ### Added * **New Features** * Blocks Enable/Disable functionality * Container Default Settings Controller * Custom Scripts and Styling Support [Premium] * Block Settings Editing Permission Control [Premium] * Dynamic Fields Support [Premium] * Animation Settings [Premium] * **New Blocks** * Contact Form (Contact Form 7 integration) ### Fixed * Minor issues related to blocks ### Improved * Updated Settings page UI * Re-arranged block settings for better usability * Added typography hover and active state styling ## 1.3.3 ### Improved * Enhanced block settings * Minor bug fixes ## 1.3.2 ### Fixed * Minor bug fixes ## 1.3.1 ### Fixed * Minor issues affecting various blocks for enhanced stability * Performance enhancements and optimized code ### Compatibility * Tested with WordPress 6.5 ## 1.3.0 ### Added * **New Blocks** * Google Maps * Image * Video * Paragraph * Accordion * Counter * Icon Box * Post Grid * Products List * Product Categories List ### Improved * Updated block icons * Enhanced Settings UI * Reorganized plugin structure for better management ### Fixed * Minor issues with various blocks ### Compatibility * Tested with WordPress 6.5 ## 1.2.2 ### Improved * Updated missing block icons * Enhanced demo import functionality ### Fixed * Minor issues with various blocks ## 1.2.1 ### Added * **New Blocks** * Tabs ### Breaking Changes * **Slider Update**: Previous slider version has undergone significant changes and may experience issues after updating ### Fixed * Minor issues with various blocks ## 1.2.0 ### Added * **New Blocks** * Dual Buttons * Button * Icons * Mega Menu * Product Category * Products Carousel * Products Category * Container * Countdown * Support for variety of fonts * Custom templates for Mega Menu block content rendering ### Fixed * Minor bug fixes for improved stability and performance ## 1.1.5 ### Fixed * CSS issue in custom post types * Demo import minor issues ## 1.1.4 ### Fixed * Minor issue with slider ## 1.1.3 ### Fixed * Minor issue with Entire Demo Importer * Minor issues with slider blocks ## 1.1.2 ### Added * **New Blocks** * Heading * Slider * Custom CSS * Team ### Fixed * Bug related to demos and patterns UI * Code optimizations ## 1.1.1 ### Fixed * Minor issue with demo data import ## 1.1.0 ### Added * Support for patterns and demos list * Patterns and demos library support from editor pages ### Improved * Restructured plugin structure * Overall plugin redesign ### Compatibility * Tested with WordPress 6.2 ## 1.0.1 ### Fixed * Minor issues ### Compatibility * Tested with WordPress 6.1 ## 1.0.0 * Initial release