@atlaskit/editor-core 188.0.9 → 188.0.12

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 (692) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/cjs/actions/index.js +4 -5
  3. package/dist/cjs/composable-editor/editor-internal.js +3 -3
  4. package/dist/cjs/composable-editor/editor.js +4 -4
  5. package/dist/cjs/composable-editor/hooks/useEditorMeasuresConstructor.js +1 -1
  6. package/dist/cjs/composable-editor/hooks/useMeasureEditorMountTime.js +3 -3
  7. package/dist/cjs/composable-editor/utils/editorMeasureTTICallback.js +2 -2
  8. package/dist/cjs/composable-editor/utils/getProvidersFromEditorProps.js +1 -1
  9. package/dist/cjs/composable-editor/utils/sendDurationAnalytics.js +2 -2
  10. package/dist/cjs/composable-editor/utils/trackEditorActions.js +2 -2
  11. package/dist/cjs/create-editor/ErrorBoundary.js +6 -8
  12. package/dist/cjs/create-editor/ReactEditorView.js +2 -4
  13. package/dist/cjs/create-editor/ReactEditorViewContext.js +1 -2
  14. package/dist/cjs/create-editor/ReactEditorViewInternal.js +30 -31
  15. package/dist/cjs/create-editor/ReactEditorViewNext.js +1 -2
  16. package/dist/cjs/create-editor/WithEditorView.js +2 -3
  17. package/dist/cjs/create-editor/consts.js +3 -6
  18. package/dist/cjs/create-editor/feature-flags-from-props.js +2 -2
  19. package/dist/cjs/create-editor/messages.js +2 -3
  20. package/dist/cjs/editor.js +1 -2
  21. package/dist/cjs/extensibility.js +3 -5
  22. package/dist/cjs/i18n/cs.js +2 -3
  23. package/dist/cjs/i18n/da.js +2 -3
  24. package/dist/cjs/i18n/de.js +2 -3
  25. package/dist/cjs/i18n/en.js +2 -3
  26. package/dist/cjs/i18n/en_GB.js +2 -3
  27. package/dist/cjs/i18n/en_ZZ.js +2 -3
  28. package/dist/cjs/i18n/es.js +2 -3
  29. package/dist/cjs/i18n/et.js +2 -3
  30. package/dist/cjs/i18n/fi.js +2 -3
  31. package/dist/cjs/i18n/fr.js +2 -3
  32. package/dist/cjs/i18n/hu.js +2 -3
  33. package/dist/cjs/i18n/is.js +2 -3
  34. package/dist/cjs/i18n/it.js +2 -3
  35. package/dist/cjs/i18n/ja.js +2 -3
  36. package/dist/cjs/i18n/ko.js +2 -3
  37. package/dist/cjs/i18n/languages.js +2 -3
  38. package/dist/cjs/i18n/nb.js +2 -3
  39. package/dist/cjs/i18n/nl.js +2 -3
  40. package/dist/cjs/i18n/pl.js +2 -3
  41. package/dist/cjs/i18n/pt_BR.js +2 -3
  42. package/dist/cjs/i18n/pt_PT.js +2 -3
  43. package/dist/cjs/i18n/ro.js +2 -3
  44. package/dist/cjs/i18n/ru.js +2 -3
  45. package/dist/cjs/i18n/sk.js +2 -3
  46. package/dist/cjs/i18n/sv.js +2 -3
  47. package/dist/cjs/i18n/th.js +2 -3
  48. package/dist/cjs/i18n/tr.js +2 -3
  49. package/dist/cjs/i18n/uk.js +2 -3
  50. package/dist/cjs/i18n/vi.js +2 -3
  51. package/dist/cjs/i18n/zh.js +2 -3
  52. package/dist/cjs/i18n/zh_TW.js +2 -3
  53. package/dist/cjs/labs/CollapsedEditor/index.js +2 -3
  54. package/dist/cjs/labs/EditorWithActions/index.js +1 -2
  55. package/dist/cjs/messages.js +1 -2
  56. package/dist/cjs/nodeviews/context-adapter.js +1 -2
  57. package/dist/cjs/nodeviews/getInlineNodeViewProducer.styles.js +1 -2
  58. package/dist/cjs/plugins/alignment/commands/index.js +3 -5
  59. package/dist/cjs/plugins/alignment/index.js +2 -4
  60. package/dist/cjs/plugins/alignment/pm-plugins/main.js +1 -2
  61. package/dist/cjs/plugins/alignment/ui/ToolbarAlignment/icon-map.js +2 -3
  62. package/dist/cjs/plugins/alignment/ui/ToolbarAlignment/index.js +7 -9
  63. package/dist/cjs/plugins/alignment/ui/ToolbarAlignment/messages.js +2 -3
  64. package/dist/cjs/plugins/alignment/ui/ToolbarAlignment/styles.js +3 -6
  65. package/dist/cjs/plugins/alignment/utils/index.js +2 -3
  66. package/dist/cjs/plugins/analytics/consts.js +2 -4
  67. package/dist/cjs/plugins/analytics/index.js +2 -4
  68. package/dist/cjs/plugins/analytics/plugin-key.js +1 -2
  69. package/dist/cjs/plugins/analytics/plugin.js +6 -7
  70. package/dist/cjs/plugins/analytics/utils.js +1 -1
  71. package/dist/cjs/plugins/annotation/commands/index.js +11 -21
  72. package/dist/cjs/plugins/annotation/commands/transform.js +2 -3
  73. package/dist/cjs/plugins/annotation/index.js +1 -2
  74. package/dist/cjs/plugins/annotation/nodeviews/index.js +3 -5
  75. package/dist/cjs/plugins/annotation/pm-plugins/inline-comment.js +2 -3
  76. package/dist/cjs/plugins/annotation/pm-plugins/plugin-factory.js +2 -4
  77. package/dist/cjs/plugins/annotation/pm-plugins/reducer.js +1 -2
  78. package/dist/cjs/plugins/annotation/pm-plugins/types.js +2 -3
  79. package/dist/cjs/plugins/annotation/toolbar.js +3 -5
  80. package/dist/cjs/plugins/annotation/types.js +3 -5
  81. package/dist/cjs/plugins/annotation/ui/AnnotationViewWrapper.js +2 -3
  82. package/dist/cjs/plugins/annotation/update-provider.js +2 -3
  83. package/dist/cjs/plugins/annotation/utils.js +10 -20
  84. package/dist/cjs/plugins/avatar-group/index.js +2 -3
  85. package/dist/cjs/plugins/avatar-group/messages.js +2 -3
  86. package/dist/cjs/plugins/avatar-group/ui/AvatarGroupPluginWrapper.js +1 -2
  87. package/dist/cjs/plugins/before-primaryToolbar/index.js +1 -2
  88. package/dist/cjs/plugins/before-primaryToolbar/ui/BeforePrimaryToolbarWrapper.js +2 -3
  89. package/dist/cjs/plugins/better-type-history/index.js +1 -2
  90. package/dist/cjs/plugins/better-type-history/pm-plugins/main.js +2 -3
  91. package/dist/cjs/plugins/better-type-history/pm-plugins/plugin-key.js +1 -2
  92. package/dist/cjs/plugins/border/index.js +1 -2
  93. package/dist/cjs/plugins/breakout/constants.js +2 -3
  94. package/dist/cjs/plugins/breakout/index.js +3 -4
  95. package/dist/cjs/plugins/breakout/plugin-key.js +3 -5
  96. package/dist/cjs/plugins/breakout/ui/LayoutButton.js +1 -2
  97. package/dist/cjs/plugins/caption/index.js +1 -2
  98. package/dist/cjs/plugins/caption/nodeviews/index.js +1 -2
  99. package/dist/cjs/plugins/caption/pm-plugins/main.js +4 -5
  100. package/dist/cjs/plugins/caption/pm-plugins/plugin-key.js +1 -2
  101. package/dist/cjs/plugins/clear-marks-on-change-to-empty-document/index.js +2 -4
  102. package/dist/cjs/plugins/clipboard/index.js +1 -2
  103. package/dist/cjs/plugins/clipboard/plugin-key.js +1 -2
  104. package/dist/cjs/plugins/clipboard/pm-plugins/main.js +4 -7
  105. package/dist/cjs/plugins/code-bidi-warning/index.js +1 -2
  106. package/dist/cjs/plugins/code-bidi-warning/plugin-key.js +1 -2
  107. package/dist/cjs/plugins/code-bidi-warning/pm-plugins/main.js +2 -3
  108. package/dist/cjs/plugins/code-bidi-warning/pm-plugins/plugin-factory.js +2 -4
  109. package/dist/cjs/plugins/code-bidi-warning/pm-plugins/reducer.js +2 -3
  110. package/dist/cjs/plugins/code-block/actions.js +6 -12
  111. package/dist/cjs/plugins/code-block/ide-ux/bracket-handling.js +4 -7
  112. package/dist/cjs/plugins/code-block/ide-ux/line-handling.js +7 -13
  113. package/dist/cjs/plugins/code-block/ide-ux/paired-character-handling.js +3 -5
  114. package/dist/cjs/plugins/code-block/ide-ux/quote-handling.js +4 -7
  115. package/dist/cjs/plugins/code-block/index.js +4 -5
  116. package/dist/cjs/plugins/code-block/language-list.js +1 -2
  117. package/dist/cjs/plugins/code-block/nodeviews/code-block.js +6 -8
  118. package/dist/cjs/plugins/code-block/plugin-key.js +1 -2
  119. package/dist/cjs/plugins/code-block/pm-plugins/actions.js +2 -3
  120. package/dist/cjs/plugins/code-block/pm-plugins/codeBlockCopySelectionPlugin.js +1 -2
  121. package/dist/cjs/plugins/code-block/pm-plugins/ide-ux.js +2 -3
  122. package/dist/cjs/plugins/code-block/pm-plugins/keymaps.js +1 -2
  123. package/dist/cjs/plugins/code-block/pm-plugins/main-state.js +2 -3
  124. package/dist/cjs/plugins/code-block/pm-plugins/main.js +2 -3
  125. package/dist/cjs/plugins/code-block/refresh-browser-selection.js +2 -4
  126. package/dist/cjs/plugins/code-block/styles.js +2 -3
  127. package/dist/cjs/plugins/code-block/toolbar.js +5 -8
  128. package/dist/cjs/plugins/code-block/ui/class-names.js +2 -3
  129. package/dist/cjs/plugins/code-block/utils.js +3 -5
  130. package/dist/cjs/plugins/collab-edit/actions.js +8 -15
  131. package/dist/cjs/plugins/collab-edit/analytics.js +5 -7
  132. package/dist/cjs/plugins/collab-edit/events/handlers.js +2 -3
  133. package/dist/cjs/plugins/collab-edit/events/initialize.js +2 -3
  134. package/dist/cjs/plugins/collab-edit/events/send-transaction.js +2 -3
  135. package/dist/cjs/plugins/collab-edit/index.js +3 -4
  136. package/dist/cjs/plugins/collab-edit/native-collab-provider-plugin.js +3 -5
  137. package/dist/cjs/plugins/collab-edit/participants.js +2 -3
  138. package/dist/cjs/plugins/collab-edit/plugin-key.js +1 -2
  139. package/dist/cjs/plugins/collab-edit/plugin-state.js +4 -7
  140. package/dist/cjs/plugins/collab-edit/plugin.js +7 -8
  141. package/dist/cjs/plugins/collab-edit/styles.js +2 -3
  142. package/dist/cjs/plugins/collab-edit/ui/avatars-with-plugin-state.js +1 -2
  143. package/dist/cjs/plugins/collab-edit/ui/avatars.js +2 -3
  144. package/dist/cjs/plugins/collab-edit/ui/colored-avatar-item.js +2 -3
  145. package/dist/cjs/plugins/collab-edit/ui/index.js +1 -2
  146. package/dist/cjs/plugins/collab-edit/ui/invite-to-edit.js +2 -3
  147. package/dist/cjs/plugins/collab-edit/ui/styles.js +4 -7
  148. package/dist/cjs/plugins/collab-edit/ui/to-avatar.js +2 -3
  149. package/dist/cjs/plugins/collab-edit/utils.js +9 -15
  150. package/dist/cjs/plugins/custom-autoformat/doc.js +3 -5
  151. package/dist/cjs/plugins/custom-autoformat/index.js +2 -4
  152. package/dist/cjs/plugins/custom-autoformat/input-rules.js +2 -3
  153. package/dist/cjs/plugins/custom-autoformat/reducers.js +1 -2
  154. package/dist/cjs/plugins/custom-autoformat/utils.js +4 -7
  155. package/dist/cjs/plugins/data-consumer/index.js +1 -2
  156. package/dist/cjs/plugins/date/actions.js +9 -17
  157. package/dist/cjs/plugins/date/index.js +3 -4
  158. package/dist/cjs/plugins/date/nodeviews/messages.js +2 -3
  159. package/dist/cjs/plugins/date/pm-plugins/keymap.js +1 -2
  160. package/dist/cjs/plugins/date/pm-plugins/main.js +2 -4
  161. package/dist/cjs/plugins/date/pm-plugins/plugin-key.js +1 -2
  162. package/dist/cjs/plugins/date/styles.js +1 -2
  163. package/dist/cjs/plugins/date/ui/DatePicker/date-picker-input.js +1 -2
  164. package/dist/cjs/plugins/date/ui/DatePicker/index.js +1 -2
  165. package/dist/cjs/plugins/expand/commands.js +10 -19
  166. package/dist/cjs/plugins/expand/index.js +2 -3
  167. package/dist/cjs/plugins/expand/nodeviews/index.js +5 -6
  168. package/dist/cjs/plugins/expand/pm-plugins/main.js +3 -4
  169. package/dist/cjs/plugins/expand/pm-plugins/plugin-factory.js +4 -8
  170. package/dist/cjs/plugins/expand/reducer.js +2 -3
  171. package/dist/cjs/plugins/expand/toolbar.js +2 -3
  172. package/dist/cjs/plugins/expand/ui/ExpandIconButton.js +4 -7
  173. package/dist/cjs/plugins/expand/ui/class-names.js +2 -3
  174. package/dist/cjs/plugins/expand/ui/styles.js +2 -3
  175. package/dist/cjs/plugins/extension/actions.js +6 -11
  176. package/dist/cjs/plugins/extension/commands.js +6 -11
  177. package/dist/cjs/plugins/extension/context-panel.js +1 -2
  178. package/dist/cjs/plugins/extension/extension-api.js +3 -5
  179. package/dist/cjs/plugins/extension/index.js +6 -7
  180. package/dist/cjs/plugins/extension/nodeviews/extension.js +1 -2
  181. package/dist/cjs/plugins/extension/plugin-factory.js +3 -6
  182. package/dist/cjs/plugins/extension/plugin-key.js +1 -2
  183. package/dist/cjs/plugins/extension/pm-plugins/main.js +9 -13
  184. package/dist/cjs/plugins/extension/pm-plugins/unique-id.js +2 -3
  185. package/dist/cjs/plugins/extension/pm-plugins/utils.js +2 -3
  186. package/dist/cjs/plugins/extension/toolbar.js +2 -4
  187. package/dist/cjs/plugins/extension/ui/Extension/Extension/index.js +2 -3
  188. package/dist/cjs/plugins/extension/ui/Extension/Extension/styles.js +5 -10
  189. package/dist/cjs/plugins/extension/ui/Extension/ExtensionComponent.js +5 -6
  190. package/dist/cjs/plugins/extension/ui/Extension/ExtensionNodeWrapper.js +1 -2
  191. package/dist/cjs/plugins/extension/ui/Extension/InlineExtension/index.js +2 -3
  192. package/dist/cjs/plugins/extension/ui/Extension/InlineExtension/styles.js +2 -3
  193. package/dist/cjs/plugins/extension/ui/Extension/Lozenge.js +4 -7
  194. package/dist/cjs/plugins/extension/ui/Extension/index.js +1 -2
  195. package/dist/cjs/plugins/extension/ui/Extension/styles.js +5 -10
  196. package/dist/cjs/plugins/extension/ui/SaveIndicator/SaveIndicator.js +2 -3
  197. package/dist/cjs/plugins/extension/ui/SaveIndicator/messages.js +2 -3
  198. package/dist/cjs/plugins/extension/ui/styles.js +1 -2
  199. package/dist/cjs/plugins/extension/utils.js +7 -13
  200. package/dist/cjs/plugins/fake-text-cursor/cursor.js +6 -11
  201. package/dist/cjs/plugins/fake-text-cursor/index.js +3 -6
  202. package/dist/cjs/plugins/fake-text-cursor/styles.js +1 -2
  203. package/dist/cjs/plugins/feedback-dialog/getBrowserInfo.js +1 -2
  204. package/dist/cjs/plugins/feedback-dialog/getDeviceInfo.js +1 -2
  205. package/dist/cjs/plugins/feedback-dialog/index.js +2 -4
  206. package/dist/cjs/plugins/feedback-dialog/loadJiraCollectorDialogScript.js +1 -2
  207. package/dist/cjs/plugins/find-replace/FindReplaceToolbarButtonWithState.js +2 -3
  208. package/dist/cjs/plugins/find-replace/actions.js +2 -3
  209. package/dist/cjs/plugins/find-replace/commands-with-analytics.js +8 -15
  210. package/dist/cjs/plugins/find-replace/commands.js +11 -22
  211. package/dist/cjs/plugins/find-replace/index.js +3 -5
  212. package/dist/cjs/plugins/find-replace/keymap.js +1 -2
  213. package/dist/cjs/plugins/find-replace/plugin.js +6 -11
  214. package/dist/cjs/plugins/find-replace/reducer.js +1 -2
  215. package/dist/cjs/plugins/find-replace/styles.js +3 -6
  216. package/dist/cjs/plugins/find-replace/types.js +1 -2
  217. package/dist/cjs/plugins/find-replace/ui/Find.js +2 -4
  218. package/dist/cjs/plugins/find-replace/ui/FindReplace.js +1 -2
  219. package/dist/cjs/plugins/find-replace/ui/FindReplaceToolbarButton.js +1 -2
  220. package/dist/cjs/plugins/find-replace/ui/FindReplaceTooltipButton.js +1 -2
  221. package/dist/cjs/plugins/find-replace/ui/Replace.js +1 -2
  222. package/dist/cjs/plugins/find-replace/ui/styles.js +6 -11
  223. package/dist/cjs/plugins/find-replace/utils/batch-decorations.js +1 -2
  224. package/dist/cjs/plugins/find-replace/utils/index.js +47 -57
  225. package/dist/cjs/plugins/fragment/index.js +1 -2
  226. package/dist/cjs/plugins/fragment/plugin-key.js +1 -2
  227. package/dist/cjs/plugins/fragment/pm-plugins/fragment-consistency.js +2 -3
  228. package/dist/cjs/plugins/help-dialog/commands.js +3 -5
  229. package/dist/cjs/plugins/help-dialog/index.js +4 -5
  230. package/dist/cjs/plugins/help-dialog/plugin-key.js +1 -2
  231. package/dist/cjs/plugins/help-dialog/ui/HelpDialogLoader.js +2 -3
  232. package/dist/cjs/plugins/help-dialog/ui/index.js +4 -8
  233. package/dist/cjs/plugins/help-dialog/ui/styles.js +16 -27
  234. package/dist/cjs/plugins/history/actions.js +2 -3
  235. package/dist/cjs/plugins/history/index.js +2 -4
  236. package/dist/cjs/plugins/history/reducer.js +1 -2
  237. package/dist/cjs/plugins/history/utils.js +3 -5
  238. package/dist/cjs/plugins/indentation/commands/index.js +6 -11
  239. package/dist/cjs/plugins/indentation/index.js +1 -2
  240. package/dist/cjs/plugins/indentation/messages.js +2 -3
  241. package/dist/cjs/plugins/indentation/pm-plugins/keymap.js +1 -2
  242. package/dist/cjs/plugins/insert-block/index.js +4 -5
  243. package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-element-browser.js +2 -3
  244. package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu-legacy.js +2 -3
  245. package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu.js +2 -3
  246. package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/create-items.js +1 -2
  247. package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/dropdown-button.js +2 -3
  248. package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/index.js +11 -13
  249. package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/item.js +19 -37
  250. package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/shallow-equals.js +2 -3
  251. package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/sort-items.js +2 -3
  252. package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/styles.js +1 -2
  253. package/dist/cjs/plugins/jira-issue/index.js +2 -4
  254. package/dist/cjs/plugins/layout/actions.js +12 -24
  255. package/dist/cjs/plugins/layout/index.js +4 -5
  256. package/dist/cjs/plugins/layout/pm-plugins/main.js +3 -5
  257. package/dist/cjs/plugins/layout/pm-plugins/plugin-key.js +1 -2
  258. package/dist/cjs/plugins/layout/styles.js +2 -3
  259. package/dist/cjs/plugins/layout/toolbar-messages.js +2 -3
  260. package/dist/cjs/plugins/layout/toolbar.js +3 -5
  261. package/dist/cjs/plugins/macro/actions.js +5 -9
  262. package/dist/cjs/plugins/macro/index.js +2 -4
  263. package/dist/cjs/plugins/macro/plugin-key.js +1 -2
  264. package/dist/cjs/plugins/max-content-size/index.js +2 -4
  265. package/dist/cjs/plugins/media/commands/captions.js +3 -5
  266. package/dist/cjs/plugins/media/commands/helpers.js +8 -15
  267. package/dist/cjs/plugins/media/commands/linking.js +7 -12
  268. package/dist/cjs/plugins/media/index.js +6 -7
  269. package/dist/cjs/plugins/media/nodeviews/mediaGroup.js +5 -7
  270. package/dist/cjs/plugins/media/nodeviews/mediaInline.js +7 -13
  271. package/dist/cjs/plugins/media/nodeviews/mediaNodeUpdater.js +1 -2
  272. package/dist/cjs/plugins/media/nodeviews/mediaNodeView/index.js +2 -3
  273. package/dist/cjs/plugins/media/nodeviews/mediaNodeView/media.js +9 -13
  274. package/dist/cjs/plugins/media/nodeviews/mediaSingle.js +6 -8
  275. package/dist/cjs/plugins/media/nodeviews/messages.js +2 -3
  276. package/dist/cjs/plugins/media/nodeviews/styles.js +5 -9
  277. package/dist/cjs/plugins/media/picker-facade.js +2 -3
  278. package/dist/cjs/plugins/media/pm-plugins/alt-text/commands.js +4 -7
  279. package/dist/cjs/plugins/media/pm-plugins/alt-text/index.js +5 -9
  280. package/dist/cjs/plugins/media/pm-plugins/alt-text/messages.js +2 -3
  281. package/dist/cjs/plugins/media/pm-plugins/alt-text/reducer.js +2 -3
  282. package/dist/cjs/plugins/media/pm-plugins/alt-text/style.js +2 -3
  283. package/dist/cjs/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.js +6 -9
  284. package/dist/cjs/plugins/media/pm-plugins/keymap.js +1 -2
  285. package/dist/cjs/plugins/media/pm-plugins/linking/actions.js +2 -3
  286. package/dist/cjs/plugins/media/pm-plugins/linking/index.js +5 -9
  287. package/dist/cjs/plugins/media/pm-plugins/linking/reducer.js +2 -3
  288. package/dist/cjs/plugins/media/pm-plugins/main.js +14 -19
  289. package/dist/cjs/plugins/media/pm-plugins/media-editor-plugin-factory.js +1 -2
  290. package/dist/cjs/plugins/media/pm-plugins/mediaTaskManager.js +2 -3
  291. package/dist/cjs/plugins/media/pm-plugins/plugin-key.js +1 -2
  292. package/dist/cjs/plugins/media/styles.js +2 -3
  293. package/dist/cjs/plugins/media/toolbar/alt-text.js +5 -8
  294. package/dist/cjs/plugins/media/toolbar/commands.js +15 -23
  295. package/dist/cjs/plugins/media/toolbar/filePreviewItem.js +2 -3
  296. package/dist/cjs/plugins/media/toolbar/index.js +16 -17
  297. package/dist/cjs/plugins/media/toolbar/linking-toolbar-appearance.js +2 -3
  298. package/dist/cjs/plugins/media/toolbar/linking.js +6 -7
  299. package/dist/cjs/plugins/media/toolbar/utils.js +8 -15
  300. package/dist/cjs/plugins/media/ui/CaptionPlaceholder/index.js +2 -3
  301. package/dist/cjs/plugins/media/ui/CaptionPlaceholder/messages.js +2 -3
  302. package/dist/cjs/plugins/media/ui/ImageBorder/index.js +1 -2
  303. package/dist/cjs/plugins/media/ui/ImageBorder/messages.js +2 -3
  304. package/dist/cjs/plugins/media/ui/ImageBorder/styles.js +15 -23
  305. package/dist/cjs/plugins/media/ui/Media/DropPlaceholder.js +2 -3
  306. package/dist/cjs/plugins/media/ui/Media/drop-placeholder-messages.js +2 -3
  307. package/dist/cjs/plugins/media/ui/MediaLinkingToolbar.js +2 -4
  308. package/dist/cjs/plugins/media/ui/MediaPicker/BrowserWrapper.js +2 -3
  309. package/dist/cjs/plugins/media/ui/MediaPicker/ClipboardWrapper.js +2 -3
  310. package/dist/cjs/plugins/media/ui/MediaPicker/DropzoneWrapper.js +2 -3
  311. package/dist/cjs/plugins/media/ui/MediaPicker/PickerFacadeProvider.js +2 -3
  312. package/dist/cjs/plugins/media/ui/MediaPicker/index.js +1 -2
  313. package/dist/cjs/plugins/media/ui/PixelEntry/constants.js +1 -2
  314. package/dist/cjs/plugins/media/ui/PixelEntry/index.js +3 -5
  315. package/dist/cjs/plugins/media/ui/PixelEntry/messages.js +2 -3
  316. package/dist/cjs/plugins/media/ui/PixelEntry/styles.js +8 -16
  317. package/dist/cjs/plugins/media/ui/ResizableMediaSingle/ResizableMediaMigrationNotification.js +2 -3
  318. package/dist/cjs/plugins/media/ui/ResizableMediaSingle/ResizableMediaSingleNext.js +9 -10
  319. package/dist/cjs/plugins/media/ui/ResizableMediaSingle/index.js +4 -5
  320. package/dist/cjs/plugins/media/ui/ResizableMediaSingle/styled.js +2 -3
  321. package/dist/cjs/plugins/media/ui/ResizableMediaSingle/styles.js +1 -2
  322. package/dist/cjs/plugins/media/ui/ToolbarMedia/index.js +1 -2
  323. package/dist/cjs/plugins/media/ui/ToolbarMedia/toolbar-media-messages.js +2 -3
  324. package/dist/cjs/plugins/media/ui/media-linking-toolbar-messages.js +2 -3
  325. package/dist/cjs/plugins/media/utils/analytics.js +3 -5
  326. package/dist/cjs/plugins/media/utils/check-media-type.js +2 -3
  327. package/dist/cjs/plugins/media/utils/current-media-node.js +4 -7
  328. package/dist/cjs/plugins/media/utils/is-image.js +2 -3
  329. package/dist/cjs/plugins/media/utils/media-common.js +14 -27
  330. package/dist/cjs/plugins/media/utils/media-files.js +7 -11
  331. package/dist/cjs/plugins/media/utils/media-single.js +8 -13
  332. package/dist/cjs/plugins/mentions/analytics.js +8 -20
  333. package/dist/cjs/plugins/mentions/index.js +10 -12
  334. package/dist/cjs/plugins/mentions/messages.js +2 -3
  335. package/dist/cjs/plugins/mentions/nodeviews/mention.js +2 -3
  336. package/dist/cjs/plugins/mentions/pm-plugins/key.js +1 -2
  337. package/dist/cjs/plugins/mentions/pm-plugins/main.js +1 -2
  338. package/dist/cjs/plugins/mentions/pm-plugins/utils.js +2 -3
  339. package/dist/cjs/plugins/mentions/type-ahead/index.js +3 -5
  340. package/dist/cjs/plugins/mentions/ui/InviteItem/index.js +2 -4
  341. package/dist/cjs/plugins/mentions/ui/InviteItem/styles.js +8 -16
  342. package/dist/cjs/plugins/mentions/ui/Mention/index.js +14 -4
  343. package/dist/cjs/plugins/mentions/ui/ToolbarMention/index.js +5 -6
  344. package/dist/cjs/plugins/mentions/utils.js +5 -9
  345. package/dist/cjs/plugins/mobile-dimensions/actions.js +2 -3
  346. package/dist/cjs/plugins/mobile-dimensions/commands.js +4 -7
  347. package/dist/cjs/plugins/mobile-dimensions/index.js +1 -2
  348. package/dist/cjs/plugins/mobile-dimensions/plugin-factory.js +4 -8
  349. package/dist/cjs/plugins/mobile-dimensions/utils.js +2 -3
  350. package/dist/cjs/plugins/mobile-selection/content-in-selection.js +2 -3
  351. package/dist/cjs/plugins/mobile-selection/mobile-selection-plugin.js +4 -7
  352. package/dist/cjs/plugins/panel/actions.js +2 -4
  353. package/dist/cjs/plugins/panel/index.js +2 -3
  354. package/dist/cjs/plugins/panel/message.js +2 -3
  355. package/dist/cjs/plugins/panel/nodeviews/panel.js +4 -7
  356. package/dist/cjs/plugins/panel/pm-plugins/keymaps.js +3 -4
  357. package/dist/cjs/plugins/panel/pm-plugins/main.js +2 -3
  358. package/dist/cjs/plugins/panel/styles.js +2 -3
  359. package/dist/cjs/plugins/panel/toolbar.js +4 -7
  360. package/dist/cjs/plugins/panel/types.js +1 -2
  361. package/dist/cjs/plugins/panel/utils.js +3 -5
  362. package/dist/cjs/plugins/paste/actions.js +2 -3
  363. package/dist/cjs/plugins/paste/commands.js +6 -11
  364. package/dist/cjs/plugins/paste/handlers.js +12 -14
  365. package/dist/cjs/plugins/paste/index.js +2 -3
  366. package/dist/cjs/plugins/paste/pm-plugins/analytics.js +24 -39
  367. package/dist/cjs/plugins/paste/pm-plugins/main.js +10 -10
  368. package/dist/cjs/plugins/paste/pm-plugins/plugin-factory.js +4 -8
  369. package/dist/cjs/plugins/paste/reducer.js +2 -3
  370. package/dist/cjs/plugins/paste/util/index.js +5 -10
  371. package/dist/cjs/plugins/paste/util/tinyMCE.js +10 -15
  372. package/dist/cjs/plugins/placeholder-text/actions.js +4 -7
  373. package/dist/cjs/plugins/placeholder-text/index.js +2 -3
  374. package/dist/cjs/plugins/placeholder-text/placeholder-text-nodeview.js +2 -3
  375. package/dist/cjs/plugins/placeholder-text/plugin-key.js +1 -2
  376. package/dist/cjs/plugins/placeholder-text/selection-utils.js +2 -3
  377. package/dist/cjs/plugins/placeholder-text/styles.js +1 -2
  378. package/dist/cjs/plugins/placeholder-text/ui/PlaceholderFloatingToolbar/index.js +2 -4
  379. package/dist/cjs/plugins/rank.js +2 -3
  380. package/dist/cjs/plugins/save-on-enter/index.js +1 -2
  381. package/dist/cjs/plugins/scroll-into-view/index.js +2 -4
  382. package/dist/cjs/plugins/selection/actions.js +2 -3
  383. package/dist/cjs/plugins/selection/commands.js +6 -11
  384. package/dist/cjs/plugins/selection/gap-cursor/actions.js +8 -15
  385. package/dist/cjs/plugins/selection/gap-cursor/direction.js +1 -2
  386. package/dist/cjs/plugins/selection/gap-cursor/styles.js +2 -4
  387. package/dist/cjs/plugins/selection/gap-cursor/utils/place-gap-cursor.js +2 -3
  388. package/dist/cjs/plugins/selection/gap-cursor/utils.js +5 -9
  389. package/dist/cjs/plugins/selection/index.js +2 -4
  390. package/dist/cjs/plugins/selection/plugin-factory.js +3 -6
  391. package/dist/cjs/plugins/selection/pm-plugins/events/create-selection-between.js +2 -3
  392. package/dist/cjs/plugins/selection/pm-plugins/events/keydown.js +2 -3
  393. package/dist/cjs/plugins/selection/pm-plugins/gap-cursor-main.js +1 -2
  394. package/dist/cjs/plugins/selection/pm-plugins/gap-cursor-plugin-key.js +1 -2
  395. package/dist/cjs/plugins/selection/pm-plugins/keymap.js +1 -2
  396. package/dist/cjs/plugins/selection/pm-plugins/selection-main.js +3 -5
  397. package/dist/cjs/plugins/selection/types.js +3 -5
  398. package/dist/cjs/plugins/selection/utils.js +12 -23
  399. package/dist/cjs/plugins/status/actions.js +8 -15
  400. package/dist/cjs/plugins/status/analytics.js +4 -7
  401. package/dist/cjs/plugins/status/index.js +1 -2
  402. package/dist/cjs/plugins/status/keymap.js +1 -2
  403. package/dist/cjs/plugins/status/nodeviews/messages.js +2 -3
  404. package/dist/cjs/plugins/status/nodeviews/status.js +3 -5
  405. package/dist/cjs/plugins/status/plugin-key.js +2 -4
  406. package/dist/cjs/plugins/status/plugin.js +1 -2
  407. package/dist/cjs/plugins/status/styles.js +1 -2
  408. package/dist/cjs/plugins/status/ui/statusPicker.js +10 -14
  409. package/dist/cjs/plugins/status/utils.js +4 -7
  410. package/dist/cjs/plugins/submit-editor/index.js +3 -4
  411. package/dist/cjs/plugins/tasks-and-decisions/commands.js +8 -15
  412. package/dist/cjs/plugins/tasks-and-decisions/index.js +1 -2
  413. package/dist/cjs/plugins/tasks-and-decisions/nodeviews/decisionItem.js +2 -3
  414. package/dist/cjs/plugins/tasks-and-decisions/pm-plugins/commands.js +4 -7
  415. package/dist/cjs/plugins/tasks-and-decisions/pm-plugins/helpers.js +13 -26
  416. package/dist/cjs/plugins/tasks-and-decisions/pm-plugins/input-rules.js +1 -2
  417. package/dist/cjs/plugins/tasks-and-decisions/pm-plugins/keymaps.js +3 -6
  418. package/dist/cjs/plugins/tasks-and-decisions/pm-plugins/plugin-key.js +1 -2
  419. package/dist/cjs/plugins/tasks-and-decisions/pm-plugins/types.js +2 -3
  420. package/dist/cjs/plugins/tasks-and-decisions/styles.js +1 -2
  421. package/dist/cjs/plugins/tasks-and-decisions/ui/Decision/index.js +2 -4
  422. package/dist/cjs/plugins/tasks-and-decisions/ui/Task/index.js +2 -4
  423. package/dist/cjs/plugins/tasks-and-decisions/ui/Task/task-item-with-providers.js +1 -2
  424. package/dist/cjs/plugins/tasks-and-decisions/ui/ToolbarDecision/index.js +2 -4
  425. package/dist/cjs/plugins/tasks-and-decisions/ui/ToolbarTask/index.js +2 -4
  426. package/dist/cjs/plugins/tasks-and-decisions/utils.js +3 -5
  427. package/dist/cjs/plugins/text-color/commands/change-color.js +2 -3
  428. package/dist/cjs/plugins/text-color/commands/remove-color.js +2 -3
  429. package/dist/cjs/plugins/text-color/commands/toggle-color.js +2 -3
  430. package/dist/cjs/plugins/text-color/index.js +1 -2
  431. package/dist/cjs/plugins/text-color/pm-plugins/main.js +2 -4
  432. package/dist/cjs/plugins/text-color/ui/ToolbarTextColor/icon.js +2 -3
  433. package/dist/cjs/plugins/text-color/ui/ToolbarTextColor/index.js +12 -15
  434. package/dist/cjs/plugins/text-color/ui/ToolbarTextColor/styles.js +3 -6
  435. package/dist/cjs/plugins/text-color/utils/color.js +3 -5
  436. package/dist/cjs/plugins/text-color/utils/disabled.js +2 -3
  437. package/dist/cjs/plugins/toolbar-lists-indentation/index.js +2 -3
  438. package/dist/cjs/plugins/toolbar-lists-indentation/pm-plugins/indentation-buttons.js +3 -5
  439. package/dist/cjs/plugins/toolbar-lists-indentation/ui/onItemActivated.js +6 -7
  440. package/dist/cjs/plugins/type-ahead/api.js +3 -5
  441. package/dist/cjs/plugins/type-ahead/commands/insert-type-ahead-item.js +2 -3
  442. package/dist/cjs/plugins/type-ahead/commands/update-list-items.js +2 -3
  443. package/dist/cjs/plugins/type-ahead/commands/update-query.js +2 -3
  444. package/dist/cjs/plugins/type-ahead/commands/update-selected-index.js +2 -3
  445. package/dist/cjs/plugins/type-ahead/constants.js +6 -11
  446. package/dist/cjs/plugins/type-ahead/index.js +3 -3
  447. package/dist/cjs/plugins/type-ahead/insert-utils.js +3 -5
  448. package/dist/cjs/plugins/type-ahead/messages.js +2 -3
  449. package/dist/cjs/plugins/type-ahead/pm-plugins/actions.js +2 -3
  450. package/dist/cjs/plugins/type-ahead/pm-plugins/decorations.js +2 -3
  451. package/dist/cjs/plugins/type-ahead/pm-plugins/input-rules.js +1 -2
  452. package/dist/cjs/plugins/type-ahead/pm-plugins/key.js +1 -2
  453. package/dist/cjs/plugins/type-ahead/pm-plugins/reducer.js +2 -3
  454. package/dist/cjs/plugins/type-ahead/pm-plugins/utils.js +2 -3
  455. package/dist/cjs/plugins/type-ahead/stats-modifier.js +2 -3
  456. package/dist/cjs/plugins/type-ahead/transforms/close-type-ahead.js +2 -3
  457. package/dist/cjs/plugins/type-ahead/transforms/open-typeahead-at-cursor.js +5 -7
  458. package/dist/cjs/plugins/type-ahead/transforms/set-selection-before-query.js +2 -3
  459. package/dist/cjs/plugins/type-ahead/ui/AssistiveText.js +1 -2
  460. package/dist/cjs/plugins/type-ahead/ui/InputQuery.js +4 -5
  461. package/dist/cjs/plugins/type-ahead/ui/TypeAheadList.js +4 -5
  462. package/dist/cjs/plugins/type-ahead/ui/TypeAheadListItem.js +8 -13
  463. package/dist/cjs/plugins/type-ahead/ui/TypeAheadPopup.js +5 -6
  464. package/dist/cjs/plugins/type-ahead/ui/WrapperTypeAhead.js +1 -2
  465. package/dist/cjs/plugins/type-ahead/ui/hooks/use-item-insert.js +2 -3
  466. package/dist/cjs/plugins/type-ahead/ui/hooks/use-load-items.js +2 -3
  467. package/dist/cjs/plugins/type-ahead/ui/hooks/use-on-force-select.js +2 -3
  468. package/dist/cjs/plugins/type-ahead/utils.js +22 -32
  469. package/dist/cjs/plugins/undo-redo/attach-input-meta.js +2 -3
  470. package/dist/cjs/plugins/undo-redo/commands.js +4 -8
  471. package/dist/cjs/plugins/undo-redo/enums.js +2 -3
  472. package/dist/cjs/plugins/undo-redo/index.js +1 -2
  473. package/dist/cjs/plugins/undo-redo/messages.js +2 -3
  474. package/dist/cjs/plugins/undo-redo/pm-plugins/main.js +2 -3
  475. package/dist/cjs/plugins/undo-redo/pm-plugins/plugin-key.js +1 -2
  476. package/dist/cjs/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +2 -4
  477. package/dist/cjs/plugins/view-update-subscription/index.js +2 -4
  478. package/dist/cjs/plugins/view-update-subscription/subscribe/toolbarAndPickerUpdates.js +2 -3
  479. package/dist/cjs/plugins/view-update-subscription/subscribe/type-ahead-updates.js +2 -3
  480. package/dist/cjs/presets/context.js +5 -9
  481. package/dist/cjs/selection-api/api.js +2 -3
  482. package/dist/cjs/test-utils.js +4 -6
  483. package/dist/cjs/ui/Addon/ClickAreaBlock/index.js +2 -4
  484. package/dist/cjs/ui/Addon/ClickAreaInline/index.js +2 -4
  485. package/dist/cjs/ui/Addon/ClickAreaMobile/index.js +2 -3
  486. package/dist/cjs/ui/Addon/Dropdown/index.js +2 -3
  487. package/dist/cjs/ui/Addon/Dropdown/styles.js +1 -2
  488. package/dist/cjs/ui/Addon/DropdownItem/index.js +1 -2
  489. package/dist/cjs/ui/Addon/DropdownItem/styles.js +1 -2
  490. package/dist/cjs/ui/Addon/click-area-helper.js +2 -4
  491. package/dist/cjs/ui/Alignment/AlignmentButton/index.js +1 -2
  492. package/dist/cjs/ui/Alignment/index.js +1 -2
  493. package/dist/cjs/ui/Alignment/messages.js +2 -3
  494. package/dist/cjs/ui/Alignment/styles.js +1 -2
  495. package/dist/cjs/ui/Appearance/Chromeless.js +1 -2
  496. package/dist/cjs/ui/Appearance/Comment/Comment.js +2 -3
  497. package/dist/cjs/ui/Appearance/Comment/Toolbar.js +5 -8
  498. package/dist/cjs/ui/Appearance/FullPage/FullPage.js +2 -3
  499. package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +3 -5
  500. package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +4 -6
  501. package/dist/cjs/ui/Appearance/FullPage/MainToolbar.js +7 -14
  502. package/dist/cjs/ui/Appearance/FullPage/StyledComponents.js +8 -16
  503. package/dist/cjs/ui/AppearanceComponents/Mobile.js +4 -5
  504. package/dist/cjs/ui/ChromeCollapsed/index.js +1 -2
  505. package/dist/cjs/ui/ChromeCollapsed/messages.js +2 -3
  506. package/dist/cjs/ui/ChromeCollapsed/styles.js +1 -2
  507. package/dist/cjs/ui/CollapsedEditor/index.js +3 -4
  508. package/dist/cjs/ui/ColorPalette/Palettes/cellBackgroundColorPalette.js +1 -2
  509. package/dist/cjs/ui/ColorPalette/Palettes/paletteMessages.js +1 -2
  510. package/dist/cjs/ui/ColorPalette/index.js +1 -2
  511. package/dist/cjs/ui/ConfigPanel/ConfigPanel.js +5 -6
  512. package/dist/cjs/ui/ConfigPanel/ConfigPanelLoader.js +2 -3
  513. package/dist/cjs/ui/ConfigPanel/ErrorMessage/ErrorImage.js +1 -2
  514. package/dist/cjs/ui/ConfigPanel/ErrorMessage/index.js +1 -2
  515. package/dist/cjs/ui/ConfigPanel/FieldMessages.js +1 -2
  516. package/dist/cjs/ui/ConfigPanel/Fields/Boolean.js +1 -1
  517. package/dist/cjs/ui/ConfigPanel/Fields/ColorPicker.js +5 -10
  518. package/dist/cjs/ui/ConfigPanel/Fields/CustomSelect.js +1 -2
  519. package/dist/cjs/ui/ConfigPanel/Fields/Date.js +1 -2
  520. package/dist/cjs/ui/ConfigPanel/Fields/DateRange.js +1 -2
  521. package/dist/cjs/ui/ConfigPanel/Fields/Expand.js +3 -6
  522. package/dist/cjs/ui/ConfigPanel/Fields/Fieldset.js +1 -2
  523. package/dist/cjs/ui/ConfigPanel/Fields/SelectItem.js +2 -3
  524. package/dist/cjs/ui/ConfigPanel/Fields/TabGroup.js +1 -2
  525. package/dist/cjs/ui/ConfigPanel/Fields/common/RequiredIndicator.js +1 -2
  526. package/dist/cjs/ui/ConfigPanel/FormErrorBoundary.js +4 -6
  527. package/dist/cjs/ui/ConfigPanel/Header.js +1 -2
  528. package/dist/cjs/ui/ConfigPanel/LoadingState.js +1 -2
  529. package/dist/cjs/ui/ConfigPanel/NestedForms/RemovableField.js +1 -2
  530. package/dist/cjs/ui/ConfigPanel/index.js +1 -2
  531. package/dist/cjs/ui/ConfigPanel/messages.js +2 -3
  532. package/dist/cjs/ui/ConfigPanel/transformers.js +11 -15
  533. package/dist/cjs/ui/ConfigPanel/types.js +3 -5
  534. package/dist/cjs/ui/ConfigPanel/utils.js +7 -13
  535. package/dist/cjs/ui/ContentStyles/index.js +4 -8
  536. package/dist/cjs/ui/ContextPanel/index.js +5 -9
  537. package/dist/cjs/ui/EditorContext/index.js +2 -4
  538. package/dist/cjs/ui/ElementBrowser/InsertMenu.js +7 -8
  539. package/dist/cjs/ui/ErrorBoundary/index.js +2 -3
  540. package/dist/cjs/ui/FloatingToolbar/index.js +2 -3
  541. package/dist/cjs/ui/FloatingToolbar/styles.js +2 -3
  542. package/dist/cjs/ui/FloatingToolbar/utils.js +4 -7
  543. package/dist/cjs/ui/MediaAndEmbedsToolbar/toolbar-messages.js +2 -3
  544. package/dist/cjs/ui/PluginSlot/index.js +1 -2
  545. package/dist/cjs/ui/Toolbar/Toolbar.js +2 -3
  546. package/dist/cjs/ui/Toolbar/ToolbarInner.js +2 -3
  547. package/dist/cjs/ui/Toolbar/ToolbarWithSizeDetector.js +2 -3
  548. package/dist/cjs/ui/Toolbar/hooks.js +2 -3
  549. package/dist/cjs/ui/Toolbar/toolbar-size.js +3 -5
  550. package/dist/cjs/ui/Toolbar/toolbar-types.js +1 -2
  551. package/dist/cjs/ui/ToolbarButton/index.js +1 -2
  552. package/dist/cjs/ui/ToolbarFeedback/index.js +1 -1
  553. package/dist/cjs/ui/ToolbarFeedback/styles.js +6 -12
  554. package/dist/cjs/ui/ToolbarHelp/index.js +1 -2
  555. package/dist/cjs/ui/ToolbarHelp/messages.js +2 -3
  556. package/dist/cjs/ui/WithEditorActions/index.js +1 -2
  557. package/dist/cjs/ui/WithFlash/index.js +2 -3
  558. package/dist/cjs/ui/WithHelpTrigger/index.js +1 -2
  559. package/dist/cjs/ui/WithPluginState/index.js +1 -2
  560. package/dist/cjs/ui/styles.js +1 -2
  561. package/dist/cjs/ui/with-outer-listeners.js +1 -2
  562. package/dist/cjs/utils/commands.js +3 -5
  563. package/dist/cjs/utils/deprecation-warnings.js +1 -2
  564. package/dist/cjs/utils/document-logger.js +1 -2
  565. package/dist/cjs/utils/index.js +3 -6
  566. package/dist/cjs/utils/is-text-input.js +2 -3
  567. package/dist/cjs/utils/mark.js +21 -24
  568. package/dist/cjs/utils/node-width.js +2 -3
  569. package/dist/cjs/utils/nodes-by-localIds.js +3 -5
  570. package/dist/cjs/utils/performance/instrumented-plugin.js +2 -3
  571. package/dist/cjs/utils/performance/measure-enum.js +2 -3
  572. package/dist/cjs/utils/performance/outlier.js +2 -3
  573. package/dist/cjs/utils/performance/percentile.js +2 -3
  574. package/dist/cjs/utils/performance/plugin-performance-observer.js +2 -3
  575. package/dist/cjs/utils/performance/plugin-performance-report.js +2 -3
  576. package/dist/cjs/utils/performance/safer-transactions.js +3 -5
  577. package/dist/cjs/utils/performance/simple-measure-to-entries.js +2 -3
  578. package/dist/cjs/utils/performance/track-transactions.js +8 -15
  579. package/dist/cjs/utils/pick-by.js +1 -2
  580. package/dist/cjs/utils/prepare-extension-provider.js +1 -2
  581. package/dist/cjs/utils/selection.js +3 -5
  582. package/dist/cjs/version-wrapper.js +4 -7
  583. package/dist/es2019/plugins/media/ui/ResizableMediaSingle/ResizableMediaSingleNext.js +1 -0
  584. package/dist/es2019/plugins/mentions/analytics.js +0 -5
  585. package/dist/es2019/plugins/mentions/index.js +3 -4
  586. package/dist/es2019/plugins/mentions/ui/Mention/index.js +13 -1
  587. package/dist/es2019/plugins/mentions/ui/ToolbarMention/index.js +2 -2
  588. package/dist/es2019/plugins/type-ahead/index.js +3 -2
  589. package/dist/es2019/version-wrapper.js +1 -1
  590. package/dist/esm/actions/index.js +2 -2
  591. package/dist/esm/composable-editor/editor-internal.js +3 -3
  592. package/dist/esm/composable-editor/editor.js +4 -4
  593. package/dist/esm/composable-editor/hooks/useEditorMeasuresConstructor.js +1 -1
  594. package/dist/esm/composable-editor/hooks/useMeasureEditorMountTime.js +3 -3
  595. package/dist/esm/composable-editor/utils/editorMeasureTTICallback.js +2 -2
  596. package/dist/esm/composable-editor/utils/getProvidersFromEditorProps.js +1 -1
  597. package/dist/esm/composable-editor/utils/sendDurationAnalytics.js +2 -2
  598. package/dist/esm/composable-editor/utils/trackEditorActions.js +2 -2
  599. package/dist/esm/create-editor/ErrorBoundary.js +4 -4
  600. package/dist/esm/create-editor/ReactEditorViewInternal.js +29 -29
  601. package/dist/esm/create-editor/feature-flags-from-props.js +2 -2
  602. package/dist/esm/plugins/alignment/ui/ToolbarAlignment/index.js +5 -5
  603. package/dist/esm/plugins/analytics/plugin.js +5 -5
  604. package/dist/esm/plugins/analytics/utils.js +1 -1
  605. package/dist/esm/plugins/avatar-group/index.js +1 -1
  606. package/dist/esm/plugins/breakout/index.js +2 -2
  607. package/dist/esm/plugins/caption/pm-plugins/main.js +2 -2
  608. package/dist/esm/plugins/code-block/index.js +3 -3
  609. package/dist/esm/plugins/code-block/nodeviews/code-block.js +3 -3
  610. package/dist/esm/plugins/code-block/pm-plugins/ide-ux.js +1 -1
  611. package/dist/esm/plugins/code-block/toolbar.js +1 -1
  612. package/dist/esm/plugins/collab-edit/analytics.js +2 -2
  613. package/dist/esm/plugins/collab-edit/index.js +2 -2
  614. package/dist/esm/plugins/collab-edit/plugin.js +5 -5
  615. package/dist/esm/plugins/date/index.js +2 -2
  616. package/dist/esm/plugins/expand/index.js +1 -1
  617. package/dist/esm/plugins/expand/nodeviews/index.js +4 -4
  618. package/dist/esm/plugins/expand/pm-plugins/main.js +1 -1
  619. package/dist/esm/plugins/extension/index.js +5 -5
  620. package/dist/esm/plugins/extension/pm-plugins/main.js +4 -4
  621. package/dist/esm/plugins/extension/ui/Extension/ExtensionComponent.js +3 -3
  622. package/dist/esm/plugins/find-replace/FindReplaceToolbarButtonWithState.js +1 -1
  623. package/dist/esm/plugins/find-replace/index.js +1 -1
  624. package/dist/esm/plugins/find-replace/utils/index.js +35 -34
  625. package/dist/esm/plugins/help-dialog/index.js +3 -3
  626. package/dist/esm/plugins/insert-block/index.js +3 -3
  627. package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/index.js +9 -9
  628. package/dist/esm/plugins/layout/index.js +3 -3
  629. package/dist/esm/plugins/media/commands/captions.js +1 -1
  630. package/dist/esm/plugins/media/commands/linking.js +1 -1
  631. package/dist/esm/plugins/media/index.js +5 -5
  632. package/dist/esm/plugins/media/nodeviews/mediaGroup.js +2 -2
  633. package/dist/esm/plugins/media/nodeviews/mediaNodeView/media.js +5 -5
  634. package/dist/esm/plugins/media/nodeviews/mediaSingle.js +3 -3
  635. package/dist/esm/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.js +1 -1
  636. package/dist/esm/plugins/media/pm-plugins/main.js +4 -4
  637. package/dist/esm/plugins/media/toolbar/alt-text.js +1 -1
  638. package/dist/esm/plugins/media/toolbar/commands.js +6 -6
  639. package/dist/esm/plugins/media/toolbar/index.js +14 -14
  640. package/dist/esm/plugins/media/toolbar/linking.js +4 -4
  641. package/dist/esm/plugins/media/ui/ResizableMediaSingle/ResizableMediaSingleNext.js +7 -6
  642. package/dist/esm/plugins/media/ui/ResizableMediaSingle/index.js +2 -2
  643. package/dist/esm/plugins/media/utils/media-files.js +3 -3
  644. package/dist/esm/plugins/media/utils/media-single.js +2 -2
  645. package/dist/esm/plugins/mentions/analytics.js +0 -5
  646. package/dist/esm/plugins/mentions/index.js +6 -7
  647. package/dist/esm/plugins/mentions/ui/Mention/index.js +13 -1
  648. package/dist/esm/plugins/mentions/ui/ToolbarMention/index.js +2 -2
  649. package/dist/esm/plugins/panel/index.js +1 -1
  650. package/dist/esm/plugins/panel/pm-plugins/keymaps.js +2 -2
  651. package/dist/esm/plugins/paste/handlers.js +9 -9
  652. package/dist/esm/plugins/paste/index.js +1 -1
  653. package/dist/esm/plugins/paste/pm-plugins/analytics.js +8 -8
  654. package/dist/esm/plugins/paste/pm-plugins/main.js +10 -10
  655. package/dist/esm/plugins/paste/util/tinyMCE.js +4 -4
  656. package/dist/esm/plugins/placeholder-text/index.js +1 -1
  657. package/dist/esm/plugins/status/ui/statusPicker.js +6 -6
  658. package/dist/esm/plugins/submit-editor/index.js +2 -2
  659. package/dist/esm/plugins/text-color/ui/ToolbarTextColor/index.js +9 -9
  660. package/dist/esm/plugins/toolbar-lists-indentation/index.js +1 -1
  661. package/dist/esm/plugins/toolbar-lists-indentation/ui/onItemActivated.js +4 -4
  662. package/dist/esm/plugins/type-ahead/index.js +3 -2
  663. package/dist/esm/plugins/type-ahead/transforms/open-typeahead-at-cursor.js +2 -2
  664. package/dist/esm/plugins/type-ahead/ui/InputQuery.js +3 -3
  665. package/dist/esm/plugins/type-ahead/ui/TypeAheadList.js +3 -3
  666. package/dist/esm/plugins/type-ahead/ui/TypeAheadListItem.js +2 -2
  667. package/dist/esm/plugins/type-ahead/ui/TypeAheadPopup.js +4 -4
  668. package/dist/esm/plugins/type-ahead/utils.js +11 -11
  669. package/dist/esm/test-utils.js +1 -1
  670. package/dist/esm/ui/Appearance/Comment/Comment.js +1 -1
  671. package/dist/esm/ui/Appearance/Comment/Toolbar.js +2 -2
  672. package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +2 -2
  673. package/dist/esm/ui/AppearanceComponents/Mobile.js +2 -2
  674. package/dist/esm/ui/CollapsedEditor/index.js +1 -1
  675. package/dist/esm/ui/ConfigPanel/ConfigPanel.js +3 -3
  676. package/dist/esm/ui/ConfigPanel/Fields/Boolean.js +1 -1
  677. package/dist/esm/ui/ConfigPanel/FormErrorBoundary.js +2 -2
  678. package/dist/esm/ui/ConfigPanel/transformers.js +8 -9
  679. package/dist/esm/ui/ContextPanel/index.js +1 -1
  680. package/dist/esm/ui/ElementBrowser/InsertMenu.js +6 -6
  681. package/dist/esm/ui/ToolbarFeedback/index.js +1 -1
  682. package/dist/esm/utils/mark.js +18 -18
  683. package/dist/esm/version-wrapper.js +1 -1
  684. package/dist/types/labs/next/presets/default.d.ts +4 -0
  685. package/dist/types/plugins/mentions/analytics.d.ts +5 -5
  686. package/dist/types/plugins/mentions/index.d.ts +1 -1
  687. package/dist/types/plugins/mentions/type-ahead/index.d.ts +1 -1
  688. package/dist/types-ts4.5/labs/next/presets/default.d.ts +4 -0
  689. package/dist/types-ts4.5/plugins/mentions/analytics.d.ts +5 -5
  690. package/dist/types-ts4.5/plugins/mentions/index.d.ts +1 -1
  691. package/dist/types-ts4.5/plugins/mentions/type-ahead/index.d.ts +1 -1
  692. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 188.0.12
4
+
5
+ ### Patch Changes
6
+
7
+ - [#40788](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40788) [`30e085a3e77`](https://bitbucket.org/atlassian/atlassian-frontend/commits/30e085a3e77) - Fix type violations from upgrading lodash.
8
+
9
+ ## 188.0.11
10
+
11
+ ### Patch Changes
12
+
13
+ - [#40955](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40955) [`30dc2b1e6c9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/30dc2b1e6c9) - [ED-19746] Decoupling mentions plugin from Editor-core libraries
14
+ - Updated dependencies
15
+
3
16
  ## 188.0.9
4
17
 
5
18
  ### Patch Changes
@@ -22,7 +22,7 @@ var _action = require("../utils/action");
22
22
  var _deprecationWarnings = _interopRequireDefault(require("../utils/deprecation-warnings"));
23
23
  var _document = require("../utils/document");
24
24
  var _nodesByLocalIds = require("../utils/nodes-by-localIds");
25
- var EditorActions = /*#__PURE__*/function () {
25
+ var EditorActions = exports.default = /*#__PURE__*/function () {
26
26
  function EditorActions() {
27
27
  var _this = this;
28
28
  (0, _classCallCheck2.default)(this, EditorActions);
@@ -284,8 +284,8 @@ var EditorActions = /*#__PURE__*/function () {
284
284
  }, {
285
285
  key: "getSelectedNode",
286
286
  value: function getSelectedNode() {
287
- var _this$editorView5, _this$editorView5$sta;
288
- if ((_this$editorView5 = this.editorView) !== null && _this$editorView5 !== void 0 && (_this$editorView5$sta = _this$editorView5.state) !== null && _this$editorView5$sta !== void 0 && _this$editorView5$sta.selection) {
287
+ var _this$editorView5;
288
+ if ((_this$editorView5 = this.editorView) !== null && _this$editorView5 !== void 0 && (_this$editorView5 = _this$editorView5.state) !== null && _this$editorView5 !== void 0 && _this$editorView5.selection) {
289
289
  var _findParentNode;
290
290
  var selection = this.editorView.state.selection;
291
291
  if (selection instanceof _state.NodeSelection) {
@@ -375,5 +375,4 @@ var EditorActions = /*#__PURE__*/function () {
375
375
  }
376
376
  }]);
377
377
  return EditorActions;
378
- }();
379
- exports.default = EditorActions;
378
+ }();
@@ -27,7 +27,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
27
27
  * from the `render` method of `Editor` and share it with `EditorNext`.
28
28
  */
29
29
  function EditorInternal(_ref) {
30
- var _props$performanceTra, _props$performanceTra2, _props$performanceTra3, _props$performanceTra4;
30
+ var _props$performanceTra, _props$performanceTra2;
31
31
  var props = _ref.props,
32
32
  handleAnalyticsEvent = _ref.handleAnalyticsEvent,
33
33
  createAnalyticsEvent = _ref.createAnalyticsEvent,
@@ -45,13 +45,13 @@ function EditorInternal(_ref) {
45
45
  analyticsHandler: undefined
46
46
  });
47
47
  var featureFlags = (0, _featureFlagsFromProps.createFeatureFlagsFromProps)(props);
48
- var renderTracking = (_props$performanceTra = props.performanceTracking) === null || _props$performanceTra === void 0 ? void 0 : (_props$performanceTra2 = _props$performanceTra.renderTracking) === null || _props$performanceTra2 === void 0 ? void 0 : _props$performanceTra2.editor;
48
+ var renderTracking = (_props$performanceTra = props.performanceTracking) === null || _props$performanceTra === void 0 || (_props$performanceTra = _props$performanceTra.renderTracking) === null || _props$performanceTra === void 0 ? void 0 : _props$performanceTra.editor;
49
49
  var renderTrackingEnabled = renderTracking === null || renderTracking === void 0 ? void 0 : renderTracking.enabled;
50
50
  var useShallow = renderTracking === null || renderTracking === void 0 ? void 0 : renderTracking.useShallow;
51
51
  // ED-16320: Check for explicit disable so that by default
52
52
  // it will still be enabled as it currently is. Then we can
53
53
  // progressively opt out synthetic tenants.
54
- var isErrorTrackingExplicitlyDisabled = ((_props$performanceTra3 = props.performanceTracking) === null || _props$performanceTra3 === void 0 ? void 0 : (_props$performanceTra4 = _props$performanceTra3.errorTracking) === null || _props$performanceTra4 === void 0 ? void 0 : _props$performanceTra4.enabled) === false;
54
+ var isErrorTrackingExplicitlyDisabled = ((_props$performanceTra2 = props.performanceTracking) === null || _props$performanceTra2 === void 0 || (_props$performanceTra2 = _props$performanceTra2.errorTracking) === null || _props$performanceTra2 === void 0 ? void 0 : _props$performanceTra2.enabled) === false;
55
55
  return (0, _react2.jsx)(_react.Fragment, null, renderTrackingEnabled && (0, _react2.jsx)(_RenderTracking.RenderTracking, {
56
56
  componentProps: props,
57
57
  action: _analytics.ACTION.RE_RENDERED,
@@ -64,11 +64,11 @@ function Editor(passedProps) {
64
64
  if ((_props$featureFlags = props.featureFlags) !== null && _props$featureFlags !== void 0 && _props$featureFlags.ufo) {
65
65
  var _experienceStore$curr;
66
66
  experienceStore.current = _ufo.ExperienceStore.getInstance(instance.view);
67
- (_experienceStore$curr = experienceStore.current) === null || _experienceStore$curr === void 0 ? void 0 : _experienceStore$curr.start(_ufo.EditorExperience.loadEditor, startTime.current);
67
+ (_experienceStore$curr = experienceStore.current) === null || _experienceStore$curr === void 0 || _experienceStore$curr.start(_ufo.EditorExperience.loadEditor, startTime.current);
68
68
  }
69
69
  if (props.onEditorReady) {
70
- var _props$performanceTra, _props$performanceTra2, _props$featureFlags2;
71
- var measureEditorReady = (props === null || props === void 0 ? void 0 : (_props$performanceTra = props.performanceTracking) === null || _props$performanceTra === void 0 ? void 0 : (_props$performanceTra2 = _props$performanceTra.onEditorReadyCallbackTracking) === null || _props$performanceTra2 === void 0 ? void 0 : _props$performanceTra2.enabled) || ((_props$featureFlags2 = props.featureFlags) === null || _props$featureFlags2 === void 0 ? void 0 : _props$featureFlags2.ufo);
70
+ var _props$performanceTra, _props$featureFlags2;
71
+ var measureEditorReady = (props === null || props === void 0 || (_props$performanceTra = props.performanceTracking) === null || _props$performanceTra === void 0 || (_props$performanceTra = _props$performanceTra.onEditorReadyCallbackTracking) === null || _props$performanceTra === void 0 ? void 0 : _props$performanceTra.enabled) || ((_props$featureFlags2 = props.featureFlags) === null || _props$featureFlags2 === void 0 ? void 0 : _props$featureFlags2.ufo);
72
72
  measureEditorReady && (0, _utils.startMeasure)(_measureEnum.default.ON_EDITOR_READY_CALLBACK);
73
73
  props.onEditorReady(editorActions.current);
74
74
  measureEditorReady && (0, _utils.stopMeasure)(_measureEnum.default.ON_EDITOR_READY_CALLBACK, (0, _sendDurationAnalytics.default)(_analytics.ACTION.ON_EDITOR_READY_CALLBACK, props, getExperienceStore, createAnalyticsEvent));
@@ -77,7 +77,7 @@ function Editor(passedProps) {
77
77
  var onEditorDestroyed = function onEditorDestroyed(_instance) {
78
78
  var _props$onDestroy;
79
79
  editorActions.current._privateUnregisterEditor();
80
- (_props$onDestroy = props.onDestroy) === null || _props$onDestroy === void 0 ? void 0 : _props$onDestroy.call(props);
80
+ (_props$onDestroy = props.onDestroy) === null || _props$onDestroy === void 0 || _props$onDestroy.call(props);
81
81
  };
82
82
  (0, _useMeasureEditorMountTime.default)(props, getExperienceStore, createAnalyticsEvent);
83
83
  var providerFactory = (0, _useProviderFactory.default)(props, editorActions.current, createAnalyticsEvent);
@@ -30,7 +30,7 @@ function useEditorConstructor(performanceTracking, featureFlags, getExperienceSt
30
30
  var _performanceTracking$2, _performanceTracking$3;
31
31
  (0, _utils.measureTTI)(function (tti, ttiFromInvocation, canceled, distortedDuration) {
32
32
  (0, _editorMeasureTTICallback.default)(tti, ttiFromInvocation, canceled, distortedDuration, performanceTracking, featureFlags, createAnalyticsEvent, getExperienceStore());
33
- }, performanceTracking === null || performanceTracking === void 0 ? void 0 : (_performanceTracking$2 = performanceTracking.ttiTracking) === null || _performanceTracking$2 === void 0 ? void 0 : _performanceTracking$2.ttiIdleThreshold, performanceTracking === null || performanceTracking === void 0 ? void 0 : (_performanceTracking$3 = performanceTracking.ttiTracking) === null || _performanceTracking$3 === void 0 ? void 0 : _performanceTracking$3.ttiCancelTimeout);
33
+ }, performanceTracking === null || performanceTracking === void 0 || (_performanceTracking$2 = performanceTracking.ttiTracking) === null || _performanceTracking$2 === void 0 ? void 0 : _performanceTracking$2.ttiIdleThreshold, performanceTracking === null || performanceTracking === void 0 || (_performanceTracking$3 = performanceTracking.ttiTracking) === null || _performanceTracking$3 === void 0 ? void 0 : _performanceTracking$3.ttiCancelTimeout);
34
34
  }
35
35
  });
36
36
  }
@@ -27,12 +27,12 @@ function useMeasureEditorMountTime(props, getExperienceStore, createAnalyticsEve
27
27
  (0, _react.useEffect)(function () {
28
28
  (0, _utils.stopMeasure)(_measureEnum.default.EDITOR_MOUNTED, (0, _sendDurationAnalytics.default)(_analytics.ACTION.EDITOR_MOUNTED, props, getExperienceStore, createAnalyticsEvent));
29
29
  return function () {
30
- var _props$performanceTra, _props$performanceTra2, _props$featureFlags;
30
+ var _props$performanceTra, _props$featureFlags;
31
31
  (0, _utils.clearMeasure)(_measureEnum.default.EDITOR_MOUNTED);
32
- (props === null || props === void 0 ? void 0 : (_props$performanceTra = props.performanceTracking) === null || _props$performanceTra === void 0 ? void 0 : (_props$performanceTra2 = _props$performanceTra.onEditorReadyCallbackTracking) === null || _props$performanceTra2 === void 0 ? void 0 : _props$performanceTra2.enabled) && (0, _utils.clearMeasure)(_measureEnum.default.ON_EDITOR_READY_CALLBACK);
32
+ (props === null || props === void 0 || (_props$performanceTra = props.performanceTracking) === null || _props$performanceTra === void 0 || (_props$performanceTra = _props$performanceTra.onEditorReadyCallbackTracking) === null || _props$performanceTra === void 0 ? void 0 : _props$performanceTra.enabled) && (0, _utils.clearMeasure)(_measureEnum.default.ON_EDITOR_READY_CALLBACK);
33
33
  if ((_props$featureFlags = props.featureFlags) !== null && _props$featureFlags !== void 0 && _props$featureFlags.ufo) {
34
34
  var _getExperienceStore;
35
- (_getExperienceStore = getExperienceStore()) === null || _getExperienceStore === void 0 ? void 0 : _getExperienceStore.abortAll({
35
+ (_getExperienceStore = getExperienceStore()) === null || _getExperienceStore === void 0 || _getExperienceStore.abortAll({
36
36
  reason: 'editor component unmounted'
37
37
  });
38
38
  }
@@ -39,7 +39,7 @@ function editorMeasureTTICallback(tti, ttiFromInvocation, canceled, distortedDur
39
39
  (0, _analytics.fireAnalyticsEvent)(createAnalyticsEvent)(ttiEvent);
40
40
  }
41
41
  if (featureFlags !== null && featureFlags !== void 0 && featureFlags.ufo) {
42
- experienceStore === null || experienceStore === void 0 ? void 0 : experienceStore.mark(_ufo.EditorExperience.loadEditor, _analytics.ACTION.EDITOR_TTI, tti);
43
- experienceStore === null || experienceStore === void 0 ? void 0 : experienceStore.success(_ufo.EditorExperience.loadEditor);
42
+ experienceStore === null || experienceStore === void 0 || experienceStore.mark(_ufo.EditorExperience.loadEditor, _analytics.ACTION.EDITOR_TTI, tti);
43
+ experienceStore === null || experienceStore === void 0 || experienceStore.success(_ufo.EditorExperience.loadEditor);
44
44
  }
45
45
  }
@@ -22,7 +22,7 @@ function getProvidersFromEditorProps(_ref) {
22
22
  collabEdit = _ref.collabEdit,
23
23
  collabEditProvider = _ref.collabEditProvider,
24
24
  presenceProvider = _ref.presenceProvider;
25
- var cardProvider = (linking === null || linking === void 0 ? void 0 : (_linking$smartLinks = linking.smartLinks) === null || _linking$smartLinks === void 0 ? void 0 : _linking$smartLinks.provider) || smartLinks && smartLinks.provider || UNSAFE_cards && UNSAFE_cards.provider;
25
+ var cardProvider = (linking === null || linking === void 0 || (_linking$smartLinks = linking.smartLinks) === null || _linking$smartLinks === void 0 ? void 0 : _linking$smartLinks.provider) || smartLinks && smartLinks.provider || UNSAFE_cards && UNSAFE_cards.provider;
26
26
  return {
27
27
  mediaProvider: media === null || media === void 0 ? void 0 : media.provider,
28
28
  emojiProvider: emojiProvider,
@@ -48,8 +48,8 @@ function sendDurationAnalytics(action, props, getExperienceStore, createAnalytic
48
48
  }
49
49
  if ((_props$featureFlags = props.featureFlags) !== null && _props$featureFlags !== void 0 && _props$featureFlags.ufo) {
50
50
  experienceStore = getExperienceStore();
51
- experienceStore === null || experienceStore === void 0 ? void 0 : experienceStore.mark(_ufo.EditorExperience.loadEditor, action, startTime + duration);
52
- experienceStore === null || experienceStore === void 0 ? void 0 : experienceStore.addMetadata(_ufo.EditorExperience.loadEditor, {
51
+ experienceStore === null || experienceStore === void 0 || experienceStore.mark(_ufo.EditorExperience.loadEditor, action, startTime + duration);
52
+ experienceStore === null || experienceStore === void 0 || experienceStore.addMetadata(_ufo.EditorExperience.loadEditor, {
53
53
  objectId: objectId
54
54
  });
55
55
  }
@@ -46,7 +46,7 @@ function trackEditorActions(editorActions, performanceTracking, handleAnalyticsE
46
46
  return getValue();
47
47
  case 3:
48
48
  value = _context.sent;
49
- if (samplingCounters.success === ((_performanceTracking$2 = performanceTracking === null || performanceTracking === void 0 ? void 0 : (_performanceTracking$3 = performanceTracking.contentRetrievalTracking) === null || _performanceTracking$3 === void 0 ? void 0 : _performanceTracking$3.successSamplingRate) !== null && _performanceTracking$2 !== void 0 ? _performanceTracking$2 : DEFAULT_SAMPLING_RATE)) {
49
+ if (samplingCounters.success === ((_performanceTracking$2 = performanceTracking === null || performanceTracking === void 0 || (_performanceTracking$3 = performanceTracking.contentRetrievalTracking) === null || _performanceTracking$3 === void 0 ? void 0 : _performanceTracking$3.successSamplingRate) !== null && _performanceTracking$2 !== void 0 ? _performanceTracking$2 : DEFAULT_SAMPLING_RATE)) {
50
50
  handleAnalyticsEvent({
51
51
  payload: {
52
52
  action: _analytics.ACTION.EDITOR_CONTENT_RETRIEVAL_PERFORMED,
@@ -64,7 +64,7 @@ function trackEditorActions(editorActions, performanceTracking, handleAnalyticsE
64
64
  case 9:
65
65
  _context.prev = 9;
66
66
  _context.t0 = _context["catch"](0);
67
- if (samplingCounters.failure === ((_performanceTracking$4 = performanceTracking === null || performanceTracking === void 0 ? void 0 : (_performanceTracking$5 = performanceTracking.contentRetrievalTracking) === null || _performanceTracking$5 === void 0 ? void 0 : _performanceTracking$5.failureSamplingRate) !== null && _performanceTracking$4 !== void 0 ? _performanceTracking$4 : DEFAULT_SAMPLING_RATE)) {
67
+ if (samplingCounters.failure === ((_performanceTracking$4 = performanceTracking === null || performanceTracking === void 0 || (_performanceTracking$5 = performanceTracking.contentRetrievalTracking) === null || _performanceTracking$5 === void 0 ? void 0 : _performanceTracking$5.failureSamplingRate) !== null && _performanceTracking$4 !== void 0 ? _performanceTracking$4 : DEFAULT_SAMPLING_RATE)) {
68
68
  handleAnalyticsEvent({
69
69
  payload: {
70
70
  action: _analytics.ACTION.EDITOR_CONTENT_RETRIEVAL_PERFORMED,
@@ -28,7 +28,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
28
28
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
29
29
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
30
30
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
31
- var ErrorBoundaryWithEditorView = /*#__PURE__*/function (_React$Component) {
31
+ var ErrorBoundaryWithEditorView = exports.ErrorBoundaryWithEditorView = /*#__PURE__*/function (_React$Component) {
32
32
  (0, _inherits2.default)(ErrorBoundaryWithEditorView, _React$Component);
33
33
  var _super = _createSuper(ErrorBoundaryWithEditorView);
34
34
  function ErrorBoundaryWithEditorView(props) {
@@ -41,7 +41,7 @@ var ErrorBoundaryWithEditorView = /*#__PURE__*/function (_React$Component) {
41
41
  });
42
42
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "sendErrorData", /*#__PURE__*/function () {
43
43
  var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(analyticsErrorPayload) {
44
- var _window, _window$navigator;
44
+ var _window;
45
45
  var product, error, errorInfo, errorStack, sharedId, browserInfo, attributes, _this$experienceStore;
46
46
  return _regenerator.default.wrap(function _callee$(_context) {
47
47
  while (1) switch (_context.prev = _context.next) {
@@ -52,7 +52,7 @@ var ErrorBoundaryWithEditorView = /*#__PURE__*/function (_React$Component) {
52
52
  product = _context.sent;
53
53
  error = analyticsErrorPayload.error, errorInfo = analyticsErrorPayload.errorInfo, errorStack = analyticsErrorPayload.errorStack;
54
54
  sharedId = (0, _uuid.default)();
55
- browserInfo = ((_window = window) === null || _window === void 0 ? void 0 : (_window$navigator = _window.navigator) === null || _window$navigator === void 0 ? void 0 : _window$navigator.userAgent) || 'unknown';
55
+ browserInfo = ((_window = window) === null || _window === void 0 || (_window = _window.navigator) === null || _window === void 0 ? void 0 : _window.userAgent) || 'unknown';
56
56
  attributes = {
57
57
  product: product,
58
58
  browserInfo: browserInfo,
@@ -83,7 +83,7 @@ var ErrorBoundaryWithEditorView = /*#__PURE__*/function (_React$Component) {
83
83
  }
84
84
  });
85
85
  if (_this.featureFlags.ufo && _this.props.editorView) {
86
- (_this$experienceStore = _this.experienceStore) === null || _this$experienceStore === void 0 ? void 0 : _this$experienceStore.failAll(_objectSpread(_objectSpread({}, _this.getExperienceMetadata(attributes)), {}, {
86
+ (_this$experienceStore = _this.experienceStore) === null || _this$experienceStore === void 0 || _this$experienceStore.failAll(_objectSpread(_objectSpread({}, _this.getExperienceMetadata(attributes)), {}, {
87
87
  errorStack: errorStack
88
88
  }));
89
89
  }
@@ -130,7 +130,7 @@ var ErrorBoundaryWithEditorView = /*#__PURE__*/function (_React$Component) {
130
130
  })));
131
131
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "fireAnalyticsEvent", function (event) {
132
132
  var _this$props$createAna, _this$props;
133
- (_this$props$createAna = (_this$props = _this.props).createAnalyticsEvent) === null || _this$props$createAna === void 0 ? void 0 : _this$props$createAna.call(_this$props, event).fire(_consts.editorAnalyticsChannel);
133
+ (_this$props$createAna = (_this$props = _this.props).createAnalyticsEvent) === null || _this$props$createAna === void 0 || _this$props$createAna.call(_this$props, event).fire(_consts.editorAnalyticsChannel);
134
134
  });
135
135
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "getExperienceMetadata", function (attributes) {
136
136
  var _attributes$browserEx;
@@ -213,10 +213,8 @@ var ErrorBoundaryWithEditorView = /*#__PURE__*/function (_React$Component) {
213
213
  }]);
214
214
  return ErrorBoundaryWithEditorView;
215
215
  }(_react.default.Component);
216
- exports.ErrorBoundaryWithEditorView = ErrorBoundaryWithEditorView;
217
216
  (0, _defineProperty2.default)(ErrorBoundaryWithEditorView, "defaultProps", {
218
217
  rethrow: true,
219
218
  errorTracking: true
220
219
  });
221
- var _default = (0, _WithEditorView.WithEditorView)(ErrorBoundaryWithEditorView);
222
- exports.default = _default;
220
+ var _default = exports.default = (0, _WithEditorView.WithEditorView)(ErrorBoundaryWithEditorView);
@@ -14,7 +14,7 @@ var _ReactEditorViewInternal = require("./ReactEditorViewInternal");
14
14
  var _reactIntlNext = require("react-intl-next");
15
15
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
16
16
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
17
- var ReactEditorView = /*#__PURE__*/function (_BaseReactEditorView) {
17
+ var ReactEditorView = exports.ReactEditorView = /*#__PURE__*/function (_BaseReactEditorView) {
18
18
  (0, _inherits2.default)(ReactEditorView, _BaseReactEditorView);
19
19
  var _super = _createSuper(ReactEditorView);
20
20
  function ReactEditorView() {
@@ -23,6 +23,4 @@ var ReactEditorView = /*#__PURE__*/function (_BaseReactEditorView) {
23
23
  }
24
24
  return (0, _createClass2.default)(ReactEditorView);
25
25
  }(_ReactEditorViewInternal.ReactEditorView);
26
- exports.ReactEditorView = ReactEditorView;
27
- var _default = (0, _reactIntlNext.injectIntl)(ReactEditorView);
28
- exports.default = _default;
26
+ var _default = exports.default = (0, _reactIntlNext.injectIntl)(ReactEditorView);
@@ -5,5 +5,4 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var _uiReact = require("@atlaskit/editor-common/ui-react");
8
- var _default = _uiReact.ReactEditorViewContext;
9
- exports.default = _default;
8
+ var _default = exports.default = _uiReact.ReactEditorViewContext;
@@ -82,11 +82,11 @@ function handleEditorFocus(view) {
82
82
  view.focus();
83
83
  }, 0);
84
84
  }
85
- var ReactEditorView = /*#__PURE__*/function (_React$Component) {
85
+ var ReactEditorView = exports.ReactEditorView = /*#__PURE__*/function (_React$Component) {
86
86
  (0, _inherits2.default)(ReactEditorView, _React$Component);
87
87
  var _super = _createSuper(ReactEditorView);
88
88
  function ReactEditorView(props, context) {
89
- var _props$setEditorApi, _props$editorProps, _props$editorProps$pe, _props$editorProps$pe2;
89
+ var _props$setEditorApi, _props$editorProps;
90
90
  var _this;
91
91
  (0, _classCallCheck2.default)(this, ReactEditorView);
92
92
  _this = _super.call(this, props, context);
@@ -139,7 +139,7 @@ var ReactEditorView = /*#__PURE__*/function (_React$Component) {
139
139
  selectionAtStart: !shouldScrollToBottom
140
140
  });
141
141
  _this.view.updateState(_this.editorState);
142
- (_this$props$editorPro = (_this$props$editorPro2 = _this.props.editorProps).onChange) === null || _this$props$editorPro === void 0 ? void 0 : _this$props$editorPro.call(_this$props$editorPro2, _this.view, {
142
+ (_this$props$editorPro = (_this$props$editorPro2 = _this.props.editorProps).onChange) === null || _this$props$editorPro === void 0 || _this$props$editorPro.call(_this$props$editorPro2, _this.view, {
143
143
  source: 'local'
144
144
  });
145
145
  });
@@ -270,7 +270,7 @@ var ReactEditorView = /*#__PURE__*/function (_React$Component) {
270
270
  startMeasure(_trackTransactions.EVENT_NAME_DISPATCH_TRANSACTION);
271
271
  if (_this.transactionTracker.shouldTrackTransaction(_this.transactionTracking)) {
272
272
  var _this$experienceStore;
273
- (_this$experienceStore = _this.experienceStore) === null || _this$experienceStore === void 0 ? void 0 : _this$experienceStore.start(_ufo.EditorExperience.interaction);
273
+ (_this$experienceStore = _this.experienceStore) === null || _this$experienceStore === void 0 || _this$experienceStore.start(_ufo.EditorExperience.interaction);
274
274
  }
275
275
  var nodes = (0, _nodes.findChangedNodesFromTransaction)(unsafeTransaction);
276
276
  var changedNodesValid = (0, _nodes.validateNodes)(nodes);
@@ -289,7 +289,7 @@ var ReactEditorView = /*#__PURE__*/function (_React$Component) {
289
289
  transactions = _this$view$state$appl.transactions;
290
290
  stopMeasure(_trackTransactions.EVENT_NAME_STATE_APPLY, function (duration, startTime) {
291
291
  var _this$experienceStore2;
292
- (_this$experienceStore2 = _this.experienceStore) === null || _this$experienceStore2 === void 0 ? void 0 : _this$experienceStore2.mark(_ufo.EditorExperience.interaction, 'stateApply', startTime + duration);
292
+ (_this$experienceStore2 = _this.experienceStore) === null || _this$experienceStore2 === void 0 || _this$experienceStore2.mark(_ufo.EditorExperience.interaction, 'stateApply', startTime + duration);
293
293
  });
294
294
  _this.trackValidTransactions();
295
295
  if (editorState === oldEditorState) {
@@ -299,7 +299,7 @@ var ReactEditorView = /*#__PURE__*/function (_React$Component) {
299
299
  _this.view.updateState(editorState);
300
300
  stopMeasure(_trackTransactions.EVENT_NAME_UPDATE_STATE, function (duration, startTime) {
301
301
  var _this$experienceStore3;
302
- (_this$experienceStore3 = _this.experienceStore) === null || _this$experienceStore3 === void 0 ? void 0 : _this$experienceStore3.mark(_ufo.EditorExperience.interaction, 'viewUpdateState', startTime + duration);
302
+ (_this$experienceStore3 = _this.experienceStore) === null || _this$experienceStore3 === void 0 || _this$experienceStore3.mark(_ufo.EditorExperience.interaction, 'viewUpdateState', startTime + duration);
303
303
  });
304
304
  _this.pluginInjectionAPI.onEditorViewUpdated({
305
305
  newEditorState: editorState,
@@ -314,7 +314,7 @@ var ReactEditorView = /*#__PURE__*/function (_React$Component) {
314
314
  });
315
315
  stopMeasure(_trackTransactions.EVENT_NAME_VIEW_STATE_UPDATED, function (duration, startTime) {
316
316
  var _this$experienceStore4;
317
- (_this$experienceStore4 = _this.experienceStore) === null || _this$experienceStore4 === void 0 ? void 0 : _this$experienceStore4.mark(_ufo.EditorExperience.interaction, 'onEditorViewStateUpdated', startTime + duration);
317
+ (_this$experienceStore4 = _this.experienceStore) === null || _this$experienceStore4 === void 0 || _this$experienceStore4.mark(_ufo.EditorExperience.interaction, 'onEditorViewStateUpdated', startTime + duration);
318
318
  });
319
319
  if (_this.props.editorProps.onChange && transaction.docChanged) {
320
320
  var source = transaction.getMeta('isRemote') ? 'remote' : 'local';
@@ -323,9 +323,9 @@ var ReactEditorView = /*#__PURE__*/function (_React$Component) {
323
323
  source: source
324
324
  });
325
325
  stopMeasure(_trackTransactions.EVENT_NAME_ON_CHANGE, function (duration, startTime) {
326
- var _this$experienceStore5, _this$props$editorPro3, _this$props$editorPro4;
327
- (_this$experienceStore5 = _this.experienceStore) === null || _this$experienceStore5 === void 0 ? void 0 : _this$experienceStore5.mark(_ufo.EditorExperience.interaction, 'onChange', startTime + duration);
328
- if (((_this$props$editorPro3 = _this.props.editorProps.performanceTracking) === null || _this$props$editorPro3 === void 0 ? void 0 : (_this$props$editorPro4 = _this$props$editorPro3.onChangeCallbackTracking) === null || _this$props$editorPro4 === void 0 ? void 0 : _this$props$editorPro4.enabled) !== true) {
326
+ var _this$experienceStore5, _this$props$editorPro3;
327
+ (_this$experienceStore5 = _this.experienceStore) === null || _this$experienceStore5 === void 0 || _this$experienceStore5.mark(_ufo.EditorExperience.interaction, 'onChange', startTime + duration);
328
+ if (((_this$props$editorPro3 = _this.props.editorProps.performanceTracking) === null || _this$props$editorPro3 === void 0 || (_this$props$editorPro3 = _this$props$editorPro3.onChangeCallbackTracking) === null || _this$props$editorPro3 === void 0 ? void 0 : _this$props$editorPro3.enabled) !== true) {
329
329
  return;
330
330
  }
331
331
  _this.dispatchAnalyticsEvent({
@@ -342,8 +342,8 @@ var ReactEditorView = /*#__PURE__*/function (_React$Component) {
342
342
  _this.editorState = editorState;
343
343
  stopMeasure(_trackTransactions.EVENT_NAME_DISPATCH_TRANSACTION, function (duration, startTime) {
344
344
  var _this$experienceStore6, _this$experienceStore7;
345
- (_this$experienceStore6 = _this.experienceStore) === null || _this$experienceStore6 === void 0 ? void 0 : _this$experienceStore6.mark(_ufo.EditorExperience.interaction, 'dispatchTransaction', startTime + duration);
346
- (_this$experienceStore7 = _this.experienceStore) === null || _this$experienceStore7 === void 0 ? void 0 : _this$experienceStore7.success(_ufo.EditorExperience.interaction);
345
+ (_this$experienceStore6 = _this.experienceStore) === null || _this$experienceStore6 === void 0 || _this$experienceStore6.mark(_ufo.EditorExperience.interaction, 'dispatchTransaction', startTime + duration);
346
+ (_this$experienceStore7 = _this.experienceStore) === null || _this$experienceStore7 === void 0 || _this$experienceStore7.success(_ufo.EditorExperience.interaction);
347
347
  });
348
348
  } else {
349
349
  var _this$experienceStore8;
@@ -365,7 +365,7 @@ var ReactEditorView = /*#__PURE__*/function (_React$Component) {
365
365
  }
366
366
  });
367
367
  }
368
- (_this$experienceStore8 = _this.experienceStore) === null || _this$experienceStore8 === void 0 ? void 0 : _this$experienceStore8.fail(_ufo.EditorExperience.interaction, {
368
+ (_this$experienceStore8 = _this.experienceStore) === null || _this$experienceStore8 === void 0 || _this$experienceStore8.fail(_ufo.EditorExperience.interaction, {
369
369
  reason: 'invalid transaction',
370
370
  invalidNodes: invalidNodes.toString()
371
371
  });
@@ -393,11 +393,11 @@ var ReactEditorView = /*#__PURE__*/function (_React$Component) {
393
393
  });
394
394
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "createEditorView", function (node) {
395
395
  (0, _utils.measureRender)(_measureEnum.default.PROSEMIRROR_RENDERED, function (_ref3) {
396
- var _this$props$editorPro5, _this$props$editorPro6, _proseMirrorRenderedT, _proseMirrorRenderedT2;
396
+ var _this$props$editorPro4, _proseMirrorRenderedT, _proseMirrorRenderedT2;
397
397
  var duration = _ref3.duration,
398
398
  startTime = _ref3.startTime,
399
399
  distortedDuration = _ref3.distortedDuration;
400
- var proseMirrorRenderedTracking = (_this$props$editorPro5 = _this.props.editorProps) === null || _this$props$editorPro5 === void 0 ? void 0 : (_this$props$editorPro6 = _this$props$editorPro5.performanceTracking) === null || _this$props$editorPro6 === void 0 ? void 0 : _this$props$editorPro6.proseMirrorRenderedTracking;
400
+ var proseMirrorRenderedTracking = (_this$props$editorPro4 = _this.props.editorProps) === null || _this$props$editorPro4 === void 0 || (_this$props$editorPro4 = _this$props$editorPro4.performanceTracking) === null || _this$props$editorPro4 === void 0 ? void 0 : _this$props$editorPro4.proseMirrorRenderedTracking;
401
401
  var forceSeverityTracking = typeof proseMirrorRenderedTracking === 'undefined' && (0, _utils.shouldForceTracking)();
402
402
  _this.proseMirrorRenderedSeverity = !!forceSeverityTracking || proseMirrorRenderedTracking !== null && proseMirrorRenderedTracking !== void 0 && proseMirrorRenderedTracking.trackSeverity ? (0, _utils.getAnalyticsEventSeverity)(duration, (_proseMirrorRenderedT = proseMirrorRenderedTracking === null || proseMirrorRenderedTracking === void 0 ? void 0 : proseMirrorRenderedTracking.severityNormalThreshold) !== null && _proseMirrorRenderedT !== void 0 ? _proseMirrorRenderedT : _consts.PROSEMIRROR_RENDERED_NORMAL_SEVERITY_THRESHOLD, (_proseMirrorRenderedT2 = proseMirrorRenderedTracking === null || proseMirrorRenderedTracking === void 0 ? void 0 : proseMirrorRenderedTracking.severityDegradedThreshold) !== null && _proseMirrorRenderedT2 !== void 0 ? _proseMirrorRenderedT2 : _consts.PROSEMIRROR_RENDERED_DEGRADED_SEVERITY_THRESHOLD) : undefined;
403
403
  if (_this.view) {
@@ -421,9 +421,9 @@ var ReactEditorView = /*#__PURE__*/function (_React$Component) {
421
421
  });
422
422
  if (!distortedDuration) {
423
423
  var _this$experienceStore9;
424
- (_this$experienceStore9 = _this.experienceStore) === null || _this$experienceStore9 === void 0 ? void 0 : _this$experienceStore9.mark(_ufo.EditorExperience.loadEditor, _analytics.ACTION.PROSEMIRROR_RENDERED, startTime + duration);
424
+ (_this$experienceStore9 = _this.experienceStore) === null || _this$experienceStore9 === void 0 || _this$experienceStore9.mark(_ufo.EditorExperience.loadEditor, _analytics.ACTION.PROSEMIRROR_RENDERED, startTime + duration);
425
425
  }
426
- (_this$experienceStore10 = _this.experienceStore) === null || _this$experienceStore10 === void 0 ? void 0 : _this$experienceStore10.addMetadata(_ufo.EditorExperience.loadEditor, {
426
+ (_this$experienceStore10 = _this.experienceStore) === null || _this$experienceStore10 === void 0 || _this$experienceStore10.addMetadata(_ufo.EditorExperience.loadEditor, {
427
427
  nodes: nodes,
428
428
  ttfb: ttfb
429
429
  });
@@ -460,11 +460,11 @@ var ReactEditorView = /*#__PURE__*/function (_React$Component) {
460
460
  reliabilityInterval: _ufo.RELIABILITY_INTERVAL
461
461
  });
462
462
  _this.reliabilityInterval = window.setInterval(function () {
463
- var _this$experienceStore11, _this$experienceStore12;
464
- (_this$experienceStore11 = _this.experienceStore) === null || _this$experienceStore11 === void 0 ? void 0 : (_this$experienceStore12 = _this$experienceStore11.success(_ufo.EditorExperience.editSession)) === null || _this$experienceStore12 === void 0 ? void 0 : _this$experienceStore12.finally(function () {
465
- var _this$experienceStore13, _this$experienceStore14;
466
- (_this$experienceStore13 = _this.experienceStore) === null || _this$experienceStore13 === void 0 ? void 0 : _this$experienceStore13.start(_ufo.EditorExperience.editSession);
467
- (_this$experienceStore14 = _this.experienceStore) === null || _this$experienceStore14 === void 0 ? void 0 : _this$experienceStore14.addMetadata(_ufo.EditorExperience.editSession, {
463
+ var _this$experienceStore11;
464
+ (_this$experienceStore11 = _this.experienceStore) === null || _this$experienceStore11 === void 0 || (_this$experienceStore11 = _this$experienceStore11.success(_ufo.EditorExperience.editSession)) === null || _this$experienceStore11 === void 0 || _this$experienceStore11.finally(function () {
465
+ var _this$experienceStore12, _this$experienceStore13;
466
+ (_this$experienceStore12 = _this.experienceStore) === null || _this$experienceStore12 === void 0 || _this$experienceStore12.start(_ufo.EditorExperience.editSession);
467
+ (_this$experienceStore13 = _this.experienceStore) === null || _this$experienceStore13 === void 0 || _this$experienceStore13.addMetadata(_ufo.EditorExperience.editSession, {
468
468
  reliabilityInterval: _ufo.RELIABILITY_INTERVAL
469
469
  });
470
470
  });
@@ -536,7 +536,7 @@ var ReactEditorView = /*#__PURE__*/function (_React$Component) {
536
536
  getEditorState: _this.getEditorState,
537
537
  getEditorView: _this.getEditorView
538
538
  });
539
- (_props$setEditorApi = props.setEditorApi) === null || _props$setEditorApi === void 0 ? void 0 : _props$setEditorApi.call(props, _this.pluginInjectionAPI.api());
539
+ (_props$setEditorApi = props.setEditorApi) === null || _props$setEditorApi === void 0 || _props$setEditorApi.call(props, _this.pluginInjectionAPI.api());
540
540
  _this.eventDispatcher = new _eventDispatcher.EventDispatcher();
541
541
  _this.dispatch = (0, _eventDispatcher.createDispatch)(_this.eventDispatcher);
542
542
  _this.errorReporter = (0, _createEditor.createErrorReporter)(props.editorProps.errorReporterHandler);
@@ -577,7 +577,7 @@ var ReactEditorView = /*#__PURE__*/function (_React$Component) {
577
577
  // ED-16320: Check for explicit disable so that by default
578
578
  // it will still be enabled as it currently is. Then we can
579
579
  // progressively opt out synthetic tenants.
580
- var isEditorStartedExplicitlyDisabled = ((_props$editorProps = props.editorProps) === null || _props$editorProps === void 0 ? void 0 : (_props$editorProps$pe = _props$editorProps.performanceTracking) === null || _props$editorProps$pe === void 0 ? void 0 : (_props$editorProps$pe2 = _props$editorProps$pe.startedTracking) === null || _props$editorProps$pe2 === void 0 ? void 0 : _props$editorProps$pe2.enabled) === false;
580
+ var isEditorStartedExplicitlyDisabled = ((_props$editorProps = props.editorProps) === null || _props$editorProps === void 0 || (_props$editorProps = _props$editorProps.performanceTracking) === null || _props$editorProps === void 0 || (_props$editorProps = _props$editorProps.startedTracking) === null || _props$editorProps === void 0 ? void 0 : _props$editorProps.enabled) === false;
581
581
  if (!isEditorStartedExplicitlyDisabled) {
582
582
  _this.dispatchAnalyticsEvent({
583
583
  action: _analytics.ACTION.STARTED,
@@ -594,8 +594,8 @@ var ReactEditorView = /*#__PURE__*/function (_React$Component) {
594
594
  (0, _createClass2.default)(ReactEditorView, [{
595
595
  key: "transactionTracking",
596
596
  get: function get() {
597
- var _this$props$editorPro7, _this$props$editorPro8;
598
- return (_this$props$editorPro7 = (_this$props$editorPro8 = this.props.editorProps.performanceTracking) === null || _this$props$editorPro8 === void 0 ? void 0 : _this$props$editorPro8.transactionTracking) !== null && _this$props$editorPro7 !== void 0 ? _this$props$editorPro7 : {
597
+ var _this$props$editorPro5, _this$props$editorPro6;
598
+ return (_this$props$editorPro5 = (_this$props$editorPro6 = this.props.editorProps.performanceTracking) === null || _this$props$editorPro6 === void 0 ? void 0 : _this$props$editorPro6.transactionTracking) !== null && _this$props$editorPro5 !== void 0 ? _this$props$editorPro5 : {
599
599
  enabled: false
600
600
  };
601
601
  }
@@ -614,11 +614,11 @@ var ReactEditorView = /*#__PURE__*/function (_React$Component) {
614
614
  }, {
615
615
  key: "isTransactionTrackingExplicitlyDisabled",
616
616
  value: function isTransactionTrackingExplicitlyDisabled() {
617
- var _this$props$editorPro9, _this$props$editorPro10, _this$props$editorPro11;
617
+ var _this$props$editorPro7;
618
618
  // ED-16320: Check for explicit disable so that by default
619
619
  // it will still be enabled as it currently is. Then we can
620
620
  // progressively opt out synthetic tenants.
621
- return ((_this$props$editorPro9 = this.props.editorProps) === null || _this$props$editorPro9 === void 0 ? void 0 : (_this$props$editorPro10 = _this$props$editorPro9.performanceTracking) === null || _this$props$editorPro10 === void 0 ? void 0 : (_this$props$editorPro11 = _this$props$editorPro10.transactionTracking) === null || _this$props$editorPro11 === void 0 ? void 0 : _this$props$editorPro11.enabled) === false;
621
+ return ((_this$props$editorPro7 = this.props.editorProps) === null || _this$props$editorPro7 === void 0 || (_this$props$editorPro7 = _this$props$editorPro7.performanceTracking) === null || _this$props$editorPro7 === void 0 || (_this$props$editorPro7 = _this$props$editorPro7.transactionTracking) === null || _this$props$editorPro7 === void 0 ? void 0 : _this$props$editorPro7.enabled) === false;
622
622
  }
623
623
  }, {
624
624
  key: "UNSAFE_componentWillReceiveProps",
@@ -767,8 +767,8 @@ var ReactEditorView = /*#__PURE__*/function (_React$Component) {
767
767
  }, {
768
768
  key: "render",
769
769
  value: function render() {
770
- var _this$props$editorPro12, _this$props$editorPro13;
771
- var renderTracking = (_this$props$editorPro12 = this.props.editorProps.performanceTracking) === null || _this$props$editorPro12 === void 0 ? void 0 : (_this$props$editorPro13 = _this$props$editorPro12.renderTracking) === null || _this$props$editorPro13 === void 0 ? void 0 : _this$props$editorPro13.reactEditorView;
770
+ var _this$props$editorPro8;
771
+ var renderTracking = (_this$props$editorPro8 = this.props.editorProps.performanceTracking) === null || _this$props$editorPro8 === void 0 || (_this$props$editorPro8 = _this$props$editorPro8.renderTracking) === null || _this$props$editorPro8 === void 0 ? void 0 : _this$props$editorPro8.reactEditorView;
772
772
  var renderTrackingEnabled = renderTracking === null || renderTracking === void 0 ? void 0 : renderTracking.enabled;
773
773
  var useShallow = renderTracking === null || renderTracking === void 0 ? void 0 : renderTracking.useShallow;
774
774
  return /*#__PURE__*/_react.default.createElement(_ReactEditorViewContext.default.Provider, {
@@ -795,7 +795,6 @@ var ReactEditorView = /*#__PURE__*/function (_React$Component) {
795
795
  }]);
796
796
  return ReactEditorView;
797
797
  }(_react.default.Component);
798
- exports.ReactEditorView = ReactEditorView;
799
798
  (0, _defineProperty2.default)(ReactEditorView, "contextTypes", {
800
799
  getAtlaskitAnalyticsEventHandlers: _propTypes.default.func
801
800
  });
@@ -12,5 +12,4 @@ var _reactIntlNext = require("react-intl-next");
12
12
  function ReactEditorViewEditor(props) {
13
13
  return /*#__PURE__*/_react.default.createElement(_ReactEditorViewInternal.ReactEditorView, props);
14
14
  }
15
- var _default = (0, _reactIntlNext.injectIntl)(ReactEditorViewEditor);
16
- exports.default = _default;
15
+ var _default = exports.default = (0, _reactIntlNext.injectIntl)(ReactEditorViewEditor);
@@ -8,7 +8,7 @@ exports.WithEditorView = void 0;
8
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
9
  var _react = _interopRequireDefault(require("react"));
10
10
  var _EditorContext = require("../ui/EditorContext");
11
- var WithEditorView = function WithEditorView(WrappedComponent) {
11
+ var WithEditorView = exports.WithEditorView = function WithEditorView(WrappedComponent) {
12
12
  var _WithFeatureFlags = function _WithFeatureFlags(props) {
13
13
  var _useEditorContext = (0, _EditorContext.useEditorContext)(),
14
14
  editorActions = _useEditorContext.editorActions;
@@ -17,5 +17,4 @@ var WithEditorView = function WithEditorView(WrappedComponent) {
17
17
  }));
18
18
  };
19
19
  return _WithFeatureFlags;
20
- };
21
- exports.WithEditorView = WithEditorView;
20
+ };
@@ -4,9 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.PROSEMIRROR_RENDERED_NORMAL_SEVERITY_THRESHOLD = exports.PROSEMIRROR_RENDERED_DEGRADED_SEVERITY_THRESHOLD = exports.DEFAULT_SAMPLING_RATE_VALID_TRANSACTIONS = void 0;
7
- var PROSEMIRROR_RENDERED_NORMAL_SEVERITY_THRESHOLD = 2000;
8
- exports.PROSEMIRROR_RENDERED_NORMAL_SEVERITY_THRESHOLD = PROSEMIRROR_RENDERED_NORMAL_SEVERITY_THRESHOLD;
9
- var PROSEMIRROR_RENDERED_DEGRADED_SEVERITY_THRESHOLD = 3000;
10
- exports.PROSEMIRROR_RENDERED_DEGRADED_SEVERITY_THRESHOLD = PROSEMIRROR_RENDERED_DEGRADED_SEVERITY_THRESHOLD;
11
- var DEFAULT_SAMPLING_RATE_VALID_TRANSACTIONS = 100;
12
- exports.DEFAULT_SAMPLING_RATE_VALID_TRANSACTIONS = DEFAULT_SAMPLING_RATE_VALID_TRANSACTIONS;
7
+ var PROSEMIRROR_RENDERED_NORMAL_SEVERITY_THRESHOLD = exports.PROSEMIRROR_RENDERED_NORMAL_SEVERITY_THRESHOLD = 2000;
8
+ var PROSEMIRROR_RENDERED_DEGRADED_SEVERITY_THRESHOLD = exports.PROSEMIRROR_RENDERED_DEGRADED_SEVERITY_THRESHOLD = 3000;
9
+ var DEFAULT_SAMPLING_RATE_VALID_TRANSACTIONS = exports.DEFAULT_SAMPLING_RATE_VALID_TRANSACTIONS = 100;
@@ -32,7 +32,7 @@ function getSpellCheck(featureFlags) {
32
32
  * which is used by both current and archv3 editors.
33
33
  */
34
34
  function createFeatureFlagsFromProps(props) {
35
- var _props$allowLayouts, _props$performanceTra, _props$performanceTra2, _props$allowExtension, _props$featureFlags, _props$featureFlags2, _props$featureFlags3, _props$featureFlags4, _props$featureFlags5, _props$featureFlags6, _props$featureFlags7, _props$featureFlags8, _props$featureFlags9, _props$featureFlags10, _props$featureFlags11, _props$featureFlags12, _props$featureFlags13, _props$featureFlags14, _props$featureFlags15, _props$featureFlags16, _props$featureFlags17, _props$featureFlags18, _props$collabEdit, _props$collabEdit2, _props$featureFlags19, _props$featureFlags20, _props$featureFlags21, _props$featureFlags22, _props$featureFlags23, _props$featureFlags24, _props$featureFlags25, _props$featureFlags26, _props$featureFlags27;
35
+ var _props$allowLayouts, _props$performanceTra, _props$allowExtension, _props$featureFlags, _props$featureFlags2, _props$featureFlags3, _props$featureFlags4, _props$featureFlags5, _props$featureFlags6, _props$featureFlags7, _props$featureFlags8, _props$featureFlags9, _props$featureFlags10, _props$featureFlags11, _props$featureFlags12, _props$featureFlags13, _props$featureFlags14, _props$featureFlags15, _props$featureFlags16, _props$featureFlags17, _props$featureFlags18, _props$collabEdit, _props$collabEdit2, _props$featureFlags19, _props$featureFlags20, _props$featureFlags21, _props$featureFlags22, _props$featureFlags23, _props$featureFlags24, _props$featureFlags25, _props$featureFlags26, _props$featureFlags27;
36
36
  var normalizedFeatureFlags = (0, _normalizeFeatureFlags.normalizeFeatureFlags)(props.featureFlags);
37
37
  return _objectSpread(_objectSpread({}, normalizedFeatureFlags), {}, {
38
38
  newInsertionBehaviour: props.allowNewInsertionBehaviour,
@@ -43,7 +43,7 @@ function createFeatureFlagsFromProps(props) {
43
43
  addColumnWithCustomStep: !props.allowTables || typeof props.allowTables === 'boolean' ? false : Boolean(props.allowTables.allowAddColumnWithCustomStep),
44
44
  singleLayout: (0, _typeof2.default)(props.allowLayouts) === 'object' && !!((_props$allowLayouts = props.allowLayouts) !== null && _props$allowLayouts !== void 0 && _props$allowLayouts.UNSAFE_allowSingleColumnLayout),
45
45
  undoRedoButtons: props.allowUndoRedoButtons,
46
- catchAllTracking: (_props$performanceTra = props.performanceTracking) === null || _props$performanceTra === void 0 ? void 0 : (_props$performanceTra2 = _props$performanceTra.catchAllTracking) === null || _props$performanceTra2 === void 0 ? void 0 : _props$performanceTra2.enabled,
46
+ catchAllTracking: (_props$performanceTra = props.performanceTracking) === null || _props$performanceTra === void 0 || (_props$performanceTra = _props$performanceTra.catchAllTracking) === null || _props$performanceTra === void 0 ? void 0 : _props$performanceTra.enabled,
47
47
  extendFloatingToolbar: Boolean((0, _typeof2.default)(props.allowExtension) === 'object' && ((_props$allowExtension = props.allowExtension) === null || _props$allowExtension === void 0 ? void 0 : _props$allowExtension.allowExtendFloatingToolbars)),
48
48
  showAvatarGroupAsPlugin: Boolean(typeof ((_props$featureFlags = props.featureFlags) === null || _props$featureFlags === void 0 ? void 0 : _props$featureFlags.showAvatarGroupAsPlugin) === 'boolean' ? !!((_props$featureFlags2 = props.featureFlags) !== null && _props$featureFlags2 !== void 0 && _props$featureFlags2.showAvatarGroupAsPlugin) : false),
49
49
  errorBoundaryDocStructure: Boolean(typeof ((_props$featureFlags3 = props.featureFlags) === null || _props$featureFlags3 === void 0 ? void 0 : _props$featureFlags3.useErrorBoundaryDocStructure) === 'boolean' ? !!((_props$featureFlags4 = props.featureFlags) !== null && _props$featureFlags4 !== void 0 && _props$featureFlags4.useErrorBoundaryDocStructure) : false),
@@ -5,11 +5,10 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.editorMessages = void 0;
7
7
  var _reactIntlNext = require("react-intl-next");
8
- var editorMessages = (0, _reactIntlNext.defineMessages)({
8
+ var editorMessages = exports.editorMessages = (0, _reactIntlNext.defineMessages)({
9
9
  editorAssistiveLabel: {
10
10
  id: 'fabric.editor.editorAssistiveLabel',
11
11
  defaultMessage: 'Main content area, start typing to enter text.',
12
12
  description: 'Text that is read out by screen reader when the main editor is in focus'
13
13
  }
14
- });
15
- exports.editorMessages = editorMessages;
14
+ });
@@ -28,7 +28,7 @@ var ComposableEditorWrapper = function ComposableEditorWrapper(_ref) {
28
28
  preset: preset
29
29
  }, props));
30
30
  };
31
- var Editor = /*#__PURE__*/function (_React$Component) {
31
+ var Editor = exports.default = /*#__PURE__*/function (_React$Component) {
32
32
  (0, _inherits2.default)(Editor, _React$Component);
33
33
  var _super = _createSuper(Editor);
34
34
  function Editor(props) {
@@ -48,7 +48,6 @@ var Editor = /*#__PURE__*/function (_React$Component) {
48
48
  }]);
49
49
  return Editor;
50
50
  }(_react.default.Component);
51
- exports.default = Editor;
52
51
  (0, _defineProperty2.default)(Editor, "defaultProps", {
53
52
  appearance: 'comment',
54
53
  disabled: false,
@@ -53,9 +53,7 @@ var _pluginKey = require("@atlaskit/editor-plugin-table/plugin-key");
53
53
  * @deprecated [ED-14688] - used during the table viz project and not used anymore
54
54
  * will be removed in a future version of `@atlaskit/editor-core`
55
55
  */
56
- var tablePluginKey = _pluginKey.pluginKey;
57
- exports.tablePluginKey = tablePluginKey;
58
- var EmitterEvents = {
56
+ var tablePluginKey = exports.tablePluginKey = _pluginKey.pluginKey;
57
+ var EmitterEvents = exports.EmitterEvents = {
59
58
  TABLE_DELETED: 'TABLE_DELETED'
60
- };
61
- exports.EmitterEvents = EmitterEvents;
59
+ };
@@ -12,7 +12,7 @@ exports.default = void 0;
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
14
  //Czech
15
- var _default = {
15
+ var _default = exports.default = {
16
16
  'fabric.editor.addAltText': 'Alternativní text',
17
17
  'fabric.editor.addImageBorder': 'Přidat ohraničení',
18
18
  'fabric.editor.alignCenter': 'Zarovnat na střed',
@@ -144,5 +144,4 @@ var _default = {
144
144
  'fabric.editor.warning': 'Varování',
145
145
  'fabric.editor.wrapLeft': 'Sbalit vpravo',
146
146
  'fabric.editor.wrapRight': 'Sbalit vlevo'
147
- };
148
- exports.default = _default;
147
+ };