v3.0.0-beta.123
Version v3.0.0-beta.123Major ReleasePre-release
Release Notes
v3.0.0-beta.123 (2024-10-31)
š Features
- plugin-seo: support overriding default fields via a function instead and fixes bugs regarding localized labels (#8958) (b417c1f)
š Bug Fixes
selectwith unnamed tabs (#8966) (3175541)- locked documents with
readaccess forusers(#8950) (55ce8e6) - return type of
findByIDwithstrict: true(#8953) (08251ec) - next: overly large width on document locked modal content (#8967) (090831c)
- templates: website template error inside the populateAuthors hook (#8972) (9eb79c1)
- ui: increase z-index of
ReactSelect(#8735) (c0397c3)
ā ļø BREAKING CHANGES
- plugin-seo: support overriding default fields via a function instead and fixes bugs regarding localized labels (#8958) (b417c1f) The SEO plugin now takes in a function to override or add in new fields
fieldOverrideshas been removedfieldsis now a function that takes indefaultFieldsand expects an array of fields in return This makes it a lot easier for end users to override and extend existing fields and add new ones. This change also brings this plugin inline with the pattern that we use in our other plugins.
```ts
// before
seoPlugin({
fieldOverrides: {
title: {
required: true,
},
},
fields: [
{
name: 'customField',
type: 'text',
}
]
})
// after
seoPlugin({
fields: ({ defaultFields }) => {
const modifiedFields = defaultFields.map((field) => {
// Override existing fields
if ('name' in field && field.name === 'title') {
return {
...field,
required: true,
}
}
return field
})
return [
...modifiedFields,
// Add a new field
{
name: 'ogTitle',
type: 'text',
label: 'og:title',
},
]
},
})
```
š¤ Contributors
- Paul (@paulpopus)
- GermƔn JabloƱski (@GermanJablo)
- Sasha (@r1tsuu)
- Patrik (@PatrikKozak)
- Elliot DeNolf (@denolfe)