@atlaskit/collab-provider 9.26.0 → 9.26.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 +13 -0
- package/dist/cjs/document/document-service.js +24 -16
- package/dist/cjs/provider/index.js +2 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/document/document-service.js +17 -1
- package/dist/es2019/provider/index.js +2 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/document/document-service.js +24 -16
- package/dist/esm/provider/index.js +2 -2
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/document/document-service.d.ts +2 -1
- package/dist/types-ts4.5/document/document-service.d.ts +2 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/collab-provider
|
|
2
2
|
|
|
3
|
+
## 9.26.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#90942](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/90942) [`30e989b2e4bb`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/30e989b2e4bb) - catchupV2 is a noop when document is locked
|
|
8
|
+
|
|
9
|
+
## 9.26.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#91106](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91106) [`b6ffa30186b9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b6ffa30186b9) - Bump ADF-schema package to version 35.0.0
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 9.26.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
|
@@ -47,11 +47,11 @@ var DocumentService = exports.DocumentService = /*#__PURE__*/function () {
|
|
|
47
47
|
* @param metadataService
|
|
48
48
|
* @param enableErrorOnFailedDocumentApply - Enable failed document update exceptions.
|
|
49
49
|
*/
|
|
50
|
-
function DocumentService(participantsService, analyticsHelper, fetchCatchup, fetchCatchupv2, fetchReconcile, providerEmitCallback, broadcast, getUserId, onErrorHandled, metadataService) {
|
|
50
|
+
function DocumentService(participantsService, analyticsHelper, fetchCatchup, fetchCatchupv2, fetchReconcile, providerEmitCallback, broadcast, getUserId, onErrorHandled, metadataService, isNameSpaceLocked) {
|
|
51
51
|
var _this = this;
|
|
52
|
-
var enableErrorOnFailedDocumentApply = arguments.length >
|
|
53
|
-
var reconcileOnRecovery = arguments.length >
|
|
54
|
-
var options = arguments.length >
|
|
52
|
+
var enableErrorOnFailedDocumentApply = arguments.length > 11 && arguments[11] !== undefined ? arguments[11] : false;
|
|
53
|
+
var reconcileOnRecovery = arguments.length > 12 && arguments[12] !== undefined ? arguments[12] : false;
|
|
54
|
+
var options = arguments.length > 13 && arguments[13] !== undefined ? arguments[13] : {
|
|
55
55
|
__livePage: false
|
|
56
56
|
};
|
|
57
57
|
(0, _classCallCheck2.default)(this, DocumentService);
|
|
@@ -155,9 +155,16 @@ var DocumentService = exports.DocumentService = /*#__PURE__*/function () {
|
|
|
155
155
|
logger("Queue is paused. Aborting.");
|
|
156
156
|
return _context2.abrupt("return");
|
|
157
157
|
case 4:
|
|
158
|
+
if (!_this.isNameSpaceLocked()) {
|
|
159
|
+
_context2.next = 7;
|
|
160
|
+
break;
|
|
161
|
+
}
|
|
162
|
+
logger("catchupv2: Document is locked. Aborting.");
|
|
163
|
+
return _context2.abrupt("return");
|
|
164
|
+
case 7:
|
|
158
165
|
_this.stepQueue.pauseQueue();
|
|
159
|
-
_context2.prev =
|
|
160
|
-
_context2.next =
|
|
166
|
+
_context2.prev = 8;
|
|
167
|
+
_context2.next = 11;
|
|
161
168
|
return (0, _catchupv.catchupv2)({
|
|
162
169
|
getCurrentPmVersion: _this.getCurrentPmVersion,
|
|
163
170
|
fetchCatchupv2: _this.fetchCatchupv2,
|
|
@@ -166,32 +173,32 @@ var DocumentService = exports.DocumentService = /*#__PURE__*/function () {
|
|
|
166
173
|
clientId: _this.clientId,
|
|
167
174
|
onStepsAdded: _this.onStepsAdded
|
|
168
175
|
});
|
|
169
|
-
case
|
|
176
|
+
case 11:
|
|
170
177
|
latency = new Date().getTime() - start;
|
|
171
178
|
(_this$analyticsHelper3 = _this.analyticsHelper) === null || _this$analyticsHelper3 === void 0 || _this$analyticsHelper3.sendActionEvent(_const.EVENT_ACTION.CATCHUP, _const.EVENT_STATUS.SUCCESS, {
|
|
172
179
|
latency: latency
|
|
173
180
|
});
|
|
174
|
-
_context2.next =
|
|
181
|
+
_context2.next = 19;
|
|
175
182
|
break;
|
|
176
|
-
case
|
|
177
|
-
_context2.prev =
|
|
178
|
-
_context2.t0 = _context2["catch"](
|
|
183
|
+
case 15:
|
|
184
|
+
_context2.prev = 15;
|
|
185
|
+
_context2.t0 = _context2["catch"](8);
|
|
179
186
|
_latency2 = new Date().getTime() - start;
|
|
180
187
|
(_this$analyticsHelper4 = _this.analyticsHelper) === null || _this$analyticsHelper4 === void 0 || _this$analyticsHelper4.sendActionEvent(_const.EVENT_ACTION.CATCHUP, _const.EVENT_STATUS.FAILURE, {
|
|
181
188
|
latency: _latency2
|
|
182
189
|
});
|
|
183
|
-
case
|
|
184
|
-
_context2.prev =
|
|
190
|
+
case 19:
|
|
191
|
+
_context2.prev = 19;
|
|
185
192
|
_this.stepQueue.resumeQueue();
|
|
186
193
|
_this.processQueue();
|
|
187
194
|
_this.sendStepsFromCurrentState(); // this will eventually retry catchup as it calls throttledCommitStep which will either catchup on onStepsAdded or onErrorHandled
|
|
188
195
|
_this.stepRejectCounter = 0;
|
|
189
|
-
return _context2.finish(
|
|
190
|
-
case
|
|
196
|
+
return _context2.finish(19);
|
|
197
|
+
case 25:
|
|
191
198
|
case "end":
|
|
192
199
|
return _context2.stop();
|
|
193
200
|
}
|
|
194
|
-
}, _callee2, null, [[
|
|
201
|
+
}, _callee2, null, [[8, 15, 19, 25]]);
|
|
195
202
|
})));
|
|
196
203
|
(0, _defineProperty2.default)(this, "getCurrentPmVersion", function () {
|
|
197
204
|
var _this$getState;
|
|
@@ -653,6 +660,7 @@ var DocumentService = exports.DocumentService = /*#__PURE__*/function () {
|
|
|
653
660
|
this.getUserId = getUserId;
|
|
654
661
|
this.onErrorHandled = onErrorHandled;
|
|
655
662
|
this.metadataService = metadataService;
|
|
663
|
+
this.isNameSpaceLocked = isNameSpaceLocked;
|
|
656
664
|
this.enableErrorOnFailedDocumentApply = enableErrorOnFailedDocumentApply;
|
|
657
665
|
this.reconcileOnRecovery = reconcileOnRecovery;
|
|
658
666
|
this.options = options;
|
|
@@ -274,12 +274,12 @@ var Provider = exports.Provider = /*#__PURE__*/function (_Emitter) {
|
|
|
274
274
|
_this.participantsService = new _participantsService.ParticipantsService(_this.analyticsHelper, undefined, _this.emitCallback, _this.config.getUser, _this.channel.broadcast, _this.channel.sendPresenceJoined, _this.getPresenceData, _this.setUserId);
|
|
275
275
|
_this.metadataService = new _metadataService.MetadataService(_this.emitCallback, _this.channel.sendMetadata);
|
|
276
276
|
var reconcileOnRecovery = (0, _featureFlags.getCollabProviderFeatureFlag)('reconcileOnRecovery', _this.config.featureFlags);
|
|
277
|
+
_this.namespaceService = new _namespaceService.NamespaceService();
|
|
277
278
|
_this.documentService = new _documentService.DocumentService(_this.participantsService, _this.analyticsHelper, _this.channel.fetchCatchup, _this.channel.fetchCatchupv2, _this.channel.fetchReconcile, _this.emitCallback, _this.channel.broadcast, function () {
|
|
278
279
|
return _this.userId;
|
|
279
|
-
}, _this.onErrorHandled, _this.metadataService, _this.config.enableErrorOnFailedDocumentApply, reconcileOnRecovery, {
|
|
280
|
+
}, _this.onErrorHandled, _this.metadataService, _this.namespaceService.getIsNamespaceLocked.bind(_this.namespaceService), _this.config.enableErrorOnFailedDocumentApply, reconcileOnRecovery, {
|
|
280
281
|
__livePage: _this.config.__livePage || false
|
|
281
282
|
});
|
|
282
|
-
_this.namespaceService = new _namespaceService.NamespaceService();
|
|
283
283
|
_this.api = new _api.Api(config, _this.documentService, _this.channel);
|
|
284
284
|
_this.sendStepsTimer = setInterval(function () {
|
|
285
285
|
logger('Intervally sendStepsFromCurrentState');
|
|
@@ -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 = "9.26.
|
|
8
|
+
var version = exports.version = "9.26.2";
|
|
9
9
|
var nextMajorVersion = exports.nextMajorVersion = function nextMajorVersion() {
|
|
10
10
|
return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
|
|
11
11
|
};
|
|
@@ -34,7 +34,7 @@ export class DocumentService {
|
|
|
34
34
|
* @param metadataService
|
|
35
35
|
* @param enableErrorOnFailedDocumentApply - Enable failed document update exceptions.
|
|
36
36
|
*/
|
|
37
|
-
constructor(participantsService, analyticsHelper, fetchCatchup, fetchCatchupv2, fetchReconcile, providerEmitCallback, broadcast, getUserId, onErrorHandled, metadataService, enableErrorOnFailedDocumentApply = false, reconcileOnRecovery = false, options = {
|
|
37
|
+
constructor(participantsService, analyticsHelper, fetchCatchup, fetchCatchupv2, fetchReconcile, providerEmitCallback, broadcast, getUserId, onErrorHandled, metadataService, isNameSpaceLocked, enableErrorOnFailedDocumentApply = false, reconcileOnRecovery = false, options = {
|
|
38
38
|
__livePage: false
|
|
39
39
|
}) {
|
|
40
40
|
// Fires analytics to editor when collab editor cannot sync up
|
|
@@ -111,6 +111,21 @@ export class DocumentService {
|
|
|
111
111
|
logger(`Queue is paused. Aborting.`);
|
|
112
112
|
return;
|
|
113
113
|
}
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* If the database is in a transitionary state (i.e locked),
|
|
117
|
+
* it likely that another user may already be in the process of catching up.
|
|
118
|
+
*
|
|
119
|
+
* If multiple users are trying to catch up at the same time, it can lead to
|
|
120
|
+
* the database being stuck in a transitionary state due to duplicated page recovery requests.
|
|
121
|
+
* We don't wanna be stuck in a transitionary state as that will cause issues with
|
|
122
|
+
* content reconciliation and other operations.
|
|
123
|
+
*/
|
|
124
|
+
// check if the document is locked -> noop
|
|
125
|
+
if (this.isNameSpaceLocked()) {
|
|
126
|
+
logger(`catchupv2: Document is locked. Aborting.`);
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
114
129
|
this.stepQueue.pauseQueue();
|
|
115
130
|
try {
|
|
116
131
|
var _this$analyticsHelper3;
|
|
@@ -517,6 +532,7 @@ export class DocumentService {
|
|
|
517
532
|
this.getUserId = getUserId;
|
|
518
533
|
this.onErrorHandled = onErrorHandled;
|
|
519
534
|
this.metadataService = metadataService;
|
|
535
|
+
this.isNameSpaceLocked = isNameSpaceLocked;
|
|
520
536
|
this.enableErrorOnFailedDocumentApply = enableErrorOnFailedDocumentApply;
|
|
521
537
|
this.reconcileOnRecovery = reconcileOnRecovery;
|
|
522
538
|
this.options = options;
|
|
@@ -229,10 +229,10 @@ export class Provider extends Emitter {
|
|
|
229
229
|
this.participantsService = new ParticipantsService(this.analyticsHelper, undefined, this.emitCallback, this.config.getUser, this.channel.broadcast, this.channel.sendPresenceJoined, this.getPresenceData, this.setUserId);
|
|
230
230
|
this.metadataService = new MetadataService(this.emitCallback, this.channel.sendMetadata);
|
|
231
231
|
const reconcileOnRecovery = getCollabProviderFeatureFlag('reconcileOnRecovery', this.config.featureFlags);
|
|
232
|
-
this.
|
|
232
|
+
this.namespaceService = new NamespaceService();
|
|
233
|
+
this.documentService = new DocumentService(this.participantsService, this.analyticsHelper, this.channel.fetchCatchup, this.channel.fetchCatchupv2, this.channel.fetchReconcile, this.emitCallback, this.channel.broadcast, () => this.userId, this.onErrorHandled, this.metadataService, this.namespaceService.getIsNamespaceLocked.bind(this.namespaceService), this.config.enableErrorOnFailedDocumentApply, reconcileOnRecovery, {
|
|
233
234
|
__livePage: this.config.__livePage || false
|
|
234
235
|
});
|
|
235
|
-
this.namespaceService = new NamespaceService();
|
|
236
236
|
this.api = new Api(config, this.documentService, this.channel);
|
|
237
237
|
this.sendStepsTimer = setInterval(() => {
|
|
238
238
|
logger('Intervally sendStepsFromCurrentState');
|
|
@@ -40,11 +40,11 @@ export var DocumentService = /*#__PURE__*/function () {
|
|
|
40
40
|
* @param metadataService
|
|
41
41
|
* @param enableErrorOnFailedDocumentApply - Enable failed document update exceptions.
|
|
42
42
|
*/
|
|
43
|
-
function DocumentService(participantsService, analyticsHelper, fetchCatchup, fetchCatchupv2, fetchReconcile, providerEmitCallback, broadcast, getUserId, onErrorHandled, metadataService) {
|
|
43
|
+
function DocumentService(participantsService, analyticsHelper, fetchCatchup, fetchCatchupv2, fetchReconcile, providerEmitCallback, broadcast, getUserId, onErrorHandled, metadataService, isNameSpaceLocked) {
|
|
44
44
|
var _this = this;
|
|
45
|
-
var enableErrorOnFailedDocumentApply = arguments.length >
|
|
46
|
-
var reconcileOnRecovery = arguments.length >
|
|
47
|
-
var options = arguments.length >
|
|
45
|
+
var enableErrorOnFailedDocumentApply = arguments.length > 11 && arguments[11] !== undefined ? arguments[11] : false;
|
|
46
|
+
var reconcileOnRecovery = arguments.length > 12 && arguments[12] !== undefined ? arguments[12] : false;
|
|
47
|
+
var options = arguments.length > 13 && arguments[13] !== undefined ? arguments[13] : {
|
|
48
48
|
__livePage: false
|
|
49
49
|
};
|
|
50
50
|
_classCallCheck(this, DocumentService);
|
|
@@ -148,9 +148,16 @@ export var DocumentService = /*#__PURE__*/function () {
|
|
|
148
148
|
logger("Queue is paused. Aborting.");
|
|
149
149
|
return _context2.abrupt("return");
|
|
150
150
|
case 4:
|
|
151
|
+
if (!_this.isNameSpaceLocked()) {
|
|
152
|
+
_context2.next = 7;
|
|
153
|
+
break;
|
|
154
|
+
}
|
|
155
|
+
logger("catchupv2: Document is locked. Aborting.");
|
|
156
|
+
return _context2.abrupt("return");
|
|
157
|
+
case 7:
|
|
151
158
|
_this.stepQueue.pauseQueue();
|
|
152
|
-
_context2.prev =
|
|
153
|
-
_context2.next =
|
|
159
|
+
_context2.prev = 8;
|
|
160
|
+
_context2.next = 11;
|
|
154
161
|
return catchupv2({
|
|
155
162
|
getCurrentPmVersion: _this.getCurrentPmVersion,
|
|
156
163
|
fetchCatchupv2: _this.fetchCatchupv2,
|
|
@@ -159,32 +166,32 @@ export var DocumentService = /*#__PURE__*/function () {
|
|
|
159
166
|
clientId: _this.clientId,
|
|
160
167
|
onStepsAdded: _this.onStepsAdded
|
|
161
168
|
});
|
|
162
|
-
case
|
|
169
|
+
case 11:
|
|
163
170
|
latency = new Date().getTime() - start;
|
|
164
171
|
(_this$analyticsHelper3 = _this.analyticsHelper) === null || _this$analyticsHelper3 === void 0 || _this$analyticsHelper3.sendActionEvent(EVENT_ACTION.CATCHUP, EVENT_STATUS.SUCCESS, {
|
|
165
172
|
latency: latency
|
|
166
173
|
});
|
|
167
|
-
_context2.next =
|
|
174
|
+
_context2.next = 19;
|
|
168
175
|
break;
|
|
169
|
-
case
|
|
170
|
-
_context2.prev =
|
|
171
|
-
_context2.t0 = _context2["catch"](
|
|
176
|
+
case 15:
|
|
177
|
+
_context2.prev = 15;
|
|
178
|
+
_context2.t0 = _context2["catch"](8);
|
|
172
179
|
_latency2 = new Date().getTime() - start;
|
|
173
180
|
(_this$analyticsHelper4 = _this.analyticsHelper) === null || _this$analyticsHelper4 === void 0 || _this$analyticsHelper4.sendActionEvent(EVENT_ACTION.CATCHUP, EVENT_STATUS.FAILURE, {
|
|
174
181
|
latency: _latency2
|
|
175
182
|
});
|
|
176
|
-
case
|
|
177
|
-
_context2.prev =
|
|
183
|
+
case 19:
|
|
184
|
+
_context2.prev = 19;
|
|
178
185
|
_this.stepQueue.resumeQueue();
|
|
179
186
|
_this.processQueue();
|
|
180
187
|
_this.sendStepsFromCurrentState(); // this will eventually retry catchup as it calls throttledCommitStep which will either catchup on onStepsAdded or onErrorHandled
|
|
181
188
|
_this.stepRejectCounter = 0;
|
|
182
|
-
return _context2.finish(
|
|
183
|
-
case
|
|
189
|
+
return _context2.finish(19);
|
|
190
|
+
case 25:
|
|
184
191
|
case "end":
|
|
185
192
|
return _context2.stop();
|
|
186
193
|
}
|
|
187
|
-
}, _callee2, null, [[
|
|
194
|
+
}, _callee2, null, [[8, 15, 19, 25]]);
|
|
188
195
|
})));
|
|
189
196
|
_defineProperty(this, "getCurrentPmVersion", function () {
|
|
190
197
|
var _this$getState;
|
|
@@ -646,6 +653,7 @@ export var DocumentService = /*#__PURE__*/function () {
|
|
|
646
653
|
this.getUserId = getUserId;
|
|
647
654
|
this.onErrorHandled = onErrorHandled;
|
|
648
655
|
this.metadataService = metadataService;
|
|
656
|
+
this.isNameSpaceLocked = isNameSpaceLocked;
|
|
649
657
|
this.enableErrorOnFailedDocumentApply = enableErrorOnFailedDocumentApply;
|
|
650
658
|
this.reconcileOnRecovery = reconcileOnRecovery;
|
|
651
659
|
this.options = options;
|
|
@@ -267,12 +267,12 @@ export var Provider = /*#__PURE__*/function (_Emitter) {
|
|
|
267
267
|
_this.participantsService = new ParticipantsService(_this.analyticsHelper, undefined, _this.emitCallback, _this.config.getUser, _this.channel.broadcast, _this.channel.sendPresenceJoined, _this.getPresenceData, _this.setUserId);
|
|
268
268
|
_this.metadataService = new MetadataService(_this.emitCallback, _this.channel.sendMetadata);
|
|
269
269
|
var reconcileOnRecovery = getCollabProviderFeatureFlag('reconcileOnRecovery', _this.config.featureFlags);
|
|
270
|
+
_this.namespaceService = new NamespaceService();
|
|
270
271
|
_this.documentService = new DocumentService(_this.participantsService, _this.analyticsHelper, _this.channel.fetchCatchup, _this.channel.fetchCatchupv2, _this.channel.fetchReconcile, _this.emitCallback, _this.channel.broadcast, function () {
|
|
271
272
|
return _this.userId;
|
|
272
|
-
}, _this.onErrorHandled, _this.metadataService, _this.config.enableErrorOnFailedDocumentApply, reconcileOnRecovery, {
|
|
273
|
+
}, _this.onErrorHandled, _this.metadataService, _this.namespaceService.getIsNamespaceLocked.bind(_this.namespaceService), _this.config.enableErrorOnFailedDocumentApply, reconcileOnRecovery, {
|
|
273
274
|
__livePage: _this.config.__livePage || false
|
|
274
275
|
});
|
|
275
|
-
_this.namespaceService = new NamespaceService();
|
|
276
276
|
_this.api = new Api(config, _this.documentService, _this.channel);
|
|
277
277
|
_this.sendStepsTimer = setInterval(function () {
|
|
278
278
|
logger('Intervally sendStepsFromCurrentState');
|
|
@@ -19,6 +19,7 @@ export declare class DocumentService {
|
|
|
19
19
|
private getUserId;
|
|
20
20
|
private onErrorHandled;
|
|
21
21
|
private metadataService;
|
|
22
|
+
private isNameSpaceLocked;
|
|
22
23
|
private enableErrorOnFailedDocumentApply;
|
|
23
24
|
private reconcileOnRecovery;
|
|
24
25
|
private options;
|
|
@@ -43,7 +44,7 @@ export declare class DocumentService {
|
|
|
43
44
|
* @param metadataService
|
|
44
45
|
* @param enableErrorOnFailedDocumentApply - Enable failed document update exceptions.
|
|
45
46
|
*/
|
|
46
|
-
constructor(participantsService: ParticipantsService, analyticsHelper: AnalyticsHelper | undefined, fetchCatchup: (fromVersion: number, clientId: number | string | undefined) => Promise<CatchupResponse>, fetchCatchupv2: (fromVersion: number, clientId: number | string | undefined) => Promise<Catchupv2Response>, fetchReconcile: (currentStateDoc: string, reason: string) => Promise<ReconcileResponse>, providerEmitCallback: (evt: keyof CollabEvents, data: any) => void, broadcast: <K extends keyof ChannelEvent>(type: K, data: Omit<ChannelEvent[K], 'timestamp'>, callback?: Function) => void, getUserId: () => string | undefined, onErrorHandled: (error: InternalError) => void, metadataService: MetadataService, enableErrorOnFailedDocumentApply?: boolean, reconcileOnRecovery?: boolean, options?: {
|
|
47
|
+
constructor(participantsService: ParticipantsService, analyticsHelper: AnalyticsHelper | undefined, fetchCatchup: (fromVersion: number, clientId: number | string | undefined) => Promise<CatchupResponse>, fetchCatchupv2: (fromVersion: number, clientId: number | string | undefined) => Promise<Catchupv2Response>, fetchReconcile: (currentStateDoc: string, reason: string) => Promise<ReconcileResponse>, providerEmitCallback: (evt: keyof CollabEvents, data: any) => void, broadcast: <K extends keyof ChannelEvent>(type: K, data: Omit<ChannelEvent[K], 'timestamp'>, callback?: Function) => void, getUserId: () => string | undefined, onErrorHandled: (error: InternalError) => void, metadataService: MetadataService, isNameSpaceLocked: () => boolean, enableErrorOnFailedDocumentApply?: boolean, reconcileOnRecovery?: boolean, options?: {
|
|
47
48
|
__livePage: boolean;
|
|
48
49
|
});
|
|
49
50
|
/**
|
|
@@ -19,6 +19,7 @@ export declare class DocumentService {
|
|
|
19
19
|
private getUserId;
|
|
20
20
|
private onErrorHandled;
|
|
21
21
|
private metadataService;
|
|
22
|
+
private isNameSpaceLocked;
|
|
22
23
|
private enableErrorOnFailedDocumentApply;
|
|
23
24
|
private reconcileOnRecovery;
|
|
24
25
|
private options;
|
|
@@ -43,7 +44,7 @@ export declare class DocumentService {
|
|
|
43
44
|
* @param metadataService
|
|
44
45
|
* @param enableErrorOnFailedDocumentApply - Enable failed document update exceptions.
|
|
45
46
|
*/
|
|
46
|
-
constructor(participantsService: ParticipantsService, analyticsHelper: AnalyticsHelper | undefined, fetchCatchup: (fromVersion: number, clientId: number | string | undefined) => Promise<CatchupResponse>, fetchCatchupv2: (fromVersion: number, clientId: number | string | undefined) => Promise<Catchupv2Response>, fetchReconcile: (currentStateDoc: string, reason: string) => Promise<ReconcileResponse>, providerEmitCallback: (evt: keyof CollabEvents, data: any) => void, broadcast: <K extends keyof ChannelEvent>(type: K, data: Omit<ChannelEvent[K], 'timestamp'>, callback?: Function) => void, getUserId: () => string | undefined, onErrorHandled: (error: InternalError) => void, metadataService: MetadataService, enableErrorOnFailedDocumentApply?: boolean, reconcileOnRecovery?: boolean, options?: {
|
|
47
|
+
constructor(participantsService: ParticipantsService, analyticsHelper: AnalyticsHelper | undefined, fetchCatchup: (fromVersion: number, clientId: number | string | undefined) => Promise<CatchupResponse>, fetchCatchupv2: (fromVersion: number, clientId: number | string | undefined) => Promise<Catchupv2Response>, fetchReconcile: (currentStateDoc: string, reason: string) => Promise<ReconcileResponse>, providerEmitCallback: (evt: keyof CollabEvents, data: any) => void, broadcast: <K extends keyof ChannelEvent>(type: K, data: Omit<ChannelEvent[K], 'timestamp'>, callback?: Function) => void, getUserId: () => string | undefined, onErrorHandled: (error: InternalError) => void, metadataService: MetadataService, isNameSpaceLocked: () => boolean, enableErrorOnFailedDocumentApply?: boolean, reconcileOnRecovery?: boolean, options?: {
|
|
47
48
|
__livePage: boolean;
|
|
48
49
|
});
|
|
49
50
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/collab-provider",
|
|
3
|
-
"version": "9.26.
|
|
3
|
+
"version": "9.26.2",
|
|
4
4
|
"description": "A provider for collaborative editing.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@atlaskit/analytics-gas-types": "^5.1.0",
|
|
41
41
|
"@atlaskit/analytics-listeners": "^8.9.0",
|
|
42
|
-
"@atlaskit/editor-common": "^78.
|
|
42
|
+
"@atlaskit/editor-common": "^78.28.0",
|
|
43
43
|
"@atlaskit/editor-json-transformer": "^8.10.0",
|
|
44
44
|
"@atlaskit/editor-prosemirror": "3.0.0",
|
|
45
45
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"@atlaskit/adf-schema": "^35.
|
|
69
|
+
"@atlaskit/adf-schema": "^35.9.0",
|
|
70
70
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
71
71
|
"@atlassian/feature-flags-test-utils": "^0.2.0",
|
|
72
72
|
"typescript": "~5.4.2"
|