0.3.0 (June 2, 2022)
Note: this release contains a number of breaking changes.
Major Changes
- JSON parsing has changed from previous versions when serializing/parsing EditorState. See https://lexical.dev/docs/concepts/serialization.
- Custom nodes that do not implement
importDOM
/exportDOM
/importJSON
/exportJSON
may trigger a warning in DEV. - Imports from the Lexical npm packages that were previously default exports are now all named exports.
All Changes
- Fix various JSON/HTML issues (#2317)
- Add includeHeaders argument to INSERT_TABLE_COMMAND (#2300)
- Fix invariant and update codes (#2315)
- Stengthen onClick conditional (#2314)
- fix mispositioning of treeview caret (#2309)
- Remove unstable JSON serialization functions + unify copy+paste to be HTML (#2241)
- Normalize decorator warnings (#2291)
- Improve DEV warnings for node methods (#2290)
- move toggleLink to lexical/link (#2239)
- Revise $hasUpdateTag (#2281)
- Improve scroll plugin (#2282)
- Expose $getUpdateTags and $addUpdateTag (#2279)
- Improve copy + paste logic (#2276)
- Fix bug in $createNodesFromDOM (#2275)
- Simplify runtime logic (#2272)
- Fix placeholder race conditions on load (#2270)
- Provide legacy editor state JSON conversion (#2269)
- fix(code-block): move to start/move to end (#2257)
- Rename $rootTextContentCurry -> $rootTextContent (#2018)
- Alter sequence for commitPendingUpdates (#2262)
- Fix bug in trimTextContentFromAnchor (#2265)
- Check for frozen selection only on dev env (#2264)
- Move HTML<->Lexical functions to new package, @lexical/html. (#2246)
- Expose $parseSerializedNode (#2253)
- feat: drop down keyboard navigation (#1985)
- Add MaxLengthPlugin (#2254)
- Trim surrounding whitespace before applying text formatting during markdown export (#2251)
- Expose RootNode to be used in node transform (#2243)
- Rename insert text command (#2242)
- Skip underscores for links (non-intraword format) (#2191)
- Add missing types (#2225)
- Support Strikethrough and italic paste from Google Docs (#2220)
- Fix text replacement event handling (#2203)
- Ensure selection is not prematurely nulled out on blur (#2158)
- Improve useDecorators sequencing (#2200)
- Adjust selection to be after decorator node when moving selection to the end of decorator/linebreak (#2162)
- add runtime check for list node and list item node (#2196)
- Remove default exports from synced packages (#2193)
- Fix Safari IME issues (#2185)
- Ensure window.event is valid (#2184)
- Delete unused variable dfsAncestor (#2173)
- Add utility types as dep (#2177)
- Update LexicalMarkdownShortcutPlugin.d.ts (#2160)
- Replace element node with list item instead of appending. Fix #2142 (#2146)