@atlaskit/link-datasource 1.19.20 → 1.19.22
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 +12 -0
- package/dist/cjs/analytics/constants.js +1 -1
- package/dist/cjs/ui/assets-modal/modal/index.js +14 -14
- package/dist/cjs/ui/assets-modal/modal/render-assets-content/index.js +20 -18
- package/dist/cjs/ui/assets-modal/modal/render-assets-content/initial-state-view/index.js +6 -4
- package/dist/cjs/ui/assets-modal/search-container/aql-search-input/index.js +15 -13
- package/dist/cjs/ui/assets-modal/search-container/aql-search-input/loading-state.js +4 -1
- package/dist/cjs/ui/assets-modal/search-container/index.js +8 -5
- package/dist/cjs/ui/assets-modal/search-container/loading-state.js +6 -3
- package/dist/cjs/ui/assets-modal/search-container/object-schema-select/index.js +4 -3
- package/dist/cjs/ui/assets-modal/search-container/object-schema-select/loading-state.js +4 -1
- package/dist/cjs/ui/common/error-state/access-required.js +10 -8
- package/dist/cjs/ui/common/error-state/loading-error.js +8 -6
- package/dist/cjs/ui/common/error-state/modal-loading-error.js +9 -7
- package/dist/cjs/ui/common/error-state/no-instances.js +6 -6
- package/dist/cjs/ui/common/error-state/no-results.js +39 -37
- package/dist/cjs/ui/datasource-table-view/datasourceTableView.js +9 -8
- package/dist/cjs/ui/issue-like-table/column-picker/concatenated-menu-list.js +6 -5
- package/dist/cjs/ui/issue-like-table/column-picker/index.js +7 -5
- package/dist/cjs/ui/issue-like-table/drag-column-preview.js +6 -5
- package/dist/cjs/ui/issue-like-table/draggable-table-heading.js +6 -6
- package/dist/cjs/ui/issue-like-table/empty-state/index.js +15 -13
- package/dist/cjs/ui/issue-like-table/index.js +15 -14
- package/dist/cjs/ui/issue-like-table/render-type/richtext/index.js +3 -3
- package/dist/cjs/ui/jira-issues-modal/basic-filters/hooks/useFilterOptions.js +34 -20
- package/dist/cjs/ui/jira-issues-modal/basic-filters/ui/async-popup-select/dropdownIndicator.js +0 -2
- package/dist/cjs/ui/jira-issues-modal/basic-filters/ui/async-popup-select/footer.js +0 -2
- package/dist/cjs/ui/jira-issues-modal/basic-filters/ui/async-popup-select/formatOptionLabel.js +0 -2
- package/dist/cjs/ui/jira-issues-modal/basic-filters/ui/async-popup-select/index.js +11 -9
- package/dist/cjs/ui/jira-issues-modal/basic-filters/ui/async-popup-select/trigger.js +0 -2
- package/dist/cjs/ui/jira-issues-modal/basic-filters/ui/index.js +4 -4
- package/dist/cjs/ui/jira-issues-modal/basic-filters/ui/menu-list/index.js +0 -2
- package/dist/cjs/ui/jira-issues-modal/basic-filters/ui/menu-list/selectMessage.js +0 -2
- package/dist/cjs/ui/jira-issues-modal/basic-filters/utils/transformers.js +18 -5
- package/dist/cjs/ui/jira-issues-modal/basic-search-input/index.js +6 -4
- package/dist/cjs/ui/jira-issues-modal/initial-state-view/index.js +10 -8
- package/dist/cjs/ui/jira-issues-modal/jira-search-container/index.js +10 -11
- package/dist/cjs/ui/jira-issues-modal/modal/index.js +31 -30
- package/dist/cjs/ui/jira-issues-modal/mode-switcher/index.js +6 -4
- package/dist/cjs/ui/jira-issues-modal/site-selector/index.js +3 -2
- package/dist/cjs/ui/table-footer/index.js +12 -10
- package/dist/es2019/analytics/constants.js +1 -1
- package/dist/es2019/ui/assets-modal/modal/index.js +15 -14
- package/dist/es2019/ui/assets-modal/modal/render-assets-content/index.js +20 -19
- package/dist/es2019/ui/assets-modal/modal/render-assets-content/initial-state-view/index.js +7 -5
- package/dist/es2019/ui/assets-modal/search-container/aql-search-input/index.js +15 -14
- package/dist/es2019/ui/assets-modal/search-container/aql-search-input/loading-state.js +3 -1
- package/dist/es2019/ui/assets-modal/search-container/index.js +7 -5
- package/dist/es2019/ui/assets-modal/search-container/loading-state.js +5 -3
- package/dist/es2019/ui/assets-modal/search-container/object-schema-select/index.js +5 -2
- package/dist/es2019/ui/assets-modal/search-container/object-schema-select/loading-state.js +3 -1
- package/dist/es2019/ui/common/error-state/access-required.js +10 -9
- package/dist/es2019/ui/common/error-state/loading-error.js +8 -7
- package/dist/es2019/ui/common/error-state/modal-loading-error.js +9 -8
- package/dist/es2019/ui/common/error-state/no-instances.js +6 -7
- package/dist/es2019/ui/common/error-state/no-results.js +39 -38
- package/dist/es2019/ui/datasource-table-view/datasourceTableView.js +9 -9
- package/dist/es2019/ui/issue-like-table/column-picker/concatenated-menu-list.js +7 -6
- package/dist/es2019/ui/issue-like-table/column-picker/index.js +7 -5
- package/dist/es2019/ui/issue-like-table/drag-column-preview.js +5 -4
- package/dist/es2019/ui/issue-like-table/draggable-table-heading.js +7 -6
- package/dist/es2019/ui/issue-like-table/empty-state/index.js +15 -14
- package/dist/es2019/ui/issue-like-table/index.js +16 -15
- package/dist/es2019/ui/issue-like-table/render-type/richtext/index.js +4 -3
- package/dist/es2019/ui/jira-issues-modal/basic-filters/hooks/useFilterOptions.js +13 -3
- package/dist/es2019/ui/jira-issues-modal/basic-filters/ui/async-popup-select/dropdownIndicator.js +0 -2
- package/dist/es2019/ui/jira-issues-modal/basic-filters/ui/async-popup-select/footer.js +0 -2
- package/dist/es2019/ui/jira-issues-modal/basic-filters/ui/async-popup-select/formatOptionLabel.js +0 -2
- package/dist/es2019/ui/jira-issues-modal/basic-filters/ui/async-popup-select/index.js +7 -4
- package/dist/es2019/ui/jira-issues-modal/basic-filters/ui/async-popup-select/trigger.js +0 -2
- package/dist/es2019/ui/jira-issues-modal/basic-filters/ui/index.js +5 -4
- package/dist/es2019/ui/jira-issues-modal/basic-filters/ui/menu-list/index.js +0 -2
- package/dist/es2019/ui/jira-issues-modal/basic-filters/ui/menu-list/selectMessage.js +0 -2
- package/dist/es2019/ui/jira-issues-modal/basic-filters/utils/transformers.js +19 -5
- package/dist/es2019/ui/jira-issues-modal/basic-search-input/index.js +6 -5
- package/dist/es2019/ui/jira-issues-modal/initial-state-view/index.js +11 -9
- package/dist/es2019/ui/jira-issues-modal/jira-search-container/index.js +11 -11
- package/dist/es2019/ui/jira-issues-modal/modal/index.js +32 -30
- package/dist/es2019/ui/jira-issues-modal/mode-switcher/index.js +6 -5
- package/dist/es2019/ui/jira-issues-modal/site-selector/index.js +4 -3
- package/dist/es2019/ui/table-footer/index.js +12 -10
- package/dist/esm/analytics/constants.js +1 -1
- package/dist/esm/ui/assets-modal/modal/index.js +15 -14
- package/dist/esm/ui/assets-modal/modal/render-assets-content/index.js +20 -19
- package/dist/esm/ui/assets-modal/modal/render-assets-content/initial-state-view/index.js +7 -5
- package/dist/esm/ui/assets-modal/search-container/aql-search-input/index.js +15 -14
- package/dist/esm/ui/assets-modal/search-container/aql-search-input/loading-state.js +3 -1
- package/dist/esm/ui/assets-modal/search-container/index.js +7 -5
- package/dist/esm/ui/assets-modal/search-container/loading-state.js +5 -3
- package/dist/esm/ui/assets-modal/search-container/object-schema-select/index.js +5 -2
- package/dist/esm/ui/assets-modal/search-container/object-schema-select/loading-state.js +3 -1
- package/dist/esm/ui/common/error-state/access-required.js +10 -9
- package/dist/esm/ui/common/error-state/loading-error.js +8 -7
- package/dist/esm/ui/common/error-state/modal-loading-error.js +9 -8
- package/dist/esm/ui/common/error-state/no-instances.js +6 -7
- package/dist/esm/ui/common/error-state/no-results.js +39 -38
- package/dist/esm/ui/datasource-table-view/datasourceTableView.js +9 -9
- package/dist/esm/ui/issue-like-table/column-picker/concatenated-menu-list.js +7 -6
- package/dist/esm/ui/issue-like-table/column-picker/index.js +7 -5
- package/dist/esm/ui/issue-like-table/drag-column-preview.js +7 -6
- package/dist/esm/ui/issue-like-table/draggable-table-heading.js +7 -6
- package/dist/esm/ui/issue-like-table/empty-state/index.js +15 -14
- package/dist/esm/ui/issue-like-table/index.js +16 -15
- package/dist/esm/ui/issue-like-table/render-type/richtext/index.js +4 -3
- package/dist/esm/ui/jira-issues-modal/basic-filters/hooks/useFilterOptions.js +34 -20
- package/dist/esm/ui/jira-issues-modal/basic-filters/ui/async-popup-select/dropdownIndicator.js +0 -2
- package/dist/esm/ui/jira-issues-modal/basic-filters/ui/async-popup-select/footer.js +0 -2
- package/dist/esm/ui/jira-issues-modal/basic-filters/ui/async-popup-select/formatOptionLabel.js +0 -2
- package/dist/esm/ui/jira-issues-modal/basic-filters/ui/async-popup-select/index.js +11 -9
- package/dist/esm/ui/jira-issues-modal/basic-filters/ui/async-popup-select/trigger.js +0 -2
- package/dist/esm/ui/jira-issues-modal/basic-filters/ui/index.js +4 -4
- package/dist/esm/ui/jira-issues-modal/basic-filters/ui/menu-list/index.js +0 -2
- package/dist/esm/ui/jira-issues-modal/basic-filters/ui/menu-list/selectMessage.js +0 -2
- package/dist/esm/ui/jira-issues-modal/basic-filters/utils/transformers.js +18 -5
- package/dist/esm/ui/jira-issues-modal/basic-search-input/index.js +6 -5
- package/dist/esm/ui/jira-issues-modal/initial-state-view/index.js +11 -9
- package/dist/esm/ui/jira-issues-modal/jira-search-container/index.js +11 -11
- package/dist/esm/ui/jira-issues-modal/modal/index.js +32 -30
- package/dist/esm/ui/jira-issues-modal/mode-switcher/index.js +6 -5
- package/dist/esm/ui/jira-issues-modal/site-selector/index.js +4 -3
- package/dist/esm/ui/table-footer/index.js +12 -10
- package/dist/types/services/getAvailableJiraSites.d.ts +1 -5
- package/dist/types/ui/jira-issues-modal/basic-filters/hooks/useFilterOptions.d.ts +3 -2
- package/dist/types/ui/jira-issues-modal/basic-filters/ui/async-popup-select/index.d.ts +3 -2
- package/dist/types/ui/jira-issues-modal/basic-filters/ui/index.d.ts +3 -2
- package/dist/types/ui/jira-issues-modal/basic-filters/utils/transformers.d.ts +3 -1
- package/dist/types/ui/jira-issues-modal/jira-search-container/index.d.ts +2 -1
- package/dist/types/ui/jira-issues-modal/site-selector/index.d.ts +1 -1
- package/dist/types/ui/jira-issues-modal/types.d.ts +5 -0
- package/dist/types-ts4.5/services/getAvailableJiraSites.d.ts +1 -5
- package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/hooks/useFilterOptions.d.ts +3 -2
- package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/ui/async-popup-select/index.d.ts +3 -2
- package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/ui/index.d.ts +3 -2
- package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/utils/transformers.d.ts +3 -1
- package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/index.d.ts +2 -1
- package/dist/types-ts4.5/ui/jira-issues-modal/site-selector/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/jira-issues-modal/types.d.ts +5 -0
- package/package.json +1 -1
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
/* index.tsx generated by @compiled/babel-plugin v0.26.1 */
|
|
2
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
5
4
|
var _excluded = ["basicInputTextValue"];
|
|
6
|
-
import { ax, ix } from "@compiled/react/runtime";
|
|
7
5
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8
6
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7
|
+
/** @jsx jsx */
|
|
9
8
|
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
|
10
|
-
import { css } from '@emotion/react';
|
|
9
|
+
import { css, jsx } from '@emotion/react';
|
|
11
10
|
import { useIntl } from 'react-intl-next';
|
|
12
11
|
import { useDebouncedCallback } from 'use-debounce';
|
|
13
12
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
@@ -40,7 +39,8 @@ export var JiraSearchContainer = function JiraSearchContainer(props) {
|
|
|
40
39
|
initialSearchMethod = props.initialSearchMethod,
|
|
41
40
|
setSearchBarJql = props.setSearchBarJql,
|
|
42
41
|
_props$searchBarJql = props.searchBarJql,
|
|
43
|
-
searchBarJql = _props$searchBarJql === void 0 ? DEFAULT_JQL_QUERY : _props$searchBarJql
|
|
42
|
+
searchBarJql = _props$searchBarJql === void 0 ? DEFAULT_JQL_QUERY : _props$searchBarJql,
|
|
43
|
+
site = props.site;
|
|
44
44
|
var _ref = parameters || {},
|
|
45
45
|
currentCloudId = _ref.cloudId;
|
|
46
46
|
var _useIntl = useIntl(),
|
|
@@ -207,30 +207,30 @@ export var JiraSearchContainer = function JiraSearchContainer(props) {
|
|
|
207
207
|
setCloudId(currentCloudId);
|
|
208
208
|
}
|
|
209
209
|
}, [currentCloudId, cloudId, setSearchBarJql]);
|
|
210
|
-
return
|
|
210
|
+
return jsx("div", {
|
|
211
211
|
css: inputContainerStyles,
|
|
212
212
|
"data-testid": "jira-search-container"
|
|
213
|
-
}, currentSearchMethod === 'basic' &&
|
|
213
|
+
}, currentSearchMethod === 'basic' && jsx(Flex, {
|
|
214
214
|
alignItems: "center",
|
|
215
215
|
xcss: basicSearchInputContainerStyles
|
|
216
|
-
},
|
|
216
|
+
}, jsx(BasicSearchInput, {
|
|
217
217
|
isSearching: isSearching,
|
|
218
218
|
onChange: handleBasicSearchChange,
|
|
219
219
|
onSearch: handleSearch,
|
|
220
220
|
searchTerm: basicSearchTerm
|
|
221
|
-
}), showBasicFilters &&
|
|
221
|
+
}), showBasicFilters && jsx(BasicFilters, {
|
|
222
222
|
jql: searchBarJql,
|
|
223
|
-
|
|
223
|
+
site: site,
|
|
224
224
|
onChange: handleBasicFilterSelectionChange,
|
|
225
225
|
selections: filterSelections,
|
|
226
226
|
isJQLHydrating: basicFilterHydrationStatus === 'loading'
|
|
227
|
-
})), currentSearchMethod === 'jql' &&
|
|
227
|
+
})), currentSearchMethod === 'jql' && jsx(JiraJQLEditor, {
|
|
228
228
|
cloudId: cloudId || '',
|
|
229
229
|
isSearching: isSearching,
|
|
230
230
|
onChange: onQueryChange,
|
|
231
231
|
onSearch: handleSearch,
|
|
232
232
|
query: searchBarJql
|
|
233
|
-
}),
|
|
233
|
+
}), jsx(ModeSwitcher, {
|
|
234
234
|
onOptionValueChange: onSearchMethodChange,
|
|
235
235
|
selectedOptionValue: currentSearchMethod,
|
|
236
236
|
options: modeSwitcherOptions
|
|
@@ -6,8 +6,9 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
6
6
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
7
7
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8
8
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
9
|
+
/** @jsx jsx */
|
|
9
10
|
import { Fragment, useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
10
|
-
import { css } from '@emotion/react';
|
|
11
|
+
import { css, jsx } from '@emotion/react';
|
|
11
12
|
import { FormattedMessage, FormattedNumber, useIntl } from 'react-intl-next';
|
|
12
13
|
import { v4 as uuidv4 } from 'uuid';
|
|
13
14
|
import { withAnalyticsContext } from '@atlaskit/analytics-next';
|
|
@@ -458,9 +459,9 @@ export var PlainJiraIssuesConfigModal = function PlainJiraIssuesConfigModal(prop
|
|
|
458
459
|
setVisibleColumnKeys(newVisibleColumnKeys);
|
|
459
460
|
}, [visibleColumnKeys]);
|
|
460
461
|
var issueLikeDataTableView = useMemo(function () {
|
|
461
|
-
return
|
|
462
|
+
return jsx("div", {
|
|
462
463
|
css: [tableContainerStyles, contentContainerStyles]
|
|
463
|
-
},
|
|
464
|
+
}, jsx(IssueLikeDataTableView, {
|
|
464
465
|
testId: "jira-jql-datasource-table",
|
|
465
466
|
status: status,
|
|
466
467
|
columns: columns,
|
|
@@ -479,21 +480,21 @@ export var PlainJiraIssuesConfigModal = function PlainJiraIssuesConfigModal(prop
|
|
|
479
480
|
var renderCountModeContent = useCallback(function () {
|
|
480
481
|
var selectedJiraSiteUrl = selectedJiraSite === null || selectedJiraSite === void 0 ? void 0 : selectedJiraSite.url;
|
|
481
482
|
if (status === 'unauthorized') {
|
|
482
|
-
return
|
|
483
|
+
return jsx(AccessRequired, {
|
|
483
484
|
url: selectedJiraSiteUrl || urlBeingEdited
|
|
484
485
|
});
|
|
485
486
|
} else if (status === 'empty' || !jql || !selectedJiraSiteUrl) {
|
|
486
|
-
return
|
|
487
|
+
return jsx("div", {
|
|
487
488
|
css: smartLinkContainerStyles
|
|
488
|
-
},
|
|
489
|
+
}, jsx("span", {
|
|
489
490
|
"data-testid": "jira-jql-datasource-modal--smart-card-placeholder",
|
|
490
491
|
css: placeholderSmartLinkStyles
|
|
491
|
-
},
|
|
492
|
+
}, jsx(FormattedMessage, modalMessages.issuesCountSmartCardPlaceholderText)));
|
|
492
493
|
} else {
|
|
493
494
|
var urlWithEncodedJql = "".concat(selectedJiraSiteUrl, "/issues/?jql=").concat(encodeURI(jql));
|
|
494
|
-
return
|
|
495
|
+
return jsx("div", {
|
|
495
496
|
css: smartLinkContainerStyles
|
|
496
|
-
},
|
|
497
|
+
}, jsx(LinkRenderType, {
|
|
497
498
|
url: urlWithEncodedJql
|
|
498
499
|
}));
|
|
499
500
|
}
|
|
@@ -501,48 +502,48 @@ export var PlainJiraIssuesConfigModal = function PlainJiraIssuesConfigModal(prop
|
|
|
501
502
|
var renderIssuesModeContent = useCallback(function () {
|
|
502
503
|
var selectedJiraSiteUrl = selectedJiraSite === null || selectedJiraSite === void 0 ? void 0 : selectedJiraSite.url;
|
|
503
504
|
if (status === 'rejected' && jqlUrl) {
|
|
504
|
-
return
|
|
505
|
+
return jsx(ModalLoadingError, {
|
|
505
506
|
url: jqlUrl
|
|
506
507
|
});
|
|
507
508
|
} else if (status === 'unauthorized') {
|
|
508
|
-
return
|
|
509
|
+
return jsx(AccessRequired, {
|
|
509
510
|
url: selectedJiraSiteUrl || urlBeingEdited
|
|
510
511
|
});
|
|
511
512
|
} else if (resolvedWithNoResults || status === 'forbidden') {
|
|
512
|
-
return
|
|
513
|
+
return jsx(NoResults, null);
|
|
513
514
|
} else if (status === 'empty' || !columns.length) {
|
|
514
515
|
// persist the empty state when making the initial /data request which contains the columns
|
|
515
|
-
return
|
|
516
|
+
return jsx("div", {
|
|
516
517
|
css: [contentContainerStyles, !!jql && tableContainerStyles]
|
|
517
|
-
}, !!jql ?
|
|
518
|
+
}, !!jql ? jsx(EmptyState, {
|
|
518
519
|
testId: "jira-jql-datasource-modal--empty-state"
|
|
519
|
-
}) :
|
|
520
|
+
}) : jsx(InitialStateView, {
|
|
520
521
|
searchMethod: currentSearchMethod
|
|
521
522
|
}));
|
|
522
523
|
}
|
|
523
524
|
var firstIssueUrl = retrieveUrlForSmartCardRender();
|
|
524
525
|
if (responseItems.length === 1 && firstIssueUrl) {
|
|
525
|
-
return
|
|
526
|
+
return jsx("div", {
|
|
526
527
|
css: smartLinkContainerStyles
|
|
527
|
-
},
|
|
528
|
+
}, jsx(LinkRenderType, {
|
|
528
529
|
url: firstIssueUrl
|
|
529
530
|
}));
|
|
530
531
|
}
|
|
531
532
|
return issueLikeDataTableView;
|
|
532
533
|
}, [columns.length, currentSearchMethod, issueLikeDataTableView, jql, jqlUrl, resolvedWithNoResults, responseItems.length, retrieveUrlForSmartCardRender, selectedJiraSite === null || selectedJiraSite === void 0 ? void 0 : selectedJiraSite.url, status, urlBeingEdited]);
|
|
533
|
-
return
|
|
534
|
+
return jsx(ModalTransition, null, jsx(Modal, {
|
|
534
535
|
testId: "jira-jql-datasource-modal",
|
|
535
536
|
onClose: onCancel,
|
|
536
537
|
width: "calc(100% - 80px)",
|
|
537
538
|
shouldScrollInViewport: true
|
|
538
|
-
},
|
|
539
|
+
}, jsx(ModalHeader, null, jsx(ModalTitle, null, jsx("div", {
|
|
539
540
|
css: dropdownContainerStyles
|
|
540
|
-
}, availableSites && availableSites.length > 1 ?
|
|
541
|
+
}, availableSites && availableSites.length > 1 ? jsx(Fragment, null, jsx(FormattedMessage, modalMessages.insertIssuesTitleManySites), jsx(JiraSiteSelector, {
|
|
541
542
|
availableSites: availableSites,
|
|
542
543
|
onSiteSelection: onSiteSelection,
|
|
543
544
|
selectedJiraSite: selectedJiraSite,
|
|
544
545
|
testId: "jira-jql-datasource-modal--site-selector"
|
|
545
|
-
})) :
|
|
546
|
+
})) : jsx(FormattedMessage, modalMessages.insertIssuesTitle))), !hasNoJiraSites && jsx(ModeSwitcher, {
|
|
546
547
|
isCompact: true,
|
|
547
548
|
options: [{
|
|
548
549
|
label: formatMessage(modalMessages.issueViewModeLabel),
|
|
@@ -553,39 +554,40 @@ export var PlainJiraIssuesConfigModal = function PlainJiraIssuesConfigModal(prop
|
|
|
553
554
|
}],
|
|
554
555
|
onOptionValueChange: handleViewModeChange,
|
|
555
556
|
selectedOptionValue: currentViewMode
|
|
556
|
-
})),
|
|
557
|
+
})), jsx(ModalBody, null, !hasNoJiraSites ? jsx(Fragment, null, jsx(JiraSearchContainer, {
|
|
557
558
|
setSearchBarJql: setSearchBarJql,
|
|
558
559
|
searchBarJql: searchBarJql,
|
|
559
560
|
isSearching: status === 'loading',
|
|
560
561
|
parameters: parameters,
|
|
561
562
|
onSearch: onSearch,
|
|
562
563
|
initialSearchMethod: initialSearchMethod,
|
|
563
|
-
onSearchMethodChange: setCurrentSearchMethod
|
|
564
|
-
|
|
564
|
+
onSearchMethodChange: setCurrentSearchMethod,
|
|
565
|
+
site: selectedJiraSite
|
|
566
|
+
}), currentViewMode === 'count' ? renderCountModeContent() : renderIssuesModeContent()) : jsx(NoInstancesView, null)), jsx(ModalFooter, null, shouldShowIssueCount && jsx("div", {
|
|
565
567
|
"data-testid": "jira-jql-datasource-modal-total-issues-count",
|
|
566
568
|
css: issueCountStyles
|
|
567
|
-
},
|
|
569
|
+
}, jsx(LinkUrl, {
|
|
568
570
|
href: jqlUrl,
|
|
569
571
|
target: "_blank",
|
|
570
572
|
testId: "item-count-url",
|
|
571
573
|
style: {
|
|
572
574
|
color: "var(--ds-text-accent-gray, ".concat(N800, ")")
|
|
573
575
|
}
|
|
574
|
-
},
|
|
576
|
+
}, jsx(FormattedNumber, {
|
|
575
577
|
value: totalCount
|
|
576
|
-
}), ' ',
|
|
578
|
+
}), ' ', jsx(FormattedMessage, _extends({}, modalMessages.issueText, {
|
|
577
579
|
values: {
|
|
578
580
|
totalCount: totalCount
|
|
579
581
|
}
|
|
580
|
-
})))),
|
|
582
|
+
})))), jsx(Button, {
|
|
581
583
|
appearance: "default",
|
|
582
584
|
onClick: onCancelClick
|
|
583
|
-
},
|
|
585
|
+
}, jsx(FormattedMessage, modalMessages.cancelButtonText)), !hasNoJiraSites && jsx(Button, {
|
|
584
586
|
appearance: "primary",
|
|
585
587
|
onClick: onInsertPressed,
|
|
586
588
|
isDisabled: isInsertDisabled,
|
|
587
589
|
testId: "jira-jql-datasource-modal--insert-button"
|
|
588
|
-
},
|
|
590
|
+
}, jsx(FormattedMessage, modalMessages.insertIssuesButtonText)))));
|
|
589
591
|
};
|
|
590
592
|
var analyticsContextAttributes = {
|
|
591
593
|
dataProvider: 'jira-issues'
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
/** @jsx jsx */
|
|
2
3
|
import React from 'react';
|
|
3
|
-
import { css } from '@emotion/react';
|
|
4
|
+
import { css, jsx } from '@emotion/react';
|
|
4
5
|
import { N0, N20, N30A, N60, N700 } from '@atlaskit/theme/colors';
|
|
5
6
|
import Tooltip from '@atlaskit/tooltip';
|
|
6
7
|
var modeSwitcherStyles = css({
|
|
@@ -68,7 +69,7 @@ export var ModeSwitcher = function ModeSwitcher(props) {
|
|
|
68
69
|
var handleModeChange = function handleModeChange(event) {
|
|
69
70
|
onOptionValueChange(event.currentTarget.value);
|
|
70
71
|
};
|
|
71
|
-
return options.length > 0 ?
|
|
72
|
+
return options.length > 0 ? jsx("fieldset", {
|
|
72
73
|
css: [modeSwitcherStyles, isCompact && compactModeSwitcherStyles],
|
|
73
74
|
"data-testid": "mode-toggle-container",
|
|
74
75
|
disabled: isDisabled
|
|
@@ -78,14 +79,14 @@ export var ModeSwitcher = function ModeSwitcher(props) {
|
|
|
78
79
|
isOptionDisabled = _ref.disabled,
|
|
79
80
|
tooltipText = _ref.tooltipText;
|
|
80
81
|
var isSelected = value === selectedOptionValue;
|
|
81
|
-
return
|
|
82
|
+
return jsx(Tooltip, {
|
|
82
83
|
content: tooltipText
|
|
83
84
|
}, function (tooltipProps) {
|
|
84
|
-
return
|
|
85
|
+
return jsx("label", _extends({}, tooltipProps, {
|
|
85
86
|
key: value,
|
|
86
87
|
css: [modeSwitcherLabelStyles, isCompact && compactModeSwitcherLabelStyles, isSelected && modeSwitcherLabelSelectedStyles, isDisabled && modeSwitcherDisabledStyles, isOptionDisabled && [modeSwitcherLabelDisabledStyles, modeSwitcherDisabledStyles]],
|
|
87
88
|
"data-testid": "mode-toggle-".concat(value)
|
|
88
|
-
}), label,
|
|
89
|
+
}), label, jsx("input", {
|
|
89
90
|
"aria-checked": isSelected,
|
|
90
91
|
"aria-disabled": isOptionDisabled,
|
|
91
92
|
checked: isSelected,
|
|
@@ -3,8 +3,9 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
var _excluded = ["width"];
|
|
4
4
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
5
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
|
+
/** @jsx jsx */
|
|
6
7
|
import { useMemo } from 'react';
|
|
7
|
-
import { css } from '@emotion/react';
|
|
8
|
+
import { css, jsx } from '@emotion/react';
|
|
8
9
|
import { useIntl } from 'react-intl-next';
|
|
9
10
|
import Select from '@atlaskit/select';
|
|
10
11
|
import { siteSelectorIndex } from '../../../common/zindex';
|
|
@@ -42,9 +43,9 @@ export var JiraSiteSelector = function JiraSiteSelector(props) {
|
|
|
42
43
|
label: selectedJiraSite.displayName,
|
|
43
44
|
value: selectedJiraSite.cloudId
|
|
44
45
|
};
|
|
45
|
-
return
|
|
46
|
+
return jsx("span", {
|
|
46
47
|
"data-testid": "".concat(testId, "--trigger")
|
|
47
|
-
},
|
|
48
|
+
}, jsx(Select, {
|
|
48
49
|
css: selectStyles,
|
|
49
50
|
classNamePrefix: testId,
|
|
50
51
|
isLoading: !availableSites,
|
|
@@ -2,7 +2,9 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
4
4
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
5
|
+
/** @jsx jsx */
|
|
5
6
|
import { Fragment, useEffect, useState } from 'react';
|
|
7
|
+
import { jsx } from '@emotion/react';
|
|
6
8
|
import styled from '@emotion/styled';
|
|
7
9
|
import { FormattedMessage, FormattedNumber, useIntl } from 'react-intl-next';
|
|
8
10
|
import Button from '@atlaskit/button';
|
|
@@ -36,11 +38,11 @@ export var TableFooter = function TableFooter(_ref) {
|
|
|
36
38
|
|
|
37
39
|
// If only one of the two is passed in, still show the other one (Note: We keep the div encapsulating the one not shown to
|
|
38
40
|
// ensure correct positioning since 'justify-content: space-between' is used).
|
|
39
|
-
return onRefresh || showItemCount ?
|
|
41
|
+
return onRefresh || showItemCount ? jsx(FooterWrapper, {
|
|
40
42
|
"data-testid": "table-footer"
|
|
41
|
-
},
|
|
43
|
+
}, jsx(TopBorderWrapper, null, jsx(ItemCounterWrapper, {
|
|
42
44
|
"data-testid": "item-count-wrapper"
|
|
43
|
-
}, showItemCount &&
|
|
45
|
+
}, showItemCount && jsx(LinkUrl, {
|
|
44
46
|
href: url,
|
|
45
47
|
target: "_blank",
|
|
46
48
|
testId: "item-count-url",
|
|
@@ -48,23 +50,23 @@ export var TableFooter = function TableFooter(_ref) {
|
|
|
48
50
|
color: "var(--ds-text-accent-gray, ".concat(N800, ")"),
|
|
49
51
|
textDecoration: !url ? 'none' : ''
|
|
50
52
|
}
|
|
51
|
-
},
|
|
53
|
+
}, jsx(Heading, {
|
|
52
54
|
testId: "item-count",
|
|
53
55
|
level: "h200"
|
|
54
|
-
},
|
|
56
|
+
}, jsx(FormattedNumber, {
|
|
55
57
|
value: itemCount
|
|
56
|
-
}), ' ',
|
|
58
|
+
}), ' ', jsx(FormattedMessage, _extends({}, footerMessages.itemText, {
|
|
57
59
|
values: {
|
|
58
60
|
itemCount: itemCount
|
|
59
61
|
}
|
|
60
|
-
}))))),
|
|
62
|
+
}))))), jsx(SyncWrapper, null, onRefresh && jsx(Fragment, null, jsx(SyncTextWrapper, {
|
|
61
63
|
"data-testid": "sync-text"
|
|
62
|
-
}, isLoading ?
|
|
64
|
+
}, isLoading ? jsx(FormattedMessage, footerMessages.loadingText) : jsx(SyncInfo, {
|
|
63
65
|
lastSyncTime: lastSyncTime
|
|
64
|
-
})),
|
|
66
|
+
})), jsx(Button, {
|
|
65
67
|
onClick: onRefresh,
|
|
66
68
|
appearance: "subtle",
|
|
67
|
-
iconBefore:
|
|
69
|
+
iconBefore: jsx(RefreshIcon, {
|
|
68
70
|
label: intl.formatMessage(footerMessages.refreshLabel)
|
|
69
71
|
}),
|
|
70
72
|
isDisabled: isLoading,
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { IntlShape } from 'react-intl-next';
|
|
2
|
+
import type { Site } from '../../types';
|
|
2
3
|
import { AvatarLabelOption, BasicFilterFieldType, SelectOption } from '../types';
|
|
3
4
|
interface FilterOptionsProps {
|
|
4
5
|
filterType: BasicFilterFieldType;
|
|
5
|
-
|
|
6
|
+
site?: Site;
|
|
6
7
|
}
|
|
7
8
|
export interface FetchFilterOptionsProps {
|
|
8
9
|
pageCursor?: string;
|
|
@@ -18,5 +19,5 @@ export interface FilterOptionsState {
|
|
|
18
19
|
errors: unknown[];
|
|
19
20
|
}
|
|
20
21
|
export declare const getAssigneeUnassignedFilterOption: (formatMessage: IntlShape['formatMessage']) => AvatarLabelOption;
|
|
21
|
-
export declare const useFilterOptions: ({ filterType,
|
|
22
|
+
export declare const useFilterOptions: ({ filterType, site, }: FilterOptionsProps) => FilterOptionsState;
|
|
22
23
|
export {};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import type { Site } from '../../../types';
|
|
2
3
|
import { BasicFilterFieldType, SelectOption } from '../../types';
|
|
3
4
|
export interface AsyncPopupSelectProps {
|
|
4
5
|
filterType: BasicFilterFieldType;
|
|
5
|
-
cloudId: string;
|
|
6
6
|
selection: SelectOption[];
|
|
7
7
|
isJQLHydrating: boolean;
|
|
8
8
|
onSelectionChange?: (filterType: BasicFilterFieldType, options: SelectOption[]) => void;
|
|
9
9
|
isDisabled?: boolean;
|
|
10
|
+
site?: Site;
|
|
10
11
|
}
|
|
11
12
|
export declare const SEARCH_DEBOUNCE_MS = 350;
|
|
12
|
-
declare const AsyncPopupSelect: ({ filterType,
|
|
13
|
+
declare const AsyncPopupSelect: ({ filterType, site, selection, isJQLHydrating, onSelectionChange, isDisabled, }: AsyncPopupSelectProps) => JSX.Element;
|
|
13
14
|
export default AsyncPopupSelect;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import type { Site } from '../../types';
|
|
2
3
|
import type { BasicFilterFieldType, SelectedOptionsMap, SelectOption } from '../types';
|
|
3
4
|
export declare const availableBasicFilterTypes: BasicFilterFieldType[];
|
|
4
5
|
export interface BasicFilterContainerProps {
|
|
5
6
|
jql: string;
|
|
6
|
-
|
|
7
|
+
site?: Site;
|
|
7
8
|
selections: SelectedOptionsMap;
|
|
8
9
|
onChange: (filterType: BasicFilterFieldType, options: SelectOption[]) => void;
|
|
9
10
|
isJQLHydrating: boolean;
|
|
10
11
|
}
|
|
11
|
-
declare const BasicFilterContainer: ({ jql,
|
|
12
|
+
declare const BasicFilterContainer: ({ jql, site, onChange, selections, isJQLHydrating, }: BasicFilterContainerProps) => JSX.Element;
|
|
12
13
|
export default BasicFilterContainer;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { FieldValuesResponse, HydrateResponse, SelectedOptionsMap, SelectOption } from '../types';
|
|
2
2
|
export declare function mapHydrateResponseData({ data }: HydrateResponse): SelectedOptionsMap;
|
|
3
|
-
export declare function mapFieldValuesToFilterOptions({ data, }: FieldValuesResponse
|
|
3
|
+
export declare function mapFieldValuesToFilterOptions({ data, siteUrl, }: FieldValuesResponse & {
|
|
4
|
+
siteUrl?: string;
|
|
5
|
+
}): SelectOption[];
|
|
4
6
|
export declare function mapFieldValuesToTotalCount({ data, }: FieldValuesResponse): number;
|
|
5
7
|
export declare function mapFieldValuesToPageCursor({ data, }: FieldValuesResponse): string | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
2
|
import type { JiraSearchMethod } from '../../../common/types';
|
|
3
3
|
import { SelectedOptionsMap } from '../basic-filters/types';
|
|
4
|
-
import { JiraIssueDatasourceParameters, JiraIssueDatasourceParametersQuery } from '../types';
|
|
4
|
+
import { JiraIssueDatasourceParameters, JiraIssueDatasourceParametersQuery, Site } from '../types';
|
|
5
5
|
export declare const DEFAULT_JQL_QUERY = "created >= -30d order by created DESC";
|
|
6
6
|
export declare const ALLOWED_ORDER_BY_KEYS: string[];
|
|
7
7
|
export declare const FILTER_SELECTION_DEBOUNCE_MS = 500;
|
|
@@ -17,5 +17,6 @@ export interface SearchContainerProps {
|
|
|
17
17
|
parameters?: JiraIssueDatasourceParameters;
|
|
18
18
|
searchBarJql?: string;
|
|
19
19
|
setSearchBarJql: (jql: string) => void;
|
|
20
|
+
site?: Site;
|
|
20
21
|
}
|
|
21
22
|
export declare const JiraSearchContainer: (props: SearchContainerProps) => jsx.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
|
-
import { Site } from '
|
|
2
|
+
import type { Site } from '../types';
|
|
3
3
|
export interface JiraSiteSelectorProps {
|
|
4
4
|
availableSites: Site[] | undefined;
|
|
5
5
|
onSiteSelection: (selectedSite: Site) => void;
|
|
@@ -14,6 +14,11 @@ export type JiraIssueDatasourceParameters = {
|
|
|
14
14
|
cloudId: string;
|
|
15
15
|
} & JiraIssueDatasourceParametersQuery;
|
|
16
16
|
export type JiraIssueViewModes = 'issue' | 'count';
|
|
17
|
+
export interface Site {
|
|
18
|
+
cloudId: string;
|
|
19
|
+
displayName: string;
|
|
20
|
+
url: string;
|
|
21
|
+
}
|
|
17
22
|
export interface JiraIssuesDatasourceAdf extends DatasourceAdf {
|
|
18
23
|
attrs: {
|
|
19
24
|
url?: string;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { IntlShape } from 'react-intl-next';
|
|
2
|
+
import type { Site } from '../../types';
|
|
2
3
|
import { AvatarLabelOption, BasicFilterFieldType, SelectOption } from '../types';
|
|
3
4
|
interface FilterOptionsProps {
|
|
4
5
|
filterType: BasicFilterFieldType;
|
|
5
|
-
|
|
6
|
+
site?: Site;
|
|
6
7
|
}
|
|
7
8
|
export interface FetchFilterOptionsProps {
|
|
8
9
|
pageCursor?: string;
|
|
@@ -18,5 +19,5 @@ export interface FilterOptionsState {
|
|
|
18
19
|
errors: unknown[];
|
|
19
20
|
}
|
|
20
21
|
export declare const getAssigneeUnassignedFilterOption: (formatMessage: IntlShape['formatMessage']) => AvatarLabelOption;
|
|
21
|
-
export declare const useFilterOptions: ({ filterType,
|
|
22
|
+
export declare const useFilterOptions: ({ filterType, site, }: FilterOptionsProps) => FilterOptionsState;
|
|
22
23
|
export {};
|
package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/ui/async-popup-select/index.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import type { Site } from '../../../types';
|
|
2
3
|
import { BasicFilterFieldType, SelectOption } from '../../types';
|
|
3
4
|
export interface AsyncPopupSelectProps {
|
|
4
5
|
filterType: BasicFilterFieldType;
|
|
5
|
-
cloudId: string;
|
|
6
6
|
selection: SelectOption[];
|
|
7
7
|
isJQLHydrating: boolean;
|
|
8
8
|
onSelectionChange?: (filterType: BasicFilterFieldType, options: SelectOption[]) => void;
|
|
9
9
|
isDisabled?: boolean;
|
|
10
|
+
site?: Site;
|
|
10
11
|
}
|
|
11
12
|
export declare const SEARCH_DEBOUNCE_MS = 350;
|
|
12
|
-
declare const AsyncPopupSelect: ({ filterType,
|
|
13
|
+
declare const AsyncPopupSelect: ({ filterType, site, selection, isJQLHydrating, onSelectionChange, isDisabled, }: AsyncPopupSelectProps) => JSX.Element;
|
|
13
14
|
export default AsyncPopupSelect;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import type { Site } from '../../types';
|
|
2
3
|
import type { BasicFilterFieldType, SelectedOptionsMap, SelectOption } from '../types';
|
|
3
4
|
export declare const availableBasicFilterTypes: BasicFilterFieldType[];
|
|
4
5
|
export interface BasicFilterContainerProps {
|
|
5
6
|
jql: string;
|
|
6
|
-
|
|
7
|
+
site?: Site;
|
|
7
8
|
selections: SelectedOptionsMap;
|
|
8
9
|
onChange: (filterType: BasicFilterFieldType, options: SelectOption[]) => void;
|
|
9
10
|
isJQLHydrating: boolean;
|
|
10
11
|
}
|
|
11
|
-
declare const BasicFilterContainer: ({ jql,
|
|
12
|
+
declare const BasicFilterContainer: ({ jql, site, onChange, selections, isJQLHydrating, }: BasicFilterContainerProps) => JSX.Element;
|
|
12
13
|
export default BasicFilterContainer;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { FieldValuesResponse, HydrateResponse, SelectedOptionsMap, SelectOption } from '../types';
|
|
2
2
|
export declare function mapHydrateResponseData({ data }: HydrateResponse): SelectedOptionsMap;
|
|
3
|
-
export declare function mapFieldValuesToFilterOptions({ data, }: FieldValuesResponse
|
|
3
|
+
export declare function mapFieldValuesToFilterOptions({ data, siteUrl, }: FieldValuesResponse & {
|
|
4
|
+
siteUrl?: string;
|
|
5
|
+
}): SelectOption[];
|
|
4
6
|
export declare function mapFieldValuesToTotalCount({ data, }: FieldValuesResponse): number;
|
|
5
7
|
export declare function mapFieldValuesToPageCursor({ data, }: FieldValuesResponse): string | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
2
|
import type { JiraSearchMethod } from '../../../common/types';
|
|
3
3
|
import { SelectedOptionsMap } from '../basic-filters/types';
|
|
4
|
-
import { JiraIssueDatasourceParameters, JiraIssueDatasourceParametersQuery } from '../types';
|
|
4
|
+
import { JiraIssueDatasourceParameters, JiraIssueDatasourceParametersQuery, Site } from '../types';
|
|
5
5
|
export declare const DEFAULT_JQL_QUERY = "created >= -30d order by created DESC";
|
|
6
6
|
export declare const ALLOWED_ORDER_BY_KEYS: string[];
|
|
7
7
|
export declare const FILTER_SELECTION_DEBOUNCE_MS = 500;
|
|
@@ -17,5 +17,6 @@ export interface SearchContainerProps {
|
|
|
17
17
|
parameters?: JiraIssueDatasourceParameters;
|
|
18
18
|
searchBarJql?: string;
|
|
19
19
|
setSearchBarJql: (jql: string) => void;
|
|
20
|
+
site?: Site;
|
|
20
21
|
}
|
|
21
22
|
export declare const JiraSearchContainer: (props: SearchContainerProps) => jsx.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
|
-
import { Site } from '
|
|
2
|
+
import type { Site } from '../types';
|
|
3
3
|
export interface JiraSiteSelectorProps {
|
|
4
4
|
availableSites: Site[] | undefined;
|
|
5
5
|
onSiteSelection: (selectedSite: Site) => void;
|
|
@@ -14,6 +14,11 @@ export type JiraIssueDatasourceParameters = {
|
|
|
14
14
|
cloudId: string;
|
|
15
15
|
} & JiraIssueDatasourceParametersQuery;
|
|
16
16
|
export type JiraIssueViewModes = 'issue' | 'count';
|
|
17
|
+
export interface Site {
|
|
18
|
+
cloudId: string;
|
|
19
|
+
displayName: string;
|
|
20
|
+
url: string;
|
|
21
|
+
}
|
|
17
22
|
export interface JiraIssuesDatasourceAdf extends DatasourceAdf {
|
|
18
23
|
attrs: {
|
|
19
24
|
url?: string;
|