@atlaskit/mention 21.0.19 → 22.0.0
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 +6 -0
- package/dist/cjs/api/TeamMentionResource.js +4 -10
- package/dist/cjs/components/MentionPicker/index.js +1 -5
- package/dist/cjs/components/ResourcedMentionList/index.js +1 -27
- package/dist/cjs/components/i18n.js +0 -20
- package/dist/cjs/i18n/cs.js +16 -15
- package/dist/cjs/i18n/da.js +16 -15
- package/dist/cjs/i18n/de.js +16 -15
- package/dist/cjs/i18n/en.js +16 -15
- package/dist/cjs/i18n/en_GB.js +16 -15
- package/dist/cjs/i18n/es.js +16 -15
- package/dist/cjs/i18n/fi.js +16 -15
- package/dist/cjs/i18n/fr.js +16 -15
- package/dist/cjs/i18n/hu.js +16 -15
- package/dist/cjs/i18n/it.js +16 -15
- package/dist/cjs/i18n/ja.js +16 -15
- package/dist/cjs/i18n/ko.js +16 -15
- package/dist/cjs/i18n/nb.js +16 -15
- package/dist/cjs/i18n/nl.js +16 -15
- package/dist/cjs/i18n/pl.js +16 -15
- package/dist/cjs/i18n/pt_BR.js +16 -15
- package/dist/cjs/i18n/ru.js +16 -15
- package/dist/cjs/i18n/sv.js +16 -15
- package/dist/cjs/i18n/th.js +16 -15
- package/dist/cjs/i18n/tr.js +16 -15
- package/dist/cjs/i18n/uk.js +16 -15
- package/dist/cjs/i18n/vi.js +16 -15
- package/dist/cjs/i18n/zh.js +16 -15
- package/dist/cjs/i18n/zh_TW.js +16 -15
- package/dist/cjs/index.js +0 -14
- package/dist/cjs/util/analytics.js +1 -24
- package/dist/cjs/util/i18n.js +2 -10
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/api/TeamMentionResource.js +1 -2
- package/dist/es2019/components/MentionPicker/index.js +1 -5
- package/dist/es2019/components/ResourcedMentionList/index.js +1 -27
- package/dist/es2019/components/i18n.js +0 -20
- package/dist/es2019/i18n/cs.js +16 -15
- package/dist/es2019/i18n/da.js +16 -15
- package/dist/es2019/i18n/de.js +16 -15
- package/dist/es2019/i18n/en.js +16 -15
- package/dist/es2019/i18n/en_GB.js +16 -15
- package/dist/es2019/i18n/es.js +16 -15
- package/dist/es2019/i18n/fi.js +16 -15
- package/dist/es2019/i18n/fr.js +16 -15
- package/dist/es2019/i18n/hu.js +16 -15
- package/dist/es2019/i18n/it.js +16 -15
- package/dist/es2019/i18n/ja.js +16 -15
- package/dist/es2019/i18n/ko.js +16 -15
- package/dist/es2019/i18n/nb.js +16 -15
- package/dist/es2019/i18n/nl.js +16 -15
- package/dist/es2019/i18n/pl.js +16 -15
- package/dist/es2019/i18n/pt_BR.js +16 -15
- package/dist/es2019/i18n/ru.js +16 -15
- package/dist/es2019/i18n/sv.js +16 -15
- package/dist/es2019/i18n/th.js +16 -15
- package/dist/es2019/i18n/tr.js +16 -15
- package/dist/es2019/i18n/uk.js +16 -15
- package/dist/es2019/i18n/vi.js +16 -15
- package/dist/es2019/i18n/zh.js +16 -15
- package/dist/es2019/i18n/zh_TW.js +16 -15
- package/dist/es2019/index.js +1 -3
- package/dist/es2019/util/analytics.js +0 -20
- package/dist/es2019/util/i18n.js +0 -4
- package/dist/es2019/version.json +1 -1
- package/dist/esm/api/TeamMentionResource.js +4 -10
- package/dist/esm/components/MentionPicker/index.js +1 -5
- package/dist/esm/components/ResourcedMentionList/index.js +1 -24
- package/dist/esm/components/i18n.js +0 -20
- package/dist/esm/i18n/cs.js +16 -15
- package/dist/esm/i18n/da.js +16 -15
- package/dist/esm/i18n/de.js +16 -15
- package/dist/esm/i18n/en.js +16 -15
- package/dist/esm/i18n/en_GB.js +16 -15
- package/dist/esm/i18n/es.js +16 -15
- package/dist/esm/i18n/fi.js +16 -15
- package/dist/esm/i18n/fr.js +16 -15
- package/dist/esm/i18n/hu.js +16 -15
- package/dist/esm/i18n/it.js +16 -15
- package/dist/esm/i18n/ja.js +16 -15
- package/dist/esm/i18n/ko.js +16 -15
- package/dist/esm/i18n/nb.js +16 -15
- package/dist/esm/i18n/nl.js +16 -15
- package/dist/esm/i18n/pl.js +16 -15
- package/dist/esm/i18n/pt_BR.js +16 -15
- package/dist/esm/i18n/ru.js +16 -15
- package/dist/esm/i18n/sv.js +16 -15
- package/dist/esm/i18n/th.js +16 -15
- package/dist/esm/i18n/tr.js +16 -15
- package/dist/esm/i18n/uk.js +16 -15
- package/dist/esm/i18n/vi.js +16 -15
- package/dist/esm/i18n/zh.js +16 -15
- package/dist/esm/i18n/zh_TW.js +16 -15
- package/dist/esm/index.js +1 -3
- package/dist/esm/util/analytics.js +0 -22
- package/dist/esm/util/i18n.js +0 -4
- package/dist/esm/version.json +1 -1
- package/dist/types/api/MentionResource.d.ts +0 -6
- package/dist/types/api/TeamMentionResource.d.ts +2 -4
- package/dist/types/components/MentionPicker/index.d.ts +0 -2
- package/dist/types/components/ResourcedMentionList/index.d.ts +0 -4
- package/dist/types/components/i18n.d.ts +0 -20
- package/dist/types/i18n/cs.d.ts +15 -15
- package/dist/types/i18n/da.d.ts +15 -15
- package/dist/types/i18n/de.d.ts +15 -15
- package/dist/types/i18n/en.d.ts +15 -15
- package/dist/types/i18n/en_GB.d.ts +15 -15
- package/dist/types/i18n/es.d.ts +15 -15
- package/dist/types/i18n/fi.d.ts +15 -15
- package/dist/types/i18n/fr.d.ts +15 -15
- package/dist/types/i18n/hu.d.ts +15 -15
- package/dist/types/i18n/it.d.ts +15 -15
- package/dist/types/i18n/ja.d.ts +15 -15
- package/dist/types/i18n/ko.d.ts +15 -15
- package/dist/types/i18n/nb.d.ts +15 -15
- package/dist/types/i18n/nl.d.ts +15 -15
- package/dist/types/i18n/pl.d.ts +15 -15
- package/dist/types/i18n/pt_BR.d.ts +15 -15
- package/dist/types/i18n/ru.d.ts +15 -15
- package/dist/types/i18n/sv.d.ts +15 -15
- package/dist/types/i18n/th.d.ts +15 -15
- package/dist/types/i18n/tr.d.ts +15 -15
- package/dist/types/i18n/uk.d.ts +15 -15
- package/dist/types/i18n/vi.d.ts +15 -15
- package/dist/types/i18n/zh.d.ts +15 -15
- package/dist/types/i18n/zh_TW.d.ts +15 -15
- package/dist/types/index.d.ts +1 -3
- package/dist/types/resource.d.ts +2 -2
- package/dist/types/util/analytics.d.ts +1 -3
- package/dist/types/util/i18n.d.ts +0 -4
- package/package.json +7 -8
- package/report.api.md +1 -118
- package/dist/cjs/components/TeamMentionHighlight/TeamMentionHighlightController.js +0 -85
- package/dist/cjs/components/TeamMentionHighlight/index.js +0 -184
- package/dist/cjs/components/TeamMentionHighlight/lazy.js +0 -21
- package/dist/cjs/components/TeamMentionHighlight/styles.js +0 -29
- package/dist/cjs/spotlight.js +0 -20
- package/dist/es2019/components/TeamMentionHighlight/TeamMentionHighlightController.js +0 -64
- package/dist/es2019/components/TeamMentionHighlight/index.js +0 -148
- package/dist/es2019/components/TeamMentionHighlight/lazy.js +0 -4
- package/dist/es2019/components/TeamMentionHighlight/styles.js +0 -40
- package/dist/es2019/spotlight.js +0 -5
- package/dist/esm/components/TeamMentionHighlight/TeamMentionHighlightController.js +0 -77
- package/dist/esm/components/TeamMentionHighlight/index.js +0 -172
- package/dist/esm/components/TeamMentionHighlight/lazy.js +0 -8
- package/dist/esm/components/TeamMentionHighlight/styles.js +0 -14
- package/dist/esm/spotlight.js +0 -5
- package/dist/types/components/TeamMentionHighlight/TeamMentionHighlightController.d.ts +0 -17
- package/dist/types/components/TeamMentionHighlight/index.d.ts +0 -35
- package/dist/types/components/TeamMentionHighlight/lazy.d.ts +0 -4
- package/dist/types/components/TeamMentionHighlight/styles.d.ts +0 -33
- package/dist/types/spotlight.d.ts +0 -3
- package/spotlight/package.json +0 -15
package/dist/types/i18n/th.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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:
|
package/dist/types/i18n/tr.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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:
|
package/dist/types/i18n/uk.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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:
|
package/dist/types/i18n/vi.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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:
|
package/dist/types/i18n/zh.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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:
|
package/dist/types/index.d.ts
CHANGED
|
@@ -9,11 +9,9 @@ import ResourcedMentionList from './components/ResourcedMentionList';
|
|
|
9
9
|
import { MentionPickerWithAnalytics as MentionPicker } from './components/MentionPicker';
|
|
10
10
|
import Mention from './components/Mention';
|
|
11
11
|
import ResourcedMention from './components/Mention/ResourcedMention';
|
|
12
|
-
import TeamMentionHighlight from './components/TeamMentionHighlight';
|
|
13
|
-
import TeamMentionHighlightController from './components/TeamMentionHighlight/TeamMentionHighlightController';
|
|
14
12
|
import { MentionDescription, MentionsResult, MentionNameStatus, MentionNameDetails, InviteExperimentCohort, InviteFlow, isSpecialMention, TeamMember, UserAccessLevel, UserRole, UserType } from './types';
|
|
15
13
|
import { ELEMENTS_CHANNEL } from './_constants';
|
|
16
14
|
import ContextMentionResource from './api/ContextMentionResource';
|
|
17
|
-
export { ContextMentionResource, MentionResource, TeamMentionResource, PresenceResource, DefaultMentionNameResolver, AbstractMentionResource, AbstractPresenceResource, MentionNameStatus, MentionItem, MentionList, ResourcedMentionList, MentionPicker, Mention, ResourcedMention,
|
|
15
|
+
export { ContextMentionResource, MentionResource, TeamMentionResource, PresenceResource, DefaultMentionNameResolver, AbstractMentionResource, AbstractPresenceResource, MentionNameStatus, MentionItem, MentionList, ResourcedMentionList, MentionPicker, Mention, ResourcedMention, UserAccessLevel, UserType, isSpecialMention, isResolvingMentionProvider, ELEMENTS_CHANNEL, };
|
|
18
16
|
export type { ResolvingMentionProvider, MentionProvider, PresenceProvider, MentionDescription, MentionsResult, MentionNameResolver, MentionNameClient, MentionNameDetails, MentionContextIdentifier, MentionStats, TeamMember, MentionResourceConfig, TeamMentionResourceConfig, InviteExperimentCohort, InviteFlow, UserRole, };
|
|
19
17
|
export default MentionPicker;
|
package/dist/types/resource.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import MentionResource, { AbstractMentionResource, ResolvingMentionProvider, MentionContextIdentifier, MentionProvider, MentionStats, MentionResourceConfig, isResolvingMentionProvider
|
|
1
|
+
import MentionResource, { AbstractMentionResource, ResolvingMentionProvider, MentionContextIdentifier, MentionProvider, MentionStats, MentionResourceConfig, isResolvingMentionProvider } from './api/MentionResource';
|
|
2
2
|
import PresenceResource, { PresenceProvider, AbstractPresenceResource } from './api/PresenceResource';
|
|
3
3
|
import { DefaultMentionNameResolver, MentionNameResolver } from './api/MentionNameResolver';
|
|
4
4
|
import { MentionNameClient } from './api/MentionNameClient';
|
|
@@ -7,4 +7,4 @@ import { ELEMENTS_CHANNEL } from './_constants';
|
|
|
7
7
|
import ContextMentionResource from './api/ContextMentionResource';
|
|
8
8
|
import { SLI_EVENT_TYPE, SMART_EVENT_TYPE, buildSliPayload } from './util/analytics';
|
|
9
9
|
export { ContextMentionResource, MentionResource, PresenceResource, AbstractMentionResource, AbstractPresenceResource, DefaultMentionNameResolver, MentionNameStatus, isSpecialMention, isResolvingMentionProvider, ELEMENTS_CHANNEL, SLI_EVENT_TYPE, SMART_EVENT_TYPE, buildSliPayload, };
|
|
10
|
-
export type { ResolvingMentionProvider, MentionProvider, PresenceProvider, MentionDescription, MentionsResult, MentionNameClient, MentionNameResolver,
|
|
10
|
+
export type { ResolvingMentionProvider, MentionProvider, PresenceProvider, MentionDescription, MentionsResult, MentionNameClient, MentionNameResolver, MentionContextIdentifier, MentionStats, MentionResourceConfig, MentionNameDetails, };
|
|
@@ -11,8 +11,7 @@ export declare enum SliNames {
|
|
|
11
11
|
}
|
|
12
12
|
export declare enum ComponentNames {
|
|
13
13
|
TYPEAHEAD = "mentionTypeahead",
|
|
14
|
-
MENTION = "mention"
|
|
15
|
-
TEAM_MENTION_HIGHLIGHT = "teamMentionHighlight"
|
|
14
|
+
MENTION = "mention"
|
|
16
15
|
}
|
|
17
16
|
export declare enum Actions {
|
|
18
17
|
VIEWED = "viewed",
|
|
@@ -22,7 +21,6 @@ export declare enum Actions {
|
|
|
22
21
|
FAILED = "failed"
|
|
23
22
|
}
|
|
24
23
|
export declare const fireAnalyticsMentionTypeaheadEvent: (props: WithAnalyticsEventsProps) => (action: string, duration: number, userIds?: string[], query?: string | undefined) => void;
|
|
25
|
-
export declare const fireAnalyticsTeamMentionHighlightEvent: (createEvent: CreateUIAnalyticsEvent) => (actionSubject: string, action: string, source: string, actionSubjectId?: string | undefined, viewedCount?: number | undefined) => void;
|
|
26
24
|
export declare const fireAnalyticsMentionEvent: (createEvent: CreateUIAnalyticsEvent) => (actionSubject: string, action: string, text: string, id: string, accessLevel?: string | undefined) => UIAnalyticsEvent;
|
|
27
25
|
export declare const fireSliAnalyticsEvent: (props: WithAnalyticsEventsProps) => (actionSubject: string, action: string) => void;
|
|
28
26
|
export declare const buildSliPayload: (actionSubject: string, action: string, attributes?: {
|
|
@@ -15,10 +15,6 @@ export declare const DefaultHeadline: Formatter;
|
|
|
15
15
|
export declare const DefaultAdvisedAction: Formatter;
|
|
16
16
|
export declare const LoginAgain: Formatter;
|
|
17
17
|
export declare const DifferentText: Formatter;
|
|
18
|
-
export declare const TeamMentionHighlightTitle: Formatter;
|
|
19
|
-
export declare const TeamMentionHighlightCloseTooltip: Formatter;
|
|
20
|
-
export declare const TeamMentionHighlightDescription: Formatter;
|
|
21
|
-
export declare const TeamMentionHighlightDescriptionLink: Formatter;
|
|
22
18
|
/**
|
|
23
19
|
* Tries to get the most specific messages bundle for a given locale.
|
|
24
20
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/mention",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "22.0.0",
|
|
4
4
|
"description": "A React component used to display user profiles in a list for 'Mention' functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -28,14 +28,13 @@
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@atlaskit/analytics-gas-types": "^5.0.0",
|
|
30
30
|
"@atlaskit/analytics-next": "^9.0.0",
|
|
31
|
-
"@atlaskit/avatar": "^21.
|
|
32
|
-
"@atlaskit/button": "^16.5.0",
|
|
31
|
+
"@atlaskit/avatar": "^21.2.0",
|
|
33
32
|
"@atlaskit/focus-ring": "^1.2.0",
|
|
34
33
|
"@atlaskit/icon": "^21.11.0",
|
|
35
34
|
"@atlaskit/lozenge": "^11.3.0",
|
|
36
|
-
"@atlaskit/theme": "^12.
|
|
35
|
+
"@atlaskit/theme": "^12.3.0",
|
|
37
36
|
"@atlaskit/tokens": "^1.2.0",
|
|
38
|
-
"@atlaskit/tooltip": "^17.
|
|
37
|
+
"@atlaskit/tooltip": "^17.7.0",
|
|
39
38
|
"@atlaskit/ufo": "^0.1.0",
|
|
40
39
|
"@atlaskit/util-service-support": "^6.1.0",
|
|
41
40
|
"@babel/runtime": "^7.0.0",
|
|
@@ -52,12 +51,12 @@
|
|
|
52
51
|
"devDependencies": {
|
|
53
52
|
"@atlaskit/adf-utils": "^18.0.0",
|
|
54
53
|
"@atlaskit/docs": "^9.0.0",
|
|
55
|
-
"@atlaskit/editor-core": "^
|
|
56
|
-
"@atlaskit/editor-test-helpers": "^18.
|
|
54
|
+
"@atlaskit/editor-core": "^181.0.0",
|
|
55
|
+
"@atlaskit/editor-test-helpers": "^18.1.0",
|
|
57
56
|
"@atlaskit/elements-test-helpers": "^0.7.0",
|
|
58
57
|
"@atlaskit/section-message": "^6.3.0",
|
|
59
58
|
"@atlaskit/ssr": "*",
|
|
60
|
-
"@atlaskit/util-data-test": "^17.
|
|
59
|
+
"@atlaskit/util-data-test": "^17.7.0",
|
|
61
60
|
"@atlaskit/visual-regression": "*",
|
|
62
61
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
63
62
|
"@types/query-string": "^4.3.1",
|
package/report.api.md
CHANGED
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
```ts
|
|
18
18
|
import { IntlShape } from 'react-intl-next';
|
|
19
19
|
import { default as React_2 } from 'react';
|
|
20
|
-
import { RefObject } from 'react';
|
|
21
20
|
import { ServiceConfig } from '@atlaskit/util-service-support/types';
|
|
22
21
|
import { SyntheticEvent } from 'react';
|
|
23
22
|
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
@@ -628,17 +627,6 @@ type OwnProps = {
|
|
|
628
627
|
onHover?: () => void;
|
|
629
628
|
};
|
|
630
629
|
|
|
631
|
-
// @public (undocumented)
|
|
632
|
-
interface OwnProps_2 {
|
|
633
|
-
// (undocumented)
|
|
634
|
-
createTeamLink?: string;
|
|
635
|
-
onClose: () => void;
|
|
636
|
-
// (undocumented)
|
|
637
|
-
onCreateTeamLinkClick?: () => void;
|
|
638
|
-
// (undocumented)
|
|
639
|
-
onViewed?: () => void;
|
|
640
|
-
}
|
|
641
|
-
|
|
642
630
|
// @public (undocumented)
|
|
643
631
|
type Position = 'above' | 'auto' | 'below';
|
|
644
632
|
|
|
@@ -757,10 +745,6 @@ interface Props_2 {
|
|
|
757
745
|
|
|
758
746
|
// @public (undocumented)
|
|
759
747
|
interface Props_3 {
|
|
760
|
-
// (undocumented)
|
|
761
|
-
createTeamPath?: string;
|
|
762
|
-
// (undocumented)
|
|
763
|
-
isTeamMentionHighlightEnabled?: boolean;
|
|
764
748
|
// (undocumented)
|
|
765
749
|
onSelection?: OnMentionEvent;
|
|
766
750
|
// (undocumented)
|
|
@@ -775,8 +759,6 @@ interface Props_3 {
|
|
|
775
759
|
|
|
776
760
|
// @public (undocumented)
|
|
777
761
|
interface Props_4 {
|
|
778
|
-
// (undocumented)
|
|
779
|
-
createTeamPath?: string;
|
|
780
762
|
// (undocumented)
|
|
781
763
|
offsetX?: number;
|
|
782
764
|
// (undocumented)
|
|
@@ -796,8 +778,6 @@ interface Props_4 {
|
|
|
796
778
|
// (undocumented)
|
|
797
779
|
resourceProvider: MentionProvider;
|
|
798
780
|
// (undocumented)
|
|
799
|
-
showTeamMentionsHighlight?: boolean;
|
|
800
|
-
// (undocumented)
|
|
801
781
|
target?: string;
|
|
802
782
|
// (undocumented)
|
|
803
783
|
zIndex?: number | string;
|
|
@@ -824,9 +804,6 @@ interface Props_6 {
|
|
|
824
804
|
text: string;
|
|
825
805
|
}
|
|
826
806
|
|
|
827
|
-
// @public (undocumented)
|
|
828
|
-
type Props_7 = OwnProps_2 & WithAnalyticsEventsProps_2;
|
|
829
|
-
|
|
830
807
|
// @public
|
|
831
808
|
export interface ResolvingMentionProvider extends MentionProvider {
|
|
832
809
|
// (undocumented)
|
|
@@ -942,12 +919,6 @@ interface State_4 {
|
|
|
942
919
|
resolvedMentionName?: string;
|
|
943
920
|
}
|
|
944
921
|
|
|
945
|
-
// @public (undocumented)
|
|
946
|
-
interface State_5 {
|
|
947
|
-
// (undocumented)
|
|
948
|
-
isHighlightHidden: boolean;
|
|
949
|
-
}
|
|
950
|
-
|
|
951
922
|
// @public (undocumented)
|
|
952
923
|
export interface TeamMember {
|
|
953
924
|
// (undocumented)
|
|
@@ -956,82 +927,10 @@ export interface TeamMember {
|
|
|
956
927
|
name: string;
|
|
957
928
|
}
|
|
958
929
|
|
|
959
|
-
// @public (undocumented)
|
|
960
|
-
export const TeamMentionHighlight: React_2.ForwardRefExoticComponent<
|
|
961
|
-
Pick<
|
|
962
|
-
Omit<Props_7, keyof WithAnalyticsEventsProps_2>,
|
|
963
|
-
'onClose' | 'onCreateTeamLinkClick' | 'onViewed'
|
|
964
|
-
> &
|
|
965
|
-
Partial<
|
|
966
|
-
Pick<Omit<Props_7, keyof WithAnalyticsEventsProps_2>, 'createTeamLink'>
|
|
967
|
-
> &
|
|
968
|
-
Partial<
|
|
969
|
-
Pick<
|
|
970
|
-
{
|
|
971
|
-
createTeamLink: string;
|
|
972
|
-
},
|
|
973
|
-
never
|
|
974
|
-
>
|
|
975
|
-
> &
|
|
976
|
-
React_2.RefAttributes<any>
|
|
977
|
-
>;
|
|
978
|
-
|
|
979
|
-
// @public (undocumented)
|
|
980
|
-
export type TeamMentionHighlight = TeamMentionHighlightInternal;
|
|
981
|
-
|
|
982
|
-
// @public (undocumented)
|
|
983
|
-
export class TeamMentionHighlightController {
|
|
984
|
-
// (undocumented)
|
|
985
|
-
static getSeenCount: () => number;
|
|
986
|
-
// (undocumented)
|
|
987
|
-
static isHighlightEnabled: () => boolean;
|
|
988
|
-
// (undocumented)
|
|
989
|
-
static registerClosed: () => void;
|
|
990
|
-
// (undocumented)
|
|
991
|
-
static registerCreateLinkClick: () => void;
|
|
992
|
-
// (undocumented)
|
|
993
|
-
static registerRender: () => TeamMentionState;
|
|
994
|
-
// (undocumented)
|
|
995
|
-
static registerTeamMention: () => void;
|
|
996
|
-
}
|
|
997
|
-
|
|
998
|
-
// @public (undocumented)
|
|
999
|
-
class TeamMentionHighlightInternal extends React_2.Component<Props_7, State_5> {
|
|
1000
|
-
constructor(props: Props_7);
|
|
1001
|
-
// (undocumented)
|
|
1002
|
-
componentDidMount(): void;
|
|
1003
|
-
// (undocumented)
|
|
1004
|
-
componentWillUnmount(): void;
|
|
1005
|
-
// (undocumented)
|
|
1006
|
-
static defaultProps: {
|
|
1007
|
-
createTeamLink: string;
|
|
1008
|
-
};
|
|
1009
|
-
// (undocumented)
|
|
1010
|
-
elCloseWrapper: RefObject<HTMLDivElement>;
|
|
1011
|
-
// (undocumented)
|
|
1012
|
-
elCreateTeamWrapper: RefObject<HTMLDivElement>;
|
|
1013
|
-
// (undocumented)
|
|
1014
|
-
elWrapper: RefObject<HTMLDivElement>;
|
|
1015
|
-
// (undocumented)
|
|
1016
|
-
onCloseClick: () => void;
|
|
1017
|
-
// (undocumented)
|
|
1018
|
-
onCreateTeamLinkClick: () => void;
|
|
1019
|
-
// (undocumented)
|
|
1020
|
-
render(): JSX.Element | null;
|
|
1021
|
-
}
|
|
1022
|
-
|
|
1023
|
-
// @public (undocumented)
|
|
1024
|
-
interface TeamMentionProvider extends MentionProvider {
|
|
1025
|
-
// (undocumented)
|
|
1026
|
-
mentionTypeaheadCreateTeamPath: () => string | undefined;
|
|
1027
|
-
// (undocumented)
|
|
1028
|
-
mentionTypeaheadHighlightEnabled: () => boolean;
|
|
1029
|
-
}
|
|
1030
|
-
|
|
1031
930
|
// @public
|
|
1032
931
|
export class TeamMentionResource
|
|
1033
932
|
extends MentionResource
|
|
1034
|
-
implements
|
|
933
|
+
implements MentionProvider
|
|
1035
934
|
{
|
|
1036
935
|
constructor(
|
|
1037
936
|
userMentionConfig: MentionResourceConfig,
|
|
@@ -1043,10 +942,6 @@ export class TeamMentionResource
|
|
|
1043
942
|
contextIdentifier?: MentionContextIdentifier,
|
|
1044
943
|
): Promise<void>;
|
|
1045
944
|
// (undocumented)
|
|
1046
|
-
mentionTypeaheadCreateTeamPath: () => string | undefined;
|
|
1047
|
-
// (undocumented)
|
|
1048
|
-
mentionTypeaheadHighlightEnabled: () => boolean;
|
|
1049
|
-
// (undocumented)
|
|
1050
945
|
notify(
|
|
1051
946
|
searchTime: number,
|
|
1052
947
|
mentionResult: MentionsResult,
|
|
@@ -1056,22 +951,10 @@ export class TeamMentionResource
|
|
|
1056
951
|
|
|
1057
952
|
// @public (undocumented)
|
|
1058
953
|
export interface TeamMentionResourceConfig extends MentionResourceConfig {
|
|
1059
|
-
// (undocumented)
|
|
1060
|
-
createTeamPath?: string;
|
|
1061
|
-
// (undocumented)
|
|
1062
|
-
teamHighlightEnabled?: boolean;
|
|
1063
954
|
// (undocumented)
|
|
1064
955
|
teamLinkResolver?: (teamId: string) => string;
|
|
1065
956
|
}
|
|
1066
957
|
|
|
1067
|
-
// @public (undocumented)
|
|
1068
|
-
interface TeamMentionState {
|
|
1069
|
-
// (undocumented)
|
|
1070
|
-
dontShow: boolean;
|
|
1071
|
-
// (undocumented)
|
|
1072
|
-
seenCount: number;
|
|
1073
|
-
}
|
|
1074
|
-
|
|
1075
958
|
// @public (undocumented)
|
|
1076
959
|
export enum UserAccessLevel {
|
|
1077
960
|
// (undocumented)
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.mentionHighlightLocalStorageKey = exports.default = void 0;
|
|
8
|
-
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
9
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
|
-
var mentionHighlightLocalStorageKey = 'atlassian.people.context.team.mention.highlight';
|
|
12
|
-
exports.mentionHighlightLocalStorageKey = mentionHighlightLocalStorageKey;
|
|
13
|
-
var EMPTY = {
|
|
14
|
-
seenCount: 0,
|
|
15
|
-
dontShow: false
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
// Don't show if the user can't access local storage
|
|
19
|
-
var DISABLED_LOCAL_STORAGE = {
|
|
20
|
-
seenCount: 99,
|
|
21
|
-
dontShow: true
|
|
22
|
-
};
|
|
23
|
-
var MAX_SEEN_LIMIT = 5;
|
|
24
|
-
var TeamMentionHighlightController = /*#__PURE__*/function () {
|
|
25
|
-
function TeamMentionHighlightController() {
|
|
26
|
-
(0, _classCallCheck2.default)(this, TeamMentionHighlightController);
|
|
27
|
-
}
|
|
28
|
-
(0, _createClass2.default)(TeamMentionHighlightController, null, [{
|
|
29
|
-
key: "readFromLocalStorage",
|
|
30
|
-
value:
|
|
31
|
-
// Note - not a simple look up to avoid showing it to users that have local storage disabled
|
|
32
|
-
function readFromLocalStorage() {
|
|
33
|
-
try {
|
|
34
|
-
var localVal = localStorage.getItem(mentionHighlightLocalStorageKey);
|
|
35
|
-
if (!localVal) {
|
|
36
|
-
// Attempt to write to see if the user has local storage access
|
|
37
|
-
localStorage.setItem(mentionHighlightLocalStorageKey, JSON.stringify(EMPTY));
|
|
38
|
-
localVal = localStorage.getItem(mentionHighlightLocalStorageKey);
|
|
39
|
-
}
|
|
40
|
-
if (localVal) {
|
|
41
|
-
return JSON.parse(localVal);
|
|
42
|
-
} else {
|
|
43
|
-
return DISABLED_LOCAL_STORAGE;
|
|
44
|
-
}
|
|
45
|
-
} catch (err) {
|
|
46
|
-
return DISABLED_LOCAL_STORAGE;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}, {
|
|
50
|
-
key: "saveToLocalStorage",
|
|
51
|
-
value: function saveToLocalStorage(item) {
|
|
52
|
-
try {
|
|
53
|
-
localStorage.setItem(mentionHighlightLocalStorageKey, JSON.stringify(item));
|
|
54
|
-
} catch (err) {
|
|
55
|
-
// do nothing
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}]);
|
|
59
|
-
return TeamMentionHighlightController;
|
|
60
|
-
}();
|
|
61
|
-
exports.default = TeamMentionHighlightController;
|
|
62
|
-
(0, _defineProperty2.default)(TeamMentionHighlightController, "markAsDone", function () {
|
|
63
|
-
var item = TeamMentionHighlightController.readFromLocalStorage();
|
|
64
|
-
item.dontShow = true;
|
|
65
|
-
TeamMentionHighlightController.saveToLocalStorage(item);
|
|
66
|
-
});
|
|
67
|
-
(0, _defineProperty2.default)(TeamMentionHighlightController, "isHighlightEnabled", function () {
|
|
68
|
-
var item = TeamMentionHighlightController.readFromLocalStorage();
|
|
69
|
-
return item.seenCount < MAX_SEEN_LIMIT && !item.dontShow;
|
|
70
|
-
});
|
|
71
|
-
(0, _defineProperty2.default)(TeamMentionHighlightController, "registerRender", function () {
|
|
72
|
-
var item = TeamMentionHighlightController.readFromLocalStorage();
|
|
73
|
-
item.seenCount += 1;
|
|
74
|
-
if (item.seenCount > MAX_SEEN_LIMIT) {
|
|
75
|
-
item.dontShow = true;
|
|
76
|
-
}
|
|
77
|
-
TeamMentionHighlightController.saveToLocalStorage(item);
|
|
78
|
-
return item;
|
|
79
|
-
});
|
|
80
|
-
(0, _defineProperty2.default)(TeamMentionHighlightController, "getSeenCount", function () {
|
|
81
|
-
return TeamMentionHighlightController.readFromLocalStorage().seenCount;
|
|
82
|
-
});
|
|
83
|
-
(0, _defineProperty2.default)(TeamMentionHighlightController, "registerCreateLinkClick", TeamMentionHighlightController.markAsDone);
|
|
84
|
-
(0, _defineProperty2.default)(TeamMentionHighlightController, "registerTeamMention", TeamMentionHighlightController.markAsDone);
|
|
85
|
-
(0, _defineProperty2.default)(TeamMentionHighlightController, "registerClosed", TeamMentionHighlightController.markAsDone);
|