@atlaskit/jql-editor 4.5.2 → 4.6.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,19 @@
1
1
  # @atlaskit/jql-editor
2
2
 
3
+ ## 4.6.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`c2faa85c89bec`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c2faa85c89bec) -
8
+ a11y fixes for read only loading states
9
+
10
+ ## 4.6.0
11
+
12
+ ### Minor Changes
13
+
14
+ - [`31ba9e3c9a657`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/31ba9e3c9a657) -
15
+ Typography migration (https://product-fabric.atlassian.net/browse/PYX-881)
16
+
3
17
  ## 4.5.2
4
18
 
5
19
  ### Patch Changes
@@ -6,5 +6,5 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.useJqlEditorAnalytics = void 0;
7
7
  var _jqlEditorCommon = require("@atlaskit/jql-editor-common");
8
8
  var useJqlEditorAnalytics = exports.useJqlEditorAnalytics = function useJqlEditorAnalytics(analyticsSource) {
9
- return (0, _jqlEditorCommon.useJqlPackageAnalytics)(analyticsSource, "@atlaskit/jql-editor", "4.5.2", _jqlEditorCommon.ANALYTICS_CHANNEL);
9
+ return (0, _jqlEditorCommon.useJqlPackageAnalytics)(analyticsSource, "@atlaskit/jql-editor", "4.6.1", _jqlEditorCommon.ANALYTICS_CHANNEL);
10
10
  };
@@ -20,8 +20,11 @@ var _baseSyntaxHelp = require("../base-syntax-help");
20
20
  var ReadOnlyControlsContent = exports.ReadOnlyControlsContent = function ReadOnlyControlsContent() {
21
21
  var _useEditorThemeContex = (0, _useEditorTheme.useEditorThemeContext)(),
22
22
  isSearch = _useEditorThemeContex.isSearch;
23
- return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_baseExpandToggle.BaseExpandToggle, {
24
- label: '',
23
+ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_baseExpandToggle.BaseExpandToggle
24
+ // The label here is for avoiding a11y violations only
25
+ // This component ReadOnlyControlsContent is only used as a fallback for a loading state
26
+ , {
27
+ label: 'Editor',
25
28
  editorId: '',
26
29
  expanded: false,
27
30
  onClick: _noop.default,
@@ -30,8 +33,11 @@ var ReadOnlyControlsContent = exports.ReadOnlyControlsContent = function ReadOnl
30
33
  label: '',
31
34
  onClick: _noop.default,
32
35
  isDisabled: true
33
- }), isSearch && /*#__PURE__*/_react.default.createElement(_baseSearch.BaseSearch, {
34
- label: '',
36
+ }), isSearch && /*#__PURE__*/_react.default.createElement(_baseSearch.BaseSearch
37
+ // The label here is for avoiding a11y violations only
38
+ // This component ReadOnlyControlsContent is only used as a fallback for a loading state
39
+ , {
40
+ label: 'Search',
35
41
  onSearch: _noop.default,
36
42
  isDisabled: true
37
43
  }));
@@ -8,6 +8,7 @@ exports.JQLEditorHelp = void 0;
8
8
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
9
9
  var _react = _interopRequireDefault(require("react"));
10
10
  var _form = require("@atlaskit/form");
11
+ var _primitives = require("@atlaskit/primitives");
11
12
  var _constants = require("../../../common/constants");
12
13
  var _useEditorTheme = require("../../../hooks/use-editor-theme");
13
14
  var _state = require("../../../state");
@@ -25,12 +26,18 @@ var JQLEditorHelp = exports.JQLEditorHelp = function JQLEditorHelp() {
25
26
  var _useScopedId = (0, _state.useScopedId)(_constants.JQL_EDITOR_HELP_CONTENT_ID),
26
27
  _useScopedId2 = (0, _slicedToArray2.default)(_useScopedId, 1),
27
28
  helpContentId = _useScopedId2[0];
28
- var SearchMessage = /*#__PURE__*/_react.default.createElement("span", null, formatMessage(_messages.messages.searchCommand, {
29
+ var SearchMessage = /*#__PURE__*/_react.default.createElement(_primitives.Text, {
30
+ size: "UNSAFE_small",
31
+ color: "inherit"
32
+ }, formatMessage(_messages.messages.searchCommand, {
29
33
  b: function b(text) {
30
34
  return /*#__PURE__*/_react.default.createElement("b", null, text);
31
35
  }
32
36
  }));
33
- var NewLineMessage = /*#__PURE__*/_react.default.createElement("span", null, formatMessage(isSearch ? _messages.messages.newLineCommand : _messages.messages.fieldNewLineCommand, {
37
+ var NewLineMessage = /*#__PURE__*/_react.default.createElement(_primitives.Text, {
38
+ size: "UNSAFE_small",
39
+ color: "inherit"
40
+ }, formatMessage(isSearch ? _messages.messages.newLineCommand : _messages.messages.fieldNewLineCommand, {
34
41
  b: function b(text) {
35
42
  return /*#__PURE__*/_react.default.createElement("b", null, text);
36
43
  }
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.default = exports.JQLEditorReadOnly = void 0;
8
8
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
9
9
  var _react = _interopRequireDefault(require("react"));
10
+ var _primitives = require("@atlaskit/primitives");
10
11
  var _useEditorTheme = require("../../hooks/use-editor-theme");
11
12
  var _splitTextByNewLine = require("../../utils/split-text-by-new-line");
12
13
  var _readOnlyControlsContent = require("../jql-editor-controls-content/read-only-controls-content");
@@ -80,8 +81,16 @@ var JQLEditorReadOnlyWithoutTheme = function JQLEditorReadOnlyWithoutTheme(_ref)
80
81
  expandedRows: expandedRows,
81
82
  lineNumbersVisible: lineNumbersVisible,
82
83
  isCompact: isCompact
84
+ // aria-expanded and aria-controls here are placeholders only. This is to avoid a11y violations.
85
+ // This component JQLEditorReadOnlyWithoutTheme is only a loading state
86
+ // Therefore the autocomplete combobox is never shown to the users
87
+ ,
88
+ "aria-expanded": false,
89
+ "aria-controls": "dummy-jql-editor-auto-complete-id",
90
+ "aria-label": "JQL query"
83
91
  }, blocks.map(function (block, index) {
84
- return /*#__PURE__*/_react.default.createElement("p", {
92
+ return /*#__PURE__*/_react.default.createElement(_primitives.Box, {
93
+ as: "p",
85
94
  key: index
86
95
  }, block);
87
96
  })), /*#__PURE__*/_react.default.createElement(_styled.EditorControls, {
@@ -32,7 +32,7 @@ var fadeOut = (0, _react.keyframes)({
32
32
  });
33
33
 
34
34
  // eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression, @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
35
- var EditorMain = exports.EditorMain = _styled.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t/* CSS reset */\n\tfont-family: ", ";\n\tfont-size: ", "px;\n\tflex-grow: 1;\n\n\t/* These styles and animations are derived from @atlaskit/tooltip */\n\n\t.", " {\n\t\tbackground-color: ", ";\n\t\tcolor: ", ";\n\t\tborder-radius: ", ";\n\t\tbox-sizing: border-box;\n\t\tfont-size: 12px;\n\t\tline-height: 1.3;\n\t\tmax-width: 240px;\n\t\tpadding: ", " ", ";\n\t\tword-wrap: break-word;\n\t\toverflow-wrap: break-word;\n\t\tz-index: ", ";\n\t\tpointer-events: none;\n\t\tposition: absolute;\n\t\tvisibility: hidden;\n\n\t\t/* Horizontally center and vertically position above the target element */\n\t\ttransform: translate(-50%, calc(-100% - ", "));\n\n\t\t&.", " {\n\t\t\tanimation: ", " 350ms cubic-bezier(0.15, 1, 0.3, 1);\n\t\t\tvisibility: visible;\n\t\t}\n\n\t\t&.", " {\n\t\t\tanimation: ", " 350ms cubic-bezier(0.15, 1, 0.3, 1);\n\t\t}\n\t}\n"])), (0, _constants.fontFamily)(), (0, _constants.fontSize)(), _constants2.TOOLTIP_CLASSNAME, "var(--ds-background-neutral-bold, ".concat(_colors.N800, ")"), "var(--ds-text-inverse, ".concat(_colors.N0, ")"), "var(--ds-border-radius-100, 3px)", "var(--ds-space-025, 2px)", "var(--ds-space-075, 6px)", _constants.layers.tooltip(), "var(--ds-space-200, 16px)", _constants2.TOOLTIP_ENTER_CLASSNAME, fadeIn, _constants2.TOOLTIP_EXIT_CLASSNAME, fadeOut);
35
+ var EditorMain = exports.EditorMain = _styled.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t/* CSS reset */\n\tfont-family: ", ";\n\tfont-size: ", "px;\n\tflex-grow: 1;\n\n\t/* These styles and animations are derived from @atlaskit/tooltip */\n\n\t.", " {\n\t\tbackground-color: ", ";\n\t\tcolor: ", ";\n\t\tborder-radius: ", ";\n\t\tbox-sizing: border-box;\n\t\tfont: ", ";\n\t\tline-height: 1.3;\n\t\tmax-width: 240px;\n\t\tpadding: ", " ", ";\n\t\tword-wrap: break-word;\n\t\toverflow-wrap: break-word;\n\t\tz-index: ", ";\n\t\tpointer-events: none;\n\t\tposition: absolute;\n\t\tvisibility: hidden;\n\n\t\t/* Horizontally center and vertically position above the target element */\n\t\ttransform: translate(-50%, calc(-100% - ", "));\n\n\t\t&.", " {\n\t\t\tanimation: ", " 350ms cubic-bezier(0.15, 1, 0.3, 1);\n\t\t\tvisibility: visible;\n\t\t}\n\n\t\t&.", " {\n\t\t\tanimation: ", " 350ms cubic-bezier(0.15, 1, 0.3, 1);\n\t\t}\n\t}\n"])), (0, _constants.fontFamily)(), (0, _constants.fontSize)(), _constants2.TOOLTIP_CLASSNAME, "var(--ds-background-neutral-bold, ".concat(_colors.N800, ")"), "var(--ds-text-inverse, ".concat(_colors.N0, ")"), "var(--ds-border-radius-100, 3px)", "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)", "var(--ds-space-025, 2px)", "var(--ds-space-075, 6px)", _constants.layers.tooltip(), "var(--ds-space-200, 16px)", _constants2.TOOLTIP_ENTER_CLASSNAME, fadeIn, _constants2.TOOLTIP_EXIT_CLASSNAME, fadeOut);
36
36
 
37
37
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
38
38
  var EditorFooter = exports.EditorFooter = _styled.default.div({
@@ -1,4 +1,4 @@
1
1
  import { ANALYTICS_CHANNEL, useJqlPackageAnalytics } from '@atlaskit/jql-editor-common';
2
2
  export const useJqlEditorAnalytics = analyticsSource => {
3
- return useJqlPackageAnalytics(analyticsSource, "@atlaskit/jql-editor", "4.5.2", ANALYTICS_CHANNEL);
3
+ return useJqlPackageAnalytics(analyticsSource, "@atlaskit/jql-editor", "4.6.1", ANALYTICS_CHANNEL);
4
4
  };
@@ -11,8 +11,11 @@ export const ReadOnlyControlsContent = () => {
11
11
  const {
12
12
  isSearch
13
13
  } = useEditorThemeContext();
14
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(BaseExpandToggle, {
15
- label: '',
14
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(BaseExpandToggle
15
+ // The label here is for avoiding a11y violations only
16
+ // This component ReadOnlyControlsContent is only used as a fallback for a loading state
17
+ , {
18
+ label: 'Editor',
16
19
  editorId: '',
17
20
  expanded: false,
18
21
  onClick: noop,
@@ -21,8 +24,11 @@ export const ReadOnlyControlsContent = () => {
21
24
  label: '',
22
25
  onClick: noop,
23
26
  isDisabled: true
24
- }), isSearch && /*#__PURE__*/React.createElement(BaseSearch, {
25
- label: '',
27
+ }), isSearch && /*#__PURE__*/React.createElement(BaseSearch
28
+ // The label here is for avoiding a11y violations only
29
+ // This component ReadOnlyControlsContent is only used as a fallback for a loading state
30
+ , {
31
+ label: 'Search',
26
32
  onSearch: noop,
27
33
  isDisabled: true
28
34
  }));
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import { HelperMessage } from '@atlaskit/form';
3
+ import { Text } from '@atlaskit/primitives';
3
4
  import { JQL_EDITOR_HELP_CONTENT_ID } from '../../../common/constants';
4
5
  import { useEditorThemeContext } from '../../../hooks/use-editor-theme';
5
6
  import { useEditorViewHasFocus, useIntl, useScopedId } from '../../../state';
@@ -14,10 +15,16 @@ export const JQLEditorHelp = () => {
14
15
  isSearch
15
16
  } = useEditorThemeContext();
16
17
  const [helpContentId] = useScopedId(JQL_EDITOR_HELP_CONTENT_ID);
17
- const SearchMessage = /*#__PURE__*/React.createElement("span", null, formatMessage(messages.searchCommand, {
18
+ const SearchMessage = /*#__PURE__*/React.createElement(Text, {
19
+ size: "UNSAFE_small",
20
+ color: "inherit"
21
+ }, formatMessage(messages.searchCommand, {
18
22
  b: text => /*#__PURE__*/React.createElement("b", null, text)
19
23
  }));
20
- const NewLineMessage = /*#__PURE__*/React.createElement("span", null, formatMessage(isSearch ? messages.newLineCommand : messages.fieldNewLineCommand, {
24
+ const NewLineMessage = /*#__PURE__*/React.createElement(Text, {
25
+ size: "UNSAFE_small",
26
+ color: "inherit"
27
+ }, formatMessage(isSearch ? messages.newLineCommand : messages.fieldNewLineCommand, {
21
28
  b: text => /*#__PURE__*/React.createElement("b", null, text)
22
29
  }));
23
30
  return /*#__PURE__*/React.createElement(HelpContainer, {
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { Box } from '@atlaskit/primitives';
2
3
  import { EditorThemeContext, useEditorTheme, useEditorThemeContext } from '../../hooks/use-editor-theme';
3
4
  import { splitTextByNewLine } from '../../utils/split-text-by-new-line';
4
5
  // eslint-disable-next-line @atlassian/tangerine/import/no-parent-imports
@@ -77,7 +78,15 @@ const JQLEditorReadOnlyWithoutTheme = ({
77
78
  expandedRows: expandedRows,
78
79
  lineNumbersVisible: lineNumbersVisible,
79
80
  isCompact: isCompact
80
- }, blocks.map((block, index) => /*#__PURE__*/React.createElement("p", {
81
+ // aria-expanded and aria-controls here are placeholders only. This is to avoid a11y violations.
82
+ // This component JQLEditorReadOnlyWithoutTheme is only a loading state
83
+ // Therefore the autocomplete combobox is never shown to the users
84
+ ,
85
+ "aria-expanded": false,
86
+ "aria-controls": "dummy-jql-editor-auto-complete-id",
87
+ "aria-label": "JQL query"
88
+ }, blocks.map((block, index) => /*#__PURE__*/React.createElement(Box, {
89
+ as: "p",
81
90
  key: index
82
91
  }, block))), /*#__PURE__*/React.createElement(EditorControls, {
83
92
  isSearch: isSearch,
@@ -39,7 +39,7 @@ export const EditorMain = styled.div`
39
39
  color: ${`var(--ds-text-inverse, ${N0})`};
40
40
  border-radius: ${"var(--ds-border-radius-100, 3px)"};
41
41
  box-sizing: border-box;
42
- font-size: 12px;
42
+ font: ${"var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"};
43
43
  line-height: 1.3;
44
44
  max-width: 240px;
45
45
  padding: ${"var(--ds-space-025, 2px)"} ${"var(--ds-space-075, 6px)"};
@@ -1,4 +1,4 @@
1
1
  import { ANALYTICS_CHANNEL, useJqlPackageAnalytics } from '@atlaskit/jql-editor-common';
2
2
  export var useJqlEditorAnalytics = function useJqlEditorAnalytics(analyticsSource) {
3
- return useJqlPackageAnalytics(analyticsSource, "@atlaskit/jql-editor", "4.5.2", ANALYTICS_CHANNEL);
3
+ return useJqlPackageAnalytics(analyticsSource, "@atlaskit/jql-editor", "4.6.1", ANALYTICS_CHANNEL);
4
4
  };
@@ -10,8 +10,11 @@ import { BaseSyntaxHelp } from '../base-syntax-help';
10
10
  export var ReadOnlyControlsContent = function ReadOnlyControlsContent() {
11
11
  var _useEditorThemeContex = useEditorThemeContext(),
12
12
  isSearch = _useEditorThemeContex.isSearch;
13
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(BaseExpandToggle, {
14
- label: '',
13
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(BaseExpandToggle
14
+ // The label here is for avoiding a11y violations only
15
+ // This component ReadOnlyControlsContent is only used as a fallback for a loading state
16
+ , {
17
+ label: 'Editor',
15
18
  editorId: '',
16
19
  expanded: false,
17
20
  onClick: noop,
@@ -20,8 +23,11 @@ export var ReadOnlyControlsContent = function ReadOnlyControlsContent() {
20
23
  label: '',
21
24
  onClick: noop,
22
25
  isDisabled: true
23
- }), isSearch && /*#__PURE__*/React.createElement(BaseSearch, {
24
- label: '',
26
+ }), isSearch && /*#__PURE__*/React.createElement(BaseSearch
27
+ // The label here is for avoiding a11y violations only
28
+ // This component ReadOnlyControlsContent is only used as a fallback for a loading state
29
+ , {
30
+ label: 'Search',
25
31
  onSearch: noop,
26
32
  isDisabled: true
27
33
  }));
@@ -1,6 +1,7 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
2
  import React from 'react';
3
3
  import { HelperMessage } from '@atlaskit/form';
4
+ import { Text } from '@atlaskit/primitives';
4
5
  import { JQL_EDITOR_HELP_CONTENT_ID } from '../../../common/constants';
5
6
  import { useEditorThemeContext } from '../../../hooks/use-editor-theme';
6
7
  import { useEditorViewHasFocus, useIntl, useScopedId } from '../../../state';
@@ -18,12 +19,18 @@ export var JQLEditorHelp = function JQLEditorHelp() {
18
19
  var _useScopedId = useScopedId(JQL_EDITOR_HELP_CONTENT_ID),
19
20
  _useScopedId2 = _slicedToArray(_useScopedId, 1),
20
21
  helpContentId = _useScopedId2[0];
21
- var SearchMessage = /*#__PURE__*/React.createElement("span", null, formatMessage(messages.searchCommand, {
22
+ var SearchMessage = /*#__PURE__*/React.createElement(Text, {
23
+ size: "UNSAFE_small",
24
+ color: "inherit"
25
+ }, formatMessage(messages.searchCommand, {
22
26
  b: function b(text) {
23
27
  return /*#__PURE__*/React.createElement("b", null, text);
24
28
  }
25
29
  }));
26
- var NewLineMessage = /*#__PURE__*/React.createElement("span", null, formatMessage(isSearch ? messages.newLineCommand : messages.fieldNewLineCommand, {
30
+ var NewLineMessage = /*#__PURE__*/React.createElement(Text, {
31
+ size: "UNSAFE_small",
32
+ color: "inherit"
33
+ }, formatMessage(isSearch ? messages.newLineCommand : messages.fieldNewLineCommand, {
27
34
  b: function b(text) {
28
35
  return /*#__PURE__*/React.createElement("b", null, text);
29
36
  }
@@ -1,6 +1,7 @@
1
1
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
2
2
  var _excluded = ["isSearch", "isCompact"];
3
3
  import React from 'react';
4
+ import { Box } from '@atlaskit/primitives';
4
5
  import { EditorThemeContext, useEditorTheme, useEditorThemeContext } from '../../hooks/use-editor-theme';
5
6
  import { splitTextByNewLine } from '../../utils/split-text-by-new-line';
6
7
  // eslint-disable-next-line @atlassian/tangerine/import/no-parent-imports
@@ -74,8 +75,16 @@ var JQLEditorReadOnlyWithoutTheme = function JQLEditorReadOnlyWithoutTheme(_ref)
74
75
  expandedRows: expandedRows,
75
76
  lineNumbersVisible: lineNumbersVisible,
76
77
  isCompact: isCompact
78
+ // aria-expanded and aria-controls here are placeholders only. This is to avoid a11y violations.
79
+ // This component JQLEditorReadOnlyWithoutTheme is only a loading state
80
+ // Therefore the autocomplete combobox is never shown to the users
81
+ ,
82
+ "aria-expanded": false,
83
+ "aria-controls": "dummy-jql-editor-auto-complete-id",
84
+ "aria-label": "JQL query"
77
85
  }, blocks.map(function (block, index) {
78
- return /*#__PURE__*/React.createElement("p", {
86
+ return /*#__PURE__*/React.createElement(Box, {
87
+ as: "p",
79
88
  key: index
80
89
  }, block);
81
90
  })), /*#__PURE__*/React.createElement(EditorControls, {
@@ -28,7 +28,7 @@ var fadeOut = keyframes({
28
28
  });
29
29
 
30
30
  // eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression, @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
31
- export var EditorMain = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t/* CSS reset */\n\tfont-family: ", ";\n\tfont-size: ", "px;\n\tflex-grow: 1;\n\n\t/* These styles and animations are derived from @atlaskit/tooltip */\n\n\t.", " {\n\t\tbackground-color: ", ";\n\t\tcolor: ", ";\n\t\tborder-radius: ", ";\n\t\tbox-sizing: border-box;\n\t\tfont-size: 12px;\n\t\tline-height: 1.3;\n\t\tmax-width: 240px;\n\t\tpadding: ", " ", ";\n\t\tword-wrap: break-word;\n\t\toverflow-wrap: break-word;\n\t\tz-index: ", ";\n\t\tpointer-events: none;\n\t\tposition: absolute;\n\t\tvisibility: hidden;\n\n\t\t/* Horizontally center and vertically position above the target element */\n\t\ttransform: translate(-50%, calc(-100% - ", "));\n\n\t\t&.", " {\n\t\t\tanimation: ", " 350ms cubic-bezier(0.15, 1, 0.3, 1);\n\t\t\tvisibility: visible;\n\t\t}\n\n\t\t&.", " {\n\t\t\tanimation: ", " 350ms cubic-bezier(0.15, 1, 0.3, 1);\n\t\t}\n\t}\n"])), fontFamily(), fontSize(), TOOLTIP_CLASSNAME, "var(--ds-background-neutral-bold, ".concat(N800, ")"), "var(--ds-text-inverse, ".concat(N0, ")"), "var(--ds-border-radius-100, 3px)", "var(--ds-space-025, 2px)", "var(--ds-space-075, 6px)", layers.tooltip(), "var(--ds-space-200, 16px)", TOOLTIP_ENTER_CLASSNAME, fadeIn, TOOLTIP_EXIT_CLASSNAME, fadeOut);
31
+ export var EditorMain = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t/* CSS reset */\n\tfont-family: ", ";\n\tfont-size: ", "px;\n\tflex-grow: 1;\n\n\t/* These styles and animations are derived from @atlaskit/tooltip */\n\n\t.", " {\n\t\tbackground-color: ", ";\n\t\tcolor: ", ";\n\t\tborder-radius: ", ";\n\t\tbox-sizing: border-box;\n\t\tfont: ", ";\n\t\tline-height: 1.3;\n\t\tmax-width: 240px;\n\t\tpadding: ", " ", ";\n\t\tword-wrap: break-word;\n\t\toverflow-wrap: break-word;\n\t\tz-index: ", ";\n\t\tpointer-events: none;\n\t\tposition: absolute;\n\t\tvisibility: hidden;\n\n\t\t/* Horizontally center and vertically position above the target element */\n\t\ttransform: translate(-50%, calc(-100% - ", "));\n\n\t\t&.", " {\n\t\t\tanimation: ", " 350ms cubic-bezier(0.15, 1, 0.3, 1);\n\t\t\tvisibility: visible;\n\t\t}\n\n\t\t&.", " {\n\t\t\tanimation: ", " 350ms cubic-bezier(0.15, 1, 0.3, 1);\n\t\t}\n\t}\n"])), fontFamily(), fontSize(), TOOLTIP_CLASSNAME, "var(--ds-background-neutral-bold, ".concat(N800, ")"), "var(--ds-text-inverse, ".concat(N0, ")"), "var(--ds-border-radius-100, 3px)", "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)", "var(--ds-space-025, 2px)", "var(--ds-space-075, 6px)", layers.tooltip(), "var(--ds-space-200, 16px)", TOOLTIP_ENTER_CLASSNAME, fadeIn, TOOLTIP_EXIT_CLASSNAME, fadeOut);
32
32
 
33
33
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
34
34
  export var EditorFooter = styled.div({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/jql-editor",
3
- "version": "4.5.2",
3
+ "version": "4.6.1",
4
4
  "description": "This package allows consumers to render an advanced JQL editor component to enable autocomplete-assisted authoring and validation of JQL queries.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -9,8 +9,6 @@
9
9
  },
10
10
  "atlassian": {
11
11
  "team": "Jira Platform: Search Experience / Empanada",
12
- "inPublicMirror": true,
13
- "releaseModel": "continuous",
14
12
  "website": {
15
13
  "name": "JQL Editor",
16
14
  "category": "JQL"
@@ -39,17 +37,18 @@
39
37
  "@atlaskit/analytics-gas-types": "^5.1.0",
40
38
  "@atlaskit/analytics-next": "^10.1.0",
41
39
  "@atlaskit/avatar": "^21.15.0",
42
- "@atlaskit/button": "^20.0.0",
40
+ "@atlaskit/button": "^20.1.0",
43
41
  "@atlaskit/editor-prosemirror": "5.0.1",
44
42
  "@atlaskit/form": "^10.5.0",
45
- "@atlaskit/icon": "^22.13.0",
43
+ "@atlaskit/icon": "^22.15.0",
46
44
  "@atlaskit/jql-ast": "^3.3.0",
47
45
  "@atlaskit/jql-autocomplete": "^2.0.0",
48
46
  "@atlaskit/jql-editor-common": "^2.0.0",
49
47
  "@atlaskit/jql-parser": "^2.0.0",
48
+ "@atlaskit/primitives": "^12.1.0",
50
49
  "@atlaskit/spinner": "^16.3.0",
51
50
  "@atlaskit/theme": "^13.0.0",
52
- "@atlaskit/tokens": "^1.58.0",
51
+ "@atlaskit/tokens": "^1.59.0",
53
52
  "@atlaskit/tooltip": "^18.7.0",
54
53
  "@babel/runtime": "^7.0.0",
55
54
  "@emotion/react": "^11.7.1",