@atlaskit/editor-plugin-annotation 10.0.2 → 10.1.1

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,22 @@
1
1
  # @atlaskit/editor-plugin-annotation
2
2
 
3
+ ## 10.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 10.1.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`e5cdd96dcf4f9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e5cdd96dcf4f9) -
14
+ Clean up platform_editor_hydratable_ui experiment (shipped as enabled)
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies
19
+
3
20
  ## 10.0.2
4
21
 
5
22
  ### Patch Changes
@@ -9,7 +9,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
9
9
  var _react = _interopRequireDefault(require("react"));
10
10
  var _coreUtils = require("@atlaskit/editor-common/core-utils");
11
11
  var _hooks = require("@atlaskit/editor-common/hooks");
12
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
13
12
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
14
13
  var _editorCommands = require("./editor-commands");
15
14
  var _annotationMark = require("./nodeviews/annotationMark");
@@ -134,7 +133,7 @@ var annotationPlugin = exports.annotationPlugin = function annotationPlugin(_ref
134
133
  contentComponent: function contentComponent(_ref3) {
135
134
  var editorView = _ref3.editorView,
136
135
  dispatchAnalyticsEvent = _ref3.dispatchAnalyticsEvent;
137
- if (!annotationProviders || !editorView || (0, _coreUtils.isSSR)() && (0, _expValEquals.expValEquals)('platform_editor_hydratable_ui', 'isEnabled', true)) {
136
+ if (!annotationProviders || !editorView || (0, _coreUtils.isSSR)()) {
138
137
  return null;
139
138
  }
140
139
  return /*#__PURE__*/_react.default.createElement(AnnotationContentComponent, {
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
2
  import { isSSR } from '@atlaskit/editor-common/core-utils';
3
3
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
4
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
5
4
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
6
5
  import { setInlineCommentDraftState, showInlineCommentForBlockNode } from './editor-commands';
7
6
  import { annotationWithToDOMFix } from './nodeviews/annotationMark';
@@ -127,7 +126,7 @@ export const annotationPlugin = ({
127
126
  editorView,
128
127
  dispatchAnalyticsEvent
129
128
  }) {
130
- if (!annotationProviders || !editorView || isSSR() && expValEquals('platform_editor_hydratable_ui', 'isEnabled', true)) {
129
+ if (!annotationProviders || !editorView || isSSR()) {
131
130
  return null;
132
131
  }
133
132
  return /*#__PURE__*/React.createElement(AnnotationContentComponent, {
@@ -4,7 +4,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
4
4
  import React from 'react';
5
5
  import { isSSR } from '@atlaskit/editor-common/core-utils';
6
6
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
7
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
8
7
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
9
8
  import { setInlineCommentDraftState, showInlineCommentForBlockNode } from './editor-commands';
10
9
  import { annotationWithToDOMFix } from './nodeviews/annotationMark';
@@ -127,7 +126,7 @@ export var annotationPlugin = function annotationPlugin(_ref) {
127
126
  contentComponent: function contentComponent(_ref3) {
128
127
  var editorView = _ref3.editorView,
129
128
  dispatchAnalyticsEvent = _ref3.dispatchAnalyticsEvent;
130
- if (!annotationProviders || !editorView || isSSR() && expValEquals('platform_editor_hydratable_ui', 'isEnabled', true)) {
129
+ if (!annotationProviders || !editorView || isSSR()) {
131
130
  return null;
132
131
  }
133
132
  return /*#__PURE__*/React.createElement(AnnotationContentComponent, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-annotation",
3
- "version": "10.0.2",
3
+ "version": "10.1.1",
4
4
  "description": "Annotation plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -37,13 +37,13 @@
37
37
  "@atlaskit/editor-prosemirror": "^7.3.0",
38
38
  "@atlaskit/editor-toolbar": "^1.0.0",
39
39
  "@atlaskit/editor-toolbar-model": "^0.4.0",
40
- "@atlaskit/icon": "^34.2.0",
40
+ "@atlaskit/icon": "^34.3.0",
41
41
  "@atlaskit/platform-feature-flags": "^1.1.0",
42
- "@atlaskit/tmp-editor-statsig": "^64.0.0",
42
+ "@atlaskit/tmp-editor-statsig": "^66.0.0",
43
43
  "@babel/runtime": "^7.0.0"
44
44
  },
45
45
  "peerDependencies": {
46
- "@atlaskit/editor-common": "^114.5.0",
46
+ "@atlaskit/editor-common": "^114.7.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"