@atlaskit/editor-common 107.28.2 → 107.30.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 (493) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/afm-cc/tsconfig.json +7 -4
  3. package/dist/cjs/block-menu/messages.js +6 -1
  4. package/dist/cjs/code-block/index.js +58 -1
  5. package/dist/cjs/messages/block-menu.js +3 -3
  6. package/dist/cjs/monitoring/error.js +1 -1
  7. package/dist/cjs/styles/shared/smartCard.js +1 -1
  8. package/dist/cjs/ui/DropList/index.js +1 -1
  9. package/dist/es2019/block-menu/messages.js +6 -1
  10. package/dist/es2019/code-block/index.js +57 -0
  11. package/dist/es2019/messages/block-menu.js +3 -3
  12. package/dist/es2019/monitoring/error.js +1 -1
  13. package/dist/es2019/styles/shared/smartCard.js +2 -2
  14. package/dist/es2019/ui/DropList/index.js +1 -1
  15. package/dist/esm/block-menu/messages.js +6 -1
  16. package/dist/esm/code-block/index.js +57 -0
  17. package/dist/esm/messages/block-menu.js +3 -3
  18. package/dist/esm/monitoring/error.js +1 -1
  19. package/dist/esm/styles/shared/smartCard.js +1 -1
  20. package/dist/esm/ui/DropList/index.js +1 -1
  21. package/dist/types/analytics/api.d.ts +2 -2
  22. package/dist/types/analytics/types/activity-session-events.d.ts +14 -14
  23. package/dist/types/analytics/types/ai-definitions-events.d.ts +1 -1
  24. package/dist/types/analytics/types/ai-events.d.ts +2 -2
  25. package/dist/types/analytics/types/ai-inline-suggestion-events.d.ts +2 -2
  26. package/dist/types/analytics/types/ai-proactive-events.d.ts +12 -12
  27. package/dist/types/analytics/types/ai-unified-events.d.ts +11 -11
  28. package/dist/types/analytics/types/breakout-events.d.ts +4 -4
  29. package/dist/types/analytics/types/config-panel-events.d.ts +3 -3
  30. package/dist/types/analytics/types/cut-copy-events.d.ts +4 -4
  31. package/dist/types/analytics/types/datasource-clicked-events.d.ts +2 -2
  32. package/dist/types/analytics/types/date-events.d.ts +1 -1
  33. package/dist/types/analytics/types/element-events.d.ts +4 -4
  34. package/dist/types/analytics/types/events.d.ts +23 -23
  35. package/dist/types/analytics/types/extension-events.d.ts +5 -5
  36. package/dist/types/analytics/types/format-events.d.ts +6 -6
  37. package/dist/types/analytics/types/general-events.d.ts +32 -32
  38. package/dist/types/analytics/types/highlight-actions-menu-events.d.ts +1 -1
  39. package/dist/types/analytics/types/highlight-events.d.ts +1 -1
  40. package/dist/types/analytics/types/inline-comment-events.d.ts +1 -1
  41. package/dist/types/analytics/types/insert-events.d.ts +26 -26
  42. package/dist/types/analytics/types/link-events.d.ts +1 -1
  43. package/dist/types/analytics/types/link-tool-bar-events.d.ts +17 -17
  44. package/dist/types/analytics/types/list-events.d.ts +8 -8
  45. package/dist/types/analytics/types/loom-events.d.ts +1 -1
  46. package/dist/types/analytics/types/media-events.d.ts +9 -9
  47. package/dist/types/analytics/types/mention-events.d.ts +30 -30
  48. package/dist/types/analytics/types/move-content-events.d.ts +3 -3
  49. package/dist/types/analytics/types/ncs-session-step-events.d.ts +3 -3
  50. package/dist/types/analytics/types/node-events.d.ts +5 -5
  51. package/dist/types/analytics/types/offline-editing-event.d.ts +5 -5
  52. package/dist/types/analytics/types/paste-events.d.ts +6 -6
  53. package/dist/types/analytics/types/performance-report.d.ts +6 -6
  54. package/dist/types/analytics/types/referentiality-events.d.ts +2 -2
  55. package/dist/types/analytics/types/selection-events.d.ts +1 -1
  56. package/dist/types/analytics/types/smart-links.d.ts +2 -2
  57. package/dist/types/analytics/types/substitute-events.d.ts +1 -1
  58. package/dist/types/analytics/types/table-events.d.ts +19 -19
  59. package/dist/types/analytics/types/type-ahead.d.ts +3 -3
  60. package/dist/types/analytics/types/utils.d.ts +6 -6
  61. package/dist/types/analytics/types/view-events.d.ts +2 -2
  62. package/dist/types/annotation/index.d.ts +39 -39
  63. package/dist/types/block-menu/messages.d.ts +5 -0
  64. package/dist/types/card/LinkToolbarButtonGroup.d.ts +5 -5
  65. package/dist/types/card/MediaAndEmbedsToolbar/index.d.ts +2 -2
  66. package/dist/types/card/cardOptions.d.ts +36 -36
  67. package/dist/types/card/types.d.ts +8 -8
  68. package/dist/types/code-block/index.d.ts +6 -0
  69. package/dist/types/collab/index.d.ts +71 -71
  70. package/dist/types/doc-utils/editor-use-only.d.ts +1 -1
  71. package/dist/types/element-browser/ElementBrowser.d.ts +9 -9
  72. package/dist/types/element-browser/ViewMore.d.ts +1 -1
  73. package/dist/types/element-browser/components/CategoryList.d.ts +1 -1
  74. package/dist/types/element-browser/components/ElementList/ElementList.d.ts +11 -11
  75. package/dist/types/element-browser/components/ElementList/EmptyState.d.ts +1 -1
  76. package/dist/types/element-browser/components/ElementSearch.d.ts +4 -4
  77. package/dist/types/element-browser/components/StatelessElementBrowser.d.ts +14 -14
  78. package/dist/types/element-browser/hooks/use-select-and-focus-on-arrow-navigation.d.ts +12 -12
  79. package/dist/types/element-browser/types.d.ts +2 -2
  80. package/dist/types/extensibility/Extension/Extension/index.d.ts +12 -12
  81. package/dist/types/extensibility/Extension/InlineExtension/index.d.ts +5 -5
  82. package/dist/types/extensibility/Extension/LegacyContentHeader/index.d.ts +1 -1
  83. package/dist/types/extensibility/Extension/Lozenge/EditToggle.d.ts +2 -2
  84. package/dist/types/extensibility/Extension/Lozenge/ExtensionLabel.d.ts +6 -6
  85. package/dist/types/extensibility/Extension/Lozenge/LozengeComponent.d.ts +11 -11
  86. package/dist/types/extensibility/Extension/Lozenge/index.d.ts +9 -9
  87. package/dist/types/extensibility/Extension.d.ts +8 -8
  88. package/dist/types/extensibility/ExtensionComponent.d.ts +13 -13
  89. package/dist/types/extensibility/ExtensionNodeWrapper.d.ts +1 -1
  90. package/dist/types/extensibility/MultiBodiedExtension/action-api.d.ts +5 -5
  91. package/dist/types/extensibility/MultiBodiedExtension/index.d.ts +10 -10
  92. package/dist/types/extensibility/extensionNodeView.d.ts +8 -8
  93. package/dist/types/extensions/extension-handlers.d.ts +1 -1
  94. package/dist/types/extensions/types/extension-handler.d.ts +10 -10
  95. package/dist/types/extensions/types/extension-manifest-toolbar-item.d.ts +13 -13
  96. package/dist/types/extensions/types/extension-manifest.d.ts +26 -26
  97. package/dist/types/extensions/types/extension-provider.d.ts +3 -3
  98. package/dist/types/extensions/types/field-definitions.d.ts +40 -40
  99. package/dist/types/extensions/types/utils.d.ts +7 -7
  100. package/dist/types/floating-toolbar/DropdownMenuExtensionItems.d.ts +4 -4
  101. package/dist/types/floating-toolbar/DropdownMenuItem.d.ts +10 -10
  102. package/dist/types/guideline/relativeGuideline.d.ts +1 -1
  103. package/dist/types/guideline/types.d.ts +9 -9
  104. package/dist/types/guideline/updateGuideline.d.ts +1 -1
  105. package/dist/types/guideline/utils.d.ts +2 -2
  106. package/dist/types/icons/shared/DynamicStrokeIconDecoration.d.ts +1 -1
  107. package/dist/types/icons/shared/SteppedRainbowIconDecoration.d.ts +1 -1
  108. package/dist/types/insert/index.d.ts +2 -2
  109. package/dist/types/keymaps/index.d.ts +2 -2
  110. package/dist/types/lazy-node-view/index.d.ts +3 -3
  111. package/dist/types/link/ConfigureLinkOverlay/Dropdown.d.ts +3 -3
  112. package/dist/types/link/ConfigureLinkOverlay/handleNavigation.d.ts +1 -1
  113. package/dist/types/link/ConfigureLinkOverlay/index.d.ts +2 -2
  114. package/dist/types/link/LinkPicker/EditorLinkPicker/index.d.ts +3 -3
  115. package/dist/types/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.d.ts +12 -12
  116. package/dist/types/link/LinkPicker/HyperlinkAddToolbar/index.d.ts +8 -8
  117. package/dist/types/link/LinkSearch/LinkSearchList.d.ts +6 -6
  118. package/dist/types/link/LinkSearch/LinkSearchListItem.d.ts +4 -4
  119. package/dist/types/link/LinkSearch/types.d.ts +11 -11
  120. package/dist/types/link/types.d.ts +9 -9
  121. package/dist/types/lists/indentation.d.ts +1 -1
  122. package/dist/types/lists/node.d.ts +2 -2
  123. package/dist/types/lists/replace-content.d.ts +1 -1
  124. package/dist/types/lists/selection.d.ts +1 -1
  125. package/dist/types/media-inline/inline-image-card.d.ts +4 -4
  126. package/dist/types/media-inline/inline-image-wrapper.d.ts +3 -3
  127. package/dist/types/media-inline/media-inline-image-card.d.ts +8 -8
  128. package/dist/types/media-inline/types.d.ts +4 -4
  129. package/dist/types/media-inline/views/error-view.d.ts +3 -3
  130. package/dist/types/media-inline/views/loading-view.d.ts +2 -2
  131. package/dist/types/media-single/CommentBadge.d.ts +6 -6
  132. package/dist/types/media-single/CommentBadgeNext.d.ts +1 -1
  133. package/dist/types/media-single/MediaBadges.d.ts +4 -4
  134. package/dist/types/media-single/utils.d.ts +5 -5
  135. package/dist/types/node-visibility/node-visibility-manager.d.ts +5 -5
  136. package/dist/types/portal/PortalManager.d.ts +1 -1
  137. package/dist/types/portal/common.d.ts +2 -2
  138. package/dist/types/preset/builder.d.ts +1 -1
  139. package/dist/types/preset/plugin-injection-api.d.ts +3 -3
  140. package/dist/types/provider-factory/card-provider.d.ts +1 -1
  141. package/dist/types/provider-factory/context-identifier-provider.d.ts +1 -1
  142. package/dist/types/provider-factory/image-upload-provider.d.ts +1 -1
  143. package/dist/types/provider-factory/macro-provider.d.ts +4 -4
  144. package/dist/types/provider-factory/media-provider.d.ts +5 -5
  145. package/dist/types/provider-factory/profile-card-provider.d.ts +1 -1
  146. package/dist/types/provider-factory/quick-insert-provider.d.ts +10 -10
  147. package/dist/types/provider-factory/search-provider.d.ts +3 -3
  148. package/dist/types/provider-factory/types.d.ts +11 -11
  149. package/dist/types/provider-helpers/promise-helpers.d.ts +1 -1
  150. package/dist/types/quick-insert/use-icon-themed.d.ts +1 -1
  151. package/dist/types/react-node-view/getInlineNodeViewProducer.d.ts +6 -6
  152. package/dist/types/react-node-view/index.d.ts +1 -1
  153. package/dist/types/resizer/BreakoutResizer.d.ts +10 -10
  154. package/dist/types/resizer/Resizer.d.ts +32 -32
  155. package/dist/types/resizer/types.d.ts +2 -2
  156. package/dist/types/safe-plugin/index.d.ts +1 -1
  157. package/dist/types/selection/gap-cursor/actions.d.ts +1 -1
  158. package/dist/types/selection/gap-cursor/selection.d.ts +1 -1
  159. package/dist/types/selection/index.d.ts +1 -1
  160. package/dist/types/selection/types.d.ts +3 -3
  161. package/dist/types/table/SortingIcon.d.ts +1 -1
  162. package/dist/types/toolbar/context.d.ts +1 -1
  163. package/dist/types/types/annotation/index.d.ts +43 -43
  164. package/dist/types/types/copy-button.d.ts +8 -8
  165. package/dist/types/types/doc-builder.d.ts +1 -1
  166. package/dist/types/types/editor-actions.d.ts +6 -6
  167. package/dist/types/types/editor-container-width.d.ts +7 -7
  168. package/dist/types/types/editor-plugin.d.ts +33 -33
  169. package/dist/types/types/empty-state-handler.d.ts +1 -1
  170. package/dist/types/types/feature-flags.d.ts +107 -107
  171. package/dist/types/types/feedback-dialog.d.ts +5 -5
  172. package/dist/types/types/floating-toolbar.d.ts +142 -142
  173. package/dist/types/types/hyperlink.d.ts +10 -10
  174. package/dist/types/types/input-rules.d.ts +1 -1
  175. package/dist/types/types/next-editor-plugin.d.ts +47 -47
  176. package/dist/types/types/performance-tracking.d.ts +90 -90
  177. package/dist/types/types/plugin-factory.d.ts +6 -6
  178. package/dist/types/types/prosemirror-config.d.ts +1 -1
  179. package/dist/types/types/quick-insert.d.ts +9 -9
  180. package/dist/types/types/selection-toolbar.d.ts +2 -2
  181. package/dist/types/types/supported-browsers.d.ts +1 -1
  182. package/dist/types/types/tables.d.ts +3 -3
  183. package/dist/types/types/text-formatting.d.ts +14 -14
  184. package/dist/types/types/toolbar.d.ts +2 -2
  185. package/dist/types/types/type-ahead.d.ts +29 -29
  186. package/dist/types/types/ui-components.d.ts +7 -7
  187. package/dist/types/types/user-preferences.d.ts +6 -6
  188. package/dist/types/ugc-tokens/editor-ugc-token-names.d.ts +1 -1
  189. package/dist/types/ui/Announcer/announcer.d.ts +5 -5
  190. package/dist/types/ui/AssistiveText/AssistiveText.d.ts +2 -2
  191. package/dist/types/ui/BaseTheme/index.d.ts +2 -2
  192. package/dist/types/ui/Caption/index.d.ts +2 -2
  193. package/dist/types/ui/ContextPanel/context.d.ts +4 -4
  194. package/dist/types/ui/DropList/index.d.ts +7 -7
  195. package/dist/types/ui/Emoji/index.d.ts +3 -3
  196. package/dist/types/ui/ErrorBoundary/index.d.ts +1 -1
  197. package/dist/types/ui/EventHandlers/index.d.ts +7 -7
  198. package/dist/types/ui/Expand/sharedStyles.d.ts +2 -2
  199. package/dist/types/ui/FloatingToolbar/Button.d.ts +20 -20
  200. package/dist/types/ui/FloatingToolbar/ButtonSpotlightCard.d.ts +1 -1
  201. package/dist/types/ui/HoverLinkOverlay/types.d.ts +4 -4
  202. package/dist/types/ui/Layer/index.d.ts +6 -6
  203. package/dist/types/ui/MediaSingle/grid.d.ts +4 -4
  204. package/dist/types/ui/MediaSingle/index.d.ts +12 -12
  205. package/dist/types/ui/MediaSingle/styled.d.ts +8 -8
  206. package/dist/types/ui/Mention/index.d.ts +3 -3
  207. package/dist/types/ui/Mention/mention-with-profilecard.d.ts +4 -4
  208. package/dist/types/ui/Mention/mention-with-providers.d.ts +4 -4
  209. package/dist/types/ui/OverflowShadow/index.d.ts +1 -1
  210. package/dist/types/ui/OverflowShadow/shadowObserver.d.ts +1 -1
  211. package/dist/types/ui/PanelTextInput/index.d.ts +18 -18
  212. package/dist/types/ui/Popup/index.d.ts +16 -16
  213. package/dist/types/ui/Popup/utils.d.ts +6 -6
  214. package/dist/types/ui/Pulse/Pulse.d.ts +1 -1
  215. package/dist/types/ui/ResizerLegacy/index.d.ts +11 -11
  216. package/dist/types/ui/ResizerLegacy/types.d.ts +8 -8
  217. package/dist/types/ui/TableSelector/index.d.ts +11 -11
  218. package/dist/types/ui/TableSelector/table-selector.d.ts +7 -7
  219. package/dist/types/ui/UnsupportedBlock/index.d.ts +1 -1
  220. package/dist/types/ui/UnsupportedInline/index.d.ts +1 -1
  221. package/dist/types/ui/WidthProvider/index.d.ts +2 -2
  222. package/dist/types/ui-color/ColorPalette/Color/index.d.ts +8 -8
  223. package/dist/types/ui-color/ColorPalette/Palettes/type.d.ts +3 -3
  224. package/dist/types/ui-color/ColorPalette/index.d.ts +4 -4
  225. package/dist/types/ui-menu/ArrowKeyNavigationProvider/types.d.ts +11 -11
  226. package/dist/types/ui-menu/ColorPickerButton/index.d.ts +11 -11
  227. package/dist/types/ui-menu/Dropdown/index.d.ts +15 -15
  228. package/dist/types/ui-menu/DropdownMenu/types.d.ts +33 -33
  229. package/dist/types/ui-menu/ToolbarArrowKeyNavigationProvider/index.d.ts +4 -4
  230. package/dist/types/ui-menu/ToolbarButton/index.d.ts +19 -19
  231. package/dist/types/ui-react/ReactEditorViewContext.d.ts +1 -1
  232. package/dist/types/ui-react/with-react-editor-view-outer-listeners.d.ts +5 -5
  233. package/dist/types/user-preferences/persistence-api.d.ts +8 -8
  234. package/dist/types/utils/breakout.d.ts +12 -12
  235. package/dist/types/utils/calculate-toolbar-position.d.ts +1 -1
  236. package/dist/types/utils/compare-props.d.ts +3 -3
  237. package/dist/types/utils/count-nodes.d.ts +1 -1
  238. package/dist/types/utils/create-wrap-selection-transaction.d.ts +1 -1
  239. package/dist/types/utils/editor-core-utils.d.ts +1 -1
  240. package/dist/types/utils/error-reporter.d.ts +1 -1
  241. package/dist/types/utils/get-performance-options.d.ts +2 -2
  242. package/dist/types/utils/hyperlink.d.ts +1 -1
  243. package/dist/types/utils/imageLoader.d.ts +3 -3
  244. package/dist/types/utils/input-rules.d.ts +2 -2
  245. package/dist/types/utils/macro.d.ts +1 -1
  246. package/dist/types/utils/page-element-counts.d.ts +2 -2
  247. package/dist/types/utils/performance/hooks/use-component-render-tracking/index.d.ts +2 -2
  248. package/dist/types/utils/performance/measure-render.d.ts +3 -3
  249. package/dist/types/utils/performance/measure-tti.d.ts +1 -1
  250. package/dist/types/utils/plugin-state-factory.d.ts +1 -1
  251. package/dist/types/utils/profiler/render-count.d.ts +3 -3
  252. package/dist/types/utils/track-unsupported-content.d.ts +5 -5
  253. package/dist/types/utils/unsupportedContent/get-unsupported-content-level-data.d.ts +1 -1
  254. package/dist/types/utils/unsupportedContent/types.d.ts +1 -1
  255. package/dist/types/utils/validator.d.ts +5 -5
  256. package/dist/types/with-plugin-state/index.d.ts +1 -1
  257. package/dist/types-ts4.5/analytics/api.d.ts +2 -2
  258. package/dist/types-ts4.5/analytics/types/activity-session-events.d.ts +14 -14
  259. package/dist/types-ts4.5/analytics/types/ai-definitions-events.d.ts +1 -1
  260. package/dist/types-ts4.5/analytics/types/ai-events.d.ts +2 -2
  261. package/dist/types-ts4.5/analytics/types/ai-inline-suggestion-events.d.ts +2 -2
  262. package/dist/types-ts4.5/analytics/types/ai-proactive-events.d.ts +12 -12
  263. package/dist/types-ts4.5/analytics/types/ai-unified-events.d.ts +11 -11
  264. package/dist/types-ts4.5/analytics/types/breakout-events.d.ts +4 -4
  265. package/dist/types-ts4.5/analytics/types/config-panel-events.d.ts +3 -3
  266. package/dist/types-ts4.5/analytics/types/cut-copy-events.d.ts +4 -4
  267. package/dist/types-ts4.5/analytics/types/datasource-clicked-events.d.ts +2 -2
  268. package/dist/types-ts4.5/analytics/types/date-events.d.ts +1 -1
  269. package/dist/types-ts4.5/analytics/types/element-events.d.ts +4 -4
  270. package/dist/types-ts4.5/analytics/types/events.d.ts +23 -23
  271. package/dist/types-ts4.5/analytics/types/extension-events.d.ts +5 -5
  272. package/dist/types-ts4.5/analytics/types/format-events.d.ts +6 -6
  273. package/dist/types-ts4.5/analytics/types/general-events.d.ts +32 -32
  274. package/dist/types-ts4.5/analytics/types/highlight-actions-menu-events.d.ts +1 -1
  275. package/dist/types-ts4.5/analytics/types/highlight-events.d.ts +1 -1
  276. package/dist/types-ts4.5/analytics/types/inline-comment-events.d.ts +1 -1
  277. package/dist/types-ts4.5/analytics/types/insert-events.d.ts +26 -26
  278. package/dist/types-ts4.5/analytics/types/link-events.d.ts +1 -1
  279. package/dist/types-ts4.5/analytics/types/link-tool-bar-events.d.ts +17 -17
  280. package/dist/types-ts4.5/analytics/types/list-events.d.ts +8 -8
  281. package/dist/types-ts4.5/analytics/types/loom-events.d.ts +1 -1
  282. package/dist/types-ts4.5/analytics/types/media-events.d.ts +9 -9
  283. package/dist/types-ts4.5/analytics/types/mention-events.d.ts +30 -30
  284. package/dist/types-ts4.5/analytics/types/move-content-events.d.ts +3 -3
  285. package/dist/types-ts4.5/analytics/types/ncs-session-step-events.d.ts +3 -3
  286. package/dist/types-ts4.5/analytics/types/node-events.d.ts +5 -5
  287. package/dist/types-ts4.5/analytics/types/offline-editing-event.d.ts +5 -5
  288. package/dist/types-ts4.5/analytics/types/paste-events.d.ts +6 -6
  289. package/dist/types-ts4.5/analytics/types/performance-report.d.ts +6 -6
  290. package/dist/types-ts4.5/analytics/types/referentiality-events.d.ts +2 -2
  291. package/dist/types-ts4.5/analytics/types/selection-events.d.ts +1 -1
  292. package/dist/types-ts4.5/analytics/types/smart-links.d.ts +2 -2
  293. package/dist/types-ts4.5/analytics/types/substitute-events.d.ts +1 -1
  294. package/dist/types-ts4.5/analytics/types/table-events.d.ts +19 -19
  295. package/dist/types-ts4.5/analytics/types/type-ahead.d.ts +3 -3
  296. package/dist/types-ts4.5/analytics/types/utils.d.ts +6 -6
  297. package/dist/types-ts4.5/analytics/types/view-events.d.ts +2 -2
  298. package/dist/types-ts4.5/annotation/index.d.ts +39 -39
  299. package/dist/types-ts4.5/block-menu/messages.d.ts +5 -0
  300. package/dist/types-ts4.5/card/LinkToolbarButtonGroup.d.ts +5 -5
  301. package/dist/types-ts4.5/card/MediaAndEmbedsToolbar/index.d.ts +2 -2
  302. package/dist/types-ts4.5/card/cardOptions.d.ts +36 -36
  303. package/dist/types-ts4.5/card/types.d.ts +8 -8
  304. package/dist/types-ts4.5/code-block/index.d.ts +6 -0
  305. package/dist/types-ts4.5/collab/index.d.ts +71 -71
  306. package/dist/types-ts4.5/doc-utils/editor-use-only.d.ts +1 -1
  307. package/dist/types-ts4.5/element-browser/ElementBrowser.d.ts +9 -9
  308. package/dist/types-ts4.5/element-browser/ViewMore.d.ts +1 -1
  309. package/dist/types-ts4.5/element-browser/components/CategoryList.d.ts +1 -1
  310. package/dist/types-ts4.5/element-browser/components/ElementList/ElementList.d.ts +11 -11
  311. package/dist/types-ts4.5/element-browser/components/ElementList/EmptyState.d.ts +1 -1
  312. package/dist/types-ts4.5/element-browser/components/ElementSearch.d.ts +4 -4
  313. package/dist/types-ts4.5/element-browser/components/StatelessElementBrowser.d.ts +14 -14
  314. package/dist/types-ts4.5/element-browser/hooks/use-select-and-focus-on-arrow-navigation.d.ts +12 -12
  315. package/dist/types-ts4.5/element-browser/types.d.ts +2 -2
  316. package/dist/types-ts4.5/extensibility/Extension/Extension/index.d.ts +12 -12
  317. package/dist/types-ts4.5/extensibility/Extension/InlineExtension/index.d.ts +5 -5
  318. package/dist/types-ts4.5/extensibility/Extension/LegacyContentHeader/index.d.ts +1 -1
  319. package/dist/types-ts4.5/extensibility/Extension/Lozenge/EditToggle.d.ts +2 -2
  320. package/dist/types-ts4.5/extensibility/Extension/Lozenge/ExtensionLabel.d.ts +6 -6
  321. package/dist/types-ts4.5/extensibility/Extension/Lozenge/LozengeComponent.d.ts +11 -11
  322. package/dist/types-ts4.5/extensibility/Extension/Lozenge/index.d.ts +9 -9
  323. package/dist/types-ts4.5/extensibility/Extension.d.ts +8 -8
  324. package/dist/types-ts4.5/extensibility/ExtensionComponent.d.ts +13 -13
  325. package/dist/types-ts4.5/extensibility/ExtensionNodeWrapper.d.ts +1 -1
  326. package/dist/types-ts4.5/extensibility/MultiBodiedExtension/action-api.d.ts +5 -5
  327. package/dist/types-ts4.5/extensibility/MultiBodiedExtension/index.d.ts +10 -10
  328. package/dist/types-ts4.5/extensibility/extensionNodeView.d.ts +8 -8
  329. package/dist/types-ts4.5/extensions/extension-handlers.d.ts +1 -1
  330. package/dist/types-ts4.5/extensions/types/extension-handler.d.ts +10 -10
  331. package/dist/types-ts4.5/extensions/types/extension-manifest-toolbar-item.d.ts +13 -13
  332. package/dist/types-ts4.5/extensions/types/extension-manifest.d.ts +26 -26
  333. package/dist/types-ts4.5/extensions/types/extension-provider.d.ts +3 -3
  334. package/dist/types-ts4.5/extensions/types/field-definitions.d.ts +40 -40
  335. package/dist/types-ts4.5/extensions/types/utils.d.ts +7 -7
  336. package/dist/types-ts4.5/floating-toolbar/DropdownMenuExtensionItems.d.ts +4 -4
  337. package/dist/types-ts4.5/floating-toolbar/DropdownMenuItem.d.ts +10 -10
  338. package/dist/types-ts4.5/guideline/relativeGuideline.d.ts +1 -1
  339. package/dist/types-ts4.5/guideline/types.d.ts +9 -9
  340. package/dist/types-ts4.5/guideline/updateGuideline.d.ts +1 -1
  341. package/dist/types-ts4.5/guideline/utils.d.ts +2 -2
  342. package/dist/types-ts4.5/icons/shared/DynamicStrokeIconDecoration.d.ts +1 -1
  343. package/dist/types-ts4.5/icons/shared/SteppedRainbowIconDecoration.d.ts +1 -1
  344. package/dist/types-ts4.5/insert/index.d.ts +2 -2
  345. package/dist/types-ts4.5/keymaps/index.d.ts +2 -2
  346. package/dist/types-ts4.5/lazy-node-view/index.d.ts +3 -3
  347. package/dist/types-ts4.5/link/ConfigureLinkOverlay/Dropdown.d.ts +3 -3
  348. package/dist/types-ts4.5/link/ConfigureLinkOverlay/handleNavigation.d.ts +1 -1
  349. package/dist/types-ts4.5/link/ConfigureLinkOverlay/index.d.ts +2 -2
  350. package/dist/types-ts4.5/link/LinkPicker/EditorLinkPicker/index.d.ts +3 -3
  351. package/dist/types-ts4.5/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.d.ts +12 -12
  352. package/dist/types-ts4.5/link/LinkPicker/HyperlinkAddToolbar/index.d.ts +8 -8
  353. package/dist/types-ts4.5/link/LinkSearch/LinkSearchList.d.ts +6 -6
  354. package/dist/types-ts4.5/link/LinkSearch/LinkSearchListItem.d.ts +4 -4
  355. package/dist/types-ts4.5/link/LinkSearch/types.d.ts +11 -11
  356. package/dist/types-ts4.5/link/types.d.ts +9 -9
  357. package/dist/types-ts4.5/lists/indentation.d.ts +1 -1
  358. package/dist/types-ts4.5/lists/node.d.ts +2 -2
  359. package/dist/types-ts4.5/lists/replace-content.d.ts +1 -1
  360. package/dist/types-ts4.5/lists/selection.d.ts +1 -1
  361. package/dist/types-ts4.5/media-inline/inline-image-card.d.ts +4 -4
  362. package/dist/types-ts4.5/media-inline/inline-image-wrapper.d.ts +3 -3
  363. package/dist/types-ts4.5/media-inline/media-inline-image-card.d.ts +8 -8
  364. package/dist/types-ts4.5/media-inline/types.d.ts +4 -4
  365. package/dist/types-ts4.5/media-inline/views/error-view.d.ts +3 -3
  366. package/dist/types-ts4.5/media-inline/views/loading-view.d.ts +2 -2
  367. package/dist/types-ts4.5/media-single/CommentBadge.d.ts +6 -6
  368. package/dist/types-ts4.5/media-single/CommentBadgeNext.d.ts +1 -1
  369. package/dist/types-ts4.5/media-single/MediaBadges.d.ts +4 -4
  370. package/dist/types-ts4.5/media-single/utils.d.ts +5 -5
  371. package/dist/types-ts4.5/node-visibility/node-visibility-manager.d.ts +5 -5
  372. package/dist/types-ts4.5/portal/PortalManager.d.ts +1 -1
  373. package/dist/types-ts4.5/portal/common.d.ts +2 -2
  374. package/dist/types-ts4.5/preset/builder.d.ts +1 -1
  375. package/dist/types-ts4.5/preset/plugin-injection-api.d.ts +3 -3
  376. package/dist/types-ts4.5/provider-factory/card-provider.d.ts +1 -1
  377. package/dist/types-ts4.5/provider-factory/context-identifier-provider.d.ts +1 -1
  378. package/dist/types-ts4.5/provider-factory/image-upload-provider.d.ts +1 -1
  379. package/dist/types-ts4.5/provider-factory/macro-provider.d.ts +4 -4
  380. package/dist/types-ts4.5/provider-factory/media-provider.d.ts +5 -5
  381. package/dist/types-ts4.5/provider-factory/profile-card-provider.d.ts +1 -1
  382. package/dist/types-ts4.5/provider-factory/quick-insert-provider.d.ts +10 -10
  383. package/dist/types-ts4.5/provider-factory/search-provider.d.ts +3 -3
  384. package/dist/types-ts4.5/provider-factory/types.d.ts +11 -11
  385. package/dist/types-ts4.5/provider-helpers/promise-helpers.d.ts +1 -1
  386. package/dist/types-ts4.5/quick-insert/use-icon-themed.d.ts +1 -1
  387. package/dist/types-ts4.5/react-node-view/getInlineNodeViewProducer.d.ts +6 -6
  388. package/dist/types-ts4.5/react-node-view/index.d.ts +1 -1
  389. package/dist/types-ts4.5/resizer/BreakoutResizer.d.ts +10 -10
  390. package/dist/types-ts4.5/resizer/Resizer.d.ts +32 -32
  391. package/dist/types-ts4.5/resizer/types.d.ts +2 -2
  392. package/dist/types-ts4.5/safe-plugin/index.d.ts +1 -1
  393. package/dist/types-ts4.5/selection/gap-cursor/actions.d.ts +1 -1
  394. package/dist/types-ts4.5/selection/gap-cursor/selection.d.ts +1 -1
  395. package/dist/types-ts4.5/selection/index.d.ts +1 -1
  396. package/dist/types-ts4.5/selection/types.d.ts +3 -3
  397. package/dist/types-ts4.5/table/SortingIcon.d.ts +1 -1
  398. package/dist/types-ts4.5/toolbar/context.d.ts +1 -1
  399. package/dist/types-ts4.5/types/annotation/index.d.ts +43 -43
  400. package/dist/types-ts4.5/types/copy-button.d.ts +8 -8
  401. package/dist/types-ts4.5/types/doc-builder.d.ts +1 -1
  402. package/dist/types-ts4.5/types/editor-actions.d.ts +6 -6
  403. package/dist/types-ts4.5/types/editor-container-width.d.ts +7 -7
  404. package/dist/types-ts4.5/types/editor-plugin.d.ts +33 -33
  405. package/dist/types-ts4.5/types/empty-state-handler.d.ts +1 -1
  406. package/dist/types-ts4.5/types/feature-flags.d.ts +107 -107
  407. package/dist/types-ts4.5/types/feedback-dialog.d.ts +5 -5
  408. package/dist/types-ts4.5/types/floating-toolbar.d.ts +142 -142
  409. package/dist/types-ts4.5/types/hyperlink.d.ts +10 -10
  410. package/dist/types-ts4.5/types/input-rules.d.ts +1 -1
  411. package/dist/types-ts4.5/types/next-editor-plugin.d.ts +47 -47
  412. package/dist/types-ts4.5/types/performance-tracking.d.ts +90 -90
  413. package/dist/types-ts4.5/types/plugin-factory.d.ts +6 -6
  414. package/dist/types-ts4.5/types/prosemirror-config.d.ts +1 -1
  415. package/dist/types-ts4.5/types/quick-insert.d.ts +9 -9
  416. package/dist/types-ts4.5/types/selection-toolbar.d.ts +2 -2
  417. package/dist/types-ts4.5/types/supported-browsers.d.ts +1 -1
  418. package/dist/types-ts4.5/types/tables.d.ts +3 -3
  419. package/dist/types-ts4.5/types/text-formatting.d.ts +14 -14
  420. package/dist/types-ts4.5/types/toolbar.d.ts +2 -2
  421. package/dist/types-ts4.5/types/type-ahead.d.ts +29 -29
  422. package/dist/types-ts4.5/types/ui-components.d.ts +7 -7
  423. package/dist/types-ts4.5/types/user-preferences.d.ts +6 -6
  424. package/dist/types-ts4.5/ugc-tokens/editor-ugc-token-names.d.ts +1 -1
  425. package/dist/types-ts4.5/ui/Announcer/announcer.d.ts +5 -5
  426. package/dist/types-ts4.5/ui/AssistiveText/AssistiveText.d.ts +2 -2
  427. package/dist/types-ts4.5/ui/BaseTheme/index.d.ts +2 -2
  428. package/dist/types-ts4.5/ui/Caption/index.d.ts +2 -2
  429. package/dist/types-ts4.5/ui/ContextPanel/context.d.ts +4 -4
  430. package/dist/types-ts4.5/ui/DropList/index.d.ts +7 -7
  431. package/dist/types-ts4.5/ui/Emoji/index.d.ts +3 -3
  432. package/dist/types-ts4.5/ui/ErrorBoundary/index.d.ts +1 -1
  433. package/dist/types-ts4.5/ui/EventHandlers/index.d.ts +7 -7
  434. package/dist/types-ts4.5/ui/Expand/sharedStyles.d.ts +2 -2
  435. package/dist/types-ts4.5/ui/FloatingToolbar/Button.d.ts +20 -20
  436. package/dist/types-ts4.5/ui/FloatingToolbar/ButtonSpotlightCard.d.ts +1 -1
  437. package/dist/types-ts4.5/ui/HoverLinkOverlay/types.d.ts +4 -4
  438. package/dist/types-ts4.5/ui/Layer/index.d.ts +6 -6
  439. package/dist/types-ts4.5/ui/MediaSingle/grid.d.ts +4 -4
  440. package/dist/types-ts4.5/ui/MediaSingle/index.d.ts +12 -12
  441. package/dist/types-ts4.5/ui/MediaSingle/styled.d.ts +8 -8
  442. package/dist/types-ts4.5/ui/Mention/index.d.ts +3 -3
  443. package/dist/types-ts4.5/ui/Mention/mention-with-profilecard.d.ts +4 -4
  444. package/dist/types-ts4.5/ui/Mention/mention-with-providers.d.ts +4 -4
  445. package/dist/types-ts4.5/ui/OverflowShadow/index.d.ts +1 -1
  446. package/dist/types-ts4.5/ui/OverflowShadow/shadowObserver.d.ts +1 -1
  447. package/dist/types-ts4.5/ui/PanelTextInput/index.d.ts +18 -18
  448. package/dist/types-ts4.5/ui/Popup/index.d.ts +16 -16
  449. package/dist/types-ts4.5/ui/Popup/utils.d.ts +6 -6
  450. package/dist/types-ts4.5/ui/Pulse/Pulse.d.ts +1 -1
  451. package/dist/types-ts4.5/ui/ResizerLegacy/index.d.ts +11 -11
  452. package/dist/types-ts4.5/ui/ResizerLegacy/types.d.ts +8 -8
  453. package/dist/types-ts4.5/ui/TableSelector/index.d.ts +11 -11
  454. package/dist/types-ts4.5/ui/TableSelector/table-selector.d.ts +7 -7
  455. package/dist/types-ts4.5/ui/UnsupportedBlock/index.d.ts +1 -1
  456. package/dist/types-ts4.5/ui/UnsupportedInline/index.d.ts +1 -1
  457. package/dist/types-ts4.5/ui/WidthProvider/index.d.ts +2 -2
  458. package/dist/types-ts4.5/ui-color/ColorPalette/Color/index.d.ts +8 -8
  459. package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/type.d.ts +3 -3
  460. package/dist/types-ts4.5/ui-color/ColorPalette/index.d.ts +4 -4
  461. package/dist/types-ts4.5/ui-menu/ArrowKeyNavigationProvider/types.d.ts +11 -11
  462. package/dist/types-ts4.5/ui-menu/ColorPickerButton/index.d.ts +11 -11
  463. package/dist/types-ts4.5/ui-menu/Dropdown/index.d.ts +15 -15
  464. package/dist/types-ts4.5/ui-menu/DropdownMenu/types.d.ts +33 -33
  465. package/dist/types-ts4.5/ui-menu/ToolbarArrowKeyNavigationProvider/index.d.ts +4 -4
  466. package/dist/types-ts4.5/ui-menu/ToolbarButton/index.d.ts +19 -19
  467. package/dist/types-ts4.5/ui-react/ReactEditorViewContext.d.ts +1 -1
  468. package/dist/types-ts4.5/ui-react/with-react-editor-view-outer-listeners.d.ts +5 -5
  469. package/dist/types-ts4.5/user-preferences/persistence-api.d.ts +8 -8
  470. package/dist/types-ts4.5/utils/breakout.d.ts +12 -12
  471. package/dist/types-ts4.5/utils/calculate-toolbar-position.d.ts +1 -1
  472. package/dist/types-ts4.5/utils/compare-props.d.ts +3 -3
  473. package/dist/types-ts4.5/utils/count-nodes.d.ts +1 -1
  474. package/dist/types-ts4.5/utils/create-wrap-selection-transaction.d.ts +1 -1
  475. package/dist/types-ts4.5/utils/editor-core-utils.d.ts +1 -1
  476. package/dist/types-ts4.5/utils/error-reporter.d.ts +1 -1
  477. package/dist/types-ts4.5/utils/get-performance-options.d.ts +2 -2
  478. package/dist/types-ts4.5/utils/hyperlink.d.ts +1 -1
  479. package/dist/types-ts4.5/utils/imageLoader.d.ts +3 -3
  480. package/dist/types-ts4.5/utils/input-rules.d.ts +2 -2
  481. package/dist/types-ts4.5/utils/macro.d.ts +1 -1
  482. package/dist/types-ts4.5/utils/page-element-counts.d.ts +2 -2
  483. package/dist/types-ts4.5/utils/performance/hooks/use-component-render-tracking/index.d.ts +2 -2
  484. package/dist/types-ts4.5/utils/performance/measure-render.d.ts +3 -3
  485. package/dist/types-ts4.5/utils/performance/measure-tti.d.ts +1 -1
  486. package/dist/types-ts4.5/utils/plugin-state-factory.d.ts +1 -1
  487. package/dist/types-ts4.5/utils/profiler/render-count.d.ts +3 -3
  488. package/dist/types-ts4.5/utils/track-unsupported-content.d.ts +5 -5
  489. package/dist/types-ts4.5/utils/unsupportedContent/get-unsupported-content-level-data.d.ts +1 -1
  490. package/dist/types-ts4.5/utils/unsupportedContent/types.d.ts +1 -1
  491. package/dist/types-ts4.5/utils/validator.d.ts +5 -5
  492. package/dist/types-ts4.5/with-plugin-state/index.d.ts +1 -1
  493. package/package.json +5 -9
@@ -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';
@@ -7,16 +7,21 @@ export type OnClickCallback = ({ event, url, }: {
7
7
  }) => void;
8
8
  export interface CardOptions {
9
9
  /**
10
- * A promise returning the instance of EditorCardProvider
10
+ * Configure visibility of actions available.
11
+ * By default, smart links show all actions available on the views.
12
+ * Set `hide` to true to disable all actions.
13
+ * Set `hide` to false and set `exclude` to enable only specific actions.
11
14
  *
12
- * Example: Promise.resolve(new EditorCardProvider())
15
+ * Component: inline (hover preview), block (card)
13
16
  */
14
- provider?: Providers['cardProvider'];
17
+ actionOptions?: CardProps['actionOptions'];
15
18
  /**
16
- * When the URL pattern is in conflict with Smart Links and macros, macros will take priority over Smart Links.
17
- * Specify the names of macros to allow card plugin to override the macros behaviour and converts the URL to Smart Link.
19
+ * A flag to display alignment options in the link toolbar on Smart Link with embed appearance.
20
+ * Default is true.
21
+ *
22
+ * Component: embed
18
23
  */
19
- resolveBeforeMacros?: string[];
24
+ allowAlignment?: boolean;
20
25
  /**
21
26
  * A flag to determine whether editor can display Smart Link with block (Card) appearance.
22
27
  * Default is true.
@@ -46,37 +51,37 @@ export interface CardOptions {
46
51
  */
47
52
  allowResizing?: boolean;
48
53
  /**
49
- * Configure visibility of actions available.
50
- * By default, smart links show all actions available on the views.
51
- * Set `hide` to true to disable all actions.
52
- * Set `hide` to false and set `exclude` to enable only specific actions.
54
+ * A flag to display wrapping options in the link toolbar on Smart Link with embed appearance.
55
+ * Default is true.
53
56
  *
54
- * Component: inline (hover preview), block (card)
57
+ * Component: embed
55
58
  */
56
- actionOptions?: CardProps['actionOptions'];
59
+ allowWrapping?: boolean;
57
60
  /**
58
- * By default, Smart Link with inline appearance resolving states show a frame with a spinner on the left.
59
- * An alternative is to remove the frame and place the spinner on the right by setting this value to `on-right-without-skeleton`.
60
- * This property is specific to inline links in the editor.
61
- * Default is true.
61
+ * A flag to determine whether page is SSRed. Directly render card if page is SSRed
62
+ * with resolved data and skip lazy load process.
63
+ * Default is false.
62
64
  *
63
65
  * Component: inline
64
66
  */
65
- useAlternativePreloader?: boolean;
67
+ isPageSSRed?: boolean;
66
68
  /**
67
- * A flag to display alignment options in the link toolbar on Smart Link with embed appearance.
68
- * Default is true.
69
+ * A callback to determine the link click behaviour.
69
70
  *
70
- * Component: embed
71
+ * Component: inline, block (card), embed
71
72
  */
72
- allowAlignment?: boolean;
73
+ onClickCallback?: OnClickCallback;
73
74
  /**
74
- * A flag to display wrapping options in the link toolbar on Smart Link with embed appearance.
75
- * Default is true.
75
+ * A promise returning the instance of EditorCardProvider
76
76
  *
77
- * Component: embed
77
+ * Example: Promise.resolve(new EditorCardProvider())
78
78
  */
79
- allowWrapping?: boolean;
79
+ provider?: Providers['cardProvider'];
80
+ /**
81
+ * When the URL pattern is in conflict with Smart Links and macros, macros will take priority over Smart Links.
82
+ * Specify the names of macros to allow card plugin to override the macros behaviour and converts the URL to Smart Link.
83
+ */
84
+ resolveBeforeMacros?: string[];
80
85
  /**
81
86
  * A flag to display Smart Link upgrade discovery.
82
87
  * Default is true.
@@ -85,23 +90,18 @@ export interface CardOptions {
85
90
  */
86
91
  showUpgradeDiscoverability?: boolean;
87
92
  /**
88
- * A callback to determine the link click behaviour.
93
+ * By default, Smart Link with inline appearance resolving states show a frame with a spinner on the left.
94
+ * An alternative is to remove the frame and place the spinner on the right by setting this value to `on-right-without-skeleton`.
95
+ * This property is specific to inline links in the editor.
96
+ * Default is true.
89
97
  *
90
- * Component: inline, block (card), embed
98
+ * Component: inline
91
99
  */
92
- onClickCallback?: OnClickCallback;
100
+ useAlternativePreloader?: boolean;
93
101
  /**
94
102
  * Customises the outbound link to configure user preferences
95
103
  *
96
104
  * Component: link toolbar
97
105
  */
98
106
  userPreferencesLink?: string;
99
- /**
100
- * A flag to determine whether page is SSRed. Directly render card if page is SSRed
101
- * with resolved data and skip lazy load process.
102
- * Default is false.
103
- *
104
- * Component: inline
105
- */
106
- isPageSSRed?: boolean;
107
107
  }
@@ -7,14 +7,14 @@ import { type CardAppearance, type CardProvider } from '../provider-factory';
7
7
  import type { Command, FloatingToolbarItem } from '../types';
8
8
  export interface OptionConfig {
9
9
  appearance?: CardAppearance;
10
- title: string;
10
+ description?: string;
11
+ disabled?: boolean;
12
+ hidden?: boolean;
11
13
  onClick: Command;
12
14
  selected: boolean;
13
15
  testId: string;
14
- disabled?: boolean;
15
- hidden?: boolean;
16
+ title: string;
16
17
  tooltip?: string;
17
- description?: string;
18
18
  }
19
19
  export type CardReplacementInputMethod = INPUT_METHOD.CLIPBOARD | INPUT_METHOD.AUTO_DETECT | INPUT_METHOD.FORMATTING | INPUT_METHOD.MANUAL | INPUT_METHOD.TYPEAHEAD | INPUT_METHOD.FLOATING_TB;
20
20
  export type QueueCardsFromTransactionAction = (state: EditorState, tr: Transaction, source: CardReplacementInputMethod, analyticsAction?: ACTION, normalizeLinkText?: boolean, sourceEvent?: UIAnalyticsEvent | null | undefined, appearance?: CardAppearance) => Transaction;
@@ -22,14 +22,14 @@ export type HideLinkToolbarAction = (tr: Transaction) => Transaction;
22
22
  export type ChangeSelectedCardToLink = (text?: string, href?: string, sendAnalytics?: boolean, node?: Node, pos?: number, editorAnalyticsApi?: EditorAnalyticsAPI) => Command;
23
23
  export type SetSelectedCardAppearance = (appearance: CardAppearance, editorAnalyticsApi: EditorAnalyticsAPI | undefined) => Command;
24
24
  export type GetStartingToolbarItems = (intl: IntlShape, link: string, onEditLink: Command, metadata: {
25
- url: string;
26
25
  title: string;
26
+ url: string;
27
27
  }, state?: EditorState) => FloatingToolbarItem<Command>[];
28
28
  export type GetEndingToolbarItems = (intl: IntlShape, link: string) => FloatingToolbarItem<Command>[];
29
29
  export type CardPluginActions = {
30
- queueCardsFromChangedTr: QueueCardsFromTransactionAction;
31
- hideLinkToolbar: HideLinkToolbarAction;
32
- getStartingToolbarItems: GetStartingToolbarItems;
33
30
  getEndingToolbarItems: GetEndingToolbarItems;
31
+ getStartingToolbarItems: GetStartingToolbarItems;
32
+ hideLinkToolbar: HideLinkToolbarAction;
33
+ queueCardsFromChangedTr: QueueCardsFromTransactionAction;
34
34
  setProvider: (provider: Promise<CardProvider>) => Promise<boolean>;
35
35
  };
@@ -3,7 +3,13 @@ import { type EditorState } from '@atlaskit/editor-prosemirror/state';
3
3
  import { type NodeWithPos } from '@atlaskit/editor-prosemirror/utils';
4
4
  export declare const defaultWordWrapState = false;
5
5
  export declare const codeBlockWrappedStates: WeakMap<PmNode, boolean | undefined>;
6
+ export interface FoldRange {
7
+ from: number;
8
+ to: number;
9
+ }
6
10
  export declare const isCodeBlockWordWrapEnabled: (codeBlockNode: PmNode) => boolean;
11
+ export declare const getCodeBlockFoldState: (codeBlockNode: PmNode) => FoldRange[];
12
+ export declare const setCodeBlockFoldState: (codeBlockNode: PmNode, foldRanges: FoldRange[]) => void;
7
13
  /**
8
14
  * Swap the old node key with the new node key in the wrapped states WeakMap.
9
15
  */