@atlaskit/collab-provider 26.0.6 → 26.0.8
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/document/document-service.js +12 -4
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/document/document-service.js +12 -4
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/document/document-service.js +12 -4
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/document/document-service.d.ts +10 -3
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/collab-provider
|
|
2
2
|
|
|
3
|
+
## 26.0.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 26.0.7
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`1fff1e044deb4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1fff1e044deb4) -
|
|
14
|
+
Decouple agent presence and agent attribution visuals from `platform_editor_agent_be_streaming`.
|
|
15
|
+
Agent-authored steps now raise the presence facepile under
|
|
16
|
+
`platform_editor_ai_streaming_ux_experience_m1` as well, and the unified post-apply chrome stamped
|
|
17
|
+
by frontend streaming no longer reads the backend streaming experiment's highlight lifetime and
|
|
18
|
+
telepointer configuration.
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 26.0.6
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -16,6 +16,7 @@ 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 _JSONTransformer = require("@atlaskit/editor-json-transformer/JSONTransformer-2");
|
|
19
|
+
var _unsafeExpValNoExposure = require("@atlaskit/platform-feature-experiments/unsafe-exp-val-no-exposure");
|
|
19
20
|
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
20
21
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
21
22
|
var _const = require("../helpers/const");
|
|
@@ -952,9 +953,16 @@ var DocumentService = exports.DocumentService = /*#__PURE__*/function () {
|
|
|
952
953
|
* Detect agent-authored steps in a received batch and register each distinct agent as a local
|
|
953
954
|
* participant so it appears in the presence facepile.
|
|
954
955
|
*
|
|
955
|
-
* Gated behind
|
|
956
|
-
* JWM/JPD etc.), and isolated in its own try/catch so a presence failure can never affect
|
|
957
|
-
* persistence.
|
|
956
|
+
* Gated behind two default-OFF experiments because `collab-provider` is shared platform infra
|
|
957
|
+
* (Jira JWM/JPD etc.), and isolated in its own try/catch so a presence failure can never affect
|
|
958
|
+
* step persistence. Backend/3P agent streaming enables it, and so does the frontend streaming UX
|
|
959
|
+
* milestone independently — the milestone attributes its own local steps, which are echoed back
|
|
960
|
+
* to this client, so it needs the facepile without the backend streaming visuals.
|
|
961
|
+
*
|
|
962
|
+
* The milestone value is read without logging an exposure: this runs on every received step
|
|
963
|
+
* batch, whereas the canonical exposure is logged at the action-driven call sites that decide
|
|
964
|
+
* whether to attribute a step. The backend experiment is evaluated first so its exposure
|
|
965
|
+
* population is unchanged.
|
|
958
966
|
*
|
|
959
967
|
* Known limitation (PoC): steps replayed via catch-up/reconnect can briefly re-surface an agent
|
|
960
968
|
* whose activity is stale — a freshness guard is a follow-up.
|
|
@@ -963,7 +971,7 @@ var DocumentService = exports.DocumentService = /*#__PURE__*/function () {
|
|
|
963
971
|
key: "maybeAddAgentPresenceFromSteps",
|
|
964
972
|
value: function maybeAddAgentPresenceFromSteps(steps) {
|
|
965
973
|
var _this3 = this;
|
|
966
|
-
if (!(0, _expValEquals.expValEquals)('platform_editor_agent_be_streaming', 'isEnabled', true)) {
|
|
974
|
+
if (!(0, _expValEquals.expValEquals)('platform_editor_agent_be_streaming', 'isEnabled', true) && !(0, _unsafeExpValNoExposure.UNSAFE_expValNoExposure)('platform_editor_ai_streaming_ux_experience_m1', 'isEnabled', false)) {
|
|
967
975
|
return;
|
|
968
976
|
}
|
|
969
977
|
try {
|
|
@@ -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 = "26.0.
|
|
8
|
+
var version = exports.version = "26.0.7";
|
|
9
9
|
var nextMajorVersion = exports.nextMajorVersion = function nextMajorVersion() {
|
|
10
10
|
return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
|
|
11
11
|
};
|
|
@@ -4,6 +4,7 @@ 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/JSONTransformer-2';
|
|
7
|
+
import { UNSAFE_expValNoExposure } from '@atlaskit/platform-feature-experiments/unsafe-exp-val-no-exposure';
|
|
7
8
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
8
9
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
9
10
|
import { ACK_MAX_TRY, EVENT_ACTION, EVENT_STATUS, CatchupEventReason } from '../helpers/const';
|
|
@@ -830,15 +831,22 @@ export class DocumentService {
|
|
|
830
831
|
* Detect agent-authored steps in a received batch and register each distinct agent as a local
|
|
831
832
|
* participant so it appears in the presence facepile.
|
|
832
833
|
*
|
|
833
|
-
* Gated behind
|
|
834
|
-
* JWM/JPD etc.), and isolated in its own try/catch so a presence failure can never affect
|
|
835
|
-
* persistence.
|
|
834
|
+
* Gated behind two default-OFF experiments because `collab-provider` is shared platform infra
|
|
835
|
+
* (Jira JWM/JPD etc.), and isolated in its own try/catch so a presence failure can never affect
|
|
836
|
+
* step persistence. Backend/3P agent streaming enables it, and so does the frontend streaming UX
|
|
837
|
+
* milestone independently — the milestone attributes its own local steps, which are echoed back
|
|
838
|
+
* to this client, so it needs the facepile without the backend streaming visuals.
|
|
839
|
+
*
|
|
840
|
+
* The milestone value is read without logging an exposure: this runs on every received step
|
|
841
|
+
* batch, whereas the canonical exposure is logged at the action-driven call sites that decide
|
|
842
|
+
* whether to attribute a step. The backend experiment is evaluated first so its exposure
|
|
843
|
+
* population is unchanged.
|
|
836
844
|
*
|
|
837
845
|
* Known limitation (PoC): steps replayed via catch-up/reconnect can briefly re-surface an agent
|
|
838
846
|
* whose activity is stale — a freshness guard is a follow-up.
|
|
839
847
|
*/
|
|
840
848
|
maybeAddAgentPresenceFromSteps(steps) {
|
|
841
|
-
if (!expValEquals('platform_editor_agent_be_streaming', 'isEnabled', true)) {
|
|
849
|
+
if (!expValEquals('platform_editor_agent_be_streaming', 'isEnabled', true) && !UNSAFE_expValNoExposure('platform_editor_ai_streaming_ux_experience_m1', 'isEnabled', false)) {
|
|
842
850
|
return;
|
|
843
851
|
}
|
|
844
852
|
try {
|
|
@@ -14,6 +14,7 @@ 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/JSONTransformer-2';
|
|
17
|
+
import { UNSAFE_expValNoExposure } from '@atlaskit/platform-feature-experiments/unsafe-exp-val-no-exposure';
|
|
17
18
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
18
19
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
19
20
|
import { ACK_MAX_TRY, EVENT_ACTION, EVENT_STATUS, CatchupEventReason } from '../helpers/const';
|
|
@@ -946,9 +947,16 @@ export var DocumentService = /*#__PURE__*/function () {
|
|
|
946
947
|
* Detect agent-authored steps in a received batch and register each distinct agent as a local
|
|
947
948
|
* participant so it appears in the presence facepile.
|
|
948
949
|
*
|
|
949
|
-
* Gated behind
|
|
950
|
-
* JWM/JPD etc.), and isolated in its own try/catch so a presence failure can never affect
|
|
951
|
-
* persistence.
|
|
950
|
+
* Gated behind two default-OFF experiments because `collab-provider` is shared platform infra
|
|
951
|
+
* (Jira JWM/JPD etc.), and isolated in its own try/catch so a presence failure can never affect
|
|
952
|
+
* step persistence. Backend/3P agent streaming enables it, and so does the frontend streaming UX
|
|
953
|
+
* milestone independently — the milestone attributes its own local steps, which are echoed back
|
|
954
|
+
* to this client, so it needs the facepile without the backend streaming visuals.
|
|
955
|
+
*
|
|
956
|
+
* The milestone value is read without logging an exposure: this runs on every received step
|
|
957
|
+
* batch, whereas the canonical exposure is logged at the action-driven call sites that decide
|
|
958
|
+
* whether to attribute a step. The backend experiment is evaluated first so its exposure
|
|
959
|
+
* population is unchanged.
|
|
952
960
|
*
|
|
953
961
|
* Known limitation (PoC): steps replayed via catch-up/reconnect can briefly re-surface an agent
|
|
954
962
|
* whose activity is stale — a freshness guard is a follow-up.
|
|
@@ -957,7 +965,7 @@ export var DocumentService = /*#__PURE__*/function () {
|
|
|
957
965
|
key: "maybeAddAgentPresenceFromSteps",
|
|
958
966
|
value: function maybeAddAgentPresenceFromSteps(steps) {
|
|
959
967
|
var _this3 = this;
|
|
960
|
-
if (!expValEquals('platform_editor_agent_be_streaming', 'isEnabled', true)) {
|
|
968
|
+
if (!expValEquals('platform_editor_agent_be_streaming', 'isEnabled', true) && !UNSAFE_expValNoExposure('platform_editor_ai_streaming_ux_experience_m1', 'isEnabled', false)) {
|
|
961
969
|
return;
|
|
962
970
|
}
|
|
963
971
|
try {
|
|
@@ -98,9 +98,16 @@ export declare class DocumentService implements DocumentServiceInterface {
|
|
|
98
98
|
* Detect agent-authored steps in a received batch and register each distinct agent as a local
|
|
99
99
|
* participant so it appears in the presence facepile.
|
|
100
100
|
*
|
|
101
|
-
* Gated behind
|
|
102
|
-
* JWM/JPD etc.), and isolated in its own try/catch so a presence failure can never affect
|
|
103
|
-
* persistence.
|
|
101
|
+
* Gated behind two default-OFF experiments because `collab-provider` is shared platform infra
|
|
102
|
+
* (Jira JWM/JPD etc.), and isolated in its own try/catch so a presence failure can never affect
|
|
103
|
+
* step persistence. Backend/3P agent streaming enables it, and so does the frontend streaming UX
|
|
104
|
+
* milestone independently — the milestone attributes its own local steps, which are echoed back
|
|
105
|
+
* to this client, so it needs the facepile without the backend streaming visuals.
|
|
106
|
+
*
|
|
107
|
+
* The milestone value is read without logging an exposure: this runs on every received step
|
|
108
|
+
* batch, whereas the canonical exposure is logged at the action-driven call sites that decide
|
|
109
|
+
* whether to attribute a step. The backend experiment is evaluated first so its exposure
|
|
110
|
+
* population is unchanged.
|
|
104
111
|
*
|
|
105
112
|
* Known limitation (PoC): steps replayed via catch-up/reconnect can briefly re-surface an agent
|
|
106
113
|
* whose activity is stale — a freshness guard is a follow-up.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/collab-provider",
|
|
3
|
-
"version": "26.0.
|
|
3
|
+
"version": "26.0.8",
|
|
4
4
|
"description": "A provider for collaborative editing.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
30
30
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
31
31
|
"@atlaskit/prosemirror-collab": "^1.1.0",
|
|
32
|
-
"@atlaskit/react-ufo": "^7.
|
|
33
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
32
|
+
"@atlaskit/react-ufo": "^7.9.0",
|
|
33
|
+
"@atlaskit/tmp-editor-statsig": "^186.0.0",
|
|
34
34
|
"@atlaskit/ufo": "^1.2.0",
|
|
35
35
|
"@atlaskit/util-service-support": "^7.4.0",
|
|
36
36
|
"@babel/runtime": "^7.0.0",
|
|
@@ -70,6 +70,6 @@
|
|
|
70
70
|
}
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
|
-
"@atlaskit/editor-common": "^121.
|
|
73
|
+
"@atlaskit/editor-common": "^121.4.0"
|
|
74
74
|
}
|
|
75
75
|
}
|