lexical 0.30.1-nightly.20250417.0 → 0.30.1-nightly.20250421.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 +11 -3
- package/Lexical.dev.mjs +11 -3
- package/Lexical.prod.js +1 -1
- package/Lexical.prod.mjs +1 -1
- package/LexicalCommands.d.ts +2 -1
- package/LexicalUtils.d.ts +0 -1
- package/package.json +1 -1
package/Lexical.dev.js
CHANGED
|
@@ -1862,7 +1862,8 @@ const KEY_ARROW_UP_COMMAND = createCommand('KEY_ARROW_UP_COMMAND');
|
|
|
1862
1862
|
const KEY_ARROW_DOWN_COMMAND = createCommand('KEY_ARROW_DOWN_COMMAND');
|
|
1863
1863
|
/**
|
|
1864
1864
|
* Dispatched when the enter key is pressed, may also be called with a null
|
|
1865
|
-
* payload when the intent is to insert a newline.
|
|
1865
|
+
* payload when the intent is to insert a newline. The shift modifier key
|
|
1866
|
+
* must be down, any other modifier keys may also be down.
|
|
1866
1867
|
*/
|
|
1867
1868
|
const KEY_ENTER_COMMAND = createCommand('KEY_ENTER_COMMAND');
|
|
1868
1869
|
/**
|
|
@@ -10444,7 +10445,7 @@ class LexicalEditor {
|
|
|
10444
10445
|
};
|
|
10445
10446
|
}
|
|
10446
10447
|
}
|
|
10447
|
-
LexicalEditor.version = "0.30.1-nightly.
|
|
10448
|
+
LexicalEditor.version = "0.30.1-nightly.20250421.0+dev.cjs";
|
|
10448
10449
|
|
|
10449
10450
|
let keyCounter = 1;
|
|
10450
10451
|
function resetRandomKey() {
|
|
@@ -11070,10 +11071,17 @@ function isUnderline(event) {
|
|
|
11070
11071
|
return isExactShortcutMatch(event, 'u', CONTROL_OR_META);
|
|
11071
11072
|
}
|
|
11072
11073
|
function isParagraph(event) {
|
|
11073
|
-
return isExactShortcutMatch(event, 'Enter', {
|
|
11074
|
+
return isExactShortcutMatch(event, 'Enter', {
|
|
11075
|
+
altKey: 'any',
|
|
11076
|
+
ctrlKey: 'any',
|
|
11077
|
+
metaKey: 'any'
|
|
11078
|
+
});
|
|
11074
11079
|
}
|
|
11075
11080
|
function isLineBreak(event) {
|
|
11076
11081
|
return isExactShortcutMatch(event, 'Enter', {
|
|
11082
|
+
altKey: 'any',
|
|
11083
|
+
ctrlKey: 'any',
|
|
11084
|
+
metaKey: 'any',
|
|
11077
11085
|
shiftKey: true
|
|
11078
11086
|
});
|
|
11079
11087
|
}
|
package/Lexical.dev.mjs
CHANGED
|
@@ -1860,7 +1860,8 @@ const KEY_ARROW_UP_COMMAND = createCommand('KEY_ARROW_UP_COMMAND');
|
|
|
1860
1860
|
const KEY_ARROW_DOWN_COMMAND = createCommand('KEY_ARROW_DOWN_COMMAND');
|
|
1861
1861
|
/**
|
|
1862
1862
|
* Dispatched when the enter key is pressed, may also be called with a null
|
|
1863
|
-
* payload when the intent is to insert a newline.
|
|
1863
|
+
* payload when the intent is to insert a newline. The shift modifier key
|
|
1864
|
+
* must be down, any other modifier keys may also be down.
|
|
1864
1865
|
*/
|
|
1865
1866
|
const KEY_ENTER_COMMAND = createCommand('KEY_ENTER_COMMAND');
|
|
1866
1867
|
/**
|
|
@@ -10442,7 +10443,7 @@ class LexicalEditor {
|
|
|
10442
10443
|
};
|
|
10443
10444
|
}
|
|
10444
10445
|
}
|
|
10445
|
-
LexicalEditor.version = "0.30.1-nightly.
|
|
10446
|
+
LexicalEditor.version = "0.30.1-nightly.20250421.0+dev.esm";
|
|
10446
10447
|
|
|
10447
10448
|
let keyCounter = 1;
|
|
10448
10449
|
function resetRandomKey() {
|
|
@@ -11068,10 +11069,17 @@ function isUnderline(event) {
|
|
|
11068
11069
|
return isExactShortcutMatch(event, 'u', CONTROL_OR_META);
|
|
11069
11070
|
}
|
|
11070
11071
|
function isParagraph(event) {
|
|
11071
|
-
return isExactShortcutMatch(event, 'Enter', {
|
|
11072
|
+
return isExactShortcutMatch(event, 'Enter', {
|
|
11073
|
+
altKey: 'any',
|
|
11074
|
+
ctrlKey: 'any',
|
|
11075
|
+
metaKey: 'any'
|
|
11076
|
+
});
|
|
11072
11077
|
}
|
|
11073
11078
|
function isLineBreak(event) {
|
|
11074
11079
|
return isExactShortcutMatch(event, 'Enter', {
|
|
11080
|
+
altKey: 'any',
|
|
11081
|
+
ctrlKey: 'any',
|
|
11082
|
+
metaKey: 'any',
|
|
11075
11083
|
shiftKey: true
|
|
11076
11084
|
});
|
|
11077
11085
|
}
|