@atlaskit/jql-editor 4.3.2 → 4.4.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 +14 -0
- package/dist/cjs/analytics/util.js +1 -1
- package/dist/cjs/ui/jql-editor-controls-content/expand-toggle/index.js +3 -1
- package/dist/cjs/ui/jql-editor-controls-content/search/index.js +3 -1
- package/dist/cjs/ui/jql-editor-controls-content/syntax-help/index.js +3 -1
- package/dist/es2019/analytics/util.js +1 -1
- package/dist/es2019/ui/jql-editor-controls-content/expand-toggle/index.js +3 -1
- package/dist/es2019/ui/jql-editor-controls-content/search/index.js +3 -1
- package/dist/es2019/ui/jql-editor-controls-content/syntax-help/index.js +3 -1
- package/dist/esm/analytics/util.js +1 -1
- package/dist/esm/ui/jql-editor-controls-content/expand-toggle/index.js +3 -1
- package/dist/esm/ui/jql-editor-controls-content/search/index.js +3 -1
- package/dist/esm/ui/jql-editor-controls-content/syntax-help/index.js +3 -1
- package/dist/types/state/util.d.ts +1 -1
- package/dist/types-ts4.5/state/util.d.ts +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/jql-editor
|
|
2
2
|
|
|
3
|
+
## 4.4.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 4.4.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#124209](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/124209)
|
|
14
|
+
[`8aa1792f12ed3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8aa1792f12ed3) -
|
|
15
|
+
bump @atlaskit/editor-prosemirror to 5.0.0, bump @atlaskit/adf-schema to 40.1.0
|
|
16
|
+
|
|
3
17
|
## 4.3.2
|
|
4
18
|
|
|
5
19
|
### 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", "4.
|
|
9
|
+
return (0, _jqlEditorCommon.useJqlPackageAnalytics)(analyticsSource, "@atlaskit/jql-editor", "4.4.1", _jqlEditorCommon.ANALYTICS_CHANNEL);
|
|
10
10
|
};
|
|
@@ -56,7 +56,9 @@ var ExpandToggle = exports.ExpandToggle = function ExpandToggle() {
|
|
|
56
56
|
}, [expanded, createAndFireAnalyticsEvent, toggleExpanded]);
|
|
57
57
|
return /*#__PURE__*/_react.default.createElement(_tooltip.default, {
|
|
58
58
|
position: 'bottom',
|
|
59
|
-
content: /*#__PURE__*/_react.default.createElement(_styled.TooltipContent, null, message)
|
|
59
|
+
content: /*#__PURE__*/_react.default.createElement(_styled.TooltipContent, null, message)
|
|
60
|
+
// @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
61
|
+
,
|
|
60
62
|
tag: _tooltipTag.TooltipTag
|
|
61
63
|
}, /*#__PURE__*/_react.default.createElement(_baseExpandToggle.BaseExpandToggle, {
|
|
62
64
|
expanded: expanded,
|
|
@@ -30,7 +30,9 @@ var Search = exports.Search = function Search() {
|
|
|
30
30
|
isSearching = _useIsSearching2[0];
|
|
31
31
|
return /*#__PURE__*/_react.default.createElement(_tooltip.default, {
|
|
32
32
|
position: 'bottom',
|
|
33
|
-
content: /*#__PURE__*/_react.default.createElement(_styled.TooltipContent, null, label)
|
|
33
|
+
content: /*#__PURE__*/_react.default.createElement(_styled.TooltipContent, null, label)
|
|
34
|
+
// @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
35
|
+
,
|
|
34
36
|
tag: _tooltipTag.TooltipTag
|
|
35
37
|
}, /*#__PURE__*/_react.default.createElement(_baseSearch.BaseSearch, {
|
|
36
38
|
label: label,
|
|
@@ -50,7 +50,9 @@ var SyntaxHelp = exports.SyntaxHelp = function SyntaxHelp() {
|
|
|
50
50
|
}, [createAndFireAnalyticsEvent, onSyntaxHelp]);
|
|
51
51
|
return /*#__PURE__*/_react.default.createElement(_tooltip.default, {
|
|
52
52
|
position: 'bottom',
|
|
53
|
-
content: /*#__PURE__*/_react.default.createElement(_styled.TooltipContent, null, label)
|
|
53
|
+
content: /*#__PURE__*/_react.default.createElement(_styled.TooltipContent, null, label)
|
|
54
|
+
// @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
55
|
+
,
|
|
54
56
|
tag: _tooltipTag.TooltipTag
|
|
55
57
|
}, /*#__PURE__*/_react.default.createElement(_baseSyntaxHelp.BaseSyntaxHelp, {
|
|
56
58
|
describedby: descriptionId,
|
|
@@ -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.
|
|
3
|
+
return useJqlPackageAnalytics(analyticsSource, "@atlaskit/jql-editor", "4.4.1", ANALYTICS_CHANNEL);
|
|
4
4
|
};
|
|
@@ -40,7 +40,9 @@ export const ExpandToggle = () => {
|
|
|
40
40
|
}, [expanded, createAndFireAnalyticsEvent, toggleExpanded]);
|
|
41
41
|
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
42
42
|
position: 'bottom',
|
|
43
|
-
content: /*#__PURE__*/React.createElement(TooltipContent, null, message)
|
|
43
|
+
content: /*#__PURE__*/React.createElement(TooltipContent, null, message)
|
|
44
|
+
// @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
45
|
+
,
|
|
44
46
|
tag: TooltipTag
|
|
45
47
|
}, /*#__PURE__*/React.createElement(BaseExpandToggle, {
|
|
46
48
|
expanded: expanded,
|
|
@@ -16,7 +16,9 @@ export const Search = () => {
|
|
|
16
16
|
const [isSearching] = useIsSearching();
|
|
17
17
|
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
18
18
|
position: 'bottom',
|
|
19
|
-
content: /*#__PURE__*/React.createElement(TooltipContent, null, label)
|
|
19
|
+
content: /*#__PURE__*/React.createElement(TooltipContent, null, label)
|
|
20
|
+
// @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
21
|
+
,
|
|
20
22
|
tag: TooltipTag
|
|
21
23
|
}, /*#__PURE__*/React.createElement(BaseSearch, {
|
|
22
24
|
label: label,
|
|
@@ -32,7 +32,9 @@ export const SyntaxHelp = () => {
|
|
|
32
32
|
}, [createAndFireAnalyticsEvent, onSyntaxHelp]);
|
|
33
33
|
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
34
34
|
position: 'bottom',
|
|
35
|
-
content: /*#__PURE__*/React.createElement(TooltipContent, null, label)
|
|
35
|
+
content: /*#__PURE__*/React.createElement(TooltipContent, null, label)
|
|
36
|
+
// @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
37
|
+
,
|
|
36
38
|
tag: TooltipTag
|
|
37
39
|
}, /*#__PURE__*/React.createElement(BaseSyntaxHelp, {
|
|
38
40
|
describedby: descriptionId,
|
|
@@ -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.
|
|
3
|
+
return useJqlPackageAnalytics(analyticsSource, "@atlaskit/jql-editor", "4.4.1", ANALYTICS_CHANNEL);
|
|
4
4
|
};
|
|
@@ -44,7 +44,9 @@ export var ExpandToggle = function ExpandToggle() {
|
|
|
44
44
|
}, [expanded, createAndFireAnalyticsEvent, toggleExpanded]);
|
|
45
45
|
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
46
46
|
position: 'bottom',
|
|
47
|
-
content: /*#__PURE__*/React.createElement(TooltipContent, null, message)
|
|
47
|
+
content: /*#__PURE__*/React.createElement(TooltipContent, null, message)
|
|
48
|
+
// @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
49
|
+
,
|
|
48
50
|
tag: TooltipTag
|
|
49
51
|
}, /*#__PURE__*/React.createElement(BaseExpandToggle, {
|
|
50
52
|
expanded: expanded,
|
|
@@ -21,7 +21,9 @@ export var Search = function Search() {
|
|
|
21
21
|
isSearching = _useIsSearching2[0];
|
|
22
22
|
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
23
23
|
position: 'bottom',
|
|
24
|
-
content: /*#__PURE__*/React.createElement(TooltipContent, null, label)
|
|
24
|
+
content: /*#__PURE__*/React.createElement(TooltipContent, null, label)
|
|
25
|
+
// @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
26
|
+
,
|
|
25
27
|
tag: TooltipTag
|
|
26
28
|
}, /*#__PURE__*/React.createElement(BaseSearch, {
|
|
27
29
|
label: label,
|
|
@@ -38,7 +38,9 @@ export var SyntaxHelp = function SyntaxHelp() {
|
|
|
38
38
|
}, [createAndFireAnalyticsEvent, onSyntaxHelp]);
|
|
39
39
|
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
40
40
|
position: 'bottom',
|
|
41
|
-
content: /*#__PURE__*/React.createElement(TooltipContent, null, label)
|
|
41
|
+
content: /*#__PURE__*/React.createElement(TooltipContent, null, label)
|
|
42
|
+
// @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
43
|
+
,
|
|
42
44
|
tag: TooltipTag
|
|
43
45
|
}, /*#__PURE__*/React.createElement(BaseSyntaxHelp, {
|
|
44
46
|
describedby: descriptionId,
|
|
@@ -4,7 +4,7 @@ import { type Jast } from '@atlaskit/jql-ast';
|
|
|
4
4
|
import { type JQLSuggestions } from '@atlaskit/jql-autocomplete';
|
|
5
5
|
import { type SelectableAutocompleteOptions } from '../plugins/autocomplete/components/types';
|
|
6
6
|
import { type AutocompletePosition, type ContextAwareTokenSuggestions, type DebugMessageEventAttribute } from './types';
|
|
7
|
-
export declare const getAutocompleteOptionId: (value: string) =>
|
|
7
|
+
export declare const getAutocompleteOptionId: (value: string) => any;
|
|
8
8
|
export declare const tokensToAutocompleteOptions: (tokens: ContextAwareTokenSuggestions) => SelectableAutocompleteOptions;
|
|
9
9
|
export declare const getReplacePositionStart: ({ rules, tokens }: JQLSuggestions) => number;
|
|
10
10
|
export declare const getAutocompletePosition: (editorView: EditorView, replacePositionStart: number) => AutocompletePosition;
|
|
@@ -4,7 +4,7 @@ import { type Jast } from '@atlaskit/jql-ast';
|
|
|
4
4
|
import { type JQLSuggestions } from '@atlaskit/jql-autocomplete';
|
|
5
5
|
import { type SelectableAutocompleteOptions } from '../plugins/autocomplete/components/types';
|
|
6
6
|
import { type AutocompletePosition, type ContextAwareTokenSuggestions, type DebugMessageEventAttribute } from './types';
|
|
7
|
-
export declare const getAutocompleteOptionId: (value: string) =>
|
|
7
|
+
export declare const getAutocompleteOptionId: (value: string) => any;
|
|
8
8
|
export declare const tokensToAutocompleteOptions: (tokens: ContextAwareTokenSuggestions) => SelectableAutocompleteOptions;
|
|
9
9
|
export declare const getReplacePositionStart: ({ rules, tokens }: JQLSuggestions) => number;
|
|
10
10
|
export declare const getAutocompletePosition: (editorView: EditorView, replacePositionStart: number) => AutocompletePosition;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/jql-editor",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.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",
|
|
@@ -37,19 +37,19 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@atlaskit/analytics-gas-types": "^5.1.0",
|
|
40
|
-
"@atlaskit/analytics-next": "^
|
|
41
|
-
"@atlaskit/avatar": "^21.
|
|
42
|
-
"@atlaskit/button": "^19.
|
|
43
|
-
"@atlaskit/editor-prosemirror": "
|
|
40
|
+
"@atlaskit/analytics-next": "^10.0.0",
|
|
41
|
+
"@atlaskit/avatar": "^21.12.0",
|
|
42
|
+
"@atlaskit/button": "^19.1.0",
|
|
43
|
+
"@atlaskit/editor-prosemirror": "5.0.1",
|
|
44
44
|
"@atlaskit/form": "^10.4.0",
|
|
45
|
-
"@atlaskit/icon": "^22.
|
|
45
|
+
"@atlaskit/icon": "^22.10.0",
|
|
46
46
|
"@atlaskit/jql-ast": "^3.3.0",
|
|
47
47
|
"@atlaskit/jql-autocomplete": "^2.0.0",
|
|
48
48
|
"@atlaskit/jql-editor-common": "^2.0.0",
|
|
49
49
|
"@atlaskit/jql-parser": "^2.0.0",
|
|
50
50
|
"@atlaskit/spinner": "^16.2.0",
|
|
51
51
|
"@atlaskit/theme": "^12.11.0",
|
|
52
|
-
"@atlaskit/tokens": "^1.
|
|
52
|
+
"@atlaskit/tokens": "^1.57.0",
|
|
53
53
|
"@atlaskit/tooltip": "^18.5.0",
|
|
54
54
|
"@babel/runtime": "^7.0.0",
|
|
55
55
|
"@emotion/react": "^11.7.1",
|