feat!: fix non-functional custom RSC component handling, separate label and description props, fix non-functional label function handling (#6264)
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
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
'use client'
|
||||
|
||||
import type { FormFieldBase } from '@payloadcms/ui/fields/shared'
|
||||
import type { ClientValidate, FieldBase } from 'payload/types'
|
||||
import type { ClientValidate } from 'payload/types'
|
||||
import type { BaseEditor, BaseOperation } from 'slate'
|
||||
import type { HistoryEditor } from 'slate-history'
|
||||
import type { ReactEditor } from 'slate-react'
|
||||
@@ -50,7 +50,6 @@ declare module 'slate' {
|
||||
const RichTextField: React.FC<
|
||||
FormFieldBase & {
|
||||
elements: EnabledFeatures['elements']
|
||||
label?: FieldBase['label']
|
||||
leaves: EnabledFeatures['leaves']
|
||||
name: string
|
||||
placeholder?: string
|
||||
|
||||
Reference in New Issue
Block a user