@atlaskit/mention 26.2.0 → 27.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.
Files changed (121) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/analytics/package.json +1 -8
  3. package/constants/package.json +1 -8
  4. package/context-mention-resource/package.json +1 -8
  5. package/dist/cjs/components/MentionAvatar/index.js +6 -1
  6. package/dist/cjs/util/analytics.js +1 -1
  7. package/dist/es2019/components/MentionAvatar/index.js +7 -2
  8. package/dist/es2019/util/analytics.js +1 -1
  9. package/dist/esm/components/MentionAvatar/index.js +7 -2
  10. package/dist/esm/util/analytics.js +1 -1
  11. package/element/package.json +1 -8
  12. package/item/package.json +1 -8
  13. package/mention/package.json +1 -8
  14. package/mention-item/package.json +1 -8
  15. package/mention-item/styles/package.json +1 -8
  16. package/mention-list/package.json +1 -8
  17. package/mention-name-client/package.json +1 -8
  18. package/mention-name-resolver/package.json +1 -8
  19. package/mention-picker/package.json +1 -8
  20. package/mention-resource/package.json +1 -8
  21. package/package.json +22 -25
  22. package/presence-resource/package.json +1 -8
  23. package/resource/package.json +1 -8
  24. package/resourced-mention/package.json +1 -8
  25. package/resourced-mention-list/package.json +1 -8
  26. package/shared-styles/package.json +1 -8
  27. package/team-mention-resource/package.json +1 -8
  28. package/team-resource/package.json +1 -8
  29. package/typeahead/package.json +1 -8
  30. package/types/package.json +1 -8
  31. package/dist/types-ts4.5/_constants.d.ts +0 -1
  32. package/dist/types-ts4.5/api/ContextMentionResource.d.ts +0 -28
  33. package/dist/types-ts4.5/api/MentionNameClient.d.ts +0 -11
  34. package/dist/types-ts4.5/api/MentionNameResolver.d.ts +0 -38
  35. package/dist/types-ts4.5/api/MentionResource.d.ts +0 -106
  36. package/dist/types-ts4.5/api/PresenceResource.d.ts +0 -158
  37. package/dist/types-ts4.5/api/TeamMentionResource.d.ts +0 -33
  38. package/dist/types-ts4.5/api/analytics.d.ts +0 -17
  39. package/dist/types-ts4.5/components/DisabledMentionTooltip/index.d.ts +0 -6
  40. package/dist/types-ts4.5/components/DisabledMentionTooltip/main.d.ts +0 -12
  41. package/dist/types-ts4.5/components/LockCircleIcon/index.d.ts +0 -7
  42. package/dist/types-ts4.5/components/Mention/PrimitiveMention.d.ts +0 -7
  43. package/dist/types-ts4.5/components/Mention/ResourcedMention.d.ts +0 -29
  44. package/dist/types-ts4.5/components/Mention/index.d.ts +0 -45
  45. package/dist/types-ts4.5/components/Mention/ufoExperiences.d.ts +0 -9
  46. package/dist/types-ts4.5/components/MentionAvatar/index.d.ts +0 -8
  47. package/dist/types-ts4.5/components/MentionDescriptionByline/TeamMentionDescriptionByline.d.ts +0 -7
  48. package/dist/types-ts4.5/components/MentionDescriptionByline/UserMentionDescriptionByline.d.ts +0 -5
  49. package/dist/types-ts4.5/components/MentionDescriptionByline/index.d.ts +0 -5
  50. package/dist/types-ts4.5/components/MentionDescriptionByline/styles.d.ts +0 -7
  51. package/dist/types-ts4.5/components/MentionDescriptionByline/types.d.ts +0 -4
  52. package/dist/types-ts4.5/components/MentionItem/MentionHighlightHelpers.d.ts +0 -3
  53. package/dist/types-ts4.5/components/MentionItem/index.d.ts +0 -19
  54. package/dist/types-ts4.5/components/MentionItem/styles.d.ts +0 -50
  55. package/dist/types-ts4.5/components/MentionList/index.d.ts +0 -43
  56. package/dist/types-ts4.5/components/MentionList/styles.d.ts +0 -10
  57. package/dist/types-ts4.5/components/MentionListError/GenericErrorIllustration.d.ts +0 -7
  58. package/dist/types-ts4.5/components/MentionListError/index.d.ts +0 -13
  59. package/dist/types-ts4.5/components/MentionListError/styles.d.ts +0 -7
  60. package/dist/types-ts4.5/components/MentionPicker/index.d.ts +0 -77
  61. package/dist/types-ts4.5/components/MentionPicker/styles.d.ts +0 -14
  62. package/dist/types-ts4.5/components/MessagesIntlProvider/index.d.ts +0 -3
  63. package/dist/types-ts4.5/components/NoAccessTooltip/index.d.ts +0 -6
  64. package/dist/types-ts4.5/components/NoAccessTooltip/main.d.ts +0 -7
  65. package/dist/types-ts4.5/components/Popup/index.d.ts +0 -25
  66. package/dist/types-ts4.5/components/ResourcedMentionList/index.d.ts +0 -46
  67. package/dist/types-ts4.5/components/Scrollable/index.d.ts +0 -10
  68. package/dist/types-ts4.5/components/Scrollable/styles.d.ts +0 -7
  69. package/dist/types-ts4.5/components/i18n.d.ts +0 -62
  70. package/dist/types-ts4.5/config/index.d.ts +0 -5
  71. package/dist/types-ts4.5/element.d.ts +0 -3
  72. package/dist/types-ts4.5/i18n/cs.d.ts +0 -21
  73. package/dist/types-ts4.5/i18n/da.d.ts +0 -21
  74. package/dist/types-ts4.5/i18n/de.d.ts +0 -21
  75. package/dist/types-ts4.5/i18n/en.d.ts +0 -21
  76. package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -21
  77. package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -21
  78. package/dist/types-ts4.5/i18n/es.d.ts +0 -21
  79. package/dist/types-ts4.5/i18n/et.d.ts +0 -20
  80. package/dist/types-ts4.5/i18n/fi.d.ts +0 -21
  81. package/dist/types-ts4.5/i18n/fr.d.ts +0 -21
  82. package/dist/types-ts4.5/i18n/hr.d.ts +0 -21
  83. package/dist/types-ts4.5/i18n/hu.d.ts +0 -21
  84. package/dist/types-ts4.5/i18n/index.d.ts +0 -37
  85. package/dist/types-ts4.5/i18n/is.d.ts +0 -24
  86. package/dist/types-ts4.5/i18n/it.d.ts +0 -21
  87. package/dist/types-ts4.5/i18n/ja.d.ts +0 -21
  88. package/dist/types-ts4.5/i18n/ko.d.ts +0 -21
  89. package/dist/types-ts4.5/i18n/languages.d.ts +0 -34
  90. package/dist/types-ts4.5/i18n/nb.d.ts +0 -21
  91. package/dist/types-ts4.5/i18n/nl.d.ts +0 -21
  92. package/dist/types-ts4.5/i18n/pl.d.ts +0 -21
  93. package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -21
  94. package/dist/types-ts4.5/i18n/pt_PT.d.ts +0 -20
  95. package/dist/types-ts4.5/i18n/ro.d.ts +0 -24
  96. package/dist/types-ts4.5/i18n/ru.d.ts +0 -21
  97. package/dist/types-ts4.5/i18n/sk.d.ts +0 -20
  98. package/dist/types-ts4.5/i18n/sl.d.ts +0 -21
  99. package/dist/types-ts4.5/i18n/sr_RS.d.ts +0 -21
  100. package/dist/types-ts4.5/i18n/sr_YR.d.ts +0 -21
  101. package/dist/types-ts4.5/i18n/sv.d.ts +0 -21
  102. package/dist/types-ts4.5/i18n/th.d.ts +0 -21
  103. package/dist/types-ts4.5/i18n/tr.d.ts +0 -21
  104. package/dist/types-ts4.5/i18n/uk.d.ts +0 -21
  105. package/dist/types-ts4.5/i18n/vi.d.ts +0 -21
  106. package/dist/types-ts4.5/i18n/zh.d.ts +0 -21
  107. package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -21
  108. package/dist/types-ts4.5/index.d.ts +0 -17
  109. package/dist/types-ts4.5/item.d.ts +0 -2
  110. package/dist/types-ts4.5/resource.d.ts +0 -10
  111. package/dist/types-ts4.5/shared-styles.d.ts +0 -5
  112. package/dist/types-ts4.5/team-resource.d.ts +0 -8
  113. package/dist/types-ts4.5/typeahead.d.ts +0 -3
  114. package/dist/types-ts4.5/types.d.ts +0 -320
  115. package/dist/types-ts4.5/util/analytics.d.ts +0 -12
  116. package/dist/types-ts4.5/util/atl-attribution.d.ts +0 -8
  117. package/dist/types-ts4.5/util/i18n.d.ts +0 -29
  118. package/dist/types-ts4.5/util/id.d.ts +0 -2
  119. package/dist/types-ts4.5/util/index.d.ts +0 -1
  120. package/dist/types-ts4.5/util/logger.d.ts +0 -4
  121. package/dist/types-ts4.5/util/mouse.d.ts +0 -8
@@ -1,320 +0,0 @@
1
- import { type SyntheticEvent } from 'react';
2
- import { type ServiceConfig } from '@atlaskit/util-service-support/types';
3
- export interface MentionNameResolver {
4
- cacheName(id: string, name: string): void;
5
- lookupName(id: string): Promise<MentionNameDetails> | MentionNameDetails;
6
- }
7
- export 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
- /**
25
- * Configuration for the MentionResource, which provides a JavaScript API
26
- * for fetching and searching user mentions from a remote service.
27
- *
28
- * Extends {@link ServiceConfig} which provides the base `url`, `securityProvider`,
29
- * and `refreshedSecurityProvider` fields.
30
- */
31
- export interface MentionResourceConfig extends ServiceConfig {
32
- /**
33
- * The ID of the container (e.g. a Confluence space or Jira project) used to scope
34
- * mention search results. Can be overridden by `MentionContextIdentifier.containerId`.
35
- */
36
- containerId?: string;
37
- /**
38
- * Debounce time in milliseconds for the `filter` method. When set, rapid successive
39
- * calls to `filter` will be debounced to reduce the number of network requests.
40
- */
41
- debounceTime?: number;
42
- /**
43
- * A function to determine whether a given mention should be rendered in
44
- * its disabled visual state (`MentionType.DISABLED`), and what tooltip
45
- * (if any) to display when the disabled chip is hovered.
46
- *
47
- * Returning `{ disabled: false }` (or `undefined`) leaves the mention in
48
- * whatever state the other predicates resolve to.
49
- *
50
- * The input deliberately exposes only the mention's `id` because the
51
- * canonical caller (the editor mentions `NodeView`) does not have the
52
- * full `MentionDescription` in scope. Implementations should look the
53
- * additional context they need (e.g. agent metadata) up via the `id`.
54
- *
55
- * @param mention - The minimal mention identifier to evaluate.
56
- * @returns `{ disabled, tooltip? }` describing the disabled visual state,
57
- * or `undefined` to leave it unchanged.
58
- */
59
- getMentionDisabledState?: (mention: MentionDisabledStateInput) => MentionDisabledState | undefined;
60
- /**
61
- * Custom HTTP headers to include in mention service requests.
62
- */
63
- headers?: Record<string, string>;
64
- /**
65
- * Callback to invite a cross-product user. Invoked when a user from another
66
- * Atlassian product is selected for mention and needs to be invited.
67
- *
68
- * @param userId - The ID of the user to invite.
69
- * @param mentionName - The display name of the user being invited.
70
- * @returns A promise that resolves when the invitation is complete.
71
- */
72
- inviteXProductUser?: (userId: string, mentionName: string) => Promise<void>;
73
- /**
74
- * A resolver for looking up and caching mention display names by user ID.
75
- * Used by `ResolvingMentionProvider` to resolve names for mentions that
76
- * only have an ID (e.g. when rendering stored mention nodes).
77
- */
78
- mentionNameResolver?: MentionNameResolver;
79
- /**
80
- * Callback invoked when the inline invite item is clicked in the mention picker.
81
- *
82
- * @param flow - The type of invite flow, either `'mention'` or `'assign'`.
83
- */
84
- onInviteItemClick?: (flow: InviteFlow) => void;
85
- /**
86
- * The product identifier (e.g. `'confluence'`, `'jira'`) sent as a query parameter
87
- * (`productIdentifier`) to the mention service for product-scoped results.
88
- */
89
- productId?: string;
90
- /**
91
- * The display name of the product, exposed on the `MentionProvider` for use
92
- * by invite-related UI components.
93
- */
94
- productName?: string;
95
- /**
96
- * Whether to enable the inline invite functionality in the mention picker,
97
- * allowing users to invite people who are not yet part of the site.
98
- */
99
- shouldEnableInvite?: boolean;
100
- /**
101
- * A function to determine whether a given mention should be visually highlighted
102
- * (e.g. as a self-mention). When provided, it is called for each mention to decide
103
- * if the `MentionType.SELF` styling should be applied.
104
- *
105
- * @param mention - The mention to evaluate.
106
- * @returns `true` if the mention should be highlighted.
107
- */
108
- shouldHighlightMention?: (mention: MentionDescription) => boolean;
109
- /**
110
- * The role of the current user, used to determine invite permissions
111
- * in the mention picker. Defaults to `'basic'` if not provided.
112
- */
113
- userRole?: UserRole;
114
- }
115
- /**
116
- * Describes whether a mention should be rendered in its disabled visual
117
- * state and what tooltip (if any) should be shown on hover.
118
- */
119
- export interface MentionDisabledState {
120
- disabled: boolean;
121
- tooltip?: string;
122
- }
123
- /**
124
- * The minimal input shape used by `getMentionDisabledState`. Kept as a named
125
- * type so the config callback and the provider method share the same input
126
- * surface, and so callers do not have to fabricate fields they do not have.
127
- */
128
- export interface MentionDisabledStateInput {
129
- id: string;
130
- }
131
- export interface ResourceProvider<Result> {
132
- /**
133
- * Subscribe to ResourceProvider results
134
- *
135
- * @param {string} key subscriber key used to unsubscribe
136
- * @param {ResultCallback<Result>} callback This callback only receives latest results
137
- * @param {ErrorCallback} errCallback This callback will errors
138
- * @param {InfoCallback} infoCallback This callback will info
139
- * @param {ResultCallback<Result>} allResultsCallback This callback will receive all results
140
- */
141
- subscribe(key: string, callback?: ResultCallback<Result>, errCallback?: ErrorCallback, infoCallback?: InfoCallback, allResultsCallback?: ResultCallback<Result>, analyticsCallback?: AnalyticsCallback): void;
142
- /**
143
- * Unsubscribe to this resource provider results
144
- * @param {string} key key used when subscribing
145
- */
146
- unsubscribe(key: string): void;
147
- }
148
- export type MentionContextIdentifier = {
149
- childObjectId?: string;
150
- containerId?: string;
151
- objectId?: string;
152
- sessionId?: string;
153
- };
154
- export interface MentionProvider extends ResourceProvider<MentionDescription[]>, InviteFromMentionProvider, XProductInviteMentionProvider {
155
- filter(query?: string, contextIdentifier?: MentionContextIdentifier): void;
156
- /**
157
- * Optional. When implemented, lets the rendering surface ask whether a
158
- * mention should be displayed in its disabled visual state, and what
159
- * tooltip to surface on hover. Returning `undefined` (or omitting the
160
- * method entirely) is equivalent to "not disabled".
161
- */
162
- getMentionDisabledState?(mention: MentionDisabledStateInput): MentionDisabledState | undefined;
163
- isFiltering(query: string): boolean;
164
- /**
165
- * Optional. Called by the rendering surface (e.g. the editor NodeView)
166
- * when a mention chip is destroyed (removed from the doc). This is the
167
- * lowest-level deletion signal — it fires regardless of how the chip was
168
- * removed (backspace, select-and-delete, programmatic replace, …) and
169
- * does not depend on the editor's debounced `onChange` callback.
170
- *
171
- * Implementations typically forward the call to consumers via the chat
172
- * layer so they can react (e.g. update `selectedAgentIds`).
173
- */
174
- notifyMentionDestroyed?(mention: {
175
- id: string;
176
- }): void;
177
- recordMentionSelection(mention: MentionDescription, contextIdentifier?: MentionContextIdentifier): void;
178
- shouldHighlightMention(mention: MentionDescription): boolean;
179
- /**
180
- * Optional. When implemented, lets the rendering surface subscribe to
181
- * changes in the disabled-state predicate so already-rendered chips can
182
- * re-evaluate themselves when the external state that drives
183
- * `getMentionDisabledState` changes (e.g. the active agent selection in
184
- * Rovo Chat). Implementations should invoke the listener after their
185
- * own state changes.
186
- *
187
- * Returns an unsubscribe function. Callers MUST invoke it on teardown.
188
- */
189
- subscribeToDisabledStateChanges?(listener: () => void): () => void;
190
- }
191
- export interface HighlightDetail {
192
- end: number;
193
- start: number;
194
- }
195
- export interface Highlight {
196
- mentionName: HighlightDetail[];
197
- name: HighlightDetail[];
198
- nickname: HighlightDetail[];
199
- }
200
- export interface Presence {
201
- status?: string;
202
- time?: string;
203
- }
204
- export type LozengeColor = 'default' | 'success' | 'removed' | 'inprogress' | 'new' | 'moved';
205
- export interface LozengeProps {
206
- appearance?: LozengeColor;
207
- text: React.ReactNode;
208
- }
209
- export interface MentionDescription {
210
- accessLevel?: string;
211
- appType?: string | null;
212
- avatarUrl?: string;
213
- context?: MentionDescContext;
214
- highlight?: Highlight;
215
- id: string;
216
- inContext?: boolean;
217
- isXProductUser?: boolean;
218
- lozenge?: string | LozengeProps;
219
- mentionName?: string;
220
- name?: string;
221
- nickname?: string;
222
- presence?: Presence;
223
- source?: string;
224
- userType?: string;
225
- }
226
- export interface MentionDescContext {
227
- includesYou: boolean;
228
- memberCount: number;
229
- members: TeamMember[];
230
- teamLink: string;
231
- }
232
- export interface MentionsResult {
233
- mentions: MentionDescription[];
234
- query: string;
235
- }
236
- export interface TeamMember {
237
- id: string;
238
- name: string;
239
- }
240
- export interface Team {
241
- displayName: string;
242
- highlight?: Highlight;
243
- id: string;
244
- includesYou: boolean;
245
- memberCount: number;
246
- members: TeamMember[];
247
- smallAvatarImageUrl: string;
248
- }
249
- export type MentionEventHandler = (mentionId: string, text: string, event?: SyntheticEvent<HTMLSpanElement>) => void;
250
- export interface OnMentionEvent {
251
- (mention: MentionDescription, event?: SyntheticEvent<any>): void;
252
- }
253
- export declare enum MentionType {
254
- SELF = 0,
255
- RESTRICTED = 1,
256
- DEFAULT = 2,
257
- DISABLED = 3
258
- }
259
- export declare enum UserAccessLevel {
260
- NONE = 0,
261
- SITE = 1,
262
- APPLICATION = 2,
263
- CONTAINER = 3
264
- }
265
- export declare enum UserType {
266
- DEFAULT = 0,
267
- SPECIAL = 1,
268
- APP = 2,
269
- TEAM = 3,
270
- SYSTEM = 4
271
- }
272
- export declare enum SliNames {
273
- SEARCH = "searchUser",
274
- SEARCH_TEAM = "searchTeam",
275
- INITIAL_STATE = "initialState",
276
- SELECT = "select",
277
- SELECT_TEAM = "selectTeam"
278
- }
279
- export declare enum ComponentNames {
280
- TYPEAHEAD = "mentionTypeahead",
281
- MENTION = "mention"
282
- }
283
- export declare enum Actions {
284
- VIEWED = "viewed",
285
- CLICKED = "clicked",
286
- CLOSED = "closed",
287
- SUCCEEDED = "succeeded",
288
- FAILED = "failed"
289
- }
290
- export declare enum MentionNameStatus {
291
- UNKNOWN = 0,
292
- SERVICE_ERROR = 1,
293
- OK = 2
294
- }
295
- export interface MentionNameDetails {
296
- id: string;
297
- name?: string;
298
- status: MentionNameStatus;
299
- }
300
- export declare function isRestricted(accessLevel?: string): boolean;
301
- export declare function isSpecialMention(mention: MentionDescription): boolean;
302
- export declare function isAppMention(mention: MentionDescription): boolean | '' | undefined;
303
- export declare function isTeamMention(mention: MentionDescription): boolean | '' | undefined;
304
- export declare function isSpecialMentionText(mentionText: string): boolean | '';
305
- export declare const isPromise: <T>(p: any) => p is Promise<T>;
306
- export type InviteFlow = 'mention' | 'assign';
307
- export type UserRole = 'admin' | 'trusted' | 'basic';
308
- export interface InviteFromMentionProvider {
309
- getShouldEnableInlineInvite?: () => boolean;
310
- InlineInviteRecaptcha?: React.ComponentType<any> | null;
311
- onInviteItemClick?(flow: InviteFlow): void;
312
- productName?: string;
313
- shouldEnableInvite?: boolean;
314
- showInlineInviteRecaptcha?: (email: string) => void;
315
- userEmailDomain?: string;
316
- userRole?: UserRole;
317
- }
318
- export interface XProductInviteMentionProvider {
319
- inviteXProductUser?: (userId: string, mentionName: string) => Promise<void>;
320
- }
@@ -1,12 +0,0 @@
1
- import { type UIAnalyticsEvent, type WithAnalyticsEventsProps, type CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
2
- import { type 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 const fireAnalyticsMentionTypeaheadEvent: (props: WithAnalyticsEventsProps) => (action: string, duration: number, userIds?: string[], query?: string) => void;
6
- export declare const fireAnalyticsMentionEvent: (createEvent: CreateUIAnalyticsEvent) => (actionSubject: string, action: string, text: string, id: string, accessLevel?: string) => UIAnalyticsEvent;
7
- export declare const fireSliAnalyticsEvent: (props: WithAnalyticsEventsProps) => (actionSubject: string, action: string) => void;
8
- export declare const buildSliPayload: (actionSubject: string, action: string, attributes?: {
9
- [key: string]: any;
10
- }) => GasPayload;
11
- export declare const fireAnalyticsMentionHydrationEvent: (props: WithAnalyticsEventsProps) => (action: string, userId: string, fromCache: boolean, duration: number) => void;
12
- export declare const fireAnalytics: (firePrivateAnalyticsEvent?: Function) => (eventName: string, text: string, accessLevel?: string) => void;
@@ -1,8 +0,0 @@
1
- export interface AtlAttributionConfig {
2
- activationId?: string;
3
- cloudId: string;
4
- productId?: string;
5
- }
6
- export declare function buildAtlAttributionHeaderValue(config: AtlAttributionConfig): {
7
- 'atl-attribution': string;
8
- } | undefined;
@@ -1,29 +0,0 @@
1
- import React from 'react';
2
- import { type MessageDescriptor } from 'react-intl';
3
- export type Formatter = (props: {
4
- children?(props: string): React.ReactElement;
5
- values?: {
6
- [k: string]: string;
7
- };
8
- }) => React.ReactElement | null;
9
- 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
- /**
19
- * Tries to get the most specific messages bundle for a given locale.
20
- *
21
- * Strategy:
22
- * 1. Try to find messages with the exact string (i.e. 'fr_FR')
23
- * 2. If that doesn't work, try to find messages for the country locale (i.e. 'fr')
24
- * 3. If that doesn't work, return english messages as a fallback.
25
- *
26
- * @param locale string specifying the locale like 'en_GB', or 'fr'.
27
- */
28
- export declare const getMessagesForLocale: (locale: string) => Promise<Record<string, string>>;
29
- 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 { type 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;