@atlaskit/rovo-agent-components 3.35.1 → 3.36.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 CHANGED
@@ -1,5 +1,20 @@
1
1
  # @atlaskit/rovo-agent-components
2
2
 
3
+ ## 3.36.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`3828b60d0308e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3828b60d0308e) -
8
+ Profile card now supports A2A agent authors properly
9
+
10
+ ## 3.36.0
11
+
12
+ ### Minor Changes
13
+
14
+ - [`9ad74d8309d6f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9ad74d8309d6f) -
15
+ Extracted `AgentNameSideNav` into new entry-point
16
+ `@atlaskit/rovo-agent-components/agent-name-side-nav`
17
+
3
18
  ## 3.35.1
4
19
 
5
20
  ### Patch Changes
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "@atlaskit/rovo-agent-components/agent-name-side-nav",
3
+ "main": "../dist/cjs/ui/agent-name-side-nav/index.js",
4
+ "module": "../dist/esm/ui/agent-name-side-nav/index.js",
5
+ "module:es2019": "../dist/es2019/ui/agent-name-side-nav/index.js",
6
+ "sideEffects": [
7
+ "*.compiled.css"
8
+ ],
9
+ "types": "../dist/types/ui/agent-name-side-nav/index.d.ts",
10
+ "typesVersions": {
11
+ ">=4.5 <5.9": {
12
+ "*": [
13
+ "../dist/types-ts4.5/ui/agent-name-side-nav/index.d.ts"
14
+ ]
15
+ }
16
+ }
17
+ }
@@ -0,0 +1,4 @@
1
+
2
+ ._zulp1b66{gap:var(--ds-space-050,4px)}._1e0c1n7u{display:inline-grid}
3
+ ._4cvr1h6o{align-items:center}
4
+ ._yv0e1ghl{grid-template-columns:1fr auto}
@@ -0,0 +1,25 @@
1
+ /* index.tsx generated by @compiled/babel-plugin v0.38.1 */
2
+ "use strict";
3
+
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.AgentNameSideNav = void 0;
9
+ require("./index.compiled.css");
10
+ var _runtime = require("@compiled/react/runtime");
11
+ var _react = _interopRequireDefault(require("react"));
12
+ var _compiled = require("@atlaskit/primitives/compiled");
13
+ // This workaround prevents unwanted text truncation in LinkMenuItem caused by the current
14
+ // behavior in the ADS 'LinkMenuItem' component.
15
+ // More info: https://atlassian.slack.com/archives/C09FTFN0APN/p1770606423849489
16
+ var agentNameStyles = null;
17
+ var AgentNameSideNav = exports.AgentNameSideNav = function AgentNameSideNav(_ref) {
18
+ var children = _ref.children,
19
+ name = _ref.name;
20
+ return /*#__PURE__*/_react.default.createElement("div", {
21
+ className: (0, _runtime.ax)(["_zulp1b66 _1e0c1n7u _yv0e1ghl _4cvr1h6o"])
22
+ }, /*#__PURE__*/_react.default.createElement(_compiled.Text, {
23
+ maxLines: 1
24
+ }, name), children);
25
+ };
@@ -19,6 +19,7 @@ var _skeleton = _interopRequireDefault(require("@atlaskit/skeleton"));
19
19
  var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
20
20
  var _hiddenIcon = require("../../common/ui/hidden-icon");
21
21
  var _starIconButton = require("../../common/ui/star-icon-button");
22
+ var _agentAvatar = require("../agent-avatar");
22
23
  var _messages = require("./messages");
23
24
  var styles = {
24
25
  clickableItem: "_zulp1b66 _1e0c1txw _4cvr1h6o",
@@ -40,9 +41,8 @@ var getAgentCreator = exports.getAgentCreator = function getAgentCreator(_ref) {
40
41
  type: 'SYSTEM'
41
42
  };
42
43
  }
43
-
44
- // THIRD_PARTY is deprecated in convo-ai, use FORGE instead
45
- if (creatorType === 'FORGE' || creatorType === 'THIRD_PARTY') {
44
+ if ((0, _platformFeatureFlags.fg)('rovo_agent_support_a2a_avatar') ? (0, _agentAvatar.isForgeAgentByCreatorType)(creatorType) : creatorType === 'FORGE' || creatorType === 'THIRD_PARTY' // THIRD_PARTY is deprecated in convo-ai, use FORGE instead
45
+ ) {
46
46
  return {
47
47
  type: 'FORGE',
48
48
  name: forgeCreator !== null && forgeCreator !== void 0 ? forgeCreator : ''
@@ -0,0 +1,4 @@
1
+
2
+ ._zulp1b66{gap:var(--ds-space-050,4px)}._1e0c1n7u{display:inline-grid}
3
+ ._4cvr1h6o{align-items:center}
4
+ ._yv0e1ghl{grid-template-columns:1fr auto}
@@ -0,0 +1,17 @@
1
+ /* index.tsx generated by @compiled/babel-plugin v0.38.1 */
2
+ import "./index.compiled.css";
3
+ import { ax, ix } from "@compiled/react/runtime";
4
+ import React from 'react';
5
+ import { Text } from '@atlaskit/primitives/compiled';
6
+ // This workaround prevents unwanted text truncation in LinkMenuItem caused by the current
7
+ // behavior in the ADS 'LinkMenuItem' component.
8
+ // More info: https://atlassian.slack.com/archives/C09FTFN0APN/p1770606423849489
9
+ const agentNameStyles = null;
10
+ export const AgentNameSideNav = ({
11
+ children,
12
+ name
13
+ }) => /*#__PURE__*/React.createElement("div", {
14
+ className: ax(["_zulp1b66 _1e0c1n7u _yv0e1ghl _4cvr1h6o"])
15
+ }, /*#__PURE__*/React.createElement(Text, {
16
+ maxLines: 1
17
+ }, name), children);
@@ -12,6 +12,7 @@ import Skeleton from '@atlaskit/skeleton';
12
12
  import Tooltip from '@atlaskit/tooltip';
13
13
  import { HiddenIcon } from '../../common/ui/hidden-icon';
14
14
  import { StarIconButton } from '../../common/ui/star-icon-button';
15
+ import { isForgeAgentByCreatorType } from '../agent-avatar';
15
16
  import { messages } from './messages';
16
17
  const styles = {
17
18
  clickableItem: "_zulp1b66 _1e0c1txw _4cvr1h6o",
@@ -34,9 +35,8 @@ export const getAgentCreator = ({
34
35
  type: 'SYSTEM'
35
36
  };
36
37
  }
37
-
38
- // THIRD_PARTY is deprecated in convo-ai, use FORGE instead
39
- if (creatorType === 'FORGE' || creatorType === 'THIRD_PARTY') {
38
+ if (fg('rovo_agent_support_a2a_avatar') ? isForgeAgentByCreatorType(creatorType) : creatorType === 'FORGE' || creatorType === 'THIRD_PARTY' // THIRD_PARTY is deprecated in convo-ai, use FORGE instead
39
+ ) {
40
40
  return {
41
41
  type: 'FORGE',
42
42
  name: forgeCreator !== null && forgeCreator !== void 0 ? forgeCreator : ''
@@ -0,0 +1,4 @@
1
+
2
+ ._zulp1b66{gap:var(--ds-space-050,4px)}._1e0c1n7u{display:inline-grid}
3
+ ._4cvr1h6o{align-items:center}
4
+ ._yv0e1ghl{grid-template-columns:1fr auto}
@@ -0,0 +1,18 @@
1
+ /* index.tsx generated by @compiled/babel-plugin v0.38.1 */
2
+ import "./index.compiled.css";
3
+ import { ax, ix } from "@compiled/react/runtime";
4
+ import React from 'react';
5
+ import { Text } from '@atlaskit/primitives/compiled';
6
+ // This workaround prevents unwanted text truncation in LinkMenuItem caused by the current
7
+ // behavior in the ADS 'LinkMenuItem' component.
8
+ // More info: https://atlassian.slack.com/archives/C09FTFN0APN/p1770606423849489
9
+ var agentNameStyles = null;
10
+ export var AgentNameSideNav = function AgentNameSideNav(_ref) {
11
+ var children = _ref.children,
12
+ name = _ref.name;
13
+ return /*#__PURE__*/React.createElement("div", {
14
+ className: ax(["_zulp1b66 _1e0c1n7u _yv0e1ghl _4cvr1h6o"])
15
+ }, /*#__PURE__*/React.createElement(Text, {
16
+ maxLines: 1
17
+ }, name), children);
18
+ };
@@ -12,6 +12,7 @@ import Skeleton from '@atlaskit/skeleton';
12
12
  import Tooltip from '@atlaskit/tooltip';
13
13
  import { HiddenIcon } from '../../common/ui/hidden-icon';
14
14
  import { StarIconButton } from '../../common/ui/star-icon-button';
15
+ import { isForgeAgentByCreatorType } from '../agent-avatar';
15
16
  import { messages } from './messages';
16
17
  var styles = {
17
18
  clickableItem: "_zulp1b66 _1e0c1txw _4cvr1h6o",
@@ -33,9 +34,8 @@ export var getAgentCreator = function getAgentCreator(_ref) {
33
34
  type: 'SYSTEM'
34
35
  };
35
36
  }
36
-
37
- // THIRD_PARTY is deprecated in convo-ai, use FORGE instead
38
- if (creatorType === 'FORGE' || creatorType === 'THIRD_PARTY') {
37
+ if (fg('rovo_agent_support_a2a_avatar') ? isForgeAgentByCreatorType(creatorType) : creatorType === 'FORGE' || creatorType === 'THIRD_PARTY' // THIRD_PARTY is deprecated in convo-ai, use FORGE instead
38
+ ) {
39
39
  return {
40
40
  type: 'FORGE',
41
41
  name: forgeCreator !== null && forgeCreator !== void 0 ? forgeCreator : ''
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ import React from 'react';
6
+ export declare const AgentNameSideNav: ({ children, name, }: {
7
+ children: React.ReactNode;
8
+ name: string;
9
+ }) => JSX.Element;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ import React from 'react';
6
+ export declare const AgentNameSideNav: ({ children, name, }: {
7
+ children: React.ReactNode;
8
+ name: string;
9
+ }) => JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-agent-components",
3
- "version": "3.35.1",
3
+ "version": "3.36.1",
4
4
  "description": "This package host public components related to rovo agents, the components here are needed for other public atlaskit packages",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -37,7 +37,7 @@
37
37
  "@atlaskit/avatar": "^25.8.0",
38
38
  "@atlaskit/button": "^23.9.0",
39
39
  "@atlaskit/css": "^0.19.0",
40
- "@atlaskit/dropdown-menu": "^16.4.0",
40
+ "@atlaskit/dropdown-menu": "^16.5.0",
41
41
  "@atlaskit/flag": "^17.8.0",
42
42
  "@atlaskit/heading": "^5.3.0",
43
43
  "@atlaskit/icon": "^32.0.0",
@@ -133,6 +133,9 @@
133
133
  },
134
134
  "rovo_agents_agent_verification": {
135
135
  "type": "boolean"
136
+ },
137
+ "rovo_agent_support_a2a_avatar": {
138
+ "type": "boolean"
136
139
  }
137
140
  }
138
141
  }