-
v0.43.0 Stable
released this
2026-11-19 12:54:55 +00:00 | 37 commits to main since this releaseBreaking
useUrlTabnow returns{ tab, select }instead of the writable computed
itself (PUI-80).tabis that computed, unchanged;select(key)writes the
key like assigningtab.valuebut returns a promise that resolves once the
navigation finished and the DOM shows the tab, so arevealFieldcallback
canawait select('seo'). The exportedUrlTabtype describes the pair.
To migrate, destructure it under your existing name,
const { tab: activeTab } = useUrlTab(...); templates and.valuereads
stay as they are.
Added
RecordFormtakes an optionalrevealField(path, { signal })callback
(PUI-80), so a page no longer watchesissuesto switch tabs or open
blocks before the form's focus. With it, RecordForm picks the first
invalid field infieldsorder, 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.RevealFieldis exported from
RecordForm.types, and amediafield's fieldset now carries the field's
nameso it can be found. Before focusing, RecordForm also waits for a
just-revealed RichText or MediaField that is still loading its chunk.
Fixed
BlockEditorno 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
revealFieldright 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
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads