Patrik
96fc3df532
chore: ellipse long error messages, add title attribute ( #3812 )
...
Co-authored-by: Jarrod Flesch <30633324+JarrodMFlesch@users.noreply.github.com >
2023-11-03 10:40:58 -04:00
Jarrod Flesch
5ea88bb47d
fix: block row removal w/ db-postgres adapter ( #3951 )
2023-11-01 08:32:02 -04:00
Dan Ribbens
4d8d4c214a
fix: unique field error handling ( #3888 )
2023-10-27 13:31:14 -04:00
Jacob Fletcher
71a3e5ba10
fix: prevents document sidebar from collapsing
2023-10-23 17:01:58 -04:00
Jacob Fletcher
eaef0e7395
fix: alignment of collapsible within row ( #3822 )
2023-10-23 14:30:37 -04:00
Alessio Gravili
b5c7bbed93
fix(richtext-lexical): defaultValue property didn't fit into field schema
2023-10-21 14:52:26 +02:00
Alessio Gravili
0af36af16c
feat(richtext-lexical): HTML Serializer ( #3685 )
...
* chore(richtext-lexical): add jsdocs for afterReadPromise in GraphQL
* feat(richtext-lexical): HTML Serializer
* chore(richtext-lexical): adjust comment
* chore(richtext-lexical): change the way the html serializer works
* chore: working html converter field, improve various exports
* feat: link and heading html serializers
* fix: populationPromises not being added properly
* feat: allow html serializers to be async
* feat: upload html serializer
* feat: text format => html
* feat: lists => html
* feat: Quote => html
* chore: improve Checklist => html conversion, by passing in the full parent to converters
2023-10-21 14:37:59 +02:00
James
eec88f8f1b
Merge branch 'fix/#3568-postgres-relationships-in-array' of github.com:payloadcms/payload into fix/#3568-postgres-relationships-in-array
2023-10-15 10:43:32 -04:00
Alessio Gravili
d81d4eb075
feat(richtext-lexical): LexicalPluginToLexical migration feature
2023-10-14 22:36:16 +02:00
Dan Ribbens
21649537a6
fix(db-postgres): query relationship path inside arrays
2023-10-14 15:17:42 -04:00
Alessio Gravili
4dc6c09347
feat(richtext-lexical): SlateToLexical migration feature
2023-10-14 13:36:32 +02:00
Alessio Gravili
5dbfb1a335
fix(richtext-lexical): Blocks: working population for crazy amounts of nesting
2023-10-13 21:04:56 +02:00
Alessio Gravili
d411874589
chore(richtext-lexical): Blocks: clean up population
2023-10-13 20:02:18 +02:00
Alessio Gravili
c47632dc1d
fix(richtext-lexical): Blocks: Nested Blocks having incorrect initial data (e.g. missing rows property) ( #3638 )
...
* fix(richtext-lexical): Blocks: Sub-Blocks having incorrect initial data (e.g. missing rows property)
* chore: remove unnecessary comment
2023-10-13 18:39:34 +02:00
James Mikrut
3b1bdcbe41
chore: de-duplicates array / block data from form state ( #3607 )
...
* chore: consolidates array manipulation tests
---------
Co-authored-by: Jarrod Flesch <jarrodmflesch@gmail.com >
2023-10-13 09:45:00 -04:00
James Mikrut
c91b1e8310
Merge pull request #3578 from payloadcms/fix/#3570
...
fix: postgres select fields within groups (#3570 )
2023-10-11 11:00:49 -04:00
James
06e2fa9d11
fix: postgres select fields within groups ( #3570 )
2023-10-11 10:47:10 -04:00
Jarrod Flesch
af892ecb0e
fix: removes nested array field configs from array value ( #3549 )
...
* fix: array controls 'addBelow' was adding above
2023-10-10 15:55:00 -04:00
Jacob Fletcher
9ff014bbfe
fix: row field width ( #3550 )
2023-10-10 14:09:47 -04:00
Alessio Gravili
e41899cd27
fix(richtext-lexical): missing properties passed into validation functions
2023-10-10 16:06:39 +02:00
Dan Ribbens
eb58d9e877
chore: removes indexes from collection config ( #3476 )
2023-10-08 14:48:14 -04:00
Alessio Gravili
5d1444e1bd
fix(richtext-lexical): incorrect stacking of block's fields
2023-10-07 18:35:59 +02: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
acfda5d8d4
chore(richtext-lexical): updated lexical incoming config API
2023-10-07 00:22:13 +02:00
Alessio Gravili
528150c3f7
Merge remote-tracking branch 'origin/2.0' into feat/2.0-lexical-block-validations
2023-10-06 14:31:52 +02:00
Alessio Gravili
b545f62574
chore: richtext-lexical: various styling and validation improvements
2023-10-06 12:39:22 +02:00
Jarrod Flesch
9880880384
feat!: store array values as actual array value ( #3442 )
2023-10-05 13:16:30 -04:00
Alessio Gravili
76c2fad94f
chore(richtext-lexical): fields test default value
2023-10-04 22:31:23 +02:00
Elliot DeNolf
1107a1d7d1
chore: rename editors
2023-10-04 13:27:19 -04:00
Alessio Gravili
715ae79727
chore(richtext-lexical): Blocks feature improvements
2023-10-04 14:18:55 +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
James
09883ee78c
chore: passing field tests
2023-09-27 16:25:23 -04:00
James
4df19cbdf6
chore: converts anything that awaits many promises to sequential execution
2023-09-24 16:31:23 -07:00
Alessio Gravili
cdaa0acd61
chore: run eslint & prettier, adjust perfectionist sorting for package.json and tsconfig.json in eslint configs
2023-09-19 11:41:56 +02:00
Alessio Gravili
a81401cf77
feat: breaking: richtext adapter ( #3311 )
...
BREAKING: requires user to install @payloacms-richtext-slate and specify a `config.editor` property
* 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
* chore: fix various errors
* chore: auto-generated pointer files
2023-09-19 11:03:31 +02:00
Alessio Gravili
1fbda85cd0
chore: lint and format everything again
2023-09-07 15:53:48 +02:00
Alessio Gravili
a51b5970dc
chore: re-run prettier
2023-09-07 15:45:48 +02:00
James
0f3b364e46
chore: hoists tests out of payload package
2023-09-01 14:45:41 -04:00
Alessio Gravili
a67278b29f
chore: move to monorepo structure
2023-08-23 12:20:30 +02:00
Alessio Gravili
9467074fb9
chore: update 2.0 branch from master ( #3207 )
...
Co-authored-by: Jacob Fletcher <jacobsfletch@gmail.com >
Co-authored-by: Alessio Gravili <alessio@gravili.de >
Co-authored-by: PatrikKozak <patrik@trbl.design >
Co-authored-by: Lucas Blancas <lablancas@gmail.com >
Co-authored-by: Stef Gootzen <37367280+stefgootzen@users.noreply.github.com >
Co-authored-by: Jarrod Flesch <30633324+JarrodMFlesch@users.noreply.github.com >
Co-authored-by: Jessica Chowdhury <67977755+JessChowdhury@users.noreply.github.com >
Co-authored-by: PatrikKozak <35232443+PatrikKozak@users.noreply.github.com >
Co-authored-by: Greg Willard <Wickett06@gmail.com >
Co-authored-by: James Mikrut <james@payloadcms.com >
Co-authored-by: Dan Ribbens <dan.ribbens@gmail.com >
Co-authored-by: Elliot DeNolf <denolfe@gmail.com >
fix: WhereBuilder component does not accept all valid Where queries (#3087 )
fix: passes in height to resizeOptions upload option to allow height resize (#3171 )
2023-08-22 16:04:50 -04:00
Mark Barton
a0b13a5b01
feat: text alignment for richtext editor ( #2803 )
...
* Update isActive.tsx
This change allows us to define toggling of custom types in Slate. Specifically, this fixes the ability to toggle Alignment on nodes that use other active elements.
isElementActive(editor, format, TEXT_ALIGN_TYPES.includes(format) ? 'align' : 'type');
Type is the default for elements, allowing us to use a custom field lets us greater extend the functionality of Slate in Payload without causing any breaking changes
* Update toggle.tsx
Added to toggleElement public function
* Update isActive.tsx
* Update toggle.tsx
Added Rich Text Alignment, updated toggle function, added tests and doc updates
* added margin to void elements
* fix: list alignment
* removed textAlign from elements and added docs
* chore: fix typo
---------
Co-authored-by: Alessio Gravili <alessio@gravili.de >
2023-08-14 17:08:50 +02:00
Jarrod Flesch
f5cf546e19
fix: updates addFieldRow and replaceFieldRow rowIndex insertion ( #3145 )
2023-08-08 15:35:59 -04:00
Jarrod Flesch
8e188cfe61
fix: adding and replacing similarly shaped block configs ( #3140 )
2023-08-08 12:38:14 -04:00
Dan Ribbens
e8f05165eb
feat: default tab labels from name ( #3129 )
2023-08-05 13:48:56 -04:00
Alessio Gravili
3ac910bf6d
chore: improves datepicker styles and functionality ( #2347 )
...
Co-authored-by: Jarrod Flesch <jarrodmflesch@gmail.com >
2023-07-18 14:32:30 -04:00
Jessica Chowdhury
801f60939b
fix: nested richtext bug and test ( #2966 )
...
* fix: nested richtext bug and test
* chore: fix accidentally deleted character
2023-07-05 09:06:02 -04:00
Jarrod Flesch
b83d788d3c
fix: conditional fields perf bug - #2886 ( #2890 )
2023-06-22 13:51:24 -04:00
Alessio Gravili
8f086e315c
feat: hasMany for number field ( #2517 )
...
* added custom config extension points
* Added custom field to documentation
* fix: not building due to incorrect typings
* Upload dist
* point to number array test
* feat: hasMany for number field
* fix: types
* Fix: incorrectly styles input for hasMany
* Revert "point to number array test"
This reverts commit 5a5162a803 .
* Revert "Merge branch 'production-with-custom' into number-hasmany-v2"
This reverts commit dfc3ac523e , reversing
changes made to a3b1b7dd67 .
* test: adds test for numbers with hasMany
* test: add number field e2e
* Fix updated index.tsx
* Fix updated index.tsx
* chore: add jsDocs for hasMany property
* chore: rename isMultiText to isCreatable, as it makes more sense
* fix: incorrect double space in comments
* chore: rename onMultiTextChange to handleHasManyChange
* chore: improve ordering
* docs: add documentation for hasMany
* docs: add more jsdocs for number field
* fix: new value not transformed to number
* improve types
* fix: only allow numbers as input using filterOption
* fix: Option / value type breaking sortable selects
* fix: typings and add id for sorting
* add animation to react select
* undo transitions due to glitches
* fix: keyboard handler for select for empty input values
* fix: validation for hasMany numbers
* feat: perform validation in the filter as well
* attempt to fix duplicate key issue
* add todo
* remove console logs
* fix: stupid key warning
* fix: validation tests
* feat: add filterOption to keydown listener
* feat: numberOnly for react-select
* chore: improve variable naming
* fix: allow numbers for relationship value by stringifying those for sortable react-selects
* feat: generated types for hasMany number field
* graphql typings part 1
* graphql defaults type
* better typing for number in buildObjectType
* fix: default graphql type disregarding hasMany for relationship field
* feat: minRows and maxRows for hasMany numbers
* simplify joi schema
* working minRows and maxRows validation!
* jesus christ: fix incorrect translations for number & relationship fields for greaterThanMax and lessThanMin
* fix weird type error
* move validation tests to validations.spec.ts and fix them
* fix: make sure filterOption only passes a number array to validate function
* fix: adds missing dark-mode styles for version differences view (#2812 )
Co-authored-by: Tylan Davis <tylan@Tylans-MacBook-Pro.local >
* fix : #2821 i18n ui field label (#2823 )
* chore: version diff styles (#2824 )
Co-authored-by: Tylan Davis <tylan@Tylans-MacBook-Pro.local >
* chore: remove --legacy-peer-deps from gh actions workflow (#2814 )
* chore: removes cms text from instances of payload name (#2793 )
* chore(release): v1.9.2
* chore: update changelog release notes v1.9.2
* chore: cleans up graphql-schema-gen test folder
* fix: adds custom property to ui field in joi validation (#2835 )
* adjust validation
* improve isnumber function
* Update number.mdx
---------
Co-authored-by: Teun Mooij <tmooij@infinitaslearning.com >
Co-authored-by: Dan Ribbens <dan.ribbens@gmail.com >
Co-authored-by: Tylan Davis <89618855+tylandavis@users.noreply.github.com >
Co-authored-by: Tylan Davis <tylan@Tylans-MacBook-Pro.local >
Co-authored-by: Dan Ribbens <DanRibbens@users.noreply.github.com >
Co-authored-by: Jacob Fletcher <jacobsfletch@gmail.com >
Co-authored-by: Jarrod Flesch <jarrodmflesch@gmail.com >
Co-authored-by: Jarrod Flesch <30633324+JarrodMFlesch@users.noreply.github.com >
2023-06-20 20:21:27 +02:00
Alessio Gravili
542b5362d3
fix: drawer fields are read-only if opened from a hasMany relationship ( #2843 )
2023-06-20 11:22:49 -04:00
Alessio Gravili
0d8d7f358d
fix: deprecate min/max in exchange for minRows and maxRows for relationship field ( #2826 )
...
* fix: deprecate min/max in exchange for minRows and maxRows for relationship
* fix: update validations unit tests with minRows and maxRows
* fix: incorrect types
* move to sanitize
2023-06-18 02:09:30 +02:00