@atlaskit/editor-plugin-annotation 7.0.2 → 7.0.3

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-annotation
2
2
 
3
+ ## 7.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`ee5135bafb31d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ee5135bafb31d) -
8
+ [EDITOR-4495] clean up platform_editor_toolbar_aifc_patch_4
9
+ - Updated dependencies
10
+
3
11
  ## 7.0.2
4
12
 
5
13
  ### Patch Changes
@@ -7,7 +7,6 @@ exports.startCommentExperience = exports.shouldShowCommentButton = exports.isBut
7
7
  var _analytics = require("@atlaskit/editor-common/analytics");
8
8
  var _mediaSingle = require("@atlaskit/editor-common/media-single");
9
9
  var _editorPluginConnectivity = require("@atlaskit/editor-plugin-connectivity");
10
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
11
10
  var _editorCommands = require("../../editor-commands");
12
11
  var _utils = require("../../pm-plugins/utils");
13
12
  var _types = require("../../types");
@@ -25,7 +24,7 @@ var shouldShowCommentButton = exports.shouldShowCommentButton = function shouldS
25
24
  annotationSelectionType = _ref2.annotationSelectionType;
26
25
  var isMediaSelected = state ? (0, _mediaSingle.currentMediaNodeWithPos)(state) : false;
27
26
  var isDrafting = false;
28
- if ((0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_4', 'isEnabled', true) && state) {
27
+ if (state) {
29
28
  var _inlineCommentPluginK;
30
29
  isDrafting = ((_inlineCommentPluginK = _utils.inlineCommentPluginKey.getState(state)) === null || _inlineCommentPluginK === void 0 ? void 0 : _inlineCommentPluginK.isDrafting) || false;
31
30
  }
@@ -1,7 +1,6 @@
1
1
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD, MODE } from '@atlaskit/editor-common/analytics';
2
2
  import { currentMediaNodeWithPos } from '@atlaskit/editor-common/media-single';
3
3
  import { isOfflineMode } from '@atlaskit/editor-plugin-connectivity';
4
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
5
4
  import { setInlineCommentDraftState } from '../../editor-commands';
6
5
  import { inlineCommentPluginKey, isSelectionValid } from '../../pm-plugins/utils';
7
6
  import { AnnotationSelectionType } from '../../types';
@@ -21,7 +20,7 @@ export const shouldShowCommentButton = ({
21
20
  }) => {
22
21
  const isMediaSelected = state ? currentMediaNodeWithPos(state) : false;
23
22
  let isDrafting = false;
24
- if (expValEquals('platform_editor_toolbar_aifc_patch_4', 'isEnabled', true) && state) {
23
+ if (state) {
25
24
  var _inlineCommentPluginK;
26
25
  isDrafting = ((_inlineCommentPluginK = inlineCommentPluginKey.getState(state)) === null || _inlineCommentPluginK === void 0 ? void 0 : _inlineCommentPluginK.isDrafting) || false;
27
26
  }
@@ -1,7 +1,6 @@
1
1
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD, MODE } from '@atlaskit/editor-common/analytics';
2
2
  import { currentMediaNodeWithPos } from '@atlaskit/editor-common/media-single';
3
3
  import { isOfflineMode } from '@atlaskit/editor-plugin-connectivity';
4
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
5
4
  import { setInlineCommentDraftState } from '../../editor-commands';
6
5
  import { inlineCommentPluginKey, isSelectionValid } from '../../pm-plugins/utils';
7
6
  import { AnnotationSelectionType } from '../../types';
@@ -19,7 +18,7 @@ export var shouldShowCommentButton = function shouldShowCommentButton(_ref2) {
19
18
  annotationSelectionType = _ref2.annotationSelectionType;
20
19
  var isMediaSelected = state ? currentMediaNodeWithPos(state) : false;
21
20
  var isDrafting = false;
22
- if (expValEquals('platform_editor_toolbar_aifc_patch_4', 'isEnabled', true) && state) {
21
+ if (state) {
23
22
  var _inlineCommentPluginK;
24
23
  isDrafting = ((_inlineCommentPluginK = inlineCommentPluginKey.getState(state)) === null || _inlineCommentPluginK === void 0 ? void 0 : _inlineCommentPluginK.isDrafting) || false;
25
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-annotation",
3
- "version": "7.0.2",
3
+ "version": "7.0.3",
4
4
  "description": "Annotation plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -39,7 +39,7 @@
39
39
  "@atlaskit/editor-toolbar-model": "^0.3.0",
40
40
  "@atlaskit/icon": "^29.4.0",
41
41
  "@atlaskit/platform-feature-flags": "^1.1.0",
42
- "@atlaskit/tmp-editor-statsig": "^16.23.0",
42
+ "@atlaskit/tmp-editor-statsig": "^16.25.0",
43
43
  "@babel/runtime": "^7.0.0",
44
44
  "react-intl-next": "npm:react-intl@^5.18.1"
45
45
  },