Skip to content

feat: (WIP) Allowing for more user provided events in PromptField for analytics tracking - #10479

Draft
LFDanLu wants to merge 1 commit into
mainfrom
8-18_coworker_followups
Draft

feat: (WIP) Allowing for more user provided events in PromptField for analytics tracking#10479
LFDanLu wants to merge 1 commit into
mainfrom
8-18_coworker_followups

Conversation

@LFDanLu

@LFDanLu LFDanLu commented Aug 18, 2026

Copy link
Copy Markdown
Member

Scope TODO, will add more as I find them in Coworker

✅ Pull Request Checklist:

  • Included link to corresponding React Spectrum GitHub Issue.
  • Added/updated unit tests and storybook for this change (for new code or code which already has tests).
  • Filled out test instructions.
  • Updated documentation (if it already exists for this component).
  • Looked at the Accessibility Practices for this feature - Aria Practices
  • I understand every change in this PR and can explain why it's there.
  • If AI-assisted, I followed our AI contribution guidance and pointed my assistant at CLAUDE.md.

📝 Test Instructions:

🧢 Your Project:

RSP

@LFDanLu
LFDanLu force-pushed the 8-18_coworker_followups branch from e7dfc48 to 338cf32 Compare August 18, 2026 22:45
@rspbot

rspbot commented Aug 18, 2026

Copy link
Copy Markdown

@rspbot

rspbot commented Aug 18, 2026

Copy link
Copy Markdown

@rspbot

rspbot commented Aug 18, 2026

Copy link
Copy Markdown
## API Changes

@react-spectrum/ai

/@react-spectrum/ai:AttachFileMenuItem

 AttachFileMenuItem {
-
+  aria-label?: 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
+  shouldCloseOnSelect?: boolean
+  styles?: StylesProp
+  textValue?: string
+  value?: T
 }

/@react-spectrum/ai:InsertMenuButton

 InsertMenuButton {
   children: React.ReactNode
+  onOpenChange?: (boolean) => void
 }

/@react-spectrum/ai:InsertMenuItemProps

 InsertMenuItemProps {
   children: React.ReactNode
+  onOpenChange?: (boolean) => void
 }

/@react-spectrum/ai:AttachFileMenuItemProps

+AttachFileMenuItemProps {
+  aria-label?: 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
+  shouldCloseOnSelect?: boolean
+  styles?: StylesProp
+  textValue?: string
+  value?: T
+}

@rspbot

rspbot commented Aug 18, 2026

Copy link
Copy Markdown

Agent Skills Changes

Modified (4)
Install

React Spectrum S2:

npx skills add https://d1pzu54gtk2aed.cloudfront.net/pr/338cf32b450aa567e30e83a9ca923e305f2c776a/

React Aria:

npx skills add https://d5iwopk28bdhl.cloudfront.net/pr/338cf32b450aa567e30e83a9ca923e305f2c776a/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants