64 Commits

Author SHA1 Message Date
ecbd46e5c0 Remove lexical-helpers (#1466)
* Remove lexical-helpers

* Add midding ref
2022-04-09 00:43:30 -07:00
1d1959748d Convert Lexical Playground from CRA to Vite (#1463)
Convert Lexical Playground from CRA to Vite (#1463)
2022-04-09 00:43:30 -07:00
3fee5aa29a remove cursors from dom when reload (#1449)
* remove cursors from dom when reload

* address feedback
2022-04-09 00:43:29 -07:00
59afd22c1c Housekeeping: create more self-contained packages for Lexical (#1447)
* Add lexical-token package for HashtagNode

* Garden work

* Fix unit tests
2022-04-09 00:43:29 -07:00
75ed1f191f SSR + readonly (#1387) 2022-04-09 00:43:27 -07:00
5503ca6e64 Add clipboard package, remove lexical event helpers (#1361)
* add clipboard package, remove lexica event helpers

* bump version after rebase

* rename - wip

* rename things
2022-04-09 00:43:27 -07:00
993a2ea4ed Create Flow definition file for Lexical core (#1350) 2022-04-09 00:43:25 -07:00
646222a7f4 Make root selectable + many other changes (#1316)
* Make root selectable

More changes

fix e2e

Ensure HR has text content

* Fix e2e test

* Fix tables

* See if this fixes the collab e2e tests...

* Aha!

* Fix some styling
2022-04-09 00:43:24 -07:00
70981013c5 Create "lexical-table" package. (#1301) 2022-04-09 00:43:24 -07:00
03bed35c26 Fix issues around HorizontalRule node (#1304)
* Fix issues around HorizontalRule node

* Fix unit test
2022-04-09 00:43:23 -07:00
44e8daeae4 add lexical-file package (#1286) 2022-04-09 00:43:23 -07:00
1c856e80ec Add sort keys and sort imports lint rules, and enable fix+format on save (#1209)
* Add sort keys rule and update configs so it works

Bump version of flowtype eslint plugin to fix bugs with autofixing

* Add sort imports fixable lint rule

* Run lint fix and prettier on whole repo 

* Fix unit tests broken by key sorting
2022-04-09 00:43:22 -07:00
055e6410be Move node registration to editor creation phase (#1252)
* Move node registration to editor creation phase

* Fix OverflowedNode

* Fix unit test

* Fix bugs
2022-04-09 00:43:21 -07:00
2020bbadd5 Move list feature into a separate package (#1239)
* wip

* fix build issues

* fix imports

* bump version
2022-04-09 00:43:21 -07:00
ae7de39e69 Move ParagraphNode to Lexical core (#1237) 2022-04-09 00:43:20 -07:00
739a224ec6 Identify DOM node types better + remove dead code (#1198) 2022-04-09 00:43:18 -07:00
309d48c498 Move event handling into core (#1193)
* Move event handling into core

* Add flag

* Fix mentions

* Improve code imports

* Fix conflict
2022-04-09 00:43:18 -07:00
19c0434e1f Deprecate lexical-react hooks, preferring plugins (#1162)
* Deprecate lexical-react hooks, preferring plugins

* Fix rename
2022-04-09 00:43:18 -07:00
afd48ca5a8 Auto link plugin (#1050)
* Auto link plugin

* Update to logic w/LinkNode (based on internal version) usage for further discussion

* Move node into core, plugin into react package

* Add onChange callback when auto-link is created/updated/deleted
2022-04-09 00:43:17 -07:00
96913f8c06 Add LexicalListPlugin to lexical-react (#1082) 2022-04-09 00:43:17 -07:00
9b1c5a3a2b Move CodeHighlightNode to core, move TableActionsPlugin back to playground (#1081) 2022-04-09 00:43:16 -07:00
d372fb8c39 Expose LinkPlugin to lexical-react (#1080)
* Expose LinkPlugin to lexical-react

* Attempt to fix package-lock
2022-04-09 00:43:16 -07:00
2a676e109b Move Table plugins to LexicalReact package (#1079) 2022-04-09 00:43:16 -07:00
c1a31b59f7 lexical-core -> lexical (folder) (#1077) 2022-04-09 00:43:16 -07:00
f820ad8740 Rename LexicalContentEditable (#1076)
* Rename LexicalContentEditable

* Fix package-logc
2022-04-09 00:43:16 -07:00
40e9001745 NPM lexical-core -> lexical (#1075) 2022-04-09 00:43:16 -07:00
55695c29da Fix package naming -> @lexical (#1071)
More fixes

Fix packages

Fix package-lock
2022-04-09 00:43:15 -07:00
22956573e5 Further improvements to Plain/Rich text plugin composition (#1070)
* Further improvements to Plain/Rich text plugin composition
2022-04-09 00:43:15 -07:00
eafccee59c Improve plugin composition (#1066)
* Improve plugin composition
2022-04-09 00:43:15 -07:00
a8daa27e7f File import/export (#1056)
* File import/export

* LexicalFileHelpers
2022-04-09 00:43:15 -07:00
9501cbadef Rename project to Lexical (#1037)
* Rename project to Lexical
2022-04-09 00:43:13 -07:00
3f555441c0 Add withSubscriptions outline-react helper (#1031)
* Add withSubscriptions outline-react helper

* Fix jest
2022-04-09 00:43:12 -07:00
0ecc0467d9 Improve key command system (#1028)
Remove key helpers

Clean up

Clean up again
2022-04-09 00:43:12 -07:00
97ad9a3b81 Remove __flags and move properties to TextNode (#972) 2022-04-09 00:43:09 -07:00
fd89494d7e Improve Element Class Name Handling (#958) 2022-04-09 00:43:08 -07:00
c693b04088 Add Basic Tables to Outline Playground (#938)
* Add OutlineTableNode

* Fix linting errors

* Add Basic Tables to Outline Playground

* Block -> Element Node

* remove code changes
2022-04-09 00:43:07 -07:00
32eeeeb282 transform invariants in unit tests (#918) 2022-04-09 00:43:07 -07:00
eb9797b63e Make 2nd argument of editor.update and options object (#912)
* Make 2nd argument of editor.update and options object

* origin -> tag
2022-04-09 00:43:06 -07:00
4b9540096d Add collaboration unit test (#884) 2022-04-09 00:43:06 -07:00
70e13adbd4 Captions work (#857)
* Captions WIP

WIP

WIP

WIP

* Fix unit tests

* Fix unit tests again

* Fix e2e test
2022-04-09 00:43:05 -07:00
e92262b708 Root helpers (#798) 2022-04-09 00:43:02 -07:00
cfeecc9fc3 Deprecate editor.isEmpty (#793) 2022-04-09 00:43:02 -07:00
5cc158c94b Nicely format packages (#769)
* Nicely format packages

* Fix unit
2022-04-09 00:43:01 -07:00
01202034af Make outline-react event handlers an Outline Helpers module (#654) 2022-04-09 00:42:56 -07:00
1bf44d2a6f DFS Helper (#639) 2022-04-09 00:42:55 -07:00
1f2979bc8d Remove unnecessary code (#618)
* Remove unnecessary code
2022-04-09 00:42:53 -07:00
a07de43295 Move imagenode to playground (#532)
* Move ImageNode to playground

* Move ImageNode to playground
2022-04-09 00:42:50 -07:00
f41a725099 Change how segmented nodes work (#467)
* Change how segmented nodes work

* More tweaks and fixes

* More fixes

* More fixes

* Make immutable nodes contenteditable=false

* Fix e2e tests

* Windows fixes

* More fixes

* More fixes
2022-04-09 00:42:24 -07:00
8ec8324d26 Refactor hashtags into extension (#422)
* Refactor hashtags into extension

* Update e2e tests

Co-authored-by: Dominic Gannaway <trueadm@users.noreply.github.com>
2022-04-09 00:42:23 -07:00
eb4b842753 Unit tests (#427)
* Update OutlineRootNode unit tests

* Update OutlineLinkeBreakNode unit tests

* Add sanitizeHTML helper

* Add OutlineLinkNode unit tests
2022-04-09 00:42:22 -07:00