@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.
- package/CHANGELOG.md +78 -0
- package/analytics/package.json +1 -8
- package/constants/package.json +1 -8
- package/context-mention-resource/package.json +1 -8
- package/dist/cjs/api/ContextMentionResource.js +14 -0
- package/dist/cjs/api/MentionResource.js +6 -0
- package/dist/cjs/components/DisabledMentionTooltip/index.js +20 -0
- package/dist/cjs/components/DisabledMentionTooltip/main.js +24 -0
- package/dist/cjs/components/Mention/PrimitiveMention.js +8 -1
- package/dist/cjs/components/Mention/index.js +51 -12
- package/dist/cjs/components/MentionAvatar/index.js +6 -1
- package/dist/cjs/types.js +10 -0
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/es2019/api/ContextMentionResource.js +12 -0
- package/dist/es2019/api/MentionResource.js +4 -0
- package/dist/es2019/components/DisabledMentionTooltip/index.js +7 -0
- package/dist/es2019/components/DisabledMentionTooltip/main.js +14 -0
- package/dist/es2019/components/Mention/PrimitiveMention.js +8 -0
- package/dist/es2019/components/Mention/index.js +50 -12
- package/dist/es2019/components/MentionAvatar/index.js +7 -2
- package/dist/es2019/types.js +12 -0
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/esm/api/ContextMentionResource.js +14 -0
- package/dist/esm/api/MentionResource.js +6 -0
- package/dist/esm/components/DisabledMentionTooltip/index.js +9 -0
- package/dist/esm/components/DisabledMentionTooltip/main.js +17 -0
- package/dist/esm/components/Mention/PrimitiveMention.js +8 -1
- package/dist/esm/components/Mention/index.js +51 -12
- package/dist/esm/components/MentionAvatar/index.js +7 -2
- package/dist/esm/types.js +12 -0
- package/dist/esm/util/analytics.js +1 -1
- package/dist/types/api/ContextMentionResource.d.ts +6 -1
- package/dist/types/api/MentionResource.d.ts +2 -1
- package/dist/types/components/DisabledMentionTooltip/index.d.ts +6 -0
- package/dist/types/components/DisabledMentionTooltip/main.d.ts +12 -0
- package/dist/types/components/Mention/index.d.ts +12 -0
- package/dist/types/types.d.ts +67 -1
- package/docs/0-intro.tsx +21 -0
- package/element/package.json +1 -8
- package/item/package.json +1 -8
- package/mention/package.json +1 -8
- package/mention-item/package.json +1 -8
- package/mention-item/styles/package.json +1 -8
- package/mention-list/package.json +1 -8
- package/mention-name-client/package.json +1 -8
- package/mention-name-resolver/package.json +1 -8
- package/mention-picker/package.json +1 -8
- package/mention-resource/package.json +1 -8
- package/package.json +10 -5
- package/presence-resource/package.json +1 -8
- package/resource/package.json +1 -8
- package/resourced-mention/package.json +1 -8
- package/resourced-mention-list/package.json +1 -8
- package/shared-styles/package.json +1 -8
- package/team-mention-resource/package.json +1 -8
- package/team-resource/package.json +1 -8
- package/typeahead/package.json +1 -8
- package/types/package.json +1 -8
- package/dist/types-ts4.5/_constants.d.ts +0 -1
- package/dist/types-ts4.5/api/ContextMentionResource.d.ts +0 -23
- package/dist/types-ts4.5/api/MentionNameClient.d.ts +0 -11
- package/dist/types-ts4.5/api/MentionNameResolver.d.ts +0 -38
- package/dist/types-ts4.5/api/MentionResource.d.ts +0 -105
- package/dist/types-ts4.5/api/PresenceResource.d.ts +0 -158
- package/dist/types-ts4.5/api/TeamMentionResource.d.ts +0 -33
- package/dist/types-ts4.5/api/analytics.d.ts +0 -17
- package/dist/types-ts4.5/components/LockCircleIcon/index.d.ts +0 -7
- package/dist/types-ts4.5/components/Mention/PrimitiveMention.d.ts +0 -7
- package/dist/types-ts4.5/components/Mention/ResourcedMention.d.ts +0 -29
- package/dist/types-ts4.5/components/Mention/index.d.ts +0 -33
- package/dist/types-ts4.5/components/Mention/ufoExperiences.d.ts +0 -9
- package/dist/types-ts4.5/components/MentionAvatar/index.d.ts +0 -8
- package/dist/types-ts4.5/components/MentionDescriptionByline/TeamMentionDescriptionByline.d.ts +0 -7
- package/dist/types-ts4.5/components/MentionDescriptionByline/UserMentionDescriptionByline.d.ts +0 -5
- package/dist/types-ts4.5/components/MentionDescriptionByline/index.d.ts +0 -5
- package/dist/types-ts4.5/components/MentionDescriptionByline/styles.d.ts +0 -7
- package/dist/types-ts4.5/components/MentionDescriptionByline/types.d.ts +0 -4
- package/dist/types-ts4.5/components/MentionItem/MentionHighlightHelpers.d.ts +0 -3
- package/dist/types-ts4.5/components/MentionItem/index.d.ts +0 -19
- package/dist/types-ts4.5/components/MentionItem/styles.d.ts +0 -50
- package/dist/types-ts4.5/components/MentionList/index.d.ts +0 -43
- package/dist/types-ts4.5/components/MentionList/styles.d.ts +0 -10
- package/dist/types-ts4.5/components/MentionListError/GenericErrorIllustration.d.ts +0 -7
- package/dist/types-ts4.5/components/MentionListError/index.d.ts +0 -13
- package/dist/types-ts4.5/components/MentionListError/styles.d.ts +0 -7
- package/dist/types-ts4.5/components/MentionPicker/index.d.ts +0 -77
- package/dist/types-ts4.5/components/MentionPicker/styles.d.ts +0 -14
- package/dist/types-ts4.5/components/MessagesIntlProvider/index.d.ts +0 -3
- package/dist/types-ts4.5/components/NoAccessTooltip/index.d.ts +0 -6
- package/dist/types-ts4.5/components/NoAccessTooltip/main.d.ts +0 -7
- package/dist/types-ts4.5/components/Popup/index.d.ts +0 -25
- package/dist/types-ts4.5/components/ResourcedMentionList/index.d.ts +0 -46
- package/dist/types-ts4.5/components/Scrollable/index.d.ts +0 -10
- package/dist/types-ts4.5/components/Scrollable/styles.d.ts +0 -7
- package/dist/types-ts4.5/components/i18n.d.ts +0 -62
- package/dist/types-ts4.5/config/index.d.ts +0 -5
- package/dist/types-ts4.5/element.d.ts +0 -3
- package/dist/types-ts4.5/i18n/cs.d.ts +0 -21
- package/dist/types-ts4.5/i18n/da.d.ts +0 -21
- package/dist/types-ts4.5/i18n/de.d.ts +0 -21
- package/dist/types-ts4.5/i18n/en.d.ts +0 -21
- package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -21
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -21
- package/dist/types-ts4.5/i18n/es.d.ts +0 -21
- package/dist/types-ts4.5/i18n/et.d.ts +0 -20
- package/dist/types-ts4.5/i18n/fi.d.ts +0 -21
- package/dist/types-ts4.5/i18n/fr.d.ts +0 -21
- package/dist/types-ts4.5/i18n/hr.d.ts +0 -21
- package/dist/types-ts4.5/i18n/hu.d.ts +0 -21
- package/dist/types-ts4.5/i18n/index.d.ts +0 -37
- package/dist/types-ts4.5/i18n/is.d.ts +0 -24
- package/dist/types-ts4.5/i18n/it.d.ts +0 -21
- package/dist/types-ts4.5/i18n/ja.d.ts +0 -21
- package/dist/types-ts4.5/i18n/ko.d.ts +0 -21
- package/dist/types-ts4.5/i18n/languages.d.ts +0 -34
- package/dist/types-ts4.5/i18n/nb.d.ts +0 -21
- package/dist/types-ts4.5/i18n/nl.d.ts +0 -21
- package/dist/types-ts4.5/i18n/pl.d.ts +0 -21
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -21
- package/dist/types-ts4.5/i18n/pt_PT.d.ts +0 -20
- package/dist/types-ts4.5/i18n/ro.d.ts +0 -24
- package/dist/types-ts4.5/i18n/ru.d.ts +0 -21
- package/dist/types-ts4.5/i18n/sk.d.ts +0 -20
- package/dist/types-ts4.5/i18n/sl.d.ts +0 -21
- package/dist/types-ts4.5/i18n/sr_RS.d.ts +0 -21
- package/dist/types-ts4.5/i18n/sr_YR.d.ts +0 -21
- package/dist/types-ts4.5/i18n/sv.d.ts +0 -21
- package/dist/types-ts4.5/i18n/th.d.ts +0 -21
- package/dist/types-ts4.5/i18n/tr.d.ts +0 -21
- package/dist/types-ts4.5/i18n/uk.d.ts +0 -21
- package/dist/types-ts4.5/i18n/vi.d.ts +0 -21
- package/dist/types-ts4.5/i18n/zh.d.ts +0 -21
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -21
- package/dist/types-ts4.5/index.d.ts +0 -17
- package/dist/types-ts4.5/item.d.ts +0 -2
- package/dist/types-ts4.5/resource.d.ts +0 -10
- package/dist/types-ts4.5/shared-styles.d.ts +0 -5
- package/dist/types-ts4.5/team-resource.d.ts +0 -8
- package/dist/types-ts4.5/typeahead.d.ts +0 -3
- package/dist/types-ts4.5/types.d.ts +0 -254
- package/dist/types-ts4.5/util/analytics.d.ts +0 -12
- package/dist/types-ts4.5/util/atl-attribution.d.ts +0 -8
- package/dist/types-ts4.5/util/i18n.d.ts +0 -29
- package/dist/types-ts4.5/util/id.d.ts +0 -2
- package/dist/types-ts4.5/util/index.d.ts +0 -1
- package/dist/types-ts4.5/util/logger.d.ts +0 -4
- 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 {};
|
package/dist/types-ts4.5/components/MentionDescriptionByline/TeamMentionDescriptionByline.d.ts
DELETED
|
@@ -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,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,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,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,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,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;
|