@atlaskit/jql-editor 5.10.0 → 5.11.0
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 +15 -0
- package/dist/cjs/plugins/autocomplete/components/autocomplete-option/index.js +2 -2
- package/dist/cjs/ui/jql-editor-controls-content/base-search/index.js +3 -3
- package/dist/cjs/ui/jql-editor-layout/index.js +5 -1
- package/dist/es2019/plugins/autocomplete/components/autocomplete-option/index.js +1 -1
- package/dist/es2019/ui/jql-editor-controls-content/base-search/index.js +1 -1
- package/dist/es2019/ui/jql-editor-layout/index.js +6 -1
- package/dist/esm/plugins/autocomplete/components/autocomplete-option/index.js +1 -1
- package/dist/esm/ui/jql-editor-controls-content/base-search/index.js +1 -1
- package/dist/esm/ui/jql-editor-layout/index.js +5 -1
- package/package.json +9 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/jql-editor
|
|
2
2
|
|
|
3
|
+
## 5.11.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`1fd35e2768b70`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1fd35e2768b70) -
|
|
8
|
+
fixing eslint no literal strings
|
|
9
|
+
|
|
10
|
+
## 5.10.1
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [`6a82d7964a37b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6a82d7964a37b) -
|
|
15
|
+
Icon entrypoint migration
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 5.10.0
|
|
4
19
|
|
|
5
20
|
### Minor Changes
|
|
@@ -17,8 +17,8 @@ var _calendar = _interopRequireDefault(require("@atlaskit/icon/core/calendar"));
|
|
|
17
17
|
var _clock = _interopRequireDefault(require("@atlaskit/icon/core/clock"));
|
|
18
18
|
var _dataNumber = _interopRequireDefault(require("@atlaskit/icon/core/data-number"));
|
|
19
19
|
var _fieldDropdown = _interopRequireDefault(require("@atlaskit/icon/core/field-dropdown"));
|
|
20
|
-
var _statusInformationEditorPanel = _interopRequireDefault(require("@atlaskit/icon/core/migration/status-information--editor-panel"));
|
|
21
20
|
var _personAvatar = _interopRequireDefault(require("@atlaskit/icon/core/person-avatar"));
|
|
21
|
+
var _statusInformation = _interopRequireDefault(require("@atlaskit/icon/core/status-information"));
|
|
22
22
|
var _tag = _interopRequireDefault(require("@atlaskit/icon/core/tag"));
|
|
23
23
|
var _task = _interopRequireDefault(require("@atlaskit/icon/core/task"));
|
|
24
24
|
var _text = _interopRequireDefault(require("@atlaskit/icon/core/text"));
|
|
@@ -163,7 +163,7 @@ var AutocompleteOption = /*#__PURE__*/(0, _react.forwardRef)(function (props, re
|
|
|
163
163
|
}), isDeprecated ? /*#__PURE__*/_react.default.createElement(_styled.DeprecatedOptionContainer, null, optionName, /*#__PURE__*/_react.default.createElement(_tooltip.default, {
|
|
164
164
|
content: deprecatedTooltipContent,
|
|
165
165
|
position: 'right'
|
|
166
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
166
|
+
}, /*#__PURE__*/_react.default.createElement(_statusInformation.default, {
|
|
167
167
|
spacing: "spacious",
|
|
168
168
|
testId: "jql-editor-deprecated-icon",
|
|
169
169
|
label: "",
|
|
@@ -10,7 +10,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _button = require("@atlaskit/button");
|
|
12
12
|
var _new = require("@atlaskit/button/new");
|
|
13
|
-
var
|
|
13
|
+
var _search = _interopRequireDefault(require("@atlaskit/icon/core/search"));
|
|
14
14
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
15
15
|
var _primitives = require("@atlaskit/primitives");
|
|
16
16
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
@@ -52,7 +52,7 @@ var BaseSearch = exports.BaseSearch = function BaseSearch(_ref) {
|
|
|
52
52
|
onClick: onSearch,
|
|
53
53
|
onKeyDown: preventRepeatClick,
|
|
54
54
|
isLoading: isSearching,
|
|
55
|
-
icon:
|
|
55
|
+
icon: _search.default
|
|
56
56
|
}, (0, _platformFeatureFlags.fg)('add_nin_press_interactions') && {
|
|
57
57
|
interactionName: 'jql-editor-base-search-button'
|
|
58
58
|
})))) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_button.LoadingButton, (0, _extends2.default)({
|
|
@@ -69,7 +69,7 @@ var BaseSearch = exports.BaseSearch = function BaseSearch(_ref) {
|
|
|
69
69
|
isLoading: isSearching,
|
|
70
70
|
iconBefore: /*#__PURE__*/_react.default.createElement(_primitives.Box, {
|
|
71
71
|
xcss: iconStyle
|
|
72
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
72
|
+
}, /*#__PURE__*/_react.default.createElement(_search.default, {
|
|
73
73
|
color: "currentColor",
|
|
74
74
|
label: '',
|
|
75
75
|
LEGACY_size: 'medium',
|
|
@@ -8,11 +8,13 @@ exports.default = exports.JQLEditorReadOnly = void 0;
|
|
|
8
8
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
var _reactIntlNext = require("react-intl-next");
|
|
11
12
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
12
13
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
13
14
|
var _useEditorTheme = require("../../hooks/use-editor-theme");
|
|
14
15
|
var _splitTextByNewLine = require("../../utils/split-text-by-new-line");
|
|
15
16
|
var _readOnlyControlsContent = require("../jql-editor-controls-content/read-only-controls-content");
|
|
17
|
+
var _messages = require("../messages");
|
|
16
18
|
var _styled = require("./styled");
|
|
17
19
|
var _excluded = ["isSearch", "isCompact", "defaultRows"]; // eslint-disable-next-line @atlassian/tangerine/import/no-parent-imports
|
|
18
20
|
var JQLEditorLayout = function JQLEditorLayout(props) {
|
|
@@ -78,6 +80,8 @@ var JQLEditorReadOnlyWithoutTheme = function JQLEditorReadOnlyWithoutTheme(_ref)
|
|
|
78
80
|
defaultRows = _useEditorThemeContex2.defaultRows;
|
|
79
81
|
var blocks = (0, _splitTextByNewLine.splitTextByNewLine)(query);
|
|
80
82
|
var lineNumbersVisible = blocks.length > 1;
|
|
83
|
+
var _useIntl = (0, _reactIntlNext.useIntl)(),
|
|
84
|
+
formatMessage = _useIntl.formatMessage;
|
|
81
85
|
return /*#__PURE__*/_react.default.createElement(_styled.EditorMain, null, /*#__PURE__*/_react.default.createElement(_styled.ReadOnlyEditorViewContainer, null, /*#__PURE__*/_react.default.createElement(_styled.LineNumberToolbar, {
|
|
82
86
|
lineNumbersVisible: lineNumbersVisible
|
|
83
87
|
}), /*#__PURE__*/_react.default.createElement(_styled.ReadOnlyEditorView, {
|
|
@@ -96,7 +100,7 @@ var JQLEditorReadOnlyWithoutTheme = function JQLEditorReadOnlyWithoutTheme(_ref)
|
|
|
96
100
|
"aria-controls": "dummy-jql-editor-auto-complete-id"
|
|
97
101
|
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
|
|
98
102
|
,
|
|
99
|
-
"aria-label":
|
|
103
|
+
"aria-label": (0, _platformFeatureFlags.fg)('enghealth-46329-no-literal-strings') ? formatMessage(_messages.messages.inputLabel) : 'JQL query',
|
|
100
104
|
defaultRows: defaultRows
|
|
101
105
|
}, blocks.map(function (block, index) {
|
|
102
106
|
return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
@@ -7,8 +7,8 @@ import CalendarIcon from '@atlaskit/icon/core/calendar';
|
|
|
7
7
|
import ClockIcon from '@atlaskit/icon/core/clock';
|
|
8
8
|
import DataNumberIcon from '@atlaskit/icon/core/data-number';
|
|
9
9
|
import FieldDropdownIcon from '@atlaskit/icon/core/field-dropdown';
|
|
10
|
-
import InfoIcon from '@atlaskit/icon/core/migration/status-information--editor-panel';
|
|
11
10
|
import PersonAvatarIcon from '@atlaskit/icon/core/person-avatar';
|
|
11
|
+
import InfoIcon from '@atlaskit/icon/core/status-information';
|
|
12
12
|
import TagIcon from '@atlaskit/icon/core/tag';
|
|
13
13
|
import CheckboxIcon from '@atlaskit/icon/core/task';
|
|
14
14
|
import TextIcon from '@atlaskit/icon/core/text';
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React, { useCallback } from 'react';
|
|
3
3
|
import { LoadingButton } from '@atlaskit/button';
|
|
4
4
|
import { IconButton } from '@atlaskit/button/new';
|
|
5
|
-
import SearchIcon from '@atlaskit/icon/core/
|
|
5
|
+
import SearchIcon from '@atlaskit/icon/core/search';
|
|
6
6
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
7
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
8
8
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import { useIntl } from 'react-intl-next';
|
|
3
4
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
5
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
5
6
|
import { EditorThemeContext, useEditorTheme, useEditorThemeContext } from '../../hooks/use-editor-theme';
|
|
6
7
|
import { splitTextByNewLine } from '../../utils/split-text-by-new-line';
|
|
7
8
|
// eslint-disable-next-line @atlassian/tangerine/import/no-parent-imports
|
|
8
9
|
import { ReadOnlyControlsContent } from '../jql-editor-controls-content/read-only-controls-content';
|
|
10
|
+
import { messages } from '../messages';
|
|
9
11
|
import { EditorControls, EditorFooter, EditorMain, EditorView, EditorViewContainer, LineNumberToolbar, ReadOnlyEditorView, ReadOnlyEditorViewContainer } from './styled';
|
|
10
12
|
const JQLEditorLayout = props => {
|
|
11
13
|
const {
|
|
@@ -75,6 +77,9 @@ const JQLEditorReadOnlyWithoutTheme = ({
|
|
|
75
77
|
} = useEditorThemeContext();
|
|
76
78
|
const blocks = splitTextByNewLine(query);
|
|
77
79
|
const lineNumbersVisible = blocks.length > 1;
|
|
80
|
+
const {
|
|
81
|
+
formatMessage
|
|
82
|
+
} = useIntl();
|
|
78
83
|
return /*#__PURE__*/React.createElement(EditorMain, null, /*#__PURE__*/React.createElement(ReadOnlyEditorViewContainer, null, /*#__PURE__*/React.createElement(LineNumberToolbar, {
|
|
79
84
|
lineNumbersVisible: lineNumbersVisible
|
|
80
85
|
}), /*#__PURE__*/React.createElement(ReadOnlyEditorView, {
|
|
@@ -93,7 +98,7 @@ const JQLEditorReadOnlyWithoutTheme = ({
|
|
|
93
98
|
"aria-controls": "dummy-jql-editor-auto-complete-id"
|
|
94
99
|
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
|
|
95
100
|
,
|
|
96
|
-
"aria-label":
|
|
101
|
+
"aria-label": fg('enghealth-46329-no-literal-strings') ? formatMessage(messages.inputLabel) : 'JQL query',
|
|
97
102
|
defaultRows: defaultRows
|
|
98
103
|
}, blocks.map((block, index) => /*#__PURE__*/React.createElement(Box, {
|
|
99
104
|
as: "p",
|
|
@@ -9,8 +9,8 @@ import CalendarIcon from '@atlaskit/icon/core/calendar';
|
|
|
9
9
|
import ClockIcon from '@atlaskit/icon/core/clock';
|
|
10
10
|
import DataNumberIcon from '@atlaskit/icon/core/data-number';
|
|
11
11
|
import FieldDropdownIcon from '@atlaskit/icon/core/field-dropdown';
|
|
12
|
-
import InfoIcon from '@atlaskit/icon/core/migration/status-information--editor-panel';
|
|
13
12
|
import PersonAvatarIcon from '@atlaskit/icon/core/person-avatar';
|
|
13
|
+
import InfoIcon from '@atlaskit/icon/core/status-information';
|
|
14
14
|
import TagIcon from '@atlaskit/icon/core/tag';
|
|
15
15
|
import CheckboxIcon from '@atlaskit/icon/core/task';
|
|
16
16
|
import TextIcon from '@atlaskit/icon/core/text';
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React, { useCallback } from 'react';
|
|
3
3
|
import { LoadingButton } from '@atlaskit/button';
|
|
4
4
|
import { IconButton } from '@atlaskit/button/new';
|
|
5
|
-
import SearchIcon from '@atlaskit/icon/core/
|
|
5
|
+
import SearchIcon from '@atlaskit/icon/core/search';
|
|
6
6
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
7
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
8
8
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
@@ -2,12 +2,14 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
var _excluded = ["isSearch", "isCompact", "defaultRows"];
|
|
4
4
|
import React from 'react';
|
|
5
|
+
import { useIntl } from 'react-intl-next';
|
|
5
6
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
7
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
7
8
|
import { EditorThemeContext, useEditorTheme, useEditorThemeContext } from '../../hooks/use-editor-theme';
|
|
8
9
|
import { splitTextByNewLine } from '../../utils/split-text-by-new-line';
|
|
9
10
|
// eslint-disable-next-line @atlassian/tangerine/import/no-parent-imports
|
|
10
11
|
import { ReadOnlyControlsContent } from '../jql-editor-controls-content/read-only-controls-content';
|
|
12
|
+
import { messages } from '../messages';
|
|
11
13
|
import { EditorControls, EditorFooter, EditorMain, EditorView, EditorViewContainer, LineNumberToolbar, ReadOnlyEditorView, ReadOnlyEditorViewContainer } from './styled';
|
|
12
14
|
var JQLEditorLayout = function JQLEditorLayout(props) {
|
|
13
15
|
var _useEditorThemeContex = useEditorThemeContext(),
|
|
@@ -72,6 +74,8 @@ var JQLEditorReadOnlyWithoutTheme = function JQLEditorReadOnlyWithoutTheme(_ref)
|
|
|
72
74
|
defaultRows = _useEditorThemeContex2.defaultRows;
|
|
73
75
|
var blocks = splitTextByNewLine(query);
|
|
74
76
|
var lineNumbersVisible = blocks.length > 1;
|
|
77
|
+
var _useIntl = useIntl(),
|
|
78
|
+
formatMessage = _useIntl.formatMessage;
|
|
75
79
|
return /*#__PURE__*/React.createElement(EditorMain, null, /*#__PURE__*/React.createElement(ReadOnlyEditorViewContainer, null, /*#__PURE__*/React.createElement(LineNumberToolbar, {
|
|
76
80
|
lineNumbersVisible: lineNumbersVisible
|
|
77
81
|
}), /*#__PURE__*/React.createElement(ReadOnlyEditorView, {
|
|
@@ -90,7 +94,7 @@ var JQLEditorReadOnlyWithoutTheme = function JQLEditorReadOnlyWithoutTheme(_ref)
|
|
|
90
94
|
"aria-controls": "dummy-jql-editor-auto-complete-id"
|
|
91
95
|
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
|
|
92
96
|
,
|
|
93
|
-
"aria-label":
|
|
97
|
+
"aria-label": fg('enghealth-46329-no-literal-strings') ? formatMessage(messages.inputLabel) : 'JQL query',
|
|
94
98
|
defaultRows: defaultRows
|
|
95
99
|
}, blocks.map(function (block, index) {
|
|
96
100
|
return /*#__PURE__*/React.createElement(Box, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/jql-editor",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.11.0",
|
|
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",
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"@atlaskit/analytics-gas-types": "^5.1.0",
|
|
37
37
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
38
38
|
"@atlaskit/avatar": "^25.6.0",
|
|
39
|
-
"@atlaskit/button": "^23.
|
|
39
|
+
"@atlaskit/button": "^23.9.0",
|
|
40
40
|
"@atlaskit/editor-prosemirror": "^7.2.0",
|
|
41
|
-
"@atlaskit/form": "^15.
|
|
42
|
-
"@atlaskit/icon": "^29.
|
|
41
|
+
"@atlaskit/form": "^15.2.0",
|
|
42
|
+
"@atlaskit/icon": "^29.3.0",
|
|
43
43
|
"@atlaskit/jql-ast": "^3.3.0",
|
|
44
44
|
"@atlaskit/jql-autocomplete": "^2.0.0",
|
|
45
45
|
"@atlaskit/jql-editor-common": "^3.0.0",
|
|
@@ -47,12 +47,12 @@
|
|
|
47
47
|
"@atlaskit/link": "^3.2.0",
|
|
48
48
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
49
49
|
"@atlaskit/popper": "^7.1.0",
|
|
50
|
-
"@atlaskit/primitives": "^
|
|
50
|
+
"@atlaskit/primitives": "^17.0.0",
|
|
51
51
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
52
52
|
"@atlaskit/spinner": "^19.0.0",
|
|
53
53
|
"@atlaskit/teams-avatar": "^2.4.0",
|
|
54
54
|
"@atlaskit/theme": "^21.0.0",
|
|
55
|
-
"@atlaskit/tokens": "^
|
|
55
|
+
"@atlaskit/tokens": "^9.0.0",
|
|
56
56
|
"@atlaskit/tooltip": "^20.11.0",
|
|
57
57
|
"@babel/runtime": "^7.0.0",
|
|
58
58
|
"@emotion/react": "^11.7.1",
|
|
@@ -152,6 +152,9 @@
|
|
|
152
152
|
},
|
|
153
153
|
"jira_ai_agent_avatar_with_apptype_for_jql": {
|
|
154
154
|
"type": "boolean"
|
|
155
|
+
},
|
|
156
|
+
"enghealth-46329-no-literal-strings": {
|
|
157
|
+
"type": "boolean"
|
|
155
158
|
}
|
|
156
159
|
}
|
|
157
160
|
}
|