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:
@@ -1,6 +1,6 @@
|
||||
import type { FeatureProvider } from '../../types'
|
||||
|
||||
export const TreeviewFeature = (): FeatureProvider => {
|
||||
export const TreeViewFeature = (): FeatureProvider => {
|
||||
return {
|
||||
feature: () => {
|
||||
return {
|
||||
|
||||
@@ -261,7 +261,7 @@ export { consolidateHTMLConverters } from './field/features/converters/html/fiel
|
||||
export { lexicalHTML } from './field/features/converters/html/field'
|
||||
|
||||
export { TestRecorderFeature } from './field/features/debug/TestRecorder'
|
||||
export { TreeviewFeature } from './field/features/debug/TreeView'
|
||||
export { TreeViewFeature } from './field/features/debug/TreeView'
|
||||
|
||||
export { BoldTextFeature } from './field/features/format/Bold'
|
||||
export { InlineCodeTextFeature } from './field/features/format/InlineCode'
|
||||
|
||||
@@ -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