Skip to content

Upgrade Fancybox and enhance pattern previews#45

Merged
ronalfy merged 6 commits into
release/2.5from
feat/fancybox-improvements
May 6, 2026
Merged

Upgrade Fancybox and enhance pattern previews#45
ronalfy merged 6 commits into
release/2.5from
feat/fancybox-improvements

Conversation

@ronalfy
Copy link
Copy Markdown
Contributor

@ronalfy ronalfy commented May 6, 2026

This release upgrades the Fancybox library to v6, bringing significant improvements to pattern previews and introducing new quick action capabilities:

  • Fancybox Upgrade: Updates the @fancyapps/ui package to v6.1.14, along with necessary adjustments to import paths and usage patterns.
  • Enhanced Pattern Previews:
    • Introduces an interactive toolbar directly within the Fancybox lightbox, providing quick actions for patterns, including:
      • Disabling/Enabling (for registered patterns)
      • Deleting (for local patterns)
      • Editing (for local patterns)
      • Exporting to JSON
      • Copying pattern block markup to the clipboard
    • Enables a gallery view for patterns, allowing users to navigate between multiple pattern previews using a carousel.
    • Resolves an issue with iframe preview scrolling within the lightbox for a smoother viewing experience.
    • Adjusts the styling of Fancybox captions for improved readability.
  • Code Refinements:
    • Adds new utility functions (canonicalPatternId, patternIdsEqual) to standardize pattern ID handling across local and registered patterns.
    • Refactors components to utilize custom events for managing preview actions, enhancing modularity.
    • Adjusts z-index values to ensure WordPress modals correctly overlay the Fancybox previews.
    • Removes unused code and simplifies dependencies in various React components.

@ronalfy ronalfy self-assigned this May 6, 2026
@ronalfy ronalfy added the enhancement New feature or request label May 6, 2026
@ronalfy ronalfy merged commit 758f361 into release/2.5 May 6, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants