@atlaskit/renderer 109.20.2 → 109.20.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,12 @@
1
1
  # @atlaskit/renderer
2
2
 
3
+ ## 109.20.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#94652](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94652) [`11a68d0a971a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/11a68d0a971a) - Clear query params when copying link to header
8
+ - Updated dependencies
9
+
3
10
  ## 109.20.2
4
11
 
5
12
  ### Patch Changes
@@ -14,6 +14,7 @@ var _clipboard = require("../utils/clipboard");
14
14
  var getCurrentUrlWithHash = function getCurrentUrlWithHash() {
15
15
  var hash = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
16
16
  var url = new URL(window.location.href);
17
+ url.search = ''; // clear any query params so that the page will correctly scroll to the anchor
17
18
  url.hash = encodeURIComponent(hash);
18
19
  return url.href;
19
20
  };
@@ -55,7 +55,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
55
55
  var NORMAL_SEVERITY_THRESHOLD = exports.NORMAL_SEVERITY_THRESHOLD = 2000;
56
56
  var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
57
57
  var packageName = "@atlaskit/renderer";
58
- var packageVersion = "109.20.2";
58
+ var packageVersion = "109.20.3";
59
59
  var Renderer = exports.Renderer = /*#__PURE__*/function (_PureComponent) {
60
60
  (0, _inherits2.default)(Renderer, _PureComponent);
61
61
  var _super = _createSuper(Renderer);
@@ -6,6 +6,7 @@ import AnalyticsContext from '../../analytics/analyticsContext';
6
6
  import { copyTextToClipboard } from '../utils/clipboard';
7
7
  const getCurrentUrlWithHash = (hash = '') => {
8
8
  const url = new URL(window.location.href);
9
+ url.search = ''; // clear any query params so that the page will correctly scroll to the anchor
9
10
  url.hash = encodeURIComponent(hash);
10
11
  return url.href;
11
12
  };
@@ -36,7 +36,7 @@ import { EditorMediaClientProvider } from '../../react/utils/EditorMediaClientPr
36
36
  export const NORMAL_SEVERITY_THRESHOLD = 2000;
37
37
  export const DEGRADED_SEVERITY_THRESHOLD = 3000;
38
38
  const packageName = "@atlaskit/renderer";
39
- const packageVersion = "109.20.2";
39
+ const packageVersion = "109.20.3";
40
40
  export class Renderer extends PureComponent {
41
41
  constructor(props) {
42
42
  super(props);
@@ -7,6 +7,7 @@ import { copyTextToClipboard } from '../utils/clipboard';
7
7
  var getCurrentUrlWithHash = function getCurrentUrlWithHash() {
8
8
  var hash = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
9
9
  var url = new URL(window.location.href);
10
+ url.search = ''; // clear any query params so that the page will correctly scroll to the anchor
10
11
  url.hash = encodeURIComponent(hash);
11
12
  return url.href;
12
13
  };
@@ -46,7 +46,7 @@ import { EditorMediaClientProvider } from '../../react/utils/EditorMediaClientPr
46
46
  export var NORMAL_SEVERITY_THRESHOLD = 2000;
47
47
  export var DEGRADED_SEVERITY_THRESHOLD = 3000;
48
48
  var packageName = "@atlaskit/renderer";
49
- var packageVersion = "109.20.2";
49
+ var packageVersion = "109.20.3";
50
50
  export var Renderer = /*#__PURE__*/function (_PureComponent) {
51
51
  _inherits(Renderer, _PureComponent);
52
52
  var _super = _createSuper(Renderer);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "109.20.2",
3
+ "version": "109.20.3",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -31,11 +31,11 @@
31
31
  "@atlaskit/analytics-next": "^9.3.0",
32
32
  "@atlaskit/button": "^17.14.0",
33
33
  "@atlaskit/code": "^15.1.0",
34
- "@atlaskit/editor-common": "^78.31.0",
34
+ "@atlaskit/editor-common": "^78.33.0",
35
35
  "@atlaskit/editor-json-transformer": "^8.11.0",
36
36
  "@atlaskit/editor-palette": "1.5.3",
37
37
  "@atlaskit/editor-prosemirror": "4.0.0",
38
- "@atlaskit/editor-shared-styles": "^2.9.0",
38
+ "@atlaskit/editor-shared-styles": "^2.10.0",
39
39
  "@atlaskit/emoji": "^67.6.0",
40
40
  "@atlaskit/icon": "^22.1.0",
41
41
  "@atlaskit/link-datasource": "^1.29.0",
@@ -47,7 +47,7 @@
47
47
  "@atlaskit/media-ui": "^25.9.0",
48
48
  "@atlaskit/media-viewer": "^48.4.0",
49
49
  "@atlaskit/platform-feature-flags": "^0.2.0",
50
- "@atlaskit/smart-card": "^26.57.0",
50
+ "@atlaskit/smart-card": "^26.58.0",
51
51
  "@atlaskit/status": "^1.4.0",
52
52
  "@atlaskit/task-decision": "^17.9.0",
53
53
  "@atlaskit/theme": "^12.7.0",