@atlaskit/smart-hooks 2.3.0 → 2.5.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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/smart-hooks
2
2
 
3
+ ## 2.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`942e8a15cbdf1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/942e8a15cbdf1) -
8
+ Update i18n NPM package versions for linking-platform,smart-experiences (Group 15)
9
+
10
+ ## 2.4.0
11
+
12
+ ### Minor Changes
13
+
14
+ - [`0a39ae0f69a25`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0a39ae0f69a25) -
15
+ Update i18n NPM package versions for linking-platform,smart-experiences (Group 15)
16
+
3
17
  ## 2.3.0
4
18
 
5
19
  ### 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.2.0"
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 _userPicker = require("@atlaskit/user-picker");
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: _userPicker.UserType,
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: _userPicker.TeamType,
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: _userPicker.GroupType,
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.2.0",
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.2.0"
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.0",
3
+ "version": "2.5.0",
4
4
  "license": "Apache-2.0",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -17,17 +17,17 @@
17
17
  "team": "Search Platform: Search Experience"
18
18
  },
19
19
  "dependencies": {
20
- "@atlaskit/afm-i18n-platform-smart-experiences-smart-hooks": "2.202.0",
20
+ "@atlaskit/afm-i18n-platform-smart-experiences-smart-hooks": "2.243.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.1.0",
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",
29
29
  "memoize-one": "^6.0.0",
30
- "uuid": "^3.1.0"
30
+ "uuid": "^11.1.1"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "react": "^18.2.0",
@@ -37,6 +37,7 @@
37
37
  "@atlaskit/textfield": "^10.2.0",
38
38
  "@atlassian/a11y-jest-testing": "^0.17.0",
39
39
  "@atlassian/ufo": "^0.10.0",
40
+ "@atlassian/workbench": "workspace:*",
40
41
  "@testing-library/react": "^16.3.0",
41
42
  "@welldone-software/why-did-you-render": "^6.2.0",
42
43
  "enzyme": "^3.10.0",
@@ -45,32 +46,5 @@
45
46
  "react-dom": "^18.2.0",
46
47
  "react-intl": "^7.0.0",
47
48
  "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
49
  }
76
50
  }