npm @payloadcms/plugin-search 3.0.0-beta.24

6 months ago

3.0.0-beta.24 (2024-05-03)

Features

  • next: supports custom login redirects in initPage (#6186) (ea917dd)
  • next: supports custom login redirects in initPage (070d8e1)
  • 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

Don't miss a new plugin-search release

NewReleases is sending notifications on new releases.