@atlaskit/collab-provider 9.42.2 → 9.42.4

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,19 @@
1
1
  # @atlaskit/collab-provider
2
2
 
3
+ ## 9.42.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#147741](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/147741)
8
+ [`29cf124342cb8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/29cf124342cb8) -
9
+ Rename the provider initial presence feature func be more general
10
+
11
+ ## 9.42.3
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 9.42.2
4
18
 
5
19
  ### Patch Changes
@@ -292,9 +292,9 @@ var Provider = exports.Provider = /*#__PURE__*/function (_Emitter) {
292
292
  _this.participantsService = new _participantsService.ParticipantsService(_this.analyticsHelper, undefined, _this.emitCallback, _this.config.getUser, _this.channel.broadcast, _this.channel.sendPresenceJoined, _this.getPresenceData, _this.setUserId);
293
293
  _this.metadataService = new _metadataService.MetadataService(_this.emitCallback, _this.channel.sendMetadata);
294
294
  _this.namespaceService = new _namespaceService.NamespaceService();
295
- if (config.isPresenceOnly_do_not_use) {
296
- // this check is specifically for the experiment teammate presence
297
- // This presence feature is only for the view pages which do not need the document service or api
295
+ if (config.isPresenceOnly) {
296
+ // this check is specifically for the presence only
297
+ // This presence feature is only for the confluence view page & jira presence which do not need the document service or api
298
298
  _this.documentService = new _nullDocumentService.NullDocumentService();
299
299
  _this.api = new _nullApi.NullApi();
300
300
  } else {
@@ -387,10 +387,10 @@ var Provider = exports.Provider = /*#__PURE__*/function (_Emitter) {
387
387
  return this;
388
388
  }
389
389
 
390
- // Only used for the experiment teammate presence (ATLAS-53155) - opts out of the document service and api service
390
+ // Only used for the presence - opts out of the document service and api service
391
391
  }, {
392
- key: "setupPresenceOnly_do_not_use",
393
- value: function setupPresenceOnly_do_not_use(clientId) {
392
+ key: "setupForPresenceOnly",
393
+ value: function setupForPresenceOnly(clientId) {
394
394
  this.clientId = clientId;
395
395
  this.checkForCookies();
396
396
  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 = "9.42.2";
8
+ var version = exports.version = "9.42.4";
9
9
  var nextMajorVersion = exports.nextMajorVersion = function nextMajorVersion() {
10
10
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
11
11
  };
@@ -245,9 +245,9 @@ export class Provider extends Emitter {
245
245
  this.participantsService = new ParticipantsService(this.analyticsHelper, undefined, this.emitCallback, this.config.getUser, this.channel.broadcast, this.channel.sendPresenceJoined, this.getPresenceData, this.setUserId);
246
246
  this.metadataService = new MetadataService(this.emitCallback, this.channel.sendMetadata);
247
247
  this.namespaceService = new NamespaceService();
248
- if (config.isPresenceOnly_do_not_use) {
249
- // this check is specifically for the experiment teammate presence
250
- // This presence feature is only for the view pages which do not need the document service or api
248
+ if (config.isPresenceOnly) {
249
+ // this check is specifically for the presence only
250
+ // This presence feature is only for the confluence view page & jira presence which do not need the document service or api
251
251
  this.documentService = new NullDocumentService();
252
252
  this.api = new NullApi();
253
253
  } else {
@@ -332,8 +332,8 @@ export class Provider extends Emitter {
332
332
  return this;
333
333
  }
334
334
 
335
- // Only used for the experiment teammate presence (ATLAS-53155) - opts out of the document service and api service
336
- setupPresenceOnly_do_not_use(clientId) {
335
+ // Only used for the presence - opts out of the document service and api service
336
+ setupForPresenceOnly(clientId) {
337
337
  this.clientId = clientId;
338
338
  this.checkForCookies();
339
339
  try {
@@ -1,5 +1,5 @@
1
1
  export const name = "@atlaskit/collab-provider";
2
- export const version = "9.42.2";
2
+ export const version = "9.42.4";
3
3
  export const nextMajorVersion = () => {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -285,9 +285,9 @@ export var Provider = /*#__PURE__*/function (_Emitter) {
285
285
  _this.participantsService = new ParticipantsService(_this.analyticsHelper, undefined, _this.emitCallback, _this.config.getUser, _this.channel.broadcast, _this.channel.sendPresenceJoined, _this.getPresenceData, _this.setUserId);
286
286
  _this.metadataService = new MetadataService(_this.emitCallback, _this.channel.sendMetadata);
287
287
  _this.namespaceService = new NamespaceService();
288
- if (config.isPresenceOnly_do_not_use) {
289
- // this check is specifically for the experiment teammate presence
290
- // This presence feature is only for the view pages which do not need the document service or api
288
+ if (config.isPresenceOnly) {
289
+ // this check is specifically for the presence only
290
+ // This presence feature is only for the confluence view page & jira presence which do not need the document service or api
291
291
  _this.documentService = new NullDocumentService();
292
292
  _this.api = new NullApi();
293
293
  } else {
@@ -380,10 +380,10 @@ export var Provider = /*#__PURE__*/function (_Emitter) {
380
380
  return this;
381
381
  }
382
382
 
383
- // Only used for the experiment teammate presence (ATLAS-53155) - opts out of the document service and api service
383
+ // Only used for the presence - opts out of the document service and api service
384
384
  }, {
385
- key: "setupPresenceOnly_do_not_use",
386
- value: function setupPresenceOnly_do_not_use(clientId) {
385
+ key: "setupForPresenceOnly",
386
+ value: function setupForPresenceOnly(clientId) {
387
387
  this.clientId = clientId;
388
388
  this.checkForCookies();
389
389
  try {
@@ -1,5 +1,5 @@
1
1
  export var name = "@atlaskit/collab-provider";
2
- export var version = "9.42.2";
2
+ export var version = "9.42.4";
3
3
  export var nextMajorVersion = function nextMajorVersion() {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -65,7 +65,7 @@ export declare class Provider extends Emitter<CollabEvents> implements BaseEvent
65
65
  getState: () => EditorState;
66
66
  onSyncUpError?: SyncUpErrorFunction;
67
67
  }): this;
68
- setupPresenceOnly_do_not_use(clientId: string): this;
68
+ setupForPresenceOnly(clientId: string): this;
69
69
  private checkForCookies;
70
70
  /**
71
71
  * Send steps from transaction to NCS (and as a consequence to other participants), called from the collab-edit plugin in the editor
@@ -50,7 +50,7 @@ export interface Config {
50
50
  throwOnNotConnected?: boolean;
51
51
  initialDraft?: InitialDraft;
52
52
  isBufferingEnabled?: boolean;
53
- isPresenceOnly_do_not_use?: boolean;
53
+ isPresenceOnly?: boolean;
54
54
  /**
55
55
  * When a page is being published this number can control the number of failed steps until a catchup is triggered.
56
56
  * The default value is MAX_STEP_REJECTED_ERROR (15).
@@ -65,7 +65,7 @@ export declare class Provider extends Emitter<CollabEvents> implements BaseEvent
65
65
  getState: () => EditorState;
66
66
  onSyncUpError?: SyncUpErrorFunction;
67
67
  }): this;
68
- setupPresenceOnly_do_not_use(clientId: string): this;
68
+ setupForPresenceOnly(clientId: string): this;
69
69
  private checkForCookies;
70
70
  /**
71
71
  * Send steps from transaction to NCS (and as a consequence to other participants), called from the collab-edit plugin in the editor
@@ -50,7 +50,7 @@ export interface Config {
50
50
  throwOnNotConnected?: boolean;
51
51
  initialDraft?: InitialDraft;
52
52
  isBufferingEnabled?: boolean;
53
- isPresenceOnly_do_not_use?: boolean;
53
+ isPresenceOnly?: boolean;
54
54
  /**
55
55
  * When a page is being published this number can control the number of failed steps until a catchup is triggered.
56
56
  * The default value is MAX_STEP_REJECTED_ERROR (15).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/collab-provider",
3
- "version": "9.42.2",
3
+ "version": "9.42.4",
4
4
  "description": "A provider for collaborative editing.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -34,7 +34,7 @@
34
34
  "dependencies": {
35
35
  "@atlaskit/analytics-gas-types": "^5.1.0",
36
36
  "@atlaskit/analytics-listeners": "^8.11.0",
37
- "@atlaskit/editor-common": "^92.1.0",
37
+ "@atlaskit/editor-common": "^93.1.0",
38
38
  "@atlaskit/editor-json-transformer": "^8.18.0",
39
39
  "@atlaskit/editor-prosemirror": "6.0.0",
40
40
  "@atlaskit/platform-feature-flags": "^0.3.0",