@atlaskit/editor-plugin-track-changes 20.0.3 → 20.0.4
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
|
+
## 20.0.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`806c750c64957`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/806c750c64957) -
|
|
8
|
+
Clean up experiment `platform_editor_diff_plugin_extended`
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 20.0.3
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -10,7 +10,6 @@ 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 _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
14
13
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
15
14
|
var _filterSteps2 = require("./filterSteps");
|
|
16
15
|
var _invertableStep = require("./invertableStep");
|
|
@@ -152,7 +151,7 @@ var createTrackChangesPlugin = exports.createTrackChangesPlugin = function creat
|
|
|
152
151
|
return s.step;
|
|
153
152
|
}),
|
|
154
153
|
diffType: (0, _fg.fg)('platform_editor_ai_smart_diff') ? 'smart' : 'inline',
|
|
155
|
-
showIndicators: (0, _fg.fg)('platform_editor_diff_plugin_show_indicators')
|
|
154
|
+
showIndicators: (0, _fg.fg)('platform_editor_diff_plugin_show_indicators')
|
|
156
155
|
}));
|
|
157
156
|
}
|
|
158
157
|
} else if (currentShouldChangesBeDisplayed === false && prevShouldChangesBeDisplayed === true) {
|
|
@@ -1,7 +1,6 @@
|
|
|
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 { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
5
4
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
6
5
|
import { filterSteps } from './filterSteps';
|
|
7
6
|
import { InvertableStep } from './invertableStep';
|
|
@@ -123,7 +122,7 @@ export const createTrackChangesPlugin = api => {
|
|
|
123
122
|
originalDoc,
|
|
124
123
|
steps: steps.map(s => s.step),
|
|
125
124
|
diffType: fg('platform_editor_ai_smart_diff') ? 'smart' : 'inline',
|
|
126
|
-
showIndicators: fg('platform_editor_diff_plugin_show_indicators')
|
|
125
|
+
showIndicators: fg('platform_editor_diff_plugin_show_indicators')
|
|
127
126
|
}));
|
|
128
127
|
}
|
|
129
128
|
} else if (currentShouldChangesBeDisplayed === false && prevShouldChangesBeDisplayed === true) {
|
|
@@ -8,7 +8,6 @@ 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 { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
12
11
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
13
12
|
import { filterSteps } from './filterSteps';
|
|
14
13
|
import { InvertableStep } from './invertableStep';
|
|
@@ -145,7 +144,7 @@ export var createTrackChangesPlugin = function createTrackChangesPlugin(api) {
|
|
|
145
144
|
return s.step;
|
|
146
145
|
}),
|
|
147
146
|
diffType: fg('platform_editor_ai_smart_diff') ? 'smart' : 'inline',
|
|
148
|
-
showIndicators: fg('platform_editor_diff_plugin_show_indicators')
|
|
147
|
+
showIndicators: fg('platform_editor_diff_plugin_show_indicators')
|
|
149
148
|
}));
|
|
150
149
|
}
|
|
151
150
|
} 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": "20.0.
|
|
3
|
+
"version": "20.0.4",
|
|
4
4
|
"description": "ShowDiff plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -28,17 +28,17 @@
|
|
|
28
28
|
"@atlaskit/button": "^25.4.0",
|
|
29
29
|
"@atlaskit/editor-plugin-history": "21.0.0",
|
|
30
30
|
"@atlaskit/editor-plugin-primary-toolbar": "^22.0.0",
|
|
31
|
-
"@atlaskit/editor-plugin-show-diff": "19.0.
|
|
31
|
+
"@atlaskit/editor-plugin-show-diff": "19.0.4",
|
|
32
32
|
"@atlaskit/editor-plugin-toolbar": "^18.0.0",
|
|
33
33
|
"@atlaskit/editor-prosemirror": "^9.0.0",
|
|
34
|
-
"@atlaskit/editor-toolbar": "^2.
|
|
34
|
+
"@atlaskit/editor-toolbar": "^2.8.0",
|
|
35
35
|
"@atlaskit/editor-toolbar-model": "^1.2.0",
|
|
36
36
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
37
37
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
38
38
|
"@babel/runtime": "^7.0.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@atlaskit/editor-common": "^125.
|
|
41
|
+
"@atlaskit/editor-common": "^125.4.0",
|
|
42
42
|
"react": "^18.2.0 || ^19.2.0",
|
|
43
43
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
44
44
|
},
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"@atlaskit/editor-plugin-status": "^22.0.0",
|
|
86
86
|
"@atlaskit/editor-plugin-table": "^33.0.0",
|
|
87
87
|
"@atlaskit/editor-plugin-tasks-and-decisions": "^24.0.0",
|
|
88
|
-
"@atlaskit/editor-plugin-type-ahead": "^22.
|
|
88
|
+
"@atlaskit/editor-plugin-type-ahead": "^22.1.0",
|
|
89
89
|
"@atlaskit/editor-plugin-width": "^22.0.0",
|
|
90
90
|
"@atlaskit/editor-plugins": "^16.1.0",
|
|
91
91
|
"@atlaskit/primitives": "^22.5.0",
|