@atlaskit/editor-common 86.4.0 → 86.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.
Files changed (36) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/cjs/analytics/types/view-events.js +5 -0
  3. package/dist/cjs/monitoring/error.js +1 -1
  4. package/dist/cjs/ui/DropList/index.js +1 -1
  5. package/dist/cjs/ui/FloatingToolbar/Button.js +11 -1
  6. package/dist/cjs/utils/annotation/index.js +15 -0
  7. package/dist/cjs/utils/index.js +6 -0
  8. package/dist/es2019/analytics/types/view-events.js +1 -0
  9. package/dist/es2019/monitoring/error.js +1 -1
  10. package/dist/es2019/ui/DropList/index.js +1 -1
  11. package/dist/es2019/ui/FloatingToolbar/Button.js +8 -1
  12. package/dist/es2019/utils/annotation/index.js +12 -0
  13. package/dist/es2019/utils/index.js +1 -1
  14. package/dist/esm/analytics/types/view-events.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/esm/ui/FloatingToolbar/Button.js +8 -1
  18. package/dist/esm/utils/annotation/index.js +14 -0
  19. package/dist/esm/utils/index.js +1 -1
  20. package/dist/types/analytics/index.d.ts +1 -1
  21. package/dist/types/analytics/types/events.d.ts +2 -1
  22. package/dist/types/analytics/types/index.d.ts +1 -0
  23. package/dist/types/analytics/types/view-events.d.ts +9 -0
  24. package/dist/types/types/floating-toolbar.d.ts +1 -0
  25. package/dist/types/ui/FloatingToolbar/Button.d.ts +2 -1
  26. package/dist/types/utils/annotation/index.d.ts +2 -1
  27. package/dist/types/utils/index.d.ts +1 -1
  28. package/dist/types-ts4.5/analytics/index.d.ts +1 -1
  29. package/dist/types-ts4.5/analytics/types/events.d.ts +2 -1
  30. package/dist/types-ts4.5/analytics/types/index.d.ts +1 -0
  31. package/dist/types-ts4.5/analytics/types/view-events.d.ts +9 -0
  32. package/dist/types-ts4.5/types/floating-toolbar.d.ts +1 -0
  33. package/dist/types-ts4.5/ui/FloatingToolbar/Button.d.ts +2 -1
  34. package/dist/types-ts4.5/utils/annotation/index.d.ts +2 -1
  35. package/dist/types-ts4.5/utils/index.d.ts +1 -1
  36. package/package.json +6 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 86.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#123058](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/123058)
8
+ [`2f8d14c320506`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2f8d14c320506) -
9
+ ED-24314 Adds new analytics event that fires editors inline comment selection dialog comment
10
+ button appears
11
+
12
+ ## 86.4.1
13
+
14
+ ### Patch Changes
15
+
16
+ - [#122612](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/122612)
17
+ [`01a85ce0a88ec`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/01a85ce0a88ec) -
18
+ [ux] ED-23705 Add logic to handle annotations on inline nodes when they are inserted or pasted.
19
+ Covers the following inline nodes: emoji, status, mention, date, inlineCard
20
+ - Updated dependencies
21
+
3
22
  ## 86.4.0
4
23
 
5
24
  ### Minor Changes
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -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 && 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; }
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 = "86.4.0";
20
+ var packageVersion = "86.5.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
@@ -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 = "86.4.0";
26
+ var packageVersion = "86.5.0";
27
27
  var halfFocusRing = 1;
28
28
  var dropOffset = '0, 8';
29
29
  var DropList = /*#__PURE__*/function (_Component) {
@@ -1,17 +1,20 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ var _typeof = require("@babel/runtime/helpers/typeof");
4
5
  Object.defineProperty(exports, "__esModule", {
5
6
  value: true
6
7
  });
7
8
  exports.default = void 0;
8
9
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
10
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
10
- var _react = _interopRequireDefault(require("react"));
11
+ var _react = _interopRequireWildcard(require("react"));
11
12
  var _customThemeButton = _interopRequireDefault(require("@atlaskit/button/custom-theme-button"));
12
13
  var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
13
14
  var _styles = require("./styles");
14
15
  var _excluded = ["buttonStyles"];
16
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
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 && 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; }
15
18
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
16
19
  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) { (0, _defineProperty2.default)(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; }
17
20
  var _default = exports.default = function _default(_ref) {
@@ -24,6 +27,7 @@ var _default = exports.default = function _default(_ref) {
24
27
  onMouseLeave = _ref.onMouseLeave,
25
28
  onFocus = _ref.onFocus,
26
29
  onBlur = _ref.onBlur,
30
+ onMount = _ref.onMount,
27
31
  selected = _ref.selected,
28
32
  disabled = _ref.disabled,
29
33
  href = _ref.href,
@@ -48,6 +52,12 @@ var _default = exports.default = function _default(_ref) {
48
52
  var isButtonPressed = ariaHasPopup ? undefined : selected;
49
53
  var ariaChecked = isRadioButton ? isButtonPressed : undefined;
50
54
  var ariaPressed = isRadioButton ? undefined : isButtonPressed;
55
+ (0, _react.useEffect)(function () {
56
+ if (onMount) {
57
+ onMount();
58
+ }
59
+ // eslint-disable-next-line react-hooks/exhaustive-deps
60
+ }, []);
51
61
  return /*#__PURE__*/_react.default.createElement(_tooltip.default
52
62
  // Only fallback to title for tooltip if title is not shown
53
63
  , {
@@ -8,6 +8,7 @@ exports.canApplyAnnotationOnRange = void 0;
8
8
  exports.containsAnyAnnotations = containsAnyAnnotations;
9
9
  exports.getAnnotationIdsFromRange = void 0;
10
10
  exports.getAnnotationInlineNodeTypes = getAnnotationInlineNodeTypes;
11
+ exports.getAnnotationMarksForPos = getAnnotationMarksForPos;
11
12
  exports.getRangeInlineNodeNames = getRangeInlineNodeNames;
12
13
  exports.hasAnnotationMark = hasAnnotationMark;
13
14
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
@@ -152,4 +153,18 @@ function getAnnotationInlineNodeTypes(state, annotationId) {
152
153
 
153
154
  // This sorting is done to make human consumption easier (ie. in dev tools, test snapshots, analytics events, ...)
154
155
  return (0, _toConsumableArray2.default)(inlineNodeNames).sort();
156
+ }
157
+
158
+ /*
159
+ Get the annotations marks from the given position and add them to the original marks array if they exist.
160
+ Used with the creation of the inline nodes: emoji, status, dates, mentions & inlineCards.
161
+ */
162
+ function getAnnotationMarksForPos(pos) {
163
+ if (!(0, _platformFeatureFlags.fg)('editor_inline_comments_paste_insert_nodes')) {
164
+ return undefined;
165
+ }
166
+ var annotationMarks = pos.marks().filter(function (mark) {
167
+ return mark.type === pos.doc.type.schema.marks.annotation;
168
+ });
169
+ return annotationMarks;
155
170
  }
@@ -408,6 +408,12 @@ Object.defineProperty(exports, "getAnnotationInlineNodeTypes", {
408
408
  return _annotation.getAnnotationInlineNodeTypes;
409
409
  }
410
410
  });
411
+ Object.defineProperty(exports, "getAnnotationMarksForPos", {
412
+ enumerable: true,
413
+ get: function get() {
414
+ return _annotation.getAnnotationMarksForPos;
415
+ }
416
+ });
411
417
  Object.defineProperty(exports, "getChangedNodes", {
412
418
  enumerable: true,
413
419
  get: function get() {
@@ -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 = "86.4.0";
4
+ const packageVersion = "86.5.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
@@ -12,7 +12,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
12
12
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
13
13
  import Layer from '../Layer';
14
14
  const packageName = "@atlaskit/editor-common";
15
- const packageVersion = "86.4.0";
15
+ const packageVersion = "86.5.0";
16
16
  const halfFocusRing = 1;
17
17
  const dropOffset = '0, 8';
18
18
  class DropList extends Component {
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React, { useEffect } from 'react';
2
2
  import Button from '@atlaskit/button/custom-theme-button';
3
3
  import Tooltip from '@atlaskit/tooltip';
4
4
  import { getButtonStyles, iconOnlySpacing } from './styles';
@@ -12,6 +12,7 @@ export default (({
12
12
  onMouseLeave,
13
13
  onFocus,
14
14
  onBlur,
15
+ onMount,
15
16
  selected,
16
17
  disabled,
17
18
  href,
@@ -35,6 +36,12 @@ export default (({
35
36
  const isButtonPressed = ariaHasPopup ? undefined : selected;
36
37
  const ariaChecked = isRadioButton ? isButtonPressed : undefined;
37
38
  const ariaPressed = isRadioButton ? undefined : isButtonPressed;
39
+ useEffect(() => {
40
+ if (onMount) {
41
+ onMount();
42
+ }
43
+ // eslint-disable-next-line react-hooks/exhaustive-deps
44
+ }, []);
38
45
  return /*#__PURE__*/React.createElement(Tooltip
39
46
  // Only fallback to title for tooltip if title is not shown
40
47
  , {
@@ -150,4 +150,16 @@ export function getAnnotationInlineNodeTypes(state, annotationId) {
150
150
 
151
151
  // This sorting is done to make human consumption easier (ie. in dev tools, test snapshots, analytics events, ...)
152
152
  return [...inlineNodeNames].sort();
153
+ }
154
+
155
+ /*
156
+ Get the annotations marks from the given position and add them to the original marks array if they exist.
157
+ Used with the creation of the inline nodes: emoji, status, dates, mentions & inlineCards.
158
+ */
159
+ export function getAnnotationMarksForPos(pos) {
160
+ if (!fg('editor_inline_comments_paste_insert_nodes')) {
161
+ return undefined;
162
+ }
163
+ const annotationMarks = pos.marks().filter(mark => mark.type === pos.doc.type.schema.marks.annotation);
164
+ return annotationMarks;
153
165
  }
@@ -2,7 +2,7 @@ import { hasParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
2
2
  import { hasDocAsParent } from './document';
3
3
  import { isEmptyParagraph } from './editor-core-utils';
4
4
  export { shouldAutoLinkifyMatch } from './should-auto-linkify-tld';
5
- export { canApplyAnnotationOnRange, containsAnyAnnotations, getAnnotationIdsFromRange, getAnnotationInlineNodeTypes, hasAnnotationMark, getRangeInlineNodeNames } from './annotation';
5
+ export { getAnnotationMarksForPos, canApplyAnnotationOnRange, containsAnyAnnotations, getAnnotationIdsFromRange, getAnnotationInlineNodeTypes, hasAnnotationMark, getRangeInlineNodeNames } from './annotation';
6
6
  export { getExtensionLozengeData } from './macro';
7
7
  export { default as browser } from './browser';
8
8
  export { default as ErrorReporter } from './error-reporter';
@@ -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 = "86.4.0";
10
+ var packageVersion = "86.5.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
@@ -20,7 +20,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
20
20
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
21
21
  import Layer from '../Layer';
22
22
  var packageName = "@atlaskit/editor-common";
23
- var packageVersion = "86.4.0";
23
+ var packageVersion = "86.5.0";
24
24
  var halfFocusRing = 1;
25
25
  var dropOffset = '0, 8';
26
26
  var DropList = /*#__PURE__*/function (_Component) {
@@ -3,7 +3,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
3
3
  var _excluded = ["buttonStyles"];
4
4
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
5
  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; }
6
- import React from 'react';
6
+ import React, { useEffect } from 'react';
7
7
  import Button from '@atlaskit/button/custom-theme-button';
8
8
  import Tooltip from '@atlaskit/tooltip';
9
9
  import { getButtonStyles, iconOnlySpacing } from './styles';
@@ -17,6 +17,7 @@ export default (function (_ref) {
17
17
  onMouseLeave = _ref.onMouseLeave,
18
18
  onFocus = _ref.onFocus,
19
19
  onBlur = _ref.onBlur,
20
+ onMount = _ref.onMount,
20
21
  selected = _ref.selected,
21
22
  disabled = _ref.disabled,
22
23
  href = _ref.href,
@@ -41,6 +42,12 @@ export default (function (_ref) {
41
42
  var isButtonPressed = ariaHasPopup ? undefined : selected;
42
43
  var ariaChecked = isRadioButton ? isButtonPressed : undefined;
43
44
  var ariaPressed = isRadioButton ? undefined : isButtonPressed;
45
+ useEffect(function () {
46
+ if (onMount) {
47
+ onMount();
48
+ }
49
+ // eslint-disable-next-line react-hooks/exhaustive-deps
50
+ }, []);
44
51
  return /*#__PURE__*/React.createElement(Tooltip
45
52
  // Only fallback to title for tooltip if title is not shown
46
53
  , {
@@ -140,4 +140,18 @@ export function getAnnotationInlineNodeTypes(state, annotationId) {
140
140
 
141
141
  // This sorting is done to make human consumption easier (ie. in dev tools, test snapshots, analytics events, ...)
142
142
  return _toConsumableArray(inlineNodeNames).sort();
143
+ }
144
+
145
+ /*
146
+ Get the annotations marks from the given position and add them to the original marks array if they exist.
147
+ Used with the creation of the inline nodes: emoji, status, dates, mentions & inlineCards.
148
+ */
149
+ export function getAnnotationMarksForPos(pos) {
150
+ if (!fg('editor_inline_comments_paste_insert_nodes')) {
151
+ return undefined;
152
+ }
153
+ var annotationMarks = pos.marks().filter(function (mark) {
154
+ return mark.type === pos.doc.type.schema.marks.annotation;
155
+ });
156
+ return annotationMarks;
143
157
  }
@@ -2,7 +2,7 @@ import { hasParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
2
2
  import { hasDocAsParent } from './document';
3
3
  import { isEmptyParagraph } from './editor-core-utils';
4
4
  export { shouldAutoLinkifyMatch } from './should-auto-linkify-tld';
5
- export { canApplyAnnotationOnRange, containsAnyAnnotations, getAnnotationIdsFromRange, getAnnotationInlineNodeTypes, hasAnnotationMark, getRangeInlineNodeNames } from './annotation';
5
+ export { getAnnotationMarksForPos, canApplyAnnotationOnRange, containsAnyAnnotations, getAnnotationIdsFromRange, getAnnotationInlineNodeTypes, hasAnnotationMark, getRangeInlineNodeNames } from './annotation';
6
6
  export { getExtensionLozengeData } from './macro';
7
7
  export { default as browser } from './browser';
8
8
  export { default as ErrorReporter } from './error-reporter';
@@ -1,5 +1,5 @@
1
1
  export { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, BROWSER_FREEZE_INTERACTION_TYPE, CONTENT_COMPONENT, CHANGE_ALIGNMENT_REASON, DELETE_DIRECTION, EVENT_TYPE, FLOATING_CONTROLS_TITLE, FULL_WIDTH_MODE, GAP_CURSOR_POSITION, INDENT_DIRECTION, INDENT_TYPE, INPUT_METHOD, LAYOUT_TYPE, LINK_REPRESENTATION, LINK_RESOURCE, LINK_STATUS, LIST_TEXT_SCENARIOS, JOIN_SCENARIOS_WHEN_TYPING_TO_INSERT_LIST, OUTDENT_SCENARIOS, MODE, PLATFORMS, PUNC, PasteContents, PasteSources, PasteTypes, RESOLVE_METHOD, SELECTION_TYPE, SELECTION_POSITION, SMART_LINK_TYPE, SYMBOL, SmartLinkNodeContexts, TABLE_ACTION, TABLE_BREAKOUT, TABLE_OVERFLOW_CHANGE_TRIGGER, TABLE_STATUS, TARGET_SELECTION_SOURCE, TOOLBAR_ACTION_SUBJECT_ID, TRIGGER_METHOD, USER_CONTEXT, TABLE_DISPLAY_MODE, VIEW_METHOD, } from './types';
2
- export type { AnalyticsDispatch, AnalyticsEventPayload, AnalyticsEventPayloadCallback, AnalyticsEventPayloadWithChannel, AnnotationAEP, AnnotationAEPAttributes, AnnotationActionType, AnnotationDraftAEPAttributes, AnnotationResolvedAEPAttributes, CaptionTrackAction, ColorPickerAEP, CommonListAnalyticsAttributes, RestartListsAttributesForListOutdented, CreateLinkInlineDialogActionType, CreateLinkInlineDialogEventPayload, DismissedCreateLinkInlineDialogAEP, DispatchAnalyticsEvent, EditLinkToolbarAEP, EnteredTextLinkSearchInputAEP, ErrorEventAttributes, ErrorEventPayload, ExperimentalEventPayload, ExtensionEventPayload, ExtensionType, FeatureExposureAEP, FormatEventPayload, GeneralEventPayload, HighlightedSearchResultsAEP, InputMethodInsertLink, InputMethodInsertMedia, InsertEventPayload, InsertSmartLinkAEP, ListEventPayload, MediaSwitchType, MediaAltTextActionType, MediaEventPayload, MediaLinkAEP, MediaResizeTrackAction, MediaInputResizeTrackAction, MoveContentEventPayload, NodeCount, NodeEventPayload, OperationalAEP, PASTE_ACTION_SUBJECT_ID, PasteContent, PasteEventPayload, PasteSource, PasteType, PluginMethodReport, PluginPerformanceReportData, PluginsReport, QuickSearchPerfAEP, RecentActivitiesPerfAEP, SelectAllAEP, SelectCellAEP, SelectNodeAEP, SelectRangeAEP, SelectedSearchResultsAEP, SelectionEventPayload, SelectionJson, ShownPostQuerySearchResultsAEP, ShownPreQuerySearchResultsAEP, SimplifiedNode, SmartLinkNodeContext, SubstituteEventPayload, TableEventPayload, TextColorSelectedAEP, TextColorSelectedAttr, TextColorShowPaletteToggleAEP, TextColorShowPaletteToggleAttr, ToolbarEventPayload, TransactionEventPayload, TypeAheadPayload, UfoSessionCompletePayloadAEP, UnlinkToolbarAEP, ViewedCreateLinkInlineDialogAEP, FireAnalyticsCallback, FireAnalyticsEvent, FireAnalyticsEventPayload, InitialiseFragmentMarksAEP, ConnectedNodesAEP, DisconnectedSourceAEP, DisconnectedTargetAEP, GotConnectionsAEP, UpdatedFragmentMarkNameAEP, UpdatedSourceAEP, UpdatedTargetAEP, OverflowStateInfo, } from './types';
2
+ export type { AnalyticsDispatch, AnalyticsEventPayload, AnalyticsEventPayloadCallback, AnalyticsEventPayloadWithChannel, AnnotationAEP, AnnotationAEPAttributes, AnnotationActionType, AnnotationDraftAEPAttributes, AnnotationResolvedAEPAttributes, CaptionTrackAction, ColorPickerAEP, CommonListAnalyticsAttributes, RestartListsAttributesForListOutdented, CreateLinkInlineDialogActionType, CreateLinkInlineDialogEventPayload, DismissedCreateLinkInlineDialogAEP, DispatchAnalyticsEvent, EditLinkToolbarAEP, EnteredTextLinkSearchInputAEP, ErrorEventAttributes, ErrorEventPayload, ExperimentalEventPayload, ExtensionEventPayload, ExtensionType, FeatureExposureAEP, FormatEventPayload, GeneralEventPayload, HighlightedSearchResultsAEP, InputMethodInsertLink, InputMethodInsertMedia, InsertEventPayload, InsertSmartLinkAEP, ListEventPayload, MediaSwitchType, MediaAltTextActionType, MediaEventPayload, MediaLinkAEP, MediaResizeTrackAction, MediaInputResizeTrackAction, MoveContentEventPayload, NodeCount, NodeEventPayload, OperationalAEP, PASTE_ACTION_SUBJECT_ID, PasteContent, PasteEventPayload, PasteSource, PasteType, PluginMethodReport, PluginPerformanceReportData, PluginsReport, QuickSearchPerfAEP, RecentActivitiesPerfAEP, SelectAllAEP, SelectCellAEP, SelectNodeAEP, SelectRangeAEP, SelectedSearchResultsAEP, SelectionEventPayload, SelectionJson, ShownPostQuerySearchResultsAEP, ShownPreQuerySearchResultsAEP, SimplifiedNode, SmartLinkNodeContext, SubstituteEventPayload, TableEventPayload, TextColorSelectedAEP, TextColorSelectedAttr, TextColorShowPaletteToggleAEP, TextColorShowPaletteToggleAttr, ToolbarEventPayload, TransactionEventPayload, TypeAheadPayload, UfoSessionCompletePayloadAEP, UnlinkToolbarAEP, ViewedCreateLinkInlineDialogAEP, FireAnalyticsCallback, FireAnalyticsEvent, FireAnalyticsEventPayload, InitialiseFragmentMarksAEP, ConnectedNodesAEP, DisconnectedSourceAEP, DisconnectedTargetAEP, GotConnectionsAEP, UpdatedFragmentMarkNameAEP, UpdatedSourceAEP, UpdatedTargetAEP, OverflowStateInfo, ViewInlineCommentsButtonEventAEP, ViewEventPayload, } from './types';
3
3
  export type { EditorAnalyticsAPI } from './api';
4
4
  export { editorAnalyticsChannel, fireAnalyticsEvent } from './fire-analytics-event';
5
5
  export { getAnalyticsEventsFromTransaction } from './utils';
@@ -33,6 +33,7 @@ import type { SubstituteEventPayload } from './substitute-events';
33
33
  import type { TableEventPayload } from './table-events';
34
34
  import type { TypeAheadPayload } from './type-ahead';
35
35
  import type { OperationalAEP, OperationalExposureAEP, TrackAEP } from './utils';
36
+ import type { ViewEventPayload } from './view-events';
36
37
  type Dispatch<T = any> = (eventName: PluginKey | string, data: T) => void;
37
38
  export type SimplifiedNode = {
38
39
  type: string;
@@ -41,7 +42,7 @@ export type SimplifiedNode = {
41
42
  marks?: string[];
42
43
  content?: SimplifiedNode[];
43
44
  };
44
- 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;
45
+ 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 | ViewEventPayload;
45
46
  type CustomPanelEventPayload = TrackAEP<ACTION.CHANGED_BACKGROUND_COLOR | ACTION.CHANGED_ICON | ACTION.REMOVE_ICON, ACTION_SUBJECT.PANEL, ACTION_SUBJECT_ID.PANEL, {
46
47
  previousColor: string;
47
48
  newColor: string;
@@ -36,3 +36,4 @@ export type { OperationalAEP } from './utils';
36
36
  export type { PluginMethodReport, PluginsReport, NodeCount, PluginPerformanceReportData, } from './performance-report';
37
37
  export type { InitialiseFragmentMarksAEP, ConnectedNodesAEP, DisconnectedSourceAEP, DisconnectedTargetAEP, GotConnectionsAEP, UpdatedFragmentMarkNameAEP, UpdatedSourceAEP, UpdatedTargetAEP, } from './referentiality-events';
38
38
  export type { ElementEventPayload } from './element-events';
39
+ export type { ViewInlineCommentsButtonEventAEP, ViewEventPayload } from './view-events';
@@ -0,0 +1,9 @@
1
+ import type { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, INPUT_METHOD } from './enums';
2
+ import type { MODE } from './general-events';
3
+ import type { UIAEP } from './utils';
4
+ export type ViewInlineCommentsButtonEventAEP = UIAEP<ACTION.VIEWED, ACTION_SUBJECT.BUTTON, ACTION_SUBJECT_ID.INLINE_COMMENT, {
5
+ isDisabled: boolean;
6
+ mode: MODE.EDITOR;
7
+ inputMethod: INPUT_METHOD.FLOATING_TB;
8
+ }, undefined>;
9
+ export type ViewEventPayload = ViewInlineCommentsButtonEventAEP;
@@ -110,6 +110,7 @@ export type FloatingToolbarButton<T extends {}> = {
110
110
  onMouseLeave?: T;
111
111
  onFocus?: T;
112
112
  onBlur?: T;
113
+ onMount?: () => void;
113
114
  icon?: Icon;
114
115
  selected?: boolean;
115
116
  disabled?: boolean;
@@ -11,6 +11,7 @@ export interface Props {
11
11
  onMouseLeave?: <T>(event: React.MouseEvent<T>) => void;
12
12
  onFocus?: <T>(event: React.FocusEvent<T>) => void;
13
13
  onBlur?: <T>(event: React.FocusEvent<T>) => void;
14
+ onMount?: () => void;
14
15
  selected?: boolean;
15
16
  disabled?: boolean;
16
17
  appearance?: ButtonAppearance;
@@ -28,5 +29,5 @@ export interface Props {
28
29
  areaControls?: string;
29
30
  isRadioButton?: boolean;
30
31
  }
31
- declare const _default: ({ title, icon, iconAfter, onClick, onKeyDown, onMouseEnter, onMouseLeave, onFocus, onBlur, selected, disabled, href, target, appearance, children, className, tooltipContent, tooltipStyle, testId, hideTooltipOnClick, ariaHasPopup, tabIndex, areaControls, ariaLabel, isRadioButton, }: Props) => JSX.Element;
32
+ declare const _default: ({ title, icon, iconAfter, onClick, onKeyDown, onMouseEnter, onMouseLeave, onFocus, onBlur, onMount, selected, disabled, href, target, appearance, children, className, tooltipContent, tooltipStyle, testId, hideTooltipOnClick, ariaHasPopup, tabIndex, areaControls, ariaLabel, isRadioButton, }: Props) => JSX.Element;
32
33
  export default _default;
@@ -1,4 +1,4 @@
1
- import type { Node as PMNode, Schema, Slice } from '@atlaskit/editor-prosemirror/model';
1
+ import type { Mark, Node as PMNode, ResolvedPos, Schema, Slice } from '@atlaskit/editor-prosemirror/model';
2
2
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
3
3
  type Range = {
4
4
  from: number;
@@ -30,4 +30,5 @@ export declare function getAnnotationInlineNodeTypes(state: {
30
30
  doc: PMNode;
31
31
  schema: Schema;
32
32
  }, annotationId: string): string[] | undefined;
33
+ export declare function getAnnotationMarksForPos(pos: ResolvedPos): Mark[] | undefined;
33
34
  export {};
@@ -2,7 +2,7 @@ import type { Node as PMNode, ResolvedPos, Schema } from '@atlaskit/editor-prose
2
2
  import type { EditorState, Selection } from '@atlaskit/editor-prosemirror/state';
3
3
  import type { ContentNodeWithPos } from '@atlaskit/editor-prosemirror/utils';
4
4
  export { shouldAutoLinkifyMatch } from './should-auto-linkify-tld';
5
- export { canApplyAnnotationOnRange, containsAnyAnnotations, getAnnotationIdsFromRange, getAnnotationInlineNodeTypes, hasAnnotationMark, getRangeInlineNodeNames, } from './annotation';
5
+ export { getAnnotationMarksForPos, canApplyAnnotationOnRange, containsAnyAnnotations, getAnnotationIdsFromRange, getAnnotationInlineNodeTypes, hasAnnotationMark, getRangeInlineNodeNames, } from './annotation';
6
6
  export { getExtensionLozengeData } from './macro';
7
7
  export type { Params } from './macro';
8
8
  export { default as browser } from './browser';
@@ -1,5 +1,5 @@
1
1
  export { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, BROWSER_FREEZE_INTERACTION_TYPE, CONTENT_COMPONENT, CHANGE_ALIGNMENT_REASON, DELETE_DIRECTION, EVENT_TYPE, FLOATING_CONTROLS_TITLE, FULL_WIDTH_MODE, GAP_CURSOR_POSITION, INDENT_DIRECTION, INDENT_TYPE, INPUT_METHOD, LAYOUT_TYPE, LINK_REPRESENTATION, LINK_RESOURCE, LINK_STATUS, LIST_TEXT_SCENARIOS, JOIN_SCENARIOS_WHEN_TYPING_TO_INSERT_LIST, OUTDENT_SCENARIOS, MODE, PLATFORMS, PUNC, PasteContents, PasteSources, PasteTypes, RESOLVE_METHOD, SELECTION_TYPE, SELECTION_POSITION, SMART_LINK_TYPE, SYMBOL, SmartLinkNodeContexts, TABLE_ACTION, TABLE_BREAKOUT, TABLE_OVERFLOW_CHANGE_TRIGGER, TABLE_STATUS, TARGET_SELECTION_SOURCE, TOOLBAR_ACTION_SUBJECT_ID, TRIGGER_METHOD, USER_CONTEXT, TABLE_DISPLAY_MODE, VIEW_METHOD, } from './types';
2
- export type { AnalyticsDispatch, AnalyticsEventPayload, AnalyticsEventPayloadCallback, AnalyticsEventPayloadWithChannel, AnnotationAEP, AnnotationAEPAttributes, AnnotationActionType, AnnotationDraftAEPAttributes, AnnotationResolvedAEPAttributes, CaptionTrackAction, ColorPickerAEP, CommonListAnalyticsAttributes, RestartListsAttributesForListOutdented, CreateLinkInlineDialogActionType, CreateLinkInlineDialogEventPayload, DismissedCreateLinkInlineDialogAEP, DispatchAnalyticsEvent, EditLinkToolbarAEP, EnteredTextLinkSearchInputAEP, ErrorEventAttributes, ErrorEventPayload, ExperimentalEventPayload, ExtensionEventPayload, ExtensionType, FeatureExposureAEP, FormatEventPayload, GeneralEventPayload, HighlightedSearchResultsAEP, InputMethodInsertLink, InputMethodInsertMedia, InsertEventPayload, InsertSmartLinkAEP, ListEventPayload, MediaSwitchType, MediaAltTextActionType, MediaEventPayload, MediaLinkAEP, MediaResizeTrackAction, MediaInputResizeTrackAction, MoveContentEventPayload, NodeCount, NodeEventPayload, OperationalAEP, PASTE_ACTION_SUBJECT_ID, PasteContent, PasteEventPayload, PasteSource, PasteType, PluginMethodReport, PluginPerformanceReportData, PluginsReport, QuickSearchPerfAEP, RecentActivitiesPerfAEP, SelectAllAEP, SelectCellAEP, SelectNodeAEP, SelectRangeAEP, SelectedSearchResultsAEP, SelectionEventPayload, SelectionJson, ShownPostQuerySearchResultsAEP, ShownPreQuerySearchResultsAEP, SimplifiedNode, SmartLinkNodeContext, SubstituteEventPayload, TableEventPayload, TextColorSelectedAEP, TextColorSelectedAttr, TextColorShowPaletteToggleAEP, TextColorShowPaletteToggleAttr, ToolbarEventPayload, TransactionEventPayload, TypeAheadPayload, UfoSessionCompletePayloadAEP, UnlinkToolbarAEP, ViewedCreateLinkInlineDialogAEP, FireAnalyticsCallback, FireAnalyticsEvent, FireAnalyticsEventPayload, InitialiseFragmentMarksAEP, ConnectedNodesAEP, DisconnectedSourceAEP, DisconnectedTargetAEP, GotConnectionsAEP, UpdatedFragmentMarkNameAEP, UpdatedSourceAEP, UpdatedTargetAEP, OverflowStateInfo, } from './types';
2
+ export type { AnalyticsDispatch, AnalyticsEventPayload, AnalyticsEventPayloadCallback, AnalyticsEventPayloadWithChannel, AnnotationAEP, AnnotationAEPAttributes, AnnotationActionType, AnnotationDraftAEPAttributes, AnnotationResolvedAEPAttributes, CaptionTrackAction, ColorPickerAEP, CommonListAnalyticsAttributes, RestartListsAttributesForListOutdented, CreateLinkInlineDialogActionType, CreateLinkInlineDialogEventPayload, DismissedCreateLinkInlineDialogAEP, DispatchAnalyticsEvent, EditLinkToolbarAEP, EnteredTextLinkSearchInputAEP, ErrorEventAttributes, ErrorEventPayload, ExperimentalEventPayload, ExtensionEventPayload, ExtensionType, FeatureExposureAEP, FormatEventPayload, GeneralEventPayload, HighlightedSearchResultsAEP, InputMethodInsertLink, InputMethodInsertMedia, InsertEventPayload, InsertSmartLinkAEP, ListEventPayload, MediaSwitchType, MediaAltTextActionType, MediaEventPayload, MediaLinkAEP, MediaResizeTrackAction, MediaInputResizeTrackAction, MoveContentEventPayload, NodeCount, NodeEventPayload, OperationalAEP, PASTE_ACTION_SUBJECT_ID, PasteContent, PasteEventPayload, PasteSource, PasteType, PluginMethodReport, PluginPerformanceReportData, PluginsReport, QuickSearchPerfAEP, RecentActivitiesPerfAEP, SelectAllAEP, SelectCellAEP, SelectNodeAEP, SelectRangeAEP, SelectedSearchResultsAEP, SelectionEventPayload, SelectionJson, ShownPostQuerySearchResultsAEP, ShownPreQuerySearchResultsAEP, SimplifiedNode, SmartLinkNodeContext, SubstituteEventPayload, TableEventPayload, TextColorSelectedAEP, TextColorSelectedAttr, TextColorShowPaletteToggleAEP, TextColorShowPaletteToggleAttr, ToolbarEventPayload, TransactionEventPayload, TypeAheadPayload, UfoSessionCompletePayloadAEP, UnlinkToolbarAEP, ViewedCreateLinkInlineDialogAEP, FireAnalyticsCallback, FireAnalyticsEvent, FireAnalyticsEventPayload, InitialiseFragmentMarksAEP, ConnectedNodesAEP, DisconnectedSourceAEP, DisconnectedTargetAEP, GotConnectionsAEP, UpdatedFragmentMarkNameAEP, UpdatedSourceAEP, UpdatedTargetAEP, OverflowStateInfo, ViewInlineCommentsButtonEventAEP, ViewEventPayload, } from './types';
3
3
  export type { EditorAnalyticsAPI } from './api';
4
4
  export { editorAnalyticsChannel, fireAnalyticsEvent } from './fire-analytics-event';
5
5
  export { getAnalyticsEventsFromTransaction } from './utils';
@@ -33,6 +33,7 @@ import type { SubstituteEventPayload } from './substitute-events';
33
33
  import type { TableEventPayload } from './table-events';
34
34
  import type { TypeAheadPayload } from './type-ahead';
35
35
  import type { OperationalAEP, OperationalExposureAEP, TrackAEP } from './utils';
36
+ import type { ViewEventPayload } from './view-events';
36
37
  type Dispatch<T = any> = (eventName: PluginKey | string, data: T) => void;
37
38
  export type SimplifiedNode = {
38
39
  type: string;
@@ -41,7 +42,7 @@ export type SimplifiedNode = {
41
42
  marks?: string[];
42
43
  content?: SimplifiedNode[];
43
44
  };
44
- 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;
45
+ 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 | ViewEventPayload;
45
46
  type CustomPanelEventPayload = TrackAEP<ACTION.CHANGED_BACKGROUND_COLOR | ACTION.CHANGED_ICON | ACTION.REMOVE_ICON, ACTION_SUBJECT.PANEL, ACTION_SUBJECT_ID.PANEL, {
46
47
  previousColor: string;
47
48
  newColor: string;
@@ -36,3 +36,4 @@ export type { OperationalAEP } from './utils';
36
36
  export type { PluginMethodReport, PluginsReport, NodeCount, PluginPerformanceReportData, } from './performance-report';
37
37
  export type { InitialiseFragmentMarksAEP, ConnectedNodesAEP, DisconnectedSourceAEP, DisconnectedTargetAEP, GotConnectionsAEP, UpdatedFragmentMarkNameAEP, UpdatedSourceAEP, UpdatedTargetAEP, } from './referentiality-events';
38
38
  export type { ElementEventPayload } from './element-events';
39
+ export type { ViewInlineCommentsButtonEventAEP, ViewEventPayload } from './view-events';
@@ -0,0 +1,9 @@
1
+ import type { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, INPUT_METHOD } from './enums';
2
+ import type { MODE } from './general-events';
3
+ import type { UIAEP } from './utils';
4
+ export type ViewInlineCommentsButtonEventAEP = UIAEP<ACTION.VIEWED, ACTION_SUBJECT.BUTTON, ACTION_SUBJECT_ID.INLINE_COMMENT, {
5
+ isDisabled: boolean;
6
+ mode: MODE.EDITOR;
7
+ inputMethod: INPUT_METHOD.FLOATING_TB;
8
+ }, undefined>;
9
+ export type ViewEventPayload = ViewInlineCommentsButtonEventAEP;
@@ -110,6 +110,7 @@ export type FloatingToolbarButton<T extends {}> = {
110
110
  onMouseLeave?: T;
111
111
  onFocus?: T;
112
112
  onBlur?: T;
113
+ onMount?: () => void;
113
114
  icon?: Icon;
114
115
  selected?: boolean;
115
116
  disabled?: boolean;
@@ -11,6 +11,7 @@ export interface Props {
11
11
  onMouseLeave?: <T>(event: React.MouseEvent<T>) => void;
12
12
  onFocus?: <T>(event: React.FocusEvent<T>) => void;
13
13
  onBlur?: <T>(event: React.FocusEvent<T>) => void;
14
+ onMount?: () => void;
14
15
  selected?: boolean;
15
16
  disabled?: boolean;
16
17
  appearance?: ButtonAppearance;
@@ -28,5 +29,5 @@ export interface Props {
28
29
  areaControls?: string;
29
30
  isRadioButton?: boolean;
30
31
  }
31
- declare const _default: ({ title, icon, iconAfter, onClick, onKeyDown, onMouseEnter, onMouseLeave, onFocus, onBlur, selected, disabled, href, target, appearance, children, className, tooltipContent, tooltipStyle, testId, hideTooltipOnClick, ariaHasPopup, tabIndex, areaControls, ariaLabel, isRadioButton, }: Props) => JSX.Element;
32
+ declare const _default: ({ title, icon, iconAfter, onClick, onKeyDown, onMouseEnter, onMouseLeave, onFocus, onBlur, onMount, selected, disabled, href, target, appearance, children, className, tooltipContent, tooltipStyle, testId, hideTooltipOnClick, ariaHasPopup, tabIndex, areaControls, ariaLabel, isRadioButton, }: Props) => JSX.Element;
32
33
  export default _default;
@@ -1,4 +1,4 @@
1
- import type { Node as PMNode, Schema, Slice } from '@atlaskit/editor-prosemirror/model';
1
+ import type { Mark, Node as PMNode, ResolvedPos, Schema, Slice } from '@atlaskit/editor-prosemirror/model';
2
2
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
3
3
  type Range = {
4
4
  from: number;
@@ -30,4 +30,5 @@ export declare function getAnnotationInlineNodeTypes(state: {
30
30
  doc: PMNode;
31
31
  schema: Schema;
32
32
  }, annotationId: string): string[] | undefined;
33
+ export declare function getAnnotationMarksForPos(pos: ResolvedPos): Mark[] | undefined;
33
34
  export {};
@@ -2,7 +2,7 @@ import type { Node as PMNode, ResolvedPos, Schema } from '@atlaskit/editor-prose
2
2
  import type { EditorState, Selection } from '@atlaskit/editor-prosemirror/state';
3
3
  import type { ContentNodeWithPos } from '@atlaskit/editor-prosemirror/utils';
4
4
  export { shouldAutoLinkifyMatch } from './should-auto-linkify-tld';
5
- export { canApplyAnnotationOnRange, containsAnyAnnotations, getAnnotationIdsFromRange, getAnnotationInlineNodeTypes, hasAnnotationMark, getRangeInlineNodeNames, } from './annotation';
5
+ export { getAnnotationMarksForPos, canApplyAnnotationOnRange, containsAnyAnnotations, getAnnotationIdsFromRange, getAnnotationInlineNodeTypes, hasAnnotationMark, getRangeInlineNodeNames, } from './annotation';
6
6
  export { getExtensionLozengeData } from './macro';
7
7
  export type { Params } from './macro';
8
8
  export { default as browser } from './browser';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "86.4.0",
3
+ "version": "86.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/"
@@ -115,7 +115,7 @@
115
115
  "@atlaskit/editor-shared-styles": "^2.13.0",
116
116
  "@atlaskit/editor-tables": "^2.7.0",
117
117
  "@atlaskit/emoji": "^67.6.0",
118
- "@atlaskit/icon": "^22.6.0",
118
+ "@atlaskit/icon": "^22.7.0",
119
119
  "@atlaskit/icon-object": "^6.4.0",
120
120
  "@atlaskit/link-datasource": "^2.5.0",
121
121
  "@atlaskit/link-picker": "^1.39.0",
@@ -134,7 +134,7 @@
134
134
  "@atlaskit/profilecard": "^19.16.0",
135
135
  "@atlaskit/section-message": "^6.5.0",
136
136
  "@atlaskit/smart-card": "^27.10.0",
137
- "@atlaskit/smart-user-picker": "^6.9.0",
137
+ "@atlaskit/smart-user-picker": "^6.10.0",
138
138
  "@atlaskit/spinner": "^16.2.0",
139
139
  "@atlaskit/task-decision": "^17.10.0",
140
140
  "@atlaskit/textfield": "^6.4.0",
@@ -262,6 +262,9 @@
262
262
  },
263
263
  "react_18_color_picker_concurrent_mode": {
264
264
  "type": "boolean"
265
+ },
266
+ "editor_inline_comments_paste_insert_nodes": {
267
+ "type": "boolean"
265
268
  }
266
269
  }
267
270
  }