@atlaskit/editor-common 78.28.0 → 78.29.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.
Files changed (29) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/analytics/types/enums.js +1 -0
  3. package/dist/cjs/clipboard/index.js +29 -1
  4. package/dist/cjs/extensions/module-helpers.js +1 -0
  5. package/dist/cjs/monitoring/error.js +1 -1
  6. package/dist/cjs/ui/DropList/index.js +1 -1
  7. package/dist/es2019/analytics/types/enums.js +1 -0
  8. package/dist/es2019/clipboard/index.js +29 -1
  9. package/dist/es2019/extensions/module-helpers.js +1 -0
  10. package/dist/es2019/monitoring/error.js +1 -1
  11. package/dist/es2019/ui/DropList/index.js +1 -1
  12. package/dist/esm/analytics/types/enums.js +1 -0
  13. package/dist/esm/clipboard/index.js +29 -1
  14. package/dist/esm/extensions/module-helpers.js +1 -0
  15. package/dist/esm/monitoring/error.js +1 -1
  16. package/dist/esm/ui/DropList/index.js +1 -1
  17. package/dist/types/analytics/types/cut-copy-events.d.ts +7 -2
  18. package/dist/types/analytics/types/enums.d.ts +2 -1
  19. package/dist/types/analytics/types/extension-events.d.ts +6 -1
  20. package/dist/types/analytics/types/insert-events.d.ts +1 -0
  21. package/dist/types/extensions/types/utils.d.ts +2 -1
  22. package/dist/types/types/annotation/index.d.ts +4 -0
  23. package/dist/types-ts4.5/analytics/types/cut-copy-events.d.ts +7 -2
  24. package/dist/types-ts4.5/analytics/types/enums.d.ts +2 -1
  25. package/dist/types-ts4.5/analytics/types/extension-events.d.ts +6 -1
  26. package/dist/types-ts4.5/analytics/types/insert-events.d.ts +1 -0
  27. package/dist/types-ts4.5/extensions/types/utils.d.ts +2 -1
  28. package/dist/types-ts4.5/types/annotation/index.d.ts +4 -0
  29. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 78.29.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#90964](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/90964) [`6e7df33eb280`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6e7df33eb280) - [ux] [ED-22992] Auto-dismiss comment button on media if mouse rolling away from media and comment popup, remove popup position transition so that popup does not appear sliding across the page when mouse moving from one media to another
8
+
9
+ ## 78.28.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [#87119](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/87119) [`0cea7cb799c3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0cea7cb799c3) - [EDF-462] Add analytics for AI Blocks
14
+
3
15
  ## 78.28.0
4
16
 
5
17
  ### Minor Changes
@@ -230,6 +230,7 @@ var ACTION_SUBJECT = exports.ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJ
230
230
  ACTION_SUBJECT["TOOLTIP"] = "tooltip";
231
231
  ACTION_SUBJECT["LOOM"] = "loom";
232
232
  ACTION_SUBJECT["MULTI_BODIED_EXTENSION"] = "multiBodiedExtension";
233
+ ACTION_SUBJECT["BODIED_EXTENSION"] = "bodiedExtension";
233
234
  return ACTION_SUBJECT;
234
235
  }({});
235
236
  var ACTION_SUBJECT_ID = exports.ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
@@ -22,6 +22,12 @@ var isClipboardApiSupported = function isClipboardApiSupported() {
22
22
  var isIEClipboardApiSupported = function isIEClipboardApiSupported() {
23
23
  return window.clipboardData && typeof window.clipboardData.setData === 'function';
24
24
  };
25
+ var isExtensionNode = function isExtensionNode(node) {
26
+ if (node === 'extension' || node === 'bodiedExtension' || node === 'inlineExtension' || node === 'multiBodiedExtension') {
27
+ return true;
28
+ }
29
+ return false;
30
+ };
25
31
  var copyToClipboard = exports.copyToClipboard = /*#__PURE__*/function () {
26
32
  var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(textToCopy) {
27
33
  return _regenerator.default.wrap(function _callee$(_context) {
@@ -136,11 +142,21 @@ var getAnalyticsPayload = exports.getAnalyticsPayload = function getAnalyticsPay
136
142
  doc = state.doc;
137
143
  var selectionAnalyticsPayload = (0, _selection.getNodeSelectionAnalyticsPayload)(selection) || (0, _selection.getRangeSelectionAnalyticsPayload)(selection, doc) || (0, _selection.getAllSelectionAnalyticsPayload)(selection) || (0, _selection.getCellSelectionAnalyticsPayload)(state);
138
144
  if (selectionAnalyticsPayload) {
145
+ var _attributes;
139
146
  var selectionActionSubjectId = selectionAnalyticsPayload.actionSubjectId;
147
+ var node = (_attributes = selectionAnalyticsPayload.attributes) === null || _attributes === void 0 ? void 0 : _attributes.node;
140
148
  var content = [];
149
+ var extensionType;
150
+ var extensionKey;
141
151
  switch (selectionActionSubjectId) {
142
152
  case _analytics.ACTION_SUBJECT_ID.NODE:
143
- content.push(selectionAnalyticsPayload.attributes.node);
153
+ if (node) {
154
+ content.push(node);
155
+ if (isExtensionNode(node)) {
156
+ extensionType = selection.node.attrs.extensionType;
157
+ extensionKey = selection.node.attrs.extensionKey;
158
+ }
159
+ }
144
160
  break;
145
161
  case _analytics.ACTION_SUBJECT_ID.RANGE:
146
162
  content.push.apply(content, (0, _toConsumableArray2.default)(selectionAnalyticsPayload.attributes.nodes));
@@ -156,6 +172,18 @@ var getAnalyticsPayload = exports.getAnalyticsPayload = function getAnalyticsPay
156
172
  break;
157
173
  }
158
174
  }
175
+ if (isExtensionNode(node)) {
176
+ return {
177
+ eventType: _analytics.EVENT_TYPE.TRACK,
178
+ action: action,
179
+ actionSubject: _analytics.ACTION_SUBJECT.DOCUMENT,
180
+ attributes: {
181
+ content: content,
182
+ extensionKey: extensionKey,
183
+ extensionType: extensionType
184
+ }
185
+ };
186
+ }
159
187
  return {
160
188
  eventType: _analytics.EVENT_TYPE.TRACK,
161
189
  action: action,
@@ -37,6 +37,7 @@ function buildMenuItem(manifest, extensionModule) {
37
37
  key: key,
38
38
  title: title,
39
39
  extensionType: manifest.type,
40
+ extensionKey: manifest.key,
40
41
  keywords: extensionModule.keywords || manifest.keywords || [],
41
42
  featured: extensionModule.featured || false,
42
43
  categories: extensionModule.categories || manifest.categories || [],
@@ -16,7 +16,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
16
16
  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 && Object.prototype.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; }
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 = "78.28.0";
19
+ var packageVersion = "78.29.0";
20
20
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
21
21
  // Remove URL as it has UGC
22
22
  // TODO: Sanitise the URL instead of just removing it
@@ -22,7 +22,7 @@ var _templateObject, _templateObject2, _templateObject3;
22
22
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
23
23
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */
24
24
  var packageName = "@atlaskit/editor-common";
25
- var packageVersion = "78.28.0";
25
+ var packageVersion = "78.29.0";
26
26
  var halfFocusRing = 1;
27
27
  var dropOffset = '0, 8';
28
28
  var DropList = /*#__PURE__*/function (_Component) {
@@ -224,6 +224,7 @@ export let ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJECT) {
224
224
  ACTION_SUBJECT["TOOLTIP"] = "tooltip";
225
225
  ACTION_SUBJECT["LOOM"] = "loom";
226
226
  ACTION_SUBJECT["MULTI_BODIED_EXTENSION"] = "multiBodiedExtension";
227
+ ACTION_SUBJECT["BODIED_EXTENSION"] = "bodiedExtension";
227
228
  return ACTION_SUBJECT;
228
229
  }({});
229
230
  export let ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
@@ -4,6 +4,12 @@ import { ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '../analytics';
4
4
  import { getAllSelectionAnalyticsPayload, getCellSelectionAnalyticsPayload, getNodeSelectionAnalyticsPayload, getRangeSelectionAnalyticsPayload } from '../selection';
5
5
  const isClipboardApiSupported = () => !!navigator.clipboard && typeof navigator.clipboard.writeText === 'function';
6
6
  const isIEClipboardApiSupported = () => window.clipboardData && typeof window.clipboardData.setData === 'function';
7
+ const isExtensionNode = node => {
8
+ if (node === 'extension' || node === 'bodiedExtension' || node === 'inlineExtension' || node === 'multiBodiedExtension') {
9
+ return true;
10
+ }
11
+ return false;
12
+ };
7
13
  export const copyToClipboard = async textToCopy => {
8
14
  if (isClipboardApiSupported()) {
9
15
  try {
@@ -61,13 +67,23 @@ export const getAnalyticsPayload = (state, action) => {
61
67
  } = state;
62
68
  const selectionAnalyticsPayload = getNodeSelectionAnalyticsPayload(selection) || getRangeSelectionAnalyticsPayload(selection, doc) || getAllSelectionAnalyticsPayload(selection) || getCellSelectionAnalyticsPayload(state);
63
69
  if (selectionAnalyticsPayload) {
70
+ var _attributes;
64
71
  const {
65
72
  actionSubjectId: selectionActionSubjectId
66
73
  } = selectionAnalyticsPayload;
74
+ const node = (_attributes = selectionAnalyticsPayload.attributes) === null || _attributes === void 0 ? void 0 : _attributes.node;
67
75
  let content = [];
76
+ let extensionType;
77
+ let extensionKey;
68
78
  switch (selectionActionSubjectId) {
69
79
  case ACTION_SUBJECT_ID.NODE:
70
- content.push(selectionAnalyticsPayload.attributes.node);
80
+ if (node) {
81
+ content.push(node);
82
+ if (isExtensionNode(node)) {
83
+ extensionType = selection.node.attrs.extensionType;
84
+ extensionKey = selection.node.attrs.extensionKey;
85
+ }
86
+ }
71
87
  break;
72
88
  case ACTION_SUBJECT_ID.RANGE:
73
89
  content.push(...selectionAnalyticsPayload.attributes.nodes);
@@ -84,6 +100,18 @@ export const getAnalyticsPayload = (state, action) => {
84
100
  break;
85
101
  }
86
102
  }
103
+ if (isExtensionNode(node)) {
104
+ return {
105
+ eventType: EVENT_TYPE.TRACK,
106
+ action,
107
+ actionSubject: ACTION_SUBJECT.DOCUMENT,
108
+ attributes: {
109
+ content,
110
+ extensionKey,
111
+ extensionType
112
+ }
113
+ };
114
+ }
87
115
  return {
88
116
  eventType: EVENT_TYPE.TRACK,
89
117
  action,
@@ -14,6 +14,7 @@ export function buildMenuItem(manifest, extensionModule) {
14
14
  key,
15
15
  title,
16
16
  extensionType: manifest.type,
17
+ extensionKey: manifest.key,
17
18
  keywords: extensionModule.keywords || manifest.keywords || [],
18
19
  featured: extensionModule.featured || false,
19
20
  categories: extensionModule.categories || manifest.categories || [],
@@ -1,6 +1,6 @@
1
1
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
2
2
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
3
- const packageVersion = "78.28.0";
3
+ const packageVersion = "78.29.0";
4
4
  const sanitiseSentryEvents = (data, _hint) => {
5
5
  // Remove URL as it has UGC
6
6
  // TODO: Sanitise the URL instead of just removing it
@@ -7,7 +7,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
7
7
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
8
8
  import Layer from '../Layer';
9
9
  const packageName = "@atlaskit/editor-common";
10
- const packageVersion = "78.28.0";
10
+ const packageVersion = "78.29.0";
11
11
  const halfFocusRing = 1;
12
12
  const dropOffset = '0, 8';
13
13
  class DropList extends Component {
@@ -224,6 +224,7 @@ export var ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJECT) {
224
224
  ACTION_SUBJECT["TOOLTIP"] = "tooltip";
225
225
  ACTION_SUBJECT["LOOM"] = "loom";
226
226
  ACTION_SUBJECT["MULTI_BODIED_EXTENSION"] = "multiBodiedExtension";
227
+ ACTION_SUBJECT["BODIED_EXTENSION"] = "bodiedExtension";
227
228
  return ACTION_SUBJECT;
228
229
  }({});
229
230
  export var ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
@@ -12,6 +12,12 @@ var isClipboardApiSupported = function isClipboardApiSupported() {
12
12
  var isIEClipboardApiSupported = function isIEClipboardApiSupported() {
13
13
  return window.clipboardData && typeof window.clipboardData.setData === 'function';
14
14
  };
15
+ var isExtensionNode = function isExtensionNode(node) {
16
+ if (node === 'extension' || node === 'bodiedExtension' || node === 'inlineExtension' || node === 'multiBodiedExtension') {
17
+ return true;
18
+ }
19
+ return false;
20
+ };
15
21
  export var copyToClipboard = /*#__PURE__*/function () {
16
22
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(textToCopy) {
17
23
  return _regeneratorRuntime.wrap(function _callee$(_context) {
@@ -126,11 +132,21 @@ export var getAnalyticsPayload = function getAnalyticsPayload(state, action) {
126
132
  doc = state.doc;
127
133
  var selectionAnalyticsPayload = getNodeSelectionAnalyticsPayload(selection) || getRangeSelectionAnalyticsPayload(selection, doc) || getAllSelectionAnalyticsPayload(selection) || getCellSelectionAnalyticsPayload(state);
128
134
  if (selectionAnalyticsPayload) {
135
+ var _attributes;
129
136
  var selectionActionSubjectId = selectionAnalyticsPayload.actionSubjectId;
137
+ var node = (_attributes = selectionAnalyticsPayload.attributes) === null || _attributes === void 0 ? void 0 : _attributes.node;
130
138
  var content = [];
139
+ var extensionType;
140
+ var extensionKey;
131
141
  switch (selectionActionSubjectId) {
132
142
  case ACTION_SUBJECT_ID.NODE:
133
- content.push(selectionAnalyticsPayload.attributes.node);
143
+ if (node) {
144
+ content.push(node);
145
+ if (isExtensionNode(node)) {
146
+ extensionType = selection.node.attrs.extensionType;
147
+ extensionKey = selection.node.attrs.extensionKey;
148
+ }
149
+ }
134
150
  break;
135
151
  case ACTION_SUBJECT_ID.RANGE:
136
152
  content.push.apply(content, _toConsumableArray(selectionAnalyticsPayload.attributes.nodes));
@@ -146,6 +162,18 @@ export var getAnalyticsPayload = function getAnalyticsPayload(state, action) {
146
162
  break;
147
163
  }
148
164
  }
165
+ if (isExtensionNode(node)) {
166
+ return {
167
+ eventType: EVENT_TYPE.TRACK,
168
+ action: action,
169
+ actionSubject: ACTION_SUBJECT.DOCUMENT,
170
+ attributes: {
171
+ content: content,
172
+ extensionKey: extensionKey,
173
+ extensionType: extensionType
174
+ }
175
+ };
176
+ }
149
177
  return {
150
178
  eventType: EVENT_TYPE.TRACK,
151
179
  action: action,
@@ -25,6 +25,7 @@ export function buildMenuItem(manifest, extensionModule) {
25
25
  key: key,
26
26
  title: title,
27
27
  extensionType: manifest.type,
28
+ extensionKey: manifest.key,
28
29
  keywords: extensionModule.keywords || manifest.keywords || [],
29
30
  featured: extensionModule.featured || false,
30
31
  categories: extensionModule.categories || manifest.categories || [],
@@ -6,7 +6,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
6
6
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7
7
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
8
8
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
9
- var packageVersion = "78.28.0";
9
+ var packageVersion = "78.29.0";
10
10
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
11
11
  // Remove URL as it has UGC
12
12
  // TODO: Sanitise the URL instead of just removing it
@@ -17,7 +17,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
17
17
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
18
18
  import Layer from '../Layer';
19
19
  var packageName = "@atlaskit/editor-common";
20
- var packageVersion = "78.28.0";
20
+ var packageVersion = "78.29.0";
21
21
  var halfFocusRing = 1;
22
22
  var dropOffset = '0, 8';
23
23
  var DropList = /*#__PURE__*/function (_Component) {
@@ -1,12 +1,17 @@
1
- import { ACTION, ACTION_SUBJECT } from './enums';
2
- import { TrackAEP } from './utils';
1
+ import type { ACTION, ACTION_SUBJECT } from './enums';
2
+ import type { TrackAEP } from './utils';
3
3
  type CopyAEP = TrackAEP<ACTION.COPIED, ACTION_SUBJECT.DOCUMENT, undefined, {
4
4
  content: string[];
5
5
  inputMethod?: string;
6
6
  nodeType?: string;
7
+ extensionType?: string;
8
+ extensionKey?: string;
7
9
  }, undefined>;
8
10
  type CutAEP = TrackAEP<ACTION.CUT, ACTION_SUBJECT.DOCUMENT, undefined, {
9
11
  content: string[];
12
+ nodeType?: string;
13
+ extensionType?: string;
14
+ extensionKey?: string;
10
15
  }, undefined>;
11
16
  export type CutCopyEventPayload = CutAEP | CopyAEP;
12
17
  export {};
@@ -227,7 +227,8 @@ export declare enum ACTION_SUBJECT {
227
227
  LINK = "link",
228
228
  TOOLTIP = "tooltip",
229
229
  LOOM = "loom",
230
- MULTI_BODIED_EXTENSION = "multiBodiedExtension"
230
+ MULTI_BODIED_EXTENSION = "multiBodiedExtension",
231
+ BODIED_EXTENSION = "bodiedExtension"
231
232
  }
232
233
  export declare enum ACTION_SUBJECT_ID {
233
234
  ACTION = "action",
@@ -30,8 +30,13 @@ type ExtensionUpdateAEP = TrackAEP<ACTION.UPDATED | ACTION.ERRORED, ACTION_SUBJE
30
30
  selection: SelectionJson;
31
31
  targetSelectionSource: TARGET_SELECTION_SOURCE;
32
32
  }, INPUT_METHOD.MACRO_BROWSER | INPUT_METHOD.CONFIG_PANEL | INPUT_METHOD.TOOLBAR>;
33
+ type ExtensionDeletedAEP = TrackAEP<ACTION.DELETED, ACTION_SUBJECT.EXTENSION, ExtensionType, {
34
+ extensionType: string;
35
+ extensionKey: string;
36
+ localId: string;
37
+ }, INPUT_METHOD.TOOLBAR>;
33
38
  type ExtensionAPICalledPayload = TrackAEP<ACTION.INVOKED, ACTION_SUBJECT.EXTENSION, ACTION_SUBJECT_ID.EXTENSION_API, {
34
39
  functionName: string;
35
40
  }, INPUT_METHOD.EXTENSION_API>;
36
- export type ExtensionEventPayload = ExtensionUpdateAEP | ExtensionAPICalledPayload;
41
+ export type ExtensionEventPayload = ExtensionUpdateAEP | ExtensionDeletedAEP | ExtensionAPICalledPayload;
37
42
  export {};
@@ -106,6 +106,7 @@ type InsertDateAEP = InsertAEP<ACTION_SUBJECT_ID.DATE, {
106
106
  }, undefined>;
107
107
  type InsertExtensionAEP = InsertAEP<ACTION_SUBJECT_ID.EXTENSION, {
108
108
  extensionType: string;
109
+ extensionKey: string;
109
110
  key: string;
110
111
  inputMethod: INPUT_METHOD.QUICK_INSERT;
111
112
  }, any>;
@@ -1,8 +1,9 @@
1
1
  import type { ADFEntity } from '@atlaskit/adf-utils/types';
2
- import { ExtensionModuleActionHandler, ExtensionType, Icon } from './extension-manifest';
2
+ import type { ExtensionKey, ExtensionModuleActionHandler, ExtensionType, Icon } from './extension-manifest';
3
3
  export type MenuItem = {
4
4
  key: string;
5
5
  extensionType: ExtensionType;
6
+ extensionKey: ExtensionKey;
6
7
  title: string;
7
8
  description?: string;
8
9
  summary?: string;
@@ -79,6 +79,10 @@ export type InlineCommentHoverComponentProps = {
79
79
  * Range selected
80
80
  */
81
81
  range: Range;
82
+ /**
83
+ * Is mouse within the range container
84
+ */
85
+ isWithinRange: boolean;
82
86
  /**
83
87
  * Renderer/Editor DOM element ancestors wrapping the selection.
84
88
  */
@@ -1,12 +1,17 @@
1
- import { ACTION, ACTION_SUBJECT } from './enums';
2
- import { TrackAEP } from './utils';
1
+ import type { ACTION, ACTION_SUBJECT } from './enums';
2
+ import type { TrackAEP } from './utils';
3
3
  type CopyAEP = TrackAEP<ACTION.COPIED, ACTION_SUBJECT.DOCUMENT, undefined, {
4
4
  content: string[];
5
5
  inputMethod?: string;
6
6
  nodeType?: string;
7
+ extensionType?: string;
8
+ extensionKey?: string;
7
9
  }, undefined>;
8
10
  type CutAEP = TrackAEP<ACTION.CUT, ACTION_SUBJECT.DOCUMENT, undefined, {
9
11
  content: string[];
12
+ nodeType?: string;
13
+ extensionType?: string;
14
+ extensionKey?: string;
10
15
  }, undefined>;
11
16
  export type CutCopyEventPayload = CutAEP | CopyAEP;
12
17
  export {};
@@ -227,7 +227,8 @@ export declare enum ACTION_SUBJECT {
227
227
  LINK = "link",
228
228
  TOOLTIP = "tooltip",
229
229
  LOOM = "loom",
230
- MULTI_BODIED_EXTENSION = "multiBodiedExtension"
230
+ MULTI_BODIED_EXTENSION = "multiBodiedExtension",
231
+ BODIED_EXTENSION = "bodiedExtension"
231
232
  }
232
233
  export declare enum ACTION_SUBJECT_ID {
233
234
  ACTION = "action",
@@ -30,8 +30,13 @@ type ExtensionUpdateAEP = TrackAEP<ACTION.UPDATED | ACTION.ERRORED, ACTION_SUBJE
30
30
  selection: SelectionJson;
31
31
  targetSelectionSource: TARGET_SELECTION_SOURCE;
32
32
  }, INPUT_METHOD.MACRO_BROWSER | INPUT_METHOD.CONFIG_PANEL | INPUT_METHOD.TOOLBAR>;
33
+ type ExtensionDeletedAEP = TrackAEP<ACTION.DELETED, ACTION_SUBJECT.EXTENSION, ExtensionType, {
34
+ extensionType: string;
35
+ extensionKey: string;
36
+ localId: string;
37
+ }, INPUT_METHOD.TOOLBAR>;
33
38
  type ExtensionAPICalledPayload = TrackAEP<ACTION.INVOKED, ACTION_SUBJECT.EXTENSION, ACTION_SUBJECT_ID.EXTENSION_API, {
34
39
  functionName: string;
35
40
  }, INPUT_METHOD.EXTENSION_API>;
36
- export type ExtensionEventPayload = ExtensionUpdateAEP | ExtensionAPICalledPayload;
41
+ export type ExtensionEventPayload = ExtensionUpdateAEP | ExtensionDeletedAEP | ExtensionAPICalledPayload;
37
42
  export {};
@@ -106,6 +106,7 @@ type InsertDateAEP = InsertAEP<ACTION_SUBJECT_ID.DATE, {
106
106
  }, undefined>;
107
107
  type InsertExtensionAEP = InsertAEP<ACTION_SUBJECT_ID.EXTENSION, {
108
108
  extensionType: string;
109
+ extensionKey: string;
109
110
  key: string;
110
111
  inputMethod: INPUT_METHOD.QUICK_INSERT;
111
112
  }, any>;
@@ -1,8 +1,9 @@
1
1
  import type { ADFEntity } from '@atlaskit/adf-utils/types';
2
- import { ExtensionModuleActionHandler, ExtensionType, Icon } from './extension-manifest';
2
+ import type { ExtensionKey, ExtensionModuleActionHandler, ExtensionType, Icon } from './extension-manifest';
3
3
  export type MenuItem = {
4
4
  key: string;
5
5
  extensionType: ExtensionType;
6
+ extensionKey: ExtensionKey;
6
7
  title: string;
7
8
  description?: string;
8
9
  summary?: string;
@@ -79,6 +79,10 @@ export type InlineCommentHoverComponentProps = {
79
79
  * Range selected
80
80
  */
81
81
  range: Range;
82
+ /**
83
+ * Is mouse within the range container
84
+ */
85
+ isWithinRange: boolean;
82
86
  /**
83
87
  * Renderer/Editor DOM element ancestors wrapping the selection.
84
88
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "78.28.0",
3
+ "version": "78.29.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/"