Repository navigation
Move el and rove into the library, and write Leaf's text field by its tag - #6998
Merged
Merged
Conversation
… tag One step of the package-interface redesign (step six, group lib-dom). `el` moves to lib/elements.js and `rove` to lib/roving.js: neither reads anything of Leaf's. A widget writes Leaf's text field by its tag, `leaf-text`, in place of the `TEXT_FIELD` constant; the runtime keeps the constant for its own readers. `setChildren`, `setChildLists` and `setRenderedChildren` stay in the package API: each places nodes through `move` (dom-move.js), which keeps the user's focus and selection in a moved node through hooks Leaf installs, and `move` stays Leaf's. dom-children.js's header now says so.
# Conflicts: # packages/file-editor/widgets/lf-file-editor.js
…ur comments a review flagged
# Conflicts: # packages/playwright/widgets/lf-trace.js
leaf-agent
approved these changes
Nov 24, 2026
max-sixty
added a commit
that referenced
this pull request
Nov 24, 2026
Brings in main's six newer commits, through e7d5808 (#6998). One conflict, in the imports of browser/runtime/annotation-overlay/margin-projection.js. This branch imports `focusByKey` and `focusKey` from carry.js, so that Back returns the user to where they were in a card. #6998 moved `rove` out of focus.js into lib/roving.js and imports it from there. The resolution keeps both imports. The rest of the file merged cleanly, as main plus this branch's card changes. None of the incoming commits touches history.js, version.js, prepaint.js, bootstrap.js, carry.js, document-inputs.js or leaf.js. Their thread changes are these: - #6995 changes how a widget says its seats changed (`lf-layout`) and releases an outlet through the surface handle. - #6997 changes how a live sample's growth is held. - #6998 moves `el` and `rove` into the library. None of them changes thread destinations, the entry's record or the handoff. > _This was written by Claude Code on behalf of max-sixty_
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
One step of the package-interface redesign (step six, group
lib-dom): shared web code leaves the package API for the library, and a widget writes Leaf's text field by its tag.elmoves tolib/elements.jsandrovetolib/roving.js, since neither reads anything of Leaf's. A widget builds its text box asoffer("leaf-text"), the tag the options package's CSS already writes, in place of theTEXT_FIELDconstant; the runtime keeps the constant for its own readers. The package API goes from 112 names to 109.To weigh:
setChildren,setChildListsandsetRenderedChildreneach place nodes throughmove(dom-move.js), which keeps focus in a moved node, andsetChildListsalso puts the page's selection back through dom-move.js.movestays Leaf's, so they stay with it; dom-children.js's header now says why it is not library code.elorrovefromwidget-api.jsfails to load until its import changes;page check --renderreports it.Ran
pnpm run check, pre-commit, 13 browser tests and eight hold-still cases by node id, andleaf-dev probe --base origin/mainon six pages in Chromium and Firefox, whose arms read the same.