@manuscripts/track-changes-plugin 1.10.9 → 1.10.10-LEAN-2023.1
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.
|
@@ -117,7 +117,7 @@ function trackTransaction(tr, oldState, newTr, authorID, changeSet) {
|
|
|
117
117
|
newTr.setSelection(new prosemirror_state_1.TextSelection(newPos));
|
|
118
118
|
}
|
|
119
119
|
if (wasNodeSelection) {
|
|
120
|
-
|
|
120
|
+
logger_1.log.info('Getting into node select!');
|
|
121
121
|
const mappedPos = newTr.mapping.map(tr.selection.from, -1);
|
|
122
122
|
const sel = getSelectionStaticConstructor(tr.selection);
|
|
123
123
|
newTr.setSelection(sel.create(newTr.doc, mappedPos));
|
|
@@ -111,7 +111,7 @@ export function trackTransaction(tr, oldState, newTr, authorID, changeSet) {
|
|
|
111
111
|
newTr.setSelection(new TextSelection(newPos));
|
|
112
112
|
}
|
|
113
113
|
if (wasNodeSelection) {
|
|
114
|
-
|
|
114
|
+
log.info('Getting into node select!');
|
|
115
115
|
const mappedPos = newTr.mapping.map(tr.selection.from, -1);
|
|
116
116
|
const sel = getSelectionStaticConstructor(tr.selection);
|
|
117
117
|
newTr.setSelection(sel.create(newTr.doc, mappedPos));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Node as PMNode } from 'prosemirror-model';
|
|
2
2
|
import { ExposedFragment, ExposedSlice } from '../types/pm';
|
|
3
3
|
export declare function splitSliceIntoMergedParts(insertSlice: ExposedSlice, mergeEqualSides?: boolean): {
|
|
4
|
-
updatedSliceNodes: PMNode[];
|
|
4
|
+
updatedSliceNodes: readonly PMNode[] & PMNode[];
|
|
5
5
|
firstMergedNode: {
|
|
6
6
|
mergedNodeContent: ExposedFragment;
|
|
7
7
|
unmergedContent: ExposedFragment | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manuscripts/track-changes-plugin",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.10-LEAN-2023.1",
|
|
4
4
|
"author": "Atypon Systems LLC",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://github.com/Atypon-OpenSource/manuscripts-track-changes-plugin",
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
"src/styles.css"
|
|
13
13
|
],
|
|
14
14
|
"scripts": {
|
|
15
|
-
"build": "npm-run-all --parallel
|
|
15
|
+
"build": "npm-run-all --parallel build:*",
|
|
16
16
|
"build:cjs": "tsc --outDir dist/cjs --module commonjs",
|
|
17
17
|
"build:es": "tsc --outDir dist/es --declarationDir dist/types --declaration",
|
|
18
|
-
"dev": "npm-run-all --parallel 'build:* --
|
|
18
|
+
"dev": "npm-run-all --parallel 'build:* --watch'",
|
|
19
19
|
"test": "jest --runInBand",
|
|
20
20
|
"test-rs": "jest -i test/diff/diff.test.ts",
|
|
21
21
|
"format": "prettier --write \"*.+(js|json|yml|yaml|ts|md|graphql|mdx)\" src/ test/",
|
|
@@ -24,49 +24,45 @@
|
|
|
24
24
|
"lint:fix": "eslint --fix --ext .js,.ts, ./src ./test",
|
|
25
25
|
"prepare": "husky install"
|
|
26
26
|
},
|
|
27
|
-
"devDependencies": {
|
|
28
|
-
"@manuscripts/eslint-config": "^0.5.1",
|
|
29
|
-
"@manuscripts/transform": "3.0.48",
|
|
30
|
-
"@types/debug": "^4.1.7",
|
|
31
|
-
"@types/jest": "27.5.1",
|
|
32
|
-
"@types/node": "^18.7.18",
|
|
33
|
-
"@typescript-eslint/eslint-plugin": "^5.47.0",
|
|
34
|
-
"@typescript-eslint/parser": "^5.47.0",
|
|
35
|
-
"eslint": "^8.46.0",
|
|
36
|
-
"eslint-config-prettier": "^8.5.0",
|
|
37
|
-
"eslint-plugin-header": "^3.1.1",
|
|
38
|
-
"eslint-plugin-import": "^2.26.0",
|
|
39
|
-
"eslint-plugin-jest": "^27.1.7",
|
|
40
|
-
"eslint-plugin-jsx-a11y": "^6.6.1",
|
|
41
|
-
"eslint-plugin-mdx": "2.0.4",
|
|
42
|
-
"eslint-plugin-prettier": "^4.2.1",
|
|
43
|
-
"eslint-plugin-promise": "^6.1.1",
|
|
44
|
-
"eslint-plugin-react": "^7.31.11",
|
|
45
|
-
"eslint-plugin-react-hooks": "^4.6.0",
|
|
46
|
-
"eslint-plugin-simple-import-sort": "^8.0.0",
|
|
47
|
-
"husky": "^8.0.1",
|
|
48
|
-
"jest": "27.5.1",
|
|
49
|
-
"jest-environment-jsdom": "27.5.1",
|
|
50
|
-
"jsdom": "^20.0.0",
|
|
51
|
-
"npm-run-all": "^4.1.5",
|
|
52
|
-
"prettier": "^2.8.1",
|
|
53
|
-
"ts-jest": "27.1.4",
|
|
54
|
-
"tslib": "^2.4.0",
|
|
55
|
-
"typescript": "^4.8.3"
|
|
56
|
-
},
|
|
57
27
|
"dependencies": {
|
|
58
|
-
"debug": "
|
|
59
|
-
"prosemirror-commands": "
|
|
60
|
-
"prosemirror-
|
|
61
|
-
"prosemirror-
|
|
62
|
-
"prosemirror-
|
|
63
|
-
"prosemirror-
|
|
64
|
-
"prosemirror-
|
|
65
|
-
"prosemirror-state": "^1.4.2",
|
|
66
|
-
"prosemirror-transform": "^1.7.0",
|
|
67
|
-
"prosemirror-view": "^1.29.1"
|
|
28
|
+
"debug": "4.4.1",
|
|
29
|
+
"prosemirror-commands": "1.7.1",
|
|
30
|
+
"prosemirror-history": "1.4.1",
|
|
31
|
+
"prosemirror-model": "1.25.0",
|
|
32
|
+
"prosemirror-state": "1.4.3",
|
|
33
|
+
"prosemirror-transform": "1.10.4",
|
|
34
|
+
"prosemirror-view": "1.40.0"
|
|
68
35
|
},
|
|
69
|
-
"
|
|
70
|
-
"eslint-
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@manuscripts/eslint-config": "0.5.1",
|
|
38
|
+
"@manuscripts/transform": "3.0.48",
|
|
39
|
+
"@types/debug": "4.1.12",
|
|
40
|
+
"@types/jest": "27.5.2",
|
|
41
|
+
"@types/node": "20.17.46",
|
|
42
|
+
"@typescript-eslint/eslint-plugin": "5.62.0",
|
|
43
|
+
"@typescript-eslint/parser": "5.62.0",
|
|
44
|
+
"eslint": "8.57.1",
|
|
45
|
+
"eslint-config-prettier": "8.10.0",
|
|
46
|
+
"eslint-plugin-header": "3.1.1",
|
|
47
|
+
"eslint-plugin-import": "2.31.0",
|
|
48
|
+
"eslint-plugin-jest": "27.9.0",
|
|
49
|
+
"eslint-plugin-jsx-a11y": "6.10.2",
|
|
50
|
+
"eslint-plugin-mdx": "2.3.4",
|
|
51
|
+
"eslint-plugin-node": "11.1.0",
|
|
52
|
+
"eslint-plugin-prettier": "4.2.1",
|
|
53
|
+
"eslint-plugin-promise": "6.6.0",
|
|
54
|
+
"eslint-plugin-react": "7.37.5",
|
|
55
|
+
"eslint-plugin-react-hooks": "4.6.2",
|
|
56
|
+
"eslint-plugin-simple-import-sort": "8.0.0",
|
|
57
|
+
"husky": "8.0.3",
|
|
58
|
+
"jest": "29.7.0",
|
|
59
|
+
"jest-environment-jsdom": "29.7.0",
|
|
60
|
+
"jsdom": "26.1.0",
|
|
61
|
+
"prosemirror-example-setup": "1.2.3",
|
|
62
|
+
"prosemirror-schema-list": "1.5.1",
|
|
63
|
+
"npm-run-all": "4.1.5",
|
|
64
|
+
"prettier": "2.8.8",
|
|
65
|
+
"ts-jest": "29.3.2",
|
|
66
|
+
"typescript": "4.9.5"
|
|
71
67
|
}
|
|
72
68
|
}
|