@atlaskit/editor-plugin-selection 1.4.4 → 1.4.6

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.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#143799](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/143799)
8
+ [`854fc7c6e6522`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/854fc7c6e6522) -
9
+ [ux] ED-24255 update mark boundary cursor on any doc change
10
+ - Updated dependencies
11
+
12
+ ## 1.4.5
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+
3
18
  ## 1.4.4
4
19
 
5
20
  ### Patch Changes
package/README.md CHANGED
@@ -27,4 +27,4 @@ Please see [Atlaskit - Editor plugin selection](https://atlaskit.atlassian.com/p
27
27
  For internal Atlassian, visit the slack channel [#help-editor](https://atlassian.slack.com/archives/CFG3PSQ9E) for support or visit [go/editor-help](https://go/editor-help) to submit a bug.
28
28
  ## License
29
29
  ---
30
- Please see [Atlassian Frontend - License](https://developer.atlassian.com/cloud/framework/atlassian-frontend/#license) for more licensing information.
30
+ Please see [Atlassian Frontend - License](https://hello.atlassian.net/wiki/spaces/AF/pages/2589099144/Documentation#Platform-License) for more licensing information.
@@ -23,8 +23,9 @@ var createMarkBoundaryCursorPlugin = exports.createMarkBoundaryCursorPlugin = fu
23
23
  storedMarks = tr.storedMarks,
24
24
  doc = tr.doc,
25
25
  selectionSet = tr.selectionSet,
26
- storedMarksSet = tr.storedMarksSet;
27
- if (!selectionSet && !storedMarksSet) {
26
+ storedMarksSet = tr.storedMarksSet,
27
+ docChanged = tr.docChanged;
28
+ if (!selectionSet && !storedMarksSet && !docChanged) {
28
29
  return currentState;
29
30
  }
30
31
  var side = (0, _activeMarksSide.getActiveMarksSide)({
@@ -16,9 +16,10 @@ export const createMarkBoundaryCursorPlugin = () => {
16
16
  storedMarks,
17
17
  doc,
18
18
  selectionSet,
19
- storedMarksSet
19
+ storedMarksSet,
20
+ docChanged
20
21
  } = tr;
21
- if (!selectionSet && !storedMarksSet) {
22
+ if (!selectionSet && !storedMarksSet && !docChanged) {
22
23
  return currentState;
23
24
  }
24
25
  const side = getActiveMarksSide({
@@ -17,8 +17,9 @@ export var createMarkBoundaryCursorPlugin = function createMarkBoundaryCursorPlu
17
17
  storedMarks = tr.storedMarks,
18
18
  doc = tr.doc,
19
19
  selectionSet = tr.selectionSet,
20
- storedMarksSet = tr.storedMarksSet;
21
- if (!selectionSet && !storedMarksSet) {
20
+ storedMarksSet = tr.storedMarksSet,
21
+ docChanged = tr.docChanged;
22
+ if (!selectionSet && !storedMarksSet && !docChanged) {
22
23
  return currentState;
23
24
  }
24
25
  var side = getActiveMarksSide({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-selection",
3
- "version": "1.4.4",
3
+ "version": "1.4.6",
4
4
  "description": "Selection plugin for @atlaskit/editor-core",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -20,12 +20,12 @@
20
20
  "runReact18": false
21
21
  },
22
22
  "dependencies": {
23
- "@atlaskit/editor-common": "^89.2.0",
23
+ "@atlaskit/editor-common": "^91.0.0",
24
24
  "@atlaskit/editor-prosemirror": "6.0.0",
25
25
  "@atlaskit/editor-shared-styles": "^2.13.0",
26
26
  "@atlaskit/editor-tables": "^2.8.0",
27
27
  "@atlaskit/platform-feature-flags": "^0.3.0",
28
- "@atlaskit/tokens": "^1.59.0",
28
+ "@atlaskit/tokens": "^1.61.0",
29
29
  "@babel/runtime": "^7.0.0"
30
30
  },
31
31
  "peerDependencies": {