@atlaskit/editor-core 204.2.0 → 204.3.0
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 +12 -0
- package/dist/cjs/ui/Appearance/FullPage/FullPage.js +6 -1
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +7 -3
- package/dist/cjs/ui/Appearance/FullPage/StyledComponents.js +17 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPage.js +7 -2
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +8 -3
- package/dist/es2019/ui/Appearance/FullPage/StyledComponents.js +17 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/FullPage.js +7 -2
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +8 -4
- package/dist/esm/ui/Appearance/FullPage/StyledComponents.js +17 -2
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/editor-appearances/FullPageEditor.d.ts +2 -1
- package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +2 -0
- package/dist/types-ts4.5/editor-appearances/FullPageEditor.d.ts +2 -1
- package/dist/types-ts4.5/ui/Appearance/FullPage/StyledComponents.d.ts +2 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 204.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#117777](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/117777)
|
|
8
|
+
[`6d31e7761757c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6d31e7761757c) -
|
|
9
|
+
[ux] ED-26722 Update header area spacing to avoid layout shift when hiding top toolbar
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 204.2.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -109,8 +109,13 @@ var FullPageEditor = exports.FullPageEditor = function FullPageEditor(props) {
|
|
|
109
109
|
}
|
|
110
110
|
var popupsBoundariesElement = props.popupsBoundariesElement || (scrollContentContainerRef === null || scrollContentContainerRef === void 0 || (_scrollContentContain = scrollContentContainerRef.current) === null || _scrollContentContain === void 0 ? void 0 : _scrollContentContain.containerArea) || undefined;
|
|
111
111
|
return (0, _react2.jsx)(_ui.ContextPanelWidthProvider, null, (0, _react2.jsx)("div", {
|
|
112
|
+
css: [
|
|
112
113
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
113
|
-
|
|
114
|
+
_StyledComponents.fullPageEditorWrapper, isEditorToolbarHidden && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1', {
|
|
115
|
+
exposure: true
|
|
116
|
+
}) &&
|
|
117
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
118
|
+
_StyledComponents.primaryToolbarReservedSpace]
|
|
114
119
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
115
120
|
,
|
|
116
121
|
className: "akEditor",
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.FullPageContentArea = exports.EDITOR_CONTAINER = exports.CONTENT_AREA_TEST_ID = void 0;
|
|
9
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
9
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
11
|
var _react2 = require("@emotion/react");
|
|
11
12
|
var _reactIntlNext = require("react-intl-next");
|
|
@@ -81,11 +82,14 @@ var Content = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
81
82
|
editorView: props.editorView,
|
|
82
83
|
editorDisabled: props.disabled
|
|
83
84
|
}, (0, _react2.jsx)("div", {
|
|
84
|
-
|
|
85
|
-
css: (0, _StyledComponents.editorContentAreaStyle)({
|
|
85
|
+
css: [].concat((0, _toConsumableArray2.default)((0, _StyledComponents.editorContentAreaStyle)({
|
|
86
86
|
fullWidthMode: fullWidthMode,
|
|
87
87
|
layoutMaxWidth: theme.layoutMaxWidth
|
|
88
|
-
}),
|
|
88
|
+
})), [(0, _experiments.editorExperiment)('platform_editor_controls', 'variant1', {
|
|
89
|
+
exposure: true
|
|
90
|
+
}) &&
|
|
91
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
92
|
+
_StyledComponents.contentAreaReducedHeaderSpace]),
|
|
89
93
|
role: "region",
|
|
90
94
|
"aria-label": props.intl.formatMessage(_messages.fullPageMessages.editableContentLabel),
|
|
91
95
|
ref: contentAreaRef
|
|
@@ -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.fullPageEditorWrapper = exports.editorContentGutterStyle = exports.editorContentAreaStyle = exports.editorContentAreaHideContainer = exports.contentAreaWrapper = exports.contentAreaHeightNoToolbar = exports.contentArea = exports.ScrollContainer = void 0;
|
|
7
|
+
exports.sidebarArea = exports.primaryToolbarReservedSpace = exports.fullPageEditorWrapper = exports.editorContentGutterStyle = exports.editorContentAreaStyle = exports.editorContentAreaHideContainer = exports.contentAreaWrapper = exports.contentAreaReducedHeaderSpace = 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");
|
|
@@ -220,4 +220,19 @@ var editorContentGutterStyle = exports.editorContentGutterStyle = function edito
|
|
|
220
220
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
221
221
|
padding: padding
|
|
222
222
|
});
|
|
223
|
-
};
|
|
223
|
+
};
|
|
224
|
+
|
|
225
|
+
// An additional padding applied at the top of the page reserving space when the primary toolbar is hidden
|
|
226
|
+
// which is used to avoid layout shift when the toolbar is toggled under the editor controls feature
|
|
227
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
228
|
+
var primaryToolbarReservedSpace = exports.primaryToolbarReservedSpace = (0, _react.css)({
|
|
229
|
+
// extra 1px to account for the bottom border on the toolbar
|
|
230
|
+
paddingTop: "calc(".concat("var(--ds-space-500, 40px)", " + 1px)")
|
|
231
|
+
});
|
|
232
|
+
|
|
233
|
+
// A reduced top padding to be applied to the content area to compensate for the reserved space at the top
|
|
234
|
+
// of the page when the primary toolbar is hidden under the editor controls feature
|
|
235
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
236
|
+
var contentAreaReducedHeaderSpace = exports.contentAreaReducedHeaderSpace = (0, _react.css)({
|
|
237
|
+
paddingTop: "var(--ds-space-400, 32px)"
|
|
238
|
+
});
|
|
@@ -13,7 +13,7 @@ import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared
|
|
|
13
13
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
14
14
|
import { FullPageContentArea } from './FullPageContentArea';
|
|
15
15
|
import { FullPageToolbar } from './FullPageToolbar';
|
|
16
|
-
import { fullPageEditorWrapper } from './StyledComponents';
|
|
16
|
+
import { fullPageEditorWrapper, primaryToolbarReservedSpace } from './StyledComponents';
|
|
17
17
|
const useShowKeyline = contentAreaRef => {
|
|
18
18
|
const [showKeyline, setShowKeyline] = useState(false);
|
|
19
19
|
useEffect(() => {
|
|
@@ -93,8 +93,13 @@ export const FullPageEditor = props => {
|
|
|
93
93
|
}
|
|
94
94
|
const popupsBoundariesElement = props.popupsBoundariesElement || (scrollContentContainerRef === null || scrollContentContainerRef === void 0 ? void 0 : (_scrollContentContain = scrollContentContainerRef.current) === null || _scrollContentContain === void 0 ? void 0 : _scrollContentContain.containerArea) || undefined;
|
|
95
95
|
return jsx(ContextPanelWidthProvider, null, jsx("div", {
|
|
96
|
+
css: [
|
|
96
97
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
97
|
-
|
|
98
|
+
fullPageEditorWrapper, isEditorToolbarHidden && editorExperiment('platform_editor_controls', 'variant1', {
|
|
99
|
+
exposure: true
|
|
100
|
+
}) &&
|
|
101
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
102
|
+
primaryToolbarReservedSpace]
|
|
98
103
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
99
104
|
,
|
|
100
105
|
className: "akEditor",
|
|
@@ -16,7 +16,7 @@ import ClickAreaBlock from '../../Addon/ClickAreaBlock';
|
|
|
16
16
|
import { contentComponentClickWrapper } from '../../Addon/ClickAreaBlock/contentComponentWrapper';
|
|
17
17
|
import { ContextPanel } from '../../ContextPanel';
|
|
18
18
|
import PluginSlot from '../../PluginSlot';
|
|
19
|
-
import { contentArea, contentAreaHeightNoToolbar, contentAreaWrapper, editorContentAreaStyle, editorContentGutterStyle, ScrollContainer, sidebarArea } from './StyledComponents';
|
|
19
|
+
import { contentArea, contentAreaHeightNoToolbar, contentAreaReducedHeaderSpace, contentAreaWrapper, editorContentAreaStyle, editorContentGutterStyle, ScrollContainer, sidebarArea } from './StyledComponents';
|
|
20
20
|
export const CONTENT_AREA_TEST_ID = 'ak-editor-fp-content-area';
|
|
21
21
|
export const EDITOR_CONTAINER = 'ak-editor-container';
|
|
22
22
|
const Content = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
@@ -68,11 +68,16 @@ const Content = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
68
68
|
editorView: props.editorView,
|
|
69
69
|
editorDisabled: props.disabled
|
|
70
70
|
}, jsx("div", {
|
|
71
|
+
css: [
|
|
71
72
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
72
|
-
|
|
73
|
+
...editorContentAreaStyle({
|
|
73
74
|
fullWidthMode,
|
|
74
75
|
layoutMaxWidth: theme.layoutMaxWidth
|
|
75
|
-
}),
|
|
76
|
+
}), editorExperiment('platform_editor_controls', 'variant1', {
|
|
77
|
+
exposure: true
|
|
78
|
+
}) &&
|
|
79
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
80
|
+
contentAreaReducedHeaderSpace],
|
|
76
81
|
role: "region",
|
|
77
82
|
"aria-label": props.intl.formatMessage(messages.editableContentLabel),
|
|
78
83
|
ref: contentAreaRef
|
|
@@ -3,7 +3,7 @@ import { css } from '@emotion/react';
|
|
|
3
3
|
import { decisionListSelector, taskListSelector } from '@atlaskit/adf-schema';
|
|
4
4
|
import { tableFullPageEditorStyles } from '@atlaskit/editor-plugins/table/ui/common-styles';
|
|
5
5
|
import { tableMarginFullWidthMode } from '@atlaskit/editor-plugins/table/ui/consts';
|
|
6
|
-
import { akEditorFullWidthLayoutWidth, akEditorGutterPaddingDynamic, akEditorSwoopCubicBezier, akLayoutGutterOffset
|
|
6
|
+
import { FULL_PAGE_EDITOR_TOOLBAR_HEIGHT, akEditorFullWidthLayoutWidth, akEditorGutterPaddingDynamic, akEditorSwoopCubicBezier, akLayoutGutterOffset } from '@atlaskit/editor-shared-styles';
|
|
7
7
|
import { scrollbarStyles } from '@atlaskit/editor-shared-styles/scrollbar';
|
|
8
8
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
9
|
import { createEditorContentStyle } from '../../ContentStyles';
|
|
@@ -210,4 +210,19 @@ export const editorContentGutterStyle = () => {
|
|
|
210
210
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
211
211
|
padding: padding
|
|
212
212
|
});
|
|
213
|
-
};
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
// An additional padding applied at the top of the page reserving space when the primary toolbar is hidden
|
|
216
|
+
// which is used to avoid layout shift when the toolbar is toggled under the editor controls feature
|
|
217
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
218
|
+
export const primaryToolbarReservedSpace = css({
|
|
219
|
+
// extra 1px to account for the bottom border on the toolbar
|
|
220
|
+
paddingTop: `calc(${"var(--ds-space-500, 40px)"} + 1px)`
|
|
221
|
+
});
|
|
222
|
+
|
|
223
|
+
// A reduced top padding to be applied to the content area to compensate for the reserved space at the top
|
|
224
|
+
// of the page when the primary toolbar is hidden under the editor controls feature
|
|
225
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
226
|
+
export const contentAreaReducedHeaderSpace = css({
|
|
227
|
+
paddingTop: "var(--ds-space-400, 32px)"
|
|
228
|
+
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "204.
|
|
2
|
+
export const version = "204.3.0";
|
|
@@ -14,7 +14,7 @@ import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared
|
|
|
14
14
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
15
15
|
import { FullPageContentArea } from './FullPageContentArea';
|
|
16
16
|
import { FullPageToolbar } from './FullPageToolbar';
|
|
17
|
-
import { fullPageEditorWrapper } from './StyledComponents';
|
|
17
|
+
import { fullPageEditorWrapper, primaryToolbarReservedSpace } from './StyledComponents';
|
|
18
18
|
var useShowKeyline = function useShowKeyline(contentAreaRef) {
|
|
19
19
|
var _useState = useState(false),
|
|
20
20
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -98,8 +98,13 @@ export var FullPageEditor = function FullPageEditor(props) {
|
|
|
98
98
|
}
|
|
99
99
|
var popupsBoundariesElement = props.popupsBoundariesElement || (scrollContentContainerRef === null || scrollContentContainerRef === void 0 || (_scrollContentContain = scrollContentContainerRef.current) === null || _scrollContentContain === void 0 ? void 0 : _scrollContentContain.containerArea) || undefined;
|
|
100
100
|
return jsx(ContextPanelWidthProvider, null, jsx("div", {
|
|
101
|
+
css: [
|
|
101
102
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
102
|
-
|
|
103
|
+
fullPageEditorWrapper, isEditorToolbarHidden && editorExperiment('platform_editor_controls', 'variant1', {
|
|
104
|
+
exposure: true
|
|
105
|
+
}) &&
|
|
106
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
107
|
+
primaryToolbarReservedSpace]
|
|
103
108
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
104
109
|
,
|
|
105
110
|
className: "akEditor",
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
1
2
|
/**
|
|
2
3
|
* @jsxRuntime classic
|
|
3
4
|
* @jsx jsx
|
|
@@ -16,7 +17,7 @@ import ClickAreaBlock from '../../Addon/ClickAreaBlock';
|
|
|
16
17
|
import { contentComponentClickWrapper } from '../../Addon/ClickAreaBlock/contentComponentWrapper';
|
|
17
18
|
import { ContextPanel } from '../../ContextPanel';
|
|
18
19
|
import PluginSlot from '../../PluginSlot';
|
|
19
|
-
import { contentArea, contentAreaHeightNoToolbar, contentAreaWrapper, editorContentAreaStyle, editorContentGutterStyle, ScrollContainer, sidebarArea } from './StyledComponents';
|
|
20
|
+
import { contentArea, contentAreaHeightNoToolbar, contentAreaReducedHeaderSpace, contentAreaWrapper, editorContentAreaStyle, editorContentGutterStyle, ScrollContainer, sidebarArea } from './StyledComponents';
|
|
20
21
|
export var CONTENT_AREA_TEST_ID = 'ak-editor-fp-content-area';
|
|
21
22
|
export var EDITOR_CONTAINER = 'ak-editor-container';
|
|
22
23
|
var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
@@ -70,11 +71,14 @@ var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
70
71
|
editorView: props.editorView,
|
|
71
72
|
editorDisabled: props.disabled
|
|
72
73
|
}, jsx("div", {
|
|
73
|
-
|
|
74
|
-
css: editorContentAreaStyle({
|
|
74
|
+
css: [].concat(_toConsumableArray(editorContentAreaStyle({
|
|
75
75
|
fullWidthMode: fullWidthMode,
|
|
76
76
|
layoutMaxWidth: theme.layoutMaxWidth
|
|
77
|
-
}),
|
|
77
|
+
})), [editorExperiment('platform_editor_controls', 'variant1', {
|
|
78
|
+
exposure: true
|
|
79
|
+
}) &&
|
|
80
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
81
|
+
contentAreaReducedHeaderSpace]),
|
|
78
82
|
role: "region",
|
|
79
83
|
"aria-label": props.intl.formatMessage(messages.editableContentLabel),
|
|
80
84
|
ref: contentAreaRef
|
|
@@ -4,7 +4,7 @@ import { css } from '@emotion/react';
|
|
|
4
4
|
import { decisionListSelector, taskListSelector } from '@atlaskit/adf-schema';
|
|
5
5
|
import { tableFullPageEditorStyles } from '@atlaskit/editor-plugins/table/ui/common-styles';
|
|
6
6
|
import { tableMarginFullWidthMode } from '@atlaskit/editor-plugins/table/ui/consts';
|
|
7
|
-
import { akEditorFullWidthLayoutWidth, akEditorGutterPaddingDynamic, akEditorSwoopCubicBezier, akLayoutGutterOffset
|
|
7
|
+
import { FULL_PAGE_EDITOR_TOOLBAR_HEIGHT, akEditorFullWidthLayoutWidth, akEditorGutterPaddingDynamic, akEditorSwoopCubicBezier, akLayoutGutterOffset } from '@atlaskit/editor-shared-styles';
|
|
8
8
|
import { scrollbarStyles } from '@atlaskit/editor-shared-styles/scrollbar';
|
|
9
9
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
10
|
import { createEditorContentStyle } from '../../ContentStyles';
|
|
@@ -213,4 +213,19 @@ export var editorContentGutterStyle = function editorContentGutterStyle() {
|
|
|
213
213
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
214
214
|
padding: padding
|
|
215
215
|
});
|
|
216
|
-
};
|
|
216
|
+
};
|
|
217
|
+
|
|
218
|
+
// An additional padding applied at the top of the page reserving space when the primary toolbar is hidden
|
|
219
|
+
// which is used to avoid layout shift when the toolbar is toggled under the editor controls feature
|
|
220
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
221
|
+
export var primaryToolbarReservedSpace = css({
|
|
222
|
+
// extra 1px to account for the bottom border on the toolbar
|
|
223
|
+
paddingTop: "calc(".concat("var(--ds-space-500, 40px)", " + 1px)")
|
|
224
|
+
});
|
|
225
|
+
|
|
226
|
+
// A reduced top padding to be applied to the content area to compensate for the reserved space at the top
|
|
227
|
+
// of the page when the primary toolbar is hidden under the editor controls feature
|
|
228
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
229
|
+
export var contentAreaReducedHeaderSpace = css({
|
|
230
|
+
paddingTop: "var(--ds-space-400, 32px)"
|
|
231
|
+
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "204.
|
|
2
|
+
export var version = "204.3.0";
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import EditorActions from '../actions';
|
|
2
3
|
import { type EditorNextProps } from '../types/editor-props';
|
|
3
4
|
export type FullPageEditorProps = Pick<EditorNextProps, 'preset' | 'defaultValue' | 'disabled' | 'mentionProvider' | 'performanceTracking' | 'contextIdentifierProvider' | 'searchProvider' | 'activityProvider' | 'annotationProviders' | 'collabEditProvider' | 'collabEdit' | 'taskDecisionProvider' | 'extensionProviders' | 'shouldFocus' | 'quickInsert' | 'secondaryToolbarComponents' | 'featureFlags' | 'primaryToolbarComponents' | 'contextPanel' | 'contentComponents' | 'primaryToolbarIconBefore' | 'sanitizePrivateContent' | '__livePage'> & {
|
|
4
5
|
onChange?: () => void;
|
|
5
|
-
onEditorReady?: () => void;
|
|
6
|
+
onEditorReady?: (editorActions: EditorActions) => void;
|
|
6
7
|
appearance: 'full-page' | 'full-width';
|
|
7
8
|
};
|
|
8
9
|
/**
|
|
@@ -18,3 +18,5 @@ export declare const editorContentAreaStyle: ({ layoutMaxWidth, fullWidthMode, }
|
|
|
18
18
|
fullWidthMode: boolean;
|
|
19
19
|
}) => (false | import("@emotion/react").SerializedStyles)[];
|
|
20
20
|
export declare const editorContentGutterStyle: () => import("@emotion/react").SerializedStyles;
|
|
21
|
+
export declare const primaryToolbarReservedSpace: import("@emotion/react").SerializedStyles;
|
|
22
|
+
export declare const contentAreaReducedHeaderSpace: import("@emotion/react").SerializedStyles;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import EditorActions from '../actions';
|
|
2
3
|
import { type EditorNextProps } from '../types/editor-props';
|
|
3
4
|
export type FullPageEditorProps = Pick<EditorNextProps, 'preset' | 'defaultValue' | 'disabled' | 'mentionProvider' | 'performanceTracking' | 'contextIdentifierProvider' | 'searchProvider' | 'activityProvider' | 'annotationProviders' | 'collabEditProvider' | 'collabEdit' | 'taskDecisionProvider' | 'extensionProviders' | 'shouldFocus' | 'quickInsert' | 'secondaryToolbarComponents' | 'featureFlags' | 'primaryToolbarComponents' | 'contextPanel' | 'contentComponents' | 'primaryToolbarIconBefore' | 'sanitizePrivateContent' | '__livePage'> & {
|
|
4
5
|
onChange?: () => void;
|
|
5
|
-
onEditorReady?: () => void;
|
|
6
|
+
onEditorReady?: (editorActions: EditorActions) => void;
|
|
6
7
|
appearance: 'full-page' | 'full-width';
|
|
7
8
|
};
|
|
8
9
|
/**
|
|
@@ -18,3 +18,5 @@ export declare const editorContentAreaStyle: ({ layoutMaxWidth, fullWidthMode, }
|
|
|
18
18
|
fullWidthMode: boolean;
|
|
19
19
|
}) => (false | import("@emotion/react").SerializedStyles)[];
|
|
20
20
|
export declare const editorContentGutterStyle: () => import("@emotion/react").SerializedStyles;
|
|
21
|
+
export declare const primaryToolbarReservedSpace: import("@emotion/react").SerializedStyles;
|
|
22
|
+
export declare const contentAreaReducedHeaderSpace: import("@emotion/react").SerializedStyles;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "204.
|
|
3
|
+
"version": "204.3.0",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@atlaskit/editor-plugin-quick-insert": "2.0.0",
|
|
51
51
|
"@atlaskit/editor-plugins": "^8.0.0",
|
|
52
52
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
53
|
-
"@atlaskit/editor-shared-styles": "^3.
|
|
53
|
+
"@atlaskit/editor-shared-styles": "^3.4.0",
|
|
54
54
|
"@atlaskit/emoji": "^68.0.0",
|
|
55
55
|
"@atlaskit/icon": "^24.1.0",
|
|
56
56
|
"@atlaskit/media-card": "^79.0.0",
|