@atlaskit/editor-core 195.4.3 → 195.4.5
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 +20 -0
- package/dist/cjs/create-editor/ReactEditorView.js +18 -33
- package/dist/cjs/presets/universal.js +1 -1
- package/dist/cjs/ui/CollapsedEditor/index.js +1 -7
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/create-editor/ReactEditorView.js +18 -33
- package/dist/es2019/presets/universal.js +1 -1
- package/dist/es2019/ui/CollapsedEditor/index.js +1 -7
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/create-editor/ReactEditorView.js +18 -33
- package/dist/esm/presets/universal.js +1 -1
- package/dist/esm/ui/CollapsedEditor/index.js +1 -7
- package/dist/esm/version-wrapper.js +1 -1
- package/package.json +8 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 195.4.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#129496](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/129496)
|
|
8
|
+
[`5776cd6d4856e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5776cd6d4856e) -
|
|
9
|
+
remove no editor selection in view mode ff
|
|
10
|
+
|
|
11
|
+
## 195.4.4
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#129411](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/129411)
|
|
16
|
+
[`080325d254926`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/080325d254926) -
|
|
17
|
+
Added PTW 40% scale to comment editor and renderer in confluence
|
|
18
|
+
- [#129415](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/129415)
|
|
19
|
+
[`f5c556c716ddf`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f5c556c716ddf) -
|
|
20
|
+
Allow collapsed editor to have any child as its child may be a wrapper.
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
|
|
3
23
|
## 195.4.3
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
|
@@ -26,7 +26,6 @@ var _ui = require("@atlaskit/editor-common/ui");
|
|
|
26
26
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
27
27
|
var _state2 = require("@atlaskit/editor-prosemirror/state");
|
|
28
28
|
var _view = require("@atlaskit/editor-prosemirror/view");
|
|
29
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
30
29
|
var _eventDispatcher = require("../event-dispatcher");
|
|
31
30
|
var _document = require("../utils/document");
|
|
32
31
|
var _isFullPage = require("../utils/is-full-page");
|
|
@@ -220,41 +219,27 @@ var ReactEditorView = exports.ReactEditorView = /*#__PURE__*/function (_React$Co
|
|
|
220
219
|
var api = _this.pluginInjectionAPI.api();
|
|
221
220
|
var isViewMode = (api === null || api === void 0 || (_api$editorViewMode = api.editorViewMode) === null || _api$editorViewMode === void 0 ? void 0 : _api$editorViewMode.sharedState.currentState().mode) === 'view';
|
|
222
221
|
var selection;
|
|
223
|
-
if (
|
|
224
|
-
if (
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
} else {
|
|
234
|
-
selection = options.selectionAtStart ? _state2.Selection.atStart(doc) : _state2.Selection.atEnd(doc);
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
// Workaround for ED-3507: When media node is the last element, scrollIntoView throws an error
|
|
238
|
-
var patchedSelection = selection ? _state2.Selection.findFrom(selection.$head, -1, true) || undefined : undefined;
|
|
239
|
-
return _state2.EditorState.create({
|
|
240
|
-
schema: schema,
|
|
241
|
-
plugins: plugins,
|
|
242
|
-
doc: doc,
|
|
243
|
-
selection: patchedSelection
|
|
244
|
-
});
|
|
245
|
-
} else {
|
|
246
|
-
if (doc) {
|
|
222
|
+
if (doc) {
|
|
223
|
+
if (isViewMode) {
|
|
224
|
+
var emptySelection = new _state2.TextSelection(doc.resolve(0));
|
|
225
|
+
return _state2.EditorState.create({
|
|
226
|
+
schema: schema,
|
|
227
|
+
plugins: plugins,
|
|
228
|
+
doc: doc,
|
|
229
|
+
selection: emptySelection
|
|
230
|
+
});
|
|
231
|
+
} else {
|
|
247
232
|
selection = options.selectionAtStart ? _state2.Selection.atStart(doc) : _state2.Selection.atEnd(doc);
|
|
248
233
|
}
|
|
249
|
-
// Workaround for ED-3507: When media node is the last element, scrollIntoView throws an error
|
|
250
|
-
var _patchedSelection = selection ? _state2.Selection.findFrom(selection.$head, -1, true) || undefined : undefined;
|
|
251
|
-
return _state2.EditorState.create({
|
|
252
|
-
schema: schema,
|
|
253
|
-
plugins: plugins,
|
|
254
|
-
doc: doc,
|
|
255
|
-
selection: _patchedSelection
|
|
256
|
-
});
|
|
257
234
|
}
|
|
235
|
+
// Workaround for ED-3507: When media node is the last element, scrollIntoView throws an error
|
|
236
|
+
var patchedSelection = selection ? _state2.Selection.findFrom(selection.$head, -1, true) || undefined : undefined;
|
|
237
|
+
return _state2.EditorState.create({
|
|
238
|
+
schema: schema,
|
|
239
|
+
plugins: plugins,
|
|
240
|
+
doc: doc,
|
|
241
|
+
selection: patchedSelection
|
|
242
|
+
});
|
|
258
243
|
});
|
|
259
244
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "onEditorViewStateUpdated", function (_ref2) {
|
|
260
245
|
var originalTransaction = _ref2.originalTransaction,
|
|
@@ -143,7 +143,7 @@ function createUniversalPresetInternal(_ref) {
|
|
|
143
143
|
tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : props.allowTables,
|
|
144
144
|
tableResizingEnabled: isFullPage || isComment && (0, _platformFeatureFlags.fg)('platform_editor_table_support_in_comment'),
|
|
145
145
|
dragAndDropEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableDragAndDrop) && (isFullPage || (isComment || isChromeless) && (0, _platformFeatureFlags.fg)('platform_editor_table_support_in_comment')),
|
|
146
|
-
isTableScalingEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tablePreserveWidth) && isFullPage,
|
|
146
|
+
isTableScalingEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tablePreserveWidth) && (isFullPage || isComment && (0, _platformFeatureFlags.fg)('platform_editor_table_support_in_comment')),
|
|
147
147
|
allowContextualMenu: !isMobile,
|
|
148
148
|
fullWidthEnabled: appearance === 'full-width',
|
|
149
149
|
wasFullWidthEnabled: prevAppearance && prevAppearance === 'full-width',
|
|
@@ -14,9 +14,6 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
14
14
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
15
|
var _react = _interopRequireDefault(require("react"));
|
|
16
16
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
17
|
-
var _composableEditor = require("../../composable-editor");
|
|
18
|
-
var _editor = _interopRequireDefault(require("../../editor"));
|
|
19
|
-
var _EditorWithActions = _interopRequireDefault(require("../../EditorWithActions"));
|
|
20
17
|
var _ChromeCollapsed = _interopRequireDefault(require("../ChromeCollapsed"));
|
|
21
18
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
22
19
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
@@ -52,10 +49,7 @@ var CollapsedEditor = exports.default = /*#__PURE__*/function (_React$Component)
|
|
|
52
49
|
value: function render() {
|
|
53
50
|
var _this2 = this;
|
|
54
51
|
var child = _react.default.Children.only(this.props.children);
|
|
55
|
-
|
|
56
|
-
throw new Error('Expected child to be of type `Editor`');
|
|
57
|
-
}
|
|
58
|
-
this.functionalEditor = child.type === _composableEditor.ComposableEditor;
|
|
52
|
+
this.functionalEditor = typeof child.type === 'function';
|
|
59
53
|
if (!this.props.isExpanded) {
|
|
60
54
|
return /*#__PURE__*/_react.default.createElement(_ui.IntlProviderIfMissingWrapper, null, /*#__PURE__*/_react.default.createElement(_ChromeCollapsed.default, {
|
|
61
55
|
onFocus: this.props.onFocus,
|
|
@@ -12,7 +12,6 @@ import { EDIT_AREA_ID } from '@atlaskit/editor-common/ui';
|
|
|
12
12
|
import { analyticsEventKey, browser, countNodes, findChangedNodesFromTransaction, getAnalyticsEventSeverity, getResponseEndTime, measureRender, processRawValue, shouldForceTracking, validateNodes, validNode } from '@atlaskit/editor-common/utils';
|
|
13
13
|
import { EditorState, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
14
14
|
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
15
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
16
15
|
import { createDispatch, EventDispatcher } from '../event-dispatcher';
|
|
17
16
|
import { getNodesCount } from '../utils/document';
|
|
18
17
|
import { isFullPage } from '../utils/is-full-page';
|
|
@@ -214,41 +213,27 @@ export class ReactEditorView extends React.Component {
|
|
|
214
213
|
const api = this.pluginInjectionAPI.api();
|
|
215
214
|
const isViewMode = (api === null || api === void 0 ? void 0 : (_api$editorViewMode = api.editorViewMode) === null || _api$editorViewMode === void 0 ? void 0 : _api$editorViewMode.sharedState.currentState().mode) === 'view';
|
|
216
215
|
let selection;
|
|
217
|
-
if (
|
|
218
|
-
if (
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
} else {
|
|
228
|
-
selection = options.selectionAtStart ? Selection.atStart(doc) : Selection.atEnd(doc);
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
// Workaround for ED-3507: When media node is the last element, scrollIntoView throws an error
|
|
232
|
-
const patchedSelection = selection ? Selection.findFrom(selection.$head, -1, true) || undefined : undefined;
|
|
233
|
-
return EditorState.create({
|
|
234
|
-
schema,
|
|
235
|
-
plugins: plugins,
|
|
236
|
-
doc,
|
|
237
|
-
selection: patchedSelection
|
|
238
|
-
});
|
|
239
|
-
} else {
|
|
240
|
-
if (doc) {
|
|
216
|
+
if (doc) {
|
|
217
|
+
if (isViewMode) {
|
|
218
|
+
const emptySelection = new TextSelection(doc.resolve(0));
|
|
219
|
+
return EditorState.create({
|
|
220
|
+
schema,
|
|
221
|
+
plugins: plugins,
|
|
222
|
+
doc,
|
|
223
|
+
selection: emptySelection
|
|
224
|
+
});
|
|
225
|
+
} else {
|
|
241
226
|
selection = options.selectionAtStart ? Selection.atStart(doc) : Selection.atEnd(doc);
|
|
242
227
|
}
|
|
243
|
-
// Workaround for ED-3507: When media node is the last element, scrollIntoView throws an error
|
|
244
|
-
const patchedSelection = selection ? Selection.findFrom(selection.$head, -1, true) || undefined : undefined;
|
|
245
|
-
return EditorState.create({
|
|
246
|
-
schema,
|
|
247
|
-
plugins: plugins,
|
|
248
|
-
doc,
|
|
249
|
-
selection: patchedSelection
|
|
250
|
-
});
|
|
251
228
|
}
|
|
229
|
+
// Workaround for ED-3507: When media node is the last element, scrollIntoView throws an error
|
|
230
|
+
const patchedSelection = selection ? Selection.findFrom(selection.$head, -1, true) || undefined : undefined;
|
|
231
|
+
return EditorState.create({
|
|
232
|
+
schema,
|
|
233
|
+
plugins: plugins,
|
|
234
|
+
doc,
|
|
235
|
+
selection: patchedSelection
|
|
236
|
+
});
|
|
252
237
|
});
|
|
253
238
|
_defineProperty(this, "onEditorViewStateUpdated", ({
|
|
254
239
|
originalTransaction,
|
|
@@ -134,7 +134,7 @@ export default function createUniversalPresetInternal({
|
|
|
134
134
|
tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : props.allowTables,
|
|
135
135
|
tableResizingEnabled: isFullPage || isComment && fg('platform_editor_table_support_in_comment'),
|
|
136
136
|
dragAndDropEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableDragAndDrop) && (isFullPage || (isComment || isChromeless) && fg('platform_editor_table_support_in_comment')),
|
|
137
|
-
isTableScalingEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tablePreserveWidth) && isFullPage,
|
|
137
|
+
isTableScalingEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tablePreserveWidth) && (isFullPage || isComment && fg('platform_editor_table_support_in_comment')),
|
|
138
138
|
allowContextualMenu: !isMobile,
|
|
139
139
|
fullWidthEnabled: appearance === 'full-width',
|
|
140
140
|
wasFullWidthEnabled: prevAppearance && prevAppearance === 'full-width',
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { IntlProviderIfMissingWrapper } from '@atlaskit/editor-common/ui';
|
|
4
|
-
import { ComposableEditor } from '../../composable-editor';
|
|
5
|
-
import Editor from '../../editor';
|
|
6
|
-
import EditorWithActions from '../../EditorWithActions';
|
|
7
4
|
import ChromeCollapsed from '../ChromeCollapsed';
|
|
8
5
|
export default class CollapsedEditor extends React.Component {
|
|
9
6
|
constructor(...args) {
|
|
@@ -24,10 +21,7 @@ export default class CollapsedEditor extends React.Component {
|
|
|
24
21
|
}
|
|
25
22
|
render() {
|
|
26
23
|
const child = React.Children.only(this.props.children);
|
|
27
|
-
|
|
28
|
-
throw new Error('Expected child to be of type `Editor`');
|
|
29
|
-
}
|
|
30
|
-
this.functionalEditor = child.type === ComposableEditor;
|
|
24
|
+
this.functionalEditor = typeof child.type === 'function';
|
|
31
25
|
if (!this.props.isExpanded) {
|
|
32
26
|
return /*#__PURE__*/React.createElement(IntlProviderIfMissingWrapper, null, /*#__PURE__*/React.createElement(ChromeCollapsed, {
|
|
33
27
|
onFocus: this.props.onFocus,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "195.4.
|
|
2
|
+
export const version = "195.4.5";
|
|
@@ -23,7 +23,6 @@ import { EDIT_AREA_ID } from '@atlaskit/editor-common/ui';
|
|
|
23
23
|
import { analyticsEventKey, browser, countNodes as _countNodes, findChangedNodesFromTransaction, getAnalyticsEventSeverity, getResponseEndTime, measureRender, processRawValue, shouldForceTracking, validateNodes, validNode } from '@atlaskit/editor-common/utils';
|
|
24
24
|
import { EditorState, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
25
25
|
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
26
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
27
26
|
import { createDispatch, EventDispatcher } from '../event-dispatcher';
|
|
28
27
|
import { getNodesCount } from '../utils/document';
|
|
29
28
|
import { isFullPage } from '../utils/is-full-page';
|
|
@@ -213,41 +212,27 @@ export var ReactEditorView = /*#__PURE__*/function (_React$Component) {
|
|
|
213
212
|
var api = _this.pluginInjectionAPI.api();
|
|
214
213
|
var isViewMode = (api === null || api === void 0 || (_api$editorViewMode = api.editorViewMode) === null || _api$editorViewMode === void 0 ? void 0 : _api$editorViewMode.sharedState.currentState().mode) === 'view';
|
|
215
214
|
var selection;
|
|
216
|
-
if (
|
|
217
|
-
if (
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
} else {
|
|
227
|
-
selection = options.selectionAtStart ? Selection.atStart(doc) : Selection.atEnd(doc);
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
// Workaround for ED-3507: When media node is the last element, scrollIntoView throws an error
|
|
231
|
-
var patchedSelection = selection ? Selection.findFrom(selection.$head, -1, true) || undefined : undefined;
|
|
232
|
-
return EditorState.create({
|
|
233
|
-
schema: schema,
|
|
234
|
-
plugins: plugins,
|
|
235
|
-
doc: doc,
|
|
236
|
-
selection: patchedSelection
|
|
237
|
-
});
|
|
238
|
-
} else {
|
|
239
|
-
if (doc) {
|
|
215
|
+
if (doc) {
|
|
216
|
+
if (isViewMode) {
|
|
217
|
+
var emptySelection = new TextSelection(doc.resolve(0));
|
|
218
|
+
return EditorState.create({
|
|
219
|
+
schema: schema,
|
|
220
|
+
plugins: plugins,
|
|
221
|
+
doc: doc,
|
|
222
|
+
selection: emptySelection
|
|
223
|
+
});
|
|
224
|
+
} else {
|
|
240
225
|
selection = options.selectionAtStart ? Selection.atStart(doc) : Selection.atEnd(doc);
|
|
241
226
|
}
|
|
242
|
-
// Workaround for ED-3507: When media node is the last element, scrollIntoView throws an error
|
|
243
|
-
var _patchedSelection = selection ? Selection.findFrom(selection.$head, -1, true) || undefined : undefined;
|
|
244
|
-
return EditorState.create({
|
|
245
|
-
schema: schema,
|
|
246
|
-
plugins: plugins,
|
|
247
|
-
doc: doc,
|
|
248
|
-
selection: _patchedSelection
|
|
249
|
-
});
|
|
250
227
|
}
|
|
228
|
+
// Workaround for ED-3507: When media node is the last element, scrollIntoView throws an error
|
|
229
|
+
var patchedSelection = selection ? Selection.findFrom(selection.$head, -1, true) || undefined : undefined;
|
|
230
|
+
return EditorState.create({
|
|
231
|
+
schema: schema,
|
|
232
|
+
plugins: plugins,
|
|
233
|
+
doc: doc,
|
|
234
|
+
selection: patchedSelection
|
|
235
|
+
});
|
|
251
236
|
});
|
|
252
237
|
_defineProperty(_assertThisInitialized(_this), "onEditorViewStateUpdated", function (_ref2) {
|
|
253
238
|
var originalTransaction = _ref2.originalTransaction,
|
|
@@ -136,7 +136,7 @@ export default function createUniversalPresetInternal(_ref) {
|
|
|
136
136
|
tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : props.allowTables,
|
|
137
137
|
tableResizingEnabled: isFullPage || isComment && fg('platform_editor_table_support_in_comment'),
|
|
138
138
|
dragAndDropEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableDragAndDrop) && (isFullPage || (isComment || isChromeless) && fg('platform_editor_table_support_in_comment')),
|
|
139
|
-
isTableScalingEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tablePreserveWidth) && isFullPage,
|
|
139
|
+
isTableScalingEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tablePreserveWidth) && (isFullPage || isComment && fg('platform_editor_table_support_in_comment')),
|
|
140
140
|
allowContextualMenu: !isMobile,
|
|
141
141
|
fullWidthEnabled: appearance === 'full-width',
|
|
142
142
|
wasFullWidthEnabled: prevAppearance && prevAppearance === 'full-width',
|
|
@@ -9,9 +9,6 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
9
9
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { IntlProviderIfMissingWrapper } from '@atlaskit/editor-common/ui';
|
|
12
|
-
import { ComposableEditor } from '../../composable-editor';
|
|
13
|
-
import Editor from '../../editor';
|
|
14
|
-
import EditorWithActions from '../../EditorWithActions';
|
|
15
12
|
import ChromeCollapsed from '../ChromeCollapsed';
|
|
16
13
|
var CollapsedEditor = /*#__PURE__*/function (_React$Component) {
|
|
17
14
|
_inherits(CollapsedEditor, _React$Component);
|
|
@@ -45,10 +42,7 @@ var CollapsedEditor = /*#__PURE__*/function (_React$Component) {
|
|
|
45
42
|
value: function render() {
|
|
46
43
|
var _this2 = this;
|
|
47
44
|
var child = React.Children.only(this.props.children);
|
|
48
|
-
|
|
49
|
-
throw new Error('Expected child to be of type `Editor`');
|
|
50
|
-
}
|
|
51
|
-
this.functionalEditor = child.type === ComposableEditor;
|
|
45
|
+
this.functionalEditor = typeof child.type === 'function';
|
|
52
46
|
if (!this.props.isExpanded) {
|
|
53
47
|
return /*#__PURE__*/React.createElement(IntlProviderIfMissingWrapper, null, /*#__PURE__*/React.createElement(ChromeCollapsed, {
|
|
54
48
|
onFocus: this.props.onFocus,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "195.4.
|
|
2
|
+
export var version = "195.4.5";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "195.4.
|
|
3
|
+
"version": "195.4.5",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
46
46
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
47
47
|
"@atlaskit/button": "^19.2.0",
|
|
48
|
-
"@atlaskit/editor-common": "^87.
|
|
48
|
+
"@atlaskit/editor-common": "^87.10.0",
|
|
49
49
|
"@atlaskit/editor-plugins": "^3.6.0",
|
|
50
50
|
"@atlaskit/editor-prosemirror": "5.0.1",
|
|
51
51
|
"@atlaskit/editor-shared-styles": "^2.13.0",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
57
57
|
"@atlaskit/spinner": "^16.3.0",
|
|
58
58
|
"@atlaskit/task-decision": "^17.10.0",
|
|
59
|
-
"@atlaskit/theme": "^
|
|
59
|
+
"@atlaskit/theme": "^13.0.0",
|
|
60
60
|
"@atlaskit/tokens": "^1.58.0",
|
|
61
61
|
"@atlaskit/tooltip": "^18.7.0",
|
|
62
62
|
"@atlaskit/width-detector": "^4.3.0",
|
|
@@ -80,15 +80,15 @@
|
|
|
80
80
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
|
-
"@af/editor-examples-helpers": "0.1.
|
|
83
|
+
"@af/editor-examples-helpers": "0.1.5",
|
|
84
84
|
"@af/editor-libra": "*",
|
|
85
85
|
"@af/visual-regression": "*",
|
|
86
86
|
"@atlaskit/adf-utils": "^19.8.0",
|
|
87
87
|
"@atlaskit/analytics-listeners": "^8.11.0",
|
|
88
|
-
"@atlaskit/collab-provider": "9.37.
|
|
88
|
+
"@atlaskit/collab-provider": "9.37.2",
|
|
89
89
|
"@atlaskit/editor-json-transformer": "^8.18.0",
|
|
90
90
|
"@atlaskit/editor-plugin-annotation": "1.19.0",
|
|
91
|
-
"@atlaskit/editor-plugin-card": "^2.
|
|
91
|
+
"@atlaskit/editor-plugin-card": "^2.13.0",
|
|
92
92
|
"@atlaskit/editor-plugin-editor-viewmode": "^2.1.0",
|
|
93
93
|
"@atlaskit/editor-plugin-list": "^3.8.0",
|
|
94
94
|
"@atlaskit/editor-plugin-paste": "^1.8.0",
|
|
@@ -101,14 +101,14 @@
|
|
|
101
101
|
"@atlaskit/modal-dialog": "^12.15.0",
|
|
102
102
|
"@atlaskit/primitives": "^12.0.0",
|
|
103
103
|
"@atlaskit/renderer": "^109.46.0",
|
|
104
|
-
"@atlaskit/smart-card": "^27.
|
|
104
|
+
"@atlaskit/smart-card": "^27.16.0",
|
|
105
105
|
"@atlaskit/synchrony-test-helpers": "^2.5.0",
|
|
106
106
|
"@atlaskit/toggle": "^13.3.0",
|
|
107
107
|
"@atlaskit/util-data-test": "^17.9.0",
|
|
108
108
|
"@atlaskit/visual-regression": "*",
|
|
109
109
|
"@atlassian/adf-schema-json": "^1.22.0",
|
|
110
110
|
"@atlassian/feature-flags-test-utils": "*",
|
|
111
|
-
"@atlassian/search-provider": "2.4.
|
|
111
|
+
"@atlassian/search-provider": "2.4.104",
|
|
112
112
|
"@emotion/jest": "^11.8.0",
|
|
113
113
|
"@storybook/addon-knobs": "^5.3.18",
|
|
114
114
|
"@testing-library/react": "^12.1.5",
|
|
@@ -243,9 +243,6 @@
|
|
|
243
243
|
"type": "boolean",
|
|
244
244
|
"referenceOnly": "true"
|
|
245
245
|
},
|
|
246
|
-
"platform.editor.live-view.no-editor-selection-in-view-mode": {
|
|
247
|
-
"type": "boolean"
|
|
248
|
-
},
|
|
249
246
|
"platform.editor.table.allow-table-alignment": {
|
|
250
247
|
"type": "boolean"
|
|
251
248
|
},
|