@atlaskit/editor-plugin-type-ahead 2.6.0 → 2.6.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,20 @@
1
1
  # @atlaskit/editor-plugin-type-ahead
2
2
 
3
+ ## 2.6.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#151451](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/151451)
8
+ [`5d06214eacce9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5d06214eacce9) -
9
+ [ux] Bring ounline back when ViewMore button is focused via keyboard.
10
+ - Updated dependencies
11
+
12
+ ## 2.6.1
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+
3
18
  ## 2.6.0
4
19
 
5
20
  ### Minor Changes
@@ -20,7 +20,7 @@ var _colors = require("@atlaskit/theme/colors");
20
20
 
21
21
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
22
22
 
23
- var buttonStyles = (0, _react2.css)({
23
+ var buttonStylesNoOutline = (0, _react2.css)({
24
24
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
25
25
  '& > button:hover': {
26
26
  backgroundColor: "var(--ds-background-neutral-subtle-hovered, ".concat(_colors.N30, ")")
@@ -31,6 +31,16 @@ var buttonStyles = (0, _react2.css)({
31
31
  outline: 'none'
32
32
  }
33
33
  });
34
+ var buttonStyles = (0, _react2.css)({
35
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
36
+ '& > button:hover': {
37
+ backgroundColor: "var(--ds-background-neutral-subtle-hovered, ".concat(_colors.N30, ")")
38
+ },
39
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
40
+ '& > button:focus': {
41
+ backgroundColor: "var(--ds-background-neutral-subtle-hovered, ".concat(_colors.N30, ")")
42
+ }
43
+ });
34
44
  var ViewMore = exports.ViewMore = function ViewMore(_ref) {
35
45
  var onClick = _ref.onClick,
36
46
  isFocused = _ref.isFocused;
@@ -72,7 +82,7 @@ var ViewMore = exports.ViewMore = function ViewMore(_ref) {
72
82
  return (0, _react2.jsx)(_menu.Section, {
73
83
  hasSeparator: true
74
84
  }, (0, _react2.jsx)("span", {
75
- css: buttonStyles
85
+ css: (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_8') ? buttonStyles : buttonStylesNoOutline
76
86
  }, (0, _react2.jsx)(_menu.ButtonItem, {
77
87
  ref: ref,
78
88
  onClick: onClick,
@@ -12,7 +12,7 @@ import ShowMoreHorizontalIcon from '@atlaskit/icon/core/migration/show-more-hori
12
12
  import { ButtonItem, Section } from '@atlaskit/menu';
13
13
  import { fg } from '@atlaskit/platform-feature-flags';
14
14
  import { N30 } from '@atlaskit/theme/colors';
15
- const buttonStyles = css({
15
+ const buttonStylesNoOutline = css({
16
16
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
17
17
  '& > button:hover': {
18
18
  backgroundColor: `var(--ds-background-neutral-subtle-hovered, ${N30})`
@@ -23,6 +23,16 @@ const buttonStyles = css({
23
23
  outline: 'none'
24
24
  }
25
25
  });
26
+ const buttonStyles = css({
27
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
28
+ '& > button:hover': {
29
+ backgroundColor: `var(--ds-background-neutral-subtle-hovered, ${N30})`
30
+ },
31
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
32
+ '& > button:focus': {
33
+ backgroundColor: `var(--ds-background-neutral-subtle-hovered, ${N30})`
34
+ }
35
+ });
26
36
  export const ViewMore = ({
27
37
  onClick,
28
38
  isFocused
@@ -68,7 +78,7 @@ export const ViewMore = ({
68
78
  return jsx(Section, {
69
79
  hasSeparator: true
70
80
  }, jsx("span", {
71
- css: buttonStyles
81
+ css: fg('platform_editor_controls_patch_8') ? buttonStyles : buttonStylesNoOutline
72
82
  }, jsx(ButtonItem, {
73
83
  ref: ref,
74
84
  onClick: onClick,
@@ -12,7 +12,7 @@ import ShowMoreHorizontalIcon from '@atlaskit/icon/core/migration/show-more-hori
12
12
  import { ButtonItem, Section } from '@atlaskit/menu';
13
13
  import { fg } from '@atlaskit/platform-feature-flags';
14
14
  import { N30 } from '@atlaskit/theme/colors';
15
- var buttonStyles = css({
15
+ var buttonStylesNoOutline = css({
16
16
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
17
17
  '& > button:hover': {
18
18
  backgroundColor: "var(--ds-background-neutral-subtle-hovered, ".concat(N30, ")")
@@ -23,6 +23,16 @@ var buttonStyles = css({
23
23
  outline: 'none'
24
24
  }
25
25
  });
26
+ var buttonStyles = css({
27
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
28
+ '& > button:hover': {
29
+ backgroundColor: "var(--ds-background-neutral-subtle-hovered, ".concat(N30, ")")
30
+ },
31
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
32
+ '& > button:focus': {
33
+ backgroundColor: "var(--ds-background-neutral-subtle-hovered, ".concat(N30, ")")
34
+ }
35
+ });
26
36
  export var ViewMore = function ViewMore(_ref) {
27
37
  var onClick = _ref.onClick,
28
38
  isFocused = _ref.isFocused;
@@ -64,7 +74,7 @@ export var ViewMore = function ViewMore(_ref) {
64
74
  return jsx(Section, {
65
75
  hasSeparator: true
66
76
  }, jsx("span", {
67
- css: buttonStyles
77
+ css: fg('platform_editor_controls_patch_8') ? buttonStyles : buttonStylesNoOutline
68
78
  }, jsx(ButtonItem, {
69
79
  ref: ref,
70
80
  onClick: onClick,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-type-ahead",
3
- "version": "2.6.0",
3
+ "version": "2.6.2",
4
4
  "description": "Type-ahead plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,22 +34,22 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@atlaskit/adf-schema": "^47.6.0",
37
- "@atlaskit/editor-common": "^103.22.0",
37
+ "@atlaskit/editor-common": "^104.1.0",
38
38
  "@atlaskit/editor-element-browser": "^0.1.0",
39
39
  "@atlaskit/editor-plugin-analytics": "^2.2.0",
40
40
  "@atlaskit/editor-plugin-connectivity": "^2.0.0",
41
- "@atlaskit/editor-plugin-context-panel": "^4.0.0",
41
+ "@atlaskit/editor-plugin-context-panel": "^4.1.0",
42
42
  "@atlaskit/editor-plugin-metrics": "^3.4.0",
43
43
  "@atlaskit/editor-prosemirror": "7.0.0",
44
44
  "@atlaskit/editor-shared-styles": "^3.4.0",
45
45
  "@atlaskit/heading": "^5.2.0",
46
- "@atlaskit/icon": "^25.6.0",
46
+ "@atlaskit/icon": "^25.7.0",
47
47
  "@atlaskit/menu": "^5.0.0",
48
48
  "@atlaskit/platform-feature-flags": "^1.1.0",
49
- "@atlaskit/primitives": "^14.6.0",
49
+ "@atlaskit/primitives": "^14.7.0",
50
50
  "@atlaskit/prosemirror-input-rules": "^3.3.0",
51
51
  "@atlaskit/theme": "^18.0.0",
52
- "@atlaskit/tmp-editor-statsig": "^4.15.0",
52
+ "@atlaskit/tmp-editor-statsig": "^4.18.0",
53
53
  "@atlaskit/tokens": "^4.8.0",
54
54
  "@babel/runtime": "^7.0.0",
55
55
  "@emotion/react": "^11.7.1",
@@ -122,6 +122,9 @@
122
122
  },
123
123
  "platform_editor_refactor_view_more": {
124
124
  "type": "boolean"
125
+ },
126
+ "platform_editor_controls_patch_8": {
127
+ "type": "boolean"
125
128
  }
126
129
  }
127
130
  }