@atlaskit/editor-core 188.10.5 → 188.10.7
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 +7 -0
- package/dist/cjs/labs/next/presets/universal.js +2 -1
- package/dist/cjs/plugins/index.js +0 -7
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/labs/next/presets/universal.js +2 -1
- package/dist/es2019/plugins/index.js +0 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/labs/next/presets/universal.js +2 -1
- package/dist/esm/plugins/index.js +0 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/plugins/index.d.ts +0 -1
- package/dist/types/plugins/insert-block/types.d.ts +2 -4
- package/dist/types/types/editor-props.d.ts +1 -1
- package/dist/types-ts4.5/plugins/index.d.ts +0 -1
- package/dist/types-ts4.5/plugins/insert-block/types.d.ts +2 -4
- package/dist/types-ts4.5/types/editor-props.d.ts +1 -1
- package/package.json +2 -2
- package/report.api.md +1 -9
- package/tmp/api-report-tmp.d.ts +1 -9
- package/dist/cjs/plugins/mentions/analytics.js +0 -157
- package/dist/cjs/plugins/mentions/index.js +0 -142
- package/dist/cjs/plugins/mentions/messages.js +0 -29
- package/dist/cjs/plugins/mentions/nodeviews/mention.js +0 -117
- package/dist/cjs/plugins/mentions/pm-plugins/key.js +0 -8
- package/dist/cjs/plugins/mentions/pm-plugins/main.js +0 -156
- package/dist/cjs/plugins/mentions/pm-plugins/utils.js +0 -23
- package/dist/cjs/plugins/mentions/type-ahead/index.js +0 -362
- package/dist/cjs/plugins/mentions/types.js +0 -5
- package/dist/cjs/plugins/mentions/ui/InviteItem/index.js +0 -76
- package/dist/cjs/plugins/mentions/ui/InviteItem/styles.js +0 -19
- package/dist/cjs/plugins/mentions/ui/Mention/index.js +0 -98
- package/dist/cjs/plugins/mentions/ui/ToolbarMention/index.js +0 -63
- package/dist/cjs/plugins/mentions/utils.js +0 -32
- package/dist/es2019/plugins/mentions/analytics.js +0 -147
- package/dist/es2019/plugins/mentions/index.js +0 -124
- package/dist/es2019/plugins/mentions/messages.js +0 -23
- package/dist/es2019/plugins/mentions/nodeviews/mention.js +0 -80
- package/dist/es2019/plugins/mentions/pm-plugins/key.js +0 -2
- package/dist/es2019/plugins/mentions/pm-plugins/main.js +0 -143
- package/dist/es2019/plugins/mentions/pm-plugins/utils.js +0 -14
- package/dist/es2019/plugins/mentions/type-ahead/index.js +0 -338
- package/dist/es2019/plugins/mentions/types.js +0 -1
- package/dist/es2019/plugins/mentions/ui/InviteItem/index.js +0 -66
- package/dist/es2019/plugins/mentions/ui/InviteItem/styles.js +0 -47
- package/dist/es2019/plugins/mentions/ui/Mention/index.js +0 -71
- package/dist/es2019/plugins/mentions/ui/ToolbarMention/index.js +0 -33
- package/dist/es2019/plugins/mentions/utils.js +0 -20
- package/dist/esm/plugins/mentions/analytics.js +0 -150
- package/dist/esm/plugins/mentions/index.js +0 -130
- package/dist/esm/plugins/mentions/messages.js +0 -23
- package/dist/esm/plugins/mentions/nodeviews/mention.js +0 -107
- package/dist/esm/plugins/mentions/pm-plugins/key.js +0 -2
- package/dist/esm/plugins/mentions/pm-plugins/main.js +0 -148
- package/dist/esm/plugins/mentions/pm-plugins/utils.js +0 -16
- package/dist/esm/plugins/mentions/type-ahead/index.js +0 -350
- package/dist/esm/plugins/mentions/types.js +0 -1
- package/dist/esm/plugins/mentions/ui/InviteItem/index.js +0 -65
- package/dist/esm/plugins/mentions/ui/InviteItem/styles.js +0 -12
- package/dist/esm/plugins/mentions/ui/Mention/index.js +0 -91
- package/dist/esm/plugins/mentions/ui/ToolbarMention/index.js +0 -53
- package/dist/esm/plugins/mentions/utils.js +0 -26
- package/dist/types/plugins/mentions/analytics.d.ts +0 -13
- package/dist/types/plugins/mentions/index.d.ts +0 -19
- package/dist/types/plugins/mentions/messages.d.ts +0 -22
- package/dist/types/plugins/mentions/nodeviews/mention.d.ts +0 -9
- package/dist/types/plugins/mentions/pm-plugins/key.d.ts +0 -3
- package/dist/types/plugins/mentions/pm-plugins/main.d.ts +0 -6
- package/dist/types/plugins/mentions/pm-plugins/utils.d.ts +0 -4
- package/dist/types/plugins/mentions/type-ahead/index.d.ts +0 -17
- package/dist/types/plugins/mentions/types.d.ts +0 -24
- package/dist/types/plugins/mentions/ui/InviteItem/index.d.ts +0 -22
- package/dist/types/plugins/mentions/ui/InviteItem/styles.d.ts +0 -8
- package/dist/types/plugins/mentions/ui/Mention/index.d.ts +0 -19
- package/dist/types/plugins/mentions/ui/ToolbarMention/index.d.ts +0 -13
- package/dist/types/plugins/mentions/utils.d.ts +0 -8
- package/dist/types-ts4.5/plugins/mentions/analytics.d.ts +0 -13
- package/dist/types-ts4.5/plugins/mentions/index.d.ts +0 -22
- package/dist/types-ts4.5/plugins/mentions/messages.d.ts +0 -22
- package/dist/types-ts4.5/plugins/mentions/nodeviews/mention.d.ts +0 -9
- package/dist/types-ts4.5/plugins/mentions/pm-plugins/key.d.ts +0 -3
- package/dist/types-ts4.5/plugins/mentions/pm-plugins/main.d.ts +0 -6
- package/dist/types-ts4.5/plugins/mentions/pm-plugins/utils.d.ts +0 -4
- package/dist/types-ts4.5/plugins/mentions/type-ahead/index.d.ts +0 -17
- package/dist/types-ts4.5/plugins/mentions/types.d.ts +0 -24
- package/dist/types-ts4.5/plugins/mentions/ui/InviteItem/index.d.ts +0 -22
- package/dist/types-ts4.5/plugins/mentions/ui/InviteItem/styles.d.ts +0 -8
- package/dist/types-ts4.5/plugins/mentions/ui/Mention/index.d.ts +0 -19
- package/dist/types-ts4.5/plugins/mentions/ui/ToolbarMention/index.d.ts +0 -13
- package/dist/types-ts4.5/plugins/mentions/utils.d.ts +0 -8
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
-
import { MentionPluginOptions } from '../types';
|
|
4
|
-
import type { InlineNodeViewComponentProps } from '@atlaskit/editor-common/react-node-view';
|
|
5
|
-
export type Props = InlineNodeViewComponentProps & {
|
|
6
|
-
options: MentionPluginOptions | undefined;
|
|
7
|
-
providerFactory: ProviderFactory;
|
|
8
|
-
};
|
|
9
|
-
export declare const MentionNodeView: React.FC<Props>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
-
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
-
import type { Command, PMPluginFactoryParams } from '../../../types';
|
|
4
|
-
import type { MentionPluginOptions, MentionPluginState } from '../types';
|
|
5
|
-
export declare const setContext: (context: ContextIdentifierProvider | undefined) => Command;
|
|
6
|
-
export declare function createMentionPlugin(pmPluginFactoryParams: PMPluginFactoryParams, fireEvent: (payload: any) => void, options?: MentionPluginOptions): SafePlugin<MentionPluginState>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
import type { MentionPluginState } from '../types';
|
|
3
|
-
export declare function getMentionPluginState(state: EditorState): MentionPluginState;
|
|
4
|
-
export declare const canMentionBeCreatedInRange: (from: number, to: number) => (state: EditorState) => boolean;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { MentionDescription } from '@atlaskit/mention/resource';
|
|
3
|
-
import type { TypeAheadHandler, TypeAheadItem } from '@atlaskit/editor-common/types';
|
|
4
|
-
import type { FireElementsChannelEvent } from '../types';
|
|
5
|
-
export declare const mentionToTypeaheadItem: (mention: MentionDescription) => TypeAheadItem;
|
|
6
|
-
export declare function memoize<ResultFn extends (mention: MentionDescription) => TypeAheadItem>(fn: ResultFn): {
|
|
7
|
-
call: ResultFn;
|
|
8
|
-
clear(): void;
|
|
9
|
-
};
|
|
10
|
-
type Props = {
|
|
11
|
-
sanitizePrivateContent?: boolean;
|
|
12
|
-
mentionInsertDisplayName?: boolean;
|
|
13
|
-
HighlightComponent?: React.ComponentType;
|
|
14
|
-
fireEvent: FireElementsChannelEvent;
|
|
15
|
-
};
|
|
16
|
-
export declare const createTypeAheadConfig: ({ sanitizePrivateContent, mentionInsertDisplayName, fireEvent, HighlightComponent, }: Props) => TypeAheadHandler;
|
|
17
|
-
export {};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { MentionDescription, MentionProvider } from '@atlaskit/mention';
|
|
3
|
-
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
4
|
-
import type { AnalyticsEventPayload } from '@atlaskit/analytics-next';
|
|
5
|
-
export interface TeamInfoAttrAnalytics {
|
|
6
|
-
teamId: String;
|
|
7
|
-
includesYou: boolean;
|
|
8
|
-
memberCount: number;
|
|
9
|
-
}
|
|
10
|
-
export interface MentionPluginConfig {
|
|
11
|
-
HighlightComponent?: React.ComponentType;
|
|
12
|
-
insertDisplayName?: boolean;
|
|
13
|
-
}
|
|
14
|
-
export interface MentionPluginOptions extends MentionPluginConfig {
|
|
15
|
-
sanitizePrivateContent?: boolean;
|
|
16
|
-
allowZeroWidthSpaceAfter?: boolean;
|
|
17
|
-
}
|
|
18
|
-
export type MentionPluginState = {
|
|
19
|
-
mentionProvider?: MentionProvider;
|
|
20
|
-
contextIdentifierProvider?: ContextIdentifierProvider;
|
|
21
|
-
mentions?: Array<MentionDescription>;
|
|
22
|
-
canInsertMention?: boolean;
|
|
23
|
-
};
|
|
24
|
-
export type FireElementsChannelEvent = <T extends AnalyticsEventPayload>(payload: T) => void;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { MentionDescription } from '@atlaskit/mention/resource';
|
|
2
|
-
import { UserRole } from '@atlaskit/mention';
|
|
3
|
-
import React, { SyntheticEvent } from 'react';
|
|
4
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
5
|
-
interface OnMentionEvent {
|
|
6
|
-
(mention: MentionDescription, event?: SyntheticEvent<any>): void;
|
|
7
|
-
}
|
|
8
|
-
export declare const INVITE_ITEM_DESCRIPTION: {
|
|
9
|
-
id: string;
|
|
10
|
-
};
|
|
11
|
-
interface Props {
|
|
12
|
-
productName?: string;
|
|
13
|
-
onMount?: () => void;
|
|
14
|
-
onMouseEnter?: OnMentionEvent;
|
|
15
|
-
onSelection?: OnMentionEvent;
|
|
16
|
-
selected?: boolean;
|
|
17
|
-
userRole?: UserRole;
|
|
18
|
-
}
|
|
19
|
-
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
|
|
20
|
-
WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
|
|
21
|
-
};
|
|
22
|
-
export default _default;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const ROW_SIDE_PADDING = 14;
|
|
2
|
-
export declare const rowStyle: import("@emotion/react").SerializedStyles;
|
|
3
|
-
export declare const AVATAR_HEIGHT = 36;
|
|
4
|
-
export declare const avatarStyle: import("@emotion/react").SerializedStyles;
|
|
5
|
-
export declare const nameSectionStyle: import("@emotion/react").SerializedStyles;
|
|
6
|
-
export declare const mentionItemStyle: import("@emotion/react").SerializedStyles;
|
|
7
|
-
export declare const mentionItemSelectedStyle: import("@emotion/react").SerializedStyles;
|
|
8
|
-
export declare const capitalizedStyle: import("@emotion/react").SerializedStyles;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { PureComponent } from 'react';
|
|
2
|
-
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
-
import type { MentionEventHandlers } from '@atlaskit/editor-common/ui';
|
|
4
|
-
export interface MentionProps {
|
|
5
|
-
id: string;
|
|
6
|
-
providers?: ProviderFactory;
|
|
7
|
-
eventHandlers?: MentionEventHandlers;
|
|
8
|
-
text: string;
|
|
9
|
-
accessLevel?: string;
|
|
10
|
-
}
|
|
11
|
-
export default class Mention extends PureComponent<MentionProps, {}> {
|
|
12
|
-
static displayName: string;
|
|
13
|
-
private providerFactory;
|
|
14
|
-
constructor(props: MentionProps);
|
|
15
|
-
componentDidMount(): void;
|
|
16
|
-
componentWillUnmount(): void;
|
|
17
|
-
private renderWithProvider;
|
|
18
|
-
render(): JSX.Element;
|
|
19
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
-
interface Props {
|
|
5
|
-
onInsertMention: () => void;
|
|
6
|
-
editorView?: EditorView;
|
|
7
|
-
isDisabled?: boolean;
|
|
8
|
-
testId?: string;
|
|
9
|
-
}
|
|
10
|
-
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
|
|
11
|
-
WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
|
|
12
|
-
};
|
|
13
|
-
export default _default;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { MentionDescription } from '@atlaskit/mention';
|
|
2
|
-
export declare const isTeamType: (userType: any) => Boolean;
|
|
3
|
-
export declare const isTeamStats: (stat: any) => Boolean;
|
|
4
|
-
export declare const isInviteItem: (mention: MentionDescription) => Boolean;
|
|
5
|
-
/**
|
|
6
|
-
* Actions
|
|
7
|
-
*/
|
|
8
|
-
export declare const shouldKeepInviteItem: (query: string, firstQueryWithoutResults: string) => boolean;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { EventType, GasPayload } from '@atlaskit/analytics-gas-types';
|
|
2
|
-
import type { MentionDescription } from '@atlaskit/mention/resource';
|
|
3
|
-
import type { InviteExperimentCohort, UserRole } from '@atlaskit/mention';
|
|
4
|
-
import type { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
|
|
5
|
-
import type { TeamInfoAttrAnalytics } from './types';
|
|
6
|
-
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
7
|
-
export declare const buildAnalyticsPayload: (actionSubject: string, action: string, eventType: EventType, sessionId: string, otherAttributes?: {}, tags?: Array<string>) => GasPayload;
|
|
8
|
-
export declare const buildTypeAheadCancelPayload: (duration: number, upKeyCount: number, downKeyCount: number, sessionId: string, query?: string) => GasPayload;
|
|
9
|
-
export declare const buildTypeAheadInviteItemViewedPayload: (sessionId: string, contextIdentifierProvider?: ContextIdentifierProvider, userRole?: UserRole) => GasPayload;
|
|
10
|
-
export declare const buildTypeAheadInviteExposurePayload: (sessionId: string, contextIdentifierProvider?: ContextIdentifierProvider, inviteExperimentCohort?: InviteExperimentCohort, userRole?: UserRole) => GasPayload;
|
|
11
|
-
export declare const buildTypeAheadInviteItemClickedPayload: (duration: number, upKeyCount: number, downKeyCount: number, sessionId: string, insertType: SelectItemMode, query?: string, contextIdentifierProvider?: ContextIdentifierProvider, userRole?: UserRole) => GasPayload;
|
|
12
|
-
export declare const buildTypeAheadInsertedPayload: (duration: number, upKeyCount: number, downKeyCount: number, sessionId: string, insertType: SelectItemMode, mention: MentionDescription, mentionList?: MentionDescription[], query?: string, contextIdentifierProvider?: ContextIdentifierProvider) => GasPayload;
|
|
13
|
-
export declare const buildTypeAheadRenderedPayload: (duration: number, userIds: Array<string> | null, query: string, teams: TeamInfoAttrAnalytics[] | null) => GasPayload;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { NextEditorPlugin, OptionalPlugin, TypeAheadHandler } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { MentionPluginOptions, MentionPluginState } from './types';
|
|
3
|
-
import { mentionPluginKey } from './pm-plugins/key';
|
|
4
|
-
import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
5
|
-
import type { TypeAheadPlugin, TypeAheadInputMethod } from '@atlaskit/editor-plugin-type-ahead';
|
|
6
|
-
export { mentionPluginKey };
|
|
7
|
-
export type MentionSharedState = MentionPluginState & {
|
|
8
|
-
typeAheadHandler: TypeAheadHandler;
|
|
9
|
-
};
|
|
10
|
-
export type MentionPlugin = NextEditorPlugin<'mention', {
|
|
11
|
-
pluginConfiguration: MentionPluginOptions | undefined;
|
|
12
|
-
dependencies: [
|
|
13
|
-
OptionalPlugin<typeof analyticsPlugin>,
|
|
14
|
-
TypeAheadPlugin
|
|
15
|
-
];
|
|
16
|
-
sharedState: MentionSharedState | undefined;
|
|
17
|
-
actions: {
|
|
18
|
-
openTypeAhead: (inputMethod: TypeAheadInputMethod) => boolean;
|
|
19
|
-
};
|
|
20
|
-
}>;
|
|
21
|
-
declare const mentionsPlugin: MentionPlugin;
|
|
22
|
-
export default mentionsPlugin;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export declare const messages: {
|
|
2
|
-
inviteItemTitle: {
|
|
3
|
-
id: string;
|
|
4
|
-
defaultMessage: string;
|
|
5
|
-
description: string;
|
|
6
|
-
};
|
|
7
|
-
mentionsAddLabel: {
|
|
8
|
-
id: string;
|
|
9
|
-
defaultMessage: string;
|
|
10
|
-
description: string;
|
|
11
|
-
};
|
|
12
|
-
mentionsIconLabel: {
|
|
13
|
-
id: string;
|
|
14
|
-
defaultMessage: string;
|
|
15
|
-
description: string;
|
|
16
|
-
};
|
|
17
|
-
mentionsNodeLabel: {
|
|
18
|
-
id: string;
|
|
19
|
-
defaultMessage: string;
|
|
20
|
-
description: string;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
-
import { MentionPluginOptions } from '../types';
|
|
4
|
-
import type { InlineNodeViewComponentProps } from '@atlaskit/editor-common/react-node-view';
|
|
5
|
-
export type Props = InlineNodeViewComponentProps & {
|
|
6
|
-
options: MentionPluginOptions | undefined;
|
|
7
|
-
providerFactory: ProviderFactory;
|
|
8
|
-
};
|
|
9
|
-
export declare const MentionNodeView: React.FC<Props>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
-
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
-
import type { Command, PMPluginFactoryParams } from '../../../types';
|
|
4
|
-
import type { MentionPluginOptions, MentionPluginState } from '../types';
|
|
5
|
-
export declare const setContext: (context: ContextIdentifierProvider | undefined) => Command;
|
|
6
|
-
export declare function createMentionPlugin(pmPluginFactoryParams: PMPluginFactoryParams, fireEvent: (payload: any) => void, options?: MentionPluginOptions): SafePlugin<MentionPluginState>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
import type { MentionPluginState } from '../types';
|
|
3
|
-
export declare function getMentionPluginState(state: EditorState): MentionPluginState;
|
|
4
|
-
export declare const canMentionBeCreatedInRange: (from: number, to: number) => (state: EditorState) => boolean;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { MentionDescription } from '@atlaskit/mention/resource';
|
|
3
|
-
import type { TypeAheadHandler, TypeAheadItem } from '@atlaskit/editor-common/types';
|
|
4
|
-
import type { FireElementsChannelEvent } from '../types';
|
|
5
|
-
export declare const mentionToTypeaheadItem: (mention: MentionDescription) => TypeAheadItem;
|
|
6
|
-
export declare function memoize<ResultFn extends (mention: MentionDescription) => TypeAheadItem>(fn: ResultFn): {
|
|
7
|
-
call: ResultFn;
|
|
8
|
-
clear(): void;
|
|
9
|
-
};
|
|
10
|
-
type Props = {
|
|
11
|
-
sanitizePrivateContent?: boolean;
|
|
12
|
-
mentionInsertDisplayName?: boolean;
|
|
13
|
-
HighlightComponent?: React.ComponentType;
|
|
14
|
-
fireEvent: FireElementsChannelEvent;
|
|
15
|
-
};
|
|
16
|
-
export declare const createTypeAheadConfig: ({ sanitizePrivateContent, mentionInsertDisplayName, fireEvent, HighlightComponent, }: Props) => TypeAheadHandler;
|
|
17
|
-
export {};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { MentionDescription, MentionProvider } from '@atlaskit/mention';
|
|
3
|
-
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
4
|
-
import type { AnalyticsEventPayload } from '@atlaskit/analytics-next';
|
|
5
|
-
export interface TeamInfoAttrAnalytics {
|
|
6
|
-
teamId: String;
|
|
7
|
-
includesYou: boolean;
|
|
8
|
-
memberCount: number;
|
|
9
|
-
}
|
|
10
|
-
export interface MentionPluginConfig {
|
|
11
|
-
HighlightComponent?: React.ComponentType;
|
|
12
|
-
insertDisplayName?: boolean;
|
|
13
|
-
}
|
|
14
|
-
export interface MentionPluginOptions extends MentionPluginConfig {
|
|
15
|
-
sanitizePrivateContent?: boolean;
|
|
16
|
-
allowZeroWidthSpaceAfter?: boolean;
|
|
17
|
-
}
|
|
18
|
-
export type MentionPluginState = {
|
|
19
|
-
mentionProvider?: MentionProvider;
|
|
20
|
-
contextIdentifierProvider?: ContextIdentifierProvider;
|
|
21
|
-
mentions?: Array<MentionDescription>;
|
|
22
|
-
canInsertMention?: boolean;
|
|
23
|
-
};
|
|
24
|
-
export type FireElementsChannelEvent = <T extends AnalyticsEventPayload>(payload: T) => void;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { MentionDescription } from '@atlaskit/mention/resource';
|
|
2
|
-
import { UserRole } from '@atlaskit/mention';
|
|
3
|
-
import React, { SyntheticEvent } from 'react';
|
|
4
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
5
|
-
interface OnMentionEvent {
|
|
6
|
-
(mention: MentionDescription, event?: SyntheticEvent<any>): void;
|
|
7
|
-
}
|
|
8
|
-
export declare const INVITE_ITEM_DESCRIPTION: {
|
|
9
|
-
id: string;
|
|
10
|
-
};
|
|
11
|
-
interface Props {
|
|
12
|
-
productName?: string;
|
|
13
|
-
onMount?: () => void;
|
|
14
|
-
onMouseEnter?: OnMentionEvent;
|
|
15
|
-
onSelection?: OnMentionEvent;
|
|
16
|
-
selected?: boolean;
|
|
17
|
-
userRole?: UserRole;
|
|
18
|
-
}
|
|
19
|
-
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
|
|
20
|
-
WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
|
|
21
|
-
};
|
|
22
|
-
export default _default;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const ROW_SIDE_PADDING = 14;
|
|
2
|
-
export declare const rowStyle: import("@emotion/react").SerializedStyles;
|
|
3
|
-
export declare const AVATAR_HEIGHT = 36;
|
|
4
|
-
export declare const avatarStyle: import("@emotion/react").SerializedStyles;
|
|
5
|
-
export declare const nameSectionStyle: import("@emotion/react").SerializedStyles;
|
|
6
|
-
export declare const mentionItemStyle: import("@emotion/react").SerializedStyles;
|
|
7
|
-
export declare const mentionItemSelectedStyle: import("@emotion/react").SerializedStyles;
|
|
8
|
-
export declare const capitalizedStyle: import("@emotion/react").SerializedStyles;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { PureComponent } from 'react';
|
|
2
|
-
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
-
import type { MentionEventHandlers } from '@atlaskit/editor-common/ui';
|
|
4
|
-
export interface MentionProps {
|
|
5
|
-
id: string;
|
|
6
|
-
providers?: ProviderFactory;
|
|
7
|
-
eventHandlers?: MentionEventHandlers;
|
|
8
|
-
text: string;
|
|
9
|
-
accessLevel?: string;
|
|
10
|
-
}
|
|
11
|
-
export default class Mention extends PureComponent<MentionProps, {}> {
|
|
12
|
-
static displayName: string;
|
|
13
|
-
private providerFactory;
|
|
14
|
-
constructor(props: MentionProps);
|
|
15
|
-
componentDidMount(): void;
|
|
16
|
-
componentWillUnmount(): void;
|
|
17
|
-
private renderWithProvider;
|
|
18
|
-
render(): JSX.Element;
|
|
19
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
-
interface Props {
|
|
5
|
-
onInsertMention: () => void;
|
|
6
|
-
editorView?: EditorView;
|
|
7
|
-
isDisabled?: boolean;
|
|
8
|
-
testId?: string;
|
|
9
|
-
}
|
|
10
|
-
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
|
|
11
|
-
WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
|
|
12
|
-
};
|
|
13
|
-
export default _default;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { MentionDescription } from '@atlaskit/mention';
|
|
2
|
-
export declare const isTeamType: (userType: any) => Boolean;
|
|
3
|
-
export declare const isTeamStats: (stat: any) => Boolean;
|
|
4
|
-
export declare const isInviteItem: (mention: MentionDescription) => Boolean;
|
|
5
|
-
/**
|
|
6
|
-
* Actions
|
|
7
|
-
*/
|
|
8
|
-
export declare const shouldKeepInviteItem: (query: string, firstQueryWithoutResults: string) => boolean;
|