@atlaskit/editor-synced-block-provider 8.5.2 → 8.5.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,21 @@
1
1
  # @atlaskit/editor-synced-block-provider
2
2
 
3
+ ## 8.5.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`1b4390dfedd97`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1b4390dfedd97) -
8
+ Rename the internal analytics payload builder `createSuccessPayloadNew` to
9
+ `createSuccessOperationalPayload` to make the operational-vs-track distinction clear at the call
10
+ site. This is a pure rename with no behavioural or payload change.
11
+ - Updated dependencies
12
+
13
+ ## 8.5.3
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies
18
+
3
19
  ## 8.5.2
4
20
 
5
21
  ### Patch Changes
@@ -414,7 +414,7 @@ var SourceSyncBlockStoreManager = exports.SourceSyncBlockStoreManager = /*#__PUR
414
414
  // Operational create-success event with the join key.
415
415
  if ((0, _platformFeatureFlags.fg)('platform_editor_blocks_patch_4')) {
416
416
  var _this$fireAnalyticsEv5, _this$syncBlockCache$;
417
- (_this$fireAnalyticsEv5 = this.fireAnalyticsEvent) === null || _this$fireAnalyticsEv5 === void 0 || _this$fireAnalyticsEv5.call(this, (0, _errorHandling.createSuccessPayloadNew)(resourceId || '', (_this$syncBlockCache$ = this.syncBlockCache.get(resourceId)) === null || _this$syncBlockCache$ === void 0 ? void 0 : _this$syncBlockCache$.blockInstanceId, sourceProduct));
417
+ (_this$fireAnalyticsEv5 = this.fireAnalyticsEvent) === null || _this$fireAnalyticsEv5 === void 0 || _this$fireAnalyticsEv5.call(this, (0, _errorHandling.createSuccessOperationalPayload)(resourceId || '', (_this$syncBlockCache$ = this.syncBlockCache.get(resourceId)) === null || _this$syncBlockCache$ === void 0 ? void 0 : _this$syncBlockCache$.blockInstanceId, sourceProduct));
418
418
  }
419
419
  } else {
420
420
  var _this$fireAnalyticsEv6;
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.fetchSuccessPayload = exports.fetchReferencesErrorPayload = exports.fetchErrorPayload = exports.deleteSuccessPayload = exports.deleteErrorPayload = exports.createSuccessPayloadNew = exports.createSuccessPayload = exports.createErrorPayload = exports.classifyFetchErrorReason = exports.classifyErrorReason = exports.cacheDeletionForcedPayload = exports.buildFetchErrorAttribution = exports.buildErrorAttribution = exports.FETCH_BENIGN_REASONS = void 0;
7
+ exports.fetchSuccessPayload = exports.fetchReferencesErrorPayload = exports.fetchErrorPayload = exports.deleteSuccessPayload = exports.deleteErrorPayload = exports.createSuccessPayload = exports.createSuccessOperationalPayload = exports.createErrorPayload = exports.classifyFetchErrorReason = exports.classifyErrorReason = exports.cacheDeletionForcedPayload = exports.buildFetchErrorAttribution = exports.buildErrorAttribution = exports.FETCH_BENIGN_REASONS = void 0;
8
8
  exports.getErrorPayload = getErrorPayload;
9
9
  exports.updateSuccessPayload = exports.updateReferenceErrorPayload = exports.updateErrorPayload = exports.updateCacheErrorPayload = exports.stringifyError = exports.sourceInfoOrphanedPayload = exports.getSourceInfoErrorPayload = void 0;
10
10
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
@@ -340,7 +340,7 @@ var createSuccessPayload = exports.createSuccessPayload = function createSuccess
340
340
  * existed, so dashboards had no create denominator). Fired behind
341
341
  * `platform_editor_blocks_patch_4` with the `blockInstanceId` join key.
342
342
  */
343
- var createSuccessPayloadNew = exports.createSuccessPayloadNew = function createSuccessPayloadNew(resourceId, blockInstanceId, sourceProduct) {
343
+ var createSuccessOperationalPayload = exports.createSuccessOperationalPayload = function createSuccessOperationalPayload(resourceId, blockInstanceId, sourceProduct) {
344
344
  return {
345
345
  action: _analytics.ACTION.INSERTED,
346
346
  actionSubject: _analytics.ACTION_SUBJECT.SYNCED_BLOCK,
@@ -2,7 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import { logException } from '@atlaskit/editor-common/monitoring';
3
3
  import { fg } from '@atlaskit/platform-feature-flags';
4
4
  import { SyncBlockError } from '../common/types';
5
- import { updateErrorPayload, createErrorPayload, deleteErrorPayload, updateCacheErrorPayload, getSourceInfoErrorPayload, updateSuccessPayload, createSuccessPayload, createSuccessPayloadNew, deleteSuccessPayload, fetchReferencesErrorPayload, buildErrorAttribution } from '../utils/errorHandling';
5
+ import { updateErrorPayload, createErrorPayload, deleteErrorPayload, updateCacheErrorPayload, getSourceInfoErrorPayload, updateSuccessPayload, createSuccessPayload, createSuccessOperationalPayload, deleteSuccessPayload, fetchReferencesErrorPayload, buildErrorAttribution } from '../utils/errorHandling';
6
6
  import { getCreateSourceExperience, getDeleteSourceExperience, getSaveSourceExperience, getFetchSourceInfoExperience } from '../utils/experienceTracking';
7
7
  import { convertSyncBlockPMNodeToSyncBlockData, getSourceProductFromResourceIdSafe } from '../utils/utils';
8
8
  /** Maximum time (ms) flush() will wait for in-flight block creations before proceeding. */
@@ -341,7 +341,7 @@ export class SourceSyncBlockStoreManager {
341
341
  // Operational create-success event with the join key.
342
342
  if (fg('platform_editor_blocks_patch_4')) {
343
343
  var _this$fireAnalyticsEv7, _this$syncBlockCache$;
344
- (_this$fireAnalyticsEv7 = this.fireAnalyticsEvent) === null || _this$fireAnalyticsEv7 === void 0 ? void 0 : _this$fireAnalyticsEv7.call(this, createSuccessPayloadNew(resourceId || '', (_this$syncBlockCache$ = this.syncBlockCache.get(resourceId)) === null || _this$syncBlockCache$ === void 0 ? void 0 : _this$syncBlockCache$.blockInstanceId, sourceProduct));
344
+ (_this$fireAnalyticsEv7 = this.fireAnalyticsEvent) === null || _this$fireAnalyticsEv7 === void 0 ? void 0 : _this$fireAnalyticsEv7.call(this, createSuccessOperationalPayload(resourceId || '', (_this$syncBlockCache$ = this.syncBlockCache.get(resourceId)) === null || _this$syncBlockCache$ === void 0 ? void 0 : _this$syncBlockCache$.blockInstanceId, sourceProduct));
345
345
  }
346
346
  } else {
347
347
  var _this$fireAnalyticsEv8;
@@ -319,7 +319,7 @@ export const createSuccessPayload = (resourceId, sourceProduct) => {
319
319
  * existed, so dashboards had no create denominator). Fired behind
320
320
  * `platform_editor_blocks_patch_4` with the `blockInstanceId` join key.
321
321
  */
322
- export const createSuccessPayloadNew = (resourceId, blockInstanceId, sourceProduct) => ({
322
+ export const createSuccessOperationalPayload = (resourceId, blockInstanceId, sourceProduct) => ({
323
323
  action: ACTION.INSERTED,
324
324
  actionSubject: ACTION_SUBJECT.SYNCED_BLOCK,
325
325
  actionSubjectId: ACTION_SUBJECT_ID.SYNCED_BLOCK_CREATE,
@@ -12,7 +12,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
12
12
  import { logException } from '@atlaskit/editor-common/monitoring';
13
13
  import { fg } from '@atlaskit/platform-feature-flags';
14
14
  import { SyncBlockError } from '../common/types';
15
- import { updateErrorPayload, createErrorPayload, deleteErrorPayload, updateCacheErrorPayload, getSourceInfoErrorPayload, updateSuccessPayload, createSuccessPayload, createSuccessPayloadNew, deleteSuccessPayload, fetchReferencesErrorPayload, buildErrorAttribution } from '../utils/errorHandling';
15
+ import { updateErrorPayload, createErrorPayload, deleteErrorPayload, updateCacheErrorPayload, getSourceInfoErrorPayload, updateSuccessPayload, createSuccessPayload, createSuccessOperationalPayload, deleteSuccessPayload, fetchReferencesErrorPayload, buildErrorAttribution } from '../utils/errorHandling';
16
16
  import { getCreateSourceExperience, getDeleteSourceExperience, getSaveSourceExperience, getFetchSourceInfoExperience } from '../utils/experienceTracking';
17
17
  import { convertSyncBlockPMNodeToSyncBlockData, getSourceProductFromResourceIdSafe } from '../utils/utils';
18
18
  /** Maximum time (ms) flush() will wait for in-flight block creations before proceeding. */
@@ -407,7 +407,7 @@ export var SourceSyncBlockStoreManager = /*#__PURE__*/function () {
407
407
  // Operational create-success event with the join key.
408
408
  if (fg('platform_editor_blocks_patch_4')) {
409
409
  var _this$fireAnalyticsEv5, _this$syncBlockCache$;
410
- (_this$fireAnalyticsEv5 = this.fireAnalyticsEvent) === null || _this$fireAnalyticsEv5 === void 0 || _this$fireAnalyticsEv5.call(this, createSuccessPayloadNew(resourceId || '', (_this$syncBlockCache$ = this.syncBlockCache.get(resourceId)) === null || _this$syncBlockCache$ === void 0 ? void 0 : _this$syncBlockCache$.blockInstanceId, sourceProduct));
410
+ (_this$fireAnalyticsEv5 = this.fireAnalyticsEvent) === null || _this$fireAnalyticsEv5 === void 0 || _this$fireAnalyticsEv5.call(this, createSuccessOperationalPayload(resourceId || '', (_this$syncBlockCache$ = this.syncBlockCache.get(resourceId)) === null || _this$syncBlockCache$ === void 0 ? void 0 : _this$syncBlockCache$.blockInstanceId, sourceProduct));
411
411
  }
412
412
  } else {
413
413
  var _this$fireAnalyticsEv6;
@@ -331,7 +331,7 @@ export var createSuccessPayload = function createSuccessPayload(resourceId, sour
331
331
  * existed, so dashboards had no create denominator). Fired behind
332
332
  * `platform_editor_blocks_patch_4` with the `blockInstanceId` join key.
333
333
  */
334
- export var createSuccessPayloadNew = function createSuccessPayloadNew(resourceId, blockInstanceId, sourceProduct) {
334
+ export var createSuccessOperationalPayload = function createSuccessOperationalPayload(resourceId, blockInstanceId, sourceProduct) {
335
335
  return {
336
336
  action: ACTION.INSERTED,
337
337
  actionSubject: ACTION_SUBJECT.SYNCED_BLOCK,
@@ -168,7 +168,7 @@ export declare const createSuccessPayload: (resourceId: string, sourceProduct?:
168
168
  * existed, so dashboards had no create denominator). Fired behind
169
169
  * `platform_editor_blocks_patch_4` with the `blockInstanceId` join key.
170
170
  */
171
- export declare const createSuccessPayloadNew: (resourceId: string, blockInstanceId?: string, sourceProduct?: string) => SyncBlockEventPayload;
171
+ export declare const createSuccessOperationalPayload: (resourceId: string, blockInstanceId?: string, sourceProduct?: string) => SyncBlockEventPayload;
172
172
  export declare const updateSuccessPayload: (resourceId: string, hasReference?: boolean, sourceProduct?: string) => SyncBlockEventPayload;
173
173
  /**
174
174
  * Optional enrichment for the `syncedBlockDelete` success event behind
package/package.json CHANGED
@@ -16,12 +16,12 @@
16
16
  ],
17
17
  "atlaskit:src": "src/index.ts",
18
18
  "dependencies": {
19
- "@atlaskit/adf-utils": "^20.2.0",
19
+ "@atlaskit/adf-utils": "^20.3.0",
20
20
  "@atlaskit/editor-json-transformer": "^9.0.0",
21
21
  "@atlaskit/editor-prosemirror": "^8.0.0",
22
22
  "@atlaskit/node-data-provider": "^13.0.0",
23
23
  "@atlaskit/platform-feature-flags": "^2.0.0",
24
- "@atlaskit/tmp-editor-statsig": "^120.0.0",
24
+ "@atlaskit/tmp-editor-statsig": "^121.1.0",
25
25
  "@babel/runtime": "^7.0.0",
26
26
  "@compiled/react": "^0.20.0",
27
27
  "graphql-ws": "^5.14.2",
@@ -30,7 +30,7 @@
30
30
  "uuid": "^3.1.0"
31
31
  },
32
32
  "peerDependencies": {
33
- "@atlaskit/editor-common": "^116.20.0",
33
+ "@atlaskit/editor-common": "^116.22.0",
34
34
  "react": "^18.2.0"
35
35
  },
36
36
  "devDependencies": {
@@ -74,7 +74,7 @@
74
74
  }
75
75
  },
76
76
  "name": "@atlaskit/editor-synced-block-provider",
77
- "version": "8.5.2",
77
+ "version": "8.5.4",
78
78
  "description": "Synced Block Provider for @atlaskit/editor-plugin-synced-block",
79
79
  "author": "Atlassian Pty Ltd",
80
80
  "license": "Apache-2.0",