@atlaskit/editor-plugin-collab-edit 17.0.8 → 17.0.9
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
|
@@ -11,12 +11,12 @@ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers
|
|
|
11
11
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
12
12
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
13
13
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
14
|
-
var
|
|
14
|
+
var _JSONTransformer = require("@atlaskit/editor-json-transformer/JSONTransformer-2");
|
|
15
15
|
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
|
|
19
|
+
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
20
20
|
var _analytics2 = require("./pm-plugins/analytics");
|
|
21
21
|
var _sendTransaction = require("./pm-plugins/events/send-transaction");
|
|
22
22
|
var _filterAnalytics = require("./pm-plugins/filterAnalytics");
|
|
@@ -164,7 +164,7 @@ var collabEditPlugin = exports.collabEditPlugin = function collabEditPlugin(_ref
|
|
|
164
164
|
var _getCollabState;
|
|
165
165
|
// Ignored via go/ees005
|
|
166
166
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
167
|
-
var adfDocument = new
|
|
167
|
+
var adfDocument = new _JSONTransformer.JSONTransformer().encode(editorViewRef.current.state.doc);
|
|
168
168
|
return {
|
|
169
169
|
content: adfDocument,
|
|
170
170
|
// Ignored via go/ees005
|
|
@@ -207,7 +207,7 @@ var collabEditPlugin = exports.collabEditPlugin = function collabEditPlugin(_ref
|
|
|
207
207
|
userId = _ref5$userId === void 0 ? null : _ref5$userId;
|
|
208
208
|
var transformUnconfirmed = function transformUnconfirmed(steps) {
|
|
209
209
|
var transformed = (0, _filterAnalytics.filterAnalyticsSteps)(steps);
|
|
210
|
-
if ((0,
|
|
210
|
+
if ((0, _editorExperiment.editorExperiment)('platform_editor_offline_editing_web', true) || (0, _expValEquals.expValEquals)('platform_editor_enable_single_player_step_merging', 'isEnabled', true)) {
|
|
211
211
|
return (0, _mergeUnconfirmed.mergeUnconfirmedSteps)(transformed, api);
|
|
212
212
|
}
|
|
213
213
|
return transformed;
|
|
@@ -261,7 +261,7 @@ var collabEditPlugin = exports.collabEditPlugin = function collabEditPlugin(_ref
|
|
|
261
261
|
name: 'collabTrackLastOrganicChangePlugin',
|
|
262
262
|
plugin: _trackLastOrganicChange.createPlugin
|
|
263
263
|
});
|
|
264
|
-
if ((0,
|
|
264
|
+
if ((0, _editorExperiment.editorExperiment)('platform_editor_offline_editing_web', true)) {
|
|
265
265
|
plugins.push({
|
|
266
266
|
name: 'trackLastRemoteConflictPlugin',
|
|
267
267
|
plugin: _trackReconnectionConflict.createPlugin
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import { isEmptyDocument } from '@atlaskit/editor-common/utils';
|
|
3
|
-
import { JSONTransformer } from '@atlaskit/editor-json-transformer';
|
|
3
|
+
import { JSONTransformer } from '@atlaskit/editor-json-transformer/JSONTransformer-2';
|
|
4
4
|
import { AddMarkStep, AddNodeMarkStep } from '@atlaskit/editor-prosemirror/transform';
|
|
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/
|
|
8
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
9
9
|
import { addSynchronyErrorAnalytics } from './pm-plugins/analytics';
|
|
10
10
|
import { sendTransaction } from './pm-plugins/events/send-transaction';
|
|
11
11
|
import { filterAnalyticsSteps } from './pm-plugins/filterAnalytics';
|
|
@@ -6,12 +6,12 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
6
6
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
7
7
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
8
8
|
import { isEmptyDocument } from '@atlaskit/editor-common/utils';
|
|
9
|
-
import { JSONTransformer } from '@atlaskit/editor-json-transformer';
|
|
9
|
+
import { JSONTransformer } from '@atlaskit/editor-json-transformer/JSONTransformer-2';
|
|
10
10
|
import { AddMarkStep, AddNodeMarkStep } from '@atlaskit/editor-prosemirror/transform';
|
|
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/
|
|
14
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
15
15
|
import { addSynchronyErrorAnalytics } from './pm-plugins/analytics';
|
|
16
16
|
import { sendTransaction } from './pm-plugins/events/send-transaction';
|
|
17
17
|
import { filterAnalyticsSteps } from './pm-plugins/filterAnalytics';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-collab-edit",
|
|
3
|
-
"version": "17.0.
|
|
3
|
+
"version": "17.0.9",
|
|
4
4
|
"description": "Collab Edit plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
33
33
|
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
34
34
|
"@atlaskit/prosemirror-collab": "^1.0.0",
|
|
35
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
35
|
+
"@atlaskit/tmp-editor-statsig": "^168.0.0",
|
|
36
36
|
"@atlaskit/tokens": "^16.9.0",
|
|
37
37
|
"@babel/runtime": "^7.0.0",
|
|
38
38
|
"memoize-one": "^6.0.0"
|