@atlaskit/collab-provider 31.0.2 → 31.0.4
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 +15 -0
- package/dist/cjs/participants/participants-service.js +2 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/participants/participants-service.js +2 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/participants/participants-service.js +2 -2
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/participants/participants-service.d.ts +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/collab-provider
|
|
2
2
|
|
|
3
|
+
## 31.0.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 31.0.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`84d66ad0f47b2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/84d66ad0f47b2) -
|
|
14
|
+
Retain agents for 30 seconds active followed by five minutes inactive when
|
|
15
|
+
`platform_move_presence_agents` is enabled.
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 31.0.2
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -31,7 +31,7 @@ var MULTI_COLLAB_MODE = exports.MULTI_COLLAB_MODE = 'collab';
|
|
|
31
31
|
// remote agent-authored steps. Reset on each new step for that agent.
|
|
32
32
|
// NOTE: temporary/demonstration lifecycle — long-term expiry may move to NCS.
|
|
33
33
|
var AGENT_PRESENCE_INACTIVE_MS = exports.AGENT_PRESENCE_INACTIVE_MS = 30 * 1000; // 30 seconds
|
|
34
|
-
var AGENT_PRESENCE_TTL_MS = exports.AGENT_PRESENCE_TTL_MS = 5 * 60 * 1000;
|
|
34
|
+
var AGENT_PRESENCE_TTL_MS = exports.AGENT_PRESENCE_TTL_MS = AGENT_PRESENCE_INACTIVE_MS + 5 * 60 * 1000;
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* This service is responsible for handling presence and participant events, as well as sending them on to the editor or NCS.
|
|
@@ -180,7 +180,7 @@ var ParticipantsService = exports.ParticipantsService = /*#__PURE__*/function ()
|
|
|
180
180
|
});
|
|
181
181
|
/**
|
|
182
182
|
* (Re)starts the sliding expiry timer for an agent participant. The enriched lifecycle retains
|
|
183
|
-
* agents for five minutes
|
|
183
|
+
* agents for 30 seconds active plus five minutes inactive; the legacy lifecycle removes at 30 seconds.
|
|
184
184
|
*/
|
|
185
185
|
(0, _defineProperty2.default)(this, "resetAgentPresenceTimer", function (sessionId, lastActive) {
|
|
186
186
|
var existingTimer = _this.agentPresenceTimers.get(sessionId);
|
|
@@ -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 = "31.0.
|
|
8
|
+
var version = exports.version = "31.0.3";
|
|
9
9
|
var nextMajorVersion = exports.nextMajorVersion = function nextMajorVersion() {
|
|
10
10
|
return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
|
|
11
11
|
};
|
|
@@ -17,7 +17,7 @@ export const MULTI_COLLAB_MODE = 'collab';
|
|
|
17
17
|
// remote agent-authored steps. Reset on each new step for that agent.
|
|
18
18
|
// NOTE: temporary/demonstration lifecycle — long-term expiry may move to NCS.
|
|
19
19
|
export const AGENT_PRESENCE_INACTIVE_MS = 30 * 1000; // 30 seconds
|
|
20
|
-
export const AGENT_PRESENCE_TTL_MS = 5 * 60 * 1000;
|
|
20
|
+
export const AGENT_PRESENCE_TTL_MS = AGENT_PRESENCE_INACTIVE_MS + 5 * 60 * 1000;
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* This service is responsible for handling presence and participant events, as well as sending them on to the editor or NCS.
|
|
@@ -169,7 +169,7 @@ export class ParticipantsService {
|
|
|
169
169
|
});
|
|
170
170
|
/**
|
|
171
171
|
* (Re)starts the sliding expiry timer for an agent participant. The enriched lifecycle retains
|
|
172
|
-
* agents for five minutes
|
|
172
|
+
* agents for 30 seconds active plus five minutes inactive; the legacy lifecycle removes at 30 seconds.
|
|
173
173
|
*/
|
|
174
174
|
_defineProperty(this, "resetAgentPresenceTimer", (sessionId, lastActive) => {
|
|
175
175
|
const existingTimer = this.agentPresenceTimers.get(sessionId);
|
|
@@ -24,7 +24,7 @@ export var MULTI_COLLAB_MODE = 'collab';
|
|
|
24
24
|
// remote agent-authored steps. Reset on each new step for that agent.
|
|
25
25
|
// NOTE: temporary/demonstration lifecycle — long-term expiry may move to NCS.
|
|
26
26
|
export var AGENT_PRESENCE_INACTIVE_MS = 30 * 1000; // 30 seconds
|
|
27
|
-
export var AGENT_PRESENCE_TTL_MS = 5 * 60 * 1000;
|
|
27
|
+
export var AGENT_PRESENCE_TTL_MS = AGENT_PRESENCE_INACTIVE_MS + 5 * 60 * 1000;
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
* This service is responsible for handling presence and participant events, as well as sending them on to the editor or NCS.
|
|
@@ -173,7 +173,7 @@ export var ParticipantsService = /*#__PURE__*/function () {
|
|
|
173
173
|
});
|
|
174
174
|
/**
|
|
175
175
|
* (Re)starts the sliding expiry timer for an agent participant. The enriched lifecycle retains
|
|
176
|
-
* agents for five minutes
|
|
176
|
+
* agents for 30 seconds active plus five minutes inactive; the legacy lifecycle removes at 30 seconds.
|
|
177
177
|
*/
|
|
178
178
|
_defineProperty(this, "resetAgentPresenceTimer", function (sessionId, lastActive) {
|
|
179
179
|
var existingTimer = _this.agentPresenceTimers.get(sessionId);
|
|
@@ -88,7 +88,7 @@ export declare class ParticipantsService {
|
|
|
88
88
|
upsertAIProviderParticipantLocally: (providerId: string, agentType?: string) => void;
|
|
89
89
|
/**
|
|
90
90
|
* (Re)starts the sliding expiry timer for an agent participant. The enriched lifecycle retains
|
|
91
|
-
* agents for five minutes
|
|
91
|
+
* agents for 30 seconds active plus five minutes inactive; the legacy lifecycle removes at 30 seconds.
|
|
92
92
|
*/
|
|
93
93
|
private resetAgentPresenceTimer;
|
|
94
94
|
private scheduleRemoteAgentExpiry;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/collab-provider",
|
|
3
|
-
"version": "31.0.
|
|
3
|
+
"version": "31.0.4",
|
|
4
4
|
"description": "A provider for collaborative editing.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
31
31
|
"@atlaskit/prosemirror-collab": "^1.1.0",
|
|
32
32
|
"@atlaskit/react-ufo": "^8.0.0",
|
|
33
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
33
|
+
"@atlaskit/tmp-editor-statsig": "^213.0.0",
|
|
34
34
|
"@atlaskit/ufo": "^2.0.0",
|
|
35
35
|
"@atlaskit/util-service-support": "^7.4.0",
|
|
36
36
|
"@babel/runtime": "^7.0.0",
|
|
@@ -75,6 +75,6 @@
|
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
78
|
-
"@atlaskit/editor-common": "^126.
|
|
78
|
+
"@atlaskit/editor-common": "^126.2.0"
|
|
79
79
|
}
|
|
80
80
|
}
|