github fahiem152/filament-pinpoint v1.1.9

5 hours ago

Added

  • 🔒 Read-only mode support - Implement
    CanBeReadOnly on Pinpoint form component (#18 by
    @gpibarra)
    • New readOnly() method to make the map
      display-only (no drag, no click, no search)
    • New readOnlyOn() method to restrict editing on
      specific operations (e.g., readOnlyOn('view'))
    • Supports closures for conditional read-only:
      readOnly(fn () => !auth()->user()->can('edit'))
    • Works with both Google Maps and Leaflet providers
    • Map remains pannable and zoomable for viewing
    • Radius circle is displayed but not editable when
      read-only
    • Search box, "Use My Location" button, and helper
      text are hidden when read-only

Improved

  • 🎨 Theme-compatible CSS - Replaced all hardcoded
    CSS colors with Filament CSS variables (#20 by
    @RibesAlexandre)
    • Search input, dropdown, button, and map border now
      use var(--gray-*) and var(--primary-*) instead of
      hardcoded hex values
    • Plugin automatically adapts to custom Filament
      themes and color palettes (e.g., Slate, Zinc, custom
      primary colors)
    • Radius circle color now follows the configured
      primary theme color
    • Replaced non-compiling Tailwind utility classes
      with theme-aware CSS classes
    • Removed all !important overrides from dark mode
      styles

Don't miss a new filament-pinpoint release

NewReleases is sending notifications on new releases.