@atlaskit/collab-provider 9.25.2 → 9.25.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.25.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#78812](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78812) [`fb7d12d1461c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/fb7d12d1461c) - ESS-4503: cleanup sendStepsQueue event action
8
+ - Updated dependencies
9
+
10
+ ## 9.25.3
11
+
12
+ ### Patch Changes
13
+
14
+ - [#78224](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78224) [`6b4c9dd4ad34`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6b4c9dd4ad34) - ED-22219: adf-schema updated to 35.5.2
15
+ - Updated dependencies
16
+
3
17
  ## 9.25.2
4
18
 
5
19
  ### Patch Changes
@@ -705,11 +705,6 @@ var DocumentService = exports.DocumentService = /*#__PURE__*/function () {
705
705
  return;
706
706
  }
707
707
 
708
- // Only send 1% of events to avoid useless logging
709
- if (Math.random() < 0.01) {
710
- var _this$analyticsHelper29;
711
- (_this$analyticsHelper29 = this.analyticsHelper) === null || _this$analyticsHelper29 === void 0 || _this$analyticsHelper29.sendActionEvent(_const.EVENT_ACTION.SEND_STEPS_QUEUE, _const.EVENT_STATUS.INFO);
712
- }
713
708
  // Avoid reference issues using a
714
709
  // method outside of the provider
715
710
  // scope
@@ -24,9 +24,8 @@ var EVENT_ACTION = exports.EVENT_ACTION = /*#__PURE__*/function (EVENT_ACTION) {
24
24
  EVENT_ACTION["PROVIDER_INITIALIZED"] = "providerInitialized";
25
25
  EVENT_ACTION["PROVIDER_SETUP"] = "providerSetup";
26
26
  EVENT_ACTION["HAS_UNCONFIRMED_STEPS"] = "hasUnconfirmedSteps";
27
- EVENT_ACTION["SEND_STEPS_QUEUE"] = "sendStepsQueue";
28
27
  return EVENT_ACTION;
29
- }({}); // Temporary, used to confirm feature flag
28
+ }({}); // https://data-portal.internal.atlassian.com/analytics/registry/56141
30
29
  var EVENT_STATUS = exports.EVENT_STATUS = /*#__PURE__*/function (EVENT_STATUS) {
31
30
  EVENT_STATUS["SUCCESS"] = "SUCCESS";
32
31
  EVENT_STATUS["FAILURE"] = "FAILURE";
@@ -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.25.2";
8
+ var version = exports.version = "9.25.4";
9
9
  var nextMajorVersion = exports.nextMajorVersion = function nextMajorVersion() {
10
10
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
11
11
  };
@@ -575,11 +575,6 @@ export class DocumentService {
575
575
  return;
576
576
  }
577
577
 
578
- // Only send 1% of events to avoid useless logging
579
- if (Math.random() < 0.01) {
580
- var _this$analyticsHelper29;
581
- (_this$analyticsHelper29 = this.analyticsHelper) === null || _this$analyticsHelper29 === void 0 ? void 0 : _this$analyticsHelper29.sendActionEvent(EVENT_ACTION.SEND_STEPS_QUEUE, EVENT_STATUS.INFO);
582
- }
583
578
  // Avoid reference issues using a
584
579
  // method outside of the provider
585
580
  // scope
@@ -18,9 +18,8 @@ export let EVENT_ACTION = /*#__PURE__*/function (EVENT_ACTION) {
18
18
  EVENT_ACTION["PROVIDER_INITIALIZED"] = "providerInitialized";
19
19
  EVENT_ACTION["PROVIDER_SETUP"] = "providerSetup";
20
20
  EVENT_ACTION["HAS_UNCONFIRMED_STEPS"] = "hasUnconfirmedSteps";
21
- EVENT_ACTION["SEND_STEPS_QUEUE"] = "sendStepsQueue";
22
21
  return EVENT_ACTION;
23
- }({}); // Temporary, used to confirm feature flag
22
+ }({}); // https://data-portal.internal.atlassian.com/analytics/registry/56141
24
23
  export let EVENT_STATUS = /*#__PURE__*/function (EVENT_STATUS) {
25
24
  EVENT_STATUS["SUCCESS"] = "SUCCESS";
26
25
  EVENT_STATUS["FAILURE"] = "FAILURE";
@@ -1,5 +1,5 @@
1
1
  export const name = "@atlaskit/collab-provider";
2
- export const version = "9.25.2";
2
+ export const version = "9.25.4";
3
3
  export const nextMajorVersion = () => {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -698,11 +698,6 @@ export var DocumentService = /*#__PURE__*/function () {
698
698
  return;
699
699
  }
700
700
 
701
- // Only send 1% of events to avoid useless logging
702
- if (Math.random() < 0.01) {
703
- var _this$analyticsHelper29;
704
- (_this$analyticsHelper29 = this.analyticsHelper) === null || _this$analyticsHelper29 === void 0 || _this$analyticsHelper29.sendActionEvent(EVENT_ACTION.SEND_STEPS_QUEUE, EVENT_STATUS.INFO);
705
- }
706
701
  // Avoid reference issues using a
707
702
  // method outside of the provider
708
703
  // scope
@@ -18,9 +18,8 @@ export var EVENT_ACTION = /*#__PURE__*/function (EVENT_ACTION) {
18
18
  EVENT_ACTION["PROVIDER_INITIALIZED"] = "providerInitialized";
19
19
  EVENT_ACTION["PROVIDER_SETUP"] = "providerSetup";
20
20
  EVENT_ACTION["HAS_UNCONFIRMED_STEPS"] = "hasUnconfirmedSteps";
21
- EVENT_ACTION["SEND_STEPS_QUEUE"] = "sendStepsQueue";
22
21
  return EVENT_ACTION;
23
- }({}); // Temporary, used to confirm feature flag
22
+ }({}); // https://data-portal.internal.atlassian.com/analytics/registry/56141
24
23
  export var EVENT_STATUS = /*#__PURE__*/function (EVENT_STATUS) {
25
24
  EVENT_STATUS["SUCCESS"] = "SUCCESS";
26
25
  EVENT_STATUS["FAILURE"] = "FAILURE";
@@ -1,5 +1,5 @@
1
1
  export var name = "@atlaskit/collab-provider";
2
- export var version = "9.25.2";
2
+ export var version = "9.25.4";
3
3
  export var nextMajorVersion = function nextMajorVersion() {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -18,8 +18,7 @@ export declare enum EVENT_ACTION {
18
18
  WEBSOCKET_MESSAGE_VOLUME_METRIC = "websocketMessageVolumeMetric",
19
19
  PROVIDER_INITIALIZED = "providerInitialized",
20
20
  PROVIDER_SETUP = "providerSetup",
21
- HAS_UNCONFIRMED_STEPS = "hasUnconfirmedSteps",
22
- SEND_STEPS_QUEUE = "sendStepsQueue"
21
+ HAS_UNCONFIRMED_STEPS = "hasUnconfirmedSteps"
23
22
  }
24
23
  export declare enum EVENT_STATUS {
25
24
  SUCCESS = "SUCCESS",
@@ -257,12 +256,6 @@ type ProviderHasUnconfirmedStepsAnalyticsEvent = {
257
256
  numUnconfirmedSteps: number;
258
257
  };
259
258
  };
260
- type SendStepsQueueAnalyticsEvent = {
261
- eventAction: EVENT_ACTION.SEND_STEPS_QUEUE;
262
- attributes: {
263
- documentAri?: string;
264
- };
265
- };
266
259
  type UpdateDocumentAnalyticsEvent = {
267
260
  eventAction: EVENT_ACTION.UPDATE_DOCUMENT;
268
261
  attributes: {
@@ -274,7 +267,7 @@ type UpdateDocumentAnalyticsEvent = {
274
267
  isDocContentValid: boolean;
275
268
  };
276
269
  };
277
- export type ActionAnalyticsEvent = AddStepsSuccessAnalyticsEvent | AddStepsFailureAnalyticsEvent | ReInitDocFailAnalyticsEvent | ReInitDocSuccessAnalyticsEvent | ConnectionSuccessAnalyticsEvent | ConnectionFailureAnalyticsEvent | CatchUpSuccessAnalyticsEvent | CatchUpFailureAnalyticsEvent | DocumentInitSuccessAnalyticsEvent | UpdateParticipantsSuccessAnalyticsEvent | CommitUnconfirmedStepsSuccessAnalyticsEvent | CommitUnconfirmedStepsFailureAnalyticsEvent | PublishPageSuccessAnalyticsEvent | PublishPageFailureAnalyticsEvent | GetCurrentStateSuccessAnalyticsEvent | GetCurrentStateFailureAnalyticsEvent | InvalidateTokenAnalyticsEvent | SendStepsRetryAnalyticsEvent | CatchupAfterMaxSendStepsRetryAnalyticsEvent | CatchUpDroppedStepsEvent | WebsocketMessageVolumeMetricEvent | ProviderInitializedAnalyticsEvent | ProviderSetupAnalyticsEvent | ProviderHasUnconfirmedStepsAnalyticsEvent | SendStepsQueueAnalyticsEvent | UpdateDocumentAnalyticsEvent;
270
+ export type ActionAnalyticsEvent = AddStepsSuccessAnalyticsEvent | AddStepsFailureAnalyticsEvent | ReInitDocFailAnalyticsEvent | ReInitDocSuccessAnalyticsEvent | ConnectionSuccessAnalyticsEvent | ConnectionFailureAnalyticsEvent | CatchUpSuccessAnalyticsEvent | CatchUpFailureAnalyticsEvent | DocumentInitSuccessAnalyticsEvent | UpdateParticipantsSuccessAnalyticsEvent | CommitUnconfirmedStepsSuccessAnalyticsEvent | CommitUnconfirmedStepsFailureAnalyticsEvent | PublishPageSuccessAnalyticsEvent | PublishPageFailureAnalyticsEvent | GetCurrentStateSuccessAnalyticsEvent | GetCurrentStateFailureAnalyticsEvent | InvalidateTokenAnalyticsEvent | SendStepsRetryAnalyticsEvent | CatchupAfterMaxSendStepsRetryAnalyticsEvent | CatchUpDroppedStepsEvent | WebsocketMessageVolumeMetricEvent | ProviderInitializedAnalyticsEvent | ProviderSetupAnalyticsEvent | ProviderHasUnconfirmedStepsAnalyticsEvent | UpdateDocumentAnalyticsEvent;
278
271
  export declare const ACK_MAX_TRY = 60;
279
272
  export declare const CONFLUENCE = "confluence";
280
273
  export {};
@@ -18,8 +18,7 @@ export declare enum EVENT_ACTION {
18
18
  WEBSOCKET_MESSAGE_VOLUME_METRIC = "websocketMessageVolumeMetric",
19
19
  PROVIDER_INITIALIZED = "providerInitialized",
20
20
  PROVIDER_SETUP = "providerSetup",
21
- HAS_UNCONFIRMED_STEPS = "hasUnconfirmedSteps",
22
- SEND_STEPS_QUEUE = "sendStepsQueue"
21
+ HAS_UNCONFIRMED_STEPS = "hasUnconfirmedSteps"
23
22
  }
24
23
  export declare enum EVENT_STATUS {
25
24
  SUCCESS = "SUCCESS",
@@ -257,12 +256,6 @@ type ProviderHasUnconfirmedStepsAnalyticsEvent = {
257
256
  numUnconfirmedSteps: number;
258
257
  };
259
258
  };
260
- type SendStepsQueueAnalyticsEvent = {
261
- eventAction: EVENT_ACTION.SEND_STEPS_QUEUE;
262
- attributes: {
263
- documentAri?: string;
264
- };
265
- };
266
259
  type UpdateDocumentAnalyticsEvent = {
267
260
  eventAction: EVENT_ACTION.UPDATE_DOCUMENT;
268
261
  attributes: {
@@ -274,7 +267,7 @@ type UpdateDocumentAnalyticsEvent = {
274
267
  isDocContentValid: boolean;
275
268
  };
276
269
  };
277
- export type ActionAnalyticsEvent = AddStepsSuccessAnalyticsEvent | AddStepsFailureAnalyticsEvent | ReInitDocFailAnalyticsEvent | ReInitDocSuccessAnalyticsEvent | ConnectionSuccessAnalyticsEvent | ConnectionFailureAnalyticsEvent | CatchUpSuccessAnalyticsEvent | CatchUpFailureAnalyticsEvent | DocumentInitSuccessAnalyticsEvent | UpdateParticipantsSuccessAnalyticsEvent | CommitUnconfirmedStepsSuccessAnalyticsEvent | CommitUnconfirmedStepsFailureAnalyticsEvent | PublishPageSuccessAnalyticsEvent | PublishPageFailureAnalyticsEvent | GetCurrentStateSuccessAnalyticsEvent | GetCurrentStateFailureAnalyticsEvent | InvalidateTokenAnalyticsEvent | SendStepsRetryAnalyticsEvent | CatchupAfterMaxSendStepsRetryAnalyticsEvent | CatchUpDroppedStepsEvent | WebsocketMessageVolumeMetricEvent | ProviderInitializedAnalyticsEvent | ProviderSetupAnalyticsEvent | ProviderHasUnconfirmedStepsAnalyticsEvent | SendStepsQueueAnalyticsEvent | UpdateDocumentAnalyticsEvent;
270
+ export type ActionAnalyticsEvent = AddStepsSuccessAnalyticsEvent | AddStepsFailureAnalyticsEvent | ReInitDocFailAnalyticsEvent | ReInitDocSuccessAnalyticsEvent | ConnectionSuccessAnalyticsEvent | ConnectionFailureAnalyticsEvent | CatchUpSuccessAnalyticsEvent | CatchUpFailureAnalyticsEvent | DocumentInitSuccessAnalyticsEvent | UpdateParticipantsSuccessAnalyticsEvent | CommitUnconfirmedStepsSuccessAnalyticsEvent | CommitUnconfirmedStepsFailureAnalyticsEvent | PublishPageSuccessAnalyticsEvent | PublishPageFailureAnalyticsEvent | GetCurrentStateSuccessAnalyticsEvent | GetCurrentStateFailureAnalyticsEvent | InvalidateTokenAnalyticsEvent | SendStepsRetryAnalyticsEvent | CatchupAfterMaxSendStepsRetryAnalyticsEvent | CatchUpDroppedStepsEvent | WebsocketMessageVolumeMetricEvent | ProviderInitializedAnalyticsEvent | ProviderSetupAnalyticsEvent | ProviderHasUnconfirmedStepsAnalyticsEvent | UpdateDocumentAnalyticsEvent;
278
271
  export declare const ACK_MAX_TRY = 60;
279
272
  export declare const CONFLUENCE = "confluence";
280
273
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/collab-provider",
3
- "version": "9.25.2",
3
+ "version": "9.25.4",
4
4
  "description": "A provider for collaborative editing.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -39,7 +39,7 @@
39
39
  "dependencies": {
40
40
  "@atlaskit/analytics-gas-types": "^5.1.0",
41
41
  "@atlaskit/analytics-listeners": "^8.9.0",
42
- "@atlaskit/editor-common": "^78.9.0",
42
+ "@atlaskit/editor-common": "^78.11.0",
43
43
  "@atlaskit/editor-json-transformer": "^8.10.0",
44
44
  "@atlaskit/editor-prosemirror": "3.0.0",
45
45
  "@atlaskit/platform-feature-flags": "^0.2.0",
@@ -66,7 +66,7 @@
66
66
  }
67
67
  },
68
68
  "devDependencies": {
69
- "@atlaskit/adf-schema": "^35.5.1",
69
+ "@atlaskit/adf-schema": "^35.5.2",
70
70
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
71
71
  "@atlassian/feature-flags-test-utils": "^0.2.0",
72
72
  "typescript": "~4.9.5"