@atlaskit/editor-core 189.1.3 → 189.1.6

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 (192) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/cjs/create-editor/ErrorBoundary.js +2 -3
  3. package/dist/cjs/plugins/analytics/index.js +1 -160
  4. package/dist/cjs/plugins/annotation/commands/index.js +1 -1
  5. package/dist/cjs/plugins/annotation/pm-plugins/inline-comment.js +2 -2
  6. package/dist/cjs/plugins/annotation/pm-plugins/keymap.js +1 -1
  7. package/dist/cjs/plugins/annotation/ui/InlineCommentView.js +3 -5
  8. package/dist/cjs/plugins/avatar-group/ui/AvatarGroupPluginWrapper.js +1 -1
  9. package/dist/cjs/plugins/collab-edit/utils.js +4 -4
  10. package/dist/cjs/plugins/extension/actions.js +3 -2
  11. package/dist/cjs/plugins/extension/extension-api.js +6 -5
  12. package/dist/cjs/plugins/find-replace/FindReplaceToolbarButtonWithState.js +1 -1
  13. package/dist/cjs/plugins/find-replace/commands-with-analytics.js +23 -22
  14. package/dist/cjs/plugins/find-replace/keymap.js +1 -1
  15. package/dist/cjs/plugins/find-replace/ui/Find.js +6 -6
  16. package/dist/cjs/plugins/find-replace/ui/FindReplaceToolbarButton.js +3 -3
  17. package/dist/cjs/plugins/find-replace/ui/Replace.js +6 -6
  18. package/dist/cjs/plugins/indentation/commands/index.js +1 -1
  19. package/dist/cjs/plugins/insert-block/index.js +1 -1
  20. package/dist/cjs/plugins/layout/actions.js +6 -7
  21. package/dist/cjs/plugins/macro/actions.js +3 -2
  22. package/dist/cjs/plugins/panel/toolbar.js +3 -4
  23. package/dist/cjs/plugins/paste/pm-plugins/main.js +2 -5
  24. package/dist/cjs/plugins/toolbar-lists-indentation/ui/onItemActivated.js +1 -1
  25. package/dist/cjs/plugins/undo-redo/enums.js +3 -3
  26. package/dist/cjs/ui/ConfigPanel/FormErrorBoundary.js +3 -4
  27. package/dist/cjs/ui/ErrorBoundary/index.js +1 -1
  28. package/dist/cjs/ui/ToolbarFeedback/index.js +1 -1
  29. package/dist/cjs/ui/WithHelpTrigger/index.js +1 -1
  30. package/dist/cjs/version-wrapper.js +1 -1
  31. package/dist/es2019/create-editor/ErrorBoundary.js +1 -2
  32. package/dist/es2019/plugins/analytics/index.js +0 -3
  33. package/dist/es2019/plugins/annotation/commands/index.js +1 -1
  34. package/dist/es2019/plugins/annotation/pm-plugins/inline-comment.js +1 -1
  35. package/dist/es2019/plugins/annotation/pm-plugins/keymap.js +1 -1
  36. package/dist/es2019/plugins/annotation/ui/InlineCommentView.js +3 -3
  37. package/dist/es2019/plugins/avatar-group/ui/AvatarGroupPluginWrapper.js +1 -1
  38. package/dist/es2019/plugins/collab-edit/utils.js +1 -1
  39. package/dist/es2019/plugins/extension/actions.js +2 -1
  40. package/dist/es2019/plugins/extension/extension-api.js +2 -1
  41. package/dist/es2019/plugins/find-replace/FindReplaceToolbarButtonWithState.js +1 -1
  42. package/dist/es2019/plugins/find-replace/commands-with-analytics.js +2 -1
  43. package/dist/es2019/plugins/find-replace/keymap.js +1 -1
  44. package/dist/es2019/plugins/find-replace/ui/Find.js +1 -1
  45. package/dist/es2019/plugins/find-replace/ui/FindReplaceToolbarButton.js +1 -1
  46. package/dist/es2019/plugins/find-replace/ui/Replace.js +1 -1
  47. package/dist/es2019/plugins/indentation/commands/index.js +1 -1
  48. package/dist/es2019/plugins/insert-block/index.js +1 -1
  49. package/dist/es2019/plugins/layout/actions.js +1 -2
  50. package/dist/es2019/plugins/macro/actions.js +2 -1
  51. package/dist/es2019/plugins/panel/toolbar.js +1 -1
  52. package/dist/es2019/plugins/paste/pm-plugins/main.js +2 -4
  53. package/dist/es2019/plugins/toolbar-lists-indentation/ui/onItemActivated.js +1 -1
  54. package/dist/es2019/plugins/undo-redo/enums.js +1 -1
  55. package/dist/es2019/ui/ConfigPanel/FormErrorBoundary.js +1 -2
  56. package/dist/es2019/ui/ErrorBoundary/index.js +1 -1
  57. package/dist/es2019/ui/ToolbarFeedback/index.js +1 -1
  58. package/dist/es2019/ui/WithHelpTrigger/index.js +1 -1
  59. package/dist/es2019/version-wrapper.js +1 -1
  60. package/dist/esm/create-editor/ErrorBoundary.js +1 -2
  61. package/dist/esm/plugins/analytics/index.js +0 -3
  62. package/dist/esm/plugins/annotation/commands/index.js +1 -1
  63. package/dist/esm/plugins/annotation/pm-plugins/inline-comment.js +1 -1
  64. package/dist/esm/plugins/annotation/pm-plugins/keymap.js +1 -1
  65. package/dist/esm/plugins/annotation/ui/InlineCommentView.js +3 -3
  66. package/dist/esm/plugins/avatar-group/ui/AvatarGroupPluginWrapper.js +1 -1
  67. package/dist/esm/plugins/collab-edit/utils.js +1 -1
  68. package/dist/esm/plugins/extension/actions.js +2 -1
  69. package/dist/esm/plugins/extension/extension-api.js +2 -1
  70. package/dist/esm/plugins/find-replace/FindReplaceToolbarButtonWithState.js +1 -1
  71. package/dist/esm/plugins/find-replace/commands-with-analytics.js +2 -1
  72. package/dist/esm/plugins/find-replace/keymap.js +1 -1
  73. package/dist/esm/plugins/find-replace/ui/Find.js +1 -1
  74. package/dist/esm/plugins/find-replace/ui/FindReplaceToolbarButton.js +1 -1
  75. package/dist/esm/plugins/find-replace/ui/Replace.js +1 -1
  76. package/dist/esm/plugins/indentation/commands/index.js +1 -1
  77. package/dist/esm/plugins/insert-block/index.js +1 -1
  78. package/dist/esm/plugins/layout/actions.js +1 -2
  79. package/dist/esm/plugins/macro/actions.js +2 -1
  80. package/dist/esm/plugins/panel/toolbar.js +1 -1
  81. package/dist/esm/plugins/paste/pm-plugins/main.js +2 -4
  82. package/dist/esm/plugins/toolbar-lists-indentation/ui/onItemActivated.js +1 -1
  83. package/dist/esm/plugins/undo-redo/enums.js +1 -1
  84. package/dist/esm/ui/ConfigPanel/FormErrorBoundary.js +1 -2
  85. package/dist/esm/ui/ErrorBoundary/index.js +1 -1
  86. package/dist/esm/ui/ToolbarFeedback/index.js +1 -1
  87. package/dist/esm/ui/WithHelpTrigger/index.js +1 -1
  88. package/dist/esm/version-wrapper.js +1 -1
  89. package/dist/types/plugins/analytics/index.d.ts +0 -5
  90. package/dist/types/plugins/annotation/commands/index.d.ts +2 -3
  91. package/dist/types/plugins/annotation/commands/transform.d.ts +1 -2
  92. package/dist/types/plugins/annotation/ui/InlineCommentView.d.ts +1 -1
  93. package/dist/types/plugins/annotation/utils.d.ts +1 -1
  94. package/dist/types/plugins/avatar-group/ui/AvatarGroupPluginWrapper.d.ts +1 -1
  95. package/dist/types/plugins/find-replace/FindReplaceToolbarButtonWithState.d.ts +1 -1
  96. package/dist/types/plugins/find-replace/commands-with-analytics.d.ts +1 -1
  97. package/dist/types/plugins/find-replace/ui/Find.d.ts +1 -1
  98. package/dist/types/plugins/find-replace/ui/FindReplace.d.ts +2 -2
  99. package/dist/types/plugins/find-replace/ui/FindReplaceToolbarButton.d.ts +1 -1
  100. package/dist/types/plugins/find-replace/ui/Replace.d.ts +3 -2
  101. package/dist/types/plugins/macro/actions.d.ts +1 -1
  102. package/dist/types/plugins/paste/util/index.d.ts +1 -2
  103. package/dist/types/presets/default.d.ts +20 -0
  104. package/dist/types/ui/Appearance/FullPage/FullPageToolbar.d.ts +2 -2
  105. package/dist/types/ui/ConfigPanel/FormErrorBoundary.d.ts +3 -3
  106. package/dist/types/ui/ErrorBoundary/index.d.ts +2 -3
  107. package/dist/types/ui/Toolbar/toolbar-types.d.ts +2 -2
  108. package/dist/types-ts4.5/plugins/analytics/index.d.ts +0 -5
  109. package/dist/types-ts4.5/plugins/annotation/commands/index.d.ts +2 -3
  110. package/dist/types-ts4.5/plugins/annotation/commands/transform.d.ts +1 -2
  111. package/dist/types-ts4.5/plugins/annotation/ui/InlineCommentView.d.ts +1 -1
  112. package/dist/types-ts4.5/plugins/annotation/utils.d.ts +1 -1
  113. package/dist/types-ts4.5/plugins/avatar-group/ui/AvatarGroupPluginWrapper.d.ts +1 -1
  114. package/dist/types-ts4.5/plugins/find-replace/FindReplaceToolbarButtonWithState.d.ts +1 -1
  115. package/dist/types-ts4.5/plugins/find-replace/commands-with-analytics.d.ts +1 -1
  116. package/dist/types-ts4.5/plugins/find-replace/ui/Find.d.ts +1 -1
  117. package/dist/types-ts4.5/plugins/find-replace/ui/FindReplace.d.ts +2 -2
  118. package/dist/types-ts4.5/plugins/find-replace/ui/FindReplaceToolbarButton.d.ts +1 -1
  119. package/dist/types-ts4.5/plugins/find-replace/ui/Replace.d.ts +3 -2
  120. package/dist/types-ts4.5/plugins/macro/actions.d.ts +1 -1
  121. package/dist/types-ts4.5/plugins/paste/util/index.d.ts +1 -2
  122. package/dist/types-ts4.5/presets/default.d.ts +20 -0
  123. package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageToolbar.d.ts +2 -2
  124. package/dist/types-ts4.5/ui/ConfigPanel/FormErrorBoundary.d.ts +3 -3
  125. package/dist/types-ts4.5/ui/ErrorBoundary/index.d.ts +2 -3
  126. package/dist/types-ts4.5/ui/Toolbar/toolbar-types.d.ts +2 -2
  127. package/package.json +3 -3
  128. package/dist/cjs/nodeviews/getPerformanceOptions.js +0 -24
  129. package/dist/cjs/plugins/analytics/types/experimental-events.js +0 -5
  130. package/dist/cjs/ui/ColorPalette/Palettes/cellBackgroundColorPalette.js +0 -8
  131. package/dist/cjs/ui/ColorPalette/Palettes/common.js +0 -12
  132. package/dist/cjs/ui/ColorPalette/Palettes/index.js +0 -12
  133. package/dist/cjs/ui/ColorPalette/Palettes/paletteMessages.js +0 -8
  134. package/dist/cjs/ui/ColorPalette/Palettes/panelBackgroundPalette.js +0 -18
  135. package/dist/cjs/ui/ColorPalette/Palettes/statusColorPalette.js +0 -18
  136. package/dist/cjs/ui/ColorPalette/Palettes/textColorPalette.js +0 -12
  137. package/dist/cjs/ui/ColorPalette/Palettes/type.js +0 -5
  138. package/dist/cjs/ui/ColorPalette/index.js +0 -32
  139. package/dist/cjs/ui/MediaAndEmbedsToolbar/toolbar-messages.js +0 -19
  140. package/dist/cjs/utils/is-text-input.js +0 -22
  141. package/dist/es2019/nodeviews/getPerformanceOptions.js +0 -2
  142. package/dist/es2019/plugins/analytics/types/experimental-events.js +0 -1
  143. package/dist/es2019/ui/ColorPalette/Palettes/cellBackgroundColorPalette.js +0 -2
  144. package/dist/es2019/ui/ColorPalette/Palettes/common.js +0 -1
  145. package/dist/es2019/ui/ColorPalette/Palettes/index.js +0 -1
  146. package/dist/es2019/ui/ColorPalette/Palettes/paletteMessages.js +0 -2
  147. package/dist/es2019/ui/ColorPalette/Palettes/panelBackgroundPalette.js +0 -1
  148. package/dist/es2019/ui/ColorPalette/Palettes/statusColorPalette.js +0 -1
  149. package/dist/es2019/ui/ColorPalette/Palettes/textColorPalette.js +0 -1
  150. package/dist/es2019/ui/ColorPalette/Palettes/type.js +0 -1
  151. package/dist/es2019/ui/ColorPalette/index.js +0 -3
  152. package/dist/es2019/ui/MediaAndEmbedsToolbar/toolbar-messages.js +0 -13
  153. package/dist/es2019/utils/is-text-input.js +0 -16
  154. package/dist/esm/nodeviews/getPerformanceOptions.js +0 -2
  155. package/dist/esm/plugins/analytics/types/experimental-events.js +0 -1
  156. package/dist/esm/ui/ColorPalette/Palettes/cellBackgroundColorPalette.js +0 -2
  157. package/dist/esm/ui/ColorPalette/Palettes/common.js +0 -1
  158. package/dist/esm/ui/ColorPalette/Palettes/index.js +0 -1
  159. package/dist/esm/ui/ColorPalette/Palettes/paletteMessages.js +0 -2
  160. package/dist/esm/ui/ColorPalette/Palettes/panelBackgroundPalette.js +0 -1
  161. package/dist/esm/ui/ColorPalette/Palettes/statusColorPalette.js +0 -1
  162. package/dist/esm/ui/ColorPalette/Palettes/textColorPalette.js +0 -1
  163. package/dist/esm/ui/ColorPalette/Palettes/type.js +0 -1
  164. package/dist/esm/ui/ColorPalette/index.js +0 -3
  165. package/dist/esm/ui/MediaAndEmbedsToolbar/toolbar-messages.js +0 -13
  166. package/dist/esm/utils/is-text-input.js +0 -15
  167. package/dist/types/nodeviews/getPerformanceOptions.d.ts +0 -2
  168. package/dist/types/plugins/analytics/types/experimental-events.d.ts +0 -1
  169. package/dist/types/ui/ColorPalette/Palettes/cellBackgroundColorPalette.d.ts +0 -2
  170. package/dist/types/ui/ColorPalette/Palettes/common.d.ts +0 -1
  171. package/dist/types/ui/ColorPalette/Palettes/index.d.ts +0 -2
  172. package/dist/types/ui/ColorPalette/Palettes/paletteMessages.d.ts +0 -2
  173. package/dist/types/ui/ColorPalette/Palettes/panelBackgroundPalette.d.ts +0 -1
  174. package/dist/types/ui/ColorPalette/Palettes/statusColorPalette.d.ts +0 -1
  175. package/dist/types/ui/ColorPalette/Palettes/textColorPalette.d.ts +0 -1
  176. package/dist/types/ui/ColorPalette/Palettes/type.d.ts +0 -1
  177. package/dist/types/ui/ColorPalette/index.d.ts +0 -3
  178. package/dist/types/ui/MediaAndEmbedsToolbar/toolbar-messages.d.ts +0 -12
  179. package/dist/types/utils/is-text-input.d.ts +0 -2
  180. package/dist/types-ts4.5/nodeviews/getPerformanceOptions.d.ts +0 -2
  181. package/dist/types-ts4.5/plugins/analytics/types/experimental-events.d.ts +0 -1
  182. package/dist/types-ts4.5/ui/ColorPalette/Palettes/cellBackgroundColorPalette.d.ts +0 -2
  183. package/dist/types-ts4.5/ui/ColorPalette/Palettes/common.d.ts +0 -1
  184. package/dist/types-ts4.5/ui/ColorPalette/Palettes/index.d.ts +0 -2
  185. package/dist/types-ts4.5/ui/ColorPalette/Palettes/paletteMessages.d.ts +0 -2
  186. package/dist/types-ts4.5/ui/ColorPalette/Palettes/panelBackgroundPalette.d.ts +0 -1
  187. package/dist/types-ts4.5/ui/ColorPalette/Palettes/statusColorPalette.d.ts +0 -1
  188. package/dist/types-ts4.5/ui/ColorPalette/Palettes/textColorPalette.d.ts +0 -1
  189. package/dist/types-ts4.5/ui/ColorPalette/Palettes/type.d.ts +0 -1
  190. package/dist/types-ts4.5/ui/ColorPalette/index.d.ts +0 -3
  191. package/dist/types-ts4.5/ui/MediaAndEmbedsToolbar/toolbar-messages.d.ts +0 -12
  192. package/dist/types-ts4.5/utils/is-text-input.d.ts +0 -2
@@ -5,9 +5,9 @@ import { AnnotationViewWrapper } from './AnnotationViewWrapper';
5
5
  import { AnnotationTestIds } from '../types';
6
6
  import { getAnnotationViewKey, getSelectionPositions, getPluginState, getAllAnnotations } from '../utils';
7
7
  import { removeInlineCommentNearSelection, updateInlineCommentResolvedState, setInlineCommentDraftState, createAnnotation, closeComponent } from '../commands';
8
- import { ACTION, ACTION_SUBJECT, EVENT_TYPE, ACTION_SUBJECT_ID } from '../../analytics';
9
- import { CONTENT_COMPONENT } from '../../analytics/types';
10
- import { RESOLVE_METHOD } from '../../analytics/types/inline-comment-events';
8
+ import { ACTION, ACTION_SUBJECT, EVENT_TYPE, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
9
+ import { CONTENT_COMPONENT } from '@atlaskit/editor-common/analytics';
10
+ import { RESOLVE_METHOD } from '@atlaskit/editor-common/analytics';
11
11
  var findPosForDOM = function findPosForDOM(sel) {
12
12
  var $from = sel.$from,
13
13
  from = sel.from;
@@ -6,7 +6,7 @@ import { css, jsx } from '@emotion/react';
6
6
  import AvatarsWithPluginState from '../../collab-edit/ui/avatars-with-plugin-state';
7
7
  import { useIntl } from 'react-intl-next';
8
8
  import { avatarGroupMessages } from '../messages';
9
- import { ACTION, ACTION_SUBJECT, EVENT_TYPE, ACTION_SUBJECT_ID } from '../../analytics';
9
+ import { ACTION, ACTION_SUBJECT, EVENT_TYPE, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
10
10
  var toolbarButtonWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n justify-content: flex-end;\n flex-grow: 0;\n align-items: center;\n & > div {\n margin-right: 0;\n }\n"])));
11
11
  var toolbarButtonWrapperFullWidth = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", "\n flex-grow: 1;\n"])), toolbarButtonWrapper);
12
12
  var AvatarGroupPluginWrapper = function AvatarGroupPluginWrapper(props) {
@@ -5,7 +5,7 @@ import * as themeColors from '@atlaskit/theme/colors';
5
5
  import { hexToRgba } from '@atlaskit/adf-schema';
6
6
  import { ZERO_WIDTH_JOINER } from '@atlaskit/editor-common/utils';
7
7
  import { addAnalytics } from '../analytics/utils';
8
- import { EVENT_TYPE, ACTION, ACTION_SUBJECT } from '../analytics/types';
8
+ import { EVENT_TYPE, ACTION, ACTION_SUBJECT } from '@atlaskit/editor-common/analytics';
9
9
  // TODO: https://product-fabric.atlassian.net/browse/DSP-7269
10
10
  /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
11
11
  export var colors = [themeColors.R100, themeColors.R300, themeColors.R500, themeColors.Y100, themeColors.Y300, themeColors.Y500, themeColors.G100, themeColors.G300, themeColors.G500, themeColors.T100, themeColors.T300, themeColors.T500, themeColors.B100, themeColors.B300, themeColors.B500, themeColors.P100, themeColors.P300, themeColors.P500, themeColors.N70, themeColors.N200, themeColors.N800].map(function (solid) {
@@ -6,7 +6,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
6
6
  import { Selection, NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
7
7
  import { replaceSelectedNode, findSelectedNodeOfType, replaceParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
8
8
  export { transformSliceToRemoveOpenBodiedExtension } from '@atlaskit/editor-common/transforms';
9
- import { ACTION, ACTION_SUBJECT, INPUT_METHOD, EVENT_TYPE, addAnalytics } from '../analytics';
9
+ import { ACTION, ACTION_SUBJECT, INPUT_METHOD, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
10
+ import { addAnalytics } from '../analytics';
10
11
  import { TARGET_SELECTION_SOURCE } from '../analytics/types/extension-events';
11
12
  import { findExtensionWithLocalId } from './utils';
12
13
  import { getPluginState } from './pm-plugins/main';
@@ -8,7 +8,8 @@ import { pluginKey as macroPluginKey } from '../macro/plugin-key';
8
8
  import { nodeToJSON } from '../../utils';
9
9
  import { setEditingContextToContextPanel } from './commands';
10
10
  import { findNodePosWithLocalId, getDataConsumerMark, getNodeTypesReferenced, getSelectedExtension } from './utils';
11
- import { addAnalytics, ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '../analytics';
11
+ import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
12
+ import { addAnalytics } from '../analytics';
12
13
  import { setTextSelection } from '@atlaskit/editor-prosemirror/utils';
13
14
  export var getEditInLegacyMacroBrowser = function getEditInLegacyMacroBrowser(_ref) {
14
15
  var view = _ref.view,
@@ -4,7 +4,7 @@ import WithPluginState from '../../ui/WithPluginState';
4
4
  import { cancelSearchWithAnalytics, replaceWithAnalytics, replaceAllWithAnalytics, findWithAnalytics, findNextWithAnalytics, findPrevWithAnalytics, activateWithAnalytics } from './commands-with-analytics';
5
5
  import { blur, toggleMatchCase } from './commands';
6
6
  import FindReplaceToolbarButton from './ui/FindReplaceToolbarButton';
7
- import { TRIGGER_METHOD } from '../analytics';
7
+ import { TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
8
8
  var FindReplaceToolbarButtonWithState = function FindReplaceToolbarButtonWithState(props) {
9
9
  var popupsBoundariesElement = props.popupsBoundariesElement,
10
10
  popupsMountPoint = props.popupsMountPoint,
@@ -1,5 +1,6 @@
1
1
  import { TextSelection } from '@atlaskit/editor-prosemirror/state';
2
- import { withAnalytics, ACTION, ACTION_SUBJECT, EVENT_TYPE, INPUT_METHOD } from '../analytics';
2
+ import { withAnalytics } from '../analytics';
3
+ import { ACTION, ACTION_SUBJECT, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
3
4
  import { activate, find, findNext, findPrevious, replace, replaceAll, cancelSearch } from './commands';
4
5
  export var activateWithAnalytics = function activateWithAnalytics(_ref) {
5
6
  var triggerMethod = _ref.triggerMethod;
@@ -1,7 +1,7 @@
1
1
  import { keymap } from '@atlaskit/editor-prosemirror/keymap';
2
2
  import { bindKeymapWithCommand, find as findKeymap } from '../../keymaps';
3
3
  import { activateWithAnalytics } from './commands-with-analytics';
4
- import { TRIGGER_METHOD } from '../analytics';
4
+ import { TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
5
5
  var activateFindReplace = function activateFindReplace() {
6
6
  return function (state, dispatch) {
7
7
  activateWithAnalytics({
@@ -18,7 +18,7 @@ import ChevronUpIcon from '@atlaskit/icon/glyph/hipchat/chevron-up';
18
18
  import MatchCaseIcon from '@atlaskit/icon/glyph/emoji/keyboard';
19
19
  import Textfield from '@atlaskit/textfield';
20
20
  import { countStyles, sectionWrapperStyles } from './styles';
21
- import { TRIGGER_METHOD } from '../../analytics/types';
21
+ import { TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
22
22
  import { FindReplaceTooltipButton } from './FindReplaceTooltipButton';
23
23
  import rafSchd from 'raf-schd';
24
24
  export var FIND_DEBOUNCE_MS = 100;
@@ -19,7 +19,7 @@ import ToolbarButton, { TOOLBAR_BUTTON } from '../../../ui/ToolbarButton';
19
19
  import { Dropdown, ArrowKeyNavigationType } from '@atlaskit/editor-common/ui-menu';
20
20
  import EditorSearchIcon from '@atlaskit/icon/glyph/editor/search';
21
21
  import FindReplace from './FindReplace';
22
- import { TRIGGER_METHOD } from '../../analytics/types';
22
+ import { TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
23
23
  import { ToolTipContent, findKeymapByDescription, tooltip } from '../../../keymaps';
24
24
  import { getAriaKeyshortcuts } from '@atlaskit/editor-common/keymaps';
25
25
  var toolbarButtonWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex: 1 1 auto;\n flex-grow: 0;\n justify-content: flex-end;\n align-items: center;\n padding: 0 ", ";\n @media (max-width: ", "px) {\n justify-content: center;\n padding: 0;\n }\n"])), "var(--ds-space-100, 8px)", akEditorMobileMaxWidth);
@@ -14,7 +14,7 @@ import Button from '@atlaskit/button/standard-button';
14
14
  import { defineMessages, injectIntl } from 'react-intl-next';
15
15
  import Textfield from '@atlaskit/textfield';
16
16
  import { sectionWrapperStyles, replaceSectionButtonStyles } from './styles';
17
- import { EVENT_TYPE, ACTION, ACTION_SUBJECT, TRIGGER_METHOD } from '../../analytics/types';
17
+ import { EVENT_TYPE, ACTION, ACTION_SUBJECT, TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
18
18
  var messages = defineMessages({
19
19
  replaceWith: {
20
20
  id: 'fabric.editor.replaceWith',
@@ -1,6 +1,6 @@
1
1
  import { toggleBlockMark } from '../../../commands';
2
2
  import { createAnalyticsDispatch } from './utils';
3
- import { INDENT_DIRECTION, INPUT_METHOD } from '../../analytics';
3
+ import { INDENT_DIRECTION, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
4
4
  import getAttrsWithChangesRecorder from '../../../utils/getAttrsWithChangesRecorder';
5
5
  export var MAX_INDENTATION_LEVEL = 6;
6
6
  export var isIndentationAllowed = function isIndentationAllowed(schema, node) {
@@ -5,7 +5,7 @@ import { insertMacroFromMacroBrowser } from '../macro';
5
5
  import WithPluginState from '../../ui/WithPluginState';
6
6
  import ToolbarInsertBlock from './ui/ToolbarInsertBlock';
7
7
  import { BLOCK_QUOTE, CODE_BLOCK, PANEL } from '@atlaskit/editor-plugin-block-type/consts';
8
- import { INPUT_METHOD } from '../analytics';
8
+ import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
9
9
  import { pluginKey as placeholderTextStateKey } from '../placeholder-text/plugin-key';
10
10
  import { pluginKey as macroStateKey } from '../macro/plugin-key';
11
11
  import { ToolbarSize } from '../../ui/Toolbar/types';
@@ -6,9 +6,8 @@ import { Fragment, Slice } from '@atlaskit/editor-prosemirror/model';
6
6
  import { TextSelection, NodeSelection } from '@atlaskit/editor-prosemirror/state';
7
7
  import { flatmap, mapChildren } from '../../utils/slice';
8
8
  import { getStepRange, isEmptyDocument } from '@atlaskit/editor-common/utils';
9
- import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
9
+ import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, LAYOUT_TYPE } from '@atlaskit/editor-common/analytics';
10
10
  import { withAnalytics } from '@atlaskit/editor-common/editor-analytics';
11
- import { LAYOUT_TYPE } from '../analytics/types/node-events';
12
11
  import { pluginKey } from './pm-plugins/plugin-key';
13
12
  export var ONE_COL_LAYOUTS = ['single'];
14
13
  export var TWO_COL_LAYOUTS = ['two_equal', 'two_left_sidebar', 'two_right_sidebar'];
@@ -9,7 +9,8 @@ import { safeInsert, replaceSelectedNode, findSelectedNodeOfType, replaceParentN
9
9
  import { getValidNode } from '@atlaskit/editor-common/validator';
10
10
  import { normaliseNestedLayout } from '@atlaskit/editor-common/insert';
11
11
  import { getPluginState as getExtensionPluginState } from '../extension/plugin-factory';
12
- import { ACTION, ACTION_SUBJECT, INPUT_METHOD, EVENT_TYPE, addAnalytics } from '../analytics';
12
+ import { ACTION, ACTION_SUBJECT, INPUT_METHOD, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
13
+ import { addAnalytics } from '../analytics';
13
14
  import { TARGET_SELECTION_SOURCE } from '../analytics/types/extension-events';
14
15
  import { pluginKey } from './plugin-key';
15
16
  export var insertMacroFromMacroBrowser = function insertMacroFromMacroBrowser(macroProvider, macroNode, isEditing) {
@@ -11,7 +11,7 @@ import ErrorIcon from '@atlaskit/icon/glyph/editor/error';
11
11
  import RemoveEmojiIcon from '@atlaskit/icon/glyph/editor/remove-emoji';
12
12
  import commonMessages from '../../messages';
13
13
  import { removePanel, changePanelType } from './actions';
14
- import { panelBackgroundPalette } from '../../ui/ColorPalette/Palettes/panelBackgroundPalette';
14
+ import { panelBackgroundPalette } from '@atlaskit/editor-common/ui-color';
15
15
  import { getPanelTypeBackgroundNoTokens } from '@atlaskit/editor-common/panel';
16
16
  import { findPanel } from './utils';
17
17
  import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
@@ -15,8 +15,6 @@ import { escapeLinks, htmlContainsSingleFile, isPastedFromWord, isPastedFromExce
15
15
  import { transformSliceNestedExpandToExpand, transformSliceToJoinAdjacentCodeBlocks, transformSingleLineCodeBlockToCodeMark, transformSliceToDecisionList } from '@atlaskit/editor-common/transforms';
16
16
  import { handleMacroAutoConvert, handleMention, handleParagraphBlockMarks } from '../handlers';
17
17
  import { createPasteMeasurePayload, getContentNodeTypes, handlePasteAsPlainTextWithAnalytics, handlePasteIntoTaskAndDecisionWithAnalytics, handleCodeBlockWithAnalytics, handleMediaSingleWithAnalytics, handlePastePreservingMarksWithAnalytics, handleMarkdownWithAnalytics, handleRichTextWithAnalytics, handleExpandWithAnalytics, handleSelectedTableWithAnalytics, handlePasteLinkOnSelectedTextWithAnalytics, sendPasteAnalyticsEvent, handlePasteIntoCaptionWithAnalytics, handlePastePanelOrDecisionIntoListWithAnalytics, handlePasteNonNestableBlockNodesIntoListWithAnalytics } from './analytics';
18
- // TODO: ED-20519 It requires full analytics extraction to use the plugin injection API
19
- import { analyticsPluginKey } from '../../analytics';
20
18
  import { isInsideBlockQuote, insideTable, measurements } from '../../../utils';
21
19
  import { upgradeTextToLists, splitParagraphs } from '../commands';
22
20
  // TODO: ED-20519 It requires annotation extraction to use the plugin injection API
@@ -102,7 +100,7 @@ export function createPlugin(schema, dispatchAnalyticsEvent, dispatch, featureFl
102
100
  }
103
101
  },
104
102
  handlePaste: function handlePaste(view, rawEvent, slice) {
105
- var _text, _analyticsPlugin$perf, _schema$nodes, _schema$nodes2, _schema$nodes3, _pluginInjectionApi$m;
103
+ var _text, _pluginInjectionApi$a2, _analyticsPlugin$perf, _schema$nodes, _schema$nodes2, _schema$nodes3, _pluginInjectionApi$m;
106
104
  var event = rawEvent;
107
105
  if (!event.clipboardData) {
108
106
  return false;
@@ -148,7 +146,7 @@ export function createPlugin(schema, dispatchAnalyticsEvent, dispatch, featureFl
148
146
  event.stopPropagation();
149
147
  }
150
148
  var state = view.state;
151
- var analyticsPlugin = analyticsPluginKey.getState(state);
149
+ var analyticsPlugin = pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a2 = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a2 === void 0 || (_pluginInjectionApi$a2 = _pluginInjectionApi$a2.sharedState) === null || _pluginInjectionApi$a2 === void 0 ? void 0 : _pluginInjectionApi$a2.currentState();
152
150
  var pasteTrackingEnabled = analyticsPlugin === null || analyticsPlugin === void 0 || (_analyticsPlugin$perf = analyticsPlugin.performanceTracking) === null || _analyticsPlugin$perf === void 0 || (_analyticsPlugin$perf = _analyticsPlugin$perf.pasteTracking) === null || _analyticsPlugin$perf === void 0 ? void 0 : _analyticsPlugin$perf.enabled;
153
151
  if (pasteTrackingEnabled) {
154
152
  var content = getContentNodeTypes(slice.content);
@@ -1,6 +1,6 @@
1
1
  import { getIndentCommand as indentParagraphOrHeading, getOutdentCommand as outdentParagraphOrHeading } from '../../indentation/commands';
2
2
  import { getIndentCommand as indentTaskList, getUnindentCommand as outdentTaskList } from '../../tasks-and-decisions/pm-plugins/keymaps';
3
- import { INPUT_METHOD } from '../../analytics';
3
+ import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
4
4
  import { pluginKey as indentationButtonsPluginKey } from '../pm-plugins/indentation-buttons';
5
5
  export var onItemActivated = function onItemActivated(pluginInjectionApi) {
6
6
  return function (_ref) {
@@ -1,4 +1,4 @@
1
- import { INPUT_METHOD } from '../analytics/types/enums';
1
+ import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
2
2
  export var InputSource = function (InputSource) {
3
3
  InputSource[InputSource["TOOLBAR"] = INPUT_METHOD.TOOLBAR] = "TOOLBAR";
4
4
  InputSource[InputSource["KEYBOARD"] = INPUT_METHOD.KEYBOARD] = "KEYBOARD";
@@ -13,8 +13,7 @@ import React from 'react';
13
13
  import { injectIntl } from 'react-intl-next';
14
14
  import SectionMessage from '@atlaskit/section-message';
15
15
  import { withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-next';
16
- import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '../../plugins/analytics';
17
- import { editorAnalyticsChannel } from '../../plugins/analytics/consts';
16
+ import { ACTION, ACTION_SUBJECT, EVENT_TYPE, editorAnalyticsChannel } from '@atlaskit/editor-common/analytics';
18
17
  import { messages } from './messages';
19
18
  var FormErrorBoundaryInner = /*#__PURE__*/function (_React$Component) {
20
19
  _inherits(FormErrorBoundaryInner, _React$Component);
@@ -9,7 +9,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
9
9
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
10
10
  import React from 'react';
11
11
  import { logException } from '@atlaskit/editor-common/monitoring';
12
- import { ACTION, EVENT_TYPE } from '../../plugins/analytics';
12
+ import { ACTION, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
13
13
  export var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
14
14
  _inherits(ErrorBoundary, _React$Component);
15
15
  var _super = _createSuper(ErrorBoundary);
@@ -24,7 +24,7 @@ import Button from '@atlaskit/button/custom-theme-button';
24
24
  import ToolbarButton from '../ToolbarButton';
25
25
  import withOuterListeners from '../with-outer-listeners';
26
26
  import { wrapper, buttonContent, confirmationPopup, confirmationText, confirmationHeader, confirmationImg } from './styles';
27
- import { ACTION, ACTION_SUBJECT, EVENT_TYPE, ACTION_SUBJECT_ID } from '../../plugins/analytics';
27
+ import { ACTION, ACTION_SUBJECT, EVENT_TYPE, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
28
28
  import { createDispatch } from '../../event-dispatcher';
29
29
  import { openFeedbackDialog } from '../../plugins/feedback-dialog';
30
30
  import deprecationWarnings from '../../utils/deprecation-warnings';
@@ -9,7 +9,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
9
9
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
10
10
  import React from 'react';
11
11
  import PropTypes from 'prop-types';
12
- import { ACTION, ACTION_SUBJECT, INPUT_METHOD, EVENT_TYPE, ACTION_SUBJECT_ID } from '../../plugins/analytics';
12
+ import { ACTION, ACTION_SUBJECT, INPUT_METHOD, EVENT_TYPE, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
13
13
  import { createDispatch } from '../../event-dispatcher';
14
14
  import { analyticsEventKey } from '../../plugins/analytics/consts';
15
15
  import { deprecatedOpenHelpCommand } from '@atlaskit/editor-plugin-help-dialog';
@@ -1,5 +1,5 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "189.1.3";
2
+ export var version = "189.1.6";
3
3
  export var nextMajorVersion = function nextMajorVersion() {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -1,8 +1,3 @@
1
1
  import analyticsPlugin from './plugin';
2
- export { ACTION_SUBJECT_ID, ACTION_SUBJECT, ACTION, BROWSER_FREEZE_INTERACTION_TYPE, EVENT_TYPE, FULL_WIDTH_MODE, INDENT_DIRECTION, INDENT_TYPE, INPUT_METHOD, LINK_REPRESENTATION, LINK_RESOURCE, LINK_STATUS, MODE, PasteContents, PasteSources, PasteTypes, PLATFORMS, PUNC, SYMBOL, TABLE_ACTION, TABLE_BREAKOUT, TRIGGER_METHOD, USER_CONTEXT, DELETE_DIRECTION, fireAnalyticsEvent, getAnalyticsEventsFromTransaction, } from '@atlaskit/editor-common/analytics';
3
- export type { AnalyticsDispatch, AnalyticsEventPayload, AnalyticsEventPayloadWithChannel, CommonListAnalyticsAttributes, CreateLinkInlineDialogActionType, CreateLinkInlineDialogEventPayload, ErrorEventPayload, ErrorEventAttributes, FormatEventPayload, GeneralEventPayload, InputMethodInsertLink, InputMethodInsertMedia, InsertEventPayload, MediaAltTextActionType, MediaEventPayload, MediaLinkAEP, PASTE_ACTION_SUBJECT_ID, PasteContent, PasteEventPayload, PasteSource, PasteType, SubstituteEventPayload, TableEventPayload, FireAnalyticsCallback, FireAnalyticsEvent, } from '@atlaskit/editor-common/analytics';
4
2
  export { withAnalytics, addAnalytics } from './utils';
5
- export declare const analyticsPluginKey: import("prosemirror-state").PluginKey<any>;
6
3
  export default analyticsPlugin;
7
- export type { HigherOrderCommand } from '../../types/command';
8
- export type { DispatchAnalyticsEvent } from './types/dispatch-analytics-event';
@@ -1,8 +1,7 @@
1
- import type { RESOLVE_METHOD } from './../../analytics/types/inline-comment-events';
2
- import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
1
+ import type { EditorAnalyticsAPI, RESOLVE_METHOD } from '@atlaskit/editor-common/analytics';
3
2
  import type { Command } from '../../../types';
4
3
  import { AnnotationTypes } from '@atlaskit/adf-schema';
5
- import { INPUT_METHOD } from '../../analytics';
4
+ import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
6
5
  import type { InlineCommentMap, InlineCommentMouseData } from '../pm-plugins/types';
7
6
  export declare const updateInlineCommentResolvedState: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (partialNewState: InlineCommentMap, resolveMethod?: RESOLVE_METHOD) => Command;
8
7
  export declare const closeComponent: () => Command;
@@ -1,7 +1,6 @@
1
1
  import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
2
- import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
3
2
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
4
- import type { RESOLVE_METHOD } from '../../analytics/types/inline-comment-events';
3
+ import type { RESOLVE_METHOD, EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
5
4
  declare const _default: {
6
5
  addAnnotationMark: (id: string) => (transaction: Transaction, state: EditorState) => Transaction;
7
6
  addInlineComment: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (id: string) => (transaction: Transaction, state: EditorState) => Transaction;
@@ -2,7 +2,7 @@
2
2
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
3
3
  import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
4
4
  import type { AnnotationProviders } from '../types';
5
- import type { DispatchAnalyticsEvent } from '../../analytics/types';
5
+ import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
6
6
  interface InlineCommentViewProps {
7
7
  providers: AnnotationProviders;
8
8
  editorView: EditorView;
@@ -6,7 +6,7 @@ import { hasAnnotationMark, containsAnyAnnotations } from '@atlaskit/editor-comm
6
6
  import type { AnnotationInfo } from './types';
7
7
  import { AnnotationSelectionType } from './types';
8
8
  import type { InlineCommentPluginState } from './pm-plugins/types';
9
- import type { AnalyticsEventPayloadCallback } from '../analytics/utils';
9
+ import type { AnalyticsEventPayloadCallback } from '@atlaskit/editor-common/analytics';
10
10
  import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
11
11
  export { hasAnnotationMark, containsAnyAnnotations };
12
12
  /**
@@ -2,7 +2,7 @@ import { jsx } from '@emotion/react';
2
2
  import type { EventDispatcher } from '../../../event-dispatcher';
3
3
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
4
  import type { CollabEditOptions } from '@atlaskit/editor-common/collab';
5
- import type { DispatchAnalyticsEvent } from '../../analytics';
5
+ import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
6
6
  import type { FeatureFlags } from '@atlaskit/editor-common/types';
7
7
  declare const AvatarGroupPluginWrapper: (props: {
8
8
  collabEdit?: CollabEditOptions | undefined;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
3
- import type { DispatchAnalyticsEvent } from '../analytics';
3
+ import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
4
4
  import type { FeatureFlags } from '@atlaskit/editor-common/types';
5
5
  export type FindReplaceToolbarButtonWithStateProps = {
6
6
  popupsBoundariesElement?: HTMLElement;
@@ -1,6 +1,6 @@
1
1
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
2
2
  import type { Command } from '../../types';
3
- import type { TRIGGER_METHOD } from '../analytics';
3
+ import type { TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
4
4
  export declare const activateWithAnalytics: ({ triggerMethod, }: {
5
5
  triggerMethod: TRIGGER_METHOD.SHORTCUT | TRIGGER_METHOD.TOOLBAR;
6
6
  }) => Command;
@@ -1,7 +1,7 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
3
  import type { WrappedComponentProps } from 'react-intl-next';
4
- import { TRIGGER_METHOD } from '../../analytics/types';
4
+ import { TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
5
5
  import type { MatchCaseProps } from '../types';
6
6
  export declare const FIND_DEBOUNCE_MS = 100;
7
7
  export type FindProps = {
@@ -1,8 +1,8 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
3
  import { jsx } from '@emotion/react';
4
- import { TRIGGER_METHOD, DispatchAnalyticsEvent } from '../../analytics/types';
5
- import { MatchCaseProps } from '../types';
4
+ import type { TRIGGER_METHOD, DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
5
+ import type { MatchCaseProps } from '../types';
6
6
  export type FindReplaceProps = {
7
7
  findText?: string;
8
8
  replaceText?: string;
@@ -2,7 +2,7 @@
2
2
  import React from 'react';
3
3
  import type { WrappedComponentProps } from 'react-intl-next';
4
4
  import type { FindReplaceProps } from './FindReplace';
5
- import type { DispatchAnalyticsEvent } from '../../analytics/types';
5
+ import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
6
6
  export interface FindReplaceToolbarButtonProps extends Omit<FindReplaceProps, 'count'> {
7
7
  index: number;
8
8
  numMatches: number;
@@ -1,7 +1,8 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
- import { WrappedComponentProps } from 'react-intl-next';
4
- import { TRIGGER_METHOD, DispatchAnalyticsEvent } from '../../analytics/types';
3
+ import type { WrappedComponentProps } from 'react-intl-next';
4
+ import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
5
+ import { TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
5
6
  export type ReplaceProps = {
6
7
  canReplace: boolean;
7
8
  replaceText?: string;
@@ -4,5 +4,5 @@ import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
4
4
  import type { Providers, MacroProvider, MacroAttributes } from '@atlaskit/editor-common/provider-factory';
5
5
  export declare const insertMacroFromMacroBrowser: (macroProvider: MacroProvider, macroNode?: PmNode, isEditing?: boolean) => (view: EditorView) => Promise<boolean>;
6
6
  export declare const resolveMacro: (macro?: MacroAttributes, state?: EditorState, optionalAttrs?: object) => PmNode | null;
7
- export declare const runMacroAutoConvert: (state: EditorState, text: String) => PmNode | null;
7
+ export declare const runMacroAutoConvert: (state: EditorState, text: string) => PmNode | null;
8
8
  export declare const setMacroProvider: (provider: Providers['macroProvider']) => (view: EditorView) => Promise<boolean>;
@@ -1,8 +1,7 @@
1
1
  import type { Node as PMNode, NodeType, Schema } from '@atlaskit/editor-prosemirror/model';
2
2
  import { Slice, Mark } from '@atlaskit/editor-prosemirror/model';
3
3
  import type { EditorState, Selection, Transaction } from '@atlaskit/editor-prosemirror/state';
4
- import type { PasteSource } from '../../analytics';
5
- import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
4
+ import type { PasteSource, EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
6
5
  import type { CardOptions } from '@atlaskit/editor-common/card';
7
6
  export declare function isPastedFromWord(html?: string): boolean;
8
7
  export declare function isPastedFromExcel(html?: string): boolean;
@@ -49,6 +49,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
49
49
  sharedState: {
50
50
  createAnalyticsEvent: CreateUIAnalyticsEvent | null;
51
51
  attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
52
+ performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
52
53
  };
53
54
  dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
54
55
  pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
@@ -107,6 +108,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
107
108
  sharedState: {
108
109
  createAnalyticsEvent: CreateUIAnalyticsEvent | null;
109
110
  attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
111
+ performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
110
112
  };
111
113
  dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
112
114
  pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
@@ -133,6 +135,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
133
135
  sharedState: {
134
136
  createAnalyticsEvent: CreateUIAnalyticsEvent | null;
135
137
  attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
138
+ performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
136
139
  };
137
140
  dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
138
141
  pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
@@ -155,6 +158,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
155
158
  sharedState: {
156
159
  createAnalyticsEvent: CreateUIAnalyticsEvent | null;
157
160
  attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
161
+ performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
158
162
  };
159
163
  dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
160
164
  pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
@@ -231,6 +235,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
231
235
  sharedState: {
232
236
  createAnalyticsEvent: CreateUIAnalyticsEvent | null;
233
237
  attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
238
+ performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
234
239
  };
235
240
  dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
236
241
  pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
@@ -287,6 +292,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
287
292
  sharedState: {
288
293
  createAnalyticsEvent: CreateUIAnalyticsEvent | null;
289
294
  attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
295
+ performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
290
296
  };
291
297
  dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
292
298
  pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
@@ -334,6 +340,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
334
340
  sharedState: {
335
341
  createAnalyticsEvent: CreateUIAnalyticsEvent | null;
336
342
  attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
343
+ performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
337
344
  };
338
345
  dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
339
346
  pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
@@ -382,6 +389,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
382
389
  sharedState: {
383
390
  createAnalyticsEvent: CreateUIAnalyticsEvent | null;
384
391
  attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
392
+ performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
385
393
  };
386
394
  dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
387
395
  pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
@@ -440,6 +448,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
440
448
  sharedState: {
441
449
  createAnalyticsEvent: CreateUIAnalyticsEvent | null;
442
450
  attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
451
+ performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
443
452
  };
444
453
  dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
445
454
  pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
@@ -467,6 +476,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
467
476
  sharedState: {
468
477
  createAnalyticsEvent: CreateUIAnalyticsEvent | null;
469
478
  attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
479
+ performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
470
480
  };
471
481
  dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
472
482
  pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
@@ -500,6 +510,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
500
510
  sharedState: {
501
511
  createAnalyticsEvent: CreateUIAnalyticsEvent | null;
502
512
  attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
513
+ performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
503
514
  };
504
515
  dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
505
516
  pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
@@ -558,6 +569,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
558
569
  sharedState: {
559
570
  createAnalyticsEvent: CreateUIAnalyticsEvent | null;
560
571
  attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
572
+ performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
561
573
  };
562
574
  dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
563
575
  pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
@@ -584,6 +596,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
584
596
  sharedState: {
585
597
  createAnalyticsEvent: CreateUIAnalyticsEvent | null;
586
598
  attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
599
+ performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
587
600
  };
588
601
  dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
589
602
  pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
@@ -606,6 +619,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
606
619
  sharedState: {
607
620
  createAnalyticsEvent: CreateUIAnalyticsEvent | null;
608
621
  attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
622
+ performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
609
623
  };
610
624
  dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
611
625
  pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
@@ -682,6 +696,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
682
696
  sharedState: {
683
697
  createAnalyticsEvent: CreateUIAnalyticsEvent | null;
684
698
  attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
699
+ performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
685
700
  };
686
701
  dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
687
702
  pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
@@ -738,6 +753,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
738
753
  sharedState: {
739
754
  createAnalyticsEvent: CreateUIAnalyticsEvent | null;
740
755
  attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
756
+ performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
741
757
  };
742
758
  dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
743
759
  pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
@@ -785,6 +801,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
785
801
  sharedState: {
786
802
  createAnalyticsEvent: CreateUIAnalyticsEvent | null;
787
803
  attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
804
+ performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
788
805
  };
789
806
  dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
790
807
  pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
@@ -833,6 +850,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
833
850
  sharedState: {
834
851
  createAnalyticsEvent: CreateUIAnalyticsEvent | null;
835
852
  attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
853
+ performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
836
854
  };
837
855
  dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
838
856
  pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
@@ -891,6 +909,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
891
909
  sharedState: {
892
910
  createAnalyticsEvent: CreateUIAnalyticsEvent | null;
893
911
  attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
912
+ performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
894
913
  };
895
914
  dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
896
915
  pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
@@ -918,6 +937,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
918
937
  sharedState: {
919
938
  createAnalyticsEvent: CreateUIAnalyticsEvent | null;
920
939
  attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
940
+ performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
921
941
  };
922
942
  dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
923
943
  pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
@@ -7,8 +7,8 @@ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
7
7
  import type { WrappedComponentProps } from 'react-intl-next';
8
8
  import type { EditorAppearance, ToolbarUIComponentFactory, PrimaryToolbarComponents } from '../../../types';
9
9
  import type { CollabEditOptions } from '@atlaskit/editor-common/collab';
10
- import type { DispatchAnalyticsEvent } from '../../../plugins/analytics';
11
- import type { EventDispatcher } from '../../../event-dispatcher';
10
+ import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
11
+ import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
12
12
  import type { EditorActions } from '../../..';
13
13
  import type { FeatureFlags } from '../../../types/feature-flags';
14
14
  export interface FullPageToolbarProps {