@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,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,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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ELEMENTS_CHANNEL = "fabric-elements";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { MentionProvider, MentionContextIdentifier, ErrorCallback, InfoCallback, ResultCallback } from './MentionResource';
|
|
2
|
+
import { MentionDescription, InviteFromMentionProvider } from '../types';
|
|
3
|
+
export type { MentionDescription };
|
|
4
|
+
export type MentionProviderFunctions = Omit<{
|
|
5
|
+
[Key in keyof MentionProvider]: MentionProvider[Key] extends Function ? MentionProvider[Key] : never;
|
|
6
|
+
}, keyof InviteFromMentionProvider>;
|
|
7
|
+
/**
|
|
8
|
+
* This component is stateful and should be instantianted per contextIdentifiers.
|
|
9
|
+
*/
|
|
10
|
+
export default class ContextMentionResource implements MentionProvider {
|
|
11
|
+
private mentionProvider;
|
|
12
|
+
private contextIdentifier;
|
|
13
|
+
constructor(mentionProvider: MentionProvider, contextIdentifier: MentionContextIdentifier);
|
|
14
|
+
getContextIdentifier(): MentionContextIdentifier | undefined;
|
|
15
|
+
callWithContextIds: <K extends "subscribe" | "unsubscribe" | "filter" | "recordMentionSelection" | "shouldHighlightMention" | "isFiltering">(f: K, declaredArgs: number) => MentionProvider[K];
|
|
16
|
+
callDefault: <K extends "subscribe" | "unsubscribe" | "filter" | "recordMentionSelection" | "shouldHighlightMention" | "isFiltering">(f: K) => MentionProvider[K];
|
|
17
|
+
subscribe: (key: string, callback?: ResultCallback<MentionDescription[]> | undefined, errCallback?: ErrorCallback | undefined, infoCallback?: InfoCallback | undefined, allResultsCallback?: ResultCallback<MentionDescription[]> | undefined, analyticsCallback?: import("../types").AnalyticsCallback | undefined) => void;
|
|
18
|
+
unsubscribe: (key: string) => void;
|
|
19
|
+
filter: (query?: string | undefined, contextIdentifier?: MentionContextIdentifier | undefined) => void;
|
|
20
|
+
recordMentionSelection: (mention: MentionDescription, contextIdentifier?: MentionContextIdentifier | undefined) => void;
|
|
21
|
+
shouldHighlightMention: (mention: MentionDescription) => boolean;
|
|
22
|
+
isFiltering: (query: string) => boolean;
|
|
23
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { MentionNameDetails } from '../types';
|
|
2
|
+
export interface MentionNameClient {
|
|
3
|
+
getLookupLimit(): number;
|
|
4
|
+
lookupMentionNames(ids: string[]): Promise<MentionNameDetails[]>;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Supports the Atlassian Profile retrieval service.
|
|
8
|
+
*
|
|
9
|
+
* Uses:
|
|
10
|
+
* https://statlas.prod.atl-paas.net/swagger-ui-2.2.6/index.html?url=https://profile-retrieval-service.prod.atl-paas.net:443/api/swagger.yaml#!/default/getUsersByIds
|
|
11
|
+
*/
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
2
|
+
import { MentionNameDetails, MentionNameResolver } from '../types';
|
|
3
|
+
import { MentionNameClient } from './MentionNameClient';
|
|
4
|
+
export type { MentionNameResolver } from '../types';
|
|
5
|
+
export declare class DefaultMentionNameResolver implements MentionNameResolver {
|
|
6
|
+
static waitForBatch: number;
|
|
7
|
+
private client;
|
|
8
|
+
private nameCache;
|
|
9
|
+
private nameQueue;
|
|
10
|
+
private nameStartTime;
|
|
11
|
+
private processingQueue;
|
|
12
|
+
private debounce;
|
|
13
|
+
private fireHydrationEvent;
|
|
14
|
+
constructor(client: MentionNameClient, analyticsProps?: WithAnalyticsEventsProps);
|
|
15
|
+
lookupName(id: string): Promise<MentionNameDetails> | MentionNameDetails;
|
|
16
|
+
cacheName(id: string, name: string): void;
|
|
17
|
+
private scheduleProcessQueue;
|
|
18
|
+
private isQueueAtLimit;
|
|
19
|
+
private splitQueueAtLimit;
|
|
20
|
+
private resolveQueueItem;
|
|
21
|
+
private processQueue;
|
|
22
|
+
private fireAnalytics;
|
|
23
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { AnalyticsCallback, ErrorCallback, InfoCallback, InviteExperimentCohort, InviteFlow, MentionContextIdentifier, MentionDescription, MentionNameDetails, MentionProvider, MentionResourceConfig, MentionsResult, MentionStats, ResourceProvider, ResultCallback, UserRole } from '../types';
|
|
2
|
+
export type { MentionStats, ResultCallback, ErrorCallback, InfoCallback, MentionResourceConfig, ResourceProvider, MentionContextIdentifier, MentionProvider, } from '../types';
|
|
3
|
+
export interface TeamMentionResourceConfig extends MentionResourceConfig {
|
|
4
|
+
teamLinkResolver?: (teamId: string) => string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Support
|
|
8
|
+
*/
|
|
9
|
+
export interface ResolvingMentionProvider extends MentionProvider {
|
|
10
|
+
resolveMentionName(id: string): Promise<MentionNameDetails> | MentionNameDetails;
|
|
11
|
+
cacheMentionName(id: string, mentionName: string): void;
|
|
12
|
+
supportsMentionNameResolving(): boolean;
|
|
13
|
+
}
|
|
14
|
+
declare class AbstractResource<Result> implements ResourceProvider<Result> {
|
|
15
|
+
protected changeListeners: Map<string, ResultCallback<Result>>;
|
|
16
|
+
protected errListeners: Map<string, ErrorCallback>;
|
|
17
|
+
protected infoListeners: Map<string, InfoCallback>;
|
|
18
|
+
protected allResultsListeners: Map<string, ResultCallback<Result>>;
|
|
19
|
+
protected analyticsListeners: Map<string, AnalyticsCallback>;
|
|
20
|
+
constructor();
|
|
21
|
+
subscribe(key: string, callback?: ResultCallback<Result>, errCallback?: ErrorCallback, infoCallback?: InfoCallback, allResultsCallback?: ResultCallback<Result>, analyticsListeners?: AnalyticsCallback): void;
|
|
22
|
+
unsubscribe(key: string): void;
|
|
23
|
+
}
|
|
24
|
+
declare class AbstractMentionResource extends AbstractResource<MentionDescription[]> implements MentionProvider {
|
|
25
|
+
shouldHighlightMention(_mention: MentionDescription): boolean;
|
|
26
|
+
filter(query?: string): void;
|
|
27
|
+
recordMentionSelection(_mention: MentionDescription): void;
|
|
28
|
+
isFiltering(_query: string): boolean;
|
|
29
|
+
protected _notifyListeners(mentionsResult: MentionsResult, stats?: MentionStats): void;
|
|
30
|
+
protected _notifyAllResultsListeners(mentionsResult: MentionsResult): void;
|
|
31
|
+
protected _notifyErrorListeners(error: Error, query?: string): void;
|
|
32
|
+
protected _notifyInfoListeners(info: string): void;
|
|
33
|
+
protected _notifyAnalyticsListeners(event: string, actionSubject: string, action: string, attributes?: {
|
|
34
|
+
[key: string]: any;
|
|
35
|
+
}): void;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Provides a Javascript API
|
|
39
|
+
*/
|
|
40
|
+
export declare class MentionResource extends AbstractMentionResource implements ResolvingMentionProvider {
|
|
41
|
+
private config;
|
|
42
|
+
private lastReturnedSearch;
|
|
43
|
+
private activeSearches;
|
|
44
|
+
productName?: string;
|
|
45
|
+
shouldEnableInvite: boolean;
|
|
46
|
+
inviteExperimentCohort?: InviteExperimentCohort;
|
|
47
|
+
userRole: UserRole;
|
|
48
|
+
onInviteItemClick?: (flow: InviteFlow) => void;
|
|
49
|
+
constructor(config: MentionResourceConfig);
|
|
50
|
+
shouldHighlightMention(mention: MentionDescription): boolean;
|
|
51
|
+
notify(searchTime: number, mentionResult: MentionsResult, query?: string): void;
|
|
52
|
+
notifyError(error: Error, query?: string): void;
|
|
53
|
+
filter(query?: string, contextIdentifier?: MentionContextIdentifier): Promise<void>;
|
|
54
|
+
recordMentionSelection(mention: MentionDescription, contextIdentifier?: MentionContextIdentifier): Promise<void>;
|
|
55
|
+
isFiltering(query: string): boolean;
|
|
56
|
+
resolveMentionName(id: string): Promise<MentionNameDetails> | MentionNameDetails;
|
|
57
|
+
cacheMentionName(id: string, mentionName: string): void;
|
|
58
|
+
supportsMentionNameResolving(): boolean;
|
|
59
|
+
protected updateActiveSearches(query: string): void;
|
|
60
|
+
protected verifyMentionConfig(config: MentionResourceConfig): void;
|
|
61
|
+
private initialState;
|
|
62
|
+
/**
|
|
63
|
+
* Clear a context object to generate query params by removing empty
|
|
64
|
+
* strings, `undefined` and empty values.
|
|
65
|
+
*
|
|
66
|
+
* @param contextIdentifier the current context identifier
|
|
67
|
+
* @returns a safe context for query encoding
|
|
68
|
+
*/
|
|
69
|
+
private clearContext;
|
|
70
|
+
private getQueryParams;
|
|
71
|
+
/**
|
|
72
|
+
* Returns the initial mention display list before a search is performed for the specified
|
|
73
|
+
* container.
|
|
74
|
+
*
|
|
75
|
+
* @param contextIdentifier
|
|
76
|
+
* @returns Promise
|
|
77
|
+
*/
|
|
78
|
+
protected remoteInitialState(contextIdentifier?: MentionContextIdentifier): Promise<MentionsResult>;
|
|
79
|
+
private search;
|
|
80
|
+
protected remoteSearch(query: string, contextIdentifier?: MentionContextIdentifier): Promise<MentionsResult>;
|
|
81
|
+
private transformServiceResponse;
|
|
82
|
+
recordSelection(mention: MentionDescription, contextIdentifier?: MentionContextIdentifier): Promise<void>;
|
|
83
|
+
}
|
|
84
|
+
export declare class HttpError implements Error {
|
|
85
|
+
name: string;
|
|
86
|
+
message: string;
|
|
87
|
+
statusCode: number;
|
|
88
|
+
stack?: string;
|
|
89
|
+
constructor(statusCode: number, statusMessage: string);
|
|
90
|
+
}
|
|
91
|
+
export declare const isResolvingMentionProvider: (p: any) => p is ResolvingMentionProvider;
|
|
92
|
+
export { AbstractResource, AbstractMentionResource };
|
|
93
|
+
export default MentionResource;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { Presence } from '../types';
|
|
2
|
+
import { AbstractResource, ResourceProvider } from './MentionResource';
|
|
3
|
+
export interface PresenceMap {
|
|
4
|
+
[userId: string]: Presence;
|
|
5
|
+
}
|
|
6
|
+
export interface PresenceResourceConfig {
|
|
7
|
+
url: string;
|
|
8
|
+
cloudId: string;
|
|
9
|
+
productId?: string;
|
|
10
|
+
cache?: PresenceCache;
|
|
11
|
+
cacheExpiry?: number;
|
|
12
|
+
parser?: PresenceParser;
|
|
13
|
+
}
|
|
14
|
+
export interface PresenceCache {
|
|
15
|
+
contains(userId: string): boolean;
|
|
16
|
+
get(userId: string): Presence;
|
|
17
|
+
getBulk(userIds: string[]): PresenceMap;
|
|
18
|
+
getMissingUserIds(userIds: string[]): string[];
|
|
19
|
+
update(presUpdate: PresenceMap): void;
|
|
20
|
+
}
|
|
21
|
+
export interface PresenceResponse {
|
|
22
|
+
data: Data;
|
|
23
|
+
}
|
|
24
|
+
export interface Data {
|
|
25
|
+
PresenceBulk: PresenceBulk[];
|
|
26
|
+
}
|
|
27
|
+
export interface PresenceBulk {
|
|
28
|
+
userId: string;
|
|
29
|
+
state: null | string;
|
|
30
|
+
type: null | string;
|
|
31
|
+
date: null | string;
|
|
32
|
+
message: null | string;
|
|
33
|
+
stateMetadata?: string;
|
|
34
|
+
}
|
|
35
|
+
export interface PresenceParser {
|
|
36
|
+
mapState(state: string): string;
|
|
37
|
+
parse(response: PresenceResponse): PresenceMap;
|
|
38
|
+
}
|
|
39
|
+
export interface PresenceProvider extends ResourceProvider<PresenceMap> {
|
|
40
|
+
refreshPresence(userIds: string[]): void;
|
|
41
|
+
}
|
|
42
|
+
declare class AbstractPresenceResource extends AbstractResource<PresenceMap> implements PresenceProvider {
|
|
43
|
+
refreshPresence(userIds: string[]): void;
|
|
44
|
+
protected notifyListeners(presences: PresenceMap): void;
|
|
45
|
+
}
|
|
46
|
+
declare class PresenceResource extends AbstractPresenceResource {
|
|
47
|
+
private config;
|
|
48
|
+
private presenceCache;
|
|
49
|
+
private presenceParser;
|
|
50
|
+
constructor(config: PresenceResourceConfig);
|
|
51
|
+
refreshPresence(userIds: string[]): void;
|
|
52
|
+
private retrievePresence;
|
|
53
|
+
private queryDirectoryForPresences;
|
|
54
|
+
private static cleanUrl;
|
|
55
|
+
}
|
|
56
|
+
export declare class DefaultPresenceCache implements PresenceCache {
|
|
57
|
+
private static readonly defaultTimeout;
|
|
58
|
+
private static readonly defaultFlushTrigger;
|
|
59
|
+
private cache;
|
|
60
|
+
private size;
|
|
61
|
+
private expiryInMillis;
|
|
62
|
+
private flushTrigger;
|
|
63
|
+
constructor(cacheTimeout?: number, cacheTrigger?: number);
|
|
64
|
+
/**
|
|
65
|
+
* Precondition: _delete is only called internally if userId exists in cache
|
|
66
|
+
* Removes cache entry
|
|
67
|
+
* @param userId
|
|
68
|
+
*/
|
|
69
|
+
private _delete;
|
|
70
|
+
/**
|
|
71
|
+
* Checks a cache entry and calls delete if the info has expired
|
|
72
|
+
* @param userId
|
|
73
|
+
*/
|
|
74
|
+
private _deleteIfExpired;
|
|
75
|
+
/**
|
|
76
|
+
* Cleans expired entries from cache
|
|
77
|
+
*/
|
|
78
|
+
private _removeExpired;
|
|
79
|
+
/**
|
|
80
|
+
* Checks if a user exists in the cache
|
|
81
|
+
* @param userId
|
|
82
|
+
*/
|
|
83
|
+
contains(userId: string): boolean;
|
|
84
|
+
/**
|
|
85
|
+
* Retrieves a presence from the cache after checking for expired entries
|
|
86
|
+
* @param userId - to index the cache
|
|
87
|
+
* @returns Presence - the presence that matches the userId
|
|
88
|
+
*/
|
|
89
|
+
get(userId: string): Presence;
|
|
90
|
+
/**
|
|
91
|
+
* Retrieve multiple presences at once from the cache
|
|
92
|
+
* @param userIds - to index the cache
|
|
93
|
+
* @returns PresenceMap - A map of userIds to cached Presences
|
|
94
|
+
*/
|
|
95
|
+
getBulk(userIds: string[]): PresenceMap;
|
|
96
|
+
/**
|
|
97
|
+
* For a given list of ids, returns a subset
|
|
98
|
+
* of all the ids with missing cache entries.
|
|
99
|
+
* @param userIds - to index the cache
|
|
100
|
+
* @returns string[] - ids missing from the cache
|
|
101
|
+
*/
|
|
102
|
+
getMissingUserIds(userIds: string[]): string[];
|
|
103
|
+
/**
|
|
104
|
+
* Precondition: presMap only contains ids of users not in cache
|
|
105
|
+
* expired users must first be removed then reinserted with updated presence
|
|
106
|
+
* Updates the cache by adding the new Presence entries and setting the expiry time
|
|
107
|
+
* @param presMap
|
|
108
|
+
*/
|
|
109
|
+
update(presMap: PresenceMap): void;
|
|
110
|
+
}
|
|
111
|
+
export declare class DefaultPresenceParser implements PresenceParser {
|
|
112
|
+
static FOCUS_STATE: string;
|
|
113
|
+
mapState(state: string): string;
|
|
114
|
+
parse(response: PresenceResponse): PresenceMap;
|
|
115
|
+
private static extractState;
|
|
116
|
+
private static isFocusState;
|
|
117
|
+
}
|
|
118
|
+
export { AbstractPresenceResource };
|
|
119
|
+
export default PresenceResource;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { MentionsResult } from '../types';
|
|
2
|
+
import MentionResource, { MentionContextIdentifier, MentionResourceConfig, TeamMentionResourceConfig, MentionProvider } from './MentionResource';
|
|
3
|
+
/**
|
|
4
|
+
* Provides a Javascript API to fetch users and teams
|
|
5
|
+
* In future we will have a new endpoint to return both users and teams, we can
|
|
6
|
+
* remove this class at this point
|
|
7
|
+
*/
|
|
8
|
+
export default class TeamMentionResource extends MentionResource implements MentionProvider {
|
|
9
|
+
private readonly teamMentionConfig;
|
|
10
|
+
private lastSearchQuery?;
|
|
11
|
+
private lastReturnedSearchTeam;
|
|
12
|
+
constructor(userMentionConfig: MentionResourceConfig, teamMentionConfig: TeamMentionResourceConfig);
|
|
13
|
+
filter(query?: string, contextIdentifier?: MentionContextIdentifier): Promise<void>;
|
|
14
|
+
/**
|
|
15
|
+
* Returns the initial mention display list before a search is performed for the specified
|
|
16
|
+
* container.
|
|
17
|
+
*/
|
|
18
|
+
private remoteInitialStateTeamAndUsers;
|
|
19
|
+
/**
|
|
20
|
+
* Both user and team requests are not blocked together
|
|
21
|
+
* If users request arrives first, show users. Show teams when team request arrives.
|
|
22
|
+
* If team request arrives first, block waiting for user request, then show both
|
|
23
|
+
* If one errors, show the non-erroring one
|
|
24
|
+
* If both error, show error
|
|
25
|
+
*/
|
|
26
|
+
private handleBothRequests;
|
|
27
|
+
notify(searchTime: number, mentionResult: MentionsResult, query?: string): void;
|
|
28
|
+
private getQueryParamsOfTeamMentionConfig;
|
|
29
|
+
private remoteUserSearch;
|
|
30
|
+
private remoteTeamSearch;
|
|
31
|
+
private convertTeamResultToMentionResult;
|
|
32
|
+
private trimTeamARI;
|
|
33
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { MentionType } from '../../types';
|
|
2
|
+
import { HTMLAttributes } from 'react';
|
|
3
|
+
export interface PrimitiveMentionProps extends HTMLAttributes<HTMLSpanElement> {
|
|
4
|
+
mentionType: MentionType;
|
|
5
|
+
}
|
|
6
|
+
declare const PrimitiveMention: import("react").ForwardRefExoticComponent<PrimitiveMentionProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
7
|
+
export default PrimitiveMention;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MentionProvider } from '../../api/MentionResource';
|
|
3
|
+
import { MentionEventHandler } from '../../types';
|
|
4
|
+
export interface Props {
|
|
5
|
+
id: string;
|
|
6
|
+
text: string;
|
|
7
|
+
accessLevel?: string;
|
|
8
|
+
mentionProvider?: Promise<MentionProvider>;
|
|
9
|
+
onClick?: MentionEventHandler;
|
|
10
|
+
onMouseEnter?: MentionEventHandler;
|
|
11
|
+
onMouseLeave?: MentionEventHandler;
|
|
12
|
+
}
|
|
13
|
+
export interface State {
|
|
14
|
+
isHighlighted: boolean;
|
|
15
|
+
resolvedMentionName?: string;
|
|
16
|
+
}
|
|
17
|
+
export default class ResourcedMention extends React.PureComponent<Props, State> {
|
|
18
|
+
_isMounted: boolean;
|
|
19
|
+
constructor(props: Props);
|
|
20
|
+
componentDidMount(): void;
|
|
21
|
+
componentWillUnmount(): void;
|
|
22
|
+
UNSAFE_componentWillReceiveProps(nextProps: Props): void;
|
|
23
|
+
private setStateSafely;
|
|
24
|
+
private processName;
|
|
25
|
+
private handleMentionProvider;
|
|
26
|
+
render(): JSX.Element;
|
|
27
|
+
}
|