@atlaskit/editor-plugin-track-changes 2.6.0 → 2.6.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.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-track-changes
|
|
2
2
|
|
|
3
|
+
## 2.6.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`941fdc429d140`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/941fdc429d140) -
|
|
8
|
+
Show formatting changes in the diff
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 2.6.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../../../tsconfig.entry-points.volt.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"target": "es5",
|
|
5
|
+
"outDir": "../../../../../volt/tsDist/@atlaskit__editor-plugin-track-changes/app",
|
|
6
|
+
"rootDir": "../",
|
|
7
|
+
"composite": true
|
|
8
|
+
},
|
|
9
|
+
"include": [
|
|
10
|
+
"../src/**/*.ts",
|
|
11
|
+
"../src/**/*.tsx"
|
|
12
|
+
],
|
|
13
|
+
"exclude": [
|
|
14
|
+
"../src/**/__tests__/*",
|
|
15
|
+
"../src/**/*.test.*",
|
|
16
|
+
"../src/**/test.*",
|
|
17
|
+
"../src/**/examples.*",
|
|
18
|
+
"../src/**/examples/*",
|
|
19
|
+
"../src/**/examples/**/*",
|
|
20
|
+
"../src/**/*.stories.*",
|
|
21
|
+
"../src/**/stories/*",
|
|
22
|
+
"../src/**/stories/**/*"
|
|
23
|
+
],
|
|
24
|
+
"references": [
|
|
25
|
+
{
|
|
26
|
+
"path": "../../../design-system/button/afm-volt/tsconfig.json"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"path": "../../editor-plugin-history/afm-volt/tsconfig.json"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"path": "../../editor-plugin-primary-toolbar/afm-volt/tsconfig.json"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"path": "../../editor-plugin-show-diff/afm-volt/tsconfig.json"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"path": "../../../design-system/icon-lab/afm-volt/tsconfig.json"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"path": "../../editor-common/afm-volt/tsconfig.json"
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
}
|
|
@@ -68,7 +68,7 @@ var createTrackChangesPlugin = exports.createTrackChangesPlugin = function creat
|
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
70
|
var isDocChanged = tr.docChanged && tr.steps.some(function (step) {
|
|
71
|
-
return step instanceof _transform.ReplaceStep || step instanceof _transform.ReplaceAroundStep;
|
|
71
|
+
return step instanceof _transform.ReplaceStep || step instanceof _transform.ReplaceAroundStep || step instanceof _transform.AddMarkStep || step instanceof _transform.RemoveMarkStep;
|
|
72
72
|
});
|
|
73
73
|
if (!isDocChanged || tr.getMeta('isRemote')) {
|
|
74
74
|
// If no document changes, return the old changeSet
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
2
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
import { ReplaceAroundStep, ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
|
|
3
|
+
import { ReplaceAroundStep, ReplaceStep, AddMarkStep, RemoveMarkStep } from '@atlaskit/editor-prosemirror/transform';
|
|
4
4
|
import { filterSteps } from './filterSteps';
|
|
5
5
|
import { InvertableStep } from './invertableStep';
|
|
6
6
|
import { TOGGLE_TRACK_CHANGES_ACTION as ACTION } from './types';
|
|
@@ -46,7 +46,7 @@ export const createTrackChangesPlugin = api => {
|
|
|
46
46
|
shouldChangesBeDisplayed: !state.shouldChangesBeDisplayed
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
const isDocChanged = tr.docChanged && tr.steps.some(step => step instanceof ReplaceStep || step instanceof ReplaceAroundStep);
|
|
49
|
+
const isDocChanged = tr.docChanged && tr.steps.some(step => step instanceof ReplaceStep || step instanceof ReplaceAroundStep || step instanceof AddMarkStep || step instanceof RemoveMarkStep);
|
|
50
50
|
if (!isDocChanged || tr.getMeta('isRemote')) {
|
|
51
51
|
// If no document changes, return the old changeSet
|
|
52
52
|
return state;
|
|
@@ -7,7 +7,7 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
|
|
|
7
7
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
8
8
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
9
9
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
10
|
-
import { ReplaceAroundStep, ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
|
|
10
|
+
import { ReplaceAroundStep, ReplaceStep, AddMarkStep, RemoveMarkStep } from '@atlaskit/editor-prosemirror/transform';
|
|
11
11
|
import { filterSteps } from './filterSteps';
|
|
12
12
|
import { InvertableStep } from './invertableStep';
|
|
13
13
|
import { TOGGLE_TRACK_CHANGES_ACTION as ACTION } from './types';
|
|
@@ -61,7 +61,7 @@ export var createTrackChangesPlugin = function createTrackChangesPlugin(api) {
|
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
63
|
var isDocChanged = tr.docChanged && tr.steps.some(function (step) {
|
|
64
|
-
return step instanceof ReplaceStep || step instanceof ReplaceAroundStep;
|
|
64
|
+
return step instanceof ReplaceStep || step instanceof ReplaceAroundStep || step instanceof AddMarkStep || step instanceof RemoveMarkStep;
|
|
65
65
|
});
|
|
66
66
|
if (!isDocChanged || tr.getMeta('isRemote')) {
|
|
67
67
|
// If no document changes, return the old changeSet
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-track-changes",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.1",
|
|
4
4
|
"description": "ShowDiff plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
"@atlaskit/button": "^23.3.0",
|
|
35
35
|
"@atlaskit/editor-plugin-history": "3.1.0",
|
|
36
36
|
"@atlaskit/editor-plugin-primary-toolbar": "^4.1.0",
|
|
37
|
-
"@atlaskit/editor-plugin-show-diff": "0.1.
|
|
37
|
+
"@atlaskit/editor-plugin-show-diff": "0.1.1",
|
|
38
38
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
39
|
-
"@atlaskit/icon-lab": "^5.
|
|
39
|
+
"@atlaskit/icon-lab": "^5.5.0",
|
|
40
40
|
"@babel/runtime": "^7.0.0",
|
|
41
41
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"@atlaskit/editor-common": "^107.
|
|
44
|
+
"@atlaskit/editor-common": "^107.23.0",
|
|
45
45
|
"react": "^18.2.0"
|
|
46
46
|
},
|
|
47
47
|
"techstack": {
|