Skip to content

feat: public read API on ClipboardBinding (#24480) (CP: 25.2)#24552

Merged
Artur- merged 1 commit into
25.2from
cherry-pick-24480-to-25.2-1781000116073
Jun 9, 2026
Merged

feat: public read API on ClipboardBinding (#24480) (CP: 25.2)#24552
Artur- merged 1 commit into
25.2from
cherry-pick-24480-to-25.2-1781000116073

Conversation

@vaadin-bot

Copy link
Copy Markdown
Collaborator

This PR cherry-picks changes from the original PR #24480 to branch 25.2.

Original PR description

Clipboard.onClick(button).read(onPayload, onError) — and the
single-field convenience variants readText / readHtml — make the
read side reachable from the same binding entry point as the write
side, instead of forcing callers to instantiate the internal
ReadFromClipboardAction themselves.

ClipboardPayload moves out of trigger.internal into the public
clipboard package so it can sit in the read methods' signatures
without leaking an internal type, mirroring how ClipboardContent
already lives there for the write side. The private bind() helper
on ClipboardBinding is generalised to accept any Action so it can
route both write and read actions.

The read IT view is restructured into headed sections and gains
two new buttons (read-text, read-html); the IT picks up matching
scenarios that use the existing resolving-clipboard shim.

Clipboard.onClick(button).read(onPayload, onError) — and the
single-field convenience variants readText / readHtml — make the
read side reachable from the same binding entry point as the write
side, instead of forcing callers to instantiate the internal
ReadFromClipboardAction themselves.

ClipboardPayload moves out of trigger.internal into the public
clipboard package so it can sit in the read methods' signatures
without leaking an internal type, mirroring how ClipboardContent
already lives there for the write side. The private bind() helper
on ClipboardBinding is generalised to accept any Action so it can
route both write and read actions.

The read IT view is restructured into headed sections and gains
two new buttons (read-text, read-html); the IT picks up matching
scenarios that use the existing resolving-clipboard shim.
@sonarqubecloud

sonarqubecloud Bot commented Jun 9, 2026

Copy link
Copy Markdown

@github-actions github-actions Bot added the +1.0.0 label Jun 9, 2026
@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

Test Results

 1 437 files  ±0   1 437 suites  ±0   1h 21m 7s ⏱️ - 1m 45s
10 105 tests +5  10 037 ✅ +5  68 💤 ±0  0 ❌ ±0 
10 577 runs  +5  10 508 ✅ +5  69 💤 ±0  0 ❌ ±0 

Results for commit e463684. ± Comparison against base commit b513b5e.

@Artur- Artur- merged commit e038dfa into 25.2 Jun 9, 2026
33 checks passed
@Artur- Artur- deleted the cherry-pick-24480-to-25.2-1781000116073 branch June 9, 2026 10:35
@vaadin-bot

Copy link
Copy Markdown
Collaborator Author

This ticket/PR has been released with Vaadin 25.2.0-beta2.

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