@atlaskit/editor-plugin-selection 1.4.1 → 1.4.3

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,20 @@
1
1
  # @atlaskit/editor-plugin-selection
2
2
 
3
+ ## 1.4.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#139334](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/139334)
8
+ [`30793649657c0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/30793649657c0) -
9
+ [HOT-111629] We had an incident where the last character disappears when hitting the enter key on
10
+ windows OS for Korean characters. Bumping to prosemirror-view@1.34.2 for the fix.
11
+
12
+ ## 1.4.2
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+
3
18
  ## 1.4.1
4
19
 
5
20
  ### Patch Changes
@@ -187,12 +187,12 @@ var captureCursorCoords = function captureCursorCoords(event, editorRef, posAtCo
187
187
  }
188
188
  if (rect.left > 0) {
189
189
  // calculate start position of a node that is vertically at the same level
190
- var _coords = posAtCoords({
190
+ var coords = posAtCoords({
191
191
  left: rect.left,
192
192
  top: event.clientY
193
193
  });
194
- if (_coords && _coords.inside > -1) {
195
- var $from = tr.doc.resolve(_coords.inside);
194
+ if (coords && coords.inside > -1) {
195
+ var $from = tr.doc.resolve(coords.inside);
196
196
  var start = $from.before(1);
197
197
  var side = event.clientX < rect.left ? _selection2.Side.LEFT : _selection2.Side.RIGHT;
198
198
  var position;
@@ -181,12 +181,12 @@ var captureCursorCoords = function captureCursorCoords(event, editorRef, posAtCo
181
181
  }
182
182
  if (rect.left > 0) {
183
183
  // calculate start position of a node that is vertically at the same level
184
- var _coords = posAtCoords({
184
+ var coords = posAtCoords({
185
185
  left: rect.left,
186
186
  top: event.clientY
187
187
  });
188
- if (_coords && _coords.inside > -1) {
189
- var $from = tr.doc.resolve(_coords.inside);
188
+ if (coords && coords.inside > -1) {
189
+ var $from = tr.doc.resolve(coords.inside);
190
190
  var start = $from.before(1);
191
191
  var side = event.clientX < rect.left ? Side.LEFT : Side.RIGHT;
192
192
  var position;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-selection",
3
- "version": "1.4.1",
3
+ "version": "1.4.3",
4
4
  "description": "Selection plugin for @atlaskit/editor-core",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -16,13 +16,12 @@
16
16
  "atlaskit:src": "src/index.ts",
17
17
  "atlassian": {
18
18
  "team": "Editor: Lego",
19
- "releaseModel": "continuous",
20
19
  "singleton": true,
21
20
  "runReact18": false
22
21
  },
23
22
  "dependencies": {
24
- "@atlaskit/editor-common": "^88.0.0",
25
- "@atlaskit/editor-prosemirror": "5.0.1",
23
+ "@atlaskit/editor-common": "^89.0.0",
24
+ "@atlaskit/editor-prosemirror": "6.0.0",
26
25
  "@atlaskit/editor-shared-styles": "^2.13.0",
27
26
  "@atlaskit/editor-tables": "^2.8.0",
28
27
  "@atlaskit/platform-feature-flags": "^0.3.0",