@atlaskit/prosemirror-collab 0.16.0 → 0.16.1

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/prosemirror-collab
2
2
 
3
+ ## 0.16.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#140816](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/140816)
8
+ [`09580d6d7c275`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/09580d6d7c275) -
9
+ EDITOR-608 Clean up platform_editor_collab_text_selection_override
10
+
3
11
  ## 0.16.0
4
12
 
5
13
  ### Minor Changes
package/dist/cjs/index.js CHANGED
@@ -221,7 +221,7 @@ function receiveTransaction(state, steps, clientIDs) {
221
221
  }
222
222
  var newCollabState = new CollabState(version, unconfirmed);
223
223
  if (options && options.mapSelectionBackward && state.selection instanceof _state.TextSelection) {
224
- tr.setSelection((0, _platformFeatureFlags.fg)('platform_editor_collab_text_selection_override') ? new _state.TextSelection(tr.doc.resolve(tr.mapping.map(state.selection.anchor, -1)), tr.doc.resolve(tr.mapping.map(state.selection.head, -1))) : _state.TextSelection.between(tr.doc.resolve(tr.mapping.map(state.selection.anchor, -1)), tr.doc.resolve(tr.mapping.map(state.selection.head, -1)), -1));
224
+ tr.setSelection(new _state.TextSelection(tr.doc.resolve(tr.mapping.map(state.selection.anchor, -1)), tr.doc.resolve(tr.mapping.map(state.selection.head, -1))));
225
225
  // Ignored via go/ees005
226
226
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
227
227
  tr.updated &= ~1;
@@ -206,7 +206,7 @@ export function receiveTransaction(state, steps, clientIDs, options = {}) {
206
206
  }
207
207
  const newCollabState = new CollabState(version, unconfirmed);
208
208
  if (options && options.mapSelectionBackward && state.selection instanceof TextSelection) {
209
- tr.setSelection(fg('platform_editor_collab_text_selection_override') ? new TextSelection(tr.doc.resolve(tr.mapping.map(state.selection.anchor, -1)), tr.doc.resolve(tr.mapping.map(state.selection.head, -1))) : TextSelection.between(tr.doc.resolve(tr.mapping.map(state.selection.anchor, -1)), tr.doc.resolve(tr.mapping.map(state.selection.head, -1)), -1));
209
+ tr.setSelection(new TextSelection(tr.doc.resolve(tr.mapping.map(state.selection.anchor, -1)), tr.doc.resolve(tr.mapping.map(state.selection.head, -1))));
210
210
  // Ignored via go/ees005
211
211
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
212
212
  tr.updated &= ~1;
package/dist/esm/index.js CHANGED
@@ -208,7 +208,7 @@ export function receiveTransaction(state, steps, clientIDs) {
208
208
  }
209
209
  var newCollabState = new CollabState(version, unconfirmed);
210
210
  if (options && options.mapSelectionBackward && state.selection instanceof TextSelection) {
211
- tr.setSelection(fg('platform_editor_collab_text_selection_override') ? new TextSelection(tr.doc.resolve(tr.mapping.map(state.selection.anchor, -1)), tr.doc.resolve(tr.mapping.map(state.selection.head, -1))) : TextSelection.between(tr.doc.resolve(tr.mapping.map(state.selection.anchor, -1)), tr.doc.resolve(tr.mapping.map(state.selection.head, -1)), -1));
211
+ tr.setSelection(new TextSelection(tr.doc.resolve(tr.mapping.map(state.selection.anchor, -1)), tr.doc.resolve(tr.mapping.map(state.selection.head, -1))));
212
212
  // Ignored via go/ees005
213
213
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
214
214
  tr.updated &= ~1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/prosemirror-collab",
3
- "version": "0.16.0",
3
+ "version": "0.16.1",
4
4
  "description": "Collaborative editing for ProseMirror - Atlassian Fork",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -57,9 +57,6 @@
57
57
  "platform-feature-flags": {
58
58
  "platform_editor_merge_unconfirmed_steps": {
59
59
  "type": "boolean"
60
- },
61
- "platform_editor_collab_text_selection_override": {
62
- "type": "boolean"
63
60
  }
64
61
  }
65
62
  }