@atlaskit/editor-plugin-collab-edit 27.0.6 → 27.0.8
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
|
+
## 27.0.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`f2be4b48189f2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f2be4b48189f2) -
|
|
8
|
+
Clean up experiment `platform_editor_enable_single_player_step_merging`
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 27.0.7
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 27.0.6
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -7,7 +7,6 @@ exports.mergeUnconfirmedSteps = mergeUnconfirmedSteps;
|
|
|
7
7
|
var _isOfflineMode = require("@atlaskit/editor-common/connectivity/isOfflineMode");
|
|
8
8
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
9
9
|
var _prosemirrorCollab = require("@atlaskit/prosemirror-collab");
|
|
10
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
11
10
|
var isLocked = function isLocked(step) {
|
|
12
11
|
if (step.origin instanceof _state.Transaction) {
|
|
13
12
|
return step.origin.getMeta('mergeIsLocked');
|
|
@@ -30,9 +29,7 @@ function mergeUnconfirmedSteps(steps, api) {
|
|
|
30
29
|
var _api$connectivity;
|
|
31
30
|
var lastStep = acc[acc.length - 1];
|
|
32
31
|
var isOffline = (0, _isOfflineMode.isOfflineMode)(api === null || api === void 0 || (_api$connectivity = api.connectivity) === null || _api$connectivity === void 0 || (_api$connectivity = _api$connectivity.sharedState.currentState()) === null || _api$connectivity === void 0 ? void 0 : _api$connectivity.mode);
|
|
33
|
-
|
|
34
|
-
var isMergingEnabled = isOffline || isOnlineMergeEnabled;
|
|
35
|
-
if (isMergingEnabled && lastStep && !isLocked(lastStep) && !isLocked(rebaseable)) {
|
|
32
|
+
if (lastStep && !isLocked(lastStep) && !isLocked(rebaseable)) {
|
|
36
33
|
var mergedStep = lastStep.step.merge(rebaseable.step);
|
|
37
34
|
var inverted = rebaseable.inverted.merge(lastStep.inverted);
|
|
38
35
|
// Always take the origin of the new step.
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { isOfflineMode } from '@atlaskit/editor-common/connectivity/isOfflineMode';
|
|
2
2
|
import { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
import { Rebaseable } from '@atlaskit/prosemirror-collab';
|
|
4
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
5
4
|
const isLocked = step => {
|
|
6
5
|
if (step.origin instanceof Transaction) {
|
|
7
6
|
return step.origin.getMeta('mergeIsLocked');
|
|
@@ -24,9 +23,7 @@ export function mergeUnconfirmedSteps(steps, api) {
|
|
|
24
23
|
var _api$connectivity, _api$connectivity$sha;
|
|
25
24
|
const lastStep = acc[acc.length - 1];
|
|
26
25
|
const isOffline = isOfflineMode(api === null || api === void 0 ? void 0 : (_api$connectivity = api.connectivity) === null || _api$connectivity === void 0 ? void 0 : (_api$connectivity$sha = _api$connectivity.sharedState.currentState()) === null || _api$connectivity$sha === void 0 ? void 0 : _api$connectivity$sha.mode);
|
|
27
|
-
|
|
28
|
-
const isMergingEnabled = isOffline || isOnlineMergeEnabled;
|
|
29
|
-
if (isMergingEnabled && lastStep && !isLocked(lastStep) && !isLocked(rebaseable)) {
|
|
26
|
+
if (lastStep && !isLocked(lastStep) && !isLocked(rebaseable)) {
|
|
30
27
|
const mergedStep = lastStep.step.merge(rebaseable.step);
|
|
31
28
|
const inverted = rebaseable.inverted.merge(lastStep.inverted);
|
|
32
29
|
// Always take the origin of the new step.
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { isOfflineMode } from '@atlaskit/editor-common/connectivity/isOfflineMode';
|
|
2
2
|
import { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
import { Rebaseable } from '@atlaskit/prosemirror-collab';
|
|
4
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
5
4
|
var isLocked = function isLocked(step) {
|
|
6
5
|
if (step.origin instanceof Transaction) {
|
|
7
6
|
return step.origin.getMeta('mergeIsLocked');
|
|
@@ -24,9 +23,7 @@ export function mergeUnconfirmedSteps(steps, api) {
|
|
|
24
23
|
var _api$connectivity;
|
|
25
24
|
var lastStep = acc[acc.length - 1];
|
|
26
25
|
var isOffline = isOfflineMode(api === null || api === void 0 || (_api$connectivity = api.connectivity) === null || _api$connectivity === void 0 || (_api$connectivity = _api$connectivity.sharedState.currentState()) === null || _api$connectivity === void 0 ? void 0 : _api$connectivity.mode);
|
|
27
|
-
|
|
28
|
-
var isMergingEnabled = isOffline || isOnlineMergeEnabled;
|
|
29
|
-
if (isMergingEnabled && lastStep && !isLocked(lastStep) && !isLocked(rebaseable)) {
|
|
26
|
+
if (lastStep && !isLocked(lastStep) && !isLocked(rebaseable)) {
|
|
30
27
|
var mergedStep = lastStep.step.merge(rebaseable.step);
|
|
31
28
|
var inverted = rebaseable.inverted.merge(lastStep.inverted);
|
|
32
29
|
// Always take the origin of the new step.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-collab-edit",
|
|
3
|
-
"version": "27.0.
|
|
3
|
+
"version": "27.0.8",
|
|
4
4
|
"description": "Collab Edit plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,13 +31,13 @@
|
|
|
31
31
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
32
32
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
33
33
|
"@atlaskit/prosemirror-collab": "^1.1.0",
|
|
34
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
34
|
+
"@atlaskit/tmp-editor-statsig": "^234.0.0",
|
|
35
35
|
"@atlaskit/tokens": "^20.4.0",
|
|
36
36
|
"@babel/runtime": "^7.0.0",
|
|
37
37
|
"memoize-one": "^6.0.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"@atlaskit/editor-common": "^130.
|
|
40
|
+
"@atlaskit/editor-common": "^130.5.0",
|
|
41
41
|
"react": "^18.2.0 || ^19.2.0",
|
|
42
42
|
"react-dom": "^18.2.0 || ^19.2.0"
|
|
43
43
|
},
|