@atlaskit/smart-user-picker 4.0.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.
Files changed (209) hide show
  1. package/CHANGELOG.md +140 -0
  2. package/LICENSE +13 -0
  3. package/build/tsconfig.json +16 -0
  4. package/dist/cjs/analytics.js +131 -0
  5. package/dist/cjs/components/MessagesIntlProvider.js +72 -0
  6. package/dist/cjs/components/SmartUserPicker.js +473 -0
  7. package/dist/cjs/components/index.js +24 -0
  8. package/dist/cjs/config/index.js +50 -0
  9. package/dist/cjs/i18n/cs.js +26 -0
  10. package/dist/cjs/i18n/da.js +26 -0
  11. package/dist/cjs/i18n/de.js +26 -0
  12. package/dist/cjs/i18n/en.js +14 -0
  13. package/dist/cjs/i18n/en_GB.js +14 -0
  14. package/dist/cjs/i18n/en_ZZ.js +26 -0
  15. package/dist/cjs/i18n/es.js +26 -0
  16. package/dist/cjs/i18n/et.js +16 -0
  17. package/dist/cjs/i18n/fi.js +26 -0
  18. package/dist/cjs/i18n/fr.js +26 -0
  19. package/dist/cjs/i18n/hu.js +26 -0
  20. package/dist/cjs/i18n/index.js +247 -0
  21. package/dist/cjs/i18n/is.js +14 -0
  22. package/dist/cjs/i18n/it.js +26 -0
  23. package/dist/cjs/i18n/ja.js +26 -0
  24. package/dist/cjs/i18n/ko.js +26 -0
  25. package/dist/cjs/i18n/languages.js +33 -0
  26. package/dist/cjs/i18n/nb.js +26 -0
  27. package/dist/cjs/i18n/nl.js +26 -0
  28. package/dist/cjs/i18n/pl.js +26 -0
  29. package/dist/cjs/i18n/pt_BR.js +26 -0
  30. package/dist/cjs/i18n/pt_PT.js +16 -0
  31. package/dist/cjs/i18n/ro.js +14 -0
  32. package/dist/cjs/i18n/ru.js +26 -0
  33. package/dist/cjs/i18n/sk.js +16 -0
  34. package/dist/cjs/i18n/sv.js +26 -0
  35. package/dist/cjs/i18n/th.js +26 -0
  36. package/dist/cjs/i18n/tr.js +26 -0
  37. package/dist/cjs/i18n/uk.js +26 -0
  38. package/dist/cjs/i18n/vi.js +26 -0
  39. package/dist/cjs/i18n/zh.js +26 -0
  40. package/dist/cjs/i18n/zh_TW.js +26 -0
  41. package/dist/cjs/i18n.js +57 -0
  42. package/dist/cjs/index.js +87 -0
  43. package/dist/cjs/service/constants.js +20 -0
  44. package/dist/cjs/service/default-value-hydration-client.js +278 -0
  45. package/dist/cjs/service/graphqlUtils.js +48 -0
  46. package/dist/cjs/service/index.js +23 -0
  47. package/dist/cjs/service/recommendation-client.js +71 -0
  48. package/dist/cjs/service/teams-client.js +56 -0
  49. package/dist/cjs/service/users-client.js +97 -0
  50. package/dist/cjs/service/users-transformer.js +94 -0
  51. package/dist/cjs/types.js +14 -0
  52. package/dist/cjs/ufoExperiences.js +39 -0
  53. package/dist/cjs/util/i18n-util.js +274 -0
  54. package/dist/cjs/version.json +5 -0
  55. package/dist/es2019/analytics.js +85 -0
  56. package/dist/es2019/components/MessagesIntlProvider.js +43 -0
  57. package/dist/es2019/components/SmartUserPicker.js +316 -0
  58. package/dist/es2019/components/index.js +11 -0
  59. package/dist/es2019/config/index.js +42 -0
  60. package/dist/es2019/i18n/cs.js +18 -0
  61. package/dist/es2019/i18n/da.js +18 -0
  62. package/dist/es2019/i18n/de.js +18 -0
  63. package/dist/es2019/i18n/en.js +7 -0
  64. package/dist/es2019/i18n/en_GB.js +7 -0
  65. package/dist/es2019/i18n/en_ZZ.js +18 -0
  66. package/dist/es2019/i18n/es.js +18 -0
  67. package/dist/es2019/i18n/et.js +8 -0
  68. package/dist/es2019/i18n/fi.js +18 -0
  69. package/dist/es2019/i18n/fr.js +18 -0
  70. package/dist/es2019/i18n/hu.js +18 -0
  71. package/dist/es2019/i18n/index.js +36 -0
  72. package/dist/es2019/i18n/is.js +7 -0
  73. package/dist/es2019/i18n/it.js +18 -0
  74. package/dist/es2019/i18n/ja.js +18 -0
  75. package/dist/es2019/i18n/ko.js +18 -0
  76. package/dist/es2019/i18n/languages.js +26 -0
  77. package/dist/es2019/i18n/nb.js +18 -0
  78. package/dist/es2019/i18n/nl.js +18 -0
  79. package/dist/es2019/i18n/pl.js +18 -0
  80. package/dist/es2019/i18n/pt_BR.js +18 -0
  81. package/dist/es2019/i18n/pt_PT.js +8 -0
  82. package/dist/es2019/i18n/ro.js +7 -0
  83. package/dist/es2019/i18n/ru.js +18 -0
  84. package/dist/es2019/i18n/sk.js +8 -0
  85. package/dist/es2019/i18n/sv.js +18 -0
  86. package/dist/es2019/i18n/th.js +18 -0
  87. package/dist/es2019/i18n/tr.js +18 -0
  88. package/dist/es2019/i18n/uk.js +18 -0
  89. package/dist/es2019/i18n/vi.js +18 -0
  90. package/dist/es2019/i18n/zh.js +18 -0
  91. package/dist/es2019/i18n/zh_TW.js +18 -0
  92. package/dist/es2019/i18n.js +48 -0
  93. package/dist/es2019/index.js +6 -0
  94. package/dist/es2019/service/constants.js +11 -0
  95. package/dist/es2019/service/default-value-hydration-client.js +125 -0
  96. package/dist/es2019/service/graphqlUtils.js +39 -0
  97. package/dist/es2019/service/index.js +2 -0
  98. package/dist/es2019/service/recommendation-client.js +52 -0
  99. package/dist/es2019/service/teams-client.js +37 -0
  100. package/dist/es2019/service/users-client.js +52 -0
  101. package/dist/es2019/service/users-transformer.js +73 -0
  102. package/dist/es2019/types.js +7 -0
  103. package/dist/es2019/ufoExperiences.js +26 -0
  104. package/dist/es2019/util/i18n-util.js +231 -0
  105. package/dist/es2019/version.json +5 -0
  106. package/dist/esm/analytics.js +99 -0
  107. package/dist/esm/components/MessagesIntlProvider.js +50 -0
  108. package/dist/esm/components/SmartUserPicker.js +454 -0
  109. package/dist/esm/components/index.js +11 -0
  110. package/dist/esm/config/index.js +39 -0
  111. package/dist/esm/i18n/cs.js +18 -0
  112. package/dist/esm/i18n/da.js +18 -0
  113. package/dist/esm/i18n/de.js +18 -0
  114. package/dist/esm/i18n/en.js +7 -0
  115. package/dist/esm/i18n/en_GB.js +7 -0
  116. package/dist/esm/i18n/en_ZZ.js +18 -0
  117. package/dist/esm/i18n/es.js +18 -0
  118. package/dist/esm/i18n/et.js +8 -0
  119. package/dist/esm/i18n/fi.js +18 -0
  120. package/dist/esm/i18n/fr.js +18 -0
  121. package/dist/esm/i18n/hu.js +18 -0
  122. package/dist/esm/i18n/index.js +36 -0
  123. package/dist/esm/i18n/is.js +7 -0
  124. package/dist/esm/i18n/it.js +18 -0
  125. package/dist/esm/i18n/ja.js +18 -0
  126. package/dist/esm/i18n/ko.js +18 -0
  127. package/dist/esm/i18n/languages.js +26 -0
  128. package/dist/esm/i18n/nb.js +18 -0
  129. package/dist/esm/i18n/nl.js +18 -0
  130. package/dist/esm/i18n/pl.js +18 -0
  131. package/dist/esm/i18n/pt_BR.js +18 -0
  132. package/dist/esm/i18n/pt_PT.js +8 -0
  133. package/dist/esm/i18n/ro.js +7 -0
  134. package/dist/esm/i18n/ru.js +18 -0
  135. package/dist/esm/i18n/sk.js +8 -0
  136. package/dist/esm/i18n/sv.js +18 -0
  137. package/dist/esm/i18n/th.js +18 -0
  138. package/dist/esm/i18n/tr.js +18 -0
  139. package/dist/esm/i18n/uk.js +18 -0
  140. package/dist/esm/i18n/vi.js +18 -0
  141. package/dist/esm/i18n/zh.js +18 -0
  142. package/dist/esm/i18n/zh_TW.js +18 -0
  143. package/dist/esm/i18n.js +48 -0
  144. package/dist/esm/index.js +6 -0
  145. package/dist/esm/service/constants.js +11 -0
  146. package/dist/esm/service/default-value-hydration-client.js +261 -0
  147. package/dist/esm/service/graphqlUtils.js +41 -0
  148. package/dist/esm/service/index.js +2 -0
  149. package/dist/esm/service/recommendation-client.js +60 -0
  150. package/dist/esm/service/teams-client.js +45 -0
  151. package/dist/esm/service/users-client.js +83 -0
  152. package/dist/esm/service/users-transformer.js +83 -0
  153. package/dist/esm/types.js +7 -0
  154. package/dist/esm/ufoExperiences.js +26 -0
  155. package/dist/esm/util/i18n-util.js +256 -0
  156. package/dist/esm/version.json +5 -0
  157. package/dist/types/analytics.d.ts +21 -0
  158. package/dist/types/components/MessagesIntlProvider.d.ts +9 -0
  159. package/dist/types/components/SmartUserPicker.d.ts +30 -0
  160. package/dist/types/components/index.d.ts +4 -0
  161. package/dist/types/config/index.d.ts +9 -0
  162. package/dist/types/i18n/cs.d.ts +18 -0
  163. package/dist/types/i18n/da.d.ts +18 -0
  164. package/dist/types/i18n/de.d.ts +18 -0
  165. package/dist/types/i18n/en.d.ts +7 -0
  166. package/dist/types/i18n/en_GB.d.ts +7 -0
  167. package/dist/types/i18n/en_ZZ.d.ts +18 -0
  168. package/dist/types/i18n/es.d.ts +18 -0
  169. package/dist/types/i18n/et.d.ts +8 -0
  170. package/dist/types/i18n/fi.d.ts +18 -0
  171. package/dist/types/i18n/fr.d.ts +18 -0
  172. package/dist/types/i18n/hu.d.ts +18 -0
  173. package/dist/types/i18n/index.d.ts +36 -0
  174. package/dist/types/i18n/is.d.ts +7 -0
  175. package/dist/types/i18n/it.d.ts +18 -0
  176. package/dist/types/i18n/ja.d.ts +18 -0
  177. package/dist/types/i18n/ko.d.ts +18 -0
  178. package/dist/types/i18n/languages.d.ts +27 -0
  179. package/dist/types/i18n/nb.d.ts +18 -0
  180. package/dist/types/i18n/nl.d.ts +18 -0
  181. package/dist/types/i18n/pl.d.ts +18 -0
  182. package/dist/types/i18n/pt_BR.d.ts +18 -0
  183. package/dist/types/i18n/pt_PT.d.ts +8 -0
  184. package/dist/types/i18n/ro.d.ts +7 -0
  185. package/dist/types/i18n/ru.d.ts +18 -0
  186. package/dist/types/i18n/sk.d.ts +8 -0
  187. package/dist/types/i18n/sv.d.ts +18 -0
  188. package/dist/types/i18n/th.d.ts +18 -0
  189. package/dist/types/i18n/tr.d.ts +18 -0
  190. package/dist/types/i18n/uk.d.ts +18 -0
  191. package/dist/types/i18n/vi.d.ts +18 -0
  192. package/dist/types/i18n/zh.d.ts +18 -0
  193. package/dist/types/i18n/zh_TW.d.ts +18 -0
  194. package/dist/types/i18n.d.ts +47 -0
  195. package/dist/types/index.d.ts +6 -0
  196. package/dist/types/service/constants.d.ts +4 -0
  197. package/dist/types/service/default-value-hydration-client.d.ts +8 -0
  198. package/dist/types/service/graphqlUtils.d.ts +14 -0
  199. package/dist/types/service/index.d.ts +2 -0
  200. package/dist/types/service/recommendation-client.d.ts +5 -0
  201. package/dist/types/service/teams-client.d.ts +12 -0
  202. package/dist/types/service/users-client.d.ts +11 -0
  203. package/dist/types/service/users-transformer.d.ts +22 -0
  204. package/dist/types/types.d.ts +208 -0
  205. package/dist/types/ufoExperiences.d.ts +3 -0
  206. package/dist/types/util/i18n-util.d.ts +11 -0
  207. package/docs/0-intro.tsx +52 -0
  208. package/package.json +56 -0
  209. package/tsconfig.json +16 -0
@@ -0,0 +1,18 @@
1
+ declare const _default: {
2
+ 'fabric.elements.user-picker.external.sourced.from': string;
3
+ 'fabric.elements.user-picker.github.provider': string;
4
+ 'fabric.elements.user-picker.google.provider': string;
5
+ 'fabric.elements.user-picker.guest.lozenge.text': string;
6
+ 'fabric.elements.user-picker.guest.lozenge.tooltip.group': string;
7
+ 'fabric.elements.user-picker.guest.lozenge.tooltip.user': string;
8
+ 'fabric.elements.user-picker.member.lozenge.text': string;
9
+ 'fabric.elements.user-picker.microsoft.provider': string;
10
+ 'fabric.elements.user-picker.slack.provider': string;
11
+ };
12
+ /**
13
+ * NOTE:
14
+ *
15
+ * This file is automatically generated by i18n-tools.
16
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
17
+ */
18
+ export default _default;
@@ -0,0 +1,18 @@
1
+ declare const _default: {
2
+ 'fabric.elements.user-picker.external.sourced.from': string;
3
+ 'fabric.elements.user-picker.github.provider': string;
4
+ 'fabric.elements.user-picker.google.provider': string;
5
+ 'fabric.elements.user-picker.guest.lozenge.text': string;
6
+ 'fabric.elements.user-picker.guest.lozenge.tooltip.group': string;
7
+ 'fabric.elements.user-picker.guest.lozenge.tooltip.user': string;
8
+ 'fabric.elements.user-picker.member.lozenge.text': string;
9
+ 'fabric.elements.user-picker.microsoft.provider': string;
10
+ 'fabric.elements.user-picker.slack.provider': string;
11
+ };
12
+ /**
13
+ * NOTE:
14
+ *
15
+ * This file is automatically generated by i18n-tools.
16
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
17
+ */
18
+ export default _default;
@@ -0,0 +1,18 @@
1
+ declare const _default: {
2
+ 'fabric.elements.user-picker.external.sourced.from': string;
3
+ 'fabric.elements.user-picker.github.provider': string;
4
+ 'fabric.elements.user-picker.google.provider': string;
5
+ 'fabric.elements.user-picker.guest.lozenge.text': string;
6
+ 'fabric.elements.user-picker.guest.lozenge.tooltip.group': string;
7
+ 'fabric.elements.user-picker.guest.lozenge.tooltip.user': string;
8
+ 'fabric.elements.user-picker.member.lozenge.text': string;
9
+ 'fabric.elements.user-picker.microsoft.provider': string;
10
+ 'fabric.elements.user-picker.slack.provider': string;
11
+ };
12
+ /**
13
+ * NOTE:
14
+ *
15
+ * This file is automatically generated by i18n-tools.
16
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
17
+ */
18
+ export default _default;
@@ -0,0 +1,18 @@
1
+ declare const _default: {
2
+ 'fabric.elements.user-picker.external.sourced.from': string;
3
+ 'fabric.elements.user-picker.github.provider': string;
4
+ 'fabric.elements.user-picker.google.provider': string;
5
+ 'fabric.elements.user-picker.guest.lozenge.text': string;
6
+ 'fabric.elements.user-picker.guest.lozenge.tooltip.group': string;
7
+ 'fabric.elements.user-picker.guest.lozenge.tooltip.user': string;
8
+ 'fabric.elements.user-picker.member.lozenge.text': string;
9
+ 'fabric.elements.user-picker.microsoft.provider': string;
10
+ 'fabric.elements.user-picker.slack.provider': string;
11
+ };
12
+ /**
13
+ * NOTE:
14
+ *
15
+ * This file is automatically generated by i18n-tools.
16
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
17
+ */
18
+ export default _default;
@@ -0,0 +1,8 @@
1
+ declare const _default: {};
2
+ /**
3
+ * NOTE:
4
+ *
5
+ * This file is automatically generated by i18n-tools.
6
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
7
+ */
8
+ export default _default;
@@ -0,0 +1,7 @@
1
+ declare const _default: {
2
+ 'fabric.elements.user-picker.placeholder': string;
3
+ 'fabric.elements.user-picker.placeholder.add-more': string;
4
+ 'fabric.elements.user-picker.multi.remove-item': string;
5
+ 'fabric.elements.user-picker.single.clear': string;
6
+ };
7
+ export default _default;
@@ -0,0 +1,18 @@
1
+ declare const _default: {
2
+ 'fabric.elements.user-picker.external.sourced.from': string;
3
+ 'fabric.elements.user-picker.github.provider': string;
4
+ 'fabric.elements.user-picker.google.provider': string;
5
+ 'fabric.elements.user-picker.guest.lozenge.text': string;
6
+ 'fabric.elements.user-picker.guest.lozenge.tooltip.group': string;
7
+ 'fabric.elements.user-picker.guest.lozenge.tooltip.user': string;
8
+ 'fabric.elements.user-picker.member.lozenge.text': string;
9
+ 'fabric.elements.user-picker.microsoft.provider': string;
10
+ 'fabric.elements.user-picker.slack.provider': string;
11
+ };
12
+ /**
13
+ * NOTE:
14
+ *
15
+ * This file is automatically generated by i18n-tools.
16
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
17
+ */
18
+ export default _default;
@@ -0,0 +1,8 @@
1
+ declare const _default: {};
2
+ /**
3
+ * NOTE:
4
+ *
5
+ * This file is automatically generated by i18n-tools.
6
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
7
+ */
8
+ export default _default;
@@ -0,0 +1,18 @@
1
+ declare const _default: {
2
+ 'fabric.elements.user-picker.external.sourced.from': string;
3
+ 'fabric.elements.user-picker.github.provider': string;
4
+ 'fabric.elements.user-picker.google.provider': string;
5
+ 'fabric.elements.user-picker.guest.lozenge.text': string;
6
+ 'fabric.elements.user-picker.guest.lozenge.tooltip.group': string;
7
+ 'fabric.elements.user-picker.guest.lozenge.tooltip.user': string;
8
+ 'fabric.elements.user-picker.member.lozenge.text': string;
9
+ 'fabric.elements.user-picker.microsoft.provider': string;
10
+ 'fabric.elements.user-picker.slack.provider': string;
11
+ };
12
+ /**
13
+ * NOTE:
14
+ *
15
+ * This file is automatically generated by i18n-tools.
16
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
17
+ */
18
+ export default _default;
@@ -0,0 +1,18 @@
1
+ declare const _default: {
2
+ 'fabric.elements.user-picker.external.sourced.from': string;
3
+ 'fabric.elements.user-picker.github.provider': string;
4
+ 'fabric.elements.user-picker.google.provider': string;
5
+ 'fabric.elements.user-picker.guest.lozenge.text': string;
6
+ 'fabric.elements.user-picker.guest.lozenge.tooltip.group': string;
7
+ 'fabric.elements.user-picker.guest.lozenge.tooltip.user': string;
8
+ 'fabric.elements.user-picker.member.lozenge.text': string;
9
+ 'fabric.elements.user-picker.microsoft.provider': string;
10
+ 'fabric.elements.user-picker.slack.provider': string;
11
+ };
12
+ /**
13
+ * NOTE:
14
+ *
15
+ * This file is automatically generated by i18n-tools.
16
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
17
+ */
18
+ export default _default;
@@ -0,0 +1,18 @@
1
+ declare const _default: {
2
+ 'fabric.elements.user-picker.external.sourced.from': string;
3
+ 'fabric.elements.user-picker.github.provider': string;
4
+ 'fabric.elements.user-picker.google.provider': string;
5
+ 'fabric.elements.user-picker.guest.lozenge.text': string;
6
+ 'fabric.elements.user-picker.guest.lozenge.tooltip.group': string;
7
+ 'fabric.elements.user-picker.guest.lozenge.tooltip.user': string;
8
+ 'fabric.elements.user-picker.member.lozenge.text': string;
9
+ 'fabric.elements.user-picker.microsoft.provider': string;
10
+ 'fabric.elements.user-picker.slack.provider': string;
11
+ };
12
+ /**
13
+ * NOTE:
14
+ *
15
+ * This file is automatically generated by i18n-tools.
16
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
17
+ */
18
+ export default _default;
@@ -0,0 +1,18 @@
1
+ declare const _default: {
2
+ 'fabric.elements.user-picker.external.sourced.from': string;
3
+ 'fabric.elements.user-picker.github.provider': string;
4
+ 'fabric.elements.user-picker.google.provider': string;
5
+ 'fabric.elements.user-picker.guest.lozenge.text': string;
6
+ 'fabric.elements.user-picker.guest.lozenge.tooltip.group': string;
7
+ 'fabric.elements.user-picker.guest.lozenge.tooltip.user': string;
8
+ 'fabric.elements.user-picker.member.lozenge.text': string;
9
+ 'fabric.elements.user-picker.microsoft.provider': string;
10
+ 'fabric.elements.user-picker.slack.provider': string;
11
+ };
12
+ /**
13
+ * NOTE:
14
+ *
15
+ * This file is automatically generated by i18n-tools.
16
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
17
+ */
18
+ export default _default;
@@ -0,0 +1,18 @@
1
+ declare const _default: {
2
+ 'fabric.elements.user-picker.external.sourced.from': string;
3
+ 'fabric.elements.user-picker.github.provider': string;
4
+ 'fabric.elements.user-picker.google.provider': string;
5
+ 'fabric.elements.user-picker.guest.lozenge.text': string;
6
+ 'fabric.elements.user-picker.guest.lozenge.tooltip.group': string;
7
+ 'fabric.elements.user-picker.guest.lozenge.tooltip.user': string;
8
+ 'fabric.elements.user-picker.member.lozenge.text': string;
9
+ 'fabric.elements.user-picker.microsoft.provider': string;
10
+ 'fabric.elements.user-picker.slack.provider': string;
11
+ };
12
+ /**
13
+ * NOTE:
14
+ *
15
+ * This file is automatically generated by i18n-tools.
16
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
17
+ */
18
+ export default _default;
@@ -0,0 +1,18 @@
1
+ declare const _default: {
2
+ 'fabric.elements.user-picker.external.sourced.from': string;
3
+ 'fabric.elements.user-picker.github.provider': string;
4
+ 'fabric.elements.user-picker.google.provider': string;
5
+ 'fabric.elements.user-picker.guest.lozenge.text': string;
6
+ 'fabric.elements.user-picker.guest.lozenge.tooltip.group': string;
7
+ 'fabric.elements.user-picker.guest.lozenge.tooltip.user': string;
8
+ 'fabric.elements.user-picker.member.lozenge.text': string;
9
+ 'fabric.elements.user-picker.microsoft.provider': string;
10
+ 'fabric.elements.user-picker.slack.provider': string;
11
+ };
12
+ /**
13
+ * NOTE:
14
+ *
15
+ * This file is automatically generated by i18n-tools.
16
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
17
+ */
18
+ export default _default;
@@ -0,0 +1,18 @@
1
+ declare const _default: {
2
+ 'fabric.elements.user-picker.external.sourced.from': string;
3
+ 'fabric.elements.user-picker.github.provider': string;
4
+ 'fabric.elements.user-picker.google.provider': string;
5
+ 'fabric.elements.user-picker.guest.lozenge.text': string;
6
+ 'fabric.elements.user-picker.guest.lozenge.tooltip.group': string;
7
+ 'fabric.elements.user-picker.guest.lozenge.tooltip.user': string;
8
+ 'fabric.elements.user-picker.member.lozenge.text': string;
9
+ 'fabric.elements.user-picker.microsoft.provider': string;
10
+ 'fabric.elements.user-picker.slack.provider': string;
11
+ };
12
+ /**
13
+ * NOTE:
14
+ *
15
+ * This file is automatically generated by i18n-tools.
16
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
17
+ */
18
+ export default _default;
@@ -0,0 +1,47 @@
1
+ export declare const messages: {
2
+ externalUserSourcesHeading: {
3
+ id: string;
4
+ defaultMessage: string;
5
+ description: string;
6
+ };
7
+ slackProvider: {
8
+ id: string;
9
+ defaultMessage: string;
10
+ description: string;
11
+ };
12
+ googleProvider: {
13
+ id: string;
14
+ defaultMessage: string;
15
+ description: string;
16
+ };
17
+ microsoftProvider: {
18
+ id: string;
19
+ defaultMessage: string;
20
+ description: string;
21
+ };
22
+ gitHubProvider: {
23
+ id: string;
24
+ defaultMessage: string;
25
+ description: string;
26
+ };
27
+ memberLozengeText: {
28
+ id: string;
29
+ defaultMessage: string;
30
+ description: string;
31
+ };
32
+ guestLozengeText: {
33
+ id: string;
34
+ defaultMessage: string;
35
+ description: string;
36
+ };
37
+ guestUserLozengeTooltip: {
38
+ id: string;
39
+ defaultMessage: string;
40
+ description: string;
41
+ };
42
+ guestGroupLozengeTooltip: {
43
+ id: string;
44
+ defaultMessage: string;
45
+ description: string;
46
+ };
47
+ };
@@ -0,0 +1,6 @@
1
+ export { default } from './components';
2
+ export { getUserRecommendations, hydrateDefaultValues } from './service';
3
+ export type { RecommendationRequest, Props, State } from './types';
4
+ export { isEmail, isTeam, isUser, isValidEmail, EmailType, GroupType, TeamType, UserType, } from '@atlaskit/user-picker';
5
+ export type { ActionTypes, Appearance, AtlasKitSelectChange, AtlaskitSelectValue, DefaultValue, EmailValidationResponse, EmailValidator, InputActionTypes, LozengeProps, OnChange, OnInputChange, OnOption, OnPicker, Option, OptionData, OptionIdentifier, PopupUserPickerProps, Promisable, Target, UserPickerProps, UserPickerState, Value, Email, Group, GroupHighlight, HighlightRange, LoadOptions, Team, TeamHighlight, User, UserHighlight, ExternalUser, UserSource, } from '@atlaskit/user-picker';
6
+ export { setSmartUserPickerEnv } from './config';
@@ -0,0 +1,4 @@
1
+ import { Team, User } from '@atlaskit/user-picker';
2
+ export declare const UNKNOWN = "Unknown";
3
+ export declare const UNKNOWN_USER: User;
4
+ export declare const UNKNOWN_TEAM: Team;
@@ -0,0 +1,8 @@
1
+ import { DefaultValue } from '@atlaskit/user-picker';
2
+ export interface UsersRequest {
3
+ baseUrl: string | undefined;
4
+ accountIds: string[];
5
+ productKey: 'jira' | 'confluence';
6
+ }
7
+ declare function hydrateDefaultValues(baseUrl: string | undefined, value: DefaultValue, productKey: string): Promise<DefaultValue>;
8
+ export default hydrateDefaultValues;
@@ -0,0 +1,14 @@
1
+ interface Query {
2
+ query: string;
3
+ variables: Record<string, string> | Record<string, string[]>;
4
+ }
5
+ export interface GraphQLError {
6
+ code?: number;
7
+ reason: string;
8
+ }
9
+ /**
10
+ * @param {string} serviceUrl - GraphQL service endpoint
11
+ * @param {Query} query - GraphQL query
12
+ */
13
+ export declare function graphqlQuery<D>(serviceUrl: string, query: Query): Promise<D>;
14
+ export {};
@@ -0,0 +1,2 @@
1
+ export { default as getUserRecommendations } from './recommendation-client';
2
+ export { default as hydrateDefaultValues } from './default-value-hydration-client';
@@ -0,0 +1,5 @@
1
+ import { OptionData } from '@atlaskit/user-picker';
2
+ import { RecommendationRequest } from '../types';
3
+ import { IntlShape } from 'react-intl-next';
4
+ declare const getUserRecommendations: (request: RecommendationRequest, intl: IntlShape) => Promise<OptionData[]>;
5
+ export default getUserRecommendations;
@@ -0,0 +1,12 @@
1
+ import { Team } from '@atlaskit/user-picker';
2
+ declare type LegionRequest = {
3
+ baseUrl?: string;
4
+ id: string;
5
+ };
6
+ export declare type LegionResponse = {
7
+ id: string;
8
+ displayName: string;
9
+ smallAvatarImageUrl: string;
10
+ };
11
+ declare const hydrateTeamFromLegion: (request: LegionRequest) => Promise<Team>;
12
+ export default hydrateTeamFromLegion;
@@ -0,0 +1,11 @@
1
+ import { User } from '@atlaskit/user-picker';
2
+ interface UserData {
3
+ accountId: string;
4
+ name: string;
5
+ picture: string;
6
+ }
7
+ export interface ApiClientResponse {
8
+ users: UserData[];
9
+ }
10
+ declare const getHydratedUsers: (baseUrl: string | undefined, userIds: string[]) => Promise<User[]>;
11
+ export default getHydratedUsers;
@@ -0,0 +1,22 @@
1
+ import { OptionData } from '@atlaskit/user-picker';
2
+ import { IntlShape } from 'react-intl-next';
3
+ interface ServerItem {
4
+ id: string;
5
+ name?: string;
6
+ entityType: EntityType;
7
+ avatarUrl: string;
8
+ description?: string;
9
+ teamAri?: string;
10
+ displayName?: string;
11
+ }
12
+ interface ServerResponse {
13
+ recommendedUsers: ServerItem[];
14
+ intl: IntlShape;
15
+ }
16
+ declare enum EntityType {
17
+ USER = "USER",
18
+ TEAM = "TEAM",
19
+ GROUP = "GROUP"
20
+ }
21
+ export declare const transformUsers: (serverResponse: ServerResponse, intl: IntlShape) => OptionData[];
22
+ export {};
@@ -0,0 +1,208 @@
1
+ import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
2
+ import { DefaultValue, OptionData, UserPickerProps } from '@atlaskit/user-picker';
3
+ export interface Context {
4
+ containerId?: string;
5
+ contextType: string;
6
+ objectId?: string;
7
+ sessionId?: string;
8
+ principalId?: string;
9
+ childObjectId?: string;
10
+ productKey: string;
11
+ siteId: string;
12
+ orgId?: string;
13
+ productAttributes?: ProductAttributes;
14
+ }
15
+ export interface RecommendationRequest {
16
+ baseUrl?: string;
17
+ context: Context;
18
+ maxNumberOfResults: number;
19
+ query?: string;
20
+ searchQueryFilter?: string;
21
+ includeUsers?: boolean;
22
+ includeGroups?: boolean;
23
+ includeTeams?: boolean;
24
+ }
25
+ declare type OnError = (error: any, request: RecommendationRequest) => Promise<OptionData[]> | void;
26
+ declare type OnValueError = (error: any, defaultValue: DefaultValue) => Promise<OptionData[]> | void;
27
+ declare type OnEmpty = (query: string) => Promise<OptionData[]>;
28
+ export interface State {
29
+ users: OptionData[];
30
+ loading: boolean;
31
+ closed: boolean;
32
+ error: boolean;
33
+ query: string;
34
+ sessionId?: string;
35
+ defaultValue?: DefaultValue;
36
+ bootstrapOptions: OptionData[];
37
+ }
38
+ export declare type ProductAttributes = BitbucketAttributes | ConfluenceAttributes;
39
+ export declare type FilterOptions = (options: OptionData[], query: string) => OptionData[];
40
+ export interface BitbucketAttributes {
41
+ /**
42
+ * Identifies whether this is a public repository or not.
43
+ */
44
+ isPublicRepo?: boolean;
45
+ /**
46
+ * A list of bitbucket workspace Ids used within container result set and noted in analytics.
47
+ */
48
+ workspaceIds?: string[];
49
+ /**
50
+ * The users current email domain which may be used to boost the results for relevant users.
51
+ */
52
+ emailDomain?: string;
53
+ }
54
+ export interface ConfluenceAttributes {
55
+ /**
56
+ * Identifies whether this user is a confluence guest
57
+ */
58
+ isEntitledConfluenceExternalCollaborator?: boolean;
59
+ }
60
+ export declare enum EntityType {
61
+ USER = "USER",
62
+ TEAM = "TEAM",
63
+ GROUP = "GROUP"
64
+ }
65
+ export interface RecommendationItem {
66
+ id: string;
67
+ name?: string;
68
+ entityType: EntityType;
69
+ avatarUrl: string;
70
+ description?: string;
71
+ teamAri?: string;
72
+ displayName?: string;
73
+ }
74
+ export interface RecommendationResponse {
75
+ errors?: any[];
76
+ recommendedUsers: RecommendationItem[];
77
+ }
78
+ export interface SmartProps {
79
+ /**
80
+ * The base URL of the site eg: hello.atlassian.net
81
+ */
82
+ baseUrl?: string;
83
+ /**
84
+ * Hydrated user suggestions to show when the query is blank. If not provided, smart user picker
85
+ * will still provide a smart-ranked list of suggestions for blank queries. Please refer to @atlaskit/user-picker
86
+ * for OptionData type.
87
+ */
88
+ bootstrapOptions?: OptionData[];
89
+ /**
90
+ * Context information for analytics. Eg: if a user picker was put inside a comment, the childObjectId would be
91
+ * the ID of the comment. Optional, but please provide if available.
92
+ */
93
+ childObjectId?: string;
94
+ /**
95
+ * The container Id to identify context.
96
+ *
97
+ * e.g. Jira: projectId. Confluence: spaceId. Bitbucket: repositoryId.
98
+ */
99
+ containerId?: string;
100
+ /**
101
+ * Time to debounce the suggestions fetching (in milliseconds). Defaults to 150ms.
102
+ */
103
+ debounceTime?: number;
104
+ /**
105
+ * Function to transform options suggested by the server before showing to the user. Can be used to filter out suggestions.
106
+ * The results of filterOptions are the results displayed in the suggestions UI.
107
+ */
108
+ filterOptions?: FilterOptions;
109
+ /**
110
+ * Whether to include groups in the resultset. @default false
111
+ */
112
+ includeGroups?: boolean;
113
+ /**
114
+ * Whether to include teams in the resultset. @default false
115
+ */
116
+ includeTeams?: boolean;
117
+ /**
118
+ * Whether to include users in the resultset. @default true
119
+ */
120
+ includeUsers?: boolean;
121
+ /**
122
+ * An identifier of the closest context object, e.g. issueId, pageId, pullRequestId.
123
+ * Used for analytics. Optional, but please include if available.
124
+ */
125
+ objectId?: string;
126
+ /**
127
+ * Custom handler to give opportunity for caller to return list of options when server returns empty list.
128
+ * this is called if server returns empty list. This will NOT be called if props.filterOptions returns empty list.
129
+ */
130
+ onEmpty?: OnEmpty;
131
+ /**
132
+ * Error handler for when the server fails to suggest users and returns with an error response.
133
+ * `error`: the error.
134
+ * `RecommendationRequest`: the original recommendationRequest containing the query and other search parameters.
135
+ * This may be used to provide a fail over search direct to the product backend.
136
+ * Helper fail over clients exist under /helpers.
137
+ * Note that OnError results are filtered.
138
+ */
139
+ onError?: OnError;
140
+ /**
141
+ * Error handler used to provide OptionData[] values when the server fails to hydrate the `defaultValue` prop's values.
142
+ */
143
+ onValueError?: OnValueError;
144
+ /**
145
+ * Prefetch the list of suggested assignees before the user picker is focused.
146
+ * WARNING: please consider carefully before deciding to prefetch your suggestions
147
+ * as this will increase the load on the recommendations services (has caused HOTs).
148
+ * Please give #help-smart-experiences a ballpark on the expected request volume.
149
+ */
150
+ prefetch?: boolean;
151
+ /**
152
+ * Id of the user interacting with the component.
153
+ * If principalId is not provided, server will extract principalId from the context header, assuming that the user is logged in
154
+ * when making the request. @default “context”
155
+ */
156
+ principalId?: string;
157
+ /**
158
+ * Product-specific Attributes - you should pass in the attribute type that matches your current SupportedProduct.
159
+ * Currently we support additional attributes (BitbucketAttributes) for bitbucket and (ConfluenceAttributes) for Confluence.
160
+ */
161
+ productAttributes?: ProductAttributes;
162
+ /**
163
+ * Product identifier. If you are an NPF, please ensure your product has been onboarded with
164
+ * Cross-product user-search @see https://developer.atlassian.com/cloud/cross-product-user-search/
165
+ * If you are still waiting for CPUS, you can use the `people` productKey in the interim.
166
+ */
167
+ productKey: string;
168
+ /**
169
+ * Filter to be applied to the eventual query to CPUS for user suggestions.
170
+ * Example:`account_status:"active" AND (NOT email_domain:"connect.atlassian.com")`
171
+ * will remove inactive users from the list of suggestions.
172
+ */
173
+ searchQueryFilter?: string;
174
+ /**
175
+ * Identifier for the product's tenant, also known as tenantId or cloudId
176
+ */
177
+ siteId: string;
178
+ /**
179
+ * Identifier for the organization in which to search for teams.
180
+ */
181
+ orgId?: string;
182
+ }
183
+ export interface Props extends SmartProps, UserPickerProps, WithAnalyticsEventsProps {
184
+ /**
185
+ * The pre-selected values for the smart user picker. Supports only Users and Teams default value hydration.
186
+ * If the `DefaultValue` contains only an `id` and `type` (it conforms to an `OptionIdentifier`)
187
+ * then the values will be automatically hydrated.
188
+ * If the value has a `name` then it is considered hydrated and will be ignored.
189
+ * Uses Confluence and Jira if called from there, else uses Identity or Legion for teams. If a value could not be found, or there was
190
+ * a network failure during the hydration, the value will be rendered with the label 'Unknown'. Else, if there were any other error
191
+ * during default value hydration, no default values will be rendered, use `onValueError` to handle this.
192
+ * `defaultValue` differs from `value` in that it sets the initial value then leaves the component 'uncontrolled'
193
+ * whereas setting the `value` prop delegates responsibility for maintaining the value to the caller
194
+ * (i.e. listen to `onChange`)
195
+ */
196
+ defaultValue?: DefaultValue;
197
+ /**
198
+ * Identifier for informing the server on where the user picker has been mounted.
199
+ * Unlike User Picker, the fieldId in Smart User Picker is mandatory.
200
+ * The server uses the fieldId to determine which model to utilize when
201
+ * generating suggestions.
202
+ * All fieldId's will be bucketed into a model that provides generic smart results,
203
+ * except "assignee", "mentions" which are specifically trained for Jira Assignee and
204
+ * @Mentions. For specifically trained models, please contact #help-smart-experiences.
205
+ */
206
+ fieldId: string;
207
+ }
208
+ export {};
@@ -0,0 +1,3 @@
1
+ import { ConcurrentExperience } from '@atlaskit/ufo';
2
+ export declare const smartUserPickerRenderedUfoExperience: ConcurrentExperience;
3
+ export declare const useUFOConcurrentExperience: (experience: ConcurrentExperience, id: string) => void;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Tries to get the most specific messages bundle for a given locale.
3
+ *
4
+ * Strategy:
5
+ * 1. Try to find messages with the exact string (i.e. 'fr_FR')
6
+ * 2. If that doesn't work, try to find messages for the country locale (i.e. 'fr')
7
+ * 3. If that doesn't work, return english messages as a fallback.
8
+ *
9
+ * @param locale string specifying the locale like 'en_GB', or 'fr'.
10
+ */
11
+ export declare const getMessagesForLocale: (locale: string) => Promise<Record<string, string>>;