@atlaskit/collab-provider 25.0.4 → 25.0.6
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 +27 -0
- package/dist/cjs/document/document-service.js +1 -2
- package/dist/cjs/types.js +12 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/document/document-service.js +1 -2
- package/dist/es2019/types.js +11 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/document/document-service.js +1 -2
- package/dist/esm/types.js +11 -0
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/types.d.ts +10 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# @atlaskit/collab-provider
|
|
2
2
|
|
|
3
|
+
## 25.0.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`351ba3a2cc9d5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/351ba3a2cc9d5) -
|
|
8
|
+
`BaseStepPM` gains an optional `invocationId`, the backend-issued identifier of the agent
|
|
9
|
+
invocation a collaboration step belongs to.
|
|
10
|
+
|
|
11
|
+
NCS attaches the identifier to every step produced by one backend agent invocation, so consumers
|
|
12
|
+
can group a received batch back into the invocation that produced it. Identity is per step rather
|
|
13
|
+
than per batch: one live or catch-up batch can mix human steps, agent steps from different
|
|
14
|
+
invocations, and steps with no identifier at all.
|
|
15
|
+
|
|
16
|
+
The field is optional and additive, so steps that do not carry it are unaffected, and the frontend
|
|
17
|
+
treats the value as opaque rather than validating its format.
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
21
|
+
## 25.0.5
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- [`4f5cb2d60c652`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4f5cb2d60c652) -
|
|
26
|
+
[ux] Preserve agent types for step-driven presence behind `platform_editor_agent_be_streaming` so
|
|
27
|
+
`confluence_agent_presence_profile_by_type` can resolve type-only agents.
|
|
28
|
+
- Updated dependencies
|
|
29
|
+
|
|
3
30
|
## 25.0.4
|
|
4
31
|
|
|
5
32
|
### Patch Changes
|
|
@@ -16,7 +16,6 @@ var _transformOverride = require("@atlaskit/editor-prosemirror/transform-overrid
|
|
|
16
16
|
var _prosemirrorCollab = require("@atlaskit/prosemirror-collab");
|
|
17
17
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
18
18
|
var _editorJsonTransformer = require("@atlaskit/editor-json-transformer");
|
|
19
|
-
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
20
19
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
21
20
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
22
21
|
var _const = require("../helpers/const");
|
|
@@ -1014,7 +1013,7 @@ var DocumentService = exports.DocumentService = /*#__PURE__*/function () {
|
|
|
1014
1013
|
totalStepCount: steps.length
|
|
1015
1014
|
});
|
|
1016
1015
|
agentTypeByProviderId.forEach(function (agentType, providerId) {
|
|
1017
|
-
return _this3.participantsService.upsertAIProviderParticipantLocally(providerId,
|
|
1016
|
+
return _this3.participantsService.upsertAIProviderParticipantLocally(providerId, agentType);
|
|
1018
1017
|
});
|
|
1019
1018
|
} catch (error) {
|
|
1020
1019
|
var _this$analyticsHelper35;
|
package/dist/cjs/types.js
CHANGED
|
@@ -26,6 +26,17 @@ var AcknowledgementResponseTypes = exports.AcknowledgementResponseTypes = /*#__P
|
|
|
26
26
|
AcknowledgementResponseTypes["SUCCESS"] = "SUCCESS";
|
|
27
27
|
AcknowledgementResponseTypes["ERROR"] = "ERROR";
|
|
28
28
|
return AcknowledgementResponseTypes;
|
|
29
|
-
}({});
|
|
29
|
+
}({});
|
|
30
|
+
/**
|
|
31
|
+
* A batch of steps delivered to the document service: broadcast live over the websocket, returned by
|
|
32
|
+
* catch-up, or built locally from the client's own steps once NCS acknowledges them.
|
|
33
|
+
*
|
|
34
|
+
* Author and invocation identity live on each step, never on this envelope: one batch may mix human
|
|
35
|
+
* steps, agent steps from different invocations, and steps that carry no `invocationId` at all.
|
|
36
|
+
* Consumers should therefore read `agentType`/`agentId`/`invocationId` per step rather than inferring
|
|
37
|
+
* them for the whole batch — note that the existing agent-presence consumers still derive some
|
|
38
|
+
* attributes batch-wide, which is safe only while a batch has a single agent author.
|
|
39
|
+
*/
|
|
40
|
+
// ESS-2916 Type def for namespace status - lock/unlock
|
|
30
41
|
// This is added as a part of CEPS-1660
|
|
31
42
|
// CatchupV2
|
|
@@ -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 = "25.0.
|
|
8
|
+
var version = exports.version = "25.0.5";
|
|
9
9
|
var nextMajorVersion = exports.nextMajorVersion = function nextMajorVersion() {
|
|
10
10
|
return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
|
|
11
11
|
};
|
|
@@ -4,7 +4,6 @@ import { Step as ProseMirrorStep } from '@atlaskit/editor-prosemirror/transform-
|
|
|
4
4
|
import { getCollabState, sendableSteps } from '@atlaskit/prosemirror-collab';
|
|
5
5
|
import { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
6
6
|
import { JSONTransformer } from '@atlaskit/editor-json-transformer';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
8
7
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
9
8
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
10
9
|
import { ACK_MAX_TRY, EVENT_ACTION, EVENT_STATUS, CatchupEventReason } from '../helpers/const';
|
|
@@ -880,7 +879,7 @@ export class DocumentService {
|
|
|
880
879
|
agentStepCount,
|
|
881
880
|
totalStepCount: steps.length
|
|
882
881
|
});
|
|
883
|
-
agentTypeByProviderId.forEach((agentType, providerId) => this.participantsService.upsertAIProviderParticipantLocally(providerId,
|
|
882
|
+
agentTypeByProviderId.forEach((agentType, providerId) => this.participantsService.upsertAIProviderParticipantLocally(providerId, agentType));
|
|
884
883
|
} catch (error) {
|
|
885
884
|
var _this$analyticsHelper35;
|
|
886
885
|
(_this$analyticsHelper35 = this.analyticsHelper) === null || _this$analyticsHelper35 === void 0 ? void 0 : _this$analyticsHelper35.sendErrorEvent(error, 'Error while adding agent presence from steps');
|
package/dist/es2019/types.js
CHANGED
|
@@ -27,6 +27,17 @@ export let AcknowledgementResponseTypes = /*#__PURE__*/function (Acknowledgement
|
|
|
27
27
|
return AcknowledgementResponseTypes;
|
|
28
28
|
}({});
|
|
29
29
|
|
|
30
|
+
/**
|
|
31
|
+
* A batch of steps delivered to the document service: broadcast live over the websocket, returned by
|
|
32
|
+
* catch-up, or built locally from the client's own steps once NCS acknowledges them.
|
|
33
|
+
*
|
|
34
|
+
* Author and invocation identity live on each step, never on this envelope: one batch may mix human
|
|
35
|
+
* steps, agent steps from different invocations, and steps that carry no `invocationId` at all.
|
|
36
|
+
* Consumers should therefore read `agentType`/`agentId`/`invocationId` per step rather than inferring
|
|
37
|
+
* them for the whole batch — note that the existing agent-presence consumers still derive some
|
|
38
|
+
* attributes batch-wide, which is safe only while a batch has a single agent author.
|
|
39
|
+
*/
|
|
40
|
+
|
|
30
41
|
// ESS-2916 Type def for namespace status - lock/unlock
|
|
31
42
|
|
|
32
43
|
// This is added as a part of CEPS-1660
|
|
@@ -14,7 +14,6 @@ import { Step as ProseMirrorStep } from '@atlaskit/editor-prosemirror/transform-
|
|
|
14
14
|
import { getCollabState, sendableSteps } from '@atlaskit/prosemirror-collab';
|
|
15
15
|
import { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
16
16
|
import { JSONTransformer } from '@atlaskit/editor-json-transformer';
|
|
17
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
18
17
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
19
18
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
20
19
|
import { ACK_MAX_TRY, EVENT_ACTION, EVENT_STATUS, CatchupEventReason } from '../helpers/const';
|
|
@@ -1008,7 +1007,7 @@ export var DocumentService = /*#__PURE__*/function () {
|
|
|
1008
1007
|
totalStepCount: steps.length
|
|
1009
1008
|
});
|
|
1010
1009
|
agentTypeByProviderId.forEach(function (agentType, providerId) {
|
|
1011
|
-
return _this3.participantsService.upsertAIProviderParticipantLocally(providerId,
|
|
1010
|
+
return _this3.participantsService.upsertAIProviderParticipantLocally(providerId, agentType);
|
|
1012
1011
|
});
|
|
1013
1012
|
} catch (error) {
|
|
1014
1013
|
var _this$analyticsHelper35;
|
package/dist/esm/types.js
CHANGED
|
@@ -27,6 +27,17 @@ export var AcknowledgementResponseTypes = /*#__PURE__*/function (Acknowledgement
|
|
|
27
27
|
return AcknowledgementResponseTypes;
|
|
28
28
|
}({});
|
|
29
29
|
|
|
30
|
+
/**
|
|
31
|
+
* A batch of steps delivered to the document service: broadcast live over the websocket, returned by
|
|
32
|
+
* catch-up, or built locally from the client's own steps once NCS acknowledges them.
|
|
33
|
+
*
|
|
34
|
+
* Author and invocation identity live on each step, never on this envelope: one batch may mix human
|
|
35
|
+
* steps, agent steps from different invocations, and steps that carry no `invocationId` at all.
|
|
36
|
+
* Consumers should therefore read `agentType`/`agentId`/`invocationId` per step rather than inferring
|
|
37
|
+
* them for the whole batch — note that the existing agent-presence consumers still derive some
|
|
38
|
+
* attributes batch-wide, which is safe only while a batch has a single agent author.
|
|
39
|
+
*/
|
|
40
|
+
|
|
30
41
|
// ESS-2916 Type def for namespace status - lock/unlock
|
|
31
42
|
|
|
32
43
|
// This is added as a part of CEPS-1660
|
package/dist/types/types.d.ts
CHANGED
|
@@ -205,6 +205,16 @@ export type AcknowledgementErrorPayload = {
|
|
|
205
205
|
type: AcknowledgementResponseTypes.ERROR;
|
|
206
206
|
};
|
|
207
207
|
export type AddStepAcknowledgementPayload = AddStepAcknowledgementSuccessPayload | AcknowledgementErrorPayload;
|
|
208
|
+
/**
|
|
209
|
+
* A batch of steps delivered to the document service: broadcast live over the websocket, returned by
|
|
210
|
+
* catch-up, or built locally from the client's own steps once NCS acknowledges them.
|
|
211
|
+
*
|
|
212
|
+
* Author and invocation identity live on each step, never on this envelope: one batch may mix human
|
|
213
|
+
* steps, agent steps from different invocations, and steps that carry no `invocationId` at all.
|
|
214
|
+
* Consumers should therefore read `agentType`/`agentId`/`invocationId` per step rather than inferring
|
|
215
|
+
* them for the whole batch — note that the existing agent-presence consumers still derive some
|
|
216
|
+
* attributes batch-wide, which is safe only while a batch has a single agent author.
|
|
217
|
+
*/
|
|
208
218
|
export type StepsPayload = {
|
|
209
219
|
steps: StepJson[];
|
|
210
220
|
version: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/collab-provider",
|
|
3
|
-
"version": "25.0.
|
|
3
|
+
"version": "25.0.6",
|
|
4
4
|
"description": "A provider for collaborative editing.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"@atlaskit/analytics-listeners": "^11.1.0",
|
|
24
24
|
"@atlaskit/anonymous-assets": "^2.8.0",
|
|
25
25
|
"@atlaskit/atlassian-context": "^1.1.0",
|
|
26
|
-
"@atlaskit/editor-json-transformer": "^9.
|
|
26
|
+
"@atlaskit/editor-json-transformer": "^9.7.0",
|
|
27
27
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
28
28
|
"@atlaskit/feature-gate-js-client": "^6.0.0",
|
|
29
29
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
30
30
|
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
31
31
|
"@atlaskit/prosemirror-collab": "^1.0.0",
|
|
32
32
|
"@atlaskit/react-ufo": "^7.7.0",
|
|
33
|
-
"@atlaskit/tmp-editor-statsig": "^164.
|
|
33
|
+
"@atlaskit/tmp-editor-statsig": "^164.1.0",
|
|
34
34
|
"@atlaskit/ufo": "^1.0.0",
|
|
35
35
|
"@atlaskit/util-service-support": "^7.2.0",
|
|
36
36
|
"@babel/runtime": "^7.0.0",
|
|
@@ -78,6 +78,6 @@
|
|
|
78
78
|
}
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
|
-
"@atlaskit/editor-common": "^120.
|
|
81
|
+
"@atlaskit/editor-common": "^120.6.0"
|
|
82
82
|
}
|
|
83
83
|
}
|