Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lexical/plain-text

Package Overview
Dependencies
Maintainers
5
Versions
211
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lexical/plain-text - npm Package Versions

1
21

0.7.0

Diff

Changelog

Source

v0.7.0 (2022-12-09)

Lexical 0.7 includes some breaking changes, including:

  • Removal of $cloneContents from @lexical/selection
  • Changes to PlainTextPlugin and RichTextPlugin with regards to how placeholders are handled
  • Pressing tab with the RichTextPlugin no longer indents by default, use the LexicalTabIndentationPlugin for this behavior.
  • The unstable helper function unstable_convertLegacyJSONEditorState has been removed. This was always meant to be a temporary work-around to allow developers to convert their formats to the new JSON format rather than using the actual editor state internals directly.

Lexical 0.7 includes performance and usability improvements. Notably, Lexical has a new internal architecture that allows for much better performance with large documents of content. Lexical also now provides a way to handle selection between blocks of content by providing an emulated cursor (make sure you add a blockCursor theme to your editor config to use it).

  • Revert "Fix exportJSON return types for ParagraphNode and LineBreakNode" (#3521) John Flockton
  • Move default language setting to Tokenizer (#3368) mizuno
  • Improve LexicalTreeView around large EditorStates (#3515) Dominic Gannaway
  • Improve insertBefore, insertAfter, replace selection restoration logic (#3516) Dominic Gannaway
  • ⏸ [0.7] Switch the internal architecture to utilize doubly linked lists (#3480) Dominic Gannaway
  • Add missing annotation to internal field of Textnode (#3514) John Flockton
  • ⏸ [0.7] Remove indentation keyboard shortcuts in RTE set up (#2855) John Flockton
  • Fix dom-less reconciliation (#3506) Maksim Horbachevsky
  • ⏸ [0.7] Add block emulated cursors (#3434) Dominic Gannaway
  • ⏸ [0.7] Customize Placeholder visibility (#3379) Gerard Rovira
  • ⏸ [0.7] Remove IntentionallyMarkedAsDirtyElement from public API (#3422) John Flockton
  • ⏸ [0.7] Remove $cloneContents (#3483) Dominic Gannaway
  • Update Playwright (#3511) Dominic Gannaway
  • Improve Auto Embed (#3505) Tyler Bainbridge
  • Skip tab e2e test in webkit (#3512) Dominic Gannaway
  • Add poll and speech-to-text plugin examples (#3484) akmarzhan1
  • Fix typedef for wrapNodes (#3492) Maksim Horbachevsky
trueadm
published 0.6.5 •

Changelog

Source

v0.6.5 (2022-12-05)

  • Fix mutation listener for when DOM moves occur (#3493) Dominic Gannaway
  • Fix decorator input selection (#3491) Dominic Gannaway
  • Inform users that they need to install headless (#3487) Phillip Burch
  • Revert changes (#3481) Dominic Gannaway
  • Improve selection performance on large updates (#3478) Dominic Gannaway
  • Support TypeScript language in code nodes (#3469) Jonas Bengtsson
  • Improve element splicing and node removal (#3454) Dominic Gannaway
  • Add start and end as format types (#3472) John Flockton
  • Fix test for collab (#3471) Dominic Gannaway
  • Add e2e test for text replacement (#3470) Dominic Gannaway
  • Markdown decorators export fallback to text content (#3464) Maksim Horbachevsky
  • Update conditional statement in LexicalAutoFocusPlugin to the same logic as in LexicalSelection (#3466) John Flockton
  • Add Node Replacement Docs (#3462) Acy Watson
  • Inherit headless flag from parent editor (#3459) Maksim Horbachevsky
  • Change heading to paragraph when heading is empty (#3455) John Flockton
  • Show caret while drag&drop (#3300) Gerard Rovira
  • Fix superscript & subscript not being converted from html string (#3453) Rajatava Mukherjee%
trueadm
published 0.6.4 •

Changelog

Source

v0.6.4 (2022-11-29)

  • Fix issue with readonly image resizing (#3448) John Flockton
  • check CAN_USE_DOM before accessing document (#3444) ProvidenceXz
  • Add type="button" to <button /> components (#3447) Scott Agirs
  • Add horizontal rule plugin (#3446) akmarzhan1
  • Add isEditable listener to nested composer (#3445) John Flockton
  • Exports serialized node types (#3436) tolkienfan2
  • Fix bug in selectPointOnNode (#3443) Dominic Gannaway
  • $splitNode & $insertNodeToNearestRoot for root selection (#3442) Maksim Horbachevsky
  • Updated exportJSON types (#3231) Matt Reid
  • Fix deleting empty paragraphs (#3261) Petar Smolic
  • Change command priority in typeahead (#3441) John Flockton
  • Fix grammary 2 (#3438) Dominic Gannaway
  • Don't unnecessarily mark text nodes as dirty (#3437) John Flockton
  • fix: playground bug(floating link editor not closing with 'Escape' key (#2941) Joseph Jang
  • Fix a couple of bugs with Headings creation (#3425) John Flockton
  • Fix text replacement via insertText (#3429) Dominic Gannaway
  • Add link list properties to nodes (#3424) Dominic Gannaway
  • Fix browser selection with horizontal rule (#3418) Dominic Gannaway
  • add excalidraw plugin example (#3412) akmarzhan1
  • Fix $splitNode Flow type (#3411) Gerard Rovira
  • Fix insertNodes merging logic (#3413) Dominic Gannaway
  • refactor: React composer initialConfig to exported type (#3396) Simon Proper
trueadm
published 0.6.3 •

Changelog

Source

v0.6.3 (2022-11-23)

  • Apply event propagation between all event types (#3401) Dominic Gannaway
  • Fix selection bug in code highlighting transform (#3405) Dominic Gannaway
  • Exports SerializedNodes from @lexical/table (#3393) tolkienfan2
  • Ensure we do not render br after non inline decorators (#3406) Dominic Gannaway
  • Fix collapsible bugs (#3404) Maksim Horbachevsky
  • Add more invariants around insertion of text nodes into root (#3399) Dominic Gannaway
  • Fix bad selection on $wrapNodes (#3400) Dominic Gannaway
  • Fix insertNodes bug around isolated decorators (#3403) Dominic Gannaway
  • Fix element indent duplication (#3398) Dominic Gannaway
  • Fix bug in scrollIntoViewIfNeeded (#3397) Dominic Gannaway
  • Fix md links regexp (#3395) Maksim Horbachevsky
  • Add LexicalNodeEventPlugin to @lexical/react (#3392) Dominic Gannaway
  • Add rel noopener by default (#3386) Acy Watson
  • Fix selection bugs with decorators (#3391) Dominic Gannaway
  • Fix experimental tables (#3390) Dominic Gannaway
trueadm
published 0.6.2 •

Changelog

Source

v0.6.2 (2022-11-21)

  • Validate dragon origin (#3385) Dominic Gannaway
  • Remove AutoScrollPlugin and properly fix scrollIntoViewIfNeeded (#3378) Dominic Gannaway
  • LinkPlugin to support link paste (#3371) Gerard Rovira
  • Add node replacement system to core (#3367) Dominic Gannaway
  • Fix prettier & lint (#3377) Gerard Rovira
  • add collapsible container plugin example (#3369) akmarzhan1
  • add embed plugins (#3363) akmarzhan1
  • Add markdown plugin example (#3354) akmarzhan1
  • add sticky notes plugin example (#3345) akmarzhan1
  • Improve $insertNodeToNearestRoot (#3344) Maksim Horbachevsky
  • Add $splitNode & $copyNode (#3342) Maksim Horbachevsky
  • feat: make icons and popups dynamic & change file structure (#3336) Adithya Vardhan
  • Add table plugin example (#3341) akmarzhan1
  • Fix content loss when EditorState + update race condition (#3337) Gerard Rovira
  • Filter out mixed files + content copy pasting (#3329) Maksim Horbachevsky
  • Bump loader-utils from 2.0.2 to 2.0.3 (#3333) dependabot[bot]
  • Bump loader-utils from 2.0.2 to 2.0.3 in /packages/lexical-website (#3334) dependabot[bot]
  • Update YJS (#3313) Maksim Horbachevsky
  • Update nodes.md (#3332) UncleKhab
  • Add list plugin example (#3324) akmarzhan1
  • Disable table addons on non-editable (#3317) Gerard Rovira
  • Nit FlowFixMe hint (#3310) Gerard Rovira
  • feat: Extend support for link target and rel to lexical-react’s AutoLinkPlugin (#3209) Andrew Patton
  • docs: set ErrorBoundary props to PlainTextPlugin (#3326) unvalley
  • Update collab cursor colors to pass a11y contrast ratio (#3315) Maksim Horbachevsky
acywatson
published 0.6.1-next.0 •

zurfyx
published 0.6.0 •

Changelog

Source

v0.6.0 (2022-10-31)

  • [0.6] Make RichTextPlugin ErrorBoundary mandatory (#3295) Gerard Rovira
  • Optional decorator nodes selection with keyboard navigation (#3292) Ruslan Piliuta
  • Keep selection if state was not cloned (#3294) Maksim Horbachevsky
  • Preserve selection for pending state (#3293) Maksim Horbachevsky
  • Handle quotes in increment-version changelog (#3291) Gerard Rovira
  • v0.5.1-next.2 (#3286) Acy Watson
  • filter by branch (#3285) Acy Watson
  • Release on matching tag push to main (#3284) Acy Watson
  • Drag & drop & paste with precision (#3274) Gerard Rovira
  • Fix initial content tables initialization (#3281) Maksim Horbachevsky
  • selection.modify to respect ShadowRoot (#3279) Gerard Rovira
  • Add root theme class (#3277) Maksim Horbachevsky
  • Improve Collab cursor, add custom cursorColor (#3248) Dragoș Străinu
  • fix nodesOfType return type (#3262) Acy Watson
  • Copy styles to new object when patching (#3273) Acy Watson
  • Revert "Select end if root has no children (#3254)" (#3276) Acy Watson
  • Fix paste CodeNode leak and and empty links (#3194) Gerard Rovira
  • Use set (#3258) John Flockton
  • Do not reconcile terminating linebreak for inline elements (#3268) Maksim Horbachevsky
  • Revert "v0.5.1-next.2 (#3269)" (#3272) Acy Watson
  • v0.5.1-next.2 (#3269) Acy Watson
  • Add inline plugin example for images (#3216) akmarzhan1
  • Select end if root has no children (#3254) John Flockton
  • Remove isHighlighting flag (#3256) John Flockton
  • Allow clearing styles with $patchStyleText (#3247) Brian Birtles
  • Improve logistics around table/grid selection (#3251) Tyler Bainbridge
  • Fix error boundary fallback (#3249) Maksim Horbachevsky
  • Allow skipping auto-scroll action on selection change (#3220) Ruslan Piliuta
  • pref(lexical-playground): reduce rendering consumption by creating compositing layers (#3069) 子瞻 Luci
  • chore: add new eslint-plugin with rule no-optional-chaining locally (#3233) Shanmughapriyan S
  • Handle left part of match (#3245) Clément Bacouelle
  • Expose Tokenizer interface to accept custom tokenizer other than Prism at @lexical/code (#3243) mizuno
  • fix list paste issue (#3239) Acy Watson
  • Fix typos in Markdown documentation (#3236) Mikko Tirronen
  • allow overriding mark node create fn (#3229) Acy Watson
  • Add SerializedMarkNode flow type (#3228) Acy Watson
  • Handle bad list item children gracefully (#3226) Gerard Rovira
  • Memoize ErrorBoundary (#3225) Gerard Rovira
  • Fix TableSelection Mouse Up Propagation Bug (#3223) Tyler Bainbridge
  • Don't apply element based offsets to text nodes in $patchStyleText (#3126) Brian Birtles
  • fix: fixed dual text appearance problem and removed outline scrollbar (#3207) Karam Qaoud
  • Safely remove parent elements when deleting at anchor offset 0 (#3213) Tyler Bainbridge
  • Allow Block change with GridSelection (#3212) Tyler Bainbridge
  • v0.5.1-next.1 (#3205) Acy Watson
  • Fix frozen selection (#3204) Acy Watson
  • fix: draggable block icon is invisible in read-only mode (#3198) Karam Qaoud
  • Fix sample code (lexical-react) (#3206) Yuki Shindo
  • chore: optimize svg (#3199) Strek
  • Fix $patchStyleText when the selection is anchored to the end of a text node (#3116) Brian Birtles
  • releases (#3203) Acy Watson
  • v0.5.1-next.0 (#3201) Acy Watson
  • fix: play time travel after reaching maximum range (#3197) Shanmughapriyan S
  • Add type to commands for logging (#2942) John Flockton
  • Built-in Error/SuspenseBoundaries for React DecoratorNodes (#3178) Gerard Rovira
  • Add flushSync option to update() (#3119) Maksim Horbachevsky
  • nightly and dev releases (#3192) Acy Watson
  • Make the ComponentPicker independent of the Toolbar (#3142) EgonBolton
  • docs: Fixed broken link (#3190) Simon Proper
  • Fix insertNodes when replacing content adjacent to an inline element (#3137) Brian Birtles
  • Fix nested editor cut (#3177) Maksim Horbachevsky
  • Fix copy-paste CodeBlock with BR (#3174) Gerard Rovira
  • TreeView editor basics (#3153) Gerard Rovira
  • Remove development notice (#3171) Dominic Gannaway
  • Fix flow types for root.select() (#3168) Maksim Horbachevsky
  • Fix linting error (#3165) John Flockton
  • Check if DOM is accessible when calling getSelection (#3162) Lee Sanghyeon
  • ref(selection): separate @lexical/selection/index into multiple files (#3145) quochuy
  • Ignore empty class names in addClassNamesToElement (#3159) Acy Watson
  • remove repeated comments (#3154) Zuckjet
  • FF Node/Grid copy-paste support (#3147) Gerard Rovira
  • feat: add icons to extension and change build (#3140) Adithya Vardhan
  • Add Emoji Picker to Playground (#3122) Tyler Bainbridge
  • Ignore mutations which do not have target node (#3120) Ruslan Piliuta
  • flow types (#3133) Acy Watson
  • support multiple classes (#3134) Acy Watson
  • Fix regex (#3132) Tyler Bainbridge
  • Fix typeahead ref typedef (#3131) Maksim Horbachevsky
  • Add className prop to typeahead plugin (#3124) Acy Watson
  • Fix table paste (#3129) Gerard Rovira
  • Fix GridSelection comparison (#3118) Gerard Rovira
  • [0.6] More Typeahead Changes (#3112) Tyler Bainbridge
  • Fix typeahead import (#3117) Maksim Horbachevsky
  • Fix npm install on M1 macs (#3114) Nils Tijtgat
  • Update createHeadlessEditor to match createEditor typedef (#3111) Maksim Horbachevsky
  • fix(lexical-playground): draggable blockplugin uses unexposed apis (#3109) 子瞻 Luci
  • Typeaheads: Remove hard-coded "bottom" alignment (Breaking change) (#3104) Tyler Bainbridge
  • Typeaheads: Add scroll command and increase priority (#3106) Tyler Bainbridge
  • Lower key navigation command priority for Tables (#3107) Tyler Bainbridge
  • Fix DOM availability check (#3102) Maksim Horbachevsky
  • copyToClipboard to return success (#3105) Gerard Rovira
  • chore: add e2e test for draggable-block-plugin (#3090) 子瞻 Luci
  • Fix flow for $insertGeneratedNodes (#3101) Gerard Rovira
  • Make onClose optional on Flow Types. (#3091) Tyler Bainbridge
  • Add collapsible container plugin (#3082) Maksim Horbachevsky
  • Double-trigger hack for high-fidelity Node/Grid selection (#3080) Gerard Rovira
  • Tweet fallback to text on copy (#3088) Gerard Rovira
  • Add logic to catch separators (#3084) John Flockton
  • Add open/close callbacks to menu plugins (#3087) Tyler Bainbridge
  • Merge markdown E2E tests into one file (#3086) John Flockton
  • Add some inline documentation (#3076) Acy Watson
  • Removed extra 'is' in line 9 (#3083) Samuel Adeboye Folaranmi
  • fix(lexical-playground): read-only mode (#3081) 子瞻 Luci
  • Fix Resize and Scroll Issues (#3079) Tyler Bainbridge
  • Fix oncall annotation issue missing from some files (#3075) John Flockton
  • Add oncall annotation (#3071) John Flockton
  • chore(lexical-playground): add resizability back to regular tables (#3068) Yaroslav Kiliba
  • Update faq.md (#3070) Yun Feng
  • fix(lexical-clipboard): pasting from google docs (#3063) 子瞻 Luci
  • Update theming.md (#3067) Christian Owusu
  • Update intro.md (#3064) Christian Owusu
  • package-lock Gerard Rovira
  • v0.5.0 (#3059) Gerard Rovira
  • feat: add export/import DOM for horizontal rule node (#3057) Samuel Martineau
acywatson
published 0.5.1-next.2 •

acywatson
published 0.5.1-next.1 •

acywatson
published 0.5.1-next.0 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc