@atlaskit/link-picker 1.38.2 → 1.39.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 +22 -0
- package/dist/cjs/common/ui/min-height-container/styled.js +1 -1
- package/dist/cjs/ui/error-boundary/error-boundary-fallback/styled.js +1 -1
- package/dist/cjs/ui/index.js +1 -1
- package/dist/cjs/ui/link-picker/form-footer/feature-discovery/styled.js +1 -1
- package/dist/cjs/ui/link-picker/form-footer/styled.js +2 -2
- package/dist/cjs/ui/link-picker/search-results/link-search-error/index.js +4 -2
- package/dist/cjs/ui/link-picker/search-results/link-search-list/list-item/styled.js +7 -7
- package/dist/cjs/ui/link-picker/search-results/link-search-list/styled.js +4 -4
- package/dist/cjs/ui/link-picker/search-results/scrolling-tabs/styles.js +5 -5
- package/dist/cjs/ui/link-picker/search-results/search-results-container/styled.js +1 -1
- package/dist/cjs/ui/link-picker/search-results/styled.js +3 -3
- package/dist/cjs/ui/link-picker/styled.js +2 -2
- package/dist/cjs/ui/link-picker/text-input/styled.js +1 -1
- package/dist/cjs/ui/loader-fallback/styled.js +1 -1
- package/dist/cjs/ui/messages-provider/lazy-messages-provider/utils/fetch-messages-for-locale.js +22 -66
- package/dist/cjs/ui/styled.js +1 -1
- package/dist/es2019/common/ui/min-height-container/styled.js +1 -1
- package/dist/es2019/ui/error-boundary/error-boundary-fallback/styled.js +1 -1
- package/dist/es2019/ui/index.js +1 -1
- package/dist/es2019/ui/link-picker/form-footer/feature-discovery/styled.js +1 -1
- package/dist/es2019/ui/link-picker/form-footer/styled.js +2 -2
- package/dist/es2019/ui/link-picker/search-results/link-search-error/index.js +3 -1
- package/dist/es2019/ui/link-picker/search-results/link-search-list/list-item/styled.js +7 -7
- package/dist/es2019/ui/link-picker/search-results/link-search-list/styled.js +4 -4
- package/dist/es2019/ui/link-picker/search-results/scrolling-tabs/styles.js +5 -5
- package/dist/es2019/ui/link-picker/search-results/search-results-container/styled.js +1 -1
- package/dist/es2019/ui/link-picker/search-results/styled.js +3 -3
- package/dist/es2019/ui/link-picker/styled.js +2 -2
- package/dist/es2019/ui/link-picker/text-input/styled.js +1 -1
- package/dist/es2019/ui/loader-fallback/styled.js +1 -1
- package/dist/es2019/ui/messages-provider/lazy-messages-provider/utils/fetch-messages-for-locale.js +13 -30
- package/dist/es2019/ui/styled.js +1 -1
- package/dist/esm/common/ui/min-height-container/styled.js +1 -1
- package/dist/esm/ui/error-boundary/error-boundary-fallback/styled.js +1 -1
- package/dist/esm/ui/index.js +1 -1
- package/dist/esm/ui/link-picker/form-footer/feature-discovery/styled.js +1 -1
- package/dist/esm/ui/link-picker/form-footer/styled.js +2 -2
- package/dist/esm/ui/link-picker/search-results/link-search-error/index.js +3 -1
- package/dist/esm/ui/link-picker/search-results/link-search-list/list-item/styled.js +7 -7
- package/dist/esm/ui/link-picker/search-results/link-search-list/styled.js +4 -4
- package/dist/esm/ui/link-picker/search-results/scrolling-tabs/styles.js +5 -5
- package/dist/esm/ui/link-picker/search-results/search-results-container/styled.js +1 -1
- package/dist/esm/ui/link-picker/search-results/styled.js +3 -3
- package/dist/esm/ui/link-picker/styled.js +2 -2
- package/dist/esm/ui/link-picker/text-input/styled.js +1 -1
- package/dist/esm/ui/loader-fallback/styled.js +1 -1
- package/dist/esm/ui/messages-provider/lazy-messages-provider/utils/fetch-messages-for-locale.js +22 -51
- package/dist/esm/ui/styled.js +1 -1
- package/dist/types/ui/link-picker/search-results/link-search-error/index.d.ts +1 -0
- package/dist/types-ts4.5/ui/link-picker/search-results/link-search-error/index.d.ts +1 -0
- package/package.json +9 -11
|
@@ -4,7 +4,7 @@ import { css } from '@emotion/react';
|
|
|
4
4
|
// AFP-2532 TODO: Fix automatic suppressions below
|
|
5
5
|
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
6
6
|
import { typography } from '@atlaskit/theme';
|
|
7
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
8
8
|
export const listContainerStyles = css({
|
|
9
9
|
width: '100%',
|
|
10
10
|
paddingTop: 0,
|
|
@@ -16,14 +16,14 @@ export const listContainerStyles = css({
|
|
|
16
16
|
flexDirection: 'column'
|
|
17
17
|
});
|
|
18
18
|
|
|
19
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
20
20
|
export const spinnerContainerStyles = css({
|
|
21
21
|
flexGrow: 1,
|
|
22
22
|
flexDirection: 'column',
|
|
23
23
|
alignItems: 'center'
|
|
24
24
|
});
|
|
25
25
|
|
|
26
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
27
27
|
export const listStyles = css({
|
|
28
28
|
padding: "var(--ds-space-0, 0px)",
|
|
29
29
|
marginTop: "var(--ds-space-0, 0px)",
|
|
@@ -33,7 +33,7 @@ export const listStyles = css({
|
|
|
33
33
|
listStyle: 'none'
|
|
34
34
|
});
|
|
35
35
|
|
|
36
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/
|
|
36
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
37
37
|
export const listTitleStyles = css(typography.h100(), {
|
|
38
38
|
textTransform: 'uppercase',
|
|
39
39
|
marginTop: 0,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
3
|
import { N0, N30 } from '@atlaskit/theme/colors';
|
|
4
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
5
5
|
export const scrollingContainerStyles = css({
|
|
6
6
|
overflowX: 'auto',
|
|
7
7
|
scrollBehavior: 'smooth',
|
|
@@ -25,7 +25,7 @@ export const scrollingContainerStyles = css({
|
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
|
|
28
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
29
29
|
export const containerStyles = css({
|
|
30
30
|
position: 'relative',
|
|
31
31
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
@@ -44,7 +44,7 @@ export const containerStyles = css({
|
|
|
44
44
|
}
|
|
45
45
|
});
|
|
46
46
|
|
|
47
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
47
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
48
48
|
export const buttonContainerStyles = css({
|
|
49
49
|
position: 'absolute',
|
|
50
50
|
top: "var(--ds-space-050, 4px)",
|
|
@@ -52,14 +52,14 @@ export const buttonContainerStyles = css({
|
|
|
52
52
|
backgroundColor: `var(--ds-surface, ${N0})`
|
|
53
53
|
});
|
|
54
54
|
|
|
55
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-array-arguments, @atlaskit/ui-styling-standard/no-exported-styles
|
|
55
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-array-arguments, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
56
56
|
export const backButtonStyles = css([
|
|
57
57
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
58
58
|
buttonContainerStyles, {
|
|
59
59
|
left: 0
|
|
60
60
|
}]);
|
|
61
61
|
|
|
62
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-array-arguments, @atlaskit/ui-styling-standard/no-exported-styles
|
|
62
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-array-arguments, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
63
63
|
export const nextButtonStyles = css([
|
|
64
64
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
65
65
|
buttonContainerStyles, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
3
|
|
|
4
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
5
5
|
export const flexColumn = css({
|
|
6
6
|
display: 'flex',
|
|
7
7
|
flexDirection: 'column',
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
4
4
|
export const tabsWrapperStyles = css({
|
|
5
5
|
marginTop: "var(--ds-space-150, 12px)"
|
|
6
6
|
});
|
|
7
7
|
|
|
8
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
9
9
|
export const spinnerContainerStyles = css({
|
|
10
10
|
minHeight: '80px',
|
|
11
11
|
display: 'flex',
|
|
@@ -15,7 +15,7 @@ export const spinnerContainerStyles = css({
|
|
|
15
15
|
flexGrow: 1
|
|
16
16
|
});
|
|
17
17
|
|
|
18
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
19
19
|
export const flexColumnStyles = css({
|
|
20
20
|
display: 'flex',
|
|
21
21
|
flexDirection: 'column'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
3
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
4
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles
|
|
4
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
5
5
|
export const rootContainerStyles = css`
|
|
6
6
|
width: ${getBooleanFF('platform.linking-platform.link-picker.fixed-height-search-results') ? undefined : 'var(--link-picker-width)'};
|
|
7
7
|
padding-left: var(--link-picker-padding-left);
|
|
@@ -13,7 +13,7 @@ export const rootContainerStyles = css`
|
|
|
13
13
|
display: block !important;
|
|
14
14
|
`;
|
|
15
15
|
|
|
16
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
17
17
|
export const formFooterMargin = css({
|
|
18
18
|
marginTop: "var(--ds-space-200, 16px)"
|
|
19
19
|
});
|
|
@@ -4,7 +4,7 @@ import { css } from '@emotion/react';
|
|
|
4
4
|
* Overidding text input margin top which design system provides as a default spacer
|
|
5
5
|
* but it gets in the way of our layout
|
|
6
6
|
*/
|
|
7
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
8
8
|
export const fieldStyles = css({
|
|
9
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
10
10
|
'> div': {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
3
|
|
|
4
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
5
5
|
export const styles = css({
|
|
6
6
|
alignItems: 'center'
|
|
7
7
|
});
|
package/dist/es2019/ui/messages-provider/lazy-messages-provider/utils/fetch-messages-for-locale.js
CHANGED
|
@@ -1,38 +1,21 @@
|
|
|
1
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
2
1
|
import { locales } from '../../../../i18n';
|
|
3
2
|
export const fetchMessagesForLocale = async locale => {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const messages = await locales[localeKey]();
|
|
9
|
-
return messages.default;
|
|
10
|
-
}
|
|
11
|
-
} catch (e) {
|
|
12
|
-
// ignore
|
|
13
|
-
}
|
|
14
|
-
try {
|
|
15
|
-
const parentLocale = locale.split(/[-_]/)[0];
|
|
16
|
-
if (parentLocale in locales) {
|
|
17
|
-
const messages = await locales[parentLocale]();
|
|
18
|
-
return messages.default;
|
|
19
|
-
}
|
|
20
|
-
} catch (e) {
|
|
21
|
-
// ignore
|
|
22
|
-
}
|
|
23
|
-
} else {
|
|
24
|
-
try {
|
|
25
|
-
const messages = await import( /* webpackChunkName: "@atlaskit-internal_link-picker-i18n-[request]" */`../../../../i18n/${locale.replace('-', '_')}`);
|
|
3
|
+
try {
|
|
4
|
+
const localeKey = locale.replace('-', '_');
|
|
5
|
+
if (localeKey in locales) {
|
|
6
|
+
const messages = await locales[localeKey]();
|
|
26
7
|
return messages.default;
|
|
27
|
-
} catch (e) {
|
|
28
|
-
// ignore
|
|
29
8
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
9
|
+
} catch (e) {
|
|
10
|
+
// ignore
|
|
11
|
+
}
|
|
12
|
+
try {
|
|
13
|
+
const parentLocale = locale.split(/[-_]/)[0];
|
|
14
|
+
if (parentLocale in locales) {
|
|
15
|
+
const messages = await locales[parentLocale]();
|
|
33
16
|
return messages.default;
|
|
34
|
-
} catch (e) {
|
|
35
|
-
// ignore
|
|
36
17
|
}
|
|
18
|
+
} catch (e) {
|
|
19
|
+
// ignore
|
|
37
20
|
}
|
|
38
21
|
};
|
package/dist/es2019/ui/styled.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
3
|
|
|
4
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
5
5
|
export const fixedWidthContainerStyles = css({
|
|
6
6
|
width: 'var(--link-picker-width)'
|
|
7
7
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
3
|
|
|
4
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
5
5
|
export var minHeightComponentStyles = css({
|
|
6
6
|
display: 'flex',
|
|
7
7
|
alignItems: 'stretch',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
3
|
|
|
4
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
5
5
|
export var errorBoundaryFallbackStyles = css({
|
|
6
6
|
lineHeight: 'initial'
|
|
7
7
|
});
|
package/dist/esm/ui/index.js
CHANGED
|
@@ -9,7 +9,7 @@ var pulseKeyframes = keyframes({
|
|
|
9
9
|
// Styling from atlassian-frontend/packages/design-system/onboarding/src/styled/target.tsx
|
|
10
10
|
var pulseColor = 'rgb(101, 84, 192)';
|
|
11
11
|
|
|
12
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
13
13
|
export var pulseStyles = css({
|
|
14
14
|
display: 'inline-flex',
|
|
15
15
|
borderRadius: '3px',
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
3
|
|
|
4
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
5
5
|
export var formFooterStyles = css({
|
|
6
6
|
display: 'flex',
|
|
7
7
|
justifyContent: 'flex-end'
|
|
8
8
|
});
|
|
9
9
|
|
|
10
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
11
11
|
export var formFooterActionStyles = css({
|
|
12
12
|
marginRight: 'auto'
|
|
13
13
|
});
|
|
@@ -3,10 +3,12 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
4
|
import { jsx } from '@emotion/react';
|
|
5
5
|
import { defineMessages, FormattedMessage, useIntl } from 'react-intl-next';
|
|
6
|
+
import { isFedRamp } from '@atlaskit/atlassian-context';
|
|
6
7
|
import Button from '@atlaskit/button';
|
|
7
8
|
import { GenericErrorSVG } from '../../../../common/generic-error-svg';
|
|
8
9
|
import { EmptyState } from '../../../../common/ui/empty-state';
|
|
9
10
|
export var CONTACT_SUPPORT_LINK = 'https://support.atlassian.com/contact/';
|
|
11
|
+
export var CONTACT_SUPPORT_LINK_FEDRAMP = 'https://gcs.atlassian-us-gov-mod.net/servicedesk/customer/portals';
|
|
10
12
|
export var messages = defineMessages({
|
|
11
13
|
searchErrorHeader: {
|
|
12
14
|
id: 'fabric.linkPicker.search.error.heading',
|
|
@@ -33,7 +35,7 @@ export var LinkSearchError = function LinkSearchError() {
|
|
|
33
35
|
return jsx(Button, {
|
|
34
36
|
appearance: "link",
|
|
35
37
|
spacing: "none",
|
|
36
|
-
href: CONTACT_SUPPORT_LINK,
|
|
38
|
+
href: isFedRamp() ? CONTACT_SUPPORT_LINK_FEDRAMP : CONTACT_SUPPORT_LINK,
|
|
37
39
|
target: "_blank",
|
|
38
40
|
rel: "noopener noreferrer"
|
|
39
41
|
}, label);
|
|
@@ -58,13 +58,13 @@ export var composeListItemStyles = function composeListItemStyles() {
|
|
|
58
58
|
listItemFocusStyles);
|
|
59
59
|
};
|
|
60
60
|
|
|
61
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
61
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
62
62
|
export var itemNameStyles = css({
|
|
63
63
|
overflow: 'hidden',
|
|
64
64
|
alignContent: 'center'
|
|
65
65
|
});
|
|
66
66
|
|
|
67
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
67
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
68
68
|
export var listItemNameStyles = css({
|
|
69
69
|
color: "var(--ds-text, ".concat(N800, ")"),
|
|
70
70
|
overflow: 'hidden',
|
|
@@ -73,7 +73,7 @@ export var listItemNameStyles = css({
|
|
|
73
73
|
lineHeight: '20px'
|
|
74
74
|
});
|
|
75
75
|
|
|
76
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
76
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
77
77
|
export var listItemContextStyles = css({
|
|
78
78
|
color: "var(--ds-text, ".concat(N300, ")"),
|
|
79
79
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
@@ -82,26 +82,26 @@ export var listItemContextStyles = css({
|
|
|
82
82
|
display: 'flex'
|
|
83
83
|
});
|
|
84
84
|
|
|
85
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
85
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
86
86
|
export var listItemContainerStyles = css({
|
|
87
87
|
overflow: 'hidden',
|
|
88
88
|
textOverflow: 'ellipsis'
|
|
89
89
|
});
|
|
90
90
|
|
|
91
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
91
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
92
92
|
export var listItemContainerInnerStyles = css({
|
|
93
93
|
color: "var(--ds-text-subtlest, ".concat(N200, ")"),
|
|
94
94
|
whiteSpace: 'nowrap'
|
|
95
95
|
});
|
|
96
96
|
|
|
97
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-exported-styles
|
|
97
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
98
98
|
export var itemIconStyles = css({
|
|
99
99
|
minWidth: "var(--ds-space-200, 16px)",
|
|
100
100
|
marginTop: "var(--ds-space-050, 4px)",
|
|
101
101
|
marginRight: "var(--ds-space-150, 12px)"
|
|
102
102
|
});
|
|
103
103
|
|
|
104
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
104
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
105
105
|
export var imgStyles = css({
|
|
106
106
|
maxWidth: "var(--ds-space-200, 16px)"
|
|
107
107
|
});
|
|
@@ -4,7 +4,7 @@ import { css } from '@emotion/react';
|
|
|
4
4
|
// AFP-2532 TODO: Fix automatic suppressions below
|
|
5
5
|
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
6
6
|
import { typography } from '@atlaskit/theme';
|
|
7
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
8
8
|
export var listContainerStyles = css({
|
|
9
9
|
width: '100%',
|
|
10
10
|
paddingTop: 0,
|
|
@@ -16,14 +16,14 @@ export var listContainerStyles = css({
|
|
|
16
16
|
flexDirection: 'column'
|
|
17
17
|
});
|
|
18
18
|
|
|
19
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
20
20
|
export var spinnerContainerStyles = css({
|
|
21
21
|
flexGrow: 1,
|
|
22
22
|
flexDirection: 'column',
|
|
23
23
|
alignItems: 'center'
|
|
24
24
|
});
|
|
25
25
|
|
|
26
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
27
27
|
export var listStyles = css({
|
|
28
28
|
padding: "var(--ds-space-0, 0px)",
|
|
29
29
|
marginTop: "var(--ds-space-0, 0px)",
|
|
@@ -33,7 +33,7 @@ export var listStyles = css({
|
|
|
33
33
|
listStyle: 'none'
|
|
34
34
|
});
|
|
35
35
|
|
|
36
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/
|
|
36
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
37
37
|
export var listTitleStyles = css(typography.h100(), {
|
|
38
38
|
textTransform: 'uppercase',
|
|
39
39
|
marginTop: 0,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
3
|
import { N0, N30 } from '@atlaskit/theme/colors';
|
|
4
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
5
5
|
export var scrollingContainerStyles = css({
|
|
6
6
|
overflowX: 'auto',
|
|
7
7
|
scrollBehavior: 'smooth',
|
|
@@ -25,7 +25,7 @@ export var scrollingContainerStyles = css({
|
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
|
|
28
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
29
29
|
export var containerStyles = css({
|
|
30
30
|
position: 'relative',
|
|
31
31
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
@@ -44,7 +44,7 @@ export var containerStyles = css({
|
|
|
44
44
|
}
|
|
45
45
|
});
|
|
46
46
|
|
|
47
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
47
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
48
48
|
export var buttonContainerStyles = css({
|
|
49
49
|
position: 'absolute',
|
|
50
50
|
top: "var(--ds-space-050, 4px)",
|
|
@@ -52,14 +52,14 @@ export var buttonContainerStyles = css({
|
|
|
52
52
|
backgroundColor: "var(--ds-surface, ".concat(N0, ")")
|
|
53
53
|
});
|
|
54
54
|
|
|
55
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-array-arguments, @atlaskit/ui-styling-standard/no-exported-styles
|
|
55
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-array-arguments, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
56
56
|
export var backButtonStyles = css([
|
|
57
57
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
58
58
|
buttonContainerStyles, {
|
|
59
59
|
left: 0
|
|
60
60
|
}]);
|
|
61
61
|
|
|
62
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-array-arguments, @atlaskit/ui-styling-standard/no-exported-styles
|
|
62
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-array-arguments, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
63
63
|
export var nextButtonStyles = css([
|
|
64
64
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
65
65
|
buttonContainerStyles, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
3
|
|
|
4
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
5
5
|
export var flexColumn = css({
|
|
6
6
|
display: 'flex',
|
|
7
7
|
flexDirection: 'column',
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
4
4
|
export var tabsWrapperStyles = css({
|
|
5
5
|
marginTop: "var(--ds-space-150, 12px)"
|
|
6
6
|
});
|
|
7
7
|
|
|
8
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
9
9
|
export var spinnerContainerStyles = css({
|
|
10
10
|
minHeight: '80px',
|
|
11
11
|
display: 'flex',
|
|
@@ -15,7 +15,7 @@ export var spinnerContainerStyles = css({
|
|
|
15
15
|
flexGrow: 1
|
|
16
16
|
});
|
|
17
17
|
|
|
18
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
19
19
|
export var flexColumnStyles = css({
|
|
20
20
|
display: 'flex',
|
|
21
21
|
flexDirection: 'column'
|
|
@@ -3,10 +3,10 @@ var _templateObject;
|
|
|
3
3
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
4
|
import { css } from '@emotion/react';
|
|
5
5
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
6
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles
|
|
6
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
7
7
|
export var rootContainerStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\twidth: ", ";\n\tpadding-left: var(--link-picker-padding-left);\n\tpadding-right: var(--link-picker-padding-right);\n\tpadding-top: var(--link-picker-padding-top);\n\tpadding-bottom: var(--link-picker-padding-bottom);\n\tbox-sizing: border-box;\n\tline-height: initial;\n\tdisplay: block !important;\n"])), getBooleanFF('platform.linking-platform.link-picker.fixed-height-search-results') ? undefined : 'var(--link-picker-width)');
|
|
8
8
|
|
|
9
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
9
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
10
10
|
export var formFooterMargin = css({
|
|
11
11
|
marginTop: "var(--ds-space-200, 16px)"
|
|
12
12
|
});
|
|
@@ -4,7 +4,7 @@ import { css } from '@emotion/react';
|
|
|
4
4
|
* Overidding text input margin top which design system provides as a default spacer
|
|
5
5
|
* but it gets in the way of our layout
|
|
6
6
|
*/
|
|
7
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
8
8
|
export var fieldStyles = css({
|
|
9
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
10
10
|
'> div': {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
3
|
|
|
4
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
5
5
|
export var styles = css({
|
|
6
6
|
alignItems: 'center'
|
|
7
7
|
});
|
package/dist/esm/ui/messages-provider/lazy-messages-provider/utils/fetch-messages-for-locale.js
CHANGED
|
@@ -1,81 +1,52 @@
|
|
|
1
1
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
2
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
4
3
|
import { locales } from '../../../../i18n';
|
|
5
4
|
export var fetchMessagesForLocale = /*#__PURE__*/function () {
|
|
6
5
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(locale) {
|
|
7
|
-
var localeKey, messages, parentLocale, _messages
|
|
6
|
+
var localeKey, messages, parentLocale, _messages;
|
|
8
7
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
9
8
|
while (1) switch (_context.prev = _context.next) {
|
|
10
9
|
case 0:
|
|
11
|
-
|
|
12
|
-
_context.next = 25;
|
|
13
|
-
break;
|
|
14
|
-
}
|
|
15
|
-
_context.prev = 1;
|
|
10
|
+
_context.prev = 0;
|
|
16
11
|
localeKey = locale.replace('-', '_');
|
|
17
12
|
if (!(localeKey in locales)) {
|
|
18
|
-
_context.next =
|
|
13
|
+
_context.next = 7;
|
|
19
14
|
break;
|
|
20
15
|
}
|
|
21
|
-
_context.next =
|
|
16
|
+
_context.next = 5;
|
|
22
17
|
return locales[localeKey]();
|
|
23
|
-
case
|
|
18
|
+
case 5:
|
|
24
19
|
messages = _context.sent;
|
|
25
20
|
return _context.abrupt("return", messages.default);
|
|
26
|
-
case
|
|
27
|
-
_context.next =
|
|
21
|
+
case 7:
|
|
22
|
+
_context.next = 11;
|
|
28
23
|
break;
|
|
29
|
-
case
|
|
30
|
-
_context.prev =
|
|
31
|
-
_context.t0 = _context["catch"](
|
|
32
|
-
case
|
|
33
|
-
_context.prev =
|
|
24
|
+
case 9:
|
|
25
|
+
_context.prev = 9;
|
|
26
|
+
_context.t0 = _context["catch"](0);
|
|
27
|
+
case 11:
|
|
28
|
+
_context.prev = 11;
|
|
34
29
|
parentLocale = locale.split(/[-_]/)[0];
|
|
35
30
|
if (!(parentLocale in locales)) {
|
|
36
|
-
_context.next =
|
|
31
|
+
_context.next = 18;
|
|
37
32
|
break;
|
|
38
33
|
}
|
|
39
|
-
_context.next =
|
|
34
|
+
_context.next = 16;
|
|
40
35
|
return locales[parentLocale]();
|
|
41
|
-
case
|
|
36
|
+
case 16:
|
|
42
37
|
_messages = _context.sent;
|
|
43
38
|
return _context.abrupt("return", _messages.default);
|
|
44
|
-
case
|
|
45
|
-
_context.next =
|
|
46
|
-
break;
|
|
47
|
-
case 21:
|
|
48
|
-
_context.prev = 21;
|
|
49
|
-
_context.t1 = _context["catch"](12);
|
|
50
|
-
case 23:
|
|
51
|
-
_context.next = 44;
|
|
39
|
+
case 18:
|
|
40
|
+
_context.next = 22;
|
|
52
41
|
break;
|
|
53
|
-
case
|
|
54
|
-
_context.prev =
|
|
55
|
-
_context.
|
|
56
|
-
|
|
57
|
-
case 28:
|
|
58
|
-
_messages2 = _context.sent;
|
|
59
|
-
return _context.abrupt("return", _messages2.default);
|
|
60
|
-
case 32:
|
|
61
|
-
_context.prev = 32;
|
|
62
|
-
_context.t2 = _context["catch"](25);
|
|
63
|
-
case 34:
|
|
64
|
-
_context.prev = 34;
|
|
65
|
-
_parentLocale = locale.split(/[-_]/)[0];
|
|
66
|
-
_context.next = 38;
|
|
67
|
-
return import( /* webpackChunkName: "@atlaskit-internal_link-picker-i18n-[request]" */"../../../../i18n/".concat(_parentLocale));
|
|
68
|
-
case 38:
|
|
69
|
-
_messages3 = _context.sent;
|
|
70
|
-
return _context.abrupt("return", _messages3.default);
|
|
71
|
-
case 42:
|
|
72
|
-
_context.prev = 42;
|
|
73
|
-
_context.t3 = _context["catch"](34);
|
|
74
|
-
case 44:
|
|
42
|
+
case 20:
|
|
43
|
+
_context.prev = 20;
|
|
44
|
+
_context.t1 = _context["catch"](11);
|
|
45
|
+
case 22:
|
|
75
46
|
case "end":
|
|
76
47
|
return _context.stop();
|
|
77
48
|
}
|
|
78
|
-
}, _callee, null, [[
|
|
49
|
+
}, _callee, null, [[0, 9], [11, 20]]);
|
|
79
50
|
}));
|
|
80
51
|
return function fetchMessagesForLocale(_x) {
|
|
81
52
|
return _ref.apply(this, arguments);
|
package/dist/esm/ui/styled.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
3
|
|
|
4
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
5
5
|
export var fixedWidthContainerStyles = css({
|
|
6
6
|
width: 'var(--link-picker-width)'
|
|
7
7
|
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
3
|
export declare const CONTACT_SUPPORT_LINK = "https://support.atlassian.com/contact/";
|
|
4
|
+
export declare const CONTACT_SUPPORT_LINK_FEDRAMP = "https://gcs.atlassian-us-gov-mod.net/servicedesk/customer/portals";
|
|
4
5
|
export declare const messages: {
|
|
5
6
|
searchErrorHeader: {
|
|
6
7
|
id: string;
|