@atlaskit/collab-provider 9.41.1 → 9.42.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 CHANGED
@@ -1,5 +1,25 @@
1
1
  # @atlaskit/collab-provider
2
2
 
3
+ ## 9.42.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 9.42.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`5fa9ea9b315ed`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5fa9ea9b315ed) -
14
+ add triggeredByCatchup attribute to restore analytics events
15
+
16
+ ### Patch Changes
17
+
18
+ - [#145458](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/145458)
19
+ [`8110e24294e2b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8110e24294e2b) -
20
+ Deep cleanup of enablecatchupv2 FF
21
+ - Updated dependencies
22
+
3
23
  ## 9.41.1
4
24
 
5
25
  ### Patch Changes
@@ -315,7 +315,8 @@ var DocumentService = exports.DocumentService = /*#__PURE__*/function () {
315
315
  hasTitle: !!(metadata !== null && metadata !== void 0 && metadata.title),
316
316
  useReconcile: useReconcile,
317
317
  clientId: _this.clientId,
318
- targetClientId: targetClientId
318
+ targetClientId: targetClientId,
319
+ triggeredByCatchup: targetClientId ? true : false
319
320
  });
320
321
  _context3.next = 25;
321
322
  break;
@@ -326,7 +327,8 @@ var DocumentService = exports.DocumentService = /*#__PURE__*/function () {
326
327
  numUnconfirmedSteps: unconfirmedSteps === null || unconfirmedSteps === void 0 ? void 0 : unconfirmedSteps.length,
327
328
  useReconcile: useReconcile,
328
329
  clientId: _this.clientId,
329
- targetClientId: targetClientId
330
+ targetClientId: targetClientId,
331
+ triggeredByCatchup: targetClientId ? true : false
330
332
  });
331
333
  (_this$analyticsHelper13 = _this.analyticsHelper) === null || _this$analyticsHelper13 === void 0 || _this$analyticsHelper13.sendErrorEvent(_context3.t0, "Error while reinitialising document. Use Reconcile: ".concat(useReconcile));
332
334
  _this.onErrorHandled({
@@ -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.41.1";
8
+ var version = exports.version = "9.42.1";
9
9
  var nextMajorVersion = exports.nextMajorVersion = function nextMajorVersion() {
10
10
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
11
11
  };
@@ -271,7 +271,8 @@ export class DocumentService {
271
271
  hasTitle: !!(metadata !== null && metadata !== void 0 && metadata.title),
272
272
  useReconcile,
273
273
  clientId: this.clientId,
274
- targetClientId
274
+ targetClientId,
275
+ triggeredByCatchup: targetClientId ? true : false
275
276
  });
276
277
  } catch (restoreError) {
277
278
  var _this$analyticsHelper12, _this$analyticsHelper13;
@@ -279,7 +280,8 @@ export class DocumentService {
279
280
  numUnconfirmedSteps: unconfirmedSteps === null || unconfirmedSteps === void 0 ? void 0 : unconfirmedSteps.length,
280
281
  useReconcile,
281
282
  clientId: this.clientId,
282
- targetClientId
283
+ targetClientId,
284
+ triggeredByCatchup: targetClientId ? true : false
283
285
  });
284
286
  (_this$analyticsHelper13 = this.analyticsHelper) === null || _this$analyticsHelper13 === void 0 ? void 0 : _this$analyticsHelper13.sendErrorEvent(restoreError, `Error while reinitialising document. Use Reconcile: ${useReconcile}`);
285
287
  this.onErrorHandled({
@@ -1,5 +1,5 @@
1
1
  export const name = "@atlaskit/collab-provider";
2
- export const version = "9.41.1";
2
+ export const version = "9.42.1";
3
3
  export const nextMajorVersion = () => {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -308,7 +308,8 @@ export var DocumentService = /*#__PURE__*/function () {
308
308
  hasTitle: !!(metadata !== null && metadata !== void 0 && metadata.title),
309
309
  useReconcile: useReconcile,
310
310
  clientId: _this.clientId,
311
- targetClientId: targetClientId
311
+ targetClientId: targetClientId,
312
+ triggeredByCatchup: targetClientId ? true : false
312
313
  });
313
314
  _context3.next = 25;
314
315
  break;
@@ -319,7 +320,8 @@ export var DocumentService = /*#__PURE__*/function () {
319
320
  numUnconfirmedSteps: unconfirmedSteps === null || unconfirmedSteps === void 0 ? void 0 : unconfirmedSteps.length,
320
321
  useReconcile: useReconcile,
321
322
  clientId: _this.clientId,
322
- targetClientId: targetClientId
323
+ targetClientId: targetClientId,
324
+ triggeredByCatchup: targetClientId ? true : false
323
325
  });
324
326
  (_this$analyticsHelper13 = _this.analyticsHelper) === null || _this$analyticsHelper13 === void 0 || _this$analyticsHelper13.sendErrorEvent(_context3.t0, "Error while reinitialising document. Use Reconcile: ".concat(useReconcile));
325
327
  _this.onErrorHandled({
@@ -1,5 +1,5 @@
1
1
  export var name = "@atlaskit/collab-provider";
2
- export var version = "9.41.1";
2
+ export var version = "9.42.1";
3
3
  export var nextMajorVersion = function nextMajorVersion() {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -94,6 +94,7 @@ type ReInitDocFailAnalyticsEvent = {
94
94
  attributes: {
95
95
  eventStatus: EVENT_STATUS.FAILURE;
96
96
  numUnconfirmedSteps: number;
97
+ triggeredByCatchup?: boolean;
97
98
  } & BaseActionAnalyticsEventAttributes;
98
99
  };
99
100
  type ReInitDocSuccessAnalyticsEvent = {
@@ -101,6 +102,7 @@ type ReInitDocSuccessAnalyticsEvent = {
101
102
  attributes: {
102
103
  eventStatus: EVENT_STATUS.SUCCESS;
103
104
  numUnconfirmedSteps: number;
105
+ triggeredByCatchup?: boolean;
104
106
  } & BaseActionAnalyticsEventAttributes;
105
107
  };
106
108
  type ConnectionSuccessAnalyticsEvent = {
@@ -94,6 +94,7 @@ type ReInitDocFailAnalyticsEvent = {
94
94
  attributes: {
95
95
  eventStatus: EVENT_STATUS.FAILURE;
96
96
  numUnconfirmedSteps: number;
97
+ triggeredByCatchup?: boolean;
97
98
  } & BaseActionAnalyticsEventAttributes;
98
99
  };
99
100
  type ReInitDocSuccessAnalyticsEvent = {
@@ -101,6 +102,7 @@ type ReInitDocSuccessAnalyticsEvent = {
101
102
  attributes: {
102
103
  eventStatus: EVENT_STATUS.SUCCESS;
103
104
  numUnconfirmedSteps: number;
105
+ triggeredByCatchup?: boolean;
104
106
  } & BaseActionAnalyticsEventAttributes;
105
107
  };
106
108
  type ConnectionSuccessAnalyticsEvent = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/collab-provider",
3
- "version": "9.41.1",
3
+ "version": "9.42.1",
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": "^91.0.0",
37
+ "@atlaskit/editor-common": "^92.0.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",