@atlaskit/editor-plugin-highlight 6.0.3 → 6.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,25 @@
1
1
  # @atlaskit/editor-plugin-highlight
2
2
 
3
+ ## 6.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`a3254a75cdfb7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a3254a75cdfb7) -
8
+ [ED-29448] clean up experiment platform_editor_toolbar_aifc_patch_2
9
+ - Updated dependencies
10
+
11
+ ## 6.1.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [`4ad69354a021d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4ad69354a021d) -
16
+ Remove references to platform_editor_toolbar_aifc_patch_1 experiment, remove
17
+ useToolbarDropdownMenuOld export from @atlaskit/editor-toolbar package
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies
22
+
3
23
  ## 6.0.3
4
24
 
5
25
  ### Patch Changes
@@ -78,13 +78,9 @@ function HighlightColorMenuItem(_ref2) {
78
78
  return color.value !== _uiColor.REMOVE_HIGHLIGHT_COLOR;
79
79
  }).map(function (color) {
80
80
  return _objectSpread(_objectSpread({}, color), {}, {
81
- decorator: (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_1', 'isEnabled', true) ? /*#__PURE__*/React.createElement(TextColorIconDecorator, {
81
+ decorator: /*#__PURE__*/React.createElement(TextColorIconDecorator, {
82
82
  label: color.label,
83
83
  isSelected: isSelected(color)
84
- }) : /*#__PURE__*/React.createElement(_editorToolbar.TextColorIcon, {
85
- label: color.label,
86
- size: "small",
87
- spacing: "spacious"
88
84
  })
89
85
  });
90
86
  });
@@ -92,10 +88,8 @@ function HighlightColorMenuItem(_ref2) {
92
88
  return /*#__PURE__*/React.createElement(_compiled.Stack, {
93
89
  xcss: styles.container,
94
90
  testId: "highlight-color-menu-item"
95
- }, (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_2', 'isEnabled', true) ? /*#__PURE__*/React.createElement(_heading.default, {
91
+ }, /*#__PURE__*/React.createElement(_heading.default, {
96
92
  size: "xxsmall"
97
- }, formatMessage(_messages.highlightMessages.highlight)) : /*#__PURE__*/React.createElement(_compiled.Text, {
98
- weight: "bold"
99
93
  }, formatMessage(_messages.highlightMessages.highlight)), /*#__PURE__*/React.createElement(_editorToolbar.ColorPalette, {
100
94
  onClick: function onClick(color) {
101
95
  handleHighlightColorChange(color);
@@ -113,7 +107,7 @@ function HighlightColorMenuItem(_ref2) {
113
107
  onClick: function onClick() {
114
108
  return handleHighlightColorChange(_uiColor.REMOVE_HIGHLIGHT_COLOR);
115
109
  }
116
- }, (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_2', 'isEnabled', true) ? /*#__PURE__*/React.createElement(_compiled.Text, {
110
+ }, /*#__PURE__*/React.createElement(_compiled.Text, {
117
111
  weight: "medium"
118
- }, "Remove highlight") : 'Remove highlight')));
112
+ }, "Remove highlight"))));
119
113
  }
@@ -10,7 +10,7 @@ import { getInputMethodFromParentKeys } from '@atlaskit/editor-common/toolbar';
10
10
  import { REMOVE_HIGHLIGHT_COLOR, highlightColorPaletteNext } from '@atlaskit/editor-common/ui-color';
11
11
  import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
12
12
  import { hexToEditorTextBackgroundPaletteColor } from '@atlaskit/editor-palette';
13
- import { ColorPalette, TextColorIcon, useToolbarDropdownMenu } from '@atlaskit/editor-toolbar';
13
+ import { ColorPalette, useToolbarDropdownMenu } from '@atlaskit/editor-toolbar';
14
14
  import Heading from '@atlaskit/heading';
15
15
  import EditorDoneIcon from '@atlaskit/icon/core/migration/check-mark--editor-done';
16
16
  import Icon from '@atlaskit/icon/core/text-style';
@@ -65,23 +65,17 @@ export function HighlightColorMenuItem({
65
65
  const isSelected = color => color.value === activeColor;
66
66
  return highlightColorPaletteNext.filter(color => color.value !== REMOVE_HIGHLIGHT_COLOR).map(color => ({
67
67
  ...color,
68
- decorator: expValEquals('platform_editor_toolbar_aifc_patch_1', 'isEnabled', true) ? /*#__PURE__*/React.createElement(TextColorIconDecorator, {
68
+ decorator: /*#__PURE__*/React.createElement(TextColorIconDecorator, {
69
69
  label: color.label,
70
70
  isSelected: isSelected(color)
71
- }) : /*#__PURE__*/React.createElement(TextColorIcon, {
72
- label: color.label,
73
- size: "small",
74
- spacing: "spacious"
75
71
  })
76
72
  }));
77
73
  }, [activeColor]);
78
74
  return /*#__PURE__*/React.createElement(Stack, {
79
75
  xcss: styles.container,
80
76
  testId: "highlight-color-menu-item"
81
- }, expValEquals('platform_editor_toolbar_aifc_patch_2', 'isEnabled', true) ? /*#__PURE__*/React.createElement(Heading, {
77
+ }, /*#__PURE__*/React.createElement(Heading, {
82
78
  size: "xxsmall"
83
- }, formatMessage(messages.highlight)) : /*#__PURE__*/React.createElement(Text, {
84
- weight: "bold"
85
79
  }, formatMessage(messages.highlight)), /*#__PURE__*/React.createElement(ColorPalette, {
86
80
  onClick: color => {
87
81
  handleHighlightColorChange(color);
@@ -97,7 +91,7 @@ export function HighlightColorMenuItem({
97
91
  shouldFitContainer: true,
98
92
  appearance: "subtle",
99
93
  onClick: () => handleHighlightColorChange(REMOVE_HIGHLIGHT_COLOR)
100
- }, expValEquals('platform_editor_toolbar_aifc_patch_2', 'isEnabled', true) ? /*#__PURE__*/React.createElement(Text, {
94
+ }, /*#__PURE__*/React.createElement(Text, {
101
95
  weight: "medium"
102
- }, "Remove highlight") : 'Remove highlight')));
96
+ }, "Remove highlight"))));
103
97
  }
@@ -13,7 +13,7 @@ import { getInputMethodFromParentKeys } from '@atlaskit/editor-common/toolbar';
13
13
  import { REMOVE_HIGHLIGHT_COLOR, highlightColorPaletteNext } from '@atlaskit/editor-common/ui-color';
14
14
  import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
15
15
  import { hexToEditorTextBackgroundPaletteColor } from '@atlaskit/editor-palette';
16
- import { ColorPalette, TextColorIcon, useToolbarDropdownMenu } from '@atlaskit/editor-toolbar';
16
+ import { ColorPalette, useToolbarDropdownMenu } from '@atlaskit/editor-toolbar';
17
17
  import Heading from '@atlaskit/heading';
18
18
  import EditorDoneIcon from '@atlaskit/icon/core/migration/check-mark--editor-done';
19
19
  import Icon from '@atlaskit/icon/core/text-style';
@@ -69,13 +69,9 @@ export function HighlightColorMenuItem(_ref2) {
69
69
  return color.value !== REMOVE_HIGHLIGHT_COLOR;
70
70
  }).map(function (color) {
71
71
  return _objectSpread(_objectSpread({}, color), {}, {
72
- decorator: expValEquals('platform_editor_toolbar_aifc_patch_1', 'isEnabled', true) ? /*#__PURE__*/React.createElement(TextColorIconDecorator, {
72
+ decorator: /*#__PURE__*/React.createElement(TextColorIconDecorator, {
73
73
  label: color.label,
74
74
  isSelected: isSelected(color)
75
- }) : /*#__PURE__*/React.createElement(TextColorIcon, {
76
- label: color.label,
77
- size: "small",
78
- spacing: "spacious"
79
75
  })
80
76
  });
81
77
  });
@@ -83,10 +79,8 @@ export function HighlightColorMenuItem(_ref2) {
83
79
  return /*#__PURE__*/React.createElement(Stack, {
84
80
  xcss: styles.container,
85
81
  testId: "highlight-color-menu-item"
86
- }, expValEquals('platform_editor_toolbar_aifc_patch_2', 'isEnabled', true) ? /*#__PURE__*/React.createElement(Heading, {
82
+ }, /*#__PURE__*/React.createElement(Heading, {
87
83
  size: "xxsmall"
88
- }, formatMessage(messages.highlight)) : /*#__PURE__*/React.createElement(Text, {
89
- weight: "bold"
90
84
  }, formatMessage(messages.highlight)), /*#__PURE__*/React.createElement(ColorPalette, {
91
85
  onClick: function onClick(color) {
92
86
  handleHighlightColorChange(color);
@@ -104,7 +98,7 @@ export function HighlightColorMenuItem(_ref2) {
104
98
  onClick: function onClick() {
105
99
  return handleHighlightColorChange(REMOVE_HIGHLIGHT_COLOR);
106
100
  }
107
- }, expValEquals('platform_editor_toolbar_aifc_patch_2', 'isEnabled', true) ? /*#__PURE__*/React.createElement(Text, {
101
+ }, /*#__PURE__*/React.createElement(Text, {
108
102
  weight: "medium"
109
- }, "Remove highlight") : 'Remove highlight')));
103
+ }, "Remove highlight"))));
110
104
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-highlight",
3
- "version": "6.0.3",
3
+ "version": "6.1.1",
4
4
  "description": "Highlight plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -33,7 +33,7 @@
33
33
  "atlaskit:src": "src/index.ts",
34
34
  "dependencies": {
35
35
  "@atlaskit/adf-schema": "^51.2.0",
36
- "@atlaskit/button": "^23.4.0",
36
+ "@atlaskit/button": "^23.5.0",
37
37
  "@atlaskit/css": "^0.14.0",
38
38
  "@atlaskit/editor-palette": "^2.1.0",
39
39
  "@atlaskit/editor-plugin-analytics": "^6.1.0",
@@ -44,13 +44,13 @@
44
44
  "@atlaskit/editor-prosemirror": "7.0.0",
45
45
  "@atlaskit/editor-shared-styles": "^3.6.0",
46
46
  "@atlaskit/editor-tables": "^2.9.0",
47
- "@atlaskit/editor-toolbar": "^0.11.0",
47
+ "@atlaskit/editor-toolbar": "^0.12.0",
48
48
  "@atlaskit/editor-toolbar-model": "^0.2.0",
49
49
  "@atlaskit/heading": "^5.2.0",
50
50
  "@atlaskit/icon": "^28.3.0",
51
51
  "@atlaskit/platform-feature-flags": "^1.1.0",
52
52
  "@atlaskit/primitives": "^14.15.0",
53
- "@atlaskit/tmp-editor-statsig": "^13.0.0",
53
+ "@atlaskit/tmp-editor-statsig": "^13.2.0",
54
54
  "@atlaskit/tokens": "^6.4.0",
55
55
  "@babel/runtime": "^7.0.0",
56
56
  "@emotion/react": "^11.7.1"