@atlaskit/editor-core 189.1.11 → 189.1.13
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 +14 -0
- package/dist/cjs/plugins/index.js +0 -14
- package/dist/cjs/plugins/insert-block/index.js +6 -10
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/index.js +40 -38
- package/dist/cjs/presets/universal.js +4 -2
- package/dist/cjs/ui/ContentStyles/index.js +1 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/plugins/index.js +0 -2
- package/dist/es2019/plugins/insert-block/index.js +5 -9
- package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/index.js +4 -3
- package/dist/es2019/presets/universal.js +3 -1
- package/dist/es2019/ui/ContentStyles/index.js +1 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/plugins/index.js +0 -2
- package/dist/esm/plugins/insert-block/index.js +5 -9
- package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/index.js +40 -38
- package/dist/esm/presets/universal.js +3 -1
- package/dist/esm/ui/ContentStyles/index.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/plugins/index.d.ts +0 -2
- package/dist/types/plugins/insert-block/types.d.ts +4 -2
- package/dist/types/types/editor-props.d.ts +2 -2
- package/dist/types/ui/ConfigPanel/ConfigPanel.d.ts +1 -1
- package/dist/types-ts4.5/plugins/index.d.ts +0 -2
- package/dist/types-ts4.5/plugins/insert-block/types.d.ts +4 -2
- package/dist/types-ts4.5/types/editor-props.d.ts +2 -2
- package/dist/types-ts4.5/ui/ConfigPanel/ConfigPanel.d.ts +1 -1
- package/package.json +4 -2
- package/report.api.md +2 -16
- package/tmp/api-report-tmp.d.ts +2 -16
- package/dist/cjs/plugins/layout/actions.js +0 -345
- package/dist/cjs/plugins/layout/index.js +0 -91
- package/dist/cjs/plugins/layout/pm-plugins/main.js +0 -148
- package/dist/cjs/plugins/layout/pm-plugins/plugin-key.js +0 -8
- package/dist/cjs/plugins/layout/pm-plugins/types.js +0 -5
- package/dist/cjs/plugins/layout/toolbar-messages.js +0 -39
- package/dist/cjs/plugins/layout/toolbar.js +0 -116
- package/dist/cjs/plugins/layout/types.js +0 -5
- package/dist/cjs/plugins/placeholder-text/actions.js +0 -35
- package/dist/cjs/plugins/placeholder-text/fake-text-cursor/cursor.js +0 -107
- package/dist/cjs/plugins/placeholder-text/index.js +0 -20
- package/dist/cjs/plugins/placeholder-text/placeholder-text-nodeview.js +0 -89
- package/dist/cjs/plugins/placeholder-text/plugin-key.js +0 -8
- package/dist/cjs/plugins/placeholder-text/plugin.js +0 -267
- package/dist/cjs/plugins/placeholder-text/selection-utils.js +0 -14
- package/dist/cjs/plugins/placeholder-text/styles.js +0 -13
- package/dist/cjs/plugins/placeholder-text/types.js +0 -5
- package/dist/cjs/plugins/placeholder-text/ui/FloatingToolbar/index.js +0 -86
- package/dist/cjs/plugins/placeholder-text/ui/FloatingToolbar/styles.js +0 -15
- package/dist/cjs/plugins/placeholder-text/ui/FloatingToolbar/utils.js +0 -54
- package/dist/cjs/plugins/placeholder-text/ui/PlaceholderFloatingToolbar/index.js +0 -89
- package/dist/es2019/plugins/layout/actions.js +0 -328
- package/dist/es2019/plugins/layout/index.js +0 -75
- package/dist/es2019/plugins/layout/pm-plugins/main.js +0 -142
- package/dist/es2019/plugins/layout/pm-plugins/plugin-key.js +0 -2
- package/dist/es2019/plugins/layout/pm-plugins/types.js +0 -1
- package/dist/es2019/plugins/layout/toolbar-messages.js +0 -33
- package/dist/es2019/plugins/layout/toolbar.js +0 -101
- package/dist/es2019/plugins/layout/types.js +0 -1
- package/dist/es2019/plugins/placeholder-text/actions.js +0 -27
- package/dist/es2019/plugins/placeholder-text/fake-text-cursor/cursor.js +0 -77
- package/dist/es2019/plugins/placeholder-text/index.js +0 -2
- package/dist/es2019/plugins/placeholder-text/placeholder-text-nodeview.js +0 -77
- package/dist/es2019/plugins/placeholder-text/plugin-key.js +0 -2
- package/dist/es2019/plugins/placeholder-text/plugin.js +0 -247
- package/dist/es2019/plugins/placeholder-text/selection-utils.js +0 -8
- package/dist/es2019/plugins/placeholder-text/styles.js +0 -52
- package/dist/es2019/plugins/placeholder-text/types.js +0 -1
- package/dist/es2019/plugins/placeholder-text/ui/FloatingToolbar/index.js +0 -45
- package/dist/es2019/plugins/placeholder-text/ui/FloatingToolbar/styles.js +0 -15
- package/dist/es2019/plugins/placeholder-text/ui/FloatingToolbar/utils.js +0 -41
- package/dist/es2019/plugins/placeholder-text/ui/PlaceholderFloatingToolbar/index.js +0 -60
- package/dist/esm/plugins/layout/actions.js +0 -336
- package/dist/esm/plugins/layout/index.js +0 -79
- package/dist/esm/plugins/layout/pm-plugins/main.js +0 -141
- package/dist/esm/plugins/layout/pm-plugins/plugin-key.js +0 -2
- package/dist/esm/plugins/layout/pm-plugins/types.js +0 -1
- package/dist/esm/plugins/layout/toolbar-messages.js +0 -33
- package/dist/esm/plugins/layout/toolbar.js +0 -109
- package/dist/esm/plugins/layout/types.js +0 -1
- package/dist/esm/plugins/placeholder-text/actions.js +0 -29
- package/dist/esm/plugins/placeholder-text/fake-text-cursor/cursor.js +0 -100
- package/dist/esm/plugins/placeholder-text/index.js +0 -2
- package/dist/esm/plugins/placeholder-text/placeholder-text-nodeview.js +0 -82
- package/dist/esm/plugins/placeholder-text/plugin-key.js +0 -2
- package/dist/esm/plugins/placeholder-text/plugin.js +0 -259
- package/dist/esm/plugins/placeholder-text/selection-utils.js +0 -8
- package/dist/esm/plugins/placeholder-text/styles.js +0 -6
- package/dist/esm/plugins/placeholder-text/types.js +0 -1
- package/dist/esm/plugins/placeholder-text/ui/FloatingToolbar/index.js +0 -63
- package/dist/esm/plugins/placeholder-text/ui/FloatingToolbar/styles.js +0 -8
- package/dist/esm/plugins/placeholder-text/ui/FloatingToolbar/utils.js +0 -48
- package/dist/esm/plugins/placeholder-text/ui/PlaceholderFloatingToolbar/index.js +0 -79
- package/dist/types/plugins/layout/actions.d.ts +0 -22
- package/dist/types/plugins/layout/index.d.ts +0 -15
- package/dist/types/plugins/layout/pm-plugins/main.d.ts +0 -6
- package/dist/types/plugins/layout/pm-plugins/plugin-key.d.ts +0 -3
- package/dist/types/plugins/layout/pm-plugins/types.d.ts +0 -14
- package/dist/types/plugins/layout/toolbar-messages.d.ts +0 -32
- package/dist/types/plugins/layout/toolbar.d.ts +0 -6
- package/dist/types/plugins/layout/types.d.ts +0 -13
- package/dist/types/plugins/placeholder-text/actions.d.ts +0 -4
- package/dist/types/plugins/placeholder-text/fake-text-cursor/cursor.d.ts +0 -30
- package/dist/types/plugins/placeholder-text/index.d.ts +0 -3
- package/dist/types/plugins/placeholder-text/placeholder-text-nodeview.d.ts +0 -17
- package/dist/types/plugins/placeholder-text/plugin-key.d.ts +0 -3
- package/dist/types/plugins/placeholder-text/plugin.d.ts +0 -7
- package/dist/types/plugins/placeholder-text/selection-utils.d.ts +0 -2
- package/dist/types/plugins/placeholder-text/styles.d.ts +0 -1
- package/dist/types/plugins/placeholder-text/types.d.ts +0 -18
- package/dist/types/plugins/placeholder-text/ui/FloatingToolbar/index.d.ts +0 -28
- package/dist/types/plugins/placeholder-text/ui/FloatingToolbar/styles.d.ts +0 -1
- package/dist/types/plugins/placeholder-text/ui/FloatingToolbar/utils.d.ts +0 -13
- package/dist/types/plugins/placeholder-text/ui/PlaceholderFloatingToolbar/index.d.ts +0 -25
- package/dist/types-ts4.5/plugins/layout/actions.d.ts +0 -22
- package/dist/types-ts4.5/plugins/layout/index.d.ts +0 -18
- package/dist/types-ts4.5/plugins/layout/pm-plugins/main.d.ts +0 -6
- package/dist/types-ts4.5/plugins/layout/pm-plugins/plugin-key.d.ts +0 -3
- package/dist/types-ts4.5/plugins/layout/pm-plugins/types.d.ts +0 -14
- package/dist/types-ts4.5/plugins/layout/toolbar-messages.d.ts +0 -32
- package/dist/types-ts4.5/plugins/layout/toolbar.d.ts +0 -6
- package/dist/types-ts4.5/plugins/layout/types.d.ts +0 -13
- package/dist/types-ts4.5/plugins/placeholder-text/actions.d.ts +0 -4
- package/dist/types-ts4.5/plugins/placeholder-text/fake-text-cursor/cursor.d.ts +0 -30
- package/dist/types-ts4.5/plugins/placeholder-text/index.d.ts +0 -3
- package/dist/types-ts4.5/plugins/placeholder-text/placeholder-text-nodeview.d.ts +0 -17
- package/dist/types-ts4.5/plugins/placeholder-text/plugin-key.d.ts +0 -3
- package/dist/types-ts4.5/plugins/placeholder-text/plugin.d.ts +0 -7
- package/dist/types-ts4.5/plugins/placeholder-text/selection-utils.d.ts +0 -2
- package/dist/types-ts4.5/plugins/placeholder-text/styles.d.ts +0 -1
- package/dist/types-ts4.5/plugins/placeholder-text/types.d.ts +0 -18
- package/dist/types-ts4.5/plugins/placeholder-text/ui/FloatingToolbar/index.d.ts +0 -28
- package/dist/types-ts4.5/plugins/placeholder-text/ui/FloatingToolbar/styles.d.ts +0 -1
- package/dist/types-ts4.5/plugins/placeholder-text/ui/FloatingToolbar/utils.d.ts +0 -13
- package/dist/types-ts4.5/plugins/placeholder-text/ui/PlaceholderFloatingToolbar/index.d.ts +0 -25
|
@@ -20,7 +20,6 @@ import { Popup } from '@atlaskit/editor-common/ui';
|
|
|
20
20
|
import ToolbarButton from '../../../../ui/ToolbarButton';
|
|
21
21
|
import { separatorStyles, buttonGroupStyle, wrapperStyle } from '@atlaskit/editor-common/styles';
|
|
22
22
|
import { akEditorMenuZIndex } from '@atlaskit/editor-shared-styles';
|
|
23
|
-
import { showPlaceholderFloatingToolbar } from '../../../placeholder-text/actions';
|
|
24
23
|
import { insertTaskDecisionCommand } from '../../../tasks-and-decisions/commands';
|
|
25
24
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
26
25
|
import { messages } from './messages';
|
|
@@ -203,29 +202,32 @@ export var ToolbarInsertBlock = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
203
202
|
return true;
|
|
204
203
|
});
|
|
205
204
|
_defineProperty(_assertThisInitialized(_this), "createPlaceholderText", function () {
|
|
206
|
-
var
|
|
207
|
-
|
|
205
|
+
var _pluginInjectionApi$p;
|
|
206
|
+
var _this$props3 = _this.props,
|
|
207
|
+
editorView = _this$props3.editorView,
|
|
208
|
+
pluginInjectionApi = _this$props3.pluginInjectionApi;
|
|
209
|
+
pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$p = pluginInjectionApi.placeholderText) === null || _pluginInjectionApi$p === void 0 || _pluginInjectionApi$p.actions.showPlaceholderFloatingToolbar(editorView.state, editorView.dispatch);
|
|
208
210
|
return true;
|
|
209
211
|
});
|
|
210
212
|
_defineProperty(_assertThisInitialized(_this), "insertLayoutColumns", function (inputMethod) {
|
|
211
213
|
var _pluginInjectionApi$l;
|
|
212
|
-
var _this$
|
|
213
|
-
editorView = _this$
|
|
214
|
-
pluginInjectionApi = _this$
|
|
214
|
+
var _this$props4 = _this.props,
|
|
215
|
+
editorView = _this$props4.editorView,
|
|
216
|
+
pluginInjectionApi = _this$props4.pluginInjectionApi;
|
|
215
217
|
pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$l = pluginInjectionApi.layout) === null || _pluginInjectionApi$l === void 0 || _pluginInjectionApi$l.actions.insertLayoutColumns(inputMethod)(editorView.state, editorView.dispatch);
|
|
216
218
|
return true;
|
|
217
219
|
});
|
|
218
220
|
_defineProperty(_assertThisInitialized(_this), "createStatus", function (inputMethod) {
|
|
219
221
|
var _pluginInjectionApi$s, _pluginInjectionApi$s2;
|
|
220
|
-
var _this$
|
|
221
|
-
pluginInjectionApi = _this$
|
|
222
|
-
editorView = _this$
|
|
222
|
+
var _this$props5 = _this.props,
|
|
223
|
+
pluginInjectionApi = _this$props5.pluginInjectionApi,
|
|
224
|
+
editorView = _this$props5.editorView;
|
|
223
225
|
return (_pluginInjectionApi$s = pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$s2 = pluginInjectionApi.status) === null || _pluginInjectionApi$s2 === void 0 || (_pluginInjectionApi$s2 = _pluginInjectionApi$s2.actions) === null || _pluginInjectionApi$s2 === void 0 ? void 0 : _pluginInjectionApi$s2.updateStatus(inputMethod)(editorView.state, editorView.dispatch)) !== null && _pluginInjectionApi$s !== void 0 ? _pluginInjectionApi$s : false;
|
|
224
226
|
});
|
|
225
227
|
_defineProperty(_assertThisInitialized(_this), "openMediaPicker", function (inputMethod) {
|
|
226
|
-
var _this$
|
|
227
|
-
onShowMediaPicker = _this$
|
|
228
|
-
dispatchAnalyticsEvent = _this$
|
|
228
|
+
var _this$props6 = _this.props,
|
|
229
|
+
onShowMediaPicker = _this$props6.onShowMediaPicker,
|
|
230
|
+
dispatchAnalyticsEvent = _this$props6.dispatchAnalyticsEvent;
|
|
229
231
|
if (onShowMediaPicker) {
|
|
230
232
|
onShowMediaPicker();
|
|
231
233
|
if (dispatchAnalyticsEvent) {
|
|
@@ -255,27 +257,27 @@ export var ToolbarInsertBlock = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
255
257
|
});
|
|
256
258
|
_defineProperty(_assertThisInitialized(_this), "insertHorizontalRule", function (inputMethod) {
|
|
257
259
|
var _pluginInjectionApi$r, _pluginInjectionApi$r2;
|
|
258
|
-
var _this$props6 = _this.props,
|
|
259
|
-
_this$props6$editorVi = _this$props6.editorView,
|
|
260
|
-
state = _this$props6$editorVi.state,
|
|
261
|
-
dispatch = _this$props6$editorVi.dispatch,
|
|
262
|
-
pluginInjectionApi = _this$props6.pluginInjectionApi;
|
|
263
|
-
return (_pluginInjectionApi$r = pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$r2 = pluginInjectionApi.rule) === null || _pluginInjectionApi$r2 === void 0 ? void 0 : _pluginInjectionApi$r2.actions.insertHorizontalRule(inputMethod)(state, dispatch)) !== null && _pluginInjectionApi$r !== void 0 ? _pluginInjectionApi$r : false;
|
|
264
|
-
});
|
|
265
|
-
_defineProperty(_assertThisInitialized(_this), "insertExpand", function () {
|
|
266
|
-
var _pluginInjectionApi$e, _pluginInjectionApi$e2;
|
|
267
260
|
var _this$props7 = _this.props,
|
|
268
261
|
_this$props7$editorVi = _this$props7.editorView,
|
|
269
262
|
state = _this$props7$editorVi.state,
|
|
270
263
|
dispatch = _this$props7$editorVi.dispatch,
|
|
271
264
|
pluginInjectionApi = _this$props7.pluginInjectionApi;
|
|
265
|
+
return (_pluginInjectionApi$r = pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$r2 = pluginInjectionApi.rule) === null || _pluginInjectionApi$r2 === void 0 ? void 0 : _pluginInjectionApi$r2.actions.insertHorizontalRule(inputMethod)(state, dispatch)) !== null && _pluginInjectionApi$r !== void 0 ? _pluginInjectionApi$r : false;
|
|
266
|
+
});
|
|
267
|
+
_defineProperty(_assertThisInitialized(_this), "insertExpand", function () {
|
|
268
|
+
var _pluginInjectionApi$e, _pluginInjectionApi$e2;
|
|
269
|
+
var _this$props8 = _this.props,
|
|
270
|
+
_this$props8$editorVi = _this$props8.editorView,
|
|
271
|
+
state = _this$props8$editorVi.state,
|
|
272
|
+
dispatch = _this$props8$editorVi.dispatch,
|
|
273
|
+
pluginInjectionApi = _this$props8.pluginInjectionApi;
|
|
272
274
|
return (_pluginInjectionApi$e = pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$e2 = pluginInjectionApi.expand) === null || _pluginInjectionApi$e2 === void 0 ? void 0 : _pluginInjectionApi$e2.actions.insertExpand(state, dispatch)) !== null && _pluginInjectionApi$e !== void 0 ? _pluginInjectionApi$e : false;
|
|
273
275
|
});
|
|
274
276
|
_defineProperty(_assertThisInitialized(_this), "insertBlockType", function (itemName) {
|
|
275
277
|
return function () {
|
|
276
|
-
var _this$
|
|
277
|
-
editorView = _this$
|
|
278
|
-
onInsertBlockType = _this$
|
|
278
|
+
var _this$props9 = _this.props,
|
|
279
|
+
editorView = _this$props9.editorView,
|
|
280
|
+
onInsertBlockType = _this$props9.onInsertBlockType;
|
|
279
281
|
var state = editorView.state,
|
|
280
282
|
dispatch = editorView.dispatch;
|
|
281
283
|
onInsertBlockType(itemName)(state, dispatch);
|
|
@@ -299,11 +301,11 @@ export var ToolbarInsertBlock = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
299
301
|
var _this$props$pluginInj;
|
|
300
302
|
var item = _ref2.item,
|
|
301
303
|
inputMethod = _ref2.inputMethod;
|
|
302
|
-
var _this$
|
|
303
|
-
editorView = _this$
|
|
304
|
-
editorActions = _this$
|
|
305
|
-
handleImageUpload = _this$
|
|
306
|
-
expandEnabled = _this$
|
|
304
|
+
var _this$props10 = _this.props,
|
|
305
|
+
editorView = _this$props10.editorView,
|
|
306
|
+
editorActions = _this$props10.editorActions,
|
|
307
|
+
handleImageUpload = _this$props10.handleImageUpload,
|
|
308
|
+
expandEnabled = _this$props10.expandEnabled;
|
|
307
309
|
|
|
308
310
|
// need to do this before inserting nodes so scrollIntoView works properly
|
|
309
311
|
if (!editorView.hasFocus()) {
|
|
@@ -419,12 +421,12 @@ export var ToolbarInsertBlock = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
419
421
|
key: "renderPopup",
|
|
420
422
|
value: function renderPopup() {
|
|
421
423
|
var emojiPickerOpen = this.state.emojiPickerOpen;
|
|
422
|
-
var _this$
|
|
423
|
-
popupsMountPoint = _this$
|
|
424
|
-
popupsBoundariesElement = _this$
|
|
425
|
-
popupsScrollableElement = _this$
|
|
426
|
-
emojiProvider = _this$
|
|
427
|
-
replacePlusMenuWithElementBrowser = _this$
|
|
424
|
+
var _this$props11 = this.props,
|
|
425
|
+
popupsMountPoint = _this$props11.popupsMountPoint,
|
|
426
|
+
popupsBoundariesElement = _this$props11.popupsBoundariesElement,
|
|
427
|
+
popupsScrollableElement = _this$props11.popupsScrollableElement,
|
|
428
|
+
emojiProvider = _this$props11.emojiProvider,
|
|
429
|
+
replacePlusMenuWithElementBrowser = _this$props11.replacePlusMenuWithElementBrowser;
|
|
428
430
|
var dropdownEmoji = this.state.dropdownItems.some(function (_ref4) {
|
|
429
431
|
var name = _ref4.value.name;
|
|
430
432
|
return name === 'emoji';
|
|
@@ -461,9 +463,9 @@ export var ToolbarInsertBlock = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
461
463
|
buttons = _this$state.buttons,
|
|
462
464
|
dropdownItems = _this$state.dropdownItems,
|
|
463
465
|
emojiPickerOpen = _this$state.emojiPickerOpen;
|
|
464
|
-
var _this$
|
|
465
|
-
isDisabled = _this$
|
|
466
|
-
isReducedSpacing = _this$
|
|
466
|
+
var _this$props12 = this.props,
|
|
467
|
+
isDisabled = _this$props12.isDisabled,
|
|
468
|
+
isReducedSpacing = _this$props12.isReducedSpacing;
|
|
467
469
|
if (buttons.length === 0 && dropdownItems.length === 0) {
|
|
468
470
|
return null;
|
|
469
471
|
}
|
|
@@ -2,7 +2,7 @@ import _typeof from "@babel/runtime/helpers/typeof";
|
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
-
import { breakoutPlugin, collabEditPlugin, dataConsumerMarkPlugin, extensionPlugin, insertBlockPlugin, jiraIssuePlugin,
|
|
5
|
+
import { breakoutPlugin, collabEditPlugin, dataConsumerMarkPlugin, extensionPlugin, insertBlockPlugin, jiraIssuePlugin, toolbarListsIndentationPlugin, macroPlugin, maxContentSizePlugin, panelPlugin, tasksAndDecisionsPlugin, alignmentPlugin, indentationPlugin, customAutoformatPlugin, feedbackDialogPlugin, expandPlugin, isExpandInsertionEnabled, mobileDimensionsPlugin, findReplacePlugin, mobileSelectionPlugin, annotationPlugin, avatarGroupPlugin, viewUpdateSubscriptionPlugin, beforePrimaryToolbarPlugin, codeBidiWarningPlugin } from '../plugins';
|
|
6
6
|
import { textColorPlugin } from '@atlaskit/editor-plugin-text-color';
|
|
7
7
|
import { historyPlugin } from '@atlaskit/editor-plugin-history';
|
|
8
8
|
import { statusPlugin } from '@atlaskit/editor-plugin-status';
|
|
@@ -21,12 +21,14 @@ import { guidelinePlugin } from '@atlaskit/editor-plugin-guideline';
|
|
|
21
21
|
import { contextPanelPlugin } from '@atlaskit/editor-plugin-context-panel';
|
|
22
22
|
import { gridPlugin } from '@atlaskit/editor-plugin-grid';
|
|
23
23
|
import { cardPlugin } from '@atlaskit/editor-plugin-card';
|
|
24
|
+
import { layoutPlugin } from '@atlaskit/editor-plugin-layout';
|
|
24
25
|
import { tablesPlugin } from '@atlaskit/editor-plugin-table';
|
|
25
26
|
import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
26
27
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
27
28
|
import { saveOnEnterPlugin } from '@atlaskit/editor-plugin-save-on-enter';
|
|
28
29
|
import { scrollIntoViewPlugin } from '@atlaskit/editor-plugin-scroll-into-view';
|
|
29
30
|
import { mentionsPlugin } from '@atlaskit/editor-plugin-mentions';
|
|
31
|
+
import { placeholderTextPlugin } from '@atlaskit/editor-plugin-placeholder-text';
|
|
30
32
|
import { isFullPage as fullPageCheck } from '../utils/is-full-page';
|
|
31
33
|
import { getMediaFeatureFlag } from '@atlaskit/media-common';
|
|
32
34
|
import { createDefaultPreset } from './default';
|
|
@@ -14,7 +14,7 @@ import { codeBlockStyles } from '../../plugins/code-block/styles';
|
|
|
14
14
|
import { mediaStyles } from './media';
|
|
15
15
|
import { layoutStyles } from './layout';
|
|
16
16
|
import { panelStyles } from '../../plugins/panel/styles';
|
|
17
|
-
import { placeholderTextStyles } from '
|
|
17
|
+
import { placeholderTextStyles } from '@atlaskit/editor-plugin-placeholder-text/styles';
|
|
18
18
|
import { extensionStyles } from '../../plugins/extension/ui/styles';
|
|
19
19
|
import { expandStyles } from '../../plugins/expand/ui/styles';
|
|
20
20
|
import { MediaSharedClassNames } from '@atlaskit/editor-common/styles';
|
|
@@ -4,13 +4,11 @@ export { default as collabEditPlugin } from './collab-edit';
|
|
|
4
4
|
export { default as extensionPlugin } from './extension';
|
|
5
5
|
export { default as insertBlockPlugin } from './insert-block';
|
|
6
6
|
export { default as jiraIssuePlugin } from './jira-issue';
|
|
7
|
-
export { layoutPlugin } from './layout';
|
|
8
7
|
export { default as toolbarListsIndentationPlugin } from './toolbar-lists-indentation';
|
|
9
8
|
export { default as macroPlugin } from './macro';
|
|
10
9
|
export { default as maxContentSizePlugin } from './max-content-size';
|
|
11
10
|
export { default as panelPlugin } from './panel';
|
|
12
11
|
export { default as pastePlugin } from './paste';
|
|
13
|
-
export { placeholderTextPlugin } from './placeholder-text';
|
|
14
12
|
export { default as tasksAndDecisionsPlugin } from './tasks-and-decisions';
|
|
15
13
|
export { default as breakoutPlugin } from './breakout';
|
|
16
14
|
export { default as alignmentPlugin } from './alignment';
|
|
@@ -10,12 +10,13 @@ import type { QuickInsertPlugin } from '@atlaskit/editor-plugin-quick-insert';
|
|
|
10
10
|
import type { BlockTypePlugin } from '@atlaskit/editor-plugin-block-type';
|
|
11
11
|
import type { CodeBlockPlugin } from '../code-block';
|
|
12
12
|
import type { PanelPlugin } from '../panel';
|
|
13
|
-
import type { LayoutPlugin } from '
|
|
13
|
+
import type { LayoutPlugin } from '@atlaskit/editor-plugin-layout';
|
|
14
14
|
import type { RulePlugin } from '@atlaskit/editor-plugin-rule';
|
|
15
15
|
import type { MediaPlugin } from '@atlaskit/editor-plugin-media';
|
|
16
16
|
import type { TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
|
|
17
17
|
import type { MentionsPlugin } from '@atlaskit/editor-plugin-mentions';
|
|
18
18
|
import type { StatusPlugin } from '@atlaskit/editor-plugin-status';
|
|
19
|
+
import type { PlaceholderTextPlugin } from '@atlaskit/editor-plugin-placeholder-text';
|
|
19
20
|
import type { ExpandPlugin } from '../expand';
|
|
20
21
|
export type InsertBlockPluginDependencies = [
|
|
21
22
|
FeatureFlagsPlugin,
|
|
@@ -35,5 +36,6 @@ export type InsertBlockPluginDependencies = [
|
|
|
35
36
|
OptionalPlugin<MentionsPlugin>,
|
|
36
37
|
OptionalPlugin<StatusPlugin>,
|
|
37
38
|
OptionalPlugin<LayoutPlugin>,
|
|
38
|
-
OptionalPlugin<ExpandPlugin
|
|
39
|
+
OptionalPlugin<ExpandPlugin>,
|
|
40
|
+
OptionalPlugin<PlaceholderTextPlugin>
|
|
39
41
|
];
|
|
@@ -18,11 +18,11 @@ import type { CodeBlockOptions } from '../plugins/code-block/types';
|
|
|
18
18
|
import type { CollabEditOptions } from '@atlaskit/editor-common/collab';
|
|
19
19
|
import type { DatePluginConfig } from '@atlaskit/editor-plugin-date';
|
|
20
20
|
import type { FindReplaceOptions } from '../plugins/find-replace/types';
|
|
21
|
-
import type { LayoutPluginOptions } from '
|
|
21
|
+
import type { LayoutPluginOptions } from '@atlaskit/editor-plugin-layout';
|
|
22
22
|
import type { MediaOptions, MediaState } from '@atlaskit/editor-plugin-media/types';
|
|
23
23
|
import type { MentionPluginConfig } from '@atlaskit/editor-plugin-mentions';
|
|
24
24
|
import type { PanelPluginConfig } from '../plugins/panel/types';
|
|
25
|
-
import type { PlaceholderTextOptions } from '
|
|
25
|
+
import type { PlaceholderTextOptions } from '@atlaskit/editor-plugin-placeholder-text';
|
|
26
26
|
import type { TextColorPluginConfig } from '@atlaskit/editor-plugin-text-color';
|
|
27
27
|
import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
|
|
28
28
|
import type { EditorAppearance } from './editor-appearance';
|
|
@@ -17,5 +17,5 @@ type Props = {
|
|
|
17
17
|
isLoading?: boolean;
|
|
18
18
|
featureFlags?: FeatureFlags;
|
|
19
19
|
} & WithAnalyticsEventsProps;
|
|
20
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<Omit<Props, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "autoSaveReject" | "onChange" | "isLoading" | "fields" | "key" | "parameters" | "
|
|
20
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<Omit<Props, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "autoSaveReject" | "onChange" | "isLoading" | "fields" | "key" | "parameters" | "onCancel" | "featureFlags" | "autoSave" | "analyticsContext" | "errorMessage" | "extensionManifest" | "autoSaveTrigger" | "showHeader" | "closeOnEsc"> & React.RefAttributes<any>>;
|
|
21
21
|
export default _default;
|
|
@@ -4,13 +4,11 @@ export { default as collabEditPlugin } from './collab-edit';
|
|
|
4
4
|
export { default as extensionPlugin } from './extension';
|
|
5
5
|
export { default as insertBlockPlugin } from './insert-block';
|
|
6
6
|
export { default as jiraIssuePlugin } from './jira-issue';
|
|
7
|
-
export { layoutPlugin } from './layout';
|
|
8
7
|
export { default as toolbarListsIndentationPlugin } from './toolbar-lists-indentation';
|
|
9
8
|
export { default as macroPlugin } from './macro';
|
|
10
9
|
export { default as maxContentSizePlugin } from './max-content-size';
|
|
11
10
|
export { default as panelPlugin } from './panel';
|
|
12
11
|
export { default as pastePlugin } from './paste';
|
|
13
|
-
export { placeholderTextPlugin } from './placeholder-text';
|
|
14
12
|
export { default as tasksAndDecisionsPlugin } from './tasks-and-decisions';
|
|
15
13
|
export { default as breakoutPlugin } from './breakout';
|
|
16
14
|
export { default as alignmentPlugin } from './alignment';
|
|
@@ -10,12 +10,13 @@ import type { QuickInsertPlugin } from '@atlaskit/editor-plugin-quick-insert';
|
|
|
10
10
|
import type { BlockTypePlugin } from '@atlaskit/editor-plugin-block-type';
|
|
11
11
|
import type { CodeBlockPlugin } from '../code-block';
|
|
12
12
|
import type { PanelPlugin } from '../panel';
|
|
13
|
-
import type { LayoutPlugin } from '
|
|
13
|
+
import type { LayoutPlugin } from '@atlaskit/editor-plugin-layout';
|
|
14
14
|
import type { RulePlugin } from '@atlaskit/editor-plugin-rule';
|
|
15
15
|
import type { MediaPlugin } from '@atlaskit/editor-plugin-media';
|
|
16
16
|
import type { TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
|
|
17
17
|
import type { MentionsPlugin } from '@atlaskit/editor-plugin-mentions';
|
|
18
18
|
import type { StatusPlugin } from '@atlaskit/editor-plugin-status';
|
|
19
|
+
import type { PlaceholderTextPlugin } from '@atlaskit/editor-plugin-placeholder-text';
|
|
19
20
|
import type { ExpandPlugin } from '../expand';
|
|
20
21
|
export type InsertBlockPluginDependencies = [
|
|
21
22
|
FeatureFlagsPlugin,
|
|
@@ -35,5 +36,6 @@ export type InsertBlockPluginDependencies = [
|
|
|
35
36
|
OptionalPlugin<MentionsPlugin>,
|
|
36
37
|
OptionalPlugin<StatusPlugin>,
|
|
37
38
|
OptionalPlugin<LayoutPlugin>,
|
|
38
|
-
OptionalPlugin<ExpandPlugin
|
|
39
|
+
OptionalPlugin<ExpandPlugin>,
|
|
40
|
+
OptionalPlugin<PlaceholderTextPlugin>
|
|
39
41
|
];
|
|
@@ -18,11 +18,11 @@ import type { CodeBlockOptions } from '../plugins/code-block/types';
|
|
|
18
18
|
import type { CollabEditOptions } from '@atlaskit/editor-common/collab';
|
|
19
19
|
import type { DatePluginConfig } from '@atlaskit/editor-plugin-date';
|
|
20
20
|
import type { FindReplaceOptions } from '../plugins/find-replace/types';
|
|
21
|
-
import type { LayoutPluginOptions } from '
|
|
21
|
+
import type { LayoutPluginOptions } from '@atlaskit/editor-plugin-layout';
|
|
22
22
|
import type { MediaOptions, MediaState } from '@atlaskit/editor-plugin-media/types';
|
|
23
23
|
import type { MentionPluginConfig } from '@atlaskit/editor-plugin-mentions';
|
|
24
24
|
import type { PanelPluginConfig } from '../plugins/panel/types';
|
|
25
|
-
import type { PlaceholderTextOptions } from '
|
|
25
|
+
import type { PlaceholderTextOptions } from '@atlaskit/editor-plugin-placeholder-text';
|
|
26
26
|
import type { TextColorPluginConfig } from '@atlaskit/editor-plugin-text-color';
|
|
27
27
|
import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
|
|
28
28
|
import type { EditorAppearance } from './editor-appearance';
|
|
@@ -17,5 +17,5 @@ type Props = {
|
|
|
17
17
|
isLoading?: boolean;
|
|
18
18
|
featureFlags?: FeatureFlags;
|
|
19
19
|
} & WithAnalyticsEventsProps;
|
|
20
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<Omit<Props, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "autoSaveReject" | "onChange" | "isLoading" | "fields" | "key" | "parameters" | "
|
|
20
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<Omit<Props, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "autoSaveReject" | "onChange" | "isLoading" | "fields" | "key" | "parameters" | "onCancel" | "featureFlags" | "autoSave" | "analyticsContext" | "errorMessage" | "extensionManifest" | "autoSaveTrigger" | "showHeader" | "closeOnEsc"> & React.RefAttributes<any>>;
|
|
21
21
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "189.1.
|
|
3
|
+
"version": "189.1.13",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@atlaskit/code": "^14.6.0",
|
|
54
54
|
"@atlaskit/date": "^0.10.0",
|
|
55
55
|
"@atlaskit/datetime-picker": "^12.10.0",
|
|
56
|
-
"@atlaskit/editor-common": "^76.
|
|
56
|
+
"@atlaskit/editor-common": "^76.18.0",
|
|
57
57
|
"@atlaskit/editor-json-transformer": "^8.10.0",
|
|
58
58
|
"@atlaskit/editor-markdown-transformer": "^5.2.5",
|
|
59
59
|
"@atlaskit/editor-palette": "1.5.1",
|
|
@@ -84,12 +84,14 @@
|
|
|
84
84
|
"@atlaskit/editor-plugin-history": "^0.1.0",
|
|
85
85
|
"@atlaskit/editor-plugin-hyperlink": "^0.5.0",
|
|
86
86
|
"@atlaskit/editor-plugin-image-upload": "^0.2.0",
|
|
87
|
+
"@atlaskit/editor-plugin-layout": "^0.1.0",
|
|
87
88
|
"@atlaskit/editor-plugin-list": "^1.3.0",
|
|
88
89
|
"@atlaskit/editor-plugin-media": "^0.3.0",
|
|
89
90
|
"@atlaskit/editor-plugin-mentions": "^0.1.0",
|
|
90
91
|
"@atlaskit/editor-plugin-paste": "^0.1.0",
|
|
91
92
|
"@atlaskit/editor-plugin-paste-options-toolbar": "^0.2.0",
|
|
92
93
|
"@atlaskit/editor-plugin-placeholder": "^0.1.0",
|
|
94
|
+
"@atlaskit/editor-plugin-placeholder-text": "^0.1.0",
|
|
93
95
|
"@atlaskit/editor-plugin-quick-insert": "^0.2.0",
|
|
94
96
|
"@atlaskit/editor-plugin-rule": "^0.1.0",
|
|
95
97
|
"@atlaskit/editor-plugin-save-on-enter": "^0.1.0",
|
package/report.api.md
CHANGED
|
@@ -49,6 +49,7 @@ import type { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
|
49
49
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
50
50
|
import { JSONDocNode } from '@atlaskit/editor-json-transformer/types';
|
|
51
51
|
import { jsx } from '@emotion/react';
|
|
52
|
+
import type { LayoutPluginOptions } from '@atlaskit/editor-plugin-layout';
|
|
52
53
|
import type { LinkingOptions } from '@atlaskit/editor-common/types';
|
|
53
54
|
import type { LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
|
|
54
55
|
import { MacroAttributes } from '@atlaskit/editor-common/provider-factory';
|
|
@@ -62,6 +63,7 @@ import { MentionResource } from '@atlaskit/mention/resource';
|
|
|
62
63
|
import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
|
|
63
64
|
import { Node as Node_2 } from '@atlaskit/editor-prosemirror/model';
|
|
64
65
|
import { PerformanceTracking } from '@atlaskit/editor-common/types';
|
|
66
|
+
import type { PlaceholderTextOptions } from '@atlaskit/editor-plugin-placeholder-text';
|
|
65
67
|
import type { PluginConfig } from '@atlaskit/editor-plugin-table/types';
|
|
66
68
|
import { PortalProvider } from '@atlaskit/editor-common/portal-provider';
|
|
67
69
|
import { PortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
|
|
@@ -628,16 +630,6 @@ export type InlineCommentViewComponentProps = AnnotationComponentProps & {
|
|
|
628
630
|
|
|
629
631
|
export { INPUT_METHOD };
|
|
630
632
|
|
|
631
|
-
// @public (undocumented)
|
|
632
|
-
interface LayoutPluginOptions extends LongPressSelectionPluginOptions {
|
|
633
|
-
// (undocumented)
|
|
634
|
-
allowBreakout?: boolean;
|
|
635
|
-
// (undocumented)
|
|
636
|
-
UNSAFE_addSidebarLayouts?: boolean;
|
|
637
|
-
// (undocumented)
|
|
638
|
-
UNSAFE_allowSingleColumnLayout?: boolean;
|
|
639
|
-
}
|
|
640
|
-
|
|
641
633
|
export { MacroAttributes };
|
|
642
634
|
|
|
643
635
|
export { MacroProvider };
|
|
@@ -679,12 +671,6 @@ interface PanelPluginConfig {
|
|
|
679
671
|
allowCustomPanelEdit?: boolean;
|
|
680
672
|
}
|
|
681
673
|
|
|
682
|
-
// @public (undocumented)
|
|
683
|
-
interface PlaceholderTextOptions {
|
|
684
|
-
// (undocumented)
|
|
685
|
-
allowInserting?: boolean;
|
|
686
|
-
}
|
|
687
|
-
|
|
688
674
|
export { PortalProvider };
|
|
689
675
|
|
|
690
676
|
export { PortalProviderAPI };
|
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -38,6 +38,7 @@ import type { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
|
38
38
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
39
39
|
import { JSONDocNode } from '@atlaskit/editor-json-transformer/types';
|
|
40
40
|
import { jsx } from '@emotion/react';
|
|
41
|
+
import type { LayoutPluginOptions } from '@atlaskit/editor-plugin-layout';
|
|
41
42
|
import type { LinkingOptions } from '@atlaskit/editor-common/types';
|
|
42
43
|
import type { LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
|
|
43
44
|
import { MacroAttributes } from '@atlaskit/editor-common/provider-factory';
|
|
@@ -51,6 +52,7 @@ import { MentionResource } from '@atlaskit/mention/resource';
|
|
|
51
52
|
import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
|
|
52
53
|
import { Node as Node_2 } from '@atlaskit/editor-prosemirror/model';
|
|
53
54
|
import { PerformanceTracking } from '@atlaskit/editor-common/types';
|
|
55
|
+
import type { PlaceholderTextOptions } from '@atlaskit/editor-plugin-placeholder-text';
|
|
54
56
|
import type { PluginConfig } from '@atlaskit/editor-plugin-table/types';
|
|
55
57
|
import { PortalProvider } from '@atlaskit/editor-common/portal-provider';
|
|
56
58
|
import { PortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
|
|
@@ -576,16 +578,6 @@ export type InlineCommentViewComponentProps = AnnotationComponentProps & {
|
|
|
576
578
|
|
|
577
579
|
export { INPUT_METHOD }
|
|
578
580
|
|
|
579
|
-
// @public (undocumented)
|
|
580
|
-
interface LayoutPluginOptions extends LongPressSelectionPluginOptions {
|
|
581
|
-
// (undocumented)
|
|
582
|
-
allowBreakout?: boolean;
|
|
583
|
-
// (undocumented)
|
|
584
|
-
UNSAFE_addSidebarLayouts?: boolean;
|
|
585
|
-
// (undocumented)
|
|
586
|
-
UNSAFE_allowSingleColumnLayout?: boolean;
|
|
587
|
-
}
|
|
588
|
-
|
|
589
581
|
export { MacroAttributes }
|
|
590
582
|
|
|
591
583
|
export { MacroProvider }
|
|
@@ -627,12 +619,6 @@ interface PanelPluginConfig {
|
|
|
627
619
|
allowCustomPanelEdit?: boolean;
|
|
628
620
|
}
|
|
629
621
|
|
|
630
|
-
// @public (undocumented)
|
|
631
|
-
interface PlaceholderTextOptions {
|
|
632
|
-
// (undocumented)
|
|
633
|
-
allowInserting?: boolean;
|
|
634
|
-
}
|
|
635
|
-
|
|
636
622
|
export { PortalProvider }
|
|
637
623
|
|
|
638
624
|
export { PortalProviderAPI }
|