@atlaskit/jql-editor 4.11.0 → 4.11.2
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 +18 -0
- package/dist/cjs/analytics/util.js +1 -1
- package/dist/cjs/ui/jql-editor-controls-content/base-search/index.js +9 -4
- package/dist/es2019/analytics/util.js +1 -1
- package/dist/es2019/ui/jql-editor-controls-content/base-search/index.js +9 -4
- package/dist/esm/analytics/util.js +1 -1
- package/dist/esm/ui/jql-editor-controls-content/base-search/index.js +9 -4
- package/package.json +6 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/jql-editor
|
|
2
2
|
|
|
3
|
+
## 4.11.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#168855](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/168855)
|
|
8
|
+
[`4f494b4c71772`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4f494b4c71772) -
|
|
9
|
+
Add interactionName to JQL Editor searching state buttons for UFO reporting
|
|
10
|
+
|
|
11
|
+
## 4.11.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#171994](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/171994)
|
|
16
|
+
[`be58e4bb2e387`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/be58e4bb2e387) -
|
|
17
|
+
Migrating usages of UNSAFE types and entrypoints that have been renamed in `@atlaskit/icon` and
|
|
18
|
+
`@atlaskit/icon-lab`.
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 4.11.0
|
|
4
22
|
|
|
5
23
|
### 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", "4.11.
|
|
9
|
+
return (0, _jqlEditorCommon.useJqlPackageAnalytics)(analyticsSource, "@atlaskit/jql-editor", "4.11.2", _jqlEditorCommon.ANALYTICS_CHANNEL);
|
|
10
10
|
};
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.BaseSearch = void 0;
|
|
9
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
11
|
var _button = require("@atlaskit/button");
|
|
11
12
|
var _new = require("@atlaskit/button/new");
|
|
@@ -39,9 +40,9 @@ var BaseSearch = exports.BaseSearch = function BaseSearch(_ref) {
|
|
|
39
40
|
e.preventDefault();
|
|
40
41
|
}
|
|
41
42
|
}, []);
|
|
42
|
-
return (0, _platformFeatureFlags.fg)('platform-component-visual-refresh') ? /*#__PURE__*/_react.default.createElement(_primitives.Box, {
|
|
43
|
+
return (0, _platformFeatureFlags.fg)('platform-component-visual-refresh') ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_primitives.Box, {
|
|
43
44
|
xcss: buttonContainerStyle
|
|
44
|
-
}, /*#__PURE__*/_react.default.createElement(_new.IconButton, {
|
|
45
|
+
}, /*#__PURE__*/_react.default.createElement(_new.IconButton, (0, _extends2.default)({
|
|
45
46
|
label: label,
|
|
46
47
|
isDisabled: isDisabled,
|
|
47
48
|
testId: "jql-editor-search",
|
|
@@ -51,7 +52,9 @@ var BaseSearch = exports.BaseSearch = function BaseSearch(_ref) {
|
|
|
51
52
|
onKeyDown: preventRepeatClick,
|
|
52
53
|
isLoading: isSearching,
|
|
53
54
|
icon: _searchEditorSearch.default
|
|
54
|
-
}
|
|
55
|
+
}, (0, _platformFeatureFlags.fg)('add_nin_press_interactions') && {
|
|
56
|
+
interactionName: 'jql-editor-base-search-button'
|
|
57
|
+
})))) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_button.LoadingButton, (0, _extends2.default)({
|
|
55
58
|
"aria-label": label,
|
|
56
59
|
isDisabled: isDisabled,
|
|
57
60
|
testId: "jql-editor-search"
|
|
@@ -71,5 +74,7 @@ var BaseSearch = exports.BaseSearch = function BaseSearch(_ref) {
|
|
|
71
74
|
LEGACY_size: 'medium',
|
|
72
75
|
LEGACY_margin: "-4px"
|
|
73
76
|
}))
|
|
74
|
-
})
|
|
77
|
+
}, (0, _platformFeatureFlags.fg)('add_nin_press_interactions') && {
|
|
78
|
+
interactionName: 'jql-editor-base-search-button'
|
|
79
|
+
})));
|
|
75
80
|
};
|
|
@@ -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.11.
|
|
3
|
+
return useJqlPackageAnalytics(analyticsSource, "@atlaskit/jql-editor", "4.11.2", ANALYTICS_CHANNEL);
|
|
4
4
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
1
2
|
import React, { useCallback } from 'react';
|
|
2
3
|
import { LoadingButton } from '@atlaskit/button';
|
|
3
4
|
import { IconButton } from '@atlaskit/button/new';
|
|
@@ -30,9 +31,9 @@ export const BaseSearch = ({
|
|
|
30
31
|
e.preventDefault();
|
|
31
32
|
}
|
|
32
33
|
}, []);
|
|
33
|
-
return fg('platform-component-visual-refresh') ? /*#__PURE__*/React.createElement(Box, {
|
|
34
|
+
return fg('platform-component-visual-refresh') ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
|
|
34
35
|
xcss: buttonContainerStyle
|
|
35
|
-
}, /*#__PURE__*/React.createElement(IconButton, {
|
|
36
|
+
}, /*#__PURE__*/React.createElement(IconButton, _extends({
|
|
36
37
|
label: label,
|
|
37
38
|
isDisabled: isDisabled,
|
|
38
39
|
testId: "jql-editor-search",
|
|
@@ -42,7 +43,9 @@ export const BaseSearch = ({
|
|
|
42
43
|
onKeyDown: preventRepeatClick,
|
|
43
44
|
isLoading: isSearching,
|
|
44
45
|
icon: SearchIcon
|
|
45
|
-
})
|
|
46
|
+
}, fg('add_nin_press_interactions') && {
|
|
47
|
+
interactionName: 'jql-editor-base-search-button'
|
|
48
|
+
})))) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(LoadingButton, _extends({
|
|
46
49
|
"aria-label": label,
|
|
47
50
|
isDisabled: isDisabled,
|
|
48
51
|
testId: "jql-editor-search"
|
|
@@ -62,5 +65,7 @@ export const BaseSearch = ({
|
|
|
62
65
|
LEGACY_size: 'medium',
|
|
63
66
|
LEGACY_margin: "-4px"
|
|
64
67
|
}))
|
|
65
|
-
})
|
|
68
|
+
}, fg('add_nin_press_interactions') && {
|
|
69
|
+
interactionName: 'jql-editor-base-search-button'
|
|
70
|
+
})));
|
|
66
71
|
};
|
|
@@ -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.11.
|
|
3
|
+
return useJqlPackageAnalytics(analyticsSource, "@atlaskit/jql-editor", "4.11.2", ANALYTICS_CHANNEL);
|
|
4
4
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
1
2
|
import React, { useCallback } from 'react';
|
|
2
3
|
import { LoadingButton } from '@atlaskit/button';
|
|
3
4
|
import { IconButton } from '@atlaskit/button/new';
|
|
@@ -29,9 +30,9 @@ export var BaseSearch = function BaseSearch(_ref) {
|
|
|
29
30
|
e.preventDefault();
|
|
30
31
|
}
|
|
31
32
|
}, []);
|
|
32
|
-
return fg('platform-component-visual-refresh') ? /*#__PURE__*/React.createElement(Box, {
|
|
33
|
+
return fg('platform-component-visual-refresh') ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
|
|
33
34
|
xcss: buttonContainerStyle
|
|
34
|
-
}, /*#__PURE__*/React.createElement(IconButton, {
|
|
35
|
+
}, /*#__PURE__*/React.createElement(IconButton, _extends({
|
|
35
36
|
label: label,
|
|
36
37
|
isDisabled: isDisabled,
|
|
37
38
|
testId: "jql-editor-search",
|
|
@@ -41,7 +42,9 @@ export var BaseSearch = function BaseSearch(_ref) {
|
|
|
41
42
|
onKeyDown: preventRepeatClick,
|
|
42
43
|
isLoading: isSearching,
|
|
43
44
|
icon: SearchIcon
|
|
44
|
-
})
|
|
45
|
+
}, fg('add_nin_press_interactions') && {
|
|
46
|
+
interactionName: 'jql-editor-base-search-button'
|
|
47
|
+
})))) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(LoadingButton, _extends({
|
|
45
48
|
"aria-label": label,
|
|
46
49
|
isDisabled: isDisabled,
|
|
47
50
|
testId: "jql-editor-search"
|
|
@@ -61,5 +64,7 @@ export var BaseSearch = function BaseSearch(_ref) {
|
|
|
61
64
|
LEGACY_size: 'medium',
|
|
62
65
|
LEGACY_margin: "-4px"
|
|
63
66
|
}))
|
|
64
|
-
})
|
|
67
|
+
}, fg('add_nin_press_interactions') && {
|
|
68
|
+
interactionName: 'jql-editor-base-search-button'
|
|
69
|
+
})));
|
|
65
70
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/jql-editor",
|
|
3
|
-
"version": "4.11.
|
|
3
|
+
"version": "4.11.2",
|
|
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,9 +39,9 @@
|
|
|
39
39
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
40
40
|
"@atlaskit/avatar": "^21.17.0",
|
|
41
41
|
"@atlaskit/button": "^20.3.0",
|
|
42
|
-
"@atlaskit/editor-prosemirror": "6.
|
|
42
|
+
"@atlaskit/editor-prosemirror": "6.2.1",
|
|
43
43
|
"@atlaskit/form": "^10.6.0",
|
|
44
|
-
"@atlaskit/icon": "^
|
|
44
|
+
"@atlaskit/icon": "^23.0.0",
|
|
45
45
|
"@atlaskit/jql-ast": "^3.3.0",
|
|
46
46
|
"@atlaskit/jql-autocomplete": "^2.0.0",
|
|
47
47
|
"@atlaskit/jql-editor-common": "^2.1.0",
|
|
@@ -131,6 +131,9 @@
|
|
|
131
131
|
},
|
|
132
132
|
"custom_components_for_jql_editor": {
|
|
133
133
|
"type": "boolean"
|
|
134
|
+
},
|
|
135
|
+
"add_nin_press_interactions": {
|
|
136
|
+
"type": "boolean"
|
|
134
137
|
}
|
|
135
138
|
}
|
|
136
139
|
}
|