@atlaskit/mention 24.1.4 → 24.2.0
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
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/mention
|
|
2
2
|
|
|
3
|
+
## 24.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#157101](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/157101)
|
|
8
|
+
[`22968df0284f0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/22968df0284f0) -
|
|
9
|
+
We are testing the migration to the ADS Link component behind a feature flag. If this fix is
|
|
10
|
+
successful it will be available in a later release.
|
|
11
|
+
|
|
12
|
+
## 24.1.5
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 24.1.4
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/afm-cc/tsconfig.json
CHANGED
|
@@ -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 = "24.
|
|
15
|
+
var packageVersion = "24.2.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) {
|
|
@@ -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 = "24.
|
|
5
|
+
const packageVersion = "24.2.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) => {
|
|
@@ -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 = "24.
|
|
8
|
+
var packageVersion = "24.2.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/docs/1-in-editor.tsx
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import Link from '@atlaskit/link';
|
|
2
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
1
3
|
import React from 'react';
|
|
2
4
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
3
5
|
import { md, Example, code, AtlassianInternalWarning } from '@atlaskit/docs';
|
|
@@ -5,6 +7,10 @@ import { md, Example, code, AtlassianInternalWarning } from '@atlaskit/docs';
|
|
|
5
7
|
import MentionWithEditorExample from '../examples/14-mention-with-editor-extending-abstract-mention-resource';
|
|
6
8
|
const MentionWithEditorExampleSource = require('!!raw-loader!../examples/14-mention-with-editor-extending-abstract-mention-resource');
|
|
7
9
|
|
|
10
|
+
const LinkComponent = (props: any) =>
|
|
11
|
+
// eslint-disable-next-line @atlaskit/design-system/no-html-anchor, jsx-a11y/anchor-has-content
|
|
12
|
+
fg('dst-a11y__replace-anchor-with-link__search-platfor') ? <Link {...props} /> : <a {...props} />;
|
|
13
|
+
|
|
8
14
|
export default md`
|
|
9
15
|
${(<AtlassianInternalWarning />)}
|
|
10
16
|
|
|
@@ -13,7 +19,8 @@ export default md`
|
|
|
13
19
|
${(
|
|
14
20
|
<>
|
|
15
21
|
<Text as="p">
|
|
16
|
-
To use Mention in
|
|
22
|
+
To use Mention in{' '}
|
|
23
|
+
<LinkComponent href="/packages/editor/editor-core">@atlaskit/editor-core</LinkComponent>
|
|
17
24
|
{', '}
|
|
18
25
|
check the 'Editor with mentions' section in editor-core, then follow these steps for a more
|
|
19
26
|
involved tutorial:
|
package/package.json
CHANGED
|
@@ -33,16 +33,17 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/analytics-gas-types": "^5.1.0",
|
|
35
35
|
"@atlaskit/analytics-next": "^11.0.0",
|
|
36
|
-
"@atlaskit/avatar": "^25.
|
|
36
|
+
"@atlaskit/avatar": "^25.1.0",
|
|
37
37
|
"@atlaskit/focus-ring": "^3.0.0",
|
|
38
38
|
"@atlaskit/heading": "^5.2.0",
|
|
39
|
-
"@atlaskit/icon": "^
|
|
39
|
+
"@atlaskit/icon": "^26.1.0",
|
|
40
|
+
"@atlaskit/link": "^3.2.0",
|
|
40
41
|
"@atlaskit/lozenge": "^12.2.0",
|
|
41
42
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
42
|
-
"@atlaskit/primitives": "^14.
|
|
43
|
+
"@atlaskit/primitives": "^14.8.0",
|
|
43
44
|
"@atlaskit/teams-avatar": "^2.3.0",
|
|
44
45
|
"@atlaskit/theme": "^18.0.0",
|
|
45
|
-
"@atlaskit/tokens": "^4.
|
|
46
|
+
"@atlaskit/tokens": "^4.9.0",
|
|
46
47
|
"@atlaskit/tooltip": "^20.0.0",
|
|
47
48
|
"@atlaskit/ufo": "^0.4.0",
|
|
48
49
|
"@atlaskit/util-service-support": "^6.3.0",
|
|
@@ -54,8 +55,8 @@
|
|
|
54
55
|
},
|
|
55
56
|
"description": "A React component used to display user profiles in a list for 'Mention' functionality",
|
|
56
57
|
"devDependencies": {
|
|
57
|
-
"@atlaskit/elements-test-helpers": "
|
|
58
|
-
"@atlaskit/visual-regression": "
|
|
58
|
+
"@atlaskit/elements-test-helpers": "workspace:^",
|
|
59
|
+
"@atlaskit/visual-regression": "workspace:^",
|
|
59
60
|
"@atlassian/feature-flags-test-utils": "^0.3.0",
|
|
60
61
|
"@testing-library/react": "^13.4.0",
|
|
61
62
|
"@testing-library/user-event": "^14.4.3",
|
|
@@ -92,6 +93,9 @@
|
|
|
92
93
|
"platform-feature-flags": {
|
|
93
94
|
"team-avatar-in-mention-picker": {
|
|
94
95
|
"type": "boolean"
|
|
96
|
+
},
|
|
97
|
+
"dst-a11y__replace-anchor-with-link__search-platfor": {
|
|
98
|
+
"type": "boolean"
|
|
95
99
|
}
|
|
96
100
|
},
|
|
97
101
|
"publishConfig": {
|
|
@@ -119,5 +123,5 @@
|
|
|
119
123
|
]
|
|
120
124
|
}
|
|
121
125
|
},
|
|
122
|
-
"version": "24.
|
|
126
|
+
"version": "24.2.0"
|
|
123
127
|
}
|