block-visibility

Conditional visibility controls for all WordPress blocks.

GPL-2.0 License

Stars
118

Bot releases are hidden (Show)

block-visibility - Version 2.4.5

Published by ndiego almost 2 years ago

Fixed

  • Fixed bug where text blocks became nearly impossible to edit when visibility controls were applied in WordPress 6.1.
  • Fixed bug where block contextual opacity was applied incorrectly to Cover blocks with overlay enabled.
block-visibility - Version 2.4.4

Published by ndiego about 2 years ago

Changed

  • Simplify REST API requests on the plugin settings page to increase performance and attempt to fix edge case fetch errors.
block-visibility - Version 2.4.3

Published by ndiego about 2 years ago

Fixed

  • Fixed incorrect filter attribute in WP Fusion visibility test. (#24)
block-visibility - Version 2.4.2

Published by ndiego over 2 years ago

Fixed

  • Fixed bug in classic themes that caused Screen Size inline styles to not load as expected.
block-visibility - Version 2.4.1

Published by ndiego over 2 years ago

Changed

  • The Screen Size CSS classes are now added via PHP allowing the control to be used in dynamic blocks.

Fixed

  • Fixed bug where Screen Size inline styles would be printed multiple times.
block-visibility - Version 2.4.0

Published by ndiego over 2 years ago

Added

  • Added contextual block opacity settings.
  • Added information icons to all visibility controls with links to Knowledge Base.
  • Added cookie contextual indicator for Cookie control in Block Visibility Pro.

Changed

  • Removed tip/information modals from Editor. Information icons now direct users to the corresponding Knowledge Base pages.

Fixed

  • Fix indicator color styling in settings.
block-visibility - Version 2.3.1

Published by ndiego over 2 years ago

Fixed

  • Fixed issue with block-based widgets where widget markup would still be rendered even if the block content was not. (#26)
  • Fixed React Select input styling.
  • Fixed styles that were bleeding into the Editor.
  • Fixed linting errors.
block-visibility - Version 2.3.0

Published by ndiego almost 3 years ago

Added

  • Added advanced User Role controls (User Rule Sets).
  • Allow Block Visibility Pro settings to disable local visibility controls.

Changed

  • Moved the default visibility control settings from the "General Settings" tab to the "Visibility Controls" tab.
  • The additional contextual indicator settings are now disabled when indicators are disabled.
  • Rule sets now support a custom rule label.
  • Temporarily remove the "Editor Notices" Block Editor setting since it's no longer relevant. This setting will be evaluated and potentially reintroduced in v2.4.
  • Updated plugin compatibility to WordPress 5.9.

Fixed

  • Fixed issue where Visibility Presets would appear in available control defaults with Block Visibility Pro is enabled.
  • Fixed minor styling issues found in WordPress 5.9 testing.
block-visibility - Version 2.2.0

Published by ndiego almost 3 years ago

Added

  • Added the ability to duplicate schedules and rule sets.
  • Added support for Visibility Presets in Block Visibility Pro.

Changed

  • Visibility controls and tools (reset controls, help, etc.) have been separated into two different dropdown menus to reduce menu length.
  • Managing visibility controls can now be done using the "eye" icon whereas tools are managed using the vertical dots icon.
  • Minor changes to labeling has been done throughout the plugin to improve clarity.

Removed

  • Removed all legacy visibility controls deprecated in version 1.6.0.
  • Removed control reset confirmation modal for a smoother user experience.
  • Removed redundant help/reminder text to simplify user interface.

Note: Tag 2.2.0b includes hotfix for conditional indicator bug.

block-visibility - Version 2.1.2

Published by ndiego about 3 years ago

Changed

  • Updated incompatibility notice for the Screen Size control to include HTML blocks and directed users to a workaround.

Fixed

  • Fixed bug in the Date & Time control where timezones with +30 minute offsets were not handled properly. Thanks @ashleyzwp for discovering this issue and opening a support ticket!
  • Fixed bug in Query String control that caused a test failure when multiple strings using same query parameter were used. Thanks Lucian for discovering this issue and opening a support ticket!
  • Fixed conflict with Sensei (and potentially other third-party plugins) caused by the render_block filter returning null when a block is hidden. An empty string is now returned instead. Thanks Ted for discovering this issue and opening a support ticket!
  • Fixed bug caused by admin scripts being enqueued during DOING_AJAX. Thanks Ted for discovering this issue and opening a support ticket!
block-visibility - Version 2.1.1

Published by ndiego about 3 years ago

Added

  • Added contextual indicator support for the Metadata control in Block Visibility Pro.

Changed

  • Continued extensibility improvements of the control set toolbar menu.
  • Updated plugin logo on settings page.

Fixed

  • Fixed incorrect languages .pot file.
  • Fixed bug in rule set configuration.
block-visibility - Version 2.1.0

Published by ndiego about 3 years ago

Added

  • Added the ability to reset plugin settings and restore defaults from within the admin.
  • The Advanced Custom Fields control can now display blocks based on user fields.

Changed

  • Moved the create_date_time function to its own utility file. This allows for its use across the plugin and Block Visibility Pro.
  • Refactored rule and rule set functionality to provide for greater extensibility.
  • Improve extensibility of the control set toolbar menu for future Pro add-on functionality.

Removed

  • Removed erroneous integration-checks.php file.

Fixed

  • Fixed bug where not all users would be fetched in the User Role control. Thanks @lenehanj for discovering this issue and opening a support ticket!
  • Fixed styling on multi-select components.
  • Fixed z-index on contextual indicators that was causing some unwanted overlapping.
block-visibility - Version 2.0.0

Published by ndiego about 3 years ago

Added

  • Added the ability to restrict visibility by specific users as part of the User Role control.
  • Added the ability to customize the color of the contextual indicators.
  • Added a "block not compatible" messaging to the Legacy Widget block in WordPress 5.8, since the block does not support custom attributes.
  • Added Block Visibility Pro ad to settings pages to inform users about the Pro add-on.
  • Added a direct link to the plugin Knowledge Base in the plugin settings masthead.

Changed

  • Changed how the WP Fusion control logic works to be more intuitive. Now all tag conditions need to be true for the block to be visible. In v1.9.1 and lower, the conditions operated independently. Thanks @marlonsabala for bringing this to our attention!
  • Changed the contextual indicator styling (again) to improve the UI/UX. Color now defaults to the set --wp-admin-theme-color and indicators have been moved to the ::after pseudo element for improved block compatibility.
  • Changed the control toolbar styling to match the upcoming dimensions panel UI in Gutenberg.

Removed

  • Removed custom icon font for contextual indicators. Reverting back to SVG icons now that we have a more optimize approach.
  • Removed the "Getting Started" tab in the plugin settings and directed all help links to the Block Visibility website and WordPress.org support forum.
  • Removed the review and support popup on the plugin settings pages.

Fixed

  • Fixed error introduced in WordPress 5.8 on the block-based Widgets screen by removing the wp-edit-post dependency from the plugin.
  • Fixed spelling errors in plugin settings. Thanks @paaljoachim!
  • Fixed display logic in the Date & Time control when a single schedule was disabled, but others were enabled.
  • Fixed display logic in the ACF control when a single rule set was disabled, but others were enabled.
block-visibility - Version 1.9.1

Published by ndiego over 3 years ago

Added

  • Added preliminary support for Block Visibility (and Pro) on the new block-based Widgets screen, the new Widget pane in the customizer, and the experimental Navigation screens added by Gutenberg.

Fixed

  • Fixed bug where a Block Editor critical error would sporadically occur for certain admin users when switching from Fullscreen in the Block Editor. Thanks @gsarig for discovering this issue and opening a support ticket!
  • Fixed PHP error that would occasionally occur when a previously set ACF field was deleted from the user's website.
  • Fixed bug where contextual indicator style sheet was loading on incorrect admin pages.
block-visibility - Version 1.9.0

Published by ndiego over 3 years ago

Added

  • Added support for Block Visibility Pro.
  • Added rule set functionality to the ACF control. This allows you to create OR conditions within the ACF control.
  • Added "rule set" and "rule" architecture.
  • Added notice regarding compatibility issues with the Screen Size control and the Shortcode Block, plus links to a workaround in the Knowledge Base.
  • Added additional Slots for integrating new visibility controls.

Changed

  • Replaced many Popover components in the block editor with Modal components for improved UI.
  • Replaced most other Button/Popover components with DropdownMenu components for improved UI.
  • The "Remove" schedule button is now an trashcan icon in the Schedule toolbar to be consistent with Block Visibility Pro.
  • Plugin settings tabs are now directly navigable based on URL query parameter.
  • Controls are now alphabetically ordered in the control selectors.
  • Screen size control CSS is now conditionally loaded only when there are actually blocks using these settings.
  • Contextual indicators are now powered by a custom icon font to improve performance and decrease file size.
  • Minor UI enhancements throughout.

Removed

  • Removed the dummy frontend.css file which was used for the screen size control and required an extra file to be loaded. An alternative implementation is now used.

Fixed

  • Fixed error were editing the visibility of a duplicated block would also edit the original block. Thanks @mmcginnis for discovering this issue and opening a support ticket!
  • Fixed unnecessary re-renders and loss of focus for slotted components by relocating withFilter HOCs outside of all render functions.
  • Fixed error in the Date & Time frontend test.
  • Fixed labels on the Query String control that were previously not translatable.
  • Fixed incorrect links to the plugin Knowledge Base.

v1.9.0d tag includes fix for missing language file, fixes the ACF notice, and hotfix for font rendering issue in Safari.

block-visibility - Version 1.8.0

Published by ndiego over 3 years ago

Added

  • Added the Advanced Custom Field control, the second third-party integration for Block Visibility! ๐ŸŽ‰
  • Added functionality for multiple Date & Time schedules. ๐ŸŽ‰
  • Added the ability "invert" the Date & Time control per-block. By default, this control allows you to show the selected block if at least one schedule applies. You can now optionally hide the block if at least one schedule applies!
  • Added the ability to set default visibility controls.
  • Added the ability to easily reset the visibility controls on each block.

Changed

  • Updated control set controls toggle icon to be more consistent with WP core.
  • Updated popover styling to be more consistent with WP core.

Removed

  • Removed the enable_scheduling setting. Users can now easily toggle visibility controls at the block level so this setting is not longer needed. The entire Date & Time control can still be enabled/disabled in the Visibility Control settings.
  • Removed conditional indicator support for the startDateTime and endDateTime properties that were deprecated in version 1.4.1. Frontend visibility tests for these properties are still operational, but will likely be removed in version 2.0.

Fixed

  • Fixed WP Fusion filters to improve the integration.
block-visibility - Version 1.7.1

Published by ndiego over 3 years ago

Fixed

  • Fixed error in the plugin variables REST API route that caused the settings page not to load if WP Debug was enabled. Thanks @gsarig for discovering this issue and opening a support ticket!
block-visibility - Version 1.7.0

Published by ndiego over 3 years ago

Added

  • Added the WP Fusion control, the first third-party integration for Block Visibility! ๐ŸŽ‰
  • Added the Query String control, significantly increasing the marketing capabilities of Block Visibility! ๐ŸŽ‰
  • Added react-select as a project dependency for all multi-select fields.

Changed

  • Updated control set UI when multiple controls are enabled to emphasize that all control conditions need to be satisfied for the block to be visible.
  • The "Restricted User Roles" setting now uses react-select for a cleaner user interface.
  • Updated contextual indicator icons. A generic indicator is now displayed when more than 2 controls are enabled.

Fixed

  • Fixed issue where blocks that should have been hidden by enabled visibility controls were appearing in REST API requests. This allowed sophisticated users to "see" content that was not intended for them via a public endpoint, i.e. wp-json/wp/v2/.... This is now fixed. Thanks @tkraftner for reporting this.
  • Fixed issue where the REST API url was not being fetched correctly in the plugin settings for WP installations that had prefixed, or "relocated", the REST API. Thanks Mike for reporting this issue.
  • Fix minor error due to missing attribute schema.
block-visibility - Version 1.6.0

Published by ndiego over 3 years ago

Added

  • New UI allows users to toggle on and off the available visibility controls at the block level, making for a cleaner interface.
  • New "control sets" attribute structure which improves the scalability of the plugin and allows nearly unlimited new features/functionality in the future.

Changed

  • Updated all visibility frontend tests to respect new "control sets" attribute structure while maintaining backwards compatibility.
  • Updated all editor conditional indicators to respect new "control sets" attribute structure while maintaining backwards compatibility.

Removed

  • Removed the obtrusive "Customize controls" admin notice in the editor in favor of a dismissible one-time "Quick tips" popup for new users.
  • Removed verbose attribute specification in the main plugin class for compatibility with blocks rendered server-side. This is no longer needed.
  • hide-control-section.js and corresponding function are no longer needed.
block-visibility - Version 1.5.3

Published by ndiego over 3 years ago

Fixed

  • Fixed PHP error triggered by missing hideBlock attribute setting. (Thanks @muppix for discovering this issue and opening a support ticket!)