From b5ac0bd365deffcc8acf35e3cded693e29a7d25a Mon Sep 17 00:00:00 2001 From: Alessio Gravili Date: Wed, 19 Jun 2024 15:27:23 -0400 Subject: [PATCH] chore: restructure and simplify richtext-lexical package (#6856) Hoists field.lexical and field.features up to the src root, moves some utilities to src/utilities --- packages/richtext-lexical/src/cell/index.tsx | 12 +- .../src/exports/client/index.ts | 98 +++++------ .../features/align/feature.client.tsx | 0 .../features/align/feature.server.ts | 2 +- .../src/{field => }/features/align/i18n.ts | 0 .../features/align/toolbarAlignGroup.ts | 0 .../features/blockquote/feature.client.tsx | 0 .../features/blockquote/feature.server.ts | 2 +- .../{field => }/features/blockquote/i18n.ts | 0 .../blockquote/markdownTransformer.ts | 0 .../blocks/component/BlockContent.tsx | 0 .../blocks/component/FormSavePlugin.tsx | 0 .../features/blocks/component/index.scss | 2 +- .../features/blocks/component/index.tsx | 0 .../component/removeEmptyArrayValues.ts | 0 .../features/blocks/drawer/index.tsx | 0 .../features/blocks/feature.client.tsx | 0 .../features/blocks/feature.server.ts | 2 +- .../blocks/graphQLPopulationPromise.ts | 2 +- .../src/{field => }/features/blocks/i18n.ts | 0 .../features/blocks/nodes/BlocksNode.tsx | 0 .../features/blocks/plugin/commands.ts | 0 .../features/blocks/plugin/index.tsx | 0 .../{field => }/features/blocks/validate.ts | 0 .../html/converter/converters/linebreak.ts | 0 .../html/converter/converters/paragraph.ts | 0 .../html/converter/converters/text.ts | 0 .../html/converter/defaultConverters.ts | 0 .../converters/html/converter/index.ts | 0 .../converters/html/converter/types.ts | 0 .../converters/html/feature.server.ts | 0 .../features/converters/html/field/index.ts | 2 +- .../features/createClientComponent.tsx | 2 +- .../features/createFeaturePropComponent.tsx | 0 .../debug/testRecorder/feature.client.tsx | 0 .../debug/testRecorder/feature.server.ts | 2 +- .../debug/testRecorder/plugin/index.scss | 0 .../debug/testRecorder/plugin/index.tsx | 0 .../debug/treeView/feature.client.tsx | 0 .../features/debug/treeView/feature.server.ts | 2 +- .../features/debug/treeView/plugin/index.scss | 0 .../features/debug/treeView/plugin/index.tsx | 0 .../features/format/bold/feature.client.tsx | 0 .../features/format/bold/feature.server.ts | 2 +- .../format/bold/markdownTransformers.ts | 0 .../format/inlineCode/feature.client.tsx | 0 .../format/inlineCode/feature.server.ts | 2 +- .../format/inlineCode/markdownTransformers.ts | 0 .../features/format/italic/feature.client.tsx | 0 .../features/format/italic/feature.server.ts | 2 +- .../format/italic/markdownTransformers.ts | 0 .../format/shared/toolbarFormatGroup.ts | 0 .../format/strikethrough/feature.client.tsx | 0 .../format/strikethrough/feature.server.ts | 2 +- .../strikethrough/markdownTransformers.ts | 0 .../format/subscript/feature.client.tsx | 0 .../format/subscript/feature.server.ts | 2 +- .../format/superscript/feature.client.tsx | 0 .../format/superscript/feature.server.ts | 2 +- .../format/underline/feature.client.tsx | 0 .../format/underline/feature.server.ts | 2 +- .../features/heading/feature.client.tsx | 0 .../features/heading/feature.server.ts | 2 +- .../src/{field => }/features/heading/i18n.ts | 0 .../features/heading/markdownTransformer.ts | 0 .../horizontalRule/component/index.tsx | 0 .../horizontalRule/feature.client.tsx | 0 .../features/horizontalRule/feature.server.ts | 2 +- .../features/horizontalRule/i18n.ts | 0 .../horizontalRule/markdownTransformer.ts | 0 .../nodes/HorizontalRuleNode.tsx | 0 .../features/horizontalRule/plugin/index.scss | 2 +- .../features/horizontalRule/plugin/index.tsx | 0 .../features/indent/feature.client.tsx | 0 .../features/indent/feature.server.ts | 2 +- .../src/{field => }/features/indent/i18n.ts | 0 .../features/indent/toolbarIndentGroup.ts | 0 .../features/link/drawer/baseFields.ts | 0 .../features/link/drawer/index.scss | 2 +- .../features/link/drawer/index.tsx | 0 .../{field => }/features/link/drawer/types.ts | 0 .../features/link/feature.client.tsx | 0 .../features/link/feature.server.ts | 2 +- .../features/link/graphQLPopulationPromise.ts | 2 +- .../src/{field => }/features/link/i18n.ts | 0 .../features/link/markdownTransformer.ts | 0 .../features/link/nodes/AutoLinkNode.ts | 0 .../features/link/nodes/LinkNode.ts | 0 .../{field => }/features/link/nodes/types.ts | 0 .../features/link/plugins/autoLink/index.tsx | 0 .../link/plugins/clickableLink/index.tsx | 0 .../floatingLinkEditor/LinkEditor/commands.ts | 0 .../floatingLinkEditor/LinkEditor/index.tsx | 0 .../plugins/floatingLinkEditor/index.scss | 2 +- .../link/plugins/floatingLinkEditor/index.tsx | 0 .../link/plugins/floatingLinkEditor/types.ts | 0 .../plugins/floatingLinkEditor/utilities.ts | 0 .../features/link/plugins/link/index.tsx | 0 .../src/{field => }/features/link/validate.ts | 0 .../lists/checklist/feature.client.tsx | 0 .../lists/checklist/feature.server.ts | 2 +- .../features/lists/checklist/i18n.ts | 0 .../lists/checklist/markdownTransformers.ts | 0 .../features/lists/checklist/plugin/index.tsx | 0 .../features/lists/htmlConverter.ts | 0 .../lists/orderedList/feature.client.tsx | 0 .../lists/orderedList/feature.server.ts | 2 +- .../features/lists/orderedList/i18n.ts | 0 .../lists/orderedList/markdownTransformer.ts | 0 .../features/lists/plugin/index.tsx | 0 .../features/lists/shared/markdown.ts | 0 .../lists/shared/slashMenuListGroup.ts | 0 .../lists/unorderedList/feature.client.tsx | 0 .../lists/unorderedList/feature.server.ts | 2 +- .../features/lists/unorderedList/i18n.ts | 0 .../unorderedList/markdownTransformer.ts | 0 .../converter/converters/heading/client.ts | 0 .../converter/converters/heading/converter.ts | 0 .../converter/converters/heading/index.ts | 0 .../converter/converters/link/client.ts | 0 .../converter/converters/link/converter.ts | 0 .../converter/converters/link/index.ts | 0 .../converter/converters/list/client.ts | 0 .../converter/converters/list/converter.ts | 0 .../converter/converters/list/index.ts | 0 .../converter/converters/listItem/client.ts | 0 .../converters/listItem/converter.ts | 0 .../converter/converters/listItem/index.ts | 0 .../converter/converters/quote/client.ts | 0 .../converter/converters/quote/converter.ts | 0 .../converter/converters/quote/index.ts | 0 .../converter/converters/unknown/client.ts | 0 .../converter/converters/unknown/converter.ts | 0 .../converter/converters/unknown/index.ts | 0 .../converter/converters/upload/client.ts | 0 .../converter/converters/upload/converter.ts | 0 .../converter/converters/upload/index.ts | 0 .../converter/defaultConverters.ts | 0 .../lexicalPluginToLexical/converter/index.ts | 0 .../lexicalPluginToLexical/converter/types.ts | 0 .../lexicalPluginToLexical/feature.client.tsx | 0 .../lexicalPluginToLexical/feature.server.ts | 2 +- .../nodes/unknownConvertedNode/Component.tsx | 0 .../nodes/unknownConvertedNode/index.scss | 0 .../nodes/unknownConvertedNode/index.tsx | 0 .../converter/converters/blockquote/client.ts | 0 .../converters/blockquote/converter.ts | 0 .../converter/converters/blockquote/index.ts | 0 .../converter/converters/heading/client.ts | 0 .../converter/converters/heading/converter.ts | 0 .../converter/converters/heading/index.ts | 0 .../converter/converters/indent/client.ts | 0 .../converter/converters/indent/converter.ts | 0 .../converter/converters/indent/index.ts | 0 .../converter/converters/link/client.ts | 0 .../converter/converters/link/converter.ts | 0 .../converter/converters/link/index.ts | 0 .../converter/converters/listItem/client.ts | 0 .../converters/listItem/converter.ts | 0 .../converter/converters/listItem/index.ts | 0 .../converters/orderedList/client.ts | 0 .../converters/orderedList/converter.ts | 0 .../converter/converters/orderedList/index.ts | 0 .../converters/relationship/client.ts | 0 .../converters/relationship/converter.ts | 0 .../converters/relationship/index.ts | 0 .../converter/converters/unknown/client.ts | 0 .../converter/converters/unknown/converter.ts | 0 .../converter/converters/unknown/index.ts | 0 .../converters/unorderedList/client.ts | 0 .../converters/unorderedList/converter.ts | 0 .../converters/unorderedList/index.ts | 0 .../converter/converters/upload/client.ts | 0 .../converter/converters/upload/converter.ts | 0 .../converter/converters/upload/index.ts | 0 .../converter/defaultConverters.ts | 0 .../slateToLexical/converter/index.ts | 0 .../slateToLexical/converter/types.ts | 0 .../slateToLexical/feature.client.tsx | 0 .../slateToLexical/feature.server.ts | 2 +- .../nodes/unknownConvertedNode/Component.tsx | 0 .../nodes/unknownConvertedNode/index.scss | 0 .../nodes/unknownConvertedNode/index.tsx | 0 .../features/paragraph/feature.client.tsx | 0 .../features/paragraph/feature.server.ts | 2 +- .../{field => }/features/paragraph/i18n.ts | 0 .../features/relationship/drawer/commands.ts | 0 .../features/relationship/drawer/index.tsx | 0 .../features/relationship/feature.client.tsx | 0 .../features/relationship/feature.server.ts | 4 +- .../relationship/graphQLPopulationPromise.ts | 2 +- .../{field => }/features/relationship/i18n.ts | 0 .../relationship/nodes/RelationshipNode.tsx | 0 .../components/RelationshipComponent.tsx | 0 .../relationship/nodes/components/index.scss | 2 +- .../features/relationship/plugins/index.tsx | 0 .../utils/EnabledRelationshipsCondition.tsx | 0 .../features/shared/slashMenu/basicGroup.ts | 0 .../shared/toolbar/addDropdownGroup.ts | 0 .../shared/toolbar/featureButtonsGroup.ts | 0 .../shared/toolbar/textDropdownGroup.ts | 0 .../toolbars/fixed/Toolbar/index.scss | 2 +- .../features/toolbars/fixed/Toolbar/index.tsx | 0 .../toolbars/fixed/feature.client.tsx | 0 .../features/toolbars/fixed/feature.server.ts | 2 +- .../toolbars/inline/Toolbar/index.scss | 2 +- .../toolbars/inline/Toolbar/index.tsx | 0 .../toolbars/inline/feature.client.tsx | 0 .../toolbars/inline/feature.server.ts | 2 +- .../toolbars/shared/ToolbarButton/index.scss | 2 +- .../toolbars/shared/ToolbarButton/index.tsx | 0 .../shared/ToolbarDropdown/DropDown.tsx | 0 .../shared/ToolbarDropdown/index.scss | 2 +- .../toolbars/shared/ToolbarDropdown/index.tsx | 0 .../{field => }/features/toolbars/types.ts | 0 .../src/{field => }/features/typeUtilities.ts | 0 .../src/{field => }/features/types.ts | 2 +- .../component/ExtraFieldsDrawer/index.tsx | 0 .../features/upload/component/index.scss | 2 +- .../features/upload/component/index.tsx | 0 .../features/upload/drawer/commands.ts | 0 .../features/upload/drawer/index.tsx | 0 .../features/upload/feature.client.tsx | 0 .../features/upload/feature.server.ts | 4 +- .../upload/graphQLPopulationPromise.ts | 4 +- .../src/{field => }/features/upload/i18n.ts | 0 .../features/upload/nodes/UploadNode.tsx | 0 .../features/upload/plugin/index.tsx | 0 .../{field => }/features/upload/validate.ts | 0 packages/richtext-lexical/src/field/Field.tsx | 4 +- packages/richtext-lexical/src/field/index.tsx | 10 +- packages/richtext-lexical/src/index.ts | 164 ++++++++---------- .../src/{field => }/lexical/EditorPlugin.tsx | 4 +- .../{field => }/lexical/LexicalEditor.scss | 2 +- .../src/{field => }/lexical/LexicalEditor.tsx | 0 .../{field => }/lexical/LexicalProvider.tsx | 0 .../config/client/EditorConfigProvider.tsx | 0 .../lexical/config/client/default.ts | 0 .../lexical/config/client/loader.ts | 0 .../lexical/config/client/sanitize.ts | 2 +- .../lexical/config/server/default.ts | 0 .../lexical/config/server/loader.ts | 0 .../lexical/config/server/sanitize.ts | 0 .../src/{field => }/lexical/config/types.ts | 2 +- .../src/{field => }/lexical/nodes/index.ts | 0 .../plugins/MarkdownShortcut/index.tsx | 0 .../LexicalMenu.tsx | 0 .../LexicalTypeaheadMenuPlugin/index.tsx | 0 .../LexicalTypeaheadMenuPlugin/types.ts | 0 .../lexical/plugins/SlashMenu/index.scss | 2 +- .../lexical/plugins/SlashMenu/index.tsx | 0 .../plugins/SlashMenu/useMenuTriggerMatch.ts | 0 .../handles/AddBlockHandlePlugin/index.scss | 0 .../handles/AddBlockHandlePlugin/index.tsx | 0 .../handles/DraggableBlockPlugin/debounce.ts | 0 .../getBoundingRectWithoutTransform.ts | 0 .../highlightElemOriginalPosition.ts | 0 .../handles/DraggableBlockPlugin/index.scss | 2 +- .../handles/DraggableBlockPlugin/index.tsx | 2 +- .../DraggableBlockPlugin/setTargetLine.ts | 0 .../calculateDistanceFromScrollerElem.ts | 0 .../utils/doesLineHeightAffectElement.ts | 0 .../handles/utils/getCollapsedMargins.ts | 0 .../handles/utils/getNodeCloseToPoint.ts | 0 .../handles/utils/getTopLevelNodeKeys.ts | 0 .../handles/utils/isOnHandleElement.ts | 0 .../handles/utils/setHandlePosition.ts | 0 .../lexical/theme/EditorTheme.scss | 0 .../{field => }/lexical/theme/EditorTheme.tsx | 0 .../lexical/ui/ContentEditable.scss | 2 +- .../lexical/ui/ContentEditable.tsx | 0 .../{field => }/lexical/ui/icons/AI/index.tsx | 0 .../lexical/ui/icons/Add/index.svg | 0 .../lexical/ui/icons/Add/index.tsx | 0 .../lexical/ui/icons/Add/light.svg | 0 .../lexical/ui/icons/AlignCenter/index.tsx | 0 .../lexical/ui/icons/AlignJustify/index.tsx | 0 .../lexical/ui/icons/AlignLeft/index.tsx | 0 .../lexical/ui/icons/AlignRight/index.tsx | 0 .../lexical/ui/icons/Block/index.tsx | 0 .../lexical/ui/icons/Blockquote/index.tsx | 0 .../lexical/ui/icons/Bold/index.tsx | 0 .../lexical/ui/icons/Caret/index.svg | 0 .../lexical/ui/icons/Checklist/index.tsx | 0 .../lexical/ui/icons/Code/index.tsx | 0 .../lexical/ui/icons/CodeBlock/index.tsx | 0 .../lexical/ui/icons/DraggableBlock/index.svg | 0 .../lexical/ui/icons/DraggableBlock/light.svg | 0 .../lexical/ui/icons/Edit/index.svg | 0 .../{field => }/lexical/ui/icons/H1/index.tsx | 0 .../{field => }/lexical/ui/icons/H2/index.tsx | 0 .../{field => }/lexical/ui/icons/H3/index.tsx | 0 .../{field => }/lexical/ui/icons/H4/index.tsx | 0 .../{field => }/lexical/ui/icons/H5/index.tsx | 0 .../{field => }/lexical/ui/icons/H6/index.tsx | 0 .../lexical/ui/icons/HorizontalRule/index.tsx | 0 .../lexical/ui/icons/IndentDecrease/index.tsx | 0 .../lexical/ui/icons/IndentIncrease/index.tsx | 0 .../lexical/ui/icons/Italic/index.tsx | 0 .../lexical/ui/icons/Link/index.tsx | 0 .../lexical/ui/icons/OrderedList/index.tsx | 0 .../lexical/ui/icons/Relationship/index.tsx | 0 .../lexical/ui/icons/Remove/index.svg | 0 .../lexical/ui/icons/Strikethrough/index.tsx | 0 .../lexical/ui/icons/Subscript/index.tsx | 0 .../lexical/ui/icons/Superscript/index.tsx | 0 .../lexical/ui/icons/Text/index.tsx | 0 .../lexical/ui/icons/Underline/index.tsx | 0 .../lexical/ui/icons/UnorderedList/index.tsx | 0 .../lexical/ui/icons/Upload/index.tsx | 0 .../{field => }/lexical/utils/canUseDOM.ts | 0 .../{field => }/lexical/utils/cloneDeep.ts | 5 +- .../{field => }/lexical/utils/environment.ts | 0 .../lexical/utils/getDOMRangeRect.ts | 0 .../lexical/utils/getSelectedNode.ts | 0 .../src/{field => }/lexical/utils/guard.ts | 0 .../{field => }/lexical/utils/invariant.ts | 0 .../{field => }/lexical/utils/joinClasses.ts | 0 .../lexical/utils/markdown/createBlockNode.ts | 0 .../{field => }/lexical/utils/nodeFormat.ts | 0 .../src/{field => }/lexical/utils/point.ts | 0 .../src/{field => }/lexical/utils/rect.ts | 0 .../lexical/utils/setFloatingElemPosition.ts | 0 .../setFloatingElemPositionForLinkEditor.ts | 0 .../src/{field => }/lexical/utils/swipe.ts | 0 .../src/{field => }/lexical/utils/url.ts | 0 .../populateLexicalPopulationPromises.ts | 4 +- .../recursivelyPopulateFieldsForGraphQL.ts | 2 +- packages/richtext-lexical/src/types.ts | 4 +- .../{ => utilities}/forEachNodeRecursively.ts | 0 .../{ => utilities}/generateComponentMap.tsx | 4 +- .../src/{ => utilities}/generateSchemaMap.ts | 2 +- .../src/{ => utilities}/recurseNodeTree.ts | 0 .../src/{ => utilities}/useLexicalFeature.tsx | 2 +- .../richtext-lexical/src/validate/index.ts | 2 +- .../src/validate/validateNodes.ts | 2 +- 336 files changed, 208 insertions(+), 217 deletions(-) rename packages/richtext-lexical/src/{field => }/features/align/feature.client.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/align/feature.server.ts (86%) rename packages/richtext-lexical/src/{field => }/features/align/i18n.ts (100%) rename packages/richtext-lexical/src/{field => }/features/align/toolbarAlignGroup.ts (100%) rename packages/richtext-lexical/src/{field => }/features/blockquote/feature.client.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/blockquote/feature.server.ts (94%) rename packages/richtext-lexical/src/{field => }/features/blockquote/i18n.ts (100%) rename packages/richtext-lexical/src/{field => }/features/blockquote/markdownTransformer.ts (100%) rename packages/richtext-lexical/src/{field => }/features/blocks/component/BlockContent.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/blocks/component/FormSavePlugin.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/blocks/component/index.scss (98%) rename packages/richtext-lexical/src/{field => }/features/blocks/component/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/blocks/component/removeEmptyArrayValues.ts (100%) rename packages/richtext-lexical/src/{field => }/features/blocks/drawer/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/blocks/feature.client.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/blocks/feature.server.ts (98%) rename packages/richtext-lexical/src/{field => }/features/blocks/graphQLPopulationPromise.ts (91%) rename packages/richtext-lexical/src/{field => }/features/blocks/i18n.ts (100%) rename packages/richtext-lexical/src/{field => }/features/blocks/nodes/BlocksNode.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/blocks/plugin/commands.ts (100%) rename packages/richtext-lexical/src/{field => }/features/blocks/plugin/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/blocks/validate.ts (100%) rename packages/richtext-lexical/src/{field => }/features/converters/html/converter/converters/linebreak.ts (100%) rename packages/richtext-lexical/src/{field => }/features/converters/html/converter/converters/paragraph.ts (100%) rename packages/richtext-lexical/src/{field => }/features/converters/html/converter/converters/text.ts (100%) rename packages/richtext-lexical/src/{field => }/features/converters/html/converter/defaultConverters.ts (100%) rename packages/richtext-lexical/src/{field => }/features/converters/html/converter/index.ts (100%) rename packages/richtext-lexical/src/{field => }/features/converters/html/converter/types.ts (100%) rename packages/richtext-lexical/src/{field => }/features/converters/html/feature.server.ts (100%) rename packages/richtext-lexical/src/{field => }/features/converters/html/field/index.ts (99%) rename packages/richtext-lexical/src/{field => }/features/createClientComponent.tsx (87%) rename packages/richtext-lexical/src/{field => }/features/createFeaturePropComponent.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/debug/testRecorder/feature.client.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/debug/testRecorder/feature.server.ts (83%) rename packages/richtext-lexical/src/{field => }/features/debug/testRecorder/plugin/index.scss (100%) rename packages/richtext-lexical/src/{field => }/features/debug/testRecorder/plugin/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/debug/treeView/feature.client.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/debug/treeView/feature.server.ts (83%) rename packages/richtext-lexical/src/{field => }/features/debug/treeView/plugin/index.scss (100%) rename packages/richtext-lexical/src/{field => }/features/debug/treeView/plugin/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/format/bold/feature.client.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/format/bold/feature.server.ts (91%) rename packages/richtext-lexical/src/{field => }/features/format/bold/markdownTransformers.ts (100%) rename packages/richtext-lexical/src/{field => }/features/format/inlineCode/feature.client.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/format/inlineCode/feature.server.ts (86%) rename packages/richtext-lexical/src/{field => }/features/format/inlineCode/markdownTransformers.ts (100%) rename packages/richtext-lexical/src/{field => }/features/format/italic/feature.client.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/format/italic/feature.server.ts (87%) rename packages/richtext-lexical/src/{field => }/features/format/italic/markdownTransformers.ts (100%) rename packages/richtext-lexical/src/{field => }/features/format/shared/toolbarFormatGroup.ts (100%) rename packages/richtext-lexical/src/{field => }/features/format/strikethrough/feature.client.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/format/strikethrough/feature.server.ts (86%) rename packages/richtext-lexical/src/{field => }/features/format/strikethrough/markdownTransformers.ts (100%) rename packages/richtext-lexical/src/{field => }/features/format/subscript/feature.client.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/format/subscript/feature.server.ts (83%) rename packages/richtext-lexical/src/{field => }/features/format/superscript/feature.client.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/format/superscript/feature.server.ts (83%) rename packages/richtext-lexical/src/{field => }/features/format/underline/feature.client.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/format/underline/feature.server.ts (83%) rename packages/richtext-lexical/src/{field => }/features/heading/feature.client.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/heading/feature.server.ts (95%) rename packages/richtext-lexical/src/{field => }/features/heading/i18n.ts (100%) rename packages/richtext-lexical/src/{field => }/features/heading/markdownTransformer.ts (100%) rename packages/richtext-lexical/src/{field => }/features/horizontalRule/component/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/horizontalRule/feature.client.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/horizontalRule/feature.server.ts (92%) rename packages/richtext-lexical/src/{field => }/features/horizontalRule/i18n.ts (100%) rename packages/richtext-lexical/src/{field => }/features/horizontalRule/markdownTransformer.ts (100%) rename packages/richtext-lexical/src/{field => }/features/horizontalRule/nodes/HorizontalRuleNode.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/horizontalRule/plugin/index.scss (89%) rename packages/richtext-lexical/src/{field => }/features/horizontalRule/plugin/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/indent/feature.client.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/indent/feature.server.ts (86%) rename packages/richtext-lexical/src/{field => }/features/indent/i18n.ts (100%) rename packages/richtext-lexical/src/{field => }/features/indent/toolbarIndentGroup.ts (100%) rename packages/richtext-lexical/src/{field => }/features/link/drawer/baseFields.ts (100%) rename packages/richtext-lexical/src/{field => }/features/link/drawer/index.scss (95%) rename packages/richtext-lexical/src/{field => }/features/link/drawer/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/link/drawer/types.ts (100%) rename packages/richtext-lexical/src/{field => }/features/link/feature.client.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/link/feature.server.ts (98%) rename packages/richtext-lexical/src/{field => }/features/link/graphQLPopulationPromise.ts (90%) rename packages/richtext-lexical/src/{field => }/features/link/i18n.ts (100%) rename packages/richtext-lexical/src/{field => }/features/link/markdownTransformer.ts (100%) rename packages/richtext-lexical/src/{field => }/features/link/nodes/AutoLinkNode.ts (100%) rename packages/richtext-lexical/src/{field => }/features/link/nodes/LinkNode.ts (100%) rename packages/richtext-lexical/src/{field => }/features/link/nodes/types.ts (100%) rename packages/richtext-lexical/src/{field => }/features/link/plugins/autoLink/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/link/plugins/clickableLink/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/link/plugins/floatingLinkEditor/LinkEditor/commands.ts (100%) rename packages/richtext-lexical/src/{field => }/features/link/plugins/floatingLinkEditor/LinkEditor/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/link/plugins/floatingLinkEditor/index.scss (97%) rename packages/richtext-lexical/src/{field => }/features/link/plugins/floatingLinkEditor/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/link/plugins/floatingLinkEditor/types.ts (100%) rename packages/richtext-lexical/src/{field => }/features/link/plugins/floatingLinkEditor/utilities.ts (100%) rename packages/richtext-lexical/src/{field => }/features/link/plugins/link/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/link/validate.ts (100%) rename packages/richtext-lexical/src/{field => }/features/lists/checklist/feature.client.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/lists/checklist/feature.server.ts (93%) rename packages/richtext-lexical/src/{field => }/features/lists/checklist/i18n.ts (100%) rename packages/richtext-lexical/src/{field => }/features/lists/checklist/markdownTransformers.ts (100%) rename packages/richtext-lexical/src/{field => }/features/lists/checklist/plugin/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/lists/htmlConverter.ts (100%) rename packages/richtext-lexical/src/{field => }/features/lists/orderedList/feature.client.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/lists/orderedList/feature.server.ts (93%) rename packages/richtext-lexical/src/{field => }/features/lists/orderedList/i18n.ts (100%) rename packages/richtext-lexical/src/{field => }/features/lists/orderedList/markdownTransformer.ts (100%) rename packages/richtext-lexical/src/{field => }/features/lists/plugin/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/lists/shared/markdown.ts (100%) rename packages/richtext-lexical/src/{field => }/features/lists/shared/slashMenuListGroup.ts (100%) rename packages/richtext-lexical/src/{field => }/features/lists/unorderedList/feature.client.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/lists/unorderedList/feature.server.ts (92%) rename packages/richtext-lexical/src/{field => }/features/lists/unorderedList/i18n.ts (100%) rename packages/richtext-lexical/src/{field => }/features/lists/unorderedList/markdownTransformer.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/lexicalPluginToLexical/converter/converters/heading/client.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/lexicalPluginToLexical/converter/converters/heading/index.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/lexicalPluginToLexical/converter/converters/link/client.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/lexicalPluginToLexical/converter/converters/link/index.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/lexicalPluginToLexical/converter/converters/list/client.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/lexicalPluginToLexical/converter/converters/list/index.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/lexicalPluginToLexical/converter/converters/listItem/client.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/lexicalPluginToLexical/converter/converters/listItem/index.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/lexicalPluginToLexical/converter/converters/quote/client.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/lexicalPluginToLexical/converter/converters/quote/index.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/lexicalPluginToLexical/converter/converters/unknown/client.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/lexicalPluginToLexical/converter/converters/unknown/index.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/lexicalPluginToLexical/converter/converters/upload/client.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/lexicalPluginToLexical/converter/converters/upload/index.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/lexicalPluginToLexical/converter/defaultConverters.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/lexicalPluginToLexical/converter/index.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/lexicalPluginToLexical/converter/types.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/lexicalPluginToLexical/feature.client.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/lexicalPluginToLexical/feature.server.ts (98%) rename packages/richtext-lexical/src/{field => }/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.scss (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/slateToLexical/converter/converters/blockquote/client.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/slateToLexical/converter/converters/blockquote/converter.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/slateToLexical/converter/converters/blockquote/index.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/slateToLexical/converter/converters/heading/client.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/slateToLexical/converter/converters/heading/converter.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/slateToLexical/converter/converters/heading/index.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/slateToLexical/converter/converters/indent/client.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/slateToLexical/converter/converters/indent/converter.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/slateToLexical/converter/converters/indent/index.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/slateToLexical/converter/converters/link/client.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/slateToLexical/converter/converters/link/converter.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/slateToLexical/converter/converters/link/index.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/slateToLexical/converter/converters/listItem/client.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/slateToLexical/converter/converters/listItem/converter.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/slateToLexical/converter/converters/listItem/index.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/slateToLexical/converter/converters/orderedList/client.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/slateToLexical/converter/converters/orderedList/converter.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/slateToLexical/converter/converters/orderedList/index.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/slateToLexical/converter/converters/relationship/client.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/slateToLexical/converter/converters/relationship/converter.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/slateToLexical/converter/converters/relationship/index.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/slateToLexical/converter/converters/unknown/client.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/slateToLexical/converter/converters/unknown/converter.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/slateToLexical/converter/converters/unknown/index.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/slateToLexical/converter/converters/unorderedList/client.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/slateToLexical/converter/converters/unorderedList/converter.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/slateToLexical/converter/converters/unorderedList/index.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/slateToLexical/converter/converters/upload/client.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/slateToLexical/converter/converters/upload/converter.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/slateToLexical/converter/converters/upload/index.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/slateToLexical/converter/defaultConverters.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/slateToLexical/converter/index.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/slateToLexical/converter/types.ts (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/slateToLexical/feature.client.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/slateToLexical/feature.server.ts (95%) rename packages/richtext-lexical/src/{field => }/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.scss (100%) rename packages/richtext-lexical/src/{field => }/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/paragraph/feature.client.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/paragraph/feature.server.ts (86%) rename packages/richtext-lexical/src/{field => }/features/paragraph/i18n.ts (100%) rename packages/richtext-lexical/src/{field => }/features/relationship/drawer/commands.ts (100%) rename packages/richtext-lexical/src/{field => }/features/relationship/drawer/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/relationship/feature.client.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/relationship/feature.server.ts (96%) rename packages/richtext-lexical/src/{field => }/features/relationship/graphQLPopulationPromise.ts (95%) rename packages/richtext-lexical/src/{field => }/features/relationship/i18n.ts (100%) rename packages/richtext-lexical/src/{field => }/features/relationship/nodes/RelationshipNode.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/relationship/nodes/components/RelationshipComponent.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/relationship/nodes/components/index.scss (97%) rename packages/richtext-lexical/src/{field => }/features/relationship/plugins/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/relationship/utils/EnabledRelationshipsCondition.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/shared/slashMenu/basicGroup.ts (100%) rename packages/richtext-lexical/src/{field => }/features/shared/toolbar/addDropdownGroup.ts (100%) rename packages/richtext-lexical/src/{field => }/features/shared/toolbar/featureButtonsGroup.ts (100%) rename packages/richtext-lexical/src/{field => }/features/shared/toolbar/textDropdownGroup.ts (100%) rename packages/richtext-lexical/src/{field => }/features/toolbars/fixed/Toolbar/index.scss (98%) rename packages/richtext-lexical/src/{field => }/features/toolbars/fixed/Toolbar/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/toolbars/fixed/feature.client.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/toolbars/fixed/feature.server.ts (94%) rename packages/richtext-lexical/src/{field => }/features/toolbars/inline/Toolbar/index.scss (95%) rename packages/richtext-lexical/src/{field => }/features/toolbars/inline/Toolbar/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/toolbars/inline/feature.client.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/toolbars/inline/feature.server.ts (83%) rename packages/richtext-lexical/src/{field => }/features/toolbars/shared/ToolbarButton/index.scss (93%) rename packages/richtext-lexical/src/{field => }/features/toolbars/shared/ToolbarButton/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/toolbars/shared/ToolbarDropdown/DropDown.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/toolbars/shared/ToolbarDropdown/index.scss (98%) rename packages/richtext-lexical/src/{field => }/features/toolbars/shared/ToolbarDropdown/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/toolbars/types.ts (100%) rename packages/richtext-lexical/src/{field => }/features/typeUtilities.ts (100%) rename packages/richtext-lexical/src/{field => }/features/types.ts (99%) rename packages/richtext-lexical/src/{field => }/features/upload/component/ExtraFieldsDrawer/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/upload/component/index.scss (98%) rename packages/richtext-lexical/src/{field => }/features/upload/component/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/upload/drawer/commands.ts (100%) rename packages/richtext-lexical/src/{field => }/features/upload/drawer/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/upload/feature.client.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/upload/feature.server.ts (98%) rename packages/richtext-lexical/src/{field => }/features/upload/graphQLPopulationPromise.ts (91%) rename packages/richtext-lexical/src/{field => }/features/upload/i18n.ts (100%) rename packages/richtext-lexical/src/{field => }/features/upload/nodes/UploadNode.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/upload/plugin/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/features/upload/validate.ts (100%) rename packages/richtext-lexical/src/{field => }/lexical/EditorPlugin.tsx (90%) rename packages/richtext-lexical/src/{field => }/lexical/LexicalEditor.scss (96%) rename packages/richtext-lexical/src/{field => }/lexical/LexicalEditor.tsx (100%) rename packages/richtext-lexical/src/{field => }/lexical/LexicalProvider.tsx (100%) rename packages/richtext-lexical/src/{field => }/lexical/config/client/EditorConfigProvider.tsx (100%) rename packages/richtext-lexical/src/{field => }/lexical/config/client/default.ts (100%) rename packages/richtext-lexical/src/{field => }/lexical/config/client/loader.ts (100%) rename packages/richtext-lexical/src/{field => }/lexical/config/client/sanitize.ts (98%) rename packages/richtext-lexical/src/{field => }/lexical/config/server/default.ts (100%) rename packages/richtext-lexical/src/{field => }/lexical/config/server/loader.ts (100%) rename packages/richtext-lexical/src/{field => }/lexical/config/server/sanitize.ts (100%) rename packages/richtext-lexical/src/{field => }/lexical/config/types.ts (93%) rename packages/richtext-lexical/src/{field => }/lexical/nodes/index.ts (100%) rename packages/richtext-lexical/src/{field => }/lexical/plugins/MarkdownShortcut/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.tsx (100%) rename packages/richtext-lexical/src/{field => }/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.ts (100%) rename packages/richtext-lexical/src/{field => }/lexical/plugins/SlashMenu/index.scss (96%) rename packages/richtext-lexical/src/{field => }/lexical/plugins/SlashMenu/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/lexical/plugins/SlashMenu/useMenuTriggerMatch.ts (100%) rename packages/richtext-lexical/src/{field => }/lexical/plugins/handles/AddBlockHandlePlugin/index.scss (100%) rename packages/richtext-lexical/src/{field => }/lexical/plugins/handles/AddBlockHandlePlugin/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/lexical/plugins/handles/DraggableBlockPlugin/debounce.ts (100%) rename packages/richtext-lexical/src/{field => }/lexical/plugins/handles/DraggableBlockPlugin/getBoundingRectWithoutTransform.ts (100%) rename packages/richtext-lexical/src/{field => }/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.ts (100%) rename packages/richtext-lexical/src/{field => }/lexical/plugins/handles/DraggableBlockPlugin/index.scss (97%) rename packages/richtext-lexical/src/{field => }/lexical/plugins/handles/DraggableBlockPlugin/index.tsx (99%) rename packages/richtext-lexical/src/{field => }/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.ts (100%) rename packages/richtext-lexical/src/{field => }/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.ts (100%) rename packages/richtext-lexical/src/{field => }/lexical/plugins/handles/utils/doesLineHeightAffectElement.ts (100%) rename packages/richtext-lexical/src/{field => }/lexical/plugins/handles/utils/getCollapsedMargins.ts (100%) rename packages/richtext-lexical/src/{field => }/lexical/plugins/handles/utils/getNodeCloseToPoint.ts (100%) rename packages/richtext-lexical/src/{field => }/lexical/plugins/handles/utils/getTopLevelNodeKeys.ts (100%) rename packages/richtext-lexical/src/{field => }/lexical/plugins/handles/utils/isOnHandleElement.ts (100%) rename packages/richtext-lexical/src/{field => }/lexical/plugins/handles/utils/setHandlePosition.ts (100%) rename packages/richtext-lexical/src/{field => }/lexical/theme/EditorTheme.scss (100%) rename packages/richtext-lexical/src/{field => }/lexical/theme/EditorTheme.tsx (100%) rename packages/richtext-lexical/src/{field => }/lexical/ui/ContentEditable.scss (98%) rename packages/richtext-lexical/src/{field => }/lexical/ui/ContentEditable.tsx (100%) rename packages/richtext-lexical/src/{field => }/lexical/ui/icons/AI/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/lexical/ui/icons/Add/index.svg (100%) rename packages/richtext-lexical/src/{field => }/lexical/ui/icons/Add/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/lexical/ui/icons/Add/light.svg (100%) rename packages/richtext-lexical/src/{field => }/lexical/ui/icons/AlignCenter/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/lexical/ui/icons/AlignJustify/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/lexical/ui/icons/AlignLeft/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/lexical/ui/icons/AlignRight/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/lexical/ui/icons/Block/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/lexical/ui/icons/Blockquote/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/lexical/ui/icons/Bold/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/lexical/ui/icons/Caret/index.svg (100%) rename packages/richtext-lexical/src/{field => }/lexical/ui/icons/Checklist/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/lexical/ui/icons/Code/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/lexical/ui/icons/CodeBlock/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/lexical/ui/icons/DraggableBlock/index.svg (100%) rename packages/richtext-lexical/src/{field => }/lexical/ui/icons/DraggableBlock/light.svg (100%) rename packages/richtext-lexical/src/{field => }/lexical/ui/icons/Edit/index.svg (100%) rename packages/richtext-lexical/src/{field => }/lexical/ui/icons/H1/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/lexical/ui/icons/H2/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/lexical/ui/icons/H3/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/lexical/ui/icons/H4/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/lexical/ui/icons/H5/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/lexical/ui/icons/H6/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/lexical/ui/icons/HorizontalRule/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/lexical/ui/icons/IndentDecrease/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/lexical/ui/icons/IndentIncrease/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/lexical/ui/icons/Italic/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/lexical/ui/icons/Link/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/lexical/ui/icons/OrderedList/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/lexical/ui/icons/Relationship/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/lexical/ui/icons/Remove/index.svg (100%) rename packages/richtext-lexical/src/{field => }/lexical/ui/icons/Strikethrough/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/lexical/ui/icons/Subscript/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/lexical/ui/icons/Superscript/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/lexical/ui/icons/Text/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/lexical/ui/icons/Underline/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/lexical/ui/icons/UnorderedList/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/lexical/ui/icons/Upload/index.tsx (100%) rename packages/richtext-lexical/src/{field => }/lexical/utils/canUseDOM.ts (100%) rename packages/richtext-lexical/src/{field => }/lexical/utils/cloneDeep.ts (90%) rename packages/richtext-lexical/src/{field => }/lexical/utils/environment.ts (100%) rename packages/richtext-lexical/src/{field => }/lexical/utils/getDOMRangeRect.ts (100%) rename packages/richtext-lexical/src/{field => }/lexical/utils/getSelectedNode.ts (100%) rename packages/richtext-lexical/src/{field => }/lexical/utils/guard.ts (100%) rename packages/richtext-lexical/src/{field => }/lexical/utils/invariant.ts (100%) rename packages/richtext-lexical/src/{field => }/lexical/utils/joinClasses.ts (100%) rename packages/richtext-lexical/src/{field => }/lexical/utils/markdown/createBlockNode.ts (100%) rename packages/richtext-lexical/src/{field => }/lexical/utils/nodeFormat.ts (100%) rename packages/richtext-lexical/src/{field => }/lexical/utils/point.ts (100%) rename packages/richtext-lexical/src/{field => }/lexical/utils/rect.ts (100%) rename packages/richtext-lexical/src/{field => }/lexical/utils/setFloatingElemPosition.ts (100%) rename packages/richtext-lexical/src/{field => }/lexical/utils/setFloatingElemPositionForLinkEditor.ts (100%) rename packages/richtext-lexical/src/{field => }/lexical/utils/swipe.ts (100%) rename packages/richtext-lexical/src/{field => }/lexical/utils/url.ts (100%) rename packages/richtext-lexical/src/{ => utilities}/forEachNodeRecursively.ts (100%) rename packages/richtext-lexical/src/{ => utilities}/generateComponentMap.tsx (96%) rename packages/richtext-lexical/src/{ => utilities}/generateSchemaMap.ts (92%) rename packages/richtext-lexical/src/{ => utilities}/recurseNodeTree.ts (100%) rename packages/richtext-lexical/src/{ => utilities}/useLexicalFeature.tsx (91%) diff --git a/packages/richtext-lexical/src/cell/index.tsx b/packages/richtext-lexical/src/cell/index.tsx index f9972b6d0..2f52eec13 100644 --- a/packages/richtext-lexical/src/cell/index.tsx +++ b/packages/richtext-lexical/src/cell/index.tsx @@ -7,14 +7,14 @@ import { useClientFunctions, useTableCell } from '@payloadcms/ui' import { $getRoot } from 'lexical' import React, { useEffect, useState } from 'react' -import type { FeatureProviderClient } from '../field/features/types.js' -import type { SanitizedClientEditorConfig } from '../field/lexical/config/types.js' +import type { FeatureProviderClient } from '../features/types.js' +import type { SanitizedClientEditorConfig } from '../lexical/config/types.js' import type { GeneratedFeatureProviderComponent, LexicalFieldAdminProps } from '../types.js' -import { defaultEditorLexicalConfig } from '../field/lexical/config/client/default.js' -import { loadClientFeatures } from '../field/lexical/config/client/loader.js' -import { sanitizeClientEditorConfig } from '../field/lexical/config/client/sanitize.js' -import { getEnabledNodes } from '../field/lexical/nodes/index.js' +import { defaultEditorLexicalConfig } from '../lexical/config/client/default.js' +import { loadClientFeatures } from '../lexical/config/client/loader.js' +import { sanitizeClientEditorConfig } from '../lexical/config/client/sanitize.js' +import { getEnabledNodes } from '../lexical/nodes/index.js' export const RichTextCell: React.FC< CellComponentProps & { diff --git a/packages/richtext-lexical/src/exports/client/index.ts b/packages/richtext-lexical/src/exports/client/index.ts index 9bd9d9c38..fcefc5c82 100644 --- a/packages/richtext-lexical/src/exports/client/index.ts +++ b/packages/richtext-lexical/src/exports/client/index.ts @@ -2,72 +2,72 @@ 'use client' export { RichTextCell } from '../../cell/index.js' -export { AlignFeatureClientComponent } from '../../field/features/align/feature.client.js' -export { BlockquoteFeatureClientComponent } from '../../field/features/blockquote/feature.client.js' -export { BlocksFeatureClientComponent } from '../../field/features/blocks/feature.client.js' -export { createClientComponent } from '../../field/features/createClientComponent.js' -export { TestRecorderFeatureClientComponent } from '../../field/features/debug/testRecorder/feature.client.js' -export { TreeViewFeatureClientComponent } from '../../field/features/debug/treeView/feature.client.js' -export { BoldFeatureClientComponent } from '../../field/features/format/bold/feature.client.js' -export { InlineCodeFeatureClientComponent } from '../../field/features/format/inlineCode/feature.client.js' -export { ItalicFeatureClientComponent } from '../../field/features/format/italic/feature.client.js' -export { toolbarFormatGroupWithItems } from '../../field/features/format/shared/toolbarFormatGroup.js' -export { StrikethroughFeatureClientComponent } from '../../field/features/format/strikethrough/feature.client.js' -export { SubscriptFeatureClientComponent } from '../../field/features/format/subscript/feature.client.js' -export { SuperscriptFeatureClientComponent } from '../../field/features/format/superscript/feature.client.js' -export { UnderlineFeatureClientComponent } from '../../field/features/format/underline/feature.client.js' -export { HeadingFeatureClientComponent } from '../../field/features/heading/feature.client.js' -export { HorizontalRuleFeatureClientComponent } from '../../field/features/horizontalRule/feature.client.js' -export { IndentFeatureClientComponent } from '../../field/features/indent/feature.client.js' -export { LinkFeatureClientComponent } from '../../field/features/link/feature.client.js' -export { ChecklistFeatureClientComponent } from '../../field/features/lists/checklist/feature.client.js' -export { OrderedListFeatureClientComponent } from '../../field/features/lists/orderedList/feature.client.js' -export { UnorderedListFeatureClientComponent } from '../../field/features/lists/unorderedList/feature.client.js' -export { LexicalPluginToLexicalFeatureClientComponent } from '../../field/features/migrations/lexicalPluginToLexical/feature.client.js' -export { SlateToLexicalFeatureClientComponent } from '../../field/features/migrations/slateToLexical/feature.client.js' -export { ParagraphFeatureClientComponent } from '../../field/features/paragraph/feature.client.js' +export { AlignFeatureClientComponent } from '../../features/align/feature.client.js' +export { BlockquoteFeatureClientComponent } from '../../features/blockquote/feature.client.js' +export { BlocksFeatureClientComponent } from '../../features/blocks/feature.client.js' +export { createClientComponent } from '../../features/createClientComponent.js' +export { TestRecorderFeatureClientComponent } from '../../features/debug/testRecorder/feature.client.js' +export { TreeViewFeatureClientComponent } from '../../features/debug/treeView/feature.client.js' +export { BoldFeatureClientComponent } from '../../features/format/bold/feature.client.js' +export { InlineCodeFeatureClientComponent } from '../../features/format/inlineCode/feature.client.js' +export { ItalicFeatureClientComponent } from '../../features/format/italic/feature.client.js' +export { toolbarFormatGroupWithItems } from '../../features/format/shared/toolbarFormatGroup.js' +export { StrikethroughFeatureClientComponent } from '../../features/format/strikethrough/feature.client.js' +export { SubscriptFeatureClientComponent } from '../../features/format/subscript/feature.client.js' +export { SuperscriptFeatureClientComponent } from '../../features/format/superscript/feature.client.js' +export { UnderlineFeatureClientComponent } from '../../features/format/underline/feature.client.js' +export { HeadingFeatureClientComponent } from '../../features/heading/feature.client.js' +export { HorizontalRuleFeatureClientComponent } from '../../features/horizontalRule/feature.client.js' +export { IndentFeatureClientComponent } from '../../features/indent/feature.client.js' +export { LinkFeatureClientComponent } from '../../features/link/feature.client.js' +export { ChecklistFeatureClientComponent } from '../../features/lists/checklist/feature.client.js' +export { OrderedListFeatureClientComponent } from '../../features/lists/orderedList/feature.client.js' +export { UnorderedListFeatureClientComponent } from '../../features/lists/unorderedList/feature.client.js' +export { LexicalPluginToLexicalFeatureClientComponent } from '../../features/migrations/lexicalPluginToLexical/feature.client.js' +export { SlateToLexicalFeatureClientComponent } from '../../features/migrations/slateToLexical/feature.client.js' +export { ParagraphFeatureClientComponent } from '../../features/paragraph/feature.client.js' -export { RelationshipFeatureClientComponent } from '../../field/features/relationship/feature.client.js' +export { RelationshipFeatureClientComponent } from '../../features/relationship/feature.client.js' -export { toolbarAddDropdownGroupWithItems } from '../../field/features/shared/toolbar/addDropdownGroup.js' -export { toolbarFeatureButtonsGroupWithItems } from '../../field/features/shared/toolbar/featureButtonsGroup.js' -export { toolbarTextDropdownGroupWithItems } from '../../field/features/shared/toolbar/textDropdownGroup.js' -export { FixedToolbarFeatureClientComponent } from '../../field/features/toolbars/fixed/feature.client.js' -export { InlineToolbarFeatureClientComponent } from '../../field/features/toolbars/inline/feature.client.js' -export { ToolbarButton } from '../../field/features/toolbars/shared/ToolbarButton/index.js' +export { toolbarAddDropdownGroupWithItems } from '../../features/shared/toolbar/addDropdownGroup.js' +export { toolbarFeatureButtonsGroupWithItems } from '../../features/shared/toolbar/featureButtonsGroup.js' +export { toolbarTextDropdownGroupWithItems } from '../../features/shared/toolbar/textDropdownGroup.js' +export { FixedToolbarFeatureClientComponent } from '../../features/toolbars/fixed/feature.client.js' +export { InlineToolbarFeatureClientComponent } from '../../features/toolbars/inline/feature.client.js' +export { ToolbarButton } from '../../features/toolbars/shared/ToolbarButton/index.js' -export { ToolbarDropdown } from '../../field/features/toolbars/shared/ToolbarDropdown/index.js' -export { UploadFeatureClientComponent } from '../../field/features/upload/feature.client.js' +export { ToolbarDropdown } from '../../features/toolbars/shared/ToolbarDropdown/index.js' +export { UploadFeatureClientComponent } from '../../features/upload/feature.client.js' export { RichTextField } from '../../field/index.js' export { type EditorConfigContextType, EditorConfigProvider, useEditorConfigContext, -} from '../../field/lexical/config/client/EditorConfigProvider.js' -export { defaultEditorLexicalConfig } from '../../field/lexical/config/client/default.js' +} from '../../lexical/config/client/EditorConfigProvider.js' +export { defaultEditorLexicalConfig } from '../../lexical/config/client/default.js' export { sanitizeClientEditorConfig, sanitizeClientFeatures, -} from '../../field/lexical/config/client/sanitize.js' -export { CAN_USE_DOM } from '../../field/lexical/utils/canUseDOM.js' -export { cloneDeep } from '../../field/lexical/utils/cloneDeep.js' -export { getDOMRangeRect } from '../../field/lexical/utils/getDOMRangeRect.js' -export { getSelectedNode } from '../../field/lexical/utils/getSelectedNode.js' -export { isHTMLElement } from '../../field/lexical/utils/guard.js' -export { invariant } from '../../field/lexical/utils/invariant.js' -export { joinClasses } from '../../field/lexical/utils/joinClasses.js' +} from '../../lexical/config/client/sanitize.js' +export { CAN_USE_DOM } from '../../lexical/utils/canUseDOM.js' +export { cloneDeep } from '../../lexical/utils/cloneDeep.js' +export { getDOMRangeRect } from '../../lexical/utils/getDOMRangeRect.js' +export { getSelectedNode } from '../../lexical/utils/getSelectedNode.js' +export { isHTMLElement } from '../../lexical/utils/guard.js' +export { invariant } from '../../lexical/utils/invariant.js' +export { joinClasses } from '../../lexical/utils/joinClasses.js' -export { createBlockNode } from '../../field/lexical/utils/markdown/createBlockNode.js' -export { Point, isPoint } from '../../field/lexical/utils/point.js' -export { Rect } from '../../field/lexical/utils/rect.js' -export { setFloatingElemPosition } from '../../field/lexical/utils/setFloatingElemPosition.js' -export { setFloatingElemPositionForLinkEditor } from '../../field/lexical/utils/setFloatingElemPositionForLinkEditor.js' +export { createBlockNode } from '../../lexical/utils/markdown/createBlockNode.js' +export { Point, isPoint } from '../../lexical/utils/point.js' +export { Rect } from '../../lexical/utils/rect.js' +export { setFloatingElemPosition } from '../../lexical/utils/setFloatingElemPosition.js' +export { setFloatingElemPositionForLinkEditor } from '../../lexical/utils/setFloatingElemPositionForLinkEditor.js' export { addSwipeDownListener, addSwipeLeftListener, addSwipeRightListener, addSwipeUpListener, -} from '../../field/lexical/utils/swipe.js' +} from '../../lexical/utils/swipe.js' diff --git a/packages/richtext-lexical/src/field/features/align/feature.client.tsx b/packages/richtext-lexical/src/features/align/feature.client.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/align/feature.client.tsx rename to packages/richtext-lexical/src/features/align/feature.client.tsx diff --git a/packages/richtext-lexical/src/field/features/align/feature.server.ts b/packages/richtext-lexical/src/features/align/feature.server.ts similarity index 86% rename from packages/richtext-lexical/src/field/features/align/feature.server.ts rename to packages/richtext-lexical/src/features/align/feature.server.ts index 19c4a1939..b8ef78201 100644 --- a/packages/richtext-lexical/src/field/features/align/feature.server.ts +++ b/packages/richtext-lexical/src/features/align/feature.server.ts @@ -1,7 +1,7 @@ import type { FeatureProviderProviderServer } from '../types.js' // eslint-disable-next-line payload/no-imports-from-exports-dir -import { AlignFeatureClientComponent } from '../../../exports/client/index.js' +import { AlignFeatureClientComponent } from '../../exports/client/index.js' import { i18n } from './i18n.js' export const AlignFeature: FeatureProviderProviderServer = (props) => { diff --git a/packages/richtext-lexical/src/field/features/align/i18n.ts b/packages/richtext-lexical/src/features/align/i18n.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/align/i18n.ts rename to packages/richtext-lexical/src/features/align/i18n.ts diff --git a/packages/richtext-lexical/src/field/features/align/toolbarAlignGroup.ts b/packages/richtext-lexical/src/features/align/toolbarAlignGroup.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/align/toolbarAlignGroup.ts rename to packages/richtext-lexical/src/features/align/toolbarAlignGroup.ts diff --git a/packages/richtext-lexical/src/field/features/blockquote/feature.client.tsx b/packages/richtext-lexical/src/features/blockquote/feature.client.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/blockquote/feature.client.tsx rename to packages/richtext-lexical/src/features/blockquote/feature.client.tsx diff --git a/packages/richtext-lexical/src/field/features/blockquote/feature.server.ts b/packages/richtext-lexical/src/features/blockquote/feature.server.ts similarity index 94% rename from packages/richtext-lexical/src/field/features/blockquote/feature.server.ts rename to packages/richtext-lexical/src/features/blockquote/feature.server.ts index 1facc5ab6..03d7d6e7c 100644 --- a/packages/richtext-lexical/src/field/features/blockquote/feature.server.ts +++ b/packages/richtext-lexical/src/features/blockquote/feature.server.ts @@ -3,7 +3,7 @@ import { QuoteNode } from '@lexical/rich-text' import type { FeatureProviderProviderServer } from '../types.js' // eslint-disable-next-line payload/no-imports-from-exports-dir -import { BlockquoteFeatureClientComponent } from '../../../exports/client/index.js' +import { BlockquoteFeatureClientComponent } from '../../exports/client/index.js' import { convertLexicalNodesToHTML } from '../converters/html/converter/index.js' import { createNode } from '../typeUtilities.js' import { i18n } from './i18n.js' diff --git a/packages/richtext-lexical/src/field/features/blockquote/i18n.ts b/packages/richtext-lexical/src/features/blockquote/i18n.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/blockquote/i18n.ts rename to packages/richtext-lexical/src/features/blockquote/i18n.ts diff --git a/packages/richtext-lexical/src/field/features/blockquote/markdownTransformer.ts b/packages/richtext-lexical/src/features/blockquote/markdownTransformer.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/blockquote/markdownTransformer.ts rename to packages/richtext-lexical/src/features/blockquote/markdownTransformer.ts diff --git a/packages/richtext-lexical/src/field/features/blocks/component/BlockContent.tsx b/packages/richtext-lexical/src/features/blocks/component/BlockContent.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/blocks/component/BlockContent.tsx rename to packages/richtext-lexical/src/features/blocks/component/BlockContent.tsx diff --git a/packages/richtext-lexical/src/field/features/blocks/component/FormSavePlugin.tsx b/packages/richtext-lexical/src/features/blocks/component/FormSavePlugin.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/blocks/component/FormSavePlugin.tsx rename to packages/richtext-lexical/src/features/blocks/component/FormSavePlugin.tsx diff --git a/packages/richtext-lexical/src/field/features/blocks/component/index.scss b/packages/richtext-lexical/src/features/blocks/component/index.scss similarity index 98% rename from packages/richtext-lexical/src/field/features/blocks/component/index.scss rename to packages/richtext-lexical/src/features/blocks/component/index.scss index 1e2979b2e..079eb733b 100644 --- a/packages/richtext-lexical/src/field/features/blocks/component/index.scss +++ b/packages/richtext-lexical/src/features/blocks/component/index.scss @@ -1,4 +1,4 @@ -@import '../../../../scss/styles.scss'; +@import '../../../scss/styles.scss'; .ContentEditable__root > div:has(.lexical-block) { // Fixes a bug where, if the block field has a Select field, the Select field's dropdown menu would be hidden behind the lexical editor. diff --git a/packages/richtext-lexical/src/field/features/blocks/component/index.tsx b/packages/richtext-lexical/src/features/blocks/component/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/blocks/component/index.tsx rename to packages/richtext-lexical/src/features/blocks/component/index.tsx diff --git a/packages/richtext-lexical/src/field/features/blocks/component/removeEmptyArrayValues.ts b/packages/richtext-lexical/src/features/blocks/component/removeEmptyArrayValues.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/blocks/component/removeEmptyArrayValues.ts rename to packages/richtext-lexical/src/features/blocks/component/removeEmptyArrayValues.ts diff --git a/packages/richtext-lexical/src/field/features/blocks/drawer/index.tsx b/packages/richtext-lexical/src/features/blocks/drawer/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/blocks/drawer/index.tsx rename to packages/richtext-lexical/src/features/blocks/drawer/index.tsx diff --git a/packages/richtext-lexical/src/field/features/blocks/feature.client.tsx b/packages/richtext-lexical/src/features/blocks/feature.client.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/blocks/feature.client.tsx rename to packages/richtext-lexical/src/features/blocks/feature.client.tsx diff --git a/packages/richtext-lexical/src/field/features/blocks/feature.server.ts b/packages/richtext-lexical/src/features/blocks/feature.server.ts similarity index 98% rename from packages/richtext-lexical/src/field/features/blocks/feature.server.ts rename to packages/richtext-lexical/src/features/blocks/feature.server.ts index a6f34d3b2..62d7db41b 100644 --- a/packages/richtext-lexical/src/field/features/blocks/feature.server.ts +++ b/packages/richtext-lexical/src/features/blocks/feature.server.ts @@ -7,7 +7,7 @@ import type { FeatureProviderProviderServer } from '../types.js' import type { BlocksFeatureClientProps } from './feature.client.js' // eslint-disable-next-line payload/no-imports-from-exports-dir -import { BlocksFeatureClientComponent } from '../../../exports/client/index.js' +import { BlocksFeatureClientComponent } from '../../exports/client/index.js' import { createNode } from '../typeUtilities.js' import { blockPopulationPromiseHOC } from './graphQLPopulationPromise.js' import { i18n } from './i18n.js' diff --git a/packages/richtext-lexical/src/field/features/blocks/graphQLPopulationPromise.ts b/packages/richtext-lexical/src/features/blocks/graphQLPopulationPromise.ts similarity index 91% rename from packages/richtext-lexical/src/field/features/blocks/graphQLPopulationPromise.ts rename to packages/richtext-lexical/src/features/blocks/graphQLPopulationPromise.ts index 28c787b21..a2a97208f 100644 --- a/packages/richtext-lexical/src/field/features/blocks/graphQLPopulationPromise.ts +++ b/packages/richtext-lexical/src/features/blocks/graphQLPopulationPromise.ts @@ -2,7 +2,7 @@ import type { PopulationPromise } from '../types.js' import type { BlocksFeatureProps } from './feature.server.js' import type { SerializedBlockNode } from './nodes/BlocksNode.js' -import { recursivelyPopulateFieldsForGraphQL } from '../../../populateGraphQL/recursivelyPopulateFieldsForGraphQL.js' +import { recursivelyPopulateFieldsForGraphQL } from '../../populateGraphQL/recursivelyPopulateFieldsForGraphQL.js' export const blockPopulationPromiseHOC = ( props: BlocksFeatureProps, diff --git a/packages/richtext-lexical/src/field/features/blocks/i18n.ts b/packages/richtext-lexical/src/features/blocks/i18n.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/blocks/i18n.ts rename to packages/richtext-lexical/src/features/blocks/i18n.ts diff --git a/packages/richtext-lexical/src/field/features/blocks/nodes/BlocksNode.tsx b/packages/richtext-lexical/src/features/blocks/nodes/BlocksNode.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/blocks/nodes/BlocksNode.tsx rename to packages/richtext-lexical/src/features/blocks/nodes/BlocksNode.tsx diff --git a/packages/richtext-lexical/src/field/features/blocks/plugin/commands.ts b/packages/richtext-lexical/src/features/blocks/plugin/commands.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/blocks/plugin/commands.ts rename to packages/richtext-lexical/src/features/blocks/plugin/commands.ts diff --git a/packages/richtext-lexical/src/field/features/blocks/plugin/index.tsx b/packages/richtext-lexical/src/features/blocks/plugin/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/blocks/plugin/index.tsx rename to packages/richtext-lexical/src/features/blocks/plugin/index.tsx diff --git a/packages/richtext-lexical/src/field/features/blocks/validate.ts b/packages/richtext-lexical/src/features/blocks/validate.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/blocks/validate.ts rename to packages/richtext-lexical/src/features/blocks/validate.ts diff --git a/packages/richtext-lexical/src/field/features/converters/html/converter/converters/linebreak.ts b/packages/richtext-lexical/src/features/converters/html/converter/converters/linebreak.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/converters/html/converter/converters/linebreak.ts rename to packages/richtext-lexical/src/features/converters/html/converter/converters/linebreak.ts diff --git a/packages/richtext-lexical/src/field/features/converters/html/converter/converters/paragraph.ts b/packages/richtext-lexical/src/features/converters/html/converter/converters/paragraph.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/converters/html/converter/converters/paragraph.ts rename to packages/richtext-lexical/src/features/converters/html/converter/converters/paragraph.ts diff --git a/packages/richtext-lexical/src/field/features/converters/html/converter/converters/text.ts b/packages/richtext-lexical/src/features/converters/html/converter/converters/text.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/converters/html/converter/converters/text.ts rename to packages/richtext-lexical/src/features/converters/html/converter/converters/text.ts diff --git a/packages/richtext-lexical/src/field/features/converters/html/converter/defaultConverters.ts b/packages/richtext-lexical/src/features/converters/html/converter/defaultConverters.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/converters/html/converter/defaultConverters.ts rename to packages/richtext-lexical/src/features/converters/html/converter/defaultConverters.ts diff --git a/packages/richtext-lexical/src/field/features/converters/html/converter/index.ts b/packages/richtext-lexical/src/features/converters/html/converter/index.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/converters/html/converter/index.ts rename to packages/richtext-lexical/src/features/converters/html/converter/index.ts diff --git a/packages/richtext-lexical/src/field/features/converters/html/converter/types.ts b/packages/richtext-lexical/src/features/converters/html/converter/types.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/converters/html/converter/types.ts rename to packages/richtext-lexical/src/features/converters/html/converter/types.ts diff --git a/packages/richtext-lexical/src/field/features/converters/html/feature.server.ts b/packages/richtext-lexical/src/features/converters/html/feature.server.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/converters/html/feature.server.ts rename to packages/richtext-lexical/src/features/converters/html/feature.server.ts diff --git a/packages/richtext-lexical/src/field/features/converters/html/field/index.ts b/packages/richtext-lexical/src/features/converters/html/field/index.ts similarity index 99% rename from packages/richtext-lexical/src/field/features/converters/html/field/index.ts rename to packages/richtext-lexical/src/features/converters/html/field/index.ts index d98394c65..31c906b74 100644 --- a/packages/richtext-lexical/src/field/features/converters/html/field/index.ts +++ b/packages/richtext-lexical/src/features/converters/html/field/index.ts @@ -1,8 +1,8 @@ import type { SerializedEditorState } from 'lexical' import type { Field, FieldAffectingData, RichTextField } from 'payload' -import type { AdapterProps, LexicalRichTextAdapter } from '../../../../../types.js' import type { SanitizedServerEditorConfig } from '../../../../lexical/config/types.js' +import type { AdapterProps, LexicalRichTextAdapter } from '../../../../types.js' import type { HTMLConverter } from '../converter/types.js' import type { HTMLConverterFeatureProps } from '../feature.server.js' diff --git a/packages/richtext-lexical/src/field/features/createClientComponent.tsx b/packages/richtext-lexical/src/features/createClientComponent.tsx similarity index 87% rename from packages/richtext-lexical/src/field/features/createClientComponent.tsx rename to packages/richtext-lexical/src/features/createClientComponent.tsx index 77b4fc96c..c7902c1bc 100644 --- a/packages/richtext-lexical/src/field/features/createClientComponent.tsx +++ b/packages/richtext-lexical/src/features/createClientComponent.tsx @@ -2,7 +2,7 @@ import type { FeatureProviderProviderClient, ServerFeature } from './types.js' -import { useLexicalFeature } from '../../useLexicalFeature.js' +import { useLexicalFeature } from '../utilities/useLexicalFeature.js' /** * Utility function to create a client component for the client feature diff --git a/packages/richtext-lexical/src/field/features/createFeaturePropComponent.tsx b/packages/richtext-lexical/src/features/createFeaturePropComponent.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/createFeaturePropComponent.tsx rename to packages/richtext-lexical/src/features/createFeaturePropComponent.tsx diff --git a/packages/richtext-lexical/src/field/features/debug/testRecorder/feature.client.tsx b/packages/richtext-lexical/src/features/debug/testRecorder/feature.client.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/debug/testRecorder/feature.client.tsx rename to packages/richtext-lexical/src/features/debug/testRecorder/feature.client.tsx diff --git a/packages/richtext-lexical/src/field/features/debug/testRecorder/feature.server.ts b/packages/richtext-lexical/src/features/debug/testRecorder/feature.server.ts similarity index 83% rename from packages/richtext-lexical/src/field/features/debug/testRecorder/feature.server.ts rename to packages/richtext-lexical/src/features/debug/testRecorder/feature.server.ts index a7110743b..4c2bd05e1 100644 --- a/packages/richtext-lexical/src/field/features/debug/testRecorder/feature.server.ts +++ b/packages/richtext-lexical/src/features/debug/testRecorder/feature.server.ts @@ -1,7 +1,7 @@ import type { FeatureProviderProviderServer } from '../../types.js' // eslint-disable-next-line payload/no-imports-from-exports-dir -import { TestRecorderFeatureClientComponent } from '../../../../exports/client/index.js' +import { TestRecorderFeatureClientComponent } from '../../../exports/client/index.js' export const TestRecorderFeature: FeatureProviderProviderServer = (props) => { return { diff --git a/packages/richtext-lexical/src/field/features/debug/testRecorder/plugin/index.scss b/packages/richtext-lexical/src/features/debug/testRecorder/plugin/index.scss similarity index 100% rename from packages/richtext-lexical/src/field/features/debug/testRecorder/plugin/index.scss rename to packages/richtext-lexical/src/features/debug/testRecorder/plugin/index.scss diff --git a/packages/richtext-lexical/src/field/features/debug/testRecorder/plugin/index.tsx b/packages/richtext-lexical/src/features/debug/testRecorder/plugin/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/debug/testRecorder/plugin/index.tsx rename to packages/richtext-lexical/src/features/debug/testRecorder/plugin/index.tsx diff --git a/packages/richtext-lexical/src/field/features/debug/treeView/feature.client.tsx b/packages/richtext-lexical/src/features/debug/treeView/feature.client.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/debug/treeView/feature.client.tsx rename to packages/richtext-lexical/src/features/debug/treeView/feature.client.tsx diff --git a/packages/richtext-lexical/src/field/features/debug/treeView/feature.server.ts b/packages/richtext-lexical/src/features/debug/treeView/feature.server.ts similarity index 83% rename from packages/richtext-lexical/src/field/features/debug/treeView/feature.server.ts rename to packages/richtext-lexical/src/features/debug/treeView/feature.server.ts index 9c0a80cb2..586dfe040 100644 --- a/packages/richtext-lexical/src/field/features/debug/treeView/feature.server.ts +++ b/packages/richtext-lexical/src/features/debug/treeView/feature.server.ts @@ -1,7 +1,7 @@ import type { FeatureProviderProviderServer } from '../../types.js' // eslint-disable-next-line payload/no-imports-from-exports-dir -import { TreeViewFeatureClientComponent } from '../../../../exports/client/index.js' +import { TreeViewFeatureClientComponent } from '../../../exports/client/index.js' export const TreeViewFeature: FeatureProviderProviderServer = (props) => { return { diff --git a/packages/richtext-lexical/src/field/features/debug/treeView/plugin/index.scss b/packages/richtext-lexical/src/features/debug/treeView/plugin/index.scss similarity index 100% rename from packages/richtext-lexical/src/field/features/debug/treeView/plugin/index.scss rename to packages/richtext-lexical/src/features/debug/treeView/plugin/index.scss diff --git a/packages/richtext-lexical/src/field/features/debug/treeView/plugin/index.tsx b/packages/richtext-lexical/src/features/debug/treeView/plugin/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/debug/treeView/plugin/index.tsx rename to packages/richtext-lexical/src/features/debug/treeView/plugin/index.tsx diff --git a/packages/richtext-lexical/src/field/features/format/bold/feature.client.tsx b/packages/richtext-lexical/src/features/format/bold/feature.client.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/format/bold/feature.client.tsx rename to packages/richtext-lexical/src/features/format/bold/feature.client.tsx diff --git a/packages/richtext-lexical/src/field/features/format/bold/feature.server.ts b/packages/richtext-lexical/src/features/format/bold/feature.server.ts similarity index 91% rename from packages/richtext-lexical/src/field/features/format/bold/feature.server.ts rename to packages/richtext-lexical/src/features/format/bold/feature.server.ts index abcb78e61..43aecb588 100644 --- a/packages/richtext-lexical/src/field/features/format/bold/feature.server.ts +++ b/packages/richtext-lexical/src/features/format/bold/feature.server.ts @@ -1,7 +1,7 @@ import type { FeatureProviderProviderServer } from '../../types.js' // eslint-disable-next-line payload/no-imports-from-exports-dir -import { BoldFeatureClientComponent } from '../../../../exports/client/index.js' +import { BoldFeatureClientComponent } from '../../../exports/client/index.js' import { BOLD_ITALIC_STAR, BOLD_ITALIC_UNDERSCORE, diff --git a/packages/richtext-lexical/src/field/features/format/bold/markdownTransformers.ts b/packages/richtext-lexical/src/features/format/bold/markdownTransformers.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/format/bold/markdownTransformers.ts rename to packages/richtext-lexical/src/features/format/bold/markdownTransformers.ts diff --git a/packages/richtext-lexical/src/field/features/format/inlineCode/feature.client.tsx b/packages/richtext-lexical/src/features/format/inlineCode/feature.client.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/format/inlineCode/feature.client.tsx rename to packages/richtext-lexical/src/features/format/inlineCode/feature.client.tsx diff --git a/packages/richtext-lexical/src/field/features/format/inlineCode/feature.server.ts b/packages/richtext-lexical/src/features/format/inlineCode/feature.server.ts similarity index 86% rename from packages/richtext-lexical/src/field/features/format/inlineCode/feature.server.ts rename to packages/richtext-lexical/src/features/format/inlineCode/feature.server.ts index ca839c237..9589ff3da 100644 --- a/packages/richtext-lexical/src/field/features/format/inlineCode/feature.server.ts +++ b/packages/richtext-lexical/src/features/format/inlineCode/feature.server.ts @@ -1,7 +1,7 @@ import type { FeatureProviderProviderServer } from '../../types.js' // eslint-disable-next-line payload/no-imports-from-exports-dir -import { InlineCodeFeatureClientComponent } from '../../../../exports/client/index.js' +import { InlineCodeFeatureClientComponent } from '../../../exports/client/index.js' import { INLINE_CODE } from './markdownTransformers.js' export const InlineCodeFeature: FeatureProviderProviderServer = (props) => { diff --git a/packages/richtext-lexical/src/field/features/format/inlineCode/markdownTransformers.ts b/packages/richtext-lexical/src/features/format/inlineCode/markdownTransformers.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/format/inlineCode/markdownTransformers.ts rename to packages/richtext-lexical/src/features/format/inlineCode/markdownTransformers.ts diff --git a/packages/richtext-lexical/src/field/features/format/italic/feature.client.tsx b/packages/richtext-lexical/src/features/format/italic/feature.client.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/format/italic/feature.client.tsx rename to packages/richtext-lexical/src/features/format/italic/feature.client.tsx diff --git a/packages/richtext-lexical/src/field/features/format/italic/feature.server.ts b/packages/richtext-lexical/src/features/format/italic/feature.server.ts similarity index 87% rename from packages/richtext-lexical/src/field/features/format/italic/feature.server.ts rename to packages/richtext-lexical/src/features/format/italic/feature.server.ts index 1c731b033..4586de9e3 100644 --- a/packages/richtext-lexical/src/field/features/format/italic/feature.server.ts +++ b/packages/richtext-lexical/src/features/format/italic/feature.server.ts @@ -1,7 +1,7 @@ import type { FeatureProviderProviderServer } from '../../types.js' // eslint-disable-next-line payload/no-imports-from-exports-dir -import { ItalicFeatureClientComponent } from '../../../../exports/client/index.js' +import { ItalicFeatureClientComponent } from '../../../exports/client/index.js' import { ITALIC_STAR, ITALIC_UNDERSCORE } from './markdownTransformers.js' export const ItalicFeature: FeatureProviderProviderServer = (props) => { diff --git a/packages/richtext-lexical/src/field/features/format/italic/markdownTransformers.ts b/packages/richtext-lexical/src/features/format/italic/markdownTransformers.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/format/italic/markdownTransformers.ts rename to packages/richtext-lexical/src/features/format/italic/markdownTransformers.ts diff --git a/packages/richtext-lexical/src/field/features/format/shared/toolbarFormatGroup.ts b/packages/richtext-lexical/src/features/format/shared/toolbarFormatGroup.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/format/shared/toolbarFormatGroup.ts rename to packages/richtext-lexical/src/features/format/shared/toolbarFormatGroup.ts diff --git a/packages/richtext-lexical/src/field/features/format/strikethrough/feature.client.tsx b/packages/richtext-lexical/src/features/format/strikethrough/feature.client.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/format/strikethrough/feature.client.tsx rename to packages/richtext-lexical/src/features/format/strikethrough/feature.client.tsx diff --git a/packages/richtext-lexical/src/field/features/format/strikethrough/feature.server.ts b/packages/richtext-lexical/src/features/format/strikethrough/feature.server.ts similarity index 86% rename from packages/richtext-lexical/src/field/features/format/strikethrough/feature.server.ts rename to packages/richtext-lexical/src/features/format/strikethrough/feature.server.ts index bc15079ee..aadf93e1d 100644 --- a/packages/richtext-lexical/src/field/features/format/strikethrough/feature.server.ts +++ b/packages/richtext-lexical/src/features/format/strikethrough/feature.server.ts @@ -1,7 +1,7 @@ import type { FeatureProviderProviderServer } from '../../types.js' // eslint-disable-next-line payload/no-imports-from-exports-dir -import { StrikethroughFeatureClientComponent } from '../../../../exports/client/index.js' +import { StrikethroughFeatureClientComponent } from '../../../exports/client/index.js' import { STRIKETHROUGH } from './markdownTransformers.js' export const StrikethroughFeature: FeatureProviderProviderServer = ( diff --git a/packages/richtext-lexical/src/field/features/format/strikethrough/markdownTransformers.ts b/packages/richtext-lexical/src/features/format/strikethrough/markdownTransformers.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/format/strikethrough/markdownTransformers.ts rename to packages/richtext-lexical/src/features/format/strikethrough/markdownTransformers.ts diff --git a/packages/richtext-lexical/src/field/features/format/subscript/feature.client.tsx b/packages/richtext-lexical/src/features/format/subscript/feature.client.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/format/subscript/feature.client.tsx rename to packages/richtext-lexical/src/features/format/subscript/feature.client.tsx diff --git a/packages/richtext-lexical/src/field/features/format/subscript/feature.server.ts b/packages/richtext-lexical/src/features/format/subscript/feature.server.ts similarity index 83% rename from packages/richtext-lexical/src/field/features/format/subscript/feature.server.ts rename to packages/richtext-lexical/src/features/format/subscript/feature.server.ts index 08d5e125e..2337d384d 100644 --- a/packages/richtext-lexical/src/field/features/format/subscript/feature.server.ts +++ b/packages/richtext-lexical/src/features/format/subscript/feature.server.ts @@ -1,7 +1,7 @@ import type { FeatureProviderProviderServer } from '../../types.js' // eslint-disable-next-line payload/no-imports-from-exports-dir -import { SubscriptFeatureClientComponent } from '../../../../exports/client/index.js' +import { SubscriptFeatureClientComponent } from '../../../exports/client/index.js' export const SubscriptFeature: FeatureProviderProviderServer = (props) => { return { diff --git a/packages/richtext-lexical/src/field/features/format/superscript/feature.client.tsx b/packages/richtext-lexical/src/features/format/superscript/feature.client.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/format/superscript/feature.client.tsx rename to packages/richtext-lexical/src/features/format/superscript/feature.client.tsx diff --git a/packages/richtext-lexical/src/field/features/format/superscript/feature.server.ts b/packages/richtext-lexical/src/features/format/superscript/feature.server.ts similarity index 83% rename from packages/richtext-lexical/src/field/features/format/superscript/feature.server.ts rename to packages/richtext-lexical/src/features/format/superscript/feature.server.ts index 0b0f90072..25bdce016 100644 --- a/packages/richtext-lexical/src/field/features/format/superscript/feature.server.ts +++ b/packages/richtext-lexical/src/features/format/superscript/feature.server.ts @@ -1,7 +1,7 @@ import type { FeatureProviderProviderServer } from '../../types.js' // eslint-disable-next-line payload/no-imports-from-exports-dir -import { SuperscriptFeatureClientComponent } from '../../../../exports/client/index.js' +import { SuperscriptFeatureClientComponent } from '../../../exports/client/index.js' export const SuperscriptFeature: FeatureProviderProviderServer = (props) => { return { diff --git a/packages/richtext-lexical/src/field/features/format/underline/feature.client.tsx b/packages/richtext-lexical/src/features/format/underline/feature.client.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/format/underline/feature.client.tsx rename to packages/richtext-lexical/src/features/format/underline/feature.client.tsx diff --git a/packages/richtext-lexical/src/field/features/format/underline/feature.server.ts b/packages/richtext-lexical/src/features/format/underline/feature.server.ts similarity index 83% rename from packages/richtext-lexical/src/field/features/format/underline/feature.server.ts rename to packages/richtext-lexical/src/features/format/underline/feature.server.ts index 939278004..9286a1c30 100644 --- a/packages/richtext-lexical/src/field/features/format/underline/feature.server.ts +++ b/packages/richtext-lexical/src/features/format/underline/feature.server.ts @@ -1,7 +1,7 @@ import type { FeatureProviderProviderServer } from '../../types.js' // eslint-disable-next-line payload/no-imports-from-exports-dir -import { UnderlineFeatureClientComponent } from '../../../../exports/client/index.js' +import { UnderlineFeatureClientComponent } from '../../../exports/client/index.js' export const UnderlineFeature: FeatureProviderProviderServer = (props) => { return { diff --git a/packages/richtext-lexical/src/field/features/heading/feature.client.tsx b/packages/richtext-lexical/src/features/heading/feature.client.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/heading/feature.client.tsx rename to packages/richtext-lexical/src/features/heading/feature.client.tsx diff --git a/packages/richtext-lexical/src/field/features/heading/feature.server.ts b/packages/richtext-lexical/src/features/heading/feature.server.ts similarity index 95% rename from packages/richtext-lexical/src/field/features/heading/feature.server.ts rename to packages/richtext-lexical/src/features/heading/feature.server.ts index 0a460e134..1f23f3091 100644 --- a/packages/richtext-lexical/src/field/features/heading/feature.server.ts +++ b/packages/richtext-lexical/src/features/heading/feature.server.ts @@ -5,7 +5,7 @@ import { HeadingNode } from '@lexical/rich-text' import type { FeatureProviderProviderServer } from '../types.js' // eslint-disable-next-line payload/no-imports-from-exports-dir -import { HeadingFeatureClientComponent } from '../../../exports/client/index.js' +import { HeadingFeatureClientComponent } from '../../exports/client/index.js' import { convertLexicalNodesToHTML } from '../converters/html/converter/index.js' import { createNode } from '../typeUtilities.js' import { i18n } from './i18n.js' diff --git a/packages/richtext-lexical/src/field/features/heading/i18n.ts b/packages/richtext-lexical/src/features/heading/i18n.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/heading/i18n.ts rename to packages/richtext-lexical/src/features/heading/i18n.ts diff --git a/packages/richtext-lexical/src/field/features/heading/markdownTransformer.ts b/packages/richtext-lexical/src/features/heading/markdownTransformer.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/heading/markdownTransformer.ts rename to packages/richtext-lexical/src/features/heading/markdownTransformer.ts diff --git a/packages/richtext-lexical/src/field/features/horizontalRule/component/index.tsx b/packages/richtext-lexical/src/features/horizontalRule/component/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/horizontalRule/component/index.tsx rename to packages/richtext-lexical/src/features/horizontalRule/component/index.tsx diff --git a/packages/richtext-lexical/src/field/features/horizontalRule/feature.client.tsx b/packages/richtext-lexical/src/features/horizontalRule/feature.client.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/horizontalRule/feature.client.tsx rename to packages/richtext-lexical/src/features/horizontalRule/feature.client.tsx diff --git a/packages/richtext-lexical/src/field/features/horizontalRule/feature.server.ts b/packages/richtext-lexical/src/features/horizontalRule/feature.server.ts similarity index 92% rename from packages/richtext-lexical/src/field/features/horizontalRule/feature.server.ts rename to packages/richtext-lexical/src/features/horizontalRule/feature.server.ts index 96f293a27..c6994e4cf 100644 --- a/packages/richtext-lexical/src/field/features/horizontalRule/feature.server.ts +++ b/packages/richtext-lexical/src/features/horizontalRule/feature.server.ts @@ -1,7 +1,7 @@ import type { FeatureProviderProviderServer } from '../types.js' // eslint-disable-next-line payload/no-imports-from-exports-dir -import { HorizontalRuleFeatureClientComponent } from '../../../exports/client/index.js' +import { HorizontalRuleFeatureClientComponent } from '../../exports/client/index.js' import { createNode } from '../typeUtilities.js' import { i18n } from './i18n.js' import { MarkdownTransformer } from './markdownTransformer.js' diff --git a/packages/richtext-lexical/src/field/features/horizontalRule/i18n.ts b/packages/richtext-lexical/src/features/horizontalRule/i18n.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/horizontalRule/i18n.ts rename to packages/richtext-lexical/src/features/horizontalRule/i18n.ts diff --git a/packages/richtext-lexical/src/field/features/horizontalRule/markdownTransformer.ts b/packages/richtext-lexical/src/features/horizontalRule/markdownTransformer.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/horizontalRule/markdownTransformer.ts rename to packages/richtext-lexical/src/features/horizontalRule/markdownTransformer.ts diff --git a/packages/richtext-lexical/src/field/features/horizontalRule/nodes/HorizontalRuleNode.tsx b/packages/richtext-lexical/src/features/horizontalRule/nodes/HorizontalRuleNode.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/horizontalRule/nodes/HorizontalRuleNode.tsx rename to packages/richtext-lexical/src/features/horizontalRule/nodes/HorizontalRuleNode.tsx diff --git a/packages/richtext-lexical/src/field/features/horizontalRule/plugin/index.scss b/packages/richtext-lexical/src/features/horizontalRule/plugin/index.scss similarity index 89% rename from packages/richtext-lexical/src/field/features/horizontalRule/plugin/index.scss rename to packages/richtext-lexical/src/features/horizontalRule/plugin/index.scss index 524c99b4b..71ec05d95 100644 --- a/packages/richtext-lexical/src/field/features/horizontalRule/plugin/index.scss +++ b/packages/richtext-lexical/src/features/horizontalRule/plugin/index.scss @@ -1,4 +1,4 @@ -@import '../../../../scss/styles.scss'; +@import '../../../scss/styles.scss'; .LexicalEditorTheme__hr { padding: 2px 2px; diff --git a/packages/richtext-lexical/src/field/features/horizontalRule/plugin/index.tsx b/packages/richtext-lexical/src/features/horizontalRule/plugin/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/horizontalRule/plugin/index.tsx rename to packages/richtext-lexical/src/features/horizontalRule/plugin/index.tsx diff --git a/packages/richtext-lexical/src/field/features/indent/feature.client.tsx b/packages/richtext-lexical/src/features/indent/feature.client.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/indent/feature.client.tsx rename to packages/richtext-lexical/src/features/indent/feature.client.tsx diff --git a/packages/richtext-lexical/src/field/features/indent/feature.server.ts b/packages/richtext-lexical/src/features/indent/feature.server.ts similarity index 86% rename from packages/richtext-lexical/src/field/features/indent/feature.server.ts rename to packages/richtext-lexical/src/features/indent/feature.server.ts index 10c8dd89a..9eb9120f5 100644 --- a/packages/richtext-lexical/src/field/features/indent/feature.server.ts +++ b/packages/richtext-lexical/src/features/indent/feature.server.ts @@ -1,7 +1,7 @@ import type { FeatureProviderProviderServer } from '../types.js' // eslint-disable-next-line payload/no-imports-from-exports-dir -import { IndentFeatureClientComponent } from '../../../exports/client/index.js' +import { IndentFeatureClientComponent } from '../../exports/client/index.js' import { i18n } from './i18n.js' export const IndentFeature: FeatureProviderProviderServer = (props) => { diff --git a/packages/richtext-lexical/src/field/features/indent/i18n.ts b/packages/richtext-lexical/src/features/indent/i18n.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/indent/i18n.ts rename to packages/richtext-lexical/src/features/indent/i18n.ts diff --git a/packages/richtext-lexical/src/field/features/indent/toolbarIndentGroup.ts b/packages/richtext-lexical/src/features/indent/toolbarIndentGroup.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/indent/toolbarIndentGroup.ts rename to packages/richtext-lexical/src/features/indent/toolbarIndentGroup.ts diff --git a/packages/richtext-lexical/src/field/features/link/drawer/baseFields.ts b/packages/richtext-lexical/src/features/link/drawer/baseFields.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/link/drawer/baseFields.ts rename to packages/richtext-lexical/src/features/link/drawer/baseFields.ts diff --git a/packages/richtext-lexical/src/field/features/link/drawer/index.scss b/packages/richtext-lexical/src/features/link/drawer/index.scss similarity index 95% rename from packages/richtext-lexical/src/field/features/link/drawer/index.scss rename to packages/richtext-lexical/src/features/link/drawer/index.scss index 23588591f..0f502fff6 100644 --- a/packages/richtext-lexical/src/field/features/link/drawer/index.scss +++ b/packages/richtext-lexical/src/features/link/drawer/index.scss @@ -1,4 +1,4 @@ -@import '../../../../scss/styles.scss'; +@import '../../../scss/styles.scss'; .lexical-link-edit-drawer { &__template { diff --git a/packages/richtext-lexical/src/field/features/link/drawer/index.tsx b/packages/richtext-lexical/src/features/link/drawer/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/link/drawer/index.tsx rename to packages/richtext-lexical/src/features/link/drawer/index.tsx diff --git a/packages/richtext-lexical/src/field/features/link/drawer/types.ts b/packages/richtext-lexical/src/features/link/drawer/types.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/link/drawer/types.ts rename to packages/richtext-lexical/src/features/link/drawer/types.ts diff --git a/packages/richtext-lexical/src/field/features/link/feature.client.tsx b/packages/richtext-lexical/src/features/link/feature.client.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/link/feature.client.tsx rename to packages/richtext-lexical/src/features/link/feature.client.tsx diff --git a/packages/richtext-lexical/src/field/features/link/feature.server.ts b/packages/richtext-lexical/src/features/link/feature.server.ts similarity index 98% rename from packages/richtext-lexical/src/field/features/link/feature.server.ts rename to packages/richtext-lexical/src/features/link/feature.server.ts index c4842dd1f..d63f13902 100644 --- a/packages/richtext-lexical/src/field/features/link/feature.server.ts +++ b/packages/richtext-lexical/src/features/link/feature.server.ts @@ -8,7 +8,7 @@ import type { FeatureProviderProviderServer } from '../types.js' import type { ClientProps } from './feature.client.js' // eslint-disable-next-line payload/no-imports-from-exports-dir -import { LinkFeatureClientComponent } from '../../../exports/client/index.js' +import { LinkFeatureClientComponent } from '../../exports/client/index.js' import { convertLexicalNodesToHTML } from '../converters/html/converter/index.js' import { createNode } from '../typeUtilities.js' import { linkPopulationPromiseHOC } from './graphQLPopulationPromise.js' diff --git a/packages/richtext-lexical/src/field/features/link/graphQLPopulationPromise.ts b/packages/richtext-lexical/src/features/link/graphQLPopulationPromise.ts similarity index 90% rename from packages/richtext-lexical/src/field/features/link/graphQLPopulationPromise.ts rename to packages/richtext-lexical/src/features/link/graphQLPopulationPromise.ts index 385b978d1..fa055ba1b 100644 --- a/packages/richtext-lexical/src/field/features/link/graphQLPopulationPromise.ts +++ b/packages/richtext-lexical/src/features/link/graphQLPopulationPromise.ts @@ -2,7 +2,7 @@ import type { PopulationPromise } from '../types.js' import type { LinkFeatureServerProps } from './feature.server.js' import type { SerializedLinkNode } from './nodes/types.js' -import { recursivelyPopulateFieldsForGraphQL } from '../../../populateGraphQL/recursivelyPopulateFieldsForGraphQL.js' +import { recursivelyPopulateFieldsForGraphQL } from '../../populateGraphQL/recursivelyPopulateFieldsForGraphQL.js' export const linkPopulationPromiseHOC = ( props: LinkFeatureServerProps, diff --git a/packages/richtext-lexical/src/field/features/link/i18n.ts b/packages/richtext-lexical/src/features/link/i18n.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/link/i18n.ts rename to packages/richtext-lexical/src/features/link/i18n.ts diff --git a/packages/richtext-lexical/src/field/features/link/markdownTransformer.ts b/packages/richtext-lexical/src/features/link/markdownTransformer.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/link/markdownTransformer.ts rename to packages/richtext-lexical/src/features/link/markdownTransformer.ts diff --git a/packages/richtext-lexical/src/field/features/link/nodes/AutoLinkNode.ts b/packages/richtext-lexical/src/features/link/nodes/AutoLinkNode.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/link/nodes/AutoLinkNode.ts rename to packages/richtext-lexical/src/features/link/nodes/AutoLinkNode.ts diff --git a/packages/richtext-lexical/src/field/features/link/nodes/LinkNode.ts b/packages/richtext-lexical/src/features/link/nodes/LinkNode.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/link/nodes/LinkNode.ts rename to packages/richtext-lexical/src/features/link/nodes/LinkNode.ts diff --git a/packages/richtext-lexical/src/field/features/link/nodes/types.ts b/packages/richtext-lexical/src/features/link/nodes/types.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/link/nodes/types.ts rename to packages/richtext-lexical/src/features/link/nodes/types.ts diff --git a/packages/richtext-lexical/src/field/features/link/plugins/autoLink/index.tsx b/packages/richtext-lexical/src/features/link/plugins/autoLink/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/link/plugins/autoLink/index.tsx rename to packages/richtext-lexical/src/features/link/plugins/autoLink/index.tsx diff --git a/packages/richtext-lexical/src/field/features/link/plugins/clickableLink/index.tsx b/packages/richtext-lexical/src/features/link/plugins/clickableLink/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/link/plugins/clickableLink/index.tsx rename to packages/richtext-lexical/src/features/link/plugins/clickableLink/index.tsx diff --git a/packages/richtext-lexical/src/field/features/link/plugins/floatingLinkEditor/LinkEditor/commands.ts b/packages/richtext-lexical/src/features/link/plugins/floatingLinkEditor/LinkEditor/commands.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/link/plugins/floatingLinkEditor/LinkEditor/commands.ts rename to packages/richtext-lexical/src/features/link/plugins/floatingLinkEditor/LinkEditor/commands.ts diff --git a/packages/richtext-lexical/src/field/features/link/plugins/floatingLinkEditor/LinkEditor/index.tsx b/packages/richtext-lexical/src/features/link/plugins/floatingLinkEditor/LinkEditor/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/link/plugins/floatingLinkEditor/LinkEditor/index.tsx rename to packages/richtext-lexical/src/features/link/plugins/floatingLinkEditor/LinkEditor/index.tsx diff --git a/packages/richtext-lexical/src/field/features/link/plugins/floatingLinkEditor/index.scss b/packages/richtext-lexical/src/features/link/plugins/floatingLinkEditor/index.scss similarity index 97% rename from packages/richtext-lexical/src/field/features/link/plugins/floatingLinkEditor/index.scss rename to packages/richtext-lexical/src/features/link/plugins/floatingLinkEditor/index.scss index 93138377f..db7f876fd 100644 --- a/packages/richtext-lexical/src/field/features/link/plugins/floatingLinkEditor/index.scss +++ b/packages/richtext-lexical/src/features/link/plugins/floatingLinkEditor/index.scss @@ -1,4 +1,4 @@ -@import '../../../../../scss/styles.scss'; +@import '../../../../scss/styles.scss'; html[data-theme='light'] { .link-editor { diff --git a/packages/richtext-lexical/src/field/features/link/plugins/floatingLinkEditor/index.tsx b/packages/richtext-lexical/src/features/link/plugins/floatingLinkEditor/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/link/plugins/floatingLinkEditor/index.tsx rename to packages/richtext-lexical/src/features/link/plugins/floatingLinkEditor/index.tsx diff --git a/packages/richtext-lexical/src/field/features/link/plugins/floatingLinkEditor/types.ts b/packages/richtext-lexical/src/features/link/plugins/floatingLinkEditor/types.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/link/plugins/floatingLinkEditor/types.ts rename to packages/richtext-lexical/src/features/link/plugins/floatingLinkEditor/types.ts diff --git a/packages/richtext-lexical/src/field/features/link/plugins/floatingLinkEditor/utilities.ts b/packages/richtext-lexical/src/features/link/plugins/floatingLinkEditor/utilities.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/link/plugins/floatingLinkEditor/utilities.ts rename to packages/richtext-lexical/src/features/link/plugins/floatingLinkEditor/utilities.ts diff --git a/packages/richtext-lexical/src/field/features/link/plugins/link/index.tsx b/packages/richtext-lexical/src/features/link/plugins/link/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/link/plugins/link/index.tsx rename to packages/richtext-lexical/src/features/link/plugins/link/index.tsx diff --git a/packages/richtext-lexical/src/field/features/link/validate.ts b/packages/richtext-lexical/src/features/link/validate.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/link/validate.ts rename to packages/richtext-lexical/src/features/link/validate.ts diff --git a/packages/richtext-lexical/src/field/features/lists/checklist/feature.client.tsx b/packages/richtext-lexical/src/features/lists/checklist/feature.client.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/lists/checklist/feature.client.tsx rename to packages/richtext-lexical/src/features/lists/checklist/feature.client.tsx diff --git a/packages/richtext-lexical/src/field/features/lists/checklist/feature.server.ts b/packages/richtext-lexical/src/features/lists/checklist/feature.server.ts similarity index 93% rename from packages/richtext-lexical/src/field/features/lists/checklist/feature.server.ts rename to packages/richtext-lexical/src/features/lists/checklist/feature.server.ts index 7aa9cbd46..5db70576c 100644 --- a/packages/richtext-lexical/src/field/features/lists/checklist/feature.server.ts +++ b/packages/richtext-lexical/src/features/lists/checklist/feature.server.ts @@ -3,7 +3,7 @@ import { ListItemNode, ListNode } from '@lexical/list' import type { FeatureProviderProviderServer } from '../../types.js' // eslint-disable-next-line payload/no-imports-from-exports-dir -import { ChecklistFeatureClientComponent } from '../../../../exports/client/index.js' +import { ChecklistFeatureClientComponent } from '../../../exports/client/index.js' import { createNode } from '../../typeUtilities.js' import { ListHTMLConverter, ListItemHTMLConverter } from '../htmlConverter.js' import { i18n } from './i18n.js' diff --git a/packages/richtext-lexical/src/field/features/lists/checklist/i18n.ts b/packages/richtext-lexical/src/features/lists/checklist/i18n.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/lists/checklist/i18n.ts rename to packages/richtext-lexical/src/features/lists/checklist/i18n.ts diff --git a/packages/richtext-lexical/src/field/features/lists/checklist/markdownTransformers.ts b/packages/richtext-lexical/src/features/lists/checklist/markdownTransformers.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/lists/checklist/markdownTransformers.ts rename to packages/richtext-lexical/src/features/lists/checklist/markdownTransformers.ts diff --git a/packages/richtext-lexical/src/field/features/lists/checklist/plugin/index.tsx b/packages/richtext-lexical/src/features/lists/checklist/plugin/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/lists/checklist/plugin/index.tsx rename to packages/richtext-lexical/src/features/lists/checklist/plugin/index.tsx diff --git a/packages/richtext-lexical/src/field/features/lists/htmlConverter.ts b/packages/richtext-lexical/src/features/lists/htmlConverter.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/lists/htmlConverter.ts rename to packages/richtext-lexical/src/features/lists/htmlConverter.ts diff --git a/packages/richtext-lexical/src/field/features/lists/orderedList/feature.client.tsx b/packages/richtext-lexical/src/features/lists/orderedList/feature.client.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/lists/orderedList/feature.client.tsx rename to packages/richtext-lexical/src/features/lists/orderedList/feature.client.tsx diff --git a/packages/richtext-lexical/src/field/features/lists/orderedList/feature.server.ts b/packages/richtext-lexical/src/features/lists/orderedList/feature.server.ts similarity index 93% rename from packages/richtext-lexical/src/field/features/lists/orderedList/feature.server.ts rename to packages/richtext-lexical/src/features/lists/orderedList/feature.server.ts index 58947de34..b64dd2784 100644 --- a/packages/richtext-lexical/src/field/features/lists/orderedList/feature.server.ts +++ b/packages/richtext-lexical/src/features/lists/orderedList/feature.server.ts @@ -3,7 +3,7 @@ import { ListItemNode, ListNode } from '@lexical/list' import type { FeatureProviderProviderServer } from '../../types.js' // eslint-disable-next-line payload/no-imports-from-exports-dir -import { OrderedListFeatureClientComponent } from '../../../../exports/client/index.js' +import { OrderedListFeatureClientComponent } from '../../../exports/client/index.js' import { createNode } from '../../typeUtilities.js' import { ListHTMLConverter, ListItemHTMLConverter } from '../htmlConverter.js' import { i18n } from './i18n.js' diff --git a/packages/richtext-lexical/src/field/features/lists/orderedList/i18n.ts b/packages/richtext-lexical/src/features/lists/orderedList/i18n.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/lists/orderedList/i18n.ts rename to packages/richtext-lexical/src/features/lists/orderedList/i18n.ts diff --git a/packages/richtext-lexical/src/field/features/lists/orderedList/markdownTransformer.ts b/packages/richtext-lexical/src/features/lists/orderedList/markdownTransformer.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/lists/orderedList/markdownTransformer.ts rename to packages/richtext-lexical/src/features/lists/orderedList/markdownTransformer.ts diff --git a/packages/richtext-lexical/src/field/features/lists/plugin/index.tsx b/packages/richtext-lexical/src/features/lists/plugin/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/lists/plugin/index.tsx rename to packages/richtext-lexical/src/features/lists/plugin/index.tsx diff --git a/packages/richtext-lexical/src/field/features/lists/shared/markdown.ts b/packages/richtext-lexical/src/features/lists/shared/markdown.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/lists/shared/markdown.ts rename to packages/richtext-lexical/src/features/lists/shared/markdown.ts diff --git a/packages/richtext-lexical/src/field/features/lists/shared/slashMenuListGroup.ts b/packages/richtext-lexical/src/features/lists/shared/slashMenuListGroup.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/lists/shared/slashMenuListGroup.ts rename to packages/richtext-lexical/src/features/lists/shared/slashMenuListGroup.ts diff --git a/packages/richtext-lexical/src/field/features/lists/unorderedList/feature.client.tsx b/packages/richtext-lexical/src/features/lists/unorderedList/feature.client.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/lists/unorderedList/feature.client.tsx rename to packages/richtext-lexical/src/features/lists/unorderedList/feature.client.tsx diff --git a/packages/richtext-lexical/src/field/features/lists/unorderedList/feature.server.ts b/packages/richtext-lexical/src/features/lists/unorderedList/feature.server.ts similarity index 92% rename from packages/richtext-lexical/src/field/features/lists/unorderedList/feature.server.ts rename to packages/richtext-lexical/src/features/lists/unorderedList/feature.server.ts index 48516e72a..8113e823d 100644 --- a/packages/richtext-lexical/src/field/features/lists/unorderedList/feature.server.ts +++ b/packages/richtext-lexical/src/features/lists/unorderedList/feature.server.ts @@ -3,7 +3,7 @@ import { ListItemNode, ListNode } from '@lexical/list' import type { FeatureProviderProviderServer } from '../../types.js' // eslint-disable-next-line payload/no-imports-from-exports-dir -import { UnorderedListFeatureClientComponent } from '../../../../exports/client/index.js' +import { UnorderedListFeatureClientComponent } from '../../../exports/client/index.js' import { createNode } from '../../typeUtilities.js' import { ListHTMLConverter, ListItemHTMLConverter } from '../htmlConverter.js' import { i18n } from './i18n.js' diff --git a/packages/richtext-lexical/src/field/features/lists/unorderedList/i18n.ts b/packages/richtext-lexical/src/features/lists/unorderedList/i18n.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/lists/unorderedList/i18n.ts rename to packages/richtext-lexical/src/features/lists/unorderedList/i18n.ts diff --git a/packages/richtext-lexical/src/field/features/lists/unorderedList/markdownTransformer.ts b/packages/richtext-lexical/src/features/lists/unorderedList/markdownTransformer.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/lists/unorderedList/markdownTransformer.ts rename to packages/richtext-lexical/src/features/lists/unorderedList/markdownTransformer.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/client.ts b/packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/converter/converters/heading/client.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/client.ts rename to packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/converter/converters/heading/client.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.ts b/packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.ts rename to packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/index.ts b/packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/converter/converters/heading/index.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/index.ts rename to packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/converter/converters/heading/index.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/converter/converters/link/client.ts b/packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/converter/converters/link/client.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/converter/converters/link/client.ts rename to packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/converter/converters/link/client.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.ts b/packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.ts rename to packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/converter/converters/link/index.ts b/packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/converter/converters/link/index.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/converter/converters/link/index.ts rename to packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/converter/converters/link/index.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/converter/converters/list/client.ts b/packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/converter/converters/list/client.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/converter/converters/list/client.ts rename to packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/converter/converters/list/client.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.ts b/packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.ts rename to packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/converter/converters/list/index.ts b/packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/converter/converters/list/index.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/converter/converters/list/index.ts rename to packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/converter/converters/list/index.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/client.ts b/packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/converter/converters/listItem/client.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/client.ts rename to packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/converter/converters/listItem/client.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.ts b/packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.ts rename to packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/index.ts b/packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/converter/converters/listItem/index.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/index.ts rename to packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/converter/converters/listItem/index.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/client.ts b/packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/converter/converters/quote/client.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/client.ts rename to packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/converter/converters/quote/client.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.ts b/packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.ts rename to packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/index.ts b/packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/converter/converters/quote/index.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/index.ts rename to packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/converter/converters/quote/index.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/client.ts b/packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/converter/converters/unknown/client.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/client.ts rename to packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/converter/converters/unknown/client.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.ts b/packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.ts rename to packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/index.ts b/packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/converter/converters/unknown/index.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/index.ts rename to packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/converter/converters/unknown/index.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/client.ts b/packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/converter/converters/upload/client.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/client.ts rename to packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/converter/converters/upload/client.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.ts b/packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.ts rename to packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/index.ts b/packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/converter/converters/upload/index.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/index.ts rename to packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/converter/converters/upload/index.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/converter/defaultConverters.ts b/packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/converter/defaultConverters.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/converter/defaultConverters.ts rename to packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/converter/defaultConverters.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/converter/index.ts b/packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/converter/index.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/converter/index.ts rename to packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/converter/index.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/converter/types.ts b/packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/converter/types.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/converter/types.ts rename to packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/converter/types.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/feature.client.tsx b/packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/feature.client.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/feature.client.tsx rename to packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/feature.client.tsx diff --git a/packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/feature.server.ts b/packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/feature.server.ts similarity index 98% rename from packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/feature.server.ts rename to packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/feature.server.ts index 1022a1856..40ff7abb1 100644 --- a/packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/feature.server.ts +++ b/packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/feature.server.ts @@ -4,7 +4,7 @@ import type { FeatureProviderProviderServer } from '../../types.js' import type { LexicalPluginNodeConverterProvider } from './converter/types.js' // eslint-disable-next-line payload/no-imports-from-exports-dir -import { LexicalPluginToLexicalFeatureClientComponent } from '../../../../exports/client/index.js' +import { LexicalPluginToLexicalFeatureClientComponent } from '../../../exports/client/index.js' import { defaultConverters } from './converter/defaultConverters.js' import { UnknownConvertedNode } from './nodes/unknownConvertedNode/index.js' diff --git a/packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.tsx b/packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.tsx rename to packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.tsx diff --git a/packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.scss b/packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.scss similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.scss rename to packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.scss diff --git a/packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.tsx b/packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.tsx rename to packages/richtext-lexical/src/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.tsx diff --git a/packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/blockquote/client.ts b/packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/blockquote/client.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/blockquote/client.ts rename to packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/blockquote/client.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/blockquote/converter.ts b/packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/blockquote/converter.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/blockquote/converter.ts rename to packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/blockquote/converter.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/blockquote/index.ts b/packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/blockquote/index.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/blockquote/index.ts rename to packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/blockquote/index.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/heading/client.ts b/packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/heading/client.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/heading/client.ts rename to packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/heading/client.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/heading/converter.ts b/packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/heading/converter.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/heading/converter.ts rename to packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/heading/converter.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/heading/index.ts b/packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/heading/index.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/heading/index.ts rename to packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/heading/index.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/indent/client.ts b/packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/indent/client.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/indent/client.ts rename to packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/indent/client.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/indent/converter.ts b/packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/indent/converter.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/indent/converter.ts rename to packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/indent/converter.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/indent/index.ts b/packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/indent/index.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/indent/index.ts rename to packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/indent/index.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/link/client.ts b/packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/link/client.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/link/client.ts rename to packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/link/client.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/link/converter.ts b/packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/link/converter.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/link/converter.ts rename to packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/link/converter.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/link/index.ts b/packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/link/index.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/link/index.ts rename to packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/link/index.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/listItem/client.ts b/packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/listItem/client.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/listItem/client.ts rename to packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/listItem/client.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/listItem/converter.ts b/packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/listItem/converter.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/listItem/converter.ts rename to packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/listItem/converter.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/listItem/index.ts b/packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/listItem/index.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/listItem/index.ts rename to packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/listItem/index.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/orderedList/client.ts b/packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/orderedList/client.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/orderedList/client.ts rename to packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/orderedList/client.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/orderedList/converter.ts b/packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/orderedList/converter.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/orderedList/converter.ts rename to packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/orderedList/converter.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/orderedList/index.ts b/packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/orderedList/index.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/orderedList/index.ts rename to packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/orderedList/index.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/relationship/client.ts b/packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/relationship/client.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/relationship/client.ts rename to packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/relationship/client.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/relationship/converter.ts b/packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/relationship/converter.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/relationship/converter.ts rename to packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/relationship/converter.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/relationship/index.ts b/packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/relationship/index.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/relationship/index.ts rename to packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/relationship/index.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/unknown/client.ts b/packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/unknown/client.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/unknown/client.ts rename to packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/unknown/client.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/unknown/converter.ts b/packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/unknown/converter.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/unknown/converter.ts rename to packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/unknown/converter.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/unknown/index.ts b/packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/unknown/index.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/unknown/index.ts rename to packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/unknown/index.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/unorderedList/client.ts b/packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/unorderedList/client.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/unorderedList/client.ts rename to packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/unorderedList/client.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/unorderedList/converter.ts b/packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/unorderedList/converter.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/unorderedList/converter.ts rename to packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/unorderedList/converter.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/unorderedList/index.ts b/packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/unorderedList/index.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/unorderedList/index.ts rename to packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/unorderedList/index.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/upload/client.ts b/packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/upload/client.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/upload/client.ts rename to packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/upload/client.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/upload/converter.ts b/packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/upload/converter.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/upload/converter.ts rename to packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/upload/converter.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/upload/index.ts b/packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/upload/index.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/converters/upload/index.ts rename to packages/richtext-lexical/src/features/migrations/slateToLexical/converter/converters/upload/index.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/defaultConverters.ts b/packages/richtext-lexical/src/features/migrations/slateToLexical/converter/defaultConverters.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/defaultConverters.ts rename to packages/richtext-lexical/src/features/migrations/slateToLexical/converter/defaultConverters.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/index.ts b/packages/richtext-lexical/src/features/migrations/slateToLexical/converter/index.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/index.ts rename to packages/richtext-lexical/src/features/migrations/slateToLexical/converter/index.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/types.ts b/packages/richtext-lexical/src/features/migrations/slateToLexical/converter/types.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/slateToLexical/converter/types.ts rename to packages/richtext-lexical/src/features/migrations/slateToLexical/converter/types.ts diff --git a/packages/richtext-lexical/src/field/features/migrations/slateToLexical/feature.client.tsx b/packages/richtext-lexical/src/features/migrations/slateToLexical/feature.client.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/slateToLexical/feature.client.tsx rename to packages/richtext-lexical/src/features/migrations/slateToLexical/feature.client.tsx diff --git a/packages/richtext-lexical/src/field/features/migrations/slateToLexical/feature.server.ts b/packages/richtext-lexical/src/features/migrations/slateToLexical/feature.server.ts similarity index 95% rename from packages/richtext-lexical/src/field/features/migrations/slateToLexical/feature.server.ts rename to packages/richtext-lexical/src/features/migrations/slateToLexical/feature.server.ts index 6f9944cdb..a1e99eb88 100644 --- a/packages/richtext-lexical/src/field/features/migrations/slateToLexical/feature.server.ts +++ b/packages/richtext-lexical/src/features/migrations/slateToLexical/feature.server.ts @@ -4,7 +4,7 @@ import type { FeatureProviderProviderServer } from '../../types.js' import type { SlateNodeConverterProvider } from './converter/types.js' // eslint-disable-next-line payload/no-imports-from-exports-dir -import { SlateToLexicalFeatureClientComponent } from '../../../../exports/client/index.js' +import { SlateToLexicalFeatureClientComponent } from '../../../exports/client/index.js' import { defaultSlateConverters } from './converter/defaultConverters.js' import { UnknownConvertedNode } from './nodes/unknownConvertedNode/index.js' diff --git a/packages/richtext-lexical/src/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.tsx b/packages/richtext-lexical/src/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.tsx rename to packages/richtext-lexical/src/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.tsx diff --git a/packages/richtext-lexical/src/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.scss b/packages/richtext-lexical/src/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.scss similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.scss rename to packages/richtext-lexical/src/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.scss diff --git a/packages/richtext-lexical/src/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.tsx b/packages/richtext-lexical/src/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.tsx rename to packages/richtext-lexical/src/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.tsx diff --git a/packages/richtext-lexical/src/field/features/paragraph/feature.client.tsx b/packages/richtext-lexical/src/features/paragraph/feature.client.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/paragraph/feature.client.tsx rename to packages/richtext-lexical/src/features/paragraph/feature.client.tsx diff --git a/packages/richtext-lexical/src/field/features/paragraph/feature.server.ts b/packages/richtext-lexical/src/features/paragraph/feature.server.ts similarity index 86% rename from packages/richtext-lexical/src/field/features/paragraph/feature.server.ts rename to packages/richtext-lexical/src/features/paragraph/feature.server.ts index 721bceebe..46923a7cb 100644 --- a/packages/richtext-lexical/src/field/features/paragraph/feature.server.ts +++ b/packages/richtext-lexical/src/features/paragraph/feature.server.ts @@ -1,7 +1,7 @@ import type { FeatureProviderProviderServer } from '../types.js' // eslint-disable-next-line payload/no-imports-from-exports-dir -import { ParagraphFeatureClientComponent } from '../../../exports/client/index.js' +import { ParagraphFeatureClientComponent } from '../../exports/client/index.js' import { i18n } from './i18n.js' export const ParagraphFeature: FeatureProviderProviderServer = (props) => { diff --git a/packages/richtext-lexical/src/field/features/paragraph/i18n.ts b/packages/richtext-lexical/src/features/paragraph/i18n.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/paragraph/i18n.ts rename to packages/richtext-lexical/src/features/paragraph/i18n.ts diff --git a/packages/richtext-lexical/src/field/features/relationship/drawer/commands.ts b/packages/richtext-lexical/src/features/relationship/drawer/commands.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/relationship/drawer/commands.ts rename to packages/richtext-lexical/src/features/relationship/drawer/commands.ts diff --git a/packages/richtext-lexical/src/field/features/relationship/drawer/index.tsx b/packages/richtext-lexical/src/features/relationship/drawer/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/relationship/drawer/index.tsx rename to packages/richtext-lexical/src/features/relationship/drawer/index.tsx diff --git a/packages/richtext-lexical/src/field/features/relationship/feature.client.tsx b/packages/richtext-lexical/src/features/relationship/feature.client.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/relationship/feature.client.tsx rename to packages/richtext-lexical/src/features/relationship/feature.client.tsx diff --git a/packages/richtext-lexical/src/field/features/relationship/feature.server.ts b/packages/richtext-lexical/src/features/relationship/feature.server.ts similarity index 96% rename from packages/richtext-lexical/src/field/features/relationship/feature.server.ts rename to packages/richtext-lexical/src/features/relationship/feature.server.ts index 03ad9d1a0..89b29e4ba 100644 --- a/packages/richtext-lexical/src/field/features/relationship/feature.server.ts +++ b/packages/richtext-lexical/src/features/relationship/feature.server.ts @@ -1,8 +1,8 @@ import type { FeatureProviderProviderServer } from '../types.js' // eslint-disable-next-line payload/no-imports-from-exports-dir -import { RelationshipFeatureClientComponent } from '../../../exports/client/index.js' -import { populate } from '../../../populateGraphQL/populate.js' +import { RelationshipFeatureClientComponent } from '../../exports/client/index.js' +import { populate } from '../../populateGraphQL/populate.js' import { createNode } from '../typeUtilities.js' import { relationshipPopulationPromiseHOC } from './graphQLPopulationPromise.js' import { i18n } from './i18n.js' diff --git a/packages/richtext-lexical/src/field/features/relationship/graphQLPopulationPromise.ts b/packages/richtext-lexical/src/features/relationship/graphQLPopulationPromise.ts similarity index 95% rename from packages/richtext-lexical/src/field/features/relationship/graphQLPopulationPromise.ts rename to packages/richtext-lexical/src/features/relationship/graphQLPopulationPromise.ts index ce19e827d..bcb78a422 100644 --- a/packages/richtext-lexical/src/field/features/relationship/graphQLPopulationPromise.ts +++ b/packages/richtext-lexical/src/features/relationship/graphQLPopulationPromise.ts @@ -2,7 +2,7 @@ import type { PopulationPromise } from '../types.js' import type { RelationshipFeatureProps } from './feature.server.js' import type { SerializedRelationshipNode } from './nodes/RelationshipNode.js' -import { populate } from '../../../populateGraphQL/populate.js' +import { populate } from '../../populateGraphQL/populate.js' export const relationshipPopulationPromiseHOC = ( props: RelationshipFeatureProps, diff --git a/packages/richtext-lexical/src/field/features/relationship/i18n.ts b/packages/richtext-lexical/src/features/relationship/i18n.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/relationship/i18n.ts rename to packages/richtext-lexical/src/features/relationship/i18n.ts diff --git a/packages/richtext-lexical/src/field/features/relationship/nodes/RelationshipNode.tsx b/packages/richtext-lexical/src/features/relationship/nodes/RelationshipNode.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/relationship/nodes/RelationshipNode.tsx rename to packages/richtext-lexical/src/features/relationship/nodes/RelationshipNode.tsx diff --git a/packages/richtext-lexical/src/field/features/relationship/nodes/components/RelationshipComponent.tsx b/packages/richtext-lexical/src/features/relationship/nodes/components/RelationshipComponent.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/relationship/nodes/components/RelationshipComponent.tsx rename to packages/richtext-lexical/src/features/relationship/nodes/components/RelationshipComponent.tsx diff --git a/packages/richtext-lexical/src/field/features/relationship/nodes/components/index.scss b/packages/richtext-lexical/src/features/relationship/nodes/components/index.scss similarity index 97% rename from packages/richtext-lexical/src/field/features/relationship/nodes/components/index.scss rename to packages/richtext-lexical/src/features/relationship/nodes/components/index.scss index 9140194b4..3832bcb6a 100644 --- a/packages/richtext-lexical/src/field/features/relationship/nodes/components/index.scss +++ b/packages/richtext-lexical/src/features/relationship/nodes/components/index.scss @@ -1,4 +1,4 @@ -@import '../../../../../scss/styles.scss'; +@import '../../../../scss/styles.scss'; .lexical-relationship { @extend %body; diff --git a/packages/richtext-lexical/src/field/features/relationship/plugins/index.tsx b/packages/richtext-lexical/src/features/relationship/plugins/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/relationship/plugins/index.tsx rename to packages/richtext-lexical/src/features/relationship/plugins/index.tsx diff --git a/packages/richtext-lexical/src/field/features/relationship/utils/EnabledRelationshipsCondition.tsx b/packages/richtext-lexical/src/features/relationship/utils/EnabledRelationshipsCondition.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/relationship/utils/EnabledRelationshipsCondition.tsx rename to packages/richtext-lexical/src/features/relationship/utils/EnabledRelationshipsCondition.tsx diff --git a/packages/richtext-lexical/src/field/features/shared/slashMenu/basicGroup.ts b/packages/richtext-lexical/src/features/shared/slashMenu/basicGroup.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/shared/slashMenu/basicGroup.ts rename to packages/richtext-lexical/src/features/shared/slashMenu/basicGroup.ts diff --git a/packages/richtext-lexical/src/field/features/shared/toolbar/addDropdownGroup.ts b/packages/richtext-lexical/src/features/shared/toolbar/addDropdownGroup.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/shared/toolbar/addDropdownGroup.ts rename to packages/richtext-lexical/src/features/shared/toolbar/addDropdownGroup.ts diff --git a/packages/richtext-lexical/src/field/features/shared/toolbar/featureButtonsGroup.ts b/packages/richtext-lexical/src/features/shared/toolbar/featureButtonsGroup.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/shared/toolbar/featureButtonsGroup.ts rename to packages/richtext-lexical/src/features/shared/toolbar/featureButtonsGroup.ts diff --git a/packages/richtext-lexical/src/field/features/shared/toolbar/textDropdownGroup.ts b/packages/richtext-lexical/src/features/shared/toolbar/textDropdownGroup.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/shared/toolbar/textDropdownGroup.ts rename to packages/richtext-lexical/src/features/shared/toolbar/textDropdownGroup.ts diff --git a/packages/richtext-lexical/src/field/features/toolbars/fixed/Toolbar/index.scss b/packages/richtext-lexical/src/features/toolbars/fixed/Toolbar/index.scss similarity index 98% rename from packages/richtext-lexical/src/field/features/toolbars/fixed/Toolbar/index.scss rename to packages/richtext-lexical/src/features/toolbars/fixed/Toolbar/index.scss index 7d6656514..7f42b6aec 100644 --- a/packages/richtext-lexical/src/field/features/toolbars/fixed/Toolbar/index.scss +++ b/packages/richtext-lexical/src/features/toolbars/fixed/Toolbar/index.scss @@ -1,4 +1,4 @@ -@import '../../../../../scss/styles'; +@import '../../../../scss/styles'; html[data-theme='dark'] { .fixed-toolbar { diff --git a/packages/richtext-lexical/src/field/features/toolbars/fixed/Toolbar/index.tsx b/packages/richtext-lexical/src/features/toolbars/fixed/Toolbar/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/toolbars/fixed/Toolbar/index.tsx rename to packages/richtext-lexical/src/features/toolbars/fixed/Toolbar/index.tsx diff --git a/packages/richtext-lexical/src/field/features/toolbars/fixed/feature.client.tsx b/packages/richtext-lexical/src/features/toolbars/fixed/feature.client.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/toolbars/fixed/feature.client.tsx rename to packages/richtext-lexical/src/features/toolbars/fixed/feature.client.tsx diff --git a/packages/richtext-lexical/src/field/features/toolbars/fixed/feature.server.ts b/packages/richtext-lexical/src/features/toolbars/fixed/feature.server.ts similarity index 94% rename from packages/richtext-lexical/src/field/features/toolbars/fixed/feature.server.ts rename to packages/richtext-lexical/src/features/toolbars/fixed/feature.server.ts index a278c29d9..666dfb50d 100644 --- a/packages/richtext-lexical/src/field/features/toolbars/fixed/feature.server.ts +++ b/packages/richtext-lexical/src/features/toolbars/fixed/feature.server.ts @@ -1,7 +1,7 @@ import type { FeatureProviderProviderServer } from '../../types.js' // eslint-disable-next-line payload/no-imports-from-exports-dir -import { FixedToolbarFeatureClientComponent } from '../../../../exports/client/index.js' +import { FixedToolbarFeatureClientComponent } from '../../../exports/client/index.js' export type FixedToolbarFeatureProps = { /** diff --git a/packages/richtext-lexical/src/field/features/toolbars/inline/Toolbar/index.scss b/packages/richtext-lexical/src/features/toolbars/inline/Toolbar/index.scss similarity index 95% rename from packages/richtext-lexical/src/field/features/toolbars/inline/Toolbar/index.scss rename to packages/richtext-lexical/src/features/toolbars/inline/Toolbar/index.scss index f4c8dbc7f..4b85bbdce 100644 --- a/packages/richtext-lexical/src/field/features/toolbars/inline/Toolbar/index.scss +++ b/packages/richtext-lexical/src/features/toolbars/inline/Toolbar/index.scss @@ -1,4 +1,4 @@ -@import '../../../../../scss/styles'; +@import '../../../../scss/styles'; html[data-theme='light'] { .inline-toolbar-popup { diff --git a/packages/richtext-lexical/src/field/features/toolbars/inline/Toolbar/index.tsx b/packages/richtext-lexical/src/features/toolbars/inline/Toolbar/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/toolbars/inline/Toolbar/index.tsx rename to packages/richtext-lexical/src/features/toolbars/inline/Toolbar/index.tsx diff --git a/packages/richtext-lexical/src/field/features/toolbars/inline/feature.client.tsx b/packages/richtext-lexical/src/features/toolbars/inline/feature.client.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/toolbars/inline/feature.client.tsx rename to packages/richtext-lexical/src/features/toolbars/inline/feature.client.tsx diff --git a/packages/richtext-lexical/src/field/features/toolbars/inline/feature.server.ts b/packages/richtext-lexical/src/features/toolbars/inline/feature.server.ts similarity index 83% rename from packages/richtext-lexical/src/field/features/toolbars/inline/feature.server.ts rename to packages/richtext-lexical/src/features/toolbars/inline/feature.server.ts index 97d81a4de..7c7640fc9 100644 --- a/packages/richtext-lexical/src/field/features/toolbars/inline/feature.server.ts +++ b/packages/richtext-lexical/src/features/toolbars/inline/feature.server.ts @@ -1,7 +1,7 @@ import type { FeatureProviderProviderServer } from '../../types.js' // eslint-disable-next-line payload/no-imports-from-exports-dir -import { InlineToolbarFeatureClientComponent } from '../../../../exports/client/index.js' +import { InlineToolbarFeatureClientComponent } from '../../../exports/client/index.js' export const InlineToolbarFeature: FeatureProviderProviderServer = ( props, diff --git a/packages/richtext-lexical/src/field/features/toolbars/shared/ToolbarButton/index.scss b/packages/richtext-lexical/src/features/toolbars/shared/ToolbarButton/index.scss similarity index 93% rename from packages/richtext-lexical/src/field/features/toolbars/shared/ToolbarButton/index.scss rename to packages/richtext-lexical/src/features/toolbars/shared/ToolbarButton/index.scss index 886917b14..d12f82e79 100644 --- a/packages/richtext-lexical/src/field/features/toolbars/shared/ToolbarButton/index.scss +++ b/packages/richtext-lexical/src/features/toolbars/shared/ToolbarButton/index.scss @@ -1,4 +1,4 @@ -@import '../../../../../scss/styles'; +@import '../../../../scss/styles'; .toolbar-popup__button { display: flex; diff --git a/packages/richtext-lexical/src/field/features/toolbars/shared/ToolbarButton/index.tsx b/packages/richtext-lexical/src/features/toolbars/shared/ToolbarButton/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/toolbars/shared/ToolbarButton/index.tsx rename to packages/richtext-lexical/src/features/toolbars/shared/ToolbarButton/index.tsx diff --git a/packages/richtext-lexical/src/field/features/toolbars/shared/ToolbarDropdown/DropDown.tsx b/packages/richtext-lexical/src/features/toolbars/shared/ToolbarDropdown/DropDown.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/toolbars/shared/ToolbarDropdown/DropDown.tsx rename to packages/richtext-lexical/src/features/toolbars/shared/ToolbarDropdown/DropDown.tsx diff --git a/packages/richtext-lexical/src/field/features/toolbars/shared/ToolbarDropdown/index.scss b/packages/richtext-lexical/src/features/toolbars/shared/ToolbarDropdown/index.scss similarity index 98% rename from packages/richtext-lexical/src/field/features/toolbars/shared/ToolbarDropdown/index.scss rename to packages/richtext-lexical/src/features/toolbars/shared/ToolbarDropdown/index.scss index 4f62a71e2..bc19e5472 100644 --- a/packages/richtext-lexical/src/field/features/toolbars/shared/ToolbarDropdown/index.scss +++ b/packages/richtext-lexical/src/features/toolbars/shared/ToolbarDropdown/index.scss @@ -1,4 +1,4 @@ -@import '../../../../../scss/styles'; +@import '../../../../scss/styles'; .toolbar-popup__dropdown { display: flex; diff --git a/packages/richtext-lexical/src/field/features/toolbars/shared/ToolbarDropdown/index.tsx b/packages/richtext-lexical/src/features/toolbars/shared/ToolbarDropdown/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/toolbars/shared/ToolbarDropdown/index.tsx rename to packages/richtext-lexical/src/features/toolbars/shared/ToolbarDropdown/index.tsx diff --git a/packages/richtext-lexical/src/field/features/toolbars/types.ts b/packages/richtext-lexical/src/features/toolbars/types.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/toolbars/types.ts rename to packages/richtext-lexical/src/features/toolbars/types.ts diff --git a/packages/richtext-lexical/src/field/features/typeUtilities.ts b/packages/richtext-lexical/src/features/typeUtilities.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/typeUtilities.ts rename to packages/richtext-lexical/src/features/typeUtilities.ts diff --git a/packages/richtext-lexical/src/field/features/types.ts b/packages/richtext-lexical/src/features/types.ts similarity index 99% rename from packages/richtext-lexical/src/field/features/types.ts rename to packages/richtext-lexical/src/features/types.ts index 95a0aaa25..44c4980a5 100644 --- a/packages/richtext-lexical/src/field/features/types.ts +++ b/packages/richtext-lexical/src/features/types.ts @@ -20,9 +20,9 @@ import type { } from 'payload' import type React from 'react' -import type { AdapterProps } from '../../types.js' import type { ClientEditorConfig, ServerEditorConfig } from '../lexical/config/types.js' import type { SlashMenuGroup } from '../lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.js' +import type { AdapterProps } from '../types.js' import type { HTMLConverter } from './converters/html/converter/types.js' import type { ToolbarGroup } from './toolbars/types.js' diff --git a/packages/richtext-lexical/src/field/features/upload/component/ExtraFieldsDrawer/index.tsx b/packages/richtext-lexical/src/features/upload/component/ExtraFieldsDrawer/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/upload/component/ExtraFieldsDrawer/index.tsx rename to packages/richtext-lexical/src/features/upload/component/ExtraFieldsDrawer/index.tsx diff --git a/packages/richtext-lexical/src/field/features/upload/component/index.scss b/packages/richtext-lexical/src/features/upload/component/index.scss similarity index 98% rename from packages/richtext-lexical/src/field/features/upload/component/index.scss rename to packages/richtext-lexical/src/features/upload/component/index.scss index a6cdb57b0..912daed11 100644 --- a/packages/richtext-lexical/src/field/features/upload/component/index.scss +++ b/packages/richtext-lexical/src/features/upload/component/index.scss @@ -1,4 +1,4 @@ -@import '../../../../scss/styles.scss'; +@import '../../../scss/styles.scss'; .lexical-upload { @extend %body; diff --git a/packages/richtext-lexical/src/field/features/upload/component/index.tsx b/packages/richtext-lexical/src/features/upload/component/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/upload/component/index.tsx rename to packages/richtext-lexical/src/features/upload/component/index.tsx diff --git a/packages/richtext-lexical/src/field/features/upload/drawer/commands.ts b/packages/richtext-lexical/src/features/upload/drawer/commands.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/upload/drawer/commands.ts rename to packages/richtext-lexical/src/features/upload/drawer/commands.ts diff --git a/packages/richtext-lexical/src/field/features/upload/drawer/index.tsx b/packages/richtext-lexical/src/features/upload/drawer/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/upload/drawer/index.tsx rename to packages/richtext-lexical/src/features/upload/drawer/index.tsx diff --git a/packages/richtext-lexical/src/field/features/upload/feature.client.tsx b/packages/richtext-lexical/src/features/upload/feature.client.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/upload/feature.client.tsx rename to packages/richtext-lexical/src/features/upload/feature.client.tsx diff --git a/packages/richtext-lexical/src/field/features/upload/feature.server.ts b/packages/richtext-lexical/src/features/upload/feature.server.ts similarity index 98% rename from packages/richtext-lexical/src/field/features/upload/feature.server.ts rename to packages/richtext-lexical/src/features/upload/feature.server.ts index 1a13601e4..825612e55 100644 --- a/packages/richtext-lexical/src/field/features/upload/feature.server.ts +++ b/packages/richtext-lexical/src/features/upload/feature.server.ts @@ -7,8 +7,8 @@ import type { FeatureProviderProviderServer } from '../types.js' import type { UploadFeaturePropsClient } from './feature.client.js' // eslint-disable-next-line payload/no-imports-from-exports-dir -import { UploadFeatureClientComponent } from '../../../exports/client/index.js' -import { populate } from '../../../populateGraphQL/populate.js' +import { UploadFeatureClientComponent } from '../../exports/client/index.js' +import { populate } from '../../populateGraphQL/populate.js' import { createNode } from '../typeUtilities.js' import { uploadPopulationPromiseHOC } from './graphQLPopulationPromise.js' import { i18n } from './i18n.js' diff --git a/packages/richtext-lexical/src/field/features/upload/graphQLPopulationPromise.ts b/packages/richtext-lexical/src/features/upload/graphQLPopulationPromise.ts similarity index 91% rename from packages/richtext-lexical/src/field/features/upload/graphQLPopulationPromise.ts rename to packages/richtext-lexical/src/features/upload/graphQLPopulationPromise.ts index 0594376c3..dd742e299 100644 --- a/packages/richtext-lexical/src/field/features/upload/graphQLPopulationPromise.ts +++ b/packages/richtext-lexical/src/features/upload/graphQLPopulationPromise.ts @@ -2,8 +2,8 @@ import type { PopulationPromise } from '../types.js' import type { UploadFeatureProps } from './feature.server.js' import type { SerializedUploadNode } from './nodes/UploadNode.js' -import { populate } from '../../../populateGraphQL/populate.js' -import { recursivelyPopulateFieldsForGraphQL } from '../../../populateGraphQL/recursivelyPopulateFieldsForGraphQL.js' +import { populate } from '../../populateGraphQL/populate.js' +import { recursivelyPopulateFieldsForGraphQL } from '../../populateGraphQL/recursivelyPopulateFieldsForGraphQL.js' export const uploadPopulationPromiseHOC = ( props?: UploadFeatureProps, diff --git a/packages/richtext-lexical/src/field/features/upload/i18n.ts b/packages/richtext-lexical/src/features/upload/i18n.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/upload/i18n.ts rename to packages/richtext-lexical/src/features/upload/i18n.ts diff --git a/packages/richtext-lexical/src/field/features/upload/nodes/UploadNode.tsx b/packages/richtext-lexical/src/features/upload/nodes/UploadNode.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/upload/nodes/UploadNode.tsx rename to packages/richtext-lexical/src/features/upload/nodes/UploadNode.tsx diff --git a/packages/richtext-lexical/src/field/features/upload/plugin/index.tsx b/packages/richtext-lexical/src/features/upload/plugin/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/features/upload/plugin/index.tsx rename to packages/richtext-lexical/src/features/upload/plugin/index.tsx diff --git a/packages/richtext-lexical/src/field/features/upload/validate.ts b/packages/richtext-lexical/src/features/upload/validate.ts similarity index 100% rename from packages/richtext-lexical/src/field/features/upload/validate.ts rename to packages/richtext-lexical/src/features/upload/validate.ts diff --git a/packages/richtext-lexical/src/field/Field.tsx b/packages/richtext-lexical/src/field/Field.tsx index d0197c792..be407d05a 100644 --- a/packages/richtext-lexical/src/field/Field.tsx +++ b/packages/richtext-lexical/src/field/Field.tsx @@ -13,11 +13,11 @@ import { import React, { useCallback } from 'react' import { ErrorBoundary } from 'react-error-boundary' -import type { SanitizedClientEditorConfig } from './lexical/config/types.js' +import type { SanitizedClientEditorConfig } from '../lexical/config/types.js' +import { LexicalProvider } from '../lexical/LexicalProvider.js' import './bundled.css' import './index.scss' -import { LexicalProvider } from './lexical/LexicalProvider.js' const baseClass = 'rich-text-lexical' diff --git a/packages/richtext-lexical/src/field/index.tsx b/packages/richtext-lexical/src/field/index.tsx index 77a80354f..9396d70b5 100644 --- a/packages/richtext-lexical/src/field/index.tsx +++ b/packages/richtext-lexical/src/field/index.tsx @@ -5,13 +5,13 @@ import type { EditorConfig as LexicalEditorConfig } from 'lexical' import { ShimmerEffect, useClientFunctions, useFieldProps } from '@payloadcms/ui' import React, { Suspense, lazy, useEffect, useState } from 'react' +import type { FeatureProviderClient } from '../features/types.js' +import type { SanitizedClientEditorConfig } from '../lexical/config/types.js' import type { GeneratedFeatureProviderComponent, LexicalFieldAdminProps } from '../types.js' -import type { FeatureProviderClient } from './features/types.js' -import type { SanitizedClientEditorConfig } from './lexical/config/types.js' -import { defaultEditorLexicalConfig } from './lexical/config/client/default.js' -import { loadClientFeatures } from './lexical/config/client/loader.js' -import { sanitizeClientEditorConfig } from './lexical/config/client/sanitize.js' +import { defaultEditorLexicalConfig } from '../lexical/config/client/default.js' +import { loadClientFeatures } from '../lexical/config/client/loader.js' +import { sanitizeClientEditorConfig } from '../lexical/config/client/sanitize.js' const RichTextEditor = lazy(() => import('./Field.js').then((module) => ({ default: module.RichText })), diff --git a/packages/richtext-lexical/src/index.ts b/packages/richtext-lexical/src/index.ts index ceeee0b96..e8bc68cdb 100644 --- a/packages/richtext-lexical/src/index.ts +++ b/packages/richtext-lexical/src/index.ts @@ -17,8 +17,8 @@ import { withNullableJSONSchemaType, } from 'payload' -import type { FeatureProviderServer, ResolvedServerFeatureMap } from './field/features/types.js' -import type { SanitizedServerEditorConfig } from './field/lexical/config/types.js' +import type { FeatureProviderServer, ResolvedServerFeatureMap } from './features/types.js' +import type { SanitizedServerEditorConfig } from './lexical/config/types.js' import type { AdapterProps, LexicalEditorProps, @@ -28,21 +28,18 @@ import type { // eslint-disable-next-line payload/no-imports-from-exports-dir import { RichTextCell, RichTextField } from './exports/client/index.js' -import { - defaultEditorConfig, - defaultEditorFeatures, -} from './field/lexical/config/server/default.js' -import { loadFeatures } from './field/lexical/config/server/loader.js' +import { i18n } from './i18n.js' +import { defaultEditorConfig, defaultEditorFeatures } from './lexical/config/server/default.js' +import { loadFeatures } from './lexical/config/server/loader.js' import { sanitizeServerEditorConfig, sanitizeServerFeatures, -} from './field/lexical/config/server/sanitize.js' -import { cloneDeep } from './field/lexical/utils/cloneDeep.js' -import { getGenerateComponentMap } from './generateComponentMap.js' -import { getGenerateSchemaMap } from './generateSchemaMap.js' -import { i18n } from './i18n.js' +} from './lexical/config/server/sanitize.js' +import { cloneDeep } from './lexical/utils/cloneDeep.js' import { populateLexicalPopulationPromises } from './populateGraphQL/populateLexicalPopulationPromises.js' -import { recurseNodeTree } from './recurseNodeTree.js' +import { getGenerateComponentMap } from './utilities/generateComponentMap.js' +import { getGenerateSchemaMap } from './utilities/generateSchemaMap.js' +import { recurseNodeTree } from './utilities/recurseNodeTree.js' import { richTextValidateHOC } from './validate/index.js' let defaultSanitizedServerEditorConfig: SanitizedServerEditorConfig = null @@ -810,114 +807,108 @@ export function lexicalEditor(props?: LexicalEditorProps): LexicalRichTextAdapte } } -export { AlignFeature } from './field/features/align/feature.server.js' -export { BlockquoteFeature } from './field/features/blockquote/feature.server.js' -export { BlocksFeature, type BlocksFeatureProps } from './field/features/blocks/feature.server.js' +export { AlignFeature } from './features/align/feature.server.js' +export { BlockquoteFeature } from './features/blockquote/feature.server.js' +export { BlocksFeature, type BlocksFeatureProps } from './features/blocks/feature.server.js' export { $createBlockNode, $isBlockNode, type BlockFields, BlockNode, type SerializedBlockNode, -} from './field/features/blocks/nodes/BlocksNode.js' +} from './features/blocks/nodes/BlocksNode.js' -export { LinebreakHTMLConverter } from './field/features/converters/html/converter/converters/linebreak.js' -export { ParagraphHTMLConverter } from './field/features/converters/html/converter/converters/paragraph.js' -export { TextHTMLConverter } from './field/features/converters/html/converter/converters/text.js' +export { LinebreakHTMLConverter } from './features/converters/html/converter/converters/linebreak.js' +export { ParagraphHTMLConverter } from './features/converters/html/converter/converters/paragraph.js' +export { TextHTMLConverter } from './features/converters/html/converter/converters/text.js' -export { defaultHTMLConverters } from './field/features/converters/html/converter/defaultConverters.js' +export { defaultHTMLConverters } from './features/converters/html/converter/defaultConverters.js' export { convertLexicalNodesToHTML, convertLexicalToHTML, -} from './field/features/converters/html/converter/index.js' -export type { HTMLConverter } from './field/features/converters/html/converter/types.js' +} from './features/converters/html/converter/index.js' +export type { HTMLConverter } from './features/converters/html/converter/types.js' export { HTMLConverterFeature, type HTMLConverterFeatureProps, -} from './field/features/converters/html/feature.server.js' -export { - consolidateHTMLConverters, - lexicalHTML, -} from './field/features/converters/html/field/index.js' -export { TestRecorderFeature } from './field/features/debug/testRecorder/feature.server.js' -export { TreeViewFeature } from './field/features/debug/treeView/feature.server.js' -export { BoldFeature } from './field/features/format/bold/feature.server.js' -export { InlineCodeFeature } from './field/features/format/inlineCode/feature.server.js' +} from './features/converters/html/feature.server.js' +export { consolidateHTMLConverters, lexicalHTML } from './features/converters/html/field/index.js' +export { TestRecorderFeature } from './features/debug/testRecorder/feature.server.js' +export { TreeViewFeature } from './features/debug/treeView/feature.server.js' +export { BoldFeature } from './features/format/bold/feature.server.js' +export { InlineCodeFeature } from './features/format/inlineCode/feature.server.js' -export { ItalicFeature } from './field/features/format/italic/feature.server.js' -export { StrikethroughFeature } from './field/features/format/strikethrough/feature.server.js' -export { SubscriptFeature } from './field/features/format/subscript/feature.server.js' -export { SuperscriptFeature } from './field/features/format/superscript/feature.server.js' -export { UnderlineFeature } from './field/features/format/underline/feature.server.js' -export { - HeadingFeature, - type HeadingFeatureProps, -} from './field/features/heading/feature.server.js' -export { HorizontalRuleFeature } from './field/features/horizontalRule/feature.server.js' +export { ItalicFeature } from './features/format/italic/feature.server.js' +export { StrikethroughFeature } from './features/format/strikethrough/feature.server.js' +export { SubscriptFeature } from './features/format/subscript/feature.server.js' +export { SuperscriptFeature } from './features/format/superscript/feature.server.js' +export { UnderlineFeature } from './features/format/underline/feature.server.js' +export { HeadingFeature, type HeadingFeatureProps } from './features/heading/feature.server.js' +export { HorizontalRuleFeature } from './features/horizontalRule/feature.server.js' -export { IndentFeature } from './field/features/indent/feature.server.js' -export { LinkFeature, type LinkFeatureServerProps } from './field/features/link/feature.server.js' +export { IndentFeature } from './features/indent/feature.server.js' +export { LinkFeature, type LinkFeatureServerProps } from './features/link/feature.server.js' export { $createAutoLinkNode, $isAutoLinkNode, AutoLinkNode, -} from './field/features/link/nodes/AutoLinkNode.js' +} from './features/link/nodes/AutoLinkNode.js' export { $createLinkNode, $isLinkNode, LinkNode, TOGGLE_LINK_COMMAND, -} from './field/features/link/nodes/LinkNode.js' +} from './features/link/nodes/LinkNode.js' export type { LinkFields, SerializedAutoLinkNode, SerializedLinkNode, -} from './field/features/link/nodes/types.js' -export { ChecklistFeature } from './field/features/lists/checklist/feature.server.js' -export { OrderedListFeature } from './field/features/lists/orderedList/feature.server.js' -export { UnorderedListFeature } from './field/features/lists/unorderedList/feature.server.js' -export { LexicalPluginToLexicalFeature } from './field/features/migrations/lexicalPluginToLexical/feature.server.js' -export { SlateBlockquoteConverter } from './field/features/migrations/slateToLexical/converter/converters/blockquote/index.js' -export { SlateHeadingConverter } from './field/features/migrations/slateToLexical/converter/converters/heading/index.js' -export { SlateIndentConverter } from './field/features/migrations/slateToLexical/converter/converters/indent/index.js' -export { SlateLinkConverter } from './field/features/migrations/slateToLexical/converter/converters/link/index.js' -export { SlateListItemConverter } from './field/features/migrations/slateToLexical/converter/converters/listItem/index.js' -export { SlateOrderedListConverter } from './field/features/migrations/slateToLexical/converter/converters/orderedList/index.js' -export { SlateRelationshipConverter } from './field/features/migrations/slateToLexical/converter/converters/relationship/index.js' -export { SlateUnknownConverter } from './field/features/migrations/slateToLexical/converter/converters/unknown/index.js' -export { SlateUnorderedListConverter } from './field/features/migrations/slateToLexical/converter/converters/unorderedList/index.js' -export { SlateUploadConverter } from './field/features/migrations/slateToLexical/converter/converters/upload/index.js' -export { defaultSlateConverters } from './field/features/migrations/slateToLexical/converter/defaultConverters.js' +} from './features/link/nodes/types.js' +export { ChecklistFeature } from './features/lists/checklist/feature.server.js' +export { OrderedListFeature } from './features/lists/orderedList/feature.server.js' +export { UnorderedListFeature } from './features/lists/unorderedList/feature.server.js' +export { LexicalPluginToLexicalFeature } from './features/migrations/lexicalPluginToLexical/feature.server.js' +export { SlateBlockquoteConverter } from './features/migrations/slateToLexical/converter/converters/blockquote/index.js' +export { SlateHeadingConverter } from './features/migrations/slateToLexical/converter/converters/heading/index.js' +export { SlateIndentConverter } from './features/migrations/slateToLexical/converter/converters/indent/index.js' +export { SlateLinkConverter } from './features/migrations/slateToLexical/converter/converters/link/index.js' +export { SlateListItemConverter } from './features/migrations/slateToLexical/converter/converters/listItem/index.js' +export { SlateOrderedListConverter } from './features/migrations/slateToLexical/converter/converters/orderedList/index.js' +export { SlateRelationshipConverter } from './features/migrations/slateToLexical/converter/converters/relationship/index.js' +export { SlateUnknownConverter } from './features/migrations/slateToLexical/converter/converters/unknown/index.js' +export { SlateUnorderedListConverter } from './features/migrations/slateToLexical/converter/converters/unorderedList/index.js' +export { SlateUploadConverter } from './features/migrations/slateToLexical/converter/converters/upload/index.js' +export { defaultSlateConverters } from './features/migrations/slateToLexical/converter/defaultConverters.js' export { convertSlateNodesToLexical, convertSlateToLexical, -} from './field/features/migrations/slateToLexical/converter/index.js' +} from './features/migrations/slateToLexical/converter/index.js' export type { SlateNode, SlateNodeConverter, -} from './field/features/migrations/slateToLexical/converter/types.js' -export { SlateToLexicalFeature } from './field/features/migrations/slateToLexical/feature.server.js' +} from './features/migrations/slateToLexical/converter/types.js' +export { SlateToLexicalFeature } from './features/migrations/slateToLexical/feature.server.js' -export { ParagraphFeature } from './field/features/paragraph/feature.server.js' +export { ParagraphFeature } from './features/paragraph/feature.server.js' export { RelationshipFeature, type RelationshipFeatureProps, -} from './field/features/relationship/feature.server.js' +} from './features/relationship/feature.server.js' export { $createRelationshipNode, $isRelationshipNode, type RelationshipData, RelationshipNode, type SerializedRelationshipNode, -} from './field/features/relationship/nodes/RelationshipNode.js' +} from './features/relationship/nodes/RelationshipNode.js' -export { FixedToolbarFeature } from './field/features/toolbars/fixed/feature.server.js' -export { InlineToolbarFeature } from './field/features/toolbars/inline/feature.server.js' +export { FixedToolbarFeature } from './features/toolbars/fixed/feature.server.js' +export { InlineToolbarFeature } from './features/toolbars/inline/feature.server.js' -export type { ToolbarGroup, ToolbarGroupItem } from './field/features/toolbars/types.js' -export { createNode } from './field/features/typeUtilities.js' +export type { ToolbarGroup, ToolbarGroupItem } from './features/toolbars/types.js' +export { createNode } from './features/typeUtilities.js' export type { AfterChangeNodeHook, AfterChangeNodeHookArgs, @@ -949,48 +940,45 @@ export type { SanitizedServerFeatures, ServerFeature, ServerFeatureProviderMap, -} from './field/features/types.js' +} from './features/types.js' -export { UploadFeature } from './field/features/upload/feature.server.js' +export { UploadFeature } from './features/upload/feature.server.js' -export type { UploadFeatureProps } from './field/features/upload/feature.server.js' +export type { UploadFeatureProps } from './features/upload/feature.server.js' export { $createUploadNode, $isUploadNode, type SerializedUploadNode, type UploadData, UploadNode, -} from './field/features/upload/nodes/UploadNode.js' +} from './features/upload/nodes/UploadNode.js' export { defaultEditorConfig, defaultEditorFeatures, defaultEditorLexicalConfig, -} from './field/lexical/config/server/default.js' -export { - loadFeatures, - sortFeaturesForOptimalLoading, -} from './field/lexical/config/server/loader.js' +} from './lexical/config/server/default.js' +export { loadFeatures, sortFeaturesForOptimalLoading } from './lexical/config/server/loader.js' export { sanitizeServerEditorConfig, sanitizeServerFeatures, -} from './field/lexical/config/server/sanitize.js' +} from './lexical/config/server/sanitize.js' export type { ClientEditorConfig, SanitizedClientEditorConfig, SanitizedServerEditorConfig, ServerEditorConfig, -} from './field/lexical/config/types.js' +} from './lexical/config/types.js' -export { getEnabledNodes } from './field/lexical/nodes/index.js' -export { ENABLE_SLASH_MENU_COMMAND } from './field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.js' +export { getEnabledNodes } from './lexical/nodes/index.js' +export { ENABLE_SLASH_MENU_COMMAND } from './lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.js' export type { AdapterProps } export type { SlashMenuGroup, SlashMenuItem, -} from './field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.js' +} from './lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.js' export { DETAIL_TYPE_TO_DETAIL, @@ -1005,9 +993,9 @@ export { TEXT_MODE_TO_TYPE, TEXT_TYPE_TO_FORMAT, TEXT_TYPE_TO_MODE, -} from './field/lexical/utils/nodeFormat.js' +} from './lexical/utils/nodeFormat.js' -export { sanitizeUrl, validateUrl } from './field/lexical/utils/url.js' +export { sanitizeUrl, validateUrl } from './lexical/utils/url.js' export { defaultRichTextValue } from './populateGraphQL/defaultValue.js' export type { LexicalEditorProps, LexicalRichTextAdapter } from './types.js' diff --git a/packages/richtext-lexical/src/field/lexical/EditorPlugin.tsx b/packages/richtext-lexical/src/lexical/EditorPlugin.tsx similarity index 90% rename from packages/richtext-lexical/src/field/lexical/EditorPlugin.tsx rename to packages/richtext-lexical/src/lexical/EditorPlugin.tsx index b84b9daaa..3c4dbc0ad 100644 --- a/packages/richtext-lexical/src/field/lexical/EditorPlugin.tsx +++ b/packages/richtext-lexical/src/lexical/EditorPlugin.tsx @@ -1,10 +1,10 @@ -import * as React from 'react' +import React from 'react' import type { SanitizedPlugin } from '../features/types.js' export const EditorPlugin: React.FC<{ anchorElem?: HTMLDivElement - clientProps: any + clientProps: unknown plugin: SanitizedPlugin }> = ({ anchorElem, clientProps, plugin }) => { if (plugin.position === 'floatingAnchorElem') { diff --git a/packages/richtext-lexical/src/field/lexical/LexicalEditor.scss b/packages/richtext-lexical/src/lexical/LexicalEditor.scss similarity index 96% rename from packages/richtext-lexical/src/field/lexical/LexicalEditor.scss rename to packages/richtext-lexical/src/lexical/LexicalEditor.scss index 8823c51b2..963632e27 100644 --- a/packages/richtext-lexical/src/field/lexical/LexicalEditor.scss +++ b/packages/richtext-lexical/src/lexical/LexicalEditor.scss @@ -1,4 +1,4 @@ -@import '../../scss/styles'; +@import '../scss/styles'; .rich-text-lexical { .editor { diff --git a/packages/richtext-lexical/src/field/lexical/LexicalEditor.tsx b/packages/richtext-lexical/src/lexical/LexicalEditor.tsx similarity index 100% rename from packages/richtext-lexical/src/field/lexical/LexicalEditor.tsx rename to packages/richtext-lexical/src/lexical/LexicalEditor.tsx diff --git a/packages/richtext-lexical/src/field/lexical/LexicalProvider.tsx b/packages/richtext-lexical/src/lexical/LexicalProvider.tsx similarity index 100% rename from packages/richtext-lexical/src/field/lexical/LexicalProvider.tsx rename to packages/richtext-lexical/src/lexical/LexicalProvider.tsx diff --git a/packages/richtext-lexical/src/field/lexical/config/client/EditorConfigProvider.tsx b/packages/richtext-lexical/src/lexical/config/client/EditorConfigProvider.tsx similarity index 100% rename from packages/richtext-lexical/src/field/lexical/config/client/EditorConfigProvider.tsx rename to packages/richtext-lexical/src/lexical/config/client/EditorConfigProvider.tsx diff --git a/packages/richtext-lexical/src/field/lexical/config/client/default.ts b/packages/richtext-lexical/src/lexical/config/client/default.ts similarity index 100% rename from packages/richtext-lexical/src/field/lexical/config/client/default.ts rename to packages/richtext-lexical/src/lexical/config/client/default.ts diff --git a/packages/richtext-lexical/src/field/lexical/config/client/loader.ts b/packages/richtext-lexical/src/lexical/config/client/loader.ts similarity index 100% rename from packages/richtext-lexical/src/field/lexical/config/client/loader.ts rename to packages/richtext-lexical/src/lexical/config/client/loader.ts diff --git a/packages/richtext-lexical/src/field/lexical/config/client/sanitize.ts b/packages/richtext-lexical/src/lexical/config/client/sanitize.ts similarity index 98% rename from packages/richtext-lexical/src/field/lexical/config/client/sanitize.ts rename to packages/richtext-lexical/src/lexical/config/client/sanitize.ts index 2ccc01f5d..ca02a0f08 100644 --- a/packages/richtext-lexical/src/field/lexical/config/client/sanitize.ts +++ b/packages/richtext-lexical/src/lexical/config/client/sanitize.ts @@ -2,8 +2,8 @@ import type { EditorConfig as LexicalEditorConfig } from 'lexical' -import type { LexicalFieldAdminProps } from '../../../../types.js' import type { ResolvedClientFeatureMap, SanitizedClientFeatures } from '../../../features/types.js' +import type { LexicalFieldAdminProps } from '../../../types.js' import type { SanitizedClientEditorConfig } from '../types.js' export const sanitizeClientFeatures = ( diff --git a/packages/richtext-lexical/src/field/lexical/config/server/default.ts b/packages/richtext-lexical/src/lexical/config/server/default.ts similarity index 100% rename from packages/richtext-lexical/src/field/lexical/config/server/default.ts rename to packages/richtext-lexical/src/lexical/config/server/default.ts diff --git a/packages/richtext-lexical/src/field/lexical/config/server/loader.ts b/packages/richtext-lexical/src/lexical/config/server/loader.ts similarity index 100% rename from packages/richtext-lexical/src/field/lexical/config/server/loader.ts rename to packages/richtext-lexical/src/lexical/config/server/loader.ts diff --git a/packages/richtext-lexical/src/field/lexical/config/server/sanitize.ts b/packages/richtext-lexical/src/lexical/config/server/sanitize.ts similarity index 100% rename from packages/richtext-lexical/src/field/lexical/config/server/sanitize.ts rename to packages/richtext-lexical/src/lexical/config/server/sanitize.ts diff --git a/packages/richtext-lexical/src/field/lexical/config/types.ts b/packages/richtext-lexical/src/lexical/config/types.ts similarity index 93% rename from packages/richtext-lexical/src/field/lexical/config/types.ts rename to packages/richtext-lexical/src/lexical/config/types.ts index ddcb1598a..090a23a14 100644 --- a/packages/richtext-lexical/src/field/lexical/config/types.ts +++ b/packages/richtext-lexical/src/lexical/config/types.ts @@ -1,6 +1,5 @@ import type { EditorConfig as LexicalEditorConfig } from 'lexical' -import type { LexicalFieldAdminProps } from '../../../types.js' import type { FeatureProviderClient, FeatureProviderServer, @@ -9,6 +8,7 @@ import type { SanitizedClientFeatures, SanitizedServerFeatures, } from '../../features/types.js' +import type { LexicalFieldAdminProps } from '../../types.js' export type ServerEditorConfig = { features: FeatureProviderServer[] diff --git a/packages/richtext-lexical/src/field/lexical/nodes/index.ts b/packages/richtext-lexical/src/lexical/nodes/index.ts similarity index 100% rename from packages/richtext-lexical/src/field/lexical/nodes/index.ts rename to packages/richtext-lexical/src/lexical/nodes/index.ts diff --git a/packages/richtext-lexical/src/field/lexical/plugins/MarkdownShortcut/index.tsx b/packages/richtext-lexical/src/lexical/plugins/MarkdownShortcut/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/lexical/plugins/MarkdownShortcut/index.tsx rename to packages/richtext-lexical/src/lexical/plugins/MarkdownShortcut/index.tsx diff --git a/packages/richtext-lexical/src/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.tsx b/packages/richtext-lexical/src/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.tsx similarity index 100% rename from packages/richtext-lexical/src/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.tsx rename to packages/richtext-lexical/src/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.tsx diff --git a/packages/richtext-lexical/src/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.tsx b/packages/richtext-lexical/src/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.tsx rename to packages/richtext-lexical/src/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.tsx diff --git a/packages/richtext-lexical/src/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.ts b/packages/richtext-lexical/src/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.ts similarity index 100% rename from packages/richtext-lexical/src/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.ts rename to packages/richtext-lexical/src/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.ts diff --git a/packages/richtext-lexical/src/field/lexical/plugins/SlashMenu/index.scss b/packages/richtext-lexical/src/lexical/plugins/SlashMenu/index.scss similarity index 96% rename from packages/richtext-lexical/src/field/lexical/plugins/SlashMenu/index.scss rename to packages/richtext-lexical/src/lexical/plugins/SlashMenu/index.scss index bde83c85f..2f5d8c60c 100644 --- a/packages/richtext-lexical/src/field/lexical/plugins/SlashMenu/index.scss +++ b/packages/richtext-lexical/src/lexical/plugins/SlashMenu/index.scss @@ -1,4 +1,4 @@ -@import '../../../../scss/styles.scss'; +@import '../../../scss/styles.scss'; html[data-theme='light'] { .slash-menu-popup { diff --git a/packages/richtext-lexical/src/field/lexical/plugins/SlashMenu/index.tsx b/packages/richtext-lexical/src/lexical/plugins/SlashMenu/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/lexical/plugins/SlashMenu/index.tsx rename to packages/richtext-lexical/src/lexical/plugins/SlashMenu/index.tsx diff --git a/packages/richtext-lexical/src/field/lexical/plugins/SlashMenu/useMenuTriggerMatch.ts b/packages/richtext-lexical/src/lexical/plugins/SlashMenu/useMenuTriggerMatch.ts similarity index 100% rename from packages/richtext-lexical/src/field/lexical/plugins/SlashMenu/useMenuTriggerMatch.ts rename to packages/richtext-lexical/src/lexical/plugins/SlashMenu/useMenuTriggerMatch.ts diff --git a/packages/richtext-lexical/src/field/lexical/plugins/handles/AddBlockHandlePlugin/index.scss b/packages/richtext-lexical/src/lexical/plugins/handles/AddBlockHandlePlugin/index.scss similarity index 100% rename from packages/richtext-lexical/src/field/lexical/plugins/handles/AddBlockHandlePlugin/index.scss rename to packages/richtext-lexical/src/lexical/plugins/handles/AddBlockHandlePlugin/index.scss diff --git a/packages/richtext-lexical/src/field/lexical/plugins/handles/AddBlockHandlePlugin/index.tsx b/packages/richtext-lexical/src/lexical/plugins/handles/AddBlockHandlePlugin/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/lexical/plugins/handles/AddBlockHandlePlugin/index.tsx rename to packages/richtext-lexical/src/lexical/plugins/handles/AddBlockHandlePlugin/index.tsx diff --git a/packages/richtext-lexical/src/field/lexical/plugins/handles/DraggableBlockPlugin/debounce.ts b/packages/richtext-lexical/src/lexical/plugins/handles/DraggableBlockPlugin/debounce.ts similarity index 100% rename from packages/richtext-lexical/src/field/lexical/plugins/handles/DraggableBlockPlugin/debounce.ts rename to packages/richtext-lexical/src/lexical/plugins/handles/DraggableBlockPlugin/debounce.ts diff --git a/packages/richtext-lexical/src/field/lexical/plugins/handles/DraggableBlockPlugin/getBoundingRectWithoutTransform.ts b/packages/richtext-lexical/src/lexical/plugins/handles/DraggableBlockPlugin/getBoundingRectWithoutTransform.ts similarity index 100% rename from packages/richtext-lexical/src/field/lexical/plugins/handles/DraggableBlockPlugin/getBoundingRectWithoutTransform.ts rename to packages/richtext-lexical/src/lexical/plugins/handles/DraggableBlockPlugin/getBoundingRectWithoutTransform.ts diff --git a/packages/richtext-lexical/src/field/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.ts b/packages/richtext-lexical/src/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.ts similarity index 100% rename from packages/richtext-lexical/src/field/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.ts rename to packages/richtext-lexical/src/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.ts diff --git a/packages/richtext-lexical/src/field/lexical/plugins/handles/DraggableBlockPlugin/index.scss b/packages/richtext-lexical/src/lexical/plugins/handles/DraggableBlockPlugin/index.scss similarity index 97% rename from packages/richtext-lexical/src/field/lexical/plugins/handles/DraggableBlockPlugin/index.scss rename to packages/richtext-lexical/src/lexical/plugins/handles/DraggableBlockPlugin/index.scss index c952c055e..de6595732 100644 --- a/packages/richtext-lexical/src/field/lexical/plugins/handles/DraggableBlockPlugin/index.scss +++ b/packages/richtext-lexical/src/lexical/plugins/handles/DraggableBlockPlugin/index.scss @@ -1,4 +1,4 @@ -@import '../../../../../scss/styles.scss'; +@import '../../../../scss/styles.scss'; .draggable-block-menu { border-radius: 4px; diff --git a/packages/richtext-lexical/src/field/lexical/plugins/handles/DraggableBlockPlugin/index.tsx b/packages/richtext-lexical/src/lexical/plugins/handles/DraggableBlockPlugin/index.tsx similarity index 99% rename from packages/richtext-lexical/src/field/lexical/plugins/handles/DraggableBlockPlugin/index.tsx rename to packages/richtext-lexical/src/lexical/plugins/handles/DraggableBlockPlugin/index.tsx index 52eb7116f..b0069a216 100644 --- a/packages/richtext-lexical/src/field/lexical/plugins/handles/DraggableBlockPlugin/index.tsx +++ b/packages/richtext-lexical/src/lexical/plugins/handles/DraggableBlockPlugin/index.tsx @@ -1,6 +1,6 @@ 'use client' import type { LexicalEditor } from 'lexical' -import type { JSX, DragEvent as ReactDragEvent } from 'react' +import type { DragEvent as ReactDragEvent } from 'react' import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext.js' import { eventFiles } from '@lexical/rich-text' diff --git a/packages/richtext-lexical/src/field/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.ts b/packages/richtext-lexical/src/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.ts similarity index 100% rename from packages/richtext-lexical/src/field/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.ts rename to packages/richtext-lexical/src/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.ts diff --git a/packages/richtext-lexical/src/field/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.ts b/packages/richtext-lexical/src/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.ts similarity index 100% rename from packages/richtext-lexical/src/field/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.ts rename to packages/richtext-lexical/src/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.ts diff --git a/packages/richtext-lexical/src/field/lexical/plugins/handles/utils/doesLineHeightAffectElement.ts b/packages/richtext-lexical/src/lexical/plugins/handles/utils/doesLineHeightAffectElement.ts similarity index 100% rename from packages/richtext-lexical/src/field/lexical/plugins/handles/utils/doesLineHeightAffectElement.ts rename to packages/richtext-lexical/src/lexical/plugins/handles/utils/doesLineHeightAffectElement.ts diff --git a/packages/richtext-lexical/src/field/lexical/plugins/handles/utils/getCollapsedMargins.ts b/packages/richtext-lexical/src/lexical/plugins/handles/utils/getCollapsedMargins.ts similarity index 100% rename from packages/richtext-lexical/src/field/lexical/plugins/handles/utils/getCollapsedMargins.ts rename to packages/richtext-lexical/src/lexical/plugins/handles/utils/getCollapsedMargins.ts diff --git a/packages/richtext-lexical/src/field/lexical/plugins/handles/utils/getNodeCloseToPoint.ts b/packages/richtext-lexical/src/lexical/plugins/handles/utils/getNodeCloseToPoint.ts similarity index 100% rename from packages/richtext-lexical/src/field/lexical/plugins/handles/utils/getNodeCloseToPoint.ts rename to packages/richtext-lexical/src/lexical/plugins/handles/utils/getNodeCloseToPoint.ts diff --git a/packages/richtext-lexical/src/field/lexical/plugins/handles/utils/getTopLevelNodeKeys.ts b/packages/richtext-lexical/src/lexical/plugins/handles/utils/getTopLevelNodeKeys.ts similarity index 100% rename from packages/richtext-lexical/src/field/lexical/plugins/handles/utils/getTopLevelNodeKeys.ts rename to packages/richtext-lexical/src/lexical/plugins/handles/utils/getTopLevelNodeKeys.ts diff --git a/packages/richtext-lexical/src/field/lexical/plugins/handles/utils/isOnHandleElement.ts b/packages/richtext-lexical/src/lexical/plugins/handles/utils/isOnHandleElement.ts similarity index 100% rename from packages/richtext-lexical/src/field/lexical/plugins/handles/utils/isOnHandleElement.ts rename to packages/richtext-lexical/src/lexical/plugins/handles/utils/isOnHandleElement.ts diff --git a/packages/richtext-lexical/src/field/lexical/plugins/handles/utils/setHandlePosition.ts b/packages/richtext-lexical/src/lexical/plugins/handles/utils/setHandlePosition.ts similarity index 100% rename from packages/richtext-lexical/src/field/lexical/plugins/handles/utils/setHandlePosition.ts rename to packages/richtext-lexical/src/lexical/plugins/handles/utils/setHandlePosition.ts diff --git a/packages/richtext-lexical/src/field/lexical/theme/EditorTheme.scss b/packages/richtext-lexical/src/lexical/theme/EditorTheme.scss similarity index 100% rename from packages/richtext-lexical/src/field/lexical/theme/EditorTheme.scss rename to packages/richtext-lexical/src/lexical/theme/EditorTheme.scss diff --git a/packages/richtext-lexical/src/field/lexical/theme/EditorTheme.tsx b/packages/richtext-lexical/src/lexical/theme/EditorTheme.tsx similarity index 100% rename from packages/richtext-lexical/src/field/lexical/theme/EditorTheme.tsx rename to packages/richtext-lexical/src/lexical/theme/EditorTheme.tsx diff --git a/packages/richtext-lexical/src/field/lexical/ui/ContentEditable.scss b/packages/richtext-lexical/src/lexical/ui/ContentEditable.scss similarity index 98% rename from packages/richtext-lexical/src/field/lexical/ui/ContentEditable.scss rename to packages/richtext-lexical/src/lexical/ui/ContentEditable.scss index f5fa0d654..bea0e4eb3 100644 --- a/packages/richtext-lexical/src/field/lexical/ui/ContentEditable.scss +++ b/packages/richtext-lexical/src/lexical/ui/ContentEditable.scss @@ -1,4 +1,4 @@ -@import '../../../scss/styles.scss'; +@import '../../scss/styles.scss'; $lexical-contenteditable-top-padding: 8px; $lexical-contenteditable-bottom-padding: 8px; diff --git a/packages/richtext-lexical/src/field/lexical/ui/ContentEditable.tsx b/packages/richtext-lexical/src/lexical/ui/ContentEditable.tsx similarity index 100% rename from packages/richtext-lexical/src/field/lexical/ui/ContentEditable.tsx rename to packages/richtext-lexical/src/lexical/ui/ContentEditable.tsx diff --git a/packages/richtext-lexical/src/field/lexical/ui/icons/AI/index.tsx b/packages/richtext-lexical/src/lexical/ui/icons/AI/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/lexical/ui/icons/AI/index.tsx rename to packages/richtext-lexical/src/lexical/ui/icons/AI/index.tsx diff --git a/packages/richtext-lexical/src/field/lexical/ui/icons/Add/index.svg b/packages/richtext-lexical/src/lexical/ui/icons/Add/index.svg similarity index 100% rename from packages/richtext-lexical/src/field/lexical/ui/icons/Add/index.svg rename to packages/richtext-lexical/src/lexical/ui/icons/Add/index.svg diff --git a/packages/richtext-lexical/src/field/lexical/ui/icons/Add/index.tsx b/packages/richtext-lexical/src/lexical/ui/icons/Add/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/lexical/ui/icons/Add/index.tsx rename to packages/richtext-lexical/src/lexical/ui/icons/Add/index.tsx diff --git a/packages/richtext-lexical/src/field/lexical/ui/icons/Add/light.svg b/packages/richtext-lexical/src/lexical/ui/icons/Add/light.svg similarity index 100% rename from packages/richtext-lexical/src/field/lexical/ui/icons/Add/light.svg rename to packages/richtext-lexical/src/lexical/ui/icons/Add/light.svg diff --git a/packages/richtext-lexical/src/field/lexical/ui/icons/AlignCenter/index.tsx b/packages/richtext-lexical/src/lexical/ui/icons/AlignCenter/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/lexical/ui/icons/AlignCenter/index.tsx rename to packages/richtext-lexical/src/lexical/ui/icons/AlignCenter/index.tsx diff --git a/packages/richtext-lexical/src/field/lexical/ui/icons/AlignJustify/index.tsx b/packages/richtext-lexical/src/lexical/ui/icons/AlignJustify/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/lexical/ui/icons/AlignJustify/index.tsx rename to packages/richtext-lexical/src/lexical/ui/icons/AlignJustify/index.tsx diff --git a/packages/richtext-lexical/src/field/lexical/ui/icons/AlignLeft/index.tsx b/packages/richtext-lexical/src/lexical/ui/icons/AlignLeft/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/lexical/ui/icons/AlignLeft/index.tsx rename to packages/richtext-lexical/src/lexical/ui/icons/AlignLeft/index.tsx diff --git a/packages/richtext-lexical/src/field/lexical/ui/icons/AlignRight/index.tsx b/packages/richtext-lexical/src/lexical/ui/icons/AlignRight/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/lexical/ui/icons/AlignRight/index.tsx rename to packages/richtext-lexical/src/lexical/ui/icons/AlignRight/index.tsx diff --git a/packages/richtext-lexical/src/field/lexical/ui/icons/Block/index.tsx b/packages/richtext-lexical/src/lexical/ui/icons/Block/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/lexical/ui/icons/Block/index.tsx rename to packages/richtext-lexical/src/lexical/ui/icons/Block/index.tsx diff --git a/packages/richtext-lexical/src/field/lexical/ui/icons/Blockquote/index.tsx b/packages/richtext-lexical/src/lexical/ui/icons/Blockquote/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/lexical/ui/icons/Blockquote/index.tsx rename to packages/richtext-lexical/src/lexical/ui/icons/Blockquote/index.tsx diff --git a/packages/richtext-lexical/src/field/lexical/ui/icons/Bold/index.tsx b/packages/richtext-lexical/src/lexical/ui/icons/Bold/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/lexical/ui/icons/Bold/index.tsx rename to packages/richtext-lexical/src/lexical/ui/icons/Bold/index.tsx diff --git a/packages/richtext-lexical/src/field/lexical/ui/icons/Caret/index.svg b/packages/richtext-lexical/src/lexical/ui/icons/Caret/index.svg similarity index 100% rename from packages/richtext-lexical/src/field/lexical/ui/icons/Caret/index.svg rename to packages/richtext-lexical/src/lexical/ui/icons/Caret/index.svg diff --git a/packages/richtext-lexical/src/field/lexical/ui/icons/Checklist/index.tsx b/packages/richtext-lexical/src/lexical/ui/icons/Checklist/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/lexical/ui/icons/Checklist/index.tsx rename to packages/richtext-lexical/src/lexical/ui/icons/Checklist/index.tsx diff --git a/packages/richtext-lexical/src/field/lexical/ui/icons/Code/index.tsx b/packages/richtext-lexical/src/lexical/ui/icons/Code/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/lexical/ui/icons/Code/index.tsx rename to packages/richtext-lexical/src/lexical/ui/icons/Code/index.tsx diff --git a/packages/richtext-lexical/src/field/lexical/ui/icons/CodeBlock/index.tsx b/packages/richtext-lexical/src/lexical/ui/icons/CodeBlock/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/lexical/ui/icons/CodeBlock/index.tsx rename to packages/richtext-lexical/src/lexical/ui/icons/CodeBlock/index.tsx diff --git a/packages/richtext-lexical/src/field/lexical/ui/icons/DraggableBlock/index.svg b/packages/richtext-lexical/src/lexical/ui/icons/DraggableBlock/index.svg similarity index 100% rename from packages/richtext-lexical/src/field/lexical/ui/icons/DraggableBlock/index.svg rename to packages/richtext-lexical/src/lexical/ui/icons/DraggableBlock/index.svg diff --git a/packages/richtext-lexical/src/field/lexical/ui/icons/DraggableBlock/light.svg b/packages/richtext-lexical/src/lexical/ui/icons/DraggableBlock/light.svg similarity index 100% rename from packages/richtext-lexical/src/field/lexical/ui/icons/DraggableBlock/light.svg rename to packages/richtext-lexical/src/lexical/ui/icons/DraggableBlock/light.svg diff --git a/packages/richtext-lexical/src/field/lexical/ui/icons/Edit/index.svg b/packages/richtext-lexical/src/lexical/ui/icons/Edit/index.svg similarity index 100% rename from packages/richtext-lexical/src/field/lexical/ui/icons/Edit/index.svg rename to packages/richtext-lexical/src/lexical/ui/icons/Edit/index.svg diff --git a/packages/richtext-lexical/src/field/lexical/ui/icons/H1/index.tsx b/packages/richtext-lexical/src/lexical/ui/icons/H1/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/lexical/ui/icons/H1/index.tsx rename to packages/richtext-lexical/src/lexical/ui/icons/H1/index.tsx diff --git a/packages/richtext-lexical/src/field/lexical/ui/icons/H2/index.tsx b/packages/richtext-lexical/src/lexical/ui/icons/H2/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/lexical/ui/icons/H2/index.tsx rename to packages/richtext-lexical/src/lexical/ui/icons/H2/index.tsx diff --git a/packages/richtext-lexical/src/field/lexical/ui/icons/H3/index.tsx b/packages/richtext-lexical/src/lexical/ui/icons/H3/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/lexical/ui/icons/H3/index.tsx rename to packages/richtext-lexical/src/lexical/ui/icons/H3/index.tsx diff --git a/packages/richtext-lexical/src/field/lexical/ui/icons/H4/index.tsx b/packages/richtext-lexical/src/lexical/ui/icons/H4/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/lexical/ui/icons/H4/index.tsx rename to packages/richtext-lexical/src/lexical/ui/icons/H4/index.tsx diff --git a/packages/richtext-lexical/src/field/lexical/ui/icons/H5/index.tsx b/packages/richtext-lexical/src/lexical/ui/icons/H5/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/lexical/ui/icons/H5/index.tsx rename to packages/richtext-lexical/src/lexical/ui/icons/H5/index.tsx diff --git a/packages/richtext-lexical/src/field/lexical/ui/icons/H6/index.tsx b/packages/richtext-lexical/src/lexical/ui/icons/H6/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/lexical/ui/icons/H6/index.tsx rename to packages/richtext-lexical/src/lexical/ui/icons/H6/index.tsx diff --git a/packages/richtext-lexical/src/field/lexical/ui/icons/HorizontalRule/index.tsx b/packages/richtext-lexical/src/lexical/ui/icons/HorizontalRule/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/lexical/ui/icons/HorizontalRule/index.tsx rename to packages/richtext-lexical/src/lexical/ui/icons/HorizontalRule/index.tsx diff --git a/packages/richtext-lexical/src/field/lexical/ui/icons/IndentDecrease/index.tsx b/packages/richtext-lexical/src/lexical/ui/icons/IndentDecrease/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/lexical/ui/icons/IndentDecrease/index.tsx rename to packages/richtext-lexical/src/lexical/ui/icons/IndentDecrease/index.tsx diff --git a/packages/richtext-lexical/src/field/lexical/ui/icons/IndentIncrease/index.tsx b/packages/richtext-lexical/src/lexical/ui/icons/IndentIncrease/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/lexical/ui/icons/IndentIncrease/index.tsx rename to packages/richtext-lexical/src/lexical/ui/icons/IndentIncrease/index.tsx diff --git a/packages/richtext-lexical/src/field/lexical/ui/icons/Italic/index.tsx b/packages/richtext-lexical/src/lexical/ui/icons/Italic/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/lexical/ui/icons/Italic/index.tsx rename to packages/richtext-lexical/src/lexical/ui/icons/Italic/index.tsx diff --git a/packages/richtext-lexical/src/field/lexical/ui/icons/Link/index.tsx b/packages/richtext-lexical/src/lexical/ui/icons/Link/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/lexical/ui/icons/Link/index.tsx rename to packages/richtext-lexical/src/lexical/ui/icons/Link/index.tsx diff --git a/packages/richtext-lexical/src/field/lexical/ui/icons/OrderedList/index.tsx b/packages/richtext-lexical/src/lexical/ui/icons/OrderedList/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/lexical/ui/icons/OrderedList/index.tsx rename to packages/richtext-lexical/src/lexical/ui/icons/OrderedList/index.tsx diff --git a/packages/richtext-lexical/src/field/lexical/ui/icons/Relationship/index.tsx b/packages/richtext-lexical/src/lexical/ui/icons/Relationship/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/lexical/ui/icons/Relationship/index.tsx rename to packages/richtext-lexical/src/lexical/ui/icons/Relationship/index.tsx diff --git a/packages/richtext-lexical/src/field/lexical/ui/icons/Remove/index.svg b/packages/richtext-lexical/src/lexical/ui/icons/Remove/index.svg similarity index 100% rename from packages/richtext-lexical/src/field/lexical/ui/icons/Remove/index.svg rename to packages/richtext-lexical/src/lexical/ui/icons/Remove/index.svg diff --git a/packages/richtext-lexical/src/field/lexical/ui/icons/Strikethrough/index.tsx b/packages/richtext-lexical/src/lexical/ui/icons/Strikethrough/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/lexical/ui/icons/Strikethrough/index.tsx rename to packages/richtext-lexical/src/lexical/ui/icons/Strikethrough/index.tsx diff --git a/packages/richtext-lexical/src/field/lexical/ui/icons/Subscript/index.tsx b/packages/richtext-lexical/src/lexical/ui/icons/Subscript/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/lexical/ui/icons/Subscript/index.tsx rename to packages/richtext-lexical/src/lexical/ui/icons/Subscript/index.tsx diff --git a/packages/richtext-lexical/src/field/lexical/ui/icons/Superscript/index.tsx b/packages/richtext-lexical/src/lexical/ui/icons/Superscript/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/lexical/ui/icons/Superscript/index.tsx rename to packages/richtext-lexical/src/lexical/ui/icons/Superscript/index.tsx diff --git a/packages/richtext-lexical/src/field/lexical/ui/icons/Text/index.tsx b/packages/richtext-lexical/src/lexical/ui/icons/Text/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/lexical/ui/icons/Text/index.tsx rename to packages/richtext-lexical/src/lexical/ui/icons/Text/index.tsx diff --git a/packages/richtext-lexical/src/field/lexical/ui/icons/Underline/index.tsx b/packages/richtext-lexical/src/lexical/ui/icons/Underline/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/lexical/ui/icons/Underline/index.tsx rename to packages/richtext-lexical/src/lexical/ui/icons/Underline/index.tsx diff --git a/packages/richtext-lexical/src/field/lexical/ui/icons/UnorderedList/index.tsx b/packages/richtext-lexical/src/lexical/ui/icons/UnorderedList/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/lexical/ui/icons/UnorderedList/index.tsx rename to packages/richtext-lexical/src/lexical/ui/icons/UnorderedList/index.tsx diff --git a/packages/richtext-lexical/src/field/lexical/ui/icons/Upload/index.tsx b/packages/richtext-lexical/src/lexical/ui/icons/Upload/index.tsx similarity index 100% rename from packages/richtext-lexical/src/field/lexical/ui/icons/Upload/index.tsx rename to packages/richtext-lexical/src/lexical/ui/icons/Upload/index.tsx diff --git a/packages/richtext-lexical/src/field/lexical/utils/canUseDOM.ts b/packages/richtext-lexical/src/lexical/utils/canUseDOM.ts similarity index 100% rename from packages/richtext-lexical/src/field/lexical/utils/canUseDOM.ts rename to packages/richtext-lexical/src/lexical/utils/canUseDOM.ts diff --git a/packages/richtext-lexical/src/field/lexical/utils/cloneDeep.ts b/packages/richtext-lexical/src/lexical/utils/cloneDeep.ts similarity index 90% rename from packages/richtext-lexical/src/field/lexical/utils/cloneDeep.ts rename to packages/richtext-lexical/src/lexical/utils/cloneDeep.ts index 27fd76752..b802b13af 100644 --- a/packages/richtext-lexical/src/field/lexical/utils/cloneDeep.ts +++ b/packages/richtext-lexical/src/lexical/utils/cloneDeep.ts @@ -47,7 +47,10 @@ export function cloneDeep(object: T, cache: WeakMap = new WeakMap() cache.set(object, clonedObject) for (const key in object) { - if (object.hasOwnProperty(key) || Object.getOwnPropertySymbols(object).includes(key as any)) { + if ( + Object.prototype.hasOwnProperty.call(object, key) || + Object.getOwnPropertySymbols(object).includes(key as any) + ) { clonedObject[key] = cloneDeep(object[key], cache) } } diff --git a/packages/richtext-lexical/src/field/lexical/utils/environment.ts b/packages/richtext-lexical/src/lexical/utils/environment.ts similarity index 100% rename from packages/richtext-lexical/src/field/lexical/utils/environment.ts rename to packages/richtext-lexical/src/lexical/utils/environment.ts diff --git a/packages/richtext-lexical/src/field/lexical/utils/getDOMRangeRect.ts b/packages/richtext-lexical/src/lexical/utils/getDOMRangeRect.ts similarity index 100% rename from packages/richtext-lexical/src/field/lexical/utils/getDOMRangeRect.ts rename to packages/richtext-lexical/src/lexical/utils/getDOMRangeRect.ts diff --git a/packages/richtext-lexical/src/field/lexical/utils/getSelectedNode.ts b/packages/richtext-lexical/src/lexical/utils/getSelectedNode.ts similarity index 100% rename from packages/richtext-lexical/src/field/lexical/utils/getSelectedNode.ts rename to packages/richtext-lexical/src/lexical/utils/getSelectedNode.ts diff --git a/packages/richtext-lexical/src/field/lexical/utils/guard.ts b/packages/richtext-lexical/src/lexical/utils/guard.ts similarity index 100% rename from packages/richtext-lexical/src/field/lexical/utils/guard.ts rename to packages/richtext-lexical/src/lexical/utils/guard.ts diff --git a/packages/richtext-lexical/src/field/lexical/utils/invariant.ts b/packages/richtext-lexical/src/lexical/utils/invariant.ts similarity index 100% rename from packages/richtext-lexical/src/field/lexical/utils/invariant.ts rename to packages/richtext-lexical/src/lexical/utils/invariant.ts diff --git a/packages/richtext-lexical/src/field/lexical/utils/joinClasses.ts b/packages/richtext-lexical/src/lexical/utils/joinClasses.ts similarity index 100% rename from packages/richtext-lexical/src/field/lexical/utils/joinClasses.ts rename to packages/richtext-lexical/src/lexical/utils/joinClasses.ts diff --git a/packages/richtext-lexical/src/field/lexical/utils/markdown/createBlockNode.ts b/packages/richtext-lexical/src/lexical/utils/markdown/createBlockNode.ts similarity index 100% rename from packages/richtext-lexical/src/field/lexical/utils/markdown/createBlockNode.ts rename to packages/richtext-lexical/src/lexical/utils/markdown/createBlockNode.ts diff --git a/packages/richtext-lexical/src/field/lexical/utils/nodeFormat.ts b/packages/richtext-lexical/src/lexical/utils/nodeFormat.ts similarity index 100% rename from packages/richtext-lexical/src/field/lexical/utils/nodeFormat.ts rename to packages/richtext-lexical/src/lexical/utils/nodeFormat.ts diff --git a/packages/richtext-lexical/src/field/lexical/utils/point.ts b/packages/richtext-lexical/src/lexical/utils/point.ts similarity index 100% rename from packages/richtext-lexical/src/field/lexical/utils/point.ts rename to packages/richtext-lexical/src/lexical/utils/point.ts diff --git a/packages/richtext-lexical/src/field/lexical/utils/rect.ts b/packages/richtext-lexical/src/lexical/utils/rect.ts similarity index 100% rename from packages/richtext-lexical/src/field/lexical/utils/rect.ts rename to packages/richtext-lexical/src/lexical/utils/rect.ts diff --git a/packages/richtext-lexical/src/field/lexical/utils/setFloatingElemPosition.ts b/packages/richtext-lexical/src/lexical/utils/setFloatingElemPosition.ts similarity index 100% rename from packages/richtext-lexical/src/field/lexical/utils/setFloatingElemPosition.ts rename to packages/richtext-lexical/src/lexical/utils/setFloatingElemPosition.ts diff --git a/packages/richtext-lexical/src/field/lexical/utils/setFloatingElemPositionForLinkEditor.ts b/packages/richtext-lexical/src/lexical/utils/setFloatingElemPositionForLinkEditor.ts similarity index 100% rename from packages/richtext-lexical/src/field/lexical/utils/setFloatingElemPositionForLinkEditor.ts rename to packages/richtext-lexical/src/lexical/utils/setFloatingElemPositionForLinkEditor.ts diff --git a/packages/richtext-lexical/src/field/lexical/utils/swipe.ts b/packages/richtext-lexical/src/lexical/utils/swipe.ts similarity index 100% rename from packages/richtext-lexical/src/field/lexical/utils/swipe.ts rename to packages/richtext-lexical/src/lexical/utils/swipe.ts diff --git a/packages/richtext-lexical/src/field/lexical/utils/url.ts b/packages/richtext-lexical/src/lexical/utils/url.ts similarity index 100% rename from packages/richtext-lexical/src/field/lexical/utils/url.ts rename to packages/richtext-lexical/src/lexical/utils/url.ts diff --git a/packages/richtext-lexical/src/populateGraphQL/populateLexicalPopulationPromises.ts b/packages/richtext-lexical/src/populateGraphQL/populateLexicalPopulationPromises.ts index 6f7e281f9..3cf96ad0c 100644 --- a/packages/richtext-lexical/src/populateGraphQL/populateLexicalPopulationPromises.ts +++ b/packages/richtext-lexical/src/populateGraphQL/populateLexicalPopulationPromises.ts @@ -1,10 +1,10 @@ import type { SerializedEditorState } from 'lexical' import type { RichTextAdapter } from 'payload' -import type { PopulationPromise } from '../field/features/types.js' +import type { PopulationPromise } from '../features/types.js' import type { AdapterProps } from '../types.js' -import { recurseNodes } from '../forEachNodeRecursively.js' +import { recurseNodes } from '../utilities/forEachNodeRecursively.js' export type Args = Parameters< RichTextAdapter['graphQLPopulationPromises'] diff --git a/packages/richtext-lexical/src/populateGraphQL/recursivelyPopulateFieldsForGraphQL.ts b/packages/richtext-lexical/src/populateGraphQL/recursivelyPopulateFieldsForGraphQL.ts index 3f8d3c31d..3c581019c 100644 --- a/packages/richtext-lexical/src/populateGraphQL/recursivelyPopulateFieldsForGraphQL.ts +++ b/packages/richtext-lexical/src/populateGraphQL/recursivelyPopulateFieldsForGraphQL.ts @@ -2,7 +2,7 @@ import type { Field, PayloadRequestWithData, RequestContext } from 'payload' import { afterReadTraverseFields } from 'payload' -import type { PopulationPromise } from '../field/features/types.js' +import type { PopulationPromise } from '../features/types.js' type NestedRichTextFieldsArgs = { context: RequestContext diff --git a/packages/richtext-lexical/src/types.ts b/packages/richtext-lexical/src/types.ts index 93657a6c7..ba303c0ed 100644 --- a/packages/richtext-lexical/src/types.ts +++ b/packages/richtext-lexical/src/types.ts @@ -8,8 +8,8 @@ import type { } from 'payload' import type React from 'react' -import type { FeatureProviderServer } from './field/features/types.js' -import type { SanitizedServerEditorConfig } from './field/lexical/config/types.js' +import type { FeatureProviderServer } from './features/types.js' +import type { SanitizedServerEditorConfig } from './lexical/config/types.js' export type LexicalFieldAdminProps = { /** diff --git a/packages/richtext-lexical/src/forEachNodeRecursively.ts b/packages/richtext-lexical/src/utilities/forEachNodeRecursively.ts similarity index 100% rename from packages/richtext-lexical/src/forEachNodeRecursively.ts rename to packages/richtext-lexical/src/utilities/forEachNodeRecursively.ts diff --git a/packages/richtext-lexical/src/generateComponentMap.tsx b/packages/richtext-lexical/src/utilities/generateComponentMap.tsx similarity index 96% rename from packages/richtext-lexical/src/generateComponentMap.tsx rename to packages/richtext-lexical/src/utilities/generateComponentMap.tsx index e1e36fec1..83b708f52 100644 --- a/packages/richtext-lexical/src/generateComponentMap.tsx +++ b/packages/richtext-lexical/src/utilities/generateComponentMap.tsx @@ -3,8 +3,8 @@ import type { RichTextAdapter } from 'payload' import { mapFields } from '@payloadcms/ui/utilities/buildComponentMap' import React from 'react' -import type { ResolvedServerFeatureMap } from './field/features/types.js' -import type { GeneratedFeatureProviderComponent } from './types.js' +import type { ResolvedServerFeatureMap } from '../features/types.js' +import type { GeneratedFeatureProviderComponent } from '../types.js' export const getGenerateComponentMap = (args: { diff --git a/packages/richtext-lexical/src/generateSchemaMap.ts b/packages/richtext-lexical/src/utilities/generateSchemaMap.ts similarity index 92% rename from packages/richtext-lexical/src/generateSchemaMap.ts rename to packages/richtext-lexical/src/utilities/generateSchemaMap.ts index 368e7b097..8ad1a6c16 100644 --- a/packages/richtext-lexical/src/generateSchemaMap.ts +++ b/packages/richtext-lexical/src/utilities/generateSchemaMap.ts @@ -1,6 +1,6 @@ import type { RichTextAdapter } from 'payload' -import type { ResolvedServerFeatureMap } from './field/features/types.js' +import type { ResolvedServerFeatureMap } from '../features/types.js' export const getGenerateSchemaMap = (args: { resolvedFeatureMap: ResolvedServerFeatureMap }): RichTextAdapter['generateSchemaMap'] => diff --git a/packages/richtext-lexical/src/recurseNodeTree.ts b/packages/richtext-lexical/src/utilities/recurseNodeTree.ts similarity index 100% rename from packages/richtext-lexical/src/recurseNodeTree.ts rename to packages/richtext-lexical/src/utilities/recurseNodeTree.ts diff --git a/packages/richtext-lexical/src/useLexicalFeature.tsx b/packages/richtext-lexical/src/utilities/useLexicalFeature.tsx similarity index 91% rename from packages/richtext-lexical/src/useLexicalFeature.tsx rename to packages/richtext-lexical/src/utilities/useLexicalFeature.tsx index 4a76f3a96..cee2da8c0 100644 --- a/packages/richtext-lexical/src/useLexicalFeature.tsx +++ b/packages/richtext-lexical/src/utilities/useLexicalFeature.tsx @@ -2,7 +2,7 @@ import { useAddClientFunction, useFieldProps, useTableCell } from '@payloadcms/ui' -import type { FeatureProviderClient } from './field/features/types.js' +import type { FeatureProviderClient } from '../features/types.js' export const useLexicalFeature = ( featureKey: string, diff --git a/packages/richtext-lexical/src/validate/index.ts b/packages/richtext-lexical/src/validate/index.ts index e14203c9b..c16f222ef 100644 --- a/packages/richtext-lexical/src/validate/index.ts +++ b/packages/richtext-lexical/src/validate/index.ts @@ -1,7 +1,7 @@ import type { SerializedEditorState, SerializedParagraphNode } from 'lexical' import type { RichTextField, Validate } from 'payload' -import type { SanitizedServerEditorConfig } from '../field/lexical/config/types.js' +import type { SanitizedServerEditorConfig } from '../lexical/config/types.js' import { validateNodes } from './validateNodes.js' diff --git a/packages/richtext-lexical/src/validate/validateNodes.ts b/packages/richtext-lexical/src/validate/validateNodes.ts index e3ac54b14..95eb93015 100644 --- a/packages/richtext-lexical/src/validate/validateNodes.ts +++ b/packages/richtext-lexical/src/validate/validateNodes.ts @@ -1,7 +1,7 @@ import type { SerializedEditorState, SerializedLexicalNode } from 'lexical' import type { RichTextField, ValidateOptions } from 'payload' -import type { NodeValidation } from '../field/features/types.js' +import type { NodeValidation } from '../features/types.js' export async function validateNodes({ nodeValidations,