@atlaskit/editor-plugin-collab-edit 18.1.0 → 18.1.2

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,21 @@
1
1
  # @atlaskit/editor-plugin-collab-edit
2
2
 
3
+ ## 18.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`962e8dc0188bf`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/962e8dc0188bf) -
8
+ Clean up `platform_editor_offline_editing_web` with `isEnabled: true` for Confluence, keeping
9
+ offline editing and recovery behavior enabled. Remove the retired experiment from the editor
10
+ Statsig configuration; consumers must stop querying or overriding this experiment.
11
+ - Updated dependencies
12
+
13
+ ## 18.1.1
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies
18
+
3
19
  ## 18.1.0
4
20
 
5
21
  ### Minor Changes
@@ -16,7 +16,6 @@ var _transform = require("@atlaskit/editor-prosemirror/transform");
16
16
  var _fg = require("@atlaskit/platform-feature-flags/fg");
17
17
  var _prosemirrorCollab = require("@atlaskit/prosemirror-collab");
18
18
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
19
- var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
20
19
  var _analytics2 = require("./pm-plugins/analytics");
21
20
  var _sendTransaction = require("./pm-plugins/events/send-transaction");
22
21
  var _filterAnalytics = require("./pm-plugins/filterAnalytics");
@@ -207,10 +206,7 @@ var collabEditPlugin = exports.collabEditPlugin = function collabEditPlugin(_ref
207
206
  userId = _ref5$userId === void 0 ? null : _ref5$userId;
208
207
  var transformUnconfirmed = function transformUnconfirmed(steps) {
209
208
  var transformed = (0, _filterAnalytics.filterAnalyticsSteps)(steps);
210
- if ((0, _editorExperiment.editorExperiment)('platform_editor_offline_editing_web', true) || (0, _expValEquals.expValEquals)('platform_editor_enable_single_player_step_merging', 'isEnabled', true)) {
211
- return (0, _mergeUnconfirmed.mergeUnconfirmedSteps)(transformed, api);
212
- }
213
- return transformed;
209
+ return (0, _mergeUnconfirmed.mergeUnconfirmedSteps)(transformed, api);
214
210
  };
215
211
  var plugins = [].concat((0, _toConsumableArray2.default)(useNativePlugin ? [{
216
212
  name: 'pmCollab',
@@ -261,12 +257,10 @@ var collabEditPlugin = exports.collabEditPlugin = function collabEditPlugin(_ref
261
257
  name: 'collabTrackLastOrganicChangePlugin',
262
258
  plugin: _trackLastOrganicChange.createPlugin
263
259
  });
264
- if ((0, _editorExperiment.editorExperiment)('platform_editor_offline_editing_web', true)) {
265
- plugins.push({
266
- name: 'trackLastRemoteConflictPlugin',
267
- plugin: _trackReconnectionConflict.createPlugin
268
- });
269
- }
260
+ plugins.push({
261
+ name: 'trackLastRemoteConflictPlugin',
262
+ plugin: _trackReconnectionConflict.createPlugin
263
+ });
270
264
  return plugins;
271
265
  },
272
266
  onEditorViewStateUpdated: function onEditorViewStateUpdated(props) {
@@ -7,10 +7,10 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.updateNcsSessionStepMetrics = exports.updateNcsActiveSessions = exports.getNcsSessionStepMetrics = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _ncsStepMetrics = require("@atlaskit/editor-common/ncs-step-metrics");
10
- var _frontendUtilities = require("@atlaskit/frontend-utilities");
10
+ var _StorageClient = require("@atlaskit/frontend-utilities/StorageClient");
11
11
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
12
12
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
13
- var storageClient = new _frontendUtilities.StorageClient(_ncsStepMetrics.NCS_STORAGE.NCS_STORAGE_CLIENT_KEY);
13
+ var storageClient = new _StorageClient.StorageClient(_ncsStepMetrics.NCS_STORAGE.NCS_STORAGE_CLIENT_KEY);
14
14
 
15
15
  /**
16
16
  * Gets the current step session metrics for a given session ID
@@ -5,7 +5,6 @@ import { AddMarkStep, AddNodeMarkStep } from '@atlaskit/editor-prosemirror/trans
5
5
  import { fg } from '@atlaskit/platform-feature-flags/fg';
6
6
  import { collab, getCollabState, sendableSteps } from '@atlaskit/prosemirror-collab';
7
7
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
8
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
9
8
  import { addSynchronyErrorAnalytics } from './pm-plugins/analytics';
10
9
  import { sendTransaction } from './pm-plugins/events/send-transaction';
11
10
  import { filterAnalyticsSteps } from './pm-plugins/filterAnalytics';
@@ -162,10 +161,7 @@ export const collabEditPlugin = ({
162
161
  } = options || {};
163
162
  const transformUnconfirmed = steps => {
164
163
  const transformed = filterAnalyticsSteps(steps);
165
- if (editorExperiment('platform_editor_offline_editing_web', true) || expValEquals('platform_editor_enable_single_player_step_merging', 'isEnabled', true)) {
166
- return mergeUnconfirmedSteps(transformed, api);
167
- }
168
- return transformed;
164
+ return mergeUnconfirmedSteps(transformed, api);
169
165
  };
170
166
  const plugins = [...(useNativePlugin ? [{
171
167
  name: 'pmCollab',
@@ -209,12 +205,10 @@ export const collabEditPlugin = ({
209
205
  name: 'collabTrackLastOrganicChangePlugin',
210
206
  plugin: createLastOrganicChangePlugin
211
207
  });
212
- if (editorExperiment('platform_editor_offline_editing_web', true)) {
213
- plugins.push({
214
- name: 'trackLastRemoteConflictPlugin',
215
- plugin: createTrackReconnectionConflictPlugin
216
- });
217
- }
208
+ plugins.push({
209
+ name: 'trackLastRemoteConflictPlugin',
210
+ plugin: createTrackReconnectionConflictPlugin
211
+ });
218
212
  return plugins;
219
213
  },
220
214
  onEditorViewStateUpdated(props) {
@@ -1,5 +1,5 @@
1
1
  import { NCS_STORAGE } from '@atlaskit/editor-common/ncs-step-metrics';
2
- import { StorageClient } from '@atlaskit/frontend-utilities';
2
+ import { StorageClient } from '@atlaskit/frontend-utilities/StorageClient';
3
3
  const storageClient = new StorageClient(NCS_STORAGE.NCS_STORAGE_CLIENT_KEY);
4
4
 
5
5
  /**
@@ -11,7 +11,6 @@ import { AddMarkStep, AddNodeMarkStep } from '@atlaskit/editor-prosemirror/trans
11
11
  import { fg } from '@atlaskit/platform-feature-flags/fg';
12
12
  import { collab, getCollabState, sendableSteps } from '@atlaskit/prosemirror-collab';
13
13
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
14
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
15
14
  import { addSynchronyErrorAnalytics } from './pm-plugins/analytics';
16
15
  import { sendTransaction } from './pm-plugins/events/send-transaction';
17
16
  import { filterAnalyticsSteps } from './pm-plugins/filterAnalytics';
@@ -200,10 +199,7 @@ export var collabEditPlugin = function collabEditPlugin(_ref4) {
200
199
  userId = _ref5$userId === void 0 ? null : _ref5$userId;
201
200
  var transformUnconfirmed = function transformUnconfirmed(steps) {
202
201
  var transformed = filterAnalyticsSteps(steps);
203
- if (editorExperiment('platform_editor_offline_editing_web', true) || expValEquals('platform_editor_enable_single_player_step_merging', 'isEnabled', true)) {
204
- return mergeUnconfirmedSteps(transformed, api);
205
- }
206
- return transformed;
202
+ return mergeUnconfirmedSteps(transformed, api);
207
203
  };
208
204
  var plugins = [].concat(_toConsumableArray(useNativePlugin ? [{
209
205
  name: 'pmCollab',
@@ -254,12 +250,10 @@ export var collabEditPlugin = function collabEditPlugin(_ref4) {
254
250
  name: 'collabTrackLastOrganicChangePlugin',
255
251
  plugin: createLastOrganicChangePlugin
256
252
  });
257
- if (editorExperiment('platform_editor_offline_editing_web', true)) {
258
- plugins.push({
259
- name: 'trackLastRemoteConflictPlugin',
260
- plugin: createTrackReconnectionConflictPlugin
261
- });
262
- }
253
+ plugins.push({
254
+ name: 'trackLastRemoteConflictPlugin',
255
+ plugin: createTrackReconnectionConflictPlugin
256
+ });
263
257
  return plugins;
264
258
  },
265
259
  onEditorViewStateUpdated: function onEditorViewStateUpdated(props) {
@@ -2,7 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
3
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
4
  import { NCS_STORAGE } from '@atlaskit/editor-common/ncs-step-metrics';
5
- import { StorageClient } from '@atlaskit/frontend-utilities';
5
+ import { StorageClient } from '@atlaskit/frontend-utilities/StorageClient';
6
6
  var storageClient = new StorageClient(NCS_STORAGE.NCS_STORAGE_CLIENT_KEY);
7
7
 
8
8
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-collab-edit",
3
- "version": "18.1.0",
3
+ "version": "18.1.2",
4
4
  "description": "Collab Edit plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,13 +32,13 @@
32
32
  "@atlaskit/platform-feature-experiments": "^0.3.0",
33
33
  "@atlaskit/platform-feature-flags": "^2.2.0",
34
34
  "@atlaskit/prosemirror-collab": "^1.1.0",
35
- "@atlaskit/tmp-editor-statsig": "^186.0.0",
35
+ "@atlaskit/tmp-editor-statsig": "^188.0.0",
36
36
  "@atlaskit/tokens": "^16.12.0",
37
37
  "@babel/runtime": "^7.0.0",
38
38
  "memoize-one": "^6.0.0"
39
39
  },
40
40
  "peerDependencies": {
41
- "@atlaskit/editor-common": "^121.4.0",
41
+ "@atlaskit/editor-common": "^121.5.0",
42
42
  "react": "^18.2.0 || ^19.2.0",
43
43
  "react-dom": "^18.2.0 || ^19.2.0"
44
44
  },