lexical 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Lexical.js.flow CHANGED
@@ -48,7 +48,6 @@ declare export var CAN_REDO_COMMAND: LexicalCommand<boolean>;
48
48
  declare export var CAN_UNDO_COMMAND: LexicalCommand<boolean>;
49
49
  declare export var FOCUS_COMMAND: LexicalCommand<FocusEvent>;
50
50
  declare export var BLUR_COMMAND: LexicalCommand<FocusEvent>;
51
- declare export var READ_ONLY_COMMAND: LexicalCommand<void>;
52
51
 
53
52
  declare export function createCommand<T>(): LexicalCommand<T>;
54
53
 
@@ -228,17 +227,12 @@ export type EditorConfig<EditorContext> = {
228
227
  context: EditorContext,
229
228
  disableEvents?: boolean,
230
229
  };
231
- export type CommandListenerEditorPriority = 0;
232
- export type CommandListenerLowPriority = 1;
233
- export type CommandListenerNormalPriority = 2;
234
- export type CommandListenerHighPriority = 3;
235
- export type CommandListenerCriticalPriority = 4;
236
- type CommandListenerPriority =
237
- | CommandListenerEditorPriority
238
- | CommandListenerLowPriority
239
- | CommandListenerNormalPriority
240
- | CommandListenerHighPriority
241
- | CommandListenerCriticalPriority;
230
+ export type CommandListenerPriority = 0 | 1 | 2 | 3 | 4;
231
+ export const COMMAND_PRIORITY_EDITOR = 0;
232
+ export const COMMAND_PRIORITY_LOW = 1;
233
+ export const COMMAND_PRIORITY_NORMAL = 2;
234
+ export const COMMAND_PRIORITY_HIGH = 3;
235
+ export const COMMAND_PRIORITY_CRITICAL = 4;
242
236
 
243
237
  export type IntentionallyMarkedAsDirtyElement = boolean;
244
238
  declare export function createEditor<EditorContext>(editorConfig?: {