@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.
Files changed (89) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/cjs/labs/next/presets/universal.js +2 -1
  3. package/dist/cjs/plugins/index.js +0 -7
  4. package/dist/cjs/version-wrapper.js +1 -1
  5. package/dist/es2019/labs/next/presets/universal.js +2 -1
  6. package/dist/es2019/plugins/index.js +0 -1
  7. package/dist/es2019/version-wrapper.js +1 -1
  8. package/dist/esm/labs/next/presets/universal.js +2 -1
  9. package/dist/esm/plugins/index.js +0 -1
  10. package/dist/esm/version-wrapper.js +1 -1
  11. package/dist/types/plugins/index.d.ts +0 -1
  12. package/dist/types/plugins/insert-block/types.d.ts +2 -4
  13. package/dist/types/types/editor-props.d.ts +1 -1
  14. package/dist/types-ts4.5/plugins/index.d.ts +0 -1
  15. package/dist/types-ts4.5/plugins/insert-block/types.d.ts +2 -4
  16. package/dist/types-ts4.5/types/editor-props.d.ts +1 -1
  17. package/package.json +2 -2
  18. package/report.api.md +1 -9
  19. package/tmp/api-report-tmp.d.ts +1 -9
  20. package/dist/cjs/plugins/mentions/analytics.js +0 -157
  21. package/dist/cjs/plugins/mentions/index.js +0 -142
  22. package/dist/cjs/plugins/mentions/messages.js +0 -29
  23. package/dist/cjs/plugins/mentions/nodeviews/mention.js +0 -117
  24. package/dist/cjs/plugins/mentions/pm-plugins/key.js +0 -8
  25. package/dist/cjs/plugins/mentions/pm-plugins/main.js +0 -156
  26. package/dist/cjs/plugins/mentions/pm-plugins/utils.js +0 -23
  27. package/dist/cjs/plugins/mentions/type-ahead/index.js +0 -362
  28. package/dist/cjs/plugins/mentions/types.js +0 -5
  29. package/dist/cjs/plugins/mentions/ui/InviteItem/index.js +0 -76
  30. package/dist/cjs/plugins/mentions/ui/InviteItem/styles.js +0 -19
  31. package/dist/cjs/plugins/mentions/ui/Mention/index.js +0 -98
  32. package/dist/cjs/plugins/mentions/ui/ToolbarMention/index.js +0 -63
  33. package/dist/cjs/plugins/mentions/utils.js +0 -32
  34. package/dist/es2019/plugins/mentions/analytics.js +0 -147
  35. package/dist/es2019/plugins/mentions/index.js +0 -124
  36. package/dist/es2019/plugins/mentions/messages.js +0 -23
  37. package/dist/es2019/plugins/mentions/nodeviews/mention.js +0 -80
  38. package/dist/es2019/plugins/mentions/pm-plugins/key.js +0 -2
  39. package/dist/es2019/plugins/mentions/pm-plugins/main.js +0 -143
  40. package/dist/es2019/plugins/mentions/pm-plugins/utils.js +0 -14
  41. package/dist/es2019/plugins/mentions/type-ahead/index.js +0 -338
  42. package/dist/es2019/plugins/mentions/types.js +0 -1
  43. package/dist/es2019/plugins/mentions/ui/InviteItem/index.js +0 -66
  44. package/dist/es2019/plugins/mentions/ui/InviteItem/styles.js +0 -47
  45. package/dist/es2019/plugins/mentions/ui/Mention/index.js +0 -71
  46. package/dist/es2019/plugins/mentions/ui/ToolbarMention/index.js +0 -33
  47. package/dist/es2019/plugins/mentions/utils.js +0 -20
  48. package/dist/esm/plugins/mentions/analytics.js +0 -150
  49. package/dist/esm/plugins/mentions/index.js +0 -130
  50. package/dist/esm/plugins/mentions/messages.js +0 -23
  51. package/dist/esm/plugins/mentions/nodeviews/mention.js +0 -107
  52. package/dist/esm/plugins/mentions/pm-plugins/key.js +0 -2
  53. package/dist/esm/plugins/mentions/pm-plugins/main.js +0 -148
  54. package/dist/esm/plugins/mentions/pm-plugins/utils.js +0 -16
  55. package/dist/esm/plugins/mentions/type-ahead/index.js +0 -350
  56. package/dist/esm/plugins/mentions/types.js +0 -1
  57. package/dist/esm/plugins/mentions/ui/InviteItem/index.js +0 -65
  58. package/dist/esm/plugins/mentions/ui/InviteItem/styles.js +0 -12
  59. package/dist/esm/plugins/mentions/ui/Mention/index.js +0 -91
  60. package/dist/esm/plugins/mentions/ui/ToolbarMention/index.js +0 -53
  61. package/dist/esm/plugins/mentions/utils.js +0 -26
  62. package/dist/types/plugins/mentions/analytics.d.ts +0 -13
  63. package/dist/types/plugins/mentions/index.d.ts +0 -19
  64. package/dist/types/plugins/mentions/messages.d.ts +0 -22
  65. package/dist/types/plugins/mentions/nodeviews/mention.d.ts +0 -9
  66. package/dist/types/plugins/mentions/pm-plugins/key.d.ts +0 -3
  67. package/dist/types/plugins/mentions/pm-plugins/main.d.ts +0 -6
  68. package/dist/types/plugins/mentions/pm-plugins/utils.d.ts +0 -4
  69. package/dist/types/plugins/mentions/type-ahead/index.d.ts +0 -17
  70. package/dist/types/plugins/mentions/types.d.ts +0 -24
  71. package/dist/types/plugins/mentions/ui/InviteItem/index.d.ts +0 -22
  72. package/dist/types/plugins/mentions/ui/InviteItem/styles.d.ts +0 -8
  73. package/dist/types/plugins/mentions/ui/Mention/index.d.ts +0 -19
  74. package/dist/types/plugins/mentions/ui/ToolbarMention/index.d.ts +0 -13
  75. package/dist/types/plugins/mentions/utils.d.ts +0 -8
  76. package/dist/types-ts4.5/plugins/mentions/analytics.d.ts +0 -13
  77. package/dist/types-ts4.5/plugins/mentions/index.d.ts +0 -22
  78. package/dist/types-ts4.5/plugins/mentions/messages.d.ts +0 -22
  79. package/dist/types-ts4.5/plugins/mentions/nodeviews/mention.d.ts +0 -9
  80. package/dist/types-ts4.5/plugins/mentions/pm-plugins/key.d.ts +0 -3
  81. package/dist/types-ts4.5/plugins/mentions/pm-plugins/main.d.ts +0 -6
  82. package/dist/types-ts4.5/plugins/mentions/pm-plugins/utils.d.ts +0 -4
  83. package/dist/types-ts4.5/plugins/mentions/type-ahead/index.d.ts +0 -17
  84. package/dist/types-ts4.5/plugins/mentions/types.d.ts +0 -24
  85. package/dist/types-ts4.5/plugins/mentions/ui/InviteItem/index.d.ts +0 -22
  86. package/dist/types-ts4.5/plugins/mentions/ui/InviteItem/styles.d.ts +0 -8
  87. package/dist/types-ts4.5/plugins/mentions/ui/Mention/index.d.ts +0 -19
  88. package/dist/types-ts4.5/plugins/mentions/ui/ToolbarMention/index.d.ts +0 -13
  89. 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,3 +0,0 @@
1
- import { PluginKey } from '@atlaskit/editor-prosemirror/state';
2
- import type { MentionPluginState } from '../types';
3
- export declare const mentionPluginKey: PluginKey<MentionPluginState>;
@@ -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,3 +0,0 @@
1
- import { PluginKey } from '@atlaskit/editor-prosemirror/state';
2
- import type { MentionPluginState } from '../types';
3
- export declare const mentionPluginKey: PluginKey<MentionPluginState>;
@@ -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;