Elliot DeNolf
c54fb304e7
chore(release): richtext-lexical@0.1.1
2023-10-09 08:18:28 -04:00
Elliot DeNolf
ef24f430a2
chore(release): richtext-lexical@0.1.0
2023-10-08 23:57:11 -04:00
Elliot DeNolf
8c097ccaa7
chore(release): richtext-lexical@0.1.0-beta.7
2023-10-08 21:29:36 -04:00
Alessio Gravili
87d66dceb1
Merge pull request #3487 from payloadcms/chore/export-even-more-stuff
...
chore(richtext-lexical): export slash menu and floating toolbar-related stuff
2023-10-09 03:07:36 +02:00
Alessio Gravili
256fc6d178
chore(richtext-lexical): export slash menu and floating toolbar-related stuff
2023-10-09 03:06:50 +02:00
Elliot DeNolf
73f434e394
chore(release): richtext-lexical@0.1.0-beta.6
2023-10-08 20:13:05 -04:00
Alessio Gravili
c1d28a7a07
chore(richtext-lexical): export nodes
2023-10-09 01:07:16 +02:00
Elliot DeNolf
190a1ab5a0
chore(release): richtext-lexical@0.1.0-beta.5
2023-10-08 17:39:41 -04:00
Elliot DeNolf
8f2cec2535
chore(release): richtext-lexical@0.1.0-beta.4
2023-10-08 07:42:43 -04:00
Alessio Gravili
5d1444e1bd
fix(richtext-lexical): incorrect stacking of block's fields
2023-10-07 18:35:59 +02:00
Alessio Gravili
03c9a91ea9
chore(richtext-lexical): CSS rule to fix focus outline issue when using vite bundler
2023-10-07 18:11:43 +02:00
Elliot DeNolf
59bd6abfc3
chore: stub out basic READMEs for all packages
2023-10-07 11:24:33 -04:00
Alessio Gravili
ad7c25685e
chore(richtext-lexical): adjust node data formats, adjust population behavior, fix some validation issues
2023-10-07 15:52:12 +02:00
Alessio Gravili
7e9c7707ba
chore: improve ID field validation, fixing 2.0 int tests ( #3457 )
...
* chore: WIP id type validation for richtext upload
* chore: fix richtext fields test ID placeholder replacements
* chore: use getIDType in relationship validation for consistency
* chore: make getIDType safer in case payload.db.defaultIDType is null
---------
Co-authored-by: Dan Ribbens <dan.ribbens@gmail.com >
2023-10-07 00:49:24 +02:00
Alessio Gravili
acfda5d8d4
chore(richtext-lexical): updated lexical incoming config API
2023-10-07 00:22:13 +02:00
Jacob Fletcher
960fe42b93
chore: resolves ts errors in views ( #3453 )
2023-10-06 14:58:51 -04:00
Elliot DeNolf
a423c7fd60
chore(release): richtext-lexical@0.1.0-beta.3
2023-10-06 11:01:03 -04:00
Alessio Gravili
272f62f032
Merge pull request #3449 from payloadcms/feat/2.0-lexical-block-validations
...
BREAKING: config (SanitizedConfig) is now a new, mandatory property to be passed into .validate(, options) functions. In order to accommodate that, other functions which may call validate now also have a new, mandatory config property. These are:
* buildStateFromSchema
* addFieldStatePromise
feat: breaking: richtext-lexical: block node validations
2023-10-06 16:56:59 +02:00
Alessio Gravili
cffb5663aa
fix: custom fields of Upload and Link features not being sanitized (both Slate and Lexical)
2023-10-06 15:47:31 +02:00
Elliot DeNolf
08a114e0e0
chore(release): richtext-lexical@0.1.0-beta.2
2023-10-06 09:27:57 -04:00
Alessio Gravili
fa91d45ae6
chore: richtext-lexical: save block node's collapsed state in preferences instead of node data
2023-10-06 14:30:40 +02:00
Alessio Gravili
b545f62574
chore: richtext-lexical: various styling and validation improvements
2023-10-06 12:39:22 +02:00
Alessio Gravili
b6a778196d
feat: richtext-lexical: blocks: nicely show errors in Block component
2023-10-06 12:10:20 +02:00
Alessio Gravili
9acc1e4c99
feat: block node validations
2023-10-06 11:30:18 +02:00
Alessio Gravili
20a99ff2c7
chore(richtext-lexical): slash menu x Blocks feature improvements
2023-10-05 15:37:22 +02:00
Alessio Gravili
27ef3a01f8
feat(richtext-lexical): list all blocks in Slash menu
2023-10-05 14:31:40 +02:00
Alessio Gravili
ab34f08169
feat(richtext-lexical): populate fields in blocks field
2023-10-05 10:59:38 +02:00
Alessio Gravili
0c57c89d83
chore(richtext-lexical): improve internal link label
2023-10-04 22:55:25 +02:00
Alessio Gravili
c3abaf5f1d
feat(richtext-lexical): remove button for block
2023-10-04 22:44:00 +02:00
Alessio Gravili
76c2fad94f
chore(richtext-lexical): fields test default value
2023-10-04 22:31:23 +02:00
Alessio Gravili
1e71776f22
Merge pull request #3436 from payloadcms/feat/2.0-lexical-improvements
...
feat: various lexical improvements
2023-10-04 21:32:52 +02:00
Alessio Gravili
6a5ddd32ab
chore(richtext-lexical): various style improvements
2023-10-04 21:28:41 +02:00
Alessio Gravili
4e8d4797e1
chore(richtext-lexical): improve slash menu positioning and styling
2023-10-04 21:01:59 +02:00
Elliot DeNolf
1107a1d7d1
chore: rename editors
2023-10-04 13:27:19 -04:00
Alessio Gravili
99a5e78a66
chore(richtext-lexical): sanitize block fields
2023-10-04 17:02:45 +02:00
Alessio Gravili
715ae79727
chore(richtext-lexical): Blocks feature improvements
2023-10-04 14:18:55 +02:00
Elliot DeNolf
fdcdabd3ed
chore(release): all beta packages
2023-10-02 21:47:32 -04:00
Elliot DeNolf
8ba1274e2f
chore: update clean script for all packages
2023-10-02 21:03:41 -04:00
Alessio Gravili
0de816591b
chore(richtext-lexical): add additional exports
2023-10-02 12:42:36 +02:00
Alessio Gravili
fd9ca519d7
chore(richtext-lexical): export more functions
2023-10-02 11:26:29 +02:00
Elliot DeNolf
dbdd317af7
chore: add clean and prepublishOnly scripts to all packages
2023-10-01 22:14:39 -04:00
James
bb9b4c9fa0
chore: misc fixes
2023-10-01 20:40:30 -04:00
James
2649ceaac6
Merge branch '2.0' of github.com:payloadcms/payload into 2.0
2023-10-01 15:47:20 -04:00
James
ee22a488c0
chore: able to select bundler in dev
2023-10-01 15:47:16 -04:00
Alessio Gravili
eed2b699c8
chore: fix lexical package not building
2023-10-01 21:19:22 +02:00
Alessio Gravili
9308c792e1
feat: Lexical richtext editor ( #3359 )
...
* chore: move slate stuff into packages/richtext-slate
* chore: fieldTypes stuff
* chore: fix richtext-slate tsconfig
* chore: add clean:unix command
* chore: fix up things
* chore: undo subpath imports being hoisted up
* chore: fix incorrect imports
* chore: improve AdapterArguments type
* chore: remove unused richTextToHTML and stringifyRichText files
* fix: core-dev scss imports
* chore: fix publishConfig exports for richtext-slate
* chore: adjust joi schema for richtext field
* chore: various fixes
* chore: handle afterRead population in richText adapter
* chore: handle more after-read promise stuff
* chore: fix joi validation
* chore: add richtext adapter to tests
* chore: merge adapter props with field props
* chore: index.tsx => index.ts
* chore: rename `adapter` to `editor`
* chore: fix e2e tests not running due to importing a constant from a file (`Tabs`) which imports createSlate.
This fails because createSlate imports React components.
* chore: remove unnecessary import
* chore: improve various typings
* chore: improve typings for List view Cell components
* feat: richText adapter cell component
* chore: add missing types packages for packages/richtext-slate
* chore: add new adapter interface properties to joi schema
* chore: withMergedProps utility which replaces getSlateCellComponent and getSlateFieldComponent
* feat: added config.defaultEditor property which is now required. field.editor is no longer required and overrides config.defaultEditor
* docs: mention editor and defaultEditor property in the docs
* chore: fix incorrectly formatted JSX in docs files breaking mdx parser
* feat: create base structure for lexical adapter
* chore: upgrade dependencies
* chore: improve package.json property order
* chore: undo unnecessary changes in core
* chore: initial, working lexical editor
* chore: utils
* chore: add license.md
* chore: work on Floating toolbar
* chore: floatingSelectToolbar extensibility
* chore: FloatingSelectToolbar format buttons
* chore: add functionality to format buttons
* chore: caret handling improvements
* chore: keep toolbar hidden during mousedown
* chore: keep carat centered unless at edge of container
* chore: placeholder, style improvements
* chore: DraggableBlock Handle
* chore: limit cell preview length
* chore: fix drag handle styling in light mode
* chore: remove unnecessary listener
* feat: add block handle
* chore: handle removal of handles properly
* chore: add HistoryPlugin
* chore: improve naming of format button properties
* chore: fix incorrect position of HistoryPlugin
* chore: serif font
* chore: improve opacity handling of FloatingSelectToolbar
* feat: slash menu
* feat: slash menu interface
* chore: fix mixed-up icon
* chore: add missing editorConfig?.feature dependency
* feat: sanitizedEditorConfig, slash menu grouping
* feat: interface for nodes
* feat: Plugin interface
* feat: working AddBlockHandlePlugin
* feat: headings
* chore: improve editor focus handling for add block handle's slash menu
* chore: improve handling of slash menu filtering
* fix: cloneDeep function not handling all data types well
* feat: markdown transformers for headings
* feat: proper dependency system
* feat: add remaining markdown transformers
* feat: order system for floating toolbar format buttons
* chore: customizable floating select toolbar sections system
* feat: WIP floatingSelectToolbar dropdown sections
* feat: working dropdown & misc improvements
* chore: fix dropdown top positioning after scrolling down
* chore: downgrade @types/react
* feat: treeview debug feature, & misc improvements
* feat: add TabIndentationPlugin by default
* fix: wrong key for treeviewfeature
* chore: handle plugin keys
* chore: simplify Heading Feature
* feat: Text Align
* feat: Indent
* chore: floating text toolbar section dividers
* feat: isEnabled for floating select toolbar, and isEnabled handling for decreaseIndent
* chore: add all missing icons
* feat: checklist, orderedlist, unorderedlist
* chore: improve lists by using lexical/react's ListPlugin
* chore: lists markdown transformers
* chore: improve key generation for plugins
* fix: add missing payload scss import
* fix: make default editorConfig null instead of defaultSanitizedEditorConfig for EditorConfigProvider. This fixes a bug where the editor would crash if some feature was using this EditorConfigProvider, as EditorConfigProvider needs the feature (due to the serialization process) and the Feature needing EditorConfigProvider (circular dependency)
* chore: allow positioning plugins under floatingAnchorElem
* feat: WIP: Link Feature
* chore: add box shadow to slash menu in light mode
* chore: CheckList => Check List
* chore: respect admin.readOnly setting
* chore: Simplify Link Feature
* chore: restructuring
* chore: prettier
* chore: scss-ify
* feat: wip: nicer draggable blocks
* chore: lots of block drag improvements
* helllll yea
* chore: just pure niceness
* fix: drag handle not working when scrolling down
* fix: "add" drag handle not working when scrolling down
* chore: remove unnecessary console log
* chore: fix slash menu positioning if there is not enough space below
* chore: increase animation speed of floating select toolbar
* chore: expect transforms for top-level editor nodes
* chore: move css rule to correct position
* chore: slightly animate target drag line
* chore: do not indicate drag-ability in un-dragable positions
* chore: explanatory comment
* chore: link editor styling
* chore: lots of link-related improvements
* chore: a lot of floating toolbar improvements
* chore: adjust link colors to be the same as in the website
* chore: prep work link extensibility
* chore: work on link plugin
* feat: fully-working link feature 🎉
* chore: add upload icon
* chore: merge in useful changes from playground & misc stuff
* feat: WIP relationship feature
* feat: Relationship Feature
* feat: BlockQuote Feature
* chore: base structure for Upload feature
* chore: fix types
* chore: WIP work on population and upload nodes
* chore: stuff
* fix: ensure uuid is only generated once
* chore: remove console.log's
* feat: link and relationship population
* fix: populate relationships at correct position
* chore: bunch of progress on upload node
* chore: working upload node!
* chore: various upload feature improvements
* chore: misc
* feat: working upload feature fields customization
* feat: WIP Blocks feature
* chore: fix incorrectly registered editor commands
* chore: get Block fields to render
* feat: functional blocks feature
* chore: improve functionality of blocks feature component (styling, collapsing)
* chore: disable console logs
2023-10-01 21:03:44 +02:00