Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(useClipboard): rename "type" to "action" in getItems details #7841

Merged
merged 1 commit into from
Feb 28, 2025

Conversation

reidbarber
Copy link
Member

✅ 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:

@reidbarber reidbarber added small review Easy to review PR release labels Feb 27, 2025
@rspbot
Copy link

rspbot commented Feb 27, 2025

@rspbot
Copy link

rspbot commented Feb 27, 2025

## API Changes

@react-aria/dnd

/@react-aria/dnd:ClipboardProps

 ClipboardProps {
   getItems?: ({
-    type: 'cut' | 'copy'
+    action: 'cut' | 'copy'
 }) => Array<DragItem>
   isDisabled?: boolean
   onCopy?: () => void
   onCut?: () => void
 }

@reidbarber reidbarber added this pull request to the merge queue Feb 28, 2025
Merged via the queue into main with commit e0e86a9 Feb 28, 2025
30 checks passed
@reidbarber reidbarber deleted the useClipboard-rename-type-to-action branch February 28, 2025 00:24
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