@atlaskit/editor-common 109.3.0 → 109.3.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,13 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 109.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`cef73d344aa16`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/cef73d344aa16) -
8
+ EDITOR-1391 add analytics event for initial editor width
9
+ - Updated dependencies
10
+
3
11
  ## 109.3.0
4
12
 
5
13
  ### Minor Changes
@@ -196,6 +196,7 @@ var ACTION = exports.ACTION = /*#__PURE__*/function (ACTION) {
196
196
  ACTION["SUGGESTION_INSERTED"] = "suggestionInserted";
197
197
  ACTION["SUGGESTION_DISMISSED"] = "suggestionDismissed";
198
198
  ACTION["SUGGESTION_VIEWED"] = "suggestionViewed";
199
+ ACTION["INITIAL_EDITOR_WIDTH"] = "initialEditorWidth";
199
200
  return ACTION;
200
201
  }({});
201
202
  var INPUT_METHOD = exports.INPUT_METHOD = /*#__PURE__*/function (INPUT_METHOD) {
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -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 = "109.2.0";
19
+ var packageVersion = "109.3.0";
20
20
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
21
21
  // Remove URL as it has UGC
22
22
  // 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 = "109.2.0";
27
+ var packageVersion = "109.3.0";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -190,6 +190,7 @@ export let ACTION = /*#__PURE__*/function (ACTION) {
190
190
  ACTION["SUGGESTION_INSERTED"] = "suggestionInserted";
191
191
  ACTION["SUGGESTION_DISMISSED"] = "suggestionDismissed";
192
192
  ACTION["SUGGESTION_VIEWED"] = "suggestionViewed";
193
+ ACTION["INITIAL_EDITOR_WIDTH"] = "initialEditorWidth";
193
194
  return ACTION;
194
195
  }({});
195
196
  export let INPUT_METHOD = /*#__PURE__*/function (INPUT_METHOD) {
@@ -0,0 +1 @@
1
+ export {};
@@ -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 = "109.2.0";
4
+ const packageVersion = "109.3.0";
5
5
  const sanitiseSentryEvents = (data, _hint) => {
6
6
  // Remove URL as it has UGC
7
7
  // 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 = "109.2.0";
17
+ const packageVersion = "109.3.0";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -190,6 +190,7 @@ export var ACTION = /*#__PURE__*/function (ACTION) {
190
190
  ACTION["SUGGESTION_INSERTED"] = "suggestionInserted";
191
191
  ACTION["SUGGESTION_DISMISSED"] = "suggestionDismissed";
192
192
  ACTION["SUGGESTION_VIEWED"] = "suggestionViewed";
193
+ ACTION["INITIAL_EDITOR_WIDTH"] = "initialEditorWidth";
193
194
  return ACTION;
194
195
  }({});
195
196
  export var INPUT_METHOD = /*#__PURE__*/function (INPUT_METHOD) {
@@ -0,0 +1 @@
1
+ export {};
@@ -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 = "109.2.0";
10
+ var packageVersion = "109.3.0";
11
11
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
12
12
  // Remove URL as it has UGC
13
13
  // 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 = "109.2.0";
24
+ var packageVersion = "109.3.0";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -188,7 +188,8 @@ export declare enum ACTION {
188
188
  */
189
189
  SUGGESTION_INSERTED = "suggestionInserted",
190
190
  SUGGESTION_DISMISSED = "suggestionDismissed",
191
- SUGGESTION_VIEWED = "suggestionViewed"
191
+ SUGGESTION_VIEWED = "suggestionViewed",
192
+ INITIAL_EDITOR_WIDTH = "initialEditorWidth"
192
193
  }
193
194
  export declare enum INPUT_METHOD {
194
195
  ASCII = "ascii",
@@ -53,6 +53,7 @@ import type { TypeAheadPayload } from './type-ahead';
53
53
  import type { MediaUploadEventPayload } from './upload-media-events';
54
54
  import type { OperationalAEP, OperationalExposureAEP, TrackAEP } from './utils';
55
55
  import type { ViewEventPayload } from './view-events';
56
+ import type { InitialEditorWidthPayload } from './width-events';
56
57
  type Dispatch<T = any> = (eventName: PluginKey | string, data: T) => void;
57
58
  export type SimplifiedNode = {
58
59
  content?: SimplifiedNode[];
@@ -61,7 +62,7 @@ export type SimplifiedNode = {
61
62
  pos: number;
62
63
  type: string;
63
64
  };
64
- export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MoveContentEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | TextColorEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | HighlightActionsEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload | DatasourceClickedPayload | ElementEventPayload | VisitedLinkAEP | ViewEventPayload | MediaUploadEventPayload | MentionEventPayload | EngagementPlatformEventPayload | NestedTableActionsEventPayload | AICommandPaletteEventPayload | AIDefinitionsEventPayload | AIEventPayload | AIProactiveEventPayload | AIUnifiedEventPayload | BreakoutEventPayload | ActiveSessionEventPayload | AIInlineSuggestionPayload | SelectionExtensionEventPayload | TelepointerClickPayload | SelectionToolbarEventPayload | AlignmentEventPayload | UndoRedoAEP | OfflineEditingEventPayload | NcsSessionStepEventAEP | FloatingToolbarOverflowEventPayload;
65
+ export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MoveContentEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | TextColorEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | HighlightActionsEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload | DatasourceClickedPayload | ElementEventPayload | VisitedLinkAEP | ViewEventPayload | MediaUploadEventPayload | MentionEventPayload | EngagementPlatformEventPayload | NestedTableActionsEventPayload | AICommandPaletteEventPayload | AIDefinitionsEventPayload | AIEventPayload | AIProactiveEventPayload | AIUnifiedEventPayload | BreakoutEventPayload | ActiveSessionEventPayload | AIInlineSuggestionPayload | SelectionExtensionEventPayload | TelepointerClickPayload | SelectionToolbarEventPayload | AlignmentEventPayload | UndoRedoAEP | OfflineEditingEventPayload | NcsSessionStepEventAEP | FloatingToolbarOverflowEventPayload | InitialEditorWidthPayload;
65
66
  type CustomPanelEventPayload = TrackAEP<ACTION.CHANGED_BACKGROUND_COLOR | ACTION.CHANGED_ICON | ACTION.REMOVE_ICON, ACTION_SUBJECT.PANEL, ACTION_SUBJECT_ID.PANEL, {
66
67
  newColor: string;
67
68
  previousColor: string;
@@ -0,0 +1,5 @@
1
+ import type { ACTION, ACTION_SUBJECT } from "./enums";
2
+ import type { TrackAEP } from "./utils";
3
+ export type InitialEditorWidthPayload = TrackAEP<ACTION.INITIAL_EDITOR_WIDTH, ACTION_SUBJECT.EDITOR, undefined, {
4
+ width: number;
5
+ }, undefined>;
@@ -188,7 +188,8 @@ export declare enum ACTION {
188
188
  */
189
189
  SUGGESTION_INSERTED = "suggestionInserted",
190
190
  SUGGESTION_DISMISSED = "suggestionDismissed",
191
- SUGGESTION_VIEWED = "suggestionViewed"
191
+ SUGGESTION_VIEWED = "suggestionViewed",
192
+ INITIAL_EDITOR_WIDTH = "initialEditorWidth"
192
193
  }
193
194
  export declare enum INPUT_METHOD {
194
195
  ASCII = "ascii",
@@ -53,6 +53,7 @@ import type { TypeAheadPayload } from './type-ahead';
53
53
  import type { MediaUploadEventPayload } from './upload-media-events';
54
54
  import type { OperationalAEP, OperationalExposureAEP, TrackAEP } from './utils';
55
55
  import type { ViewEventPayload } from './view-events';
56
+ import type { InitialEditorWidthPayload } from './width-events';
56
57
  type Dispatch<T = any> = (eventName: PluginKey | string, data: T) => void;
57
58
  export type SimplifiedNode = {
58
59
  content?: SimplifiedNode[];
@@ -61,7 +62,7 @@ export type SimplifiedNode = {
61
62
  pos: number;
62
63
  type: string;
63
64
  };
64
- export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MoveContentEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | TextColorEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | HighlightActionsEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload | DatasourceClickedPayload | ElementEventPayload | VisitedLinkAEP | ViewEventPayload | MediaUploadEventPayload | MentionEventPayload | EngagementPlatformEventPayload | NestedTableActionsEventPayload | AICommandPaletteEventPayload | AIDefinitionsEventPayload | AIEventPayload | AIProactiveEventPayload | AIUnifiedEventPayload | BreakoutEventPayload | ActiveSessionEventPayload | AIInlineSuggestionPayload | SelectionExtensionEventPayload | TelepointerClickPayload | SelectionToolbarEventPayload | AlignmentEventPayload | UndoRedoAEP | OfflineEditingEventPayload | NcsSessionStepEventAEP | FloatingToolbarOverflowEventPayload;
65
+ export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MoveContentEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | TextColorEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | HighlightActionsEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload | DatasourceClickedPayload | ElementEventPayload | VisitedLinkAEP | ViewEventPayload | MediaUploadEventPayload | MentionEventPayload | EngagementPlatformEventPayload | NestedTableActionsEventPayload | AICommandPaletteEventPayload | AIDefinitionsEventPayload | AIEventPayload | AIProactiveEventPayload | AIUnifiedEventPayload | BreakoutEventPayload | ActiveSessionEventPayload | AIInlineSuggestionPayload | SelectionExtensionEventPayload | TelepointerClickPayload | SelectionToolbarEventPayload | AlignmentEventPayload | UndoRedoAEP | OfflineEditingEventPayload | NcsSessionStepEventAEP | FloatingToolbarOverflowEventPayload | InitialEditorWidthPayload;
65
66
  type CustomPanelEventPayload = TrackAEP<ACTION.CHANGED_BACKGROUND_COLOR | ACTION.CHANGED_ICON | ACTION.REMOVE_ICON, ACTION_SUBJECT.PANEL, ACTION_SUBJECT_ID.PANEL, {
66
67
  newColor: string;
67
68
  previousColor: string;
@@ -0,0 +1,5 @@
1
+ import type { ACTION, ACTION_SUBJECT } from "./enums";
2
+ import type { TrackAEP } from "./utils";
3
+ export type InitialEditorWidthPayload = TrackAEP<ACTION.INITIAL_EDITOR_WIDTH, ACTION_SUBJECT.EDITOR, undefined, {
4
+ width: number;
5
+ }, undefined>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "109.3.0",
3
+ "version": "109.3.1",
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/"
@@ -158,7 +158,7 @@
158
158
  "@atlaskit/media-common": "^12.3.0",
159
159
  "@atlaskit/media-file-preview": "^0.11.0",
160
160
  "@atlaskit/media-picker": "^70.0.0",
161
- "@atlaskit/media-ui": "^28.6.0",
161
+ "@atlaskit/media-ui": "^28.7.0",
162
162
  "@atlaskit/media-viewer": "^52.4.0",
163
163
  "@atlaskit/mention": "^24.2.0",
164
164
  "@atlaskit/menu": "^8.4.0",
@@ -167,7 +167,7 @@
167
167
  "@atlaskit/platform-feature-flags-react": "^0.3.0",
168
168
  "@atlaskit/popper": "^7.1.0",
169
169
  "@atlaskit/primitives": "^14.14.0",
170
- "@atlaskit/profilecard": "^24.12.0",
170
+ "@atlaskit/profilecard": "^24.13.0",
171
171
  "@atlaskit/react-ufo": "^4.6.0",
172
172
  "@atlaskit/section-message": "^8.7.0",
173
173
  "@atlaskit/smart-card": "^40.22.0",
@@ -177,7 +177,7 @@
177
177
  "@atlaskit/task-decision": "^19.2.0",
178
178
  "@atlaskit/textfield": "^8.0.0",
179
179
  "@atlaskit/theme": "^21.0.0",
180
- "@atlaskit/tmp-editor-statsig": "^12.14.0",
180
+ "@atlaskit/tmp-editor-statsig": "^12.17.0",
181
181
  "@atlaskit/tokens": "^6.3.0",
182
182
  "@atlaskit/tooltip": "^20.4.0",
183
183
  "@atlaskit/width-detector": "^5.0.0",