airfleet/airfleet-elements-announcements-plugin

Project releases

airfleet-elements-announcements-plugin

Release 3.4.1

Scroll trigger now fires immediately on page refresh if the threshold is already met.

GitHub
View full changelog

Fixed

  • Fixed scroll trigger not firing on page refresh when already scrolled past the configured offset. Added an initial scroll position check on initialization so the trigger fires immediately if the threshold is already met.
airfleet-elements-announcements-plugin

Release 3.4.0

Added a disable page scroll option and fixed the announcement bar's positioning and empty block message.

GitHub
View full changelog

Added

  • Added Disable Page Scroll to elements-components-announcement-overlay

Fixed

  • Remove "Block is empty" message when elements-blocks-announcement-bar block has content.
  • Fixed: Announcments position bottom was set to page bottom
airfleet-elements-announcements-plugin

Release 3.3.1

Fixed responsive settings not taking effect on announcement bar blocks.

GitHub
View full changelog

Fixed

  • Fixed block-level responsive settings not taking effect on announcement bar blocks. Block templates now pass data to the partial via $_merge_attrs() so responsive display classes from AddResponsiveToBlocks flow to the partial. Applies to elements-blocks-announcement-bar, elements-blocks-announcement-bar-with-form, elements-blocks-announcement-bar-v2, and elements-blocks-announcement-bar-with-form-v2.
airfleet-elements-announcements-plugin

Release 3.3.0

Updated Tagline design to match the latest announcement popup designs.

GitHub
View full changelog

Changed

  • Updated Tagline design per the latest designs for elements-blocks-announcement-popup-v2 and elements-blocks-announcement-popup-with-form-v2
airfleet-elements-announcements-plugin

Release 3.2.0

Adds a custom announcement bar close event and improves layout consistency for stacked bars.

GitHub
View full changelog

Added

  • Added dispatching of a custom airfleet-announcement-bar-close event when an announcement is closed. This enables external tracking or response to user interactions with announcement bars.

Changed

  • Improved layout logic for stacked announcement bars. Sticky bars no longer affect the vertical offset of other bars, ensuring more consistent positioning behavior.
airfleet-elements-announcements-plugin

Release 3.1.0

Added configurable options for CTA selectors and form submission, including auto-close on submit.

GitHub
View full changelog

Added

  • Added configurable options for CTA selectors and form submission, including auto-close on form submit with delay.
airfleet-elements-announcements-plugin

Release 3.0.1

Fixed a Lottie JavaScript error when using InnerBlocks with custom classes.

GitHub
View full changelog

Fixed

  • Fixed: Lottie javascript error when using <InnerBlocks /> with custom classes.
airfleet-elements-announcements-plugin

Release 3.0.0

Added Airfleet Framework plugin dependency and switched package manager to Bun.

GitHub
View full changelog

Changed

  • Breaking: Added new dependency - Airfleet Framework plugin - and removed scoped framework composer package
  • Added plugin dependencies in main plugin file (Requires Plugins metadata field)
  • Internal: Increased Node.js version requirement to >=24
  • Internal: Bump npm dependency @airfleet/wordpress-dev to ^4.0.0
  • Internal: Bump composer dependency airfleet/wordpress-dev to ^4.0.0
  • Internal: Switched package manager to Bun
  • Internal: Updated linters and development tools
  • Internal: Updated configuration for development tools
  • Internal: Moved configuration sections from package.json to dedicated config files
  • Internal: Updated browserslist configuration
  • Internal: Updated package.json scripts to use Airfleet CLI
  • Internal: Updated README.md to remove Getting Started and Documentation sections
  • Internal: Updated Plugin URI metadata field in main plugin file
  • Internal: Updated GitHub workflows
  • Internal: Added .airfleet-license and .airfleet-visible
airfleet-elements-announcements-plugin

Release 2.7.2

Fixed missing style selectors for announcement bar and popup blocks.

GitHub
View full changelog

Fixed

  • Fixed missing style selector on elements-blocks-announcement-bar and elements-blocks-announcement-popup blocks
airfleet-elements-announcements-plugin

Release 2.7.1

Fixed an issue where the block overlay was unresponsive on mobile when minimized.

GitHub
View full changelog

Fixed

  • Fixed a bug when the Announcement Shorts block was minimized on mobile which made the block's overlay impossible to interact with other page elements.
airfleet-elements-announcements-plugin

Release 2.7.0

Added custom icon and CTA button support to announcement shorts.

GitHub
View full changelog

Added

  • Added custom icon/logo support in announcement shorts for brand display.
  • Added configurable CTA buttons for user actions at the bottom of shorts.
airfleet-elements-announcements-plugin

Release 2.6.0

Added new announcement blocks and partials with a performant approach.

GitHub
View full changelog

Added

  • Added elements-blocks-announcement-bar-v2 (block to render Announcement Bar with new performant approach)
  • Added elements-blocks-announcement-bar-with-form-v2 (block to render Announcement Bar With Form with new performant approach)
  • Added elements-blocks-announcement-popup-v2 (block to render Announcement Popup with new performant approach)
  • Added elements-blocks-announcement-popup-with-form-v2 (block to render Announcement Popup With Form with new performant approach)
  • Added elements-partials-announcement-bar (common partial for announcement bar blocks)
  • Added elements-partials-announcement-popup (common partial for announcement popup blocks)
  • Added elements-partials-announcement-bar-cta (common partial for announcement bar CTA section)
  • Added elements-partials-announcement-popup-cta (common partial for announcement popup CTA section)
  • Added airfleet/elements/announcement-popup/title/default_tag tagline default tag filter for announcement popup.

Changed

  • elements-blocks-announcement-popup-wrapper: renamed block title to "Announcement Popup Container" for consistency with other block
  • Updated scripts to only load on frontend
  • Bump airfleet/wordpress-framework to 1.18.3
airfleet-elements-announcements-plugin

Release 2.4.3

Added new announcement block and components with navigation controls, mute/unmute functionality, and minimize/expand features.

GitHub
View full changelog

Added

  • Added block elements-blocks-announcement-shorts to display Announcement Video Shorts - short videos with vertical scrolling, navigation controls, and mute/unmute functionality
  • Added component elements-components-announcement-close-trigger-minimizable with minimize/expand functionality and custom expand icon support to replace the standard Close trigger.
  • Added JavaScript events airfleet-announcement-minimize-trigger and airfleet-announcement-expand-trigger for announcement state management
  • Added partial elements-partials-announcement-wrapper it uses elements-components-announcement-close-trigger-minimizable for close component and has bare minimum css. Used to display block elements-blocks-announcement-shorts
  • Added partial elements-partials-announcement-shorts-icon-type-chevron-down for shorts down navigation icon
  • Added partial elements-partials-announcement-shorts-icon-type-chevron-up for shorts up navigation icon
  • Added partial elements-partials-announcement-shorts-icon-type-play for shorts play icon (shown when paused)
  • Added partial elements-partials-announcement-shorts-icon-type-volume-off for shorts unmute button (shown when muted)
  • Added partial elements-partials-announcement-shorts-icon-type-volume-on for shorts mute button (show when sound is playing)

Changed

  • Bump airfleet/wordpress-framework to 1.15.0
  • Bump airfleet/wordpress-dev to 3.8.0
airfleet-elements-announcements-plugin

Release 2.4.2

Added support for YouTube Shorts URLs in the parse_video_id function.

GitHub
View full changelog

Added

  • Added shorts string for parse_video_id function to support YouTube Shorts URLs.
airfleet-elements-announcements-plugin

Release 2.4.1

Added polling fallback mechanism for event handling due to Cookiebot interference

GitHub
View full changelog

Fixed

  • Fixed issue where Cookiebot interferes with the load event in AnnouncementTriggerLoad by adding a polling fallback mechanism to ensure proper event handling
airfleet-elements-announcements-plugin

Release 2.4.0

Moved announcement close icon in popup blocks.

GitHub
View full changelog

Changed

  • Changed the position of announcement-close-trigger close icon for popup based blocks.
airfleet-elements-announcements-plugin

Release 2.3.0

Added support for announcement popup and reusable block rendering.

GitHub
View full changelog

Added

  • Added block elements-blocks-announcement-popup-wrapper to display Announcement Popup with any of the existing populated blocks from Patterns or <InnerBlocks />.
  • Added component elements-components-announcement-reusable-block to render the contents of the reusable blocks.
  • Added filter airfleet/elements/announcement-popup-wrapepr/style to set style variations for Announcement Popup Wrapper.
airfleet-elements-announcements-plugin

Release 2.2.0

Added background color option to announcement close icon

GitHub
View full changelog

Changed

  • Changed the position of afp-announcement-close icon for afb-announcement-popup and afb-announcement-popup-with-form blocks

Added

  • Added background color option for afp-announcement-close icon
airfleet-elements-announcements-plugin

Release 2.1.3

Fixed custom widths for announcement popups.

GitHub
View full changelog

Fixed

  • afb-announcement-popup: Fixed custom width not applied.
  • afb-announcement-popup-with-form: Fixed custom width not applied
airfleet-elements-announcements-plugin

Release 2.1.1

Fixed block style classes for announcement popup and bar elements.

GitHub
View full changelog

Fixed

  • afb-announcement-popup: Fixed block style classes to show correctly
  • afb-announcement-popup-with-form: Fixed block style classes to show correctly
  • afb-announcement-bar: Fixed block style classes to show correctly
  • afb-announcement-bar-with-form: Fixed block style classes to show correctly
airfleet-elements-announcements-plugin

Release 2.1.0

Updated components to support airfleet/elements/empty/$slug filter

GitHub
View full changelog

Changed

  • Updated components to add support for airfleet/elements/empty/$slug filter
airfleet-elements-announcements-plugin

Release 2.0.1

Fixed default title tag in announcement popup with form.

GitHub
View full changelog

Fixed

  • afb-announcement-popup-with-form: Fixed default title tag to use correct filter.
airfleet-elements-announcements-plugin

Release 2.0.0

Added new components and blocks for announcements with forms, including popup and bar options, and refactored triggers as standalone components.

GitHub
View full changelog

Added

  • Added --afs-body-margin-top to fix issue with announcement bar and password protected pages.
  • Added block elements-blocks-announcement-popup-with-form to display announcement popup with form.
  • Added block elements-blocks-announcement-bar-with-form to display announcement bar with form.
  • Added flexible component elements-announcement-open-triggers.
  • Added component elements-components-announcement-trigger-elapsed-time (refactored trigger as a standalone component).
  • Added component elements-components-announcement-trigger-exit-intent (refactored trigger as a standalone component).
  • Added component elements-components-announcement-trigger-inactivity (refactored trigger as a standalone component).
  • Added component elements-components-announcement-trigger-load (refactored trigger as a standalone component).
  • Added component elements-components-announcement-trigger-on-external-trigger to trigger open event on an external trigger (e.g. on button click).
  • Added component elements-components-announcement-trigger-scroll (refactored trigger as a standalone component).
  • Added component elements-components-button-announcement to add a button that opens an announcement.
  • Added partial elements-partials-announcement-bar (common partial for announcement bar blocks)
  • Added partial elements-partials-announcement-popup (common partial for announcement popup blocks)
  • Added filter airfleet/elements/announcement-bar-with-form/style to set style options for Announcement Bar with Form block
  • Added filter airfleet/elements/announcement-popup-with-form/style to set style options for Announcement Popup with Form block
  • Added filter airfleet/elements/announcement-bar-with-form/title/default_tag to set default heading tag for Announcement Bar with Form block
  • Added filter airfleet/elements/announcement-popup-with-form/title/default_tag to set default heading tag for Announcement Popup with Form block
  • Added pattern airfleet/elements-pattern-announcement-popup-basic Block: Announcement Popup with basic elements and layout.
  • Added pattern airfleet/elements-pattern-announcement-bar-with-form Block: Announcement Bar with Form and basic settings.
  • Added pattern airfleet/elements-pattern-announcement-popup-with-form Block: Announcement Popup with Form and basic settings.
  • Added pattern airfleet/elements-pattern-announcement-popup-with-overlay Block: Announcement Popup with custom overlay.

Changed

  • BREAKING CHANGE! elements-components-announcement-open-trigger: changed the way triggers are handled, now they are included in a flexible component. The open trigger component can be included in an announcement block and rendered in the template.
  • elements-components-announcement-close-trigger: added default styles
airfleet-elements-announcements-plugin

Release 1.0.0

Added various UI elements and triggers for announcements, including fade effect, default styles, close button color option, and multiple event triggers.

GitHub
View full changelog

Added

  • Added fade effect to elements-blocks-announcement-bar and elements-components-announcement-overlay
  • Added default background color to elements-blocks-announcement-bar and elements-components-announcement-overlay
  • Added default styles to title and text of elements-blocks-announcement-bar
  • Added filter airfleet/elements/announcement-bar/title/default_tag to set default heading tag for announcement_bar block
  • Added filter airfleet/elements/announcement-popup/title/default_tag to set default heading tag for announcement_popup block
  • Added filter airfleet/elements/announcement-popup/style to set style variations for Announcement Popup block.
  • Added close button color option
  • Added color styles to close button
  • Added block elements-blocks-announcement-popup to display announcement popup.
  • Added component elements-components-announcement-close-trigger to trigger close event used by block elements-blocks-announcement-bar.
  • Added component elements-components-announcement-open-trigger to trigger open event used by block elements-blocks-announcement-bar.
  • Added component elements-components-announcement-frequency it will trigger event airfleet-announcement-frequency so it can be cought in upper level elements to handle if elements-blocks-announcement-bar or elements-blocks-announcement-popup should open.
  • Added multiple triggers as javascript classes that can be injected to elements-blocks-announcement-open-trigger via constructor AnnouncementOpenTrigger(triggerClasses). Any new triggers should be injected in this way and should extend ./BaseTrigger
  • Added Event airfleet-announcement-base – Fired when the underlying event triggers occurs. [load, scroll, exit-intent, inactivity, elapsed-time, referrer]
  • Added Event airfleet-announcement-open-trigger – Fired when a specific trigger (like load, scroll, exit intent, etc.) opens the announcement.
  • Added Event airfleet-announcement-close-trigger – Fired when the announcement close button is clicked.
  • Added Event airfleet-announcement-frequency – Fired when a frequency-based trigger event occurs for an announcement.

Removed

  • Removed component elements-components-announcement-trigger-load.
  • Removed component elements-components-announcement-trigger-scroll.
  • Removed flexible component elements-announcement-trigger.
airfleet-elements-announcements-plugin

Release 0.1.0

Added announcement bar features and components for customizable triggers and styling.

GitHub
View full changelog

Added

  • Added block elements-blocks-announcement-bar to display announcement bar.
  • Added flexible component elements-announcement-trigger to be able to set different triggers for announcements.
  • Added component elements-components-announcement-trigger-load to trigger open event on load, has a delay property, can be set as milliseconds.
  • Added component elements-components-announcement-trigger-scroll to trigger open event on scroll, has a offset property, can be set in pixels.
  • Added partial announcement-bar-overlay to display screen overlay behind announcement bar.
  • Added partial announcement-bar-icon-type-close to display close icon for announcement bar.
  • Added filter airfleet/elements/announcement-bar/style to set style variations for Announcement Bar block.
  • Added pattern airfleet/elements-pattern-announcement-bar-basic Block: Announcement Bar with basic elements and layout.
  • Added pattern airfleet/elements-pattern-announcement-bar-bottom Block: Announcement Bar with bottom positioning.
  • Added pattern airfleet/elements-pattern-announcement-bar-with-overlay Block: Announcement Bar with overlay.