@atlaskit/profilecard 24.42.0 → 24.43.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,18 @@
1
1
  # @atlaskit/profilecard
2
2
 
3
+ ## 24.43.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`e72179b379afd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e72179b379afd) -
8
+ Update isForgeAgentByCreatorType import
9
+
10
+ ### Patch Changes
11
+
12
+ - [`049bd80d89b8f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/049bd80d89b8f) -
13
+ Add missing description to translations
14
+ - Updated dependencies
15
+
3
16
  ## 24.42.0
4
17
 
5
18
  ### Minor Changes
@@ -23,9 +23,6 @@
23
23
  "../src/**/stories/**/*"
24
24
  ],
25
25
  "references": [
26
- {
27
- "path": "../../../analytics/analytics-next/afm-jira/tsconfig.json"
28
- },
29
26
  {
30
27
  "path": "../../../uip/atlassian-context/afm-jira/tsconfig.json"
31
28
  },
@@ -74,9 +71,6 @@
74
71
  {
75
72
  "path": "../../../platform/feature-flags/afm-jira/tsconfig.json"
76
73
  },
77
- {
78
- "path": "../../../platform/feature-flags-react/afm-jira/tsconfig.json"
79
- },
80
74
  {
81
75
  "path": "../../../design-system/popup/afm-jira/tsconfig.json"
82
76
  },
@@ -23,9 +23,6 @@
23
23
  "../src/**/stories/**/*"
24
24
  ],
25
25
  "references": [
26
- {
27
- "path": "../../../analytics/analytics-next/afm-products/tsconfig.json"
28
- },
29
26
  {
30
27
  "path": "../../../uip/atlassian-context/afm-products/tsconfig.json"
31
28
  },
@@ -74,9 +71,6 @@
74
71
  {
75
72
  "path": "../../../platform/feature-flags/afm-products/tsconfig.json"
76
73
  },
77
- {
78
- "path": "../../../platform/feature-flags-react/afm-products/tsconfig.json"
79
- },
80
74
  {
81
75
  "path": "../../../design-system/popup/afm-products/tsconfig.json"
82
76
  },
@@ -61,11 +61,13 @@ var AgentDeleteConfirmationModal = exports.AgentDeleteConfirmationModal = functi
61
61
  var messages = (0, _reactIntlNext.defineMessages)({
62
62
  cancelText: {
63
63
  id: 'profilecard.agent-profile.agent-delete-confirm.cancel-text',
64
- defaultMessage: 'Cancel'
64
+ defaultMessage: 'Cancel',
65
+ description: 'Cancel button text in the agent delete confirmation modal'
65
66
  },
66
67
  confirmText: {
67
68
  id: 'profilecard.agent-profile.agent-delete-confirm.confirm-text',
68
- defaultMessage: 'Delete'
69
+ defaultMessage: 'Delete',
70
+ description: 'Confirm delete button text in the agent delete confirmation modal'
69
71
  },
70
72
  title: {
71
73
  id: 'profilecard.agent-profile.delete-agent-confirm-title',
@@ -19,6 +19,7 @@ var _informationCircle = _interopRequireDefault(require("@atlaskit/icon/core/inf
19
19
  var _link = _interopRequireDefault(require("@atlaskit/link"));
20
20
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
21
21
  var _compiled = require("@atlaskit/primitives/compiled");
22
+ var _isForgeAgent = require("@atlaskit/rovo-agent-components/common/utils/is-forge-agent");
22
23
  var _GeneratedAvatar = require("@atlaskit/rovo-agent-components/ui/agent-avatar/GeneratedAvatar");
23
24
  var _AgentAvatar = require("@atlaskit/rovo-agent-components/ui/AgentAvatar");
24
25
  var _AgentProfileInfo = require("@atlaskit/rovo-agent-components/ui/AgentProfileInfo");
@@ -200,7 +201,7 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
200
201
  agentIdentityAccountId: agent.identity_account_id,
201
202
  size: "large",
202
203
  isRovoDev: isRovoDev && (0, _platformFeatureFlags.fg)('rovo_dev_themed_identity_card'),
203
- isForgeAgent: (0, _platformFeatureFlags.fg)('rovo_agent_support_a2a_avatar') ? (0, _AgentAvatar.isForgeAgentByCreatorType)(agent.creator_type) : agent.creator_type === 'FORGE' || agent.creator_type === 'THIRD_PARTY',
204
+ isForgeAgent: (0, _platformFeatureFlags.fg)('rovo_agent_support_a2a_avatar') ? (0, _isForgeAgent.isForgeAgentByCreatorType)(agent.creator_type) : agent.creator_type === 'FORGE' || agent.creator_type === 'THIRD_PARTY',
204
205
  forgeAgentIconUrl: agent.icon
205
206
  })), /*#__PURE__*/_react.default.createElement(_compiled.Stack, {
206
207
  space: "space.100",
@@ -13,7 +13,7 @@ var _objectDestructuringEmpty2 = _interopRequireDefault(require("@babel/runtime/
13
13
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
14
14
  var _react = _interopRequireWildcard(require("react"));
15
15
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
16
- var _AgentAvatar = require("@atlaskit/rovo-agent-components/ui/AgentAvatar");
16
+ var _isForgeAgent = require("@atlaskit/rovo-agent-components/common/utils/is-forge-agent");
17
17
  var _navigation = require("@atlaskit/teams-app-config/navigation");
18
18
  var _teamsAppInternalAnalytics = require("@atlaskit/teams-app-internal-analytics");
19
19
  var _rovoAgentUtils = require("../../util/rovoAgentUtils");
@@ -47,7 +47,7 @@ var AgentProfileCardTrigger = exports.AgentProfileCardTrigger = /*#__PURE__*/(0,
47
47
  }
48
48
  return _context.abrupt("return", undefined);
49
49
  case 3:
50
- if (!((0, _AgentAvatar.isForgeAgentByCreatorType)(creator_type) && (0, _platformFeatureFlags.fg)('rovo_agent_support_a2a_avatar'))) {
50
+ if (!((0, _isForgeAgent.isForgeAgentByCreatorType)(creator_type) && (0, _platformFeatureFlags.fg)('rovo_agent_support_a2a_avatar'))) {
51
51
  _context.next = 5;
52
52
  break;
53
53
  }
@@ -40,11 +40,13 @@ export const AgentDeleteConfirmationModal = ({
40
40
  const messages = defineMessages({
41
41
  cancelText: {
42
42
  id: 'profilecard.agent-profile.agent-delete-confirm.cancel-text',
43
- defaultMessage: 'Cancel'
43
+ defaultMessage: 'Cancel',
44
+ description: 'Cancel button text in the agent delete confirmation modal'
44
45
  },
45
46
  confirmText: {
46
47
  id: 'profilecard.agent-profile.agent-delete-confirm.confirm-text',
47
- defaultMessage: 'Delete'
48
+ defaultMessage: 'Delete',
49
+ description: 'Confirm delete button text in the agent delete confirmation modal'
48
50
  },
49
51
  title: {
50
52
  id: 'profilecard.agent-profile.delete-agent-confirm-title',
@@ -7,8 +7,9 @@ import InformationCircleIcon from '@atlaskit/icon/core/information-circle';
7
7
  import Link from '@atlaskit/link';
8
8
  import { fg } from '@atlaskit/platform-feature-flags';
9
9
  import { Box, Flex, Stack, Text } from '@atlaskit/primitives/compiled';
10
+ import { isForgeAgentByCreatorType } from '@atlaskit/rovo-agent-components/common/utils/is-forge-agent';
10
11
  import { AgentBanner } from '@atlaskit/rovo-agent-components/ui/agent-avatar/GeneratedAvatar';
11
- import { AgentAvatar, isForgeAgentByCreatorType } from '@atlaskit/rovo-agent-components/ui/AgentAvatar';
12
+ import { AgentAvatar } from '@atlaskit/rovo-agent-components/ui/AgentAvatar';
12
13
  import { AgentProfileCreator, AgentProfileInfo } from '@atlaskit/rovo-agent-components/ui/AgentProfileInfo';
13
14
  import { useAnalyticsEvents as useAnalyticsEventsNext } from '@atlaskit/teams-app-internal-analytics';
14
15
  import { PACKAGE_META_DATA } from '../../util/analytics';
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React, { forwardRef, Suspense } from 'react';
3
3
  import { fg } from '@atlaskit/platform-feature-flags';
4
- import { isForgeAgentByCreatorType } from '@atlaskit/rovo-agent-components/ui/AgentAvatar';
4
+ import { isForgeAgentByCreatorType } from '@atlaskit/rovo-agent-components/common/utils/is-forge-agent';
5
5
  import { navigateToTeamsApp } from '@atlaskit/teams-app-config/navigation';
6
6
  import { useAnalyticsEvents } from '@atlaskit/teams-app-internal-analytics';
7
7
  import { getAAIDFromARI } from '../../util/rovoAgentUtils';
@@ -52,11 +52,13 @@ export var AgentDeleteConfirmationModal = function AgentDeleteConfirmationModal(
52
52
  var messages = defineMessages({
53
53
  cancelText: {
54
54
  id: 'profilecard.agent-profile.agent-delete-confirm.cancel-text',
55
- defaultMessage: 'Cancel'
55
+ defaultMessage: 'Cancel',
56
+ description: 'Cancel button text in the agent delete confirmation modal'
56
57
  },
57
58
  confirmText: {
58
59
  id: 'profilecard.agent-profile.agent-delete-confirm.confirm-text',
59
- defaultMessage: 'Delete'
60
+ defaultMessage: 'Delete',
61
+ description: 'Confirm delete button text in the agent delete confirmation modal'
60
62
  },
61
63
  title: {
62
64
  id: 'profilecard.agent-profile.delete-agent-confirm-title',
@@ -13,8 +13,9 @@ import InformationCircleIcon from '@atlaskit/icon/core/information-circle';
13
13
  import Link from '@atlaskit/link';
14
14
  import { fg } from '@atlaskit/platform-feature-flags';
15
15
  import { Box, Flex, Stack, Text } from '@atlaskit/primitives/compiled';
16
+ import { isForgeAgentByCreatorType } from '@atlaskit/rovo-agent-components/common/utils/is-forge-agent';
16
17
  import { AgentBanner } from '@atlaskit/rovo-agent-components/ui/agent-avatar/GeneratedAvatar';
17
- import { AgentAvatar, isForgeAgentByCreatorType } from '@atlaskit/rovo-agent-components/ui/AgentAvatar';
18
+ import { AgentAvatar } from '@atlaskit/rovo-agent-components/ui/AgentAvatar';
18
19
  import { AgentProfileCreator, AgentProfileInfo } from '@atlaskit/rovo-agent-components/ui/AgentProfileInfo';
19
20
  import { useAnalyticsEvents as useAnalyticsEventsNext } from '@atlaskit/teams-app-internal-analytics';
20
21
  import { PACKAGE_META_DATA } from '../../util/analytics';
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
7
7
  import _regeneratorRuntime from "@babel/runtime/regenerator";
8
8
  import React, { forwardRef, Suspense } from 'react';
9
9
  import { fg } from '@atlaskit/platform-feature-flags';
10
- import { isForgeAgentByCreatorType } from '@atlaskit/rovo-agent-components/ui/AgentAvatar';
10
+ import { isForgeAgentByCreatorType } from '@atlaskit/rovo-agent-components/common/utils/is-forge-agent';
11
11
  import { navigateToTeamsApp } from '@atlaskit/teams-app-config/navigation';
12
12
  import { useAnalyticsEvents } from '@atlaskit/teams-app-internal-analytics';
13
13
  import { getAAIDFromARI } from '../../util/rovoAgentUtils';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "24.42.0",
3
+ "version": "24.43.0",
4
4
  "description": "A React component to display a card with user information.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -58,7 +58,7 @@
58
58
  "@atlaskit/platform-feature-flags": "^1.1.0",
59
59
  "@atlaskit/popup": "^4.13.0",
60
60
  "@atlaskit/primitives": "^18.0.0",
61
- "@atlaskit/rovo-agent-components": "^3.38.0",
61
+ "@atlaskit/rovo-agent-components": "^3.40.0",
62
62
  "@atlaskit/rovo-triggers": "^5.22.0",
63
63
  "@atlaskit/spinner": "^19.0.0",
64
64
  "@atlaskit/teams-app-config": "^1.12.0",
@@ -66,8 +66,8 @@
66
66
  "@atlaskit/teams-avatar": "^2.4.0",
67
67
  "@atlaskit/teams-public": "^0.70.0",
68
68
  "@atlaskit/theme": "^22.0.0",
69
- "@atlaskit/tmp-editor-statsig": "^35.3.0",
70
- "@atlaskit/tokens": "^11.0.0",
69
+ "@atlaskit/tmp-editor-statsig": "^35.5.0",
70
+ "@atlaskit/tokens": "^11.1.0",
71
71
  "@atlaskit/tooltip": "^20.14.0",
72
72
  "@babel/runtime": "^7.0.0",
73
73
  "@compiled/react": "^0.20.0",