Skip to content

fix: Require AI disclaimer in PromptField - #10380

Merged
LFDanLu merged 4 commits into
mainfrom
require_ai_disclaimer
Jul 28, 2026
Merged

fix: Require AI disclaimer in PromptField#10380
LFDanLu merged 4 commits into
mainfrom
require_ai_disclaimer

Conversation

@LFDanLu

@LFDanLu LFDanLu commented Jul 28, 2026

Copy link
Copy Markdown
Member

Testing followup + audit

✅ 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

📝 Test Instructions:

🧢 Your Project:

RSP

@LFDanLu LFDanLu changed the title fix: Require AI disclaimer in PromptField and add additional intl strings fix: Require AI disclaimer in PromptField Jul 28, 2026
@LFDanLu
LFDanLu marked this pull request as ready for review July 28, 2026 18:07
@LFDanLu LFDanLu added release small review Easy to review PR labels Jul 28, 2026
@rspbot

rspbot commented Jul 28, 2026

Copy link
Copy Markdown

@rspbot

rspbot commented Jul 28, 2026

Copy link
Copy Markdown

@rspbot

rspbot commented Jul 28, 2026

Copy link
Copy Markdown
## 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: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'
 }

@rspbot

rspbot commented Jul 28, 2026

Copy link
Copy Markdown

Agent Skills Changes

Modified (2)
Install

React Spectrum S2:

npx skills add https://d1pzu54gtk2aed.cloudfront.net/pr/f57876257867a02afa51cec066e0cae0c050892d/

React Aria:

npx skills add https://d5iwopk28bdhl.cloudfront.net/pr/f57876257867a02afa51cec066e0cae0c050892d/

@LFDanLu
LFDanLu added this pull request to the merge queue Jul 28, 2026
Merged via the queue into main with commit 5cbe6a6 Jul 28, 2026
32 checks passed
@LFDanLu
LFDanLu deleted the require_ai_disclaimer branch July 28, 2026 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release small review Easy to review PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants