@atlaskit/util-data-test 17.8.2 → 17.8.4

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 (627) hide show
  1. package/.eslintrc.js +6 -0
  2. package/CHANGELOG.md +12 -0
  3. package/dist/cjs/emoji/emoji-repository-usage-clear.js +1 -1
  4. package/dist/cjs/emoji/get-atlassian-emojis.js +1 -1
  5. package/dist/cjs/emoji/get-emoji-provider.js +2 -2
  6. package/dist/cjs/emoji/get-emoji-repository.js +1 -1
  7. package/dist/cjs/emoji/get-emoji-resource-standard-atlassian.js +1 -1
  8. package/dist/cjs/emoji/get-emojis.js +1 -1
  9. package/dist/cjs/emoji/get-site-emojis.js +1 -1
  10. package/dist/cjs/emoji/get-standard-emojis.js +1 -1
  11. package/dist/cjs/emoji-test/get-test-emojis.js +1 -1
  12. package/dist/cjs/emoji-test/test-emoji-repository.js +2 -2
  13. package/dist/cjs/mention/create-mock-mention-name-resolver.js +1 -1
  14. package/dist/cjs/mention/mock-mention-name-client.js +1 -1
  15. package/dist/cjs/mention/mock-mention-resource-with-info-hints.js +1 -1
  16. package/dist/cjs/mention/mock-mention-resource.js +1 -1
  17. package/dist/cjs/mention/mock-presence-resource.js +1 -1
  18. package/dist/cjs/version.json +1 -1
  19. package/dist/es2019/emoji/emoji-repository-usage-clear.js +1 -1
  20. package/dist/es2019/emoji/get-atlassian-emojis.js +1 -1
  21. package/dist/es2019/emoji/get-emoji-provider.js +2 -2
  22. package/dist/es2019/emoji/get-emoji-repository.js +1 -1
  23. package/dist/es2019/emoji/get-emoji-resource-standard-atlassian.js +1 -1
  24. package/dist/es2019/emoji/get-emojis.js +1 -1
  25. package/dist/es2019/emoji/get-site-emojis.js +1 -1
  26. package/dist/es2019/emoji/get-standard-emojis.js +1 -1
  27. package/dist/es2019/emoji-test/get-test-emojis.js +1 -1
  28. package/dist/es2019/emoji-test/test-emoji-repository.js +2 -2
  29. package/dist/es2019/mention/create-mock-mention-name-resolver.js +1 -1
  30. package/dist/es2019/mention/mock-mention-name-client.js +1 -1
  31. package/dist/es2019/mention/mock-mention-resource-with-info-hints.js +1 -1
  32. package/dist/es2019/mention/mock-mention-resource.js +1 -1
  33. package/dist/es2019/mention/mock-presence-resource.js +1 -1
  34. package/dist/es2019/version.json +1 -1
  35. package/dist/esm/emoji/emoji-repository-usage-clear.js +1 -1
  36. package/dist/esm/emoji/get-atlassian-emojis.js +1 -1
  37. package/dist/esm/emoji/get-emoji-provider.js +2 -2
  38. package/dist/esm/emoji/get-emoji-repository.js +1 -1
  39. package/dist/esm/emoji/get-emoji-resource-standard-atlassian.js +1 -1
  40. package/dist/esm/emoji/get-emojis.js +1 -1
  41. package/dist/esm/emoji/get-site-emojis.js +1 -1
  42. package/dist/esm/emoji/get-standard-emojis.js +1 -1
  43. package/dist/esm/emoji-test/get-test-emojis.js +1 -1
  44. package/dist/esm/emoji-test/test-emoji-repository.js +2 -2
  45. package/dist/esm/mention/create-mock-mention-name-resolver.js +1 -1
  46. package/dist/esm/mention/mock-mention-name-client.js +1 -1
  47. package/dist/esm/mention/mock-mention-resource-with-info-hints.js +1 -1
  48. package/dist/esm/mention/mock-mention-resource.js +1 -1
  49. package/dist/esm/mention/mock-presence-resource.js +1 -1
  50. package/dist/esm/version.json +1 -1
  51. package/dist/types/emoji/src/api/EmojiLoader.d.ts +13 -0
  52. package/dist/types/emoji/src/api/EmojiRepository.d.ts +72 -0
  53. package/dist/types/emoji/src/api/EmojiRepositoryRegex.d.ts +1 -0
  54. package/dist/types/emoji/src/api/EmojiResource.d.ts +139 -0
  55. package/dist/types/emoji/src/api/EmojiUtils.d.ts +24 -0
  56. package/dist/types/emoji/src/api/internal/Comparators.d.ts +109 -0
  57. package/dist/types/emoji/src/api/internal/UsageFrequencyTracker.d.ts +46 -0
  58. package/dist/types/emoji/src/api/media/MediaEmojiCache.d.ts +53 -0
  59. package/dist/types/emoji/src/api/media/MediaImageLoader.d.ts +21 -0
  60. package/dist/types/emoji/src/api/media/SiteEmojiResource.d.ts +46 -0
  61. package/dist/types/emoji/src/api/media/TokenManager.d.ts +13 -0
  62. package/dist/types/emoji/src/components/i18n.d.ts +227 -0
  63. package/dist/types/emoji/src/components/picker/categories.d.ts +7 -0
  64. package/dist/types/emoji/src/resource.d.ts +5 -0
  65. package/dist/types/emoji/src/types.d.ts +363 -0
  66. package/dist/types/emoji/src/util/DuplicateLimitedQueue.d.ts +91 -0
  67. package/dist/types/emoji/src/util/StoredDuplicateLimitedQueue.d.ts +46 -0
  68. package/dist/types/emoji/src/util/analytics/samplingUfo.d.ts +38 -0
  69. package/dist/types/emoji/src/util/analytics/ufoExperiences.d.ts +14 -0
  70. package/dist/types/emoji/src/util/constants.d.ts +60 -0
  71. package/dist/types/emoji/src/util/image.d.ts +10 -0
  72. package/dist/types/emoji/src/util/logger.d.ts +4 -0
  73. package/dist/types/emoji/src/util/storage-available.d.ts +3 -0
  74. package/dist/types/emoji/src/util/type-helpers.d.ts +23 -0
  75. package/dist/types/emoji/src/utils.d.ts +3 -0
  76. package/dist/types/mention/src/_constants.d.ts +1 -0
  77. package/dist/types/mention/src/api/ContextMentionResource.d.ts +23 -0
  78. package/dist/types/mention/src/api/MentionNameClient.d.ts +11 -0
  79. package/dist/types/mention/src/api/MentionNameResolver.d.ts +23 -0
  80. package/dist/types/mention/src/api/MentionResource.d.ts +93 -0
  81. package/dist/types/mention/src/api/PresenceResource.d.ts +119 -0
  82. package/dist/types/mention/src/api/TeamMentionResource.d.ts +33 -0
  83. package/dist/types/mention/src/components/LockCircleIcon/index.d.ts +3 -0
  84. package/dist/types/mention/src/components/Mention/PrimitiveMention.d.ts +7 -0
  85. package/dist/types/mention/src/components/Mention/ResourcedMention.d.ts +27 -0
  86. package/dist/types/mention/src/components/Mention/index.d.ts +31 -0
  87. package/dist/types/mention/src/components/Mention/ufoExperiences.d.ts +9 -0
  88. package/dist/types/mention/src/components/MentionDescriptionByline/TeamMentionDescriptionByline.d.ts +7 -0
  89. package/dist/types/mention/src/components/MentionDescriptionByline/UserMentionDescriptionByline.d.ts +5 -0
  90. package/dist/types/mention/src/components/MentionDescriptionByline/index.d.ts +5 -0
  91. package/dist/types/mention/src/components/MentionDescriptionByline/styles.d.ts +5 -0
  92. package/dist/types/mention/src/components/MentionDescriptionByline/types.d.ts +4 -0
  93. package/dist/types/mention/src/components/MentionItem/MentionHighlightHelpers.d.ts +3 -0
  94. package/dist/types/mention/src/components/MentionItem/index.d.ts +16 -0
  95. package/dist/types/mention/src/components/MentionItem/styles.d.ts +46 -0
  96. package/dist/types/mention/src/components/MentionList/index.d.ts +41 -0
  97. package/dist/types/mention/src/components/MentionList/styles.d.ts +8 -0
  98. package/dist/types/mention/src/components/MentionListError/GenericErrorIllustration.d.ts +7 -0
  99. package/dist/types/mention/src/components/MentionListError/index.d.ts +13 -0
  100. package/dist/types/mention/src/components/MentionListError/styles.d.ts +17 -0
  101. package/dist/types/mention/src/components/MentionPicker/index.d.ts +77 -0
  102. package/dist/types/mention/src/components/MentionPicker/styles.d.ts +12 -0
  103. package/dist/types/mention/src/components/MessagesIntlProvider/index.d.ts +3 -0
  104. package/dist/types/mention/src/components/NoAccessTooltip/index.d.ts +6 -0
  105. package/dist/types/mention/src/components/NoAccessTooltip/main.d.ts +7 -0
  106. package/dist/types/mention/src/components/Popup/index.d.ts +26 -0
  107. package/dist/types/mention/src/components/ResourcedMentionList/index.d.ts +46 -0
  108. package/dist/types/mention/src/components/Scrollable/index.d.ts +11 -0
  109. package/dist/types/mention/src/components/Scrollable/styles.d.ts +5 -0
  110. package/dist/types/mention/src/components/i18n.d.ts +57 -0
  111. package/dist/types/mention/src/i18n/cs.d.ts +20 -0
  112. package/dist/types/mention/src/i18n/da.d.ts +20 -0
  113. package/dist/types/mention/src/i18n/de.d.ts +20 -0
  114. package/dist/types/mention/src/i18n/en.d.ts +20 -0
  115. package/dist/types/mention/src/i18n/en_GB.d.ts +20 -0
  116. package/dist/types/mention/src/i18n/es.d.ts +20 -0
  117. package/dist/types/mention/src/i18n/et.d.ts +20 -0
  118. package/dist/types/mention/src/i18n/fi.d.ts +20 -0
  119. package/dist/types/mention/src/i18n/fr.d.ts +20 -0
  120. package/dist/types/mention/src/i18n/hu.d.ts +20 -0
  121. package/dist/types/mention/src/i18n/is.d.ts +24 -0
  122. package/dist/types/mention/src/i18n/it.d.ts +20 -0
  123. package/dist/types/mention/src/i18n/ja.d.ts +20 -0
  124. package/dist/types/mention/src/i18n/ko.d.ts +20 -0
  125. package/dist/types/mention/src/i18n/nb.d.ts +20 -0
  126. package/dist/types/mention/src/i18n/nl.d.ts +20 -0
  127. package/dist/types/mention/src/i18n/pl.d.ts +20 -0
  128. package/dist/types/mention/src/i18n/pt_BR.d.ts +20 -0
  129. package/dist/types/mention/src/i18n/pt_PT.d.ts +20 -0
  130. package/dist/types/mention/src/i18n/ro.d.ts +24 -0
  131. package/dist/types/mention/src/i18n/ru.d.ts +20 -0
  132. package/dist/types/mention/src/i18n/sk.d.ts +20 -0
  133. package/dist/types/mention/src/i18n/sv.d.ts +20 -0
  134. package/dist/types/mention/src/i18n/th.d.ts +20 -0
  135. package/dist/types/mention/src/i18n/tr.d.ts +20 -0
  136. package/dist/types/mention/src/i18n/uk.d.ts +20 -0
  137. package/dist/types/mention/src/i18n/vi.d.ts +20 -0
  138. package/dist/types/mention/src/i18n/zh.d.ts +20 -0
  139. package/dist/types/mention/src/i18n/zh_TW.d.ts +20 -0
  140. package/dist/types/mention/src/index.d.ts +17 -0
  141. package/dist/types/mention/src/resource.d.ts +10 -0
  142. package/dist/types/mention/src/shared-styles.d.ts +5 -0
  143. package/dist/types/mention/src/types.d.ts +168 -0
  144. package/dist/types/mention/src/util/analytics.d.ts +30 -0
  145. package/dist/types/mention/src/util/i18n.d.ts +29 -0
  146. package/dist/types/mention/src/util/id.d.ts +2 -0
  147. package/dist/types/mention/src/util/index.d.ts +1 -0
  148. package/dist/types/mention/src/util/logger.d.ts +4 -0
  149. package/dist/types/mention/src/util/mouse.d.ts +8 -0
  150. package/dist/types/task-decision/src/analytics/index.d.ts +2 -0
  151. package/dist/types/task-decision/src/api/TaskDecisionResource.d.ts +67 -0
  152. package/dist/types/task-decision/src/api/TaskDecisionUtils.d.ts +4 -0
  153. package/dist/types/task-decision/src/components/DecisionItem.d.ts +15 -0
  154. package/dist/types/task-decision/src/components/DecisionList.d.ts +9 -0
  155. package/dist/types/task-decision/src/components/Item.d.ts +25 -0
  156. package/dist/types/task-decision/src/components/ResourcedTaskItem.d.ts +35 -0
  157. package/dist/types/task-decision/src/components/TaskItem.d.ts +21 -0
  158. package/dist/types/task-decision/src/components/TaskList.d.ts +9 -0
  159. package/dist/types/task-decision/src/components/styles.d.ts +13 -0
  160. package/dist/types/task-decision/src/components/theme.d.ts +61 -0
  161. package/dist/types/task-decision/src/index.d.ts +9 -0
  162. package/dist/types/task-decision/src/type-helpers.d.ts +6 -0
  163. package/dist/types/task-decision/src/types.d.ts +160 -0
  164. package/dist/types/user-picker/src/analytics.d.ts +24 -0
  165. package/dist/types/user-picker/src/clients/UserSourceProvider.d.ts +11 -0
  166. package/dist/types/user-picker/src/components/AddOptionAvatar.d.ts +6 -0
  167. package/dist/types/user-picker/src/components/AvatarItemOption.d.ts +13 -0
  168. package/dist/types/user-picker/src/components/BaseUserPicker.d.ts +65 -0
  169. package/dist/types/user-picker/src/components/ClearIndicator.d.ts +6 -0
  170. package/dist/types/user-picker/src/components/CustomOption/index.d.ts +3 -0
  171. package/dist/types/user-picker/src/components/CustomOption/main.d.ts +15 -0
  172. package/dist/types/user-picker/src/components/EmailOption/index.d.ts +3 -0
  173. package/dist/types/user-picker/src/components/EmailOption/main.d.ts +18 -0
  174. package/dist/types/user-picker/src/components/ExternalUserOption/ExternalAvatarItemOption.d.ts +11 -0
  175. package/dist/types/user-picker/src/components/ExternalUserOption/InfoIcon.d.ts +3 -0
  176. package/dist/types/user-picker/src/components/ExternalUserOption/SourcesTooltipContent.d.ts +6 -0
  177. package/dist/types/user-picker/src/components/ExternalUserOption/index.d.ts +3 -0
  178. package/dist/types/user-picker/src/components/ExternalUserOption/main.d.ts +12 -0
  179. package/dist/types/user-picker/src/components/ExternalUserSourcesContainer.d.ts +15 -0
  180. package/dist/types/user-picker/src/components/GroupOption/index.d.ts +3 -0
  181. package/dist/types/user-picker/src/components/GroupOption/main.d.ts +16 -0
  182. package/dist/types/user-picker/src/components/HighlightText.d.ts +9 -0
  183. package/dist/types/user-picker/src/components/Input.d.ts +22 -0
  184. package/dist/types/user-picker/src/components/Menu.d.ts +10 -0
  185. package/dist/types/user-picker/src/components/MessagesIntlProvider.d.ts +3 -0
  186. package/dist/types/user-picker/src/components/MultiValue.d.ts +26 -0
  187. package/dist/types/user-picker/src/components/MultiValueContainer.d.ts +30 -0
  188. package/dist/types/user-picker/src/components/Option.d.ts +14 -0
  189. package/dist/types/user-picker/src/components/PopupControl.d.ts +7 -0
  190. package/dist/types/user-picker/src/components/PopupInput.d.ts +8 -0
  191. package/dist/types/user-picker/src/components/PopupUserPicker.d.ts +39 -0
  192. package/dist/types/user-picker/src/components/SingleValue.d.ts +5 -0
  193. package/dist/types/user-picker/src/components/SingleValueContainer.d.ts +9 -0
  194. package/dist/types/user-picker/src/components/SizeableAvatar.d.ts +10 -0
  195. package/dist/types/user-picker/src/components/TeamOption/index.d.ts +3 -0
  196. package/dist/types/user-picker/src/components/TeamOption/main.d.ts +16 -0
  197. package/dist/types/user-picker/src/components/UserOption.d.ts +15 -0
  198. package/dist/types/user-picker/src/components/UserPicker.d.ts +16 -0
  199. package/dist/types/user-picker/src/components/assets/github.d.ts +2 -0
  200. package/dist/types/user-picker/src/components/assets/google.d.ts +2 -0
  201. package/dist/types/user-picker/src/components/assets/microsoft.d.ts +2 -0
  202. package/dist/types/user-picker/src/components/assets/slack.d.ts +2 -0
  203. package/dist/types/user-picker/src/components/batch.d.ts +1 -0
  204. package/dist/types/user-picker/src/components/components.d.ts +49 -0
  205. package/dist/types/user-picker/src/components/creatable.d.ts +12 -0
  206. package/dist/types/user-picker/src/components/creatableEmailSuggestion.d.ts +19 -0
  207. package/dist/types/user-picker/src/components/emailValidation.d.ts +3 -0
  208. package/dist/types/user-picker/src/components/i18n.d.ts +132 -0
  209. package/dist/types/user-picker/src/components/popup.d.ts +48 -0
  210. package/dist/types/user-picker/src/components/styles.d.ts +42 -0
  211. package/dist/types/user-picker/src/components/utils.d.ts +29 -0
  212. package/dist/types/user-picker/src/i18n/cs.d.ts +35 -0
  213. package/dist/types/user-picker/src/i18n/da.d.ts +35 -0
  214. package/dist/types/user-picker/src/i18n/de.d.ts +35 -0
  215. package/dist/types/user-picker/src/i18n/en.d.ts +35 -0
  216. package/dist/types/user-picker/src/i18n/en_GB.d.ts +35 -0
  217. package/dist/types/user-picker/src/i18n/es.d.ts +35 -0
  218. package/dist/types/user-picker/src/i18n/et.d.ts +15 -0
  219. package/dist/types/user-picker/src/i18n/fi.d.ts +35 -0
  220. package/dist/types/user-picker/src/i18n/fr.d.ts +35 -0
  221. package/dist/types/user-picker/src/i18n/hu.d.ts +35 -0
  222. package/dist/types/user-picker/src/i18n/is.d.ts +7 -0
  223. package/dist/types/user-picker/src/i18n/it.d.ts +35 -0
  224. package/dist/types/user-picker/src/i18n/ja.d.ts +35 -0
  225. package/dist/types/user-picker/src/i18n/ko.d.ts +35 -0
  226. package/dist/types/user-picker/src/i18n/nb.d.ts +35 -0
  227. package/dist/types/user-picker/src/i18n/nl.d.ts +35 -0
  228. package/dist/types/user-picker/src/i18n/pl.d.ts +35 -0
  229. package/dist/types/user-picker/src/i18n/pt_BR.d.ts +35 -0
  230. package/dist/types/user-picker/src/i18n/pt_PT.d.ts +15 -0
  231. package/dist/types/user-picker/src/i18n/ro.d.ts +7 -0
  232. package/dist/types/user-picker/src/i18n/ru.d.ts +35 -0
  233. package/dist/types/user-picker/src/i18n/sk.d.ts +15 -0
  234. package/dist/types/user-picker/src/i18n/sv.d.ts +35 -0
  235. package/dist/types/user-picker/src/i18n/th.d.ts +35 -0
  236. package/dist/types/user-picker/src/i18n/tr.d.ts +35 -0
  237. package/dist/types/user-picker/src/i18n/uk.d.ts +35 -0
  238. package/dist/types/user-picker/src/i18n/vi.d.ts +35 -0
  239. package/dist/types/user-picker/src/i18n/zh.d.ts +35 -0
  240. package/dist/types/user-picker/src/i18n/zh_TW.d.ts +35 -0
  241. package/dist/types/user-picker/src/index.d.ts +7 -0
  242. package/dist/types/user-picker/src/types.d.ts +318 -0
  243. package/dist/types/user-picker/src/util/i18n-util.d.ts +11 -0
  244. package/dist/types/user-picker/src/util/ufoExperiences.d.ts +10 -0
  245. package/dist/{types-ts4.5 → types/util-data-test/src}/emoji/emoji-from-upload.d.ts +1 -1
  246. package/dist/{types-ts4.5 → types/util-data-test/src}/emoji/emoji-repository-usage-clear.d.ts +2 -2
  247. package/dist/{types-ts4.5 → types/util-data-test/src}/emoji/emoji-resource-usage-clear.d.ts +1 -1
  248. package/dist/types/{emoji → util-data-test/src/emoji}/get-atlassian-emoji-data.d.ts +1 -1
  249. package/dist/types/util-data-test/src/emoji/get-atlassian-emojis.d.ts +1 -0
  250. package/dist/types/{emoji → util-data-test/src/emoji}/get-emoji-provider.d.ts +1 -1
  251. package/dist/types/{emoji → util-data-test/src/emoji}/get-emoji-repository.d.ts +1 -1
  252. package/dist/types/util-data-test/src/emoji/get-emojis.d.ts +1 -0
  253. package/dist/types/{emoji → util-data-test/src/emoji}/get-site-emoji-data.d.ts +1 -1
  254. package/dist/types/util-data-test/src/emoji/get-site-emojis.d.ts +1 -0
  255. package/dist/types/{emoji → util-data-test/src/emoji}/get-standard-emoji-data.d.ts +1 -1
  256. package/dist/types/util-data-test/src/emoji/get-standard-emojis.d.ts +1 -0
  257. package/dist/types/{emoji → util-data-test/src/emoji}/mock-emoji-resource-factory.d.ts +1 -1
  258. package/dist/types/{emoji → util-data-test/src/emoji}/mock-emoji-resource.d.ts +2 -2
  259. package/dist/types/{emoji → util-data-test/src/emoji}/mock-non-uploading-emoji-resource-factory.d.ts +1 -1
  260. package/dist/types/{emoji → util-data-test/src/emoji}/mock-non-uploading-emoji-resource.d.ts +2 -2
  261. package/dist/{types-ts4.5 → types/util-data-test/src}/emoji/types.d.ts +1 -1
  262. package/dist/{types-ts4.5 → types/util-data-test/src}/emoji-test/filter-to-searchable.d.ts +1 -1
  263. package/dist/{types-ts4.5 → types/util-data-test/src}/emoji-test/get-test-emoji-resource-from-repository.d.ts +1 -1
  264. package/dist/types/{emoji-test → util-data-test/src/emoji-test}/get-test-emojis.d.ts +1 -1
  265. package/dist/types/util-data-test/src/emoji-test/get-test-searchable-emojis.d.ts +1 -0
  266. package/dist/types/util-data-test/src/emoji-test/test-emoji-repository.d.ts +5 -0
  267. package/dist/types/util-data-test/src/logger.d.ts +4 -0
  268. package/dist/types/{mention → util-data-test/src/mention}/create-mock-mention-name-resolver.d.ts +1 -1
  269. package/dist/{types-ts4.5 → types/util-data-test/src}/mention/mock-mention-name-client.d.ts +1 -1
  270. package/dist/types/{mention → util-data-test/src/mention}/mock-mention-resource-with-info-hints.d.ts +1 -1
  271. package/dist/{types-ts4.5 → types/util-data-test/src}/mention/mock-mention-resource.d.ts +2 -2
  272. package/dist/types/{mention → util-data-test/src/mention}/mock-presence-resource.d.ts +1 -1
  273. package/dist/types/{task-decision → util-data-test/src/task-decision}/mock-task-decision-resource.d.ts +1 -1
  274. package/dist/types/{task-decision → util-data-test/src/task-decision}/utils.d.ts +2 -2
  275. package/dist/types/util-data-test/src/user-picker/ChevronRight.d.ts +3 -0
  276. package/dist/types/{user-picker → util-data-test/src/user-picker}/user-picker-custom-data.d.ts +1 -1
  277. package/dist/types/{user-picker → util-data-test/src/user-picker}/user-picker-team-data.d.ts +1 -1
  278. package/dist/types-ts4.5/emoji/src/api/EmojiLoader.d.ts +13 -0
  279. package/dist/types-ts4.5/emoji/src/api/EmojiRepository.d.ts +72 -0
  280. package/dist/types-ts4.5/emoji/src/api/EmojiRepositoryRegex.d.ts +1 -0
  281. package/dist/types-ts4.5/emoji/src/api/EmojiResource.d.ts +139 -0
  282. package/dist/types-ts4.5/emoji/src/api/EmojiUtils.d.ts +24 -0
  283. package/dist/types-ts4.5/emoji/src/api/internal/Comparators.d.ts +109 -0
  284. package/dist/types-ts4.5/emoji/src/api/internal/UsageFrequencyTracker.d.ts +46 -0
  285. package/dist/types-ts4.5/emoji/src/api/media/MediaEmojiCache.d.ts +53 -0
  286. package/dist/types-ts4.5/emoji/src/api/media/MediaImageLoader.d.ts +21 -0
  287. package/dist/types-ts4.5/emoji/src/api/media/SiteEmojiResource.d.ts +46 -0
  288. package/dist/types-ts4.5/emoji/src/api/media/TokenManager.d.ts +13 -0
  289. package/dist/types-ts4.5/emoji/src/components/i18n.d.ts +227 -0
  290. package/dist/types-ts4.5/emoji/src/components/picker/categories.d.ts +7 -0
  291. package/dist/types-ts4.5/emoji/src/resource.d.ts +5 -0
  292. package/dist/types-ts4.5/emoji/src/types.d.ts +363 -0
  293. package/dist/types-ts4.5/emoji/src/util/DuplicateLimitedQueue.d.ts +91 -0
  294. package/dist/types-ts4.5/emoji/src/util/StoredDuplicateLimitedQueue.d.ts +46 -0
  295. package/dist/types-ts4.5/emoji/src/util/analytics/samplingUfo.d.ts +38 -0
  296. package/dist/types-ts4.5/emoji/src/util/analytics/ufoExperiences.d.ts +14 -0
  297. package/dist/types-ts4.5/emoji/src/util/constants.d.ts +60 -0
  298. package/dist/types-ts4.5/emoji/src/util/image.d.ts +10 -0
  299. package/dist/types-ts4.5/emoji/src/util/storage-available.d.ts +3 -0
  300. package/dist/types-ts4.5/emoji/src/util/type-helpers.d.ts +23 -0
  301. package/dist/types-ts4.5/emoji/src/utils.d.ts +3 -0
  302. package/dist/types-ts4.5/mention/src/_constants.d.ts +1 -0
  303. package/dist/types-ts4.5/mention/src/api/ContextMentionResource.d.ts +23 -0
  304. package/dist/types-ts4.5/mention/src/api/MentionNameClient.d.ts +11 -0
  305. package/dist/types-ts4.5/mention/src/api/MentionNameResolver.d.ts +23 -0
  306. package/dist/types-ts4.5/mention/src/api/MentionResource.d.ts +93 -0
  307. package/dist/types-ts4.5/mention/src/api/PresenceResource.d.ts +119 -0
  308. package/dist/types-ts4.5/mention/src/api/TeamMentionResource.d.ts +33 -0
  309. package/dist/types-ts4.5/mention/src/components/LockCircleIcon/index.d.ts +3 -0
  310. package/dist/types-ts4.5/mention/src/components/Mention/PrimitiveMention.d.ts +7 -0
  311. package/dist/types-ts4.5/mention/src/components/Mention/ResourcedMention.d.ts +27 -0
  312. package/dist/types-ts4.5/mention/src/components/Mention/index.d.ts +31 -0
  313. package/dist/types-ts4.5/mention/src/components/Mention/ufoExperiences.d.ts +9 -0
  314. package/dist/types-ts4.5/mention/src/components/MentionDescriptionByline/TeamMentionDescriptionByline.d.ts +7 -0
  315. package/dist/types-ts4.5/mention/src/components/MentionDescriptionByline/UserMentionDescriptionByline.d.ts +5 -0
  316. package/dist/types-ts4.5/mention/src/components/MentionDescriptionByline/index.d.ts +5 -0
  317. package/dist/types-ts4.5/mention/src/components/MentionDescriptionByline/styles.d.ts +5 -0
  318. package/dist/types-ts4.5/mention/src/components/MentionDescriptionByline/types.d.ts +4 -0
  319. package/dist/types-ts4.5/mention/src/components/MentionItem/MentionHighlightHelpers.d.ts +3 -0
  320. package/dist/types-ts4.5/mention/src/components/MentionItem/index.d.ts +16 -0
  321. package/dist/types-ts4.5/mention/src/components/MentionItem/styles.d.ts +46 -0
  322. package/dist/types-ts4.5/mention/src/components/MentionList/index.d.ts +41 -0
  323. package/dist/types-ts4.5/mention/src/components/MentionList/styles.d.ts +8 -0
  324. package/dist/types-ts4.5/mention/src/components/MentionListError/GenericErrorIllustration.d.ts +7 -0
  325. package/dist/types-ts4.5/mention/src/components/MentionListError/index.d.ts +13 -0
  326. package/dist/types-ts4.5/mention/src/components/MentionListError/styles.d.ts +17 -0
  327. package/dist/types-ts4.5/mention/src/components/MentionPicker/index.d.ts +77 -0
  328. package/dist/types-ts4.5/mention/src/components/MentionPicker/styles.d.ts +12 -0
  329. package/dist/types-ts4.5/mention/src/components/MessagesIntlProvider/index.d.ts +3 -0
  330. package/dist/types-ts4.5/mention/src/components/NoAccessTooltip/index.d.ts +6 -0
  331. package/dist/types-ts4.5/mention/src/components/NoAccessTooltip/main.d.ts +7 -0
  332. package/dist/types-ts4.5/mention/src/components/Popup/index.d.ts +26 -0
  333. package/dist/types-ts4.5/mention/src/components/ResourcedMentionList/index.d.ts +46 -0
  334. package/dist/types-ts4.5/mention/src/components/Scrollable/index.d.ts +11 -0
  335. package/dist/types-ts4.5/mention/src/components/Scrollable/styles.d.ts +5 -0
  336. package/dist/types-ts4.5/mention/src/components/i18n.d.ts +57 -0
  337. package/dist/types-ts4.5/mention/src/i18n/cs.d.ts +20 -0
  338. package/dist/types-ts4.5/mention/src/i18n/da.d.ts +20 -0
  339. package/dist/types-ts4.5/mention/src/i18n/de.d.ts +20 -0
  340. package/dist/types-ts4.5/mention/src/i18n/en.d.ts +20 -0
  341. package/dist/types-ts4.5/mention/src/i18n/en_GB.d.ts +20 -0
  342. package/dist/types-ts4.5/mention/src/i18n/es.d.ts +20 -0
  343. package/dist/types-ts4.5/mention/src/i18n/et.d.ts +20 -0
  344. package/dist/types-ts4.5/mention/src/i18n/fi.d.ts +20 -0
  345. package/dist/types-ts4.5/mention/src/i18n/fr.d.ts +20 -0
  346. package/dist/types-ts4.5/mention/src/i18n/hu.d.ts +20 -0
  347. package/dist/types-ts4.5/mention/src/i18n/is.d.ts +24 -0
  348. package/dist/types-ts4.5/mention/src/i18n/it.d.ts +20 -0
  349. package/dist/types-ts4.5/mention/src/i18n/ja.d.ts +20 -0
  350. package/dist/types-ts4.5/mention/src/i18n/ko.d.ts +20 -0
  351. package/dist/types-ts4.5/mention/src/i18n/nb.d.ts +20 -0
  352. package/dist/types-ts4.5/mention/src/i18n/nl.d.ts +20 -0
  353. package/dist/types-ts4.5/mention/src/i18n/pl.d.ts +20 -0
  354. package/dist/types-ts4.5/mention/src/i18n/pt_BR.d.ts +20 -0
  355. package/dist/types-ts4.5/mention/src/i18n/pt_PT.d.ts +20 -0
  356. package/dist/types-ts4.5/mention/src/i18n/ro.d.ts +24 -0
  357. package/dist/types-ts4.5/mention/src/i18n/ru.d.ts +20 -0
  358. package/dist/types-ts4.5/mention/src/i18n/sk.d.ts +20 -0
  359. package/dist/types-ts4.5/mention/src/i18n/sv.d.ts +20 -0
  360. package/dist/types-ts4.5/mention/src/i18n/th.d.ts +20 -0
  361. package/dist/types-ts4.5/mention/src/i18n/tr.d.ts +20 -0
  362. package/dist/types-ts4.5/mention/src/i18n/uk.d.ts +20 -0
  363. package/dist/types-ts4.5/mention/src/i18n/vi.d.ts +20 -0
  364. package/dist/types-ts4.5/mention/src/i18n/zh.d.ts +20 -0
  365. package/dist/types-ts4.5/mention/src/i18n/zh_TW.d.ts +20 -0
  366. package/dist/types-ts4.5/mention/src/index.d.ts +17 -0
  367. package/dist/types-ts4.5/mention/src/resource.d.ts +10 -0
  368. package/dist/types-ts4.5/mention/src/shared-styles.d.ts +5 -0
  369. package/dist/types-ts4.5/mention/src/types.d.ts +168 -0
  370. package/dist/types-ts4.5/mention/src/util/analytics.d.ts +30 -0
  371. package/dist/types-ts4.5/mention/src/util/i18n.d.ts +29 -0
  372. package/dist/types-ts4.5/mention/src/util/id.d.ts +2 -0
  373. package/dist/types-ts4.5/mention/src/util/index.d.ts +1 -0
  374. package/dist/types-ts4.5/mention/src/util/mouse.d.ts +8 -0
  375. package/dist/types-ts4.5/task-decision/src/analytics/index.d.ts +2 -0
  376. package/dist/types-ts4.5/task-decision/src/api/TaskDecisionResource.d.ts +67 -0
  377. package/dist/types-ts4.5/task-decision/src/api/TaskDecisionUtils.d.ts +4 -0
  378. package/dist/types-ts4.5/task-decision/src/components/DecisionItem.d.ts +15 -0
  379. package/dist/types-ts4.5/task-decision/src/components/DecisionList.d.ts +9 -0
  380. package/dist/types-ts4.5/task-decision/src/components/Item.d.ts +25 -0
  381. package/dist/types-ts4.5/task-decision/src/components/ResourcedTaskItem.d.ts +35 -0
  382. package/dist/types-ts4.5/task-decision/src/components/TaskItem.d.ts +21 -0
  383. package/dist/types-ts4.5/task-decision/src/components/TaskList.d.ts +9 -0
  384. package/dist/types-ts4.5/task-decision/src/components/styles.d.ts +13 -0
  385. package/dist/types-ts4.5/task-decision/src/components/theme.d.ts +61 -0
  386. package/dist/types-ts4.5/task-decision/src/index.d.ts +9 -0
  387. package/dist/types-ts4.5/task-decision/src/type-helpers.d.ts +6 -0
  388. package/dist/types-ts4.5/task-decision/src/types.d.ts +160 -0
  389. package/dist/types-ts4.5/user-picker/src/analytics.d.ts +24 -0
  390. package/dist/types-ts4.5/user-picker/src/clients/UserSourceProvider.d.ts +11 -0
  391. package/dist/types-ts4.5/user-picker/src/components/AddOptionAvatar.d.ts +6 -0
  392. package/dist/types-ts4.5/user-picker/src/components/AvatarItemOption.d.ts +13 -0
  393. package/dist/types-ts4.5/user-picker/src/components/BaseUserPicker.d.ts +65 -0
  394. package/dist/types-ts4.5/user-picker/src/components/ClearIndicator.d.ts +6 -0
  395. package/dist/types-ts4.5/user-picker/src/components/CustomOption/index.d.ts +3 -0
  396. package/dist/types-ts4.5/user-picker/src/components/CustomOption/main.d.ts +15 -0
  397. package/dist/types-ts4.5/user-picker/src/components/EmailOption/index.d.ts +3 -0
  398. package/dist/types-ts4.5/user-picker/src/components/EmailOption/main.d.ts +18 -0
  399. package/dist/types-ts4.5/user-picker/src/components/ExternalUserOption/ExternalAvatarItemOption.d.ts +11 -0
  400. package/dist/types-ts4.5/user-picker/src/components/ExternalUserOption/SourcesTooltipContent.d.ts +6 -0
  401. package/dist/types-ts4.5/user-picker/src/components/ExternalUserOption/index.d.ts +3 -0
  402. package/dist/types-ts4.5/user-picker/src/components/ExternalUserOption/main.d.ts +12 -0
  403. package/dist/types-ts4.5/user-picker/src/components/ExternalUserSourcesContainer.d.ts +15 -0
  404. package/dist/types-ts4.5/user-picker/src/components/GroupOption/index.d.ts +3 -0
  405. package/dist/types-ts4.5/user-picker/src/components/GroupOption/main.d.ts +16 -0
  406. package/dist/types-ts4.5/user-picker/src/components/HighlightText.d.ts +9 -0
  407. package/dist/types-ts4.5/user-picker/src/components/Input.d.ts +22 -0
  408. package/dist/types-ts4.5/user-picker/src/components/Menu.d.ts +10 -0
  409. package/dist/types-ts4.5/user-picker/src/components/MessagesIntlProvider.d.ts +3 -0
  410. package/dist/types-ts4.5/user-picker/src/components/MultiValue.d.ts +26 -0
  411. package/dist/types-ts4.5/user-picker/src/components/MultiValueContainer.d.ts +30 -0
  412. package/dist/types-ts4.5/user-picker/src/components/Option.d.ts +14 -0
  413. package/dist/types-ts4.5/user-picker/src/components/PopupControl.d.ts +7 -0
  414. package/dist/types-ts4.5/user-picker/src/components/PopupInput.d.ts +8 -0
  415. package/dist/types-ts4.5/user-picker/src/components/PopupUserPicker.d.ts +39 -0
  416. package/dist/types-ts4.5/user-picker/src/components/SingleValue.d.ts +5 -0
  417. package/dist/types-ts4.5/user-picker/src/components/SingleValueContainer.d.ts +9 -0
  418. package/dist/types-ts4.5/user-picker/src/components/SizeableAvatar.d.ts +10 -0
  419. package/dist/types-ts4.5/user-picker/src/components/TeamOption/index.d.ts +3 -0
  420. package/dist/types-ts4.5/user-picker/src/components/TeamOption/main.d.ts +16 -0
  421. package/dist/types-ts4.5/user-picker/src/components/UserOption.d.ts +15 -0
  422. package/dist/types-ts4.5/user-picker/src/components/UserPicker.d.ts +16 -0
  423. package/dist/types-ts4.5/user-picker/src/components/assets/github.d.ts +2 -0
  424. package/dist/types-ts4.5/user-picker/src/components/assets/google.d.ts +2 -0
  425. package/dist/types-ts4.5/user-picker/src/components/assets/microsoft.d.ts +2 -0
  426. package/dist/types-ts4.5/user-picker/src/components/assets/slack.d.ts +2 -0
  427. package/dist/types-ts4.5/user-picker/src/components/batch.d.ts +1 -0
  428. package/dist/types-ts4.5/user-picker/src/components/components.d.ts +49 -0
  429. package/dist/types-ts4.5/user-picker/src/components/creatable.d.ts +12 -0
  430. package/dist/types-ts4.5/user-picker/src/components/creatableEmailSuggestion.d.ts +19 -0
  431. package/dist/types-ts4.5/user-picker/src/components/emailValidation.d.ts +3 -0
  432. package/dist/types-ts4.5/user-picker/src/components/i18n.d.ts +132 -0
  433. package/dist/types-ts4.5/user-picker/src/components/popup.d.ts +48 -0
  434. package/dist/types-ts4.5/user-picker/src/components/styles.d.ts +42 -0
  435. package/dist/types-ts4.5/user-picker/src/components/utils.d.ts +29 -0
  436. package/dist/types-ts4.5/user-picker/src/i18n/cs.d.ts +35 -0
  437. package/dist/types-ts4.5/user-picker/src/i18n/da.d.ts +35 -0
  438. package/dist/types-ts4.5/user-picker/src/i18n/de.d.ts +35 -0
  439. package/dist/types-ts4.5/user-picker/src/i18n/en.d.ts +35 -0
  440. package/dist/types-ts4.5/user-picker/src/i18n/en_GB.d.ts +35 -0
  441. package/dist/types-ts4.5/user-picker/src/i18n/es.d.ts +35 -0
  442. package/dist/types-ts4.5/user-picker/src/i18n/et.d.ts +15 -0
  443. package/dist/types-ts4.5/user-picker/src/i18n/fi.d.ts +35 -0
  444. package/dist/types-ts4.5/user-picker/src/i18n/fr.d.ts +35 -0
  445. package/dist/types-ts4.5/user-picker/src/i18n/hu.d.ts +35 -0
  446. package/dist/types-ts4.5/user-picker/src/i18n/is.d.ts +7 -0
  447. package/dist/types-ts4.5/user-picker/src/i18n/it.d.ts +35 -0
  448. package/dist/types-ts4.5/user-picker/src/i18n/ja.d.ts +35 -0
  449. package/dist/types-ts4.5/user-picker/src/i18n/ko.d.ts +35 -0
  450. package/dist/types-ts4.5/user-picker/src/i18n/nb.d.ts +35 -0
  451. package/dist/types-ts4.5/user-picker/src/i18n/nl.d.ts +35 -0
  452. package/dist/types-ts4.5/user-picker/src/i18n/pl.d.ts +35 -0
  453. package/dist/types-ts4.5/user-picker/src/i18n/pt_BR.d.ts +35 -0
  454. package/dist/types-ts4.5/user-picker/src/i18n/pt_PT.d.ts +15 -0
  455. package/dist/types-ts4.5/user-picker/src/i18n/ro.d.ts +7 -0
  456. package/dist/types-ts4.5/user-picker/src/i18n/ru.d.ts +35 -0
  457. package/dist/types-ts4.5/user-picker/src/i18n/sk.d.ts +15 -0
  458. package/dist/types-ts4.5/user-picker/src/i18n/sv.d.ts +35 -0
  459. package/dist/types-ts4.5/user-picker/src/i18n/th.d.ts +35 -0
  460. package/dist/types-ts4.5/user-picker/src/i18n/tr.d.ts +35 -0
  461. package/dist/types-ts4.5/user-picker/src/i18n/uk.d.ts +35 -0
  462. package/dist/types-ts4.5/user-picker/src/i18n/vi.d.ts +35 -0
  463. package/dist/types-ts4.5/user-picker/src/i18n/zh.d.ts +35 -0
  464. package/dist/types-ts4.5/user-picker/src/i18n/zh_TW.d.ts +35 -0
  465. package/dist/types-ts4.5/user-picker/src/index.d.ts +7 -0
  466. package/dist/types-ts4.5/user-picker/src/types.d.ts +321 -0
  467. package/dist/types-ts4.5/user-picker/src/util/i18n-util.d.ts +11 -0
  468. package/dist/types-ts4.5/user-picker/src/util/ufoExperiences.d.ts +10 -0
  469. package/dist/{types → types-ts4.5/util-data-test/src}/emoji/emoji-from-upload.d.ts +1 -1
  470. package/dist/{types → types-ts4.5/util-data-test/src}/emoji/emoji-repository-usage-clear.d.ts +2 -2
  471. package/dist/{types → types-ts4.5/util-data-test/src}/emoji/emoji-resource-usage-clear.d.ts +1 -1
  472. package/dist/types-ts4.5/{emoji → util-data-test/src/emoji}/get-atlassian-emoji-data.d.ts +1 -1
  473. package/dist/types-ts4.5/util-data-test/src/emoji/get-atlassian-emojis.d.ts +1 -0
  474. package/dist/types-ts4.5/{emoji → util-data-test/src/emoji}/get-emoji-provider.d.ts +1 -1
  475. package/dist/types-ts4.5/{emoji → util-data-test/src/emoji}/get-emoji-repository.d.ts +1 -1
  476. package/dist/types-ts4.5/util-data-test/src/emoji/get-emojis.d.ts +1 -0
  477. package/dist/types-ts4.5/{emoji → util-data-test/src/emoji}/get-site-emoji-data.d.ts +1 -1
  478. package/dist/types-ts4.5/util-data-test/src/emoji/get-site-emojis.d.ts +1 -0
  479. package/dist/types-ts4.5/{emoji → util-data-test/src/emoji}/get-standard-emoji-data.d.ts +1 -1
  480. package/dist/types-ts4.5/util-data-test/src/emoji/get-standard-emojis.d.ts +1 -0
  481. package/dist/types-ts4.5/{emoji → util-data-test/src/emoji}/mock-emoji-resource-factory.d.ts +1 -1
  482. package/dist/types-ts4.5/{emoji → util-data-test/src/emoji}/mock-emoji-resource.d.ts +2 -2
  483. package/dist/types-ts4.5/{emoji → util-data-test/src/emoji}/mock-non-uploading-emoji-resource-factory.d.ts +1 -1
  484. package/dist/types-ts4.5/{emoji → util-data-test/src/emoji}/mock-non-uploading-emoji-resource.d.ts +2 -2
  485. package/dist/{types → types-ts4.5/util-data-test/src}/emoji/types.d.ts +1 -1
  486. package/dist/{types → types-ts4.5/util-data-test/src}/emoji-test/filter-to-searchable.d.ts +1 -1
  487. package/dist/{types → types-ts4.5/util-data-test/src}/emoji-test/get-test-emoji-resource-from-repository.d.ts +1 -1
  488. package/dist/types-ts4.5/{emoji-test → util-data-test/src/emoji-test}/get-test-emojis.d.ts +1 -1
  489. package/dist/types-ts4.5/util-data-test/src/emoji-test/get-test-searchable-emojis.d.ts +1 -0
  490. package/dist/types-ts4.5/util-data-test/src/emoji-test/test-emoji-repository.d.ts +5 -0
  491. package/dist/types-ts4.5/util-data-test/src/logger.d.ts +4 -0
  492. package/dist/types-ts4.5/{mention → util-data-test/src/mention}/create-mock-mention-name-resolver.d.ts +1 -1
  493. package/dist/{types → types-ts4.5/util-data-test/src}/mention/mock-mention-name-client.d.ts +1 -1
  494. package/dist/types-ts4.5/{mention → util-data-test/src/mention}/mock-mention-resource-with-info-hints.d.ts +1 -1
  495. package/dist/{types → types-ts4.5/util-data-test/src}/mention/mock-mention-resource.d.ts +2 -2
  496. package/dist/types-ts4.5/{mention → util-data-test/src/mention}/mock-presence-resource.d.ts +1 -1
  497. package/dist/types-ts4.5/{task-decision → util-data-test/src/task-decision}/mock-task-decision-resource.d.ts +1 -1
  498. package/dist/types-ts4.5/{task-decision → util-data-test/src/task-decision}/utils.d.ts +2 -2
  499. package/dist/types-ts4.5/{user-picker → util-data-test/src/user-picker}/user-picker-custom-data.d.ts +1 -1
  500. package/dist/types-ts4.5/{user-picker → util-data-test/src/user-picker}/user-picker-team-data.d.ts +1 -1
  501. package/package.json +3 -8
  502. package/dist/types/emoji/get-atlassian-emojis.d.ts +0 -1
  503. package/dist/types/emoji/get-emojis.d.ts +0 -1
  504. package/dist/types/emoji/get-site-emojis.d.ts +0 -1
  505. package/dist/types/emoji/get-standard-emojis.d.ts +0 -1
  506. package/dist/types/emoji-test/get-test-searchable-emojis.d.ts +0 -1
  507. package/dist/types/emoji-test/test-emoji-repository.d.ts +0 -5
  508. package/dist/types/json-data/emoji-all.json +0 -54398
  509. package/dist/types/json-data/mention-data.json +0 -393
  510. package/dist/types/json-data/presence-invalid-info.json +0 -47
  511. package/dist/types/json-data/presence-valid-info.json +0 -63
  512. package/dist/types/json-data/sample-tasks.json +0 -80
  513. package/dist/types/json-data/service-data-atlassian.json +0 -272
  514. package/dist/types/json-data/service-data-standard.json +0 -54098
  515. package/dist/types/json-data/slack-conversations-data.json +0 -476
  516. package/dist/types/json-data/slack-workspaces-data.json +0 -19
  517. package/dist/types/json-data/test-emoji-atlassian.json +0 -224
  518. package/dist/types/json-data/test-emoji-standard.json +0 -2000
  519. package/dist/types/json-data/user-picker-data.json +0 -361
  520. package/dist/types-ts4.5/emoji/get-atlassian-emojis.d.ts +0 -1
  521. package/dist/types-ts4.5/emoji/get-emojis.d.ts +0 -1
  522. package/dist/types-ts4.5/emoji/get-site-emojis.d.ts +0 -1
  523. package/dist/types-ts4.5/emoji/get-standard-emojis.d.ts +0 -1
  524. package/dist/types-ts4.5/emoji-test/get-test-searchable-emojis.d.ts +0 -1
  525. package/dist/types-ts4.5/emoji-test/test-emoji-repository.d.ts +0 -5
  526. package/dist/types-ts4.5/json-data/emoji-all.json +0 -54398
  527. package/dist/types-ts4.5/json-data/mention-data.json +0 -393
  528. package/dist/types-ts4.5/json-data/presence-invalid-info.json +0 -47
  529. package/dist/types-ts4.5/json-data/presence-valid-info.json +0 -63
  530. package/dist/types-ts4.5/json-data/sample-tasks.json +0 -80
  531. package/dist/types-ts4.5/json-data/service-data-atlassian.json +0 -272
  532. package/dist/types-ts4.5/json-data/service-data-standard.json +0 -54098
  533. package/dist/types-ts4.5/json-data/slack-conversations-data.json +0 -476
  534. package/dist/types-ts4.5/json-data/slack-workspaces-data.json +0 -19
  535. package/dist/types-ts4.5/json-data/test-emoji-atlassian.json +0 -224
  536. package/dist/types-ts4.5/json-data/test-emoji-standard.json +0 -2000
  537. package/dist/types-ts4.5/json-data/user-picker-data.json +0 -361
  538. /package/dist/types/{emoji → util-data-test/src/emoji}/get-emoji-resource-standard-atlassian.d.ts +0 -0
  539. /package/dist/types/{emoji → util-data-test/src/emoji}/get-emoji-resource-usage-clear.d.ts +0 -0
  540. /package/dist/types/{emoji → util-data-test/src/emoji}/get-emoji-resource.d.ts +0 -0
  541. /package/dist/types/{emoji → util-data-test/src/emoji}/image-emoji.d.ts +0 -0
  542. /package/dist/types/{emoji → util-data-test/src/emoji}/logged-user.d.ts +0 -0
  543. /package/dist/types/{emoji → util-data-test/src/emoji}/lorem.d.ts +0 -0
  544. /package/dist/types/{emoji → util-data-test/src/emoji}/site-emoji-foo.d.ts +0 -0
  545. /package/dist/types/{emoji → util-data-test/src/emoji}/site-emoji-wtf.d.ts +0 -0
  546. /package/dist/types/{emoji → util-data-test/src/emoji}/sprite-emoji.d.ts +0 -0
  547. /package/dist/types/{emoji-constants → util-data-test/src/emoji-constants}/index.d.ts +0 -0
  548. /package/dist/types/{emoji-test → util-data-test/src/emoji-test}/emoji-samples.d.ts +0 -0
  549. /package/dist/types/{emoji-test → util-data-test/src/emoji-test}/expires-at.d.ts +0 -0
  550. /package/dist/types/{emoji-test → util-data-test/src/emoji-test}/get-non-uploading-emoji-resource.d.ts +0 -0
  551. /package/dist/types/{emoji-test → util-data-test/src/emoji-test}/get-test-atlassian-emojis.d.ts +0 -0
  552. /package/dist/types/{emoji-test → util-data-test/src/emoji-test}/get-test-atlassian-service-emojis.d.ts +0 -0
  553. /package/dist/types/{emoji-test → util-data-test/src/emoji-test}/get-test-emoji-repository.d.ts +0 -0
  554. /package/dist/types/{emoji-test → util-data-test/src/emoji-test}/get-test-emoji-resource-non-uploading.d.ts +0 -0
  555. /package/dist/types/{emoji-test → util-data-test/src/emoji-test}/get-test-emoji-resource.d.ts +0 -0
  556. /package/dist/types/{emoji-test → util-data-test/src/emoji-test}/get-test-image-emoji.d.ts +0 -0
  557. /package/dist/types/{emoji-test → util-data-test/src/emoji-test}/get-test-media-api-token.d.ts +0 -0
  558. /package/dist/types/{emoji-test → util-data-test/src/emoji-test}/get-test-site-emoji-foo.d.ts +0 -0
  559. /package/dist/types/{emoji-test → util-data-test/src/emoji-test}/get-test-site-emoji-repository.d.ts +0 -0
  560. /package/dist/types/{emoji-test → util-data-test/src/emoji-test}/get-test-site-emoji-wtf.d.ts +0 -0
  561. /package/dist/types/{emoji-test → util-data-test/src/emoji-test}/get-test-site-emojis.d.ts +0 -0
  562. /package/dist/types/{emoji-test → util-data-test/src/emoji-test}/get-test-site-service-emojis.d.ts +0 -0
  563. /package/dist/types/{emoji-test → util-data-test/src/emoji-test}/get-test-sprite-emoji.d.ts +0 -0
  564. /package/dist/types/{emoji-test → util-data-test/src/emoji-test}/get-test-standard-emojis.d.ts +0 -0
  565. /package/dist/types/{emoji-test → util-data-test/src/emoji-test}/get-test-standard-service-emojis.d.ts +0 -0
  566. /package/dist/types/{emoji-test → util-data-test/src/emoji-test}/media-emoji.d.ts +0 -0
  567. /package/dist/types/{emoji-test → util-data-test/src/emoji-test}/media-service-emoji.d.ts +0 -0
  568. /package/dist/types/{mention → util-data-test/src/mention}/mention-story-data.d.ts +0 -0
  569. /package/dist/types/{mention → util-data-test/src/mention}/mention-test-data.d.ts +0 -0
  570. /package/dist/types/{mention → util-data-test/src/mention}/presence-data.d.ts +0 -0
  571. /package/dist/types/{mention → util-data-test/src/mention}/utils.d.ts +0 -0
  572. /package/dist/types/{profilecard → util-data-test/src/profilecard}/get-mock-profilecard-client.d.ts +0 -0
  573. /package/dist/types/{profilecard → util-data-test/src/profilecard}/profilecard-data.d.ts +0 -0
  574. /package/dist/types/{profilecard → util-data-test/src/profilecard}/util.d.ts +0 -0
  575. /package/dist/types/{slack-data → util-data-test/src/slack-data}/index.d.ts +0 -0
  576. /package/dist/types/{slack-data → util-data-test/src/slack-data}/slack-conversations-data.d.ts +0 -0
  577. /package/dist/types/{slack-data → util-data-test/src/slack-data}/slack-workspaces-data.d.ts +0 -0
  578. /package/dist/types/{task-decision → util-data-test/src/task-decision}/task-decision-story-data.d.ts +0 -0
  579. /package/dist/types/{user-picker → util-data-test/src/user-picker}/index.d.ts +0 -0
  580. /package/dist/types/{user-picker → util-data-test/src/user-picker}/user-picker-data.d.ts +0 -0
  581. /package/dist/types-ts4.5/{logger.d.ts → emoji/src/util/logger.d.ts} +0 -0
  582. /package/dist/{types → types-ts4.5/mention/src/util}/logger.d.ts +0 -0
  583. /package/dist/types-ts4.5/user-picker/{ChevronRight.d.ts → src/components/ExternalUserOption/InfoIcon.d.ts} +0 -0
  584. /package/dist/types-ts4.5/{emoji → util-data-test/src/emoji}/get-emoji-resource-standard-atlassian.d.ts +0 -0
  585. /package/dist/types-ts4.5/{emoji → util-data-test/src/emoji}/get-emoji-resource-usage-clear.d.ts +0 -0
  586. /package/dist/types-ts4.5/{emoji → util-data-test/src/emoji}/get-emoji-resource.d.ts +0 -0
  587. /package/dist/types-ts4.5/{emoji → util-data-test/src/emoji}/image-emoji.d.ts +0 -0
  588. /package/dist/types-ts4.5/{emoji → util-data-test/src/emoji}/logged-user.d.ts +0 -0
  589. /package/dist/types-ts4.5/{emoji → util-data-test/src/emoji}/lorem.d.ts +0 -0
  590. /package/dist/types-ts4.5/{emoji → util-data-test/src/emoji}/site-emoji-foo.d.ts +0 -0
  591. /package/dist/types-ts4.5/{emoji → util-data-test/src/emoji}/site-emoji-wtf.d.ts +0 -0
  592. /package/dist/types-ts4.5/{emoji → util-data-test/src/emoji}/sprite-emoji.d.ts +0 -0
  593. /package/dist/types-ts4.5/{emoji-constants → util-data-test/src/emoji-constants}/index.d.ts +0 -0
  594. /package/dist/types-ts4.5/{emoji-test → util-data-test/src/emoji-test}/emoji-samples.d.ts +0 -0
  595. /package/dist/types-ts4.5/{emoji-test → util-data-test/src/emoji-test}/expires-at.d.ts +0 -0
  596. /package/dist/types-ts4.5/{emoji-test → util-data-test/src/emoji-test}/get-non-uploading-emoji-resource.d.ts +0 -0
  597. /package/dist/types-ts4.5/{emoji-test → util-data-test/src/emoji-test}/get-test-atlassian-emojis.d.ts +0 -0
  598. /package/dist/types-ts4.5/{emoji-test → util-data-test/src/emoji-test}/get-test-atlassian-service-emojis.d.ts +0 -0
  599. /package/dist/types-ts4.5/{emoji-test → util-data-test/src/emoji-test}/get-test-emoji-repository.d.ts +0 -0
  600. /package/dist/types-ts4.5/{emoji-test → util-data-test/src/emoji-test}/get-test-emoji-resource-non-uploading.d.ts +0 -0
  601. /package/dist/types-ts4.5/{emoji-test → util-data-test/src/emoji-test}/get-test-emoji-resource.d.ts +0 -0
  602. /package/dist/types-ts4.5/{emoji-test → util-data-test/src/emoji-test}/get-test-image-emoji.d.ts +0 -0
  603. /package/dist/types-ts4.5/{emoji-test → util-data-test/src/emoji-test}/get-test-media-api-token.d.ts +0 -0
  604. /package/dist/types-ts4.5/{emoji-test → util-data-test/src/emoji-test}/get-test-site-emoji-foo.d.ts +0 -0
  605. /package/dist/types-ts4.5/{emoji-test → util-data-test/src/emoji-test}/get-test-site-emoji-repository.d.ts +0 -0
  606. /package/dist/types-ts4.5/{emoji-test → util-data-test/src/emoji-test}/get-test-site-emoji-wtf.d.ts +0 -0
  607. /package/dist/types-ts4.5/{emoji-test → util-data-test/src/emoji-test}/get-test-site-emojis.d.ts +0 -0
  608. /package/dist/types-ts4.5/{emoji-test → util-data-test/src/emoji-test}/get-test-site-service-emojis.d.ts +0 -0
  609. /package/dist/types-ts4.5/{emoji-test → util-data-test/src/emoji-test}/get-test-sprite-emoji.d.ts +0 -0
  610. /package/dist/types-ts4.5/{emoji-test → util-data-test/src/emoji-test}/get-test-standard-emojis.d.ts +0 -0
  611. /package/dist/types-ts4.5/{emoji-test → util-data-test/src/emoji-test}/get-test-standard-service-emojis.d.ts +0 -0
  612. /package/dist/types-ts4.5/{emoji-test → util-data-test/src/emoji-test}/media-emoji.d.ts +0 -0
  613. /package/dist/types-ts4.5/{emoji-test → util-data-test/src/emoji-test}/media-service-emoji.d.ts +0 -0
  614. /package/dist/types-ts4.5/{mention → util-data-test/src/mention}/mention-story-data.d.ts +0 -0
  615. /package/dist/types-ts4.5/{mention → util-data-test/src/mention}/mention-test-data.d.ts +0 -0
  616. /package/dist/types-ts4.5/{mention → util-data-test/src/mention}/presence-data.d.ts +0 -0
  617. /package/dist/types-ts4.5/{mention → util-data-test/src/mention}/utils.d.ts +0 -0
  618. /package/dist/types-ts4.5/{profilecard → util-data-test/src/profilecard}/get-mock-profilecard-client.d.ts +0 -0
  619. /package/dist/types-ts4.5/{profilecard → util-data-test/src/profilecard}/profilecard-data.d.ts +0 -0
  620. /package/dist/types-ts4.5/{profilecard → util-data-test/src/profilecard}/util.d.ts +0 -0
  621. /package/dist/types-ts4.5/{slack-data → util-data-test/src/slack-data}/index.d.ts +0 -0
  622. /package/dist/types-ts4.5/{slack-data → util-data-test/src/slack-data}/slack-conversations-data.d.ts +0 -0
  623. /package/dist/types-ts4.5/{slack-data → util-data-test/src/slack-data}/slack-workspaces-data.d.ts +0 -0
  624. /package/dist/types-ts4.5/{task-decision → util-data-test/src/task-decision}/task-decision-story-data.d.ts +0 -0
  625. /package/dist/{types → types-ts4.5/util-data-test/src}/user-picker/ChevronRight.d.ts +0 -0
  626. /package/dist/types-ts4.5/{user-picker → util-data-test/src/user-picker}/index.d.ts +0 -0
  627. /package/dist/types-ts4.5/{user-picker → util-data-test/src/user-picker}/user-picker-data.d.ts +0 -0
@@ -0,0 +1,7 @@
1
+ import { CategoryDescription } from '../../types';
2
+ export type CategoryId = 'FREQUENT' | 'PEOPLE' | 'NATURE' | 'FOODS' | 'ACTIVITY' | 'PLACES' | 'OBJECTS' | 'SYMBOLS' | 'FLAGS' | 'ATLASSIAN' | 'CUSTOM';
3
+ export type CategoryGroupKey = CategoryId | 'USER_CUSTOM' | 'SEARCH';
4
+ export type CategoryDescriptionMap = {
5
+ [key in CategoryGroupKey]: CategoryDescription;
6
+ };
7
+ export declare const CategoryDescriptionMap: CategoryDescriptionMap;
@@ -0,0 +1,5 @@
1
+ export { AbstractResource } from '@atlaskit/util-service-support';
2
+ export { default as EmojiResource } from './api/EmojiResource';
3
+ export type { EmojiProvider, UploadingEmojiProvider, EmojiResourceConfig, OnEmojiProviderChange, } from './api/EmojiResource';
4
+ export { default as EmojiRepository } from './api/EmojiRepository';
5
+ export { default as EmojiLoader } from './api/EmojiLoader';
@@ -0,0 +1,363 @@
1
+ import { SyntheticEvent } from 'react';
2
+ import { messages } from './components/i18n';
3
+ import { CategoryId } from './components/picker/categories';
4
+ import { Provider } from '@atlaskit/util-service-support/types';
5
+ import { EmojiRepository } from './resource';
6
+ export type { CategoryId } from './components/picker/categories';
7
+ export interface EmojiProvider extends Provider<string, EmojiSearchResult, any, undefined, SearchOptions> {
8
+ /**
9
+ * Returns an immutable copy of EmojiDescription where mediaPath has token and client appended to url.
10
+ *
11
+ * Will allow emoji to render site emojis without needing to fail first
12
+ */
13
+ getMediaEmojiDescriptionURLWithInlineToken(emoji: EmojiDescription): Promise<EmojiDescription>;
14
+ /**
15
+ * Returns the first fetched emoji matching the emojiId.id.
16
+ *
17
+ * If the interface is not defined it will fail gracefully to findByEmojiId
18
+ */
19
+ fetchByEmojiId(emojiId: EmojiId, optimistic: boolean): OptionalEmojiDescriptionWithVariations | Promise<OptionalEmojiDescriptionWithVariations>;
20
+ /**
21
+ * Returns the first matching emoji matching the shortName, or null if none found.
22
+ *
23
+ * Will load media api images before returning.
24
+ */
25
+ findByShortName(shortName: string): OptionalEmojiDescription | Promise<OptionalEmojiDescription>;
26
+ /**
27
+ * Returns the first matching emoji matching the emojiId.id.
28
+ *
29
+ * If not found or emojiId.id is undefined, fallback to a search by shortName.
30
+ *
31
+ * Will load media api images before returning.
32
+ */
33
+ findByEmojiId(emojiId: EmojiId): OptionalEmojiDescription | Promise<OptionalEmojiDescription>;
34
+ /**
35
+ * Return the emoji that matches the supplied id or undefined. As with findByEmojiId, this call should load
36
+ * the media api images before returning.
37
+ */
38
+ findById(id: string): OptionalEmojiDescription | Promise<OptionalEmojiDescription>;
39
+ /**
40
+ * Finds emojis belonging to specified category.
41
+ *
42
+ * Does not automatically load Media API images.
43
+ */
44
+ findInCategory(categoryId: string): Promise<EmojiDescription[]>;
45
+ /**
46
+ * Returns a map matching ascii representations to their corresponding EmojiDescription.
47
+ */
48
+ getAsciiMap(): Promise<Map<string, EmojiDescription>>;
49
+ /**
50
+ * Returns, in a Promise, an array of the most frequently used emoji, ordered from most frequent to least frequent.
51
+ * If there is no frequently used data then an empty array should be returned.
52
+ *
53
+ * @param options supply options to be applied to the request.
54
+ */
55
+ getFrequentlyUsed(options?: SearchOptions): Promise<EmojiDescription[]>;
56
+ /**
57
+ * Records an emoji selection, for example for using in tracking recent emoji.
58
+ * If no recordConfig is configured then a resolved promise should be returned
59
+ *
60
+ * Optional.
61
+ */
62
+ recordSelection?(emoji: EmojiDescription): Promise<any>;
63
+ /**
64
+ * Deletes the given emoji from the site emoji service
65
+ * No changes are made if it is not a media emoji, no siteEmojiResource has been initialised
66
+ * or the user is not authorised.
67
+ * It should also be removed from the EmojiResource so it cannot be returned via search
68
+ *
69
+ * Optional.
70
+ *
71
+ * @return a boolean indicating whether the delete was successful
72
+ */
73
+ deleteSiteEmoji(emoji: EmojiDescription): Promise<boolean>;
74
+ /**
75
+ * Load media emoji that may require authentication to download, producing
76
+ * a new EmojiDescription to be used for rendering, if necessary.
77
+ *
78
+ * Future results may be returned from a cache.
79
+ *
80
+ * Acts as a no-op if not a media emoji.
81
+ *
82
+ * Downloads and caches the altRepresentation image if useAlt is passed in
83
+ *
84
+ * @return an OptionalEmojiDescription or a promise for one, may be the same as the input,
85
+ * or updated with a new url to cached image data. Will return the original EmojiDescription
86
+ * if not a custom emoji.
87
+ */
88
+ loadMediaEmoji(emoji: EmojiDescription, useAlt?: boolean): OptionalEmojiDescription | Promise<OptionalEmojiDescription>;
89
+ /**
90
+ * Indicates if media emoji should be rendered optimistically,
91
+ * i.e. assume the url can be rendered directly from the URL, and
92
+ * only explicitly loaded via loadEmojiImageData if it fails to load.
93
+ *
94
+ * If useAlt is provided, the altRepresentation image URL is used
95
+ */
96
+ optimisticMediaRendering(emoji: EmojiDescription, useAlt?: boolean): boolean;
97
+ /**
98
+ * Used by the picker and typeahead to obtain a skin tone preference
99
+ * if the user has previously selected one via the Tone Selector
100
+ */
101
+ getSelectedTone(): ToneSelection;
102
+ /**
103
+ * Used by Tone Selector to indicate to the provider that the user
104
+ * has selected a skin tone preference that should be remembered
105
+ */
106
+ setSelectedTone(tone: ToneSelection): void;
107
+ /**
108
+ * Returns a list of all the non-standard categories with emojis in the EmojiRepository
109
+ * e.g. 'FREQUENT', 'ATLASSIAN' and 'CUSTOM'
110
+ */
111
+ calculateDynamicCategories?(): Promise<string[]>;
112
+ /**
113
+ * Returns the logged user passed by the Product
114
+ */
115
+ getCurrentUser(): OptionalUser;
116
+ /**
117
+ * Fetches and returns emojiResource
118
+ */
119
+ fetchEmojiProvider(force?: boolean): Promise<EmojiRepository | undefined>;
120
+ /**
121
+ * Returns a constructed URL to fetch emoji media asset if 'optimisticImageApi' config has been provided
122
+ */
123
+ getOptimisticImageURL(emojiId: EmojiId): string | undefined;
124
+ }
125
+ export interface UploadingEmojiProvider extends EmojiProvider {
126
+ /**
127
+ * Returns true if upload is supported.
128
+ *
129
+ * Waits until resources have loaded before returning.
130
+ */
131
+ isUploadSupported(): Promise<boolean>;
132
+ /**
133
+ * Uploads an emoji to the configured repository.
134
+ *
135
+ * Will return a promise with the EmojiDescription once completed.
136
+ *
137
+ * The last search will be re-run to ensure the new emoji is considered in the search.
138
+ */
139
+ uploadCustomEmoji(upload: EmojiUpload, retry?: boolean): Promise<EmojiDescription>;
140
+ /**
141
+ * Allows the preloading of data (e.g. authentication tokens) to speed the uploading of emoji.
142
+ */
143
+ prepareForUpload(): Promise<void>;
144
+ }
145
+ export type RelativePosition = 'above' | 'below' | 'auto';
146
+ export type PickerSize = 'small' | 'medium' | 'large';
147
+ export interface Styles {
148
+ [index: string]: any;
149
+ }
150
+ /**
151
+ * Minimum information to defined an emoji is the shortName.
152
+ * In order to uniquely define an emoji, the id should be included, and is
153
+ * used in preference to shortName if provided, and has a matching emoji.
154
+ * If not emoji can be found by id (e.g. a custom emoji has been removed),
155
+ * fallback behaviour will be to attempt to find a matching emoji by shortName.
156
+ */
157
+ export interface EmojiId {
158
+ shortName: string;
159
+ id?: string;
160
+ fallback?: string;
161
+ }
162
+ export interface SpriteSheet {
163
+ url: string;
164
+ row: number;
165
+ column: number;
166
+ height: number;
167
+ width: number;
168
+ }
169
+ export interface EmojiImageRepresentation {
170
+ height: number;
171
+ width: number;
172
+ }
173
+ export interface SpriteImageRepresentation extends EmojiImageRepresentation {
174
+ x: number;
175
+ y: number;
176
+ xIndex: number;
177
+ yIndex: number;
178
+ }
179
+ /**
180
+ * Sprite representation exposed from the EmojiResource.
181
+ */
182
+ export interface SpriteRepresentation extends SpriteImageRepresentation {
183
+ sprite: SpriteSheet;
184
+ }
185
+ /**
186
+ * Representation returned from a sprite service.
187
+ */
188
+ export interface SpriteServiceRepresentation extends SpriteImageRepresentation {
189
+ /** Should match a index in a SpriteSheets */
190
+ spriteRef: string;
191
+ }
192
+ export interface ImageRepresentation extends EmojiImageRepresentation {
193
+ imagePath: string;
194
+ }
195
+ export interface MediaApiRepresentation extends EmojiImageRepresentation {
196
+ mediaPath: string;
197
+ }
198
+ export type EmojiRepresentation = SpriteRepresentation | ImageRepresentation | MediaApiRepresentation | undefined;
199
+ export interface EmojiDescription extends EmojiId {
200
+ name?: string;
201
+ order?: number;
202
+ type: string;
203
+ category: string;
204
+ ascii?: string[];
205
+ createdDate?: string;
206
+ creatorUserId?: string;
207
+ representation: EmojiRepresentation;
208
+ altRepresentation?: EmojiRepresentation;
209
+ searchable: boolean;
210
+ }
211
+ export interface EmojiDescriptionWithVariations extends EmojiDescription {
212
+ skinVariations?: EmojiDescription[];
213
+ }
214
+ /**
215
+ * Describes an emoji which is a variant of some base emoji. This is used when you want to promote the
216
+ * skinVariations in an EmojiDescriptionWithVariations to represent them along side their base representations.
217
+ */
218
+ export interface EmojiVariationDescription extends EmojiDescription {
219
+ /** The id of the 'non-variant version of the emoji */
220
+ baseId: string;
221
+ }
222
+ export type OptionalEmojiDescription = EmojiDescription | undefined;
223
+ export type OptionalEmojiDescriptionWithVariations = EmojiDescriptionWithVariations | undefined;
224
+ export type EmojiServiceRepresentation = SpriteServiceRepresentation | ImageRepresentation;
225
+ export interface EmojiServiceDescription {
226
+ id: string;
227
+ shortName: string;
228
+ name?: string;
229
+ order?: number;
230
+ fallback?: string;
231
+ ascii?: string[];
232
+ createdDate?: string;
233
+ creatorUserId?: string;
234
+ type: string;
235
+ category: string;
236
+ representation: EmojiServiceRepresentation;
237
+ altRepresentations?: AltRepresentations;
238
+ searchable: boolean;
239
+ }
240
+ export interface EmojiServiceDescriptionWithVariations extends EmojiServiceDescription {
241
+ skinVariations?: EmojiServiceDescription[];
242
+ }
243
+ export interface AltRepresentations {
244
+ [key: string]: EmojiServiceRepresentation;
245
+ }
246
+ export interface SpriteSheets {
247
+ [index: string]: SpriteSheet;
248
+ }
249
+ /**
250
+ * An access token for emoji stored in the MediaApi
251
+ * (indicated by urls beginning with the url of the token.)
252
+ */
253
+ export interface MediaApiToken {
254
+ url: string;
255
+ clientId: string;
256
+ jwt: string;
257
+ collectionName: string;
258
+ expiresAt: number;
259
+ }
260
+ export interface EmojiMeta {
261
+ spriteSheets?: SpriteSheets;
262
+ mediaApiToken?: MediaApiToken;
263
+ }
264
+ /**
265
+ * The expected response from an Emoji service.
266
+ */
267
+ export interface EmojiServiceResponse {
268
+ emojis: EmojiServiceDescriptionWithVariations[];
269
+ meta?: EmojiMeta;
270
+ }
271
+ export interface EmojiResponse {
272
+ emojis: EmojiDescriptionWithVariations[];
273
+ mediaApiToken?: MediaApiToken;
274
+ }
275
+ export interface CategoryDescription {
276
+ id: string;
277
+ name: keyof typeof messages;
278
+ icon: any;
279
+ order: number;
280
+ }
281
+ export interface OnToneSelected {
282
+ (variation: ToneValueType): void;
283
+ }
284
+ export interface OnToneSelectorCancelled {
285
+ (): void;
286
+ }
287
+ export interface OnEmojiEvent<T = any> {
288
+ (emojiId: EmojiId, emoji: OptionalEmojiDescription, event?: SyntheticEvent<T>): void;
289
+ }
290
+ export interface OnCategory {
291
+ (categoryId: CategoryId | null): void;
292
+ }
293
+ export declare enum SearchSort {
294
+ None = 0,
295
+ Default = 1,
296
+ UsageFrequency = 2
297
+ }
298
+ export declare enum SearchSourceTypes {
299
+ PICKER = "picker",
300
+ TYPEAHEAD = "typeahead"
301
+ }
302
+ export interface SearchOptions {
303
+ skinTone?: number;
304
+ limit?: number;
305
+ sort?: SearchSort;
306
+ source?: SearchSourceTypes;
307
+ }
308
+ export interface EmojiSearchResult {
309
+ emojis: EmojiDescription[];
310
+ query?: string;
311
+ }
312
+ export type ToneSelection = number | undefined;
313
+ export interface EmojiUpload {
314
+ name: string;
315
+ shortName: string;
316
+ filename: string;
317
+ dataURL: string;
318
+ width: number;
319
+ height: number;
320
+ }
321
+ export interface User {
322
+ id: string;
323
+ }
324
+ export type OptionalUser = User | undefined;
325
+ export type Message = React.ReactNode | string;
326
+ export declare enum ProviderTypes {
327
+ SITE = "SITE",
328
+ STANDARD = "STANDARD",
329
+ ATLASSIAN = "ATLASSIAN",
330
+ UNKNOWN = "UNKNOWN",
331
+ SINGLE = "SINGLE"
332
+ }
333
+ export declare enum UfoExperienceName {
334
+ EMOJI_RENDERED = "emoji-rendered",
335
+ EMOJI_RESOURCE_FETCHED = "emoji-resource-fetched",
336
+ EMOJI_PICKER_OPENED = "emoji-picker-opened",
337
+ EMOJI_SELECTION_RECORDED = "emoji-selection-recorded",
338
+ EMOJI_UPLOADED = "emoji-uploaded",
339
+ EMOJI_SEARCHED = "emoji-searched"
340
+ }
341
+ export declare enum UfoComponentName {
342
+ EMOJI = "emoji",
343
+ EMOJI_PICKER = "emoji-picker",
344
+ EMOJI_PROVIDER = "emoji-provider"
345
+ }
346
+ export declare enum UfoEmojiTimingsKeys {
347
+ FMP = "fmp",
348
+ MOUNTED = "emoji-mount",
349
+ METADATA = "emoji-metadata",
350
+ MEDIADATA = "emoji-media",
351
+ ONLOAD = "emoji-onload"
352
+ }
353
+ export declare enum UfoEmojiTimings {
354
+ FMP_END = "fmp",
355
+ MOUNTED_END = "emoji-mount_end",
356
+ METADATA_START = "emoji-metadata_start",
357
+ METADATA_END = "emoji-metadata_end",
358
+ MEDIA_START = "emoji-media_start",
359
+ MEDIA_END = "emoji-media_end",
360
+ ONLOAD_START = "emoji-onload_start",
361
+ ONLOAD_END = "emoji-onload_end"
362
+ }
363
+ export type ToneValueType = number;
@@ -0,0 +1,91 @@
1
+ /**
2
+ * The options used to configure a newly constructed queue.
3
+ */
4
+ export interface QueueOptions {
5
+ /**
6
+ * The maximum number of duplicates allowed per item in the queue.
7
+ */
8
+ maxDuplicates: number;
9
+ /**
10
+ * The minimum number of unique items the queue should try to contain.
11
+ * This number constrains the absolute size of the queue. It needs to be
12
+ * large enough to contain maxDuplicates * minUniqueItems.
13
+ */
14
+ minUniqueItems: number;
15
+ }
16
+ /**
17
+ * A queue which will limit the number of duplicates of type T that it holds. When the duplicate limit is
18
+ * reached the earliest inserted duplicate (the "original") is removed to make room for the new insertion.
19
+ */
20
+ export default class DuplicateLimitedQueue<T> {
21
+ private maximumSize;
22
+ private perItemSize;
23
+ private items;
24
+ private itemCountMap;
25
+ /**
26
+ * An array derived from items and itemCountMap which holds each item once and is ordered by
27
+ * how often an item is duplicated in the items array.
28
+ */
29
+ private itemsOrderedByFrequency;
30
+ /**
31
+ * Construct a new DuplicateLimitedQueue.
32
+ *
33
+ * @param options the options for this queue.
34
+ */
35
+ constructor(options: QueueOptions);
36
+ /**
37
+ * @param item the item to add to the queue.
38
+ */
39
+ enqueue(item: T): void;
40
+ /**
41
+ * Return the items in the queue, ordered by how often they are duplicated. The items with the
42
+ * most duplicates come first in the returned Array.
43
+ *
44
+ * If there are no items in the queue then an empty Array will be returned.
45
+ */
46
+ getItemsOrderedByDuplicateCount(): Array<T>;
47
+ /**
48
+ * Exposed for storybook/testing purposes only. Clear the contents of the queue.
49
+ */
50
+ clear(): void;
51
+ /**
52
+ * A more efficient mechanism for adding multiple items. Ordering is only performed once all
53
+ * the items have been added.
54
+ *
55
+ * @param items the items to be enqueued, which happens in their presented order.
56
+ */
57
+ protected bulkEnqueue(items: T[]): void;
58
+ /**
59
+ * Return the items currently stored in the queue.
60
+ */
61
+ protected getItems(): T[];
62
+ private createEmptyState;
63
+ /**
64
+ * Enqueue the supplied item, keeping consistency with the limits configured. However no ordering is
65
+ * performed by this enqueuing. You must trigger that manually if required.
66
+ *
67
+ * @param item the item to be queued
68
+ */
69
+ private enqueueWithoutOrdering;
70
+ /**
71
+ * Get an array of items from the queue ordered by how often they are duplicated in the queue.
72
+ */
73
+ private orderItemsByFrequency;
74
+ private decrementCount;
75
+ /**
76
+ * Walk the list of items and remove the first occurrence of the matching item.
77
+ *
78
+ * @param item the item to be removed.
79
+ */
80
+ private removeFirstOccurrence;
81
+ /**
82
+ * Remove the first item from the queue and update the itemCountMap accordingly.
83
+ * @return the item add the front of the queue or undefined if the queue is empty
84
+ */
85
+ private remove;
86
+ /**
87
+ * Add the supplied item to the end of the queue and update the itemCountMap accordingly.
88
+ * @param item the item to be added to the queue
89
+ */
90
+ private add;
91
+ }
@@ -0,0 +1,46 @@
1
+ import DuplicateLimitedQueue, { QueueOptions } from './DuplicateLimitedQueue';
2
+ /**
3
+ * The options used to configure a newly constructed queue.
4
+ */
5
+ export interface StoredQueueOptions extends QueueOptions {
6
+ /**
7
+ * The Storage that will be used to persist the queue contents.
8
+ */
9
+ storage: Storage;
10
+ /**
11
+ * An identifier to be prefixed on the keys used to store data.
12
+ */
13
+ storagePrefix: string;
14
+ }
15
+ /**
16
+ * An extension to the DuplicateLimitedQueue that will initialise its contents from the
17
+ * supplied Storage and will also update the storage for every new item enqueued.
18
+ */
19
+ export default class StoredDuplicateLimitedQueue<T> extends DuplicateLimitedQueue<T> {
20
+ private static readonly storageKey;
21
+ private storage;
22
+ private prefixedStorageKey;
23
+ constructor(options: StoredQueueOptions);
24
+ /**
25
+ * Enqueue the supplied item and also persist the new contents of the queue to storage.
26
+ *
27
+ * @param item the item to be enqueued
28
+ */
29
+ enqueue(item: T): void;
30
+ /**
31
+ * Exposed for storybook/testing purposes only. Clear the contents of the queue, and localStorage.
32
+ */
33
+ clear(): void;
34
+ /**
35
+ * Initialise the queue contents from the configured Storage. If there is no data found in
36
+ * storage then the queue will have no items added. Likewise, a failure to read or parse stored
37
+ * data will be swallowed and no items are added to the queue.
38
+ */
39
+ private load;
40
+ /**
41
+ * Save the current items in the queue, overwriting any previously stored queue.
42
+ * Any failure in saving will be silently ignored with the likely outcome that any previous
43
+ * saved items will remain unchanged in storage.
44
+ */
45
+ private save;
46
+ }
@@ -0,0 +1,38 @@
1
+ import { UFOExperience } from '@atlaskit/ufo';
2
+ export interface UFOExperienceSampledRecords {
3
+ [experienceName: string]: UFOExperienceSampledRecord;
4
+ }
5
+ interface SamplingInstancesRecord {
6
+ [key: string]: boolean;
7
+ }
8
+ interface UFOExperienceSampledRecord {
9
+ sampledInstance: SamplingInstancesRecord;
10
+ sampled: boolean;
11
+ }
12
+ export interface WithSamplingUFOExperience extends Omit<UFOExperience, 'start'> {
13
+ start: (options: {
14
+ samplingRate: number;
15
+ samplingFunc?: SamplingFunc;
16
+ startTime?: number;
17
+ }) => Promise<void>;
18
+ }
19
+ export declare const ufoExperiencesSampled: UFOExperienceSampledRecords;
20
+ type SamplingFunc = (rate: number) => boolean;
21
+ export declare const clearSampled: () => void;
22
+ /**
23
+ * A random sampling function
24
+ * sampling algorithm is from @atlassian/jira-coinflip at https://stash.atlassian.com/projects/JIRACLOUD/repos/jira-frontend/browse/src/packages/platform/app-framework/coinflip/src/index.tsx
25
+ * E.g. isExperienceSampled(2) will pass 50% of the time
26
+ * @param rate The chance that it will pass (1 in <rate> times)
27
+ * @returns bool, if it passes or not
28
+ */
29
+ export declare const isExperienceSampled: (rate: number) => boolean;
30
+ /**
31
+ * This function is a temp solution to reduce the event traffic, as UFO package does not support it.
32
+ *
33
+ * e.g. Emoji Picker contains thousands of emojis, which means will trigger a large number of renderred events without sampling
34
+ * @param ufoExperience
35
+ * @returns
36
+ */
37
+ export declare const withSampling: (ufoExperience: UFOExperience) => WithSamplingUFOExperience;
38
+ export {};
@@ -0,0 +1,14 @@
1
+ import { EmojiId, ProviderTypes } from '../../types';
2
+ import { ConcurrentExperience, UFOExperience } from '@atlaskit/ufo';
3
+ import { WithSamplingUFOExperience } from './samplingUfo';
4
+ export declare const ufoExperiences: {
5
+ 'emoji-rendered': ConcurrentExperience;
6
+ 'emoji-resource-fetched': ConcurrentExperience;
7
+ 'emoji-picker-opened': UFOExperience;
8
+ 'emoji-selection-recorded': UFOExperience;
9
+ 'emoji-uploaded': UFOExperience;
10
+ 'emoji-searched': UFOExperience;
11
+ };
12
+ export declare const sampledUfoRenderedEmoji: (emojiId: EmojiId) => WithSamplingUFOExperience;
13
+ export declare const hasUfoMarked: (ufoExperience: UFOExperience | WithSamplingUFOExperience, name: string) => boolean;
14
+ export declare const sampledUfoEmojiResourceFetched: (providerType: ProviderTypes) => WithSamplingUFOExperience;
@@ -0,0 +1,60 @@
1
+ import { CategoryId } from '../components/picker/categories';
2
+ export declare const customCategory = "CUSTOM";
3
+ export declare const frequentCategory = "FREQUENT";
4
+ export declare const customType = "SITE";
5
+ export declare const searchCategory = "SEARCH";
6
+ export declare const yourUploadsCategory = "USER_CUSTOM";
7
+ export declare const customTitle = "allUploadsCustomCategory";
8
+ export declare const userCustomTitle = "userUploadsCustomCategory";
9
+ export declare const dataURLPrefix = "data:";
10
+ export declare const deleteEmojiLabel = "delete-emoji";
11
+ /**
12
+ * A constant used in sorting/ordering to represent a number 'obviously much bigger than any item in the set being handled'.
13
+ * This is used instead of Number.MAX_VALUE since subtraction of MAX_VALUE from itself occassionaly doesn't equal zero exactly :-(
14
+ */
15
+ export declare const MAX_ORDINAL = 100000;
16
+ export declare const defaultEmojiHeight = 20;
17
+ export declare const emojiPickerWidth = 350;
18
+ export declare const sizeGap = 80;
19
+ export declare const defaultEmojiPickerSize = "medium";
20
+ export declare const emojiPickerMinHeight = 260;
21
+ export declare const emojiPickerHeight = 295;
22
+ export declare const emojiPickerListHeight: number;
23
+ export declare const emojiPickerPreviewHeight = 54;
24
+ export declare const emojiPickerHeightWithPreview: number;
25
+ export declare const localStoragePrefix = "fabric.emoji";
26
+ export declare const selectedToneStorageKey: string;
27
+ export declare const defaultCategories: CategoryId[];
28
+ export declare enum KeyboardKeys {
29
+ ArrowLeft = "ArrowLeft",
30
+ ArrowRight = "ArrowRight",
31
+ ArrowUp = "ArrowUp",
32
+ ArrowDown = "ArrowDown",
33
+ PageUp = "PageUp",
34
+ PageDown = "PageDown",
35
+ Home = "Home",
36
+ End = "End",
37
+ Enter = "Enter",
38
+ Tab = "Tab",
39
+ Space = " ",
40
+ Backspace = "Backspace"
41
+ }
42
+ export declare enum KeyboardNavigationDirection {
43
+ Down = "Down",
44
+ Up = "Up",
45
+ Left = "Left",
46
+ Right = "Right"
47
+ }
48
+ export declare const CATEGORYSELECTOR_KEYBOARD_KEYS_SUPPORTED: string[];
49
+ export declare const EMOJI_KEYBOARD_KEYS_SUPPORTED: string[];
50
+ export declare const TONESELECTOR_KEYBOARD_KEYS_SUPPORTED: string[];
51
+ export declare const EMOJIPICKERLIST_KEYBOARD_KEYS_SUPPORTED: string[];
52
+ export declare const DEFAULT_TONE = 0;
53
+ export declare const defaultListLimit = 50;
54
+ export declare const migrationUserId = "hipchat_migration_emoticons";
55
+ export declare const analyticsEmojiPrefix = "atlassian.fabric.emoji.picker";
56
+ export declare const EMOJI_LIST_COLUMNS = 8;
57
+ export declare const EMOJI_LIST_PAGE_COUNT = 5;
58
+ export declare const EMOJI_SEARCH_DEBOUNCE = 150;
59
+ export declare const SAMPLING_RATE_EMOJI_RENDERED_EXP = 20;
60
+ export declare const SAMPLING_RATE_EMOJI_RESOURCE_FETCHED_EXP = 100;
@@ -0,0 +1,10 @@
1
+ export declare const getNaturalImageSize: (dataURL: string) => Promise<{
2
+ width: number;
3
+ height: number;
4
+ }>;
5
+ export declare const parseImage: (dataURL: string) => Promise<{
6
+ src: string;
7
+ }>;
8
+ export declare const hasFileExceededSize: (file: File) => boolean;
9
+ export declare const checkWebpSupport: () => Promise<boolean>;
10
+ export declare const imageAcceptHeader: () => Promise<string>;
@@ -0,0 +1,4 @@
1
+ export declare function enableLogger(enable: boolean): void;
2
+ export declare function enableStacktraces(enable: boolean): void;
3
+ export declare function logStacktrace(): void;
4
+ export default function debug(msg: any, ...args: any[]): void;
@@ -0,0 +1,3 @@
1
+ type StorageType = 'localStorage';
2
+ export default function storageAvailable(type: StorageType): boolean | undefined;
3
+ export {};
@@ -0,0 +1,23 @@
1
+ import { CategoryId } from '../components/picker/categories';
2
+ import { EmojiDescription, EmojiDescriptionWithVariations, EmojiId, EmojiImageRepresentation, EmojiRepresentation, EmojiServiceRepresentation, EmojiVariationDescription, ImageRepresentation, MediaApiRepresentation, OptionalEmojiDescription, SpriteRepresentation, SpriteServiceRepresentation } from '../types';
3
+ export declare const isSpriteServiceRepresentation: (rep: EmojiServiceRepresentation) => rep is SpriteServiceRepresentation;
4
+ export declare const isSpriteRepresentation: (rep: EmojiRepresentation) => rep is SpriteRepresentation;
5
+ export declare const isImageRepresentation: (rep: EmojiRepresentation | EmojiServiceRepresentation | EmojiImageRepresentation) => rep is ImageRepresentation;
6
+ export declare const isMediaRepresentation: (rep: EmojiRepresentation | EmojiImageRepresentation) => rep is MediaApiRepresentation;
7
+ export declare const isPromise: <T>(p: any) => p is Promise<T>;
8
+ export declare const isEmojiDescription: (possibleEmojiDescription: any) => possibleEmojiDescription is EmojiDescription;
9
+ export declare const isMediaEmoji: (emoji: EmojiDescription) => boolean;
10
+ export declare const hasDataURLImage: (rep: EmojiRepresentation) => boolean;
11
+ export declare const isLoadedMediaEmoji: (emoji: EmojiDescription) => boolean;
12
+ export declare const isEmojiDescriptionWithVariations: (emoji: OptionalEmojiDescription) => emoji is EmojiDescriptionWithVariations;
13
+ export declare const isEmojiVariationDescription: (object: any) => object is EmojiVariationDescription;
14
+ export declare const isMessagesKey: (key: string) => key is "deleteEmojiTooltip" | "deleteEmojiTooltipForScreenreader" | "deleteEmojiTitle" | "deleteEmojiDescription" | "deleteEmojiLabel" | "addCustomEmojiLabel" | "emojiPlaceholder" | "emojiNameAriaLabel" | "emojiChooseFileTitle" | "emojiChooseFileScreenReaderDescription" | "emojiSelectSkinToneButtonAriaLabelText" | "emojiSelectSkinToneListAriaLabelText" | "emojiImageRequirements" | "emojiPreviewTitle" | "emojiPreview" | "addEmojiLabel" | "retryLabel" | "cancelLabel" | "searchPlaceholder" | "searchLabel" | "searchResultsStatus" | "searchResultsStatusSeeAll" | "categoriesSelectorLabel" | "categoriesSearchResults" | "frequentCategory" | "peopleCategory" | "natureCategory" | "foodsCategory" | "activityCategory" | "placesCategory" | "objectsCategory" | "symbolsCategory" | "flagsCategory" | "productivityCategory" | "userUploadsCustomCategory" | "allUploadsCustomCategory" | "deleteEmojiFailed" | "emojiInvalidImage" | "emojiUploadFailed" | "emojiImageTooBig" | "emojiPickerTitle" | "emojiPickerListPanel" | "emojiPickerGrid" | "emojiButtonRoleDescription" | "error";
15
+ export declare const toEmojiId: (emoji: EmojiDescription) => EmojiId;
16
+ export declare const toOptionalEmojiId: (emoji: OptionalEmojiDescription) => EmojiId | undefined;
17
+ export declare const isEmojiIdEqual: (l?: EmojiId, r?: EmojiId) => boolean | undefined;
18
+ export declare const containsEmojiId: (emojis: EmojiDescription[], emojiId: EmojiId | undefined) => boolean;
19
+ export declare const convertImageToMediaRepresentation: (rep: ImageRepresentation) => MediaApiRepresentation;
20
+ export declare const convertMediaToImageRepresentation: (rep: MediaApiRepresentation, newImagePath?: string) => ImageRepresentation;
21
+ export declare const convertMediaToImageEmoji: (emoji: EmojiDescription, newImagePath?: string, useAlt?: boolean) => EmojiDescription;
22
+ export declare const buildEmojiDescriptionWithAltRepresentation: (emoji: EmojiDescriptionWithVariations, altRepresentation?: EmojiRepresentation) => EmojiDescriptionWithVariations;
23
+ export declare const getCategoryId: (emoji: EmojiDescription) => CategoryId;