@atlaskit/editor-core 182.0.1 → 182.0.2

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 (283) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/cjs/actions/index.js +17 -7
  3. package/dist/cjs/create-editor/ErrorBoundary.js +8 -7
  4. package/dist/cjs/create-editor/ReactEditorViewInternal.js +0 -1
  5. package/dist/cjs/editor-next/editor-internal.js +1 -1
  6. package/dist/cjs/editor-next/index.js +1 -1
  7. package/dist/cjs/editor-next/utils/sendDurationAnalytics.js +4 -3
  8. package/dist/cjs/editor-next/utils/trackEditorActions.js +4 -3
  9. package/dist/cjs/editor.js +15 -1
  10. package/dist/cjs/labs/next/full-page.js +1 -0
  11. package/dist/cjs/labs/next/internal/context/shared-config.js +5 -0
  12. package/dist/cjs/labs/next/presets/cxhtml.js +25 -0
  13. package/dist/cjs/labs/next/presets/default.js +2 -0
  14. package/dist/cjs/labs/next/presets/mobile.js +13 -0
  15. package/dist/cjs/nodeviews/getInlineNodeViewProducer.js +0 -1
  16. package/dist/cjs/plugins/alignment/ui/ToolbarAlignment/index.js +1 -1
  17. package/dist/cjs/plugins/annotation/pm-plugins/inline-comment.js +6 -5
  18. package/dist/cjs/plugins/annotation/toolbar.js +3 -0
  19. package/dist/cjs/plugins/avatar-group/ui/AvatarGroupPluginWrapper.js +1 -0
  20. package/dist/cjs/plugins/before-primaryToolbar/ui/BeforePrimaryToolbarWrapper.js +1 -0
  21. package/dist/cjs/plugins/block-type/ui/ToolbarBlockType/index.js +1 -1
  22. package/dist/cjs/plugins/block-type/ui/ToolbarBlockType/styled.js +1 -0
  23. package/dist/cjs/plugins/breakout/ui/LayoutButton.js +1 -0
  24. package/dist/cjs/plugins/card/nodeviews/embedCard.js +6 -0
  25. package/dist/cjs/plugins/card/ui/LinkToolbarButtonGroup.js +1 -0
  26. package/dist/cjs/plugins/card/ui/ResizableEmbedCard.js +1 -1
  27. package/dist/cjs/plugins/collab-edit/index.js +4 -3
  28. package/dist/cjs/plugins/custom-autoformat/doc.js +4 -3
  29. package/dist/cjs/plugins/custom-autoformat/index.js +4 -3
  30. package/dist/cjs/plugins/date/ui/DatePicker/date-picker-input.js +7 -0
  31. package/dist/cjs/plugins/date/ui/DatePicker/index.js +1 -0
  32. package/dist/cjs/plugins/expand/ui/ExpandIconButton.js +1 -1
  33. package/dist/cjs/plugins/extension/actions.js +4 -3
  34. package/dist/cjs/plugins/extension/commands.js +3 -0
  35. package/dist/cjs/plugins/extension/context-panel.js +8 -7
  36. package/dist/cjs/plugins/extension/pm-plugins/main.js +8 -7
  37. package/dist/cjs/plugins/extension/pm-plugins/utils.js +6 -5
  38. package/dist/cjs/plugins/extension/ui/Extension/Extension/index.js +1 -0
  39. package/dist/cjs/plugins/extension/ui/Extension/ExtensionComponent.js +11 -3
  40. package/dist/cjs/plugins/extension/ui/Extension/InlineExtension/index.js +1 -1
  41. package/dist/cjs/plugins/extension/ui/Extension/Lozenge.js +1 -1
  42. package/dist/cjs/plugins/extension/ui/SaveIndicator/SaveIndicator.js +1 -0
  43. package/dist/cjs/plugins/feedback-dialog/index.js +6 -5
  44. package/dist/cjs/plugins/feedback-dialog/loadJiraCollectorDialogScript.js +4 -3
  45. package/dist/cjs/plugins/find-replace/styles.js +2 -0
  46. package/dist/cjs/plugins/find-replace/ui/Find.js +1 -1
  47. package/dist/cjs/plugins/find-replace/ui/FindReplace.js +1 -1
  48. package/dist/cjs/plugins/find-replace/ui/FindReplaceToolbarButton.js +1 -0
  49. package/dist/cjs/plugins/find-replace/ui/Replace.js +1 -1
  50. package/dist/cjs/plugins/find-replace/ui/styles.js +1 -0
  51. package/dist/cjs/plugins/find-replace/utils/batch-decorations.js +10 -9
  52. package/dist/cjs/plugins/floating-toolbar/index.js +2 -1
  53. package/dist/cjs/plugins/floating-toolbar/ui/Dropdown.js +1 -0
  54. package/dist/cjs/plugins/floating-toolbar/ui/DropdownMenu.js +3 -0
  55. package/dist/cjs/plugins/floating-toolbar/ui/EmojiPickerButton.js +1 -0
  56. package/dist/cjs/plugins/floating-toolbar/ui/ExtensionsPlaceholder.js +7 -7
  57. package/dist/cjs/plugins/floating-toolbar/ui/Input.js +1 -1
  58. package/dist/cjs/plugins/floating-toolbar/ui/ScrollButtons.js +1 -0
  59. package/dist/cjs/plugins/floating-toolbar/ui/Separator.js +1 -0
  60. package/dist/cjs/plugins/floating-toolbar/ui/Toolbar.js +1 -0
  61. package/dist/cjs/plugins/help-dialog/ui/index.js +1 -1
  62. package/dist/cjs/plugins/hyperlink/HyperlinkToolbarAppearance.js +7 -7
  63. package/dist/cjs/plugins/hyperlink/ui/EditorLinkPicker/index.js +4 -0
  64. package/dist/cjs/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +14 -13
  65. package/dist/cjs/plugins/image-upload/pm-plugins/main.js +4 -3
  66. package/dist/cjs/plugins/indentation/commands/utils.js +2 -0
  67. package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/index.js +1 -1
  68. package/dist/cjs/plugins/jira-issue/nodeviews/jira-issue.js +1 -0
  69. package/dist/cjs/plugins/list/commands/listBackspace.js +0 -1
  70. package/dist/cjs/plugins/macro/actions.js +6 -5
  71. package/dist/cjs/plugins/media/nodeviews/mediaGroup.js +4 -3
  72. package/dist/cjs/plugins/media/nodeviews/mediaInline.js +5 -5
  73. package/dist/cjs/plugins/media/nodeviews/mediaNodeUpdater.js +34 -32
  74. package/dist/cjs/plugins/media/nodeviews/mediaNodeView/media.js +5 -5
  75. package/dist/cjs/plugins/media/nodeviews/mediaSingle.js +10 -9
  76. package/dist/cjs/plugins/media/nodeviews/styles.js +1 -0
  77. package/dist/cjs/plugins/media/picker-facade.js +4 -3
  78. package/dist/cjs/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.js +1 -0
  79. package/dist/cjs/plugins/media/pm-plugins/main.js +25 -7
  80. package/dist/cjs/plugins/media/pm-plugins/mediaTaskManager.js +4 -3
  81. package/dist/cjs/plugins/media/toolbar/linking-toolbar-appearance.js +1 -0
  82. package/dist/cjs/plugins/media/toolbar/utils.js +4 -3
  83. package/dist/cjs/plugins/media/ui/CaptionPlaceholder/index.js +1 -0
  84. package/dist/cjs/plugins/media/ui/Media/DropPlaceholder.js +1 -0
  85. package/dist/cjs/plugins/media/ui/MediaLinkingToolbar.js +2 -0
  86. package/dist/cjs/plugins/media/ui/MediaPicker/PickerFacadeProvider.js +4 -3
  87. package/dist/cjs/plugins/media/ui/ResizableMediaSingle/index.js +7 -6
  88. package/dist/cjs/plugins/media/utils/check-media-type.js +4 -3
  89. package/dist/cjs/plugins/mentions/nodeviews/mention.js +3 -3
  90. package/dist/cjs/plugins/paste/handlers.js +4 -3
  91. package/dist/cjs/plugins/paste/pm-plugins/main.js +3 -3
  92. package/dist/cjs/plugins/quick-insert/index.js +4 -3
  93. package/dist/cjs/plugins/status/nodeviews/status.js +1 -0
  94. package/dist/cjs/plugins/status/ui/statusPicker.js +5 -0
  95. package/dist/cjs/plugins/tasks-and-decisions/index.js +1 -0
  96. package/dist/cjs/plugins/tasks-and-decisions/nodeviews/taskItem.js +10 -0
  97. package/dist/cjs/plugins/tasks-and-decisions/ui/Task/task-item-with-providers.js +8 -4
  98. package/dist/cjs/plugins/text-color/ui/ToolbarTextColor/index.js +1 -1
  99. package/dist/cjs/plugins/text-formatting/ui/Toolbar/hooks/formatting-icons.js +1 -0
  100. package/dist/cjs/plugins/text-formatting/ui/Toolbar/index.js +1 -1
  101. package/dist/cjs/plugins/type-ahead/ui/AssistiveText.js +1 -1
  102. package/dist/cjs/plugins/type-ahead/ui/TypeAheadList.js +1 -0
  103. package/dist/cjs/plugins/type-ahead/ui/TypeAheadListItem.js +1 -0
  104. package/dist/cjs/plugins/type-ahead/ui/TypeAheadPopup.js +1 -0
  105. package/dist/cjs/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +1 -1
  106. package/dist/cjs/ui/Addon/ClickAreaBlock/index.js +1 -0
  107. package/dist/cjs/ui/Addon/ClickAreaInline/index.js +1 -0
  108. package/dist/cjs/ui/Addon/ClickAreaMobile/index.js +1 -0
  109. package/dist/cjs/ui/Addon/Dropdown/index.js +1 -1
  110. package/dist/cjs/ui/Alignment/index.js +1 -1
  111. package/dist/cjs/ui/Appearance/Chromeless.js +1 -0
  112. package/dist/cjs/ui/Appearance/Comment/Comment.js +19 -1
  113. package/dist/cjs/ui/Appearance/Comment/Toolbar.js +1 -0
  114. package/dist/cjs/ui/Appearance/FullPage/FullPage.js +1 -1
  115. package/dist/cjs/ui/AppearanceComponents/Mobile.js +1 -0
  116. package/dist/cjs/ui/ChromeCollapsed/index.js +1 -1
  117. package/dist/cjs/ui/ColorPickerButton/index.js +1 -0
  118. package/dist/cjs/ui/ConfigPanel/ConfigPanel.js +9 -5
  119. package/dist/cjs/ui/ConfigPanel/ErrorMessage/ErrorImage.js +3 -0
  120. package/dist/cjs/ui/ConfigPanel/Fields/Boolean.js +1 -0
  121. package/dist/cjs/ui/ConfigPanel/Fields/CheckboxGroup.js +1 -0
  122. package/dist/cjs/ui/ConfigPanel/Fields/ColorPicker.js +1 -1
  123. package/dist/cjs/ui/ConfigPanel/Fields/CustomSelect.js +3 -3
  124. package/dist/cjs/ui/ConfigPanel/Fields/DateRange.js +1 -0
  125. package/dist/cjs/ui/ConfigPanel/Fields/Expand.js +1 -0
  126. package/dist/cjs/ui/ConfigPanel/Fields/Fieldset.js +1 -0
  127. package/dist/cjs/ui/ConfigPanel/Fields/SelectItem.js +1 -0
  128. package/dist/cjs/ui/ConfigPanel/Fields/TabGroup.js +1 -0
  129. package/dist/cjs/ui/ConfigPanel/Fields/UserSelect.js +5 -5
  130. package/dist/cjs/ui/ConfigPanel/FormErrorBoundary.js +4 -3
  131. package/dist/cjs/ui/ConfigPanel/Header.js +1 -0
  132. package/dist/cjs/ui/ConfigPanel/LoadingState.js +1 -0
  133. package/dist/cjs/ui/ConfigPanel/NestedForms/RemovableField.js +1 -0
  134. package/dist/cjs/ui/ConfigPanel/transformers.js +20 -19
  135. package/dist/cjs/ui/ContentStyles/index.js +1 -0
  136. package/dist/cjs/ui/ContextPanel/context.js +15 -0
  137. package/dist/cjs/ui/ContextPanel/index.js +1 -0
  138. package/dist/cjs/ui/ElementBrowser/InsertMenu.js +3 -0
  139. package/dist/cjs/ui/ElementBrowser/ModalElementBrowser.js +1 -0
  140. package/dist/cjs/ui/ElementBrowser/components/CategoryList.js +1 -0
  141. package/dist/cjs/ui/ElementBrowser/components/ElementBrowserLoader.js +1 -0
  142. package/dist/cjs/ui/ElementBrowser/components/ElementList/ElementList.js +1 -0
  143. package/dist/cjs/ui/ElementBrowser/components/ElementList/EmptyState.js +1 -0
  144. package/dist/cjs/ui/ElementBrowser/components/ElementList/NotFoundIllustration.js +3 -0
  145. package/dist/cjs/ui/ElementBrowser/components/ElementSearch.js +1 -0
  146. package/dist/cjs/ui/ElementBrowser/components/StatelessElementBrowser.js +1 -0
  147. package/dist/cjs/ui/ElementBrowser/hooks/use-container-width.js +27 -0
  148. package/dist/cjs/ui/ElementBrowser/hooks/use-focus.js +32 -0
  149. package/dist/cjs/ui/ElementBrowser/hooks/use-select-and-focus-on-arrow-navigation.js +38 -0
  150. package/dist/cjs/ui/FloatingToolbar/index.js +1 -1
  151. package/dist/cjs/ui/LinkSearch/LinkSearchList.js +1 -0
  152. package/dist/cjs/ui/LinkSearch/LinkSearchListItem.js +3 -0
  153. package/dist/cjs/ui/LinkSearch/index.js +8 -7
  154. package/dist/cjs/ui/PanelTextInput/index.js +1 -1
  155. package/dist/cjs/ui/PluginSlot/index.js +1 -0
  156. package/dist/cjs/ui/Toolbar/ToolbarInner.js +1 -0
  157. package/dist/cjs/ui/Toolbar/ToolbarWithSizeDetector.js +1 -0
  158. package/dist/cjs/ui/ToolbarArrowKeyNavigationProvider/index.js +33 -20
  159. package/dist/cjs/ui/ToolbarFeedback/index.js +7 -4
  160. package/dist/cjs/ui/WithFlash/index.js +1 -0
  161. package/dist/cjs/ui/styles.js +5 -3
  162. package/dist/cjs/utils/action.js +6 -5
  163. package/dist/cjs/utils/announcer/announcer.js +9 -1
  164. package/dist/cjs/utils/clipboard.js +5 -5
  165. package/dist/cjs/utils/extensions.js +6 -5
  166. package/dist/cjs/utils/index.js +12 -0
  167. package/dist/cjs/utils/performance/simple-measure-to-entries.js +2 -1
  168. package/dist/cjs/utils/performance/track-transactions.js +2 -1
  169. package/dist/cjs/version-wrapper.js +1 -1
  170. package/dist/cjs/version.json +1 -1
  171. package/dist/es2019/actions/index.js +9 -0
  172. package/dist/es2019/create-editor/ReactEditorViewInternal.js +0 -1
  173. package/dist/es2019/editor.js +14 -0
  174. package/dist/es2019/labs/next/internal/context/shared-config.js +6 -0
  175. package/dist/es2019/labs/next/presets/cxhtml.js +23 -0
  176. package/dist/es2019/labs/next/presets/mobile.js +0 -2
  177. package/dist/es2019/nodeviews/getInlineNodeViewProducer.js +0 -1
  178. package/dist/es2019/plugins/annotation/toolbar.js +0 -1
  179. package/dist/es2019/plugins/card/nodeviews/embedCard.js +7 -0
  180. package/dist/es2019/plugins/date/ui/DatePicker/date-picker-input.js +7 -0
  181. package/dist/es2019/plugins/extension/commands.js +0 -1
  182. package/dist/es2019/plugins/extension/ui/Extension/ExtensionComponent.js +9 -0
  183. package/dist/es2019/plugins/floating-toolbar/index.js +0 -1
  184. package/dist/es2019/plugins/floating-toolbar/ui/DropdownMenu.js +3 -0
  185. package/dist/es2019/plugins/indentation/commands/utils.js +3 -0
  186. package/dist/es2019/plugins/list/commands/listBackspace.js +0 -1
  187. package/dist/es2019/plugins/media/nodeviews/mediaNodeUpdater.js +5 -1
  188. package/dist/es2019/plugins/media/nodeviews/mediaSingle.js +3 -0
  189. package/dist/es2019/plugins/media/pm-plugins/main.js +18 -0
  190. package/dist/es2019/plugins/quick-insert/commands.js +0 -1
  191. package/dist/es2019/plugins/status/ui/statusPicker.js +4 -0
  192. package/dist/es2019/plugins/tasks-and-decisions/nodeviews/taskItem.js +11 -0
  193. package/dist/es2019/plugins/tasks-and-decisions/ui/Task/task-item-with-providers.js +5 -1
  194. package/dist/es2019/ui/Appearance/Comment/Comment.js +18 -1
  195. package/dist/es2019/ui/ConfigPanel/ConfigPanel.js +4 -0
  196. package/dist/es2019/ui/ContextPanel/context.js +0 -1
  197. package/dist/es2019/ui/ToolbarArrowKeyNavigationProvider/index.js +26 -15
  198. package/dist/es2019/ui/ToolbarFeedback/index.js +3 -0
  199. package/dist/es2019/ui/styles.js +5 -0
  200. package/dist/es2019/utils/announcer/announcer.js +0 -2
  201. package/dist/es2019/utils/index.js +9 -0
  202. package/dist/es2019/utils/performance/simple-measure-to-entries.js +1 -1
  203. package/dist/es2019/utils/performance/track-transactions.js +2 -1
  204. package/dist/es2019/version-wrapper.js +1 -1
  205. package/dist/es2019/version.json +1 -1
  206. package/dist/esm/actions/index.js +17 -7
  207. package/dist/esm/create-editor/ErrorBoundary.js +8 -7
  208. package/dist/esm/create-editor/ReactEditorViewInternal.js +0 -1
  209. package/dist/esm/editor-next/utils/sendDurationAnalytics.js +4 -3
  210. package/dist/esm/editor-next/utils/trackEditorActions.js +4 -3
  211. package/dist/esm/editor.js +14 -0
  212. package/dist/esm/labs/next/internal/context/shared-config.js +6 -0
  213. package/dist/esm/labs/next/presets/cxhtml.js +23 -0
  214. package/dist/esm/labs/next/presets/mobile.js +0 -2
  215. package/dist/esm/nodeviews/getInlineNodeViewProducer.js +0 -1
  216. package/dist/esm/plugins/annotation/pm-plugins/inline-comment.js +6 -5
  217. package/dist/esm/plugins/annotation/toolbar.js +0 -1
  218. package/dist/esm/plugins/card/nodeviews/embedCard.js +6 -0
  219. package/dist/esm/plugins/collab-edit/index.js +4 -3
  220. package/dist/esm/plugins/custom-autoformat/doc.js +4 -3
  221. package/dist/esm/plugins/custom-autoformat/index.js +4 -3
  222. package/dist/esm/plugins/date/ui/DatePicker/date-picker-input.js +6 -0
  223. package/dist/esm/plugins/extension/actions.js +4 -3
  224. package/dist/esm/plugins/extension/commands.js +0 -1
  225. package/dist/esm/plugins/extension/context-panel.js +7 -7
  226. package/dist/esm/plugins/extension/pm-plugins/main.js +7 -7
  227. package/dist/esm/plugins/extension/pm-plugins/utils.js +6 -5
  228. package/dist/esm/plugins/extension/ui/Extension/ExtensionComponent.js +12 -3
  229. package/dist/esm/plugins/feedback-dialog/index.js +6 -5
  230. package/dist/esm/plugins/feedback-dialog/loadJiraCollectorDialogScript.js +4 -3
  231. package/dist/esm/plugins/find-replace/utils/batch-decorations.js +10 -9
  232. package/dist/esm/plugins/floating-toolbar/index.js +0 -1
  233. package/dist/esm/plugins/floating-toolbar/ui/DropdownMenu.js +3 -0
  234. package/dist/esm/plugins/floating-toolbar/ui/ExtensionsPlaceholder.js +8 -7
  235. package/dist/esm/plugins/hyperlink/HyperlinkToolbarAppearance.js +8 -7
  236. package/dist/esm/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +14 -13
  237. package/dist/esm/plugins/image-upload/pm-plugins/main.js +4 -3
  238. package/dist/esm/plugins/indentation/commands/utils.js +3 -0
  239. package/dist/esm/plugins/list/commands/listBackspace.js +0 -1
  240. package/dist/esm/plugins/macro/actions.js +6 -5
  241. package/dist/esm/plugins/media/nodeviews/mediaGroup.js +4 -3
  242. package/dist/esm/plugins/media/nodeviews/mediaInline.js +6 -5
  243. package/dist/esm/plugins/media/nodeviews/mediaNodeUpdater.js +34 -32
  244. package/dist/esm/plugins/media/nodeviews/mediaNodeView/media.js +6 -5
  245. package/dist/esm/plugins/media/nodeviews/mediaSingle.js +10 -8
  246. package/dist/esm/plugins/media/picker-facade.js +4 -3
  247. package/dist/esm/plugins/media/pm-plugins/main.js +26 -7
  248. package/dist/esm/plugins/media/pm-plugins/mediaTaskManager.js +4 -3
  249. package/dist/esm/plugins/media/toolbar/utils.js +4 -3
  250. package/dist/esm/plugins/media/ui/MediaPicker/PickerFacadeProvider.js +4 -3
  251. package/dist/esm/plugins/media/ui/ResizableMediaSingle/index.js +6 -5
  252. package/dist/esm/plugins/media/utils/check-media-type.js +4 -3
  253. package/dist/esm/plugins/mentions/nodeviews/mention.js +4 -3
  254. package/dist/esm/plugins/paste/handlers.js +4 -3
  255. package/dist/esm/plugins/paste/pm-plugins/main.js +4 -3
  256. package/dist/esm/plugins/quick-insert/commands.js +0 -1
  257. package/dist/esm/plugins/quick-insert/index.js +4 -3
  258. package/dist/esm/plugins/status/ui/statusPicker.js +4 -0
  259. package/dist/esm/plugins/tasks-and-decisions/nodeviews/taskItem.js +10 -0
  260. package/dist/esm/plugins/tasks-and-decisions/ui/Task/task-item-with-providers.js +9 -4
  261. package/dist/esm/ui/Appearance/Comment/Comment.js +18 -1
  262. package/dist/esm/ui/ConfigPanel/ConfigPanel.js +10 -5
  263. package/dist/esm/ui/ConfigPanel/Fields/CustomSelect.js +4 -3
  264. package/dist/esm/ui/ConfigPanel/Fields/UserSelect.js +6 -5
  265. package/dist/esm/ui/ConfigPanel/FormErrorBoundary.js +4 -3
  266. package/dist/esm/ui/ConfigPanel/transformers.js +19 -19
  267. package/dist/esm/ui/ContextPanel/context.js +0 -1
  268. package/dist/esm/ui/LinkSearch/index.js +8 -7
  269. package/dist/esm/ui/ToolbarArrowKeyNavigationProvider/index.js +26 -14
  270. package/dist/esm/ui/ToolbarFeedback/index.js +6 -3
  271. package/dist/esm/ui/styles.js +3 -2
  272. package/dist/esm/utils/action.js +6 -5
  273. package/dist/esm/utils/announcer/announcer.js +0 -2
  274. package/dist/esm/utils/clipboard.js +6 -5
  275. package/dist/esm/utils/extensions.js +6 -5
  276. package/dist/esm/utils/index.js +9 -0
  277. package/dist/esm/utils/performance/simple-measure-to-entries.js +2 -1
  278. package/dist/esm/utils/performance/track-transactions.js +2 -1
  279. package/dist/esm/version-wrapper.js +1 -1
  280. package/dist/esm/version.json +1 -1
  281. package/dist/types/ui/ToolbarArrowKeyNavigationProvider/index.d.ts +8 -2
  282. package/dist/types/ui/styles.d.ts +1 -0
  283. package/package.json +4 -4
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ var _typeof = require("@babel/runtime/helpers/typeof");
4
5
  Object.defineProperty(exports, "__esModule", {
5
6
  value: true
6
7
  });
7
8
  exports.default = void 0;
8
- var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
9
9
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
10
10
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
11
11
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
@@ -32,10 +32,11 @@ var _deprecationWarnings = _interopRequireDefault(require("../../utils/deprecati
32
32
  var _pickBy = _interopRequireDefault(require("../../utils/pick-by"));
33
33
  var _consts = require("../../plugins/analytics/consts");
34
34
  var _contextIdentifier = require("../../plugins/base/pm-plugins/context-identifier");
35
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
35
36
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
36
37
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
37
38
  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); }; }
38
- 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; } }
39
+ 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; } } /** @jsx jsx */
39
40
  var PopupWithOutsideListeners = (0, _withOuterListeners.default)(_ui.Popup);
40
41
  var POPUP_HEIGHT = 388;
41
42
  var POPUP_WIDTH = 280;
@@ -96,10 +97,10 @@ var ToolbarFeedback = /*#__PURE__*/function (_PureComponent) {
96
97
  showOptOutOption: !_this.state.showOptOutOption
97
98
  });
98
99
  });
99
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "openJiraIssueCollector", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
100
+ (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "openJiraIssueCollector", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
100
101
  var _window$localStorage$, _getContextIdentifier;
101
102
  var editorView, sessionId, contentId, tabId;
102
- return _regenerator.default.wrap(function _callee$(_context) {
103
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
103
104
  while (1) {
104
105
  switch (_context.prev = _context.next) {
105
106
  case 0:
@@ -151,6 +152,8 @@ var ToolbarFeedback = /*#__PURE__*/function (_PureComponent) {
151
152
  (0, _deprecationWarnings.default)(ToolbarFeedback.name, props, deprecations);
152
153
  return _this;
153
154
  }
155
+
156
+ // Create a FeedbackInfo instance from props.
154
157
  (0, _createClass2.default)(ToolbarFeedback, [{
155
158
  key: "render",
156
159
  value: function render() {
@@ -17,6 +17,7 @@ var _react = _interopRequireDefault(require("react"));
17
17
  var _react2 = require("@emotion/react");
18
18
  var _colors = require("@atlaskit/theme/colors");
19
19
  var _templateObject, _templateObject2, _templateObject3, _templateObject4;
20
+ /** @jsx jsx */
20
21
  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); }; }
21
22
  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; } }
22
23
  var pulseBackground = (0, _react2.keyframes)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n 50% {\n background-color: ", ";\n }\n"])), "var(--ds-blanket-danger, ".concat(_colors.R100, ")"));
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.expandIconWrapperStyle = exports.clickSelectWrapperStyle = exports.buttonGroupStyle = exports.buttonContentStyle = exports.buttonContentReducedSpacingStyle = void 0;
7
+ exports.expandIconWrapperStyle = exports.clickSelectWrapperStyle = exports.centeredToolbarContainer = exports.buttonGroupStyle = exports.buttonContentStyle = exports.buttonContentReducedSpacingStyle = void 0;
8
8
  Object.defineProperty(exports, "scrollbarStyles", {
9
9
  enumerable: true,
10
10
  get: function get() {
@@ -24,7 +24,7 @@ var _react = require("@emotion/react");
24
24
  var _colors = require("@atlaskit/theme/colors");
25
25
  var _shortcut = require("@atlaskit/editor-shared-styles/shortcut");
26
26
  var _scrollbar = require("@atlaskit/editor-shared-styles/scrollbar");
27
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9;
27
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10;
28
28
  var buttonGroupStyle = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: inline-flex;\n align-items: center;\n\n & > div {\n display: flex;\n }\n"])));
29
29
  exports.buttonGroupStyle = buttonGroupStyle;
30
30
  var separatorStyles = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n background: ", ";\n width: 1px;\n height: 24px;\n display: inline-block;\n margin: 0 8px;\n user-select: none;\n"])), "var(--ds-border, ".concat(_colors.N30, ")"));
@@ -42,4 +42,6 @@ exports.buttonContentStyle = buttonContentStyle;
42
42
  var buttonContentReducedSpacingStyle = (0, _react.css)(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n padding: 8px;\n"])));
43
43
  exports.buttonContentReducedSpacingStyle = buttonContentReducedSpacingStyle;
44
44
  var clickSelectWrapperStyle = (0, _react.css)(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n user-select: all;\n"])));
45
- exports.clickSelectWrapperStyle = clickSelectWrapperStyle;
45
+ exports.clickSelectWrapperStyle = clickSelectWrapperStyle;
46
+ var centeredToolbarContainer = (0, _react.css)(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n width: 100%;\n align-items: center;\n"])));
47
+ exports.centeredToolbarContainer = centeredToolbarContainer;
@@ -7,19 +7,20 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.__temporaryFixForConfigPanel = __temporaryFixForConfigPanel;
8
8
  exports.cascadeCommands = cascadeCommands;
9
9
  exports.getEditorValueWithMedia = getEditorValueWithMedia;
10
- var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
10
+ var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
11
11
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
12
12
  var _prosemirrorState = require("prosemirror-state");
13
13
  var _pluginKey = require("../plugins/extension/plugin-key");
14
14
  var _commands = require("../plugins/extension/commands");
15
15
  var _pluginKey2 = require("../plugins/media/pm-plugins/plugin-key");
16
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == (0, _typeof2.default)(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
16
17
  function __temporaryFixForConfigPanel(_x) {
17
18
  return _temporaryFixForConfigPanel.apply(this, arguments);
18
19
  }
19
20
  function _temporaryFixForConfigPanel() {
20
- _temporaryFixForConfigPanel = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(editorView) {
21
+ _temporaryFixForConfigPanel = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(editorView) {
21
22
  var extensionPluginState;
22
- return _regenerator.default.wrap(function _callee$(_context) {
23
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
23
24
  while (1) {
24
25
  switch (_context.prev = _context.next) {
25
26
  case 0:
@@ -49,9 +50,9 @@ function getEditorValueWithMedia(_x2) {
49
50
  * passes the tr through and dispatches the cumulated transaction
50
51
  */
51
52
  function _getEditorValueWithMedia() {
52
- _getEditorValueWithMedia = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(editorView) {
53
+ _getEditorValueWithMedia = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(editorView) {
53
54
  var mediaPluginState;
54
- return _regenerator.default.wrap(function _callee2$(_context2) {
55
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
55
56
  while (1) {
56
57
  switch (_context2.prev = _context2.next) {
57
58
  case 0:
@@ -10,9 +10,17 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
12
12
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
13
+ // How to use:
14
+ // https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Live_Regions#Preferring_specialized_live_region_roles
15
+ // Demo: https://dequeuniversity.com/library/aria/liveregion-playground
16
+
17
+ // Important: Strongly recommend test your solution in all supported screen readers
18
+ // if you use non default value of properties: ariaAtomic, ariaLive, ariaRelevant, role
19
+
20
+ // Note: Text won't be announced if the text message doesn't change after the render.
21
+ // For using a forced announcement in this case, set the 'key' attribute - key={Date.now()}
13
22
  // Note: Flag 'contentRendered' resolves bug with duplicates messages (NVDA + Firefox)
14
23
  // https://github.com/nvaccess/nvda/labels/bug%2Fdouble-speaking
15
-
16
24
  var timer;
17
25
  var Announcer = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
18
26
  var _ref$ariaAtomic = _ref.ariaAtomic,
@@ -8,11 +8,11 @@ Object.defineProperty(exports, "__esModule", {
8
8
  exports.checkClipboardTypes = checkClipboardTypes;
9
9
  exports.copyToClipboard = exports.copyHTMLToClipboard = void 0;
10
10
  exports.isPastedFile = isPastedFile;
11
- var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
12
11
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
13
12
  var clipboard = _interopRequireWildcard(require("clipboard-polyfill"));
14
13
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
15
14
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
15
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
16
16
  function checkClipboardTypes(type, item) {
17
17
  var isDOMStringList = function isDOMStringList(t) {
18
18
  return !t.indexOf && !!t.contains;
@@ -34,8 +34,8 @@ var isIEClipboardApiSupported = function isIEClipboardApiSupported() {
34
34
  return window.clipboardData && typeof window.clipboardData.setData === 'function';
35
35
  };
36
36
  var copyToClipboard = /*#__PURE__*/function () {
37
- var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(textToCopy) {
38
- return _regenerator.default.wrap(function _callee$(_context) {
37
+ var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(textToCopy) {
38
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
39
39
  while (1) {
40
40
  switch (_context.prev = _context.next) {
41
41
  case 0:
@@ -89,9 +89,9 @@ var copyToClipboard = /*#__PURE__*/function () {
89
89
  }();
90
90
  exports.copyToClipboard = copyToClipboard;
91
91
  var copyHTMLToClipboard = /*#__PURE__*/function () {
92
- var _ref3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(elementToCopy, plainTextToCopy) {
92
+ var _ref3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(elementToCopy, plainTextToCopy) {
93
93
  var data, Clipboard, dt;
94
- return _regenerator.default.wrap(function _callee2$(_context2) {
94
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
95
95
  while (1) {
96
96
  switch (_context2.prev = _context2.next) {
97
97
  case 0:
@@ -6,13 +6,14 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.combineQuickInsertProviders = combineQuickInsertProviders;
8
8
  exports.extensionProviderToQuickInsertProvider = extensionProviderToQuickInsertProvider;
9
- var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
9
+ var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
10
10
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
11
11
  var _react = _interopRequireDefault(require("react"));
12
12
  var _reactLoadable = _interopRequireDefault(require("react-loadable"));
13
13
  var _extensions = require("@atlaskit/editor-common/extensions");
14
14
  var _providerHelpers = require("@atlaskit/editor-common/provider-helpers");
15
15
  var _analytics = require("@atlaskit/editor-common/analytics");
16
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == (0, _typeof2.default)(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
16
17
  /**
17
18
  * Utils to send analytics event when a extension is inserted using quickInsert
18
19
  */
@@ -37,9 +38,9 @@ function extensionProviderToQuickInsertProvider(_x, _x2, _x3) {
37
38
  return _extensionProviderToQuickInsertProvider.apply(this, arguments);
38
39
  }
39
40
  function _extensionProviderToQuickInsertProvider() {
40
- _extensionProviderToQuickInsertProvider = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(extensionProvider, editorActions, createAnalyticsEvent) {
41
+ _extensionProviderToQuickInsertProvider = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(extensionProvider, editorActions, createAnalyticsEvent) {
41
42
  var extensions;
42
- return _regenerator.default.wrap(function _callee$(_context) {
43
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
43
44
  while (1) {
44
45
  switch (_context.prev = _context.next) {
45
46
  case 0:
@@ -99,9 +100,9 @@ function combineQuickInsertProviders(_x4) {
99
100
  return _combineQuickInsertProviders.apply(this, arguments);
100
101
  }
101
102
  function _combineQuickInsertProviders() {
102
- _combineQuickInsertProviders = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(quickInsertProviders) {
103
+ _combineQuickInsertProviders = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(quickInsertProviders) {
103
104
  var _combineProviders, invokeList;
104
- return _regenerator.default.wrap(function _callee2$(_context2) {
105
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
105
106
  while (1) {
106
107
  switch (_context2.prev = _context2.next) {
107
108
  case 0:
@@ -515,6 +515,8 @@ function dedupe() {
515
515
  return false;
516
516
  });
517
517
  }
518
+ /** Helper type for single arg function */
519
+
518
520
  /**
519
521
  * Compose 1 to n functions.
520
522
  * @param func first function
@@ -531,6 +533,16 @@ function compose(func) {
531
533
  }, raw);
532
534
  };
533
535
  }
536
+
537
+ // one function
538
+
539
+ // two function
540
+
541
+ // three function
542
+
543
+ // If needed add more than 3 function
544
+ // Generic
545
+
534
546
  // rest
535
547
  function pipe() {
536
548
  for (var _len2 = arguments.length, fns = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
@@ -98,5 +98,6 @@ var SimpleMeasurementLogger = /*#__PURE__*/(0, _createClass2.default)(function S
98
98
  _this.currentBatch = [];
99
99
  }
100
100
  });
101
- });
101
+ } // callback when performance reports are ready
102
+ );
102
103
  exports.SimpleMeasurementLogger = SimpleMeasurementLogger;
@@ -85,7 +85,8 @@ var TransactionTracker = /*#__PURE__*/function () {
85
85
  });
86
86
  }
87
87
  });
88
- }
88
+ } // Counter so we can rate limit the transaction performance tracking
89
+ // A map containing the time which measurement starts
89
90
  (0, _createClass2.default)(TransactionTracker, [{
90
91
  key: "addMeasureListener",
91
92
  value: function addMeasureListener(listener) {
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.version = exports.nextMajorVersion = exports.name = void 0;
7
7
  var name = "@atlaskit/editor-core";
8
8
  exports.name = name;
9
- var version = "182.0.1";
9
+ var version = "182.0.2";
10
10
  exports.version = version;
11
11
  var nextMajorVersion = function nextMajorVersion() {
12
12
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "182.0.1",
3
+ "version": "182.0.2",
4
4
  "sideEffects": false
5
5
  }
@@ -263,4 +263,13 @@ export default class EditorActions {
263
263
  this.editorView.dispatch(tr);
264
264
  return true;
265
265
  }
266
+
267
+ /**
268
+ * If editor is using new collab service,
269
+ * we want editor to call the collab provider to
270
+ * retrieve the final acknowledged state of the
271
+ * editor. The final acknowledged editor state
272
+ * refers to the latest state of editor with confirmed
273
+ * steps.
274
+ */
266
275
  }
@@ -41,7 +41,6 @@ function handleEditorFocus(view) {
41
41
  export class ReactEditorView extends React.Component {
42
42
  // ProseMirror is instantiated prior to the initial React render cycle,
43
43
  // so we allow transactions by default, to avoid discarding the initial one.
44
-
45
44
  get transactionTracking() {
46
45
  var _this$props$editorPro, _this$props$editorPro2;
47
46
  return (_this$props$editorPro = (_this$props$editorPro2 = this.props.editorProps.performanceTracking) === null || _this$props$editorPro2 === void 0 ? void 0 : _this$props$editorPro2.transactionTracking) !== null && _this$props$editorPro !== void 0 ? _this$props$editorPro : {
@@ -163,6 +163,13 @@ export default class Editor extends React.Component {
163
163
  * and need to find a workaround.
164
164
  */
165
165
 
166
+ /**
167
+ * @private
168
+ * @deprecated - Do not override this at all, this is an antipattern.
169
+ * Please reach out to the Editor team if you were previously using this
170
+ * and need to find a workaround.
171
+ */
172
+
166
173
  /**
167
174
  * @private
168
175
  * @deprecated - Do not override this at all, this is an antipattern.
@@ -192,6 +199,13 @@ export default class Editor extends React.Component {
192
199
  * and need to find a workaround.
193
200
  */
194
201
 
202
+ /**
203
+ * @private
204
+ * @deprecated - Do not override this at all, this is an antipattern.
205
+ * Please reach out to the Editor team if you were previously using this
206
+ * and need to find a workaround.
207
+ */
208
+
195
209
  /**
196
210
  * @private
197
211
  * @deprecated - Do not override this at all, this is an antipattern.
@@ -1,6 +1,12 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import React from 'react';
3
3
  import PropTypes from 'prop-types';
4
+
5
+ /**
6
+ * Provides access to most commonly used configurations and instances of classes,
7
+ * that most editor components rely on.
8
+ */
9
+
4
10
  const EditorSharedConfigContext = /*#__PURE__*/React.createContext(null);
5
11
  export class EditorSharedConfigProvider extends React.Component {
6
12
  getChildContext() {
@@ -1,5 +1,28 @@
1
1
  // #region Imports
2
2
  import React from 'react';
3
+
4
+ //import { tablesPlugin } from '@atlaskit/editor-plugin-table';
5
+ //
6
+ //import {
7
+ // panelPlugin,
8
+ // listPlugin,
9
+ // textColorPlugin,
10
+ // breakoutPlugin,
11
+ // jiraIssuePlugin,
12
+ // extensionPlugin,
13
+ // rulePlugin,
14
+ // datePlugin,
15
+ // layoutPlugin,
16
+ // indentationPlugin,
17
+ // cardPlugin,
18
+ // statusPlugin,
19
+ // mediaPlugin,
20
+ // mentionsPlugin,
21
+ // tasksAndDecisionsPlugin,
22
+ // insertBlockPlugin,
23
+ // basePlugin,
24
+ // //placeholderPlugin,
25
+ //} from '../../../plugins';
3
26
  import { PresetProvider } from '../Editor';
4
27
  import { useDefaultPreset } from './default';
5
28
  // #endregion
@@ -11,7 +11,6 @@ useProviderFactory } from '@atlaskit/editor-common/provider-factory';
11
11
  //import extensionPlugin from '../../../plugins/extension';
12
12
  //import layoutPlugin from '../../../plugins/layout';
13
13
  //import listPlugin from '../../../plugins/list';
14
-
15
14
  //import mentionsPlugin from '../../../plugins/mentions';
16
15
  //import mobileDimensionsPlugin from '../../../plugins/mobile-dimensions';
17
16
  //import panelPlugin from '../../../plugins/panel';
@@ -30,7 +29,6 @@ import { addExcludesFromProviderFactory } from './utils';
30
29
  //import { quickInsertPlugin } from '../../../plugins';
31
30
 
32
31
  // #endregion
33
-
34
32
  export function useMobilePreset({
35
33
  media,
36
34
  placeholder,
@@ -196,7 +196,6 @@ function getPortalChildren({
196
196
  // nodeViews: {
197
197
  // [nodeViewName: string]: NodeViewProducer
198
198
  // }
199
-
200
199
  // This return of this function is intended to be the value of a key
201
200
  // in a ProseMirror nodeViews object.
202
201
  export function getInlineNodeViewProducer({
@@ -3,7 +3,6 @@ import { defineMessages } from 'react-intl-next';
3
3
  import CommentIcon from '@atlaskit/icon/glyph/comment';
4
4
  // AFP-2532 TODO: Fix automatic suppressions below
5
5
  // eslint-disable-next-line @atlassian/tangerine/import/entry-points
6
-
7
6
  import { addInlineComment, ToolTipContent } from '../../keymaps';
8
7
  import { setInlineCommentDraftState } from './commands';
9
8
  import { AnnotationTestIds, AnnotationSelectionType } from './types';
@@ -164,6 +164,13 @@ export class EmbedCardComponent extends React.PureComponent {
164
164
  const scrollContainer = findOverflowScrollParent(view.dom);
165
165
  this.scrollContainer = scrollContainer || undefined;
166
166
  }
167
+
168
+ /**
169
+ * Even though render is capable of listening and reacting to iframely wrapper iframe sent `resize` events
170
+ * it's good idea to store latest actual height in ADF, so that when renderer (well, editor as well) is loading
171
+ * we will show embed window of appropriate size and avoid unnecessary content jumping.
172
+ */
173
+
167
174
  render() {
168
175
  const {
169
176
  node,
@@ -217,6 +217,10 @@ class DatePickerInput extends React.Component {
217
217
  * Focus the input textfield
218
218
  */
219
219
 
220
+ /**
221
+ * Select all the input text
222
+ */
223
+
220
224
  componentWillUnmount() {
221
225
  if (this.autofocusTimeout !== undefined) {
222
226
  clearTimeout(this.autofocusTimeout);
@@ -225,5 +229,8 @@ class DatePickerInput extends React.Component {
225
229
  clearTimeout(this.autoSelectAllTimeout);
226
230
  }
227
231
  }
232
+
233
+ // arrow keys are only triggered by onKeyDown, not onKeyPress
228
234
  }
235
+
229
236
  export default injectIntl(DatePickerInput);
@@ -5,7 +5,6 @@ import { getSelectedExtension } from './utils';
5
5
  import { removeConnectedNodes } from '@atlaskit/editor-common/utils';
6
6
  // AFP-2532 TODO: Fix automatic suppressions below
7
7
  // eslint-disable-next-line @atlassian/tangerine/import/entry-points
8
-
9
8
  export function updateState(state) {
10
9
  return createCommand({
11
10
  type: 'UPDATE_STATE',
@@ -153,6 +153,15 @@ export default class ExtensionComponent extends Component {
153
153
  return null;
154
154
  }
155
155
  }
156
+
157
+ /**
158
+ * Parses any private nodes once an extension provider is available.
159
+ *
160
+ * We do this separately from resolving a node renderer component since the
161
+ * private props come from extension provider, rather than an extension
162
+ * handler which only handles `render`/component concerns.
163
+ */
164
+
156
165
  tryExtensionHandler() {
157
166
  const {
158
167
  node
@@ -6,7 +6,6 @@ import camelCase from 'lodash/camelCase';
6
6
  import { Popup } from '@atlaskit/editor-common/ui';
7
7
  // AFP-2532 TODO: Fix automatic suppressions below
8
8
  // eslint-disable-next-line @atlassian/tangerine/import/entry-points
9
-
10
9
  import WithPluginState from '../../ui/WithPluginState';
11
10
  import { CONTENT_COMPONENT } from '../analytics/types';
12
11
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '../analytics';
@@ -36,6 +36,9 @@ const label = css`
36
36
  width: 100%;
37
37
  `;
38
38
  export const itemSpacing = gridSize() / 2;
39
+
40
+ // Extend the ButtonItem component type to allow mouse events to be accepted from the Typescript check
41
+
39
42
  const DropdownButtonItem = ButtonItem;
40
43
  const DropdownMenuItem = ({
41
44
  item,