@atlaskit/editor-core 225.0.0 → 226.0.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/FullPageContentArea-compiled.compiled.css +1 -0
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea-compiled.js +22 -12
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea-emotion.js +25 -14
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-compiled.js +2 -4
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-emotion.js +2 -4
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea-compiled.compiled.css +1 -0
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea-compiled.js +22 -12
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea-emotion.js +25 -14
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-compiled.js +1 -4
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-emotion.js +1 -4
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea-compiled.compiled.css +1 -0
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea-compiled.js +22 -12
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea-emotion.js +25 -14
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer-compiled.js +2 -4
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer-emotion.js +2 -4
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/types/editor-props.d.ts +0 -1
- package/dist/types/ui/EditorContentContainer/EditorContentContainer-compiled.d.ts +0 -1
- package/dist/types/ui/EditorContentContainer/EditorContentContainer-emotion.d.ts +0 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 226.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [`a39e0d152db0c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a39e0d152db0c) -
|
|
8
|
+
Remove the `UNSAFE_containLayout` prop from `EditorProps` and the `UNSAFE_outside` slot from
|
|
9
|
+
`BeforeAndAfterContentComponents`.
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 225.0.0
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -65,6 +65,7 @@
|
|
|
65
65
|
._n3tdidpf{padding-bottom:0}
|
|
66
66
|
._n3tdoahv{padding-bottom:var(--ds-space-600,3pc)}
|
|
67
67
|
._njlp131u{contain:layout style inline-size}
|
|
68
|
+
._njlp3xnj{contain:layout size}
|
|
68
69
|
._ongaglyw .ProseMirror>h4{clear:none}
|
|
69
70
|
._otyr1wug{margin-bottom:auto}
|
|
70
71
|
._otyridpf{margin-bottom:0}
|
|
@@ -36,6 +36,13 @@ var AK_NESTED_DND_GUTTER_OFFSET = 8;
|
|
|
36
36
|
var getTotalPadding = function getTotalPadding() {
|
|
37
37
|
return (0, _editorSharedStyles.akEditorGutterPaddingDynamic)() * 2;
|
|
38
38
|
};
|
|
39
|
+
|
|
40
|
+
// Isolates the scroll container's layout and size from the rest of the page under
|
|
41
|
+
// platform_editor_contain_layout. Because of contain: size wrapper
|
|
42
|
+
// must take its height from the parent rather than from the contained content.
|
|
43
|
+
var containLayoutStyles = {
|
|
44
|
+
wrapper: "_njlp3xnj _4t3i1osq"
|
|
45
|
+
};
|
|
39
46
|
var compiledStyles = {
|
|
40
47
|
contentAreaWrapper: "_1bsb1osq _7cca15wb _1f38dez1 _njlp131u",
|
|
41
48
|
sidebarArea: "_4t3i1osq _vchhusvi _1wpzesu3 _1hgw1wug _1t1q1if8 _uj9widpf _13hh1y6m",
|
|
@@ -97,15 +104,7 @@ var Content = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
97
104
|
var isMarkdownModeExperimentEnabled = (0, _expValEqualsNoExposure.expValEqualsNoExposure)('cc-markdown-mode', 'isEnabled', true);
|
|
98
105
|
var shouldHideProseMirrorForMarkdownMode = isMarkdownModeExperimentEnabled && markdownPluginCurrentView !== 'preview' && markdownPluginCurrentIsMarkdownMode;
|
|
99
106
|
var shouldHideScrollGutterForMarkdownMode = isMarkdownModeExperimentEnabled && markdownPluginCurrentIsMarkdownMode;
|
|
100
|
-
|
|
101
|
-
"data-testid": CONTENT_AREA_TEST_ID,
|
|
102
|
-
ref: containerRef,
|
|
103
|
-
className: (0, _runtime.ax)([compiledStyles.contentAreaNew, props.isEditorToolbarHidden && compiledStyles.contentAreaHeightNoToolbar])
|
|
104
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
105
|
-
"data-testid": EDITOR_CONTAINER,
|
|
106
|
-
"data-editor-container": 'true',
|
|
107
|
-
className: (0, _runtime.ax)([compiledStyles.contentAreaWrapper, shouldHideProseMirrorForMarkdownMode && compiledStyles.markdownModeContainerBackgroundStyle])
|
|
108
|
-
}, !!props.customContentComponents && 'UNSAFE_outside' in props.customContentComponents ? (0, _contentComponentWrapper.contentComponentClickWrapper)(props.customContentComponents.UNSAFE_outside) : null, /*#__PURE__*/_react.default.createElement(_EditorContentContainer.default
|
|
107
|
+
var content = /*#__PURE__*/_react.default.createElement(_EditorContentContainer.default
|
|
109
108
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
110
109
|
, {
|
|
111
110
|
className: "fabric-editor-popup-scroll-parent",
|
|
@@ -115,8 +114,7 @@ var Content = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
115
114
|
isScrollable: true,
|
|
116
115
|
appearance: props.appearance,
|
|
117
116
|
contentMode: props.contentMode,
|
|
118
|
-
useStandardNodeWidth: useStandardNodeWidth
|
|
119
|
-
UNSAFE_containLayout: props.UNSAFE_containLayout
|
|
117
|
+
useStandardNodeWidth: useStandardNodeWidth
|
|
120
118
|
}, /*#__PURE__*/_react.default.createElement(_ClickAreaBlock.ClickAreaBlock, {
|
|
121
119
|
editorView: props.editorView,
|
|
122
120
|
editorDisabled: props.disabled
|
|
@@ -175,7 +173,19 @@ var Content = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
175
173
|
},
|
|
176
174
|
"data-vc": "scroll-gutter",
|
|
177
175
|
className: (0, _runtime.ax)([shouldHideScrollGutterForMarkdownMode && compiledStyles.hideEditorScrollGutterStyle])
|
|
178
|
-
}))))))
|
|
176
|
+
}))))));
|
|
177
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
178
|
+
"data-testid": CONTENT_AREA_TEST_ID,
|
|
179
|
+
ref: containerRef,
|
|
180
|
+
className: (0, _runtime.ax)([compiledStyles.contentAreaNew, props.isEditorToolbarHidden && compiledStyles.contentAreaHeightNoToolbar])
|
|
181
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
182
|
+
"data-testid": EDITOR_CONTAINER,
|
|
183
|
+
"data-editor-container": 'true',
|
|
184
|
+
className: (0, _runtime.ax)([compiledStyles.contentAreaWrapper, shouldHideProseMirrorForMarkdownMode && compiledStyles.markdownModeContainerBackgroundStyle])
|
|
185
|
+
}, props.UNSAFE_containLayout ? /*#__PURE__*/_react.default.createElement("div", {
|
|
186
|
+
"data-testid": "editor-contain-size-and-layout-wrapper",
|
|
187
|
+
className: (0, _runtime.ax)([containLayoutStyles.wrapper])
|
|
188
|
+
}, content) : content), /*#__PURE__*/_react.default.createElement("div", {
|
|
179
189
|
className: (0, _runtime.ax)([compiledStyles.sidebarArea])
|
|
180
190
|
}, props.contextPanel || /*#__PURE__*/_react.default.createElement(_ContextPanel.ContextPanel, {
|
|
181
191
|
editorAPI: props.editorAPI,
|
|
@@ -46,6 +46,14 @@ var AK_NESTED_DND_GUTTER_OFFSET = 8;
|
|
|
46
46
|
var getTotalPadding = function getTotalPadding() {
|
|
47
47
|
return (0, _editorSharedStyles.akEditorGutterPaddingDynamic)() * 2;
|
|
48
48
|
};
|
|
49
|
+
|
|
50
|
+
// Isolates the scroll container's layout and size from the rest of the page under
|
|
51
|
+
// platform_editor_contain_layout. Because of contain: size wrapper
|
|
52
|
+
// must take its height from the parent rather than from the contained content.
|
|
53
|
+
var containStrictWrapperStyles = (0, _react2.css)({
|
|
54
|
+
contain: 'layout size',
|
|
55
|
+
height: '100%'
|
|
56
|
+
});
|
|
49
57
|
var editorContentAreaProsemirrorStyle = (0, _react2.css)({
|
|
50
58
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
51
59
|
'& .ProseMirror': (0, _defineProperty2.default)((0, _defineProperty2.default)({
|
|
@@ -312,17 +320,7 @@ var Content = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
312
320
|
var isMarkdownModeExperimentEnabled = (0, _expValEqualsNoExposure.expValEqualsNoExposure)('cc-markdown-mode', 'isEnabled', true);
|
|
313
321
|
var shouldHideProseMirrorForMarkdownMode = isMarkdownModeExperimentEnabled && markdownPluginCurrentView !== 'preview' && markdownPluginCurrentIsMarkdownMode;
|
|
314
322
|
var shouldHideScrollGutterForMarkdownMode = isMarkdownModeExperimentEnabled && markdownPluginCurrentIsMarkdownMode;
|
|
315
|
-
|
|
316
|
-
css: [contentAreaNew, props.isEditorToolbarHidden && contentAreaHeightNoToolbar],
|
|
317
|
-
"data-testid": CONTENT_AREA_TEST_ID,
|
|
318
|
-
ref: containerRef
|
|
319
|
-
}, (0, _react2.jsx)("div", {
|
|
320
|
-
css: [
|
|
321
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
322
|
-
_StyledComponents.contentAreaWrapper, shouldHideProseMirrorForMarkdownMode && markdownModeContainerBackgroundStyle],
|
|
323
|
-
"data-testid": EDITOR_CONTAINER,
|
|
324
|
-
"data-editor-container": 'true'
|
|
325
|
-
}, !!props.customContentComponents && 'UNSAFE_outside' in props.customContentComponents ? (0, _contentComponentWrapper.contentComponentClickWrapper)(props.customContentComponents.UNSAFE_outside) : null, (0, _react2.jsx)(_EditorContentContainer.default
|
|
323
|
+
var content = (0, _react2.jsx)(_EditorContentContainer.default
|
|
326
324
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
327
325
|
, {
|
|
328
326
|
className: "fabric-editor-popup-scroll-parent",
|
|
@@ -332,8 +330,7 @@ var Content = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
332
330
|
isScrollable: true,
|
|
333
331
|
appearance: props.appearance,
|
|
334
332
|
contentMode: props.contentMode,
|
|
335
|
-
useStandardNodeWidth: useStandardNodeWidth
|
|
336
|
-
UNSAFE_containLayout: props.UNSAFE_containLayout
|
|
333
|
+
useStandardNodeWidth: useStandardNodeWidth
|
|
337
334
|
}, (0, _react2.jsx)(_ClickAreaBlock.default, {
|
|
338
335
|
editorView: props.editorView,
|
|
339
336
|
editorDisabled: props.disabled
|
|
@@ -401,7 +398,21 @@ var Content = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
401
398
|
paddingBottom: "".concat((_allowScrollGutter$gu2 = allowScrollGutter.gutterSize) !== null && _allowScrollGutter$gu2 !== void 0 ? _allowScrollGutter$gu2 : '120', "px")
|
|
402
399
|
},
|
|
403
400
|
"data-vc": "scroll-gutter"
|
|
404
|
-
}))))))
|
|
401
|
+
}))))));
|
|
402
|
+
return (0, _react2.jsx)("div", {
|
|
403
|
+
css: [contentAreaNew, props.isEditorToolbarHidden && contentAreaHeightNoToolbar],
|
|
404
|
+
"data-testid": CONTENT_AREA_TEST_ID,
|
|
405
|
+
ref: containerRef
|
|
406
|
+
}, (0, _react2.jsx)("div", {
|
|
407
|
+
css: [
|
|
408
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
409
|
+
_StyledComponents.contentAreaWrapper, shouldHideProseMirrorForMarkdownMode && markdownModeContainerBackgroundStyle],
|
|
410
|
+
"data-testid": EDITOR_CONTAINER,
|
|
411
|
+
"data-editor-container": 'true'
|
|
412
|
+
}, props.UNSAFE_containLayout ? (0, _react2.jsx)("div", {
|
|
413
|
+
"data-testid": "editor-contain-size-and-layout-wrapper",
|
|
414
|
+
css: containStrictWrapperStyles
|
|
415
|
+
}, content) : content), (0, _react2.jsx)("div", {
|
|
405
416
|
css: _StyledComponents.sidebarArea
|
|
406
417
|
}, props.contextPanel || (0, _react2.jsx)(_ContextPanel.ContextPanel, {
|
|
407
418
|
editorAPI: props.editorAPI,
|
|
@@ -396,16 +396,14 @@ var EditorContentContainerCompiled = exports.EditorContentContainerCompiled = /*
|
|
|
396
396
|
// root div in editor-internal.tsx and inherited via the CSS cascade — do not set it here.
|
|
397
397
|
// For the legacy path, compute it from the Emotion theme as before.
|
|
398
398
|
var style = _react.default.useMemo(function () {
|
|
399
|
-
return _objectSpread(_objectSpread(
|
|
400
|
-
contain: 'strict'
|
|
401
|
-
} : {}), {}, {
|
|
399
|
+
return _objectSpread(_objectSpread({
|
|
402
400
|
'--ak-editor--table-overflow-shadow': tableOverflowShadow
|
|
403
401
|
}, _tableCellBackgroundForCompiled.tableCellBackgroundColorVariablesForCompiled), !(0, _experiments.editorExperiment)('platform_editor_preview_panel_responsiveness', true, {
|
|
404
402
|
exposure: true
|
|
405
403
|
}) && {
|
|
406
404
|
'--ak-editor--large-gutter-padding': "".concat((0, _editorSharedStyles.akEditorGutterPaddingDynamic)(), "px")
|
|
407
405
|
});
|
|
408
|
-
}, [tableOverflowShadow
|
|
406
|
+
}, [tableOverflowShadow]);
|
|
409
407
|
var browser = (0, _browser.getBrowserInfo)();
|
|
410
408
|
|
|
411
409
|
// Evaluate the block-spacing experiment once per render.
|
|
@@ -141,9 +141,7 @@ var EditorContentContainerEmotion = exports.EditorContentContainerEmotion = /*#_
|
|
|
141
141
|
// root div in editor-internal.tsx and inherited via the CSS cascade — do not set it here.
|
|
142
142
|
// For the legacy path, compute it from the Emotion theme as before.
|
|
143
143
|
var style = _react.default.useMemo(function () {
|
|
144
|
-
return _objectSpread(_objectSpread(
|
|
145
|
-
contain: 'strict'
|
|
146
|
-
} : {}), !(0, _expValEquals.expValEquals)('platform_editor_core_non_ecc_static_css', 'isEnabled', true) && {
|
|
144
|
+
return _objectSpread(_objectSpread({}, !(0, _expValEquals.expValEquals)('platform_editor_core_non_ecc_static_css', 'isEnabled', true) && {
|
|
147
145
|
'--ak-editor-base-font-size': "".concat((0, _editorSharedStyles.editorFontSize)({
|
|
148
146
|
theme: theme
|
|
149
147
|
}), "px")
|
|
@@ -152,7 +150,7 @@ var EditorContentContainerEmotion = exports.EditorContentContainerEmotion = /*#_
|
|
|
152
150
|
}) && {
|
|
153
151
|
'--ak-editor--large-gutter-padding': "".concat((0, _editorSharedStyles.akEditorGutterPaddingDynamic)(), "px")
|
|
154
152
|
});
|
|
155
|
-
}, [theme
|
|
153
|
+
}, [theme]);
|
|
156
154
|
var browser = (0, _browser.getBrowserInfo)();
|
|
157
155
|
|
|
158
156
|
// Evaluate the block-spacing experiment once per render.
|
|
@@ -6,4 +6,4 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.version = exports.name = void 0;
|
|
7
7
|
var name = exports.name = "@atlaskit/editor-core";
|
|
8
8
|
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
9
|
-
var version = exports.version = "
|
|
9
|
+
var version = exports.version = "225.0.0";
|
|
@@ -65,6 +65,7 @@
|
|
|
65
65
|
._n3tdidpf{padding-bottom:0}
|
|
66
66
|
._n3tdoahv{padding-bottom:var(--ds-space-600,3pc)}
|
|
67
67
|
._njlp131u{contain:layout style inline-size}
|
|
68
|
+
._njlp3xnj{contain:layout size}
|
|
68
69
|
._ongaglyw .ProseMirror>h4{clear:none}
|
|
69
70
|
._otyr1wug{margin-bottom:auto}
|
|
70
71
|
._otyridpf{margin-bottom:0}
|
|
@@ -27,6 +27,13 @@ const akLayoutGutterOffset = 12;
|
|
|
27
27
|
const SWOOP_ANIMATION = `0.5s ${akEditorSwoopCubicBezier}`;
|
|
28
28
|
const AK_NESTED_DND_GUTTER_OFFSET = 8;
|
|
29
29
|
const getTotalPadding = () => akEditorGutterPaddingDynamic() * 2;
|
|
30
|
+
|
|
31
|
+
// Isolates the scroll container's layout and size from the rest of the page under
|
|
32
|
+
// platform_editor_contain_layout. Because of contain: size wrapper
|
|
33
|
+
// must take its height from the parent rather than from the contained content.
|
|
34
|
+
const containLayoutStyles = {
|
|
35
|
+
wrapper: "_njlp3xnj _4t3i1osq"
|
|
36
|
+
};
|
|
30
37
|
const compiledStyles = {
|
|
31
38
|
contentAreaWrapper: "_1bsb1osq _7cca15wb _1f38dez1 _njlp131u",
|
|
32
39
|
sidebarArea: "_4t3i1osq _vchhusvi _1wpzesu3 _1hgw1wug _1t1q1if8 _uj9widpf _13hh1y6m",
|
|
@@ -86,15 +93,7 @@ const Content = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
86
93
|
const isMarkdownModeExperimentEnabled = expValEqualsNoExposure('cc-markdown-mode', 'isEnabled', true);
|
|
87
94
|
const shouldHideProseMirrorForMarkdownMode = isMarkdownModeExperimentEnabled && markdownPluginCurrentView !== 'preview' && markdownPluginCurrentIsMarkdownMode;
|
|
88
95
|
const shouldHideScrollGutterForMarkdownMode = isMarkdownModeExperimentEnabled && markdownPluginCurrentIsMarkdownMode;
|
|
89
|
-
|
|
90
|
-
"data-testid": CONTENT_AREA_TEST_ID,
|
|
91
|
-
ref: containerRef,
|
|
92
|
-
className: ax([compiledStyles.contentAreaNew, props.isEditorToolbarHidden && compiledStyles.contentAreaHeightNoToolbar])
|
|
93
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
94
|
-
"data-testid": EDITOR_CONTAINER,
|
|
95
|
-
"data-editor-container": 'true',
|
|
96
|
-
className: ax([compiledStyles.contentAreaWrapper, shouldHideProseMirrorForMarkdownMode && compiledStyles.markdownModeContainerBackgroundStyle])
|
|
97
|
-
}, !!props.customContentComponents && 'UNSAFE_outside' in props.customContentComponents ? contentComponentClickWrapper(props.customContentComponents.UNSAFE_outside) : null, /*#__PURE__*/React.createElement(EditorContentContainer
|
|
96
|
+
const content = /*#__PURE__*/React.createElement(EditorContentContainer
|
|
98
97
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
99
98
|
, {
|
|
100
99
|
className: "fabric-editor-popup-scroll-parent",
|
|
@@ -104,8 +103,7 @@ const Content = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
104
103
|
isScrollable: true,
|
|
105
104
|
appearance: props.appearance,
|
|
106
105
|
contentMode: props.contentMode,
|
|
107
|
-
useStandardNodeWidth: useStandardNodeWidth
|
|
108
|
-
UNSAFE_containLayout: props.UNSAFE_containLayout
|
|
106
|
+
useStandardNodeWidth: useStandardNodeWidth
|
|
109
107
|
}, /*#__PURE__*/React.createElement(ClickAreaBlock, {
|
|
110
108
|
editorView: props.editorView,
|
|
111
109
|
editorDisabled: props.disabled
|
|
@@ -164,7 +162,19 @@ const Content = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
164
162
|
},
|
|
165
163
|
"data-vc": "scroll-gutter",
|
|
166
164
|
className: ax([shouldHideScrollGutterForMarkdownMode && compiledStyles.hideEditorScrollGutterStyle])
|
|
167
|
-
}))))))
|
|
165
|
+
}))))));
|
|
166
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
167
|
+
"data-testid": CONTENT_AREA_TEST_ID,
|
|
168
|
+
ref: containerRef,
|
|
169
|
+
className: ax([compiledStyles.contentAreaNew, props.isEditorToolbarHidden && compiledStyles.contentAreaHeightNoToolbar])
|
|
170
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
171
|
+
"data-testid": EDITOR_CONTAINER,
|
|
172
|
+
"data-editor-container": 'true',
|
|
173
|
+
className: ax([compiledStyles.contentAreaWrapper, shouldHideProseMirrorForMarkdownMode && compiledStyles.markdownModeContainerBackgroundStyle])
|
|
174
|
+
}, props.UNSAFE_containLayout ? /*#__PURE__*/React.createElement("div", {
|
|
175
|
+
"data-testid": "editor-contain-size-and-layout-wrapper",
|
|
176
|
+
className: ax([containLayoutStyles.wrapper])
|
|
177
|
+
}, content) : content), /*#__PURE__*/React.createElement("div", {
|
|
168
178
|
className: ax([compiledStyles.sidebarArea])
|
|
169
179
|
}, props.contextPanel || /*#__PURE__*/React.createElement(ContextPanel, {
|
|
170
180
|
editorAPI: props.editorAPI,
|
|
@@ -33,6 +33,14 @@ const akLayoutGutterOffset = 12;
|
|
|
33
33
|
const SWOOP_ANIMATION = `0.5s ${akEditorSwoopCubicBezier}`;
|
|
34
34
|
const AK_NESTED_DND_GUTTER_OFFSET = 8;
|
|
35
35
|
const getTotalPadding = () => akEditorGutterPaddingDynamic() * 2;
|
|
36
|
+
|
|
37
|
+
// Isolates the scroll container's layout and size from the rest of the page under
|
|
38
|
+
// platform_editor_contain_layout. Because of contain: size wrapper
|
|
39
|
+
// must take its height from the parent rather than from the contained content.
|
|
40
|
+
const containStrictWrapperStyles = css({
|
|
41
|
+
contain: 'layout size',
|
|
42
|
+
height: '100%'
|
|
43
|
+
});
|
|
36
44
|
const editorContentAreaProsemirrorStyle = css({
|
|
37
45
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
38
46
|
'& .ProseMirror': {
|
|
@@ -304,17 +312,7 @@ const Content = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
304
312
|
const isMarkdownModeExperimentEnabled = expValEqualsNoExposure('cc-markdown-mode', 'isEnabled', true);
|
|
305
313
|
const shouldHideProseMirrorForMarkdownMode = isMarkdownModeExperimentEnabled && markdownPluginCurrentView !== 'preview' && markdownPluginCurrentIsMarkdownMode;
|
|
306
314
|
const shouldHideScrollGutterForMarkdownMode = isMarkdownModeExperimentEnabled && markdownPluginCurrentIsMarkdownMode;
|
|
307
|
-
|
|
308
|
-
css: [contentAreaNew, props.isEditorToolbarHidden && contentAreaHeightNoToolbar],
|
|
309
|
-
"data-testid": CONTENT_AREA_TEST_ID,
|
|
310
|
-
ref: containerRef
|
|
311
|
-
}, jsx("div", {
|
|
312
|
-
css: [
|
|
313
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
314
|
-
contentAreaWrapper, shouldHideProseMirrorForMarkdownMode && markdownModeContainerBackgroundStyle],
|
|
315
|
-
"data-testid": EDITOR_CONTAINER,
|
|
316
|
-
"data-editor-container": 'true'
|
|
317
|
-
}, !!props.customContentComponents && 'UNSAFE_outside' in props.customContentComponents ? contentComponentClickWrapper(props.customContentComponents.UNSAFE_outside) : null, jsx(EditorContentContainer
|
|
315
|
+
const content = jsx(EditorContentContainer
|
|
318
316
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
319
317
|
, {
|
|
320
318
|
className: "fabric-editor-popup-scroll-parent",
|
|
@@ -324,8 +322,7 @@ const Content = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
324
322
|
isScrollable: true,
|
|
325
323
|
appearance: props.appearance,
|
|
326
324
|
contentMode: props.contentMode,
|
|
327
|
-
useStandardNodeWidth: useStandardNodeWidth
|
|
328
|
-
UNSAFE_containLayout: props.UNSAFE_containLayout
|
|
325
|
+
useStandardNodeWidth: useStandardNodeWidth
|
|
329
326
|
}, jsx(ClickAreaBlock, {
|
|
330
327
|
editorView: props.editorView,
|
|
331
328
|
editorDisabled: props.disabled
|
|
@@ -393,7 +390,21 @@ const Content = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
393
390
|
paddingBottom: `${(_allowScrollGutter$gu2 = allowScrollGutter.gutterSize) !== null && _allowScrollGutter$gu2 !== void 0 ? _allowScrollGutter$gu2 : '120'}px`
|
|
394
391
|
},
|
|
395
392
|
"data-vc": "scroll-gutter"
|
|
396
|
-
}))))))
|
|
393
|
+
}))))));
|
|
394
|
+
return jsx("div", {
|
|
395
|
+
css: [contentAreaNew, props.isEditorToolbarHidden && contentAreaHeightNoToolbar],
|
|
396
|
+
"data-testid": CONTENT_AREA_TEST_ID,
|
|
397
|
+
ref: containerRef
|
|
398
|
+
}, jsx("div", {
|
|
399
|
+
css: [
|
|
400
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
401
|
+
contentAreaWrapper, shouldHideProseMirrorForMarkdownMode && markdownModeContainerBackgroundStyle],
|
|
402
|
+
"data-testid": EDITOR_CONTAINER,
|
|
403
|
+
"data-editor-container": 'true'
|
|
404
|
+
}, props.UNSAFE_containLayout ? jsx("div", {
|
|
405
|
+
"data-testid": "editor-contain-size-and-layout-wrapper",
|
|
406
|
+
css: containStrictWrapperStyles
|
|
407
|
+
}, content) : content), jsx("div", {
|
|
397
408
|
css: sidebarArea
|
|
398
409
|
}, props.contextPanel || jsx(ContextPanel, {
|
|
399
410
|
editorAPI: props.editorAPI,
|
|
@@ -450,9 +450,6 @@ export const EditorContentContainerCompiled = /*#__PURE__*/React.forwardRef((pro
|
|
|
450
450
|
// root div in editor-internal.tsx and inherited via the CSS cascade — do not set it here.
|
|
451
451
|
// For the legacy path, compute it from the Emotion theme as before.
|
|
452
452
|
const style = React.useMemo(() => ({
|
|
453
|
-
...(props.UNSAFE_containLayout ? {
|
|
454
|
-
contain: 'strict'
|
|
455
|
-
} : {}),
|
|
456
453
|
'--ak-editor--table-overflow-shadow': tableOverflowShadow,
|
|
457
454
|
...tableCellBackgroundColorVariablesForCompiled,
|
|
458
455
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -461,7 +458,7 @@ export const EditorContentContainerCompiled = /*#__PURE__*/React.forwardRef((pro
|
|
|
461
458
|
}) && {
|
|
462
459
|
'--ak-editor--large-gutter-padding': `${akEditorGutterPaddingDynamic()}px`
|
|
463
460
|
})
|
|
464
|
-
}), [tableOverflowShadow
|
|
461
|
+
}), [tableOverflowShadow]);
|
|
465
462
|
const browser = getBrowserInfo();
|
|
466
463
|
|
|
467
464
|
// Evaluate the block-spacing experiment once per render.
|
|
@@ -140,9 +140,6 @@ export const EditorContentContainerEmotion = /*#__PURE__*/React.forwardRef((prop
|
|
|
140
140
|
// root div in editor-internal.tsx and inherited via the CSS cascade — do not set it here.
|
|
141
141
|
// For the legacy path, compute it from the Emotion theme as before.
|
|
142
142
|
const style = React.useMemo(() => ({
|
|
143
|
-
...(props.UNSAFE_containLayout ? {
|
|
144
|
-
contain: 'strict'
|
|
145
|
-
} : {}),
|
|
146
143
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
147
144
|
...(!expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true) && {
|
|
148
145
|
'--ak-editor-base-font-size': `${editorFontSize({
|
|
@@ -155,7 +152,7 @@ export const EditorContentContainerEmotion = /*#__PURE__*/React.forwardRef((prop
|
|
|
155
152
|
}) && {
|
|
156
153
|
'--ak-editor--large-gutter-padding': `${akEditorGutterPaddingDynamic()}px`
|
|
157
154
|
})
|
|
158
|
-
}), [theme
|
|
155
|
+
}), [theme]);
|
|
159
156
|
const browser = getBrowserInfo();
|
|
160
157
|
|
|
161
158
|
// Evaluate the block-spacing experiment once per render.
|
|
@@ -65,6 +65,7 @@
|
|
|
65
65
|
._n3tdidpf{padding-bottom:0}
|
|
66
66
|
._n3tdoahv{padding-bottom:var(--ds-space-600,3pc)}
|
|
67
67
|
._njlp131u{contain:layout style inline-size}
|
|
68
|
+
._njlp3xnj{contain:layout size}
|
|
68
69
|
._ongaglyw .ProseMirror>h4{clear:none}
|
|
69
70
|
._otyr1wug{margin-bottom:auto}
|
|
70
71
|
._otyridpf{margin-bottom:0}
|
|
@@ -29,6 +29,13 @@ var AK_NESTED_DND_GUTTER_OFFSET = 8;
|
|
|
29
29
|
var getTotalPadding = function getTotalPadding() {
|
|
30
30
|
return akEditorGutterPaddingDynamic() * 2;
|
|
31
31
|
};
|
|
32
|
+
|
|
33
|
+
// Isolates the scroll container's layout and size from the rest of the page under
|
|
34
|
+
// platform_editor_contain_layout. Because of contain: size wrapper
|
|
35
|
+
// must take its height from the parent rather than from the contained content.
|
|
36
|
+
var containLayoutStyles = {
|
|
37
|
+
wrapper: "_njlp3xnj _4t3i1osq"
|
|
38
|
+
};
|
|
32
39
|
var compiledStyles = {
|
|
33
40
|
contentAreaWrapper: "_1bsb1osq _7cca15wb _1f38dez1 _njlp131u",
|
|
34
41
|
sidebarArea: "_4t3i1osq _vchhusvi _1wpzesu3 _1hgw1wug _1t1q1if8 _uj9widpf _13hh1y6m",
|
|
@@ -90,15 +97,7 @@ var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
90
97
|
var isMarkdownModeExperimentEnabled = expValEqualsNoExposure('cc-markdown-mode', 'isEnabled', true);
|
|
91
98
|
var shouldHideProseMirrorForMarkdownMode = isMarkdownModeExperimentEnabled && markdownPluginCurrentView !== 'preview' && markdownPluginCurrentIsMarkdownMode;
|
|
92
99
|
var shouldHideScrollGutterForMarkdownMode = isMarkdownModeExperimentEnabled && markdownPluginCurrentIsMarkdownMode;
|
|
93
|
-
|
|
94
|
-
"data-testid": CONTENT_AREA_TEST_ID,
|
|
95
|
-
ref: containerRef,
|
|
96
|
-
className: ax([compiledStyles.contentAreaNew, props.isEditorToolbarHidden && compiledStyles.contentAreaHeightNoToolbar])
|
|
97
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
98
|
-
"data-testid": EDITOR_CONTAINER,
|
|
99
|
-
"data-editor-container": 'true',
|
|
100
|
-
className: ax([compiledStyles.contentAreaWrapper, shouldHideProseMirrorForMarkdownMode && compiledStyles.markdownModeContainerBackgroundStyle])
|
|
101
|
-
}, !!props.customContentComponents && 'UNSAFE_outside' in props.customContentComponents ? contentComponentClickWrapper(props.customContentComponents.UNSAFE_outside) : null, /*#__PURE__*/React.createElement(EditorContentContainer
|
|
100
|
+
var content = /*#__PURE__*/React.createElement(EditorContentContainer
|
|
102
101
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
103
102
|
, {
|
|
104
103
|
className: "fabric-editor-popup-scroll-parent",
|
|
@@ -108,8 +107,7 @@ var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
108
107
|
isScrollable: true,
|
|
109
108
|
appearance: props.appearance,
|
|
110
109
|
contentMode: props.contentMode,
|
|
111
|
-
useStandardNodeWidth: useStandardNodeWidth
|
|
112
|
-
UNSAFE_containLayout: props.UNSAFE_containLayout
|
|
110
|
+
useStandardNodeWidth: useStandardNodeWidth
|
|
113
111
|
}, /*#__PURE__*/React.createElement(ClickAreaBlock, {
|
|
114
112
|
editorView: props.editorView,
|
|
115
113
|
editorDisabled: props.disabled
|
|
@@ -168,7 +166,19 @@ var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
168
166
|
},
|
|
169
167
|
"data-vc": "scroll-gutter",
|
|
170
168
|
className: ax([shouldHideScrollGutterForMarkdownMode && compiledStyles.hideEditorScrollGutterStyle])
|
|
171
|
-
}))))))
|
|
169
|
+
}))))));
|
|
170
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
171
|
+
"data-testid": CONTENT_AREA_TEST_ID,
|
|
172
|
+
ref: containerRef,
|
|
173
|
+
className: ax([compiledStyles.contentAreaNew, props.isEditorToolbarHidden && compiledStyles.contentAreaHeightNoToolbar])
|
|
174
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
175
|
+
"data-testid": EDITOR_CONTAINER,
|
|
176
|
+
"data-editor-container": 'true',
|
|
177
|
+
className: ax([compiledStyles.contentAreaWrapper, shouldHideProseMirrorForMarkdownMode && compiledStyles.markdownModeContainerBackgroundStyle])
|
|
178
|
+
}, props.UNSAFE_containLayout ? /*#__PURE__*/React.createElement("div", {
|
|
179
|
+
"data-testid": "editor-contain-size-and-layout-wrapper",
|
|
180
|
+
className: ax([containLayoutStyles.wrapper])
|
|
181
|
+
}, content) : content), /*#__PURE__*/React.createElement("div", {
|
|
172
182
|
className: ax([compiledStyles.sidebarArea])
|
|
173
183
|
}, props.contextPanel || /*#__PURE__*/React.createElement(ContextPanel, {
|
|
174
184
|
editorAPI: props.editorAPI,
|
|
@@ -36,6 +36,14 @@ var AK_NESTED_DND_GUTTER_OFFSET = 8;
|
|
|
36
36
|
var getTotalPadding = function getTotalPadding() {
|
|
37
37
|
return akEditorGutterPaddingDynamic() * 2;
|
|
38
38
|
};
|
|
39
|
+
|
|
40
|
+
// Isolates the scroll container's layout and size from the rest of the page under
|
|
41
|
+
// platform_editor_contain_layout. Because of contain: size wrapper
|
|
42
|
+
// must take its height from the parent rather than from the contained content.
|
|
43
|
+
var containStrictWrapperStyles = css({
|
|
44
|
+
contain: 'layout size',
|
|
45
|
+
height: '100%'
|
|
46
|
+
});
|
|
39
47
|
var editorContentAreaProsemirrorStyle = css({
|
|
40
48
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
41
49
|
'& .ProseMirror': _defineProperty(_defineProperty({
|
|
@@ -302,17 +310,7 @@ var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
302
310
|
var isMarkdownModeExperimentEnabled = expValEqualsNoExposure('cc-markdown-mode', 'isEnabled', true);
|
|
303
311
|
var shouldHideProseMirrorForMarkdownMode = isMarkdownModeExperimentEnabled && markdownPluginCurrentView !== 'preview' && markdownPluginCurrentIsMarkdownMode;
|
|
304
312
|
var shouldHideScrollGutterForMarkdownMode = isMarkdownModeExperimentEnabled && markdownPluginCurrentIsMarkdownMode;
|
|
305
|
-
|
|
306
|
-
css: [contentAreaNew, props.isEditorToolbarHidden && contentAreaHeightNoToolbar],
|
|
307
|
-
"data-testid": CONTENT_AREA_TEST_ID,
|
|
308
|
-
ref: containerRef
|
|
309
|
-
}, jsx("div", {
|
|
310
|
-
css: [
|
|
311
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
312
|
-
contentAreaWrapper, shouldHideProseMirrorForMarkdownMode && markdownModeContainerBackgroundStyle],
|
|
313
|
-
"data-testid": EDITOR_CONTAINER,
|
|
314
|
-
"data-editor-container": 'true'
|
|
315
|
-
}, !!props.customContentComponents && 'UNSAFE_outside' in props.customContentComponents ? contentComponentClickWrapper(props.customContentComponents.UNSAFE_outside) : null, jsx(EditorContentContainer
|
|
313
|
+
var content = jsx(EditorContentContainer
|
|
316
314
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
317
315
|
, {
|
|
318
316
|
className: "fabric-editor-popup-scroll-parent",
|
|
@@ -322,8 +320,7 @@ var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
322
320
|
isScrollable: true,
|
|
323
321
|
appearance: props.appearance,
|
|
324
322
|
contentMode: props.contentMode,
|
|
325
|
-
useStandardNodeWidth: useStandardNodeWidth
|
|
326
|
-
UNSAFE_containLayout: props.UNSAFE_containLayout
|
|
323
|
+
useStandardNodeWidth: useStandardNodeWidth
|
|
327
324
|
}, jsx(ClickAreaBlock, {
|
|
328
325
|
editorView: props.editorView,
|
|
329
326
|
editorDisabled: props.disabled
|
|
@@ -391,7 +388,21 @@ var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
391
388
|
paddingBottom: "".concat((_allowScrollGutter$gu2 = allowScrollGutter.gutterSize) !== null && _allowScrollGutter$gu2 !== void 0 ? _allowScrollGutter$gu2 : '120', "px")
|
|
392
389
|
},
|
|
393
390
|
"data-vc": "scroll-gutter"
|
|
394
|
-
}))))))
|
|
391
|
+
}))))));
|
|
392
|
+
return jsx("div", {
|
|
393
|
+
css: [contentAreaNew, props.isEditorToolbarHidden && contentAreaHeightNoToolbar],
|
|
394
|
+
"data-testid": CONTENT_AREA_TEST_ID,
|
|
395
|
+
ref: containerRef
|
|
396
|
+
}, jsx("div", {
|
|
397
|
+
css: [
|
|
398
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
399
|
+
contentAreaWrapper, shouldHideProseMirrorForMarkdownMode && markdownModeContainerBackgroundStyle],
|
|
400
|
+
"data-testid": EDITOR_CONTAINER,
|
|
401
|
+
"data-editor-container": 'true'
|
|
402
|
+
}, props.UNSAFE_containLayout ? jsx("div", {
|
|
403
|
+
"data-testid": "editor-contain-size-and-layout-wrapper",
|
|
404
|
+
css: containStrictWrapperStyles
|
|
405
|
+
}, content) : content), jsx("div", {
|
|
395
406
|
css: sidebarArea
|
|
396
407
|
}, props.contextPanel || jsx(ContextPanel, {
|
|
397
408
|
editorAPI: props.editorAPI,
|
|
@@ -395,16 +395,14 @@ export var EditorContentContainerCompiled = /*#__PURE__*/React.forwardRef(functi
|
|
|
395
395
|
// root div in editor-internal.tsx and inherited via the CSS cascade — do not set it here.
|
|
396
396
|
// For the legacy path, compute it from the Emotion theme as before.
|
|
397
397
|
var style = React.useMemo(function () {
|
|
398
|
-
return _objectSpread(_objectSpread(
|
|
399
|
-
contain: 'strict'
|
|
400
|
-
} : {}), {}, {
|
|
398
|
+
return _objectSpread(_objectSpread({
|
|
401
399
|
'--ak-editor--table-overflow-shadow': tableOverflowShadow
|
|
402
400
|
}, tableCellBackgroundColorVariablesForCompiled), !editorExperiment('platform_editor_preview_panel_responsiveness', true, {
|
|
403
401
|
exposure: true
|
|
404
402
|
}) && {
|
|
405
403
|
'--ak-editor--large-gutter-padding': "".concat(akEditorGutterPaddingDynamic(), "px")
|
|
406
404
|
});
|
|
407
|
-
}, [tableOverflowShadow
|
|
405
|
+
}, [tableOverflowShadow]);
|
|
408
406
|
var browser = getBrowserInfo();
|
|
409
407
|
|
|
410
408
|
// Evaluate the block-spacing experiment once per render.
|
|
@@ -138,9 +138,7 @@ export var EditorContentContainerEmotion = /*#__PURE__*/React.forwardRef(functio
|
|
|
138
138
|
// root div in editor-internal.tsx and inherited via the CSS cascade — do not set it here.
|
|
139
139
|
// For the legacy path, compute it from the Emotion theme as before.
|
|
140
140
|
var style = React.useMemo(function () {
|
|
141
|
-
return _objectSpread(_objectSpread(
|
|
142
|
-
contain: 'strict'
|
|
143
|
-
} : {}), !expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true) && {
|
|
141
|
+
return _objectSpread(_objectSpread({}, !expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true) && {
|
|
144
142
|
'--ak-editor-base-font-size': "".concat(editorFontSize({
|
|
145
143
|
theme: theme
|
|
146
144
|
}), "px")
|
|
@@ -149,7 +147,7 @@ export var EditorContentContainerEmotion = /*#__PURE__*/React.forwardRef(functio
|
|
|
149
147
|
}) && {
|
|
150
148
|
'--ak-editor--large-gutter-padding': "".concat(akEditorGutterPaddingDynamic(), "px")
|
|
151
149
|
});
|
|
152
|
-
}, [theme
|
|
150
|
+
}, [theme]);
|
|
153
151
|
var browser = getBrowserInfo();
|
|
154
152
|
|
|
155
153
|
// Evaluate the block-spacing experiment once per render.
|
|
@@ -43,7 +43,6 @@ export type PrimaryToolbarComponents = BeforeAndAfterToolbarComponents | ReactCo
|
|
|
43
43
|
export type BeforeAndAfterContentComponents = {
|
|
44
44
|
after: ReactComponents;
|
|
45
45
|
before: ReactComponents;
|
|
46
|
-
UNSAFE_outside?: ReactComponents;
|
|
47
46
|
};
|
|
48
47
|
export type ContentComponents = BeforeAndAfterContentComponents | ReactComponents;
|
|
49
48
|
interface EditorBaseProps {
|
|
@@ -12,7 +12,6 @@ export type EditorContentContainerProps = {
|
|
|
12
12
|
contentMode?: EditorContentMode;
|
|
13
13
|
featureFlags?: FeatureFlags;
|
|
14
14
|
isScrollable?: boolean;
|
|
15
|
-
UNSAFE_containLayout?: boolean;
|
|
16
15
|
/**
|
|
17
16
|
* When true, nodes maintain their standard width without negative margins
|
|
18
17
|
* For when the drag handle is visible and the editor has limited space.
|
|
@@ -11,7 +11,6 @@ export type EditorContentContainerProps = {
|
|
|
11
11
|
contentMode?: EditorContentMode;
|
|
12
12
|
featureFlags?: FeatureFlags;
|
|
13
13
|
isScrollable?: boolean;
|
|
14
|
-
UNSAFE_containLayout?: boolean;
|
|
15
14
|
/**
|
|
16
15
|
* When true, nodes maintain their standard width without negative margins
|
|
17
16
|
* For when the drag handle is visible and the editor has limited space.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "226.0.0",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
75
75
|
"@atlaskit/react-ufo": "^7.7.0",
|
|
76
76
|
"@atlaskit/task-decision": "^21.8.0",
|
|
77
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
77
|
+
"@atlaskit/tmp-editor-statsig": "^161.0.0",
|
|
78
78
|
"@atlaskit/tokens": "^16.8.0",
|
|
79
79
|
"@atlaskit/tooltip": "^24.2.0",
|
|
80
80
|
"@atlaskit/width-detector": "^7.1.0",
|
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
"@atlaskit/portal": "^6.3.0",
|
|
152
152
|
"@atlaskit/profilecard": "^26.19.0",
|
|
153
153
|
"@atlaskit/radio": "^10.1.0",
|
|
154
|
-
"@atlaskit/renderer": "^137.
|
|
154
|
+
"@atlaskit/renderer": "^137.1.0",
|
|
155
155
|
"@atlaskit/section-message": "^10.1.0",
|
|
156
156
|
"@atlaskit/spinner": "^20.3.0",
|
|
157
157
|
"@atlaskit/synchrony-test-helpers": "workspace:^",
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
"@atlassian/editor-rovo-bridge": "^14.0.0",
|
|
166
166
|
"@atlassian/experiment-test-utils": "^0.2.0",
|
|
167
167
|
"@atlassian/feature-flags-test-utils": "^1.2.0",
|
|
168
|
-
"@atlassian/search-client": "^2.
|
|
168
|
+
"@atlassian/search-client": "^2.16.0",
|
|
169
169
|
"@atlassian/search-provider": "^17.0.0",
|
|
170
170
|
"@atlassian/structured-docs-types": "workspace:^",
|
|
171
171
|
"@atlassian/testing-library": "^0.11.0",
|