Skip to content

v1.6.0

Choose a tag to compare

@dewasemadi dewasemadi released this 20 Aug 02:08
· 6 commits to master since this release
af858ba

Added

  • Pluggable renderBadge Custom Callback: Added renderBadge?: (container: HTMLElement, props: BadgeRenderProps) => void configuration option. Consumers can now completely craft their own inner HTML/DOM structure for the floating badge.
  • BadgeRenderProps Helper API: Provided unreadErrors, unreadWarnings, unreadTotal, isOpen, toggle(), open(), and close() helper methods directly to renderBadge callback.
  • Drag-and-Drop & Snapping Preservation: renderBadge custom DOM renders inside .devtools-badge container, preserving 100% of pointer drag gestures, viewport bounds clamping, and magnetic edge snapping (autoSnapBadge).

Fixed & Improved

  • Custom Raw CSS Injection: Replaced legacy DevToolsStyles object with styles?: string, allowing consumers to inject raw CSS strings directly into Shadow DOM root targeting .devtools-badge, :hover, .devtools-tab-btn.active, etc.
  • Native Browser Image Drag Prevention: Applied pointer-events: none, -webkit-user-drag: none, and user-select: none to image elements inside .devtools-badge to prevent native browser image drag interference during touch drag gestures.
  • Documentation & Web App API Table: Synchronized all guides, README files, and live web portal API Reference table with the new styles?: string and renderBadge specifications.