You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6c6779f
Browse filesBrowse the repository at this point in the historyBrowse files
feat(PowerSearch): presentation is a stable prop, and adaptive is its default
PowerSearch's touch sheet flow graduates from `experimental.presentation`
to a stable top-level `presentation` prop (`'popover' | 'bottom-sheet' |
'adaptive'`, typed by the new exported `PowerSearchPresentation`), and an
omitted `presentation` resolves `adaptive`: the stacked filter sheets on a
compact coarse-pointer screen, and the tokenizer field with its editor
popover with a fine pointer, on a screen that is not compact, on the
server, and while hydrating.
`experimental.presentation` stays as a deprecated experimental alias; the
top-level prop wins when both are set, with one development warning. A
staged codemod rewrites a static `experimental={{presentation: x}}` to
`presentation={x}`. Stories that pass `menuWidth` or
`tokenOverflowBehavior`, which the sheet does not render, pin
`presentation="popover"`.
The default change is `[breaking]` under spec:AST-017 FR1, FR3, and FR31,
so it is held for a declared minor; the promotion is `[feat]`.
[breaking] PowerSearch's `presentation` defaults to `'adaptive'` instead of `'popover'`. A PowerSearch that passes no `presentation` keeps the tokenizer field and editor popover with a mouse or trackpad, on a screen that is not compact, in the server render, and while it hydrates; on a compact coarse-pointer screen (a phone) the whole field becomes one trigger with display-only filter tokens that opens the stacked filter sheets. There, filters are added and edited in the Filters, Add filter and value sheets instead of the typeahead and editor popover, a filter reaches `onChange` when its value step confirms, and `menuWidth` and `tokenOverflowBehavior` have no surface, with a development warning that names them. Migration: pass `presentation="popover"` to keep the tokenizer field and editor popover on every device. No codemod adds it, because adding it to every PowerSearch would opt every caller out of the new default; add it where your product needs the popover on phones.
[feat] PowerSearch's `presentation` prop is stable: `'popover' | 'bottom-sheet' | 'adaptive'`, typed by the new exported `PowerSearchPresentation`. It promotes the touch sheet flow that `experimental.presentation` selected, with the same values and behavior. `experimental={{presentation: 'adaptive'}}` becomes `presentation="adaptive"`, and `astryx upgrade` rewrites it. The earlier spelling keeps working as a deprecated experimental alias; when both are set, `presentation` wins and the field warns once in development.
0 commit comments