@atlaskit/mention 23.3.2 → 23.3.4
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 +14 -0
- package/afm-cc/tsconfig.json +7 -2
- package/afm-jira/tsconfig.json +53 -53
- package/afm-post-office/tsconfig.json +59 -53
- package/dist/cjs/components/MentionDescriptionByline/styles.js +1 -1
- package/dist/cjs/components/MentionItem/styles.js +1 -1
- package/dist/cjs/components/MentionPicker/index.js +4 -1
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/es2019/components/MentionDescriptionByline/styles.js +1 -1
- package/dist/es2019/components/MentionItem/styles.js +1 -1
- package/dist/es2019/components/MentionPicker/index.js +4 -1
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/esm/components/MentionDescriptionByline/styles.js +1 -1
- package/dist/esm/components/MentionItem/styles.js +1 -1
- package/dist/esm/components/MentionPicker/index.js +4 -1
- package/dist/esm/util/analytics.js +1 -1
- package/docs/1-in-editor.tsx +3 -2
- package/package.json +10 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/mention
|
|
2
2
|
|
|
3
|
+
## 23.3.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#163815](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/163815)
|
|
8
|
+
[`c4cc01fa62da2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c4cc01fa62da2) -
|
|
9
|
+
Typography uplift work
|
|
10
|
+
|
|
11
|
+
## 23.3.3
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 23.3.2
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/afm-cc/tsconfig.json
CHANGED
|
@@ -5,8 +5,7 @@
|
|
|
5
5
|
"target": "es5",
|
|
6
6
|
"composite": true,
|
|
7
7
|
"outDir": "../dist",
|
|
8
|
-
"rootDir": "../"
|
|
9
|
-
"baseUrl": "../"
|
|
8
|
+
"rootDir": "../"
|
|
10
9
|
},
|
|
11
10
|
"include": [
|
|
12
11
|
"../src/**/*.ts",
|
|
@@ -30,12 +29,18 @@
|
|
|
30
29
|
{
|
|
31
30
|
"path": "../../../design-system/focus-ring/afm-cc/tsconfig.json"
|
|
32
31
|
},
|
|
32
|
+
{
|
|
33
|
+
"path": "../../../design-system/heading/afm-cc/tsconfig.json"
|
|
34
|
+
},
|
|
33
35
|
{
|
|
34
36
|
"path": "../../../design-system/icon/afm-cc/tsconfig.json"
|
|
35
37
|
},
|
|
36
38
|
{
|
|
37
39
|
"path": "../../../design-system/lozenge/afm-cc/tsconfig.json"
|
|
38
40
|
},
|
|
41
|
+
{
|
|
42
|
+
"path": "../../../design-system/primitives/afm-cc/tsconfig.json"
|
|
43
|
+
},
|
|
39
44
|
{
|
|
40
45
|
"path": "../../../design-system/theme/afm-cc/tsconfig.json"
|
|
41
46
|
},
|
package/afm-jira/tsconfig.json
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
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
|
-
}
|
|
2
|
+
"extends": "../../../../tsconfig.entry-points.jira.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"declaration": true,
|
|
5
|
+
"target": "es5",
|
|
6
|
+
"outDir": "../../../../../tsDist/@atlaskit__mention/app",
|
|
7
|
+
"rootDir": "../",
|
|
8
|
+
"composite": true
|
|
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
|
+
}
|
|
@@ -1,54 +1,60 @@
|
|
|
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
|
-
|
|
2
|
+
"extends": "../../../../tsconfig.entry-points.post-office.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"declaration": true,
|
|
5
|
+
"target": "es5",
|
|
6
|
+
"outDir": "../../../../../tsDist/@atlaskit__mention/app",
|
|
7
|
+
"rootDir": "../",
|
|
8
|
+
"composite": true
|
|
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/heading/afm-post-office/tsconfig.json"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"path": "../../../design-system/icon/afm-post-office/tsconfig.json"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"path": "../../../design-system/lozenge/afm-post-office/tsconfig.json"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"path": "../../../design-system/primitives/afm-post-office/tsconfig.json"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"path": "../../../design-system/theme/afm-post-office/tsconfig.json"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"path": "../../../design-system/tokens/afm-post-office/tsconfig.json"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"path": "../../../design-system/tooltip/afm-post-office/tsconfig.json"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"path": "../../../data/ufo-external/afm-post-office/tsconfig.json"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"path": "../../util-service-support/afm-post-office/tsconfig.json"
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
}
|
|
@@ -12,7 +12,7 @@ var _colors = require("@atlaskit/theme/colors");
|
|
|
12
12
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
13
13
|
var DescriptionBylineStyle = exports.DescriptionBylineStyle = _styled.default.span({
|
|
14
14
|
color: "var(--ds-text-subtlest, ".concat(_colors.N100, ")"),
|
|
15
|
-
|
|
15
|
+
font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
16
16
|
marginTop: "var(--ds-space-025, 2px)",
|
|
17
17
|
display: 'block',
|
|
18
18
|
overflow: 'hidden',
|
|
@@ -75,7 +75,7 @@ var TimeStyle = exports.TimeStyle = _styled.default.div({
|
|
|
75
75
|
marginLeft: "var(--ds-space-250, 20px)",
|
|
76
76
|
flex: 'none',
|
|
77
77
|
color: "var(--ds-text-subtlest, ".concat(_colors.N100, ")"),
|
|
78
|
-
|
|
78
|
+
font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
|
|
79
79
|
});
|
|
80
80
|
var MENTION_ITEM_HEIGHT = exports.MENTION_ITEM_HEIGHT = 48;
|
|
81
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
|
|
@@ -12,6 +12,7 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
|
|
|
12
12
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
13
13
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
14
14
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
|
+
var _primitives = require("@atlaskit/primitives");
|
|
15
16
|
var _withAnalyticsEvents = _interopRequireDefault(require("@atlaskit/analytics-next/withAnalyticsEvents"));
|
|
16
17
|
var _react = _interopRequireDefault(require("react"));
|
|
17
18
|
var _reactIntlNext = require("react-intl-next");
|
|
@@ -190,7 +191,9 @@ var MentionPicker = exports.MentionPicker = /*#__PURE__*/function (_React$PureCo
|
|
|
190
191
|
query: query,
|
|
191
192
|
ref: this.handleMentionListRef
|
|
192
193
|
});
|
|
193
|
-
var infoContent = info && !visible ? /*#__PURE__*/_react.default.createElement(_styles.MentionPickerInfoStyle, null, /*#__PURE__*/_react.default.createElement(
|
|
194
|
+
var infoContent = info && !visible ? /*#__PURE__*/_react.default.createElement(_styles.MentionPickerInfoStyle, null, /*#__PURE__*/_react.default.createElement(_primitives.Text, {
|
|
195
|
+
as: "p"
|
|
196
|
+
}, info)) : null;
|
|
194
197
|
var content;
|
|
195
198
|
if (position) {
|
|
196
199
|
(0, _logger.default)('target, position', target, position);
|
|
@@ -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.3.
|
|
15
|
+
var packageVersion = "23.3.4";
|
|
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 fireAnalyticsMentionTypeaheadEvent = exports.fireAnalyticsMentionTypeaheadEvent = function fireAnalyticsMentionTypeaheadEvent(props) {
|
|
@@ -4,7 +4,7 @@ import { N100 } from '@atlaskit/theme/colors';
|
|
|
4
4
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
5
5
|
export const DescriptionBylineStyle = styled.span({
|
|
6
6
|
color: `var(--ds-text-subtlest, ${N100})`,
|
|
7
|
-
|
|
7
|
+
font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
8
8
|
marginTop: "var(--ds-space-025, 2px)",
|
|
9
9
|
display: 'block',
|
|
10
10
|
overflow: 'hidden',
|
|
@@ -61,7 +61,7 @@ export const TimeStyle = styled.div({
|
|
|
61
61
|
marginLeft: "var(--ds-space-250, 20px)",
|
|
62
62
|
flex: 'none',
|
|
63
63
|
color: `var(--ds-text-subtlest, ${N100})`,
|
|
64
|
-
|
|
64
|
+
font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
|
|
65
65
|
});
|
|
66
66
|
export const MENTION_ITEM_HEIGHT = 48;
|
|
67
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
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
import { Text } from '@atlaskit/primitives';
|
|
2
3
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
3
4
|
import React from 'react';
|
|
4
5
|
import { IntlProvider, injectIntl } from 'react-intl-next';
|
|
@@ -155,7 +156,9 @@ export class MentionPicker extends React.PureComponent {
|
|
|
155
156
|
query: query,
|
|
156
157
|
ref: this.handleMentionListRef
|
|
157
158
|
});
|
|
158
|
-
const infoContent = info && !visible ? /*#__PURE__*/React.createElement(MentionPickerInfoStyle, null, /*#__PURE__*/React.createElement(
|
|
159
|
+
const infoContent = info && !visible ? /*#__PURE__*/React.createElement(MentionPickerInfoStyle, null, /*#__PURE__*/React.createElement(Text, {
|
|
160
|
+
as: "p"
|
|
161
|
+
}, info)) : null;
|
|
159
162
|
let content;
|
|
160
163
|
if (position) {
|
|
161
164
|
debug('target, position', target, position);
|
|
@@ -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 { ComponentNames, isSpecialMentionText } from '../types';
|
|
4
4
|
const packageName = "@atlaskit/mention";
|
|
5
|
-
const packageVersion = "23.3.
|
|
5
|
+
const packageVersion = "23.3.4";
|
|
6
6
|
export const SLI_EVENT_TYPE = 'sli';
|
|
7
7
|
export const SMART_EVENT_TYPE = 'smart';
|
|
8
8
|
export const fireAnalyticsMentionTypeaheadEvent = props => (action, duration, userIds = [], query) => {
|
|
@@ -4,7 +4,7 @@ import { N100 } from '@atlaskit/theme/colors';
|
|
|
4
4
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
5
5
|
export var DescriptionBylineStyle = styled.span({
|
|
6
6
|
color: "var(--ds-text-subtlest, ".concat(N100, ")"),
|
|
7
|
-
|
|
7
|
+
font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
8
8
|
marginTop: "var(--ds-space-025, 2px)",
|
|
9
9
|
display: 'block',
|
|
10
10
|
overflow: 'hidden',
|
|
@@ -67,7 +67,7 @@ export var TimeStyle = styled.div({
|
|
|
67
67
|
marginLeft: "var(--ds-space-250, 20px)",
|
|
68
68
|
flex: 'none',
|
|
69
69
|
color: "var(--ds-text-subtlest, ".concat(N100, ")"),
|
|
70
|
-
|
|
70
|
+
font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
|
|
71
71
|
});
|
|
72
72
|
export var MENTION_ITEM_HEIGHT = 48;
|
|
73
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
|
|
@@ -7,6 +7,7 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
8
|
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
9
9
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
|
+
import { Text } from '@atlaskit/primitives';
|
|
10
11
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
11
12
|
import React from 'react';
|
|
12
13
|
import { IntlProvider, injectIntl } from 'react-intl-next';
|
|
@@ -183,7 +184,9 @@ export var MentionPicker = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
183
184
|
query: query,
|
|
184
185
|
ref: this.handleMentionListRef
|
|
185
186
|
});
|
|
186
|
-
var infoContent = info && !visible ? /*#__PURE__*/React.createElement(MentionPickerInfoStyle, null, /*#__PURE__*/React.createElement(
|
|
187
|
+
var infoContent = info && !visible ? /*#__PURE__*/React.createElement(MentionPickerInfoStyle, null, /*#__PURE__*/React.createElement(Text, {
|
|
188
|
+
as: "p"
|
|
189
|
+
}, info)) : null;
|
|
187
190
|
var content;
|
|
188
191
|
if (position) {
|
|
189
192
|
debug('target, position', target, position);
|
|
@@ -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 { ComponentNames, isSpecialMentionText } from '../types';
|
|
7
7
|
var packageName = "@atlaskit/mention";
|
|
8
|
-
var packageVersion = "23.3.
|
|
8
|
+
var packageVersion = "23.3.4";
|
|
9
9
|
export var SLI_EVENT_TYPE = 'sli';
|
|
10
10
|
export var SMART_EVENT_TYPE = 'smart';
|
|
11
11
|
export var fireAnalyticsMentionTypeaheadEvent = function fireAnalyticsMentionTypeaheadEvent(props) {
|
package/docs/1-in-editor.tsx
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { Text } from '@atlaskit/primitives';
|
|
2
3
|
import { md, Example, code, AtlassianInternalWarning } from '@atlaskit/docs';
|
|
3
4
|
|
|
4
5
|
import MentionWithEditorExample from '../examples/14-mention-with-editor-extending-abstract-mention-resource';
|
|
@@ -11,12 +12,12 @@ export default md`
|
|
|
11
12
|
|
|
12
13
|
${(
|
|
13
14
|
<>
|
|
14
|
-
<p>
|
|
15
|
+
<Text as="p">
|
|
15
16
|
To use Mention in <a href="/packages/editor/editor-core">@atlaskit/editor-core</a>
|
|
16
17
|
{', '}
|
|
17
18
|
check the 'Editor with mentions' section in editor-core, then follow these steps for a more
|
|
18
19
|
involved tutorial:
|
|
19
|
-
</
|
|
20
|
+
</Text>
|
|
20
21
|
</>
|
|
21
22
|
)}
|
|
22
23
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/mention",
|
|
3
|
-
"version": "23.3.
|
|
3
|
+
"version": "23.3.4",
|
|
4
4
|
"description": "A React component used to display user profiles in a list for 'Mention' functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -42,13 +42,15 @@
|
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@atlaskit/analytics-gas-types": "^5.1.0",
|
|
44
44
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
45
|
-
"@atlaskit/avatar": "^21.
|
|
46
|
-
"@atlaskit/focus-ring": "^1.
|
|
47
|
-
"@atlaskit/
|
|
48
|
-
"@atlaskit/
|
|
49
|
-
"@atlaskit/
|
|
50
|
-
"@atlaskit/
|
|
51
|
-
"@atlaskit/
|
|
45
|
+
"@atlaskit/avatar": "^21.17.0",
|
|
46
|
+
"@atlaskit/focus-ring": "^1.7.0",
|
|
47
|
+
"@atlaskit/heading": "^2.4.0",
|
|
48
|
+
"@atlaskit/icon": "^22.24.0",
|
|
49
|
+
"@atlaskit/lozenge": "^11.12.0",
|
|
50
|
+
"@atlaskit/primitives": "^13.0.0",
|
|
51
|
+
"@atlaskit/theme": "^14.0.0",
|
|
52
|
+
"@atlaskit/tokens": "^2.2.0",
|
|
53
|
+
"@atlaskit/tooltip": "^18.9.0",
|
|
52
54
|
"@atlaskit/ufo": "^0.3.0",
|
|
53
55
|
"@atlaskit/util-service-support": "^6.2.0",
|
|
54
56
|
"@babel/runtime": "^7.0.0",
|