Skip to content

[Breaking Change][lexical-offset][lexical] Chore: Deprecate the broken/undocumented/untested OffsetView and export $createChildrenArray from lexical#8350

Merged
etrepum merged 3 commits intofacebook:mainfrom
etrepum:offsetview-deprecation
Apr 12, 2026

Conversation

@etrepum
Copy link
Copy Markdown
Collaborator

@etrepum etrepum commented Apr 12, 2026

Description

OffsetView / $createOffsetView never worked correctly, doesn't have documentation, doesn't have tests, and has no usage anywhere else in the lexical monorepo. This deprecates it and moves the only used function $createChildrenArray (which is a copy of an internal lexical function) to a re-export of the functionality from the lexical module.

There is certainly a use case for something like OffsetView but there's no reason to believe that trying to fix it in situ is any better than starting over from first principles.

Closes #8312
Closes #7580

Test plan

Existing test suite coverage of collab's usage of $createChildrenArray

…n/undocumented/untested OffsetView and export $createChildrenArray from lexical
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 12, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
lexical Ready Ready Preview, Comment Apr 12, 2026 7:25pm
lexical-playground Ready Ready Preview, Comment Apr 12, 2026 7:25pm

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 12, 2026
@etrepum etrepum added the extended-tests Run extended e2e tests on a PR label Apr 12, 2026
@etrepum etrepum added this pull request to the merge queue Apr 12, 2026
Merged via the queue into facebook:main with commit 470d133 Apr 12, 2026
37 checks passed
@etrepum etrepum deleted the offsetview-deprecation branch April 12, 2026 20:07
@etrepum etrepum mentioned this pull request Apr 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. extended-tests Run extended e2e tests on a PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: @lexical/offset makes invalid selection if offset points to inline node

2 participants