@atlaskit/mention 21.0.19 → 22.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/api/MentionNameResolver.js +2 -0
  3. package/dist/cjs/api/MentionResource.js +17 -9
  4. package/dist/cjs/api/TeamMentionResource.js +12 -17
  5. package/dist/cjs/components/Mention/PrimitiveMention.js +1 -0
  6. package/dist/cjs/components/MentionItem/index.js +1 -1
  7. package/dist/cjs/components/MentionListError/GenericErrorIllustration.js +1 -1
  8. package/dist/cjs/components/MentionPicker/index.js +3 -5
  9. package/dist/cjs/components/ResourcedMentionList/index.js +1 -27
  10. package/dist/cjs/components/Scrollable/index.js +1 -1
  11. package/dist/cjs/components/i18n.js +0 -20
  12. package/dist/cjs/i18n/cs.js +16 -15
  13. package/dist/cjs/i18n/da.js +16 -15
  14. package/dist/cjs/i18n/de.js +16 -15
  15. package/dist/cjs/i18n/en.js +16 -15
  16. package/dist/cjs/i18n/en_GB.js +16 -15
  17. package/dist/cjs/i18n/es.js +16 -15
  18. package/dist/cjs/i18n/fi.js +16 -15
  19. package/dist/cjs/i18n/fr.js +16 -15
  20. package/dist/cjs/i18n/hu.js +16 -15
  21. package/dist/cjs/i18n/it.js +16 -15
  22. package/dist/cjs/i18n/ja.js +16 -15
  23. package/dist/cjs/i18n/ko.js +16 -15
  24. package/dist/cjs/i18n/nb.js +16 -15
  25. package/dist/cjs/i18n/nl.js +16 -15
  26. package/dist/cjs/i18n/pl.js +16 -15
  27. package/dist/cjs/i18n/pt_BR.js +16 -15
  28. package/dist/cjs/i18n/ru.js +16 -15
  29. package/dist/cjs/i18n/sv.js +16 -15
  30. package/dist/cjs/i18n/th.js +16 -15
  31. package/dist/cjs/i18n/tr.js +16 -15
  32. package/dist/cjs/i18n/uk.js +16 -15
  33. package/dist/cjs/i18n/vi.js +16 -15
  34. package/dist/cjs/i18n/zh.js +16 -15
  35. package/dist/cjs/i18n/zh_TW.js +16 -15
  36. package/dist/cjs/index.js +0 -14
  37. package/dist/cjs/util/analytics.js +1 -24
  38. package/dist/cjs/util/i18n.js +5 -13
  39. package/dist/cjs/version.json +1 -1
  40. package/dist/es2019/api/MentionNameResolver.js +2 -0
  41. package/dist/es2019/api/MentionResource.js +5 -1
  42. package/dist/es2019/api/TeamMentionResource.js +1 -2
  43. package/dist/es2019/components/MentionItem/index.js +1 -1
  44. package/dist/es2019/components/MentionPicker/index.js +3 -5
  45. package/dist/es2019/components/ResourcedMentionList/index.js +1 -27
  46. package/dist/es2019/components/Scrollable/index.js +1 -1
  47. package/dist/es2019/components/i18n.js +0 -20
  48. package/dist/es2019/i18n/cs.js +16 -15
  49. package/dist/es2019/i18n/da.js +16 -15
  50. package/dist/es2019/i18n/de.js +16 -15
  51. package/dist/es2019/i18n/en.js +16 -15
  52. package/dist/es2019/i18n/en_GB.js +16 -15
  53. package/dist/es2019/i18n/es.js +16 -15
  54. package/dist/es2019/i18n/fi.js +16 -15
  55. package/dist/es2019/i18n/fr.js +16 -15
  56. package/dist/es2019/i18n/hu.js +16 -15
  57. package/dist/es2019/i18n/it.js +16 -15
  58. package/dist/es2019/i18n/ja.js +16 -15
  59. package/dist/es2019/i18n/ko.js +16 -15
  60. package/dist/es2019/i18n/nb.js +16 -15
  61. package/dist/es2019/i18n/nl.js +16 -15
  62. package/dist/es2019/i18n/pl.js +16 -15
  63. package/dist/es2019/i18n/pt_BR.js +16 -15
  64. package/dist/es2019/i18n/ru.js +16 -15
  65. package/dist/es2019/i18n/sv.js +16 -15
  66. package/dist/es2019/i18n/th.js +16 -15
  67. package/dist/es2019/i18n/tr.js +16 -15
  68. package/dist/es2019/i18n/uk.js +16 -15
  69. package/dist/es2019/i18n/vi.js +16 -15
  70. package/dist/es2019/i18n/zh.js +16 -15
  71. package/dist/es2019/i18n/zh_TW.js +16 -15
  72. package/dist/es2019/index.js +1 -3
  73. package/dist/es2019/util/analytics.js +0 -20
  74. package/dist/es2019/util/i18n.js +0 -4
  75. package/dist/es2019/version.json +1 -1
  76. package/dist/esm/api/MentionNameResolver.js +2 -0
  77. package/dist/esm/api/MentionResource.js +15 -10
  78. package/dist/esm/api/TeamMentionResource.js +12 -17
  79. package/dist/esm/components/MentionItem/index.js +1 -1
  80. package/dist/esm/components/MentionPicker/index.js +3 -5
  81. package/dist/esm/components/ResourcedMentionList/index.js +1 -24
  82. package/dist/esm/components/Scrollable/index.js +1 -1
  83. package/dist/esm/components/i18n.js +0 -20
  84. package/dist/esm/i18n/cs.js +16 -15
  85. package/dist/esm/i18n/da.js +16 -15
  86. package/dist/esm/i18n/de.js +16 -15
  87. package/dist/esm/i18n/en.js +16 -15
  88. package/dist/esm/i18n/en_GB.js +16 -15
  89. package/dist/esm/i18n/es.js +16 -15
  90. package/dist/esm/i18n/fi.js +16 -15
  91. package/dist/esm/i18n/fr.js +16 -15
  92. package/dist/esm/i18n/hu.js +16 -15
  93. package/dist/esm/i18n/it.js +16 -15
  94. package/dist/esm/i18n/ja.js +16 -15
  95. package/dist/esm/i18n/ko.js +16 -15
  96. package/dist/esm/i18n/nb.js +16 -15
  97. package/dist/esm/i18n/nl.js +16 -15
  98. package/dist/esm/i18n/pl.js +16 -15
  99. package/dist/esm/i18n/pt_BR.js +16 -15
  100. package/dist/esm/i18n/ru.js +16 -15
  101. package/dist/esm/i18n/sv.js +16 -15
  102. package/dist/esm/i18n/th.js +16 -15
  103. package/dist/esm/i18n/tr.js +16 -15
  104. package/dist/esm/i18n/uk.js +16 -15
  105. package/dist/esm/i18n/vi.js +16 -15
  106. package/dist/esm/i18n/zh.js +16 -15
  107. package/dist/esm/i18n/zh_TW.js +16 -15
  108. package/dist/esm/index.js +1 -3
  109. package/dist/esm/util/analytics.js +0 -22
  110. package/dist/esm/util/i18n.js +4 -7
  111. package/dist/esm/version.json +1 -1
  112. package/dist/types/api/MentionResource.d.ts +0 -6
  113. package/dist/types/api/TeamMentionResource.d.ts +2 -4
  114. package/dist/types/components/MentionPicker/index.d.ts +0 -2
  115. package/dist/types/components/ResourcedMentionList/index.d.ts +0 -4
  116. package/dist/types/components/i18n.d.ts +0 -20
  117. package/dist/types/i18n/cs.d.ts +15 -15
  118. package/dist/types/i18n/da.d.ts +15 -15
  119. package/dist/types/i18n/de.d.ts +15 -15
  120. package/dist/types/i18n/en.d.ts +15 -15
  121. package/dist/types/i18n/en_GB.d.ts +15 -15
  122. package/dist/types/i18n/es.d.ts +15 -15
  123. package/dist/types/i18n/fi.d.ts +15 -15
  124. package/dist/types/i18n/fr.d.ts +15 -15
  125. package/dist/types/i18n/hu.d.ts +15 -15
  126. package/dist/types/i18n/it.d.ts +15 -15
  127. package/dist/types/i18n/ja.d.ts +15 -15
  128. package/dist/types/i18n/ko.d.ts +15 -15
  129. package/dist/types/i18n/nb.d.ts +15 -15
  130. package/dist/types/i18n/nl.d.ts +15 -15
  131. package/dist/types/i18n/pl.d.ts +15 -15
  132. package/dist/types/i18n/pt_BR.d.ts +15 -15
  133. package/dist/types/i18n/ru.d.ts +15 -15
  134. package/dist/types/i18n/sv.d.ts +15 -15
  135. package/dist/types/i18n/th.d.ts +15 -15
  136. package/dist/types/i18n/tr.d.ts +15 -15
  137. package/dist/types/i18n/uk.d.ts +15 -15
  138. package/dist/types/i18n/vi.d.ts +15 -15
  139. package/dist/types/i18n/zh.d.ts +15 -15
  140. package/dist/types/i18n/zh_TW.d.ts +15 -15
  141. package/dist/types/index.d.ts +1 -3
  142. package/dist/types/resource.d.ts +2 -2
  143. package/dist/types/util/analytics.d.ts +1 -3
  144. package/dist/types/util/i18n.d.ts +0 -4
  145. package/package.json +8 -9
  146. package/report.api.md +1 -118
  147. package/dist/cjs/components/TeamMentionHighlight/TeamMentionHighlightController.js +0 -85
  148. package/dist/cjs/components/TeamMentionHighlight/index.js +0 -184
  149. package/dist/cjs/components/TeamMentionHighlight/lazy.js +0 -21
  150. package/dist/cjs/components/TeamMentionHighlight/styles.js +0 -29
  151. package/dist/cjs/spotlight.js +0 -20
  152. package/dist/es2019/components/TeamMentionHighlight/TeamMentionHighlightController.js +0 -64
  153. package/dist/es2019/components/TeamMentionHighlight/index.js +0 -148
  154. package/dist/es2019/components/TeamMentionHighlight/lazy.js +0 -4
  155. package/dist/es2019/components/TeamMentionHighlight/styles.js +0 -40
  156. package/dist/es2019/spotlight.js +0 -5
  157. package/dist/esm/components/TeamMentionHighlight/TeamMentionHighlightController.js +0 -77
  158. package/dist/esm/components/TeamMentionHighlight/index.js +0 -172
  159. package/dist/esm/components/TeamMentionHighlight/lazy.js +0 -8
  160. package/dist/esm/components/TeamMentionHighlight/styles.js +0 -14
  161. package/dist/esm/spotlight.js +0 -5
  162. package/dist/types/components/TeamMentionHighlight/TeamMentionHighlightController.d.ts +0 -17
  163. package/dist/types/components/TeamMentionHighlight/index.d.ts +0 -35
  164. package/dist/types/components/TeamMentionHighlight/lazy.d.ts +0 -4
  165. package/dist/types/components/TeamMentionHighlight/styles.d.ts +0 -33
  166. package/dist/types/spotlight.d.ts +0 -3
  167. package/spotlight/package.json +0 -15
@@ -1,3 +1,4 @@
1
+ /* prettier-ignore */
1
2
  /**
2
3
  * NOTE:
3
4
  *
@@ -6,19 +7,19 @@
6
7
  */
7
8
  //Swedish
8
9
  export default {
9
- 'fabric.elements.mentions.team.meantion.highlight.close.button.tooltip': 'Stäng',
10
- 'fabric.elements.mentions.team.member.50plus': 'Team • 50+ medlemmar',
11
- 'fabric.elements.mentions.team.member.50plus.including.you': 'Team • 50+ medlemmar, inklusive dig',
12
- 'fabric.elements.mentions.team.member.count': '{0, plural, one {Team • 1 medlem} other {Team • {0} medlemmar}}',
13
- 'fabric.elements.mentions.team.member.count.including.you': '{0, plural, one {Team • 1 medlem, inklusive dig} other {Team • {0} medlemmar, inklusive dig}}',
14
- 'fabric.elements.mentions.team.mention.highlight.description': 'Få alla till sidan med ett klick. Har ni inget team?',
15
- 'fabric.elements.mentions.team.mention.highlight.description.link': 'Starta ett.',
16
- 'fabric.elements.mentions.team.mention.highlight.title': 'Omnämn ditt team',
17
- 'fabric.mention.error.defaultAction': 'Försök igen om några sekunder',
18
- 'fabric.mention.error.defaultHeadline': 'Något gick fel',
19
- 'fabric.mention.error.differentText': 'Prova att skriva en annan text',
20
- 'fabric.mention.error.loginAgain': 'Prova att logga ut och sedan logga in igen',
21
- 'fabric.mention.noAccess.label': 'Ingen åtkomst',
22
- 'fabric.mention.noAccess.warning': '{name} kommer inte att meddelas eftersom de saknar åtkomst',
23
- 'fabric.mention.unknow.user.error': 'Okänd användare {userId}'
10
+ "fabric.elements.mentions.team.meantion.highlight.close.button.tooltip": "Stäng",
11
+ "fabric.elements.mentions.team.member.50plus": "Team • 50+ medlemmar",
12
+ "fabric.elements.mentions.team.member.50plus.including.you": "Team • 50+ medlemmar, inklusive dig",
13
+ "fabric.elements.mentions.team.member.count": "{0, plural, one {Team • 1 medlem} other {Team • {0} medlemmar}}",
14
+ "fabric.elements.mentions.team.member.count.including.you": "{0, plural, one {Team • 1 medlem, inklusive dig} other {Team • {0} medlemmar, inklusive dig}}",
15
+ "fabric.elements.mentions.team.mention.highlight.description": "Få alla till sidan med ett klick. Har ni inget team?",
16
+ "fabric.elements.mentions.team.mention.highlight.description.link": "Starta ett.",
17
+ "fabric.elements.mentions.team.mention.highlight.title": "Omnämn ditt team",
18
+ "fabric.mention.error.defaultAction": "Försök igen om några sekunder",
19
+ "fabric.mention.error.defaultHeadline": "Något gick fel",
20
+ "fabric.mention.error.differentText": "Prova att skriva en annan text",
21
+ "fabric.mention.error.loginAgain": "Prova att logga ut och sedan logga in igen",
22
+ "fabric.mention.noAccess.label": "Ingen åtkomst",
23
+ "fabric.mention.noAccess.warning": "{name} kommer inte att meddelas eftersom de saknar åtkomst",
24
+ "fabric.mention.unknow.user.error": "Okänd användare {userId}"
24
25
  };
@@ -1,3 +1,4 @@
1
+ /* prettier-ignore */
1
2
  /**
2
3
  * NOTE:
3
4
  *
@@ -6,19 +7,19 @@
6
7
  */
7
8
  //Thai (Thailand)
8
9
  export default {
9
- 'fabric.elements.mentions.team.meantion.highlight.close.button.tooltip': 'ยกเลิก',
10
- 'fabric.elements.mentions.team.member.50plus': 'ทีม • สมาชิกมากกว่า 50 คน',
11
- 'fabric.elements.mentions.team.member.50plus.including.you': 'ทีม • สมาชิกมากกว่า 50 คน รวมคุณด้วย',
12
- 'fabric.elements.mentions.team.member.count': '{0, plural, other {ทีม • สมาชิก {0} คน}}',
13
- 'fabric.elements.mentions.team.member.count.including.you': '{0, plural, other {ทีม • สมาชิก {0} คน รวมคุณด้วย}}',
14
- 'fabric.elements.mentions.team.mention.highlight.description': 'ให้ทุกคนดูหน้าเพจได้ในคลิกเดียว ไม่มีทีมใช่ไหม',
15
- 'fabric.elements.mentions.team.mention.highlight.description.link': 'เริ่มสร้างทีมเลย',
16
- 'fabric.elements.mentions.team.mention.highlight.title': 'กล่าวถึงทีมของคุณ',
17
- 'fabric.mention.error.defaultAction': 'ลองอีกครั้งในอีกสักครู่',
18
- 'fabric.mention.error.defaultHeadline': 'มีข้อผิดพลาดบางอย่างเกิดขึ้น',
19
- 'fabric.mention.error.differentText': 'ลองป้อนข้อความอื่น',
20
- 'fabric.mention.error.loginAgain': 'ลองออกจากระบบและเข้าสู่ระบบใหม่อีกครั้ง',
21
- 'fabric.mention.noAccess.label': 'ไม่มีการเข้าถึง',
22
- 'fabric.mention.noAccess.warning': '{name} จะไม่ได้รับการแจ้งเตือนเนื่องจากพวกเขาไม่มีสิทธิ์การเข้าถึง',
23
- 'fabric.mention.unknow.user.error': 'ผู้ใช้ที่ไม่รู้จัก {userId}'
10
+ "fabric.elements.mentions.team.meantion.highlight.close.button.tooltip": "ยกเลิก",
11
+ "fabric.elements.mentions.team.member.50plus": "ทีม • สมาชิกมากกว่า 50 คน",
12
+ "fabric.elements.mentions.team.member.50plus.including.you": "ทีม • สมาชิกมากกว่า 50 คน รวมคุณด้วย",
13
+ "fabric.elements.mentions.team.member.count": "{0, plural, other {ทีม • สมาชิก {0} คน}}",
14
+ "fabric.elements.mentions.team.member.count.including.you": "{0, plural, other {ทีม • สมาชิก {0} คน รวมคุณด้วย}}",
15
+ "fabric.elements.mentions.team.mention.highlight.description": "ให้ทุกคนดูหน้าเพจได้ในคลิกเดียว ไม่มีทีมใช่ไหม",
16
+ "fabric.elements.mentions.team.mention.highlight.description.link": "เริ่มสร้างทีมเลย",
17
+ "fabric.elements.mentions.team.mention.highlight.title": "กล่าวถึงทีมของคุณ",
18
+ "fabric.mention.error.defaultAction": "ลองอีกครั้งในอีกสักครู่",
19
+ "fabric.mention.error.defaultHeadline": "มีข้อผิดพลาดบางอย่างเกิดขึ้น",
20
+ "fabric.mention.error.differentText": "ลองป้อนข้อความอื่น",
21
+ "fabric.mention.error.loginAgain": "ลองออกจากระบบและเข้าสู่ระบบใหม่อีกครั้ง",
22
+ "fabric.mention.noAccess.label": "ไม่มีการเข้าถึง",
23
+ "fabric.mention.noAccess.warning": "{name} จะไม่ได้รับการแจ้งเตือนเนื่องจากพวกเขาไม่มีสิทธิ์การเข้าถึง",
24
+ "fabric.mention.unknow.user.error": "ผู้ใช้ที่ไม่รู้จัก {userId}"
24
25
  };
@@ -1,3 +1,4 @@
1
+ /* prettier-ignore */
1
2
  /**
2
3
  * NOTE:
3
4
  *
@@ -6,19 +7,19 @@
6
7
  */
7
8
  //Turkish (Turkey)
8
9
  export default {
9
- 'fabric.elements.mentions.team.meantion.highlight.close.button.tooltip': 'Kapat',
10
- 'fabric.elements.mentions.team.member.50plus': "Takım • 50'den fazla üye",
11
- 'fabric.elements.mentions.team.member.50plus.including.you': "Takım • Siz de dahil olmak üzere 50'den fazla üye",
12
- 'fabric.elements.mentions.team.member.count': '{0, plural, one {Takım • 1 üye} other {Takım • {0} üye}}',
13
- 'fabric.elements.mentions.team.member.count.including.you': '{0, plural, one {Takım • Siz de dahil olmak üzere 1 üye} other {Takım • Siz de dahil olmak üzere {0} üye}}',
14
- 'fabric.elements.mentions.team.mention.highlight.description': 'Tek tıklamayla bu sayfadaki herkesi ekleyin. Takımınız yok mu?',
15
- 'fabric.elements.mentions.team.mention.highlight.description.link': 'Bir takım oluşturun.',
16
- 'fabric.elements.mentions.team.mention.highlight.title': 'Takımınızdan bahsedin',
17
- 'fabric.mention.error.defaultAction': 'Birkaç saniye sonra yeniden deneyin',
18
- 'fabric.mention.error.defaultHeadline': 'Bir hata oluştu',
19
- 'fabric.mention.error.differentText': 'Farklı bir metin girmeyi deneyin',
20
- 'fabric.mention.error.loginAgain': 'Oturumu kapatıp yeniden açmayı deneyin',
21
- 'fabric.mention.noAccess.label': 'Erişim izni yok',
22
- 'fabric.mention.noAccess.warning': 'Erişimi olmadığı için {name} adlı kullanıcıya bildirim gönderilmeyecek',
23
- 'fabric.mention.unknow.user.error': 'Bilinmeyen kullanıcı {userId}'
10
+ "fabric.elements.mentions.team.meantion.highlight.close.button.tooltip": "Kapat",
11
+ "fabric.elements.mentions.team.member.50plus": "Takım • 50'den fazla üye",
12
+ "fabric.elements.mentions.team.member.50plus.including.you": "Takım • Siz de dahil olmak üzere 50'den fazla üye",
13
+ "fabric.elements.mentions.team.member.count": "{0, plural, one {Takım • 1 üye} other {Takım • {0} üye}}",
14
+ "fabric.elements.mentions.team.member.count.including.you": "{0, plural, one {Takım • Siz de dahil olmak üzere 1 üye} other {Takım • Siz de dahil olmak üzere {0} üye}}",
15
+ "fabric.elements.mentions.team.mention.highlight.description": "Tek tıklamayla bu sayfadaki herkesi ekleyin. Takımınız yok mu?",
16
+ "fabric.elements.mentions.team.mention.highlight.description.link": "Bir takım oluşturun.",
17
+ "fabric.elements.mentions.team.mention.highlight.title": "Takımınızdan bahsedin",
18
+ "fabric.mention.error.defaultAction": "Birkaç saniye sonra yeniden deneyin",
19
+ "fabric.mention.error.defaultHeadline": "Bir hata oluştu",
20
+ "fabric.mention.error.differentText": "Farklı bir metin girmeyi deneyin",
21
+ "fabric.mention.error.loginAgain": "Oturumu kapatıp yeniden açmayı deneyin",
22
+ "fabric.mention.noAccess.label": "Erişim izni yok",
23
+ "fabric.mention.noAccess.warning": "Erişimi olmadığı için {name} adlı kullanıcıya bildirim gönderilmeyecek",
24
+ "fabric.mention.unknow.user.error": "Bilinmeyen kullanıcı {userId}"
24
25
  };
@@ -1,3 +1,4 @@
1
+ /* prettier-ignore */
1
2
  /**
2
3
  * NOTE:
3
4
  *
@@ -6,19 +7,19 @@
6
7
  */
7
8
  //Ukrainian (Ukraine)
8
9
  export default {
9
- 'fabric.elements.mentions.team.meantion.highlight.close.button.tooltip': 'Закрити',
10
- 'fabric.elements.mentions.team.member.50plus': 'Команда • Понад 50 учасників',
11
- 'fabric.elements.mentions.team.member.50plus.including.you': 'Команда • Понад 50 учасників включно з вами',
12
- 'fabric.elements.mentions.team.member.count': '{0, plural, one {Команда • 1 учасник} few {Команда • {0} учасники} many {Команда • {0} учасників} other {Команда • {0} учасників}}',
13
- 'fabric.elements.mentions.team.member.count.including.you': '{0, plural, one {Команда • 1 учасник включно з вами} few {Команда • {0} учасники включно з вами} many {Команда • {0} учасників включно з вами} other {Команда • {0} учасників включно з вами}}',
14
- 'fabric.elements.mentions.team.mention.highlight.description': 'Одним рухом приверніть увагу всіх учасників до сторінки. Немає команди?',
15
- 'fabric.elements.mentions.team.mention.highlight.description.link': 'Створіть її.',
16
- 'fabric.elements.mentions.team.mention.highlight.title': 'Згадайте свою команду',
17
- 'fabric.mention.error.defaultAction': 'Повторіть спробу за кілька секунд',
18
- 'fabric.mention.error.defaultHeadline': 'Щось пішло не так',
19
- 'fabric.mention.error.differentText': 'Спробуйте ввести інший текст',
20
- 'fabric.mention.error.loginAgain': 'Спробуйте вийти й знову ввійти',
21
- 'fabric.mention.noAccess.label': 'Немає доступу',
22
- 'fabric.mention.noAccess.warning': '{name} не має доступу, тому не отримає сповіщення',
23
- 'fabric.mention.unknow.user.error': 'Невідомий користувач {userId}'
10
+ "fabric.elements.mentions.team.meantion.highlight.close.button.tooltip": "Закрити",
11
+ "fabric.elements.mentions.team.member.50plus": "Команда • Понад 50 учасників",
12
+ "fabric.elements.mentions.team.member.50plus.including.you": "Команда • Понад 50 учасників включно з вами",
13
+ "fabric.elements.mentions.team.member.count": "{0, plural, one {Команда • 1 учасник} few {Команда • {0} учасники} many {Команда • {0} учасників} other {Команда • {0} учасників}}",
14
+ "fabric.elements.mentions.team.member.count.including.you": "{0, plural, one {Команда • 1 учасник включно з вами} few {Команда • {0} учасники включно з вами} many {Команда • {0} учасників включно з вами} other {Команда • {0} учасників включно з вами}}",
15
+ "fabric.elements.mentions.team.mention.highlight.description": "Одним рухом приверніть увагу всіх учасників до сторінки. Немає команди?",
16
+ "fabric.elements.mentions.team.mention.highlight.description.link": "Створіть її.",
17
+ "fabric.elements.mentions.team.mention.highlight.title": "Згадайте свою команду",
18
+ "fabric.mention.error.defaultAction": "Повторіть спробу за кілька секунд",
19
+ "fabric.mention.error.defaultHeadline": "Щось пішло не так",
20
+ "fabric.mention.error.differentText": "Спробуйте ввести інший текст",
21
+ "fabric.mention.error.loginAgain": "Спробуйте вийти й знову ввійти",
22
+ "fabric.mention.noAccess.label": "Немає доступу",
23
+ "fabric.mention.noAccess.warning": "{name} не має доступу, тому не отримає сповіщення",
24
+ "fabric.mention.unknow.user.error": "Невідомий користувач {userId}"
24
25
  };
@@ -1,3 +1,4 @@
1
+ /* prettier-ignore */
1
2
  /**
2
3
  * NOTE:
3
4
  *
@@ -6,19 +7,19 @@
6
7
  */
7
8
  //Vietnamese (Vietnam)
8
9
  export default {
9
- 'fabric.elements.mentions.team.meantion.highlight.close.button.tooltip': 'Bỏ qua',
10
- 'fabric.elements.mentions.team.member.50plus': 'Nhóm • 50+ thành viên',
11
- 'fabric.elements.mentions.team.member.50plus.including.you': 'Nhóm • 50+ thành viên, bao gồm cả bạn',
12
- 'fabric.elements.mentions.team.member.count': '{0, plural, other {Nhóm • {0} thành viên}}',
13
- 'fabric.elements.mentions.team.member.count.including.you': '{0, plural, other {Nhóm • {0} thành viên, bao gồm cả bạn}}',
14
- 'fabric.elements.mentions.team.mention.highlight.description': 'Đưa mọi người đến trang này chỉ bằng một cú nhấp chuột. Không có nhóm?',
15
- 'fabric.elements.mentions.team.mention.highlight.description.link': 'Bắt đầu tạo nhóm.',
16
- 'fabric.elements.mentions.team.mention.highlight.title': 'Nhắc đến nhóm của bạn',
17
- 'fabric.mention.error.defaultAction': 'Hãy thử lại trong vài giây',
18
- 'fabric.mention.error.defaultHeadline': 'Đã xảy ra lỗi',
19
- 'fabric.mention.error.differentText': 'Hãy thử nhập văn bản khác',
20
- 'fabric.mention.error.loginAgain': 'Hãy thử đăng xuất, sau đó đăng nhập lại',
21
- 'fabric.mention.noAccess.label': 'Không có quyền truy cập',
22
- 'fabric.mention.noAccess.warning': '{name} sẽ không được thông báo vì họ không có quyền truy cập',
23
- 'fabric.mention.unknow.user.error': '{userId} người dùng không xác định'
10
+ "fabric.elements.mentions.team.meantion.highlight.close.button.tooltip": "Bỏ qua",
11
+ "fabric.elements.mentions.team.member.50plus": "Nhóm • 50+ thành viên",
12
+ "fabric.elements.mentions.team.member.50plus.including.you": "Nhóm • 50+ thành viên, bao gồm cả bạn",
13
+ "fabric.elements.mentions.team.member.count": "{0, plural, other {Nhóm • {0} thành viên}}",
14
+ "fabric.elements.mentions.team.member.count.including.you": "{0, plural, other {Nhóm • {0} thành viên, bao gồm cả bạn}}",
15
+ "fabric.elements.mentions.team.mention.highlight.description": "Đưa mọi người đến trang này chỉ bằng một cú nhấp chuột. Không có nhóm?",
16
+ "fabric.elements.mentions.team.mention.highlight.description.link": "Bắt đầu tạo nhóm.",
17
+ "fabric.elements.mentions.team.mention.highlight.title": "Nhắc đến nhóm của bạn",
18
+ "fabric.mention.error.defaultAction": "Hãy thử lại trong vài giây",
19
+ "fabric.mention.error.defaultHeadline": "Đã xảy ra lỗi",
20
+ "fabric.mention.error.differentText": "Hãy thử nhập văn bản khác",
21
+ "fabric.mention.error.loginAgain": "Hãy thử đăng xuất, sau đó đăng nhập lại",
22
+ "fabric.mention.noAccess.label": "Không có quyền truy cập",
23
+ "fabric.mention.noAccess.warning": "{name} sẽ không được thông báo vì họ không có quyền truy cập",
24
+ "fabric.mention.unknow.user.error": "{userId} người dùng không xác định"
24
25
  };
@@ -1,3 +1,4 @@
1
+ /* prettier-ignore */
1
2
  /**
2
3
  * NOTE:
3
4
  *
@@ -6,19 +7,19 @@
6
7
  */
7
8
  //Chinese (Simplified)
8
9
  export default {
9
- 'fabric.elements.mentions.team.meantion.highlight.close.button.tooltip': '放弃',
10
- 'fabric.elements.mentions.team.member.50plus': '团队 • 50 多名成员',
11
- 'fabric.elements.mentions.team.member.50plus.including.you': '团队 • 50 多名成员,包括您',
12
- 'fabric.elements.mentions.team.member.count': '{0, plural, other {团队 • {0} 名成员}}',
13
- 'fabric.elements.mentions.team.member.count.including.you': '{0, plural, other {团队 • {0} 名成员,包括您}}',
14
- 'fabric.elements.mentions.team.mention.highlight.description': '一键提及此页面的所有人。无需提及团队?',
15
- 'fabric.elements.mentions.team.mention.highlight.description.link': '开始一项。',
16
- 'fabric.elements.mentions.team.mention.highlight.title': '提及您的团队',
17
- 'fabric.mention.error.defaultAction': '几秒钟后再试一次',
18
- 'fabric.mention.error.defaultHeadline': '出错了',
19
- 'fabric.mention.error.differentText': '尝试输入不同的文本',
20
- 'fabric.mention.error.loginAgain': '尝试再次退出',
21
- 'fabric.mention.noAccess.label': '无法访问',
22
- 'fabric.mention.noAccess.warning': '将不会通知{name},因为他们无访问访问权限',
23
- 'fabric.mention.unknow.user.error': '未知用户 {userId}'
10
+ "fabric.elements.mentions.team.meantion.highlight.close.button.tooltip": "放弃",
11
+ "fabric.elements.mentions.team.member.50plus": "团队 • 50 多名成员",
12
+ "fabric.elements.mentions.team.member.50plus.including.you": "团队 • 50 多名成员,包括您",
13
+ "fabric.elements.mentions.team.member.count": "{0, plural, other {团队 • {0} 名成员}}",
14
+ "fabric.elements.mentions.team.member.count.including.you": "{0, plural, other {团队 • {0} 名成员,包括您}}",
15
+ "fabric.elements.mentions.team.mention.highlight.description": "一键提及此页面的所有人。无需提及团队?",
16
+ "fabric.elements.mentions.team.mention.highlight.description.link": "开始一项。",
17
+ "fabric.elements.mentions.team.mention.highlight.title": "提及您的团队",
18
+ "fabric.mention.error.defaultAction": "几秒钟后再试一次",
19
+ "fabric.mention.error.defaultHeadline": "出错了",
20
+ "fabric.mention.error.differentText": "尝试输入不同的文本",
21
+ "fabric.mention.error.loginAgain": "尝试再次退出",
22
+ "fabric.mention.noAccess.label": "无法访问",
23
+ "fabric.mention.noAccess.warning": "将不会通知{name},因为他们无访问访问权限",
24
+ "fabric.mention.unknow.user.error": "未知用户 {userId}"
24
25
  };
@@ -1,3 +1,4 @@
1
+ /* prettier-ignore */
1
2
  /**
2
3
  * NOTE:
3
4
  *
@@ -6,19 +7,19 @@
6
7
  */
7
8
  //Chinese (Traditional)
8
9
  export default {
9
- 'fabric.elements.mentions.team.meantion.highlight.close.button.tooltip': '關閉',
10
- 'fabric.elements.mentions.team.member.50plus': '團隊 • 50 名以上的成員',
11
- 'fabric.elements.mentions.team.member.50plus.including.you': '團隊 • 50 名以上的成員,包含您',
12
- 'fabric.elements.mentions.team.member.count': '{0, plural, other {團隊 • {0} 名成員}}',
13
- 'fabric.elements.mentions.team.member.count.including.you': '{0, plural, other {團隊 • {0} 名成員,包含您}}',
14
- 'fabric.elements.mentions.team.mention.highlight.description': '只要按一下,在此頁面提及所有人。沒有團隊?',
15
- 'fabric.elements.mentions.team.mention.highlight.description.link': '開始建立。',
16
- 'fabric.elements.mentions.team.mention.highlight.title': '提及您的團隊',
17
- 'fabric.mention.error.defaultAction': '幾秒後再試一次',
18
- 'fabric.mention.error.defaultHeadline': '發生問題',
19
- 'fabric.mention.error.differentText': '嘗試輸入不同的文字',
20
- 'fabric.mention.error.loginAgain': '嘗試登出,然後再登入',
21
- 'fabric.mention.noAccess.label': '無存取權',
22
- 'fabric.mention.noAccess.warning': '{name} 沒有存取權,因此不會收到通知',
23
- 'fabric.mention.unknow.user.error': '未知的使用者 {userId}'
10
+ "fabric.elements.mentions.team.meantion.highlight.close.button.tooltip": "關閉",
11
+ "fabric.elements.mentions.team.member.50plus": "團隊 • 50 名以上的成員",
12
+ "fabric.elements.mentions.team.member.50plus.including.you": "團隊 • 50 名以上的成員,包含您",
13
+ "fabric.elements.mentions.team.member.count": "{0, plural, other {團隊 • {0} 名成員}}",
14
+ "fabric.elements.mentions.team.member.count.including.you": "{0, plural, other {團隊 • {0} 名成員,包含您}}",
15
+ "fabric.elements.mentions.team.mention.highlight.description": "只要按一下,在此頁面提及所有人。沒有團隊?",
16
+ "fabric.elements.mentions.team.mention.highlight.description.link": "開始建立。",
17
+ "fabric.elements.mentions.team.mention.highlight.title": "提及您的團隊",
18
+ "fabric.mention.error.defaultAction": "幾秒後再試一次",
19
+ "fabric.mention.error.defaultHeadline": "發生問題",
20
+ "fabric.mention.error.differentText": "嘗試輸入不同的文字",
21
+ "fabric.mention.error.loginAgain": "嘗試登出,然後再登入",
22
+ "fabric.mention.noAccess.label": "無存取權",
23
+ "fabric.mention.noAccess.warning": "{name} 沒有存取權,因此不會收到通知",
24
+ "fabric.mention.unknow.user.error": "未知的使用者 {userId}"
24
25
  };
package/dist/esm/index.js CHANGED
@@ -8,8 +8,6 @@ import ResourcedMentionList from './components/ResourcedMentionList';
8
8
  import { MentionPickerWithAnalytics as MentionPicker } from './components/MentionPicker';
9
9
  import Mention from './components/Mention';
10
10
  import ResourcedMention from './components/Mention/ResourcedMention';
11
- import TeamMentionHighlight from './components/TeamMentionHighlight';
12
- import TeamMentionHighlightController from './components/TeamMentionHighlight/TeamMentionHighlightController';
13
11
  import { MentionNameStatus, isSpecialMention, UserAccessLevel, UserType } from './types';
14
12
  import { ELEMENTS_CHANNEL } from './_constants';
15
13
  import ContextMentionResource from './api/ContextMentionResource';
@@ -17,7 +15,7 @@ export {
17
15
  // Classes
18
16
  ContextMentionResource, MentionResource, TeamMentionResource, PresenceResource, DefaultMentionNameResolver, AbstractMentionResource, AbstractPresenceResource, MentionNameStatus,
19
17
  // Components
20
- MentionItem, MentionList, ResourcedMentionList, MentionPicker, Mention, ResourcedMention, TeamMentionHighlight, TeamMentionHighlightController, UserAccessLevel, UserType,
18
+ MentionItem, MentionList, ResourcedMentionList, MentionPicker, Mention, ResourcedMention, UserAccessLevel, UserType,
21
19
  // Functions
22
20
  isSpecialMention, isResolvingMentionProvider,
23
21
  // Constants
@@ -19,7 +19,6 @@ export var ComponentNames;
19
19
  (function (ComponentNames) {
20
20
  ComponentNames["TYPEAHEAD"] = "mentionTypeahead";
21
21
  ComponentNames["MENTION"] = "mention";
22
- ComponentNames["TEAM_MENTION_HIGHLIGHT"] = "teamMentionHighlight";
23
22
  })(ComponentNames || (ComponentNames = {}));
24
23
  export var Actions;
25
24
  (function (Actions) {
@@ -52,27 +51,6 @@ export var fireAnalyticsMentionTypeaheadEvent = function fireAnalyticsMentionTyp
52
51
  }
53
52
  };
54
53
  };
55
- export var fireAnalyticsTeamMentionHighlightEvent = function fireAnalyticsTeamMentionHighlightEvent(createEvent) {
56
- return function (actionSubject, action, source, actionSubjectId, viewedCount) {
57
- if (createEvent) {
58
- var eventPayload = {
59
- action: action,
60
- actionSubject: actionSubject,
61
- actionSubjectId: actionSubjectId,
62
- eventType: UI_EVENT_TYPE,
63
- attributes: {
64
- source: source,
65
- packageName: packageName,
66
- packageVersion: packageVersion,
67
- componentName: ComponentNames.TEAM_MENTION_HIGHLIGHT,
68
- viewedCount: viewedCount
69
- }
70
- };
71
- var analyticsEvent = createEvent(eventPayload);
72
- analyticsEvent.fire(ELEMENTS_CHANNEL);
73
- }
74
- };
75
- };
76
54
  export var fireAnalyticsMentionEvent = function fireAnalyticsMentionEvent(createEvent) {
77
55
  return function (actionSubject, action, text, id, accessLevel) {
78
56
  var payload = {
@@ -1,6 +1,7 @@
1
+ import _typeof from "@babel/runtime/helpers/typeof";
1
2
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
3
  import _extends from "@babel/runtime/helpers/extends";
3
- import _regeneratorRuntime from "@babel/runtime/regenerator";
4
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
4
5
  import React from 'react';
5
6
  import { FormattedMessage, useIntl } from 'react-intl-next';
6
7
  import { messages } from '../components/i18n';
@@ -26,10 +27,6 @@ export var DefaultHeadline = propFormatter(messages.defaultHeadline);
26
27
  export var DefaultAdvisedAction = propFormatter(messages.defaultAdvisedAction);
27
28
  export var LoginAgain = propFormatter(messages.loginAgain);
28
29
  export var DifferentText = propFormatter(messages.differentText);
29
- export var TeamMentionHighlightTitle = propFormatter(messages.TeamMentionHighlightTitle);
30
- export var TeamMentionHighlightCloseTooltip = propFormatter(messages.TeamMentionHighlightCloseButtonToolTip);
31
- export var TeamMentionHighlightDescription = propFormatter(messages.TeamMentionHighlightDescription);
32
- export var TeamMentionHighlightDescriptionLink = propFormatter(messages.TeamMentionHighlightDescriptionLink);
33
30
 
34
31
  /**
35
32
  * Tries to get the most specific messages bundle for a given locale.
@@ -42,9 +39,9 @@ export var TeamMentionHighlightDescriptionLink = propFormatter(messages.TeamMent
42
39
  * @param locale string specifying the locale like 'en_GB', or 'fr'.
43
40
  */
44
41
  export var getMessagesForLocale = /*#__PURE__*/function () {
45
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(locale) {
42
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(locale) {
46
43
  var fragments;
47
- return _regeneratorRuntime.wrap(function _callee$(_context) {
44
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
48
45
  while (1) {
49
46
  switch (_context.prev = _context.next) {
50
47
  case 0:
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/mention",
3
- "version": "21.0.19",
3
+ "version": "22.0.1",
4
4
  "sideEffects": false
5
5
  }
@@ -2,12 +2,6 @@ import { AnalyticsCallback, ErrorCallback, InfoCallback, InviteExperimentCohort,
2
2
  export type { MentionStats, ResultCallback, ErrorCallback, InfoCallback, MentionResourceConfig, ResourceProvider, MentionContextIdentifier, MentionProvider, } from '../types';
3
3
  export interface TeamMentionResourceConfig extends MentionResourceConfig {
4
4
  teamLinkResolver?: (teamId: string) => string;
5
- teamHighlightEnabled?: boolean;
6
- createTeamPath?: string;
7
- }
8
- export interface TeamMentionProvider extends MentionProvider {
9
- mentionTypeaheadHighlightEnabled: () => boolean;
10
- mentionTypeaheadCreateTeamPath: () => string | undefined;
11
5
  }
12
6
  /**
13
7
  * Support
@@ -1,18 +1,16 @@
1
1
  import { MentionsResult } from '../types';
2
- import MentionResource, { MentionContextIdentifier, MentionResourceConfig, TeamMentionResourceConfig, TeamMentionProvider } from './MentionResource';
2
+ import MentionResource, { MentionContextIdentifier, MentionResourceConfig, TeamMentionResourceConfig, MentionProvider } from './MentionResource';
3
3
  /**
4
4
  * Provides a Javascript API to fetch users and teams
5
5
  * In future we will have a new endpoint to return both users and teams, we can
6
6
  * remove this class at this point
7
7
  */
8
- export default class TeamMentionResource extends MentionResource implements TeamMentionProvider {
8
+ export default class TeamMentionResource extends MentionResource implements MentionProvider {
9
9
  private readonly teamMentionConfig;
10
10
  private lastSearchQuery?;
11
11
  private lastReturnedSearchTeam;
12
12
  constructor(userMentionConfig: MentionResourceConfig, teamMentionConfig: TeamMentionResourceConfig);
13
13
  filter(query?: string, contextIdentifier?: MentionContextIdentifier): Promise<void>;
14
- mentionTypeaheadHighlightEnabled: () => boolean;
15
- mentionTypeaheadCreateTeamPath: () => string | undefined;
16
14
  /**
17
15
  * Returns the initial mention display list before a search is performed for the specified
18
16
  * container.
@@ -23,8 +23,6 @@ export interface Props {
23
23
  zIndex?: number | string;
24
24
  offsetX?: number;
25
25
  offsetY?: number;
26
- showTeamMentionsHighlight?: boolean;
27
- createTeamPath?: string;
28
26
  }
29
27
  export interface State {
30
28
  visible: boolean;
@@ -9,8 +9,6 @@ export interface Props {
9
9
  query?: string;
10
10
  onSelection?: OnMentionEvent;
11
11
  resourceError?: Error;
12
- isTeamMentionHighlightEnabled?: boolean;
13
- createTeamPath?: string;
14
12
  }
15
13
  export interface State {
16
14
  resourceError?: Error;
@@ -41,8 +39,6 @@ export declare class ResourcedMentionListWithoutAnalytics extends React.PureComp
41
39
  private presenceUpdate;
42
40
  private notifySelection;
43
41
  private handleMentionListRef;
44
- private closeHighlight;
45
- private mentionsHighlight;
46
42
  render(): JSX.Element;
47
43
  }
48
44
  declare const ResourcedMentionList: React.ForwardRefExoticComponent<Omit<Props & WithAnalyticsEventsProps, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
@@ -54,24 +54,4 @@ export declare const messages: {
54
54
  defaultMessage: string;
55
55
  description: string;
56
56
  };
57
- TeamMentionHighlightTitle: {
58
- id: string;
59
- defaultMessage: string;
60
- description: string;
61
- };
62
- TeamMentionHighlightDescription: {
63
- id: string;
64
- defaultMessage: string;
65
- description: string;
66
- };
67
- TeamMentionHighlightDescriptionLink: {
68
- id: string;
69
- defaultMessage: string;
70
- description: string;
71
- };
72
- TeamMentionHighlightCloseButtonToolTip: {
73
- id: string;
74
- defaultMessage: string;
75
- description: string;
76
- };
77
57
  };
@@ -1,19 +1,19 @@
1
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;
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
17
  };
18
18
  /**
19
19
  * NOTE:
@@ -1,19 +1,19 @@
1
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;
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
17
  };
18
18
  /**
19
19
  * NOTE: