• v0.43.0 964a9f35b7

    v0.43.0 Stable

    pienter-release-bot released this 2026-11-19 12:54:55 +00:00 | 37 commits to main since this release

    Breaking

    • useUrlTab now returns { tab, select } instead of the writable computed
      itself (PUI-80). tab is that computed, unchanged; select(key) writes the
      key like assigning tab.value but returns a promise that resolves once the
      navigation finished and the DOM shows the tab, so a revealField callback
      can await select('seo'). The exported UrlTab type describes the pair.
      To migrate, destructure it under your existing name,
      const { tab: activeTab } = useUrlTab(...); templates and .value reads
      stay as they are.

    Added

    • RecordForm takes an optional revealField(path, { signal }) callback
      (PUI-80), so a page no longer watches issues to switch tabs or open
      blocks before the form's focus. With it, RecordForm picks the first
      invalid field in fields order, even when hidden, passes the issue's full
      path (['sections', 2, 'title']) to the callback, awaits it, and focuses
      that field's control, or the element the callback returns for a custom or
      portalled control. A rejection or an unavailable control focuses the error
      summary; issues without a declared field focus the summary without calling
      the callback. New issues, cleared issues and unmounting abort the signal,
      and a superseded call never moves focus. Form's own first-invalid focus
      stands down while RecordForm owns it; plain Form and RecordForm without the
      callback are unchanged. RevealField is exported from
      RecordForm.types, and a media field's fieldset now carries the field's
      name so it can be found. Before focusing, RecordForm also waits for a
      just-revealed RichText or MediaField that is still loading its chunk.

    Fixed

    • BlockEditor no longer re-measures while it sits in a hidden tab panel
      (PUI-80). Its zero width read as narrow, so an open block moved into a
      modal Sheet nobody could see and the page went inert; opening a block from
      revealField right after showing the tab hit the same stale layout. It now
      keeps the last layout measured while visible, and measures when a block
      opens, so a block opened just as a narrowed editor appears goes straight
      into the Sheet and keeps the focus RecordForm gave its invalid field. A
      block already open when the layout flips between split and Sheet keeps
      focus on the same named control instead of jumping to its first field.
    Downloads