103 Commits

Author SHA1 Message Date
08f61ba0d2 Rename GridSelection to TableSelection (#5534) 2024-01-24 10:52:28 -05:00
d679e1ff28 Retain TextNode whitespace on export (#4969) 2023-09-06 09:45:39 -04:00
92bb46f4f9 Add error formating params (#4629) 2023-06-09 16:38:58 -04:00
c315ac91f8 Add error formating params (#4627) 2023-06-09 13:06:43 -04:00
a82b7547ea Better Error Message for exportJSON type (#4556) 2023-05-28 15:01:38 +01:00
e1ef6beaf9 Update codes.json (#4320) 2023-04-13 16:21:57 -04:00
f910e243ec Table - cell merging (#4046) 2023-03-08 12:33:02 -05:00
31bc120f50 v0.7.5 (#3630) 2022-12-23 13:18:17 +00:00
bbe2bb493d Add more invariants around insertion of text nodes into root (#3399)
* Update codes

* Add code

* Fix typo

* Fix typo

* Fix unit tests
2022-11-23 15:48:16 +00:00
d248de02b7 Handle bad list item children gracefully (#3226) 2022-10-20 02:13:35 +01:00
28e1c7b59c Update collab errors, related cleanup (#2971) 2022-09-08 22:09:41 -04:00
1580cbc268 Use window of current default view (#2918)
* Use window of current default view

* Use window of current default view

* Fix codes
2022-08-31 14:53:51 +01:00
9b25ea5158 chore(auto-link-plugin): fix invariant message for node registration check (#2790)
* chore(auto-link-plugin): fix invariant message for node registration check

* extract code to update code 74
2022-08-08 14:34:55 -07:00
229d86bded Website error codes - lexical.dev/error/<code> (#2574)
* setup website error codes

* generated files

* Revert "generated files"

This reverts commit 84b4f790d572f4a04f9fd1f4f495e31135158e5c.

* Revert "setup website error codes"

This reverts commit 0875ff6fc89c88bebf5e4999baa1475447db9dea.

* use query params instead

* .
2022-07-03 11:21:29 -07:00
f7748dc27e fix: typo edtior to editor (#2560) 2022-06-29 15:39:06 +01:00
96bdfb1c85 Add header to scripts (#2432) 2022-06-15 17:31:12 +01:00
02cb62f89a Fix invariant and update codes (#2315) 2022-06-02 10:50:52 +01:00
8f9a903785 Add unstable serialization logic for node JSON parsing (#2157)
* Add unstable serialization logic for node JSON parsing

* Ooops

* Freeze editorState

* Migrate code node

* Address feedback

* Address feedback

* Address feedback

* Address more feedback

* Address more feedback

* Address FlowFixMes

* update types

* prettier

* remove import

* polish types

* fix types

* add ut for unstable APIs

* fix rebase issue

* oops

* wip

* more nodes

* types

* prettier

* add tests for core nodes

* update codes.json

* Merge global files

* Rename global type defs

* Update packages/lexical-link/src/index.js

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

* fix linter an versions

* more versions

Co-authored-by: acywatson <acy.watson@gmail.com>
Co-authored-by: John Flockton <thegreatercurve@users.noreply.github.com>
Co-authored-by: Gerard Rovira <zurfyx@users.noreply.github.com>
2022-05-19 11:44:52 -07:00
02d27c0463 Update codes.json (#2095)
* Update codes.json

* Remove unused codes
2022-05-06 02:18:03 +01:00
ac9dd0192e Fix Lexical typed commands (#1598)
* Fix Lexical typed commands

More clean ups

* Update codes
2022-04-09 00:43:36 -07:00
db26e25d7a Use for...of for performance optimizations (#1509)
* Use for...of for performance optimizations

* Fix ignores

* Remove console times
2022-04-09 00:43:33 -07:00
a2f5127b18 Warn when clone prototypes can be misleading (#1496) 2022-04-09 00:43:32 -07:00
047c89db69 Update codes 2022-04-09 00:43:25 -07:00
96e9e310be Attached/detached nodes listener (#1292) 2022-04-09 00:43:24 -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
aa2d0777e2 Fix indenting on backspace for lists and paragraphs (#1225)
* fix indenting on backspace for lists and paragraphs

* switch to overriding getIndent
2022-04-09 00:43:20 -07:00
b2f73f34e8 Fix insertText bug (#1197)
* Fix insertText bug

* Update codes
2022-04-09 00:43:18 -07:00
09b887e61a Meta copyright (#1060) 2022-04-09 00:43:14 -07:00
3549331226 List theme levels (#1039)
* add list theme classes by level.

* refactor and add tests

* fix tests

* fix e2e tests

* fix lint error
2022-04-09 00:43:13 -07:00
9501cbadef Rename project to Lexical (#1037)
* Rename project to Lexical
2022-04-09 00:43:13 -07:00
76ba850726 Update codes.json 2022-04-09 00:43:09 -07:00
6e08e02ff5 Invariant when node.__parent !== parent.__children (#963) 2022-04-09 00:43:08 -07:00
da917f474f Rename BlockNode to ElementNode (#931)
* Rename BlockNode to ElementNode

* Rename OutlineBlockNode.test

Co-authored-by: Gerard Rovira <gerardrovira@fb.com>
2022-04-09 00:43:07 -07:00
f7230c3dd0 More collaboration fixes and tweaks (#911)
* More collaboration fixes and tweaks

* Fix codes

* Add extract codes
2022-04-09 00:43:06 -07:00
1950b4d4ff Rewrite invariant message for transforms infinite loop 2022-04-09 00:43:06 -07:00
b5b46d72f1 Precise (typed) Node transforms (#906) 2022-04-09 00:43:06 -07:00
47cbf19d08 Node.getType()/registerNode (#902) 2022-04-09 00:43:06 -07:00
44b3eb3405 Fix codes.json 2022-04-09 00:43:06 -07:00
b606f6cedb Update codes.json 2022-04-09 00:43:06 -07:00
107457a840 Rename OutlineController -> OutlineEditorContext (#871) 2022-04-09 00:43:05 -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
ca7cb2b4d7 Add controller shared context (#852) 2022-04-09 00:43:04 -07:00
c3115fc213 Add cloneNotNeeded Set, remove depth from dirtySubTrees (#844)
* Add cloneNotNeeded Set, remove depth from dirtySubTrees

* Fix codes

* Fix codes
2022-04-09 00:43:04 -07:00
031981a282 Fix controller bug (#843) 2022-04-09 00:43:04 -07:00
1d05afcd39 Add OutlineController + refactor playground (#835) 2022-04-09 00:43:04 -07:00
65fbcc4b7d Add block indent/alignment (#817)
* Add block format flag

WIP

WIP

Fix codes

Fix logic

Fix logic

Fix e2e test

* Fix e2e test

* Fix e2e test

* Fix e2e test
2022-04-09 00:43:03 -07:00
692fb30e90 Fix pacakge dependencies for collab (#812) 2022-04-09 00:43:03 -07:00
e3fd8e1bde Fix build 2022-04-09 00:43:03 -07:00
eaa6a6cdfe Rename View to State (#786) 2022-04-09 00:43:01 -07:00