@atlaskit/editor-plugin-collab-edit 0.1.10 → 0.1.11

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,11 @@
1
1
  # @atlaskit/editor-plugin-collab-edit
2
2
 
3
+ ## 0.1.11
4
+
5
+ ### Patch Changes
6
+
7
+ - [#72026](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72026) [`0a0cc061a8a7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0a0cc061a8a7) - [No Issue] Improve Confluence Integration tests precision with data-has-collab-initialised
8
+
3
9
  ## 0.1.10
4
10
 
5
11
  ### Patch Changes
@@ -1,9 +1,11 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
7
  exports.trackNCSInitializationPluginKey = exports.createPlugin = void 0;
8
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
7
9
  var _collab = require("@atlaskit/editor-common/collab");
8
10
  var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
9
11
  var _state = require("@atlaskit/editor-prosemirror/state");
@@ -44,6 +46,12 @@ var createPlugin = exports.createPlugin = function createPlugin() {
44
46
  }
45
47
  return prevPluginState;
46
48
  }
49
+ },
50
+ props: {
51
+ attributes: function attributes(editorState) {
52
+ var trackPluginState = trackNCSInitializationPluginKey.getState(editorState);
53
+ return (0, _defineProperty2.default)({}, 'data-has-collab-initialised', "".concat(Boolean(trackPluginState === null || trackPluginState === void 0 ? void 0 : trackPluginState.collabInitialisedAt)));
54
+ }
47
55
  }
48
56
  });
49
57
  };
@@ -38,6 +38,14 @@ export const createPlugin = () => {
38
38
  }
39
39
  return prevPluginState;
40
40
  }
41
+ },
42
+ props: {
43
+ attributes(editorState) {
44
+ const trackPluginState = trackNCSInitializationPluginKey.getState(editorState);
45
+ return {
46
+ ['data-has-collab-initialised']: `${Boolean(trackPluginState === null || trackPluginState === void 0 ? void 0 : trackPluginState.collabInitialisedAt)}`
47
+ };
48
+ }
41
49
  }
42
50
  });
43
51
  };
@@ -1,3 +1,4 @@
1
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
1
2
  import { isDirtyTransaction } from '@atlaskit/editor-common/collab';
2
3
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
3
4
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
@@ -38,6 +39,12 @@ export var createPlugin = function createPlugin() {
38
39
  }
39
40
  return prevPluginState;
40
41
  }
42
+ },
43
+ props: {
44
+ attributes: function attributes(editorState) {
45
+ var trackPluginState = trackNCSInitializationPluginKey.getState(editorState);
46
+ return _defineProperty({}, 'data-has-collab-initialised', "".concat(Boolean(trackPluginState === null || trackPluginState === void 0 ? void 0 : trackPluginState.collabInitialisedAt)));
47
+ }
41
48
  }
42
49
  });
43
50
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-collab-edit",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "Collab Edit plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",