@atlaskit/editor-plugin-block-controls 1.3.8 → 1.3.9

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,13 @@
1
1
  # @atlaskit/editor-plugin-block-controls
2
2
 
3
+ ## 1.3.9
4
+
5
+ ### Patch Changes
6
+
7
+ - [#100922](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/100922)
8
+ [`d69797fc32b6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d69797fc32b6) -
9
+ ED-22939 Fix drag handle not appearing for first node of document
10
+
3
11
  ## 1.3.8
4
12
 
5
13
  ### Patch Changes
@@ -93,7 +93,7 @@ var createPlugin = exports.createPlugin = function createPlugin(api) {
93
93
  left: event.clientX,
94
94
  top: event.clientY
95
95
  });
96
- if (pos !== null && pos !== void 0 && pos.inside && pos.inside > 0) {
96
+ if ((pos === null || pos === void 0 ? void 0 : pos.inside) !== undefined && pos.inside >= 0) {
97
97
  var _api$core;
98
98
  var node = view.state.doc.nodeAt(pos.inside);
99
99
  if (!node) {
@@ -91,7 +91,7 @@ export const createPlugin = api => {
91
91
  left: event.clientX,
92
92
  top: event.clientY
93
93
  });
94
- if (pos !== null && pos !== void 0 && pos.inside && pos.inside > 0) {
94
+ if ((pos === null || pos === void 0 ? void 0 : pos.inside) !== undefined && pos.inside >= 0) {
95
95
  var _api$core;
96
96
  const node = view.state.doc.nodeAt(pos.inside);
97
97
  if (!node) {
@@ -87,7 +87,7 @@ export var createPlugin = function createPlugin(api) {
87
87
  left: event.clientX,
88
88
  top: event.clientY
89
89
  });
90
- if (pos !== null && pos !== void 0 && pos.inside && pos.inside > 0) {
90
+ if ((pos === null || pos === void 0 ? void 0 : pos.inside) !== undefined && pos.inside >= 0) {
91
91
  var _api$core;
92
92
  var node = view.state.doc.nodeAt(pos.inside);
93
93
  if (!node) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-controls",
3
- "version": "1.3.8",
3
+ "version": "1.3.9",
4
4
  "description": "Block controls plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",