@atlaskit/collab-provider 9.33.2 → 9.35.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/participants/participants-service.js +1 -6
- package/dist/cjs/provider/index.js +3 -0
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/participants/participants-service.js +1 -6
- package/dist/es2019/provider/index.js +3 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/participants/participants-service.js +1 -6
- package/dist/esm/provider/index.js +3 -0
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/provider/index.d.ts +1 -0
- package/dist/types-ts4.5/provider/index.d.ts +1 -0
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/collab-provider
|
|
2
2
|
|
|
3
|
+
## 9.35.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#122895](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/122895)
|
|
8
|
+
[`49b8c7658f3b5`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/49b8c7658f3b5) -
|
|
9
|
+
[ED-24173] bump @atlaskit/adf-schema to 40.3.0 and @atlassian/adf-schema-json to 1.18.0
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 9.34.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- [#122648](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/122648)
|
|
20
|
+
[`f2ccf293106d2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f2ccf293106d2) -
|
|
21
|
+
add getSessionId(): expose provider's sessionId through getter, fix onParticipantActivityAck
|
|
22
|
+
|
|
3
23
|
## 9.33.2
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
|
@@ -269,12 +269,7 @@ var ParticipantsService = exports.ParticipantsService = /*#__PURE__*/function ()
|
|
|
269
269
|
(0, _defineProperty2.default)(this, "onParticipantActivityAck", function (payload) {
|
|
270
270
|
try {
|
|
271
271
|
logger('Existing participants ack: ', payload.activity);
|
|
272
|
-
|
|
273
|
-
activity: payload.activity,
|
|
274
|
-
userId: _this.getPresenceData().userId,
|
|
275
|
-
sessionId: _this.getPresenceData().sessionId
|
|
276
|
-
};
|
|
277
|
-
_this.emit('activity:ack', _data2);
|
|
272
|
+
_this.emit('activity:ack', payload);
|
|
278
273
|
} catch (error) {
|
|
279
274
|
var _this$analyticsHelper9;
|
|
280
275
|
// We don't want to throw errors for Presence features as they tend to self-restore
|
|
@@ -266,6 +266,9 @@ var Provider = exports.Provider = /*#__PURE__*/function (_Emitter) {
|
|
|
266
266
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "getParticipants", function () {
|
|
267
267
|
return _this.participantsService.getParticipants();
|
|
268
268
|
});
|
|
269
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "getSessionId", function () {
|
|
270
|
+
return _this.sessionId;
|
|
271
|
+
});
|
|
269
272
|
_this.config = config;
|
|
270
273
|
_this.analyticsHelper = new _analyticsHelper.default(_this.config.documentAri, _this.config.analyticsClient, _this.config.getAnalyticsWebClient);
|
|
271
274
|
_this.channel = new _channel.Channel(config, _this.analyticsHelper);
|
|
@@ -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.
|
|
8
|
+
var version = exports.version = "9.35.0";
|
|
9
9
|
var nextMajorVersion = exports.nextMajorVersion = function nextMajorVersion() {
|
|
10
10
|
return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
|
|
11
11
|
};
|
|
@@ -218,12 +218,7 @@ export class ParticipantsService {
|
|
|
218
218
|
_defineProperty(this, "onParticipantActivityAck", payload => {
|
|
219
219
|
try {
|
|
220
220
|
logger('Existing participants ack: ', payload.activity);
|
|
221
|
-
|
|
222
|
-
activity: payload.activity,
|
|
223
|
-
userId: this.getPresenceData().userId,
|
|
224
|
-
sessionId: this.getPresenceData().sessionId
|
|
225
|
-
};
|
|
226
|
-
this.emit('activity:ack', data);
|
|
221
|
+
this.emit('activity:ack', payload);
|
|
227
222
|
} catch (error) {
|
|
228
223
|
var _this$analyticsHelper9;
|
|
229
224
|
// We don't want to throw errors for Presence features as they tend to self-restore
|
|
@@ -219,6 +219,9 @@ export class Provider extends Emitter {
|
|
|
219
219
|
_defineProperty(this, "getParticipants", () => {
|
|
220
220
|
return this.participantsService.getParticipants();
|
|
221
221
|
});
|
|
222
|
+
_defineProperty(this, "getSessionId", () => {
|
|
223
|
+
return this.sessionId;
|
|
224
|
+
});
|
|
222
225
|
this.config = config;
|
|
223
226
|
this.analyticsHelper = new AnalyticsHelper(this.config.documentAri, this.config.analyticsClient, this.config.getAnalyticsWebClient);
|
|
224
227
|
this.channel = new Channel(config, this.analyticsHelper);
|
|
@@ -262,12 +262,7 @@ export var ParticipantsService = /*#__PURE__*/function () {
|
|
|
262
262
|
_defineProperty(this, "onParticipantActivityAck", function (payload) {
|
|
263
263
|
try {
|
|
264
264
|
logger('Existing participants ack: ', payload.activity);
|
|
265
|
-
|
|
266
|
-
activity: payload.activity,
|
|
267
|
-
userId: _this.getPresenceData().userId,
|
|
268
|
-
sessionId: _this.getPresenceData().sessionId
|
|
269
|
-
};
|
|
270
|
-
_this.emit('activity:ack', _data2);
|
|
265
|
+
_this.emit('activity:ack', payload);
|
|
271
266
|
} catch (error) {
|
|
272
267
|
var _this$analyticsHelper9;
|
|
273
268
|
// We don't want to throw errors for Presence features as they tend to self-restore
|
|
@@ -259,6 +259,9 @@ export var Provider = /*#__PURE__*/function (_Emitter) {
|
|
|
259
259
|
_defineProperty(_assertThisInitialized(_this), "getParticipants", function () {
|
|
260
260
|
return _this.participantsService.getParticipants();
|
|
261
261
|
});
|
|
262
|
+
_defineProperty(_assertThisInitialized(_this), "getSessionId", function () {
|
|
263
|
+
return _this.sessionId;
|
|
264
|
+
});
|
|
262
265
|
_this.config = config;
|
|
263
266
|
_this.analyticsHelper = new AnalyticsHelper(_this.config.documentAri, _this.config.analyticsClient, _this.config.getAnalyticsWebClient);
|
|
264
267
|
_this.channel = new Channel(config, _this.analyticsHelper);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/collab-provider",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.35.0",
|
|
4
4
|
"description": "A provider for collaborative editing.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@atlaskit/analytics-gas-types": "^5.1.0",
|
|
41
41
|
"@atlaskit/analytics-listeners": "^8.10.0",
|
|
42
|
-
"@atlaskit/editor-common": "^86.
|
|
43
|
-
"@atlaskit/editor-json-transformer": "^8.
|
|
42
|
+
"@atlaskit/editor-common": "^86.7.0",
|
|
43
|
+
"@atlaskit/editor-json-transformer": "^8.16.0",
|
|
44
44
|
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
45
45
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
46
|
-
"@atlaskit/prosemirror-collab": "^0.
|
|
46
|
+
"@atlaskit/prosemirror-collab": "^0.7.0",
|
|
47
47
|
"@atlaskit/ufo": "^0.2.0",
|
|
48
48
|
"@atlaskit/util-service-support": "^6.2.0",
|
|
49
49
|
"@babel/runtime": "^7.0.0",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"@atlaskit/adf-schema": "^
|
|
69
|
+
"@atlaskit/adf-schema": "^40.3.0",
|
|
70
70
|
"@atlassian/feature-flags-test-utils": "^0.2.0",
|
|
71
71
|
"typescript": "~5.4.2"
|
|
72
72
|
},
|