@manuscripts/body-editor 3.9.5 → 3.9.6
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/dist/cjs/keys/misc.js +4 -5
- package/dist/cjs/menus.js +1 -1
- package/dist/cjs/versions.js +1 -1
- package/dist/es/keys/misc.js +5 -6
- package/dist/es/menus.js +1 -1
- package/dist/es/versions.js +1 -1
- package/dist/types/versions.d.ts +1 -1
- package/package.json +1 -1
package/dist/cjs/keys/misc.js
CHANGED
|
@@ -45,18 +45,17 @@ const customKeymap = {
|
|
|
45
45
|
'Shift-Mod-Enter': (0, commands_1.insertSection)(true),
|
|
46
46
|
'Mod-Enter': (0, prosemirror_commands_1.chainCommands)(prosemirror_commands_1.exitCode, (0, commands_1.insertSection)()),
|
|
47
47
|
'Shift-Enter': (0, prosemirror_commands_1.chainCommands)(prosemirror_commands_1.exitCode, commands_1.insertBreak),
|
|
48
|
-
'Ctrl-Enter': (0, prosemirror_commands_1.chainCommands)(prosemirror_commands_1.exitCode, commands_1.insertBreak),
|
|
49
48
|
'Shift-Tab': (0, prosemirror_tables_1.goToNextCell)(-1),
|
|
50
49
|
'Mod-Alt-p': (0, commands_1.insertBlock)(transform_1.schema.nodes.figure_element),
|
|
51
50
|
'Mod-Alt-t': (0, commands_1.insertBlock)(transform_1.schema.nodes.table_element),
|
|
52
51
|
'Mod-Alt-l': (0, commands_1.insertBlock)(transform_1.schema.nodes.listing_element),
|
|
53
52
|
'Mod-Alt-e': (0, commands_1.insertBlock)(transform_1.schema.nodes.equation_element),
|
|
53
|
+
'Mod-Alt-b': commands_1.insertBoxElement,
|
|
54
|
+
'Mod-Alt-h': commands_1.insertLink,
|
|
55
|
+
'Mod-Alt-f': commands_1.insertInlineFootnote,
|
|
54
56
|
'Mod-Alt-c': commands_1.insertInlineCitation,
|
|
55
57
|
'Mod-Alt-r': commands_1.insertCrossReference,
|
|
56
58
|
'Shift-Mod-Alt-e': commands_1.insertInlineEquation,
|
|
57
|
-
'Shift-
|
|
58
|
-
'Shift-Mod-h': commands_1.activateSearchReplace,
|
|
59
|
-
'Mod-f': commands_1.activateSearch,
|
|
60
|
-
'Ctrl-f': commands_1.activateSearch,
|
|
59
|
+
'Shift-Mod-e': commands_1.insertInlineEquation,
|
|
61
60
|
};
|
|
62
61
|
exports.default = customKeymap;
|
package/dist/cjs/menus.js
CHANGED
|
@@ -313,7 +313,7 @@ const getEditorMenus = (editor) => {
|
|
|
313
313
|
label: 'Inline Equation',
|
|
314
314
|
shortcut: {
|
|
315
315
|
mac: 'Shift+Option+CommandOrControl+E',
|
|
316
|
-
pc: 'Shift+CommandOrControl+
|
|
316
|
+
pc: 'Shift+CommandOrControl+E',
|
|
317
317
|
},
|
|
318
318
|
isEnabled: (0, utils_1.isEditAllowed)(state) &&
|
|
319
319
|
isCommandValid((0, commands_1.canInsert)(transform_1.schema.nodes.inline_equation)),
|
package/dist/cjs/versions.js
CHANGED
package/dist/es/keys/misc.js
CHANGED
|
@@ -18,7 +18,7 @@ import { chainCommands, createParagraphNear, exitCode, joinBackward, joinDown, j
|
|
|
18
18
|
import { redo, undo } from 'prosemirror-history';
|
|
19
19
|
import { undoInputRule } from 'prosemirror-inputrules';
|
|
20
20
|
import { goToNextCell } from 'prosemirror-tables';
|
|
21
|
-
import {
|
|
21
|
+
import { addToStart, autoComplete, exitEditorToContainer, ignoreAtomBlockNodeBackward, ignoreAtomBlockNodeForward, ignoreEnterInSubtitles, ignoreMetaNodeBackspaceCommand, insertBlock, insertBoxElement, insertBreak, insertCrossReference, insertInlineFootnote, insertInlineCitation, insertInlineEquation, insertLink, insertSection, selectAllIsolating, } from '../commands';
|
|
22
22
|
import { skipCommandTracking } from './list';
|
|
23
23
|
const customKeymap = {
|
|
24
24
|
Backspace: chainCommands(undoInputRule, ignoreAtomBlockNodeBackward, ignoreMetaNodeBackspaceCommand, skipCommandTracking(joinBackward)),
|
|
@@ -43,18 +43,17 @@ const customKeymap = {
|
|
|
43
43
|
'Shift-Mod-Enter': insertSection(true),
|
|
44
44
|
'Mod-Enter': chainCommands(exitCode, insertSection()),
|
|
45
45
|
'Shift-Enter': chainCommands(exitCode, insertBreak),
|
|
46
|
-
'Ctrl-Enter': chainCommands(exitCode, insertBreak),
|
|
47
46
|
'Shift-Tab': goToNextCell(-1),
|
|
48
47
|
'Mod-Alt-p': insertBlock(schema.nodes.figure_element),
|
|
49
48
|
'Mod-Alt-t': insertBlock(schema.nodes.table_element),
|
|
50
49
|
'Mod-Alt-l': insertBlock(schema.nodes.listing_element),
|
|
51
50
|
'Mod-Alt-e': insertBlock(schema.nodes.equation_element),
|
|
51
|
+
'Mod-Alt-b': insertBoxElement,
|
|
52
|
+
'Mod-Alt-h': insertLink,
|
|
53
|
+
'Mod-Alt-f': insertInlineFootnote,
|
|
52
54
|
'Mod-Alt-c': insertInlineCitation,
|
|
53
55
|
'Mod-Alt-r': insertCrossReference,
|
|
54
56
|
'Shift-Mod-Alt-e': insertInlineEquation,
|
|
55
|
-
'Shift-
|
|
56
|
-
'Shift-Mod-h': activateSearchReplace,
|
|
57
|
-
'Mod-f': activateSearch,
|
|
58
|
-
'Ctrl-f': activateSearch,
|
|
57
|
+
'Shift-Mod-e': insertInlineEquation,
|
|
59
58
|
};
|
|
60
59
|
export default customKeymap;
|
package/dist/es/menus.js
CHANGED
|
@@ -310,7 +310,7 @@ export const getEditorMenus = (editor) => {
|
|
|
310
310
|
label: 'Inline Equation',
|
|
311
311
|
shortcut: {
|
|
312
312
|
mac: 'Shift+Option+CommandOrControl+E',
|
|
313
|
-
pc: 'Shift+CommandOrControl+
|
|
313
|
+
pc: 'Shift+CommandOrControl+E',
|
|
314
314
|
},
|
|
315
315
|
isEnabled: isEditAllowed(state) &&
|
|
316
316
|
isCommandValid(canInsert(schema.nodes.inline_equation)),
|
package/dist/es/versions.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '3.9.
|
|
1
|
+
export const VERSION = '3.9.6';
|
|
2
2
|
export const MATHJAX_VERSION = '3.2.2';
|
package/dist/types/versions.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "3.9.
|
|
1
|
+
export declare const VERSION = "3.9.6";
|
|
2
2
|
export declare const MATHJAX_VERSION = "3.2.2";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manuscripts/body-editor",
|
|
3
3
|
"description": "Prosemirror components for editing and viewing manuscripts",
|
|
4
|
-
"version": "3.9.
|
|
4
|
+
"version": "3.9.6",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-body-editor",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|