@atlaskit/editor-plugin-ufo 7.0.2 → 8.0.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 +12 -0
- package/afm-jira/tsconfig.json +3 -0
- package/afm-products/tsconfig.json +3 -0
- package/dist/cjs/pm-plugins/abortUFOMeasurementOnFirstUserInteraction.js +2 -0
- package/dist/es2019/pm-plugins/abortUFOMeasurementOnFirstUserInteraction.js +2 -0
- package/dist/esm/pm-plugins/abortUFOMeasurementOnFirstUserInteraction.js +2 -0
- package/dist/types/pm-plugins/traceUFOInteractionOnFirstInteraction.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/traceUFOInteractionOnFirstInteraction.d.ts +1 -1
- package/package.json +3 -3
- package/src/pm-plugins/abortUFOMeasurementOnFirstUserInteraction.ts +2 -1
- package/src/pm-plugins/traceUFOInteractionOnFirstInteraction.ts +1 -1
package/CHANGELOG.md
CHANGED
package/afm-jira/tsconfig.json
CHANGED
|
@@ -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
|
|
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
|
|
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": "
|
|
3
|
+
"version": "8.0.1",
|
|
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": "^
|
|
33
|
+
"@atlaskit/tmp-editor-statsig": "^36.0.0",
|
|
34
34
|
"@babel/runtime": "^7.0.0"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@atlaskit/editor-common": "^
|
|
37
|
+
"@atlaskit/editor-common": "^112.0.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
|
-
|
|
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;
|