@atlaskit/editor-plugin-ufo 8.0.0 → 8.0.2

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,17 @@
1
1
  # @atlaskit/editor-plugin-ufo
2
2
 
3
+ ## 8.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 8.0.1
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 8.0.0
4
16
 
5
17
  ### Patch Changes
@@ -30,6 +30,8 @@ function bind(target, event, controller, listener) {
30
30
  };
31
31
  }
32
32
  var AbortEvent = ['wheel', 'keydown', 'mousedown', 'pointerdown', 'pointerup', 'touchend', 'scroll', 'mouseover'];
33
+
34
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
33
35
  var abortUFOMeasurementOnFirstUserInteraction = exports.abortUFOMeasurementOnFirstUserInteraction = function abortUFOMeasurementOnFirstUserInteraction() {
34
36
  if (typeof window.AbortController !== 'function') {
35
37
  return;
@@ -23,6 +23,8 @@ function bind(target, event, controller, listener) {
23
23
  };
24
24
  }
25
25
  const AbortEvent = ['wheel', 'keydown', 'mousedown', 'pointerdown', 'pointerup', 'touchend', 'scroll', 'mouseover'];
26
+
27
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
26
28
  export const abortUFOMeasurementOnFirstUserInteraction = () => {
27
29
  if (typeof window.AbortController !== 'function') {
28
30
  return;
@@ -23,6 +23,8 @@ function bind(target, event, controller, listener) {
23
23
  };
24
24
  }
25
25
  var AbortEvent = ['wheel', 'keydown', 'mousedown', 'pointerdown', 'pointerup', 'touchend', 'scroll', 'mouseover'];
26
+
27
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
26
28
  export var abortUFOMeasurementOnFirstUserInteraction = function abortUFOMeasurementOnFirstUserInteraction() {
27
29
  if (typeof window.AbortController !== 'function') {
28
30
  return;
@@ -1,2 +1,2 @@
1
1
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- export declare const traceUFOInteractionOnFirstInteraction: () => SafePlugin<any>;
2
+ export declare const traceUFOInteractionOnFirstInteraction: () => SafePlugin;
@@ -1,2 +1,2 @@
1
1
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- export declare const traceUFOInteractionOnFirstInteraction: () => SafePlugin<any>;
2
+ export declare const traceUFOInteractionOnFirstInteraction: () => SafePlugin;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-ufo",
3
- "version": "8.0.0",
3
+ "version": "8.0.2",
4
4
  "description": "Ufo plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -30,11 +30,11 @@
30
30
  "dependencies": {
31
31
  "@atlaskit/editor-prosemirror": "^7.3.0",
32
32
  "@atlaskit/react-ufo": "^5.4.0",
33
- "@atlaskit/tmp-editor-statsig": "^35.10.0",
33
+ "@atlaskit/tmp-editor-statsig": "^37.0.0",
34
34
  "@babel/runtime": "^7.0.0"
35
35
  },
36
36
  "peerDependencies": {
37
- "@atlaskit/editor-common": "^112.0.0",
37
+ "@atlaskit/editor-common": "^112.2.0",
38
38
  "react": "^18.2.0"
39
39
  },
40
40
  "techstack": {
@@ -54,7 +54,8 @@ const AbortEvent: ReadonlyArray<FirstUserInteractionEvents> = [
54
54
  'mouseover',
55
55
  ];
56
56
 
57
- export const abortUFOMeasurementOnFirstUserInteraction = () => {
57
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
58
+ export const abortUFOMeasurementOnFirstUserInteraction = (): SafePlugin<any> | undefined => {
58
59
  if (typeof window.AbortController !== 'function') {
59
60
  return;
60
61
  }
@@ -5,7 +5,7 @@ import { type EditorState } from '@atlaskit/editor-prosemirror/state';
5
5
  import { type EditorView } from '@atlaskit/editor-prosemirror/view';
6
6
  import { abortAll, getActiveInteraction } from '@atlaskit/react-ufo/interaction-metrics';
7
7
 
8
- export const traceUFOInteractionOnFirstInteraction = () => {
8
+ export const traceUFOInteractionOnFirstInteraction = (): SafePlugin => {
9
9
  return new SafePlugin({
10
10
  view() {
11
11
  let aborted = false;