@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.
- package/CHANGELOG.md +1141 -1124
- package/afm-cc/tsconfig.json +3 -0
- package/compass.yml +0 -2
- package/dist/cjs/client/ProfileCardClient.js +7 -0
- package/dist/cjs/client/getTeamFromAGG.js +1 -1
- package/dist/cjs/components/Team/TeamProfileCardTrigger.js +2 -6
- package/dist/cjs/components/User/ProfileCardDetails.js +1 -1
- package/dist/cjs/components/User/ProfileCardTrigger.js +2 -6
- package/dist/cjs/styled/Card.js +42 -42
- package/dist/cjs/styled/Error.js +9 -5
- package/dist/cjs/styled/ReportingLines.js +8 -5
- package/dist/cjs/styled/TeamCard.js +21 -16
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/es2019/client/ProfileCardClient.js +7 -0
- package/dist/es2019/client/getTeamFromAGG.js +1 -1
- package/dist/es2019/components/Team/TeamProfileCardTrigger.js +2 -6
- package/dist/es2019/components/User/ProfileCardDetails.js +1 -1
- package/dist/es2019/components/User/ProfileCardTrigger.js +2 -6
- package/dist/es2019/styled/Card.js +207 -208
- package/dist/es2019/styled/Error.js +9 -5
- package/dist/es2019/styled/ReportingLines.js +8 -5
- package/dist/es2019/styled/TeamCard.js +27 -22
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/esm/client/ProfileCardClient.js +7 -0
- package/dist/esm/client/getTeamFromAGG.js +1 -1
- package/dist/esm/components/Team/TeamProfileCardTrigger.js +2 -6
- package/dist/esm/components/User/ProfileCardDetails.js +1 -1
- package/dist/esm/components/User/ProfileCardTrigger.js +2 -6
- package/dist/esm/styled/Card.js +42 -42
- package/dist/esm/styled/Error.js +9 -5
- package/dist/esm/styled/ReportingLines.js +8 -5
- package/dist/esm/styled/TeamCard.js +21 -16
- package/dist/esm/util/analytics.js +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/types.d.ts +83 -89
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/dist/types-ts4.5/types.d.ts +83 -89
- package/docs/0-intro.tsx +13 -18
- package/docs/1-profilecard-trigger.tsx +13 -19
- package/docs/2-team-profilecard.tsx +26 -32
- package/package.json +119 -117
- 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
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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
|
-
|
|
55
|
-
|
|
56
|
-
|
|
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
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
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
|
-
|
|
73
|
-
|
|
74
|
-
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
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
|
+
}
|