@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
@@ -16,18 +16,22 @@ export interface Transformer<T> {
16
16
  parse(content: T): Node;
17
17
  }
18
18
  export type CorePlugin = NextEditorPlugin<'core', {
19
- pluginConfiguration: {
20
- getEditorView: () => EditorView | undefined;
21
- fireAnalyticsEvent?: FireAnalyticsCallback;
22
- };
23
- sharedState: {
19
+ actions: {
24
20
  /**
25
- * The schema of the editor. It is guarranteed to be static for its lifecycle
26
- * so is safe to use `currentState`
21
+ * Blurs the editor.
22
+ *
23
+ * Calls blur on the editor DOM element.
24
+ *
25
+ * @returns (boolean) if the blur was successful
27
26
  */
28
- schema: Schema | undefined;
29
- };
30
- actions: {
27
+ blur: () => boolean;
28
+ /**
29
+ * Create a transformer
30
+ *
31
+ * @param schema Schema of the document
32
+ * @returns Transformer which can be used to request a document
33
+ */
34
+ createTransformer<Format>(cb: (schema: Schema) => Transformer<Format>): Transformer<Format> | undefined;
31
35
  /**
32
36
  * Dispatches an EditorCommand to ProseMirror
33
37
  *
@@ -50,21 +54,12 @@ export type CorePlugin = NextEditorPlugin<'core', {
50
54
  scrollIntoView: boolean;
51
55
  }) => boolean;
52
56
  /**
53
- * Blurs the editor.
54
- *
55
- * Calls blur on the editor DOM element.
56
- *
57
- * @returns (boolean) if the blur was successful
58
- */
59
- blur: () => boolean;
60
- /**
61
- * Scroll to a specific position in the editor using native Element.scrollIntoView
57
+ * Get the anchor ID for a ProseMirror node.
62
58
  *
63
- * @param pos - Position number scroll to
64
- * @param scrollOptions - [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView)
65
- * @returns (boolean) if scroll was successful
59
+ * @param node - The ProseMirror node to get the anchor ID for.
60
+ * @returns The anchor ID if found, otherwise undefined.
66
61
  */
67
- scrollToPos: (pos: number, scrollOptions?: boolean | ScrollIntoViewOptions) => boolean;
62
+ getAnchorIdForNode: (node: PMNode) => string | undefined;
68
63
  /**
69
64
  * Replaces the current content of the editor with the provided raw value.
70
65
  *
@@ -92,19 +87,24 @@ export type CorePlugin = NextEditorPlugin<'core', {
92
87
  transformer?: GenericTransformer;
93
88
  }): void;
94
89
  /**
95
- * Create a transformer
90
+ * Scroll to a specific position in the editor using native Element.scrollIntoView
96
91
  *
97
- * @param schema Schema of the document
98
- * @returns Transformer which can be used to request a document
92
+ * @param pos - Position number scroll to
93
+ * @param scrollOptions - [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView)
94
+ * @returns (boolean) if scroll was successful
99
95
  */
100
- createTransformer<Format>(cb: (schema: Schema) => Transformer<Format>): Transformer<Format> | undefined;
96
+ scrollToPos: (pos: number, scrollOptions?: boolean | ScrollIntoViewOptions) => boolean;
97
+ };
98
+ pluginConfiguration: {
99
+ fireAnalyticsEvent?: FireAnalyticsCallback;
100
+ getEditorView: () => EditorView | undefined;
101
+ };
102
+ sharedState: {
101
103
  /**
102
- * Get the anchor ID for a ProseMirror node.
103
- *
104
- * @param node - The ProseMirror node to get the anchor ID for.
105
- * @returns The anchor ID if found, otherwise undefined.
104
+ * The schema of the editor. It is guarranteed to be static for its lifecycle
105
+ * so is safe to use `currentState`
106
106
  */
107
- getAnchorIdForNode: (node: PMNode) => string | undefined;
107
+ schema: Schema | undefined;
108
108
  };
109
109
  }>;
110
110
  export type TransformerResult<GenericTransformer = Transformer<JSONDocNode>> = GenericTransformer extends Transformer<infer Content> ? Content : JSONDocNode;
@@ -344,8 +344,8 @@ type ExtractOptionalPlugins<TuplePluginList extends [...any[]]> = TuplePluginLis
344
344
  * @returns The type of the shared state if defined, otherwise `never`.
345
345
  */
346
346
  export type ExtractPluginSharedState<PluginOrMetadata> = PluginOrMetadata extends NextEditorPlugin<any, any> ? PluginOrMetadata extends (props: {
347
- config: any;
348
347
  api: any;
348
+ config: any;
349
349
  }) => DefaultEditorPlugin<any, infer Metadata> ? ExtractSharedStateFromMetadata<Metadata> : never : PluginOrMetadata extends NextEditorPluginMetadata ? ExtractSharedStateFromMetadata<PluginOrMetadata> : never;
350
350
  /**
351
351
  * 🧱 Internal Type: Editor FE Platform
@@ -360,8 +360,8 @@ export type ExtractPluginSharedState<PluginOrMetadata> = PluginOrMetadata extend
360
360
  * @returns The actions definition if available, otherwise `never`.
361
361
  */
362
362
  export type ExtractPluginActions<PluginOrMetadata> = PluginOrMetadata extends NextEditorPlugin<any, any> ? PluginOrMetadata extends (props: {
363
- config: any;
364
363
  api: any;
364
+ config: any;
365
365
  }) => DefaultEditorPlugin<any, infer Metadata> ? ExtractActionsFromMetadata<Metadata> : never : PluginOrMetadata extends NextEditorPluginMetadata ? ExtractActionsFromMetadata<PluginOrMetadata> : never;
366
366
  /*****************************
367
367
  * *
@@ -470,28 +470,28 @@ export type DefaultEditorPlugin<Name extends string, Metadata extends NextEditor
470
470
  */
471
471
  export interface NextEditorPluginMetadata {
472
472
  /**
473
- * The real implementation will be infered by BasePluginDependenciesAPI and other
474
- * internal types.
473
+ * @see NextEditorPluginActions
475
474
  */
476
- readonly sharedState?: any;
475
+ readonly actions?: NextEditorPluginActions;
477
476
  /**
478
- * The real implementation will be infered by Preset internal types and @see NextEditorPluginFunctionOptionalConfigDefinition
477
+ *
478
+ * @see NextEditorEditorCommands
479
479
  */
480
- readonly pluginConfiguration?: any;
480
+ readonly commands?: NextEditorEditorCommands;
481
481
  /**
482
482
  * This is used only on compile time. There is no runtime implementation for the dependencies
483
483
  * @see DependencyPlugin
484
484
  */
485
485
  readonly dependencies?: DependencyPlugin[];
486
486
  /**
487
- * @see NextEditorPluginActions
487
+ * The real implementation will be infered by Preset internal types and @see NextEditorPluginFunctionOptionalConfigDefinition
488
488
  */
489
- readonly actions?: NextEditorPluginActions;
489
+ readonly pluginConfiguration?: any;
490
490
  /**
491
- *
492
- * @see NextEditorEditorCommands
491
+ * The real implementation will be infered by BasePluginDependenciesAPI and other
492
+ * internal types.
493
493
  */
494
- readonly commands?: NextEditorEditorCommands;
494
+ readonly sharedState?: any;
495
495
  }
496
496
  /**
497
497
  * 🧱 Internal Type: Editor FE Platform
@@ -499,10 +499,10 @@ export interface NextEditorPluginMetadata {
499
499
  * ⚠️⚠️⚠️ Any breaking change here will have a massive impact across all Editor Plugin packages ⚠️⚠️⚠️
500
500
  */
501
501
  export type NextEditorPluginFunctionOptionalConfigDefinition<Name extends string, Metadata extends NextEditorPluginMetadata, Configuration = undefined> = (props: {
502
- config: Configuration;
503
502
  api?: {
504
503
  [Plugin in Name]: BasePluginDependenciesAPI<Metadata>;
505
504
  } & RequiredPluginDependenciesAPI<ExtractRequiredPlugins<[CorePlugin, ...ExtractPluginDependenciesFromMetadata<Metadata>]>> & OptionalPluginDependenciesAPI<ExtractOptionalPlugins<ExtractPluginDependenciesFromMetadata<Metadata>>>;
505
+ config: Configuration;
506
506
  }) => DefaultEditorPlugin<Name, Metadata>;
507
507
  /**
508
508
  * 📢 Public Type API: Helps Editor Plugin developers to defined optional dependencies for their plugins.
@@ -557,6 +557,8 @@ type Unsubscribe = () => void;
557
557
  *
558
558
  */
559
559
  export type BasePluginDependenciesAPI<Metadata extends NextEditorPluginMetadata> = {
560
+ actions: ExtractPluginActions<Metadata>;
561
+ commands: ExtractCommandsFromMetadata<Metadata>;
560
562
  sharedState: {
561
563
  currentState: () => ExtractPluginSharedState<Metadata> | undefined;
562
564
  onChange: (sub: (props: {
@@ -564,8 +566,6 @@ export type BasePluginDependenciesAPI<Metadata extends NextEditorPluginMetadata>
564
566
  prevSharedState: ExtractPluginSharedState<Metadata>;
565
567
  }) => void) => Unsubscribe;
566
568
  };
567
- actions: ExtractPluginActions<Metadata>;
568
- commands: ExtractCommandsFromMetadata<Metadata>;
569
569
  };
570
570
  /**
571
571
  * 🧱 Internal Type: Editor FE Platform
@@ -5,40 +5,40 @@ export type TTITracking = {
5
5
  */
6
6
  enabled: boolean;
7
7
  /**
8
- * @description Time between long tasks that tti measurement considers long enough to treat page as interactive in ms
9
- * @default: 1000
8
+ * @description Control whether TTI severity is tracked. When this is false the severity is not recorded.
9
+ * @default false
10
10
  */
11
- ttiIdleThreshold?: number;
11
+ trackSeverity?: boolean;
12
12
  /**
13
13
  * @description Time in [seconds] after which to stop tti measurements, used to prevent issues when page never becomes responsive, e.g. infinite loops in rendering / etc...
14
14
  * @default: 60
15
15
  */
16
16
  ttiCancelTimeout?: number;
17
17
  /**
18
- * @description Control whether TTI severity is tracked. When this is false the severity is not recorded.
19
- * @default false
18
+ * @description Control for calculating ttiFromInvocation severity level (NORMAL/DEGRADED/BLOCKING). Depends on trackSeverity being true.
19
+ * @default 8000
20
20
  */
21
- trackSeverity?: boolean;
21
+ ttiFromInvocationSeverityDegradedThreshold?: number;
22
22
  /**
23
- * @description Control for calculating tti severity level (NORMAL/DEGRADED/BLOCKING). Depends on trackSeverity being true.
24
- * @default 40000
23
+ * @description Control for calculating ttiFromInvocation severity level (NORMAL/DEGRADED/BLOCKING). Depends on trackSeverity being true.
24
+ * @default 5000
25
25
  */
26
- ttiSeverityNormalThreshold?: number;
26
+ ttiFromInvocationSeverityNormalThreshold?: number;
27
+ /**
28
+ * @description Time between long tasks that tti measurement considers long enough to treat page as interactive in ms
29
+ * @default: 1000
30
+ */
31
+ ttiIdleThreshold?: number;
27
32
  /**
28
33
  * @description Control for calculating tti severity level (NORMAL/DEGRADED/BLOCKING). Depends on trackSeverity being true.
29
34
  * @default 60000
30
35
  */
31
36
  ttiSeverityDegradedThreshold?: number;
32
37
  /**
33
- * @description Control for calculating ttiFromInvocation severity level (NORMAL/DEGRADED/BLOCKING). Depends on trackSeverity being true.
34
- * @default 5000
35
- */
36
- ttiFromInvocationSeverityNormalThreshold?: number;
37
- /**
38
- * @description Control for calculating ttiFromInvocation severity level (NORMAL/DEGRADED/BLOCKING). Depends on trackSeverity being true.
39
- * @default 8000
38
+ * @description Control for calculating tti severity level (NORMAL/DEGRADED/BLOCKING). Depends on trackSeverity being true.
39
+ * @default 40000
40
40
  */
41
- ttiFromInvocationSeverityDegradedThreshold?: number;
41
+ ttiSeverityNormalThreshold?: number;
42
42
  };
43
43
  export type TransactionTracking = {
44
44
  /**
@@ -47,10 +47,15 @@ export type TransactionTracking = {
47
47
  **/
48
48
  enabled: boolean;
49
49
  /**
50
- * @description Enable timing using browser performance API. This option has been added to verify memory leaks.
51
- * @default false
50
+ * @description The factor by which statistically significant outliers in plugin execution times are computed where t = p75 + (p75 - p25) * outlierFactor.
51
+ * @default 3
52
52
  **/
53
- usePerformanceMarks?: boolean;
53
+ outlierFactor?: number;
54
+ /**
55
+ * @description Transactions that need longer to dispatch than [outlierThreshold]ms AND have outlier plugins generate a `dispatchTransaction` event. Depends on enabled being true.
56
+ * @default 30
57
+ **/
58
+ outlierThreshold?: number;
54
59
  /**
55
60
  * @description The nth transaction after which a `dispatchTransaction` event is sent. Depends on enabled being true.
56
61
  * @default 100
@@ -62,15 +67,10 @@ export type TransactionTracking = {
62
67
  **/
63
68
  slowThreshold?: number;
64
69
  /**
65
- * @description Transactions that need longer to dispatch than [outlierThreshold]ms AND have outlier plugins generate a `dispatchTransaction` event. Depends on enabled being true.
66
- * @default 30
67
- **/
68
- outlierThreshold?: number;
69
- /**
70
- * @description The factor by which statistically significant outliers in plugin execution times are computed where t = p75 + (p75 - p25) * outlierFactor.
71
- * @default 3
70
+ * @description Enable timing using browser performance API. This option has been added to verify memory leaks.
71
+ * @default false
72
72
  **/
73
- outlierFactor?: number;
73
+ usePerformanceMarks?: boolean;
74
74
  };
75
75
  export type UITracking = {
76
76
  /**
@@ -116,6 +116,16 @@ export type NodeViewTracking = {
116
116
  };
117
117
  export type BrowserFreezetracking = {
118
118
  enabled?: boolean;
119
+ /**
120
+ * @description Control for calculating severity level (NORMAL/DEGRADED/BLOCKING). Depends on severityTracking being true.
121
+ * @default 3000
122
+ */
123
+ severityDegradedThreshold?: number;
124
+ /**
125
+ * @description Control for calculating severity level (NORMAL/DEGRADED/BLOCKING). Depends on severityTracking being true.
126
+ * @default 2000
127
+ */
128
+ severityNormalThreshold?: number;
119
129
  /**
120
130
  * @description Control whether browser freeze interaction type is tracked. When this is false the interaction type is not recorded.
121
131
  * @default false
@@ -126,86 +136,76 @@ export type BrowserFreezetracking = {
126
136
  * @default false
127
137
  */
128
138
  trackSeverity?: boolean;
129
- /**
130
- * @description Control for calculating severity level (NORMAL/DEGRADED/BLOCKING). Depends on severityTracking being true.
131
- * @default 2000
132
- */
133
- severityNormalThreshold?: number;
134
- /**
135
- * @description Control for calculating severity level (NORMAL/DEGRADED/BLOCKING). Depends on severityTracking being true.
136
- * @default 3000
137
- */
138
- severityDegradedThreshold?: number;
139
139
  };
140
140
  export type ProseMirrorRenderedTracking = {
141
141
  enabled?: boolean;
142
142
  /**
143
- * @description Control whether proseMirror rendered event severity is tracked. When this is false the severity is not recorded.
144
- * @default false
143
+ * @description Control for calculating severity level (NORMAL/DEGRADED/BLOCKING). Depends on severityTracking being true.
144
+ * @default 3000
145
145
  */
146
- trackSeverity: boolean;
146
+ severityDegradedThreshold: number;
147
147
  /**
148
148
  * @description Control for calculating severity level (NORMAL/DEGRADED/BLOCKING). Depends on severityTracking being true.
149
149
  * @default 2000
150
150
  */
151
151
  severityNormalThreshold: number;
152
152
  /**
153
- * @description Control for calculating severity level (NORMAL/DEGRADED/BLOCKING). Depends on severityTracking being true.
154
- * @default 3000
153
+ * @description Control whether proseMirror rendered event severity is tracked. When this is false the severity is not recorded.
154
+ * @default false
155
155
  */
156
- severityDegradedThreshold: number;
156
+ trackSeverity: boolean;
157
157
  };
158
158
  export interface InputTracking {
159
+ /**
160
+ * @description Control whether samples of typing performance are taken. Depends on enabled being true.
161
+ * @default false
162
+ */
163
+ countNodes?: boolean;
159
164
  /**
160
165
  * @description Control whether samples of typing performance are taken. When this is false no measurements are taken and no events are sent.
161
166
  * @default false
162
167
  */
163
168
  enabled: boolean;
164
169
  /**
165
- * @description Control whether samples of typing performance are taken. Depends on enabled being true.
166
- * @default false
170
+ * @description input events that exceed [freezeThreshold]ms generate analytics event. Depends on enabled being true.
171
+ * @default 600
167
172
  */
168
- countNodes?: boolean;
173
+ freezeThreshold?: number;
169
174
  /**
170
175
  * @description Control for which nth transaction a typing performance sample is taken. Depends on enabled being true.
171
176
  * @default 100
172
177
  */
173
178
  samplingRate?: number;
179
+ /**
180
+ * @description Control for calculating severity level (NORMAL/DEGRADED/BLOCKING). Depends on severityTracking being true.
181
+ * @default 500
182
+ */
183
+ severityDegradedThreshold?: number;
184
+ /**
185
+ * @description Control for calculating severity level (NORMAL/DEGRADED/BLOCKING). Depends on severityTracking being true.
186
+ * @default 100
187
+ */
188
+ severityNormalThreshold?: number;
174
189
  /**
175
190
  * @description input events that exceed [slowThreshold]ms generate analytics event. Depends on enabled being true.
176
191
  * @default 300
177
192
  */
178
193
  slowThreshold?: number;
179
194
  /**
180
- * @description input events that exceed [freezeThreshold]ms generate analytics event. Depends on enabled being true.
181
- * @default 600
195
+ * @description Track keypress processing time including browser rendering time.
196
+ * @default false
182
197
  */
183
- freezeThreshold?: number;
198
+ trackRenderingTime?: boolean;
184
199
  /**
185
200
  * @description Control whether input tracking severity is tracked. When this is false the severity is not recorded.
186
201
  * @default false
187
202
  */
188
203
  trackSeverity?: boolean;
189
- /**
190
- * @description Control for calculating severity level (NORMAL/DEGRADED/BLOCKING). Depends on severityTracking being true.
191
- * @default 100
192
- */
193
- severityNormalThreshold?: number;
194
- /**
195
- * @description Control for calculating severity level (NORMAL/DEGRADED/BLOCKING). Depends on severityTracking being true.
196
- * @default 500
197
- */
198
- severityDegradedThreshold?: number;
199
204
  /**
200
205
  * @description Track individual keypress processing time when multiple keypress happened in one frame.
201
206
  * @default false
202
207
  */
203
208
  trackSingleKeypress?: boolean;
204
- /**
205
- * @description Track keypress processing time including browser rendering time.
206
- * @default false
207
- */
208
- trackRenderingTime?: boolean;
209
209
  }
210
210
  export type ContentRetrievalTracking = {
211
211
  /**
@@ -214,11 +214,6 @@ export type ContentRetrievalTracking = {
214
214
  * @default false
215
215
  */
216
216
  enabled: boolean;
217
- /**
218
- * @description Control how frequently/at what rate successful editor content retrieval events are dispatched.
219
- * @default 100
220
- */
221
- successSamplingRate?: number;
222
217
  /**
223
218
  * @description Control how frequently/at what rate failed editor content retrieval events are dispatched.
224
219
  * @default 100
@@ -229,6 +224,11 @@ export type ContentRetrievalTracking = {
229
224
  * @default false
230
225
  */
231
226
  reportErrorStack?: boolean;
227
+ /**
228
+ * @description Control how frequently/at what rate successful editor content retrieval events are dispatched.
229
+ * @default 100
230
+ */
231
+ successSamplingRate?: number;
232
232
  };
233
233
  export type OnChangeCallbackTracking = {
234
234
  /**
@@ -279,26 +279,23 @@ export type ErrorTracking = {
279
279
  enabled?: boolean;
280
280
  };
281
281
  export type PerformanceTracking = {
282
+ bFreezeTracking?: BrowserFreezetracking;
282
283
  /**
283
284
  * @description Control whether measurements for all analytics events are performed
284
285
  */
285
286
  catchAllTracking?: CatchAllTracking;
286
287
  /**
287
- * @description Control whether time to interactive is tracked
288
+ * @description Control whether editor content retrieval events are tracked
288
289
  */
289
- ttiTracking?: TTITracking;
290
+ contentRetrievalTracking?: ContentRetrievalTracking;
290
291
  /**
291
- * @description Control whether transactions are tracked
292
+ * @description Control whether top-level Editor errors caught by ErrorBoundary are tracked.
292
293
  */
293
- inputTracking?: InputTracking;
294
+ errorTracking?: ErrorTracking;
294
295
  /**
295
296
  * @description Control whether transactions are tracked
296
297
  */
297
- transactionTracking?: TransactionTracking;
298
- /**
299
- * @description Control whether editor ui is tracked
300
- */
301
- uiTracking?: UITracking;
298
+ inputTracking?: InputTracking;
302
299
  /**
303
300
  * @description Control whether nodeviews are tracked
304
301
  */
@@ -306,15 +303,6 @@ export type PerformanceTracking = {
306
303
  /**
307
304
  * @description Control whether browser freezes / long tasks are tracked
308
305
  */
309
- bFreezeTracking?: BrowserFreezetracking;
310
- /**
311
- * @description Control whether proseMirror rendered event is tracked
312
- */
313
- proseMirrorRenderedTracking?: ProseMirrorRenderedTracking;
314
- /**
315
- * @description Control whether editor content retrieval events are tracked
316
- */
317
- contentRetrievalTracking?: ContentRetrievalTracking;
318
306
  /**
319
307
  * @description Control onChange callback is tracked. Requires TransactionTracking to be enabled,
320
308
  * and uses the sampling rate in TransactionTracking.
@@ -328,6 +316,10 @@ export type PerformanceTracking = {
328
316
  * @description Control whether paste is tracked.
329
317
  */
330
318
  pasteTracking?: PasteTracking;
319
+ /**
320
+ * @description Control whether proseMirror rendered event is tracked
321
+ */
322
+ proseMirrorRenderedTracking?: ProseMirrorRenderedTracking;
331
323
  /**
332
324
  * @description Control whether render of different component is tracked.
333
325
  */
@@ -337,7 +329,15 @@ export type PerformanceTracking = {
337
329
  */
338
330
  startedTracking?: StartedTracking;
339
331
  /**
340
- * @description Control whether top-level Editor errors caught by ErrorBoundary are tracked.
332
+ * @description Control whether transactions are tracked
341
333
  */
342
- errorTracking?: ErrorTracking;
334
+ transactionTracking?: TransactionTracking;
335
+ /**
336
+ * @description Control whether time to interactive is tracked
337
+ */
338
+ ttiTracking?: TTITracking;
339
+ /**
340
+ * @description Control whether editor ui is tracked
341
+ */
342
+ uiTracking?: UITracking;
343
343
  };
@@ -8,16 +8,16 @@ import type { SafePlugin } from '../safe-plugin';
8
8
  import type { ErrorReporter } from '../utils';
9
9
  import type { FeatureFlags } from './feature-flags';
10
10
  export type PMPluginFactoryParams = {
11
- schema: Schema;
12
11
  dispatch: Dispatch;
13
- eventDispatcher: EventDispatcher;
14
- providerFactory: ProviderFactory;
15
- errorReporter?: ErrorReporter;
16
- portalProviderAPI: PortalProviderAPI;
17
- nodeViewPortalProviderAPI: PortalProviderAPI;
18
12
  dispatchAnalyticsEvent: DispatchAnalyticsEvent;
13
+ errorReporter?: ErrorReporter;
14
+ eventDispatcher: EventDispatcher;
19
15
  featureFlags: FeatureFlags;
20
16
  getIntl: () => IntlShape;
17
+ nodeViewPortalProviderAPI: PortalProviderAPI;
18
+ portalProviderAPI: PortalProviderAPI;
19
+ providerFactory: ProviderFactory;
20
+ schema: Schema;
21
21
  };
22
22
  export type PMPluginFactory = (params: PMPluginFactoryParams) => SafePlugin | undefined;
23
23
  export type PMPlugin = {
@@ -5,8 +5,8 @@ export interface NodeConfig {
5
5
  node: NodeSpec;
6
6
  }
7
7
  export interface MarkConfig {
8
- name: string;
9
8
  mark: MarkSpec;
9
+ name: string;
10
10
  }
11
11
  export interface NodeViewConfig {
12
12
  name: string;
@@ -3,9 +3,9 @@ import type { IntlShape } from 'react-intl-next';
3
3
  import type { QuickInsertItem, QuickInsertProvider } from '../provider-factory';
4
4
  import type { EmptyStateHandler } from './empty-state-handler';
5
5
  export type QuickInsertOptions = boolean | {
6
- provider?: Promise<QuickInsertProvider>;
7
- prioritySortingFn?: (items: QuickInsertItem[]) => Fuse.FuseSortFunction | undefined;
8
6
  onInsert?: (item: QuickInsertItem) => void;
7
+ prioritySortingFn?: (items: QuickInsertItem[]) => Fuse.FuseSortFunction | undefined;
8
+ provider?: Promise<QuickInsertProvider>;
9
9
  };
10
10
  export type QuickInsertHandlerFn = ((intl: IntlShape) => Array<QuickInsertItem>) & {
11
11
  disableMemo?: boolean;
@@ -15,18 +15,18 @@ export type IconProps = {
15
15
  label?: string;
16
16
  };
17
17
  export type QuickInsertSearchOptions = {
18
- query?: string;
19
18
  category?: string;
20
19
  disableDefaultItems?: boolean;
21
20
  featuredItems?: boolean;
22
21
  prioritySortingFn?: (items: QuickInsertItem[]) => Fuse.FuseSortFunction | undefined;
22
+ query?: string;
23
23
  };
24
24
  export type QuickInsertPluginState = {
25
+ emptyStateHandler?: EmptyStateHandler;
25
26
  isElementBrowserModalOpen: boolean;
26
27
  lazyDefaultItems: () => QuickInsertItem[];
27
28
  providedItems?: QuickInsertItem[];
28
29
  provider?: QuickInsertProvider;
29
- emptyStateHandler?: EmptyStateHandler;
30
30
  searchOptions?: QuickInsertSearchOptions;
31
31
  };
32
32
  export type QuickInsertPluginStateKeys = keyof QuickInsertPluginState;
@@ -36,17 +36,17 @@ export type QuickInsertPluginStateKeys = keyof QuickInsertPluginState;
36
36
  * @see https://product-fabric.atlassian.net/browse/ED-27496
37
37
  */
38
38
  export interface QuickInsertPluginOptions {
39
- headless?: boolean;
40
39
  disableDefaultItems?: boolean;
41
- enableElementBrowser?: boolean;
42
40
  elementBrowserHelpUrl?: string;
43
41
  emptyStateHandler?: EmptyStateHandler;
44
- prioritySortingFn?: (items: QuickInsertItem[]) => Fuse.FuseSortFunction | undefined;
42
+ enableElementBrowser?: boolean;
43
+ headless?: boolean;
45
44
  onInsert?: (item: QuickInsertItem) => void;
45
+ prioritySortingFn?: (items: QuickInsertItem[]) => Fuse.FuseSortFunction | undefined;
46
46
  }
47
47
  export type QuickInsertSharedState = {
48
- lazyDefaultItems: () => QuickInsertItem[];
49
48
  emptyStateHandler?: EmptyStateHandler;
50
- providedItems?: QuickInsertItem[];
51
49
  isElementBrowserModalOpen: boolean;
50
+ lazyDefaultItems: () => QuickInsertItem[];
51
+ providedItems?: QuickInsertItem[];
52
52
  };
@@ -4,13 +4,13 @@ import type { ProviderFactory } from '../provider-factory';
4
4
  import type { Command } from './command';
5
5
  import type { FloatingToolbarItem } from './floating-toolbar';
6
6
  export type SelectionToolbarGroup = {
7
+ items: Array<FloatingToolbarItem<Command>>;
8
+ pluginName?: string;
7
9
  /**
8
10
  * by default these will be added in the order the plugin adds them
9
11
  * To override this a rank can be provided
10
12
  */
11
13
  rank?: number;
12
- items: Array<FloatingToolbarItem<Command>>;
13
- pluginName?: string;
14
14
  };
15
15
  /**
16
16
  * The selection toolbar is a floating toolbar that is displayed for
@@ -1,8 +1,8 @@
1
1
  declare const SupportedBrowsers: readonly ["ie", "gecko", "chrome", "safari"];
2
2
  export type Browsers = (typeof SupportedBrowsers)[number];
3
3
  export type Range = {
4
- minimum: number;
5
4
  maximum?: number;
5
+ minimum: number;
6
6
  };
7
7
  export type DisableSpellcheckByBrowser = {
8
8
  [b in Browsers]?: Range;
@@ -1,13 +1,13 @@
1
1
  export interface ColumnResizingPluginState {
2
- resizeHandlePos: number | null;
3
2
  dragging: {
4
- startX: number;
5
3
  startWidth: number;
4
+ startX: number;
6
5
  } | null;
7
6
  lastClick: {
7
+ time: number;
8
8
  x: number;
9
9
  y: number;
10
- time: number;
11
10
  } | null;
12
11
  lastColumnResizable?: boolean;
12
+ resizeHandlePos: number | null;
13
13
  }