@atlaskit/smart-hooks 2.3.0 → 2.4.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 +7 -0
- package/dist/cjs/services/use-user-recommendations/analytics.js +1 -1
- package/dist/cjs/utils/transform-recommendations-to-options/index.js +4 -4
- package/dist/es2019/services/use-user-recommendations/analytics.js +1 -1
- package/dist/es2019/utils/transform-recommendations-to-options/index.js +1 -1
- package/dist/esm/services/use-user-recommendations/analytics.js +1 -1
- package/dist/esm/utils/transform-recommendations-to-options/index.js +1 -1
- package/dist/types/utils/transform-recommendations-to-options/index.d.ts +1 -1
- package/package.json +3 -30
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/smart-hooks
|
|
2
2
|
|
|
3
|
+
## 2.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`0a39ae0f69a25`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0a39ae0f69a25) -
|
|
8
|
+
Update i18n NPM package versions for linking-platform,smart-experiences (Group 15)
|
|
9
|
+
|
|
3
10
|
## 2.3.0
|
|
4
11
|
|
|
5
12
|
### Minor Changes
|
|
@@ -21,7 +21,7 @@ var createEvent = function createEvent(eventType, action, actionSubject) {
|
|
|
21
21
|
source: '@atlaskit/smart-hooks/use-user-recommendations',
|
|
22
22
|
attributes: _objectSpread({
|
|
23
23
|
packageName: "@atlaskit/smart-hooks",
|
|
24
|
-
packageVersion: "2.
|
|
24
|
+
packageVersion: "2.4.0"
|
|
25
25
|
}, attributes)
|
|
26
26
|
};
|
|
27
27
|
};
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _smartCommon = require("@atlaskit/smart-common");
|
|
8
|
-
var
|
|
8
|
+
var _types = require("@atlaskit/user-picker/types");
|
|
9
9
|
var _messages = require("../../messages");
|
|
10
10
|
var getLozenzeProperties = function getLozenzeProperties(entity, intl) {
|
|
11
11
|
var _entity$attributes, _entity$attributes2;
|
|
@@ -29,7 +29,7 @@ var transformRecommendation = function transformRecommendation(item, intl) {
|
|
|
29
29
|
var lozenge = getLozenzeProperties(user, intl);
|
|
30
30
|
return {
|
|
31
31
|
id: user.id,
|
|
32
|
-
type:
|
|
32
|
+
type: _types.UserType,
|
|
33
33
|
avatarUrl: user.avatarUrl,
|
|
34
34
|
name: user.name,
|
|
35
35
|
email: user.email,
|
|
@@ -40,7 +40,7 @@ var transformRecommendation = function transformRecommendation(item, intl) {
|
|
|
40
40
|
var team = item;
|
|
41
41
|
return {
|
|
42
42
|
id: team.id,
|
|
43
|
-
type:
|
|
43
|
+
type: _types.TeamType,
|
|
44
44
|
description: team.description || '',
|
|
45
45
|
name: team.displayName || '',
|
|
46
46
|
memberCount: team.memberCount,
|
|
@@ -53,7 +53,7 @@ var transformRecommendation = function transformRecommendation(item, intl) {
|
|
|
53
53
|
var _lozenge = getLozenzeProperties(group, intl);
|
|
54
54
|
return {
|
|
55
55
|
id: group.id,
|
|
56
|
-
type:
|
|
56
|
+
type: _types.GroupType,
|
|
57
57
|
name: group.name || '',
|
|
58
58
|
lozenge: _lozenge
|
|
59
59
|
};
|
|
@@ -11,7 +11,7 @@ const createEvent = (eventType, action, actionSubject, attributes = {}) => ({
|
|
|
11
11
|
source: '@atlaskit/smart-hooks/use-user-recommendations',
|
|
12
12
|
attributes: {
|
|
13
13
|
packageName: "@atlaskit/smart-hooks",
|
|
14
|
-
packageVersion: "2.
|
|
14
|
+
packageVersion: "2.4.0",
|
|
15
15
|
...attributes
|
|
16
16
|
}
|
|
17
17
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EntityType } from '@atlaskit/smart-common';
|
|
2
|
-
import { GroupType, TeamType, UserType } from '@atlaskit/user-picker';
|
|
2
|
+
import { GroupType, TeamType, UserType } from '@atlaskit/user-picker/types';
|
|
3
3
|
import { messages } from '../../messages';
|
|
4
4
|
const getLozenzeProperties = (entity, intl) => {
|
|
5
5
|
var _entity$attributes, _entity$attributes2;
|
|
@@ -16,7 +16,7 @@ var createEvent = function createEvent(eventType, action, actionSubject) {
|
|
|
16
16
|
source: '@atlaskit/smart-hooks/use-user-recommendations',
|
|
17
17
|
attributes: _objectSpread({
|
|
18
18
|
packageName: "@atlaskit/smart-hooks",
|
|
19
|
-
packageVersion: "2.
|
|
19
|
+
packageVersion: "2.4.0"
|
|
20
20
|
}, attributes)
|
|
21
21
|
};
|
|
22
22
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EntityType } from '@atlaskit/smart-common';
|
|
2
|
-
import { GroupType, TeamType, UserType } from '@atlaskit/user-picker';
|
|
2
|
+
import { GroupType, TeamType, UserType } from '@atlaskit/user-picker/types';
|
|
3
3
|
import { messages } from '../../messages';
|
|
4
4
|
var getLozenzeProperties = function getLozenzeProperties(entity, intl) {
|
|
5
5
|
var _entity$attributes, _entity$attributes2;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type IntlShape } from 'react-intl';
|
|
2
2
|
import { type UserSearchItem } from '@atlaskit/smart-common';
|
|
3
|
-
import { type OptionData } from '@atlaskit/user-picker';
|
|
3
|
+
import { type OptionData } from '@atlaskit/user-picker/types';
|
|
4
4
|
export default _default;
|
|
5
5
|
declare function _default(recommendations: UserSearchItem[], intl: IntlShape): OptionData[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-hooks",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
"team": "Search Platform: Search Experience"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@atlaskit/afm-i18n-platform-smart-experiences-smart-hooks": "2.
|
|
20
|
+
"@atlaskit/afm-i18n-platform-smart-experiences-smart-hooks": "2.238.0",
|
|
21
21
|
"@atlaskit/analytics-gas-types": "^6.2.0",
|
|
22
22
|
"@atlaskit/analytics-listeners": "^11.3.0",
|
|
23
23
|
"@atlaskit/analytics-next": "^12.5.0",
|
|
24
24
|
"@atlaskit/smart-common": "^3.1.0",
|
|
25
|
-
"@atlaskit/ufo": "^1.
|
|
25
|
+
"@atlaskit/ufo": "^1.2.0",
|
|
26
26
|
"@atlaskit/user-picker": "^13.12.0",
|
|
27
27
|
"@babel/runtime": "^7.0.0",
|
|
28
28
|
"lodash": "^4.17.21",
|
|
@@ -45,32 +45,5 @@
|
|
|
45
45
|
"react-dom": "^18.2.0",
|
|
46
46
|
"react-intl": "^7.0.0",
|
|
47
47
|
"wait-for-expect": "^1.2.0"
|
|
48
|
-
},
|
|
49
|
-
"techstack": {
|
|
50
|
-
"@atlassian/frontend": {
|
|
51
|
-
"import-structure": [
|
|
52
|
-
"atlassian-conventions"
|
|
53
|
-
],
|
|
54
|
-
"circular-dependencies": [
|
|
55
|
-
"file-and-folder-level"
|
|
56
|
-
]
|
|
57
|
-
},
|
|
58
|
-
"@repo/internal": {
|
|
59
|
-
"analytics": [
|
|
60
|
-
"analytics-next"
|
|
61
|
-
],
|
|
62
|
-
"design-tokens": [
|
|
63
|
-
"color"
|
|
64
|
-
],
|
|
65
|
-
"theming": [
|
|
66
|
-
"react-context"
|
|
67
|
-
],
|
|
68
|
-
"ui-components": [
|
|
69
|
-
"lite-mode"
|
|
70
|
-
],
|
|
71
|
-
"deprecation": [
|
|
72
|
-
"no-deprecated-imports"
|
|
73
|
-
]
|
|
74
|
-
}
|
|
75
48
|
}
|
|
76
49
|
}
|