@atlaskit/editor-plugin-ufo 6.0.1 → 6.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,13 @@
1
1
  # @atlaskit/editor-plugin-ufo
2
2
 
3
+ ## 6.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`0c76d70d520fa`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0c76d70d520fa) -
8
+ [ux] Cleanup cc_editor_interactions_trigger_traceufointeraction
9
+ - Updated dependencies
10
+
3
11
  ## 6.0.1
4
12
 
5
13
  ### Patch Changes
@@ -8,7 +8,6 @@ exports.traceUFOInteractionOnFirstInteraction = void 0;
8
8
  var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
9
9
  var _interactionMetrics = require("@atlaskit/react-ufo/interaction-metrics");
10
10
  var _traceInteraction = _interopRequireDefault(require("@atlaskit/react-ufo/trace-interaction"));
11
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
12
11
  /* eslint-disable @repo/internal/dom-events/no-unsafe-event-listeners */
13
12
 
14
13
  var traceUFOInteractionOnFirstInteraction = exports.traceUFOInteractionOnFirstInteraction = function traceUFOInteractionOnFirstInteraction() {
@@ -28,15 +27,18 @@ var traceUFOInteractionOnFirstInteraction = exports.traceUFOInteractionOnFirstIn
28
27
  props: {
29
28
  handleDOMEvents: {
30
29
  mouseover: function mouseover(_view, event) {
31
- if ((0, _expValEquals.expValEquals)('cc_editor_interactions_trigger_traceufointeraction', 'cohort', 'only_mousedown_event')) {
32
- return;
33
- }
30
+ // This Plugin is not currently used as it leads to too high a level of abortions (due to the current TTAI timing being long, and users starting click before TTAI completes).
31
+ // This can be reconsidered if we meaningfully reduce our TTAI (ie. <7 seconds)
32
+ // If we did want to re-enable it, we would want to rollout with the ability to gate to specific events like below:
33
+ // if (expValEquals('cc_editor_interactions_trigger_traceufointeraction', 'cohort', 'only_mousedown_event')) { return }
34
34
  abortIfNotAborted(event);
35
35
  },
36
36
  mouseenter: function mouseenter(_view, event) {
37
- if ((0, _expValEquals.expValEquals)('cc_editor_interactions_trigger_traceufointeraction', 'cohort', 'only_mousedown_event')) {
38
- return;
39
- }
37
+ // This Plugin is not currently used as it leads to too high a level of abortions (due to the current TTAI timing being long, and users starting click before TTAI completes).
38
+ // This can be reconsidered if we meaningfully reduce our TTAI (ie. <7 seconds)
39
+ // If we did want to re-enable it, we would want to rollout with the ability to gate to specific events like below:
40
+ // if (expValEquals('cc_editor_interactions_trigger_traceufointeraction', 'cohort', 'only_mousedown_event')) { return }
41
+
40
42
  abortIfNotAborted(event);
41
43
  },
42
44
  mousedown: function mousedown(_view, event) {
@@ -4,8 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.ufoPlugin = void 0;
7
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
8
- var _traceUFOInteractionOnFirstInteraction = require("./pm-plugins/traceUFOInteractionOnFirstInteraction");
9
7
  var ufoPlugin = exports.ufoPlugin = function ufoPlugin() {
10
8
  return {
11
9
  name: 'ufo',
@@ -16,13 +14,17 @@ var ufoPlugin = exports.ufoPlugin = function ufoPlugin() {
16
14
  // This plugin is not needed in SSR environments - and uses apis which are not available in SSR internally
17
15
  return [];
18
16
  }
19
- if ((0, _expValEquals.expValEquals)('cc_editor_interactions_trigger_traceufointeraction', 'cohort', 'control')) {
20
- return [];
21
- }
22
- return [{
23
- name: 'traceUFOInteractionOnFirstInteraction',
24
- plugin: _traceUFOInteractionOnFirstInteraction.traceUFOInteractionOnFirstInteraction
25
- }];
17
+
18
+ // This Plugin is not currently used as it leads to too high a level of abortions (due to the current TTAI timing being long, and users starting click before TTAI completes).
19
+ // This can be reconsidered if we meaningfully reduce our TTAI (ie. <7 seconds)
20
+ return [];
21
+
22
+ // return [
23
+ // {
24
+ // name: 'traceUFOInteractionOnFirstInteraction',
25
+ // plugin: traceUFOInteractionOnFirstInteraction,
26
+ // },
27
+ // ];
26
28
  }
27
29
  };
28
30
  };
@@ -2,7 +2,6 @@
2
2
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
3
3
  import { getActiveInteraction } from '@atlaskit/react-ufo/interaction-metrics';
4
4
  import traceUFOInteraction from '@atlaskit/react-ufo/trace-interaction';
5
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
6
5
  export const traceUFOInteractionOnFirstInteraction = () => {
7
6
  let aborted = false;
8
7
  function abortIfNotAborted(event) {
@@ -20,15 +19,18 @@ export const traceUFOInteractionOnFirstInteraction = () => {
20
19
  props: {
21
20
  handleDOMEvents: {
22
21
  mouseover: (_view, event) => {
23
- if (expValEquals('cc_editor_interactions_trigger_traceufointeraction', 'cohort', 'only_mousedown_event')) {
24
- return;
25
- }
22
+ // This Plugin is not currently used as it leads to too high a level of abortions (due to the current TTAI timing being long, and users starting click before TTAI completes).
23
+ // This can be reconsidered if we meaningfully reduce our TTAI (ie. <7 seconds)
24
+ // If we did want to re-enable it, we would want to rollout with the ability to gate to specific events like below:
25
+ // if (expValEquals('cc_editor_interactions_trigger_traceufointeraction', 'cohort', 'only_mousedown_event')) { return }
26
26
  abortIfNotAborted(event);
27
27
  },
28
28
  mouseenter: (_view, event) => {
29
- if (expValEquals('cc_editor_interactions_trigger_traceufointeraction', 'cohort', 'only_mousedown_event')) {
30
- return;
31
- }
29
+ // This Plugin is not currently used as it leads to too high a level of abortions (due to the current TTAI timing being long, and users starting click before TTAI completes).
30
+ // This can be reconsidered if we meaningfully reduce our TTAI (ie. <7 seconds)
31
+ // If we did want to re-enable it, we would want to rollout with the ability to gate to specific events like below:
32
+ // if (expValEquals('cc_editor_interactions_trigger_traceufointeraction', 'cohort', 'only_mousedown_event')) { return }
33
+
32
34
  abortIfNotAborted(event);
33
35
  },
34
36
  mousedown: (_view, event) => abortIfNotAborted(event)
@@ -1,5 +1,3 @@
1
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
2
- import { traceUFOInteractionOnFirstInteraction } from './pm-plugins/traceUFOInteractionOnFirstInteraction';
3
1
  export const ufoPlugin = () => ({
4
2
  name: 'ufo',
5
3
  pmPlugins() {
@@ -9,12 +7,16 @@ export const ufoPlugin = () => ({
9
7
  // This plugin is not needed in SSR environments - and uses apis which are not available in SSR internally
10
8
  return [];
11
9
  }
12
- if (expValEquals('cc_editor_interactions_trigger_traceufointeraction', 'cohort', 'control')) {
13
- return [];
14
- }
15
- return [{
16
- name: 'traceUFOInteractionOnFirstInteraction',
17
- plugin: traceUFOInteractionOnFirstInteraction
18
- }];
10
+
11
+ // This Plugin is not currently used as it leads to too high a level of abortions (due to the current TTAI timing being long, and users starting click before TTAI completes).
12
+ // This can be reconsidered if we meaningfully reduce our TTAI (ie. <7 seconds)
13
+ return [];
14
+
15
+ // return [
16
+ // {
17
+ // name: 'traceUFOInteractionOnFirstInteraction',
18
+ // plugin: traceUFOInteractionOnFirstInteraction,
19
+ // },
20
+ // ];
19
21
  }
20
22
  });
@@ -2,7 +2,6 @@
2
2
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
3
3
  import { getActiveInteraction } from '@atlaskit/react-ufo/interaction-metrics';
4
4
  import traceUFOInteraction from '@atlaskit/react-ufo/trace-interaction';
5
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
6
5
  export var traceUFOInteractionOnFirstInteraction = function traceUFOInteractionOnFirstInteraction() {
7
6
  var aborted = false;
8
7
  function abortIfNotAborted(event) {
@@ -20,15 +19,18 @@ export var traceUFOInteractionOnFirstInteraction = function traceUFOInteractionO
20
19
  props: {
21
20
  handleDOMEvents: {
22
21
  mouseover: function mouseover(_view, event) {
23
- if (expValEquals('cc_editor_interactions_trigger_traceufointeraction', 'cohort', 'only_mousedown_event')) {
24
- return;
25
- }
22
+ // This Plugin is not currently used as it leads to too high a level of abortions (due to the current TTAI timing being long, and users starting click before TTAI completes).
23
+ // This can be reconsidered if we meaningfully reduce our TTAI (ie. <7 seconds)
24
+ // If we did want to re-enable it, we would want to rollout with the ability to gate to specific events like below:
25
+ // if (expValEquals('cc_editor_interactions_trigger_traceufointeraction', 'cohort', 'only_mousedown_event')) { return }
26
26
  abortIfNotAborted(event);
27
27
  },
28
28
  mouseenter: function mouseenter(_view, event) {
29
- if (expValEquals('cc_editor_interactions_trigger_traceufointeraction', 'cohort', 'only_mousedown_event')) {
30
- return;
31
- }
29
+ // This Plugin is not currently used as it leads to too high a level of abortions (due to the current TTAI timing being long, and users starting click before TTAI completes).
30
+ // This can be reconsidered if we meaningfully reduce our TTAI (ie. <7 seconds)
31
+ // If we did want to re-enable it, we would want to rollout with the ability to gate to specific events like below:
32
+ // if (expValEquals('cc_editor_interactions_trigger_traceufointeraction', 'cohort', 'only_mousedown_event')) { return }
33
+
32
34
  abortIfNotAborted(event);
33
35
  },
34
36
  mousedown: function mousedown(_view, event) {
@@ -1,5 +1,3 @@
1
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
2
- import { traceUFOInteractionOnFirstInteraction } from './pm-plugins/traceUFOInteractionOnFirstInteraction';
3
1
  export var ufoPlugin = function ufoPlugin() {
4
2
  return {
5
3
  name: 'ufo',
@@ -10,13 +8,17 @@ export var ufoPlugin = function ufoPlugin() {
10
8
  // This plugin is not needed in SSR environments - and uses apis which are not available in SSR internally
11
9
  return [];
12
10
  }
13
- if (expValEquals('cc_editor_interactions_trigger_traceufointeraction', 'cohort', 'control')) {
14
- return [];
15
- }
16
- return [{
17
- name: 'traceUFOInteractionOnFirstInteraction',
18
- plugin: traceUFOInteractionOnFirstInteraction
19
- }];
11
+
12
+ // This Plugin is not currently used as it leads to too high a level of abortions (due to the current TTAI timing being long, and users starting click before TTAI completes).
13
+ // This can be reconsidered if we meaningfully reduce our TTAI (ie. <7 seconds)
14
+ return [];
15
+
16
+ // return [
17
+ // {
18
+ // name: 'traceUFOInteractionOnFirstInteraction',
19
+ // plugin: traceUFOInteractionOnFirstInteraction,
20
+ // },
21
+ // ];
20
22
  }
21
23
  };
22
24
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-ufo",
3
- "version": "6.0.1",
3
+ "version": "6.0.2",
4
4
  "description": "Ufo plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -31,11 +31,11 @@
31
31
  "@atlaskit/editor-prosemirror": "7.0.0",
32
32
  "@atlaskit/platform-feature-flags": "^1.1.0",
33
33
  "@atlaskit/react-ufo": "^4.11.0",
34
- "@atlaskit/tmp-editor-statsig": "^13.0.0",
34
+ "@atlaskit/tmp-editor-statsig": "^13.6.0",
35
35
  "@babel/runtime": "^7.0.0"
36
36
  },
37
37
  "peerDependencies": {
38
- "@atlaskit/editor-common": "^110.4.0",
38
+ "@atlaskit/editor-common": "^110.9.0",
39
39
  "react": "^18.2.0"
40
40
  },
41
41
  "techstack": {
@@ -3,7 +3,6 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
3
3
  import { type EditorView } from '@atlaskit/editor-prosemirror/view';
4
4
  import { getActiveInteraction } from '@atlaskit/react-ufo/interaction-metrics';
5
5
  import traceUFOInteraction from '@atlaskit/react-ufo/trace-interaction';
6
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
7
6
 
8
7
  export const traceUFOInteractionOnFirstInteraction = () => {
9
8
  let aborted = false;
@@ -27,28 +26,17 @@ export const traceUFOInteractionOnFirstInteraction = () => {
27
26
  props: {
28
27
  handleDOMEvents: {
29
28
  mouseover: (_view: EditorView, event: Event) => {
30
- if (
31
- expValEquals(
32
- 'cc_editor_interactions_trigger_traceufointeraction',
33
- 'cohort',
34
- 'only_mousedown_event',
35
- )
36
- ) {
37
- return;
38
- }
39
-
29
+ // This Plugin is not currently used as it leads to too high a level of abortions (due to the current TTAI timing being long, and users starting click before TTAI completes).
30
+ // This can be reconsidered if we meaningfully reduce our TTAI (ie. <7 seconds)
31
+ // If we did want to re-enable it, we would want to rollout with the ability to gate to specific events like below:
32
+ // if (expValEquals('cc_editor_interactions_trigger_traceufointeraction', 'cohort', 'only_mousedown_event')) { return }
40
33
  abortIfNotAborted(event);
41
34
  },
42
35
  mouseenter: (_view: EditorView, event: Event) => {
43
- if (
44
- expValEquals(
45
- 'cc_editor_interactions_trigger_traceufointeraction',
46
- 'cohort',
47
- 'only_mousedown_event',
48
- )
49
- ) {
50
- return;
51
- }
36
+ // This Plugin is not currently used as it leads to too high a level of abortions (due to the current TTAI timing being long, and users starting click before TTAI completes).
37
+ // This can be reconsidered if we meaningfully reduce our TTAI (ie. <7 seconds)
38
+ // If we did want to re-enable it, we would want to rollout with the ability to gate to specific events like below:
39
+ // if (expValEquals('cc_editor_interactions_trigger_traceufointeraction', 'cohort', 'only_mousedown_event')) { return }
52
40
 
53
41
  abortIfNotAborted(event);
54
42
  },
package/src/ufoPlugin.tsx CHANGED
@@ -1,6 +1,3 @@
1
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
2
-
3
- import { traceUFOInteractionOnFirstInteraction } from './pm-plugins/traceUFOInteractionOnFirstInteraction';
4
1
  import type { UfoPlugin } from './ufoPluginType';
5
2
 
6
3
  export const ufoPlugin: UfoPlugin = () => ({
@@ -14,15 +11,15 @@ export const ufoPlugin: UfoPlugin = () => ({
14
11
  return [];
15
12
  }
16
13
 
17
- if (expValEquals('cc_editor_interactions_trigger_traceufointeraction', 'cohort', 'control')) {
18
- return [];
19
- }
14
+ // This Plugin is not currently used as it leads to too high a level of abortions (due to the current TTAI timing being long, and users starting click before TTAI completes).
15
+ // This can be reconsidered if we meaningfully reduce our TTAI (ie. <7 seconds)
16
+ return [];
20
17
 
21
- return [
22
- {
23
- name: 'traceUFOInteractionOnFirstInteraction',
24
- plugin: traceUFOInteractionOnFirstInteraction,
25
- },
26
- ];
18
+ // return [
19
+ // {
20
+ // name: 'traceUFOInteractionOnFirstInteraction',
21
+ // plugin: traceUFOInteractionOnFirstInteraction,
22
+ // },
23
+ // ];
27
24
  },
28
25
  });
package/tsconfig.app.json CHANGED
@@ -36,9 +36,6 @@
36
36
  },
37
37
  {
38
38
  "path": "../../react-ufo/atlaskit/tsconfig.app.json"
39
- },
40
- {
41
- "path": "../tmp-editor-statsig/tsconfig.app.json"
42
39
  }
43
40
  ]
44
41
  }