@atlaskit/editor-common 106.4.0 → 106.5.0

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,18 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 106.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#166997](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/166997)
8
+ [`826de0a17dc7e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/826de0a17dc7e) -
9
+ Introduce new breakout oprational event in editor-common, export the type and use in
10
+ editor-plugin-breakout. Add performance measurement for FPS for resizing
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
3
16
  ## 106.4.0
4
17
 
5
18
  ### Minor Changes
@@ -181,6 +181,7 @@ var ACTION = exports.ACTION = /*#__PURE__*/function (ACTION) {
181
181
  ACTION["UPLOAD_FAILED"] = "uploadFailed";
182
182
  ACTION["TOGGLE_CODE_BLOCK_WRAP"] = "toggleCodeBlockWrap";
183
183
  ACTION["RESIZED"] = "resized";
184
+ ACTION["RESIZED_PERF_SAMPLING"] = "resizedPerfSampling";
184
185
  ACTION["BLOCKS_DRAG_INIT"] = "blocksDragInit";
185
186
  ACTION["SINGLE_COL_LAYOUT_DETECTED"] = "singleColumLayoutDetected";
186
187
  ACTION["VIEW_MORE"] = "viewMore";
@@ -16,7 +16,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
16
16
  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); }
17
17
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
18
18
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
19
- var packageVersion = "106.4.0";
19
+ var packageVersion = "106.5.0";
20
20
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
21
21
  // Remove URL as it has UGC
22
22
  // Ignored via go/ees007
@@ -23,7 +23,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
23
23
  * @jsx jsx
24
24
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
25
25
  var packageName = "@atlaskit/editor-common";
26
- var packageVersion = "106.4.0";
26
+ var packageVersion = "106.5.0";
27
27
  var halfFocusRing = 1;
28
28
  var dropOffset = '0, 8';
29
29
  // Ignored via go/ees005
@@ -175,6 +175,7 @@ export let ACTION = /*#__PURE__*/function (ACTION) {
175
175
  ACTION["UPLOAD_FAILED"] = "uploadFailed";
176
176
  ACTION["TOGGLE_CODE_BLOCK_WRAP"] = "toggleCodeBlockWrap";
177
177
  ACTION["RESIZED"] = "resized";
178
+ ACTION["RESIZED_PERF_SAMPLING"] = "resizedPerfSampling";
178
179
  ACTION["BLOCKS_DRAG_INIT"] = "blocksDragInit";
179
180
  ACTION["SINGLE_COL_LAYOUT_DETECTED"] = "singleColumLayoutDetected";
180
181
  ACTION["VIEW_MORE"] = "viewMore";
@@ -1,7 +1,7 @@
1
1
  import { isFedRamp } from './environment';
2
2
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
3
3
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
4
- const packageVersion = "106.4.0";
4
+ const packageVersion = "106.5.0";
5
5
  const sanitiseSentryEvents = (data, _hint) => {
6
6
  // Remove URL as it has UGC
7
7
  // Ignored via go/ees007
@@ -13,7 +13,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
13
13
  import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
14
14
  import Layer from '../Layer';
15
15
  const packageName = "@atlaskit/editor-common";
16
- const packageVersion = "106.4.0";
16
+ const packageVersion = "106.5.0";
17
17
  const halfFocusRing = 1;
18
18
  const dropOffset = '0, 8';
19
19
  // Ignored via go/ees005
@@ -175,6 +175,7 @@ export var ACTION = /*#__PURE__*/function (ACTION) {
175
175
  ACTION["UPLOAD_FAILED"] = "uploadFailed";
176
176
  ACTION["TOGGLE_CODE_BLOCK_WRAP"] = "toggleCodeBlockWrap";
177
177
  ACTION["RESIZED"] = "resized";
178
+ ACTION["RESIZED_PERF_SAMPLING"] = "resizedPerfSampling";
178
179
  ACTION["BLOCKS_DRAG_INIT"] = "blocksDragInit";
179
180
  ACTION["SINGLE_COL_LAYOUT_DETECTED"] = "singleColumLayoutDetected";
180
181
  ACTION["VIEW_MORE"] = "viewMore";
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
7
7
  import { isFedRamp } from './environment';
8
8
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
9
9
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
10
- var packageVersion = "106.4.0";
10
+ var packageVersion = "106.5.0";
11
11
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
12
12
  // Remove URL as it has UGC
13
13
  // Ignored via go/ees007
@@ -20,7 +20,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
20
20
  import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
21
21
  import Layer from '../Layer';
22
22
  var packageName = "@atlaskit/editor-common";
23
- var packageVersion = "106.4.0";
23
+ var packageVersion = "106.5.0";
24
24
  var halfFocusRing = 1;
25
25
  var dropOffset = '0, 8';
26
26
  // Ignored via go/ees005
@@ -50,3 +50,4 @@ export type { ActiveSessionEventPayload, ActiveSessionEventAttributes, } from '.
50
50
  export { type AIInlineSuggestionPayload, AI_SUGGESTION_TRIGGERED_FROM, } from './types/ai-inline-suggestion-events';
51
51
  export { type TelepointerClickPayload } from './types/telepointer-events';
52
52
  export { type NcsSessionStepEventAEP, type NcsSessionStepMetrics, } from './types/ncs-session-step-events';
53
+ export type { BreakoutEventPayload } from './types/breakout-events';
@@ -1,10 +1,17 @@
1
1
  import type { ACTION, ACTION_SUBJECT } from './enums';
2
- import type { TrackAEP } from './utils';
2
+ import type { OperationalAEP, TrackAEP } from './utils';
3
3
  type BreakoutSupportedNodes = 'layoutSection' | 'expand' | 'codeBlock';
4
4
  export type BreakoutResizedAEP = TrackAEP<ACTION.RESIZED, ACTION_SUBJECT.ELEMENT, undefined, {
5
5
  nodeType: BreakoutSupportedNodes;
6
6
  prevWidth?: number;
7
7
  newWidth?: number;
8
8
  }, undefined>;
9
- export type BreakoutEventPayload = BreakoutResizedAEP;
9
+ export type BreakoutResizedPerfSamplingAEP = OperationalAEP<ACTION.RESIZED_PERF_SAMPLING, ACTION_SUBJECT.ELEMENT, undefined, {
10
+ nodeType: BreakoutSupportedNodes;
11
+ frameRate: number;
12
+ nodeSize: number;
13
+ docSize: number;
14
+ isInitialSample: boolean;
15
+ }>;
16
+ export type BreakoutEventPayload = BreakoutResizedAEP | BreakoutResizedPerfSamplingAEP;
10
17
  export {};
@@ -174,6 +174,7 @@ export declare enum ACTION {
174
174
  UPLOAD_FAILED = "uploadFailed",
175
175
  TOGGLE_CODE_BLOCK_WRAP = "toggleCodeBlockWrap",
176
176
  RESIZED = "resized",
177
+ RESIZED_PERF_SAMPLING = "resizedPerfSampling",
177
178
  BLOCKS_DRAG_INIT = "blocksDragInit",
178
179
  SINGLE_COL_LAYOUT_DETECTED = "singleColumLayoutDetected",
179
180
  VIEW_MORE = "viewMore",
@@ -50,3 +50,4 @@ export type { ActiveSessionEventPayload, ActiveSessionEventAttributes, } from '.
50
50
  export { type AIInlineSuggestionPayload, AI_SUGGESTION_TRIGGERED_FROM, } from './types/ai-inline-suggestion-events';
51
51
  export { type TelepointerClickPayload } from './types/telepointer-events';
52
52
  export { type NcsSessionStepEventAEP, type NcsSessionStepMetrics, } from './types/ncs-session-step-events';
53
+ export type { BreakoutEventPayload } from './types/breakout-events';
@@ -1,10 +1,17 @@
1
1
  import type { ACTION, ACTION_SUBJECT } from './enums';
2
- import type { TrackAEP } from './utils';
2
+ import type { OperationalAEP, TrackAEP } from './utils';
3
3
  type BreakoutSupportedNodes = 'layoutSection' | 'expand' | 'codeBlock';
4
4
  export type BreakoutResizedAEP = TrackAEP<ACTION.RESIZED, ACTION_SUBJECT.ELEMENT, undefined, {
5
5
  nodeType: BreakoutSupportedNodes;
6
6
  prevWidth?: number;
7
7
  newWidth?: number;
8
8
  }, undefined>;
9
- export type BreakoutEventPayload = BreakoutResizedAEP;
9
+ export type BreakoutResizedPerfSamplingAEP = OperationalAEP<ACTION.RESIZED_PERF_SAMPLING, ACTION_SUBJECT.ELEMENT, undefined, {
10
+ nodeType: BreakoutSupportedNodes;
11
+ frameRate: number;
12
+ nodeSize: number;
13
+ docSize: number;
14
+ isInitialSample: boolean;
15
+ }>;
16
+ export type BreakoutEventPayload = BreakoutResizedAEP | BreakoutResizedPerfSamplingAEP;
10
17
  export {};
@@ -174,6 +174,7 @@ export declare enum ACTION {
174
174
  UPLOAD_FAILED = "uploadFailed",
175
175
  TOGGLE_CODE_BLOCK_WRAP = "toggleCodeBlockWrap",
176
176
  RESIZED = "resized",
177
+ RESIZED_PERF_SAMPLING = "resizedPerfSampling",
177
178
  BLOCKS_DRAG_INIT = "blocksDragInit",
178
179
  SINGLE_COL_LAYOUT_DETECTED = "singleColumLayoutDetected",
179
180
  VIEW_MORE = "viewMore",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "106.4.0",
3
+ "version": "106.5.0",
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/"
@@ -170,7 +170,7 @@
170
170
  "@atlaskit/task-decision": "^19.2.0",
171
171
  "@atlaskit/textfield": "^8.0.0",
172
172
  "@atlaskit/theme": "^18.0.0",
173
- "@atlaskit/tmp-editor-statsig": "^5.14.0",
173
+ "@atlaskit/tmp-editor-statsig": "^6.0.0",
174
174
  "@atlaskit/tokens": "^5.1.0",
175
175
  "@atlaskit/tooltip": "^20.3.0",
176
176
  "@atlaskit/width-detector": "^5.0.0",