@atlaskit/editor-core 187.25.0 → 187.25.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,11 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 187.25.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`8b914beaa94`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8b914beaa94) - [DTR-1800] Fixed boundary value bug that caused gap cursors to trigger when clicking inside a leaf node at the root of the element
8
+
3
9
  ## 187.25.0
4
10
 
5
11
  ### Minor Changes
@@ -121,7 +121,7 @@ var plugin = new _safePlugin.SafePlugin({
121
121
  return (0, _actions.setGapCursorAtPos)(mediaGapCursor, side)(view.state, view.dispatch);
122
122
  }
123
123
  var docSize = view.state.doc.content.size;
124
- var nodeInside = posAtCoords.inside <= 0 || posAtCoords.inside > docSize ? null : view.state.doc.nodeAt(posAtCoords.inside);
124
+ var nodeInside = posAtCoords.inside < 0 || posAtCoords.inside > docSize ? null : view.state.doc.nodeAt(posAtCoords.inside);
125
125
  if (nodeInside !== null && nodeInside !== void 0 && nodeInside.isAtom) {
126
126
  return false;
127
127
  }
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.version = exports.nextMajorVersion = exports.name = void 0;
7
7
  var name = "@atlaskit/editor-core";
8
8
  exports.name = name;
9
- var version = "187.25.0";
9
+ var version = "187.25.1";
10
10
  exports.version = version;
11
11
  var nextMajorVersion = function nextMajorVersion() {
12
12
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
@@ -116,7 +116,7 @@ const plugin = new SafePlugin({
116
116
  return setGapCursorAtPos(mediaGapCursor, side)(view.state, view.dispatch);
117
117
  }
118
118
  const docSize = view.state.doc.content.size;
119
- const nodeInside = posAtCoords.inside <= 0 || posAtCoords.inside > docSize ? null : view.state.doc.nodeAt(posAtCoords.inside);
119
+ const nodeInside = posAtCoords.inside < 0 || posAtCoords.inside > docSize ? null : view.state.doc.nodeAt(posAtCoords.inside);
120
120
  if (nodeInside !== null && nodeInside !== void 0 && nodeInside.isAtom) {
121
121
  return false;
122
122
  }
@@ -1,5 +1,5 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "187.25.0";
2
+ export const version = "187.25.1";
3
3
  export const nextMajorVersion = () => {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -115,7 +115,7 @@ var plugin = new SafePlugin({
115
115
  return setGapCursorAtPos(mediaGapCursor, side)(view.state, view.dispatch);
116
116
  }
117
117
  var docSize = view.state.doc.content.size;
118
- var nodeInside = posAtCoords.inside <= 0 || posAtCoords.inside > docSize ? null : view.state.doc.nodeAt(posAtCoords.inside);
118
+ var nodeInside = posAtCoords.inside < 0 || posAtCoords.inside > docSize ? null : view.state.doc.nodeAt(posAtCoords.inside);
119
119
  if (nodeInside !== null && nodeInside !== void 0 && nodeInside.isAtom) {
120
120
  return false;
121
121
  }
@@ -1,5 +1,5 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "187.25.0";
2
+ export var version = "187.25.1";
3
3
  export var nextMajorVersion = function nextMajorVersion() {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "187.25.0",
3
+ "version": "187.25.1",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"