@manuscripts/body-editor 2.8.21 → 2.8.22
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/commands.js +4 -0
- package/dist/cjs/versions.js +1 -1
- package/dist/es/commands.js +5 -1
- package/dist/es/versions.js +1 -1
- package/dist/types/versions.d.ts +1 -1
- package/package.json +1 -1
package/dist/cjs/commands.js
CHANGED
|
@@ -38,6 +38,10 @@ const search_replace_1 = require("./plugins/search-replace");
|
|
|
38
38
|
const autocompletion_1 = require("./plugins/section_title/autocompletion");
|
|
39
39
|
const addToStart = (state, dispatch) => {
|
|
40
40
|
const { selection } = state;
|
|
41
|
+
const props = (0, editor_props_1.getEditorProps)(state);
|
|
42
|
+
if (props.getCapabilities().editWithoutTracking) {
|
|
43
|
+
return false;
|
|
44
|
+
}
|
|
41
45
|
if (!dispatch ||
|
|
42
46
|
!(selection instanceof prosemirror_state_1.TextSelection) ||
|
|
43
47
|
(selection.$from.node().type !== transform_1.schema.nodes.paragraph &&
|
package/dist/cjs/versions.js
CHANGED
package/dist/es/commands.js
CHANGED
|
@@ -23,7 +23,7 @@ import { addColumnAfter, addColumnBefore, addRow, selectedRect, } from 'prosemir
|
|
|
23
23
|
import { findWrapping, liftTarget, ReplaceAroundStep, ReplaceStep, } from 'prosemirror-transform';
|
|
24
24
|
import { findChildrenByType, findParentNodeOfType, findParentNodeOfTypeClosestToPos, flatten, hasParentNodeOfType, } from 'prosemirror-utils';
|
|
25
25
|
import { getCommentKey, getCommentRange } from './lib/comments';
|
|
26
|
-
import { findAbstractsNode, findBackmatter, findBibliographySection, findBody,
|
|
26
|
+
import { findAbstractsNode, findBackmatter, findBibliographySection, findBody, findFootnotesSection, insertAttachmentsNode, insertAwardsNode, insertFootnotesSection, insertSupplementsNode, } from './lib/doc';
|
|
27
27
|
import { createFootnote, findFootnotesContainerNode, getFootnotesElementState, } from './lib/footnotes';
|
|
28
28
|
import { findWordBoundaries, isNodeOfType, nearestAncestor, } from './lib/helpers';
|
|
29
29
|
import { isDeleted } from './lib/track-changes-utils';
|
|
@@ -34,6 +34,10 @@ import { searchReplaceKey } from './plugins/search-replace';
|
|
|
34
34
|
import { checkForCompletion } from './plugins/section_title/autocompletion';
|
|
35
35
|
export const addToStart = (state, dispatch) => {
|
|
36
36
|
const { selection } = state;
|
|
37
|
+
const props = getEditorProps(state);
|
|
38
|
+
if (props.getCapabilities().editWithoutTracking) {
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
37
41
|
if (!dispatch ||
|
|
38
42
|
!(selection instanceof TextSelection) ||
|
|
39
43
|
(selection.$from.node().type !== schema.nodes.paragraph &&
|
package/dist/es/versions.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '2.8.
|
|
1
|
+
export const VERSION = '2.8.22';
|
|
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 = "2.8.
|
|
1
|
+
export declare const VERSION = "2.8.22";
|
|
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": "2.8.
|
|
4
|
+
"version": "2.8.22",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-body-editor",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|