@atlaskit/editor-plugin-track-changes 11.0.28 → 11.1.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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-track-changes
|
|
2
2
|
|
|
3
|
+
## 11.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`6ecdd3d765227`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6ecdd3d765227) -
|
|
8
|
+
CCI-17845 Using smart diffType to visualise changes when View changes button in main toolbar is
|
|
9
|
+
clicked.
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 11.0.29
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 11.0.28
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -10,6 +10,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
10
10
|
var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
11
11
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
12
12
|
var _transform = require("@atlaskit/editor-prosemirror/transform");
|
|
13
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
14
|
var _filterSteps2 = require("./filterSteps");
|
|
14
15
|
var _invertableStep = require("./invertableStep");
|
|
15
16
|
var _types = require("./types");
|
|
@@ -142,7 +143,8 @@ var createTrackChangesPlugin = exports.createTrackChangesPlugin = function creat
|
|
|
142
143
|
originalDoc: originalDoc,
|
|
143
144
|
steps: steps.map(function (s) {
|
|
144
145
|
return s.step;
|
|
145
|
-
})
|
|
146
|
+
}),
|
|
147
|
+
diffType: (0, _platformFeatureFlags.fg)('platform_editor_ai_smart_diff') ? 'smart' : 'inline'
|
|
146
148
|
}));
|
|
147
149
|
}
|
|
148
150
|
} else if (currentShouldChangesBeDisplayed === false && prevShouldChangesBeDisplayed === true) {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
2
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
import { ReplaceAroundStep, ReplaceStep, AddMarkStep, RemoveMarkStep, AttrStep } from '@atlaskit/editor-prosemirror/transform';
|
|
4
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
5
|
import { filterSteps } from './filterSteps';
|
|
5
6
|
import { InvertableStep } from './invertableStep';
|
|
6
7
|
import { TOGGLE_TRACK_CHANGES_ACTION as ACTION } from './types';
|
|
@@ -112,7 +113,8 @@ export const createTrackChangesPlugin = api => {
|
|
|
112
113
|
var _api$core, _api$showDiff, _api$showDiff$command;
|
|
113
114
|
api === null || api === void 0 ? void 0 : (_api$core = api.core) === null || _api$core === void 0 ? void 0 : _api$core.actions.execute(api === null || api === void 0 ? void 0 : (_api$showDiff = api.showDiff) === null || _api$showDiff === void 0 ? void 0 : (_api$showDiff$command = _api$showDiff.commands) === null || _api$showDiff$command === void 0 ? void 0 : _api$showDiff$command.showDiff({
|
|
114
115
|
originalDoc,
|
|
115
|
-
steps: steps.map(s => s.step)
|
|
116
|
+
steps: steps.map(s => s.step),
|
|
117
|
+
diffType: fg('platform_editor_ai_smart_diff') ? 'smart' : 'inline'
|
|
116
118
|
}));
|
|
117
119
|
}
|
|
118
120
|
} else if (currentShouldChangesBeDisplayed === false && prevShouldChangesBeDisplayed === true) {
|
|
@@ -8,6 +8,7 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
|
|
|
8
8
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
9
9
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
10
10
|
import { ReplaceAroundStep, ReplaceStep, AddMarkStep, RemoveMarkStep, AttrStep } from '@atlaskit/editor-prosemirror/transform';
|
|
11
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
12
|
import { filterSteps } from './filterSteps';
|
|
12
13
|
import { InvertableStep } from './invertableStep';
|
|
13
14
|
import { TOGGLE_TRACK_CHANGES_ACTION as ACTION } from './types';
|
|
@@ -135,7 +136,8 @@ export var createTrackChangesPlugin = function createTrackChangesPlugin(api) {
|
|
|
135
136
|
originalDoc: originalDoc,
|
|
136
137
|
steps: steps.map(function (s) {
|
|
137
138
|
return s.step;
|
|
138
|
-
})
|
|
139
|
+
}),
|
|
140
|
+
diffType: fg('platform_editor_ai_smart_diff') ? 'smart' : 'inline'
|
|
139
141
|
}));
|
|
140
142
|
}
|
|
141
143
|
} else if (currentShouldChangesBeDisplayed === false && prevShouldChangesBeDisplayed === true) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-track-changes",
|
|
3
|
-
"version": "11.0
|
|
3
|
+
"version": "11.1.0",
|
|
4
4
|
"description": "ShowDiff plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -23,20 +23,24 @@
|
|
|
23
23
|
"@atlaskit/button": "^24.3.0",
|
|
24
24
|
"@atlaskit/editor-plugin-history": "12.0.0",
|
|
25
25
|
"@atlaskit/editor-plugin-primary-toolbar": "^13.0.0",
|
|
26
|
-
"@atlaskit/editor-plugin-show-diff": "10.
|
|
26
|
+
"@atlaskit/editor-plugin-show-diff": "10.4.0",
|
|
27
27
|
"@atlaskit/editor-plugin-toolbar": "^9.0.0",
|
|
28
28
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
29
|
-
"@atlaskit/editor-toolbar": "^2.
|
|
29
|
+
"@atlaskit/editor-toolbar": "^2.2.0",
|
|
30
30
|
"@atlaskit/editor-toolbar-model": "^1.1.0",
|
|
31
31
|
"@atlaskit/platform-feature-flags": "^2.0.0",
|
|
32
32
|
"@babel/runtime": "^7.0.0"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"@atlaskit/editor-common": "^116.
|
|
35
|
+
"@atlaskit/editor-common": "^116.25.0",
|
|
36
36
|
"react": "^18.2.0",
|
|
37
37
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
38
38
|
},
|
|
39
|
-
"platform-feature-flags": {
|
|
39
|
+
"platform-feature-flags": {
|
|
40
|
+
"platform_editor_ai_smart_diff": {
|
|
41
|
+
"type": "boolean"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
40
44
|
"techstack": {
|
|
41
45
|
"@atlassian/frontend": {
|
|
42
46
|
"code-structure": [
|
|
@@ -75,10 +79,10 @@
|
|
|
75
79
|
},
|
|
76
80
|
"devDependencies": {
|
|
77
81
|
"@af/editor-examples-helpers": "workspace:^",
|
|
78
|
-
"@atlaskit/editor-core": "^221.
|
|
79
|
-
"@atlaskit/primitives": "^20.
|
|
82
|
+
"@atlaskit/editor-core": "^221.8.0",
|
|
83
|
+
"@atlaskit/primitives": "^20.6.0",
|
|
80
84
|
"@atlaskit/synchrony-test-helpers": "workspace:^",
|
|
81
|
-
"@atlaskit/tokens": "^15.
|
|
85
|
+
"@atlaskit/tokens": "^15.6.0",
|
|
82
86
|
"@atlassian/structured-docs-types": "workspace:^",
|
|
83
87
|
"@compiled/react": "^0.20.0",
|
|
84
88
|
"prosemirror-dev-tools": "^4.2.0",
|