@atlaskit/link-datasource 1.19.44 → 1.19.46
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/ui/datasource-table-view/datasourceTableView.js +7 -2
- package/dist/cjs/ui/jira-issues-modal/jql-editor/index.js +1 -1
- package/dist/es2019/ui/datasource-table-view/datasourceTableView.js +7 -2
- package/dist/es2019/ui/jira-issues-modal/jql-editor/index.js +1 -1
- package/dist/esm/ui/datasource-table-view/datasourceTableView.js +7 -2
- package/dist/esm/ui/jira-issues-modal/jql-editor/index.js +1 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/link-datasource
|
|
2
2
|
|
|
3
|
+
## 1.19.46
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#69638](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/69638) [`41429d7a17d8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/41429d7a17d8) - Update DatasourceTableView error states refresh button to reset with shouldForceRequest
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
10
|
+
## 1.19.45
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [#68840](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68840) [`7d055de94e3d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/7d055de94e3d) - Replaced `@atlassianlabs/jql-editor` dependency with `@atlaskit/jql-editor`
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 1.19.44
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -116,9 +116,14 @@ var DatasourceTableViewWithoutAnalytics = function DatasourceTableViewWithoutAna
|
|
|
116
116
|
shouldForceRequest: true
|
|
117
117
|
});
|
|
118
118
|
}, [destinationObjectTypes, extensionKey, fireEvent, reset]);
|
|
119
|
+
var handleErrorRefresh = (0, _react.useCallback)(function () {
|
|
120
|
+
reset({
|
|
121
|
+
shouldForceRequest: true
|
|
122
|
+
});
|
|
123
|
+
}, [reset]);
|
|
119
124
|
if (status === 'resolved' && !responseItems.length || status === 'forbidden') {
|
|
120
125
|
return (0, _react2.jsx)(_noResults.NoResults, {
|
|
121
|
-
onRefresh:
|
|
126
|
+
onRefresh: handleErrorRefresh
|
|
122
127
|
});
|
|
123
128
|
}
|
|
124
129
|
if (status === 'unauthorized') {
|
|
@@ -128,7 +133,7 @@ var DatasourceTableViewWithoutAnalytics = function DatasourceTableViewWithoutAna
|
|
|
128
133
|
}
|
|
129
134
|
if (status === 'rejected') {
|
|
130
135
|
return (0, _react2.jsx)(_loadingError.LoadingError, {
|
|
131
|
-
onRefresh:
|
|
136
|
+
onRefresh: handleErrorRefresh
|
|
132
137
|
});
|
|
133
138
|
}
|
|
134
139
|
return (0, _react2.jsx)(_intlMessagesProvider.IntlMessagesProvider, {
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.JiraJQLEditor = void 0;
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
var _jqlEditor = require("@
|
|
9
|
+
var _jqlEditor = require("@atlaskit/jql-editor");
|
|
10
10
|
var _jqlEditorAutocompleteRest = require("@atlaskit/jql-editor-autocomplete-rest");
|
|
11
11
|
var _makeGetJqlAutocompleteData = require("../../../services/makeGetJqlAutocompleteData");
|
|
12
12
|
var _makeGetJqlSuggestionsData = require("../../../services/makeGetJqlSuggestionsData");
|
|
@@ -111,9 +111,14 @@ const DatasourceTableViewWithoutAnalytics = ({
|
|
|
111
111
|
shouldForceRequest: true
|
|
112
112
|
});
|
|
113
113
|
}, [destinationObjectTypes, extensionKey, fireEvent, reset]);
|
|
114
|
+
const handleErrorRefresh = useCallback(() => {
|
|
115
|
+
reset({
|
|
116
|
+
shouldForceRequest: true
|
|
117
|
+
});
|
|
118
|
+
}, [reset]);
|
|
114
119
|
if (status === 'resolved' && !responseItems.length || status === 'forbidden') {
|
|
115
120
|
return jsx(NoResults, {
|
|
116
|
-
onRefresh:
|
|
121
|
+
onRefresh: handleErrorRefresh
|
|
117
122
|
});
|
|
118
123
|
}
|
|
119
124
|
if (status === 'unauthorized') {
|
|
@@ -123,7 +128,7 @@ const DatasourceTableViewWithoutAnalytics = ({
|
|
|
123
128
|
}
|
|
124
129
|
if (status === 'rejected') {
|
|
125
130
|
return jsx(LoadingError, {
|
|
126
|
-
onRefresh:
|
|
131
|
+
onRefresh: handleErrorRefresh
|
|
127
132
|
});
|
|
128
133
|
}
|
|
129
134
|
return jsx(IntlMessagesProvider, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useEffect, useRef } from 'react';
|
|
2
|
-
import { JQLEditor } from '@
|
|
2
|
+
import { JQLEditor } from '@atlaskit/jql-editor';
|
|
3
3
|
import { useAutocompleteProvider } from '@atlaskit/jql-editor-autocomplete-rest';
|
|
4
4
|
import { makeGetJqlAutocompleteData } from '../../../services/makeGetJqlAutocompleteData';
|
|
5
5
|
import { makeGetJqlSuggestionsData } from '../../../services/makeGetJqlSuggestionsData';
|
|
@@ -108,9 +108,14 @@ var DatasourceTableViewWithoutAnalytics = function DatasourceTableViewWithoutAna
|
|
|
108
108
|
shouldForceRequest: true
|
|
109
109
|
});
|
|
110
110
|
}, [destinationObjectTypes, extensionKey, fireEvent, reset]);
|
|
111
|
+
var handleErrorRefresh = useCallback(function () {
|
|
112
|
+
reset({
|
|
113
|
+
shouldForceRequest: true
|
|
114
|
+
});
|
|
115
|
+
}, [reset]);
|
|
111
116
|
if (status === 'resolved' && !responseItems.length || status === 'forbidden') {
|
|
112
117
|
return jsx(NoResults, {
|
|
113
|
-
onRefresh:
|
|
118
|
+
onRefresh: handleErrorRefresh
|
|
114
119
|
});
|
|
115
120
|
}
|
|
116
121
|
if (status === 'unauthorized') {
|
|
@@ -120,7 +125,7 @@ var DatasourceTableViewWithoutAnalytics = function DatasourceTableViewWithoutAna
|
|
|
120
125
|
}
|
|
121
126
|
if (status === 'rejected') {
|
|
122
127
|
return jsx(LoadingError, {
|
|
123
|
-
onRefresh:
|
|
128
|
+
onRefresh: handleErrorRefresh
|
|
124
129
|
});
|
|
125
130
|
}
|
|
126
131
|
return jsx(IntlMessagesProvider, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useEffect, useRef } from 'react';
|
|
2
|
-
import { JQLEditor } from '@
|
|
2
|
+
import { JQLEditor } from '@atlaskit/jql-editor';
|
|
3
3
|
import { useAutocompleteProvider } from '@atlaskit/jql-editor-autocomplete-rest';
|
|
4
4
|
import { makeGetJqlAutocompleteData } from '../../../services/makeGetJqlAutocompleteData';
|
|
5
5
|
import { makeGetJqlSuggestionsData } from '../../../services/makeGetJqlSuggestionsData';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-datasource",
|
|
3
|
-
"version": "1.19.
|
|
3
|
+
"version": "1.19.46",
|
|
4
4
|
"description": "UI Components to support linking platform dataset feature",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@atlaskit/avatar": "^21.4.0",
|
|
36
36
|
"@atlaskit/badge": "^15.2.0",
|
|
37
37
|
"@atlaskit/button": "^17.2.0",
|
|
38
|
-
"@atlaskit/dropdown-menu": "^12.
|
|
38
|
+
"@atlaskit/dropdown-menu": "^12.2.0",
|
|
39
39
|
"@atlaskit/editor-prosemirror": "1.1.0",
|
|
40
40
|
"@atlaskit/empty-state": "^7.5.0",
|
|
41
41
|
"@atlaskit/form": "^9.0.3",
|
|
@@ -44,7 +44,8 @@
|
|
|
44
44
|
"@atlaskit/icon-object": "^6.3.0",
|
|
45
45
|
"@atlaskit/image": "^1.1.0",
|
|
46
46
|
"@atlaskit/intl-messages-provider": "^1.0.0",
|
|
47
|
-
"@atlaskit/jql-ast": "^3.
|
|
47
|
+
"@atlaskit/jql-ast": "^3.1.0",
|
|
48
|
+
"@atlaskit/jql-editor": "^4.0.0",
|
|
48
49
|
"@atlaskit/jql-editor-autocomplete-rest": "^2.0.0",
|
|
49
50
|
"@atlaskit/link-client-extension": "^1.8.0",
|
|
50
51
|
"@atlaskit/linking-common": "^5.3.0",
|
|
@@ -56,17 +57,16 @@
|
|
|
56
57
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^0.12.0",
|
|
57
58
|
"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-autoscroll": "^0.6.0",
|
|
58
59
|
"@atlaskit/pragmatic-drag-and-drop-react-indicator": "^0.18.0",
|
|
59
|
-
"@atlaskit/primitives": "^
|
|
60
|
+
"@atlaskit/primitives": "^2.0.0",
|
|
60
61
|
"@atlaskit/select": "^17.0.3",
|
|
61
|
-
"@atlaskit/smart-card": "^26.
|
|
62
|
+
"@atlaskit/smart-card": "^26.46.0",
|
|
62
63
|
"@atlaskit/spinner": "^16.0.0",
|
|
63
64
|
"@atlaskit/tag": "^12.0.0",
|
|
64
65
|
"@atlaskit/textfield": "6.0.0",
|
|
65
66
|
"@atlaskit/theme": "^12.6.0",
|
|
66
|
-
"@atlaskit/tokens": "^1.
|
|
67
|
+
"@atlaskit/tokens": "^1.35.0",
|
|
67
68
|
"@atlaskit/tooltip": "^18.1.0",
|
|
68
69
|
"@atlaskit/ufo": "^0.2.4",
|
|
69
|
-
"@atlassianlabs/jql-editor": "^2.0.1",
|
|
70
70
|
"@babel/runtime": "^7.0.0",
|
|
71
71
|
"@emotion/react": "^11.7.1",
|
|
72
72
|
"@emotion/styled": "^11.0.0",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"devDependencies": {
|
|
85
85
|
"@af/integration-testing": "*",
|
|
86
86
|
"@af/visual-regression": "*",
|
|
87
|
-
"@atlaskit/link-provider": "^1.
|
|
87
|
+
"@atlaskit/link-provider": "^1.7.0",
|
|
88
88
|
"@atlaskit/link-test-helpers": "^6.2.0",
|
|
89
89
|
"@atlaskit/ssr": "*",
|
|
90
90
|
"@atlaskit/visual-regression": "*",
|