@atlaskit/editor-common 116.26.3 → 116.27.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,26 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 116.27.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`650f4c7ce7fb2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/650f4c7ce7fb2) -
8
+ Type-only fixes for TypeScript 7 (tsgo) compatibility with the updated DOM lib. No runtime or
9
+ public API changes.
10
+ - Updated dependencies
11
+
12
+ ## 116.27.0
13
+
14
+ ### Minor Changes
15
+
16
+ - [`1f968eb29f086`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1f968eb29f086) -
17
+ Add editorDomSize (total editor DOM element count) to proseMirrorRendered, INP and UFO performance
18
+ events, gated behind the platform_editor_dom_node_count experiment
19
+
20
+ ### Patch Changes
21
+
22
+ - Updated dependencies
23
+
3
24
  ## 116.26.3
4
25
 
5
26
  ### Patch Changes
@@ -25,7 +25,7 @@ var isExpandCollapsed = exports.isExpandCollapsed = function isExpandCollapsed(e
25
25
  var contentDiv = expandContainer.querySelector('.ak-editor-expand__content');
26
26
  if (contentDiv && contentDiv instanceof HTMLElement) {
27
27
  var computedStyle = window.getComputedStyle(contentDiv);
28
- return computedStyle.display === 'none' || computedStyle.visibility === 'hidden' || contentDiv.hidden;
28
+ return computedStyle.display === 'none' || computedStyle.visibility === 'hidden' || Boolean(contentDiv.hidden);
29
29
  }
30
30
  return false;
31
31
  };
@@ -28,7 +28,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
28
28
  var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
29
29
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
30
30
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
31
- var packageVersion = "116.26.2";
31
+ var packageVersion = "116.27.0";
32
32
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
33
33
  // Remove URL as it has UGC
34
34
  // Ignored via go/ees007
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
24
24
  * @jsx jsx
25
25
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
26
26
  var packageName = "@atlaskit/editor-common";
27
- var packageVersion = "116.26.2";
27
+ var packageVersion = "116.27.0";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -19,7 +19,7 @@ export const isExpandCollapsed = expandContainer => {
19
19
  const contentDiv = expandContainer.querySelector('.ak-editor-expand__content');
20
20
  if (contentDiv && contentDiv instanceof HTMLElement) {
21
21
  const computedStyle = window.getComputedStyle(contentDiv);
22
- return computedStyle.display === 'none' || computedStyle.visibility === 'hidden' || contentDiv.hidden;
22
+ return computedStyle.display === 'none' || computedStyle.visibility === 'hidden' || Boolean(contentDiv.hidden);
23
23
  }
24
24
  return false;
25
25
  };
@@ -14,7 +14,7 @@ const NETWORK_FAILURE_REGEX = /^network failure/i;
14
14
  const RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
15
15
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
16
16
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
17
- const packageVersion = "116.26.2";
17
+ const packageVersion = "116.27.0";
18
18
  const sanitiseSentryEvents = (data, _hint) => {
19
19
  // Remove URL as it has UGC
20
20
  // Ignored via go/ees007
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
14
14
  import { fg } from '@atlaskit/platform-feature-flags';
15
15
  import Layer from '../Layer';
16
16
  const packageName = "@atlaskit/editor-common";
17
- const packageVersion = "116.26.2";
17
+ const packageVersion = "116.27.0";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -19,7 +19,7 @@ export var isExpandCollapsed = function isExpandCollapsed(expandContainer) {
19
19
  var contentDiv = expandContainer.querySelector('.ak-editor-expand__content');
20
20
  if (contentDiv && contentDiv instanceof HTMLElement) {
21
21
  var computedStyle = window.getComputedStyle(contentDiv);
22
- return computedStyle.display === 'none' || computedStyle.visibility === 'hidden' || contentDiv.hidden;
22
+ return computedStyle.display === 'none' || computedStyle.visibility === 'hidden' || Boolean(contentDiv.hidden);
23
23
  }
24
24
  return false;
25
25
  };
@@ -20,7 +20,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
20
20
  var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
21
21
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
22
22
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
23
- var packageVersion = "116.26.2";
23
+ var packageVersion = "116.27.0";
24
24
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
25
25
  // Remove URL as it has UGC
26
26
  // Ignored via go/ees007
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
21
21
  import { fg } from '@atlaskit/platform-feature-flags';
22
22
  import Layer from '../Layer';
23
23
  var packageName = "@atlaskit/editor-common";
24
- var packageVersion = "116.26.2";
24
+ var packageVersion = "116.27.0";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -39,6 +39,7 @@ type EditorStartAEP = UIAEP<ACTION.STARTED, ACTION_SUBJECT.EDITOR, undefined, {
39
39
  type EditorPerfAEP = OperationalAEPWithObjectId<ACTION.EDITOR_MOUNTED | ACTION.PROSEMIRROR_RENDERED | ACTION.ON_EDITOR_READY_CALLBACK | ACTION.ON_CHANGE_CALLBACK, ACTION_SUBJECT.EDITOR, undefined, {
40
40
  distortedDuration?: boolean;
41
41
  duration: number;
42
+ editorDomSize?: number;
42
43
  nodes?: Record<string, number>;
43
44
  nodesInViewport?: Record<string, number>;
44
45
  nodeSize?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "116.26.3",
3
+ "version": "116.27.1",
4
4
  "description": "A package that contains common classes and components for editor and renderer",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -35,7 +35,7 @@
35
35
  "@atlaskit/analytics-listeners": "^11.1.0",
36
36
  "@atlaskit/analytics-namespaced-context": "^8.1.0",
37
37
  "@atlaskit/analytics-next": "^12.3.0",
38
- "@atlaskit/atlassian-context": "^1.0.0",
38
+ "@atlaskit/atlassian-context": "^1.1.0",
39
39
  "@atlaskit/browser-apis": "^1.1.0",
40
40
  "@atlaskit/button": "^24.3.0",
41
41
  "@atlaskit/codemod-utils": "^5.0.0",
@@ -51,7 +51,7 @@
51
51
  "@atlaskit/editor-toolbar-model": "^1.1.0",
52
52
  "@atlaskit/emoji": "^71.8.0",
53
53
  "@atlaskit/icon": "^37.0.0",
54
- "@atlaskit/link": "^4.1.0",
54
+ "@atlaskit/link": "^4.2.0",
55
55
  "@atlaskit/link-datasource": "^6.1.0",
56
56
  "@atlaskit/link-picker": "^6.2.0",
57
57
  "@atlaskit/media-card": "^81.4.0",
@@ -80,8 +80,8 @@
80
80
  "@atlaskit/task-decision": "^21.4.0",
81
81
  "@atlaskit/teams-app-config": "^2.1.0",
82
82
  "@atlaskit/textfield": "^9.1.0",
83
- "@atlaskit/tmp-editor-statsig": "^124.2.0",
84
- "@atlaskit/tokens": "^15.6.0",
83
+ "@atlaskit/tmp-editor-statsig": "^124.4.0",
84
+ "@atlaskit/tokens": "^15.7.0",
85
85
  "@atlaskit/tooltip": "^23.1.0",
86
86
  "@atlaskit/width-detector": "^6.2.0",
87
87
  "@babel/runtime": "^7.0.0",