Skip to content

Releases

v1.6.3

Choose a tag to compare

@goldnead goldnead released this 30 Nov 13:22
90f884e

Behoben

  • Autosave verliert die letzte Änderung nicht mehr. Wer den Editor verlässt, speichert vorher, was noch aussteht. Ungespeicherte Änderungen melden sich über isDirty bei Statamic.$dirty, damit die Rückfrage des Control Panels greift.
  • Ein laufendes Speichern überschreibt keine neuere Änderung mehr, und Speicherungen laufen nie parallel.
  • Eine wartende Nachspeicherung läuft nicht mehr, wenn Autosave während des Speicherns ausgeschaltet wurde.

Geändert

  • Fehlgeschlagene Autosave-Speicherungen werden in der Browser-Konsole protokolliert.

Keine Migration, kein neuer Config-Schlüssel. Die Änderung steckt in resources/js/composables/useAutosave.js, ein kompiliertes Bundle liegt nicht im Repo. Details im CHANGELOG.

1.6.2

Choose a tag to compare

@goldnead goldnead released this 19 Oct 11:43
4540fab

German words for the canvas (Node library, Ready, Filter nodes, zoom, node actions): resources/lang/de.json registered by the provider. No change to the JS.

1.6.1

Choose a tag to compare

@goldnead goldnead released this 18 Oct 11:09

Changed: shared components on plain CSS, not Tailwind utilities

Seven components (Canvas, AdderNode, ControlBar, InsertableEdge, NodeCard,
NodeLibrary, PropertiesSection) carried Tailwind utilities that a host only generates when its
own build scans this package. Where that build did not, the element lost its layout or colour;
a neighbouring addon's stylesheet often hid it. Each affected element now has an fc- class,
styled in a scoped <style> block with the same values as before. Dark-mode colours use
:global(.dark); colours come from CSS variables, not hex. Utilities that were not on the list
stay as they were. Guarded by tests/js/plain-css.test.js.

1.6.0

Choose a tag to compare

@goldnead goldnead released this 27 Sep 19:49
a1c4114

Added: scope frames — a loop body drawn as one thing

A host may now tell the canvas which node types open a body instead of continuing the flow:

<Canvas :scopes="{ loop: { output: 'loop', continuation: 'done' } }"
        :scope-labels="{ steps: n => …, collapse: title => …, expand: title => … }"
        :view-state-key="`my-addon.canvas.${id}.collapsed`" />
  • [new] Frame behind every body (everything reachable from output, stopping at the owner and at
    whatever continuation reaches), titled with the owner's name and step count. Nested bodies
    nest. A synthetic node at negative zIndex, pointer-transparent except its fold button.
  • [new] Way back: a dashed line with an arrowhead from each end of a body, outside the frame's left
    edge, into the side of the owner. Ends inside a nested body go back to the nested owner.
  • [new] Fold: the title bar's chevron folds a body into one card; edges into and out of the body are
    drawn to it. Remembered under viewStateKey in localStorage (every access guarded), in memory
    without one.
  • [new] Layout: computeLayout() takes insets ({ [nodeKey]: { x, top } }): room either side of
    the subtree a node roots and above its row. Without it every position is what it was.
  • [new] A scope's open outputs are named beside their "+" (data.hint on the adder, also in its
    aria-label) instead of on the stub edge.
  • [new] Pure logic in composables/useScopeFrames.js (computeScopeFrames, collapseScopes,
    scopeLayoutInsets, scopeFrameRects, scopeReturnPath), tested in
    tests/js/scope-frames.test.js. Styles in scope-frames.css, imported by the host into its
    addon-utilities layer.
  • [new] Nothing about frames changes for a host that passes no scopes (funnels).

Changed in the same release (review round 2)

  • The owner is the frame's head. The frame starts just above the owner card; the head strip
    holds only the fold chevron and the step count. layoutScoped() lays each frame out as one
    compound node (body first, compact rows, owner centred over the entry), so whatever follows
    the loop is placed below the whole frame. The continuation leaves the owner's side
    (data.sideOutputs on the card) and runs round the frame (data.route on InsertableEdge,
    scopeDoneRoute()); its pill and "+" sit under the frame.
  • Pills. A scope's outputs are named on their edges (data.pill), like a branch's; the card
    footer legend is hidden for scope owners (data.hideLegend).
  • Way back is 2px, runs inside its own frame's left padding, arrowhead at the owner.
  • Folded bodies stay framed: the block (count, first → last step) sits in the owner's frame
    with a short way back.
  • Cards (all hosts). The title takes the full width and two lines; type and kind badge moved
    to the line below. Variable chips end in an ellipsis inside the card. Both rules are written
    against their parent, because the CP loads every addon's stylesheet and an older copy of
    .sa-node__title { truncate } would otherwise win by order.
  • computeLayout() gained insets.left / insets.right and gaps; openOutputsOf() is exported.
    scopeLayoutInsets() and scopeFrameRects() are gone (never released).
  • Fold control. Chevron and step count are one button, top-left in the frame's head: core's
    ghost Button (size="xs", 24px high) with aria-expanded and a label naming the loop.
  • One "+" size (all hosts). A step's append "+" is now the same 24px dashed circle as the
    insert "+" on an edge (was 36px); only the empty canvas's entry "+" stays larger
    (.sa-adder__btn--root). Hosts that keep their own copy of the adder CSS need the same two
    rules.

1.5.0

Choose a tag to compare

@goldnead goldnead released this 22 Sep 18:47

Added: an edge fade on the node library's tab bar, so scroll isn't a guess

The horizontal scroll strip added for the tab-bar overflow (below) fixed reachability but not
discoverability: the scrollbar is an invisible overlay until you scroll, so nothing told an
operator who never scrolled that "Actions" was still there. Two independent reviews flagged the
same residual gap.

A soft gradient now sits at each edge of the strip, visible only on the side that still has
content to scroll to, and gone once that end is reached — a fade that never disappears would be
lying about the list having more. aria-hidden and pointer-events: none, so it never becomes
the click target the tab underneath should be. Colour is var(--theme-color-content-bg) (the
same custom property bg-content-bg resolves to), not a hex value, so it tracks the CP's
light/dark theme.

Implemented as plain CSS in a component-scoped <style> block, not Tailwind utility classes.
Measured while building this: automations does not @import canvas.css (it keeps its own
hand-duplicated copy of the sa-* classes), and neither host's Tailwind build scans this
package's resources/js at all — a brand-new utility class used only here compiles into no rule
in either consuming host, silently. bg-content-bg already in NodeLibrary.vue only ever
"worked" because both hosts happen to use that exact class elsewhere in their own source; a
gradient stop like from-content-bg has no such coincidence to fall back on. Plain CSS in the
SFC's own <style> block sidesteps both problems — Vite compiles it regardless of what any host's
Tailwind content scanner sees.

Same fade, same reasoning, built identically (not shared) in statamic-brand-context's
Settings.vue: that addon has no dependency on this package to share a component through, and
carries no Tailwind build of its own at all.

Fixed: the scroll strip itself now uses the same plain CSS as the fade

Building the fade above surfaced that the scroll strip's own classes (overflow-x-auto,
flex-nowrap, -mx-1, px-1) had the identical problem, one strip earlier: see the correction
under "the node library's tab bar no longer hides its last group" below for what was actually
measured. .flow-tab-scroll/.flow-tab-list-nowrap/.flow-tab-fade-wrap in NodeLibrary.vue's
<style scoped> block replace all four now, so the strip scrolls and lines up the same way in
every host regardless of what that host's own bundle happens to contain.

Fixed: the node library's tab bar no longer hides its last group

TabList (@statamic/cms/ui) renders a plain flex row with neither overflow-x-auto nor
flex-wrap. Four groups plus their count pills (Triggers 63, Logic 11, Actions 4, …) don't fit
the sidebar's 288-300px column. Under automations, whose overflow-hidden wrapper around the
library made it worse, "Actions" was clipped to half a label and unreachable; under funnels,
which has no such wrapper, the same tabs simply ran off the edge of the canvas. Neither host's
wrapper is the source, both import the same NodeLibrary.vue.

NodeLibrary.vue now wraps the tab bar in its own horizontally scrollable strip, so the fix
lands in both hosts from one place. The bottom border stays full-width, and the fix works
whether the host clips its column (automations) or not (funnels).

Correction, same day. The paragraph above is the intent this commit shipped with, not a full
account of what it did. The strip's classes (overflow-x-auto, flex-nowrap, -mx-1, px-1)
were plain Tailwind utility classes, and this package has no Tailwind build of its own — each
host compiles NodeLibrary.vue through its own. Measured against each host's own compiled CSS on
22.09.2026: flex-nowrap compiled in neither host (harmless — nowrap is the flexbox
default, so this was a no-op, not a break). overflow-x-auto compiled in both, but only because
each host happens to use that exact class elsewhere in its own source — the one property that
actually makes the strip scroll worked by coincidence, not because this fix put it there. -mx-1
and px-1 did not compile in funnels' own bundle at all; they only appeared to work in the
Playground because every installed addon's CSS loads on every CP page there, and
statamic-automations's unrelated bundle happens to define the same classes. A real installation
with only statamic-funnels would not have that safety net. Reachability (can you reach
"Actions"/the last group by scrolling) held up under this coincidence; the edge padding that lines
the strip up with the sidebar did not, silently, in funnels specifically. Now fixed for real: see
the entry above — the same conversion to plain CSS in NodeLibrary.vue's own <style scoped>
block covers the strip's classes too, not just the new fade.

Documented: what must NOT go into canvas.css, and why

Measured in a running Statamic 6 CP on 22.09.2026, the document's cascade-layer order (first
mention wins) is properties > base > addon-theme > addon-utilities > components > utilities > ui > ui-states > theme. addon-utilities therefore comes before utilities, and the later
layer wins regardless of specificity. Because every host imports canvas.css from inside its
own addon-utilities block, anything written here can never beat a Statamic core utility: the
selector matches, the rule loads, nothing happens.

The header of canvas.css now says so. This is not theoretical — the flow editor's full-bleed
rule ([data-max-width-wrapper]:has(> [data-flow-full-bleed]), which lifts the CP's 85rem page
cap) shipped inside addon-utilities from 14.08.2026 and never once worked. It lives unlayered
in each host's own cp.css and must stay there. No code change, no behaviour change.

1.4.1

Choose a tag to compare

@goldnead goldnead released this 15 Sep 20:05

Changed: the developer address points to adriangoldner.dev

extra.statamic.developer-url in composer.json still read gldnr.studio. The sender that the
Control Panel shows on the addon, and Packagist on the package page, now reads
adriangoldner.dev, like the other addons in the suite. Nothing changes in the code; anyone who
does not look at where the addon comes from will notice nothing about this release.

1.4.0

Choose a tag to compare

@goldnead goldnead released this 15 Sep 20:05
  • Levels follow the real card height, not a fixed row. computeLayout() placed every level
    exactly ROW_HEIGHT below the previous one. A card that grows taller than those 200px through
    its content (four variable pills on a send_email are enough) reached into the level below,
    and the plus button between them half disappeared behind the next card (finding F19 of
    2026-09-03).

    New: computeLayout(nodes, edges, { nodeHeights }) takes the measured card heights per
    node_key and gives every level the spacing its tallest card needs; all other levels stay
    where they were. Without that argument it computes bit-for-bit as before, three nodes still
    give y = 0, 200, 400. The canvas measures the cards itself and passes the heights through.

  • The package is a Statamic addon, not an anonymous library. composer.json now carries
    type: statamic-addon, extra.statamic (name, description, slug, URL, developer) and a
    service provider. The provider is deliberately empty: it publishes nothing and registers
    nothing, because the hosts compile the canvas into their own bundles. It exists because
    Statamic only lists a package on the Addons page when extra.statamic and a provider are
    present; without it the entry drops out of the manifest without a word. statamic/cms ^6.0 is
    now explicitly in require, where it was previously only implied by the hosts.

  • A test suite, on two levels. PHPUnit through Statamic\Testing\AddonTestCase checks that
    the provider boots, what the manifest delivers to the Marketplace card, and that every path
    the hosts import from @goldnead/flow-canvas still exists. Vitest runs directly against the
    source files in resources/js/composables (no build needed): auto-layout, undo/redo with
    coalescing, output specifications, validation and key-value rows, 43 tests. Every test was held
    once against a deliberately broken function and turned red doing so. CI runs PHP 8.2 to 8.4
    against Laravel 12 and 13, plus the JS job, Pint and the studio's addon-lint.

  • onStaleOutputSpec(handler). When the canvas meets an output specification from a newer
    contract version, it falls back to a default output and reports that once per node type.
    Previously wired hard to console.warn; that stays the default, but a host can now redirect
    the message (toast, its own logger). The handler receives the text and
    { type, version, supported }.

  • There is still no empty dist/, config/ or Vite setup, and that is now a test as well: the
    hosts are the place where this canvas becomes a bundle.

1.3.0

Choose a tag to compare

@goldnead goldnead released this 04 Sep 13:40
  • A node may carry a thumbnail. A URL on the node, and the card draws it as a 16:10 tile the
    full width of the card, above the title. Where the picture comes from is the host's business —
    a funnel screenshots its pages; this package only knows how to show one.

    The tile has a fixed height (LAYOUT.THUMB_HEIGHT, 150px on a 240px card) and the image loads
    lazily inside it, so a card is the same size before and after the picture arrives. The layout
    grows every row by that height as soon as any node on the canvas has a picture, and only then:
    a graph without thumbnails is laid out exactly as before, and a graph with them does not
    overlap. The tile's ground is the card's ground in both modes, so a slow image is never a white
    block on a dark canvas.

  • showThumbnails on <Canvas> (default true) lets a host switch the tiles off without
    stripping the field from its nodes.

  • computeLayout() takes an optional { rowHeight }.

1.2.1

Choose a tag to compare

@goldnead goldnead released this 04 Sep 13:40

Removed — die VERSION-Konstante log

Sie stand auf 1.0.0, ausgeliefert war v1.2.0. Nichts liess sie mitwandern, wenn ein Tag wanderte —
eine Versionsnummer, die von Hand kopiert werden muss, driftet nicht aus Versehen, sondern von
selbst. Wer darauf eine Faehigkeitspruefung baute, bekam die falsche Antwort.

Entfernt statt nachgezogen: niemand in der Familie las sie (gegrept), und wofuer diese Klasse
existiert — „ist das Paket installiert" — beantwortet class_exists(), das nicht veralten kann.
Composer kennt die Version ohnehin, und dort stimmt sie.

1.2.0

Choose a tag to compare

@goldnead goldnead released this 04 Sep 13:40
  • MIT, no longer proprietary. A LICENSE file, which this package never had, and
    "license": "MIT" in the composer manifest.

    The reason is the dependency, not generosity. statamic-funnels requires this package, and
    both were listed as commercial — so buying Funnels left a second licence to sort out that nobody
    had decided the terms of. A shared editor that two of our own addons consume is infrastructure,
    and infrastructure that a customer has to buy twice is a bad seam. It also matches the rest of the
    foundation layer: Brand Context, Identity Contracts and Suppression are MIT for the same reason.

    Nothing about the code changes. Versions up to 1.1.0 were published under the old terms and stay
    that way; this applies from 1.2.0 on.