@atlaskit/profilecard 26.22.0 → 26.22.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,17 @@
1
1
  # @atlaskit/profilecard
2
2
 
3
+ ## 26.22.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 26.22.1
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 26.22.0
4
16
 
5
17
  ### Minor Changes
@@ -11,6 +11,6 @@ var addHeaders = exports.addHeaders = function addHeaders(headers) {
11
11
  headers.append('X-ExperimentalApi', 'teams-beta');
12
12
  headers.append('X-ExperimentalApi', 'team-members-beta');
13
13
  headers.append('atl-client-name', "@atlaskit/profilecard");
14
- headers.append('atl-client-version', "26.21.18");
14
+ headers.append('atl-client-version', "26.22.2");
15
15
  return headers;
16
16
  };
@@ -11,7 +11,7 @@ var _AGGQuery = require("./AGGQuery");
11
11
  var ORG_ID_FROM_CLOUD_ID_QUERY = "query OrgIdFromCloudId($cloudId: ID!) {\n\ttenantContexts(cloudIds: [$cloudId]) {\n\t\torgId\n\t}\n}";
12
12
  var addHeaders = function addHeaders(headers) {
13
13
  headers.append('atl-client-name', "@atlaskit/profilecard");
14
- headers.append('atl-client-version', "26.21.18");
14
+ headers.append('atl-client-version', "26.22.2");
15
15
  return headers;
16
16
  };
17
17
  function getOrgIdForCloudIdFromAGG(_x, _x2) {
@@ -14,7 +14,7 @@ var _react = _interopRequireWildcard(require("react"));
14
14
  var _featureGates = _interopRequireDefault(require("@atlaskit/feature-gate-js-client/feature-gates"));
15
15
  var _fg = require("@atlaskit/platform-feature-flags/fg");
16
16
  var _AgentProfileInfo = require("@atlaskit/rovo-agent-components/ui/AgentProfileInfo");
17
- var _navigation = require("@atlaskit/teams-app-config/navigation");
17
+ var _navigateToTeamsApp = require("@atlaskit/teams-app-config/utils/teams-app-navigation/navigate-to-teams-app");
18
18
  var _useAnalyticsEvents = require("@atlaskit/teams-app-internal-analytics/use-analytics-events");
19
19
  var _AgentForbiddenError = require("../../client/AgentForbiddenError");
20
20
  var _rovoAgentUtils = require("../../util/rovoAgentUtils");
@@ -48,7 +48,7 @@ var AgentProfileCardResourced = exports.AgentProfileCardResourced = function Age
48
48
  var creatorUserId = (0, _react.useMemo)(function () {
49
49
  return (agentData === null || agentData === void 0 ? void 0 : agentData.creator_type) === 'CUSTOMER' && agentData.creator ? (0, _rovoAgentUtils.getAAIDFromARI)(agentData.creator) : '';
50
50
  }, [agentData === null || agentData === void 0 ? void 0 : agentData.creator_type, agentData === null || agentData === void 0 ? void 0 : agentData.creator]);
51
- var navResult = (0, _navigation.navigateToTeamsApp)({
51
+ var navResult = (0, _navigateToTeamsApp.navigateToTeamsApp)({
52
52
  type: 'USER',
53
53
  payload: {
54
54
  userId: creatorUserId || ''
@@ -74,7 +74,7 @@ var AgentProfileCardResourced = exports.AgentProfileCardResourced = function Age
74
74
  case 2:
75
75
  userCreatorInfo = _context.sent;
76
76
  if ((0, _fg.fg)('confluence_fix_agent_profile_card_flash')) {
77
- profileHref = (0, _navigation.navigateToTeamsApp)({
77
+ profileHref = (0, _navigateToTeamsApp.navigateToTeamsApp)({
78
78
  type: 'USER',
79
79
  payload: {
80
80
  userId: currentCreatorUserId
@@ -15,7 +15,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
15
15
  var _react = _interopRequireWildcard(require("react"));
16
16
  var _fg = require("@atlaskit/platform-feature-flags/fg");
17
17
  var _isForgeAgent = require("@atlaskit/rovo-agent-components/common/utils/is-forge-agent");
18
- var _navigation = require("@atlaskit/teams-app-config/navigation");
18
+ var _navigateToTeamsApp2 = require("@atlaskit/teams-app-config/utils/teams-app-navigation/navigate-to-teams-app");
19
19
  var _useAnalyticsEvents2 = require("@atlaskit/teams-app-internal-analytics/use-analytics-events");
20
20
  var _rovoAgentUtils = require("../../util/rovoAgentUtils");
21
21
  var _ProfileCardTrigger = _interopRequireDefault(require("../common/ProfileCardTrigger"));
@@ -99,7 +99,7 @@ var AgentProfileCardTrigger = exports.AgentProfileCardTrigger = /*#__PURE__*/(0,
99
99
  profileLink: (_authoringTeam$profil = authoringTeam.profileUrl) !== null && _authoringTeam$profil !== void 0 ? _authoringTeam$profil : ''
100
100
  });
101
101
  case 9:
102
- _navigateToTeamsApp = (0, _navigation.navigateToTeamsApp)({
102
+ _navigateToTeamsApp = (0, _navigateToTeamsApp2.navigateToTeamsApp)({
103
103
  type: 'USER',
104
104
  payload: {
105
105
  userId: _userId
@@ -13,7 +13,7 @@ var _react = require("react");
13
13
  var _getAtlContextUrl = require("@atlaskit/atlassian-context/get-atl-context-url");
14
14
  var _fg = require("@atlaskit/platform-feature-flags/fg");
15
15
  var _postMessageToPubsub = require("@atlaskit/rovo-triggers/post-message-to-pubsub");
16
- var _navigation = require("@atlaskit/teams-app-config/navigation");
16
+ var _navigateToTeamsApp2 = require("@atlaskit/teams-app-config/utils/teams-app-navigation/navigate-to-teams-app");
17
17
  var _useAnalyticsEvents2 = require("@atlaskit/teams-app-internal-analytics/use-analytics-events");
18
18
  var _url = require("../../../util/url");
19
19
  var _getAtlassianStudioAgentDuplicateUrl = require("../utils/getAtlassianStudioAgentDuplicateUrl");
@@ -189,7 +189,7 @@ var useAgentUrlActions = exports.useAgentUrlActions = function useAgentUrlAction
189
189
  });
190
190
  };
191
191
  var onViewFullProfile = function onViewFullProfile(agentId) {
192
- var _navigateToTeamsApp = (0, _navigation.navigateToTeamsApp)({
192
+ var _navigateToTeamsApp = (0, _navigateToTeamsApp2.navigateToTeamsApp)({
193
193
  type: 'AGENT',
194
194
  payload: {
195
195
  agentId: agentId
@@ -7,7 +7,7 @@ exports.USER_SUBJECT = exports.TEAM_SUBJECT = exports.PACKAGE_META_DATA = export
7
7
  var _process$env$_PACKAGE, _process$env$_PACKAGE2;
8
8
  var PACKAGE_META_DATA = exports.PACKAGE_META_DATA = {
9
9
  packageName: (_process$env$_PACKAGE = "@atlaskit/profilecard") !== null && _process$env$_PACKAGE !== void 0 ? _process$env$_PACKAGE : '',
10
- packageVersion: (_process$env$_PACKAGE2 = "26.21.18") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
10
+ packageVersion: (_process$env$_PACKAGE2 = "26.22.2") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
11
11
  };
12
12
  var TEAM_SUBJECT = exports.TEAM_SUBJECT = 'teamProfileCard';
13
13
  var USER_SUBJECT = exports.USER_SUBJECT = 'profilecard';
@@ -22,7 +22,7 @@ var createEvent = exports.createEvent = function createEvent(eventType, action,
22
22
  actionSubjectId: actionSubjectId,
23
23
  attributes: _objectSpread(_objectSpread({
24
24
  packageName: "@atlaskit/profilecard",
25
- packageVersion: "26.21.18"
25
+ packageVersion: "26.22.2"
26
26
  }, attributes), {}, {
27
27
  firedAt: Math.round((0, _performance.getPageTime)())
28
28
  })
@@ -5,6 +5,6 @@ export const addHeaders = headers => {
5
5
  headers.append('X-ExperimentalApi', 'teams-beta');
6
6
  headers.append('X-ExperimentalApi', 'team-members-beta');
7
7
  headers.append('atl-client-name', "@atlaskit/profilecard");
8
- headers.append('atl-client-version', "26.21.18");
8
+ headers.append('atl-client-version', "26.22.2");
9
9
  return headers;
10
10
  };
@@ -6,7 +6,7 @@ const ORG_ID_FROM_CLOUD_ID_QUERY = `query OrgIdFromCloudId($cloudId: ID!) {
6
6
  }`;
7
7
  const addHeaders = headers => {
8
8
  headers.append('atl-client-name', "@atlaskit/profilecard");
9
- headers.append('atl-client-version', "26.21.18");
9
+ headers.append('atl-client-version', "26.22.2");
10
10
  return headers;
11
11
  };
12
12
  export async function getOrgIdForCloudIdFromAGG(url, cloudId) {
@@ -2,7 +2,7 @@ import React, { Suspense, useCallback, useEffect, useMemo, useState } from 'reac
2
2
  import FeatureGates from '@atlaskit/feature-gate-js-client/feature-gates';
3
3
  import { fg } from '@atlaskit/platform-feature-flags/fg';
4
4
  import { getAgentCreator } from '@atlaskit/rovo-agent-components/ui/AgentProfileInfo';
5
- import { navigateToTeamsApp } from '@atlaskit/teams-app-config/navigation';
5
+ import { navigateToTeamsApp } from '@atlaskit/teams-app-config/utils/teams-app-navigation/navigate-to-teams-app';
6
6
  import { useAnalyticsEvents as useAnalyticsEventsNext } from '@atlaskit/teams-app-internal-analytics/use-analytics-events';
7
7
  import { AgentForbiddenError } from '../../client/AgentForbiddenError';
8
8
  import { getAAIDFromARI } from '../../util/rovoAgentUtils';
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import React, { forwardRef, Suspense } from 'react';
3
3
  import { fg } from '@atlaskit/platform-feature-flags/fg';
4
4
  import { isForgeAgentByCreatorType } from '@atlaskit/rovo-agent-components/common/utils/is-forge-agent';
5
- import { navigateToTeamsApp } from '@atlaskit/teams-app-config/navigation';
5
+ import { navigateToTeamsApp } from '@atlaskit/teams-app-config/utils/teams-app-navigation/navigate-to-teams-app';
6
6
  import { useAnalyticsEvents } from '@atlaskit/teams-app-internal-analytics/use-analytics-events';
7
7
  import { getAAIDFromARI } from '../../util/rovoAgentUtils';
8
8
  import ProfileCardTrigger from '../common/ProfileCardTrigger';
@@ -2,7 +2,7 @@ import { useCallback } from 'react';
2
2
  import { getATLContextUrl } from '@atlaskit/atlassian-context/get-atl-context-url';
3
3
  import { fg } from '@atlaskit/platform-feature-flags/fg';
4
4
  import { useRovoPostMessageToPubsub } from '@atlaskit/rovo-triggers/post-message-to-pubsub';
5
- import { navigateToTeamsApp } from '@atlaskit/teams-app-config/navigation';
5
+ import { navigateToTeamsApp } from '@atlaskit/teams-app-config/utils/teams-app-navigation/navigate-to-teams-app';
6
6
  import { useAnalyticsEvents } from '@atlaskit/teams-app-internal-analytics/use-analytics-events';
7
7
  import { encodeParamsToUrl } from '../../../util/url';
8
8
  import { getAtlassianStudioAgentDuplicateUrl } from '../utils/getAtlassianStudioAgentDuplicateUrl';
@@ -1,7 +1,7 @@
1
1
  var _process$env$_PACKAGE, _process$env$_PACKAGE2;
2
2
  export const PACKAGE_META_DATA = {
3
3
  packageName: (_process$env$_PACKAGE = "@atlaskit/profilecard") !== null && _process$env$_PACKAGE !== void 0 ? _process$env$_PACKAGE : '',
4
- packageVersion: (_process$env$_PACKAGE2 = "26.21.18") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
4
+ packageVersion: (_process$env$_PACKAGE2 = "26.22.2") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
5
5
  };
6
6
  export const TEAM_SUBJECT = 'teamProfileCard';
7
7
  export const USER_SUBJECT = 'profilecard';
@@ -11,7 +11,7 @@ export const createEvent = (eventType, action, actionSubject, actionSubjectId, a
11
11
  actionSubjectId,
12
12
  attributes: {
13
13
  packageName: "@atlaskit/profilecard",
14
- packageVersion: "26.21.18",
14
+ packageVersion: "26.22.2",
15
15
  ...attributes,
16
16
  firedAt: Math.round(getPageTime())
17
17
  }
@@ -5,6 +5,6 @@ export var addHeaders = function addHeaders(headers) {
5
5
  headers.append('X-ExperimentalApi', 'teams-beta');
6
6
  headers.append('X-ExperimentalApi', 'team-members-beta');
7
7
  headers.append('atl-client-name', "@atlaskit/profilecard");
8
- headers.append('atl-client-version', "26.21.18");
8
+ headers.append('atl-client-version', "26.22.2");
9
9
  return headers;
10
10
  };
@@ -4,7 +4,7 @@ import { AGGQuery } from './AGGQuery';
4
4
  var ORG_ID_FROM_CLOUD_ID_QUERY = "query OrgIdFromCloudId($cloudId: ID!) {\n\ttenantContexts(cloudIds: [$cloudId]) {\n\t\torgId\n\t}\n}";
5
5
  var addHeaders = function addHeaders(headers) {
6
6
  headers.append('atl-client-name', "@atlaskit/profilecard");
7
- headers.append('atl-client-version', "26.21.18");
7
+ headers.append('atl-client-version', "26.22.2");
8
8
  return headers;
9
9
  };
10
10
  export function getOrgIdForCloudIdFromAGG(_x, _x2) {
@@ -8,7 +8,7 @@ import React, { Suspense, useCallback, useEffect, useMemo, useState } from 'reac
8
8
  import FeatureGates from '@atlaskit/feature-gate-js-client/feature-gates';
9
9
  import { fg } from '@atlaskit/platform-feature-flags/fg';
10
10
  import { getAgentCreator } from '@atlaskit/rovo-agent-components/ui/AgentProfileInfo';
11
- import { navigateToTeamsApp } from '@atlaskit/teams-app-config/navigation';
11
+ import { navigateToTeamsApp } from '@atlaskit/teams-app-config/utils/teams-app-navigation/navigate-to-teams-app';
12
12
  import { useAnalyticsEvents as useAnalyticsEventsNext } from '@atlaskit/teams-app-internal-analytics/use-analytics-events';
13
13
  import { AgentForbiddenError } from '../../client/AgentForbiddenError';
14
14
  import { getAAIDFromARI } from '../../util/rovoAgentUtils';
@@ -10,7 +10,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
10
10
  import React, { forwardRef, Suspense } from 'react';
11
11
  import { fg } from '@atlaskit/platform-feature-flags/fg';
12
12
  import { isForgeAgentByCreatorType } from '@atlaskit/rovo-agent-components/common/utils/is-forge-agent';
13
- import { navigateToTeamsApp } from '@atlaskit/teams-app-config/navigation';
13
+ import { navigateToTeamsApp } from '@atlaskit/teams-app-config/utils/teams-app-navigation/navigate-to-teams-app';
14
14
  import { useAnalyticsEvents } from '@atlaskit/teams-app-internal-analytics/use-analytics-events';
15
15
  import { getAAIDFromARI } from '../../util/rovoAgentUtils';
16
16
  import ProfileCardTrigger from '../common/ProfileCardTrigger';
@@ -8,7 +8,7 @@ import { useCallback } from 'react';
8
8
  import { getATLContextUrl } from '@atlaskit/atlassian-context/get-atl-context-url';
9
9
  import { fg } from '@atlaskit/platform-feature-flags/fg';
10
10
  import { useRovoPostMessageToPubsub } from '@atlaskit/rovo-triggers/post-message-to-pubsub';
11
- import { navigateToTeamsApp } from '@atlaskit/teams-app-config/navigation';
11
+ import { navigateToTeamsApp } from '@atlaskit/teams-app-config/utils/teams-app-navigation/navigate-to-teams-app';
12
12
  import { useAnalyticsEvents } from '@atlaskit/teams-app-internal-analytics/use-analytics-events';
13
13
  import { encodeParamsToUrl } from '../../../util/url';
14
14
  import { getAtlassianStudioAgentDuplicateUrl } from '../utils/getAtlassianStudioAgentDuplicateUrl';
@@ -1,7 +1,7 @@
1
1
  var _process$env$_PACKAGE, _process$env$_PACKAGE2;
2
2
  export var PACKAGE_META_DATA = {
3
3
  packageName: (_process$env$_PACKAGE = "@atlaskit/profilecard") !== null && _process$env$_PACKAGE !== void 0 ? _process$env$_PACKAGE : '',
4
- packageVersion: (_process$env$_PACKAGE2 = "26.21.18") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
4
+ packageVersion: (_process$env$_PACKAGE2 = "26.22.2") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
5
5
  };
6
6
  export var TEAM_SUBJECT = 'teamProfileCard';
7
7
  export var USER_SUBJECT = 'profilecard';
@@ -16,7 +16,7 @@ export var createEvent = function createEvent(eventType, action, actionSubject,
16
16
  actionSubjectId: actionSubjectId,
17
17
  attributes: _objectSpread(_objectSpread({
18
18
  packageName: "@atlaskit/profilecard",
19
- packageVersion: "26.21.18"
19
+ packageVersion: "26.22.2"
20
20
  }, attributes), {}, {
21
21
  firedAt: Math.round(getPageTime())
22
22
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "26.22.0",
3
+ "version": "26.22.2",
4
4
  "description": "A React component to display a card with user information.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -60,7 +60,7 @@
60
60
  "@atlaskit/primitives": "^22.5.0",
61
61
  "@atlaskit/react-compiler-gating": "^0.2.0",
62
62
  "@atlaskit/rovo-agent-components": "^8.9.0",
63
- "@atlaskit/rovo-triggers": "^10.29.0",
63
+ "@atlaskit/rovo-triggers": "^10.32.0",
64
64
  "@atlaskit/spinner": "^20.4.0",
65
65
  "@atlaskit/teams-app-config": "^3.1.0",
66
66
  "@atlaskit/teams-app-internal-analytics": "^2.4.0",
@@ -68,7 +68,7 @@
68
68
  "@atlaskit/teams-avatar": "^4.1.0",
69
69
  "@atlaskit/teams-public": "^2.10.0",
70
70
  "@atlaskit/theme": "^28.2.0",
71
- "@atlaskit/tmp-editor-statsig": "^182.0.0",
71
+ "@atlaskit/tmp-editor-statsig": "^184.0.0",
72
72
  "@atlaskit/tokens": "^16.11.0",
73
73
  "@atlaskit/tooltip": "^24.3.0",
74
74
  "@babel/runtime": "^7.0.0",
@@ -1,122 +0,0 @@
1
- {
2
- "extends": "../../../../tsconfig.local-consumption.json",
3
- "compilerOptions": {
4
- "outDir": "../../../../../confluence/tsDist/@atlaskit__profilecard",
5
- "rootDir": "../",
6
- "composite": true,
7
- "noCheck": true
8
- },
9
- "include": [
10
- "../src/**/*.ts",
11
- "../src/**/*.tsx"
12
- ],
13
- "exclude": [
14
- "../src/**/__tests__/*",
15
- "../src/**/*.test.*",
16
- "../src/**/test.*",
17
- "../src/**/examples.*",
18
- "../src/**/examples/*",
19
- "../src/**/examples/**/*",
20
- "../src/**/*.stories.*",
21
- "../src/**/stories/*",
22
- "../src/**/stories/**/*"
23
- ],
24
- "references": [
25
- {
26
- "path": "../../../uip/atlassian-context/afm-cc/tsconfig.json"
27
- },
28
- {
29
- "path": "../../../design-system/avatar/afm-cc/tsconfig.json"
30
- },
31
- {
32
- "path": "../../../design-system/avatar-group/afm-cc/tsconfig.json"
33
- },
34
- {
35
- "path": "../../../design-system/button/afm-cc/tsconfig.json"
36
- },
37
- {
38
- "path": "../../../design-system/css/afm-cc/tsconfig.json"
39
- },
40
- {
41
- "path": "../../../design-system/dropdown-menu/afm-cc/tsconfig.json"
42
- },
43
- {
44
- "path": "../../../design-system/empty-state/afm-cc/tsconfig.json"
45
- },
46
- {
47
- "path": "../../../measurement/feature-gate-js-client/afm-cc/tsconfig.json"
48
- },
49
- {
50
- "path": "../../../team-central/give-kudos/afm-cc/tsconfig.json"
51
- },
52
- {
53
- "path": "../../../design-system/heading/afm-cc/tsconfig.json"
54
- },
55
- {
56
- "path": "../../../design-system/icon/afm-cc/tsconfig.json"
57
- },
58
- {
59
- "path": "../../../design-system/link/afm-cc/tsconfig.json"
60
- },
61
- {
62
- "path": "../../../design-system/lozenge/afm-cc/tsconfig.json"
63
- },
64
- {
65
- "path": "../../../design-system/menu/afm-cc/tsconfig.json"
66
- },
67
- {
68
- "path": "../../../design-system/modal-dialog/afm-cc/tsconfig.json"
69
- },
70
- {
71
- "path": "../../people-teams-ui-public/afm-cc/tsconfig.json"
72
- },
73
- {
74
- "path": "../../../platform/feature-flags/afm-cc/tsconfig.json"
75
- },
76
- {
77
- "path": "../../../design-system/popup/afm-cc/tsconfig.json"
78
- },
79
- {
80
- "path": "../../../design-system/primitives/afm-cc/tsconfig.json"
81
- },
82
- {
83
- "path": "../../../react-compiler/react-compiler-gating/afm-cc/tsconfig.json"
84
- },
85
- {
86
- "path": "../../../ai-mate/rovo-agent-components/afm-cc/tsconfig.json"
87
- },
88
- {
89
- "path": "../../../ai-mate/rovo-triggers/afm-cc/tsconfig.json"
90
- },
91
- {
92
- "path": "../../../design-system/spinner/afm-cc/tsconfig.json"
93
- },
94
- {
95
- "path": "../../teams-app-config/afm-cc/tsconfig.json"
96
- },
97
- {
98
- "path": "../../teams-app-internal-analytics/afm-cc/tsconfig.json"
99
- },
100
- {
101
- "path": "../../teams-app-internal-navigation/afm-cc/tsconfig.json"
102
- },
103
- {
104
- "path": "../../teams-avatar/afm-cc/tsconfig.json"
105
- },
106
- {
107
- "path": "../../teams-public/afm-cc/tsconfig.json"
108
- },
109
- {
110
- "path": "../../../design-system/theme/afm-cc/tsconfig.json"
111
- },
112
- {
113
- "path": "../../../editor/tmp-editor-statsig/afm-cc/tsconfig.json"
114
- },
115
- {
116
- "path": "../../../design-system/tokens/afm-cc/tsconfig.json"
117
- },
118
- {
119
- "path": "../../../design-system/tooltip/afm-cc/tsconfig.json"
120
- }
121
- ]
122
- }