@atlaskit/editor-plugin-annotation 7.0.4 → 7.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,12 @@
1
1
  # @atlaskit/editor-plugin-annotation
2
2
 
3
+ ## 7.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`2e81b0a120444`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2e81b0a120444) -
8
+ Removing platform_editor_annotation_selected_annotation as a part of clean up
9
+
3
10
  ## 7.0.4
4
11
 
5
12
  ### Patch Changes
@@ -8,7 +8,6 @@ exports.default = void 0;
8
8
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
9
9
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
10
10
  var _view = require("@atlaskit/editor-prosemirror/view");
11
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
12
11
  var _types = require("./types");
13
12
  var _utils = require("./utils");
14
13
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -37,13 +36,10 @@ var _default = exports.default = function _default(pluginState, action) {
37
36
  annotations: {}
38
37
  });
39
38
  case _types.ACTIONS.CLOSE_COMPONENT:
40
- return _objectSpread(_objectSpread(_objectSpread({}, pluginState), {}, {
39
+ return _objectSpread(_objectSpread({}, pluginState), {}, {
41
40
  isInlineCommentViewClosed: true,
42
41
  isDrafting: false,
43
- isOpeningMediaCommentFromToolbar: false
44
- }, (0, _platformFeatureFlags.fg)('platform_editor_annotation_selected_annotation') && {
45
- selectedAnnotations: []
46
- }), pluginState.isAnnotationManagerEnabled && {
42
+ isOpeningMediaCommentFromToolbar: false,
47
43
  selectedAnnotations: []
48
44
  });
49
45
  case _types.ACTIONS.ADD_INLINE_COMMENT:
@@ -1,5 +1,4 @@
1
1
  import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
2
- import { fg } from '@atlaskit/platform-feature-flags';
3
2
  import { ACTIONS } from './types';
4
3
  import { addDraftDecoration, resolveDraftBookmark } from './utils';
5
4
  export default ((pluginState, action) => {
@@ -38,12 +37,7 @@ export default ((pluginState, action) => {
38
37
  isInlineCommentViewClosed: true,
39
38
  isDrafting: false,
40
39
  isOpeningMediaCommentFromToolbar: false,
41
- ...(fg('platform_editor_annotation_selected_annotation') && {
42
- selectedAnnotations: []
43
- }),
44
- ...(pluginState.isAnnotationManagerEnabled && {
45
- selectedAnnotations: []
46
- })
40
+ selectedAnnotations: []
47
41
  };
48
42
  case ACTIONS.ADD_INLINE_COMMENT:
49
43
  const updatedPluginState = getNewDraftState(pluginState, action.data.drafting, action.data.editorState);
@@ -3,7 +3,6 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
4
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
5
  import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
6
- import { fg } from '@atlaskit/platform-feature-flags';
7
6
  import { ACTIONS } from './types';
8
7
  import { addDraftDecoration, resolveDraftBookmark } from './utils';
9
8
  export default (function (pluginState, action) {
@@ -30,13 +29,10 @@ export default (function (pluginState, action) {
30
29
  annotations: {}
31
30
  });
32
31
  case ACTIONS.CLOSE_COMPONENT:
33
- return _objectSpread(_objectSpread(_objectSpread({}, pluginState), {}, {
32
+ return _objectSpread(_objectSpread({}, pluginState), {}, {
34
33
  isInlineCommentViewClosed: true,
35
34
  isDrafting: false,
36
- isOpeningMediaCommentFromToolbar: false
37
- }, fg('platform_editor_annotation_selected_annotation') && {
38
- selectedAnnotations: []
39
- }), pluginState.isAnnotationManagerEnabled && {
35
+ isOpeningMediaCommentFromToolbar: false,
40
36
  selectedAnnotations: []
41
37
  });
42
38
  case ACTIONS.ADD_INLINE_COMMENT:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-annotation",
3
- "version": "7.0.4",
3
+ "version": "7.1.0",
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": "^30.0.0",
41
41
  "@atlaskit/platform-feature-flags": "^1.1.0",
42
- "@atlaskit/tmp-editor-statsig": "^16.30.0",
42
+ "@atlaskit/tmp-editor-statsig": "^16.31.0",
43
43
  "@babel/runtime": "^7.0.0",
44
44
  "react-intl-next": "npm:react-intl@^5.18.1"
45
45
  },
@@ -95,9 +95,6 @@
95
95
  "editor_inline_comments_on_inline_nodes": {
96
96
  "type": "boolean"
97
97
  },
98
- "platform_editor_annotation_selected_annotation": {
99
- "type": "boolean"
100
- },
101
98
  "confluence_frontend_preload_inline_comment_editor": {
102
99
  "type": "boolean"
103
100
  },