@atlaskit/profilecard 26.4.1 → 26.5.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,24 @@
1
1
  # @atlaskit/profilecard
2
2
 
3
+ ## 26.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`278d493fc61aa`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/278d493fc61aa) -
8
+ Update i18n NPM package versions for people-and-teams,identity (Group 8)
9
+ - [`5341488e8189f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5341488e8189f) -
10
+ Remove Enzyme
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
16
+ ## 26.4.2
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies
21
+
3
22
  ## 26.4.1
4
23
 
5
24
  ### Patch Changes
@@ -11,7 +11,7 @@ var _graphqlUtils = require("./graphqlUtils");
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.4.0");
14
+ headers.append('atl-client-version', "26.4.2");
15
15
  return headers;
16
16
  };
17
17
  function getOrgIdForCloudIdFromAGG(_x, _x2) {
@@ -66,7 +66,7 @@ var addHeaders = exports.addHeaders = function addHeaders(headers) {
66
66
  headers.append('X-ExperimentalApi', 'teams-beta');
67
67
  headers.append('X-ExperimentalApi', 'team-members-beta');
68
68
  headers.append('atl-client-name', "@atlaskit/profilecard");
69
- headers.append('atl-client-version', "26.4.0");
69
+ headers.append('atl-client-version', "26.4.2");
70
70
  return headers;
71
71
  };
72
72
  function getTeamFromAGG(_x, _x2, _x3) {
@@ -12,7 +12,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
12
12
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
13
13
  var PACKAGE_META_DATA = exports.PACKAGE_META_DATA = {
14
14
  packageName: (_process$env$_PACKAGE = "@atlaskit/profilecard") !== null && _process$env$_PACKAGE !== void 0 ? _process$env$_PACKAGE : '',
15
- packageVersion: (_process$env$_PACKAGE2 = "26.4.0") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
15
+ packageVersion: (_process$env$_PACKAGE2 = "26.4.2") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
16
16
  };
17
17
  var TEAM_SUBJECT = 'teamProfileCard';
18
18
  var USER_SUBJECT = 'profilecard';
@@ -31,7 +31,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
31
31
  actionSubjectId: actionSubjectId,
32
32
  attributes: _objectSpread(_objectSpread({
33
33
  packageName: "@atlaskit/profilecard",
34
- packageVersion: "26.4.0"
34
+ packageVersion: "26.4.2"
35
35
  }, attributes), {}, {
36
36
  firedAt: Math.round((0, _performance.getPageTime)())
37
37
  })
@@ -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.4.0");
9
+ headers.append('atl-client-version', "26.4.2");
10
10
  return headers;
11
11
  };
12
12
  export async function getOrgIdForCloudIdFromAGG(url, cloudId) {
@@ -78,7 +78,7 @@ export const addHeaders = headers => {
78
78
  headers.append('X-ExperimentalApi', 'teams-beta');
79
79
  headers.append('X-ExperimentalApi', 'team-members-beta');
80
80
  headers.append('atl-client-name', "@atlaskit/profilecard");
81
- headers.append('atl-client-version', "26.4.0");
81
+ headers.append('atl-client-version', "26.4.2");
82
82
  return headers;
83
83
  };
84
84
  export async function getTeamFromAGG(url, teamId, siteId) {
@@ -2,7 +2,7 @@ var _process$env$_PACKAGE, _process$env$_PACKAGE2;
2
2
  import { getPageTime } from './performance';
3
3
  export const PACKAGE_META_DATA = {
4
4
  packageName: (_process$env$_PACKAGE = "@atlaskit/profilecard") !== null && _process$env$_PACKAGE !== void 0 ? _process$env$_PACKAGE : '',
5
- packageVersion: (_process$env$_PACKAGE2 = "26.4.0") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
5
+ packageVersion: (_process$env$_PACKAGE2 = "26.4.2") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
6
6
  };
7
7
  const TEAM_SUBJECT = 'teamProfileCard';
8
8
  const USER_SUBJECT = 'profilecard';
@@ -19,7 +19,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
19
19
  actionSubjectId,
20
20
  attributes: {
21
21
  packageName: "@atlaskit/profilecard",
22
- packageVersion: "26.4.0",
22
+ packageVersion: "26.4.2",
23
23
  ...attributes,
24
24
  firedAt: Math.round(getPageTime())
25
25
  }
@@ -4,7 +4,7 @@ import { AGGQuery } from './graphqlUtils';
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.4.0");
7
+ headers.append('atl-client-version', "26.4.2");
8
8
  return headers;
9
9
  };
10
10
  export function getOrgIdForCloudIdFromAGG(_x, _x2) {
@@ -59,7 +59,7 @@ export var addHeaders = function addHeaders(headers) {
59
59
  headers.append('X-ExperimentalApi', 'teams-beta');
60
60
  headers.append('X-ExperimentalApi', 'team-members-beta');
61
61
  headers.append('atl-client-name', "@atlaskit/profilecard");
62
- headers.append('atl-client-version', "26.4.0");
62
+ headers.append('atl-client-version', "26.4.2");
63
63
  return headers;
64
64
  };
65
65
  export function getTeamFromAGG(_x, _x2, _x3) {
@@ -5,7 +5,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
5
5
  import { getPageTime } from './performance';
6
6
  export var PACKAGE_META_DATA = {
7
7
  packageName: (_process$env$_PACKAGE = "@atlaskit/profilecard") !== null && _process$env$_PACKAGE !== void 0 ? _process$env$_PACKAGE : '',
8
- packageVersion: (_process$env$_PACKAGE2 = "26.4.0") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
8
+ packageVersion: (_process$env$_PACKAGE2 = "26.4.2") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
9
9
  };
10
10
  var TEAM_SUBJECT = 'teamProfileCard';
11
11
  var USER_SUBJECT = 'profilecard';
@@ -24,7 +24,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
24
24
  actionSubjectId: actionSubjectId,
25
25
  attributes: _objectSpread(_objectSpread({
26
26
  packageName: "@atlaskit/profilecard",
27
- packageVersion: "26.4.0"
27
+ packageVersion: "26.4.2"
28
28
  }, attributes), {}, {
29
29
  firedAt: Math.round(getPageTime())
30
30
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "26.4.1",
3
+ "version": "26.5.0",
4
4
  "description": "A React component to display a card with user information.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -38,7 +38,7 @@
38
38
  "access": "public"
39
39
  },
40
40
  "dependencies": {
41
- "@atlaskit/afm-i18n-platform-people-and-teams-profilecard": "2.166.0",
41
+ "@atlaskit/afm-i18n-platform-people-and-teams-profilecard": "2.172.0",
42
42
  "@atlaskit/atlassian-context": "^1.0.0",
43
43
  "@atlaskit/avatar": "^26.1.0",
44
44
  "@atlaskit/avatar-group": "^13.1.0",
@@ -59,16 +59,16 @@
59
59
  "@atlaskit/popup": "^5.1.0",
60
60
  "@atlaskit/primitives": "^20.2.0",
61
61
  "@atlaskit/react-compiler-gating": "^0.2.0",
62
- "@atlaskit/rovo-agent-components": "^7.1.0",
63
- "@atlaskit/rovo-triggers": "^9.3.0",
62
+ "@atlaskit/rovo-agent-components": "^7.2.0",
63
+ "@atlaskit/rovo-triggers": "^9.5.0",
64
64
  "@atlaskit/spinner": "^20.1.0",
65
65
  "@atlaskit/teams-app-config": "^2.1.0",
66
66
  "@atlaskit/teams-app-internal-analytics": "^2.2.0",
67
67
  "@atlaskit/teams-app-internal-navigation": "^2.1.0",
68
68
  "@atlaskit/teams-avatar": "^3.1.0",
69
- "@atlaskit/teams-public": "^2.2.0",
69
+ "@atlaskit/teams-public": "^2.3.0",
70
70
  "@atlaskit/theme": "^26.1.0",
71
- "@atlaskit/tmp-editor-statsig": "^114.4.0",
71
+ "@atlaskit/tmp-editor-statsig": "^116.0.0",
72
72
  "@atlaskit/tokens": "^15.2.0",
73
73
  "@atlaskit/tooltip": "^23.1.0",
74
74
  "@atlassian/studio-entry-link": "^1.1.0",
@@ -98,7 +98,6 @@
98
98
  "@storybook/test": "^8.6.14",
99
99
  "@testing-library/react": "^16.3.0",
100
100
  "@testing-library/user-event": "^14.4.3",
101
- "enzyme": "^3.10.0",
102
101
  "es6-promise": "^4.0.5",
103
102
  "fetch-mock": "^8.0.0",
104
103
  "loader-utils": "^1.1.0",
@@ -0,0 +1,73 @@
1
+ /**
2
+ * Structured MCP docs for `@atlaskit/profilecard`.
3
+ */
4
+
5
+ import path from 'path';
6
+
7
+ import type { StructuredContentSource } from '@atlassian/structured-docs-types/types';
8
+
9
+ import packageJson from './package.json';
10
+
11
+ const packagePath = path.resolve(__dirname);
12
+
13
+ const documentation: StructuredContentSource = {
14
+ package: {
15
+ package: '@atlaskit/profilecard',
16
+ packagePath,
17
+ packageJson,
18
+ overview:
19
+ 'A React component to display a card with user or team information. It includes support for interactive triggers and resourced cards.',
20
+ },
21
+ components: [
22
+ {
23
+ name: 'ProfileCard',
24
+ description: 'A component for displaying user information in a card.',
25
+ status: 'general-availability',
26
+ import: {
27
+ name: 'ProfileCard',
28
+ package: '@atlaskit/profilecard',
29
+ type: 'named',
30
+ packagePath,
31
+ packageJson,
32
+ },
33
+ usageGuidelines: [
34
+ 'Use `ProfileCard` to show user details like name, avatar, and contact info.',
35
+ ],
36
+ keywords: ['profile', 'user', 'card'],
37
+ categories: ['people-and-teams'],
38
+ examples: [
39
+ {
40
+ name: 'Profile card',
41
+ description: 'Basic usage of ProfileCard.',
42
+ source: path.resolve(packagePath, './examples/01-profilecard.tsx'),
43
+ },
44
+ ],
45
+ },
46
+ {
47
+ name: 'ProfileCardTrigger',
48
+ description: 'A component that triggers a profile card on hover or click.',
49
+ status: 'general-availability',
50
+ import: {
51
+ name: 'ProfileCardTrigger',
52
+ package: '@atlaskit/profilecard',
53
+ type: 'named',
54
+ packagePath,
55
+ packageJson,
56
+ },
57
+ usageGuidelines: [
58
+ 'Use `ProfileCardTrigger` to wrap an element (like an avatar) that should show a profile card.',
59
+ ],
60
+ keywords: ['profile', 'trigger', 'hover'],
61
+ categories: ['people-and-teams'],
62
+ examples: [
63
+ {
64
+ name: 'Profile card trigger',
65
+ description: 'Basic usage of ProfileCardTrigger.',
66
+ source: path.resolve(packagePath, './examples/05-profilecard-trigger.tsx'),
67
+ },
68
+ ],
69
+ },
70
+ ],
71
+ };
72
+
73
+ export default documentation;
package/tsconfig.json CHANGED
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "extends": "../../../tsconfig.json",
3
3
  "include": [
4
+ "./*.docs.tsx",
5
+ "./package.json",
4
6
  "./src/**/*.ts",
5
7
  "./src/**/*.tsx",
6
8
  "./docs/**/*.ts",