56 Commits

Author SHA1 Message Date
9c093bc587 v0.26.0 (#7265)
Co-authored-by: Lexical GitHub Actions Bot <>
2025-02-28 23:31:35 +00:00
f43807fc99 [lexical] Feature: add a generic state property to all nodes (#7117)
Co-authored-by: Bob Ippolito <bob@redivi.com>
2025-02-27 16:33:37 +00:00
8cbc5d4f64 Add SelectionAlwaysOnDisplay plugin (#6872) 2024-11-27 19:12:28 +00:00
510720e727 [lexical-react] Fix: Fix React.startTransition on Webpack + React 17 (#6517)
Co-authored-by: guohao <guohao@huoban.com>
2024-08-15 02:17:35 +00:00
bd26794d34 [lexical-react][lexical-playground] sync draggable block plugin to www (#6397) 2024-07-17 06:16:06 +00:00
6a45fc371e fix: yjs collaboration plugin in react strict mode (#6271) 2024-06-12 01:14:12 +00:00
53f6f1d716 [lexical-react] Feature: React 19 unit tests (#6048) 2024-05-22 02:24:52 +00:00
956ae8b55b [lexical-react] Breaking change: Deprecate public default exports (#6088) 2024-05-16 21:40:34 +00:00
ff98c26097 feat(@lexical/eslint-plugin): new package with eslint rules for lexical (#5908) 2024-05-05 11:41:59 -06:00
a0bb9b056a chore: allow tsc to typecheck tests, fix type issues in those tests (#5982) 2024-05-02 17:58:18 -04:00
881258be7a Refactor build scripts and npm package process (#5876) 2024-04-25 16:17:31 -06:00
c0cca39759 Revert "Revert "feat(@lexical/devtools): Added TreeView rendering instead of a simple textarea"" (#5864) 2024-04-10 10:40:04 +01:00
4fb4c8bf0a Revert "feat(@lexical/devtools): Added TreeView rendering instead of a simple textarea" (#5861) 2024-04-10 00:20:06 +01:00
dc607587ff feat(@lexical/devtools): Added TreeView rendering instead of a simple textarea (#5830) 2024-04-08 22:07:02 -04:00
e9f43a96a3 feat(@lexical/devtools): Added basic extension scaffolding (#5747) 2024-04-02 14:40:24 -04:00
edae3d36ef Node fork modules & moduleResolution bundler (#5774) 2024-04-02 00:33:51 +01:00
69754ac50d fix: unify class name splitting/filtering with normalizeClassNames (#5649) 2024-02-23 09:50:15 -07:00
8a4ac97b76 Fix typechecking issues in unit tests (#5462) 2024-01-08 09:45:39 -07:00
11c86513fa Fix path alias typo (#5340) 2023-12-06 12:57:54 -07:00
351cc61932 Add EditorRef plugin (#4747) 2023-07-05 11:30:20 -04:00
0b4b281046 Basic Context Menu (behind Switch) (#4285) 2023-05-23 12:20:43 -04:00
ddcf5be337 Generalize Menu Logic (#4284) 2023-05-08 14:54:13 -04:00
f77d7c7459 Add @react/LexicalClickableLinkPlugin (#4316) 2023-04-18 11:13:07 -04:00
d85f0f0fb6 [0.9] Remove experimental flag from content plugins (#4036) 2023-03-08 11:50:11 -07:00
8033d76969 Remove remaining deprecated hooks (#3782) 2023-03-06 20:20:24 +00:00
fcf2330f19 perf(playground): load prettier and its parsers on demand in code block (#3637) 2023-02-08 15:26:28 +00:00
3e8231fe96 Remove deprecated modules from core code base (#3729) 2023-01-24 08:33:53 +00:00
8daf7b8012 Move horizontal rule plugin to lexical/react (#3751) 2023-01-23 14:04:49 +00:00
6e65c989c0 Add TabIndentationPlugin to playground. (#3632) 2022-12-23 18:15:23 -07:00
560593d77b Fix iframe selection issues (#3573) 2022-12-17 13:32:23 +00:00
0b7c0760cd Remove VERSION (#3531) 2022-12-12 08:34:05 +00:00
b8925d46c3 ⏸ [0.7] Customize Placeholder visibility (#3379) 2022-12-07 19:35:34 +00:00
a70640718f Add LexicalNodeEventPlugin to @lexical/react (#3392)
* Add LexicalNodeEventPlugin to @lexical/react

* Include editor
2022-11-22 13:05:47 +00:00
15b3ead2f0 Remove AutoScrollPlugin and properly fix scrollIntoViewIfNeeded (#3378)
* Remove AutoScrollPlugin and properly fix scrollIntoViewIfNeeded

* Fix element scrolling bugs

* Remove redundant tag
2022-11-19 17:38:34 +00:00
89a4593cc0 [0.6] Make RichTextPlugin ErrorBoundary mandatory (#3295) 2022-10-31 13:32:58 -04:00
b162fe9839 Drag & drop & paste with precision (#3274) 2022-10-28 18:39:11 +01:00
c433e74956 Read only validation server (#2899)
Read only validation server
2022-08-31 12:17:12 +01:00
3f339a700b Add autogenerated TypeDoc docs (#2837)
* upgrade docusaurus

* add typedoc deps

* add typedoc documentation

* patched plugin

* update module names

* add file header

* revert eslint changes

* shuffle dependencies

* lint

* remove duplicate headers

* move API to separate topnav and sidebar

* rename modules
2022-08-17 21:33:40 -06:00
8aebc59eed chore: Move useCollaborationContext to dedicated file (#2777) 2022-08-08 09:03:08 +01:00
9299d029ba Add LexicalAutoEmbedPlugin and (Playground)AutoEmbedPlugin. (#2704) 2022-08-05 09:53:34 -04:00
e9dc03b3c1 Add TableOfContentsPlugin (#2634)
* Fixed getStyleObjectFromRawCSS function to work for unformatted css strings

* Testing that  handles unformatted css text

* Testing that $getStyleObjectFromRawCss handles unformatted css

* Added TableOfContents

* Renamed TableOfContetnsPlugin file name and added flow file

* Added TableOfContentsPlugin to config files and added styling

* Fixed types

* Added TableOfContentsList as a seperate module

* Fixed type of tag from string to HeadingTagType

* Table of contents updates as user scrolls

* Wrapped plugin in a feature

* Deleted package-lock.json

* Fixed conditioanl rendering syntax

* Removed extra parameter

* package-lock

* fix imports

* Update packages/lexical-playground/src/plugins/TableOfContentsPlugin.tsx

Co-authored-by: Gerard Rovira <zurfyx@users.noreply.github.com>

* Added sticky styling and handled text overflow

* Table of contents updates automtaically on scroll without observing all heading nodes

* Update table correctly  when headings are not visible but exist either up or down

* Fix failing E2E

* Changed isTableOfContentes to showTableOfContents in settings

* Added useEffect to fix memory leak

* Hoisted functions that don't use props

* Renamed isTableOfContets to showTableOfContents

* Changing selectedHeading by observing page top

* resolved lint error

* Refactored scroll up logic

* Added comments

* Added better css

* Changed place of toc div to fix failing test

* Fixed adjacent headings scrolling

* Fixed adjacent headings bug

* Renamed helper methods

* Fixed test

* Added dependency array to useEffect

* Added TableOfContents to dependency array

* Updated dependeny array in useEffect

Co-authored-by: Karam Qaoud <kqaoud@fb.com>
Co-authored-by: Gerard Rovira <zurfyx@users.noreply.github.com>
2022-07-18 18:57:13 +01:00
11ad8f14bb Lexical Typeaheads (#2534) 2022-07-12 10:36:21 -04:00
ec9134ceda Export Klass from Lexical root (#2533) 2022-06-27 20:48:59 +01:00
b70d217b28 Migrate to TS strict mode 6/n (#2496)
* Make suggested amends from @trueadm

* Migrate files from playground
2022-06-23 08:34:35 +01:00
5be29e5005 initializeEditorState on LexicalComposer (#2425) 2022-06-16 14:31:50 +01:00
ddbe465e70 Remove utility-types (#2413) 2022-06-15 10:43:14 +01:00
239129f373 GitHub CI run tsc (#2420) 2022-06-15 09:58:00 +01:00
c26e41d595 Autogenerate TypeScript declaration files (#2359)
* Remove .d.ts and fix type errors

* Fix failing test

* Upgrade roll up to remove maxlisteners warning

* Refactor type generation and make build script run in sequence to avoid OOM errors in GitHub actions

* Small change

* Fix playground TS errors
2022-06-14 10:42:43 +01:00
82f4365a5e Move HTML<->Lexical functions to new package, @lexical/html. (#2246) 2022-05-24 16:26:53 -04:00
c8b7add27d Migrate last 2 packages to TS (10/n) (#2237)
* Run migration scripts

* Fix more difficult types

* Remove shared modules

* debug failing build

* Fix small bugs

* Remove unnecessary types for getLatest and getWritable

* Fix failing unit test

* Fix small type error in playground due to empty editor config
2022-05-24 14:15:39 +01:00