@atlaskit/link-datasource 1.19.18 → 1.19.19
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/assets-modal/modal/index.js +14 -14
- package/dist/cjs/ui/assets-modal/modal/render-assets-content/index.js +18 -20
- package/dist/cjs/ui/assets-modal/modal/render-assets-content/initial-state-view/index.js +4 -6
- package/dist/cjs/ui/assets-modal/search-container/aql-search-input/index.js +13 -15
- package/dist/cjs/ui/assets-modal/search-container/aql-search-input/loading-state.js +1 -4
- package/dist/cjs/ui/assets-modal/search-container/index.js +5 -8
- package/dist/cjs/ui/assets-modal/search-container/loading-state.js +3 -6
- package/dist/cjs/ui/assets-modal/search-container/object-schema-select/index.js +3 -4
- package/dist/cjs/ui/assets-modal/search-container/object-schema-select/loading-state.js +1 -4
- package/dist/cjs/ui/common/error-state/access-required.js +8 -10
- package/dist/cjs/ui/common/error-state/loading-error.js +6 -8
- package/dist/cjs/ui/common/error-state/modal-loading-error.js +7 -9
- package/dist/cjs/ui/common/error-state/no-instances.js +6 -6
- package/dist/cjs/ui/common/error-state/no-results.js +37 -39
- package/dist/cjs/ui/datasource-table-view/datasourceTableView.js +8 -9
- package/dist/cjs/ui/issue-like-table/column-picker/concatenated-menu-list.js +5 -6
- package/dist/cjs/ui/issue-like-table/column-picker/index.js +5 -7
- package/dist/cjs/ui/issue-like-table/drag-column-preview.js +5 -6
- package/dist/cjs/ui/issue-like-table/draggable-table-heading.js +6 -6
- package/dist/cjs/ui/issue-like-table/empty-state/index.js +13 -15
- package/dist/cjs/ui/issue-like-table/index.js +14 -15
- package/dist/cjs/ui/issue-like-table/render-type/richtext/index.js +3 -3
- package/dist/cjs/ui/jira-issues-modal/basic-filters/ui/async-popup-select/dropdownIndicator.js +2 -0
- package/dist/cjs/ui/jira-issues-modal/basic-filters/ui/async-popup-select/footer.js +2 -0
- package/dist/cjs/ui/jira-issues-modal/basic-filters/ui/async-popup-select/formatOptionLabel.js +2 -0
- package/dist/cjs/ui/jira-issues-modal/basic-filters/ui/async-popup-select/trigger.js +2 -0
- package/dist/cjs/ui/jira-issues-modal/basic-filters/ui/index.js +2 -0
- package/dist/cjs/ui/jira-issues-modal/basic-filters/ui/menu-list/index.js +2 -0
- package/dist/cjs/ui/jira-issues-modal/basic-filters/ui/menu-list/selectMessage.js +2 -0
- package/dist/cjs/ui/jira-issues-modal/basic-search-input/index.js +4 -6
- package/dist/cjs/ui/jira-issues-modal/initial-state-view/index.js +23 -17
- package/dist/cjs/ui/jira-issues-modal/jira-search-container/index.js +27 -16
- package/dist/cjs/ui/jira-issues-modal/modal/index.js +29 -29
- package/dist/cjs/ui/jira-issues-modal/mode-switcher/index.js +4 -6
- package/dist/cjs/ui/jira-issues-modal/site-selector/index.js +2 -3
- package/dist/cjs/ui/table-footer/index.js +10 -12
- package/dist/es2019/analytics/constants.js +1 -1
- package/dist/es2019/ui/assets-modal/modal/index.js +14 -15
- package/dist/es2019/ui/assets-modal/modal/render-assets-content/index.js +19 -20
- package/dist/es2019/ui/assets-modal/modal/render-assets-content/initial-state-view/index.js +5 -7
- package/dist/es2019/ui/assets-modal/search-container/aql-search-input/index.js +14 -15
- package/dist/es2019/ui/assets-modal/search-container/aql-search-input/loading-state.js +1 -3
- package/dist/es2019/ui/assets-modal/search-container/index.js +5 -7
- package/dist/es2019/ui/assets-modal/search-container/loading-state.js +3 -5
- package/dist/es2019/ui/assets-modal/search-container/object-schema-select/index.js +2 -5
- package/dist/es2019/ui/assets-modal/search-container/object-schema-select/loading-state.js +1 -3
- package/dist/es2019/ui/common/error-state/access-required.js +9 -10
- package/dist/es2019/ui/common/error-state/loading-error.js +7 -8
- package/dist/es2019/ui/common/error-state/modal-loading-error.js +8 -9
- package/dist/es2019/ui/common/error-state/no-instances.js +7 -6
- package/dist/es2019/ui/common/error-state/no-results.js +38 -39
- package/dist/es2019/ui/datasource-table-view/datasourceTableView.js +9 -9
- package/dist/es2019/ui/issue-like-table/column-picker/concatenated-menu-list.js +6 -7
- package/dist/es2019/ui/issue-like-table/column-picker/index.js +5 -7
- package/dist/es2019/ui/issue-like-table/drag-column-preview.js +4 -5
- package/dist/es2019/ui/issue-like-table/draggable-table-heading.js +6 -7
- package/dist/es2019/ui/issue-like-table/empty-state/index.js +14 -15
- package/dist/es2019/ui/issue-like-table/index.js +15 -16
- package/dist/es2019/ui/issue-like-table/render-type/richtext/index.js +3 -4
- package/dist/es2019/ui/jira-issues-modal/basic-filters/ui/async-popup-select/dropdownIndicator.js +2 -0
- package/dist/es2019/ui/jira-issues-modal/basic-filters/ui/async-popup-select/footer.js +2 -0
- package/dist/es2019/ui/jira-issues-modal/basic-filters/ui/async-popup-select/formatOptionLabel.js +2 -0
- package/dist/es2019/ui/jira-issues-modal/basic-filters/ui/async-popup-select/trigger.js +2 -0
- package/dist/es2019/ui/jira-issues-modal/basic-filters/ui/index.js +2 -0
- package/dist/es2019/ui/jira-issues-modal/basic-filters/ui/menu-list/index.js +2 -0
- package/dist/es2019/ui/jira-issues-modal/basic-filters/ui/menu-list/selectMessage.js +2 -0
- package/dist/es2019/ui/jira-issues-modal/basic-search-input/index.js +5 -6
- package/dist/es2019/ui/jira-issues-modal/initial-state-view/index.js +29 -21
- package/dist/es2019/ui/jira-issues-modal/jira-search-container/index.js +23 -17
- package/dist/es2019/ui/jira-issues-modal/modal/index.js +29 -30
- package/dist/es2019/ui/jira-issues-modal/mode-switcher/index.js +5 -6
- package/dist/es2019/ui/jira-issues-modal/site-selector/index.js +3 -4
- package/dist/es2019/ui/table-footer/index.js +10 -12
- package/dist/esm/analytics/constants.js +1 -1
- package/dist/esm/ui/assets-modal/modal/index.js +14 -15
- package/dist/esm/ui/assets-modal/modal/render-assets-content/index.js +19 -20
- package/dist/esm/ui/assets-modal/modal/render-assets-content/initial-state-view/index.js +5 -7
- package/dist/esm/ui/assets-modal/search-container/aql-search-input/index.js +14 -15
- package/dist/esm/ui/assets-modal/search-container/aql-search-input/loading-state.js +1 -3
- package/dist/esm/ui/assets-modal/search-container/index.js +5 -7
- package/dist/esm/ui/assets-modal/search-container/loading-state.js +3 -5
- package/dist/esm/ui/assets-modal/search-container/object-schema-select/index.js +2 -5
- package/dist/esm/ui/assets-modal/search-container/object-schema-select/loading-state.js +1 -3
- package/dist/esm/ui/common/error-state/access-required.js +9 -10
- package/dist/esm/ui/common/error-state/loading-error.js +7 -8
- package/dist/esm/ui/common/error-state/modal-loading-error.js +8 -9
- package/dist/esm/ui/common/error-state/no-instances.js +7 -6
- package/dist/esm/ui/common/error-state/no-results.js +38 -39
- package/dist/esm/ui/datasource-table-view/datasourceTableView.js +9 -9
- package/dist/esm/ui/issue-like-table/column-picker/concatenated-menu-list.js +6 -7
- package/dist/esm/ui/issue-like-table/column-picker/index.js +5 -7
- package/dist/esm/ui/issue-like-table/drag-column-preview.js +6 -7
- package/dist/esm/ui/issue-like-table/draggable-table-heading.js +6 -7
- package/dist/esm/ui/issue-like-table/empty-state/index.js +14 -15
- package/dist/esm/ui/issue-like-table/index.js +15 -16
- package/dist/esm/ui/issue-like-table/render-type/richtext/index.js +3 -4
- package/dist/esm/ui/jira-issues-modal/basic-filters/ui/async-popup-select/dropdownIndicator.js +2 -0
- package/dist/esm/ui/jira-issues-modal/basic-filters/ui/async-popup-select/footer.js +2 -0
- package/dist/esm/ui/jira-issues-modal/basic-filters/ui/async-popup-select/formatOptionLabel.js +2 -0
- package/dist/esm/ui/jira-issues-modal/basic-filters/ui/async-popup-select/trigger.js +2 -0
- package/dist/esm/ui/jira-issues-modal/basic-filters/ui/index.js +2 -0
- package/dist/esm/ui/jira-issues-modal/basic-filters/ui/menu-list/index.js +2 -0
- package/dist/esm/ui/jira-issues-modal/basic-filters/ui/menu-list/selectMessage.js +2 -0
- package/dist/esm/ui/jira-issues-modal/basic-search-input/index.js +5 -6
- package/dist/esm/ui/jira-issues-modal/initial-state-view/index.js +17 -11
- package/dist/esm/ui/jira-issues-modal/jira-search-container/index.js +27 -17
- package/dist/esm/ui/jira-issues-modal/modal/index.js +29 -30
- package/dist/esm/ui/jira-issues-modal/mode-switcher/index.js +5 -6
- package/dist/esm/ui/jira-issues-modal/site-selector/index.js +3 -4
- package/dist/esm/ui/table-footer/index.js +10 -12
- package/dist/types/ui/jira-issues-modal/mode-switcher/index.d.ts +7 -6
- package/dist/types-ts4.5/ui/jira-issues-modal/mode-switcher/index.d.ts +7 -6
- package/package.json +1 -1
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
/** @jsx jsx */
|
|
3
2
|
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
4
|
-
import { css
|
|
3
|
+
import { css } from '@emotion/react';
|
|
5
4
|
import { FormattedMessage } from 'react-intl-next';
|
|
6
5
|
import { v4 as uuidv4 } from 'uuid';
|
|
7
6
|
import { withAnalyticsContext } from '@atlaskit/analytics-next';
|
|
@@ -30,7 +29,7 @@ const modalBodyErrorWrapperStyles = css({
|
|
|
30
29
|
display: 'grid',
|
|
31
30
|
height: MODAL_HEIGHT
|
|
32
31
|
});
|
|
33
|
-
const AssetsModalTitle =
|
|
32
|
+
const AssetsModalTitle = /*#__PURE__*/React.createElement(ModalTitle, null, /*#__PURE__*/React.createElement(FormattedMessage, modalMessages.insertObjectsTitle));
|
|
34
33
|
const PlainAssetsConfigModal = props => {
|
|
35
34
|
const {
|
|
36
35
|
datasourceId,
|
|
@@ -280,11 +279,11 @@ const PlainAssetsConfigModal = props => {
|
|
|
280
279
|
if (errorState) {
|
|
281
280
|
switch (errorState) {
|
|
282
281
|
case 'permission':
|
|
283
|
-
return
|
|
282
|
+
return /*#__PURE__*/React.createElement(AccessRequired, null);
|
|
284
283
|
case 'network':
|
|
285
|
-
return
|
|
284
|
+
return /*#__PURE__*/React.createElement(ModalLoadingError, null);
|
|
286
285
|
default:
|
|
287
|
-
return
|
|
286
|
+
return /*#__PURE__*/React.createElement(ModalLoadingError, null);
|
|
288
287
|
}
|
|
289
288
|
}
|
|
290
289
|
}, [errorState]);
|
|
@@ -293,11 +292,11 @@ const PlainAssetsConfigModal = props => {
|
|
|
293
292
|
return undefined;
|
|
294
293
|
} else {
|
|
295
294
|
if (!workspaceId || assetsClientLoading) {
|
|
296
|
-
return
|
|
295
|
+
return /*#__PURE__*/React.createElement(AssetsSearchContainerLoading, {
|
|
297
296
|
modalTitle: AssetsModalTitle
|
|
298
297
|
});
|
|
299
298
|
}
|
|
300
|
-
return
|
|
299
|
+
return /*#__PURE__*/React.createElement(AssetsSearchContainer, {
|
|
301
300
|
workspaceId: workspaceId,
|
|
302
301
|
initialSearchData: {
|
|
303
302
|
aql,
|
|
@@ -310,18 +309,18 @@ const PlainAssetsConfigModal = props => {
|
|
|
310
309
|
});
|
|
311
310
|
}
|
|
312
311
|
}, [errorState, workspaceId, assetsClientLoading, aql, existingObjectSchema, objectSchemas, handleOnSearch, status]);
|
|
313
|
-
return
|
|
312
|
+
return /*#__PURE__*/React.createElement(IntlMessagesProvider, {
|
|
314
313
|
defaultMessages: i18nEN,
|
|
315
314
|
loaderFn: fetchMessagesForLocale
|
|
316
|
-
},
|
|
315
|
+
}, /*#__PURE__*/React.createElement(ModalTransition, null, /*#__PURE__*/React.createElement(Modal, {
|
|
317
316
|
testId: 'asset-datasource-modal',
|
|
318
317
|
onClose: onCancel,
|
|
319
318
|
width: "calc(100% - 80px)",
|
|
320
319
|
shouldScrollInViewport: true,
|
|
321
320
|
shouldCloseOnOverlayClick: false
|
|
322
|
-
},
|
|
321
|
+
}, /*#__PURE__*/React.createElement(ModalHeader, null, renderModalTitleContent()), /*#__PURE__*/React.createElement(ModalBody, null, errorState ? /*#__PURE__*/React.createElement("div", {
|
|
323
322
|
css: modalBodyErrorWrapperStyles
|
|
324
|
-
}, renderErrorState()) :
|
|
323
|
+
}, renderErrorState()) : /*#__PURE__*/React.createElement(RenderAssetsContent, {
|
|
325
324
|
isFetchingInitialData: assetsClientLoading,
|
|
326
325
|
status: status,
|
|
327
326
|
responseItems: responseItems,
|
|
@@ -336,16 +335,16 @@ const PlainAssetsConfigModal = props => {
|
|
|
336
335
|
columns: columns,
|
|
337
336
|
defaultVisibleColumnKeys: defaultVisibleColumnKeys,
|
|
338
337
|
modalRenderInstanceId: modalRenderInstanceId
|
|
339
|
-
})),
|
|
338
|
+
})), /*#__PURE__*/React.createElement(ModalFooter, null, /*#__PURE__*/React.createElement(Button, {
|
|
340
339
|
appearance: "default",
|
|
341
340
|
onClick: onCancelClick,
|
|
342
341
|
testId: 'asset-datasource-modal--cancel-button'
|
|
343
|
-
},
|
|
342
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, modalMessages.cancelButtonText)), /*#__PURE__*/React.createElement(Button, {
|
|
344
343
|
appearance: "primary",
|
|
345
344
|
onClick: onInsertPressed,
|
|
346
345
|
isDisabled: isDisabled,
|
|
347
346
|
testId: 'assets-datasource-modal--insert-button'
|
|
348
|
-
},
|
|
347
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, modalMessages.insertIssuesButtonText, {
|
|
349
348
|
values: {
|
|
350
349
|
objectsCount: responseItems.length
|
|
351
350
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
1
|
import { useMemo } from 'react';
|
|
3
|
-
import { css
|
|
2
|
+
import { css } from '@emotion/react';
|
|
4
3
|
import { N40 } from '@atlaskit/theme/colors';
|
|
5
4
|
import { AccessRequired } from '../../../common/error-state/access-required';
|
|
6
5
|
import { ModalLoadingError } from '../../../common/error-state/modal-loading-error';
|
|
@@ -28,21 +27,21 @@ const tableBordersStyles = css({
|
|
|
28
27
|
backgroundSize: scrollableContainerShadowsCssComponents.backgroundSize,
|
|
29
28
|
backgroundAttachment: scrollableContainerShadowsCssComponents.backgroundAttachment
|
|
30
29
|
});
|
|
31
|
-
const RejectedView = () =>
|
|
30
|
+
const RejectedView = () => /*#__PURE__*/React.createElement("div", {
|
|
32
31
|
css: [contentContainerStyles]
|
|
33
|
-
},
|
|
34
|
-
const UnauthorizedView = () =>
|
|
32
|
+
}, /*#__PURE__*/React.createElement(ModalLoadingError, null));
|
|
33
|
+
const UnauthorizedView = () => /*#__PURE__*/React.createElement("div", {
|
|
35
34
|
css: [contentContainerStyles]
|
|
36
|
-
},
|
|
37
|
-
const EmptyView = () =>
|
|
35
|
+
}, /*#__PURE__*/React.createElement(AccessRequired, null));
|
|
36
|
+
const EmptyView = () => /*#__PURE__*/React.createElement("div", {
|
|
38
37
|
css: [contentContainerStyles]
|
|
39
|
-
},
|
|
40
|
-
const NoResultsView = () =>
|
|
38
|
+
}, /*#__PURE__*/React.createElement(InitialStateView, null));
|
|
39
|
+
const NoResultsView = () => /*#__PURE__*/React.createElement("div", {
|
|
41
40
|
css: [contentContainerStyles]
|
|
42
|
-
},
|
|
43
|
-
const LoadingView = () =>
|
|
41
|
+
}, /*#__PURE__*/React.createElement(NoResults, null));
|
|
42
|
+
const LoadingView = () => /*#__PURE__*/React.createElement("div", {
|
|
44
43
|
css: [contentContainerStyles, contentContainerStyles, tableBordersStyles, disableOverflowStyles]
|
|
45
|
-
},
|
|
44
|
+
}, /*#__PURE__*/React.createElement(EmptyState, {
|
|
46
45
|
testId: "assets-aql-datasource-modal--loading-state"
|
|
47
46
|
}));
|
|
48
47
|
export const RenderAssetsContent = props => {
|
|
@@ -60,9 +59,9 @@ export const RenderAssetsContent = props => {
|
|
|
60
59
|
isFetchingInitialData
|
|
61
60
|
} = props;
|
|
62
61
|
const resolvedWithNoResults = status === 'resolved' && !responseItems.length;
|
|
63
|
-
const issueLikeDataTableView = useMemo(() =>
|
|
62
|
+
const issueLikeDataTableView = useMemo(() => /*#__PURE__*/React.createElement("div", {
|
|
64
63
|
css: [contentContainerStyles, tableBordersStyles]
|
|
65
|
-
},
|
|
64
|
+
}, /*#__PURE__*/React.createElement(IssueLikeDataTableView, {
|
|
66
65
|
testId: "asset-datasource-table",
|
|
67
66
|
status: status,
|
|
68
67
|
columns: columns,
|
|
@@ -76,17 +75,17 @@ export const RenderAssetsContent = props => {
|
|
|
76
75
|
})), [columns, defaultVisibleColumnKeys, hasNextPage, loadDatasourceDetails, onNextPage, onVisibleColumnKeysChange, responseItems, status, visibleColumnKeys, modalRenderInstanceId]);
|
|
77
76
|
if (isFetchingInitialData) {
|
|
78
77
|
// Placing this check first as it's a priority before all others
|
|
79
|
-
return
|
|
78
|
+
return /*#__PURE__*/React.createElement(LoadingView, null);
|
|
80
79
|
} else if (status === 'rejected') {
|
|
81
|
-
return
|
|
80
|
+
return /*#__PURE__*/React.createElement(RejectedView, null);
|
|
82
81
|
} else if (status === 'unauthorized') {
|
|
83
|
-
return
|
|
82
|
+
return /*#__PURE__*/React.createElement(UnauthorizedView, null);
|
|
84
83
|
} else if (status === 'empty') {
|
|
85
|
-
return
|
|
84
|
+
return /*#__PURE__*/React.createElement(EmptyView, null);
|
|
86
85
|
} else if (resolvedWithNoResults) {
|
|
87
|
-
return
|
|
86
|
+
return /*#__PURE__*/React.createElement(NoResultsView, null);
|
|
88
87
|
} else if (status === 'loading' && !columns.length) {
|
|
89
|
-
return
|
|
88
|
+
return /*#__PURE__*/React.createElement(LoadingView, null);
|
|
90
89
|
}
|
|
91
90
|
return issueLikeDataTableView;
|
|
92
91
|
};
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { css, jsx } from '@emotion/react';
|
|
1
|
+
import { css } from '@emotion/react';
|
|
4
2
|
import { useIntl } from 'react-intl-next';
|
|
5
3
|
import { CrystalBallSVG } from './assets/crystal-ball-svg';
|
|
6
4
|
import { initialStateViewMessages } from './messages';
|
|
@@ -25,14 +23,14 @@ export const InitialStateView = () => {
|
|
|
25
23
|
const {
|
|
26
24
|
formatMessage
|
|
27
25
|
} = useIntl();
|
|
28
|
-
return
|
|
26
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
29
27
|
css: initialStateViewContainerStyles,
|
|
30
28
|
"data-testid": "assets-aql-datasource-modal--initial-state-view"
|
|
31
|
-
},
|
|
29
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
32
30
|
css: svgAndTextsWrapperStyles
|
|
33
|
-
},
|
|
31
|
+
}, /*#__PURE__*/React.createElement(CrystalBallSVG, null), /*#__PURE__*/React.createElement("div", {
|
|
34
32
|
css: searchTitleStyles
|
|
35
|
-
}, formatMessage(initialStateViewMessages.searchTitle)),
|
|
33
|
+
}, formatMessage(initialStateViewMessages.searchTitle)), /*#__PURE__*/React.createElement("div", null, formatMessage(initialStateViewMessages.searchDescription)), /*#__PURE__*/React.createElement("a", {
|
|
36
34
|
href: AQLSupportDocumentLink,
|
|
37
35
|
target: "_blank"
|
|
38
36
|
}, formatMessage(initialStateViewMessages.learnMoreLink))));
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
/** @jsx jsx */
|
|
3
2
|
import { Fragment, useCallback, useRef, useState } from 'react';
|
|
4
|
-
import { css
|
|
3
|
+
import { css } from '@emotion/react';
|
|
5
4
|
import { useIntl } from 'react-intl-next';
|
|
6
5
|
import { LoadingButton } from '@atlaskit/button';
|
|
7
6
|
import { ErrorMessage, Field } from '@atlaskit/form';
|
|
@@ -37,13 +36,13 @@ const searchButtonStyles = css({
|
|
|
37
36
|
export const SEARCH_DEBOUNCE_MS = 350;
|
|
38
37
|
const renderValidatorIcon = (value, error, meta) => {
|
|
39
38
|
if (value && meta !== null && meta !== void 0 && meta.validating) {
|
|
40
|
-
return
|
|
39
|
+
return /*#__PURE__*/React.createElement(Spinner, {
|
|
41
40
|
size: "medium",
|
|
42
41
|
testId: "assets-datasource-modal--aql-validating"
|
|
43
42
|
});
|
|
44
43
|
}
|
|
45
44
|
if (value && error) {
|
|
46
|
-
return
|
|
45
|
+
return /*#__PURE__*/React.createElement(CrossCircleIcon, {
|
|
47
46
|
label: "label",
|
|
48
47
|
primaryColor: "red",
|
|
49
48
|
size: "medium",
|
|
@@ -51,14 +50,14 @@ const renderValidatorIcon = (value, error, meta) => {
|
|
|
51
50
|
});
|
|
52
51
|
}
|
|
53
52
|
if (value && meta.valid) {
|
|
54
|
-
return
|
|
53
|
+
return /*#__PURE__*/React.createElement(CheckCircleIcon, {
|
|
55
54
|
label: "label",
|
|
56
55
|
primaryColor: "green",
|
|
57
56
|
size: "medium",
|
|
58
57
|
testId: "assets-datasource-modal--aql-valid"
|
|
59
58
|
});
|
|
60
59
|
}
|
|
61
|
-
return
|
|
60
|
+
return /*#__PURE__*/React.createElement(SearchIcon, {
|
|
62
61
|
label: "label",
|
|
63
62
|
size: "medium",
|
|
64
63
|
testId: "assets-datasource-modal--aql-idle"
|
|
@@ -113,7 +112,7 @@ export const AqlSearchInput = ({
|
|
|
113
112
|
resolve(lastResult.current);
|
|
114
113
|
}
|
|
115
114
|
});
|
|
116
|
-
return
|
|
115
|
+
return /*#__PURE__*/React.createElement(FieldContainer, null, /*#__PURE__*/React.createElement(Field, {
|
|
117
116
|
name: aqlKey,
|
|
118
117
|
defaultValue: value,
|
|
119
118
|
validate: debouncedMemoizedValidation
|
|
@@ -121,29 +120,29 @@ export const AqlSearchInput = ({
|
|
|
121
120
|
fieldProps,
|
|
122
121
|
meta,
|
|
123
122
|
error
|
|
124
|
-
}) =>
|
|
125
|
-
elemBeforeInput:
|
|
123
|
+
}) => /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(Textfield, _extends({}, fieldProps, {
|
|
124
|
+
elemBeforeInput: /*#__PURE__*/React.createElement("span", {
|
|
126
125
|
style: {
|
|
127
126
|
paddingLeft: 6,
|
|
128
127
|
width: 24
|
|
129
128
|
}
|
|
130
129
|
}, renderValidatorIcon(fieldProps.value, error, meta)),
|
|
131
|
-
elemAfterInput:
|
|
130
|
+
elemAfterInput: /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(Tooltip, {
|
|
132
131
|
content: formatMessage(searchInputMessages.helpTooltipText),
|
|
133
132
|
position: "bottom"
|
|
134
|
-
},
|
|
133
|
+
}, /*#__PURE__*/React.createElement("a", {
|
|
135
134
|
href: AQLSupportDocumentLink,
|
|
136
135
|
target: "_blank",
|
|
137
136
|
css: buttonBaseStyles
|
|
138
|
-
},
|
|
137
|
+
}, /*#__PURE__*/React.createElement(QuestionCircleIcon, {
|
|
139
138
|
label: "label",
|
|
140
139
|
primaryColor: `var(--ds-icon, ${N500})`,
|
|
141
140
|
size: "medium",
|
|
142
141
|
testId: "assets-datasource-modal-help"
|
|
143
|
-
}))),
|
|
142
|
+
}))), /*#__PURE__*/React.createElement(LoadingButton, {
|
|
144
143
|
appearance: "primary",
|
|
145
144
|
css: searchButtonStyles,
|
|
146
|
-
iconBefore:
|
|
145
|
+
iconBefore: /*#__PURE__*/React.createElement(SearchIcon, {
|
|
147
146
|
label: formatMessage(searchInputMessages.placeholder),
|
|
148
147
|
size: "medium"
|
|
149
148
|
}),
|
|
@@ -155,5 +154,5 @@ export const AqlSearchInput = ({
|
|
|
155
154
|
})),
|
|
156
155
|
placeholder: formatMessage(searchInputMessages.placeholder),
|
|
157
156
|
testId: testId
|
|
158
|
-
})), fieldProps.value && error && message &&
|
|
157
|
+
})), fieldProps.value && error && message && /*#__PURE__*/React.createElement(ErrorMessage, null, message))));
|
|
159
158
|
};
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import { jsx } from '@emotion/react';
|
|
3
1
|
import { Skeleton } from '@atlaskit/linking-common';
|
|
4
|
-
export const AssetsAqlSearchInputSkeleton = () =>
|
|
2
|
+
export const AssetsAqlSearchInputSkeleton = () => /*#__PURE__*/React.createElement(Skeleton, {
|
|
5
3
|
width: "100%",
|
|
6
4
|
height: "40px",
|
|
7
5
|
testId: "assets-datasource-modal--aql-search-input-skeleton"
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
/** @jsx jsx */
|
|
3
|
-
import { jsx } from '@emotion/react';
|
|
4
2
|
import Form from '@atlaskit/form';
|
|
5
3
|
import { useDatasourceAnalyticsEvents } from '../../../analytics';
|
|
6
4
|
import { AqlSearchInput } from './aql-search-input';
|
|
@@ -30,22 +28,22 @@ export const AssetsSearchContainer = props => {
|
|
|
30
28
|
onSearch(aql, objectSchema.value);
|
|
31
29
|
}
|
|
32
30
|
};
|
|
33
|
-
return
|
|
31
|
+
return /*#__PURE__*/React.createElement(Form, {
|
|
34
32
|
onSubmit: onFormSubmit
|
|
35
33
|
}, ({
|
|
36
34
|
formProps
|
|
37
35
|
}) => {
|
|
38
36
|
var _initialSearchData$ob, _initialSearchData$ob2, _initialSearchData$aq;
|
|
39
|
-
return
|
|
37
|
+
return /*#__PURE__*/React.createElement(FormContainer, _extends({}, formProps, {
|
|
40
38
|
id: SEARCH_FORM_ID
|
|
41
|
-
}),
|
|
39
|
+
}), /*#__PURE__*/React.createElement(FormRowContainer, {
|
|
42
40
|
isNarrowGap: true
|
|
43
|
-
}, modalTitle,
|
|
41
|
+
}, modalTitle, /*#__PURE__*/React.createElement(SchemaSelectContainer, null, /*#__PURE__*/React.createElement(AssetsObjectSchemaSelect, {
|
|
44
42
|
value: (_initialSearchData$ob = initialSearchData.objectSchema) !== null && _initialSearchData$ob !== void 0 ? _initialSearchData$ob : undefined,
|
|
45
43
|
workspaceId: workspaceId,
|
|
46
44
|
initialObjectSchemas: (_initialSearchData$ob2 = initialSearchData.objectSchemas) !== null && _initialSearchData$ob2 !== void 0 ? _initialSearchData$ob2 : undefined,
|
|
47
45
|
classNamePrefix: "assets-datasource-modal--object-schema-select"
|
|
48
|
-
}))),
|
|
46
|
+
}))), /*#__PURE__*/React.createElement(FormRowContainer, null, /*#__PURE__*/React.createElement(AqlSearchInput, {
|
|
49
47
|
value: (_initialSearchData$aq = initialSearchData.aql) !== null && _initialSearchData$aq !== void 0 ? _initialSearchData$aq : DEFAULT_AQL_QUERY,
|
|
50
48
|
workspaceId: workspaceId,
|
|
51
49
|
isSearching: isSearching
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import { jsx } from '@emotion/react';
|
|
3
1
|
import { AssetsAqlSearchInputSkeleton } from './aql-search-input/loading-state';
|
|
4
2
|
import { AssetsObjectSchemaSelectSkeleton } from './object-schema-select/loading-state';
|
|
5
3
|
import { FormContainer, FormRowContainer, SchemaSelectContainer } from './styled';
|
|
6
4
|
export const AssetsSearchContainerLoading = ({
|
|
7
5
|
modalTitle
|
|
8
6
|
}) => {
|
|
9
|
-
return
|
|
7
|
+
return /*#__PURE__*/React.createElement(FormContainer, {
|
|
10
8
|
"data-testid": "assets-datasource-modal--search-container-skeleton"
|
|
11
|
-
},
|
|
9
|
+
}, /*#__PURE__*/React.createElement(FormRowContainer, {
|
|
12
10
|
isNarrowGap: true
|
|
13
|
-
}, modalTitle,
|
|
11
|
+
}, modalTitle, /*#__PURE__*/React.createElement(SchemaSelectContainer, null, /*#__PURE__*/React.createElement(AssetsObjectSchemaSelectSkeleton, null))), /*#__PURE__*/React.createElement(FormRowContainer, null, /*#__PURE__*/React.createElement(AssetsAqlSearchInputSkeleton, null)));
|
|
14
12
|
};
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
/** @jsx jsx */
|
|
3
|
-
|
|
4
|
-
import { jsx } from '@emotion/react';
|
|
5
2
|
import debounce from 'debounce-promise';
|
|
6
3
|
import { useIntl } from 'react-intl-next';
|
|
7
4
|
import { Field } from '@atlaskit/form';
|
|
@@ -57,7 +54,7 @@ export const AssetsObjectSchemaSelect = ({
|
|
|
57
54
|
}
|
|
58
55
|
return undefined;
|
|
59
56
|
};
|
|
60
|
-
return
|
|
57
|
+
return /*#__PURE__*/React.createElement(FieldContainer, null, /*#__PURE__*/React.createElement(Field, {
|
|
61
58
|
name: objectSchemaKey,
|
|
62
59
|
defaultValue: selectedObjectSchema,
|
|
63
60
|
validate: value => validateSchema(value)
|
|
@@ -67,7 +64,7 @@ export const AssetsObjectSchemaSelect = ({
|
|
|
67
64
|
onFocus,
|
|
68
65
|
...restFieldProps
|
|
69
66
|
}
|
|
70
|
-
}) =>
|
|
67
|
+
}) => /*#__PURE__*/React.createElement(AsyncSelect, _extends({
|
|
71
68
|
autoFocus: true,
|
|
72
69
|
classNamePrefix: classNamePrefix,
|
|
73
70
|
isLoading: objectSchemasLoading,
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import { jsx } from '@emotion/react';
|
|
3
1
|
import { Skeleton } from '@atlaskit/linking-common';
|
|
4
|
-
export const AssetsObjectSchemaSelectSkeleton = () =>
|
|
2
|
+
export const AssetsObjectSchemaSelectSkeleton = () => /*#__PURE__*/React.createElement(Skeleton, {
|
|
5
3
|
width: "100%",
|
|
6
4
|
height: "40px",
|
|
7
5
|
testId: "assets-datasource-modal--object-schema-select-skeleton"
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
1
|
import { useEffect } from 'react';
|
|
3
|
-
import { css
|
|
2
|
+
import { css } from '@emotion/react';
|
|
4
3
|
import { useIntl } from 'react-intl-next';
|
|
5
4
|
import EmptyState from '@atlaskit/empty-state';
|
|
6
5
|
import { N400 } from '@atlaskit/theme/colors';
|
|
@@ -24,15 +23,15 @@ const Description = ({
|
|
|
24
23
|
message,
|
|
25
24
|
url
|
|
26
25
|
}) => {
|
|
27
|
-
return
|
|
26
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
28
27
|
css: descriptionMessageStyles
|
|
29
|
-
},
|
|
28
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
30
29
|
css: urlStyles
|
|
31
|
-
}, url),
|
|
30
|
+
}, url), /*#__PURE__*/React.createElement("span", null, message));
|
|
32
31
|
};
|
|
33
|
-
const IconContainer = () =>
|
|
32
|
+
const IconContainer = () => /*#__PURE__*/React.createElement("div", {
|
|
34
33
|
css: iconContainerStyles
|
|
35
|
-
},
|
|
34
|
+
}, /*#__PURE__*/React.createElement(AccessRequiredSVG, null));
|
|
36
35
|
export const AccessRequired = ({
|
|
37
36
|
url
|
|
38
37
|
}) => {
|
|
@@ -48,17 +47,17 @@ export const AccessRequired = ({
|
|
|
48
47
|
});
|
|
49
48
|
}, [fireEvent]);
|
|
50
49
|
if (url) {
|
|
51
|
-
return
|
|
50
|
+
return /*#__PURE__*/React.createElement(EmptyState, {
|
|
52
51
|
testId: "datasource--access-required-with-url",
|
|
53
52
|
header: formatMessage(loadingErrorMessages.accessRequiredWithSite),
|
|
54
|
-
description:
|
|
53
|
+
description: /*#__PURE__*/React.createElement(Description, {
|
|
55
54
|
message: formatMessage(loadingErrorMessages.accessInstructions),
|
|
56
55
|
url: url
|
|
57
56
|
}),
|
|
58
57
|
renderImage: IconContainer
|
|
59
58
|
});
|
|
60
59
|
}
|
|
61
|
-
return
|
|
60
|
+
return /*#__PURE__*/React.createElement(EmptyState, {
|
|
62
61
|
testId: "datasource--access-required",
|
|
63
62
|
header: formatMessage(loadingErrorMessages.accessRequired),
|
|
64
63
|
description: formatMessage(loadingErrorMessages.accessInstructions),
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
1
|
import { useEffect } from 'react';
|
|
3
|
-
import { css
|
|
2
|
+
import { css } from '@emotion/react';
|
|
4
3
|
import { FormattedMessage } from 'react-intl-next';
|
|
5
4
|
import Button from '@atlaskit/button/standard-button';
|
|
6
5
|
import { useDatasourceAnalyticsEvents } from '../../../analytics';
|
|
@@ -35,17 +34,17 @@ export const LoadingError = ({
|
|
|
35
34
|
reason: 'network'
|
|
36
35
|
});
|
|
37
36
|
}, [fireEvent]);
|
|
38
|
-
return
|
|
37
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
39
38
|
css: errorContainerStyles,
|
|
40
39
|
"data-testid": "jira-jql-datasource--loading-error"
|
|
41
|
-
},
|
|
40
|
+
}, /*#__PURE__*/React.createElement(LoadingErrorSVG, null), /*#__PURE__*/React.createElement("div", {
|
|
42
41
|
css: errorMessageContainerStyles
|
|
43
|
-
},
|
|
42
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
44
43
|
css: errorMessageStyles
|
|
45
|
-
},
|
|
44
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, loadingErrorMessages.unableToLoadItems)), /*#__PURE__*/React.createElement("p", {
|
|
46
45
|
css: errorDescriptionStyles
|
|
47
|
-
},
|
|
46
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, loadingErrorMessages.checkConnection)), onRefresh && /*#__PURE__*/React.createElement(Button, {
|
|
48
47
|
appearance: "primary",
|
|
49
48
|
onClick: onRefresh
|
|
50
|
-
},
|
|
49
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, loadingErrorMessages.refresh))));
|
|
51
50
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
/** @jsx jsx */
|
|
3
2
|
import { useEffect } from 'react';
|
|
4
|
-
import { css
|
|
3
|
+
import { css } from '@emotion/react';
|
|
5
4
|
import { FormattedMessage } from 'react-intl-next';
|
|
6
5
|
import { useDatasourceAnalyticsEvents } from '../../../analytics';
|
|
7
6
|
import { LoadingErrorSVG } from './loading-error-svg';
|
|
@@ -35,20 +34,20 @@ export const ModalLoadingError = ({
|
|
|
35
34
|
reason: 'network'
|
|
36
35
|
});
|
|
37
36
|
}, [fireEvent]);
|
|
38
|
-
return
|
|
37
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
39
38
|
css: errorContainerStyles,
|
|
40
39
|
"data-testid": "jira-jql-datasource-modal--loading-error"
|
|
41
|
-
},
|
|
40
|
+
}, /*#__PURE__*/React.createElement(LoadingErrorSVG, null), /*#__PURE__*/React.createElement("div", {
|
|
42
41
|
css: errorMessageContainerStyles
|
|
43
|
-
},
|
|
42
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
44
43
|
css: errorMessageStyles
|
|
45
|
-
},
|
|
44
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, loadingErrorMessages.unableToLoadResults)), /*#__PURE__*/React.createElement("p", {
|
|
46
45
|
css: errorDescriptionStyles
|
|
47
|
-
}, url ?
|
|
46
|
+
}, url ? /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, loadingErrorMessages.checkConnectionWithSource, {
|
|
48
47
|
values: {
|
|
49
|
-
a: chunk =>
|
|
48
|
+
a: chunk => /*#__PURE__*/React.createElement("a", {
|
|
50
49
|
href: url
|
|
51
50
|
}, chunk)
|
|
52
51
|
}
|
|
53
|
-
})) :
|
|
52
|
+
})) : /*#__PURE__*/React.createElement(FormattedMessage, loadingErrorMessages.checkConnection))));
|
|
54
53
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
1
|
+
/* no-instances.tsx generated by @compiled/babel-plugin v0.26.1 */
|
|
2
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
3
|
+
import { css } from '@emotion/react';
|
|
3
4
|
import { FormattedMessage } from 'react-intl-next';
|
|
4
5
|
import { Flex, xcss } from '@atlaskit/primitives';
|
|
5
6
|
import { loadingErrorMessages } from './messages';
|
|
@@ -15,13 +16,13 @@ const descriptionStyles = css({
|
|
|
15
16
|
const containerStyles = xcss({
|
|
16
17
|
marginTop: '60px'
|
|
17
18
|
});
|
|
18
|
-
export const NoInstancesView = () =>
|
|
19
|
+
export const NoInstancesView = () => /*#__PURE__*/React.createElement(Flex, {
|
|
19
20
|
testId: "no-jira-instances-content",
|
|
20
21
|
direction: "column",
|
|
21
22
|
alignItems: "center",
|
|
22
23
|
xcss: containerStyles
|
|
23
|
-
},
|
|
24
|
+
}, /*#__PURE__*/React.createElement(NoInstancesSvg, null), /*#__PURE__*/React.createElement("span", {
|
|
24
25
|
css: titleStyles
|
|
25
|
-
},
|
|
26
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, loadingErrorMessages.noAccessToJiraSitesTitle)), /*#__PURE__*/React.createElement("span", {
|
|
26
27
|
css: descriptionStyles
|
|
27
|
-
},
|
|
28
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, loadingErrorMessages.noAccessToJiraSitesDescription)));
|