@atlaskit/mention 29.2.4 → 29.2.6

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,19 @@
1
1
  # @atlaskit/mention
2
2
 
3
+ ## 29.2.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [`90cc9e3c7fc0c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/90cc9e3c7fc0c) -
8
+ Support gated dark-background styling for the configured Rovo Chat agent mention in editors and
9
+ the renderer.
10
+
11
+ ## 29.2.5
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 29.2.4
4
18
 
5
19
  ### Patch Changes
@@ -154,7 +154,8 @@ var MentionInternal = exports.MentionInternal = /*#__PURE__*/function (_React$Pu
154
154
  localId = props.localId,
155
155
  disabledTooltip = props.disabledTooltip,
156
156
  isAvatarImagePreShaped = props.isAvatarImagePreShaped,
157
- renderAvatarSlot = props.renderAvatarSlot;
157
+ renderAvatarSlot = props.renderAvatarSlot,
158
+ isRovoChat = props.isRovoChat;
158
159
  var mentionType = this.getMentionType();
159
160
  var failedMention = text === "@".concat(_constants.UNKNOWN_USER_ID);
160
161
  var showAvatarSlot = Boolean(renderAvatarSlot) && !failedMention;
@@ -185,7 +186,8 @@ var MentionInternal = exports.MentionInternal = /*#__PURE__*/function (_React$Pu
185
186
  spellCheck: false,
186
187
  "data-testid": "mention-".concat(id),
187
188
  "data-mention-type": mentionType,
188
- "data-mention-tooltip": showRestrictedTooltip || showDisabledTooltip
189
+ "data-mention-tooltip": showRestrictedTooltip || showDisabledTooltip,
190
+ isRovoChat: isRovoChat
189
191
  }, disabledA11yProps), failedMention ? this.renderUnknownUserError(id) : showAvatarSlot ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("span", {
190
192
  "aria-hidden": "true",
191
193
  "data-testid": "mention-avatar-slot",
@@ -10,9 +10,10 @@ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/hel
10
10
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
11
11
  var _react = require("react");
12
12
  var _react2 = require("@emotion/react");
13
+ var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
13
14
  var _mentionStyle = require("./mention-style");
14
15
  var _templateObject;
15
- var _excluded = ["isAvatarVisible", "mentionType"];
16
+ var _excluded = ["isAvatarVisible", "isRovoChat", "mentionType"];
16
17
  /**
17
18
  * @jsxRuntime classic
18
19
  * @jsx jsx
@@ -20,12 +21,30 @@ var _excluded = ["isAvatarVisible", "mentionType"];
20
21
  /* eslint-disable @atlaskit/design-system/no-html-button */
21
22
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
22
23
  var getStyle = function getStyle(_ref, property) {
23
- var mentionType = _ref.mentionType;
24
+ var mentionType = _ref.mentionType,
25
+ isRovoChat = _ref.isRovoChat;
26
+ var isRovoChatEnabled = isRovoChat && (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_mention_rovo');
27
+ if (isRovoChatEnabled) {
28
+ if (property === 'text') {
29
+ return "var(--ds-text-inverse, #FFFFFF)";
30
+ }
31
+ if (property === 'background') {
32
+ return "var(--ds-background-neutral-bold, #292A2E)";
33
+ }
34
+ if (property === 'hoveredBackground') {
35
+ return "var(--ds-background-neutral-bold-hovered, #3B3D42)";
36
+ }
37
+ if (property === 'pressedBackground') {
38
+ return "var(--ds-background-neutral-bold-pressed, #505258)";
39
+ }
40
+ }
24
41
  return _mentionStyle.mentionStyle[mentionType][property];
25
42
  };
26
43
  var PrimitiveMention = /*#__PURE__*/(0, _react.forwardRef)(function (_ref2, ref) {
27
44
  var _ref2$isAvatarVisible = _ref2.isAvatarVisible,
28
45
  isAvatarVisible = _ref2$isAvatarVisible === void 0 ? false : _ref2$isAvatarVisible,
46
+ _ref2$isRovoChat = _ref2.isRovoChat,
47
+ isRovoChat = _ref2$isRovoChat === void 0 ? false : _ref2$isRovoChat,
29
48
  mentionType = _ref2.mentionType,
30
49
  other = (0, _objectWithoutProperties2.default)(_ref2, _excluded);
31
50
  return (0, _react2.jsx)("span", (0, _extends2.default)({
@@ -33,17 +52,27 @@ var PrimitiveMention = /*#__PURE__*/(0, _react.forwardRef)(function (_ref2, ref)
33
52
  "data-avatar-visible": isAvatarVisible || undefined
34
53
  // 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
35
54
  ,
36
- css: (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t\tdisplay: inline;\n\t\t\t\t\tborder: ", " 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: ", ";\n\t\t\t\t\tword-break: break-word;\n\t\t\t\t\t&[data-avatar-visible='true'] {\n\t\t\t\t\t\tpadding: 1px 0.3em 1px 0.23em;\n\t\t\t\t\t}\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"])), "var(--ds-border-width, 1px)", getStyle({
55
+ css: (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t\tdisplay: inline;\n\t\t\t\t\tborder: ", " 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: ", ";\n\t\t\t\t\tword-break: break-word;\n\t\t\t\t\t&[data-avatar-visible='true'] {\n\t\t\t\t\t\tpadding: 1px 0.3em 1px 0.23em;\n\t\t\t\t\t}\n\t\t\t\t\t&:hover {\n\t\t\t\t\t\tbackground: ", ";\n\t\t\t\t\t\tcolor: ", ";\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\tcolor: ", ";\n\t\t\t\t\t}\n\t\t\t\t"])), "var(--ds-border-width, 1px)", getStyle({
37
56
  mentionType: mentionType
38
57
  }, 'borderColor'), getStyle({
39
- mentionType: mentionType
58
+ mentionType: mentionType,
59
+ isRovoChat: isRovoChat
40
60
  }, 'background'), getStyle({
41
- mentionType: mentionType
61
+ mentionType: mentionType,
62
+ isRovoChat: isRovoChat
42
63
  }, 'text'), "var(--ds-font-weight-regular, 400)", getStyle({
43
- mentionType: mentionType
64
+ mentionType: mentionType,
65
+ isRovoChat: isRovoChat
44
66
  }, 'hoveredBackground'), getStyle({
45
- mentionType: mentionType
46
- }, 'pressedBackground'))
67
+ mentionType: mentionType,
68
+ isRovoChat: isRovoChat
69
+ }, 'text'), getStyle({
70
+ mentionType: mentionType,
71
+ isRovoChat: isRovoChat
72
+ }, 'pressedBackground'), getStyle({
73
+ mentionType: mentionType,
74
+ isRovoChat: isRovoChat
75
+ }, 'text'))
47
76
  }, other));
48
77
  });
49
78
  var _default = exports.default = PrimitiveMention;
@@ -132,6 +132,7 @@ var ResourcedMention = exports.default = /*#__PURE__*/function (_React$PureCompo
132
132
  onMouseEnter: props.onMouseEnter,
133
133
  onMouseLeave: props.onMouseLeave,
134
134
  renderAvatarSlot: props.renderAvatarSlot,
135
+ isRovoChat: props.isRovoChat,
135
136
  ssrPlaceholderId: props.ssrPlaceholderId
136
137
  });
137
138
  }
@@ -4,4 +4,4 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.packageVersion = void 0;
7
- var packageVersion = exports.packageVersion = "29.2.3";
7
+ var packageVersion = exports.packageVersion = "29.2.5";
@@ -142,7 +142,8 @@ export class MentionInternal extends React.PureComponent {
142
142
  localId,
143
143
  disabledTooltip,
144
144
  isAvatarImagePreShaped,
145
- renderAvatarSlot
145
+ renderAvatarSlot,
146
+ isRovoChat
146
147
  } = props;
147
148
  const mentionType = this.getMentionType();
148
149
  const failedMention = text === `@${UNKNOWN_USER_ID}`;
@@ -175,7 +176,8 @@ export class MentionInternal extends React.PureComponent {
175
176
  spellCheck: false,
176
177
  "data-testid": `mention-${id}`,
177
178
  "data-mention-type": mentionType,
178
- "data-mention-tooltip": showRestrictedTooltip || showDisabledTooltip
179
+ "data-mention-tooltip": showRestrictedTooltip || showDisabledTooltip,
180
+ isRovoChat: isRovoChat
179
181
  }, disabledA11yProps), failedMention ? this.renderUnknownUserError(id) : showAvatarSlot ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
180
182
  "aria-hidden": "true",
181
183
  "data-testid": "mention-avatar-slot",
@@ -3,18 +3,37 @@ import _extends from "@babel/runtime/helpers/extends";
3
3
  * @jsxRuntime classic
4
4
  * @jsx jsx
5
5
  */
6
-
7
6
  import { forwardRef } from 'react';
8
7
 
9
8
  /* eslint-disable @atlaskit/design-system/no-html-button */
10
9
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
11
10
  import { jsx, css } from '@emotion/react';
11
+ import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
12
12
  import { mentionStyle } from './mention-style';
13
13
  const getStyle = ({
14
- mentionType
15
- }, property) => mentionStyle[mentionType][property];
14
+ mentionType,
15
+ isRovoChat
16
+ }, property) => {
17
+ const isRovoChatEnabled = isRovoChat && isExperimentEnabled('platform_editor_mention_rovo');
18
+ if (isRovoChatEnabled) {
19
+ if (property === 'text') {
20
+ return "var(--ds-text-inverse, #FFFFFF)";
21
+ }
22
+ if (property === 'background') {
23
+ return "var(--ds-background-neutral-bold, #292A2E)";
24
+ }
25
+ if (property === 'hoveredBackground') {
26
+ return "var(--ds-background-neutral-bold-hovered, #3B3D42)";
27
+ }
28
+ if (property === 'pressedBackground') {
29
+ return "var(--ds-background-neutral-bold-pressed, #505258)";
30
+ }
31
+ }
32
+ return mentionStyle[mentionType][property];
33
+ };
16
34
  const PrimitiveMention = /*#__PURE__*/forwardRef(({
17
35
  isAvatarVisible = false,
36
+ isRovoChat = false,
18
37
  mentionType,
19
38
  ...other
20
39
  }, ref) => {
@@ -29,10 +48,12 @@ const PrimitiveMention = /*#__PURE__*/forwardRef(({
29
48
  mentionType
30
49
  }, 'borderColor')};
31
50
  background: ${getStyle({
32
- mentionType
51
+ mentionType,
52
+ isRovoChat
33
53
  }, 'background')};
34
54
  color: ${getStyle({
35
- mentionType
55
+ mentionType,
56
+ isRovoChat
36
57
  }, 'text')};
37
58
  border-radius: 20px;
38
59
  cursor: pointer;
@@ -46,13 +67,23 @@ const PrimitiveMention = /*#__PURE__*/forwardRef(({
46
67
  }
47
68
  &:hover {
48
69
  background: ${getStyle({
49
- mentionType
70
+ mentionType,
71
+ isRovoChat
50
72
  }, 'hoveredBackground')};
73
+ color: ${getStyle({
74
+ mentionType,
75
+ isRovoChat
76
+ }, 'text')};
51
77
  }
52
78
  &:active {
53
79
  background: ${getStyle({
54
- mentionType
80
+ mentionType,
81
+ isRovoChat
55
82
  }, 'pressedBackground')};
83
+ color: ${getStyle({
84
+ mentionType,
85
+ isRovoChat
86
+ }, 'text')};
56
87
  }
57
88
  `
58
89
  }, other));
@@ -106,6 +106,7 @@ export default class ResourcedMention extends React.PureComponent {
106
106
  onMouseEnter: props.onMouseEnter,
107
107
  onMouseLeave: props.onMouseLeave,
108
108
  renderAvatarSlot: props.renderAvatarSlot,
109
+ isRovoChat: props.isRovoChat,
109
110
  ssrPlaceholderId: props.ssrPlaceholderId
110
111
  });
111
112
  }
@@ -1 +1 @@
1
- export const packageVersion = "29.2.3";
1
+ export const packageVersion = "29.2.5";
@@ -149,7 +149,8 @@ export var MentionInternal = /*#__PURE__*/function (_React$PureComponent) {
149
149
  localId = props.localId,
150
150
  disabledTooltip = props.disabledTooltip,
151
151
  isAvatarImagePreShaped = props.isAvatarImagePreShaped,
152
- renderAvatarSlot = props.renderAvatarSlot;
152
+ renderAvatarSlot = props.renderAvatarSlot,
153
+ isRovoChat = props.isRovoChat;
153
154
  var mentionType = this.getMentionType();
154
155
  var failedMention = text === "@".concat(UNKNOWN_USER_ID);
155
156
  var showAvatarSlot = Boolean(renderAvatarSlot) && !failedMention;
@@ -180,7 +181,8 @@ export var MentionInternal = /*#__PURE__*/function (_React$PureComponent) {
180
181
  spellCheck: false,
181
182
  "data-testid": "mention-".concat(id),
182
183
  "data-mention-type": mentionType,
183
- "data-mention-tooltip": showRestrictedTooltip || showDisabledTooltip
184
+ "data-mention-tooltip": showRestrictedTooltip || showDisabledTooltip,
185
+ isRovoChat: isRovoChat
184
186
  }, disabledA11yProps), failedMention ? this.renderUnknownUserError(id) : showAvatarSlot ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
185
187
  "aria-hidden": "true",
186
188
  "data-testid": "mention-avatar-slot",
@@ -2,25 +2,43 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
4
  var _templateObject;
5
- var _excluded = ["isAvatarVisible", "mentionType"];
5
+ var _excluded = ["isAvatarVisible", "isRovoChat", "mentionType"];
6
6
  /**
7
7
  * @jsxRuntime classic
8
8
  * @jsx jsx
9
9
  */
10
-
11
10
  import { forwardRef } from 'react';
12
11
 
13
12
  /* eslint-disable @atlaskit/design-system/no-html-button */
14
13
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
15
14
  import { jsx, css } from '@emotion/react';
15
+ import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
16
16
  import { mentionStyle } from './mention-style';
17
17
  var getStyle = function getStyle(_ref, property) {
18
- var mentionType = _ref.mentionType;
18
+ var mentionType = _ref.mentionType,
19
+ isRovoChat = _ref.isRovoChat;
20
+ var isRovoChatEnabled = isRovoChat && isExperimentEnabled('platform_editor_mention_rovo');
21
+ if (isRovoChatEnabled) {
22
+ if (property === 'text') {
23
+ return "var(--ds-text-inverse, #FFFFFF)";
24
+ }
25
+ if (property === 'background') {
26
+ return "var(--ds-background-neutral-bold, #292A2E)";
27
+ }
28
+ if (property === 'hoveredBackground') {
29
+ return "var(--ds-background-neutral-bold-hovered, #3B3D42)";
30
+ }
31
+ if (property === 'pressedBackground') {
32
+ return "var(--ds-background-neutral-bold-pressed, #505258)";
33
+ }
34
+ }
19
35
  return mentionStyle[mentionType][property];
20
36
  };
21
37
  var PrimitiveMention = /*#__PURE__*/forwardRef(function (_ref2, ref) {
22
38
  var _ref2$isAvatarVisible = _ref2.isAvatarVisible,
23
39
  isAvatarVisible = _ref2$isAvatarVisible === void 0 ? false : _ref2$isAvatarVisible,
40
+ _ref2$isRovoChat = _ref2.isRovoChat,
41
+ isRovoChat = _ref2$isRovoChat === void 0 ? false : _ref2$isRovoChat,
24
42
  mentionType = _ref2.mentionType,
25
43
  other = _objectWithoutProperties(_ref2, _excluded);
26
44
  return jsx("span", _extends({
@@ -28,17 +46,27 @@ var PrimitiveMention = /*#__PURE__*/forwardRef(function (_ref2, ref) {
28
46
  "data-avatar-visible": isAvatarVisible || undefined
29
47
  // 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
30
48
  ,
31
- css: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t\t\t\t\tdisplay: inline;\n\t\t\t\t\tborder: ", " 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: ", ";\n\t\t\t\t\tword-break: break-word;\n\t\t\t\t\t&[data-avatar-visible='true'] {\n\t\t\t\t\t\tpadding: 1px 0.3em 1px 0.23em;\n\t\t\t\t\t}\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"])), "var(--ds-border-width, 1px)", getStyle({
49
+ css: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t\t\t\t\tdisplay: inline;\n\t\t\t\t\tborder: ", " 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: ", ";\n\t\t\t\t\tword-break: break-word;\n\t\t\t\t\t&[data-avatar-visible='true'] {\n\t\t\t\t\t\tpadding: 1px 0.3em 1px 0.23em;\n\t\t\t\t\t}\n\t\t\t\t\t&:hover {\n\t\t\t\t\t\tbackground: ", ";\n\t\t\t\t\t\tcolor: ", ";\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\tcolor: ", ";\n\t\t\t\t\t}\n\t\t\t\t"])), "var(--ds-border-width, 1px)", getStyle({
32
50
  mentionType: mentionType
33
51
  }, 'borderColor'), getStyle({
34
- mentionType: mentionType
52
+ mentionType: mentionType,
53
+ isRovoChat: isRovoChat
35
54
  }, 'background'), getStyle({
36
- mentionType: mentionType
55
+ mentionType: mentionType,
56
+ isRovoChat: isRovoChat
37
57
  }, 'text'), "var(--ds-font-weight-regular, 400)", getStyle({
38
- mentionType: mentionType
58
+ mentionType: mentionType,
59
+ isRovoChat: isRovoChat
39
60
  }, 'hoveredBackground'), getStyle({
40
- mentionType: mentionType
41
- }, 'pressedBackground'))
61
+ mentionType: mentionType,
62
+ isRovoChat: isRovoChat
63
+ }, 'text'), getStyle({
64
+ mentionType: mentionType,
65
+ isRovoChat: isRovoChat
66
+ }, 'pressedBackground'), getStyle({
67
+ mentionType: mentionType,
68
+ isRovoChat: isRovoChat
69
+ }, 'text'))
42
70
  }, other));
43
71
  });
44
72
  export default PrimitiveMention;
@@ -123,6 +123,7 @@ var ResourcedMention = /*#__PURE__*/function (_React$PureComponent) {
123
123
  onMouseEnter: props.onMouseEnter,
124
124
  onMouseLeave: props.onMouseLeave,
125
125
  renderAvatarSlot: props.renderAvatarSlot,
126
+ isRovoChat: props.isRovoChat,
126
127
  ssrPlaceholderId: props.ssrPlaceholderId
127
128
  });
128
129
  }
@@ -1 +1 @@
1
- export var packageVersion = "29.2.3";
1
+ export var packageVersion = "29.2.5";
@@ -6,6 +6,7 @@ import { type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes
6
6
  import type { MentionType } from '../../types';
7
7
  export interface PrimitiveMentionProps extends HTMLAttributes<HTMLSpanElement> {
8
8
  isAvatarVisible?: boolean;
9
+ isRovoChat?: boolean;
9
10
  mentionType: MentionType;
10
11
  }
11
12
  declare const PrimitiveMention: ForwardRefExoticComponent<PrimitiveMentionProps & RefAttributes<HTMLSpanElement>>;
@@ -9,6 +9,7 @@ export interface Props {
9
9
  id: string;
10
10
  isAvatarImagePreShaped?: boolean;
11
11
  isDisabled?: boolean;
12
+ isRovoChat?: boolean;
12
13
  localId?: string;
13
14
  mentionProvider?: Promise<MentionProvider>;
14
15
  onClick?: MentionEventHandler;
@@ -38,6 +38,8 @@ export type OwnProps = {
38
38
  onMouseLeave?: MentionEventHandler;
39
39
  /** Whether the upstream integration has enabled the avatar treatment for this mention. */
40
40
  renderAvatarSlot?: boolean;
41
+ /** Whether this mention represents the Rovo Chat agent. */
42
+ isRovoChat?: boolean;
41
43
  ssrPlaceholderId?: string;
42
44
  text: string;
43
45
  };
@@ -3,6 +3,7 @@ import { type ServiceConfig } from '@atlaskit/util-service-support/types';
3
3
  export interface MentionNodeData {
4
4
  appType?: string | null;
5
5
  avatarUrl?: string;
6
+ isRovoChat?: boolean;
6
7
  /** The image already contains its intended user/agent shape and must not be clipped again. */
7
8
  isAvatarImagePreShaped?: boolean;
8
9
  }
@@ -183,6 +184,8 @@ export interface MentionProvider extends ResourceProvider<MentionDescription[]>,
183
184
  }): void;
184
185
  recordMentionSelection(mention: MentionDescription, contextIdentifier?: MentionContextIdentifier): void;
185
186
  shouldHighlightMention(mention: MentionDescription): boolean;
187
+ /** Optional async identity for the product's default Rovo Chat agent. */
188
+ getRovoChatAgentIdentityAccountId?(): Promise<string | undefined>;
186
189
  /**
187
190
  * Optional. When implemented, lets the rendering surface subscribe to
188
191
  * changes in the disabled-state predicate so already-rendered chips can
package/package.json CHANGED
@@ -45,7 +45,7 @@
45
45
  "@atlaskit/skeleton": "^4.4.0",
46
46
  "@atlaskit/tag": "^15.8.0",
47
47
  "@atlaskit/teams-avatar": "^4.1.0",
48
- "@atlaskit/tmp-editor-statsig": "^201.0.0",
48
+ "@atlaskit/tmp-editor-statsig": "^202.0.0",
49
49
  "@atlaskit/tokens": "^18.2.0",
50
50
  "@atlaskit/tooltip": "^24.3.0",
51
51
  "@atlaskit/ufo": "^1.2.0",
@@ -121,5 +121,5 @@
121
121
  "*.compiled.css"
122
122
  ],
123
123
  "types": "dist/types/index.d.ts",
124
- "version": "29.2.4"
124
+ "version": "29.2.6"
125
125
  }