| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| 5.21.4_ Auto-Retracting Shadow _ Glow Options Sidebar + Non-Destructive Preservation source code.tar.gz | 2026-11-16 | 123.1 MB | |
| 5.21.4_ Auto-Retracting Shadow _ Glow Options Sidebar + Non-Destructive Preservation source code.zip | 2026-11-16 | 123.7 MB | |
| README.md | 2026-11-16 | 6.5 kB | |
| OpenPublisher5-i386-windowsXP.exe | 2026-11-16 | 56.5 MB | |
| openpublisher5g_amd64-windows.exe | 2026-11-16 | 81.1 MB | |
| openpublisher5_amd64-windows-portable.exe | 2026-11-16 | 183.2 MB | |
| openpublisher5_amd64-windows.exe | 2026-11-16 | 165.2 MB | |
| openpublisher5_amd64-macos.dmg | 2026-11-16 | 233.1 MB | |
| openpublisher5_amd64-linux.run | 2026-11-16 | 193.4 MB | |
| openpublisher5_amd64-linux.rpm | 2026-11-16 | 215.4 MB | |
| openpublisher5_amd64-linux.flatpak | 2026-11-15 | 153.6 MB | |
| openpublisher5_amd64-linux.deb | 2026-11-15 | 156.2 MB | |
| openpublisher5_amd64-linux.AppImage | 2026-11-15 | 166.4 MB | |
| openpublisher5_amd64-freebsd.pkg | 2026-11-15 | 185.5 MB | |
| Totals: 14 Items | 2.0 GB | 0 | |
π Summary
Version 5.21.4 fixes two closely related usability issues in the Shadow / Glow Options workflow (#op-shadow-sidebar):
- Auto-Retract on Click Away: The Shadow / Glow Options sidebar (
#op-shadow-sidebar) now tracks its active owner element and automatically retracts whenever the user clicks away onto the canvas, switches to another element, enters multi-select, switches pages, or deletes the element. - Non-Destructive Ribbon Behavior & Template Glow Preservation: Clicking Shadow or Glow on the ribbon no longer overwrites, toggles off, or replaces an existing shadow or glow (including glows/shadows defined in loaded
.opubtemplates on.element-content,<img>, or<svg>). If a shadow or glow is already present, clicking Shadow or Glow simply opens the sidebar showing its real existing color, transparency, blur, and offset values; defaults are only applied when the element has no shadow or glow yet. - Full CSS
drop-shadow()Parser & Remove Button: Replaced the legacy regex parser inparseShadowToSliders()so browser-normalized color-firstdrop-shadow(rgb(...) 0px 0px 3px)strings, unitless0offsets, hex/named colors, and existing RGBA alpha values load accurately into every slider and#shadow-color-swatch, and added a dedicated Remove Shadow / Glow button inside the sidebar.
π οΈ Key Improvements
1. Owner-Scoped Shadow / Glow Sidebar Lifecycle (ui/sidebar/shadow-pane.js)
window.syncShadowPaneForSelection(activeEl)&installShadowPaneAutoRetract(): Records the active owner element (window._shadowSidebarOwnerEl) when opening#op-shadow-sidebarand automatically retracts the panel ondeselect(), element switching (currentEl !== owner),Ctrl+Click/ marquee multi-select, page switches, or element deletion (executeDeleteElements), while keeping it open during slider/color-picker interactions or edits on the same element.- Unified
drop-shadow()Detection & Migration (getElementDropShadowInfo,normalizeDropShadowForElement): Scans.element-content, element root, and inner<img>/<svg>/wrapper elements for existingdrop-shadow(...)filters (such as glows saved on<img>or.element-contentin.opubtemplates) and migrates legacy inner<img>/<svg>filters cleanly without altering their color, opacity, blur, or offset. - Browser-Normalized CSS Parser (
parseDropShadowCss): Supports both color-first (drop-shadow(rgba(...) X Y blur)) and length-first (drop-shadow(X Y blur color)) formats, unitless0values,rgb/rgba/hsl/#hex/named colors, and keeps#shadow-color-swatchand#shadow-alpha-slidersynced accurately. - Remove Shadow / Glow Control (
#shadow-remove-btn): Addedwindow.removeShadowFromSelected()inside#op-shadow-sidebarto cleanly remove any shadow/glow effect, update thumbnails/history, and close the sidebar.
2. Ribbon & Core Selection Sync (ui/ui.js, canvas/interaction.js, core/selection.js)
ContextRibbonActions._applyOrOpenShadowEffect()(ui/ui.js): Shared helper for both Shadow (addDropShadow) and Glow (addGlow). Preserves any existingdrop-shadow(...)on the selected element (only opening#op-shadow-sidebarfor inspection/editing), and applies the default black shadow or cyan glow only when no shadow/glow is currently set.- Canvas & Selection Synchronization (
canvas/interaction.js,core/selection.js): RoutedselectElement(),deselect(), andexecuteDeleteElements()throughwindow.syncShadowPaneForSelection()so switching elements, deselecting, or deleting immediately syncs and retracts#op-shadow-sidebar.
π Version Synchronization (v5.21.4)
| Component | Target Version | Updated Reference |
|---|---|---|
| Application Assets & Cache Busting | v5.21.4 |
index.html |
| Service Worker & Cache Store | open-publisher-v5-21-4-1 |
sw.js |
| Watermark & Print Engines | v5.21.4 |
watermark-engine.js, print-engine.js |
| AI Assistant & UI Interactions | v5.21.4 |
ai-assistant.js, ui-interactions.js |
| PWA Registration & Templates | v5.21.4 |
pwa-install.js, templates.js |
| Dashboard, 404 Router, & Badges | v5.21.4 |
dashboard.js, 404.html, README.md |
β Checklist Completed
- [x] Track the active target element in
ui/sidebar/shadow-pane.jsand auto-retract#op-shadow-sidebarwhen clicking away, switching elements, multi-selecting, or deleting - [x] Preserve existing shadows/glows (including template
.element-contentand inner<img>glows) when clicking Shadow or Glow on the ribbon, applying defaults only when none exists - [x] Parse browser-normalized color-first and length-first
drop-shadow()CSS values cleanly into sliders and#shadow-color-swatch - [x] Add Remove Shadow / Glow button (
#shadow-remove-btn) inside#op-shadow-sidebar - [x] Live browser E2E verified (
ExploringAbstractConcepts.opubteal glow preserved + sliders synced#007670/3px;posters_product_launch.opubinner<img>purple glow#7b1fa2/30px/20%preserved & removed via#shadow-remove-btn; fresh element defaults + custom edit preservation + auto-retract; zero app JS errors) - [x] Synchronize version strings from
5.21.3to5.21.4across core HTML/JS/SW files and README badges
π Version 5.21.4 - Open Publisher