@atlaskit/mention 26.1.0 → 26.3.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 (147) hide show
  1. package/CHANGELOG.md +78 -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/api/ContextMentionResource.js +14 -0
  6. package/dist/cjs/api/MentionResource.js +6 -0
  7. package/dist/cjs/components/DisabledMentionTooltip/index.js +20 -0
  8. package/dist/cjs/components/DisabledMentionTooltip/main.js +24 -0
  9. package/dist/cjs/components/Mention/PrimitiveMention.js +8 -1
  10. package/dist/cjs/components/Mention/index.js +51 -12
  11. package/dist/cjs/components/MentionAvatar/index.js +6 -1
  12. package/dist/cjs/types.js +10 -0
  13. package/dist/cjs/util/analytics.js +1 -1
  14. package/dist/es2019/api/ContextMentionResource.js +12 -0
  15. package/dist/es2019/api/MentionResource.js +4 -0
  16. package/dist/es2019/components/DisabledMentionTooltip/index.js +7 -0
  17. package/dist/es2019/components/DisabledMentionTooltip/main.js +14 -0
  18. package/dist/es2019/components/Mention/PrimitiveMention.js +8 -0
  19. package/dist/es2019/components/Mention/index.js +50 -12
  20. package/dist/es2019/components/MentionAvatar/index.js +7 -2
  21. package/dist/es2019/types.js +12 -0
  22. package/dist/es2019/util/analytics.js +1 -1
  23. package/dist/esm/api/ContextMentionResource.js +14 -0
  24. package/dist/esm/api/MentionResource.js +6 -0
  25. package/dist/esm/components/DisabledMentionTooltip/index.js +9 -0
  26. package/dist/esm/components/DisabledMentionTooltip/main.js +17 -0
  27. package/dist/esm/components/Mention/PrimitiveMention.js +8 -1
  28. package/dist/esm/components/Mention/index.js +51 -12
  29. package/dist/esm/components/MentionAvatar/index.js +7 -2
  30. package/dist/esm/types.js +12 -0
  31. package/dist/esm/util/analytics.js +1 -1
  32. package/dist/types/api/ContextMentionResource.d.ts +6 -1
  33. package/dist/types/api/MentionResource.d.ts +2 -1
  34. package/dist/types/components/DisabledMentionTooltip/index.d.ts +6 -0
  35. package/dist/types/components/DisabledMentionTooltip/main.d.ts +12 -0
  36. package/dist/types/components/Mention/index.d.ts +12 -0
  37. package/dist/types/types.d.ts +67 -1
  38. package/docs/0-intro.tsx +21 -0
  39. package/element/package.json +1 -8
  40. package/item/package.json +1 -8
  41. package/mention/package.json +1 -8
  42. package/mention-item/package.json +1 -8
  43. package/mention-item/styles/package.json +1 -8
  44. package/mention-list/package.json +1 -8
  45. package/mention-name-client/package.json +1 -8
  46. package/mention-name-resolver/package.json +1 -8
  47. package/mention-picker/package.json +1 -8
  48. package/mention-resource/package.json +1 -8
  49. package/package.json +10 -5
  50. package/presence-resource/package.json +1 -8
  51. package/resource/package.json +1 -8
  52. package/resourced-mention/package.json +1 -8
  53. package/resourced-mention-list/package.json +1 -8
  54. package/shared-styles/package.json +1 -8
  55. package/team-mention-resource/package.json +1 -8
  56. package/team-resource/package.json +1 -8
  57. package/typeahead/package.json +1 -8
  58. package/types/package.json +1 -8
  59. package/dist/types-ts4.5/_constants.d.ts +0 -1
  60. package/dist/types-ts4.5/api/ContextMentionResource.d.ts +0 -23
  61. package/dist/types-ts4.5/api/MentionNameClient.d.ts +0 -11
  62. package/dist/types-ts4.5/api/MentionNameResolver.d.ts +0 -38
  63. package/dist/types-ts4.5/api/MentionResource.d.ts +0 -105
  64. package/dist/types-ts4.5/api/PresenceResource.d.ts +0 -158
  65. package/dist/types-ts4.5/api/TeamMentionResource.d.ts +0 -33
  66. package/dist/types-ts4.5/api/analytics.d.ts +0 -17
  67. package/dist/types-ts4.5/components/LockCircleIcon/index.d.ts +0 -7
  68. package/dist/types-ts4.5/components/Mention/PrimitiveMention.d.ts +0 -7
  69. package/dist/types-ts4.5/components/Mention/ResourcedMention.d.ts +0 -29
  70. package/dist/types-ts4.5/components/Mention/index.d.ts +0 -33
  71. package/dist/types-ts4.5/components/Mention/ufoExperiences.d.ts +0 -9
  72. package/dist/types-ts4.5/components/MentionAvatar/index.d.ts +0 -8
  73. package/dist/types-ts4.5/components/MentionDescriptionByline/TeamMentionDescriptionByline.d.ts +0 -7
  74. package/dist/types-ts4.5/components/MentionDescriptionByline/UserMentionDescriptionByline.d.ts +0 -5
  75. package/dist/types-ts4.5/components/MentionDescriptionByline/index.d.ts +0 -5
  76. package/dist/types-ts4.5/components/MentionDescriptionByline/styles.d.ts +0 -7
  77. package/dist/types-ts4.5/components/MentionDescriptionByline/types.d.ts +0 -4
  78. package/dist/types-ts4.5/components/MentionItem/MentionHighlightHelpers.d.ts +0 -3
  79. package/dist/types-ts4.5/components/MentionItem/index.d.ts +0 -19
  80. package/dist/types-ts4.5/components/MentionItem/styles.d.ts +0 -50
  81. package/dist/types-ts4.5/components/MentionList/index.d.ts +0 -43
  82. package/dist/types-ts4.5/components/MentionList/styles.d.ts +0 -10
  83. package/dist/types-ts4.5/components/MentionListError/GenericErrorIllustration.d.ts +0 -7
  84. package/dist/types-ts4.5/components/MentionListError/index.d.ts +0 -13
  85. package/dist/types-ts4.5/components/MentionListError/styles.d.ts +0 -7
  86. package/dist/types-ts4.5/components/MentionPicker/index.d.ts +0 -77
  87. package/dist/types-ts4.5/components/MentionPicker/styles.d.ts +0 -14
  88. package/dist/types-ts4.5/components/MessagesIntlProvider/index.d.ts +0 -3
  89. package/dist/types-ts4.5/components/NoAccessTooltip/index.d.ts +0 -6
  90. package/dist/types-ts4.5/components/NoAccessTooltip/main.d.ts +0 -7
  91. package/dist/types-ts4.5/components/Popup/index.d.ts +0 -25
  92. package/dist/types-ts4.5/components/ResourcedMentionList/index.d.ts +0 -46
  93. package/dist/types-ts4.5/components/Scrollable/index.d.ts +0 -10
  94. package/dist/types-ts4.5/components/Scrollable/styles.d.ts +0 -7
  95. package/dist/types-ts4.5/components/i18n.d.ts +0 -62
  96. package/dist/types-ts4.5/config/index.d.ts +0 -5
  97. package/dist/types-ts4.5/element.d.ts +0 -3
  98. package/dist/types-ts4.5/i18n/cs.d.ts +0 -21
  99. package/dist/types-ts4.5/i18n/da.d.ts +0 -21
  100. package/dist/types-ts4.5/i18n/de.d.ts +0 -21
  101. package/dist/types-ts4.5/i18n/en.d.ts +0 -21
  102. package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -21
  103. package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -21
  104. package/dist/types-ts4.5/i18n/es.d.ts +0 -21
  105. package/dist/types-ts4.5/i18n/et.d.ts +0 -20
  106. package/dist/types-ts4.5/i18n/fi.d.ts +0 -21
  107. package/dist/types-ts4.5/i18n/fr.d.ts +0 -21
  108. package/dist/types-ts4.5/i18n/hr.d.ts +0 -21
  109. package/dist/types-ts4.5/i18n/hu.d.ts +0 -21
  110. package/dist/types-ts4.5/i18n/index.d.ts +0 -37
  111. package/dist/types-ts4.5/i18n/is.d.ts +0 -24
  112. package/dist/types-ts4.5/i18n/it.d.ts +0 -21
  113. package/dist/types-ts4.5/i18n/ja.d.ts +0 -21
  114. package/dist/types-ts4.5/i18n/ko.d.ts +0 -21
  115. package/dist/types-ts4.5/i18n/languages.d.ts +0 -34
  116. package/dist/types-ts4.5/i18n/nb.d.ts +0 -21
  117. package/dist/types-ts4.5/i18n/nl.d.ts +0 -21
  118. package/dist/types-ts4.5/i18n/pl.d.ts +0 -21
  119. package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -21
  120. package/dist/types-ts4.5/i18n/pt_PT.d.ts +0 -20
  121. package/dist/types-ts4.5/i18n/ro.d.ts +0 -24
  122. package/dist/types-ts4.5/i18n/ru.d.ts +0 -21
  123. package/dist/types-ts4.5/i18n/sk.d.ts +0 -20
  124. package/dist/types-ts4.5/i18n/sl.d.ts +0 -21
  125. package/dist/types-ts4.5/i18n/sr_RS.d.ts +0 -21
  126. package/dist/types-ts4.5/i18n/sr_YR.d.ts +0 -21
  127. package/dist/types-ts4.5/i18n/sv.d.ts +0 -21
  128. package/dist/types-ts4.5/i18n/th.d.ts +0 -21
  129. package/dist/types-ts4.5/i18n/tr.d.ts +0 -21
  130. package/dist/types-ts4.5/i18n/uk.d.ts +0 -21
  131. package/dist/types-ts4.5/i18n/vi.d.ts +0 -21
  132. package/dist/types-ts4.5/i18n/zh.d.ts +0 -21
  133. package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -21
  134. package/dist/types-ts4.5/index.d.ts +0 -17
  135. package/dist/types-ts4.5/item.d.ts +0 -2
  136. package/dist/types-ts4.5/resource.d.ts +0 -10
  137. package/dist/types-ts4.5/shared-styles.d.ts +0 -5
  138. package/dist/types-ts4.5/team-resource.d.ts +0 -8
  139. package/dist/types-ts4.5/typeahead.d.ts +0 -3
  140. package/dist/types-ts4.5/types.d.ts +0 -254
  141. package/dist/types-ts4.5/util/analytics.d.ts +0 -12
  142. package/dist/types-ts4.5/util/atl-attribution.d.ts +0 -8
  143. package/dist/types-ts4.5/util/i18n.d.ts +0 -29
  144. package/dist/types-ts4.5/util/id.d.ts +0 -2
  145. package/dist/types-ts4.5/util/index.d.ts +0 -1
  146. package/dist/types-ts4.5/util/logger.d.ts +0 -4
  147. package/dist/types-ts4.5/util/mouse.d.ts +0 -8
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import { type MentionDescription } from '../../types';
3
- type MentionAvatarProps = {
4
- mention: MentionDescription;
5
- selected?: boolean;
6
- };
7
- export declare const MentionAvatar: ({ mention, selected }: MentionAvatarProps) => React.JSX.Element;
8
- export {};
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import { type DescriptionBylineProps } from './types';
3
- export default class TeamMentionDescriptionByline extends React.PureComponent<DescriptionBylineProps> {
4
- private renderByline;
5
- private getBylineComponent;
6
- render(): React.JSX.Element | null;
7
- }
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import { type DescriptionBylineProps } from './types';
3
- export default class UserMentionDescriptionByline extends React.PureComponent<DescriptionBylineProps, {}> {
4
- render(): React.JSX.Element | null;
5
- }
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import { type DescriptionBylineProps } from './types';
3
- export default class MentionDescriptionByline extends React.PureComponent<DescriptionBylineProps, {}> {
4
- render(): React.JSX.Element;
5
- }
@@ -1,7 +0,0 @@
1
- import { type StyledComponent } from '@emotion/styled';
2
- import type { Theme } from '@emotion/react';
3
- import type { DetailedHTMLProps, HTMLAttributes } from 'react';
4
- export declare const DescriptionBylineStyle: StyledComponent<{
5
- theme?: Theme;
6
- as?: React.ElementType;
7
- }, DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
@@ -1,4 +0,0 @@
1
- import { type MentionDescription } from '../../types';
2
- export interface DescriptionBylineProps {
3
- mention: MentionDescription;
4
- }
@@ -1,3 +0,0 @@
1
- import React, { type ComponentType } from 'react';
2
- import { type HighlightDetail } from '../../types';
3
- export declare function renderHighlight(ReactComponent: ComponentType<any>, value?: string, highlights?: HighlightDetail[], prefix?: string): React.JSX.Element | null;
@@ -1,19 +0,0 @@
1
- import React from 'react';
2
- import { type MentionDescription, type OnMentionEvent } from '../../types';
3
- export { MENTION_ITEM_HEIGHT, MENTION_ITEM_HEIGHT_REFRESHED } from './styles';
4
- export interface Props {
5
- forwardedRef?: React.Ref<HTMLDivElement>;
6
- height?: number;
7
- mention: MentionDescription;
8
- onMouseEnter?: OnMentionEvent;
9
- onMouseMove?: OnMentionEvent;
10
- onSelection?: OnMentionEvent;
11
- selected?: boolean;
12
- }
13
- export default class MentionItem extends React.PureComponent<Props, {}> {
14
- private onMentionSelected;
15
- private onMentionMenuItemMouseMove;
16
- private onMentionMenuItemMouseEnter;
17
- render(): React.JSX.Element;
18
- }
19
- export declare const MentionItemWithRef: React.ForwardRefExoticComponent<Omit<Props, 'forwardedRef'> & React.RefAttributes<HTMLDivElement>>;
@@ -1,50 +0,0 @@
1
- import { type StyledComponent } from '@emotion/styled';
2
- import type { Theme } from '@emotion/react';
3
- import type { DetailedHTMLProps, HTMLAttributes } from 'react';
4
- export interface MentionItemStyleProps {
5
- height?: number;
6
- selected?: boolean;
7
- }
8
- export interface AvatarSectionStyleProps {
9
- restricted?: boolean;
10
- }
11
- export interface NameSectionStyleProps {
12
- restricted?: boolean;
13
- }
14
- export interface InfoSectionStyleProps {
15
- restricted?: boolean;
16
- }
17
- export declare const RowStyle: StyledComponent<{
18
- as?: React.ElementType;
19
- theme?: Theme;
20
- }, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
21
- export declare const AvatarStyle: StyledComponent<{
22
- as?: React.ElementType;
23
- theme?: Theme;
24
- } & AvatarSectionStyleProps, DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
25
- export declare const NameSectionStyle: StyledComponent<{
26
- as?: React.ElementType;
27
- theme?: Theme;
28
- } & NameSectionStyleProps, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
29
- export declare const FullNameStyle: StyledComponent<{
30
- as?: React.ElementType;
31
- theme?: Theme;
32
- }, DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
33
- export declare const InfoSectionStyle: StyledComponent<{
34
- as?: React.ElementType;
35
- theme?: Theme;
36
- } & InfoSectionStyleProps, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
37
- export declare const TimeStyle: StyledComponent<{
38
- as?: React.ElementType;
39
- theme?: Theme;
40
- }, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
41
- export declare const MENTION_ITEM_HEIGHT = 48;
42
- export declare const MENTION_ITEM_HEIGHT_REFRESHED = 44;
43
- export declare const MentionItemStyle: StyledComponent<{
44
- as?: React.ElementType;
45
- theme?: Theme;
46
- } & MentionItemStyleProps, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
47
- export declare const AccessSectionStyle: StyledComponent<{
48
- as?: React.ElementType;
49
- theme?: Theme;
50
- }, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,43 +0,0 @@
1
- import React from 'react';
2
- import { type MentionDescription, type OnMentionEvent } from '../../types';
3
- import type MentionItem from '../MentionItem';
4
- export interface Props {
5
- initialHighlightElement?: React.ReactElement | null;
6
- mentions: MentionDescription[];
7
- onSelection?: OnMentionEvent;
8
- resourceError?: Error;
9
- }
10
- export interface State {
11
- selectedIndex: number;
12
- selectedKey?: string;
13
- }
14
- export interface Items {
15
- [index: string]: MentionItem;
16
- }
17
- export default class MentionList extends React.PureComponent<Props, State> {
18
- private lastMousePosition;
19
- private scrollable?;
20
- private itemsRefs;
21
- constructor(props: Props);
22
- createItemRef(key: string): React.RefObject<HTMLDivElement>;
23
- getItemRef(key: string): React.RefObject<HTMLDivElement> | undefined;
24
- UNSAFE_componentWillReceiveProps(nextProps: Props): void;
25
- componentDidUpdate(): void;
26
- selectNext: () => void;
27
- selectPrevious: () => void;
28
- selectIndex: (index: number, callback?: () => any) => void;
29
- selectId: (id: string, callback?: () => any) => void;
30
- chooseCurrentSelection: () => void;
31
- mentionsCount: () => number;
32
- private revealItem;
33
- /**
34
- * The default selection state is to chose index 0 and not have any particular key selected
35
- */
36
- private setDefaultSelectionState;
37
- private selectIndexOnHover;
38
- private itemSelected;
39
- private renderItems;
40
- private isSelectedMention;
41
- private handleScrollableRef;
42
- render(): React.JSX.Element;
43
- }
@@ -1,10 +0,0 @@
1
- import { type StyledComponent } from '@emotion/styled';
2
- import type { Theme } from '@emotion/react';
3
- import type { DetailedHTMLProps, HTMLAttributes } from 'react';
4
- export interface MentionListStyleProps {
5
- empty?: boolean;
6
- }
7
- export declare const MentionListStyle: StyledComponent<{
8
- theme?: Theme;
9
- as?: React.ElementType;
10
- } & MentionListStyleProps, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- export interface Props {
3
- title?: string;
4
- }
5
- export declare class GenericErrorIllustration extends React.PureComponent<Props, {}> {
6
- render(): React.JSX.Element;
7
- }
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- export interface Props {
3
- error?: Error;
4
- }
5
- export default class MentionListError extends React.PureComponent<Props, {}> {
6
- /**
7
- * Translate the supplied Error into a message suitable for display in the MentionList.
8
- *
9
- * @param error the error to be displayed
10
- */
11
- private static getAdvisedActionMessage;
12
- render(): React.JSX.Element;
13
- }
@@ -1,7 +0,0 @@
1
- import { type StyledComponent } from '@emotion/styled';
2
- import type { Theme } from '@emotion/react';
3
- import type { DetailedHTMLProps, HTMLAttributes } from 'react';
4
- export declare const GenericErrorVisualStyle: StyledComponent<{
5
- theme?: Theme;
6
- as?: React.ElementType;
7
- }, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,77 +0,0 @@
1
- import React from 'react';
2
- import { type IntlShape, type WithIntlProps } from 'react-intl';
3
- import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next/withAnalyticsEvents';
4
- import { type MentionProvider } from '../../api/MentionResource';
5
- import { type PresenceProvider } from '../../api/PresenceResource';
6
- import { type OnMentionEvent } from '../../types';
7
- export interface OnOpen {
8
- (): void;
9
- }
10
- export interface OnClose {
11
- (): void;
12
- }
13
- export type Position = 'above' | 'below' | 'auto';
14
- export interface Props {
15
- offsetX?: number;
16
- offsetY?: number;
17
- onClose?: OnClose;
18
- onOpen?: OnOpen;
19
- onSelection?: OnMentionEvent;
20
- position?: Position;
21
- presenceProvider?: PresenceProvider;
22
- query?: string;
23
- resourceProvider: MentionProvider;
24
- target?: string;
25
- zIndex?: number | string;
26
- }
27
- export interface State {
28
- info?: string;
29
- visible: boolean;
30
- }
31
- /**
32
- * @class MentionPicker
33
- */
34
- export declare class MentionPicker extends React.PureComponent<Props & WithAnalyticsEventsProps & {
35
- intl: IntlShape;
36
- }, State> {
37
- private subscriberKey;
38
- private mentionListRef?;
39
- static defaultProps: {
40
- onSelection: () => void;
41
- onOpen: () => void;
42
- onClose: () => void;
43
- };
44
- constructor(props: Props & WithAnalyticsEventsProps & {
45
- intl: IntlShape;
46
- });
47
- componentDidMount(): void;
48
- UNSAFE_componentWillReceiveProps(nextProps: Props & WithAnalyticsEventsProps): void;
49
- componentWillUnmount(): void;
50
- selectNext: () => void;
51
- selectPrevious: () => void;
52
- selectIndex: (index: number, callback?: () => any) => void;
53
- selectId: (id: string, callback?: () => any) => void;
54
- chooseCurrentSelection: () => void;
55
- mentionsCount: () => number;
56
- private applyPropChanges;
57
- private subscribeResourceProvider;
58
- private unsubscribeResourceProvider;
59
- /**
60
- * Called after the 'visible' state is changed to decide whether the onOpen or onClose
61
- * handlers should be called.
62
- *
63
- * It should be noted that the visible state of the component is not considered in
64
- * this function. Instead the old state and new state should be passed as parameters.
65
- */
66
- private onFilterVisibilityChange;
67
- private filterChange;
68
- private filterError;
69
- private filterInfo;
70
- private handleMentionListRef;
71
- render(): React.JSX.Element;
72
- }
73
- export declare const MentionPickerWithAnalytics: React.ForwardRefExoticComponent<Omit<Omit<WithIntlProps<React.PropsWithChildren<Props & WithAnalyticsEventsProps & {
74
- intl: IntlShape;
75
- }>>, 'ref'> & React.RefAttributes<any>, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
76
- export type MentionPickerWithAnalytics = MentionPicker;
77
- export default MentionPickerWithAnalytics;
@@ -1,14 +0,0 @@
1
- import { type StyledComponent } from '@emotion/styled';
2
- import type { Theme } from '@emotion/react';
3
- import type { DetailedHTMLProps, HTMLAttributes } from 'react';
4
- export interface MentionPickerStyleProps {
5
- visible?: boolean | string;
6
- }
7
- export declare const MentionPickerStyle: StyledComponent<{
8
- theme?: Theme;
9
- as?: React.ElementType;
10
- } & MentionPickerStyleProps, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
11
- export declare const MentionPickerInfoStyle: StyledComponent<{
12
- theme?: Theme;
13
- as?: React.ElementType;
14
- }, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,3 +0,0 @@
1
- import React, { type PropsWithChildren } from 'react';
2
- declare const MessagesIntlProvider: (props: PropsWithChildren<{}>) => React.JSX.Element;
3
- export default MessagesIntlProvider;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- declare const AsyncNoAccessTooltip: React.LazyExoticComponent<({ name, children }: {
3
- children: React.ReactNode;
4
- name: string;
5
- }) => React.JSX.Element>;
6
- export default AsyncNoAccessTooltip;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- type Props = {
3
- children: React.ReactNode;
4
- name: string;
5
- };
6
- export declare const NoAccessTooltip: ({ name, children }: Props) => React.JSX.Element;
7
- export {};
@@ -1,25 +0,0 @@
1
- import React from 'react';
2
- export interface Props {
3
- children?: any;
4
- offsetX?: number;
5
- offsetY?: number;
6
- relativePosition?: 'above' | 'below' | 'auto';
7
- target?: string;
8
- zIndex?: number | string;
9
- }
10
- export default class Popup extends React.PureComponent<Props, {}> {
11
- private portalStyles;
12
- constructor(props: Props);
13
- setPortalStyles(styles: Record<string, string | number | null>): void;
14
- static defaultProps: {
15
- relativePosition: string;
16
- offsetX: number;
17
- offsetY: number;
18
- zIndex: number;
19
- };
20
- componentDidMount(): void;
21
- _applyBelowPosition(): void;
22
- _applyAbovePosition(): void;
23
- _applyAbsolutePosition(): void;
24
- render(): React.JSX.Element;
25
- }
@@ -1,46 +0,0 @@
1
- import React from 'react';
2
- import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
3
- import { type MentionProvider } from '../../api/MentionResource';
4
- import { type PresenceProvider } from '../../api/PresenceResource';
5
- import { type MentionDescription, type OnMentionEvent } from '../../types';
6
- export interface Props {
7
- onSelection?: OnMentionEvent;
8
- presenceProvider?: PresenceProvider;
9
- query?: string;
10
- resourceError?: Error;
11
- resourceProvider: MentionProvider;
12
- }
13
- export interface State {
14
- mentions: MentionDescription[];
15
- resourceError?: Error;
16
- }
17
- export declare class ResourcedMentionListWithoutAnalytics extends React.PureComponent<Props & WithAnalyticsEventsProps, State> {
18
- private subscriberKey;
19
- private mentionListRef?;
20
- constructor(props: Props & WithAnalyticsEventsProps);
21
- componentDidMount(): void;
22
- UNSAFE_componentWillReceiveProps(nextProps: Props): void;
23
- componentWillUnmount(): void;
24
- selectNext: () => void;
25
- selectPrevious: () => void;
26
- selectIndex: (index: number, callback?: () => any) => void;
27
- selectId: (id: string, callback?: () => any) => void;
28
- chooseCurrentSelection: () => void;
29
- mentionsCount: () => number;
30
- private subscribeMentionProvider;
31
- private subscribePresenceProvider;
32
- private unsubscribeMentionProvider;
33
- private unsubscribePresenceProvider;
34
- private applyPropChanges;
35
- private refreshPresences;
36
- private filterChange;
37
- private sendAnalytics;
38
- private filterError;
39
- private presenceUpdate;
40
- private notifySelection;
41
- private handleMentionListRef;
42
- render(): React.JSX.Element;
43
- }
44
- declare const ResourcedMentionList: React.ForwardRefExoticComponent<Omit<Props, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
45
- type ResourcedMentionList = ResourcedMentionListWithoutAnalytics;
46
- export default ResourcedMentionList;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- export interface Props {
3
- children?: React.ReactNode | React.ReactNode[];
4
- }
5
- export default class Scrollable extends React.PureComponent<Props, {}> {
6
- private scrollableDiv?;
7
- revealRef: (ref: React.RefObject<HTMLDivElement>) => void;
8
- private handleRef;
9
- render(): React.JSX.Element;
10
- }
@@ -1,7 +0,0 @@
1
- import { type StyledComponent } from '@emotion/styled';
2
- import type { Theme } from '@emotion/react';
3
- import type { DetailedHTMLProps, HTMLAttributes } from 'react';
4
- export declare const ScrollableStyle: StyledComponent<{
5
- theme?: Theme;
6
- as?: React.ElementType;
7
- }, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,62 +0,0 @@
1
- export declare const messages: {
2
- unknownUserError: {
3
- id: string;
4
- defaultMessage: string;
5
- description: string;
6
- };
7
- noAccessWarning: {
8
- id: string;
9
- defaultMessage: string;
10
- description: string;
11
- };
12
- noAccessLabel: {
13
- id: string;
14
- defaultMessage: string;
15
- description: string;
16
- };
17
- defaultHeadline: {
18
- id: string;
19
- defaultMessage: string;
20
- description: string;
21
- };
22
- defaultAdvisedAction: {
23
- id: string;
24
- defaultMessage: string;
25
- description: string;
26
- };
27
- loginAgain: {
28
- id: string;
29
- defaultMessage: string;
30
- description: string;
31
- };
32
- differentText: {
33
- id: string;
34
- defaultMessage: string;
35
- description: string;
36
- };
37
- memberCountWithoutYou: {
38
- id: string;
39
- defaultMessage: string;
40
- description: string;
41
- };
42
- memberCountWithYou: {
43
- id: string;
44
- defaultMessage: string;
45
- description: string;
46
- };
47
- plus50MembersWithoutYou: {
48
- id: string;
49
- defaultMessage: string;
50
- description: string;
51
- };
52
- plus50MembersWithYou: {
53
- id: string;
54
- defaultMessage: string;
55
- description: string;
56
- };
57
- xProductMentionDescription: {
58
- id: string;
59
- defaultMessage: string;
60
- description: string;
61
- };
62
- };
@@ -1,5 +0,0 @@
1
- export declare const config: {
2
- getRecommendationServiceUrl(baseUrl?: string): string;
3
- getUsersServiceUrl(productKey: string): "/rest/api/3/user/bulk" | "/wiki/rest/api/user/bulk";
4
- getGraphQLUrl(baseUrl?: string): string;
5
- };
@@ -1,3 +0,0 @@
1
- import Mention from './components/Mention';
2
- import ResourcedMention from './components/Mention/ResourcedMention';
3
- export { Mention, ResourcedMention, };
@@ -1,21 +0,0 @@
1
- /**
2
- * NOTE:
3
- *
4
- * This file is automatically generated by Traduki 2.0.
5
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
- */
7
- declare const _default: {
8
- 'fabric.elements.mentions.team.member.50plus': string;
9
- 'fabric.elements.mentions.team.member.50plus.including.you': string;
10
- 'fabric.elements.mentions.team.member.count': string;
11
- 'fabric.elements.mentions.team.member.count.including.you': string;
12
- 'fabric.elements.mentions.xproduct.mention.description': string;
13
- 'fabric.mention.error.defaultAction': string;
14
- 'fabric.mention.error.defaultHeadline': string;
15
- 'fabric.mention.error.differentText': string;
16
- 'fabric.mention.error.loginAgain': string;
17
- 'fabric.mention.noAccess.label': string;
18
- 'fabric.mention.noAccess.warning': string;
19
- 'fabric.mention.unknow.user.error': string;
20
- };
21
- export default _default;
@@ -1,21 +0,0 @@
1
- /**
2
- * NOTE:
3
- *
4
- * This file is automatically generated by Traduki 2.0.
5
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
- */
7
- declare const _default: {
8
- 'fabric.elements.mentions.team.member.50plus': string;
9
- 'fabric.elements.mentions.team.member.50plus.including.you': string;
10
- 'fabric.elements.mentions.team.member.count': string;
11
- 'fabric.elements.mentions.team.member.count.including.you': string;
12
- 'fabric.elements.mentions.xproduct.mention.description': string;
13
- 'fabric.mention.error.defaultAction': string;
14
- 'fabric.mention.error.defaultHeadline': string;
15
- 'fabric.mention.error.differentText': string;
16
- 'fabric.mention.error.loginAgain': string;
17
- 'fabric.mention.noAccess.label': string;
18
- 'fabric.mention.noAccess.warning': string;
19
- 'fabric.mention.unknow.user.error': string;
20
- };
21
- export default _default;
@@ -1,21 +0,0 @@
1
- /**
2
- * NOTE:
3
- *
4
- * This file is automatically generated by Traduki 2.0.
5
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
- */
7
- declare const _default: {
8
- 'fabric.elements.mentions.team.member.50plus': string;
9
- 'fabric.elements.mentions.team.member.50plus.including.you': string;
10
- 'fabric.elements.mentions.team.member.count': string;
11
- 'fabric.elements.mentions.team.member.count.including.you': string;
12
- 'fabric.elements.mentions.xproduct.mention.description': string;
13
- 'fabric.mention.error.defaultAction': string;
14
- 'fabric.mention.error.defaultHeadline': string;
15
- 'fabric.mention.error.differentText': string;
16
- 'fabric.mention.error.loginAgain': string;
17
- 'fabric.mention.noAccess.label': string;
18
- 'fabric.mention.noAccess.warning': string;
19
- 'fabric.mention.unknow.user.error': string;
20
- };
21
- export default _default;
@@ -1,21 +0,0 @@
1
- /**
2
- * NOTE:
3
- *
4
- * This file is automatically generated by Traduki 2.0.
5
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
- */
7
- declare const _default: {
8
- 'fabric.elements.mentions.team.member.50plus': string;
9
- 'fabric.elements.mentions.team.member.50plus.including.you': string;
10
- 'fabric.elements.mentions.team.member.count': string;
11
- 'fabric.elements.mentions.team.member.count.including.you': string;
12
- 'fabric.elements.mentions.xproduct.mention.description': string;
13
- 'fabric.mention.error.defaultAction': string;
14
- 'fabric.mention.error.defaultHeadline': string;
15
- 'fabric.mention.error.differentText': string;
16
- 'fabric.mention.error.loginAgain': string;
17
- 'fabric.mention.noAccess.label': string;
18
- 'fabric.mention.noAccess.warning': string;
19
- 'fabric.mention.unknow.user.error': string;
20
- };
21
- export default _default;
@@ -1,21 +0,0 @@
1
- /**
2
- * NOTE:
3
- *
4
- * This file is automatically generated by Traduki 2.0.
5
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
- */
7
- declare const _default: {
8
- 'fabric.elements.mentions.team.member.50plus': string;
9
- 'fabric.elements.mentions.team.member.50plus.including.you': string;
10
- 'fabric.elements.mentions.team.member.count': string;
11
- 'fabric.elements.mentions.team.member.count.including.you': string;
12
- 'fabric.elements.mentions.xproduct.mention.description': string;
13
- 'fabric.mention.error.defaultAction': string;
14
- 'fabric.mention.error.defaultHeadline': string;
15
- 'fabric.mention.error.differentText': string;
16
- 'fabric.mention.error.loginAgain': string;
17
- 'fabric.mention.noAccess.label': string;
18
- 'fabric.mention.noAccess.warning': string;
19
- 'fabric.mention.unknow.user.error': string;
20
- };
21
- export default _default;
@@ -1,21 +0,0 @@
1
- /**
2
- * NOTE:
3
- *
4
- * This file is automatically generated by Traduki 2.0.
5
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
- */
7
- declare const _default: {
8
- 'fabric.elements.mentions.team.member.50plus': string;
9
- 'fabric.elements.mentions.team.member.50plus.including.you': string;
10
- 'fabric.elements.mentions.team.member.count': string;
11
- 'fabric.elements.mentions.team.member.count.including.you': string;
12
- 'fabric.elements.mentions.xproduct.mention.description': string;
13
- 'fabric.mention.error.defaultAction': string;
14
- 'fabric.mention.error.defaultHeadline': string;
15
- 'fabric.mention.error.differentText': string;
16
- 'fabric.mention.error.loginAgain': string;
17
- 'fabric.mention.noAccess.label': string;
18
- 'fabric.mention.noAccess.warning': string;
19
- 'fabric.mention.unknow.user.error': string;
20
- };
21
- export default _default;
@@ -1,21 +0,0 @@
1
- /**
2
- * NOTE:
3
- *
4
- * This file is automatically generated by Traduki 2.0.
5
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
- */
7
- declare const _default: {
8
- 'fabric.elements.mentions.team.member.50plus': string;
9
- 'fabric.elements.mentions.team.member.50plus.including.you': string;
10
- 'fabric.elements.mentions.team.member.count': string;
11
- 'fabric.elements.mentions.team.member.count.including.you': string;
12
- 'fabric.elements.mentions.xproduct.mention.description': string;
13
- 'fabric.mention.error.defaultAction': string;
14
- 'fabric.mention.error.defaultHeadline': string;
15
- 'fabric.mention.error.differentText': string;
16
- 'fabric.mention.error.loginAgain': string;
17
- 'fabric.mention.noAccess.label': string;
18
- 'fabric.mention.noAccess.warning': string;
19
- 'fabric.mention.unknow.user.error': string;
20
- };
21
- export default _default;