@atlaskit/editor-plugin-collab-edit 2.6.0 → 2.6.2

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,22 @@
1
1
  # @atlaskit/editor-plugin-collab-edit
2
2
 
3
+ ## 2.6.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#112186](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/112186)
8
+ [`9462d8ca2405a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9462d8ca2405a) -
9
+ Bump adf-schema to 47.2.1
10
+ - Updated dependencies
11
+
12
+ ## 2.6.1
13
+
14
+ ### Patch Changes
15
+
16
+ - [#112607](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/112607)
17
+ [`aae2efdae0ebe`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/aae2efdae0ebe) -
18
+ Fixed regression where editor analytics stopped firing
19
+
3
20
  ## 2.6.0
4
21
 
5
22
  ### Minor Changes
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.sendTransaction = void 0;
7
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
8
7
  var _actions = require("../actions");
9
8
  var _pluginKey = require("../main/plugin-key");
10
9
  var sendTransaction = exports.sendTransaction = function sendTransaction(_ref) {
@@ -15,7 +14,7 @@ var sendTransaction = exports.sendTransaction = function sendTransaction(_ref) {
15
14
  useNativePlugin = _ref.useNativePlugin,
16
15
  viewMode = _ref.viewMode;
17
16
  return function (provider) {
18
- var docChangedTransaction = (0, _platformFeatureFlags.fg)('platform_editor_migrate_state_updates') ? originalTransaction.docChanged : transactions.find(function (tr) {
17
+ var docChangedTransaction = transactions.find(function (tr) {
19
18
  return tr.docChanged;
20
19
  });
21
20
  var currentPluginState = _pluginKey.pluginKey.getState(newEditorState);
@@ -28,11 +27,7 @@ var sendTransaction = exports.sendTransaction = function sendTransaction(_ref) {
28
27
  // This metadata is coming from the scaleTable command in table-resizing plugin
29
28
  !originalTransaction.getMeta('scaleTable') && docChangedTransaction;
30
29
  if (useNativePlugin || shouldSendStepForSynchronyCollabProvider) {
31
- if ((0, _platformFeatureFlags.fg)('platform_editor_migrate_state_updates')) {
32
- provider.send(originalTransaction, oldEditorState, newEditorState);
33
- } else {
34
- provider.send(docChangedTransaction, oldEditorState, newEditorState);
35
- }
30
+ provider.send(docChangedTransaction, oldEditorState, newEditorState);
36
31
  }
37
32
  var prevPluginState = _pluginKey.pluginKey.getState(oldEditorState);
38
33
  var _ref2 = prevPluginState || {},
@@ -1,4 +1,3 @@
1
- import { fg } from '@atlaskit/platform-feature-flags';
2
1
  import { getSendableSelection } from '../actions';
3
2
  import { pluginKey } from '../main/plugin-key';
4
3
  export const sendTransaction = ({
@@ -9,7 +8,7 @@ export const sendTransaction = ({
9
8
  useNativePlugin,
10
9
  viewMode
11
10
  }) => provider => {
12
- const docChangedTransaction = fg('platform_editor_migrate_state_updates') ? originalTransaction.docChanged : transactions.find(tr => tr.docChanged);
11
+ const docChangedTransaction = transactions.find(tr => tr.docChanged);
13
12
  const currentPluginState = pluginKey.getState(newEditorState);
14
13
  if (!(currentPluginState !== null && currentPluginState !== void 0 && currentPluginState.isReady)) {
15
14
  return;
@@ -20,11 +19,7 @@ export const sendTransaction = ({
20
19
  // This metadata is coming from the scaleTable command in table-resizing plugin
21
20
  !originalTransaction.getMeta('scaleTable') && docChangedTransaction;
22
21
  if (useNativePlugin || shouldSendStepForSynchronyCollabProvider) {
23
- if (fg('platform_editor_migrate_state_updates')) {
24
- provider.send(originalTransaction, oldEditorState, newEditorState);
25
- } else {
26
- provider.send(docChangedTransaction, oldEditorState, newEditorState);
27
- }
22
+ provider.send(docChangedTransaction, oldEditorState, newEditorState);
28
23
  }
29
24
  const prevPluginState = pluginKey.getState(oldEditorState);
30
25
  const {
@@ -1,4 +1,3 @@
1
- import { fg } from '@atlaskit/platform-feature-flags';
2
1
  import { getSendableSelection } from '../actions';
3
2
  import { pluginKey } from '../main/plugin-key';
4
3
  export var sendTransaction = function sendTransaction(_ref) {
@@ -9,7 +8,7 @@ export var sendTransaction = function sendTransaction(_ref) {
9
8
  useNativePlugin = _ref.useNativePlugin,
10
9
  viewMode = _ref.viewMode;
11
10
  return function (provider) {
12
- var docChangedTransaction = fg('platform_editor_migrate_state_updates') ? originalTransaction.docChanged : transactions.find(function (tr) {
11
+ var docChangedTransaction = transactions.find(function (tr) {
13
12
  return tr.docChanged;
14
13
  });
15
14
  var currentPluginState = pluginKey.getState(newEditorState);
@@ -22,11 +21,7 @@ export var sendTransaction = function sendTransaction(_ref) {
22
21
  // This metadata is coming from the scaleTable command in table-resizing plugin
23
22
  !originalTransaction.getMeta('scaleTable') && docChangedTransaction;
24
23
  if (useNativePlugin || shouldSendStepForSynchronyCollabProvider) {
25
- if (fg('platform_editor_migrate_state_updates')) {
26
- provider.send(originalTransaction, oldEditorState, newEditorState);
27
- } else {
28
- provider.send(docChangedTransaction, oldEditorState, newEditorState);
29
- }
24
+ provider.send(docChangedTransaction, oldEditorState, newEditorState);
30
25
  }
31
26
  var prevPluginState = pluginKey.getState(oldEditorState);
32
27
  var _ref2 = prevPluginState || {},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-collab-edit",
3
- "version": "2.6.0",
3
+ "version": "2.6.2",
4
4
  "description": "Collab Edit plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -31,12 +31,12 @@
31
31
  ".": "./src/index.ts"
32
32
  },
33
33
  "dependencies": {
34
- "@atlaskit/adf-schema": "^46.1.0",
34
+ "@atlaskit/adf-schema": "^47.2.1",
35
35
  "@atlaskit/custom-steps": "^0.10.0",
36
- "@atlaskit/editor-common": "^99.10.0",
36
+ "@atlaskit/editor-common": "^99.14.0",
37
37
  "@atlaskit/editor-json-transformer": "^8.23.0",
38
- "@atlaskit/editor-plugin-analytics": "1.12.0",
39
- "@atlaskit/editor-plugin-connectivity": "^1.2.0",
38
+ "@atlaskit/editor-plugin-analytics": "1.12.1",
39
+ "@atlaskit/editor-plugin-connectivity": "^1.3.0",
40
40
  "@atlaskit/editor-plugin-editor-viewmode": "^2.2.0",
41
41
  "@atlaskit/editor-plugin-feature-flags": "^1.3.0",
42
42
  "@atlaskit/editor-prosemirror": "7.0.0",
@@ -114,9 +114,6 @@
114
114
  },
115
115
  "platform_editor_selection_without_left_shift": {
116
116
  "type": "boolean"
117
- },
118
- "platform_editor_migrate_state_updates": {
119
- "type": "boolean"
120
117
  }
121
118
  }
122
119
  }