@atlaskit/link-datasource 1.17.6 → 1.17.7
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 +7 -0
- package/dist/cjs/analytics/constants.js +1 -1
- package/dist/cjs/ui/jira-issues-modal/basic-filters/ui/async-popup-select/index.js +2 -5
- package/dist/es2019/analytics/constants.js +1 -1
- package/dist/es2019/ui/jira-issues-modal/basic-filters/ui/async-popup-select/index.js +2 -5
- package/dist/esm/analytics/constants.js +1 -1
- package/dist/esm/ui/jira-issues-modal/basic-filters/ui/async-popup-select/index.js +2 -5
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/link-datasource
|
|
2
2
|
|
|
3
|
+
## 1.17.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#43413](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43413) [`73c1cebfd62`](https://bitbucket.org/atlassian/atlassian-frontend/commits/73c1cebfd62) - Move all logic to onOpen when opening the filter dropdown.
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
3
10
|
## 1.17.6
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -154,7 +154,7 @@ var AsyncPopupSelect = function AsyncPopupSelect(_ref) {
|
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
156
|
}, [fetchFilterOptions, pageCursor, searchTerm]);
|
|
157
|
-
var
|
|
157
|
+
var handleMenuOpen = (0, _react.useCallback)(function () {
|
|
158
158
|
if (status === 'empty' || status === 'rejected') {
|
|
159
159
|
// if user searches and gets status as rejected, we want the dropdown to try load the request with searchString when the user reopens the dropdown
|
|
160
160
|
fetchFilterOptions({
|
|
@@ -163,13 +163,11 @@ var AsyncPopupSelect = function AsyncPopupSelect(_ref) {
|
|
|
163
163
|
} else if (status === 'resolved') {
|
|
164
164
|
sortOptionsOnPopupOpen();
|
|
165
165
|
}
|
|
166
|
-
}, [fetchFilterOptions, searchTerm, sortOptionsOnPopupOpen, status]);
|
|
167
|
-
var handleMenuOpen = (0, _react.useCallback)(function () {
|
|
168
166
|
fireEvent('ui.dropdown.opened.basicSearchDropdown', {
|
|
169
167
|
filterType: filterType,
|
|
170
168
|
selectionCount: selectedOptions.length
|
|
171
169
|
});
|
|
172
|
-
}, [filterType, fireEvent, selectedOptions.length]);
|
|
170
|
+
}, [fetchFilterOptions, filterType, fireEvent, searchTerm, selectedOptions.length, sortOptionsOnPopupOpen, status]);
|
|
173
171
|
(0, _react.useEffect)(function () {
|
|
174
172
|
if (status === 'resolved') {
|
|
175
173
|
sortOptionsOnResolve();
|
|
@@ -252,7 +250,6 @@ var AsyncPopupSelect = function AsyncPopupSelect(_ref) {
|
|
|
252
250
|
filterType: filterType,
|
|
253
251
|
selectedOptions: selectedOptions,
|
|
254
252
|
isSelected: isOpen,
|
|
255
|
-
onClick: handleOpenPopup,
|
|
256
253
|
isDisabled: isDisabled
|
|
257
254
|
}));
|
|
258
255
|
},
|
|
@@ -105,7 +105,7 @@ const AsyncPopupSelect = ({
|
|
|
105
105
|
});
|
|
106
106
|
}
|
|
107
107
|
}, [fetchFilterOptions, pageCursor, searchTerm]);
|
|
108
|
-
const
|
|
108
|
+
const handleMenuOpen = useCallback(() => {
|
|
109
109
|
if (status === 'empty' || status === 'rejected') {
|
|
110
110
|
// if user searches and gets status as rejected, we want the dropdown to try load the request with searchString when the user reopens the dropdown
|
|
111
111
|
fetchFilterOptions({
|
|
@@ -114,13 +114,11 @@ const AsyncPopupSelect = ({
|
|
|
114
114
|
} else if (status === 'resolved') {
|
|
115
115
|
sortOptionsOnPopupOpen();
|
|
116
116
|
}
|
|
117
|
-
}, [fetchFilterOptions, searchTerm, sortOptionsOnPopupOpen, status]);
|
|
118
|
-
const handleMenuOpen = useCallback(() => {
|
|
119
117
|
fireEvent('ui.dropdown.opened.basicSearchDropdown', {
|
|
120
118
|
filterType,
|
|
121
119
|
selectionCount: selectedOptions.length
|
|
122
120
|
});
|
|
123
|
-
}, [filterType, fireEvent, selectedOptions.length]);
|
|
121
|
+
}, [fetchFilterOptions, filterType, fireEvent, searchTerm, selectedOptions.length, sortOptionsOnPopupOpen, status]);
|
|
124
122
|
useEffect(() => {
|
|
125
123
|
if (status === 'resolved') {
|
|
126
124
|
sortOptionsOnResolve();
|
|
@@ -203,7 +201,6 @@ const AsyncPopupSelect = ({
|
|
|
203
201
|
filterType: filterType,
|
|
204
202
|
selectedOptions: selectedOptions,
|
|
205
203
|
isSelected: isOpen,
|
|
206
|
-
onClick: handleOpenPopup,
|
|
207
204
|
isDisabled: isDisabled
|
|
208
205
|
})),
|
|
209
206
|
footer: shouldShowFooter && /*#__PURE__*/React.createElement(PopupFooter, {
|
|
@@ -144,7 +144,7 @@ var AsyncPopupSelect = function AsyncPopupSelect(_ref) {
|
|
|
144
144
|
});
|
|
145
145
|
}
|
|
146
146
|
}, [fetchFilterOptions, pageCursor, searchTerm]);
|
|
147
|
-
var
|
|
147
|
+
var handleMenuOpen = useCallback(function () {
|
|
148
148
|
if (status === 'empty' || status === 'rejected') {
|
|
149
149
|
// if user searches and gets status as rejected, we want the dropdown to try load the request with searchString when the user reopens the dropdown
|
|
150
150
|
fetchFilterOptions({
|
|
@@ -153,13 +153,11 @@ var AsyncPopupSelect = function AsyncPopupSelect(_ref) {
|
|
|
153
153
|
} else if (status === 'resolved') {
|
|
154
154
|
sortOptionsOnPopupOpen();
|
|
155
155
|
}
|
|
156
|
-
}, [fetchFilterOptions, searchTerm, sortOptionsOnPopupOpen, status]);
|
|
157
|
-
var handleMenuOpen = useCallback(function () {
|
|
158
156
|
fireEvent('ui.dropdown.opened.basicSearchDropdown', {
|
|
159
157
|
filterType: filterType,
|
|
160
158
|
selectionCount: selectedOptions.length
|
|
161
159
|
});
|
|
162
|
-
}, [filterType, fireEvent, selectedOptions.length]);
|
|
160
|
+
}, [fetchFilterOptions, filterType, fireEvent, searchTerm, selectedOptions.length, sortOptionsOnPopupOpen, status]);
|
|
163
161
|
useEffect(function () {
|
|
164
162
|
if (status === 'resolved') {
|
|
165
163
|
sortOptionsOnResolve();
|
|
@@ -242,7 +240,6 @@ var AsyncPopupSelect = function AsyncPopupSelect(_ref) {
|
|
|
242
240
|
filterType: filterType,
|
|
243
241
|
selectedOptions: selectedOptions,
|
|
244
242
|
isSelected: isOpen,
|
|
245
|
-
onClick: handleOpenPopup,
|
|
246
243
|
isDisabled: isDisabled
|
|
247
244
|
}));
|
|
248
245
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-datasource",
|
|
3
|
-
"version": "1.17.
|
|
3
|
+
"version": "1.17.7",
|
|
4
4
|
"description": "UI Components to support linking platform dataset feature",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@atlaskit/empty-state": "^7.5.0",
|
|
40
40
|
"@atlaskit/form": "^9.0.0",
|
|
41
41
|
"@atlaskit/heading": "^1.4.0",
|
|
42
|
-
"@atlaskit/icon": "^
|
|
42
|
+
"@atlaskit/icon": "^22.0.0",
|
|
43
43
|
"@atlaskit/icon-object": "^6.3.0",
|
|
44
44
|
"@atlaskit/image": "^1.1.0",
|
|
45
45
|
"@atlaskit/intl-messages-provider": "^1.0.0",
|