@atlaskit/link-datasource 3.19.0 → 3.19.2
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 +16 -0
- package/dist/cjs/common/ui/common/render-svg.compiled.css +3 -0
- package/dist/cjs/common/ui/common/render-svg.js +32 -0
- package/dist/cjs/common/ui/rich-icon/search/index.js +16 -0
- package/dist/cjs/common/ui/spot/basics/padlock-key/index.js +18 -0
- package/dist/cjs/common/ui/spot/error-state/error/index.js +18 -0
- package/dist/cjs/common/ui/spot/error-state/search/index.js +18 -0
- package/dist/cjs/common/ui/spot/error-state/search-no-result/index.js +18 -0
- package/dist/cjs/hooks/useDatasourceTableFlag.js +0 -2
- package/dist/cjs/i18n/en.js +11 -0
- package/dist/cjs/i18n/en_GB.js +11 -0
- package/dist/cjs/i18n/en_ZZ.js +11 -0
- package/dist/cjs/ui/assets-modal/modal/render-assets-content/initial-state-view/assets/{crystal-ball-svg.js → crystal-ball-svg-old.js} +3 -2
- package/dist/cjs/ui/assets-modal/modal/render-assets-content/initial-state-view/index.js +7 -2
- package/dist/cjs/ui/common/error-state/access-required-svg.js +3 -2
- package/dist/cjs/ui/common/error-state/access-required.js +17 -3
- package/dist/cjs/ui/common/error-state/{loading-error-svg.js → loading-error-svg-old.js} +3 -2
- package/dist/cjs/ui/common/error-state/loading-error.js +7 -2
- package/dist/cjs/ui/common/error-state/modal-loading-error.js +7 -2
- package/dist/cjs/ui/common/error-state/no-results.js +15 -1
- package/dist/cjs/ui/common/modal/display-view-dropdown/display-view-drop-down.js +30 -2
- package/dist/cjs/ui/common/modal/popup-select/menu-list/errorMessage.js +18 -5
- package/dist/cjs/ui/common/modal/popup-select/menu-list/noOptionsMessage.js +18 -5
- package/dist/cjs/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.js +2 -1
- package/dist/cjs/ui/confluence-search-modal/basic-filters/filters/date-range-picker/messages.js +5 -0
- package/dist/cjs/ui/confluence-search-modal/modal/{confluence-search-initial-state-svg.js → confluence-search-initial-state-svg-old.js} +3 -2
- package/dist/cjs/ui/confluence-search-modal/modal/index.js +17 -3
- package/dist/cjs/ui/issue-like-table/empty-state/{priority.js → priority-old.js} +6 -0
- package/dist/cjs/ui/issue-like-table/empty-state/{type.js → type-old.js} +6 -0
- package/dist/cjs/ui/jira-issues-modal/modal/index.js +19 -6
- package/dist/es2019/common/ui/common/render-svg.compiled.css +3 -0
- package/dist/es2019/common/ui/common/render-svg.js +23 -0
- package/dist/es2019/common/ui/rich-icon/search/index.js +9 -0
- package/dist/es2019/common/ui/spot/basics/padlock-key/index.js +11 -0
- package/dist/es2019/common/ui/spot/error-state/error/index.js +11 -0
- package/dist/es2019/common/ui/spot/error-state/search/index.js +11 -0
- package/dist/es2019/common/ui/spot/error-state/search-no-result/index.js +11 -0
- package/dist/es2019/hooks/useDatasourceTableFlag.js +0 -2
- package/dist/es2019/i18n/en.js +11 -0
- package/dist/es2019/i18n/en_GB.js +11 -0
- package/dist/es2019/i18n/en_ZZ.js +11 -0
- package/dist/es2019/ui/assets-modal/modal/render-assets-content/initial-state-view/assets/{crystal-ball-svg.js → crystal-ball-svg-old.js} +3 -1
- package/dist/es2019/ui/assets-modal/modal/render-assets-content/initial-state-view/index.js +7 -2
- package/dist/es2019/ui/common/error-state/access-required-svg.js +3 -1
- package/dist/es2019/ui/common/error-state/access-required.js +19 -4
- package/dist/es2019/ui/common/error-state/{loading-error-svg.js → loading-error-svg-old.js} +3 -1
- package/dist/es2019/ui/common/error-state/loading-error.js +7 -2
- package/dist/es2019/ui/common/error-state/modal-loading-error.js +7 -2
- package/dist/es2019/ui/common/error-state/no-results.js +15 -2
- package/dist/es2019/ui/common/modal/display-view-dropdown/display-view-drop-down.js +25 -2
- package/dist/es2019/ui/common/modal/popup-select/menu-list/errorMessage.js +17 -5
- package/dist/es2019/ui/common/modal/popup-select/menu-list/noOptionsMessage.js +17 -5
- package/dist/es2019/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.js +2 -1
- package/dist/es2019/ui/confluence-search-modal/basic-filters/filters/date-range-picker/messages.js +5 -0
- package/dist/es2019/ui/confluence-search-modal/modal/{confluence-search-initial-state-svg.js → confluence-search-initial-state-svg-old.js} +3 -1
- package/dist/es2019/ui/confluence-search-modal/modal/index.js +17 -4
- package/dist/es2019/ui/issue-like-table/empty-state/{priority.js → priority-old.js} +5 -0
- package/dist/es2019/ui/issue-like-table/empty-state/{type.js → type-old.js} +5 -0
- package/dist/es2019/ui/jira-issues-modal/modal/index.js +15 -3
- package/dist/esm/common/ui/common/render-svg.compiled.css +3 -0
- package/dist/esm/common/ui/common/render-svg.js +22 -0
- package/dist/esm/common/ui/rich-icon/search/index.js +9 -0
- package/dist/esm/common/ui/spot/basics/padlock-key/index.js +11 -0
- package/dist/esm/common/ui/spot/error-state/error/index.js +11 -0
- package/dist/esm/common/ui/spot/error-state/search/index.js +11 -0
- package/dist/esm/common/ui/spot/error-state/search-no-result/index.js +11 -0
- package/dist/esm/hooks/useDatasourceTableFlag.js +0 -2
- package/dist/esm/i18n/en.js +11 -0
- package/dist/esm/i18n/en_GB.js +11 -0
- package/dist/esm/i18n/en_ZZ.js +11 -0
- package/dist/esm/ui/assets-modal/modal/render-assets-content/initial-state-view/assets/{crystal-ball-svg.js → crystal-ball-svg-old.js} +3 -1
- package/dist/esm/ui/assets-modal/modal/render-assets-content/initial-state-view/index.js +7 -2
- package/dist/esm/ui/common/error-state/access-required-svg.js +3 -1
- package/dist/esm/ui/common/error-state/access-required.js +18 -4
- package/dist/esm/ui/common/error-state/{loading-error-svg.js → loading-error-svg-old.js} +3 -1
- package/dist/esm/ui/common/error-state/loading-error.js +7 -2
- package/dist/esm/ui/common/error-state/modal-loading-error.js +7 -2
- package/dist/esm/ui/common/error-state/no-results.js +16 -2
- package/dist/esm/ui/common/modal/display-view-dropdown/display-view-drop-down.js +29 -2
- package/dist/esm/ui/common/modal/popup-select/menu-list/errorMessage.js +18 -5
- package/dist/esm/ui/common/modal/popup-select/menu-list/noOptionsMessage.js +18 -5
- package/dist/esm/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.js +2 -1
- package/dist/esm/ui/confluence-search-modal/basic-filters/filters/date-range-picker/messages.js +5 -0
- package/dist/esm/ui/confluence-search-modal/modal/{confluence-search-initial-state-svg.js → confluence-search-initial-state-svg-old.js} +3 -1
- package/dist/esm/ui/confluence-search-modal/modal/index.js +18 -4
- package/dist/esm/ui/issue-like-table/empty-state/{priority.js → priority-old.js} +5 -0
- package/dist/esm/ui/issue-like-table/empty-state/{type.js → type-old.js} +5 -0
- package/dist/esm/ui/jira-issues-modal/modal/index.js +20 -7
- package/dist/types/common/ui/common/render-svg.d.ts +16 -0
- package/dist/types/common/ui/rich-icon/search/index.d.ts +3 -0
- package/dist/types/common/ui/spot/basics/padlock-key/index.d.ts +3 -0
- package/dist/types/common/ui/spot/error-state/error/index.d.ts +3 -0
- package/dist/types/common/ui/spot/error-state/search/index.d.ts +3 -0
- package/dist/types/common/ui/spot/error-state/search-no-result/index.d.ts +3 -0
- package/dist/types/i18n/en.d.ts +11 -0
- package/dist/types/i18n/en_GB.d.ts +11 -0
- package/dist/types/i18n/en_ZZ.d.ts +11 -0
- package/dist/types/ui/assets-modal/modal/render-assets-content/initial-state-view/assets/crystal-ball-svg-old.d.ts +2 -0
- package/dist/types/ui/common/error-state/access-required-svg.d.ts +1 -1
- package/dist/types/ui/common/error-state/loading-error-svg-old.d.ts +2 -0
- package/dist/types/ui/confluence-search-modal/basic-filters/filters/date-range-picker/messages.d.ts +5 -0
- package/dist/types/ui/confluence-search-modal/modal/confluence-search-initial-state-svg-old.d.ts +2 -0
- package/dist/types/ui/issue-like-table/empty-state/{priority.d.ts → priority-old.d.ts} +5 -0
- package/dist/types/ui/issue-like-table/empty-state/type-old.d.ts +11 -0
- package/dist/types-ts4.5/common/ui/common/render-svg.d.ts +16 -0
- package/dist/types-ts4.5/common/ui/rich-icon/search/index.d.ts +3 -0
- package/dist/types-ts4.5/common/ui/spot/basics/padlock-key/index.d.ts +3 -0
- package/dist/types-ts4.5/common/ui/spot/error-state/error/index.d.ts +3 -0
- package/dist/types-ts4.5/common/ui/spot/error-state/search/index.d.ts +3 -0
- package/dist/types-ts4.5/common/ui/spot/error-state/search-no-result/index.d.ts +3 -0
- package/dist/types-ts4.5/i18n/en.d.ts +11 -0
- package/dist/types-ts4.5/i18n/en_GB.d.ts +11 -0
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +11 -0
- package/dist/types-ts4.5/ui/assets-modal/modal/render-assets-content/initial-state-view/assets/crystal-ball-svg-old.d.ts +2 -0
- package/dist/types-ts4.5/ui/common/error-state/access-required-svg.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/error-state/loading-error-svg-old.d.ts +2 -0
- package/dist/types-ts4.5/ui/confluence-search-modal/basic-filters/filters/date-range-picker/messages.d.ts +5 -0
- package/dist/types-ts4.5/ui/confluence-search-modal/modal/confluence-search-initial-state-svg-old.d.ts +2 -0
- package/dist/types-ts4.5/ui/issue-like-table/empty-state/{priority.d.ts → priority-old.d.ts} +5 -0
- package/dist/types-ts4.5/ui/issue-like-table/empty-state/type-old.d.ts +11 -0
- package/elements/package.json +3 -1
- package/package.json +12 -6
- package/dist/types/ui/assets-modal/modal/render-assets-content/initial-state-view/assets/crystal-ball-svg.d.ts +0 -2
- package/dist/types/ui/common/error-state/loading-error-svg.d.ts +0 -2
- package/dist/types/ui/confluence-search-modal/modal/confluence-search-initial-state-svg.d.ts +0 -2
- package/dist/types/ui/issue-like-table/empty-state/type.d.ts +0 -6
- package/dist/types-ts4.5/ui/assets-modal/modal/render-assets-content/initial-state-view/assets/crystal-ball-svg.d.ts +0 -2
- package/dist/types-ts4.5/ui/common/error-state/loading-error-svg.d.ts +0 -2
- package/dist/types-ts4.5/ui/confluence-search-modal/modal/confluence-search-initial-state-svg.d.ts +0 -2
- package/dist/types-ts4.5/ui/issue-like-table/empty-state/type.d.ts +0 -6
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
// TODO Delete when cleaning fg('bandicoots-update-sllv-icons')
|
|
4
|
+
export const AccessRequiredSVGOld = () => /*#__PURE__*/React.createElement("svg", {
|
|
3
5
|
width: "75",
|
|
4
6
|
height: "87",
|
|
5
7
|
viewBox: "0 0 75 87",
|
|
@@ -8,11 +8,13 @@ import { useEffect } from 'react';
|
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { useIntl } from 'react-intl-next';
|
|
10
10
|
import EmptyState from '@atlaskit/empty-state';
|
|
11
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
12
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
12
13
|
import { N400 } from '@atlaskit/theme/colors';
|
|
13
14
|
import { fontFallback } from '@atlaskit/theme/typography';
|
|
14
15
|
import { useDatasourceAnalyticsEvents } from '../../../analytics';
|
|
15
|
-
import {
|
|
16
|
+
import { SpotPadlockKey } from '../../../common/ui/spot/basics/padlock-key';
|
|
17
|
+
import { AccessRequiredSVGOld } from './access-required-svg';
|
|
16
18
|
import { loadingErrorMessages } from './messages';
|
|
17
19
|
const urlStyles = css({
|
|
18
20
|
color: `var(--ds-text-subtlest, ${N400})`,
|
|
@@ -37,9 +39,22 @@ const Description = ({
|
|
|
37
39
|
css: urlStyles
|
|
38
40
|
}, url), jsx("span", null, message));
|
|
39
41
|
};
|
|
40
|
-
const
|
|
41
|
-
|
|
42
|
-
|
|
42
|
+
const noop = () => '';
|
|
43
|
+
const IconContainer = () => {
|
|
44
|
+
const {
|
|
45
|
+
formatMessage
|
|
46
|
+
} = fg('bandicoots-update-sllv-icons') ?
|
|
47
|
+
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
48
|
+
useIntl() : {
|
|
49
|
+
formatMessage: noop
|
|
50
|
+
};
|
|
51
|
+
return jsx(Box, {
|
|
52
|
+
xcss: iconContainerStyles
|
|
53
|
+
}, fg('bandicoots-update-sllv-icons') ? jsx(SpotPadlockKey, {
|
|
54
|
+
size: 'xlarge',
|
|
55
|
+
alt: formatMessage(loadingErrorMessages.accessRequired)
|
|
56
|
+
}) : jsx(AccessRequiredSVGOld, null));
|
|
57
|
+
};
|
|
43
58
|
export const AccessRequired = ({
|
|
44
59
|
url
|
|
45
60
|
}) => {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
// TODO Delete when cleaning fg('bandicoots-update-sllv-icons')
|
|
4
|
+
export const LoadingErrorSVGOld = () => /*#__PURE__*/React.createElement("svg", {
|
|
3
5
|
width: "92",
|
|
4
6
|
height: "124",
|
|
5
7
|
viewBox: "0 0 92 124",
|
|
@@ -8,10 +8,12 @@ import { useEffect } from 'react';
|
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { FormattedMessage } from 'react-intl-next';
|
|
10
10
|
import Button from '@atlaskit/button/standard-button';
|
|
11
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
12
|
import { Box, Inline, Text } from '@atlaskit/primitives';
|
|
12
13
|
import { fontFallback } from '@atlaskit/theme/typography';
|
|
13
14
|
import { useDatasourceAnalyticsEvents } from '../../../analytics';
|
|
14
|
-
import {
|
|
15
|
+
import { SpotErrorSearch } from '../../../common/ui/spot/error-state/search';
|
|
16
|
+
import { LoadingErrorSVGOld } from './loading-error-svg-old';
|
|
15
17
|
import { loadingErrorMessages } from './messages';
|
|
16
18
|
const errorContainerStyles = css({
|
|
17
19
|
display: 'grid',
|
|
@@ -42,7 +44,10 @@ export const LoadingError = ({
|
|
|
42
44
|
return jsx(Box, {
|
|
43
45
|
xcss: errorContainerStyles,
|
|
44
46
|
testId: "datasource--loading-error"
|
|
45
|
-
},
|
|
47
|
+
}, fg('bandicoots-update-sllv-icons') ? jsx(SpotErrorSearch, {
|
|
48
|
+
size: 'xlarge',
|
|
49
|
+
alt: 'something'
|
|
50
|
+
}) : jsx(LoadingErrorSVGOld, null), jsx(Box, {
|
|
46
51
|
xcss: errorMessageContainerStyles
|
|
47
52
|
}, jsx(Inline, {
|
|
48
53
|
as: "span",
|
|
@@ -7,9 +7,11 @@ import { useEffect } from 'react';
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { FormattedMessage } from 'react-intl-next';
|
|
10
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
11
|
import { Box, Text } from '@atlaskit/primitives';
|
|
11
12
|
import { useDatasourceAnalyticsEvents } from '../../../analytics';
|
|
12
|
-
import {
|
|
13
|
+
import { SpotErrorSearch } from '../../../common/ui/spot/error-state/search';
|
|
14
|
+
import { LoadingErrorSVGOld } from './loading-error-svg-old';
|
|
13
15
|
import { loadingErrorMessages } from './messages';
|
|
14
16
|
const errorContainerStyles = css({
|
|
15
17
|
display: 'grid',
|
|
@@ -36,7 +38,10 @@ export const ModalLoadingError = ({
|
|
|
36
38
|
return jsx(Box, {
|
|
37
39
|
xcss: errorContainerStyles,
|
|
38
40
|
testId: "datasource-modal--loading-error"
|
|
39
|
-
},
|
|
41
|
+
}, fg('bandicoots-update-sllv-icons') ? jsx(SpotErrorSearch, {
|
|
42
|
+
size: 'xlarge',
|
|
43
|
+
alt: 'something'
|
|
44
|
+
}) : jsx(LoadingErrorSVGOld, null), jsx(Box, {
|
|
40
45
|
xcss: errorMessageContainerStyles
|
|
41
46
|
}, jsx(Text, {
|
|
42
47
|
size: "small"
|
|
@@ -6,10 +6,12 @@ import { useEffect } from 'react';
|
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { jsx } from '@emotion/react';
|
|
9
|
-
import { FormattedMessage } from 'react-intl-next';
|
|
9
|
+
import { FormattedMessage, useIntl } from 'react-intl-next';
|
|
10
10
|
import Button from '@atlaskit/button/standard-button';
|
|
11
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
12
|
import { Grid, Text, xcss } from '@atlaskit/primitives';
|
|
12
13
|
import { useDatasourceAnalyticsEvents } from '../../../analytics';
|
|
14
|
+
import { SpotSearchNoResult } from '../../../common/ui/spot/error-state/search-no-result';
|
|
13
15
|
import { loadingErrorMessages } from './messages';
|
|
14
16
|
const noResultsContainerStyles = xcss({
|
|
15
17
|
margin: 'space.500',
|
|
@@ -21,19 +23,30 @@ const noResultsMessageContainerStyles = xcss({
|
|
|
21
23
|
gap: 'space.100',
|
|
22
24
|
placeItems: 'center'
|
|
23
25
|
});
|
|
26
|
+
const noop = () => '';
|
|
24
27
|
export const NoResults = ({
|
|
25
28
|
onRefresh
|
|
26
29
|
}) => {
|
|
27
30
|
const {
|
|
28
31
|
fireEvent
|
|
29
32
|
} = useDatasourceAnalyticsEvents();
|
|
33
|
+
const {
|
|
34
|
+
formatMessage
|
|
35
|
+
} = fg('bandicoots-update-sllv-icons') ?
|
|
36
|
+
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
37
|
+
useIntl() : {
|
|
38
|
+
formatMessage: noop
|
|
39
|
+
};
|
|
30
40
|
useEffect(() => {
|
|
31
41
|
fireEvent('ui.emptyResult.shown.datasource', {});
|
|
32
42
|
}, [fireEvent]);
|
|
33
43
|
return jsx(Grid, {
|
|
34
44
|
xcss: noResultsContainerStyles,
|
|
35
45
|
testId: "datasource-modal--no-results"
|
|
36
|
-
}, jsx(
|
|
46
|
+
}, fg('bandicoots-update-sllv-icons') ? jsx(SpotSearchNoResult, {
|
|
47
|
+
size: 'xlarge',
|
|
48
|
+
alt: formatMessage(loadingErrorMessages.noResultsFound)
|
|
49
|
+
}) : jsx("svg", {
|
|
37
50
|
width: "131",
|
|
38
51
|
height: "120",
|
|
39
52
|
viewBox: "0 0 131 120",
|
|
@@ -6,6 +6,9 @@
|
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
7
|
import { FormattedMessage, useIntl } from 'react-intl-next';
|
|
8
8
|
import DropdownMenu, { DropdownItem, DropdownItemGroup } from '@atlaskit/dropdown-menu';
|
|
9
|
+
import SmartLinkInlineIcon from '@atlaskit/icon/core/smart-link-inline';
|
|
10
|
+
import SmartLinkListIcon from '@atlaskit/icon/core/smart-link-list';
|
|
11
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
12
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
10
13
|
import { displayViewDropDownMessages } from './messages';
|
|
11
14
|
const dropDownItemGroupStyles = xcss({
|
|
@@ -15,7 +18,7 @@ const dropDownItemGroupStyles = xcss({
|
|
|
15
18
|
paddingBottom: 'space.050',
|
|
16
19
|
borderRadius: 'border.radius'
|
|
17
20
|
});
|
|
18
|
-
const
|
|
21
|
+
const InlineIconOld = jsx("svg", {
|
|
19
22
|
xmlns: "http://www.w3.org/2000/svg",
|
|
20
23
|
width: "24",
|
|
21
24
|
height: "24",
|
|
@@ -27,7 +30,16 @@ const InlineIcon = jsx("svg", {
|
|
|
27
30
|
d: "M4 9C2.89543 9 2 9.67155 2 10.5V13.5C2 14.3285 2.89543 15 4 15H20C21.1046 15 22 14.3285 22 13.5V10.5C22 9.67155 21.1046 9 20 9H4ZM4.22222 11.25C4.22222 10.5 4.22222 10.5 5 10.5H7C7.55556 10.5 7.55556 10.5 7.55556 11.25V13C7.55556 13.5 7.55556 13.5 7 13.5H5C4.22222 13.5 4.22222 13.5 4.22222 13V11.25ZM9 12C9 11.7929 9.2239 11.625 9.5 11.625H19.5C19.7761 11.625 20 11.7929 20 12C20 12.2071 19.7761 12.375 19.5 12.375H9.5C9.2239 12.375 9 12.2071 9 12Z",
|
|
28
31
|
fill: 'currentColor'
|
|
29
32
|
}));
|
|
30
|
-
|
|
33
|
+
|
|
34
|
+
// TODO Rename to InlineIcon when cleaning fg('bandicoots-update-sllv-icons')
|
|
35
|
+
const InlineIconNew = jsx(SmartLinkInlineIcon, {
|
|
36
|
+
label: "",
|
|
37
|
+
spacing: "spacious"
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
// TODO Delete when cleaning fg('bandicoots-update-sllv-icons')
|
|
41
|
+
const getInlineIconFFed = () => fg('bandicoots-update-sllv-icons') ? InlineIconNew : InlineIconOld;
|
|
42
|
+
const ListIconOld = jsx("svg", {
|
|
31
43
|
xmlns: "http://www.w3.org/2000/svg",
|
|
32
44
|
width: "24",
|
|
33
45
|
height: "24",
|
|
@@ -39,6 +51,15 @@ const ListIcon = jsx("svg", {
|
|
|
39
51
|
d: "M0 2C0 0.89543 0.895431 0 2 0H13C14.1046 0 15 0.895431 15 2V13C15 14.1046 14.1046 15 13 15H2C0.89543 15 0 14.1046 0 13V2ZM5 6C5 5.44772 5.44772 5 6 5L12 5C12.5523 5 13 5.44772 13 6C13 6.55229 12.5523 7 12 7L6 7C5.44772 7 5 6.55228 5 6ZM6 8C5.44772 8 5 8.44771 5 9C5 9.55228 5.44772 10 6 10L12 10C12.5523 10 13 9.55229 13 9C13 8.44772 12.5523 8 12 8L6 8ZM5 12C5 11.4477 5.44772 11 6 11L12 11C12.5523 11 13 11.4477 13 12C13 12.5523 12.5523 13 12 13L6 13C5.44772 13 5 12.5523 5 12ZM3 7C3.55228 7 4 6.55228 4 6C4 5.44772 3.55228 5 3 5C2.44772 5 2 5.44772 2 6C2 6.55228 2.44772 7 3 7ZM5 3C5 2.44772 5.44772 2 6 2L12 2C12.5523 2 13 2.44772 13 3C13 3.55229 12.5523 4 12 4L6 4C5.44772 4 5 3.55228 5 3ZM3 4C3.55228 4 4 3.55228 4 3C4 2.44772 3.55228 2 3 2C2.44772 2 2 2.44772 2 3C2 3.55228 2.44772 4 3 4ZM4 9C4 9.55229 3.55228 10 3 10C2.44772 10 2 9.55229 2 9C2 8.44771 2.44772 8 3 8C3.55228 8 4 8.44771 4 9ZM3 13C3.55228 13 4 12.5523 4 12C4 11.4477 3.55228 11 3 11C2.44772 11 2 11.4477 2 12C2 12.5523 2.44772 13 3 13Z",
|
|
40
52
|
fill: 'currentColor'
|
|
41
53
|
}));
|
|
54
|
+
|
|
55
|
+
// TODO Rename to ListIcon when cleaning fg('bandicoots-update-sllv-icons')
|
|
56
|
+
const ListIconNew = jsx(SmartLinkListIcon, {
|
|
57
|
+
label: "",
|
|
58
|
+
spacing: "spacious"
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
// TODO Delete when cleaning fg('bandicoots-update-sllv-icons')
|
|
62
|
+
const getListIconFFed = () => fg('bandicoots-update-sllv-icons') ? ListIconNew : ListIconOld;
|
|
42
63
|
export const DisplayViewDropDown = ({
|
|
43
64
|
onViewModeChange,
|
|
44
65
|
viewMode
|
|
@@ -48,6 +69,8 @@ export const DisplayViewDropDown = ({
|
|
|
48
69
|
} = useIntl();
|
|
49
70
|
const isTable = viewMode === 'table';
|
|
50
71
|
const triggerText = isTable ? formatMessage(displayViewDropDownMessages.viewModeListLabel) : formatMessage(displayViewDropDownMessages.viewModeInlineLinkLabel);
|
|
72
|
+
const InlineIcon = getInlineIconFFed();
|
|
73
|
+
const ListIcon = getListIconFFed();
|
|
51
74
|
return jsx(DropdownMenu, {
|
|
52
75
|
trigger: triggerText,
|
|
53
76
|
testId: "datasource-modal--view-drop-down"
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import React, { useEffect } from 'react';
|
|
2
|
+
import { useIntl } from 'react-intl-next';
|
|
2
3
|
import { useDebouncedCallback } from 'use-debounce';
|
|
3
4
|
import ErrorIcon from '@atlaskit/icon/glyph/error';
|
|
5
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
6
|
import { N500 } from '@atlaskit/theme/colors';
|
|
5
7
|
import { useDatasourceAnalyticsEvents } from '../../../../../analytics';
|
|
8
|
+
import { SpotError } from '../../../../../common/ui/spot/error-state/error';
|
|
6
9
|
import { SEARCH_DEBOUNCE_MS } from '../constants';
|
|
7
10
|
import { asyncPopupSelectMessages } from './messages';
|
|
8
11
|
import CustomSelectMessage from './selectMessage';
|
|
@@ -16,6 +19,7 @@ const getErrorReasonType = errors => {
|
|
|
16
19
|
}
|
|
17
20
|
return 'unknown';
|
|
18
21
|
};
|
|
22
|
+
const noop = () => '';
|
|
19
23
|
const CustomErrorMessage = ({
|
|
20
24
|
filterName,
|
|
21
25
|
errors
|
|
@@ -35,14 +39,22 @@ const CustomErrorMessage = ({
|
|
|
35
39
|
});
|
|
36
40
|
}, SEARCH_DEBOUNCE_MS);
|
|
37
41
|
useEffect(debouncedAnalyticsCallback, [debouncedAnalyticsCallback]);
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
+
const {
|
|
43
|
+
formatMessage
|
|
44
|
+
} = fg('bandicoots-update-sllv-icons') ?
|
|
45
|
+
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
46
|
+
useIntl() : {
|
|
47
|
+
formatMessage: noop
|
|
48
|
+
};
|
|
49
|
+
return /*#__PURE__*/React.createElement(CustomSelectMessage, {
|
|
50
|
+
icon: fg('bandicoots-update-sllv-icons') ? /*#__PURE__*/React.createElement(SpotError, {
|
|
51
|
+
size: 'medium',
|
|
52
|
+
alt: formatMessage(asyncPopupSelectMessages.errorMessage)
|
|
53
|
+
}) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ErrorIcon, {
|
|
42
54
|
primaryColor: `var(--ds-icon, ${N500})`,
|
|
43
55
|
label: "",
|
|
44
56
|
size: "xlarge"
|
|
45
|
-
}),
|
|
57
|
+
})),
|
|
46
58
|
message: asyncPopupSelectMessages.errorMessage,
|
|
47
59
|
testId: `${filterName}--error-message`
|
|
48
60
|
});
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import React, { useEffect } from 'react';
|
|
2
|
+
import { useIntl } from 'react-intl-next';
|
|
2
3
|
import { useDebouncedCallback } from 'use-debounce';
|
|
3
4
|
import QuestionCircleIcon from '@atlaskit/icon/glyph/question-circle';
|
|
5
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
6
|
import { N500 } from '@atlaskit/theme/colors';
|
|
5
7
|
import { useDatasourceAnalyticsEvents } from '../../../../../analytics';
|
|
8
|
+
import { SpotSearchNoResult } from '../../../../../common/ui/spot/error-state/search-no-result';
|
|
6
9
|
import { SEARCH_DEBOUNCE_MS } from '../constants';
|
|
7
10
|
import { asyncPopupSelectMessages } from './messages';
|
|
8
11
|
import CustomSelectMessage from './selectMessage';
|
|
12
|
+
const noop = () => '';
|
|
9
13
|
const CustomNoOptionsMessage = ({
|
|
10
14
|
filterName
|
|
11
15
|
}) => {
|
|
@@ -25,14 +29,22 @@ const CustomNoOptionsMessage = ({
|
|
|
25
29
|
});
|
|
26
30
|
}, SEARCH_DEBOUNCE_MS);
|
|
27
31
|
useEffect(debouncedAnalyticsCallback, [debouncedAnalyticsCallback]);
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
+
const {
|
|
33
|
+
formatMessage
|
|
34
|
+
} = fg('bandicoots-update-sllv-icons') ?
|
|
35
|
+
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
36
|
+
useIntl() : {
|
|
37
|
+
formatMessage: noop
|
|
38
|
+
};
|
|
39
|
+
return /*#__PURE__*/React.createElement(CustomSelectMessage, {
|
|
40
|
+
icon: fg('bandicoots-update-sllv-icons') ? /*#__PURE__*/React.createElement(SpotSearchNoResult, {
|
|
41
|
+
size: 'medium',
|
|
42
|
+
alt: formatMessage(asyncPopupSelectMessages.noOptionsMessage)
|
|
43
|
+
}) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(QuestionCircleIcon, {
|
|
32
44
|
primaryColor: `var(--ds-icon, ${N500})`,
|
|
33
45
|
size: "xlarge",
|
|
34
46
|
label: ""
|
|
35
|
-
}),
|
|
47
|
+
})),
|
|
36
48
|
message: asyncPopupSelectMessages.noOptionsMessage,
|
|
37
49
|
testId: `${filterName}--no-options-message`
|
|
38
50
|
});
|
package/dist/es2019/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.js
CHANGED
|
@@ -2,6 +2,7 @@ import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
|
|
2
2
|
import { FormattedMessage, useIntl } from 'react-intl-next';
|
|
3
3
|
import { DatePicker } from '@atlaskit/datetime-picker';
|
|
4
4
|
import ErrorIcon from '@atlaskit/icon/utility/migration/error';
|
|
5
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
6
|
import Popup from '@atlaskit/popup';
|
|
6
7
|
import { R400 } from '@atlaskit/theme/colors';
|
|
7
8
|
import { layers } from '@atlaskit/theme/constants';
|
|
@@ -139,7 +140,7 @@ export const DateRangePicker = ({
|
|
|
139
140
|
})), invalidDateRange && /*#__PURE__*/React.createElement(DateRangeErrorMessage, null, /*#__PURE__*/React.createElement(ErrorIcon, {
|
|
140
141
|
LEGACY_size: "small",
|
|
141
142
|
color: `var(--ds-icon-danger, ${R400})`,
|
|
142
|
-
label:
|
|
143
|
+
label: fg('bandicoots-update-sllv-icons') ? formatMessage(dateRangeMessages.dateRangeError) : 'Date range error',
|
|
143
144
|
LEGACY_margin: `0 ${"var(--ds-space-negative-025, -2px)"}`
|
|
144
145
|
}), invalidDateRange), /*#__PURE__*/React.createElement(SelectDateRangeButton, {
|
|
145
146
|
"data-testId": "custom-date-range-update-button",
|
package/dist/es2019/ui/confluence-search-modal/basic-filters/filters/date-range-picker/messages.js
CHANGED
|
@@ -89,5 +89,10 @@ export const dateRangeMessages = defineMessages({
|
|
|
89
89
|
id: 'linkDataSource.confluence-search.configmodal.date.range.after.label',
|
|
90
90
|
defaultMessage: 'after {date}',
|
|
91
91
|
description: '`after date` for date picker dropdown'
|
|
92
|
+
},
|
|
93
|
+
dateRangeError: {
|
|
94
|
+
id: 'linkDataSource.confluence-search.configmodal.date.range.error',
|
|
95
|
+
defaultMessage: 'Date range error',
|
|
96
|
+
description: 'Label of the icon that is displayed before the error message'
|
|
92
97
|
}
|
|
93
98
|
});
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
// TODO Delete when cleaning fg('bandicoots-update-sllv-icons')
|
|
4
|
+
export const ConfluenceSearchInitialStateSVGOld = () => /*#__PURE__*/React.createElement("svg", {
|
|
3
5
|
width: "188",
|
|
4
6
|
height: "112",
|
|
5
7
|
viewBox: "0 0 188 112",
|
|
@@ -8,12 +8,14 @@ import { Fragment, useCallback, useEffect, useMemo, useRef } from 'react';
|
|
|
8
8
|
|
|
9
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
10
|
import { jsx } from '@emotion/react';
|
|
11
|
-
import { FormattedMessage } from 'react-intl-next';
|
|
11
|
+
import { FormattedMessage, useIntl } from 'react-intl-next';
|
|
12
12
|
import { IntlMessagesProvider } from '@atlaskit/intl-messages-provider';
|
|
13
13
|
import { ModalBody, ModalFooter, ModalHeader, ModalTitle } from '@atlaskit/modal-dialog';
|
|
14
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
15
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
15
16
|
import { useDatasourceAnalyticsEvents } from '../../../analytics';
|
|
16
17
|
import { DatasourceAction, DatasourceSearchMethod } from '../../../analytics/types';
|
|
18
|
+
import { RichIconSearch } from '../../../common/ui/rich-icon/search';
|
|
17
19
|
import { fetchMessagesForLocale } from '../../../common/utils/locale/fetch-messages-for-locale';
|
|
18
20
|
import { useUserInteractions } from '../../../contexts/user-interactions';
|
|
19
21
|
import i18nEN from '../../../i18n/en';
|
|
@@ -38,7 +40,7 @@ import TableSearchCount from '../../common/modal/search-count';
|
|
|
38
40
|
import { SiteSelector } from '../../common/modal/site-selector';
|
|
39
41
|
import { EmptyState } from '../../issue-like-table';
|
|
40
42
|
import ConfluenceSearchContainer from '../confluence-search-container';
|
|
41
|
-
import {
|
|
43
|
+
import { ConfluenceSearchInitialStateSVGOld } from './confluence-search-initial-state-svg-old';
|
|
42
44
|
import { confluenceSearchModalMessages } from './messages';
|
|
43
45
|
const inputContainerStyles = xcss({
|
|
44
46
|
alignItems: 'baseline',
|
|
@@ -46,6 +48,7 @@ const inputContainerStyles = xcss({
|
|
|
46
48
|
minHeight: '72px'
|
|
47
49
|
});
|
|
48
50
|
const isValidParameters = parameters => !!(parameters && parameters.cloudId && Object.values(parameters).filter(v => v !== undefined).length > 1);
|
|
51
|
+
const noop = () => '';
|
|
49
52
|
export const PlainConfluenceSearchConfigModal = props => {
|
|
50
53
|
const {
|
|
51
54
|
onCancel,
|
|
@@ -55,6 +58,13 @@ export const PlainConfluenceSearchConfigModal = props => {
|
|
|
55
58
|
const {
|
|
56
59
|
currentViewMode
|
|
57
60
|
} = useViewModeContext();
|
|
61
|
+
const {
|
|
62
|
+
formatMessage
|
|
63
|
+
} = fg('bandicoots-update-sllv-icons') ?
|
|
64
|
+
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
65
|
+
useIntl() : {
|
|
66
|
+
formatMessage: noop
|
|
67
|
+
};
|
|
58
68
|
const {
|
|
59
69
|
visibleColumnKeys,
|
|
60
70
|
tableState: {
|
|
@@ -223,7 +233,10 @@ export const PlainConfluenceSearchConfigModal = props => {
|
|
|
223
233
|
});
|
|
224
234
|
}
|
|
225
235
|
return jsx(ContentContainer, null, jsx(InitialStateView, {
|
|
226
|
-
icon: jsx(
|
|
236
|
+
icon: fg('bandicoots-update-sllv-icons') ? jsx(RichIconSearch, {
|
|
237
|
+
size: "xlarge",
|
|
238
|
+
alt: formatMessage(confluenceSearchModalMessages.initialViewSearchTitle)
|
|
239
|
+
}) : jsx(ConfluenceSearchInitialStateSVGOld, null),
|
|
227
240
|
title: confluenceSearchModalMessages.initialViewSearchTitle,
|
|
228
241
|
description: confluenceSearchModalMessages.initialViewSearchDescription
|
|
229
242
|
}));
|
|
@@ -233,7 +246,7 @@ export const PlainConfluenceSearchConfigModal = props => {
|
|
|
233
246
|
}, jsx(DatasourcesTableInModalPreview, {
|
|
234
247
|
testId: "confluence-search-datasource-table"
|
|
235
248
|
}));
|
|
236
|
-
}, [columns.length, selectedConfluenceSiteUrl,
|
|
249
|
+
}, [status, resolvedWithNoResults, columns.length, selectedConfluenceSiteUrl, urlBeingEdited, hasConfluenceSearchParams, formatMessage]);
|
|
237
250
|
const renderInlineLinkModalContent = useCallback(() => {
|
|
238
251
|
if (status === 'unauthorized') {
|
|
239
252
|
return jsx(AccessRequired, {
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TODO - I believe this file is not used (I could not find any reference to it in the codebase)
|
|
3
|
+
* If not used we should remove it
|
|
4
|
+
* Delete when cleaning bandicoots-update-sllv-icons
|
|
5
|
+
*/
|
|
1
6
|
import React from 'react';
|
|
2
7
|
import { B300, R300, Y300 } from '@atlaskit/theme/colors';
|
|
3
8
|
import IconType from '../render-type/icon';
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TODO - I believe this file is not used (I could not find any reference to it in the codebase)
|
|
3
|
+
* If not used we should remove it
|
|
4
|
+
* Delete when cleaning bandicoots-update-sllv-icons
|
|
5
|
+
*/
|
|
1
6
|
import React from 'react';
|
|
2
7
|
|
|
3
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -9,7 +9,7 @@ import { Fragment, useCallback, useEffect, useMemo, useRef, useState } from 'rea
|
|
|
9
9
|
|
|
10
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
11
|
import { jsx } from '@emotion/react';
|
|
12
|
-
import { FormattedMessage } from 'react-intl-next';
|
|
12
|
+
import { FormattedMessage, useIntl } from 'react-intl-next';
|
|
13
13
|
import { IntlMessagesProvider } from '@atlaskit/intl-messages-provider';
|
|
14
14
|
import { ModalBody, ModalFooter, ModalHeader, ModalTitle, ModalTransition } from '@atlaskit/modal-dialog';
|
|
15
15
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
@@ -20,6 +20,7 @@ import { startUfoExperience } from '../../../analytics/ufoExperiences';
|
|
|
20
20
|
import { useColumnPickerRenderedFailedUfoExperience } from '../../../analytics/ufoExperiences/hooks/useColumnPickerRenderedFailedUfoExperience';
|
|
21
21
|
import { useDataRenderedUfoExperience } from '../../../analytics/ufoExperiences/hooks/useDataRenderedUfoExperience';
|
|
22
22
|
import { mapSearchMethod } from '../../../analytics/utils';
|
|
23
|
+
import { RichIconSearch } from '../../../common/ui/rich-icon/search';
|
|
23
24
|
import { fetchMessagesForLocale } from '../../../common/utils/locale/fetch-messages-for-locale';
|
|
24
25
|
import { useDatasourceExperienceId } from '../../../contexts/datasource-experience-id';
|
|
25
26
|
import { useUserInteractions } from '../../../contexts/user-interactions';
|
|
@@ -51,6 +52,7 @@ import { isQueryTooComplex } from '../basic-filters/utils/isQueryTooComplex';
|
|
|
51
52
|
import { JiraSearchContainer } from '../jira-search-container';
|
|
52
53
|
import { JiraInitialStateSVG } from './jira-issues-initial-state-svg';
|
|
53
54
|
import { modalMessages } from './messages';
|
|
55
|
+
const noop = () => '';
|
|
54
56
|
const getDisplayValue = (currentViewMode, itemCount) => {
|
|
55
57
|
if (currentViewMode === 'table') {
|
|
56
58
|
return DatasourceDisplay.DATASOURCE_TABLE;
|
|
@@ -106,6 +108,13 @@ const PlainJiraIssuesConfigModal = props => {
|
|
|
106
108
|
fireEvent
|
|
107
109
|
} = useDatasourceAnalyticsEvents();
|
|
108
110
|
const experienceId = useDatasourceExperienceId();
|
|
111
|
+
const {
|
|
112
|
+
formatMessage
|
|
113
|
+
} = fg('bandicoots-update-sllv-icons') ?
|
|
114
|
+
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
115
|
+
useIntl() : {
|
|
116
|
+
formatMessage: noop
|
|
117
|
+
};
|
|
109
118
|
const analyticsPayload = useMemo(() => ({
|
|
110
119
|
extensionKey,
|
|
111
120
|
destinationObjectTypes
|
|
@@ -287,7 +296,10 @@ const PlainJiraIssuesConfigModal = props => {
|
|
|
287
296
|
}, !!jql ? jsx(EmptyState, {
|
|
288
297
|
testId: `jira-datasource-modal--empty-state`
|
|
289
298
|
}) : jsx(InitialStateView, {
|
|
290
|
-
icon: jsx(
|
|
299
|
+
icon: fg('bandicoots-update-sllv-icons') ? jsx(RichIconSearch, {
|
|
300
|
+
alt: formatMessage(fg('confluence-issue-terminology-refresh') ? modalMessages.searchJiraTitleIssueTermRefresh : modalMessages.searchJiraTitle),
|
|
301
|
+
size: 'xlarge'
|
|
302
|
+
}) : jsx(JiraInitialStateSVG, null),
|
|
291
303
|
title: fg('confluence-issue-terminology-refresh') ? modalMessages.searchJiraTitleIssueTermRefresh : modalMessages.searchJiraTitle,
|
|
292
304
|
description: getDescriptionMessage(),
|
|
293
305
|
learnMoreLink: currentSearchMethod === 'jql' ? {
|
|
@@ -301,7 +313,7 @@ const PlainJiraIssuesConfigModal = props => {
|
|
|
301
313
|
}, jsx(DatasourcesTableInModalPreview, {
|
|
302
314
|
testId: "jira-datasource-table"
|
|
303
315
|
}));
|
|
304
|
-
}, [columns.length, currentSearchMethod, jql, jqlUrl, resolvedWithNoResults, selectedJiraSite === null || selectedJiraSite === void 0 ? void 0 : selectedJiraSite.url, status, urlBeingEdited]);
|
|
316
|
+
}, [columns.length, currentSearchMethod, formatMessage, jql, jqlUrl, resolvedWithNoResults, selectedJiraSite === null || selectedJiraSite === void 0 ? void 0 : selectedJiraSite.url, status, urlBeingEdited]);
|
|
305
317
|
const siteSelectorLabel = useMemo(() => {
|
|
306
318
|
if (fg('confluence-issue-terminology-refresh')) {
|
|
307
319
|
return availableSites && availableSites.length > 1 ? modalMessages.insertIssuesTitleManySitesIssueTermRefresh : modalMessages.insertIssuesTitleIssueTermRefresh;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/* render-svg.tsx generated by @compiled/babel-plugin v0.36.0 */
|
|
2
|
+
import "./render-svg.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
+
import Image from '@atlaskit/image';
|
|
6
|
+
var imageSizeStyles = {
|
|
7
|
+
xlarge: "_1bsb1lit",
|
|
8
|
+
large: "_1bsb53f4",
|
|
9
|
+
medium: "_1bsb1wqb"
|
|
10
|
+
};
|
|
11
|
+
export var RenderSVG = function RenderSVG(_ref) {
|
|
12
|
+
var alt = _ref.alt,
|
|
13
|
+
size = _ref.size,
|
|
14
|
+
src = _ref.src,
|
|
15
|
+
srcDark = _ref.srcDark;
|
|
16
|
+
return /*#__PURE__*/React.createElement(Image, {
|
|
17
|
+
src: src,
|
|
18
|
+
srcDark: srcDark,
|
|
19
|
+
alt: alt,
|
|
20
|
+
className: ax([size && imageSizeStyles[size]])
|
|
21
|
+
});
|
|
22
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { RenderSVG } from '../../common/render-svg';
|
|
4
|
+
import Standard from './assets/standard.svg';
|
|
5
|
+
export var RichIconSearch = function RichIconSearch(props) {
|
|
6
|
+
return /*#__PURE__*/React.createElement(RenderSVG, _extends({
|
|
7
|
+
src: Standard
|
|
8
|
+
}, props));
|
|
9
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { RenderSVG } from '../../../common/render-svg';
|
|
4
|
+
import Dark from './assets/dark.svg';
|
|
5
|
+
import Light from './assets/light.svg';
|
|
6
|
+
export var SpotPadlockKey = function SpotPadlockKey(props) {
|
|
7
|
+
return /*#__PURE__*/React.createElement(RenderSVG, _extends({
|
|
8
|
+
src: Light,
|
|
9
|
+
srcDark: Dark
|
|
10
|
+
}, props));
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { RenderSVG } from '../../../common/render-svg';
|
|
4
|
+
import Dark from './assets/dark.svg';
|
|
5
|
+
import Light from './assets/light.svg';
|
|
6
|
+
export var SpotError = function SpotError(props) {
|
|
7
|
+
return /*#__PURE__*/React.createElement(RenderSVG, _extends({
|
|
8
|
+
src: Light,
|
|
9
|
+
srcDark: Dark
|
|
10
|
+
}, props));
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { RenderSVG } from '../../../common/render-svg';
|
|
4
|
+
import Dark from './assets/dark.svg';
|
|
5
|
+
import Light from './assets/light.svg';
|
|
6
|
+
export var SpotErrorSearch = function SpotErrorSearch(props) {
|
|
7
|
+
return /*#__PURE__*/React.createElement(RenderSVG, _extends({
|
|
8
|
+
src: Light,
|
|
9
|
+
srcDark: Dark
|
|
10
|
+
}, props));
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { RenderSVG } from '../../../common/render-svg';
|
|
4
|
+
import Dark from './assets/dark.svg';
|
|
5
|
+
import Light from './assets/light.svg';
|
|
6
|
+
export var SpotSearchNoResult = function SpotSearchNoResult(props) {
|
|
7
|
+
return /*#__PURE__*/React.createElement(RenderSVG, _extends({
|
|
8
|
+
src: Light,
|
|
9
|
+
srcDark: Dark
|
|
10
|
+
}, props));
|
|
11
|
+
};
|
|
@@ -46,8 +46,6 @@ export var useDatasourceTableFlag = function useDatasourceTableFlag(options) {
|
|
|
46
46
|
fireEvent = _useDatasourceAnalyti.fireEvent;
|
|
47
47
|
var showErrorFlag = useCallback(function (args) {
|
|
48
48
|
showFlag(_objectSpread(_objectSpread({
|
|
49
|
-
// We need IconTile in order to scale the new icon to 24px
|
|
50
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons
|
|
51
49
|
icon: /*#__PURE__*/React.createElement(CrossCircleIcon, {
|
|
52
50
|
spacing: "spacious",
|
|
53
51
|
label: "Error",
|