diff --git a/packages/lexical-devtools/tsconfig.json b/packages/lexical-devtools/tsconfig.json index b4fdc912c9a..350081311a6 100644 --- a/packages/lexical-devtools/tsconfig.json +++ b/packages/lexical-devtools/tsconfig.json @@ -1,12 +1,166 @@ { - "extends": ["./.wxt/tsconfig.json", "./tsconfig.paths.json"], + "extends": "./.wxt/tsconfig.json", "lib": ["dom", "dom.iterable"], "include": ["./.wxt/wxt.d.ts", "./**/*", "../../libdefs"], "compilerOptions": { "target": "ES2019", "allowImportingTsExtensions": true, "jsx": "react-jsx", - "allowJs": true + "allowJs": true, + "paths": { + "lexicalOriginal": ["../lexical/src/"], + "lexical": ["../lexical/src/index.ts"], + "@lexical/clipboard": ["../lexical-clipboard/src/index.ts"], + "@lexical/code": ["../lexical-code/src/index.ts"], + "@lexical/devtools-core": ["../lexical-devtools-core/src/index.ts"], + "@lexical/dragon": ["../lexical-dragon/src/index.ts"], + "@lexical/file": ["../lexical-file/src/index.ts"], + "@lexical/hashtag": ["../lexical-hashtag/src/index.ts"], + "@lexical/headless": ["../lexical-headless/src/index.ts"], + "@lexical/history": ["../lexical-history/src/index.ts"], + "@lexical/html": ["../lexical-html/src/index.ts"], + "@lexical/link": ["../lexical-link/src/index.ts"], + "@lexical/list": ["../lexical-list/src/index.ts"], + "@lexical/mark": ["../lexical-mark/src/index.ts"], + "@lexical/markdown": ["../lexical-markdown/src/index.ts"], + "@lexical/offset": ["../lexical-offset/src/index.ts"], + "@lexical/overflow": ["../lexical-overflow/src/index.ts"], + "@lexical/plain-text": ["../lexical-plain-text/src/index.ts"], + "@lexical/react/LexicalAutoEmbedPlugin": [ + "../lexical-react/src/LexicalAutoEmbedPlugin.tsx" + ], + "@lexical/react/LexicalAutoFocusPlugin": [ + "../lexical-react/src/LexicalAutoFocusPlugin.ts" + ], + "@lexical/react/LexicalAutoLinkPlugin": [ + "../lexical-react/src/LexicalAutoLinkPlugin.ts" + ], + "@lexical/react/LexicalBlockWithAlignableContents": [ + "../lexical-react/src/LexicalBlockWithAlignableContents.tsx" + ], + "@lexical/react/LexicalCharacterLimitPlugin": [ + "../lexical-react/src/LexicalCharacterLimitPlugin.tsx" + ], + "@lexical/react/LexicalCheckListPlugin": [ + "../lexical-react/src/LexicalCheckListPlugin.tsx" + ], + "@lexical/react/LexicalClearEditorPlugin": [ + "../lexical-react/src/LexicalClearEditorPlugin.ts" + ], + "@lexical/react/LexicalClickableLinkPlugin": [ + "../lexical-react/src/LexicalClickableLinkPlugin.tsx" + ], + "@lexical/react/LexicalCollaborationContext": [ + "../lexical-react/src/LexicalCollaborationContext.ts" + ], + "@lexical/react/LexicalCollaborationPlugin": [ + "../lexical-react/src/LexicalCollaborationPlugin.ts" + ], + "@lexical/react/LexicalComposer": [ + "../lexical-react/src/LexicalComposer.tsx" + ], + "@lexical/react/LexicalComposerContext": [ + "../lexical-react/src/LexicalComposerContext.ts" + ], + "@lexical/react/LexicalContentEditable": [ + "../lexical-react/src/LexicalContentEditable.tsx" + ], + "@lexical/react/LexicalContextMenuPlugin": [ + "../lexical-react/src/LexicalContextMenuPlugin.tsx" + ], + "@lexical/react/LexicalDecoratorBlockNode": [ + "../lexical-react/src/LexicalDecoratorBlockNode.ts" + ], + "@lexical/react/LexicalEditorRefPlugin": [ + "../lexical-react/src/LexicalEditorRefPlugin.tsx" + ], + "@lexical/react/LexicalErrorBoundary": [ + "../lexical-react/src/LexicalErrorBoundary.tsx" + ], + "@lexical/react/LexicalHashtagPlugin": [ + "../lexical-react/src/LexicalHashtagPlugin.ts" + ], + "@lexical/react/LexicalHistoryPlugin": [ + "../lexical-react/src/LexicalHistoryPlugin.ts" + ], + "@lexical/react/LexicalHorizontalRuleNode": [ + "../lexical-react/src/LexicalHorizontalRuleNode.tsx" + ], + "@lexical/react/LexicalHorizontalRulePlugin": [ + "../lexical-react/src/LexicalHorizontalRulePlugin.ts" + ], + "@lexical/react/LexicalLinkPlugin": [ + "../lexical-react/src/LexicalLinkPlugin.ts" + ], + "@lexical/react/LexicalListPlugin": [ + "../lexical-react/src/LexicalListPlugin.ts" + ], + "@lexical/react/LexicalMarkdownShortcutPlugin": [ + "../lexical-react/src/LexicalMarkdownShortcutPlugin.tsx" + ], + "@lexical/react/LexicalNestedComposer": [ + "../lexical-react/src/LexicalNestedComposer.tsx" + ], + "@lexical/react/LexicalNodeEventPlugin": [ + "../lexical-react/src/LexicalNodeEventPlugin.ts" + ], + "@lexical/react/LexicalNodeMenuPlugin": [ + "../lexical-react/src/LexicalNodeMenuPlugin.tsx" + ], + "@lexical/react/LexicalOnChangePlugin": [ + "../lexical-react/src/LexicalOnChangePlugin.ts" + ], + "@lexical/react/LexicalPlainTextPlugin": [ + "../lexical-react/src/LexicalPlainTextPlugin.tsx" + ], + "@lexical/react/LexicalRichTextPlugin": [ + "../lexical-react/src/LexicalRichTextPlugin.tsx" + ], + "@lexical/react/LexicalTabIndentationPlugin": [ + "../lexical-react/src/LexicalTabIndentationPlugin.tsx" + ], + "@lexical/react/LexicalTableOfContents": [ + "../lexical-react/src/LexicalTableOfContents.tsx" + ], + "@lexical/react/LexicalTablePlugin": [ + "../lexical-react/src/LexicalTablePlugin.ts" + ], + "@lexical/react/LexicalTreeView": [ + "../lexical-react/src/LexicalTreeView.tsx" + ], + "@lexical/react/LexicalTypeaheadMenuPlugin": [ + "../lexical-react/src/LexicalTypeaheadMenuPlugin.tsx" + ], + "@lexical/react/useLexicalEditable": [ + "../lexical-react/src/useLexicalEditable.ts" + ], + "@lexical/react/useLexicalIsTextContentEmpty": [ + "../lexical-react/src/useLexicalIsTextContentEmpty.ts" + ], + "@lexical/react/useLexicalNodeSelection": [ + "../lexical-react/src/useLexicalNodeSelection.ts" + ], + "@lexical/react/useLexicalSubscription": [ + "../lexical-react/src/useLexicalSubscription.tsx" + ], + "@lexical/react/useLexicalTextEntity": [ + "../lexical-react/src/useLexicalTextEntity.ts" + ], + "@lexical/rich-text": ["../lexical-rich-text/src/index.ts"], + "@lexical/selection": ["../lexical-selection/src/index.ts"], + "@lexical/table": ["../lexical-table/src/index.ts"], + "@lexical/text": ["../lexical-text/src/index.ts"], + "@lexical/utils": ["../lexical-utils/src/index.ts"], + "@lexical/yjs": ["../lexical-yjs/src/index.ts"], + "shared/canUseDOM": ["../shared/src/canUseDOM.ts"], + "shared/caretFromPoint": ["../shared/src/caretFromPoint.ts"], + "shared/environment": ["../shared/src/environment.ts"], + "shared/invariant": ["../shared/src/invariant.ts"], + "shared/normalizeClassNames": ["../shared/src/normalizeClassNames.ts"], + "shared/simpleDiffWithCursor": ["../shared/src/simpleDiffWithCursor.ts"], + "shared/useLayoutEffect": ["../shared/src/useLayoutEffect.ts"], + "shared/warnOnlyOnce": ["../shared/src/warnOnlyOnce.ts"] + } }, "exclude": ["../.output", "../../libdefs/*.js"] } diff --git a/packages/lexical-devtools/tsconfig.paths.json b/packages/lexical-devtools/tsconfig.paths.json deleted file mode 100644 index 1882ee8b686..00000000000 --- a/packages/lexical-devtools/tsconfig.paths.json +++ /dev/null @@ -1,158 +0,0 @@ -{ - "compilerOptions": { - "paths": { - "lexicalOriginal": ["../lexical/src/"], - "lexical": ["../lexical/src/index.ts"], - "@lexical/clipboard": ["../lexical-clipboard/src/index.ts"], - "@lexical/code": ["../lexical-code/src/index.ts"], - "@lexical/devtools-core": ["../lexical-devtools-core/src/index.ts"], - "@lexical/dragon": ["../lexical-dragon/src/index.ts"], - "@lexical/file": ["../lexical-file/src/index.ts"], - "@lexical/hashtag": ["../lexical-hashtag/src/index.ts"], - "@lexical/headless": ["../lexical-headless/src/index.ts"], - "@lexical/history": ["../lexical-history/src/index.ts"], - "@lexical/html": ["../lexical-html/src/index.ts"], - "@lexical/link": ["../lexical-link/src/index.ts"], - "@lexical/list": ["../lexical-list/src/index.ts"], - "@lexical/mark": ["../lexical-mark/src/index.ts"], - "@lexical/markdown": ["../lexical-markdown/src/index.ts"], - "@lexical/offset": ["../lexical-offset/src/index.ts"], - "@lexical/overflow": ["../lexical-overflow/src/index.ts"], - "@lexical/plain-text": ["../lexical-plain-text/src/index.ts"], - "@lexical/react/LexicalAutoEmbedPlugin": [ - "../lexical-react/src/LexicalAutoEmbedPlugin.tsx" - ], - "@lexical/react/LexicalAutoFocusPlugin": [ - "../lexical-react/src/LexicalAutoFocusPlugin.ts" - ], - "@lexical/react/LexicalAutoLinkPlugin": [ - "../lexical-react/src/LexicalAutoLinkPlugin.ts" - ], - "@lexical/react/LexicalBlockWithAlignableContents": [ - "../lexical-react/src/LexicalBlockWithAlignableContents.tsx" - ], - "@lexical/react/LexicalCharacterLimitPlugin": [ - "../lexical-react/src/LexicalCharacterLimitPlugin.tsx" - ], - "@lexical/react/LexicalCheckListPlugin": [ - "../lexical-react/src/LexicalCheckListPlugin.tsx" - ], - "@lexical/react/LexicalClearEditorPlugin": [ - "../lexical-react/src/LexicalClearEditorPlugin.ts" - ], - "@lexical/react/LexicalClickableLinkPlugin": [ - "../lexical-react/src/LexicalClickableLinkPlugin.tsx" - ], - "@lexical/react/LexicalCollaborationContext": [ - "../lexical-react/src/LexicalCollaborationContext.ts" - ], - "@lexical/react/LexicalCollaborationPlugin": [ - "../lexical-react/src/LexicalCollaborationPlugin.ts" - ], - "@lexical/react/LexicalComposer": [ - "../lexical-react/src/LexicalComposer.tsx" - ], - "@lexical/react/LexicalComposerContext": [ - "../lexical-react/src/LexicalComposerContext.ts" - ], - "@lexical/react/LexicalContentEditable": [ - "../lexical-react/src/LexicalContentEditable.tsx" - ], - "@lexical/react/LexicalContextMenuPlugin": [ - "../lexical-react/src/LexicalContextMenuPlugin.tsx" - ], - "@lexical/react/LexicalDecoratorBlockNode": [ - "../lexical-react/src/LexicalDecoratorBlockNode.ts" - ], - "@lexical/react/LexicalEditorRefPlugin": [ - "../lexical-react/src/LexicalEditorRefPlugin.tsx" - ], - "@lexical/react/LexicalErrorBoundary": [ - "../lexical-react/src/LexicalErrorBoundary.tsx" - ], - "@lexical/react/LexicalHashtagPlugin": [ - "../lexical-react/src/LexicalHashtagPlugin.ts" - ], - "@lexical/react/LexicalHistoryPlugin": [ - "../lexical-react/src/LexicalHistoryPlugin.ts" - ], - "@lexical/react/LexicalHorizontalRuleNode": [ - "../lexical-react/src/LexicalHorizontalRuleNode.tsx" - ], - "@lexical/react/LexicalHorizontalRulePlugin": [ - "../lexical-react/src/LexicalHorizontalRulePlugin.ts" - ], - "@lexical/react/LexicalLinkPlugin": [ - "../lexical-react/src/LexicalLinkPlugin.ts" - ], - "@lexical/react/LexicalListPlugin": [ - "../lexical-react/src/LexicalListPlugin.ts" - ], - "@lexical/react/LexicalMarkdownShortcutPlugin": [ - "../lexical-react/src/LexicalMarkdownShortcutPlugin.tsx" - ], - "@lexical/react/LexicalNestedComposer": [ - "../lexical-react/src/LexicalNestedComposer.tsx" - ], - "@lexical/react/LexicalNodeEventPlugin": [ - "../lexical-react/src/LexicalNodeEventPlugin.ts" - ], - "@lexical/react/LexicalNodeMenuPlugin": [ - "../lexical-react/src/LexicalNodeMenuPlugin.tsx" - ], - "@lexical/react/LexicalOnChangePlugin": [ - "../lexical-react/src/LexicalOnChangePlugin.ts" - ], - "@lexical/react/LexicalPlainTextPlugin": [ - "../lexical-react/src/LexicalPlainTextPlugin.tsx" - ], - "@lexical/react/LexicalRichTextPlugin": [ - "../lexical-react/src/LexicalRichTextPlugin.tsx" - ], - "@lexical/react/LexicalTabIndentationPlugin": [ - "../lexical-react/src/LexicalTabIndentationPlugin.tsx" - ], - "@lexical/react/LexicalTableOfContents": [ - "../lexical-react/src/LexicalTableOfContents.tsx" - ], - "@lexical/react/LexicalTablePlugin": [ - "../lexical-react/src/LexicalTablePlugin.ts" - ], - "@lexical/react/LexicalTreeView": [ - "../lexical-react/src/LexicalTreeView.tsx" - ], - "@lexical/react/LexicalTypeaheadMenuPlugin": [ - "../lexical-react/src/LexicalTypeaheadMenuPlugin.tsx" - ], - "@lexical/react/useLexicalEditable": [ - "../lexical-react/src/useLexicalEditable.ts" - ], - "@lexical/react/useLexicalIsTextContentEmpty": [ - "../lexical-react/src/useLexicalIsTextContentEmpty.ts" - ], - "@lexical/react/useLexicalNodeSelection": [ - "../lexical-react/src/useLexicalNodeSelection.ts" - ], - "@lexical/react/useLexicalSubscription": [ - "../lexical-react/src/useLexicalSubscription.tsx" - ], - "@lexical/react/useLexicalTextEntity": [ - "../lexical-react/src/useLexicalTextEntity.ts" - ], - "@lexical/rich-text": ["../lexical-rich-text/src/index.ts"], - "@lexical/selection": ["../lexical-selection/src/index.ts"], - "@lexical/table": ["../lexical-table/src/index.ts"], - "@lexical/text": ["../lexical-text/src/index.ts"], - "@lexical/utils": ["../lexical-utils/src/index.ts"], - "@lexical/yjs": ["../lexical-yjs/src/index.ts"], - "shared/canUseDOM": ["../shared/src/canUseDOM.ts"], - "shared/caretFromPoint": ["../shared/src/caretFromPoint.ts"], - "shared/environment": ["../shared/src/environment.ts"], - "shared/invariant": ["../shared/src/invariant.ts"], - "shared/normalizeClassNames": ["../shared/src/normalizeClassNames.ts"], - "shared/simpleDiffWithCursor": ["../shared/src/simpleDiffWithCursor.ts"], - "shared/useLayoutEffect": ["../shared/src/useLayoutEffect.ts"], - "shared/warnOnlyOnce": ["../shared/src/warnOnlyOnce.ts"] - } - } -} diff --git a/scripts/update-tsconfig.js b/scripts/update-tsconfig.js index 53e8299a5cd..64fa49c7c75 100644 --- a/scripts/update-tsconfig.js +++ b/scripts/update-tsconfig.js @@ -32,10 +32,8 @@ async function updateTsconfig({ prettierConfig, test, }) { - const prevTsconfigContents = fs.existsSync(jsonFileName) - ? fs.readFileSync(jsonFileName, 'utf8') - : null; - const tsconfig = prevTsconfigContents ? JSON.parse(prevTsconfigContents) : {}; + const prevTsconfigContents = fs.readFileSync(jsonFileName, 'utf8'); + const tsconfig = JSON.parse(prevTsconfigContents); const publicPaths = []; const privatePaths = []; const testPaths = []; @@ -76,7 +74,6 @@ async function updateTsconfig({ ...privatePaths, ...testPaths, ]); - tsconfig.compilerOptions ||= {}; tsconfig.compilerOptions.paths = paths; // This is async in future versions of prettier const nextTsconfigContents = await prettier.format(JSON.stringify(tsconfig), { @@ -92,19 +89,19 @@ async function updateAllTsconfig() { const prettierConfig = (await prettier.resolveConfig('./')) || {}; await updateTsconfig({ extraPaths: [], - jsonFileName: './tsconfig.test.paths.json', + jsonFileName: './tsconfig.json', prettierConfig, test: true, }); await updateTsconfig({ extraPaths: [], - jsonFileName: './tsconfig.build.paths.json', + jsonFileName: './tsconfig.build.json', prettierConfig, test: false, }); await updateTsconfig({ extraPaths: [['lexicalOriginal', ['../lexical/src/']]], - jsonFileName: './packages/lexical-devtools/tsconfig.paths.json', + jsonFileName: './packages/lexical-devtools/tsconfig.json', prettierConfig, test: false, }); diff --git a/tsconfig.build.json b/tsconfig.build.json index 09a0d54bf20..dc17b674c79 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -4,7 +4,166 @@ "declaration": true, "emitDeclarationOnly": true, "declarationDir": "./.ts-temp", - "strict": true + "strict": true, + "paths": { + "lexical": ["./packages/lexical/src/index.ts"], + "@lexical/clipboard": ["./packages/lexical-clipboard/src/index.ts"], + "@lexical/code": ["./packages/lexical-code/src/index.ts"], + "@lexical/devtools-core": [ + "./packages/lexical-devtools-core/src/index.ts" + ], + "@lexical/dragon": ["./packages/lexical-dragon/src/index.ts"], + "@lexical/file": ["./packages/lexical-file/src/index.ts"], + "@lexical/hashtag": ["./packages/lexical-hashtag/src/index.ts"], + "@lexical/headless": ["./packages/lexical-headless/src/index.ts"], + "@lexical/history": ["./packages/lexical-history/src/index.ts"], + "@lexical/html": ["./packages/lexical-html/src/index.ts"], + "@lexical/link": ["./packages/lexical-link/src/index.ts"], + "@lexical/list": ["./packages/lexical-list/src/index.ts"], + "@lexical/mark": ["./packages/lexical-mark/src/index.ts"], + "@lexical/markdown": ["./packages/lexical-markdown/src/index.ts"], + "@lexical/offset": ["./packages/lexical-offset/src/index.ts"], + "@lexical/overflow": ["./packages/lexical-overflow/src/index.ts"], + "@lexical/plain-text": ["./packages/lexical-plain-text/src/index.ts"], + "@lexical/react/LexicalAutoEmbedPlugin": [ + "./packages/lexical-react/src/LexicalAutoEmbedPlugin.tsx" + ], + "@lexical/react/LexicalAutoFocusPlugin": [ + "./packages/lexical-react/src/LexicalAutoFocusPlugin.ts" + ], + "@lexical/react/LexicalAutoLinkPlugin": [ + "./packages/lexical-react/src/LexicalAutoLinkPlugin.ts" + ], + "@lexical/react/LexicalBlockWithAlignableContents": [ + "./packages/lexical-react/src/LexicalBlockWithAlignableContents.tsx" + ], + "@lexical/react/LexicalCharacterLimitPlugin": [ + "./packages/lexical-react/src/LexicalCharacterLimitPlugin.tsx" + ], + "@lexical/react/LexicalCheckListPlugin": [ + "./packages/lexical-react/src/LexicalCheckListPlugin.tsx" + ], + "@lexical/react/LexicalClearEditorPlugin": [ + "./packages/lexical-react/src/LexicalClearEditorPlugin.ts" + ], + "@lexical/react/LexicalClickableLinkPlugin": [ + "./packages/lexical-react/src/LexicalClickableLinkPlugin.tsx" + ], + "@lexical/react/LexicalCollaborationContext": [ + "./packages/lexical-react/src/LexicalCollaborationContext.ts" + ], + "@lexical/react/LexicalCollaborationPlugin": [ + "./packages/lexical-react/src/LexicalCollaborationPlugin.ts" + ], + "@lexical/react/LexicalComposer": [ + "./packages/lexical-react/src/LexicalComposer.tsx" + ], + "@lexical/react/LexicalComposerContext": [ + "./packages/lexical-react/src/LexicalComposerContext.ts" + ], + "@lexical/react/LexicalContentEditable": [ + "./packages/lexical-react/src/LexicalContentEditable.tsx" + ], + "@lexical/react/LexicalContextMenuPlugin": [ + "./packages/lexical-react/src/LexicalContextMenuPlugin.tsx" + ], + "@lexical/react/LexicalDecoratorBlockNode": [ + "./packages/lexical-react/src/LexicalDecoratorBlockNode.ts" + ], + "@lexical/react/LexicalEditorRefPlugin": [ + "./packages/lexical-react/src/LexicalEditorRefPlugin.tsx" + ], + "@lexical/react/LexicalErrorBoundary": [ + "./packages/lexical-react/src/LexicalErrorBoundary.tsx" + ], + "@lexical/react/LexicalHashtagPlugin": [ + "./packages/lexical-react/src/LexicalHashtagPlugin.ts" + ], + "@lexical/react/LexicalHistoryPlugin": [ + "./packages/lexical-react/src/LexicalHistoryPlugin.ts" + ], + "@lexical/react/LexicalHorizontalRuleNode": [ + "./packages/lexical-react/src/LexicalHorizontalRuleNode.tsx" + ], + "@lexical/react/LexicalHorizontalRulePlugin": [ + "./packages/lexical-react/src/LexicalHorizontalRulePlugin.ts" + ], + "@lexical/react/LexicalLinkPlugin": [ + "./packages/lexical-react/src/LexicalLinkPlugin.ts" + ], + "@lexical/react/LexicalListPlugin": [ + "./packages/lexical-react/src/LexicalListPlugin.ts" + ], + "@lexical/react/LexicalMarkdownShortcutPlugin": [ + "./packages/lexical-react/src/LexicalMarkdownShortcutPlugin.tsx" + ], + "@lexical/react/LexicalNestedComposer": [ + "./packages/lexical-react/src/LexicalNestedComposer.tsx" + ], + "@lexical/react/LexicalNodeEventPlugin": [ + "./packages/lexical-react/src/LexicalNodeEventPlugin.ts" + ], + "@lexical/react/LexicalNodeMenuPlugin": [ + "./packages/lexical-react/src/LexicalNodeMenuPlugin.tsx" + ], + "@lexical/react/LexicalOnChangePlugin": [ + "./packages/lexical-react/src/LexicalOnChangePlugin.ts" + ], + "@lexical/react/LexicalPlainTextPlugin": [ + "./packages/lexical-react/src/LexicalPlainTextPlugin.tsx" + ], + "@lexical/react/LexicalRichTextPlugin": [ + "./packages/lexical-react/src/LexicalRichTextPlugin.tsx" + ], + "@lexical/react/LexicalTabIndentationPlugin": [ + "./packages/lexical-react/src/LexicalTabIndentationPlugin.tsx" + ], + "@lexical/react/LexicalTableOfContents": [ + "./packages/lexical-react/src/LexicalTableOfContents.tsx" + ], + "@lexical/react/LexicalTablePlugin": [ + "./packages/lexical-react/src/LexicalTablePlugin.ts" + ], + "@lexical/react/LexicalTreeView": [ + "./packages/lexical-react/src/LexicalTreeView.tsx" + ], + "@lexical/react/LexicalTypeaheadMenuPlugin": [ + "./packages/lexical-react/src/LexicalTypeaheadMenuPlugin.tsx" + ], + "@lexical/react/useLexicalEditable": [ + "./packages/lexical-react/src/useLexicalEditable.ts" + ], + "@lexical/react/useLexicalIsTextContentEmpty": [ + "./packages/lexical-react/src/useLexicalIsTextContentEmpty.ts" + ], + "@lexical/react/useLexicalNodeSelection": [ + "./packages/lexical-react/src/useLexicalNodeSelection.ts" + ], + "@lexical/react/useLexicalSubscription": [ + "./packages/lexical-react/src/useLexicalSubscription.tsx" + ], + "@lexical/react/useLexicalTextEntity": [ + "./packages/lexical-react/src/useLexicalTextEntity.ts" + ], + "@lexical/rich-text": ["./packages/lexical-rich-text/src/index.ts"], + "@lexical/selection": ["./packages/lexical-selection/src/index.ts"], + "@lexical/table": ["./packages/lexical-table/src/index.ts"], + "@lexical/text": ["./packages/lexical-text/src/index.ts"], + "@lexical/utils": ["./packages/lexical-utils/src/index.ts"], + "@lexical/yjs": ["./packages/lexical-yjs/src/index.ts"], + "shared/canUseDOM": ["./packages/shared/src/canUseDOM.ts"], + "shared/caretFromPoint": ["./packages/shared/src/caretFromPoint.ts"], + "shared/environment": ["./packages/shared/src/environment.ts"], + "shared/invariant": ["./packages/shared/src/invariant.ts"], + "shared/normalizeClassNames": [ + "./packages/shared/src/normalizeClassNames.ts" + ], + "shared/simpleDiffWithCursor": [ + "./packages/shared/src/simpleDiffWithCursor.ts" + ], + "shared/useLayoutEffect": ["./packages/shared/src/useLayoutEffect.ts"], + "shared/warnOnlyOnce": ["./packages/shared/src/warnOnlyOnce.ts"] + } }, "exclude": [ "./libdefs/*.js", @@ -15,5 +174,5 @@ "./packages/lexical-devtools/**", "./packages/lexical-playground/**" ], - "extends": ["./tsconfig.json", "./tsconfig.build.paths.json"] + "extends": "./tsconfig.json" } diff --git a/tsconfig.build.paths.json b/tsconfig.build.paths.json deleted file mode 100644 index 895afeb7fc1..00000000000 --- a/tsconfig.build.paths.json +++ /dev/null @@ -1,163 +0,0 @@ -{ - "compilerOptions": { - "paths": { - "lexical": ["./packages/lexical/src/index.ts"], - "@lexical/clipboard": ["./packages/lexical-clipboard/src/index.ts"], - "@lexical/code": ["./packages/lexical-code/src/index.ts"], - "@lexical/devtools-core": [ - "./packages/lexical-devtools-core/src/index.ts" - ], - "@lexical/dragon": ["./packages/lexical-dragon/src/index.ts"], - "@lexical/file": ["./packages/lexical-file/src/index.ts"], - "@lexical/hashtag": ["./packages/lexical-hashtag/src/index.ts"], - "@lexical/headless": ["./packages/lexical-headless/src/index.ts"], - "@lexical/history": ["./packages/lexical-history/src/index.ts"], - "@lexical/html": ["./packages/lexical-html/src/index.ts"], - "@lexical/link": ["./packages/lexical-link/src/index.ts"], - "@lexical/list": ["./packages/lexical-list/src/index.ts"], - "@lexical/mark": ["./packages/lexical-mark/src/index.ts"], - "@lexical/markdown": ["./packages/lexical-markdown/src/index.ts"], - "@lexical/offset": ["./packages/lexical-offset/src/index.ts"], - "@lexical/overflow": ["./packages/lexical-overflow/src/index.ts"], - "@lexical/plain-text": ["./packages/lexical-plain-text/src/index.ts"], - "@lexical/react/LexicalAutoEmbedPlugin": [ - "./packages/lexical-react/src/LexicalAutoEmbedPlugin.tsx" - ], - "@lexical/react/LexicalAutoFocusPlugin": [ - "./packages/lexical-react/src/LexicalAutoFocusPlugin.ts" - ], - "@lexical/react/LexicalAutoLinkPlugin": [ - "./packages/lexical-react/src/LexicalAutoLinkPlugin.ts" - ], - "@lexical/react/LexicalBlockWithAlignableContents": [ - "./packages/lexical-react/src/LexicalBlockWithAlignableContents.tsx" - ], - "@lexical/react/LexicalCharacterLimitPlugin": [ - "./packages/lexical-react/src/LexicalCharacterLimitPlugin.tsx" - ], - "@lexical/react/LexicalCheckListPlugin": [ - "./packages/lexical-react/src/LexicalCheckListPlugin.tsx" - ], - "@lexical/react/LexicalClearEditorPlugin": [ - "./packages/lexical-react/src/LexicalClearEditorPlugin.ts" - ], - "@lexical/react/LexicalClickableLinkPlugin": [ - "./packages/lexical-react/src/LexicalClickableLinkPlugin.tsx" - ], - "@lexical/react/LexicalCollaborationContext": [ - "./packages/lexical-react/src/LexicalCollaborationContext.ts" - ], - "@lexical/react/LexicalCollaborationPlugin": [ - "./packages/lexical-react/src/LexicalCollaborationPlugin.ts" - ], - "@lexical/react/LexicalComposer": [ - "./packages/lexical-react/src/LexicalComposer.tsx" - ], - "@lexical/react/LexicalComposerContext": [ - "./packages/lexical-react/src/LexicalComposerContext.ts" - ], - "@lexical/react/LexicalContentEditable": [ - "./packages/lexical-react/src/LexicalContentEditable.tsx" - ], - "@lexical/react/LexicalContextMenuPlugin": [ - "./packages/lexical-react/src/LexicalContextMenuPlugin.tsx" - ], - "@lexical/react/LexicalDecoratorBlockNode": [ - "./packages/lexical-react/src/LexicalDecoratorBlockNode.ts" - ], - "@lexical/react/LexicalEditorRefPlugin": [ - "./packages/lexical-react/src/LexicalEditorRefPlugin.tsx" - ], - "@lexical/react/LexicalErrorBoundary": [ - "./packages/lexical-react/src/LexicalErrorBoundary.tsx" - ], - "@lexical/react/LexicalHashtagPlugin": [ - "./packages/lexical-react/src/LexicalHashtagPlugin.ts" - ], - "@lexical/react/LexicalHistoryPlugin": [ - "./packages/lexical-react/src/LexicalHistoryPlugin.ts" - ], - "@lexical/react/LexicalHorizontalRuleNode": [ - "./packages/lexical-react/src/LexicalHorizontalRuleNode.tsx" - ], - "@lexical/react/LexicalHorizontalRulePlugin": [ - "./packages/lexical-react/src/LexicalHorizontalRulePlugin.ts" - ], - "@lexical/react/LexicalLinkPlugin": [ - "./packages/lexical-react/src/LexicalLinkPlugin.ts" - ], - "@lexical/react/LexicalListPlugin": [ - "./packages/lexical-react/src/LexicalListPlugin.ts" - ], - "@lexical/react/LexicalMarkdownShortcutPlugin": [ - "./packages/lexical-react/src/LexicalMarkdownShortcutPlugin.tsx" - ], - "@lexical/react/LexicalNestedComposer": [ - "./packages/lexical-react/src/LexicalNestedComposer.tsx" - ], - "@lexical/react/LexicalNodeEventPlugin": [ - "./packages/lexical-react/src/LexicalNodeEventPlugin.ts" - ], - "@lexical/react/LexicalNodeMenuPlugin": [ - "./packages/lexical-react/src/LexicalNodeMenuPlugin.tsx" - ], - "@lexical/react/LexicalOnChangePlugin": [ - "./packages/lexical-react/src/LexicalOnChangePlugin.ts" - ], - "@lexical/react/LexicalPlainTextPlugin": [ - "./packages/lexical-react/src/LexicalPlainTextPlugin.tsx" - ], - "@lexical/react/LexicalRichTextPlugin": [ - "./packages/lexical-react/src/LexicalRichTextPlugin.tsx" - ], - "@lexical/react/LexicalTabIndentationPlugin": [ - "./packages/lexical-react/src/LexicalTabIndentationPlugin.tsx" - ], - "@lexical/react/LexicalTableOfContents": [ - "./packages/lexical-react/src/LexicalTableOfContents.tsx" - ], - "@lexical/react/LexicalTablePlugin": [ - "./packages/lexical-react/src/LexicalTablePlugin.ts" - ], - "@lexical/react/LexicalTreeView": [ - "./packages/lexical-react/src/LexicalTreeView.tsx" - ], - "@lexical/react/LexicalTypeaheadMenuPlugin": [ - "./packages/lexical-react/src/LexicalTypeaheadMenuPlugin.tsx" - ], - "@lexical/react/useLexicalEditable": [ - "./packages/lexical-react/src/useLexicalEditable.ts" - ], - "@lexical/react/useLexicalIsTextContentEmpty": [ - "./packages/lexical-react/src/useLexicalIsTextContentEmpty.ts" - ], - "@lexical/react/useLexicalNodeSelection": [ - "./packages/lexical-react/src/useLexicalNodeSelection.ts" - ], - "@lexical/react/useLexicalSubscription": [ - "./packages/lexical-react/src/useLexicalSubscription.tsx" - ], - "@lexical/react/useLexicalTextEntity": [ - "./packages/lexical-react/src/useLexicalTextEntity.ts" - ], - "@lexical/rich-text": ["./packages/lexical-rich-text/src/index.ts"], - "@lexical/selection": ["./packages/lexical-selection/src/index.ts"], - "@lexical/table": ["./packages/lexical-table/src/index.ts"], - "@lexical/text": ["./packages/lexical-text/src/index.ts"], - "@lexical/utils": ["./packages/lexical-utils/src/index.ts"], - "@lexical/yjs": ["./packages/lexical-yjs/src/index.ts"], - "shared/canUseDOM": ["./packages/shared/src/canUseDOM.ts"], - "shared/caretFromPoint": ["./packages/shared/src/caretFromPoint.ts"], - "shared/environment": ["./packages/shared/src/environment.ts"], - "shared/invariant": ["./packages/shared/src/invariant.ts"], - "shared/normalizeClassNames": [ - "./packages/shared/src/normalizeClassNames.ts" - ], - "shared/simpleDiffWithCursor": [ - "./packages/shared/src/simpleDiffWithCursor.ts" - ], - "shared/useLayoutEffect": ["./packages/shared/src/useLayoutEffect.ts"], - "shared/warnOnlyOnce": ["./packages/shared/src/warnOnlyOnce.ts"] - } - } -} diff --git a/tsconfig.json b/tsconfig.json index 5ab8b7a6fea..ea462543902 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,5 +1,4 @@ { - "extends": ["./tsconfig.test.paths.json"], "compilerOptions": { "target": "ES2019", "lib": ["esnext", "dom", "dom.iterable"], @@ -13,7 +12,197 @@ "typeRoots": ["node_modules/@types", "libdefs/globals"], "skipLibCheck": true, "resolveJsonModule": true, - "allowJs": true + "allowJs": true, + "paths": { + "lexical": ["./packages/lexical/src/index.ts"], + "@lexical/clipboard": ["./packages/lexical-clipboard/src/index.ts"], + "@lexical/code": ["./packages/lexical-code/src/index.ts"], + "@lexical/devtools-core": [ + "./packages/lexical-devtools-core/src/index.ts" + ], + "@lexical/dragon": ["./packages/lexical-dragon/src/index.ts"], + "@lexical/file": ["./packages/lexical-file/src/index.ts"], + "@lexical/hashtag": ["./packages/lexical-hashtag/src/index.ts"], + "@lexical/headless": ["./packages/lexical-headless/src/index.ts"], + "@lexical/history": ["./packages/lexical-history/src/index.ts"], + "@lexical/html": ["./packages/lexical-html/src/index.ts"], + "@lexical/link": ["./packages/lexical-link/src/index.ts"], + "@lexical/list": ["./packages/lexical-list/src/index.ts"], + "@lexical/mark": ["./packages/lexical-mark/src/index.ts"], + "@lexical/markdown": ["./packages/lexical-markdown/src/index.ts"], + "@lexical/offset": ["./packages/lexical-offset/src/index.ts"], + "@lexical/overflow": ["./packages/lexical-overflow/src/index.ts"], + "@lexical/plain-text": ["./packages/lexical-plain-text/src/index.ts"], + "@lexical/react/LexicalAutoEmbedPlugin": [ + "./packages/lexical-react/src/LexicalAutoEmbedPlugin.tsx" + ], + "@lexical/react/LexicalAutoFocusPlugin": [ + "./packages/lexical-react/src/LexicalAutoFocusPlugin.ts" + ], + "@lexical/react/LexicalAutoLinkPlugin": [ + "./packages/lexical-react/src/LexicalAutoLinkPlugin.ts" + ], + "@lexical/react/LexicalBlockWithAlignableContents": [ + "./packages/lexical-react/src/LexicalBlockWithAlignableContents.tsx" + ], + "@lexical/react/LexicalCharacterLimitPlugin": [ + "./packages/lexical-react/src/LexicalCharacterLimitPlugin.tsx" + ], + "@lexical/react/LexicalCheckListPlugin": [ + "./packages/lexical-react/src/LexicalCheckListPlugin.tsx" + ], + "@lexical/react/LexicalClearEditorPlugin": [ + "./packages/lexical-react/src/LexicalClearEditorPlugin.ts" + ], + "@lexical/react/LexicalClickableLinkPlugin": [ + "./packages/lexical-react/src/LexicalClickableLinkPlugin.tsx" + ], + "@lexical/react/LexicalCollaborationContext": [ + "./packages/lexical-react/src/LexicalCollaborationContext.ts" + ], + "@lexical/react/LexicalCollaborationPlugin": [ + "./packages/lexical-react/src/LexicalCollaborationPlugin.ts" + ], + "@lexical/react/LexicalComposer": [ + "./packages/lexical-react/src/LexicalComposer.tsx" + ], + "@lexical/react/LexicalComposerContext": [ + "./packages/lexical-react/src/LexicalComposerContext.ts" + ], + "@lexical/react/LexicalContentEditable": [ + "./packages/lexical-react/src/LexicalContentEditable.tsx" + ], + "@lexical/react/LexicalContextMenuPlugin": [ + "./packages/lexical-react/src/LexicalContextMenuPlugin.tsx" + ], + "@lexical/react/LexicalDecoratorBlockNode": [ + "./packages/lexical-react/src/LexicalDecoratorBlockNode.ts" + ], + "@lexical/react/LexicalEditorRefPlugin": [ + "./packages/lexical-react/src/LexicalEditorRefPlugin.tsx" + ], + "@lexical/react/LexicalErrorBoundary": [ + "./packages/lexical-react/src/LexicalErrorBoundary.tsx" + ], + "@lexical/react/LexicalHashtagPlugin": [ + "./packages/lexical-react/src/LexicalHashtagPlugin.ts" + ], + "@lexical/react/LexicalHistoryPlugin": [ + "./packages/lexical-react/src/LexicalHistoryPlugin.ts" + ], + "@lexical/react/LexicalHorizontalRuleNode": [ + "./packages/lexical-react/src/LexicalHorizontalRuleNode.tsx" + ], + "@lexical/react/LexicalHorizontalRulePlugin": [ + "./packages/lexical-react/src/LexicalHorizontalRulePlugin.ts" + ], + "@lexical/react/LexicalLinkPlugin": [ + "./packages/lexical-react/src/LexicalLinkPlugin.ts" + ], + "@lexical/react/LexicalListPlugin": [ + "./packages/lexical-react/src/LexicalListPlugin.ts" + ], + "@lexical/react/LexicalMarkdownShortcutPlugin": [ + "./packages/lexical-react/src/LexicalMarkdownShortcutPlugin.tsx" + ], + "@lexical/react/LexicalNestedComposer": [ + "./packages/lexical-react/src/LexicalNestedComposer.tsx" + ], + "@lexical/react/LexicalNodeEventPlugin": [ + "./packages/lexical-react/src/LexicalNodeEventPlugin.ts" + ], + "@lexical/react/LexicalNodeMenuPlugin": [ + "./packages/lexical-react/src/LexicalNodeMenuPlugin.tsx" + ], + "@lexical/react/LexicalOnChangePlugin": [ + "./packages/lexical-react/src/LexicalOnChangePlugin.ts" + ], + "@lexical/react/LexicalPlainTextPlugin": [ + "./packages/lexical-react/src/LexicalPlainTextPlugin.tsx" + ], + "@lexical/react/LexicalRichTextPlugin": [ + "./packages/lexical-react/src/LexicalRichTextPlugin.tsx" + ], + "@lexical/react/LexicalTabIndentationPlugin": [ + "./packages/lexical-react/src/LexicalTabIndentationPlugin.tsx" + ], + "@lexical/react/LexicalTableOfContents": [ + "./packages/lexical-react/src/LexicalTableOfContents.tsx" + ], + "@lexical/react/LexicalTablePlugin": [ + "./packages/lexical-react/src/LexicalTablePlugin.ts" + ], + "@lexical/react/LexicalTreeView": [ + "./packages/lexical-react/src/LexicalTreeView.tsx" + ], + "@lexical/react/LexicalTypeaheadMenuPlugin": [ + "./packages/lexical-react/src/LexicalTypeaheadMenuPlugin.tsx" + ], + "@lexical/react/useLexicalEditable": [ + "./packages/lexical-react/src/useLexicalEditable.ts" + ], + "@lexical/react/useLexicalIsTextContentEmpty": [ + "./packages/lexical-react/src/useLexicalIsTextContentEmpty.ts" + ], + "@lexical/react/useLexicalNodeSelection": [ + "./packages/lexical-react/src/useLexicalNodeSelection.ts" + ], + "@lexical/react/useLexicalSubscription": [ + "./packages/lexical-react/src/useLexicalSubscription.tsx" + ], + "@lexical/react/useLexicalTextEntity": [ + "./packages/lexical-react/src/useLexicalTextEntity.ts" + ], + "@lexical/rich-text": ["./packages/lexical-rich-text/src/index.ts"], + "@lexical/selection": ["./packages/lexical-selection/src/index.ts"], + "@lexical/table": ["./packages/lexical-table/src/index.ts"], + "@lexical/text": ["./packages/lexical-text/src/index.ts"], + "@lexical/utils": ["./packages/lexical-utils/src/index.ts"], + "@lexical/yjs": ["./packages/lexical-yjs/src/index.ts"], + "shared/canUseDOM": ["./packages/shared/src/canUseDOM.ts"], + "shared/caretFromPoint": ["./packages/shared/src/caretFromPoint.ts"], + "shared/environment": ["./packages/shared/src/environment.ts"], + "shared/invariant": ["./packages/shared/src/invariant.ts"], + "shared/normalizeClassNames": [ + "./packages/shared/src/normalizeClassNames.ts" + ], + "shared/simpleDiffWithCursor": [ + "./packages/shared/src/simpleDiffWithCursor.ts" + ], + "shared/useLayoutEffect": ["./packages/shared/src/useLayoutEffect.ts"], + "shared/warnOnlyOnce": ["./packages/shared/src/warnOnlyOnce.ts"], + "lexical/src": ["./packages/lexical/src"], + "lexical/src/__tests__/utils": [ + "./packages/lexical/src/__tests__/utils/index.tsx" + ], + "@lexical/clipboard/src": ["./packages/lexical-clipboard/src"], + "@lexical/code/src": ["./packages/lexical-code/src"], + "@lexical/devtools-core/src": ["./packages/lexical-devtools-core/src"], + "@lexical/dragon/src": ["./packages/lexical-dragon/src"], + "@lexical/file/src": ["./packages/lexical-file/src"], + "@lexical/hashtag/src": ["./packages/lexical-hashtag/src"], + "@lexical/headless/src": ["./packages/lexical-headless/src"], + "@lexical/history/src": ["./packages/lexical-history/src"], + "@lexical/html/src": ["./packages/lexical-html/src"], + "@lexical/link/src": ["./packages/lexical-link/src"], + "@lexical/list/src": ["./packages/lexical-list/src"], + "@lexical/mark/src": ["./packages/lexical-mark/src"], + "@lexical/markdown/src": ["./packages/lexical-markdown/src"], + "@lexical/offset/src": ["./packages/lexical-offset/src"], + "@lexical/overflow/src": ["./packages/lexical-overflow/src"], + "@lexical/plain-text/src": ["./packages/lexical-plain-text/src"], + "@lexical/react/src": ["./packages/lexical-react/src"], + "@lexical/rich-text/src": ["./packages/lexical-rich-text/src"], + "@lexical/selection/src": ["./packages/lexical-selection/src"], + "@lexical/selection/src/__tests__/utils": [ + "./packages/lexical-selection/src/__tests__/utils/index.ts" + ], + "@lexical/table/src": ["./packages/lexical-table/src"], + "@lexical/text/src": ["./packages/lexical-text/src"], + "@lexical/utils/src": ["./packages/lexical-utils/src"], + "@lexical/yjs/src": ["./packages/lexical-yjs/src"], + "shared/src": ["./packages/shared/src"] + } }, "include": ["./libdefs", "./packages"], "exclude": [ diff --git a/tsconfig.test.json b/tsconfig.test.json index 3769a9592b5..dd6c48b0ab1 100644 --- a/tsconfig.test.json +++ b/tsconfig.test.json @@ -1,5 +1,4 @@ { - "extends": "./tsconfig.json", "compilerOptions": { "allowJs": true, "esModuleInterop": true, @@ -13,5 +12,6 @@ "**/node_modules/**", "./packages/playwright-core/**", "./packages/lexical-devtools/**" - ] + ], + "extends": "./tsconfig.json" } diff --git a/tsconfig.test.paths.json b/tsconfig.test.paths.json deleted file mode 100644 index e04dd5c0681..00000000000 --- a/tsconfig.test.paths.json +++ /dev/null @@ -1,194 +0,0 @@ -{ - "compilerOptions": { - "paths": { - "lexical": ["./packages/lexical/src/index.ts"], - "@lexical/clipboard": ["./packages/lexical-clipboard/src/index.ts"], - "@lexical/code": ["./packages/lexical-code/src/index.ts"], - "@lexical/devtools-core": [ - "./packages/lexical-devtools-core/src/index.ts" - ], - "@lexical/dragon": ["./packages/lexical-dragon/src/index.ts"], - "@lexical/file": ["./packages/lexical-file/src/index.ts"], - "@lexical/hashtag": ["./packages/lexical-hashtag/src/index.ts"], - "@lexical/headless": ["./packages/lexical-headless/src/index.ts"], - "@lexical/history": ["./packages/lexical-history/src/index.ts"], - "@lexical/html": ["./packages/lexical-html/src/index.ts"], - "@lexical/link": ["./packages/lexical-link/src/index.ts"], - "@lexical/list": ["./packages/lexical-list/src/index.ts"], - "@lexical/mark": ["./packages/lexical-mark/src/index.ts"], - "@lexical/markdown": ["./packages/lexical-markdown/src/index.ts"], - "@lexical/offset": ["./packages/lexical-offset/src/index.ts"], - "@lexical/overflow": ["./packages/lexical-overflow/src/index.ts"], - "@lexical/plain-text": ["./packages/lexical-plain-text/src/index.ts"], - "@lexical/react/LexicalAutoEmbedPlugin": [ - "./packages/lexical-react/src/LexicalAutoEmbedPlugin.tsx" - ], - "@lexical/react/LexicalAutoFocusPlugin": [ - "./packages/lexical-react/src/LexicalAutoFocusPlugin.ts" - ], - "@lexical/react/LexicalAutoLinkPlugin": [ - "./packages/lexical-react/src/LexicalAutoLinkPlugin.ts" - ], - "@lexical/react/LexicalBlockWithAlignableContents": [ - "./packages/lexical-react/src/LexicalBlockWithAlignableContents.tsx" - ], - "@lexical/react/LexicalCharacterLimitPlugin": [ - "./packages/lexical-react/src/LexicalCharacterLimitPlugin.tsx" - ], - "@lexical/react/LexicalCheckListPlugin": [ - "./packages/lexical-react/src/LexicalCheckListPlugin.tsx" - ], - "@lexical/react/LexicalClearEditorPlugin": [ - "./packages/lexical-react/src/LexicalClearEditorPlugin.ts" - ], - "@lexical/react/LexicalClickableLinkPlugin": [ - "./packages/lexical-react/src/LexicalClickableLinkPlugin.tsx" - ], - "@lexical/react/LexicalCollaborationContext": [ - "./packages/lexical-react/src/LexicalCollaborationContext.ts" - ], - "@lexical/react/LexicalCollaborationPlugin": [ - "./packages/lexical-react/src/LexicalCollaborationPlugin.ts" - ], - "@lexical/react/LexicalComposer": [ - "./packages/lexical-react/src/LexicalComposer.tsx" - ], - "@lexical/react/LexicalComposerContext": [ - "./packages/lexical-react/src/LexicalComposerContext.ts" - ], - "@lexical/react/LexicalContentEditable": [ - "./packages/lexical-react/src/LexicalContentEditable.tsx" - ], - "@lexical/react/LexicalContextMenuPlugin": [ - "./packages/lexical-react/src/LexicalContextMenuPlugin.tsx" - ], - "@lexical/react/LexicalDecoratorBlockNode": [ - "./packages/lexical-react/src/LexicalDecoratorBlockNode.ts" - ], - "@lexical/react/LexicalEditorRefPlugin": [ - "./packages/lexical-react/src/LexicalEditorRefPlugin.tsx" - ], - "@lexical/react/LexicalErrorBoundary": [ - "./packages/lexical-react/src/LexicalErrorBoundary.tsx" - ], - "@lexical/react/LexicalHashtagPlugin": [ - "./packages/lexical-react/src/LexicalHashtagPlugin.ts" - ], - "@lexical/react/LexicalHistoryPlugin": [ - "./packages/lexical-react/src/LexicalHistoryPlugin.ts" - ], - "@lexical/react/LexicalHorizontalRuleNode": [ - "./packages/lexical-react/src/LexicalHorizontalRuleNode.tsx" - ], - "@lexical/react/LexicalHorizontalRulePlugin": [ - "./packages/lexical-react/src/LexicalHorizontalRulePlugin.ts" - ], - "@lexical/react/LexicalLinkPlugin": [ - "./packages/lexical-react/src/LexicalLinkPlugin.ts" - ], - "@lexical/react/LexicalListPlugin": [ - "./packages/lexical-react/src/LexicalListPlugin.ts" - ], - "@lexical/react/LexicalMarkdownShortcutPlugin": [ - "./packages/lexical-react/src/LexicalMarkdownShortcutPlugin.tsx" - ], - "@lexical/react/LexicalNestedComposer": [ - "./packages/lexical-react/src/LexicalNestedComposer.tsx" - ], - "@lexical/react/LexicalNodeEventPlugin": [ - "./packages/lexical-react/src/LexicalNodeEventPlugin.ts" - ], - "@lexical/react/LexicalNodeMenuPlugin": [ - "./packages/lexical-react/src/LexicalNodeMenuPlugin.tsx" - ], - "@lexical/react/LexicalOnChangePlugin": [ - "./packages/lexical-react/src/LexicalOnChangePlugin.ts" - ], - "@lexical/react/LexicalPlainTextPlugin": [ - "./packages/lexical-react/src/LexicalPlainTextPlugin.tsx" - ], - "@lexical/react/LexicalRichTextPlugin": [ - "./packages/lexical-react/src/LexicalRichTextPlugin.tsx" - ], - "@lexical/react/LexicalTabIndentationPlugin": [ - "./packages/lexical-react/src/LexicalTabIndentationPlugin.tsx" - ], - "@lexical/react/LexicalTableOfContents": [ - "./packages/lexical-react/src/LexicalTableOfContents.tsx" - ], - "@lexical/react/LexicalTablePlugin": [ - "./packages/lexical-react/src/LexicalTablePlugin.ts" - ], - "@lexical/react/LexicalTreeView": [ - "./packages/lexical-react/src/LexicalTreeView.tsx" - ], - "@lexical/react/LexicalTypeaheadMenuPlugin": [ - "./packages/lexical-react/src/LexicalTypeaheadMenuPlugin.tsx" - ], - "@lexical/react/useLexicalEditable": [ - "./packages/lexical-react/src/useLexicalEditable.ts" - ], - "@lexical/react/useLexicalIsTextContentEmpty": [ - "./packages/lexical-react/src/useLexicalIsTextContentEmpty.ts" - ], - "@lexical/react/useLexicalNodeSelection": [ - "./packages/lexical-react/src/useLexicalNodeSelection.ts" - ], - "@lexical/react/useLexicalSubscription": [ - "./packages/lexical-react/src/useLexicalSubscription.tsx" - ], - "@lexical/react/useLexicalTextEntity": [ - "./packages/lexical-react/src/useLexicalTextEntity.ts" - ], - "@lexical/rich-text": ["./packages/lexical-rich-text/src/index.ts"], - "@lexical/selection": ["./packages/lexical-selection/src/index.ts"], - "@lexical/table": ["./packages/lexical-table/src/index.ts"], - "@lexical/text": ["./packages/lexical-text/src/index.ts"], - "@lexical/utils": ["./packages/lexical-utils/src/index.ts"], - "@lexical/yjs": ["./packages/lexical-yjs/src/index.ts"], - "shared/canUseDOM": ["./packages/shared/src/canUseDOM.ts"], - "shared/caretFromPoint": ["./packages/shared/src/caretFromPoint.ts"], - "shared/environment": ["./packages/shared/src/environment.ts"], - "shared/invariant": ["./packages/shared/src/invariant.ts"], - "shared/normalizeClassNames": [ - "./packages/shared/src/normalizeClassNames.ts" - ], - "shared/simpleDiffWithCursor": [ - "./packages/shared/src/simpleDiffWithCursor.ts" - ], - "shared/useLayoutEffect": ["./packages/shared/src/useLayoutEffect.ts"], - "shared/warnOnlyOnce": ["./packages/shared/src/warnOnlyOnce.ts"], - "lexical/src": ["./packages/lexical/src"], - "lexical/src/__tests__/utils": [ - "./packages/lexical/src/__tests__/utils/index.tsx" - ], - "@lexical/clipboard/src": ["./packages/lexical-clipboard/src"], - "@lexical/code/src": ["./packages/lexical-code/src"], - "@lexical/devtools-core/src": ["./packages/lexical-devtools-core/src"], - "@lexical/dragon/src": ["./packages/lexical-dragon/src"], - "@lexical/file/src": ["./packages/lexical-file/src"], - "@lexical/hashtag/src": ["./packages/lexical-hashtag/src"], - "@lexical/headless/src": ["./packages/lexical-headless/src"], - "@lexical/history/src": ["./packages/lexical-history/src"], - "@lexical/html/src": ["./packages/lexical-html/src"], - "@lexical/link/src": ["./packages/lexical-link/src"], - "@lexical/list/src": ["./packages/lexical-list/src"], - "@lexical/mark/src": ["./packages/lexical-mark/src"], - "@lexical/markdown/src": ["./packages/lexical-markdown/src"], - "@lexical/offset/src": ["./packages/lexical-offset/src"], - "@lexical/overflow/src": ["./packages/lexical-overflow/src"], - "@lexical/plain-text/src": ["./packages/lexical-plain-text/src"], - "@lexical/react/src": ["./packages/lexical-react/src"], - "@lexical/rich-text/src": ["./packages/lexical-rich-text/src"], - "@lexical/selection/src": ["./packages/lexical-selection/src"], - "@lexical/selection/src/__tests__/utils": [ - "./packages/lexical-selection/src/__tests__/utils/index.ts" - ], - "@lexical/table/src": ["./packages/lexical-table/src"], - "@lexical/text/src": ["./packages/lexical-text/src"], - "@lexical/utils/src": ["./packages/lexical-utils/src"], - "@lexical/yjs/src": ["./packages/lexical-yjs/src"], - "shared/src": ["./packages/shared/src"] - } - } -}