@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 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
@@ -3,7 +3,7 @@
3
3
  "compilerOptions": {
4
4
  "target": "es5",
5
5
  "composite": true,
6
- "outDir": "../dist",
6
+ "outDir": "../../../../../confluence/tsDist/@atlaskit__editor-plugin-ufo",
7
7
  "rootDir": "../"
8
8
  },
9
9
  "include": [
@@ -4,21 +4,23 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.ufoPlugin = void 0;
7
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
8
- var _abortUFOMeasurementOnFirstUserInteraction = require("./pm-plugins/abortUFOMeasurementOnFirstUserInteraction");
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
- // We don't need to use this code for Serve Side Rendering
15
- if (isSSR || !(0, _platformFeatureFlags.fg)('platform_editor_abort_ttvc_on_user_interaction')) {
16
- return [];
17
- }
18
- return [{
19
- name: 'abortUFOMeasurementOnFirstUserInteraction',
20
- plugin: _abortUFOMeasurementOnFirstUserInteraction.abortUFOMeasurementOnFirstUserInteraction
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
  };
@@ -1,16 +1,18 @@
1
- import { fg } from '@atlaskit/platform-feature-flags';
2
- import { abortUFOMeasurementOnFirstUserInteraction } from './pm-plugins/abortUFOMeasurementOnFirstUserInteraction';
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
- // We don't need to use this code for Serve Side Rendering
8
- if (isSSR || !fg('platform_editor_abort_ttvc_on_user_interaction')) {
9
- return [];
10
- }
11
- return [{
12
- name: 'abortUFOMeasurementOnFirstUserInteraction',
13
- plugin: abortUFOMeasurementOnFirstUserInteraction
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
  });
@@ -1,18 +1,20 @@
1
- import { fg } from '@atlaskit/platform-feature-flags';
2
- import { abortUFOMeasurementOnFirstUserInteraction } from './pm-plugins/abortUFOMeasurementOnFirstUserInteraction';
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
- // We don't need to use this code for Serve Side Rendering
9
- if (isSSR || !fg('platform_editor_abort_ttvc_on_user_interaction')) {
10
- return [];
11
- }
12
- return [{
13
- name: 'abortUFOMeasurementOnFirstUserInteraction',
14
- plugin: abortUFOMeasurementOnFirstUserInteraction
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.0.7",
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": "^106.0.0",
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 { fg } from '@atlaskit/platform-feature-flags';
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
- // We don't need to use this code for Serve Side Rendering
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
  });
package/tsconfig.app.json CHANGED
@@ -34,9 +34,6 @@
34
34
  {
35
35
  "path": "../editor-common/tsconfig.app.json"
36
36
  },
37
- {
38
- "path": "../../platform/feature-flags/tsconfig.app.json"
39
- },
40
37
  {
41
38
  "path": "../../react-ufo/atlaskit/tsconfig.app.json"
42
39
  }