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

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-collab-edit
2
2
 
3
+ ## 1.23.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#171509](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/171509)
8
+ [`3365b4ddb40ce`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3365b4ddb40ce) -
9
+ Cleaned up FF platform_editor_filter_transactions_analytics
10
+
11
+ ## 1.23.5
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 1.23.4
4
18
 
5
19
  ### Patch Changes
@@ -12,7 +12,6 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
12
12
  var _analytics = require("@atlaskit/editor-common/analytics");
13
13
  var _editorJsonTransformer = require("@atlaskit/editor-json-transformer");
14
14
  var _transform = require("@atlaskit/editor-prosemirror/transform");
15
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
16
15
  var _prosemirrorCollab = require("@atlaskit/prosemirror-collab");
17
16
  var _analytics2 = require("./pm-plugins/analytics");
18
17
  var _sendTransaction = require("./pm-plugins/events/send-transaction");
@@ -204,27 +203,25 @@ var collabEditPlugin = exports.collabEditPlugin = function collabEditPlugin(_ref
204
203
  name: 'collabTrackNCSInitializationPlugin',
205
204
  plugin: _trackNcsInitialization.createPlugin
206
205
  }]);
207
- if ((0, _platformFeatureFlags.fg)('platform_editor_filter_transactions_analytics')) {
208
- plugins.push({
209
- name: 'trackAndFilterSpammingSteps',
210
- plugin: function plugin() {
211
- return (0, _trackAndFilterSpammingSteps.createPlugin)(function (tr) {
212
- var _api$analytics;
213
- var sanitizedSteps = tr.steps.map(function (step) {
214
- return (0, _trackAndFilterSpammingSteps.sanitizeFilteredStep)(step);
215
- });
216
- api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 || (_api$analytics = _api$analytics.actions) === null || _api$analytics === void 0 || _api$analytics.fireAnalyticsEvent({
217
- action: _analytics.ACTION.STEPS_FILTERED,
218
- actionSubject: _analytics.ACTION_SUBJECT.COLLAB,
219
- attributes: {
220
- steps: sanitizedSteps
221
- },
222
- eventType: _analytics.EVENT_TYPE.OPERATIONAL
223
- });
206
+ plugins.push({
207
+ name: 'trackAndFilterSpammingSteps',
208
+ plugin: function plugin() {
209
+ return (0, _trackAndFilterSpammingSteps.createPlugin)(function (tr) {
210
+ var _api$analytics;
211
+ var sanitizedSteps = tr.steps.map(function (step) {
212
+ return (0, _trackAndFilterSpammingSteps.sanitizeFilteredStep)(step);
224
213
  });
225
- }
226
- });
227
- }
214
+ api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 || (_api$analytics = _api$analytics.actions) === null || _api$analytics === void 0 || _api$analytics.fireAnalyticsEvent({
215
+ action: _analytics.ACTION.STEPS_FILTERED,
216
+ actionSubject: _analytics.ACTION_SUBJECT.COLLAB,
217
+ attributes: {
218
+ steps: sanitizedSteps
219
+ },
220
+ eventType: _analytics.EVENT_TYPE.OPERATIONAL
221
+ });
222
+ });
223
+ }
224
+ });
228
225
  plugins.push({
229
226
  name: 'collabTrackLastOrganicChangePlugin',
230
227
  plugin: _trackLastOrganicChange.createPlugin
@@ -1,7 +1,6 @@
1
1
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
2
2
  import { JSONTransformer } from '@atlaskit/editor-json-transformer';
3
3
  import { AddMarkStep, AddNodeMarkStep } from '@atlaskit/editor-prosemirror/transform';
4
- import { fg } from '@atlaskit/platform-feature-flags';
5
4
  import { collab, getCollabState, sendableSteps } from '@atlaskit/prosemirror-collab';
6
5
  import { addSynchronyErrorAnalytics } from './pm-plugins/analytics';
7
6
  import { sendTransaction } from './pm-plugins/events/send-transaction';
@@ -157,23 +156,21 @@ export const collabEditPlugin = ({
157
156
  name: 'collabTrackNCSInitializationPlugin',
158
157
  plugin: createTrackNCSInitializationPlugin
159
158
  }];
160
- if (fg('platform_editor_filter_transactions_analytics')) {
161
- plugins.push({
162
- name: 'trackAndFilterSpammingSteps',
163
- plugin: () => trackSpammingStepsPlugin(tr => {
164
- var _api$analytics, _api$analytics$action;
165
- const sanitizedSteps = tr.steps.map(step => sanitizeFilteredStep(step));
166
- api === null || api === void 0 ? void 0 : (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : (_api$analytics$action = _api$analytics.actions) === null || _api$analytics$action === void 0 ? void 0 : _api$analytics$action.fireAnalyticsEvent({
167
- action: ACTION.STEPS_FILTERED,
168
- actionSubject: ACTION_SUBJECT.COLLAB,
169
- attributes: {
170
- steps: sanitizedSteps
171
- },
172
- eventType: EVENT_TYPE.OPERATIONAL
173
- });
174
- })
175
- });
176
- }
159
+ plugins.push({
160
+ name: 'trackAndFilterSpammingSteps',
161
+ plugin: () => trackSpammingStepsPlugin(tr => {
162
+ var _api$analytics, _api$analytics$action;
163
+ const sanitizedSteps = tr.steps.map(step => sanitizeFilteredStep(step));
164
+ api === null || api === void 0 ? void 0 : (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : (_api$analytics$action = _api$analytics.actions) === null || _api$analytics$action === void 0 ? void 0 : _api$analytics$action.fireAnalyticsEvent({
165
+ action: ACTION.STEPS_FILTERED,
166
+ actionSubject: ACTION_SUBJECT.COLLAB,
167
+ attributes: {
168
+ steps: sanitizedSteps
169
+ },
170
+ eventType: EVENT_TYPE.OPERATIONAL
171
+ });
172
+ })
173
+ });
177
174
  plugins.push({
178
175
  name: 'collabTrackLastOrganicChangePlugin',
179
176
  plugin: createLastOrganicChangePlugin
@@ -7,7 +7,6 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
7
7
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
8
8
  import { JSONTransformer } from '@atlaskit/editor-json-transformer';
9
9
  import { AddMarkStep, AddNodeMarkStep } from '@atlaskit/editor-prosemirror/transform';
10
- import { fg } from '@atlaskit/platform-feature-flags';
11
10
  import { collab, getCollabState, sendableSteps } from '@atlaskit/prosemirror-collab';
12
11
  import { addSynchronyErrorAnalytics } from './pm-plugins/analytics';
13
12
  import { sendTransaction } from './pm-plugins/events/send-transaction';
@@ -197,27 +196,25 @@ export var collabEditPlugin = function collabEditPlugin(_ref4) {
197
196
  name: 'collabTrackNCSInitializationPlugin',
198
197
  plugin: createTrackNCSInitializationPlugin
199
198
  }]);
200
- if (fg('platform_editor_filter_transactions_analytics')) {
201
- plugins.push({
202
- name: 'trackAndFilterSpammingSteps',
203
- plugin: function plugin() {
204
- return trackSpammingStepsPlugin(function (tr) {
205
- var _api$analytics;
206
- var sanitizedSteps = tr.steps.map(function (step) {
207
- return sanitizeFilteredStep(step);
208
- });
209
- api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 || (_api$analytics = _api$analytics.actions) === null || _api$analytics === void 0 || _api$analytics.fireAnalyticsEvent({
210
- action: ACTION.STEPS_FILTERED,
211
- actionSubject: ACTION_SUBJECT.COLLAB,
212
- attributes: {
213
- steps: sanitizedSteps
214
- },
215
- eventType: EVENT_TYPE.OPERATIONAL
216
- });
199
+ plugins.push({
200
+ name: 'trackAndFilterSpammingSteps',
201
+ plugin: function plugin() {
202
+ return trackSpammingStepsPlugin(function (tr) {
203
+ var _api$analytics;
204
+ var sanitizedSteps = tr.steps.map(function (step) {
205
+ return sanitizeFilteredStep(step);
217
206
  });
218
- }
219
- });
220
- }
207
+ api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 || (_api$analytics = _api$analytics.actions) === null || _api$analytics === void 0 || _api$analytics.fireAnalyticsEvent({
208
+ action: ACTION.STEPS_FILTERED,
209
+ actionSubject: ACTION_SUBJECT.COLLAB,
210
+ attributes: {
211
+ steps: sanitizedSteps
212
+ },
213
+ eventType: EVENT_TYPE.OPERATIONAL
214
+ });
215
+ });
216
+ }
217
+ });
221
218
  plugins.push({
222
219
  name: 'collabTrackLastOrganicChangePlugin',
223
220
  plugin: createLastOrganicChangePlugin
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-collab-edit",
3
- "version": "1.23.4",
3
+ "version": "1.23.6",
4
4
  "description": "Collab Edit plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -33,12 +33,12 @@
33
33
  "dependencies": {
34
34
  "@atlaskit/adf-schema": "^46.1.0",
35
35
  "@atlaskit/custom-steps": "^0.9.0",
36
- "@atlaskit/editor-common": "^95.9.0",
36
+ "@atlaskit/editor-common": "^96.0.0",
37
37
  "@atlaskit/editor-json-transformer": "^8.21.0",
38
- "@atlaskit/editor-plugin-analytics": "1.10.6",
38
+ "@atlaskit/editor-plugin-analytics": "1.10.7",
39
39
  "@atlaskit/editor-plugin-editor-viewmode": "^2.1.0",
40
40
  "@atlaskit/editor-plugin-feature-flags": "^1.2.0",
41
- "@atlaskit/editor-prosemirror": "6.0.0",
41
+ "@atlaskit/editor-prosemirror": "6.2.1",
42
42
  "@atlaskit/editor-shared-styles": "^3.2.0",
43
43
  "@atlaskit/platform-feature-flags": "^0.3.0",
44
44
  "@atlaskit/prosemirror-collab": "^0.10.0",
@@ -53,8 +53,8 @@
53
53
  "@af/integration-testing": "*",
54
54
  "@af/visual-regression": "*",
55
55
  "@atlaskit/editor-plugin-mentions": "^2.10.0",
56
- "@atlaskit/editor-plugin-text-formatting": "^1.15.0",
57
- "@atlaskit/editor-plugin-type-ahead": "^1.10.0",
56
+ "@atlaskit/editor-plugin-text-formatting": "^1.16.0",
57
+ "@atlaskit/editor-plugin-type-ahead": "^1.11.0",
58
58
  "@atlaskit/editor-plugin-unsupported-content": "^1.9.0",
59
59
  "@atlaskit/editor-test-helpers": "^20.0.0",
60
60
  "@atlaskit/ssr": "*",
@@ -102,9 +102,6 @@
102
102
  }
103
103
  },
104
104
  "platform-feature-flags": {
105
- "platform_editor_filter_transactions_analytics": {
106
- "type": "boolean"
107
- },
108
105
  "platform_editor_use_nested_table_pm_nodes": {
109
106
  "type": "boolean"
110
107
  }