@atlaskit/editor-common 76.1.10 → 76.2.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 (399) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/copy-button/package.json +15 -0
  3. package/dist/cjs/__tests_external__/cases/fundamentals/collection.js +2 -3
  4. package/dist/cjs/__tests_external__/cases/fundamentals/test-cases/editor-is-present.js +2 -3
  5. package/dist/cjs/__tests_external__/cases/fundamentals/test-cases/editor-typing.js +2 -3
  6. package/dist/cjs/__tests_external__/cases/smart-links/test-cases/block/delete.js +2 -3
  7. package/dist/cjs/__tests_external__/cases/smart-links/test-cases/block/edit.js +3 -5
  8. package/dist/cjs/__tests_external__/cases/smart-links/test-cases/block/index.js +2 -3
  9. package/dist/cjs/__tests_external__/cases/smart-links/test-cases/block/insert.js +2 -3
  10. package/dist/cjs/__tests_external__/cases/smart-links/test-cases/embed/delete.js +2 -3
  11. package/dist/cjs/__tests_external__/cases/smart-links/test-cases/embed/edit.js +3 -5
  12. package/dist/cjs/__tests_external__/cases/smart-links/test-cases/embed/index.js +2 -3
  13. package/dist/cjs/__tests_external__/cases/smart-links/test-cases/embed/insert.js +2 -3
  14. package/dist/cjs/__tests_external__/cases/smart-links/test-cases/inline/delete.js +2 -3
  15. package/dist/cjs/__tests_external__/cases/smart-links/test-cases/inline/edit.js +3 -5
  16. package/dist/cjs/__tests_external__/cases/smart-links/test-cases/inline/index.js +2 -3
  17. package/dist/cjs/__tests_external__/cases/smart-links/test-cases/inline/insert.js +2 -3
  18. package/dist/cjs/__tests_external__/cases/smart-links/test-cases/inline/unlink.js +2 -3
  19. package/dist/cjs/__tests_external__/cases/smart-links/test-cases/url/index.js +2 -3
  20. package/dist/cjs/__tests_external__/cases/smart-links/test-cases/url/insert.js +2 -3
  21. package/dist/cjs/__tests_external__/page-objects/Editor.js +2 -3
  22. package/dist/cjs/__tests_external__/page-objects/EditorSmartLink.js +2 -3
  23. package/dist/cjs/__tests_external__/page-objects/Renderer.js +2 -3
  24. package/dist/cjs/analytics/analytics-queue.js +8 -7
  25. package/dist/cjs/analytics/fire-analytics-event.js +4 -6
  26. package/dist/cjs/analytics/linking-utils.js +5 -9
  27. package/dist/cjs/analytics/types/enums.js +9 -17
  28. package/dist/cjs/analytics/types/extension-events.js +3 -5
  29. package/dist/cjs/analytics/types/format-events.js +3 -5
  30. package/dist/cjs/analytics/types/general-events.js +5 -9
  31. package/dist/cjs/analytics/types/inline-comment-events.js +2 -3
  32. package/dist/cjs/analytics/types/insert-events.js +5 -9
  33. package/dist/cjs/analytics/types/list-events.js +5 -9
  34. package/dist/cjs/analytics/types/node-events.js +3 -5
  35. package/dist/cjs/analytics/types/paste-events.js +4 -7
  36. package/dist/cjs/analytics/types/smart-links.js +2 -3
  37. package/dist/cjs/analytics/types/substitute-events.js +3 -5
  38. package/dist/cjs/analytics/types/table-events.js +4 -7
  39. package/dist/cjs/analytics/types/toolbar-button.js +2 -3
  40. package/dist/cjs/analytics/types/utils.js +3 -5
  41. package/dist/cjs/card/LinkToolbarButtonGroup.js +2 -3
  42. package/dist/cjs/card/MediaAndEmbedsToolbar/index.js +2 -3
  43. package/dist/cjs/card/index.js +1 -2
  44. package/dist/cjs/card/link-toolbar-button-group-options.js +2 -3
  45. package/dist/cjs/card/ui/assets/card.js +2 -3
  46. package/dist/cjs/card/ui/assets/embed.js +2 -3
  47. package/dist/cjs/card/ui/assets/inline.js +2 -3
  48. package/dist/cjs/card/ui/assets/url.js +2 -3
  49. package/dist/cjs/card/utils.js +3 -4
  50. package/dist/cjs/clipboard/index.js +5 -9
  51. package/dist/cjs/collab/index.js +3 -5
  52. package/dist/cjs/commands/index.js +4 -8
  53. package/dist/cjs/commands/insert-block.js +2 -3
  54. package/dist/cjs/copy-button/index.js +21 -0
  55. package/dist/cjs/core-utils/inside.js +2 -3
  56. package/dist/cjs/editor-analytics/withAnalytics.js +2 -2
  57. package/dist/cjs/element-browser/ElementBrowser.js +1 -2
  58. package/dist/cjs/element-browser/ViewMore.js +2 -3
  59. package/dist/cjs/element-browser/components/CategoryList.js +1 -2
  60. package/dist/cjs/element-browser/components/ElementBrowserLoader.js +1 -2
  61. package/dist/cjs/element-browser/components/ElementList/ElementList.js +4 -8
  62. package/dist/cjs/element-browser/components/ElementList/utils.js +1 -1
  63. package/dist/cjs/element-browser/components/ElementSearch.js +1 -2
  64. package/dist/cjs/element-browser/components/StatelessElementBrowser.js +1 -2
  65. package/dist/cjs/element-browser/constants.js +11 -22
  66. package/dist/cjs/element-browser/hooks/use-select-and-focus-on-arrow-navigation.js +3 -6
  67. package/dist/cjs/element-browser/types.js +2 -3
  68. package/dist/cjs/event-dispatcher/index.js +1 -2
  69. package/dist/cjs/extensions/combine-extension-providers.js +2 -3
  70. package/dist/cjs/extensions/default-extension-provider.js +2 -3
  71. package/dist/cjs/extensions/manifest-helpers.js +4 -8
  72. package/dist/cjs/extensions/module-helpers.js +4 -8
  73. package/dist/cjs/extensions/types/field-definitions.js +6 -11
  74. package/dist/cjs/floating-toolbar/index.js +5 -9
  75. package/dist/cjs/guideline/constants.js +2 -4
  76. package/dist/cjs/guideline/defaultGuideline.js +2 -3
  77. package/dist/cjs/guideline/dynamicGuideline.js +1 -2
  78. package/dist/cjs/guideline/fixedGuideline.js +3 -5
  79. package/dist/cjs/guideline/relativeGuideline.js +3 -5
  80. package/dist/cjs/guideline/snapping.js +3 -5
  81. package/dist/cjs/guideline/updateGuideline.js +2 -3
  82. package/dist/cjs/guideline/utils.js +7 -13
  83. package/dist/cjs/i18n/cs.js +2 -3
  84. package/dist/cjs/i18n/da.js +2 -3
  85. package/dist/cjs/i18n/de.js +2 -3
  86. package/dist/cjs/i18n/en.js +2 -3
  87. package/dist/cjs/i18n/en_GB.js +2 -3
  88. package/dist/cjs/i18n/en_ZZ.js +2 -3
  89. package/dist/cjs/i18n/es.js +2 -3
  90. package/dist/cjs/i18n/et.js +1 -2
  91. package/dist/cjs/i18n/fi.js +2 -3
  92. package/dist/cjs/i18n/fr.js +2 -3
  93. package/dist/cjs/i18n/hu.js +2 -3
  94. package/dist/cjs/i18n/it.js +2 -3
  95. package/dist/cjs/i18n/ja.js +2 -3
  96. package/dist/cjs/i18n/ko.js +2 -3
  97. package/dist/cjs/i18n/languages.js +2 -3
  98. package/dist/cjs/i18n/nb.js +2 -3
  99. package/dist/cjs/i18n/nl.js +2 -3
  100. package/dist/cjs/i18n/pl.js +2 -3
  101. package/dist/cjs/i18n/pt_BR.js +2 -3
  102. package/dist/cjs/i18n/pt_PT.js +1 -2
  103. package/dist/cjs/i18n/ru.js +2 -3
  104. package/dist/cjs/i18n/sk.js +1 -2
  105. package/dist/cjs/i18n/sv.js +2 -3
  106. package/dist/cjs/i18n/th.js +2 -3
  107. package/dist/cjs/i18n/tr.js +2 -3
  108. package/dist/cjs/i18n/uk.js +2 -3
  109. package/dist/cjs/i18n/vi.js +2 -3
  110. package/dist/cjs/i18n/zh.js +2 -3
  111. package/dist/cjs/i18n/zh_TW.js +2 -3
  112. package/dist/cjs/icons/index.js +2 -3
  113. package/dist/cjs/icons/shared/BorderIcon.js +2 -3
  114. package/dist/cjs/icons/shared/PanelErrorIcon.js +2 -3
  115. package/dist/cjs/icons/shared/PanelInfoIcon.js +2 -3
  116. package/dist/cjs/icons/shared/PanelNoteIcon.js +2 -3
  117. package/dist/cjs/icons/shared/PanelSuccessIcon.js +2 -3
  118. package/dist/cjs/icons/shared/PanelWarningIcon.js +2 -3
  119. package/dist/cjs/insert/index.js +6 -11
  120. package/dist/cjs/keymaps/consts.js +12 -24
  121. package/dist/cjs/keymaps/index.js +66 -132
  122. package/dist/cjs/link/LinkPicker/EditorLinkPicker/index.js +6 -7
  123. package/dist/cjs/link/LinkPicker/EditorLinkPicker/useEscapeClickaway.js +2 -3
  124. package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +9 -15
  125. package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/messages.js +2 -3
  126. package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/utils.js +4 -7
  127. package/dist/cjs/link/LinkSearch/LinkSearchList.js +3 -5
  128. package/dist/cjs/link/LinkSearch/LinkSearchListItem.js +5 -10
  129. package/dist/cjs/link/LinkSearch/ToolbarComponents.js +3 -6
  130. package/dist/cjs/link/LinkSearch/index.js +1 -2
  131. package/dist/cjs/link/LinkSearch/listItemAlts.js +2 -3
  132. package/dist/cjs/link/LinkSearch/transformTimeStamp.js +2 -3
  133. package/dist/cjs/link/types.js +3 -5
  134. package/dist/cjs/lists/analytics.js +3 -5
  135. package/dist/cjs/lists/indentation.js +2 -3
  136. package/dist/cjs/lists/node.js +3 -5
  137. package/dist/cjs/lists/replace-content.js +2 -3
  138. package/dist/cjs/lists/selection.js +3 -6
  139. package/dist/cjs/mark/commands.js +4 -7
  140. package/dist/cjs/mark/text-formatting.js +2 -3
  141. package/dist/cjs/media-single/constants.js +13 -26
  142. package/dist/cjs/media-single/utils.js +10 -19
  143. package/dist/cjs/messages/alignment.js +24 -0
  144. package/dist/cjs/messages/annotation.js +24 -0
  145. package/dist/cjs/messages/block-type.js +159 -0
  146. package/dist/cjs/messages/card.js +2 -3
  147. package/dist/cjs/messages/codeBidiWarning.js +2 -3
  148. package/dist/cjs/messages/codeBlockButton.js +2 -3
  149. package/dist/cjs/messages/full-page.js +2 -3
  150. package/dist/cjs/messages/index.js +30 -3
  151. package/dist/cjs/messages/insert-block.js +2 -3
  152. package/dist/cjs/messages/link-toolbar.js +2 -3
  153. package/dist/cjs/messages/link.js +2 -3
  154. package/dist/cjs/messages/list.js +2 -3
  155. package/dist/cjs/messages/media-and-embed-toolbar.js +2 -3
  156. package/dist/cjs/messages/toolbar.js +7 -3
  157. package/dist/cjs/messages/undo-redo.js +19 -0
  158. package/dist/cjs/messages/unsupportedContent.js +2 -3
  159. package/dist/cjs/monitoring/error.js +3 -4
  160. package/dist/cjs/node-width/index.js +5 -9
  161. package/dist/cjs/paste/md-plugins/linkify-md-plugin.js +2 -3
  162. package/dist/cjs/paste/md-plugins/newline-md-plugin.js +2 -3
  163. package/dist/cjs/paste/md-plugins/paragraph-md-plugin.js +2 -3
  164. package/dist/cjs/paste/md.js +1 -2
  165. package/dist/cjs/preset/builder.js +2 -3
  166. package/dist/cjs/preset/core-plugin.js +2 -3
  167. package/dist/cjs/preset/editor-commands.js +3 -4
  168. package/dist/cjs/preset/plugin-injection-api.js +4 -7
  169. package/dist/cjs/provider-factory/context.js +4 -7
  170. package/dist/cjs/provider-factory/provider-factory.js +2 -3
  171. package/dist/cjs/provider-factory/with-providers.js +1 -2
  172. package/dist/cjs/provider-helpers/combine-providers.js +2 -3
  173. package/dist/cjs/provider-helpers/promise-helpers.js +5 -9
  174. package/dist/cjs/quick-insert/assets/index.js +25 -49
  175. package/dist/cjs/quick-insert/use-icon-themed.js +2 -3
  176. package/dist/cjs/quick-insert/utils.js +1 -2
  177. package/dist/cjs/react-node-view/getInlineNodeViewProducer.js +2 -3
  178. package/dist/cjs/react-node-view/index.js +4 -5
  179. package/dist/cjs/resizer/utils.js +4 -7
  180. package/dist/cjs/safe-plugin/index.js +2 -3
  181. package/dist/cjs/selection/gap-cursor/selection.js +5 -9
  182. package/dist/cjs/selection/gap-cursor/utils/is-ignored.js +2 -3
  183. package/dist/cjs/selection/gap-cursor/utils/is-valid-target-node.js +2 -3
  184. package/dist/cjs/selection/index.js +1 -2
  185. package/dist/cjs/selection/types.js +2 -3
  186. package/dist/cjs/selection/utils.js +2 -4
  187. package/dist/cjs/selection-based-node-view/SelectionBasedNodeView.js +2 -3
  188. package/dist/cjs/styles/shared/annotation.js +5 -9
  189. package/dist/cjs/styles/shared/block-marks.js +1 -2
  190. package/dist/cjs/styles/shared/blockquote.js +1 -2
  191. package/dist/cjs/styles/shared/code-block.js +3 -6
  192. package/dist/cjs/styles/shared/code-mark.js +2 -3
  193. package/dist/cjs/styles/shared/column-layout.js +1 -2
  194. package/dist/cjs/styles/shared/date.js +2 -4
  195. package/dist/cjs/styles/shared/dropdown-menu.js +3 -5
  196. package/dist/cjs/styles/shared/embedCard.js +2 -4
  197. package/dist/cjs/styles/shared/emoji.js +2 -3
  198. package/dist/cjs/styles/shared/extension.js +2 -4
  199. package/dist/cjs/styles/shared/grid.js +2 -4
  200. package/dist/cjs/styles/shared/headings.js +2 -3
  201. package/dist/cjs/styles/shared/indentation.js +1 -2
  202. package/dist/cjs/styles/shared/layout.js +2 -4
  203. package/dist/cjs/styles/shared/link.js +1 -2
  204. package/dist/cjs/styles/shared/lists.js +2 -4
  205. package/dist/cjs/styles/shared/media-single.js +2 -4
  206. package/dist/cjs/styles/shared/mention.js +2 -3
  207. package/dist/cjs/styles/shared/panel.js +10 -19
  208. package/dist/cjs/styles/shared/paragraph.js +1 -2
  209. package/dist/cjs/styles/shared/plugins.js +4 -8
  210. package/dist/cjs/styles/shared/resizer.js +9 -18
  211. package/dist/cjs/styles/shared/rule.js +2 -3
  212. package/dist/cjs/styles/shared/shadow.js +1 -2
  213. package/dist/cjs/styles/shared/smart-card.js +2 -4
  214. package/dist/cjs/styles/shared/smartCard.js +3 -6
  215. package/dist/cjs/styles/shared/status.js +2 -3
  216. package/dist/cjs/styles/shared/table.js +13 -25
  217. package/dist/cjs/styles/shared/tableCell.js +2 -3
  218. package/dist/cjs/styles/shared/task-decision.js +2 -4
  219. package/dist/cjs/styles/shared/text-color.js +1 -2
  220. package/dist/cjs/styles/shared/unsupported-content.js +2 -4
  221. package/dist/cjs/styles/shared/whitespace.js +1 -2
  222. package/dist/cjs/transforms/expand.js +4 -7
  223. package/dist/cjs/transforms/extension.js +2 -3
  224. package/dist/cjs/type-ahead/index.js +3 -5
  225. package/dist/cjs/types/annotation/emitter.js +3 -5
  226. package/dist/cjs/types/index.js +2 -3
  227. package/dist/cjs/types/toolbar.js +4 -7
  228. package/dist/cjs/ufo/experience-store.js +9 -13
  229. package/dist/cjs/ui/Announcer/announcer.js +1 -2
  230. package/dist/cjs/ui/Caption/index.js +2 -4
  231. package/dist/cjs/ui/Caption/messages.js +2 -3
  232. package/dist/cjs/ui/ContextPanel/context.js +4 -8
  233. package/dist/cjs/ui/DropList/index.js +3 -4
  234. package/dist/cjs/ui/Emoji/index.js +2 -3
  235. package/dist/cjs/ui/ErrorBoundary/index.js +2 -3
  236. package/dist/cjs/ui/Expand/index.js +6 -11
  237. package/dist/cjs/ui/FloatingToolbar/Button.js +2 -3
  238. package/dist/cjs/ui/FloatingToolbar/Separator.js +2 -3
  239. package/dist/cjs/ui/FloatingToolbar/SmallerEditIcon.js +2 -3
  240. package/dist/cjs/ui/FloatingToolbar/styles.js +3 -5
  241. package/dist/cjs/ui/IntlErrorBoundary/index.js +4 -6
  242. package/dist/cjs/ui/Layer/index.js +1 -2
  243. package/dist/cjs/ui/Layer/internal/helpers.js +1 -2
  244. package/dist/cjs/ui/LinkSearch/const.js +4 -8
  245. package/dist/cjs/ui/MediaSingle/grid.js +6 -11
  246. package/dist/cjs/ui/MediaSingle/link.js +1 -2
  247. package/dist/cjs/ui/MediaSingle/styled.js +5 -9
  248. package/dist/cjs/ui/Mention/index.js +2 -3
  249. package/dist/cjs/ui/Mention/mention-with-providers.js +2 -3
  250. package/dist/cjs/ui/Messages/index.js +4 -7
  251. package/dist/cjs/ui/OverflowShadow/index.js +1 -2
  252. package/dist/cjs/ui/OverflowShadow/shadowObserver.js +4 -7
  253. package/dist/cjs/ui/PanelTextInput/index.js +2 -3
  254. package/dist/cjs/ui/PanelTextInput/styles.js +3 -5
  255. package/dist/cjs/ui/Popup/index.js +2 -3
  256. package/dist/cjs/ui/PortalProvider/index.js +8 -12
  257. package/dist/cjs/ui/ResizerLegacy/index.js +6 -7
  258. package/dist/cjs/ui/ResizerLegacy/styled.js +2 -3
  259. package/dist/cjs/ui/ResizerLegacy/utils.js +4 -7
  260. package/dist/cjs/ui/Toolbar/index.js +1 -2
  261. package/dist/cjs/ui/UnsupportedBlock/index.js +1 -2
  262. package/dist/cjs/ui/UnsupportedInline/index.js +1 -2
  263. package/dist/cjs/ui/WidthProvider/index.js +4 -7
  264. package/dist/cjs/ui/WithCreateAnalyticsEvent/index.js +2 -3
  265. package/dist/cjs/ui/clear-next-sibling-margin-top.js +2 -4
  266. package/dist/cjs/ui-color/ColorPalette/Color/index.js +1 -2
  267. package/dist/cjs/ui-color/ColorPalette/Color/styles.js +3 -5
  268. package/dist/cjs/ui-color/ColorPalette/Palettes/borderColorPalette.js +1 -2
  269. package/dist/cjs/ui-color/ColorPalette/Palettes/cellBackgroundColorPalette.js +1 -2
  270. package/dist/cjs/ui-color/ColorPalette/Palettes/common.js +2 -3
  271. package/dist/cjs/ui-color/ColorPalette/Palettes/paletteMessages.js +2 -3
  272. package/dist/cjs/ui-color/ColorPalette/Palettes/paletteMessagesTokenModeNames.js +10 -19
  273. package/dist/cjs/ui-color/ColorPalette/Palettes/panelBackgroundPalette.js +4 -5
  274. package/dist/cjs/ui-color/ColorPalette/Palettes/statusColorPalette.js +3 -5
  275. package/dist/cjs/ui-color/ColorPalette/Palettes/textColorPalette.js +1 -2
  276. package/dist/cjs/ui-color/ColorPalette/index.js +1 -2
  277. package/dist/cjs/ui-color/ColorPalette/styles.js +1 -2
  278. package/dist/cjs/ui-color/ColorPalette/utils.js +3 -5
  279. package/dist/cjs/ui-menu/ArrowKeyNavigationProvider/ColorPaletteArrowKeyNavigationProvider/index.js +2 -3
  280. package/dist/cjs/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.js +7 -8
  281. package/dist/cjs/ui-menu/ArrowKeyNavigationProvider/index.js +2 -3
  282. package/dist/cjs/ui-menu/ArrowKeyNavigationProvider/types.js +2 -3
  283. package/dist/cjs/ui-menu/ColorPickerButton/index.js +3 -4
  284. package/dist/cjs/ui-menu/Dropdown/index.js +4 -6
  285. package/dist/cjs/ui-menu/DropdownContainer/index.js +2 -3
  286. package/dist/cjs/ui-menu/DropdownMenu/index.js +6 -8
  287. package/dist/cjs/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +12 -14
  288. package/dist/cjs/ui-menu/ToolbarButton/index.js +2 -4
  289. package/dist/cjs/ui-menu/ToolbarButton/styles.js +2 -3
  290. package/dist/cjs/ui-react/ReactEditorViewContext.js +1 -2
  291. package/dist/cjs/ui-react/with-react-editor-view-outer-listeners.js +1 -1
  292. package/dist/cjs/utils/analytics.js +5 -10
  293. package/dist/cjs/utils/annotation/index.js +3 -5
  294. package/dist/cjs/utils/breakout.js +7 -13
  295. package/dist/cjs/utils/browser-extensions.js +1 -1
  296. package/dist/cjs/utils/browser.js +1 -2
  297. package/dist/cjs/utils/commands.js +11 -21
  298. package/dist/cjs/utils/compare-props.js +6 -11
  299. package/dist/cjs/utils/compareNodes.js +2 -4
  300. package/dist/cjs/utils/datasource.js +3 -5
  301. package/dist/cjs/utils/date.js +7 -13
  302. package/dist/cjs/utils/document.js +3 -5
  303. package/dist/cjs/utils/dom.js +1 -2
  304. package/dist/cjs/utils/editor-core-utils.js +9 -18
  305. package/dist/cjs/utils/error-reporter.js +2 -3
  306. package/dist/cjs/utils/grid.js +2 -3
  307. package/dist/cjs/utils/hyperlink.js +7 -13
  308. package/dist/cjs/utils/imageLoader.js +2 -3
  309. package/dist/cjs/utils/index.js +5 -10
  310. package/dist/cjs/utils/input-rules.js +5 -8
  311. package/dist/cjs/utils/is-text-input.js +2 -3
  312. package/dist/cjs/utils/list.js +7 -11
  313. package/dist/cjs/utils/macro.js +2 -3
  314. package/dist/cjs/utils/nodes.js +12 -24
  315. package/dist/cjs/utils/outdated-browsers.js +2 -3
  316. package/dist/cjs/utils/performance/get-performance-timing.js +2 -3
  317. package/dist/cjs/utils/performance/measure-render.js +1 -2
  318. package/dist/cjs/utils/performance/measure-tti.js +2 -4
  319. package/dist/cjs/utils/profiler/render-count.js +9 -11
  320. package/dist/cjs/utils/referentiality.js +19 -24
  321. package/dist/cjs/utils/rich-media-utils.js +5 -10
  322. package/dist/cjs/utils/scroll-gutter.js +3 -6
  323. package/dist/cjs/utils/should-force-tracking.js +2 -3
  324. package/dist/cjs/utils/track-unsupported-content.js +4 -7
  325. package/dist/cjs/utils/traversor.js +1 -2
  326. package/dist/cjs/utils/unsupportedContent/get-unsupported-content-level-data.js +4 -7
  327. package/dist/cjs/utils/validate-using-spec.js +3 -6
  328. package/dist/cjs/utils/validator.js +12 -21
  329. package/dist/cjs/utils/whitespace.js +2 -4
  330. package/dist/cjs/with-plugin-state/index.js +1 -2
  331. package/dist/es2019/analytics/analytics-queue.js +3 -1
  332. package/dist/es2019/card/utils.js +1 -1
  333. package/dist/es2019/copy-button/index.js +15 -0
  334. package/dist/es2019/messages/alignment.js +18 -0
  335. package/dist/es2019/messages/annotation.js +18 -0
  336. package/dist/es2019/messages/block-type.js +153 -0
  337. package/dist/es2019/messages/index.js +4 -0
  338. package/dist/es2019/messages/toolbar.js +5 -0
  339. package/dist/es2019/messages/undo-redo.js +13 -0
  340. package/dist/es2019/monitoring/error.js +1 -1
  341. package/dist/es2019/ui/DropList/index.js +1 -1
  342. package/dist/es2019/ui/PortalProvider/index.js +4 -4
  343. package/dist/esm/analytics/analytics-queue.js +7 -5
  344. package/dist/esm/analytics/fire-analytics-event.js +1 -1
  345. package/dist/esm/card/MediaAndEmbedsToolbar/index.js +1 -1
  346. package/dist/esm/card/utils.js +1 -1
  347. package/dist/esm/copy-button/index.js +14 -0
  348. package/dist/esm/editor-analytics/withAnalytics.js +2 -2
  349. package/dist/esm/element-browser/components/ElementList/utils.js +1 -1
  350. package/dist/esm/link/LinkPicker/EditorLinkPicker/index.js +4 -4
  351. package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +3 -3
  352. package/dist/esm/messages/alignment.js +18 -0
  353. package/dist/esm/messages/annotation.js +18 -0
  354. package/dist/esm/messages/block-type.js +153 -0
  355. package/dist/esm/messages/index.js +4 -0
  356. package/dist/esm/messages/toolbar.js +5 -0
  357. package/dist/esm/messages/undo-redo.js +13 -0
  358. package/dist/esm/monitoring/error.js +1 -1
  359. package/dist/esm/preset/editor-commands.js +1 -1
  360. package/dist/esm/react-node-view/getInlineNodeViewProducer.js +1 -1
  361. package/dist/esm/react-node-view/index.js +2 -2
  362. package/dist/esm/ufo/experience-store.js +5 -5
  363. package/dist/esm/ui/DropList/index.js +1 -1
  364. package/dist/esm/ui/Emoji/index.js +1 -1
  365. package/dist/esm/ui/IntlErrorBoundary/index.js +1 -1
  366. package/dist/esm/ui/Popup/index.js +1 -1
  367. package/dist/esm/ui/PortalProvider/index.js +4 -4
  368. package/dist/esm/ui/ResizerLegacy/index.js +4 -4
  369. package/dist/esm/ui-menu/ArrowKeyNavigationProvider/ColorPaletteArrowKeyNavigationProvider/index.js +1 -1
  370. package/dist/esm/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.js +6 -6
  371. package/dist/esm/ui-menu/ColorPickerButton/index.js +1 -1
  372. package/dist/esm/ui-menu/Dropdown/index.js +2 -2
  373. package/dist/esm/ui-menu/DropdownMenu/index.js +3 -3
  374. package/dist/esm/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +10 -10
  375. package/dist/esm/ui-react/with-react-editor-view-outer-listeners.js +1 -1
  376. package/dist/esm/utils/browser-extensions.js +1 -1
  377. package/dist/esm/utils/input-rules.js +1 -1
  378. package/dist/esm/utils/list.js +3 -3
  379. package/dist/esm/utils/profiler/render-count.js +6 -6
  380. package/dist/esm/utils/referentiality.js +13 -13
  381. package/dist/types/card/utils.d.ts +1 -1
  382. package/dist/types/copy-button/index.d.ts +7 -0
  383. package/dist/types/guideline/fixedGuideline.d.ts +1 -1
  384. package/dist/types/messages/alignment.d.ts +17 -0
  385. package/dist/types/messages/annotation.d.ts +17 -0
  386. package/dist/types/messages/block-type.d.ts +152 -0
  387. package/dist/types/messages/index.d.ts +4 -0
  388. package/dist/types/messages/toolbar.d.ts +5 -0
  389. package/dist/types/messages/undo-redo.d.ts +12 -0
  390. package/dist/types-ts4.5/card/utils.d.ts +1 -1
  391. package/dist/types-ts4.5/copy-button/index.d.ts +7 -0
  392. package/dist/types-ts4.5/guideline/fixedGuideline.d.ts +1 -1
  393. package/dist/types-ts4.5/messages/alignment.d.ts +17 -0
  394. package/dist/types-ts4.5/messages/annotation.d.ts +17 -0
  395. package/dist/types-ts4.5/messages/block-type.d.ts +152 -0
  396. package/dist/types-ts4.5/messages/index.d.ts +4 -0
  397. package/dist/types-ts4.5/messages/toolbar.d.ts +5 -0
  398. package/dist/types-ts4.5/messages/undo-redo.d.ts +12 -0
  399. package/package.json +4 -3
@@ -57,18 +57,18 @@ export var ToolbarArrowKeyNavigationProvider = function ToolbarArrowKeyNavigatio
57
57
  var _filteredFocusableEle;
58
58
  var filteredFocusableElements = getFilteredFocusableElements(wrapperRef === null || wrapperRef === void 0 ? void 0 : wrapperRef.current);
59
59
  incrementIndex(filteredFocusableElements);
60
- (_filteredFocusableEle = filteredFocusableElements[selectedItemIndex.current]) === null || _filteredFocusableEle === void 0 ? void 0 : _filteredFocusableEle.focus();
60
+ (_filteredFocusableEle = filteredFocusableElements[selectedItemIndex.current]) === null || _filteredFocusableEle === void 0 || _filteredFocusableEle.focus();
61
61
  };
62
62
  var handleArrowLeft = function handleArrowLeft() {
63
63
  var _filteredFocusableEle2;
64
64
  var filteredFocusableElements = getFilteredFocusableElements(wrapperRef === null || wrapperRef === void 0 ? void 0 : wrapperRef.current);
65
65
  decrementIndex(filteredFocusableElements);
66
- (_filteredFocusableEle2 = filteredFocusableElements[selectedItemIndex.current]) === null || _filteredFocusableEle2 === void 0 ? void 0 : _filteredFocusableEle2.focus();
66
+ (_filteredFocusableEle2 = filteredFocusableElements[selectedItemIndex.current]) === null || _filteredFocusableEle2 === void 0 || _filteredFocusableEle2.focus();
67
67
  };
68
68
  var handleTab = function handleTab() {
69
69
  var _filteredFocusableEle3;
70
70
  var filteredFocusableElements = getFilteredFocusableElements(wrapperRef === null || wrapperRef === void 0 ? void 0 : wrapperRef.current);
71
- (_filteredFocusableEle3 = filteredFocusableElements[selectedItemIndex.current]) === null || _filteredFocusableEle3 === void 0 ? void 0 : _filteredFocusableEle3.focus();
71
+ (_filteredFocusableEle3 = filteredFocusableElements[selectedItemIndex.current]) === null || _filteredFocusableEle3 === void 0 || _filteredFocusableEle3.focus();
72
72
  };
73
73
  var handleTabLocal = function handleTabLocal() {
74
74
  var filteredFocusableElements = getFilteredFocusableElements(wrapperRef === null || wrapperRef === void 0 ? void 0 : wrapperRef.current);
@@ -80,7 +80,7 @@ export var ToolbarArrowKeyNavigationProvider = function ToolbarArrowKeyNavigatio
80
80
  var focusAndScrollToElement = function focusAndScrollToElement(element) {
81
81
  var scrollToElement = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
82
82
  if (scrollToElement) {
83
- element === null || element === void 0 ? void 0 : element.scrollIntoView({
83
+ element === null || element === void 0 || element.scrollIntoView({
84
84
  behavior: 'smooth',
85
85
  block: 'center',
86
86
  inline: 'nearest'
@@ -162,23 +162,23 @@ export var ToolbarArrowKeyNavigationProvider = function ToolbarArrowKeyNavigatio
162
162
  if (isShortcutToFocusToolbar(event)) {
163
163
  var _filteredFocusableEle4, _filteredFocusableEle5;
164
164
  var filteredFocusableElements = getFilteredFocusableElements(wrapperRef === null || wrapperRef === void 0 ? void 0 : wrapperRef.current);
165
- (_filteredFocusableEle4 = filteredFocusableElements[0]) === null || _filteredFocusableEle4 === void 0 ? void 0 : _filteredFocusableEle4.focus();
166
- (_filteredFocusableEle5 = filteredFocusableElements[0]) === null || _filteredFocusableEle5 === void 0 ? void 0 : _filteredFocusableEle5.scrollIntoView({
165
+ (_filteredFocusableEle4 = filteredFocusableElements[0]) === null || _filteredFocusableEle4 === void 0 || _filteredFocusableEle4.focus();
166
+ (_filteredFocusableEle5 = filteredFocusableElements[0]) === null || _filteredFocusableEle5 === void 0 || _filteredFocusableEle5.scrollIntoView({
167
167
  behavior: 'smooth',
168
168
  block: 'center',
169
169
  inline: 'nearest'
170
170
  });
171
171
  }
172
172
  };
173
- element === null || element === void 0 ? void 0 : element.addEventListener('keydown', handleKeyDown);
173
+ element === null || element === void 0 || element.addEventListener('keydown', handleKeyDown);
174
174
  var editorViewDom = editorView === null || editorView === void 0 ? void 0 : editorView.dom;
175
175
  if (isShortcutToFocusToolbar) {
176
- editorViewDom === null || editorViewDom === void 0 ? void 0 : editorViewDom.addEventListener('keydown', globalKeyDownHandler);
176
+ editorViewDom === null || editorViewDom === void 0 || editorViewDom.addEventListener('keydown', globalKeyDownHandler);
177
177
  }
178
178
  return function () {
179
- element === null || element === void 0 ? void 0 : element.removeEventListener('keydown', handleKeyDown);
179
+ element === null || element === void 0 || element.removeEventListener('keydown', handleKeyDown);
180
180
  if (isShortcutToFocusToolbar) {
181
- editorViewDom === null || editorViewDom === void 0 ? void 0 : editorViewDom.removeEventListener('keydown', globalKeyDownHandler);
181
+ editorViewDom === null || editorViewDom === void 0 || editorViewDom.removeEventListener('keydown', globalKeyDownHandler);
182
182
  }
183
183
  };
184
184
  }, [selectedItemIndex, wrapperRef, editorView, disableArrowKeyNavigation, handleEscape, childComponentSelector, incrementIndex, decrementIndex, isShortcutToFocusToolbar, editorAppearance, useStickyToolbar]);
@@ -36,7 +36,7 @@ var WithOutsideClick = /*#__PURE__*/function (_PureComponent) {
36
36
  // When the menus are closed by clicking outside the focus is set on editor.
37
37
  if (!((_this$props$editorVie = _this.props.editorView) !== null && _this$props$editorVie !== void 0 && _this$props$editorVie.hasFocus())) {
38
38
  var _this$props$editorVie2;
39
- (_this$props$editorVie2 = _this.props.editorView) === null || _this$props$editorVie2 === void 0 ? void 0 : _this$props$editorVie2.focus();
39
+ (_this$props$editorVie2 = _this.props.editorView) === null || _this$props$editorVie2 === void 0 || _this$props$editorVie2.focus();
40
40
  }
41
41
  }
42
42
  }
@@ -105,7 +105,7 @@ var supportedDetectors = [{
105
105
  cleanup(function () {
106
106
  queue = [];
107
107
  clearInterval(intervalId);
108
- observer === null || observer === void 0 ? void 0 : observer.disconnect();
108
+ observer === null || observer === void 0 || observer.disconnect();
109
109
  });
110
110
  observer.observe(document.documentElement, {
111
111
  childList: true,
@@ -12,7 +12,7 @@ export var inputRuleWithAnalytics = function inputRuleWithAnalytics(getPayload,
12
12
  if (payload && payload.attributes) {
13
13
  payload.attributes.formatSize = typeof matchResult[0] === 'string' ? matchResult[0].length : 0;
14
14
  }
15
- analyticsApi === null || analyticsApi === void 0 ? void 0 : analyticsApi.attachAnalyticsEvent(payload)(tr);
15
+ analyticsApi === null || analyticsApi === void 0 || analyticsApi.attachAnalyticsEvent(payload)(tr);
16
16
  if (originalRule.onHandlerApply) {
17
17
  originalRule.onHandlerApply(state, tr, matchResult);
18
18
  }
@@ -18,15 +18,15 @@ export var resolveOrder = function resolveOrder(order) {
18
18
  };
19
19
  export var getOrderFromOrderedListNode = function getOrderFromOrderedListNode(orderedListNode) {
20
20
  var _orderedListNode$attr, _resolveOrder;
21
- var order = orderedListNode === null || orderedListNode === void 0 ? void 0 : (_orderedListNode$attr = orderedListNode.attrs) === null || _orderedListNode$attr === void 0 ? void 0 : _orderedListNode$attr.order;
21
+ var order = orderedListNode === null || orderedListNode === void 0 || (_orderedListNode$attr = orderedListNode.attrs) === null || _orderedListNode$attr === void 0 ? void 0 : _orderedListNode$attr.order;
22
22
  return (_resolveOrder = resolveOrder(order)) !== null && _resolveOrder !== void 0 ? _resolveOrder : DEFAULT_ORDER;
23
23
  };
24
24
  export var getItemCounterDigitsSize = function getItemCounterDigitsSize(options) {
25
- var _resolveOrder2, _String, _String$split, _String$split$;
25
+ var _resolveOrder2, _String;
26
26
  var order = (_resolveOrder2 = resolveOrder(options.order)) !== null && _resolveOrder2 !== void 0 ? _resolveOrder2 : DEFAULT_ORDER;
27
27
  var itemsCount = typeof options.itemsCount === 'number' ? options.itemsCount : 0;
28
28
  var largestCounter = order + (itemsCount - 1);
29
- return (_String = String(largestCounter)) === null || _String === void 0 ? void 0 : (_String$split = _String.split('.')) === null || _String$split === void 0 ? void 0 : (_String$split$ = _String$split[0]) === null || _String$split$ === void 0 ? void 0 : _String$split$.length;
29
+ return (_String = String(largestCounter)) === null || _String === void 0 || (_String = _String.split('.')) === null || _String === void 0 || (_String = _String[0]) === null || _String === void 0 ? void 0 : _String.length;
30
30
  };
31
31
  export function isListNode(node) {
32
32
  return Boolean(node && node.type && ['orderedList', 'bulletList'].includes(node.type.name));
@@ -43,8 +43,8 @@ export var RenderCountProfiler = /*#__PURE__*/function () {
43
43
  }, {
44
44
  key: "isEnabled",
45
45
  value: function isEnabled() {
46
- var _this$store2, _this$store2$PROFILER;
47
- return Boolean((_this$store2 = this.store) === null || _this$store2 === void 0 ? void 0 : (_this$store2$PROFILER = _this$store2[PROFILER_KEY]) === null || _this$store2$PROFILER === void 0 ? void 0 : _this$store2$PROFILER.enabled);
46
+ var _this$store2;
47
+ return Boolean((_this$store2 = this.store) === null || _this$store2 === void 0 || (_this$store2 = _this$store2[PROFILER_KEY]) === null || _this$store2 === void 0 ? void 0 : _this$store2.enabled);
48
48
  }
49
49
  }, {
50
50
  key: "setRenderCount",
@@ -66,9 +66,9 @@ export var RenderCountProfiler = /*#__PURE__*/function () {
66
66
  }, {
67
67
  key: "getInstanceRenderCounters",
68
68
  value: function getInstanceRenderCounters(_ref3) {
69
- var _this$store$PROFILER_, _this$store3, _this$store3$PROFILER, _this$store3$PROFILER2;
69
+ var _this$store$PROFILER_, _this$store3;
70
70
  var componentId = _ref3.componentId;
71
- var component = (_this$store$PROFILER_ = (_this$store3 = this.store) === null || _this$store3 === void 0 ? void 0 : (_this$store3$PROFILER = _this$store3[PROFILER_KEY]) === null || _this$store3$PROFILER === void 0 ? void 0 : (_this$store3$PROFILER2 = _this$store3$PROFILER.components) === null || _this$store3$PROFILER2 === void 0 ? void 0 : _this$store3$PROFILER2[componentId]) !== null && _this$store$PROFILER_ !== void 0 ? _this$store$PROFILER_ : {};
71
+ var component = (_this$store$PROFILER_ = (_this$store3 = this.store) === null || _this$store3 === void 0 || (_this$store3 = _this$store3[PROFILER_KEY]) === null || _this$store3 === void 0 || (_this$store3 = _this$store3.components) === null || _this$store3 === void 0 ? void 0 : _this$store3[componentId]) !== null && _this$store$PROFILER_ !== void 0 ? _this$store$PROFILER_ : {};
72
72
  var counters = [];
73
73
  for (var _instanceId in component) {
74
74
  var counter = {
@@ -82,9 +82,9 @@ export var RenderCountProfiler = /*#__PURE__*/function () {
82
82
  }, {
83
83
  key: "getRenderCount",
84
84
  value: function getRenderCount(_ref4) {
85
- var _this$store$PROFILER_2, _this$store4, _this$store4$PROFILER, _this$store4$PROFILER2;
85
+ var _this$store$PROFILER_2, _this$store4;
86
86
  var componentId = _ref4.componentId;
87
- var component = (_this$store$PROFILER_2 = (_this$store4 = this.store) === null || _this$store4 === void 0 ? void 0 : (_this$store4$PROFILER = _this$store4[PROFILER_KEY]) === null || _this$store4$PROFILER === void 0 ? void 0 : (_this$store4$PROFILER2 = _this$store4$PROFILER.components) === null || _this$store4$PROFILER2 === void 0 ? void 0 : _this$store4$PROFILER2[componentId]) !== null && _this$store$PROFILER_2 !== void 0 ? _this$store$PROFILER_2 : {};
87
+ var component = (_this$store$PROFILER_2 = (_this$store4 = this.store) === null || _this$store4 === void 0 || (_this$store4 = _this$store4[PROFILER_KEY]) === null || _this$store4 === void 0 || (_this$store4 = _this$store4.components) === null || _this$store4 === void 0 ? void 0 : _this$store4[componentId]) !== null && _this$store$PROFILER_2 !== void 0 ? _this$store$PROFILER_2 : {};
88
88
  var total = 0;
89
89
  for (var _instanceId2 in component) {
90
90
  total += component[_instanceId2].count;
@@ -5,7 +5,7 @@ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol
5
5
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
6
6
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
7
7
  export var isReferencedSource = function isReferencedSource(state, node) {
8
- var _node$attrs, _node$marks, _node$marks$find, _node$marks$find$attr;
8
+ var _node$attrs, _node$marks;
9
9
  if (!node) {
10
10
  return false;
11
11
  }
@@ -13,9 +13,9 @@ export var isReferencedSource = function isReferencedSource(state, node) {
13
13
 
14
14
  // Handle nodes having 2 uuids. They could have a localId or a fragment. Regardless this needs
15
15
  // to check if either id is used by a data consumer.
16
- var localIds = new Set([(_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.localId, (_node$marks = node.marks) === null || _node$marks === void 0 ? void 0 : (_node$marks$find = _node$marks.find(function (mark) {
16
+ var localIds = new Set([(_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.localId, (_node$marks = node.marks) === null || _node$marks === void 0 || (_node$marks = _node$marks.find(function (mark) {
17
17
  return mark.type === state.schema.marks.fragment;
18
- })) === null || _node$marks$find === void 0 ? void 0 : (_node$marks$find$attr = _node$marks$find.attrs) === null || _node$marks$find$attr === void 0 ? void 0 : _node$marks$find$attr.localId].filter(Boolean));
18
+ })) === null || _node$marks === void 0 || (_node$marks = _node$marks.attrs) === null || _node$marks === void 0 ? void 0 : _node$marks.localId].filter(Boolean));
19
19
 
20
20
  // If there are no uuids on the node then it's not possible for it to be referenced anywhere.
21
21
  if (!localIds.size) {
@@ -52,7 +52,7 @@ export var getConnections = function getConnections(state) {
52
52
  // Perform a prelim scan creating the initial id to connection link mappings.
53
53
  // This will also save a list of data sources consumed per node.
54
54
  doc.descendants(function (node, pos) {
55
- var _node$attrs2, _fragmentMark$attrs$l, _fragmentMark, _fragmentMark$attrs, _node$attrs3, _fragmentMark2, _fragmentMark2$attrs, _node$attrs4, _fragmentMark3, _fragmentMark3$attrs;
55
+ var _node$attrs2, _fragmentMark$attrs$l, _fragmentMark, _node$attrs3, _fragmentMark2, _node$attrs4, _fragmentMark3;
56
56
  var dataConsumer;
57
57
  var fragmentMark;
58
58
  node.marks.some(function (mark) {
@@ -70,11 +70,11 @@ export var getConnections = function getConnections(state) {
70
70
  if (!fragmentMark && !((_node$attrs2 = node.attrs) !== null && _node$attrs2 !== void 0 && _node$attrs2.localId)) {
71
71
  return true;
72
72
  }
73
- var normalizedId = (_fragmentMark$attrs$l = (_fragmentMark = fragmentMark) === null || _fragmentMark === void 0 ? void 0 : (_fragmentMark$attrs = _fragmentMark.attrs) === null || _fragmentMark$attrs === void 0 ? void 0 : _fragmentMark$attrs.localId) !== null && _fragmentMark$attrs$l !== void 0 ? _fragmentMark$attrs$l : (_node$attrs3 = node.attrs) === null || _node$attrs3 === void 0 ? void 0 : _node$attrs3.localId;
73
+ var normalizedId = (_fragmentMark$attrs$l = (_fragmentMark = fragmentMark) === null || _fragmentMark === void 0 || (_fragmentMark = _fragmentMark.attrs) === null || _fragmentMark === void 0 ? void 0 : _fragmentMark.localId) !== null && _fragmentMark$attrs$l !== void 0 ? _fragmentMark$attrs$l : (_node$attrs3 = node.attrs) === null || _node$attrs3 === void 0 ? void 0 : _node$attrs3.localId;
74
74
  if (!normalizedId) {
75
75
  return true;
76
76
  }
77
- if (!!((_fragmentMark2 = fragmentMark) !== null && _fragmentMark2 !== void 0 && (_fragmentMark2$attrs = _fragmentMark2.attrs) !== null && _fragmentMark2$attrs !== void 0 && _fragmentMark2$attrs.localId)) {
77
+ if (!!((_fragmentMark2 = fragmentMark) !== null && _fragmentMark2 !== void 0 && (_fragmentMark2 = _fragmentMark2.attrs) !== null && _fragmentMark2 !== void 0 && _fragmentMark2.localId)) {
78
78
  normalizedIds.set(fragmentMark.attrs.localId, normalizedId);
79
79
  }
80
80
  if (!!((_node$attrs4 = node.attrs) !== null && _node$attrs4 !== void 0 && _node$attrs4.localId)) {
@@ -86,7 +86,7 @@ export var getConnections = function getConnections(state) {
86
86
  }
87
87
  result[normalizedId] = {
88
88
  localId: normalizedId,
89
- name: (_fragmentMark3 = fragmentMark) === null || _fragmentMark3 === void 0 ? void 0 : (_fragmentMark3$attrs = _fragmentMark3.attrs) === null || _fragmentMark3$attrs === void 0 ? void 0 : _fragmentMark3$attrs.name,
89
+ name: (_fragmentMark3 = fragmentMark) === null || _fragmentMark3 === void 0 || (_fragmentMark3 = _fragmentMark3.attrs) === null || _fragmentMark3 === void 0 ? void 0 : _fragmentMark3.name,
90
90
  node: node,
91
91
  pos: pos,
92
92
  targets: []
@@ -255,18 +255,18 @@ var getNodeNameById = function getNodeNameById(id, allNodes) {
255
255
  return allNodes[id].name;
256
256
  };
257
257
  var getSelectedLocalIds = function getSelectedLocalIds(state, node) {
258
- var _node$attrs5, _node$marks2, _node$marks2$find, _node$marks2$find$att;
258
+ var _node$attrs5, _node$marks2;
259
259
  if (!node) {
260
260
  return new Set([]);
261
261
  }
262
- var localIds = new Set([(_node$attrs5 = node.attrs) === null || _node$attrs5 === void 0 ? void 0 : _node$attrs5.localId, (_node$marks2 = node.marks) === null || _node$marks2 === void 0 ? void 0 : (_node$marks2$find = _node$marks2.find(function (mark) {
262
+ var localIds = new Set([(_node$attrs5 = node.attrs) === null || _node$attrs5 === void 0 ? void 0 : _node$attrs5.localId, (_node$marks2 = node.marks) === null || _node$marks2 === void 0 || (_node$marks2 = _node$marks2.find(function (mark) {
263
263
  return mark.type === state.schema.marks.fragment;
264
- })) === null || _node$marks2$find === void 0 ? void 0 : (_node$marks2$find$att = _node$marks2$find.attrs) === null || _node$marks2$find$att === void 0 ? void 0 : _node$marks2$find$att.localId].filter(Boolean));
264
+ })) === null || _node$marks2 === void 0 || (_node$marks2 = _node$marks2.attrs) === null || _node$marks2 === void 0 ? void 0 : _node$marks2.localId].filter(Boolean));
265
265
  return localIds;
266
266
  };
267
267
  export var getNodeName = function getNodeName(state, node) {
268
- var _node$marks$find$attr2, _node$marks3, _node$marks3$find, _node$marks3$find$att;
269
- return (_node$marks$find$attr2 = node === null || node === void 0 ? void 0 : (_node$marks3 = node.marks) === null || _node$marks3 === void 0 ? void 0 : (_node$marks3$find = _node$marks3.find(function (mark) {
268
+ var _node$marks$find$attr, _node$marks3;
269
+ return (_node$marks$find$attr = node === null || node === void 0 || (_node$marks3 = node.marks) === null || _node$marks3 === void 0 || (_node$marks3 = _node$marks3.find(function (mark) {
270
270
  return mark.type === state.schema.marks.fragment;
271
- })) === null || _node$marks3$find === void 0 ? void 0 : (_node$marks3$find$att = _node$marks3$find.attrs) === null || _node$marks3$find$att === void 0 ? void 0 : _node$marks3$find$att.name) !== null && _node$marks$find$attr2 !== void 0 ? _node$marks$find$attr2 : '';
271
+ })) === null || _node$marks3 === void 0 || (_node$marks3 = _node$marks3.attrs) === null || _node$marks3 === void 0 ? void 0 : _node$marks3.name) !== null && _node$marks$find$attr !== void 0 ? _node$marks$find$attr : '';
272
272
  };
@@ -4,7 +4,7 @@ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
4
  /**
5
5
  * Records metadata about the user action and input method relating to a transaction
6
6
  * as a custom LinkStepMetadata prosemirror step so that it is preserved in
7
- * the history for undo/redo
7
+ * the history for undo/redo.
8
8
  */
9
9
  export declare function addLinkMetadata(initialSelection: Selection, tr: Transaction, metadata: LinkStepMetadata): Transaction;
10
10
  export declare function getLinkMetadataFromTransaction(tr: Transaction | ReadonlyTransaction): LinkStepMetadata;
@@ -0,0 +1,7 @@
1
+ import type { NodeType, Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
2
+ import type { Transaction } from '@atlaskit/editor-prosemirror/state';
3
+ export declare function getSelectedNodeOrNodeParentByNodeType({ nodeType, selection, }: {
4
+ nodeType: NodeType | Array<NodeType>;
5
+ selection: Transaction['selection'];
6
+ }): import("prosemirror-utils/dist/types").FindResult;
7
+ export declare const toDOM: (node: PMNode, schema: Schema) => Node;
@@ -1,4 +1,4 @@
1
- import { LengthGuide } from './types';
1
+ import type { LengthGuide } from './types';
2
2
  /**
3
3
  * This creates a collection of points relative to the center line of each supplied length. For example; a length of
4
4
  * 100 centered to 0 would result in the left position of -50 and a right position of +50.
@@ -0,0 +1,17 @@
1
+ export declare const alignmentMessages: {
2
+ alignLeft: {
3
+ id: string;
4
+ defaultMessage: string;
5
+ description: string;
6
+ };
7
+ alignCenter: {
8
+ id: string;
9
+ defaultMessage: string;
10
+ description: string;
11
+ };
12
+ alignRight: {
13
+ id: string;
14
+ defaultMessage: string;
15
+ description: string;
16
+ };
17
+ };
@@ -0,0 +1,17 @@
1
+ export declare const annotationMessages: {
2
+ createComment: {
3
+ id: string;
4
+ defaultMessage: string;
5
+ description: string;
6
+ };
7
+ createCommentInvalid: {
8
+ id: string;
9
+ defaultMessage: string;
10
+ description: string;
11
+ };
12
+ toolbar: {
13
+ id: string;
14
+ defaultMessage: string;
15
+ description: string;
16
+ };
17
+ };
@@ -0,0 +1,152 @@
1
+ export declare const messages: {
2
+ normal: {
3
+ id: string;
4
+ defaultMessage: string;
5
+ description: string;
6
+ };
7
+ heading1: {
8
+ id: string;
9
+ defaultMessage: string;
10
+ description: string;
11
+ };
12
+ heading1Description: {
13
+ id: string;
14
+ defaultMessage: string;
15
+ description: string;
16
+ };
17
+ heading2: {
18
+ id: string;
19
+ defaultMessage: string;
20
+ description: string;
21
+ };
22
+ heading2Description: {
23
+ id: string;
24
+ defaultMessage: string;
25
+ description: string;
26
+ };
27
+ heading3: {
28
+ id: string;
29
+ defaultMessage: string;
30
+ description: string;
31
+ };
32
+ heading3Description: {
33
+ id: string;
34
+ defaultMessage: string;
35
+ description: string;
36
+ };
37
+ heading4: {
38
+ id: string;
39
+ defaultMessage: string;
40
+ description: string;
41
+ };
42
+ heading4Description: {
43
+ id: string;
44
+ defaultMessage: string;
45
+ description: string;
46
+ };
47
+ heading5: {
48
+ id: string;
49
+ defaultMessage: string;
50
+ description: string;
51
+ };
52
+ heading5Description: {
53
+ id: string;
54
+ defaultMessage: string;
55
+ description: string;
56
+ };
57
+ heading6: {
58
+ id: string;
59
+ defaultMessage: string;
60
+ description: string;
61
+ };
62
+ heading6Description: {
63
+ id: string;
64
+ defaultMessage: string;
65
+ description: string;
66
+ };
67
+ blockquote: {
68
+ id: string;
69
+ defaultMessage: string;
70
+ description: string;
71
+ };
72
+ blockquoteDescription: {
73
+ id: string;
74
+ defaultMessage: string;
75
+ description: string;
76
+ };
77
+ codeblock: {
78
+ id: string;
79
+ defaultMessage: string;
80
+ description: string;
81
+ };
82
+ codeblockDescription: {
83
+ id: string;
84
+ defaultMessage: string;
85
+ description: string;
86
+ };
87
+ infoPanel: {
88
+ id: string;
89
+ defaultMessage: string;
90
+ description: string;
91
+ };
92
+ infoPanelDescription: {
93
+ id: string;
94
+ defaultMessage: string;
95
+ description: string;
96
+ };
97
+ notePanel: {
98
+ id: string;
99
+ defaultMessage: string;
100
+ description: string;
101
+ };
102
+ notePanelDescription: {
103
+ id: string;
104
+ defaultMessage: string;
105
+ description: string;
106
+ };
107
+ successPanel: {
108
+ id: string;
109
+ defaultMessage: string;
110
+ description: string;
111
+ };
112
+ successPanelDescription: {
113
+ id: string;
114
+ defaultMessage: string;
115
+ description: string;
116
+ };
117
+ warningPanel: {
118
+ id: string;
119
+ defaultMessage: string;
120
+ description: string;
121
+ };
122
+ warningPanelDescription: {
123
+ id: string;
124
+ defaultMessage: string;
125
+ description: string;
126
+ };
127
+ errorPanel: {
128
+ id: string;
129
+ defaultMessage: string;
130
+ description: string;
131
+ };
132
+ errorPanelDescription: {
133
+ id: string;
134
+ defaultMessage: string;
135
+ description: string;
136
+ };
137
+ customPanel: {
138
+ id: string;
139
+ defaultMessage: string;
140
+ description: string;
141
+ };
142
+ customPanelDescription: {
143
+ id: string;
144
+ defaultMessage: string;
145
+ description: string;
146
+ };
147
+ other: {
148
+ id: string;
149
+ defaultMessage: string;
150
+ description: string;
151
+ };
152
+ };
@@ -1,3 +1,6 @@
1
+ export { alignmentMessages } from './alignment';
2
+ export { annotationMessages } from './annotation';
3
+ export { messages as blockTypeMessages } from './block-type';
1
4
  export { codeBidiWarningMessages } from './codeBidiWarning';
2
5
  export { linkMessages } from './link';
3
6
  export { linkToolbarMessages } from './link-toolbar';
@@ -9,6 +12,7 @@ export { messages as cardMessages } from './card';
9
12
  export { messages as fullPageMessages } from './full-page';
10
13
  export { toolbarMessages } from './toolbar';
11
14
  export { messages as listMessages } from './list';
15
+ export { messages as undoRedoMessages } from './undo-redo';
12
16
  declare const _default: {
13
17
  layoutFixedWidth: {
14
18
  id: string;
@@ -69,6 +69,11 @@ export declare const toolbarMessages: {
69
69
  defaultMessage: string;
70
70
  description: string;
71
71
  };
72
+ textStyles: {
73
+ id: string;
74
+ defaultMessage: string;
75
+ description: string;
76
+ };
72
77
  textFormattingOff: {
73
78
  id: string;
74
79
  defaultMessage: string;
@@ -0,0 +1,12 @@
1
+ export declare const messages: {
2
+ undo: {
3
+ id: string;
4
+ defaultMessage: string;
5
+ description: string;
6
+ };
7
+ redo: {
8
+ id: string;
9
+ defaultMessage: string;
10
+ description: string;
11
+ };
12
+ };
@@ -4,7 +4,7 @@ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
4
  /**
5
5
  * Records metadata about the user action and input method relating to a transaction
6
6
  * as a custom LinkStepMetadata prosemirror step so that it is preserved in
7
- * the history for undo/redo
7
+ * the history for undo/redo.
8
8
  */
9
9
  export declare function addLinkMetadata(initialSelection: Selection, tr: Transaction, metadata: LinkStepMetadata): Transaction;
10
10
  export declare function getLinkMetadataFromTransaction(tr: Transaction | ReadonlyTransaction): LinkStepMetadata;
@@ -0,0 +1,7 @@
1
+ import type { NodeType, Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
2
+ import type { Transaction } from '@atlaskit/editor-prosemirror/state';
3
+ export declare function getSelectedNodeOrNodeParentByNodeType({ nodeType, selection, }: {
4
+ nodeType: NodeType | Array<NodeType>;
5
+ selection: Transaction['selection'];
6
+ }): import("prosemirror-utils/dist/types").FindResult;
7
+ export declare const toDOM: (node: PMNode, schema: Schema) => Node;
@@ -1,4 +1,4 @@
1
- import { LengthGuide } from './types';
1
+ import type { LengthGuide } from './types';
2
2
  /**
3
3
  * This creates a collection of points relative to the center line of each supplied length. For example; a length of
4
4
  * 100 centered to 0 would result in the left position of -50 and a right position of +50.
@@ -0,0 +1,17 @@
1
+ export declare const alignmentMessages: {
2
+ alignLeft: {
3
+ id: string;
4
+ defaultMessage: string;
5
+ description: string;
6
+ };
7
+ alignCenter: {
8
+ id: string;
9
+ defaultMessage: string;
10
+ description: string;
11
+ };
12
+ alignRight: {
13
+ id: string;
14
+ defaultMessage: string;
15
+ description: string;
16
+ };
17
+ };
@@ -0,0 +1,17 @@
1
+ export declare const annotationMessages: {
2
+ createComment: {
3
+ id: string;
4
+ defaultMessage: string;
5
+ description: string;
6
+ };
7
+ createCommentInvalid: {
8
+ id: string;
9
+ defaultMessage: string;
10
+ description: string;
11
+ };
12
+ toolbar: {
13
+ id: string;
14
+ defaultMessage: string;
15
+ description: string;
16
+ };
17
+ };