@atlaskit/mention 23.1.0 → 23.2.1
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 +18 -0
- package/afm-jira/tsconfig.json +54 -0
- package/afm-post-office/tsconfig.json +54 -0
- package/compass.yml +0 -1
- package/dist/cjs/api/PresenceResource.js +6 -6
- package/dist/cjs/components/Mention/PrimitiveMention.js +9 -3
- package/dist/cjs/components/MentionDescriptionByline/styles.js +12 -4
- package/dist/cjs/components/MentionItem/styles.js +81 -24
- package/dist/cjs/components/MentionList/styles.js +19 -6
- package/dist/cjs/components/MentionListError/styles.js +25 -9
- package/dist/cjs/components/MentionPicker/index.js +2 -0
- package/dist/cjs/components/MentionPicker/styles.js +33 -7
- package/dist/cjs/components/Scrollable/styles.js +15 -4
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/es2019/api/PresenceResource.js +4 -4
- package/dist/es2019/components/Mention/PrimitiveMention.js +26 -20
- package/dist/es2019/components/MentionDescriptionByline/styles.js +11 -12
- package/dist/es2019/components/MentionItem/styles.js +71 -65
- package/dist/es2019/components/MentionList/styles.js +15 -11
- package/dist/es2019/components/MentionListError/styles.js +26 -24
- package/dist/es2019/components/MentionPicker/index.js +2 -0
- package/dist/es2019/components/MentionPicker/styles.js +29 -22
- package/dist/es2019/components/Scrollable/styles.js +14 -14
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/esm/api/PresenceResource.js +6 -6
- package/dist/esm/components/Mention/PrimitiveMention.js +9 -3
- package/dist/esm/components/MentionDescriptionByline/styles.js +11 -4
- package/dist/esm/components/MentionItem/styles.js +80 -24
- package/dist/esm/components/MentionList/styles.js +18 -6
- package/dist/esm/components/MentionListError/styles.js +26 -9
- package/dist/esm/components/MentionPicker/index.js +2 -0
- package/dist/esm/components/MentionPicker/styles.js +32 -7
- package/dist/esm/components/Scrollable/styles.js +14 -4
- package/dist/esm/util/analytics.js +1 -1
- package/docs/0-intro.tsx +8 -14
- package/docs/1-in-editor.tsx +16 -17
- package/local-config-example.ts +38 -38
- package/package.json +104 -103
- package/report.api.md +619 -661
|
@@ -1,14 +1,13 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
1
2
|
import styled from '@emotion/styled';
|
|
2
3
|
import { N100 } from '@atlaskit/theme/colors';
|
|
3
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
4
|
-
export const DescriptionBylineStyle = styled.span
|
|
5
|
-
color:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
white-space: nowrap;
|
|
14
|
-
`;
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
5
|
+
export const DescriptionBylineStyle = styled.span({
|
|
6
|
+
color: `var(--ds-text-subtlest, ${N100})`,
|
|
7
|
+
fontSize: '12px',
|
|
8
|
+
marginTop: "var(--ds-space-025, 2px)",
|
|
9
|
+
display: 'block',
|
|
10
|
+
overflow: 'hidden',
|
|
11
|
+
textOverflow: 'ellipsis',
|
|
12
|
+
whiteSpace: 'nowrap'
|
|
13
|
+
});
|
|
@@ -1,77 +1,83 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
1
2
|
import styled from '@emotion/styled';
|
|
2
3
|
import { N900, N100, N30, N500 } from '@atlaskit/theme/colors';
|
|
3
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
4
|
-
export const RowStyle = styled.div
|
|
5
|
-
|
|
6
|
-
display: flex
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
overflow: hidden
|
|
10
|
-
padding:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
5
|
+
export const RowStyle = styled.div({
|
|
6
|
+
alignItems: 'center',
|
|
7
|
+
display: 'flex',
|
|
8
|
+
flexDirection: 'row',
|
|
9
|
+
flexWrap: 'wrap',
|
|
10
|
+
overflow: 'hidden',
|
|
11
|
+
padding: `${"var(--ds-space-075, 6px)"} ${"var(--ds-space-150, 12px)"}`,
|
|
12
|
+
textOverflow: 'ellipsis',
|
|
13
|
+
verticalAlign: 'middle'
|
|
14
|
+
});
|
|
14
15
|
|
|
15
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
16
|
-
export const AvatarStyle = styled.span
|
|
17
|
-
position: relative
|
|
18
|
-
flex: initial
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
17
|
+
export const AvatarStyle = styled.span(props => ({
|
|
18
|
+
position: 'relative',
|
|
19
|
+
flex: 'initial',
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
21
|
+
opacity: props.restricted ? '0.5' : 'inherit'
|
|
22
|
+
}));
|
|
21
23
|
|
|
22
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
23
|
-
export const NameSectionStyle = styled.div
|
|
24
|
-
flex: 1
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
25
|
+
export const NameSectionStyle = styled.div(props => ({
|
|
26
|
+
flex: 1,
|
|
27
|
+
minWidth: 0,
|
|
28
|
+
marginLeft: "var(--ds-space-150, 12px)",
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
30
|
+
opacity: props.restricted ? '0.5' : 'inherit'
|
|
31
|
+
}));
|
|
29
32
|
|
|
30
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
31
|
-
export const FullNameStyle = styled.span
|
|
32
|
-
display: block
|
|
33
|
-
overflow: hidden
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
color:
|
|
37
|
-
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
34
|
+
export const FullNameStyle = styled.span({
|
|
35
|
+
display: 'block',
|
|
36
|
+
overflow: 'hidden',
|
|
37
|
+
textOverflow: 'ellipsis',
|
|
38
|
+
whiteSpace: 'nowrap',
|
|
39
|
+
color: `var(--ds-text, ${N900})`
|
|
40
|
+
});
|
|
38
41
|
|
|
39
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
40
|
-
export const InfoSectionStyle = styled.div
|
|
41
|
-
display: flex
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
42
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
43
|
+
export const InfoSectionStyle = styled.div(props => ({
|
|
44
|
+
display: 'flex',
|
|
45
|
+
flexDirection: 'column',
|
|
46
|
+
textAlign: 'right',
|
|
47
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
48
|
+
opacity: props.restricted ? '0.5' : 'inherit',
|
|
49
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
50
|
+
'&': {
|
|
47
51
|
/* Lozenge */
|
|
48
|
-
|
|
49
|
-
|
|
52
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
53
|
+
'& > span': {
|
|
54
|
+
marginBottom: "var(--ds-space-025, 2px)"
|
|
50
55
|
}
|
|
51
56
|
}
|
|
52
|
-
|
|
57
|
+
}));
|
|
53
58
|
|
|
54
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
55
|
-
export const TimeStyle = styled.div
|
|
56
|
-
|
|
57
|
-
flex: none
|
|
58
|
-
color:
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
60
|
+
export const TimeStyle = styled.div({
|
|
61
|
+
marginLeft: "var(--ds-space-250, 20px)",
|
|
62
|
+
flex: 'none',
|
|
63
|
+
color: `var(--ds-text-subtlest, ${N100})`,
|
|
64
|
+
fontSize: '12px'
|
|
65
|
+
});
|
|
61
66
|
export const MENTION_ITEM_HEIGHT = 48;
|
|
62
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
63
|
-
export const MentionItemStyle = styled.div
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
67
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
68
|
+
export const MentionItemStyle = styled.div(props => ({
|
|
69
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
70
|
+
backgroundColor: props.selected ? `var(--ds-background-selected, ${N30})` : 'transparent',
|
|
71
|
+
display: 'block',
|
|
72
|
+
overflow: 'hidden',
|
|
73
|
+
listStyleType: 'none',
|
|
74
|
+
height: `${MENTION_ITEM_HEIGHT}px`,
|
|
75
|
+
lineHeight: 1.2,
|
|
76
|
+
cursor: 'pointer'
|
|
77
|
+
}));
|
|
72
78
|
|
|
73
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
74
|
-
export const AccessSectionStyle = styled.div
|
|
75
|
-
|
|
76
|
-
color:
|
|
77
|
-
|
|
79
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
80
|
+
export const AccessSectionStyle = styled.div({
|
|
81
|
+
paddingLeft: "var(--ds-space-050, 4px)",
|
|
82
|
+
color: `var(--ds-text-subtle, ${N500})`
|
|
83
|
+
});
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
1
2
|
import styled from '@emotion/styled';
|
|
2
3
|
import { mentionListWidth, noDialogContainerBorderColor, noDialogContainerBorderRadius, noDialogContainerBoxShadow } from '../../shared-styles';
|
|
3
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
4
|
-
export const MentionListStyle = styled.div
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
5
|
+
export const MentionListStyle = styled.div(props => ({
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
7
|
+
display: props.empty ? 'none' : 'block',
|
|
7
8
|
/* list style */
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
border
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
10
|
+
width: mentionListWidth,
|
|
11
|
+
color: "var(--ds-text-subtle, #333)",
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
13
|
+
border: `1px solid ${noDialogContainerBorderColor}`,
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
15
|
+
borderRadius: noDialogContainerBorderRadius,
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
17
|
+
boxShadow: noDialogContainerBoxShadow
|
|
18
|
+
}));
|
|
@@ -1,35 +1,37 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
1
2
|
import styled from '@emotion/styled';
|
|
2
3
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
3
4
|
import { N500 } from '@atlaskit/theme/colors';
|
|
4
5
|
import { h400 } from '@atlaskit/theme/typography';
|
|
5
6
|
|
|
6
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
7
|
-
export const MentionListErrorStyle = styled.div
|
|
8
|
-
|
|
9
|
-
display: flex
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
color:
|
|
14
|
-
border: 1px solid ${"var(--ds-surface-overlay, #fff)"}
|
|
15
|
-
|
|
16
|
-
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
8
|
+
export const MentionListErrorStyle = styled.div({
|
|
9
|
+
alignItems: 'center',
|
|
10
|
+
display: 'flex',
|
|
11
|
+
justifyContent: 'center',
|
|
12
|
+
flexDirection: 'column',
|
|
13
|
+
backgroundColor: "var(--ds-surface-overlay, white)",
|
|
14
|
+
color: `var(--ds-text-subtle, ${N500})`,
|
|
15
|
+
border: `1px solid ${"var(--ds-surface-overlay, #fff)"}`,
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
17
|
+
borderRadius: `${borderRadius()}px`
|
|
18
|
+
});
|
|
17
19
|
|
|
18
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
19
|
-
export const GenericErrorVisualStyle = styled.div
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
width:
|
|
23
|
-
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
21
|
+
export const GenericErrorVisualStyle = styled.div({
|
|
22
|
+
marginBottom: "var(--ds-space-100, 8px)",
|
|
23
|
+
marginTop: "var(--ds-space-400, 32px)",
|
|
24
|
+
width: "var(--ds-space-1000, 80px)"
|
|
25
|
+
});
|
|
24
26
|
|
|
25
27
|
// TODO: Figure out why the themed css function is causing type errors when passed prop children
|
|
26
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-styled-tagged-template-expression -- Ignored via go/DSP-18766
|
|
27
29
|
export const MentionListErrorHeadlineStyle = styled.div`
|
|
28
|
-
|
|
29
|
-
|
|
30
|
+
${h400()};
|
|
31
|
+
margin-bottom: ${"var(--ds-space-100, 8px)"};
|
|
30
32
|
`;
|
|
31
33
|
|
|
32
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
33
|
-
export const MentionListAdviceStyle = styled.div
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
35
|
+
export const MentionListAdviceStyle = styled.div({
|
|
36
|
+
marginBottom: "var(--ds-space-600, 48px)"
|
|
37
|
+
});
|
|
@@ -196,5 +196,7 @@ _defineProperty(MentionPicker, "defaultProps", {
|
|
|
196
196
|
const MentionPickerWithIntl = injectIntl(MentionPicker, {
|
|
197
197
|
forwardRef: true
|
|
198
198
|
});
|
|
199
|
+
|
|
200
|
+
// @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
199
201
|
export const MentionPickerWithAnalytics = withAnalyticsEvents({})(MentionPickerWithIntl);
|
|
200
202
|
export default MentionPickerWithAnalytics;
|
|
@@ -1,28 +1,35 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
1
2
|
import styled from '@emotion/styled';
|
|
2
3
|
import { N100 } from '@atlaskit/theme/colors';
|
|
3
4
|
import { mentionListWidth, noDialogContainerBorderColor, noDialogContainerBorderRadius, noDialogContainerBoxShadow } from '../../shared-styles';
|
|
4
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
5
|
-
export const MentionPickerStyle = styled.div
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
6
|
+
export const MentionPickerStyle = styled.div(props => ({
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
8
|
+
display: props.visible ? 'block' : 'none'
|
|
9
|
+
}));
|
|
8
10
|
|
|
9
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
10
|
-
export const MentionPickerInfoStyle = styled.div
|
|
11
|
-
background:
|
|
12
|
-
color:
|
|
13
|
-
|
|
14
|
-
border
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
12
|
+
export const MentionPickerInfoStyle = styled.div({
|
|
13
|
+
background: "var(--ds-surface, #fff)",
|
|
14
|
+
color: `var(--ds-text-subtlest, ${N100})`,
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
16
|
+
border: `1px solid ${noDialogContainerBorderColor}`,
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
18
|
+
borderRadius: noDialogContainerBorderRadius,
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
20
|
+
boxShadow: noDialogContainerBoxShadow,
|
|
21
|
+
display: 'block',
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
23
|
+
width: mentionListWidth,
|
|
24
|
+
whiteSpace: 'nowrap',
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
26
|
+
'&': {
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
28
|
+
p: {
|
|
29
|
+
margin: 0,
|
|
30
|
+
overflow: 'hidden',
|
|
31
|
+
padding: "var(--ds-space-100, 8px)",
|
|
32
|
+
textOverflow: 'ellipsis'
|
|
26
33
|
}
|
|
27
34
|
}
|
|
28
|
-
|
|
35
|
+
});
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
1
2
|
import styled from '@emotion/styled';
|
|
2
3
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
3
4
|
import { scrollableMaxHeight } from '../../shared-styles';
|
|
4
5
|
|
|
5
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
6
|
-
export const ScrollableStyle = styled.div
|
|
7
|
-
display: block
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
`;
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
7
|
+
export const ScrollableStyle = styled.div({
|
|
8
|
+
display: 'block',
|
|
9
|
+
overflowX: 'hidden',
|
|
10
|
+
overflowY: 'auto',
|
|
11
|
+
padding: `${"var(--ds-space-050, 4px)"} 0`,
|
|
12
|
+
margin: 0,
|
|
13
|
+
background: "var(--ds-surface, white)",
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
15
|
+
maxHeight: scrollableMaxHeight,
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
17
|
+
borderRadius: `${borderRadius()}px`
|
|
18
|
+
});
|
|
@@ -2,7 +2,7 @@ import { OPERATIONAL_EVENT_TYPE, UI_EVENT_TYPE } from '@atlaskit/analytics-gas-t
|
|
|
2
2
|
import { ELEMENTS_CHANNEL } from '../_constants';
|
|
3
3
|
import { isSpecialMentionText } from '../types';
|
|
4
4
|
const packageName = "@atlaskit/mention";
|
|
5
|
-
const packageVersion = "23.1
|
|
5
|
+
const packageVersion = "23.2.1";
|
|
6
6
|
export const SLI_EVENT_TYPE = 'sli';
|
|
7
7
|
export const SMART_EVENT_TYPE = 'smart';
|
|
8
8
|
export let SliNames = /*#__PURE__*/function (SliNames) {
|
|
@@ -25,8 +25,8 @@ var CacheEntry = /*#__PURE__*/function () {
|
|
|
25
25
|
}]);
|
|
26
26
|
return CacheEntry;
|
|
27
27
|
}();
|
|
28
|
-
var AbstractPresenceResource = /*#__PURE__*/function (
|
|
29
|
-
_inherits(AbstractPresenceResource,
|
|
28
|
+
var AbstractPresenceResource = /*#__PURE__*/function (_AbstractResource) {
|
|
29
|
+
_inherits(AbstractPresenceResource, _AbstractResource);
|
|
30
30
|
var _super = _createSuper(AbstractPresenceResource);
|
|
31
31
|
function AbstractPresenceResource() {
|
|
32
32
|
_classCallCheck(this, AbstractPresenceResource);
|
|
@@ -317,10 +317,10 @@ export var DefaultPresenceParser = /*#__PURE__*/function () {
|
|
|
317
317
|
}
|
|
318
318
|
|
|
319
319
|
/*
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
320
|
+
This is a bit of an odd exception. In the case where a user is in "Focus Mode", their presence state
|
|
321
|
+
is returned as 'busy' along with a `stateMetadata` object containing a `focus` field.
|
|
322
|
+
In this case we ignore the value of the `state` field and treat the presence as a 'focus' state.
|
|
323
|
+
*/
|
|
324
324
|
}, {
|
|
325
325
|
key: "isFocusState",
|
|
326
326
|
value: function isFocusState(presence) {
|
|
@@ -4,7 +4,11 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
4
4
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
5
5
|
var _excluded = ["mentionType"];
|
|
6
6
|
var _mentionStyle, _templateObject;
|
|
7
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* @jsxRuntime classic
|
|
9
|
+
* @jsx jsx
|
|
10
|
+
*/
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
12
|
import { jsx, css } from '@emotion/react';
|
|
9
13
|
import { B400, N500, N30A, N20 } from '@atlaskit/theme/colors';
|
|
10
14
|
import { MentionType } from '../../types';
|
|
@@ -37,8 +41,10 @@ var PrimitiveMention = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
37
41
|
var mentionType = _ref2.mentionType,
|
|
38
42
|
other = _objectWithoutProperties(_ref2, _excluded);
|
|
39
43
|
return jsx("span", _extends({
|
|
40
|
-
ref: ref
|
|
41
|
-
|
|
44
|
+
ref: ref
|
|
45
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
46
|
+
,
|
|
47
|
+
css: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t\t\t\t\tdisplay: inline;\n\t\t\t\t\tborder: 1px solid ", ";\n\t\t\t\t\tbackground: ", ";\n\t\t\t\t\tcolor: ", ";\n\t\t\t\t\tborder-radius: 20px;\n\t\t\t\t\tcursor: pointer;\n\t\t\t\t\tpadding: 0 0.3em 2px 0.23em;\n\t\t\t\t\tline-height: 1.714;\n\t\t\t\t\tfont-size: 1em;\n\t\t\t\t\tfont-weight: normal;\n\t\t\t\t\tword-break: break-word;\n\t\t\t\t\t&:hover {\n\t\t\t\t\t\tbackground: ", ";\n\t\t\t\t\t}\n\t\t\t\t\t&:active {\n\t\t\t\t\t\tbackground: ", ";\n\t\t\t\t\t}\n\t\t\t\t"])), getStyle({
|
|
42
48
|
mentionType: mentionType
|
|
43
49
|
}, 'borderColor'), getStyle({
|
|
44
50
|
mentionType: mentionType
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
var _templateObject;
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
2
|
import styled from '@emotion/styled';
|
|
4
3
|
import { N100 } from '@atlaskit/theme/colors';
|
|
5
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
6
|
-
export var DescriptionBylineStyle = styled.span(
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
5
|
+
export var DescriptionBylineStyle = styled.span({
|
|
6
|
+
color: "var(--ds-text-subtlest, ".concat(N100, ")"),
|
|
7
|
+
fontSize: '12px',
|
|
8
|
+
marginTop: "var(--ds-space-025, 2px)",
|
|
9
|
+
display: 'block',
|
|
10
|
+
overflow: 'hidden',
|
|
11
|
+
textOverflow: 'ellipsis',
|
|
12
|
+
whiteSpace: 'nowrap'
|
|
13
|
+
});
|
|
@@ -1,35 +1,91 @@
|
|
|
1
|
-
|
|
2
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
2
|
import styled from '@emotion/styled';
|
|
4
3
|
import { N900, N100, N30, N500 } from '@atlaskit/theme/colors';
|
|
5
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
6
|
-
export var RowStyle = styled.div(
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
5
|
+
export var RowStyle = styled.div({
|
|
6
|
+
alignItems: 'center',
|
|
7
|
+
display: 'flex',
|
|
8
|
+
flexDirection: 'row',
|
|
9
|
+
flexWrap: 'wrap',
|
|
10
|
+
overflow: 'hidden',
|
|
11
|
+
padding: "var(--ds-space-075, 6px)".concat(" ", "var(--ds-space-150, 12px)"),
|
|
12
|
+
textOverflow: 'ellipsis',
|
|
13
|
+
verticalAlign: 'middle'
|
|
14
|
+
});
|
|
7
15
|
|
|
8
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
9
|
-
export var AvatarStyle = styled.span(
|
|
10
|
-
return
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
17
|
+
export var AvatarStyle = styled.span(function (props) {
|
|
18
|
+
return {
|
|
19
|
+
position: 'relative',
|
|
20
|
+
flex: 'initial',
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
22
|
+
opacity: props.restricted ? '0.5' : 'inherit'
|
|
23
|
+
};
|
|
11
24
|
});
|
|
12
25
|
|
|
13
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
14
|
-
export var NameSectionStyle = styled.div(
|
|
15
|
-
return
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
27
|
+
export var NameSectionStyle = styled.div(function (props) {
|
|
28
|
+
return {
|
|
29
|
+
flex: 1,
|
|
30
|
+
minWidth: 0,
|
|
31
|
+
marginLeft: "var(--ds-space-150, 12px)",
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
33
|
+
opacity: props.restricted ? '0.5' : 'inherit'
|
|
34
|
+
};
|
|
16
35
|
});
|
|
17
36
|
|
|
18
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
19
|
-
export var FullNameStyle = styled.span(
|
|
37
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
38
|
+
export var FullNameStyle = styled.span({
|
|
39
|
+
display: 'block',
|
|
40
|
+
overflow: 'hidden',
|
|
41
|
+
textOverflow: 'ellipsis',
|
|
42
|
+
whiteSpace: 'nowrap',
|
|
43
|
+
color: "var(--ds-text, ".concat(N900, ")")
|
|
44
|
+
});
|
|
20
45
|
|
|
21
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
22
|
-
export var InfoSectionStyle = styled.div(
|
|
23
|
-
return
|
|
24
|
-
|
|
46
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
47
|
+
export var InfoSectionStyle = styled.div(function (props) {
|
|
48
|
+
return {
|
|
49
|
+
display: 'flex',
|
|
50
|
+
flexDirection: 'column',
|
|
51
|
+
textAlign: 'right',
|
|
52
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
53
|
+
opacity: props.restricted ? '0.5' : 'inherit',
|
|
54
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
55
|
+
'&': {
|
|
56
|
+
/* Lozenge */
|
|
57
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
58
|
+
'& > span': {
|
|
59
|
+
marginBottom: "var(--ds-space-025, 2px)"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
});
|
|
25
64
|
|
|
26
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
27
|
-
export var TimeStyle = styled.div(
|
|
65
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
66
|
+
export var TimeStyle = styled.div({
|
|
67
|
+
marginLeft: "var(--ds-space-250, 20px)",
|
|
68
|
+
flex: 'none',
|
|
69
|
+
color: "var(--ds-text-subtlest, ".concat(N100, ")"),
|
|
70
|
+
fontSize: '12px'
|
|
71
|
+
});
|
|
28
72
|
export var MENTION_ITEM_HEIGHT = 48;
|
|
29
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
30
|
-
export var MentionItemStyle = styled.div(
|
|
31
|
-
return
|
|
32
|
-
|
|
73
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
74
|
+
export var MentionItemStyle = styled.div(function (props) {
|
|
75
|
+
return {
|
|
76
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
77
|
+
backgroundColor: props.selected ? "var(--ds-background-selected, ".concat(N30, ")") : 'transparent',
|
|
78
|
+
display: 'block',
|
|
79
|
+
overflow: 'hidden',
|
|
80
|
+
listStyleType: 'none',
|
|
81
|
+
height: "".concat(MENTION_ITEM_HEIGHT, "px"),
|
|
82
|
+
lineHeight: 1.2,
|
|
83
|
+
cursor: 'pointer'
|
|
84
|
+
};
|
|
85
|
+
});
|
|
33
86
|
|
|
34
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
35
|
-
export var AccessSectionStyle = styled.div(
|
|
87
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
88
|
+
export var AccessSectionStyle = styled.div({
|
|
89
|
+
paddingLeft: "var(--ds-space-050, 4px)",
|
|
90
|
+
color: "var(--ds-text-subtle, ".concat(N500, ")")
|
|
91
|
+
});
|
|
@@ -1,8 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
var _templateObject;
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
2
|
import styled from '@emotion/styled';
|
|
4
3
|
import { mentionListWidth, noDialogContainerBorderColor, noDialogContainerBorderRadius, noDialogContainerBoxShadow } from '../../shared-styles';
|
|
5
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
6
|
-
export var MentionListStyle = styled.div(
|
|
7
|
-
return
|
|
8
|
-
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
5
|
+
export var MentionListStyle = styled.div(function (props) {
|
|
6
|
+
return {
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
8
|
+
display: props.empty ? 'none' : 'block',
|
|
9
|
+
/* list style */
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
11
|
+
width: mentionListWidth,
|
|
12
|
+
color: "var(--ds-text-subtle, #333)",
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
14
|
+
border: "1px solid ".concat(noDialogContainerBorderColor),
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
16
|
+
borderRadius: noDialogContainerBorderRadius,
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
18
|
+
boxShadow: noDialogContainerBoxShadow
|
|
19
|
+
};
|
|
20
|
+
});
|