@atlaskit/link-datasource 1.17.8 → 1.17.9
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/jira-issues-modal/basic-filters/ui/async-popup-select/index.js +7 -0
- package/dist/es2019/analytics/constants.js +1 -1
- package/dist/es2019/ui/jira-issues-modal/basic-filters/ui/async-popup-select/index.js +7 -0
- package/dist/esm/analytics/constants.js +1 -1
- package/dist/esm/ui/jira-issues-modal/basic-filters/ui/async-popup-select/index.js +7 -0
- package/dist/types/analytics/generated/analytics.types.d.ts +8 -1
- package/dist/types-ts4.5/analytics/generated/analytics.types.d.ts +8 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/link-datasource
|
|
2
2
|
|
|
3
|
+
## 1.17.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#43398](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43398) [`a7af91aa3fb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a7af91aa3fb) - Add analytics event when basic filter dropdown menu is closed.
|
|
8
|
+
|
|
3
9
|
## 1.17.8
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -168,6 +168,12 @@ var AsyncPopupSelect = function AsyncPopupSelect(_ref) {
|
|
|
168
168
|
selectionCount: selectedOptions.length
|
|
169
169
|
});
|
|
170
170
|
}, [fetchFilterOptions, filterType, fireEvent, searchTerm, selectedOptions.length, sortOptionsOnPopupOpen, status]);
|
|
171
|
+
var handleMenuClose = (0, _react.useCallback)(function () {
|
|
172
|
+
fireEvent('ui.dropdown.closed.basicSearchDropdown', {
|
|
173
|
+
filterType: filterType,
|
|
174
|
+
selectionCount: selectedOptions.length
|
|
175
|
+
});
|
|
176
|
+
}, [filterType, fireEvent, selectedOptions.length]);
|
|
171
177
|
(0, _react.useEffect)(function () {
|
|
172
178
|
if (status === 'resolved') {
|
|
173
179
|
sortOptionsOnResolve();
|
|
@@ -243,6 +249,7 @@ var AsyncPopupSelect = function AsyncPopupSelect(_ref) {
|
|
|
243
249
|
onChange: handleOptionSelection,
|
|
244
250
|
onInputChange: handleInputChange,
|
|
245
251
|
onOpen: handleMenuOpen,
|
|
252
|
+
onClose: handleMenuClose,
|
|
246
253
|
target: function target(_ref3) {
|
|
247
254
|
var isOpen = _ref3.isOpen,
|
|
248
255
|
triggerProps = (0, _objectWithoutProperties2.default)(_ref3, _excluded);
|
|
@@ -119,6 +119,12 @@ const AsyncPopupSelect = ({
|
|
|
119
119
|
selectionCount: selectedOptions.length
|
|
120
120
|
});
|
|
121
121
|
}, [fetchFilterOptions, filterType, fireEvent, searchTerm, selectedOptions.length, sortOptionsOnPopupOpen, status]);
|
|
122
|
+
const handleMenuClose = useCallback(() => {
|
|
123
|
+
fireEvent('ui.dropdown.closed.basicSearchDropdown', {
|
|
124
|
+
filterType,
|
|
125
|
+
selectionCount: selectedOptions.length
|
|
126
|
+
});
|
|
127
|
+
}, [filterType, fireEvent, selectedOptions.length]);
|
|
122
128
|
useEffect(() => {
|
|
123
129
|
if (status === 'resolved') {
|
|
124
130
|
sortOptionsOnResolve();
|
|
@@ -194,6 +200,7 @@ const AsyncPopupSelect = ({
|
|
|
194
200
|
onChange: handleOptionSelection,
|
|
195
201
|
onInputChange: handleInputChange,
|
|
196
202
|
onOpen: handleMenuOpen,
|
|
203
|
+
onClose: handleMenuClose,
|
|
197
204
|
target: ({
|
|
198
205
|
isOpen,
|
|
199
206
|
...triggerProps
|
|
@@ -158,6 +158,12 @@ var AsyncPopupSelect = function AsyncPopupSelect(_ref) {
|
|
|
158
158
|
selectionCount: selectedOptions.length
|
|
159
159
|
});
|
|
160
160
|
}, [fetchFilterOptions, filterType, fireEvent, searchTerm, selectedOptions.length, sortOptionsOnPopupOpen, status]);
|
|
161
|
+
var handleMenuClose = useCallback(function () {
|
|
162
|
+
fireEvent('ui.dropdown.closed.basicSearchDropdown', {
|
|
163
|
+
filterType: filterType,
|
|
164
|
+
selectionCount: selectedOptions.length
|
|
165
|
+
});
|
|
166
|
+
}, [filterType, fireEvent, selectedOptions.length]);
|
|
161
167
|
useEffect(function () {
|
|
162
168
|
if (status === 'resolved') {
|
|
163
169
|
sortOptionsOnResolve();
|
|
@@ -233,6 +239,7 @@ var AsyncPopupSelect = function AsyncPopupSelect(_ref) {
|
|
|
233
239
|
onChange: handleOptionSelection,
|
|
234
240
|
onInputChange: handleInputChange,
|
|
235
241
|
onOpen: handleMenuOpen,
|
|
242
|
+
onClose: handleMenuClose,
|
|
236
243
|
target: function target(_ref3) {
|
|
237
244
|
var isOpen = _ref3.isOpen,
|
|
238
245
|
triggerProps = _objectWithoutProperties(_ref3, _excluded);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Generates Typescript types for analytics events from analytics.spec.yaml
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::7b6bf74dbad7e14356c81bb8d6285cbe>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen link-datasource
|
|
8
8
|
*/
|
|
9
9
|
export type PackageMetaDataType = {
|
|
@@ -93,6 +93,10 @@ export type DropdownOpenedBasicSearchDropdownAttributesType = {
|
|
|
93
93
|
filterType: 'project' | 'assignee' | 'issuetype' | 'status';
|
|
94
94
|
selectionCount: number;
|
|
95
95
|
};
|
|
96
|
+
export type DropdownClosedBasicSearchDropdownAttributesType = {
|
|
97
|
+
filterType: 'project' | 'assignee' | 'issuetype' | 'status';
|
|
98
|
+
selectionCount: number;
|
|
99
|
+
};
|
|
96
100
|
export type AqlEditorSearchedAttributesType = {};
|
|
97
101
|
export type GetWorkspaceIdSuccessAttributesType = {};
|
|
98
102
|
export type GetWorkspaceIdFailedAttributesType = {
|
|
@@ -168,6 +172,9 @@ export type AnalyticsEventAttributes = {
|
|
|
168
172
|
/**
|
|
169
173
|
* Fired when the basic filter dropdown is opened */
|
|
170
174
|
'ui.dropdown.opened.basicSearchDropdown': DropdownOpenedBasicSearchDropdownAttributesType;
|
|
175
|
+
/**
|
|
176
|
+
* Fired when the basic filter dropdown is closed */
|
|
177
|
+
'ui.dropdown.closed.basicSearchDropdown': DropdownClosedBasicSearchDropdownAttributesType;
|
|
171
178
|
/**
|
|
172
179
|
* Fired when search is initiated via the search icon or enter key press for aql editor input field. */
|
|
173
180
|
'ui.aqlEditor.searched': AqlEditorSearchedAttributesType;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Generates Typescript types for analytics events from analytics.spec.yaml
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::7b6bf74dbad7e14356c81bb8d6285cbe>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen link-datasource
|
|
8
8
|
*/
|
|
9
9
|
export type PackageMetaDataType = {
|
|
@@ -93,6 +93,10 @@ export type DropdownOpenedBasicSearchDropdownAttributesType = {
|
|
|
93
93
|
filterType: 'project' | 'assignee' | 'issuetype' | 'status';
|
|
94
94
|
selectionCount: number;
|
|
95
95
|
};
|
|
96
|
+
export type DropdownClosedBasicSearchDropdownAttributesType = {
|
|
97
|
+
filterType: 'project' | 'assignee' | 'issuetype' | 'status';
|
|
98
|
+
selectionCount: number;
|
|
99
|
+
};
|
|
96
100
|
export type AqlEditorSearchedAttributesType = {};
|
|
97
101
|
export type GetWorkspaceIdSuccessAttributesType = {};
|
|
98
102
|
export type GetWorkspaceIdFailedAttributesType = {
|
|
@@ -168,6 +172,9 @@ export type AnalyticsEventAttributes = {
|
|
|
168
172
|
/**
|
|
169
173
|
* Fired when the basic filter dropdown is opened */
|
|
170
174
|
'ui.dropdown.opened.basicSearchDropdown': DropdownOpenedBasicSearchDropdownAttributesType;
|
|
175
|
+
/**
|
|
176
|
+
* Fired when the basic filter dropdown is closed */
|
|
177
|
+
'ui.dropdown.closed.basicSearchDropdown': DropdownClosedBasicSearchDropdownAttributesType;
|
|
171
178
|
/**
|
|
172
179
|
* Fired when search is initiated via the search icon or enter key press for aql editor input field. */
|
|
173
180
|
'ui.aqlEditor.searched': AqlEditorSearchedAttributesType;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-datasource",
|
|
3
|
-
"version": "1.17.
|
|
3
|
+
"version": "1.17.9",
|
|
4
4
|
"description": "UI Components to support linking platform dataset feature",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^0.12.0",
|
|
56
56
|
"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-autoscroll": "^0.6.0",
|
|
57
57
|
"@atlaskit/pragmatic-drag-and-drop-react-indicator": "^0.17.0",
|
|
58
|
-
"@atlaskit/primitives": "^1.
|
|
58
|
+
"@atlaskit/primitives": "^1.11.0",
|
|
59
59
|
"@atlaskit/select": "^17.0.0",
|
|
60
60
|
"@atlaskit/smart-card": "^26.42.0",
|
|
61
61
|
"@atlaskit/spinner": "^16.0.0",
|