@atlaskit/mention 27.12.6 → 27.12.8
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 +3 -0
- package/afm-products/tsconfig.json +3 -0
- package/dist/cjs/components/MentionAvatar/index.js +2 -1
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/es2019/components/MentionAvatar/index.js +2 -1
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/esm/components/MentionAvatar/index.js +2 -1
- package/dist/esm/util/analytics.js +1 -1
- package/package.json +7 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/mention
|
|
2
2
|
|
|
3
|
+
## 27.12.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 27.12.7
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`63f19f077a0d1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/63f19f077a0d1) -
|
|
14
|
+
Consolidate mention avatar rollout controls under the rovo_chat_mention_agents experiment.
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 27.12.6
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/afm-cc/tsconfig.json
CHANGED
|
@@ -9,6 +9,7 @@ exports.MentionAvatar = void 0;
|
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
10
|
var _avatar = _interopRequireWildcard(require("@atlaskit/avatar"));
|
|
11
11
|
var _teamsAvatar = _interopRequireDefault(require("@atlaskit/teams-avatar/teams-avatar"));
|
|
12
|
+
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
12
13
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
14
|
var _types = require("../../types");
|
|
14
15
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
@@ -31,7 +32,7 @@ var MentionAvatar = exports.MentionAvatar = function MentionAvatar(_ref) {
|
|
|
31
32
|
|
|
32
33
|
// Agent providers can request GraphQL `identityAccount { picture }` and pass it as
|
|
33
34
|
// `avatarUrl`; this component only applies the hexagon agent shape.
|
|
34
|
-
var shouldRenderAgentMentionAvatar = (0, _types.isAppMention)(mention) && mention.appType === 'agent' && (0,
|
|
35
|
+
var shouldRenderAgentMentionAvatar = (0, _types.isAppMention)(mention) && mention.appType === 'agent' && (0, _isExperimentEnabled.isExperimentEnabled)('rovo_chat_mention_agents');
|
|
35
36
|
var avatarAppearance = shouldRenderAgentMentionAvatar ? 'hexagon' : (0, _platformFeatureFlags.fg)('jira_ai_agent_avatar_issue_view_comment_mentions') ? (0, _avatar.getAppearanceForAppType)(appType) : undefined;
|
|
36
37
|
return /*#__PURE__*/_react.default.createElement(_avatar.default, {
|
|
37
38
|
src: avatarUrl,
|
|
@@ -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.12.
|
|
15
|
+
var packageVersion = "27.12.7";
|
|
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) {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import Avatar, { getAppearanceForAppType } from '@atlaskit/avatar';
|
|
3
3
|
import TeamAvatar from '@atlaskit/teams-avatar/teams-avatar';
|
|
4
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
4
5
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
6
|
import { isAppMention, isTeamMention } from '../../types';
|
|
6
7
|
export const MentionAvatar = ({
|
|
@@ -26,7 +27,7 @@ export const MentionAvatar = ({
|
|
|
26
27
|
|
|
27
28
|
// Agent providers can request GraphQL `identityAccount { picture }` and pass it as
|
|
28
29
|
// `avatarUrl`; this component only applies the hexagon agent shape.
|
|
29
|
-
const shouldRenderAgentMentionAvatar = isAppMention(mention) && mention.appType === 'agent' &&
|
|
30
|
+
const shouldRenderAgentMentionAvatar = isAppMention(mention) && mention.appType === 'agent' && isExperimentEnabled('rovo_chat_mention_agents');
|
|
30
31
|
const avatarAppearance = shouldRenderAgentMentionAvatar ? 'hexagon' : fg('jira_ai_agent_avatar_issue_view_comment_mentions') ? getAppearanceForAppType(appType) : undefined;
|
|
31
32
|
return /*#__PURE__*/React.createElement(Avatar, {
|
|
32
33
|
src: avatarUrl,
|
|
@@ -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.12.
|
|
5
|
+
const packageVersion = "27.12.7";
|
|
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) => {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import Avatar, { getAppearanceForAppType } from '@atlaskit/avatar';
|
|
3
3
|
import TeamAvatar from '@atlaskit/teams-avatar/teams-avatar';
|
|
4
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
4
5
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
6
|
import { isAppMention, isTeamMention } from '../../types';
|
|
6
7
|
export var MentionAvatar = function MentionAvatar(_ref) {
|
|
@@ -22,7 +23,7 @@ export var MentionAvatar = function MentionAvatar(_ref) {
|
|
|
22
23
|
|
|
23
24
|
// Agent providers can request GraphQL `identityAccount { picture }` and pass it as
|
|
24
25
|
// `avatarUrl`; this component only applies the hexagon agent shape.
|
|
25
|
-
var shouldRenderAgentMentionAvatar = isAppMention(mention) && mention.appType === 'agent' &&
|
|
26
|
+
var shouldRenderAgentMentionAvatar = isAppMention(mention) && mention.appType === 'agent' && isExperimentEnabled('rovo_chat_mention_agents');
|
|
26
27
|
var avatarAppearance = shouldRenderAgentMentionAvatar ? 'hexagon' : fg('jira_ai_agent_avatar_issue_view_comment_mentions') ? getAppearanceForAppType(appType) : undefined;
|
|
27
28
|
return /*#__PURE__*/React.createElement(Avatar, {
|
|
28
29
|
src: avatarUrl,
|
|
@@ -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.12.
|
|
8
|
+
var packageVersion = "27.12.7";
|
|
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/package.json
CHANGED
|
@@ -34,13 +34,14 @@
|
|
|
34
34
|
"@atlaskit/heading": "^7.0.0",
|
|
35
35
|
"@atlaskit/icon": "^37.2.0",
|
|
36
36
|
"@atlaskit/lozenge": "^15.0.0",
|
|
37
|
+
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
37
38
|
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
38
39
|
"@atlaskit/primitives": "^22.2.0",
|
|
39
40
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
40
41
|
"@atlaskit/skeleton": "^4.2.0",
|
|
41
42
|
"@atlaskit/tag": "^15.4.0",
|
|
42
43
|
"@atlaskit/teams-avatar": "^4.0.0",
|
|
43
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
44
|
+
"@atlaskit/tmp-editor-statsig": "^139.0.0",
|
|
44
45
|
"@atlaskit/tokens": "^16.3.0",
|
|
45
46
|
"@atlaskit/tooltip": "^24.0.0",
|
|
46
47
|
"@atlaskit/ufo": "^1.0.0",
|
|
@@ -56,8 +57,10 @@
|
|
|
56
57
|
"@af/integration-testing": "workspace:^",
|
|
57
58
|
"@af/search-test-utils": "workspace:^",
|
|
58
59
|
"@af/visual-regression": "workspace:^",
|
|
60
|
+
"@atlaskit/feature-gate-js-client": "^6.0.0",
|
|
59
61
|
"@atlassian/a11y-jest-testing": "^0.14.0",
|
|
60
62
|
"@atlassian/a11y-playwright-testing": "^0.10.0",
|
|
63
|
+
"@atlassian/experiment-test-utils": "^0.2.0",
|
|
61
64
|
"@atlassian/feature-flags-test-utils": "^1.2.0",
|
|
62
65
|
"@atlassian/testing-library": "^0.11.0",
|
|
63
66
|
"@testing-library/react": "^16.3.0",
|
|
@@ -91,8 +94,8 @@
|
|
|
91
94
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
92
95
|
},
|
|
93
96
|
"platform-feature-flags": {
|
|
94
|
-
"
|
|
95
|
-
"type": "
|
|
97
|
+
"rovo_chat_mention_agents": {
|
|
98
|
+
"type": "experiment",
|
|
96
99
|
"referenceOnly": true
|
|
97
100
|
},
|
|
98
101
|
"jira_ai_agent_avatar_issue_view_comment_mentions": {
|
|
@@ -122,5 +125,5 @@
|
|
|
122
125
|
}
|
|
123
126
|
},
|
|
124
127
|
"types": "dist/types/index.d.ts",
|
|
125
|
-
"version": "27.12.
|
|
128
|
+
"version": "27.12.8"
|
|
126
129
|
}
|