@atlaskit/profilecard 26.19.7 → 26.19.8

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,11 @@
1
1
  # @atlaskit/profilecard
2
2
 
3
+ ## 26.19.8
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 26.19.7
4
10
 
5
11
  ### 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.19.6");
14
+ headers.append('atl-client-version', "26.19.7");
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.19.6");
69
+ headers.append('atl-client-version', "26.19.7");
70
70
  return headers;
71
71
  };
72
72
  function getTeamFromAGG(_x, _x2, _x3) {
@@ -22,10 +22,11 @@ var _fg = require("@atlaskit/platform-feature-flags/fg");
22
22
  var _compiled = require("@atlaskit/primitives/compiled");
23
23
  var _useAnalyticsEvents2 = require("@atlaskit/teams-app-internal-analytics/use-analytics-events");
24
24
  var _teamsAvatar = _interopRequireDefault(require("@atlaskit/teams-avatar/teams-avatar"));
25
- var _teamsPublic = require("@atlaskit/teams-public");
25
+ var _main2 = require("@atlaskit/teams-public/main");
26
+ var _useTeamContainers2 = require("@atlaskit/teams-public/use-team-containers/use-team-containers");
26
27
  var _TeamAppTile = _interopRequireDefault(require("../common/assets/TeamAppTile.svg"));
27
28
  var _teamActions = require("./team-actions");
28
- var _main2 = require("./team-connections/main");
29
+ var _main3 = require("./team-connections/main");
29
30
  var _teamContainersSkeleton = require("./team-containers-skeleton");
30
31
  var _excluded = ["containerId", "teamId", "displayName", "description", "avatarImageUrl", "headerImageUrl", "memberAvatars", "memberCount", "cloudId", "userId", "isVerified", "teamProfileUrl"];
31
32
  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); }
@@ -55,7 +56,7 @@ var TeamProfileCard = exports.TeamProfileCard = function TeamProfileCard(_ref) {
55
56
  isVerified = _ref.isVerified,
56
57
  teamProfileUrl = _ref.teamProfileUrl,
57
58
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
58
- var _useTeamContainers = (0, _teamsPublic.useTeamContainers)(teamId),
59
+ var _useTeamContainers = (0, _useTeamContainers2.useTeamContainers)(teamId),
59
60
  teamContainers = _useTeamContainers.teamContainers,
60
61
  loading = _useTeamContainers.loading;
61
62
  var _useAnalyticsEvents = (0, _useAnalyticsEvents2.useAnalyticsEvents)(),
@@ -157,13 +158,13 @@ var TeamProfileCard = exports.TeamProfileCard = function TeamProfileCard(_ref) {
157
158
  }, /*#__PURE__*/React.createElement(_compiled.Text, {
158
159
  maxLines: 1,
159
160
  color: "color.text"
160
- }, displayName)), (loading || hasOtherTeamConnections) && /*#__PURE__*/React.createElement(_teamsPublic.TeamContainers, {
161
+ }, displayName)), (loading || hasOtherTeamConnections) && /*#__PURE__*/React.createElement(_main2.TeamContainers, {
161
162
  teamId: teamId,
162
163
  onAddAContainerClick: noop,
163
164
  userId: userId,
164
165
  cloudId: cloudId,
165
166
  components: {
166
- ContainerCard: _main2.TeamConnections,
167
+ ContainerCard: _main3.TeamConnections,
167
168
  TeamContainersSkeleton: _teamContainersSkeleton.TeamContainersSkeleton
168
169
  },
169
170
  filterContainerId: containerId,
@@ -13,7 +13,8 @@ var _react = _interopRequireWildcard(require("react"));
13
13
  var _linkItem = _interopRequireDefault(require("@atlaskit/menu/link-item"));
14
14
  var _compiled = require("@atlaskit/primitives/compiled");
15
15
  var _useAnalyticsEvents2 = require("@atlaskit/teams-app-internal-analytics/use-analytics-events");
16
- var _teamsPublic = require("@atlaskit/teams-public");
16
+ var _containerIcon = require("@atlaskit/teams-public/container-icon");
17
+ var _getContainerProperties = require("@atlaskit/teams-public/utils/get-container-properties");
17
18
  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); }
18
19
  var styles = {
19
20
  containerTypeIconButtonStyles: "_18u01wug _4t3i7vkz _1bsb7vkz"
@@ -23,7 +24,7 @@ var TeamConnections = exports.TeamConnections = function TeamConnections(_ref) {
23
24
  title = _ref.title,
24
25
  containerIcon = _ref.containerIcon,
25
26
  link = _ref.link;
26
- var _getContainerProperti = (0, _teamsPublic.getContainerProperties)({
27
+ var _getContainerProperti = (0, _getContainerProperties.getContainerProperties)({
27
28
  containerType: containerType,
28
29
  iconSize: 'medium',
29
30
  isDisplayedOnProfileCard: true
@@ -51,7 +52,7 @@ var TeamConnections = exports.TeamConnections = function TeamConnections(_ref) {
51
52
  size: "small",
52
53
  color: "color.text.subtlest"
53
54
  }, containerTypeText)),
54
- iconBefore: /*#__PURE__*/_react.default.createElement(_teamsPublic.ContainerIcon, {
55
+ iconBefore: /*#__PURE__*/_react.default.createElement(_containerIcon.ContainerIcon, {
55
56
  containerType: containerType,
56
57
  title: title,
57
58
  containerIcon: containerIcon,
@@ -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.19.6") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
15
+ packageVersion: (_process$env$_PACKAGE2 = "26.19.7") !== 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.19.6"
34
+ packageVersion: "26.19.7"
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.19.6");
9
+ headers.append('atl-client-version', "26.19.7");
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.19.6");
81
+ headers.append('atl-client-version', "26.19.7");
82
82
  return headers;
83
83
  };
84
84
  export async function getTeamFromAGG(url, teamId, siteId) {
@@ -13,7 +13,8 @@ import { fg } from '@atlaskit/platform-feature-flags/fg';
13
13
  import { Box, Flex, Inline, Stack, Text } from '@atlaskit/primitives/compiled';
14
14
  import { useAnalyticsEvents } from '@atlaskit/teams-app-internal-analytics/use-analytics-events';
15
15
  import TeamAvatar from '@atlaskit/teams-avatar/teams-avatar';
16
- import { TeamContainers, useTeamContainers } from '@atlaskit/teams-public';
16
+ import { TeamContainers } from '@atlaskit/teams-public/main';
17
+ import { useTeamContainers } from '@atlaskit/teams-public/use-team-containers/use-team-containers';
17
18
  import TeamAppTile from '../common/assets/TeamAppTile.svg';
18
19
  import { TeamActions } from './team-actions';
19
20
  import { TeamConnections } from './team-connections/main';
@@ -5,7 +5,8 @@ import React, { useCallback } from 'react';
5
5
  import LinkItem from '@atlaskit/menu/link-item';
6
6
  import { Box, Inline, Text } from '@atlaskit/primitives/compiled';
7
7
  import { useAnalyticsEvents } from '@atlaskit/teams-app-internal-analytics/use-analytics-events';
8
- import { ContainerIcon, getContainerProperties } from '@atlaskit/teams-public';
8
+ import { ContainerIcon } from '@atlaskit/teams-public/container-icon';
9
+ import { getContainerProperties } from '@atlaskit/teams-public/utils/get-container-properties';
9
10
  const styles = {
10
11
  containerTypeIconButtonStyles: "_18u01wug _4t3i7vkz _1bsb7vkz"
11
12
  };
@@ -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.19.6") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
5
+ packageVersion: (_process$env$_PACKAGE2 = "26.19.7") !== 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.19.6",
22
+ packageVersion: "26.19.7",
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.19.6");
7
+ headers.append('atl-client-version', "26.19.7");
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.19.6");
62
+ headers.append('atl-client-version', "26.19.7");
63
63
  return headers;
64
64
  };
65
65
  export function getTeamFromAGG(_x, _x2, _x3) {
@@ -15,7 +15,8 @@ import { fg } from '@atlaskit/platform-feature-flags/fg';
15
15
  import { Box, Flex, Inline, Stack, Text } from '@atlaskit/primitives/compiled';
16
16
  import { useAnalyticsEvents } from '@atlaskit/teams-app-internal-analytics/use-analytics-events';
17
17
  import TeamAvatar from '@atlaskit/teams-avatar/teams-avatar';
18
- import { TeamContainers, useTeamContainers } from '@atlaskit/teams-public';
18
+ import { TeamContainers } from '@atlaskit/teams-public/main';
19
+ import { useTeamContainers } from '@atlaskit/teams-public/use-team-containers/use-team-containers';
19
20
  import TeamAppTile from '../common/assets/TeamAppTile.svg';
20
21
  import { TeamActions } from './team-actions';
21
22
  import { TeamConnections } from './team-connections/main';
@@ -5,7 +5,8 @@ import React, { useCallback } from 'react';
5
5
  import LinkItem from '@atlaskit/menu/link-item';
6
6
  import { Box, Inline, Text } from '@atlaskit/primitives/compiled';
7
7
  import { useAnalyticsEvents } from '@atlaskit/teams-app-internal-analytics/use-analytics-events';
8
- import { ContainerIcon, getContainerProperties } from '@atlaskit/teams-public';
8
+ import { ContainerIcon } from '@atlaskit/teams-public/container-icon';
9
+ import { getContainerProperties } from '@atlaskit/teams-public/utils/get-container-properties';
9
10
  var styles = {
10
11
  containerTypeIconButtonStyles: "_18u01wug _4t3i7vkz _1bsb7vkz"
11
12
  };
@@ -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.19.6") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
8
+ packageVersion: (_process$env$_PACKAGE2 = "26.19.7") !== 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.19.6"
27
+ packageVersion: "26.19.7"
28
28
  }, attributes), {}, {
29
29
  firedAt: Math.round(getPageTime())
30
30
  })
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- import { type TeamLinkCardProps } from '@atlaskit/teams-public';
2
+ import type { TeamLinkCardProps } from '@atlaskit/teams-public/team-link-card';
3
3
  export declare const TeamConnections: ({ containerType, title, containerIcon, link, }: TeamLinkCardProps) => React.JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- import type { TeamContainersSkeletonProps } from '@atlaskit/teams-public';
2
+ import type { TeamContainersSkeletonProps } from '@atlaskit/teams-public/team-containers-skeleton';
3
3
  export declare const TeamContainersSkeleton: ({ numberOfContainers, }: TeamContainersSkeletonProps) => React.JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "26.19.7",
3
+ "version": "26.19.8",
4
4
  "description": "A React component to display a card with user information.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -43,7 +43,7 @@
43
43
  "@atlaskit/avatar": "^27.2.0",
44
44
  "@atlaskit/avatar-group": "^14.2.0",
45
45
  "@atlaskit/button": "^25.2.0",
46
- "@atlaskit/css": "^1.0.0",
46
+ "@atlaskit/css": "^1.1.0",
47
47
  "@atlaskit/dropdown-menu": "^18.2.0",
48
48
  "@atlaskit/empty-state": "^12.1.0",
49
49
  "@atlaskit/feature-gate-js-client": "^6.0.0",
@@ -60,7 +60,7 @@
60
60
  "@atlaskit/primitives": "^22.4.0",
61
61
  "@atlaskit/react-compiler-gating": "^0.2.0",
62
62
  "@atlaskit/rovo-agent-components": "^8.9.0",
63
- "@atlaskit/rovo-triggers": "^10.21.0",
63
+ "@atlaskit/rovo-triggers": "^10.22.0",
64
64
  "@atlaskit/spinner": "^20.3.0",
65
65
  "@atlaskit/teams-app-config": "^3.0.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.9.0",
70
70
  "@atlaskit/theme": "^28.1.0",
71
- "@atlaskit/tmp-editor-statsig": "^162.0.0",
71
+ "@atlaskit/tmp-editor-statsig": "^163.0.0",
72
72
  "@atlaskit/tokens": "^16.8.0",
73
73
  "@atlaskit/tooltip": "^24.2.0",
74
74
  "@babel/runtime": "^7.0.0",
@@ -90,11 +90,11 @@
90
90
  "@atlaskit/flag": "^18.4.0",
91
91
  "@atlaskit/inline-edit": "^16.3.0",
92
92
  "@atlaskit/section-message": "^10.1.0",
93
- "@atlaskit/select": "^22.9.0",
93
+ "@atlaskit/select": "^22.10.0",
94
94
  "@atlassian/a11y-jest-testing": "^0.17.0",
95
95
  "@atlassian/feature-flags-storybook-utils": "^0.5.0",
96
96
  "@atlassian/feature-flags-test-utils": "^1.2.0",
97
- "@atlassian/platform-storybook-helpers": "^0.5.0",
97
+ "@atlassian/platform-storybook-helpers": "^0.6.0",
98
98
  "@atlassian/ptc-test-utils": "^0.14.0",
99
99
  "@atlassian/testing-library": "^0.11.0",
100
100
  "@storybook/addon-actions": "^8.6.14",