@atlaskit/editor-plugin-collab-edit 1.23.7 → 2.0.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,23 @@
1
1
  # @atlaskit/editor-plugin-collab-edit
2
2
 
3
+ ## 2.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 2.0.0
10
+
11
+ ### Major Changes
12
+
13
+ - [#166462](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/166462)
14
+ [`e4a4cf9cca618`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e4a4cf9cca618) -
15
+ Removed re-exports of external dependency.
16
+
17
+ @atlaskit/editor-plugin-collab-edit:
18
+
19
+ - type { CollabInviteToEditProps } -> @atlaskit/editor-common/collab
20
+
3
21
  ## 1.23.7
4
22
 
5
23
  ### Patch Changes
@@ -4,14 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.PluginState = void 0;
8
- Object.defineProperty(exports, "TELEPOINTER_DIM_CLASS", {
9
- enumerable: true,
10
- get: function get() {
11
- return _collab.TELEPOINTER_DIM_CLASS;
12
- }
13
- });
14
- exports.getValidPos = void 0;
7
+ exports.getValidPos = exports.PluginState = void 0;
15
8
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
16
9
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
17
10
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
@@ -50,7 +43,7 @@ var PluginState = exports.PluginState = /*#__PURE__*/function () {
50
43
  this.isReady = collabInitalised;
51
44
  this.onError = onError || this.onError;
52
45
  }
53
- (0, _createClass2.default)(PluginState, [{
46
+ return (0, _createClass2.default)(PluginState, [{
54
47
  key: "decorations",
55
48
  get: function get() {
56
49
  return this.decorationSet;
@@ -233,5 +226,4 @@ var PluginState = exports.PluginState = /*#__PURE__*/function () {
233
226
  return new PluginState(_view.DecorationSet.create(doc, []), new _participants.Participants(), undefined, undefined, onError);
234
227
  }
235
228
  }]);
236
- return PluginState;
237
229
  }();
@@ -16,7 +16,7 @@ var Participants = exports.Participants = /*#__PURE__*/function () {
16
16
  (0, _classCallCheck2.default)(this, Participants);
17
17
  this.participants = participants;
18
18
  }
19
- (0, _createClass2.default)(Participants, [{
19
+ return (0, _createClass2.default)(Participants, [{
20
20
  key: "add",
21
21
  value: function add(data) {
22
22
  var newSet = new Map(this.participants);
@@ -91,5 +91,4 @@ var Participants = exports.Participants = /*#__PURE__*/function () {
91
91
  return left === right;
92
92
  }
93
93
  }]);
94
- return Participants;
95
94
  }();
@@ -1 +1,4 @@
1
+ /* eslint-disable @atlaskit/editor/no-re-export */
2
+ // Entry file in package.json
3
+
1
4
  export { collabEditPlugin } from './collabEditPlugin';
@@ -5,7 +5,6 @@ import { Selection } from '@atlaskit/editor-prosemirror/state';
5
5
  import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
6
6
  import { Participants } from '../participants';
7
7
  import { createTelepointers, findPointers, getPositionOfTelepointer, isReplaceStep } from '../utils';
8
- export { TELEPOINTER_DIM_CLASS };
9
8
 
10
9
  /**
11
10
  * Returns position where it's possible to place a decoration.
package/dist/esm/index.js CHANGED
@@ -1 +1,4 @@
1
+ /* eslint-disable @atlaskit/editor/no-re-export */
2
+ // Entry file in package.json
3
+
1
4
  export { collabEditPlugin } from './collabEditPlugin';
@@ -7,7 +7,6 @@ import { Selection } from '@atlaskit/editor-prosemirror/state';
7
7
  import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
8
8
  import { Participants } from '../participants';
9
9
  import { createTelepointers, findPointers, getPositionOfTelepointer, isReplaceStep } from '../utils';
10
- export { TELEPOINTER_DIM_CLASS };
11
10
 
12
11
  /**
13
12
  * Returns position where it's possible to place a decoration.
@@ -38,7 +37,7 @@ export var PluginState = /*#__PURE__*/function () {
38
37
  this.isReady = collabInitalised;
39
38
  this.onError = onError || this.onError;
40
39
  }
41
- _createClass(PluginState, [{
40
+ return _createClass(PluginState, [{
42
41
  key: "decorations",
43
42
  get: function get() {
44
43
  return this.decorationSet;
@@ -221,5 +220,4 @@ export var PluginState = /*#__PURE__*/function () {
221
220
  return new PluginState(DecorationSet.create(doc, []), new Participants(), undefined, undefined, onError);
222
221
  }
223
222
  }]);
224
- return PluginState;
225
223
  }();
@@ -9,7 +9,7 @@ export var Participants = /*#__PURE__*/function () {
9
9
  _classCallCheck(this, Participants);
10
10
  this.participants = participants;
11
11
  }
12
- _createClass(Participants, [{
12
+ return _createClass(Participants, [{
13
13
  key: "add",
14
14
  value: function add(data) {
15
15
  var newSet = new Map(this.participants);
@@ -84,5 +84,4 @@ export var Participants = /*#__PURE__*/function () {
84
84
  return left === right;
85
85
  }
86
86
  }]);
87
- return Participants;
88
87
  }();
@@ -1,3 +1,3 @@
1
1
  export { collabEditPlugin } from './collabEditPlugin';
2
2
  export type { CollabEditPlugin } from './collabEditPluginType';
3
- export type { CollabInitializedMetadata, CollabEditPluginSharedState, ReadOnlyParticipants, PrivateCollabEditOptions, CollabInviteToEditProps, CollabSendableSteps, } from './types';
3
+ export type { CollabInitializedMetadata, CollabEditPluginSharedState, ReadOnlyParticipants, PrivateCollabEditOptions, CollabSendableSteps, } from './types';
@@ -1,5 +1,5 @@
1
+ import { type EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
1
2
  import type { CollabEditProvider, CollabEventConnectionData, CollabEventInitData, CollabEventPresenceData, CollabEventRemoteData, CollabSendableSelection, CollabTelepointerPayload } from '@atlaskit/editor-common/collab';
2
- import { type EditorAnalyticsAPI } from '@atlaskit/editor-common/src/analytics';
3
3
  import type { Selection } from '@atlaskit/editor-prosemirror/state';
4
4
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
5
5
  import type { PrivateCollabEditOptions } from '../types';
@@ -1,9 +1,7 @@
1
- import { TELEPOINTER_DIM_CLASS } from '@atlaskit/editor-common/collab';
2
1
  import type { ReadonlyTransaction } from '@atlaskit/editor-prosemirror/state';
3
2
  import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
4
3
  import type { ReadOnlyParticipants } from '../../types';
5
4
  import { Participants } from '../participants';
6
- export { TELEPOINTER_DIM_CLASS };
7
5
  /**
8
6
  * Returns position where it's possible to place a decoration.
9
7
  */
@@ -1,7 +1,6 @@
1
1
  import type { CollabEditOptions, CollabEditProvider, CollabParticipant, SyncUpErrorFunction } from '@atlaskit/editor-common/collab';
2
2
  import { type Step } from '@atlaskit/editor-prosemirror/dist/types/transform';
3
3
  import type { Transaction } from '@atlaskit/editor-prosemirror/state';
4
- export type { InviteToEditComponentProps, InviteToEditButtonProps, CollabInviteToEditProps, CollabAnalyticsProps, } from '@atlaskit/editor-common/collab';
5
4
  export type PrivateCollabEditOptions = CollabEditOptions & {
6
5
  sanitizePrivateContent?: boolean;
7
6
  onSyncUpError?: SyncUpErrorFunction;
@@ -1,3 +1,3 @@
1
1
  export { collabEditPlugin } from './collabEditPlugin';
2
2
  export type { CollabEditPlugin } from './collabEditPluginType';
3
- export type { CollabInitializedMetadata, CollabEditPluginSharedState, ReadOnlyParticipants, PrivateCollabEditOptions, CollabInviteToEditProps, CollabSendableSteps, } from './types';
3
+ export type { CollabInitializedMetadata, CollabEditPluginSharedState, ReadOnlyParticipants, PrivateCollabEditOptions, CollabSendableSteps, } from './types';
@@ -1,5 +1,5 @@
1
+ import { type EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
1
2
  import type { CollabEditProvider, CollabEventConnectionData, CollabEventInitData, CollabEventPresenceData, CollabEventRemoteData, CollabSendableSelection, CollabTelepointerPayload } from '@atlaskit/editor-common/collab';
2
- import { type EditorAnalyticsAPI } from '@atlaskit/editor-common/src/analytics';
3
3
  import type { Selection } from '@atlaskit/editor-prosemirror/state';
4
4
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
5
5
  import type { PrivateCollabEditOptions } from '../types';
@@ -1,9 +1,7 @@
1
- import { TELEPOINTER_DIM_CLASS } from '@atlaskit/editor-common/collab';
2
1
  import type { ReadonlyTransaction } from '@atlaskit/editor-prosemirror/state';
3
2
  import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
4
3
  import type { ReadOnlyParticipants } from '../../types';
5
4
  import { Participants } from '../participants';
6
- export { TELEPOINTER_DIM_CLASS };
7
5
  /**
8
6
  * Returns position where it's possible to place a decoration.
9
7
  */
@@ -1,7 +1,6 @@
1
1
  import type { CollabEditOptions, CollabEditProvider, CollabParticipant, SyncUpErrorFunction } from '@atlaskit/editor-common/collab';
2
2
  import { type Step } from '@atlaskit/editor-prosemirror/dist/types/transform';
3
3
  import type { Transaction } from '@atlaskit/editor-prosemirror/state';
4
- export type { InviteToEditComponentProps, InviteToEditButtonProps, CollabInviteToEditProps, CollabAnalyticsProps, } from '@atlaskit/editor-common/collab';
5
4
  export type PrivateCollabEditOptions = CollabEditOptions & {
6
5
  sanitizePrivateContent?: boolean;
7
6
  onSyncUpError?: SyncUpErrorFunction;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-collab-edit",
3
- "version": "1.23.7",
3
+ "version": "2.0.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": "^96.3.0",
36
+ "@atlaskit/editor-common": "^97.0.0",
37
37
  "@atlaskit/editor-json-transformer": "^8.21.0",
38
- "@atlaskit/editor-plugin-analytics": "1.10.8",
38
+ "@atlaskit/editor-plugin-analytics": "1.10.9",
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",
@@ -56,7 +56,7 @@
56
56
  "@atlaskit/editor-plugin-text-formatting": "^1.16.0",
57
57
  "@atlaskit/editor-plugin-type-ahead": "^1.11.0",
58
58
  "@atlaskit/editor-plugin-unsupported-content": "^1.9.0",
59
- "@atlaskit/editor-test-helpers": "^20.1.0",
59
+ "@atlaskit/editor-test-helpers": "^21.0.0",
60
60
  "@atlaskit/ssr": "*",
61
61
  "@atlaskit/synchrony-test-helpers": "^3.0.0",
62
62
  "@atlaskit/util-data-test": "^17.13.0",