@atlaskit/editor-plugin-track-changes 14.0.20 → 14.0.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/CHANGELOG.md +16 -0
- package/dist/cjs/pm-plugins/main.js +3 -3
- package/dist/cjs/ui/TrackChangesToolbarButton.js +2 -2
- package/dist/es2019/pm-plugins/main.js +1 -1
- package/dist/es2019/ui/TrackChangesToolbarButton.js +1 -1
- package/dist/esm/pm-plugins/main.js +1 -1
- package/dist/esm/ui/TrackChangesToolbarButton.js +1 -1
- package/dist/types/pm-plugins/invertableStep.d.ts +1 -1
- package/package.json +39 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-track-changes
|
|
2
2
|
|
|
3
|
+
## 14.0.22
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 14.0.21
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`656801b9e097c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/656801b9e097c) -
|
|
14
|
+
VOLTC-331 - Migrate updated package usage in platform/editor: rewrite barrel imports of
|
|
15
|
+
voltCompliant provider packages to deep/subpath imports (consumer-side debarrel). No public API
|
|
16
|
+
changes.
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 14.0.20
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -11,7 +11,7 @@ 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
13
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
14
|
-
var
|
|
14
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
15
15
|
var _filterSteps2 = require("./filterSteps");
|
|
16
16
|
var _invertableStep = require("./invertableStep");
|
|
17
17
|
var _types = require("./types");
|
|
@@ -151,8 +151,8 @@ var createTrackChangesPlugin = exports.createTrackChangesPlugin = function creat
|
|
|
151
151
|
steps: steps.map(function (s) {
|
|
152
152
|
return s.step;
|
|
153
153
|
}),
|
|
154
|
-
diffType: (0,
|
|
155
|
-
showIndicators: (0,
|
|
154
|
+
diffType: (0, _fg.fg)('platform_editor_ai_smart_diff') ? 'smart' : 'inline',
|
|
155
|
+
showIndicators: (0, _fg.fg)('platform_editor_diff_plugin_show_indicators') && (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_diff_plugin_extended')
|
|
156
156
|
}));
|
|
157
157
|
}
|
|
158
158
|
} else if (currentShouldChangesBeDisplayed === false && prevShouldChangesBeDisplayed === true) {
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.TrackChangesToolbarButton = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _reactIntl = require("react-intl");
|
|
10
|
-
var
|
|
10
|
+
var _button = _interopRequireDefault(require("@atlaskit/button/icon/button"));
|
|
11
11
|
var _browser = require("@atlaskit/editor-common/browser");
|
|
12
12
|
var _hooks = require("@atlaskit/editor-common/hooks");
|
|
13
13
|
var _keymaps = require("@atlaskit/editor-common/keymaps");
|
|
@@ -53,7 +53,7 @@ var TrackChangesToolbarButton = exports.TrackChangesToolbarButton = function Tra
|
|
|
53
53
|
if (!isToolbarAIFCEnabled) {
|
|
54
54
|
return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarTooltip, {
|
|
55
55
|
content: tooltipContent
|
|
56
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
56
|
+
}, /*#__PURE__*/_react.default.createElement(_button.default, {
|
|
57
57
|
icon: _editorToolbar.HistoryIcon,
|
|
58
58
|
label: formatMessage(_messages.trackChangesMessages.toolbarIconLabel),
|
|
59
59
|
appearance: "subtle",
|
|
@@ -2,7 +2,7 @@ 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
4
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
6
6
|
import { filterSteps } from './filterSteps';
|
|
7
7
|
import { InvertableStep } from './invertableStep';
|
|
8
8
|
import { TOGGLE_TRACK_CHANGES_ACTION as ACTION } from './types';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
|
-
import
|
|
3
|
+
import IconButton from '@atlaskit/button/icon/button';
|
|
4
4
|
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
5
5
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
6
6
|
import { toggleViewChanges, ToolTipContent } from '@atlaskit/editor-common/keymaps';
|
|
@@ -9,7 +9,7 @@ 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
11
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
12
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
13
13
|
import { filterSteps } from './filterSteps';
|
|
14
14
|
import { InvertableStep } from './invertableStep';
|
|
15
15
|
import { TOGGLE_TRACK_CHANGES_ACTION as ACTION } from './types';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
|
-
import
|
|
3
|
+
import IconButton from '@atlaskit/button/icon/button';
|
|
4
4
|
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
5
5
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
6
6
|
import { toggleViewChanges, ToolTipContent } from '@atlaskit/editor-common/keymaps';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-track-changes",
|
|
3
|
-
"version": "14.0.
|
|
3
|
+
"version": "14.0.22",
|
|
4
4
|
"description": "ShowDiff plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"atlaskit:src": "src/index.ts",
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@atlaskit/button": "^25.2.0",
|
|
24
|
-
"@atlaskit/editor-plugin-history": "15.0.
|
|
24
|
+
"@atlaskit/editor-plugin-history": "15.0.1",
|
|
25
25
|
"@atlaskit/editor-plugin-primary-toolbar": "^16.0.0",
|
|
26
|
-
"@atlaskit/editor-plugin-show-diff": "13.1.
|
|
26
|
+
"@atlaskit/editor-plugin-show-diff": "13.1.10",
|
|
27
27
|
"@atlaskit/editor-plugin-toolbar": "^12.0.0",
|
|
28
28
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
29
29
|
"@atlaskit/editor-toolbar": "^2.6.0",
|
|
@@ -83,10 +83,46 @@
|
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|
|
85
85
|
"@af/editor-examples-helpers": "workspace:^",
|
|
86
|
+
"@atlaskit/css": "^1.0.0",
|
|
86
87
|
"@atlaskit/editor-core": "^224.4.0",
|
|
88
|
+
"@atlaskit/editor-plugin-analytics": "^15.0.0",
|
|
89
|
+
"@atlaskit/editor-plugin-block-type": "^19.1.0",
|
|
90
|
+
"@atlaskit/editor-plugin-code-block": "^17.0.0",
|
|
91
|
+
"@atlaskit/editor-plugin-composition": "^14.0.0",
|
|
92
|
+
"@atlaskit/editor-plugin-content-insertion": "^15.0.0",
|
|
93
|
+
"@atlaskit/editor-plugin-copy-button": "^15.0.0",
|
|
94
|
+
"@atlaskit/editor-plugin-date": "^17.0.0",
|
|
95
|
+
"@atlaskit/editor-plugin-decorations": "^15.0.0",
|
|
96
|
+
"@atlaskit/editor-plugin-editor-disabled": "^15.0.0",
|
|
97
|
+
"@atlaskit/editor-plugin-emoji": "^16.0.0",
|
|
98
|
+
"@atlaskit/editor-plugin-expand": "^16.1.0",
|
|
99
|
+
"@atlaskit/editor-plugin-extension": "^18.0.0",
|
|
100
|
+
"@atlaskit/editor-plugin-floating-toolbar": "^17.0.0",
|
|
101
|
+
"@atlaskit/editor-plugin-focus": "^14.0.0",
|
|
102
|
+
"@atlaskit/editor-plugin-grid": "^15.0.0",
|
|
103
|
+
"@atlaskit/editor-plugin-guideline": "^15.0.0",
|
|
104
|
+
"@atlaskit/editor-plugin-hyperlink": "^17.0.0",
|
|
105
|
+
"@atlaskit/editor-plugin-image-upload": "^15.0.0",
|
|
106
|
+
"@atlaskit/editor-plugin-insert-block": "^16.0.0",
|
|
107
|
+
"@atlaskit/editor-plugin-layout": "^16.0.0",
|
|
108
|
+
"@atlaskit/editor-plugin-list": "^17.0.0",
|
|
109
|
+
"@atlaskit/editor-plugin-media": "^17.2.0",
|
|
110
|
+
"@atlaskit/editor-plugin-mentions": "^17.1.0",
|
|
111
|
+
"@atlaskit/editor-plugin-panel": "^17.0.0",
|
|
112
|
+
"@atlaskit/editor-plugin-placeholder-text": "^16.0.0",
|
|
113
|
+
"@atlaskit/editor-plugin-quick-insert": "^15.1.0",
|
|
114
|
+
"@atlaskit/editor-plugin-rule": "^15.0.0",
|
|
115
|
+
"@atlaskit/editor-plugin-selection": "^15.0.0",
|
|
116
|
+
"@atlaskit/editor-plugin-status": "^16.0.0",
|
|
117
|
+
"@atlaskit/editor-plugin-table": "^27.1.0",
|
|
118
|
+
"@atlaskit/editor-plugin-tasks-and-decisions": "^18.0.0",
|
|
119
|
+
"@atlaskit/editor-plugin-type-ahead": "^16.1.0",
|
|
120
|
+
"@atlaskit/editor-plugin-width": "^16.0.0",
|
|
121
|
+
"@atlaskit/editor-plugins": "^16.1.0",
|
|
87
122
|
"@atlaskit/primitives": "^22.4.0",
|
|
88
123
|
"@atlaskit/synchrony-test-helpers": "workspace:^",
|
|
89
124
|
"@atlaskit/tokens": "^16.8.0",
|
|
125
|
+
"@atlaskit/util-data-test": "^19.1.0",
|
|
90
126
|
"@atlassian/structured-docs-types": "workspace:^",
|
|
91
127
|
"@compiled/react": "^1.0.2",
|
|
92
128
|
"prosemirror-dev-tools": "^4.2.0",
|