@atlaskit/collab-provider 25.0.5 → 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 +18 -0
- package/dist/cjs/types.js +12 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/types.js +11 -0
- package/dist/es2019/version-wrapper.js +1 -1
- 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,23 @@
|
|
|
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
|
+
|
|
3
21
|
## 25.0.5
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
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
|
};
|
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
|
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
|
}
|