Skip to content

feat(super-editor): add pointer event observability#2801

Merged
caio-pizzol merged 1 commit intomainfrom
SD-2494
Apr 26, 2026
Merged

feat(super-editor): add pointer event observability#2801
caio-pizzol merged 1 commit intomainfrom
SD-2494

Conversation

@mattConnHarbour
Copy link
Copy Markdown
Contributor

No description provided.

@linear
Copy link
Copy Markdown

linear Bot commented Apr 14, 2026

@github-actions
Copy link
Copy Markdown
Contributor

📦 Preview published: superdoc@1.25.0-pr.2801.1776792038

npm install superdoc@pr-2801

Copy link
Copy Markdown
Contributor

@caio-pizzol caio-pizzol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey @mattConnHarbour! good call on adding these :)

one small type thing inline.

pointerUp: [{ editor: Editor; event: PointerEvent }];

/** Called on right-click (local only, not broadcast via collaboration) */
rightClick: [{ editor: Editor; event: MouseEvent }];
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the value passed is a PointerEvent (it comes from the pointer-down handler), but you're typing it as MouseEvent. that hides pointer-only fields like pointerId. the other two events above have it right.

Suggested change
rightClick: [{ editor: Editor; event: MouseEvent }];
/** Called on right-click (local only, not broadcast via collaboration) */
rightClick: [{ editor: Editor; event: PointerEvent }];

same fix in EditorConfig.ts:521 for onRightClick.

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@caio-pizzol caio-pizzol added this pull request to the merge queue Apr 26, 2026
Merged via the queue into main with commit 6ef2aea Apr 26, 2026
57 checks passed
@caio-pizzol caio-pizzol deleted the SD-2494 branch April 26, 2026 11:53
@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented Apr 26, 2026

🎉 This PR is included in @superdoc-dev/mcp v0.3.0-next.3

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented Apr 26, 2026

🎉 This PR is included in superdoc v1.30.0-next.3

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented Apr 26, 2026

🎉 This PR is included in superdoc-cli v0.8.0-next.21

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented Apr 26, 2026

🎉 This PR is included in superdoc-sdk v1.8.0-next.3

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.

3 participants