@atlaskit/editor-core 185.2.0 → 185.2.5
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 +14 -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 +6 -6
- package/dist/cjs/plugins/card/nodeviews/genericCard.js +2 -1
- 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 +13 -16
- package/dist/cjs/plugins/card/ui/EditLinkToolbar.js +19 -18
- 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 +8 -2
- 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/mediaNodeUpdater.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 +10 -9
- package/dist/cjs/plugins/media/toolbar/linking-toolbar-appearance.js +4 -3
- package/dist/cjs/plugins/media/toolbar/linking.js +6 -6
- 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 +3 -3
- package/dist/es2019/plugins/card/nodeviews/genericCard.js +2 -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 +8 -10
- package/dist/es2019/plugins/card/ui/EditLinkToolbar.js +10 -8
- 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 +5 -2
- 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/mediaNodeUpdater.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 +10 -9
- package/dist/es2019/plugins/media/toolbar/linking-toolbar-appearance.js +2 -1
- package/dist/es2019/plugins/media/toolbar/linking.js +4 -4
- 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 +3 -3
- package/dist/esm/plugins/card/nodeviews/genericCard.js +2 -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 +8 -10
- package/dist/esm/plugins/card/ui/EditLinkToolbar.js +18 -16
- 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 +5 -2
- 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/mediaNodeUpdater.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 +10 -9
- package/dist/esm/plugins/media/toolbar/linking-toolbar-appearance.js +2 -1
- package/dist/esm/plugins/media/toolbar/linking.js +4 -4
- 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 +9 -3
- package/dist/types/labs/next/presets/default.d.ts +13 -1
- package/dist/types/labs/next/presets/mobile.d.ts +9 -3
- package/dist/types/messages.d.ts +2 -53
- package/dist/types/plugins/card/index.d.ts +3 -1
- 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 +7 -4
- 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/index.d.ts +2 -6
- 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/index.d.ts +3 -1
- package/dist/types/plugins/media/nodeviews/mediaInline.d.ts +1 -1
- package/dist/types/plugins/media/nodeviews/mediaNodeUpdater.d.ts +1 -1
- package/dist/types/plugins/media/nodeviews/types.d.ts +1 -1
- package/dist/types/plugins/media/toolbar/linking.d.ts +3 -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 +9 -3
- package/dist/types-ts4.5/labs/next/presets/default.d.ts +13 -1
- package/dist/types-ts4.5/labs/next/presets/mobile.d.ts +9 -3
- package/dist/types-ts4.5/messages.d.ts +2 -53
- package/dist/types-ts4.5/plugins/card/index.d.ts +3 -1
- 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 +7 -4
- 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/index.d.ts +2 -9
- 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/index.d.ts +3 -1
- package/dist/types-ts4.5/plugins/media/nodeviews/mediaInline.d.ts +1 -1
- package/dist/types-ts4.5/plugins/media/nodeviews/mediaNodeUpdater.d.ts +1 -1
- package/dist/types-ts4.5/plugins/media/nodeviews/types.d.ts +1 -1
- package/dist/types-ts4.5/plugins/media/toolbar/linking.d.ts +3 -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 +11 -14
- package/report.api.md +11 -34
- package/tmp/api-report-tmp.d.ts +10 -34
- 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
|
@@ -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
|
};
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { PluginKey, Selection, EditorState } from 'prosemirror-state';
|
|
2
2
|
import { Node } from 'prosemirror-model';
|
|
3
|
-
import { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
4
3
|
import { FloatingToolbarConfig } from './types';
|
|
5
|
-
import type
|
|
6
|
-
import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
|
|
4
|
+
import type { FloatingToolbarPlugin } from '@atlaskit/editor-plugin-floating-toolbar';
|
|
7
5
|
export type FloatingToolbarPluginState = Record<'getConfigWithNodeInfo', (state: EditorState) => ConfigWithNodeInfo | null | undefined>;
|
|
8
6
|
export type ConfigWithNodeInfo = {
|
|
9
7
|
config: FloatingToolbarConfig | undefined;
|
|
@@ -11,12 +9,7 @@ export type ConfigWithNodeInfo = {
|
|
|
11
9
|
node: Node;
|
|
12
10
|
};
|
|
13
11
|
export declare const getRelevantConfig: (selection: Selection<any>, configs: Array<FloatingToolbarConfig>) => ConfigWithNodeInfo | undefined;
|
|
14
|
-
declare const floatingToolbarPlugin:
|
|
15
|
-
dependencies: [
|
|
16
|
-
typeof featureFlagsPlugin,
|
|
17
|
-
typeof decorationsPlugin
|
|
18
|
-
];
|
|
19
|
-
}>;
|
|
12
|
+
declare const floatingToolbarPlugin: FloatingToolbarPlugin;
|
|
20
13
|
export default floatingToolbarPlugin;
|
|
21
14
|
/**
|
|
22
15
|
*
|
|
@@ -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'> {
|
|
@@ -9,6 +9,7 @@ import type { gridPlugin } from '@atlaskit/editor-plugin-grid';
|
|
|
9
9
|
import type { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
10
10
|
import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
|
|
11
11
|
import { MediaPluginState } from './pm-plugins/types';
|
|
12
|
+
import type { FloatingToolbarPlugin } from '@atlaskit/editor-plugin-floating-toolbar';
|
|
12
13
|
export type { MediaState, MediaProvider, CustomMediaPicker };
|
|
13
14
|
export { insertMediaSingleNode } from './utils/media-single';
|
|
14
15
|
declare const mediaPlugin: NextEditorPlugin<'media', {
|
|
@@ -18,7 +19,8 @@ declare const mediaPlugin: NextEditorPlugin<'media', {
|
|
|
18
19
|
OptionalPlugin<typeof analyticsPlugin>,
|
|
19
20
|
typeof gridPlugin,
|
|
20
21
|
typeof widthPlugin,
|
|
21
|
-
typeof decorationsPlugin
|
|
22
|
+
typeof decorationsPlugin,
|
|
23
|
+
FloatingToolbarPlugin
|
|
22
24
|
];
|
|
23
25
|
sharedState: MediaPluginState | null;
|
|
24
26
|
}>;
|
|
@@ -9,7 +9,7 @@ import type { MediaProvider } from '@atlaskit/editor-common/provider-factory';
|
|
|
9
9
|
import { PortalProviderAPI } from '../../../../src/ui/PortalProvider';
|
|
10
10
|
import { MediaPluginState } from '../pm-plugins/types';
|
|
11
11
|
import { MediaNodeUpdater } from './mediaNodeUpdater';
|
|
12
|
-
import { DispatchAnalyticsEvent } from '
|
|
12
|
+
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
13
13
|
export interface MediaInlineProps {
|
|
14
14
|
mediaProvider: Promise<MediaProvider>;
|
|
15
15
|
identifier: FileIdentifier;
|
|
@@ -3,7 +3,7 @@ import type { MediaProvider } from '@atlaskit/editor-common/provider-factory';
|
|
|
3
3
|
import { Node as PMNode } from 'prosemirror-model';
|
|
4
4
|
import { EditorView } from 'prosemirror-view';
|
|
5
5
|
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
6
|
-
import { DispatchAnalyticsEvent } from '
|
|
6
|
+
import { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
7
7
|
import { MediaOptions } from '../types';
|
|
8
8
|
import { ProsemirrorGetPosHandler } from '../../../nodeviews';
|
|
9
9
|
import { MediaTraceContext } from '@atlaskit/media-common';
|
|
@@ -6,7 +6,7 @@ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
|
6
6
|
import { ProsemirrorGetPosHandler, ForwardRef } from '../../../nodeviews';
|
|
7
7
|
import { EventDispatcher } from '../../../event-dispatcher';
|
|
8
8
|
import { MediaOptions } from '../types';
|
|
9
|
-
import { DispatchAnalyticsEvent } from '
|
|
9
|
+
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
10
10
|
import { MediaPluginState } from '../pm-plugins/types';
|
|
11
11
|
import type mediaPlugin from '../index';
|
|
12
12
|
export interface MediaSingleNodeProps {
|
|
@@ -3,6 +3,8 @@ import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
|
3
3
|
import { IntlShape } from 'react-intl-next';
|
|
4
4
|
import { FloatingToolbarConfig } from '../../floating-toolbar/types';
|
|
5
5
|
import { MediaLinkingState } from '../pm-plugins/linking';
|
|
6
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
6
7
|
import { MediaToolbarBaseConfig } from '../types';
|
|
8
|
+
import type mediaPlugin from '../index';
|
|
7
9
|
export declare function shouldShowMediaLinkToolbar(editorState: EditorState): boolean;
|
|
8
|
-
export declare const getLinkingToolbar: (toolbarBaseConfig: MediaToolbarBaseConfig, mediaLinkingState: MediaLinkingState, state: EditorState, intl: IntlShape, providerFactory?: ProviderFactory) => FloatingToolbarConfig | undefined;
|
|
10
|
+
export declare const getLinkingToolbar: (toolbarBaseConfig: MediaToolbarBaseConfig, mediaLinkingState: MediaLinkingState, state: EditorState, intl: IntlShape, pluginInjectionApi: ExtractInjectionAPI<typeof mediaPlugin> | undefined, providerFactory?: ProviderFactory) => FloatingToolbarConfig | undefined;
|
|
@@ -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.5",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@atlaskit/activity-provider": "^2.4.0",
|
|
37
37
|
"@atlaskit/adf-schema": "^25.8.0",
|
|
38
|
-
"@atlaskit/adf-utils": "^18.
|
|
38
|
+
"@atlaskit/adf-utils": "^18.4.0",
|
|
39
39
|
"@atlaskit/analytics-gas-types": "^5.1.0",
|
|
40
40
|
"@atlaskit/analytics-listeners": "^8.7.0",
|
|
41
41
|
"@atlaskit/analytics-namespaced-context": "^6.7.0",
|
|
@@ -49,16 +49,17 @@
|
|
|
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.7.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
|
+
"@atlaskit/editor-plugin-floating-toolbar": "^0.2.0",
|
|
60
61
|
"@atlaskit/editor-plugin-grid": "^0.1.0",
|
|
61
|
-
"@atlaskit/editor-plugin-table": "^1.
|
|
62
|
+
"@atlaskit/editor-plugin-table": "^1.6.0",
|
|
62
63
|
"@atlaskit/editor-plugin-width": "^0.1.0",
|
|
63
64
|
"@atlaskit/editor-shared-styles": "^2.4.0",
|
|
64
65
|
"@atlaskit/editor-tables": "^2.3.0",
|
|
@@ -68,7 +69,7 @@
|
|
|
68
69
|
"@atlaskit/icon": "^21.12.0",
|
|
69
70
|
"@atlaskit/icon-object": "^6.3.0",
|
|
70
71
|
"@atlaskit/link-analytics": "^8.0.0",
|
|
71
|
-
"@atlaskit/link-picker": "^1.
|
|
72
|
+
"@atlaskit/link-picker": "^1.24.0",
|
|
72
73
|
"@atlaskit/locale": "^2.5.0",
|
|
73
74
|
"@atlaskit/logo": "^13.14.0",
|
|
74
75
|
"@atlaskit/media-card": "^76.0.0",
|
|
@@ -129,7 +130,6 @@
|
|
|
129
130
|
"prosemirror-utils": "^1.0.0-0",
|
|
130
131
|
"prosemirror-view": "1.23.7",
|
|
131
132
|
"raf-schd": "^4.0.3",
|
|
132
|
-
"re-resizable": "6.0.0",
|
|
133
133
|
"react-loadable": "^5.1.0",
|
|
134
134
|
"react-transition-group": "^4.4.1",
|
|
135
135
|
"react-virtualized": "^9.8.0",
|
|
@@ -145,18 +145,18 @@
|
|
|
145
145
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
146
146
|
},
|
|
147
147
|
"devDependencies": {
|
|
148
|
+
"@af/editor-libra": "*",
|
|
148
149
|
"@af/integration-testing": "*",
|
|
149
150
|
"@atlaskit/atlassian-navigation": "^2.6.0",
|
|
150
151
|
"@atlaskit/breadcrumbs": "11.10.4",
|
|
151
152
|
"@atlaskit/code": "^14.6.0",
|
|
152
|
-
"@atlaskit/collab-provider": "9.2.
|
|
153
|
+
"@atlaskit/collab-provider": "9.2.2",
|
|
153
154
|
"@atlaskit/docs": "*",
|
|
154
155
|
"@atlaskit/drawer": "^7.5.0",
|
|
155
156
|
"@atlaskit/dropdown-menu": "^11.9.0",
|
|
156
|
-
"@atlaskit/editor-bitbucket-transformer": "^8.1.0",
|
|
157
157
|
"@atlaskit/editor-card-provider": "^3.0.0",
|
|
158
158
|
"@atlaskit/editor-extension-dropbox": "^0.4.0",
|
|
159
|
-
"@atlaskit/editor-plugin-table": "^1.
|
|
159
|
+
"@atlaskit/editor-plugin-table": "^1.6.0",
|
|
160
160
|
"@atlaskit/editor-test-helpers": "^18.6.0",
|
|
161
161
|
"@atlaskit/flag": "^15.2.0",
|
|
162
162
|
"@atlaskit/inline-dialog": "^13.6.0",
|
|
@@ -169,8 +169,6 @@
|
|
|
169
169
|
"@atlaskit/menu": "^1.7.0",
|
|
170
170
|
"@atlaskit/page-layout": "^1.6.0",
|
|
171
171
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
172
|
-
"@atlaskit/profilecard": "^19.4.0",
|
|
173
|
-
"@atlaskit/pubsub": "^6.4.0",
|
|
174
172
|
"@atlaskit/renderer": "^108.1.0",
|
|
175
173
|
"@atlaskit/section-message": "^6.4.0",
|
|
176
174
|
"@atlaskit/share": "*",
|
|
@@ -183,7 +181,6 @@
|
|
|
183
181
|
"@atlaskit/visual-regression": "*",
|
|
184
182
|
"@atlaskit/webdriver-runner": "*",
|
|
185
183
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
186
|
-
"@atlassian/link-picker-atlassian-plugin": "^33.3.0",
|
|
187
184
|
"@atlassian/link-picker-plugins": "^22.2.0",
|
|
188
185
|
"@atlassian/search-provider": "2.4.6",
|
|
189
186
|
"@atlassian/ufo": "^0.2.0",
|
package/report.api.md
CHANGED
|
@@ -79,12 +79,14 @@ import { FloatingToolbarEmojiPicker } from '@atlaskit/editor-common/types';
|
|
|
79
79
|
import { FloatingToolbarInput } from '@atlaskit/editor-common/types';
|
|
80
80
|
import { FloatingToolbarItem } from '@atlaskit/editor-common/types';
|
|
81
81
|
import { FloatingToolbarListPicker } from '@atlaskit/editor-common/types';
|
|
82
|
+
import type { FloatingToolbarPlugin } from '@atlaskit/editor-plugin-floating-toolbar';
|
|
82
83
|
import { FloatingToolbarSelect } from '@atlaskit/editor-common/types';
|
|
83
84
|
import { FULL_WIDTH_MODE } from '@atlaskit/editor-common/analytics';
|
|
84
85
|
import { GapCursorSelection } from '@atlaskit/editor-common/selection';
|
|
85
86
|
import { Side as GapCursorSide } from '@atlaskit/editor-common/selection';
|
|
86
87
|
import { GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
|
|
87
88
|
import type { gridPlugin } from '@atlaskit/editor-plugin-grid';
|
|
89
|
+
import type { HyperlinkPluginOptions } from '@atlaskit/editor-common/types';
|
|
88
90
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
89
91
|
import { InputMethodInsertMedia } from '@atlaskit/editor-common/analytics';
|
|
90
92
|
import { InputTracking } from '@atlaskit/editor-common/types';
|
|
@@ -92,7 +94,8 @@ import { IntlShape } from 'react-intl-next';
|
|
|
92
94
|
import { JSONDocNode } from '@atlaskit/editor-json-transformer/types';
|
|
93
95
|
import { jsx } from '@emotion/react';
|
|
94
96
|
import { lightModeStatusColorPalette } from '@atlaskit/editor-common/ui-color';
|
|
95
|
-
import {
|
|
97
|
+
import type { LinkingOptions } from '@atlaskit/editor-common/types';
|
|
98
|
+
import type { LinkInputType } from '@atlaskit/editor-common/types';
|
|
96
99
|
import { MacroAttributes } from '@atlaskit/editor-common/provider-factory';
|
|
97
100
|
import { MacroProvider } from '@atlaskit/editor-common/provider-factory';
|
|
98
101
|
import { MarkConfig } from '@atlaskit/editor-common/types';
|
|
@@ -1226,18 +1229,6 @@ export enum HyperlinkInsertStatus {
|
|
|
1226
1229
|
INSERT_LINK_TOOLBAR = 'INSERT',
|
|
1227
1230
|
}
|
|
1228
1231
|
|
|
1229
|
-
// @public
|
|
1230
|
-
interface HyperlinkPluginOptions {
|
|
1231
|
-
// (undocumented)
|
|
1232
|
-
cardOptions?: CardOptions;
|
|
1233
|
-
// (undocumented)
|
|
1234
|
-
editorAppearance?: EditorAppearance;
|
|
1235
|
-
// (undocumented)
|
|
1236
|
-
linkPicker?: LinkPickerOptions;
|
|
1237
|
-
// (undocumented)
|
|
1238
|
-
platform?: 'mobile' | 'web';
|
|
1239
|
-
}
|
|
1240
|
-
|
|
1241
1232
|
// @public (undocumented)
|
|
1242
1233
|
export interface HyperlinkState {
|
|
1243
1234
|
// (undocumented)
|
|
@@ -1347,13 +1338,13 @@ export function insertLink(
|
|
|
1347
1338
|
incomingHref: string,
|
|
1348
1339
|
incomingTitle?: string,
|
|
1349
1340
|
displayText?: string,
|
|
1350
|
-
source?:
|
|
1341
|
+
source?: LinkInputType,
|
|
1351
1342
|
sourceEvent?: UIAnalyticsEvent | null | undefined,
|
|
1352
|
-
):
|
|
1343
|
+
): Command_2;
|
|
1353
1344
|
|
|
1354
1345
|
// @public (undocumented)
|
|
1355
1346
|
export const insertLinkWithAnalytics: (
|
|
1356
|
-
inputMethod:
|
|
1347
|
+
inputMethod: LinkInputType,
|
|
1357
1348
|
from: number,
|
|
1358
1349
|
to: number,
|
|
1359
1350
|
href: string,
|
|
@@ -1361,11 +1352,11 @@ export const insertLinkWithAnalytics: (
|
|
|
1361
1352
|
displayText?: string,
|
|
1362
1353
|
cardsAvailable?: boolean,
|
|
1363
1354
|
sourceEvent?: UIAnalyticsEvent | null | undefined,
|
|
1364
|
-
) =>
|
|
1355
|
+
) => Command_2;
|
|
1365
1356
|
|
|
1366
1357
|
// @public (undocumented)
|
|
1367
1358
|
export const insertLinkWithAnalyticsMobileNative: (
|
|
1368
|
-
inputMethod:
|
|
1359
|
+
inputMethod: LinkInputType,
|
|
1369
1360
|
from: number,
|
|
1370
1361
|
to: number,
|
|
1371
1362
|
href: string,
|
|
@@ -1413,9 +1404,6 @@ type InviteToEditComponentProps = {
|
|
|
1413
1404
|
children: ReactElement<InviteToEditButtonProps>;
|
|
1414
1405
|
};
|
|
1415
1406
|
|
|
1416
|
-
// @public
|
|
1417
|
-
export function isEmptyDocument(node: Node_2): boolean;
|
|
1418
|
-
|
|
1419
1407
|
// @public (undocumented)
|
|
1420
1408
|
export function isLinkAtPos(pos: number): Predicate;
|
|
1421
1409
|
|
|
@@ -1434,18 +1422,6 @@ interface LayoutPluginOptions extends LongPressSelectionPluginOptions {
|
|
|
1434
1422
|
|
|
1435
1423
|
export { lightModeStatusColorPalette };
|
|
1436
1424
|
|
|
1437
|
-
// @public
|
|
1438
|
-
interface LinkingOptions {
|
|
1439
|
-
linkPicker?: LinkPickerOptions;
|
|
1440
|
-
smartLinks?: CardOptions;
|
|
1441
|
-
}
|
|
1442
|
-
|
|
1443
|
-
// @public (undocumented)
|
|
1444
|
-
export type LinkInputMethod = INPUT_METHOD.MANUAL | INPUT_METHOD.TYPEAHEAD;
|
|
1445
|
-
|
|
1446
|
-
// @public
|
|
1447
|
-
interface LinkPickerOptions extends Partial<LinkPickerProps> {}
|
|
1448
|
-
|
|
1449
1425
|
// @public (undocumented)
|
|
1450
1426
|
type LinkToolbarState = EditInsertedState | EditState | InsertState | undefined;
|
|
1451
1427
|
|
|
@@ -1584,6 +1560,7 @@ export const mediaPlugin: NextEditorPlugin<
|
|
|
1584
1560
|
typeof gridPlugin,
|
|
1585
1561
|
typeof widthPlugin,
|
|
1586
1562
|
typeof decorationsPlugin,
|
|
1563
|
+
FloatingToolbarPlugin,
|
|
1587
1564
|
];
|
|
1588
1565
|
sharedState: MediaPluginState | null;
|
|
1589
1566
|
}
|
|
@@ -2674,7 +2651,7 @@ export function updateLink(
|
|
|
2674
2651
|
text: string,
|
|
2675
2652
|
pos: number,
|
|
2676
2653
|
to?: number,
|
|
2677
|
-
):
|
|
2654
|
+
): Command_2;
|
|
2678
2655
|
|
|
2679
2656
|
// @public (undocumented)
|
|
2680
2657
|
export const updateStatus: (status?: StatusType) => Command;
|
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -68,12 +68,14 @@ import { FloatingToolbarEmojiPicker } from '@atlaskit/editor-common/types';
|
|
|
68
68
|
import { FloatingToolbarInput } from '@atlaskit/editor-common/types';
|
|
69
69
|
import { FloatingToolbarItem } from '@atlaskit/editor-common/types';
|
|
70
70
|
import { FloatingToolbarListPicker } from '@atlaskit/editor-common/types';
|
|
71
|
+
import type { FloatingToolbarPlugin } from '@atlaskit/editor-plugin-floating-toolbar';
|
|
71
72
|
import { FloatingToolbarSelect } from '@atlaskit/editor-common/types';
|
|
72
73
|
import { FULL_WIDTH_MODE } from '@atlaskit/editor-common/analytics';
|
|
73
74
|
import { GapCursorSelection } from '@atlaskit/editor-common/selection';
|
|
74
75
|
import { Side as GapCursorSide } from '@atlaskit/editor-common/selection';
|
|
75
76
|
import { GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
|
|
76
77
|
import type { gridPlugin } from '@atlaskit/editor-plugin-grid';
|
|
78
|
+
import type { HyperlinkPluginOptions } from '@atlaskit/editor-common/types';
|
|
77
79
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
78
80
|
import { InputMethodInsertMedia } from '@atlaskit/editor-common/analytics';
|
|
79
81
|
import { InputTracking } from '@atlaskit/editor-common/types';
|
|
@@ -81,7 +83,8 @@ import { IntlShape } from 'react-intl-next';
|
|
|
81
83
|
import { JSONDocNode } from '@atlaskit/editor-json-transformer/types';
|
|
82
84
|
import { jsx } from '@emotion/react';
|
|
83
85
|
import { lightModeStatusColorPalette } from '@atlaskit/editor-common/ui-color';
|
|
84
|
-
import {
|
|
86
|
+
import type { LinkingOptions } from '@atlaskit/editor-common/types';
|
|
87
|
+
import type { LinkInputType } from '@atlaskit/editor-common/types';
|
|
85
88
|
import { MacroAttributes } from '@atlaskit/editor-common/provider-factory';
|
|
86
89
|
import { MacroProvider } from '@atlaskit/editor-common/provider-factory';
|
|
87
90
|
import { MarkConfig } from '@atlaskit/editor-common/types';
|
|
@@ -1126,18 +1129,6 @@ export enum HyperlinkInsertStatus {
|
|
|
1126
1129
|
INSERT_LINK_TOOLBAR = "INSERT"
|
|
1127
1130
|
}
|
|
1128
1131
|
|
|
1129
|
-
// @public
|
|
1130
|
-
interface HyperlinkPluginOptions {
|
|
1131
|
-
// (undocumented)
|
|
1132
|
-
cardOptions?: CardOptions;
|
|
1133
|
-
// (undocumented)
|
|
1134
|
-
editorAppearance?: EditorAppearance;
|
|
1135
|
-
// (undocumented)
|
|
1136
|
-
linkPicker?: LinkPickerOptions;
|
|
1137
|
-
// (undocumented)
|
|
1138
|
-
platform?: 'mobile' | 'web';
|
|
1139
|
-
}
|
|
1140
|
-
|
|
1141
1132
|
// @public (undocumented)
|
|
1142
1133
|
export interface HyperlinkState {
|
|
1143
1134
|
// (undocumented)
|
|
@@ -1220,13 +1211,13 @@ type InsertItemProps = {
|
|
|
1220
1211
|
};
|
|
1221
1212
|
|
|
1222
1213
|
// @public (undocumented)
|
|
1223
|
-
export function insertLink(from: number, to: number, incomingHref: string, incomingTitle?: string, displayText?: string, source?:
|
|
1214
|
+
export function insertLink(from: number, to: number, incomingHref: string, incomingTitle?: string, displayText?: string, source?: LinkInputType, sourceEvent?: UIAnalyticsEvent | null | undefined): Command_2;
|
|
1224
1215
|
|
|
1225
1216
|
// @public (undocumented)
|
|
1226
|
-
export const insertLinkWithAnalytics: (inputMethod:
|
|
1217
|
+
export const insertLinkWithAnalytics: (inputMethod: LinkInputType, from: number, to: number, href: string, title?: string, displayText?: string, cardsAvailable?: boolean, sourceEvent?: UIAnalyticsEvent | null | undefined) => Command_2;
|
|
1227
1218
|
|
|
1228
1219
|
// @public (undocumented)
|
|
1229
|
-
export const insertLinkWithAnalyticsMobileNative: (inputMethod:
|
|
1220
|
+
export const insertLinkWithAnalyticsMobileNative: (inputMethod: LinkInputType, from: number, to: number, href: string, title?: string, displayText?: string) => Command;
|
|
1230
1221
|
|
|
1231
1222
|
// @public (undocumented)
|
|
1232
1223
|
export const insertMediaSingleNode: (view: EditorView, mediaState: MediaState, inputMethod?: InputMethodInsertMedia, collection?: string, alignLeftOnInsert?: boolean, newInsertionBehaviour?: boolean) => boolean;
|
|
@@ -1252,9 +1243,6 @@ type InviteToEditComponentProps = {
|
|
|
1252
1243
|
children: ReactElement<InviteToEditButtonProps>;
|
|
1253
1244
|
};
|
|
1254
1245
|
|
|
1255
|
-
// @public
|
|
1256
|
-
export function isEmptyDocument(node: Node_2): boolean;
|
|
1257
|
-
|
|
1258
1246
|
// @public (undocumented)
|
|
1259
1247
|
export function isLinkAtPos(pos: number): Predicate;
|
|
1260
1248
|
|
|
@@ -1273,19 +1261,6 @@ interface LayoutPluginOptions extends LongPressSelectionPluginOptions {
|
|
|
1273
1261
|
|
|
1274
1262
|
export { lightModeStatusColorPalette }
|
|
1275
1263
|
|
|
1276
|
-
// @public
|
|
1277
|
-
interface LinkingOptions {
|
|
1278
|
-
linkPicker?: LinkPickerOptions;
|
|
1279
|
-
smartLinks?: CardOptions;
|
|
1280
|
-
}
|
|
1281
|
-
|
|
1282
|
-
// @public (undocumented)
|
|
1283
|
-
export type LinkInputMethod = INPUT_METHOD.MANUAL | INPUT_METHOD.TYPEAHEAD;
|
|
1284
|
-
|
|
1285
|
-
// @public
|
|
1286
|
-
interface LinkPickerOptions extends Partial<LinkPickerProps> {
|
|
1287
|
-
}
|
|
1288
|
-
|
|
1289
1264
|
// @public (undocumented)
|
|
1290
1265
|
type LinkToolbarState = EditInsertedState | EditState | InsertState | undefined;
|
|
1291
1266
|
|
|
@@ -1418,7 +1393,8 @@ export const mediaPlugin: NextEditorPlugin<'media', {
|
|
|
1418
1393
|
OptionalPlugin<typeof analyticsPlugin>,
|
|
1419
1394
|
typeof gridPlugin,
|
|
1420
1395
|
typeof widthPlugin,
|
|
1421
|
-
typeof decorationsPlugin
|
|
1396
|
+
typeof decorationsPlugin,
|
|
1397
|
+
FloatingToolbarPlugin
|
|
1422
1398
|
];
|
|
1423
1399
|
sharedState: MediaPluginState | null;
|
|
1424
1400
|
}>;
|
|
@@ -2362,7 +2338,7 @@ interface TypeAheadStatsSerializable extends TypeAheadStats {
|
|
|
2362
2338
|
export type UpdateEvent = 'create' | 'delete' | 'resolve' | 'unresolve';
|
|
2363
2339
|
|
|
2364
2340
|
// @public (undocumented)
|
|
2365
|
-
export function updateLink(href: string, text: string, pos: number, to?: number):
|
|
2341
|
+
export function updateLink(href: string, text: string, pos: number, to?: number): Command_2;
|
|
2366
2342
|
|
|
2367
2343
|
// @public (undocumented)
|
|
2368
2344
|
export const updateStatus: (status?: StatusType) => Command;
|