@atlaskit/editor-plugin-collab-edit 1.19.2 → 1.19.3
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.19.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#136632](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/136632)
|
|
8
|
+
[`d2f43d5cb2d52`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d2f43d5cb2d52) -
|
|
9
|
+
Exclude LinkMetaStep from going through filtering transaction logic
|
|
10
|
+
|
|
3
11
|
## 1.19.2
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -78,7 +78,7 @@ var createFilterTransaction = exports.createFilterTransaction = function createF
|
|
|
78
78
|
return true;
|
|
79
79
|
}
|
|
80
80
|
var containsExcludedSteps = tr.steps.some(function (step) {
|
|
81
|
-
return step instanceof _steps.AnalyticsStep || step instanceof _transform.ReplaceStep || step instanceof _transform.ReplaceAroundStep;
|
|
81
|
+
return step instanceof _steps.AnalyticsStep || step instanceof _transform.ReplaceStep || step instanceof _transform.ReplaceAroundStep || step instanceof _steps.LinkMetaStep;
|
|
82
82
|
});
|
|
83
83
|
if (containsExcludedSteps) {
|
|
84
84
|
return true;
|
|
@@ -126,8 +126,6 @@ function generateTransactionKey(tr) {
|
|
|
126
126
|
}
|
|
127
127
|
} else if (step instanceof _transform.AddMarkStep || step instanceof _transform.RemoveMarkStep) {
|
|
128
128
|
return "from_".concat(step.from, "_to_").concat(step.to);
|
|
129
|
-
} else if (step instanceof _steps.LinkMetaStep) {
|
|
130
|
-
return "from_".concat(step.toJSON().from, "_to_").concat(step.toJSON().to);
|
|
131
129
|
} else if (step instanceof _steps.InsertTypeAheadStep) {
|
|
132
130
|
return "insertTypeAheadStep";
|
|
133
131
|
}
|
|
@@ -70,7 +70,7 @@ export const createFilterTransaction = (recentTransactionsTimestamps, trackFilte
|
|
|
70
70
|
return true;
|
|
71
71
|
}
|
|
72
72
|
const containsExcludedSteps = tr.steps.some(step => {
|
|
73
|
-
return step instanceof AnalyticsStep || step instanceof ReplaceStep || step instanceof ReplaceAroundStep;
|
|
73
|
+
return step instanceof AnalyticsStep || step instanceof ReplaceStep || step instanceof ReplaceAroundStep || step instanceof LinkMetaStep;
|
|
74
74
|
});
|
|
75
75
|
if (containsExcludedSteps) {
|
|
76
76
|
return true;
|
|
@@ -118,8 +118,6 @@ export function generateTransactionKey(tr) {
|
|
|
118
118
|
}
|
|
119
119
|
} else if (step instanceof AddMarkStep || step instanceof RemoveMarkStep) {
|
|
120
120
|
return `from_${step.from}_to_${step.to}`;
|
|
121
|
-
} else if (step instanceof LinkMetaStep) {
|
|
122
|
-
return `from_${step.toJSON().from}_to_${step.toJSON().to}`;
|
|
123
121
|
} else if (step instanceof InsertTypeAheadStep) {
|
|
124
122
|
return `insertTypeAheadStep`;
|
|
125
123
|
}
|
|
@@ -70,7 +70,7 @@ export var createFilterTransaction = function createFilterTransaction(recentTran
|
|
|
70
70
|
return true;
|
|
71
71
|
}
|
|
72
72
|
var containsExcludedSteps = tr.steps.some(function (step) {
|
|
73
|
-
return step instanceof AnalyticsStep || step instanceof ReplaceStep || step instanceof ReplaceAroundStep;
|
|
73
|
+
return step instanceof AnalyticsStep || step instanceof ReplaceStep || step instanceof ReplaceAroundStep || step instanceof LinkMetaStep;
|
|
74
74
|
});
|
|
75
75
|
if (containsExcludedSteps) {
|
|
76
76
|
return true;
|
|
@@ -118,8 +118,6 @@ export function generateTransactionKey(tr) {
|
|
|
118
118
|
}
|
|
119
119
|
} else if (step instanceof AddMarkStep || step instanceof RemoveMarkStep) {
|
|
120
120
|
return "from_".concat(step.from, "_to_").concat(step.to);
|
|
121
|
-
} else if (step instanceof LinkMetaStep) {
|
|
122
|
-
return "from_".concat(step.toJSON().from, "_to_").concat(step.toJSON().to);
|
|
123
121
|
} else if (step instanceof InsertTypeAheadStep) {
|
|
124
122
|
return "insertTypeAheadStep";
|
|
125
123
|
}
|