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
81ed355bbc
chore(release): richtext-slate@1.0.0-beta.3
2023-10-06 09:28:08 -04:00
Alessio Gravili
9acc1e4c99
feat: block node validations
2023-10-06 11:30:18 +02:00
Elliot DeNolf
1107a1d7d1
chore: rename editors
2023-10-04 13:27:19 -04: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
Elliot DeNolf
dbdd317af7
chore: add clean and prepublishOnly scripts to all packages
2023-10-01 22:14:39 -04:00
Elliot DeNolf
6e07aee59a
feat(richtext-slate): add copyfiles command
2023-10-01 16:23:27 -04:00
Jarrod Flesch
6fa5866f99
feat: 2.0 popover style updates ( #3404 )
2023-09-29 09:05:02 -04:00
Jacob Fletcher
aa94c00bc6
chore: misc css ( #3391 )
2023-09-27 13:18:29 -04:00
Alessio Gravili
6338471287
chore: sort package.json keys of richtext-slate package
2023-09-19 12:02:42 +02: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