Releases: payloadcms/payload
3.0.0-beta.30
3.0.0-beta.30 (2024-05-10)
Features
- storage-uploadthing package (#6316) (ed880d5)
- payload, ui: adds
disableListColumn
&disableListFilter
to fieldsadmin
props (#6238) (ea84e82)
Bug Fixes
- richtext-slate: list item values returning null (#6291) (4216d69)
- ui: appends
editDepth
value toradio
&checkbox
IDs when inside drawer (#6252) (dcad500) - next: respect fallback locale null value (#6207) (e96ff90)
Contributors
- Elliot DeNolf (@denolfe)
- Patrik (@PatrikKozak)
- Paul (@paulpopus)
- Ritsu (@r1tsuu)
3.0.0-beta.29
3.0.0-beta.29 (2024-05-09)
Features
- fix non-functional custom RSC component handling, separate label and description props, fix non-functional label function handling (#6264) (cfeac79)
Bug Fixes
- plugin-form-builder: resolve labelValue from LabelFunction (#5817) (5065322)
- plugin-form-builder: export types correctly (#6287) (ad4796c)
- templates: yarn install broken for new template installs (#6283) (3785c79)
- templates: blank-3.0: pin next version, as it was breaking new installs (#6281) (9364f8d)
BREAKING CHANGES
- fix non-functional custom RSC component handling, separate label and description props, fix non-functional label function handling (#6264) (cfeac79)
Breaking Changes:
- Globals config:
admin.description
no longer accepts a custom component. You will have to move it toadmin.components.elements.Description
- Collections config:
admin.description
no longer accepts a custom component. You will have to move it toadmin.components.edit.Description
- All Fields:
field.admin.description
no longer accepts a custom component. You will have to move it tofield.admin.components.Description
- Collapsible Field:
field.label
no longer accepts a custom component. You will have to move it tofield.admin.components.RowLabel
- Array Field:
field.admin.components.RowLabel
no longer accepts strings or records- If you are using our exported field components in your own app, their
labelProps
property has been stripped down and no longer contains thelabel
andrequired
prop. Those can now only be configured at the top-level
Contributors
- Alessio Gravili (@AlessioGr)
- Elliot DeNolf (@denolfe)
- Jacob Fletcher (@jacobsfletch)
- David Velasco (@davelsan)
- Paul (@paulpopus)
- Jarrod Flesch (@JarrodMFlesch)
3.0.0-beta.27
3.0.0-beta.27 (2024-05-08)
Features
Contributors
- Kendell Joseph (@kendelljoseph)
- Elliot DeNolf (@denolfe)
3.0.0-beta.26
3.0.0-beta.26 (2024-05-08)
Features
- ssr live preview (#6239) (731f023)
- improves crop rendering in thumbnail (#6260) (a7ac5ef)
- richtext-lexical: strongly typed PluginComponent types, remove LexicalBlocks, improve exports, fix e2e (#6255) (8e55a2a)
- richtext-lexical: improve draggable block indicator style and animations (f5fb095)
- richtext-lexical: add maxDepth property to various lexical features (#6242) (721919f)
Bug Fixes
- richtext-lexical: various UX improvements (#6241) (0f306da)
- richtext-lexical: fixed toolbar actions not ensuring editor focus, various link editor selection issues (ba9ea5c)
- richtext-lexical: fixed toolbar not wrapping correctly on small screen sizes (53b7d6f)
- properly extracts fallbackLang (#6237) (ac5d744)
- richtext-lexical: ensure inline toolbar is positioned between link editor and fixed toolbar (b94a265)
- richtext-lexical: text within relationship and upload node components was not able to be selected without selection resetting immediately (1ba3a92)
- richtext-lexical: inline editor is overlapping the clickable link editor for the first line (9814fd7)
- richtext-lexical: floating link editor did not properly hide if selection is not a range selection (20455f4)
BREAKING CHANGES
- richtext-lexical: strongly typed PluginComponent types, remove LexicalBlocks, improve exports, fix e2e (#6255) (8e55a2a)
BREAKING:
- Narrows the type of the
plugins
prop of lexical features. Client props are now also automatically provided to the plugin components. To migrate, type your plugin as eitherPluginComponent
or PluginComponentWithAnchor.BlockQuoteFeature
has been renamed toBlockquoteFeature
createClientComponent
is now exported only from /components- The
LexicalBlocks
andFieldWithRichTextRequiredEditor
types have been removed in favor of justBlocks
&Fields
, as well as improved validation.
Contributors
- Jacob Fletcher (@jacobsfletch)
- Elliot DeNolf (@denolfe)
- Jarrod Flesch (@JarrodMFlesch)
- Alessio Gravili (@AlessioGr)
v2.16.1
3.0.0-beta.25
3.0.0-beta.25 (2024-05-06)
Features
- translations: add Slovak translation (#6114) (d3bca57)
- richtext-lexical: add FixedToolbarFeature (#6192) (c462bf2)
editor: lexicalEditor({
features: ({ defaultFeatures }) => [
...defaultFeatures,
FixedToolbarFeature(),
],
}),
Bug Fixes
- threads draft arg through for child resolvers in GraphQL queries (#6196) (51149c7)
- plugin-form-builder: custom formSubmission hooks overriding core ones (#6204) (8a452c4)
BREAKING CHANGES
- plugin-stripe: add types exports and rename types to be more consistent with other plugins (#6216) (7f72006)
Some minor type renaming for consistency with other packages.
BREAKING:
- The default inline toolbar has now been extracted into an
InlineToolbarFeature
. While it's part of the defaultFeatures, you might have to add it to your editor features if you are not including the defaultFeatures and still want to keep the inline toolbar (floating toolbar)- Some types have been renamed, e.g.
InlineToolbarGroup
is nowToolbarGroup
, andInlineToolbarGroupItem
is nowToolbarGroupItem
- The
displayName
property of SlashMenuGroup and SlashMenuItem has been renamed tolabel
to match thelabel
prop of the toolbars- The
inlineToolbarFeatureButtonsGroupWithItem
,inlineToolbarFormatGroupWithItems
andinlineToolbarTextDropdownGroupWithItems
exports have been renamed totoolbarTextDropdownGroupWithItems
,toolbarFormatGroupWithItems
,toolbarFeatureButtonsGroupWithItems
Contributors
- Elliot DeNolf (@denolfe)
- Paul (@paulpopus)
- Jarrod Flesch (@JarrodMFlesch)
- Friggo (@MrFriggo)
- Alessio Gravili (@AlessioGr)
- Jacob Fletcher (@jacobsfletch)
v2.16.0
3.0.0-beta.24
3.0.0-beta.24 (2024-05-03)
Features
- next: supports custom login redirects in initPage (#6186) (ea917dd)
- richtext-lexical: finalize ClientFeature interface (#6191) (7ab156e)
Bug Fixes
- cascade graphql locales through relationships (#6166) (e25814e)
- only allow save after form is modified (#6189) (27ea117)
- ensures confirm password remains on form state (#6190) (f2d4156)
- moves ts-essentials to prod deps (#6187) (bdf08a1)
BREAKING CHANGES
All plugins have been updated to use named exports and the names have been updated to be consistent.
Please read the list below and rename your import accordingly
// before
import { cloudStorage } from '@payloadcms/plugin-cloud-storage'
// current
import { cloudStoragePlugin } from '@payloadcms/plugin-cloud-storage'
// before
import { payloadCloud } from '@payloadcms/plugin-cloud'
// current
import { payloadCloudPlugin } from '@payloadcms/plugin-cloud'
// before
import formBuilder from '@payloadcms/plugin-form-builder'
// current
import { formBuilderPlugin } from '@payloadcms/plugin-form-builder'
// before
import { nestedDocs } from '@payloadcms/plugin-nested-docs'
// current
import { nestedDocsPlugin } from '@payloadcms/plugin-nested-docs'
// before
import { redirects } from '@payloadcms/plugin-redirects'
// current
import { redirectsPlugin } from '@payloadcms/plugin-redirects'
// before
import search from '@payloadcms/plugin-search'
// current
import { searchPlugin } from '@payloadcms/plugin-search'
// before
import { sentry } from '@payloadcms/plugin-sentry'
// current
import { sentryPlugin } from '@payloadcms/plugin-sentry'
// before
import { seo } from '@payloadcms/plugin-seo'
// current
import { seoPlugin } from '@payloadcms/plugin-seo'
If you have own, custom lexical features, there will be a bunch of breaking API changes for you. The saved JSON data is not affected.
floatingSelectToolbar
has been changed totoolbarInline
slashMenu.dynamicOptions
andslashMenu.options
have been changed toslashMenu.groups
andslashMenu.dynamicGroups
toolbarFixed.sections
is nowtoolbarFixed.groups
Slash menu group
options
and toolbar groupentries
have both been renamed toitems
Toolbar group item
onClick
has been renamed toonSelect
to match slash menu propertiesslashMenu item
onSelect
is no longer auto-wrapped inside aneditor.update
. If you perform editor updates in them, you have to wrap it inside aneditor.update
callback yourself. Within our own features this extra control has removed a good amount of unnecessary, nestededitor.update
calls, which is goodSlash menu items are no longer initialized using the
new
keyword, as they are now types and no longer classes. You can convert them to an object and add thekey
property as an object property instead of an argument to the previous SlashMenuItem constructorCSS classnames for slash menu and toolbars, as well as their items, have changed
CheckListFeature
is now exported as and has been renamed toChecklistFeature
For guidance on migration, check out how we migrated our own features in this PR's diff: https://github.com/payloadcms/payload/pull/6191/files
Contributors
- Elliot DeNolf (@denolfe)
- Paul (@paulpopus)
- Jessica Chowdhury (@JessChowdhury)
- Jacob Fletcher (@jacobsfletch)
- Jarrod Flesch (@JarrodMFlesch)
- Alessio Gravili (@AlessioGr)
v2.15.0
2.15.0 (2024-05-03)
Features
- add isSortable to arrays and blocks (#5962) (5c58bd3)
- use filterOptions in list relationship filter (#6156) (23f3eb1)
Bug Fixes
- bulk publish from collection list (#6063) (84570e6)
- cascade draft arg in nested GraphQL relationship queries (#6141) (a8ac8b4)
- GraphQL nested relationships not respecting req locale (#6117) (3fccd34)
- hide unusable fields from collection filter select (#6135) (2be5ad0)
- incorrect
localesNotSaved
translation (#5996) (af67749) - plugin-cloud: purge cache for all sizes (#5301) (831f1ff)
- properly adds
readonly
styles to disabledradio
fields (#6176) (9b7e62d) - resets filter state when param state change within route (#6169) (6e38cc2)
- richtext-lexical: drag and add block handles disappear too quickly for smaller screen sizes. (#6145) (24f6972)
- richtext-lexical: floating toolbar caret positioned incorrectly for some line heights (#6151) (36b1f5a)
- sanitizes fields in default edit view for drawer content (#6175) (43dab5c)
- version restoration (#6039) (91bac9c)
3.0.0-beta.23
3.0.0-beta.23 (2024-05-02)
Features
Bug Fixes
- reset password validations (#6153) (c0ae287)
- ui: watch "where" query param inside route and reset WhereBuilder (#6184) (a2b92aa)
Contributors
- Elliot DeNolf (@denolfe)
- Paul (@paulpopus)
- Jarrod Flesch (@JarrodMFlesch)
- Patrik (@PatrikKozak)
- Friggo (@MrFriggo)