@atlaskit/jql-editor 5.2.0 → 5.2.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 +8 -0
- package/dist/cjs/analytics/util.js +1 -1
- package/dist/cjs/ui/jql-editor-controls-content/syntax-help/index.js +2 -1
- package/dist/cjs/ui/jql-editor-footer-content/jql-editor-help/index.js +3 -3
- package/dist/cjs/ui/jql-editor-footer-content/jql-messages/infos/index.js +2 -2
- package/dist/cjs/ui/jql-editor-footer-content/jql-messages/warnings/index.js +2 -2
- package/dist/cjs/ui/jql-editor-layout/index.js +2 -2
- package/dist/es2019/analytics/util.js +1 -1
- package/dist/es2019/ui/jql-editor-controls-content/syntax-help/index.js +2 -1
- package/dist/es2019/ui/jql-editor-footer-content/jql-editor-help/index.js +1 -1
- package/dist/es2019/ui/jql-editor-footer-content/jql-messages/infos/index.js +1 -1
- package/dist/es2019/ui/jql-editor-footer-content/jql-messages/warnings/index.js +1 -1
- package/dist/es2019/ui/jql-editor-layout/index.js +1 -1
- package/dist/esm/analytics/util.js +1 -1
- package/dist/esm/ui/jql-editor-controls-content/syntax-help/index.js +2 -1
- package/dist/esm/ui/jql-editor-footer-content/jql-editor-help/index.js +1 -1
- package/dist/esm/ui/jql-editor-footer-content/jql-messages/infos/index.js +1 -1
- package/dist/esm/ui/jql-editor-footer-content/jql-messages/warnings/index.js +1 -1
- package/dist/esm/ui/jql-editor-layout/index.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/jql-editor
|
|
2
2
|
|
|
3
|
+
## 5.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#144736](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/144736)
|
|
8
|
+
[`ff74b78729adb`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ff74b78729adb) -
|
|
9
|
+
Internal change to move to Compiled CSS-in-JS styling.
|
|
10
|
+
|
|
3
11
|
## 5.2.0
|
|
4
12
|
|
|
5
13
|
### Minor 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", "5.2.
|
|
9
|
+
return (0, _jqlEditorCommon.useJqlPackageAnalytics)(analyticsSource, "@atlaskit/jql-editor", "5.2.1", _jqlEditorCommon.ANALYTICS_CHANNEL);
|
|
10
10
|
};
|
|
@@ -53,7 +53,8 @@ var SyntaxHelp = exports.SyntaxHelp = function SyntaxHelp() {
|
|
|
53
53
|
content: /*#__PURE__*/_react.default.createElement(_styled.TooltipContent, null, label)
|
|
54
54
|
// @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
55
55
|
,
|
|
56
|
-
tag: _tooltipTag.TooltipTag
|
|
56
|
+
tag: _tooltipTag.TooltipTag,
|
|
57
|
+
isScreenReaderAnnouncementDisabled: true
|
|
57
58
|
}, /*#__PURE__*/_react.default.createElement(_baseSyntaxHelp.BaseSyntaxHelp, {
|
|
58
59
|
describedby: descriptionId,
|
|
59
60
|
label: label,
|
|
@@ -8,7 +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
|
|
11
|
+
var _compiled = require("@atlaskit/primitives/compiled");
|
|
12
12
|
var _constants = require("../../../common/constants");
|
|
13
13
|
var _useEditorTheme = require("../../../hooks/use-editor-theme");
|
|
14
14
|
var _state = require("../../../state");
|
|
@@ -26,7 +26,7 @@ var JQLEditorHelp = exports.JQLEditorHelp = function JQLEditorHelp() {
|
|
|
26
26
|
var _useScopedId = (0, _state.useScopedId)(_constants.JQL_EDITOR_HELP_CONTENT_ID),
|
|
27
27
|
_useScopedId2 = (0, _slicedToArray2.default)(_useScopedId, 1),
|
|
28
28
|
helpContentId = _useScopedId2[0];
|
|
29
|
-
var SearchMessage = /*#__PURE__*/_react.default.createElement(
|
|
29
|
+
var SearchMessage = /*#__PURE__*/_react.default.createElement(_compiled.Text, {
|
|
30
30
|
size: "UNSAFE_small",
|
|
31
31
|
color: "inherit"
|
|
32
32
|
}, formatMessage(_messages.messages.searchCommand, {
|
|
@@ -34,7 +34,7 @@ var JQLEditorHelp = exports.JQLEditorHelp = function JQLEditorHelp() {
|
|
|
34
34
|
return /*#__PURE__*/_react.default.createElement("b", null, text);
|
|
35
35
|
}
|
|
36
36
|
}));
|
|
37
|
-
var NewLineMessage = /*#__PURE__*/_react.default.createElement(
|
|
37
|
+
var NewLineMessage = /*#__PURE__*/_react.default.createElement(_compiled.Text, {
|
|
38
38
|
size: "UNSAFE_small",
|
|
39
39
|
color: "inherit"
|
|
40
40
|
}, formatMessage(isSearch ? _messages.messages.newLineCommand : _messages.messages.fieldNewLineCommand, {
|
|
@@ -12,7 +12,7 @@ var _reactMagneticDi = require("react-magnetic-di");
|
|
|
12
12
|
var _form = require("@atlaskit/form");
|
|
13
13
|
var _info = _interopRequireDefault(require("@atlaskit/icon/glyph/info"));
|
|
14
14
|
var _information = _interopRequireDefault(require("@atlaskit/icon/utility/information"));
|
|
15
|
-
var
|
|
15
|
+
var _compiled = require("@atlaskit/primitives/compiled");
|
|
16
16
|
var colors = _interopRequireWildcard(require("@atlaskit/theme/colors"));
|
|
17
17
|
var _useEditorViewHasInfos = require("../../../../hooks/use-editor-view-has-infos");
|
|
18
18
|
var _state = require("../../../../state");
|
|
@@ -35,7 +35,7 @@ var InfoMessages = exports.InfoMessages = function InfoMessages() {
|
|
|
35
35
|
var infoMessage = useFormattedInfoMessage();
|
|
36
36
|
return infoMessage != null ? /*#__PURE__*/_react.default.createElement(_format.MessageContainer, null, /*#__PURE__*/_react.default.createElement(_form.HelperMessage, {
|
|
37
37
|
testId: "jql-editor-info-message"
|
|
38
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
38
|
+
}, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
39
39
|
as: "span",
|
|
40
40
|
paddingInlineEnd: "space.050"
|
|
41
41
|
}, /*#__PURE__*/_react.default.createElement(_information.default, {
|
|
@@ -13,7 +13,7 @@ var _reactMagneticDi = require("react-magnetic-di");
|
|
|
13
13
|
var _form = require("@atlaskit/form");
|
|
14
14
|
var _warning = _interopRequireDefault(require("@atlaskit/icon/glyph/warning"));
|
|
15
15
|
var _warning2 = _interopRequireDefault(require("@atlaskit/icon/utility/warning"));
|
|
16
|
-
var
|
|
16
|
+
var _compiled = require("@atlaskit/primitives/compiled");
|
|
17
17
|
var colors = _interopRequireWildcard(require("@atlaskit/theme/colors"));
|
|
18
18
|
var _useEditorViewHasWarnings = require("../../../../hooks/use-editor-view-has-warnings");
|
|
19
19
|
var _state = require("../../../../state");
|
|
@@ -104,7 +104,7 @@ var WarningMessages = exports.WarningMessages = function WarningMessages() {
|
|
|
104
104
|
var warningMessage = useFormattedWarningMessage();
|
|
105
105
|
return warningMessage != null ? /*#__PURE__*/_react.default.createElement(_format.MessageContainer, null, /*#__PURE__*/_react.default.createElement(_form.HelperMessage, {
|
|
106
106
|
testId: "jql-editor-warning-message"
|
|
107
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
107
|
+
}, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
108
108
|
as: "span",
|
|
109
109
|
paddingInlineEnd: "space.050"
|
|
110
110
|
}, /*#__PURE__*/_react.default.createElement(_warning2.default, {
|
|
@@ -8,7 +8,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
10
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
11
|
-
var
|
|
11
|
+
var _compiled = require("@atlaskit/primitives/compiled");
|
|
12
12
|
var _useEditorTheme = require("../../hooks/use-editor-theme");
|
|
13
13
|
var _splitTextByNewLine = require("../../utils/split-text-by-new-line");
|
|
14
14
|
var _readOnlyControlsContent = require("../jql-editor-controls-content/read-only-controls-content");
|
|
@@ -91,7 +91,7 @@ var JQLEditorReadOnlyWithoutTheme = function JQLEditorReadOnlyWithoutTheme(_ref)
|
|
|
91
91
|
"aria-controls": "dummy-jql-editor-auto-complete-id",
|
|
92
92
|
"aria-label": "JQL query"
|
|
93
93
|
}, blocks.map(function (block, index) {
|
|
94
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
94
|
+
return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
95
95
|
as: "p",
|
|
96
96
|
key: index
|
|
97
97
|
}, block);
|
|
@@ -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", "5.2.
|
|
3
|
+
return useJqlPackageAnalytics(analyticsSource, "@atlaskit/jql-editor", "5.2.1", ANALYTICS_CHANNEL);
|
|
4
4
|
};
|
|
@@ -35,7 +35,8 @@ export const SyntaxHelp = () => {
|
|
|
35
35
|
content: /*#__PURE__*/React.createElement(TooltipContent, null, label)
|
|
36
36
|
// @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
37
37
|
,
|
|
38
|
-
tag: TooltipTag
|
|
38
|
+
tag: TooltipTag,
|
|
39
|
+
isScreenReaderAnnouncementDisabled: true
|
|
39
40
|
}, /*#__PURE__*/React.createElement(BaseSyntaxHelp, {
|
|
40
41
|
describedby: descriptionId,
|
|
41
42
|
label: label,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { HelperMessage } from '@atlaskit/form';
|
|
3
|
-
import { Text } from '@atlaskit/primitives';
|
|
3
|
+
import { Text } from '@atlaskit/primitives/compiled';
|
|
4
4
|
import { JQL_EDITOR_HELP_CONTENT_ID } from '../../../common/constants';
|
|
5
5
|
import { useEditorThemeContext } from '../../../hooks/use-editor-theme';
|
|
6
6
|
import { useEditorViewHasFocus, useIntl, useScopedId } from '../../../state';
|
|
@@ -3,7 +3,7 @@ import { di } from 'react-magnetic-di';
|
|
|
3
3
|
import { HelperMessage } from '@atlaskit/form';
|
|
4
4
|
import LegacyInfoIcon from '@atlaskit/icon/glyph/info';
|
|
5
5
|
import InfoIcon from '@atlaskit/icon/utility/information';
|
|
6
|
-
import { Box } from '@atlaskit/primitives';
|
|
6
|
+
import { Box } from '@atlaskit/primitives/compiled';
|
|
7
7
|
import * as colors from '@atlaskit/theme/colors';
|
|
8
8
|
import { useEditorViewHasInfos } from '../../../../hooks/use-editor-view-has-infos';
|
|
9
9
|
import { useExternalMessages } from '../../../../state';
|
|
@@ -3,7 +3,7 @@ import { di } from 'react-magnetic-di';
|
|
|
3
3
|
import { HelperMessage } from '@atlaskit/form';
|
|
4
4
|
import LegacyWarningIcon from '@atlaskit/icon/glyph/warning';
|
|
5
5
|
import WarningIcon from '@atlaskit/icon/utility/warning';
|
|
6
|
-
import { Box } from '@atlaskit/primitives';
|
|
6
|
+
import { Box } from '@atlaskit/primitives/compiled';
|
|
7
7
|
import * as colors from '@atlaskit/theme/colors';
|
|
8
8
|
import { useEditorViewHasWarnings } from '../../../../hooks/use-editor-view-has-warnings';
|
|
9
9
|
import { useExternalMessages, useHydratedDeprecations, useIntl } from '../../../../state';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
|
-
import { Box } from '@atlaskit/primitives';
|
|
3
|
+
import { Box } from '@atlaskit/primitives/compiled';
|
|
4
4
|
import { EditorThemeContext, useEditorTheme, useEditorThemeContext } from '../../hooks/use-editor-theme';
|
|
5
5
|
import { splitTextByNewLine } from '../../utils/split-text-by-new-line';
|
|
6
6
|
// eslint-disable-next-line @atlassian/tangerine/import/no-parent-imports
|
|
@@ -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", "5.2.
|
|
3
|
+
return useJqlPackageAnalytics(analyticsSource, "@atlaskit/jql-editor", "5.2.1", ANALYTICS_CHANNEL);
|
|
4
4
|
};
|
|
@@ -41,7 +41,8 @@ export var SyntaxHelp = function SyntaxHelp() {
|
|
|
41
41
|
content: /*#__PURE__*/React.createElement(TooltipContent, null, label)
|
|
42
42
|
// @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
43
43
|
,
|
|
44
|
-
tag: TooltipTag
|
|
44
|
+
tag: TooltipTag,
|
|
45
|
+
isScreenReaderAnnouncementDisabled: true
|
|
45
46
|
}, /*#__PURE__*/React.createElement(BaseSyntaxHelp, {
|
|
46
47
|
describedby: descriptionId,
|
|
47
48
|
label: label,
|
|
@@ -1,7 +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
|
+
import { Text } from '@atlaskit/primitives/compiled';
|
|
5
5
|
import { JQL_EDITOR_HELP_CONTENT_ID } from '../../../common/constants';
|
|
6
6
|
import { useEditorThemeContext } from '../../../hooks/use-editor-theme';
|
|
7
7
|
import { useEditorViewHasFocus, useIntl, useScopedId } from '../../../state';
|
|
@@ -4,7 +4,7 @@ import { di } from 'react-magnetic-di';
|
|
|
4
4
|
import { HelperMessage } from '@atlaskit/form';
|
|
5
5
|
import LegacyInfoIcon from '@atlaskit/icon/glyph/info';
|
|
6
6
|
import InfoIcon from '@atlaskit/icon/utility/information';
|
|
7
|
-
import { Box } from '@atlaskit/primitives';
|
|
7
|
+
import { Box } from '@atlaskit/primitives/compiled';
|
|
8
8
|
import * as colors from '@atlaskit/theme/colors';
|
|
9
9
|
import { useEditorViewHasInfos } from '../../../../hooks/use-editor-view-has-infos';
|
|
10
10
|
import { useExternalMessages } from '../../../../state';
|
|
@@ -5,7 +5,7 @@ import { di } from 'react-magnetic-di';
|
|
|
5
5
|
import { HelperMessage } from '@atlaskit/form';
|
|
6
6
|
import LegacyWarningIcon from '@atlaskit/icon/glyph/warning';
|
|
7
7
|
import WarningIcon from '@atlaskit/icon/utility/warning';
|
|
8
|
-
import { Box } from '@atlaskit/primitives';
|
|
8
|
+
import { Box } from '@atlaskit/primitives/compiled';
|
|
9
9
|
import * as colors from '@atlaskit/theme/colors';
|
|
10
10
|
import { useEditorViewHasWarnings } from '../../../../hooks/use-editor-view-has-warnings';
|
|
11
11
|
import { useExternalMessages, useHydratedDeprecations, useIntl } from '../../../../state';
|
|
@@ -2,7 +2,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
2
2
|
var _excluded = ["isSearch", "isCompact"];
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
|
-
import { Box } from '@atlaskit/primitives';
|
|
5
|
+
import { Box } from '@atlaskit/primitives/compiled';
|
|
6
6
|
import { EditorThemeContext, useEditorTheme, useEditorThemeContext } from '../../hooks/use-editor-theme';
|
|
7
7
|
import { splitTextByNewLine } from '../../utils/split-text-by-new-line';
|
|
8
8
|
// eslint-disable-next-line @atlassian/tangerine/import/no-parent-imports
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/jql-editor",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.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",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@atlaskit/button": "^23.0.0",
|
|
44
44
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
45
45
|
"@atlaskit/form": "^12.0.0",
|
|
46
|
-
"@atlaskit/icon": "^25.
|
|
46
|
+
"@atlaskit/icon": "^25.6.0",
|
|
47
47
|
"@atlaskit/jql-ast": "^3.3.0",
|
|
48
48
|
"@atlaskit/jql-autocomplete": "^2.0.0",
|
|
49
49
|
"@atlaskit/jql-editor-common": "^3.0.0",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@atlaskit/primitives": "^14.4.0",
|
|
54
54
|
"@atlaskit/spinner": "^18.0.0",
|
|
55
55
|
"@atlaskit/theme": "^18.0.0",
|
|
56
|
-
"@atlaskit/tokens": "^4.
|
|
56
|
+
"@atlaskit/tokens": "^4.8.0",
|
|
57
57
|
"@atlaskit/tooltip": "^20.0.0",
|
|
58
58
|
"@babel/runtime": "^7.0.0",
|
|
59
59
|
"@emotion/react": "^11.7.1",
|