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'
|
import type { FeatureProvider } from '../../types'
|
||||||
|
|
||||||
export const TreeviewFeature = (): FeatureProvider => {
|
export const TreeViewFeature = (): FeatureProvider => {
|
||||||
return {
|
return {
|
||||||
feature: () => {
|
feature: () => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -261,7 +261,7 @@ export { consolidateHTMLConverters } from './field/features/converters/html/fiel
|
|||||||
export { lexicalHTML } from './field/features/converters/html/field'
|
export { lexicalHTML } from './field/features/converters/html/field'
|
||||||
|
|
||||||
export { TestRecorderFeature } from './field/features/debug/TestRecorder'
|
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 { BoldTextFeature } from './field/features/format/Bold'
|
||||||
export { InlineCodeTextFeature } from './field/features/format/InlineCode'
|
export { InlineCodeTextFeature } from './field/features/format/InlineCode'
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import type { CollectionConfig } from '../../../../packages/payload/src/collecti
|
|||||||
import {
|
import {
|
||||||
BlocksFeature,
|
BlocksFeature,
|
||||||
LinkFeature,
|
LinkFeature,
|
||||||
TreeviewFeature,
|
TreeViewFeature,
|
||||||
UploadFeature,
|
UploadFeature,
|
||||||
lexicalEditor,
|
lexicalEditor,
|
||||||
} from '../../../../packages/richtext-lexical/src'
|
} from '../../../../packages/richtext-lexical/src'
|
||||||
@@ -42,7 +42,7 @@ export const LexicalFields: CollectionConfig = {
|
|||||||
features: ({ defaultFeatures }) => [
|
features: ({ defaultFeatures }) => [
|
||||||
...defaultFeatures,
|
...defaultFeatures,
|
||||||
//TestRecorderFeature(),
|
//TestRecorderFeature(),
|
||||||
TreeviewFeature(),
|
TreeViewFeature(),
|
||||||
BlocksFeature({
|
BlocksFeature({
|
||||||
blocks: [
|
blocks: [
|
||||||
RichTextBlock,
|
RichTextBlock,
|
||||||
@@ -67,7 +67,7 @@ export const LexicalFields: CollectionConfig = {
|
|||||||
features: ({ defaultFeatures }) => [
|
features: ({ defaultFeatures }) => [
|
||||||
...defaultFeatures,
|
...defaultFeatures,
|
||||||
//TestRecorderFeature(),
|
//TestRecorderFeature(),
|
||||||
TreeviewFeature(),
|
TreeViewFeature(),
|
||||||
//HTMLConverterFeature(),
|
//HTMLConverterFeature(),
|
||||||
LinkFeature({
|
LinkFeature({
|
||||||
fields: [
|
fields: [
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import {
|
|||||||
LexicalPluginToLexicalFeature,
|
LexicalPluginToLexicalFeature,
|
||||||
LinkFeature,
|
LinkFeature,
|
||||||
SlateToLexicalFeature,
|
SlateToLexicalFeature,
|
||||||
TreeviewFeature,
|
TreeViewFeature,
|
||||||
UploadFeature,
|
UploadFeature,
|
||||||
lexicalEditor,
|
lexicalEditor,
|
||||||
lexicalHTML,
|
lexicalHTML,
|
||||||
@@ -35,7 +35,7 @@ export const LexicalMigrateFields: CollectionConfig = {
|
|||||||
features: ({ defaultFeatures }) => [
|
features: ({ defaultFeatures }) => [
|
||||||
...defaultFeatures,
|
...defaultFeatures,
|
||||||
LexicalPluginToLexicalFeature(),
|
LexicalPluginToLexicalFeature(),
|
||||||
TreeviewFeature(),
|
TreeViewFeature(),
|
||||||
HTMLConverterFeature(),
|
HTMLConverterFeature(),
|
||||||
LinkFeature({
|
LinkFeature({
|
||||||
fields: [
|
fields: [
|
||||||
@@ -75,7 +75,7 @@ export const LexicalMigrateFields: CollectionConfig = {
|
|||||||
features: ({ defaultFeatures }) => [
|
features: ({ defaultFeatures }) => [
|
||||||
...defaultFeatures,
|
...defaultFeatures,
|
||||||
SlateToLexicalFeature(),
|
SlateToLexicalFeature(),
|
||||||
TreeviewFeature(),
|
TreeViewFeature(),
|
||||||
HTMLConverterFeature(),
|
HTMLConverterFeature(),
|
||||||
LinkFeature({
|
LinkFeature({
|
||||||
fields: [
|
fields: [
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import {
|
|||||||
BlocksFeature,
|
BlocksFeature,
|
||||||
HTMLConverterFeature,
|
HTMLConverterFeature,
|
||||||
LinkFeature,
|
LinkFeature,
|
||||||
TreeviewFeature,
|
TreeViewFeature,
|
||||||
UploadFeature,
|
UploadFeature,
|
||||||
lexicalEditor,
|
lexicalEditor,
|
||||||
} from '../../../../packages/richtext-lexical/src'
|
} from '../../../../packages/richtext-lexical/src'
|
||||||
@@ -34,7 +34,7 @@ const RichTextFields: CollectionConfig = {
|
|||||||
editor: lexicalEditor({
|
editor: lexicalEditor({
|
||||||
features: ({ defaultFeatures }) => [
|
features: ({ defaultFeatures }) => [
|
||||||
...defaultFeatures,
|
...defaultFeatures,
|
||||||
TreeviewFeature(),
|
TreeViewFeature(),
|
||||||
HTMLConverterFeature({}),
|
HTMLConverterFeature({}),
|
||||||
LinkFeature({
|
LinkFeature({
|
||||||
fields: [
|
fields: [
|
||||||
@@ -102,7 +102,7 @@ const RichTextFields: CollectionConfig = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
editor: lexicalEditor({
|
editor: lexicalEditor({
|
||||||
features: ({ defaultFeatures }) => [...defaultFeatures, TreeviewFeature()],
|
features: ({ defaultFeatures }) => [...defaultFeatures, TreeViewFeature()],
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user