@atlaskit/editor-core 193.6.6 → 193.7.16
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 +13 -0
- package/dist/cjs/ui/Appearance/FullPage/FullPage.js +9 -2
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +1 -1
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +0 -9
- package/dist/cjs/ui/Appearance/FullPage/StyledComponents.js +4 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPage.js +10 -2
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +2 -2
- package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +0 -10
- package/dist/es2019/ui/Appearance/FullPage/StyledComponents.js +3 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/FullPage.js +9 -2
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +2 -2
- package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +0 -9
- package/dist/esm/ui/Appearance/FullPage/StyledComponents.js +3 -0
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-preset.d.ts +16 -14
- package/dist/types/presets/default.d.ts +6 -6
- package/dist/types/presets/universal.d.ts +16 -14
- package/dist/types/presets/useUniversalPreset.d.ts +16 -14
- package/dist/types/ui/Appearance/FullPage/FullPageContentArea.d.ts +1 -0
- package/dist/types/ui/Appearance/FullPage/FullPageToolbar.d.ts +1 -1
- package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +1 -0
- package/dist/types-ts4.5/create-editor/create-preset.d.ts +17 -14
- package/dist/types-ts4.5/presets/default.d.ts +6 -6
- package/dist/types-ts4.5/presets/universal.d.ts +17 -14
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +17 -14
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageContentArea.d.ts +1 -0
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageToolbar.d.ts +1 -1
- package/dist/types-ts4.5/ui/Appearance/FullPage/StyledComponents.d.ts +1 -0
- package/package.json +56 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 193.7.16
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#86724](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86724) [`718a9aa2424d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/718a9aa2424d) - [ED-22607] Remove references to maxFrames for multi bodied extensions and bump adf-schema from 35.7.0 to 35.8.0
|
|
8
|
+
- [#86222](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86222) [`38afb794d859`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/38afb794d859) - Fix a table content paste issue when copy content from a table cell inside bodied extension
|
|
9
|
+
|
|
10
|
+
## 193.7.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- [#80872](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80872) [`ac1638d405c5`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ac1638d405c5) - [ux] update height of editor content when in view mode to account for hidden toolbar
|
|
15
|
+
|
|
3
16
|
## 193.6.6
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -9,8 +9,10 @@ exports.FullPageEditor = void 0;
|
|
|
9
9
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _react2 = require("@emotion/react");
|
|
12
|
+
var _hooks = require("@atlaskit/editor-common/hooks");
|
|
12
13
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
13
14
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
15
|
+
var _context = require("../../../presets/context");
|
|
14
16
|
var _FullPageContentArea = require("./FullPageContentArea");
|
|
15
17
|
var _FullPageToolbar = require("./FullPageToolbar");
|
|
16
18
|
var _StyledComponents = require("./StyledComponents");
|
|
@@ -54,11 +56,15 @@ var FullPageEditor = exports.FullPageEditor = function FullPageEditor(props) {
|
|
|
54
56
|
}, [props.innerRef]);
|
|
55
57
|
var scrollContentContainerRef = (0, _react.useRef)(null);
|
|
56
58
|
var showKeyline = useShowKeyline(scrollContentContainerRef);
|
|
59
|
+
var editorAPI = (0, _context.usePresetContext)();
|
|
60
|
+
var _useSharedPluginState = (0, _hooks.useSharedPluginState)(editorAPI, ['editorViewMode']),
|
|
61
|
+
editorViewModeState = _useSharedPluginState.editorViewModeState;
|
|
62
|
+
var isEditorToolbarHidden = (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view';
|
|
57
63
|
return (0, _react2.jsx)(_ui.ContextPanelWidthProvider, null, (0, _react2.jsx)("div", {
|
|
58
64
|
css: _StyledComponents.fullPageEditorWrapper,
|
|
59
65
|
className: "akEditor",
|
|
60
66
|
ref: wrapperElementRef
|
|
61
|
-
}, (0, _react2.jsx)(_FullPageToolbar.FullPageToolbar, {
|
|
67
|
+
}, !isEditorToolbarHidden && (0, _react2.jsx)(_FullPageToolbar.FullPageToolbar, {
|
|
62
68
|
appearance: props.appearance,
|
|
63
69
|
beforeIcon: props.primaryToolbarIconBefore,
|
|
64
70
|
collabEdit: props.collabEdit,
|
|
@@ -97,6 +103,7 @@ var FullPageEditor = exports.FullPageEditor = function FullPageEditor(props) {
|
|
|
97
103
|
providerFactory: props.providerFactory,
|
|
98
104
|
wrapperElement: (_wrapperElementRef$cu = wrapperElementRef === null || wrapperElementRef === void 0 ? void 0 : wrapperElementRef.current) !== null && _wrapperElementRef$cu !== void 0 ? _wrapperElementRef$cu : null,
|
|
99
105
|
pluginHooks: props.pluginHooks,
|
|
100
|
-
featureFlags: props.featureFlags
|
|
106
|
+
featureFlags: props.featureFlags,
|
|
107
|
+
isEditorToolbarHidden: isEditorToolbarHidden
|
|
101
108
|
})));
|
|
102
109
|
};
|
|
@@ -41,7 +41,7 @@ var Content = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
41
41
|
var _contentAreaRef$curre;
|
|
42
42
|
var positionedOverEditor = _ref2.positionedOverEditor;
|
|
43
43
|
return (0, _react2.jsx)("div", {
|
|
44
|
-
css: [_StyledComponents.contentArea, positionedOverEditor && _StyledComponents.positionedOverEditorStyle],
|
|
44
|
+
css: [_StyledComponents.contentArea, props.isEditorToolbarHidden && _StyledComponents.contentAreaHeightNoToolbar, positionedOverEditor && _StyledComponents.positionedOverEditorStyle],
|
|
45
45
|
"data-testid": CONTENT_AREA_TEST_ID
|
|
46
46
|
}, (0, _react2.jsx)(_StyledComponents.ScrollContainer, {
|
|
47
47
|
className: "fabric-editor-popup-scroll-parent",
|
|
@@ -10,7 +10,6 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _react2 = require("@emotion/react");
|
|
12
12
|
var _reactIntlNext = require("react-intl-next");
|
|
13
|
-
var _hooks = require("@atlaskit/editor-common/hooks");
|
|
14
13
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
15
14
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
16
15
|
var _uiMenu = require("@atlaskit/editor-common/ui-menu");
|
|
@@ -29,11 +28,6 @@ var EditorToolbar = exports.EditorToolbar = /*#__PURE__*/_react.default.memo(fun
|
|
|
29
28
|
shouldSplitToolbar = _useState2[0],
|
|
30
29
|
setShouldSplitToolbar = _useState2[1];
|
|
31
30
|
var editorAPI = (0, _context.usePresetContext)();
|
|
32
|
-
var _useSharedPluginState = (0, _hooks.useSharedPluginState)(editorAPI, ['editorViewMode']),
|
|
33
|
-
editorViewModeState = _useSharedPluginState.editorViewModeState;
|
|
34
|
-
|
|
35
|
-
// To check if the page is in viewMode
|
|
36
|
-
var isInViewMode = (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view';
|
|
37
31
|
|
|
38
32
|
// When primary toolbar components is undefined, do not show two line editor toolbar
|
|
39
33
|
var twoLineEditorToolbar = !!props.customPrimaryToolbarComponents && !!((_props$featureFlags = props.featureFlags) !== null && _props$featureFlags !== void 0 && _props$featureFlags.twoLineEditorToolbar);
|
|
@@ -103,9 +97,6 @@ var EditorToolbar = exports.EditorToolbar = /*#__PURE__*/_react.default.memo(fun
|
|
|
103
97
|
event.preventDefault();
|
|
104
98
|
event.stopPropagation();
|
|
105
99
|
};
|
|
106
|
-
if (isInViewMode) {
|
|
107
|
-
return null;
|
|
108
|
-
}
|
|
109
100
|
return (0, _react2.jsx)(_ui.ContextPanelConsumer, null, function (_ref) {
|
|
110
101
|
var contextPanelWidth = _ref.width;
|
|
111
102
|
return (0, _react2.jsx)(_uiMenu.ToolbarArrowKeyNavigationProvider, {
|
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.sidebarArea = exports.positionedOverEditorStyle = exports.fullPageEditorWrapper = exports.editorContentGutterStyle = exports.editorContentAreaStyle = exports.editorContentAreaHideContainer = exports.contentArea = exports.ScrollContainer = void 0;
|
|
7
|
+
exports.sidebarArea = exports.positionedOverEditorStyle = exports.fullPageEditorWrapper = exports.editorContentGutterStyle = exports.editorContentAreaStyle = exports.editorContentAreaHideContainer = exports.contentAreaHeightNoToolbar = exports.contentArea = exports.ScrollContainer = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _adfSchema = require("@atlaskit/adf-schema");
|
|
@@ -56,6 +56,9 @@ var contentArea = exports.contentArea = (0, _react.css)({
|
|
|
56
56
|
padding: 0,
|
|
57
57
|
transition: "padding 0ms ".concat(_editorSharedStyles.akEditorSwoopCubicBezier)
|
|
58
58
|
});
|
|
59
|
+
var contentAreaHeightNoToolbar = exports.contentAreaHeightNoToolbar = (0, _react.css)({
|
|
60
|
+
height: '100%'
|
|
61
|
+
});
|
|
59
62
|
var sidebarArea = exports.sidebarArea = (0, _react.css)({
|
|
60
63
|
height: '100%',
|
|
61
64
|
boxSizing: 'border-box',
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React, { useEffect, useMemo, useRef, useState } from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
+
import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
4
5
|
import { ContextPanelWidthProvider } from '@atlaskit/editor-common/ui';
|
|
5
6
|
import { browser } from '@atlaskit/editor-common/utils';
|
|
7
|
+
import { usePresetContext } from '../../../presets/context';
|
|
6
8
|
import { FullPageContentArea } from './FullPageContentArea';
|
|
7
9
|
import { FullPageToolbar } from './FullPageToolbar';
|
|
8
10
|
import { fullPageEditorWrapper } from './StyledComponents';
|
|
@@ -35,11 +37,16 @@ export const FullPageEditor = props => {
|
|
|
35
37
|
const wrapperElementRef = useMemo(() => props.innerRef, [props.innerRef]);
|
|
36
38
|
const scrollContentContainerRef = useRef(null);
|
|
37
39
|
const showKeyline = useShowKeyline(scrollContentContainerRef);
|
|
40
|
+
const editorAPI = usePresetContext();
|
|
41
|
+
const {
|
|
42
|
+
editorViewModeState
|
|
43
|
+
} = useSharedPluginState(editorAPI, ['editorViewMode']);
|
|
44
|
+
const isEditorToolbarHidden = (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view';
|
|
38
45
|
return jsx(ContextPanelWidthProvider, null, jsx("div", {
|
|
39
46
|
css: fullPageEditorWrapper,
|
|
40
47
|
className: "akEditor",
|
|
41
48
|
ref: wrapperElementRef
|
|
42
|
-
}, jsx(FullPageToolbar, {
|
|
49
|
+
}, !isEditorToolbarHidden && jsx(FullPageToolbar, {
|
|
43
50
|
appearance: props.appearance,
|
|
44
51
|
beforeIcon: props.primaryToolbarIconBefore,
|
|
45
52
|
collabEdit: props.collabEdit,
|
|
@@ -78,6 +85,7 @@ export const FullPageEditor = props => {
|
|
|
78
85
|
providerFactory: props.providerFactory,
|
|
79
86
|
wrapperElement: (_wrapperElementRef$cu = wrapperElementRef === null || wrapperElementRef === void 0 ? void 0 : wrapperElementRef.current) !== null && _wrapperElementRef$cu !== void 0 ? _wrapperElementRef$cu : null,
|
|
80
87
|
pluginHooks: props.pluginHooks,
|
|
81
|
-
featureFlags: props.featureFlags
|
|
88
|
+
featureFlags: props.featureFlags,
|
|
89
|
+
isEditorToolbarHidden: isEditorToolbarHidden
|
|
82
90
|
})));
|
|
83
91
|
};
|
|
@@ -8,7 +8,7 @@ import { ContextPanelConsumer, WidthConsumer } from '@atlaskit/editor-common/ui'
|
|
|
8
8
|
import { ClickAreaBlock } from '../../Addon';
|
|
9
9
|
import ContextPanel from '../../ContextPanel';
|
|
10
10
|
import PluginSlot from '../../PluginSlot';
|
|
11
|
-
import { contentArea, editorContentAreaStyle, editorContentGutterStyle, positionedOverEditorStyle, ScrollContainer, sidebarArea } from './StyledComponents';
|
|
11
|
+
import { contentArea, contentAreaHeightNoToolbar, editorContentAreaStyle, editorContentGutterStyle, positionedOverEditorStyle, ScrollContainer, sidebarArea } from './StyledComponents';
|
|
12
12
|
export const CONTENT_AREA_TEST_ID = 'ak-editor-fp-content-area';
|
|
13
13
|
const Content = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
14
14
|
const theme = useTheme();
|
|
@@ -30,7 +30,7 @@ const Content = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
30
30
|
}) => {
|
|
31
31
|
var _contentAreaRef$curre;
|
|
32
32
|
return jsx("div", {
|
|
33
|
-
css: [contentArea, positionedOverEditor && positionedOverEditorStyle],
|
|
33
|
+
css: [contentArea, props.isEditorToolbarHidden && contentAreaHeightNoToolbar, positionedOverEditor && positionedOverEditorStyle],
|
|
34
34
|
"data-testid": CONTENT_AREA_TEST_ID
|
|
35
35
|
}, jsx(ScrollContainer, {
|
|
36
36
|
className: "fabric-editor-popup-scroll-parent",
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
import React, { useEffect, useState } from 'react';
|
|
4
4
|
import { jsx } from '@emotion/react';
|
|
5
5
|
import { injectIntl } from 'react-intl-next';
|
|
6
|
-
import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
7
6
|
import { fullPageMessages as messages } from '@atlaskit/editor-common/messages';
|
|
8
7
|
import { ContextPanelConsumer } from '@atlaskit/editor-common/ui';
|
|
9
8
|
import { ToolbarArrowKeyNavigationProvider } from '@atlaskit/editor-common/ui-menu';
|
|
@@ -15,12 +14,6 @@ export const EditorToolbar = /*#__PURE__*/React.memo(props => {
|
|
|
15
14
|
var _props$featureFlags, _props$customPrimaryT, _props$featureFlags2, _props$featureFlags3, _editorAPI$avatarGrou, _props$collabEdit, _props$collabEdit2, _props$collabEdit3;
|
|
16
15
|
const [shouldSplitToolbar, setShouldSplitToolbar] = useState(false);
|
|
17
16
|
const editorAPI = usePresetContext();
|
|
18
|
-
const {
|
|
19
|
-
editorViewModeState
|
|
20
|
-
} = useSharedPluginState(editorAPI, ['editorViewMode']);
|
|
21
|
-
|
|
22
|
-
// To check if the page is in viewMode
|
|
23
|
-
const isInViewMode = (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view';
|
|
24
17
|
|
|
25
18
|
// When primary toolbar components is undefined, do not show two line editor toolbar
|
|
26
19
|
const twoLineEditorToolbar = !!props.customPrimaryToolbarComponents && !!((_props$featureFlags = props.featureFlags) !== null && _props$featureFlags !== void 0 && _props$featureFlags.twoLineEditorToolbar);
|
|
@@ -88,9 +81,6 @@ export const EditorToolbar = /*#__PURE__*/React.memo(props => {
|
|
|
88
81
|
event.preventDefault();
|
|
89
82
|
event.stopPropagation();
|
|
90
83
|
};
|
|
91
|
-
if (isInViewMode) {
|
|
92
|
-
return null;
|
|
93
|
-
}
|
|
94
84
|
return jsx(ContextPanelConsumer, null, ({
|
|
95
85
|
width: contextPanelWidth
|
|
96
86
|
}) => jsx(ToolbarArrowKeyNavigationProvider, {
|
|
@@ -47,6 +47,9 @@ export const contentArea = css({
|
|
|
47
47
|
padding: 0,
|
|
48
48
|
transition: `padding 0ms ${akEditorSwoopCubicBezier}`
|
|
49
49
|
});
|
|
50
|
+
export const contentAreaHeightNoToolbar = css({
|
|
51
|
+
height: '100%'
|
|
52
|
+
});
|
|
50
53
|
export const sidebarArea = css({
|
|
51
54
|
height: '100%',
|
|
52
55
|
boxSizing: 'border-box',
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "193.
|
|
2
|
+
export const version = "193.7.16";
|
|
@@ -2,8 +2,10 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
import React, { useEffect, useMemo, useRef, useState } from 'react';
|
|
4
4
|
import { jsx } from '@emotion/react';
|
|
5
|
+
import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
5
6
|
import { ContextPanelWidthProvider } from '@atlaskit/editor-common/ui';
|
|
6
7
|
import { browser } from '@atlaskit/editor-common/utils';
|
|
8
|
+
import { usePresetContext } from '../../../presets/context';
|
|
7
9
|
import { FullPageContentArea } from './FullPageContentArea';
|
|
8
10
|
import { FullPageToolbar } from './FullPageToolbar';
|
|
9
11
|
import { fullPageEditorWrapper } from './StyledComponents';
|
|
@@ -43,11 +45,15 @@ export var FullPageEditor = function FullPageEditor(props) {
|
|
|
43
45
|
}, [props.innerRef]);
|
|
44
46
|
var scrollContentContainerRef = useRef(null);
|
|
45
47
|
var showKeyline = useShowKeyline(scrollContentContainerRef);
|
|
48
|
+
var editorAPI = usePresetContext();
|
|
49
|
+
var _useSharedPluginState = useSharedPluginState(editorAPI, ['editorViewMode']),
|
|
50
|
+
editorViewModeState = _useSharedPluginState.editorViewModeState;
|
|
51
|
+
var isEditorToolbarHidden = (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view';
|
|
46
52
|
return jsx(ContextPanelWidthProvider, null, jsx("div", {
|
|
47
53
|
css: fullPageEditorWrapper,
|
|
48
54
|
className: "akEditor",
|
|
49
55
|
ref: wrapperElementRef
|
|
50
|
-
}, jsx(FullPageToolbar, {
|
|
56
|
+
}, !isEditorToolbarHidden && jsx(FullPageToolbar, {
|
|
51
57
|
appearance: props.appearance,
|
|
52
58
|
beforeIcon: props.primaryToolbarIconBefore,
|
|
53
59
|
collabEdit: props.collabEdit,
|
|
@@ -86,6 +92,7 @@ export var FullPageEditor = function FullPageEditor(props) {
|
|
|
86
92
|
providerFactory: props.providerFactory,
|
|
87
93
|
wrapperElement: (_wrapperElementRef$cu = wrapperElementRef === null || wrapperElementRef === void 0 ? void 0 : wrapperElementRef.current) !== null && _wrapperElementRef$cu !== void 0 ? _wrapperElementRef$cu : null,
|
|
88
94
|
pluginHooks: props.pluginHooks,
|
|
89
|
-
featureFlags: props.featureFlags
|
|
95
|
+
featureFlags: props.featureFlags,
|
|
96
|
+
isEditorToolbarHidden: isEditorToolbarHidden
|
|
90
97
|
})));
|
|
91
98
|
};
|
|
@@ -8,7 +8,7 @@ import { ContextPanelConsumer, WidthConsumer } from '@atlaskit/editor-common/ui'
|
|
|
8
8
|
import { ClickAreaBlock } from '../../Addon';
|
|
9
9
|
import ContextPanel from '../../ContextPanel';
|
|
10
10
|
import PluginSlot from '../../PluginSlot';
|
|
11
|
-
import { contentArea, editorContentAreaStyle, editorContentGutterStyle, positionedOverEditorStyle, ScrollContainer, sidebarArea } from './StyledComponents';
|
|
11
|
+
import { contentArea, contentAreaHeightNoToolbar, editorContentAreaStyle, editorContentGutterStyle, positionedOverEditorStyle, ScrollContainer, sidebarArea } from './StyledComponents';
|
|
12
12
|
export var CONTENT_AREA_TEST_ID = 'ak-editor-fp-content-area';
|
|
13
13
|
var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
14
14
|
var theme = useTheme();
|
|
@@ -31,7 +31,7 @@ var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
31
31
|
var _contentAreaRef$curre;
|
|
32
32
|
var positionedOverEditor = _ref2.positionedOverEditor;
|
|
33
33
|
return jsx("div", {
|
|
34
|
-
css: [contentArea, positionedOverEditor && positionedOverEditorStyle],
|
|
34
|
+
css: [contentArea, props.isEditorToolbarHidden && contentAreaHeightNoToolbar, positionedOverEditor && positionedOverEditorStyle],
|
|
35
35
|
"data-testid": CONTENT_AREA_TEST_ID
|
|
36
36
|
}, jsx(ScrollContainer, {
|
|
37
37
|
className: "fabric-editor-popup-scroll-parent",
|
|
@@ -4,7 +4,6 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
4
4
|
import React, { useEffect, useState } from 'react';
|
|
5
5
|
import { jsx } from '@emotion/react';
|
|
6
6
|
import { injectIntl } from 'react-intl-next';
|
|
7
|
-
import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
8
7
|
import { fullPageMessages as messages } from '@atlaskit/editor-common/messages';
|
|
9
8
|
import { ContextPanelConsumer } from '@atlaskit/editor-common/ui';
|
|
10
9
|
import { ToolbarArrowKeyNavigationProvider } from '@atlaskit/editor-common/ui-menu';
|
|
@@ -19,11 +18,6 @@ export var EditorToolbar = /*#__PURE__*/React.memo(function (props) {
|
|
|
19
18
|
shouldSplitToolbar = _useState2[0],
|
|
20
19
|
setShouldSplitToolbar = _useState2[1];
|
|
21
20
|
var editorAPI = usePresetContext();
|
|
22
|
-
var _useSharedPluginState = useSharedPluginState(editorAPI, ['editorViewMode']),
|
|
23
|
-
editorViewModeState = _useSharedPluginState.editorViewModeState;
|
|
24
|
-
|
|
25
|
-
// To check if the page is in viewMode
|
|
26
|
-
var isInViewMode = (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view';
|
|
27
21
|
|
|
28
22
|
// When primary toolbar components is undefined, do not show two line editor toolbar
|
|
29
23
|
var twoLineEditorToolbar = !!props.customPrimaryToolbarComponents && !!((_props$featureFlags = props.featureFlags) !== null && _props$featureFlags !== void 0 && _props$featureFlags.twoLineEditorToolbar);
|
|
@@ -93,9 +87,6 @@ export var EditorToolbar = /*#__PURE__*/React.memo(function (props) {
|
|
|
93
87
|
event.preventDefault();
|
|
94
88
|
event.stopPropagation();
|
|
95
89
|
};
|
|
96
|
-
if (isInViewMode) {
|
|
97
|
-
return null;
|
|
98
|
-
}
|
|
99
90
|
return jsx(ContextPanelConsumer, null, function (_ref) {
|
|
100
91
|
var contextPanelWidth = _ref.width;
|
|
101
92
|
return jsx(ToolbarArrowKeyNavigationProvider, {
|
|
@@ -49,6 +49,9 @@ export var contentArea = css({
|
|
|
49
49
|
padding: 0,
|
|
50
50
|
transition: "padding 0ms ".concat(akEditorSwoopCubicBezier)
|
|
51
51
|
});
|
|
52
|
+
export var contentAreaHeightNoToolbar = css({
|
|
53
|
+
height: '100%'
|
|
54
|
+
});
|
|
52
55
|
export var sidebarArea = css({
|
|
53
56
|
height: '100%',
|
|
54
57
|
boxSizing: 'border-box',
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "193.
|
|
2
|
+
export var version = "193.7.16";
|
|
@@ -600,7 +600,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
600
600
|
actions: {
|
|
601
601
|
stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: import("prosemirror-state").EditorState) => boolean | undefined;
|
|
602
602
|
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("@atlaskit/editor-plugin-annotation").InlineCommentInputMethod, targetType?: import("@atlaskit/editor-plugin-annotation").TargetType | undefined, isCommentOnMediaOn?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
603
|
-
showCommentForBlockNode: (node: import("prosemirror-model").Node | null) => import("@atlaskit/editor-common/types").Command
|
|
603
|
+
showCommentForBlockNode: (node: import("prosemirror-model").Node | null) => import("@atlaskit/editor-common/types").Command;
|
|
604
604
|
};
|
|
605
605
|
}, import("@atlaskit/editor-plugin-annotation").AnnotationProviders | undefined>>];
|
|
606
606
|
sharedState: import("@atlaskit/editor-plugins/media/types").MediaPluginState | null;
|
|
@@ -719,7 +719,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
719
719
|
actions: {
|
|
720
720
|
stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: import("prosemirror-state").EditorState) => boolean | undefined;
|
|
721
721
|
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("@atlaskit/editor-plugin-annotation").InlineCommentInputMethod, targetType?: import("@atlaskit/editor-plugin-annotation").TargetType | undefined, isCommentOnMediaOn?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
722
|
-
showCommentForBlockNode: (node: import("prosemirror-model").Node | null) => import("@atlaskit/editor-common/types").Command
|
|
722
|
+
showCommentForBlockNode: (node: import("prosemirror-model").Node | null) => import("@atlaskit/editor-common/types").Command;
|
|
723
723
|
};
|
|
724
724
|
}, import("@atlaskit/editor-plugin-annotation").AnnotationProviders | undefined>>];
|
|
725
725
|
sharedState: {
|
|
@@ -1378,7 +1378,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
1378
1378
|
actions: {
|
|
1379
1379
|
stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: import("prosemirror-state").EditorState) => boolean | undefined;
|
|
1380
1380
|
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("@atlaskit/editor-plugin-annotation").InlineCommentInputMethod, targetType?: import("@atlaskit/editor-plugin-annotation").TargetType | undefined, isCommentOnMediaOn?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
1381
|
-
showCommentForBlockNode: (node: import("prosemirror-model").Node | null) => import("@atlaskit/editor-common/types").Command
|
|
1381
|
+
showCommentForBlockNode: (node: import("prosemirror-model").Node | null) => import("@atlaskit/editor-common/types").Command;
|
|
1382
1382
|
};
|
|
1383
1383
|
}, import("@atlaskit/editor-plugin-annotation").AnnotationProviders | undefined>>, import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"extension", {
|
|
1384
1384
|
pluginConfiguration: import("@atlaskit/editor-plugin-extension").ExtensionPluginOptions | undefined;
|
|
@@ -1787,7 +1787,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
1787
1787
|
actions: {
|
|
1788
1788
|
stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: import("prosemirror-state").EditorState) => boolean | undefined;
|
|
1789
1789
|
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("@atlaskit/editor-plugin-annotation").InlineCommentInputMethod, targetType?: import("@atlaskit/editor-plugin-annotation").TargetType | undefined, isCommentOnMediaOn?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
1790
|
-
showCommentForBlockNode: (node: import("prosemirror-model").Node | null) => import("@atlaskit/editor-common/types").Command
|
|
1790
|
+
showCommentForBlockNode: (node: import("prosemirror-model").Node | null) => import("@atlaskit/editor-common/types").Command;
|
|
1791
1791
|
};
|
|
1792
1792
|
}, import("@atlaskit/editor-plugin-annotation").AnnotationProviders | undefined>>];
|
|
1793
1793
|
sharedState: import("@atlaskit/editor-plugins/media/types").MediaPluginState | null;
|
|
@@ -1967,10 +1967,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
1967
1967
|
actions: {
|
|
1968
1968
|
insertTable: (analyticsPayload: import("@atlaskit/editor-common/analytics").AnalyticsEventPayload) => import("@atlaskit/editor-common/types").Command;
|
|
1969
1969
|
};
|
|
1970
|
-
sharedState
|
|
1971
|
-
isFullWidthModeEnabled: boolean;
|
|
1972
|
-
wasFullWidthModeEnabled: boolean;
|
|
1973
|
-
};
|
|
1970
|
+
sharedState?: import("@atlaskit/editor-plugins/table/types").TableSharedState | undefined;
|
|
1974
1971
|
commands: {
|
|
1975
1972
|
insertTableWithSize: (rowsCount: number, colsCount: number, inputMethod?: import("@atlaskit/editor-common/analytics").INPUT_METHOD.PICKER | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1976
1973
|
};
|
|
@@ -2018,7 +2015,12 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
2018
2015
|
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2019
2016
|
};
|
|
2020
2017
|
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
2021
|
-
}, import("@atlaskit/editor-plugins/selection/types").SelectionPluginOptions | undefined
|
|
2018
|
+
}, import("@atlaskit/editor-plugins/selection/types").SelectionPluginOptions | undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
|
|
2019
|
+
pluginConfiguration: any;
|
|
2020
|
+
dependencies: any;
|
|
2021
|
+
sharedState: any;
|
|
2022
|
+
actions: any;
|
|
2023
|
+
}, any>>];
|
|
2022
2024
|
}, import("@atlaskit/editor-plugin-table").TablePluginOptions | undefined>>, import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"emoji", {
|
|
2023
2025
|
pluginConfiguration: import("@atlaskit/editor-plugin-emoji").EmojiPluginOptions | undefined;
|
|
2024
2026
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
@@ -2464,7 +2466,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
2464
2466
|
actions: {
|
|
2465
2467
|
stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: import("prosemirror-state").EditorState) => boolean | undefined;
|
|
2466
2468
|
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("@atlaskit/editor-plugin-annotation").InlineCommentInputMethod, targetType?: import("@atlaskit/editor-plugin-annotation").TargetType | undefined, isCommentOnMediaOn?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
2467
|
-
showCommentForBlockNode: (node: import("prosemirror-model").Node | null) => import("@atlaskit/editor-common/types").Command
|
|
2469
|
+
showCommentForBlockNode: (node: import("prosemirror-model").Node | null) => import("@atlaskit/editor-common/types").Command;
|
|
2468
2470
|
};
|
|
2469
2471
|
}, import("@atlaskit/editor-plugin-annotation").AnnotationProviders | undefined>>];
|
|
2470
2472
|
sharedState: import("@atlaskit/editor-plugins/media/types").MediaPluginState | null;
|
|
@@ -2537,7 +2539,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
2537
2539
|
actions: {
|
|
2538
2540
|
stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: import("prosemirror-state").EditorState) => boolean | undefined;
|
|
2539
2541
|
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("@atlaskit/editor-plugin-annotation").InlineCommentInputMethod, targetType?: import("@atlaskit/editor-plugin-annotation").TargetType | undefined, isCommentOnMediaOn?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
2540
|
-
showCommentForBlockNode: (node: import("prosemirror-model").Node | null) => import("@atlaskit/editor-common/types").Command
|
|
2542
|
+
showCommentForBlockNode: (node: import("prosemirror-model").Node | null) => import("@atlaskit/editor-common/types").Command;
|
|
2541
2543
|
};
|
|
2542
2544
|
}, import("@atlaskit/editor-plugin-annotation").AnnotationProviders | undefined>>, import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"grid", {
|
|
2543
2545
|
pluginConfiguration: import("@atlaskit/editor-plugin-grid").GridPluginOptions | undefined;
|
|
@@ -3167,7 +3169,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
3167
3169
|
actions: {
|
|
3168
3170
|
stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: import("prosemirror-state").EditorState) => boolean | undefined;
|
|
3169
3171
|
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("@atlaskit/editor-plugin-annotation").InlineCommentInputMethod, targetType?: import("@atlaskit/editor-plugin-annotation").TargetType | undefined, isCommentOnMediaOn?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
3170
|
-
showCommentForBlockNode: (node: import("prosemirror-model").Node | null) => import("@atlaskit/editor-common/types").Command
|
|
3172
|
+
showCommentForBlockNode: (node: import("prosemirror-model").Node | null) => import("@atlaskit/editor-common/types").Command;
|
|
3171
3173
|
};
|
|
3172
3174
|
}, import("@atlaskit/editor-plugin-annotation").AnnotationProviders | undefined>>];
|
|
3173
3175
|
sharedState: import("@atlaskit/editor-plugins/media/types").MediaPluginState | null;
|
|
@@ -4072,7 +4074,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
4072
4074
|
actions: {
|
|
4073
4075
|
stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: import("prosemirror-state").EditorState) => boolean | undefined;
|
|
4074
4076
|
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("@atlaskit/editor-plugin-annotation").InlineCommentInputMethod, targetType?: import("@atlaskit/editor-plugin-annotation").TargetType | undefined, isCommentOnMediaOn?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
4075
|
-
showCommentForBlockNode: (node: import("prosemirror-model").Node | null) => import("@atlaskit/editor-common/types").Command
|
|
4077
|
+
showCommentForBlockNode: (node: import("prosemirror-model").Node | null) => import("@atlaskit/editor-common/types").Command;
|
|
4076
4078
|
};
|
|
4077
4079
|
}, import("@atlaskit/editor-plugin-annotation").AnnotationProviders | undefined>>];
|
|
4078
4080
|
sharedState: import("@atlaskit/editor-plugins/media/types").MediaPluginState | null;
|
|
@@ -4191,7 +4193,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
4191
4193
|
actions: {
|
|
4192
4194
|
stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: import("prosemirror-state").EditorState) => boolean | undefined;
|
|
4193
4195
|
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("@atlaskit/editor-plugin-annotation").InlineCommentInputMethod, targetType?: import("@atlaskit/editor-plugin-annotation").TargetType | undefined, isCommentOnMediaOn?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
4194
|
-
showCommentForBlockNode: (node: import("prosemirror-model").Node | null) => import("@atlaskit/editor-common/types").Command
|
|
4196
|
+
showCommentForBlockNode: (node: import("prosemirror-model").Node | null) => import("@atlaskit/editor-common/types").Command;
|
|
4195
4197
|
};
|
|
4196
4198
|
}, import("@atlaskit/editor-plugin-annotation").AnnotationProviders | undefined>>];
|
|
4197
4199
|
sharedState: {
|
|
@@ -524,7 +524,7 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
524
524
|
actions: {
|
|
525
525
|
stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: import("prosemirror-state").EditorState) => boolean | undefined;
|
|
526
526
|
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("@atlaskit/editor-plugin-annotation").InlineCommentInputMethod, targetType?: import("@atlaskit/editor-plugin-annotation").TargetType | undefined, isCommentOnMediaOn?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
527
|
-
showCommentForBlockNode: (node: import("prosemirror-model").Node | null) => import("@atlaskit/editor-common/types").Command
|
|
527
|
+
showCommentForBlockNode: (node: import("prosemirror-model").Node | null) => import("@atlaskit/editor-common/types").Command;
|
|
528
528
|
};
|
|
529
529
|
}, import("@atlaskit/editor-plugin-annotation").AnnotationProviders | undefined>>];
|
|
530
530
|
sharedState: import("@atlaskit/editor-plugins/media/types").MediaPluginState | null;
|
|
@@ -1429,7 +1429,7 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
1429
1429
|
actions: {
|
|
1430
1430
|
stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: import("prosemirror-state").EditorState) => boolean | undefined;
|
|
1431
1431
|
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("@atlaskit/editor-plugin-annotation").InlineCommentInputMethod, targetType?: import("@atlaskit/editor-plugin-annotation").TargetType | undefined, isCommentOnMediaOn?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
1432
|
-
showCommentForBlockNode: (node: import("prosemirror-model").Node | null) => import("@atlaskit/editor-common/types").Command
|
|
1432
|
+
showCommentForBlockNode: (node: import("prosemirror-model").Node | null) => import("@atlaskit/editor-common/types").Command;
|
|
1433
1433
|
};
|
|
1434
1434
|
}, import("@atlaskit/editor-plugin-annotation").AnnotationProviders | undefined>>];
|
|
1435
1435
|
sharedState: import("@atlaskit/editor-plugins/media/types").MediaPluginState | null;
|
|
@@ -1548,7 +1548,7 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
1548
1548
|
actions: {
|
|
1549
1549
|
stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: import("prosemirror-state").EditorState) => boolean | undefined;
|
|
1550
1550
|
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("@atlaskit/editor-plugin-annotation").InlineCommentInputMethod, targetType?: import("@atlaskit/editor-plugin-annotation").TargetType | undefined, isCommentOnMediaOn?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
1551
|
-
showCommentForBlockNode: (node: import("prosemirror-model").Node | null) => import("@atlaskit/editor-common/types").Command
|
|
1551
|
+
showCommentForBlockNode: (node: import("prosemirror-model").Node | null) => import("@atlaskit/editor-common/types").Command;
|
|
1552
1552
|
};
|
|
1553
1553
|
}, import("@atlaskit/editor-plugin-annotation").AnnotationProviders | undefined>>];
|
|
1554
1554
|
sharedState: {
|
|
@@ -2052,7 +2052,7 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
2052
2052
|
actions: {
|
|
2053
2053
|
stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: import("prosemirror-state").EditorState) => boolean | undefined;
|
|
2054
2054
|
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("@atlaskit/editor-plugin-annotation").InlineCommentInputMethod, targetType?: import("@atlaskit/editor-plugin-annotation").TargetType | undefined, isCommentOnMediaOn?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
2055
|
-
showCommentForBlockNode: (node: import("prosemirror-model").Node | null) => import("@atlaskit/editor-common/types").Command
|
|
2055
|
+
showCommentForBlockNode: (node: import("prosemirror-model").Node | null) => import("@atlaskit/editor-common/types").Command;
|
|
2056
2056
|
};
|
|
2057
2057
|
}, import("@atlaskit/editor-plugin-annotation").AnnotationProviders | undefined>>];
|
|
2058
2058
|
sharedState: import("@atlaskit/editor-plugins/media/types").MediaPluginState | null;
|
|
@@ -2957,7 +2957,7 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
2957
2957
|
actions: {
|
|
2958
2958
|
stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: import("prosemirror-state").EditorState) => boolean | undefined;
|
|
2959
2959
|
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("@atlaskit/editor-plugin-annotation").InlineCommentInputMethod, targetType?: import("@atlaskit/editor-plugin-annotation").TargetType | undefined, isCommentOnMediaOn?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
2960
|
-
showCommentForBlockNode: (node: import("prosemirror-model").Node | null) => import("@atlaskit/editor-common/types").Command
|
|
2960
|
+
showCommentForBlockNode: (node: import("prosemirror-model").Node | null) => import("@atlaskit/editor-common/types").Command;
|
|
2961
2961
|
};
|
|
2962
2962
|
}, import("@atlaskit/editor-plugin-annotation").AnnotationProviders | undefined>>];
|
|
2963
2963
|
sharedState: import("@atlaskit/editor-plugins/media/types").MediaPluginState | null;
|
|
@@ -3076,7 +3076,7 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
3076
3076
|
actions: {
|
|
3077
3077
|
stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: import("prosemirror-state").EditorState) => boolean | undefined;
|
|
3078
3078
|
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("@atlaskit/editor-plugin-annotation").InlineCommentInputMethod, targetType?: import("@atlaskit/editor-plugin-annotation").TargetType | undefined, isCommentOnMediaOn?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
3079
|
-
showCommentForBlockNode: (node: import("prosemirror-model").Node | null) => import("@atlaskit/editor-common/types").Command
|
|
3079
|
+
showCommentForBlockNode: (node: import("prosemirror-model").Node | null) => import("@atlaskit/editor-common/types").Command;
|
|
3080
3080
|
};
|
|
3081
3081
|
}, import("@atlaskit/editor-plugin-annotation").AnnotationProviders | undefined>>];
|
|
3082
3082
|
sharedState: {
|