@atlaskit/profilecard 24.20.0 → 24.20.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
+ ## 24.20.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 24.20.1
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 24.20.0
4
16
 
5
17
  ### Minor Changes
@@ -439,7 +451,6 @@
439
451
  [`c6101121ae1df`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c6101121ae1df) -
440
452
  Removed unused component props in response to the removal of `isAgentCreatedByUser` from the agent
441
453
  dropdown actions component. Changes:
442
-
443
454
  - `AgentProfileCard`: removed `isCreatedByViewingUser` / `product` props. `isCreatedByViewingUser`
444
455
  is no longer needed for action dropdown permission checks, and `product` is an unused prop
445
456
  - `AgentProfileCardResourced`: removed `viewingUserId` / `product` props. `viewingUserId` is no
@@ -3560,7 +3571,6 @@
3560
3571
 
3561
3572
  Remove namespace imports from React, ReactDom, and PropTypes- Updated dependencies
3562
3573
  [6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):
3563
-
3564
3574
  - @atlaskit/docs@8.3.2
3565
3575
  - @atlaskit/avatar@17.1.7
3566
3576
  - @atlaskit/button@13.3.7
@@ -3782,7 +3792,6 @@
3782
3792
  - [patch][18dfac7332](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/18dfac7332):
3783
3793
 
3784
3794
  In this PR, we are:
3785
-
3786
3795
  - Re-introducing dist build folders
3787
3796
  - Adding back cjs
3788
3797
  - Replacing es5 by cjs and es2015 by esm
@@ -3843,7 +3852,6 @@
3843
3852
  ## 10.2.5
3844
3853
 
3845
3854
  - [patch][b0ef06c685](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b0ef06c685):
3846
-
3847
3855
  - This is just a safety release in case anything strange happened in in the previous one. See Pull
3848
3856
  Request #5942 for details
3849
3857
 
@@ -3868,7 +3876,6 @@
3868
3876
  ## 10.2.2
3869
3877
 
3870
3878
  - [patch][afd34e36b0](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/afd34e36b0):
3871
-
3872
3879
  - Hide public name when it matches the full name
3873
3880
 
3874
3881
  ## 10.2.1
@@ -3881,27 +3888,23 @@
3881
3888
  ## 10.2.0
3882
3889
 
3883
3890
  - [minor][e7d7fe8252](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/e7d7fe8252):
3884
-
3885
3891
  - Make full name and public name in the same line. Remove `@` symbol in front of public name.
3886
3892
  Remove mention icon
3887
3893
 
3888
3894
  ## 10.1.0
3889
3895
 
3890
3896
  - [minor][5a49043dac](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/5a49043dac):
3891
-
3892
3897
  - Enable strictPropertyInitialization in tsconfig.base
3893
3898
 
3894
3899
  ## 10.0.0
3895
3900
 
3896
3901
  - [major][7c17b35107](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7c17b35107):
3897
-
3898
3902
  - Updates react and react-dom peer dependencies to react@^16.8.0 and react-dom@^16.8.0. To use
3899
3903
  this package, please ensure you use at least this version of react and react-dom.
3900
3904
 
3901
3905
  ## 9.0.5
3902
3906
 
3903
3907
  - [patch][d3cad2622e](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/d3cad2622e):
3904
-
3905
3908
  - Removes babel-runtime in favour of @babel/runtime
3906
3909
 
3907
3910
  ## 9.0.4
@@ -3916,7 +3919,6 @@
3916
3919
  ## 9.0.3
3917
3920
 
3918
3921
  - [patch][50e8c82ec4](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/50e8c82ec4):
3919
-
3920
3922
  - index.ts is now ignored when published to npm to avoid ambiguity between ts and js files
3921
3923
 
3922
3924
  ## 9.0.2
@@ -3950,7 +3952,6 @@
3950
3952
  ## 9.0.0
3951
3953
 
3952
3954
  - [major][bfca144ea5](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/bfca144ea5):
3953
-
3954
3955
  - Refactored internal components. Moved to Typescript. Updated named exports. Updated type
3955
3956
  definitions.
3956
3957
 
@@ -3971,19 +3972,16 @@
3971
3972
  ## 8.0.1
3972
3973
 
3973
3974
  - [patch][9a0c34d490](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9a0c34d490):
3974
-
3975
3975
  - Fixes package.json to not exclude built files
3976
3976
 
3977
3977
  ## 8.0.0
3978
3978
 
3979
3979
  - [major][dbff4fdcf9](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/dbff4fdcf9):
3980
-
3981
3980
  - Remove presence from profilecard now that users cannot use Stride to control it
3982
3981
 
3983
3982
  ## 7.0.0
3984
3983
 
3985
3984
  - [major][76299208e6](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/76299208e6):
3986
-
3987
3985
  - Drop ES5 from all the flow modules
3988
3986
 
3989
3987
  ### Dropping CJS support in all @atlaskit packages
@@ -4028,7 +4026,6 @@
4028
4026
  ## 6.2.0
4029
4027
 
4030
4028
  - [minor][e0e5dd69a7](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/e0e5dd69a7):
4031
-
4032
4029
  - Support 2 new props "hasStatusLozengeForDisabledAccount" and "customMessageForDisabledAccount"
4033
4030
 
4034
4031
  ## 6.1.5
@@ -4043,13 +4040,11 @@
4043
4040
  ## 6.1.4
4044
4041
 
4045
4042
  - [patch][ba95c0e](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ba95c0e):
4046
-
4047
4043
  - Remove typescript type InjectedIntlProps from flow js code
4048
4044
 
4049
4045
  ## 6.1.3
4050
4046
 
4051
4047
  - [patch][3ef5292](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/3ef5292):
4052
-
4053
4048
  - Include type definitions in npm package
4054
4049
 
4055
4050
  ## 6.1.2
@@ -4081,7 +4076,6 @@
4081
4076
  ## 6.1.0
4082
4077
 
4083
4078
  - [minor][a2da489](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/a2da489):
4084
-
4085
4079
  - - wrap profile card in IntlProvider and support i18n
4086
4080
 
4087
4081
  ## 6.0.3
@@ -4106,19 +4100,16 @@
4106
4100
  ## 6.0.1
4107
4101
 
4108
4102
  - [patch][9d63842](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9d63842):
4109
-
4110
4103
  - Fixed a bug where content is not rendered for cards of users whose accounts are closed
4111
4104
 
4112
4105
  ## 6.0.0
4113
4106
 
4114
4107
  - [major][9c0844d](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9c0844d):
4115
-
4116
4108
  - Replace "isActive" prop with new "status" prop and adding react-intl messages
4117
4109
 
4118
4110
  ## 5.0.0
4119
4111
 
4120
4112
  - [major][a6dd6e3](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/a6dd6e3):
4121
-
4122
4113
  - Removed isCensored prop as this state no longer exists
4123
4114
 
4124
4115
  ## 4.0.10
@@ -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', "24.19.0");
14
+ headers.append('atl-client-version', "24.20.1");
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', "24.19.0");
69
+ headers.append('atl-client-version', "24.20.1");
70
70
  return headers;
71
71
  };
72
72
  function getTeamFromAGG(_x, _x2, _x3) {
@@ -56,6 +56,11 @@ var AgentProfileCardResourced = exports.AgentProfileCardResourced = function Age
56
56
  cloudId: props.cloudId
57
57
  }),
58
58
  profileHref = _navigateToTeamsApp.href;
59
+
60
+ /**
61
+ * @TODO replace with `getAgentCreator` from `@atlassian/rovo-agent-components`
62
+ * @deprecated use `getAgentCreator` from `@atlassian/rovo-agent-components`
63
+ */
59
64
  var getCreator = (0, _react.useCallback)( /*#__PURE__*/function () {
60
65
  var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(_ref) {
61
66
  var creator_type, creator, authoringTeam, _authoringTeam$displa, _authoringTeam$profil, creatorInfo;
@@ -42,6 +42,11 @@ var AgentProfileCardTrigger = exports.AgentProfileCardTrigger = /*#__PURE__*/(0,
42
42
  (0, _analytics.fireEvent)(createAnalyticsEvent, payload);
43
43
  }
44
44
  }, [createAnalyticsEvent]);
45
+
46
+ /**
47
+ * @TODO replace with `getAgentCreator` from `@atlassian/rovo-agent-components`
48
+ * @deprecated use `getAgentCreator` from `@atlassian/rovo-agent-components`
49
+ */
45
50
  var getCreator = /*#__PURE__*/function () {
46
51
  var _ref3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(_ref2) {
47
52
  var creator_type, creator, authoringTeam, _userId, _authoringTeam$displa, _authoringTeam$profil, _navigateToTeamsApp, profileHref, creatorInfo;
@@ -13,7 +13,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
13
13
  var ANALYTICS_CHANNEL = 'peopleTeams';
14
14
  var PACKAGE_META_DATA = exports.PACKAGE_META_DATA = {
15
15
  packageName: "@atlaskit/profilecard",
16
- packageVersion: "24.19.0"
16
+ packageVersion: "24.20.1"
17
17
  };
18
18
  var runItLater = function runItLater(cb) {
19
19
  var requestIdleCallback = window.requestIdleCallback;
@@ -58,7 +58,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
58
58
  actionSubjectId: actionSubjectId,
59
59
  attributes: _objectSpread(_objectSpread({
60
60
  packageName: "@atlaskit/profilecard",
61
- packageVersion: "24.19.0"
61
+ packageVersion: "24.20.1"
62
62
  }, attributes), {}, {
63
63
  firedAt: Math.round((0, _performance.getPageTime)())
64
64
  })
@@ -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', "24.19.0");
9
+ headers.append('atl-client-version', "24.20.1");
10
10
  return headers;
11
11
  };
12
12
  export async function getOrgIdForCloudIdFromAGG(url, cloudId) {
@@ -77,7 +77,7 @@ export const addHeaders = headers => {
77
77
  headers.append('X-ExperimentalApi', 'teams-beta');
78
78
  headers.append('X-ExperimentalApi', 'team-members-beta');
79
79
  headers.append('atl-client-name', "@atlaskit/profilecard");
80
- headers.append('atl-client-version', "24.19.0");
80
+ headers.append('atl-client-version', "24.20.1");
81
81
  return headers;
82
82
  };
83
83
  export async function getTeamFromAGG(url, teamId, siteId) {
@@ -33,6 +33,11 @@ export const AgentProfileCardResourced = props => {
33
33
  },
34
34
  cloudId: props.cloudId
35
35
  });
36
+
37
+ /**
38
+ * @TODO replace with `getAgentCreator` from `@atlassian/rovo-agent-components`
39
+ * @deprecated use `getAgentCreator` from `@atlassian/rovo-agent-components`
40
+ */
36
41
  const getCreator = useCallback(async ({
37
42
  creator_type,
38
43
  creator,
@@ -30,6 +30,11 @@ export const AgentProfileCardTrigger = /*#__PURE__*/forwardRef(({
30
30
  fireEvent(createAnalyticsEvent, payload);
31
31
  }
32
32
  }, [createAnalyticsEvent]);
33
+
34
+ /**
35
+ * @TODO replace with `getAgentCreator` from `@atlassian/rovo-agent-components`
36
+ * @deprecated use `getAgentCreator` from `@atlassian/rovo-agent-components`
37
+ */
33
38
  const getCreator = async ({
34
39
  creator_type,
35
40
  creator,
@@ -4,7 +4,7 @@ import { getPageTime } from './performance';
4
4
  const ANALYTICS_CHANNEL = 'peopleTeams';
5
5
  export const PACKAGE_META_DATA = {
6
6
  packageName: "@atlaskit/profilecard",
7
- packageVersion: "24.19.0"
7
+ packageVersion: "24.20.1"
8
8
  };
9
9
  const runItLater = cb => {
10
10
  const requestIdleCallback = window.requestIdleCallback;
@@ -45,7 +45,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
45
45
  actionSubjectId,
46
46
  attributes: {
47
47
  packageName: "@atlaskit/profilecard",
48
- packageVersion: "24.19.0",
48
+ packageVersion: "24.20.1",
49
49
  ...attributes,
50
50
  firedAt: Math.round(getPageTime())
51
51
  }
@@ -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', "24.19.0");
7
+ headers.append('atl-client-version', "24.20.1");
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', "24.19.0");
62
+ headers.append('atl-client-version', "24.20.1");
63
63
  return headers;
64
64
  };
65
65
  export function getTeamFromAGG(_x, _x2, _x3) {
@@ -47,6 +47,11 @@ export var AgentProfileCardResourced = function AgentProfileCardResourced(props)
47
47
  cloudId: props.cloudId
48
48
  }),
49
49
  profileHref = _navigateToTeamsApp.href;
50
+
51
+ /**
52
+ * @TODO replace with `getAgentCreator` from `@atlassian/rovo-agent-components`
53
+ * @deprecated use `getAgentCreator` from `@atlassian/rovo-agent-components`
54
+ */
50
55
  var getCreator = useCallback( /*#__PURE__*/function () {
51
56
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(_ref) {
52
57
  var creator_type, creator, authoringTeam, _authoringTeam$displa, _authoringTeam$profil, creatorInfo;
@@ -33,6 +33,11 @@ export var AgentProfileCardTrigger = /*#__PURE__*/forwardRef(function (_ref, ref
33
33
  fireEvent(createAnalyticsEvent, payload);
34
34
  }
35
35
  }, [createAnalyticsEvent]);
36
+
37
+ /**
38
+ * @TODO replace with `getAgentCreator` from `@atlassian/rovo-agent-components`
39
+ * @deprecated use `getAgentCreator` from `@atlassian/rovo-agent-components`
40
+ */
36
41
  var getCreator = /*#__PURE__*/function () {
37
42
  var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(_ref2) {
38
43
  var creator_type, creator, authoringTeam, _userId, _authoringTeam$displa, _authoringTeam$profil, _navigateToTeamsApp, profileHref, creatorInfo;
@@ -7,7 +7,7 @@ import { getPageTime } from './performance';
7
7
  var ANALYTICS_CHANNEL = 'peopleTeams';
8
8
  export var PACKAGE_META_DATA = {
9
9
  packageName: "@atlaskit/profilecard",
10
- packageVersion: "24.19.0"
10
+ packageVersion: "24.20.1"
11
11
  };
12
12
  var runItLater = function runItLater(cb) {
13
13
  var requestIdleCallback = window.requestIdleCallback;
@@ -52,7 +52,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
52
52
  actionSubjectId: actionSubjectId,
53
53
  attributes: _objectSpread(_objectSpread({
54
54
  packageName: "@atlaskit/profilecard",
55
- packageVersion: "24.19.0"
55
+ packageVersion: "24.20.1"
56
56
  }, attributes), {}, {
57
57
  firedAt: Math.round(getPageTime())
58
58
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "24.20.0",
3
+ "version": "24.20.2",
4
4
  "description": "A React component to display a card with user information.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -61,19 +61,19 @@
61
61
  "@atlaskit/platform-feature-flags": "^1.1.0",
62
62
  "@atlaskit/platform-feature-flags-react": "^0.3.0",
63
63
  "@atlaskit/popup": "^4.4.0",
64
- "@atlaskit/primitives": "^15.0.0",
65
- "@atlaskit/rovo-agent-components": "^3.8.0",
66
- "@atlaskit/rovo-triggers": "^3.13.0",
64
+ "@atlaskit/primitives": "^16.0.0",
65
+ "@atlaskit/rovo-agent-components": "^3.9.0",
66
+ "@atlaskit/rovo-triggers": "^3.14.0",
67
67
  "@atlaskit/spinner": "^19.0.0",
68
68
  "@atlaskit/teams-app-config": "^1.12.0",
69
- "@atlaskit/teams-app-internal-analytics": "^1.16.0",
69
+ "@atlaskit/teams-app-internal-analytics": "^1.17.0",
70
70
  "@atlaskit/teams-avatar": "^2.3.0",
71
71
  "@atlaskit/teams-public": "^0.62.0",
72
72
  "@atlaskit/theme": "^21.0.0",
73
- "@atlaskit/tokens": "^6.5.0",
73
+ "@atlaskit/tokens": "^7.0.0",
74
74
  "@atlaskit/tooltip": "^20.5.0",
75
75
  "@babel/runtime": "^7.0.0",
76
- "@compiled/react": "^0.18.3",
76
+ "@compiled/react": "^0.18.6",
77
77
  "@emotion/react": "^11.7.1",
78
78
  "@emotion/styled": "^11.0.0",
79
79
  "date-fns": "^2.17.0",