@atlaskit/jql-editor 5.12.5 → 5.12.7

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
+ ## 5.12.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [`4311851ff86b8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4311851ff86b8) -
8
+ cleaning up enghealth-46329-no-literal-strings fg
9
+
10
+ ## 5.12.6
11
+
12
+ ### Patch Changes
13
+
14
+ - [`a683937d723cb`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a683937d723cb) -
15
+ Update JQL editor view radius
16
+
3
17
  ## 5.12.5
4
18
 
5
19
  ### Patch Changes
@@ -12,6 +12,7 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
12
12
  var _react = _interopRequireWildcard(require("react"));
13
13
  var _deburr = _interopRequireDefault(require("lodash/deburr"));
14
14
  var _noop = _interopRequireDefault(require("lodash/noop"));
15
+ var _dataFormula = _interopRequireDefault(require("@atlaskit/icon-lab/core/data-formula"));
15
16
  var _alignTextLeft = _interopRequireDefault(require("@atlaskit/icon/core/align-text-left"));
16
17
  var _calendar = _interopRequireDefault(require("@atlaskit/icon/core/calendar"));
17
18
  var _clock = _interopRequireDefault(require("@atlaskit/icon/core/clock"));
@@ -80,6 +81,10 @@ var getFieldTypeIcon = function getFieldTypeIcon(type) {
80
81
  return /*#__PURE__*/_react.default.createElement(ResizedIcon, {
81
82
  Icon: _clock.default
82
83
  });
84
+ case 'Formula':
85
+ return /*#__PURE__*/_react.default.createElement(ResizedIcon, {
86
+ Icon: _dataFormula.default
87
+ });
83
88
  default:
84
89
  return null;
85
90
  }
@@ -99,10 +99,8 @@ var JQLEditorReadOnlyWithoutTheme = function JQLEditorReadOnlyWithoutTheme(_ref)
99
99
  // Therefore the autocomplete combobox is never shown to the users
100
100
  ,
101
101
  "aria-expanded": false,
102
- "aria-controls": "dummy-jql-editor-auto-complete-id"
103
- // eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
104
- ,
105
- "aria-label": (0, _platformFeatureFlags.fg)('enghealth-46329-no-literal-strings') ? formatMessage(_messages.messages.inputLabel) : 'JQL query',
102
+ "aria-controls": "dummy-jql-editor-auto-complete-id",
103
+ "aria-label": formatMessage(_messages.messages.inputLabel),
106
104
  defaultRows: defaultRows
107
105
  }, blocks.map(function (block, index) {
108
106
  return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
@@ -33,7 +33,7 @@ var fadeOut = (0, _react.keyframes)({
33
33
  });
34
34
 
35
35
  // 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
36
- var EditorMain = exports.EditorMain = _styled.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t/* CSS reset */\n\tfont-family: ", ";\n\tfont-size: 14px;\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"])), "var(--ds-font-family-body, \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)", _constants2.TOOLTIP_CLASSNAME, "var(--ds-background-neutral-bold, ".concat(_colors.N800, ")"), "var(--ds-text-inverse, ".concat(_colors.N0, ")"), "var(--ds-radius-small, 3px)", "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"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
+ var EditorMain = exports.EditorMain = _styled.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t/* CSS reset */\n\tfont-family: ", ";\n\tfont-size: 14px;\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"])), "var(--ds-font-family-body, \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)", _constants2.TOOLTIP_CLASSNAME, "var(--ds-background-neutral-bold, ".concat(_colors.N800, ")"), "var(--ds-text-inverse, ".concat(_colors.N0, ")"), "var(--ds-radius-small, 3px)", "var(--ds-font-body-small, normal 400 12px/16px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"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);
37
37
 
38
38
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
39
39
  var EditorFooter = exports.EditorFooter = _styled.default.div({
@@ -55,7 +55,7 @@ var EditorViewContainer = exports.EditorViewContainer = _styled.default.div({
55
55
  borderStyle: 'solid',
56
56
  borderWidth: "var(--ds-border-width, 1px)",
57
57
  borderColor: "var(--ds-border-input, ".concat(_colors.N100, ")"),
58
- borderRadius: "var(--ds-radius-small, 3px)",
58
+ borderRadius: "var(--ds-radius-medium, 3px)",
59
59
  padding: "var(--ds-border-width, 1px)",
60
60
  boxSizing: 'border-box',
61
61
  color: "var(--ds-text, ".concat(_colors.N900, ")"),
@@ -2,6 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import React, { forwardRef, useCallback, useMemo, useState } from 'react';
3
3
  import deburr from 'lodash/deburr';
4
4
  import noop from 'lodash/noop';
5
+ import DataFormulaIcon from '@atlaskit/icon-lab/core/data-formula';
5
6
  import AlignTextLeftIcon from '@atlaskit/icon/core/align-text-left';
6
7
  import CalendarIcon from '@atlaskit/icon/core/calendar';
7
8
  import ClockIcon from '@atlaskit/icon/core/clock';
@@ -68,6 +69,10 @@ const getFieldTypeIcon = type => {
68
69
  return /*#__PURE__*/React.createElement(ResizedIcon, {
69
70
  Icon: ClockIcon
70
71
  });
72
+ case 'Formula':
73
+ return /*#__PURE__*/React.createElement(ResizedIcon, {
74
+ Icon: DataFormulaIcon
75
+ });
71
76
  default:
72
77
  return null;
73
78
  }
@@ -97,10 +97,8 @@ const JQLEditorReadOnlyWithoutTheme = ({
97
97
  // Therefore the autocomplete combobox is never shown to the users
98
98
  ,
99
99
  "aria-expanded": false,
100
- "aria-controls": "dummy-jql-editor-auto-complete-id"
101
- // eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
102
- ,
103
- "aria-label": fg('enghealth-46329-no-literal-strings') ? formatMessage(messages.inputLabel) : 'JQL query',
100
+ "aria-controls": "dummy-jql-editor-auto-complete-id",
101
+ "aria-label": formatMessage(messages.inputLabel),
104
102
  defaultRows: defaultRows
105
103
  }, blocks.map((block, index) => /*#__PURE__*/React.createElement(Box, {
106
104
  as: "p",
@@ -38,7 +38,7 @@ export const EditorMain = styled.div`
38
38
  color: ${`var(--ds-text-inverse, ${N0})`};
39
39
  border-radius: ${"var(--ds-radius-small, 3px)"};
40
40
  box-sizing: border-box;
41
- font: ${"var(--ds-font-body-UNSAFE_small, normal 400 12px/16px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)"};
41
+ font: ${"var(--ds-font-body-small, normal 400 12px/16px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)"};
42
42
  line-height: 1.3;
43
43
  max-width: 240px;
44
44
  padding: ${"var(--ds-space-025, 2px)"} ${"var(--ds-space-075, 6px)"};
@@ -81,7 +81,7 @@ export const EditorViewContainer = styled.div({
81
81
  borderStyle: 'solid',
82
82
  borderWidth: "var(--ds-border-width, 1px)",
83
83
  borderColor: `var(--ds-border-input, ${N100})`,
84
- borderRadius: "var(--ds-radius-small, 3px)",
84
+ borderRadius: "var(--ds-radius-medium, 3px)",
85
85
  padding: "var(--ds-border-width, 1px)",
86
86
  boxSizing: 'border-box',
87
87
  color: `var(--ds-text, ${N900})`,
@@ -4,6 +4,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
4
  import React, { forwardRef, useCallback, useMemo, useState } from 'react';
5
5
  import deburr from 'lodash/deburr';
6
6
  import noop from 'lodash/noop';
7
+ import DataFormulaIcon from '@atlaskit/icon-lab/core/data-formula';
7
8
  import AlignTextLeftIcon from '@atlaskit/icon/core/align-text-left';
8
9
  import CalendarIcon from '@atlaskit/icon/core/calendar';
9
10
  import ClockIcon from '@atlaskit/icon/core/clock';
@@ -71,6 +72,10 @@ var getFieldTypeIcon = function getFieldTypeIcon(type) {
71
72
  return /*#__PURE__*/React.createElement(ResizedIcon, {
72
73
  Icon: ClockIcon
73
74
  });
75
+ case 'Formula':
76
+ return /*#__PURE__*/React.createElement(ResizedIcon, {
77
+ Icon: DataFormulaIcon
78
+ });
74
79
  default:
75
80
  return null;
76
81
  }
@@ -93,10 +93,8 @@ var JQLEditorReadOnlyWithoutTheme = function JQLEditorReadOnlyWithoutTheme(_ref)
93
93
  // Therefore the autocomplete combobox is never shown to the users
94
94
  ,
95
95
  "aria-expanded": false,
96
- "aria-controls": "dummy-jql-editor-auto-complete-id"
97
- // eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
98
- ,
99
- "aria-label": fg('enghealth-46329-no-literal-strings') ? formatMessage(messages.inputLabel) : 'JQL query',
96
+ "aria-controls": "dummy-jql-editor-auto-complete-id",
97
+ "aria-label": formatMessage(messages.inputLabel),
100
98
  defaultRows: defaultRows
101
99
  }, blocks.map(function (block, index) {
102
100
  return /*#__PURE__*/React.createElement(Box, {
@@ -27,7 +27,7 @@ var fadeOut = keyframes({
27
27
  });
28
28
 
29
29
  // 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
30
- export var EditorMain = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t/* CSS reset */\n\tfont-family: ", ";\n\tfont-size: 14px;\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"])), "var(--ds-font-family-body, \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)", TOOLTIP_CLASSNAME, "var(--ds-background-neutral-bold, ".concat(N800, ")"), "var(--ds-text-inverse, ".concat(N0, ")"), "var(--ds-radius-small, 3px)", "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"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);
30
+ export var EditorMain = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t/* CSS reset */\n\tfont-family: ", ";\n\tfont-size: 14px;\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"])), "var(--ds-font-family-body, \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)", TOOLTIP_CLASSNAME, "var(--ds-background-neutral-bold, ".concat(N800, ")"), "var(--ds-text-inverse, ".concat(N0, ")"), "var(--ds-radius-small, 3px)", "var(--ds-font-body-small, normal 400 12px/16px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"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);
31
31
 
32
32
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
33
33
  export var EditorFooter = styled.div({
@@ -49,7 +49,7 @@ export var EditorViewContainer = styled.div({
49
49
  borderStyle: 'solid',
50
50
  borderWidth: "var(--ds-border-width, 1px)",
51
51
  borderColor: "var(--ds-border-input, ".concat(N100, ")"),
52
- borderRadius: "var(--ds-radius-small, 3px)",
52
+ borderRadius: "var(--ds-radius-medium, 3px)",
53
53
  padding: "var(--ds-border-width, 1px)",
54
54
  boxSizing: 'border-box',
55
55
  color: "var(--ds-text, ".concat(N900, ")"),
@@ -1,4 +1,4 @@
1
- export declare const hiddenMixin: import("@emotion/react").SerializedStyles;
1
+ export declare const hiddenMixin: import("@emotion/utils").SerializedStyles;
2
2
  export declare const TooltipContent: import("@emotion/styled").StyledComponent<{
3
3
  theme?: import("@emotion/react").Theme;
4
4
  as?: React.ElementType;
@@ -1,4 +1,4 @@
1
- export declare const hiddenMixin: import("@emotion/react").SerializedStyles;
1
+ export declare const hiddenMixin: import("@emotion/utils").SerializedStyles;
2
2
  export declare const TooltipContent: import("@emotion/styled").StyledComponent<{
3
3
  theme?: import("@emotion/react").Theme;
4
4
  as?: React.ElementType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/jql-editor",
3
- "version": "5.12.5",
3
+ "version": "5.12.7",
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",
@@ -38,11 +38,12 @@
38
38
  "@atlaskit/avatar": "^25.7.0",
39
39
  "@atlaskit/button": "^23.9.0",
40
40
  "@atlaskit/css": "^0.19.0",
41
- "@atlaskit/editor-prosemirror": "^7.2.0",
41
+ "@atlaskit/editor-prosemirror": "^7.3.0",
42
42
  "@atlaskit/emoji": "^69.10.0",
43
43
  "@atlaskit/form": "^15.3.0",
44
44
  "@atlaskit/icon": "^30.0.0",
45
- "@atlaskit/jql-ast": "^3.3.0",
45
+ "@atlaskit/icon-lab": "^5.15.0",
46
+ "@atlaskit/jql-ast": "^3.4.0",
46
47
  "@atlaskit/jql-autocomplete": "^2.0.0",
47
48
  "@atlaskit/jql-editor-common": "^3.0.0",
48
49
  "@atlaskit/jql-parser": "^2.0.0",
@@ -155,9 +156,6 @@
155
156
  },
156
157
  "jira_ai_agent_avatar_with_apptype_for_jql": {
157
158
  "type": "boolean"
158
- },
159
- "enghealth-46329-no-literal-strings": {
160
- "type": "boolean"
161
159
  }
162
160
  }
163
161
  }