Alessio Gravili
3b1d331316
fix(richtext-lexical): use correct nodeType on HorizontalRule feature HTML converter ( #5805 )
2024-04-11 16:10:55 -04:00
Alessio Gravili
d8e9084db2
feat(richtext-lexical): add HorizontalRuleFeature
2024-04-11 15:37:45 -04:00
Alessio Gravili
a00439ea89
fix(richtext-lexical): limit unnecessary floating handle positioning updates
2024-04-11 14:12:59 -04:00
Alessio Gravili
0055a8eb36
feat(richtext-lexical): improve floating handle y-positioning by positioning it in the center for smaller elements.
2024-04-11 13:50:24 -04:00
Alessio Gravili
de5d6cc4bd
fix(richtext-lexical): incorrect floating handle y-position calculation next to certain kinds of HTML elements like HR
2024-04-11 12:29:49 -04:00
Alessio Gravili
6186493246
fix(richtext-lexical)!: do not allow omitting editor prop for sub-richtext fields within lexical defined in the payload config ( #5766 )
...
**BREAKING:** Modifies fields types which are allowed to be passed in to upload, link, and blocks lexical features. Can break your types even if no sub-richText editor is passed in
2024-04-10 11:14:32 -04:00
Alessio Gravili
9b44296092
fix(richtext-lexical): catch errors that may occur during HTML generation ( #5754 )
2024-04-09 15:58:34 -04:00
Alessio Gravili
cf135fd1e4
fix(richtext-lexical): pass through config for schema generation. Makes it more robust ( #5700 )
2024-04-05 15:55:51 -04:00
Elliot DeNolf
823fde07c3
chore(release): richtext-lexical/0.8.0 [skip ci]
2024-04-03 14:25:56 -04:00
Elliot DeNolf
b76c5c8c11
chore: update all package.json repository urls
2024-04-03 11:06:42 -04:00
Alessio Gravili
2164dcc594
fix(richtext-lexical): disable instanceof HTMLImageElement check as it causes issues when used on the server
2024-04-03 09:50:46 -04:00
Alessio Gravili
02d2c51717
feat(richtext-*): add ability to provide custom Field and Error components ( #5574 )
2024-03-31 20:57:30 -04:00
Alessio Gravili
2e5400fa7a
fix(richtext-lexical): checklist html converter incorrectly outputting children ( #5570 )
2024-03-31 16:23:40 -04:00
Alessio Gravili
48dc116f57
fix(richtext-lexical): properly center add- and drag-block handles ( #5568 )
2024-03-31 16:03:51 -04:00
Alessio Gravili
e7f6bfbe9d
fix(richtext-lexical): Blocks: generated output schema is not fully correct ( #5259 )
2024-03-07 13:27:27 -05:00
Dan Ribbens
ceca5c4e97
fix(db-postgres): set _parentID for array nested localized fields ( #5117 )
...
* fix(db-postgres): find missing path for nested arrays
* fix(db-postgres): set _parentID for array nested localized fields
* fix: afterRead fallbackLocale causing locale data loss
* chore(richtext-lexical): updated args to match payload type change
* test: simplify localization e2e duplicate
2024-02-23 12:44:30 -05:00
Elliot DeNolf
d4b09bd9cd
chore(release): richtext-lexical/0.7.0 [skip ci]
2024-02-16 15:00:13 -05:00
Alessio Gravili
0d18822062
feat(richtext-lexical)!: Update lexical from 0.12.6 to 0.13.1, port over all useful changes from playground ( #5066 )
...
* feat(richtext-lexical): Update lexical from 0.12.6 to 0.13.1, port over all useful changes from playground
* chore: upgrade lexical version used in monorepo
2024-02-12 17:54:50 +01:00
Alessio Gravili
00fc0343da
feat(richtext-lexical): AddBlock handle for all nodes, even if they aren't empty paragraphs ( #5063 )
2024-02-12 16:11:41 +01:00
Alessio Gravili
6323965c65
fix(richtext-lexical): do not remove adjacent paragraph node when inserting certain nodes in empty editor ( #5061 )
2024-02-12 14:27:58 +01:00
Máté Tallósi
6d6823c3e5
feat(richtext-lexical): add justify aligment to AlignFeature ( #4035 ) ( #4868 )
2024-02-12 14:27:12 +01:00
Elliot DeNolf
e0191b54e1
chore(release): richtext-lexical/0.6.1 [skip ci]
2024-02-08 11:49:02 -05:00
Alessio Gravili
2315781f18
fix(richtext-lexical): make editor reactive to initialValue changes ( #5010 )
2024-02-08 15:30:21 +01:00
Elliot DeNolf
558534aff8
chore(release): richtext-lexical/0.6.0 [skip ci]
2024-02-06 15:41:04 -05:00
Alessio Gravili
90d7ee3e65
feat(richtext-lexical): Blocks: generate type definitions for blocks fields ( #4529 )
2024-01-30 16:51:18 +01:00
Elliot DeNolf
175cf229c0
chore(release): richtext-lexical/0.5.2 [skip ci]
2024-01-12 10:41:55 -05:00
Alessio Gravili
50502834c9
chore(richtext-lexical): upgrade lexical from v0.12.5 to v0.12.6 ( #4732 )
...
* chore(richtext-lexical): upgrade all lexical packages from 0.12.5 to 0.12.6
* fix(richtext-lexical): fix TypeScript errors
* fix indenting
2024-01-09 09:35:18 +01:00
Alessio Gravili
a3e78161b5
fix: non-boolean condition result causes infinite looping ( #4579 )
2024-01-04 09:51:08 -05:00
Elliot DeNolf
9090540ece
chore(release): richtext-lexical/0.5.1 [skip ci]
2024-01-03 15:58:05 -05:00
Alessio Gravili
8015e999cd
fix(richtext-lexical): z-index issues ( #4570 )
2023-12-20 15:10:18 +01:00
Elliot DeNolf
1f1445c798
chore(release): richtext-lexical/0.5.0 [skip ci]
2023-12-19 14:45:27 -05:00
Dan Ribbens
c1bd338d0d
feat: prevent querying relationship when filterOptions returns false ( #4392 )
...
fix: hidden collections showing in lexical and slate relationships
feat: prevent querying relationship when filterOptions returns false
fix: hidden collections appear in richtext internal link options
Co-authored-by: Alessio Gravili <70709113+AlessioGr@users.noreply.github.com >
2023-12-15 12:43:43 -05:00
Alessio Gravili
c49fd66922
feat(richtext-lexical)!: rename TreeviewFeature into TreeViewFeature ( #4520 )
...
Breaking: If you import TreeviewFeature in your project, you have to rename the import to use TreeViewFeature (capitalized "V")
2023-12-15 18:33:16 +01:00
Alessio Gravili
cc0ba89518
feat(richtext-lexical)!: link node: change doc data format to be consistent with relationship field ( #4504 )
...
BREAKING: An unpopulated, internal link node no longer saves the doc id under fields.doc.value.id. Now, it saves it under fields.doc.value.
Migration inside of payload is automatic. If you are reading from the link node inside of your frontend, though, you will have to adjust it.
The version property of the link and autoLink node has been changed from 1 to 2.
2023-12-13 22:57:08 +01:00
Alessio Gravili
31f8f3cac6
feat(richtext-lexical): Slate to Lexical converter: add blockquote conversion, convert custom link fields ( #4486 )
2023-12-13 13:16:58 +01:00
Alessio Gravili
548e78c598
fix(richtext-lexical): Blocks field: should not prompt for unsaved changes due to value comparison between null and non-existent props ( #4450 )
2023-12-11 20:42:42 +01:00
Alessio Gravili
9222d6f207
chore(richtext-lexical): remove unnecessary leftover Meta license headers, as they're already included in the LICENSE.md
2023-12-11 16:35:26 +01:00
Alessio Gravili
ac7f9809bc
fix(richtext-lexical): not all types of URLs are validated correctly
2023-12-11 16:33:00 +01:00
Alessio Gravili
9331204295
feat(richtext-lexical)!: improve floating select menu Dropdown classNames ( #4444 )
...
Breaking: Dropdown component has a new mandatory sectionKey prop
2023-12-11 14:34:22 +01:00
Alessio Gravili
9babf6804c
feat(richtext-lexical): improve link URL validation ( #4442 )
...
* fix(richtext-lexical): Link: allow phone numbers as URLs starting with tel:+
* feat(richtext-lexical): Link Feature: immediately validate URL field in drawer form
* Remove console log
2023-12-11 00:39:32 +01:00
Alessio Gravili
5c2739ebd1
fix(richtext-lexical): do not add unnecessary paragraph before upload, relationship and blocks nodes ( #4441 )
2023-12-11 00:08:15 +01:00
Alessio Gravili
0421173f9e
fix(richtext-lexical): lexicalHTML field now works when used inside of row fields ( #4440 )
2023-12-10 23:47:32 +01:00
Alessio Gravili
b70c8ff6b8
chore(richtext-lexical): Slash Menu: Don't show scroll bar if not needed ( #4432 )
2023-12-09 15:07:33 +01:00
Alessio Gravili
e55889480f
feat(richtext-lexical): Upload html serializer: Output picture element if the image has multiple sizes, improve absolute URL creation
2023-12-08 20:09:41 +01:00
Elliot DeNolf
070f4d5bb5
chore(release): richtext-lexical/0.4.1 [skip ci]
2023-12-07 10:58:17 -05:00
Alessio Gravili
48f1299fcb
fix(richtext-*): loosen RichTextAdapter types due to re-occuring ts strict mode errors ( #4416 )
2023-12-07 15:59:59 +01:00
Alessio Gravili
61dca16f91
chore(richtext-lexical): upgrade to lexical 0.12.5 and port over relevant playground changes ( #4415 )
2023-12-07 15:30:39 +01:00
Alessio Gravili
128f9c4e7e
fix(richtext-lexical): lexicalHTML field not working when used inside of Blocks field
2023-12-07 14:30:01 +01:00
Alessio Gravili
1469fc26c7
chore(richtext-lexical): Slash menu items: improve overflow behavior
2023-12-07 14:13:11 +01:00
Elliot DeNolf
df4f346f2f
chore(release): richtext-lexical/0.4.0 [skip ci]
2023-12-06 13:41:32 -05:00