feat: Chat API and design refinements - #10577
devongovett wants to merge 15 commits into
Conversation
|
Build successful! 🎉 |
|
Build successful! 🎉 |
|
Build successful! 🎉 |
This reverts commit 6c1cccc.
|
Build successful! 🎉 |
|
Build successful! 🎉 |
|
Build successful! 🎉 |
LFDanLu
left a comment
There was a problem hiding this comment.
looks good for the most part, just some small things I noticed
| import {DOMRef, forwardRefType, Node} from '@react-types/shared'; | ||
| import {filterDOMProps} from 'react-aria/filterDOMProps'; | ||
| import {focusRing, style, StyleString} from '@react-spectrum/s2/style' with {type: 'macro'}; | ||
| // @ts-ignore |
There was a problem hiding this comment.
mega nit, this is misplaced now, but tbh the intl file imports not having these don't even fail lint
| zIndex: 1 | ||
| })}> | ||
| <ThreadScrollButton> | ||
| <ActionButton slot="scroll" aria-label="Scroll to bottom"> |
| // TODO: for now we enforce this, but to be configurable? | ||
| style={ | ||
| { | ||
| <div |
There was a problem hiding this comment.
this outer div has the same styles as the div under it plus both add the user provided styles, is that intentional?
There was a problem hiding this comment.
hmmm i don't think that was intentional
| <ThreadScrollButton> | ||
| <ActionButton slot="scroll" aria-label="Scroll to bottom"> | ||
| <ChevronDown /> | ||
| </ActionButton> | ||
| </ThreadScrollButton> | ||
| </div> |
There was a problem hiding this comment.
now that we provide this for the user, do we need to export/document the scroll button anymore?
|
Build successful! 🎉 |
LFDanLu
left a comment
There was a problem hiding this comment.
pushed some small changes to remove extra instances of the scroll button, otherwise LGTM
|
Build successful! 🎉 |
## API Changes
@react-spectrum/ai/@react-spectrum/ai:AttachmentGrid-AttachmentGrid <T> {
- align?: 'start' | 'center' | 'end' = 'start'
- aria-describedby?: string
- aria-details?: string
- aria-label?: string
- aria-labelledby?: string
- children?: ReactNode | (T) => ReactNode
- dependencies?: ReadonlyArray<any>
- id?: string
- items?: Iterable<T>
- styles?: StyleString
-}/@react-spectrum/ai:AttachmentGridItem-AttachmentGridItem {
- aria-describedby?: string
- aria-details?: string
- aria-label?: string
- aria-labelledby?: string
- children: ReactNode
- id?: Key
- isInvalid?: boolean
- size?: 'XS' | 'S' | 'M' | 'L' | 'XL'
- styles?: StyleString
- textValue?: string
- uploadProgress?: number
-}/@react-spectrum/ai:ThreadScrollButton-ThreadScrollButton {
- children?: ReactNode
-}/@react-spectrum/ai:AttachmentGridProps-AttachmentGridProps <T> {
- align?: 'start' | 'center' | 'end' = 'start'
- aria-describedby?: string
- aria-details?: string
- aria-label?: string
- aria-labelledby?: string
- children?: ReactNode | (T) => ReactNode
- dependencies?: ReadonlyArray<any>
- id?: string
- items?: Iterable<T>
- styles?: StyleString
-}/@react-spectrum/ai:AttachmentGridItemProps-AttachmentGridItemProps {
- aria-describedby?: string
- aria-details?: string
- aria-label?: string
- aria-labelledby?: string
- children: ReactNode
- id?: Key
- isInvalid?: boolean
- size?: 'XS' | 'S' | 'M' | 'L' | 'XL'
- styles?: StyleString
- textValue?: string
- uploadProgress?: number
-}/@react-spectrum/ai:ThreadScrollButtonProps-ThreadScrollButtonProps {
- children?: ReactNode
-} |
Agent Skills ChangesModified (9)
InstallReact Spectrum S2: React Aria: |
TODO: