@atlaskit/editor-core 185.2.0 → 185.2.2
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/actions/index.js +2 -2
- package/dist/cjs/create-editor/ReactEditorViewInternal.js +1 -2
- package/dist/cjs/index.js +0 -6
- package/dist/cjs/labs/next/internal/hooks/use-editor/create-editor.js +1 -1
- package/dist/cjs/messages.js +6 -56
- package/dist/cjs/nodeviews/getInlineNodeViewProducer.styles.js +2 -2
- package/dist/cjs/plugins/base/pm-plugins/scroll-gutter.js +1 -1
- package/dist/cjs/plugins/card/nodeviews/blockCard.js +2 -2
- package/dist/cjs/plugins/card/nodeviews/embedCard.js +4 -4
- package/dist/cjs/plugins/card/pm-plugins/doc.js +9 -11
- package/dist/cjs/plugins/card/pm-plugins/keymap.js +3 -6
- package/dist/cjs/plugins/card/pm-plugins/main.js +2 -2
- package/dist/cjs/plugins/card/toolbar.js +12 -15
- package/dist/cjs/plugins/card/ui/EditLinkToolbar.js +4 -6
- package/dist/cjs/plugins/card/ui/ResizableEmbedCard.js +7 -10
- package/dist/cjs/plugins/card/utils.js +3 -4
- package/dist/cjs/plugins/clear-marks-on-change-to-empty-document/index.js +1 -1
- package/dist/cjs/plugins/custom-autoformat/doc.js +1 -1
- package/dist/cjs/plugins/date/pm-plugins/main.js +2 -2
- package/dist/cjs/plugins/emoji/index.js +2 -2
- package/dist/cjs/plugins/floating-toolbar/index.js +1 -1
- package/dist/cjs/plugins/hyperlink/Toolbar.js +8 -8
- package/dist/cjs/plugins/hyperlink/commands.js +2 -3
- package/dist/cjs/plugins/hyperlink/ui/HyperlinkAddToolbar/index.js +2 -2
- package/dist/cjs/plugins/layout/actions.js +1 -1
- package/dist/cjs/plugins/media/nodeviews/mediaSingle.js +2 -3
- package/dist/cjs/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.js +1 -2
- package/dist/cjs/plugins/media/toolbar/index.js +9 -8
- package/dist/cjs/plugins/media/toolbar/linking-toolbar-appearance.js +4 -3
- package/dist/cjs/plugins/media/toolbar/linking.js +3 -3
- package/dist/cjs/plugins/media/ui/MediaLinkingToolbar.js +1 -1
- package/dist/cjs/plugins/media/ui/ResizableMediaSingle/index.js +6 -8
- package/dist/cjs/plugins/media/utils/media-files.js +8 -7
- package/dist/cjs/plugins/mentions/pm-plugins/main.js +2 -2
- package/dist/cjs/plugins/placeholder/index.js +2 -3
- package/dist/cjs/plugins/status/plugin.js +2 -2
- package/dist/cjs/plugins/unsupported-content/index.js +3 -3
- package/dist/cjs/ui/LinkSearch/ToolbarComponents.js +4 -11
- package/dist/cjs/utils/document.js +7 -249
- package/dist/cjs/utils/index.js +1 -23
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/actions/index.js +2 -1
- package/dist/es2019/create-editor/ReactEditorViewInternal.js +1 -1
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/labs/next/internal/hooks/use-editor/create-editor.js +1 -1
- package/dist/es2019/messages.js +2 -54
- package/dist/es2019/nodeviews/getInlineNodeViewProducer.styles.js +1 -1
- package/dist/es2019/plugins/base/pm-plugins/scroll-gutter.js +1 -1
- package/dist/es2019/plugins/card/nodeviews/blockCard.js +1 -1
- package/dist/es2019/plugins/card/nodeviews/embedCard.js +1 -1
- package/dist/es2019/plugins/card/pm-plugins/doc.js +2 -3
- package/dist/es2019/plugins/card/pm-plugins/keymap.js +3 -3
- package/dist/es2019/plugins/card/pm-plugins/main.js +1 -1
- package/dist/es2019/plugins/card/toolbar.js +7 -9
- package/dist/es2019/plugins/card/ui/EditLinkToolbar.js +3 -4
- package/dist/es2019/plugins/card/ui/ResizableEmbedCard.js +1 -4
- package/dist/es2019/plugins/card/utils.js +1 -2
- package/dist/es2019/plugins/clear-marks-on-change-to-empty-document/index.js +1 -1
- package/dist/es2019/plugins/custom-autoformat/doc.js +1 -1
- package/dist/es2019/plugins/date/pm-plugins/main.js +1 -1
- package/dist/es2019/plugins/emoji/index.js +1 -1
- package/dist/es2019/plugins/floating-toolbar/index.js +1 -1
- package/dist/es2019/plugins/hyperlink/Toolbar.js +3 -3
- package/dist/es2019/plugins/hyperlink/commands.js +1 -2
- package/dist/es2019/plugins/hyperlink/ui/HyperlinkAddToolbar/index.js +1 -1
- package/dist/es2019/plugins/layout/actions.js +1 -1
- package/dist/es2019/plugins/media/nodeviews/mediaSingle.js +1 -1
- package/dist/es2019/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.js +1 -1
- package/dist/es2019/plugins/media/toolbar/index.js +9 -8
- package/dist/es2019/plugins/media/toolbar/linking-toolbar-appearance.js +2 -1
- package/dist/es2019/plugins/media/toolbar/linking.js +1 -1
- package/dist/es2019/plugins/media/ui/MediaLinkingToolbar.js +1 -1
- package/dist/es2019/plugins/media/ui/ResizableMediaSingle/index.js +2 -4
- package/dist/es2019/plugins/media/utils/media-files.js +4 -3
- package/dist/es2019/plugins/mentions/pm-plugins/main.js +1 -1
- package/dist/es2019/plugins/placeholder/index.js +1 -1
- package/dist/es2019/plugins/status/plugin.js +1 -1
- package/dist/es2019/plugins/unsupported-content/index.js +1 -1
- package/dist/es2019/ui/LinkSearch/ToolbarComponents.js +1 -4
- package/dist/es2019/utils/document.js +3 -244
- package/dist/es2019/utils/index.js +1 -4
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/actions/index.js +2 -1
- package/dist/esm/create-editor/ReactEditorViewInternal.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/labs/next/internal/hooks/use-editor/create-editor.js +1 -1
- package/dist/esm/messages.js +2 -54
- package/dist/esm/nodeviews/getInlineNodeViewProducer.styles.js +1 -1
- package/dist/esm/plugins/base/pm-plugins/scroll-gutter.js +1 -1
- package/dist/esm/plugins/card/nodeviews/blockCard.js +1 -1
- package/dist/esm/plugins/card/nodeviews/embedCard.js +1 -1
- package/dist/esm/plugins/card/pm-plugins/doc.js +2 -3
- package/dist/esm/plugins/card/pm-plugins/keymap.js +3 -3
- package/dist/esm/plugins/card/pm-plugins/main.js +1 -1
- package/dist/esm/plugins/card/toolbar.js +7 -9
- package/dist/esm/plugins/card/ui/EditLinkToolbar.js +3 -4
- package/dist/esm/plugins/card/ui/ResizableEmbedCard.js +1 -4
- package/dist/esm/plugins/card/utils.js +1 -2
- package/dist/esm/plugins/clear-marks-on-change-to-empty-document/index.js +1 -1
- package/dist/esm/plugins/custom-autoformat/doc.js +1 -1
- package/dist/esm/plugins/date/pm-plugins/main.js +1 -1
- package/dist/esm/plugins/emoji/index.js +1 -1
- package/dist/esm/plugins/floating-toolbar/index.js +1 -1
- package/dist/esm/plugins/hyperlink/Toolbar.js +3 -3
- package/dist/esm/plugins/hyperlink/commands.js +1 -2
- package/dist/esm/plugins/hyperlink/ui/HyperlinkAddToolbar/index.js +1 -1
- package/dist/esm/plugins/layout/actions.js +1 -1
- package/dist/esm/plugins/media/nodeviews/mediaSingle.js +1 -1
- package/dist/esm/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.js +1 -1
- package/dist/esm/plugins/media/toolbar/index.js +9 -8
- package/dist/esm/plugins/media/toolbar/linking-toolbar-appearance.js +2 -1
- package/dist/esm/plugins/media/toolbar/linking.js +1 -1
- package/dist/esm/plugins/media/ui/MediaLinkingToolbar.js +1 -1
- package/dist/esm/plugins/media/ui/ResizableMediaSingle/index.js +2 -4
- package/dist/esm/plugins/media/utils/media-files.js +4 -3
- package/dist/esm/plugins/mentions/pm-plugins/main.js +1 -1
- package/dist/esm/plugins/placeholder/index.js +1 -1
- package/dist/esm/plugins/status/plugin.js +1 -1
- package/dist/esm/plugins/unsupported-content/index.js +1 -1
- package/dist/esm/ui/LinkSearch/ToolbarComponents.js +1 -4
- package/dist/esm/utils/document.js +6 -240
- package/dist/esm/utils/index.js +1 -4
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/index.d.ts +1 -2
- package/dist/types/labs/next/presets/cxhtml.d.ts +3 -3
- package/dist/types/labs/next/presets/default.d.ts +1 -1
- package/dist/types/labs/next/presets/mobile.d.ts +3 -3
- package/dist/types/messages.d.ts +2 -53
- package/dist/types/plugins/card/nodeviews/blockCard.d.ts +1 -1
- package/dist/types/plugins/card/nodeviews/genericCard.d.ts +3 -3
- package/dist/types/plugins/card/nodeviews/inlineCard.d.ts +1 -1
- package/dist/types/plugins/card/toolbar.d.ts +1 -1
- package/dist/types/plugins/card/types.d.ts +1 -1
- package/dist/types/plugins/card/ui/EditLinkToolbar.d.ts +1 -1
- package/dist/types/plugins/card/ui/ResizableEmbedCard.d.ts +1 -1
- package/dist/types/plugins/date/nodeviews/date.d.ts +1 -1
- package/dist/types/plugins/emoji/nodeviews/emoji.d.ts +1 -1
- package/dist/types/plugins/floating-toolbar/ui/Toolbar.d.ts +1 -1
- package/dist/types/plugins/hyperlink/Toolbar.d.ts +1 -1
- package/dist/types/plugins/hyperlink/commands.d.ts +2 -3
- package/dist/types/plugins/hyperlink/index.d.ts +1 -1
- package/dist/types/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.d.ts +1 -1
- package/dist/types/plugins/hyperlink/ui/HyperlinkAddToolbar/index.d.ts +1 -1
- package/dist/types/plugins/media/ui/ResizableMediaSingle/types.d.ts +0 -15
- package/dist/types/plugins/media/utils/media-files.d.ts +1 -1
- package/dist/types/plugins/mentions/nodeviews/mention.d.ts +1 -1
- package/dist/types/plugins/status/nodeviews/status.d.ts +1 -1
- package/dist/types/plugins/unsupported-content/unsupported-inline-node-view.d.ts +1 -1
- package/dist/types/types/editor-props.d.ts +1 -1
- package/dist/types/ui/LinkSearch/ToolbarComponents.d.ts +0 -4
- package/dist/types/utils/document.d.ts +0 -12
- package/dist/types/utils/index.d.ts +1 -2
- package/dist/types-ts4.5/index.d.ts +1 -2
- package/dist/types-ts4.5/labs/next/presets/cxhtml.d.ts +3 -3
- package/dist/types-ts4.5/labs/next/presets/default.d.ts +1 -1
- package/dist/types-ts4.5/labs/next/presets/mobile.d.ts +3 -3
- package/dist/types-ts4.5/messages.d.ts +2 -53
- package/dist/types-ts4.5/plugins/card/nodeviews/blockCard.d.ts +1 -1
- package/dist/types-ts4.5/plugins/card/nodeviews/genericCard.d.ts +3 -3
- package/dist/types-ts4.5/plugins/card/nodeviews/inlineCard.d.ts +1 -1
- package/dist/types-ts4.5/plugins/card/toolbar.d.ts +1 -1
- package/dist/types-ts4.5/plugins/card/types.d.ts +1 -1
- package/dist/types-ts4.5/plugins/card/ui/EditLinkToolbar.d.ts +1 -1
- package/dist/types-ts4.5/plugins/card/ui/ResizableEmbedCard.d.ts +1 -1
- package/dist/types-ts4.5/plugins/date/nodeviews/date.d.ts +1 -1
- package/dist/types-ts4.5/plugins/emoji/nodeviews/emoji.d.ts +1 -1
- package/dist/types-ts4.5/plugins/floating-toolbar/ui/Toolbar.d.ts +1 -1
- package/dist/types-ts4.5/plugins/hyperlink/Toolbar.d.ts +1 -1
- package/dist/types-ts4.5/plugins/hyperlink/commands.d.ts +2 -3
- package/dist/types-ts4.5/plugins/hyperlink/index.d.ts +1 -1
- package/dist/types-ts4.5/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.d.ts +1 -1
- package/dist/types-ts4.5/plugins/hyperlink/ui/HyperlinkAddToolbar/index.d.ts +1 -1
- package/dist/types-ts4.5/plugins/media/ui/ResizableMediaSingle/types.d.ts +0 -15
- package/dist/types-ts4.5/plugins/media/utils/media-files.d.ts +1 -1
- package/dist/types-ts4.5/plugins/mentions/nodeviews/mention.d.ts +1 -1
- package/dist/types-ts4.5/plugins/status/nodeviews/status.d.ts +1 -1
- package/dist/types-ts4.5/plugins/unsupported-content/unsupported-inline-node-view.d.ts +1 -1
- package/dist/types-ts4.5/types/editor-props.d.ts +1 -1
- package/dist/types-ts4.5/ui/LinkSearch/ToolbarComponents.d.ts +0 -4
- package/dist/types-ts4.5/utils/document.d.ts +0 -12
- package/dist/types-ts4.5/utils/index.d.ts +1 -2
- package/package.json +4 -5
- package/report.api.md +9 -34
- package/tmp/api-report-tmp.d.ts +7 -33
- package/dist/cjs/nodeviews/getInlineNodeViewProducer.js +0 -227
- package/dist/cjs/plugins/hyperlink/types.js +0 -5
- package/dist/cjs/ui/MediaAndEmbedsToolbar/index.js +0 -152
- package/dist/cjs/ui/Resizer/index.js +0 -210
- package/dist/cjs/ui/Resizer/styled.js +0 -15
- package/dist/cjs/ui/Resizer/types.js +0 -5
- package/dist/cjs/ui/Resizer/utils.js +0 -21
- package/dist/cjs/utils/filter/privacy-filter.js +0 -55
- package/dist/cjs/utils/linking-utils.js +0 -84
- package/dist/cjs/utils/rich-media-utils.js +0 -130
- package/dist/es2019/nodeviews/getInlineNodeViewProducer.js +0 -221
- package/dist/es2019/plugins/hyperlink/types.js +0 -1
- package/dist/es2019/ui/MediaAndEmbedsToolbar/index.js +0 -159
- package/dist/es2019/ui/Resizer/index.js +0 -191
- package/dist/es2019/ui/Resizer/styled.js +0 -15
- package/dist/es2019/ui/Resizer/types.js +0 -1
- package/dist/es2019/ui/Resizer/utils.js +0 -12
- package/dist/es2019/utils/filter/privacy-filter.js +0 -47
- package/dist/es2019/utils/linking-utils.js +0 -74
- package/dist/es2019/utils/rich-media-utils.js +0 -108
- package/dist/esm/nodeviews/getInlineNodeViewProducer.js +0 -217
- package/dist/esm/plugins/hyperlink/types.js +0 -1
- package/dist/esm/ui/MediaAndEmbedsToolbar/index.js +0 -144
- package/dist/esm/ui/Resizer/index.js +0 -203
- package/dist/esm/ui/Resizer/styled.js +0 -7
- package/dist/esm/ui/Resizer/types.js +0 -1
- package/dist/esm/ui/Resizer/utils.js +0 -12
- package/dist/esm/utils/filter/privacy-filter.js +0 -48
- package/dist/esm/utils/linking-utils.js +0 -74
- package/dist/esm/utils/rich-media-utils.js +0 -117
- package/dist/types/nodeviews/getInlineNodeViewProducer.d.ts +0 -24
- package/dist/types/plugins/hyperlink/types.d.ts +0 -35
- package/dist/types/ui/MediaAndEmbedsToolbar/index.d.ts +0 -9
- package/dist/types/ui/Resizer/index.d.ts +0 -41
- package/dist/types/ui/Resizer/styled.d.ts +0 -2
- package/dist/types/ui/Resizer/types.d.ts +0 -26
- package/dist/types/ui/Resizer/utils.d.ts +0 -6
- package/dist/types/utils/filter/privacy-filter.d.ts +0 -9
- package/dist/types/utils/linking-utils.d.ts +0 -14
- package/dist/types/utils/rich-media-utils.d.ts +0 -8
- package/dist/types-ts4.5/nodeviews/getInlineNodeViewProducer.d.ts +0 -24
- package/dist/types-ts4.5/plugins/hyperlink/types.d.ts +0 -35
- package/dist/types-ts4.5/ui/MediaAndEmbedsToolbar/index.d.ts +0 -9
- package/dist/types-ts4.5/ui/Resizer/index.d.ts +0 -41
- package/dist/types-ts4.5/ui/Resizer/styled.d.ts +0 -2
- package/dist/types-ts4.5/ui/Resizer/types.d.ts +0 -26
- package/dist/types-ts4.5/ui/Resizer/utils.d.ts +0 -6
- package/dist/types-ts4.5/utils/filter/privacy-filter.d.ts +0 -9
- package/dist/types-ts4.5/utils/linking-utils.d.ts +0 -14
- package/dist/types-ts4.5/utils/rich-media-utils.d.ts +0 -8
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
3
|
import { MentionPluginOptions } from '../types';
|
|
4
|
-
import { InlineNodeViewComponentProps } from '
|
|
4
|
+
import type { InlineNodeViewComponentProps } from '@atlaskit/editor-common/react-node-view';
|
|
5
5
|
export type Props = InlineNodeViewComponentProps & {
|
|
6
6
|
options: MentionPluginOptions | undefined;
|
|
7
7
|
providerFactory: ProviderFactory;
|
|
@@ -4,7 +4,7 @@ import { EditorView } from 'prosemirror-view';
|
|
|
4
4
|
import { IntlShape } from 'react-intl-next';
|
|
5
5
|
import { Color, StatusStyle } from '@atlaskit/status/element';
|
|
6
6
|
import { EventDispatcher } from '../../../event-dispatcher';
|
|
7
|
-
import { InlineNodeViewComponentProps } from '
|
|
7
|
+
import type { InlineNodeViewComponentProps } from '@atlaskit/editor-common/react-node-view';
|
|
8
8
|
import { StatusPluginOptions } from '../types';
|
|
9
9
|
export interface ContainerProps {
|
|
10
10
|
view: EditorView;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Node as PMNode } from 'prosemirror-model';
|
|
4
4
|
import { UnsupportedContentTooltipPayload } from '@atlaskit/editor-common/utils';
|
|
5
|
-
import { InlineNodeViewComponentProps } from '
|
|
5
|
+
import type { InlineNodeViewComponentProps } from '@atlaskit/editor-common/react-node-view';
|
|
6
6
|
export type Props = InlineNodeViewComponentProps & {
|
|
7
7
|
node?: PMNode;
|
|
8
8
|
children?: React.ReactNode;
|
|
@@ -16,7 +16,7 @@ import { BlockTypePluginOptions } from '../plugins/block-type/types';
|
|
|
16
16
|
import { CodeBlockOptions } from '../plugins/code-block/types';
|
|
17
17
|
import { CollabEditOptions } from '../plugins/collab-edit/types';
|
|
18
18
|
import { FindReplaceOptions } from '../plugins/find-replace/types';
|
|
19
|
-
import { LinkingOptions } from '
|
|
19
|
+
import type { LinkingOptions } from '@atlaskit/editor-common/types';
|
|
20
20
|
import { LayoutPluginOptions } from '../plugins/layout/types';
|
|
21
21
|
import { MediaOptions, MediaState } from '../plugins/media/types';
|
|
22
22
|
import { PlaceholderTextOptions } from '../plugins/placeholder-text/types';
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
export declare const RECENT_SEARCH_WIDTH_IN_PX = 420;
|
|
2
|
-
export declare const RECENT_SEARCH_WIDTH_WITHOUT_ITEMS_IN_PX = 360;
|
|
3
|
-
export declare const RECENT_SEARCH_HEIGHT_IN_PX = 360;
|
|
4
|
-
export declare const LINKPICKER_HEIGHT_IN_PX = 570;
|
|
5
1
|
export declare const inputWrapper: import("@emotion/react").SerializedStyles;
|
|
6
2
|
export declare const container: import("@emotion/react").SerializedStyles;
|
|
7
3
|
export declare const containerWithProvider: import("@emotion/react").SerializedStyles;
|
|
@@ -13,20 +13,8 @@ export declare function hasVisibleContent(node: Node): boolean;
|
|
|
13
13
|
* Checks if a node has any content. Ignores node that only contain empty block nodes.
|
|
14
14
|
*/
|
|
15
15
|
export declare function isNodeEmpty(node?: Node): boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Checks if a node looks like an empty document
|
|
18
|
-
*/
|
|
19
|
-
export declare function isEmptyDocument(node: Node): boolean;
|
|
20
|
-
export declare function hasDocAsParent($anchor: ResolvedPos): boolean;
|
|
21
|
-
export declare function isProseMirrorSchemaCheckError(error: unknown): boolean;
|
|
22
16
|
export declare function isInEmptyLine(state: EditorState): boolean;
|
|
23
|
-
export declare function bracketTyped(state: EditorState): boolean;
|
|
24
17
|
export declare function processRawFragmentValue(schema: Schema, value?: ReplaceRawValue[], providerFactory?: ProviderFactory, sanitizePrivateContent?: boolean, contentTransformer?: Transformer<string>, dispatchAnalyticsEvent?: DispatchAnalyticsEvent): Fragment | undefined;
|
|
25
|
-
export declare function processRawValue(schema: Schema, value?: ReplaceRawValue, providerFactory?: ProviderFactory, sanitizePrivateContent?: boolean, contentTransformer?: Transformer<string>, dispatchAnalyticsEvent?: DispatchAnalyticsEvent): Node | undefined;
|
|
26
|
-
export declare const getStepRange: (transaction: Transaction | ReadonlyTransaction) => {
|
|
27
|
-
from: number;
|
|
28
|
-
to: number;
|
|
29
|
-
} | null;
|
|
30
18
|
/**
|
|
31
19
|
* Find the farthest node given a condition
|
|
32
20
|
* @param predicate Function to check the node
|
|
@@ -2,7 +2,7 @@ import { MarkType, Node, ResolvedPos, Schema, Slice } from 'prosemirror-model';
|
|
|
2
2
|
import { EditorState, Selection } from 'prosemirror-state';
|
|
3
3
|
import { JSONDocNode, JSONNode } from '@atlaskit/editor-json-transformer';
|
|
4
4
|
export { insideTable } from '@atlaskit/editor-common/core-utils';
|
|
5
|
-
export { hasVisibleContent, isNodeEmpty,
|
|
5
|
+
export { hasVisibleContent, isNodeEmpty, findFarthestParentNode, isSelectionEndOfParagraph, nodesBetweenChanged, getNodesCount, } from './document';
|
|
6
6
|
export { sanitiseMarksInSelection } from './mark';
|
|
7
7
|
export { isParagraph, isText, isLinkMark } from './nodes';
|
|
8
8
|
export { setNodeSelection, setGapCursorSelection, setTextSelection, } from './selection';
|
|
@@ -34,7 +34,6 @@ export declare function areBlockTypesDisabled(state: EditorState): boolean;
|
|
|
34
34
|
export declare const isTemporary: (id: string) => boolean;
|
|
35
35
|
export declare const isEmptyNode: (schema: Schema) => (node: Node) => boolean;
|
|
36
36
|
export declare const insideTableCell: (state: EditorState) => boolean;
|
|
37
|
-
export declare const isInLayoutColumn: (state: EditorState) => boolean;
|
|
38
37
|
export declare const isInListItem: (state: EditorState) => boolean;
|
|
39
38
|
export declare const hasOpenEnd: (slice: Slice) => boolean;
|
|
40
39
|
export declare const isInsideBlockQuote: (state: EditorState) => boolean;
|
|
@@ -57,12 +57,11 @@ export { pluginKey as quickInsertPluginKey, memoProcessItems as processQuickInse
|
|
|
57
57
|
export type { QuickInsertPluginState } from './plugins/quick-insert';
|
|
58
58
|
export type { TypeAheadItem } from './plugins/type-ahead/types';
|
|
59
59
|
export { insertLink, insertLinkWithAnalyticsMobileNative, insertLinkWithAnalytics, isTextAtPos, isLinkAtPos, updateLink, } from './plugins/hyperlink/commands';
|
|
60
|
-
export type { LinkInputType as LinkInputMethod } from './plugins/hyperlink/types';
|
|
61
60
|
export { historyPluginKey } from './plugins/history';
|
|
62
61
|
export { INPUT_METHOD, ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, } from './plugins/analytics';
|
|
63
62
|
export type { AnalyticsEventPayload } from './plugins/analytics';
|
|
64
63
|
export { setKeyboardHeight, setMobilePaddingTop, setIsExpanded, } from './plugins/mobile-dimensions/commands';
|
|
65
|
-
export { setTextSelection, dedupe, getNodesCount, measurements, hasVisibleContent,
|
|
64
|
+
export { setTextSelection, dedupe, getNodesCount, measurements, hasVisibleContent, } from './utils';
|
|
66
65
|
export { getListCommands } from './utils/list-commands';
|
|
67
66
|
export { ReactEditorView, BaseReactEditorView } from './create-editor';
|
|
68
67
|
export { getDefaultPresetOptionsFromEditorProps } from './create-editor';
|
|
@@ -208,8 +208,8 @@ export declare function useCXHTMLPreset({ mentionProvider, mediaProvider, placeh
|
|
|
208
208
|
}> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"textFormatting", {
|
|
209
209
|
pluginConfiguration: import("../../../plugins/text-formatting/types").TextFormattingOptions | undefined;
|
|
210
210
|
}>,
|
|
211
|
-
(config?: import("
|
|
212
|
-
pluginConfiguration: import("
|
|
211
|
+
(config?: import("@atlaskit/editor-common/types").HyperlinkPluginOptions | undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"hyperlink", {
|
|
212
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").HyperlinkPluginOptions | undefined;
|
|
213
213
|
dependencies: [
|
|
214
214
|
(config: import("@atlaskit/editor-common/types").FeatureFlags, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"featureFlags", {
|
|
215
215
|
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
@@ -253,7 +253,7 @@ export declare function useCXHTMLPreset({ mentionProvider, mediaProvider, placeh
|
|
|
253
253
|
}>>
|
|
254
254
|
];
|
|
255
255
|
}> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"hyperlink", {
|
|
256
|
-
pluginConfiguration: import("
|
|
256
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").HyperlinkPluginOptions | undefined;
|
|
257
257
|
dependencies: [
|
|
258
258
|
(config: import("@atlaskit/editor-common/types").FeatureFlags, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"featureFlags", {
|
|
259
259
|
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
@@ -13,7 +13,7 @@ import { CodeBlockOptions } from '../../../plugins/code-block/types';
|
|
|
13
13
|
import { SelectionPluginOptions } from '../../../plugins/selection/types';
|
|
14
14
|
import { CardOptions } from '@atlaskit/editor-common/card';
|
|
15
15
|
import { TypeAheadPluginOptions } from '../../../plugins/type-ahead';
|
|
16
|
-
import { HyperlinkPluginOptions } from '
|
|
16
|
+
import type { HyperlinkPluginOptions } from '@atlaskit/editor-common/types';
|
|
17
17
|
import { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
|
|
18
18
|
export type DefaultPresetPluginOptions = {
|
|
19
19
|
paste: PastePluginOptions;
|
|
@@ -211,8 +211,8 @@ export declare function useMobilePreset({ media, placeholder, maxContentSize, cr
|
|
|
211
211
|
}> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"textFormatting", {
|
|
212
212
|
pluginConfiguration: import("../../../plugins/text-formatting/types").TextFormattingOptions | undefined;
|
|
213
213
|
}>,
|
|
214
|
-
(config?: import("
|
|
215
|
-
pluginConfiguration: import("
|
|
214
|
+
(config?: import("@atlaskit/editor-common/types").HyperlinkPluginOptions | undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"hyperlink", {
|
|
215
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").HyperlinkPluginOptions | undefined;
|
|
216
216
|
dependencies: [
|
|
217
217
|
(config: import("@atlaskit/editor-common/types").FeatureFlags, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"featureFlags", {
|
|
218
218
|
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
@@ -256,7 +256,7 @@ export declare function useMobilePreset({ media, placeholder, maxContentSize, cr
|
|
|
256
256
|
}>>
|
|
257
257
|
];
|
|
258
258
|
}> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"hyperlink", {
|
|
259
|
-
pluginConfiguration: import("
|
|
259
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").HyperlinkPluginOptions | undefined;
|
|
260
260
|
dependencies: [
|
|
261
261
|
(config: import("@atlaskit/editor-common/types").FeatureFlags, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"featureFlags", {
|
|
262
262
|
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
@@ -1,59 +1,8 @@
|
|
|
1
|
-
import commonMessages, { linkMessages } from '@atlaskit/editor-common/messages';
|
|
1
|
+
import commonMessages, { linkMessages, linkToolbarMessages } from '@atlaskit/editor-common/messages';
|
|
2
2
|
import { messages as statusMessages } from './plugins/status/nodeviews/messages';
|
|
3
3
|
import { messages as dateMessages } from './plugins/date/nodeviews/messages';
|
|
4
4
|
export { linkMessages };
|
|
5
5
|
export { statusMessages };
|
|
6
6
|
export { dateMessages };
|
|
7
|
-
export
|
|
8
|
-
addLink: {
|
|
9
|
-
id: string;
|
|
10
|
-
defaultMessage: string;
|
|
11
|
-
description: string;
|
|
12
|
-
};
|
|
13
|
-
unableToOpenLink: {
|
|
14
|
-
id: string;
|
|
15
|
-
defaultMessage: string;
|
|
16
|
-
description: string;
|
|
17
|
-
};
|
|
18
|
-
unlink: {
|
|
19
|
-
id: string;
|
|
20
|
-
defaultMessage: string;
|
|
21
|
-
description: string;
|
|
22
|
-
};
|
|
23
|
-
editLink: {
|
|
24
|
-
id: string;
|
|
25
|
-
defaultMessage: string;
|
|
26
|
-
description: string;
|
|
27
|
-
};
|
|
28
|
-
placeholder: {
|
|
29
|
-
id: string;
|
|
30
|
-
defaultMessage: string;
|
|
31
|
-
description: string;
|
|
32
|
-
};
|
|
33
|
-
linkPlaceholder: {
|
|
34
|
-
id: string;
|
|
35
|
-
defaultMessage: string;
|
|
36
|
-
description: string;
|
|
37
|
-
};
|
|
38
|
-
linkAddress: {
|
|
39
|
-
id: string;
|
|
40
|
-
defaultMessage: string;
|
|
41
|
-
description: string;
|
|
42
|
-
};
|
|
43
|
-
invalidLink: {
|
|
44
|
-
id: string;
|
|
45
|
-
defaultMessage: string;
|
|
46
|
-
description: string;
|
|
47
|
-
};
|
|
48
|
-
emptyLink: {
|
|
49
|
-
id: string;
|
|
50
|
-
defaultMessage: string;
|
|
51
|
-
description: string;
|
|
52
|
-
};
|
|
53
|
-
settingsLink: {
|
|
54
|
-
id: string;
|
|
55
|
-
defaultMessage: string;
|
|
56
|
-
description: string;
|
|
57
|
-
};
|
|
58
|
-
};
|
|
7
|
+
export { linkToolbarMessages };
|
|
59
8
|
export default commonMessages;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { SmartCardProps } from './genericCard';
|
|
4
|
-
import
|
|
4
|
+
import ReactNodeView from '@atlaskit/editor-common/react-node-view';
|
|
5
5
|
export declare class BlockCardComponent extends React.PureComponent<SmartCardProps> {
|
|
6
6
|
private scrollContainer?;
|
|
7
7
|
onClick: () => void;
|
|
@@ -4,9 +4,9 @@ import { EditorView } from 'prosemirror-view';
|
|
|
4
4
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
5
5
|
import { CardPlatform } from '@atlaskit/smart-card';
|
|
6
6
|
import { SmartCardContext } from '@atlaskit/link-provider';
|
|
7
|
-
import { getPosHandler, ReactComponentProps } from '
|
|
8
|
-
import { EventDispatcher } from '
|
|
9
|
-
import { DispatchAnalyticsEvent } from '
|
|
7
|
+
import { getPosHandler, ReactComponentProps } from '@atlaskit/editor-common/react-node-view';
|
|
8
|
+
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
9
|
+
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
10
10
|
import { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
11
11
|
import type cardPlugin from '../index';
|
|
12
12
|
export type EditorContext<T> = React.Context<T> & {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { SmartCardProps } from './genericCard';
|
|
4
|
-
import { InlineNodeViewComponentProps } from '
|
|
4
|
+
import type { InlineNodeViewComponentProps } from '@atlaskit/editor-common/react-node-view';
|
|
5
5
|
export declare class InlineCardComponent extends React.PureComponent<SmartCardProps> {
|
|
6
6
|
private scrollContainer?;
|
|
7
7
|
private onClick;
|
|
@@ -2,7 +2,7 @@ import { CardPlatform } from '@atlaskit/smart-card';
|
|
|
2
2
|
import type { Command, FloatingToolbarHandler } from '@atlaskit/editor-common/types';
|
|
3
3
|
import { CardOptions } from '@atlaskit/editor-common/card';
|
|
4
4
|
import { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
5
|
-
import { LinkPickerOptions } from '
|
|
5
|
+
import { LinkPickerOptions } from '@atlaskit/editor-common/types';
|
|
6
6
|
import type { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
7
7
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
8
8
|
import type cardPlugin from './index';
|
|
@@ -4,7 +4,7 @@ import { SmartLinkEvents } from '@atlaskit/smart-card';
|
|
|
4
4
|
import { CreateUIAnalyticsEvent, UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
5
5
|
import { CardOptions } from '@atlaskit/editor-common/card';
|
|
6
6
|
import type { EditorAppearance } from '@atlaskit/editor-common/types';
|
|
7
|
-
import { LinkPickerOptions } from '
|
|
7
|
+
import { LinkPickerOptions } from '@atlaskit/editor-common/types';
|
|
8
8
|
export type CardInfo = {
|
|
9
9
|
title?: string;
|
|
10
10
|
url?: string;
|
|
@@ -3,7 +3,7 @@ import { EditorView } from 'prosemirror-view';
|
|
|
3
3
|
import { Node } from 'prosemirror-model';
|
|
4
4
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
5
5
|
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
6
|
-
import { LinkPickerOptions } from '
|
|
6
|
+
import type { LinkPickerOptions } from '@atlaskit/editor-common/types';
|
|
7
7
|
import type { Command, FloatingToolbarItem, FloatingToolbarConfig } from '@atlaskit/editor-common/types';
|
|
8
8
|
import { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
9
9
|
import { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
4
|
import { RichMediaLayout } from '@atlaskit/adf-schema';
|
|
5
|
-
import {
|
|
5
|
+
import { ResizerProps } from '@atlaskit/editor-common/ui';
|
|
6
6
|
type State = {
|
|
7
7
|
offsetLeft: number;
|
|
8
8
|
resizedPctWidth?: number;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { InlineNodeViewComponentProps } from '
|
|
2
|
+
import type { InlineNodeViewComponentProps } from '@atlaskit/editor-common/react-node-view';
|
|
3
3
|
export declare function DateNodeView(props: InlineNodeViewComponentProps): JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
-
import type { InlineNodeViewComponentProps } from '
|
|
3
|
+
import type { InlineNodeViewComponentProps } from '@atlaskit/editor-common/react-node-view';
|
|
4
4
|
export type Props = InlineNodeViewComponentProps & {
|
|
5
5
|
providerFactory: ProviderFactory;
|
|
6
6
|
};
|
|
@@ -4,7 +4,7 @@ import { EditorView } from 'prosemirror-view';
|
|
|
4
4
|
import { Node } from 'prosemirror-model';
|
|
5
5
|
import type { ExtensionProvider } from '@atlaskit/editor-common/extensions';
|
|
6
6
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
7
|
-
import { DispatchAnalyticsEvent } from '
|
|
7
|
+
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
8
8
|
import { FloatingToolbarItem } from '../types';
|
|
9
9
|
import { WrappedComponentProps } from 'react-intl-next';
|
|
10
10
|
import { FeatureFlags, PluginInjectionAPIWithDependency } from '@atlaskit/editor-common/types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FloatingToolbarHandler } from '../floating-toolbar/types';
|
|
2
|
-
import { HyperlinkPluginOptions } from '
|
|
2
|
+
import type { HyperlinkPluginOptions } from '@atlaskit/editor-common/types';
|
|
3
3
|
import { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
4
4
|
import { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
5
5
|
export declare const getToolbarConfig: (options: HyperlinkPluginOptions, featureFlags: FeatureFlags, editorAnalyticsApi: EditorAnalyticsAPI | undefined) => FloatingToolbarHandler;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
|
-
import { Command } from '../../types';
|
|
3
2
|
import { Predicate } from '../../utils/commands';
|
|
4
3
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
5
|
-
import { LinkInputType } from '
|
|
4
|
+
import type { Command, LinkInputType } from '@atlaskit/editor-common/types';
|
|
6
5
|
export declare function isTextAtPos(pos: number): Predicate;
|
|
7
6
|
export declare function isLinkAtPos(pos: number): Predicate;
|
|
8
7
|
export declare function setLinkHref(href: string, pos: number, to?: number, isTabPressed?: boolean): Command;
|
|
9
8
|
export declare function updateLink(href: string, text: string, pos: number, to?: number): Command;
|
|
10
9
|
export declare function insertLink(from: number, to: number, incomingHref: string, incomingTitle?: string, displayText?: string, source?: LinkInputType, sourceEvent?: UIAnalyticsEvent | null | undefined): Command;
|
|
11
10
|
export declare const insertLinkWithAnalytics: (inputMethod: LinkInputType, from: number, to: number, href: string, title?: string, displayText?: string, cardsAvailable?: boolean, sourceEvent?: UIAnalyticsEvent | null | undefined) => Command;
|
|
12
|
-
export declare const insertLinkWithAnalyticsMobileNative: (inputMethod: LinkInputType, from: number, to: number, href: string, title?: string, displayText?: string) => Command;
|
|
11
|
+
export declare const insertLinkWithAnalyticsMobileNative: (inputMethod: LinkInputType, from: number, to: number, href: string, title?: string, displayText?: string) => import("../..").Command;
|
|
13
12
|
export declare function removeLink(pos: number): Command;
|
|
14
13
|
export declare function editInsertedLink(): Command;
|
|
15
14
|
export declare function showLinkToolbar(inputMethod?: INPUT_METHOD.TOOLBAR | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.SHORTCUT | INPUT_METHOD.INSERT_MENU): Command;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
2
|
-
import { HyperlinkPluginOptions } from '
|
|
2
|
+
import type { HyperlinkPluginOptions } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
|
|
4
4
|
import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
5
5
|
declare const hyperlinkPlugin: NextEditorPlugin<'hyperlink', {
|
|
@@ -9,7 +9,7 @@ import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
|
9
9
|
import { LinkSearchListItemData } from '../../../../ui/LinkSearch/types';
|
|
10
10
|
import { HyperlinkState } from '../../pm-plugins/main';
|
|
11
11
|
import { EditorView } from 'prosemirror-view';
|
|
12
|
-
import { LinkInputType } from '
|
|
12
|
+
import type { LinkInputType } from '@atlaskit/editor-common/types';
|
|
13
13
|
export declare const RECENT_SEARCH_LIST_SIZE = 5;
|
|
14
14
|
export declare const messages: {
|
|
15
15
|
displayText: {
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { EditorView } from 'prosemirror-view';
|
|
3
3
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
4
4
|
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
5
|
-
import { LinkInputType, LinkPickerOptions } from '
|
|
5
|
+
import type { LinkInputType, LinkPickerOptions } from '@atlaskit/editor-common/types';
|
|
6
6
|
import { EditorLinkPickerProps } from '../EditorLinkPicker';
|
|
7
7
|
import { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
8
8
|
export interface Props extends Pick<EditorLinkPickerProps, 'onCancel' | 'invokeMethod'> {
|
|
@@ -5,7 +5,6 @@ import type { GridType } from '@atlaskit/editor-common/types';
|
|
|
5
5
|
import { EditorView } from 'prosemirror-view';
|
|
6
6
|
import { getPosHandler } from '../../../../nodeviews/types';
|
|
7
7
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
8
|
-
import { ResolvedPos } from 'prosemirror-model';
|
|
9
8
|
export type EnabledHandles = {
|
|
10
9
|
left?: boolean;
|
|
11
10
|
right?: boolean;
|
|
@@ -24,17 +23,3 @@ export type Props = MediaSingleProps & {
|
|
|
24
23
|
fullWidthMode?: boolean;
|
|
25
24
|
dispatchAnalyticsEvent: DispatchAnalyticsEvent;
|
|
26
25
|
};
|
|
27
|
-
export interface SnapPointsProps {
|
|
28
|
-
$pos?: ResolvedPos | null;
|
|
29
|
-
akEditorWideLayoutWidth: number;
|
|
30
|
-
allowBreakoutSnapPoints?: boolean;
|
|
31
|
-
containerWidth: number;
|
|
32
|
-
gridSize: number;
|
|
33
|
-
gridWidth: number;
|
|
34
|
-
insideInlineLike: boolean;
|
|
35
|
-
insideLayout: boolean;
|
|
36
|
-
isVideoFile: boolean;
|
|
37
|
-
lineLength: number;
|
|
38
|
-
offsetLeft: number;
|
|
39
|
-
wrappedLayout: boolean;
|
|
40
|
-
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EditorState } from 'prosemirror-state';
|
|
2
2
|
import { EditorView } from 'prosemirror-view';
|
|
3
3
|
import { MediaState } from '../types';
|
|
4
|
-
import { InputMethodInsertMedia } from '
|
|
4
|
+
import { InputMethodInsertMedia } from '@atlaskit/editor-common/analytics';
|
|
5
5
|
export interface Range {
|
|
6
6
|
start: number;
|
|
7
7
|
end: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
3
|
import { MentionPluginOptions } from '../types';
|
|
4
|
-
import { InlineNodeViewComponentProps } from '
|
|
4
|
+
import type { InlineNodeViewComponentProps } from '@atlaskit/editor-common/react-node-view';
|
|
5
5
|
export type Props = InlineNodeViewComponentProps & {
|
|
6
6
|
options: MentionPluginOptions | undefined;
|
|
7
7
|
providerFactory: ProviderFactory;
|
|
@@ -4,7 +4,7 @@ import { EditorView } from 'prosemirror-view';
|
|
|
4
4
|
import { IntlShape } from 'react-intl-next';
|
|
5
5
|
import { Color, StatusStyle } from '@atlaskit/status/element';
|
|
6
6
|
import { EventDispatcher } from '../../../event-dispatcher';
|
|
7
|
-
import { InlineNodeViewComponentProps } from '
|
|
7
|
+
import type { InlineNodeViewComponentProps } from '@atlaskit/editor-common/react-node-view';
|
|
8
8
|
import { StatusPluginOptions } from '../types';
|
|
9
9
|
export interface ContainerProps {
|
|
10
10
|
view: EditorView;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Node as PMNode } from 'prosemirror-model';
|
|
4
4
|
import { UnsupportedContentTooltipPayload } from '@atlaskit/editor-common/utils';
|
|
5
|
-
import { InlineNodeViewComponentProps } from '
|
|
5
|
+
import type { InlineNodeViewComponentProps } from '@atlaskit/editor-common/react-node-view';
|
|
6
6
|
export type Props = InlineNodeViewComponentProps & {
|
|
7
7
|
node?: PMNode;
|
|
8
8
|
children?: React.ReactNode;
|
|
@@ -16,7 +16,7 @@ import { BlockTypePluginOptions } from '../plugins/block-type/types';
|
|
|
16
16
|
import { CodeBlockOptions } from '../plugins/code-block/types';
|
|
17
17
|
import { CollabEditOptions } from '../plugins/collab-edit/types';
|
|
18
18
|
import { FindReplaceOptions } from '../plugins/find-replace/types';
|
|
19
|
-
import { LinkingOptions } from '
|
|
19
|
+
import type { LinkingOptions } from '@atlaskit/editor-common/types';
|
|
20
20
|
import { LayoutPluginOptions } from '../plugins/layout/types';
|
|
21
21
|
import { MediaOptions, MediaState } from '../plugins/media/types';
|
|
22
22
|
import { PlaceholderTextOptions } from '../plugins/placeholder-text/types';
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
export declare const RECENT_SEARCH_WIDTH_IN_PX = 420;
|
|
2
|
-
export declare const RECENT_SEARCH_WIDTH_WITHOUT_ITEMS_IN_PX = 360;
|
|
3
|
-
export declare const RECENT_SEARCH_HEIGHT_IN_PX = 360;
|
|
4
|
-
export declare const LINKPICKER_HEIGHT_IN_PX = 570;
|
|
5
1
|
export declare const inputWrapper: import("@emotion/react").SerializedStyles;
|
|
6
2
|
export declare const container: import("@emotion/react").SerializedStyles;
|
|
7
3
|
export declare const containerWithProvider: import("@emotion/react").SerializedStyles;
|
|
@@ -13,20 +13,8 @@ export declare function hasVisibleContent(node: Node): boolean;
|
|
|
13
13
|
* Checks if a node has any content. Ignores node that only contain empty block nodes.
|
|
14
14
|
*/
|
|
15
15
|
export declare function isNodeEmpty(node?: Node): boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Checks if a node looks like an empty document
|
|
18
|
-
*/
|
|
19
|
-
export declare function isEmptyDocument(node: Node): boolean;
|
|
20
|
-
export declare function hasDocAsParent($anchor: ResolvedPos): boolean;
|
|
21
|
-
export declare function isProseMirrorSchemaCheckError(error: unknown): boolean;
|
|
22
16
|
export declare function isInEmptyLine(state: EditorState): boolean;
|
|
23
|
-
export declare function bracketTyped(state: EditorState): boolean;
|
|
24
17
|
export declare function processRawFragmentValue(schema: Schema, value?: ReplaceRawValue[], providerFactory?: ProviderFactory, sanitizePrivateContent?: boolean, contentTransformer?: Transformer<string>, dispatchAnalyticsEvent?: DispatchAnalyticsEvent): Fragment | undefined;
|
|
25
|
-
export declare function processRawValue(schema: Schema, value?: ReplaceRawValue, providerFactory?: ProviderFactory, sanitizePrivateContent?: boolean, contentTransformer?: Transformer<string>, dispatchAnalyticsEvent?: DispatchAnalyticsEvent): Node | undefined;
|
|
26
|
-
export declare const getStepRange: (transaction: Transaction | ReadonlyTransaction) => {
|
|
27
|
-
from: number;
|
|
28
|
-
to: number;
|
|
29
|
-
} | null;
|
|
30
18
|
/**
|
|
31
19
|
* Find the farthest node given a condition
|
|
32
20
|
* @param predicate Function to check the node
|
|
@@ -2,7 +2,7 @@ import { MarkType, Node, ResolvedPos, Schema, Slice } from 'prosemirror-model';
|
|
|
2
2
|
import { EditorState, Selection } from 'prosemirror-state';
|
|
3
3
|
import { JSONDocNode, JSONNode } from '@atlaskit/editor-json-transformer';
|
|
4
4
|
export { insideTable } from '@atlaskit/editor-common/core-utils';
|
|
5
|
-
export { hasVisibleContent, isNodeEmpty,
|
|
5
|
+
export { hasVisibleContent, isNodeEmpty, findFarthestParentNode, isSelectionEndOfParagraph, nodesBetweenChanged, getNodesCount, } from './document';
|
|
6
6
|
export { sanitiseMarksInSelection } from './mark';
|
|
7
7
|
export { isParagraph, isText, isLinkMark } from './nodes';
|
|
8
8
|
export { setNodeSelection, setGapCursorSelection, setTextSelection, } from './selection';
|
|
@@ -34,7 +34,6 @@ export declare function areBlockTypesDisabled(state: EditorState): boolean;
|
|
|
34
34
|
export declare const isTemporary: (id: string) => boolean;
|
|
35
35
|
export declare const isEmptyNode: (schema: Schema) => (node: Node) => boolean;
|
|
36
36
|
export declare const insideTableCell: (state: EditorState) => boolean;
|
|
37
|
-
export declare const isInLayoutColumn: (state: EditorState) => boolean;
|
|
38
37
|
export declare const isInListItem: (state: EditorState) => boolean;
|
|
39
38
|
export declare const hasOpenEnd: (slice: Slice) => boolean;
|
|
40
39
|
export declare const isInsideBlockQuote: (state: EditorState) => boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "185.2.
|
|
3
|
+
"version": "185.2.2",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -49,12 +49,12 @@
|
|
|
49
49
|
"@atlaskit/code": "^14.6.0",
|
|
50
50
|
"@atlaskit/date": "^0.10.0",
|
|
51
51
|
"@atlaskit/datetime-picker": "^12.7.0",
|
|
52
|
-
"@atlaskit/editor-common": "^74.
|
|
52
|
+
"@atlaskit/editor-common": "^74.6.0",
|
|
53
53
|
"@atlaskit/editor-json-transformer": "^8.9.0",
|
|
54
54
|
"@atlaskit/editor-markdown-transformer": "^5.2.0",
|
|
55
55
|
"@atlaskit/editor-palette": "1.4.3",
|
|
56
|
-
"@atlaskit/editor-plugin-analytics": "^0.0.
|
|
57
|
-
"@atlaskit/editor-plugin-content-insertion": "^0.0.
|
|
56
|
+
"@atlaskit/editor-plugin-analytics": "^0.0.2",
|
|
57
|
+
"@atlaskit/editor-plugin-content-insertion": "^0.0.2",
|
|
58
58
|
"@atlaskit/editor-plugin-decorations": "^0.1.0",
|
|
59
59
|
"@atlaskit/editor-plugin-feature-flags": "^0.1.0",
|
|
60
60
|
"@atlaskit/editor-plugin-grid": "^0.1.0",
|
|
@@ -129,7 +129,6 @@
|
|
|
129
129
|
"prosemirror-utils": "^1.0.0-0",
|
|
130
130
|
"prosemirror-view": "1.23.7",
|
|
131
131
|
"raf-schd": "^4.0.3",
|
|
132
|
-
"re-resizable": "6.0.0",
|
|
133
132
|
"react-loadable": "^5.1.0",
|
|
134
133
|
"react-transition-group": "^4.4.1",
|
|
135
134
|
"react-virtualized": "^9.8.0",
|