@atlaskit/editor-plugin-collab-edit 1.23.3 → 1.23.4

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-collab-edit
2
2
 
3
+ ## 1.23.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#170711](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/170711)
8
+ [`2ec85aed74aa8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2ec85aed74aa8) -
9
+ platform_editor_filter_spamming_transactions FF cleanup
10
+
3
11
  ## 1.23.3
4
12
 
5
13
  ### Patch Changes
@@ -204,7 +204,7 @@ var collabEditPlugin = exports.collabEditPlugin = function collabEditPlugin(_ref
204
204
  name: 'collabTrackNCSInitializationPlugin',
205
205
  plugin: _trackNcsInitialization.createPlugin
206
206
  }]);
207
- if ((0, _platformFeatureFlags.fg)('platform_editor_filter_transactions_analytics') || (0, _platformFeatureFlags.fg)('platform_editor_filter_spamming_transactions')) {
207
+ if ((0, _platformFeatureFlags.fg)('platform_editor_filter_transactions_analytics')) {
208
208
  plugins.push({
209
209
  name: 'trackAndFilterSpammingSteps',
210
210
  plugin: function plugin() {
@@ -225,12 +225,10 @@ var collabEditPlugin = exports.collabEditPlugin = function collabEditPlugin(_ref
225
225
  }
226
226
  });
227
227
  }
228
- if ((0, _platformFeatureFlags.fg)('platform_editor_last_organic_change')) {
229
- plugins.push({
230
- name: 'collabTrackLastOrganicChangePlugin',
231
- plugin: _trackLastOrganicChange.createPlugin
232
- });
233
- }
228
+ plugins.push({
229
+ name: 'collabTrackLastOrganicChangePlugin',
230
+ plugin: _trackLastOrganicChange.createPlugin
231
+ });
234
232
  return plugins;
235
233
  },
236
234
  onEditorViewStateUpdated: function onEditorViewStateUpdated(props) {
@@ -10,7 +10,6 @@ var _steps = require("@atlaskit/adf-schema/steps");
10
10
  var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
11
11
  var _state = require("@atlaskit/editor-prosemirror/state");
12
12
  var _transform = require("@atlaskit/editor-prosemirror/transform");
13
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
14
13
  var THRESHOLD = 50; // 50 milliseconds
15
14
 
16
15
  /**
@@ -108,10 +107,9 @@ var createFilterTransaction = exports.createFilterTransaction = function createF
108
107
 
109
108
  // Track analytics for the filtered transaction
110
109
  trackFilteredTransaction(tr);
111
- if ((0, _platformFeatureFlags.fg)('platform_editor_filter_spamming_transactions')) {
112
- // Filter transaction
113
- return false;
114
- }
110
+
111
+ // Filter transaction
112
+ return false;
115
113
  }
116
114
  return true; // Allow the transaction
117
115
  };
@@ -157,7 +157,7 @@ export const collabEditPlugin = ({
157
157
  name: 'collabTrackNCSInitializationPlugin',
158
158
  plugin: createTrackNCSInitializationPlugin
159
159
  }];
160
- if (fg('platform_editor_filter_transactions_analytics') || fg('platform_editor_filter_spamming_transactions')) {
160
+ if (fg('platform_editor_filter_transactions_analytics')) {
161
161
  plugins.push({
162
162
  name: 'trackAndFilterSpammingSteps',
163
163
  plugin: () => trackSpammingStepsPlugin(tr => {
@@ -174,12 +174,10 @@ export const collabEditPlugin = ({
174
174
  })
175
175
  });
176
176
  }
177
- if (fg('platform_editor_last_organic_change')) {
178
- plugins.push({
179
- name: 'collabTrackLastOrganicChangePlugin',
180
- plugin: createLastOrganicChangePlugin
181
- });
182
- }
177
+ plugins.push({
178
+ name: 'collabTrackLastOrganicChangePlugin',
179
+ plugin: createLastOrganicChangePlugin
180
+ });
183
181
  return plugins;
184
182
  },
185
183
  onEditorViewStateUpdated(props) {
@@ -2,7 +2,6 @@ import { AnalyticsStep, InsertTypeAheadStep, LinkMetaStep, SetAttrsStep } from '
2
2
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
3
3
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
4
4
  import { AddMarkStep, AddNodeMarkStep, AttrStep, DocAttrStep, RemoveMarkStep, RemoveNodeMarkStep, ReplaceAroundStep, ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
5
  const THRESHOLD = 50; // 50 milliseconds
7
6
 
8
7
  /**
@@ -100,10 +99,9 @@ export const createFilterTransaction = (recentTransactionsTimestamps, trackFilte
100
99
 
101
100
  // Track analytics for the filtered transaction
102
101
  trackFilteredTransaction(tr);
103
- if (fg('platform_editor_filter_spamming_transactions')) {
104
- // Filter transaction
105
- return false;
106
- }
102
+
103
+ // Filter transaction
104
+ return false;
107
105
  }
108
106
  return true; // Allow the transaction
109
107
  };
@@ -197,7 +197,7 @@ export var collabEditPlugin = function collabEditPlugin(_ref4) {
197
197
  name: 'collabTrackNCSInitializationPlugin',
198
198
  plugin: createTrackNCSInitializationPlugin
199
199
  }]);
200
- if (fg('platform_editor_filter_transactions_analytics') || fg('platform_editor_filter_spamming_transactions')) {
200
+ if (fg('platform_editor_filter_transactions_analytics')) {
201
201
  plugins.push({
202
202
  name: 'trackAndFilterSpammingSteps',
203
203
  plugin: function plugin() {
@@ -218,12 +218,10 @@ export var collabEditPlugin = function collabEditPlugin(_ref4) {
218
218
  }
219
219
  });
220
220
  }
221
- if (fg('platform_editor_last_organic_change')) {
222
- plugins.push({
223
- name: 'collabTrackLastOrganicChangePlugin',
224
- plugin: createLastOrganicChangePlugin
225
- });
226
- }
221
+ plugins.push({
222
+ name: 'collabTrackLastOrganicChangePlugin',
223
+ plugin: createLastOrganicChangePlugin
224
+ });
227
225
  return plugins;
228
226
  },
229
227
  onEditorViewStateUpdated: function onEditorViewStateUpdated(props) {
@@ -2,7 +2,6 @@ import { AnalyticsStep, InsertTypeAheadStep, LinkMetaStep, SetAttrsStep } from '
2
2
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
3
3
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
4
4
  import { AddMarkStep, AddNodeMarkStep, AttrStep, DocAttrStep, RemoveMarkStep, RemoveNodeMarkStep, ReplaceAroundStep, ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
5
  var THRESHOLD = 50; // 50 milliseconds
7
6
 
8
7
  /**
@@ -100,10 +99,9 @@ export var createFilterTransaction = function createFilterTransaction(recentTran
100
99
 
101
100
  // Track analytics for the filtered transaction
102
101
  trackFilteredTransaction(tr);
103
- if (fg('platform_editor_filter_spamming_transactions')) {
104
- // Filter transaction
105
- return false;
106
- }
102
+
103
+ // Filter transaction
104
+ return false;
107
105
  }
108
106
  return true; // Allow the transaction
109
107
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-collab-edit",
3
- "version": "1.23.3",
3
+ "version": "1.23.4",
4
4
  "description": "Collab Edit plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -33,7 +33,7 @@
33
33
  "dependencies": {
34
34
  "@atlaskit/adf-schema": "^46.1.0",
35
35
  "@atlaskit/custom-steps": "^0.9.0",
36
- "@atlaskit/editor-common": "^95.7.0",
36
+ "@atlaskit/editor-common": "^95.9.0",
37
37
  "@atlaskit/editor-json-transformer": "^8.21.0",
38
38
  "@atlaskit/editor-plugin-analytics": "1.10.6",
39
39
  "@atlaskit/editor-plugin-editor-viewmode": "^2.1.0",
@@ -102,15 +102,9 @@
102
102
  }
103
103
  },
104
104
  "platform-feature-flags": {
105
- "platform_editor_last_organic_change": {
106
- "type": "boolean"
107
- },
108
105
  "platform_editor_filter_transactions_analytics": {
109
106
  "type": "boolean"
110
107
  },
111
- "platform_editor_filter_spamming_transactions": {
112
- "type": "boolean"
113
- },
114
108
  "platform_editor_use_nested_table_pm_nodes": {
115
109
  "type": "boolean"
116
110
  }