@atlaskit/collab-provider 27.0.0 → 27.0.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 +12 -4
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/participants/participants-service.js +10 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/participants/participants-service.js +12 -4
- package/dist/esm/version-wrapper.js +1 -1
- package/package.json +6 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/collab-provider
|
|
2
2
|
|
|
3
|
+
## 27.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`a8b0726ce1e34`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a8b0726ce1e34) -
|
|
8
|
+
Adds shared semantic agent colour resolution and aligns diff history with agent telepointers
|
|
9
|
+
behind `confluence_ncs_step_diffing_version_history`.
|
|
10
|
+
|
|
3
11
|
## 27.0.0
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -90,18 +90,26 @@ var ParticipantsService = exports.ParticipantsService = /*#__PURE__*/function ()
|
|
|
90
90
|
});
|
|
91
91
|
(0, _defineProperty2.default)(this, "buildAIProviderPresencePayload", function (providerId, agentType) {
|
|
92
92
|
var defaultPresenceData = _this.getPresenceData();
|
|
93
|
-
var presencePayload = {
|
|
93
|
+
var presencePayload = _objectSpread(_objectSpread({
|
|
94
94
|
sessionId: "".concat(providerId, "::").concat(defaultPresenceData.sessionId),
|
|
95
95
|
userId: providerId,
|
|
96
|
-
clientId: "".concat(providerId, "::").concat(defaultPresenceData.clientId)
|
|
97
|
-
|
|
96
|
+
clientId: "".concat(providerId, "::").concat(defaultPresenceData.clientId)
|
|
97
|
+
}, (0, _fg.fg)('confluence_ncs_step_diffing_version_history') && (0, _utils.isAIProviderID)(providerId) ? _objectSpread({
|
|
98
|
+
// Match the bare agent AAID used by step attribution rather than the synthetic
|
|
99
|
+
// per-editor-session provider ID, so telepointer and diff colours share a seed.
|
|
100
|
+
presenceId: providerId.slice('agent:'.length)
|
|
101
|
+
}, agentType ? {
|
|
102
|
+
agentType: agentType
|
|
103
|
+
} : {}) : {
|
|
104
|
+
agentType: agentType
|
|
105
|
+
}), {}, {
|
|
98
106
|
permit: {
|
|
99
107
|
isPermittedToComment: false,
|
|
100
108
|
isPermittedToEdit: false,
|
|
101
109
|
isPermittedToView: false
|
|
102
110
|
},
|
|
103
111
|
timestamp: Date.now()
|
|
104
|
-
};
|
|
112
|
+
});
|
|
105
113
|
return presencePayload;
|
|
106
114
|
});
|
|
107
115
|
(0, _defineProperty2.default)(this, "sendAIProviderParticipantUpdated", function (payload) {
|
|
@@ -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 = "27.0.0";
|
|
9
9
|
var nextMajorVersion = exports.nextMajorVersion = function nextMajorVersion() {
|
|
10
10
|
return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
|
|
11
11
|
};
|
|
@@ -78,7 +78,16 @@ export class ParticipantsService {
|
|
|
78
78
|
sessionId: `${providerId}::${defaultPresenceData.sessionId}`,
|
|
79
79
|
userId: providerId,
|
|
80
80
|
clientId: `${providerId}::${defaultPresenceData.clientId}`,
|
|
81
|
-
|
|
81
|
+
...(fg('confluence_ncs_step_diffing_version_history') && isAIProviderID(providerId) ? {
|
|
82
|
+
// Match the bare agent AAID used by step attribution rather than the synthetic
|
|
83
|
+
// per-editor-session provider ID, so telepointer and diff colours share a seed.
|
|
84
|
+
presenceId: providerId.slice('agent:'.length),
|
|
85
|
+
...(agentType ? {
|
|
86
|
+
agentType
|
|
87
|
+
} : {})
|
|
88
|
+
} : {
|
|
89
|
+
agentType
|
|
90
|
+
}),
|
|
82
91
|
permit: {
|
|
83
92
|
isPermittedToComment: false,
|
|
84
93
|
isPermittedToEdit: false,
|
|
@@ -83,18 +83,26 @@ export var ParticipantsService = /*#__PURE__*/function () {
|
|
|
83
83
|
});
|
|
84
84
|
_defineProperty(this, "buildAIProviderPresencePayload", function (providerId, agentType) {
|
|
85
85
|
var defaultPresenceData = _this.getPresenceData();
|
|
86
|
-
var presencePayload = {
|
|
86
|
+
var presencePayload = _objectSpread(_objectSpread({
|
|
87
87
|
sessionId: "".concat(providerId, "::").concat(defaultPresenceData.sessionId),
|
|
88
88
|
userId: providerId,
|
|
89
|
-
clientId: "".concat(providerId, "::").concat(defaultPresenceData.clientId)
|
|
90
|
-
|
|
89
|
+
clientId: "".concat(providerId, "::").concat(defaultPresenceData.clientId)
|
|
90
|
+
}, fg('confluence_ncs_step_diffing_version_history') && isAIProviderID(providerId) ? _objectSpread({
|
|
91
|
+
// Match the bare agent AAID used by step attribution rather than the synthetic
|
|
92
|
+
// per-editor-session provider ID, so telepointer and diff colours share a seed.
|
|
93
|
+
presenceId: providerId.slice('agent:'.length)
|
|
94
|
+
}, agentType ? {
|
|
95
|
+
agentType: agentType
|
|
96
|
+
} : {}) : {
|
|
97
|
+
agentType: agentType
|
|
98
|
+
}), {}, {
|
|
91
99
|
permit: {
|
|
92
100
|
isPermittedToComment: false,
|
|
93
101
|
isPermittedToEdit: false,
|
|
94
102
|
isPermittedToView: false
|
|
95
103
|
},
|
|
96
104
|
timestamp: Date.now()
|
|
97
|
-
};
|
|
105
|
+
});
|
|
98
106
|
return presencePayload;
|
|
99
107
|
});
|
|
100
108
|
_defineProperty(this, "sendAIProviderParticipantUpdated", function (payload) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/collab-provider",
|
|
3
|
-
"version": "27.0.
|
|
3
|
+
"version": "27.0.1",
|
|
4
4
|
"description": "A provider for collaborative editing.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -49,6 +49,10 @@
|
|
|
49
49
|
"@atlassian/feature-flags-test-utils": "^1.3.0"
|
|
50
50
|
},
|
|
51
51
|
"platform-feature-flags": {
|
|
52
|
+
"confluence_ncs_step_diffing_version_history": {
|
|
53
|
+
"type": "boolean",
|
|
54
|
+
"referenceOnly": true
|
|
55
|
+
},
|
|
52
56
|
"platform_move_presence_agents": {
|
|
53
57
|
"type": "boolean",
|
|
54
58
|
"referenceOnly": true
|
|
@@ -67,6 +71,6 @@
|
|
|
67
71
|
}
|
|
68
72
|
},
|
|
69
73
|
"peerDependencies": {
|
|
70
|
-
"@atlaskit/editor-common": "^122.
|
|
74
|
+
"@atlaskit/editor-common": "^122.2.0"
|
|
71
75
|
}
|
|
72
76
|
}
|