chore: export various props from mono package, narrow types, prop renames, docs updates - #10383
Merged
Conversation
|
Build successful! 🎉 |
snowystinger
previously approved these changes
Jul 29, 2026
|
Build successful! 🎉 |
## API Changes
react-aria-components/react-aria-components:PreviewTrigger PreviewTrigger {
children: ReactNode
- closeDelay?: number = 500
+ closeDelay?: number = 200
defaultOpen?: boolean
- delay?: number = 1500
+ delay?: number = 600
isDisabled?: boolean
isOpen?: boolean
onOpenChange?: (boolean) => void
}/react-aria-components:PreviewTriggerProps PreviewTriggerProps {
children: ReactNode
- closeDelay?: number = 500
+ closeDelay?: number = 200
defaultOpen?: boolean
- delay?: number = 1500
+ delay?: number = 600
isDisabled?: boolean
isOpen?: boolean
onOpenChange?: (boolean) => void
}@react-spectrum/ai/@react-spectrum/ai:Attachment Attachment {
- allowsArrowNavigation?: boolean
aria-describedby?: string
aria-details?: string
aria-label?: string
aria-labelledby?: string
children: ReactNode | (AttachmentRenderProps) => ReactNode
density?: 'compact' | 'regular' | 'spacious' = 'regular'
download?: boolean | string
- focusMode?: 'child' | 'row'
href?: Href
hrefLang?: string
id?: Key
isDisabled?: boolean
onAction?: () => void
onPress?: (PressEvent) => void
onPressChange?: (boolean) => void
onPressEnd?: (PressEvent) => void
onPressStart?: (PressEvent) => void
onPressUp?: (PressEvent) => void
ping?: string
referrerPolicy?: HTMLAttributeReferrerPolicy
rel?: string
render?: DOMRenderFunction<keyof React.JSX.IntrinsicElements, TagRenderProps>
routerOptions?: RouterOptions
size?: 'XS' | 'S' | 'M' | 'L' | 'XL' = 'M'
styles?: StyleString
target?: HTMLAttributeAnchorTarget
textValue?: string
uploadProgress?: number
value?: T
variant?: 'primary' | 'secondary' | 'tertiary' | 'quiet' = 'primary'
}/@react-spectrum/ai:AutoLinkingTokenFieldValue-AutoLinkingTokenFieldValue {
- caretPosition: Position
- constructor: (readonly Array<TokenFieldSegment<T>>, TokenFieldValueOptions) => void
- delete: (Position, Intl.Segmenter, any, any) => this
- deleteLine: (Position, any, any) => this
- endCoalescing: () => void
- findBoundaryWithSegmenter: (Position, Intl.Segmenter, any) => Position | null
- findLineBoundary: (Position, any) => Position | null
- findText: (Position, any, string | RegExp) => Position | null
- redo: () => this
- replaceRange: (Position, Position, string, any) => this
- replaceRangeWithSegments: (Position, Position, Array<TokenFieldSegment<T>>, any) => this
- segments: readonly Array<TokenFieldSegment<T>>
- slice: (Position, Position) => this
- toString: () => string
- tokenize: (string) => Array<TokenFieldSegment>
- undo: () => this
- withCaretPosition: (Position) => this
-}/@react-spectrum/ai:CommandMenuItem CommandMenuItem {
- UNSAFE_className?: UnsafeClassName
- UNSAFE_style?: CSSProperties
aria-label?: string
children: ReactNode
- download?: boolean | string
- href?: Href
- hrefLang?: string
id?: Key
isDisabled?: boolean
onAction?: () => void
onBlur?: (FocusEvent<Target>) => void
onFocus?: (FocusEvent<Target>) => void
onFocusChange?: (boolean) => void
onHoverChange?: (boolean) => void
onHoverEnd?: (HoverEvent) => void
onHoverStart?: (HoverEvent) => void
onPress?: (PressEvent) => void
onPressChange?: (boolean) => void
onPressEnd?: (PressEvent) => void
onPressStart?: (PressEvent) => void
onPressUp?: (PressEvent) => void
- ping?: string
- referrerPolicy?: HTMLAttributeReferrerPolicy
- rel?: string
- routerOptions?: RouterOptions
shouldCloseOnSelect?: boolean
styles?: StylesProp
- target?: HTMLAttributeAnchorTarget
textValue?: string
value?: T
}/@react-spectrum/ai:InsertTextMenuItem InsertTextMenuItem {
- UNSAFE_className?: UnsafeClassName
- UNSAFE_style?: CSSProperties
aria-label?: string
children: ReactNode
- download?: boolean | string
- href?: Href
- hrefLang?: string
id?: Key
isDisabled?: boolean
onAction?: () => void
onBlur?: (FocusEvent<Target>) => void
onFocus?: (FocusEvent<Target>) => void
onFocusChange?: (boolean) => void
onHoverChange?: (boolean) => void
onHoverEnd?: (HoverEvent) => void
onHoverStart?: (HoverEvent) => void
onPress?: (PressEvent) => void
onPressChange?: (boolean) => void
onPressEnd?: (PressEvent) => void
onPressStart?: (PressEvent) => void
onPressUp?: (PressEvent) => void
- ping?: string
- referrerPolicy?: HTMLAttributeReferrerPolicy
- rel?: string
- routerOptions?: RouterOptions
shouldCloseOnSelect?: boolean
styles?: StylesProp
- target?: HTMLAttributeAnchorTarget
textValue?: string
value?: T
}/@react-spectrum/ai:InsertTokenMenuItem InsertTokenMenuItem {
- UNSAFE_className?: UnsafeClassName
- UNSAFE_style?: CSSProperties
aria-label?: string
children: ReactNode
- download?: boolean | string
- href?: Href
- hrefLang?: string
id?: Key
isDisabled?: boolean
onAction?: () => void
onBlur?: (FocusEvent<Target>) => void
onFocus?: (FocusEvent<Target>) => void
onFocusChange?: (boolean) => void
onHoverChange?: (boolean) => void
onHoverEnd?: (HoverEvent) => void
onHoverStart?: (HoverEvent) => void
onPress?: (PressEvent) => void
onPressChange?: (boolean) => void
onPressEnd?: (PressEvent) => void
onPressStart?: (PressEvent) => void
onPressUp?: (PressEvent) => void
- ping?: string
- referrerPolicy?: HTMLAttributeReferrerPolicy
- rel?: string
- routerOptions?: RouterOptions
shouldCloseOnSelect?: boolean
styles?: StylesProp
- target?: HTMLAttributeAnchorTarget
textValue?: string
value?: T
}/@react-spectrum/ai:AttachmentProps AttachmentProps {
- allowsArrowNavigation?: boolean
aria-describedby?: string
aria-details?: string
aria-label?: string
aria-labelledby?: string
children: ReactNode | (AttachmentRenderProps) => ReactNode
density?: 'compact' | 'regular' | 'spacious' = 'regular'
download?: boolean | string
- focusMode?: 'child' | 'row'
href?: Href
hrefLang?: string
id?: Key
isDisabled?: boolean
onAction?: () => void
onPress?: (PressEvent) => void
onPressChange?: (boolean) => void
onPressEnd?: (PressEvent) => void
onPressStart?: (PressEvent) => void
onPressUp?: (PressEvent) => void
ping?: string
referrerPolicy?: HTMLAttributeReferrerPolicy
rel?: string
render?: DOMRenderFunction<keyof React.JSX.IntrinsicElements, TagRenderProps>
routerOptions?: RouterOptions
size?: 'XS' | 'S' | 'M' | 'L' | 'XL' = 'M'
styles?: StyleString
target?: HTMLAttributeAnchorTarget
textValue?: string
uploadProgress?: number
value?: T
variant?: 'primary' | 'secondary' | 'tertiary' | 'quiet' = 'primary'
}/@react-spectrum/ai:PromptTokenFieldPopoverProps PromptTokenFieldPopoverProps {
UNSAFE_className?: UnsafeClassName
UNSAFE_style?: CSSProperties
aria-describedby?: string
aria-details?: string
aria-label?: string
aria-labelledby?: string
arrowRef?: RefObject<Element | null>
boundaryElement?: Element = document.body
children?: ChildrenOrFunction<PopoverRenderProps>
containerPadding?: number = 12
crossOffset?: number = 0
defaultOpen?: boolean
filterAnchor?: Position | null
getTargetRect?: (Element) => DOMRect | null | undefined = target.getBoundingClientRect()
hideArrow?: boolean = false
isEntering?: boolean
isExiting?: boolean
isFocused?: boolean
isNonModal?: boolean
isOpen?: boolean
items?: Array<React.ReactNode> | null | Promise<Array<React.ReactNode> | null>
maxHeight?: number
offset?: number = 8
onBlurWithin?: (FocusEvent) => void
onFocusWithin?: (FocusEvent) => void
onFocusWithinChange?: (boolean) => void
onOpenChange?: (boolean) => void
placement?: Placement = 'bottom'
scrollRef?: RefObject<Element | null> = overlayRef
shouldFlip?: boolean = true
- shouldSkipAnimation?: boolean
size?: 'S' | 'M' | 'L'
slot?: string | null
styles?: StyleString
trigger?: string
}/@react-spectrum/ai:PromptFieldValue+PromptFieldValue {
+ caretPosition: Position
+ constructor: (readonly Array<TokenFieldSegment<T>>, TokenFieldValueOptions) => void
+ delete: (Position, Intl.Segmenter, any, any) => this
+ deleteLine: (Position, any, any) => this
+ endCoalescing: () => void
+ findBoundaryWithSegmenter: (Position, Intl.Segmenter, any) => Position | null
+ findLineBoundary: (Position, any) => Position | null
+ findText: (Position, any, string | RegExp) => Position | null
+ redo: () => this
+ replaceRange: (Position, Position, string, any) => this
+ replaceRangeWithSegments: (Position, Position, Array<TokenFieldSegment<T>>, any) => this
+ segments: readonly Array<TokenFieldSegment<T>>
+ slice: (Position, Position) => this
+ toString: () => string
+ tokenize: (string) => Array<TokenFieldSegment>
+ undo: () => this
+ withCaretPosition: (Position) => this
+}/@react-spectrum/ai:InsertTokenMenuItemProps+InsertTokenMenuItemProps {
+ aria-label?: string
+ children: ReactNode
+ id?: Key
+ isDisabled?: boolean
+ onAction?: () => void
+ onBlur?: (FocusEvent<Target>) => void
+ onFocus?: (FocusEvent<Target>) => void
+ onFocusChange?: (boolean) => void
+ onHoverChange?: (boolean) => void
+ onHoverEnd?: (HoverEvent) => void
+ onHoverStart?: (HoverEvent) => void
+ onPress?: (PressEvent) => void
+ onPressChange?: (boolean) => void
+ onPressEnd?: (PressEvent) => void
+ onPressStart?: (PressEvent) => void
+ onPressUp?: (PressEvent) => void
+ shouldCloseOnSelect?: boolean
+ styles?: StylesProp
+ textValue?: string
+ value?: T
+}/@react-spectrum/ai:InsertTextMenuItemProps+InsertTextMenuItemProps {
+ aria-label?: string
+ children: ReactNode
+ id?: Key
+ isDisabled?: boolean
+ onAction?: () => void
+ onBlur?: (FocusEvent<Target>) => void
+ onFocus?: (FocusEvent<Target>) => void
+ onFocusChange?: (boolean) => void
+ onHoverChange?: (boolean) => void
+ onHoverEnd?: (HoverEvent) => void
+ onHoverStart?: (HoverEvent) => void
+ onPress?: (PressEvent) => void
+ onPressChange?: (boolean) => void
+ onPressEnd?: (PressEvent) => void
+ onPressStart?: (PressEvent) => void
+ onPressUp?: (PressEvent) => void
+ shouldCloseOnSelect?: boolean
+ styles?: StylesProp
+ textValue?: string
+ value?: T
+}/@react-spectrum/ai:CommandMenuItemProps+CommandMenuItemProps {
+ aria-label?: string
+ children: ReactNode
+ id?: Key
+ isDisabled?: boolean
+ onAction?: () => void
+ onBlur?: (FocusEvent<Target>) => void
+ onFocus?: (FocusEvent<Target>) => void
+ onFocusChange?: (boolean) => void
+ onHoverChange?: (boolean) => void
+ onHoverEnd?: (HoverEvent) => void
+ onHoverStart?: (HoverEvent) => void
+ onPress?: (PressEvent) => void
+ onPressChange?: (boolean) => void
+ onPressEnd?: (PressEvent) => void
+ onPressStart?: (PressEvent) => void
+ onPressUp?: (PressEvent) => void
+ shouldCloseOnSelect?: boolean
+ styles?: StylesProp
+ textValue?: string
+ value?: T
+} |
Agent Skills ChangesModified (8)
InstallReact Spectrum S2: React Aria: |
snowystinger
approved these changes
Jul 29, 2026
devongovett
approved these changes
Jul 30, 2026
| export {TableLayout} from '../src/layout/TableLayout'; | ||
| export {WaterfallLayout} from '../src/layout/WaterfallLayout'; | ||
| export {useTokenFieldState} from '../src/tokenfield/useTokenFieldState'; | ||
| export {TokenFieldValue, Direction} from '../src/tokenfield/TokenFieldValue'; |
Member
There was a problem hiding this comment.
Just calling it Direction in this index file for all components seems kinda dangerous. Maybe we need to name it something more specific...
Member
There was a problem hiding this comment.
Yeah, i don't love it being "Direction", TokenSearchDirection? TokenFieldTextActionDirection?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
audit
✅ Pull Request Checklist:
📝 Test Instructions:
🧢 Your Project:
RSP