chore: July release notes - #10381
Conversation
|
Build successful! 🎉 |
|
oops committed to the wrong branch... |
|
Build successful! 🎉 |
## API Changes
@react-spectrum/ai/@react-spectrum/ai:PromptField PromptField {
acceptedAttachmentTypes?: Array<string>
attachments?: Array<PromptFieldAttachment>
- brandColor?: string
children: React.ReactNode
defaultAttachments?: Array<PromptFieldAttachment>
defaultValue?: TokenFieldValue
+ hideDisclaimer?: boolean
isGenerating?: boolean
onAddAttachments?: (Array<PromptFieldAttachment>) => void
onAttachmentsChange?: (Array<PromptFieldAttachment>) => void
onChange?: (TokenFieldValue) => void
onStop?: () => void
onSubmit?: (TokenFieldValue, Array<PromptFieldAttachment>) => void
styles?: StyleString
value?: TokenFieldValue
variant?: 'balanced' | 'prominent' | 'subtle'
}/@react-spectrum/ai:ResponseStatus ResponseStatus {
children: ReactNode
defaultExpanded?: boolean
+ density?: 'compact' | 'regular' | 'spacious' = 'regular'
id?: Key
isDisabled?: boolean
isExpanded?: boolean
onExpandedChange?: (boolean) => void
status?: 'loading' | 'failed' | 'success' = 'loading'
styles?: StyleString
}/@react-spectrum/ai:PixelLoader-PixelLoader {
- className?: string
- color?: string = 'currentColor'
- icon?: Array<Cell> | Array<Array<Cell>>
- isPlaying?: boolean
- size?: number
-}/@react-spectrum/ai:PromptFieldProps PromptFieldProps {
acceptedAttachmentTypes?: Array<string>
attachments?: Array<PromptFieldAttachment>
- brandColor?: string
children: React.ReactNode
defaultAttachments?: Array<PromptFieldAttachment>
defaultValue?: TokenFieldValue
+ hideDisclaimer?: boolean
isGenerating?: boolean
onAddAttachments?: (Array<PromptFieldAttachment>) => void
onAttachmentsChange?: (Array<PromptFieldAttachment>) => void
onChange?: (TokenFieldValue) => void
onStop?: () => void
onSubmit?: (TokenFieldValue, Array<PromptFieldAttachment>) => void
styles?: StyleString
value?: TokenFieldValue
variant?: 'balanced' | 'prominent' | 'subtle'
}/@react-spectrum/ai:ResponseStatusProps ResponseStatusProps {
children: ReactNode
defaultExpanded?: boolean
+ density?: 'compact' | 'regular' | 'spacious' = 'regular'
id?: Key
isDisabled?: boolean
isExpanded?: boolean
onExpandedChange?: (boolean) => void
status?: 'loading' | 'failed' | 'success' = 'loading'
styles?: StyleString
}/@react-spectrum/ai:PixelLoaderProps-PixelLoaderProps {
- className?: string
- color?: string = 'currentColor'
- icon?: Array<Cell> | Array<Array<Cell>>
- isPlaying?: boolean
- size?: number
-} |
|
|
||
| # v1.21.0 | ||
|
|
||
| This release introduces [PreviewTrigger](../PreviewTrigger), a new component for showing a non-modal preview popover when hovering or focusing a link. It also adds [TokenField](../TokenField) to React Aria Components for building tag inputs, mention inputs, and AI prompt fields with inline tokens, and [useContextMenu](../useContextMenu), a new hook for native and keyboard-accessible context menus, which MenuTrigger can now use via trigger="contextMenu". We've also added keyboard shortcut support through [useKeyboard](../useKeyboard), along with support for interactive components like textfields inside Table and GridList rows. |
There was a problem hiding this comment.
This is a little awkward because it's setup to read like a uniform list, but the first one is it's own sentence, the next two are introduced together even though they aren't related, and useKeyboard feels like an aside.
Maybe something more like this?
This release introduces PreviewTrigger, a new component for showing a non-modal preview popover when hovering or focusing a link. It also brings TokenField to React Aria Components, making it easier to build tag inputs, mention inputs, and AI prompt fields with inline tokens. Native and keyboard-accessible context menus are now supported via the new useContextMenu hook, which MenuTrigger can use with trigger="contextMenu". In addition, we've added keyboard shortcut support through [useKeyboard], along with support for interactive components like textfields inside Table and GridList rows.
| ### Overlays | ||
| - Fix `ariaHideOutside` behavior inside a shadow DOM - [@snowystinger](https://github.com/snowystinger) - [PR](https://github.com/adobe/react-spectrum/pull/10288) | ||
| - Restore focus in `FocusScope` containment without scrolling the dialog into view - [@mvanhorn](https://github.com/mvanhorn) - [PR](https://github.com/adobe/react-spectrum/pull/10339) | ||
| - Add an `addGlobalScrollListener` utility and close overlays on scroll events inside a shadow DOM - [@pzaczkiewicz-athenahealth](https://github.com/pzaczkiewicz-athenahealth) - [PR](https://github.com/adobe/react-spectrum/pull/10188) |
There was a problem hiding this comment.
probably don't want to advertise a new utility, just say something like, fix component in shadowdom
| - Guard the percentage calculation against `NaN` when `min` equals `max` - [@mvanhorn](https://github.com/mvanhorn) - [PR](https://github.com/adobe/react-spectrum/pull/10169) | ||
| ### Overlays | ||
| - Fix `ariaHideOutside` behavior inside a shadow DOM - [@snowystinger](https://github.com/snowystinger) - [PR](https://github.com/adobe/react-spectrum/pull/10288) | ||
| - Restore focus in `FocusScope` containment without scrolling the dialog into view - [@mvanhorn](https://github.com/mvanhorn) - [PR](https://github.com/adobe/react-spectrum/pull/10339) |
There was a problem hiding this comment.
| - Restore focus in `FocusScope` containment without scrolling the dialog into view - [@mvanhorn](https://github.com/mvanhorn) - [PR](https://github.com/adobe/react-spectrum/pull/10339) | |
| - Restore focus in `FocusScope` containment without scrolling - [@mvanhorn](https://github.com/mvanhorn) - [PR](https://github.com/adobe/react-spectrum/pull/10339) |
| ### TokenField | ||
| - Add TokenField component - [@devongovett](https://github.com/devongovett) - [PR](https://github.com/adobe/react-spectrum/pull/10318) | ||
| ### Tree | ||
| - Add `DEFAULT_SLOT` to `TreeItem`'s `CheckboxContext` - [@mvanhorn](https://github.com/mvanhorn) - [PR](https://github.com/adobe/react-spectrum/pull/10274) |
There was a problem hiding this comment.
| - Add `DEFAULT_SLOT` to `TreeItem`'s `CheckboxContext` - [@mvanhorn](https://github.com/mvanhorn) - [PR](https://github.com/adobe/react-spectrum/pull/10274) | |
| - Fix non-selection checkboxes in Tree items - [@mvanhorn](https://github.com/mvanhorn) - [PR](https://github.com/adobe/react-spectrum/pull/10274) |
| ### useId | ||
| - Prevent `FinalizationRegistry` entries from accumulating on every re-render - [@reidbarber](https://github.com/reidbarber) - [PR](https://github.com/adobe/react-spectrum/pull/9853) | ||
| ### useKeyboard | ||
| - Adds support for chaining multiple keyboard shortcut handlers - [@snowystinger](https://github.com/snowystinger) - [PR](https://github.com/adobe/react-spectrum/pull/10200), [PR](https://github.com/adobe/react-spectrum/pull/10322), [PR](https://github.com/adobe/react-spectrum/pull/10285) |
There was a problem hiding this comment.
| - Adds support for chaining multiple keyboard shortcut handlers - [@snowystinger](https://github.com/snowystinger) - [PR](https://github.com/adobe/react-spectrum/pull/10200), [PR](https://github.com/adobe/react-spectrum/pull/10322), [PR](https://github.com/adobe/react-spectrum/pull/10285) | |
| - Adds support for new shortcuts that allow declarative finer control over stopping propagation and preventing default - [@snowystinger](https://github.com/snowystinger) - [PR](https://github.com/adobe/react-spectrum/pull/10200), [PR](https://github.com/adobe/react-spectrum/pull/10322), [PR](https://github.com/adobe/react-spectrum/pull/10285) |
|
|
||
| # v1.7.0 | ||
|
|
||
| This release introduces the new [SideNav](SideNav) component for building app navigation sidebars, adds trigger="contextMenu" support to [Menu](Menu)'s MenuTrigger, and lets [Table](TableView) cells hold interactive content like TextFields. It also includes a prose style macro for rendering markdown-like content and other bug fixes! |
There was a problem hiding this comment.
alpha AI package line item shouldn't be included
| This release introduces the new [SideNav](SideNav) component for building app navigation sidebars, adds trigger="contextMenu" support to [Menu](Menu)'s MenuTrigger, and lets [Table](TableView) cells hold interactive content like TextFields. It also includes a prose style macro for rendering markdown-like content and other bug fixes! | |
| This release introduces the new [SideNav](SideNav) component for building app navigation sidebars, adds trigger="contextMenu" support to [Menu](Menu)'s MenuTrigger, and lets [Table](TableView) cells hold interactive content like TextFields. |
| ## Changelog | ||
|
|
||
| ### General Changes | ||
| - Adds support for chaining multiple keyboard shortcut handlers - [@snowystinger](https://github.com/snowystinger) - [PR](https://github.com/adobe/react-spectrum/pull/10200) |
There was a problem hiding this comment.
| - Adds support for chaining multiple keyboard shortcut handlers - [@snowystinger](https://github.com/snowystinger) - [PR](https://github.com/adobe/react-spectrum/pull/10200) | |
| - Prevent keyboard event leaks - [@snowystinger](https://github.com/snowystinger) - [PR](https://github.com/adobe/react-spectrum/pull/10200) |
| ### Prose | ||
| - Adds a `prose` style macro for styling semantic HTML elements - [@devongovett](https://github.com/devongovett) - [PR](https://github.com/adobe/react-spectrum/pull/10161) |
Closes
✅ Pull Request Checklist:
📝 Test Instructions:
🧢 Your Project: