@atlaskit/editor-plugin-highlight 1.19.6 → 1.19.8

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,19 @@
1
1
  # @atlaskit/editor-plugin-highlight
2
2
 
3
+ ## 1.19.8
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 1.19.7
10
+
11
+ ### Patch Changes
12
+
13
+ - [#99080](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99080)
14
+ [`8b2f0af25c400`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8b2f0af25c400) -
15
+ [ux] ED-26062: Removed icon blue borders when selected
16
+
3
17
  ## 1.19.6
4
18
 
5
19
  ### Patch Changes
@@ -87,7 +87,10 @@ var FloatingToolbarHighlightColor = function FloatingToolbarHighlightColor(_ref)
87
87
  return (0, _react2.jsx)(_PaletteDropdown.PaletteDropdown, {
88
88
  isOpen: isDropdownOpen && !highlightState.disabled,
89
89
  activeColor: highlightState.activeColor,
90
- trigger: (0, _react2.jsx)(_uiMenu.ToolbarButton, {
90
+ trigger: (0, _react2.jsx)(_uiMenu.ToolbarButton
91
+ // eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides, @atlaskit/ui-styling-standard/no-imported-style-values
92
+ , {
93
+ css: _styles.disableBlueBorderStyles,
91
94
  buttonId: _uiMenu.TOOLBAR_BUTTON.BACKGROUND_COLOR,
92
95
  spacing: 'compact',
93
96
  disabled: highlightState.disabled,
@@ -100,7 +103,7 @@ var FloatingToolbarHighlightColor = function FloatingToolbarHighlightColor(_ref)
100
103
  onKeyDown: handleKeyDown,
101
104
  ref: toolbarItemRef,
102
105
  iconBefore:
103
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-registration, @atlaskit/platform/ensure-feature-flag-prefix
106
+ // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
104
107
  (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') ?
105
108
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
106
109
  (0, _react2.jsx)("div", {
@@ -87,7 +87,10 @@ var PrimaryToolbarHighlightColor = function PrimaryToolbarHighlightColor(_ref) {
87
87
  popupsScrollableElement: popupsScrollableElement,
88
88
  isOpen: isDropdownOpen && !highlightState.disabled,
89
89
  activeColor: highlightState.activeColor,
90
- trigger: (0, _react2.jsx)(_uiMenu.ToolbarButton, {
90
+ trigger: (0, _react2.jsx)(_uiMenu.ToolbarButton
91
+ // eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides, @atlaskit/ui-styling-standard/no-imported-style-values
92
+ , {
93
+ css: _styles.disableBlueBorderStyles,
91
94
  buttonId: _uiMenu.TOOLBAR_BUTTON.BACKGROUND_COLOR,
92
95
  spacing: isToolbarReducedSpacing ? 'none' : 'default',
93
96
  disabled: disabled || highlightState.disabled,
@@ -101,7 +104,7 @@ var PrimaryToolbarHighlightColor = function PrimaryToolbarHighlightColor(_ref) {
101
104
  onKeyDown: handleKeyDown,
102
105
  ref: toolbarItemRef,
103
106
  iconBefore:
104
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-registration
107
+ // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
105
108
  (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') ?
106
109
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
107
110
  (0, _react2.jsx)("div", {
@@ -12,7 +12,7 @@ import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
12
12
  import { DynamicStrokeIconDecoration } from '@atlaskit/editor-common/icons';
13
13
  import { toggleHighlightPalette, tooltip } from '@atlaskit/editor-common/keymaps';
14
14
  import { highlightMessages as messages } from '@atlaskit/editor-common/messages';
15
- import { expandIconContainerStyle, triggerWrapperStylesWithPadding } from '@atlaskit/editor-common/styles';
15
+ import { disableBlueBorderStyles, expandIconContainerStyle, triggerWrapperStylesWithPadding } from '@atlaskit/editor-common/styles';
16
16
  import { TOOLBAR_BUTTON, ToolbarButton } from '@atlaskit/editor-common/ui-menu';
17
17
  import { hexToEditorTextBackgroundPaletteColor } from '@atlaskit/editor-palette';
18
18
  import HighlightIcon from '@atlaskit/icon/core/highlight';
@@ -80,7 +80,10 @@ const FloatingToolbarHighlightColor = ({
80
80
  return jsx(PaletteDropdown, {
81
81
  isOpen: isDropdownOpen && !highlightState.disabled,
82
82
  activeColor: highlightState.activeColor,
83
- trigger: jsx(ToolbarButton, {
83
+ trigger: jsx(ToolbarButton
84
+ // eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides, @atlaskit/ui-styling-standard/no-imported-style-values
85
+ , {
86
+ css: disableBlueBorderStyles,
84
87
  buttonId: TOOLBAR_BUTTON.BACKGROUND_COLOR,
85
88
  spacing: 'compact',
86
89
  disabled: highlightState.disabled,
@@ -93,7 +96,7 @@ const FloatingToolbarHighlightColor = ({
93
96
  onKeyDown: handleKeyDown,
94
97
  ref: toolbarItemRef,
95
98
  iconBefore:
96
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-registration, @atlaskit/platform/ensure-feature-flag-prefix
99
+ // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
97
100
  fg('platform-visual-refresh-icons') ?
98
101
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
99
102
  jsx("div", {
@@ -12,7 +12,7 @@ import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
12
12
  import { DynamicStrokeIconDecoration } from '@atlaskit/editor-common/icons';
13
13
  import { getAriaKeyshortcuts, toggleHighlightPalette, tooltip } from '@atlaskit/editor-common/keymaps';
14
14
  import { highlightMessages as messages } from '@atlaskit/editor-common/messages';
15
- import { expandIconContainerStyle, expandIconWrapperStyle, triggerWrapperStylesWithPadding } from '@atlaskit/editor-common/styles';
15
+ import { disableBlueBorderStyles, expandIconContainerStyle, expandIconWrapperStyle, triggerWrapperStylesWithPadding } from '@atlaskit/editor-common/styles';
16
16
  import { TOOLBAR_BUTTON, ToolbarButton } from '@atlaskit/editor-common/ui-menu';
17
17
  import { hexToEditorTextBackgroundPaletteColor } from '@atlaskit/editor-palette';
18
18
  import HighlightIcon from '@atlaskit/icon/core/highlight';
@@ -86,7 +86,10 @@ const PrimaryToolbarHighlightColor = ({
86
86
  popupsScrollableElement: popupsScrollableElement,
87
87
  isOpen: isDropdownOpen && !highlightState.disabled,
88
88
  activeColor: highlightState.activeColor,
89
- trigger: jsx(ToolbarButton, {
89
+ trigger: jsx(ToolbarButton
90
+ // eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides, @atlaskit/ui-styling-standard/no-imported-style-values
91
+ , {
92
+ css: disableBlueBorderStyles,
90
93
  buttonId: TOOLBAR_BUTTON.BACKGROUND_COLOR,
91
94
  spacing: isToolbarReducedSpacing ? 'none' : 'default',
92
95
  disabled: disabled || highlightState.disabled,
@@ -100,7 +103,7 @@ const PrimaryToolbarHighlightColor = ({
100
103
  onKeyDown: handleKeyDown,
101
104
  ref: toolbarItemRef,
102
105
  iconBefore:
103
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-registration
106
+ // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
104
107
  fg('platform-visual-refresh-icons') ?
105
108
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
106
109
  jsx("div", {
@@ -13,7 +13,7 @@ import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
13
13
  import { DynamicStrokeIconDecoration } from '@atlaskit/editor-common/icons';
14
14
  import { toggleHighlightPalette, tooltip } from '@atlaskit/editor-common/keymaps';
15
15
  import { highlightMessages as messages } from '@atlaskit/editor-common/messages';
16
- import { expandIconContainerStyle, triggerWrapperStylesWithPadding } from '@atlaskit/editor-common/styles';
16
+ import { disableBlueBorderStyles, expandIconContainerStyle, triggerWrapperStylesWithPadding } from '@atlaskit/editor-common/styles';
17
17
  import { TOOLBAR_BUTTON, ToolbarButton } from '@atlaskit/editor-common/ui-menu';
18
18
  import { hexToEditorTextBackgroundPaletteColor } from '@atlaskit/editor-palette';
19
19
  import HighlightIcon from '@atlaskit/icon/core/highlight';
@@ -79,7 +79,10 @@ var FloatingToolbarHighlightColor = function FloatingToolbarHighlightColor(_ref)
79
79
  return jsx(PaletteDropdown, {
80
80
  isOpen: isDropdownOpen && !highlightState.disabled,
81
81
  activeColor: highlightState.activeColor,
82
- trigger: jsx(ToolbarButton, {
82
+ trigger: jsx(ToolbarButton
83
+ // eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides, @atlaskit/ui-styling-standard/no-imported-style-values
84
+ , {
85
+ css: disableBlueBorderStyles,
83
86
  buttonId: TOOLBAR_BUTTON.BACKGROUND_COLOR,
84
87
  spacing: 'compact',
85
88
  disabled: highlightState.disabled,
@@ -92,7 +95,7 @@ var FloatingToolbarHighlightColor = function FloatingToolbarHighlightColor(_ref)
92
95
  onKeyDown: handleKeyDown,
93
96
  ref: toolbarItemRef,
94
97
  iconBefore:
95
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-registration, @atlaskit/platform/ensure-feature-flag-prefix
98
+ // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
96
99
  fg('platform-visual-refresh-icons') ?
97
100
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
98
101
  jsx("div", {
@@ -12,7 +12,7 @@ import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
12
12
  import { DynamicStrokeIconDecoration } from '@atlaskit/editor-common/icons';
13
13
  import { getAriaKeyshortcuts, toggleHighlightPalette, tooltip } from '@atlaskit/editor-common/keymaps';
14
14
  import { highlightMessages as messages } from '@atlaskit/editor-common/messages';
15
- import { expandIconContainerStyle, expandIconWrapperStyle, triggerWrapperStylesWithPadding } from '@atlaskit/editor-common/styles';
15
+ import { disableBlueBorderStyles, expandIconContainerStyle, expandIconWrapperStyle, triggerWrapperStylesWithPadding } from '@atlaskit/editor-common/styles';
16
16
  import { TOOLBAR_BUTTON, ToolbarButton } from '@atlaskit/editor-common/ui-menu';
17
17
  import { hexToEditorTextBackgroundPaletteColor } from '@atlaskit/editor-palette';
18
18
  import HighlightIcon from '@atlaskit/icon/core/highlight';
@@ -79,7 +79,10 @@ var PrimaryToolbarHighlightColor = function PrimaryToolbarHighlightColor(_ref) {
79
79
  popupsScrollableElement: popupsScrollableElement,
80
80
  isOpen: isDropdownOpen && !highlightState.disabled,
81
81
  activeColor: highlightState.activeColor,
82
- trigger: jsx(ToolbarButton, {
82
+ trigger: jsx(ToolbarButton
83
+ // eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides, @atlaskit/ui-styling-standard/no-imported-style-values
84
+ , {
85
+ css: disableBlueBorderStyles,
83
86
  buttonId: TOOLBAR_BUTTON.BACKGROUND_COLOR,
84
87
  spacing: isToolbarReducedSpacing ? 'none' : 'default',
85
88
  disabled: disabled || highlightState.disabled,
@@ -93,7 +96,7 @@ var PrimaryToolbarHighlightColor = function PrimaryToolbarHighlightColor(_ref) {
93
96
  onKeyDown: handleKeyDown,
94
97
  ref: toolbarItemRef,
95
98
  iconBefore:
96
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-registration
99
+ // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
97
100
  fg('platform-visual-refresh-icons') ?
98
101
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
99
102
  jsx("div", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-highlight",
3
- "version": "1.19.6",
3
+ "version": "1.19.8",
4
4
  "description": "Highlight plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -37,19 +37,19 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@atlaskit/adf-schema": "^46.1.0",
40
- "@atlaskit/editor-common": "^98.0.0",
41
- "@atlaskit/editor-palette": "1.6.3",
40
+ "@atlaskit/editor-common": "^99.0.0",
41
+ "@atlaskit/editor-palette": "1.6.4",
42
42
  "@atlaskit/editor-plugin-analytics": "^1.10.0",
43
43
  "@atlaskit/editor-plugin-primary-toolbar": "^2.1.0",
44
44
  "@atlaskit/editor-plugin-text-formatting": "^1.16.0",
45
45
  "@atlaskit/editor-prosemirror": "6.2.1",
46
46
  "@atlaskit/editor-shared-styles": "^3.2.0",
47
47
  "@atlaskit/editor-tables": "^2.8.0",
48
- "@atlaskit/icon": "^23.1.0",
48
+ "@atlaskit/icon": "^23.3.0",
49
49
  "@atlaskit/platform-feature-flags": "^0.3.0",
50
50
  "@atlaskit/primitives": "^13.3.0",
51
- "@atlaskit/tmp-editor-statsig": "^2.31.0",
52
- "@atlaskit/tokens": "^2.5.0",
51
+ "@atlaskit/tmp-editor-statsig": "^2.33.0",
52
+ "@atlaskit/tokens": "^3.0.0",
53
53
  "@babel/runtime": "^7.0.0",
54
54
  "@emotion/react": "^11.7.1"
55
55
  },