@atlaskit/collab-provider 10.8.0 → 10.9.0
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 +20 -0
- package/dist/cjs/document/document-service.js +18 -14
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/document/document-service.js +17 -16
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/document/document-service.js +18 -17
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/document/document-service.d.ts +7 -6
- package/dist/types-ts4.5/document/document-service.d.ts +7 -6
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/collab-provider
|
|
2
2
|
|
|
3
|
+
## 10.9.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#120472](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/120472)
|
|
8
|
+
[`73c800ab5f2fc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/73c800ab5f2fc) -
|
|
9
|
+
ED-26766 update adf-schema from 47.2.1 to 47.6.0 and adf-schema-json from 1.27.0 to 1.31.0
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 10.8.1
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [#120905](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/120905)
|
|
20
|
+
[`4194ea903d7d6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4194ea903d7d6) -
|
|
21
|
+
Refactor step merging while offline.
|
|
22
|
+
|
|
3
23
|
## 10.8.0
|
|
4
24
|
|
|
5
25
|
### Minor Changes
|
|
@@ -10,19 +10,20 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
|
10
10
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
11
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
12
12
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
13
|
+
var _throttle = _interopRequireDefault(require("lodash/throttle"));
|
|
13
14
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
|
-
var _const = require("../helpers/const");
|
|
15
15
|
var _prosemirrorCollab = require("@atlaskit/prosemirror-collab");
|
|
16
|
+
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
16
17
|
var _editorJsonTransformer = require("@atlaskit/editor-json-transformer");
|
|
17
|
-
var
|
|
18
|
+
var _const = require("../helpers/const");
|
|
18
19
|
var _performance = require("../analytics/performance");
|
|
19
20
|
var _internalErrors = require("../errors/internal-errors");
|
|
20
21
|
var _utils = require("../helpers/utils");
|
|
21
22
|
var _provider = require("../provider");
|
|
22
23
|
var _commitStep = require("../provider/commit-step");
|
|
24
|
+
var _customErrors = require("../errors/custom-errors");
|
|
23
25
|
var _catchupv = require("./catchupv2");
|
|
24
26
|
var _stepQueueState = require("./step-queue-state");
|
|
25
|
-
var _customErrors = require("../errors/custom-errors");
|
|
26
27
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
27
28
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
28
29
|
var CATCHUP_THROTTLE = 1 * 1000; // 1 second
|
|
@@ -384,7 +385,7 @@ var DocumentService = exports.DocumentService = /*#__PURE__*/function () {
|
|
|
384
385
|
hasTitle: !!(metadata !== null && metadata !== void 0 && metadata.title),
|
|
385
386
|
clientId: _this.clientId,
|
|
386
387
|
targetClientId: targetClientId,
|
|
387
|
-
triggeredByCatchup: targetClientId
|
|
388
|
+
triggeredByCatchup: !!targetClientId
|
|
388
389
|
});
|
|
389
390
|
if (unconfirmedSteps !== null && unconfirmedSteps !== void 0 && unconfirmedSteps.length) {
|
|
390
391
|
_this.applyLocalSteps(unconfirmedSteps);
|
|
@@ -424,7 +425,7 @@ var DocumentService = exports.DocumentService = /*#__PURE__*/function () {
|
|
|
424
425
|
useReconcile: useReconcile,
|
|
425
426
|
clientId: _this.clientId,
|
|
426
427
|
targetClientId: targetClientId,
|
|
427
|
-
triggeredByCatchup: targetClientId
|
|
428
|
+
triggeredByCatchup: !!targetClientId
|
|
428
429
|
});
|
|
429
430
|
_context3.next = 41;
|
|
430
431
|
break;
|
|
@@ -436,7 +437,7 @@ var DocumentService = exports.DocumentService = /*#__PURE__*/function () {
|
|
|
436
437
|
useReconcile: useReconcile,
|
|
437
438
|
clientId: _this.clientId,
|
|
438
439
|
targetClientId: targetClientId,
|
|
439
|
-
triggeredByCatchup: targetClientId
|
|
440
|
+
triggeredByCatchup: !!targetClientId
|
|
440
441
|
});
|
|
441
442
|
(_this$analyticsHelper17 = _this.analyticsHelper) === null || _this$analyticsHelper17 === void 0 || _this$analyticsHelper17.sendErrorEvent(_context3.t1, "Error while reinitialising document. Use Reconcile: ".concat(useReconcile));
|
|
442
443
|
_this.onErrorHandled({
|
|
@@ -935,12 +936,18 @@ var DocumentService = exports.DocumentService = /*#__PURE__*/function () {
|
|
|
935
936
|
// we need to lock them to ensure they don't get
|
|
936
937
|
// mutated in: `packages/editor/editor-plugin-collab-edit/src/pm-plugins/mergeUnconfirmed.ts`
|
|
937
938
|
if ((0, _platformFeatureFlags.fg)('platform_editor_merge_unconfirmed_steps')) {
|
|
938
|
-
unconfirmedStepsData.
|
|
939
|
-
if (
|
|
940
|
-
|
|
941
|
-
(_s$lockStep = s.lockStep) === null || _s$lockStep === void 0 || _s$lockStep.call(s);
|
|
939
|
+
unconfirmedStepsData.origins.forEach(function (origin) {
|
|
940
|
+
if (origin instanceof _state.Transaction) {
|
|
941
|
+
return origin.setMeta('mergeIsLocked', true);
|
|
942
942
|
}
|
|
943
943
|
});
|
|
944
|
+
var offlineSteps = unconfirmedStepsData === null || unconfirmedStepsData === void 0 ? void 0 : unconfirmedStepsData.origins.some(function (tr) {
|
|
945
|
+
var _tr$getMeta;
|
|
946
|
+
return tr instanceof _state.Transaction ? (_tr$getMeta = tr.getMeta('isOffline')) !== null && _tr$getMeta !== void 0 ? _tr$getMeta : false : false;
|
|
947
|
+
});
|
|
948
|
+
if (offlineSteps) {
|
|
949
|
+
return;
|
|
950
|
+
}
|
|
944
951
|
}
|
|
945
952
|
|
|
946
953
|
// Avoid reference issues using a
|
|
@@ -967,7 +974,4 @@ var DocumentService = exports.DocumentService = /*#__PURE__*/function () {
|
|
|
967
974
|
});
|
|
968
975
|
}
|
|
969
976
|
}]);
|
|
970
|
-
}();
|
|
971
|
-
function isLockable(step) {
|
|
972
|
-
return (step === null || step === void 0 ? void 0 : step.lockStep) !== undefined;
|
|
973
|
-
}
|
|
977
|
+
}();
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.version = exports.nextMajorVersion = exports.name = void 0;
|
|
7
7
|
var name = exports.name = "@atlaskit/collab-provider";
|
|
8
|
-
var version = exports.version = "10.
|
|
8
|
+
var version = exports.version = "10.9.0";
|
|
9
9
|
var nextMajorVersion = exports.nextMajorVersion = function nextMajorVersion() {
|
|
10
10
|
return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
|
|
11
11
|
};
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
import throttle from 'lodash/throttle';
|
|
2
3
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
|
-
import { ACK_MAX_TRY, EVENT_ACTION, EVENT_STATUS, CatchupEventReason } from '../helpers/const';
|
|
4
4
|
import { getCollabState, sendableSteps } from '@atlaskit/prosemirror-collab';
|
|
5
|
+
import { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
5
6
|
import { JSONTransformer } from '@atlaskit/editor-json-transformer';
|
|
6
|
-
import
|
|
7
|
+
import { ACK_MAX_TRY, EVENT_ACTION, EVENT_STATUS, CatchupEventReason } from '../helpers/const';
|
|
7
8
|
import { MEASURE_NAME, startMeasure, stopMeasure } from '../analytics/performance';
|
|
8
9
|
import { INTERNAL_ERROR_CODE } from '../errors/internal-errors';
|
|
9
10
|
import { createLogger, getDocAdfWithObfuscationFromJSON, getObfuscatedSteps, getStepUGCFreeDetails, sleep } from '../helpers/utils';
|
|
10
11
|
import { MAX_STEP_REJECTED_ERROR, MAX_STEP_REJECTED_ERROR_AGGRESSIVE } from '../provider';
|
|
11
12
|
import { commitStepQueue } from '../provider/commit-step';
|
|
13
|
+
import { CantSyncUpError, UpdateDocumentError } from '../errors/custom-errors';
|
|
12
14
|
import { catchupv2 } from './catchupv2';
|
|
13
15
|
import { StepQueueState } from './step-queue-state';
|
|
14
|
-
import { CantSyncUpError, UpdateDocumentError } from '../errors/custom-errors';
|
|
15
16
|
const CATCHUP_THROTTLE = 1 * 1000; // 1 second
|
|
16
17
|
|
|
17
18
|
const noop = () => {};
|
|
@@ -346,7 +347,7 @@ export class DocumentService {
|
|
|
346
347
|
hasTitle: !!(metadata !== null && metadata !== void 0 && metadata.title),
|
|
347
348
|
clientId: this.clientId,
|
|
348
349
|
targetClientId,
|
|
349
|
-
triggeredByCatchup: targetClientId
|
|
350
|
+
triggeredByCatchup: !!targetClientId
|
|
350
351
|
});
|
|
351
352
|
if (unconfirmedSteps !== null && unconfirmedSteps !== void 0 && unconfirmedSteps.length) {
|
|
352
353
|
this.applyLocalSteps(unconfirmedSteps);
|
|
@@ -373,7 +374,7 @@ export class DocumentService {
|
|
|
373
374
|
useReconcile,
|
|
374
375
|
clientId: this.clientId,
|
|
375
376
|
targetClientId,
|
|
376
|
-
triggeredByCatchup: targetClientId
|
|
377
|
+
triggeredByCatchup: !!targetClientId
|
|
377
378
|
});
|
|
378
379
|
} catch (restoreError) {
|
|
379
380
|
var _this$analyticsHelper16, _this$analyticsHelper17;
|
|
@@ -382,7 +383,7 @@ export class DocumentService {
|
|
|
382
383
|
useReconcile,
|
|
383
384
|
clientId: this.clientId,
|
|
384
385
|
targetClientId,
|
|
385
|
-
triggeredByCatchup: targetClientId
|
|
386
|
+
triggeredByCatchup: !!targetClientId
|
|
386
387
|
});
|
|
387
388
|
(_this$analyticsHelper17 = this.analyticsHelper) === null || _this$analyticsHelper17 === void 0 ? void 0 : _this$analyticsHelper17.sendErrorEvent(restoreError, `Error while reinitialising document. Use Reconcile: ${useReconcile}`);
|
|
388
389
|
this.onErrorHandled({
|
|
@@ -806,12 +807,18 @@ export class DocumentService {
|
|
|
806
807
|
// we need to lock them to ensure they don't get
|
|
807
808
|
// mutated in: `packages/editor/editor-plugin-collab-edit/src/pm-plugins/mergeUnconfirmed.ts`
|
|
808
809
|
if (fg('platform_editor_merge_unconfirmed_steps')) {
|
|
809
|
-
unconfirmedStepsData.
|
|
810
|
-
if (
|
|
811
|
-
|
|
812
|
-
(_s$lockStep = s.lockStep) === null || _s$lockStep === void 0 ? void 0 : _s$lockStep.call(s);
|
|
810
|
+
unconfirmedStepsData.origins.forEach(origin => {
|
|
811
|
+
if (origin instanceof Transaction) {
|
|
812
|
+
return origin.setMeta('mergeIsLocked', true);
|
|
813
813
|
}
|
|
814
814
|
});
|
|
815
|
+
const offlineSteps = unconfirmedStepsData === null || unconfirmedStepsData === void 0 ? void 0 : unconfirmedStepsData.origins.some(tr => {
|
|
816
|
+
var _tr$getMeta;
|
|
817
|
+
return tr instanceof Transaction ? (_tr$getMeta = tr.getMeta('isOffline')) !== null && _tr$getMeta !== void 0 ? _tr$getMeta : false : false;
|
|
818
|
+
});
|
|
819
|
+
if (offlineSteps) {
|
|
820
|
+
return;
|
|
821
|
+
}
|
|
815
822
|
}
|
|
816
823
|
|
|
817
824
|
// Avoid reference issues using a
|
|
@@ -837,10 +844,4 @@ export class DocumentService {
|
|
|
837
844
|
forcePublish
|
|
838
845
|
});
|
|
839
846
|
}
|
|
840
|
-
}
|
|
841
|
-
|
|
842
|
-
// Based on: packages/editor/editor-plugin-collab-edit/src/pm-plugins/mergeUnconfirmed.ts
|
|
843
|
-
|
|
844
|
-
function isLockable(step) {
|
|
845
|
-
return (step === null || step === void 0 ? void 0 : step.lockStep) !== undefined;
|
|
846
847
|
}
|
|
@@ -5,19 +5,20 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
5
5
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
6
6
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7
7
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8
|
+
import throttle from 'lodash/throttle';
|
|
8
9
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
|
-
import { ACK_MAX_TRY, EVENT_ACTION, EVENT_STATUS, CatchupEventReason } from '../helpers/const';
|
|
10
10
|
import { getCollabState, sendableSteps } from '@atlaskit/prosemirror-collab';
|
|
11
|
+
import { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
11
12
|
import { JSONTransformer } from '@atlaskit/editor-json-transformer';
|
|
12
|
-
import
|
|
13
|
+
import { ACK_MAX_TRY, EVENT_ACTION, EVENT_STATUS, CatchupEventReason } from '../helpers/const';
|
|
13
14
|
import { MEASURE_NAME, startMeasure, stopMeasure } from '../analytics/performance';
|
|
14
15
|
import { INTERNAL_ERROR_CODE } from '../errors/internal-errors';
|
|
15
16
|
import { createLogger, getDocAdfWithObfuscationFromJSON, getObfuscatedSteps, getStepUGCFreeDetails, sleep } from '../helpers/utils';
|
|
16
17
|
import { MAX_STEP_REJECTED_ERROR, MAX_STEP_REJECTED_ERROR_AGGRESSIVE } from '../provider';
|
|
17
18
|
import { commitStepQueue } from '../provider/commit-step';
|
|
19
|
+
import { CantSyncUpError, UpdateDocumentError } from '../errors/custom-errors';
|
|
18
20
|
import { catchupv2 } from './catchupv2';
|
|
19
21
|
import { StepQueueState } from './step-queue-state';
|
|
20
|
-
import { CantSyncUpError, UpdateDocumentError } from '../errors/custom-errors';
|
|
21
22
|
var CATCHUP_THROTTLE = 1 * 1000; // 1 second
|
|
22
23
|
|
|
23
24
|
var noop = function noop() {};
|
|
@@ -377,7 +378,7 @@ export var DocumentService = /*#__PURE__*/function () {
|
|
|
377
378
|
hasTitle: !!(metadata !== null && metadata !== void 0 && metadata.title),
|
|
378
379
|
clientId: _this.clientId,
|
|
379
380
|
targetClientId: targetClientId,
|
|
380
|
-
triggeredByCatchup: targetClientId
|
|
381
|
+
triggeredByCatchup: !!targetClientId
|
|
381
382
|
});
|
|
382
383
|
if (unconfirmedSteps !== null && unconfirmedSteps !== void 0 && unconfirmedSteps.length) {
|
|
383
384
|
_this.applyLocalSteps(unconfirmedSteps);
|
|
@@ -417,7 +418,7 @@ export var DocumentService = /*#__PURE__*/function () {
|
|
|
417
418
|
useReconcile: useReconcile,
|
|
418
419
|
clientId: _this.clientId,
|
|
419
420
|
targetClientId: targetClientId,
|
|
420
|
-
triggeredByCatchup: targetClientId
|
|
421
|
+
triggeredByCatchup: !!targetClientId
|
|
421
422
|
});
|
|
422
423
|
_context3.next = 41;
|
|
423
424
|
break;
|
|
@@ -429,7 +430,7 @@ export var DocumentService = /*#__PURE__*/function () {
|
|
|
429
430
|
useReconcile: useReconcile,
|
|
430
431
|
clientId: _this.clientId,
|
|
431
432
|
targetClientId: targetClientId,
|
|
432
|
-
triggeredByCatchup: targetClientId
|
|
433
|
+
triggeredByCatchup: !!targetClientId
|
|
433
434
|
});
|
|
434
435
|
(_this$analyticsHelper17 = _this.analyticsHelper) === null || _this$analyticsHelper17 === void 0 || _this$analyticsHelper17.sendErrorEvent(_context3.t1, "Error while reinitialising document. Use Reconcile: ".concat(useReconcile));
|
|
435
436
|
_this.onErrorHandled({
|
|
@@ -928,12 +929,18 @@ export var DocumentService = /*#__PURE__*/function () {
|
|
|
928
929
|
// we need to lock them to ensure they don't get
|
|
929
930
|
// mutated in: `packages/editor/editor-plugin-collab-edit/src/pm-plugins/mergeUnconfirmed.ts`
|
|
930
931
|
if (fg('platform_editor_merge_unconfirmed_steps')) {
|
|
931
|
-
unconfirmedStepsData.
|
|
932
|
-
if (
|
|
933
|
-
|
|
934
|
-
(_s$lockStep = s.lockStep) === null || _s$lockStep === void 0 || _s$lockStep.call(s);
|
|
932
|
+
unconfirmedStepsData.origins.forEach(function (origin) {
|
|
933
|
+
if (origin instanceof Transaction) {
|
|
934
|
+
return origin.setMeta('mergeIsLocked', true);
|
|
935
935
|
}
|
|
936
936
|
});
|
|
937
|
+
var offlineSteps = unconfirmedStepsData === null || unconfirmedStepsData === void 0 ? void 0 : unconfirmedStepsData.origins.some(function (tr) {
|
|
938
|
+
var _tr$getMeta;
|
|
939
|
+
return tr instanceof Transaction ? (_tr$getMeta = tr.getMeta('isOffline')) !== null && _tr$getMeta !== void 0 ? _tr$getMeta : false : false;
|
|
940
|
+
});
|
|
941
|
+
if (offlineSteps) {
|
|
942
|
+
return;
|
|
943
|
+
}
|
|
937
944
|
}
|
|
938
945
|
|
|
939
946
|
// Avoid reference issues using a
|
|
@@ -960,10 +967,4 @@ export var DocumentService = /*#__PURE__*/function () {
|
|
|
960
967
|
});
|
|
961
968
|
}
|
|
962
969
|
}]);
|
|
963
|
-
}();
|
|
964
|
-
|
|
965
|
-
// Based on: packages/editor/editor-plugin-collab-edit/src/pm-plugins/mergeUnconfirmed.ts
|
|
966
|
-
|
|
967
|
-
function isLockable(step) {
|
|
968
|
-
return (step === null || step === void 0 ? void 0 : step.lockStep) !== undefined;
|
|
969
|
-
}
|
|
970
|
+
}();
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { ResolvedEditorState, SyncUpErrorFunction, CollabEvents, CollabInitPayload } from '@atlaskit/editor-common/collab';
|
|
2
|
-
import
|
|
3
|
-
import type
|
|
4
|
-
import {
|
|
5
|
-
import type { MetadataService } from '../metadata/metadata-service';
|
|
6
|
-
import type { Catchupv2Response, ChannelEvent, ReconcileResponse, ReconnectionMetadata, StepsPayload } from '../types';
|
|
7
|
-
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
+
import { Step as ProseMirrorStep } from '@atlaskit/editor-prosemirror/transform';
|
|
3
|
+
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
+
import { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
8
5
|
import type { JSONDocNode } from '@atlaskit/editor-json-transformer';
|
|
6
|
+
import type { Catchupv2Response, ChannelEvent, ReconcileResponse, ReconnectionMetadata, StepsPayload } from '../types';
|
|
7
|
+
import type { MetadataService } from '../metadata/metadata-service';
|
|
8
|
+
import { CatchupEventReason } from '../helpers/const';
|
|
9
|
+
import type AnalyticsHelper from '../analytics/analytics-helper';
|
|
9
10
|
import type { InternalError } from '../errors/internal-errors';
|
|
10
11
|
import type { ParticipantsService } from '../participants/participants-service';
|
|
11
12
|
import { type DocumentServiceInterface } from './interface-document-service';
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { ResolvedEditorState, SyncUpErrorFunction, CollabEvents, CollabInitPayload } from '@atlaskit/editor-common/collab';
|
|
2
|
-
import
|
|
3
|
-
import type
|
|
4
|
-
import {
|
|
5
|
-
import type { MetadataService } from '../metadata/metadata-service';
|
|
6
|
-
import type { Catchupv2Response, ChannelEvent, ReconcileResponse, ReconnectionMetadata, StepsPayload } from '../types';
|
|
7
|
-
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
+
import { Step as ProseMirrorStep } from '@atlaskit/editor-prosemirror/transform';
|
|
3
|
+
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
+
import { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
8
5
|
import type { JSONDocNode } from '@atlaskit/editor-json-transformer';
|
|
6
|
+
import type { Catchupv2Response, ChannelEvent, ReconcileResponse, ReconnectionMetadata, StepsPayload } from '../types';
|
|
7
|
+
import type { MetadataService } from '../metadata/metadata-service';
|
|
8
|
+
import { CatchupEventReason } from '../helpers/const';
|
|
9
|
+
import type AnalyticsHelper from '../analytics/analytics-helper';
|
|
9
10
|
import type { InternalError } from '../errors/internal-errors';
|
|
10
11
|
import type { ParticipantsService } from '../participants/participants-service';
|
|
11
12
|
import { type DocumentServiceInterface } from './interface-document-service';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/collab-provider",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.9.0",
|
|
4
4
|
"description": "A provider for collaborative editing.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -32,16 +32,16 @@
|
|
|
32
32
|
"./version-wrapper": "./src/version-wrapper.ts"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@atlaskit/adf-utils": "^19.
|
|
35
|
+
"@atlaskit/adf-utils": "^19.19.0",
|
|
36
36
|
"@atlaskit/analytics-gas-types": "^5.1.0",
|
|
37
37
|
"@atlaskit/analytics-listeners": "^9.0.0",
|
|
38
|
-
"@atlaskit/editor-common": "^100.
|
|
39
|
-
"@atlaskit/editor-json-transformer": "^8.
|
|
38
|
+
"@atlaskit/editor-common": "^100.5.0",
|
|
39
|
+
"@atlaskit/editor-json-transformer": "^8.24.0",
|
|
40
40
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
41
41
|
"@atlaskit/feature-gate-js-client": "^4.26.0",
|
|
42
42
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
43
|
-
"@atlaskit/prosemirror-collab": "^0.
|
|
44
|
-
"@atlaskit/react-ufo": "^3.
|
|
43
|
+
"@atlaskit/prosemirror-collab": "^0.15.0",
|
|
44
|
+
"@atlaskit/react-ufo": "^3.2.0",
|
|
45
45
|
"@atlaskit/ufo": "^0.4.0",
|
|
46
46
|
"@atlaskit/util-service-support": "^6.2.0",
|
|
47
47
|
"@babel/runtime": "^7.0.0",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@atlaskit/adf-schema": "^47.
|
|
68
|
+
"@atlaskit/adf-schema": "^47.6.0",
|
|
69
69
|
"@atlassian/feature-flags-test-utils": "^0.3.0",
|
|
70
70
|
"typescript": "~5.4.2"
|
|
71
71
|
},
|