@atlaskit/mention 22.1.0 → 22.1.2
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/CHANGELOG.md +12 -0
- package/_constants/package.json +2 -2
- package/dist/cjs/i18n/cs.js +11 -15
- package/dist/cjs/i18n/da.js +11 -15
- package/dist/cjs/i18n/de.js +11 -15
- package/dist/cjs/i18n/en.js +11 -15
- package/dist/cjs/i18n/en_GB.js +11 -15
- package/dist/cjs/i18n/es.js +11 -15
- package/dist/cjs/i18n/fi.js +11 -15
- package/dist/cjs/i18n/fr.js +11 -15
- package/dist/cjs/i18n/hu.js +11 -15
- package/dist/cjs/i18n/it.js +11 -15
- package/dist/cjs/i18n/ja.js +11 -15
- package/dist/cjs/i18n/ko.js +11 -15
- package/dist/cjs/i18n/nb.js +11 -15
- package/dist/cjs/i18n/nl.js +11 -15
- package/dist/cjs/i18n/pl.js +11 -15
- package/dist/cjs/i18n/pt_BR.js +11 -15
- package/dist/cjs/i18n/ru.js +11 -15
- package/dist/cjs/i18n/sv.js +11 -15
- package/dist/cjs/i18n/th.js +11 -15
- package/dist/cjs/i18n/tr.js +11 -15
- package/dist/cjs/i18n/uk.js +11 -15
- package/dist/cjs/i18n/vi.js +11 -15
- package/dist/cjs/i18n/zh.js +11 -15
- package/dist/cjs/i18n/zh_TW.js +11 -15
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/i18n/cs.js +11 -15
- package/dist/es2019/i18n/da.js +11 -15
- package/dist/es2019/i18n/de.js +11 -15
- package/dist/es2019/i18n/en.js +11 -15
- package/dist/es2019/i18n/en_GB.js +11 -15
- package/dist/es2019/i18n/es.js +11 -15
- package/dist/es2019/i18n/fi.js +11 -15
- package/dist/es2019/i18n/fr.js +11 -15
- package/dist/es2019/i18n/hu.js +11 -15
- package/dist/es2019/i18n/it.js +11 -15
- package/dist/es2019/i18n/ja.js +11 -15
- package/dist/es2019/i18n/ko.js +11 -15
- package/dist/es2019/i18n/nb.js +11 -15
- package/dist/es2019/i18n/nl.js +11 -15
- package/dist/es2019/i18n/pl.js +11 -15
- package/dist/es2019/i18n/pt_BR.js +11 -15
- package/dist/es2019/i18n/ru.js +11 -15
- package/dist/es2019/i18n/sv.js +11 -15
- package/dist/es2019/i18n/th.js +11 -15
- package/dist/es2019/i18n/tr.js +11 -15
- package/dist/es2019/i18n/uk.js +11 -15
- package/dist/es2019/i18n/vi.js +11 -15
- package/dist/es2019/i18n/zh.js +11 -15
- package/dist/es2019/i18n/zh_TW.js +11 -15
- package/dist/es2019/version.json +1 -1
- package/dist/esm/i18n/cs.js +11 -15
- package/dist/esm/i18n/da.js +11 -15
- package/dist/esm/i18n/de.js +11 -15
- package/dist/esm/i18n/en.js +11 -15
- package/dist/esm/i18n/en_GB.js +11 -15
- package/dist/esm/i18n/es.js +11 -15
- package/dist/esm/i18n/fi.js +11 -15
- package/dist/esm/i18n/fr.js +11 -15
- package/dist/esm/i18n/hu.js +11 -15
- package/dist/esm/i18n/it.js +11 -15
- package/dist/esm/i18n/ja.js +11 -15
- package/dist/esm/i18n/ko.js +11 -15
- package/dist/esm/i18n/nb.js +11 -15
- package/dist/esm/i18n/nl.js +11 -15
- package/dist/esm/i18n/pl.js +11 -15
- package/dist/esm/i18n/pt_BR.js +11 -15
- package/dist/esm/i18n/ru.js +11 -15
- package/dist/esm/i18n/sv.js +11 -15
- package/dist/esm/i18n/th.js +11 -15
- package/dist/esm/i18n/tr.js +11 -15
- package/dist/esm/i18n/uk.js +11 -15
- package/dist/esm/i18n/vi.js +11 -15
- package/dist/esm/i18n/zh.js +11 -15
- package/dist/esm/i18n/zh_TW.js +11 -15
- package/dist/esm/version.json +1 -1
- package/dist/types/api/ContextMentionResource.d.ts +1 -1
- package/dist/types/api/analytics.d.ts +2 -2
- package/dist/types/components/Mention/index.d.ts +3 -3
- package/dist/types/components/MentionList/index.d.ts +2 -2
- package/dist/types/components/MentionPicker/index.d.ts +4 -4
- package/dist/types/components/NoAccessTooltip/main.d.ts +1 -1
- package/dist/types/components/ResourcedMentionList/index.d.ts +3 -3
- package/dist/types/config/index.d.ts +2 -2
- package/dist/types/i18n/cs.d.ts +13 -17
- package/dist/types/i18n/da.d.ts +13 -17
- package/dist/types/i18n/de.d.ts +13 -17
- package/dist/types/i18n/en.d.ts +13 -17
- package/dist/types/i18n/en_GB.d.ts +13 -17
- package/dist/types/i18n/en_ZZ.d.ts +6 -6
- package/dist/types/i18n/es.d.ts +13 -17
- package/dist/types/i18n/et.d.ts +6 -6
- package/dist/types/i18n/fi.d.ts +13 -17
- package/dist/types/i18n/fr.d.ts +13 -17
- package/dist/types/i18n/hu.d.ts +13 -17
- package/dist/types/i18n/is.d.ts +6 -6
- package/dist/types/i18n/it.d.ts +13 -17
- package/dist/types/i18n/ja.d.ts +13 -17
- package/dist/types/i18n/ko.d.ts +13 -17
- package/dist/types/i18n/languages.d.ts +6 -6
- package/dist/types/i18n/nb.d.ts +13 -17
- package/dist/types/i18n/nl.d.ts +13 -17
- package/dist/types/i18n/pl.d.ts +13 -17
- package/dist/types/i18n/pt_BR.d.ts +13 -17
- package/dist/types/i18n/pt_PT.d.ts +6 -6
- package/dist/types/i18n/ro.d.ts +6 -6
- package/dist/types/i18n/ru.d.ts +13 -17
- package/dist/types/i18n/sk.d.ts +6 -6
- package/dist/types/i18n/sv.d.ts +13 -17
- package/dist/types/i18n/th.d.ts +13 -17
- package/dist/types/i18n/tr.d.ts +13 -17
- package/dist/types/i18n/uk.d.ts +13 -17
- package/dist/types/i18n/vi.d.ts +13 -17
- package/dist/types/i18n/zh.d.ts +13 -17
- package/dist/types/i18n/zh_TW.d.ts +13 -17
- package/dist/types/types.d.ts +7 -7
- package/dist/types/util/analytics.d.ts +3 -3
- package/dist/types/util/i18n.d.ts +2 -2
- package/dist/types-ts4.5/_constants.d.ts +1 -0
- package/dist/types-ts4.5/api/ContextMentionResource.d.ts +23 -0
- package/dist/types-ts4.5/api/MentionNameClient.d.ts +11 -0
- package/dist/types-ts4.5/api/MentionNameResolver.d.ts +23 -0
- package/dist/types-ts4.5/api/MentionResource.d.ts +93 -0
- package/dist/types-ts4.5/api/PresenceResource.d.ts +119 -0
- package/dist/types-ts4.5/api/TeamMentionResource.d.ts +33 -0
- package/dist/types-ts4.5/api/analytics.d.ts +17 -0
- package/dist/types-ts4.5/components/LockCircleIcon/index.d.ts +3 -0
- package/dist/types-ts4.5/components/Mention/PrimitiveMention.d.ts +7 -0
- package/dist/types-ts4.5/components/Mention/ResourcedMention.d.ts +27 -0
- package/dist/types-ts4.5/components/Mention/index.d.ts +31 -0
- package/dist/types-ts4.5/components/Mention/ufoExperiences.d.ts +9 -0
- package/dist/types-ts4.5/components/MentionDescriptionByline/TeamMentionDescriptionByline.d.ts +7 -0
- package/dist/types-ts4.5/components/MentionDescriptionByline/UserMentionDescriptionByline.d.ts +5 -0
- package/dist/types-ts4.5/components/MentionDescriptionByline/index.d.ts +5 -0
- package/dist/types-ts4.5/components/MentionDescriptionByline/styles.d.ts +5 -0
- package/dist/types-ts4.5/components/MentionDescriptionByline/types.d.ts +4 -0
- package/dist/types-ts4.5/components/MentionItem/MentionHighlightHelpers.d.ts +3 -0
- package/dist/types-ts4.5/components/MentionItem/index.d.ts +16 -0
- package/dist/types-ts4.5/components/MentionItem/styles.d.ts +46 -0
- package/dist/types-ts4.5/components/MentionList/index.d.ts +41 -0
- package/dist/types-ts4.5/components/MentionList/styles.d.ts +8 -0
- package/dist/types-ts4.5/components/MentionListError/GenericErrorIllustration.d.ts +7 -0
- package/dist/types-ts4.5/components/MentionListError/index.d.ts +13 -0
- package/dist/types-ts4.5/components/MentionListError/styles.d.ts +17 -0
- package/dist/types-ts4.5/components/MentionPicker/index.d.ts +77 -0
- package/dist/types-ts4.5/components/MentionPicker/styles.d.ts +12 -0
- package/dist/types-ts4.5/components/MessagesIntlProvider/index.d.ts +3 -0
- package/dist/types-ts4.5/components/NoAccessTooltip/index.d.ts +6 -0
- package/dist/types-ts4.5/components/NoAccessTooltip/main.d.ts +7 -0
- package/dist/types-ts4.5/components/Popup/index.d.ts +26 -0
- package/dist/types-ts4.5/components/ResourcedMentionList/index.d.ts +46 -0
- package/dist/types-ts4.5/components/Scrollable/index.d.ts +11 -0
- package/dist/types-ts4.5/components/Scrollable/styles.d.ts +5 -0
- package/dist/types-ts4.5/components/i18n.d.ts +57 -0
- package/dist/types-ts4.5/config/index.d.ts +5 -0
- package/dist/types-ts4.5/element.d.ts +3 -0
- package/dist/types-ts4.5/i18n/cs.d.ts +20 -0
- package/dist/types-ts4.5/i18n/da.d.ts +20 -0
- package/dist/types-ts4.5/i18n/de.d.ts +20 -0
- package/dist/types-ts4.5/i18n/en.d.ts +20 -0
- package/dist/types-ts4.5/i18n/en_GB.d.ts +20 -0
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +24 -0
- package/dist/types-ts4.5/i18n/es.d.ts +20 -0
- package/dist/types-ts4.5/i18n/et.d.ts +20 -0
- package/dist/types-ts4.5/i18n/fi.d.ts +20 -0
- package/dist/types-ts4.5/i18n/fr.d.ts +20 -0
- package/dist/types-ts4.5/i18n/hu.d.ts +20 -0
- package/dist/types-ts4.5/i18n/index.d.ts +35 -0
- package/dist/types-ts4.5/i18n/is.d.ts +24 -0
- package/dist/types-ts4.5/i18n/it.d.ts +20 -0
- package/dist/types-ts4.5/i18n/ja.d.ts +20 -0
- package/dist/types-ts4.5/i18n/ko.d.ts +20 -0
- package/dist/types-ts4.5/i18n/languages.d.ts +33 -0
- package/dist/types-ts4.5/i18n/nb.d.ts +20 -0
- package/dist/types-ts4.5/i18n/nl.d.ts +20 -0
- package/dist/types-ts4.5/i18n/pl.d.ts +20 -0
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +20 -0
- package/dist/types-ts4.5/i18n/pt_PT.d.ts +20 -0
- package/dist/types-ts4.5/i18n/ro.d.ts +24 -0
- package/dist/types-ts4.5/i18n/ru.d.ts +20 -0
- package/dist/types-ts4.5/i18n/sk.d.ts +20 -0
- package/dist/types-ts4.5/i18n/sv.d.ts +20 -0
- package/dist/types-ts4.5/i18n/th.d.ts +20 -0
- package/dist/types-ts4.5/i18n/tr.d.ts +20 -0
- package/dist/types-ts4.5/i18n/uk.d.ts +20 -0
- package/dist/types-ts4.5/i18n/vi.d.ts +20 -0
- package/dist/types-ts4.5/i18n/zh.d.ts +20 -0
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +20 -0
- package/dist/types-ts4.5/i18n.d.ts +1 -0
- package/dist/types-ts4.5/index.d.ts +17 -0
- package/dist/types-ts4.5/item.d.ts +2 -0
- package/dist/types-ts4.5/resource.d.ts +10 -0
- package/dist/types-ts4.5/shared-styles.d.ts +5 -0
- package/dist/types-ts4.5/team-resource.d.ts +8 -0
- package/dist/types-ts4.5/typeahead.d.ts +3 -0
- package/dist/types-ts4.5/types.d.ts +168 -0
- package/dist/types-ts4.5/util/analytics.d.ts +30 -0
- package/dist/types-ts4.5/util/i18n.d.ts +29 -0
- package/dist/types-ts4.5/util/id.d.ts +2 -0
- package/dist/types-ts4.5/util/index.d.ts +1 -0
- package/dist/types-ts4.5/util/logger.d.ts +4 -0
- package/dist/types-ts4.5/util/mouse.d.ts +8 -0
- package/element/package.json +2 -2
- package/i18n/package.json +2 -2
- package/item/package.json +2 -2
- package/package.json +13 -5
- package/resource/package.json +2 -2
- package/shared-styles/package.json +2 -2
- package/team-resource/package.json +2 -2
- package/typeahead/package.json +2 -2
- package/types/package.json +2 -2
package/dist/types/i18n/ro.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by i18n-tools.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
1
7
|
declare const _default: {
|
|
2
8
|
'fabric.mention.unknow.user.error': string;
|
|
3
9
|
'fabric.mention.noAccess.warning': string;
|
|
@@ -15,10 +21,4 @@ declare const _default: {
|
|
|
15
21
|
'fabric.elements.mentions.team.mention.highlight.description.link': string;
|
|
16
22
|
'fabric.elements.mentions.team.meantion.highlight.close.button.tooltip': string;
|
|
17
23
|
};
|
|
18
|
-
/**
|
|
19
|
-
* NOTE:
|
|
20
|
-
*
|
|
21
|
-
* This file is automatically generated by i18n-tools.
|
|
22
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
23
|
-
*/
|
|
24
24
|
export default _default;
|
package/dist/types/i18n/ru.d.ts
CHANGED
|
@@ -1,24 +1,20 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
"fabric.elements.mentions.team.meantion.highlight.close.button.tooltip": string;
|
|
3
|
-
"fabric.elements.mentions.team.member.50plus": string;
|
|
4
|
-
"fabric.elements.mentions.team.member.50plus.including.you": string;
|
|
5
|
-
"fabric.elements.mentions.team.member.count": string;
|
|
6
|
-
"fabric.elements.mentions.team.member.count.including.you": string;
|
|
7
|
-
"fabric.elements.mentions.team.mention.highlight.description": string;
|
|
8
|
-
"fabric.elements.mentions.team.mention.highlight.description.link": string;
|
|
9
|
-
"fabric.elements.mentions.team.mention.highlight.title": string;
|
|
10
|
-
"fabric.mention.error.defaultAction": string;
|
|
11
|
-
"fabric.mention.error.defaultHeadline": string;
|
|
12
|
-
"fabric.mention.error.differentText": string;
|
|
13
|
-
"fabric.mention.error.loginAgain": string;
|
|
14
|
-
"fabric.mention.noAccess.label": string;
|
|
15
|
-
"fabric.mention.noAccess.warning": string;
|
|
16
|
-
"fabric.mention.unknow.user.error": string;
|
|
17
|
-
};
|
|
18
1
|
/**
|
|
19
2
|
* NOTE:
|
|
20
3
|
*
|
|
21
4
|
* This file is automatically generated by Traduki 2.0.
|
|
22
5
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
23
6
|
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'fabric.elements.mentions.team.member.50plus': string;
|
|
9
|
+
'fabric.elements.mentions.team.member.50plus.including.you': string;
|
|
10
|
+
'fabric.elements.mentions.team.member.count': string;
|
|
11
|
+
'fabric.elements.mentions.team.member.count.including.you': string;
|
|
12
|
+
'fabric.mention.error.defaultAction': string;
|
|
13
|
+
'fabric.mention.error.defaultHeadline': string;
|
|
14
|
+
'fabric.mention.error.differentText': string;
|
|
15
|
+
'fabric.mention.error.loginAgain': string;
|
|
16
|
+
'fabric.mention.noAccess.label': string;
|
|
17
|
+
'fabric.mention.noAccess.warning': string;
|
|
18
|
+
'fabric.mention.unknow.user.error': string;
|
|
19
|
+
};
|
|
24
20
|
export default _default;
|
package/dist/types/i18n/sk.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
1
7
|
declare const _default: {
|
|
2
8
|
'fabric.elements.mentions.team.meantion.highlight.close.button.tooltip': string;
|
|
3
9
|
'fabric.elements.mentions.team.mention.highlight.description': string;
|
|
@@ -11,10 +17,4 @@ declare const _default: {
|
|
|
11
17
|
'fabric.mention.noAccess.warning': string;
|
|
12
18
|
'fabric.mention.unknow.user.error': string;
|
|
13
19
|
};
|
|
14
|
-
/**
|
|
15
|
-
* NOTE:
|
|
16
|
-
*
|
|
17
|
-
* This file is automatically generated by Traduki 2.0.
|
|
18
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
19
|
-
*/
|
|
20
20
|
export default _default;
|
package/dist/types/i18n/sv.d.ts
CHANGED
|
@@ -1,24 +1,20 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
"fabric.elements.mentions.team.meantion.highlight.close.button.tooltip": string;
|
|
3
|
-
"fabric.elements.mentions.team.member.50plus": string;
|
|
4
|
-
"fabric.elements.mentions.team.member.50plus.including.you": string;
|
|
5
|
-
"fabric.elements.mentions.team.member.count": string;
|
|
6
|
-
"fabric.elements.mentions.team.member.count.including.you": string;
|
|
7
|
-
"fabric.elements.mentions.team.mention.highlight.description": string;
|
|
8
|
-
"fabric.elements.mentions.team.mention.highlight.description.link": string;
|
|
9
|
-
"fabric.elements.mentions.team.mention.highlight.title": string;
|
|
10
|
-
"fabric.mention.error.defaultAction": string;
|
|
11
|
-
"fabric.mention.error.defaultHeadline": string;
|
|
12
|
-
"fabric.mention.error.differentText": string;
|
|
13
|
-
"fabric.mention.error.loginAgain": string;
|
|
14
|
-
"fabric.mention.noAccess.label": string;
|
|
15
|
-
"fabric.mention.noAccess.warning": string;
|
|
16
|
-
"fabric.mention.unknow.user.error": string;
|
|
17
|
-
};
|
|
18
1
|
/**
|
|
19
2
|
* NOTE:
|
|
20
3
|
*
|
|
21
4
|
* This file is automatically generated by Traduki 2.0.
|
|
22
5
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
23
6
|
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'fabric.elements.mentions.team.member.50plus': string;
|
|
9
|
+
'fabric.elements.mentions.team.member.50plus.including.you': string;
|
|
10
|
+
'fabric.elements.mentions.team.member.count': string;
|
|
11
|
+
'fabric.elements.mentions.team.member.count.including.you': string;
|
|
12
|
+
'fabric.mention.error.defaultAction': string;
|
|
13
|
+
'fabric.mention.error.defaultHeadline': string;
|
|
14
|
+
'fabric.mention.error.differentText': string;
|
|
15
|
+
'fabric.mention.error.loginAgain': string;
|
|
16
|
+
'fabric.mention.noAccess.label': string;
|
|
17
|
+
'fabric.mention.noAccess.warning': string;
|
|
18
|
+
'fabric.mention.unknow.user.error': string;
|
|
19
|
+
};
|
|
24
20
|
export default _default;
|
package/dist/types/i18n/th.d.ts
CHANGED
|
@@ -1,24 +1,20 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
"fabric.elements.mentions.team.meantion.highlight.close.button.tooltip": string;
|
|
3
|
-
"fabric.elements.mentions.team.member.50plus": string;
|
|
4
|
-
"fabric.elements.mentions.team.member.50plus.including.you": string;
|
|
5
|
-
"fabric.elements.mentions.team.member.count": string;
|
|
6
|
-
"fabric.elements.mentions.team.member.count.including.you": string;
|
|
7
|
-
"fabric.elements.mentions.team.mention.highlight.description": string;
|
|
8
|
-
"fabric.elements.mentions.team.mention.highlight.description.link": string;
|
|
9
|
-
"fabric.elements.mentions.team.mention.highlight.title": string;
|
|
10
|
-
"fabric.mention.error.defaultAction": string;
|
|
11
|
-
"fabric.mention.error.defaultHeadline": string;
|
|
12
|
-
"fabric.mention.error.differentText": string;
|
|
13
|
-
"fabric.mention.error.loginAgain": string;
|
|
14
|
-
"fabric.mention.noAccess.label": string;
|
|
15
|
-
"fabric.mention.noAccess.warning": string;
|
|
16
|
-
"fabric.mention.unknow.user.error": string;
|
|
17
|
-
};
|
|
18
1
|
/**
|
|
19
2
|
* NOTE:
|
|
20
3
|
*
|
|
21
4
|
* This file is automatically generated by Traduki 2.0.
|
|
22
5
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
23
6
|
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'fabric.elements.mentions.team.member.50plus': string;
|
|
9
|
+
'fabric.elements.mentions.team.member.50plus.including.you': string;
|
|
10
|
+
'fabric.elements.mentions.team.member.count': string;
|
|
11
|
+
'fabric.elements.mentions.team.member.count.including.you': string;
|
|
12
|
+
'fabric.mention.error.defaultAction': string;
|
|
13
|
+
'fabric.mention.error.defaultHeadline': string;
|
|
14
|
+
'fabric.mention.error.differentText': string;
|
|
15
|
+
'fabric.mention.error.loginAgain': string;
|
|
16
|
+
'fabric.mention.noAccess.label': string;
|
|
17
|
+
'fabric.mention.noAccess.warning': string;
|
|
18
|
+
'fabric.mention.unknow.user.error': string;
|
|
19
|
+
};
|
|
24
20
|
export default _default;
|
package/dist/types/i18n/tr.d.ts
CHANGED
|
@@ -1,24 +1,20 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
"fabric.elements.mentions.team.meantion.highlight.close.button.tooltip": string;
|
|
3
|
-
"fabric.elements.mentions.team.member.50plus": string;
|
|
4
|
-
"fabric.elements.mentions.team.member.50plus.including.you": string;
|
|
5
|
-
"fabric.elements.mentions.team.member.count": string;
|
|
6
|
-
"fabric.elements.mentions.team.member.count.including.you": string;
|
|
7
|
-
"fabric.elements.mentions.team.mention.highlight.description": string;
|
|
8
|
-
"fabric.elements.mentions.team.mention.highlight.description.link": string;
|
|
9
|
-
"fabric.elements.mentions.team.mention.highlight.title": string;
|
|
10
|
-
"fabric.mention.error.defaultAction": string;
|
|
11
|
-
"fabric.mention.error.defaultHeadline": string;
|
|
12
|
-
"fabric.mention.error.differentText": string;
|
|
13
|
-
"fabric.mention.error.loginAgain": string;
|
|
14
|
-
"fabric.mention.noAccess.label": string;
|
|
15
|
-
"fabric.mention.noAccess.warning": string;
|
|
16
|
-
"fabric.mention.unknow.user.error": string;
|
|
17
|
-
};
|
|
18
1
|
/**
|
|
19
2
|
* NOTE:
|
|
20
3
|
*
|
|
21
4
|
* This file is automatically generated by Traduki 2.0.
|
|
22
5
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
23
6
|
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'fabric.elements.mentions.team.member.50plus': string;
|
|
9
|
+
'fabric.elements.mentions.team.member.50plus.including.you': string;
|
|
10
|
+
'fabric.elements.mentions.team.member.count': string;
|
|
11
|
+
'fabric.elements.mentions.team.member.count.including.you': string;
|
|
12
|
+
'fabric.mention.error.defaultAction': string;
|
|
13
|
+
'fabric.mention.error.defaultHeadline': string;
|
|
14
|
+
'fabric.mention.error.differentText': string;
|
|
15
|
+
'fabric.mention.error.loginAgain': string;
|
|
16
|
+
'fabric.mention.noAccess.label': string;
|
|
17
|
+
'fabric.mention.noAccess.warning': string;
|
|
18
|
+
'fabric.mention.unknow.user.error': string;
|
|
19
|
+
};
|
|
24
20
|
export default _default;
|
package/dist/types/i18n/uk.d.ts
CHANGED
|
@@ -1,24 +1,20 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
"fabric.elements.mentions.team.meantion.highlight.close.button.tooltip": string;
|
|
3
|
-
"fabric.elements.mentions.team.member.50plus": string;
|
|
4
|
-
"fabric.elements.mentions.team.member.50plus.including.you": string;
|
|
5
|
-
"fabric.elements.mentions.team.member.count": string;
|
|
6
|
-
"fabric.elements.mentions.team.member.count.including.you": string;
|
|
7
|
-
"fabric.elements.mentions.team.mention.highlight.description": string;
|
|
8
|
-
"fabric.elements.mentions.team.mention.highlight.description.link": string;
|
|
9
|
-
"fabric.elements.mentions.team.mention.highlight.title": string;
|
|
10
|
-
"fabric.mention.error.defaultAction": string;
|
|
11
|
-
"fabric.mention.error.defaultHeadline": string;
|
|
12
|
-
"fabric.mention.error.differentText": string;
|
|
13
|
-
"fabric.mention.error.loginAgain": string;
|
|
14
|
-
"fabric.mention.noAccess.label": string;
|
|
15
|
-
"fabric.mention.noAccess.warning": string;
|
|
16
|
-
"fabric.mention.unknow.user.error": string;
|
|
17
|
-
};
|
|
18
1
|
/**
|
|
19
2
|
* NOTE:
|
|
20
3
|
*
|
|
21
4
|
* This file is automatically generated by Traduki 2.0.
|
|
22
5
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
23
6
|
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'fabric.elements.mentions.team.member.50plus': string;
|
|
9
|
+
'fabric.elements.mentions.team.member.50plus.including.you': string;
|
|
10
|
+
'fabric.elements.mentions.team.member.count': string;
|
|
11
|
+
'fabric.elements.mentions.team.member.count.including.you': string;
|
|
12
|
+
'fabric.mention.error.defaultAction': string;
|
|
13
|
+
'fabric.mention.error.defaultHeadline': string;
|
|
14
|
+
'fabric.mention.error.differentText': string;
|
|
15
|
+
'fabric.mention.error.loginAgain': string;
|
|
16
|
+
'fabric.mention.noAccess.label': string;
|
|
17
|
+
'fabric.mention.noAccess.warning': string;
|
|
18
|
+
'fabric.mention.unknow.user.error': string;
|
|
19
|
+
};
|
|
24
20
|
export default _default;
|
package/dist/types/i18n/vi.d.ts
CHANGED
|
@@ -1,24 +1,20 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
"fabric.elements.mentions.team.meantion.highlight.close.button.tooltip": string;
|
|
3
|
-
"fabric.elements.mentions.team.member.50plus": string;
|
|
4
|
-
"fabric.elements.mentions.team.member.50plus.including.you": string;
|
|
5
|
-
"fabric.elements.mentions.team.member.count": string;
|
|
6
|
-
"fabric.elements.mentions.team.member.count.including.you": string;
|
|
7
|
-
"fabric.elements.mentions.team.mention.highlight.description": string;
|
|
8
|
-
"fabric.elements.mentions.team.mention.highlight.description.link": string;
|
|
9
|
-
"fabric.elements.mentions.team.mention.highlight.title": string;
|
|
10
|
-
"fabric.mention.error.defaultAction": string;
|
|
11
|
-
"fabric.mention.error.defaultHeadline": string;
|
|
12
|
-
"fabric.mention.error.differentText": string;
|
|
13
|
-
"fabric.mention.error.loginAgain": string;
|
|
14
|
-
"fabric.mention.noAccess.label": string;
|
|
15
|
-
"fabric.mention.noAccess.warning": string;
|
|
16
|
-
"fabric.mention.unknow.user.error": string;
|
|
17
|
-
};
|
|
18
1
|
/**
|
|
19
2
|
* NOTE:
|
|
20
3
|
*
|
|
21
4
|
* This file is automatically generated by Traduki 2.0.
|
|
22
5
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
23
6
|
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'fabric.elements.mentions.team.member.50plus': string;
|
|
9
|
+
'fabric.elements.mentions.team.member.50plus.including.you': string;
|
|
10
|
+
'fabric.elements.mentions.team.member.count': string;
|
|
11
|
+
'fabric.elements.mentions.team.member.count.including.you': string;
|
|
12
|
+
'fabric.mention.error.defaultAction': string;
|
|
13
|
+
'fabric.mention.error.defaultHeadline': string;
|
|
14
|
+
'fabric.mention.error.differentText': string;
|
|
15
|
+
'fabric.mention.error.loginAgain': string;
|
|
16
|
+
'fabric.mention.noAccess.label': string;
|
|
17
|
+
'fabric.mention.noAccess.warning': string;
|
|
18
|
+
'fabric.mention.unknow.user.error': string;
|
|
19
|
+
};
|
|
24
20
|
export default _default;
|
package/dist/types/i18n/zh.d.ts
CHANGED
|
@@ -1,24 +1,20 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
"fabric.elements.mentions.team.meantion.highlight.close.button.tooltip": string;
|
|
3
|
-
"fabric.elements.mentions.team.member.50plus": string;
|
|
4
|
-
"fabric.elements.mentions.team.member.50plus.including.you": string;
|
|
5
|
-
"fabric.elements.mentions.team.member.count": string;
|
|
6
|
-
"fabric.elements.mentions.team.member.count.including.you": string;
|
|
7
|
-
"fabric.elements.mentions.team.mention.highlight.description": string;
|
|
8
|
-
"fabric.elements.mentions.team.mention.highlight.description.link": string;
|
|
9
|
-
"fabric.elements.mentions.team.mention.highlight.title": string;
|
|
10
|
-
"fabric.mention.error.defaultAction": string;
|
|
11
|
-
"fabric.mention.error.defaultHeadline": string;
|
|
12
|
-
"fabric.mention.error.differentText": string;
|
|
13
|
-
"fabric.mention.error.loginAgain": string;
|
|
14
|
-
"fabric.mention.noAccess.label": string;
|
|
15
|
-
"fabric.mention.noAccess.warning": string;
|
|
16
|
-
"fabric.mention.unknow.user.error": string;
|
|
17
|
-
};
|
|
18
1
|
/**
|
|
19
2
|
* NOTE:
|
|
20
3
|
*
|
|
21
4
|
* This file is automatically generated by Traduki 2.0.
|
|
22
5
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
23
6
|
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'fabric.elements.mentions.team.member.50plus': string;
|
|
9
|
+
'fabric.elements.mentions.team.member.50plus.including.you': string;
|
|
10
|
+
'fabric.elements.mentions.team.member.count': string;
|
|
11
|
+
'fabric.elements.mentions.team.member.count.including.you': string;
|
|
12
|
+
'fabric.mention.error.defaultAction': string;
|
|
13
|
+
'fabric.mention.error.defaultHeadline': string;
|
|
14
|
+
'fabric.mention.error.differentText': string;
|
|
15
|
+
'fabric.mention.error.loginAgain': string;
|
|
16
|
+
'fabric.mention.noAccess.label': string;
|
|
17
|
+
'fabric.mention.noAccess.warning': string;
|
|
18
|
+
'fabric.mention.unknow.user.error': string;
|
|
19
|
+
};
|
|
24
20
|
export default _default;
|
|
@@ -1,24 +1,20 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
"fabric.elements.mentions.team.meantion.highlight.close.button.tooltip": string;
|
|
3
|
-
"fabric.elements.mentions.team.member.50plus": string;
|
|
4
|
-
"fabric.elements.mentions.team.member.50plus.including.you": string;
|
|
5
|
-
"fabric.elements.mentions.team.member.count": string;
|
|
6
|
-
"fabric.elements.mentions.team.member.count.including.you": string;
|
|
7
|
-
"fabric.elements.mentions.team.mention.highlight.description": string;
|
|
8
|
-
"fabric.elements.mentions.team.mention.highlight.description.link": string;
|
|
9
|
-
"fabric.elements.mentions.team.mention.highlight.title": string;
|
|
10
|
-
"fabric.mention.error.defaultAction": string;
|
|
11
|
-
"fabric.mention.error.defaultHeadline": string;
|
|
12
|
-
"fabric.mention.error.differentText": string;
|
|
13
|
-
"fabric.mention.error.loginAgain": string;
|
|
14
|
-
"fabric.mention.noAccess.label": string;
|
|
15
|
-
"fabric.mention.noAccess.warning": string;
|
|
16
|
-
"fabric.mention.unknow.user.error": string;
|
|
17
|
-
};
|
|
18
1
|
/**
|
|
19
2
|
* NOTE:
|
|
20
3
|
*
|
|
21
4
|
* This file is automatically generated by Traduki 2.0.
|
|
22
5
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
23
6
|
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'fabric.elements.mentions.team.member.50plus': string;
|
|
9
|
+
'fabric.elements.mentions.team.member.50plus.including.you': string;
|
|
10
|
+
'fabric.elements.mentions.team.member.count': string;
|
|
11
|
+
'fabric.elements.mentions.team.member.count.including.you': string;
|
|
12
|
+
'fabric.mention.error.defaultAction': string;
|
|
13
|
+
'fabric.mention.error.defaultHeadline': string;
|
|
14
|
+
'fabric.mention.error.differentText': string;
|
|
15
|
+
'fabric.mention.error.loginAgain': string;
|
|
16
|
+
'fabric.mention.noAccess.label': string;
|
|
17
|
+
'fabric.mention.noAccess.warning': string;
|
|
18
|
+
'fabric.mention.unknow.user.error': string;
|
|
19
|
+
};
|
|
24
20
|
export default _default;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export interface MentionNameResolver {
|
|
|
4
4
|
lookupName(id: string): Promise<MentionNameDetails> | MentionNameDetails;
|
|
5
5
|
cacheName(id: string, name: string): void;
|
|
6
6
|
}
|
|
7
|
-
export
|
|
7
|
+
export type MentionStats = {
|
|
8
8
|
[key: string]: any;
|
|
9
9
|
};
|
|
10
10
|
export interface ResultCallback<T> {
|
|
@@ -50,7 +50,7 @@ export interface ResourceProvider<Result> {
|
|
|
50
50
|
*/
|
|
51
51
|
unsubscribe(key: string): void;
|
|
52
52
|
}
|
|
53
|
-
export
|
|
53
|
+
export type MentionContextIdentifier = {
|
|
54
54
|
containerId?: string;
|
|
55
55
|
objectId?: string;
|
|
56
56
|
childObjectId?: string;
|
|
@@ -75,7 +75,7 @@ export interface Presence {
|
|
|
75
75
|
time?: string;
|
|
76
76
|
status?: string;
|
|
77
77
|
}
|
|
78
|
-
export
|
|
78
|
+
export type LozengeColor = 'default' | 'success' | 'removed' | 'inprogress' | 'new' | 'moved';
|
|
79
79
|
export interface LozengeProps {
|
|
80
80
|
text: React.ReactNode;
|
|
81
81
|
appearance?: LozengeColor;
|
|
@@ -118,7 +118,7 @@ export interface Team {
|
|
|
118
118
|
memberCount: number;
|
|
119
119
|
highlight?: Highlight;
|
|
120
120
|
}
|
|
121
|
-
export
|
|
121
|
+
export type MentionEventHandler = (mentionId: string, text: string, event?: SyntheticEvent<HTMLSpanElement>) => void;
|
|
122
122
|
export interface OnMentionEvent {
|
|
123
123
|
(mention: MentionDescription, event?: SyntheticEvent<any>): void;
|
|
124
124
|
}
|
|
@@ -156,9 +156,9 @@ export declare function isAppMention(mention: MentionDescription): boolean | ""
|
|
|
156
156
|
export declare function isTeamMention(mention: MentionDescription): boolean | "" | undefined;
|
|
157
157
|
export declare function isSpecialMentionText(mentionText: string): boolean | "";
|
|
158
158
|
export declare const isPromise: <T>(p: any) => p is Promise<T>;
|
|
159
|
-
export
|
|
160
|
-
export
|
|
161
|
-
export
|
|
159
|
+
export type InviteFlow = 'mention' | 'assign';
|
|
160
|
+
export type UserRole = 'admin' | 'trusted' | 'basic';
|
|
161
|
+
export type InviteExperimentCohort = 'variation' | 'control' | 'not-enrolled';
|
|
162
162
|
export interface InviteFromMentionProvider {
|
|
163
163
|
productName?: string;
|
|
164
164
|
shouldEnableInvite?: boolean;
|
|
@@ -20,11 +20,11 @@ export declare enum Actions {
|
|
|
20
20
|
SUCCEEDED = "succeeded",
|
|
21
21
|
FAILED = "failed"
|
|
22
22
|
}
|
|
23
|
-
export declare const fireAnalyticsMentionTypeaheadEvent: (props: WithAnalyticsEventsProps) => (action: string, duration: number, userIds?: string[], query?: string
|
|
24
|
-
export declare const fireAnalyticsMentionEvent: (createEvent: CreateUIAnalyticsEvent) => (actionSubject: string, action: string, text: string, id: string, accessLevel?: string
|
|
23
|
+
export declare const fireAnalyticsMentionTypeaheadEvent: (props: WithAnalyticsEventsProps) => (action: string, duration: number, userIds?: string[], query?: string) => void;
|
|
24
|
+
export declare const fireAnalyticsMentionEvent: (createEvent: CreateUIAnalyticsEvent) => (actionSubject: string, action: string, text: string, id: string, accessLevel?: string) => UIAnalyticsEvent;
|
|
25
25
|
export declare const fireSliAnalyticsEvent: (props: WithAnalyticsEventsProps) => (actionSubject: string, action: string) => void;
|
|
26
26
|
export declare const buildSliPayload: (actionSubject: string, action: string, attributes?: {
|
|
27
27
|
[key: string]: any;
|
|
28
28
|
} | undefined) => GasPayload;
|
|
29
29
|
export declare const fireAnalyticsMentionHydrationEvent: (props: WithAnalyticsEventsProps) => (action: string, userId: string, fromCache: boolean, duration: number) => void;
|
|
30
|
-
export declare const fireAnalytics: (firePrivateAnalyticsEvent?: Function
|
|
30
|
+
export declare const fireAnalytics: (firePrivateAnalyticsEvent?: Function) => (eventName: string, text: string, accessLevel?: string) => void;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { MessageDescriptor } from 'react-intl-next';
|
|
3
|
-
export
|
|
3
|
+
export type Formatter = (props: {
|
|
4
4
|
values?: {
|
|
5
5
|
[k: string]: string;
|
|
6
6
|
};
|
|
7
7
|
children?(props: string): React.ReactElement;
|
|
8
8
|
}) => React.ReactElement | null;
|
|
9
|
-
|
|
9
|
+
type FormatterFactory = (messageDescriptor: MessageDescriptor) => Formatter;
|
|
10
10
|
export declare const propFormatter: FormatterFactory;
|
|
11
11
|
export declare const UnknownUserError: Formatter;
|
|
12
12
|
export declare const NoAccessWarning: Formatter;
|
|
@@ -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;
|