@atlaskit/editor-core 189.1.10 → 189.1.12

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.
Files changed (75) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/cjs/plugins/index.js +0 -7
  3. package/dist/cjs/plugins/insert-block/index.js +3 -8
  4. package/dist/cjs/presets/universal.js +2 -1
  5. package/dist/cjs/ui/ContentStyles/index.js +8 -8
  6. package/dist/cjs/{plugins/layout/styles.js → ui/ContentStyles/layout.js} +1 -0
  7. package/dist/cjs/version-wrapper.js +1 -1
  8. package/dist/es2019/plugins/index.js +0 -1
  9. package/dist/es2019/plugins/insert-block/index.js +3 -8
  10. package/dist/es2019/presets/universal.js +2 -1
  11. package/dist/es2019/ui/ContentStyles/index.js +1 -1
  12. package/dist/es2019/{plugins/layout/styles.js → ui/ContentStyles/layout.js} +1 -0
  13. package/dist/es2019/version-wrapper.js +1 -1
  14. package/dist/esm/plugins/index.js +0 -1
  15. package/dist/esm/plugins/insert-block/index.js +3 -8
  16. package/dist/esm/presets/universal.js +2 -1
  17. package/dist/esm/ui/ContentStyles/index.js +1 -1
  18. package/dist/esm/{plugins/layout/styles.js → ui/ContentStyles/layout.js} +1 -0
  19. package/dist/esm/version-wrapper.js +1 -1
  20. package/dist/types/plugins/index.d.ts +0 -1
  21. package/dist/types/plugins/insert-block/types.d.ts +1 -1
  22. package/dist/types/types/editor-props.d.ts +1 -1
  23. package/dist/types/{plugins/layout/styles.d.ts → ui/ContentStyles/layout.d.ts} +1 -1
  24. package/dist/types-ts4.5/plugins/index.d.ts +0 -1
  25. package/dist/types-ts4.5/plugins/insert-block/types.d.ts +1 -1
  26. package/dist/types-ts4.5/types/editor-props.d.ts +1 -1
  27. package/dist/types-ts4.5/{plugins/layout/styles.d.ts → ui/ContentStyles/layout.d.ts} +1 -1
  28. package/package.json +2 -1
  29. package/report.api.md +1 -10
  30. package/tmp/api-report-tmp.d.ts +1 -10
  31. package/dist/cjs/plugins/layout/actions.js +0 -346
  32. package/dist/cjs/plugins/layout/index.js +0 -92
  33. package/dist/cjs/plugins/layout/pm-plugins/main.js +0 -148
  34. package/dist/cjs/plugins/layout/pm-plugins/plugin-key.js +0 -8
  35. package/dist/cjs/plugins/layout/pm-plugins/types.js +0 -5
  36. package/dist/cjs/plugins/layout/toolbar-messages.js +0 -39
  37. package/dist/cjs/plugins/layout/toolbar.js +0 -116
  38. package/dist/cjs/plugins/layout/types.js +0 -5
  39. package/dist/cjs/plugins/layout/utils.js +0 -30
  40. package/dist/es2019/plugins/layout/actions.js +0 -329
  41. package/dist/es2019/plugins/layout/index.js +0 -76
  42. package/dist/es2019/plugins/layout/pm-plugins/main.js +0 -142
  43. package/dist/es2019/plugins/layout/pm-plugins/plugin-key.js +0 -2
  44. package/dist/es2019/plugins/layout/pm-plugins/types.js +0 -1
  45. package/dist/es2019/plugins/layout/toolbar-messages.js +0 -33
  46. package/dist/es2019/plugins/layout/toolbar.js +0 -101
  47. package/dist/es2019/plugins/layout/types.js +0 -1
  48. package/dist/es2019/plugins/layout/utils.js +0 -1
  49. package/dist/esm/plugins/layout/actions.js +0 -337
  50. package/dist/esm/plugins/layout/index.js +0 -80
  51. package/dist/esm/plugins/layout/pm-plugins/main.js +0 -141
  52. package/dist/esm/plugins/layout/pm-plugins/plugin-key.js +0 -2
  53. package/dist/esm/plugins/layout/pm-plugins/types.js +0 -1
  54. package/dist/esm/plugins/layout/toolbar-messages.js +0 -33
  55. package/dist/esm/plugins/layout/toolbar.js +0 -109
  56. package/dist/esm/plugins/layout/types.js +0 -1
  57. package/dist/esm/plugins/layout/utils.js +0 -1
  58. package/dist/types/plugins/layout/actions.d.ts +0 -23
  59. package/dist/types/plugins/layout/index.d.ts +0 -16
  60. package/dist/types/plugins/layout/pm-plugins/main.d.ts +0 -6
  61. package/dist/types/plugins/layout/pm-plugins/plugin-key.d.ts +0 -3
  62. package/dist/types/plugins/layout/pm-plugins/types.d.ts +0 -14
  63. package/dist/types/plugins/layout/toolbar-messages.d.ts +0 -32
  64. package/dist/types/plugins/layout/toolbar.d.ts +0 -6
  65. package/dist/types/plugins/layout/types.d.ts +0 -13
  66. package/dist/types/plugins/layout/utils.d.ts +0 -1
  67. package/dist/types-ts4.5/plugins/layout/actions.d.ts +0 -23
  68. package/dist/types-ts4.5/plugins/layout/index.d.ts +0 -19
  69. package/dist/types-ts4.5/plugins/layout/pm-plugins/main.d.ts +0 -6
  70. package/dist/types-ts4.5/plugins/layout/pm-plugins/plugin-key.d.ts +0 -3
  71. package/dist/types-ts4.5/plugins/layout/pm-plugins/types.d.ts +0 -14
  72. package/dist/types-ts4.5/plugins/layout/toolbar-messages.d.ts +0 -32
  73. package/dist/types-ts4.5/plugins/layout/toolbar.d.ts +0 -6
  74. package/dist/types-ts4.5/plugins/layout/types.d.ts +0 -13
  75. package/dist/types-ts4.5/plugins/layout/utils.d.ts +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 189.1.12
4
+
5
+ ### Patch Changes
6
+
7
+ - [#42505](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42505) [`48e5f1efdde`](https://bitbucket.org/atlassian/atlassian-frontend/commits/48e5f1efdde) - Extract layout plugin into new package @atlaskit/editor-plugin-layout.
8
+ - Updated dependencies
9
+
10
+ ## 189.1.11
11
+
12
+ ### Patch Changes
13
+
14
+ - [#42477](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42477) [`8f5175dc714`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8f5175dc714) - Decouple layout plugin from editor-core
15
+
3
16
  ## 189.1.10
4
17
 
5
18
  ### Patch Changes
@@ -125,12 +125,6 @@ Object.defineProperty(exports, "jiraIssuePlugin", {
125
125
  return _jiraIssue.default;
126
126
  }
127
127
  });
128
- Object.defineProperty(exports, "layoutPlugin", {
129
- enumerable: true,
130
- get: function get() {
131
- return _layout.default;
132
- }
133
- });
134
128
  Object.defineProperty(exports, "macroPlugin", {
135
129
  enumerable: true,
136
130
  get: function get() {
@@ -203,7 +197,6 @@ var _collabEdit = _interopRequireDefault(require("./collab-edit"));
203
197
  var _extension = _interopRequireDefault(require("./extension"));
204
198
  var _insertBlock = _interopRequireDefault(require("./insert-block"));
205
199
  var _jiraIssue = _interopRequireDefault(require("./jira-issue"));
206
- var _layout = _interopRequireDefault(require("./layout"));
207
200
  var _toolbarListsIndentation = _interopRequireDefault(require("./toolbar-lists-indentation"));
208
201
  var _macro = _interopRequireDefault(require("./macro"));
209
202
  var _maxContentSize = _interopRequireDefault(require("./max-content-size"));
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.default = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _providerFactory = require("@atlaskit/editor-common/provider-factory");
10
- var _layout = require("../layout");
11
10
  var _macro = require("../macro");
12
11
  var _WithPluginState = _interopRequireDefault(require("../../ui/WithPluginState"));
13
12
  var _ToolbarInsertBlock = _interopRequireDefault(require("./ui/ToolbarInsertBlock"));
@@ -76,14 +75,12 @@ var insertBlockPlugin = function insertBlockPlugin(_ref) {
76
75
  return /*#__PURE__*/_react.default.createElement(_WithPluginState.default, {
77
76
  plugins: {
78
77
  macroState: _pluginKey2.pluginKey,
79
- placeholderTextState: _pluginKey.pluginKey,
80
- layoutState: _layout.pluginKey
78
+ placeholderTextState: _pluginKey.pluginKey
81
79
  },
82
80
  render: function render(_ref3) {
83
81
  var _ref3$macroState = _ref3.macroState,
84
82
  macroState = _ref3$macroState === void 0 ? {} : _ref3$macroState,
85
- placeholderTextState = _ref3.placeholderTextState,
86
- layoutState = _ref3.layoutState;
83
+ placeholderTextState = _ref3.placeholderTextState;
87
84
  return /*#__PURE__*/_react.default.createElement(ToolbarInsertBlockWithInjectionApi, {
88
85
  pluginInjectionApi: api,
89
86
  editorView: editorView,
@@ -100,7 +97,6 @@ var insertBlockPlugin = function insertBlockPlugin(_ref) {
100
97
  featureFlags: featureFlags,
101
98
  macroState: macroState,
102
99
  placeholderTextState: placeholderTextState,
103
- layoutState: layoutState,
104
100
  providers: providers,
105
101
  options: options
106
102
  });
@@ -132,7 +128,6 @@ function ToolbarInsertBlockWithInjectionApi(_ref4) {
132
128
  options = _ref4.options,
133
129
  macroState = _ref4.macroState,
134
130
  placeholderTextState = _ref4.placeholderTextState,
135
- layoutState = _ref4.layoutState,
136
131
  featureFlags = _ref4.featureFlags;
137
132
  var buttons = toolbarSizeToButtons(toolbarSize);
138
133
  var _useSharedPluginState = (0, _hooks.useSharedPluginState)(pluginInjectionApi, ['hyperlink', 'date', 'imageUpload', 'mention', 'emoji', 'blockType', 'media', 'typeAhead']),
@@ -158,7 +153,7 @@ function ToolbarInsertBlockWithInjectionApi(_ref4) {
158
153
  decisionSupported: !!editorView.state.schema.nodes.decisionItem,
159
154
  dateEnabled: !!dateState,
160
155
  placeholderTextEnabled: placeholderTextState && placeholderTextState.allowInserting,
161
- layoutSectionEnabled: !!layoutState,
156
+ layoutSectionEnabled: Boolean(pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.layout),
162
157
  expandEnabled: !!options.allowExpand,
163
158
  mediaUploadsEnabled: (_ref5 = mediaState && mediaState.allowsUploads) !== null && _ref5 !== void 0 ? _ref5 : undefined,
164
159
  onShowMediaPicker: (_ref6 = mediaState && mediaState.showMediaPicker) !== null && _ref6 !== void 0 ? _ref6 : undefined,
@@ -26,6 +26,7 @@ var _editorPluginGuideline = require("@atlaskit/editor-plugin-guideline");
26
26
  var _editorPluginContextPanel = require("@atlaskit/editor-plugin-context-panel");
27
27
  var _editorPluginGrid = require("@atlaskit/editor-plugin-grid");
28
28
  var _editorPluginCard = require("@atlaskit/editor-plugin-card");
29
+ var _editorPluginLayout = require("@atlaskit/editor-plugin-layout");
29
30
  var _editorPluginTable = require("@atlaskit/editor-plugin-table");
30
31
  var _editorPluginContentInsertion = require("@atlaskit/editor-plugin-content-insertion");
31
32
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
@@ -293,7 +294,7 @@ function createUniversalPreset(appearance, props, featureFlags, prevAppearance,
293
294
  return builder.add([plugin, options]);
294
295
  }
295
296
  return builder;
296
- }).maybeAdd(_plugins.layoutPlugin, function (plugin, builder) {
297
+ }).maybeAdd(_editorPluginLayout.layoutPlugin, function (plugin, builder) {
297
298
  if (props.allowLayouts) {
298
299
  var layoutOptions = (0, _typeof2.default)(props.allowLayouts) === 'object' ? props.allowLayouts : {};
299
300
  return builder.add([plugin, _objectSpread(_objectSpread({}, layoutOptions), {}, {
@@ -18,13 +18,13 @@ var _styles3 = require("@atlaskit/editor-plugin-block-type/styles");
18
18
  var _styles4 = require("@atlaskit/editor-plugin-paste-options-toolbar/styles");
19
19
  var _styles5 = require("../../plugins/code-block/styles");
20
20
  var _media = require("./media");
21
- var _styles6 = require("../../plugins/layout/styles");
22
- var _styles7 = require("../../plugins/panel/styles");
23
- var _styles8 = require("../../plugins/placeholder-text/styles");
24
- var _styles9 = require("../../plugins/extension/ui/styles");
25
- var _styles10 = require("../../plugins/expand/ui/styles");
26
- var _styles11 = require("../../plugins/find-replace/styles");
27
- var _styles12 = require("../../plugins/tasks-and-decisions/styles");
21
+ var _layout = require("./layout");
22
+ var _styles6 = require("../../plugins/panel/styles");
23
+ var _styles7 = require("../../plugins/placeholder-text/styles");
24
+ var _styles8 = require("../../plugins/extension/ui/styles");
25
+ var _styles9 = require("../../plugins/expand/ui/styles");
26
+ var _styles10 = require("../../plugins/find-replace/styles");
27
+ var _styles11 = require("../../plugins/tasks-and-decisions/styles");
28
28
  var _status = require("./status");
29
29
  var _date = require("./date");
30
30
  var _getInlineNodeViewProducer = require("../../nodeviews/getInlineNodeViewProducer.styles");
@@ -47,7 +47,7 @@ var placeholderStyles = exports.placeholderStyles = (0, _react2.css)(_templateOb
47
47
  var contentStyles = function contentStyles(props) {
48
48
  return (0, _react2.css)(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n .ProseMirror {\n outline: none;\n font-size: ", "px;\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n }\n\n .ProseMirror[contenteditable='false'] .taskItemView-content-wrap {\n pointer-events: none;\n opacity: 0.7;\n }\n\n .ProseMirror-hideselection *::selection {\n background: transparent;\n }\n\n .ProseMirror-hideselection *::-moz-selection {\n background: transparent;\n }\n\n .ProseMirror-selectednode {\n outline: none;\n }\n\n .ProseMirror-selectednode:empty {\n outline: 2px solid ", ";\n }\n\n ", "\n ", "\n ", "\n\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\n .panelView-content-wrap {\n box-sizing: border-box;\n }\n\n .mediaGroupView-content-wrap ul {\n padding: 0;\n }\n\n /** Needed to override any cleared floats, e.g. image wrapping */\n\n div.fabric-editor-block-mark[class^='fabric-editor-align'] {\n clear: none !important;\n }\n\n .fabric-editor-align-end {\n text-align: right;\n }\n\n .fabric-editor-align-start {\n text-align: left;\n }\n\n .fabric-editor-align-center {\n text-align: center;\n }\n\n .pm-table-header-content-wrap :not(.fabric-editor-alignment),\n .pm-table-header-content-wrap\n :not(p, .fabric-editor-block-mark)\n + div.fabric-editor-block-mark,\n .pm-table-cell-content-wrap\n :not(p, .fabric-editor-block-mark)\n + div.fabric-editor-block-mark {\n p:first-of-type {\n margin-top: 0;\n }\n }\n\n .hyperlink-floating-toolbar,\n .", " {\n padding: 0;\n }\n\n /* Link icon in the Atlaskit package\n is bigger than the others\n */\n .hyperlink-open-link {\n svg {\n max-width: 18px;\n }\n &[href] {\n padding: 0 4px;\n }\n }\n"])), (0, _editorSharedStyles.editorFontSize)({
49
49
  theme: props.theme
50
- }), _styles.whitespaceSharedStyles, _styles.paragraphSharedStyles, _styles.listsSharedStyles, _styles.indentationSharedStyles, _styles.shadowSharedStyle, _getInlineNodeViewProducer.InlineNodeViewSharedStyles, "var(--ds-border-focused, #8cf)", _styles8.placeholderTextStyles, placeholderStyles, (0, _styles5.codeBlockStyles)(props), (0, _styles3.blocktypeStyles)(props), (0, _styles.codeMarkSharedStyles)(props), _styles.textColorStyles, listsStyles, ruleStyles(props), _media.mediaStyles, (0, _styles6.layoutStyles)(props), _styles2.telepointerStyle, _selection.gapCursorStyles, (0, _commonStyles.tableStyles)(props), (0, _styles7.panelStyles)(props), mentionsStyles, emojiStyles, _styles.tasksAndDecisionsStyles, _styles.gridStyles, linkStyles, _styles.blockMarksSharedStyles, _styles.dateSharedStyle, _styles9.extensionStyles, (0, _styles10.expandStyles)(props), _styles11.findReplaceStyles, _styles4.textHighlightStyle, _styles12.taskDecisionStyles, _status.statusStyles, (0, _styles.annotationSharedStyles)(props), _styles.smartCardStyles, _styles.smartCardSharedStyles, _date.dateStyles, _styles.embedCardStyles, _styles.unsupportedStyles, _styles.resizerStyles, _styles.MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT);
50
+ }), _styles.whitespaceSharedStyles, _styles.paragraphSharedStyles, _styles.listsSharedStyles, _styles.indentationSharedStyles, _styles.shadowSharedStyle, _getInlineNodeViewProducer.InlineNodeViewSharedStyles, "var(--ds-border-focused, #8cf)", _styles7.placeholderTextStyles, placeholderStyles, (0, _styles5.codeBlockStyles)(props), (0, _styles3.blocktypeStyles)(props), (0, _styles.codeMarkSharedStyles)(props), _styles.textColorStyles, listsStyles, ruleStyles(props), _media.mediaStyles, (0, _layout.layoutStyles)(props), _styles2.telepointerStyle, _selection.gapCursorStyles, (0, _commonStyles.tableStyles)(props), (0, _styles6.panelStyles)(props), mentionsStyles, emojiStyles, _styles.tasksAndDecisionsStyles, _styles.gridStyles, linkStyles, _styles.blockMarksSharedStyles, _styles.dateSharedStyle, _styles8.extensionStyles, (0, _styles9.expandStyles)(props), _styles10.findReplaceStyles, _styles4.textHighlightStyle, _styles11.taskDecisionStyles, _status.statusStyles, (0, _styles.annotationSharedStyles)(props), _styles.smartCardStyles, _styles.smartCardSharedStyles, _date.dateStyles, _styles.embedCardStyles, _styles.unsupportedStyles, _styles.resizerStyles, _styles.MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT);
51
51
  };
52
52
  var createEditorContentStyle = exports.createEditorContentStyle = function createEditorContentStyle(styles) {
53
53
  return /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
@@ -27,6 +27,7 @@ var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
27
27
  var _types = require("@atlaskit/editor-plugin-table/types");
28
28
  var _consts = require("@atlaskit/editor-plugin-table/ui/consts");
29
29
  var _templateObject; // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
30
+ // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
30
31
  var layoutStyles = exports.layoutStyles = function layoutStyles(props) {
31
32
  return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n .ProseMirror {\n ", " [data-layout-section] {\n // TODO: Migrate away from gridSize\n // Recommendation: Replace directly with 7px\n margin: ", "px -", "px 0;\n transition: border-color 0.3s ", ";\n cursor: pointer;\n\n /* Inner cursor located 26px from left */\n [data-layout-column] {\n flex: 1;\n min-width: 0;\n border: ", "px solid\n ", ";\n border-radius: 4px;\n padding: ", "px;\n box-sizing: border-box;\n\n > div {\n > :not(style):first-child,\n > style:first-child + * {\n margin-top: 0;\n }\n\n > .ProseMirror-gapcursor:first-child + *,\n > style:first-child + .ProseMirror-gapcursor + * {\n margin-top: 0;\n }\n\n > .ProseMirror-gapcursor:first-child + span + *,\n > style:first-child + .ProseMirror-gapcursor:first-child + span + * {\n margin-top: 0;\n }\n\n > .embedCardView-content-wrap:first-of-type .rich-media-item {\n margin-top: 0;\n }\n\n > .mediaSingleView-content-wrap:first-of-type .rich-media-item {\n margin-top: 0;\n }\n\n > .ProseMirror-gapcursor.-right:first-child\n + .mediaSingleView-content-wrap\n .rich-media-item,\n > style:first-child\n + .ProseMirror-gapcursor.-right\n + .mediaSingleView-content-wrap\n .rich-media-item,\n > .ProseMirror-gapcursor.-right:first-of-type\n + .embedCardView-content-wrap\n .rich-media-item {\n margin-top: 0;\n }\n\n > .ProseMirror-gapcursor:first-child\n + span\n + .mediaSingleView-content-wrap\n .rich-media-item,\n > style:first-child\n + .ProseMirror-gapcursor\n + span\n + .mediaSingleView-content-wrap\n .rich-media-item {\n margin-top: 0;\n }\n\n /* Prevent first DecisionWrapper's margin-top: 8px from shifting decisions down\n and shrinking layout's node selectable area (leniency margin) */\n > [data-node-type='decisionList'] {\n li:first-of-type [data-decision-wrapper] {\n margin-top: 0;\n }\n }\n }\n\n /* Make the 'content' fill the entire height of the layout column to allow click\n handler of layout section nodeview to target only data-layout-column */\n [data-layout-content] {\n height: 100%;\n cursor: text;\n }\n }\n\n [data-layout-column] + [data-layout-column] {\n margin-left: ", "px;\n }\n\n @media screen and (max-width: ", "px) {\n [data-layout-column] + [data-layout-column] {\n margin-left: 0;\n }\n }\n\n // TODO: Remove the border styles below once design tokens have been enabled and fallbacks are no longer triggered.\n // This is because the default state already uses the same token and, as such, the hover style won't change anything.\n // https://product-fabric.atlassian.net/browse/DSP-4441\n /* Shows the border when cursor is inside a layout */\n &.selected [data-layout-column],\n &:hover [data-layout-column] {\n border: ", "px solid\n ", ";\n }\n\n &.selected.danger > [data-layout-column] {\n background-color: ", ";\n border-color: ", ";\n }\n\n &.", ":not(.danger) {\n [data-layout-column] {\n ", "\n }\n }\n }\n }\n\n .fabric-editor--full-width-mode .ProseMirror {\n [data-layout-section] {\n .", " {\n margin: 0 ", "px;\n }\n }\n }\n"])), _styles.columnLayoutSharedStyle, (0, _constants.gridSize)() - 1, _editorSharedStyles.akLayoutGutterOffset, _editorSharedStyles.akEditorSwoopCubicBezier, _editorSharedStyles.akEditorSelectedBorderSize, (0, _components.themed)({
32
33
  light: "var(--ds-border, ".concat(_colors.N40A, ")"),
@@ -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 = "189.1.10";
8
+ var version = exports.version = "189.1.12";
9
9
  var nextMajorVersion = exports.nextMajorVersion = function nextMajorVersion() {
10
10
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
11
11
  };
@@ -4,7 +4,6 @@ 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 { default as 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';
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import { WithProviders } from '@atlaskit/editor-common/provider-factory';
3
- import { pluginKey as layoutStateKey } from '../layout';
4
3
  import { insertMacroFromMacroBrowser } from '../macro';
5
4
  import WithPluginState from '../../ui/WithPluginState';
6
5
  import ToolbarInsertBlock from './ui/ToolbarInsertBlock';
@@ -68,13 +67,11 @@ const insertBlockPlugin = ({
68
67
  return /*#__PURE__*/React.createElement(WithPluginState, {
69
68
  plugins: {
70
69
  macroState: macroStateKey,
71
- placeholderTextState: placeholderTextStateKey,
72
- layoutState: layoutStateKey
70
+ placeholderTextState: placeholderTextStateKey
73
71
  },
74
72
  render: ({
75
73
  macroState = {},
76
- placeholderTextState,
77
- layoutState
74
+ placeholderTextState
78
75
  }) => {
79
76
  return /*#__PURE__*/React.createElement(ToolbarInsertBlockWithInjectionApi, {
80
77
  pluginInjectionApi: api,
@@ -92,7 +89,6 @@ const insertBlockPlugin = ({
92
89
  featureFlags: featureFlags,
93
90
  macroState: macroState,
94
91
  placeholderTextState: placeholderTextState,
95
- layoutState: layoutState,
96
92
  providers: providers,
97
93
  options: options
98
94
  });
@@ -123,7 +119,6 @@ function ToolbarInsertBlockWithInjectionApi({
123
119
  options,
124
120
  macroState,
125
121
  placeholderTextState,
126
- layoutState,
127
122
  featureFlags
128
123
  }) {
129
124
  var _ref, _ref2, _pluginInjectionApi$i, _pluginInjectionApi$c, _pluginInjectionApi$p, _pluginInjectionApi$b;
@@ -152,7 +147,7 @@ function ToolbarInsertBlockWithInjectionApi({
152
147
  decisionSupported: !!editorView.state.schema.nodes.decisionItem,
153
148
  dateEnabled: !!dateState,
154
149
  placeholderTextEnabled: placeholderTextState && placeholderTextState.allowInserting,
155
- layoutSectionEnabled: !!layoutState,
150
+ layoutSectionEnabled: Boolean(pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.layout),
156
151
  expandEnabled: !!options.allowExpand,
157
152
  mediaUploadsEnabled: (_ref = mediaState && mediaState.allowsUploads) !== null && _ref !== void 0 ? _ref : undefined,
158
153
  onShowMediaPicker: (_ref2 = mediaState && mediaState.showMediaPicker) !== null && _ref2 !== void 0 ? _ref2 : undefined,
@@ -1,4 +1,4 @@
1
- import { breakoutPlugin, collabEditPlugin, dataConsumerMarkPlugin, extensionPlugin, insertBlockPlugin, jiraIssuePlugin, layoutPlugin, toolbarListsIndentationPlugin, macroPlugin, maxContentSizePlugin, panelPlugin, placeholderTextPlugin, tasksAndDecisionsPlugin, alignmentPlugin, indentationPlugin, customAutoformatPlugin, feedbackDialogPlugin, expandPlugin, isExpandInsertionEnabled, mobileDimensionsPlugin, findReplacePlugin, mobileSelectionPlugin, annotationPlugin, avatarGroupPlugin, viewUpdateSubscriptionPlugin, beforePrimaryToolbarPlugin, codeBidiWarningPlugin } from '../plugins';
1
+ import { breakoutPlugin, collabEditPlugin, dataConsumerMarkPlugin, extensionPlugin, insertBlockPlugin, jiraIssuePlugin, toolbarListsIndentationPlugin, macroPlugin, maxContentSizePlugin, panelPlugin, placeholderTextPlugin, tasksAndDecisionsPlugin, alignmentPlugin, indentationPlugin, customAutoformatPlugin, feedbackDialogPlugin, expandPlugin, isExpandInsertionEnabled, mobileDimensionsPlugin, findReplacePlugin, mobileSelectionPlugin, annotationPlugin, avatarGroupPlugin, viewUpdateSubscriptionPlugin, beforePrimaryToolbarPlugin, codeBidiWarningPlugin } from '../plugins';
2
2
  import { textColorPlugin } from '@atlaskit/editor-plugin-text-color';
3
3
  import { historyPlugin } from '@atlaskit/editor-plugin-history';
4
4
  import { statusPlugin } from '@atlaskit/editor-plugin-status';
@@ -17,6 +17,7 @@ import { guidelinePlugin } from '@atlaskit/editor-plugin-guideline';
17
17
  import { contextPanelPlugin } from '@atlaskit/editor-plugin-context-panel';
18
18
  import { gridPlugin } from '@atlaskit/editor-plugin-grid';
19
19
  import { cardPlugin } from '@atlaskit/editor-plugin-card';
20
+ import { layoutPlugin } from '@atlaskit/editor-plugin-layout';
20
21
  import { tablesPlugin } from '@atlaskit/editor-plugin-table';
21
22
  import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
22
23
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
@@ -10,7 +10,7 @@ import { blocktypeStyles } from '@atlaskit/editor-plugin-block-type/styles';
10
10
  import { textHighlightStyle } from '@atlaskit/editor-plugin-paste-options-toolbar/styles';
11
11
  import { codeBlockStyles } from '../../plugins/code-block/styles';
12
12
  import { mediaStyles } from './media';
13
- import { layoutStyles } from '../../plugins/layout/styles';
13
+ import { layoutStyles } from './layout';
14
14
  import { panelStyles } from '../../plugins/panel/styles';
15
15
  import { placeholderTextStyles } from '../../plugins/placeholder-text/styles';
16
16
  import { extensionStyles } from '../../plugins/extension/ui/styles';
@@ -3,6 +3,7 @@ import { css } from '@emotion/react';
3
3
  // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
4
4
  import { gridSize } from '@atlaskit/theme/constants';
5
5
  import { N40A, N50A, DN70, DN80 } from '@atlaskit/theme/colors';
6
+ // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
6
7
  import { themed } from '@atlaskit/theme/components';
7
8
  import { columnLayoutSharedStyle, LAYOUT_SECTION_MARGIN, LAYOUT_COLUMN_PADDING } from '@atlaskit/editor-common/styles';
8
9
  import { gridMediumMaxWidth, akEditorDeleteBackground, akEditorDeleteBorder, akEditorSelectedBorderSize, akLayoutGutterOffset, akEditorSwoopCubicBezier, SelectionStyle, getSelectionStyles, akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
@@ -1,5 +1,5 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "189.1.10";
2
+ export const version = "189.1.12";
3
3
  export const nextMajorVersion = () => {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -4,7 +4,6 @@ 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 { default as 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';
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import { WithProviders } from '@atlaskit/editor-common/provider-factory';
3
- import { pluginKey as layoutStateKey } from '../layout';
4
3
  import { insertMacroFromMacroBrowser } from '../macro';
5
4
  import WithPluginState from '../../ui/WithPluginState';
6
5
  import ToolbarInsertBlock from './ui/ToolbarInsertBlock';
@@ -69,14 +68,12 @@ var insertBlockPlugin = function insertBlockPlugin(_ref) {
69
68
  return /*#__PURE__*/React.createElement(WithPluginState, {
70
69
  plugins: {
71
70
  macroState: macroStateKey,
72
- placeholderTextState: placeholderTextStateKey,
73
- layoutState: layoutStateKey
71
+ placeholderTextState: placeholderTextStateKey
74
72
  },
75
73
  render: function render(_ref3) {
76
74
  var _ref3$macroState = _ref3.macroState,
77
75
  macroState = _ref3$macroState === void 0 ? {} : _ref3$macroState,
78
- placeholderTextState = _ref3.placeholderTextState,
79
- layoutState = _ref3.layoutState;
76
+ placeholderTextState = _ref3.placeholderTextState;
80
77
  return /*#__PURE__*/React.createElement(ToolbarInsertBlockWithInjectionApi, {
81
78
  pluginInjectionApi: api,
82
79
  editorView: editorView,
@@ -93,7 +90,6 @@ var insertBlockPlugin = function insertBlockPlugin(_ref) {
93
90
  featureFlags: featureFlags,
94
91
  macroState: macroState,
95
92
  placeholderTextState: placeholderTextState,
96
- layoutState: layoutState,
97
93
  providers: providers,
98
94
  options: options
99
95
  });
@@ -125,7 +121,6 @@ function ToolbarInsertBlockWithInjectionApi(_ref4) {
125
121
  options = _ref4.options,
126
122
  macroState = _ref4.macroState,
127
123
  placeholderTextState = _ref4.placeholderTextState,
128
- layoutState = _ref4.layoutState,
129
124
  featureFlags = _ref4.featureFlags;
130
125
  var buttons = toolbarSizeToButtons(toolbarSize);
131
126
  var _useSharedPluginState = useSharedPluginState(pluginInjectionApi, ['hyperlink', 'date', 'imageUpload', 'mention', 'emoji', 'blockType', 'media', 'typeAhead']),
@@ -151,7 +146,7 @@ function ToolbarInsertBlockWithInjectionApi(_ref4) {
151
146
  decisionSupported: !!editorView.state.schema.nodes.decisionItem,
152
147
  dateEnabled: !!dateState,
153
148
  placeholderTextEnabled: placeholderTextState && placeholderTextState.allowInserting,
154
- layoutSectionEnabled: !!layoutState,
149
+ layoutSectionEnabled: Boolean(pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.layout),
155
150
  expandEnabled: !!options.allowExpand,
156
151
  mediaUploadsEnabled: (_ref5 = mediaState && mediaState.allowsUploads) !== null && _ref5 !== void 0 ? _ref5 : undefined,
157
152
  onShowMediaPicker: (_ref6 = mediaState && mediaState.showMediaPicker) !== null && _ref6 !== void 0 ? _ref6 : undefined,
@@ -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, layoutPlugin, toolbarListsIndentationPlugin, macroPlugin, maxContentSizePlugin, panelPlugin, placeholderTextPlugin, tasksAndDecisionsPlugin, alignmentPlugin, indentationPlugin, customAutoformatPlugin, feedbackDialogPlugin, expandPlugin, isExpandInsertionEnabled, mobileDimensionsPlugin, findReplacePlugin, mobileSelectionPlugin, annotationPlugin, avatarGroupPlugin, viewUpdateSubscriptionPlugin, beforePrimaryToolbarPlugin, codeBidiWarningPlugin } from '../plugins';
5
+ import { breakoutPlugin, collabEditPlugin, dataConsumerMarkPlugin, extensionPlugin, insertBlockPlugin, jiraIssuePlugin, toolbarListsIndentationPlugin, macroPlugin, maxContentSizePlugin, panelPlugin, placeholderTextPlugin, 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,6 +21,7 @@ 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';
@@ -12,7 +12,7 @@ import { blocktypeStyles } from '@atlaskit/editor-plugin-block-type/styles';
12
12
  import { textHighlightStyle } from '@atlaskit/editor-plugin-paste-options-toolbar/styles';
13
13
  import { codeBlockStyles } from '../../plugins/code-block/styles';
14
14
  import { mediaStyles } from './media';
15
- import { layoutStyles } from '../../plugins/layout/styles';
15
+ import { layoutStyles } from './layout';
16
16
  import { panelStyles } from '../../plugins/panel/styles';
17
17
  import { placeholderTextStyles } from '../../plugins/placeholder-text/styles';
18
18
  import { extensionStyles } from '../../plugins/extension/ui/styles';
@@ -5,6 +5,7 @@ import { css } from '@emotion/react';
5
5
  // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
6
6
  import { gridSize } from '@atlaskit/theme/constants';
7
7
  import { N40A, N50A, DN70, DN80 } from '@atlaskit/theme/colors';
8
+ // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
8
9
  import { themed } from '@atlaskit/theme/components';
9
10
  import { columnLayoutSharedStyle, LAYOUT_SECTION_MARGIN, LAYOUT_COLUMN_PADDING } from '@atlaskit/editor-common/styles';
10
11
  import { gridMediumMaxWidth, akEditorDeleteBackground, akEditorDeleteBorder, akEditorSelectedBorderSize, akLayoutGutterOffset, akEditorSwoopCubicBezier, SelectionStyle, getSelectionStyles, akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
@@ -1,5 +1,5 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "189.1.10";
2
+ export var version = "189.1.12";
3
3
  export var nextMajorVersion = function nextMajorVersion() {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -4,7 +4,6 @@ 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 { default as 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';
@@ -10,7 +10,7 @@ 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 '../layout';
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';
@@ -18,7 +18,7 @@ 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 '../plugins/layout/types';
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';
@@ -1,4 +1,4 @@
1
- import { ThemeProps } from '@atlaskit/theme/types';
1
+ import type { ThemeProps } from '@atlaskit/theme/types';
2
2
  import { LAYOUT_SECTION_MARGIN, LAYOUT_COLUMN_PADDING } from '@atlaskit/editor-common/styles';
3
3
  export { LAYOUT_COLUMN_PADDING, LAYOUT_SECTION_MARGIN };
4
4
  export declare const layoutStyles: (props: ThemeProps) => import("@emotion/react").SerializedStyles;
@@ -4,7 +4,6 @@ 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 { default as 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';
@@ -10,7 +10,7 @@ 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 '../layout';
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';
@@ -18,7 +18,7 @@ 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 '../plugins/layout/types';
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';
@@ -1,4 +1,4 @@
1
- import { ThemeProps } from '@atlaskit/theme/types';
1
+ import type { ThemeProps } from '@atlaskit/theme/types';
2
2
  import { LAYOUT_SECTION_MARGIN, LAYOUT_COLUMN_PADDING } from '@atlaskit/editor-common/styles';
3
3
  export { LAYOUT_COLUMN_PADDING, LAYOUT_SECTION_MARGIN };
4
4
  export declare const layoutStyles: (props: ThemeProps) => import("@emotion/react").SerializedStyles;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "189.1.10",
3
+ "version": "189.1.12",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -84,6 +84,7 @@
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",
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';
@@ -628,16 +629,6 @@ export type InlineCommentViewComponentProps = AnnotationComponentProps & {
628
629
 
629
630
  export { INPUT_METHOD };
630
631
 
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
632
  export { MacroAttributes };
642
633
 
643
634
  export { MacroProvider };
@@ -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';
@@ -576,16 +577,6 @@ export type InlineCommentViewComponentProps = AnnotationComponentProps & {
576
577
 
577
578
  export { INPUT_METHOD }
578
579
 
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
580
  export { MacroAttributes }
590
581
 
591
582
  export { MacroProvider }