@atlaskit/profilecard 23.1.1 → 23.2.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,25 @@
1
1
  # @atlaskit/profilecard
2
2
 
3
+ ## 23.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#120533](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/120533)
8
+ [`f1bec731e278f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f1bec731e278f) -
9
+ Adds a `sideEffects` field to ensure this package does not have Compiled styles tree-shaken in the
10
+ future to avoid an accidental regression.
11
+
12
+ This is related to
13
+ https://community.developer.atlassian.com/t/rfc-73-migrating-our-components-to-compiled-css-in-js/85953
14
+
15
+ ## 23.2.0
16
+
17
+ ### Minor Changes
18
+
19
+ - [#117986](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/117986)
20
+ [`65187910ea922`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/65187910ea922) -
21
+ [ux] Migrate legacy icons [ENGHEALTH-23682]
22
+
3
23
  ## 23.1.1
4
24
 
5
25
  ### Patch Changes
@@ -3,6 +3,9 @@
3
3
  "main": "../dist/cjs/components/Agent/index.js",
4
4
  "module": "../dist/esm/components/Agent/index.js",
5
5
  "module:es2019": "../dist/es2019/components/Agent/index.js",
6
+ "sideEffects": [
7
+ "*.compiled.css"
8
+ ],
6
9
  "types": "../dist/types/components/Agent/index.d.ts",
7
10
  "typesVersions": {
8
11
  ">=4.5 <5.4": {
@@ -3,6 +3,9 @@
3
3
  "main": "../dist/cjs/client/index.js",
4
4
  "module": "../dist/esm/client/index.js",
5
5
  "module:es2019": "../dist/es2019/client/index.js",
6
+ "sideEffects": [
7
+ "*.compiled.css"
8
+ ],
6
9
  "types": "../dist/types/client/index.d.ts",
7
10
  "typesVersions": {
8
11
  ">=4.5 <5.4": {
@@ -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', "23.1.1");
14
+ headers.append('atl-client-version', "23.2.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', "23.1.1");
69
+ headers.append('atl-client-version', "23.2.1");
70
70
  return headers;
71
71
  };
72
72
  function getTeamFromAGG(_x, _x2, _x3) {
@@ -8,7 +8,10 @@ Object.defineProperty(exports, "__esModule", {
8
8
  exports.default = void 0;
9
9
  var _react = _interopRequireWildcard(require("react"));
10
10
  var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
11
- var _crossCircle = _interopRequireDefault(require("@atlaskit/icon/glyph/cross-circle"));
11
+ var _icon = require("@atlaskit/icon");
12
+ var _crossCircle = _interopRequireDefault(require("@atlaskit/icon/core/migration/cross-circle"));
13
+ var _crossCircle2 = _interopRequireDefault(require("@atlaskit/icon/glyph/cross-circle"));
14
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
12
15
  var _primitives = require("@atlaskit/primitives");
13
16
  var _Error = require("../../styled/Error");
14
17
  var _analytics = require("../../util/analytics");
@@ -38,7 +41,15 @@ var ErrorMessage = function ErrorMessage(props) {
38
41
  };
39
42
  return /*#__PURE__*/_react.default.createElement(_Error.ErrorWrapper, {
40
43
  testId: "profilecard-error"
41
- }, /*#__PURE__*/_react.default.createElement(_crossCircle.default, {
44
+ }, (0, _platformFeatureFlags.fg)('ptc-migrate-legacy-icons-profilecard') ? /*#__PURE__*/_react.default.createElement(_icon.IconTile, {
45
+ icon: _crossCircle.default,
46
+ label: "icon error",
47
+ size: "48",
48
+ appearance: 'gray'
49
+ }) :
50
+ /*#__PURE__*/
51
+ // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons
52
+ _react.default.createElement(_crossCircle2.default, {
42
53
  label: "icon error",
43
54
  size: "xlarge"
44
55
  }), errorContent(), reload && /*#__PURE__*/_react.default.createElement(_standardButton.default, {
@@ -45,7 +45,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
45
45
  actionSubjectId: actionSubjectId,
46
46
  attributes: _objectSpread(_objectSpread({
47
47
  packageName: "@atlaskit/profilecard",
48
- packageVersion: "23.1.1"
48
+ packageVersion: "23.2.1"
49
49
  }, attributes), {}, {
50
50
  firedAt: Math.round((0, _performance.getPageTime)())
51
51
  })
@@ -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', "23.1.1");
9
+ headers.append('atl-client-version', "23.2.1");
10
10
  return headers;
11
11
  };
12
12
  export async function getOrgIdForCloudIdFromAGG(url, cloudId) {
@@ -75,7 +75,7 @@ export const addHeaders = headers => {
75
75
  headers.append('X-ExperimentalApi', 'teams-beta');
76
76
  headers.append('X-ExperimentalApi', 'team-members-beta');
77
77
  headers.append('atl-client-name', "@atlaskit/profilecard");
78
- headers.append('atl-client-version', "23.1.1");
78
+ headers.append('atl-client-version', "23.2.1");
79
79
  return headers;
80
80
  };
81
81
  export async function getTeamFromAGG(url, teamId, siteId) {
@@ -1,6 +1,9 @@
1
1
  import React, { useEffect } from 'react';
2
2
  import Button from '@atlaskit/button/standard-button';
3
+ import { IconTile } from '@atlaskit/icon';
4
+ import CrossCircleIcon from '@atlaskit/icon/core/migration/cross-circle';
3
5
  import IconError from '@atlaskit/icon/glyph/cross-circle';
6
+ import { fg } from '@atlaskit/platform-feature-flags';
4
7
  import { Text } from '@atlaskit/primitives';
5
8
  import { ErrorTitle, ErrorWrapper } from '../../styled/Error';
6
9
  import { profileCardRendered } from '../../util/analytics';
@@ -30,7 +33,15 @@ const ErrorMessage = props => {
30
33
  };
31
34
  return /*#__PURE__*/React.createElement(ErrorWrapper, {
32
35
  testId: "profilecard-error"
33
- }, /*#__PURE__*/React.createElement(IconError, {
36
+ }, fg('ptc-migrate-legacy-icons-profilecard') ? /*#__PURE__*/React.createElement(IconTile, {
37
+ icon: CrossCircleIcon,
38
+ label: "icon error",
39
+ size: "48",
40
+ appearance: 'gray'
41
+ }) :
42
+ /*#__PURE__*/
43
+ // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons
44
+ React.createElement(IconError, {
34
45
  label: "icon error",
35
46
  size: "xlarge"
36
47
  }), errorContent(), reload && /*#__PURE__*/React.createElement(Button, {
@@ -32,7 +32,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
32
32
  actionSubjectId,
33
33
  attributes: {
34
34
  packageName: "@atlaskit/profilecard",
35
- packageVersion: "23.1.1",
35
+ packageVersion: "23.2.1",
36
36
  ...attributes,
37
37
  firedAt: Math.round(getPageTime())
38
38
  }
@@ -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', "23.1.1");
7
+ headers.append('atl-client-version', "23.2.1");
8
8
  return headers;
9
9
  };
10
10
  export function getOrgIdForCloudIdFromAGG(_x, _x2) {
@@ -57,7 +57,7 @@ export var addHeaders = function addHeaders(headers) {
57
57
  headers.append('X-ExperimentalApi', 'teams-beta');
58
58
  headers.append('X-ExperimentalApi', 'team-members-beta');
59
59
  headers.append('atl-client-name', "@atlaskit/profilecard");
60
- headers.append('atl-client-version', "23.1.1");
60
+ headers.append('atl-client-version', "23.2.1");
61
61
  return headers;
62
62
  };
63
63
  export function getTeamFromAGG(_x, _x2, _x3) {
@@ -1,6 +1,9 @@
1
1
  import React, { useEffect } from 'react';
2
2
  import Button from '@atlaskit/button/standard-button';
3
+ import { IconTile } from '@atlaskit/icon';
4
+ import CrossCircleIcon from '@atlaskit/icon/core/migration/cross-circle';
3
5
  import IconError from '@atlaskit/icon/glyph/cross-circle';
6
+ import { fg } from '@atlaskit/platform-feature-flags';
4
7
  import { Text } from '@atlaskit/primitives';
5
8
  import { ErrorTitle, ErrorWrapper } from '../../styled/Error';
6
9
  import { profileCardRendered } from '../../util/analytics';
@@ -28,7 +31,15 @@ var ErrorMessage = function ErrorMessage(props) {
28
31
  };
29
32
  return /*#__PURE__*/React.createElement(ErrorWrapper, {
30
33
  testId: "profilecard-error"
31
- }, /*#__PURE__*/React.createElement(IconError, {
34
+ }, fg('ptc-migrate-legacy-icons-profilecard') ? /*#__PURE__*/React.createElement(IconTile, {
35
+ icon: CrossCircleIcon,
36
+ label: "icon error",
37
+ size: "48",
38
+ appearance: 'gray'
39
+ }) :
40
+ /*#__PURE__*/
41
+ // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons
42
+ React.createElement(IconError, {
32
43
  label: "icon error",
33
44
  size: "xlarge"
34
45
  }), errorContent(), reload && /*#__PURE__*/React.createElement(Button, {
@@ -39,7 +39,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
39
39
  actionSubjectId: actionSubjectId,
40
40
  attributes: _objectSpread(_objectSpread({
41
41
  packageName: "@atlaskit/profilecard",
42
- packageVersion: "23.1.1"
42
+ packageVersion: "23.2.1"
43
43
  }, attributes), {}, {
44
44
  firedAt: Math.round(getPageTime())
45
45
  })
package/i18n/package.json CHANGED
@@ -3,6 +3,9 @@
3
3
  "main": "../dist/cjs/i18n/index.js",
4
4
  "module": "../dist/esm/i18n/index.js",
5
5
  "module:es2019": "../dist/es2019/i18n/index.js",
6
+ "sideEffects": [
7
+ "*.compiled.css"
8
+ ],
6
9
  "types": "../dist/types/i18n/index.d.ts",
7
10
  "typesVersions": {
8
11
  ">=4.5 <5.4": {
@@ -3,6 +3,9 @@
3
3
  "main": "../dist/cjs/messages.js",
4
4
  "module": "../dist/esm/messages.js",
5
5
  "module:es2019": "../dist/es2019/messages.js",
6
+ "sideEffects": [
7
+ "*.compiled.css"
8
+ ],
6
9
  "types": "../dist/types/messages.d.ts",
7
10
  "typesVersions": {
8
11
  ">=4.5 <5.4": {
@@ -3,6 +3,9 @@
3
3
  "main": "../dist/cjs/mocks/index.js",
4
4
  "module": "../dist/esm/mocks/index.js",
5
5
  "module:es2019": "../dist/es2019/mocks/index.js",
6
+ "sideEffects": [
7
+ "*.compiled.css"
8
+ ],
6
9
  "types": "../dist/types/mocks/index.d.ts",
7
10
  "typesVersions": {
8
11
  ">=4.5 <5.4": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "23.1.1",
3
+ "version": "23.2.1",
4
4
  "description": "A React component to display a card with user information.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -60,19 +60,19 @@
60
60
  "@atlaskit/empty-state": "^9.0.0",
61
61
  "@atlaskit/focus-ring": "^3.0.0",
62
62
  "@atlaskit/give-kudos": "^4.0.0",
63
- "@atlaskit/icon": "^24.0.0",
63
+ "@atlaskit/icon": "^24.1.0",
64
64
  "@atlaskit/lozenge": "^12.0.0",
65
- "@atlaskit/menu": "^3.0.0",
65
+ "@atlaskit/menu": "^3.1.0",
66
66
  "@atlaskit/modal-dialog": "^13.0.0",
67
67
  "@atlaskit/people-teams-ui-public": "^3.0.0",
68
68
  "@atlaskit/platform-feature-flags": "^1.1.0",
69
69
  "@atlaskit/popup": "^2.0.0",
70
- "@atlaskit/primitives": "^14.0.0",
71
- "@atlaskit/rovo-agent-components": "^2.0.0",
72
- "@atlaskit/rovo-triggers": "^2.0.0",
70
+ "@atlaskit/primitives": "^14.1.0",
71
+ "@atlaskit/rovo-agent-components": "^2.1.0",
72
+ "@atlaskit/rovo-triggers": "^2.1.0",
73
73
  "@atlaskit/spinner": "^18.0.0",
74
74
  "@atlaskit/theme": "^17.0.0",
75
- "@atlaskit/tokens": "^4.1.0",
75
+ "@atlaskit/tokens": "^4.2.0",
76
76
  "@atlaskit/tooltip": "^20.0.0",
77
77
  "@babel/runtime": "^7.0.0",
78
78
  "@compiled/react": "^0.18.2",
@@ -152,6 +152,12 @@
152
152
  },
153
153
  "platform_profilecard-enable_reporting_lines_label": {
154
154
  "type": "boolean"
155
+ },
156
+ "ptc-migrate-legacy-icons-profilecard": {
157
+ "type": "boolean"
155
158
  }
156
- }
159
+ },
160
+ "sideEffects": [
161
+ "*.compiled.css"
162
+ ]
157
163
  }
package/team/package.json CHANGED
@@ -3,6 +3,9 @@
3
3
  "main": "../dist/cjs/components/Team/index.js",
4
4
  "module": "../dist/esm/components/Team/index.js",
5
5
  "module:es2019": "../dist/es2019/components/Team/index.js",
6
+ "sideEffects": [
7
+ "*.compiled.css"
8
+ ],
6
9
  "types": "../dist/types/components/Team/index.d.ts",
7
10
  "typesVersions": {
8
11
  ">=4.5 <5.4": {
@@ -3,6 +3,9 @@
3
3
  "main": "../dist/cjs/types.js",
4
4
  "module": "../dist/esm/types.js",
5
5
  "module:es2019": "../dist/es2019/types.js",
6
+ "sideEffects": [
7
+ "*.compiled.css"
8
+ ],
6
9
  "types": "../dist/types/types.d.ts",
7
10
  "typesVersions": {
8
11
  ">=4.5 <5.4": {
package/user/package.json CHANGED
@@ -3,6 +3,9 @@
3
3
  "main": "../dist/cjs/components/User/index.js",
4
4
  "module": "../dist/esm/components/User/index.js",
5
5
  "module:es2019": "../dist/es2019/components/User/index.js",
6
+ "sideEffects": [
7
+ "*.compiled.css"
8
+ ],
6
9
  "types": "../dist/types/components/User/index.d.ts",
7
10
  "typesVersions": {
8
11
  ">=4.5 <5.4": {