@atlaskit/jql-editor 5.14.2 → 5.14.4
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 +13 -0
- package/dist/cjs/analytics/util.js +1 -1
- package/dist/cjs/plugins/rich-inline-nodes/nodes/base/index.js +17 -5
- package/dist/es2019/analytics/util.js +1 -1
- package/dist/es2019/plugins/rich-inline-nodes/nodes/base/index.js +18 -6
- package/dist/esm/analytics/util.js +1 -1
- package/dist/esm/plugins/rich-inline-nodes/nodes/base/index.js +18 -6
- package/package.json +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/jql-editor
|
|
2
2
|
|
|
3
|
+
## 5.14.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`6198f7a6a67fc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6198f7a6a67fc) -
|
|
8
|
+
Handle the long project name and add a long-display-name sample project to example data.
|
|
9
|
+
|
|
10
|
+
## 5.14.3
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 5.14.2
|
|
4
17
|
|
|
5
18
|
### 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", "
|
|
9
|
+
return (0, _jqlEditorCommon.useJqlPackageAnalytics)(analyticsSource, "@atlaskit/jql-editor", "5.14.3", _jqlEditorCommon.ANALYTICS_CHANNEL);
|
|
10
10
|
};
|
|
@@ -8,12 +8,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.NodeBase = void 0;
|
|
9
9
|
require("./index.compiled.css");
|
|
10
10
|
var _runtime = require("@compiled/react/runtime");
|
|
11
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
12
|
var _react = _interopRequireDefault(require("react"));
|
|
12
13
|
var _css = require("@atlaskit/css");
|
|
14
|
+
var _featureGateJsClient = _interopRequireDefault(require("@atlaskit/feature-gate-js-client"));
|
|
13
15
|
var _lockLocked = _interopRequireDefault(require("@atlaskit/icon/core/lock-locked"));
|
|
14
16
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
15
17
|
var styles = {
|
|
16
|
-
nodeWrapper: "_19it145i _2rko12b0 _1rjcidpf _1e0c116y _s7n4z0dk _4cvr1h6o _1wpz1q9y _bfhki8nm
|
|
18
|
+
nodeWrapper: "_19it145i _2rko12b0 _1rjcidpf _1e0c116y _s7n4z0dk _4cvr1h6o _1wpz1q9y _bfhki8nm _bozgv77o _y4ti1b66 _irr3plhp",
|
|
19
|
+
nodeWrapperWithHeight: "_4t3igktf",
|
|
17
20
|
nodeWrapperSelected: "_1h6dq98m _bfhk15s3 _irr3ufnl",
|
|
18
21
|
nodeWrapperError: "_4bfu1r31 _1hms8stv _ajmm1khm _1kegt94y _tdi7glyw _4bfu1tmw",
|
|
19
22
|
nodeWrapperErrorSelected: "_bfhk1gly _irr31yvi",
|
|
@@ -41,14 +44,23 @@ var NodeBase = exports.NodeBase = function NodeBase(props) {
|
|
|
41
44
|
isLocked = props.isLocked,
|
|
42
45
|
selected = props.selected,
|
|
43
46
|
error = props.error;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
+
var isNewExperienceEnabled = _featureGateJsClient.default.getExperimentValue('projects_in_jira_eap_drop2_fast_follow_filters', 'isEnabled', false);
|
|
48
|
+
return /*#__PURE__*/_react.default.createElement(_compiled.Pressable, (0, _extends2.default)({
|
|
49
|
+
xcss: (0, _css.cx)(styles.nodeWrapper, !isNewExperienceEnabled && styles.nodeWrapperWithHeight, error && styles.nodeWrapperError, selected && (error ? styles.nodeWrapperErrorSelected : styles.nodeWrapperSelected))
|
|
50
|
+
}, isNewExperienceEnabled ? {
|
|
51
|
+
title: text
|
|
52
|
+
} : {}), /*#__PURE__*/_react.default.createElement(_compiled.Inline, {
|
|
47
53
|
space: "space.050",
|
|
48
54
|
alignBlock: "center"
|
|
49
55
|
}, iconBefore && /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
50
56
|
xcss: styles.iconBeforeWrapper
|
|
51
|
-
}, iconBefore), /*#__PURE__*/_react.default.createElement(_compiled.
|
|
57
|
+
}, iconBefore), isNewExperienceEnabled ? /*#__PURE__*/_react.default.createElement(_compiled.Text, {
|
|
58
|
+
maxLines: 2,
|
|
59
|
+
align: "start"
|
|
60
|
+
}, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
61
|
+
as: "span",
|
|
62
|
+
xcss: styles.textWrapper
|
|
63
|
+
}, text)) : /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
52
64
|
xcss: styles.textWrapper
|
|
53
65
|
}, text), isLocked && /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
54
66
|
xcss: styles.iconAfterWrapper
|
|
@@ -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", "
|
|
3
|
+
return useJqlPackageAnalytics(analyticsSource, "@atlaskit/jql-editor", "5.14.3", ANALYTICS_CHANNEL);
|
|
4
4
|
};
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
/* index.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
3
|
import "./index.compiled.css";
|
|
3
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
5
|
import React from 'react';
|
|
5
6
|
import { cx } from '@atlaskit/css';
|
|
7
|
+
import FeatureGates from '@atlaskit/feature-gate-js-client';
|
|
6
8
|
import LockLockedIcon from '@atlaskit/icon/core/lock-locked';
|
|
7
|
-
import { Box, Inline, Pressable } from '@atlaskit/primitives/compiled';
|
|
9
|
+
import { Box, Inline, Pressable, Text } from '@atlaskit/primitives/compiled';
|
|
8
10
|
const styles = {
|
|
9
|
-
nodeWrapper: "_19it145i _2rko12b0 _1rjcidpf _1e0c116y _s7n4z0dk _4cvr1h6o _1wpz1q9y _bfhki8nm
|
|
11
|
+
nodeWrapper: "_19it145i _2rko12b0 _1rjcidpf _1e0c116y _s7n4z0dk _4cvr1h6o _1wpz1q9y _bfhki8nm _bozgv77o _y4ti1b66 _irr3plhp",
|
|
12
|
+
nodeWrapperWithHeight: "_4t3igktf",
|
|
10
13
|
nodeWrapperSelected: "_1h6dq98m _bfhk15s3 _irr3ufnl",
|
|
11
14
|
nodeWrapperError: "_4bfu1r31 _1hms8stv _ajmm1khm _1kegt94y _tdi7glyw _4bfu1tmw",
|
|
12
15
|
nodeWrapperErrorSelected: "_bfhk1gly _irr31yvi",
|
|
@@ -36,14 +39,23 @@ export const NodeBase = props => {
|
|
|
36
39
|
selected,
|
|
37
40
|
error
|
|
38
41
|
} = props;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
+
const isNewExperienceEnabled = FeatureGates.getExperimentValue('projects_in_jira_eap_drop2_fast_follow_filters', 'isEnabled', false);
|
|
43
|
+
return /*#__PURE__*/React.createElement(Pressable, _extends({
|
|
44
|
+
xcss: cx(styles.nodeWrapper, !isNewExperienceEnabled && styles.nodeWrapperWithHeight, error && styles.nodeWrapperError, selected && (error ? styles.nodeWrapperErrorSelected : styles.nodeWrapperSelected))
|
|
45
|
+
}, isNewExperienceEnabled ? {
|
|
46
|
+
title: text
|
|
47
|
+
} : {}), /*#__PURE__*/React.createElement(Inline, {
|
|
42
48
|
space: "space.050",
|
|
43
49
|
alignBlock: "center"
|
|
44
50
|
}, iconBefore && /*#__PURE__*/React.createElement(Box, {
|
|
45
51
|
xcss: styles.iconBeforeWrapper
|
|
46
|
-
}, iconBefore), /*#__PURE__*/React.createElement(
|
|
52
|
+
}, iconBefore), isNewExperienceEnabled ? /*#__PURE__*/React.createElement(Text, {
|
|
53
|
+
maxLines: 2,
|
|
54
|
+
align: "start"
|
|
55
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
56
|
+
as: "span",
|
|
57
|
+
xcss: styles.textWrapper
|
|
58
|
+
}, text)) : /*#__PURE__*/React.createElement(Box, {
|
|
47
59
|
xcss: styles.textWrapper
|
|
48
60
|
}, text), isLocked && /*#__PURE__*/React.createElement(Box, {
|
|
49
61
|
xcss: styles.iconAfterWrapper
|
|
@@ -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", "
|
|
3
|
+
return useJqlPackageAnalytics(analyticsSource, "@atlaskit/jql-editor", "5.14.3", ANALYTICS_CHANNEL);
|
|
4
4
|
};
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
/* index.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
3
|
import "./index.compiled.css";
|
|
3
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
5
|
import React from 'react';
|
|
5
6
|
import { cx } from '@atlaskit/css';
|
|
7
|
+
import FeatureGates from '@atlaskit/feature-gate-js-client';
|
|
6
8
|
import LockLockedIcon from '@atlaskit/icon/core/lock-locked';
|
|
7
|
-
import { Box, Inline, Pressable } from '@atlaskit/primitives/compiled';
|
|
9
|
+
import { Box, Inline, Pressable, Text } from '@atlaskit/primitives/compiled';
|
|
8
10
|
var styles = {
|
|
9
|
-
nodeWrapper: "_19it145i _2rko12b0 _1rjcidpf _1e0c116y _s7n4z0dk _4cvr1h6o _1wpz1q9y _bfhki8nm
|
|
11
|
+
nodeWrapper: "_19it145i _2rko12b0 _1rjcidpf _1e0c116y _s7n4z0dk _4cvr1h6o _1wpz1q9y _bfhki8nm _bozgv77o _y4ti1b66 _irr3plhp",
|
|
12
|
+
nodeWrapperWithHeight: "_4t3igktf",
|
|
10
13
|
nodeWrapperSelected: "_1h6dq98m _bfhk15s3 _irr3ufnl",
|
|
11
14
|
nodeWrapperError: "_4bfu1r31 _1hms8stv _ajmm1khm _1kegt94y _tdi7glyw _4bfu1tmw",
|
|
12
15
|
nodeWrapperErrorSelected: "_bfhk1gly _irr31yvi",
|
|
@@ -34,14 +37,23 @@ export var NodeBase = function NodeBase(props) {
|
|
|
34
37
|
isLocked = props.isLocked,
|
|
35
38
|
selected = props.selected,
|
|
36
39
|
error = props.error;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
+
var isNewExperienceEnabled = FeatureGates.getExperimentValue('projects_in_jira_eap_drop2_fast_follow_filters', 'isEnabled', false);
|
|
41
|
+
return /*#__PURE__*/React.createElement(Pressable, _extends({
|
|
42
|
+
xcss: cx(styles.nodeWrapper, !isNewExperienceEnabled && styles.nodeWrapperWithHeight, error && styles.nodeWrapperError, selected && (error ? styles.nodeWrapperErrorSelected : styles.nodeWrapperSelected))
|
|
43
|
+
}, isNewExperienceEnabled ? {
|
|
44
|
+
title: text
|
|
45
|
+
} : {}), /*#__PURE__*/React.createElement(Inline, {
|
|
40
46
|
space: "space.050",
|
|
41
47
|
alignBlock: "center"
|
|
42
48
|
}, iconBefore && /*#__PURE__*/React.createElement(Box, {
|
|
43
49
|
xcss: styles.iconBeforeWrapper
|
|
44
|
-
}, iconBefore), /*#__PURE__*/React.createElement(
|
|
50
|
+
}, iconBefore), isNewExperienceEnabled ? /*#__PURE__*/React.createElement(Text, {
|
|
51
|
+
maxLines: 2,
|
|
52
|
+
align: "start"
|
|
53
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
54
|
+
as: "span",
|
|
55
|
+
xcss: styles.textWrapper
|
|
56
|
+
}, text)) : /*#__PURE__*/React.createElement(Box, {
|
|
45
57
|
xcss: styles.textWrapper
|
|
46
58
|
}, text), isLocked && /*#__PURE__*/React.createElement(Box, {
|
|
47
59
|
xcss: styles.iconAfterWrapper
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/jql-editor",
|
|
3
|
-
"version": "5.14.
|
|
3
|
+
"version": "5.14.4",
|
|
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",
|
|
@@ -39,7 +39,8 @@
|
|
|
39
39
|
"@atlaskit/button": "^23.11.0",
|
|
40
40
|
"@atlaskit/css": "^0.19.0",
|
|
41
41
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
42
|
-
"@atlaskit/emoji": "^69.
|
|
42
|
+
"@atlaskit/emoji": "^69.12.0",
|
|
43
|
+
"@atlaskit/feature-gate-js-client": "^5.5.0",
|
|
43
44
|
"@atlaskit/form": "^15.5.0",
|
|
44
45
|
"@atlaskit/icon": "^34.0.0",
|
|
45
46
|
"@atlaskit/icon-lab": "^6.4.0",
|
|
@@ -55,7 +56,7 @@
|
|
|
55
56
|
"@atlaskit/spinner": "^19.1.0",
|
|
56
57
|
"@atlaskit/teams-avatar": "^2.4.0",
|
|
57
58
|
"@atlaskit/theme": "^23.0.0",
|
|
58
|
-
"@atlaskit/tokens": "^
|
|
59
|
+
"@atlaskit/tokens": "^12.0.0",
|
|
59
60
|
"@atlaskit/tooltip": "^21.1.0",
|
|
60
61
|
"@atlaskit/townsquare-emoji-provider": "^1.0.0",
|
|
61
62
|
"@babel/runtime": "^7.0.0",
|