@atlaskit/collab-provider 24.0.2 → 24.1.0
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
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/collab-provider
|
|
2
2
|
|
|
3
|
+
## 24.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`3c9414f125601`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3c9414f125601) -
|
|
8
|
+
Show editing status for agents detected from agent-authored collaboration steps.
|
|
9
|
+
|
|
3
10
|
## 24.0.2
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -142,7 +142,9 @@ var ParticipantsService = exports.ParticipantsService = /*#__PURE__*/function ()
|
|
|
142
142
|
var sessionId = payload.sessionId;
|
|
143
143
|
var existing = _this.participantsState.getBySessionId(sessionId);
|
|
144
144
|
var wasInactive = existing ? Date.now() - existing.lastActive >= AGENT_PRESENCE_INACTIVE_MS : false;
|
|
145
|
-
var participant = _objectSpread(_objectSpread({}, payload),
|
|
145
|
+
var participant = _objectSpread(_objectSpread(_objectSpread({}, payload), (0, _fg.fg)('platform_move_presence_agents') ? {
|
|
146
|
+
presenceActivity: 'editor'
|
|
147
|
+
} : {}), {}, {
|
|
146
148
|
// `payload.userId` is typed `string | undefined`; here it is always the (string)
|
|
147
149
|
// providerId, so pin it to satisfy ProviderParticipant.userId (string).
|
|
148
150
|
userId: providerId,
|
|
@@ -130,6 +130,9 @@ export class ParticipantsService {
|
|
|
130
130
|
const wasInactive = existing ? Date.now() - existing.lastActive >= AGENT_PRESENCE_INACTIVE_MS : false;
|
|
131
131
|
const participant = {
|
|
132
132
|
...payload,
|
|
133
|
+
...(fg('platform_move_presence_agents') ? {
|
|
134
|
+
presenceActivity: 'editor'
|
|
135
|
+
} : {}),
|
|
133
136
|
// `payload.userId` is typed `string | undefined`; here it is always the (string)
|
|
134
137
|
// providerId, so pin it to satisfy ProviderParticipant.userId (string).
|
|
135
138
|
userId: providerId,
|
|
@@ -135,7 +135,9 @@ export var ParticipantsService = /*#__PURE__*/function () {
|
|
|
135
135
|
var sessionId = payload.sessionId;
|
|
136
136
|
var existing = _this.participantsState.getBySessionId(sessionId);
|
|
137
137
|
var wasInactive = existing ? Date.now() - existing.lastActive >= AGENT_PRESENCE_INACTIVE_MS : false;
|
|
138
|
-
var participant = _objectSpread(_objectSpread({}, payload),
|
|
138
|
+
var participant = _objectSpread(_objectSpread(_objectSpread({}, payload), fg('platform_move_presence_agents') ? {
|
|
139
|
+
presenceActivity: 'editor'
|
|
140
|
+
} : {}), {}, {
|
|
139
141
|
// `payload.userId` is typed `string | undefined`; here it is always the (string)
|
|
140
142
|
// providerId, so pin it to satisfy ProviderParticipant.userId (string).
|
|
141
143
|
userId: providerId,
|