Skip to content

【Auto】Feat: Support onPaste event for AIChatInput#3137

Open
SudoUserReal wants to merge 1 commit intomainfrom
solve/issue-3132-1772000633276
Open

【Auto】Feat: Support onPaste event for AIChatInput#3137
SudoUserReal wants to merge 1 commit intomainfrom
solve/issue-3132-1772000633276

Conversation

@SudoUserReal
Copy link
Collaborator

中文模板 / Chinese Template

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Test Case
  • TypeScript definition update
  • Document improve
  • CI/CD improve
  • Branch sync
  • Other, please describe:

PR description

Fixes #3132

This PR adds a new onPaste prop to AIChatInput so consumers can listen to paste events on the input area.

To avoid breaking the existing internal paste-file upload behavior, the internal callback previously named onPaste (files-based) is renamed to onPasteFiles in RichTextInput, while the new onPaste is wired to the actual editable DOM node for event-level handling.

Please pay attention to the API separation (onPaste for clipboard events vs onPasteFiles for file paste handling) and ensure existing paste-file upload flows remain unchanged.

Changelog

🇨🇳 Chinese

  • Feat: AIChatInput 支持 onPaste 回调监听输入框粘贴事件,并保持原有粘贴文件上传逻辑不变

🇺🇸 English

  • Feat: Add onPaste event callback support for AIChatInput while preserving existing paste-file upload behavior

Checklist

  • Test or no need
  • Document or no need
  • Changelog or no need

Other

  • Skip Changelog

Additional information

This commit was automatically generated by Semi Issue Solver.
Closes #3132
@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 3226e27:

Sandbox Source
pr-story Configuration

@cypress
Copy link

cypress bot commented Feb 25, 2026

semi-design    Run #3455

Run Properties:  status check failed Failed #3455  •  git commit 953e661349 ℹ️: Merge 3226e2712c10295f0a8fde64e2b79b0528193214 into c889f07a167fe6e1bbf3c9de42f9...
Project semi-design
Branch Review solve/issue-3132-1772000633276
Run status status check failed Failed #3455
Run duration 08m 20s
Commit git commit 953e661349 ℹ️: Merge 3226e2712c10295f0a8fde64e2b79b0528193214 into c889f07a167fe6e1bbf3c9de42f9...
Committer SudoUser
View all properties for this run ↗︎

Test results
Tests that failed  Failures 1
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 13
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 290
⚠️ You've recorded test results over your free plan limit.
Upgrade your plan to view test results.
View all changes introduced in this branch ↗︎

Tests for review

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[AIChatInput] feature description for this component

1 participant