@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.
- package/CHANGELOG.md +6 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/version.json +1 -1
- package/package.json +3 -11
- package/report.api.md +10 -6
- package/dist/types-ts4.0/_constants.d.ts +0 -1
- package/dist/types-ts4.0/api/ContextMentionResource.d.ts +0 -23
- package/dist/types-ts4.0/api/MentionNameClient.d.ts +0 -11
- package/dist/types-ts4.0/api/MentionNameResolver.d.ts +0 -23
- package/dist/types-ts4.0/api/MentionResource.d.ts +0 -99
- package/dist/types-ts4.0/api/PresenceResource.d.ts +0 -119
- package/dist/types-ts4.0/api/TeamMentionResource.d.ts +0 -35
- package/dist/types-ts4.0/api/analytics.d.ts +0 -17
- package/dist/types-ts4.0/components/LockCircleIcon/index.d.ts +0 -3
- package/dist/types-ts4.0/components/Mention/PrimitiveMention.d.ts +0 -7
- package/dist/types-ts4.0/components/Mention/ResourcedMention.d.ts +0 -27
- package/dist/types-ts4.0/components/Mention/index.d.ts +0 -31
- package/dist/types-ts4.0/components/Mention/ufoExperiences.d.ts +0 -9
- package/dist/types-ts4.0/components/MentionDescriptionByline/TeamMentionDescriptionByline.d.ts +0 -7
- package/dist/types-ts4.0/components/MentionDescriptionByline/UserMentionDescriptionByline.d.ts +0 -5
- package/dist/types-ts4.0/components/MentionDescriptionByline/index.d.ts +0 -5
- package/dist/types-ts4.0/components/MentionDescriptionByline/styles.d.ts +0 -5
- package/dist/types-ts4.0/components/MentionDescriptionByline/types.d.ts +0 -4
- package/dist/types-ts4.0/components/MentionItem/MentionHighlightHelpers.d.ts +0 -3
- package/dist/types-ts4.0/components/MentionItem/index.d.ts +0 -16
- package/dist/types-ts4.0/components/MentionItem/styles.d.ts +0 -46
- package/dist/types-ts4.0/components/MentionList/index.d.ts +0 -41
- package/dist/types-ts4.0/components/MentionList/styles.d.ts +0 -8
- package/dist/types-ts4.0/components/MentionListError/GenericErrorIllustration.d.ts +0 -7
- package/dist/types-ts4.0/components/MentionListError/index.d.ts +0 -13
- package/dist/types-ts4.0/components/MentionListError/styles.d.ts +0 -17
- package/dist/types-ts4.0/components/MentionPicker/index.d.ts +0 -79
- package/dist/types-ts4.0/components/MentionPicker/styles.d.ts +0 -12
- package/dist/types-ts4.0/components/MessagesIntlProvider/index.d.ts +0 -3
- package/dist/types-ts4.0/components/NoAccessTooltip/index.d.ts +0 -6
- package/dist/types-ts4.0/components/NoAccessTooltip/main.d.ts +0 -7
- package/dist/types-ts4.0/components/Popup/index.d.ts +0 -26
- package/dist/types-ts4.0/components/ResourcedMentionList/index.d.ts +0 -50
- package/dist/types-ts4.0/components/Scrollable/index.d.ts +0 -11
- package/dist/types-ts4.0/components/Scrollable/styles.d.ts +0 -5
- package/dist/types-ts4.0/components/TeamMentionHighlight/TeamMentionHighlightController.d.ts +0 -17
- package/dist/types-ts4.0/components/TeamMentionHighlight/index.d.ts +0 -35
- package/dist/types-ts4.0/components/TeamMentionHighlight/lazy.d.ts +0 -4
- package/dist/types-ts4.0/components/TeamMentionHighlight/styles.d.ts +0 -33
- package/dist/types-ts4.0/components/i18n.d.ts +0 -77
- package/dist/types-ts4.0/config/index.d.ts +0 -5
- package/dist/types-ts4.0/element.d.ts +0 -3
- package/dist/types-ts4.0/i18n/cs.d.ts +0 -24
- package/dist/types-ts4.0/i18n/da.d.ts +0 -24
- package/dist/types-ts4.0/i18n/de.d.ts +0 -24
- package/dist/types-ts4.0/i18n/en.d.ts +0 -24
- package/dist/types-ts4.0/i18n/en_GB.d.ts +0 -24
- package/dist/types-ts4.0/i18n/en_ZZ.d.ts +0 -24
- package/dist/types-ts4.0/i18n/es.d.ts +0 -24
- package/dist/types-ts4.0/i18n/et.d.ts +0 -20
- package/dist/types-ts4.0/i18n/fi.d.ts +0 -24
- package/dist/types-ts4.0/i18n/fr.d.ts +0 -24
- package/dist/types-ts4.0/i18n/hu.d.ts +0 -24
- package/dist/types-ts4.0/i18n/index.d.ts +0 -35
- package/dist/types-ts4.0/i18n/is.d.ts +0 -24
- package/dist/types-ts4.0/i18n/it.d.ts +0 -24
- package/dist/types-ts4.0/i18n/ja.d.ts +0 -24
- package/dist/types-ts4.0/i18n/ko.d.ts +0 -24
- package/dist/types-ts4.0/i18n/languages.d.ts +0 -33
- package/dist/types-ts4.0/i18n/nb.d.ts +0 -24
- package/dist/types-ts4.0/i18n/nl.d.ts +0 -24
- package/dist/types-ts4.0/i18n/pl.d.ts +0 -24
- package/dist/types-ts4.0/i18n/pt_BR.d.ts +0 -24
- package/dist/types-ts4.0/i18n/pt_PT.d.ts +0 -20
- package/dist/types-ts4.0/i18n/ro.d.ts +0 -24
- package/dist/types-ts4.0/i18n/ru.d.ts +0 -24
- package/dist/types-ts4.0/i18n/sk.d.ts +0 -20
- package/dist/types-ts4.0/i18n/sv.d.ts +0 -24
- package/dist/types-ts4.0/i18n/th.d.ts +0 -24
- package/dist/types-ts4.0/i18n/tr.d.ts +0 -24
- package/dist/types-ts4.0/i18n/uk.d.ts +0 -24
- package/dist/types-ts4.0/i18n/vi.d.ts +0 -24
- package/dist/types-ts4.0/i18n/zh.d.ts +0 -24
- package/dist/types-ts4.0/i18n/zh_TW.d.ts +0 -24
- package/dist/types-ts4.0/i18n.d.ts +0 -1
- package/dist/types-ts4.0/index.d.ts +0 -19
- package/dist/types-ts4.0/item.d.ts +0 -2
- package/dist/types-ts4.0/resource.d.ts +0 -10
- package/dist/types-ts4.0/shared-styles.d.ts +0 -5
- package/dist/types-ts4.0/spotlight.d.ts +0 -3
- package/dist/types-ts4.0/team-resource.d.ts +0 -8
- package/dist/types-ts4.0/typeahead.d.ts +0 -3
- package/dist/types-ts4.0/types.d.ts +0 -168
- package/dist/types-ts4.0/util/analytics.d.ts +0 -32
- package/dist/types-ts4.0/util/i18n.d.ts +0 -33
- package/dist/types-ts4.0/util/id.d.ts +0 -2
- package/dist/types-ts4.0/util/index.d.ts +0 -1
- package/dist/types-ts4.0/util/logger.d.ts +0 -4
- package/dist/types-ts4.0/util/mouse.d.ts +0 -8
|
@@ -1,46 +0,0 @@
|
|
|
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>, {}>;
|
|
@@ -1,41 +0,0 @@
|
|
|
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) | undefined) => void;
|
|
27
|
-
selectId: (id: string, callback?: (() => any) | undefined) => 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
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
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>, {}>;
|
|
@@ -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(): JSX.Element;
|
|
13
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
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>, {}>;
|
|
@@ -1,79 +0,0 @@
|
|
|
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 declare 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
|
-
showTeamMentionsHighlight?: boolean;
|
|
27
|
-
createTeamPath?: string;
|
|
28
|
-
}
|
|
29
|
-
export interface State {
|
|
30
|
-
visible: boolean;
|
|
31
|
-
info?: string;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* @class MentionPicker
|
|
35
|
-
*/
|
|
36
|
-
export declare class MentionPicker extends React.PureComponent<Props & WithAnalyticsEventsProps & {
|
|
37
|
-
intl: IntlShape;
|
|
38
|
-
}, State> {
|
|
39
|
-
private subscriberKey;
|
|
40
|
-
private mentionListRef?;
|
|
41
|
-
static defaultProps: {
|
|
42
|
-
onSelection: () => void;
|
|
43
|
-
onOpen: () => void;
|
|
44
|
-
onClose: () => void;
|
|
45
|
-
};
|
|
46
|
-
constructor(props: Props & WithAnalyticsEventsProps & {
|
|
47
|
-
intl: IntlShape;
|
|
48
|
-
});
|
|
49
|
-
componentDidMount(): void;
|
|
50
|
-
UNSAFE_componentWillReceiveProps(nextProps: Props & WithAnalyticsEventsProps): void;
|
|
51
|
-
componentWillUnmount(): void;
|
|
52
|
-
selectNext: () => void;
|
|
53
|
-
selectPrevious: () => void;
|
|
54
|
-
selectIndex: (index: number, callback?: (() => any) | undefined) => void;
|
|
55
|
-
selectId: (id: string, callback?: (() => any) | undefined) => void;
|
|
56
|
-
chooseCurrentSelection: () => void;
|
|
57
|
-
mentionsCount: () => number;
|
|
58
|
-
private applyPropChanges;
|
|
59
|
-
private subscribeResourceProvider;
|
|
60
|
-
private unsubscribeResourceProvider;
|
|
61
|
-
/**
|
|
62
|
-
* Called after the 'visible' state is changed to decide whether the onOpen or onClose
|
|
63
|
-
* handlers should be called.
|
|
64
|
-
*
|
|
65
|
-
* It should be noted that the visible state of the component is not considered in
|
|
66
|
-
* this function. Instead the old state and new state should be passed as parameters.
|
|
67
|
-
*/
|
|
68
|
-
private onFilterVisibilityChange;
|
|
69
|
-
private filterChange;
|
|
70
|
-
private filterError;
|
|
71
|
-
private filterInfo;
|
|
72
|
-
private handleMentionListRef;
|
|
73
|
-
render(): JSX.Element;
|
|
74
|
-
}
|
|
75
|
-
export declare const MentionPickerWithAnalytics: React.ForwardRefExoticComponent<Omit<Pick<import("react-intl-next").WithIntlProps<React.PropsWithChildren<Props & WithAnalyticsEventsProps & {
|
|
76
|
-
intl: IntlShape;
|
|
77
|
-
}>>, "children" | "createAnalyticsEvent" | keyof Props | "forwardedRef"> & React.RefAttributes<any>, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
|
|
78
|
-
export declare type MentionPickerWithAnalytics = MentionPicker;
|
|
79
|
-
export default MentionPickerWithAnalytics;
|
|
@@ -1,12 +0,0 @@
|
|
|
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>, {}>;
|
|
@@ -1,26 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
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
|
-
isTeamMentionHighlightEnabled?: boolean;
|
|
13
|
-
createTeamPath?: string;
|
|
14
|
-
}
|
|
15
|
-
export interface State {
|
|
16
|
-
resourceError?: Error;
|
|
17
|
-
mentions: MentionDescription[];
|
|
18
|
-
}
|
|
19
|
-
export declare class ResourcedMentionListWithoutAnalytics extends React.PureComponent<Props & WithAnalyticsEventsProps, State> {
|
|
20
|
-
private subscriberKey;
|
|
21
|
-
private mentionListRef?;
|
|
22
|
-
constructor(props: Props & WithAnalyticsEventsProps);
|
|
23
|
-
componentDidMount(): void;
|
|
24
|
-
UNSAFE_componentWillReceiveProps(nextProps: Props): void;
|
|
25
|
-
componentWillUnmount(): void;
|
|
26
|
-
selectNext: () => void;
|
|
27
|
-
selectPrevious: () => void;
|
|
28
|
-
selectIndex: (index: number, callback?: (() => any) | undefined) => void;
|
|
29
|
-
selectId: (id: string, callback?: (() => any) | undefined) => void;
|
|
30
|
-
chooseCurrentSelection: () => void;
|
|
31
|
-
mentionsCount: () => number;
|
|
32
|
-
private subscribeMentionProvider;
|
|
33
|
-
private subscribePresenceProvider;
|
|
34
|
-
private unsubscribeMentionProvider;
|
|
35
|
-
private unsubscribePresenceProvider;
|
|
36
|
-
private applyPropChanges;
|
|
37
|
-
private refreshPresences;
|
|
38
|
-
private filterChange;
|
|
39
|
-
private sendAnalytics;
|
|
40
|
-
private filterError;
|
|
41
|
-
private presenceUpdate;
|
|
42
|
-
private notifySelection;
|
|
43
|
-
private handleMentionListRef;
|
|
44
|
-
private closeHighlight;
|
|
45
|
-
private mentionsHighlight;
|
|
46
|
-
render(): JSX.Element;
|
|
47
|
-
}
|
|
48
|
-
declare const ResourcedMentionList: React.ForwardRefExoticComponent<Omit<Props & WithAnalyticsEventsProps, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
|
|
49
|
-
declare type ResourcedMentionList = ResourcedMentionListWithoutAnalytics;
|
|
50
|
-
export default ResourcedMentionList;
|
|
@@ -1,11 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
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>, {}>;
|
package/dist/types-ts4.0/components/TeamMentionHighlight/TeamMentionHighlightController.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
interface TeamMentionState {
|
|
2
|
-
seenCount: number;
|
|
3
|
-
dontShow: boolean;
|
|
4
|
-
}
|
|
5
|
-
export declare const mentionHighlightLocalStorageKey = "atlassian.people.context.team.mention.highlight";
|
|
6
|
-
export default class TeamMentionHighlightController {
|
|
7
|
-
private static readFromLocalStorage;
|
|
8
|
-
private static saveToLocalStorage;
|
|
9
|
-
private static markAsDone;
|
|
10
|
-
static isHighlightEnabled: () => boolean;
|
|
11
|
-
static registerRender: () => TeamMentionState;
|
|
12
|
-
static getSeenCount: () => number;
|
|
13
|
-
static registerCreateLinkClick: () => void;
|
|
14
|
-
static registerTeamMention: () => void;
|
|
15
|
-
static registerClosed: () => void;
|
|
16
|
-
}
|
|
17
|
-
export {};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import React, { RefObject } from 'react';
|
|
2
|
-
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
3
|
-
export interface OwnProps {
|
|
4
|
-
createTeamLink?: string;
|
|
5
|
-
/** Callback to track the event where user click on x icon */
|
|
6
|
-
onClose: () => void;
|
|
7
|
-
onCreateTeamLinkClick?: () => void;
|
|
8
|
-
onViewed?: () => void;
|
|
9
|
-
}
|
|
10
|
-
export interface State {
|
|
11
|
-
isHighlightHidden: boolean;
|
|
12
|
-
}
|
|
13
|
-
export declare type Props = OwnProps & WithAnalyticsEventsProps;
|
|
14
|
-
export declare class TeamMentionHighlightInternal extends React.Component<Props, State> {
|
|
15
|
-
elWrapper: RefObject<HTMLDivElement>;
|
|
16
|
-
elCloseWrapper: RefObject<HTMLDivElement>;
|
|
17
|
-
elCreateTeamWrapper: RefObject<HTMLDivElement>;
|
|
18
|
-
static defaultProps: {
|
|
19
|
-
createTeamLink: string;
|
|
20
|
-
};
|
|
21
|
-
constructor(props: Props);
|
|
22
|
-
componentDidMount(): void;
|
|
23
|
-
componentWillUnmount(): void;
|
|
24
|
-
onCreateTeamLinkClick: () => void;
|
|
25
|
-
private preventClickOnCard;
|
|
26
|
-
private addEventHandler;
|
|
27
|
-
private removeEventHandler;
|
|
28
|
-
onCloseClick: () => void;
|
|
29
|
-
render(): JSX.Element | null;
|
|
30
|
-
}
|
|
31
|
-
declare const TeamMentionHighlight: React.ForwardRefExoticComponent<Pick<Omit<Props, keyof WithAnalyticsEventsProps>, "onClose" | "onCreateTeamLinkClick" | "onViewed"> & Partial<Pick<Omit<Props, keyof WithAnalyticsEventsProps>, "createTeamLink">> & Partial<Pick<{
|
|
32
|
-
createTeamLink: string;
|
|
33
|
-
}, never>> & React.RefAttributes<any>>;
|
|
34
|
-
declare type TeamMentionHighlight = TeamMentionHighlightInternal;
|
|
35
|
-
export default TeamMentionHighlight;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare const LazyTeamMentionHighlight: React.LazyExoticComponent<React.ForwardRefExoticComponent<Pick<Omit<import("./").Props, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "onClose" | "onCreateTeamLinkClick" | "onViewed"> & Partial<Pick<Omit<import("./").Props, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "createTeamLink">> & Partial<Pick<{
|
|
3
|
-
createTeamLink: string;
|
|
4
|
-
}, never>> & React.RefAttributes<any>>>;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const Actions: 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 Title: 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 Heading: 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 Card: 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 Content: import("@emotion/styled").StyledComponent<{
|
|
19
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
20
|
-
as?: import("react").ElementType<any> | undefined;
|
|
21
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
22
|
-
export declare const Section: import("@emotion/styled").StyledComponent<{
|
|
23
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
24
|
-
as?: import("react").ElementType<any> | undefined;
|
|
25
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
26
|
-
export declare const Aside: 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<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
30
|
-
export declare const Body: import("@emotion/styled").StyledComponent<{
|
|
31
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
32
|
-
as?: import("react").ElementType<any> | undefined;
|
|
33
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,77 +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
|
-
TeamMentionHighlightTitle: {
|
|
58
|
-
id: string;
|
|
59
|
-
defaultMessage: string;
|
|
60
|
-
description: string;
|
|
61
|
-
};
|
|
62
|
-
TeamMentionHighlightDescription: {
|
|
63
|
-
id: string;
|
|
64
|
-
defaultMessage: string;
|
|
65
|
-
description: string;
|
|
66
|
-
};
|
|
67
|
-
TeamMentionHighlightDescriptionLink: {
|
|
68
|
-
id: string;
|
|
69
|
-
defaultMessage: string;
|
|
70
|
-
description: string;
|
|
71
|
-
};
|
|
72
|
-
TeamMentionHighlightCloseButtonToolTip: {
|
|
73
|
-
id: string;
|
|
74
|
-
defaultMessage: string;
|
|
75
|
-
description: string;
|
|
76
|
-
};
|
|
77
|
-
};
|
|
@@ -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,24 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
'fabric.mention.unknow.user.error': string;
|
|
3
|
-
'fabric.mention.noAccess.warning': string;
|
|
4
|
-
'fabric.mention.noAccess.label': string;
|
|
5
|
-
'fabric.mention.error.defaultHeadline': string;
|
|
6
|
-
'fabric.mention.error.defaultAction': string;
|
|
7
|
-
'fabric.mention.error.loginAgain': string;
|
|
8
|
-
'fabric.mention.error.differentText': string;
|
|
9
|
-
'fabric.elements.mentions.team.member.count': string;
|
|
10
|
-
'fabric.elements.mentions.team.member.count.including.you': string;
|
|
11
|
-
'fabric.elements.mentions.team.member.50plus': string;
|
|
12
|
-
'fabric.elements.mentions.team.member.50plus.including.you': string;
|
|
13
|
-
'fabric.elements.mentions.team.mention.highlight.title': string;
|
|
14
|
-
'fabric.elements.mentions.team.mention.highlight.description': string;
|
|
15
|
-
'fabric.elements.mentions.team.mention.highlight.description.link': string;
|
|
16
|
-
'fabric.elements.mentions.team.meantion.highlight.close.button.tooltip': string;
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* NOTE:
|
|
20
|
-
*
|
|
21
|
-
* This file is automatically generated by i18n-tools.
|
|
22
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
23
|
-
*/
|
|
24
|
-
export default _default;
|