@atlaskit/editor-core 194.2.0 → 194.3.3
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 +22 -0
- package/dist/cjs/create-editor/ReactEditorView.js +1 -1
- package/dist/cjs/index.js +0 -19
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/create-editor/ReactEditorView.js +2 -2
- package/dist/es2019/index.js +0 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/create-editor/ReactEditorView.js +2 -2
- package/dist/esm/index.js +0 -2
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/ReactEditorView.d.ts +1 -2
- package/dist/types/create-editor/create-preset.d.ts +46 -13
- package/dist/types/index.d.ts +0 -1
- package/dist/types/presets/default.d.ts +10 -10
- package/dist/types/presets/universal.d.ts +46 -13
- package/dist/types/presets/useUniversalPreset.d.ts +46 -13
- package/dist/types-ts4.5/create-editor/ReactEditorView.d.ts +1 -2
- package/dist/types-ts4.5/create-editor/create-preset.d.ts +51 -13
- package/dist/types-ts4.5/index.d.ts +0 -1
- package/dist/types-ts4.5/presets/default.d.ts +10 -10
- package/dist/types-ts4.5/presets/universal.d.ts +51 -13
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +51 -13
- package/package.json +12 -16
- package/report.api.md +0 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 194.3.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 194.3.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#119966](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/119966)
|
|
14
|
+
[`596ad24e38929`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/596ad24e38929) -
|
|
15
|
+
Clean up typescript references to LegacyPortalProviderAPI
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [#119412](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/119412)
|
|
20
|
+
[`a714be7c47d68`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a714be7c47d68) -
|
|
21
|
+
[ux] [ED-23047] Remove FF platform.editor.text-alignment-keyboard-shortcuts and make feature
|
|
22
|
+
flagged functionality default
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
|
|
3
25
|
## 194.2.0
|
|
4
26
|
|
|
5
27
|
### Minor Changes
|
|
@@ -219,7 +219,7 @@ var ReactEditorView = exports.ReactEditorView = /*#__PURE__*/function (_React$Co
|
|
|
219
219
|
var api = _this.pluginInjectionAPI.api();
|
|
220
220
|
var isViewMode = (api === null || api === void 0 || (_api$editorViewMode = api.editorViewMode) === null || _api$editorViewMode === void 0 ? void 0 : _api$editorViewMode.sharedState.currentState().mode) === 'view';
|
|
221
221
|
var selection;
|
|
222
|
-
if ((0, _platformFeatureFlags.
|
|
222
|
+
if ((0, _platformFeatureFlags.fg)('platform.editor.live-view.no-editor-selection-in-view-mode')) {
|
|
223
223
|
if (doc) {
|
|
224
224
|
if (isViewMode) {
|
|
225
225
|
var emptySelection = new _state2.TextSelection(doc.resolve(0));
|
package/dist/cjs/index.js
CHANGED
|
@@ -76,30 +76,12 @@ Object.defineProperty(exports, "INPUT_METHOD", {
|
|
|
76
76
|
return _analytics.INPUT_METHOD;
|
|
77
77
|
}
|
|
78
78
|
});
|
|
79
|
-
Object.defineProperty(exports, "LegacyPortalProviderAPI", {
|
|
80
|
-
enumerable: true,
|
|
81
|
-
get: function get() {
|
|
82
|
-
return _portalProvider.LegacyPortalProviderAPI;
|
|
83
|
-
}
|
|
84
|
-
});
|
|
85
79
|
Object.defineProperty(exports, "MentionResource", {
|
|
86
80
|
enumerable: true,
|
|
87
81
|
get: function get() {
|
|
88
82
|
return _resource2.MentionResource;
|
|
89
83
|
}
|
|
90
84
|
});
|
|
91
|
-
Object.defineProperty(exports, "PortalProvider", {
|
|
92
|
-
enumerable: true,
|
|
93
|
-
get: function get() {
|
|
94
|
-
return _portalProvider.PortalProvider;
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
Object.defineProperty(exports, "PortalRenderer", {
|
|
98
|
-
enumerable: true,
|
|
99
|
-
get: function get() {
|
|
100
|
-
return _portalProvider.PortalRenderer;
|
|
101
|
-
}
|
|
102
|
-
});
|
|
103
85
|
Object.defineProperty(exports, "TeamMentionResource", {
|
|
104
86
|
enumerable: true,
|
|
105
87
|
get: function get() {
|
|
@@ -183,5 +165,4 @@ var _analytics = require("@atlaskit/editor-common/analytics");
|
|
|
183
165
|
var _utils = require("./utils");
|
|
184
166
|
var _utils2 = require("@atlaskit/editor-common/utils");
|
|
185
167
|
var _actions = _interopRequireDefault(require("./actions"));
|
|
186
|
-
var _portalProvider = require("@atlaskit/editor-common/portal-provider");
|
|
187
168
|
var _ContentStyles = require("./ui/ContentStyles");
|
|
@@ -11,7 +11,7 @@ import { EDIT_AREA_ID } from '@atlaskit/editor-common/ui';
|
|
|
11
11
|
import { analyticsEventKey, browser, countNodes, findChangedNodesFromTransaction, getAnalyticsEventSeverity, getResponseEndTime, measureRender, processRawValue, shouldForceTracking, startMeasure, stopMeasure, validateNodes, validNode } from '@atlaskit/editor-common/utils';
|
|
12
12
|
import { EditorState, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
13
13
|
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
14
|
-
import {
|
|
14
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
15
|
import { createDispatch, EventDispatcher } from '../event-dispatcher';
|
|
16
16
|
import { getNodesCount } from '../utils/document';
|
|
17
17
|
import { isFullPage } from '../utils/is-full-page';
|
|
@@ -213,7 +213,7 @@ export class ReactEditorView extends React.Component {
|
|
|
213
213
|
const api = this.pluginInjectionAPI.api();
|
|
214
214
|
const isViewMode = (api === null || api === void 0 ? void 0 : (_api$editorViewMode = api.editorViewMode) === null || _api$editorViewMode === void 0 ? void 0 : _api$editorViewMode.sharedState.currentState().mode) === 'view';
|
|
215
215
|
let selection;
|
|
216
|
-
if (
|
|
216
|
+
if (fg('platform.editor.live-view.no-editor-selection-in-view-mode')) {
|
|
217
217
|
if (doc) {
|
|
218
218
|
if (isViewMode) {
|
|
219
219
|
const emptySelection = new TextSelection(doc.resolve(0));
|
package/dist/es2019/index.js
CHANGED
|
@@ -35,8 +35,6 @@ export { setTextSelection } from '@atlaskit/editor-common/utils';
|
|
|
35
35
|
export { default as EditorActions } from './actions';
|
|
36
36
|
// Re-export from provider factory to not cause a breaking change
|
|
37
37
|
|
|
38
|
-
export { PortalProvider, LegacyPortalProviderAPI, PortalRenderer } from '@atlaskit/editor-common/portal-provider';
|
|
39
|
-
|
|
40
38
|
/**
|
|
41
39
|
* @deprecated
|
|
42
40
|
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "194.
|
|
2
|
+
export const version = "194.3.3";
|
|
@@ -22,7 +22,7 @@ import { EDIT_AREA_ID } from '@atlaskit/editor-common/ui';
|
|
|
22
22
|
import { analyticsEventKey, browser, countNodes as _countNodes, findChangedNodesFromTransaction, getAnalyticsEventSeverity, getResponseEndTime, measureRender, processRawValue, shouldForceTracking, startMeasure, stopMeasure, validateNodes, validNode } from '@atlaskit/editor-common/utils';
|
|
23
23
|
import { EditorState, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
24
24
|
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
25
|
-
import {
|
|
25
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
26
26
|
import { createDispatch, EventDispatcher } from '../event-dispatcher';
|
|
27
27
|
import { getNodesCount } from '../utils/document';
|
|
28
28
|
import { isFullPage } from '../utils/is-full-page';
|
|
@@ -212,7 +212,7 @@ export var ReactEditorView = /*#__PURE__*/function (_React$Component) {
|
|
|
212
212
|
var api = _this.pluginInjectionAPI.api();
|
|
213
213
|
var isViewMode = (api === null || api === void 0 || (_api$editorViewMode = api.editorViewMode) === null || _api$editorViewMode === void 0 ? void 0 : _api$editorViewMode.sharedState.currentState().mode) === 'view';
|
|
214
214
|
var selection;
|
|
215
|
-
if (
|
|
215
|
+
if (fg('platform.editor.live-view.no-editor-selection-in-view-mode')) {
|
|
216
216
|
if (doc) {
|
|
217
217
|
if (isViewMode) {
|
|
218
218
|
var emptySelection = new TextSelection(doc.resolve(0));
|
package/dist/esm/index.js
CHANGED
|
@@ -35,8 +35,6 @@ export { setTextSelection } from '@atlaskit/editor-common/utils';
|
|
|
35
35
|
export { default as EditorActions } from './actions';
|
|
36
36
|
// Re-export from provider factory to not cause a breaking change
|
|
37
37
|
|
|
38
|
-
export { PortalProvider, LegacyPortalProviderAPI, PortalRenderer } from '@atlaskit/editor-common/portal-provider';
|
|
39
|
-
|
|
40
38
|
/**
|
|
41
39
|
* @deprecated
|
|
42
40
|
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "194.
|
|
2
|
+
export var version = "194.3.3";
|
|
@@ -4,7 +4,6 @@ import type { WrappedComponentProps } from 'react-intl-next';
|
|
|
4
4
|
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
5
5
|
import { FULL_WIDTH_MODE } from '@atlaskit/editor-common/analytics';
|
|
6
6
|
import type { AnalyticsEventPayload, DispatchAnalyticsEvent, FireAnalyticsCallback } from '@atlaskit/editor-common/analytics';
|
|
7
|
-
import type { LegacyPortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
|
|
8
7
|
import type { AllEditorPresetPluginTypes, EditorPresetBuilder } from '@atlaskit/editor-common/preset';
|
|
9
8
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
10
9
|
import type { PortalProviderAPI } from '@atlaskit/editor-common/src/portal';
|
|
@@ -27,7 +26,7 @@ export interface EditorViewProps {
|
|
|
27
26
|
};
|
|
28
27
|
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
29
28
|
providerFactory: ProviderFactory;
|
|
30
|
-
portalProviderAPI:
|
|
29
|
+
portalProviderAPI: PortalProviderAPI;
|
|
31
30
|
disabled?: boolean;
|
|
32
31
|
experienceStore?: ExperienceStore;
|
|
33
32
|
setEditorApi?: SetEditorAPI;
|
|
@@ -216,7 +216,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
216
216
|
sharedState: import("@atlaskit/editor-plugin-block-controls").BlockControlsSharedState;
|
|
217
217
|
commands: {
|
|
218
218
|
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
219
|
-
showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
219
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
220
220
|
setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
221
221
|
};
|
|
222
222
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
@@ -420,7 +420,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
420
420
|
sharedState: import("@atlaskit/editor-plugin-block-controls").BlockControlsSharedState;
|
|
421
421
|
commands: {
|
|
422
422
|
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
423
|
-
showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
423
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
424
424
|
setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
425
425
|
};
|
|
426
426
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
@@ -695,7 +695,15 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
695
695
|
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
696
696
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
697
697
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
698
|
-
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions
|
|
698
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
699
|
+
sharedState: import("@atlaskit/editor-plugin-primary-toolbar").PrimaryToolbarPluginState | undefined;
|
|
700
|
+
commands: {
|
|
701
|
+
registerComponent: ({ name, component, }: {
|
|
702
|
+
name: import("@atlaskit/editor-plugin-primary-toolbar").ToolbarElementNames;
|
|
703
|
+
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
704
|
+
}) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
705
|
+
};
|
|
706
|
+
}, undefined>>];
|
|
699
707
|
actions: {
|
|
700
708
|
getToolbarButton: (params: import("@atlaskit/editor-plugin-find-replace").FindReplaceToolbarButtonActionProps) => import("react").ReactNode;
|
|
701
709
|
};
|
|
@@ -769,7 +777,15 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
769
777
|
}) => boolean;
|
|
770
778
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
771
779
|
};
|
|
772
|
-
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions
|
|
780
|
+
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
781
|
+
sharedState: import("@atlaskit/editor-plugin-primary-toolbar").PrimaryToolbarPluginState | undefined;
|
|
782
|
+
commands: {
|
|
783
|
+
registerComponent: ({ name, component, }: {
|
|
784
|
+
name: import("@atlaskit/editor-plugin-primary-toolbar").ToolbarElementNames;
|
|
785
|
+
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
786
|
+
}) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
787
|
+
};
|
|
788
|
+
}, undefined>>];
|
|
773
789
|
actions: {
|
|
774
790
|
getToolbarItem: ({ editorView, inviteToEditHandler, isInviteToEditButtonSelected, inviteToEditComponent, }: {
|
|
775
791
|
editorView: import("prosemirror-view").EditorView;
|
|
@@ -783,6 +799,15 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
783
799
|
pluginConfiguration: {
|
|
784
800
|
beforePrimaryToolbarComponents?: import("@atlaskit/editor-plugin-before-primary-toolbar").ReactComponents | undefined;
|
|
785
801
|
};
|
|
802
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
803
|
+
sharedState: import("@atlaskit/editor-plugin-primary-toolbar").PrimaryToolbarPluginState | undefined;
|
|
804
|
+
commands: {
|
|
805
|
+
registerComponent: ({ name, component, }: {
|
|
806
|
+
name: import("@atlaskit/editor-plugin-primary-toolbar").ToolbarElementNames;
|
|
807
|
+
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
808
|
+
}) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
809
|
+
};
|
|
810
|
+
}, undefined>>];
|
|
786
811
|
}, {
|
|
787
812
|
beforePrimaryToolbarComponents?: import("@atlaskit/editor-plugin-before-primary-toolbar").ReactComponents | undefined;
|
|
788
813
|
}> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"insertBlock", {
|
|
@@ -931,7 +956,15 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
931
956
|
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
932
957
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
933
958
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
934
|
-
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions
|
|
959
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
960
|
+
sharedState: import("@atlaskit/editor-plugin-primary-toolbar").PrimaryToolbarPluginState | undefined;
|
|
961
|
+
commands: {
|
|
962
|
+
registerComponent: ({ name, component, }: {
|
|
963
|
+
name: import("@atlaskit/editor-plugin-primary-toolbar").ToolbarElementNames;
|
|
964
|
+
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
965
|
+
}) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
966
|
+
};
|
|
967
|
+
}, undefined>>];
|
|
935
968
|
}, {
|
|
936
969
|
showIndentationButtons: boolean;
|
|
937
970
|
allowHeadingAndParagraphIndentation: boolean;
|
|
@@ -1144,7 +1177,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
1144
1177
|
sharedState: import("@atlaskit/editor-plugin-block-controls").BlockControlsSharedState;
|
|
1145
1178
|
commands: {
|
|
1146
1179
|
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1147
|
-
showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1180
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1148
1181
|
setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1149
1182
|
};
|
|
1150
1183
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
@@ -1654,7 +1687,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
1654
1687
|
sharedState: import("@atlaskit/editor-plugin-block-controls").BlockControlsSharedState;
|
|
1655
1688
|
commands: {
|
|
1656
1689
|
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1657
|
-
showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1690
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1658
1691
|
setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1659
1692
|
};
|
|
1660
1693
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
@@ -2339,7 +2372,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
2339
2372
|
sharedState: import("@atlaskit/editor-plugin-block-controls").BlockControlsSharedState;
|
|
2340
2373
|
commands: {
|
|
2341
2374
|
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2342
|
-
showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2375
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2343
2376
|
setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2344
2377
|
};
|
|
2345
2378
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
@@ -2923,7 +2956,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
2923
2956
|
sharedState: import("@atlaskit/editor-plugin-block-controls").BlockControlsSharedState;
|
|
2924
2957
|
commands: {
|
|
2925
2958
|
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2926
|
-
showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2959
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2927
2960
|
setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2928
2961
|
};
|
|
2929
2962
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
@@ -3129,7 +3162,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
3129
3162
|
sharedState: import("@atlaskit/editor-plugin-block-controls").BlockControlsSharedState;
|
|
3130
3163
|
commands: {
|
|
3131
3164
|
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3132
|
-
showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3165
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3133
3166
|
setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3134
3167
|
};
|
|
3135
3168
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
@@ -3566,7 +3599,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
3566
3599
|
sharedState: import("@atlaskit/editor-plugin-block-controls").BlockControlsSharedState;
|
|
3567
3600
|
commands: {
|
|
3568
3601
|
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3569
|
-
showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3602
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3570
3603
|
setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3571
3604
|
};
|
|
3572
3605
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
@@ -3980,7 +4013,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
3980
4013
|
sharedState: import("@atlaskit/editor-plugin-block-controls").BlockControlsSharedState;
|
|
3981
4014
|
commands: {
|
|
3982
4015
|
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3983
|
-
showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
4016
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3984
4017
|
setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3985
4018
|
};
|
|
3986
4019
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
@@ -4184,7 +4217,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
4184
4217
|
sharedState: import("@atlaskit/editor-plugin-block-controls").BlockControlsSharedState;
|
|
4185
4218
|
commands: {
|
|
4186
4219
|
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
4187
|
-
showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
4220
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
4188
4221
|
setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
4189
4222
|
};
|
|
4190
4223
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -34,7 +34,6 @@ export { setTextSelection } from '@atlaskit/editor-common/utils';
|
|
|
34
34
|
export type { Command, EditorPlugin, EditorProps, EditorInstance, CommandDispatch } from './types';
|
|
35
35
|
export { default as EditorActions } from './actions';
|
|
36
36
|
export type { MacroProvider, MacroAttributes, ExtensionType, CardProvider, } from '@atlaskit/editor-common/provider-factory';
|
|
37
|
-
export { PortalProvider, LegacyPortalProviderAPI, PortalRenderer, } from '@atlaskit/editor-common/portal-provider';
|
|
38
37
|
/**
|
|
39
38
|
* @deprecated
|
|
40
39
|
* DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
|
|
@@ -192,7 +192,7 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
192
192
|
sharedState: import("@atlaskit/editor-plugin-block-controls").BlockControlsSharedState;
|
|
193
193
|
commands: {
|
|
194
194
|
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
195
|
-
showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
195
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
196
196
|
setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
197
197
|
};
|
|
198
198
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
@@ -398,7 +398,7 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
398
398
|
sharedState: import("@atlaskit/editor-plugin-block-controls").BlockControlsSharedState;
|
|
399
399
|
commands: {
|
|
400
400
|
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
401
|
-
showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
401
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
402
402
|
setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
403
403
|
};
|
|
404
404
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
@@ -835,7 +835,7 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
835
835
|
sharedState: import("@atlaskit/editor-plugin-block-controls").BlockControlsSharedState;
|
|
836
836
|
commands: {
|
|
837
837
|
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
838
|
-
showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
838
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
839
839
|
setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
840
840
|
};
|
|
841
841
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
@@ -1249,7 +1249,7 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
1249
1249
|
sharedState: import("@atlaskit/editor-plugin-block-controls").BlockControlsSharedState;
|
|
1250
1250
|
commands: {
|
|
1251
1251
|
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1252
|
-
showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1252
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1253
1253
|
setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1254
1254
|
};
|
|
1255
1255
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
@@ -1453,7 +1453,7 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
1453
1453
|
sharedState: import("@atlaskit/editor-plugin-block-controls").BlockControlsSharedState;
|
|
1454
1454
|
commands: {
|
|
1455
1455
|
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1456
|
-
showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1456
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1457
1457
|
setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1458
1458
|
};
|
|
1459
1459
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
@@ -1875,7 +1875,7 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
1875
1875
|
sharedState: import("@atlaskit/editor-plugin-block-controls").BlockControlsSharedState;
|
|
1876
1876
|
commands: {
|
|
1877
1877
|
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1878
|
-
showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1878
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1879
1879
|
setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1880
1880
|
};
|
|
1881
1881
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
@@ -2081,7 +2081,7 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
2081
2081
|
sharedState: import("@atlaskit/editor-plugin-block-controls").BlockControlsSharedState;
|
|
2082
2082
|
commands: {
|
|
2083
2083
|
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2084
|
-
showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2084
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2085
2085
|
setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2086
2086
|
};
|
|
2087
2087
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
@@ -2518,7 +2518,7 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
2518
2518
|
sharedState: import("@atlaskit/editor-plugin-block-controls").BlockControlsSharedState;
|
|
2519
2519
|
commands: {
|
|
2520
2520
|
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2521
|
-
showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2521
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2522
2522
|
setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2523
2523
|
};
|
|
2524
2524
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
@@ -2932,7 +2932,7 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
2932
2932
|
sharedState: import("@atlaskit/editor-plugin-block-controls").BlockControlsSharedState;
|
|
2933
2933
|
commands: {
|
|
2934
2934
|
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2935
|
-
showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2935
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2936
2936
|
setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2937
2937
|
};
|
|
2938
2938
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
@@ -3136,7 +3136,7 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
3136
3136
|
sharedState: import("@atlaskit/editor-plugin-block-controls").BlockControlsSharedState;
|
|
3137
3137
|
commands: {
|
|
3138
3138
|
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3139
|
-
showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3139
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3140
3140
|
setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3141
3141
|
};
|
|
3142
3142
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
@@ -233,7 +233,7 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
233
233
|
sharedState: import("@atlaskit/editor-plugin-block-controls").BlockControlsSharedState;
|
|
234
234
|
commands: {
|
|
235
235
|
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
236
|
-
showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
236
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
237
237
|
setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
238
238
|
};
|
|
239
239
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
@@ -437,7 +437,7 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
437
437
|
sharedState: import("@atlaskit/editor-plugin-block-controls").BlockControlsSharedState;
|
|
438
438
|
commands: {
|
|
439
439
|
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
440
|
-
showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
440
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
441
441
|
setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
442
442
|
};
|
|
443
443
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
@@ -712,7 +712,15 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
712
712
|
sharedState: FeatureFlags;
|
|
713
713
|
}, FeatureFlags>>];
|
|
714
714
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
715
|
-
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions
|
|
715
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
716
|
+
sharedState: import("@atlaskit/editor-plugin-primary-toolbar").PrimaryToolbarPluginState | undefined;
|
|
717
|
+
commands: {
|
|
718
|
+
registerComponent: ({ name, component, }: {
|
|
719
|
+
name: import("@atlaskit/editor-plugin-primary-toolbar").ToolbarElementNames;
|
|
720
|
+
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
721
|
+
}) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
722
|
+
};
|
|
723
|
+
}, undefined>>];
|
|
716
724
|
actions: {
|
|
717
725
|
getToolbarButton: (params: import("@atlaskit/editor-plugins/find-replace").FindReplaceToolbarButtonActionProps) => import("react").ReactNode;
|
|
718
726
|
};
|
|
@@ -786,7 +794,15 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
786
794
|
}) => boolean;
|
|
787
795
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
788
796
|
};
|
|
789
|
-
}, import("@atlaskit/editor-plugins/collab-edit").PrivateCollabEditOptions
|
|
797
|
+
}, import("@atlaskit/editor-plugins/collab-edit").PrivateCollabEditOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
798
|
+
sharedState: import("@atlaskit/editor-plugin-primary-toolbar").PrimaryToolbarPluginState | undefined;
|
|
799
|
+
commands: {
|
|
800
|
+
registerComponent: ({ name, component, }: {
|
|
801
|
+
name: import("@atlaskit/editor-plugin-primary-toolbar").ToolbarElementNames;
|
|
802
|
+
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
803
|
+
}) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
804
|
+
};
|
|
805
|
+
}, undefined>>];
|
|
790
806
|
actions: {
|
|
791
807
|
getToolbarItem: ({ editorView, inviteToEditHandler, isInviteToEditButtonSelected, inviteToEditComponent, }: {
|
|
792
808
|
editorView: import("prosemirror-view").EditorView;
|
|
@@ -800,6 +816,15 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
800
816
|
pluginConfiguration: {
|
|
801
817
|
beforePrimaryToolbarComponents?: import("@atlaskit/editor-plugins/before-primary-toolbar").ReactComponents | undefined;
|
|
802
818
|
};
|
|
819
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
820
|
+
sharedState: import("@atlaskit/editor-plugin-primary-toolbar").PrimaryToolbarPluginState | undefined;
|
|
821
|
+
commands: {
|
|
822
|
+
registerComponent: ({ name, component, }: {
|
|
823
|
+
name: import("@atlaskit/editor-plugin-primary-toolbar").ToolbarElementNames;
|
|
824
|
+
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
825
|
+
}) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
826
|
+
};
|
|
827
|
+
}, undefined>>];
|
|
803
828
|
}, {
|
|
804
829
|
beforePrimaryToolbarComponents?: import("@atlaskit/editor-plugins/before-primary-toolbar").ReactComponents | undefined;
|
|
805
830
|
}> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"insertBlock", {
|
|
@@ -948,7 +973,15 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
948
973
|
sharedState: FeatureFlags;
|
|
949
974
|
}, FeatureFlags>>];
|
|
950
975
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
951
|
-
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions
|
|
976
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
977
|
+
sharedState: import("@atlaskit/editor-plugin-primary-toolbar").PrimaryToolbarPluginState | undefined;
|
|
978
|
+
commands: {
|
|
979
|
+
registerComponent: ({ name, component, }: {
|
|
980
|
+
name: import("@atlaskit/editor-plugin-primary-toolbar").ToolbarElementNames;
|
|
981
|
+
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
982
|
+
}) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
983
|
+
};
|
|
984
|
+
}, undefined>>];
|
|
952
985
|
}, {
|
|
953
986
|
showIndentationButtons: boolean;
|
|
954
987
|
allowHeadingAndParagraphIndentation: boolean;
|
|
@@ -1161,7 +1194,7 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
1161
1194
|
sharedState: import("@atlaskit/editor-plugin-block-controls").BlockControlsSharedState;
|
|
1162
1195
|
commands: {
|
|
1163
1196
|
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1164
|
-
showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1197
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1165
1198
|
setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1166
1199
|
};
|
|
1167
1200
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
@@ -1671,7 +1704,7 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
1671
1704
|
sharedState: import("@atlaskit/editor-plugin-block-controls").BlockControlsSharedState;
|
|
1672
1705
|
commands: {
|
|
1673
1706
|
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1674
|
-
showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1707
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1675
1708
|
setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1676
1709
|
};
|
|
1677
1710
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
@@ -2356,7 +2389,7 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
2356
2389
|
sharedState: import("@atlaskit/editor-plugin-block-controls").BlockControlsSharedState;
|
|
2357
2390
|
commands: {
|
|
2358
2391
|
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2359
|
-
showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2392
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2360
2393
|
setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2361
2394
|
};
|
|
2362
2395
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
@@ -2940,7 +2973,7 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
2940
2973
|
sharedState: import("@atlaskit/editor-plugin-block-controls").BlockControlsSharedState;
|
|
2941
2974
|
commands: {
|
|
2942
2975
|
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2943
|
-
showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2976
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2944
2977
|
setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2945
2978
|
};
|
|
2946
2979
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
@@ -3146,7 +3179,7 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
3146
3179
|
sharedState: import("@atlaskit/editor-plugin-block-controls").BlockControlsSharedState;
|
|
3147
3180
|
commands: {
|
|
3148
3181
|
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3149
|
-
showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3182
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3150
3183
|
setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3151
3184
|
};
|
|
3152
3185
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
@@ -3583,7 +3616,7 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
3583
3616
|
sharedState: import("@atlaskit/editor-plugin-block-controls").BlockControlsSharedState;
|
|
3584
3617
|
commands: {
|
|
3585
3618
|
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3586
|
-
showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3619
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3587
3620
|
setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3588
3621
|
};
|
|
3589
3622
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
@@ -3997,7 +4030,7 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
3997
4030
|
sharedState: import("@atlaskit/editor-plugin-block-controls").BlockControlsSharedState;
|
|
3998
4031
|
commands: {
|
|
3999
4032
|
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
4000
|
-
showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
4033
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
4001
4034
|
setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
4002
4035
|
};
|
|
4003
4036
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
@@ -4201,7 +4234,7 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
4201
4234
|
sharedState: import("@atlaskit/editor-plugin-block-controls").BlockControlsSharedState;
|
|
4202
4235
|
commands: {
|
|
4203
4236
|
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
4204
|
-
showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
4237
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
4205
4238
|
setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
4206
4239
|
};
|
|
4207
4240
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|