Skip to content

Releases

v1.1.1

Choose a tag to compare

@wesort wesort released this 17 Oct 11:55

What's improved

  • dev-panel:status also checks the site's own scripts under resources/js (not node_modules) for the old dev panel Alpine keys, showRawData, showDesignGrids and minimiseDevPanel, so removing them from <body x-data> can't break a script that still reads them

v1.1.0

Choose a tag to compare

@wesort wesort released this 17 Oct 10:54

What's new

  • {{ dev_panel:raw_data }} ... {{ /dev_panel:raw_data }} tag pair for content shown only while the raw-data toggle is on, with no Alpine syntax in templates. as picks the element, and any other parameter becomes an attribute.

What's improved

  • Raw data in the tag stays hidden without an [x-cloak] CSS rule and before Alpine starts, as it's hidden with an inline style
  • The tag doesn't need an x-data ancestor, and renders nothing when features.raw_data is off
  • dev-panel:status and dev-panel:install now point to the tag, and count it as raw-data use. $store.devPanel?.rawData keeps working.

v1.0.0

Choose a tag to compare

@wesort wesort released this 17 Oct 10:30

What's new

  • {{ dev_panel }} and {{ dev_panel:grids }} tags: a front-end developer panel and a design grids overlay, shown only to logged-in users
  • Panel tools: the current commit (from the statamic.git.* config keys), an entry's access field, a breakpoint and viewport readout, design grids and raw-data toggles, an edit link and back to top
  • config/statamic-dev-panel.php to switch off any feature, start minimised or not, match the grid container classes and breakpoints, and set the access field
  • extra config to render the site's own partials inside the panel, with the current entry or term's data
  • An Alpine store, $store.devPanel, for the toggles. Site templates can use $store.devPanel?.rawData, and each user's choices are remembered when the persist plugin is installed.
  • Safe with static caching: output goes in a nocache region that stores only the content ID, a few hundred bytes per region
  • php please dev-panel:install publishes the config, adds the Tailwind 4 @source line after asking (or shows the Tailwind 3 content path) and lists the layout steps left
  • php please dev-panel:status checks the setup, lists leftovers from a copied dev panel, shows the installed version against the latest release, and exits 1 when something needs fixing
  • Supports Statamic 5 and 6, PHP 8.2+, Alpine.js 3, and Tailwind 3 or 4