Alessio Gravili
3e745e91da
fix(richtext-lexical): blocks content may be hidden behind components outside of the editor ( #4325 )
...
* chore(richtext-lexical): add e2e test to reproduce the issue
* fix the issue
2023-12-01 09:46:21 +01:00
Alessio Gravili
ef84a2cfff
fix(richtext-lexical): Blocks node: incorrect conversion from v1 node to v2 node
2023-12-01 09:28:44 +01:00
Elliot DeNolf
176550d26b
chore(release): richtext-lexical/0.3.0 [skip ci]
2023-11-30 11:07:44 -05:00
Elliot DeNolf
a0859114eb
chore(richtext-*): bump payload peer dep
2023-11-30 10:59:26 -05:00
Alessio Gravili
ff61d5a099
chore(richtext-*): roll-back richtext adapter change
2023-11-30 16:25:17 +01:00
Alessio Gravili
9beb9c8627
chore(richtext-lexical): ensure CSS is not accidentally overridden ( #4324 )
2023-11-30 11:55:02 +01:00
Alessio Gravili
3502ce720b
fix: incorrect key property in Tabs field component ( #4311 )
...
Fixes #4282
2023-11-29 22:18:40 +01:00
Alessio Gravili
5bf64933b4
fix(richtext-lexical): HTML Converter field not working inside of tabs ( #4293 )
2023-11-28 19:36:23 +01:00
Alessio Gravili
094d02ce1d
fix(richtext-lexical): re-use payload population logic to fix population-related issues ( #4291 )
...
* chore(richtext-lexical): Add int test which reproduces the issue
* chore: Remove unnecessary await in core afterRead promise
* fix(richtext-lexical): re-use recurseNestedFields from payload instead of using own recurseNestedFields
* chore(richtext-lexical): pass in missing properties which are available in the core afterRead hook
* chore: remove unnecessary block
2023-11-28 19:18:07 +01:00
Alessio Gravili
c8d2b2b60e
chore(richtext-lexical): fix failing e2e test due to html class changes ( #4265 )
2023-11-26 11:39:27 +01:00
Alessio Gravili
62ca71fbc4
chore(richtext-lexical): breaking: slash menu: simplify, improve CSS class names, change 'title' in interface to key and displayName
2023-11-24 01:16:04 +01:00
Alessio Gravili
e50fa9ca8f
feat(richtext-lexical): floating select toolbar: add ability to configure dropdown entry component
2023-11-23 23:52:16 +01:00
Alessio Gravili
ed7aca6525
chore(richtext-lexical): improve CSS class names of floating select toolbar
2023-11-23 23:38:25 +01:00
Zaki Nadhif
98ccd05dd6
chore(richtext-lexical): Add a hint that the slash menu exists to the user ( #4206 )
...
* chore(richtext-lexical): Add a hint that the slash menu exists to the user
* Update LexicalEditor.tsx
---------
Co-authored-by: Alessio Gravili <70709113+AlessioGr@users.noreply.github.com >
2023-11-23 22:28:02 +01:00
Alessio Gravili
79f08baf2f
chore(richtext-lexical): add lists to floating toolbar
2023-11-23 22:12:10 +01:00
Alessio Gravili
d512e9382d
fix(richtext-lexical): breaking: fix typo: UnoderedListFeature => UnorderedListFeature
2023-11-23 21:39:07 +01:00
Alessio Gravili
b17cafc7be
chore(richtext-lexical): add proper typing for node replacements ( #4255 )
2023-11-23 19:04:34 +01:00
Elliot DeNolf
2dad129022
chore(release): richtext-lexical/0.2.0 [skip ci]
2023-11-20 16:39:20 -05:00
Alessio Gravili
0af9c4d398
fix(richtext-lexical): Blocks: Array row data is not removed ( #4209 )
...
* chore(richtext-lexical): Add failing test which reproduces issue
* fix(richtext-lexical): fix the actual issue
2023-11-18 14:01:57 +01:00
Alessio Gravili
a24f2be4a6
chore(richtext-lexical): backport setFloatingElemPositionForLinkEditor type change from playground
2023-11-18 12:54:40 +01:00
Alessio Gravili
57999adfe2
chore(richtext-lexical): backport autolink changes from lexical playground
2023-11-18 12:51:08 +01:00
Alessio Gravili
7857043d03
chore(richtext-lexical): Upgrade lexical packages
2023-11-18 12:37:28 +01:00
Alessio Gravili
50fab902bd
fix(richtext-lexical): Blocks: fields without fulfilled condition are now skipped for validation
2023-11-18 11:52:30 +01:00
Alessio Gravili
eed4f4361c
feat(richtext-lexical): Add new position: 'top' property for plugins
2023-11-17 18:18:54 +01:00
Alessio Gravili
fc26275b7a
fix(richtext-lexical): add missing 'use client' to TestRecorder feature plugin
2023-11-16 22:37:37 +01:00
Alessio Gravili
dbfc83520c
fix(richtext-lexical): make lexicalHTML() function work for globals
2023-11-16 22:10:00 +01:00
Alessio Gravili
c068a8784e
fix(richtext-lexical): Blocks: make sure fields are wrapped in a uniquely-named group, change block node data format, fix react key error ( #3995 )
...
* fix(richtext-lexical): make sure block fields are wrapped in a uniquely-named group
* chore: remove redundant hook
* chore(richtext-lexical): attempt to fix unnecessary unsaved changes warning regression
* cleanup everything
* chore: more cleanup
* debug
* looks like properly cloning the formdata for setting initial state fixes the issue where the old formdata is updated even if node.setFields is not called
* chore: fix e2e tests
* chore: fix e2e tests (a selector has changed)
* chore: fix int tests (due to new blocks data format)
* chore: fix incorrect insert block commands in drawer
* chore: add new e2e test
* chore: fail e2e tests when there are browser console errors
* fix(breaking): beforeInput and afterInput: fix missing key errors, consistent typing and cases in name
2023-11-16 22:01:04 +01:00
Alessio Gravili
989c10e0e0
feat: allow richtext adapters to control type generation, improve generated lexical types ( #4036 )
2023-11-16 11:36:20 -05:00
Zaki Nadhif
a6b486007d
fix(richtext-lexical): visual bug after rearranging blocks
2023-11-16 22:38:34 +07:00
Alessio Gravili
b210af4696
fix(richtext-lexical): incorrect caret positioning when selecting second line of multi-line paragraph ( #4165 )
2023-11-15 22:22:42 +01:00
Alessio Gravili
4bc5fa7086
chore(richtext-lexical): remove unused defaultValue prop in RichText component ( #4146 )
2023-11-14 18:31:04 +01:00
Alessio Gravili
2c8d34d2aa
fix(richtext-lexical): remove optional chaining after this as transpilers are not handling it well ( #4145 )
2023-11-14 18:21:51 +01:00
Alessio Gravili
4ec5643dd7
chore: restricts character length in table cells ( #4063 )
2023-11-14 11:25:24 -05:00
Alessio Gravili
859c2f4a6d
fix(richtext-lexical): nested editor may lose focus when writing ( #4139 )
2023-11-14 15:42:30 +01:00
Alessio Gravili
7329b1babd
chore(richtext-lexical): Remove unnecessary console.log
2023-11-12 23:17:33 +01:00
Alessio Gravili
09f17f4450
fix(richtext-lexical): Blocks: z-index issue, e.g. select field dropdown in blocks hidden behind blocks below, or slash menu inside nested editor hidden behind blocks below
2023-11-12 22:28:05 +01:00
Alessio Gravili
615702b858
fix(richtext-lexical): Floating Select Toolbar: Buttons and Dropdown Buttons not clickable in nested editors
...
Fixes #4025
2023-11-12 22:09:36 +01:00
Alessio Gravili
a6d5f2e3de
fix(richtext-lexical): HTMLConverter: cannot find nested lexical fields ( #4103 )
...
Fixes #4034
2023-11-11 12:54:33 +01:00
Elliot DeNolf
d308bb3421
chore(release): richtext-lexical/0.1.17 [skip ci]
2023-11-10 10:42:33 -05:00
Alessio Gravili
c462df38f6
fix(richtext-lexical): floating select toolbar caret not positioned correctly if first line is selected ( #4062 )
2023-11-08 22:13:38 +01:00
Alessio Gravili
fff377ad22
fix(richtext-lexical): Blocks: unnecessary saving node value when initially opening a document & new lexical tests ( #4059 )
...
* chore: new lexical int tests and working test structure
* chore: more int tests, and better lexical collection structure
* fix(richtext-lexical): Blocks: unnecessary saving node value when initially opening a document
2023-11-08 21:32:43 +01:00
Alessio Gravili
17f7b94555
chore: improve test suites, upgrade jest and playwright, add debug utilities for lexical ( #4011 )
...
* feat(richtext-lexical): 'bottom' position value for plugins
* feat: TestRecorderFeature
* chore: restructuring to seed and clear db before each test
* chore: make sure all tests pass
* chore: make sure indexes are created in seed.ts - this fixes one erroring test
* chore: speed up test runs through db snapshots
* chore: support drizzle when resetting db
* chore: simplify seeding process, by moving boilerplate db reset / snapshot logic into a wrapper function
* chore: add new seeding process to admin test suite
* chore(deps): upgrade jest and playwright
* chore: make sure mongoose-specific tests are not skipped
* chore: fix point test, which was depending on another test (that's bad!)
* chore: fix incorrect import
* chore: remove unnecessary comments
* chore: clearly label lexicalE2E test file as todo
* chore: simplify seed logic
* chore: move versions test suite to new seed system
2023-11-06 16:38:40 +01:00
Alessio Gravili
79b1b88a2f
chore: Better Lexical documentation, minor improvements to HTML converter feature ( #3933 )
...
* docs: add html serialization docs
* chore: add .md to the .editorconfig
* chore: add new consolidateHTMLConverters function
* docs: add more documentation about serializing HTML
* docs: document creation of headless editors, editor => markdown conversion, markdown => editor conversion and editor => lexical conversion
* docs: improve wording
* docs: add missing comma
* docs: add rest of the missing docs
* docs: various improvements
2023-11-02 07:44:18 +01:00
Elliot DeNolf
b2b0f10935
chore(release): richtext-lexical/0.1.16 [skip ci]
2023-10-30 12:29:08 -04:00
Alessio Gravili
a4fa0ef393
chore(richtext-*): bump payload peer dependency versions
2023-10-27 15:56:15 +02:00
Alessio Gravili
dac9514eb0
fix(richtext-*): type issues with typescript strict mode enabled
2023-10-27 15:44:10 +02:00
Alessio Gravili
760565f1e9
fix(richtext-lexical): remove unnecessary dependencies ( fixes #3889 )
2023-10-27 14:25:31 +02:00
Alessio Gravili
35f00fa83d
fix(richtext-lexical): Blocks node incorrectly marked as client module
2023-10-24 22:40:05 +02:00
Elliot DeNolf
5d4ef620b1
chore(release): richtext-lexical/0.1.15 [skip ci]
2023-10-23 13:20:48 -04:00
Alessio Gravili
9277b306de
fix(richtext-lexical): infinite re-rendering after draft save ( #3709 )
2023-10-22 01:41:58 +02:00