@atlaskit/mention 27.16.0 → 27.17.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 +13 -0
- package/dist/cjs/components/MentionPicker/index.js +0 -2
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/es2019/components/MentionPicker/index.js +0 -2
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/esm/components/MentionPicker/index.js +0 -2
- package/dist/esm/util/analytics.js +1 -1
- package/dist/types/types.d.ts +1 -0
- package/package.json +3 -3
- package/mention.docs.tsx +0 -72
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/mention
|
|
2
2
|
|
|
3
|
+
## 27.17.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 27.17.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`6997a74055219`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6997a74055219) -
|
|
14
|
+
Add profile card on hover in the mentions typeahead for agent mentions
|
|
15
|
+
|
|
3
16
|
## 27.16.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
|
@@ -233,7 +233,5 @@ var MentionPicker = exports.MentionPicker = /*#__PURE__*/function (_React$PureCo
|
|
|
233
233
|
var MentionPickerWithIntl = (0, _reactIntl.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
|
|
238
236
|
var MentionPickerWithAnalytics = exports.MentionPickerWithAnalytics = (0, _withAnalyticsEvents.default)({})(MentionPickerWithIntl);
|
|
239
237
|
var _default = exports.default = MentionPickerWithAnalytics;
|
|
@@ -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 = "27.
|
|
15
|
+
var packageVersion = "27.17.0";
|
|
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) {
|
|
@@ -199,7 +199,5 @@ _defineProperty(MentionPicker, "defaultProps", {
|
|
|
199
199
|
const MentionPickerWithIntl = injectIntl(MentionPicker, {
|
|
200
200
|
forwardRef: true
|
|
201
201
|
});
|
|
202
|
-
|
|
203
|
-
// @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
204
202
|
export const MentionPickerWithAnalytics = withAnalyticsEvents({})(MentionPickerWithIntl);
|
|
205
203
|
export default MentionPickerWithAnalytics;
|
|
@@ -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 = "27.
|
|
5
|
+
const packageVersion = "27.17.0";
|
|
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) => {
|
|
@@ -226,7 +226,5 @@ _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
|
|
231
229
|
export var MentionPickerWithAnalytics = withAnalyticsEvents({})(MentionPickerWithIntl);
|
|
232
230
|
export default MentionPickerWithAnalytics;
|
|
@@ -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 = "27.
|
|
8
|
+
var packageVersion = "27.17.0";
|
|
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/dist/types/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@atlaskit/focus-ring": "^5.0.0",
|
|
35
35
|
"@atlaskit/heading": "^7.0.0",
|
|
36
36
|
"@atlaskit/icon": "^37.3.0",
|
|
37
|
-
"@atlaskit/lozenge": "^15.
|
|
37
|
+
"@atlaskit/lozenge": "^15.1.0",
|
|
38
38
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
39
39
|
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
40
40
|
"@atlaskit/primitives": "^22.2.0",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@atlaskit/skeleton": "^4.2.0",
|
|
43
43
|
"@atlaskit/tag": "^15.4.0",
|
|
44
44
|
"@atlaskit/teams-avatar": "^4.1.0",
|
|
45
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
45
|
+
"@atlaskit/tmp-editor-statsig": "^148.0.0",
|
|
46
46
|
"@atlaskit/tokens": "^16.7.0",
|
|
47
47
|
"@atlaskit/tooltip": "^24.0.0",
|
|
48
48
|
"@atlaskit/ufo": "^1.0.0",
|
|
@@ -126,5 +126,5 @@
|
|
|
126
126
|
}
|
|
127
127
|
},
|
|
128
128
|
"types": "dist/types/index.d.ts",
|
|
129
|
-
"version": "27.
|
|
129
|
+
"version": "27.17.1"
|
|
130
130
|
}
|
package/mention.docs.tsx
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Structured MCP docs for `@atlaskit/mention`.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import path from 'path';
|
|
6
|
-
|
|
7
|
-
import type { StructuredContentSource } from '@atlassian/structured-docs-types/types';
|
|
8
|
-
|
|
9
|
-
import packageJson from './package.json';
|
|
10
|
-
|
|
11
|
-
const packagePath = path.resolve(__dirname);
|
|
12
|
-
|
|
13
|
-
const documentation: StructuredContentSource = {
|
|
14
|
-
package: {
|
|
15
|
-
package: '@atlaskit/mention',
|
|
16
|
-
packagePath,
|
|
17
|
-
packageJson,
|
|
18
|
-
overview:
|
|
19
|
-
'React components for displaying user and team mentions. It includes support for mention items, lists, and pickers with integration for profile cards and presence.',
|
|
20
|
-
},
|
|
21
|
-
components: [
|
|
22
|
-
{
|
|
23
|
-
name: 'Mention',
|
|
24
|
-
description: 'A component for displaying a single mention.',
|
|
25
|
-
status: 'general-availability',
|
|
26
|
-
import: {
|
|
27
|
-
name: 'Mention',
|
|
28
|
-
package: '@atlaskit/mention',
|
|
29
|
-
type: 'named',
|
|
30
|
-
packagePath,
|
|
31
|
-
packageJson,
|
|
32
|
-
},
|
|
33
|
-
usageGuidelines: ['Use `Mention` to render a mention for a user or team.'],
|
|
34
|
-
keywords: ['mention', 'user', 'team'],
|
|
35
|
-
categories: ['elements'],
|
|
36
|
-
examples: [
|
|
37
|
-
{
|
|
38
|
-
name: 'Simple mention',
|
|
39
|
-
description: 'Basic usage of the Mention component.',
|
|
40
|
-
source: path.resolve(packagePath, './examples/07-simple-mention.tsx'),
|
|
41
|
-
},
|
|
42
|
-
],
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
name: 'MentionPicker',
|
|
46
|
-
description: 'A component that provides a searchable picker for mentions.',
|
|
47
|
-
status: 'general-availability',
|
|
48
|
-
import: {
|
|
49
|
-
name: 'MentionPicker',
|
|
50
|
-
package: '@atlaskit/mention',
|
|
51
|
-
type: 'named',
|
|
52
|
-
packagePath,
|
|
53
|
-
packageJson,
|
|
54
|
-
},
|
|
55
|
-
usageGuidelines: [
|
|
56
|
-
'Use `MentionPicker` to allow users to select a user or team to mention.',
|
|
57
|
-
'Requires a `MentionResource` to fetch and manage mention data.',
|
|
58
|
-
],
|
|
59
|
-
keywords: ['mention', 'picker', 'select'],
|
|
60
|
-
categories: ['elements'],
|
|
61
|
-
examples: [
|
|
62
|
-
{
|
|
63
|
-
name: 'Mention list picker',
|
|
64
|
-
description: 'Basic usage of MentionPicker.',
|
|
65
|
-
source: path.resolve(packagePath, './examples/05-mention-list-picker.tsx'),
|
|
66
|
-
},
|
|
67
|
-
],
|
|
68
|
-
},
|
|
69
|
-
],
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
export default documentation;
|