@atlaskit/editor-core 163.0.0 → 164.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 (608) hide show
  1. package/.eslintrc.js +20 -0
  2. package/CHANGELOG.md +86 -0
  3. package/dist/cjs/editor.js +22 -14
  4. package/dist/cjs/i18n/cs.js +1 -1
  5. package/dist/cjs/i18n/de.js +3 -3
  6. package/dist/cjs/i18n/en.js +277 -131
  7. package/dist/cjs/i18n/en_GB.js +278 -132
  8. package/dist/cjs/i18n/es.js +1 -1
  9. package/dist/cjs/i18n/hu.js +2 -2
  10. package/dist/cjs/i18n/ko.js +2 -2
  11. package/dist/cjs/i18n/nb.js +1 -1
  12. package/dist/cjs/i18n/pl.js +24 -0
  13. package/dist/cjs/i18n/th.js +2 -2
  14. package/dist/cjs/i18n/tr.js +2 -2
  15. package/dist/cjs/i18n/vi.js +1 -1
  16. package/dist/cjs/i18n/zh.js +3 -0
  17. package/dist/cjs/index.js +12 -0
  18. package/dist/cjs/nodeviews/getInlineNodeViewProducer.js +1 -1
  19. package/dist/cjs/nodeviews/getInlineNodeViewProducer.styles.js +1 -1
  20. package/dist/cjs/plugins/base/pm-plugins/inline-cursor-target.js +16 -23
  21. package/dist/cjs/plugins/block-type/ui/ToolbarBlockType/blocktype-button.js +13 -8
  22. package/dist/cjs/plugins/block-type/ui/ToolbarBlockType/index.js +14 -6
  23. package/dist/cjs/plugins/block-type/ui/ToolbarBlockType/styled.js +6 -8
  24. package/dist/cjs/plugins/card/nodeviews/inlineCard.js +16 -42
  25. package/dist/cjs/plugins/card/pm-plugins/main.js +18 -16
  26. package/dist/cjs/plugins/card/ui/LinkToolbarButtonGroup.js +27 -30
  27. package/dist/cjs/plugins/code-block/pm-plugins/keymaps.js +1 -1
  28. package/dist/cjs/plugins/emoji/ui/Emoji/index.js +5 -4
  29. package/dist/cjs/plugins/extension/nodeviews/extension.js +5 -0
  30. package/dist/cjs/plugins/extension/ui/Extension/Extension/index.js +7 -3
  31. package/dist/cjs/plugins/extension/ui/Extension/Extension/styles.js +15 -19
  32. package/dist/cjs/plugins/find-replace/ui/FindReplaceToolbarButton.js +14 -15
  33. package/dist/cjs/plugins/floating-toolbar/ui/Dropdown.js +16 -11
  34. package/dist/cjs/plugins/floating-toolbar/ui/DropdownMenu.js +14 -13
  35. package/dist/cjs/plugins/floating-toolbar/ui/EmojiPickerButton.js +16 -13
  36. package/dist/cjs/plugins/floating-toolbar/ui/Input.js +5 -2
  37. package/dist/cjs/plugins/floating-toolbar/ui/Separator.js +4 -5
  38. package/dist/cjs/plugins/floating-toolbar/ui/Toolbar.js +28 -22
  39. package/dist/cjs/plugins/grid/index.js +2 -2
  40. package/dist/cjs/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +22 -18
  41. package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/dropdown-button.js +12 -5
  42. package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/index.js +23 -21
  43. package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/item.js +9 -4
  44. package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/styles.js +4 -5
  45. package/dist/cjs/plugins/list/actions/wrap-and-join-lists.js +3 -73
  46. package/dist/cjs/plugins/list/ui/ToolbarLists/index.js +34 -18
  47. package/dist/cjs/plugins/media/commands/helpers.js +45 -25
  48. package/dist/cjs/plugins/media/nodeviews/mediaSingle.js +13 -17
  49. package/dist/cjs/plugins/media/nodeviews/styles.js +14 -16
  50. package/dist/cjs/plugins/media/picker-facade.js +6 -69
  51. package/dist/cjs/plugins/media/pm-plugins/main.js +14 -56
  52. package/dist/cjs/plugins/media/toolbar/linking-toolbar-appearance.js +15 -11
  53. package/dist/cjs/plugins/media/ui/CaptionPlaceholder/index.js +5 -7
  54. package/dist/cjs/plugins/media/ui/Media/DropPlaceholder.js +9 -8
  55. package/dist/cjs/plugins/media/ui/MediaLinkingToolbar.js +28 -17
  56. package/dist/cjs/plugins/media/ui/MediaPicker/PickerFacadeProvider.js +1 -3
  57. package/dist/cjs/plugins/media/ui/MediaPicker/index.js +1 -1
  58. package/dist/cjs/plugins/mentions/ui/InviteItem/index.js +22 -9
  59. package/dist/cjs/plugins/mentions/ui/InviteItem/styles.js +15 -27
  60. package/dist/cjs/plugins/panel/actions.js +2 -2
  61. package/dist/cjs/plugins/panel/nodeviews/panel.js +2 -2
  62. package/dist/cjs/plugins/panel/pm-plugins/main.js +4 -4
  63. package/dist/cjs/plugins/panel/styles.js +2 -2
  64. package/dist/cjs/plugins/panel/toolbar.js +3 -3
  65. package/dist/cjs/plugins/panel/utils.js +4 -4
  66. package/dist/cjs/plugins/paste/handlers.js +6 -3
  67. package/dist/cjs/plugins/paste/pm-plugins/main.js +45 -85
  68. package/dist/cjs/plugins/status/nodeviews/status.js +10 -13
  69. package/dist/cjs/plugins/status/ui/statusPicker.js +6 -5
  70. package/dist/cjs/plugins/table/commands/insert.js +0 -6
  71. package/dist/cjs/plugins/table/pm-plugins/main.js +67 -0
  72. package/dist/cjs/plugins/table/ui/FloatingContextualMenu/ContextualMenu.js +18 -16
  73. package/dist/cjs/plugins/table/ui/common-styles.js +5 -12
  74. package/dist/cjs/plugins/table/utils/paste.js +10 -2
  75. package/dist/cjs/plugins/tasks-and-decisions/commands.js +44 -14
  76. package/dist/cjs/plugins/tasks-and-decisions/index.js +17 -18
  77. package/dist/cjs/plugins/tasks-and-decisions/pm-plugins/input-rules.js +20 -16
  78. package/dist/cjs/plugins/tasks-and-decisions/ui/ToolbarDecision/index.js +1 -1
  79. package/dist/cjs/plugins/tasks-and-decisions/ui/ToolbarTask/index.js +1 -1
  80. package/dist/cjs/plugins/text-color/ui/ToolbarTextColor/index.js +21 -9
  81. package/dist/cjs/plugins/text-color/ui/ToolbarTextColor/styles.js +9 -22
  82. package/dist/cjs/plugins/text-formatting/ui/Toolbar/hooks/clear-formatting-icon.js +7 -8
  83. package/dist/cjs/plugins/text-formatting/ui/Toolbar/hooks/formatting-icons.js +8 -4
  84. package/dist/cjs/plugins/text-formatting/ui/Toolbar/index.js +14 -8
  85. package/dist/cjs/plugins/text-formatting/ui/Toolbar/more-button.js +7 -2
  86. package/dist/cjs/plugins/text-formatting/ui/Toolbar/single-toolbar-buttons.js +6 -3
  87. package/dist/cjs/plugins/type-ahead/ui/InputQuery.js +11 -4
  88. package/dist/cjs/plugins/type-ahead/ui/TypeAheadListItem.js +26 -22
  89. package/dist/cjs/plugins/type-ahead/ui/TypeAheadPopup.js +7 -6
  90. package/dist/cjs/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +14 -10
  91. package/dist/cjs/ui/Addon/ClickAreaBlock/index.js +5 -5
  92. package/dist/cjs/ui/Addon/ClickAreaInline/index.js +4 -5
  93. package/dist/cjs/ui/Addon/ClickAreaMobile/index.js +12 -11
  94. package/dist/cjs/ui/Addon/Dropdown/index.js +5 -1
  95. package/dist/cjs/ui/Addon/Dropdown/styles.js +4 -5
  96. package/dist/cjs/ui/Addon/DropdownItem/index.js +5 -5
  97. package/dist/cjs/ui/Addon/DropdownItem/styles.js +4 -5
  98. package/dist/cjs/ui/Alignment/index.js +9 -15
  99. package/dist/cjs/ui/Alignment/styles.js +4 -5
  100. package/dist/cjs/ui/Appearance/Chromeless.js +11 -15
  101. package/dist/cjs/ui/Appearance/Comment/Comment.js +29 -34
  102. package/dist/cjs/ui/Appearance/Comment/Toolbar.js +14 -23
  103. package/dist/cjs/ui/Appearance/FullPage/FullPage.js +6 -3
  104. package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +30 -19
  105. package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +21 -15
  106. package/dist/cjs/ui/Appearance/FullPage/MainToolbar.js +34 -46
  107. package/dist/cjs/ui/Appearance/FullPage/StyledComponents.js +44 -49
  108. package/dist/cjs/ui/AppearanceComponents/Mobile.js +12 -15
  109. package/dist/cjs/ui/ChromeCollapsed/index.js +5 -2
  110. package/dist/cjs/ui/ChromeCollapsed/styles.js +4 -5
  111. package/dist/cjs/ui/ColorPalette/Color/index.js +8 -3
  112. package/dist/cjs/ui/ColorPalette/Color/styles.js +6 -9
  113. package/dist/cjs/ui/ColorPalette/Palettes/panelBackgroundPalette.js +22 -22
  114. package/dist/cjs/ui/ColorPalette/index.js +8 -3
  115. package/dist/cjs/ui/ColorPalette/styles.js +4 -5
  116. package/dist/cjs/ui/ColorPickerButton/index.js +11 -8
  117. package/dist/cjs/ui/ConfigPanel/Fields/Boolean.js +10 -3
  118. package/dist/cjs/ui/ConfigPanel/Fields/CheckboxGroup.js +11 -17
  119. package/dist/cjs/ui/ConfigPanel/Fields/ColorPicker.js +15 -12
  120. package/dist/cjs/ui/ConfigPanel/Fields/DateRange.js +27 -30
  121. package/dist/cjs/ui/ConfigPanel/Fields/Expand.js +32 -31
  122. package/dist/cjs/ui/ConfigPanel/Fields/Fieldset.js +22 -13
  123. package/dist/cjs/ui/ConfigPanel/Fields/SelectItem.js +17 -20
  124. package/dist/cjs/ui/ConfigPanel/Fields/common/RequiredIndicator.js +4 -5
  125. package/dist/cjs/ui/ConfigPanel/LoadingState.js +5 -5
  126. package/dist/cjs/ui/ConfigPanel/NestedForms/RemovableField.js +13 -14
  127. package/dist/cjs/ui/ContentStyles/index.js +24 -18
  128. package/dist/cjs/ui/ContextPanel/index.js +35 -62
  129. package/dist/cjs/ui/DropdownMenu/index.js +20 -25
  130. package/dist/cjs/ui/ElementBrowser/InsertMenu.js +38 -18
  131. package/dist/cjs/ui/ElementBrowser/components/CategoryList.js +13 -12
  132. package/dist/cjs/ui/ElementBrowser/components/ElementBrowserLoader.js +7 -6
  133. package/dist/cjs/ui/ElementBrowser/components/ElementList/ElementList.js +5 -3
  134. package/dist/cjs/ui/ElementBrowser/components/ElementSearch.js +18 -21
  135. package/dist/cjs/ui/FloatingToolbar/index.js +9 -14
  136. package/dist/cjs/ui/FloatingToolbar/styles.js +6 -13
  137. package/dist/cjs/ui/LinkSearch/LinkSearchListItem.js +37 -27
  138. package/dist/cjs/ui/LinkSearch/ToolbarComponents.js +8 -21
  139. package/dist/cjs/ui/PanelTextInput/index.js +7 -11
  140. package/dist/cjs/ui/PanelTextInput/styles.js +10 -7
  141. package/dist/cjs/ui/PluginSlot/index.js +6 -4
  142. package/dist/cjs/ui/Toolbar/ToolbarWithSizeDetector.js +19 -12
  143. package/dist/cjs/ui/ToolbarButton/index.js +8 -8
  144. package/dist/cjs/ui/ToolbarFeedback/index.js +21 -14
  145. package/dist/cjs/ui/ToolbarFeedback/styles.js +14 -28
  146. package/dist/cjs/ui/styles.js +29 -56
  147. package/dist/cjs/utils/prosemirror/autojoin.js +83 -0
  148. package/dist/cjs/version-wrapper.js +1 -1
  149. package/dist/cjs/version.json +1 -1
  150. package/dist/es2019/editor.js +17 -13
  151. package/dist/es2019/i18n/cs.js +1 -1
  152. package/dist/es2019/i18n/de.js +3 -3
  153. package/dist/es2019/i18n/en.js +277 -131
  154. package/dist/es2019/i18n/en_GB.js +278 -132
  155. package/dist/es2019/i18n/es.js +1 -1
  156. package/dist/es2019/i18n/hu.js +2 -2
  157. package/dist/es2019/i18n/ko.js +2 -2
  158. package/dist/es2019/i18n/nb.js +1 -1
  159. package/dist/es2019/i18n/pl.js +24 -0
  160. package/dist/es2019/i18n/th.js +2 -2
  161. package/dist/es2019/i18n/tr.js +2 -2
  162. package/dist/es2019/i18n/vi.js +1 -1
  163. package/dist/es2019/i18n/zh.js +3 -0
  164. package/dist/es2019/index.js +3 -3
  165. package/dist/es2019/nodeviews/getInlineNodeViewProducer.js +1 -1
  166. package/dist/es2019/nodeviews/getInlineNodeViewProducer.styles.js +6 -1
  167. package/dist/es2019/plugins/base/pm-plugins/inline-cursor-target.js +15 -12
  168. package/dist/es2019/plugins/block-type/ui/ToolbarBlockType/blocktype-button.js +13 -9
  169. package/dist/es2019/plugins/block-type/ui/ToolbarBlockType/index.js +16 -8
  170. package/dist/es2019/plugins/block-type/ui/ToolbarBlockType/styled.js +6 -4
  171. package/dist/es2019/plugins/card/nodeviews/inlineCard.js +15 -23
  172. package/dist/es2019/plugins/card/pm-plugins/main.js +22 -18
  173. package/dist/es2019/plugins/card/ui/LinkToolbarButtonGroup.js +19 -14
  174. package/dist/es2019/plugins/code-block/pm-plugins/keymaps.js +1 -1
  175. package/dist/es2019/plugins/emoji/ui/Emoji/index.js +6 -3
  176. package/dist/es2019/plugins/extension/nodeviews/extension.js +5 -0
  177. package/dist/es2019/plugins/extension/ui/Extension/Extension/index.js +8 -4
  178. package/dist/es2019/plugins/extension/ui/Extension/Extension/styles.js +5 -6
  179. package/dist/es2019/plugins/find-replace/ui/FindReplaceToolbarButton.js +18 -11
  180. package/dist/es2019/plugins/floating-toolbar/ui/Dropdown.js +18 -10
  181. package/dist/es2019/plugins/floating-toolbar/ui/DropdownMenu.js +13 -9
  182. package/dist/es2019/plugins/floating-toolbar/ui/EmojiPickerButton.js +14 -9
  183. package/dist/es2019/plugins/floating-toolbar/ui/Input.js +7 -3
  184. package/dist/es2019/plugins/floating-toolbar/ui/Separator.js +5 -4
  185. package/dist/es2019/plugins/floating-toolbar/ui/Toolbar.js +28 -18
  186. package/dist/es2019/plugins/grid/index.js +1 -1
  187. package/dist/es2019/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +23 -14
  188. package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/dropdown-button.js +13 -7
  189. package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/index.js +21 -17
  190. package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/item.js +9 -5
  191. package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/styles.js +2 -2
  192. package/dist/es2019/plugins/list/actions/wrap-and-join-lists.js +3 -69
  193. package/dist/es2019/plugins/list/ui/ToolbarLists/index.js +34 -18
  194. package/dist/es2019/plugins/media/commands/helpers.js +45 -25
  195. package/dist/es2019/plugins/media/nodeviews/mediaSingle.js +13 -10
  196. package/dist/es2019/plugins/media/nodeviews/styles.js +13 -9
  197. package/dist/es2019/plugins/media/picker-facade.js +2 -44
  198. package/dist/es2019/plugins/media/pm-plugins/main.js +5 -30
  199. package/dist/es2019/plugins/media/toolbar/linking-toolbar-appearance.js +17 -12
  200. package/dist/es2019/plugins/media/ui/CaptionPlaceholder/index.js +6 -5
  201. package/dist/es2019/plugins/media/ui/Media/DropPlaceholder.js +10 -6
  202. package/dist/es2019/plugins/media/ui/MediaLinkingToolbar.js +24 -16
  203. package/dist/es2019/plugins/media/ui/MediaPicker/PickerFacadeProvider.js +1 -2
  204. package/dist/es2019/plugins/media/ui/MediaPicker/index.js +1 -1
  205. package/dist/es2019/plugins/mentions/ui/InviteItem/index.js +19 -6
  206. package/dist/es2019/plugins/mentions/ui/InviteItem/styles.js +11 -9
  207. package/dist/es2019/plugins/panel/actions.js +1 -1
  208. package/dist/es2019/plugins/panel/nodeviews/panel.js +1 -1
  209. package/dist/es2019/plugins/panel/pm-plugins/main.js +1 -1
  210. package/dist/es2019/plugins/panel/styles.js +1 -1
  211. package/dist/es2019/plugins/panel/toolbar.js +1 -1
  212. package/dist/es2019/plugins/panel/utils.js +1 -1
  213. package/dist/es2019/plugins/paste/handlers.js +6 -3
  214. package/dist/es2019/plugins/paste/pm-plugins/main.js +26 -61
  215. package/dist/es2019/plugins/status/nodeviews/status.js +11 -7
  216. package/dist/es2019/plugins/status/ui/statusPicker.js +8 -5
  217. package/dist/es2019/plugins/table/commands/insert.js +0 -5
  218. package/dist/es2019/plugins/table/pm-plugins/main.js +65 -1
  219. package/dist/es2019/plugins/table/ui/FloatingContextualMenu/ContextualMenu.js +20 -11
  220. package/dist/es2019/plugins/table/ui/common-styles.js +2 -18
  221. package/dist/es2019/plugins/table/utils/paste.js +8 -3
  222. package/dist/es2019/plugins/tasks-and-decisions/commands.js +26 -14
  223. package/dist/es2019/plugins/tasks-and-decisions/index.js +18 -19
  224. package/dist/es2019/plugins/tasks-and-decisions/pm-plugins/input-rules.js +16 -10
  225. package/dist/es2019/plugins/tasks-and-decisions/ui/ToolbarDecision/index.js +2 -2
  226. package/dist/es2019/plugins/tasks-and-decisions/ui/ToolbarTask/index.js +2 -2
  227. package/dist/es2019/plugins/text-color/ui/ToolbarTextColor/index.js +24 -11
  228. package/dist/es2019/plugins/text-color/ui/ToolbarTextColor/styles.js +20 -27
  229. package/dist/es2019/plugins/text-formatting/ui/Toolbar/hooks/clear-formatting-icon.js +7 -3
  230. package/dist/es2019/plugins/text-formatting/ui/Toolbar/hooks/formatting-icons.js +9 -5
  231. package/dist/es2019/plugins/text-formatting/ui/Toolbar/index.js +15 -9
  232. package/dist/es2019/plugins/text-formatting/ui/Toolbar/more-button.js +7 -3
  233. package/dist/es2019/plugins/text-formatting/ui/Toolbar/single-toolbar-buttons.js +6 -4
  234. package/dist/es2019/plugins/type-ahead/ui/InputQuery.js +13 -5
  235. package/dist/es2019/plugins/type-ahead/ui/TypeAheadListItem.js +25 -14
  236. package/dist/es2019/plugins/type-ahead/ui/TypeAheadPopup.js +8 -6
  237. package/dist/es2019/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +15 -11
  238. package/dist/es2019/ui/Addon/ClickAreaBlock/index.js +7 -4
  239. package/dist/es2019/ui/Addon/ClickAreaInline/index.js +6 -4
  240. package/dist/es2019/ui/Addon/ClickAreaMobile/index.js +14 -9
  241. package/dist/es2019/ui/Addon/Dropdown/index.js +7 -2
  242. package/dist/es2019/ui/Addon/Dropdown/styles.js +2 -2
  243. package/dist/es2019/ui/Addon/DropdownItem/index.js +6 -4
  244. package/dist/es2019/ui/Addon/DropdownItem/styles.js +2 -2
  245. package/dist/es2019/ui/Alignment/index.js +8 -9
  246. package/dist/es2019/ui/Alignment/styles.js +3 -2
  247. package/dist/es2019/ui/Appearance/Chromeless.js +18 -13
  248. package/dist/es2019/ui/Appearance/Comment/Comment.js +34 -30
  249. package/dist/es2019/ui/Appearance/Comment/Toolbar.js +15 -15
  250. package/dist/es2019/ui/Appearance/FullPage/FullPage.js +8 -4
  251. package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +28 -18
  252. package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +21 -14
  253. package/dist/es2019/ui/Appearance/FullPage/MainToolbar.js +41 -51
  254. package/dist/es2019/ui/Appearance/FullPage/StyledComponents.js +59 -58
  255. package/dist/es2019/ui/AppearanceComponents/Mobile.js +12 -13
  256. package/dist/es2019/ui/ChromeCollapsed/index.js +7 -3
  257. package/dist/es2019/ui/ChromeCollapsed/styles.js +2 -2
  258. package/dist/es2019/ui/ColorPalette/Color/index.js +10 -4
  259. package/dist/es2019/ui/ColorPalette/Color/styles.js +3 -3
  260. package/dist/es2019/ui/ColorPalette/Palettes/panelBackgroundPalette.js +1 -1
  261. package/dist/es2019/ui/ColorPalette/index.js +6 -3
  262. package/dist/es2019/ui/ColorPalette/styles.js +2 -2
  263. package/dist/es2019/ui/ColorPickerButton/index.js +12 -7
  264. package/dist/es2019/ui/ConfigPanel/Fields/Boolean.js +11 -4
  265. package/dist/es2019/ui/ConfigPanel/Fields/CheckboxGroup.js +13 -10
  266. package/dist/es2019/ui/ConfigPanel/Fields/ColorPicker.js +16 -10
  267. package/dist/es2019/ui/ConfigPanel/Fields/DateRange.js +28 -19
  268. package/dist/es2019/ui/ConfigPanel/Fields/Expand.js +24 -16
  269. package/dist/es2019/ui/ConfigPanel/Fields/Fieldset.js +18 -13
  270. package/dist/es2019/ui/ConfigPanel/Fields/SelectItem.js +15 -15
  271. package/dist/es2019/ui/ConfigPanel/Fields/common/RequiredIndicator.js +2 -2
  272. package/dist/es2019/ui/ConfigPanel/LoadingState.js +6 -4
  273. package/dist/es2019/ui/ConfigPanel/NestedForms/RemovableField.js +15 -10
  274. package/dist/es2019/ui/ContentStyles/index.js +20 -17
  275. package/dist/es2019/ui/ContextPanel/index.js +27 -37
  276. package/dist/es2019/ui/DropdownMenu/index.js +28 -20
  277. package/dist/es2019/ui/ElementBrowser/InsertMenu.js +34 -15
  278. package/dist/es2019/ui/ElementBrowser/components/CategoryList.js +9 -5
  279. package/dist/es2019/ui/ElementBrowser/components/ElementBrowserLoader.js +6 -3
  280. package/dist/es2019/ui/ElementBrowser/components/ElementList/ElementList.js +7 -5
  281. package/dist/es2019/ui/ElementBrowser/components/ElementSearch.js +31 -18
  282. package/dist/es2019/ui/FloatingToolbar/index.js +8 -8
  283. package/dist/es2019/ui/FloatingToolbar/styles.js +5 -7
  284. package/dist/es2019/ui/LinkSearch/LinkSearchListItem.js +30 -14
  285. package/dist/es2019/ui/LinkSearch/ToolbarComponents.js +7 -12
  286. package/dist/es2019/ui/PanelTextInput/index.js +7 -5
  287. package/dist/es2019/ui/PanelTextInput/styles.js +7 -3
  288. package/dist/es2019/ui/PluginSlot/index.js +8 -4
  289. package/dist/es2019/ui/Toolbar/ToolbarWithSizeDetector.js +15 -12
  290. package/dist/es2019/ui/ToolbarButton/index.js +8 -5
  291. package/dist/es2019/ui/ToolbarFeedback/index.js +21 -8
  292. package/dist/es2019/ui/ToolbarFeedback/styles.js +9 -11
  293. package/dist/es2019/ui/styles.js +24 -20
  294. package/dist/es2019/utils/prosemirror/autojoin.js +70 -0
  295. package/dist/es2019/version-wrapper.js +1 -1
  296. package/dist/es2019/version.json +1 -1
  297. package/dist/esm/editor.js +16 -13
  298. package/dist/esm/i18n/cs.js +1 -1
  299. package/dist/esm/i18n/de.js +3 -3
  300. package/dist/esm/i18n/en.js +277 -131
  301. package/dist/esm/i18n/en_GB.js +278 -132
  302. package/dist/esm/i18n/es.js +1 -1
  303. package/dist/esm/i18n/hu.js +2 -2
  304. package/dist/esm/i18n/ko.js +2 -2
  305. package/dist/esm/i18n/nb.js +1 -1
  306. package/dist/esm/i18n/pl.js +24 -0
  307. package/dist/esm/i18n/th.js +2 -2
  308. package/dist/esm/i18n/tr.js +2 -2
  309. package/dist/esm/i18n/vi.js +1 -1
  310. package/dist/esm/i18n/zh.js +3 -0
  311. package/dist/esm/index.js +3 -3
  312. package/dist/esm/nodeviews/getInlineNodeViewProducer.js +1 -1
  313. package/dist/esm/nodeviews/getInlineNodeViewProducer.styles.js +1 -1
  314. package/dist/esm/plugins/base/pm-plugins/inline-cursor-target.js +15 -16
  315. package/dist/esm/plugins/block-type/ui/ToolbarBlockType/blocktype-button.js +13 -9
  316. package/dist/esm/plugins/block-type/ui/ToolbarBlockType/index.js +16 -8
  317. package/dist/esm/plugins/block-type/ui/ToolbarBlockType/styled.js +4 -6
  318. package/dist/esm/plugins/card/nodeviews/inlineCard.js +14 -38
  319. package/dist/esm/plugins/card/pm-plugins/main.js +18 -17
  320. package/dist/esm/plugins/card/ui/LinkToolbarButtonGroup.js +26 -27
  321. package/dist/esm/plugins/code-block/pm-plugins/keymaps.js +1 -1
  322. package/dist/esm/plugins/emoji/ui/Emoji/index.js +6 -3
  323. package/dist/esm/plugins/extension/nodeviews/extension.js +5 -0
  324. package/dist/esm/plugins/extension/ui/Extension/Extension/index.js +8 -4
  325. package/dist/esm/plugins/extension/ui/Extension/Extension/styles.js +10 -9
  326. package/dist/esm/plugins/find-replace/ui/FindReplaceToolbarButton.js +15 -13
  327. package/dist/esm/plugins/floating-toolbar/ui/Dropdown.js +17 -10
  328. package/dist/esm/plugins/floating-toolbar/ui/DropdownMenu.js +13 -9
  329. package/dist/esm/plugins/floating-toolbar/ui/EmojiPickerButton.js +14 -9
  330. package/dist/esm/plugins/floating-toolbar/ui/Input.js +6 -3
  331. package/dist/esm/plugins/floating-toolbar/ui/Separator.js +5 -4
  332. package/dist/esm/plugins/floating-toolbar/ui/Toolbar.js +30 -22
  333. package/dist/esm/plugins/grid/index.js +1 -1
  334. package/dist/esm/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +24 -15
  335. package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/dropdown-button.js +13 -7
  336. package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/index.js +25 -23
  337. package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/item.js +9 -5
  338. package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/styles.js +2 -2
  339. package/dist/esm/plugins/list/actions/wrap-and-join-lists.js +3 -73
  340. package/dist/esm/plugins/list/ui/ToolbarLists/index.js +33 -18
  341. package/dist/esm/plugins/media/commands/helpers.js +45 -25
  342. package/dist/esm/plugins/media/nodeviews/mediaSingle.js +12 -10
  343. package/dist/esm/plugins/media/nodeviews/styles.js +13 -10
  344. package/dist/esm/plugins/media/picker-facade.js +7 -71
  345. package/dist/esm/plugins/media/pm-plugins/main.js +14 -57
  346. package/dist/esm/plugins/media/toolbar/linking-toolbar-appearance.js +17 -12
  347. package/dist/esm/plugins/media/ui/CaptionPlaceholder/index.js +6 -5
  348. package/dist/esm/plugins/media/ui/Media/DropPlaceholder.js +10 -6
  349. package/dist/esm/plugins/media/ui/MediaLinkingToolbar.js +23 -16
  350. package/dist/esm/plugins/media/ui/MediaPicker/PickerFacadeProvider.js +1 -2
  351. package/dist/esm/plugins/media/ui/MediaPicker/index.js +1 -1
  352. package/dist/esm/plugins/mentions/ui/InviteItem/index.js +19 -6
  353. package/dist/esm/plugins/mentions/ui/InviteItem/styles.js +8 -12
  354. package/dist/esm/plugins/panel/actions.js +1 -1
  355. package/dist/esm/plugins/panel/nodeviews/panel.js +1 -1
  356. package/dist/esm/plugins/panel/pm-plugins/main.js +1 -1
  357. package/dist/esm/plugins/panel/styles.js +1 -1
  358. package/dist/esm/plugins/panel/toolbar.js +1 -1
  359. package/dist/esm/plugins/panel/utils.js +1 -1
  360. package/dist/esm/plugins/paste/handlers.js +6 -3
  361. package/dist/esm/plugins/paste/pm-plugins/main.js +26 -61
  362. package/dist/esm/plugins/status/nodeviews/status.js +9 -9
  363. package/dist/esm/plugins/status/ui/statusPicker.js +7 -5
  364. package/dist/esm/plugins/table/commands/insert.js +0 -5
  365. package/dist/esm/plugins/table/pm-plugins/main.js +62 -1
  366. package/dist/esm/plugins/table/ui/FloatingContextualMenu/ContextualMenu.js +19 -11
  367. package/dist/esm/plugins/table/ui/common-styles.js +3 -7
  368. package/dist/esm/plugins/table/utils/paste.js +8 -3
  369. package/dist/esm/plugins/tasks-and-decisions/commands.js +35 -11
  370. package/dist/esm/plugins/tasks-and-decisions/index.js +19 -18
  371. package/dist/esm/plugins/tasks-and-decisions/pm-plugins/input-rules.js +21 -17
  372. package/dist/esm/plugins/tasks-and-decisions/ui/ToolbarDecision/index.js +2 -2
  373. package/dist/esm/plugins/tasks-and-decisions/ui/ToolbarTask/index.js +2 -2
  374. package/dist/esm/plugins/text-color/ui/ToolbarTextColor/index.js +23 -11
  375. package/dist/esm/plugins/text-color/ui/ToolbarTextColor/styles.js +7 -15
  376. package/dist/esm/plugins/text-formatting/ui/Toolbar/hooks/clear-formatting-icon.js +7 -3
  377. package/dist/esm/plugins/text-formatting/ui/Toolbar/hooks/formatting-icons.js +9 -5
  378. package/dist/esm/plugins/text-formatting/ui/Toolbar/index.js +15 -9
  379. package/dist/esm/plugins/text-formatting/ui/Toolbar/more-button.js +7 -3
  380. package/dist/esm/plugins/text-formatting/ui/Toolbar/single-toolbar-buttons.js +6 -4
  381. package/dist/esm/plugins/type-ahead/ui/InputQuery.js +13 -5
  382. package/dist/esm/plugins/type-ahead/ui/TypeAheadListItem.js +25 -14
  383. package/dist/esm/plugins/type-ahead/ui/TypeAheadPopup.js +8 -6
  384. package/dist/esm/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +15 -11
  385. package/dist/esm/ui/Addon/ClickAreaBlock/index.js +6 -4
  386. package/dist/esm/ui/Addon/ClickAreaInline/index.js +5 -4
  387. package/dist/esm/ui/Addon/ClickAreaMobile/index.js +13 -10
  388. package/dist/esm/ui/Addon/Dropdown/index.js +6 -2
  389. package/dist/esm/ui/Addon/Dropdown/styles.js +2 -2
  390. package/dist/esm/ui/Addon/DropdownItem/index.js +6 -4
  391. package/dist/esm/ui/Addon/DropdownItem/styles.js +2 -2
  392. package/dist/esm/ui/Alignment/index.js +8 -9
  393. package/dist/esm/ui/Alignment/styles.js +2 -2
  394. package/dist/esm/ui/Appearance/Chromeless.js +12 -14
  395. package/dist/esm/ui/Appearance/Comment/Comment.js +31 -31
  396. package/dist/esm/ui/Appearance/Comment/Toolbar.js +13 -16
  397. package/dist/esm/ui/Appearance/FullPage/FullPage.js +7 -4
  398. package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +28 -18
  399. package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +22 -14
  400. package/dist/esm/ui/Appearance/FullPage/MainToolbar.js +21 -24
  401. package/dist/esm/ui/Appearance/FullPage/StyledComponents.js +35 -34
  402. package/dist/esm/ui/AppearanceComponents/Mobile.js +13 -14
  403. package/dist/esm/ui/ChromeCollapsed/index.js +6 -3
  404. package/dist/esm/ui/ChromeCollapsed/styles.js +2 -2
  405. package/dist/esm/ui/ColorPalette/Color/index.js +9 -4
  406. package/dist/esm/ui/ColorPalette/Color/styles.js +3 -3
  407. package/dist/esm/ui/ColorPalette/Palettes/panelBackgroundPalette.js +1 -1
  408. package/dist/esm/ui/ColorPalette/index.js +7 -4
  409. package/dist/esm/ui/ColorPalette/styles.js +2 -2
  410. package/dist/esm/ui/ColorPickerButton/index.js +12 -7
  411. package/dist/esm/ui/ConfigPanel/Fields/Boolean.js +11 -4
  412. package/dist/esm/ui/ConfigPanel/Fields/CheckboxGroup.js +12 -10
  413. package/dist/esm/ui/ConfigPanel/Fields/ColorPicker.js +16 -10
  414. package/dist/esm/ui/ConfigPanel/Fields/DateRange.js +27 -19
  415. package/dist/esm/ui/ConfigPanel/Fields/Expand.js +30 -21
  416. package/dist/esm/ui/ConfigPanel/Fields/Fieldset.js +17 -13
  417. package/dist/esm/ui/ConfigPanel/Fields/SelectItem.js +18 -18
  418. package/dist/esm/ui/ConfigPanel/Fields/common/RequiredIndicator.js +2 -2
  419. package/dist/esm/ui/ConfigPanel/LoadingState.js +6 -4
  420. package/dist/esm/ui/ConfigPanel/NestedForms/RemovableField.js +13 -12
  421. package/dist/esm/ui/ContentStyles/index.js +20 -17
  422. package/dist/esm/ui/ContextPanel/index.js +31 -48
  423. package/dist/esm/ui/DropdownMenu/index.js +21 -22
  424. package/dist/esm/ui/ElementBrowser/InsertMenu.js +39 -16
  425. package/dist/esm/ui/ElementBrowser/components/CategoryList.js +9 -6
  426. package/dist/esm/ui/ElementBrowser/components/ElementBrowserLoader.js +6 -3
  427. package/dist/esm/ui/ElementBrowser/components/ElementList/ElementList.js +7 -5
  428. package/dist/esm/ui/ElementBrowser/components/ElementSearch.js +20 -18
  429. package/dist/esm/ui/FloatingToolbar/index.js +8 -8
  430. package/dist/esm/ui/FloatingToolbar/styles.js +4 -5
  431. package/dist/esm/ui/LinkSearch/LinkSearchListItem.js +27 -16
  432. package/dist/esm/ui/LinkSearch/ToolbarComponents.js +4 -7
  433. package/dist/esm/ui/PanelTextInput/index.js +6 -5
  434. package/dist/esm/ui/PanelTextInput/styles.js +6 -5
  435. package/dist/esm/ui/PluginSlot/index.js +7 -4
  436. package/dist/esm/ui/Toolbar/ToolbarWithSizeDetector.js +14 -12
  437. package/dist/esm/ui/ToolbarButton/index.js +8 -5
  438. package/dist/esm/ui/ToolbarFeedback/index.js +20 -8
  439. package/dist/esm/ui/ToolbarFeedback/styles.js +8 -11
  440. package/dist/esm/ui/styles.js +17 -23
  441. package/dist/esm/utils/prosemirror/autojoin.js +76 -0
  442. package/dist/esm/version-wrapper.js +1 -1
  443. package/dist/esm/version.json +1 -1
  444. package/dist/types/commands/index.d.ts +2 -1
  445. package/dist/types/create-editor/ErrorBoundary.d.ts +1 -1
  446. package/dist/types/create-editor/ReactEditorView.d.ts +1 -1
  447. package/dist/types/create-editor/WithEditorView.d.ts +1 -1
  448. package/dist/types/editor.d.ts +8 -8
  449. package/dist/types/i18n/en.d.ts +276 -130
  450. package/dist/types/i18n/en_GB.d.ts +276 -130
  451. package/dist/types/i18n/pl.d.ts +24 -0
  452. package/dist/types/i18n/zh.d.ts +3 -0
  453. package/dist/types/index.d.ts +2 -2
  454. package/dist/types/labs/EditorWithActions/index.d.ts +1 -1
  455. package/dist/types/labs/next/full-page.d.ts +1 -1
  456. package/dist/types/labs/next/internal/context/shared-config.d.ts +2 -2
  457. package/dist/types/labs/next/mobile.d.ts +1 -1
  458. package/dist/types/plugins/alignment/commands/index.d.ts +3 -2
  459. package/dist/types/plugins/base/pm-plugins/inline-cursor-target.d.ts +1 -3
  460. package/dist/types/plugins/block-type/ui/ToolbarBlockType/blocktype-button.d.ts +1 -0
  461. package/dist/types/plugins/block-type/ui/ToolbarBlockType/styled.d.ts +2 -4
  462. package/dist/types/plugins/card/nodeviews/blockCard.d.ts +1 -1
  463. package/dist/types/plugins/card/nodeviews/embedCard.d.ts +1 -1
  464. package/dist/types/plugins/card/nodeviews/inlineCard.d.ts +3 -6
  465. package/dist/types/plugins/card/pm-plugins/main.d.ts +1 -1
  466. package/dist/types/plugins/card/pm-plugins/util/resolve.d.ts +1 -1
  467. package/dist/types/plugins/card/pm-plugins/util/state.d.ts +2 -2
  468. package/dist/types/plugins/card/toolbar.d.ts +1 -1
  469. package/dist/types/plugins/card/ui/LinkToolbarAppearance.d.ts +1 -1
  470. package/dist/types/plugins/card/ui/LinkToolbarButtonGroup.d.ts +2 -7
  471. package/dist/types/plugins/card/ui/ResizableEmbedCard.d.ts +1 -1
  472. package/dist/types/plugins/card/utils.d.ts +1 -1
  473. package/dist/types/plugins/date/actions.d.ts +2 -1
  474. package/dist/types/plugins/emoji/ui/Emoji/index.d.ts +3 -2
  475. package/dist/types/plugins/emoji/ui/EmojiContextProvider/index.d.ts +1 -1
  476. package/dist/types/plugins/extension/ui/Extension/Extension/index.d.ts +2 -2
  477. package/dist/types/plugins/extension/ui/Extension/Extension/styles.d.ts +3 -4
  478. package/dist/types/plugins/feature-flags-context/get-enabled-feature-flag-keys.d.ts +1 -1
  479. package/dist/types/plugins/find-replace/ui/FindReplaceToolbarButton.d.ts +1 -0
  480. package/dist/types/plugins/floating-toolbar/index.d.ts +1 -1
  481. package/dist/types/plugins/floating-toolbar/ui/Dropdown.d.ts +3 -1
  482. package/dist/types/plugins/floating-toolbar/ui/DropdownMenu.d.ts +3 -3
  483. package/dist/types/plugins/floating-toolbar/ui/Input.d.ts +3 -1
  484. package/dist/types/plugins/floating-toolbar/ui/Separator.d.ts +3 -2
  485. package/dist/types/plugins/floating-toolbar/ui/Toolbar.d.ts +2 -1
  486. package/dist/types/plugins/floating-toolbar/ui/ToolbarLoader.d.ts +1 -1
  487. package/dist/types/plugins/help-dialog/ui/HelpDialogLoader.d.ts +1 -1
  488. package/dist/types/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.d.ts +1 -1
  489. package/dist/types/plugins/insert-block/ui/ToolbarInsertBlock/dropdown-button.d.ts +1 -0
  490. package/dist/types/plugins/insert-block/ui/ToolbarInsertBlock/index.d.ts +3 -1
  491. package/dist/types/plugins/insert-block/ui/ToolbarInsertBlock/item.d.ts +1 -0
  492. package/dist/types/plugins/insert-block/ui/ToolbarInsertBlock/styles.d.ts +1 -2
  493. package/dist/types/plugins/list/actions/wrap-and-join-lists.d.ts +1 -11
  494. package/dist/types/plugins/list/ui/ToolbarLists/index.d.ts +3 -3
  495. package/dist/types/plugins/media/commands/helpers.d.ts +2 -2
  496. package/dist/types/plugins/media/nodeviews/mediaSingle.d.ts +4 -2
  497. package/dist/types/plugins/media/nodeviews/styles.d.ts +4 -2
  498. package/dist/types/plugins/media/picker-facade.d.ts +5 -12
  499. package/dist/types/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.d.ts +1 -1
  500. package/dist/types/plugins/media/pm-plugins/main.d.ts +1 -4
  501. package/dist/types/plugins/media/pm-plugins/types.d.ts +0 -1
  502. package/dist/types/plugins/media/toolbar/linking-toolbar-appearance.d.ts +1 -0
  503. package/dist/types/plugins/media/types.d.ts +0 -1
  504. package/dist/types/plugins/media/ui/CaptionPlaceholder/index.d.ts +3 -2
  505. package/dist/types/plugins/media/ui/Media/DropPlaceholder.d.ts +3 -2
  506. package/dist/types/plugins/media/ui/MediaLinkingToolbar.d.ts +3 -1
  507. package/dist/types/plugins/media/ui/MediaPicker/PickerFacadeProvider.d.ts +1 -1
  508. package/dist/types/plugins/media/ui/ResizableMediaSingle/index.d.ts +1 -1
  509. package/dist/types/plugins/media/utils/media-files.d.ts +3 -2
  510. package/dist/types/plugins/media/utils/media-single.d.ts +2 -2
  511. package/dist/types/plugins/mentions/analytics.d.ts +4 -3
  512. package/dist/types/plugins/mentions/ui/InviteItem/styles.d.ts +6 -6
  513. package/dist/types/plugins/quick-insert/assets/index.d.ts +24 -24
  514. package/dist/types/plugins/status/nodeviews/status.d.ts +1 -4
  515. package/dist/types/plugins/status/ui/statusPicker.d.ts +4 -2
  516. package/dist/types/plugins/table/nodeviews/tableCell.d.ts +0 -1
  517. package/dist/types/plugins/table/types.d.ts +0 -1
  518. package/dist/types/plugins/table/ui/FloatingContextualMenu/ContextualMenu.d.ts +6 -4
  519. package/dist/types/plugins/table/ui/common-styles.d.ts +0 -2
  520. package/dist/types/plugins/table/utils/paste.d.ts +2 -0
  521. package/dist/types/plugins/tasks-and-decisions/commands.d.ts +5 -2
  522. package/dist/types/plugins/text-color/ui/ToolbarTextColor/index.d.ts +3 -1
  523. package/dist/types/plugins/text-color/ui/ToolbarTextColor/styles.d.ts +3 -11
  524. package/dist/types/plugins/text-formatting/ui/Toolbar/index.d.ts +1 -0
  525. package/dist/types/plugins/text-formatting/ui/Toolbar/more-button.d.ts +1 -0
  526. package/dist/types/plugins/text-formatting/ui/Toolbar/single-toolbar-buttons.d.ts +1 -0
  527. package/dist/types/plugins/type-ahead/api.d.ts +1 -2
  528. package/dist/types/plugins/type-ahead/ui/InputQuery.d.ts +1 -0
  529. package/dist/types/plugins/type-ahead/ui/TypeAheadList.d.ts +8 -5
  530. package/dist/types/plugins/type-ahead/ui/TypeAheadListItem.d.ts +2 -1
  531. package/dist/types/plugins/type-ahead/ui/TypeAheadPopup.d.ts +1 -0
  532. package/dist/types/plugins/type-ahead/ui/hooks/use-resize-observer.d.ts +0 -1
  533. package/dist/types/plugins/undo-redo/ui/ToolbarUndoRedo/index.d.ts +6 -4
  534. package/dist/types/ui/Addon/ClickAreaBlock/index.d.ts +3 -1
  535. package/dist/types/ui/Addon/ClickAreaInline/index.d.ts +3 -1
  536. package/dist/types/ui/Addon/ClickAreaMobile/index.d.ts +3 -1
  537. package/dist/types/ui/Addon/Dropdown/index.d.ts +3 -1
  538. package/dist/types/ui/Addon/Dropdown/styles.d.ts +1 -2
  539. package/dist/types/ui/Addon/DropdownItem/index.d.ts +3 -2
  540. package/dist/types/ui/Addon/DropdownItem/styles.d.ts +1 -2
  541. package/dist/types/ui/Alignment/index.d.ts +3 -3
  542. package/dist/types/ui/Alignment/styles.d.ts +1 -2
  543. package/dist/types/ui/Appearance/Chromeless.d.ts +3 -1
  544. package/dist/types/ui/Appearance/Comment/Comment.d.ts +1 -0
  545. package/dist/types/ui/Appearance/Comment/Toolbar.d.ts +2 -2
  546. package/dist/types/ui/Appearance/FullPage/FullPage.d.ts +3 -1
  547. package/dist/types/ui/Appearance/FullPage/FullPageToolbar.d.ts +1 -0
  548. package/dist/types/ui/Appearance/FullPage/MainToolbar.d.ts +6 -12
  549. package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +376 -17
  550. package/dist/types/ui/AppearanceComponents/Mobile.d.ts +3 -1
  551. package/dist/types/ui/ChromeCollapsed/index.d.ts +1 -0
  552. package/dist/types/ui/ChromeCollapsed/styles.d.ts +1 -4
  553. package/dist/types/ui/ColorPalette/Color/index.d.ts +3 -1
  554. package/dist/types/ui/ColorPalette/Color/styles.d.ts +2 -3
  555. package/dist/types/ui/ColorPalette/index.d.ts +1 -0
  556. package/dist/types/ui/ColorPalette/styles.d.ts +1 -2
  557. package/dist/types/ui/ColorPickerButton/index.d.ts +2 -1
  558. package/dist/types/ui/ConfigPanel/ConfigPanel.d.ts +1 -1
  559. package/dist/types/ui/ConfigPanel/ConfigPanelLoader.d.ts +1 -1
  560. package/dist/types/ui/ConfigPanel/ErrorMessage/index.d.ts +5 -4
  561. package/dist/types/ui/ConfigPanel/Fields/CheckboxGroup.d.ts +2 -2
  562. package/dist/types/ui/ConfigPanel/Fields/ColorPicker.d.ts +3 -2
  563. package/dist/types/ui/ConfigPanel/Fields/DateRange.d.ts +3 -3
  564. package/dist/types/ui/ConfigPanel/Fields/Expand.d.ts +11 -7
  565. package/dist/types/ui/ConfigPanel/Fields/Fieldset.d.ts +1 -0
  566. package/dist/types/ui/ConfigPanel/Fields/SelectItem.d.ts +3 -2
  567. package/dist/types/ui/ConfigPanel/Fields/TabGroup.d.ts +6 -4
  568. package/dist/types/ui/ConfigPanel/Fields/common/RequiredIndicator.d.ts +1 -2
  569. package/dist/types/ui/ConfigPanel/FormErrorBoundary.d.ts +1 -1
  570. package/dist/types/ui/ConfigPanel/Header.d.ts +13 -7
  571. package/dist/types/ui/ConfigPanel/LoadingState.d.ts +3 -2
  572. package/dist/types/ui/ConfigPanel/NestedForms/RemovableField.d.ts +14 -8
  573. package/dist/types/ui/ContentStyles/index.d.ts +4 -1
  574. package/dist/types/ui/ContextPanel/index.d.ts +8 -14
  575. package/dist/types/ui/DropdownMenu/index.d.ts +3 -1
  576. package/dist/types/ui/EditorContext/index.d.ts +1 -1
  577. package/dist/types/ui/ElementBrowser/InsertMenu.d.ts +2 -2
  578. package/dist/types/ui/ElementBrowser/components/CategoryList.d.ts +1 -1
  579. package/dist/types/ui/ElementBrowser/components/ElementBrowserLoader.d.ts +1 -1
  580. package/dist/types/ui/ElementBrowser/components/ElementList/ElementList.d.ts +1 -1
  581. package/dist/types/ui/ElementBrowser/components/ElementSearch.d.ts +3 -2
  582. package/dist/types/ui/ElementBrowser/components/StatelessElementBrowser.d.ts +1 -1
  583. package/dist/types/ui/FloatingToolbar/index.d.ts +3 -2
  584. package/dist/types/ui/FloatingToolbar/styles.d.ts +1 -5
  585. package/dist/types/ui/LinkSearch/LinkSearchListItem.d.ts +5 -7
  586. package/dist/types/ui/LinkSearch/ToolbarComponents.d.ts +3 -8
  587. package/dist/types/ui/LinkSearch/index.d.ts +20 -20
  588. package/dist/types/ui/LinkSearch/withActivityProvider.d.ts +21 -20
  589. package/dist/types/ui/PanelTextInput/index.d.ts +3 -1
  590. package/dist/types/ui/PanelTextInput/styles.d.ts +2 -4
  591. package/dist/types/ui/PluginSlot/index.d.ts +3 -1
  592. package/dist/types/ui/Toolbar/ToolbarWithSizeDetector.d.ts +1 -0
  593. package/dist/types/ui/Toolbar/toolbar-size.d.ts +3 -2
  594. package/dist/types/ui/ToolbarButton/index.d.ts +5 -7
  595. package/dist/types/ui/ToolbarButton/styles.d.ts +2 -4
  596. package/dist/types/ui/ToolbarFeedback/index.d.ts +4 -2
  597. package/dist/types/ui/ToolbarFeedback/styles.d.ts +6 -7
  598. package/dist/types/ui/WithEditorActions/index.d.ts +2 -2
  599. package/dist/types/ui/WithHelpTrigger/index.d.ts +1 -1
  600. package/dist/types/ui/WithPluginState/index.d.ts +3 -3
  601. package/dist/types/ui/styles.d.ts +12 -22
  602. package/dist/types/utils/nodes.d.ts +2 -1
  603. package/dist/types/utils/prosemirror/autojoin.d.ts +13 -0
  604. package/package.json +23 -23
  605. package/dist/cjs/ui/Separator/index.js +0 -21
  606. package/dist/es2019/ui/Separator/index.js +0 -9
  607. package/dist/esm/ui/Separator/index.js +0 -8
  608. package/dist/types/ui/Separator/index.d.ts +0 -3
@@ -2,13 +2,13 @@ import React from 'react';
2
2
  import { WithActivityProviderProps } from './withActivityProvider';
3
3
  import { RecentSearchProps } from './types';
4
4
  declare const _default: {
5
- new (props: Readonly<Pick<RecentSearchProps & WithActivityProviderProps, "render" | "onBlur" | "onSubmit" | "limit" | "defaultUrl"> & import("./withActivityProvider").ExpandedActivityProviderProps>): {
5
+ new (props: Readonly<import("@atlaskit/editor-common/utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps>): {
6
6
  renderNode: (providers: import("@atlaskit/editor-common/provider-factory").Providers) => JSX.Element;
7
7
  render(): JSX.Element;
8
8
  context: any;
9
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<RecentSearchProps & WithActivityProviderProps, "render" | "onBlur" | "onSubmit" | "limit" | "defaultUrl"> & import("./withActivityProvider").ExpandedActivityProviderProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
9
+ setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("@atlaskit/editor-common/utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
10
10
  forceUpdate(callBack?: (() => void) | undefined): void;
11
- readonly props: Readonly<Pick<RecentSearchProps & WithActivityProviderProps, "render" | "onBlur" | "onSubmit" | "limit" | "defaultUrl"> & import("./withActivityProvider").ExpandedActivityProviderProps> & Readonly<{
11
+ readonly props: Readonly<import("@atlaskit/editor-common/utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps> & Readonly<{
12
12
  children?: React.ReactNode;
13
13
  }>;
14
14
  state: Readonly<{}>;
@@ -16,25 +16,25 @@ declare const _default: {
16
16
  [key: string]: React.ReactInstance;
17
17
  };
18
18
  componentDidMount?(): void;
19
- shouldComponentUpdate?(nextProps: Readonly<Pick<RecentSearchProps & WithActivityProviderProps, "render" | "onBlur" | "onSubmit" | "limit" | "defaultUrl"> & import("./withActivityProvider").ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any): boolean;
19
+ shouldComponentUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any): boolean;
20
20
  componentWillUnmount?(): void;
21
21
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
22
- getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<RecentSearchProps & WithActivityProviderProps, "render" | "onBlur" | "onSubmit" | "limit" | "defaultUrl"> & import("./withActivityProvider").ExpandedActivityProviderProps>, prevState: Readonly<{}>): any;
23
- componentDidUpdate?(prevProps: Readonly<Pick<RecentSearchProps & WithActivityProviderProps, "render" | "onBlur" | "onSubmit" | "limit" | "defaultUrl"> & import("./withActivityProvider").ExpandedActivityProviderProps>, prevState: Readonly<{}>, snapshot?: any): void;
22
+ getSnapshotBeforeUpdate?(prevProps: Readonly<import("@atlaskit/editor-common/utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps>, prevState: Readonly<{}>): any;
23
+ componentDidUpdate?(prevProps: Readonly<import("@atlaskit/editor-common/utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps>, prevState: Readonly<{}>, snapshot?: any): void;
24
24
  componentWillMount?(): void;
25
25
  UNSAFE_componentWillMount?(): void;
26
- componentWillReceiveProps?(nextProps: Readonly<Pick<RecentSearchProps & WithActivityProviderProps, "render" | "onBlur" | "onSubmit" | "limit" | "defaultUrl"> & import("./withActivityProvider").ExpandedActivityProviderProps>, nextContext: any): void;
27
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<RecentSearchProps & WithActivityProviderProps, "render" | "onBlur" | "onSubmit" | "limit" | "defaultUrl"> & import("./withActivityProvider").ExpandedActivityProviderProps>, nextContext: any): void;
28
- componentWillUpdate?(nextProps: Readonly<Pick<RecentSearchProps & WithActivityProviderProps, "render" | "onBlur" | "onSubmit" | "limit" | "defaultUrl"> & import("./withActivityProvider").ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any): void;
29
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<RecentSearchProps & WithActivityProviderProps, "render" | "onBlur" | "onSubmit" | "limit" | "defaultUrl"> & import("./withActivityProvider").ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any): void;
26
+ componentWillReceiveProps?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps>, nextContext: any): void;
27
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps>, nextContext: any): void;
28
+ componentWillUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any): void;
29
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any): void;
30
30
  };
31
- new (props: Pick<RecentSearchProps & WithActivityProviderProps, "render" | "onBlur" | "onSubmit" | "limit" | "defaultUrl"> & import("./withActivityProvider").ExpandedActivityProviderProps, context?: any): {
31
+ new (props: import("@atlaskit/editor-common/utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps, context?: any): {
32
32
  renderNode: (providers: import("@atlaskit/editor-common/provider-factory").Providers) => JSX.Element;
33
33
  render(): JSX.Element;
34
34
  context: any;
35
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<RecentSearchProps & WithActivityProviderProps, "render" | "onBlur" | "onSubmit" | "limit" | "defaultUrl"> & import("./withActivityProvider").ExpandedActivityProviderProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
35
+ setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("@atlaskit/editor-common/utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
36
36
  forceUpdate(callBack?: (() => void) | undefined): void;
37
- readonly props: Readonly<Pick<RecentSearchProps & WithActivityProviderProps, "render" | "onBlur" | "onSubmit" | "limit" | "defaultUrl"> & import("./withActivityProvider").ExpandedActivityProviderProps> & Readonly<{
37
+ readonly props: Readonly<import("@atlaskit/editor-common/utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps> & Readonly<{
38
38
  children?: React.ReactNode;
39
39
  }>;
40
40
  state: Readonly<{}>;
@@ -42,17 +42,17 @@ declare const _default: {
42
42
  [key: string]: React.ReactInstance;
43
43
  };
44
44
  componentDidMount?(): void;
45
- shouldComponentUpdate?(nextProps: Readonly<Pick<RecentSearchProps & WithActivityProviderProps, "render" | "onBlur" | "onSubmit" | "limit" | "defaultUrl"> & import("./withActivityProvider").ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any): boolean;
45
+ shouldComponentUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any): boolean;
46
46
  componentWillUnmount?(): void;
47
47
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
48
- getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<RecentSearchProps & WithActivityProviderProps, "render" | "onBlur" | "onSubmit" | "limit" | "defaultUrl"> & import("./withActivityProvider").ExpandedActivityProviderProps>, prevState: Readonly<{}>): any;
49
- componentDidUpdate?(prevProps: Readonly<Pick<RecentSearchProps & WithActivityProviderProps, "render" | "onBlur" | "onSubmit" | "limit" | "defaultUrl"> & import("./withActivityProvider").ExpandedActivityProviderProps>, prevState: Readonly<{}>, snapshot?: any): void;
48
+ getSnapshotBeforeUpdate?(prevProps: Readonly<import("@atlaskit/editor-common/utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps>, prevState: Readonly<{}>): any;
49
+ componentDidUpdate?(prevProps: Readonly<import("@atlaskit/editor-common/utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps>, prevState: Readonly<{}>, snapshot?: any): void;
50
50
  componentWillMount?(): void;
51
51
  UNSAFE_componentWillMount?(): void;
52
- componentWillReceiveProps?(nextProps: Readonly<Pick<RecentSearchProps & WithActivityProviderProps, "render" | "onBlur" | "onSubmit" | "limit" | "defaultUrl"> & import("./withActivityProvider").ExpandedActivityProviderProps>, nextContext: any): void;
53
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<RecentSearchProps & WithActivityProviderProps, "render" | "onBlur" | "onSubmit" | "limit" | "defaultUrl"> & import("./withActivityProvider").ExpandedActivityProviderProps>, nextContext: any): void;
54
- componentWillUpdate?(nextProps: Readonly<Pick<RecentSearchProps & WithActivityProviderProps, "render" | "onBlur" | "onSubmit" | "limit" | "defaultUrl"> & import("./withActivityProvider").ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any): void;
55
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<RecentSearchProps & WithActivityProviderProps, "render" | "onBlur" | "onSubmit" | "limit" | "defaultUrl"> & import("./withActivityProvider").ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any): void;
52
+ componentWillReceiveProps?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps>, nextContext: any): void;
53
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps>, nextContext: any): void;
54
+ componentWillUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any): void;
55
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any): void;
56
56
  };
57
57
  contextType?: React.Context<any> | undefined;
58
58
  };
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import { ActivityProvider } from '@atlaskit/activity-provider';
3
3
  import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
4
4
  import type { Providers } from '@atlaskit/editor-common/provider-factory';
5
+ import type { Diff } from '@atlaskit/editor-common/utils';
5
6
  export interface ExpandedActivityProviderProps {
6
7
  providerFactory: ProviderFactory;
7
8
  }
@@ -9,13 +10,13 @@ export interface WithActivityProviderProps {
9
10
  activityProvider: ActivityProvider;
10
11
  }
11
12
  export default function withActivityProvider<Props>(WrappedComponent: React.ComponentType<Props & WithActivityProviderProps>): {
12
- new (props: Readonly<Pick<Props, Exclude<keyof Props, "activityProvider">> & ExpandedActivityProviderProps>): {
13
+ new (props: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>): {
13
14
  renderNode: (providers: Providers) => JSX.Element;
14
15
  render(): JSX.Element;
15
16
  context: any;
16
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Props, Exclude<keyof Props, "activityProvider">> & ExpandedActivityProviderProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
17
+ setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
17
18
  forceUpdate(callBack?: (() => void) | undefined): void;
18
- readonly props: Readonly<Pick<Props, Exclude<keyof Props, "activityProvider">> & ExpandedActivityProviderProps> & Readonly<{
19
+ readonly props: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps> & Readonly<{
19
20
  children?: React.ReactNode;
20
21
  }>;
21
22
  state: Readonly<{}>;
@@ -23,25 +24,25 @@ export default function withActivityProvider<Props>(WrappedComponent: React.Comp
23
24
  [key: string]: React.ReactInstance;
24
25
  };
25
26
  componentDidMount?(): void;
26
- shouldComponentUpdate?(nextProps: Readonly<Pick<Props, Exclude<keyof Props, "activityProvider">> & ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any): boolean;
27
+ shouldComponentUpdate?(nextProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any): boolean;
27
28
  componentWillUnmount?(): void;
28
29
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
29
- getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Props, Exclude<keyof Props, "activityProvider">> & ExpandedActivityProviderProps>, prevState: Readonly<{}>): any;
30
- componentDidUpdate?(prevProps: Readonly<Pick<Props, Exclude<keyof Props, "activityProvider">> & ExpandedActivityProviderProps>, prevState: Readonly<{}>, snapshot?: any): void;
30
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, prevState: Readonly<{}>): any;
31
+ componentDidUpdate?(prevProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, prevState: Readonly<{}>, snapshot?: any): void;
31
32
  componentWillMount?(): void;
32
33
  UNSAFE_componentWillMount?(): void;
33
- componentWillReceiveProps?(nextProps: Readonly<Pick<Props, Exclude<keyof Props, "activityProvider">> & ExpandedActivityProviderProps>, nextContext: any): void;
34
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Props, Exclude<keyof Props, "activityProvider">> & ExpandedActivityProviderProps>, nextContext: any): void;
35
- componentWillUpdate?(nextProps: Readonly<Pick<Props, Exclude<keyof Props, "activityProvider">> & ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any): void;
36
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Props, Exclude<keyof Props, "activityProvider">> & ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any): void;
34
+ componentWillReceiveProps?(nextProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextContext: any): void;
35
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextContext: any): void;
36
+ componentWillUpdate?(nextProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any): void;
37
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any): void;
37
38
  };
38
- new (props: Pick<Props, Exclude<keyof Props, "activityProvider">> & ExpandedActivityProviderProps, context?: any): {
39
+ new (props: Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps, context?: any): {
39
40
  renderNode: (providers: Providers) => JSX.Element;
40
41
  render(): JSX.Element;
41
42
  context: any;
42
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Props, Exclude<keyof Props, "activityProvider">> & ExpandedActivityProviderProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
43
+ setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
43
44
  forceUpdate(callBack?: (() => void) | undefined): void;
44
- readonly props: Readonly<Pick<Props, Exclude<keyof Props, "activityProvider">> & ExpandedActivityProviderProps> & Readonly<{
45
+ readonly props: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps> & Readonly<{
45
46
  children?: React.ReactNode;
46
47
  }>;
47
48
  state: Readonly<{}>;
@@ -49,17 +50,17 @@ export default function withActivityProvider<Props>(WrappedComponent: React.Comp
49
50
  [key: string]: React.ReactInstance;
50
51
  };
51
52
  componentDidMount?(): void;
52
- shouldComponentUpdate?(nextProps: Readonly<Pick<Props, Exclude<keyof Props, "activityProvider">> & ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any): boolean;
53
+ shouldComponentUpdate?(nextProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any): boolean;
53
54
  componentWillUnmount?(): void;
54
55
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
55
- getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Props, Exclude<keyof Props, "activityProvider">> & ExpandedActivityProviderProps>, prevState: Readonly<{}>): any;
56
- componentDidUpdate?(prevProps: Readonly<Pick<Props, Exclude<keyof Props, "activityProvider">> & ExpandedActivityProviderProps>, prevState: Readonly<{}>, snapshot?: any): void;
56
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, prevState: Readonly<{}>): any;
57
+ componentDidUpdate?(prevProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, prevState: Readonly<{}>, snapshot?: any): void;
57
58
  componentWillMount?(): void;
58
59
  UNSAFE_componentWillMount?(): void;
59
- componentWillReceiveProps?(nextProps: Readonly<Pick<Props, Exclude<keyof Props, "activityProvider">> & ExpandedActivityProviderProps>, nextContext: any): void;
60
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Props, Exclude<keyof Props, "activityProvider">> & ExpandedActivityProviderProps>, nextContext: any): void;
61
- componentWillUpdate?(nextProps: Readonly<Pick<Props, Exclude<keyof Props, "activityProvider">> & ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any): void;
62
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Props, Exclude<keyof Props, "activityProvider">> & ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any): void;
60
+ componentWillReceiveProps?(nextProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextContext: any): void;
61
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextContext: any): void;
62
+ componentWillUpdate?(nextProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any): void;
63
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any): void;
63
64
  };
64
65
  contextType?: React.Context<any> | undefined;
65
66
  };
@@ -1,3 +1,5 @@
1
+ /** @jsx jsx */
2
+ import { jsx } from '@emotion/react';
1
3
  import { KeyboardEvent, PureComponent } from 'react';
2
4
  import { FocusEvent } from 'react';
3
5
  export interface Props {
@@ -34,7 +36,7 @@ export default class PanelTextInput extends PureComponent<Props, State> {
34
36
  componentWillUnmount(): void;
35
37
  onMouseDown: () => void;
36
38
  onBlur: (e: FocusEvent<any>) => void;
37
- render(): JSX.Element;
39
+ render(): jsx.JSX.Element;
38
40
  focus(): void;
39
41
  private handleChange;
40
42
  private handleKeydown;
@@ -1,4 +1,2 @@
1
- import { InputHTMLAttributes, ComponentClass } from 'react';
2
- export declare const Input: ComponentClass<InputHTMLAttributes<{}> & {
3
- innerRef?: any;
4
- }>;
1
+ export declare const panelTextInput: import("@emotion/react").SerializedStyles;
2
+ export declare const panelTextInputWithCustomWidth: (width: number) => import("@emotion/react").SerializedStyles;
@@ -1,4 +1,6 @@
1
+ /** @jsx jsx */
1
2
  import React from 'react';
3
+ import { jsx } from '@emotion/react';
2
4
  import { EditorView } from 'prosemirror-view';
3
5
  import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
4
6
  import { EditorAppearance, UIComponentFactory } from '../../types';
@@ -30,5 +32,5 @@ export default class PluginSlot extends React.Component<Props, any> {
30
32
  forceComponentUpdate: (event: TransitionEvent) => void;
31
33
  removeModeChangeListener: (contentArea?: HTMLElement | undefined) => void;
32
34
  addModeChangeListener: (contentArea?: HTMLElement | undefined) => void;
33
- render(): JSX.Element | null;
35
+ render(): jsx.JSX.Element | null;
34
36
  }
@@ -1,3 +1,4 @@
1
+ /** @jsx jsx */
1
2
  import React from 'react';
2
3
  import { ToolbarWithSizeDetectorProps } from './toolbar-types';
3
4
  export declare const ToolbarWithSizeDetector: React.FunctionComponent<ToolbarWithSizeDetectorProps>;
@@ -1,3 +1,4 @@
1
+ import { EditorAppearance } from '../../types';
1
2
  import { ToolbarSize } from './types';
2
- export declare const toolbarSizeToWidth: (toolbarSize: ToolbarSize, appearance?: "full-width" | "comment" | "full-page" | "chromeless" | "mobile" | undefined) => number;
3
- export declare const widthToToolbarSize: (toolbarWidth: number, appearance?: "full-width" | "comment" | "full-page" | "chromeless" | "mobile" | undefined) => ToolbarSize;
3
+ export declare const toolbarSizeToWidth: (toolbarSize: ToolbarSize, appearance?: EditorAppearance | undefined) => number;
4
+ export declare const widthToToolbarSize: (toolbarWidth: number, appearance?: EditorAppearance | undefined) => ToolbarSize;
@@ -1,3 +1,4 @@
1
+ /** @jsx jsx */
1
2
  import React from 'react';
2
3
  import { PositionType } from '@atlaskit/tooltip';
3
4
  import { ButtonProps } from '@atlaskit/button/types';
@@ -33,23 +34,20 @@ declare const ToolbarButton: React.ForwardRefExoticComponent<{
33
34
  disabled?: boolean | undefined;
34
35
  hideTooltip?: boolean | undefined;
35
36
  href?: string | undefined;
36
- iconAfter?: React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)> | undefined;
37
- iconBefore?: React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)> | undefined;
37
+ iconAfter?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
38
+ iconBefore?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
38
39
  onClick?: ((event: React.MouseEvent<HTMLElement>) => void) | undefined;
39
40
  onItemClick?: ((item: MenuItem) => void) | undefined;
40
41
  selected?: boolean | undefined;
41
42
  spacing?: "none" | "default" | "compact" | undefined;
42
43
  target?: string | undefined;
43
44
  title?: React.ReactNode;
44
- titlePosition?: "right" | "left" | "top" | "bottom" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end" | "mouse" | undefined;
45
+ titlePosition?: PositionType | undefined;
45
46
  item?: MenuItem | undefined;
46
47
  testId?: string | undefined;
47
48
  'aria-label'?: React.AriaAttributes['aria-label'];
48
49
  'aria-expanded'?: React.AriaAttributes['aria-expanded'];
49
50
  'aria-haspopup'?: React.AriaAttributes['aria-haspopup'];
50
51
  'aria-pressed'?: React.AriaAttributes['aria-pressed'];
51
- } & Pick<Pick<Pick<Pick<React.AllHTMLAttributes<HTMLElement>, "cite" | "data" | "dir" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "default" | "mediaGroup" | "media" | "content" | "aria-label" | "aria-haspopup" | "children" | "pattern" | "value" | "type" | "width" | "accessKey" | "draggable" | "hidden" | "lang" | "className" | "id" | "prefix" | "contentEditable" | "inputMode" | "nonce" | "tabIndex" | "defaultValue" | "onError" | "onChange" | "open" | "onFocus" | "onBlur" | "placeholder" | "autoFocus" | "color" | "name" | "action" | "height" | "target" | "start" | "onClick" | "onMouseEnter" | "onMouseLeave" | "selected" | "href" | "accept" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "high" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "method" | "min" | "minLength" | "multiple" | "muted" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "shape" | "size" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "step" | "useMap" | "wmode" | "wrap" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "spellCheck" | "is" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css">, "cite" | "data" | "dir" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "default" | "mediaGroup" | "media" | "content" | "aria-label" | "aria-haspopup" | "children" | "pattern" | "value" | "type" | "width" | "accessKey" | "draggable" | "hidden" | "lang" | "className" | "id" | "prefix" | "contentEditable" | "inputMode" | "nonce" | "tabIndex" | "defaultValue" | "onError" | "onChange" | "open" | "onFocus" | "onBlur" | "placeholder" | "autoFocus" | "color" | "name" | "action" | "height" | "target" | "start" | "onClick" | "onMouseEnter" | "onMouseLeave" | "selected" | "href" | "accept" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "high" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "method" | "min" | "minLength" | "multiple" | "muted" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "shape" | "size" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "step" | "useMap" | "wmode" | "wrap" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "spellCheck" | "is" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css"> & {
52
- 'data-testid'?: undefined;
53
- 'data-has-overlay'?: undefined;
54
- }, "cite" | "data" | "dir" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "default" | "mediaGroup" | "media" | "content" | "aria-label" | "aria-haspopup" | "pattern" | "value" | "width" | "accessKey" | "draggable" | "hidden" | "lang" | "id" | "prefix" | "contentEditable" | "inputMode" | "nonce" | "tabIndex" | "defaultValue" | "onError" | "onChange" | "open" | "placeholder" | "color" | "name" | "action" | "height" | "start" | "onMouseEnter" | "onMouseLeave" | "selected" | "accept" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "high" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "method" | "min" | "minLength" | "multiple" | "muted" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "shape" | "size" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "step" | "useMap" | "wmode" | "wrap" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "spellCheck" | "is" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "data-testid" | "data-has-overlay"> & import("@atlaskit/button/types").BaseOwnProps, "aria-label" | "children"> & React.RefAttributes<HTMLElement>>;
52
+ } & Pick<ButtonProps, "aria-label" | "children"> & React.RefAttributes<HTMLElement>>;
55
53
  export default ToolbarButton;
@@ -1,6 +1,4 @@
1
1
  import React from 'react';
2
- declare const _default: React.ForwardRefExoticComponent<Pick<Pick<Pick<React.AllHTMLAttributes<HTMLElement>, "cite" | "data" | "dir" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "default" | "mediaGroup" | "media" | "content" | "aria-label" | "aria-haspopup" | "children" | "pattern" | "value" | "type" | "width" | "accessKey" | "draggable" | "hidden" | "lang" | "className" | "id" | "prefix" | "contentEditable" | "inputMode" | "nonce" | "tabIndex" | "defaultValue" | "onError" | "onChange" | "open" | "onFocus" | "onBlur" | "placeholder" | "autoFocus" | "color" | "name" | "action" | "height" | "target" | "start" | "onClick" | "onMouseEnter" | "onMouseLeave" | "selected" | "href" | "accept" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "high" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "method" | "min" | "minLength" | "multiple" | "muted" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "shape" | "size" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "step" | "useMap" | "wmode" | "wrap" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "spellCheck" | "is" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css">, "cite" | "data" | "dir" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "default" | "mediaGroup" | "media" | "content" | "aria-label" | "aria-haspopup" | "children" | "pattern" | "value" | "type" | "width" | "accessKey" | "draggable" | "hidden" | "lang" | "className" | "id" | "prefix" | "contentEditable" | "inputMode" | "nonce" | "tabIndex" | "defaultValue" | "onError" | "onChange" | "open" | "onFocus" | "onBlur" | "placeholder" | "autoFocus" | "color" | "name" | "action" | "height" | "target" | "start" | "onClick" | "onMouseEnter" | "onMouseLeave" | "selected" | "href" | "accept" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "high" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "method" | "min" | "minLength" | "multiple" | "muted" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "shape" | "size" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "step" | "useMap" | "wmode" | "wrap" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "spellCheck" | "is" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css"> & {
3
- 'data-testid'?: undefined;
4
- 'data-has-overlay'?: undefined;
5
- }, "cite" | "data" | "dir" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "default" | "mediaGroup" | "media" | "content" | "aria-label" | "aria-haspopup" | "pattern" | "value" | "width" | "accessKey" | "draggable" | "hidden" | "lang" | "id" | "prefix" | "contentEditable" | "inputMode" | "nonce" | "tabIndex" | "defaultValue" | "onError" | "onChange" | "open" | "placeholder" | "color" | "name" | "action" | "height" | "start" | "onMouseEnter" | "onMouseLeave" | "selected" | "accept" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "high" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "method" | "min" | "minLength" | "multiple" | "muted" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "shape" | "size" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "step" | "useMap" | "wmode" | "wrap" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "spellCheck" | "is" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "data-testid" | "data-has-overlay"> & import("@atlaskit/button").BaseOwnProps & React.RefAttributes<HTMLElement>>;
2
+ import { ButtonProps } from '@atlaskit/button/standard-button';
3
+ declare const _default: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLElement>>;
6
4
  export default _default;
@@ -1,3 +1,5 @@
1
+ /** @jsx jsx */
2
+ import { jsx } from '@emotion/react';
1
3
  import { PureComponent } from 'react';
2
4
  import PropTypes from 'prop-types';
3
5
  export declare type EditorProduct = 'bitbucket' | 'jira' | 'confluence' | 'stride' | undefined;
@@ -26,14 +28,14 @@ declare global {
26
28
  }
27
29
  export default class ToolbarFeedback extends PureComponent<Props, State> {
28
30
  static contextTypes: {
29
- editorActions: PropTypes.Validator<any>;
31
+ editorActions: PropTypes.Validator<object>;
30
32
  };
31
33
  state: State;
32
34
  constructor(props: Props);
33
35
  private handleRef;
34
36
  showJiraCollectorDialogCallback?: () => void;
35
37
  private getFeedbackInfo;
36
- render(): JSX.Element | null;
38
+ render(): jsx.JSX.Element | null;
37
39
  private collectFeedback;
38
40
  private toggleShowOptOutOption;
39
41
  private openJiraIssueCollector;
@@ -1,7 +1,6 @@
1
- import { HTMLAttributes, ImgHTMLAttributes, ComponentClass } from 'react';
2
- export declare const ButtonContent: ComponentClass<HTMLAttributes<{}>>;
3
- export declare const Wrapper: ComponentClass<HTMLAttributes<{}>>;
4
- export declare const ConfirmationPopup: ComponentClass<HTMLAttributes<{}>>;
5
- export declare const ConfirmationText: ComponentClass<HTMLAttributes<{}>>;
6
- export declare const ConfirmationHeader: ComponentClass<HTMLAttributes<{}>>;
7
- export declare const ConfirmationImg: ComponentClass<ImgHTMLAttributes<{}>>;
1
+ export declare const buttonContent: import("@emotion/react").SerializedStyles;
2
+ export declare const wrapper: import("@emotion/react").SerializedStyles;
3
+ export declare const confirmationPopup: import("@emotion/react").SerializedStyles;
4
+ export declare const confirmationText: import("@emotion/react").SerializedStyles;
5
+ export declare const confirmationHeader: import("@emotion/react").SerializedStyles;
6
+ export declare const confirmationImg: import("@emotion/react").SerializedStyles;
@@ -6,7 +6,7 @@ export interface WithEditorActionsProps {
6
6
  }
7
7
  export default class WithEditorActions extends React.Component<WithEditorActionsProps, any> {
8
8
  static contextTypes: {
9
- editorActions: PropTypes.Validator<any>;
9
+ editorActions: PropTypes.Validator<object>;
10
10
  };
11
11
  context: {
12
12
  editorActions: EditorActions;
@@ -14,5 +14,5 @@ export default class WithEditorActions extends React.Component<WithEditorActions
14
14
  componentDidMount(): void;
15
15
  componentWillUnmount(): void;
16
16
  private onContextUpdate;
17
- render(): React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)> | null;
17
+ render(): React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
18
18
  }
@@ -4,7 +4,7 @@ export default class WithHelpTrigger extends React.Component<{
4
4
  render: (openHelp: () => void) => React.ReactNode;
5
5
  }, any> {
6
6
  static contextTypes: {
7
- editorActions: PropTypes.Validator<any>;
7
+ editorActions: PropTypes.Validator<object>;
8
8
  };
9
9
  openHelp: () => void;
10
10
  render(): React.ReactNode;
@@ -52,8 +52,8 @@ export default class WithPluginState<P extends NamedPluginKeys> extends React.Co
52
52
  private isSubscribed;
53
53
  private callsCount;
54
54
  static contextTypes: {
55
- editorActions: PropTypes.Requireable<any>;
56
- editorSharedConfig: PropTypes.Requireable<any>;
55
+ editorActions: PropTypes.Requireable<object>;
56
+ editorSharedConfig: PropTypes.Requireable<object>;
57
57
  };
58
58
  context: Context;
59
59
  state: NamedPluginStates<P>;
@@ -74,5 +74,5 @@ export default class WithPluginState<P extends NamedPluginKeys> extends React.Co
74
74
  componentDidMount(): void;
75
75
  UNSAFE_componentWillReceiveProps(nextProps: Props<P>): void;
76
76
  componentWillUnmount(): void;
77
- render(): React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)> | null;
77
+ render(): React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
78
78
  }
@@ -1,23 +1,13 @@
1
- import { HTMLAttributes, ComponentClass } from 'react';
2
- export declare const ButtonGroup: ComponentClass<HTMLAttributes<{}> & {
3
- width?: 'small' | 'large';
4
- }>;
5
- export declare const Separator: ComponentClass<HTMLAttributes<{}>>;
6
- export declare const Wrapper: ComponentClass<HTMLAttributes<{}> & {
7
- isSmall?: boolean;
8
- }>;
9
- export declare const ExpandIconWrapper: ComponentClass<HTMLAttributes<{}>>;
10
- export declare const TriggerWrapper: ComponentClass<HTMLAttributes<{}>>;
11
- export declare const MenuWrapper: ComponentClass<HTMLAttributes<{}>>;
12
- export declare const ButtonContent: ComponentClass<HTMLAttributes<{}> & {
13
- spacing: string;
14
- }>;
15
- export declare const dropShadow: import("styled-components").InterpolationValue[];
1
+ export declare const buttonGroupStyle: import("@emotion/react").SerializedStyles;
2
+ export declare const separatorStyles: import("@emotion/react").SerializedStyles;
3
+ export declare const wrapperStyle: import("@emotion/react").SerializedStyles;
4
+ export declare const wrapperSmallStyle: import("@emotion/react").SerializedStyles;
5
+ export declare const expandIconWrapperStyle: import("@emotion/react").SerializedStyles;
6
+ export declare const triggerWrapperStyles: import("@emotion/react").SerializedStyles;
7
+ export declare const buttonContentStyle: import("@emotion/react").SerializedStyles;
8
+ export declare const buttonContentReducedSpacingStyle: import("@emotion/react").SerializedStyles;
9
+ export declare const dropShadow: import("@emotion/react").SerializedStyles;
16
10
  export declare const scrollbarStyles: string;
17
- export declare const Shortcut: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, import("react").DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
18
- export declare const ClickSelectWrapper: React.ComponentClass<React.HTMLAttributes<{}>>;
19
- declare type CellColourPreviewProps = {
20
- selectedColor: string;
21
- };
22
- export declare const CellColourPreview: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement> & CellColourPreviewProps, any, import("react").ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement> & CellColourPreviewProps>;
23
- export {};
11
+ export declare const shortcutStyle: import("@emotion/react").SerializedStyles;
12
+ export declare const clickSelectWrapperStyle: import("@emotion/react").SerializedStyles;
13
+ export declare const cellColourPreviewStyles: (selectedColor: string) => import("@emotion/react").SerializedStyles;
@@ -1,5 +1,6 @@
1
1
  import { Transaction, EditorState } from 'prosemirror-state';
2
2
  import { Node as PMNode, Mark as PMMark, Fragment, NodeType, MarkType, Schema } from 'prosemirror-model';
3
+ import { CardAppearance } from '@atlaskit/smart-card';
3
4
  /**
4
5
  * Finds all top level nodes affected by the transaction
5
6
  * Uses from/to positions in transaction's steps to work out which nodes will
@@ -30,5 +31,5 @@ export declare const isNodeSelectedOrInRange: (anchorPosition: number, headPosit
30
31
  * @param state EditorState
31
32
  * @param fragment The fragment to be checked for
32
33
  */
33
- export declare const isSupportedInParent: (state: EditorState, fragment: Fragment, currentAppearance?: "embed" | "inline" | "block" | undefined) => boolean;
34
+ export declare const isSupportedInParent: (state: EditorState, fragment: Fragment, currentAppearance?: CardAppearance | undefined) => boolean;
34
35
  export {};
@@ -0,0 +1,13 @@
1
+ import { Node } from 'prosemirror-model';
2
+ import { Transaction } from 'prosemirror-state';
3
+ /**
4
+ * Checks whether two adjacent nodes can be joined. If so, the document
5
+ * will be updated to join those nodes. If not, the original transaction
6
+ * remains untouched.
7
+ *
8
+ * Nodes are considered joinable if the `isJoinable` predicate returns true or,
9
+ * if an array of strings was passed, if their node type name is in that array.
10
+ *
11
+ * Adapted from https://github.com/ProseMirror/prosemirror-commands/blob/master/src/commands.js#L597-L610
12
+ */
13
+ export declare function autoJoinTr(tr: Transaction, isJoinable: ((before: Node, after: Node) => boolean) | string[]): void;