@atlaskit/editor-plugin-annotation 10.4.2 → 10.5.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,16 @@
1
1
  # @atlaskit/editor-plugin-annotation
2
2
 
3
+ ## 10.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`58dc3a8cd70e2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/58dc3a8cd70e2) -
8
+ Remove confluence_frontend_preload_inline_comment_editor feature gate
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
3
14
  ## 10.4.2
4
15
 
5
16
  ### Patch Changes
@@ -103,9 +103,7 @@ var buildToolbar = exports.buildToolbar = function buildToolbar(editorAnalyticsA
103
103
  title: createCommentMessage,
104
104
  onMount: function onMount() {
105
105
  var _getRangeInlineNodeNa;
106
- if ((0, _platformFeatureFlags.fg)('confluence_frontend_preload_inline_comment_editor')) {
107
- onCommentButtonMount && onCommentButtonMount();
108
- }
106
+ onCommentButtonMount && onCommentButtonMount();
109
107
 
110
108
  // Check if the selection includes an non-text inline node
111
109
  var inlineCommentPluginState = (0, _utils2.getPluginState)(state);
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.useCommentButtonMount = void 0;
7
7
  var _react = require("react");
8
8
  var _utils = require("@atlaskit/editor-common/utils");
9
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
10
9
  var _utils2 = require("../../pm-plugins/utils");
11
10
  var _utils3 = require("./utils");
12
11
  var useCommentButtonMount = exports.useCommentButtonMount = function useCommentButtonMount(_ref) {
@@ -20,7 +19,7 @@ var useCommentButtonMount = exports.useCommentButtonMount = function useCommentB
20
19
  if (!state) {
21
20
  return;
22
21
  }
23
- if (annotationProviders !== null && annotationProviders !== void 0 && annotationProviders.inlineComment && (0, _platformFeatureFlags.fg)('confluence_frontend_preload_inline_comment_editor')) {
22
+ if (annotationProviders !== null && annotationProviders !== void 0 && annotationProviders.inlineComment) {
24
23
  var _annotationProviders$, _annotationProviders$2;
25
24
  (_annotationProviders$ = (_annotationProviders$2 = annotationProviders.inlineComment).onCommentButtonMount) === null || _annotationProviders$ === void 0 || _annotationProviders$.call(_annotationProviders$2);
26
25
  }
@@ -98,9 +98,7 @@ export const buildToolbar = editorAnalyticsAPI => ({
98
98
  title: createCommentMessage,
99
99
  onMount: () => {
100
100
  var _getRangeInlineNodeNa;
101
- if (fg('confluence_frontend_preload_inline_comment_editor')) {
102
- onCommentButtonMount && onCommentButtonMount();
103
- }
101
+ onCommentButtonMount && onCommentButtonMount();
104
102
 
105
103
  // Check if the selection includes an non-text inline node
106
104
  const inlineCommentPluginState = getPluginState(state);
@@ -1,6 +1,5 @@
1
1
  import { useEffect } from 'react';
2
2
  import { getRangeInlineNodeNames } from '@atlaskit/editor-common/utils';
3
- import { fg } from '@atlaskit/platform-feature-flags';
4
3
  import { resolveDraftBookmark } from '../../pm-plugins/utils';
5
4
  import { fireCommentButtonViewedAnalyticsEvent } from './utils';
6
5
  export const useCommentButtonMount = ({
@@ -15,7 +14,7 @@ export const useCommentButtonMount = ({
15
14
  if (!state) {
16
15
  return;
17
16
  }
18
- if (annotationProviders !== null && annotationProviders !== void 0 && annotationProviders.inlineComment && fg('confluence_frontend_preload_inline_comment_editor')) {
17
+ if (annotationProviders !== null && annotationProviders !== void 0 && annotationProviders.inlineComment) {
19
18
  var _annotationProviders$, _annotationProviders$2;
20
19
  (_annotationProviders$ = (_annotationProviders$2 = annotationProviders.inlineComment).onCommentButtonMount) === null || _annotationProviders$ === void 0 ? void 0 : _annotationProviders$.call(_annotationProviders$2);
21
20
  }
@@ -96,9 +96,7 @@ export var buildToolbar = function buildToolbar(editorAnalyticsAPI) {
96
96
  title: createCommentMessage,
97
97
  onMount: function onMount() {
98
98
  var _getRangeInlineNodeNa;
99
- if (fg('confluence_frontend_preload_inline_comment_editor')) {
100
- onCommentButtonMount && onCommentButtonMount();
101
- }
99
+ onCommentButtonMount && onCommentButtonMount();
102
100
 
103
101
  // Check if the selection includes an non-text inline node
104
102
  var inlineCommentPluginState = getPluginState(state);
@@ -1,6 +1,5 @@
1
1
  import { useEffect } from 'react';
2
2
  import { getRangeInlineNodeNames } from '@atlaskit/editor-common/utils';
3
- import { fg } from '@atlaskit/platform-feature-flags';
4
3
  import { resolveDraftBookmark } from '../../pm-plugins/utils';
5
4
  import { fireCommentButtonViewedAnalyticsEvent } from './utils';
6
5
  export var useCommentButtonMount = function useCommentButtonMount(_ref) {
@@ -14,7 +13,7 @@ export var useCommentButtonMount = function useCommentButtonMount(_ref) {
14
13
  if (!state) {
15
14
  return;
16
15
  }
17
- if (annotationProviders !== null && annotationProviders !== void 0 && annotationProviders.inlineComment && fg('confluence_frontend_preload_inline_comment_editor')) {
16
+ if (annotationProviders !== null && annotationProviders !== void 0 && annotationProviders.inlineComment) {
18
17
  var _annotationProviders$, _annotationProviders$2;
19
18
  (_annotationProviders$ = (_annotationProviders$2 = annotationProviders.inlineComment).onCommentButtonMount) === null || _annotationProviders$ === void 0 || _annotationProviders$.call(_annotationProviders$2);
20
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-annotation",
3
- "version": "10.4.2",
3
+ "version": "10.5.0",
4
4
  "description": "Annotation plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -27,7 +27,7 @@
27
27
  "sideEffects": false,
28
28
  "atlaskit:src": "src/index.ts",
29
29
  "dependencies": {
30
- "@atlaskit/adf-schema": "^52.13.0",
30
+ "@atlaskit/adf-schema": "^52.14.0",
31
31
  "@atlaskit/editor-plugin-analytics": "^10.1.0",
32
32
  "@atlaskit/editor-plugin-connectivity": "^10.1.0",
33
33
  "@atlaskit/editor-plugin-editor-viewmode-effects": "^10.1.0",
@@ -35,21 +35,23 @@
35
35
  "@atlaskit/editor-plugin-toolbar": "^7.3.0",
36
36
  "@atlaskit/editor-plugin-user-intent": "^8.2.0",
37
37
  "@atlaskit/editor-prosemirror": "^7.3.0",
38
- "@atlaskit/editor-toolbar": "^1.6.0",
38
+ "@atlaskit/editor-toolbar": "^1.7.0",
39
39
  "@atlaskit/editor-toolbar-model": "^0.5.0",
40
40
  "@atlaskit/icon": "^35.0.0",
41
41
  "@atlaskit/platform-feature-flags": "^1.1.0",
42
- "@atlaskit/tmp-editor-statsig": "^82.0.0",
42
+ "@atlaskit/tmp-editor-statsig": "^82.5.0",
43
43
  "@babel/runtime": "^7.0.0"
44
44
  },
45
45
  "peerDependencies": {
46
- "@atlaskit/editor-common": "^114.36.0",
46
+ "@atlaskit/editor-common": "^114.43.0",
47
47
  "react": "^18.2.0",
48
48
  "react-dom": "^18.2.0",
49
49
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@testing-library/react": "^16.3.0",
53
+ "react": "^18.2.0",
54
+ "react-dom": "^18.2.0",
53
55
  "react-intl": "^6.6.2",
54
56
  "wait-for-expect": "^1.2.0"
55
57
  },
@@ -96,9 +98,6 @@
96
98
  "editor_inline_comments_on_inline_nodes": {
97
99
  "type": "boolean"
98
100
  },
99
- "confluence_frontend_preload_inline_comment_editor": {
100
- "type": "boolean"
101
- },
102
101
  "confluence_frontend_new_dangling_comments_ux": {
103
102
  "type": "boolean"
104
103
  }