@atlaskit/editor-plugin-ufo 2.0.7 → 2.1.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 +14 -0
- package/afm-cc/tsconfig.json +1 -1
- package/dist/cjs/ufoPlugin.js +13 -11
- package/dist/es2019/ufoPlugin.js +13 -11
- package/dist/esm/ufoPlugin.js +13 -11
- package/package.json +3 -7
- package/src/ufoPlugin.tsx +5 -9
- package/tsconfig.app.json +0 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-ufo
|
|
2
2
|
|
|
3
|
+
## 2.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 2.1.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#168414](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/168414)
|
|
14
|
+
[`c160484f9e220`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c160484f9e220) -
|
|
15
|
+
Cleaned up ufo plugin fg
|
|
16
|
+
|
|
3
17
|
## 2.0.7
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/afm-cc/tsconfig.json
CHANGED
package/dist/cjs/ufoPlugin.js
CHANGED
|
@@ -4,21 +4,23 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.ufoPlugin = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var isSSR = Boolean(process.env.REACT_SSR);
|
|
7
|
+
// import { abortUFOMeasurementOnFirstUserInteraction } from './pm-plugins/abortUFOMeasurementOnFirstUserInteraction';
|
|
8
|
+
|
|
10
9
|
var ufoPlugin = exports.ufoPlugin = function ufoPlugin() {
|
|
11
10
|
return {
|
|
12
11
|
name: 'ufo',
|
|
13
12
|
pmPlugins: function pmPlugins() {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
return [
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
13
|
+
return [];
|
|
14
|
+
|
|
15
|
+
// This experimental plugin has been abandoned as per ED-27989
|
|
16
|
+
/*
|
|
17
|
+
return [
|
|
18
|
+
{
|
|
19
|
+
name: 'abortUFOMeasurementOnFirstUserInteraction',
|
|
20
|
+
plugin: abortUFOMeasurementOnFirstUserInteraction,
|
|
21
|
+
},
|
|
22
|
+
];
|
|
23
|
+
*/
|
|
22
24
|
}
|
|
23
25
|
};
|
|
24
26
|
};
|
package/dist/es2019/ufoPlugin.js
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
const isSSR = Boolean(process.env.REACT_SSR);
|
|
1
|
+
// import { abortUFOMeasurementOnFirstUserInteraction } from './pm-plugins/abortUFOMeasurementOnFirstUserInteraction';
|
|
2
|
+
|
|
4
3
|
export const ufoPlugin = () => ({
|
|
5
4
|
name: 'ufo',
|
|
6
5
|
pmPlugins() {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
return [
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
6
|
+
return [];
|
|
7
|
+
|
|
8
|
+
// This experimental plugin has been abandoned as per ED-27989
|
|
9
|
+
/*
|
|
10
|
+
return [
|
|
11
|
+
{
|
|
12
|
+
name: 'abortUFOMeasurementOnFirstUserInteraction',
|
|
13
|
+
plugin: abortUFOMeasurementOnFirstUserInteraction,
|
|
14
|
+
},
|
|
15
|
+
];
|
|
16
|
+
*/
|
|
15
17
|
}
|
|
16
18
|
});
|
package/dist/esm/ufoPlugin.js
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
var isSSR = Boolean(process.env.REACT_SSR);
|
|
1
|
+
// import { abortUFOMeasurementOnFirstUserInteraction } from './pm-plugins/abortUFOMeasurementOnFirstUserInteraction';
|
|
2
|
+
|
|
4
3
|
export var ufoPlugin = function ufoPlugin() {
|
|
5
4
|
return {
|
|
6
5
|
name: 'ufo',
|
|
7
6
|
pmPlugins: function pmPlugins() {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
return [
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
7
|
+
return [];
|
|
8
|
+
|
|
9
|
+
// This experimental plugin has been abandoned as per ED-27989
|
|
10
|
+
/*
|
|
11
|
+
return [
|
|
12
|
+
{
|
|
13
|
+
name: 'abortUFOMeasurementOnFirstUserInteraction',
|
|
14
|
+
plugin: abortUFOMeasurementOnFirstUserInteraction,
|
|
15
|
+
},
|
|
16
|
+
];
|
|
17
|
+
*/
|
|
16
18
|
}
|
|
17
19
|
};
|
|
18
20
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-ufo",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "Ufo plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
".": "./src/index.ts"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@atlaskit/editor-common": "^
|
|
35
|
+
"@atlaskit/editor-common": "^107.0.0",
|
|
36
36
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
37
37
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
38
38
|
"@atlaskit/react-ufo": "^3.13.0",
|
|
@@ -80,9 +80,5 @@
|
|
|
80
80
|
]
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
|
-
"platform-feature-flags": {
|
|
84
|
-
"platform_editor_abort_ttvc_on_user_interaction": {
|
|
85
|
-
"type": "boolean"
|
|
86
|
-
}
|
|
87
|
-
}
|
|
83
|
+
"platform-feature-flags": {}
|
|
88
84
|
}
|
package/src/ufoPlugin.tsx
CHANGED
|
@@ -1,24 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { abortUFOMeasurementOnFirstUserInteraction } from './pm-plugins/abortUFOMeasurementOnFirstUserInteraction';
|
|
1
|
+
// import { abortUFOMeasurementOnFirstUserInteraction } from './pm-plugins/abortUFOMeasurementOnFirstUserInteraction';
|
|
4
2
|
import type { UfoPlugin } from './ufoPluginType';
|
|
5
3
|
|
|
6
|
-
const isSSR = Boolean(process.env.REACT_SSR);
|
|
7
|
-
|
|
8
4
|
export const ufoPlugin: UfoPlugin = () => ({
|
|
9
5
|
name: 'ufo',
|
|
10
6
|
|
|
11
7
|
pmPlugins() {
|
|
12
|
-
|
|
13
|
-
if (isSSR || !fg('platform_editor_abort_ttvc_on_user_interaction')) {
|
|
14
|
-
return [];
|
|
15
|
-
}
|
|
8
|
+
return [];
|
|
16
9
|
|
|
10
|
+
// This experimental plugin has been abandoned as per ED-27989
|
|
11
|
+
/*
|
|
17
12
|
return [
|
|
18
13
|
{
|
|
19
14
|
name: 'abortUFOMeasurementOnFirstUserInteraction',
|
|
20
15
|
plugin: abortUFOMeasurementOnFirstUserInteraction,
|
|
21
16
|
},
|
|
22
17
|
];
|
|
18
|
+
*/
|
|
23
19
|
},
|
|
24
20
|
});
|