@atlaskit/link-datasource 1.2.4 → 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 +12 -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/initial-state-view/messages.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/initial-state-view/messages.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/initial-state-view/messages.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 +5 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/link-datasource
|
|
2
2
|
|
|
3
|
+
## 1.2.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`1017511dadf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1017511dadf) - [ux] Prevent search with invalid input
|
|
8
|
+
|
|
9
|
+
## 1.2.5
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`eadf1b04163`](https://bitbucket.org/atlassian/atlassian-frontend/commits/eadf1b04163) - [ux] Fixed copy on modal
|
|
14
|
+
|
|
3
15
|
## 1.2.4
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -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), {}, {
|
|
@@ -19,7 +19,7 @@ var initialStateViewMessages = (0, _reactIntlNext.defineMessages)({
|
|
|
19
19
|
learnMoreLink: {
|
|
20
20
|
id: 'linkDataSource.modal-initial-state.learnMoreLink',
|
|
21
21
|
description: 'The link that displays under the search description to help people know more about JQL',
|
|
22
|
-
defaultMessage: 'Learn more about searching with JQL
|
|
22
|
+
defaultMessage: 'Learn more about searching with JQL'
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
25
|
exports.initialStateViewMessages = initialStateViewMessages;
|
|
@@ -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,
|
|
@@ -13,6 +13,6 @@ export const initialStateViewMessages = defineMessages({
|
|
|
13
13
|
learnMoreLink: {
|
|
14
14
|
id: 'linkDataSource.modal-initial-state.learnMoreLink',
|
|
15
15
|
description: 'The link that displays under the search description to help people know more about JQL',
|
|
16
|
-
defaultMessage: 'Learn more about searching with JQL
|
|
16
|
+
defaultMessage: 'Learn more about searching with JQL'
|
|
17
17
|
}
|
|
18
18
|
});
|
|
@@ -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), {}, {
|
|
@@ -13,6 +13,6 @@ export var initialStateViewMessages = defineMessages({
|
|
|
13
13
|
learnMoreLink: {
|
|
14
14
|
id: 'linkDataSource.modal-initial-state.learnMoreLink',
|
|
15
15
|
description: 'The link that displays under the search description to help people know more about JQL',
|
|
16
|
-
defaultMessage: 'Learn more about searching with JQL
|
|
16
|
+
defaultMessage: 'Learn more about searching with JQL'
|
|
17
17
|
}
|
|
18
18
|
});
|
|
@@ -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/"
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@atlaskit/analytics-next": "^9.1.3",
|
|
35
35
|
"@atlaskit/avatar": "^21.3.0",
|
|
36
36
|
"@atlaskit/button": "^16.10.0",
|
|
37
|
-
"@atlaskit/dropdown-menu": "^11.
|
|
37
|
+
"@atlaskit/dropdown-menu": "^11.14.0",
|
|
38
38
|
"@atlaskit/editor-prosemirror": "1.1.0",
|
|
39
39
|
"@atlaskit/empty-state": "^7.5.0",
|
|
40
40
|
"@atlaskit/form": "^8.11.0",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@atlaskit/linking-common": "^4.10.0",
|
|
48
48
|
"@atlaskit/linking-types": "^8.3.0",
|
|
49
49
|
"@atlaskit/lozenge": "^11.4.0",
|
|
50
|
-
"@atlaskit/modal-dialog": "^12.
|
|
50
|
+
"@atlaskit/modal-dialog": "^12.7.0",
|
|
51
51
|
"@atlaskit/pragmatic-drag-and-drop": "^0.23.0",
|
|
52
52
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^0.11.0",
|
|
53
53
|
"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-autoscroll": "^0.6.0",
|
|
@@ -58,9 +58,10 @@
|
|
|
58
58
|
"@atlaskit/tag": "^11.6.0",
|
|
59
59
|
"@atlaskit/textfield": "5.6.7",
|
|
60
60
|
"@atlaskit/theme": "^12.6.0",
|
|
61
|
-
"@atlaskit/tokens": "^1.
|
|
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",
|