@atlaskit/editor-plugin-annotation 2.2.1 → 2.2.2
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,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-annotation
|
|
2
2
|
|
|
3
|
+
## 2.2.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#137627](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/137627)
|
|
8
|
+
[`ce160db6fb914`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ce160db6fb914) -
|
|
9
|
+
[ENGHEALTH-28514] Icongraphy uplift for editor-plugin-annotation
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 2.2.1
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -12,7 +12,6 @@ var _mediaSingle = require("@atlaskit/editor-common/media-single");
|
|
|
12
12
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
13
13
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
14
14
|
var _comment = _interopRequireDefault(require("@atlaskit/icon/core/comment"));
|
|
15
|
-
var _comment2 = _interopRequireDefault(require("@atlaskit/icon/glyph/comment"));
|
|
16
15
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
17
16
|
var _editorCommands = require("../editor-commands");
|
|
18
17
|
var _types = require("../types");
|
|
@@ -44,7 +43,7 @@ var buildToolbar = exports.buildToolbar = function buildToolbar(editorAnalyticsA
|
|
|
44
43
|
disabled: selectionValid === _types.AnnotationSelectionType.DISABLED || (api === null || api === void 0 || (_api$connectivity = api.connectivity) === null || _api$connectivity === void 0 || (_api$connectivity = _api$connectivity.sharedState) === null || _api$connectivity === void 0 || (_api$connectivity = _api$connectivity.currentState()) === null || _api$connectivity === void 0 ? void 0 : _api$connectivity.mode) === 'offline',
|
|
45
44
|
testId: _types.AnnotationTestIds.floatingToolbarCreateButton,
|
|
46
45
|
icon: _comment.default,
|
|
47
|
-
iconFallback:
|
|
46
|
+
iconFallback: _comment.default,
|
|
48
47
|
tooltipContent: selectionValid === _types.AnnotationSelectionType.DISABLED ? commentDisabledMessage : /*#__PURE__*/_react.default.createElement(_keymaps.ToolTipContent, {
|
|
49
48
|
description: createCommentMessage,
|
|
50
49
|
keymap: _keymaps.addInlineComment
|
|
@@ -5,7 +5,6 @@ import { currentMediaNodeWithPos } from '@atlaskit/editor-common/media-single';
|
|
|
5
5
|
import { annotationMessages } from '@atlaskit/editor-common/messages';
|
|
6
6
|
import { calculateToolbarPositionAboveSelection, calculateToolbarPositionTrackHead, getRangeInlineNodeNames } from '@atlaskit/editor-common/utils';
|
|
7
7
|
import CommentIcon from '@atlaskit/icon/core/comment';
|
|
8
|
-
import LegacyCommentIcon from '@atlaskit/icon/glyph/comment';
|
|
9
8
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
9
|
import { setInlineCommentDraftState } from '../editor-commands';
|
|
11
10
|
import { AnnotationSelectionType, AnnotationTestIds } from '../types';
|
|
@@ -37,7 +36,7 @@ export const buildToolbar = editorAnalyticsAPI => ({
|
|
|
37
36
|
disabled: selectionValid === AnnotationSelectionType.DISABLED || (api === null || api === void 0 ? void 0 : (_api$connectivity = api.connectivity) === null || _api$connectivity === void 0 ? void 0 : (_api$connectivity$sha = _api$connectivity.sharedState) === null || _api$connectivity$sha === void 0 ? void 0 : (_api$connectivity$sha2 = _api$connectivity$sha.currentState()) === null || _api$connectivity$sha2 === void 0 ? void 0 : _api$connectivity$sha2.mode) === 'offline',
|
|
38
37
|
testId: AnnotationTestIds.floatingToolbarCreateButton,
|
|
39
38
|
icon: CommentIcon,
|
|
40
|
-
iconFallback:
|
|
39
|
+
iconFallback: CommentIcon,
|
|
41
40
|
tooltipContent: selectionValid === AnnotationSelectionType.DISABLED ? commentDisabledMessage : /*#__PURE__*/React.createElement(ToolTipContent, {
|
|
42
41
|
description: createCommentMessage,
|
|
43
42
|
keymap: addInlineComment
|
|
@@ -5,7 +5,6 @@ import { currentMediaNodeWithPos } from '@atlaskit/editor-common/media-single';
|
|
|
5
5
|
import { annotationMessages } from '@atlaskit/editor-common/messages';
|
|
6
6
|
import { calculateToolbarPositionAboveSelection, calculateToolbarPositionTrackHead, getRangeInlineNodeNames } from '@atlaskit/editor-common/utils';
|
|
7
7
|
import CommentIcon from '@atlaskit/icon/core/comment';
|
|
8
|
-
import LegacyCommentIcon from '@atlaskit/icon/glyph/comment';
|
|
9
8
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
9
|
import { setInlineCommentDraftState } from '../editor-commands';
|
|
11
10
|
import { AnnotationSelectionType, AnnotationTestIds } from '../types';
|
|
@@ -37,7 +36,7 @@ export var buildToolbar = function buildToolbar(editorAnalyticsAPI) {
|
|
|
37
36
|
disabled: selectionValid === AnnotationSelectionType.DISABLED || (api === null || api === void 0 || (_api$connectivity = api.connectivity) === null || _api$connectivity === void 0 || (_api$connectivity = _api$connectivity.sharedState) === null || _api$connectivity === void 0 || (_api$connectivity = _api$connectivity.currentState()) === null || _api$connectivity === void 0 ? void 0 : _api$connectivity.mode) === 'offline',
|
|
38
37
|
testId: AnnotationTestIds.floatingToolbarCreateButton,
|
|
39
38
|
icon: CommentIcon,
|
|
40
|
-
iconFallback:
|
|
39
|
+
iconFallback: CommentIcon,
|
|
41
40
|
tooltipContent: selectionValid === AnnotationSelectionType.DISABLED ? commentDisabledMessage : /*#__PURE__*/React.createElement(ToolTipContent, {
|
|
42
41
|
description: createCommentMessage,
|
|
43
42
|
keymap: addInlineComment
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-annotation",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.2",
|
|
4
4
|
"description": "Annotation plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/adf-schema": "^47.6.0",
|
|
35
|
-
"@atlaskit/editor-common": "^103.
|
|
35
|
+
"@atlaskit/editor-common": "^103.1.0",
|
|
36
36
|
"@atlaskit/editor-plugin-analytics": "^2.2.0",
|
|
37
37
|
"@atlaskit/editor-plugin-connectivity": "^2.0.0",
|
|
38
38
|
"@atlaskit/editor-plugin-editor-viewmode-effects": "^2.0.0",
|