@atlaskit/editor-plugin-base 25.0.1 → 25.1.0

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,24 @@
1
1
  # @atlaskit/editor-plugin-base
2
2
 
3
+ ## 25.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`d3bd4926ec829`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d3bd4926ec829) -
8
+ Add experiment platform_editor_remove_legacy_perf_events; when enabled, skip the frozenEditor
9
+ plugin so browserFreeze, slowInput, inputPerfSampling and inputPerfSamplingAvg analytics events
10
+ are no longer fired. Adds `@atlaskit/platform-feature-experiments` dependency.
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
16
+ ## 25.0.2
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies
21
+
3
22
  ## 25.0.1
4
23
 
5
24
  ### Patch Changes
@@ -12,6 +12,7 @@ var _paragraph = require("@atlaskit/adf-schema/paragraph");
12
12
  var _text = require("@atlaskit/adf-schema/text");
13
13
  var _keymaps = require("@atlaskit/editor-common/keymaps");
14
14
  var _commands = require("@atlaskit/editor-prosemirror/commands");
15
+ var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
15
16
  var _history = require("@atlaskit/prosemirror-history/history");
16
17
  var _setKeyboardHeight = require("./editor-commands/set-keyboard-height");
17
18
  var _disableSpellChecking = _interopRequireDefault(require("./pm-plugins/disable-spell-checking"));
@@ -137,6 +138,9 @@ var basePlugin = function basePlugin(_ref) {
137
138
  name: 'frozenEditor',
138
139
  plugin: function plugin(_ref4) {
139
140
  var dispatchAnalyticsEvent = _ref4.dispatchAnalyticsEvent;
141
+ if ((0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_remove_legacy_perf_events')) {
142
+ return undefined;
143
+ }
140
144
  return (0, _frozenEditor.default)(api === null || api === void 0 ? void 0 : api.contextIdentifier)(dispatchAnalyticsEvent, _inputTrackingConfig.inputTracking, undefined);
141
145
  }
142
146
  }, {
@@ -3,6 +3,7 @@ import { paragraph } from '@atlaskit/adf-schema/paragraph';
3
3
  import { text } from '@atlaskit/adf-schema/text';
4
4
  import { keymap } from '@atlaskit/editor-common/keymaps';
5
5
  import { baseKeymap } from '@atlaskit/editor-prosemirror/commands';
6
+ import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
6
7
  import { history } from '@atlaskit/prosemirror-history/history';
7
8
  import { setKeyboardHeight } from './editor-commands/set-keyboard-height';
8
9
  import disableSpellcheckingPlugin from './pm-plugins/disable-spell-checking';
@@ -128,6 +129,9 @@ const basePlugin = ({
128
129
  plugin: ({
129
130
  dispatchAnalyticsEvent
130
131
  }) => {
132
+ if (isExperimentEnabled('platform_editor_remove_legacy_perf_events')) {
133
+ return undefined;
134
+ }
131
135
  return frozenEditor(api === null || api === void 0 ? void 0 : api.contextIdentifier)(dispatchAnalyticsEvent, inputTracking, undefined);
132
136
  }
133
137
  }, {
@@ -6,6 +6,7 @@ import { paragraph } from '@atlaskit/adf-schema/paragraph';
6
6
  import { text } from '@atlaskit/adf-schema/text';
7
7
  import { keymap } from '@atlaskit/editor-common/keymaps';
8
8
  import { baseKeymap } from '@atlaskit/editor-prosemirror/commands';
9
+ import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
9
10
  import { history } from '@atlaskit/prosemirror-history/history';
10
11
  import { setKeyboardHeight } from './editor-commands/set-keyboard-height';
11
12
  import disableSpellcheckingPlugin from './pm-plugins/disable-spell-checking';
@@ -129,6 +130,9 @@ var basePlugin = function basePlugin(_ref) {
129
130
  name: 'frozenEditor',
130
131
  plugin: function plugin(_ref4) {
131
132
  var dispatchAnalyticsEvent = _ref4.dispatchAnalyticsEvent;
133
+ if (isExperimentEnabled('platform_editor_remove_legacy_perf_events')) {
134
+ return undefined;
135
+ }
132
136
  return frozenEditor(api === null || api === void 0 ? void 0 : api.contextIdentifier)(dispatchAnalyticsEvent, inputTracking, undefined);
133
137
  }
134
138
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-base",
3
- "version": "25.0.1",
3
+ "version": "25.1.0",
4
4
  "description": "Base plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -24,11 +24,12 @@
24
24
  "@atlaskit/editor-plugin-feature-flags": "^23.0.0",
25
25
  "@atlaskit/editor-prosemirror": "^9.0.0",
26
26
  "@atlaskit/feature-gate-js-client": "^7.0.0",
27
+ "@atlaskit/platform-feature-experiments": "^0.3.0",
27
28
  "@atlaskit/prosemirror-history": "^1.3.0",
28
- "@atlaskit/tmp-editor-statsig": "^221.0.0",
29
+ "@atlaskit/tmp-editor-statsig": "^223.0.0",
29
30
  "@babel/runtime": "^7.0.0"
30
31
  },
31
32
  "peerDependencies": {
32
- "@atlaskit/editor-common": "^128.1.0"
33
+ "@atlaskit/editor-common": "^128.3.0"
33
34
  }
34
35
  }
package/tsconfig.app.json CHANGED
@@ -58,6 +58,9 @@
58
58
  {
59
59
  "path": "../editor-prosemirror/tsconfig.app.json"
60
60
  },
61
+ {
62
+ "path": "../../platform/feature-experiments/tsconfig.app.json"
63
+ },
61
64
  {
62
65
  "path": "../prosemirror-history/tsconfig.app.json"
63
66
  },