@atlaskit/profilecard 19.14.0 → 19.15.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.
Files changed (42) hide show
  1. package/CHANGELOG.md +1141 -1124
  2. package/afm-cc/tsconfig.json +3 -0
  3. package/compass.yml +0 -2
  4. package/dist/cjs/client/ProfileCardClient.js +7 -0
  5. package/dist/cjs/client/getTeamFromAGG.js +1 -1
  6. package/dist/cjs/components/Team/TeamProfileCardTrigger.js +2 -6
  7. package/dist/cjs/components/User/ProfileCardDetails.js +1 -1
  8. package/dist/cjs/components/User/ProfileCardTrigger.js +2 -6
  9. package/dist/cjs/styled/Card.js +42 -42
  10. package/dist/cjs/styled/Error.js +9 -5
  11. package/dist/cjs/styled/ReportingLines.js +8 -5
  12. package/dist/cjs/styled/TeamCard.js +21 -16
  13. package/dist/cjs/util/analytics.js +1 -1
  14. package/dist/es2019/client/ProfileCardClient.js +7 -0
  15. package/dist/es2019/client/getTeamFromAGG.js +1 -1
  16. package/dist/es2019/components/Team/TeamProfileCardTrigger.js +2 -6
  17. package/dist/es2019/components/User/ProfileCardDetails.js +1 -1
  18. package/dist/es2019/components/User/ProfileCardTrigger.js +2 -6
  19. package/dist/es2019/styled/Card.js +207 -208
  20. package/dist/es2019/styled/Error.js +9 -5
  21. package/dist/es2019/styled/ReportingLines.js +8 -5
  22. package/dist/es2019/styled/TeamCard.js +27 -22
  23. package/dist/es2019/util/analytics.js +1 -1
  24. package/dist/esm/client/ProfileCardClient.js +7 -0
  25. package/dist/esm/client/getTeamFromAGG.js +1 -1
  26. package/dist/esm/components/Team/TeamProfileCardTrigger.js +2 -6
  27. package/dist/esm/components/User/ProfileCardDetails.js +1 -1
  28. package/dist/esm/components/User/ProfileCardTrigger.js +2 -6
  29. package/dist/esm/styled/Card.js +42 -42
  30. package/dist/esm/styled/Error.js +9 -5
  31. package/dist/esm/styled/ReportingLines.js +8 -5
  32. package/dist/esm/styled/TeamCard.js +21 -16
  33. package/dist/esm/util/analytics.js +1 -1
  34. package/dist/types/index.d.ts +1 -1
  35. package/dist/types/types.d.ts +83 -89
  36. package/dist/types-ts4.5/index.d.ts +1 -1
  37. package/dist/types-ts4.5/types.d.ts +83 -89
  38. package/docs/0-intro.tsx +13 -18
  39. package/docs/1-profilecard-trigger.tsx +13 -19
  40. package/docs/2-team-profilecard.tsx +26 -32
  41. package/package.json +119 -117
  42. package/report.api.md +457 -496
package/docs/0-intro.tsx CHANGED
@@ -12,24 +12,19 @@ export default md`
12
12
  Go to one of the sub-pages for more detailed explanations of what you're looking for.
13
13
 
14
14
  ${(
15
- <ul>
16
- <li>
17
- <Link to="profilecard/docs/profilecard-trigger">
18
- To display User profile cards
19
- </Link>
20
- </li>
21
- <li>
22
- <Link to="profilecard/docs/team-profilecard">
23
- To display Team profile cards
24
- </Link>
25
- </li>
26
- <li>
27
- <Link to="profilecard/docs/profile-client">
28
- To customise the behaviour of the profile client, e.g. fetching data
29
- from a custom source.
30
- </Link>
31
- </li>
32
- </ul>
15
+ <ul>
16
+ <li>
17
+ <Link to="profilecard/docs/profilecard-trigger">To display User profile cards</Link>
18
+ </li>
19
+ <li>
20
+ <Link to="profilecard/docs/team-profilecard">To display Team profile cards</Link>
21
+ </li>
22
+ <li>
23
+ <Link to="profilecard/docs/profile-client">
24
+ To customise the behaviour of the profile client, e.g. fetching data from a custom source.
25
+ </Link>
26
+ </li>
27
+ </ul>
33
28
  )}
34
29
 
35
30
  `;
@@ -1,12 +1,6 @@
1
1
  import React from 'react';
2
2
 
3
- import {
4
- AtlassianInternalWarning,
5
- code,
6
- Example,
7
- md,
8
- Props,
9
- } from '@atlaskit/docs';
3
+ import { AtlassianInternalWarning, code, Example, md, Props } from '@atlaskit/docs';
10
4
 
11
5
  export default md`
12
6
  ${(<AtlassianInternalWarning />)}
@@ -42,19 +36,19 @@ const profileClient = new ProfileClient({
42
36
  `}
43
37
 
44
38
  ${(
45
- <Example
46
- packageName="@atlaskit/profilecard"
47
- Component={require('../examples/05-profilecard-trigger').default}
48
- title="Profilecard"
49
- source={require('!!raw-loader!../examples/05-profilecard-trigger')}
50
- />
51
- )}
39
+ <Example
40
+ packageName="@atlaskit/profilecard"
41
+ Component={require('../examples/05-profilecard-trigger').default}
42
+ title="Profilecard"
43
+ source={require('!!raw-loader!../examples/05-profilecard-trigger')}
44
+ />
45
+ )}
52
46
 
53
47
  ${(
54
- <Props
55
- heading="ProfileCardTrigger Props"
56
- props={require('!!extract-react-types-loader!../src/components/User/ProfileCardTrigger')}
57
- />
58
- )}
48
+ <Props
49
+ heading="ProfileCardTrigger Props"
50
+ props={require('!!extract-react-types-loader!../src/components/User/ProfileCardTrigger')}
51
+ />
52
+ )}
59
53
 
60
54
  `;
@@ -2,13 +2,7 @@ import React from 'react';
2
2
 
3
3
  import { Link } from 'react-router-dom';
4
4
 
5
- import {
6
- AtlassianInternalWarning,
7
- code,
8
- Example,
9
- md,
10
- Props,
11
- } from '@atlaskit/docs';
5
+ import { AtlassianInternalWarning, code, Example, md, Props } from '@atlaskit/docs';
12
6
 
13
7
  export default md`
14
8
  ${(<AtlassianInternalWarning />)}
@@ -42,37 +36,37 @@ const profileClient = new ProfileClient({
42
36
  `}
43
37
 
44
38
  ${(
45
- <Example
46
- packageName="@atlaskit/profilecard"
47
- Component={require('../examples/09-team-profilecard-trigger').default}
48
- title="Profilecard"
49
- source={require('!!raw-loader!../examples/09-team-profilecard-trigger')}
50
- />
51
- )}
39
+ <Example
40
+ packageName="@atlaskit/profilecard"
41
+ Component={require('../examples/09-team-profilecard-trigger').default}
42
+ title="Profilecard"
43
+ source={require('!!raw-loader!../examples/09-team-profilecard-trigger')}
44
+ />
45
+ )}
52
46
 
53
47
  Here are some relevant examples for better understanding the \`trigger\` and \`triggerLinkType\`
54
48
  props:
55
49
 
56
50
  ${(
57
- <ul>
58
- <li>
59
- <Link to="/examples/people-and-teams/profilecard/trigger-link-types">
60
- Trigger link types
61
- </Link>
62
- </li>
63
- <li>
64
- <Link to="/examples/people-and-teams/profilecard/team-profilecard-trigger">
65
- Team profilecard trigger
66
- </Link>
67
- </li>
68
- </ul>
69
- )}
51
+ <ul>
52
+ <li>
53
+ <Link to="/examples/people-and-teams/profilecard/trigger-link-types">
54
+ Trigger link types
55
+ </Link>
56
+ </li>
57
+ <li>
58
+ <Link to="/examples/people-and-teams/profilecard/team-profilecard-trigger">
59
+ Team profilecard trigger
60
+ </Link>
61
+ </li>
62
+ </ul>
63
+ )}
70
64
 
71
65
  ${(
72
- <Props
73
- heading="TeamProfileCardTrigger Props..."
74
- props={require('!!extract-react-types-loader!../src/components/Team/TeamProfileCardTrigger')}
75
- />
76
- )}
66
+ <Props
67
+ heading="TeamProfileCardTrigger Props..."
68
+ props={require('!!extract-react-types-loader!../src/components/Team/TeamProfileCardTrigger')}
69
+ />
70
+ )}
77
71
 
78
72
  `;
package/package.json CHANGED
@@ -1,118 +1,120 @@
1
1
  {
2
- "name": "@atlaskit/profilecard",
3
- "version": "19.14.0",
4
- "description": "A React component to display a card with user information.",
5
- "publishConfig": {
6
- "registry": "https://registry.npmjs.org/"
7
- },
8
- "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
9
- "author": "Atlassian Pty Ltd",
10
- "license": "Apache-2.0",
11
- "main": "dist/cjs/index.js",
12
- "module": "dist/esm/index.js",
13
- "module:es2019": "dist/es2019/index.js",
14
- "types": "dist/types/index.d.ts",
15
- "typesVersions": {
16
- ">=4.5 <4.9": {
17
- "*": [
18
- "dist/types-ts4.5/*",
19
- "dist/types-ts4.5/index.d.ts"
20
- ]
21
- }
22
- },
23
- "atlaskit:src": "src/index.ts",
24
- "atlassian": {
25
- "team": "People and Teams Collective",
26
- "releaseModel": "continuous",
27
- "productPushConsumption": [
28
- "jira"
29
- ],
30
- "website": {
31
- "name": "Profilecard"
32
- }
33
- },
34
- "af:exports": {
35
- "./client": "./src/client/index.ts",
36
- "./messages": "./src/messages.ts",
37
- "./i18n": "./src/i18n/index.ts",
38
- "./team": "./src/components/Team/index.ts",
39
- "./types": "./src/types.ts",
40
- "./user": "./src/components/User/index.ts",
41
- "./mocks": "./src/mocks/index.ts",
42
- ".": "./src/index.ts"
43
- },
44
- "scripts": {
45
- "lint": "(cd ../../.. && yarn eslint 'packages/people-and-teams/profilecard/**/*.{ts,tsx}')",
46
- "test": "(cd ../../.. && yarn test 'packages/people-and-teams/profilecard')",
47
- "test:watch": "(cd ../../.. && yarn test 'packages/people-and-teams/profilecard' --watch)",
48
- "test:coverage": "(cd ../../.. && yarn test 'packages/people-and-teams/profilecard/src' --coverage --collectCoverageFrom='[\"packages/people-and-teams/profilecard/src/**\", \"!packages/people-and-teams/profilecard/src/__tests__/**\", \"!packages/people-and-teams/profilecard/src/i18n/**\", \"!packages/people-and-teams/profilecard/src/mocks/**\"]')",
49
- "typecheck": "NODE_OPTIONS=--max-old-space-size=4096 tsc --noEmit --project ./tsconfig.json"
50
- },
51
- "config": {
52
- "access": "public"
53
- },
54
- "dependencies": {
55
- "@atlaskit/analytics-next": "^9.3.0",
56
- "@atlaskit/avatar": "^21.9.0",
57
- "@atlaskit/avatar-group": "^9.6.0",
58
- "@atlaskit/button": "^17.17.0",
59
- "@atlaskit/dropdown-menu": "^12.10.0",
60
- "@atlaskit/empty-state": "^7.8.0",
61
- "@atlaskit/focus-ring": "^1.4.0",
62
- "@atlaskit/give-kudos": "^2.1.1",
63
- "@atlaskit/icon": "^22.3.0",
64
- "@atlaskit/lozenge": "^11.7.0",
65
- "@atlaskit/menu": "^2.3.0",
66
- "@atlaskit/platform-feature-flags": "^0.2.4",
67
- "@atlaskit/popup": "^1.17.0",
68
- "@atlaskit/spinner": "^16.1.0",
69
- "@atlaskit/theme": "^12.8.0",
70
- "@atlaskit/tokens": "^1.49.0",
71
- "@atlaskit/tooltip": "^18.4.0",
72
- "@babel/runtime": "^7.0.0",
73
- "@emotion/react": "^11.7.1",
74
- "@emotion/styled": "^11.0.0",
75
- "date-fns": "^2.17.0",
76
- "lodash": "^4.17.21",
77
- "lru_map": "^0.4.1",
78
- "react-intl-next": "npm:react-intl@^5.18.1"
79
- },
80
- "peerDependencies": {
81
- "react": "^16.8.0",
82
- "react-dom": "^16.8.0"
83
- },
84
- "devDependencies": {
85
- "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
86
- "@atlassian/ptc-test-utils": "^0.8.0",
87
- "@testing-library/react": "^12.1.5",
88
- "enzyme": "^3.10.0",
89
- "es6-promise": "^4.0.5",
90
- "fetch-mock": "^8.0.0",
91
- "loader-utils": "^1.1.0",
92
- "react-router-dom": "^4.2.2",
93
- "sinon": "^2.2.0",
94
- "typescript": "~5.4.2",
95
- "uid": "^0.0.2"
96
- },
97
- "keywords": [
98
- "ui",
99
- "profilecard"
100
- ],
101
- "techstack": {
102
- "@atlassian/frontend": {
103
- "import-structure": "atlassian-conventions"
104
- },
105
- "@repo/internal": {
106
- "design-tokens": [
107
- "color",
108
- "spacing"
109
- ]
110
- }
111
- },
112
- "platform-feature-flags": {
113
- "platform.profile-card-trigger-next": {
114
- "type": "boolean"
115
- }
116
- },
117
- "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
118
- }
2
+ "name": "@atlaskit/profilecard",
3
+ "version": "19.15.0",
4
+ "description": "A React component to display a card with user information.",
5
+ "publishConfig": {
6
+ "registry": "https://registry.npmjs.org/"
7
+ },
8
+ "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
9
+ "author": "Atlassian Pty Ltd",
10
+ "license": "Apache-2.0",
11
+ "main": "dist/cjs/index.js",
12
+ "module": "dist/esm/index.js",
13
+ "module:es2019": "dist/es2019/index.js",
14
+ "types": "dist/types/index.d.ts",
15
+ "typesVersions": {
16
+ ">=4.5 <4.9": {
17
+ "*": [
18
+ "dist/types-ts4.5/*",
19
+ "dist/types-ts4.5/index.d.ts"
20
+ ]
21
+ }
22
+ },
23
+ "atlaskit:src": "src/index.ts",
24
+ "atlassian": {
25
+ "team": "People and Teams Collective",
26
+ "releaseModel": "continuous",
27
+ "productPushConsumption": [
28
+ "jira"
29
+ ],
30
+ "website": {
31
+ "name": "Profilecard"
32
+ }
33
+ },
34
+ "af:exports": {
35
+ "./client": "./src/client/index.ts",
36
+ "./messages": "./src/messages.ts",
37
+ "./i18n": "./src/i18n/index.ts",
38
+ "./team": "./src/components/Team/index.ts",
39
+ "./types": "./src/types.ts",
40
+ "./user": "./src/components/User/index.ts",
41
+ "./mocks": "./src/mocks/index.ts",
42
+ ".": "./src/index.ts"
43
+ },
44
+ "scripts": {
45
+ "lint": "(cd ../../.. && yarn eslint 'packages/people-and-teams/profilecard/**/*.{ts,tsx}')",
46
+ "test": "(cd ../../.. && yarn test 'packages/people-and-teams/profilecard')",
47
+ "test:watch": "(cd ../../.. && yarn test 'packages/people-and-teams/profilecard' --watch)",
48
+ "test:coverage": "(cd ../../.. && yarn test 'packages/people-and-teams/profilecard/src' --coverage --collectCoverageFrom='[\"packages/people-and-teams/profilecard/src/**\", \"!packages/people-and-teams/profilecard/src/__tests__/**\", \"!packages/people-and-teams/profilecard/src/i18n/**\", \"!packages/people-and-teams/profilecard/src/mocks/**\"]')",
49
+ "typecheck": "NODE_OPTIONS=--max-old-space-size=4096 tsc --noEmit --project ./tsconfig.json"
50
+ },
51
+ "config": {
52
+ "access": "public"
53
+ },
54
+ "dependencies": {
55
+ "@atlaskit/analytics-next": "^9.3.0",
56
+ "@atlaskit/atlassian-context": "^0.0.0",
57
+ "@atlaskit/avatar": "^21.10.0",
58
+ "@atlaskit/avatar-group": "^9.7.0",
59
+ "@atlaskit/button": "^17.17.0",
60
+ "@atlaskit/dropdown-menu": "^12.12.0",
61
+ "@atlaskit/empty-state": "^7.8.0",
62
+ "@atlaskit/focus-ring": "^1.4.0",
63
+ "@atlaskit/give-kudos": "^2.1.1",
64
+ "@atlaskit/icon": "^22.3.0",
65
+ "@atlaskit/lozenge": "^11.7.0",
66
+ "@atlaskit/menu": "^2.4.0",
67
+ "@atlaskit/platform-feature-flags": "^0.2.4",
68
+ "@atlaskit/popup": "^1.18.0",
69
+ "@atlaskit/spinner": "^16.1.0",
70
+ "@atlaskit/theme": "^12.9.0",
71
+ "@atlaskit/tokens": "^1.50.0",
72
+ "@atlaskit/tooltip": "^18.4.0",
73
+ "@babel/runtime": "^7.0.0",
74
+ "@emotion/react": "^11.7.1",
75
+ "@emotion/styled": "^11.0.0",
76
+ "date-fns": "^2.17.0",
77
+ "lodash": "^4.17.21",
78
+ "lru_map": "^0.4.1",
79
+ "react-intl-next": "npm:react-intl@^5.18.1"
80
+ },
81
+ "peerDependencies": {
82
+ "react": "^16.8.0",
83
+ "react-dom": "^16.8.0"
84
+ },
85
+ "devDependencies": {
86
+ "@atlassian/ptc-test-utils": "^0.8.0",
87
+ "@testing-library/react": "^12.1.5",
88
+ "enzyme": "^3.10.0",
89
+ "es6-promise": "^4.0.5",
90
+ "fetch-mock": "^8.0.0",
91
+ "loader-utils": "^1.1.0",
92
+ "react-router-dom": "^4.2.2",
93
+ "sinon": "^2.2.0",
94
+ "typescript": "~5.4.2",
95
+ "uid": "^0.0.2"
96
+ },
97
+ "keywords": [
98
+ "ui",
99
+ "profilecard"
100
+ ],
101
+ "techstack": {
102
+ "@atlassian/frontend": {
103
+ "import-structure": "atlassian-conventions"
104
+ },
105
+ "@repo/internal": {
106
+ "design-tokens": [
107
+ "color",
108
+ "spacing"
109
+ ]
110
+ }
111
+ },
112
+ "platform-feature-flags": {
113
+ "platform.profile-card-trigger-next": {
114
+ "type": "boolean"
115
+ },
116
+ "platform.profilecard-disable-team-central-client-in-fedramp_ilnm7": {
117
+ "type": "boolean"
118
+ }
119
+ }
120
+ }