@atlaskit/link-datasource 1.17.12 → 1.17.13

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/link-datasource
2
2
 
3
+ ## 1.17.13
4
+
5
+ ### Patch Changes
6
+
7
+ - [#43512](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43512) [`b84de957bd4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b84de957bd4) - Add analytics event when basic filter dropdown show more button is clicked.
8
+
3
9
  ## 1.17.12
4
10
 
5
11
  ### Patch Changes
@@ -7,5 +7,5 @@ exports.packageMetaData = exports.EVENT_CHANNEL = void 0;
7
7
  var EVENT_CHANNEL = exports.EVENT_CHANNEL = 'media';
8
8
  var packageMetaData = exports.packageMetaData = {
9
9
  packageName: "@atlaskit/link-datasource",
10
- packageVersion: "1.17.12"
10
+ packageVersion: "1.17.13"
11
11
  };
@@ -152,8 +152,12 @@ var AsyncPopupSelect = function AsyncPopupSelect(_ref) {
152
152
  pageCursor: pageCursor,
153
153
  searchString: searchTerm
154
154
  });
155
+ fireEvent('ui.button.clicked.basicSearchDropdown', {
156
+ filterType: filterType,
157
+ type: 'showMore'
158
+ });
155
159
  }
156
- }, [fetchFilterOptions, pageCursor, searchTerm]);
160
+ }, [fetchFilterOptions, filterType, fireEvent, pageCursor, searchTerm]);
157
161
  var handleMenuOpen = (0, _react.useCallback)(function () {
158
162
  if (status === 'empty' || status === 'rejected') {
159
163
  // 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
@@ -1,5 +1,5 @@
1
1
  export const EVENT_CHANNEL = 'media';
2
2
  export const packageMetaData = {
3
3
  packageName: "@atlaskit/link-datasource",
4
- packageVersion: "1.17.12"
4
+ packageVersion: "1.17.13"
5
5
  };
@@ -103,8 +103,12 @@ const AsyncPopupSelect = ({
103
103
  pageCursor,
104
104
  searchString: searchTerm
105
105
  });
106
+ fireEvent('ui.button.clicked.basicSearchDropdown', {
107
+ filterType,
108
+ type: 'showMore'
109
+ });
106
110
  }
107
- }, [fetchFilterOptions, pageCursor, searchTerm]);
111
+ }, [fetchFilterOptions, filterType, fireEvent, pageCursor, searchTerm]);
108
112
  const handleMenuOpen = useCallback(() => {
109
113
  if (status === 'empty' || status === 'rejected') {
110
114
  // 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
@@ -1,5 +1,5 @@
1
1
  export var EVENT_CHANNEL = 'media';
2
2
  export var packageMetaData = {
3
3
  packageName: "@atlaskit/link-datasource",
4
- packageVersion: "1.17.12"
4
+ packageVersion: "1.17.13"
5
5
  };
@@ -142,8 +142,12 @@ var AsyncPopupSelect = function AsyncPopupSelect(_ref) {
142
142
  pageCursor: pageCursor,
143
143
  searchString: searchTerm
144
144
  });
145
+ fireEvent('ui.button.clicked.basicSearchDropdown', {
146
+ filterType: filterType,
147
+ type: 'showMore'
148
+ });
145
149
  }
146
- }, [fetchFilterOptions, pageCursor, searchTerm]);
150
+ }, [fetchFilterOptions, filterType, fireEvent, pageCursor, searchTerm]);
147
151
  var handleMenuOpen = useCallback(function () {
148
152
  if (status === 'empty' || status === 'rejected') {
149
153
  // 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
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Generates Typescript types for analytics events from analytics.spec.yaml
5
5
  *
6
- * @codegen <<SignedSource::7b6bf74dbad7e14356c81bb8d6285cbe>>
6
+ * @codegen <<SignedSource::ccda345ed2d15f3bbe167f871f676090>>
7
7
  * @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen link-datasource
8
8
  */
9
9
  export type PackageMetaDataType = {
@@ -97,6 +97,10 @@ export type DropdownClosedBasicSearchDropdownAttributesType = {
97
97
  filterType: 'project' | 'assignee' | 'issuetype' | 'status';
98
98
  selectionCount: number;
99
99
  };
100
+ export type ButtonClickedBasicSearchDropdownAttributesType = {
101
+ filterType: 'project' | 'assignee' | 'issuetype' | 'status';
102
+ type: 'showMore';
103
+ };
100
104
  export type AqlEditorSearchedAttributesType = {};
101
105
  export type GetWorkspaceIdSuccessAttributesType = {};
102
106
  export type GetWorkspaceIdFailedAttributesType = {
@@ -175,6 +179,9 @@ export type AnalyticsEventAttributes = {
175
179
  /**
176
180
  * Fired when the basic filter dropdown is closed */
177
181
  'ui.dropdown.closed.basicSearchDropdown': DropdownClosedBasicSearchDropdownAttributesType;
182
+ /**
183
+ * Fired when the “show more” button inside the dropdown menu is clicked */
184
+ 'ui.button.clicked.basicSearchDropdown': ButtonClickedBasicSearchDropdownAttributesType;
178
185
  /**
179
186
  * Fired when search is initiated via the search icon or enter key press for aql editor input field. */
180
187
  '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::7b6bf74dbad7e14356c81bb8d6285cbe>>
6
+ * @codegen <<SignedSource::ccda345ed2d15f3bbe167f871f676090>>
7
7
  * @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen link-datasource
8
8
  */
9
9
  export type PackageMetaDataType = {
@@ -97,6 +97,10 @@ export type DropdownClosedBasicSearchDropdownAttributesType = {
97
97
  filterType: 'project' | 'assignee' | 'issuetype' | 'status';
98
98
  selectionCount: number;
99
99
  };
100
+ export type ButtonClickedBasicSearchDropdownAttributesType = {
101
+ filterType: 'project' | 'assignee' | 'issuetype' | 'status';
102
+ type: 'showMore';
103
+ };
100
104
  export type AqlEditorSearchedAttributesType = {};
101
105
  export type GetWorkspaceIdSuccessAttributesType = {};
102
106
  export type GetWorkspaceIdFailedAttributesType = {
@@ -175,6 +179,9 @@ export type AnalyticsEventAttributes = {
175
179
  /**
176
180
  * Fired when the basic filter dropdown is closed */
177
181
  'ui.dropdown.closed.basicSearchDropdown': DropdownClosedBasicSearchDropdownAttributesType;
182
+ /**
183
+ * Fired when the “show more” button inside the dropdown menu is clicked */
184
+ 'ui.button.clicked.basicSearchDropdown': ButtonClickedBasicSearchDropdownAttributesType;
178
185
  /**
179
186
  * Fired when search is initiated via the search icon or enter key press for aql editor input field. */
180
187
  'ui.aqlEditor.searched': AqlEditorSearchedAttributesType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-datasource",
3
- "version": "1.17.12",
3
+ "version": "1.17.13",
4
4
  "description": "UI Components to support linking platform dataset feature",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"