@atlaskit/profilecard 16.2.2 → 16.2.3
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 +6 -0
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/util/analytics.js +1 -1
- package/dist/esm/version.json +1 -1
- package/docs/1-profilecard-trigger.tsx +2 -1
- package/docs/2-team-profilecard.tsx +2 -1
- package/docs/3-profile-client.tsx +9 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -31,7 +31,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
31
31
|
actionSubjectId: actionSubjectId,
|
|
32
32
|
attributes: _objectSpread(_objectSpread({
|
|
33
33
|
packageName: "@atlaskit/profilecard",
|
|
34
|
-
packageVersion: "16.2.
|
|
34
|
+
packageVersion: "16.2.3"
|
|
35
35
|
}, attributes), {}, {
|
|
36
36
|
firedAt: (0, _performance.getPageTime)()
|
|
37
37
|
})
|
package/dist/cjs/version.json
CHANGED
|
@@ -11,7 +11,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
|
|
|
11
11
|
actionSubjectId,
|
|
12
12
|
attributes: {
|
|
13
13
|
packageName: "@atlaskit/profilecard",
|
|
14
|
-
packageVersion: "16.2.
|
|
14
|
+
packageVersion: "16.2.3",
|
|
15
15
|
...attributes,
|
|
16
16
|
firedAt: getPageTime()
|
|
17
17
|
}
|
package/dist/es2019/version.json
CHANGED
|
@@ -19,7 +19,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
19
19
|
actionSubjectId: actionSubjectId,
|
|
20
20
|
attributes: _objectSpread(_objectSpread({
|
|
21
21
|
packageName: "@atlaskit/profilecard",
|
|
22
|
-
packageVersion: "16.2.
|
|
22
|
+
packageVersion: "16.2.3"
|
|
23
23
|
}, attributes), {}, {
|
|
24
24
|
firedAt: getPageTime()
|
|
25
25
|
})
|
package/dist/esm/version.json
CHANGED
|
@@ -18,7 +18,8 @@ export default md`
|
|
|
18
18
|
### Using the ProfileCardTrigger
|
|
19
19
|
|
|
20
20
|
${code`
|
|
21
|
-
import
|
|
21
|
+
import ProfileClient from '@atlaskit/profilecard/client';
|
|
22
|
+
import ProfileCardTrigger from '@atlaskit/profilecard/user';
|
|
22
23
|
|
|
23
24
|
const profileClient = new ProfileClient({
|
|
24
25
|
url: 'https://directory-graphql-service/endpoint' // GraphQL service endpoint
|
|
@@ -23,7 +23,8 @@ export default md`
|
|
|
23
23
|
### Using the ProfileCardTrigger
|
|
24
24
|
|
|
25
25
|
${code`
|
|
26
|
-
import
|
|
26
|
+
import ProfileCardTrigger from '@atlaskit/profilecard/user';
|
|
27
|
+
import ProfileClient from '@atlaskit/profilecard/client';
|
|
27
28
|
|
|
28
29
|
const profileClient = new ProfileClient({
|
|
29
30
|
url: 'https://directory-graphql-service/endpoint' // GraphQL service endpoint
|
|
@@ -27,13 +27,14 @@ export default md`
|
|
|
27
27
|
### Instantiating a basic \`ProfileClient\`
|
|
28
28
|
|
|
29
29
|
${code`
|
|
30
|
-
import
|
|
30
|
+
import ProfileCardTrigger from '@atlaskit/profilecard/user';
|
|
31
|
+
import ProfileClient from '@atlaskit/profilecard/client';
|
|
31
32
|
|
|
32
33
|
const profileClient = new ProfileClient({
|
|
33
34
|
url: 'https://directory-graphql-service/endpoint' // GraphQL service endpoint
|
|
34
35
|
});
|
|
35
36
|
|
|
36
|
-
<
|
|
37
|
+
<ProfileCardTrigger
|
|
37
38
|
cloudId="SOME-CLOUD-ID"
|
|
38
39
|
userId="SOME-USER-ID"
|
|
39
40
|
resourceClient={profileClient}
|
|
@@ -44,13 +45,15 @@ const profileClient = new ProfileClient({
|
|
|
44
45
|
callback: () => {}
|
|
45
46
|
}
|
|
46
47
|
]}
|
|
47
|
-
|
|
48
|
+
>
|
|
49
|
+
<Avatar ... />
|
|
50
|
+
</ProfileCardTrigger>
|
|
48
51
|
`}
|
|
49
52
|
|
|
50
53
|
### Customising the LRU cache of the \`ProfileClient\`
|
|
51
54
|
|
|
52
55
|
${code`
|
|
53
|
-
import
|
|
56
|
+
import ProfileClient from '@atlaskit/profilecard/client';
|
|
54
57
|
|
|
55
58
|
const profileClient = new ProfileClient({
|
|
56
59
|
url: 'https://directory-graphql-service/endpoint', // GraphQL service endpoint
|
|
@@ -62,7 +65,8 @@ const profileClient = new ProfileClient({
|
|
|
62
65
|
### Customising / Extending the \`ProfileClient\`
|
|
63
66
|
|
|
64
67
|
${code`
|
|
65
|
-
import { ProfileClient,
|
|
68
|
+
import { ProfileClient, TeamProfileClient, UserProfileClient } from '@atlaskit/profilecard/client';
|
|
69
|
+
import { Team } from '@atlaskit/profilecard/types';
|
|
66
70
|
|
|
67
71
|
const getUserDetailsSpecialWay = (url, cloudId, userId) => {
|
|
68
72
|
const fetchUrl = \`https://someservice.com/fetchuser?userId=\${userId}\`;
|