@atlaskit/link-datasource 5.4.4 → 5.5.1

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.
Files changed (60) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/cjs/common/utils/locale/fetch-messages-for-locale.js +16 -18
  3. package/dist/cjs/hooks/useAssetsClient.js +41 -41
  4. package/dist/cjs/hooks/useDatasourceTableState.js +50 -49
  5. package/dist/cjs/hooks/useLoadOptions.js +8 -8
  6. package/dist/cjs/hooks/useObjectSchemas.js +17 -17
  7. package/dist/cjs/hooks/useValidateAqlText.js +15 -15
  8. package/dist/cjs/services/cmdbService.js +43 -43
  9. package/dist/cjs/services/getAvailableSites.js +19 -19
  10. package/dist/cjs/services/makeGetJqlAutocompleteData.js +19 -19
  11. package/dist/cjs/services/makeGetJqlSuggestionsData.js +17 -17
  12. package/dist/cjs/services/useAvailableSites.js +4 -4
  13. package/dist/cjs/services/useBasicFilterAGG.js +1 -1
  14. package/dist/cjs/state/actions/index.js +11 -11
  15. package/dist/cjs/ui/assets-modal/search-container/object-schema-select/index.js +13 -13
  16. package/dist/cjs/ui/common/error-state/provider-auth-required.js +13 -12
  17. package/dist/cjs/ui/common/modal/popup-select/index.js +1 -1
  18. package/dist/cjs/ui/confluence-search-modal/basic-filters/filters/date-range-picker/messages.js +2 -2
  19. package/dist/cjs/ui/confluence-search-modal/basic-filters/filters/edited-or-created-by/index.js +2 -2
  20. package/dist/cjs/ui/confluence-search-modal/basic-filters/hooks/useBasicFilterHydration.js +12 -12
  21. package/dist/cjs/ui/confluence-search-modal/basic-filters/hooks/useCurrentUserInfo.js +4 -4
  22. package/dist/cjs/ui/confluence-search-modal/basic-filters/hooks/useRecommendation.js +19 -19
  23. package/dist/cjs/ui/issue-like-table/drag-column-preview.compiled.css +1 -1
  24. package/dist/cjs/ui/issue-like-table/drag-column-preview.js +1 -1
  25. package/dist/cjs/ui/issue-like-table/index.js +14 -13
  26. package/dist/cjs/ui/jira-issues-modal/basic-filters/hooks/useFilterOptions.js +25 -23
  27. package/dist/cjs/ui/jira-issues-modal/basic-filters/hooks/useHydrateJqlQuery.js +13 -13
  28. package/dist/cjs/ui/jira-issues-modal/basic-filters/ui/async-popup-select/index.js +2 -2
  29. package/dist/es2019/ui/confluence-search-modal/basic-filters/filters/date-range-picker/messages.js +2 -2
  30. package/dist/es2019/ui/issue-like-table/drag-column-preview.compiled.css +1 -1
  31. package/dist/es2019/ui/issue-like-table/drag-column-preview.js +1 -1
  32. package/dist/esm/common/utils/locale/fetch-messages-for-locale.js +15 -17
  33. package/dist/esm/hooks/useAssetsClient.js +41 -41
  34. package/dist/esm/hooks/useDatasourceTableState.js +50 -49
  35. package/dist/esm/hooks/useLoadOptions.js +8 -8
  36. package/dist/esm/hooks/useObjectSchemas.js +17 -17
  37. package/dist/esm/hooks/useValidateAqlText.js +15 -15
  38. package/dist/esm/services/cmdbService.js +43 -43
  39. package/dist/esm/services/getAvailableSites.js +19 -19
  40. package/dist/esm/services/makeGetJqlAutocompleteData.js +19 -19
  41. package/dist/esm/services/makeGetJqlSuggestionsData.js +17 -17
  42. package/dist/esm/services/useAvailableSites.js +4 -4
  43. package/dist/esm/services/useBasicFilterAGG.js +1 -1
  44. package/dist/esm/state/actions/index.js +11 -11
  45. package/dist/esm/ui/assets-modal/search-container/object-schema-select/index.js +12 -12
  46. package/dist/esm/ui/common/error-state/provider-auth-required.js +12 -11
  47. package/dist/esm/ui/common/modal/popup-select/index.js +1 -1
  48. package/dist/esm/ui/confluence-search-modal/basic-filters/filters/date-range-picker/messages.js +2 -2
  49. package/dist/esm/ui/confluence-search-modal/basic-filters/filters/edited-or-created-by/index.js +2 -2
  50. package/dist/esm/ui/confluence-search-modal/basic-filters/hooks/useBasicFilterHydration.js +12 -12
  51. package/dist/esm/ui/confluence-search-modal/basic-filters/hooks/useCurrentUserInfo.js +4 -4
  52. package/dist/esm/ui/confluence-search-modal/basic-filters/hooks/useRecommendation.js +19 -19
  53. package/dist/esm/ui/issue-like-table/drag-column-preview.compiled.css +1 -1
  54. package/dist/esm/ui/issue-like-table/drag-column-preview.js +1 -1
  55. package/dist/esm/ui/issue-like-table/index.js +13 -12
  56. package/dist/esm/ui/jira-issues-modal/basic-filters/hooks/useFilterOptions.js +25 -23
  57. package/dist/esm/ui/jira-issues-modal/basic-filters/hooks/useHydrateJqlQuery.js +13 -13
  58. package/dist/esm/ui/jira-issues-modal/basic-filters/ui/async-popup-select/index.js +2 -2
  59. package/link-datasource.docs.tsx +6 -3
  60. package/package.json +13 -13
@@ -3,11 +3,11 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
3
3
  export var makeGetJqlAutocompleteData = function makeGetJqlAutocompleteData(cloudId) {
4
4
  return /*#__PURE__*/function () {
5
5
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(url) {
6
- var response, data;
7
- return _regeneratorRuntime.wrap(function _callee$(_context) {
6
+ var response, data, _t, _t2, _t3;
7
+ return _regeneratorRuntime.wrap(function (_context) {
8
8
  while (1) switch (_context.prev = _context.next) {
9
9
  case 0:
10
- _context.next = 2;
10
+ _context.next = 1;
11
11
  return fetch("/gateway/api/ex/jira/".concat(cloudId, "/").concat(url), {
12
12
  method: 'POST',
13
13
  headers: {
@@ -17,35 +17,35 @@ export var makeGetJqlAutocompleteData = function makeGetJqlAutocompleteData(clou
17
17
  includeCollapsedFields: true
18
18
  })
19
19
  });
20
- case 2:
20
+ case 1:
21
21
  response = _context.sent;
22
22
  if (!response.ok) {
23
- _context.next = 8;
23
+ _context.next = 3;
24
24
  break;
25
25
  }
26
- _context.next = 6;
26
+ _context.next = 2;
27
27
  return response.json();
28
- case 6:
28
+ case 2:
29
29
  data = _context.sent;
30
30
  return _context.abrupt("return", {
31
31
  jqlFields: data.visibleFieldNames,
32
32
  jqlFunctions: data.visibleFunctionNames
33
33
  });
34
- case 8:
35
- _context.t0 = Error;
36
- _context.next = 11;
34
+ case 3:
35
+ _t = Error;
36
+ _context.next = 4;
37
37
  return response.text();
38
- case 11:
39
- _context.t1 = _context.sent;
40
- if (_context.t1) {
41
- _context.next = 14;
38
+ case 4:
39
+ _t2 = _context.sent;
40
+ if (_t2) {
41
+ _context.next = 5;
42
42
  break;
43
43
  }
44
- _context.t1 = 'Something went wrong';
45
- case 14:
46
- _context.t2 = _context.t1;
47
- throw new _context.t0(_context.t2);
48
- case 16:
44
+ _t2 = 'Something went wrong';
45
+ case 5:
46
+ _t3 = _t2;
47
+ throw new _t(_t3);
48
+ case 6:
49
49
  case "end":
50
50
  return _context.stop();
51
51
  }
@@ -3,38 +3,38 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
3
3
  export var makeGetJqlSuggestionsData = function makeGetJqlSuggestionsData(cloudId) {
4
4
  return /*#__PURE__*/function () {
5
5
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(url) {
6
- var response;
7
- return _regeneratorRuntime.wrap(function _callee$(_context) {
6
+ var response, _t, _t2, _t3;
7
+ return _regeneratorRuntime.wrap(function (_context) {
8
8
  while (1) switch (_context.prev = _context.next) {
9
9
  case 0:
10
- _context.next = 2;
10
+ _context.next = 1;
11
11
  return fetch("/gateway/api/ex/jira/".concat(cloudId, "/").concat(url), {
12
12
  headers: {
13
13
  'content-type': 'application/json'
14
14
  }
15
15
  });
16
- case 2:
16
+ case 1:
17
17
  response = _context.sent;
18
18
  if (!response.ok) {
19
- _context.next = 5;
19
+ _context.next = 2;
20
20
  break;
21
21
  }
22
22
  return _context.abrupt("return", response.json());
23
- case 5:
24
- _context.t0 = Error;
25
- _context.next = 8;
23
+ case 2:
24
+ _t = Error;
25
+ _context.next = 3;
26
26
  return response.text();
27
- case 8:
28
- _context.t1 = _context.sent;
29
- if (_context.t1) {
30
- _context.next = 11;
27
+ case 3:
28
+ _t2 = _context.sent;
29
+ if (_t2) {
30
+ _context.next = 4;
31
31
  break;
32
32
  }
33
- _context.t1 = 'Something went wrong';
34
- case 11:
35
- _context.t2 = _context.t1;
36
- throw new _context.t0(_context.t2);
37
- case 13:
33
+ _t2 = 'Something went wrong';
34
+ case 4:
35
+ _t3 = _t2;
36
+ throw new _t(_t3);
37
+ case 5:
38
38
  case "end":
39
39
  return _context.stop();
40
40
  }
@@ -13,18 +13,18 @@ export var useAvailableSites = function useAvailableSites(product, cloudId) {
13
13
  var fetchSiteDisplayNames = /*#__PURE__*/function () {
14
14
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
15
15
  var sites, sortedAvailableSites;
16
- return _regeneratorRuntime.wrap(function _callee$(_context) {
16
+ return _regeneratorRuntime.wrap(function (_context) {
17
17
  while (1) switch (_context.prev = _context.next) {
18
18
  case 0:
19
- _context.next = 2;
19
+ _context.next = 1;
20
20
  return getAccessibleProducts(product);
21
- case 2:
21
+ case 1:
22
22
  sites = _context.sent;
23
23
  sortedAvailableSites = _toConsumableArray(sites).sort(function (a, b) {
24
24
  return a.displayName.localeCompare(b.displayName);
25
25
  });
26
26
  setAvailableSites(sortedAvailableSites);
27
- case 5:
27
+ case 2:
28
28
  case "end":
29
29
  return _context.stop();
30
30
  }
@@ -7,7 +7,7 @@ var AGG_BASE_URL = '/gateway/api/graphql';
7
7
  export var useBasicFilterAGG = function useBasicFilterAGG() {
8
8
  var requestCall = useCallback( /*#__PURE__*/function () {
9
9
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(body, headers) {
10
- return _regeneratorRuntime.wrap(function _callee$(_context) {
10
+ return _regeneratorRuntime.wrap(function (_context) {
11
11
  while (1) switch (_context.prev = _context.next) {
12
12
  case 0:
13
13
  return _context.abrupt("return", request('post', AGG_BASE_URL, body, headers, [200, 201, 202, 203, 204]));
@@ -67,15 +67,15 @@ export var actions = {
67
67
  discoverActions: function discoverActions(captureError, fireEvent, api, request) {
68
68
  return /*#__PURE__*/function () {
69
69
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(_ref) {
70
- var setState, getState, response, _getState, currentActions, currentPermissions, actionsByIntegration, permissions;
71
- return _regeneratorRuntime.wrap(function _callee$(_context) {
70
+ var setState, getState, response, _getState, currentActions, currentPermissions, actionsByIntegration, permissions, _t;
71
+ return _regeneratorRuntime.wrap(function (_context) {
72
72
  while (1) switch (_context.prev = _context.next) {
73
73
  case 0:
74
74
  setState = _ref.setState, getState = _ref.getState;
75
75
  _context.prev = 1;
76
- _context.next = 4;
76
+ _context.next = 2;
77
77
  return api.getDatasourceActionsAndPermissions(request);
78
- case 4:
78
+ case 2:
79
79
  response = _context.sent;
80
80
  if ('permissions' in response) {
81
81
  _getState = getState(), currentActions = _getState.actionsByIntegration, currentPermissions = _getState.permissions;
@@ -110,20 +110,20 @@ export var actions = {
110
110
  experience: 'datasource'
111
111
  });
112
112
  }
113
- _context.next = 11;
113
+ _context.next = 4;
114
114
  break;
115
- case 8:
116
- _context.prev = 8;
117
- _context.t0 = _context["catch"](1);
115
+ case 3:
116
+ _context.prev = 3;
117
+ _t = _context["catch"](1);
118
118
  /**
119
119
  * captureError was already initialised with integrationKey or datasourceId
120
120
  */
121
- captureError('actionDiscovery', _context.t0);
122
- case 11:
121
+ captureError('actionDiscovery', _t);
122
+ case 4:
123
123
  case "end":
124
124
  return _context.stop();
125
125
  }
126
- }, _callee, null, [[1, 8]]);
126
+ }, _callee, null, [[1, 3]]);
127
127
  }));
128
128
  return function (_x) {
129
129
  return _ref2.apply(this, arguments);
@@ -88,16 +88,16 @@ export var AssetsObjectSchemaSelect = function AssetsObjectSchemaSelect(_ref2) {
88
88
  var loadOptions = /*#__PURE__*/function () {
89
89
  var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(inputValue) {
90
90
  var _yield$fetchObjectSch, objectSchemas;
91
- return _regeneratorRuntime.wrap(function _callee$(_context) {
91
+ return _regeneratorRuntime.wrap(function (_context) {
92
92
  while (1) switch (_context.prev = _context.next) {
93
93
  case 0:
94
- _context.next = 2;
94
+ _context.next = 1;
95
95
  return fetchObjectSchemas(inputValue);
96
- case 2:
96
+ case 1:
97
97
  _yield$fetchObjectSch = _context.sent;
98
98
  objectSchemas = _yield$fetchObjectSch.objectSchemas;
99
99
  return _context.abrupt("return", mapObjectSchemasToOptions(objectSchemas));
100
- case 5:
100
+ case 2:
101
101
  case "end":
102
102
  return _context.stop();
103
103
  }
@@ -117,7 +117,7 @@ export var AssetsObjectSchemaSelect = function AssetsObjectSchemaSelect(_ref2) {
117
117
  var debounceTimeout = useRef(null);
118
118
  var handleInputChange = useCallback( /*#__PURE__*/function () {
119
119
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(newSearchTerm, actionMeta) {
120
- return _regeneratorRuntime.wrap(function _callee3$(_context3) {
120
+ return _regeneratorRuntime.wrap(function (_context3) {
121
121
  while (1) switch (_context3.prev = _context3.next) {
122
122
  case 0:
123
123
  if (actionMeta.action === 'input-change' && newSearchTerm !== searchTerm) {
@@ -126,16 +126,16 @@ export var AssetsObjectSchemaSelect = function AssetsObjectSchemaSelect(_ref2) {
126
126
  clearTimeout(debounceTimeout.current);
127
127
  }
128
128
  debounceTimeout.current = setTimeout( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
129
- return _regeneratorRuntime.wrap(function _callee2$(_context2) {
129
+ var _t;
130
+ return _regeneratorRuntime.wrap(function (_context2) {
130
131
  while (1) switch (_context2.prev = _context2.next) {
131
132
  case 0:
132
- _context2.t0 = setOptions;
133
- _context2.next = 3;
133
+ _t = setOptions;
134
+ _context2.next = 1;
134
135
  return debouncedLoadOptions(newSearchTerm);
135
- case 3:
136
- _context2.t1 = _context2.sent;
137
- (0, _context2.t0)(_context2.t1);
138
- case 5:
136
+ case 1:
137
+ _t(_context2.sent);
138
+ case 2:
139
139
  case "end":
140
140
  return _context2.stop();
141
141
  }
@@ -44,35 +44,36 @@ export var ProviderAuthRequired = function ProviderAuthRequired(_ref) {
44
44
  }, [fireEvent]);
45
45
  var onAuthRequest = /*#__PURE__*/function () {
46
46
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
47
- return _regeneratorRuntime.wrap(function _callee$(_context) {
47
+ var _t;
48
+ return _regeneratorRuntime.wrap(function (_context) {
48
49
  while (1) switch (_context.prev = _context.next) {
49
50
  case 0:
50
51
  _context.prev = 0;
51
- _context.next = 3;
52
+ _context.next = 1;
52
53
  return outboundAuth(authInfo.url);
53
- case 3:
54
+ case 1:
54
55
  fireEvent('operational.provider.authSuccess', {
55
56
  extensionKey: extensionKey,
56
57
  experience: 'datasource'
57
58
  });
58
59
  onAuthSuccess === null || onAuthSuccess === void 0 || onAuthSuccess();
59
- _context.next = 12;
60
+ _context.next = 3;
60
61
  break;
61
- case 7:
62
- _context.prev = 7;
63
- _context.t0 = _context["catch"](0);
62
+ case 2:
63
+ _context.prev = 2;
64
+ _t = _context["catch"](0);
64
65
  fireEvent('operational.provider.authFailure', {
65
- reason: _context.t0 instanceof AuthError && _context.t0.type ? _context.t0.type : null,
66
+ reason: _t instanceof AuthError && _t.type ? _t.type : null,
66
67
  extensionKey: extensionKey,
67
68
  experience: 'datasource'
68
69
  });
69
- captureError('ProviderOnAuthRequest', _context.t0);
70
+ captureError('ProviderOnAuthRequest', _t);
70
71
  onAuthError === null || onAuthError === void 0 || onAuthError();
71
- case 12:
72
+ case 3:
72
73
  case "end":
73
74
  return _context.stop();
74
75
  }
75
- }, _callee, null, [[0, 7]]);
76
+ }, _callee, null, [[0, 2]]);
76
77
  }));
77
78
  return function onAuthRequest() {
78
79
  return _ref2.apply(this, arguments);
@@ -134,7 +134,7 @@ export var FilterPopupSelect = function FilterPopupSelect(_ref) {
134
134
  }, [filterName, fireEvent, onInputChange, onMenuClose, searchTerm, selectedOptions.length]);
135
135
  var handleInputChange = useCallback( /*#__PURE__*/function () {
136
136
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(newSearchTerm, actionMeta) {
137
- return _regeneratorRuntime.wrap(function _callee$(_context) {
137
+ return _regeneratorRuntime.wrap(function (_context) {
138
138
  while (1) switch (_context.prev = _context.next) {
139
139
  case 0:
140
140
  if (actionMeta.action === 'input-change' && newSearchTerm !== searchTerm) {
@@ -38,7 +38,7 @@ export var dateRangeMessages = defineMessages({
38
38
  dateRangeCustom: {
39
39
  id: 'linkDataSource.confluence-search.configmodal.date.range.custom',
40
40
  defaultMessage: 'Custom',
41
- description: 'Custom date range'
41
+ description: 'Option to select a custom date range for filtering content by last modified date'
42
42
  },
43
43
  dateRangeFrom: {
44
44
  id: 'linkDataSource.confluence-search.configmodal.date.range.from',
@@ -48,7 +48,7 @@ export var dateRangeMessages = defineMessages({
48
48
  dateRangeTo: {
49
49
  id: 'linkDataSource.confluence-search.configmodal.date.range.to',
50
50
  defaultMessage: 'To',
51
- description: 'Filter up to a custom date'
51
+ description: 'Label for the end date field in the custom date range filter picker'
52
52
  },
53
53
  dateRangeDateInputPlaceholder: {
54
54
  id: 'linkDataSource.confluence-search.configmodal.date.range.input.placeholder',
@@ -46,12 +46,12 @@ var EditedOrCreatedByFilter = function EditedOrCreatedByFilter(_ref) {
46
46
  handleDebouncedFetchFilterOptions = _useDebouncedCallback2[0];
47
47
  var handleInputChange = useCallback( /*#__PURE__*/function () {
48
48
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(newSearchTerm) {
49
- return _regeneratorRuntime.wrap(function _callee$(_context) {
49
+ return _regeneratorRuntime.wrap(function (_context) {
50
50
  while (1) switch (_context.prev = _context.next) {
51
51
  case 0:
52
52
  setSearchTerm(newSearchTerm);
53
53
  handleDebouncedFetchFilterOptions(newSearchTerm);
54
- case 2:
54
+ case 1:
55
55
  case "end":
56
56
  return _context.stop();
57
57
  }
@@ -30,35 +30,35 @@ export var useBasicFilterHydration = function useBasicFilterHydration() {
30
30
  };
31
31
  var hydrateUsersFromAccountIds = useCallback( /*#__PURE__*/function () {
32
32
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(accountIds) {
33
- var response;
34
- return _regeneratorRuntime.wrap(function _callee$(_context) {
33
+ var response, _t;
34
+ return _regeneratorRuntime.wrap(function (_context) {
35
35
  while (1) switch (_context.prev = _context.next) {
36
36
  case 0:
37
37
  _context.prev = 0;
38
38
  setStatus('loading');
39
- _context.next = 4;
39
+ _context.next = 1;
40
40
  return getUsersFromAccountIDs(accountIds);
41
- case 4:
41
+ case 1:
42
42
  response = _context.sent;
43
43
  if (!(response.errors && response.errors.length > 0)) {
44
- _context.next = 7;
44
+ _context.next = 2;
45
45
  break;
46
46
  }
47
47
  throw new Error(JSON.stringify(response.errors));
48
- case 7:
48
+ case 2:
49
49
  setUsers(convertUserHydrationResponseToFilterOptions(response));
50
50
  setStatus('resolved');
51
- _context.next = 14;
51
+ _context.next = 4;
52
52
  break;
53
- case 11:
54
- _context.prev = 11;
55
- _context.t0 = _context["catch"](0);
53
+ case 3:
54
+ _context.prev = 3;
55
+ _t = _context["catch"](0);
56
56
  setStatus('rejected');
57
- case 14:
57
+ case 4:
58
58
  case "end":
59
59
  return _context.stop();
60
60
  }
61
- }, _callee, null, [[0, 11]]);
61
+ }, _callee, null, [[0, 3]]);
62
62
  }));
63
63
  return function (_x) {
64
64
  return _ref.apply(this, arguments);
@@ -13,15 +13,15 @@ export var useCurrentUserInfo = function useCurrentUserInfo() {
13
13
  var getCurrentUserInfo = useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
14
14
  var _user$data;
15
15
  var user;
16
- return _regeneratorRuntime.wrap(function _callee$(_context) {
16
+ return _regeneratorRuntime.wrap(function (_context) {
17
17
  while (1) switch (_context.prev = _context.next) {
18
18
  case 0:
19
- _context.next = 2;
19
+ _context.next = 1;
20
20
  return getCurrentUserInfoFromAGG();
21
- case 2:
21
+ case 1:
22
22
  user = _context.sent;
23
23
  setUser((_user$data = user.data) === null || _user$data === void 0 || (_user$data = _user$data.me) === null || _user$data === void 0 ? void 0 : _user$data.user);
24
- case 4:
24
+ case 2:
25
25
  case "end":
26
26
  return _context.stop();
27
27
  }
@@ -31,8 +31,8 @@ var useRecommendation = function useRecommendation() {
31
31
  };
32
32
  var fetchFilterOptions = useCallback( /*#__PURE__*/function () {
33
33
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(_ref) {
34
- var userId, cloudId, searchTerm, requestParams, initialResponseData, isRequestLikeInitialSearch, recommendations;
35
- return _regeneratorRuntime.wrap(function _callee$(_context) {
34
+ var userId, cloudId, searchTerm, requestParams, initialResponseData, isRequestLikeInitialSearch, recommendations, _t, _t2;
35
+ return _regeneratorRuntime.wrap(function (_context) {
36
36
  while (1) switch (_context.prev = _context.next) {
37
37
  case 0:
38
38
  userId = _ref.userId, cloudId = _ref.cloudId, searchTerm = _ref.searchTerm;
@@ -56,21 +56,21 @@ var useRecommendation = function useRecommendation() {
56
56
  };
57
57
  initialResponseData = initialData.current;
58
58
  isRequestLikeInitialSearch = !searchTerm;
59
- _context.prev = 5;
59
+ _context.prev = 1;
60
60
  if (!(isRequestLikeInitialSearch && initialResponseData)) {
61
- _context.next = 10;
61
+ _context.next = 2;
62
62
  break;
63
63
  }
64
- _context.t0 = initialResponseData;
65
- _context.next = 13;
64
+ _t = initialResponseData;
65
+ _context.next = 4;
66
66
  break;
67
- case 10:
68
- _context.next = 12;
67
+ case 2:
68
+ _context.next = 3;
69
69
  return getUserRecommendations(requestParams, intl);
70
- case 12:
71
- _context.t0 = _context.sent;
72
- case 13:
73
- recommendations = _context.t0;
70
+ case 3:
71
+ _t = _context.sent;
72
+ case 4:
73
+ recommendations = _t;
74
74
  setFilterOptions(convertRecommendationsToFilterOptions(recommendations));
75
75
  setStatus('resolved');
76
76
  if (!searchTerm) {
@@ -80,18 +80,18 @@ var useRecommendation = function useRecommendation() {
80
80
  */
81
81
  initialData.current = recommendations;
82
82
  }
83
- _context.next = 23;
83
+ _context.next = 6;
84
84
  break;
85
- case 19:
86
- _context.prev = 19;
87
- _context.t1 = _context["catch"](5);
85
+ case 5:
86
+ _context.prev = 5;
87
+ _t2 = _context["catch"](1);
88
88
  setStatus('rejected');
89
- setErrors([_context.t1]);
90
- case 23:
89
+ setErrors([_t2]);
90
+ case 6:
91
91
  case "end":
92
92
  return _context.stop();
93
93
  }
94
- }, _callee, null, [[5, 19]]);
94
+ }, _callee, null, [[1, 5]]);
95
95
  }));
96
96
  return function (_x) {
97
97
  return _ref2.apply(this, arguments);
@@ -48,7 +48,7 @@ thead.has-column-picker ._10i2idpf:nth-last-of-type(2){border-right:0}
48
48
  ._8lvj1b66 [data-testid=datasource-header-content--container]{padding-left:var(--ds-space-050,4px)}
49
49
  ._95ex1hna [data-testid=datasource-header-content--container]{word-wrap:break-word}
50
50
  ._ab8av77o [data-testid=datasource-header-content--container]{padding-top:var(--ds-space-025,2px)}
51
- ._bfhkby5v{background-color:var(--ds-background-disabled,#17171708)}
51
+ ._bfhk187o{background-color:var(--ds-background-disabled,#0515240f)}
52
52
  ._bfhkchd4{background-color:var(--ds-elevation-surface-current,#fff)}
53
53
  ._bfhkvuon{background-color:var(--ds-surface,#fff)}
54
54
  ._btyzidpf{border-spacing:0}
@@ -35,7 +35,7 @@ var TablePreviewHeading = forwardRef(function (_ref2, __cmplr) {
35
35
  return /*#__PURE__*/React.createElement(C, _extends({}, __cmplp, {
36
36
  style: __cmpls,
37
37
  ref: __cmplr,
38
- className: ax(["_1reo15vq _18m915vq _1bto1l2s _o5721q9c _bfhkby5v _p12fuuw1 _1lhcu2gc _u128u2gc _1djhu2gc _1o59u2gc", __cmplp.className])
38
+ className: ax(["_1reo15vq _18m915vq _1bto1l2s _o5721q9c _bfhk187o _p12fuuw1 _1lhcu2gc _u128u2gc _1djhu2gc _1o59u2gc", __cmplp.className])
39
39
  }));
40
40
  });
41
41
 
@@ -430,15 +430,16 @@ export var IssueLikeDataTableView = function IssueLikeDataTableView(_ref5) {
430
430
  onVisibleColumnKeysChange === null || onVisibleColumnKeysChange === void 0 || onVisibleColumnKeysChange(newSelectedColumnKeys);
431
431
  }, [onVisibleColumnKeysChange]);
432
432
  var handlePickerOpen = useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
433
- return _regeneratorRuntime.wrap(function _callee$(_context) {
433
+ var _t;
434
+ return _regeneratorRuntime.wrap(function (_context) {
434
435
  while (1) switch (_context.prev = _context.next) {
435
436
  case 0:
436
437
  if (!hasFullSchema) {
437
- _context.next = 2;
438
+ _context.next = 1;
438
439
  break;
439
440
  }
440
441
  return _context.abrupt("return");
441
- case 2:
442
+ case 1:
442
443
  if (experienceId) {
443
444
  startUfoExperience({
444
445
  name: 'column-picker-rendered',
@@ -447,22 +448,22 @@ export var IssueLikeDataTableView = function IssueLikeDataTableView(_ref5) {
447
448
  }
448
449
  }, experienceId);
449
450
  }
450
- _context.prev = 3;
451
- _context.next = 6;
451
+ _context.prev = 2;
452
+ _context.next = 3;
452
453
  return onLoadDatasourceDetails();
453
- case 6:
454
+ case 3:
454
455
  setHasFullSchema(true);
455
- _context.next = 12;
456
+ _context.next = 5;
456
457
  break;
457
- case 9:
458
- _context.prev = 9;
459
- _context.t0 = _context["catch"](3);
458
+ case 4:
459
+ _context.prev = 4;
460
+ _t = _context["catch"](2);
460
461
  setHasFullSchema(false);
461
- case 12:
462
+ case 5:
462
463
  case "end":
463
464
  return _context.stop();
464
465
  }
465
- }, _callee, null, [[3, 9]]);
466
+ }, _callee, null, [[2, 4]]);
466
467
  })), [experienceId, extensionKey, hasFullSchema, onLoadDatasourceDetails]);
467
468
  var isEditable = onVisibleColumnKeysChange && hasData;
468
469
  var orderedColumnsAreUpToDate = orderedColumns.length === columns.length;