@atlaskit/editor-common 94.13.1 → 94.14.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,14 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 94.14.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#160752](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/160752)
8
+ [`d86736afc929e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d86736afc929e) -
9
+ EDF-1887: Add UI analytics tracking for button and highlight clicks and tie Editor and Definition
10
+ Modal events with common readingAidsSessionId
11
+
3
12
  ## 94.13.1
4
13
 
5
14
  ### Patch Changes
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -266,10 +266,13 @@ var ACTION_SUBJECT = exports.ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJ
266
266
  ACTION_SUBJECT["INLINE_DIALOG"] = "inlineDialog";
267
267
  ACTION_SUBJECT["ENGAGEMENT_PLATFORM"] = "engagementPlatform";
268
268
  ACTION_SUBJECT["MEDIA_VIEWER"] = "mediaViewer";
269
+ ACTION_SUBJECT["DECORATION"] = "decoration";
269
270
  return ACTION_SUBJECT;
270
271
  }({});
271
272
  var ACTION_SUBJECT_ID = exports.ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
272
273
  ACTION_SUBJECT_ID["ACTION"] = "action";
274
+ ACTION_SUBJECT_ID["AI_DEFINITIONS_DEFINE_BUTTON"] = "aiDefinitionsDefineButton";
275
+ ACTION_SUBJECT_ID["AI_DEFINITIONS_AUTO_HIGHLIGHT"] = "aiDefinitionsAutoHighlight";
273
276
  ACTION_SUBJECT_ID["ALL"] = "all";
274
277
  ACTION_SUBJECT_ID["ALT_TEXT"] = "altText";
275
278
  ACTION_SUBJECT_ID["ANNOTATE_BUTTON"] = "annotateButton";
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
17
17
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
18
18
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
19
19
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
20
- var packageVersion = "94.13.1";
20
+ var packageVersion = "94.14.0";
21
21
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
22
22
  // Remove URL as it has UGC
23
23
  // TODO: Sanitise the URL instead of just removing it
@@ -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 = "94.13.1";
27
+ var packageVersion = "94.14.0";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var DropList = /*#__PURE__*/function (_Component) {
@@ -260,10 +260,13 @@ export let ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJECT) {
260
260
  ACTION_SUBJECT["INLINE_DIALOG"] = "inlineDialog";
261
261
  ACTION_SUBJECT["ENGAGEMENT_PLATFORM"] = "engagementPlatform";
262
262
  ACTION_SUBJECT["MEDIA_VIEWER"] = "mediaViewer";
263
+ ACTION_SUBJECT["DECORATION"] = "decoration";
263
264
  return ACTION_SUBJECT;
264
265
  }({});
265
266
  export let ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
266
267
  ACTION_SUBJECT_ID["ACTION"] = "action";
268
+ ACTION_SUBJECT_ID["AI_DEFINITIONS_DEFINE_BUTTON"] = "aiDefinitionsDefineButton";
269
+ ACTION_SUBJECT_ID["AI_DEFINITIONS_AUTO_HIGHLIGHT"] = "aiDefinitionsAutoHighlight";
267
270
  ACTION_SUBJECT_ID["ALL"] = "all";
268
271
  ACTION_SUBJECT_ID["ALT_TEXT"] = "altText";
269
272
  ACTION_SUBJECT_ID["ANNOTATE_BUTTON"] = "annotateButton";
@@ -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 = "94.13.1";
4
+ const packageVersion = "94.14.0";
5
5
  const sanitiseSentryEvents = (data, _hint) => {
6
6
  // Remove URL as it has UGC
7
7
  // TODO: Sanitise the URL instead of just removing it
@@ -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 = "94.13.1";
16
+ const packageVersion = "94.14.0";
17
17
  const halfFocusRing = 1;
18
18
  const dropOffset = '0, 8';
19
19
  class DropList extends Component {
@@ -0,0 +1 @@
1
+ export {};
@@ -260,10 +260,13 @@ export var ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJECT) {
260
260
  ACTION_SUBJECT["INLINE_DIALOG"] = "inlineDialog";
261
261
  ACTION_SUBJECT["ENGAGEMENT_PLATFORM"] = "engagementPlatform";
262
262
  ACTION_SUBJECT["MEDIA_VIEWER"] = "mediaViewer";
263
+ ACTION_SUBJECT["DECORATION"] = "decoration";
263
264
  return ACTION_SUBJECT;
264
265
  }({});
265
266
  export var ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
266
267
  ACTION_SUBJECT_ID["ACTION"] = "action";
268
+ ACTION_SUBJECT_ID["AI_DEFINITIONS_DEFINE_BUTTON"] = "aiDefinitionsDefineButton";
269
+ ACTION_SUBJECT_ID["AI_DEFINITIONS_AUTO_HIGHLIGHT"] = "aiDefinitionsAutoHighlight";
267
270
  ACTION_SUBJECT_ID["ALL"] = "all";
268
271
  ACTION_SUBJECT_ID["ALT_TEXT"] = "altText";
269
272
  ACTION_SUBJECT_ID["ANNOTATE_BUTTON"] = "annotateButton";
@@ -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 = "94.13.1";
10
+ var packageVersion = "94.14.0";
11
11
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
12
12
  // Remove URL as it has UGC
13
13
  // TODO: Sanitise the URL instead of just removing it
@@ -21,7 +21,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
21
21
  import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
22
22
  import Layer from '../Layer';
23
23
  var packageName = "@atlaskit/editor-common";
24
- var packageVersion = "94.13.1";
24
+ var packageVersion = "94.14.0";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var DropList = /*#__PURE__*/function (_Component) {
@@ -0,0 +1,9 @@
1
+ import { type ACTION, type ACTION_SUBJECT, type ACTION_SUBJECT_ID } from './enums';
2
+ import { type UIAEP } from './utils';
3
+ type CommonAttributes = {
4
+ readingAidsSessionId: string;
5
+ };
6
+ type DefineButtonClickedAEP = UIAEP<ACTION.CLICKED, ACTION_SUBJECT.BUTTON, ACTION_SUBJECT_ID.AI_DEFINITIONS_DEFINE_BUTTON, CommonAttributes, undefined>;
7
+ type AutoHighlightClickedAEP = UIAEP<ACTION.CLICKED, ACTION_SUBJECT.DECORATION, ACTION_SUBJECT_ID.AI_DEFINITIONS_AUTO_HIGHLIGHT, CommonAttributes, undefined>;
8
+ export type AIDefinitionsEventPayload = DefineButtonClickedAEP | AutoHighlightClickedAEP;
9
+ export {};
@@ -262,10 +262,13 @@ export declare enum ACTION_SUBJECT {
262
262
  CONTEXT_MENU = "contextMenu",
263
263
  INLINE_DIALOG = "inlineDialog",
264
264
  ENGAGEMENT_PLATFORM = "engagementPlatform",
265
- MEDIA_VIEWER = "mediaViewer"
265
+ MEDIA_VIEWER = "mediaViewer",
266
+ DECORATION = "decoration"
266
267
  }
267
268
  export declare enum ACTION_SUBJECT_ID {
268
269
  ACTION = "action",
270
+ AI_DEFINITIONS_DEFINE_BUTTON = "aiDefinitionsDefineButton",
271
+ AI_DEFINITIONS_AUTO_HIGHLIGHT = "aiDefinitionsAutoHighlight",
269
272
  ALL = "all",
270
273
  ALT_TEXT = "altText",
271
274
  ANNOTATE_BUTTON = "annotateButton",
@@ -3,6 +3,7 @@ import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
3
3
  import type { EditorState, PluginKey } from '@atlaskit/editor-prosemirror/state';
4
4
  import type { NewCollabSyncUpErrorAttributes } from '../../collab';
5
5
  import type { UnsupportedContentPayload, UnsupportedContentTooltipPayload, UserBrowserExtensionResults } from '../../utils';
6
+ import { type AIDefinitionsEventPayload } from './ai-definitions-events';
6
7
  import type { AvatarEventPayload } from './avatar';
7
8
  import type { ConfigPanelEventPayload } from './config-panel-events';
8
9
  import type { ContextMenuEventPayload } from './context-menu-events';
@@ -46,7 +47,7 @@ export type SimplifiedNode = {
46
47
  marks?: string[];
47
48
  content?: SimplifiedNode[];
48
49
  };
49
- export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MoveContentEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | ExperimentalEventPayload | 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 | ContextMenuEventPayload | VisitedLinkAEP | ViewEventPayload | MediaUploadEventPayload | MentionEventPayload | EngagementPlatformEventPayload;
50
+ export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MoveContentEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | ExperimentalEventPayload | 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 | ContextMenuEventPayload | VisitedLinkAEP | ViewEventPayload | MediaUploadEventPayload | MentionEventPayload | EngagementPlatformEventPayload | AIDefinitionsEventPayload;
50
51
  type CustomPanelEventPayload = TrackAEP<ACTION.CHANGED_BACKGROUND_COLOR | ACTION.CHANGED_ICON | ACTION.REMOVE_ICON, ACTION_SUBJECT.PANEL, ACTION_SUBJECT_ID.PANEL, {
51
52
  previousColor: string;
52
53
  newColor: string;
@@ -0,0 +1,9 @@
1
+ import { type ACTION, type ACTION_SUBJECT, type ACTION_SUBJECT_ID } from './enums';
2
+ import { type UIAEP } from './utils';
3
+ type CommonAttributes = {
4
+ readingAidsSessionId: string;
5
+ };
6
+ type DefineButtonClickedAEP = UIAEP<ACTION.CLICKED, ACTION_SUBJECT.BUTTON, ACTION_SUBJECT_ID.AI_DEFINITIONS_DEFINE_BUTTON, CommonAttributes, undefined>;
7
+ type AutoHighlightClickedAEP = UIAEP<ACTION.CLICKED, ACTION_SUBJECT.DECORATION, ACTION_SUBJECT_ID.AI_DEFINITIONS_AUTO_HIGHLIGHT, CommonAttributes, undefined>;
8
+ export type AIDefinitionsEventPayload = DefineButtonClickedAEP | AutoHighlightClickedAEP;
9
+ export {};
@@ -262,10 +262,13 @@ export declare enum ACTION_SUBJECT {
262
262
  CONTEXT_MENU = "contextMenu",
263
263
  INLINE_DIALOG = "inlineDialog",
264
264
  ENGAGEMENT_PLATFORM = "engagementPlatform",
265
- MEDIA_VIEWER = "mediaViewer"
265
+ MEDIA_VIEWER = "mediaViewer",
266
+ DECORATION = "decoration"
266
267
  }
267
268
  export declare enum ACTION_SUBJECT_ID {
268
269
  ACTION = "action",
270
+ AI_DEFINITIONS_DEFINE_BUTTON = "aiDefinitionsDefineButton",
271
+ AI_DEFINITIONS_AUTO_HIGHLIGHT = "aiDefinitionsAutoHighlight",
269
272
  ALL = "all",
270
273
  ALT_TEXT = "altText",
271
274
  ANNOTATE_BUTTON = "annotateButton",
@@ -3,6 +3,7 @@ import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
3
3
  import type { EditorState, PluginKey } from '@atlaskit/editor-prosemirror/state';
4
4
  import type { NewCollabSyncUpErrorAttributes } from '../../collab';
5
5
  import type { UnsupportedContentPayload, UnsupportedContentTooltipPayload, UserBrowserExtensionResults } from '../../utils';
6
+ import { type AIDefinitionsEventPayload } from './ai-definitions-events';
6
7
  import type { AvatarEventPayload } from './avatar';
7
8
  import type { ConfigPanelEventPayload } from './config-panel-events';
8
9
  import type { ContextMenuEventPayload } from './context-menu-events';
@@ -46,7 +47,7 @@ export type SimplifiedNode = {
46
47
  marks?: string[];
47
48
  content?: SimplifiedNode[];
48
49
  };
49
- export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MoveContentEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | ExperimentalEventPayload | 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 | ContextMenuEventPayload | VisitedLinkAEP | ViewEventPayload | MediaUploadEventPayload | MentionEventPayload | EngagementPlatformEventPayload;
50
+ export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MoveContentEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | ExperimentalEventPayload | 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 | ContextMenuEventPayload | VisitedLinkAEP | ViewEventPayload | MediaUploadEventPayload | MentionEventPayload | EngagementPlatformEventPayload | AIDefinitionsEventPayload;
50
51
  type CustomPanelEventPayload = TrackAEP<ACTION.CHANGED_BACKGROUND_COLOR | ACTION.CHANGED_ICON | ACTION.REMOVE_ICON, ACTION_SUBJECT.PANEL, ACTION_SUBJECT_ID.PANEL, {
51
52
  previousColor: string;
52
53
  newColor: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "94.13.1",
3
+ "version": "94.14.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/"