Skip to content

Releases: payloadcms/payload

3.0.0-beta.30

10 May 21:13
69c93d3
Compare
Choose a tag to compare
3.0.0-beta.30 Pre-release
Pre-release

3.0.0-beta.30 (2024-05-10)

Features

  • storage-uploadthing package (#6316) (ed880d5)
  • payload, ui: adds disableListColumn & disableListFilter to fields admin props (#6238) (ea84e82)

Bug Fixes

  • richtext-slate: list item values returning null (#6291) (4216d69)
  • ui: appends editDepth value to radio & checkbox IDs when inside drawer (#6252) (dcad500)
  • next: respect fallback locale null value (#6207) (e96ff90)

Contributors

3.0.0-beta.29

09 May 21:24
9df5ab8
Compare
Choose a tag to compare
3.0.0-beta.29 Pre-release
Pre-release

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 to admin.components.elements.Description
  • Collections config: admin.description no longer accepts a custom component. You will have to move it to admin.components.edit.Description
  • All Fields: field.admin.description no longer accepts a custom component. You will have to move it to field.admin.components.Description
  • Collapsible Field: field.label no longer accepts a custom component. You will have to move it to field.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 the label and required prop. Those can now only be configured at the top-level

Contributors

3.0.0-beta.27

08 May 17:38
Compare
Choose a tag to compare
3.0.0-beta.27 Pre-release
Pre-release

3.0.0-beta.27 (2024-05-08)

Features

  • release live-preview and live-preview-react
  • ui: toggle sortable arrays and blocks (#6008) (4c6aaaf)

Contributors

3.0.0-beta.26

08 May 15:23
Compare
Choose a tag to compare
3.0.0-beta.26 Pre-release
Pre-release

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 either PluginComponent or PluginComponentWithAnchor.
  • BlockQuoteFeature has been renamed to BlockquoteFeature
  • createClientComponent is now exported only from /components
  • The LexicalBlocks and FieldWithRichTextRequiredEditor types have been removed in favor of just Blocks & Fields, as well as improved validation.
  • plugin-stripe: disables rest proxy by default (#6230) (e1ff92e)

Contributors

v2.16.1

07 May 19:55
Compare
Choose a tag to compare

2.16.1 (2024-05-07)

Features

  • richtext-lexical: add maxDepth property to various lexical features (#6250) (857b9a4), closes #6242

Bug Fixes

  • add index to version status field (#6256) (2972af2)
  • richtext-lexical: export missing HorizontalRuleFeature (#6236) (f829b08)

3.0.0-beta.25

06 May 17:07
Compare
Choose a tag to compare
3.0.0-beta.25 Pre-release
Pre-release

3.0.0-beta.25 (2024-05-06)

Features

editor: lexicalEditor({
  features: ({ defaultFeatures }) => [
    ...defaultFeatures,
    FixedToolbarFeature(),
  ],
}),

CleanShot 2024-05-06 at 13 43 04@2x

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.

  • richtext-lexical: add FixedToolbarFeature (#6192) (c462bf2)

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 now ToolbarGroup, and InlineToolbarGroupItem is now ToolbarGroupItem
  • The displayName property of SlashMenuGroup and SlashMenuItem has been renamed to label to match the label prop of the toolbars
  • The inlineToolbarFeatureButtonsGroupWithItem, inlineToolbarFormatGroupWithItems and inlineToolbarTextDropdownGroupWithItems exports have been renamed to toolbarTextDropdownGroupWithItems, toolbarFormatGroupWithItems, toolbarFeatureButtonsGroupWithItems

Contributors

v2.16.0

06 May 16:48
Compare
Choose a tag to compare

2.16.0 (2024-05-06)

Features

  • adds disableListColumn, disableListFilter to fields admin props (#6188) (db4aace)

Bug Fixes

  • graphql upload relations returning null (#6233) (cac52da)
  • hide drag handles when admin.isSortable: false (#6225) (622cdb0)
  • plugin-form-builder: hook overrides not working as intended (#6203) (b735d6a)

3.0.0-beta.24

03 May 19:02
Compare
Choose a tag to compare
3.0.0-beta.24 Pre-release
Pre-release

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

BREAKING CHANGES

  • update all plugin exports to be named and consistent (#6195) (b642cb2)

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'
  • richtext-lexical: finalize ClientFeature interface (#6191) (7ab156e)

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 to toolbarInline

  • slashMenu.dynamicOptions and slashMenu.options have been changed to slashMenu.groups and slashMenu.dynamicGroups

  • toolbarFixed.sections is now toolbarFixed.groups

  • Slash menu group options and toolbar group entries have both been renamed to items

  • Toolbar group item onClick has been renamed to onSelect to match slash menu properties

  • slashMenu item onSelect is no longer auto-wrapped inside an editor.update. If you perform editor updates in them, you have to wrap it inside an editor.update callback yourself. Within our own features this extra control has removed a good amount of unnecessary, nested editor.update calls, which is good

  • Slash 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 the key property as an object property instead of an argument to the previous SlashMenuItem constructor

  • CSS classnames for slash menu and toolbars, as well as their items, have changed

  • CheckListFeature is now exported as and has been renamed to ChecklistFeature

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

v2.15.0

03 May 15:24
Compare
Choose a tag to compare

2.15.0 (2024-05-03)

Features

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 disabled radio 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

02 May 20:09
Compare
Choose a tag to compare
3.0.0-beta.23 Pre-release
Pre-release

3.0.0-beta.23 (2024-05-02)

Features

  • plugin-stripe: update plugin stripe for v3 (#6019) (75a9546)

Bug Fixes

  • reset password validations (#6153) (c0ae287)
  • ui: watch "where" query param inside route and reset WhereBuilder (#6184) (a2b92aa)

Contributors