@atlaskit/link-datasource 1.19.23 → 1.19.24
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 +6 -0
- package/dist/cjs/analytics/constants.js +1 -1
- package/dist/cjs/ui/datasource-table-view/datasourceTableView.js +33 -30
- package/dist/cjs/ui/jira-issues-modal/initial-state-view/messages.js +2 -2
- package/dist/cjs/ui/jira-issues-modal/modal/index.js +8 -2
- package/dist/es2019/analytics/constants.js +1 -1
- package/dist/es2019/ui/datasource-table-view/datasourceTableView.js +33 -30
- package/dist/es2019/ui/jira-issues-modal/initial-state-view/messages.js +2 -2
- package/dist/es2019/ui/jira-issues-modal/modal/index.js +8 -2
- package/dist/esm/analytics/constants.js +1 -1
- package/dist/esm/ui/datasource-table-view/datasourceTableView.js +33 -30
- package/dist/esm/ui/jira-issues-modal/initial-state-view/messages.js +2 -2
- package/dist/esm/ui/jira-issues-modal/modal/index.js +8 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/link-datasource
|
|
2
2
|
|
|
3
|
+
## 1.19.24
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#57192](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/57192) [`cb7776f514cb`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cb7776f514cb) - Fix issue like table and assets editor plugin card not translated issue
|
|
8
|
+
|
|
3
9
|
## 1.19.23
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -7,5 +7,5 @@ exports.packageMetaData = exports.EVENT_CHANNEL = void 0;
|
|
|
7
7
|
var EVENT_CHANNEL = exports.EVENT_CHANNEL = 'media';
|
|
8
8
|
var packageMetaData = exports.packageMetaData = {
|
|
9
9
|
packageName: "@atlaskit/link-datasource",
|
|
10
|
-
packageVersion: "1.19.
|
|
10
|
+
packageVersion: "1.19.24"
|
|
11
11
|
};
|
|
@@ -9,12 +9,15 @@ var _react = require("react");
|
|
|
9
9
|
var _react2 = require("@emotion/react");
|
|
10
10
|
var _uuid = require("uuid");
|
|
11
11
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
12
|
+
var _intlMessagesProvider = require("@atlaskit/intl-messages-provider");
|
|
12
13
|
var _analytics = require("../../analytics");
|
|
13
14
|
var _constants = require("../../analytics/constants");
|
|
14
15
|
var _ufoExperiences = require("../../analytics/ufoExperiences");
|
|
15
16
|
var _useColumnPickerRenderedFailedUfoExperience = require("../../analytics/ufoExperiences/hooks/useColumnPickerRenderedFailedUfoExperience");
|
|
16
17
|
var _useDataRenderedUfoExperience = require("../../analytics/ufoExperiences/hooks/useDataRenderedUfoExperience");
|
|
18
|
+
var _fetchMessagesForLocale = require("../../common/utils/locale/fetch-messages-for-locale");
|
|
17
19
|
var _useDatasourceTableState = require("../../hooks/useDatasourceTableState");
|
|
20
|
+
var _en = _interopRequireDefault(require("../../i18n/en"));
|
|
18
21
|
var _styled = require("../../ui/issue-like-table/styled");
|
|
19
22
|
var _accessRequired = require("../common/error-state/access-required");
|
|
20
23
|
var _loadingError = require("../common/error-state/loading-error");
|
|
@@ -128,35 +131,35 @@ var DatasourceTableViewWithoutAnalytics = function DatasourceTableViewWithoutAna
|
|
|
128
131
|
onRefresh: reset
|
|
129
132
|
});
|
|
130
133
|
}
|
|
131
|
-
return (
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
);
|
|
134
|
+
return (0, _react2.jsx)(_intlMessagesProvider.IntlMessagesProvider, {
|
|
135
|
+
defaultMessages: _en.default,
|
|
136
|
+
loaderFn: _fetchMessagesForLocale.fetchMessagesForLocale
|
|
137
|
+
}, (0, _react2.jsx)("div", {
|
|
138
|
+
css: containerStyles,
|
|
139
|
+
className: "datasource-table"
|
|
140
|
+
}, hasColumns ? (0, _react2.jsx)(_issueLikeTable.IssueLikeDataTableView, {
|
|
141
|
+
testId: 'datasource-table-view',
|
|
142
|
+
hasNextPage: hasNextPage,
|
|
143
|
+
items: responseItems,
|
|
144
|
+
onNextPage: onNextPage,
|
|
145
|
+
onLoadDatasourceDetails: loadDatasourceDetails,
|
|
146
|
+
status: status,
|
|
147
|
+
columns: columns,
|
|
148
|
+
visibleColumnKeys: visibleColumnKeys || defaultVisibleColumnKeys,
|
|
149
|
+
onVisibleColumnKeysChange: onVisibleColumnKeysChange,
|
|
150
|
+
columnCustomSizes: columnCustomSizes,
|
|
151
|
+
onColumnResize: onColumnResize,
|
|
152
|
+
scrollableContainerHeight: _styled.ScrollableContainerHeight,
|
|
153
|
+
parentContainerRenderInstanceId: tableRenderInstanceId,
|
|
154
|
+
extensionKey: extensionKey
|
|
155
|
+
}) : (0, _react2.jsx)(_emptyState.default, {
|
|
156
|
+
testId: "datasource-table-view-skeleton",
|
|
157
|
+
isCompact: true
|
|
158
|
+
}), (0, _react2.jsx)(_tableFooter.TableFooter, {
|
|
159
|
+
itemCount: isDataReady ? totalCount : undefined,
|
|
160
|
+
onRefresh: forcedReset,
|
|
161
|
+
isLoading: !isDataReady || status === 'loading',
|
|
162
|
+
url: url
|
|
163
|
+
})));
|
|
161
164
|
};
|
|
162
165
|
var DatasourceTableView = exports.DatasourceTableView = (0, _analyticsNext.withAnalyticsContext)(_constants.packageMetaData)(DatasourceTableViewWithoutAnalytics);
|
|
@@ -17,12 +17,12 @@ var initialStateViewMessages = exports.initialStateViewMessages = (0, _reactIntl
|
|
|
17
17
|
defaultMessage: 'Beta'
|
|
18
18
|
},
|
|
19
19
|
searchDescriptionForBasicSearch: {
|
|
20
|
-
id: 'linkDataSource.modal-initial-state.searchDescription',
|
|
20
|
+
id: 'linkDataSource.modal-initial-state.searchDescription-basic',
|
|
21
21
|
description: 'The initial modal search state helper message displayed under the search title when basic search mode is selected',
|
|
22
22
|
defaultMessage: 'Search by keyword for issues to insert.'
|
|
23
23
|
},
|
|
24
24
|
searchDescriptionForJQLSearch: {
|
|
25
|
-
id: 'linkDataSource.modal-initial-state.searchDescription',
|
|
25
|
+
id: 'linkDataSource.modal-initial-state.searchDescription-jql',
|
|
26
26
|
description: 'The initial modal search state helper message displayed under the search title when JQL search mode is selected',
|
|
27
27
|
defaultMessage: 'Use JQL (Jira Query Language) to search for issues.'
|
|
28
28
|
},
|
|
@@ -18,6 +18,7 @@ var _reactIntlNext = require("react-intl-next");
|
|
|
18
18
|
var _uuid = require("uuid");
|
|
19
19
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
20
20
|
var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
|
|
21
|
+
var _intlMessagesProvider = require("@atlaskit/intl-messages-provider");
|
|
21
22
|
var _modalDialog = _interopRequireWildcard(require("@atlaskit/modal-dialog"));
|
|
22
23
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
23
24
|
var _linkUrl = _interopRequireDefault(require("@atlaskit/smart-card/link-url"));
|
|
@@ -29,7 +30,9 @@ var _ufoExperiences = require("../../../analytics/ufoExperiences");
|
|
|
29
30
|
var _useColumnPickerRenderedFailedUfoExperience = require("../../../analytics/ufoExperiences/hooks/useColumnPickerRenderedFailedUfoExperience");
|
|
30
31
|
var _useDataRenderedUfoExperience = require("../../../analytics/ufoExperiences/hooks/useDataRenderedUfoExperience");
|
|
31
32
|
var _utils = require("../../../analytics/utils");
|
|
33
|
+
var _fetchMessagesForLocale = require("../../../common/utils/locale/fetch-messages-for-locale");
|
|
32
34
|
var _useDatasourceTableState = require("../../../hooks/useDatasourceTableState");
|
|
35
|
+
var _en = _interopRequireDefault(require("../../../i18n/en"));
|
|
33
36
|
var _getAvailableJiraSites = require("../../../services/getAvailableJiraSites");
|
|
34
37
|
var _accessRequired = require("../../common/error-state/access-required");
|
|
35
38
|
var _modalLoadingError = require("../../common/error-state/modal-loading-error");
|
|
@@ -540,7 +543,10 @@ var PlainJiraIssuesConfigModal = exports.PlainJiraIssuesConfigModal = function P
|
|
|
540
543
|
}
|
|
541
544
|
return issueLikeDataTableView;
|
|
542
545
|
}, [columns.length, currentSearchMethod, issueLikeDataTableView, jql, jqlUrl, resolvedWithNoResults, responseItems.length, retrieveUrlForSmartCardRender, selectedJiraSite === null || selectedJiraSite === void 0 ? void 0 : selectedJiraSite.url, status, urlBeingEdited]);
|
|
543
|
-
return (0, _react2.jsx)(
|
|
546
|
+
return (0, _react2.jsx)(_intlMessagesProvider.IntlMessagesProvider, {
|
|
547
|
+
defaultMessages: _en.default,
|
|
548
|
+
loaderFn: _fetchMessagesForLocale.fetchMessagesForLocale
|
|
549
|
+
}, (0, _react2.jsx)(_modalDialog.ModalTransition, null, (0, _react2.jsx)(_modalDialog.default, {
|
|
544
550
|
testId: "jira-jql-datasource-modal",
|
|
545
551
|
onClose: onCancel,
|
|
546
552
|
width: "calc(100% - 80px)",
|
|
@@ -596,7 +602,7 @@ var PlainJiraIssuesConfigModal = exports.PlainJiraIssuesConfigModal = function P
|
|
|
596
602
|
onClick: onInsertPressed,
|
|
597
603
|
isDisabled: isInsertDisabled,
|
|
598
604
|
testId: "jira-jql-datasource-modal--insert-button"
|
|
599
|
-
}, (0, _react2.jsx)(_reactIntlNext.FormattedMessage, _messages.modalMessages.insertIssuesButtonText)))));
|
|
605
|
+
}, (0, _react2.jsx)(_reactIntlNext.FormattedMessage, _messages.modalMessages.insertIssuesButtonText))))));
|
|
600
606
|
};
|
|
601
607
|
var analyticsContextAttributes = {
|
|
602
608
|
dataProvider: 'jira-issues'
|
|
@@ -3,12 +3,15 @@ import { useCallback, useEffect, useRef } from 'react';
|
|
|
3
3
|
import { css, jsx } from '@emotion/react';
|
|
4
4
|
import { v4 as uuidv4 } from 'uuid';
|
|
5
5
|
import { withAnalyticsContext } from '@atlaskit/analytics-next';
|
|
6
|
+
import { IntlMessagesProvider } from '@atlaskit/intl-messages-provider';
|
|
6
7
|
import { useDatasourceAnalyticsEvents } from '../../analytics';
|
|
7
8
|
import { packageMetaData } from '../../analytics/constants';
|
|
8
9
|
import { startUfoExperience } from '../../analytics/ufoExperiences';
|
|
9
10
|
import { useColumnPickerRenderedFailedUfoExperience } from '../../analytics/ufoExperiences/hooks/useColumnPickerRenderedFailedUfoExperience';
|
|
10
11
|
import { useDataRenderedUfoExperience } from '../../analytics/ufoExperiences/hooks/useDataRenderedUfoExperience';
|
|
12
|
+
import { fetchMessagesForLocale } from '../../common/utils/locale/fetch-messages-for-locale';
|
|
11
13
|
import { useDatasourceTableState } from '../../hooks/useDatasourceTableState';
|
|
14
|
+
import i18nEN from '../../i18n/en';
|
|
12
15
|
import { ScrollableContainerHeight } from '../../ui/issue-like-table/styled';
|
|
13
16
|
import { AccessRequired } from '../common/error-state/access-required';
|
|
14
17
|
import { LoadingError } from '../common/error-state/loading-error';
|
|
@@ -123,35 +126,35 @@ const DatasourceTableViewWithoutAnalytics = ({
|
|
|
123
126
|
onRefresh: reset
|
|
124
127
|
});
|
|
125
128
|
}
|
|
126
|
-
return (
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
);
|
|
129
|
+
return jsx(IntlMessagesProvider, {
|
|
130
|
+
defaultMessages: i18nEN,
|
|
131
|
+
loaderFn: fetchMessagesForLocale
|
|
132
|
+
}, jsx("div", {
|
|
133
|
+
css: containerStyles,
|
|
134
|
+
className: "datasource-table"
|
|
135
|
+
}, hasColumns ? jsx(IssueLikeDataTableView, {
|
|
136
|
+
testId: 'datasource-table-view',
|
|
137
|
+
hasNextPage: hasNextPage,
|
|
138
|
+
items: responseItems,
|
|
139
|
+
onNextPage: onNextPage,
|
|
140
|
+
onLoadDatasourceDetails: loadDatasourceDetails,
|
|
141
|
+
status: status,
|
|
142
|
+
columns: columns,
|
|
143
|
+
visibleColumnKeys: visibleColumnKeys || defaultVisibleColumnKeys,
|
|
144
|
+
onVisibleColumnKeysChange: onVisibleColumnKeysChange,
|
|
145
|
+
columnCustomSizes: columnCustomSizes,
|
|
146
|
+
onColumnResize: onColumnResize,
|
|
147
|
+
scrollableContainerHeight: ScrollableContainerHeight,
|
|
148
|
+
parentContainerRenderInstanceId: tableRenderInstanceId,
|
|
149
|
+
extensionKey: extensionKey
|
|
150
|
+
}) : jsx(EmptyState, {
|
|
151
|
+
testId: "datasource-table-view-skeleton",
|
|
152
|
+
isCompact: true
|
|
153
|
+
}), jsx(TableFooter, {
|
|
154
|
+
itemCount: isDataReady ? totalCount : undefined,
|
|
155
|
+
onRefresh: forcedReset,
|
|
156
|
+
isLoading: !isDataReady || status === 'loading',
|
|
157
|
+
url: url
|
|
158
|
+
})));
|
|
156
159
|
};
|
|
157
160
|
export const DatasourceTableView = withAnalyticsContext(packageMetaData)(DatasourceTableViewWithoutAnalytics);
|
|
@@ -11,12 +11,12 @@ export const initialStateViewMessages = defineMessages({
|
|
|
11
11
|
defaultMessage: 'Beta'
|
|
12
12
|
},
|
|
13
13
|
searchDescriptionForBasicSearch: {
|
|
14
|
-
id: 'linkDataSource.modal-initial-state.searchDescription',
|
|
14
|
+
id: 'linkDataSource.modal-initial-state.searchDescription-basic',
|
|
15
15
|
description: 'The initial modal search state helper message displayed under the search title when basic search mode is selected',
|
|
16
16
|
defaultMessage: 'Search by keyword for issues to insert.'
|
|
17
17
|
},
|
|
18
18
|
searchDescriptionForJQLSearch: {
|
|
19
|
-
id: 'linkDataSource.modal-initial-state.searchDescription',
|
|
19
|
+
id: 'linkDataSource.modal-initial-state.searchDescription-jql',
|
|
20
20
|
description: 'The initial modal search state helper message displayed under the search title when JQL search mode is selected',
|
|
21
21
|
defaultMessage: 'Use JQL (Jira Query Language) to search for issues.'
|
|
22
22
|
},
|
|
@@ -6,6 +6,7 @@ import { FormattedMessage, FormattedNumber, useIntl } from 'react-intl-next';
|
|
|
6
6
|
import { v4 as uuidv4 } from 'uuid';
|
|
7
7
|
import { withAnalyticsContext } from '@atlaskit/analytics-next';
|
|
8
8
|
import Button from '@atlaskit/button/standard-button';
|
|
9
|
+
import { IntlMessagesProvider } from '@atlaskit/intl-messages-provider';
|
|
9
10
|
import Modal, { ModalBody, ModalFooter, ModalHeader, ModalTitle, ModalTransition } from '@atlaskit/modal-dialog';
|
|
10
11
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
11
12
|
import LinkUrl from '@atlaskit/smart-card/link-url';
|
|
@@ -17,7 +18,9 @@ import { startUfoExperience } from '../../../analytics/ufoExperiences';
|
|
|
17
18
|
import { useColumnPickerRenderedFailedUfoExperience } from '../../../analytics/ufoExperiences/hooks/useColumnPickerRenderedFailedUfoExperience';
|
|
18
19
|
import { useDataRenderedUfoExperience } from '../../../analytics/ufoExperiences/hooks/useDataRenderedUfoExperience';
|
|
19
20
|
import { mapSearchMethod } from '../../../analytics/utils';
|
|
21
|
+
import { fetchMessagesForLocale } from '../../../common/utils/locale/fetch-messages-for-locale';
|
|
20
22
|
import { useDatasourceTableState } from '../../../hooks/useDatasourceTableState';
|
|
23
|
+
import i18nEN from '../../../i18n/en';
|
|
21
24
|
import { getAvailableJiraSites } from '../../../services/getAvailableJiraSites';
|
|
22
25
|
import { AccessRequired } from '../../common/error-state/access-required';
|
|
23
26
|
import { ModalLoadingError } from '../../common/error-state/modal-loading-error';
|
|
@@ -488,7 +491,10 @@ export const PlainJiraIssuesConfigModal = props => {
|
|
|
488
491
|
}
|
|
489
492
|
return issueLikeDataTableView;
|
|
490
493
|
}, [columns.length, currentSearchMethod, issueLikeDataTableView, jql, jqlUrl, resolvedWithNoResults, responseItems.length, retrieveUrlForSmartCardRender, selectedJiraSite === null || selectedJiraSite === void 0 ? void 0 : selectedJiraSite.url, status, urlBeingEdited]);
|
|
491
|
-
return jsx(
|
|
494
|
+
return jsx(IntlMessagesProvider, {
|
|
495
|
+
defaultMessages: i18nEN,
|
|
496
|
+
loaderFn: fetchMessagesForLocale
|
|
497
|
+
}, jsx(ModalTransition, null, jsx(Modal, {
|
|
492
498
|
testId: "jira-jql-datasource-modal",
|
|
493
499
|
onClose: onCancel,
|
|
494
500
|
width: "calc(100% - 80px)",
|
|
@@ -544,7 +550,7 @@ export const PlainJiraIssuesConfigModal = props => {
|
|
|
544
550
|
onClick: onInsertPressed,
|
|
545
551
|
isDisabled: isInsertDisabled,
|
|
546
552
|
testId: "jira-jql-datasource-modal--insert-button"
|
|
547
|
-
}, jsx(FormattedMessage, modalMessages.insertIssuesButtonText)))));
|
|
553
|
+
}, jsx(FormattedMessage, modalMessages.insertIssuesButtonText))))));
|
|
548
554
|
};
|
|
549
555
|
const analyticsContextAttributes = {
|
|
550
556
|
dataProvider: 'jira-issues'
|
|
@@ -3,12 +3,15 @@ import { useCallback, useEffect, useRef } from 'react';
|
|
|
3
3
|
import { css, jsx } from '@emotion/react';
|
|
4
4
|
import { v4 as uuidv4 } from 'uuid';
|
|
5
5
|
import { withAnalyticsContext } from '@atlaskit/analytics-next';
|
|
6
|
+
import { IntlMessagesProvider } from '@atlaskit/intl-messages-provider';
|
|
6
7
|
import { useDatasourceAnalyticsEvents } from '../../analytics';
|
|
7
8
|
import { packageMetaData } from '../../analytics/constants';
|
|
8
9
|
import { startUfoExperience } from '../../analytics/ufoExperiences';
|
|
9
10
|
import { useColumnPickerRenderedFailedUfoExperience } from '../../analytics/ufoExperiences/hooks/useColumnPickerRenderedFailedUfoExperience';
|
|
10
11
|
import { useDataRenderedUfoExperience } from '../../analytics/ufoExperiences/hooks/useDataRenderedUfoExperience';
|
|
12
|
+
import { fetchMessagesForLocale } from '../../common/utils/locale/fetch-messages-for-locale';
|
|
11
13
|
import { useDatasourceTableState } from '../../hooks/useDatasourceTableState';
|
|
14
|
+
import i18nEN from '../../i18n/en';
|
|
12
15
|
import { ScrollableContainerHeight } from '../../ui/issue-like-table/styled';
|
|
13
16
|
import { AccessRequired } from '../common/error-state/access-required';
|
|
14
17
|
import { LoadingError } from '../common/error-state/loading-error';
|
|
@@ -120,35 +123,35 @@ var DatasourceTableViewWithoutAnalytics = function DatasourceTableViewWithoutAna
|
|
|
120
123
|
onRefresh: reset
|
|
121
124
|
});
|
|
122
125
|
}
|
|
123
|
-
return (
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
);
|
|
126
|
+
return jsx(IntlMessagesProvider, {
|
|
127
|
+
defaultMessages: i18nEN,
|
|
128
|
+
loaderFn: fetchMessagesForLocale
|
|
129
|
+
}, jsx("div", {
|
|
130
|
+
css: containerStyles,
|
|
131
|
+
className: "datasource-table"
|
|
132
|
+
}, hasColumns ? jsx(IssueLikeDataTableView, {
|
|
133
|
+
testId: 'datasource-table-view',
|
|
134
|
+
hasNextPage: hasNextPage,
|
|
135
|
+
items: responseItems,
|
|
136
|
+
onNextPage: onNextPage,
|
|
137
|
+
onLoadDatasourceDetails: loadDatasourceDetails,
|
|
138
|
+
status: status,
|
|
139
|
+
columns: columns,
|
|
140
|
+
visibleColumnKeys: visibleColumnKeys || defaultVisibleColumnKeys,
|
|
141
|
+
onVisibleColumnKeysChange: onVisibleColumnKeysChange,
|
|
142
|
+
columnCustomSizes: columnCustomSizes,
|
|
143
|
+
onColumnResize: onColumnResize,
|
|
144
|
+
scrollableContainerHeight: ScrollableContainerHeight,
|
|
145
|
+
parentContainerRenderInstanceId: tableRenderInstanceId,
|
|
146
|
+
extensionKey: extensionKey
|
|
147
|
+
}) : jsx(EmptyState, {
|
|
148
|
+
testId: "datasource-table-view-skeleton",
|
|
149
|
+
isCompact: true
|
|
150
|
+
}), jsx(TableFooter, {
|
|
151
|
+
itemCount: isDataReady ? totalCount : undefined,
|
|
152
|
+
onRefresh: forcedReset,
|
|
153
|
+
isLoading: !isDataReady || status === 'loading',
|
|
154
|
+
url: url
|
|
155
|
+
})));
|
|
153
156
|
};
|
|
154
157
|
export var DatasourceTableView = withAnalyticsContext(packageMetaData)(DatasourceTableViewWithoutAnalytics);
|
|
@@ -11,12 +11,12 @@ export var initialStateViewMessages = defineMessages({
|
|
|
11
11
|
defaultMessage: 'Beta'
|
|
12
12
|
},
|
|
13
13
|
searchDescriptionForBasicSearch: {
|
|
14
|
-
id: 'linkDataSource.modal-initial-state.searchDescription',
|
|
14
|
+
id: 'linkDataSource.modal-initial-state.searchDescription-basic',
|
|
15
15
|
description: 'The initial modal search state helper message displayed under the search title when basic search mode is selected',
|
|
16
16
|
defaultMessage: 'Search by keyword for issues to insert.'
|
|
17
17
|
},
|
|
18
18
|
searchDescriptionForJQLSearch: {
|
|
19
|
-
id: 'linkDataSource.modal-initial-state.searchDescription',
|
|
19
|
+
id: 'linkDataSource.modal-initial-state.searchDescription-jql',
|
|
20
20
|
description: 'The initial modal search state helper message displayed under the search title when JQL search mode is selected',
|
|
21
21
|
defaultMessage: 'Use JQL (Jira Query Language) to search for issues.'
|
|
22
22
|
},
|
|
@@ -13,6 +13,7 @@ import { FormattedMessage, FormattedNumber, useIntl } from 'react-intl-next';
|
|
|
13
13
|
import { v4 as uuidv4 } from 'uuid';
|
|
14
14
|
import { withAnalyticsContext } from '@atlaskit/analytics-next';
|
|
15
15
|
import Button from '@atlaskit/button/standard-button';
|
|
16
|
+
import { IntlMessagesProvider } from '@atlaskit/intl-messages-provider';
|
|
16
17
|
import Modal, { ModalBody, ModalFooter, ModalHeader, ModalTitle, ModalTransition } from '@atlaskit/modal-dialog';
|
|
17
18
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
18
19
|
import LinkUrl from '@atlaskit/smart-card/link-url';
|
|
@@ -24,7 +25,9 @@ import { startUfoExperience } from '../../../analytics/ufoExperiences';
|
|
|
24
25
|
import { useColumnPickerRenderedFailedUfoExperience } from '../../../analytics/ufoExperiences/hooks/useColumnPickerRenderedFailedUfoExperience';
|
|
25
26
|
import { useDataRenderedUfoExperience } from '../../../analytics/ufoExperiences/hooks/useDataRenderedUfoExperience';
|
|
26
27
|
import { mapSearchMethod } from '../../../analytics/utils';
|
|
28
|
+
import { fetchMessagesForLocale } from '../../../common/utils/locale/fetch-messages-for-locale';
|
|
27
29
|
import { useDatasourceTableState } from '../../../hooks/useDatasourceTableState';
|
|
30
|
+
import i18nEN from '../../../i18n/en';
|
|
28
31
|
import { getAvailableJiraSites } from '../../../services/getAvailableJiraSites';
|
|
29
32
|
import { AccessRequired } from '../../common/error-state/access-required';
|
|
30
33
|
import { ModalLoadingError } from '../../common/error-state/modal-loading-error';
|
|
@@ -531,7 +534,10 @@ export var PlainJiraIssuesConfigModal = function PlainJiraIssuesConfigModal(prop
|
|
|
531
534
|
}
|
|
532
535
|
return issueLikeDataTableView;
|
|
533
536
|
}, [columns.length, currentSearchMethod, issueLikeDataTableView, jql, jqlUrl, resolvedWithNoResults, responseItems.length, retrieveUrlForSmartCardRender, selectedJiraSite === null || selectedJiraSite === void 0 ? void 0 : selectedJiraSite.url, status, urlBeingEdited]);
|
|
534
|
-
return jsx(
|
|
537
|
+
return jsx(IntlMessagesProvider, {
|
|
538
|
+
defaultMessages: i18nEN,
|
|
539
|
+
loaderFn: fetchMessagesForLocale
|
|
540
|
+
}, jsx(ModalTransition, null, jsx(Modal, {
|
|
535
541
|
testId: "jira-jql-datasource-modal",
|
|
536
542
|
onClose: onCancel,
|
|
537
543
|
width: "calc(100% - 80px)",
|
|
@@ -587,7 +593,7 @@ export var PlainJiraIssuesConfigModal = function PlainJiraIssuesConfigModal(prop
|
|
|
587
593
|
onClick: onInsertPressed,
|
|
588
594
|
isDisabled: isInsertDisabled,
|
|
589
595
|
testId: "jira-jql-datasource-modal--insert-button"
|
|
590
|
-
}, jsx(FormattedMessage, modalMessages.insertIssuesButtonText)))));
|
|
596
|
+
}, jsx(FormattedMessage, modalMessages.insertIssuesButtonText))))));
|
|
591
597
|
};
|
|
592
598
|
var analyticsContextAttributes = {
|
|
593
599
|
dataProvider: 'jira-issues'
|