@atlaskit/collab-provider 11.0.0 → 11.0.2

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,20 @@
1
1
  # @atlaskit/collab-provider
2
2
 
3
+ ## 11.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#184889](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/184889)
8
+ [`88f8c910a5608`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/88f8c910a5608) -
9
+ revert publish check for step merging changes
10
+ - Updated dependencies
11
+
12
+ ## 11.0.1
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+
3
18
  ## 11.0.0
4
19
 
5
20
  ### Major Changes
@@ -269,7 +269,7 @@ var ParticipantsService = exports.ParticipantsService = /*#__PURE__*/function ()
269
269
  case 5:
270
270
  previousParticipant = _this.participantsState.getBySessionId(sessionId);
271
271
  if (previousParticipant) {
272
- _context3.next = 12;
272
+ _context3.next = 15;
273
273
  break;
274
274
  }
275
275
  _participant = _objectSpread(_objectSpread({}, payload), {}, {
@@ -280,6 +280,15 @@ var ParticipantsService = exports.ParticipantsService = /*#__PURE__*/function ()
280
280
  userId: userId
281
281
  });
282
282
  _this.participantsState.setBySessionId(sessionId, _participant);
283
+ if (!(0, _utils.isAIProviderID)(userId)) {
284
+ _context3.next = 12;
285
+ break;
286
+ }
287
+ _this.emitPresence({
288
+ joined: [_participant]
289
+ }, 'handling updated new agent lazy');
290
+ return _context3.abrupt("return");
291
+ case 12:
283
292
  // prevent running multiple debounces concurrently
284
293
  if (!_this.currentlyPollingFetchUsers) {
285
294
  void _this.batchFetchUsers();
@@ -295,7 +304,7 @@ var ParticipantsService = exports.ParticipantsService = /*#__PURE__*/function ()
295
304
  }, 'handling updated new participant lazy');
296
305
  }
297
306
  return _context3.abrupt("return");
298
- case 12:
307
+ case 15:
299
308
  // would handle activity and lastActive changes
300
309
  participant = _objectSpread(_objectSpread({}, previousParticipant), {}, {
301
310
  presenceActivity: payload.presenceActivity,
@@ -309,7 +318,7 @@ var ParticipantsService = exports.ParticipantsService = /*#__PURE__*/function ()
309
318
  }, 'handling participant activity changed event');
310
319
  }
311
320
  return _context3.abrupt("return");
312
- case 15:
321
+ case 18:
313
322
  case "end":
314
323
  return _context3.stop();
315
324
  }
@@ -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 = "10.22.1";
8
+ var version = exports.version = "11.0.1";
9
9
  var nextMajorVersion = exports.nextMajorVersion = function nextMajorVersion() {
10
10
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
11
11
  };
@@ -207,6 +207,13 @@ export class ParticipantsService {
207
207
  userId
208
208
  };
209
209
  this.participantsState.setBySessionId(sessionId, participant);
210
+ if (isAIProviderID(userId)) {
211
+ this.emitPresence({
212
+ joined: [participant]
213
+ }, 'handling updated new agent lazy');
214
+ return;
215
+ }
216
+
210
217
  // prevent running multiple debounces concurrently
211
218
  if (!this.currentlyPollingFetchUsers) {
212
219
  void this.batchFetchUsers();
@@ -1,5 +1,5 @@
1
1
  export const name = "@atlaskit/collab-provider";
2
- export const version = "10.22.1";
2
+ export const version = "11.0.1";
3
3
  export const nextMajorVersion = () => {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -262,7 +262,7 @@ export var ParticipantsService = /*#__PURE__*/function () {
262
262
  case 5:
263
263
  previousParticipant = _this.participantsState.getBySessionId(sessionId);
264
264
  if (previousParticipant) {
265
- _context3.next = 12;
265
+ _context3.next = 15;
266
266
  break;
267
267
  }
268
268
  _participant = _objectSpread(_objectSpread({}, payload), {}, {
@@ -273,6 +273,15 @@ export var ParticipantsService = /*#__PURE__*/function () {
273
273
  userId: userId
274
274
  });
275
275
  _this.participantsState.setBySessionId(sessionId, _participant);
276
+ if (!isAIProviderID(userId)) {
277
+ _context3.next = 12;
278
+ break;
279
+ }
280
+ _this.emitPresence({
281
+ joined: [_participant]
282
+ }, 'handling updated new agent lazy');
283
+ return _context3.abrupt("return");
284
+ case 12:
276
285
  // prevent running multiple debounces concurrently
277
286
  if (!_this.currentlyPollingFetchUsers) {
278
287
  void _this.batchFetchUsers();
@@ -288,7 +297,7 @@ export var ParticipantsService = /*#__PURE__*/function () {
288
297
  }, 'handling updated new participant lazy');
289
298
  }
290
299
  return _context3.abrupt("return");
291
- case 12:
300
+ case 15:
292
301
  // would handle activity and lastActive changes
293
302
  participant = _objectSpread(_objectSpread({}, previousParticipant), {}, {
294
303
  presenceActivity: payload.presenceActivity,
@@ -302,7 +311,7 @@ export var ParticipantsService = /*#__PURE__*/function () {
302
311
  }, 'handling participant activity changed event');
303
312
  }
304
313
  return _context3.abrupt("return");
305
- case 15:
314
+ case 18:
306
315
  case "end":
307
316
  return _context3.stop();
308
317
  }
@@ -1,5 +1,5 @@
1
1
  export var name = "@atlaskit/collab-provider";
2
- export var version = "10.22.1";
2
+ export var version = "11.0.1";
3
3
  export var nextMajorVersion = function nextMajorVersion() {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/collab-provider",
3
- "version": "11.0.0",
3
+ "version": "11.0.2",
4
4
  "description": "A provider for collaborative editing.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -42,7 +42,7 @@
42
42
  "@atlaskit/platform-feature-flags": "^1.1.0",
43
43
  "@atlaskit/prosemirror-collab": "^0.17.0",
44
44
  "@atlaskit/react-ufo": "^3.14.0",
45
- "@atlaskit/tmp-editor-statsig": "^8.7.0",
45
+ "@atlaskit/tmp-editor-statsig": "^9.3.0",
46
46
  "@atlaskit/ufo": "^0.4.0",
47
47
  "@atlaskit/util-service-support": "^6.3.0",
48
48
  "@babel/runtime": "^7.0.0",
@@ -68,7 +68,7 @@
68
68
  }
69
69
  },
70
70
  "devDependencies": {
71
- "@atlaskit/adf-schema": "^47.6.0",
71
+ "@atlaskit/adf-schema": "^49.0.5",
72
72
  "@atlassian/feature-flags-test-utils": "^0.3.0",
73
73
  "typescript": "~5.4.2"
74
74
  },
@@ -93,6 +93,6 @@
93
93
  }
94
94
  },
95
95
  "peerDependencies": {
96
- "@atlaskit/editor-common": "^107.6.0"
96
+ "@atlaskit/editor-common": "^107.7.0"
97
97
  }
98
98
  }