chore: rename folders to make git recognize case changes
This commit is contained in:
@@ -4,12 +4,12 @@ import { $createHeadingNode, HeadingNode } from '@lexical/rich-text'
|
||||
import { $setBlocksType } from '@lexical/selection'
|
||||
import { $getSelection } from 'lexical'
|
||||
|
||||
import type { HTMLConverter } from '../converters/html/converter/types'
|
||||
import type { HTMLConverter } from '../converters5/html/converter/types'
|
||||
import type { FeatureProvider } from '../types'
|
||||
|
||||
import { SlashMenuOption } from '../../lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types'
|
||||
import { TextDropdownSectionWithEntries } from '../common/floatingSelectToolbarTextDropdownSection'
|
||||
import { convertLexicalNodesToHTML } from '../converters/html/converter'
|
||||
import { TextDropdownSectionWithEntries } from '../common4/floatingSelectToolbarTextDropdownSection'
|
||||
import { convertLexicalNodesToHTML } from '../converters5/html/converter'
|
||||
import { MarkdownTransformer } from './markdownTransformer'
|
||||
|
||||
const setHeading = (headingSize: HeadingTagType) => {
|
||||
@@ -4,7 +4,7 @@ import { $createParagraphNode, $getSelection } from 'lexical'
|
||||
import type { FeatureProvider } from '../types'
|
||||
|
||||
import { SlashMenuOption } from '../../lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types'
|
||||
import { TextDropdownSectionWithEntries } from '../common/floatingSelectToolbarTextDropdownSection'
|
||||
import { TextDropdownSectionWithEntries } from '../common4/floatingSelectToolbarTextDropdownSection'
|
||||
import { ParagraphFeatureComponent } from './Component'
|
||||
|
||||
export const key = 'paragraph' as const
|
||||
@@ -61,6 +61,6 @@ export const ParagraphFeature = (): FeatureProvider => {
|
||||
},
|
||||
}
|
||||
},
|
||||
key: key,
|
||||
key,
|
||||
}
|
||||
}
|
||||
@@ -22,7 +22,7 @@ import type { UploadFeatureProps } from '..'
|
||||
import type { UploadData } from '../nodes/UploadNode'
|
||||
|
||||
import { useEditorConfigContext } from '../../../lexical/config/client/EditorConfigProvider'
|
||||
import { EnabledRelationshipsCondition } from '../../Relationship/utils/EnabledRelationshipsCondition'
|
||||
import { EnabledRelationshipsCondition } from '../../Relationship1/utils/EnabledRelationshipsCondition'
|
||||
import { INSERT_UPLOAD_WITH_DRAWER_COMMAND } from '../drawer/commands'
|
||||
import { ExtraFieldsUploadDrawer } from './ExtraFieldsDrawer'
|
||||
import './index.scss'
|
||||
@@ -4,7 +4,7 @@ import { useListDrawer } from '@payloadcms/ui'
|
||||
import { $getNodeByKey, COMMAND_PRIORITY_EDITOR, type LexicalEditor } from 'lexical'
|
||||
import React, { useCallback, useEffect, useState } from 'react'
|
||||
|
||||
import { EnabledRelationshipsCondition } from '../../Relationship/utils/EnabledRelationshipsCondition'
|
||||
import { EnabledRelationshipsCondition } from '../../Relationship1/utils/EnabledRelationshipsCondition'
|
||||
import { $createUploadNode } from '../nodes/UploadNode'
|
||||
import { INSERT_UPLOAD_COMMAND } from '../plugin'
|
||||
import { INSERT_UPLOAD_WITH_DRAWER_COMMAND } from './commands'
|
||||
@@ -2,7 +2,7 @@ import type { Field } from 'payload/types'
|
||||
|
||||
import payload from 'payload'
|
||||
|
||||
import type { HTMLConverter } from '../converters/html/converter/types'
|
||||
import type { HTMLConverter } from '../converters5/html/converter/types'
|
||||
import type { FeatureProvider } from '../types'
|
||||
import type { SerializedUploadNode } from './nodes/UploadNode'
|
||||
|
||||
@@ -104,7 +104,7 @@ export const UploadFeature = (props?: UploadFeatureProps): FeatureProvider => {
|
||||
position: 'normal',
|
||||
},
|
||||
],
|
||||
props: props,
|
||||
props,
|
||||
slashMenu: {
|
||||
options: [
|
||||
{
|
||||
@@ -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 '../common/floatingSelectToolbarTextDropdownSection'
|
||||
import { TextDropdownSectionWithEntries } from '../common4/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 '../converters/html/converter/types'
|
||||
import type { HTMLConverter } from '../converters5/html/converter/types'
|
||||
import type { FeatureProviderProviderServer } from '../types'
|
||||
|
||||
import { convertLexicalNodesToHTML } from '../converters/html/converter'
|
||||
import { convertLexicalNodesToHTML } from '../converters5/html/converter'
|
||||
import { BlockQuoteFeatureClientComponent } from './feature.client'
|
||||
import { MarkdownTransformer } from './markdownTransformer'
|
||||
|
||||
@@ -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 '../common/floatingSelectToolbarFeaturesButtonsSection'
|
||||
import { FeaturesSectionWithEntries } from '../common4/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 '../converters/html/converter/types'
|
||||
import type { HTMLConverter } from '../converters5/html/converter/types'
|
||||
import type { FeatureProviderProviderServer } from '../types'
|
||||
import type { ClientProps } from './feature.client'
|
||||
import type { SerializedAutoLinkNode, SerializedLinkNode } from './nodes/types'
|
||||
|
||||
import { convertLexicalNodesToHTML } from '../converters/html/converter'
|
||||
import { convertLexicalNodesToHTML } from '../converters5/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 '../../common/floatingSelectToolbarTextDropdownSection'
|
||||
import { TextDropdownSectionWithEntries } from '../../common4/floatingSelectToolbarTextDropdownSection'
|
||||
import { ListHTMLConverter, ListItemHTMLConverter } from '../htmlConverter'
|
||||
import { CHECK_LIST } from './markdownTransformers'
|
||||
|
||||
@@ -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 '../../common/floatingSelectToolbarTextDropdownSection'
|
||||
import { TextDropdownSectionWithEntries } from '../../common4/floatingSelectToolbarTextDropdownSection'
|
||||
import { ListHTMLConverter, ListItemHTMLConverter } from '../htmlConverter'
|
||||
import { ORDERED_LIST } from './markdownTransformer'
|
||||
|
||||
@@ -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 '../../common/floatingSelectToolbarTextDropdownSection'
|
||||
import { TextDropdownSectionWithEntries } from '../../common4/floatingSelectToolbarTextDropdownSection'
|
||||
import { ListHTMLConverter, ListItemHTMLConverter } from '../htmlConverter'
|
||||
import { UNORDERED_LIST } from './markdownTransformer'
|
||||
|
||||
@@ -2,9 +2,9 @@ import type { SerializedListItemNode, SerializedListNode } from '@lexical/list'
|
||||
|
||||
import { ListItemNode, ListNode } from '@lexical/list'
|
||||
|
||||
import type { HTMLConverter } from '../converters/html/converter/types'
|
||||
import type { HTMLConverter } from '../converters5/html/converter/types'
|
||||
|
||||
import { convertLexicalNodesToHTML } from '../converters/html/converter'
|
||||
import { convertLexicalNodesToHTML } from '../converters5/html/converter'
|
||||
|
||||
export const ListHTMLConverter: HTMLConverter<SerializedListNode> = {
|
||||
converter: async ({ converters, node, parent }) => {
|
||||
@@ -1,5 +1,5 @@
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
import type { SerializedLinkNode } from '../../../../link/nodes/LinkNode'
|
||||
import type { SerializedLinkNode } from '../../../../link1/nodes/LinkNode'
|
||||
import type { LexicalPluginNodeConverter } from '../types'
|
||||
|
||||
import { convertLexicalPluginNodesToLexical } from '..'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { SerializedLinkNode } from '../../../../link/nodes/LinkNode'
|
||||
import type { SerializedLinkNode } from '../../../../link1/nodes/LinkNode'
|
||||
import type { SlateNodeConverter } from '../types'
|
||||
|
||||
import { convertSlateNodesToLexical } from '..'
|
||||
|
||||
@@ -12,7 +12,7 @@ import type { AdapterProps } from '../../types'
|
||||
import type { ClientEditorConfig, ServerEditorConfig } from '../lexical/config/types'
|
||||
import type { FloatingToolbarSection } from '../lexical/plugins/FloatingSelectToolbar/types'
|
||||
import type { SlashMenuGroup } from '../lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types'
|
||||
import type { HTMLConverter } from './converters/html/converter/types'
|
||||
import type { HTMLConverter } from './converters5/html/converter/types'
|
||||
|
||||
export type PopulationPromise<T extends SerializedLexicalNode = SerializedLexicalNode> = ({
|
||||
context,
|
||||
|
||||
@@ -3,24 +3,24 @@ import type { EditorConfig as LexicalEditorConfig } from 'lexical/LexicalEditor'
|
||||
import type { FeatureProviderServer } from '../../../features/types'
|
||||
import type { SanitizedServerEditorConfig, ServerEditorConfig } from '../types'
|
||||
|
||||
import { HeadingFeature } from '../../../features/Heading'
|
||||
import { ParagraphFeature } from '../../../features/Paragraph'
|
||||
import { RelationshipFeature } from '../../../features/Relationship'
|
||||
import { UploadFeature } from '../../../features/Upload'
|
||||
import { AlignFeature } from '../../../features/align/feature.server'
|
||||
import { BlockQuoteFeature } from '../../../features/blockquote/feature.server'
|
||||
import { BoldTextFeature } from '../../../features/format/Bold'
|
||||
import { InlineCodeTextFeature } from '../../../features/format/InlineCode'
|
||||
import { ItalicTextFeature } from '../../../features/format/Italic'
|
||||
import { HeadingFeature } from '../../../features/Heading1'
|
||||
import { ParagraphFeature } from '../../../features/Paragraph1'
|
||||
import { RelationshipFeature } from '../../../features/Relationship1'
|
||||
import { UploadFeature } from '../../../features/Upload1'
|
||||
import { AlignFeature } from '../../../features/align1/feature.server'
|
||||
import { BlockQuoteFeature } from '../../../features/blockquote2/feature.server'
|
||||
import { BoldTextFeature } from '../../../features/format/Bold8'
|
||||
import { InlineCodeTextFeature } from '../../../features/format/InlineCode1'
|
||||
import { ItalicTextFeature } from '../../../features/format/Italic1'
|
||||
import { StrikethroughTextFeature } from '../../../features/format/strikethrough'
|
||||
import { SubscriptTextFeature } from '../../../features/format/subscript'
|
||||
import { SuperscriptTextFeature } from '../../../features/format/superscript'
|
||||
import { UnderlineTextFeature } from '../../../features/format/underline'
|
||||
import { IndentFeature } from '../../../features/indent'
|
||||
import { LinkFeature } from '../../../features/link/feature.server'
|
||||
import { CheckListFeature } from '../../../features/lists/CheckList'
|
||||
import { OrderedListFeature } from '../../../features/lists/OrderedList'
|
||||
import { UnorderedListFeature } from '../../../features/lists/UnorderedList'
|
||||
import { LinkFeature } from '../../../features/link1/feature.server'
|
||||
import { CheckListFeature } from '../../../features/lists1/CheckList1'
|
||||
import { OrderedListFeature } from '../../../features/lists1/OrderedList1'
|
||||
import { UnorderedListFeature } from '../../../features/lists1/UnorderedList1'
|
||||
import { LexicalEditorTheme } from '../../theme/EditorTheme'
|
||||
import { sanitizeServerEditorConfig } from './sanitize'
|
||||
|
||||
|
||||
@@ -232,20 +232,20 @@ export function lexicalEditor(props?: LexicalEditorProps): LexicalRichTextAdapte
|
||||
}
|
||||
}
|
||||
|
||||
export { HeadingFeature } from './field/features/Heading'
|
||||
export { ParagraphFeature } from './field/features/Paragraph'
|
||||
export { RelationshipFeature } from './field/features/Relationship'
|
||||
export { HeadingFeature } from './field/features/Heading1'
|
||||
export { ParagraphFeature } from './field/features/Paragraph1'
|
||||
export { RelationshipFeature } from './field/features/Relationship1'
|
||||
export {
|
||||
$createRelationshipNode,
|
||||
$isRelationshipNode,
|
||||
type RelationshipData,
|
||||
RelationshipNode,
|
||||
type SerializedRelationshipNode,
|
||||
} from './field/features/Relationship/nodes/RelationshipNode'
|
||||
} from './field/features/Relationship1/nodes/RelationshipNode'
|
||||
|
||||
export { UploadFeature } from './field/features/Upload'
|
||||
export type { UploadFeatureProps } from './field/features/Upload'
|
||||
export type { RawUploadPayload } from './field/features/Upload/nodes/UploadNode'
|
||||
export { UploadFeature } from './field/features/Upload1'
|
||||
export type { UploadFeatureProps } from './field/features/Upload1'
|
||||
export type { RawUploadPayload } from './field/features/Upload1/nodes/UploadNode'
|
||||
|
||||
export {
|
||||
$createUploadNode,
|
||||
@@ -253,39 +253,39 @@ export {
|
||||
type SerializedUploadNode,
|
||||
type UploadData,
|
||||
UploadNode,
|
||||
} from './field/features/Upload/nodes/UploadNode'
|
||||
export { AlignFeature } from './field/features/align/feature.server'
|
||||
export { BlockQuoteFeature } from './field/features/blockquote/feature.server'
|
||||
export { BlocksFeature, type BlocksFeatureProps } from './field/features/blocks/feature.server'
|
||||
} from './field/features/Upload1/nodes/UploadNode'
|
||||
export { AlignFeature } from './field/features/align1/feature.server'
|
||||
export { BlockQuoteFeature } from './field/features/blockquote2/feature.server'
|
||||
export { BlocksFeature, type BlocksFeatureProps } from './field/features/blocks3/feature.server'
|
||||
export {
|
||||
$createBlockNode,
|
||||
$isBlockNode,
|
||||
type BlockFields,
|
||||
BlockNode,
|
||||
type SerializedBlockNode,
|
||||
} from './field/features/blocks/nodes/BlocksNode'
|
||||
export { TextDropdownSectionWithEntries } from './field/features/common/floatingSelectToolbarTextDropdownSection'
|
||||
} from './field/features/blocks3/nodes/BlocksNode'
|
||||
export { TextDropdownSectionWithEntries } from './field/features/common4/floatingSelectToolbarTextDropdownSection'
|
||||
export {
|
||||
HTMLConverterFeature,
|
||||
type HTMLConverterFeatureProps,
|
||||
} from './field/features/converters/html'
|
||||
} from './field/features/converters5/html'
|
||||
export {
|
||||
convertLexicalNodesToHTML,
|
||||
convertLexicalToHTML,
|
||||
} from './field/features/converters/html/converter'
|
||||
export { LinebreakHTMLConverter } from './field/features/converters/html/converter/converters/linebreak'
|
||||
export { ParagraphHTMLConverter } from './field/features/converters/html/converter/converters/paragraph'
|
||||
export { TextHTMLConverter } from './field/features/converters/html/converter/converters/text'
|
||||
export { defaultHTMLConverters } from './field/features/converters/html/converter/defaultConverters'
|
||||
export type { HTMLConverter } from './field/features/converters/html/converter/types'
|
||||
export { consolidateHTMLConverters } from './field/features/converters/html/field'
|
||||
export { lexicalHTML } from './field/features/converters/html/field'
|
||||
export { TestRecorderFeature } from './field/features/debug/TestRecorder'
|
||||
export { TreeViewFeature } from './field/features/debug/TreeView'
|
||||
export { BoldTextFeature } from './field/features/format/Bold'
|
||||
} from './field/features/converters5/html/converter'
|
||||
export { LinebreakHTMLConverter } from './field/features/converters5/html/converter/converters/linebreak'
|
||||
export { ParagraphHTMLConverter } from './field/features/converters5/html/converter/converters/paragraph'
|
||||
export { TextHTMLConverter } from './field/features/converters5/html/converter/converters/text'
|
||||
export { defaultHTMLConverters } from './field/features/converters5/html/converter/defaultConverters'
|
||||
export type { HTMLConverter } from './field/features/converters5/html/converter/types'
|
||||
export { consolidateHTMLConverters } from './field/features/converters5/html/field'
|
||||
export { lexicalHTML } from './field/features/converters5/html/field'
|
||||
export { TestRecorderFeature } from './field/features/debug/TestRecorder6'
|
||||
export { TreeViewFeature } from './field/features/debug/TreeView7'
|
||||
export { BoldTextFeature } from './field/features/format/Bold8'
|
||||
|
||||
export { InlineCodeTextFeature } from './field/features/format/InlineCode'
|
||||
export { ItalicTextFeature } from './field/features/format/Italic'
|
||||
export { InlineCodeTextFeature } from './field/features/format/InlineCode1'
|
||||
export { ItalicTextFeature } from './field/features/format/Italic1'
|
||||
|
||||
export { SectionWithEntries as FormatSectionWithEntries } from './field/features/format/common/floatingSelectToolbarSection'
|
||||
export { StrikethroughTextFeature } from './field/features/format/strikethrough'
|
||||
@@ -293,26 +293,26 @@ export { SubscriptTextFeature } from './field/features/format/subscript'
|
||||
export { SuperscriptTextFeature } from './field/features/format/superscript'
|
||||
export { UnderlineTextFeature } from './field/features/format/underline'
|
||||
export { IndentFeature } from './field/features/indent'
|
||||
export { LinkFeature, type LinkFeatureServerProps } from './field/features/link/feature.server'
|
||||
export { LinkFeature, type LinkFeatureServerProps } from './field/features/link1/feature.server'
|
||||
export {
|
||||
$createAutoLinkNode,
|
||||
$isAutoLinkNode,
|
||||
AutoLinkNode,
|
||||
} from './field/features/link/nodes/AutoLinkNode'
|
||||
} from './field/features/link1/nodes/AutoLinkNode'
|
||||
export {
|
||||
$createLinkNode,
|
||||
$isLinkNode,
|
||||
LinkNode,
|
||||
TOGGLE_LINK_COMMAND,
|
||||
} from './field/features/link/nodes/LinkNode'
|
||||
} from './field/features/link1/nodes/LinkNode'
|
||||
export type {
|
||||
LinkFields,
|
||||
SerializedAutoLinkNode,
|
||||
SerializedLinkNode,
|
||||
} from './field/features/link/nodes/types'
|
||||
export { CheckListFeature } from './field/features/lists/CheckList'
|
||||
export { OrderedListFeature } from './field/features/lists/OrderedList'
|
||||
export { UnorderedListFeature } from './field/features/lists/UnorderedList'
|
||||
} from './field/features/link1/nodes/types'
|
||||
export { CheckListFeature } from './field/features/lists1/CheckList1'
|
||||
export { OrderedListFeature } from './field/features/lists1/OrderedList1'
|
||||
export { UnorderedListFeature } from './field/features/lists1/UnorderedList1'
|
||||
export { LexicalPluginToLexicalFeature } from './field/features/migrations/LexicalPluginToLexical'
|
||||
export { SlateToLexicalFeature } from './field/features/migrations/SlateToLexical'
|
||||
export { SlateBlockquoteConverter } from './field/features/migrations/SlateToLexical/converter/converters/blockquote'
|
||||
|
||||
@@ -8,7 +8,7 @@ import {
|
||||
UploadFeature,
|
||||
lexicalEditor,
|
||||
} from '../../../../packages/richtext-lexical/src'
|
||||
import { lexicalHTML } from '../../../../packages/richtext-lexical/src/field/features/converters/html/field'
|
||||
import { lexicalHTML } from '../../../../packages/richtext-lexical/src/field/features/converters5/html/field'
|
||||
import { slateEditor } from '../../../../packages/richtext-slate/src'
|
||||
import { richTextFieldsSlug } from '../../slugs'
|
||||
import { RelationshipBlock, SelectFieldBlock, TextBlock, UploadAndRichTextBlock } from './blocks'
|
||||
|
||||
Reference in New Issue
Block a user