@atlaskit/editor-plugin-selection 1.4.5 → 1.4.7

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.7
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 1.4.6
10
+
11
+ ### Patch Changes
12
+
13
+ - [#143799](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/143799)
14
+ [`854fc7c6e6522`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/854fc7c6e6522) -
15
+ [ux] ED-24255 update mark boundary cursor on any doc change
16
+ - Updated dependencies
17
+
3
18
  ## 1.4.5
4
19
 
5
20
  ### Patch Changes
@@ -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.5",
3
+ "version": "1.4.7",
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": "^90.0.0",
23
+ "@atlaskit/editor-common": "^91.1.0",
24
24
  "@atlaskit/editor-prosemirror": "6.0.0",
25
- "@atlaskit/editor-shared-styles": "^2.13.0",
25
+ "@atlaskit/editor-shared-styles": "^3.0.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": {