@atlaskit/rovo-agent-components 3.36.0 → 3.36.2

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,18 @@
1
1
  # @atlaskit/rovo-agent-components
2
2
 
3
+ ## 3.36.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 3.36.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`3828b60d0308e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3828b60d0308e) -
14
+ Profile card now supports A2A agent authors properly
15
+
3
16
  ## 3.36.0
4
17
 
5
18
  ### Minor Changes
@@ -14,7 +14,6 @@ var _compiled = require("@atlaskit/primitives/compiled");
14
14
  var _skeleton = _interopRequireDefault(require("@atlaskit/skeleton"));
15
15
  var _index = require("../index");
16
16
  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); }
17
- // eslint-disable-next-line @atlassian/tangerine/import/no-parent-imports
18
17
  /**
19
18
  * Skeleton wrapper with hexagon clip-path to match the AgentAvatar component shape.
20
19
  * Uses the same clip-path as AgentAvatar to provide a consistent loading experience.
@@ -12,7 +12,6 @@ var _react = _interopRequireDefault(require("react"));
12
12
  var _compiled = require("@atlaskit/primitives/compiled");
13
13
  var _skeleton = _interopRequireDefault(require("@atlaskit/skeleton"));
14
14
  var _agentAvatarSkeleton = require("../agent-avatar/agent-avatar-skeleton");
15
- // eslint-disable-next-line @atlassian/tangerine/import/no-parent-imports
16
15
  var styles = {
17
16
  skeletonContainer: "_zulp12x7 _1bsb1osq _1e0c1txw _4cvr1h6o"
18
17
  };
@@ -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 : ''
@@ -4,8 +4,6 @@ import { ax, ix } from "@compiled/react/runtime";
4
4
  import { AVATAR_SIZES } from '@atlaskit/avatar';
5
5
  import { Box } from '@atlaskit/primitives/compiled';
6
6
  import Skeleton from '@atlaskit/skeleton';
7
-
8
- // eslint-disable-next-line @atlassian/tangerine/import/no-parent-imports
9
7
  import { AGENT_AVATAR_CLIP_PATH } from '../index';
10
8
  /**
11
9
  * Skeleton wrapper with hexagon clip-path to match the AgentAvatar component shape.
@@ -4,7 +4,6 @@ import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
5
5
  import { Box } from '@atlaskit/primitives/compiled';
6
6
  import Skeleton from '@atlaskit/skeleton';
7
- // eslint-disable-next-line @atlassian/tangerine/import/no-parent-imports
8
7
  import { AgentAvatarSkeleton } from '../agent-avatar/agent-avatar-skeleton';
9
8
  const styles = {
10
9
  skeletonContainer: "_zulp12x7 _1bsb1osq _1e0c1txw _4cvr1h6o"
@@ -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 : ''
@@ -4,8 +4,6 @@ import { ax, ix } from "@compiled/react/runtime";
4
4
  import { AVATAR_SIZES } from '@atlaskit/avatar';
5
5
  import { Box } from '@atlaskit/primitives/compiled';
6
6
  import Skeleton from '@atlaskit/skeleton';
7
-
8
- // eslint-disable-next-line @atlassian/tangerine/import/no-parent-imports
9
7
  import { AGENT_AVATAR_CLIP_PATH } from '../index';
10
8
  /**
11
9
  * Skeleton wrapper with hexagon clip-path to match the AgentAvatar component shape.
@@ -4,7 +4,6 @@ import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
5
5
  import { Box } from '@atlaskit/primitives/compiled';
6
6
  import Skeleton from '@atlaskit/skeleton';
7
- // eslint-disable-next-line @atlassian/tangerine/import/no-parent-imports
8
7
  import { AgentAvatarSkeleton } from '../agent-avatar/agent-avatar-skeleton';
9
8
  var styles = {
10
9
  skeletonContainer: "_zulp12x7 _1bsb1osq _1e0c1txw _4cvr1h6o"
@@ -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 : ''
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-agent-components",
3
- "version": "3.36.0",
3
+ "version": "3.36.2",
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",
@@ -45,7 +45,7 @@
45
45
  "@atlaskit/logo": "^19.10.0",
46
46
  "@atlaskit/platform-feature-flags": "^1.1.0",
47
47
  "@atlaskit/primitives": "^18.0.0",
48
- "@atlaskit/rovo-agent-analytics": "^0.16.0",
48
+ "@atlaskit/rovo-agent-analytics": "^0.17.0",
49
49
  "@atlaskit/skeleton": "^2.1.0",
50
50
  "@atlaskit/tokens": "^11.0.0",
51
51
  "@atlaskit/tooltip": "^20.14.0",
@@ -107,11 +107,6 @@
107
107
  ]
108
108
  }
109
109
  },
110
- "techstackIgnore": {
111
- "stricter": [
112
- "@atlassian/tangerine/project-structure"
113
- ]
114
- },
115
110
  "platform-feature-flags": {
116
111
  "rovo_chat_bugfix_agent_avatar_squish": {
117
112
  "type": "boolean"
@@ -133,6 +128,9 @@
133
128
  },
134
129
  "rovo_agents_agent_verification": {
135
130
  "type": "boolean"
131
+ },
132
+ "rovo_agent_support_a2a_avatar": {
133
+ "type": "boolean"
136
134
  }
137
135
  }
138
136
  }