@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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/profilecard
2
2
 
3
+ ## 16.2.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`4d4d5d66cb8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4d4d5d66cb8) - Use entrypoints to import profilecard components
8
+
3
9
  ## 16.2.2
4
10
 
5
11
  ### Patch Changes
@@ -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.2"
34
+ packageVersion: "16.2.3"
35
35
  }, attributes), {}, {
36
36
  firedAt: (0, _performance.getPageTime)()
37
37
  })
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "16.2.2"
3
+ "version": "16.2.3"
4
4
  }
@@ -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.2",
14
+ packageVersion: "16.2.3",
15
15
  ...attributes,
16
16
  firedAt: getPageTime()
17
17
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "16.2.2"
3
+ "version": "16.2.3"
4
4
  }
@@ -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.2"
22
+ packageVersion: "16.2.3"
23
23
  }, attributes), {}, {
24
24
  firedAt: getPageTime()
25
25
  })
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "16.2.2"
3
+ "version": "16.2.3"
4
4
  }
@@ -18,7 +18,8 @@ export default md`
18
18
  ### Using the ProfileCardTrigger
19
19
 
20
20
  ${code`
21
- import { ProfileClient, ProfileCardTrigger } from '@atlaskit/profilecard';
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 { ProfileClient, TeamProfileCardTrigger } from '@atlaskit/profilecard';
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 ProfileCardResourced, { ProfileClient } from '@atlaskit/profilecard';
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
- <ProfileCardResourced
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 { ProfileClient } from '@atlaskit/profilecard';
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, Team, TeamProfileClient, UserProfileClient } from '@atlaskit/profilecard';
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}\`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "16.2.2",
3
+ "version": "16.2.3",
4
4
  "description": "A React component to display a card with user information.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"