@atlaskit/editor-plugin-insert-block 1.3.2 → 1.3.4

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.
@@ -50,19 +50,23 @@ export var tableButtonWrapper = function tableButtonWrapper(_ref) {
50
50
  var isTableSelectorOpen = _ref.isTableSelectorOpen,
51
51
  isButtonDisabled = _ref.isButtonDisabled;
52
52
  return (// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Needs manual remediation due to mixins
53
- css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n ", "\n ", "\n\n .table-toolbar-btn {\n border-top-right-radius: ", ";\n border-bottom-right-radius: ", ";\n margin-right: ", ";\n padding: ", ";\n & > span {\n min-width: 16px;\n margin: ", ";\n }\n }\n .table-selector-toolbar-btn {\n padding: ", ";\n & > span {\n margin: ", ";\n width: 16px !important;\n display: flex;\n justify-content: center;\n }\n\n border-top-left-radius: ", " !important;\n border-bottom-left-radius: ", " !important;\n }\n "])), !isTableSelectorOpen && !isButtonDisabled && getHoverStyles('.table-selector-toolbar-btn'), !isTableSelectorOpen && !isButtonDisabled && getHoverStyles('.table-toolbar-btn'), "var(--ds-border-radius-200, 0px)", "var(--ds-border-radius-200, 0px)", "var(--ds-space-025, 1px)", "var(--ds-space-0, 0px)", "var(--ds-space-0, 0px)", "var(--ds-space-0, 0px)", "var(--ds-space-0, 0px)", "var(--ds-border-radius-200, 0px)", "var(--ds-border-radius-200, 0px)")
53
+ css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t\tdisplay: flex;\n\t\t", "\n\t\t", "\n\n .table-toolbar-btn {\n\t\t\tborder-top-right-radius: ", ";\n\t\t\tborder-bottom-right-radius: ", ";\n\t\t\tmargin-right: ", ";\n\t\t\tpadding: ", ";\n\t\t\t& > span {\n\t\t\t\tmin-width: 16px;\n\t\t\t\tmargin: ", ";\n\t\t\t}\n\t\t}\n\t\t.table-selector-toolbar-btn {\n\t\t\tpadding: ", ";\n\t\t\t& > span {\n\t\t\t\tmargin: ", ";\n\t\t\t\twidth: 16px !important;\n\t\t\t\tdisplay: flex;\n\t\t\t\tjustify-content: center;\n\t\t\t}\n\n\t\t\tborder-top-left-radius: ", " !important;\n\t\t\tborder-bottom-left-radius: ", " !important;\n\t\t}\n\t"])), !isTableSelectorOpen && !isButtonDisabled && getHoverStyles('.table-selector-toolbar-btn'), !isTableSelectorOpen && !isButtonDisabled && getHoverStyles('.table-toolbar-btn'), "var(--ds-border-radius-200, 0px)", "var(--ds-border-radius-200, 0px)", "var(--ds-space-025, 1px)", "var(--ds-space-0, 0px)", "var(--ds-space-0, 0px)", "var(--ds-space-0, 0px)", "var(--ds-space-0, 0px)", "var(--ds-border-radius-200, 0px)", "var(--ds-border-radius-200, 0px)")
54
54
  );
55
55
  };
56
56
  // eslint-disable-next-line @repo/internal/react/no-class-components
57
57
  export var ToolbarInsertBlock = /*#__PURE__*/function (_React$PureComponent) {
58
58
  _inherits(ToolbarInsertBlock, _React$PureComponent);
59
59
  var _super = _createSuper(ToolbarInsertBlock);
60
- function ToolbarInsertBlock(props) {
60
+ function ToolbarInsertBlock() {
61
61
  var _this;
62
62
  _classCallCheck(this, ToolbarInsertBlock);
63
- _this = _super.call(this, props);
63
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
64
+ args[_key] = arguments[_key];
65
+ }
66
+ _this = _super.call.apply(_super, [this].concat(args));
64
67
  _defineProperty(_assertThisInitialized(_this), "tableButtonRef", /*#__PURE__*/React.createRef());
65
68
  _defineProperty(_assertThisInitialized(_this), "tableSelectorButtonRef", /*#__PURE__*/React.createRef());
69
+ _defineProperty(_assertThisInitialized(_this), "unregisterToggleDropdownMenuOptions", null);
66
70
  _defineProperty(_assertThisInitialized(_this), "state", {
67
71
  isPlusMenuOpen: false,
68
72
  emojiPickerOpen: false,
@@ -188,10 +192,12 @@ export var ToolbarInsertBlock = /*#__PURE__*/function (_React$PureComponent) {
188
192
  _this.toggleTableSelector(INPUT_METHOD.TOOLBAR);
189
193
  }
190
194
  });
195
+ _defineProperty(_assertThisInitialized(_this), "componentDidMount", function () {
196
+ _this.unregisterToggleDropdownMenuOptions = _this.props.registerToggleDropdownMenuOptions ? _this.props.registerToggleDropdownMenuOptions(_this.handleClick) : null;
197
+ });
191
198
  _defineProperty(_assertThisInitialized(_this), "componentWillUnmount", function () {
192
- if (_this.unresgisterToggleDropdownMenuOptions) {
193
- _this.unresgisterToggleDropdownMenuOptions();
194
- }
199
+ var _this$unregisterToggl, _this2;
200
+ (_this$unregisterToggl = (_this2 = _this).unregisterToggleDropdownMenuOptions) === null || _this$unregisterToggl === void 0 || _this$unregisterToggl.call(_this2);
195
201
  });
196
202
  _defineProperty(_assertThisInitialized(_this), "handleClick", function () {
197
203
  _this.togglePlusMenuVisibility();
@@ -232,27 +238,35 @@ export var ToolbarInsertBlock = /*#__PURE__*/function (_React$PureComponent) {
232
238
  return Boolean(pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$m2 = pluginInjectionApi.mention) === null || _pluginInjectionApi$m2 === void 0 || (_pluginInjectionApi$m2 = _pluginInjectionApi$m2.actions) === null || _pluginInjectionApi$m2 === void 0 ? void 0 : _pluginInjectionApi$m2.openTypeAhead(inputMethod));
233
239
  });
234
240
  _defineProperty(_assertThisInitialized(_this), "insertTable", function (inputMethod) {
235
- var _pluginInjectionApi$t, _pluginInjectionApi$t2, _pluginInjectionApi$t3, _pluginInjectionApi$t4;
236
241
  var _this$props2 = _this.props,
237
242
  pluginInjectionApi = _this$props2.pluginInjectionApi,
238
243
  editorView = _this$props2.editorView;
239
244
  var state = editorView.state,
240
245
  dispatch = editorView.dispatch;
241
- return (_pluginInjectionApi$t = pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$t2 = pluginInjectionApi.table) === null || _pluginInjectionApi$t2 === void 0 || (_pluginInjectionApi$t3 = (_pluginInjectionApi$t4 = _pluginInjectionApi$t2.actions).insertTable) === null || _pluginInjectionApi$t3 === void 0 ? void 0 : _pluginInjectionApi$t3.call(_pluginInjectionApi$t4, {
242
- action: ACTION.INSERTED,
243
- actionSubject: ACTION_SUBJECT.DOCUMENT,
244
- actionSubjectId: ACTION_SUBJECT_ID.TABLE,
245
- attributes: {
246
- inputMethod: inputMethod
247
- },
248
- eventType: EVENT_TYPE.TRACK
249
- })(state, dispatch)) !== null && _pluginInjectionApi$t !== void 0 ? _pluginInjectionApi$t : false;
246
+
247
+ // workaround to solve race condition where cursor is not placed correctly inside table
248
+ queueMicrotask(function () {
249
+ var _pluginInjectionApi$t, _pluginInjectionApi$t2, _pluginInjectionApi$t3;
250
+ pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$t = pluginInjectionApi.table) === null || _pluginInjectionApi$t === void 0 || (_pluginInjectionApi$t2 = (_pluginInjectionApi$t3 = _pluginInjectionApi$t.actions).insertTable) === null || _pluginInjectionApi$t2 === void 0 || _pluginInjectionApi$t2.call(_pluginInjectionApi$t3, {
251
+ action: ACTION.INSERTED,
252
+ actionSubject: ACTION_SUBJECT.DOCUMENT,
253
+ actionSubjectId: ACTION_SUBJECT_ID.TABLE,
254
+ attributes: {
255
+ inputMethod: inputMethod
256
+ },
257
+ eventType: EVENT_TYPE.TRACK
258
+ })(state, dispatch);
259
+ });
250
260
  });
251
261
  _defineProperty(_assertThisInitialized(_this), "insertTableWithSize", function (inputMethod, rowsCount, colsCount) {
252
262
  return function () {
253
- var _pluginInjectionApi$c3, _pluginInjectionApi$t5;
254
263
  var pluginInjectionApi = _this.props.pluginInjectionApi;
255
- return pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$c3 = pluginInjectionApi.core) === null || _pluginInjectionApi$c3 === void 0 ? void 0 : _pluginInjectionApi$c3.actions.execute(pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$t5 = pluginInjectionApi.table) === null || _pluginInjectionApi$t5 === void 0 ? void 0 : _pluginInjectionApi$t5.commands.insertTableWithSize(rowsCount, colsCount, INPUT_METHOD.PICKER));
264
+
265
+ // workaround to solve race condition where cursor is not placed correctly inside table
266
+ queueMicrotask(function () {
267
+ var _pluginInjectionApi$c3, _pluginInjectionApi$t4;
268
+ pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$c3 = pluginInjectionApi.core) === null || _pluginInjectionApi$c3 === void 0 || _pluginInjectionApi$c3.actions.execute(pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$t4 = pluginInjectionApi.table) === null || _pluginInjectionApi$t4 === void 0 ? void 0 : _pluginInjectionApi$t4.commands.insertTableWithSize(rowsCount, colsCount, INPUT_METHOD.PICKER));
269
+ });
256
270
  };
257
271
  });
258
272
  _defineProperty(_assertThisInitialized(_this), "createDate", function (inputMethod) {
@@ -308,14 +322,14 @@ export var ToolbarInsertBlock = /*#__PURE__*/function (_React$PureComponent) {
308
322
  });
309
323
  _defineProperty(_assertThisInitialized(_this), "insertTaskDecision", function (name, inputMethod) {
310
324
  return function () {
311
- var _pluginInjectionApi$t6, _pluginInjectionApi$t7;
325
+ var _pluginInjectionApi$t5, _pluginInjectionApi$t6;
312
326
  var _this$props7 = _this.props,
313
327
  _this$props7$editorVi = _this$props7.editorView,
314
328
  state = _this$props7$editorVi.state,
315
329
  dispatch = _this$props7$editorVi.dispatch,
316
330
  pluginInjectionApi = _this$props7.pluginInjectionApi;
317
331
  var listType = name === 'action' ? 'taskList' : 'decisionList';
318
- return (_pluginInjectionApi$t6 = pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$t7 = pluginInjectionApi.taskDecision) === null || _pluginInjectionApi$t7 === void 0 ? void 0 : _pluginInjectionApi$t7.actions.insertTaskDecision(listType, inputMethod)(state, dispatch)) !== null && _pluginInjectionApi$t6 !== void 0 ? _pluginInjectionApi$t6 : false;
332
+ return (_pluginInjectionApi$t5 = pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$t6 = pluginInjectionApi.taskDecision) === null || _pluginInjectionApi$t6 === void 0 ? void 0 : _pluginInjectionApi$t6.actions.insertTaskDecision(listType, inputMethod)(state, dispatch)) !== null && _pluginInjectionApi$t5 !== void 0 ? _pluginInjectionApi$t5 : false;
319
333
  };
320
334
  });
321
335
  _defineProperty(_assertThisInitialized(_this), "insertHorizontalRule", function (inputMethod) {
@@ -459,8 +473,6 @@ export var ToolbarInsertBlock = /*#__PURE__*/function (_React$PureComponent) {
459
473
  inputMethod: INPUT_METHOD.INSERT_MENU
460
474
  });
461
475
  });
462
- var registerToggleDropdownMenuOptions = props.registerToggleDropdownMenuOptions;
463
- _this.unresgisterToggleDropdownMenuOptions = registerToggleDropdownMenuOptions ? registerToggleDropdownMenuOptions(_this.handleClick) : null;
464
476
  return _this;
465
477
  }
466
478
  _createClass(ToolbarInsertBlock, [{
@@ -493,7 +505,7 @@ export var ToolbarInsertBlock = /*#__PURE__*/function (_React$PureComponent) {
493
505
  }, {
494
506
  key: "renderPopup",
495
507
  value: function renderPopup() {
496
- var _this2 = this;
508
+ var _this3 = this;
497
509
  var emojiPickerOpen = this.state.emojiPickerOpen;
498
510
  var _this$props12 = this.props,
499
511
  popupsMountPoint = _this$props12.popupsMountPoint,
@@ -511,8 +523,8 @@ export var ToolbarInsertBlock = /*#__PURE__*/function (_React$PureComponent) {
511
523
  return null;
512
524
  }
513
525
  var onUnmount = function onUnmount() {
514
- var _this2$props$pluginIn;
515
- return (_this2$props$pluginIn = _this2.props.pluginInjectionApi) === null || _this2$props$pluginIn === void 0 || (_this2$props$pluginIn = _this2$props$pluginIn.core) === null || _this2$props$pluginIn === void 0 || (_this2$props$pluginIn = _this2$props$pluginIn.actions) === null || _this2$props$pluginIn === void 0 ? void 0 : _this2$props$pluginIn.focus();
526
+ var _this3$props$pluginIn;
527
+ return (_this3$props$pluginIn = _this3.props.pluginInjectionApi) === null || _this3$props$pluginIn === void 0 || (_this3$props$pluginIn = _this3$props$pluginIn.core) === null || _this3$props$pluginIn === void 0 || (_this3$props$pluginIn = _this3$props$pluginIn.actions) === null || _this3$props$pluginIn === void 0 ? void 0 : _this3$props$pluginIn.focus();
516
528
  };
517
529
  return jsx(Popup, {
518
530
  target: ref,
@@ -573,7 +585,7 @@ export var ToolbarInsertBlock = /*#__PURE__*/function (_React$PureComponent) {
573
585
  }, {
574
586
  key: "render",
575
587
  value: function render() {
576
- var _this3 = this,
588
+ var _this4 = this,
577
589
  _tableButton,
578
590
  _tableButton2,
579
591
  _tableButton3,
@@ -639,7 +651,7 @@ export var ToolbarInsertBlock = /*#__PURE__*/function (_React$PureComponent) {
639
651
  return jsx(ToolbarButton, {
640
652
  item: btn,
641
653
  testId: String(btn.content),
642
- ref: btn.value.name === 'emoji' ? _this3.handleEmojiButtonRef : noop,
654
+ ref: btn.value.name === 'emoji' ? _this4.handleEmojiButtonRef : noop,
643
655
  key: btn.value.name,
644
656
  spacing: isReducedSpacing ? 'none' : 'default',
645
657
  disabled: isDisabled || btn.isDisabled,
@@ -649,7 +661,7 @@ export var ToolbarInsertBlock = /*#__PURE__*/function (_React$PureComponent) {
649
661
  "aria-label": btn['aria-label'],
650
662
  "aria-haspopup": btn['aria-haspopup'],
651
663
  "aria-keyshortcuts": btn['aria-keyshortcuts'],
652
- onItemClick: _this3.insertToolbarMenuItem
664
+ onItemClick: _this4.insertToolbarMenuItem
653
665
  });
654
666
  }), this.props.tableSelectorSupported && (isTableButtonVisible || isTableSizeVisible) && jsx("div", {
655
667
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
@@ -657,7 +669,9 @@ export var ToolbarInsertBlock = /*#__PURE__*/function (_React$PureComponent) {
657
669
  isTableSelectorOpen: isTableSelectorOpen,
658
670
  isButtonDisabled: (_tableButton = tableButton) === null || _tableButton === void 0 ? void 0 : _tableButton.isDisabled
659
671
  })
660
- }, isTableButtonVisible && jsx(ToolbarButton, {
672
+ }, isTableButtonVisible && jsx(ToolbarButton
673
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
674
+ , {
661
675
  className: "table-toolbar-btn",
662
676
  item: tableButton,
663
677
  ref: this.tableButtonRef,
@@ -672,7 +686,9 @@ export var ToolbarInsertBlock = /*#__PURE__*/function (_React$PureComponent) {
672
686
  "aria-haspopup": tableButton ? tableButton['aria-haspopup'] : undefined,
673
687
  "aria-keyshortcuts": tableButton ? tableButton['aria-keyshortcuts'] : undefined,
674
688
  onItemClick: this.insertToolbarMenuItem
675
- }), isTableButtonVisible && jsx(ToolbarButton, {
689
+ }), isTableButtonVisible && jsx(ToolbarButton
690
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
691
+ , {
676
692
  className: "table-selector-toolbar-btn",
677
693
  item: tableSelectorButton,
678
694
  testId: String((_tableSelectorButton = tableSelectorButton) === null || _tableSelectorButton === void 0 ? void 0 : _tableSelectorButton.content),
@@ -16,9 +16,8 @@ export declare class ToolbarInsertBlock extends React.PureComponent<Props & Wrap
16
16
  private plusButtonRef?;
17
17
  private tableButtonRef;
18
18
  private tableSelectorButtonRef;
19
- private unresgisterToggleDropdownMenuOptions;
19
+ private unregisterToggleDropdownMenuOptions;
20
20
  state: State;
21
- constructor(props: Props & WrappedComponentProps & InternalActions);
22
21
  static getDerivedStateFromProps(props: Props & WrappedComponentProps, state: State): State | null;
23
22
  componentDidUpdate(prevProps: Props): void;
24
23
  private onOpenChange;
@@ -35,6 +34,7 @@ export declare class ToolbarInsertBlock extends React.PureComponent<Props & Wrap
35
34
  private handleSelectedTableSize;
36
35
  private handleTableSelectorPressEscape;
37
36
  private handleTableSelectorClickOutside;
37
+ componentDidMount: () => void;
38
38
  componentWillUnmount: () => void;
39
39
  render(): jsx.JSX.Element | null;
40
40
  private handleClick;
@@ -16,9 +16,8 @@ export declare class ToolbarInsertBlock extends React.PureComponent<Props & Wrap
16
16
  private plusButtonRef?;
17
17
  private tableButtonRef;
18
18
  private tableSelectorButtonRef;
19
- private unresgisterToggleDropdownMenuOptions;
19
+ private unregisterToggleDropdownMenuOptions;
20
20
  state: State;
21
- constructor(props: Props & WrappedComponentProps & InternalActions);
22
21
  static getDerivedStateFromProps(props: Props & WrappedComponentProps, state: State): State | null;
23
22
  componentDidUpdate(prevProps: Props): void;
24
23
  private onOpenChange;
@@ -35,6 +34,7 @@ export declare class ToolbarInsertBlock extends React.PureComponent<Props & Wrap
35
34
  private handleSelectedTableSize;
36
35
  private handleTableSelectorPressEscape;
37
36
  private handleTableSelectorClickOutside;
37
+ componentDidMount: () => void;
38
38
  componentWillUnmount: () => void;
39
39
  render(): jsx.JSX.Element | null;
40
40
  private handleClick;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-insert-block",
3
- "version": "1.3.2",
3
+ "version": "1.3.4",
4
4
  "description": "Insert block plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -33,7 +33,7 @@
33
33
  ".": "./src/index.ts"
34
34
  },
35
35
  "dependencies": {
36
- "@atlaskit/editor-common": "^81.0.0",
36
+ "@atlaskit/editor-common": "^81.2.0",
37
37
  "@atlaskit/editor-plugin-analytics": "^1.2.0",
38
38
  "@atlaskit/editor-plugin-block-type": "^3.4.0",
39
39
  "@atlaskit/editor-plugin-code-block": "^1.3.0",
@@ -45,7 +45,7 @@
45
45
  "@atlaskit/editor-plugin-image-upload": "^1.1.0",
46
46
  "@atlaskit/editor-plugin-layout": "^1.2.0",
47
47
  "@atlaskit/editor-plugin-media": "^1.20.0",
48
- "@atlaskit/editor-plugin-mentions": "^1.4.0",
48
+ "@atlaskit/editor-plugin-mentions": "^1.5.0",
49
49
  "@atlaskit/editor-plugin-panel": "^1.2.0",
50
50
  "@atlaskit/editor-plugin-placeholder-text": "^1.2.0",
51
51
  "@atlaskit/editor-plugin-quick-insert": "^1.1.0",
@@ -58,7 +58,7 @@
58
58
  "@atlaskit/editor-shared-styles": "^2.11.0",
59
59
  "@atlaskit/emoji": "^67.6.0",
60
60
  "@atlaskit/icon": "^22.3.0",
61
- "@atlaskit/primitives": "^6.3.0",
61
+ "@atlaskit/primitives": "^6.4.0",
62
62
  "@atlaskit/theme": "^12.8.0",
63
63
  "@atlaskit/tokens": "^1.49.0",
64
64
  "@babel/runtime": "^7.0.0",
@@ -77,7 +77,6 @@
77
77
  "@af/visual-regression": "*",
78
78
  "@atlaskit/ssr": "*",
79
79
  "@atlaskit/visual-regression": "*",
80
- "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
81
80
  "@testing-library/react": "^12.1.5",
82
81
  "react-dom": "^16.8.0",
83
82
  "typescript": "~5.4.2"
@@ -114,6 +113,5 @@
114
113
  "import-no-extraneous-disable-for-examples-and-docs"
115
114
  ]
116
115
  }
117
- },
118
- "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
116
+ }
119
117
  }
package/report.api.md CHANGED
@@ -2,7 +2,8 @@
2
2
 
3
3
  ## API Report File for "@atlaskit/editor-plugin-insert-block"
4
4
 
5
- > Do not edit this file. This report is auto-generated using [API Extractor](https://api-extractor.com/).
5
+ > Do not edit this file. This report is auto-generated using
6
+ > [API Extractor](https://api-extractor.com/).
6
7
  > [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
7
8
 
8
9
  ### Table of contents
@@ -41,29 +42,29 @@ import type { TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
41
42
 
42
43
  // @public (undocumented)
43
44
  interface InsertBlockOptions {
44
- // (undocumented)
45
- allowExpand?: boolean;
46
- // (undocumented)
47
- allowTables?: boolean;
48
- // (undocumented)
49
- horizontalRuleEnabled?: boolean;
50
- // (undocumented)
51
- insertMenuItems?: any;
52
- // (undocumented)
53
- nativeStatusSupported?: boolean;
54
- // (undocumented)
55
- replacePlusMenuWithElementBrowser?: boolean;
56
- // (undocumented)
57
- showElementBrowserLink?: boolean;
45
+ // (undocumented)
46
+ allowExpand?: boolean;
47
+ // (undocumented)
48
+ allowTables?: boolean;
49
+ // (undocumented)
50
+ horizontalRuleEnabled?: boolean;
51
+ // (undocumented)
52
+ insertMenuItems?: any;
53
+ // (undocumented)
54
+ nativeStatusSupported?: boolean;
55
+ // (undocumented)
56
+ replacePlusMenuWithElementBrowser?: boolean;
57
+ // (undocumented)
58
+ showElementBrowserLink?: boolean;
58
59
  }
59
60
 
60
61
  // @public (undocumented)
61
62
  export type InsertBlockPlugin = NextEditorPlugin<
62
- 'insertBlock',
63
- {
64
- pluginConfiguration: InsertBlockOptions | undefined;
65
- dependencies: InsertBlockPluginDependencies;
66
- }
63
+ 'insertBlock',
64
+ {
65
+ pluginConfiguration: InsertBlockOptions | undefined;
66
+ dependencies: InsertBlockPluginDependencies;
67
+ }
67
68
  >;
68
69
 
69
70
  // @public (undocumented)
@@ -71,27 +72,27 @@ export const insertBlockPlugin: InsertBlockPlugin;
71
72
 
72
73
  // @public (undocumented)
73
74
  type InsertBlockPluginDependencies = [
74
- OptionalPlugin<FeatureFlagsPlugin>,
75
- TypeAheadPlugin,
76
- OptionalPlugin<TablePlugin>,
77
- OptionalPlugin<HyperlinkPlugin>,
78
- OptionalPlugin<DatePlugin>,
79
- OptionalPlugin<BlockTypePlugin>,
80
- OptionalPlugin<AnalyticsPlugin>,
81
- OptionalPlugin<ImageUploadPlugin>,
82
- OptionalPlugin<EmojiPlugin>,
83
- OptionalPlugin<QuickInsertPlugin>,
84
- OptionalPlugin<RulePlugin>,
85
- OptionalPlugin<CodeBlockPlugin>,
86
- OptionalPlugin<PanelPlugin>,
87
- OptionalPlugin<MediaPlugin>,
88
- OptionalPlugin<MentionsPlugin>,
89
- OptionalPlugin<StatusPlugin>,
90
- OptionalPlugin<LayoutPlugin>,
91
- OptionalPlugin<ExpandPlugin>,
92
- OptionalPlugin<PlaceholderTextPlugin>,
93
- OptionalPlugin<ExtensionPlugin>,
94
- OptionalPlugin<TasksAndDecisionsPlugin>,
75
+ OptionalPlugin<FeatureFlagsPlugin>,
76
+ TypeAheadPlugin,
77
+ OptionalPlugin<TablePlugin>,
78
+ OptionalPlugin<HyperlinkPlugin>,
79
+ OptionalPlugin<DatePlugin>,
80
+ OptionalPlugin<BlockTypePlugin>,
81
+ OptionalPlugin<AnalyticsPlugin>,
82
+ OptionalPlugin<ImageUploadPlugin>,
83
+ OptionalPlugin<EmojiPlugin>,
84
+ OptionalPlugin<QuickInsertPlugin>,
85
+ OptionalPlugin<RulePlugin>,
86
+ OptionalPlugin<CodeBlockPlugin>,
87
+ OptionalPlugin<PanelPlugin>,
88
+ OptionalPlugin<MediaPlugin>,
89
+ OptionalPlugin<MentionsPlugin>,
90
+ OptionalPlugin<StatusPlugin>,
91
+ OptionalPlugin<LayoutPlugin>,
92
+ OptionalPlugin<ExpandPlugin>,
93
+ OptionalPlugin<PlaceholderTextPlugin>,
94
+ OptionalPlugin<ExtensionPlugin>,
95
+ OptionalPlugin<TasksAndDecisionsPlugin>,
95
96
  ];
96
97
 
97
98
  // (No @packageDocumentation comment for this package)
@@ -105,9 +106,9 @@ type InsertBlockPluginDependencies = [
105
106
 
106
107
  ```json
107
108
  {
108
- "react": "^16.8.0",
109
- "react-dom": "^16.8.0",
110
- "react-intl-next": "npm:react-intl@^5.18.1"
109
+ "react": "^16.8.0",
110
+ "react-dom": "^16.8.0",
111
+ "react-intl-next": "npm:react-intl@^5.18.1"
111
112
  }
112
113
  ```
113
114