lexical 0.30.1-nightly.20250416.0 → 0.30.1-nightly.20250418.0

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.dev.js CHANGED
@@ -1918,6 +1918,12 @@ const CAN_REDO_COMMAND = createCommand('CAN_REDO_COMMAND');
1918
1918
  const CAN_UNDO_COMMAND = createCommand('CAN_UNDO_COMMAND');
1919
1919
  const FOCUS_COMMAND = createCommand('FOCUS_COMMAND');
1920
1920
  const BLUR_COMMAND = createCommand('BLUR_COMMAND');
1921
+ /**
1922
+ * @deprecated in v0.31.0, use KEY_DOWN_COMMAND and check for modifiers
1923
+ * directly.
1924
+ *
1925
+ * Dispatched after any KeyboardEvent when modifiers are pressed
1926
+ */
1921
1927
  const KEY_MODIFIER_COMMAND = createCommand('KEY_MODIFIER_COMMAND');
1922
1928
 
1923
1929
  const PASS_THROUGH_COMMAND = Object.freeze({});
@@ -10438,7 +10444,7 @@ class LexicalEditor {
10438
10444
  };
10439
10445
  }
10440
10446
  }
10441
- LexicalEditor.version = "0.30.1-nightly.20250416.0+dev.cjs";
10447
+ LexicalEditor.version = "0.30.1-nightly.20250418.0+dev.cjs";
10442
10448
 
10443
10449
  let keyCounter = 1;
10444
10450
  function resetRandomKey() {
@@ -11064,10 +11070,17 @@ function isUnderline(event) {
11064
11070
  return isExactShortcutMatch(event, 'u', CONTROL_OR_META);
11065
11071
  }
11066
11072
  function isParagraph(event) {
11067
- return isExactShortcutMatch(event, 'Enter', {});
11073
+ return isExactShortcutMatch(event, 'Enter', {
11074
+ altKey: 'any',
11075
+ ctrlKey: 'any',
11076
+ metaKey: 'any'
11077
+ });
11068
11078
  }
11069
11079
  function isLineBreak(event) {
11070
11080
  return isExactShortcutMatch(event, 'Enter', {
11081
+ altKey: 'any',
11082
+ ctrlKey: 'any',
11083
+ metaKey: 'any',
11071
11084
  shiftKey: true
11072
11085
  });
11073
11086
  }
package/Lexical.dev.mjs CHANGED
@@ -1916,6 +1916,12 @@ const CAN_REDO_COMMAND = createCommand('CAN_REDO_COMMAND');
1916
1916
  const CAN_UNDO_COMMAND = createCommand('CAN_UNDO_COMMAND');
1917
1917
  const FOCUS_COMMAND = createCommand('FOCUS_COMMAND');
1918
1918
  const BLUR_COMMAND = createCommand('BLUR_COMMAND');
1919
+ /**
1920
+ * @deprecated in v0.31.0, use KEY_DOWN_COMMAND and check for modifiers
1921
+ * directly.
1922
+ *
1923
+ * Dispatched after any KeyboardEvent when modifiers are pressed
1924
+ */
1919
1925
  const KEY_MODIFIER_COMMAND = createCommand('KEY_MODIFIER_COMMAND');
1920
1926
 
1921
1927
  const PASS_THROUGH_COMMAND = Object.freeze({});
@@ -10436,7 +10442,7 @@ class LexicalEditor {
10436
10442
  };
10437
10443
  }
10438
10444
  }
10439
- LexicalEditor.version = "0.30.1-nightly.20250416.0+dev.esm";
10445
+ LexicalEditor.version = "0.30.1-nightly.20250418.0+dev.esm";
10440
10446
 
10441
10447
  let keyCounter = 1;
10442
10448
  function resetRandomKey() {
@@ -11062,10 +11068,17 @@ function isUnderline(event) {
11062
11068
  return isExactShortcutMatch(event, 'u', CONTROL_OR_META);
11063
11069
  }
11064
11070
  function isParagraph(event) {
11065
- return isExactShortcutMatch(event, 'Enter', {});
11071
+ return isExactShortcutMatch(event, 'Enter', {
11072
+ altKey: 'any',
11073
+ ctrlKey: 'any',
11074
+ metaKey: 'any'
11075
+ });
11066
11076
  }
11067
11077
  function isLineBreak(event) {
11068
11078
  return isExactShortcutMatch(event, 'Enter', {
11079
+ altKey: 'any',
11080
+ ctrlKey: 'any',
11081
+ metaKey: 'any',
11069
11082
  shiftKey: true
11070
11083
  });
11071
11084
  }