@atlaskit/smart-hooks 0.2.6 → 0.2.8

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.
Files changed (43) hide show
  1. package/CHANGELOG.md +26 -14
  2. package/dist/cjs/i18n/cs.js +2 -3
  3. package/dist/cjs/i18n/da.js +2 -3
  4. package/dist/cjs/i18n/de.js +2 -3
  5. package/dist/cjs/i18n/en.js +2 -3
  6. package/dist/cjs/i18n/en_GB.js +2 -3
  7. package/dist/cjs/i18n/en_ZZ.js +2 -3
  8. package/dist/cjs/i18n/es.js +2 -3
  9. package/dist/cjs/i18n/et.js +1 -2
  10. package/dist/cjs/i18n/fi.js +2 -3
  11. package/dist/cjs/i18n/fr.js +2 -3
  12. package/dist/cjs/i18n/hu.js +2 -3
  13. package/dist/cjs/i18n/is.js +2 -3
  14. package/dist/cjs/i18n/it.js +2 -3
  15. package/dist/cjs/i18n/ja.js +2 -3
  16. package/dist/cjs/i18n/ko.js +2 -3
  17. package/dist/cjs/i18n/languages.js +2 -3
  18. package/dist/cjs/i18n/nb.js +2 -3
  19. package/dist/cjs/i18n/nl.js +2 -3
  20. package/dist/cjs/i18n/pl.js +2 -3
  21. package/dist/cjs/i18n/pt_BR.js +2 -3
  22. package/dist/cjs/i18n/pt_PT.js +1 -2
  23. package/dist/cjs/i18n/ro.js +2 -3
  24. package/dist/cjs/i18n/ru.js +2 -3
  25. package/dist/cjs/i18n/sk.js +1 -2
  26. package/dist/cjs/i18n/sv.js +2 -3
  27. package/dist/cjs/i18n/th.js +2 -3
  28. package/dist/cjs/i18n/tr.js +2 -3
  29. package/dist/cjs/i18n/uk.js +2 -3
  30. package/dist/cjs/i18n/vi.js +2 -3
  31. package/dist/cjs/i18n/zh.js +2 -3
  32. package/dist/cjs/i18n/zh_TW.js +2 -3
  33. package/dist/cjs/messages.js +2 -3
  34. package/dist/cjs/services/use-function-usage-tracking/index.js +1 -2
  35. package/dist/cjs/services/use-user-recommendations/analytics.js +7 -10
  36. package/dist/cjs/services/use-user-recommendations/index.js +5 -7
  37. package/dist/cjs/services/use-user-recommendations/ufoExperiences.js +2 -3
  38. package/dist/cjs/utils/transform-recommendations-to-options/index.js +2 -3
  39. package/dist/es2019/services/use-user-recommendations/analytics.js +1 -1
  40. package/dist/esm/services/use-user-recommendations/analytics.js +3 -3
  41. package/dist/esm/services/use-user-recommendations/index.js +3 -3
  42. package/package.json +7 -8
  43. package/tmp/api-report-tmp.d.ts +0 -54
package/CHANGELOG.md CHANGED
@@ -1,47 +1,59 @@
1
1
  # @atlaskit/smart-hooks
2
2
 
3
+ ## 0.2.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116) [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) - Upgrade Typescript from `4.9.5` to `5.4.2`
8
+
9
+ ## 0.2.7
10
+
11
+ ### Patch Changes
12
+
13
+ - [#40652](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40652) [`097ce4dd212`](https://bitbucket.org/atlassian/atlassian-frontend/commits/097ce4dd212) - Changes for remove cyclic dependency in AFE(@atlaskit/smart-hooks,@atlassian/notification-common, @atlassian/notification-test-utils)
14
+
3
15
  ## 0.2.6
4
16
 
5
17
  ### Patch Changes
6
18
 
7
- - [`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete version.json
19
+ - [#38162](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38162) [`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete version.json
8
20
  - Updated dependencies
9
21
 
10
22
  ## 0.2.5
11
23
 
12
24
  ### Patch Changes
13
25
 
14
- - [`f01deb5e6ab`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f01deb5e6ab) - Use injected env vars instead of version.json
26
+ - [#37925](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37925) [`f01deb5e6ab`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f01deb5e6ab) - Use injected env vars instead of version.json
15
27
 
16
28
  ## 0.2.4
17
29
 
18
30
  ### Patch Changes
19
31
 
20
- - [`78f0d4b929c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/78f0d4b929c) - [ux] Color of guest lozenges in the smartUserPicker changed from purple ('new') to grey ('default')
32
+ - [#37101](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37101) [`78f0d4b929c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/78f0d4b929c) - [ux] Color of guest lozenges in the smartUserPicker changed from purple ('new') to grey ('default')
21
33
 
22
34
  ## 0.2.3
23
35
 
24
36
  ### Patch Changes
25
37
 
26
- - [`61cb5313358`](https://bitbucket.org/atlassian/atlassian-frontend/commits/61cb5313358) - Removing unused dependencies and dev dependencies
38
+ - [#34443](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34443) [`61cb5313358`](https://bitbucket.org/atlassian/atlassian-frontend/commits/61cb5313358) - Removing unused dependencies and dev dependencies
27
39
 
28
40
  ## 0.2.2
29
41
 
30
42
  ### Patch Changes
31
43
 
32
- - [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
44
+ - [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793) [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
33
45
 
34
46
  ## 0.2.1
35
47
 
36
48
  ### Patch Changes
37
49
 
38
- - [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
50
+ - [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649) [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
39
51
 
40
52
  ## 0.2.0
41
53
 
42
54
  ### Minor Changes
43
55
 
44
- - [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
56
+ - [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258) [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
45
57
 
46
58
  ### Patch Changes
47
59
 
@@ -51,7 +63,7 @@
51
63
 
52
64
  ### Patch Changes
53
65
 
54
- - [`2e01c9c74b5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2e01c9c74b5) - DUMMY remove before merging to master; dupe adf-schema via adf-utils
66
+ - [#32424](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32424) [`2e01c9c74b5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2e01c9c74b5) - DUMMY remove before merging to master; dupe adf-schema via adf-utils
55
67
 
56
68
  ## 0.1.8
57
69
 
@@ -69,19 +81,19 @@
69
81
 
70
82
  ### Patch Changes
71
83
 
72
- - [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
84
+ - [#24874](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24874) [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
73
85
 
74
86
  ## 0.1.5
75
87
 
76
88
  ### Patch Changes
77
89
 
78
- - [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
90
+ - [#24492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24492) [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
79
91
 
80
92
  ## 0.1.4
81
93
 
82
94
  ### Patch Changes
83
95
 
84
- - [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
96
+ - [#20650](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20650) [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
85
97
 
86
98
  ## 0.1.3
87
99
 
@@ -99,14 +111,14 @@
99
111
 
100
112
  ### Patch Changes
101
113
 
102
- - [`c7cd471ace6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c7cd471ace6) - [ux] add abortcontrollers, replace ufo experience identifier, memoization for search query
114
+ - [#18804](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/18804) [`c7cd471ace6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c7cd471ace6) - [ux] add abortcontrollers, replace ufo experience identifier, memoization for search query
103
115
  - Updated dependencies
104
116
 
105
117
  ## 0.1.0
106
118
 
107
119
  ### Minor Changes
108
120
 
109
- - [`6a3107dd76a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6a3107dd76a) - Adding analytics + UFO
121
+ - [#18662](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/18662) [`6a3107dd76a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6a3107dd76a) - Adding analytics + UFO
110
122
 
111
123
  ## 0.0.3
112
124
 
@@ -118,5 +130,5 @@
118
130
 
119
131
  ### Patch Changes
120
132
 
121
- - [`69325c9dd40`](https://bitbucket.org/atlassian/atlassian-frontend/commits/69325c9dd40) - Initial changeset for smart-hooks (hooks library for smart capabilities) and smart-common (shared code between smart packages)
133
+ - [#18056](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/18056) [`69325c9dd40`](https://bitbucket.org/atlassian/atlassian-frontend/commits/69325c9dd40) - Initial changeset for smart-hooks (hooks library for smart capabilities) and smart-common (shared code between smart packages)
122
134
  - Updated dependencies
@@ -12,7 +12,7 @@ exports.default = void 0;
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
14
  //Czech
15
- var _default = {
15
+ var _default = exports.default = {
16
16
  'smart-experiences.smart-hooks.external.sourced.from': 'Nalezen v:',
17
17
  'smart-experiences.smart-hooks.github.provider': 'GitHub',
18
18
  'smart-experiences.smart-hooks.google.provider': 'Google',
@@ -22,5 +22,4 @@ var _default = {
22
22
  'smart-experiences.smart-hooks.member.lozenge.text': 'ČLEN',
23
23
  'smart-experiences.smart-hooks.microsoft.provider': 'Microsoft',
24
24
  'smart-experiences.smart-hooks.slack.provider': 'Slack'
25
- };
26
- exports.default = _default;
25
+ };
@@ -12,7 +12,7 @@ exports.default = void 0;
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
14
  //Danish (Denmark)
15
- var _default = {
15
+ var _default = exports.default = {
16
16
  'smart-experiences.smart-hooks.external.sourced.from': 'Fundet i:',
17
17
  'smart-experiences.smart-hooks.github.provider': 'GitHub',
18
18
  'smart-experiences.smart-hooks.google.provider': 'Google',
@@ -22,5 +22,4 @@ var _default = {
22
22
  'smart-experiences.smart-hooks.member.lozenge.text': 'Medlem',
23
23
  'smart-experiences.smart-hooks.microsoft.provider': 'Microsoft',
24
24
  'smart-experiences.smart-hooks.slack.provider': 'Slack'
25
- };
26
- exports.default = _default;
25
+ };
@@ -12,7 +12,7 @@ exports.default = void 0;
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
14
  //German (Germany)
15
- var _default = {
15
+ var _default = exports.default = {
16
16
  'smart-experiences.smart-hooks.external.sourced.from': 'Gefunden in:',
17
17
  'smart-experiences.smart-hooks.github.provider': 'GitHub',
18
18
  'smart-experiences.smart-hooks.google.provider': 'Google',
@@ -22,5 +22,4 @@ var _default = {
22
22
  'smart-experiences.smart-hooks.member.lozenge.text': 'Mitglied',
23
23
  'smart-experiences.smart-hooks.microsoft.provider': 'Microsoft',
24
24
  'smart-experiences.smart-hooks.slack.provider': 'Slack'
25
- };
26
- exports.default = _default;
25
+ };
@@ -12,7 +12,7 @@ exports.default = void 0;
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
14
  //
15
- var _default = {
15
+ var _default = exports.default = {
16
16
  'smart-experiences.smart-hooks.external.sourced.from': 'Found in:',
17
17
  'smart-experiences.smart-hooks.github.provider': 'GitHub',
18
18
  'smart-experiences.smart-hooks.google.provider': 'Google',
@@ -22,5 +22,4 @@ var _default = {
22
22
  'smart-experiences.smart-hooks.member.lozenge.text': 'MEMBER',
23
23
  'smart-experiences.smart-hooks.microsoft.provider': 'Microsoft',
24
24
  'smart-experiences.smart-hooks.slack.provider': 'Slack'
25
- };
26
- exports.default = _default;
25
+ };
@@ -12,7 +12,7 @@ exports.default = void 0;
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
14
  //English (United Kingdom)
15
- var _default = {
15
+ var _default = exports.default = {
16
16
  'smart-experiences.smart-hooks.external.sourced.from': 'Found in:',
17
17
  'smart-experiences.smart-hooks.github.provider': 'GitHub',
18
18
  'smart-experiences.smart-hooks.google.provider': 'Google',
@@ -22,5 +22,4 @@ var _default = {
22
22
  'smart-experiences.smart-hooks.member.lozenge.text': 'MEMBER',
23
23
  'smart-experiences.smart-hooks.microsoft.provider': 'Microsoft',
24
24
  'smart-experiences.smart-hooks.slack.provider': 'Slack'
25
- };
26
- exports.default = _default;
25
+ };
@@ -12,7 +12,7 @@ exports.default = void 0;
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
14
  //
15
- var _default = {
15
+ var _default = exports.default = {
16
16
  'smart-experiences.smart-hooks.external.sourced.from': '⁣⁢Found in:⁠⁡⁠⁠؜‌‍⁡؜‌⁠⁣⁤',
17
17
  'smart-experiences.smart-hooks.github.provider': '⁣⁢GitHub⁠‍‍⁡⁡‌‌‌‌؜⁣⁤',
18
18
  'smart-experiences.smart-hooks.google.provider': '⁣⁢Google⁡‌⁠⁠‌؜‌‍؜⁣⁤',
@@ -22,5 +22,4 @@ var _default = {
22
22
  'smart-experiences.smart-hooks.member.lozenge.text': '⁣⁢MEMBER‌⁠‌‍‌⁡⁠⁠⁡⁠⁣⁤',
23
23
  'smart-experiences.smart-hooks.microsoft.provider': '⁣⁢Microsoft؜؜⁠‌‍‌‌⁡‍‍‍⁣⁤',
24
24
  'smart-experiences.smart-hooks.slack.provider': '⁣⁢Slack؜‌⁡⁠؜‌⁣⁤'
25
- };
26
- exports.default = _default;
25
+ };
@@ -12,7 +12,7 @@ exports.default = void 0;
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
14
  //Spanish (International)
15
- var _default = {
15
+ var _default = exports.default = {
16
16
  'smart-experiences.smart-hooks.external.sourced.from': 'Encontrado en:',
17
17
  'smart-experiences.smart-hooks.github.provider': 'GitHub',
18
18
  'smart-experiences.smart-hooks.google.provider': 'Google',
@@ -22,5 +22,4 @@ var _default = {
22
22
  'smart-experiences.smart-hooks.member.lozenge.text': 'MIEMBRO',
23
23
  'smart-experiences.smart-hooks.microsoft.provider': 'Microsoft',
24
24
  'smart-experiences.smart-hooks.slack.provider': 'Slack'
25
- };
26
- exports.default = _default;
25
+ };
@@ -11,5 +11,4 @@ exports.default = void 0;
11
11
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
12
12
  */
13
13
  // Estonian
14
- var _default = {};
15
- exports.default = _default;
14
+ var _default = exports.default = {};
@@ -12,7 +12,7 @@ exports.default = void 0;
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
14
  //Finnish
15
- var _default = {
15
+ var _default = exports.default = {
16
16
  'smart-experiences.smart-hooks.external.sourced.from': 'Löydetty kohteesta:',
17
17
  'smart-experiences.smart-hooks.github.provider': 'GitHub',
18
18
  'smart-experiences.smart-hooks.google.provider': 'Google',
@@ -22,5 +22,4 @@ var _default = {
22
22
  'smart-experiences.smart-hooks.member.lozenge.text': 'Jäsen',
23
23
  'smart-experiences.smart-hooks.microsoft.provider': 'Microsoft',
24
24
  'smart-experiences.smart-hooks.slack.provider': 'Slack'
25
- };
26
- exports.default = _default;
25
+ };
@@ -12,7 +12,7 @@ exports.default = void 0;
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
14
  //French (France)
15
- var _default = {
15
+ var _default = exports.default = {
16
16
  'smart-experiences.smart-hooks.external.sourced.from': 'Trouvé dans :',
17
17
  'smart-experiences.smart-hooks.github.provider': 'GitHub',
18
18
  'smart-experiences.smart-hooks.google.provider': 'Google',
@@ -22,5 +22,4 @@ var _default = {
22
22
  'smart-experiences.smart-hooks.member.lozenge.text': 'MEMBRE',
23
23
  'smart-experiences.smart-hooks.microsoft.provider': 'Microsoft',
24
24
  'smart-experiences.smart-hooks.slack.provider': 'Slack'
25
- };
26
- exports.default = _default;
25
+ };
@@ -12,7 +12,7 @@ exports.default = void 0;
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
14
  //Hungarian
15
- var _default = {
15
+ var _default = exports.default = {
16
16
  'smart-experiences.smart-hooks.external.sourced.from': 'Itt található:',
17
17
  'smart-experiences.smart-hooks.github.provider': 'GitHub',
18
18
  'smart-experiences.smart-hooks.google.provider': 'Google',
@@ -22,5 +22,4 @@ var _default = {
22
22
  'smart-experiences.smart-hooks.member.lozenge.text': 'TAG',
23
23
  'smart-experiences.smart-hooks.microsoft.provider': 'Microsoft',
24
24
  'smart-experiences.smart-hooks.slack.provider': 'Slack'
25
- };
26
- exports.default = _default;
25
+ };
@@ -5,10 +5,9 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  // Icelandic
8
- var _default = {
8
+ var _default = exports.default = {
9
9
  'smart-experiences.smart-hooks.placeholder': 'Finna einstakling...',
10
10
  'smart-experiences.smart-hooks.placeholder.add-more': 'Bæta við meira fólki...',
11
11
  'smart-experiences.smart-hooks.multi.remove-item': 'Fjarlægja',
12
12
  'smart-experiences.smart-hooks.single.clear': 'Hreinsa'
13
- };
14
- exports.default = _default;
13
+ };
@@ -12,7 +12,7 @@ exports.default = void 0;
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
14
  //Italian (Italy)
15
- var _default = {
15
+ var _default = exports.default = {
16
16
  'smart-experiences.smart-hooks.external.sourced.from': 'Trovato in:',
17
17
  'smart-experiences.smart-hooks.github.provider': 'GitHub',
18
18
  'smart-experiences.smart-hooks.google.provider': 'Google',
@@ -22,5 +22,4 @@ var _default = {
22
22
  'smart-experiences.smart-hooks.member.lozenge.text': 'MEMBRO',
23
23
  'smart-experiences.smart-hooks.microsoft.provider': 'Microsoft',
24
24
  'smart-experiences.smart-hooks.slack.provider': 'Slack'
25
- };
26
- exports.default = _default;
25
+ };
@@ -12,7 +12,7 @@ exports.default = void 0;
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
14
  //Japanese
15
- var _default = {
15
+ var _default = exports.default = {
16
16
  'smart-experiences.smart-hooks.external.sourced.from': 'ユーザーのソース元: ',
17
17
  'smart-experiences.smart-hooks.github.provider': 'GitHub',
18
18
  'smart-experiences.smart-hooks.google.provider': 'Google',
@@ -22,5 +22,4 @@ var _default = {
22
22
  'smart-experiences.smart-hooks.member.lozenge.text': 'メンバー',
23
23
  'smart-experiences.smart-hooks.microsoft.provider': 'Microsoft',
24
24
  'smart-experiences.smart-hooks.slack.provider': 'Slack'
25
- };
26
- exports.default = _default;
25
+ };
@@ -12,7 +12,7 @@ exports.default = void 0;
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
14
  //Korean
15
- var _default = {
15
+ var _default = exports.default = {
16
16
  'smart-experiences.smart-hooks.external.sourced.from': '찾은 위치:',
17
17
  'smart-experiences.smart-hooks.github.provider': 'GitHub',
18
18
  'smart-experiences.smart-hooks.google.provider': 'Google',
@@ -22,5 +22,4 @@ var _default = {
22
22
  'smart-experiences.smart-hooks.member.lozenge.text': '구성원',
23
23
  'smart-experiences.smart-hooks.microsoft.provider': 'Microsoft',
24
24
  'smart-experiences.smart-hooks.slack.provider': 'Slack'
25
- };
26
- exports.default = _default;
25
+ };
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _default = {
7
+ var _default = exports.default = {
8
8
  zh: 'Chinese',
9
9
  cs: 'Czech',
10
10
  da: 'Danish',
@@ -29,5 +29,4 @@ var _default = {
29
29
  sk: 'Slovak',
30
30
  es: 'Spanish',
31
31
  sv: 'Swedish'
32
- };
33
- exports.default = _default;
32
+ };
@@ -12,7 +12,7 @@ exports.default = void 0;
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
14
  //Norwegian (Bokmål)
15
- var _default = {
15
+ var _default = exports.default = {
16
16
  'smart-experiences.smart-hooks.external.sourced.from': 'Funnet på:',
17
17
  'smart-experiences.smart-hooks.github.provider': 'GitHub',
18
18
  'smart-experiences.smart-hooks.google.provider': 'Google',
@@ -22,5 +22,4 @@ var _default = {
22
22
  'smart-experiences.smart-hooks.member.lozenge.text': 'Medlem',
23
23
  'smart-experiences.smart-hooks.microsoft.provider': 'Microsoft',
24
24
  'smart-experiences.smart-hooks.slack.provider': 'Slack'
25
- };
26
- exports.default = _default;
25
+ };
@@ -12,7 +12,7 @@ exports.default = void 0;
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
14
  //Dutch (Netherlands)
15
- var _default = {
15
+ var _default = exports.default = {
16
16
  'smart-experiences.smart-hooks.external.sourced.from': 'Gevonden in:',
17
17
  'smart-experiences.smart-hooks.github.provider': 'GitHub',
18
18
  'smart-experiences.smart-hooks.google.provider': 'Google',
@@ -22,5 +22,4 @@ var _default = {
22
22
  'smart-experiences.smart-hooks.member.lozenge.text': 'LID',
23
23
  'smart-experiences.smart-hooks.microsoft.provider': 'Microsoft',
24
24
  'smart-experiences.smart-hooks.slack.provider': 'Slack'
25
- };
26
- exports.default = _default;
25
+ };
@@ -12,7 +12,7 @@ exports.default = void 0;
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
14
  //Polish (Poland)
15
- var _default = {
15
+ var _default = exports.default = {
16
16
  'smart-experiences.smart-hooks.external.sourced.from': 'Znaleziono w:',
17
17
  'smart-experiences.smart-hooks.github.provider': 'GitHub',
18
18
  'smart-experiences.smart-hooks.google.provider': 'Google',
@@ -22,5 +22,4 @@ var _default = {
22
22
  'smart-experiences.smart-hooks.member.lozenge.text': 'CZŁONEK',
23
23
  'smart-experiences.smart-hooks.microsoft.provider': 'Microsoft',
24
24
  'smart-experiences.smart-hooks.slack.provider': 'Slack'
25
- };
26
- exports.default = _default;
25
+ };
@@ -12,7 +12,7 @@ exports.default = void 0;
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
14
  //Portuguese (Brazil)
15
- var _default = {
15
+ var _default = exports.default = {
16
16
  'smart-experiences.smart-hooks.external.sourced.from': 'Encontrado em:',
17
17
  'smart-experiences.smart-hooks.github.provider': 'GitHub',
18
18
  'smart-experiences.smart-hooks.google.provider': 'Google',
@@ -22,5 +22,4 @@ var _default = {
22
22
  'smart-experiences.smart-hooks.member.lozenge.text': 'Membro',
23
23
  'smart-experiences.smart-hooks.microsoft.provider': 'Microsoft',
24
24
  'smart-experiences.smart-hooks.slack.provider': 'Slack'
25
- };
26
- exports.default = _default;
25
+ };
@@ -11,5 +11,4 @@ exports.default = void 0;
11
11
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
12
12
  */
13
13
  // Portuguese (Portugal)
14
- var _default = {};
15
- exports.default = _default;
14
+ var _default = exports.default = {};
@@ -5,10 +5,9 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  // Romanian
8
- var _default = {
8
+ var _default = exports.default = {
9
9
  'smart-experiences.smart-hooks.placeholder': 'Găsiți o persoană...',
10
10
  'smart-experiences.smart-hooks.placeholder.add-more': 'și alte persoane',
11
11
  'smart-experiences.smart-hooks.multi.remove-item': 'Eliminare',
12
12
  'smart-experiences.smart-hooks.single.clear': 'Ștergere'
13
- };
14
- exports.default = _default;
13
+ };
@@ -12,7 +12,7 @@ exports.default = void 0;
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
14
  //Russian
15
- var _default = {
15
+ var _default = exports.default = {
16
16
  'smart-experiences.smart-hooks.external.sourced.from': 'Найден в:',
17
17
  'smart-experiences.smart-hooks.github.provider': 'GitHub',
18
18
  'smart-experiences.smart-hooks.google.provider': 'Google',
@@ -22,5 +22,4 @@ var _default = {
22
22
  'smart-experiences.smart-hooks.member.lozenge.text': 'УЧАСТНИК',
23
23
  'smart-experiences.smart-hooks.microsoft.provider': 'Microsoft',
24
24
  'smart-experiences.smart-hooks.slack.provider': 'Slack'
25
- };
26
- exports.default = _default;
25
+ };
@@ -11,5 +11,4 @@ exports.default = void 0;
11
11
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
12
12
  */
13
13
  // Slovak
14
- var _default = {};
15
- exports.default = _default;
14
+ var _default = exports.default = {};
@@ -12,7 +12,7 @@ exports.default = void 0;
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
14
  //Swedish
15
- var _default = {
15
+ var _default = exports.default = {
16
16
  'smart-experiences.smart-hooks.external.sourced.from': 'Hittades i:',
17
17
  'smart-experiences.smart-hooks.github.provider': 'GitHub',
18
18
  'smart-experiences.smart-hooks.google.provider': 'Google',
@@ -22,5 +22,4 @@ var _default = {
22
22
  'smart-experiences.smart-hooks.member.lozenge.text': 'medlem',
23
23
  'smart-experiences.smart-hooks.microsoft.provider': 'Microsoft',
24
24
  'smart-experiences.smart-hooks.slack.provider': 'Slack'
25
- };
26
- exports.default = _default;
25
+ };
@@ -12,7 +12,7 @@ exports.default = void 0;
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
14
  //Thai (Thailand)
15
- var _default = {
15
+ var _default = exports.default = {
16
16
  'smart-experiences.smart-hooks.external.sourced.from': 'พบใน:',
17
17
  'smart-experiences.smart-hooks.github.provider': 'GitHub',
18
18
  'smart-experiences.smart-hooks.google.provider': 'Google',
@@ -22,5 +22,4 @@ var _default = {
22
22
  'smart-experiences.smart-hooks.member.lozenge.text': 'สมาชิก',
23
23
  'smart-experiences.smart-hooks.microsoft.provider': 'Microsoft',
24
24
  'smart-experiences.smart-hooks.slack.provider': 'Slack'
25
- };
26
- exports.default = _default;
25
+ };
@@ -12,7 +12,7 @@ exports.default = void 0;
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
14
  //Turkish (Turkey)
15
- var _default = {
15
+ var _default = exports.default = {
16
16
  'smart-experiences.smart-hooks.external.sourced.from': 'Bulunduğu yer:',
17
17
  'smart-experiences.smart-hooks.github.provider': 'GitHub',
18
18
  'smart-experiences.smart-hooks.google.provider': 'Google',
@@ -22,5 +22,4 @@ var _default = {
22
22
  'smart-experiences.smart-hooks.member.lozenge.text': 'ÜYE',
23
23
  'smart-experiences.smart-hooks.microsoft.provider': 'Microsoft',
24
24
  'smart-experiences.smart-hooks.slack.provider': 'Slack'
25
- };
26
- exports.default = _default;
25
+ };
@@ -12,7 +12,7 @@ exports.default = void 0;
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
14
  //Ukrainian (Ukraine)
15
- var _default = {
15
+ var _default = exports.default = {
16
16
  'smart-experiences.smart-hooks.external.sourced.from': 'Знайдено в:',
17
17
  'smart-experiences.smart-hooks.github.provider': 'GitHub',
18
18
  'smart-experiences.smart-hooks.google.provider': 'Google',
@@ -22,5 +22,4 @@ var _default = {
22
22
  'smart-experiences.smart-hooks.member.lozenge.text': 'Учасник',
23
23
  'smart-experiences.smart-hooks.microsoft.provider': 'Microsoft',
24
24
  'smart-experiences.smart-hooks.slack.provider': 'Slack'
25
- };
26
- exports.default = _default;
25
+ };
@@ -12,7 +12,7 @@ exports.default = void 0;
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
14
  //Vietnamese (Vietnam)
15
- var _default = {
15
+ var _default = exports.default = {
16
16
  'smart-experiences.smart-hooks.external.sourced.from': 'Tìm thấy trong:',
17
17
  'smart-experiences.smart-hooks.github.provider': 'GitHub',
18
18
  'smart-experiences.smart-hooks.google.provider': 'Google',
@@ -22,5 +22,4 @@ var _default = {
22
22
  'smart-experiences.smart-hooks.member.lozenge.text': 'Thành viên',
23
23
  'smart-experiences.smart-hooks.microsoft.provider': 'Microsoft',
24
24
  'smart-experiences.smart-hooks.slack.provider': 'Slack'
25
- };
26
- exports.default = _default;
25
+ };
@@ -12,7 +12,7 @@ exports.default = void 0;
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
14
  //Chinese (Simplified)
15
- var _default = {
15
+ var _default = exports.default = {
16
16
  'smart-experiences.smart-hooks.external.sourced.from': '发现位置:',
17
17
  'smart-experiences.smart-hooks.github.provider': 'GitHub',
18
18
  'smart-experiences.smart-hooks.google.provider': 'Google',
@@ -22,5 +22,4 @@ var _default = {
22
22
  'smart-experiences.smart-hooks.member.lozenge.text': '成员',
23
23
  'smart-experiences.smart-hooks.microsoft.provider': 'Microsoft',
24
24
  'smart-experiences.smart-hooks.slack.provider': 'Slack'
25
- };
26
- exports.default = _default;
25
+ };
@@ -12,7 +12,7 @@ exports.default = void 0;
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
14
  //Chinese (Traditional)
15
- var _default = {
15
+ var _default = exports.default = {
16
16
  'smart-experiences.smart-hooks.external.sourced.from': '尋找位置:',
17
17
  'smart-experiences.smart-hooks.github.provider': 'GitHub',
18
18
  'smart-experiences.smart-hooks.google.provider': 'Google',
@@ -22,5 +22,4 @@ var _default = {
22
22
  'smart-experiences.smart-hooks.member.lozenge.text': '成員',
23
23
  'smart-experiences.smart-hooks.microsoft.provider': 'Microsoft',
24
24
  'smart-experiences.smart-hooks.slack.provider': 'Slack'
25
- };
26
- exports.default = _default;
25
+ };
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.messages = void 0;
7
7
  var _reactIntlNext = require("react-intl-next");
8
- var messages = (0, _reactIntlNext.defineMessages)({
8
+ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
9
9
  externalUserSourcesHeading: {
10
10
  id: 'smart-experiences.smart-hooks.external.sourced.from',
11
11
  defaultMessage: 'Found in:',
@@ -51,5 +51,4 @@ var messages = (0, _reactIntlNext.defineMessages)({
51
51
  defaultMessage: 'Guest groups can only access certain spaces and have limited access to user info.',
52
52
  description: 'Tooltip text for lozenge showing that a group is for guests in Confluence'
53
53
  }
54
- });
55
- exports.messages = messages;
54
+ });
@@ -34,5 +34,4 @@ function useFunctionUsageTracking(trackedFunction) {
34
34
  trackingFunction: trackingFunction
35
35
  };
36
36
  }
37
- var _default = useFunctionUsageTracking;
38
- exports.default = _default;
37
+ var _default = exports.default = useFunctionUsageTracking;
@@ -9,8 +9,8 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
9
9
  var _analyticsGasTypes = require("@atlaskit/analytics-gas-types");
10
10
  var _analyticsListeners = require("@atlaskit/analytics-listeners");
11
11
  var _analyticsNext = require("@atlaskit/analytics-next");
12
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
13
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
12
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
13
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
14
14
  var createAndFireEventInElementsChannel = (0, _analyticsNext.createAndFireEvent)(_analyticsListeners.FabricChannel.elements);
15
15
  var createEvent = function createEvent(eventType, action, actionSubject) {
16
16
  var attributes = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
@@ -21,17 +21,16 @@ 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: "0.2.6"
24
+ packageVersion: "0.2.8"
25
25
  }, attributes)
26
26
  };
27
27
  };
28
- var findUserPosition = function findUserPosition(loadedUsers, userId) {
28
+ var findUserPosition = exports.findUserPosition = function findUserPosition(loadedUsers, userId) {
29
29
  return loadedUsers.findIndex(function (val) {
30
30
  return val.id === userId;
31
31
  });
32
32
  };
33
- exports.findUserPosition = findUserPosition;
34
- var createDefaultAttributes = function createDefaultAttributes(props, renderId, sessionId, query) {
33
+ var createDefaultAttributes = exports.createDefaultAttributes = function createDefaultAttributes(props, renderId, sessionId, query) {
35
34
  var fieldId = props.fieldId,
36
35
  objectId = props.objectId,
37
36
  containerId = props.containerId,
@@ -58,8 +57,6 @@ var createDefaultAttributes = function createDefaultAttributes(props, renderId,
58
57
  tenantId: tenantId
59
58
  };
60
59
  };
61
- exports.createDefaultAttributes = createDefaultAttributes;
62
- var fireUserSelectedEvent = function fireUserSelectedEvent(createAnalyticsEvent, payloadAttributes) {
60
+ var fireUserSelectedEvent = exports.fireUserSelectedEvent = function fireUserSelectedEvent(createAnalyticsEvent, payloadAttributes) {
63
61
  return createAndFireEventInElementsChannel(createEvent(_analyticsGasTypes.TRACK_EVENT_TYPE, 'selected', 'user', payloadAttributes))(createAnalyticsEvent);
64
- };
65
- exports.fireUserSelectedEvent = fireUserSelectedEvent;
62
+ };
@@ -18,8 +18,8 @@ var _smartCommon = require("@atlaskit/smart-common");
18
18
  var _useFunctionUsageTracking = _interopRequireDefault(require("../use-function-usage-tracking"));
19
19
  var _analytics = require("./analytics");
20
20
  var _ufoExperiences = require("./ufoExperiences");
21
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
22
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
21
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
22
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
23
23
  var MAX_NUMBER_RESULTS = 25;
24
24
  var DEFAULT_DEBOUNCE_TIME_MS = 150;
25
25
  var defaultProps = {
@@ -28,13 +28,12 @@ var defaultProps = {
28
28
  principalId: 'Context',
29
29
  includeUsers: true
30
30
  };
31
- var instrumentFailureOption = [{
31
+ var instrumentFailureOption = exports.instrumentFailureOption = [{
32
32
  id: 'not-used',
33
33
  name: 'User Picker is not instrumented correctly',
34
34
  entityType: _smartCommon.EntityType.USER,
35
35
  avatarUrl: ''
36
36
  }];
37
- exports.instrumentFailureOption = instrumentFailureOption;
38
37
  var useUserRecommendations = function useUserRecommendations(props) {
39
38
  var _defaultProps$props = _objectSpread(_objectSpread({}, defaultProps), props),
40
39
  baseUrl = _defaultProps$props.baseUrl,
@@ -101,7 +100,7 @@ var useUserRecommendations = function useUserRecommendations(props) {
101
100
  _ufoExperiences.UsersFetchedUfoExperience.getInstance(fieldId).start();
102
101
  _context.prev = 3;
103
102
  if (lastAbortController.current) {
104
- (_lastAbortController$ = lastAbortController.current) === null || _lastAbortController$ === void 0 ? void 0 : _lastAbortController$.abort();
103
+ (_lastAbortController$ = lastAbortController.current) === null || _lastAbortController$ === void 0 || _lastAbortController$.abort();
105
104
  }
106
105
  // in case there are still IE users, check AbortController before init,
107
106
  // IE has no timeout applied on fetch since AbortController isn't available
@@ -201,5 +200,4 @@ var useUserRecommendations = function useUserRecommendations(props) {
201
200
  error: error
202
201
  };
203
202
  };
204
- var _default = useUserRecommendations;
205
- exports.default = _default;
203
+ var _default = exports.default = useUserRecommendations;
@@ -6,11 +6,10 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.UsersFetchedUfoExperience = void 0;
7
7
  var _ufo = require("@atlaskit/ufo");
8
8
  var COMPONENT_NAME = 'smart-hooks.use-user-recommendations';
9
- var UsersFetchedUfoExperience = new _ufo.ConcurrentExperience('users-fetched', {
9
+ var UsersFetchedUfoExperience = exports.UsersFetchedUfoExperience = new _ufo.ConcurrentExperience('users-fetched', {
10
10
  platform: {
11
11
  component: COMPONENT_NAME
12
12
  },
13
13
  type: _ufo.ExperienceTypes.Load,
14
14
  performanceType: _ufo.ExperiencePerformanceTypes.InlineResult
15
- });
16
- exports.UsersFetchedUfoExperience = UsersFetchedUfoExperience;
15
+ });
@@ -60,7 +60,7 @@ var transformRecommendation = function transformRecommendation(item, intl) {
60
60
  }
61
61
  return;
62
62
  };
63
- var _default = function _default(recommendations, intl) {
63
+ var _default = exports.default = function _default(recommendations, intl) {
64
64
  return (recommendations || []).map(function (item) {
65
65
  return transformRecommendation(item, intl);
66
66
  }).filter(function (option) {
@@ -68,5 +68,4 @@ var _default = function _default(recommendations, intl) {
68
68
  }).map(function (option) {
69
69
  return option;
70
70
  });
71
- };
72
- exports.default = _default;
71
+ };
@@ -9,7 +9,7 @@ const createEvent = (eventType, action, actionSubject, attributes = {}) => ({
9
9
  source: '@atlaskit/smart-hooks/use-user-recommendations',
10
10
  attributes: {
11
11
  packageName: "@atlaskit/smart-hooks",
12
- packageVersion: "0.2.6",
12
+ packageVersion: "0.2.8",
13
13
  ...attributes
14
14
  }
15
15
  });
@@ -1,6 +1,6 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
4
  import { TRACK_EVENT_TYPE } from '@atlaskit/analytics-gas-types';
5
5
  import { FabricChannel } from '@atlaskit/analytics-listeners';
6
6
  import { createAndFireEvent } from '@atlaskit/analytics-next';
@@ -14,7 +14,7 @@ var createEvent = function createEvent(eventType, action, actionSubject) {
14
14
  source: '@atlaskit/smart-hooks/use-user-recommendations',
15
15
  attributes: _objectSpread({
16
16
  packageName: "@atlaskit/smart-hooks",
17
- packageVersion: "0.2.6"
17
+ packageVersion: "0.2.8"
18
18
  }, attributes)
19
19
  };
20
20
  };
@@ -2,8 +2,8 @@ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
3
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
4
  import _regeneratorRuntime from "@babel/runtime/regenerator";
5
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
6
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
5
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
6
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7
7
  import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
8
8
  import debounce from 'lodash/debounce';
9
9
  import memoizeOne from 'memoize-one';
@@ -93,7 +93,7 @@ var useUserRecommendations = function useUserRecommendations(props) {
93
93
  UsersFetchedUfoExperience.getInstance(fieldId).start();
94
94
  _context.prev = 3;
95
95
  if (lastAbortController.current) {
96
- (_lastAbortController$ = lastAbortController.current) === null || _lastAbortController$ === void 0 ? void 0 : _lastAbortController$.abort();
96
+ (_lastAbortController$ = lastAbortController.current) === null || _lastAbortController$ === void 0 || _lastAbortController$.abort();
97
97
  }
98
98
  // in case there are still IE users, check AbortController before init,
99
99
  // IE has no timeout applied on fetch since AbortController isn't available
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-hooks",
3
- "version": "0.2.6",
3
+ "version": "0.2.8",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/"
6
6
  },
7
- "repository": "https://bitbucket.org/atlassian/atlassian-frontend",
7
+ "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
8
8
  "author": "Atlassian Pty Ltd",
9
9
  "main": "dist/cjs/index.js",
10
10
  "module": "dist/esm/index.js",
@@ -27,11 +27,11 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@atlaskit/analytics-gas-types": "^5.1.0",
30
- "@atlaskit/analytics-listeners": "^8.7.0",
31
- "@atlaskit/analytics-next": "^9.1.0",
30
+ "@atlaskit/analytics-listeners": "^8.9.0",
31
+ "@atlaskit/analytics-next": "^9.2.0",
32
32
  "@atlaskit/smart-common": "^0.2.0",
33
33
  "@atlaskit/ufo": "^0.2.0",
34
- "@atlaskit/user-picker": "^10.6.0",
34
+ "@atlaskit/user-picker": "^10.19.0",
35
35
  "@babel/runtime": "^7.0.0",
36
36
  "lodash": "^4.17.21",
37
37
  "memoize-one": "^6.0.0",
@@ -42,7 +42,6 @@
42
42
  "react-intl-next": "npm:react-intl@^5.18.1"
43
43
  },
44
44
  "devDependencies": {
45
- "@atlaskit/smart-hooks": "*",
46
45
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
47
46
  "@storybook/addon-knobs": "^5.3.18",
48
47
  "@testing-library/react": "^12.1.5",
@@ -51,7 +50,7 @@
51
50
  "enzyme": "^3.10.0",
52
51
  "fetch-mock": "^8.0.0",
53
52
  "react-dom": "^16.8.0",
54
- "typescript": "~4.9.5",
53
+ "typescript": "~5.4.2",
55
54
  "wait-for-expect": "^1.2.0"
56
55
  },
57
56
  "techstack": {
@@ -85,4 +84,4 @@
85
84
  ".": "./src/index.ts"
86
85
  },
87
86
  "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
88
- }
87
+ }
@@ -1,54 +0,0 @@
1
- ## API Report File for "@atlaskit/smart-hooks"
2
-
3
- > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
-
5
- ```ts
6
-
7
- import { EntityType } from '@atlaskit/smart-common';
8
- import { IntlShape } from 'react-intl-next';
9
- import { MemoizedFn } from 'memoize-one';
10
- import { OptionData } from '@atlaskit/user-picker';
11
- import { UserSearchItem } from '@atlaskit/smart-common';
12
- import type { UserSearchProductAttributes } from '@atlaskit/smart-common';
13
- import type { UserSearchQuery } from '@atlaskit/smart-common';
14
-
15
- // @public (undocumented)
16
- export const transformRecommendationsToOptions: (recommendations: UserSearchItem[], intl: IntlShape) => OptionData[];
17
-
18
- // @public (undocumented)
19
- export const useUserRecommendations: (props: UseUserRecommendationsProps) => {
20
- recommendations: UserSearchItem[] | {
21
- id: string;
22
- name: string;
23
- entityType: EntityType;
24
- avatarUrl: string;
25
- }[];
26
- triggerSearchFactory: MemoizedFn<() => (query?: string) => void>;
27
- selectUserFactory: MemoizedFn<() => (userId: string) => void>;
28
- isLoading: boolean;
29
- error: any;
30
- };
31
-
32
- // @public (undocumented)
33
- type UseUserRecommendationsProps = {
34
- baseUrl?: string;
35
- childObjectId?: string;
36
- containerId?: string;
37
- debounceTimeMs?: number;
38
- fieldId: string;
39
- includeUsers?: boolean;
40
- includeGroups?: boolean;
41
- includeTeams?: boolean;
42
- maxNumberOfResults?: number;
43
- objectId?: string;
44
- preload?: boolean;
45
- principalId?: string;
46
- productAttributes?: UserSearchProductAttributes;
47
- productKey: string;
48
- cpusSearchQuery?: UserSearchQuery;
49
- tenantId: string;
50
- };
51
-
52
- // (No @packageDocumentation comment for this package)
53
-
54
- ```