@atlaskit/smart-hooks 0.1.7 → 0.1.9

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 (124) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/i18n/cs.js +12 -12
  3. package/dist/cjs/i18n/da.js +12 -12
  4. package/dist/cjs/i18n/de.js +12 -12
  5. package/dist/cjs/i18n/en.js +17 -5
  6. package/dist/cjs/i18n/en_GB.js +17 -5
  7. package/dist/cjs/i18n/en_ZZ.js +11 -12
  8. package/dist/cjs/i18n/es.js +12 -12
  9. package/dist/cjs/i18n/et.js +0 -1
  10. package/dist/cjs/i18n/fi.js +12 -12
  11. package/dist/cjs/i18n/fr.js +12 -12
  12. package/dist/cjs/i18n/hu.js +12 -12
  13. package/dist/cjs/i18n/index.js +0 -31
  14. package/dist/cjs/i18n/it.js +12 -12
  15. package/dist/cjs/i18n/ja.js +12 -12
  16. package/dist/cjs/i18n/ko.js +12 -12
  17. package/dist/cjs/i18n/nb.js +12 -12
  18. package/dist/cjs/i18n/nl.js +12 -12
  19. package/dist/cjs/i18n/pl.js +12 -12
  20. package/dist/cjs/i18n/pt_BR.js +12 -12
  21. package/dist/cjs/i18n/pt_PT.js +0 -1
  22. package/dist/cjs/i18n/ru.js +12 -12
  23. package/dist/cjs/i18n/sk.js +0 -1
  24. package/dist/cjs/i18n/sv.js +12 -12
  25. package/dist/cjs/i18n/th.js +12 -12
  26. package/dist/cjs/i18n/tr.js +12 -12
  27. package/dist/cjs/i18n/uk.js +12 -12
  28. package/dist/cjs/i18n/vi.js +12 -12
  29. package/dist/cjs/i18n/zh.js +12 -12
  30. package/dist/cjs/i18n/zh_TW.js +12 -12
  31. package/dist/cjs/index.js +0 -3
  32. package/dist/cjs/messages.js +0 -2
  33. package/dist/cjs/services/use-function-usage-tracking/index.js +8 -13
  34. package/dist/cjs/services/use-user-recommendations/analytics.js +9 -25
  35. package/dist/cjs/services/use-user-recommendations/index.js +46 -91
  36. package/dist/cjs/services/use-user-recommendations/ufoExperiences.js +0 -2
  37. package/dist/cjs/utils/transform-recommendations-to-options/index.js +0 -16
  38. package/dist/cjs/version.json +1 -1
  39. package/dist/es2019/i18n/cs.js +12 -11
  40. package/dist/es2019/i18n/da.js +12 -11
  41. package/dist/es2019/i18n/de.js +12 -11
  42. package/dist/es2019/i18n/en.js +17 -5
  43. package/dist/es2019/i18n/en_GB.js +17 -5
  44. package/dist/es2019/i18n/en_ZZ.js +11 -11
  45. package/dist/es2019/i18n/es.js +12 -11
  46. package/dist/es2019/i18n/fi.js +12 -11
  47. package/dist/es2019/i18n/fr.js +12 -11
  48. package/dist/es2019/i18n/hu.js +12 -11
  49. package/dist/es2019/i18n/it.js +12 -11
  50. package/dist/es2019/i18n/ja.js +12 -11
  51. package/dist/es2019/i18n/ko.js +12 -11
  52. package/dist/es2019/i18n/nb.js +12 -11
  53. package/dist/es2019/i18n/nl.js +12 -11
  54. package/dist/es2019/i18n/pl.js +12 -11
  55. package/dist/es2019/i18n/pt_BR.js +12 -11
  56. package/dist/es2019/i18n/ru.js +12 -11
  57. package/dist/es2019/i18n/sv.js +12 -11
  58. package/dist/es2019/i18n/th.js +12 -11
  59. package/dist/es2019/i18n/tr.js +12 -11
  60. package/dist/es2019/i18n/uk.js +12 -11
  61. package/dist/es2019/i18n/vi.js +12 -11
  62. package/dist/es2019/i18n/zh.js +12 -11
  63. package/dist/es2019/i18n/zh_TW.js +12 -11
  64. package/dist/es2019/services/use-function-usage-tracking/index.js +6 -6
  65. package/dist/es2019/services/use-user-recommendations/analytics.js +0 -2
  66. package/dist/es2019/services/use-user-recommendations/index.js +16 -18
  67. package/dist/es2019/utils/transform-recommendations-to-options/index.js +0 -10
  68. package/dist/es2019/version.json +1 -1
  69. package/dist/esm/i18n/cs.js +12 -11
  70. package/dist/esm/i18n/da.js +12 -11
  71. package/dist/esm/i18n/de.js +12 -11
  72. package/dist/esm/i18n/en.js +17 -5
  73. package/dist/esm/i18n/en_GB.js +17 -5
  74. package/dist/esm/i18n/en_ZZ.js +11 -11
  75. package/dist/esm/i18n/es.js +12 -11
  76. package/dist/esm/i18n/fi.js +12 -11
  77. package/dist/esm/i18n/fr.js +12 -11
  78. package/dist/esm/i18n/hu.js +12 -11
  79. package/dist/esm/i18n/it.js +12 -11
  80. package/dist/esm/i18n/ja.js +12 -11
  81. package/dist/esm/i18n/ko.js +12 -11
  82. package/dist/esm/i18n/nb.js +12 -11
  83. package/dist/esm/i18n/nl.js +12 -11
  84. package/dist/esm/i18n/pl.js +12 -11
  85. package/dist/esm/i18n/pt_BR.js +12 -11
  86. package/dist/esm/i18n/ru.js +12 -11
  87. package/dist/esm/i18n/sv.js +12 -11
  88. package/dist/esm/i18n/th.js +12 -11
  89. package/dist/esm/i18n/tr.js +12 -11
  90. package/dist/esm/i18n/uk.js +12 -11
  91. package/dist/esm/i18n/vi.js +12 -11
  92. package/dist/esm/i18n/zh.js +12 -11
  93. package/dist/esm/i18n/zh_TW.js +12 -11
  94. package/dist/esm/services/use-function-usage-tracking/index.js +8 -9
  95. package/dist/esm/services/use-user-recommendations/analytics.js +9 -14
  96. package/dist/esm/services/use-user-recommendations/index.js +46 -71
  97. package/dist/esm/utils/transform-recommendations-to-options/index.js +0 -12
  98. package/dist/esm/version.json +1 -1
  99. package/dist/types/i18n/cs.d.ts +10 -10
  100. package/dist/types/i18n/da.d.ts +10 -10
  101. package/dist/types/i18n/de.d.ts +10 -10
  102. package/dist/types/i18n/en.d.ts +15 -4
  103. package/dist/types/i18n/en_GB.d.ts +15 -4
  104. package/dist/types/i18n/en_ZZ.d.ts +1 -1
  105. package/dist/types/i18n/es.d.ts +10 -10
  106. package/dist/types/i18n/fi.d.ts +10 -10
  107. package/dist/types/i18n/fr.d.ts +10 -10
  108. package/dist/types/i18n/hu.d.ts +10 -10
  109. package/dist/types/i18n/it.d.ts +10 -10
  110. package/dist/types/i18n/ja.d.ts +10 -10
  111. package/dist/types/i18n/ko.d.ts +10 -10
  112. package/dist/types/i18n/nb.d.ts +10 -10
  113. package/dist/types/i18n/nl.d.ts +10 -10
  114. package/dist/types/i18n/pl.d.ts +10 -10
  115. package/dist/types/i18n/pt_BR.d.ts +10 -10
  116. package/dist/types/i18n/ru.d.ts +10 -10
  117. package/dist/types/i18n/sv.d.ts +10 -10
  118. package/dist/types/i18n/th.d.ts +10 -10
  119. package/dist/types/i18n/tr.d.ts +10 -10
  120. package/dist/types/i18n/uk.d.ts +10 -10
  121. package/dist/types/i18n/vi.d.ts +10 -10
  122. package/dist/types/i18n/zh.d.ts +10 -10
  123. package/dist/types/i18n/zh_TW.d.ts +10 -10
  124. package/package.json +10 -8
@@ -4,23 +4,23 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
7
+ /* prettier-ignore */
8
8
  /**
9
9
  * NOTE:
10
10
  *
11
- * This file is automatically generated by i18n-tools.
11
+ * This file is automatically generated by Traduki 2.0.
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
- // Dutch
14
+ //Dutch (Netherlands)
15
15
  var _default = {
16
- 'smart-experiences.smart-hooks.external.sourced.from': 'Gevonden in:',
17
- 'smart-experiences.smart-hooks.github.provider': 'GitHub',
18
- 'smart-experiences.smart-hooks.google.provider': 'Google',
19
- 'smart-experiences.smart-hooks.guest.lozenge.text': 'GAST',
20
- 'smart-experiences.smart-hooks.guest.lozenge.tooltip.group': 'Gastgroepen hebben alleen toegang tot bepaalde spaces en hebben beperkte toegang tot gebruikersinformatie.',
21
- 'smart-experiences.smart-hooks.guest.lozenge.tooltip.user': 'Gasten hebben alleen toegang tot bepaalde spaces en hebben beperkte toegang tot gebruikersinformatie.',
22
- 'smart-experiences.smart-hooks.member.lozenge.text': 'LID',
23
- 'smart-experiences.smart-hooks.microsoft.provider': 'Microsoft',
24
- 'smart-experiences.smart-hooks.slack.provider': 'Slack'
16
+ "smart-experiences.smart-hooks.external.sourced.from": "Gevonden in:",
17
+ "smart-experiences.smart-hooks.github.provider": "GitHub",
18
+ "smart-experiences.smart-hooks.google.provider": "Google",
19
+ "smart-experiences.smart-hooks.guest.lozenge.text": "GAST",
20
+ "smart-experiences.smart-hooks.guest.lozenge.tooltip.group": "Gastgroepen hebben alleen toegang tot bepaalde spaces en hebben beperkte toegang tot gebruikersinformatie.",
21
+ "smart-experiences.smart-hooks.guest.lozenge.tooltip.user": "Gasten hebben alleen toegang tot bepaalde spaces en hebben beperkte toegang tot gebruikersinformatie.",
22
+ "smart-experiences.smart-hooks.member.lozenge.text": "LID",
23
+ "smart-experiences.smart-hooks.microsoft.provider": "Microsoft",
24
+ "smart-experiences.smart-hooks.slack.provider": "Slack"
25
25
  };
26
26
  exports.default = _default;
@@ -4,23 +4,23 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
7
+ /* prettier-ignore */
8
8
  /**
9
9
  * NOTE:
10
10
  *
11
- * This file is automatically generated by i18n-tools.
11
+ * This file is automatically generated by Traduki 2.0.
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
- // Polish
14
+ //Polish (Poland)
15
15
  var _default = {
16
- 'smart-experiences.smart-hooks.external.sourced.from': 'Znaleziono w:',
17
- 'smart-experiences.smart-hooks.github.provider': 'GitHub',
18
- 'smart-experiences.smart-hooks.google.provider': 'Google',
19
- 'smart-experiences.smart-hooks.guest.lozenge.text': 'GOŚĆ',
20
- 'smart-experiences.smart-hooks.guest.lozenge.tooltip.group': 'Grupy gości mają dostęp wyłącznie do określonych przestrzeni i ograniczony dostęp do informacji o użytkownikach.',
21
- 'smart-experiences.smart-hooks.guest.lozenge.tooltip.user': 'Goście mają dostęp wyłącznie do określonych przestrzeni i ograniczony dostęp do informacji o użytkownikach.',
22
- 'smart-experiences.smart-hooks.member.lozenge.text': 'CZŁONEK',
23
- 'smart-experiences.smart-hooks.microsoft.provider': 'Microsoft',
24
- 'smart-experiences.smart-hooks.slack.provider': 'Slack'
16
+ "smart-experiences.smart-hooks.external.sourced.from": "Znaleziono w:",
17
+ "smart-experiences.smart-hooks.github.provider": "GitHub",
18
+ "smart-experiences.smart-hooks.google.provider": "Google",
19
+ "smart-experiences.smart-hooks.guest.lozenge.text": "GOŚĆ",
20
+ "smart-experiences.smart-hooks.guest.lozenge.tooltip.group": "Grupy gości mają dostęp wyłącznie do określonych przestrzeni i ograniczony dostęp do informacji o użytkownikach.",
21
+ "smart-experiences.smart-hooks.guest.lozenge.tooltip.user": "Goście mają dostęp wyłącznie do określonych przestrzeni i ograniczony dostęp do informacji o użytkownikach.",
22
+ "smart-experiences.smart-hooks.member.lozenge.text": "CZŁONEK",
23
+ "smart-experiences.smart-hooks.microsoft.provider": "Microsoft",
24
+ "smart-experiences.smart-hooks.slack.provider": "Slack"
25
25
  };
26
26
  exports.default = _default;
@@ -4,23 +4,23 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
7
+ /* prettier-ignore */
8
8
  /**
9
9
  * NOTE:
10
10
  *
11
- * This file is automatically generated by i18n-tools.
11
+ * This file is automatically generated by Traduki 2.0.
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
- // Portuguese (Brazil)
14
+ //Portuguese (Brazil)
15
15
  var _default = {
16
- 'smart-experiences.smart-hooks.external.sourced.from': 'Encontrado em:',
17
- 'smart-experiences.smart-hooks.github.provider': 'GitHub',
18
- 'smart-experiences.smart-hooks.google.provider': 'Google',
19
- 'smart-experiences.smart-hooks.guest.lozenge.text': 'CONVIDADO',
20
- 'smart-experiences.smart-hooks.guest.lozenge.tooltip.group': 'Os grupos de convidados só podem acessar determinados espaços e têm acesso limitado às informações do usuário.',
21
- 'smart-experiences.smart-hooks.guest.lozenge.tooltip.user': 'Os convidados só podem acessar determinados espaços e têm acesso limitado às informações do usuário.',
22
- 'smart-experiences.smart-hooks.member.lozenge.text': 'Membro',
23
- 'smart-experiences.smart-hooks.microsoft.provider': 'Microsoft',
24
- 'smart-experiences.smart-hooks.slack.provider': 'Slack'
16
+ "smart-experiences.smart-hooks.external.sourced.from": "Encontrado em:",
17
+ "smart-experiences.smart-hooks.github.provider": "GitHub",
18
+ "smart-experiences.smart-hooks.google.provider": "Google",
19
+ "smart-experiences.smart-hooks.guest.lozenge.text": "CONVIDADO",
20
+ "smart-experiences.smart-hooks.guest.lozenge.tooltip.group": "Os grupos de convidados só podem acessar determinados espaços e têm acesso limitado às informações do usuário.",
21
+ "smart-experiences.smart-hooks.guest.lozenge.tooltip.user": "Os convidados só podem acessar determinados espaços e têm acesso limitado às informações do usuário.",
22
+ "smart-experiences.smart-hooks.member.lozenge.text": "Membro",
23
+ "smart-experiences.smart-hooks.microsoft.provider": "Microsoft",
24
+ "smart-experiences.smart-hooks.slack.provider": "Slack"
25
25
  };
26
26
  exports.default = _default;
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  /**
9
8
  * NOTE:
10
9
  *
@@ -4,23 +4,23 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
7
+ /* prettier-ignore */
8
8
  /**
9
9
  * NOTE:
10
10
  *
11
- * This file is automatically generated by i18n-tools.
11
+ * This file is automatically generated by Traduki 2.0.
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
- // Russian
14
+ //Russian
15
15
  var _default = {
16
- 'smart-experiences.smart-hooks.external.sourced.from': 'Найден в:',
17
- 'smart-experiences.smart-hooks.github.provider': 'GitHub',
18
- 'smart-experiences.smart-hooks.google.provider': 'Google',
19
- 'smart-experiences.smart-hooks.guest.lozenge.text': 'ГОСТЬ',
20
- 'smart-experiences.smart-hooks.guest.lozenge.tooltip.group': 'Гостевые группы имеют доступ только к определенным разделам и ограниченный доступ к информации о пользователях.',
21
- 'smart-experiences.smart-hooks.guest.lozenge.tooltip.user': 'Гости имеют доступ только к определенным разделам и ограниченный доступ к информации о пользователях.',
22
- 'smart-experiences.smart-hooks.member.lozenge.text': 'УЧАСТНИК',
23
- 'smart-experiences.smart-hooks.microsoft.provider': 'Microsoft',
24
- 'smart-experiences.smart-hooks.slack.provider': 'Slack'
16
+ "smart-experiences.smart-hooks.external.sourced.from": "Найден в:",
17
+ "smart-experiences.smart-hooks.github.provider": "GitHub",
18
+ "smart-experiences.smart-hooks.google.provider": "Google",
19
+ "smart-experiences.smart-hooks.guest.lozenge.text": "ГОСТЬ",
20
+ "smart-experiences.smart-hooks.guest.lozenge.tooltip.group": "Гостевые группы имеют доступ только к определенным разделам и ограниченный доступ к информации о пользователях.",
21
+ "smart-experiences.smart-hooks.guest.lozenge.tooltip.user": "Гости имеют доступ только к определенным разделам и ограниченный доступ к информации о пользователях.",
22
+ "smart-experiences.smart-hooks.member.lozenge.text": "УЧАСТНИК",
23
+ "smart-experiences.smart-hooks.microsoft.provider": "Microsoft",
24
+ "smart-experiences.smart-hooks.slack.provider": "Slack"
25
25
  };
26
26
  exports.default = _default;
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  /**
9
8
  * NOTE:
10
9
  *
@@ -4,23 +4,23 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
7
+ /* prettier-ignore */
8
8
  /**
9
9
  * NOTE:
10
10
  *
11
- * This file is automatically generated by i18n-tools.
11
+ * This file is automatically generated by Traduki 2.0.
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
- // Swedish
14
+ //Swedish
15
15
  var _default = {
16
- 'smart-experiences.smart-hooks.external.sourced.from': 'Hittades i:',
17
- 'smart-experiences.smart-hooks.github.provider': 'GitHub',
18
- 'smart-experiences.smart-hooks.google.provider': 'Google',
19
- 'smart-experiences.smart-hooks.guest.lozenge.text': 'GÄST',
20
- 'smart-experiences.smart-hooks.guest.lozenge.tooltip.group': 'Gästgrupper kan endast komma åt vissa utrymmen och har begränsad åtkomst till användarinformation.',
21
- 'smart-experiences.smart-hooks.guest.lozenge.tooltip.user': 'Gästerna kan endast komma åt vissa utrymmen och har begränsad åtkomst till användarinformation.',
22
- 'smart-experiences.smart-hooks.member.lozenge.text': 'medlem',
23
- 'smart-experiences.smart-hooks.microsoft.provider': 'Microsoft',
24
- 'smart-experiences.smart-hooks.slack.provider': 'Slack'
16
+ "smart-experiences.smart-hooks.external.sourced.from": "Hittades i:",
17
+ "smart-experiences.smart-hooks.github.provider": "GitHub",
18
+ "smart-experiences.smart-hooks.google.provider": "Google",
19
+ "smart-experiences.smart-hooks.guest.lozenge.text": "GÄST",
20
+ "smart-experiences.smart-hooks.guest.lozenge.tooltip.group": "Gästgrupper kan endast komma åt vissa utrymmen och har begränsad åtkomst till användarinformation.",
21
+ "smart-experiences.smart-hooks.guest.lozenge.tooltip.user": "Gästerna kan endast komma åt vissa utrymmen och har begränsad åtkomst till användarinformation.",
22
+ "smart-experiences.smart-hooks.member.lozenge.text": "medlem",
23
+ "smart-experiences.smart-hooks.microsoft.provider": "Microsoft",
24
+ "smart-experiences.smart-hooks.slack.provider": "Slack"
25
25
  };
26
26
  exports.default = _default;
@@ -4,23 +4,23 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
7
+ /* prettier-ignore */
8
8
  /**
9
9
  * NOTE:
10
10
  *
11
- * This file is automatically generated by i18n-tools.
11
+ * This file is automatically generated by Traduki 2.0.
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
- // Thai
14
+ //Thai (Thailand)
15
15
  var _default = {
16
- 'smart-experiences.smart-hooks.external.sourced.from': 'พบใน:',
17
- 'smart-experiences.smart-hooks.github.provider': 'GitHub',
18
- 'smart-experiences.smart-hooks.google.provider': 'Google',
19
- 'smart-experiences.smart-hooks.guest.lozenge.text': 'ผู้ใช้ทั่วไป',
20
- 'smart-experiences.smart-hooks.guest.lozenge.tooltip.group': 'กลุ่มผู้ใช้ทั่วไปสามารถเข้าถึงได้เฉพาะบางพื้นที่เท่านั้นและมีสิทธิ์ในการเข้าถึงข้อมูลผู้ใช้ที่จำกัด',
21
- 'smart-experiences.smart-hooks.guest.lozenge.tooltip.user': 'ผู้ใช้ทั่วไปสามารถเข้าถึงได้เฉพาะบางพื้นที่เท่านั้นและมีสิทธิ์ในการเข้าถึงข้อมูลผู้ใช้ที่จำกัด',
22
- 'smart-experiences.smart-hooks.member.lozenge.text': 'สมาชิก',
23
- 'smart-experiences.smart-hooks.microsoft.provider': 'Microsoft',
24
- 'smart-experiences.smart-hooks.slack.provider': 'Slack'
16
+ "smart-experiences.smart-hooks.external.sourced.from": "พบใน:",
17
+ "smart-experiences.smart-hooks.github.provider": "GitHub",
18
+ "smart-experiences.smart-hooks.google.provider": "Google",
19
+ "smart-experiences.smart-hooks.guest.lozenge.text": "ผู้ใช้ทั่วไป",
20
+ "smart-experiences.smart-hooks.guest.lozenge.tooltip.group": "กลุ่มผู้ใช้ทั่วไปสามารถเข้าถึงได้เฉพาะบางพื้นที่เท่านั้นและมีสิทธิ์ในการเข้าถึงข้อมูลผู้ใช้ที่จำกัด",
21
+ "smart-experiences.smart-hooks.guest.lozenge.tooltip.user": "ผู้ใช้ทั่วไปสามารถเข้าถึงได้เฉพาะบางพื้นที่เท่านั้นและมีสิทธิ์ในการเข้าถึงข้อมูลผู้ใช้ที่จำกัด",
22
+ "smart-experiences.smart-hooks.member.lozenge.text": "สมาชิก",
23
+ "smart-experiences.smart-hooks.microsoft.provider": "Microsoft",
24
+ "smart-experiences.smart-hooks.slack.provider": "Slack"
25
25
  };
26
26
  exports.default = _default;
@@ -4,23 +4,23 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
7
+ /* prettier-ignore */
8
8
  /**
9
9
  * NOTE:
10
10
  *
11
- * This file is automatically generated by i18n-tools.
11
+ * This file is automatically generated by Traduki 2.0.
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
- // Turkish
14
+ //Turkish (Turkey)
15
15
  var _default = {
16
- 'smart-experiences.smart-hooks.external.sourced.from': 'Bulunduğu yer:',
17
- 'smart-experiences.smart-hooks.github.provider': 'GitHub',
18
- 'smart-experiences.smart-hooks.google.provider': 'Google',
19
- 'smart-experiences.smart-hooks.guest.lozenge.text': 'KONUK',
20
- 'smart-experiences.smart-hooks.guest.lozenge.tooltip.group': 'Konuk gruplar yalnızca bazı alanlara erişebilir ve kullanıcı bilgilerine erişimleri de kısıtlıdır.',
21
- 'smart-experiences.smart-hooks.guest.lozenge.tooltip.user': 'Konuklar yalnızca bazı alanlara erişebilir ve kullanıcı bilgilerine erişimleri de kısıtlıdır.',
22
- 'smart-experiences.smart-hooks.member.lozenge.text': 'ÜYE',
23
- 'smart-experiences.smart-hooks.microsoft.provider': 'Microsoft',
24
- 'smart-experiences.smart-hooks.slack.provider': 'Slack'
16
+ "smart-experiences.smart-hooks.external.sourced.from": "Bulunduğu yer:",
17
+ "smart-experiences.smart-hooks.github.provider": "GitHub",
18
+ "smart-experiences.smart-hooks.google.provider": "Google",
19
+ "smart-experiences.smart-hooks.guest.lozenge.text": "KONUK",
20
+ "smart-experiences.smart-hooks.guest.lozenge.tooltip.group": "Konuk gruplar yalnızca bazı alanlara erişebilir ve kullanıcı bilgilerine erişimleri de kısıtlıdır.",
21
+ "smart-experiences.smart-hooks.guest.lozenge.tooltip.user": "Konuklar yalnızca bazı alanlara erişebilir ve kullanıcı bilgilerine erişimleri de kısıtlıdır.",
22
+ "smart-experiences.smart-hooks.member.lozenge.text": "ÜYE",
23
+ "smart-experiences.smart-hooks.microsoft.provider": "Microsoft",
24
+ "smart-experiences.smart-hooks.slack.provider": "Slack"
25
25
  };
26
26
  exports.default = _default;
@@ -4,23 +4,23 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
7
+ /* prettier-ignore */
8
8
  /**
9
9
  * NOTE:
10
10
  *
11
- * This file is automatically generated by i18n-tools.
11
+ * This file is automatically generated by Traduki 2.0.
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
- // Ukrainian
14
+ //Ukrainian (Ukraine)
15
15
  var _default = {
16
- 'smart-experiences.smart-hooks.external.sourced.from': 'Знайдено в:',
17
- 'smart-experiences.smart-hooks.github.provider': 'GitHub',
18
- 'smart-experiences.smart-hooks.google.provider': 'Google',
19
- 'smart-experiences.smart-hooks.guest.lozenge.text': 'ГІСТЬ',
20
- 'smart-experiences.smart-hooks.guest.lozenge.tooltip.group': 'Групи гостей мають доступ лише до певних розділів, а також обмежений доступ до інформації про користувачів.',
21
- 'smart-experiences.smart-hooks.guest.lozenge.tooltip.user': 'Гості мають доступ лише до певних розділів, а також обмежений доступ до інформації про користувачів.',
22
- 'smart-experiences.smart-hooks.member.lozenge.text': 'Учасник',
23
- 'smart-experiences.smart-hooks.microsoft.provider': 'Microsoft',
24
- 'smart-experiences.smart-hooks.slack.provider': 'Slack'
16
+ "smart-experiences.smart-hooks.external.sourced.from": "Знайдено в:",
17
+ "smart-experiences.smart-hooks.github.provider": "GitHub",
18
+ "smart-experiences.smart-hooks.google.provider": "Google",
19
+ "smart-experiences.smart-hooks.guest.lozenge.text": "ГІСТЬ",
20
+ "smart-experiences.smart-hooks.guest.lozenge.tooltip.group": "Групи гостей мають доступ лише до певних розділів, а також обмежений доступ до інформації про користувачів.",
21
+ "smart-experiences.smart-hooks.guest.lozenge.tooltip.user": "Гості мають доступ лише до певних розділів, а також обмежений доступ до інформації про користувачів.",
22
+ "smart-experiences.smart-hooks.member.lozenge.text": "Учасник",
23
+ "smart-experiences.smart-hooks.microsoft.provider": "Microsoft",
24
+ "smart-experiences.smart-hooks.slack.provider": "Slack"
25
25
  };
26
26
  exports.default = _default;
@@ -4,23 +4,23 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
7
+ /* prettier-ignore */
8
8
  /**
9
9
  * NOTE:
10
10
  *
11
- * This file is automatically generated by i18n-tools.
11
+ * This file is automatically generated by Traduki 2.0.
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
- // Vietnamese
14
+ //Vietnamese (Vietnam)
15
15
  var _default = {
16
- 'smart-experiences.smart-hooks.external.sourced.from': 'Tìm thấy trong:',
17
- 'smart-experiences.smart-hooks.github.provider': 'GitHub',
18
- 'smart-experiences.smart-hooks.google.provider': 'Google',
19
- 'smart-experiences.smart-hooks.guest.lozenge.text': 'KHÁCH',
20
- 'smart-experiences.smart-hooks.guest.lozenge.tooltip.group': 'Các nhóm khách chỉ có thể vào một số không gian nhất định và có quyền truy cập hạn chế vào thông tin người dùng.',
21
- 'smart-experiences.smart-hooks.guest.lozenge.tooltip.user': 'Khách chỉ có thể vào một số không gian nhất định và có quyền truy cập hạn chế vào thông tin người dùng.',
22
- 'smart-experiences.smart-hooks.member.lozenge.text': 'Thành viên',
23
- 'smart-experiences.smart-hooks.microsoft.provider': 'Microsoft',
24
- 'smart-experiences.smart-hooks.slack.provider': 'Slack'
16
+ "smart-experiences.smart-hooks.external.sourced.from": "Tìm thấy trong:",
17
+ "smart-experiences.smart-hooks.github.provider": "GitHub",
18
+ "smart-experiences.smart-hooks.google.provider": "Google",
19
+ "smart-experiences.smart-hooks.guest.lozenge.text": "KHÁCH",
20
+ "smart-experiences.smart-hooks.guest.lozenge.tooltip.group": "Các nhóm khách chỉ có thể vào một số không gian nhất định và có quyền truy cập hạn chế vào thông tin người dùng.",
21
+ "smart-experiences.smart-hooks.guest.lozenge.tooltip.user": "Khách chỉ có thể vào một số không gian nhất định và có quyền truy cập hạn chế vào thông tin người dùng.",
22
+ "smart-experiences.smart-hooks.member.lozenge.text": "Thành viên",
23
+ "smart-experiences.smart-hooks.microsoft.provider": "Microsoft",
24
+ "smart-experiences.smart-hooks.slack.provider": "Slack"
25
25
  };
26
26
  exports.default = _default;
@@ -4,23 +4,23 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
7
+ /* prettier-ignore */
8
8
  /**
9
9
  * NOTE:
10
10
  *
11
- * This file is automatically generated by i18n-tools.
11
+ * This file is automatically generated by Traduki 2.0.
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
- // Chinese
14
+ //Chinese (Simplified)
15
15
  var _default = {
16
- 'smart-experiences.smart-hooks.external.sourced.from': '发现位置:',
17
- 'smart-experiences.smart-hooks.github.provider': 'GitHub',
18
- 'smart-experiences.smart-hooks.google.provider': 'Google',
19
- 'smart-experiences.smart-hooks.guest.lozenge.text': '访客',
20
- 'smart-experiences.smart-hooks.guest.lozenge.tooltip.group': '访客群组只能访问特定的空间,并对用户信息具有有限的访问权限。',
21
- 'smart-experiences.smart-hooks.guest.lozenge.tooltip.user': '访客只能访问特定的空间,并对用户信息具有有限的访问权限。',
22
- 'smart-experiences.smart-hooks.member.lozenge.text': '成员',
23
- 'smart-experiences.smart-hooks.microsoft.provider': 'Microsoft',
24
- 'smart-experiences.smart-hooks.slack.provider': 'Slack'
16
+ "smart-experiences.smart-hooks.external.sourced.from": "发现位置:",
17
+ "smart-experiences.smart-hooks.github.provider": "GitHub",
18
+ "smart-experiences.smart-hooks.google.provider": "Google",
19
+ "smart-experiences.smart-hooks.guest.lozenge.text": "访客",
20
+ "smart-experiences.smart-hooks.guest.lozenge.tooltip.group": "访客群组只能访问特定的空间,并对用户信息具有有限的访问权限。",
21
+ "smart-experiences.smart-hooks.guest.lozenge.tooltip.user": "访客只能访问特定的空间,并对用户信息具有有限的访问权限。",
22
+ "smart-experiences.smart-hooks.member.lozenge.text": "成员",
23
+ "smart-experiences.smart-hooks.microsoft.provider": "Microsoft",
24
+ "smart-experiences.smart-hooks.slack.provider": "Slack"
25
25
  };
26
26
  exports.default = _default;
@@ -4,23 +4,23 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
7
+ /* prettier-ignore */
8
8
  /**
9
9
  * NOTE:
10
10
  *
11
- * This file is automatically generated by i18n-tools.
11
+ * This file is automatically generated by Traduki 2.0.
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
- // undefined
14
+ //Chinese (Traditional)
15
15
  var _default = {
16
- 'smart-experiences.smart-hooks.external.sourced.from': '尋找位置:',
17
- 'smart-experiences.smart-hooks.github.provider': 'GitHub',
18
- 'smart-experiences.smart-hooks.google.provider': 'Google',
19
- 'smart-experiences.smart-hooks.guest.lozenge.text': '訪客',
20
- 'smart-experiences.smart-hooks.guest.lozenge.tooltip.group': '訪客群組只能存取特定空間,而且只能存取有限的使用者資訊。',
21
- 'smart-experiences.smart-hooks.guest.lozenge.tooltip.user': '訪客只能存取特定空間,而且只能存取有限的使用者資訊。',
22
- 'smart-experiences.smart-hooks.member.lozenge.text': '成員',
23
- 'smart-experiences.smart-hooks.microsoft.provider': 'Microsoft',
24
- 'smart-experiences.smart-hooks.slack.provider': 'Slack'
16
+ "smart-experiences.smart-hooks.external.sourced.from": "尋找位置:",
17
+ "smart-experiences.smart-hooks.github.provider": "GitHub",
18
+ "smart-experiences.smart-hooks.google.provider": "Google",
19
+ "smart-experiences.smart-hooks.guest.lozenge.text": "訪客",
20
+ "smart-experiences.smart-hooks.guest.lozenge.tooltip.group": "訪客群組只能存取特定空間,而且只能存取有限的使用者資訊。",
21
+ "smart-experiences.smart-hooks.guest.lozenge.tooltip.user": "訪客只能存取特定空間,而且只能存取有限的使用者資訊。",
22
+ "smart-experiences.smart-hooks.member.lozenge.text": "成員",
23
+ "smart-experiences.smart-hooks.microsoft.provider": "Microsoft",
24
+ "smart-experiences.smart-hooks.slack.provider": "Slack"
25
25
  };
26
26
  exports.default = _default;
package/dist/cjs/index.js CHANGED
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
@@ -17,7 +16,5 @@ Object.defineProperty(exports, "useUserRecommendations", {
17
16
  return _useUserRecommendations.default;
18
17
  }
19
18
  });
20
-
21
19
  var _useUserRecommendations = _interopRequireDefault(require("./services/use-user-recommendations"));
22
-
23
20
  var _transformRecommendationsToOptions = _interopRequireDefault(require("./utils/transform-recommendations-to-options"));
@@ -4,9 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.messages = void 0;
7
-
8
7
  var _reactIntlNext = require("react-intl-next");
9
-
10
8
  var messages = (0, _reactIntlNext.defineMessages)({
11
9
  externalUserSourcesHeading: {
12
10
  id: 'smart-experiences.smart-hooks.external.sourced.from',
@@ -1,36 +1,32 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.default = void 0;
9
-
10
8
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
11
-
12
9
  var _react = require("react");
13
-
14
10
  var _memoizeOne = _interopRequireDefault(require("memoize-one"));
15
-
16
11
  function useFunctionUsageTracking(trackedFunction) {
17
12
  var _useState = (0, _react.useState)(false),
18
- _useState2 = (0, _slicedToArray2.default)(_useState, 2),
19
- isUsed = _useState2[0],
20
- setIsUsed = _useState2[1]; // trackingFunction needs to be stable for hook consumers...
21
-
13
+ _useState2 = (0, _slicedToArray2.default)(_useState, 2),
14
+ isUsed = _useState2[0],
15
+ setIsUsed = _useState2[1];
22
16
 
17
+ // trackingFunction needs to be stable for hook consumers...
23
18
  var trackingFunction = (0, _react.useMemo)(function () {
24
- return (// ...and the function that the factory returns needs to be stable for hook consumers as well
19
+ return (
20
+ // ...and the function that the factory returns needs to be stable for hook consumers as well
25
21
  (0, _memoizeOne.default)(function () {
26
22
  if (!isUsed) {
27
23
  setIsUsed(true);
28
24
  }
29
-
30
25
  return trackedFunction;
31
26
  })
32
27
  );
33
- }, // isUsed deliberately left out to avoid new tracking fn being generated
28
+ },
29
+ // isUsed deliberately left out to avoid new tracking fn being generated
34
30
  // eslint-disable-next-line react-hooks/exhaustive-deps
35
31
  [trackedFunction]);
36
32
  return {
@@ -38,6 +34,5 @@ function useFunctionUsageTracking(trackedFunction) {
38
34
  trackingFunction: trackingFunction
39
35
  };
40
36
  }
41
-
42
37
  var _default = useFunctionUsageTracking;
43
38
  exports.default = _default;
@@ -1,28 +1,18 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.fireUserSelectedEvent = exports.findUserPosition = exports.createDefaultAttributes = void 0;
9
-
10
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
-
12
9
  var _analyticsGasTypes = require("@atlaskit/analytics-gas-types");
13
-
14
10
  var _analyticsListeners = require("@atlaskit/analytics-listeners");
15
-
16
11
  var _analyticsNext = require("@atlaskit/analytics-next");
17
-
18
12
  var _version = require("../../version.json");
19
-
20
13
  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; }
21
-
22
14
  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; }
23
-
24
15
  var createAndFireEventInElementsChannel = (0, _analyticsNext.createAndFireEvent)(_analyticsListeners.FabricChannel.elements);
25
-
26
16
  var createEvent = function createEvent(eventType, action, actionSubject) {
27
17
  var attributes = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
28
18
  return {
@@ -36,26 +26,23 @@ var createEvent = function createEvent(eventType, action, actionSubject) {
36
26
  }, attributes)
37
27
  };
38
28
  };
39
-
40
29
  var findUserPosition = function findUserPosition(loadedUsers, userId) {
41
30
  return loadedUsers.findIndex(function (val) {
42
31
  return val.id === userId;
43
32
  });
44
33
  };
45
-
46
34
  exports.findUserPosition = findUserPosition;
47
-
48
35
  var createDefaultAttributes = function createDefaultAttributes(props, renderId, sessionId, query) {
49
36
  var fieldId = props.fieldId,
50
- objectId = props.objectId,
51
- containerId = props.containerId,
52
- childObjectId = props.childObjectId,
53
- preload = props.preload,
54
- includeTeams = props.includeTeams,
55
- productKey = props.productKey,
56
- principalId = props.principalId,
57
- tenantId = props.tenantId,
58
- maxNumberOfResults = props.maxNumberOfResults;
37
+ objectId = props.objectId,
38
+ containerId = props.containerId,
39
+ childObjectId = props.childObjectId,
40
+ preload = props.preload,
41
+ includeTeams = props.includeTeams,
42
+ productKey = props.productKey,
43
+ principalId = props.principalId,
44
+ tenantId = props.tenantId,
45
+ maxNumberOfResults = props.maxNumberOfResults;
59
46
  return {
60
47
  context: fieldId,
61
48
  childObjectId: childObjectId,
@@ -72,11 +59,8 @@ var createDefaultAttributes = function createDefaultAttributes(props, renderId,
72
59
  tenantId: tenantId
73
60
  };
74
61
  };
75
-
76
62
  exports.createDefaultAttributes = createDefaultAttributes;
77
-
78
63
  var fireUserSelectedEvent = function fireUserSelectedEvent(createAnalyticsEvent, payloadAttributes) {
79
64
  return createAndFireEventInElementsChannel(createEvent(_analyticsGasTypes.TRACK_EVENT_TYPE, 'selected', 'user', payloadAttributes))(createAnalyticsEvent);
80
65
  };
81
-
82
66
  exports.fireUserSelectedEvent = fireUserSelectedEvent;