@atlaskit/editor-plugin-annotation 3.3.12 → 3.3.14

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,18 @@
1
1
  # @atlaskit/editor-plugin-annotation
2
2
 
3
+ ## 3.3.14
4
+
5
+ ### Patch Changes
6
+
7
+ - [`ff39734621eff`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ff39734621eff) -
8
+ Cleaning up several feature gates
9
+
10
+ ## 3.3.13
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
3
16
  ## 3.3.12
4
17
 
5
18
  ### Patch Changes
@@ -14,7 +14,6 @@ var _hooks = require("@atlaskit/editor-common/hooks");
14
14
  var _useSharedPluginStateSelector = require("@atlaskit/editor-common/use-shared-plugin-state-selector");
15
15
  var _utils = require("@atlaskit/editor-common/utils");
16
16
  var _utils2 = require("@atlaskit/editor-prosemirror/utils");
17
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
18
17
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
19
18
  var _editorCommands = require("../editor-commands");
20
19
  var _utils3 = require("../pm-plugins/utils");
@@ -167,7 +166,7 @@ function InlineCommentView(_ref4) {
167
166
  if (!isAnnotationManagerEnabled) {
168
167
  var createAnnotationResult = (0, _editorCommands.createAnnotation)(editorAnalyticsAPI, editorAPI)(id, _adfSchema.AnnotationTypes.INLINE_COMMENT, inlineCommentProvider.supportedBlockNodes)(editorView.state, editorView.dispatch);
169
168
  !editorView.hasFocus() && editorView.focus();
170
- if (!createAnnotationResult && (0, _platformFeatureFlags.fg)('confluence_frontend_handle_annotation_error')) {
169
+ if (!createAnnotationResult) {
171
170
  throw new Error('Failed to create annotation');
172
171
  }
173
172
  }
@@ -5,7 +5,6 @@ import { sharedPluginStateHookMigratorFactory, useSharedPluginStateWithSelector
5
5
  import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
6
6
  import { getAnnotationInlineNodeTypes, getRangeInlineNodeNames } from '@atlaskit/editor-common/utils';
7
7
  import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
8
- import { fg } from '@atlaskit/platform-feature-flags';
9
8
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
10
9
  import { closeComponent, createAnnotation, removeInlineCommentNearSelection, setInlineCommentDraftState, updateInlineCommentResolvedState } from '../editor-commands';
11
10
  import { getAllAnnotations, getAnnotationViewKey, getPluginState, getSelectionPositions } from '../pm-plugins/utils';
@@ -168,7 +167,7 @@ export function InlineCommentView({
168
167
  if (!isAnnotationManagerEnabled) {
169
168
  const createAnnotationResult = createAnnotation(editorAnalyticsAPI, editorAPI)(id, AnnotationTypes.INLINE_COMMENT, inlineCommentProvider.supportedBlockNodes)(editorView.state, editorView.dispatch);
170
169
  !editorView.hasFocus() && editorView.focus();
171
- if (!createAnnotationResult && fg('confluence_frontend_handle_annotation_error')) {
170
+ if (!createAnnotationResult) {
172
171
  throw new Error('Failed to create annotation');
173
172
  }
174
173
  }
@@ -6,7 +6,6 @@ import { sharedPluginStateHookMigratorFactory, useSharedPluginStateWithSelector
6
6
  import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
7
7
  import { getAnnotationInlineNodeTypes, getRangeInlineNodeNames } from '@atlaskit/editor-common/utils';
8
8
  import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
9
- import { fg } from '@atlaskit/platform-feature-flags';
10
9
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
11
10
  import { closeComponent, createAnnotation, removeInlineCommentNearSelection, setInlineCommentDraftState, updateInlineCommentResolvedState } from '../editor-commands';
12
11
  import { getAllAnnotations, getAnnotationViewKey, getPluginState, getSelectionPositions } from '../pm-plugins/utils';
@@ -158,7 +157,7 @@ export function InlineCommentView(_ref4) {
158
157
  if (!isAnnotationManagerEnabled) {
159
158
  var createAnnotationResult = createAnnotation(editorAnalyticsAPI, editorAPI)(id, AnnotationTypes.INLINE_COMMENT, inlineCommentProvider.supportedBlockNodes)(editorView.state, editorView.dispatch);
160
159
  !editorView.hasFocus() && editorView.focus();
161
- if (!createAnnotationResult && fg('confluence_frontend_handle_annotation_error')) {
160
+ if (!createAnnotationResult) {
162
161
  throw new Error('Failed to create annotation');
163
162
  }
164
163
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-annotation",
3
- "version": "3.3.12",
3
+ "version": "3.3.14",
4
4
  "description": "Annotation plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -35,17 +35,17 @@
35
35
  "@atlaskit/editor-plugin-feature-flags": "^2.0.0",
36
36
  "@atlaskit/editor-plugin-toolbar": "^0.4.0",
37
37
  "@atlaskit/editor-prosemirror": "7.0.0",
38
- "@atlaskit/editor-toolbar": "^0.5.0",
39
- "@atlaskit/editor-toolbar-model": "^0.1.0",
38
+ "@atlaskit/editor-toolbar": "^0.6.0",
39
+ "@atlaskit/editor-toolbar-model": "^0.2.0",
40
40
  "@atlaskit/icon": "^28.1.0",
41
41
  "@atlaskit/onboarding": "^14.3.0",
42
42
  "@atlaskit/platform-feature-flags": "^1.1.0",
43
- "@atlaskit/tmp-editor-statsig": "^11.9.0",
43
+ "@atlaskit/tmp-editor-statsig": "^11.12.0",
44
44
  "@babel/runtime": "^7.0.0",
45
45
  "react-intl-next": "npm:react-intl@^5.18.1"
46
46
  },
47
47
  "peerDependencies": {
48
- "@atlaskit/editor-common": "^107.33.0",
48
+ "@atlaskit/editor-common": "^107.35.0",
49
49
  "react": "^18.2.0",
50
50
  "react-dom": "^18.2.0"
51
51
  },
@@ -114,9 +114,6 @@
114
114
  "cc_comments_track_view_inline_comment_action": {
115
115
  "type": "boolean"
116
116
  },
117
- "confluence_frontend_handle_annotation_error": {
118
- "type": "boolean"
119
- },
120
117
  "confluence_frontend_preload_inline_comment_editor": {
121
118
  "type": "boolean"
122
119
  },