@atlaskit/editor-plugin-annotation 2.0.1 → 2.0.2

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,14 @@
1
1
  # @atlaskit/editor-plugin-annotation
2
2
 
3
+ ## 2.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#117485](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/117485)
8
+ [`e9a8d9ba26963`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e9a8d9ba26963) -
9
+ Reorder icons, and remove some based on new editor controls. Changes under
10
+ `editor_plugin_controls` experiment.
11
+
3
12
  ## 2.0.1
4
13
 
5
14
  ### Patch Changes
@@ -43,7 +43,7 @@ var buildToolbar = exports.buildToolbar = function buildToolbar(editorAnalyticsA
43
43
  type: 'button',
44
44
  showTitle: !isViewMode && (0, _experiments.editorExperiment)('contextual_formatting_toolbar', true, {
45
45
  exposure: true
46
- }) ? false : true,
46
+ }) && (0, _experiments.editorExperiment)('platform_editor_controls', 'control') ? false : true,
47
47
  disabled: selectionValid === _types.AnnotationSelectionType.DISABLED || (api === null || api === void 0 || (_api$connectivity = api.connectivity) === null || _api$connectivity === void 0 || (_api$connectivity = _api$connectivity.sharedState) === null || _api$connectivity === void 0 || (_api$connectivity = _api$connectivity.currentState()) === null || _api$connectivity === void 0 ? void 0 : _api$connectivity.mode) === 'offline',
48
48
  testId: _types.AnnotationTestIds.floatingToolbarCreateButton,
49
49
  icon: _comment.default,
@@ -36,7 +36,7 @@ export const buildToolbar = editorAnalyticsAPI => ({
36
36
  type: 'button',
37
37
  showTitle: !isViewMode && editorExperiment('contextual_formatting_toolbar', true, {
38
38
  exposure: true
39
- }) ? false : true,
39
+ }) && editorExperiment('platform_editor_controls', 'control') ? false : true,
40
40
  disabled: selectionValid === AnnotationSelectionType.DISABLED || (api === null || api === void 0 ? void 0 : (_api$connectivity = api.connectivity) === null || _api$connectivity === void 0 ? void 0 : (_api$connectivity$sha = _api$connectivity.sharedState) === null || _api$connectivity$sha === void 0 ? void 0 : (_api$connectivity$sha2 = _api$connectivity$sha.currentState()) === null || _api$connectivity$sha2 === void 0 ? void 0 : _api$connectivity$sha2.mode) === 'offline',
41
41
  testId: AnnotationTestIds.floatingToolbarCreateButton,
42
42
  icon: CommentIcon,
@@ -36,7 +36,7 @@ export var buildToolbar = function buildToolbar(editorAnalyticsAPI) {
36
36
  type: 'button',
37
37
  showTitle: !isViewMode && editorExperiment('contextual_formatting_toolbar', true, {
38
38
  exposure: true
39
- }) ? false : true,
39
+ }) && editorExperiment('platform_editor_controls', 'control') ? false : true,
40
40
  disabled: selectionValid === AnnotationSelectionType.DISABLED || (api === null || api === void 0 || (_api$connectivity = api.connectivity) === null || _api$connectivity === void 0 || (_api$connectivity = _api$connectivity.sharedState) === null || _api$connectivity === void 0 || (_api$connectivity = _api$connectivity.currentState()) === null || _api$connectivity === void 0 ? void 0 : _api$connectivity.mode) === 'offline',
41
41
  testId: AnnotationTestIds.floatingToolbarCreateButton,
42
42
  icon: CommentIcon,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-annotation",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "Annotation plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",