95 Commits

Author SHA1 Message Date
b339ecf179 Remove depecated usage of %checks from Flow types (#5477) 2024-01-11 15:31:24 +00:00
2afcbbe985 [PR 1] Swap instance selection for BaseSelection in most cases (#5280)
Co-authored-by: icrosil <illiaolenchenko@fb.com>
2023-12-01 14:20:57 -05:00
02f01f160e Allow overriding HTML serialization behavior from the editor config. (#4254) 2023-09-15 11:13:22 -06:00
a0e7596748 Add nodes replacement support for nested composer (#4992) 2023-09-13 20:11:46 -04:00
c0fd48e65a Image resizer fix (#4722) 2023-06-29 16:07:08 -04:00
829bfcaf81 Fix ContentEditable Flow types (#4652) 2023-06-13 13:10:30 -04:00
9c18a9d9ec Fix Flow types (#4485) 2023-05-11 11:09:15 -04:00
ddcf5be337 Generalize Menu Logic (#4284) 2023-05-08 14:54:13 -04:00
fe940b94ef Tab support (#4436) 2023-05-06 11:06:00 +01:00
aac2981274 Table feature: background color (#4345) 2023-04-18 12:35:30 -04:00
f77d7c7459 Add @react/LexicalClickableLinkPlugin (#4316) 2023-04-18 11:13:07 -04:00
2b47f771b2 TablePlugin feature: cell merge (#4343) 2023-04-18 11:12:29 -04:00
9f297fac2f Upgrade Flow to 0.2 (#4264) 2023-04-05 09:39:33 -04:00
b38a3246d1 Add missing flow file (#4193) 2023-03-24 16:32:58 -04:00
2b611f4a5f Add a function to create a LinkMatcher based on a RegExp (#3972) 2023-03-14 10:17:25 +00: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
4a0a5eb42f Fix ContentEditable types for internal use (#3868) 2023-02-09 18:48:47 +00:00
88133dc258 [0.8] Update ContentEditable types (#3580)
Co-authored-by: John Flockton <johnflockton@Johns-MBP.cust.communityfibre.co.uk>
Co-authored-by: John Flockton <johnflockton@Johns-MacBook-Pro.local>
2023-02-09 13:06:17 +00:00
3e8231fe96 Remove deprecated modules from core code base (#3729) 2023-01-24 08:33:53 +00:00
35e7b4c9c2 Add missing Flow type for indentation plugin (#3527) 2022-12-09 20:35:52 +00:00
b8925d46c3 ⏸ [0.7] Customize Placeholder visibility (#3379) 2022-12-07 19:35:34 +00:00
d0b6d4541b refactor: React composer initialConfig to exported type (#3396)
* refactor: extracted initialConfig to exported type
Allows you to import and use the type when creating a new editor

* reafctor: added config type to flow file
2022-11-23 19:40:34 -05: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
59504dc5b2 LinkPlugin to support link paste (#3371) 2022-11-18 19:38:39 -05:00
102b01d808 Add node replacement system to core (#3367)
* Add node replacement system to core

* Add test

* Fix missing logic

* Fix prettier

* Update flow types
2022-11-18 17:11:52 +00:00
eba01984da feat: Extend support for link target and rel to lexical-react’s AutoLinkPlugin (#3209)
* fix: Remove redundant conditional check

* Fix out-of-date LexicalLink flow types

$createAutoLinkNode and toggleLink were missing latest changes to link attributes (rel & target) support

* Add and use LinkAttributes type in lexical-link

* feat: Support link target + rel in AutoLinkPlugin

* docs: Cleanup trailing commas in react/plugins.md

* docs: Add default protocol in AutoLinkPlugin example

* docs: Add example usage of LinkMatcher rel/target
2022-11-06 17:36:51 -07:00
61be33d26c Fix types ErrorBoundary (#3308) 2022-11-02 10:45:12 -04:00
89a4593cc0 [0.6] Make RichTextPlugin ErrorBoundary mandatory (#3295) 2022-10-31 13:32:58 -04:00
6cbda42c51 Add type to commands for logging (#2942)
* Update commands

* Small lint error

* Fix failing build

* Rename variables

* Add strings for new commands
2022-10-17 17:02:18 +01:00
806f1f0b94 Built-in Error/SuspenseBoundaries for React DecoratorNodes (#3178) 2022-10-17 16:20:56 +01:00
06e347070a flow types (#3133) 2022-10-06 15:09:34 -06:00
fac37475cb Fix typeahead ref typedef (#3131) 2022-10-06 11:35:37 -04:00
312161b04c [0.6] More Typeahead Changes (#3112) 2022-10-05 12:42:20 -04:00
66c191040b Fix typeahead import (#3117) 2022-10-05 10:30:57 -06:00
737c88a51f Typeaheads: Remove hard-coded "bottom" alignment (Breaking change) (#3104) 2022-10-04 12:52:31 -04:00
c961f09057 Typeaheads: Add scroll command and increase priority (#3106)
* Add scroll command and increase priority

* Add scroll command and increase priority

* Add flow types
2022-10-04 11:56:42 -04:00
b3d927f783 Make onClose optional on Flow Types. (#3091)
* Add open/close props to menus

* Fix callbacks
2022-09-30 12:53:14 -04:00
2256432969 Add open/close callbacks to menu plugins (#3087) 2022-09-29 15:48:26 -04:00
9fdc2816a2 Fix initialEditorState flow (#3048) 2022-09-22 01:13:41 +01:00
a4b562d9e1 [0.5] Remove deprecated initialEditorState from OnChangePlugin (#3031) 2022-09-16 17:44:49 -06:00
8cba075fd9 [0.5] Remove initialEditorState from Plain/RichTextPlugin (#3032) 2022-09-16 21:01:37 +01:00
ccd3c03bff Add optional cursors container prop for a better positioning in scrollable layouts (#3025) 2022-09-15 15:52:05 -06:00
ca0ddb6064 [0.5] Correct definition of isTopLevel; introduce DecoratorNode->isInline, ElementNode->isShadowRoot (#3009)
* 1/n top level definition

* isTopLevel/isShadowRoot

* redundant

* getTopLevelElement

* i missed some

* insertBlockNode->insertToLevelLevel

* tables e2e

* $insertNodeToNearestRoot

* add doc
2022-09-14 21:57:50 +01:00
11e842d241 Fix WWW import rewrite for React (#2996)
* bad toc types

* fix react rename
2022-09-12 19:23:10 +01:00
d773ead3f1 fix (#2957) 2022-09-07 21:28:02 -04:00
3084d52561 Fix bug where transforms are inherited by nested editors (#2947)
* Fix bug where transforms are inherited by nested editors

* Fix init pattern

* Fix init pattern

* Fix init pattern

* Fix
2022-09-06 00:37:19 +01:00
60b51372df 0.4.0 (#2939)
* 0.4.0

* change todos
2022-09-03 18:08:41 -06:00
554c41d65f Add Flow Types for AutoEmbedPlugin and TypeaheadPlugin (#2904)
* Add Types for AutoEmbed and Typeahead

* Remove unused types

* Remove unused types
2022-08-29 14:42:58 -06:00
328e63c98e Exported DEFAULT_TRANSFORMERS array in react LexicalMarkdownShortcutPlugin (#2878)
The `LexicalMarkdownShortcutPlugin` package extends the defaults from `@lexical/markdown` with a HR transform but didn't expose that default list making it harder for anyone wanting to use the defaults plus their own extensions.
2022-08-24 08:12:12 -06:00