@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.
- package/.eslintrc.js +6 -0
- package/CHANGELOG.md +12 -0
- package/dist/cjs/emoji/emoji-repository-usage-clear.js +1 -1
- package/dist/cjs/emoji/get-atlassian-emojis.js +1 -1
- package/dist/cjs/emoji/get-emoji-provider.js +2 -2
- package/dist/cjs/emoji/get-emoji-repository.js +1 -1
- package/dist/cjs/emoji/get-emoji-resource-standard-atlassian.js +1 -1
- package/dist/cjs/emoji/get-emojis.js +1 -1
- package/dist/cjs/emoji/get-site-emojis.js +1 -1
- package/dist/cjs/emoji/get-standard-emojis.js +1 -1
- package/dist/cjs/emoji-test/get-test-emojis.js +1 -1
- package/dist/cjs/emoji-test/test-emoji-repository.js +2 -2
- package/dist/cjs/mention/create-mock-mention-name-resolver.js +1 -1
- package/dist/cjs/mention/mock-mention-name-client.js +1 -1
- package/dist/cjs/mention/mock-mention-resource-with-info-hints.js +1 -1
- package/dist/cjs/mention/mock-mention-resource.js +1 -1
- package/dist/cjs/mention/mock-presence-resource.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/emoji/emoji-repository-usage-clear.js +1 -1
- package/dist/es2019/emoji/get-atlassian-emojis.js +1 -1
- package/dist/es2019/emoji/get-emoji-provider.js +2 -2
- package/dist/es2019/emoji/get-emoji-repository.js +1 -1
- package/dist/es2019/emoji/get-emoji-resource-standard-atlassian.js +1 -1
- package/dist/es2019/emoji/get-emojis.js +1 -1
- package/dist/es2019/emoji/get-site-emojis.js +1 -1
- package/dist/es2019/emoji/get-standard-emojis.js +1 -1
- package/dist/es2019/emoji-test/get-test-emojis.js +1 -1
- package/dist/es2019/emoji-test/test-emoji-repository.js +2 -2
- package/dist/es2019/mention/create-mock-mention-name-resolver.js +1 -1
- package/dist/es2019/mention/mock-mention-name-client.js +1 -1
- package/dist/es2019/mention/mock-mention-resource-with-info-hints.js +1 -1
- package/dist/es2019/mention/mock-mention-resource.js +1 -1
- package/dist/es2019/mention/mock-presence-resource.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/emoji/emoji-repository-usage-clear.js +1 -1
- package/dist/esm/emoji/get-atlassian-emojis.js +1 -1
- package/dist/esm/emoji/get-emoji-provider.js +2 -2
- package/dist/esm/emoji/get-emoji-repository.js +1 -1
- package/dist/esm/emoji/get-emoji-resource-standard-atlassian.js +1 -1
- package/dist/esm/emoji/get-emojis.js +1 -1
- package/dist/esm/emoji/get-site-emojis.js +1 -1
- package/dist/esm/emoji/get-standard-emojis.js +1 -1
- package/dist/esm/emoji-test/get-test-emojis.js +1 -1
- package/dist/esm/emoji-test/test-emoji-repository.js +2 -2
- package/dist/esm/mention/create-mock-mention-name-resolver.js +1 -1
- package/dist/esm/mention/mock-mention-name-client.js +1 -1
- package/dist/esm/mention/mock-mention-resource-with-info-hints.js +1 -1
- package/dist/esm/mention/mock-mention-resource.js +1 -1
- package/dist/esm/mention/mock-presence-resource.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/emoji/src/api/EmojiLoader.d.ts +13 -0
- package/dist/types/emoji/src/api/EmojiRepository.d.ts +72 -0
- package/dist/types/emoji/src/api/EmojiRepositoryRegex.d.ts +1 -0
- package/dist/types/emoji/src/api/EmojiResource.d.ts +139 -0
- package/dist/types/emoji/src/api/EmojiUtils.d.ts +24 -0
- package/dist/types/emoji/src/api/internal/Comparators.d.ts +109 -0
- package/dist/types/emoji/src/api/internal/UsageFrequencyTracker.d.ts +46 -0
- package/dist/types/emoji/src/api/media/MediaEmojiCache.d.ts +53 -0
- package/dist/types/emoji/src/api/media/MediaImageLoader.d.ts +21 -0
- package/dist/types/emoji/src/api/media/SiteEmojiResource.d.ts +46 -0
- package/dist/types/emoji/src/api/media/TokenManager.d.ts +13 -0
- package/dist/types/emoji/src/components/i18n.d.ts +227 -0
- package/dist/types/emoji/src/components/picker/categories.d.ts +7 -0
- package/dist/types/emoji/src/resource.d.ts +5 -0
- package/dist/types/emoji/src/types.d.ts +363 -0
- package/dist/types/emoji/src/util/DuplicateLimitedQueue.d.ts +91 -0
- package/dist/types/emoji/src/util/StoredDuplicateLimitedQueue.d.ts +46 -0
- package/dist/types/emoji/src/util/analytics/samplingUfo.d.ts +38 -0
- package/dist/types/emoji/src/util/analytics/ufoExperiences.d.ts +14 -0
- package/dist/types/emoji/src/util/constants.d.ts +60 -0
- package/dist/types/emoji/src/util/image.d.ts +10 -0
- package/dist/types/emoji/src/util/logger.d.ts +4 -0
- package/dist/types/emoji/src/util/storage-available.d.ts +3 -0
- package/dist/types/emoji/src/util/type-helpers.d.ts +23 -0
- package/dist/types/emoji/src/utils.d.ts +3 -0
- package/dist/types/mention/src/_constants.d.ts +1 -0
- package/dist/types/mention/src/api/ContextMentionResource.d.ts +23 -0
- package/dist/types/mention/src/api/MentionNameClient.d.ts +11 -0
- package/dist/types/mention/src/api/MentionNameResolver.d.ts +23 -0
- package/dist/types/mention/src/api/MentionResource.d.ts +93 -0
- package/dist/types/mention/src/api/PresenceResource.d.ts +119 -0
- package/dist/types/mention/src/api/TeamMentionResource.d.ts +33 -0
- package/dist/types/mention/src/components/LockCircleIcon/index.d.ts +3 -0
- package/dist/types/mention/src/components/Mention/PrimitiveMention.d.ts +7 -0
- package/dist/types/mention/src/components/Mention/ResourcedMention.d.ts +27 -0
- package/dist/types/mention/src/components/Mention/index.d.ts +31 -0
- package/dist/types/mention/src/components/Mention/ufoExperiences.d.ts +9 -0
- package/dist/types/mention/src/components/MentionDescriptionByline/TeamMentionDescriptionByline.d.ts +7 -0
- package/dist/types/mention/src/components/MentionDescriptionByline/UserMentionDescriptionByline.d.ts +5 -0
- package/dist/types/mention/src/components/MentionDescriptionByline/index.d.ts +5 -0
- package/dist/types/mention/src/components/MentionDescriptionByline/styles.d.ts +5 -0
- package/dist/types/mention/src/components/MentionDescriptionByline/types.d.ts +4 -0
- package/dist/types/mention/src/components/MentionItem/MentionHighlightHelpers.d.ts +3 -0
- package/dist/types/mention/src/components/MentionItem/index.d.ts +16 -0
- package/dist/types/mention/src/components/MentionItem/styles.d.ts +46 -0
- package/dist/types/mention/src/components/MentionList/index.d.ts +41 -0
- package/dist/types/mention/src/components/MentionList/styles.d.ts +8 -0
- package/dist/types/mention/src/components/MentionListError/GenericErrorIllustration.d.ts +7 -0
- package/dist/types/mention/src/components/MentionListError/index.d.ts +13 -0
- package/dist/types/mention/src/components/MentionListError/styles.d.ts +17 -0
- package/dist/types/mention/src/components/MentionPicker/index.d.ts +77 -0
- package/dist/types/mention/src/components/MentionPicker/styles.d.ts +12 -0
- package/dist/types/mention/src/components/MessagesIntlProvider/index.d.ts +3 -0
- package/dist/types/mention/src/components/NoAccessTooltip/index.d.ts +6 -0
- package/dist/types/mention/src/components/NoAccessTooltip/main.d.ts +7 -0
- package/dist/types/mention/src/components/Popup/index.d.ts +26 -0
- package/dist/types/mention/src/components/ResourcedMentionList/index.d.ts +46 -0
- package/dist/types/mention/src/components/Scrollable/index.d.ts +11 -0
- package/dist/types/mention/src/components/Scrollable/styles.d.ts +5 -0
- package/dist/types/mention/src/components/i18n.d.ts +57 -0
- package/dist/types/mention/src/i18n/cs.d.ts +20 -0
- package/dist/types/mention/src/i18n/da.d.ts +20 -0
- package/dist/types/mention/src/i18n/de.d.ts +20 -0
- package/dist/types/mention/src/i18n/en.d.ts +20 -0
- package/dist/types/mention/src/i18n/en_GB.d.ts +20 -0
- package/dist/types/mention/src/i18n/es.d.ts +20 -0
- package/dist/types/mention/src/i18n/et.d.ts +20 -0
- package/dist/types/mention/src/i18n/fi.d.ts +20 -0
- package/dist/types/mention/src/i18n/fr.d.ts +20 -0
- package/dist/types/mention/src/i18n/hu.d.ts +20 -0
- package/dist/types/mention/src/i18n/is.d.ts +24 -0
- package/dist/types/mention/src/i18n/it.d.ts +20 -0
- package/dist/types/mention/src/i18n/ja.d.ts +20 -0
- package/dist/types/mention/src/i18n/ko.d.ts +20 -0
- package/dist/types/mention/src/i18n/nb.d.ts +20 -0
- package/dist/types/mention/src/i18n/nl.d.ts +20 -0
- package/dist/types/mention/src/i18n/pl.d.ts +20 -0
- package/dist/types/mention/src/i18n/pt_BR.d.ts +20 -0
- package/dist/types/mention/src/i18n/pt_PT.d.ts +20 -0
- package/dist/types/mention/src/i18n/ro.d.ts +24 -0
- package/dist/types/mention/src/i18n/ru.d.ts +20 -0
- package/dist/types/mention/src/i18n/sk.d.ts +20 -0
- package/dist/types/mention/src/i18n/sv.d.ts +20 -0
- package/dist/types/mention/src/i18n/th.d.ts +20 -0
- package/dist/types/mention/src/i18n/tr.d.ts +20 -0
- package/dist/types/mention/src/i18n/uk.d.ts +20 -0
- package/dist/types/mention/src/i18n/vi.d.ts +20 -0
- package/dist/types/mention/src/i18n/zh.d.ts +20 -0
- package/dist/types/mention/src/i18n/zh_TW.d.ts +20 -0
- package/dist/types/mention/src/index.d.ts +17 -0
- package/dist/types/mention/src/resource.d.ts +10 -0
- package/dist/types/mention/src/shared-styles.d.ts +5 -0
- package/dist/types/mention/src/types.d.ts +168 -0
- package/dist/types/mention/src/util/analytics.d.ts +30 -0
- package/dist/types/mention/src/util/i18n.d.ts +29 -0
- package/dist/types/mention/src/util/id.d.ts +2 -0
- package/dist/types/mention/src/util/index.d.ts +1 -0
- package/dist/types/mention/src/util/logger.d.ts +4 -0
- package/dist/types/mention/src/util/mouse.d.ts +8 -0
- package/dist/types/task-decision/src/analytics/index.d.ts +2 -0
- package/dist/types/task-decision/src/api/TaskDecisionResource.d.ts +67 -0
- package/dist/types/task-decision/src/api/TaskDecisionUtils.d.ts +4 -0
- package/dist/types/task-decision/src/components/DecisionItem.d.ts +15 -0
- package/dist/types/task-decision/src/components/DecisionList.d.ts +9 -0
- package/dist/types/task-decision/src/components/Item.d.ts +25 -0
- package/dist/types/task-decision/src/components/ResourcedTaskItem.d.ts +35 -0
- package/dist/types/task-decision/src/components/TaskItem.d.ts +21 -0
- package/dist/types/task-decision/src/components/TaskList.d.ts +9 -0
- package/dist/types/task-decision/src/components/styles.d.ts +13 -0
- package/dist/types/task-decision/src/components/theme.d.ts +61 -0
- package/dist/types/task-decision/src/index.d.ts +9 -0
- package/dist/types/task-decision/src/type-helpers.d.ts +6 -0
- package/dist/types/task-decision/src/types.d.ts +160 -0
- package/dist/types/user-picker/src/analytics.d.ts +24 -0
- package/dist/types/user-picker/src/clients/UserSourceProvider.d.ts +11 -0
- package/dist/types/user-picker/src/components/AddOptionAvatar.d.ts +6 -0
- package/dist/types/user-picker/src/components/AvatarItemOption.d.ts +13 -0
- package/dist/types/user-picker/src/components/BaseUserPicker.d.ts +65 -0
- package/dist/types/user-picker/src/components/ClearIndicator.d.ts +6 -0
- package/dist/types/user-picker/src/components/CustomOption/index.d.ts +3 -0
- package/dist/types/user-picker/src/components/CustomOption/main.d.ts +15 -0
- package/dist/types/user-picker/src/components/EmailOption/index.d.ts +3 -0
- package/dist/types/user-picker/src/components/EmailOption/main.d.ts +18 -0
- package/dist/types/user-picker/src/components/ExternalUserOption/ExternalAvatarItemOption.d.ts +11 -0
- package/dist/types/user-picker/src/components/ExternalUserOption/InfoIcon.d.ts +3 -0
- package/dist/types/user-picker/src/components/ExternalUserOption/SourcesTooltipContent.d.ts +6 -0
- package/dist/types/user-picker/src/components/ExternalUserOption/index.d.ts +3 -0
- package/dist/types/user-picker/src/components/ExternalUserOption/main.d.ts +12 -0
- package/dist/types/user-picker/src/components/ExternalUserSourcesContainer.d.ts +15 -0
- package/dist/types/user-picker/src/components/GroupOption/index.d.ts +3 -0
- package/dist/types/user-picker/src/components/GroupOption/main.d.ts +16 -0
- package/dist/types/user-picker/src/components/HighlightText.d.ts +9 -0
- package/dist/types/user-picker/src/components/Input.d.ts +22 -0
- package/dist/types/user-picker/src/components/Menu.d.ts +10 -0
- package/dist/types/user-picker/src/components/MessagesIntlProvider.d.ts +3 -0
- package/dist/types/user-picker/src/components/MultiValue.d.ts +26 -0
- package/dist/types/user-picker/src/components/MultiValueContainer.d.ts +30 -0
- package/dist/types/user-picker/src/components/Option.d.ts +14 -0
- package/dist/types/user-picker/src/components/PopupControl.d.ts +7 -0
- package/dist/types/user-picker/src/components/PopupInput.d.ts +8 -0
- package/dist/types/user-picker/src/components/PopupUserPicker.d.ts +39 -0
- package/dist/types/user-picker/src/components/SingleValue.d.ts +5 -0
- package/dist/types/user-picker/src/components/SingleValueContainer.d.ts +9 -0
- package/dist/types/user-picker/src/components/SizeableAvatar.d.ts +10 -0
- package/dist/types/user-picker/src/components/TeamOption/index.d.ts +3 -0
- package/dist/types/user-picker/src/components/TeamOption/main.d.ts +16 -0
- package/dist/types/user-picker/src/components/UserOption.d.ts +15 -0
- package/dist/types/user-picker/src/components/UserPicker.d.ts +16 -0
- package/dist/types/user-picker/src/components/assets/github.d.ts +2 -0
- package/dist/types/user-picker/src/components/assets/google.d.ts +2 -0
- package/dist/types/user-picker/src/components/assets/microsoft.d.ts +2 -0
- package/dist/types/user-picker/src/components/assets/slack.d.ts +2 -0
- package/dist/types/user-picker/src/components/batch.d.ts +1 -0
- package/dist/types/user-picker/src/components/components.d.ts +49 -0
- package/dist/types/user-picker/src/components/creatable.d.ts +12 -0
- package/dist/types/user-picker/src/components/creatableEmailSuggestion.d.ts +19 -0
- package/dist/types/user-picker/src/components/emailValidation.d.ts +3 -0
- package/dist/types/user-picker/src/components/i18n.d.ts +132 -0
- package/dist/types/user-picker/src/components/popup.d.ts +48 -0
- package/dist/types/user-picker/src/components/styles.d.ts +42 -0
- package/dist/types/user-picker/src/components/utils.d.ts +29 -0
- package/dist/types/user-picker/src/i18n/cs.d.ts +35 -0
- package/dist/types/user-picker/src/i18n/da.d.ts +35 -0
- package/dist/types/user-picker/src/i18n/de.d.ts +35 -0
- package/dist/types/user-picker/src/i18n/en.d.ts +35 -0
- package/dist/types/user-picker/src/i18n/en_GB.d.ts +35 -0
- package/dist/types/user-picker/src/i18n/es.d.ts +35 -0
- package/dist/types/user-picker/src/i18n/et.d.ts +15 -0
- package/dist/types/user-picker/src/i18n/fi.d.ts +35 -0
- package/dist/types/user-picker/src/i18n/fr.d.ts +35 -0
- package/dist/types/user-picker/src/i18n/hu.d.ts +35 -0
- package/dist/types/user-picker/src/i18n/is.d.ts +7 -0
- package/dist/types/user-picker/src/i18n/it.d.ts +35 -0
- package/dist/types/user-picker/src/i18n/ja.d.ts +35 -0
- package/dist/types/user-picker/src/i18n/ko.d.ts +35 -0
- package/dist/types/user-picker/src/i18n/nb.d.ts +35 -0
- package/dist/types/user-picker/src/i18n/nl.d.ts +35 -0
- package/dist/types/user-picker/src/i18n/pl.d.ts +35 -0
- package/dist/types/user-picker/src/i18n/pt_BR.d.ts +35 -0
- package/dist/types/user-picker/src/i18n/pt_PT.d.ts +15 -0
- package/dist/types/user-picker/src/i18n/ro.d.ts +7 -0
- package/dist/types/user-picker/src/i18n/ru.d.ts +35 -0
- package/dist/types/user-picker/src/i18n/sk.d.ts +15 -0
- package/dist/types/user-picker/src/i18n/sv.d.ts +35 -0
- package/dist/types/user-picker/src/i18n/th.d.ts +35 -0
- package/dist/types/user-picker/src/i18n/tr.d.ts +35 -0
- package/dist/types/user-picker/src/i18n/uk.d.ts +35 -0
- package/dist/types/user-picker/src/i18n/vi.d.ts +35 -0
- package/dist/types/user-picker/src/i18n/zh.d.ts +35 -0
- package/dist/types/user-picker/src/i18n/zh_TW.d.ts +35 -0
- package/dist/types/user-picker/src/index.d.ts +7 -0
- package/dist/types/user-picker/src/types.d.ts +318 -0
- package/dist/types/user-picker/src/util/i18n-util.d.ts +11 -0
- package/dist/types/user-picker/src/util/ufoExperiences.d.ts +10 -0
- package/dist/{types-ts4.5 → types/util-data-test/src}/emoji/emoji-from-upload.d.ts +1 -1
- package/dist/{types-ts4.5 → types/util-data-test/src}/emoji/emoji-repository-usage-clear.d.ts +2 -2
- package/dist/{types-ts4.5 → types/util-data-test/src}/emoji/emoji-resource-usage-clear.d.ts +1 -1
- package/dist/types/{emoji → util-data-test/src/emoji}/get-atlassian-emoji-data.d.ts +1 -1
- package/dist/types/util-data-test/src/emoji/get-atlassian-emojis.d.ts +1 -0
- package/dist/types/{emoji → util-data-test/src/emoji}/get-emoji-provider.d.ts +1 -1
- package/dist/types/{emoji → util-data-test/src/emoji}/get-emoji-repository.d.ts +1 -1
- package/dist/types/util-data-test/src/emoji/get-emojis.d.ts +1 -0
- package/dist/types/{emoji → util-data-test/src/emoji}/get-site-emoji-data.d.ts +1 -1
- package/dist/types/util-data-test/src/emoji/get-site-emojis.d.ts +1 -0
- package/dist/types/{emoji → util-data-test/src/emoji}/get-standard-emoji-data.d.ts +1 -1
- package/dist/types/util-data-test/src/emoji/get-standard-emojis.d.ts +1 -0
- package/dist/types/{emoji → util-data-test/src/emoji}/mock-emoji-resource-factory.d.ts +1 -1
- package/dist/types/{emoji → util-data-test/src/emoji}/mock-emoji-resource.d.ts +2 -2
- package/dist/types/{emoji → util-data-test/src/emoji}/mock-non-uploading-emoji-resource-factory.d.ts +1 -1
- package/dist/types/{emoji → util-data-test/src/emoji}/mock-non-uploading-emoji-resource.d.ts +2 -2
- package/dist/{types-ts4.5 → types/util-data-test/src}/emoji/types.d.ts +1 -1
- package/dist/{types-ts4.5 → types/util-data-test/src}/emoji-test/filter-to-searchable.d.ts +1 -1
- package/dist/{types-ts4.5 → types/util-data-test/src}/emoji-test/get-test-emoji-resource-from-repository.d.ts +1 -1
- package/dist/types/{emoji-test → util-data-test/src/emoji-test}/get-test-emojis.d.ts +1 -1
- package/dist/types/util-data-test/src/emoji-test/get-test-searchable-emojis.d.ts +1 -0
- package/dist/types/util-data-test/src/emoji-test/test-emoji-repository.d.ts +5 -0
- package/dist/types/util-data-test/src/logger.d.ts +4 -0
- package/dist/types/{mention → util-data-test/src/mention}/create-mock-mention-name-resolver.d.ts +1 -1
- package/dist/{types-ts4.5 → types/util-data-test/src}/mention/mock-mention-name-client.d.ts +1 -1
- package/dist/types/{mention → util-data-test/src/mention}/mock-mention-resource-with-info-hints.d.ts +1 -1
- package/dist/{types-ts4.5 → types/util-data-test/src}/mention/mock-mention-resource.d.ts +2 -2
- package/dist/types/{mention → util-data-test/src/mention}/mock-presence-resource.d.ts +1 -1
- package/dist/types/{task-decision → util-data-test/src/task-decision}/mock-task-decision-resource.d.ts +1 -1
- package/dist/types/{task-decision → util-data-test/src/task-decision}/utils.d.ts +2 -2
- package/dist/types/util-data-test/src/user-picker/ChevronRight.d.ts +3 -0
- package/dist/types/{user-picker → util-data-test/src/user-picker}/user-picker-custom-data.d.ts +1 -1
- package/dist/types/{user-picker → util-data-test/src/user-picker}/user-picker-team-data.d.ts +1 -1
- package/dist/types-ts4.5/emoji/src/api/EmojiLoader.d.ts +13 -0
- package/dist/types-ts4.5/emoji/src/api/EmojiRepository.d.ts +72 -0
- package/dist/types-ts4.5/emoji/src/api/EmojiRepositoryRegex.d.ts +1 -0
- package/dist/types-ts4.5/emoji/src/api/EmojiResource.d.ts +139 -0
- package/dist/types-ts4.5/emoji/src/api/EmojiUtils.d.ts +24 -0
- package/dist/types-ts4.5/emoji/src/api/internal/Comparators.d.ts +109 -0
- package/dist/types-ts4.5/emoji/src/api/internal/UsageFrequencyTracker.d.ts +46 -0
- package/dist/types-ts4.5/emoji/src/api/media/MediaEmojiCache.d.ts +53 -0
- package/dist/types-ts4.5/emoji/src/api/media/MediaImageLoader.d.ts +21 -0
- package/dist/types-ts4.5/emoji/src/api/media/SiteEmojiResource.d.ts +46 -0
- package/dist/types-ts4.5/emoji/src/api/media/TokenManager.d.ts +13 -0
- package/dist/types-ts4.5/emoji/src/components/i18n.d.ts +227 -0
- package/dist/types-ts4.5/emoji/src/components/picker/categories.d.ts +7 -0
- package/dist/types-ts4.5/emoji/src/resource.d.ts +5 -0
- package/dist/types-ts4.5/emoji/src/types.d.ts +363 -0
- package/dist/types-ts4.5/emoji/src/util/DuplicateLimitedQueue.d.ts +91 -0
- package/dist/types-ts4.5/emoji/src/util/StoredDuplicateLimitedQueue.d.ts +46 -0
- package/dist/types-ts4.5/emoji/src/util/analytics/samplingUfo.d.ts +38 -0
- package/dist/types-ts4.5/emoji/src/util/analytics/ufoExperiences.d.ts +14 -0
- package/dist/types-ts4.5/emoji/src/util/constants.d.ts +60 -0
- package/dist/types-ts4.5/emoji/src/util/image.d.ts +10 -0
- package/dist/types-ts4.5/emoji/src/util/storage-available.d.ts +3 -0
- package/dist/types-ts4.5/emoji/src/util/type-helpers.d.ts +23 -0
- package/dist/types-ts4.5/emoji/src/utils.d.ts +3 -0
- package/dist/types-ts4.5/mention/src/_constants.d.ts +1 -0
- package/dist/types-ts4.5/mention/src/api/ContextMentionResource.d.ts +23 -0
- package/dist/types-ts4.5/mention/src/api/MentionNameClient.d.ts +11 -0
- package/dist/types-ts4.5/mention/src/api/MentionNameResolver.d.ts +23 -0
- package/dist/types-ts4.5/mention/src/api/MentionResource.d.ts +93 -0
- package/dist/types-ts4.5/mention/src/api/PresenceResource.d.ts +119 -0
- package/dist/types-ts4.5/mention/src/api/TeamMentionResource.d.ts +33 -0
- package/dist/types-ts4.5/mention/src/components/LockCircleIcon/index.d.ts +3 -0
- package/dist/types-ts4.5/mention/src/components/Mention/PrimitiveMention.d.ts +7 -0
- package/dist/types-ts4.5/mention/src/components/Mention/ResourcedMention.d.ts +27 -0
- package/dist/types-ts4.5/mention/src/components/Mention/index.d.ts +31 -0
- package/dist/types-ts4.5/mention/src/components/Mention/ufoExperiences.d.ts +9 -0
- package/dist/types-ts4.5/mention/src/components/MentionDescriptionByline/TeamMentionDescriptionByline.d.ts +7 -0
- package/dist/types-ts4.5/mention/src/components/MentionDescriptionByline/UserMentionDescriptionByline.d.ts +5 -0
- package/dist/types-ts4.5/mention/src/components/MentionDescriptionByline/index.d.ts +5 -0
- package/dist/types-ts4.5/mention/src/components/MentionDescriptionByline/styles.d.ts +5 -0
- package/dist/types-ts4.5/mention/src/components/MentionDescriptionByline/types.d.ts +4 -0
- package/dist/types-ts4.5/mention/src/components/MentionItem/MentionHighlightHelpers.d.ts +3 -0
- package/dist/types-ts4.5/mention/src/components/MentionItem/index.d.ts +16 -0
- package/dist/types-ts4.5/mention/src/components/MentionItem/styles.d.ts +46 -0
- package/dist/types-ts4.5/mention/src/components/MentionList/index.d.ts +41 -0
- package/dist/types-ts4.5/mention/src/components/MentionList/styles.d.ts +8 -0
- package/dist/types-ts4.5/mention/src/components/MentionListError/GenericErrorIllustration.d.ts +7 -0
- package/dist/types-ts4.5/mention/src/components/MentionListError/index.d.ts +13 -0
- package/dist/types-ts4.5/mention/src/components/MentionListError/styles.d.ts +17 -0
- package/dist/types-ts4.5/mention/src/components/MentionPicker/index.d.ts +77 -0
- package/dist/types-ts4.5/mention/src/components/MentionPicker/styles.d.ts +12 -0
- package/dist/types-ts4.5/mention/src/components/MessagesIntlProvider/index.d.ts +3 -0
- package/dist/types-ts4.5/mention/src/components/NoAccessTooltip/index.d.ts +6 -0
- package/dist/types-ts4.5/mention/src/components/NoAccessTooltip/main.d.ts +7 -0
- package/dist/types-ts4.5/mention/src/components/Popup/index.d.ts +26 -0
- package/dist/types-ts4.5/mention/src/components/ResourcedMentionList/index.d.ts +46 -0
- package/dist/types-ts4.5/mention/src/components/Scrollable/index.d.ts +11 -0
- package/dist/types-ts4.5/mention/src/components/Scrollable/styles.d.ts +5 -0
- package/dist/types-ts4.5/mention/src/components/i18n.d.ts +57 -0
- package/dist/types-ts4.5/mention/src/i18n/cs.d.ts +20 -0
- package/dist/types-ts4.5/mention/src/i18n/da.d.ts +20 -0
- package/dist/types-ts4.5/mention/src/i18n/de.d.ts +20 -0
- package/dist/types-ts4.5/mention/src/i18n/en.d.ts +20 -0
- package/dist/types-ts4.5/mention/src/i18n/en_GB.d.ts +20 -0
- package/dist/types-ts4.5/mention/src/i18n/es.d.ts +20 -0
- package/dist/types-ts4.5/mention/src/i18n/et.d.ts +20 -0
- package/dist/types-ts4.5/mention/src/i18n/fi.d.ts +20 -0
- package/dist/types-ts4.5/mention/src/i18n/fr.d.ts +20 -0
- package/dist/types-ts4.5/mention/src/i18n/hu.d.ts +20 -0
- package/dist/types-ts4.5/mention/src/i18n/is.d.ts +24 -0
- package/dist/types-ts4.5/mention/src/i18n/it.d.ts +20 -0
- package/dist/types-ts4.5/mention/src/i18n/ja.d.ts +20 -0
- package/dist/types-ts4.5/mention/src/i18n/ko.d.ts +20 -0
- package/dist/types-ts4.5/mention/src/i18n/nb.d.ts +20 -0
- package/dist/types-ts4.5/mention/src/i18n/nl.d.ts +20 -0
- package/dist/types-ts4.5/mention/src/i18n/pl.d.ts +20 -0
- package/dist/types-ts4.5/mention/src/i18n/pt_BR.d.ts +20 -0
- package/dist/types-ts4.5/mention/src/i18n/pt_PT.d.ts +20 -0
- package/dist/types-ts4.5/mention/src/i18n/ro.d.ts +24 -0
- package/dist/types-ts4.5/mention/src/i18n/ru.d.ts +20 -0
- package/dist/types-ts4.5/mention/src/i18n/sk.d.ts +20 -0
- package/dist/types-ts4.5/mention/src/i18n/sv.d.ts +20 -0
- package/dist/types-ts4.5/mention/src/i18n/th.d.ts +20 -0
- package/dist/types-ts4.5/mention/src/i18n/tr.d.ts +20 -0
- package/dist/types-ts4.5/mention/src/i18n/uk.d.ts +20 -0
- package/dist/types-ts4.5/mention/src/i18n/vi.d.ts +20 -0
- package/dist/types-ts4.5/mention/src/i18n/zh.d.ts +20 -0
- package/dist/types-ts4.5/mention/src/i18n/zh_TW.d.ts +20 -0
- package/dist/types-ts4.5/mention/src/index.d.ts +17 -0
- package/dist/types-ts4.5/mention/src/resource.d.ts +10 -0
- package/dist/types-ts4.5/mention/src/shared-styles.d.ts +5 -0
- package/dist/types-ts4.5/mention/src/types.d.ts +168 -0
- package/dist/types-ts4.5/mention/src/util/analytics.d.ts +30 -0
- package/dist/types-ts4.5/mention/src/util/i18n.d.ts +29 -0
- package/dist/types-ts4.5/mention/src/util/id.d.ts +2 -0
- package/dist/types-ts4.5/mention/src/util/index.d.ts +1 -0
- package/dist/types-ts4.5/mention/src/util/mouse.d.ts +8 -0
- package/dist/types-ts4.5/task-decision/src/analytics/index.d.ts +2 -0
- package/dist/types-ts4.5/task-decision/src/api/TaskDecisionResource.d.ts +67 -0
- package/dist/types-ts4.5/task-decision/src/api/TaskDecisionUtils.d.ts +4 -0
- package/dist/types-ts4.5/task-decision/src/components/DecisionItem.d.ts +15 -0
- package/dist/types-ts4.5/task-decision/src/components/DecisionList.d.ts +9 -0
- package/dist/types-ts4.5/task-decision/src/components/Item.d.ts +25 -0
- package/dist/types-ts4.5/task-decision/src/components/ResourcedTaskItem.d.ts +35 -0
- package/dist/types-ts4.5/task-decision/src/components/TaskItem.d.ts +21 -0
- package/dist/types-ts4.5/task-decision/src/components/TaskList.d.ts +9 -0
- package/dist/types-ts4.5/task-decision/src/components/styles.d.ts +13 -0
- package/dist/types-ts4.5/task-decision/src/components/theme.d.ts +61 -0
- package/dist/types-ts4.5/task-decision/src/index.d.ts +9 -0
- package/dist/types-ts4.5/task-decision/src/type-helpers.d.ts +6 -0
- package/dist/types-ts4.5/task-decision/src/types.d.ts +160 -0
- package/dist/types-ts4.5/user-picker/src/analytics.d.ts +24 -0
- package/dist/types-ts4.5/user-picker/src/clients/UserSourceProvider.d.ts +11 -0
- package/dist/types-ts4.5/user-picker/src/components/AddOptionAvatar.d.ts +6 -0
- package/dist/types-ts4.5/user-picker/src/components/AvatarItemOption.d.ts +13 -0
- package/dist/types-ts4.5/user-picker/src/components/BaseUserPicker.d.ts +65 -0
- package/dist/types-ts4.5/user-picker/src/components/ClearIndicator.d.ts +6 -0
- package/dist/types-ts4.5/user-picker/src/components/CustomOption/index.d.ts +3 -0
- package/dist/types-ts4.5/user-picker/src/components/CustomOption/main.d.ts +15 -0
- package/dist/types-ts4.5/user-picker/src/components/EmailOption/index.d.ts +3 -0
- package/dist/types-ts4.5/user-picker/src/components/EmailOption/main.d.ts +18 -0
- package/dist/types-ts4.5/user-picker/src/components/ExternalUserOption/ExternalAvatarItemOption.d.ts +11 -0
- package/dist/types-ts4.5/user-picker/src/components/ExternalUserOption/SourcesTooltipContent.d.ts +6 -0
- package/dist/types-ts4.5/user-picker/src/components/ExternalUserOption/index.d.ts +3 -0
- package/dist/types-ts4.5/user-picker/src/components/ExternalUserOption/main.d.ts +12 -0
- package/dist/types-ts4.5/user-picker/src/components/ExternalUserSourcesContainer.d.ts +15 -0
- package/dist/types-ts4.5/user-picker/src/components/GroupOption/index.d.ts +3 -0
- package/dist/types-ts4.5/user-picker/src/components/GroupOption/main.d.ts +16 -0
- package/dist/types-ts4.5/user-picker/src/components/HighlightText.d.ts +9 -0
- package/dist/types-ts4.5/user-picker/src/components/Input.d.ts +22 -0
- package/dist/types-ts4.5/user-picker/src/components/Menu.d.ts +10 -0
- package/dist/types-ts4.5/user-picker/src/components/MessagesIntlProvider.d.ts +3 -0
- package/dist/types-ts4.5/user-picker/src/components/MultiValue.d.ts +26 -0
- package/dist/types-ts4.5/user-picker/src/components/MultiValueContainer.d.ts +30 -0
- package/dist/types-ts4.5/user-picker/src/components/Option.d.ts +14 -0
- package/dist/types-ts4.5/user-picker/src/components/PopupControl.d.ts +7 -0
- package/dist/types-ts4.5/user-picker/src/components/PopupInput.d.ts +8 -0
- package/dist/types-ts4.5/user-picker/src/components/PopupUserPicker.d.ts +39 -0
- package/dist/types-ts4.5/user-picker/src/components/SingleValue.d.ts +5 -0
- package/dist/types-ts4.5/user-picker/src/components/SingleValueContainer.d.ts +9 -0
- package/dist/types-ts4.5/user-picker/src/components/SizeableAvatar.d.ts +10 -0
- package/dist/types-ts4.5/user-picker/src/components/TeamOption/index.d.ts +3 -0
- package/dist/types-ts4.5/user-picker/src/components/TeamOption/main.d.ts +16 -0
- package/dist/types-ts4.5/user-picker/src/components/UserOption.d.ts +15 -0
- package/dist/types-ts4.5/user-picker/src/components/UserPicker.d.ts +16 -0
- package/dist/types-ts4.5/user-picker/src/components/assets/github.d.ts +2 -0
- package/dist/types-ts4.5/user-picker/src/components/assets/google.d.ts +2 -0
- package/dist/types-ts4.5/user-picker/src/components/assets/microsoft.d.ts +2 -0
- package/dist/types-ts4.5/user-picker/src/components/assets/slack.d.ts +2 -0
- package/dist/types-ts4.5/user-picker/src/components/batch.d.ts +1 -0
- package/dist/types-ts4.5/user-picker/src/components/components.d.ts +49 -0
- package/dist/types-ts4.5/user-picker/src/components/creatable.d.ts +12 -0
- package/dist/types-ts4.5/user-picker/src/components/creatableEmailSuggestion.d.ts +19 -0
- package/dist/types-ts4.5/user-picker/src/components/emailValidation.d.ts +3 -0
- package/dist/types-ts4.5/user-picker/src/components/i18n.d.ts +132 -0
- package/dist/types-ts4.5/user-picker/src/components/popup.d.ts +48 -0
- package/dist/types-ts4.5/user-picker/src/components/styles.d.ts +42 -0
- package/dist/types-ts4.5/user-picker/src/components/utils.d.ts +29 -0
- package/dist/types-ts4.5/user-picker/src/i18n/cs.d.ts +35 -0
- package/dist/types-ts4.5/user-picker/src/i18n/da.d.ts +35 -0
- package/dist/types-ts4.5/user-picker/src/i18n/de.d.ts +35 -0
- package/dist/types-ts4.5/user-picker/src/i18n/en.d.ts +35 -0
- package/dist/types-ts4.5/user-picker/src/i18n/en_GB.d.ts +35 -0
- package/dist/types-ts4.5/user-picker/src/i18n/es.d.ts +35 -0
- package/dist/types-ts4.5/user-picker/src/i18n/et.d.ts +15 -0
- package/dist/types-ts4.5/user-picker/src/i18n/fi.d.ts +35 -0
- package/dist/types-ts4.5/user-picker/src/i18n/fr.d.ts +35 -0
- package/dist/types-ts4.5/user-picker/src/i18n/hu.d.ts +35 -0
- package/dist/types-ts4.5/user-picker/src/i18n/is.d.ts +7 -0
- package/dist/types-ts4.5/user-picker/src/i18n/it.d.ts +35 -0
- package/dist/types-ts4.5/user-picker/src/i18n/ja.d.ts +35 -0
- package/dist/types-ts4.5/user-picker/src/i18n/ko.d.ts +35 -0
- package/dist/types-ts4.5/user-picker/src/i18n/nb.d.ts +35 -0
- package/dist/types-ts4.5/user-picker/src/i18n/nl.d.ts +35 -0
- package/dist/types-ts4.5/user-picker/src/i18n/pl.d.ts +35 -0
- package/dist/types-ts4.5/user-picker/src/i18n/pt_BR.d.ts +35 -0
- package/dist/types-ts4.5/user-picker/src/i18n/pt_PT.d.ts +15 -0
- package/dist/types-ts4.5/user-picker/src/i18n/ro.d.ts +7 -0
- package/dist/types-ts4.5/user-picker/src/i18n/ru.d.ts +35 -0
- package/dist/types-ts4.5/user-picker/src/i18n/sk.d.ts +15 -0
- package/dist/types-ts4.5/user-picker/src/i18n/sv.d.ts +35 -0
- package/dist/types-ts4.5/user-picker/src/i18n/th.d.ts +35 -0
- package/dist/types-ts4.5/user-picker/src/i18n/tr.d.ts +35 -0
- package/dist/types-ts4.5/user-picker/src/i18n/uk.d.ts +35 -0
- package/dist/types-ts4.5/user-picker/src/i18n/vi.d.ts +35 -0
- package/dist/types-ts4.5/user-picker/src/i18n/zh.d.ts +35 -0
- package/dist/types-ts4.5/user-picker/src/i18n/zh_TW.d.ts +35 -0
- package/dist/types-ts4.5/user-picker/src/index.d.ts +7 -0
- package/dist/types-ts4.5/user-picker/src/types.d.ts +321 -0
- package/dist/types-ts4.5/user-picker/src/util/i18n-util.d.ts +11 -0
- package/dist/types-ts4.5/user-picker/src/util/ufoExperiences.d.ts +10 -0
- package/dist/{types → types-ts4.5/util-data-test/src}/emoji/emoji-from-upload.d.ts +1 -1
- package/dist/{types → types-ts4.5/util-data-test/src}/emoji/emoji-repository-usage-clear.d.ts +2 -2
- package/dist/{types → types-ts4.5/util-data-test/src}/emoji/emoji-resource-usage-clear.d.ts +1 -1
- package/dist/types-ts4.5/{emoji → util-data-test/src/emoji}/get-atlassian-emoji-data.d.ts +1 -1
- package/dist/types-ts4.5/util-data-test/src/emoji/get-atlassian-emojis.d.ts +1 -0
- package/dist/types-ts4.5/{emoji → util-data-test/src/emoji}/get-emoji-provider.d.ts +1 -1
- package/dist/types-ts4.5/{emoji → util-data-test/src/emoji}/get-emoji-repository.d.ts +1 -1
- package/dist/types-ts4.5/util-data-test/src/emoji/get-emojis.d.ts +1 -0
- package/dist/types-ts4.5/{emoji → util-data-test/src/emoji}/get-site-emoji-data.d.ts +1 -1
- package/dist/types-ts4.5/util-data-test/src/emoji/get-site-emojis.d.ts +1 -0
- package/dist/types-ts4.5/{emoji → util-data-test/src/emoji}/get-standard-emoji-data.d.ts +1 -1
- package/dist/types-ts4.5/util-data-test/src/emoji/get-standard-emojis.d.ts +1 -0
- package/dist/types-ts4.5/{emoji → util-data-test/src/emoji}/mock-emoji-resource-factory.d.ts +1 -1
- package/dist/types-ts4.5/{emoji → util-data-test/src/emoji}/mock-emoji-resource.d.ts +2 -2
- package/dist/types-ts4.5/{emoji → util-data-test/src/emoji}/mock-non-uploading-emoji-resource-factory.d.ts +1 -1
- package/dist/types-ts4.5/{emoji → util-data-test/src/emoji}/mock-non-uploading-emoji-resource.d.ts +2 -2
- package/dist/{types → types-ts4.5/util-data-test/src}/emoji/types.d.ts +1 -1
- package/dist/{types → types-ts4.5/util-data-test/src}/emoji-test/filter-to-searchable.d.ts +1 -1
- package/dist/{types → types-ts4.5/util-data-test/src}/emoji-test/get-test-emoji-resource-from-repository.d.ts +1 -1
- package/dist/types-ts4.5/{emoji-test → util-data-test/src/emoji-test}/get-test-emojis.d.ts +1 -1
- package/dist/types-ts4.5/util-data-test/src/emoji-test/get-test-searchable-emojis.d.ts +1 -0
- package/dist/types-ts4.5/util-data-test/src/emoji-test/test-emoji-repository.d.ts +5 -0
- package/dist/types-ts4.5/util-data-test/src/logger.d.ts +4 -0
- package/dist/types-ts4.5/{mention → util-data-test/src/mention}/create-mock-mention-name-resolver.d.ts +1 -1
- package/dist/{types → types-ts4.5/util-data-test/src}/mention/mock-mention-name-client.d.ts +1 -1
- package/dist/types-ts4.5/{mention → util-data-test/src/mention}/mock-mention-resource-with-info-hints.d.ts +1 -1
- package/dist/{types → types-ts4.5/util-data-test/src}/mention/mock-mention-resource.d.ts +2 -2
- package/dist/types-ts4.5/{mention → util-data-test/src/mention}/mock-presence-resource.d.ts +1 -1
- package/dist/types-ts4.5/{task-decision → util-data-test/src/task-decision}/mock-task-decision-resource.d.ts +1 -1
- package/dist/types-ts4.5/{task-decision → util-data-test/src/task-decision}/utils.d.ts +2 -2
- package/dist/types-ts4.5/{user-picker → util-data-test/src/user-picker}/user-picker-custom-data.d.ts +1 -1
- package/dist/types-ts4.5/{user-picker → util-data-test/src/user-picker}/user-picker-team-data.d.ts +1 -1
- package/package.json +3 -8
- package/dist/types/emoji/get-atlassian-emojis.d.ts +0 -1
- package/dist/types/emoji/get-emojis.d.ts +0 -1
- package/dist/types/emoji/get-site-emojis.d.ts +0 -1
- package/dist/types/emoji/get-standard-emojis.d.ts +0 -1
- package/dist/types/emoji-test/get-test-searchable-emojis.d.ts +0 -1
- package/dist/types/emoji-test/test-emoji-repository.d.ts +0 -5
- package/dist/types/json-data/emoji-all.json +0 -54398
- package/dist/types/json-data/mention-data.json +0 -393
- package/dist/types/json-data/presence-invalid-info.json +0 -47
- package/dist/types/json-data/presence-valid-info.json +0 -63
- package/dist/types/json-data/sample-tasks.json +0 -80
- package/dist/types/json-data/service-data-atlassian.json +0 -272
- package/dist/types/json-data/service-data-standard.json +0 -54098
- package/dist/types/json-data/slack-conversations-data.json +0 -476
- package/dist/types/json-data/slack-workspaces-data.json +0 -19
- package/dist/types/json-data/test-emoji-atlassian.json +0 -224
- package/dist/types/json-data/test-emoji-standard.json +0 -2000
- package/dist/types/json-data/user-picker-data.json +0 -361
- package/dist/types-ts4.5/emoji/get-atlassian-emojis.d.ts +0 -1
- package/dist/types-ts4.5/emoji/get-emojis.d.ts +0 -1
- package/dist/types-ts4.5/emoji/get-site-emojis.d.ts +0 -1
- package/dist/types-ts4.5/emoji/get-standard-emojis.d.ts +0 -1
- package/dist/types-ts4.5/emoji-test/get-test-searchable-emojis.d.ts +0 -1
- package/dist/types-ts4.5/emoji-test/test-emoji-repository.d.ts +0 -5
- package/dist/types-ts4.5/json-data/emoji-all.json +0 -54398
- package/dist/types-ts4.5/json-data/mention-data.json +0 -393
- package/dist/types-ts4.5/json-data/presence-invalid-info.json +0 -47
- package/dist/types-ts4.5/json-data/presence-valid-info.json +0 -63
- package/dist/types-ts4.5/json-data/sample-tasks.json +0 -80
- package/dist/types-ts4.5/json-data/service-data-atlassian.json +0 -272
- package/dist/types-ts4.5/json-data/service-data-standard.json +0 -54098
- package/dist/types-ts4.5/json-data/slack-conversations-data.json +0 -476
- package/dist/types-ts4.5/json-data/slack-workspaces-data.json +0 -19
- package/dist/types-ts4.5/json-data/test-emoji-atlassian.json +0 -224
- package/dist/types-ts4.5/json-data/test-emoji-standard.json +0 -2000
- package/dist/types-ts4.5/json-data/user-picker-data.json +0 -361
- /package/dist/types/{emoji → util-data-test/src/emoji}/get-emoji-resource-standard-atlassian.d.ts +0 -0
- /package/dist/types/{emoji → util-data-test/src/emoji}/get-emoji-resource-usage-clear.d.ts +0 -0
- /package/dist/types/{emoji → util-data-test/src/emoji}/get-emoji-resource.d.ts +0 -0
- /package/dist/types/{emoji → util-data-test/src/emoji}/image-emoji.d.ts +0 -0
- /package/dist/types/{emoji → util-data-test/src/emoji}/logged-user.d.ts +0 -0
- /package/dist/types/{emoji → util-data-test/src/emoji}/lorem.d.ts +0 -0
- /package/dist/types/{emoji → util-data-test/src/emoji}/site-emoji-foo.d.ts +0 -0
- /package/dist/types/{emoji → util-data-test/src/emoji}/site-emoji-wtf.d.ts +0 -0
- /package/dist/types/{emoji → util-data-test/src/emoji}/sprite-emoji.d.ts +0 -0
- /package/dist/types/{emoji-constants → util-data-test/src/emoji-constants}/index.d.ts +0 -0
- /package/dist/types/{emoji-test → util-data-test/src/emoji-test}/emoji-samples.d.ts +0 -0
- /package/dist/types/{emoji-test → util-data-test/src/emoji-test}/expires-at.d.ts +0 -0
- /package/dist/types/{emoji-test → util-data-test/src/emoji-test}/get-non-uploading-emoji-resource.d.ts +0 -0
- /package/dist/types/{emoji-test → util-data-test/src/emoji-test}/get-test-atlassian-emojis.d.ts +0 -0
- /package/dist/types/{emoji-test → util-data-test/src/emoji-test}/get-test-atlassian-service-emojis.d.ts +0 -0
- /package/dist/types/{emoji-test → util-data-test/src/emoji-test}/get-test-emoji-repository.d.ts +0 -0
- /package/dist/types/{emoji-test → util-data-test/src/emoji-test}/get-test-emoji-resource-non-uploading.d.ts +0 -0
- /package/dist/types/{emoji-test → util-data-test/src/emoji-test}/get-test-emoji-resource.d.ts +0 -0
- /package/dist/types/{emoji-test → util-data-test/src/emoji-test}/get-test-image-emoji.d.ts +0 -0
- /package/dist/types/{emoji-test → util-data-test/src/emoji-test}/get-test-media-api-token.d.ts +0 -0
- /package/dist/types/{emoji-test → util-data-test/src/emoji-test}/get-test-site-emoji-foo.d.ts +0 -0
- /package/dist/types/{emoji-test → util-data-test/src/emoji-test}/get-test-site-emoji-repository.d.ts +0 -0
- /package/dist/types/{emoji-test → util-data-test/src/emoji-test}/get-test-site-emoji-wtf.d.ts +0 -0
- /package/dist/types/{emoji-test → util-data-test/src/emoji-test}/get-test-site-emojis.d.ts +0 -0
- /package/dist/types/{emoji-test → util-data-test/src/emoji-test}/get-test-site-service-emojis.d.ts +0 -0
- /package/dist/types/{emoji-test → util-data-test/src/emoji-test}/get-test-sprite-emoji.d.ts +0 -0
- /package/dist/types/{emoji-test → util-data-test/src/emoji-test}/get-test-standard-emojis.d.ts +0 -0
- /package/dist/types/{emoji-test → util-data-test/src/emoji-test}/get-test-standard-service-emojis.d.ts +0 -0
- /package/dist/types/{emoji-test → util-data-test/src/emoji-test}/media-emoji.d.ts +0 -0
- /package/dist/types/{emoji-test → util-data-test/src/emoji-test}/media-service-emoji.d.ts +0 -0
- /package/dist/types/{mention → util-data-test/src/mention}/mention-story-data.d.ts +0 -0
- /package/dist/types/{mention → util-data-test/src/mention}/mention-test-data.d.ts +0 -0
- /package/dist/types/{mention → util-data-test/src/mention}/presence-data.d.ts +0 -0
- /package/dist/types/{mention → util-data-test/src/mention}/utils.d.ts +0 -0
- /package/dist/types/{profilecard → util-data-test/src/profilecard}/get-mock-profilecard-client.d.ts +0 -0
- /package/dist/types/{profilecard → util-data-test/src/profilecard}/profilecard-data.d.ts +0 -0
- /package/dist/types/{profilecard → util-data-test/src/profilecard}/util.d.ts +0 -0
- /package/dist/types/{slack-data → util-data-test/src/slack-data}/index.d.ts +0 -0
- /package/dist/types/{slack-data → util-data-test/src/slack-data}/slack-conversations-data.d.ts +0 -0
- /package/dist/types/{slack-data → util-data-test/src/slack-data}/slack-workspaces-data.d.ts +0 -0
- /package/dist/types/{task-decision → util-data-test/src/task-decision}/task-decision-story-data.d.ts +0 -0
- /package/dist/types/{user-picker → util-data-test/src/user-picker}/index.d.ts +0 -0
- /package/dist/types/{user-picker → util-data-test/src/user-picker}/user-picker-data.d.ts +0 -0
- /package/dist/types-ts4.5/{logger.d.ts → emoji/src/util/logger.d.ts} +0 -0
- /package/dist/{types → types-ts4.5/mention/src/util}/logger.d.ts +0 -0
- /package/dist/types-ts4.5/user-picker/{ChevronRight.d.ts → src/components/ExternalUserOption/InfoIcon.d.ts} +0 -0
- /package/dist/types-ts4.5/{emoji → util-data-test/src/emoji}/get-emoji-resource-standard-atlassian.d.ts +0 -0
- /package/dist/types-ts4.5/{emoji → util-data-test/src/emoji}/get-emoji-resource-usage-clear.d.ts +0 -0
- /package/dist/types-ts4.5/{emoji → util-data-test/src/emoji}/get-emoji-resource.d.ts +0 -0
- /package/dist/types-ts4.5/{emoji → util-data-test/src/emoji}/image-emoji.d.ts +0 -0
- /package/dist/types-ts4.5/{emoji → util-data-test/src/emoji}/logged-user.d.ts +0 -0
- /package/dist/types-ts4.5/{emoji → util-data-test/src/emoji}/lorem.d.ts +0 -0
- /package/dist/types-ts4.5/{emoji → util-data-test/src/emoji}/site-emoji-foo.d.ts +0 -0
- /package/dist/types-ts4.5/{emoji → util-data-test/src/emoji}/site-emoji-wtf.d.ts +0 -0
- /package/dist/types-ts4.5/{emoji → util-data-test/src/emoji}/sprite-emoji.d.ts +0 -0
- /package/dist/types-ts4.5/{emoji-constants → util-data-test/src/emoji-constants}/index.d.ts +0 -0
- /package/dist/types-ts4.5/{emoji-test → util-data-test/src/emoji-test}/emoji-samples.d.ts +0 -0
- /package/dist/types-ts4.5/{emoji-test → util-data-test/src/emoji-test}/expires-at.d.ts +0 -0
- /package/dist/types-ts4.5/{emoji-test → util-data-test/src/emoji-test}/get-non-uploading-emoji-resource.d.ts +0 -0
- /package/dist/types-ts4.5/{emoji-test → util-data-test/src/emoji-test}/get-test-atlassian-emojis.d.ts +0 -0
- /package/dist/types-ts4.5/{emoji-test → util-data-test/src/emoji-test}/get-test-atlassian-service-emojis.d.ts +0 -0
- /package/dist/types-ts4.5/{emoji-test → util-data-test/src/emoji-test}/get-test-emoji-repository.d.ts +0 -0
- /package/dist/types-ts4.5/{emoji-test → util-data-test/src/emoji-test}/get-test-emoji-resource-non-uploading.d.ts +0 -0
- /package/dist/types-ts4.5/{emoji-test → util-data-test/src/emoji-test}/get-test-emoji-resource.d.ts +0 -0
- /package/dist/types-ts4.5/{emoji-test → util-data-test/src/emoji-test}/get-test-image-emoji.d.ts +0 -0
- /package/dist/types-ts4.5/{emoji-test → util-data-test/src/emoji-test}/get-test-media-api-token.d.ts +0 -0
- /package/dist/types-ts4.5/{emoji-test → util-data-test/src/emoji-test}/get-test-site-emoji-foo.d.ts +0 -0
- /package/dist/types-ts4.5/{emoji-test → util-data-test/src/emoji-test}/get-test-site-emoji-repository.d.ts +0 -0
- /package/dist/types-ts4.5/{emoji-test → util-data-test/src/emoji-test}/get-test-site-emoji-wtf.d.ts +0 -0
- /package/dist/types-ts4.5/{emoji-test → util-data-test/src/emoji-test}/get-test-site-emojis.d.ts +0 -0
- /package/dist/types-ts4.5/{emoji-test → util-data-test/src/emoji-test}/get-test-site-service-emojis.d.ts +0 -0
- /package/dist/types-ts4.5/{emoji-test → util-data-test/src/emoji-test}/get-test-sprite-emoji.d.ts +0 -0
- /package/dist/types-ts4.5/{emoji-test → util-data-test/src/emoji-test}/get-test-standard-emojis.d.ts +0 -0
- /package/dist/types-ts4.5/{emoji-test → util-data-test/src/emoji-test}/get-test-standard-service-emojis.d.ts +0 -0
- /package/dist/types-ts4.5/{emoji-test → util-data-test/src/emoji-test}/media-emoji.d.ts +0 -0
- /package/dist/types-ts4.5/{emoji-test → util-data-test/src/emoji-test}/media-service-emoji.d.ts +0 -0
- /package/dist/types-ts4.5/{mention → util-data-test/src/mention}/mention-story-data.d.ts +0 -0
- /package/dist/types-ts4.5/{mention → util-data-test/src/mention}/mention-test-data.d.ts +0 -0
- /package/dist/types-ts4.5/{mention → util-data-test/src/mention}/presence-data.d.ts +0 -0
- /package/dist/types-ts4.5/{mention → util-data-test/src/mention}/utils.d.ts +0 -0
- /package/dist/types-ts4.5/{profilecard → util-data-test/src/profilecard}/get-mock-profilecard-client.d.ts +0 -0
- /package/dist/types-ts4.5/{profilecard → util-data-test/src/profilecard}/profilecard-data.d.ts +0 -0
- /package/dist/types-ts4.5/{profilecard → util-data-test/src/profilecard}/util.d.ts +0 -0
- /package/dist/types-ts4.5/{slack-data → util-data-test/src/slack-data}/index.d.ts +0 -0
- /package/dist/types-ts4.5/{slack-data → util-data-test/src/slack-data}/slack-conversations-data.d.ts +0 -0
- /package/dist/types-ts4.5/{slack-data → util-data-test/src/slack-data}/slack-workspaces-data.d.ts +0 -0
- /package/dist/types-ts4.5/{task-decision → util-data-test/src/task-decision}/task-decision-story-data.d.ts +0 -0
- /package/dist/{types → types-ts4.5/util-data-test/src}/user-picker/ChevronRight.d.ts +0 -0
- /package/dist/types-ts4.5/{user-picker → util-data-test/src/user-picker}/index.d.ts +0 -0
- /package/dist/types-ts4.5/{user-picker → util-data-test/src/user-picker}/user-picker-data.d.ts +0 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ServiceConfig } from '@atlaskit/util-service-support';
|
|
2
|
+
import { EmojiDescription, EmojiId, EmojiServiceDescription, EmojiUpload, MediaApiToken, OptionalEmojiDescription } from '../../types';
|
|
3
|
+
import TokenManager from './TokenManager';
|
|
4
|
+
export interface EmojiUploadResponse {
|
|
5
|
+
emojis: EmojiServiceDescription[];
|
|
6
|
+
}
|
|
7
|
+
export interface EmojiProgress {
|
|
8
|
+
readonly percent: number;
|
|
9
|
+
}
|
|
10
|
+
export interface EmojiProgessCallback {
|
|
11
|
+
(progress: EmojiProgress): void;
|
|
12
|
+
}
|
|
13
|
+
export declare const mediaProportionOfProgress: number;
|
|
14
|
+
export default class SiteEmojiResource {
|
|
15
|
+
private siteServiceConfig;
|
|
16
|
+
private mediaApiToken;
|
|
17
|
+
private mediaEmojiCache;
|
|
18
|
+
protected tokenManager: TokenManager;
|
|
19
|
+
constructor(siteServiceConfig: ServiceConfig, mediaApiToken: MediaApiToken);
|
|
20
|
+
/**
|
|
21
|
+
* Will generate an emoji media path that is inclusive of client and token within the query parameter
|
|
22
|
+
*/
|
|
23
|
+
generateTokenisedMediaURL(emoji: EmojiDescription): Promise<string>;
|
|
24
|
+
/**
|
|
25
|
+
* Will load media emoji, returning a new EmojiDescription if, for example,
|
|
26
|
+
* the URL has changed.
|
|
27
|
+
*/
|
|
28
|
+
loadMediaEmoji(emoji: EmojiDescription, useAlt?: boolean): OptionalEmojiDescription | Promise<OptionalEmojiDescription>;
|
|
29
|
+
optimisticRendering(emoji: EmojiDescription, useAlt?: boolean): boolean | Promise<boolean>;
|
|
30
|
+
uploadEmoji(upload: EmojiUpload, retry?: boolean, progressCallback?: EmojiProgessCallback): Promise<EmojiDescription>;
|
|
31
|
+
/**
|
|
32
|
+
* Check if the MediaEmojiResource has been able to initialise an uploadToken. Retrieving an upload token
|
|
33
|
+
* is asynchronous so the Promise will need to resolve before the state is known. If the token retrieval
|
|
34
|
+
* completes with failure then the Promise will resolve to false.
|
|
35
|
+
*/
|
|
36
|
+
hasUploadToken(): Promise<boolean>;
|
|
37
|
+
prepareForUpload(): void;
|
|
38
|
+
findEmoji(emojiId: EmojiId): Promise<OptionalEmojiDescription>;
|
|
39
|
+
/**
|
|
40
|
+
* Calls to site-scoped EmojiResource to delete emoji
|
|
41
|
+
* @param emoji media emoji to delete
|
|
42
|
+
* @returns Promise.resolve() if success and Promise.reject() for failure
|
|
43
|
+
*/
|
|
44
|
+
deleteEmoji(emoji: EmojiDescription): Promise<boolean>;
|
|
45
|
+
private postToEmojiService;
|
|
46
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { MediaApiToken } from '../../types';
|
|
2
|
+
import { ServiceConfig } from '@atlaskit/util-service-support';
|
|
3
|
+
export declare const EXPIRES_AT_LATENCY_IN_SECONDS = 30;
|
|
4
|
+
export type TokenType = 'read' | 'upload';
|
|
5
|
+
export default class TokenManager {
|
|
6
|
+
private siteServiceConfig;
|
|
7
|
+
private tokens;
|
|
8
|
+
constructor(siteServiceConfig: ServiceConfig);
|
|
9
|
+
isValidToken(mediaApiToken: MediaApiToken): boolean;
|
|
10
|
+
fetchNewToken(type: TokenType): Promise<MediaApiToken>;
|
|
11
|
+
addToken(type: TokenType, mediaApiToken: MediaApiToken): void;
|
|
12
|
+
getToken(type: TokenType, forceRefresh?: boolean): Promise<MediaApiToken>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
export declare const messages: {
|
|
2
|
+
deleteEmojiTooltip: {
|
|
3
|
+
id: string;
|
|
4
|
+
defaultMessage: string;
|
|
5
|
+
description: string;
|
|
6
|
+
};
|
|
7
|
+
deleteEmojiTooltipForScreenreader: {
|
|
8
|
+
id: string;
|
|
9
|
+
defaultMessage: string;
|
|
10
|
+
description: string;
|
|
11
|
+
};
|
|
12
|
+
deleteEmojiTitle: {
|
|
13
|
+
id: string;
|
|
14
|
+
defaultMessage: string;
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
deleteEmojiDescription: {
|
|
18
|
+
id: string;
|
|
19
|
+
defaultMessage: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
deleteEmojiLabel: {
|
|
23
|
+
id: string;
|
|
24
|
+
defaultMessage: string;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
addCustomEmojiLabel: {
|
|
28
|
+
id: string;
|
|
29
|
+
defaultMessage: string;
|
|
30
|
+
description: string;
|
|
31
|
+
};
|
|
32
|
+
emojiPlaceholder: {
|
|
33
|
+
id: string;
|
|
34
|
+
defaultMessage: string;
|
|
35
|
+
description: string;
|
|
36
|
+
};
|
|
37
|
+
emojiNameAriaLabel: {
|
|
38
|
+
id: string;
|
|
39
|
+
defaultMessage: string;
|
|
40
|
+
description: string;
|
|
41
|
+
};
|
|
42
|
+
emojiChooseFileTitle: {
|
|
43
|
+
id: string;
|
|
44
|
+
defaultMessage: string;
|
|
45
|
+
description: string;
|
|
46
|
+
};
|
|
47
|
+
emojiChooseFileScreenReaderDescription: {
|
|
48
|
+
id: string;
|
|
49
|
+
defaultMessage: string;
|
|
50
|
+
description: string;
|
|
51
|
+
};
|
|
52
|
+
emojiSelectSkinToneButtonAriaLabelText: {
|
|
53
|
+
id: string;
|
|
54
|
+
defaultMessage: string;
|
|
55
|
+
description: string;
|
|
56
|
+
};
|
|
57
|
+
emojiSelectSkinToneListAriaLabelText: {
|
|
58
|
+
id: string;
|
|
59
|
+
defaultMessage: string;
|
|
60
|
+
description: string;
|
|
61
|
+
};
|
|
62
|
+
emojiImageRequirements: {
|
|
63
|
+
id: string;
|
|
64
|
+
defaultMessage: string;
|
|
65
|
+
description: string;
|
|
66
|
+
};
|
|
67
|
+
emojiPreviewTitle: {
|
|
68
|
+
id: string;
|
|
69
|
+
defaultMessage: string;
|
|
70
|
+
description: string;
|
|
71
|
+
};
|
|
72
|
+
emojiPreview: {
|
|
73
|
+
id: string;
|
|
74
|
+
defaultMessage: string;
|
|
75
|
+
description: string;
|
|
76
|
+
};
|
|
77
|
+
addEmojiLabel: {
|
|
78
|
+
id: string;
|
|
79
|
+
defaultMessage: string;
|
|
80
|
+
description: string;
|
|
81
|
+
};
|
|
82
|
+
retryLabel: {
|
|
83
|
+
id: string;
|
|
84
|
+
defaultMessage: string;
|
|
85
|
+
description: string;
|
|
86
|
+
};
|
|
87
|
+
cancelLabel: {
|
|
88
|
+
id: string;
|
|
89
|
+
defaultMessage: string;
|
|
90
|
+
description: string;
|
|
91
|
+
};
|
|
92
|
+
searchPlaceholder: {
|
|
93
|
+
id: string;
|
|
94
|
+
defaultMessage: string;
|
|
95
|
+
description: string;
|
|
96
|
+
};
|
|
97
|
+
searchLabel: {
|
|
98
|
+
id: string;
|
|
99
|
+
defaultMessage: string;
|
|
100
|
+
description: string;
|
|
101
|
+
};
|
|
102
|
+
searchResultsStatus: {
|
|
103
|
+
id: string;
|
|
104
|
+
defaultMessage: string;
|
|
105
|
+
description: string;
|
|
106
|
+
};
|
|
107
|
+
searchResultsStatusSeeAll: {
|
|
108
|
+
id: string;
|
|
109
|
+
defaultMessage: string;
|
|
110
|
+
description: string;
|
|
111
|
+
};
|
|
112
|
+
categoriesSelectorLabel: {
|
|
113
|
+
id: string;
|
|
114
|
+
defaultMessage: string;
|
|
115
|
+
description: string;
|
|
116
|
+
};
|
|
117
|
+
categoriesSearchResults: {
|
|
118
|
+
id: string;
|
|
119
|
+
defaultMessage: string;
|
|
120
|
+
description: string;
|
|
121
|
+
};
|
|
122
|
+
frequentCategory: {
|
|
123
|
+
id: string;
|
|
124
|
+
defaultMessage: string;
|
|
125
|
+
description: string;
|
|
126
|
+
};
|
|
127
|
+
peopleCategory: {
|
|
128
|
+
id: string;
|
|
129
|
+
defaultMessage: string;
|
|
130
|
+
description: string;
|
|
131
|
+
};
|
|
132
|
+
natureCategory: {
|
|
133
|
+
id: string;
|
|
134
|
+
defaultMessage: string;
|
|
135
|
+
description: string;
|
|
136
|
+
};
|
|
137
|
+
foodsCategory: {
|
|
138
|
+
id: string;
|
|
139
|
+
defaultMessage: string;
|
|
140
|
+
description: string;
|
|
141
|
+
};
|
|
142
|
+
activityCategory: {
|
|
143
|
+
id: string;
|
|
144
|
+
defaultMessage: string;
|
|
145
|
+
description: string;
|
|
146
|
+
};
|
|
147
|
+
placesCategory: {
|
|
148
|
+
id: string;
|
|
149
|
+
defaultMessage: string;
|
|
150
|
+
description: string;
|
|
151
|
+
};
|
|
152
|
+
objectsCategory: {
|
|
153
|
+
id: string;
|
|
154
|
+
defaultMessage: string;
|
|
155
|
+
description: string;
|
|
156
|
+
};
|
|
157
|
+
symbolsCategory: {
|
|
158
|
+
id: string;
|
|
159
|
+
defaultMessage: string;
|
|
160
|
+
description: string;
|
|
161
|
+
};
|
|
162
|
+
flagsCategory: {
|
|
163
|
+
id: string;
|
|
164
|
+
defaultMessage: string;
|
|
165
|
+
description: string;
|
|
166
|
+
};
|
|
167
|
+
productivityCategory: {
|
|
168
|
+
id: string;
|
|
169
|
+
defaultMessage: string;
|
|
170
|
+
description: string;
|
|
171
|
+
};
|
|
172
|
+
userUploadsCustomCategory: {
|
|
173
|
+
id: string;
|
|
174
|
+
defaultMessage: string;
|
|
175
|
+
description: string;
|
|
176
|
+
};
|
|
177
|
+
allUploadsCustomCategory: {
|
|
178
|
+
id: string;
|
|
179
|
+
defaultMessage: string;
|
|
180
|
+
description: string;
|
|
181
|
+
};
|
|
182
|
+
deleteEmojiFailed: {
|
|
183
|
+
id: string;
|
|
184
|
+
defaultMessage: string;
|
|
185
|
+
description: string;
|
|
186
|
+
};
|
|
187
|
+
emojiInvalidImage: {
|
|
188
|
+
id: string;
|
|
189
|
+
defaultMessage: string;
|
|
190
|
+
description: string;
|
|
191
|
+
};
|
|
192
|
+
emojiUploadFailed: {
|
|
193
|
+
id: string;
|
|
194
|
+
defaultMessage: string;
|
|
195
|
+
description: string;
|
|
196
|
+
};
|
|
197
|
+
emojiImageTooBig: {
|
|
198
|
+
id: string;
|
|
199
|
+
defaultMessage: string;
|
|
200
|
+
description: string;
|
|
201
|
+
};
|
|
202
|
+
emojiPickerTitle: {
|
|
203
|
+
id: string;
|
|
204
|
+
defaultMessage: string;
|
|
205
|
+
description: string;
|
|
206
|
+
};
|
|
207
|
+
emojiPickerListPanel: {
|
|
208
|
+
id: string;
|
|
209
|
+
defaultMessage: string;
|
|
210
|
+
description: string;
|
|
211
|
+
};
|
|
212
|
+
emojiPickerGrid: {
|
|
213
|
+
id: string;
|
|
214
|
+
defaultMessage: string;
|
|
215
|
+
description: string;
|
|
216
|
+
};
|
|
217
|
+
emojiButtonRoleDescription: {
|
|
218
|
+
id: string;
|
|
219
|
+
defaultMessage: string;
|
|
220
|
+
description: string;
|
|
221
|
+
};
|
|
222
|
+
error: {
|
|
223
|
+
id: string;
|
|
224
|
+
defaultMessage: string;
|
|
225
|
+
description: string;
|
|
226
|
+
};
|
|
227
|
+
};
|
|
@@ -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;
|