@atlaskit/mention 21.0.9 → 21.0.10

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 (95) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/cjs/version.json +1 -1
  3. package/dist/es2019/version.json +1 -1
  4. package/dist/esm/version.json +1 -1
  5. package/package.json +3 -11
  6. package/report.api.md +10 -6
  7. package/dist/types-ts4.0/_constants.d.ts +0 -1
  8. package/dist/types-ts4.0/api/ContextMentionResource.d.ts +0 -23
  9. package/dist/types-ts4.0/api/MentionNameClient.d.ts +0 -11
  10. package/dist/types-ts4.0/api/MentionNameResolver.d.ts +0 -23
  11. package/dist/types-ts4.0/api/MentionResource.d.ts +0 -99
  12. package/dist/types-ts4.0/api/PresenceResource.d.ts +0 -119
  13. package/dist/types-ts4.0/api/TeamMentionResource.d.ts +0 -35
  14. package/dist/types-ts4.0/api/analytics.d.ts +0 -17
  15. package/dist/types-ts4.0/components/LockCircleIcon/index.d.ts +0 -3
  16. package/dist/types-ts4.0/components/Mention/PrimitiveMention.d.ts +0 -7
  17. package/dist/types-ts4.0/components/Mention/ResourcedMention.d.ts +0 -27
  18. package/dist/types-ts4.0/components/Mention/index.d.ts +0 -31
  19. package/dist/types-ts4.0/components/Mention/ufoExperiences.d.ts +0 -9
  20. package/dist/types-ts4.0/components/MentionDescriptionByline/TeamMentionDescriptionByline.d.ts +0 -7
  21. package/dist/types-ts4.0/components/MentionDescriptionByline/UserMentionDescriptionByline.d.ts +0 -5
  22. package/dist/types-ts4.0/components/MentionDescriptionByline/index.d.ts +0 -5
  23. package/dist/types-ts4.0/components/MentionDescriptionByline/styles.d.ts +0 -5
  24. package/dist/types-ts4.0/components/MentionDescriptionByline/types.d.ts +0 -4
  25. package/dist/types-ts4.0/components/MentionItem/MentionHighlightHelpers.d.ts +0 -3
  26. package/dist/types-ts4.0/components/MentionItem/index.d.ts +0 -16
  27. package/dist/types-ts4.0/components/MentionItem/styles.d.ts +0 -46
  28. package/dist/types-ts4.0/components/MentionList/index.d.ts +0 -41
  29. package/dist/types-ts4.0/components/MentionList/styles.d.ts +0 -8
  30. package/dist/types-ts4.0/components/MentionListError/GenericErrorIllustration.d.ts +0 -7
  31. package/dist/types-ts4.0/components/MentionListError/index.d.ts +0 -13
  32. package/dist/types-ts4.0/components/MentionListError/styles.d.ts +0 -17
  33. package/dist/types-ts4.0/components/MentionPicker/index.d.ts +0 -79
  34. package/dist/types-ts4.0/components/MentionPicker/styles.d.ts +0 -12
  35. package/dist/types-ts4.0/components/MessagesIntlProvider/index.d.ts +0 -3
  36. package/dist/types-ts4.0/components/NoAccessTooltip/index.d.ts +0 -6
  37. package/dist/types-ts4.0/components/NoAccessTooltip/main.d.ts +0 -7
  38. package/dist/types-ts4.0/components/Popup/index.d.ts +0 -26
  39. package/dist/types-ts4.0/components/ResourcedMentionList/index.d.ts +0 -50
  40. package/dist/types-ts4.0/components/Scrollable/index.d.ts +0 -11
  41. package/dist/types-ts4.0/components/Scrollable/styles.d.ts +0 -5
  42. package/dist/types-ts4.0/components/TeamMentionHighlight/TeamMentionHighlightController.d.ts +0 -17
  43. package/dist/types-ts4.0/components/TeamMentionHighlight/index.d.ts +0 -35
  44. package/dist/types-ts4.0/components/TeamMentionHighlight/lazy.d.ts +0 -4
  45. package/dist/types-ts4.0/components/TeamMentionHighlight/styles.d.ts +0 -33
  46. package/dist/types-ts4.0/components/i18n.d.ts +0 -77
  47. package/dist/types-ts4.0/config/index.d.ts +0 -5
  48. package/dist/types-ts4.0/element.d.ts +0 -3
  49. package/dist/types-ts4.0/i18n/cs.d.ts +0 -24
  50. package/dist/types-ts4.0/i18n/da.d.ts +0 -24
  51. package/dist/types-ts4.0/i18n/de.d.ts +0 -24
  52. package/dist/types-ts4.0/i18n/en.d.ts +0 -24
  53. package/dist/types-ts4.0/i18n/en_GB.d.ts +0 -24
  54. package/dist/types-ts4.0/i18n/en_ZZ.d.ts +0 -24
  55. package/dist/types-ts4.0/i18n/es.d.ts +0 -24
  56. package/dist/types-ts4.0/i18n/et.d.ts +0 -20
  57. package/dist/types-ts4.0/i18n/fi.d.ts +0 -24
  58. package/dist/types-ts4.0/i18n/fr.d.ts +0 -24
  59. package/dist/types-ts4.0/i18n/hu.d.ts +0 -24
  60. package/dist/types-ts4.0/i18n/index.d.ts +0 -35
  61. package/dist/types-ts4.0/i18n/is.d.ts +0 -24
  62. package/dist/types-ts4.0/i18n/it.d.ts +0 -24
  63. package/dist/types-ts4.0/i18n/ja.d.ts +0 -24
  64. package/dist/types-ts4.0/i18n/ko.d.ts +0 -24
  65. package/dist/types-ts4.0/i18n/languages.d.ts +0 -33
  66. package/dist/types-ts4.0/i18n/nb.d.ts +0 -24
  67. package/dist/types-ts4.0/i18n/nl.d.ts +0 -24
  68. package/dist/types-ts4.0/i18n/pl.d.ts +0 -24
  69. package/dist/types-ts4.0/i18n/pt_BR.d.ts +0 -24
  70. package/dist/types-ts4.0/i18n/pt_PT.d.ts +0 -20
  71. package/dist/types-ts4.0/i18n/ro.d.ts +0 -24
  72. package/dist/types-ts4.0/i18n/ru.d.ts +0 -24
  73. package/dist/types-ts4.0/i18n/sk.d.ts +0 -20
  74. package/dist/types-ts4.0/i18n/sv.d.ts +0 -24
  75. package/dist/types-ts4.0/i18n/th.d.ts +0 -24
  76. package/dist/types-ts4.0/i18n/tr.d.ts +0 -24
  77. package/dist/types-ts4.0/i18n/uk.d.ts +0 -24
  78. package/dist/types-ts4.0/i18n/vi.d.ts +0 -24
  79. package/dist/types-ts4.0/i18n/zh.d.ts +0 -24
  80. package/dist/types-ts4.0/i18n/zh_TW.d.ts +0 -24
  81. package/dist/types-ts4.0/i18n.d.ts +0 -1
  82. package/dist/types-ts4.0/index.d.ts +0 -19
  83. package/dist/types-ts4.0/item.d.ts +0 -2
  84. package/dist/types-ts4.0/resource.d.ts +0 -10
  85. package/dist/types-ts4.0/shared-styles.d.ts +0 -5
  86. package/dist/types-ts4.0/spotlight.d.ts +0 -3
  87. package/dist/types-ts4.0/team-resource.d.ts +0 -8
  88. package/dist/types-ts4.0/typeahead.d.ts +0 -3
  89. package/dist/types-ts4.0/types.d.ts +0 -168
  90. package/dist/types-ts4.0/util/analytics.d.ts +0 -32
  91. package/dist/types-ts4.0/util/i18n.d.ts +0 -33
  92. package/dist/types-ts4.0/util/id.d.ts +0 -2
  93. package/dist/types-ts4.0/util/index.d.ts +0 -1
  94. package/dist/types-ts4.0/util/logger.d.ts +0 -4
  95. package/dist/types-ts4.0/util/mouse.d.ts +0 -8
@@ -1,24 +0,0 @@
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
- /**
19
- * NOTE:
20
- *
21
- * This file is automatically generated by Traduki 2.0.
22
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
23
- */
24
- export default _default;
@@ -1,24 +0,0 @@
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
- /**
19
- * NOTE:
20
- *
21
- * This file is automatically generated by Traduki 2.0.
22
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
23
- */
24
- export default _default;
@@ -1,24 +0,0 @@
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
- /**
19
- * NOTE:
20
- *
21
- * This file is automatically generated by Traduki 2.0.
22
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
23
- */
24
- export default _default;
@@ -1 +0,0 @@
1
- export * from './i18n';
@@ -1,19 +0,0 @@
1
- import MentionResource, { AbstractMentionResource, MentionContextIdentifier, MentionProvider, ResolvingMentionProvider, MentionStats, MentionResourceConfig, TeamMentionResourceConfig, isResolvingMentionProvider } from './api/MentionResource';
2
- import TeamMentionResource from './api/TeamMentionResource';
3
- import PresenceResource, { PresenceProvider, AbstractPresenceResource } from './api/PresenceResource';
4
- import { DefaultMentionNameResolver, MentionNameResolver } from './api/MentionNameResolver';
5
- import { MentionNameClient } from './api/MentionNameClient';
6
- import MentionItem from './components/MentionItem';
7
- import MentionList from './components/MentionList';
8
- import ResourcedMentionList from './components/ResourcedMentionList';
9
- import { MentionPickerWithAnalytics as MentionPicker } from './components/MentionPicker';
10
- import Mention from './components/Mention';
11
- import ResourcedMention from './components/Mention/ResourcedMention';
12
- import TeamMentionHighlight from './components/TeamMentionHighlight';
13
- import TeamMentionHighlightController from './components/TeamMentionHighlight/TeamMentionHighlightController';
14
- import { MentionDescription, MentionsResult, MentionNameStatus, MentionNameDetails, InviteExperimentCohort, InviteFlow, isSpecialMention, TeamMember, UserAccessLevel, UserRole, UserType } from './types';
15
- import { ELEMENTS_CHANNEL } from './_constants';
16
- import ContextMentionResource from './api/ContextMentionResource';
17
- export { ContextMentionResource, MentionResource, TeamMentionResource, PresenceResource, DefaultMentionNameResolver, AbstractMentionResource, AbstractPresenceResource, MentionNameStatus, MentionItem, MentionList, ResourcedMentionList, MentionPicker, Mention, ResourcedMention, TeamMentionHighlight, TeamMentionHighlightController, UserAccessLevel, UserType, isSpecialMention, isResolvingMentionProvider, ELEMENTS_CHANNEL, };
18
- export type { ResolvingMentionProvider, MentionProvider, PresenceProvider, MentionDescription, MentionsResult, MentionNameResolver, MentionNameClient, MentionNameDetails, MentionContextIdentifier, MentionStats, TeamMember, MentionResourceConfig, TeamMentionResourceConfig, InviteExperimentCohort, InviteFlow, UserRole, };
19
- export default MentionPicker;
@@ -1,2 +0,0 @@
1
- import MentionItem, { MENTION_ITEM_HEIGHT } from './components/MentionItem';
2
- export { MentionItem, MENTION_ITEM_HEIGHT, };
@@ -1,10 +0,0 @@
1
- import MentionResource, { AbstractMentionResource, ResolvingMentionProvider, MentionContextIdentifier, MentionProvider, MentionStats, MentionResourceConfig, isResolvingMentionProvider, TeamMentionProvider } from './api/MentionResource';
2
- import PresenceResource, { PresenceProvider, AbstractPresenceResource } from './api/PresenceResource';
3
- import { DefaultMentionNameResolver, MentionNameResolver } from './api/MentionNameResolver';
4
- import { MentionNameClient } from './api/MentionNameClient';
5
- import { MentionDescription, MentionsResult, isSpecialMention, MentionNameStatus, MentionNameDetails } from './types';
6
- import { ELEMENTS_CHANNEL } from './_constants';
7
- import ContextMentionResource from './api/ContextMentionResource';
8
- import { SLI_EVENT_TYPE, SMART_EVENT_TYPE, buildSliPayload } from './util/analytics';
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, TeamMentionProvider, MentionContextIdentifier, MentionStats, MentionResourceConfig, MentionNameDetails, };
@@ -1,5 +0,0 @@
1
- export declare const noDialogContainerBorderColor: "var(--ds-border)";
2
- export declare const noDialogContainerBorderRadius: string;
3
- export declare const noDialogContainerBoxShadow: "var(--ds-shadow-overlay)";
4
- export declare const scrollableMaxHeight = "264px";
5
- export declare const mentionListWidth = "340px";
@@ -1,3 +0,0 @@
1
- import TeamMentionHighlight from './components/TeamMentionHighlight';
2
- import TeamMentionHighlightController from './components/TeamMentionHighlight/TeamMentionHighlightController';
3
- export { TeamMentionHighlight, TeamMentionHighlightController, };
@@ -1,8 +0,0 @@
1
- import MentionResource, { AbstractMentionResource, MentionContextIdentifier, MentionProvider, MentionStats, MentionResourceConfig } from './api/MentionResource';
2
- import TeamMentionResource from './api/TeamMentionResource';
3
- import PresenceResource, { PresenceProvider, AbstractPresenceResource } from './api/PresenceResource';
4
- import { MentionDescription, MentionsResult, isSpecialMention, TeamMember } from './types';
5
- import { ELEMENTS_CHANNEL } from './_constants';
6
- import ContextMentionResource from './api/ContextMentionResource';
7
- export { ContextMentionResource, MentionResource, TeamMentionResource, PresenceResource, AbstractMentionResource, AbstractPresenceResource, isSpecialMention, ELEMENTS_CHANNEL, };
8
- export type { MentionProvider, PresenceProvider, MentionDescription, MentionsResult, MentionContextIdentifier, MentionStats, TeamMember, MentionResourceConfig, };
@@ -1,3 +0,0 @@
1
- import { MentionPickerWithAnalytics as MentionPicker } from './components/MentionPicker';
2
- export { MentionPicker as MentionTypeAhead, };
3
- export default MentionPicker;
@@ -1,168 +0,0 @@
1
- import { SyntheticEvent } from 'react';
2
- import { ServiceConfig } from '@atlaskit/util-service-support/types';
3
- export interface MentionNameResolver {
4
- lookupName(id: string): Promise<MentionNameDetails> | MentionNameDetails;
5
- cacheName(id: string, name: string): void;
6
- }
7
- export declare type MentionStats = {
8
- [key: string]: any;
9
- };
10
- export interface ResultCallback<T> {
11
- (result: T, query?: string, stats?: MentionStats): void;
12
- }
13
- export interface ErrorCallback {
14
- (error: Error, query?: string): void;
15
- }
16
- export interface InfoCallback {
17
- (info: string): void;
18
- }
19
- export interface AnalyticsCallback {
20
- (event: string, actionSubject: string, action: string, attributes?: {
21
- [key: string]: any;
22
- }): void;
23
- }
24
- export interface MentionResourceConfig extends ServiceConfig {
25
- containerId?: string;
26
- productId?: string;
27
- shouldHighlightMention?: (mention: MentionDescription) => boolean;
28
- inviteExperimentCohort?: InviteExperimentCohort;
29
- mentionNameResolver?: MentionNameResolver;
30
- shouldEnableInvite?: boolean;
31
- onInviteItemClick?: (flow: InviteFlow) => void;
32
- userRole?: UserRole;
33
- productName?: string;
34
- debounceTime?: number;
35
- }
36
- export interface ResourceProvider<Result> {
37
- /**
38
- * Subscribe to ResourceProvider results
39
- *
40
- * @param {string} key subscriber key used to unsubscribe
41
- * @param {ResultCallback<Result>} callback This callback only receives latest results
42
- * @param {ErrorCallback} errCallback This callback will errors
43
- * @param {InfoCallback} infoCallback This callback will info
44
- * @param {ResultCallback<Result>} allResultsCallback This callback will receive all results
45
- */
46
- subscribe(key: string, callback?: ResultCallback<Result>, errCallback?: ErrorCallback, infoCallback?: InfoCallback, allResultsCallback?: ResultCallback<Result>, analyticsCallback?: AnalyticsCallback): void;
47
- /**
48
- * Unsubscribe to this resource provider results
49
- * @param {string} key key used when subscribing
50
- */
51
- unsubscribe(key: string): void;
52
- }
53
- export declare type MentionContextIdentifier = {
54
- containerId?: string;
55
- objectId?: string;
56
- childObjectId?: string;
57
- sessionId?: string;
58
- };
59
- export interface MentionProvider extends ResourceProvider<MentionDescription[]>, InviteFromMentionProvider {
60
- filter(query?: string, contextIdentifier?: MentionContextIdentifier): void;
61
- recordMentionSelection(mention: MentionDescription, contextIdentifier?: MentionContextIdentifier): void;
62
- shouldHighlightMention(mention: MentionDescription): boolean;
63
- isFiltering(query: string): boolean;
64
- }
65
- export interface HighlightDetail {
66
- start: number;
67
- end: number;
68
- }
69
- export interface Highlight {
70
- name: HighlightDetail[];
71
- mentionName: HighlightDetail[];
72
- nickname: HighlightDetail[];
73
- }
74
- export interface Presence {
75
- time?: string;
76
- status?: string;
77
- }
78
- export declare type LozengeColor = 'default' | 'success' | 'removed' | 'inprogress' | 'new' | 'moved';
79
- export interface LozengeProps {
80
- text: React.ReactNode;
81
- appearance?: LozengeColor;
82
- }
83
- export interface MentionDescription {
84
- id: string;
85
- avatarUrl?: string;
86
- name?: string;
87
- mentionName?: string;
88
- nickname?: string;
89
- highlight?: Highlight;
90
- lozenge?: string | LozengeProps;
91
- presence?: Presence;
92
- accessLevel?: string;
93
- inContext?: boolean;
94
- userType?: string;
95
- context?: MentionDescContext;
96
- source?: string;
97
- }
98
- export interface MentionDescContext {
99
- members: TeamMember[];
100
- includesYou: boolean;
101
- memberCount: number;
102
- teamLink: string;
103
- }
104
- export interface MentionsResult {
105
- mentions: MentionDescription[];
106
- query: string;
107
- }
108
- export interface TeamMember {
109
- id: string;
110
- name: string;
111
- }
112
- export interface Team {
113
- id: string;
114
- smallAvatarImageUrl: string;
115
- displayName: string;
116
- members: TeamMember[];
117
- includesYou: boolean;
118
- memberCount: number;
119
- highlight?: Highlight;
120
- }
121
- export declare type MentionEventHandler = (mentionId: string, text: string, event?: SyntheticEvent<HTMLSpanElement>) => void;
122
- export interface OnMentionEvent {
123
- (mention: MentionDescription, event?: SyntheticEvent<any>): void;
124
- }
125
- export declare enum MentionType {
126
- SELF = 0,
127
- RESTRICTED = 1,
128
- DEFAULT = 2
129
- }
130
- export declare enum UserAccessLevel {
131
- NONE = 0,
132
- SITE = 1,
133
- APPLICATION = 2,
134
- CONTAINER = 3
135
- }
136
- export declare enum UserType {
137
- DEFAULT = 0,
138
- SPECIAL = 1,
139
- APP = 2,
140
- TEAM = 3,
141
- SYSTEM = 4
142
- }
143
- export declare enum MentionNameStatus {
144
- UNKNOWN = 0,
145
- SERVICE_ERROR = 1,
146
- OK = 2
147
- }
148
- export interface MentionNameDetails {
149
- id: string;
150
- name?: string;
151
- status: MentionNameStatus;
152
- }
153
- export declare function isRestricted(accessLevel?: string): boolean;
154
- export declare function isSpecialMention(mention: MentionDescription): boolean;
155
- export declare function isAppMention(mention: MentionDescription): boolean | "" | undefined;
156
- export declare function isTeamMention(mention: MentionDescription): boolean | "" | undefined;
157
- export declare function isSpecialMentionText(mentionText: string): boolean | "";
158
- export declare const isPromise: <T>(p: any) => p is Promise<T>;
159
- export declare type InviteFlow = 'mention' | 'assign';
160
- export declare type UserRole = 'admin' | 'trusted' | 'basic';
161
- export declare type InviteExperimentCohort = 'variation' | 'control' | 'not-enrolled';
162
- export interface InviteFromMentionProvider {
163
- productName?: string;
164
- shouldEnableInvite?: boolean;
165
- inviteExperimentCohort?: InviteExperimentCohort;
166
- onInviteItemClick?(flow: InviteFlow): void;
167
- userRole?: UserRole;
168
- }
@@ -1,32 +0,0 @@
1
- import { UIAnalyticsEvent, WithAnalyticsEventsProps, CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
2
- import { GasPayload } from '@atlaskit/analytics-gas-types';
3
- export declare const SLI_EVENT_TYPE = "sli";
4
- export declare const SMART_EVENT_TYPE = "smart";
5
- export declare enum SliNames {
6
- SEARCH = "searchUser",
7
- SEARCH_TEAM = "searchTeam",
8
- INITIAL_STATE = "initialState",
9
- SELECT = "select",
10
- SELECT_TEAM = "selectTeam"
11
- }
12
- export declare enum ComponentNames {
13
- TYPEAHEAD = "mentionTypeahead",
14
- MENTION = "mention",
15
- TEAM_MENTION_HIGHLIGHT = "teamMentionHighlight"
16
- }
17
- export declare enum Actions {
18
- VIEWED = "viewed",
19
- CLICKED = "clicked",
20
- CLOSED = "closed",
21
- SUCCEEDED = "succeeded",
22
- FAILED = "failed"
23
- }
24
- 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
- export declare const fireAnalyticsMentionEvent: (createEvent: CreateUIAnalyticsEvent) => (actionSubject: string, action: string, text: string, id: string, accessLevel?: string | undefined) => UIAnalyticsEvent;
27
- export declare const fireSliAnalyticsEvent: (props: WithAnalyticsEventsProps) => (actionSubject: string, action: string) => void;
28
- export declare const buildSliPayload: (actionSubject: string, action: string, attributes?: {
29
- [key: string]: any;
30
- } | undefined) => GasPayload;
31
- export declare const fireAnalyticsMentionHydrationEvent: (props: WithAnalyticsEventsProps) => (action: string, userId: string, fromCache: boolean, duration: number) => void;
32
- export declare const fireAnalytics: (firePrivateAnalyticsEvent?: Function | undefined) => (eventName: string, text: string, accessLevel?: string | undefined) => void;
@@ -1,33 +0,0 @@
1
- import React from 'react';
2
- import { MessageDescriptor } from 'react-intl-next';
3
- export declare type Formatter = (props: {
4
- values?: {
5
- [k: string]: string;
6
- };
7
- children?(props: string): React.ReactElement;
8
- }) => React.ReactElement | null;
9
- declare type FormatterFactory = (messageDescriptor: MessageDescriptor) => Formatter;
10
- export declare const propFormatter: FormatterFactory;
11
- export declare const UnknownUserError: Formatter;
12
- export declare const NoAccessWarning: Formatter;
13
- export declare const NoAccessLabel: Formatter;
14
- export declare const DefaultHeadline: Formatter;
15
- export declare const DefaultAdvisedAction: Formatter;
16
- export declare const LoginAgain: Formatter;
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
- /**
23
- * Tries to get the most specific messages bundle for a given locale.
24
- *
25
- * Strategy:
26
- * 1. Try to find messages with the exact string (i.e. 'fr_FR')
27
- * 2. If that doesn't work, try to find messages for the country locale (i.e. 'fr')
28
- * 3. If that doesn't work, return english messages as a fallback.
29
- *
30
- * @param locale string specifying the locale like 'en_GB', or 'fr'.
31
- */
32
- export declare const getMessagesForLocale: (locale: string) => Promise<Record<string, string>>;
33
- export {};
@@ -1,2 +0,0 @@
1
- declare const _default: (prefix?: string) => string;
2
- export default _default;
@@ -1 +0,0 @@
1
- export declare const padArray: (arr: any[], size: number, value: any) => any[];
@@ -1,4 +0,0 @@
1
- export declare function enableLogger(enable: boolean): void;
2
- export declare function enableStacktraces(enable: boolean): void;
3
- export declare function logStacktrace(): void;
4
- export default function debug(msg: any, ...args: any[]): void;
@@ -1,8 +0,0 @@
1
- import { MouseEvent } from 'react';
2
- export interface Position {
3
- x: number;
4
- y: number;
5
- }
6
- export declare function mouseLocation(event: MouseEvent<any>): Position;
7
- export declare function actualMouseMove(oldPosition: Position | undefined, newPosition: Position): boolean;
8
- export declare function leftClick(event: MouseEvent<any>): boolean;