Skip to content

fix(focal-point): load block library via schema-free shared loader - #1277

Open
usman-khalid wants to merge 3 commits into
mainfrom
blocklib
Open

fix(focal-point): load block library via schema-free shared loader#1277
usman-khalid wants to merge 3 commits into
mainfrom
blocklib

Conversation

@usman-khalid

@usman-khalid usman-khalid commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Bringing back @hannessolo's work from #1155 which got closed by accident due to a branch naming conflict.

hannessolo and others added 2 commits July 21, 2026 12:23
imageFocalPoint runs in both the edit and canvas editors, but it read the
block library through the edit-side da-library loader, whose eager HTML
parsing reads window.view.state.schema. In the canvas editor window.view
is undefined, so the focal-point icon failed to initialize.

Extract the canvas block-library loader (which stores raw DOM and needs no
schema) into blocks/shared/block-library.js and point imageFocalPoint at it.
Canvas call sites now import from shared; the canvas-only AEM Assets plugin
injection stays in canvas and is layered on in getCanvasToolPanelViews.
The shared module sources config helpers from blocks/shared/utils.js,
dropping the nx dependency.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@aem-code-sync

aem-code-sync Bot commented Aug 26, 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

@usman-khalid usman-khalid changed the title Blocklib fix(focal-point): load block library via schema-free shared loader Aug 26, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

2 participants