@atlaskit/link-datasource 4.7.1 → 4.8.0
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/ui/assets-modal/modal/render-assets-content/initial-state-view/index.js +2 -3
- package/dist/cjs/ui/common/error-state/access-required.js +8 -16
- package/dist/cjs/ui/common/error-state/loading-error.js +2 -3
- package/dist/cjs/ui/common/error-state/modal-loading-error.js +2 -3
- package/dist/cjs/ui/common/error-state/no-results.js +6 -263
- package/dist/cjs/ui/common/modal/popup-select/menu-list/errorMessage.js +6 -23
- package/dist/cjs/ui/common/modal/popup-select/menu-list/noOptionsMessage.js +6 -19
- package/dist/cjs/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.js +1 -2
- package/dist/cjs/ui/confluence-search-modal/modal/index.js +4 -12
- package/dist/cjs/ui/jira-issues-modal/modal/index.js +8 -16
- package/dist/es2019/ui/assets-modal/modal/render-assets-content/initial-state-view/index.js +2 -3
- package/dist/es2019/ui/common/error-state/access-required.js +3 -9
- package/dist/es2019/ui/common/error-state/loading-error.js +2 -3
- package/dist/es2019/ui/common/error-state/modal-loading-error.js +2 -3
- package/dist/es2019/ui/common/error-state/no-results.js +5 -260
- package/dist/es2019/ui/common/modal/popup-select/menu-list/errorMessage.js +4 -19
- package/dist/es2019/ui/common/modal/popup-select/menu-list/noOptionsMessage.js +5 -16
- package/dist/es2019/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.js +1 -2
- package/dist/es2019/ui/confluence-search-modal/modal/index.js +3 -9
- package/dist/es2019/ui/jira-issues-modal/modal/index.js +3 -9
- package/dist/esm/ui/assets-modal/modal/render-assets-content/initial-state-view/index.js +2 -3
- package/dist/esm/ui/common/error-state/access-required.js +8 -16
- package/dist/esm/ui/common/error-state/loading-error.js +2 -3
- package/dist/esm/ui/common/error-state/modal-loading-error.js +2 -3
- package/dist/esm/ui/common/error-state/no-results.js +6 -263
- package/dist/esm/ui/common/modal/popup-select/menu-list/errorMessage.js +5 -22
- package/dist/esm/ui/common/modal/popup-select/menu-list/noOptionsMessage.js +6 -19
- package/dist/esm/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.js +1 -2
- package/dist/esm/ui/confluence-search-modal/modal/index.js +4 -12
- package/dist/esm/ui/jira-issues-modal/modal/index.js +8 -16
- package/package.json +2 -5
- package/dist/cjs/ui/assets-modal/modal/render-assets-content/initial-state-view/assets/crystal-ball-svg-old.js +0 -528
- package/dist/cjs/ui/common/error-state/access-required-svg.js +0 -85
- package/dist/cjs/ui/common/error-state/loading-error-svg-old.js +0 -87
- package/dist/cjs/ui/confluence-search-modal/modal/confluence-search-initial-state-svg-old.js +0 -155
- package/dist/cjs/ui/issue-like-table/empty-state/priority-old.js +0 -33
- package/dist/cjs/ui/jira-issues-modal/modal/jira-issues-initial-state-svg.js +0 -240
- package/dist/es2019/ui/assets-modal/modal/render-assets-content/initial-state-view/assets/crystal-ball-svg-old.js +0 -520
- package/dist/es2019/ui/common/error-state/access-required-svg.js +0 -77
- package/dist/es2019/ui/common/error-state/loading-error-svg-old.js +0 -79
- package/dist/es2019/ui/confluence-search-modal/modal/confluence-search-initial-state-svg-old.js +0 -147
- package/dist/es2019/ui/issue-like-table/empty-state/priority-old.js +0 -37
- package/dist/es2019/ui/jira-issues-modal/modal/jira-issues-initial-state-svg.js +0 -231
- package/dist/esm/ui/assets-modal/modal/render-assets-content/initial-state-view/assets/crystal-ball-svg-old.js +0 -522
- package/dist/esm/ui/common/error-state/access-required-svg.js +0 -79
- package/dist/esm/ui/common/error-state/loading-error-svg-old.js +0 -81
- package/dist/esm/ui/confluence-search-modal/modal/confluence-search-initial-state-svg-old.js +0 -149
- package/dist/esm/ui/issue-like-table/empty-state/priority-old.js +0 -25
- package/dist/esm/ui/jira-issues-modal/modal/jira-issues-initial-state-svg.js +0 -233
- package/dist/types/ui/assets-modal/modal/render-assets-content/initial-state-view/assets/crystal-ball-svg-old.d.ts +0 -2
- package/dist/types/ui/common/error-state/access-required-svg.d.ts +0 -2
- package/dist/types/ui/common/error-state/loading-error-svg-old.d.ts +0 -2
- package/dist/types/ui/confluence-search-modal/modal/confluence-search-initial-state-svg-old.d.ts +0 -2
- package/dist/types/ui/issue-like-table/empty-state/priority-old.d.ts +0 -11
- package/dist/types/ui/jira-issues-modal/modal/jira-issues-initial-state-svg.d.ts +0 -2
- package/dist/types-ts4.5/ui/assets-modal/modal/render-assets-content/initial-state-view/assets/crystal-ball-svg-old.d.ts +0 -2
- package/dist/types-ts4.5/ui/common/error-state/access-required-svg.d.ts +0 -2
- package/dist/types-ts4.5/ui/common/error-state/loading-error-svg-old.d.ts +0 -2
- package/dist/types-ts4.5/ui/confluence-search-modal/modal/confluence-search-initial-state-svg-old.d.ts +0 -2
- package/dist/types-ts4.5/ui/issue-like-table/empty-state/priority-old.d.ts +0 -11
- package/dist/types-ts4.5/ui/jira-issues-modal/modal/jira-issues-initial-state-svg.d.ts +0 -2
|
@@ -2,12 +2,9 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
2
2
|
import React, { useEffect } from 'react';
|
|
3
3
|
import { useIntl } from 'react-intl-next';
|
|
4
4
|
import { useDebouncedCallback } from 'use-debounce';
|
|
5
|
-
import ErrorIcon from '@atlaskit/icon/glyph/error';
|
|
6
5
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
|
-
import { N500 } from '@atlaskit/theme/colors';
|
|
8
6
|
import { useDatasourceAnalyticsEvents } from '../../../../../analytics';
|
|
9
7
|
import { SpotError } from '../../../../../common/ui/spot/error-state/error';
|
|
10
|
-
import { SpotErrorOld } from '../../../../../common/ui/spot/error-state/error-old';
|
|
11
8
|
import { SEARCH_DEBOUNCE_MS } from '../constants';
|
|
12
9
|
import { asyncPopupSelectMessages } from './messages';
|
|
13
10
|
import CustomSelectMessage from './selectMessage';
|
|
@@ -23,9 +20,6 @@ var getErrorReasonType = function getErrorReasonType(errors) {
|
|
|
23
20
|
}
|
|
24
21
|
return 'unknown';
|
|
25
22
|
};
|
|
26
|
-
var noop = function noop() {
|
|
27
|
-
return '';
|
|
28
|
-
};
|
|
29
23
|
var CustomErrorMessage = function CustomErrorMessage(_ref3) {
|
|
30
24
|
var filterName = _ref3.filterName,
|
|
31
25
|
errors = _ref3.errors;
|
|
@@ -45,24 +39,13 @@ var CustomErrorMessage = function CustomErrorMessage(_ref3) {
|
|
|
45
39
|
_useDebouncedCallback2 = _slicedToArray(_useDebouncedCallback, 1),
|
|
46
40
|
debouncedAnalyticsCallback = _useDebouncedCallback2[0];
|
|
47
41
|
useEffect(debouncedAnalyticsCallback, [debouncedAnalyticsCallback]);
|
|
48
|
-
var
|
|
49
|
-
|
|
50
|
-
useIntl() : {
|
|
51
|
-
formatMessage: noop
|
|
52
|
-
},
|
|
53
|
-
formatMessage = _ref4.formatMessage;
|
|
42
|
+
var _useIntl = useIntl(),
|
|
43
|
+
formatMessage = _useIntl.formatMessage;
|
|
54
44
|
return /*#__PURE__*/React.createElement(CustomSelectMessage, {
|
|
55
|
-
icon:
|
|
56
|
-
size: "large",
|
|
57
|
-
alt: formatMessage(asyncPopupSelectMessages.errorMessage)
|
|
58
|
-
}) : fg('bandicoots-update-sllv-icons') ? /*#__PURE__*/React.createElement(SpotErrorOld, {
|
|
45
|
+
icon: /*#__PURE__*/React.createElement(SpotError, {
|
|
59
46
|
size: 'medium',
|
|
60
|
-
alt: formatMessage(asyncPopupSelectMessages.
|
|
61
|
-
})
|
|
62
|
-
primaryColor: "var(--ds-icon, ".concat(N500, ")"),
|
|
63
|
-
label: "",
|
|
64
|
-
size: "xlarge"
|
|
65
|
-
})),
|
|
47
|
+
alt: formatMessage(asyncPopupSelectMessages.errorMessage)
|
|
48
|
+
}),
|
|
66
49
|
message: fg('platform-linking-visual-refresh-sllv') ? asyncPopupSelectMessages.errorMessage : asyncPopupSelectMessages.errorMessageOld,
|
|
67
50
|
description: fg('platform-linking-visual-refresh-sllv') ? asyncPopupSelectMessages.errorDescription : undefined,
|
|
68
51
|
testId: "".concat(filterName, "--error-message")
|
|
@@ -2,17 +2,12 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
2
2
|
import React, { useEffect } from 'react';
|
|
3
3
|
import { useIntl } from 'react-intl-next';
|
|
4
4
|
import { useDebouncedCallback } from 'use-debounce';
|
|
5
|
-
import QuestionCircleIcon from '@atlaskit/icon/glyph/question-circle';
|
|
6
5
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
|
-
import { N500 } from '@atlaskit/theme/colors';
|
|
8
6
|
import { useDatasourceAnalyticsEvents } from '../../../../../analytics';
|
|
9
7
|
import { SpotSearchNoResult } from '../../../../../common/ui/spot/error-state/search-no-result';
|
|
10
8
|
import { SEARCH_DEBOUNCE_MS } from '../constants';
|
|
11
9
|
import { asyncPopupSelectMessages } from './messages';
|
|
12
10
|
import CustomSelectMessage from './selectMessage';
|
|
13
|
-
var noop = function noop() {
|
|
14
|
-
return '';
|
|
15
|
-
};
|
|
16
11
|
var CustomNoOptionsMessage = function CustomNoOptionsMessage(_ref) {
|
|
17
12
|
var filterName = _ref.filterName;
|
|
18
13
|
var _useDatasourceAnalyti = useDatasourceAnalyticsEvents(),
|
|
@@ -32,21 +27,13 @@ var CustomNoOptionsMessage = function CustomNoOptionsMessage(_ref) {
|
|
|
32
27
|
_useDebouncedCallback2 = _slicedToArray(_useDebouncedCallback, 1),
|
|
33
28
|
debouncedAnalyticsCallback = _useDebouncedCallback2[0];
|
|
34
29
|
useEffect(debouncedAnalyticsCallback, [debouncedAnalyticsCallback]);
|
|
35
|
-
var
|
|
36
|
-
|
|
37
|
-
useIntl() : {
|
|
38
|
-
formatMessage: noop
|
|
39
|
-
},
|
|
40
|
-
formatMessage = _ref2.formatMessage;
|
|
30
|
+
var _useIntl = useIntl(),
|
|
31
|
+
formatMessage = _useIntl.formatMessage;
|
|
41
32
|
return /*#__PURE__*/React.createElement(CustomSelectMessage, {
|
|
42
|
-
icon:
|
|
43
|
-
size:
|
|
44
|
-
alt: formatMessage(
|
|
45
|
-
})
|
|
46
|
-
primaryColor: "var(--ds-icon, ".concat(N500, ")"),
|
|
47
|
-
size: "xlarge",
|
|
48
|
-
label: ""
|
|
49
|
-
})),
|
|
33
|
+
icon: /*#__PURE__*/React.createElement(SpotSearchNoResult, {
|
|
34
|
+
size: 'medium',
|
|
35
|
+
alt: formatMessage(asyncPopupSelectMessages.noOptionsMessage)
|
|
36
|
+
}),
|
|
50
37
|
message: fg('platform-linking-visual-refresh-sllv') ? asyncPopupSelectMessages.noOptionsMessage : asyncPopupSelectMessages.noOptionsMessageOld,
|
|
51
38
|
description: fg('platform-linking-visual-refresh-sllv') ? asyncPopupSelectMessages.noOptionsDescription : undefined,
|
|
52
39
|
testId: "".concat(filterName, "--no-options-message")
|
package/dist/esm/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.js
CHANGED
|
@@ -17,7 +17,6 @@ import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
|
|
17
17
|
import { FormattedMessage, useIntl } from 'react-intl-next';
|
|
18
18
|
import { DatePicker } from '@atlaskit/datetime-picker';
|
|
19
19
|
import ErrorIcon from '@atlaskit/icon/utility/migration/error';
|
|
20
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
21
20
|
import Popup from '@atlaskit/popup';
|
|
22
21
|
import { N0, N20, N30, R400 } from '@atlaskit/theme/colors';
|
|
23
22
|
import { layers } from '@atlaskit/theme/constants';
|
|
@@ -245,7 +244,7 @@ export var DateRangePicker = function DateRangePicker(_ref6) {
|
|
|
245
244
|
})), invalidDateRange && /*#__PURE__*/React.createElement(DateRangeErrorMessage, null, /*#__PURE__*/React.createElement(ErrorIcon, {
|
|
246
245
|
LEGACY_size: "small",
|
|
247
246
|
color: "var(--ds-icon-danger, ".concat(R400, ")"),
|
|
248
|
-
label:
|
|
247
|
+
label: formatMessage(dateRangeMessages.dateRangeError),
|
|
249
248
|
LEGACY_margin: "0 ".concat("var(--ds-space-negative-025, -2px)")
|
|
250
249
|
}), invalidDateRange), /*#__PURE__*/React.createElement(SelectDateRangeButton, {
|
|
251
250
|
"data-testId": "custom-date-range-update-button",
|
|
@@ -40,7 +40,6 @@ import TableSearchCount from '../../common/modal/search-count';
|
|
|
40
40
|
import { SiteSelector } from '../../common/modal/site-selector';
|
|
41
41
|
import { EmptyState } from '../../issue-like-table';
|
|
42
42
|
import ConfluenceSearchContainer from '../confluence-search-container';
|
|
43
|
-
import { ConfluenceSearchInitialStateSVGOld } from './confluence-search-initial-state-svg-old';
|
|
44
43
|
import { confluenceSearchModalMessages } from './messages';
|
|
45
44
|
var styles = {
|
|
46
45
|
inputContainerStyles: "_4cvr1q9y _1e0c1txw _1tket9kd"
|
|
@@ -50,21 +49,14 @@ var isValidParameters = function isValidParameters(parameters) {
|
|
|
50
49
|
return v !== undefined;
|
|
51
50
|
}).length > 1);
|
|
52
51
|
};
|
|
53
|
-
var noop = function noop() {
|
|
54
|
-
return '';
|
|
55
|
-
};
|
|
56
52
|
export var PlainConfluenceSearchConfigModal = function PlainConfluenceSearchConfigModal(props) {
|
|
57
53
|
var onCancel = props.onCancel,
|
|
58
54
|
urlBeingEdited = props.url,
|
|
59
55
|
overrideParameters = props.overrideParameters;
|
|
60
56
|
var _useViewModeContext = useViewModeContext(),
|
|
61
57
|
currentViewMode = _useViewModeContext.currentViewMode;
|
|
62
|
-
var
|
|
63
|
-
|
|
64
|
-
useIntl() : {
|
|
65
|
-
formatMessage: noop
|
|
66
|
-
},
|
|
67
|
-
formatMessage = _ref.formatMessage;
|
|
58
|
+
var _useIntl = useIntl(),
|
|
59
|
+
formatMessage = _useIntl.formatMessage;
|
|
68
60
|
var _useDatasourceContext = useDatasourceContext(),
|
|
69
61
|
visibleColumnKeys = _useDatasourceContext.visibleColumnKeys,
|
|
70
62
|
_useDatasourceContext2 = _useDatasourceContext.tableState,
|
|
@@ -247,10 +239,10 @@ export var PlainConfluenceSearchConfigModal = function PlainConfluenceSearchConf
|
|
|
247
239
|
});
|
|
248
240
|
}
|
|
249
241
|
return /*#__PURE__*/React.createElement(ContentContainer, null, /*#__PURE__*/React.createElement(InitialStateView, {
|
|
250
|
-
icon:
|
|
242
|
+
icon: /*#__PURE__*/React.createElement(RichIconSearch, {
|
|
251
243
|
size: "xlarge",
|
|
252
244
|
alt: formatMessage(confluenceSearchModalMessages.initialViewSearchTitle)
|
|
253
|
-
})
|
|
245
|
+
}),
|
|
254
246
|
title: confluenceSearchModalMessages.initialViewSearchTitle,
|
|
255
247
|
description: confluenceSearchModalMessages.initialViewSearchDescription
|
|
256
248
|
}));
|
|
@@ -48,11 +48,7 @@ import { EmptyState } from '../../issue-like-table';
|
|
|
48
48
|
import { availableBasicFilterTypes } from '../basic-filters/ui';
|
|
49
49
|
import { isQueryTooComplex } from '../basic-filters/utils/isQueryTooComplex';
|
|
50
50
|
import { JiraSearchContainer } from '../jira-search-container';
|
|
51
|
-
import { JiraInitialStateSVG } from './jira-issues-initial-state-svg';
|
|
52
51
|
import { modalMessages } from './messages';
|
|
53
|
-
var noop = function noop() {
|
|
54
|
-
return '';
|
|
55
|
-
};
|
|
56
52
|
var getDisplayValue = function getDisplayValue(currentViewMode, itemCount) {
|
|
57
53
|
if (currentViewMode === 'table') {
|
|
58
54
|
return DatasourceDisplay.DATASOURCE_TABLE;
|
|
@@ -110,12 +106,8 @@ var PlainJiraIssuesConfigModal = function PlainJiraIssuesConfigModal(props) {
|
|
|
110
106
|
var _useDatasourceAnalyti = useDatasourceAnalyticsEvents(),
|
|
111
107
|
fireEvent = _useDatasourceAnalyti.fireEvent;
|
|
112
108
|
var experienceId = useDatasourceExperienceId();
|
|
113
|
-
var
|
|
114
|
-
|
|
115
|
-
useIntl() : {
|
|
116
|
-
formatMessage: noop
|
|
117
|
-
},
|
|
118
|
-
formatMessage = _ref2.formatMessage;
|
|
109
|
+
var _useIntl = useIntl(),
|
|
110
|
+
formatMessage = _useIntl.formatMessage;
|
|
119
111
|
var analyticsPayload = useMemo(function () {
|
|
120
112
|
return {
|
|
121
113
|
extensionKey: extensionKey,
|
|
@@ -209,10 +201,10 @@ var PlainJiraIssuesConfigModal = function PlainJiraIssuesConfigModal(props) {
|
|
|
209
201
|
}
|
|
210
202
|
}, [currentViewMode, status, fireIssueViewAnalytics, fireCountViewedEvent]);
|
|
211
203
|
useColumnPickerRenderedFailedUfoExperience(status, experienceId);
|
|
212
|
-
var onSearch = useCallback(function (newParameters,
|
|
213
|
-
var searchMethod =
|
|
214
|
-
basicFilterSelections =
|
|
215
|
-
isQueryComplex =
|
|
204
|
+
var onSearch = useCallback(function (newParameters, _ref2) {
|
|
205
|
+
var searchMethod = _ref2.searchMethod,
|
|
206
|
+
basicFilterSelections = _ref2.basicFilterSelections,
|
|
207
|
+
isQueryComplex = _ref2.isQueryComplex;
|
|
216
208
|
searchCount.current++;
|
|
217
209
|
searchMethodSearchedWith.current = searchMethod;
|
|
218
210
|
basicFilterSelectionsSearchedWith.current = basicFilterSelections;
|
|
@@ -323,10 +315,10 @@ var PlainJiraIssuesConfigModal = function PlainJiraIssuesConfigModal(props) {
|
|
|
323
315
|
}, !!jql ? /*#__PURE__*/React.createElement(EmptyState, {
|
|
324
316
|
testId: "jira-datasource-modal--empty-state"
|
|
325
317
|
}) : /*#__PURE__*/React.createElement(InitialStateView, {
|
|
326
|
-
icon:
|
|
318
|
+
icon: /*#__PURE__*/React.createElement(RichIconSearch, {
|
|
327
319
|
alt: formatMessage(fg('confluence-issue-terminology-refresh') ? modalMessages.searchJiraTitleIssueTermRefresh : modalMessages.searchJiraTitle),
|
|
328
320
|
size: 'xlarge'
|
|
329
|
-
})
|
|
321
|
+
}),
|
|
330
322
|
title: fg('confluence-issue-terminology-refresh') ? modalMessages.searchJiraTitleIssueTermRefresh : modalMessages.searchJiraTitle,
|
|
331
323
|
description: getDescriptionMessage(),
|
|
332
324
|
learnMoreLink: currentSearchMethod === 'jql' ? {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-datasource",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.8.0",
|
|
4
4
|
"description": "UI Components to support linking platform dataset feature",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@atlaskit/link": "^3.1.0",
|
|
65
65
|
"@atlaskit/link-client-extension": "^4.0.0",
|
|
66
66
|
"@atlaskit/linking-common": "^8.0.0",
|
|
67
|
-
"@atlaskit/linking-types": "^9.
|
|
67
|
+
"@atlaskit/linking-types": "^9.10.0",
|
|
68
68
|
"@atlaskit/logo": "^16.0.0",
|
|
69
69
|
"@atlaskit/lozenge": "^12.2.0",
|
|
70
70
|
"@atlaskit/modal-dialog": "^14.1.0",
|
|
@@ -176,9 +176,6 @@
|
|
|
176
176
|
"confluence-issue-terminology-refresh": {
|
|
177
177
|
"type": "boolean"
|
|
178
178
|
},
|
|
179
|
-
"bandicoots-update-sllv-icons": {
|
|
180
|
-
"type": "boolean"
|
|
181
|
-
},
|
|
182
179
|
"platform-component-visual-refresh": {
|
|
183
180
|
"type": "boolean"
|
|
184
181
|
},
|