@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,11 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import { css, jsx } from '@emotion/react';
|
|
2
3
|
import { Skeleton } from '@atlaskit/linking-common';
|
|
3
4
|
import { N40 } from '@atlaskit/theme/colors';
|
|
4
5
|
import { ScrollableContainerHeight, TableHeading } from '../styled';
|
|
5
6
|
var SkeletonComponent = function SkeletonComponent(_ref) {
|
|
6
7
|
var width = _ref.width,
|
|
7
8
|
itemName = _ref.itemName;
|
|
8
|
-
return
|
|
9
|
+
return jsx(Skeleton, {
|
|
9
10
|
borderRadius: 8,
|
|
10
11
|
testId: "".concat(itemName, "-empty-state-skeleton"),
|
|
11
12
|
height: 14,
|
|
@@ -68,17 +69,17 @@ var renderItem = function renderItem(_ref2, _ref3) {
|
|
|
68
69
|
shortWidth = _ref3.shortWidth;
|
|
69
70
|
switch (key) {
|
|
70
71
|
case 'status':
|
|
71
|
-
return
|
|
72
|
+
return jsx(SkeletonComponent, {
|
|
72
73
|
width: shortWidth,
|
|
73
74
|
itemName: key
|
|
74
75
|
});
|
|
75
76
|
case 'summary':
|
|
76
|
-
return
|
|
77
|
+
return jsx(SkeletonComponent, {
|
|
77
78
|
width: longWidth,
|
|
78
79
|
itemName: key
|
|
79
80
|
});
|
|
80
81
|
default:
|
|
81
|
-
return
|
|
82
|
+
return jsx(SkeletonComponent, {
|
|
82
83
|
width: width,
|
|
83
84
|
itemName: key
|
|
84
85
|
});
|
|
@@ -98,7 +99,7 @@ export default (function (_ref4) {
|
|
|
98
99
|
shortWidth: shortColumnWidths[index]
|
|
99
100
|
};
|
|
100
101
|
});
|
|
101
|
-
return
|
|
102
|
+
return jsx("div", {
|
|
102
103
|
style: {
|
|
103
104
|
// the IssueLikeDataTableView wraps the table in a container with the styling below while modal doesn't
|
|
104
105
|
// this maxHeight comes from scrollableContainerHeight
|
|
@@ -106,36 +107,36 @@ export default (function (_ref4) {
|
|
|
106
107
|
padding: 0,
|
|
107
108
|
boxSizing: 'border-box'
|
|
108
109
|
}
|
|
109
|
-
},
|
|
110
|
+
}, jsx("table", {
|
|
110
111
|
css: tableStyles,
|
|
111
112
|
"data-testid": testId
|
|
112
|
-
},
|
|
113
|
+
}, jsx("thead", {
|
|
113
114
|
style: {
|
|
114
115
|
borderBottom: 0
|
|
115
116
|
}
|
|
116
|
-
},
|
|
117
|
+
}, jsx("tr", null, columnsToRender.map(function (_ref5) {
|
|
117
118
|
var key = _ref5.key,
|
|
118
119
|
width = _ref5.width;
|
|
119
|
-
return
|
|
120
|
+
return jsx(TableHeading, {
|
|
120
121
|
key: key,
|
|
121
122
|
style: {
|
|
122
123
|
width: width,
|
|
123
124
|
padding: padding
|
|
124
125
|
}
|
|
125
|
-
},
|
|
126
|
+
}, jsx(Skeleton, {
|
|
126
127
|
appearance: "darkGray",
|
|
127
128
|
borderRadius: 8,
|
|
128
129
|
testId: "empty-state-skeleton",
|
|
129
130
|
height: 12,
|
|
130
131
|
width: width
|
|
131
132
|
}));
|
|
132
|
-
}))),
|
|
133
|
+
}))), jsx("tbody", {
|
|
133
134
|
css: tableBodyStyles
|
|
134
135
|
}, rows.map(function (row) {
|
|
135
|
-
return
|
|
136
|
+
return jsx("tr", {
|
|
136
137
|
key: row.id
|
|
137
138
|
}, columnsToRender.map(function (column) {
|
|
138
|
-
return
|
|
139
|
+
return jsx("td", {
|
|
139
140
|
css: cellStyles,
|
|
140
141
|
key: column.key
|
|
141
142
|
}, renderItem(column, row));
|
|
@@ -7,8 +7,9 @@ var _templateObject;
|
|
|
7
7
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
8
8
|
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; }
|
|
9
9
|
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; }
|
|
10
|
+
/** @jsx jsx */
|
|
10
11
|
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
11
|
-
import { css } from '@emotion/react';
|
|
12
|
+
import { css, jsx } from '@emotion/react';
|
|
12
13
|
import styled from '@emotion/styled';
|
|
13
14
|
import invariant from 'tiny-invariant';
|
|
14
15
|
import Heading from '@atlaskit/heading';
|
|
@@ -286,7 +287,7 @@ export var IssueLikeDataTableView = function IssueLikeDataTableView(_ref5) {
|
|
|
286
287
|
key: 'loading',
|
|
287
288
|
cells: headerColumns.map(function (column) {
|
|
288
289
|
return _objectSpread(_objectSpread({}, column), {}, {
|
|
289
|
-
content:
|
|
290
|
+
content: jsx(Skeleton, {
|
|
290
291
|
borderRadius: 8,
|
|
291
292
|
width: "100%",
|
|
292
293
|
height: 14,
|
|
@@ -463,7 +464,7 @@ export var IssueLikeDataTableView = function IssueLikeDataTableView(_ref5) {
|
|
|
463
464
|
}, _callee, null, [[3, 9]]);
|
|
464
465
|
})), [parentContainerRenderInstanceId, extensionKey, hasFullSchema, onLoadDatasourceDetails]);
|
|
465
466
|
var shouldUseWidth = onColumnResize || columnCustomSizes;
|
|
466
|
-
return
|
|
467
|
+
return jsx("div", {
|
|
467
468
|
/* There is required contentEditable={true} in editor-card-plugin
|
|
468
469
|
* But this brakes how DND works. We set contentEditable={false} to allow DND to work
|
|
469
470
|
* when dragging is initiated on top of a column label.
|
|
@@ -474,26 +475,26 @@ export var IssueLikeDataTableView = function IssueLikeDataTableView(_ref5) {
|
|
|
474
475
|
style: scrollableContainerHeight ? {
|
|
475
476
|
maxHeight: "".concat(scrollableContainerHeight, "px")
|
|
476
477
|
} : undefined
|
|
477
|
-
},
|
|
478
|
+
}, jsx(Table, {
|
|
478
479
|
css: tableStyles,
|
|
479
480
|
"data-testid": testId,
|
|
480
481
|
style: shouldUseWidth ? {
|
|
481
482
|
tableLayout: 'fixed'
|
|
482
483
|
} : {}
|
|
483
|
-
},
|
|
484
|
+
}, jsx("thead", {
|
|
484
485
|
"data-testid": testId && "".concat(testId, "--head"),
|
|
485
486
|
css: [noDefaultBorderStyles, tableHeadStyles]
|
|
486
|
-
},
|
|
487
|
+
}, jsx("tr", {
|
|
487
488
|
ref: tableHeaderRowRef
|
|
488
489
|
}, headerColumns.map(function (_ref13, cellIndex) {
|
|
489
490
|
var key = _ref13.key,
|
|
490
491
|
content = _ref13.content,
|
|
491
492
|
width = _ref13.width;
|
|
492
|
-
var heading =
|
|
493
|
+
var heading = jsx(Tooltip, {
|
|
493
494
|
content: content,
|
|
494
495
|
tag: "span",
|
|
495
496
|
testId: 'datasource-header-content'
|
|
496
|
-
},
|
|
497
|
+
}, jsx(Heading, {
|
|
497
498
|
level: "h200",
|
|
498
499
|
as: 'span'
|
|
499
500
|
}, content));
|
|
@@ -509,11 +510,11 @@ export var IssueLikeDataTableView = function IssueLikeDataTableView(_ref5) {
|
|
|
509
510
|
return cell.content;
|
|
510
511
|
}
|
|
511
512
|
}).slice(0, 5);
|
|
512
|
-
var dragPreview =
|
|
513
|
+
var dragPreview = jsx(DragColumnPreview, {
|
|
513
514
|
title: heading,
|
|
514
515
|
rows: previewRows
|
|
515
516
|
});
|
|
516
|
-
return
|
|
517
|
+
return jsx(DraggableTableHeading, {
|
|
517
518
|
tableId: tableId,
|
|
518
519
|
key: key,
|
|
519
520
|
id: key,
|
|
@@ -524,7 +525,7 @@ export var IssueLikeDataTableView = function IssueLikeDataTableView(_ref5) {
|
|
|
524
525
|
dragPreview: dragPreview
|
|
525
526
|
}, heading);
|
|
526
527
|
} else {
|
|
527
|
-
return
|
|
528
|
+
return jsx(TableHeading, {
|
|
528
529
|
key: key,
|
|
529
530
|
className: !!onVisibleColumnKeysChange ? 'has-column-picker' : '',
|
|
530
531
|
"data-testid": "".concat(key, "-column-heading"),
|
|
@@ -535,20 +536,20 @@ export var IssueLikeDataTableView = function IssueLikeDataTableView(_ref5) {
|
|
|
535
536
|
}
|
|
536
537
|
}, heading);
|
|
537
538
|
}
|
|
538
|
-
}), onVisibleColumnKeysChange &&
|
|
539
|
+
}), onVisibleColumnKeysChange && jsx(ColumnPickerHeader, null, jsx(ColumnPicker, {
|
|
539
540
|
columns: hasFullSchema ? orderedColumns : [],
|
|
540
541
|
selectedColumnKeys: hasFullSchema ? visibleColumnKeys : [],
|
|
541
542
|
onSelectedColumnKeysChange: onSelectedColumnKeysChange,
|
|
542
543
|
onOpen: handlePickerOpen,
|
|
543
544
|
parentContainerRenderInstanceId: parentContainerRenderInstanceId
|
|
544
|
-
})))),
|
|
545
|
+
})))), jsx("tbody", {
|
|
545
546
|
css: noDefaultBorderStyles,
|
|
546
547
|
"data-testid": testId && "".concat(testId, "--body")
|
|
547
548
|
}, rows.map(function (_ref16) {
|
|
548
549
|
var key = _ref16.key,
|
|
549
550
|
cells = _ref16.cells,
|
|
550
551
|
ref = _ref16.ref;
|
|
551
|
-
return
|
|
552
|
+
return jsx("tr", {
|
|
552
553
|
key: key,
|
|
553
554
|
"data-testid": testId && "".concat(testId, "--row-").concat(key),
|
|
554
555
|
ref: ref
|
|
@@ -567,7 +568,7 @@ export var IssueLikeDataTableView = function IssueLikeDataTableView(_ref5) {
|
|
|
567
568
|
paddingBlock: "var(--ds-space-100, 8px)"
|
|
568
569
|
});
|
|
569
570
|
}
|
|
570
|
-
return
|
|
571
|
+
return jsx("td", {
|
|
571
572
|
key: cellKey,
|
|
572
573
|
"data-testid": testId && "".concat(testId, "--cell-").concat(cellIndex),
|
|
573
574
|
colSpan: cellIndex + 1 === cells.length ? 2 : undefined,
|
|
@@ -2,8 +2,9 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
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; }
|
|
4
4
|
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; }
|
|
5
|
+
/** @jsx jsx */
|
|
5
6
|
import { useMemo } from 'react';
|
|
6
|
-
import { css } from '@emotion/react';
|
|
7
|
+
import { css, jsx } from '@emotion/react';
|
|
7
8
|
import { defaultSchema } from '@atlaskit/adf-schema/schema-default';
|
|
8
9
|
import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
9
10
|
var rootStyles = css({
|
|
@@ -31,12 +32,12 @@ var RichTextType = function RichTextType(_ref) {
|
|
|
31
32
|
}
|
|
32
33
|
}, [value]);
|
|
33
34
|
if (adfPlainText) {
|
|
34
|
-
return
|
|
35
|
+
return jsx("div", {
|
|
35
36
|
css: rootStyles,
|
|
36
37
|
"data-testid": "richtext-plaintext"
|
|
37
38
|
}, adfPlainText);
|
|
38
39
|
} else {
|
|
39
|
-
return
|
|
40
|
+
return jsx("span", {
|
|
40
41
|
"data-testid": "richtext-unsupported"
|
|
41
42
|
});
|
|
42
43
|
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
3
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
3
4
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
5
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
6
|
+
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; }
|
|
7
|
+
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; }
|
|
5
8
|
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
6
9
|
import { useIntl } from 'react-intl-next';
|
|
7
10
|
import { useBasicFilterAGG } from '../../../../services/useBasicFilterAGG';
|
|
@@ -16,7 +19,7 @@ export var getAssigneeUnassignedFilterOption = function getAssigneeUnassignedFil
|
|
|
16
19
|
};
|
|
17
20
|
export var useFilterOptions = function useFilterOptions(_ref) {
|
|
18
21
|
var filterType = _ref.filterType,
|
|
19
|
-
|
|
22
|
+
site = _ref.site;
|
|
20
23
|
var _useIntl = useIntl(),
|
|
21
24
|
formatMessage = _useIntl.formatMessage;
|
|
22
25
|
var _useState = useState([]),
|
|
@@ -40,10 +43,13 @@ export var useFilterOptions = function useFilterOptions(_ref) {
|
|
|
40
43
|
nextPageCursor = _useState10[0],
|
|
41
44
|
setNextPageCursor = _useState10[1];
|
|
42
45
|
var initialData = useRef();
|
|
46
|
+
var _ref2 = site || {},
|
|
47
|
+
cloudId = _ref2.cloudId,
|
|
48
|
+
siteUrl = _ref2.url;
|
|
43
49
|
var _useBasicFilterAGG = useBasicFilterAGG(),
|
|
44
50
|
getFieldValues = _useBasicFilterAGG.getFieldValues;
|
|
45
51
|
var fetchFilterOptions = useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
46
|
-
var
|
|
52
|
+
var _ref4,
|
|
47
53
|
pageCursor,
|
|
48
54
|
searchString,
|
|
49
55
|
isNewSearch,
|
|
@@ -56,21 +62,27 @@ export var useFilterOptions = function useFilterOptions(_ref) {
|
|
|
56
62
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
57
63
|
while (1) switch (_context.prev = _context.next) {
|
|
58
64
|
case 0:
|
|
59
|
-
|
|
65
|
+
_ref4 = _args.length > 0 && _args[0] !== undefined ? _args[0] : {}, pageCursor = _ref4.pageCursor, searchString = _ref4.searchString;
|
|
66
|
+
if (cloudId) {
|
|
67
|
+
_context.next = 3;
|
|
68
|
+
break;
|
|
69
|
+
}
|
|
70
|
+
return _context.abrupt("return");
|
|
71
|
+
case 3:
|
|
60
72
|
isNewSearch = !pageCursor;
|
|
61
73
|
isNewSearch ? setStatus('loading') : setStatus('loadingMore');
|
|
62
74
|
isRequestLikeInitialSearch = !pageCursor && !searchString;
|
|
63
75
|
initialResponseData = initialData.current;
|
|
64
|
-
_context.prev =
|
|
76
|
+
_context.prev = 7;
|
|
65
77
|
if (!(isRequestLikeInitialSearch && initialResponseData)) {
|
|
66
|
-
_context.next =
|
|
78
|
+
_context.next = 12;
|
|
67
79
|
break;
|
|
68
80
|
}
|
|
69
81
|
_context.t0 = initialResponseData;
|
|
70
|
-
_context.next =
|
|
82
|
+
_context.next = 15;
|
|
71
83
|
break;
|
|
72
|
-
case
|
|
73
|
-
_context.next =
|
|
84
|
+
case 12:
|
|
85
|
+
_context.next = 14;
|
|
74
86
|
return getFieldValues({
|
|
75
87
|
cloudId: cloudId,
|
|
76
88
|
jql: '',
|
|
@@ -78,19 +90,21 @@ export var useFilterOptions = function useFilterOptions(_ref) {
|
|
|
78
90
|
searchString: searchString,
|
|
79
91
|
pageCursor: pageCursor
|
|
80
92
|
});
|
|
81
|
-
case
|
|
93
|
+
case 14:
|
|
82
94
|
_context.t0 = _context.sent;
|
|
83
|
-
case
|
|
95
|
+
case 15:
|
|
84
96
|
response = _context.t0;
|
|
85
97
|
if (!(response.errors && response.errors.length > 0)) {
|
|
86
|
-
_context.next =
|
|
98
|
+
_context.next = 20;
|
|
87
99
|
break;
|
|
88
100
|
}
|
|
89
101
|
setStatus('rejected');
|
|
90
102
|
setErrors(response.errors);
|
|
91
103
|
return _context.abrupt("return");
|
|
92
|
-
case
|
|
93
|
-
mappedResponse = mapFieldValuesToFilterOptions(response)
|
|
104
|
+
case 20:
|
|
105
|
+
mappedResponse = mapFieldValuesToFilterOptions(_objectSpread(_objectSpread({}, response), {}, {
|
|
106
|
+
siteUrl: siteUrl
|
|
107
|
+
}));
|
|
94
108
|
mappedTotalCount = mapFieldValuesToTotalCount(response);
|
|
95
109
|
if (isNewSearch) {
|
|
96
110
|
if (isRequestLikeInitialSearch) {
|
|
@@ -116,19 +130,19 @@ export var useFilterOptions = function useFilterOptions(_ref) {
|
|
|
116
130
|
setTotalCount(mappedTotalCount);
|
|
117
131
|
setNextPageCursor(mapFieldValuesToPageCursor(response));
|
|
118
132
|
setStatus('resolved');
|
|
119
|
-
_context.next =
|
|
133
|
+
_context.next = 32;
|
|
120
134
|
break;
|
|
121
|
-
case
|
|
122
|
-
_context.prev =
|
|
123
|
-
_context.t1 = _context["catch"](
|
|
135
|
+
case 28:
|
|
136
|
+
_context.prev = 28;
|
|
137
|
+
_context.t1 = _context["catch"](7);
|
|
124
138
|
setStatus('rejected');
|
|
125
139
|
setErrors([_context.t1]);
|
|
126
|
-
case
|
|
140
|
+
case 32:
|
|
127
141
|
case "end":
|
|
128
142
|
return _context.stop();
|
|
129
143
|
}
|
|
130
|
-
}, _callee, null, [[
|
|
131
|
-
})), [cloudId, filterOptions, filterType, formatMessage, getFieldValues]);
|
|
144
|
+
}, _callee, null, [[7, 28]]);
|
|
145
|
+
})), [cloudId, filterOptions, filterType, formatMessage, getFieldValues, siteUrl]);
|
|
132
146
|
useEffect(function () {
|
|
133
147
|
if (status !== 'rejected' && errors.length !== 0) {
|
|
134
148
|
setErrors([]);
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
/* footer.tsx generated by @compiled/babel-plugin v0.26.1 */
|
|
2
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
-
import { ax, ix } from "@compiled/react/runtime";
|
|
4
2
|
import React from 'react';
|
|
5
3
|
import { FormattedMessage } from 'react-intl-next';
|
|
6
4
|
import { Flex, Inline, xcss } from '@atlaskit/primitives';
|
|
@@ -26,7 +26,7 @@ var noFilterOptions = function noFilterOptions() {
|
|
|
26
26
|
export var SEARCH_DEBOUNCE_MS = 350;
|
|
27
27
|
var AsyncPopupSelect = function AsyncPopupSelect(_ref) {
|
|
28
28
|
var filterType = _ref.filterType,
|
|
29
|
-
|
|
29
|
+
site = _ref.site,
|
|
30
30
|
selection = _ref.selection,
|
|
31
31
|
isJQLHydrating = _ref.isJQLHydrating,
|
|
32
32
|
_ref$onSelectionChang = _ref.onSelectionChange,
|
|
@@ -49,12 +49,14 @@ var AsyncPopupSelect = function AsyncPopupSelect(_ref) {
|
|
|
49
49
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
50
50
|
sortedOptions = _useState6[0],
|
|
51
51
|
setSortedOptions = _useState6[1];
|
|
52
|
-
var
|
|
52
|
+
var _ref2 = site || {},
|
|
53
|
+
cloudId = _ref2.cloudId;
|
|
54
|
+
var currentSiteCloudId = useRef(cloudId || '');
|
|
53
55
|
var sortPaginatedResults = useRef(false); // this is to track pagination for sorting purpose
|
|
54
56
|
|
|
55
57
|
var _useFilterOptions = useFilterOptions({
|
|
56
58
|
filterType: filterType,
|
|
57
|
-
|
|
59
|
+
site: site
|
|
58
60
|
}),
|
|
59
61
|
filterOptions = _useFilterOptions.filterOptions,
|
|
60
62
|
fetchFilterOptions = _useFilterOptions.fetchFilterOptions,
|
|
@@ -71,7 +73,7 @@ var AsyncPopupSelect = function AsyncPopupSelect(_ref) {
|
|
|
71
73
|
_useDebouncedCallback2 = _slicedToArray(_useDebouncedCallback, 1),
|
|
72
74
|
handleDebouncedFetchFilterOptions = _useDebouncedCallback2[0];
|
|
73
75
|
var handleInputChange = useCallback( /*#__PURE__*/function () {
|
|
74
|
-
var
|
|
76
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(newSearchTerm, actionMeta) {
|
|
75
77
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
76
78
|
while (1) switch (_context.prev = _context.next) {
|
|
77
79
|
case 0:
|
|
@@ -86,7 +88,7 @@ var AsyncPopupSelect = function AsyncPopupSelect(_ref) {
|
|
|
86
88
|
}, _callee);
|
|
87
89
|
}));
|
|
88
90
|
return function (_x, _x2) {
|
|
89
|
-
return
|
|
91
|
+
return _ref3.apply(this, arguments);
|
|
90
92
|
};
|
|
91
93
|
}(), [handleDebouncedFetchFilterOptions, searchTerm]);
|
|
92
94
|
var handleOptionSelection = useCallback(function (newValue) {
|
|
@@ -185,7 +187,7 @@ var AsyncPopupSelect = function AsyncPopupSelect(_ref) {
|
|
|
185
187
|
}, [status]); // we only want the sortOptionsOnResolve to run when there is a status change
|
|
186
188
|
|
|
187
189
|
useEffect(function () {
|
|
188
|
-
if (currentSiteCloudId.current !== cloudId) {
|
|
190
|
+
if (cloudId && currentSiteCloudId.current !== cloudId) {
|
|
189
191
|
currentSiteCloudId.current = cloudId;
|
|
190
192
|
setSortedOptions([]);
|
|
191
193
|
setSearchTerm('');
|
|
@@ -252,9 +254,9 @@ var AsyncPopupSelect = function AsyncPopupSelect(_ref) {
|
|
|
252
254
|
onInputChange: handleInputChange,
|
|
253
255
|
onOpen: handleMenuOpen,
|
|
254
256
|
onClose: handleMenuClose,
|
|
255
|
-
target: function target(
|
|
256
|
-
var isOpen =
|
|
257
|
-
triggerProps = _objectWithoutProperties(
|
|
257
|
+
target: function target(_ref4) {
|
|
258
|
+
var isOpen = _ref4.isOpen,
|
|
259
|
+
triggerProps = _objectWithoutProperties(_ref4, _excluded);
|
|
258
260
|
return /*#__PURE__*/React.createElement(PopupTrigger, _extends({}, triggerProps, {
|
|
259
261
|
filterType: filterType,
|
|
260
262
|
selectedOptions: selectedOptions,
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
/* trigger.tsx generated by @compiled/babel-plugin v0.26.1 */
|
|
2
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
|
-
import { ax, ix } from "@compiled/react/runtime";
|
|
4
2
|
import React, { forwardRef, useCallback } from 'react';
|
|
5
3
|
import styled from '@emotion/styled';
|
|
6
4
|
import { FormattedMessage } from 'react-intl-next';
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/* index.tsx generated by @compiled/babel-plugin v0.26.1 */
|
|
2
|
-
import { ax, ix } from "@compiled/react/runtime";
|
|
3
1
|
import React, { useMemo } from 'react';
|
|
4
2
|
import { Flex, xcss } from '@atlaskit/primitives';
|
|
5
3
|
import { extractValuesFromNonComplexJQL } from '../utils/extractValuesFromNonComplexJQL';
|
|
@@ -10,13 +8,15 @@ var basicFilterContainerStyles = xcss({
|
|
|
10
8
|
});
|
|
11
9
|
var BasicFilterContainer = function BasicFilterContainer(_ref) {
|
|
12
10
|
var jql = _ref.jql,
|
|
13
|
-
|
|
11
|
+
site = _ref.site,
|
|
14
12
|
onChange = _ref.onChange,
|
|
15
13
|
selections = _ref.selections,
|
|
16
14
|
isJQLHydrating = _ref.isJQLHydrating;
|
|
17
15
|
var extractedFilterValues = useMemo(function () {
|
|
18
16
|
return isJQLHydrating ? extractValuesFromNonComplexJQL(jql) : {};
|
|
19
17
|
}, [isJQLHydrating, jql]);
|
|
18
|
+
var _ref2 = site || {},
|
|
19
|
+
cloudId = _ref2.cloudId;
|
|
20
20
|
return /*#__PURE__*/React.createElement(Flex, {
|
|
21
21
|
xcss: basicFilterContainerStyles,
|
|
22
22
|
gap: "space.100",
|
|
@@ -25,7 +25,7 @@ var BasicFilterContainer = function BasicFilterContainer(_ref) {
|
|
|
25
25
|
var _extractedFilterValue;
|
|
26
26
|
var shouldShowHydrationLoader = isJQLHydrating && ((_extractedFilterValue = extractedFilterValues[filter]) === null || _extractedFilterValue === void 0 ? void 0 : _extractedFilterValue.length) > 0;
|
|
27
27
|
return /*#__PURE__*/React.createElement(AsyncPopupSelect, {
|
|
28
|
-
|
|
28
|
+
site: site,
|
|
29
29
|
filterType: filter,
|
|
30
30
|
key: filter,
|
|
31
31
|
selection: selections[filter] || [],
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
/* index.tsx generated by @compiled/babel-plugin v0.26.1 */
|
|
2
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
2
|
var _excluded = ["children"];
|
|
4
|
-
import { ax, ix } from "@compiled/react/runtime";
|
|
5
3
|
import React from 'react';
|
|
6
4
|
import { Flex, xcss } from '@atlaskit/primitives';
|
|
7
5
|
import { components } from '@atlaskit/select';
|
|
@@ -14,6 +14,15 @@ var getLozengeAppearance = function getLozengeAppearance(colorName) {
|
|
|
14
14
|
return appearanceMap[colorName];
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
|
+
var checkAndConvertToAbsoluteUrl = function checkAndConvertToAbsoluteUrl(url, siteUrl) {
|
|
18
|
+
if (!url) {
|
|
19
|
+
return '';
|
|
20
|
+
}
|
|
21
|
+
if (/^data:(.*)/.test(url) || /^http(.*)/.test(url) || !siteUrl) {
|
|
22
|
+
return url;
|
|
23
|
+
}
|
|
24
|
+
return "".concat(siteUrl).concat(url);
|
|
25
|
+
};
|
|
17
26
|
function mapNodeToOption(_ref) {
|
|
18
27
|
var displayName = _ref.displayName,
|
|
19
28
|
jqlTerm = _ref.jqlTerm,
|
|
@@ -21,7 +30,8 @@ function mapNodeToOption(_ref) {
|
|
|
21
30
|
issueTypes = _ref.issueTypes,
|
|
22
31
|
project = _ref.project,
|
|
23
32
|
statusCategory = _ref.statusCategory,
|
|
24
|
-
user = _ref.user
|
|
33
|
+
user = _ref.user,
|
|
34
|
+
siteUrl = _ref.siteUrl;
|
|
25
35
|
try {
|
|
26
36
|
var baseProps = {
|
|
27
37
|
label: displayName,
|
|
@@ -46,14 +56,14 @@ function mapNodeToOption(_ref) {
|
|
|
46
56
|
var _project$avatar;
|
|
47
57
|
return _objectSpread(_objectSpread({}, baseProps), {}, {
|
|
48
58
|
optionType: 'iconLabel',
|
|
49
|
-
icon: (_project$avatar = project.avatar) === null || _project$avatar === void 0 ? void 0 : _project$avatar.small
|
|
59
|
+
icon: checkAndConvertToAbsoluteUrl((_project$avatar = project.avatar) === null || _project$avatar === void 0 ? void 0 : _project$avatar.small, siteUrl)
|
|
50
60
|
});
|
|
51
61
|
}
|
|
52
62
|
if (issueTypes) {
|
|
53
63
|
var _issueTypes$;
|
|
54
64
|
return _objectSpread(_objectSpread({}, baseProps), {}, {
|
|
55
65
|
optionType: 'iconLabel',
|
|
56
|
-
icon: (_issueTypes$ = issueTypes[0]) === null || _issueTypes$ === void 0 ? void 0 : _issueTypes$.avatar.small
|
|
66
|
+
icon: checkAndConvertToAbsoluteUrl((_issueTypes$ = issueTypes[0]) === null || _issueTypes$ === void 0 ? void 0 : _issueTypes$.avatar.small, siteUrl)
|
|
57
67
|
});
|
|
58
68
|
}
|
|
59
69
|
if (statusCategory) {
|
|
@@ -92,9 +102,12 @@ export function mapHydrateResponseData(_ref2) {
|
|
|
92
102
|
}
|
|
93
103
|
export function mapFieldValuesToFilterOptions(_ref5) {
|
|
94
104
|
var _data$jira2;
|
|
95
|
-
var data = _ref5.data
|
|
105
|
+
var data = _ref5.data,
|
|
106
|
+
siteUrl = _ref5.siteUrl;
|
|
96
107
|
return (data === null || data === void 0 || (_data$jira2 = data.jira) === null || _data$jira2 === void 0 || (_data$jira2 = _data$jira2.jqlBuilder) === null || _data$jira2 === void 0 || (_data$jira2 = _data$jira2.fieldValues) === null || _data$jira2 === void 0 || (_data$jira2 = _data$jira2.edges) === null || _data$jira2 === void 0 ? void 0 : _data$jira2.map(function (edge) {
|
|
97
|
-
return edge.node ? mapNodeToOption(edge.node)
|
|
108
|
+
return edge.node ? mapNodeToOption(_objectSpread(_objectSpread({}, edge.node), {}, {
|
|
109
|
+
siteUrl: siteUrl
|
|
110
|
+
})) : null;
|
|
98
111
|
}).filter(isNonNullSelectOption)) || [];
|
|
99
112
|
}
|
|
100
113
|
export function mapFieldValuesToTotalCount(_ref6) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
1
2
|
import { useMemo } from 'react';
|
|
2
|
-
import { css } from '@emotion/react';
|
|
3
|
+
import { css, jsx } from '@emotion/react';
|
|
3
4
|
import { useIntl } from 'react-intl-next';
|
|
4
5
|
import { LoadingButton } from '@atlaskit/button';
|
|
5
6
|
import SearchIcon from '@atlaskit/icon/glyph/editor/search';
|
|
@@ -36,14 +37,14 @@ export var BasicSearchInput = function BasicSearchInput(_ref) {
|
|
|
36
37
|
}
|
|
37
38
|
return false;
|
|
38
39
|
}, []);
|
|
39
|
-
return
|
|
40
|
+
return jsx("form", {
|
|
40
41
|
css: showBasicFilters ? formWithMaxWidthStyles : formStyles,
|
|
41
42
|
onSubmit: handleFormSubmit
|
|
42
|
-
},
|
|
43
|
-
elemAfterInput:
|
|
43
|
+
}, jsx(Textfield, {
|
|
44
|
+
elemAfterInput: jsx(LoadingButton, {
|
|
44
45
|
appearance: "primary",
|
|
45
46
|
css: searchButtonStyles,
|
|
46
|
-
iconBefore:
|
|
47
|
+
iconBefore: jsx(SearchIcon, {
|
|
47
48
|
label: formatMessage(basicSearchInputMessages.basicTextSearchLabel),
|
|
48
49
|
size: "medium"
|
|
49
50
|
}),
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
|
|
1
3
|
import { useMemo } from 'react';
|
|
2
|
-
import { css } from '@emotion/react';
|
|
4
|
+
import { css, jsx } from '@emotion/react';
|
|
3
5
|
import { FormattedMessage } from 'react-intl-next';
|
|
4
6
|
import Lozenge from '@atlaskit/lozenge';
|
|
5
7
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
@@ -53,22 +55,22 @@ export var InitialStateView = function InitialStateView(_ref) {
|
|
|
53
55
|
}
|
|
54
56
|
return false;
|
|
55
57
|
}, []);
|
|
56
|
-
return
|
|
58
|
+
return jsx("div", {
|
|
57
59
|
css: initialStateViewContainerStyles,
|
|
58
60
|
"data-testid": "jlol-datasource-modal--initial-state-view"
|
|
59
|
-
},
|
|
61
|
+
}, jsx("div", {
|
|
60
62
|
css: svgAndTextsWrapperStyles
|
|
61
|
-
},
|
|
63
|
+
}, jsx(InitialStateSVG, null), jsx("div", {
|
|
62
64
|
css: searchTitleStyles
|
|
63
|
-
}, !showBasicFilters &&
|
|
65
|
+
}, !showBasicFilters && jsx("div", {
|
|
64
66
|
css: betaTagStyles
|
|
65
|
-
},
|
|
67
|
+
}, jsx(Lozenge, {
|
|
66
68
|
appearance: "new"
|
|
67
|
-
},
|
|
69
|
+
}, jsx(FormattedMessage, initialStateViewMessages.beta))), jsx(FormattedMessage, initialStateViewMessages.searchTitle)), jsx("div", {
|
|
68
70
|
css: mainTextStyles
|
|
69
|
-
},
|
|
71
|
+
}, jsx(FormattedMessage, methodToDescriptionMessage[searchMethod])), searchMethod === 'jql' ? jsx("a", {
|
|
70
72
|
href: jqlSupportDocumentLink,
|
|
71
73
|
target: "_blank",
|
|
72
74
|
css: learnMoreLinkStyles
|
|
73
|
-
},
|
|
75
|
+
}, jsx(FormattedMessage, initialStateViewMessages.learnMoreLink)) : null));
|
|
74
76
|
};
|