Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,38 @@ module.name_mapper='^@lexical/devtools-core$' -> '<PROJECT_ROOT>/packages/lexica
module.name_mapper='^@lexical/dragon$' -> '<PROJECT_ROOT>/packages/lexical-dragon/flow/LexicalDragon.js.flow'
module.name_mapper='^@lexical/eslint-plugin$' -> '<PROJECT_ROOT>/packages/lexical-eslint-plugin/flow/LexicalEslintPlugin.js.flow'
module.name_mapper='^@lexical/extension$' -> '<PROJECT_ROOT>/packages/lexical-extension/flow/LexicalExtension.js.flow'
module.name_mapper='^@lexical/extension/AutoFocusExtension$' -> '<PROJECT_ROOT>/packages/lexical-extension/flow/LexicalExtensionAutoFocusExtension.js.flow'
module.name_mapper='^@lexical/extension/ClearEditorExtension$' -> '<PROJECT_ROOT>/packages/lexical-extension/flow/LexicalExtensionClearEditorExtension.js.flow'
module.name_mapper='^@lexical/extension/ClickAfterLastBlockExtension$' -> '<PROJECT_ROOT>/packages/lexical-extension/flow/LexicalExtensionClickAfterLastBlockExtension.js.flow'
module.name_mapper='^@lexical/extension/config$' -> '<PROJECT_ROOT>/packages/lexical-extension/flow/LexicalExtensionConfig.js.flow'
module.name_mapper='^@lexical/extension/DecoratorTextExtension$' -> '<PROJECT_ROOT>/packages/lexical-extension/flow/LexicalExtensionDecoratorTextExtension.js.flow'
module.name_mapper='^@lexical/extension/deepThemeMergeInPlace$' -> '<PROJECT_ROOT>/packages/lexical-extension/flow/LexicalExtensionDeepThemeMergeInPlace.js.flow'
module.name_mapper='^@lexical/extension/EditorStateExtension$' -> '<PROJECT_ROOT>/packages/lexical-extension/flow/LexicalExtensionEditorStateExtension.js.flow'
module.name_mapper='^@lexical/extension/editorStateFamily$' -> '<PROJECT_ROOT>/packages/lexical-extension/flow/LexicalExtensionEditorStateFamily.js.flow'
module.name_mapper='^@lexical/extension/ExtensionRep$' -> '<PROJECT_ROOT>/packages/lexical-extension/flow/LexicalExtensionExtensionRep.js.flow'
module.name_mapper='^@lexical/extension/getExtensionDependency$' -> '<PROJECT_ROOT>/packages/lexical-extension/flow/LexicalExtensionGetExtensionDependency.js.flow'
module.name_mapper='^@lexical/extension/getExtensionDependencyFromEditor$' -> '<PROJECT_ROOT>/packages/lexical-extension/flow/LexicalExtensionGetExtensionDependencyFromEditor.js.flow'
module.name_mapper='^@lexical/extension/getPeerDependencyFromEditor$' -> '<PROJECT_ROOT>/packages/lexical-extension/flow/LexicalExtensionGetPeerDependencyFromEditor.js.flow'
module.name_mapper='^@lexical/extension/HMRExtension$' -> '<PROJECT_ROOT>/packages/lexical-extension/flow/LexicalExtensionHMRExtension.js.flow'
module.name_mapper='^@lexical/extension/HorizontalRuleExtension$' -> '<PROJECT_ROOT>/packages/lexical-extension/flow/LexicalExtensionHorizontalRuleExtension.js.flow'
module.name_mapper='^@lexical/extension/IMEExtension$' -> '<PROJECT_ROOT>/packages/lexical-extension/flow/LexicalExtensionIMEExtension.js.flow'
module.name_mapper='^@lexical/extension/InitialStateExtension$' -> '<PROJECT_ROOT>/packages/lexical-extension/flow/LexicalExtensionInitialStateExtension.js.flow'
module.name_mapper='^@lexical/extension/KeyboardShortcutsExtension$' -> '<PROJECT_ROOT>/packages/lexical-extension/flow/LexicalExtensionKeyboardShortcutsExtension.js.flow'
module.name_mapper='^@lexical/extension/LexicalBuilder$' -> '<PROJECT_ROOT>/packages/lexical-extension/flow/LexicalExtensionLexicalBuilder.js.flow'
module.name_mapper='^@lexical/extension/namedSignals$' -> '<PROJECT_ROOT>/packages/lexical-extension/flow/LexicalExtensionNamedSignals.js.flow'
module.name_mapper='^@lexical/extension/NestedEditorExtension$' -> '<PROJECT_ROOT>/packages/lexical-extension/flow/LexicalExtensionNestedEditorExtension.js.flow'
module.name_mapper='^@lexical/extension/NodeSelectionDataSelectedExtension$' -> '<PROJECT_ROOT>/packages/lexical-extension/flow/LexicalExtensionNodeSelectionDataSelectedExtension.js.flow'
module.name_mapper='^@lexical/extension/NodeSelectionExtension$' -> '<PROJECT_ROOT>/packages/lexical-extension/flow/LexicalExtensionNodeSelectionExtension.js.flow'
module.name_mapper='^@lexical/extension/NormalizeInlineElementsExtension$' -> '<PROJECT_ROOT>/packages/lexical-extension/flow/LexicalExtensionNormalizeInlineElementsExtension.js.flow'
module.name_mapper='^@lexical/extension/NormalizeTripleClickSelectionExtension$' -> '<PROJECT_ROOT>/packages/lexical-extension/flow/LexicalExtensionNormalizeTripleClickSelectionExtension.js.flow'
module.name_mapper='^@lexical/extension/PreventSelectAllExtension$' -> '<PROJECT_ROOT>/packages/lexical-extension/flow/LexicalExtensionPreventSelectAllExtension.js.flow'
module.name_mapper='^@lexical/extension/RootElementExtension$' -> '<PROJECT_ROOT>/packages/lexical-extension/flow/LexicalExtensionRootElementExtension.js.flow'
module.name_mapper='^@lexical/extension/SelectBlockExtension$' -> '<PROJECT_ROOT>/packages/lexical-extension/flow/LexicalExtensionSelectBlockExtension.js.flow'
module.name_mapper='^@lexical/extension/SelectionAlwaysOnDisplayExtension$' -> '<PROJECT_ROOT>/packages/lexical-extension/flow/LexicalExtensionSelectionAlwaysOnDisplayExtension.js.flow'
module.name_mapper='^@lexical/extension/signals$' -> '<PROJECT_ROOT>/packages/lexical-extension/flow/LexicalExtensionSignals.js.flow'
module.name_mapper='^@lexical/extension/TabIndentationExtension$' -> '<PROJECT_ROOT>/packages/lexical-extension/flow/LexicalExtensionTabIndentationExtension.js.flow'
module.name_mapper='^@lexical/extension/WatchEditableExtension$' -> '<PROJECT_ROOT>/packages/lexical-extension/flow/LexicalExtensionWatchEditableExtension.js.flow'
module.name_mapper='^@lexical/extension/watchedSignal$' -> '<PROJECT_ROOT>/packages/lexical-extension/flow/LexicalExtensionWatchedSignal.js.flow'
module.name_mapper='^@lexical/file$' -> '<PROJECT_ROOT>/packages/lexical-file/flow/LexicalFile.js.flow'
module.name_mapper='^@lexical/hashtag$' -> '<PROJECT_ROOT>/packages/lexical-hashtag/flow/LexicalHashtag.js.flow'
module.name_mapper='^@lexical/headless$' -> '<PROJECT_ROOT>/packages/lexical-headless/flow/LexicalHeadless.js.flow'
Expand Down
92 changes: 92 additions & 0 deletions packages/lexical-devtools/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,98 @@
"@lexical/dragon": ["../lexical-dragon/src/index.ts"],
"@lexical/eslint-plugin": ["../lexical-eslint-plugin/src/index.ts"],
"@lexical/extension": ["../lexical-extension/src/index.ts"],
"@lexical/extension/AutoFocusExtension": [
"../lexical-extension/src/AutoFocusExtension.ts"
],
"@lexical/extension/ClearEditorExtension": [
"../lexical-extension/src/ClearEditorExtension.ts"
],
"@lexical/extension/ClickAfterLastBlockExtension": [
"../lexical-extension/src/ClickAfterLastBlockExtension.ts"
],
"@lexical/extension/config": ["../lexical-extension/src/config.ts"],
"@lexical/extension/DecoratorTextExtension": [
"../lexical-extension/src/DecoratorTextExtension.ts"
],
"@lexical/extension/deepThemeMergeInPlace": [
"../lexical-extension/src/deepThemeMergeInPlace.ts"
],
"@lexical/extension/EditorStateExtension": [
"../lexical-extension/src/EditorStateExtension.ts"
],
"@lexical/extension/editorStateFamily": [
"../lexical-extension/src/editorStateFamily.ts"
],
"@lexical/extension/ExtensionRep": [
"../lexical-extension/src/ExtensionRep.ts"
],
"@lexical/extension/getExtensionDependency": [
"../lexical-extension/src/getExtensionDependency.ts"
],
"@lexical/extension/getExtensionDependencyFromEditor": [
"../lexical-extension/src/getExtensionDependencyFromEditor.ts"
],
"@lexical/extension/getPeerDependencyFromEditor": [
"../lexical-extension/src/getPeerDependencyFromEditor.ts"
],
"@lexical/extension/HMRExtension": [
"../lexical-extension/src/HMRExtension.ts"
],
"@lexical/extension/HorizontalRuleExtension": [
"../lexical-extension/src/HorizontalRuleExtension.ts"
],
"@lexical/extension/IMEExtension": [
"../lexical-extension/src/IMEExtension.ts"
],
"@lexical/extension/InitialStateExtension": [
"../lexical-extension/src/InitialStateExtension.ts"
],
"@lexical/extension/KeyboardShortcutsExtension": [
"../lexical-extension/src/KeyboardShortcutsExtension.ts"
],
"@lexical/extension/LexicalBuilder": [
"../lexical-extension/src/LexicalBuilder.ts"
],
"@lexical/extension/namedSignals": [
"../lexical-extension/src/namedSignals.ts"
],
"@lexical/extension/NestedEditorExtension": [
"../lexical-extension/src/NestedEditorExtension.ts"
],
"@lexical/extension/NodeSelectionDataSelectedExtension": [
"../lexical-extension/src/NodeSelectionDataSelectedExtension.ts"
],
"@lexical/extension/NodeSelectionExtension": [
"../lexical-extension/src/NodeSelectionExtension.ts"
],
"@lexical/extension/NormalizeInlineElementsExtension": [
"../lexical-extension/src/NormalizeInlineElementsExtension.ts"
],
"@lexical/extension/NormalizeTripleClickSelectionExtension": [
"../lexical-extension/src/NormalizeTripleClickSelectionExtension.ts"
],
"@lexical/extension/PreventSelectAllExtension": [
"../lexical-extension/src/PreventSelectAllExtension.ts"
],
"@lexical/extension/RootElementExtension": [
"../lexical-extension/src/RootElementExtension.ts"
],
"@lexical/extension/SelectBlockExtension": [
"../lexical-extension/src/SelectBlockExtension.ts"
],
"@lexical/extension/SelectionAlwaysOnDisplayExtension": [
"../lexical-extension/src/SelectionAlwaysOnDisplayExtension.ts"
],
"@lexical/extension/signals": ["../lexical-extension/src/signals.ts"],
"@lexical/extension/TabIndentationExtension": [
"../lexical-extension/src/TabIndentationExtension.ts"
],
"@lexical/extension/WatchEditableExtension": [
"../lexical-extension/src/WatchEditableExtension.ts"
],
"@lexical/extension/watchedSignal": [
"../lexical-extension/src/watchedSignal.ts"
],
"@lexical/file": ["../lexical-file/src/index.ts"],
"@lexical/hashtag": ["../lexical-hashtag/src/index.ts"],
"@lexical/headless": ["../lexical-headless/src/index.ts"],
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict
*/

/**
* LexicalExtensionAutoFocusExtension
*/

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like all of the flow types are missing from these stubs, they need to be moved from the barrel flow file. For example this line belongs in this file (plus any imports to make it work):

declare export var AutoFocusExtension: LexicalExtension<AutoFocusConfig, "@lexical/extension/AutoFocus", NamedSignalsOutput<AutoFocusConfig>, void>;

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict
*/

/**
* LexicalExtensionClearEditorExtension
*/
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict
*/

/**
* LexicalExtensionClickAfterLastBlockExtension
*/
12 changes: 12 additions & 0 deletions packages/lexical-extension/flow/LexicalExtensionConfig.js.flow
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict
*/

/**
* LexicalExtensionConfig
*/
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict
*/

/**
* LexicalExtensionDecoratorTextExtension
*/
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict
*/

/**
* LexicalExtensionDeepThemeMergeInPlace
*/
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict
*/

/**
* LexicalExtensionEditorStateExtension
*/
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict
*/

/**
* LexicalExtensionEditorStateFamily
*/
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict
*/

/**
* LexicalExtensionExtensionRep
*/
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict
*/

/**
* LexicalExtensionGetExtensionDependency
*/
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict
*/

/**
* LexicalExtensionGetExtensionDependencyFromEditor
*/
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict
*/

/**
* LexicalExtensionGetPeerDependencyFromEditor
*/
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict
*/

/**
* LexicalExtensionHMRExtension
*/
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict
*/

/**
* LexicalExtensionHorizontalRuleExtension
*/
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict
*/

/**
* LexicalExtensionIMEExtension
*/
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict
*/

/**
* LexicalExtensionInitialStateExtension
*/
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict
*/

/**
* LexicalExtensionKeyboardShortcutsExtension
*/
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict
*/

/**
* LexicalExtensionLexicalBuilder
*/
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict
*/

/**
* LexicalExtensionNamedSignals
*/
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict
*/

/**
* LexicalExtensionNestedEditorExtension
*/
Loading
Loading