@atlaskit/editor-plugin-collab-edit 2.1.0 → 2.1.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 +6 -0
- package/dist/cjs/pm-plugins/events/initialize.js +1 -0
- package/dist/cjs/pm-plugins/main/plugin-state.js +2 -0
- package/dist/es2019/pm-plugins/events/initialize.js +1 -0
- package/dist/es2019/pm-plugins/main/index.js +1 -1
- package/dist/es2019/pm-plugins/main/plugin-state.js +2 -0
- package/dist/es2019/pm-plugins/track-steps.js +1 -1
- package/dist/esm/pm-plugins/events/initialize.js +1 -0
- package/dist/esm/pm-plugins/main/plugin-state.js +2 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -39,6 +39,7 @@ var initialize = exports.initialize = function initialize(_ref) {
|
|
|
39
39
|
editorAnalyticsApi = _ref.editorAnalyticsApi,
|
|
40
40
|
pluginInjectionApi = _ref.pluginInjectionApi;
|
|
41
41
|
return function (provider) {
|
|
42
|
+
// eslint-disable-next-line prefer-const
|
|
42
43
|
var cleanup;
|
|
43
44
|
var pluginState = _pluginKey.pluginKey.getState(view.state);
|
|
44
45
|
if (pluginState !== null && pluginState !== void 0 && pluginState.isReady && cleanup) {
|
|
@@ -77,6 +77,8 @@ var PluginState = exports.PluginState = /*#__PURE__*/function () {
|
|
|
77
77
|
key: "apply",
|
|
78
78
|
value: function apply(tr) {
|
|
79
79
|
var _this = this;
|
|
80
|
+
// Ignored via go/ees005
|
|
81
|
+
// eslint-disable-next-line prefer-const
|
|
80
82
|
var participants = this.participants,
|
|
81
83
|
sid = this.sid,
|
|
82
84
|
isReady = this.isReady;
|
|
@@ -26,6 +26,7 @@ export const initialize = ({
|
|
|
26
26
|
editorAnalyticsApi,
|
|
27
27
|
pluginInjectionApi
|
|
28
28
|
}) => provider => {
|
|
29
|
+
// eslint-disable-next-line prefer-const
|
|
29
30
|
let cleanup;
|
|
30
31
|
const pluginState = pluginKey.getState(view.state);
|
|
31
32
|
if (pluginState !== null && pluginState !== void 0 && pluginState.isReady && cleanup) {
|
|
@@ -16,7 +16,7 @@ import { pluginKey } from './plugin-key';
|
|
|
16
16
|
import { PluginState } from './plugin-state';
|
|
17
17
|
const enforceCustomStepRegisters = () => {
|
|
18
18
|
const tryToRegisterStep = obj => {
|
|
19
|
-
for (
|
|
19
|
+
for (const customStep of Object.values(obj)) {
|
|
20
20
|
var _customStep$prototype;
|
|
21
21
|
// I know this seems awful
|
|
22
22
|
// But unfortunate ProseMirror does not expose the jsonID property p
|
|
@@ -52,6 +52,8 @@ export class PluginState {
|
|
|
52
52
|
return (_participant$presence = participant === null || participant === void 0 ? void 0 : participant.presenceId) !== null && _participant$presence !== void 0 ? _participant$presence : sessionId;
|
|
53
53
|
}
|
|
54
54
|
apply(tr) {
|
|
55
|
+
// Ignored via go/ees005
|
|
56
|
+
// eslint-disable-next-line prefer-const
|
|
55
57
|
let {
|
|
56
58
|
participants,
|
|
57
59
|
sid,
|
|
@@ -32,6 +32,7 @@ export var initialize = function initialize(_ref) {
|
|
|
32
32
|
editorAnalyticsApi = _ref.editorAnalyticsApi,
|
|
33
33
|
pluginInjectionApi = _ref.pluginInjectionApi;
|
|
34
34
|
return function (provider) {
|
|
35
|
+
// eslint-disable-next-line prefer-const
|
|
35
36
|
var cleanup;
|
|
36
37
|
var pluginState = pluginKey.getState(view.state);
|
|
37
38
|
if (pluginState !== null && pluginState !== void 0 && pluginState.isReady && cleanup) {
|
|
@@ -71,6 +71,8 @@ export var PluginState = /*#__PURE__*/function () {
|
|
|
71
71
|
key: "apply",
|
|
72
72
|
value: function apply(tr) {
|
|
73
73
|
var _this = this;
|
|
74
|
+
// Ignored via go/ees005
|
|
75
|
+
// eslint-disable-next-line prefer-const
|
|
74
76
|
var participants = this.participants,
|
|
75
77
|
sid = this.sid,
|
|
76
78
|
isReady = this.isReady;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-collab-edit",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "Collab Edit plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/adf-schema": "^46.1.0",
|
|
35
35
|
"@atlaskit/custom-steps": "^0.9.0",
|
|
36
|
-
"@atlaskit/editor-common": "^
|
|
36
|
+
"@atlaskit/editor-common": "^98.0.0",
|
|
37
37
|
"@atlaskit/editor-json-transformer": "^8.21.0",
|
|
38
|
-
"@atlaskit/editor-plugin-analytics": "1.10.
|
|
38
|
+
"@atlaskit/editor-plugin-analytics": "1.10.10",
|
|
39
39
|
"@atlaskit/editor-plugin-editor-viewmode": "^2.1.0",
|
|
40
40
|
"@atlaskit/editor-plugin-feature-flags": "^1.2.0",
|
|
41
41
|
"@atlaskit/editor-prosemirror": "6.2.1",
|