@atlaskit/mention 23.2.0 → 23.2.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 +12 -0
- package/afm-jira/tsconfig.json +54 -0
- package/afm-post-office/tsconfig.json +54 -0
- package/compass.yml +0 -1
- package/dist/cjs/components/Mention/PrimitiveMention.js +8 -2
- package/dist/cjs/components/MentionDescriptionByline/styles.js +3 -1
- package/dist/cjs/components/MentionItem/styles.js +16 -8
- package/dist/cjs/components/MentionList/styles.js +8 -1
- package/dist/cjs/components/MentionListError/styles.js +6 -5
- package/dist/cjs/components/MentionPicker/index.js +2 -0
- package/dist/cjs/components/MentionPicker/styles.js +11 -2
- package/dist/cjs/components/Scrollable/styles.js +5 -1
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/es2019/components/Mention/PrimitiveMention.js +8 -2
- package/dist/es2019/components/MentionDescriptionByline/styles.js +2 -1
- package/dist/es2019/components/MentionItem/styles.js +15 -8
- package/dist/es2019/components/MentionList/styles.js +7 -1
- package/dist/es2019/components/MentionListError/styles.js +6 -4
- package/dist/es2019/components/MentionPicker/index.js +2 -0
- package/dist/es2019/components/MentionPicker/styles.js +10 -2
- package/dist/es2019/components/Scrollable/styles.js +4 -1
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/esm/components/Mention/PrimitiveMention.js +8 -2
- package/dist/esm/components/MentionDescriptionByline/styles.js +2 -1
- package/dist/esm/components/MentionItem/styles.js +15 -8
- package/dist/esm/components/MentionList/styles.js +7 -1
- package/dist/esm/components/MentionListError/styles.js +6 -4
- package/dist/esm/components/MentionPicker/index.js +2 -0
- package/dist/esm/components/MentionPicker/styles.js +10 -2
- package/dist/esm/components/Scrollable/styles.js +4 -1
- package/dist/esm/util/analytics.js +1 -1
- package/package.json +104 -103
package/CHANGELOG.md
CHANGED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../../../tsconfig.entry-points.jira.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"declaration": true,
|
|
5
|
+
"target": "es5",
|
|
6
|
+
"outDir": "../../../../../tsDist/@atlaskit__mention/app",
|
|
7
|
+
"composite": true,
|
|
8
|
+
"rootDir": "../"
|
|
9
|
+
},
|
|
10
|
+
"include": [
|
|
11
|
+
"../src/**/*.ts",
|
|
12
|
+
"../src/**/*.tsx"
|
|
13
|
+
],
|
|
14
|
+
"exclude": [
|
|
15
|
+
"../src/**/__tests__/*",
|
|
16
|
+
"../src/**/*.test.*",
|
|
17
|
+
"../src/**/test.*"
|
|
18
|
+
],
|
|
19
|
+
"references": [
|
|
20
|
+
{
|
|
21
|
+
"path": "../../../analytics/analytics-gas-types/afm-jira/tsconfig.json"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"path": "../../../analytics/analytics-next/afm-jira/tsconfig.json"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"path": "../../../design-system/avatar/afm-jira/tsconfig.json"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"path": "../../../design-system/focus-ring/afm-jira/tsconfig.json"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"path": "../../../design-system/icon/afm-jira/tsconfig.json"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"path": "../../../design-system/lozenge/afm-jira/tsconfig.json"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"path": "../../../design-system/theme/afm-jira/tsconfig.json"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"path": "../../../design-system/tokens/afm-jira/tsconfig.json"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"path": "../../../design-system/tooltip/afm-jira/tsconfig.json"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"path": "../../../data/ufo-external/afm-jira/tsconfig.json"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"path": "../../util-service-support/afm-jira/tsconfig.json"
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../../../tsconfig.entry-points.post-office.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"declaration": true,
|
|
5
|
+
"target": "es5",
|
|
6
|
+
"outDir": "../../../../../tsDist/@atlaskit__mention/app",
|
|
7
|
+
"composite": true,
|
|
8
|
+
"rootDir": "../"
|
|
9
|
+
},
|
|
10
|
+
"include": [
|
|
11
|
+
"../src/**/*.ts",
|
|
12
|
+
"../src/**/*.tsx"
|
|
13
|
+
],
|
|
14
|
+
"exclude": [
|
|
15
|
+
"../src/**/__tests__/*",
|
|
16
|
+
"../src/**/*.test.*",
|
|
17
|
+
"../src/**/test.*"
|
|
18
|
+
],
|
|
19
|
+
"references": [
|
|
20
|
+
{
|
|
21
|
+
"path": "../../../analytics/analytics-gas-types/afm-post-office/tsconfig.json"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"path": "../../../analytics/analytics-next/afm-post-office/tsconfig.json"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"path": "../../../design-system/avatar/afm-post-office/tsconfig.json"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"path": "../../../design-system/focus-ring/afm-post-office/tsconfig.json"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"path": "../../../design-system/icon/afm-post-office/tsconfig.json"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"path": "../../../design-system/lozenge/afm-post-office/tsconfig.json"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"path": "../../../design-system/theme/afm-post-office/tsconfig.json"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"path": "../../../design-system/tokens/afm-post-office/tsconfig.json"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"path": "../../../design-system/tooltip/afm-post-office/tsconfig.json"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"path": "../../../data/ufo-external/afm-post-office/tsconfig.json"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"path": "../../util-service-support/afm-post-office/tsconfig.json"
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
}
|
package/compass.yml
CHANGED
|
@@ -15,7 +15,11 @@ var _types = require("../../types");
|
|
|
15
15
|
var _react2 = require("react");
|
|
16
16
|
var _excluded = ["mentionType"];
|
|
17
17
|
var _mentionStyle, _templateObject;
|
|
18
|
-
/**
|
|
18
|
+
/**
|
|
19
|
+
* @jsxRuntime classic
|
|
20
|
+
* @jsx jsx
|
|
21
|
+
*/
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
19
23
|
var mentionStyle = (_mentionStyle = {}, (0, _defineProperty2.default)(_mentionStyle, _types.MentionType.SELF, {
|
|
20
24
|
background: "var(--ds-background-brand-bold, ".concat(_colors.B400, ")"),
|
|
21
25
|
borderColor: 'transparent',
|
|
@@ -44,7 +48,9 @@ var PrimitiveMention = /*#__PURE__*/(0, _react2.forwardRef)(function (_ref2, ref
|
|
|
44
48
|
var mentionType = _ref2.mentionType,
|
|
45
49
|
other = (0, _objectWithoutProperties2.default)(_ref2, _excluded);
|
|
46
50
|
return (0, _react.jsx)("span", (0, _extends2.default)({
|
|
47
|
-
ref: ref
|
|
51
|
+
ref: ref
|
|
52
|
+
// 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
|
|
53
|
+
,
|
|
48
54
|
css: (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\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({
|
|
49
55
|
mentionType: mentionType
|
|
50
56
|
}, 'borderColor'), getStyle({
|
|
@@ -7,7 +7,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.DescriptionBylineStyle = void 0;
|
|
8
8
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
9
9
|
var _colors = require("@atlaskit/theme/colors");
|
|
10
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
|
+
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
11
13
|
var DescriptionBylineStyle = exports.DescriptionBylineStyle = _styled.default.span({
|
|
12
14
|
color: "var(--ds-text-subtlest, ".concat(_colors.N100, ")"),
|
|
13
15
|
fontSize: '12px',
|
|
@@ -7,7 +7,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.TimeStyle = exports.RowStyle = exports.NameSectionStyle = exports.MentionItemStyle = exports.MENTION_ITEM_HEIGHT = exports.InfoSectionStyle = exports.FullNameStyle = exports.AvatarStyle = exports.AccessSectionStyle = void 0;
|
|
8
8
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
9
9
|
var _colors = require("@atlaskit/theme/colors");
|
|
10
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
|
+
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
11
13
|
var RowStyle = exports.RowStyle = _styled.default.div({
|
|
12
14
|
alignItems: 'center',
|
|
13
15
|
display: 'flex',
|
|
@@ -19,26 +21,28 @@ var RowStyle = exports.RowStyle = _styled.default.div({
|
|
|
19
21
|
verticalAlign: 'middle'
|
|
20
22
|
});
|
|
21
23
|
|
|
22
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
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
|
|
23
25
|
var AvatarStyle = exports.AvatarStyle = _styled.default.span(function (props) {
|
|
24
26
|
return {
|
|
25
27
|
position: 'relative',
|
|
26
28
|
flex: 'initial',
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
27
30
|
opacity: props.restricted ? '0.5' : 'inherit'
|
|
28
31
|
};
|
|
29
32
|
});
|
|
30
33
|
|
|
31
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
34
|
+
// 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
|
|
32
35
|
var NameSectionStyle = exports.NameSectionStyle = _styled.default.div(function (props) {
|
|
33
36
|
return {
|
|
34
37
|
flex: 1,
|
|
35
38
|
minWidth: 0,
|
|
36
39
|
marginLeft: "var(--ds-space-150, 12px)",
|
|
40
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
37
41
|
opacity: props.restricted ? '0.5' : 'inherit'
|
|
38
42
|
};
|
|
39
43
|
});
|
|
40
44
|
|
|
41
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
45
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
42
46
|
var FullNameStyle = exports.FullNameStyle = _styled.default.span({
|
|
43
47
|
display: 'block',
|
|
44
48
|
overflow: 'hidden',
|
|
@@ -47,15 +51,18 @@ var FullNameStyle = exports.FullNameStyle = _styled.default.span({
|
|
|
47
51
|
color: "var(--ds-text, ".concat(_colors.N900, ")")
|
|
48
52
|
});
|
|
49
53
|
|
|
50
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
54
|
+
// 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
|
|
51
55
|
var InfoSectionStyle = exports.InfoSectionStyle = _styled.default.div(function (props) {
|
|
52
56
|
return {
|
|
53
57
|
display: 'flex',
|
|
54
58
|
flexDirection: 'column',
|
|
55
59
|
textAlign: 'right',
|
|
60
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
56
61
|
opacity: props.restricted ? '0.5' : 'inherit',
|
|
62
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
57
63
|
'&': {
|
|
58
64
|
/* Lozenge */
|
|
65
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
59
66
|
'& > span': {
|
|
60
67
|
marginBottom: "var(--ds-space-025, 2px)"
|
|
61
68
|
}
|
|
@@ -63,7 +70,7 @@ var InfoSectionStyle = exports.InfoSectionStyle = _styled.default.div(function (
|
|
|
63
70
|
};
|
|
64
71
|
});
|
|
65
72
|
|
|
66
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
73
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
67
74
|
var TimeStyle = exports.TimeStyle = _styled.default.div({
|
|
68
75
|
marginLeft: "var(--ds-space-250, 20px)",
|
|
69
76
|
flex: 'none',
|
|
@@ -71,9 +78,10 @@ var TimeStyle = exports.TimeStyle = _styled.default.div({
|
|
|
71
78
|
fontSize: '12px'
|
|
72
79
|
});
|
|
73
80
|
var MENTION_ITEM_HEIGHT = exports.MENTION_ITEM_HEIGHT = 48;
|
|
74
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
81
|
+
// 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
|
|
75
82
|
var MentionItemStyle = exports.MentionItemStyle = _styled.default.div(function (props) {
|
|
76
83
|
return {
|
|
84
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
77
85
|
backgroundColor: props.selected ? "var(--ds-background-selected, ".concat(_colors.N30, ")") : 'transparent',
|
|
78
86
|
display: 'block',
|
|
79
87
|
overflow: 'hidden',
|
|
@@ -84,7 +92,7 @@ var MentionItemStyle = exports.MentionItemStyle = _styled.default.div(function (
|
|
|
84
92
|
};
|
|
85
93
|
});
|
|
86
94
|
|
|
87
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
95
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
88
96
|
var AccessSectionStyle = exports.AccessSectionStyle = _styled.default.div({
|
|
89
97
|
paddingLeft: "var(--ds-space-050, 4px)",
|
|
90
98
|
color: "var(--ds-text-subtle, ".concat(_colors.N500, ")")
|
|
@@ -7,15 +7,22 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.MentionListStyle = void 0;
|
|
8
8
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
9
9
|
var _sharedStyles = require("../../shared-styles");
|
|
10
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
|
+
|
|
12
|
+
// 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
|
|
11
13
|
var MentionListStyle = exports.MentionListStyle = _styled.default.div(function (props) {
|
|
12
14
|
return {
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
13
16
|
display: props.empty ? 'none' : 'block',
|
|
14
17
|
/* list style */
|
|
18
|
+
// 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
19
|
width: _sharedStyles.mentionListWidth,
|
|
16
20
|
color: "var(--ds-text-subtle, #333)",
|
|
21
|
+
// 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
22
|
border: "1px solid ".concat(_sharedStyles.noDialogContainerBorderColor),
|
|
23
|
+
// 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
24
|
borderRadius: _sharedStyles.noDialogContainerBorderRadius,
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
19
26
|
boxShadow: _sharedStyles.noDialogContainerBoxShadow
|
|
20
27
|
};
|
|
21
28
|
});
|
|
@@ -10,8 +10,8 @@ var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
|
10
10
|
var _constants = require("@atlaskit/theme/constants");
|
|
11
11
|
var _colors = require("@atlaskit/theme/colors");
|
|
12
12
|
var _typography = require("@atlaskit/theme/typography");
|
|
13
|
-
var _templateObject;
|
|
14
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
13
|
+
var _templateObject; // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
15
15
|
var MentionListErrorStyle = exports.MentionListErrorStyle = _styled.default.div({
|
|
16
16
|
alignItems: 'center',
|
|
17
17
|
display: 'flex',
|
|
@@ -20,10 +20,11 @@ var MentionListErrorStyle = exports.MentionListErrorStyle = _styled.default.div(
|
|
|
20
20
|
backgroundColor: "var(--ds-surface-overlay, white)",
|
|
21
21
|
color: "var(--ds-text-subtle, ".concat(_colors.N500, ")"),
|
|
22
22
|
border: "1px solid ".concat("var(--ds-surface-overlay, #fff)"),
|
|
23
|
+
// 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
24
|
borderRadius: "".concat((0, _constants.borderRadius)(), "px")
|
|
24
25
|
});
|
|
25
26
|
|
|
26
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
27
28
|
var GenericErrorVisualStyle = exports.GenericErrorVisualStyle = _styled.default.div({
|
|
28
29
|
marginBottom: "var(--ds-space-100, 8px)",
|
|
29
30
|
marginTop: "var(--ds-space-400, 32px)",
|
|
@@ -31,10 +32,10 @@ var GenericErrorVisualStyle = exports.GenericErrorVisualStyle = _styled.default.
|
|
|
31
32
|
});
|
|
32
33
|
|
|
33
34
|
// TODO: Figure out why the themed css function is causing type errors when passed prop children
|
|
34
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
35
|
+
// 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
|
|
35
36
|
var MentionListErrorHeadlineStyle = exports.MentionListErrorHeadlineStyle = _styled.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t", ";\n\tmargin-bottom: ", ";\n"])), (0, _typography.h400)(), "var(--ds-space-100, 8px)");
|
|
36
37
|
|
|
37
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
38
39
|
var MentionListAdviceStyle = exports.MentionListAdviceStyle = _styled.default.div({
|
|
39
40
|
marginBottom: "var(--ds-space-600, 48px)"
|
|
40
41
|
});
|
|
@@ -233,5 +233,7 @@ var MentionPicker = exports.MentionPicker = /*#__PURE__*/function (_React$PureCo
|
|
|
233
233
|
var MentionPickerWithIntl = (0, _reactIntlNext.injectIntl)(MentionPicker, {
|
|
234
234
|
forwardRef: true
|
|
235
235
|
});
|
|
236
|
+
|
|
237
|
+
// @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
236
238
|
var MentionPickerWithAnalytics = exports.MentionPickerWithAnalytics = (0, _withAnalyticsEvents.default)({})(MentionPickerWithIntl);
|
|
237
239
|
var _default = exports.default = MentionPickerWithAnalytics;
|
|
@@ -8,24 +8,33 @@ exports.MentionPickerStyle = exports.MentionPickerInfoStyle = void 0;
|
|
|
8
8
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
9
9
|
var _colors = require("@atlaskit/theme/colors");
|
|
10
10
|
var _sharedStyles = require("../../shared-styles");
|
|
11
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
|
+
|
|
13
|
+
// 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
|
|
12
14
|
var MentionPickerStyle = exports.MentionPickerStyle = _styled.default.div(function (props) {
|
|
13
15
|
return {
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
14
17
|
display: props.visible ? 'block' : 'none'
|
|
15
18
|
};
|
|
16
19
|
});
|
|
17
20
|
|
|
18
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
19
22
|
var MentionPickerInfoStyle = exports.MentionPickerInfoStyle = _styled.default.div({
|
|
20
23
|
background: "var(--ds-surface, #fff)",
|
|
21
24
|
color: "var(--ds-text-subtlest, ".concat(_colors.N100, ")"),
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
22
26
|
border: "1px solid ".concat(_sharedStyles.noDialogContainerBorderColor),
|
|
27
|
+
// 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
28
|
borderRadius: _sharedStyles.noDialogContainerBorderRadius,
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
24
30
|
boxShadow: _sharedStyles.noDialogContainerBoxShadow,
|
|
25
31
|
display: 'block',
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
26
33
|
width: _sharedStyles.mentionListWidth,
|
|
27
34
|
whiteSpace: 'nowrap',
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
28
36
|
'&': {
|
|
37
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
29
38
|
p: {
|
|
30
39
|
margin: 0,
|
|
31
40
|
overflow: 'hidden',
|
|
@@ -8,7 +8,9 @@ exports.ScrollableStyle = void 0;
|
|
|
8
8
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
9
9
|
var _constants = require("@atlaskit/theme/constants");
|
|
10
10
|
var _sharedStyles = require("../../shared-styles");
|
|
11
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
|
+
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
12
14
|
var ScrollableStyle = exports.ScrollableStyle = _styled.default.div({
|
|
13
15
|
display: 'block',
|
|
14
16
|
overflowX: 'hidden',
|
|
@@ -16,6 +18,8 @@ var ScrollableStyle = exports.ScrollableStyle = _styled.default.div({
|
|
|
16
18
|
padding: "var(--ds-space-050, 4px)".concat(" 0"),
|
|
17
19
|
margin: 0,
|
|
18
20
|
background: "var(--ds-surface, white)",
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
19
22
|
maxHeight: _sharedStyles.scrollableMaxHeight,
|
|
23
|
+
// 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
24
|
borderRadius: "".concat((0, _constants.borderRadius)(), "px")
|
|
21
25
|
});
|
|
@@ -12,7 +12,7 @@ var _types = require("../types");
|
|
|
12
12
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13
13
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14
14
|
var packageName = "@atlaskit/mention";
|
|
15
|
-
var packageVersion = "23.2.
|
|
15
|
+
var packageVersion = "23.2.2";
|
|
16
16
|
var SLI_EVENT_TYPE = exports.SLI_EVENT_TYPE = 'sli';
|
|
17
17
|
var SMART_EVENT_TYPE = exports.SMART_EVENT_TYPE = 'smart';
|
|
18
18
|
var SliNames = exports.SliNames = /*#__PURE__*/function (SliNames) {
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
5
|
+
*/
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
7
|
import { jsx, css } from '@emotion/react';
|
|
4
8
|
import { B400, N500, N30A, N20 } from '@atlaskit/theme/colors';
|
|
5
9
|
import { MentionType } from '../../types';
|
|
@@ -38,7 +42,9 @@ const PrimitiveMention = /*#__PURE__*/forwardRef(({
|
|
|
38
42
|
...other
|
|
39
43
|
}, ref) => {
|
|
40
44
|
return jsx("span", _extends({
|
|
41
|
-
ref: ref
|
|
45
|
+
ref: ref
|
|
46
|
+
// 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
|
|
47
|
+
,
|
|
42
48
|
css: css`
|
|
43
49
|
display: inline;
|
|
44
50
|
border: 1px solid ${getStyle({
|
|
@@ -1,6 +1,7 @@
|
|
|
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
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
4
5
|
export const DescriptionBylineStyle = styled.span({
|
|
5
6
|
color: `var(--ds-text-subtlest, ${N100})`,
|
|
6
7
|
fontSize: '12px',
|
|
@@ -1,6 +1,7 @@
|
|
|
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
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
4
5
|
export const RowStyle = styled.div({
|
|
5
6
|
alignItems: 'center',
|
|
6
7
|
display: 'flex',
|
|
@@ -12,22 +13,24 @@ export const RowStyle = styled.div({
|
|
|
12
13
|
verticalAlign: 'middle'
|
|
13
14
|
});
|
|
14
15
|
|
|
15
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
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
|
|
16
17
|
export const AvatarStyle = styled.span(props => ({
|
|
17
18
|
position: 'relative',
|
|
18
19
|
flex: 'initial',
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
19
21
|
opacity: props.restricted ? '0.5' : 'inherit'
|
|
20
22
|
}));
|
|
21
23
|
|
|
22
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
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
|
|
23
25
|
export const NameSectionStyle = styled.div(props => ({
|
|
24
26
|
flex: 1,
|
|
25
27
|
minWidth: 0,
|
|
26
28
|
marginLeft: "var(--ds-space-150, 12px)",
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
27
30
|
opacity: props.restricted ? '0.5' : 'inherit'
|
|
28
31
|
}));
|
|
29
32
|
|
|
30
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
31
34
|
export const FullNameStyle = styled.span({
|
|
32
35
|
display: 'block',
|
|
33
36
|
overflow: 'hidden',
|
|
@@ -36,21 +39,24 @@ export const FullNameStyle = styled.span({
|
|
|
36
39
|
color: `var(--ds-text, ${N900})`
|
|
37
40
|
});
|
|
38
41
|
|
|
39
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
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
|
|
40
43
|
export const InfoSectionStyle = styled.div(props => ({
|
|
41
44
|
display: 'flex',
|
|
42
45
|
flexDirection: 'column',
|
|
43
46
|
textAlign: 'right',
|
|
47
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
44
48
|
opacity: props.restricted ? '0.5' : 'inherit',
|
|
49
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
45
50
|
'&': {
|
|
46
51
|
/* Lozenge */
|
|
52
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
47
53
|
'& > span': {
|
|
48
54
|
marginBottom: "var(--ds-space-025, 2px)"
|
|
49
55
|
}
|
|
50
56
|
}
|
|
51
57
|
}));
|
|
52
58
|
|
|
53
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
59
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
54
60
|
export const TimeStyle = styled.div({
|
|
55
61
|
marginLeft: "var(--ds-space-250, 20px)",
|
|
56
62
|
flex: 'none',
|
|
@@ -58,8 +64,9 @@ export const TimeStyle = styled.div({
|
|
|
58
64
|
fontSize: '12px'
|
|
59
65
|
});
|
|
60
66
|
export const MENTION_ITEM_HEIGHT = 48;
|
|
61
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
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
|
|
62
68
|
export const MentionItemStyle = styled.div(props => ({
|
|
69
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
63
70
|
backgroundColor: props.selected ? `var(--ds-background-selected, ${N30})` : 'transparent',
|
|
64
71
|
display: 'block',
|
|
65
72
|
overflow: 'hidden',
|
|
@@ -69,7 +76,7 @@ export const MentionItemStyle = styled.div(props => ({
|
|
|
69
76
|
cursor: 'pointer'
|
|
70
77
|
}));
|
|
71
78
|
|
|
72
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
79
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
73
80
|
export const AccessSectionStyle = styled.div({
|
|
74
81
|
paddingLeft: "var(--ds-space-050, 4px)",
|
|
75
82
|
color: `var(--ds-text-subtle, ${N500})`
|
|
@@ -1,12 +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
|
+
// 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
|
|
4
5
|
export const MentionListStyle = styled.div(props => ({
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
5
7
|
display: props.empty ? 'none' : 'block',
|
|
6
8
|
/* list style */
|
|
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
|
|
7
10
|
width: mentionListWidth,
|
|
8
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
|
|
9
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
|
|
10
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
|
|
11
17
|
boxShadow: noDialogContainerBoxShadow
|
|
12
18
|
}));
|
|
@@ -1,9 +1,10 @@
|
|
|
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
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
7
8
|
export const MentionListErrorStyle = styled.div({
|
|
8
9
|
alignItems: 'center',
|
|
9
10
|
display: 'flex',
|
|
@@ -12,10 +13,11 @@ export const MentionListErrorStyle = styled.div({
|
|
|
12
13
|
backgroundColor: "var(--ds-surface-overlay, white)",
|
|
13
14
|
color: `var(--ds-text-subtle, ${N500})`,
|
|
14
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
|
|
15
17
|
borderRadius: `${borderRadius()}px`
|
|
16
18
|
});
|
|
17
19
|
|
|
18
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
19
21
|
export const GenericErrorVisualStyle = styled.div({
|
|
20
22
|
marginBottom: "var(--ds-space-100, 8px)",
|
|
21
23
|
marginTop: "var(--ds-space-400, 32px)",
|
|
@@ -23,13 +25,13 @@ export const GenericErrorVisualStyle = styled.div({
|
|
|
23
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
30
|
${h400()};
|
|
29
31
|
margin-bottom: ${"var(--ds-space-100, 8px)"};
|
|
30
32
|
`;
|
|
31
33
|
|
|
32
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
33
35
|
export const MentionListAdviceStyle = styled.div({
|
|
34
36
|
marginBottom: "var(--ds-space-600, 48px)"
|
|
35
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,22 +1,30 @@
|
|
|
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
|
+
// 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
6
|
export const MentionPickerStyle = styled.div(props => ({
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
6
8
|
display: props.visible ? 'block' : 'none'
|
|
7
9
|
}));
|
|
8
10
|
|
|
9
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
10
12
|
export const MentionPickerInfoStyle = styled.div({
|
|
11
13
|
background: "var(--ds-surface, #fff)",
|
|
12
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
|
|
13
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
|
|
14
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
|
|
15
20
|
boxShadow: noDialogContainerBoxShadow,
|
|
16
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
|
|
17
23
|
width: mentionListWidth,
|
|
18
24
|
whiteSpace: 'nowrap',
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
19
26
|
'&': {
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
20
28
|
p: {
|
|
21
29
|
margin: 0,
|
|
22
30
|
overflow: 'hidden',
|
|
@@ -1,8 +1,9 @@
|
|
|
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
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
6
7
|
export const ScrollableStyle = styled.div({
|
|
7
8
|
display: 'block',
|
|
8
9
|
overflowX: 'hidden',
|
|
@@ -10,6 +11,8 @@ export const ScrollableStyle = styled.div({
|
|
|
10
11
|
padding: `${"var(--ds-space-050, 4px)"} 0`,
|
|
11
12
|
margin: 0,
|
|
12
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
|
|
13
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
|
|
14
17
|
borderRadius: `${borderRadius()}px`
|
|
15
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.2.
|
|
5
|
+
const packageVersion = "23.2.2";
|
|
6
6
|
export const SLI_EVENT_TYPE = 'sli';
|
|
7
7
|
export const SMART_EVENT_TYPE = 'smart';
|
|
8
8
|
export let SliNames = /*#__PURE__*/function (SliNames) {
|
|
@@ -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,7 +41,9 @@ 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
|
|
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
|
+
,
|
|
41
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({
|
|
@@ -1,6 +1,7 @@
|
|
|
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
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
4
5
|
export var DescriptionBylineStyle = styled.span({
|
|
5
6
|
color: "var(--ds-text-subtlest, ".concat(N100, ")"),
|
|
6
7
|
fontSize: '12px',
|
|
@@ -1,6 +1,7 @@
|
|
|
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
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
4
5
|
export var RowStyle = styled.div({
|
|
5
6
|
alignItems: 'center',
|
|
6
7
|
display: 'flex',
|
|
@@ -12,26 +13,28 @@ export var RowStyle = styled.div({
|
|
|
12
13
|
verticalAlign: 'middle'
|
|
13
14
|
});
|
|
14
15
|
|
|
15
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
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
|
|
16
17
|
export var AvatarStyle = styled.span(function (props) {
|
|
17
18
|
return {
|
|
18
19
|
position: 'relative',
|
|
19
20
|
flex: 'initial',
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
20
22
|
opacity: props.restricted ? '0.5' : 'inherit'
|
|
21
23
|
};
|
|
22
24
|
});
|
|
23
25
|
|
|
24
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
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
|
|
25
27
|
export var NameSectionStyle = styled.div(function (props) {
|
|
26
28
|
return {
|
|
27
29
|
flex: 1,
|
|
28
30
|
minWidth: 0,
|
|
29
31
|
marginLeft: "var(--ds-space-150, 12px)",
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
30
33
|
opacity: props.restricted ? '0.5' : 'inherit'
|
|
31
34
|
};
|
|
32
35
|
});
|
|
33
36
|
|
|
34
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
37
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
35
38
|
export var FullNameStyle = styled.span({
|
|
36
39
|
display: 'block',
|
|
37
40
|
overflow: 'hidden',
|
|
@@ -40,15 +43,18 @@ export var FullNameStyle = styled.span({
|
|
|
40
43
|
color: "var(--ds-text, ".concat(N900, ")")
|
|
41
44
|
});
|
|
42
45
|
|
|
43
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
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
|
|
44
47
|
export var InfoSectionStyle = styled.div(function (props) {
|
|
45
48
|
return {
|
|
46
49
|
display: 'flex',
|
|
47
50
|
flexDirection: 'column',
|
|
48
51
|
textAlign: 'right',
|
|
52
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
49
53
|
opacity: props.restricted ? '0.5' : 'inherit',
|
|
54
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
50
55
|
'&': {
|
|
51
56
|
/* Lozenge */
|
|
57
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
52
58
|
'& > span': {
|
|
53
59
|
marginBottom: "var(--ds-space-025, 2px)"
|
|
54
60
|
}
|
|
@@ -56,7 +62,7 @@ export var InfoSectionStyle = styled.div(function (props) {
|
|
|
56
62
|
};
|
|
57
63
|
});
|
|
58
64
|
|
|
59
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
65
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
60
66
|
export var TimeStyle = styled.div({
|
|
61
67
|
marginLeft: "var(--ds-space-250, 20px)",
|
|
62
68
|
flex: 'none',
|
|
@@ -64,9 +70,10 @@ export var TimeStyle = styled.div({
|
|
|
64
70
|
fontSize: '12px'
|
|
65
71
|
});
|
|
66
72
|
export var MENTION_ITEM_HEIGHT = 48;
|
|
67
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
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
|
|
68
74
|
export var MentionItemStyle = styled.div(function (props) {
|
|
69
75
|
return {
|
|
76
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
70
77
|
backgroundColor: props.selected ? "var(--ds-background-selected, ".concat(N30, ")") : 'transparent',
|
|
71
78
|
display: 'block',
|
|
72
79
|
overflow: 'hidden',
|
|
@@ -77,7 +84,7 @@ export var MentionItemStyle = styled.div(function (props) {
|
|
|
77
84
|
};
|
|
78
85
|
});
|
|
79
86
|
|
|
80
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
87
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
81
88
|
export var AccessSectionStyle = styled.div({
|
|
82
89
|
paddingLeft: "var(--ds-space-050, 4px)",
|
|
83
90
|
color: "var(--ds-text-subtle, ".concat(N500, ")")
|
|
@@ -1,14 +1,20 @@
|
|
|
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
|
+
// 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
|
|
4
5
|
export var MentionListStyle = styled.div(function (props) {
|
|
5
6
|
return {
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
6
8
|
display: props.empty ? 'none' : 'block',
|
|
7
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
|
|
8
11
|
width: mentionListWidth,
|
|
9
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
|
|
10
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
|
|
11
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
|
|
12
18
|
boxShadow: noDialogContainerBoxShadow
|
|
13
19
|
};
|
|
14
20
|
});
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
2
|
var _templateObject;
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
4
|
import styled from '@emotion/styled';
|
|
4
5
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
5
6
|
import { N500 } from '@atlaskit/theme/colors';
|
|
6
7
|
import { h400 } from '@atlaskit/theme/typography';
|
|
7
8
|
|
|
8
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
9
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
9
10
|
export var MentionListErrorStyle = styled.div({
|
|
10
11
|
alignItems: 'center',
|
|
11
12
|
display: 'flex',
|
|
@@ -14,10 +15,11 @@ export var MentionListErrorStyle = styled.div({
|
|
|
14
15
|
backgroundColor: "var(--ds-surface-overlay, white)",
|
|
15
16
|
color: "var(--ds-text-subtle, ".concat(N500, ")"),
|
|
16
17
|
border: "1px solid ".concat("var(--ds-surface-overlay, #fff)"),
|
|
18
|
+
// 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
19
|
borderRadius: "".concat(borderRadius(), "px")
|
|
18
20
|
});
|
|
19
21
|
|
|
20
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
21
23
|
export var GenericErrorVisualStyle = styled.div({
|
|
22
24
|
marginBottom: "var(--ds-space-100, 8px)",
|
|
23
25
|
marginTop: "var(--ds-space-400, 32px)",
|
|
@@ -25,10 +27,10 @@ export var GenericErrorVisualStyle = styled.div({
|
|
|
25
27
|
});
|
|
26
28
|
|
|
27
29
|
// TODO: Figure out why the themed css function is causing type errors when passed prop children
|
|
28
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
30
|
+
// 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
|
|
29
31
|
export var MentionListErrorHeadlineStyle = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t", ";\n\tmargin-bottom: ", ";\n"])), h400(), "var(--ds-space-100, 8px)");
|
|
30
32
|
|
|
31
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
32
34
|
export var MentionListAdviceStyle = styled.div({
|
|
33
35
|
marginBottom: "var(--ds-space-600, 48px)"
|
|
34
36
|
});
|
|
@@ -226,5 +226,7 @@ _defineProperty(MentionPicker, "defaultProps", {
|
|
|
226
226
|
var MentionPickerWithIntl = injectIntl(MentionPicker, {
|
|
227
227
|
forwardRef: true
|
|
228
228
|
});
|
|
229
|
+
|
|
230
|
+
// @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
229
231
|
export var MentionPickerWithAnalytics = withAnalyticsEvents({})(MentionPickerWithIntl);
|
|
230
232
|
export default MentionPickerWithAnalytics;
|
|
@@ -1,24 +1,32 @@
|
|
|
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
|
+
// 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
6
|
export var MentionPickerStyle = styled.div(function (props) {
|
|
6
7
|
return {
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
7
9
|
display: props.visible ? 'block' : 'none'
|
|
8
10
|
};
|
|
9
11
|
});
|
|
10
12
|
|
|
11
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
12
14
|
export var MentionPickerInfoStyle = styled.div({
|
|
13
15
|
background: "var(--ds-surface, #fff)",
|
|
14
16
|
color: "var(--ds-text-subtlest, ".concat(N100, ")"),
|
|
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
|
|
15
18
|
border: "1px solid ".concat(noDialogContainerBorderColor),
|
|
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
|
|
16
20
|
borderRadius: noDialogContainerBorderRadius,
|
|
21
|
+
// 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
22
|
boxShadow: noDialogContainerBoxShadow,
|
|
18
23
|
display: 'block',
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
19
25
|
width: mentionListWidth,
|
|
20
26
|
whiteSpace: 'nowrap',
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
21
28
|
'&': {
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
22
30
|
p: {
|
|
23
31
|
margin: 0,
|
|
24
32
|
overflow: 'hidden',
|
|
@@ -1,8 +1,9 @@
|
|
|
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
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
6
7
|
export var ScrollableStyle = styled.div({
|
|
7
8
|
display: 'block',
|
|
8
9
|
overflowX: 'hidden',
|
|
@@ -10,6 +11,8 @@ export var ScrollableStyle = styled.div({
|
|
|
10
11
|
padding: "var(--ds-space-050, 4px)".concat(" 0"),
|
|
11
12
|
margin: 0,
|
|
12
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
|
|
13
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
|
|
14
17
|
borderRadius: "".concat(borderRadius(), "px")
|
|
15
18
|
});
|
|
@@ -5,7 +5,7 @@ import { OPERATIONAL_EVENT_TYPE, UI_EVENT_TYPE } from '@atlaskit/analytics-gas-t
|
|
|
5
5
|
import { ELEMENTS_CHANNEL } from '../_constants';
|
|
6
6
|
import { isSpecialMentionText } from '../types';
|
|
7
7
|
var packageName = "@atlaskit/mention";
|
|
8
|
-
var packageVersion = "23.2.
|
|
8
|
+
var packageVersion = "23.2.2";
|
|
9
9
|
export var SLI_EVENT_TYPE = 'sli';
|
|
10
10
|
export var SMART_EVENT_TYPE = 'smart';
|
|
11
11
|
export var SliNames = /*#__PURE__*/function (SliNames) {
|
package/package.json
CHANGED
|
@@ -1,104 +1,105 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}
|
|
2
|
+
"name": "@atlaskit/mention",
|
|
3
|
+
"version": "23.2.2",
|
|
4
|
+
"description": "A React component used to display user profiles in a list for 'Mention' functionality",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"registry": "https://registry.npmjs.org/"
|
|
7
|
+
},
|
|
8
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
9
|
+
"author": "Atlassian Pty Ltd",
|
|
10
|
+
"license": "Apache-2.0",
|
|
11
|
+
"main": "dist/cjs/index.js",
|
|
12
|
+
"module": "dist/esm/index.js",
|
|
13
|
+
"module:es2019": "dist/es2019/index.js",
|
|
14
|
+
"types": "dist/types/index.d.ts",
|
|
15
|
+
"typesVersions": {
|
|
16
|
+
">=4.5 <4.9": {
|
|
17
|
+
"*": [
|
|
18
|
+
"dist/types-ts4.5/*",
|
|
19
|
+
"dist/types-ts4.5/index.d.ts"
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"sideEffects": false,
|
|
24
|
+
"atlaskit:src": "src/index.ts",
|
|
25
|
+
"atlassian": {
|
|
26
|
+
"team": "Search Platform: Search Experience",
|
|
27
|
+
"releaseModel": "continuous",
|
|
28
|
+
"productPushConsumption": [
|
|
29
|
+
"jira"
|
|
30
|
+
],
|
|
31
|
+
"website": {
|
|
32
|
+
"name": "Mention"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"config": {
|
|
36
|
+
"access": "public"
|
|
37
|
+
},
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"@atlaskit/analytics-gas-types": "^5.1.0",
|
|
40
|
+
"@atlaskit/analytics-next": "^10.1.0",
|
|
41
|
+
"@atlaskit/avatar": "^21.14.0",
|
|
42
|
+
"@atlaskit/focus-ring": "^1.6.0",
|
|
43
|
+
"@atlaskit/icon": "^22.12.0",
|
|
44
|
+
"@atlaskit/lozenge": "^11.10.0",
|
|
45
|
+
"@atlaskit/theme": "^12.12.0",
|
|
46
|
+
"@atlaskit/tokens": "^1.58.0",
|
|
47
|
+
"@atlaskit/tooltip": "^18.7.0",
|
|
48
|
+
"@atlaskit/ufo": "^0.3.0",
|
|
49
|
+
"@atlaskit/util-service-support": "^6.2.0",
|
|
50
|
+
"@babel/runtime": "^7.0.0",
|
|
51
|
+
"@emotion/react": "^11.7.1",
|
|
52
|
+
"@emotion/styled": "^11.0.0",
|
|
53
|
+
"lodash": "^4.17.21",
|
|
54
|
+
"uuid": "^3.1.0"
|
|
55
|
+
},
|
|
56
|
+
"peerDependencies": {
|
|
57
|
+
"react": "^16.8.0",
|
|
58
|
+
"react-dom": "^16.8.0",
|
|
59
|
+
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
60
|
+
},
|
|
61
|
+
"devDependencies": {
|
|
62
|
+
"@atlaskit/elements-test-helpers": "^0.7.0",
|
|
63
|
+
"@atlaskit/visual-regression": "*",
|
|
64
|
+
"@testing-library/react": "^12.1.5",
|
|
65
|
+
"@types/query-string": "^4.3.1",
|
|
66
|
+
"@types/serialize-javascript": "^5.0.0",
|
|
67
|
+
"enzyme": "^3.10.0",
|
|
68
|
+
"enzyme-adapter-react-16": "^1.15.1",
|
|
69
|
+
"es6-promise": "^4.0.5",
|
|
70
|
+
"exenv": "^1.2.2",
|
|
71
|
+
"fetch-mock": "^8.0.0",
|
|
72
|
+
"query-string": "^7.1.3",
|
|
73
|
+
"react": "^16.8.0",
|
|
74
|
+
"react-dom": "^16.8.0",
|
|
75
|
+
"react-intl-next": "npm:react-intl@^5.18.1",
|
|
76
|
+
"serialize-javascript": "^5.0.1",
|
|
77
|
+
"typescript": "~5.4.2"
|
|
78
|
+
},
|
|
79
|
+
"keywords": [
|
|
80
|
+
"ui",
|
|
81
|
+
"mention",
|
|
82
|
+
"fabric",
|
|
83
|
+
"teams"
|
|
84
|
+
],
|
|
85
|
+
"techstack": {
|
|
86
|
+
"@repo/internal": {
|
|
87
|
+
"deprecation": "no-deprecated-imports",
|
|
88
|
+
"styling": "emotion",
|
|
89
|
+
"design-tokens": [
|
|
90
|
+
"color"
|
|
91
|
+
]
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"af:exports": {
|
|
95
|
+
".": "./src/index.ts",
|
|
96
|
+
"./element": "./src/element.ts",
|
|
97
|
+
"./i18n": "./src/i18n.ts",
|
|
98
|
+
"./item": "./src/item.ts",
|
|
99
|
+
"./resource": "./src/resource.ts",
|
|
100
|
+
"./shared-styles": "./src/shared-styles.ts",
|
|
101
|
+
"./team-resource": "./src/team-resource.ts",
|
|
102
|
+
"./typeahead": "./src/typeahead.ts",
|
|
103
|
+
"./types": "./src/types.ts"
|
|
104
|
+
}
|
|
105
|
+
}
|