@atlaskit/editor-core 185.2.25 → 185.2.26
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/editor-next/editor-internal.js +3 -3
- package/dist/cjs/index.js +4 -4
- package/dist/cjs/labs/next/Editor.js +3 -3
- package/dist/cjs/nodeviews/index.js +1 -16
- package/dist/cjs/plugins/annotation/index.js +31 -21
- package/dist/cjs/plugins/annotation/nodeviews/index.js +2 -2
- package/dist/cjs/plugins/base/index.js +0 -6
- package/dist/cjs/plugins/caption/index.js +1 -2
- package/dist/cjs/plugins/caption/nodeviews/index.js +3 -3
- package/dist/cjs/plugins/caption/pm-plugins/main.js +4 -2
- package/dist/cjs/plugins/card/nodeviews/embedCard.js +4 -4
- package/dist/cjs/plugins/extension/nodeviews/extension.js +2 -2
- package/dist/cjs/plugins/jira-issue/index.js +2 -2
- package/dist/cjs/plugins/media/index.js +2 -2
- package/dist/cjs/plugins/media/nodeviews/mediaGroup.js +25 -19
- package/dist/cjs/plugins/media/nodeviews/mediaInline.js +3 -3
- package/dist/cjs/plugins/media/nodeviews/mediaNodeView/index.js +16 -10
- package/dist/cjs/plugins/media/nodeviews/mediaSingle.js +2 -2
- package/dist/cjs/plugins/media/pm-plugins/main.js +25 -8
- package/dist/cjs/plugins/tasks-and-decisions/nodeviews/decisionItem.js +2 -2
- package/dist/cjs/plugins/tasks-and-decisions/nodeviews/taskItem.js +2 -2
- package/dist/cjs/plugins/unsupported-content/index.js +6 -4
- package/dist/cjs/test-utils.js +0 -7
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/editor-next/editor-internal.js +1 -1
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/labs/next/Editor.js +1 -1
- package/dist/es2019/nodeviews/index.js +1 -2
- package/dist/es2019/plugins/annotation/index.js +34 -23
- package/dist/es2019/plugins/annotation/nodeviews/index.js +1 -1
- package/dist/es2019/plugins/base/index.js +0 -4
- package/dist/es2019/plugins/caption/index.js +1 -4
- package/dist/es2019/plugins/caption/nodeviews/index.js +2 -2
- package/dist/es2019/plugins/caption/pm-plugins/main.js +4 -2
- package/dist/es2019/plugins/card/nodeviews/embedCard.js +2 -2
- package/dist/es2019/plugins/extension/nodeviews/extension.js +1 -1
- package/dist/es2019/plugins/jira-issue/index.js +1 -1
- package/dist/es2019/plugins/media/index.js +2 -2
- package/dist/es2019/plugins/media/nodeviews/mediaGroup.js +21 -14
- package/dist/es2019/plugins/media/nodeviews/mediaInline.js +2 -2
- package/dist/es2019/plugins/media/nodeviews/mediaNodeView/index.js +13 -9
- package/dist/es2019/plugins/media/nodeviews/mediaSingle.js +1 -1
- package/dist/es2019/plugins/media/pm-plugins/main.js +28 -11
- package/dist/es2019/plugins/tasks-and-decisions/nodeviews/decisionItem.js +1 -1
- package/dist/es2019/plugins/tasks-and-decisions/nodeviews/taskItem.js +1 -1
- package/dist/es2019/plugins/unsupported-content/index.js +1 -1
- package/dist/es2019/test-utils.js +0 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/editor-next/editor-internal.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/labs/next/Editor.js +1 -1
- package/dist/esm/nodeviews/index.js +1 -2
- package/dist/esm/plugins/annotation/index.js +32 -22
- package/dist/esm/plugins/annotation/nodeviews/index.js +1 -1
- package/dist/esm/plugins/base/index.js +0 -6
- package/dist/esm/plugins/caption/index.js +1 -2
- package/dist/esm/plugins/caption/nodeviews/index.js +2 -2
- package/dist/esm/plugins/caption/pm-plugins/main.js +4 -2
- package/dist/esm/plugins/card/nodeviews/embedCard.js +4 -4
- package/dist/esm/plugins/extension/nodeviews/extension.js +1 -1
- package/dist/esm/plugins/jira-issue/index.js +1 -1
- package/dist/esm/plugins/media/index.js +2 -2
- package/dist/esm/plugins/media/nodeviews/mediaGroup.js +24 -18
- package/dist/esm/plugins/media/nodeviews/mediaInline.js +2 -2
- package/dist/esm/plugins/media/nodeviews/mediaNodeView/index.js +15 -9
- package/dist/esm/plugins/media/nodeviews/mediaSingle.js +1 -1
- package/dist/esm/plugins/media/pm-plugins/main.js +26 -9
- package/dist/esm/plugins/tasks-and-decisions/nodeviews/decisionItem.js +1 -1
- package/dist/esm/plugins/tasks-and-decisions/nodeviews/taskItem.js +1 -1
- package/dist/esm/plugins/unsupported-content/index.js +1 -1
- package/dist/esm/test-utils.js +0 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/create-editor/ReactEditorViewInternal.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/labs/next/internal/components/EditorInternal.d.ts +2 -2
- package/dist/types/labs/next/internal/editor-props-type.d.ts +1 -1
- package/dist/types/labs/next/internal/hooks/use-editor/create-editor.d.ts +1 -1
- package/dist/types/nodeviews/index.d.ts +0 -2
- package/dist/types/plugins/annotation/index.d.ts +3 -1
- package/dist/types/plugins/annotation/nodeviews/index.d.ts +2 -1
- package/dist/types/plugins/annotation/pm-plugins/types.d.ts +2 -2
- package/dist/types/plugins/caption/index.d.ts +1 -1
- package/dist/types/plugins/caption/nodeviews/index.d.ts +7 -4
- package/dist/types/plugins/caption/pm-plugins/main.d.ts +5 -4
- package/dist/types/plugins/card/nodeviews/embedCard.d.ts +2 -2
- package/dist/types/plugins/extension/nodeviews/extension.d.ts +3 -2
- package/dist/types/plugins/extension/pm-plugins/main.d.ts +2 -2
- package/dist/types/plugins/media/index.d.ts +3 -1
- package/dist/types/plugins/media/nodeviews/mediaGroup.d.ts +5 -3
- package/dist/types/plugins/media/nodeviews/mediaInline.d.ts +6 -3
- package/dist/types/plugins/media/nodeviews/mediaNodeView/index.d.ts +6 -4
- package/dist/types/plugins/media/nodeviews/mediaSingle.d.ts +2 -2
- package/dist/types/plugins/media/types.d.ts +4 -0
- package/dist/types/plugins/tasks-and-decisions/nodeviews/decisionItem.d.ts +1 -1
- package/dist/types/plugins/tasks-and-decisions/nodeviews/taskItem.d.ts +1 -1
- package/dist/types/plugins/tasks-and-decisions/pm-plugins/main.d.ts +1 -1
- package/dist/types/test-utils.d.ts +0 -1
- package/dist/types-ts4.5/create-editor/ReactEditorViewInternal.d.ts +1 -1
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/dist/types-ts4.5/labs/next/internal/components/EditorInternal.d.ts +2 -2
- package/dist/types-ts4.5/labs/next/internal/editor-props-type.d.ts +1 -1
- package/dist/types-ts4.5/labs/next/internal/hooks/use-editor/create-editor.d.ts +1 -1
- package/dist/types-ts4.5/nodeviews/index.d.ts +0 -2
- package/dist/types-ts4.5/plugins/annotation/index.d.ts +3 -1
- package/dist/types-ts4.5/plugins/annotation/nodeviews/index.d.ts +2 -1
- package/dist/types-ts4.5/plugins/annotation/pm-plugins/types.d.ts +2 -2
- package/dist/types-ts4.5/plugins/caption/index.d.ts +1 -1
- package/dist/types-ts4.5/plugins/caption/nodeviews/index.d.ts +7 -4
- package/dist/types-ts4.5/plugins/caption/pm-plugins/main.d.ts +5 -4
- package/dist/types-ts4.5/plugins/card/nodeviews/embedCard.d.ts +2 -2
- package/dist/types-ts4.5/plugins/extension/nodeviews/extension.d.ts +3 -2
- package/dist/types-ts4.5/plugins/extension/pm-plugins/main.d.ts +2 -2
- package/dist/types-ts4.5/plugins/media/index.d.ts +3 -1
- package/dist/types-ts4.5/plugins/media/nodeviews/mediaGroup.d.ts +5 -3
- package/dist/types-ts4.5/plugins/media/nodeviews/mediaInline.d.ts +6 -3
- package/dist/types-ts4.5/plugins/media/nodeviews/mediaNodeView/index.d.ts +6 -4
- package/dist/types-ts4.5/plugins/media/nodeviews/mediaSingle.d.ts +2 -2
- package/dist/types-ts4.5/plugins/media/types.d.ts +4 -0
- package/dist/types-ts4.5/plugins/tasks-and-decisions/nodeviews/decisionItem.d.ts +1 -1
- package/dist/types-ts4.5/plugins/tasks-and-decisions/nodeviews/taskItem.d.ts +1 -1
- package/dist/types-ts4.5/plugins/tasks-and-decisions/pm-plugins/main.d.ts +1 -1
- package/dist/types-ts4.5/test-utils.d.ts +0 -1
- package/package.json +2 -2
- package/report.api.md +20 -85
- package/tmp/api-report-tmp.d.ts +18 -68
- package/dist/cjs/nodeviews/ReactNodeView.js +0 -224
- package/dist/cjs/nodeviews/SelectionBasedNodeView.js +0 -169
- package/dist/cjs/plugins/base/pm-plugins/react-nodeview.js +0 -72
- package/dist/cjs/ui/PortalProvider/PortalProviderThemesProvider.js +0 -43
- package/dist/cjs/ui/PortalProvider/index.js +0 -252
- package/dist/es2019/nodeviews/ReactNodeView.js +0 -170
- package/dist/es2019/nodeviews/SelectionBasedNodeView.js +0 -158
- package/dist/es2019/plugins/base/pm-plugins/react-nodeview.js +0 -48
- package/dist/es2019/ui/PortalProvider/PortalProviderThemesProvider.js +0 -37
- package/dist/es2019/ui/PortalProvider/index.js +0 -184
- package/dist/esm/nodeviews/ReactNodeView.js +0 -217
- package/dist/esm/nodeviews/SelectionBasedNodeView.js +0 -163
- package/dist/esm/plugins/base/pm-plugins/react-nodeview.js +0 -62
- package/dist/esm/ui/PortalProvider/PortalProviderThemesProvider.js +0 -36
- package/dist/esm/ui/PortalProvider/index.js +0 -242
- package/dist/types/nodeviews/ReactNodeView.d.ts +0 -52
- package/dist/types/nodeviews/SelectionBasedNodeView.d.ts +0 -53
- package/dist/types/plugins/base/pm-plugins/react-nodeview.d.ts +0 -13
- package/dist/types/ui/PortalProvider/PortalProviderThemesProvider.d.ts +0 -6
- package/dist/types/ui/PortalProvider/index.d.ts +0 -51
- package/dist/types-ts4.5/nodeviews/ReactNodeView.d.ts +0 -52
- package/dist/types-ts4.5/nodeviews/SelectionBasedNodeView.d.ts +0 -53
- package/dist/types-ts4.5/plugins/base/pm-plugins/react-nodeview.d.ts +0 -13
- package/dist/types-ts4.5/ui/PortalProvider/PortalProviderThemesProvider.d.ts +0 -6
- package/dist/types-ts4.5/ui/PortalProvider/index.d.ts +0 -51
|
@@ -11,7 +11,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
11
11
|
import React from 'react';
|
|
12
12
|
import ReactDOM from 'react-dom';
|
|
13
13
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
14
|
-
import { NodeSelection } from 'prosemirror-state';
|
|
14
|
+
import { NodeSelection, TextSelection, AllSelection } from 'prosemirror-state';
|
|
15
15
|
import { insertPoint } from 'prosemirror-transform';
|
|
16
16
|
import { Decoration, DecorationSet } from 'prosemirror-view';
|
|
17
17
|
import { ErrorReporter, browser } from '@atlaskit/editor-common/utils';
|
|
@@ -32,6 +32,7 @@ import { isInListItem } from '../../../utils';
|
|
|
32
32
|
import { CAPTION_PLACEHOLDER_ID } from '../ui/CaptionPlaceholder';
|
|
33
33
|
import { RawIntlProvider } from 'react-intl-next';
|
|
34
34
|
import { MediaTaskManager } from './mediaTaskManager';
|
|
35
|
+
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
35
36
|
export { stateKey } from './plugin-key';
|
|
36
37
|
export var MEDIA_CONTENT_WRAP_CLASS_NAME = 'media-content-wrap';
|
|
37
38
|
var createDropPlaceholder = function createDropPlaceholder(intl, allowDropLine) {
|
|
@@ -621,7 +622,6 @@ export var createPlugin = function createPlugin(_schema, options, reactContext,
|
|
|
621
622
|
// we shift it to the media single parent as other code is opinionated about
|
|
622
623
|
// the selection landing there. In particular the caption insertion and selection
|
|
623
624
|
// action.
|
|
624
|
-
|
|
625
625
|
return newState.tr.setSelection(NodeSelection.create(newState.doc, transaction.selection.$from.pos - 1));
|
|
626
626
|
}
|
|
627
627
|
}
|
|
@@ -645,12 +645,29 @@ export var createPlugin = function createPlugin(_schema, options, reactContext,
|
|
|
645
645
|
},
|
|
646
646
|
props: {
|
|
647
647
|
decorations: function decorations(state) {
|
|
648
|
+
// Use this to indicate that the media node is selected
|
|
649
|
+
var mediaNodes = [];
|
|
650
|
+
var schema = state.schema,
|
|
651
|
+
$anchor = state.selection.$anchor,
|
|
652
|
+
doc = state.doc;
|
|
653
|
+
|
|
654
|
+
// Find any media nodes in the current selection
|
|
655
|
+
if (state.selection instanceof TextSelection || state.selection instanceof AllSelection || state.selection instanceof NodeSelection || state.selection instanceof CellSelection) {
|
|
656
|
+
doc.nodesBetween(state.selection.from, state.selection.to, function (node, pos) {
|
|
657
|
+
if (node.type === schema.nodes.media) {
|
|
658
|
+
mediaNodes.push(Decoration.node(pos, pos + node.nodeSize, {}, {
|
|
659
|
+
type: 'media',
|
|
660
|
+
selected: true
|
|
661
|
+
}));
|
|
662
|
+
return false;
|
|
663
|
+
}
|
|
664
|
+
return true;
|
|
665
|
+
});
|
|
666
|
+
}
|
|
648
667
|
var pluginState = getMediaPluginState(state);
|
|
649
668
|
if (!pluginState.showDropzone) {
|
|
650
|
-
return;
|
|
669
|
+
return DecorationSet.create(state.doc, mediaNodes);
|
|
651
670
|
}
|
|
652
|
-
var schema = state.schema,
|
|
653
|
-
$anchor = state.selection.$anchor;
|
|
654
671
|
|
|
655
672
|
// When a media is already selected
|
|
656
673
|
if (state.selection instanceof NodeSelection) {
|
|
@@ -659,20 +676,20 @@ export var createPlugin = function createPlugin(_schema, options, reactContext,
|
|
|
659
676
|
var deco = Decoration.node(state.selection.from, state.selection.to, {
|
|
660
677
|
class: 'richMedia-selected'
|
|
661
678
|
});
|
|
662
|
-
return DecorationSet.create(state.doc, [deco]);
|
|
679
|
+
return DecorationSet.create(state.doc, [deco].concat(mediaNodes));
|
|
663
680
|
}
|
|
664
|
-
return;
|
|
681
|
+
return DecorationSet.create(state.doc, mediaNodes);
|
|
665
682
|
}
|
|
666
683
|
var pos = $anchor.pos;
|
|
667
684
|
if ($anchor.parent.type !== schema.nodes.paragraph && $anchor.parent.type !== schema.nodes.codeBlock) {
|
|
668
685
|
pos = insertPoint(state.doc, pos, schema.nodes.mediaGroup);
|
|
669
686
|
}
|
|
670
687
|
if (pos === null || pos === undefined) {
|
|
671
|
-
return;
|
|
688
|
+
return DecorationSet.create(state.doc, mediaNodes);
|
|
672
689
|
}
|
|
673
690
|
var dropPlaceholders = [Decoration.widget(pos, dropPlaceholder, {
|
|
674
691
|
key: 'drop-placeholder'
|
|
675
|
-
})];
|
|
692
|
+
})].concat(mediaNodes);
|
|
676
693
|
return DecorationSet.create(state.doc, dropPlaceholders);
|
|
677
694
|
},
|
|
678
695
|
nodeViews: options.nodeViews,
|
|
@@ -7,7 +7,7 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
|
7
7
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
8
8
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
9
9
|
import React from 'react';
|
|
10
|
-
import
|
|
10
|
+
import ReactNodeView from '@atlaskit/editor-common/react-node-view';
|
|
11
11
|
import DecisionItem from '../ui/Decision';
|
|
12
12
|
import { isTypeAheadOpen } from '../../type-ahead/utils';
|
|
13
13
|
var Decision = /*#__PURE__*/function (_ReactNodeView) {
|
|
@@ -13,7 +13,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
13
13
|
import React from 'react';
|
|
14
14
|
import { AnalyticsListener } from '@atlaskit/analytics-next';
|
|
15
15
|
import { SetAttrsStep } from '@atlaskit/adf-schema/steps';
|
|
16
|
-
import
|
|
16
|
+
import ReactNodeView from '@atlaskit/editor-common/react-node-view';
|
|
17
17
|
import WithPluginState from '../../../ui/WithPluginState';
|
|
18
18
|
import { stateKey as taskPluginKey } from '../pm-plugins/plugin-key';
|
|
19
19
|
import TaskItem from '../ui/Task';
|
|
@@ -3,7 +3,7 @@ import { PluginKey } from 'prosemirror-state';
|
|
|
3
3
|
import { confluenceUnsupportedBlock, confluenceUnsupportedInline, unsupportedBlock, unsupportedInline, unsupportedMark, unsupportedNodeAttribute } from '@atlaskit/adf-schema';
|
|
4
4
|
import { UnsupportedBlock } from '@atlaskit/editor-common/ui';
|
|
5
5
|
import { UnsupportedInlineNodeView } from './unsupported-inline-node-view';
|
|
6
|
-
import
|
|
6
|
+
import ReactNodeView from '@atlaskit/editor-common/react-node-view';
|
|
7
7
|
import { getInlineNodeViewProducer } from '@atlaskit/editor-common/react-node-view';
|
|
8
8
|
export var pluginKey = new PluginKey('unsupportedContentPlugin');
|
|
9
9
|
var createPlugin = function createPlugin(pmPluginFactoryParams) {
|
package/dist/esm/test-utils.js
CHANGED
|
@@ -90,7 +90,6 @@ export var createPMSchemaAndPlugins = function createPMSchemaAndPlugins() {
|
|
|
90
90
|
};
|
|
91
91
|
};
|
|
92
92
|
};
|
|
93
|
-
export { PortalProviderAPI } from './ui/PortalProvider';
|
|
94
93
|
export { EventDispatcher } from './event-dispatcher';
|
|
95
94
|
export { GapCursorSelection, Side as GapCursorSide } from './plugins/selection/gap-cursor/selection';
|
|
96
95
|
export function setTextSelection(view, anchor, head) {
|
package/dist/esm/version.json
CHANGED
|
@@ -13,7 +13,7 @@ import { Dispatch, EventDispatcher } from '../event-dispatcher';
|
|
|
13
13
|
import { AnalyticsEventPayload, DispatchAnalyticsEvent, FULL_WIDTH_MODE } from '@atlaskit/editor-common/analytics';
|
|
14
14
|
import { EditorAppearance, EditorConfig, EditorReactContext, EditorPlugin, EditorProps } from '../types';
|
|
15
15
|
import type { EditorNextProps } from '../types/editor-props';
|
|
16
|
-
import { PortalProviderAPI } from '
|
|
16
|
+
import { PortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
|
|
17
17
|
import { SEVERITY } from '@atlaskit/editor-common/utils';
|
|
18
18
|
import { TransactionTracker } from '../utils/performance/track-transactions';
|
|
19
19
|
import type { FireAnalyticsCallback } from '@atlaskit/editor-common/analytics';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -68,7 +68,7 @@ export { getDefaultPresetOptionsFromEditorProps } from './create-editor';
|
|
|
68
68
|
export type { Command, EditorPlugin, EditorProps, EditorInstance, CommandDispatch, } from './types';
|
|
69
69
|
export { default as EditorActions } from './actions';
|
|
70
70
|
export type { MacroProvider, MacroAttributes, ExtensionType, CardProvider, } from '@atlaskit/editor-common/provider-factory';
|
|
71
|
-
export { PortalProvider, PortalProviderAPI, PortalRenderer, } from '
|
|
71
|
+
export { PortalProvider, PortalProviderAPI, PortalRenderer, } from '@atlaskit/editor-common/portal-provider';
|
|
72
72
|
export { GapCursorSelection, Side as GapCursorSide, } from './plugins/selection/gap-cursor-selection';
|
|
73
73
|
export type { HistoryPluginState } from './plugins/history/types';
|
|
74
74
|
export type { MentionPluginState } from './plugins/mentions/types';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
export declare const EditorInternal: React.FC<import("react-intl-next").WithIntlProps<import("../editor-props-type").EditorProps & {
|
|
4
|
-
portalProviderAPI: import("
|
|
4
|
+
portalProviderAPI: import("@atlaskit/editor-common/portal-provider").PortalProviderAPI;
|
|
5
5
|
} & WrappedComponentProps<"intl">>> & {
|
|
6
6
|
WrappedComponent: React.ComponentType<import("../editor-props-type").EditorProps & {
|
|
7
|
-
portalProviderAPI: import("
|
|
7
|
+
portalProviderAPI: import("@atlaskit/editor-common/portal-provider").PortalProviderAPI;
|
|
8
8
|
} & WrappedComponentProps<"intl">>;
|
|
9
9
|
};
|
|
@@ -4,7 +4,7 @@ import EditorActions from '../../../actions';
|
|
|
4
4
|
import { Transformer } from '@atlaskit/editor-common/types';
|
|
5
5
|
import { EditorPlugin } from '../../../types';
|
|
6
6
|
import { FireAnalyticsCallback } from '../../../plugins/analytics';
|
|
7
|
-
import { PortalProviderAPI } from '
|
|
7
|
+
import { PortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
|
|
8
8
|
export type EditorProps = {
|
|
9
9
|
plugins?: Array<EditorPlugin>;
|
|
10
10
|
transformer?: (schema: Schema) => Transformer<any>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
2
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
3
|
import EditorActions from '../../../../../actions';
|
|
4
|
-
import { PortalProviderAPI } from '
|
|
4
|
+
import { PortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
|
|
5
5
|
import { EditorSharedConfig } from '../../context/shared-config';
|
|
6
6
|
import { EditorPropsExtended } from '../../editor-props-type';
|
|
7
7
|
import { FeatureFlags } from '../../../../../types/feature-flags';
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
2
2
|
import { AnnotationProviders, InlineCommentAnnotationProvider, AnnotationInfo, AnnotationState, InlineCommentState, InlineCommentCreateComponentProps, InlineCommentViewComponentProps, AnnotationTypeProvider } from './types';
|
|
3
3
|
import { UpdateEvent, AnnotationUpdateEmitter } from './update-provider';
|
|
4
|
+
import type { InlineCommentPluginState } from './pm-plugins/types';
|
|
4
5
|
declare const annotationPlugin: NextEditorPlugin<'annotation', {
|
|
5
6
|
pluginConfiguration: AnnotationProviders | undefined;
|
|
7
|
+
sharedState: InlineCommentPluginState | undefined;
|
|
6
8
|
}>;
|
|
7
9
|
export default annotationPlugin;
|
|
8
10
|
export { AnnotationUpdateEmitter };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { ForwardRef } from '../../../nodeviews';
|
|
3
|
+
import ReactNodeView from '@atlaskit/editor-common/react-node-view';
|
|
3
4
|
export declare class AnnotationNodeView extends ReactNodeView {
|
|
4
5
|
createDomRef(): HTMLSpanElement;
|
|
5
6
|
getContentDOM(): {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DecorationSet } from 'prosemirror-view';
|
|
2
2
|
import { EditorState, SelectionBookmark } from 'prosemirror-state';
|
|
3
|
-
import { PortalProviderAPI } from '
|
|
4
|
-
import { Dispatch, EventDispatcher } from '
|
|
3
|
+
import { PortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
|
|
4
|
+
import { Dispatch, EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
5
5
|
import { InlineCommentAnnotationProvider, AnnotationInfo } from '../types';
|
|
6
6
|
export declare enum ACTIONS {
|
|
7
7
|
UPDATE_INLINE_COMMENT_STATE = 0,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
2
|
-
import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
2
|
+
import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
3
3
|
declare const captionPlugin: NextEditorPlugin<'caption', {
|
|
4
4
|
dependencies: [typeof analyticsPlugin];
|
|
5
5
|
}>;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { EditorView } from 'prosemirror-view';
|
|
3
3
|
import { Node as PMNode } from 'prosemirror-model';
|
|
4
|
-
import { getPosHandler, ForwardRef
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { getPosHandler, ForwardRef } from '../../../nodeviews/';
|
|
5
|
+
import { SelectionBasedNodeView } from '@atlaskit/editor-common/selection-based-node-view';
|
|
6
|
+
import { PortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
|
|
7
|
+
import { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
8
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
9
|
+
import type captionPlugin from '../index';
|
|
7
10
|
export declare class CaptionNodeView extends SelectionBasedNodeView {
|
|
8
11
|
private selected;
|
|
9
12
|
createDomRef(): HTMLElement;
|
|
@@ -13,4 +16,4 @@ export declare class CaptionNodeView extends SelectionBasedNodeView {
|
|
|
13
16
|
render(_props: never, forwardRef: ForwardRef): JSX.Element;
|
|
14
17
|
viewShouldUpdate(nextNode: PMNode): boolean;
|
|
15
18
|
}
|
|
16
|
-
export default function captionNodeView(portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher): (node: PMNode, view: EditorView, getPos: getPosHandler) => CaptionNodeView;
|
|
19
|
+
export default function captionNodeView(portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, pluginInjectionApi: ExtractInjectionAPI<typeof captionPlugin> | undefined): (node: PMNode, view: EditorView, getPos: getPosHandler) => CaptionNodeView;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
-
import { PortalProviderAPI } from '
|
|
3
|
-
import { Dispatch, EventDispatcher } from '
|
|
2
|
+
import { PortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
|
|
3
|
+
import { Dispatch, EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
4
4
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
5
|
-
import {
|
|
6
|
-
|
|
5
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
6
|
+
import type captionPlugin from '../index';
|
|
7
|
+
declare const _default: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, dispatch: Dispatch, pluginInjectionApi: ExtractInjectionAPI<typeof captionPlugin> | undefined) => SafePlugin<any, any>;
|
|
7
8
|
export default _default;
|
|
@@ -3,7 +3,7 @@ import { Node as PMNode } from 'prosemirror-model';
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { SmartCardProps } from './genericCard';
|
|
5
5
|
import { RichMediaLayout } from '@atlaskit/adf-schema';
|
|
6
|
-
import
|
|
6
|
+
import ReactNodeView from '@atlaskit/editor-common/react-node-view';
|
|
7
7
|
export type EmbedCardState = {
|
|
8
8
|
hasPreview: boolean;
|
|
9
9
|
liveHeight?: number;
|
|
@@ -39,7 +39,7 @@ export declare class EmbedCardComponent extends React.PureComponent<SmartCardPro
|
|
|
39
39
|
render(): JSX.Element;
|
|
40
40
|
}
|
|
41
41
|
export type EmbedCardNodeViewProps = Pick<SmartCardProps, 'eventDispatcher' | 'allowResizing' | 'platform' | 'fullWidthMode' | 'dispatchAnalyticsEvent' | 'pluginInjectionApi'>;
|
|
42
|
-
export declare class EmbedCard extends
|
|
42
|
+
export declare class EmbedCard extends ReactNodeView<EmbedCardNodeViewProps> {
|
|
43
43
|
viewShouldUpdate(nextNode: PMNode): boolean;
|
|
44
44
|
createDomRef(): HTMLElement;
|
|
45
45
|
render(): JSX.Element;
|
|
@@ -5,8 +5,9 @@ import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
|
|
|
5
5
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
6
6
|
import { PluginInjectionAPIWithDependency } from '@atlaskit/editor-common/types';
|
|
7
7
|
import { EditorAppearance } from '../../../types/editor-appearance';
|
|
8
|
-
import { ForwardRef, getPosHandler
|
|
9
|
-
import
|
|
8
|
+
import { ForwardRef, getPosHandler } from '../../../nodeviews';
|
|
9
|
+
import ReactNodeView from '@atlaskit/editor-common/react-node-view';
|
|
10
|
+
import { PortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
|
|
10
11
|
import { EventDispatcher } from '../../../event-dispatcher';
|
|
11
12
|
import type { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
12
13
|
interface ExtensionNodeViewOptions {
|
|
@@ -6,8 +6,8 @@ import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
|
6
6
|
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
7
7
|
import { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
8
8
|
import { EditorAppearance } from '../../../types/editor-appearance';
|
|
9
|
-
import { Dispatch, EventDispatcher } from '
|
|
10
|
-
import { PortalProviderAPI } from '
|
|
9
|
+
import { Dispatch, EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
10
|
+
import { PortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
|
|
11
11
|
import { getPluginState, createCommand } from '../plugin-factory';
|
|
12
12
|
import { pluginKey } from '../plugin-key';
|
|
13
13
|
import type extensionPlugin from '../index';
|
|
@@ -10,6 +10,7 @@ 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
12
|
import type { FloatingToolbarPlugin } from '@atlaskit/editor-plugin-floating-toolbar';
|
|
13
|
+
import type editorDisabled from '../editor-disabled';
|
|
13
14
|
export type { MediaState, MediaProvider, CustomMediaPicker };
|
|
14
15
|
export { insertMediaSingleNode } from './utils/media-single';
|
|
15
16
|
declare const mediaPlugin: NextEditorPlugin<'media', {
|
|
@@ -20,7 +21,8 @@ declare const mediaPlugin: NextEditorPlugin<'media', {
|
|
|
20
21
|
typeof gridPlugin,
|
|
21
22
|
typeof widthPlugin,
|
|
22
23
|
typeof decorationsPlugin,
|
|
23
|
-
FloatingToolbarPlugin
|
|
24
|
+
FloatingToolbarPlugin,
|
|
25
|
+
typeof editorDisabled
|
|
24
26
|
];
|
|
25
27
|
sharedState: MediaPluginState | null;
|
|
26
28
|
}>;
|
|
@@ -4,11 +4,13 @@ import { MediaClientConfig } from '@atlaskit/media-core';
|
|
|
4
4
|
import { Node as PMNode } from 'prosemirror-model';
|
|
5
5
|
import { EditorView, NodeView } from 'prosemirror-view';
|
|
6
6
|
import React from 'react';
|
|
7
|
-
import { EventDispatcher } from '
|
|
7
|
+
import { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
8
8
|
import { getPosHandler } from '../../../nodeviews/';
|
|
9
|
-
import { PortalProviderAPI } from '
|
|
9
|
+
import { PortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
|
|
10
10
|
import { MediaOptions } from '../types';
|
|
11
11
|
import { WrappedComponentProps } from 'react-intl-next';
|
|
12
|
+
import type mediaPlugin from '../index';
|
|
13
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
12
14
|
export type MediaGroupProps = {
|
|
13
15
|
forwardRef?: (ref: HTMLElement) => void;
|
|
14
16
|
node: PMNode;
|
|
@@ -30,4 +32,4 @@ declare const IntlMediaGroup: React.FC<import("react-intl-next").WithIntlProps<M
|
|
|
30
32
|
WrappedComponent: React.ComponentType<MediaGroupProps>;
|
|
31
33
|
};
|
|
32
34
|
export default IntlMediaGroup;
|
|
33
|
-
export declare const ReactMediaGroupNode: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, mediaOptions
|
|
35
|
+
export declare const ReactMediaGroupNode: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, mediaOptions: MediaOptions | undefined, pluginInjectionApi: ExtractInjectionAPI<typeof mediaPlugin> | undefined) => (node: PMNode, view: EditorView, getPos: getPosHandler) => NodeView;
|
|
@@ -2,14 +2,17 @@ import { Node as PMNode } from 'prosemirror-model';
|
|
|
2
2
|
import { EditorView, NodeView } from 'prosemirror-view';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { EventDispatcher } from '../../../event-dispatcher';
|
|
5
|
-
import { getPosHandler, ProsemirrorGetPosHandler
|
|
5
|
+
import { getPosHandler, ProsemirrorGetPosHandler } from '../../../nodeviews/';
|
|
6
|
+
import { SelectionBasedNodeView } from '@atlaskit/editor-common/selection-based-node-view';
|
|
6
7
|
import { FileIdentifier } from '@atlaskit/media-client';
|
|
7
8
|
import { ProviderFactory, ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
8
9
|
import type { MediaProvider } from '@atlaskit/editor-common/provider-factory';
|
|
9
|
-
import { PortalProviderAPI } from '
|
|
10
|
+
import { PortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
|
|
10
11
|
import { MediaPluginState } from '../pm-plugins/types';
|
|
11
12
|
import { MediaNodeUpdater } from './mediaNodeUpdater';
|
|
12
13
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
14
|
+
import { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
15
|
+
import type mediaPlugin from '../index';
|
|
13
16
|
export interface MediaInlineProps {
|
|
14
17
|
mediaProvider: Promise<MediaProvider>;
|
|
15
18
|
identifier: FileIdentifier;
|
|
@@ -44,4 +47,4 @@ export declare class MediaInlineNodeView extends SelectionBasedNodeView<MediaInl
|
|
|
44
47
|
viewShouldUpdate(nextNode: PMNode): boolean;
|
|
45
48
|
render(props: MediaInlineNodeViewProps): JSX.Element;
|
|
46
49
|
}
|
|
47
|
-
export declare const ReactMediaInlineNode: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, dispatchAnalyticsEvent?: DispatchAnalyticsEvent) => (node: PMNode, view: EditorView, getPos: getPosHandler) => NodeView;
|
|
50
|
+
export declare const ReactMediaInlineNode: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, pluginInjectionApi: ExtractInjectionAPI<typeof mediaPlugin> | undefined, dispatchAnalyticsEvent?: DispatchAnalyticsEvent) => (node: PMNode, view: EditorView, getPos: getPosHandler) => NodeView;
|
|
@@ -3,18 +3,20 @@ import { MediaADFAttrs } from '@atlaskit/adf-schema';
|
|
|
3
3
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
4
4
|
import type { Providers, MediaProvider, ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
5
5
|
import { Node as PMNode } from 'prosemirror-model';
|
|
6
|
-
import { EditorView } from 'prosemirror-view';
|
|
6
|
+
import { EditorView, Decoration } from 'prosemirror-view';
|
|
7
7
|
import { EventDispatcher } from '../../../../event-dispatcher';
|
|
8
|
-
import { getPosHandler
|
|
9
|
-
import {
|
|
8
|
+
import { getPosHandler } from '../../../../nodeviews';
|
|
9
|
+
import { SelectionBasedNodeView } from '@atlaskit/editor-common/selection-based-node-view';
|
|
10
|
+
import { PortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
|
|
10
11
|
import type { WidthPluginState } from '@atlaskit/editor-plugin-width';
|
|
11
12
|
import { MediaOptions } from '../../types';
|
|
12
13
|
import { MediaNodeViewProps } from '../types';
|
|
13
14
|
import { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
14
15
|
import type mediaPlugin from '../../index';
|
|
15
16
|
declare class MediaNodeView extends SelectionBasedNodeView<MediaNodeViewProps> {
|
|
17
|
+
private isSelected;
|
|
16
18
|
createDomRef(): HTMLElement;
|
|
17
|
-
viewShouldUpdate(nextNode: PMNode): boolean;
|
|
19
|
+
viewShouldUpdate(nextNode: PMNode, decorations: Decoration[]): boolean;
|
|
18
20
|
stopEvent(event: Event): boolean;
|
|
19
21
|
getAttrs(): MediaADFAttrs;
|
|
20
22
|
isMediaBlobUrl(): boolean;
|
|
@@ -11,12 +11,12 @@ import { CardEvent } from '@atlaskit/media-card';
|
|
|
11
11
|
import { MediaClientConfig } from '@atlaskit/media-core';
|
|
12
12
|
import { getPosHandler, ForwardRef } from '../../../nodeviews/';
|
|
13
13
|
import { EventDispatcher } from '../../../event-dispatcher';
|
|
14
|
-
import { PortalProviderAPI } from '
|
|
14
|
+
import { PortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
|
|
15
15
|
import { MediaOptions } from '../types';
|
|
16
16
|
import { MediaSingleNodeProps, MediaSingleNodeViewProps } from './types';
|
|
17
17
|
import { MediaNodeUpdater } from './mediaNodeUpdater';
|
|
18
18
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
19
|
-
import ReactNodeView from '
|
|
19
|
+
import ReactNodeView from '@atlaskit/editor-common/react-node-view';
|
|
20
20
|
import type mediaPlugin from '../index';
|
|
21
21
|
export interface MediaSingleNodeState {
|
|
22
22
|
width?: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NodeView } from 'prosemirror-view';
|
|
2
2
|
import { EventDispatcher } from '../../../event-dispatcher';
|
|
3
3
|
import { getPosHandler } from '../../../nodeviews';
|
|
4
|
-
import { PortalProviderAPI } from '
|
|
4
|
+
import { PortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
|
|
5
5
|
export declare const decisionItemNodeView: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher) => (node: any, view: any, getPos: getPosHandler) => NodeView;
|
|
@@ -2,7 +2,7 @@ import { NodeView } from 'prosemirror-view';
|
|
|
2
2
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
3
|
import { EventDispatcher } from '../../../event-dispatcher';
|
|
4
4
|
import { getPosHandler } from '../../../nodeviews';
|
|
5
|
-
import { PortalProviderAPI } from '
|
|
5
|
+
import { PortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
|
|
6
6
|
export interface Props {
|
|
7
7
|
providerFactory: ProviderFactory;
|
|
8
8
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
2
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
3
|
import { Dispatch, EventDispatcher } from '../../../event-dispatcher';
|
|
4
|
-
import { PortalProviderAPI } from '
|
|
4
|
+
import { PortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
|
|
5
5
|
export declare function createPlugin(portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, dispatch: Dispatch, useLongPressSelection?: boolean): SafePlugin<any, any>;
|
|
@@ -27,7 +27,6 @@ type PluginData = {
|
|
|
27
27
|
export declare const createPMSchemaAndPlugins: (inputPreset?: EditorPresetBuilder<string[], AllEditorPresetPluginTypes[]>) => (pluginFactoryParams: Omit<LightPMPluginFactoryParams, 'schema'> & {
|
|
28
28
|
pluginInjectionAPI: EditorPluginInjectionAPI;
|
|
29
29
|
}) => PluginData;
|
|
30
|
-
export { PortalProviderAPI } from './ui/PortalProvider';
|
|
31
30
|
export { EventDispatcher } from './event-dispatcher';
|
|
32
31
|
export type { Dispatch } from './event-dispatcher';
|
|
33
32
|
export { GapCursorSelection, Side as GapCursorSide, } from './plugins/selection/gap-cursor/selection';
|
|
@@ -13,7 +13,7 @@ import { Dispatch, EventDispatcher } from '../event-dispatcher';
|
|
|
13
13
|
import { AnalyticsEventPayload, DispatchAnalyticsEvent, FULL_WIDTH_MODE } from '@atlaskit/editor-common/analytics';
|
|
14
14
|
import { EditorAppearance, EditorConfig, EditorReactContext, EditorPlugin, EditorProps } from '../types';
|
|
15
15
|
import type { EditorNextProps } from '../types/editor-props';
|
|
16
|
-
import { PortalProviderAPI } from '
|
|
16
|
+
import { PortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
|
|
17
17
|
import { SEVERITY } from '@atlaskit/editor-common/utils';
|
|
18
18
|
import { TransactionTracker } from '../utils/performance/track-transactions';
|
|
19
19
|
import type { FireAnalyticsCallback } from '@atlaskit/editor-common/analytics';
|
|
@@ -68,7 +68,7 @@ export { getDefaultPresetOptionsFromEditorProps } from './create-editor';
|
|
|
68
68
|
export type { Command, EditorPlugin, EditorProps, EditorInstance, CommandDispatch, } from './types';
|
|
69
69
|
export { default as EditorActions } from './actions';
|
|
70
70
|
export type { MacroProvider, MacroAttributes, ExtensionType, CardProvider, } from '@atlaskit/editor-common/provider-factory';
|
|
71
|
-
export { PortalProvider, PortalProviderAPI, PortalRenderer, } from '
|
|
71
|
+
export { PortalProvider, PortalProviderAPI, PortalRenderer, } from '@atlaskit/editor-common/portal-provider';
|
|
72
72
|
export { GapCursorSelection, Side as GapCursorSide, } from './plugins/selection/gap-cursor-selection';
|
|
73
73
|
export type { HistoryPluginState } from './plugins/history/types';
|
|
74
74
|
export type { MentionPluginState } from './plugins/mentions/types';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
export declare const EditorInternal: React.FC<import("react-intl-next").WithIntlProps<import("../editor-props-type").EditorProps & {
|
|
4
|
-
portalProviderAPI: import("
|
|
4
|
+
portalProviderAPI: import("@atlaskit/editor-common/portal-provider").PortalProviderAPI;
|
|
5
5
|
} & WrappedComponentProps<"intl">>> & {
|
|
6
6
|
WrappedComponent: React.ComponentType<import("../editor-props-type").EditorProps & {
|
|
7
|
-
portalProviderAPI: import("
|
|
7
|
+
portalProviderAPI: import("@atlaskit/editor-common/portal-provider").PortalProviderAPI;
|
|
8
8
|
} & WrappedComponentProps<"intl">>;
|
|
9
9
|
};
|
|
@@ -4,7 +4,7 @@ import EditorActions from '../../../actions';
|
|
|
4
4
|
import { Transformer } from '@atlaskit/editor-common/types';
|
|
5
5
|
import { EditorPlugin } from '../../../types';
|
|
6
6
|
import { FireAnalyticsCallback } from '../../../plugins/analytics';
|
|
7
|
-
import { PortalProviderAPI } from '
|
|
7
|
+
import { PortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
|
|
8
8
|
export type EditorProps = {
|
|
9
9
|
plugins?: Array<EditorPlugin>;
|
|
10
10
|
transformer?: (schema: Schema) => Transformer<any>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
2
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
3
|
import EditorActions from '../../../../../actions';
|
|
4
|
-
import { PortalProviderAPI } from '
|
|
4
|
+
import { PortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
|
|
5
5
|
import { EditorSharedConfig } from '../../context/shared-config';
|
|
6
6
|
import { EditorPropsExtended } from '../../editor-props-type';
|
|
7
7
|
import { FeatureFlags } from '../../../../../types/feature-flags';
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
2
2
|
import { AnnotationProviders, InlineCommentAnnotationProvider, AnnotationInfo, AnnotationState, InlineCommentState, InlineCommentCreateComponentProps, InlineCommentViewComponentProps, AnnotationTypeProvider } from './types';
|
|
3
3
|
import { UpdateEvent, AnnotationUpdateEmitter } from './update-provider';
|
|
4
|
+
import type { InlineCommentPluginState } from './pm-plugins/types';
|
|
4
5
|
declare const annotationPlugin: NextEditorPlugin<'annotation', {
|
|
5
6
|
pluginConfiguration: AnnotationProviders | undefined;
|
|
7
|
+
sharedState: InlineCommentPluginState | undefined;
|
|
6
8
|
}>;
|
|
7
9
|
export default annotationPlugin;
|
|
8
10
|
export { AnnotationUpdateEmitter };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { ForwardRef } from '../../../nodeviews';
|
|
3
|
+
import ReactNodeView from '@atlaskit/editor-common/react-node-view';
|
|
3
4
|
export declare class AnnotationNodeView extends ReactNodeView {
|
|
4
5
|
createDomRef(): HTMLSpanElement;
|
|
5
6
|
getContentDOM(): {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DecorationSet } from 'prosemirror-view';
|
|
2
2
|
import { EditorState, SelectionBookmark } from 'prosemirror-state';
|
|
3
|
-
import { PortalProviderAPI } from '
|
|
4
|
-
import { Dispatch, EventDispatcher } from '
|
|
3
|
+
import { PortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
|
|
4
|
+
import { Dispatch, EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
5
5
|
import { InlineCommentAnnotationProvider, AnnotationInfo } from '../types';
|
|
6
6
|
export declare enum ACTIONS {
|
|
7
7
|
UPDATE_INLINE_COMMENT_STATE = 0,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
2
|
-
import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
2
|
+
import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
3
3
|
declare const captionPlugin: NextEditorPlugin<'caption', {
|
|
4
4
|
dependencies: [
|
|
5
5
|
typeof analyticsPlugin
|