Skip to content

feat(sdk): add actions.scrollTo(target) for extensions - #700

Open
mhaack wants to merge 2 commits into
mainfrom
selsec
Open

feat(sdk): add actions.scrollTo(target) for extensions#700
mhaack wants to merge 2 commits into
mainfrom
selsec

Conversation

@mhaack

@mhaack mhaack commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds actions.scrollTo(target) to DA_SDK (nx/utils/sdk.js), letting BYO-plugin extensions ask the host editor to scroll to/select a block, content item, or section.
  • target is { type: 'block', blockIndex }, { type: 'section', sectionIndex }, or { type: 'content', proseIndex, kind } — posted as { action: 'scrollTo', details: target }, matching the existing fire-and-forget pattern of sendText/setHref/setHash/closeLibrary/showPanel.
  • Pairs with adobe/da-live's PR #1286 (adds the host-side handler that receives this message). Both sides are additive and inert alone — this action is unreachable without the da-live handler, and vice versa nothing breaks if either ships first.

Test plan

  • Unit tests added covering all three target shapes (test/nx/utils/sdk.test.js)
  • Full unit suite green: 1555 passed, 0 failed

🤖 Generated with Claude Code

mhaack and others added 2 commits August 31, 2026 17:19
Adds the scrollTo action to the DA SDK, allowing BYO-plugin extensions to
tell the host editor to scroll to or select a block, content item, or
section. Follows the same postMessage pattern as existing SDK actions.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@aem-code-sync

aem-code-sync Bot commented Aug 31, 2026

Copy link
Copy Markdown

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch.
In case there are problems, just click the checkbox below to rerun the respective action.

  • Re-sync branch
Commits

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.

3 participants