@atlaskit/mention 22.1.1 → 22.1.3

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 (99) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/compass.yml +43 -0
  3. package/dist/cjs/i18n/en_ZZ.js +1 -4
  4. package/dist/cjs/util/analytics.js +10 -9
  5. package/dist/cjs/version.json +1 -1
  6. package/dist/es2019/i18n/en_ZZ.js +1 -4
  7. package/dist/es2019/util/analytics.js +2 -1
  8. package/dist/es2019/version.json +1 -1
  9. package/dist/esm/i18n/en_ZZ.js +1 -4
  10. package/dist/esm/util/analytics.js +2 -1
  11. package/dist/esm/version.json +1 -1
  12. package/dist/types/i18n/en_ZZ.d.ts +0 -4
  13. package/dist/types-ts4.5/_constants.d.ts +1 -0
  14. package/dist/types-ts4.5/api/ContextMentionResource.d.ts +23 -0
  15. package/dist/types-ts4.5/api/MentionNameClient.d.ts +11 -0
  16. package/dist/types-ts4.5/api/MentionNameResolver.d.ts +23 -0
  17. package/dist/types-ts4.5/api/MentionResource.d.ts +93 -0
  18. package/dist/types-ts4.5/api/PresenceResource.d.ts +119 -0
  19. package/dist/types-ts4.5/api/TeamMentionResource.d.ts +33 -0
  20. package/dist/types-ts4.5/api/analytics.d.ts +17 -0
  21. package/dist/types-ts4.5/components/LockCircleIcon/index.d.ts +3 -0
  22. package/dist/types-ts4.5/components/Mention/PrimitiveMention.d.ts +7 -0
  23. package/dist/types-ts4.5/components/Mention/ResourcedMention.d.ts +27 -0
  24. package/dist/types-ts4.5/components/Mention/index.d.ts +31 -0
  25. package/dist/types-ts4.5/components/Mention/ufoExperiences.d.ts +9 -0
  26. package/dist/types-ts4.5/components/MentionDescriptionByline/TeamMentionDescriptionByline.d.ts +7 -0
  27. package/dist/types-ts4.5/components/MentionDescriptionByline/UserMentionDescriptionByline.d.ts +5 -0
  28. package/dist/types-ts4.5/components/MentionDescriptionByline/index.d.ts +5 -0
  29. package/dist/types-ts4.5/components/MentionDescriptionByline/styles.d.ts +5 -0
  30. package/dist/types-ts4.5/components/MentionDescriptionByline/types.d.ts +4 -0
  31. package/dist/types-ts4.5/components/MentionItem/MentionHighlightHelpers.d.ts +3 -0
  32. package/dist/types-ts4.5/components/MentionItem/index.d.ts +16 -0
  33. package/dist/types-ts4.5/components/MentionItem/styles.d.ts +46 -0
  34. package/dist/types-ts4.5/components/MentionList/index.d.ts +41 -0
  35. package/dist/types-ts4.5/components/MentionList/styles.d.ts +8 -0
  36. package/dist/types-ts4.5/components/MentionListError/GenericErrorIllustration.d.ts +7 -0
  37. package/dist/types-ts4.5/components/MentionListError/index.d.ts +13 -0
  38. package/dist/types-ts4.5/components/MentionListError/styles.d.ts +17 -0
  39. package/dist/types-ts4.5/components/MentionPicker/index.d.ts +77 -0
  40. package/dist/types-ts4.5/components/MentionPicker/styles.d.ts +12 -0
  41. package/dist/types-ts4.5/components/MessagesIntlProvider/index.d.ts +3 -0
  42. package/dist/types-ts4.5/components/NoAccessTooltip/index.d.ts +6 -0
  43. package/dist/types-ts4.5/components/NoAccessTooltip/main.d.ts +7 -0
  44. package/dist/types-ts4.5/components/Popup/index.d.ts +26 -0
  45. package/dist/types-ts4.5/components/ResourcedMentionList/index.d.ts +46 -0
  46. package/dist/types-ts4.5/components/Scrollable/index.d.ts +11 -0
  47. package/dist/types-ts4.5/components/Scrollable/styles.d.ts +5 -0
  48. package/dist/types-ts4.5/components/i18n.d.ts +57 -0
  49. package/dist/types-ts4.5/config/index.d.ts +5 -0
  50. package/dist/types-ts4.5/element.d.ts +3 -0
  51. package/dist/types-ts4.5/i18n/cs.d.ts +20 -0
  52. package/dist/types-ts4.5/i18n/da.d.ts +20 -0
  53. package/dist/types-ts4.5/i18n/de.d.ts +20 -0
  54. package/dist/types-ts4.5/i18n/en.d.ts +20 -0
  55. package/dist/types-ts4.5/i18n/en_GB.d.ts +20 -0
  56. package/dist/types-ts4.5/i18n/en_ZZ.d.ts +20 -0
  57. package/dist/types-ts4.5/i18n/es.d.ts +20 -0
  58. package/dist/types-ts4.5/i18n/et.d.ts +20 -0
  59. package/dist/types-ts4.5/i18n/fi.d.ts +20 -0
  60. package/dist/types-ts4.5/i18n/fr.d.ts +20 -0
  61. package/dist/types-ts4.5/i18n/hu.d.ts +20 -0
  62. package/dist/types-ts4.5/i18n/index.d.ts +35 -0
  63. package/dist/types-ts4.5/i18n/is.d.ts +24 -0
  64. package/dist/types-ts4.5/i18n/it.d.ts +20 -0
  65. package/dist/types-ts4.5/i18n/ja.d.ts +20 -0
  66. package/dist/types-ts4.5/i18n/ko.d.ts +20 -0
  67. package/dist/types-ts4.5/i18n/languages.d.ts +33 -0
  68. package/dist/types-ts4.5/i18n/nb.d.ts +20 -0
  69. package/dist/types-ts4.5/i18n/nl.d.ts +20 -0
  70. package/dist/types-ts4.5/i18n/pl.d.ts +20 -0
  71. package/dist/types-ts4.5/i18n/pt_BR.d.ts +20 -0
  72. package/dist/types-ts4.5/i18n/pt_PT.d.ts +20 -0
  73. package/dist/types-ts4.5/i18n/ro.d.ts +24 -0
  74. package/dist/types-ts4.5/i18n/ru.d.ts +20 -0
  75. package/dist/types-ts4.5/i18n/sk.d.ts +20 -0
  76. package/dist/types-ts4.5/i18n/sv.d.ts +20 -0
  77. package/dist/types-ts4.5/i18n/th.d.ts +20 -0
  78. package/dist/types-ts4.5/i18n/tr.d.ts +20 -0
  79. package/dist/types-ts4.5/i18n/uk.d.ts +20 -0
  80. package/dist/types-ts4.5/i18n/vi.d.ts +20 -0
  81. package/dist/types-ts4.5/i18n/zh.d.ts +20 -0
  82. package/dist/types-ts4.5/i18n/zh_TW.d.ts +20 -0
  83. package/dist/types-ts4.5/i18n.d.ts +1 -0
  84. package/dist/types-ts4.5/index.d.ts +17 -0
  85. package/dist/types-ts4.5/item.d.ts +2 -0
  86. package/dist/types-ts4.5/resource.d.ts +10 -0
  87. package/dist/types-ts4.5/shared-styles.d.ts +5 -0
  88. package/dist/types-ts4.5/team-resource.d.ts +8 -0
  89. package/dist/types-ts4.5/typeahead.d.ts +3 -0
  90. package/dist/types-ts4.5/types.d.ts +168 -0
  91. package/dist/types-ts4.5/util/analytics.d.ts +30 -0
  92. package/dist/types-ts4.5/util/i18n.d.ts +29 -0
  93. package/dist/types-ts4.5/util/id.d.ts +2 -0
  94. package/dist/types-ts4.5/util/index.d.ts +1 -0
  95. package/dist/types-ts4.5/util/logger.d.ts +4 -0
  96. package/dist/types-ts4.5/util/mouse.d.ts +8 -0
  97. package/package.json +4 -9
  98. package/report.api.md +6 -6
  99. package/tmp/api-report-tmp.d.ts +818 -0
@@ -0,0 +1,31 @@
1
+ import React from 'react';
2
+ import { MentionEventHandler } from '../../types';
3
+ import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next/withAnalyticsEvents';
4
+ export declare const ANALYTICS_HOVER_DELAY = 1000;
5
+ export declare const UNKNOWN_USER_ID = "_|unknown|_";
6
+ export type OwnProps = {
7
+ id: string;
8
+ text: string;
9
+ isHighlighted?: boolean;
10
+ accessLevel?: string;
11
+ onClick?: MentionEventHandler;
12
+ onMouseEnter?: MentionEventHandler;
13
+ onMouseLeave?: MentionEventHandler;
14
+ onHover?: () => void;
15
+ };
16
+ export type Props = OwnProps & WithAnalyticsEventsProps;
17
+ export declare class MentionInternal extends React.PureComponent<Props, {}> {
18
+ private hoverTimeout?;
19
+ constructor(props: Props);
20
+ componentDidMount(): void;
21
+ private handleOnClick;
22
+ private handleOnMouseEnter;
23
+ private handleOnMouseLeave;
24
+ private getMentionType;
25
+ componentWillUnmount(): void;
26
+ renderUnknownUserError(id: string): JSX.Element;
27
+ render(): JSX.Element;
28
+ }
29
+ declare const Mention: React.ForwardRefExoticComponent<Omit<Props, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
30
+ type Mention = MentionInternal;
31
+ export default Mention;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { ConcurrentExperience } from '@atlaskit/ufo';
3
+ export declare const mentionRenderedUfoExperience: ConcurrentExperience;
4
+ export declare class UfoErrorBoundary extends React.Component<{
5
+ id: string;
6
+ }> {
7
+ componentDidCatch(): void;
8
+ render(): React.ReactNode;
9
+ }
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { DescriptionBylineProps } from './types';
3
+ export default class TeamMentionDescriptionByline extends React.PureComponent<DescriptionBylineProps> {
4
+ private renderByline;
5
+ private getBylineComponent;
6
+ render(): JSX.Element | null;
7
+ }
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { DescriptionBylineProps } from './types';
3
+ export default class UserMentionDescriptionByline extends React.PureComponent<DescriptionBylineProps, {}> {
4
+ render(): JSX.Element | null;
5
+ }
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { DescriptionBylineProps } from './types';
3
+ export default class MentionDescriptionByline extends React.PureComponent<DescriptionBylineProps, {}> {
4
+ render(): JSX.Element;
5
+ }
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export declare const DescriptionBylineStyle: import("@emotion/styled").StyledComponent<{
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any> | undefined;
5
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
@@ -0,0 +1,4 @@
1
+ import { MentionDescription } from '../../types';
2
+ export interface DescriptionBylineProps {
3
+ mention: MentionDescription;
4
+ }
@@ -0,0 +1,3 @@
1
+ import { ComponentType } from 'react';
2
+ import { HighlightDetail } from '../../types';
3
+ export declare function renderHighlight(ReactComponent: ComponentType<any>, value?: string, highlights?: HighlightDetail[], prefix?: string): JSX.Element | null;
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { MentionDescription, OnMentionEvent } from '../../types';
3
+ export { MENTION_ITEM_HEIGHT } from './styles';
4
+ export interface Props {
5
+ mention: MentionDescription;
6
+ selected?: boolean;
7
+ onMouseMove?: OnMentionEvent;
8
+ onMouseEnter?: OnMentionEvent;
9
+ onSelection?: OnMentionEvent;
10
+ }
11
+ export default class MentionItem extends React.PureComponent<Props, {}> {
12
+ private onMentionSelected;
13
+ private onMentionMenuItemMouseMove;
14
+ private onMentionMenuItemMouseEnter;
15
+ render(): JSX.Element;
16
+ }
@@ -0,0 +1,46 @@
1
+ /// <reference types="react" />
2
+ export interface MentionItemStyleProps {
3
+ selected?: boolean;
4
+ }
5
+ export interface AvatarSectionStyleProps {
6
+ restricted?: boolean;
7
+ }
8
+ export interface NameSectionStyleProps {
9
+ restricted?: boolean;
10
+ }
11
+ export interface InfoSectionStyleProps {
12
+ restricted?: boolean;
13
+ }
14
+ export declare const RowStyle: import("@emotion/styled").StyledComponent<{
15
+ theme?: import("@emotion/react").Theme | undefined;
16
+ as?: import("react").ElementType<any> | undefined;
17
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
18
+ export declare const AvatarStyle: import("@emotion/styled").StyledComponent<{
19
+ theme?: import("@emotion/react").Theme | undefined;
20
+ as?: import("react").ElementType<any> | undefined;
21
+ } & AvatarSectionStyleProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
22
+ export declare const NameSectionStyle: import("@emotion/styled").StyledComponent<{
23
+ theme?: import("@emotion/react").Theme | undefined;
24
+ as?: import("react").ElementType<any> | undefined;
25
+ } & NameSectionStyleProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
26
+ export declare const FullNameStyle: import("@emotion/styled").StyledComponent<{
27
+ theme?: import("@emotion/react").Theme | undefined;
28
+ as?: import("react").ElementType<any> | undefined;
29
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
30
+ export declare const InfoSectionStyle: import("@emotion/styled").StyledComponent<{
31
+ theme?: import("@emotion/react").Theme | undefined;
32
+ as?: import("react").ElementType<any> | undefined;
33
+ } & InfoSectionStyleProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
34
+ export declare const TimeStyle: import("@emotion/styled").StyledComponent<{
35
+ theme?: import("@emotion/react").Theme | undefined;
36
+ as?: import("react").ElementType<any> | undefined;
37
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
38
+ export declare const MENTION_ITEM_HEIGHT = 48;
39
+ export declare const MentionItemStyle: import("@emotion/styled").StyledComponent<{
40
+ theme?: import("@emotion/react").Theme | undefined;
41
+ as?: import("react").ElementType<any> | undefined;
42
+ } & MentionItemStyleProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
43
+ export declare const AccessSectionStyle: import("@emotion/styled").StyledComponent<{
44
+ theme?: import("@emotion/react").Theme | undefined;
45
+ as?: import("react").ElementType<any> | undefined;
46
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1,41 @@
1
+ import React from 'react';
2
+ import { MentionDescription, OnMentionEvent } from '../../types';
3
+ import MentionItem from '../MentionItem';
4
+ export interface Props {
5
+ mentions: MentionDescription[];
6
+ resourceError?: Error;
7
+ onSelection?: OnMentionEvent;
8
+ initialHighlightElement?: React.ReactElement | null;
9
+ }
10
+ export interface State {
11
+ selectedKey?: string;
12
+ selectedIndex: number;
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 items;
21
+ constructor(props: Props);
22
+ UNSAFE_componentWillReceiveProps(nextProps: Props): void;
23
+ componentDidUpdate(): 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 revealItem;
31
+ /**
32
+ * The default selection state is to chose index 0 and not have any particular key selected
33
+ */
34
+ private setDefaultSelectionState;
35
+ private selectIndexOnHover;
36
+ private itemSelected;
37
+ private renderItems;
38
+ private isSelectedMention;
39
+ private handleScrollableRef;
40
+ render(): JSX.Element;
41
+ }
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ export interface MentionListStyleProps {
3
+ empty?: boolean;
4
+ }
5
+ export declare const MentionListStyle: import("@emotion/styled").StyledComponent<{
6
+ theme?: import("@emotion/react").Theme | undefined;
7
+ as?: import("react").ElementType<any> | undefined;
8
+ } & MentionListStyleProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export interface Props {
3
+ title?: string;
4
+ }
5
+ export declare class GenericErrorIllustration extends React.PureComponent<Props, {}> {
6
+ render(): JSX.Element;
7
+ }
@@ -0,0 +1,13 @@
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(): JSX.Element;
13
+ }
@@ -0,0 +1,17 @@
1
+ /// <reference types="react" />
2
+ export declare const MentionListErrorStyle: import("@emotion/styled").StyledComponent<{
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any> | undefined;
5
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
+ export declare const GenericErrorVisualStyle: import("@emotion/styled").StyledComponent<{
7
+ theme?: import("@emotion/react").Theme | undefined;
8
+ as?: import("react").ElementType<any> | undefined;
9
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
10
+ export declare const MentionListErrorHeadlineStyle: import("@emotion/styled").StyledComponent<{
11
+ theme?: import("@emotion/react").Theme | undefined;
12
+ as?: import("react").ElementType<any> | undefined;
13
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
14
+ export declare const MentionListAdviceStyle: import("@emotion/styled").StyledComponent<{
15
+ theme?: import("@emotion/react").Theme | undefined;
16
+ as?: import("react").ElementType<any> | undefined;
17
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1,77 @@
1
+ import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next/withAnalyticsEvents';
2
+ import React from 'react';
3
+ import { IntlShape } from 'react-intl-next';
4
+ import { MentionProvider } from '../../api/MentionResource';
5
+ import { PresenceProvider } from '../../api/PresenceResource';
6
+ import { 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
+ resourceProvider: MentionProvider;
16
+ presenceProvider?: PresenceProvider;
17
+ query?: string;
18
+ onSelection?: OnMentionEvent;
19
+ onOpen?: OnOpen;
20
+ onClose?: OnClose;
21
+ target?: string;
22
+ position?: Position;
23
+ zIndex?: number | string;
24
+ offsetX?: number;
25
+ offsetY?: number;
26
+ }
27
+ export interface State {
28
+ visible: boolean;
29
+ info?: string;
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(): JSX.Element;
72
+ }
73
+ export declare const MentionPickerWithAnalytics: React.ForwardRefExoticComponent<Omit<Pick<import("react-intl-next").WithIntlProps<React.PropsWithChildren<Props & WithAnalyticsEventsProps & {
74
+ intl: IntlShape;
75
+ }>>, "children" | "createAnalyticsEvent" | keyof Props | "forwardedRef"> & React.RefAttributes<any>, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
76
+ export type MentionPickerWithAnalytics = MentionPicker;
77
+ export default MentionPickerWithAnalytics;
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ export interface MentionPickerStyleProps {
3
+ visible?: boolean | string;
4
+ }
5
+ export declare const MentionPickerStyle: import("@emotion/styled").StyledComponent<{
6
+ theme?: import("@emotion/react").Theme | undefined;
7
+ as?: import("react").ElementType<any> | undefined;
8
+ } & MentionPickerStyleProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
9
+ export declare const MentionPickerInfoStyle: import("@emotion/styled").StyledComponent<{
10
+ theme?: import("@emotion/react").Theme | undefined;
11
+ as?: import("react").ElementType<any> | undefined;
12
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const MessagesIntlProvider: React.FC;
3
+ export default MessagesIntlProvider;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ declare const AsyncNoAccessTooltip: React.LazyExoticComponent<({ name, children }: {
3
+ name: string;
4
+ children: React.ReactNode;
5
+ }) => JSX.Element>;
6
+ export default AsyncNoAccessTooltip;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ type Props = {
3
+ name: string;
4
+ children: React.ReactNode;
5
+ };
6
+ export declare const NoAccessTooltip: ({ name, children }: Props) => JSX.Element;
7
+ export {};
@@ -0,0 +1,26 @@
1
+ import React from 'react';
2
+ export interface Props {
3
+ target?: string;
4
+ relativePosition?: 'above' | 'below' | 'auto';
5
+ offsetX?: number;
6
+ offsetY?: number;
7
+ zIndex?: number | string;
8
+ children?: any;
9
+ }
10
+ export default class Popup extends React.PureComponent<Props, {}> {
11
+ private popup?;
12
+ static defaultProps: {
13
+ relativePosition: string;
14
+ offsetX: number;
15
+ offsetY: number;
16
+ zIndex: number;
17
+ };
18
+ componentDidMount(): void;
19
+ componentDidUpdate(): void;
20
+ componentWillUnmount(): void;
21
+ _applyBelowPosition(): void;
22
+ _applyAbovePosition(): void;
23
+ _applyAbsolutePosition(): void;
24
+ _renderContent(): void;
25
+ render(): JSX.Element;
26
+ }
@@ -0,0 +1,46 @@
1
+ import React from 'react';
2
+ import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
3
+ import { MentionProvider } from '../../api/MentionResource';
4
+ import { PresenceProvider } from '../../api/PresenceResource';
5
+ import { MentionDescription, OnMentionEvent } from '../../types';
6
+ export interface Props {
7
+ resourceProvider: MentionProvider;
8
+ presenceProvider?: PresenceProvider;
9
+ query?: string;
10
+ onSelection?: OnMentionEvent;
11
+ resourceError?: Error;
12
+ }
13
+ export interface State {
14
+ resourceError?: Error;
15
+ mentions: MentionDescription[];
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(): JSX.Element;
43
+ }
44
+ declare const ResourcedMentionList: React.ForwardRefExoticComponent<Omit<Props & WithAnalyticsEventsProps, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
45
+ type ResourcedMentionList = ResourcedMentionListWithoutAnalytics;
46
+ export default ResourcedMentionList;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import MentionItem from '../MentionItem';
3
+ export interface Props {
4
+ children?: React.ReactNode | React.ReactNode[];
5
+ }
6
+ export default class Scrollable extends React.PureComponent<Props, {}> {
7
+ private scrollableDiv?;
8
+ reveal: (child: MentionItem) => void;
9
+ private handleRef;
10
+ render(): JSX.Element;
11
+ }
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export declare const ScrollableStyle: import("@emotion/styled").StyledComponent<{
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any> | undefined;
5
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1,57 @@
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
+ };
@@ -0,0 +1,5 @@
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
+ };
@@ -0,0 +1,3 @@
1
+ import Mention from './components/Mention';
2
+ import ResourcedMention from './components/Mention/ResourcedMention';
3
+ export { Mention, ResourcedMention, };
@@ -0,0 +1,20 @@
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.mention.error.defaultAction': string;
13
+ 'fabric.mention.error.defaultHeadline': string;
14
+ 'fabric.mention.error.differentText': string;
15
+ 'fabric.mention.error.loginAgain': string;
16
+ 'fabric.mention.noAccess.label': string;
17
+ 'fabric.mention.noAccess.warning': string;
18
+ 'fabric.mention.unknow.user.error': string;
19
+ };
20
+ export default _default;
@@ -0,0 +1,20 @@
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.mention.error.defaultAction': string;
13
+ 'fabric.mention.error.defaultHeadline': string;
14
+ 'fabric.mention.error.differentText': string;
15
+ 'fabric.mention.error.loginAgain': string;
16
+ 'fabric.mention.noAccess.label': string;
17
+ 'fabric.mention.noAccess.warning': string;
18
+ 'fabric.mention.unknow.user.error': string;
19
+ };
20
+ export default _default;
@@ -0,0 +1,20 @@
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.mention.error.defaultAction': string;
13
+ 'fabric.mention.error.defaultHeadline': string;
14
+ 'fabric.mention.error.differentText': string;
15
+ 'fabric.mention.error.loginAgain': string;
16
+ 'fabric.mention.noAccess.label': string;
17
+ 'fabric.mention.noAccess.warning': string;
18
+ 'fabric.mention.unknow.user.error': string;
19
+ };
20
+ export default _default;
@@ -0,0 +1,20 @@
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.mention.error.defaultAction': string;
13
+ 'fabric.mention.error.defaultHeadline': string;
14
+ 'fabric.mention.error.differentText': string;
15
+ 'fabric.mention.error.loginAgain': string;
16
+ 'fabric.mention.noAccess.label': string;
17
+ 'fabric.mention.noAccess.warning': string;
18
+ 'fabric.mention.unknow.user.error': string;
19
+ };
20
+ export default _default;
@@ -0,0 +1,20 @@
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.mention.error.defaultAction': string;
13
+ 'fabric.mention.error.defaultHeadline': string;
14
+ 'fabric.mention.error.differentText': string;
15
+ 'fabric.mention.error.loginAgain': string;
16
+ 'fabric.mention.noAccess.label': string;
17
+ 'fabric.mention.noAccess.warning': string;
18
+ 'fabric.mention.unknow.user.error': string;
19
+ };
20
+ export default _default;
@@ -0,0 +1,20 @@
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.mention.error.defaultAction': string;
13
+ 'fabric.mention.error.defaultHeadline': string;
14
+ 'fabric.mention.error.differentText': string;
15
+ 'fabric.mention.error.loginAgain': string;
16
+ 'fabric.mention.noAccess.label': string;
17
+ 'fabric.mention.noAccess.warning': string;
18
+ 'fabric.mention.unknow.user.error': string;
19
+ };
20
+ export default _default;