@atlaskit/editor-plugin-insert-block 2.1.0 → 2.1.1

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 CHANGED
@@ -1,5 +1,14 @@
1
1
  # @atlaskit/editor-plugin-insert-block
2
2
 
3
+ ## 2.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#143799](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/143799)
8
+ [`28c4ecb75a634`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/28c4ecb75a634) -
9
+ removed editorActions from onClick in Props, updated toolbar reference to it
10
+ - Updated dependencies
11
+
3
12
  ## 2.1.0
4
13
 
5
14
  ### Minor Changes
@@ -437,7 +437,6 @@ var ToolbarInsertBlock = exports.ToolbarInsertBlock = /*#__PURE__*/function (_Re
437
437
  inputMethod = _ref5.inputMethod;
438
438
  var _this$props10 = _this.props,
439
439
  editorView = _this$props10.editorView,
440
- editorActions = _this$props10.editorActions,
441
440
  handleImageUpload = _this$props10.handleImageUpload,
442
441
  expandEnabled = _this$props10.expandEnabled;
443
442
 
@@ -509,8 +508,8 @@ var ToolbarInsertBlock = exports.ToolbarInsertBlock = /*#__PURE__*/function (_Re
509
508
 
510
509
  // eslint-disable-next-line no-fallthrough
511
510
  default:
512
- if (item && item.onClick && editorActions) {
513
- item.onClick(editorActions);
511
+ if (item && item.onClick) {
512
+ item.onClick();
514
513
  break;
515
514
  }
516
515
  }
@@ -463,7 +463,6 @@ export class ToolbarInsertBlock extends React.PureComponent {
463
463
  }) => {
464
464
  const {
465
465
  editorView,
466
- editorActions,
467
466
  handleImageUpload,
468
467
  expandEnabled
469
468
  } = this.props;
@@ -538,8 +537,8 @@ export class ToolbarInsertBlock extends React.PureComponent {
538
537
 
539
538
  // eslint-disable-next-line no-fallthrough
540
539
  default:
541
- if (item && item.onClick && editorActions) {
542
- item.onClick(editorActions);
540
+ if (item && item.onClick) {
541
+ item.onClick();
543
542
  break;
544
543
  }
545
544
  }
@@ -428,7 +428,6 @@ export var ToolbarInsertBlock = /*#__PURE__*/function (_React$PureComponent) {
428
428
  inputMethod = _ref5.inputMethod;
429
429
  var _this$props10 = _this.props,
430
430
  editorView = _this$props10.editorView,
431
- editorActions = _this$props10.editorActions,
432
431
  handleImageUpload = _this$props10.handleImageUpload,
433
432
  expandEnabled = _this$props10.expandEnabled;
434
433
 
@@ -500,8 +499,8 @@ export var ToolbarInsertBlock = /*#__PURE__*/function (_React$PureComponent) {
500
499
 
501
500
  // eslint-disable-next-line no-fallthrough
502
501
  default:
503
- if (item && item.onClick && editorActions) {
504
- item.onClick(editorActions);
502
+ if (item && item.onClick) {
503
+ item.onClick();
505
504
  break;
506
505
  }
507
506
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-insert-block",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "Insert block plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,7 +32,7 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@atlaskit/button": "^20.1.0",
35
- "@atlaskit/editor-common": "^90.2.0",
35
+ "@atlaskit/editor-common": "^91.0.0",
36
36
  "@atlaskit/editor-plugin-analytics": "^1.8.0",
37
37
  "@atlaskit/editor-plugin-block-type": "^3.15.0",
38
38
  "@atlaskit/editor-plugin-code-block": "^3.3.0",