@atlaskit/link-datasource 1.2.5 → 1.2.6
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 +6 -0
- package/dist/cjs/analytics/constants.js +1 -1
- package/dist/cjs/ui/assets-modal/modal/index.js +1 -1
- package/dist/cjs/ui/jira-issues-modal/jql-editor/index.js +6 -1
- package/dist/es2019/analytics/constants.js +1 -1
- package/dist/es2019/ui/assets-modal/modal/index.js +1 -1
- package/dist/es2019/ui/jira-issues-modal/jql-editor/index.js +6 -1
- package/dist/esm/analytics/constants.js +1 -1
- package/dist/esm/ui/assets-modal/modal/index.js +1 -1
- package/dist/esm/ui/jira-issues-modal/jql-editor/index.js +6 -1
- package/dist/types/ui/jira-issues-modal/jql-editor/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/jira-issues-modal/jql-editor/index.d.ts +1 -1
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -231,7 +231,7 @@ var analyticsContextAttributes = {
|
|
|
231
231
|
};
|
|
232
232
|
var analyticsContextData = {
|
|
233
233
|
packageName: "@atlaskit/link-datasource",
|
|
234
|
-
packageVersion: "1.2.
|
|
234
|
+
packageVersion: "1.2.6",
|
|
235
235
|
source: 'datasourceConfigModal'
|
|
236
236
|
};
|
|
237
237
|
var contextData = _objectSpread(_objectSpread({}, analyticsContextData), {}, {
|
|
@@ -30,10 +30,15 @@ var JiraJQLEditor = function JiraJQLEditor(props) {
|
|
|
30
30
|
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus();
|
|
31
31
|
});
|
|
32
32
|
}, []);
|
|
33
|
+
var searchIfValidJql = function searchIfValidJql(_, jast) {
|
|
34
|
+
if (jast.errors.length === 0) {
|
|
35
|
+
onSearch();
|
|
36
|
+
}
|
|
37
|
+
};
|
|
33
38
|
return /*#__PURE__*/_react.default.createElement(_jqlEditor.JQLEditor, {
|
|
34
39
|
analyticsSource: "link-datasource",
|
|
35
40
|
autocompleteProvider: autocompleteProvider,
|
|
36
|
-
onSearch:
|
|
41
|
+
onSearch: searchIfValidJql,
|
|
37
42
|
onUpdate: onChange,
|
|
38
43
|
isSearching: isSearching,
|
|
39
44
|
inputRef: inputRef,
|
|
@@ -23,10 +23,15 @@ export const JiraJQLEditor = props => {
|
|
|
23
23
|
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus();
|
|
24
24
|
});
|
|
25
25
|
}, []);
|
|
26
|
+
const searchIfValidJql = (_, jast) => {
|
|
27
|
+
if (jast.errors.length === 0) {
|
|
28
|
+
onSearch();
|
|
29
|
+
}
|
|
30
|
+
};
|
|
26
31
|
return /*#__PURE__*/React.createElement(JQLEditor, {
|
|
27
32
|
analyticsSource: "link-datasource",
|
|
28
33
|
autocompleteProvider: autocompleteProvider,
|
|
29
|
-
onSearch:
|
|
34
|
+
onSearch: searchIfValidJql,
|
|
30
35
|
onUpdate: onChange,
|
|
31
36
|
isSearching: isSearching,
|
|
32
37
|
inputRef: inputRef,
|
|
@@ -222,7 +222,7 @@ var analyticsContextAttributes = {
|
|
|
222
222
|
};
|
|
223
223
|
var analyticsContextData = {
|
|
224
224
|
packageName: "@atlaskit/link-datasource",
|
|
225
|
-
packageVersion: "1.2.
|
|
225
|
+
packageVersion: "1.2.6",
|
|
226
226
|
source: 'datasourceConfigModal'
|
|
227
227
|
};
|
|
228
228
|
var contextData = _objectSpread(_objectSpread({}, analyticsContextData), {}, {
|
|
@@ -21,10 +21,15 @@ export var JiraJQLEditor = function JiraJQLEditor(props) {
|
|
|
21
21
|
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus();
|
|
22
22
|
});
|
|
23
23
|
}, []);
|
|
24
|
+
var searchIfValidJql = function searchIfValidJql(_, jast) {
|
|
25
|
+
if (jast.errors.length === 0) {
|
|
26
|
+
onSearch();
|
|
27
|
+
}
|
|
28
|
+
};
|
|
24
29
|
return /*#__PURE__*/React.createElement(JQLEditor, {
|
|
25
30
|
analyticsSource: "link-datasource",
|
|
26
31
|
autocompleteProvider: autocompleteProvider,
|
|
27
|
-
onSearch:
|
|
32
|
+
onSearch: searchIfValidJql,
|
|
28
33
|
onUpdate: onChange,
|
|
29
34
|
isSearching: isSearching,
|
|
30
35
|
inputRef: inputRef,
|
|
@@ -3,7 +3,7 @@ export interface JiraJQLEditorProps {
|
|
|
3
3
|
cloudId: string;
|
|
4
4
|
isSearching?: boolean;
|
|
5
5
|
onChange?: (query: string) => void;
|
|
6
|
-
onSearch: (
|
|
6
|
+
onSearch: () => void;
|
|
7
7
|
query: string;
|
|
8
8
|
}
|
|
9
9
|
export declare const JiraJQLEditor: React.FC<JiraJQLEditorProps>;
|
|
@@ -3,7 +3,7 @@ export interface JiraJQLEditorProps {
|
|
|
3
3
|
cloudId: string;
|
|
4
4
|
isSearching?: boolean;
|
|
5
5
|
onChange?: (query: string) => void;
|
|
6
|
-
onSearch: (
|
|
6
|
+
onSearch: () => void;
|
|
7
7
|
query: string;
|
|
8
8
|
}
|
|
9
9
|
export declare const JiraJQLEditor: React.FC<JiraJQLEditorProps>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-datasource",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.6",
|
|
4
4
|
"description": "UI Components to support linking platform dataset feature",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -61,6 +61,7 @@
|
|
|
61
61
|
"@atlaskit/tokens": "^1.25.0",
|
|
62
62
|
"@atlaskit/tooltip": "^17.8.0",
|
|
63
63
|
"@atlaskit/ufo": "^0.2.4",
|
|
64
|
+
"@atlassianlabs/jql-ast": "^2.1.0",
|
|
64
65
|
"@atlassianlabs/jql-editor": "^2.0.1",
|
|
65
66
|
"@babel/runtime": "^7.0.0",
|
|
66
67
|
"@emotion/react": "^11.7.1",
|