@atlaskit/profilecard 24.20.0 → 24.20.1

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
+ ## 24.20.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 24.20.0
4
10
 
5
11
  ### Minor Changes
@@ -439,7 +445,6 @@
439
445
  [`c6101121ae1df`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c6101121ae1df) -
440
446
  Removed unused component props in response to the removal of `isAgentCreatedByUser` from the agent
441
447
  dropdown actions component. Changes:
442
-
443
448
  - `AgentProfileCard`: removed `isCreatedByViewingUser` / `product` props. `isCreatedByViewingUser`
444
449
  is no longer needed for action dropdown permission checks, and `product` is an unused prop
445
450
  - `AgentProfileCardResourced`: removed `viewingUserId` / `product` props. `viewingUserId` is no
@@ -3560,7 +3565,6 @@
3560
3565
 
3561
3566
  Remove namespace imports from React, ReactDom, and PropTypes- Updated dependencies
3562
3567
  [6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):
3563
-
3564
3568
  - @atlaskit/docs@8.3.2
3565
3569
  - @atlaskit/avatar@17.1.7
3566
3570
  - @atlaskit/button@13.3.7
@@ -3782,7 +3786,6 @@
3782
3786
  - [patch][18dfac7332](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/18dfac7332):
3783
3787
 
3784
3788
  In this PR, we are:
3785
-
3786
3789
  - Re-introducing dist build folders
3787
3790
  - Adding back cjs
3788
3791
  - Replacing es5 by cjs and es2015 by esm
@@ -3843,7 +3846,6 @@
3843
3846
  ## 10.2.5
3844
3847
 
3845
3848
  - [patch][b0ef06c685](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b0ef06c685):
3846
-
3847
3849
  - This is just a safety release in case anything strange happened in in the previous one. See Pull
3848
3850
  Request #5942 for details
3849
3851
 
@@ -3868,7 +3870,6 @@
3868
3870
  ## 10.2.2
3869
3871
 
3870
3872
  - [patch][afd34e36b0](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/afd34e36b0):
3871
-
3872
3873
  - Hide public name when it matches the full name
3873
3874
 
3874
3875
  ## 10.2.1
@@ -3881,27 +3882,23 @@
3881
3882
  ## 10.2.0
3882
3883
 
3883
3884
  - [minor][e7d7fe8252](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/e7d7fe8252):
3884
-
3885
3885
  - Make full name and public name in the same line. Remove `@` symbol in front of public name.
3886
3886
  Remove mention icon
3887
3887
 
3888
3888
  ## 10.1.0
3889
3889
 
3890
3890
  - [minor][5a49043dac](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/5a49043dac):
3891
-
3892
3891
  - Enable strictPropertyInitialization in tsconfig.base
3893
3892
 
3894
3893
  ## 10.0.0
3895
3894
 
3896
3895
  - [major][7c17b35107](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7c17b35107):
3897
-
3898
3896
  - Updates react and react-dom peer dependencies to react@^16.8.0 and react-dom@^16.8.0. To use
3899
3897
  this package, please ensure you use at least this version of react and react-dom.
3900
3898
 
3901
3899
  ## 9.0.5
3902
3900
 
3903
3901
  - [patch][d3cad2622e](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/d3cad2622e):
3904
-
3905
3902
  - Removes babel-runtime in favour of @babel/runtime
3906
3903
 
3907
3904
  ## 9.0.4
@@ -3916,7 +3913,6 @@
3916
3913
  ## 9.0.3
3917
3914
 
3918
3915
  - [patch][50e8c82ec4](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/50e8c82ec4):
3919
-
3920
3916
  - index.ts is now ignored when published to npm to avoid ambiguity between ts and js files
3921
3917
 
3922
3918
  ## 9.0.2
@@ -3950,7 +3946,6 @@
3950
3946
  ## 9.0.0
3951
3947
 
3952
3948
  - [major][bfca144ea5](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/bfca144ea5):
3953
-
3954
3949
  - Refactored internal components. Moved to Typescript. Updated named exports. Updated type
3955
3950
  definitions.
3956
3951
 
@@ -3971,19 +3966,16 @@
3971
3966
  ## 8.0.1
3972
3967
 
3973
3968
  - [patch][9a0c34d490](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9a0c34d490):
3974
-
3975
3969
  - Fixes package.json to not exclude built files
3976
3970
 
3977
3971
  ## 8.0.0
3978
3972
 
3979
3973
  - [major][dbff4fdcf9](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/dbff4fdcf9):
3980
-
3981
3974
  - Remove presence from profilecard now that users cannot use Stride to control it
3982
3975
 
3983
3976
  ## 7.0.0
3984
3977
 
3985
3978
  - [major][76299208e6](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/76299208e6):
3986
-
3987
3979
  - Drop ES5 from all the flow modules
3988
3980
 
3989
3981
  ### Dropping CJS support in all @atlaskit packages
@@ -4028,7 +4020,6 @@
4028
4020
  ## 6.2.0
4029
4021
 
4030
4022
  - [minor][e0e5dd69a7](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/e0e5dd69a7):
4031
-
4032
4023
  - Support 2 new props "hasStatusLozengeForDisabledAccount" and "customMessageForDisabledAccount"
4033
4024
 
4034
4025
  ## 6.1.5
@@ -4043,13 +4034,11 @@
4043
4034
  ## 6.1.4
4044
4035
 
4045
4036
  - [patch][ba95c0e](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ba95c0e):
4046
-
4047
4037
  - Remove typescript type InjectedIntlProps from flow js code
4048
4038
 
4049
4039
  ## 6.1.3
4050
4040
 
4051
4041
  - [patch][3ef5292](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/3ef5292):
4052
-
4053
4042
  - Include type definitions in npm package
4054
4043
 
4055
4044
  ## 6.1.2
@@ -4081,7 +4070,6 @@
4081
4070
  ## 6.1.0
4082
4071
 
4083
4072
  - [minor][a2da489](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/a2da489):
4084
-
4085
4073
  - - wrap profile card in IntlProvider and support i18n
4086
4074
 
4087
4075
  ## 6.0.3
@@ -4106,19 +4094,16 @@
4106
4094
  ## 6.0.1
4107
4095
 
4108
4096
  - [patch][9d63842](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9d63842):
4109
-
4110
4097
  - Fixed a bug where content is not rendered for cards of users whose accounts are closed
4111
4098
 
4112
4099
  ## 6.0.0
4113
4100
 
4114
4101
  - [major][9c0844d](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9c0844d):
4115
-
4116
4102
  - Replace "isActive" prop with new "status" prop and adding react-intl messages
4117
4103
 
4118
4104
  ## 5.0.0
4119
4105
 
4120
4106
  - [major][a6dd6e3](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/a6dd6e3):
4121
-
4122
4107
  - Removed isCensored prop as this state no longer exists
4123
4108
 
4124
4109
  ## 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.0");
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.0");
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.0"
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.0"
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.0");
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.0");
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.0"
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.0",
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.0");
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.0");
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.0"
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.0"
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.1",
4
4
  "description": "A React component to display a card with user information.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -62,18 +62,18 @@
62
62
  "@atlaskit/platform-feature-flags-react": "^0.3.0",
63
63
  "@atlaskit/popup": "^4.4.0",
64
64
  "@atlaskit/primitives": "^15.0.0",
65
- "@atlaskit/rovo-agent-components": "^3.8.0",
65
+ "@atlaskit/rovo-agent-components": "^3.9.0",
66
66
  "@atlaskit/rovo-triggers": "^3.13.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",