@atlaskit/editor-plugin-ufo 8.0.22 → 8.0.24
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 +16 -0
- package/README.md +41 -1
- package/docs/0-intro.tsx +43 -0
- package/package.json +2 -2
- package/src/pm-plugins/traceUFOInteractionOnFirstInteraction.ts +2 -2
- package/tsconfig.dev.json +9 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-ufo
|
|
2
2
|
|
|
3
|
+
## 8.0.24
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`7b7c52dff5d7d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7b7c52dff5d7d) -
|
|
8
|
+
Fix eslint violations for type import syntax
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 8.0.23
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`9ff7d1c1aa288`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9ff7d1c1aa288) -
|
|
16
|
+
Update README.md and 0-intro.tsx
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 8.0.22
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -1 +1,41 @@
|
|
|
1
|
-
# Editor
|
|
1
|
+
# Editor Plugin UFO
|
|
2
|
+
|
|
3
|
+
UFO plugin for @atlaskit/editor-core
|
|
4
|
+
|
|
5
|
+
**Note:** This component is designed for internal Atlassian development.
|
|
6
|
+
External contributors will be able to use this component but will not be able to submit issues.
|
|
7
|
+
|
|
8
|
+
## Overview
|
|
9
|
+
|
|
10
|
+
The UFO (User-Facing Operations) plugin provides performance monitoring and interaction tracking capabilities for the Atlassian Editor. It integrates with `@atlaskit/react-ufo` to abort UFO measurements when user interactions occur, ensuring accurate performance metrics by preventing false measurements from ongoing interactions.
|
|
11
|
+
|
|
12
|
+
## Key features
|
|
13
|
+
|
|
14
|
+
- **Interaction tracking** - Monitors first user interaction with the editor to abort ongoing UFO measurements
|
|
15
|
+
- **SSR compatibility** - Automatically disabled in server-side rendering environments
|
|
16
|
+
- **Event-based abort** - Aborts UFO measurements on various user interaction events (wheel, keydown, mousedown, pointerdown, pointerup, touchend, scroll, mouseover)
|
|
17
|
+
- **Selection change detection** - Aborts active 'edit-page' and 'live-edit' UFO interactions when editor selection changes
|
|
18
|
+
|
|
19
|
+
## Install
|
|
20
|
+
---
|
|
21
|
+
- **Install** - *yarn add @atlaskit/editor-plugin-ufo*
|
|
22
|
+
- **npm** - [@atlaskit/editor-plugin-ufo](https://www.npmjs.com/package/@atlaskit/editor-plugin-ufo)
|
|
23
|
+
- **Source** - [Bitbucket](https://bitbucket.org/atlassian/atlassian-frontend/src/master/packages/editor/editor-plugin-ufo)
|
|
24
|
+
- **Bundle** - [unpkg.com](https://unpkg.com/@atlaskit/editor-plugin-ufo/dist/)
|
|
25
|
+
|
|
26
|
+
## Usage
|
|
27
|
+
---
|
|
28
|
+
**Internal use only**
|
|
29
|
+
|
|
30
|
+
@atlaskit/editor-plugin-ufo is intended for internal use by the @atlaskit/editor-core and as a plugin dependency of the Editor within your product.
|
|
31
|
+
|
|
32
|
+
Direct use of this component is not supported.
|
|
33
|
+
|
|
34
|
+
Please see [Atlaskit - Editor plugin ufo](https://atlaskit.atlassian.com/packages/editor/editor-plugin-ufo) for documentation and examples for this package.
|
|
35
|
+
|
|
36
|
+
## Support
|
|
37
|
+
---
|
|
38
|
+
For internal Atlassian, visit the slack channel [#help-editor](https://atlassian.slack.com/archives/CFG3PSQ9E) for support or visit [go/editor-help](https://go/editor-help) to submit a bug.
|
|
39
|
+
## License
|
|
40
|
+
---
|
|
41
|
+
Please see [Atlassian Frontend - License](https://hello.atlassian.net/wiki/spaces/AF/pages/2589099144/Documentation#License) for more licensing information.
|
package/docs/0-intro.tsx
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import { AtlassianInternalWarning, code, md } from '@atlaskit/docs';
|
|
4
|
+
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
5
|
+
import { createEditorUseOnlyNotice } from '@atlaskit/editor-common/doc-utils';
|
|
6
|
+
import { token } from '@atlaskit/tokens';
|
|
7
|
+
|
|
8
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
9
|
+
const _default_1: any = md`
|
|
10
|
+
|
|
11
|
+
${createEditorUseOnlyNotice('Editor Plugin UFO', [
|
|
12
|
+
{ name: 'Editor Core', link: '/packages/editor/editor-core' },
|
|
13
|
+
])}\
|
|
14
|
+
|
|
15
|
+
${
|
|
16
|
+
(
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
18
|
+
<div style={{ marginTop: token('space.100', '8px') }}>
|
|
19
|
+
<AtlassianInternalWarning />
|
|
20
|
+
</div>
|
|
21
|
+
)
|
|
22
|
+
}\
|
|
23
|
+
|
|
24
|
+
This package includes the UFO plugin used by \`@atlaskit/editor-core\`.
|
|
25
|
+
|
|
26
|
+
## Usage
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
The exported types of the plugin are defined below:
|
|
30
|
+
|
|
31
|
+
${code`
|
|
32
|
+
export type UfoPlugin = NextEditorPlugin<'ufo', Object>;
|
|
33
|
+
`}\
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
## Support
|
|
37
|
+
---
|
|
38
|
+
For internal Atlassian, visit the slack channel [#help-editor](https://atlassian.slack.com/archives/CFG3PSQ9E) for support or visit [go/editor-help](https://go/editor-help) to submit a bug.
|
|
39
|
+
## License
|
|
40
|
+
---
|
|
41
|
+
Please see [Atlassian Frontend - License](https://hello.atlassian.net/wiki/spaces/AF/pages/2589099144/Documentation#License) for more licensing information.
|
|
42
|
+
`;
|
|
43
|
+
export default _default_1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-ufo",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.24",
|
|
4
4
|
"description": "Ufo plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
32
32
|
"@atlaskit/react-ufo": "^5.12.0",
|
|
33
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
33
|
+
"@atlaskit/tmp-editor-statsig": "^58.0.0",
|
|
34
34
|
"@babel/runtime": "^7.0.0"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
2
|
import { atTheBeginningOfDoc } from '@atlaskit/editor-common/selection';
|
|
3
3
|
import { isEmptyDocument } from '@atlaskit/editor-common/utils';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
5
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
6
6
|
import { abortAll, getActiveInteraction } from '@atlaskit/react-ufo/interaction-metrics';
|
|
7
7
|
|
|
8
8
|
export const traceUFOInteractionOnFirstInteraction = (): SafePlugin => {
|
package/tsconfig.dev.json
CHANGED
|
@@ -40,6 +40,15 @@
|
|
|
40
40
|
"references": [
|
|
41
41
|
{
|
|
42
42
|
"path": "./tsconfig.app.json"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"path": "../../../build/website/docs/tsconfig.app.json"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"path": "../editor-common/tsconfig.app.json"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"path": "../../design-system/tokens/tsconfig.app.json"
|
|
43
52
|
}
|
|
44
53
|
]
|
|
45
54
|
}
|