@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
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/mention
|
|
2
2
|
|
|
3
|
+
## 23.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 23.2.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#104824](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/104824)
|
|
14
|
+
[`10443be28cedb`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/10443be28cedb) -
|
|
15
|
+
converting tagged template syntax to object syntax for remanining styles from DSP-17626
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 23.1.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
|
@@ -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
|
@@ -32,8 +32,8 @@ var CacheEntry = /*#__PURE__*/function () {
|
|
|
32
32
|
}]);
|
|
33
33
|
return CacheEntry;
|
|
34
34
|
}();
|
|
35
|
-
var AbstractPresenceResource = exports.AbstractPresenceResource = /*#__PURE__*/function (
|
|
36
|
-
(0, _inherits2.default)(AbstractPresenceResource,
|
|
35
|
+
var AbstractPresenceResource = exports.AbstractPresenceResource = /*#__PURE__*/function (_AbstractResource) {
|
|
36
|
+
(0, _inherits2.default)(AbstractPresenceResource, _AbstractResource);
|
|
37
37
|
var _super = _createSuper(AbstractPresenceResource);
|
|
38
38
|
function AbstractPresenceResource() {
|
|
39
39
|
(0, _classCallCheck2.default)(this, AbstractPresenceResource);
|
|
@@ -324,10 +324,10 @@ var DefaultPresenceParser = exports.DefaultPresenceParser = /*#__PURE__*/functio
|
|
|
324
324
|
}
|
|
325
325
|
|
|
326
326
|
/*
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
327
|
+
This is a bit of an odd exception. In the case where a user is in "Focus Mode", their presence state
|
|
328
|
+
is returned as 'busy' along with a `stateMetadata` object containing a `focus` field.
|
|
329
|
+
In this case we ignore the value of the `state` field and treat the presence as a 'focus' state.
|
|
330
|
+
*/
|
|
331
331
|
}, {
|
|
332
332
|
key: "isFocusState",
|
|
333
333
|
value: function isFocusState(presence) {
|
|
@@ -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,8 +48,10 @@ 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
|
|
48
|
-
|
|
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
|
+
,
|
|
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({
|
|
51
57
|
mentionType: mentionType
|
|
@@ -5,9 +5,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.DescriptionBylineStyle = void 0;
|
|
8
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
8
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
10
9
|
var _colors = require("@atlaskit/theme/colors");
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
|
13
|
+
var DescriptionBylineStyle = exports.DescriptionBylineStyle = _styled.default.span({
|
|
14
|
+
color: "var(--ds-text-subtlest, ".concat(_colors.N100, ")"),
|
|
15
|
+
fontSize: '12px',
|
|
16
|
+
marginTop: "var(--ds-space-025, 2px)",
|
|
17
|
+
display: 'block',
|
|
18
|
+
overflow: 'hidden',
|
|
19
|
+
textOverflow: 'ellipsis',
|
|
20
|
+
whiteSpace: 'nowrap'
|
|
21
|
+
});
|
|
@@ -5,38 +5,95 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
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
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
8
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
10
9
|
var _colors = require("@atlaskit/theme/colors");
|
|
11
|
-
|
|
12
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
13
|
-
var RowStyle = exports.RowStyle = _styled.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n align-items: center;\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n overflow: hidden;\n padding: ", " ", ";\n text-overflow: ellipsis;\n vertical-align: middle;\n"])), "var(--ds-space-075, 6px)", "var(--ds-space-150, 12px)");
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
14
11
|
|
|
15
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
16
|
-
var
|
|
17
|
-
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
13
|
+
var RowStyle = exports.RowStyle = _styled.default.div({
|
|
14
|
+
alignItems: 'center',
|
|
15
|
+
display: 'flex',
|
|
16
|
+
flexDirection: 'row',
|
|
17
|
+
flexWrap: 'wrap',
|
|
18
|
+
overflow: 'hidden',
|
|
19
|
+
padding: "var(--ds-space-075, 6px)".concat(" ", "var(--ds-space-150, 12px)"),
|
|
20
|
+
textOverflow: 'ellipsis',
|
|
21
|
+
verticalAlign: 'middle'
|
|
18
22
|
});
|
|
19
23
|
|
|
20
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
21
|
-
var
|
|
22
|
-
return
|
|
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
|
+
var AvatarStyle = exports.AvatarStyle = _styled.default.span(function (props) {
|
|
26
|
+
return {
|
|
27
|
+
position: 'relative',
|
|
28
|
+
flex: 'initial',
|
|
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
|
+
};
|
|
23
32
|
});
|
|
24
33
|
|
|
25
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
26
|
-
var
|
|
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
|
|
35
|
+
var NameSectionStyle = exports.NameSectionStyle = _styled.default.div(function (props) {
|
|
36
|
+
return {
|
|
37
|
+
flex: 1,
|
|
38
|
+
minWidth: 0,
|
|
39
|
+
marginLeft: "var(--ds-space-150, 12px)",
|
|
40
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
41
|
+
opacity: props.restricted ? '0.5' : 'inherit'
|
|
42
|
+
};
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
46
|
+
var FullNameStyle = exports.FullNameStyle = _styled.default.span({
|
|
47
|
+
display: 'block',
|
|
48
|
+
overflow: 'hidden',
|
|
49
|
+
textOverflow: 'ellipsis',
|
|
50
|
+
whiteSpace: 'nowrap',
|
|
51
|
+
color: "var(--ds-text, ".concat(_colors.N900, ")")
|
|
52
|
+
});
|
|
27
53
|
|
|
28
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
29
|
-
var InfoSectionStyle = exports.InfoSectionStyle = _styled.default.div(
|
|
30
|
-
return
|
|
31
|
-
|
|
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
|
|
55
|
+
var InfoSectionStyle = exports.InfoSectionStyle = _styled.default.div(function (props) {
|
|
56
|
+
return {
|
|
57
|
+
display: 'flex',
|
|
58
|
+
flexDirection: 'column',
|
|
59
|
+
textAlign: 'right',
|
|
60
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
61
|
+
opacity: props.restricted ? '0.5' : 'inherit',
|
|
62
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
63
|
+
'&': {
|
|
64
|
+
/* Lozenge */
|
|
65
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
66
|
+
'& > span': {
|
|
67
|
+
marginBottom: "var(--ds-space-025, 2px)"
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
});
|
|
32
72
|
|
|
33
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
34
|
-
var TimeStyle = exports.TimeStyle = _styled.default.div(
|
|
73
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
74
|
+
var TimeStyle = exports.TimeStyle = _styled.default.div({
|
|
75
|
+
marginLeft: "var(--ds-space-250, 20px)",
|
|
76
|
+
flex: 'none',
|
|
77
|
+
color: "var(--ds-text-subtlest, ".concat(_colors.N100, ")"),
|
|
78
|
+
fontSize: '12px'
|
|
79
|
+
});
|
|
35
80
|
var MENTION_ITEM_HEIGHT = exports.MENTION_ITEM_HEIGHT = 48;
|
|
36
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
37
|
-
var MentionItemStyle = exports.MentionItemStyle = _styled.default.div(
|
|
38
|
-
return
|
|
39
|
-
|
|
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
|
|
82
|
+
var MentionItemStyle = exports.MentionItemStyle = _styled.default.div(function (props) {
|
|
83
|
+
return {
|
|
84
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
85
|
+
backgroundColor: props.selected ? "var(--ds-background-selected, ".concat(_colors.N30, ")") : 'transparent',
|
|
86
|
+
display: 'block',
|
|
87
|
+
overflow: 'hidden',
|
|
88
|
+
listStyleType: 'none',
|
|
89
|
+
height: "".concat(MENTION_ITEM_HEIGHT, "px"),
|
|
90
|
+
lineHeight: 1.2,
|
|
91
|
+
cursor: 'pointer'
|
|
92
|
+
};
|
|
93
|
+
});
|
|
40
94
|
|
|
41
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
42
|
-
var AccessSectionStyle = exports.AccessSectionStyle = _styled.default.div(
|
|
95
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
96
|
+
var AccessSectionStyle = exports.AccessSectionStyle = _styled.default.div({
|
|
97
|
+
paddingLeft: "var(--ds-space-050, 4px)",
|
|
98
|
+
color: "var(--ds-text-subtle, ".concat(_colors.N500, ")")
|
|
99
|
+
});
|
|
@@ -5,11 +5,24 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.MentionListStyle = void 0;
|
|
8
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
8
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
10
9
|
var _sharedStyles = require("../../shared-styles");
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
|
13
|
+
var MentionListStyle = exports.MentionListStyle = _styled.default.div(function (props) {
|
|
14
|
+
return {
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
16
|
+
display: props.empty ? 'none' : 'block',
|
|
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
|
|
19
|
+
width: _sharedStyles.mentionListWidth,
|
|
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
|
|
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
|
|
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
|
|
26
|
+
boxShadow: _sharedStyles.noDialogContainerBoxShadow
|
|
27
|
+
};
|
|
28
|
+
});
|
|
@@ -10,16 +10,32 @@ 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 --
|
|
15
|
-
var MentionListErrorStyle = exports.MentionListErrorStyle = _styled.default.div(
|
|
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
|
+
var MentionListErrorStyle = exports.MentionListErrorStyle = _styled.default.div({
|
|
16
|
+
alignItems: 'center',
|
|
17
|
+
display: 'flex',
|
|
18
|
+
justifyContent: 'center',
|
|
19
|
+
flexDirection: 'column',
|
|
20
|
+
backgroundColor: "var(--ds-surface-overlay, white)",
|
|
21
|
+
color: "var(--ds-text-subtle, ".concat(_colors.N500, ")"),
|
|
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
|
|
24
|
+
borderRadius: "".concat((0, _constants.borderRadius)(), "px")
|
|
25
|
+
});
|
|
16
26
|
|
|
17
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
18
|
-
var GenericErrorVisualStyle = exports.GenericErrorVisualStyle = _styled.default.div(
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
28
|
+
var GenericErrorVisualStyle = exports.GenericErrorVisualStyle = _styled.default.div({
|
|
29
|
+
marginBottom: "var(--ds-space-100, 8px)",
|
|
30
|
+
marginTop: "var(--ds-space-400, 32px)",
|
|
31
|
+
width: "var(--ds-space-1000, 80px)"
|
|
32
|
+
});
|
|
19
33
|
|
|
20
34
|
// TODO: Figure out why the themed css function is causing type errors when passed prop children
|
|
21
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
22
|
-
var MentionListErrorHeadlineStyle = exports.MentionListErrorHeadlineStyle = _styled.default.div(
|
|
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
|
|
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)");
|
|
23
37
|
|
|
24
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
25
|
-
var MentionListAdviceStyle = exports.MentionListAdviceStyle = _styled.default.div(
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
39
|
+
var MentionListAdviceStyle = exports.MentionListAdviceStyle = _styled.default.div({
|
|
40
|
+
marginBottom: "var(--ds-space-600, 48px)"
|
|
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;
|
|
@@ -5,15 +5,41 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.MentionPickerStyle = exports.MentionPickerInfoStyle = void 0;
|
|
8
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
8
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
10
9
|
var _colors = require("@atlaskit/theme/colors");
|
|
11
10
|
var _sharedStyles = require("../../shared-styles");
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
|
14
|
+
var MentionPickerStyle = exports.MentionPickerStyle = _styled.default.div(function (props) {
|
|
15
|
+
return {
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
17
|
+
display: props.visible ? 'block' : 'none'
|
|
18
|
+
};
|
|
16
19
|
});
|
|
17
20
|
|
|
18
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
19
|
-
var MentionPickerInfoStyle = exports.MentionPickerInfoStyle = _styled.default.div(
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
22
|
+
var MentionPickerInfoStyle = exports.MentionPickerInfoStyle = _styled.default.div({
|
|
23
|
+
background: "var(--ds-surface, #fff)",
|
|
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
|
|
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
|
|
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
|
|
30
|
+
boxShadow: _sharedStyles.noDialogContainerBoxShadow,
|
|
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
|
|
33
|
+
width: _sharedStyles.mentionListWidth,
|
|
34
|
+
whiteSpace: 'nowrap',
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
36
|
+
'&': {
|
|
37
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
38
|
+
p: {
|
|
39
|
+
margin: 0,
|
|
40
|
+
overflow: 'hidden',
|
|
41
|
+
padding: "var(--ds-space-100, 8px)",
|
|
42
|
+
textOverflow: 'ellipsis'
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
});
|
|
@@ -5,10 +5,21 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.ScrollableStyle = void 0;
|
|
8
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
8
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
10
9
|
var _constants = require("@atlaskit/theme/constants");
|
|
11
10
|
var _sharedStyles = require("../../shared-styles");
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
|
14
|
+
var ScrollableStyle = exports.ScrollableStyle = _styled.default.div({
|
|
15
|
+
display: 'block',
|
|
16
|
+
overflowX: 'hidden',
|
|
17
|
+
overflowY: 'auto',
|
|
18
|
+
padding: "var(--ds-space-050, 4px)".concat(" 0"),
|
|
19
|
+
margin: 0,
|
|
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
|
|
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
|
|
24
|
+
borderRadius: "".concat((0, _constants.borderRadius)(), "px")
|
|
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.1
|
|
15
|
+
var packageVersion = "23.2.1";
|
|
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) {
|
|
@@ -225,10 +225,10 @@ export class DefaultPresenceParser {
|
|
|
225
225
|
}
|
|
226
226
|
|
|
227
227
|
/*
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
228
|
+
This is a bit of an odd exception. In the case where a user is in "Focus Mode", their presence state
|
|
229
|
+
is returned as 'busy' along with a `stateMetadata` object containing a `focus` field.
|
|
230
|
+
In this case we ignore the value of the `state` field and treat the presence as a 'focus' state.
|
|
231
|
+
*/
|
|
232
232
|
static isFocusState(presence) {
|
|
233
233
|
if (presence.stateMetadata) {
|
|
234
234
|
try {
|
|
@@ -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,36 +42,38 @@ 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
|
-
|
|
44
|
-
|
|
49
|
+
display: inline;
|
|
50
|
+
border: 1px solid ${getStyle({
|
|
45
51
|
mentionType
|
|
46
52
|
}, 'borderColor')};
|
|
47
|
-
|
|
53
|
+
background: ${getStyle({
|
|
48
54
|
mentionType
|
|
49
55
|
}, 'background')};
|
|
50
|
-
|
|
56
|
+
color: ${getStyle({
|
|
51
57
|
mentionType
|
|
52
58
|
}, 'text')};
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
border-radius: 20px;
|
|
60
|
+
cursor: pointer;
|
|
61
|
+
padding: 0 0.3em 2px 0.23em;
|
|
62
|
+
line-height: 1.714;
|
|
63
|
+
font-size: 1em;
|
|
64
|
+
font-weight: normal;
|
|
65
|
+
word-break: break-word;
|
|
66
|
+
&:hover {
|
|
67
|
+
background: ${getStyle({
|
|
62
68
|
mentionType
|
|
63
69
|
}, 'hoveredBackground')};
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
70
|
+
}
|
|
71
|
+
&:active {
|
|
72
|
+
background: ${getStyle({
|
|
67
73
|
mentionType
|
|
68
74
|
}, 'pressedBackground')};
|
|
69
|
-
|
|
70
|
-
|
|
75
|
+
}
|
|
76
|
+
`
|
|
71
77
|
}, other));
|
|
72
78
|
});
|
|
73
79
|
export default PrimitiveMention;
|