@atlaskit/editor-core 188.8.0 → 188.9.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 +13 -0
- package/dist/cjs/composable-editor/editor-internal.js +2 -2
- package/dist/cjs/create-editor/ReactEditorView.js +796 -8
- package/dist/cjs/labs/next/presets/universal.js +7 -4
- package/dist/cjs/plugins/index.js +0 -21
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/composable-editor/editor-internal.js +1 -1
- package/dist/es2019/create-editor/ReactEditorView.js +753 -2
- package/dist/es2019/labs/next/presets/universal.js +4 -1
- package/dist/es2019/plugins/index.js +0 -3
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/composable-editor/editor-internal.js +1 -1
- package/dist/esm/create-editor/ReactEditorView.js +797 -8
- package/dist/esm/labs/next/presets/universal.js +4 -1
- package/dist/esm/plugins/index.js +0 -3
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/ReactEditorView.d.ts +119 -5
- package/dist/types/plugins/index.d.ts +0 -3
- package/dist/types/plugins/insert-block/types.d.ts +1 -1
- package/dist/types/plugins/view-update-subscription/subscribe/toolbarAndPickerUpdates.d.ts +1 -1
- package/dist/types-ts4.5/create-editor/ReactEditorView.d.ts +119 -5
- package/dist/types-ts4.5/plugins/index.d.ts +0 -3
- package/dist/types-ts4.5/plugins/insert-block/types.d.ts +1 -1
- package/dist/types-ts4.5/plugins/view-update-subscription/subscribe/toolbarAndPickerUpdates.d.ts +1 -1
- package/package.json +5 -3
- package/dist/cjs/create-editor/ReactEditorViewInternal.js +0 -812
- package/dist/cjs/create-editor/ReactEditorViewNext.js +0 -15
- package/dist/cjs/plugins/save-on-enter/index.js +0 -70
- package/dist/cjs/plugins/scroll-into-view/index.js +0 -55
- package/dist/cjs/plugins/status/actions.js +0 -158
- package/dist/cjs/plugins/status/analytics.js +0 -31
- package/dist/cjs/plugins/status/index.js +0 -143
- package/dist/cjs/plugins/status/keymap.js +0 -22
- package/dist/cjs/plugins/status/nodeviews/status.js +0 -58
- package/dist/cjs/plugins/status/plugin-key.js +0 -9
- package/dist/cjs/plugins/status/plugin.js +0 -133
- package/dist/cjs/plugins/status/types.js +0 -5
- package/dist/cjs/plugins/status/ui/statusPicker.js +0 -314
- package/dist/cjs/plugins/status/utils.js +0 -22
- package/dist/es2019/create-editor/ReactEditorViewInternal.js +0 -753
- package/dist/es2019/create-editor/ReactEditorViewNext.js +0 -7
- package/dist/es2019/plugins/save-on-enter/index.js +0 -63
- package/dist/es2019/plugins/scroll-into-view/index.js +0 -44
- package/dist/es2019/plugins/status/actions.js +0 -144
- package/dist/es2019/plugins/status/analytics.js +0 -18
- package/dist/es2019/plugins/status/index.js +0 -135
- package/dist/es2019/plugins/status/keymap.js +0 -13
- package/dist/es2019/plugins/status/nodeviews/status.js +0 -60
- package/dist/es2019/plugins/status/plugin-key.js +0 -3
- package/dist/es2019/plugins/status/plugin.js +0 -113
- package/dist/es2019/plugins/status/types.js +0 -1
- package/dist/es2019/plugins/status/ui/statusPicker.js +0 -293
- package/dist/es2019/plugins/status/utils.js +0 -12
- package/dist/esm/create-editor/ReactEditorViewInternal.js +0 -806
- package/dist/esm/create-editor/ReactEditorViewNext.js +0 -7
- package/dist/esm/plugins/save-on-enter/index.js +0 -63
- package/dist/esm/plugins/scroll-into-view/index.js +0 -50
- package/dist/esm/plugins/status/actions.js +0 -151
- package/dist/esm/plugins/status/analytics.js +0 -24
- package/dist/esm/plugins/status/index.js +0 -136
- package/dist/esm/plugins/status/keymap.js +0 -15
- package/dist/esm/plugins/status/nodeviews/status.js +0 -51
- package/dist/esm/plugins/status/plugin-key.js +0 -3
- package/dist/esm/plugins/status/plugin.js +0 -115
- package/dist/esm/plugins/status/types.js +0 -1
- package/dist/esm/plugins/status/ui/statusPicker.js +0 -308
- package/dist/esm/plugins/status/utils.js +0 -16
- package/dist/types/create-editor/ReactEditorViewInternal.d.ts +0 -119
- package/dist/types/create-editor/ReactEditorViewNext.d.ts +0 -8
- package/dist/types/plugins/save-on-enter/index.d.ts +0 -10
- package/dist/types/plugins/scroll-into-view/index.d.ts +0 -14
- package/dist/types/plugins/status/actions.d.ts +0 -16
- package/dist/types/plugins/status/analytics.d.ts +0 -4
- package/dist/types/plugins/status/index.d.ts +0 -15
- package/dist/types/plugins/status/keymap.d.ts +0 -3
- package/dist/types/plugins/status/nodeviews/status.d.ts +0 -25
- package/dist/types/plugins/status/plugin-key.d.ts +0 -4
- package/dist/types/plugins/status/plugin.d.ts +0 -7
- package/dist/types/plugins/status/types.d.ts +0 -18
- package/dist/types/plugins/status/ui/statusPicker.d.ts +0 -63
- package/dist/types/plugins/status/utils.d.ts +0 -5
- package/dist/types-ts4.5/create-editor/ReactEditorViewInternal.d.ts +0 -119
- package/dist/types-ts4.5/create-editor/ReactEditorViewNext.d.ts +0 -8
- package/dist/types-ts4.5/plugins/save-on-enter/index.d.ts +0 -10
- package/dist/types-ts4.5/plugins/scroll-into-view/index.d.ts +0 -14
- package/dist/types-ts4.5/plugins/status/actions.d.ts +0 -16
- package/dist/types-ts4.5/plugins/status/analytics.d.ts +0 -4
- package/dist/types-ts4.5/plugins/status/index.d.ts +0 -17
- package/dist/types-ts4.5/plugins/status/keymap.d.ts +0 -3
- package/dist/types-ts4.5/plugins/status/nodeviews/status.d.ts +0 -25
- package/dist/types-ts4.5/plugins/status/plugin-key.d.ts +0 -4
- package/dist/types-ts4.5/plugins/status/plugin.d.ts +0 -7
- package/dist/types-ts4.5/plugins/status/types.d.ts +0 -18
- package/dist/types-ts4.5/plugins/status/ui/statusPicker.d.ts +0 -63
- package/dist/types-ts4.5/plugins/status/utils.d.ts +0 -5
|
@@ -8,6 +8,7 @@ exports.default = createUniversalPreset;
|
|
|
8
8
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
9
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
10
|
var _plugins = require("../../../plugins");
|
|
11
|
+
var _editorPluginStatus = require("@atlaskit/editor-plugin-status");
|
|
11
12
|
var _date = require("../../../plugins/date");
|
|
12
13
|
var _editorPluginCaption = require("@atlaskit/editor-plugin-caption");
|
|
13
14
|
var _editorPluginBorder = require("@atlaskit/editor-plugin-border");
|
|
@@ -24,6 +25,8 @@ var _editorPluginCard = require("@atlaskit/editor-plugin-card");
|
|
|
24
25
|
var _editorPluginTable = require("@atlaskit/editor-plugin-table");
|
|
25
26
|
var _editorPluginContentInsertion = require("@atlaskit/editor-plugin-content-insertion");
|
|
26
27
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
28
|
+
var _editorPluginSaveOnEnter = require("@atlaskit/editor-plugin-save-on-enter");
|
|
29
|
+
var _editorPluginScrollIntoView = require("@atlaskit/editor-plugin-scroll-into-view");
|
|
27
30
|
var _isFullPage = require("../../../utils/is-full-page");
|
|
28
31
|
var _mediaCommon = require("@atlaskit/media-common");
|
|
29
32
|
var _default = require("./default");
|
|
@@ -188,7 +191,7 @@ function createUniversalPreset(appearance, props, featureFlags, prevAppearance,
|
|
|
188
191
|
return builder.add([plugin, !!props.legacyImageUploadProvider]);
|
|
189
192
|
}
|
|
190
193
|
return builder;
|
|
191
|
-
}).maybeAdd(
|
|
194
|
+
}).maybeAdd(_editorPluginSaveOnEnter.saveOnEnterPlugin, function (plugin, builder) {
|
|
192
195
|
if (props.saveOnEnter && props.onSave) {
|
|
193
196
|
return builder.add([plugin, props.onSave]);
|
|
194
197
|
}
|
|
@@ -312,7 +315,7 @@ function createUniversalPreset(appearance, props, featureFlags, prevAppearance,
|
|
|
312
315
|
return builder.add(plugin);
|
|
313
316
|
}
|
|
314
317
|
return builder;
|
|
315
|
-
}).maybeAdd(
|
|
318
|
+
}).maybeAdd(_editorPluginStatus.statusPlugin, function (plugin, builder) {
|
|
316
319
|
if (props.allowStatus) {
|
|
317
320
|
return builder.add([plugin, {
|
|
318
321
|
menuDisabled: statusMenuDisabled,
|
|
@@ -325,9 +328,9 @@ function createUniversalPreset(appearance, props, featureFlags, prevAppearance,
|
|
|
325
328
|
return builder.add(plugin);
|
|
326
329
|
}
|
|
327
330
|
return builder;
|
|
328
|
-
}).maybeAdd(
|
|
331
|
+
}).maybeAdd(_editorPluginScrollIntoView.scrollIntoViewPlugin, function (plugin, builder) {
|
|
329
332
|
if (props.autoScrollIntoView !== false) {
|
|
330
|
-
return builder.add(
|
|
333
|
+
return builder.add(_editorPluginScrollIntoView.scrollIntoViewPlugin);
|
|
331
334
|
}
|
|
332
335
|
return builder;
|
|
333
336
|
}).maybeAdd(_plugins.historyPlugin, function (plugin, builder) {
|
|
@@ -209,24 +209,6 @@ Object.defineProperty(exports, "placeholderTextPlugin", {
|
|
|
209
209
|
return _placeholderText.default;
|
|
210
210
|
}
|
|
211
211
|
});
|
|
212
|
-
Object.defineProperty(exports, "saveOnEnterPlugin", {
|
|
213
|
-
enumerable: true,
|
|
214
|
-
get: function get() {
|
|
215
|
-
return _saveOnEnter.default;
|
|
216
|
-
}
|
|
217
|
-
});
|
|
218
|
-
Object.defineProperty(exports, "scrollIntoViewPlugin", {
|
|
219
|
-
enumerable: true,
|
|
220
|
-
get: function get() {
|
|
221
|
-
return _scrollIntoView.default;
|
|
222
|
-
}
|
|
223
|
-
});
|
|
224
|
-
Object.defineProperty(exports, "statusPlugin", {
|
|
225
|
-
enumerable: true,
|
|
226
|
-
get: function get() {
|
|
227
|
-
return _status.default;
|
|
228
|
-
}
|
|
229
|
-
});
|
|
230
212
|
Object.defineProperty(exports, "submitEditorPlugin", {
|
|
231
213
|
enumerable: true,
|
|
232
214
|
get: function get() {
|
|
@@ -286,12 +268,10 @@ var _mentions = _interopRequireDefault(require("./mentions"));
|
|
|
286
268
|
var _panel = _interopRequireDefault(require("./panel"));
|
|
287
269
|
var _paste = _interopRequireDefault(require("./paste"));
|
|
288
270
|
var _placeholderText = _interopRequireDefault(require("./placeholder-text"));
|
|
289
|
-
var _saveOnEnter = _interopRequireDefault(require("./save-on-enter"));
|
|
290
271
|
var _submitEditor = _interopRequireDefault(require("./submit-editor"));
|
|
291
272
|
var _tasksAndDecisions = _interopRequireDefault(require("./tasks-and-decisions"));
|
|
292
273
|
var _textColor = _interopRequireDefault(require("./text-color"));
|
|
293
274
|
var _typeAhead = _interopRequireDefault(require("./type-ahead"));
|
|
294
|
-
var _status = _interopRequireDefault(require("./status"));
|
|
295
275
|
var _breakout = _interopRequireDefault(require("./breakout"));
|
|
296
276
|
var _alignment = _interopRequireDefault(require("./alignment"));
|
|
297
277
|
var _dataConsumer = _interopRequireDefault(require("./data-consumer"));
|
|
@@ -303,7 +283,6 @@ var _customAutoformat = _interopRequireDefault(require("./custom-autoformat"));
|
|
|
303
283
|
var _feedbackDialog = _interopRequireDefault(require("./feedback-dialog"));
|
|
304
284
|
var _history = _interopRequireDefault(require("./history"));
|
|
305
285
|
var _expand = _interopRequireWildcard(require("./expand"));
|
|
306
|
-
var _scrollIntoView = _interopRequireDefault(require("./scroll-into-view"));
|
|
307
286
|
var _mobileDimensions = _interopRequireDefault(require("./mobile-dimensions"));
|
|
308
287
|
var _findReplace = _interopRequireDefault(require("./find-replace"));
|
|
309
288
|
var _mobileSelection = _interopRequireDefault(require("./mobile-selection"));
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.version = exports.nextMajorVersion = exports.name = void 0;
|
|
7
7
|
var name = exports.name = "@atlaskit/editor-core";
|
|
8
|
-
var version = exports.version = "188.
|
|
8
|
+
var version = exports.version = "188.9.0";
|
|
9
9
|
var nextMajorVersion = exports.nextMajorVersion = function nextMajorVersion() {
|
|
10
10
|
return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
|
|
11
11
|
};
|
|
@@ -7,7 +7,7 @@ import { BaseTheme, WidthProvider } from '@atlaskit/editor-common/ui';
|
|
|
7
7
|
import { getUiComponent } from '../create-editor';
|
|
8
8
|
import ErrorBoundary from '../create-editor/ErrorBoundary';
|
|
9
9
|
import { createFeatureFlagsFromProps } from '../create-editor/feature-flags-from-props';
|
|
10
|
-
import ReactEditorView from '../create-editor/
|
|
10
|
+
import ReactEditorView from '../create-editor/ReactEditorView';
|
|
11
11
|
import { ContextAdapter } from '../nodeviews/context-adapter';
|
|
12
12
|
import EditorContext from '../ui/EditorContext';
|
|
13
13
|
import { useSetPresetContext } from '../presets/context';
|