@atlaskit/collab-provider 9.2.2 → 9.3.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,11 @@
1
1
  # @atlaskit/collab-provider
2
2
 
3
+ ## 9.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`ece61235edc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ece61235edc) - ESS-3713: add getParticipants function to the collab provider
8
+
3
9
  ## 9.2.2
4
10
 
5
11
  ### Patch Changes
@@ -286,6 +286,12 @@ var ParticipantsService = /*#__PURE__*/function () {
286
286
  (_this$analyticsHelper9 = _this.analyticsHelper) === null || _this$analyticsHelper9 === void 0 ? void 0 : _this$analyticsHelper9.sendErrorEvent(error, 'Error while receiving presence');
287
287
  }
288
288
  });
289
+ /**
290
+ *
291
+ */
292
+ (0, _defineProperty2.default)(this, "getParticipants", function () {
293
+ return _this.participantsState.getParticipants();
294
+ });
289
295
  this.analyticsHelper = analyticsHelper;
290
296
  this.participantsState = participantsState;
291
297
  this.emit = emit;
@@ -226,6 +226,12 @@ var Provider = /*#__PURE__*/function (_Emitter) {
226
226
  clearTimeout(_this.presenceUpdateTimeout);
227
227
  _this.participantsService.clearTimers();
228
228
  });
229
+ /**
230
+ *
231
+ */
232
+ (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "getParticipants", function () {
233
+ return _this.participantsService.getParticipants();
234
+ });
229
235
  _this.config = config;
230
236
  _this.analyticsHelper = new _analyticsHelper.default(_this.config.documentAri, _this.config.analyticsClient, _this.config.getAnalyticsWebClient);
231
237
  _this.channel = new _channel.Channel(config, _this.analyticsHelper);
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.version = exports.nextMajorVersion = exports.name = void 0;
7
7
  var name = "@atlaskit/collab-provider";
8
8
  exports.name = name;
9
- var version = "9.2.2";
9
+ var version = "9.3.0";
10
10
  exports.version = version;
11
11
  var nextMajorVersion = function nextMajorVersion() {
12
12
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/collab-provider",
3
- "version": "9.2.2",
3
+ "version": "9.3.0",
4
4
  "sideEffects": false
5
5
  }
@@ -235,6 +235,12 @@ export class ParticipantsService {
235
235
  (_this$analyticsHelper9 = this.analyticsHelper) === null || _this$analyticsHelper9 === void 0 ? void 0 : _this$analyticsHelper9.sendErrorEvent(error, 'Error while receiving presence');
236
236
  }
237
237
  });
238
+ /**
239
+ *
240
+ */
241
+ _defineProperty(this, "getParticipants", () => {
242
+ return this.participantsState.getParticipants();
243
+ });
238
244
  this.analyticsHelper = analyticsHelper;
239
245
  this.participantsState = participantsState;
240
246
  this.emit = emit;
@@ -182,6 +182,12 @@ export class Provider extends Emitter {
182
182
  clearTimeout(this.presenceUpdateTimeout);
183
183
  this.participantsService.clearTimers();
184
184
  });
185
+ /**
186
+ *
187
+ */
188
+ _defineProperty(this, "getParticipants", () => {
189
+ return this.participantsService.getParticipants();
190
+ });
185
191
  this.config = config;
186
192
  this.analyticsHelper = new AnalyticsHelper(this.config.documentAri, this.config.analyticsClient, this.config.getAnalyticsWebClient);
187
193
  this.channel = new Channel(config, this.analyticsHelper);
@@ -1,5 +1,5 @@
1
1
  export const name = "@atlaskit/collab-provider";
2
- export const version = "9.2.2";
2
+ export const version = "9.3.0";
3
3
  export const nextMajorVersion = () => {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/collab-provider",
3
- "version": "9.2.2",
3
+ "version": "9.3.0",
4
4
  "sideEffects": false
5
5
  }
@@ -279,6 +279,12 @@ export var ParticipantsService = /*#__PURE__*/function () {
279
279
  (_this$analyticsHelper9 = _this.analyticsHelper) === null || _this$analyticsHelper9 === void 0 ? void 0 : _this$analyticsHelper9.sendErrorEvent(error, 'Error while receiving presence');
280
280
  }
281
281
  });
282
+ /**
283
+ *
284
+ */
285
+ _defineProperty(this, "getParticipants", function () {
286
+ return _this.participantsState.getParticipants();
287
+ });
282
288
  this.analyticsHelper = analyticsHelper;
283
289
  this.participantsState = participantsState;
284
290
  this.emit = emit;
@@ -218,6 +218,12 @@ export var Provider = /*#__PURE__*/function (_Emitter) {
218
218
  clearTimeout(_this.presenceUpdateTimeout);
219
219
  _this.participantsService.clearTimers();
220
220
  });
221
+ /**
222
+ *
223
+ */
224
+ _defineProperty(_assertThisInitialized(_this), "getParticipants", function () {
225
+ return _this.participantsService.getParticipants();
226
+ });
221
227
  _this.config = config;
222
228
  _this.analyticsHelper = new AnalyticsHelper(_this.config.documentAri, _this.config.analyticsClient, _this.config.getAnalyticsWebClient);
223
229
  _this.channel = new Channel(config, _this.analyticsHelper);
@@ -1,5 +1,5 @@
1
1
  export var name = "@atlaskit/collab-provider";
2
- export var version = "9.2.2";
2
+ export var version = "9.3.0";
3
3
  export var nextMajorVersion = function nextMajorVersion() {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/collab-provider",
3
- "version": "9.2.2",
3
+ "version": "9.3.0",
4
4
  "sideEffects": false
5
5
  }
@@ -92,4 +92,8 @@ export declare class ParticipantsService {
92
92
  * This updates both the avatars and the participants list.
93
93
  */
94
94
  onPresence: (payload: PresencePayload) => void;
95
+ /**
96
+ *
97
+ */
98
+ getParticipants: () => import("./participants-helper").ProviderParticipant[];
95
99
  }
@@ -149,5 +149,9 @@ export declare class Provider extends Emitter<CollabEvents> implements BaseEvent
149
149
  * Used when the provider is disconnected or destroyed to prevent perpetual timers from continuously running
150
150
  */
151
151
  private clearTimers;
152
+ /**
153
+ *
154
+ */
155
+ getParticipants: () => import("../participants/participants-helper").ProviderParticipant[];
152
156
  }
153
157
  export {};
@@ -92,4 +92,8 @@ export declare class ParticipantsService {
92
92
  * This updates both the avatars and the participants list.
93
93
  */
94
94
  onPresence: (payload: PresencePayload) => void;
95
+ /**
96
+ *
97
+ */
98
+ getParticipants: () => import("./participants-helper").ProviderParticipant[];
95
99
  }
@@ -149,5 +149,9 @@ export declare class Provider extends Emitter<CollabEvents> implements BaseEvent
149
149
  * Used when the provider is disconnected or destroyed to prevent perpetual timers from continuously running
150
150
  */
151
151
  private clearTimers;
152
+ /**
153
+ *
154
+ */
155
+ getParticipants: () => import("../participants/participants-helper").ProviderParticipant[];
152
156
  }
153
157
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/collab-provider",
3
- "version": "9.2.2",
3
+ "version": "9.3.0",
4
4
  "description": "A provider for collaborative editing.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -61,9 +61,9 @@
61
61
  }
62
62
  },
63
63
  "devDependencies": {
64
- "@atlaskit/adf-schema": "^25.8.0",
64
+ "@atlaskit/adf-schema": "^25.9.0",
65
65
  "@atlaskit/analytics-listeners": "^8.7.0",
66
- "@atlaskit/editor-test-helpers": "^18.6.0",
66
+ "@atlaskit/editor-test-helpers": "^18.7.0",
67
67
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
68
68
  "@types/prosemirror-model": "^1.11.0",
69
69
  "@types/prosemirror-state": "^1.2.0",
package/report.api.md CHANGED
@@ -477,6 +477,8 @@ export class Provider extends Emitter<CollabEvents> implements BaseEvents {
477
477
  getFinalAcknowledgedState: () => Promise<ResolvedEditorState>;
478
478
  getMetadata: () => Metadata_2;
479
479
  // (undocumented)
480
+ getParticipants: () => ProviderParticipant[];
481
+ // (undocumented)
480
482
  getStatePromiseResolve: (value: PromiseLike<void> | void) => void;
481
483
  // (undocumented)
482
484
  getUnconfirmedSteps: () => readonly Step[] | undefined;
@@ -447,6 +447,8 @@ export class Provider extends Emitter<CollabEvents> implements BaseEvents {
447
447
  getFinalAcknowledgedState: () => Promise<ResolvedEditorState>;
448
448
  getMetadata: () => Metadata_2;
449
449
  // (undocumented)
450
+ getParticipants: () => ProviderParticipant[];
451
+ // (undocumented)
450
452
  getStatePromiseResolve: (value: PromiseLike<void> | void) => void;
451
453
  // (undocumented)
452
454
  getUnconfirmedSteps: () => readonly Step[] | undefined;