@atlaskit/link-datasource 2.3.2 → 2.3.4
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 +18 -0
- package/dist/cjs/contexts/datasource-experience-id/index.js +28 -0
- package/dist/cjs/ui/assets-modal/modal/index.js +11 -10
- package/dist/cjs/ui/assets-modal/modal/render-assets-content/index.js +2 -4
- package/dist/cjs/ui/assets-modal/search-container/styled.js +6 -0
- package/dist/cjs/ui/common/modal/popup-select/trigger.js +2 -0
- package/dist/cjs/ui/confluence-search-modal/basic-filters/filters/date-range-picker/styled.js +13 -0
- package/dist/cjs/ui/confluence-search-modal/modal/index.js +8 -7
- package/dist/cjs/ui/datasource-table-view/datasourceTableView.js +9 -9
- package/dist/cjs/ui/issue-like-table/column-picker/index.js +6 -5
- package/dist/cjs/ui/issue-like-table/drag-column-preview.js +3 -0
- package/dist/cjs/ui/issue-like-table/draggable-table-heading.js +1 -0
- package/dist/cjs/ui/issue-like-table/empty-state/type.js +1 -0
- package/dist/cjs/ui/issue-like-table/index.js +12 -9
- package/dist/cjs/ui/issue-like-table/render-type/date-time/index.js +2 -0
- package/dist/cjs/ui/issue-like-table/render-type/icon/index.js +1 -0
- package/dist/cjs/ui/issue-like-table/render-type/text/index.js +2 -0
- package/dist/cjs/ui/issue-like-table/render-type/user/index.js +2 -0
- package/dist/cjs/ui/issue-like-table/styled.js +4 -0
- package/dist/cjs/ui/jira-issues-modal/modal/index.js +15 -13
- package/dist/cjs/ui/table-footer/index.js +9 -0
- package/dist/es2019/contexts/datasource-experience-id/index.js +19 -0
- package/dist/es2019/ui/assets-modal/modal/index.js +9 -11
- package/dist/es2019/ui/assets-modal/modal/render-assets-content/index.js +2 -4
- package/dist/es2019/ui/assets-modal/search-container/styled.js +6 -0
- package/dist/es2019/ui/common/modal/popup-select/trigger.js +2 -0
- package/dist/es2019/ui/confluence-search-modal/basic-filters/filters/date-range-picker/styled.js +13 -0
- package/dist/es2019/ui/confluence-search-modal/modal/index.js +6 -8
- package/dist/es2019/ui/datasource-table-view/datasourceTableView.js +7 -10
- package/dist/es2019/ui/issue-like-table/column-picker/index.js +6 -5
- package/dist/es2019/ui/issue-like-table/drag-column-preview.js +3 -0
- package/dist/es2019/ui/issue-like-table/draggable-table-heading.js +1 -0
- package/dist/es2019/ui/issue-like-table/empty-state/type.js +1 -0
- package/dist/es2019/ui/issue-like-table/index.js +12 -9
- package/dist/es2019/ui/issue-like-table/render-type/date-time/index.js +2 -0
- package/dist/es2019/ui/issue-like-table/render-type/icon/index.js +1 -0
- package/dist/es2019/ui/issue-like-table/render-type/text/index.js +2 -0
- package/dist/es2019/ui/issue-like-table/render-type/user/index.js +2 -0
- package/dist/es2019/ui/issue-like-table/styled.js +4 -0
- package/dist/es2019/ui/jira-issues-modal/modal/index.js +12 -13
- package/dist/es2019/ui/table-footer/index.js +9 -0
- package/dist/esm/contexts/datasource-experience-id/index.js +20 -0
- package/dist/esm/ui/assets-modal/modal/index.js +11 -10
- package/dist/esm/ui/assets-modal/modal/render-assets-content/index.js +2 -4
- package/dist/esm/ui/assets-modal/search-container/styled.js +6 -0
- package/dist/esm/ui/common/modal/popup-select/trigger.js +2 -0
- package/dist/esm/ui/confluence-search-modal/basic-filters/filters/date-range-picker/styled.js +13 -0
- package/dist/esm/ui/confluence-search-modal/modal/index.js +8 -7
- package/dist/esm/ui/datasource-table-view/datasourceTableView.js +9 -9
- package/dist/esm/ui/issue-like-table/column-picker/index.js +6 -5
- package/dist/esm/ui/issue-like-table/drag-column-preview.js +3 -0
- package/dist/esm/ui/issue-like-table/draggable-table-heading.js +1 -0
- package/dist/esm/ui/issue-like-table/empty-state/type.js +1 -0
- package/dist/esm/ui/issue-like-table/index.js +12 -9
- package/dist/esm/ui/issue-like-table/render-type/date-time/index.js +2 -0
- package/dist/esm/ui/issue-like-table/render-type/icon/index.js +1 -0
- package/dist/esm/ui/issue-like-table/render-type/text/index.js +2 -0
- package/dist/esm/ui/issue-like-table/render-type/user/index.js +2 -0
- package/dist/esm/ui/issue-like-table/styled.js +4 -0
- package/dist/esm/ui/jira-issues-modal/modal/index.js +14 -12
- package/dist/esm/ui/table-footer/index.js +9 -0
- package/dist/types/analytics/generated/create-event-payload.d.ts +1 -1
- package/dist/types/analytics/ufoExperiences/hooks/useColumnPickerRenderedFailedUfoExperience.d.ts +1 -1
- package/dist/types/analytics/ufoExperiences/hooks/useDataRenderedUfoExperience.d.ts +1 -1
- package/dist/types/common/types.d.ts +1 -1
- package/dist/types/common/utils/locale/fetch-messages-for-locale.d.ts +1 -1
- package/dist/types/contexts/datasource-experience-id/index.d.ts +4 -0
- package/dist/types/hooks/useAssetsClient.d.ts +2 -2
- package/dist/types/hooks/useObjectSchemas.d.ts +1 -1
- package/dist/types/services/cmdbService.d.ts +3 -3
- package/dist/types/services/makeGetJqlAutocompleteData.d.ts +1 -1
- package/dist/types/services/makeGetJqlSuggestionsData.d.ts +1 -1
- package/dist/types/services/mocks.d.ts +2 -2
- package/dist/types/services/useBasicFilterAGG.d.ts +2 -2
- package/dist/types/ui/assets-modal/index.d.ts +1 -1
- package/dist/types/ui/assets-modal/modal/render-assets-content/index.d.ts +1 -2
- package/dist/types/ui/assets-modal/search-container/object-schema-select/index.d.ts +1 -1
- package/dist/types/ui/assets-modal/search-container/object-schema-select/utils.d.ts +1 -1
- package/dist/types/ui/common/error-state/no-instances.d.ts +1 -1
- package/dist/types/ui/common/error-state/provider-auth-required.d.ts +1 -1
- package/dist/types/ui/common/initial-state-view/index.d.ts +1 -1
- package/dist/types/ui/common/modal/basic-search-input/index.d.ts +1 -1
- package/dist/types/ui/common/modal/cancel-button/index.d.ts +1 -1
- package/dist/types/ui/common/modal/content-container/index.d.ts +1 -1
- package/dist/types/ui/common/modal/count-view-smart-link/index.d.ts +1 -1
- package/dist/types/ui/common/modal/popup-select/control.d.ts +2 -2
- package/dist/types/ui/common/modal/popup-select/dropdownIndicator.d.ts +2 -2
- package/dist/types/ui/common/modal/popup-select/formatOptionLabel.d.ts +1 -1
- package/dist/types/ui/common/modal/popup-select/index.d.ts +3 -3
- package/dist/types/ui/common/modal/popup-select/menu-list/index.d.ts +2 -2
- package/dist/types/ui/common/modal/popup-select/menu-list/selectMessage.d.ts +1 -1
- package/dist/types/ui/common/modal/popup-select/trigger.d.ts +1 -1
- package/dist/types/ui/common/modal/popup-select/types.d.ts +1 -1
- package/dist/types/ui/common/modal/site-selector/index.d.ts +1 -1
- package/dist/types/ui/confluence-search-modal/basic-filters/filters/edited-or-created-by/index.d.ts +1 -1
- package/dist/types/ui/confluence-search-modal/basic-filters/hooks/useCurrentUserInfo.d.ts +1 -1
- package/dist/types/ui/confluence-search-modal/basic-filters/hooks/useRecommendation.d.ts +2 -2
- package/dist/types/ui/confluence-search-modal/basic-filters/types.d.ts +1 -1
- package/dist/types/ui/confluence-search-modal/index.d.ts +1 -1
- package/dist/types/ui/datasource-table-view/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/column-picker/concatenated-menu-list.d.ts +1 -1
- package/dist/types/ui/issue-like-table/column-picker/index.d.ts +2 -2
- package/dist/types/ui/issue-like-table/column-picker/types.d.ts +1 -2
- package/dist/types/ui/issue-like-table/custom-icons.d.ts +1 -1
- package/dist/types/ui/issue-like-table/empty-state/priority.d.ts +1 -1
- package/dist/types/ui/issue-like-table/empty-state/type.d.ts +1 -1
- package/dist/types/ui/issue-like-table/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/render-type/boolean/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/render-type/date-time/index.d.ts +2 -2
- package/dist/types/ui/issue-like-table/render-type/icon/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/render-type/link/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/render-type/status/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/render-type/tag/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/render-type/text/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/render-type/user/index.d.ts +2 -2
- package/dist/types/ui/issue-like-table/types.d.ts +0 -4
- package/dist/types/ui/jira-issues-modal/basic-filters/hooks/useFilterOptions.d.ts +3 -3
- package/dist/types/ui/jira-issues-modal/basic-filters/hooks/useHydrateJqlQuery.d.ts +2 -2
- package/dist/types/ui/jira-issues-modal/basic-filters/types.d.ts +1 -1
- package/dist/types/ui/jira-issues-modal/basic-filters/ui/async-popup-select/index.d.ts +2 -2
- package/dist/types/ui/jira-issues-modal/basic-filters/ui/index.d.ts +1 -1
- package/dist/types/ui/jira-issues-modal/basic-filters/utils/isClauseTooComplex.d.ts +1 -1
- package/dist/types/ui/jira-issues-modal/basic-filters/utils/transformers.d.ts +2 -2
- package/dist/types/ui/jira-issues-modal/index.d.ts +1 -1
- package/dist/types/ui/jira-issues-modal/jira-search-container/buildJQL.d.ts +1 -1
- package/dist/types/ui/jira-issues-modal/jira-search-container/index.d.ts +2 -2
- package/dist/types/ui/jira-issues-modal/modal/index.d.ts +0 -2
- package/dist/types/ui/jira-issues-modal/types.d.ts +3 -3
- package/dist/types-ts4.5/analytics/generated/create-event-payload.d.ts +1 -1
- package/dist/types-ts4.5/analytics/ufoExperiences/hooks/useColumnPickerRenderedFailedUfoExperience.d.ts +1 -1
- package/dist/types-ts4.5/analytics/ufoExperiences/hooks/useDataRenderedUfoExperience.d.ts +1 -1
- package/dist/types-ts4.5/common/types.d.ts +1 -1
- package/dist/types-ts4.5/common/utils/locale/fetch-messages-for-locale.d.ts +1 -1
- package/dist/types-ts4.5/contexts/datasource-experience-id/index.d.ts +4 -0
- package/dist/types-ts4.5/hooks/useAssetsClient.d.ts +2 -2
- package/dist/types-ts4.5/hooks/useObjectSchemas.d.ts +1 -1
- package/dist/types-ts4.5/services/cmdbService.d.ts +3 -3
- package/dist/types-ts4.5/services/makeGetJqlAutocompleteData.d.ts +1 -1
- package/dist/types-ts4.5/services/makeGetJqlSuggestionsData.d.ts +1 -1
- package/dist/types-ts4.5/services/mocks.d.ts +2 -2
- package/dist/types-ts4.5/services/useBasicFilterAGG.d.ts +2 -2
- package/dist/types-ts4.5/ui/assets-modal/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/assets-modal/modal/render-assets-content/index.d.ts +1 -2
- package/dist/types-ts4.5/ui/assets-modal/search-container/object-schema-select/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/assets-modal/search-container/object-schema-select/utils.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/error-state/no-instances.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/error-state/provider-auth-required.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/initial-state-view/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/modal/basic-search-input/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/modal/cancel-button/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/modal/content-container/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/modal/count-view-smart-link/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/modal/popup-select/control.d.ts +2 -2
- package/dist/types-ts4.5/ui/common/modal/popup-select/dropdownIndicator.d.ts +2 -2
- package/dist/types-ts4.5/ui/common/modal/popup-select/formatOptionLabel.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/modal/popup-select/index.d.ts +3 -3
- package/dist/types-ts4.5/ui/common/modal/popup-select/menu-list/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/common/modal/popup-select/menu-list/selectMessage.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/modal/popup-select/trigger.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/modal/popup-select/types.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/modal/site-selector/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/confluence-search-modal/basic-filters/filters/edited-or-created-by/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/confluence-search-modal/basic-filters/hooks/useCurrentUserInfo.d.ts +1 -1
- package/dist/types-ts4.5/ui/confluence-search-modal/basic-filters/hooks/useRecommendation.d.ts +2 -2
- package/dist/types-ts4.5/ui/confluence-search-modal/basic-filters/types.d.ts +1 -1
- package/dist/types-ts4.5/ui/confluence-search-modal/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/datasource-table-view/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/column-picker/concatenated-menu-list.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/column-picker/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/issue-like-table/column-picker/types.d.ts +1 -2
- package/dist/types-ts4.5/ui/issue-like-table/custom-icons.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/empty-state/priority.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/empty-state/type.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/render-type/boolean/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/render-type/date-time/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/issue-like-table/render-type/icon/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/render-type/link/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/render-type/status/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/render-type/tag/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/render-type/text/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/render-type/user/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/issue-like-table/types.d.ts +0 -4
- package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/hooks/useFilterOptions.d.ts +3 -3
- package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/hooks/useHydrateJqlQuery.d.ts +2 -2
- package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/types.d.ts +1 -1
- package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/ui/async-popup-select/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/ui/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/utils/isClauseTooComplex.d.ts +1 -1
- package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/utils/transformers.d.ts +2 -2
- package/dist/types-ts4.5/ui/jira-issues-modal/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/buildJQL.d.ts +1 -1
- package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/jira-issues-modal/modal/index.d.ts +0 -2
- package/dist/types-ts4.5/ui/jira-issues-modal/types.d.ts +3 -3
- package/examples-helpers/buildAssetsIssuesTable.tsx +2 -2
- package/examples-helpers/buildConfluenceSearchTable.tsx +2 -2
- package/examples-helpers/buildIssueLikeTable.tsx +14 -10
- package/examples-helpers/buildJiraIssuesTable.tsx +10 -7
- package/examples-helpers/mockJqlSmartLinkData.ts +1 -1
- package/examples-helpers/mockSmartLinkData.ts +1 -1
- package/examples-helpers/smartLinkCustomClient.ts +1 -1
- package/examples-helpers/useAssetsTableProps.tsx +2 -2
- package/package.json +7 -7
|
@@ -26,6 +26,7 @@ import Tooltip from '@atlaskit/tooltip';
|
|
|
26
26
|
import { WidthObserver } from '@atlaskit/width-detector';
|
|
27
27
|
import { startUfoExperience, succeedUfoExperience } from '../../analytics/ufoExperiences';
|
|
28
28
|
import { stickyTableHeadersIndex } from '../../common/zindex';
|
|
29
|
+
import { useDatasourceExperienceId } from '../../contexts/datasource-experience-id';
|
|
29
30
|
import { ColumnPicker } from './column-picker';
|
|
30
31
|
import { DragColumnPreview } from './drag-column-preview';
|
|
31
32
|
import { DraggableTableHeading } from './draggable-table-heading';
|
|
@@ -47,6 +48,7 @@ var truncateTextStyles = css({
|
|
|
47
48
|
whiteSpace: 'nowrap'
|
|
48
49
|
});
|
|
49
50
|
var columnPickerWidth = 80;
|
|
51
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
50
52
|
var ColumnPickerHeader = styled.th(_defineProperty({}, "".concat(withTablePluginHeaderPrefix('&:last-of-type')), {
|
|
51
53
|
boxSizing: 'border-box',
|
|
52
54
|
border: 0,
|
|
@@ -68,6 +70,8 @@ var truncateStyles = css({
|
|
|
68
70
|
textOverflow: 'ellipsis',
|
|
69
71
|
whiteSpace: 'nowrap'
|
|
70
72
|
});
|
|
73
|
+
|
|
74
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
71
75
|
var TableCell = styled.td((_styled$td = {}, _defineProperty(_styled$td, "".concat(withTablePluginBodyPrefix()), {
|
|
72
76
|
/* First section here is to override things editor table plugin css defines */
|
|
73
77
|
font: fieldTextFontSize,
|
|
@@ -280,12 +284,12 @@ export var IssueLikeDataTableView = function IssueLikeDataTableView(_ref5) {
|
|
|
280
284
|
status = _ref5.status,
|
|
281
285
|
hasNextPage = _ref5.hasNextPage,
|
|
282
286
|
scrollableContainerHeight = _ref5.scrollableContainerHeight,
|
|
283
|
-
parentContainerRenderInstanceId = _ref5.parentContainerRenderInstanceId,
|
|
284
287
|
extensionKey = _ref5.extensionKey;
|
|
285
288
|
var tableId = useMemo(function () {
|
|
286
289
|
return Symbol('unique-id');
|
|
287
290
|
}, []);
|
|
288
291
|
var intl = useIntl();
|
|
292
|
+
var experienceId = useDatasourceExperienceId();
|
|
289
293
|
var tableHeaderRowRef = useRef(null);
|
|
290
294
|
var _useState = useState(null),
|
|
291
295
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -322,12 +326,12 @@ export var IssueLikeDataTableView = function IssueLikeDataTableView(_ref5) {
|
|
|
322
326
|
}
|
|
323
327
|
}, [columns, visibleColumnKeys, hasFullSchema]);
|
|
324
328
|
useEffect(function () {
|
|
325
|
-
if (
|
|
329
|
+
if (experienceId && status === 'resolved') {
|
|
326
330
|
succeedUfoExperience({
|
|
327
331
|
name: 'datasource-rendered'
|
|
328
|
-
},
|
|
332
|
+
}, experienceId);
|
|
329
333
|
}
|
|
330
|
-
}, [
|
|
334
|
+
}, [experienceId, status]);
|
|
331
335
|
var visibleSortedColumns = useMemo(function () {
|
|
332
336
|
return visibleColumnKeys.map(function (visibleKey) {
|
|
333
337
|
return orderedColumns.find(function (_ref6) {
|
|
@@ -540,13 +544,13 @@ export var IssueLikeDataTableView = function IssueLikeDataTableView(_ref5) {
|
|
|
540
544
|
}
|
|
541
545
|
return _context.abrupt("return");
|
|
542
546
|
case 2:
|
|
543
|
-
if (
|
|
547
|
+
if (experienceId) {
|
|
544
548
|
startUfoExperience({
|
|
545
549
|
name: 'column-picker-rendered',
|
|
546
550
|
metadata: {
|
|
547
551
|
extensionKey: extensionKey !== null && extensionKey !== void 0 ? extensionKey : undefined
|
|
548
552
|
}
|
|
549
|
-
},
|
|
553
|
+
}, experienceId);
|
|
550
554
|
}
|
|
551
555
|
_context.prev = 3;
|
|
552
556
|
_context.next = 6;
|
|
@@ -564,7 +568,7 @@ export var IssueLikeDataTableView = function IssueLikeDataTableView(_ref5) {
|
|
|
564
568
|
return _context.stop();
|
|
565
569
|
}
|
|
566
570
|
}, _callee, null, [[3, 9]]);
|
|
567
|
-
})), [
|
|
571
|
+
})), [experienceId, extensionKey, hasFullSchema, onLoadDatasourceDetails]);
|
|
568
572
|
var isEditable = onVisibleColumnKeysChange && hasData;
|
|
569
573
|
return jsx("div", {
|
|
570
574
|
/* There is required contentEditable={true} in editor-card-plugin
|
|
@@ -652,8 +656,7 @@ export var IssueLikeDataTableView = function IssueLikeDataTableView(_ref5) {
|
|
|
652
656
|
columns: hasFullSchema ? orderedColumns : [],
|
|
653
657
|
selectedColumnKeys: hasFullSchema ? visibleColumnKeys : [],
|
|
654
658
|
onSelectedColumnKeysChange: onSelectedColumnKeysChange,
|
|
655
|
-
onOpen: handlePickerOpen
|
|
656
|
-
parentContainerRenderInstanceId: parentContainerRenderInstanceId
|
|
659
|
+
onOpen: handlePickerOpen
|
|
657
660
|
})))), jsx("tbody", {
|
|
658
661
|
css: noDefaultBorderStyles,
|
|
659
662
|
"data-testid": testId && "".concat(testId, "--body")
|
|
@@ -16,6 +16,8 @@ var timeOptions = {
|
|
|
16
16
|
hour: '2-digit',
|
|
17
17
|
minute: '2-digit'
|
|
18
18
|
};
|
|
19
|
+
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
19
21
|
var DateTimeWrapper = styled.span({
|
|
20
22
|
fontSize: fieldTextFontSize
|
|
21
23
|
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
3
|
import Image from '@atlaskit/image';
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
4
5
|
var IconWrapper = styled.div({
|
|
5
6
|
display: 'flex',
|
|
6
7
|
alignItems: 'center',
|
|
@@ -2,6 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
3
|
import { fieldTextFontSize } from '../../styled';
|
|
4
4
|
export var TEXT_TYPE_TEST_ID = 'link-datasource-render-type--text';
|
|
5
|
+
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
5
7
|
var TextWrapper = styled.span({
|
|
6
8
|
fontSize: fieldTextFontSize
|
|
7
9
|
});
|
|
@@ -21,6 +21,8 @@ var avatarWrapperStyles = xcss({
|
|
|
21
21
|
var widthObserverWrapperStyles = xcss({
|
|
22
22
|
position: 'relative'
|
|
23
23
|
});
|
|
24
|
+
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
24
26
|
var AvatarGroupWrapperStyles = styled.div({
|
|
25
27
|
ul: {
|
|
26
28
|
paddingLeft: '0px !important'
|
|
@@ -5,6 +5,8 @@ import { N40 } from '@atlaskit/theme/colors';
|
|
|
5
5
|
import { fontFallback } from '@atlaskit/theme/typography';
|
|
6
6
|
export var ScrollableContainerHeight = 590;
|
|
7
7
|
export var fieldTextFontSize = "var(--ds-font-body, ".concat(fontFallback.body.medium, ")");
|
|
8
|
+
|
|
9
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
8
10
|
export var Table = styled.table({
|
|
9
11
|
width: '100%'
|
|
10
12
|
});
|
|
@@ -23,6 +25,8 @@ export var withTablePluginPrefix = function withTablePluginPrefix(tableSection)
|
|
|
23
25
|
};
|
|
24
26
|
export var withTablePluginHeaderPrefix = withTablePluginPrefix.bind(null, 'thead');
|
|
25
27
|
export var withTablePluginBodyPrefix = withTablePluginPrefix.bind(null, 'tbody');
|
|
28
|
+
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
26
30
|
export var TableHeading = styled.th((_styled$th = {}, _defineProperty(_styled$th, "".concat(withTablePluginHeaderPrefix()), {
|
|
27
31
|
border: 0,
|
|
28
32
|
position: 'relative',
|
|
@@ -7,7 +7,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
7
7
|
import { Fragment, useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { FormattedMessage, FormattedNumber } from 'react-intl-next';
|
|
10
|
-
import { v4 as uuidv4 } from 'uuid';
|
|
11
10
|
import { withAnalyticsContext } from '@atlaskit/analytics-next';
|
|
12
11
|
import Button from '@atlaskit/button/standard-button';
|
|
13
12
|
import { IntlMessagesProvider } from '@atlaskit/intl-messages-provider';
|
|
@@ -24,6 +23,7 @@ import { useDataRenderedUfoExperience } from '../../../analytics/ufoExperiences/
|
|
|
24
23
|
import { mapSearchMethod } from '../../../analytics/utils';
|
|
25
24
|
import { buildDatasourceAdf } from '../../../common/utils/adf';
|
|
26
25
|
import { fetchMessagesForLocale } from '../../../common/utils/locale/fetch-messages-for-locale';
|
|
26
|
+
import { DatasourceExperienceIdProvider, useDatasourceExperienceId } from '../../../contexts/datasource-experience-id';
|
|
27
27
|
import { useDatasourceTableState } from '../../../hooks/useDatasourceTableState';
|
|
28
28
|
import i18nEN from '../../../i18n/en';
|
|
29
29
|
import { useAvailableSites } from '../../../services/useAvailableSites';
|
|
@@ -60,7 +60,7 @@ var getDisplayValue = function getDisplayValue(currentViewMode, itemCount) {
|
|
|
60
60
|
return itemCount === 1 ? DatasourceDisplay.INLINE : DatasourceDisplay.DATASOURCE_INLINE;
|
|
61
61
|
};
|
|
62
62
|
var jqlSupportDocumentLink = 'https://support.atlassian.com/jira-service-management-cloud/docs/use-advanced-search-with-jira-query-language-jql/';
|
|
63
|
-
|
|
63
|
+
var PlainJiraIssuesConfigModal = function PlainJiraIssuesConfigModal(props) {
|
|
64
64
|
var datasourceId = props.datasourceId,
|
|
65
65
|
initialColumnCustomSizes = props.columnCustomSizes,
|
|
66
66
|
initialWrappedColumnKeys = props.wrappedColumnKeys,
|
|
@@ -139,8 +139,7 @@ export var PlainJiraIssuesConfigModal = function PlainJiraIssuesConfigModal(prop
|
|
|
139
139
|
destinationObjectTypes = _useDatasourceTableSt.destinationObjectTypes;
|
|
140
140
|
var _useDatasourceAnalyti = useDatasourceAnalyticsEvents(),
|
|
141
141
|
fireEvent = _useDatasourceAnalyti.fireEvent;
|
|
142
|
-
var
|
|
143
|
-
modalRenderInstanceId = _useRef.current;
|
|
142
|
+
var experienceId = useDatasourceExperienceId();
|
|
144
143
|
var analyticsPayload = useMemo(function () {
|
|
145
144
|
return {
|
|
146
145
|
extensionKey: extensionKey,
|
|
@@ -166,12 +165,12 @@ export var PlainJiraIssuesConfigModal = function PlainJiraIssuesConfigModal(prop
|
|
|
166
165
|
if (shouldStartUfoExperience) {
|
|
167
166
|
startUfoExperience({
|
|
168
167
|
name: 'datasource-rendered'
|
|
169
|
-
},
|
|
168
|
+
}, experienceId);
|
|
170
169
|
}
|
|
171
|
-
}, [
|
|
170
|
+
}, [experienceId, status]);
|
|
172
171
|
useDataRenderedUfoExperience({
|
|
173
172
|
status: status,
|
|
174
|
-
experienceId:
|
|
173
|
+
experienceId: experienceId,
|
|
175
174
|
itemCount: responseItems.length,
|
|
176
175
|
canBeLink: currentViewMode === 'inline',
|
|
177
176
|
extensionKey: extensionKey
|
|
@@ -229,7 +228,7 @@ export var PlainJiraIssuesConfigModal = function PlainJiraIssuesConfigModal(prop
|
|
|
229
228
|
fireCountViewedEvent();
|
|
230
229
|
}
|
|
231
230
|
}, [currentViewMode, status, fireIssueViewAnalytics, fireCountViewedEvent]);
|
|
232
|
-
useColumnPickerRenderedFailedUfoExperience(status,
|
|
231
|
+
useColumnPickerRenderedFailedUfoExperience(status, experienceId);
|
|
233
232
|
var onSearch = useCallback(function (newParameters, _ref) {
|
|
234
233
|
var searchMethod = _ref.searchMethod,
|
|
235
234
|
basicFilterSelections = _ref.basicFilterSelections,
|
|
@@ -372,14 +371,13 @@ export var PlainJiraIssuesConfigModal = function PlainJiraIssuesConfigModal(prop
|
|
|
372
371
|
onNextPage: handleOnNextPage,
|
|
373
372
|
onLoadDatasourceDetails: loadDatasourceDetails,
|
|
374
373
|
onVisibleColumnKeysChange: handleVisibleColumnKeysChange,
|
|
375
|
-
parentContainerRenderInstanceId: modalRenderInstanceId,
|
|
376
374
|
extensionKey: extensionKey,
|
|
377
375
|
columnCustomSizes: columnCustomSizes,
|
|
378
376
|
onColumnResize: onColumnResize,
|
|
379
377
|
wrappedColumnKeys: wrappedColumnKeys,
|
|
380
378
|
onWrappedColumnChange: getBooleanFF('platform.linking-platform.datasource-word_wrap') ? onWrappedColumnChange : undefined
|
|
381
379
|
}));
|
|
382
|
-
}, [status, columns, responseItems, hasNextPage, visibleColumnKeys, defaultVisibleColumnKeys, handleOnNextPage, loadDatasourceDetails, handleVisibleColumnKeysChange,
|
|
380
|
+
}, [status, columns, responseItems, hasNextPage, visibleColumnKeys, defaultVisibleColumnKeys, handleOnNextPage, loadDatasourceDetails, handleVisibleColumnKeysChange, extensionKey, columnCustomSizes, onColumnResize, wrappedColumnKeys, onWrappedColumnChange]);
|
|
383
381
|
var renderCountModeContent = useCallback(function () {
|
|
384
382
|
var selectedJiraSiteUrl = selectedJiraSite === null || selectedJiraSite === void 0 ? void 0 : selectedJiraSite.url;
|
|
385
383
|
if (status === 'unauthorized') {
|
|
@@ -482,7 +480,9 @@ export var PlainJiraIssuesConfigModal = function PlainJiraIssuesConfigModal(prop
|
|
|
482
480
|
}, jsx(LinkUrl, {
|
|
483
481
|
href: jqlUrl,
|
|
484
482
|
target: "_blank",
|
|
485
|
-
testId: "item-count-url"
|
|
483
|
+
testId: "item-count-url"
|
|
484
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
485
|
+
,
|
|
486
486
|
style: {
|
|
487
487
|
color: "var(--ds-text-accent-gray, ".concat(N800, ")")
|
|
488
488
|
}
|
|
@@ -512,4 +512,6 @@ var analyticsContextData = _objectSpread(_objectSpread({}, componentMetadata.con
|
|
|
512
512
|
var contextData = _objectSpread(_objectSpread({}, analyticsContextData), {}, {
|
|
513
513
|
attributes: _objectSpread({}, analyticsContextAttributes)
|
|
514
514
|
});
|
|
515
|
-
export var JiraIssuesConfigModal = withAnalyticsContext(contextData)(
|
|
515
|
+
export var JiraIssuesConfigModal = withAnalyticsContext(contextData)(function (props) {
|
|
516
|
+
return jsx(DatasourceExperienceIdProvider, null, jsx(PlainJiraIssuesConfigModal, props));
|
|
517
|
+
});
|
|
@@ -14,6 +14,7 @@ import { ASSETS_LIST_OF_LINKS_DATASOURCE_ID } from '../assets-modal';
|
|
|
14
14
|
import { footerMessages } from './messages';
|
|
15
15
|
import { PoweredByJSMAssets } from './powered-by-jsm-assets';
|
|
16
16
|
import { SyncInfo } from './sync-info';
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
17
18
|
var FooterWrapper = styled.div({
|
|
18
19
|
padding: "var(--ds-space-0, 0px)".concat(" ", "var(--ds-space-200, 16px)"),
|
|
19
20
|
boxSizing: 'border-box',
|
|
@@ -23,21 +24,29 @@ var FooterWrapper = styled.div({
|
|
|
23
24
|
background: "var(--ds-background-input, ".concat(N0, ")"),
|
|
24
25
|
borderTop: "2px solid ".concat("var(--ds-background-accent-gray-subtler, ".concat(N40, ")"))
|
|
25
26
|
});
|
|
27
|
+
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
26
29
|
var TopBorderWrapper = styled.div({
|
|
27
30
|
display: 'flex',
|
|
28
31
|
boxSizing: 'border-box',
|
|
29
32
|
justifyContent: 'space-between',
|
|
30
33
|
padding: "var(--ds-space-250, 20px)".concat(" ", "var(--ds-space-0, 0px)")
|
|
31
34
|
});
|
|
35
|
+
|
|
36
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
32
37
|
var ItemCounterWrapper = styled.div({
|
|
33
38
|
display: 'flex',
|
|
34
39
|
alignSelf: 'center'
|
|
35
40
|
});
|
|
41
|
+
|
|
42
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
36
43
|
var SyncWrapper = styled.div({
|
|
37
44
|
display: 'flex',
|
|
38
45
|
alignItems: 'center',
|
|
39
46
|
color: "var(--ds-text-accent-gray, ".concat(N90, ")")
|
|
40
47
|
});
|
|
48
|
+
|
|
49
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
41
50
|
var SyncTextWrapper = styled.div({
|
|
42
51
|
marginRight: "var(--ds-space-075, 6px)",
|
|
43
52
|
fontSize: '12px'
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @codegen <<SignedSource::819168596ba17484cadda969f8ecf82d>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen link-datasource
|
|
8
8
|
*/
|
|
9
|
-
import { AnalyticsEventAttributes, EventKey } from './analytics.types';
|
|
9
|
+
import { type AnalyticsEventAttributes, type EventKey } from './analytics.types';
|
|
10
10
|
type OptionalIfUndefined<T> = undefined extends T ? [param?: T] : [param: T];
|
|
11
11
|
export type EventPayloadAttributes<K extends EventKey> = OptionalIfUndefined<AnalyticsEventAttributes[K]>;
|
|
12
12
|
type EventTypes = 'ui' | 'track' | 'operational' | 'screen';
|
package/dist/types/analytics/ufoExperiences/hooks/useColumnPickerRenderedFailedUfoExperience.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DatasourceTableStatusType } from '@atlaskit/linking-types';
|
|
1
|
+
import { type DatasourceTableStatusType } from '@atlaskit/linking-types';
|
|
2
2
|
export declare const useColumnPickerRenderedFailedUfoExperience: (status: DatasourceTableStatusType, experienceId: string) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
|
-
import { IssueLikeDataTableViewProps } from '../ui/issue-like-table/types';
|
|
2
|
+
import { type IssueLikeDataTableViewProps } from '../ui/issue-like-table/types';
|
|
3
3
|
export type JiraSearchMethod = 'basic' | 'jql';
|
|
4
4
|
export interface Site {
|
|
5
5
|
cloudId: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { I18NMessages } from '@atlaskit/intl-messages-provider';
|
|
1
|
+
import { type I18NMessages } from '@atlaskit/intl-messages-provider';
|
|
2
2
|
export declare const fetchMessagesForLocale: (locale: string) => Promise<I18NMessages | undefined>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type PropsWithChildren } from 'react';
|
|
2
|
+
declare const DatasourceExperienceIdProvider: ({ children, }: PropsWithChildren<{}>) => JSX.Element;
|
|
3
|
+
declare const useDatasourceExperienceId: () => string;
|
|
4
|
+
export { DatasourceExperienceIdProvider, useDatasourceExperienceId };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ObjectSchema } from '../types/assets/types';
|
|
2
|
-
import { AssetsDatasourceParameters } from '../ui/assets-modal/types';
|
|
1
|
+
import { type ObjectSchema } from '../types/assets/types';
|
|
2
|
+
import { type AssetsDatasourceParameters } from '../ui/assets-modal/types';
|
|
3
3
|
export type UseAssetsClientState = {
|
|
4
4
|
workspaceId: string | undefined;
|
|
5
5
|
workspaceError: Error | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ObjectSchema } from '../types/assets/types';
|
|
1
|
+
import { type ObjectSchema } from '../types/assets/types';
|
|
2
2
|
export type FetchObjectSchemasDetails = Pick<UseObjectSchemasState, 'objectSchemas' | 'totalObjectSchemas'>;
|
|
3
3
|
export type UseObjectSchemasState = {
|
|
4
4
|
objectSchemasLoading: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EventKey } from '../analytics/generated/analytics.types';
|
|
2
|
-
import createEventPayload from '../analytics/generated/create-event-payload';
|
|
3
|
-
import { AqlValidateResponse, FetchObjectSchemasResponse } from '../types/assets/types';
|
|
1
|
+
import { type EventKey } from '../analytics/generated/analytics.types';
|
|
2
|
+
import type createEventPayload from '../analytics/generated/create-event-payload';
|
|
3
|
+
import { type AqlValidateResponse, type FetchObjectSchemasResponse } from '../types/assets/types';
|
|
4
4
|
type AnalyticsFireEvent = <K extends EventKey>(...params: Parameters<typeof createEventPayload<K>>) => void;
|
|
5
5
|
export declare const getWorkspaceId: (fireEvent?: AnalyticsFireEvent) => Promise<string>;
|
|
6
6
|
export declare const validateAql: (workspaceId: string, data: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GetAutocompleteInitialData } from '@atlaskit/jql-editor-autocomplete-rest';
|
|
1
|
+
import { type GetAutocompleteInitialData } from '@atlaskit/jql-editor-autocomplete-rest';
|
|
2
2
|
export type AutocompleteInitialDataResponse = {
|
|
3
3
|
jqlFields: Awaited<ReturnType<GetAutocompleteInitialData>>['jqlFields'];
|
|
4
4
|
jqlFunctions: Awaited<ReturnType<GetAutocompleteInitialData>>['jqlFunctions'];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GetAutocompleteSuggestions } from '@atlaskit/jql-editor-autocomplete-rest';
|
|
1
|
+
import { type GetAutocompleteSuggestions } from '@atlaskit/jql-editor-autocomplete-rest';
|
|
2
2
|
export type AutocompleteSuggestionsResponse = {
|
|
3
3
|
results: Awaited<ReturnType<GetAutocompleteSuggestions>>['results'];
|
|
4
4
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SelectOption } from '../ui/common/modal/popup-select/types';
|
|
2
|
-
import { FieldValuesResponse, HydrateResponse } from '../ui/jira-issues-modal/basic-filters/types';
|
|
1
|
+
import { type SelectOption } from '../ui/common/modal/popup-select/types';
|
|
2
|
+
import { type FieldValuesResponse, type HydrateResponse } from '../ui/jira-issues-modal/basic-filters/types';
|
|
3
3
|
export declare const mockHydrateJqlResponse: HydrateResponse;
|
|
4
4
|
export declare const mockFieldValuesResponse: FieldValuesResponse;
|
|
5
5
|
export declare const mockUserRecommendationsResponse: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { UserHydrationAGGResponse, UserInfoAGGResponse } from '../ui/confluence-search-modal/basic-filters/types';
|
|
2
|
-
import { BasicFilterFieldType, FieldValuesResponse, HydrateResponse } from '../ui/jira-issues-modal/basic-filters/types';
|
|
1
|
+
import { type UserHydrationAGGResponse, type UserInfoAGGResponse } from '../ui/confluence-search-modal/basic-filters/types';
|
|
2
|
+
import { type BasicFilterFieldType, type FieldValuesResponse, type HydrateResponse } from '../ui/jira-issues-modal/basic-filters/types';
|
|
3
3
|
interface GetFieldValuesProps {
|
|
4
4
|
cloudId: string;
|
|
5
5
|
jql: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { AssetsConfigModalProps } from './types';
|
|
2
|
+
import { type AssetsConfigModalProps } from './types';
|
|
3
3
|
export declare const ASSETS_LIST_OF_LINKS_DATASOURCE_ID = "361d618a-3c04-40ad-9b27-3c8ea6927020";
|
|
4
4
|
declare const AssetsConfigModalWithWrappers: (props: AssetsConfigModalProps) => JSX.Element;
|
|
5
5
|
export default AssetsConfigModalWithWrappers;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
|
-
import { DatasourceDataResponseItem, DatasourceResponseSchemaProperty, DatasourceTableStatusType } from '@atlaskit/linking-types';
|
|
2
|
+
import { type DatasourceDataResponseItem, type DatasourceResponseSchemaProperty, type DatasourceTableStatusType } from '@atlaskit/linking-types';
|
|
3
3
|
export interface RenderAssetsContentProps {
|
|
4
4
|
isFetchingInitialData: boolean;
|
|
5
5
|
status: DatasourceTableStatusType;
|
|
@@ -14,7 +14,6 @@ export interface RenderAssetsContentProps {
|
|
|
14
14
|
columns: DatasourceResponseSchemaProperty[];
|
|
15
15
|
defaultVisibleColumnKeys: string[];
|
|
16
16
|
onVisibleColumnKeysChange: (visibleColumnKeys: string[]) => void;
|
|
17
|
-
modalRenderInstanceId: string;
|
|
18
17
|
}
|
|
19
18
|
export declare const MODAL_HEIGHT = 420;
|
|
20
19
|
export declare const RenderAssetsContent: (props: RenderAssetsContentProps) => jsx.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
|
-
import { ObjectSchema } from '../../../../types/assets/types';
|
|
3
|
+
import { type ObjectSchema } from '../../../../types/assets/types';
|
|
4
4
|
type AssetsObjectSchemaSelectProps = {
|
|
5
5
|
value: ObjectSchema | undefined;
|
|
6
6
|
workspaceId: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ObjectSchema, ObjectSchemaOption } from '../../../../types/assets/types';
|
|
1
|
+
import { type ObjectSchema, type ObjectSchemaOption } from '../../../../types/assets/types';
|
|
2
2
|
export declare const objectSchemaToSelectOption: (objectSchema: ObjectSchema) => ObjectSchemaOption;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
-
import { MessageDescriptor } from 'react-intl-next';
|
|
4
|
+
import { type MessageDescriptor } from 'react-intl-next';
|
|
5
5
|
interface InitialStateViewProps {
|
|
6
6
|
icon: JSX.Element;
|
|
7
7
|
showBeta?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
/// <reference types="react" />
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
-
import { MessageDescriptor } from 'react-intl-next';
|
|
4
|
+
import { type MessageDescriptor } from 'react-intl-next';
|
|
5
5
|
export interface BasicSearchInputProps {
|
|
6
6
|
isDisabled?: boolean;
|
|
7
7
|
isSearching?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
|
-
import { ButtonClickedCancelAttributesType } from '../../../../analytics/generated/analytics.types';
|
|
2
|
+
import { type ButtonClickedCancelAttributesType } from '../../../../analytics/generated/analytics.types';
|
|
3
3
|
export interface CancelButtonProps {
|
|
4
4
|
getAnalyticsPayload: () => ButtonClickedCancelAttributesType;
|
|
5
5
|
onCancel: () => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
|
-
import { MessageDescriptor } from 'react-intl-next';
|
|
3
|
+
import { type MessageDescriptor } from 'react-intl-next';
|
|
4
4
|
export declare const SmartCardPlaceholder: ({ placeholderText, }: {
|
|
5
5
|
placeholderText: MessageDescriptor;
|
|
6
6
|
}) => jsx.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ControlProps } from '@atlaskit/select';
|
|
3
|
-
import { SelectOption } from './types';
|
|
2
|
+
import { type ControlProps } from '@atlaskit/select';
|
|
3
|
+
import { type SelectOption } from './types';
|
|
4
4
|
export declare const CustomControl: ({ children, ...innerProps }: ControlProps<SelectOption, true>) => JSX.Element;
|
|
5
5
|
export default CustomControl;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { DropdownIndicatorProps } from '@atlaskit/select';
|
|
3
|
-
import { SelectOption } from './types';
|
|
2
|
+
import { type DropdownIndicatorProps } from '@atlaskit/select';
|
|
3
|
+
import { type SelectOption } from './types';
|
|
4
4
|
declare const CustomDropdownIndicator: (props: DropdownIndicatorProps<SelectOption, true>) => JSX.Element;
|
|
5
5
|
export default CustomDropdownIndicator;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { InputActionMeta, ValueType } from '@atlaskit/select';
|
|
3
|
-
import { CustomMenuListProps } from './menu-list';
|
|
4
|
-
import { SelectOption } from './types';
|
|
2
|
+
import { type InputActionMeta, type ValueType } from '@atlaskit/select';
|
|
3
|
+
import { type CustomMenuListProps } from './menu-list';
|
|
4
|
+
import { type SelectOption } from './types';
|
|
5
5
|
export interface FilterPopupSelectProps {
|
|
6
6
|
buttonLabel: string;
|
|
7
7
|
totalCount?: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { MenuListComponentProps } from '@atlaskit/select';
|
|
3
|
-
import { SelectOption } from '../types';
|
|
2
|
+
import { type MenuListComponentProps } from '@atlaskit/select';
|
|
3
|
+
import { type SelectOption } from '../types';
|
|
4
4
|
export type CustomMenuListProps = {
|
|
5
5
|
isError?: boolean;
|
|
6
6
|
isLoading?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
|
-
import { MessageDescriptor } from 'react-intl-next';
|
|
2
|
+
import { type MessageDescriptor } from 'react-intl-next';
|
|
3
3
|
import type { Site } from '../../../../common/types';
|
|
4
4
|
export interface SiteSelectorProps {
|
|
5
5
|
availableSites: Site[] | undefined;
|
package/dist/types/ui/confluence-search-modal/basic-filters/filters/edited-or-created-by/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { SelectOption } from '../../../../common/modal/popup-select/types';
|
|
2
|
+
import { type SelectOption } from '../../../../common/modal/popup-select/types';
|
|
3
3
|
import { CLOLBasicFilters } from '../../types';
|
|
4
4
|
interface EditedOrCreatedByFilterProps {
|
|
5
5
|
cloudId?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FilterPopupSelectProps } from '../../../common/modal/popup-select';
|
|
2
|
-
import { SelectOption } from '../../../common/modal/popup-select/types';
|
|
1
|
+
import { type FilterPopupSelectProps } from '../../../common/modal/popup-select';
|
|
2
|
+
import { type SelectOption } from '../../../common/modal/popup-select/types';
|
|
3
3
|
interface FetchFilterOptionsProps {
|
|
4
4
|
cloudId: string;
|
|
5
5
|
userId: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ConfluenceSearchConfigModalProps } from './types';
|
|
2
|
+
import { type ConfluenceSearchConfigModalProps } from './types';
|
|
3
3
|
export declare const CONFLUENCE_SEARCH_DATASOURCE_ID = "768fc736-3af4-4a8f-b27e-203602bff8ca";
|
|
4
4
|
declare const ConfluenceSearchConfigModalWithWrappers: (props: ConfluenceSearchConfigModalProps) => JSX.Element;
|
|
5
5
|
export default ConfluenceSearchConfigModalWithWrappers;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { DatasourceTableViewProps } from './types';
|
|
2
|
+
import { type DatasourceTableViewProps } from './types';
|
|
3
3
|
declare const DatasourceTableViewWithWrappers: (props: DatasourceTableViewProps) => JSX.Element;
|
|
4
4
|
export default DatasourceTableViewWithWrappers;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
|
-
import { MenuListComponentProps, OptionType } from '@atlaskit/select';
|
|
3
|
+
import { type MenuListComponentProps, type OptionType } from '@atlaskit/select';
|
|
4
4
|
export declare const SELECT_ITEMS_MAXIMUM_THRESHOLD = 200;
|
|
5
5
|
export declare const ConcatenatedMenuList: ({ children, ...props }: MenuListComponentProps<OptionType, true>) => jsx.JSX.Element;
|