chore(richtext-lexical): make feature folders lower-case
This commit is contained in:
@@ -8,7 +8,7 @@ import type { FeatureProviderProviderClient } from '../types'
|
||||
|
||||
import { SlashMenuOption } from '../../lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types'
|
||||
import { BlockquoteIcon } from '../../lexical/ui/icons/Blockquote'
|
||||
import { TextDropdownSectionWithEntries } from '../common4/floatingSelectToolbarTextDropdownSection'
|
||||
import { TextDropdownSectionWithEntries } from '../common/floatingSelectToolbarTextDropdownSection'
|
||||
import { createClientComponent } from '../createClientComponent'
|
||||
import { MarkdownTransformer } from './markdownTransformer'
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { QuoteNode, type SerializedQuoteNode } from '@lexical/rich-text'
|
||||
|
||||
import type { HTMLConverter } from '../converters5/html/converter/types'
|
||||
import type { HTMLConverter } from '../converters/html/converter/types'
|
||||
import type { FeatureProviderProviderServer } from '../types'
|
||||
|
||||
import { convertLexicalNodesToHTML } from '../converters5/html/converter'
|
||||
import { convertLexicalNodesToHTML } from '../converters/html/converter'
|
||||
import { BlockQuoteFeatureClientComponent } from './feature.client'
|
||||
import { MarkdownTransformer } from './markdownTransformer'
|
||||
|
||||
@@ -15,6 +15,6 @@ export const TestRecorderFeature = (): FeatureProvider => {
|
||||
props: null,
|
||||
}
|
||||
},
|
||||
key: 'debug-testrecorder',
|
||||
key: 'testrecorder',
|
||||
}
|
||||
}
|
||||
@@ -15,6 +15,6 @@ export const TreeViewFeature = (): FeatureProvider => {
|
||||
props: null,
|
||||
}
|
||||
},
|
||||
key: 'debug-treeview',
|
||||
key: 'treeview',
|
||||
}
|
||||
}
|
||||
@@ -35,6 +35,6 @@ export const InlineCodeTextFeature = (): FeatureProvider => {
|
||||
props: null,
|
||||
}
|
||||
},
|
||||
key: 'inlineCode',
|
||||
key: 'inlinecode',
|
||||
}
|
||||
}
|
||||
@@ -4,12 +4,12 @@ import { $createHeadingNode, HeadingNode } from '@lexical/rich-text'
|
||||
import { $setBlocksType } from '@lexical/selection'
|
||||
import { $getSelection } from 'lexical'
|
||||
|
||||
import type { HTMLConverter } from '../converters5/html/converter/types'
|
||||
import type { HTMLConverter } from '../converters/html/converter/types'
|
||||
import type { FeatureProvider } from '../types'
|
||||
|
||||
import { SlashMenuOption } from '../../lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types'
|
||||
import { TextDropdownSectionWithEntries } from '../common4/floatingSelectToolbarTextDropdownSection'
|
||||
import { convertLexicalNodesToHTML } from '../converters5/html/converter'
|
||||
import { TextDropdownSectionWithEntries } from '../common/floatingSelectToolbarTextDropdownSection'
|
||||
import { convertLexicalNodesToHTML } from '../converters/html/converter'
|
||||
import { MarkdownTransformer } from './markdownTransformer'
|
||||
|
||||
const setHeading = (headingSize: HeadingTagType) => {
|
||||
@@ -9,7 +9,7 @@ import type { LinkFields } from './nodes/types'
|
||||
|
||||
import { LinkIcon } from '../../lexical/ui/icons/Link'
|
||||
import { getSelectedNode } from '../../lexical/utils/getSelectedNode'
|
||||
import { FeaturesSectionWithEntries } from '../common4/floatingSelectToolbarFeaturesButtonsSection'
|
||||
import { FeaturesSectionWithEntries } from '../common/floatingSelectToolbarFeaturesButtonsSection'
|
||||
import { createClientComponent } from '../createClientComponent'
|
||||
import { AutoLinkNode } from './nodes/AutoLinkNode'
|
||||
import { $isLinkNode, LinkNode, TOGGLE_LINK_COMMAND } from './nodes/LinkNode'
|
||||
@@ -6,12 +6,12 @@ import type React from 'react'
|
||||
import { initI18n } from '@payloadcms/translations'
|
||||
import { translations } from '@payloadcms/translations/client'
|
||||
|
||||
import type { HTMLConverter } from '../converters5/html/converter/types'
|
||||
import type { HTMLConverter } from '../converters/html/converter/types'
|
||||
import type { FeatureProviderProviderServer } from '../types'
|
||||
import type { ClientProps } from './feature.client'
|
||||
import type { SerializedAutoLinkNode, SerializedLinkNode } from './nodes/types'
|
||||
|
||||
import { convertLexicalNodesToHTML } from '../converters5/html/converter'
|
||||
import { convertLexicalNodesToHTML } from '../converters/html/converter'
|
||||
import { LinkFeatureClientComponent } from './feature.client'
|
||||
import { AutoLinkNode } from './nodes/AutoLinkNode'
|
||||
import { LinkNode } from './nodes/LinkNode'
|
||||
@@ -3,7 +3,7 @@ import { INSERT_CHECK_LIST_COMMAND, ListItemNode, ListNode } from '@lexical/list
|
||||
import type { FeatureProvider } from '../../types'
|
||||
|
||||
import { SlashMenuOption } from '../../../lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types'
|
||||
import { TextDropdownSectionWithEntries } from '../../common4/floatingSelectToolbarTextDropdownSection'
|
||||
import { TextDropdownSectionWithEntries } from '../../common/floatingSelectToolbarTextDropdownSection'
|
||||
import { ListHTMLConverter, ListItemHTMLConverter } from '../htmlConverter'
|
||||
import { CHECK_LIST } from './markdownTransformers'
|
||||
|
||||
@@ -86,6 +86,6 @@ export const CheckListFeature = (): FeatureProvider => {
|
||||
},
|
||||
}
|
||||
},
|
||||
key: 'checkList',
|
||||
key: 'checklist',
|
||||
}
|
||||
}
|
||||
@@ -2,9 +2,9 @@ import type { SerializedListItemNode, SerializedListNode } from '@lexical/list'
|
||||
|
||||
import { ListItemNode, ListNode } from '@lexical/list'
|
||||
|
||||
import type { HTMLConverter } from '../converters5/html/converter/types'
|
||||
import type { HTMLConverter } from '../converters/html/converter/types'
|
||||
|
||||
import { convertLexicalNodesToHTML } from '../converters5/html/converter'
|
||||
import { convertLexicalNodesToHTML } from '../converters/html/converter'
|
||||
|
||||
export const ListHTMLConverter: HTMLConverter<SerializedListNode> = {
|
||||
converter: async ({ converters, node, parent }) => {
|
||||
@@ -3,7 +3,7 @@ import { INSERT_ORDERED_LIST_COMMAND, ListItemNode, ListNode } from '@lexical/li
|
||||
import type { FeatureProvider } from '../../types'
|
||||
|
||||
import { SlashMenuOption } from '../../../lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types'
|
||||
import { TextDropdownSectionWithEntries } from '../../common4/floatingSelectToolbarTextDropdownSection'
|
||||
import { TextDropdownSectionWithEntries } from '../../common/floatingSelectToolbarTextDropdownSection'
|
||||
import { ListHTMLConverter, ListItemHTMLConverter } from '../htmlConverter'
|
||||
import { ORDERED_LIST } from './markdownTransformer'
|
||||
|
||||
@@ -85,6 +85,6 @@ export const OrderedListFeature = (): FeatureProvider => {
|
||||
},
|
||||
}
|
||||
},
|
||||
key: 'orderedList',
|
||||
key: 'orderedlist',
|
||||
}
|
||||
}
|
||||
@@ -3,7 +3,7 @@ import { INSERT_UNORDERED_LIST_COMMAND, ListItemNode, ListNode } from '@lexical/
|
||||
import type { FeatureProvider } from '../../types'
|
||||
|
||||
import { SlashMenuOption } from '../../../lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types'
|
||||
import { TextDropdownSectionWithEntries } from '../../common4/floatingSelectToolbarTextDropdownSection'
|
||||
import { TextDropdownSectionWithEntries } from '../../common/floatingSelectToolbarTextDropdownSection'
|
||||
import { ListHTMLConverter, ListItemHTMLConverter } from '../htmlConverter'
|
||||
import { UNORDERED_LIST } from './markdownTransformer'
|
||||
|
||||
@@ -81,6 +81,6 @@ export const UnorderedListFeature = (): FeatureProvider => {
|
||||
},
|
||||
}
|
||||
},
|
||||
key: 'unorderedList',
|
||||
key: 'unorderedlist',
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
import type { SerializedLinkNode } from '../../../../link1/nodes/LinkNode'
|
||||
import type { SerializedLinkNode } from '../../../../link/nodes/LinkNode'
|
||||
import type { LexicalPluginNodeConverter } from '../types'
|
||||
|
||||
import { convertLexicalPluginNodesToLexical } from '..'
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { SerializedLinkNode } from '../../../../link1/nodes/LinkNode'
|
||||
import type { SerializedLinkNode } from '../../../../link/nodes/LinkNode'
|
||||
import type { SlateNodeConverter } from '../types'
|
||||
|
||||
import { convertSlateNodesToLexical } from '..'
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user