@atlaskit/editor-common 111.0.1 → 111.0.2

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,13 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 111.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`7b54da3c92435`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7b54da3c92435) -
8
+ EDITOR-3993 Add analytics measure timings for transformNode function with operational events
9
+ tracking duration, node count, and source/target node types
10
+
3
11
  ## 111.0.1
4
12
 
5
13
  ### Patch Changes
@@ -186,6 +186,7 @@ var ACTION = exports.ACTION = /*#__PURE__*/function (ACTION) {
186
186
  ACTION["UPLOAD_SUCCEEDED"] = "uploadSucceeded";
187
187
  ACTION["UPLOAD_FAILED"] = "uploadFailed";
188
188
  ACTION["TOGGLE_CODE_BLOCK_WRAP"] = "toggleCodeBlockWrap";
189
+ ACTION["TRANSFORMED"] = "transformed";
189
190
  ACTION["RESIZED"] = "resized";
190
191
  ACTION["RESIZED_PERF_SAMPLING"] = "resizedPerfSampling";
191
192
  ACTION["BLOCKS_DRAG_INIT"] = "blocksDragInit";
@@ -19,7 +19,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
19
19
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
20
20
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
21
21
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
22
- var packageVersion = "111.0.0";
22
+ var packageVersion = "0.0.0-development";
23
23
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
24
24
  // Remove URL as it has UGC
25
25
  // Ignored via go/ees007
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
24
24
  * @jsx jsx
25
25
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
26
26
  var packageName = "@atlaskit/editor-common";
27
- var packageVersion = "111.0.0";
27
+ var packageVersion = "0.0.0-development";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -180,6 +180,7 @@ export let ACTION = /*#__PURE__*/function (ACTION) {
180
180
  ACTION["UPLOAD_SUCCEEDED"] = "uploadSucceeded";
181
181
  ACTION["UPLOAD_FAILED"] = "uploadFailed";
182
182
  ACTION["TOGGLE_CODE_BLOCK_WRAP"] = "toggleCodeBlockWrap";
183
+ ACTION["TRANSFORMED"] = "transformed";
183
184
  ACTION["RESIZED"] = "resized";
184
185
  ACTION["RESIZED_PERF_SAMPLING"] = "resizedPerfSampling";
185
186
  ACTION["BLOCKS_DRAG_INIT"] = "blocksDragInit";
@@ -4,7 +4,7 @@ import { isFedRamp } from './environment';
4
4
  import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
5
5
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
6
6
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
7
- const packageVersion = "111.0.0";
7
+ const packageVersion = "0.0.0-development";
8
8
  const sanitiseSentryEvents = (data, _hint) => {
9
9
  // Remove URL as it has UGC
10
10
  // Ignored via go/ees007
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
14
14
  import { fg } from '@atlaskit/platform-feature-flags';
15
15
  import Layer from '../Layer';
16
16
  const packageName = "@atlaskit/editor-common";
17
- const packageVersion = "111.0.0";
17
+ const packageVersion = "0.0.0-development";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -180,6 +180,7 @@ export var ACTION = /*#__PURE__*/function (ACTION) {
180
180
  ACTION["UPLOAD_SUCCEEDED"] = "uploadSucceeded";
181
181
  ACTION["UPLOAD_FAILED"] = "uploadFailed";
182
182
  ACTION["TOGGLE_CODE_BLOCK_WRAP"] = "toggleCodeBlockWrap";
183
+ ACTION["TRANSFORMED"] = "transformed";
183
184
  ACTION["RESIZED"] = "resized";
184
185
  ACTION["RESIZED_PERF_SAMPLING"] = "resizedPerfSampling";
185
186
  ACTION["BLOCKS_DRAG_INIT"] = "blocksDragInit";
@@ -10,7 +10,7 @@ import { isFedRamp } from './environment';
10
10
  import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
11
11
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
12
12
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
13
- var packageVersion = "111.0.0";
13
+ var packageVersion = "0.0.0-development";
14
14
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
15
15
  // Remove URL as it has UGC
16
16
  // Ignored via go/ees007
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
21
21
  import { fg } from '@atlaskit/platform-feature-flags';
22
22
  import Layer from '../Layer';
23
23
  var packageName = "@atlaskit/editor-common";
24
- var packageVersion = "111.0.0";
24
+ var packageVersion = "0.0.0-development";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -33,5 +33,15 @@ interface ElementTransformErrorAttr {
33
33
  triggeredFrom: INPUT_METHOD.MOUSE | INPUT_METHOD.KEYBOARD;
34
34
  }
35
35
  export type ElementTransformErrorAEP = OperationalAEP<ACTION.ERRORED, ACTION_SUBJECT.ELEMENT, ACTION_SUBJECT_ID.TRANSFORM, ElementTransformErrorAttr>;
36
- export type BlockMenuEventPayload = BlockMenuOpenedAEP | BlockMenuItemClickedAEP | ElementConvertedAEP | ElementTransformErrorAEP;
36
+ interface ElementTransformPerformanceAttr {
37
+ duration: number;
38
+ isList: boolean;
39
+ isNested: boolean;
40
+ nodeCount: number;
41
+ sourceNodeTypes: Record<string, number>;
42
+ startTime: number;
43
+ targetNodeType: string;
44
+ }
45
+ export type ElementTransformPerformanceAEP = OperationalAEP<ACTION.TRANSFORMED, ACTION_SUBJECT.ELEMENT, ACTION_SUBJECT_ID.TRANSFORM, ElementTransformPerformanceAttr>;
46
+ export type BlockMenuEventPayload = BlockMenuOpenedAEP | BlockMenuItemClickedAEP | ElementConvertedAEP | ElementTransformErrorAEP | ElementTransformPerformanceAEP;
37
47
  export {};
@@ -179,6 +179,7 @@ export declare enum ACTION {
179
179
  UPLOAD_SUCCEEDED = "uploadSucceeded",
180
180
  UPLOAD_FAILED = "uploadFailed",
181
181
  TOGGLE_CODE_BLOCK_WRAP = "toggleCodeBlockWrap",
182
+ TRANSFORMED = "transformed",
182
183
  RESIZED = "resized",
183
184
  RESIZED_PERF_SAMPLING = "resizedPerfSampling",
184
185
  BLOCKS_DRAG_INIT = "blocksDragInit",
@@ -33,5 +33,15 @@ interface ElementTransformErrorAttr {
33
33
  triggeredFrom: INPUT_METHOD.MOUSE | INPUT_METHOD.KEYBOARD;
34
34
  }
35
35
  export type ElementTransformErrorAEP = OperationalAEP<ACTION.ERRORED, ACTION_SUBJECT.ELEMENT, ACTION_SUBJECT_ID.TRANSFORM, ElementTransformErrorAttr>;
36
- export type BlockMenuEventPayload = BlockMenuOpenedAEP | BlockMenuItemClickedAEP | ElementConvertedAEP | ElementTransformErrorAEP;
36
+ interface ElementTransformPerformanceAttr {
37
+ duration: number;
38
+ isList: boolean;
39
+ isNested: boolean;
40
+ nodeCount: number;
41
+ sourceNodeTypes: Record<string, number>;
42
+ startTime: number;
43
+ targetNodeType: string;
44
+ }
45
+ export type ElementTransformPerformanceAEP = OperationalAEP<ACTION.TRANSFORMED, ACTION_SUBJECT.ELEMENT, ACTION_SUBJECT_ID.TRANSFORM, ElementTransformPerformanceAttr>;
46
+ export type BlockMenuEventPayload = BlockMenuOpenedAEP | BlockMenuItemClickedAEP | ElementConvertedAEP | ElementTransformErrorAEP | ElementTransformPerformanceAEP;
37
47
  export {};
@@ -179,6 +179,7 @@ export declare enum ACTION {
179
179
  UPLOAD_SUCCEEDED = "uploadSucceeded",
180
180
  UPLOAD_FAILED = "uploadFailed",
181
181
  TOGGLE_CODE_BLOCK_WRAP = "toggleCodeBlockWrap",
182
+ TRANSFORMED = "transformed",
182
183
  RESIZED = "resized",
183
184
  RESIZED_PERF_SAMPLING = "resizedPerfSampling",
184
185
  BLOCKS_DRAG_INIT = "blocksDragInit",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "111.0.1",
3
+ "version": "111.0.2",
4
4
  "description": "A package that contains common classes and components for editor and renderer",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"