Skip to content

Add LDH integration seams - #23

Merged
namedgraph merged 1 commit into
masterfrom
feature/ldh-integration-seams
Jul 27, 2026
Merged

Add LDH integration seams#23
namedgraph merged 1 commit into
masterfrom
feature/ldh-integration-seams

Conversation

@namedgraph

Copy link
Copy Markdown
Member

Summary

  • Extract local:init-state and local:init-editor from main so hosts can call init-state from their own entry point and defer init-editor until the first editable region appears
  • Extract local:init-region from init-editing's per-root body; seeds <p><br/> in empty regions; callable per-region for hosts that render editable regions lazily
  • Add local:toolbar-host() seam function (default: ixsl:page()//nav) so hosts without a <nav> element can override the toolbar mount point
  • Rename breadcrumb ids to rdfa-editor-breadcrumb-* to avoid collisions with host page ids; update CSS and navigate.xsl accordingly

Test plan

  • Demo (index.xsl entry point) still initializes as before — main now delegates to local:init-state + local:init-editor
  • Empty editable regions get a seeded <p><br/> and accept a caret
  • Breadcrumb bar renders and updates correctly with renamed ids
  • No regressions in existing browser tests (features.mjs, hardening.mjs)

🤖 Generated with Claude Code

…-host

- Extract local:init-state and local:init-editor from main; hosts can call
  init-state from their own entry point and init-editor lazily on first region
- Extract local:init-region from init-editing's per-root body; seeds <p><br/>
  in empty regions so they can hold a caret; callable per-region for hosts
  that render editable regions after the initial page load
- Add local:toolbar-host() seam function (default: ixsl:page()//nav); hosts
  without a nav element override this to point at their own chrome
- Rename breadcrumb ids to rdfa-editor-breadcrumb-* to avoid collisions with
  host page ids; update CSS and navigate.xsl references accordingly

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@namedgraph
namedgraph merged commit 75b0289 into master Jul 27, 2026
2 checks passed
@namedgraph
namedgraph deleted the feature/ldh-integration-seams branch July 27, 2026 09:11
@namedgraph
namedgraph restored the feature/ldh-integration-seams branch July 27, 2026 10:43
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.

1 participant