@atlaskit/editor-plugin-code-block-advanced 1.1.0 → 1.1.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,13 @@
1
1
  # @atlaskit/editor-plugin-code-block-advanced
2
2
 
3
+ ## 1.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#113094](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/113094)
8
+ [`b7cb7ca6cd1e0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b7cb7ca6cd1e0) -
9
+ Stop auto-scrolling on large code blocks from prosemirror.
10
+
3
11
  ## 1.1.0
4
12
 
5
13
  ### Minor Changes
@@ -31,7 +31,7 @@ var syncCMWithPM = exports.syncCMWithPM = function syncCMWithPM(_ref) {
31
31
  }
32
32
  offset += toB - fromB - (toA - fromA);
33
33
  });
34
- tr.setSelection(_state.TextSelection.create(tr.doc, selFrom, selTo));
34
+ tr.setSelection(_state.TextSelection.create(tr.doc, selFrom, selTo)).setMeta('scrollIntoView', false);
35
35
  view.dispatch(tr);
36
36
  }
37
37
  };
@@ -28,7 +28,7 @@ export const syncCMWithPM = ({
28
28
  }
29
29
  offset += toB - fromB - (toA - fromA);
30
30
  });
31
- tr.setSelection(TextSelection.create(tr.doc, selFrom, selTo));
31
+ tr.setSelection(TextSelection.create(tr.doc, selFrom, selTo)).setMeta('scrollIntoView', false);
32
32
  view.dispatch(tr);
33
33
  }
34
34
  };
@@ -25,7 +25,7 @@ export var syncCMWithPM = function syncCMWithPM(_ref) {
25
25
  }
26
26
  offset += toB - fromB - (toA - fromA);
27
27
  });
28
- tr.setSelection(TextSelection.create(tr.doc, selFrom, selTo));
28
+ tr.setSelection(TextSelection.create(tr.doc, selFrom, selTo)).setMeta('scrollIntoView', false);
29
29
  view.dispatch(tr);
30
30
  }
31
31
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-code-block-advanced",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "CodeBlockAdvanced plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -33,11 +33,11 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@atlaskit/adf-schema": "^46.1.0",
36
- "@atlaskit/editor-common": "^99.10.0",
36
+ "@atlaskit/editor-common": "^99.11.0",
37
37
  "@atlaskit/editor-plugin-code-block": "^3.7.0",
38
38
  "@atlaskit/editor-plugin-editor-disabled": "^1.5.0",
39
39
  "@atlaskit/editor-plugin-find-replace": "^1.9.0",
40
- "@atlaskit/editor-plugin-selection": "^1.7.0",
40
+ "@atlaskit/editor-plugin-selection": "^1.8.0",
41
41
  "@atlaskit/editor-plugin-selection-marker": "^1.8.0",
42
42
  "@atlaskit/editor-prosemirror": "7.0.0",
43
43
  "@atlaskit/tokens": "^3.3.0",
@@ -33,7 +33,7 @@ export const syncCMWithPM = ({ view, update, offset }: Props): void => {
33
33
  }
34
34
  offset += toB - fromB - (toA - fromA);
35
35
  });
36
- tr.setSelection(TextSelection.create(tr.doc, selFrom, selTo));
36
+ tr.setSelection(TextSelection.create(tr.doc, selFrom, selTo)).setMeta('scrollIntoView', false);
37
37
  view.dispatch(tr);
38
38
  }
39
39
  };