@atlaskit/editor-plugin-collab-edit 8.0.4 → 8.0.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
|
+
## 8.0.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 8.0.5
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`d771f5e84f24b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d771f5e84f24b) -
|
|
14
|
+
Cleanup fg platform_editor_inorganic_batchattrsstep_localid
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 8.0.4
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -17,7 +17,6 @@ var _state = require("@atlaskit/editor-prosemirror/state");
|
|
|
17
17
|
var _transform = require("@atlaskit/editor-prosemirror/transform");
|
|
18
18
|
var _view = require("@atlaskit/editor-prosemirror/view");
|
|
19
19
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
20
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
21
20
|
var findPointers = exports.findPointers = function findPointers(id, decorations) {
|
|
22
21
|
return decorations.find().reduce(function (arr, deco) {
|
|
23
22
|
return deco.spec.pointer.presenceId === id ? arr.concat(deco) : arr;
|
|
@@ -218,7 +217,7 @@ var isOrganicChange = exports.isOrganicChange = function isOrganicChange(tr) {
|
|
|
218
217
|
}
|
|
219
218
|
|
|
220
219
|
// editor-plugin-local-id uses BatchAttrStep to set the localId attribute
|
|
221
|
-
if (step instanceof _steps.BatchAttrsStep
|
|
220
|
+
if (step instanceof _steps.BatchAttrsStep) {
|
|
222
221
|
var _allAttributes = step.data.map(function (data) {
|
|
223
222
|
return Object.keys(data.attrs);
|
|
224
223
|
}).flat();
|
|
@@ -7,7 +7,6 @@ import { Transaction, Selection, TextSelection } from '@atlaskit/editor-prosemir
|
|
|
7
7
|
import { AttrStep, ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
|
|
8
8
|
import { Decoration } from '@atlaskit/editor-prosemirror/view';
|
|
9
9
|
import { getParticipantColor } from '@atlaskit/editor-shared-styles';
|
|
10
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
10
|
export const findPointers = (id, decorations) => decorations.find().reduce((arr, deco) => deco.spec.pointer.presenceId === id ? arr.concat(deco) : arr, []);
|
|
12
11
|
function style(options) {
|
|
13
12
|
const color = options && options.color || 'black';
|
|
@@ -206,7 +205,7 @@ export const isOrganicChange = tr => {
|
|
|
206
205
|
}
|
|
207
206
|
|
|
208
207
|
// editor-plugin-local-id uses BatchAttrStep to set the localId attribute
|
|
209
|
-
if (step instanceof BatchAttrsStep
|
|
208
|
+
if (step instanceof BatchAttrsStep) {
|
|
210
209
|
const allAttributes = step.data.map(data => Object.keys(data.attrs)).flat();
|
|
211
210
|
return allAttributes.some(attr => !blockedAttrsList.includes(attr)) && !tr.doc.eq(tr.before);
|
|
212
211
|
}
|
|
@@ -8,7 +8,6 @@ import { Transaction, Selection, TextSelection } from '@atlaskit/editor-prosemir
|
|
|
8
8
|
import { AttrStep, ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
|
|
9
9
|
import { Decoration } from '@atlaskit/editor-prosemirror/view';
|
|
10
10
|
import { getParticipantColor } from '@atlaskit/editor-shared-styles';
|
|
11
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
11
|
export var findPointers = function findPointers(id, decorations) {
|
|
13
12
|
return decorations.find().reduce(function (arr, deco) {
|
|
14
13
|
return deco.spec.pointer.presenceId === id ? arr.concat(deco) : arr;
|
|
@@ -210,7 +209,7 @@ export var isOrganicChange = function isOrganicChange(tr) {
|
|
|
210
209
|
}
|
|
211
210
|
|
|
212
211
|
// editor-plugin-local-id uses BatchAttrStep to set the localId attribute
|
|
213
|
-
if (step instanceof BatchAttrsStep
|
|
212
|
+
if (step instanceof BatchAttrsStep) {
|
|
214
213
|
var _allAttributes = step.data.map(function (data) {
|
|
215
214
|
return Object.keys(data.attrs);
|
|
216
215
|
}).flat();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-collab-edit",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.6",
|
|
4
4
|
"description": "Collab Edit plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@atlaskit/frontend-utilities": "^3.2.0",
|
|
40
40
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
41
41
|
"@atlaskit/prosemirror-collab": "^0.22.0",
|
|
42
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
42
|
+
"@atlaskit/tmp-editor-statsig": "^21.0.0",
|
|
43
43
|
"@babel/runtime": "^7.0.0",
|
|
44
44
|
"memoize-one": "^6.0.0"
|
|
45
45
|
},
|
|
@@ -89,9 +89,6 @@
|
|
|
89
89
|
}
|
|
90
90
|
},
|
|
91
91
|
"platform-feature-flags": {
|
|
92
|
-
"platform_editor_inorganic_batchattrsstep_localid": {
|
|
93
|
-
"type": "boolean"
|
|
94
|
-
},
|
|
95
92
|
"platform_editor_collab_organic_change_reporting": {
|
|
96
93
|
"type": "boolean"
|
|
97
94
|
}
|