@atlaskit/collab-provider 18.2.0 → 18.2.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 +8 -0
- package/dist/cjs/participants/participants-service.js +6 -12
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/participants/participants-service.js +6 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/participants/participants-service.js +6 -12
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/participants/participants-service.d.ts +1 -1
- package/dist/types-ts4.5/participants/participants-service.d.ts +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/collab-provider
|
|
2
2
|
|
|
3
|
+
## 18.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`967cff1c14097`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/967cff1c14097) -
|
|
8
|
+
Add isolatedDeclarations: true to tsconfig.app.json and tsconfig.dev.json
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 18.2.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
|
@@ -35,6 +35,10 @@ var MULTI_COLLAB_MODE = exports.MULTI_COLLAB_MODE = 'collab';
|
|
|
35
35
|
* @param sendPresenceJoined Callback to Channel class
|
|
36
36
|
*/
|
|
37
37
|
var ParticipantsService = exports.ParticipantsService = /*#__PURE__*/function () {
|
|
38
|
+
// Initialized in the constructor body; declared here so the parameter
|
|
39
|
+
// can be optional without requiring the type to include `undefined`
|
|
40
|
+
// (avoids TS9025 under `--isolatedDeclarations`).
|
|
41
|
+
|
|
38
42
|
/**
|
|
39
43
|
* constructor
|
|
40
44
|
*
|
|
@@ -51,18 +55,8 @@ var ParticipantsService = exports.ParticipantsService = /*#__PURE__*/function ()
|
|
|
51
55
|
* @param fetchAnonymousAsset
|
|
52
56
|
* @example
|
|
53
57
|
*/
|
|
54
|
-
function ParticipantsService(analyticsHelper) {
|
|
58
|
+
function ParticipantsService(analyticsHelper, participantsState, emit, getUser, batchProps, channelBroadcast, sendPresenceJoined, getPresenceData, setUserId, getAIProviderActiveIds, fetchAnonymousAsset) {
|
|
55
59
|
var _this = this;
|
|
56
|
-
var participantsState = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new _participantsState.ParticipantsState();
|
|
57
|
-
var emit = arguments.length > 2 ? arguments[2] : undefined;
|
|
58
|
-
var getUser = arguments.length > 3 ? arguments[3] : undefined;
|
|
59
|
-
var batchProps = arguments.length > 4 ? arguments[4] : undefined;
|
|
60
|
-
var channelBroadcast = arguments.length > 5 ? arguments[5] : undefined;
|
|
61
|
-
var sendPresenceJoined = arguments.length > 6 ? arguments[6] : undefined;
|
|
62
|
-
var getPresenceData = arguments.length > 7 ? arguments[7] : undefined;
|
|
63
|
-
var setUserId = arguments.length > 8 ? arguments[8] : undefined;
|
|
64
|
-
var getAIProviderActiveIds = arguments.length > 9 ? arguments[9] : undefined;
|
|
65
|
-
var fetchAnonymousAsset = arguments.length > 10 ? arguments[10] : undefined;
|
|
66
60
|
(0, _classCallCheck2.default)(this, ParticipantsService);
|
|
67
61
|
(0, _defineProperty2.default)(this, "currentlyPollingFetchUsers", true);
|
|
68
62
|
(0, _defineProperty2.default)(this, "hasBatchFetchError", false);
|
|
@@ -736,7 +730,6 @@ var ParticipantsService = exports.ParticipantsService = /*#__PURE__*/function ()
|
|
|
736
730
|
return _this.participantsState.size() > 1 ? MULTI_COLLAB_MODE : SINGLE_COLLAB_MODE;
|
|
737
731
|
});
|
|
738
732
|
this.analyticsHelper = analyticsHelper;
|
|
739
|
-
this.participantsState = participantsState;
|
|
740
733
|
this.emit = emit;
|
|
741
734
|
this.getUser = getUser;
|
|
742
735
|
this.batchProps = batchProps;
|
|
@@ -746,6 +739,7 @@ var ParticipantsService = exports.ParticipantsService = /*#__PURE__*/function ()
|
|
|
746
739
|
this.setUserId = setUserId;
|
|
747
740
|
this.getAIProviderActiveIds = getAIProviderActiveIds;
|
|
748
741
|
this.fetchAnonymousAsset = fetchAnonymousAsset;
|
|
742
|
+
this.participantsState = participantsState !== null && participantsState !== void 0 ? participantsState : new _participantsState.ParticipantsState();
|
|
749
743
|
}
|
|
750
744
|
return (0, _createClass2.default)(ParticipantsService, [{
|
|
751
745
|
key: "emitTelepointersFromSteps",
|
|
@@ -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 = "
|
|
8
|
+
var version = exports.version = "0.0.0-development";
|
|
9
9
|
var nextMajorVersion = exports.nextMajorVersion = function nextMajorVersion() {
|
|
10
10
|
return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
|
|
11
11
|
};
|
|
@@ -22,6 +22,10 @@ export const MULTI_COLLAB_MODE = 'collab';
|
|
|
22
22
|
* @param sendPresenceJoined Callback to Channel class
|
|
23
23
|
*/
|
|
24
24
|
export class ParticipantsService {
|
|
25
|
+
// Initialized in the constructor body; declared here so the parameter
|
|
26
|
+
// can be optional without requiring the type to include `undefined`
|
|
27
|
+
// (avoids TS9025 under `--isolatedDeclarations`).
|
|
28
|
+
|
|
25
29
|
/**
|
|
26
30
|
* constructor
|
|
27
31
|
*
|
|
@@ -38,7 +42,7 @@ export class ParticipantsService {
|
|
|
38
42
|
* @param fetchAnonymousAsset
|
|
39
43
|
* @example
|
|
40
44
|
*/
|
|
41
|
-
constructor(analyticsHelper, participantsState
|
|
45
|
+
constructor(analyticsHelper, participantsState, emit, getUser, batchProps, channelBroadcast, sendPresenceJoined, getPresenceData, setUserId, getAIProviderActiveIds, fetchAnonymousAsset) {
|
|
42
46
|
_defineProperty(this, "currentlyPollingFetchUsers", true);
|
|
43
47
|
_defineProperty(this, "hasBatchFetchError", false);
|
|
44
48
|
_defineProperty(this, "sendPresenceActivityChanged", () => {
|
|
@@ -565,7 +569,6 @@ export class ParticipantsService {
|
|
|
565
569
|
return this.participantsState.size() > 1 ? MULTI_COLLAB_MODE : SINGLE_COLLAB_MODE;
|
|
566
570
|
});
|
|
567
571
|
this.analyticsHelper = analyticsHelper;
|
|
568
|
-
this.participantsState = participantsState;
|
|
569
572
|
this.emit = emit;
|
|
570
573
|
this.getUser = getUser;
|
|
571
574
|
this.batchProps = batchProps;
|
|
@@ -575,6 +578,7 @@ export class ParticipantsService {
|
|
|
575
578
|
this.setUserId = setUserId;
|
|
576
579
|
this.getAIProviderActiveIds = getAIProviderActiveIds;
|
|
577
580
|
this.fetchAnonymousAsset = fetchAnonymousAsset;
|
|
581
|
+
this.participantsState = participantsState !== null && participantsState !== void 0 ? participantsState : new ParticipantsState();
|
|
578
582
|
}
|
|
579
583
|
/**
|
|
580
584
|
* Called on receiving steps, emits each step's telepointer
|
|
@@ -28,6 +28,10 @@ export var MULTI_COLLAB_MODE = 'collab';
|
|
|
28
28
|
* @param sendPresenceJoined Callback to Channel class
|
|
29
29
|
*/
|
|
30
30
|
export var ParticipantsService = /*#__PURE__*/function () {
|
|
31
|
+
// Initialized in the constructor body; declared here so the parameter
|
|
32
|
+
// can be optional without requiring the type to include `undefined`
|
|
33
|
+
// (avoids TS9025 under `--isolatedDeclarations`).
|
|
34
|
+
|
|
31
35
|
/**
|
|
32
36
|
* constructor
|
|
33
37
|
*
|
|
@@ -44,18 +48,8 @@ export var ParticipantsService = /*#__PURE__*/function () {
|
|
|
44
48
|
* @param fetchAnonymousAsset
|
|
45
49
|
* @example
|
|
46
50
|
*/
|
|
47
|
-
function ParticipantsService(analyticsHelper) {
|
|
51
|
+
function ParticipantsService(analyticsHelper, participantsState, emit, getUser, batchProps, channelBroadcast, sendPresenceJoined, getPresenceData, setUserId, getAIProviderActiveIds, fetchAnonymousAsset) {
|
|
48
52
|
var _this = this;
|
|
49
|
-
var participantsState = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new ParticipantsState();
|
|
50
|
-
var emit = arguments.length > 2 ? arguments[2] : undefined;
|
|
51
|
-
var getUser = arguments.length > 3 ? arguments[3] : undefined;
|
|
52
|
-
var batchProps = arguments.length > 4 ? arguments[4] : undefined;
|
|
53
|
-
var channelBroadcast = arguments.length > 5 ? arguments[5] : undefined;
|
|
54
|
-
var sendPresenceJoined = arguments.length > 6 ? arguments[6] : undefined;
|
|
55
|
-
var getPresenceData = arguments.length > 7 ? arguments[7] : undefined;
|
|
56
|
-
var setUserId = arguments.length > 8 ? arguments[8] : undefined;
|
|
57
|
-
var getAIProviderActiveIds = arguments.length > 9 ? arguments[9] : undefined;
|
|
58
|
-
var fetchAnonymousAsset = arguments.length > 10 ? arguments[10] : undefined;
|
|
59
53
|
_classCallCheck(this, ParticipantsService);
|
|
60
54
|
_defineProperty(this, "currentlyPollingFetchUsers", true);
|
|
61
55
|
_defineProperty(this, "hasBatchFetchError", false);
|
|
@@ -729,7 +723,6 @@ export var ParticipantsService = /*#__PURE__*/function () {
|
|
|
729
723
|
return _this.participantsState.size() > 1 ? MULTI_COLLAB_MODE : SINGLE_COLLAB_MODE;
|
|
730
724
|
});
|
|
731
725
|
this.analyticsHelper = analyticsHelper;
|
|
732
|
-
this.participantsState = participantsState;
|
|
733
726
|
this.emit = emit;
|
|
734
727
|
this.getUser = getUser;
|
|
735
728
|
this.batchProps = batchProps;
|
|
@@ -739,6 +732,7 @@ export var ParticipantsService = /*#__PURE__*/function () {
|
|
|
739
732
|
this.setUserId = setUserId;
|
|
740
733
|
this.getAIProviderActiveIds = getAIProviderActiveIds;
|
|
741
734
|
this.fetchAnonymousAsset = fetchAnonymousAsset;
|
|
735
|
+
this.participantsState = participantsState !== null && participantsState !== void 0 ? participantsState : new ParticipantsState();
|
|
742
736
|
}
|
|
743
737
|
return _createClass(ParticipantsService, [{
|
|
744
738
|
key: "emitTelepointersFromSteps",
|
|
@@ -17,7 +17,6 @@ export declare const MULTI_COLLAB_MODE = "collab";
|
|
|
17
17
|
*/
|
|
18
18
|
export declare class ParticipantsService {
|
|
19
19
|
private analyticsHelper;
|
|
20
|
-
private participantsState;
|
|
21
20
|
private emit;
|
|
22
21
|
private getUser;
|
|
23
22
|
private batchProps;
|
|
@@ -32,6 +31,7 @@ export declare class ParticipantsService {
|
|
|
32
31
|
private presenceFetchTimeout;
|
|
33
32
|
private currentlyPollingFetchUsers;
|
|
34
33
|
private hasBatchFetchError;
|
|
34
|
+
private participantsState;
|
|
35
35
|
/**
|
|
36
36
|
* constructor
|
|
37
37
|
*
|
|
@@ -17,7 +17,6 @@ export declare const MULTI_COLLAB_MODE = "collab";
|
|
|
17
17
|
*/
|
|
18
18
|
export declare class ParticipantsService {
|
|
19
19
|
private analyticsHelper;
|
|
20
|
-
private participantsState;
|
|
21
20
|
private emit;
|
|
22
21
|
private getUser;
|
|
23
22
|
private batchProps;
|
|
@@ -32,6 +31,7 @@ export declare class ParticipantsService {
|
|
|
32
31
|
private presenceFetchTimeout;
|
|
33
32
|
private currentlyPollingFetchUsers;
|
|
34
33
|
private hasBatchFetchError;
|
|
34
|
+
private participantsState;
|
|
35
35
|
/**
|
|
36
36
|
* constructor
|
|
37
37
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/collab-provider",
|
|
3
|
-
"version": "18.2.
|
|
3
|
+
"version": "18.2.1",
|
|
4
4
|
"description": "A provider for collaborative editing.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
38
38
|
"@atlaskit/prosemirror-collab": "^0.22.0",
|
|
39
39
|
"@atlaskit/react-ufo": "^5.19.0",
|
|
40
|
-
"@atlaskit/tmp-editor-statsig": "^77.
|
|
40
|
+
"@atlaskit/tmp-editor-statsig": "^77.2.0",
|
|
41
41
|
"@atlaskit/ufo": "^0.4.0",
|
|
42
42
|
"@atlaskit/util-service-support": "^6.3.0",
|
|
43
43
|
"@babel/runtime": "^7.0.0",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@atlaskit/adf-schema": "^52.9.0",
|
|
67
67
|
"@atlassian/a11y-jest-testing": "^0.11.0",
|
|
68
|
-
"@atlassian/feature-flags-test-utils": "^1.
|
|
68
|
+
"@atlassian/feature-flags-test-utils": "^1.1.0"
|
|
69
69
|
},
|
|
70
70
|
"platform-feature-flags": {
|
|
71
71
|
"platform-editor-presence-websocket-only": {
|
|
@@ -76,6 +76,6 @@
|
|
|
76
76
|
}
|
|
77
77
|
},
|
|
78
78
|
"peerDependencies": {
|
|
79
|
-
"@atlaskit/editor-common": "^114.
|
|
79
|
+
"@atlaskit/editor-common": "^114.25.0"
|
|
80
80
|
}
|
|
81
81
|
}
|