feat(richtext-lexical)!: rename TreeviewFeature into TreeViewFeature (#4520)
Breaking: If you import TreeviewFeature in your project, you have to rename the import to use TreeViewFeature (capitalized "V")
This commit is contained in:
@@ -3,7 +3,7 @@ import type { CollectionConfig } from '../../../../packages/payload/src/collecti
|
||||
import {
|
||||
BlocksFeature,
|
||||
LinkFeature,
|
||||
TreeviewFeature,
|
||||
TreeViewFeature,
|
||||
UploadFeature,
|
||||
lexicalEditor,
|
||||
} from '../../../../packages/richtext-lexical/src'
|
||||
@@ -42,7 +42,7 @@ export const LexicalFields: CollectionConfig = {
|
||||
features: ({ defaultFeatures }) => [
|
||||
...defaultFeatures,
|
||||
//TestRecorderFeature(),
|
||||
TreeviewFeature(),
|
||||
TreeViewFeature(),
|
||||
BlocksFeature({
|
||||
blocks: [
|
||||
RichTextBlock,
|
||||
@@ -67,7 +67,7 @@ export const LexicalFields: CollectionConfig = {
|
||||
features: ({ defaultFeatures }) => [
|
||||
...defaultFeatures,
|
||||
//TestRecorderFeature(),
|
||||
TreeviewFeature(),
|
||||
TreeViewFeature(),
|
||||
//HTMLConverterFeature(),
|
||||
LinkFeature({
|
||||
fields: [
|
||||
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
LexicalPluginToLexicalFeature,
|
||||
LinkFeature,
|
||||
SlateToLexicalFeature,
|
||||
TreeviewFeature,
|
||||
TreeViewFeature,
|
||||
UploadFeature,
|
||||
lexicalEditor,
|
||||
lexicalHTML,
|
||||
@@ -35,7 +35,7 @@ export const LexicalMigrateFields: CollectionConfig = {
|
||||
features: ({ defaultFeatures }) => [
|
||||
...defaultFeatures,
|
||||
LexicalPluginToLexicalFeature(),
|
||||
TreeviewFeature(),
|
||||
TreeViewFeature(),
|
||||
HTMLConverterFeature(),
|
||||
LinkFeature({
|
||||
fields: [
|
||||
@@ -75,7 +75,7 @@ export const LexicalMigrateFields: CollectionConfig = {
|
||||
features: ({ defaultFeatures }) => [
|
||||
...defaultFeatures,
|
||||
SlateToLexicalFeature(),
|
||||
TreeviewFeature(),
|
||||
TreeViewFeature(),
|
||||
HTMLConverterFeature(),
|
||||
LinkFeature({
|
||||
fields: [
|
||||
|
||||
@@ -4,7 +4,7 @@ import {
|
||||
BlocksFeature,
|
||||
HTMLConverterFeature,
|
||||
LinkFeature,
|
||||
TreeviewFeature,
|
||||
TreeViewFeature,
|
||||
UploadFeature,
|
||||
lexicalEditor,
|
||||
} from '../../../../packages/richtext-lexical/src'
|
||||
@@ -34,7 +34,7 @@ const RichTextFields: CollectionConfig = {
|
||||
editor: lexicalEditor({
|
||||
features: ({ defaultFeatures }) => [
|
||||
...defaultFeatures,
|
||||
TreeviewFeature(),
|
||||
TreeViewFeature(),
|
||||
HTMLConverterFeature({}),
|
||||
LinkFeature({
|
||||
fields: [
|
||||
@@ -102,7 +102,7 @@ const RichTextFields: CollectionConfig = {
|
||||
},
|
||||
},
|
||||
editor: lexicalEditor({
|
||||
features: ({ defaultFeatures }) => [...defaultFeatures, TreeviewFeature()],
|
||||
features: ({ defaultFeatures }) => [...defaultFeatures, TreeViewFeature()],
|
||||
}),
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user