@atlaskit/editor-common 107.28.2 → 107.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (488) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/afm-cc/tsconfig.json +7 -4
  3. package/dist/cjs/block-menu/messages.js +6 -1
  4. package/dist/cjs/messages/block-menu.js +3 -3
  5. package/dist/cjs/monitoring/error.js +1 -1
  6. package/dist/cjs/styles/shared/smartCard.js +1 -1
  7. package/dist/cjs/ui/DropList/index.js +1 -1
  8. package/dist/es2019/block-menu/messages.js +6 -1
  9. package/dist/es2019/messages/block-menu.js +3 -3
  10. package/dist/es2019/monitoring/error.js +1 -1
  11. package/dist/es2019/styles/shared/smartCard.js +2 -2
  12. package/dist/es2019/ui/DropList/index.js +1 -1
  13. package/dist/esm/block-menu/messages.js +6 -1
  14. package/dist/esm/messages/block-menu.js +3 -3
  15. package/dist/esm/monitoring/error.js +1 -1
  16. package/dist/esm/styles/shared/smartCard.js +1 -1
  17. package/dist/esm/ui/DropList/index.js +1 -1
  18. package/dist/types/analytics/api.d.ts +2 -2
  19. package/dist/types/analytics/types/activity-session-events.d.ts +14 -14
  20. package/dist/types/analytics/types/ai-definitions-events.d.ts +1 -1
  21. package/dist/types/analytics/types/ai-events.d.ts +2 -2
  22. package/dist/types/analytics/types/ai-inline-suggestion-events.d.ts +2 -2
  23. package/dist/types/analytics/types/ai-proactive-events.d.ts +12 -12
  24. package/dist/types/analytics/types/ai-unified-events.d.ts +11 -11
  25. package/dist/types/analytics/types/breakout-events.d.ts +4 -4
  26. package/dist/types/analytics/types/config-panel-events.d.ts +3 -3
  27. package/dist/types/analytics/types/cut-copy-events.d.ts +4 -4
  28. package/dist/types/analytics/types/datasource-clicked-events.d.ts +2 -2
  29. package/dist/types/analytics/types/date-events.d.ts +1 -1
  30. package/dist/types/analytics/types/element-events.d.ts +4 -4
  31. package/dist/types/analytics/types/events.d.ts +23 -23
  32. package/dist/types/analytics/types/extension-events.d.ts +5 -5
  33. package/dist/types/analytics/types/format-events.d.ts +6 -6
  34. package/dist/types/analytics/types/general-events.d.ts +32 -32
  35. package/dist/types/analytics/types/highlight-actions-menu-events.d.ts +1 -1
  36. package/dist/types/analytics/types/highlight-events.d.ts +1 -1
  37. package/dist/types/analytics/types/inline-comment-events.d.ts +1 -1
  38. package/dist/types/analytics/types/insert-events.d.ts +26 -26
  39. package/dist/types/analytics/types/link-events.d.ts +1 -1
  40. package/dist/types/analytics/types/link-tool-bar-events.d.ts +17 -17
  41. package/dist/types/analytics/types/list-events.d.ts +8 -8
  42. package/dist/types/analytics/types/loom-events.d.ts +1 -1
  43. package/dist/types/analytics/types/media-events.d.ts +9 -9
  44. package/dist/types/analytics/types/mention-events.d.ts +30 -30
  45. package/dist/types/analytics/types/move-content-events.d.ts +3 -3
  46. package/dist/types/analytics/types/ncs-session-step-events.d.ts +3 -3
  47. package/dist/types/analytics/types/node-events.d.ts +5 -5
  48. package/dist/types/analytics/types/offline-editing-event.d.ts +5 -5
  49. package/dist/types/analytics/types/paste-events.d.ts +6 -6
  50. package/dist/types/analytics/types/performance-report.d.ts +6 -6
  51. package/dist/types/analytics/types/referentiality-events.d.ts +2 -2
  52. package/dist/types/analytics/types/selection-events.d.ts +1 -1
  53. package/dist/types/analytics/types/smart-links.d.ts +2 -2
  54. package/dist/types/analytics/types/substitute-events.d.ts +1 -1
  55. package/dist/types/analytics/types/table-events.d.ts +19 -19
  56. package/dist/types/analytics/types/type-ahead.d.ts +3 -3
  57. package/dist/types/analytics/types/utils.d.ts +6 -6
  58. package/dist/types/analytics/types/view-events.d.ts +2 -2
  59. package/dist/types/annotation/index.d.ts +39 -39
  60. package/dist/types/block-menu/messages.d.ts +5 -0
  61. package/dist/types/card/LinkToolbarButtonGroup.d.ts +5 -5
  62. package/dist/types/card/MediaAndEmbedsToolbar/index.d.ts +2 -2
  63. package/dist/types/card/cardOptions.d.ts +36 -36
  64. package/dist/types/card/types.d.ts +8 -8
  65. package/dist/types/collab/index.d.ts +71 -71
  66. package/dist/types/doc-utils/editor-use-only.d.ts +1 -1
  67. package/dist/types/element-browser/ElementBrowser.d.ts +9 -9
  68. package/dist/types/element-browser/ViewMore.d.ts +1 -1
  69. package/dist/types/element-browser/components/CategoryList.d.ts +1 -1
  70. package/dist/types/element-browser/components/ElementList/ElementList.d.ts +11 -11
  71. package/dist/types/element-browser/components/ElementList/EmptyState.d.ts +1 -1
  72. package/dist/types/element-browser/components/ElementSearch.d.ts +4 -4
  73. package/dist/types/element-browser/components/StatelessElementBrowser.d.ts +14 -14
  74. package/dist/types/element-browser/hooks/use-select-and-focus-on-arrow-navigation.d.ts +12 -12
  75. package/dist/types/element-browser/types.d.ts +2 -2
  76. package/dist/types/extensibility/Extension/Extension/index.d.ts +12 -12
  77. package/dist/types/extensibility/Extension/InlineExtension/index.d.ts +5 -5
  78. package/dist/types/extensibility/Extension/LegacyContentHeader/index.d.ts +1 -1
  79. package/dist/types/extensibility/Extension/Lozenge/EditToggle.d.ts +2 -2
  80. package/dist/types/extensibility/Extension/Lozenge/ExtensionLabel.d.ts +6 -6
  81. package/dist/types/extensibility/Extension/Lozenge/LozengeComponent.d.ts +11 -11
  82. package/dist/types/extensibility/Extension/Lozenge/index.d.ts +9 -9
  83. package/dist/types/extensibility/Extension.d.ts +8 -8
  84. package/dist/types/extensibility/ExtensionComponent.d.ts +13 -13
  85. package/dist/types/extensibility/ExtensionNodeWrapper.d.ts +1 -1
  86. package/dist/types/extensibility/MultiBodiedExtension/action-api.d.ts +5 -5
  87. package/dist/types/extensibility/MultiBodiedExtension/index.d.ts +10 -10
  88. package/dist/types/extensibility/extensionNodeView.d.ts +8 -8
  89. package/dist/types/extensions/extension-handlers.d.ts +1 -1
  90. package/dist/types/extensions/types/extension-handler.d.ts +10 -10
  91. package/dist/types/extensions/types/extension-manifest-toolbar-item.d.ts +13 -13
  92. package/dist/types/extensions/types/extension-manifest.d.ts +26 -26
  93. package/dist/types/extensions/types/extension-provider.d.ts +3 -3
  94. package/dist/types/extensions/types/field-definitions.d.ts +40 -40
  95. package/dist/types/extensions/types/utils.d.ts +7 -7
  96. package/dist/types/floating-toolbar/DropdownMenuExtensionItems.d.ts +4 -4
  97. package/dist/types/floating-toolbar/DropdownMenuItem.d.ts +10 -10
  98. package/dist/types/guideline/relativeGuideline.d.ts +1 -1
  99. package/dist/types/guideline/types.d.ts +9 -9
  100. package/dist/types/guideline/updateGuideline.d.ts +1 -1
  101. package/dist/types/guideline/utils.d.ts +2 -2
  102. package/dist/types/icons/shared/DynamicStrokeIconDecoration.d.ts +1 -1
  103. package/dist/types/icons/shared/SteppedRainbowIconDecoration.d.ts +1 -1
  104. package/dist/types/insert/index.d.ts +2 -2
  105. package/dist/types/keymaps/index.d.ts +2 -2
  106. package/dist/types/lazy-node-view/index.d.ts +3 -3
  107. package/dist/types/link/ConfigureLinkOverlay/Dropdown.d.ts +3 -3
  108. package/dist/types/link/ConfigureLinkOverlay/handleNavigation.d.ts +1 -1
  109. package/dist/types/link/ConfigureLinkOverlay/index.d.ts +2 -2
  110. package/dist/types/link/LinkPicker/EditorLinkPicker/index.d.ts +3 -3
  111. package/dist/types/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.d.ts +12 -12
  112. package/dist/types/link/LinkPicker/HyperlinkAddToolbar/index.d.ts +8 -8
  113. package/dist/types/link/LinkSearch/LinkSearchList.d.ts +6 -6
  114. package/dist/types/link/LinkSearch/LinkSearchListItem.d.ts +4 -4
  115. package/dist/types/link/LinkSearch/types.d.ts +11 -11
  116. package/dist/types/link/types.d.ts +9 -9
  117. package/dist/types/lists/indentation.d.ts +1 -1
  118. package/dist/types/lists/node.d.ts +2 -2
  119. package/dist/types/lists/replace-content.d.ts +1 -1
  120. package/dist/types/lists/selection.d.ts +1 -1
  121. package/dist/types/media-inline/inline-image-card.d.ts +4 -4
  122. package/dist/types/media-inline/inline-image-wrapper.d.ts +3 -3
  123. package/dist/types/media-inline/media-inline-image-card.d.ts +8 -8
  124. package/dist/types/media-inline/types.d.ts +4 -4
  125. package/dist/types/media-inline/views/error-view.d.ts +3 -3
  126. package/dist/types/media-inline/views/loading-view.d.ts +2 -2
  127. package/dist/types/media-single/CommentBadge.d.ts +6 -6
  128. package/dist/types/media-single/CommentBadgeNext.d.ts +1 -1
  129. package/dist/types/media-single/MediaBadges.d.ts +4 -4
  130. package/dist/types/media-single/utils.d.ts +5 -5
  131. package/dist/types/node-visibility/node-visibility-manager.d.ts +5 -5
  132. package/dist/types/portal/PortalManager.d.ts +1 -1
  133. package/dist/types/portal/common.d.ts +2 -2
  134. package/dist/types/preset/builder.d.ts +1 -1
  135. package/dist/types/preset/plugin-injection-api.d.ts +3 -3
  136. package/dist/types/provider-factory/card-provider.d.ts +1 -1
  137. package/dist/types/provider-factory/context-identifier-provider.d.ts +1 -1
  138. package/dist/types/provider-factory/image-upload-provider.d.ts +1 -1
  139. package/dist/types/provider-factory/macro-provider.d.ts +4 -4
  140. package/dist/types/provider-factory/media-provider.d.ts +5 -5
  141. package/dist/types/provider-factory/profile-card-provider.d.ts +1 -1
  142. package/dist/types/provider-factory/quick-insert-provider.d.ts +10 -10
  143. package/dist/types/provider-factory/search-provider.d.ts +3 -3
  144. package/dist/types/provider-factory/types.d.ts +11 -11
  145. package/dist/types/provider-helpers/promise-helpers.d.ts +1 -1
  146. package/dist/types/quick-insert/use-icon-themed.d.ts +1 -1
  147. package/dist/types/react-node-view/getInlineNodeViewProducer.d.ts +6 -6
  148. package/dist/types/react-node-view/index.d.ts +1 -1
  149. package/dist/types/resizer/BreakoutResizer.d.ts +10 -10
  150. package/dist/types/resizer/Resizer.d.ts +32 -32
  151. package/dist/types/resizer/types.d.ts +2 -2
  152. package/dist/types/safe-plugin/index.d.ts +1 -1
  153. package/dist/types/selection/gap-cursor/actions.d.ts +1 -1
  154. package/dist/types/selection/gap-cursor/selection.d.ts +1 -1
  155. package/dist/types/selection/index.d.ts +1 -1
  156. package/dist/types/selection/types.d.ts +3 -3
  157. package/dist/types/table/SortingIcon.d.ts +1 -1
  158. package/dist/types/toolbar/context.d.ts +1 -1
  159. package/dist/types/types/annotation/index.d.ts +43 -43
  160. package/dist/types/types/copy-button.d.ts +8 -8
  161. package/dist/types/types/doc-builder.d.ts +1 -1
  162. package/dist/types/types/editor-actions.d.ts +6 -6
  163. package/dist/types/types/editor-container-width.d.ts +7 -7
  164. package/dist/types/types/editor-plugin.d.ts +33 -33
  165. package/dist/types/types/empty-state-handler.d.ts +1 -1
  166. package/dist/types/types/feature-flags.d.ts +107 -107
  167. package/dist/types/types/feedback-dialog.d.ts +5 -5
  168. package/dist/types/types/floating-toolbar.d.ts +142 -142
  169. package/dist/types/types/hyperlink.d.ts +10 -10
  170. package/dist/types/types/input-rules.d.ts +1 -1
  171. package/dist/types/types/next-editor-plugin.d.ts +47 -47
  172. package/dist/types/types/performance-tracking.d.ts +90 -90
  173. package/dist/types/types/plugin-factory.d.ts +6 -6
  174. package/dist/types/types/prosemirror-config.d.ts +1 -1
  175. package/dist/types/types/quick-insert.d.ts +9 -9
  176. package/dist/types/types/selection-toolbar.d.ts +2 -2
  177. package/dist/types/types/supported-browsers.d.ts +1 -1
  178. package/dist/types/types/tables.d.ts +3 -3
  179. package/dist/types/types/text-formatting.d.ts +14 -14
  180. package/dist/types/types/toolbar.d.ts +2 -2
  181. package/dist/types/types/type-ahead.d.ts +29 -29
  182. package/dist/types/types/ui-components.d.ts +7 -7
  183. package/dist/types/types/user-preferences.d.ts +6 -6
  184. package/dist/types/ugc-tokens/editor-ugc-token-names.d.ts +1 -1
  185. package/dist/types/ui/Announcer/announcer.d.ts +5 -5
  186. package/dist/types/ui/AssistiveText/AssistiveText.d.ts +2 -2
  187. package/dist/types/ui/BaseTheme/index.d.ts +2 -2
  188. package/dist/types/ui/Caption/index.d.ts +2 -2
  189. package/dist/types/ui/ContextPanel/context.d.ts +4 -4
  190. package/dist/types/ui/DropList/index.d.ts +7 -7
  191. package/dist/types/ui/Emoji/index.d.ts +3 -3
  192. package/dist/types/ui/ErrorBoundary/index.d.ts +1 -1
  193. package/dist/types/ui/EventHandlers/index.d.ts +7 -7
  194. package/dist/types/ui/Expand/sharedStyles.d.ts +2 -2
  195. package/dist/types/ui/FloatingToolbar/Button.d.ts +20 -20
  196. package/dist/types/ui/FloatingToolbar/ButtonSpotlightCard.d.ts +1 -1
  197. package/dist/types/ui/HoverLinkOverlay/types.d.ts +4 -4
  198. package/dist/types/ui/Layer/index.d.ts +6 -6
  199. package/dist/types/ui/MediaSingle/grid.d.ts +4 -4
  200. package/dist/types/ui/MediaSingle/index.d.ts +12 -12
  201. package/dist/types/ui/MediaSingle/styled.d.ts +8 -8
  202. package/dist/types/ui/Mention/index.d.ts +3 -3
  203. package/dist/types/ui/Mention/mention-with-profilecard.d.ts +4 -4
  204. package/dist/types/ui/Mention/mention-with-providers.d.ts +4 -4
  205. package/dist/types/ui/OverflowShadow/index.d.ts +1 -1
  206. package/dist/types/ui/OverflowShadow/shadowObserver.d.ts +1 -1
  207. package/dist/types/ui/PanelTextInput/index.d.ts +18 -18
  208. package/dist/types/ui/Popup/index.d.ts +16 -16
  209. package/dist/types/ui/Popup/utils.d.ts +6 -6
  210. package/dist/types/ui/Pulse/Pulse.d.ts +1 -1
  211. package/dist/types/ui/ResizerLegacy/index.d.ts +11 -11
  212. package/dist/types/ui/ResizerLegacy/types.d.ts +8 -8
  213. package/dist/types/ui/TableSelector/index.d.ts +11 -11
  214. package/dist/types/ui/TableSelector/table-selector.d.ts +7 -7
  215. package/dist/types/ui/UnsupportedBlock/index.d.ts +1 -1
  216. package/dist/types/ui/UnsupportedInline/index.d.ts +1 -1
  217. package/dist/types/ui/WidthProvider/index.d.ts +2 -2
  218. package/dist/types/ui-color/ColorPalette/Color/index.d.ts +8 -8
  219. package/dist/types/ui-color/ColorPalette/Palettes/type.d.ts +3 -3
  220. package/dist/types/ui-color/ColorPalette/index.d.ts +4 -4
  221. package/dist/types/ui-menu/ArrowKeyNavigationProvider/types.d.ts +11 -11
  222. package/dist/types/ui-menu/ColorPickerButton/index.d.ts +11 -11
  223. package/dist/types/ui-menu/Dropdown/index.d.ts +15 -15
  224. package/dist/types/ui-menu/DropdownMenu/types.d.ts +33 -33
  225. package/dist/types/ui-menu/ToolbarArrowKeyNavigationProvider/index.d.ts +4 -4
  226. package/dist/types/ui-menu/ToolbarButton/index.d.ts +19 -19
  227. package/dist/types/ui-react/ReactEditorViewContext.d.ts +1 -1
  228. package/dist/types/ui-react/with-react-editor-view-outer-listeners.d.ts +5 -5
  229. package/dist/types/user-preferences/persistence-api.d.ts +8 -8
  230. package/dist/types/utils/breakout.d.ts +12 -12
  231. package/dist/types/utils/calculate-toolbar-position.d.ts +1 -1
  232. package/dist/types/utils/compare-props.d.ts +3 -3
  233. package/dist/types/utils/count-nodes.d.ts +1 -1
  234. package/dist/types/utils/create-wrap-selection-transaction.d.ts +1 -1
  235. package/dist/types/utils/editor-core-utils.d.ts +1 -1
  236. package/dist/types/utils/error-reporter.d.ts +1 -1
  237. package/dist/types/utils/get-performance-options.d.ts +2 -2
  238. package/dist/types/utils/hyperlink.d.ts +1 -1
  239. package/dist/types/utils/imageLoader.d.ts +3 -3
  240. package/dist/types/utils/input-rules.d.ts +2 -2
  241. package/dist/types/utils/macro.d.ts +1 -1
  242. package/dist/types/utils/page-element-counts.d.ts +2 -2
  243. package/dist/types/utils/performance/hooks/use-component-render-tracking/index.d.ts +2 -2
  244. package/dist/types/utils/performance/measure-render.d.ts +3 -3
  245. package/dist/types/utils/performance/measure-tti.d.ts +1 -1
  246. package/dist/types/utils/plugin-state-factory.d.ts +1 -1
  247. package/dist/types/utils/profiler/render-count.d.ts +3 -3
  248. package/dist/types/utils/track-unsupported-content.d.ts +5 -5
  249. package/dist/types/utils/unsupportedContent/get-unsupported-content-level-data.d.ts +1 -1
  250. package/dist/types/utils/unsupportedContent/types.d.ts +1 -1
  251. package/dist/types/utils/validator.d.ts +5 -5
  252. package/dist/types/with-plugin-state/index.d.ts +1 -1
  253. package/dist/types-ts4.5/analytics/api.d.ts +2 -2
  254. package/dist/types-ts4.5/analytics/types/activity-session-events.d.ts +14 -14
  255. package/dist/types-ts4.5/analytics/types/ai-definitions-events.d.ts +1 -1
  256. package/dist/types-ts4.5/analytics/types/ai-events.d.ts +2 -2
  257. package/dist/types-ts4.5/analytics/types/ai-inline-suggestion-events.d.ts +2 -2
  258. package/dist/types-ts4.5/analytics/types/ai-proactive-events.d.ts +12 -12
  259. package/dist/types-ts4.5/analytics/types/ai-unified-events.d.ts +11 -11
  260. package/dist/types-ts4.5/analytics/types/breakout-events.d.ts +4 -4
  261. package/dist/types-ts4.5/analytics/types/config-panel-events.d.ts +3 -3
  262. package/dist/types-ts4.5/analytics/types/cut-copy-events.d.ts +4 -4
  263. package/dist/types-ts4.5/analytics/types/datasource-clicked-events.d.ts +2 -2
  264. package/dist/types-ts4.5/analytics/types/date-events.d.ts +1 -1
  265. package/dist/types-ts4.5/analytics/types/element-events.d.ts +4 -4
  266. package/dist/types-ts4.5/analytics/types/events.d.ts +23 -23
  267. package/dist/types-ts4.5/analytics/types/extension-events.d.ts +5 -5
  268. package/dist/types-ts4.5/analytics/types/format-events.d.ts +6 -6
  269. package/dist/types-ts4.5/analytics/types/general-events.d.ts +32 -32
  270. package/dist/types-ts4.5/analytics/types/highlight-actions-menu-events.d.ts +1 -1
  271. package/dist/types-ts4.5/analytics/types/highlight-events.d.ts +1 -1
  272. package/dist/types-ts4.5/analytics/types/inline-comment-events.d.ts +1 -1
  273. package/dist/types-ts4.5/analytics/types/insert-events.d.ts +26 -26
  274. package/dist/types-ts4.5/analytics/types/link-events.d.ts +1 -1
  275. package/dist/types-ts4.5/analytics/types/link-tool-bar-events.d.ts +17 -17
  276. package/dist/types-ts4.5/analytics/types/list-events.d.ts +8 -8
  277. package/dist/types-ts4.5/analytics/types/loom-events.d.ts +1 -1
  278. package/dist/types-ts4.5/analytics/types/media-events.d.ts +9 -9
  279. package/dist/types-ts4.5/analytics/types/mention-events.d.ts +30 -30
  280. package/dist/types-ts4.5/analytics/types/move-content-events.d.ts +3 -3
  281. package/dist/types-ts4.5/analytics/types/ncs-session-step-events.d.ts +3 -3
  282. package/dist/types-ts4.5/analytics/types/node-events.d.ts +5 -5
  283. package/dist/types-ts4.5/analytics/types/offline-editing-event.d.ts +5 -5
  284. package/dist/types-ts4.5/analytics/types/paste-events.d.ts +6 -6
  285. package/dist/types-ts4.5/analytics/types/performance-report.d.ts +6 -6
  286. package/dist/types-ts4.5/analytics/types/referentiality-events.d.ts +2 -2
  287. package/dist/types-ts4.5/analytics/types/selection-events.d.ts +1 -1
  288. package/dist/types-ts4.5/analytics/types/smart-links.d.ts +2 -2
  289. package/dist/types-ts4.5/analytics/types/substitute-events.d.ts +1 -1
  290. package/dist/types-ts4.5/analytics/types/table-events.d.ts +19 -19
  291. package/dist/types-ts4.5/analytics/types/type-ahead.d.ts +3 -3
  292. package/dist/types-ts4.5/analytics/types/utils.d.ts +6 -6
  293. package/dist/types-ts4.5/analytics/types/view-events.d.ts +2 -2
  294. package/dist/types-ts4.5/annotation/index.d.ts +39 -39
  295. package/dist/types-ts4.5/block-menu/messages.d.ts +5 -0
  296. package/dist/types-ts4.5/card/LinkToolbarButtonGroup.d.ts +5 -5
  297. package/dist/types-ts4.5/card/MediaAndEmbedsToolbar/index.d.ts +2 -2
  298. package/dist/types-ts4.5/card/cardOptions.d.ts +36 -36
  299. package/dist/types-ts4.5/card/types.d.ts +8 -8
  300. package/dist/types-ts4.5/collab/index.d.ts +71 -71
  301. package/dist/types-ts4.5/doc-utils/editor-use-only.d.ts +1 -1
  302. package/dist/types-ts4.5/element-browser/ElementBrowser.d.ts +9 -9
  303. package/dist/types-ts4.5/element-browser/ViewMore.d.ts +1 -1
  304. package/dist/types-ts4.5/element-browser/components/CategoryList.d.ts +1 -1
  305. package/dist/types-ts4.5/element-browser/components/ElementList/ElementList.d.ts +11 -11
  306. package/dist/types-ts4.5/element-browser/components/ElementList/EmptyState.d.ts +1 -1
  307. package/dist/types-ts4.5/element-browser/components/ElementSearch.d.ts +4 -4
  308. package/dist/types-ts4.5/element-browser/components/StatelessElementBrowser.d.ts +14 -14
  309. package/dist/types-ts4.5/element-browser/hooks/use-select-and-focus-on-arrow-navigation.d.ts +12 -12
  310. package/dist/types-ts4.5/element-browser/types.d.ts +2 -2
  311. package/dist/types-ts4.5/extensibility/Extension/Extension/index.d.ts +12 -12
  312. package/dist/types-ts4.5/extensibility/Extension/InlineExtension/index.d.ts +5 -5
  313. package/dist/types-ts4.5/extensibility/Extension/LegacyContentHeader/index.d.ts +1 -1
  314. package/dist/types-ts4.5/extensibility/Extension/Lozenge/EditToggle.d.ts +2 -2
  315. package/dist/types-ts4.5/extensibility/Extension/Lozenge/ExtensionLabel.d.ts +6 -6
  316. package/dist/types-ts4.5/extensibility/Extension/Lozenge/LozengeComponent.d.ts +11 -11
  317. package/dist/types-ts4.5/extensibility/Extension/Lozenge/index.d.ts +9 -9
  318. package/dist/types-ts4.5/extensibility/Extension.d.ts +8 -8
  319. package/dist/types-ts4.5/extensibility/ExtensionComponent.d.ts +13 -13
  320. package/dist/types-ts4.5/extensibility/ExtensionNodeWrapper.d.ts +1 -1
  321. package/dist/types-ts4.5/extensibility/MultiBodiedExtension/action-api.d.ts +5 -5
  322. package/dist/types-ts4.5/extensibility/MultiBodiedExtension/index.d.ts +10 -10
  323. package/dist/types-ts4.5/extensibility/extensionNodeView.d.ts +8 -8
  324. package/dist/types-ts4.5/extensions/extension-handlers.d.ts +1 -1
  325. package/dist/types-ts4.5/extensions/types/extension-handler.d.ts +10 -10
  326. package/dist/types-ts4.5/extensions/types/extension-manifest-toolbar-item.d.ts +13 -13
  327. package/dist/types-ts4.5/extensions/types/extension-manifest.d.ts +26 -26
  328. package/dist/types-ts4.5/extensions/types/extension-provider.d.ts +3 -3
  329. package/dist/types-ts4.5/extensions/types/field-definitions.d.ts +40 -40
  330. package/dist/types-ts4.5/extensions/types/utils.d.ts +7 -7
  331. package/dist/types-ts4.5/floating-toolbar/DropdownMenuExtensionItems.d.ts +4 -4
  332. package/dist/types-ts4.5/floating-toolbar/DropdownMenuItem.d.ts +10 -10
  333. package/dist/types-ts4.5/guideline/relativeGuideline.d.ts +1 -1
  334. package/dist/types-ts4.5/guideline/types.d.ts +9 -9
  335. package/dist/types-ts4.5/guideline/updateGuideline.d.ts +1 -1
  336. package/dist/types-ts4.5/guideline/utils.d.ts +2 -2
  337. package/dist/types-ts4.5/icons/shared/DynamicStrokeIconDecoration.d.ts +1 -1
  338. package/dist/types-ts4.5/icons/shared/SteppedRainbowIconDecoration.d.ts +1 -1
  339. package/dist/types-ts4.5/insert/index.d.ts +2 -2
  340. package/dist/types-ts4.5/keymaps/index.d.ts +2 -2
  341. package/dist/types-ts4.5/lazy-node-view/index.d.ts +3 -3
  342. package/dist/types-ts4.5/link/ConfigureLinkOverlay/Dropdown.d.ts +3 -3
  343. package/dist/types-ts4.5/link/ConfigureLinkOverlay/handleNavigation.d.ts +1 -1
  344. package/dist/types-ts4.5/link/ConfigureLinkOverlay/index.d.ts +2 -2
  345. package/dist/types-ts4.5/link/LinkPicker/EditorLinkPicker/index.d.ts +3 -3
  346. package/dist/types-ts4.5/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.d.ts +12 -12
  347. package/dist/types-ts4.5/link/LinkPicker/HyperlinkAddToolbar/index.d.ts +8 -8
  348. package/dist/types-ts4.5/link/LinkSearch/LinkSearchList.d.ts +6 -6
  349. package/dist/types-ts4.5/link/LinkSearch/LinkSearchListItem.d.ts +4 -4
  350. package/dist/types-ts4.5/link/LinkSearch/types.d.ts +11 -11
  351. package/dist/types-ts4.5/link/types.d.ts +9 -9
  352. package/dist/types-ts4.5/lists/indentation.d.ts +1 -1
  353. package/dist/types-ts4.5/lists/node.d.ts +2 -2
  354. package/dist/types-ts4.5/lists/replace-content.d.ts +1 -1
  355. package/dist/types-ts4.5/lists/selection.d.ts +1 -1
  356. package/dist/types-ts4.5/media-inline/inline-image-card.d.ts +4 -4
  357. package/dist/types-ts4.5/media-inline/inline-image-wrapper.d.ts +3 -3
  358. package/dist/types-ts4.5/media-inline/media-inline-image-card.d.ts +8 -8
  359. package/dist/types-ts4.5/media-inline/types.d.ts +4 -4
  360. package/dist/types-ts4.5/media-inline/views/error-view.d.ts +3 -3
  361. package/dist/types-ts4.5/media-inline/views/loading-view.d.ts +2 -2
  362. package/dist/types-ts4.5/media-single/CommentBadge.d.ts +6 -6
  363. package/dist/types-ts4.5/media-single/CommentBadgeNext.d.ts +1 -1
  364. package/dist/types-ts4.5/media-single/MediaBadges.d.ts +4 -4
  365. package/dist/types-ts4.5/media-single/utils.d.ts +5 -5
  366. package/dist/types-ts4.5/node-visibility/node-visibility-manager.d.ts +5 -5
  367. package/dist/types-ts4.5/portal/PortalManager.d.ts +1 -1
  368. package/dist/types-ts4.5/portal/common.d.ts +2 -2
  369. package/dist/types-ts4.5/preset/builder.d.ts +1 -1
  370. package/dist/types-ts4.5/preset/plugin-injection-api.d.ts +3 -3
  371. package/dist/types-ts4.5/provider-factory/card-provider.d.ts +1 -1
  372. package/dist/types-ts4.5/provider-factory/context-identifier-provider.d.ts +1 -1
  373. package/dist/types-ts4.5/provider-factory/image-upload-provider.d.ts +1 -1
  374. package/dist/types-ts4.5/provider-factory/macro-provider.d.ts +4 -4
  375. package/dist/types-ts4.5/provider-factory/media-provider.d.ts +5 -5
  376. package/dist/types-ts4.5/provider-factory/profile-card-provider.d.ts +1 -1
  377. package/dist/types-ts4.5/provider-factory/quick-insert-provider.d.ts +10 -10
  378. package/dist/types-ts4.5/provider-factory/search-provider.d.ts +3 -3
  379. package/dist/types-ts4.5/provider-factory/types.d.ts +11 -11
  380. package/dist/types-ts4.5/provider-helpers/promise-helpers.d.ts +1 -1
  381. package/dist/types-ts4.5/quick-insert/use-icon-themed.d.ts +1 -1
  382. package/dist/types-ts4.5/react-node-view/getInlineNodeViewProducer.d.ts +6 -6
  383. package/dist/types-ts4.5/react-node-view/index.d.ts +1 -1
  384. package/dist/types-ts4.5/resizer/BreakoutResizer.d.ts +10 -10
  385. package/dist/types-ts4.5/resizer/Resizer.d.ts +32 -32
  386. package/dist/types-ts4.5/resizer/types.d.ts +2 -2
  387. package/dist/types-ts4.5/safe-plugin/index.d.ts +1 -1
  388. package/dist/types-ts4.5/selection/gap-cursor/actions.d.ts +1 -1
  389. package/dist/types-ts4.5/selection/gap-cursor/selection.d.ts +1 -1
  390. package/dist/types-ts4.5/selection/index.d.ts +1 -1
  391. package/dist/types-ts4.5/selection/types.d.ts +3 -3
  392. package/dist/types-ts4.5/table/SortingIcon.d.ts +1 -1
  393. package/dist/types-ts4.5/toolbar/context.d.ts +1 -1
  394. package/dist/types-ts4.5/types/annotation/index.d.ts +43 -43
  395. package/dist/types-ts4.5/types/copy-button.d.ts +8 -8
  396. package/dist/types-ts4.5/types/doc-builder.d.ts +1 -1
  397. package/dist/types-ts4.5/types/editor-actions.d.ts +6 -6
  398. package/dist/types-ts4.5/types/editor-container-width.d.ts +7 -7
  399. package/dist/types-ts4.5/types/editor-plugin.d.ts +33 -33
  400. package/dist/types-ts4.5/types/empty-state-handler.d.ts +1 -1
  401. package/dist/types-ts4.5/types/feature-flags.d.ts +107 -107
  402. package/dist/types-ts4.5/types/feedback-dialog.d.ts +5 -5
  403. package/dist/types-ts4.5/types/floating-toolbar.d.ts +142 -142
  404. package/dist/types-ts4.5/types/hyperlink.d.ts +10 -10
  405. package/dist/types-ts4.5/types/input-rules.d.ts +1 -1
  406. package/dist/types-ts4.5/types/next-editor-plugin.d.ts +47 -47
  407. package/dist/types-ts4.5/types/performance-tracking.d.ts +90 -90
  408. package/dist/types-ts4.5/types/plugin-factory.d.ts +6 -6
  409. package/dist/types-ts4.5/types/prosemirror-config.d.ts +1 -1
  410. package/dist/types-ts4.5/types/quick-insert.d.ts +9 -9
  411. package/dist/types-ts4.5/types/selection-toolbar.d.ts +2 -2
  412. package/dist/types-ts4.5/types/supported-browsers.d.ts +1 -1
  413. package/dist/types-ts4.5/types/tables.d.ts +3 -3
  414. package/dist/types-ts4.5/types/text-formatting.d.ts +14 -14
  415. package/dist/types-ts4.5/types/toolbar.d.ts +2 -2
  416. package/dist/types-ts4.5/types/type-ahead.d.ts +29 -29
  417. package/dist/types-ts4.5/types/ui-components.d.ts +7 -7
  418. package/dist/types-ts4.5/types/user-preferences.d.ts +6 -6
  419. package/dist/types-ts4.5/ugc-tokens/editor-ugc-token-names.d.ts +1 -1
  420. package/dist/types-ts4.5/ui/Announcer/announcer.d.ts +5 -5
  421. package/dist/types-ts4.5/ui/AssistiveText/AssistiveText.d.ts +2 -2
  422. package/dist/types-ts4.5/ui/BaseTheme/index.d.ts +2 -2
  423. package/dist/types-ts4.5/ui/Caption/index.d.ts +2 -2
  424. package/dist/types-ts4.5/ui/ContextPanel/context.d.ts +4 -4
  425. package/dist/types-ts4.5/ui/DropList/index.d.ts +7 -7
  426. package/dist/types-ts4.5/ui/Emoji/index.d.ts +3 -3
  427. package/dist/types-ts4.5/ui/ErrorBoundary/index.d.ts +1 -1
  428. package/dist/types-ts4.5/ui/EventHandlers/index.d.ts +7 -7
  429. package/dist/types-ts4.5/ui/Expand/sharedStyles.d.ts +2 -2
  430. package/dist/types-ts4.5/ui/FloatingToolbar/Button.d.ts +20 -20
  431. package/dist/types-ts4.5/ui/FloatingToolbar/ButtonSpotlightCard.d.ts +1 -1
  432. package/dist/types-ts4.5/ui/HoverLinkOverlay/types.d.ts +4 -4
  433. package/dist/types-ts4.5/ui/Layer/index.d.ts +6 -6
  434. package/dist/types-ts4.5/ui/MediaSingle/grid.d.ts +4 -4
  435. package/dist/types-ts4.5/ui/MediaSingle/index.d.ts +12 -12
  436. package/dist/types-ts4.5/ui/MediaSingle/styled.d.ts +8 -8
  437. package/dist/types-ts4.5/ui/Mention/index.d.ts +3 -3
  438. package/dist/types-ts4.5/ui/Mention/mention-with-profilecard.d.ts +4 -4
  439. package/dist/types-ts4.5/ui/Mention/mention-with-providers.d.ts +4 -4
  440. package/dist/types-ts4.5/ui/OverflowShadow/index.d.ts +1 -1
  441. package/dist/types-ts4.5/ui/OverflowShadow/shadowObserver.d.ts +1 -1
  442. package/dist/types-ts4.5/ui/PanelTextInput/index.d.ts +18 -18
  443. package/dist/types-ts4.5/ui/Popup/index.d.ts +16 -16
  444. package/dist/types-ts4.5/ui/Popup/utils.d.ts +6 -6
  445. package/dist/types-ts4.5/ui/Pulse/Pulse.d.ts +1 -1
  446. package/dist/types-ts4.5/ui/ResizerLegacy/index.d.ts +11 -11
  447. package/dist/types-ts4.5/ui/ResizerLegacy/types.d.ts +8 -8
  448. package/dist/types-ts4.5/ui/TableSelector/index.d.ts +11 -11
  449. package/dist/types-ts4.5/ui/TableSelector/table-selector.d.ts +7 -7
  450. package/dist/types-ts4.5/ui/UnsupportedBlock/index.d.ts +1 -1
  451. package/dist/types-ts4.5/ui/UnsupportedInline/index.d.ts +1 -1
  452. package/dist/types-ts4.5/ui/WidthProvider/index.d.ts +2 -2
  453. package/dist/types-ts4.5/ui-color/ColorPalette/Color/index.d.ts +8 -8
  454. package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/type.d.ts +3 -3
  455. package/dist/types-ts4.5/ui-color/ColorPalette/index.d.ts +4 -4
  456. package/dist/types-ts4.5/ui-menu/ArrowKeyNavigationProvider/types.d.ts +11 -11
  457. package/dist/types-ts4.5/ui-menu/ColorPickerButton/index.d.ts +11 -11
  458. package/dist/types-ts4.5/ui-menu/Dropdown/index.d.ts +15 -15
  459. package/dist/types-ts4.5/ui-menu/DropdownMenu/types.d.ts +33 -33
  460. package/dist/types-ts4.5/ui-menu/ToolbarArrowKeyNavigationProvider/index.d.ts +4 -4
  461. package/dist/types-ts4.5/ui-menu/ToolbarButton/index.d.ts +19 -19
  462. package/dist/types-ts4.5/ui-react/ReactEditorViewContext.d.ts +1 -1
  463. package/dist/types-ts4.5/ui-react/with-react-editor-view-outer-listeners.d.ts +5 -5
  464. package/dist/types-ts4.5/user-preferences/persistence-api.d.ts +8 -8
  465. package/dist/types-ts4.5/utils/breakout.d.ts +12 -12
  466. package/dist/types-ts4.5/utils/calculate-toolbar-position.d.ts +1 -1
  467. package/dist/types-ts4.5/utils/compare-props.d.ts +3 -3
  468. package/dist/types-ts4.5/utils/count-nodes.d.ts +1 -1
  469. package/dist/types-ts4.5/utils/create-wrap-selection-transaction.d.ts +1 -1
  470. package/dist/types-ts4.5/utils/editor-core-utils.d.ts +1 -1
  471. package/dist/types-ts4.5/utils/error-reporter.d.ts +1 -1
  472. package/dist/types-ts4.5/utils/get-performance-options.d.ts +2 -2
  473. package/dist/types-ts4.5/utils/hyperlink.d.ts +1 -1
  474. package/dist/types-ts4.5/utils/imageLoader.d.ts +3 -3
  475. package/dist/types-ts4.5/utils/input-rules.d.ts +2 -2
  476. package/dist/types-ts4.5/utils/macro.d.ts +1 -1
  477. package/dist/types-ts4.5/utils/page-element-counts.d.ts +2 -2
  478. package/dist/types-ts4.5/utils/performance/hooks/use-component-render-tracking/index.d.ts +2 -2
  479. package/dist/types-ts4.5/utils/performance/measure-render.d.ts +3 -3
  480. package/dist/types-ts4.5/utils/performance/measure-tti.d.ts +1 -1
  481. package/dist/types-ts4.5/utils/plugin-state-factory.d.ts +1 -1
  482. package/dist/types-ts4.5/utils/profiler/render-count.d.ts +3 -3
  483. package/dist/types-ts4.5/utils/track-unsupported-content.d.ts +5 -5
  484. package/dist/types-ts4.5/utils/unsupportedContent/get-unsupported-content-level-data.d.ts +1 -1
  485. package/dist/types-ts4.5/utils/unsupportedContent/types.d.ts +1 -1
  486. package/dist/types-ts4.5/utils/validator.d.ts +5 -5
  487. package/dist/types-ts4.5/with-plugin-state/index.d.ts +1 -1
  488. package/package.json +4 -8
@@ -34,28 +34,28 @@ type VisitedHyperlink = TrackAEP<ACTION.VISITED, ACTION_SUBJECT.HYPERLINK, undef
34
34
  inputMethod: INPUT_METHOD.TOOLBAR;
35
35
  }, undefined>;
36
36
  type DeletedSmartLink = TrackAEP<ACTION.DELETED, ACTION_SUBJECT.SMART_LINK, ACTION_SUBJECT_ID.CARD_BLOCK | ACTION_SUBJECT_ID.CARD_INLINE, {
37
- inputMethod: INPUT_METHOD.FLOATING_TB | INPUT_METHOD.TOOLBAR | INPUT_METHOD.CARD;
38
37
  displayMode: ACTION_SUBJECT_ID.CARD_BLOCK | ACTION_SUBJECT_ID.CARD_INLINE;
38
+ inputMethod: INPUT_METHOD.FLOATING_TB | INPUT_METHOD.TOOLBAR | INPUT_METHOD.CARD;
39
39
  }, undefined>;
40
40
  export type NodeDeletedAEP = TrackAEP<ACTION.DELETED, ACTION_SUBJECT.PANEL | ACTION_SUBJECT.LAYOUT | ACTION_SUBJECT.EXPAND | ACTION_SUBJECT.TABLE | ACTION_SUBJECT.EXTENSION | ACTION_SUBJECT.BODIED_EXTENSION | ACTION_SUBJECT.SMART_LINK | ACTION_SUBJECT.CODE_BLOCK | ACTION_SUBJECT.MEDIA_SINGLE | ACTION_SUBJECT.MEDIA_GROUP | ACTION_SUBJECT.MEDIA_INLINE, undefined, {
41
41
  inputMethod: INPUT_METHOD.FLOATING_TB | INPUT_METHOD.TOOLBAR;
42
42
  }, undefined>;
43
43
  type ChangedLayoutAEP = TrackAEP<ACTION.CHANGED_LAYOUT, ACTION_SUBJECT.LAYOUT, undefined, {
44
- previousLayout?: LAYOUT_TYPE;
45
44
  newLayout?: LAYOUT_TYPE;
45
+ previousLayout?: LAYOUT_TYPE;
46
46
  }, undefined>;
47
47
  type DeletedLayoutAEP = TrackAEP<ACTION.DELETED, ACTION_SUBJECT.LAYOUT, undefined, {
48
- layout?: LAYOUT_TYPE;
49
48
  inputMethod?: INPUT_METHOD.FLOATING_TB | INPUT_METHOD.TOOLBAR;
49
+ layout?: LAYOUT_TYPE;
50
50
  }, undefined>;
51
51
  type DeletedExpandAEP = TrackAEP<ACTION.DELETED, ACTION_SUBJECT.EXPAND | ACTION_SUBJECT.NESTED_EXPAND, undefined, {
52
52
  inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.FLOATING_TB;
53
53
  }, undefined>;
54
54
  type UnsupportedContentAEP = TrackAEP<ACTION.UNSUPPORTED_CONTENT_ENCOUNTERED, ACTION_SUBJECT.DOCUMENT, ACTION_SUBJECT_ID.UNSUPPORTED_BLOCK | ACTION_SUBJECT_ID.UNSUPPORTED_INLINE | ACTION_SUBJECT_ID.UNSUPPORTED_MARK, {
55
55
  unsupportedNode: {
56
- type: string;
57
- parentType: string;
58
56
  ancestry: string;
57
+ parentType: string;
58
+ type: string;
59
59
  };
60
60
  }, undefined>;
61
61
  export type NodeEventPayload = ChangePanelAEP | DeletePanelAEP | DeletedSmartLink | VisitedSmartLink | VisitedHyperlink | ChangedLayoutAEP | DeletedLayoutAEP | DeletedExpandAEP | NodeDeletedAEP | ChangeSmartLinkAEP | UnsupportedContentAEP;
@@ -1,14 +1,14 @@
1
1
  import type { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID } from './enums';
2
2
  import type { TrackAEP } from './utils';
3
3
  type OfflineEditingAEP = TrackAEP<ACTION.OFFLINE_STORAGE_TOO_MANY_RETRIES_ERROR | ACTION.OFFLINE_STORAGE_STEPS_DATABASE_ERROR | ACTION.OFFLINE_STORAGE_RESYNC_ONLINE | ACTION.OFFLINE_STORAGE_BROADCAST_CHANNEL_FIRST_UPDATE | ACTION.OFFLINE_STORAGE_FAILED_STEPS, ACTION_SUBJECT.OFFLINE_EDITING, ACTION_SUBJECT_ID.OFFLINE_EDITING, {
4
+ disabled?: string | boolean;
4
5
  errorMessage?: string;
5
- version?: number;
6
- stepsCount?: number;
7
- status?: string;
6
+ healthy?: boolean;
8
7
  retryCount?: number;
9
- disabled?: string | boolean;
10
8
  retrySource?: string;
11
- healthy?: boolean;
9
+ status?: string;
10
+ stepsCount?: number;
11
+ version?: number;
12
12
  }, undefined>;
13
13
  export type OfflineEditingEventPayload = OfflineEditingAEP;
14
14
  export {};
@@ -16,24 +16,24 @@ export type PASTE_ACTION_SUBJECT_ID = ACTION_SUBJECT_ID.PASTE_BLOCKQUOTE | ACTIO
16
16
  type PasteBaseAEP<Action, Attributes, NonPrivacySafeAttributes> = TrackAEP<Action, ACTION_SUBJECT.DOCUMENT, PASTE_ACTION_SUBJECT_ID, Attributes, NonPrivacySafeAttributes>;
17
17
  type PasteBaseOperationalAEP<Action, Attributes> = OperationalAEP<Action, ACTION_SUBJECT.EDITOR, PASTE_ACTION_SUBJECT_ID, Attributes>;
18
18
  type PasteAEP = PasteBaseAEP<ACTION.PASTED, {
19
- inputMethod: INPUT_METHOD.KEYBOARD | INPUT_METHOD.TOOLBAR;
20
- type: PasteType;
21
19
  content: PasteContent;
22
- source?: PasteSource;
20
+ inputMethod: INPUT_METHOD.KEYBOARD | INPUT_METHOD.TOOLBAR;
23
21
  pasteSize: number;
22
+ source?: PasteSource;
23
+ type: PasteType;
24
24
  }, {
25
25
  linkDomain?: string[];
26
26
  } | undefined>;
27
27
  type PasteAsPlainAEP = PasteBaseAEP<ACTION.PASTED_AS_PLAIN, {
28
28
  inputMethod: string;
29
- pasteSize: number;
30
29
  linksInPasteCount: number;
30
+ pasteSize: number;
31
31
  }, undefined>;
32
32
  type PastedTimedAEP = PasteBaseOperationalAEP<ACTION.PASTED_TIMED, {
33
- pasteIntoNode: PASTE_ACTION_SUBJECT_ID;
34
33
  content: Array<string>;
35
- time: number;
36
34
  distortedDuration: boolean;
35
+ pasteIntoNode: PASTE_ACTION_SUBJECT_ID;
36
+ time: number;
37
37
  }>;
38
38
  export type PasteEventPayload = PasteAEP | PasteAsPlainAEP | PastedTimedAEP;
39
39
  export {};
@@ -1,24 +1,24 @@
1
1
  export interface PluginMethodReport {
2
+ onEditorViewStateUpdated: number;
2
3
  stateApply: number;
3
4
  viewUpdate: number;
4
- onEditorViewStateUpdated: number;
5
5
  }
6
6
  export interface PluginsReport {
7
7
  [name: string]: PluginMethodReport;
8
8
  }
9
9
  export type NodeCount = Record<string, number>;
10
10
  export interface PluginPerformanceReportData {
11
- trigger: string;
12
11
  duration: number;
13
- nodes: NodeCount;
14
12
  extensionNodes: NodeCount;
13
+ nodes: NodeCount;
15
14
  plugins: PluginsReport;
16
15
  slowPlugins: PluginsReport;
17
16
  stepDurations: {
18
- stateApply: number;
19
- viewUpdate: number;
17
+ countNodes: number;
20
18
  onChange: number;
21
19
  onEditorViewStateUpdated: number;
22
- countNodes: number;
20
+ stateApply: number;
21
+ viewUpdate: number;
23
22
  };
23
+ trigger: string;
24
24
  }
@@ -1,9 +1,9 @@
1
1
  import type { ACTION, ACTION_SUBJECT } from './enums';
2
2
  import type { OperationalAEP } from './utils';
3
3
  export type InitialiseFragmentMarksAEP = OperationalAEP<ACTION.INITIALISED_FRAGMENT_MARK, ACTION_SUBJECT.DOCUMENT, undefined, {
4
- duration: number;
5
- docSize: number;
6
4
  count: number;
5
+ docSize: number;
6
+ duration: number;
7
7
  }>;
8
8
  export type ConnectedNodesAEP = OperationalAEP<ACTION.CONNECTED_NODES, ACTION_SUBJECT.DOCUMENT, undefined, {
9
9
  actionType: string;
@@ -5,8 +5,8 @@ export type SelectNodeAEP = SelectAEP<ACTION_SUBJECT_ID.NODE, {
5
5
  node: string;
6
6
  }>;
7
7
  export type SelectRangeAEP = SelectAEP<ACTION_SUBJECT_ID.RANGE, {
8
- nodes: string[];
9
8
  from: number;
9
+ nodes: string[];
10
10
  to: number;
11
11
  }>;
12
12
  export type SelectAllAEP = SelectAEP<ACTION_SUBJECT_ID.ALL, undefined>;
@@ -5,10 +5,10 @@ export declare const SmartLinkNodeContexts: {
5
5
  [P in SmartLinkNodeContext]: P;
6
6
  };
7
7
  export type InsertSmartLinkAEP = InsertAEP<ACTION_SUBJECT_ID.SMART_LINK, {
8
+ fromCurrentDomain: boolean;
8
9
  inputMethod: INPUT_METHOD.CLIPBOARD | INPUT_METHOD.AUTO_DETECT | INPUT_METHOD.TYPEAHEAD | INPUT_METHOD.MANUAL | INPUT_METHOD.FORMATTING | INPUT_METHOD.FLOATING_TB;
9
- nodeType: 'inlineCard' | 'blockCard' | 'embedCard';
10
10
  nodeContext: SmartLinkNodeContext;
11
- fromCurrentDomain: boolean;
11
+ nodeType: 'inlineCard' | 'blockCard' | 'embedCard';
12
12
  }, {
13
13
  domainName: string;
14
14
  }>;
@@ -13,8 +13,8 @@ export declare enum PUNC {
13
13
  }
14
14
  type SubstituteAEP<ActionSubjectID, Attributes> = TrackAEP<ACTION.SUBSTITUTED, ACTION_SUBJECT.TEXT, ActionSubjectID, Attributes, undefined>;
15
15
  type SubstituteProductAEP = SubstituteAEP<ACTION_SUBJECT_ID.PRODUCT_NAME, {
16
- product: string;
17
16
  originalSpelling: string;
17
+ product: string;
18
18
  }>;
19
19
  type SubstituteSymbolAEP = SubstituteAEP<ACTION_SUBJECT_ID.SYMBOL, {
20
20
  symbol: SYMBOL.ARROW_RIGHT | SYMBOL.ARROW_LEFT | SYMBOL.ARROW_DOUBLE;
@@ -62,12 +62,12 @@ export declare enum TABLE_STATUS {
62
62
  INVALID = "invalid"
63
63
  }
64
64
  interface SortColumn {
65
- sortOrder: SortOrder;
66
65
  mode: 'editor';
66
+ sortOrder: SortOrder;
67
67
  }
68
68
  interface TotalRowAndColCount {
69
- totalRowCount: number;
70
69
  totalColumnCount: number;
70
+ totalRowCount: number;
71
71
  }
72
72
  interface HorizontalAndVerticalCells {
73
73
  horizontalCells: number;
@@ -77,36 +77,36 @@ type AllCellInfo = TotalRowAndColCount & HorizontalAndVerticalCells & {
77
77
  totalCells: number;
78
78
  };
79
79
  type AttemptedResizeInfo = {
80
- type: string;
81
- position: string;
82
- duration: number;
83
80
  delta: number;
81
+ duration: number;
82
+ position: string;
83
+ type: string;
84
84
  };
85
85
  type ResizedInfo = {
86
- prevWidth: number | null;
87
86
  newWidth: number;
88
- totalTableWidth: number | null;
89
87
  nodeSize: number;
88
+ prevWidth: number | null;
89
+ totalTableWidth: number | null;
90
90
  } & TotalRowAndColCount;
91
91
  type ColumnResizedInfo = {
92
92
  colIndex?: number;
93
- resizedDelta: number;
93
+ inputMethod: INPUT_METHOD.MOUSE | INPUT_METHOD.SHORTCUT;
94
94
  isLastColumn: boolean;
95
+ resizedDelta: number;
95
96
  tableWidth: number | null;
96
- inputMethod: INPUT_METHOD.MOUSE | INPUT_METHOD.SHORTCUT;
97
97
  } & TotalRowAndColCount;
98
98
  type ResizePreviewInfo = {
99
+ docSize: number;
99
100
  frameRate: number;
100
101
  isInitialSample: boolean;
101
- docSize: number;
102
102
  nodeSize: number;
103
103
  };
104
104
  export type OverflowStateInfo = {
105
105
  editorWidth: number;
106
106
  isOverflowing: boolean;
107
+ parentWidth: number;
107
108
  tableResizingEnabled: boolean;
108
109
  width: number;
109
- parentWidth: number;
110
110
  };
111
111
  type TableDeleteAEP = TableAEP<TABLE_ACTION.DELETED, {
112
112
  inputMethod: INPUT_METHOD.KEYBOARD | INPUT_METHOD.FLOATING_TB;
@@ -135,14 +135,14 @@ type TableAddRowOrColumnAEP = TableAEP<TABLE_ACTION.ADDED_ROW | TABLE_ACTION.ADD
135
135
  position: number;
136
136
  } & TotalRowAndColCount, undefined>;
137
137
  type TableDeleteRowOrColumnAEP = TableAEP<TABLE_ACTION.DELETED_ROW | TABLE_ACTION.DELETED_COLUMN, {
138
+ count: number;
138
139
  inputMethod: INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.BUTTON | INPUT_METHOD.FLOATING_TB | INPUT_METHOD.SHORTCUT | INPUT_METHOD.TABLE_CONTEXT_MENU;
139
140
  position: number;
140
- count: number;
141
141
  } & TotalRowAndColCount, undefined>;
142
142
  type TableDistributeColumnsWidthsAEP = TableAEP<TABLE_ACTION.DISTRIBUTED_COLUMNS_WIDTHS, {
143
+ count: number;
143
144
  inputMethod: INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.FLOATING_TB | INPUT_METHOD.TABLE_CONTEXT_MENU;
144
145
  position: number;
145
- count: number;
146
146
  } & TotalRowAndColCount, undefined>;
147
147
  type TableSortColumnAEP = TableAEP<TABLE_ACTION.SORTED_COLUMN, {
148
148
  inputMethod: INPUT_METHOD.SHORTCUT | INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.TABLE_CONTEXT_MENU | INPUT_METHOD.BUTTON | INPUT_METHOD.FLOATING_TB | INPUT_METHOD.KEYBOARD;
@@ -157,8 +157,8 @@ type TableFixedAEP = TableAEP<TABLE_ACTION.FIXED, {
157
157
  reason: string;
158
158
  }, undefined>;
159
159
  type TableOverflowChangedAEP = TableAEP<TABLE_ACTION.OVERFLOW_CHANGED, {
160
- wasOverflowing: boolean;
161
160
  trigger: TABLE_OVERFLOW_CHANGE_TRIGGER;
161
+ wasOverflowing: boolean;
162
162
  } & OverflowStateInfo, undefined>;
163
163
  type TableInitialOverflowCapturedAEP = TableAEP<TABLE_ACTION.INITIAL_OVERFLOW_CAPTURED, OverflowStateInfo, undefined>;
164
164
  type TableResizedAEP = TableAEP<TABLE_ACTION.RESIZED, ResizedInfo, undefined>;
@@ -168,15 +168,15 @@ type TableRowOrColumnMovedAEP = TableAEP<TABLE_ACTION.ROW_OR_COLUMN_MOVED, {
168
168
  type: 'row' | 'column';
169
169
  }, undefined>;
170
170
  type TableMovedRowOrColumnAEP = TableAEP<TABLE_ACTION.MOVED_ROW | TABLE_ACTION.MOVED_COLUMN, {
171
- inputMethod: INPUT_METHOD.TABLE_CONTEXT_MENU | INPUT_METHOD.DRAG_AND_DROP | INPUT_METHOD.SHORTCUT;
172
171
  count: number;
173
172
  distance: number;
173
+ inputMethod: INPUT_METHOD.TABLE_CONTEXT_MENU | INPUT_METHOD.DRAG_AND_DROP | INPUT_METHOD.SHORTCUT;
174
174
  status: TABLE_STATUS.SUCCESS | TABLE_STATUS.CANCELLED | TABLE_STATUS.INVALID;
175
175
  } & TotalRowAndColCount, undefined>;
176
176
  type TableClonedRowOrColumnAEP = TableAEP<TABLE_ACTION.CLONED_ROW | TABLE_ACTION.CLONED_COLUMN, {
177
- inputMethod: INPUT_METHOD.TABLE_CONTEXT_MENU | INPUT_METHOD.DRAG_AND_DROP | INPUT_METHOD.SHORTCUT;
178
177
  count: number;
179
178
  distance: number;
179
+ inputMethod: INPUT_METHOD.TABLE_CONTEXT_MENU | INPUT_METHOD.DRAG_AND_DROP | INPUT_METHOD.SHORTCUT;
180
180
  status: TABLE_STATUS.SUCCESS | TABLE_STATUS.CANCELLED | TABLE_STATUS.INVALID;
181
181
  } & TotalRowAndColCount, undefined>;
182
182
  export declare enum TABLE_DISPLAY_MODE {
@@ -186,8 +186,8 @@ export declare enum TABLE_DISPLAY_MODE {
186
186
  }
187
187
  type TableChangedDisplayModeAEP = TableAEP<TABLE_ACTION.CHANGED_DISPLAY_MODE, {
188
188
  inputMethod: INPUT_METHOD.FLOATING_TB | INPUT_METHOD.CONTEXT_MENU;
189
- previousDisplayMode: TABLE_DISPLAY_MODE;
190
189
  newDisplayMode: TABLE_DISPLAY_MODE;
190
+ previousDisplayMode: TABLE_DISPLAY_MODE;
191
191
  tableWidth: number | null;
192
192
  } & TotalRowAndColCount, undefined>;
193
193
  type AlignmentOptions = 'center' | 'align-start';
@@ -198,11 +198,11 @@ export declare enum CHANGE_ALIGNMENT_REASON {
198
198
  TOOLBAR_OPTION_CHANGED = "toolbarOptionChanged"
199
199
  }
200
200
  type TableChangedAlignmentAEP = TableAEP<TABLE_ACTION.CHANGED_ALIGNMENT, {
201
+ inputMethod: INPUT_METHOD.FLOATING_TB | INPUT_METHOD.AUTO;
201
202
  newAlignment: AlignmentOptions;
202
203
  previousAlignment: AlignmentOptions | null;
203
- tableWidth: number | null;
204
- inputMethod: INPUT_METHOD.FLOATING_TB | INPUT_METHOD.AUTO;
205
204
  reason: CHANGE_ALIGNMENT_REASON;
205
+ tableWidth: number | null;
206
206
  } & TotalRowAndColCount, undefined>;
207
207
  type TableBackgroundColorFixAEP = TableAEP<TABLE_ACTION.TABLE_CELL_BACKGROUND_FIXED, undefined, undefined>;
208
208
  export type TableEventPayload = TableDeleteAEP | TableClearAEP | TableMergeSplitAEP | TableColorAEP | TableToggleHeaderAEP | TableChangeBreakoutAEP | TableCopyAndCutAEP | TableAddRowOrColumnAEP | TableSortColumnAEP | TableDeleteRowOrColumnAEP | TableReplaceAEP | TableAttemptedResizeAEP | TableDistributeColumnsWidthsAEP | TableCollapsedAEP | TableFixedAEP | TableOverflowChangedAEP | TableInitialOverflowCapturedAEP | TableResizedAEP | TableResizePerfSamplingAEP | TableRowOrColumnMovedAEP | TableMovedRowOrColumnAEP | TableClonedRowOrColumnAEP | TableChangedDisplayModeAEP | TableColumnResizedAEP | TableBackgroundColorFixAEP | TableChangedAlignmentAEP;
@@ -2,9 +2,9 @@ import type { TypeAheadAvailableNodes } from '../../type-ahead';
2
2
  import type { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, INPUT_METHOD } from './enums';
3
3
  import type { OperationalAEP, TrackAEP, UIAEP } from './utils';
4
4
  type TypeAheadRenderedAEP = OperationalAEP<ACTION.RENDERED, ACTION_SUBJECT.TYPEAHEAD, undefined, {
5
- time?: number;
6
- items?: number;
7
5
  initial?: boolean;
6
+ items?: number;
7
+ time?: number;
8
8
  }>;
9
9
  type TypeAheadItemViewedAEP = OperationalAEP<ACTION.VIEWED, ACTION_SUBJECT.TYPEAHEAD_ITEM, undefined, {
10
10
  index?: number;
@@ -18,9 +18,9 @@ type TypeAheadInputMethod = INPUT_METHOD.INSERT_MENU | INPUT_METHOD.KEYBOARD | I
18
18
  */
19
19
  | 'blockControl';
20
20
  type TypeAheadClosedAttributes = {
21
- inputMethod: INPUT_METHOD.KEYBOARD | INPUT_METHOD.MOUSE | null;
22
21
  closeAction: ACTION.INSERTED | ACTION.CANCELLED | ACTION.VIEW_MORE | null;
23
22
  hasQuery: boolean;
23
+ inputMethod: INPUT_METHOD.KEYBOARD | INPUT_METHOD.MOUSE | null;
24
24
  invocationMethod?: TypeAheadInputMethod | null;
25
25
  };
26
26
  type TypeaheadQuickInsertClosedAEP = TrackAEP<ACTION.CLOSED, ACTION_SUBJECT.TYPEAHEAD, ACTION_SUBJECT_ID.TYPEAHEAD_QUICK_INSERT, TypeAheadClosedAttributes, undefined>;
@@ -3,12 +3,12 @@ type AEP<Action, ActionSubject, ActionSubjectID, Attributes, NonPrivacySafeAttri
3
3
  action: Action;
4
4
  actionSubject: ActionSubject;
5
5
  actionSubjectId?: ActionSubjectID;
6
- containerId?: ContainerId;
7
- objectId?: ObjectId;
8
- childObjectId?: ChildObjectId;
9
6
  attributes?: Attributes & {
10
7
  [key in keyof ImplicitAttributes]?: ImplicitAttributes[key];
11
8
  };
9
+ childObjectId?: ChildObjectId;
10
+ containerId?: ContainerId;
11
+ objectId?: ObjectId;
12
12
  } & ({
13
13
  eventType: Exclude<EventType, EVENT_TYPE.OPERATIONAL>;
14
14
  nonPrivacySafeAttributes?: NonPrivacySafeAttributes;
@@ -43,12 +43,12 @@ export declare enum SELECTION_POSITION {
43
43
  RIGHT = "right"
44
44
  }
45
45
  export interface NonRequiredAttributes {
46
- insertLocation?: string;
46
+ changeFromLocation?: string;
47
47
  insertedLocation?: string;
48
+ insertLocation?: string;
48
49
  nodeLocation?: string;
49
- changeFromLocation?: string;
50
- selectionType?: SELECTION_TYPE;
51
50
  selectionPosition?: SELECTION_POSITION;
51
+ selectionType?: SELECTION_TYPE;
52
52
  }
53
53
  export type InsertAEP<ActionSubjectID, Attributes, NonPrivacySafeAttributes> = TrackAEP<ACTION.INSERTED, ACTION_SUBJECT.DOCUMENT, ActionSubjectID, Attributes, NonPrivacySafeAttributes, NonRequiredAttributes>;
54
54
  export type ChangeTypeAEP<ActionSubject, ActionSubjectID, Attributes, NonPrivacySafeAttributes> = TrackAEP<ACTION.CHANGED_TYPE, ActionSubject, ActionSubjectID, Attributes, NonPrivacySafeAttributes, NonRequiredAttributes>;
@@ -2,9 +2,9 @@ import type { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, INPUT_METHOD } from './
2
2
  import type { MODE } from './general-events';
3
3
  import type { UIAEP } from './utils';
4
4
  export type ViewInlineCommentsButtonEventAEP = UIAEP<ACTION.VIEWED, ACTION_SUBJECT.BUTTON, ACTION_SUBJECT_ID.INLINE_COMMENT, {
5
- isDisabled: boolean;
6
- mode: MODE.EDITOR;
7
5
  inputMethod: INPUT_METHOD.FLOATING_TB;
6
+ isDisabled: boolean;
8
7
  isNonTextInlineNodeInludedInComment: boolean;
8
+ mode: MODE.EDITOR;
9
9
  }, undefined>;
10
10
  export type ViewEventPayload = ViewInlineCommentsButtonEventAEP;
@@ -12,105 +12,103 @@ export declare class AnnotationUpdateEmitter extends EventEmitter {
12
12
  off(event: string, listener: AnnotationCallback | VisibilityCallback): this;
13
13
  }
14
14
  type AnnotationByMatches = {
15
- originalSelection: string;
16
- numMatches: number;
17
15
  matchIndex: number;
16
+ numMatches: number;
17
+ originalSelection: string;
18
18
  pos?: number;
19
19
  };
20
20
  export type ActionResult = {
21
- step: AddMarkStep | AddNodeMarkStep;
22
21
  doc: JSONDocNode;
23
22
  /** The list of types of all inline nodes, which were wrapped by annotation. */
24
23
  inlineNodeTypes?: string[];
24
+ step: AddMarkStep | AddNodeMarkStep;
25
25
  targetNodeType?: string;
26
26
  } & AnnotationByMatches;
27
27
  export type ClearAnnotationActionResult = {
28
- step: RemoveMarkStep | RemoveNodeMarkStep;
29
28
  doc: JSONDocNode;
29
+ step: RemoveMarkStep | RemoveNodeMarkStep;
30
30
  };
31
31
  export type AnnotationDraftStartedData = {
32
- targetElement: HTMLElement | undefined;
33
- /**
34
- * This list of inline node types at the draft selection location
35
- */
36
- inlineNodeTypes: string[];
37
32
  /**
38
33
  * The actionResult can be used by Product so they're able to perform the
39
34
  * required NCS transaction to add the annotation to the document.
40
35
  */
41
36
  actionResult: ActionResult | undefined;
37
+ /**
38
+ * This list of inline node types at the draft selection location
39
+ */
40
+ inlineNodeTypes: string[];
41
+ targetElement: HTMLElement | undefined;
42
42
  };
43
43
  export type AnnotationSelectedChangeData = {
44
44
  annotationId: AnnotationId;
45
- isSelected: boolean;
46
45
  inlineNodeTypes: string[];
46
+ isSelected: boolean;
47
47
  };
48
48
  export type AnnotationManagerEvents = {
49
- name: 'draftAnnotationStarted';
50
49
  data: AnnotationDraftStartedData;
50
+ name: 'draftAnnotationStarted';
51
51
  } | {
52
- name: 'annotationSelectionChanged';
53
52
  data: AnnotationSelectedChangeData;
53
+ name: 'annotationSelectionChanged';
54
54
  };
55
55
  export type ManagerFailureReasons = 'manager-not-initialized' | 'hook-execution-error';
56
56
  export type StartDraftResult = {
57
- success: false;
58
57
  reason: ManagerFailureReasons | 'invalid-range' | 'draft-in-progress';
58
+ success: false;
59
59
  } | ({
60
60
  success: true;
61
61
  } & AnnotationDraftStartedData);
62
62
  export type ClearDraftResult = {
63
- success: false;
64
63
  reason: ManagerFailureReasons | 'draft-not-started';
64
+ success: false;
65
65
  } | {
66
66
  success: true;
67
67
  };
68
68
  export type ApplyDraftResult = {
69
- success: false;
70
69
  reason: ManagerFailureReasons | 'draft-not-started' | 'range-no-longer-exists';
70
+ success: false;
71
71
  } | {
72
- success: true;
73
- targetElement: HTMLElement | undefined;
74
72
  /**
75
73
  * The actionResult will be set if the id passed to the applyDraft method is different from the id created
76
74
  * from the startDraft call.
77
75
  */
78
76
  actionResult: ActionResult | undefined;
77
+ success: true;
78
+ targetElement: HTMLElement | undefined;
79
79
  };
80
80
  export type GetDraftResult = {
81
- success: false;
82
81
  reason: ManagerFailureReasons | 'draft-not-started';
82
+ success: false;
83
83
  } | ({
84
84
  success: true;
85
85
  } & AnnotationDraftStartedData);
86
86
  export type ClearAnnotationResult = {
87
- success: false;
88
87
  reason: ManagerFailureReasons | 'id-not-valid' | 'clear-failed';
88
+ success: false;
89
89
  } | {
90
- success: true;
91
90
  actionResult: ClearAnnotationActionResult | undefined;
91
+ success: true;
92
92
  };
93
93
  export type SelectAnnotationResult = {
94
- success: false;
95
94
  reason: ManagerFailureReasons | 'id-not-valid' | 'draft-in-progress';
95
+ success: false;
96
96
  } | {
97
- success: true;
98
97
  isSelected: boolean;
98
+ success: true;
99
99
  };
100
100
  export type HoverAnnotationResult = {
101
- success: false;
102
101
  reason: ManagerFailureReasons | 'id-not-valid';
102
+ success: false;
103
103
  } | {
104
- success: true;
105
104
  isHovered: boolean;
105
+ success: true;
106
106
  };
107
107
  /**
108
108
  * This is the list of methods which exist on the Manager interface. These are the methods that can be hooked into.
109
109
  */
110
110
  export type AnnotationManagerMethods = {
111
111
  allowAnnotation: () => boolean;
112
- startDraft: () => StartDraftResult;
113
- clearDraft: () => ClearDraftResult;
114
112
  /**
115
113
  * This will apply the current draft to the document.
116
114
  *
@@ -122,44 +120,37 @@ export type AnnotationManagerMethods = {
122
120
  * as this creates different behaviour between the editor and renderer.
123
121
  */
124
122
  applyDraft: (id: AnnotationId) => ApplyDraftResult;
123
+ clearAnnotation: (id: AnnotationId) => ClearAnnotationResult;
124
+ clearDraft: () => ClearDraftResult;
125
125
  /**
126
126
  * This can be used to inspect the current active draft.
127
127
  * @returns The current draft data. If the draft is not started, it will return an error.
128
128
  */
129
129
  getDraft: () => GetDraftResult;
130
- setIsAnnotationSelected: (id: AnnotationId, isSelected: boolean) => SelectAnnotationResult;
131
130
  setIsAnnotationHovered: (id: AnnotationId, isHovered: boolean) => HoverAnnotationResult;
132
- clearAnnotation: (id: AnnotationId) => ClearAnnotationResult;
131
+ setIsAnnotationSelected: (id: AnnotationId, isSelected: boolean) => SelectAnnotationResult;
132
+ startDraft: () => StartDraftResult;
133
133
  };
134
134
  export type AnnotationManager = AnnotationManagerMethods & {
135
- /**
136
- * This method is used to set a preemptive gate. A preemptive gate is a function that will be called
137
- * before the manager performs an action. If the function returns false, the action will not be performed.
138
- */
139
- setPreemptiveGate(handler: () => Promise<boolean>): AnnotationManager;
140
135
  /**
141
136
  * This method is used to run the configured preemptive gate check.
142
137
  * @private
143
138
  * @internal
144
139
  */
145
140
  checkPreemptiveGate(): Promise<boolean>;
146
- onDraftAnnotationStarted(handler: (data: AnnotationDraftStartedData) => void): AnnotationManager;
147
- offDraftAnnotationStarted(handler: (data: AnnotationDraftStartedData) => void): AnnotationManager;
148
- onAnnotationSelectionChange(handler: (data: AnnotationSelectedChangeData) => void): AnnotationManager;
149
- offAnnotationSelectionChange(handler: (data: AnnotationSelectedChangeData) => void): AnnotationManager;
150
141
  /**
151
142
  * @private
152
143
  * @internal
153
144
  * This method is intended for internal Platform use only. It is not intended for use by Product code.
154
145
  */
155
146
  emit(event: {
156
- name: 'draftAnnotationStarted';
157
147
  data: AnnotationDraftStartedData;
148
+ name: 'draftAnnotationStarted';
158
149
  } | {
159
150
  name: 'draftAnnotationCleared';
160
151
  } | {
161
- name: 'annotationSelectionChanged';
162
152
  data: AnnotationSelectedChangeData;
153
+ name: 'annotationSelectionChanged';
163
154
  }): AnnotationManager;
164
155
  /**
165
156
  * @private
@@ -167,6 +158,15 @@ export type AnnotationManager = AnnotationManagerMethods & {
167
158
  * This method is intended for internal Platform use only. It is not intended for use by Product code.
168
159
  */
169
160
  hook<H extends keyof AnnotationManagerMethods>(method: H, handler: AnnotationManagerMethods[H]): AnnotationManager;
161
+ offAnnotationSelectionChange(handler: (data: AnnotationSelectedChangeData) => void): AnnotationManager;
162
+ offDraftAnnotationStarted(handler: (data: AnnotationDraftStartedData) => void): AnnotationManager;
163
+ onAnnotationSelectionChange(handler: (data: AnnotationSelectedChangeData) => void): AnnotationManager;
164
+ onDraftAnnotationStarted(handler: (data: AnnotationDraftStartedData) => void): AnnotationManager;
165
+ /**
166
+ * This method is used to set a preemptive gate. A preemptive gate is a function that will be called
167
+ * before the manager performs an action. If the function returns false, the action will not be performed.
168
+ */
169
+ setPreemptiveGate(handler: () => Promise<boolean>): AnnotationManager;
170
170
  /**
171
171
  *
172
172
  * @internal
@@ -4,4 +4,9 @@ export declare const messages: {
4
4
  defaultMessage: string;
5
5
  description: string;
6
6
  };
7
+ deleteBlock: {
8
+ id: string;
9
+ defaultMessage: string;
10
+ description: string;
11
+ };
7
12
  };
@@ -1,14 +1,14 @@
1
1
  import { jsx } from '@emotion/react';
2
2
  import type { NewCoreIconProps, IconProps } from '@atlaskit/icon/types';
3
3
  export interface ButtonOptionProps {
4
- title: string;
5
- selected: boolean;
6
- testId: string;
7
4
  disabled: boolean;
8
- tooltipContent?: string | null;
9
- onClick: () => void;
10
5
  icon: (props: NewCoreIconProps) => JSX.Element;
11
6
  iconFallback: (props: IconProps) => JSX.Element;
7
+ onClick: () => void;
8
+ selected: boolean;
9
+ testId: string;
10
+ title: string;
11
+ tooltipContent?: string | null;
12
12
  }
13
13
  export interface LinkToolbarButtonGroupProps {
14
14
  options: ButtonOptionProps[];
@@ -10,10 +10,10 @@ type WidthPluginType = NextEditorPlugin<'width', {
10
10
  }>;
11
11
  type WidthPluginDependencyApi = PluginDependenciesAPI<WidthPluginType> | undefined;
12
12
  export type LayoutIcon = {
13
- id?: string;
14
- value: MediaSingleLayout;
15
13
  icon: Icon;
14
+ id?: string;
16
15
  keyboardShortcut?: Keymap;
16
+ value: MediaSingleLayout;
17
17
  };
18
18
  export type IconMap = Array<LayoutIcon | {
19
19
  value: 'separator';