@atlaskit/editor-plugin-highlight 1.12.6 → 1.12.7

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-highlight
2
2
 
3
+ ## 1.12.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [#122243](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/122243)
8
+ [`b1d7c5ade9b3a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b1d7c5ade9b3a) -
9
+ [ux] EDF-91 Removed platform.editor.enable-selection-toolbar_ucdwd feature flag and enabled
10
+ bydefault.
11
+
3
12
  ## 1.12.6
4
13
 
5
14
  ### Patch Changes
@@ -25,7 +25,7 @@ var highlightPlugin = exports.highlightPlugin = function highlightPlugin(_ref) {
25
25
  disabled = _ref2.disabled,
26
26
  isToolbarReducedSpacing = _ref2.isToolbarReducedSpacing,
27
27
  editorView = _ref2.editorView;
28
- return (0, _platformFeatureFlags.getBooleanFF)('platform.editor.refactor-highlight-toolbar_mo0pj') ? /*#__PURE__*/_react.default.createElement(_PrimaryToolbarHighlightColor.PrimaryToolbarHighlightColorWithIntl, {
28
+ return (0, _platformFeatureFlags.fg)('platform.editor.refactor-highlight-toolbar_mo0pj') ? /*#__PURE__*/_react.default.createElement(_PrimaryToolbarHighlightColor.PrimaryToolbarHighlightColorWithIntl, {
29
29
  popupsMountPoint: popupsMountPoint,
30
30
  popupsBoundariesElement: popupsBoundariesElement,
31
31
  popupsScrollableElement: popupsScrollableElement,
@@ -80,7 +80,7 @@ var highlightPlugin = exports.highlightPlugin = function highlightPlugin(_ref) {
80
80
  },
81
81
  pluginsOptions: {
82
82
  selectionToolbar: function selectionToolbar() {
83
- if (!(options !== null && options !== void 0 && options.textHighlightingFloatingToolbarExperiment) || !(0, _platformFeatureFlags.getBooleanFF)('platform.editor.enable-selection-toolbar_ucdwd')) {
83
+ if (!(options !== null && options !== void 0 && options.textHighlightingFloatingToolbarExperiment)) {
84
84
  return;
85
85
  }
86
86
  var toolbarCustom = {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
2
+ import { fg } from '@atlaskit/platform-feature-flags';
3
3
  import { changeColor } from './commands';
4
4
  import { keymapPlugin } from './pm-plugins/keymap';
5
5
  import { createPlugin, highlightPluginKey } from './pm-plugins/main';
@@ -19,7 +19,7 @@ export const highlightPlugin = ({
19
19
  disabled,
20
20
  isToolbarReducedSpacing,
21
21
  editorView
22
- }) => getBooleanFF('platform.editor.refactor-highlight-toolbar_mo0pj') ? /*#__PURE__*/React.createElement(PrimaryToolbarHighlightColor, {
22
+ }) => fg('platform.editor.refactor-highlight-toolbar_mo0pj') ? /*#__PURE__*/React.createElement(PrimaryToolbarHighlightColor, {
23
23
  popupsMountPoint: popupsMountPoint,
24
24
  popupsBoundariesElement: popupsBoundariesElement,
25
25
  popupsScrollableElement: popupsScrollableElement,
@@ -67,7 +67,7 @@ export const highlightPlugin = ({
67
67
  },
68
68
  pluginsOptions: {
69
69
  selectionToolbar() {
70
- if (!(options !== null && options !== void 0 && options.textHighlightingFloatingToolbarExperiment) || !getBooleanFF('platform.editor.enable-selection-toolbar_ucdwd')) {
70
+ if (!(options !== null && options !== void 0 && options.textHighlightingFloatingToolbarExperiment)) {
71
71
  return;
72
72
  }
73
73
  const toolbarCustom = {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
2
+ import { fg } from '@atlaskit/platform-feature-flags';
3
3
  import { changeColor } from './commands';
4
4
  import { keymapPlugin } from './pm-plugins/keymap';
5
5
  import { createPlugin, highlightPluginKey } from './pm-plugins/main';
@@ -18,7 +18,7 @@ export var highlightPlugin = function highlightPlugin(_ref) {
18
18
  disabled = _ref2.disabled,
19
19
  isToolbarReducedSpacing = _ref2.isToolbarReducedSpacing,
20
20
  editorView = _ref2.editorView;
21
- return getBooleanFF('platform.editor.refactor-highlight-toolbar_mo0pj') ? /*#__PURE__*/React.createElement(PrimaryToolbarHighlightColor, {
21
+ return fg('platform.editor.refactor-highlight-toolbar_mo0pj') ? /*#__PURE__*/React.createElement(PrimaryToolbarHighlightColor, {
22
22
  popupsMountPoint: popupsMountPoint,
23
23
  popupsBoundariesElement: popupsBoundariesElement,
24
24
  popupsScrollableElement: popupsScrollableElement,
@@ -73,7 +73,7 @@ export var highlightPlugin = function highlightPlugin(_ref) {
73
73
  },
74
74
  pluginsOptions: {
75
75
  selectionToolbar: function selectionToolbar() {
76
- if (!(options !== null && options !== void 0 && options.textHighlightingFloatingToolbarExperiment) || !getBooleanFF('platform.editor.enable-selection-toolbar_ucdwd')) {
76
+ if (!(options !== null && options !== void 0 && options.textHighlightingFloatingToolbarExperiment)) {
77
77
  return;
78
78
  }
79
79
  var toolbarCustom = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-highlight",
3
- "version": "1.12.6",
3
+ "version": "1.12.7",
4
4
  "description": "Highlight plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -38,7 +38,7 @@
38
38
  ".": "./src/index.ts"
39
39
  },
40
40
  "dependencies": {
41
- "@atlaskit/editor-common": "^86.0.0",
41
+ "@atlaskit/editor-common": "^86.3.0",
42
42
  "@atlaskit/editor-palette": "1.6.0",
43
43
  "@atlaskit/editor-plugin-analytics": "^1.4.0",
44
44
  "@atlaskit/editor-plugin-background-color": "^1.3.0",
@@ -50,7 +50,7 @@
50
50
  "@atlaskit/icon": "^22.6.0",
51
51
  "@atlaskit/platform-feature-flags": "^0.3.0",
52
52
  "@atlaskit/primitives": "^11.0.0",
53
- "@atlaskit/tokens": "^1.55.0",
53
+ "@atlaskit/tokens": "^1.56.0",
54
54
  "@babel/runtime": "^7.0.0",
55
55
  "@emotion/react": "^11.7.1"
56
56
  },
@@ -108,9 +108,6 @@
108
108
  "platform.editor.refactor-highlight-toolbar_mo0pj": {
109
109
  "type": "boolean"
110
110
  },
111
- "platform.editor.enable-selection-toolbar_ucdwd": {
112
- "type": "boolean"
113
- },
114
111
  "editor_inline_comments_on_inline_nodes": {
115
112
  "type": "boolean",
116
113
  "referenceOnly": "true"