@atlaskit/editor-core 161.0.0 → 162.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 (315) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/dist/cjs/actions/index.js +76 -48
  3. package/dist/cjs/extensibility.js +2 -2
  4. package/dist/cjs/labs/next/full-page.js +2 -2
  5. package/dist/cjs/plugins/block-type/styles.js +5 -2
  6. package/dist/cjs/plugins/block-type/ui/ToolbarBlockType/index.js +13 -11
  7. package/dist/cjs/plugins/block-type/ui/ToolbarBlockType/styled.js +11 -7
  8. package/dist/cjs/plugins/card/messages.js +4 -4
  9. package/dist/cjs/plugins/card/ui/LinkToolbarAppearance.js +29 -11
  10. package/dist/cjs/plugins/card/ui/LinkToolbarButtonGroup.js +66 -7
  11. package/dist/cjs/plugins/card/ui/LinkToolbarIconDropdown.js +166 -7
  12. package/dist/cjs/plugins/card/ui/ResizableEmbedCard.js +9 -6
  13. package/dist/cjs/plugins/card/ui/assets/card.js +1 -1
  14. package/dist/cjs/plugins/card/ui/assets/embed.js +1 -1
  15. package/dist/cjs/plugins/card/ui/assets/inline.js +1 -1
  16. package/dist/cjs/plugins/card/ui/assets/url.js +1 -1
  17. package/dist/cjs/plugins/card/ui/link-toolbar-button-group-options.js +60 -0
  18. package/dist/cjs/plugins/card/ui/link-toolbar-icon-dropdown-options.js +66 -0
  19. package/dist/cjs/plugins/card/ui/styled.js +5 -13
  20. package/dist/cjs/plugins/card/ui/types.js +5 -0
  21. package/dist/cjs/plugins/clipboard/pm-plugins/main.js +99 -3
  22. package/dist/cjs/plugins/code-block/styles.js +45 -38
  23. package/dist/cjs/plugins/extension/plugin-factory.js +4 -1
  24. package/dist/cjs/plugins/extension/pm-plugins/main.js +34 -11
  25. package/dist/cjs/plugins/extension/utils.js +57 -12
  26. package/dist/cjs/plugins/find-replace/ui/Find.js +12 -12
  27. package/dist/cjs/plugins/find-replace/ui/FindReplace.js +5 -5
  28. package/dist/cjs/plugins/find-replace/ui/Replace.js +5 -5
  29. package/dist/cjs/plugins/find-replace/ui/styles.js +12 -15
  30. package/dist/cjs/plugins/layout/styles.js +2 -2
  31. package/dist/cjs/plugins/list/actions/wrap-and-join-lists.js +180 -0
  32. package/dist/cjs/plugins/list/commands/index.js +35 -38
  33. package/dist/cjs/plugins/list/utils/replace-content.js +31 -0
  34. package/dist/cjs/plugins/media/nodeviews/mediaNodeUpdater.js +3 -3
  35. package/dist/cjs/plugins/media/styles.js +2 -2
  36. package/dist/cjs/plugins/media/utils/media-single.js +15 -2
  37. package/dist/cjs/plugins/paste/handlers.js +19 -5
  38. package/dist/cjs/plugins/paste/pm-plugins/analytics.js +1 -1
  39. package/dist/cjs/plugins/placeholder-text/index.js +45 -1
  40. package/dist/cjs/plugins/placeholder-text/placeholder-text-nodeview.js +66 -22
  41. package/dist/cjs/plugins/placeholder-text/selection-utils.js +19 -0
  42. package/dist/cjs/plugins/placeholder-text/styles.js +3 -1
  43. package/dist/cjs/plugins/table/commands/index.js +0 -6
  44. package/dist/cjs/plugins/table/commands/insert.js +1 -1
  45. package/dist/cjs/plugins/table/commands/misc.js +5 -18
  46. package/dist/cjs/plugins/table/commands-with-analytics.js +1 -1
  47. package/dist/cjs/plugins/table/handlers.js +6 -2
  48. package/dist/cjs/plugins/table/index.js +7 -13
  49. package/dist/cjs/plugins/table/nodeviews/TableComponent.js +2 -2
  50. package/dist/cjs/plugins/table/nodeviews/table.js +7 -38
  51. package/dist/cjs/plugins/table/pm-plugins/decorations/plugin.js +2 -2
  52. package/dist/cjs/plugins/table/pm-plugins/main.js +3 -1
  53. package/dist/cjs/plugins/table/pm-plugins/plugin-factory.js +4 -7
  54. package/dist/cjs/plugins/table/pm-plugins/plugin-key.js +11 -0
  55. package/dist/cjs/plugins/table/pm-plugins/safari-delayed-dom-selection-syncing-workaround.js +2 -0
  56. package/dist/cjs/plugins/table/pm-plugins/sticky-headers/nodeviews/tableRow.js +3 -3
  57. package/dist/cjs/plugins/table/reducer.js +0 -7
  58. package/dist/cjs/plugins/table/toolbar.js +5 -15
  59. package/dist/cjs/plugins/table/transforms/metadata.js +2 -2
  60. package/dist/cjs/plugins/table/ui/FloatingContextualButton/index.js +1 -1
  61. package/dist/cjs/plugins/table/ui/FloatingContextualButton/{styles.css.js → styles.js} +0 -0
  62. package/dist/cjs/plugins/table/ui/FloatingContextualMenu/index.js +4 -2
  63. package/dist/cjs/plugins/table/ui/FloatingContextualMenu/{styles.css.js → styles.js} +0 -0
  64. package/dist/cjs/plugins/table/ui/FloatingInsertButton/index.js +1 -1
  65. package/dist/cjs/plugins/table/ui/LayoutButton/index.js +1 -2
  66. package/dist/cjs/plugins/table/ui/common-styles.js +53 -0
  67. package/dist/cjs/plugins/table/ui/ui-styles.js +109 -0
  68. package/dist/cjs/plugins/table/utils/nodes.js +15 -15
  69. package/dist/cjs/plugins/tasks-and-decisions/commands.js +15 -1
  70. package/dist/cjs/plugins/text-formatting/styles.js +5 -2
  71. package/dist/cjs/plugins/text-formatting/ui/Toolbar/index.js +71 -1
  72. package/dist/cjs/plugins/text-formatting/ui/Toolbar/toolbar-messages.js +30 -0
  73. package/dist/cjs/plugins/text-formatting/utils.js +30 -2
  74. package/dist/cjs/plugins/type-ahead/api.js +32 -1
  75. package/dist/cjs/plugins/type-ahead/transforms/open-typeahead-at-cursor.js +20 -5
  76. package/dist/cjs/plugins/type-ahead/ui/InputQuery.js +12 -0
  77. package/dist/cjs/plugins/type-ahead/utils.js +22 -4
  78. package/dist/cjs/ui/Appearance/Comment/Comment.js +2 -2
  79. package/dist/cjs/ui/Appearance/FullPage/StyledComponents.js +2 -2
  80. package/dist/cjs/ui/ContentStyles/index.js +33 -10
  81. package/dist/cjs/utils/index.js +1 -8
  82. package/dist/cjs/utils/insert.js +1 -9
  83. package/dist/cjs/utils/selection.js +2 -9
  84. package/dist/cjs/version-wrapper.js +1 -1
  85. package/dist/cjs/version.json +1 -1
  86. package/dist/es2019/actions/index.js +20 -23
  87. package/dist/es2019/extensibility.js +1 -1
  88. package/dist/es2019/labs/next/full-page.js +2 -2
  89. package/dist/es2019/plugins/block-type/styles.js +3 -3
  90. package/dist/es2019/plugins/block-type/ui/ToolbarBlockType/index.js +15 -12
  91. package/dist/es2019/plugins/block-type/ui/ToolbarBlockType/styled.js +19 -14
  92. package/dist/es2019/plugins/card/messages.js +4 -4
  93. package/dist/es2019/plugins/card/ui/LinkToolbarAppearance.js +21 -9
  94. package/dist/es2019/plugins/card/ui/LinkToolbarButtonGroup.js +54 -3
  95. package/dist/es2019/plugins/card/ui/LinkToolbarIconDropdown.js +145 -3
  96. package/dist/es2019/plugins/card/ui/ResizableEmbedCard.js +10 -6
  97. package/dist/es2019/plugins/card/ui/assets/card.js +1 -1
  98. package/dist/es2019/plugins/card/ui/assets/embed.js +1 -1
  99. package/dist/es2019/plugins/card/ui/assets/inline.js +1 -1
  100. package/dist/es2019/plugins/card/ui/assets/url.js +1 -1
  101. package/dist/es2019/plugins/card/ui/link-toolbar-button-group-options.js +45 -0
  102. package/dist/es2019/plugins/card/ui/link-toolbar-icon-dropdown-options.js +51 -0
  103. package/dist/es2019/plugins/card/ui/styled.js +2 -2
  104. package/dist/es2019/plugins/card/ui/types.js +1 -0
  105. package/dist/es2019/plugins/clipboard/pm-plugins/main.js +91 -9
  106. package/dist/es2019/plugins/code-block/styles.js +14 -14
  107. package/dist/es2019/plugins/extension/plugin-factory.js +3 -1
  108. package/dist/es2019/plugins/extension/pm-plugins/main.js +38 -12
  109. package/dist/es2019/plugins/extension/utils.js +37 -2
  110. package/dist/es2019/plugins/find-replace/ui/Find.js +1 -1
  111. package/dist/es2019/plugins/find-replace/ui/FindReplace.js +1 -1
  112. package/dist/es2019/plugins/find-replace/ui/Replace.js +1 -1
  113. package/dist/es2019/plugins/find-replace/ui/styles.js +14 -9
  114. package/dist/es2019/plugins/layout/styles.js +5 -1
  115. package/dist/es2019/plugins/list/actions/wrap-and-join-lists.js +163 -0
  116. package/dist/es2019/plugins/list/commands/index.js +29 -28
  117. package/dist/es2019/plugins/list/utils/replace-content.js +22 -0
  118. package/dist/es2019/plugins/media/nodeviews/mediaNodeUpdater.js +3 -3
  119. package/dist/es2019/plugins/media/styles.js +1 -1
  120. package/dist/es2019/plugins/media/utils/media-single.js +14 -1
  121. package/dist/es2019/plugins/paste/handlers.js +19 -5
  122. package/dist/es2019/plugins/paste/pm-plugins/analytics.js +2 -2
  123. package/dist/es2019/plugins/placeholder-text/index.js +46 -1
  124. package/dist/es2019/plugins/placeholder-text/placeholder-text-nodeview.js +66 -20
  125. package/dist/es2019/plugins/placeholder-text/selection-utils.js +9 -0
  126. package/dist/es2019/plugins/placeholder-text/styles.js +22 -0
  127. package/dist/es2019/plugins/table/commands/index.js +1 -1
  128. package/dist/es2019/plugins/table/commands/insert.js +1 -1
  129. package/dist/es2019/plugins/table/commands/misc.js +5 -11
  130. package/dist/es2019/plugins/table/commands-with-analytics.js +1 -1
  131. package/dist/es2019/plugins/table/handlers.js +6 -2
  132. package/dist/es2019/plugins/table/index.js +4 -8
  133. package/dist/es2019/plugins/table/nodeviews/TableComponent.js +2 -2
  134. package/dist/es2019/plugins/table/nodeviews/table.js +2 -16
  135. package/dist/es2019/plugins/table/pm-plugins/decorations/plugin.js +1 -1
  136. package/dist/es2019/plugins/table/pm-plugins/main.js +2 -1
  137. package/dist/es2019/plugins/table/pm-plugins/plugin-factory.js +1 -2
  138. package/dist/es2019/plugins/table/pm-plugins/plugin-key.js +2 -0
  139. package/dist/es2019/plugins/table/pm-plugins/safari-delayed-dom-selection-syncing-workaround.js +2 -0
  140. package/dist/es2019/plugins/table/pm-plugins/sticky-headers/nodeviews/tableRow.js +1 -1
  141. package/dist/es2019/plugins/table/reducer.js +0 -9
  142. package/dist/es2019/plugins/table/toolbar.js +1 -4
  143. package/dist/es2019/plugins/table/transforms/metadata.js +1 -1
  144. package/dist/es2019/plugins/table/ui/FloatingContextualButton/index.js +1 -1
  145. package/dist/es2019/plugins/table/ui/FloatingContextualButton/{styles.css.js → styles.js} +0 -0
  146. package/dist/es2019/plugins/table/ui/FloatingContextualMenu/index.js +3 -2
  147. package/dist/es2019/plugins/table/ui/FloatingContextualMenu/{styles.css.js → styles.js} +0 -0
  148. package/dist/es2019/plugins/table/ui/FloatingInsertButton/index.js +1 -1
  149. package/dist/es2019/plugins/table/ui/LayoutButton/index.js +1 -2
  150. package/dist/es2019/plugins/table/ui/{common-styles.css.js → common-styles.js} +57 -27
  151. package/dist/es2019/plugins/table/ui/{ui-styles.css.js → ui-styles.js} +99 -78
  152. package/dist/es2019/plugins/table/utils/nodes.js +11 -11
  153. package/dist/es2019/plugins/tasks-and-decisions/commands.js +13 -1
  154. package/dist/es2019/plugins/text-formatting/styles.js +3 -3
  155. package/dist/es2019/plugins/text-formatting/ui/Toolbar/index.js +61 -2
  156. package/dist/es2019/plugins/text-formatting/ui/Toolbar/toolbar-messages.js +30 -0
  157. package/dist/es2019/plugins/text-formatting/utils.js +13 -1
  158. package/dist/es2019/plugins/type-ahead/api.js +31 -2
  159. package/dist/es2019/plugins/type-ahead/transforms/open-typeahead-at-cursor.js +17 -5
  160. package/dist/es2019/plugins/type-ahead/ui/InputQuery.js +12 -0
  161. package/dist/es2019/plugins/type-ahead/utils.js +15 -0
  162. package/dist/es2019/ui/Appearance/Comment/Comment.js +2 -2
  163. package/dist/es2019/ui/Appearance/FullPage/StyledComponents.js +2 -2
  164. package/dist/es2019/ui/ContentStyles/index.js +46 -24
  165. package/dist/es2019/utils/index.js +1 -1
  166. package/dist/es2019/utils/insert.js +2 -10
  167. package/dist/es2019/utils/selection.js +1 -6
  168. package/dist/es2019/version-wrapper.js +1 -1
  169. package/dist/es2019/version.json +1 -1
  170. package/dist/esm/actions/index.js +76 -48
  171. package/dist/esm/extensibility.js +1 -1
  172. package/dist/esm/labs/next/full-page.js +2 -2
  173. package/dist/esm/plugins/block-type/styles.js +4 -2
  174. package/dist/esm/plugins/block-type/ui/ToolbarBlockType/index.js +14 -12
  175. package/dist/esm/plugins/block-type/ui/ToolbarBlockType/styled.js +9 -5
  176. package/dist/esm/plugins/card/messages.js +4 -4
  177. package/dist/esm/plugins/card/ui/LinkToolbarAppearance.js +25 -9
  178. package/dist/esm/plugins/card/ui/LinkToolbarButtonGroup.js +57 -5
  179. package/dist/esm/plugins/card/ui/LinkToolbarIconDropdown.js +154 -5
  180. package/dist/esm/plugins/card/ui/ResizableEmbedCard.js +9 -6
  181. package/dist/esm/plugins/card/ui/assets/card.js +1 -1
  182. package/dist/esm/plugins/card/ui/assets/embed.js +1 -1
  183. package/dist/esm/plugins/card/ui/assets/inline.js +1 -1
  184. package/dist/esm/plugins/card/ui/assets/url.js +1 -1
  185. package/dist/esm/plugins/card/ui/link-toolbar-button-group-options.js +45 -0
  186. package/dist/esm/plugins/card/ui/link-toolbar-icon-dropdown-options.js +51 -0
  187. package/dist/esm/plugins/card/ui/styled.js +2 -2
  188. package/dist/esm/plugins/card/ui/types.js +1 -0
  189. package/dist/esm/plugins/clipboard/pm-plugins/main.js +91 -2
  190. package/dist/esm/plugins/code-block/styles.js +42 -38
  191. package/dist/esm/plugins/extension/plugin-factory.js +3 -1
  192. package/dist/esm/plugins/extension/pm-plugins/main.js +34 -11
  193. package/dist/esm/plugins/extension/utils.js +51 -9
  194. package/dist/esm/plugins/find-replace/ui/Find.js +1 -1
  195. package/dist/esm/plugins/find-replace/ui/FindReplace.js +1 -1
  196. package/dist/esm/plugins/find-replace/ui/Replace.js +1 -1
  197. package/dist/esm/plugins/find-replace/ui/styles.js +6 -10
  198. package/dist/esm/plugins/layout/styles.js +2 -2
  199. package/dist/esm/plugins/list/actions/wrap-and-join-lists.js +168 -0
  200. package/dist/esm/plugins/list/commands/index.js +33 -34
  201. package/dist/esm/plugins/list/utils/replace-content.js +21 -0
  202. package/dist/esm/plugins/media/nodeviews/mediaNodeUpdater.js +3 -3
  203. package/dist/esm/plugins/media/styles.js +1 -1
  204. package/dist/esm/plugins/media/utils/media-single.js +12 -1
  205. package/dist/esm/plugins/paste/handlers.js +19 -5
  206. package/dist/esm/plugins/paste/pm-plugins/analytics.js +2 -2
  207. package/dist/esm/plugins/placeholder-text/index.js +44 -1
  208. package/dist/esm/plugins/placeholder-text/placeholder-text-nodeview.js +67 -20
  209. package/dist/esm/plugins/placeholder-text/selection-utils.js +9 -0
  210. package/dist/esm/plugins/placeholder-text/styles.js +2 -1
  211. package/dist/esm/plugins/table/commands/index.js +1 -1
  212. package/dist/esm/plugins/table/commands/insert.js +1 -1
  213. package/dist/esm/plugins/table/commands/misc.js +5 -15
  214. package/dist/esm/plugins/table/commands-with-analytics.js +1 -1
  215. package/dist/esm/plugins/table/handlers.js +6 -2
  216. package/dist/esm/plugins/table/index.js +6 -11
  217. package/dist/esm/plugins/table/nodeviews/TableComponent.js +2 -2
  218. package/dist/esm/plugins/table/nodeviews/table.js +6 -37
  219. package/dist/esm/plugins/table/pm-plugins/decorations/plugin.js +1 -1
  220. package/dist/esm/plugins/table/pm-plugins/main.js +2 -1
  221. package/dist/esm/plugins/table/pm-plugins/plugin-factory.js +1 -2
  222. package/dist/esm/plugins/table/pm-plugins/plugin-key.js +2 -0
  223. package/dist/esm/plugins/table/pm-plugins/safari-delayed-dom-selection-syncing-workaround.js +2 -0
  224. package/dist/esm/plugins/table/pm-plugins/sticky-headers/nodeviews/tableRow.js +1 -1
  225. package/dist/esm/plugins/table/reducer.js +0 -7
  226. package/dist/esm/plugins/table/toolbar.js +1 -10
  227. package/dist/esm/plugins/table/transforms/metadata.js +1 -1
  228. package/dist/esm/plugins/table/ui/FloatingContextualButton/index.js +1 -1
  229. package/dist/esm/plugins/table/ui/FloatingContextualButton/{styles.css.js → styles.js} +0 -0
  230. package/dist/esm/plugins/table/ui/FloatingContextualMenu/index.js +3 -2
  231. package/dist/esm/plugins/table/ui/FloatingContextualMenu/{styles.css.js → styles.js} +0 -0
  232. package/dist/esm/plugins/table/ui/FloatingInsertButton/index.js +1 -1
  233. package/dist/esm/plugins/table/ui/LayoutButton/index.js +1 -2
  234. package/dist/esm/plugins/table/ui/common-styles.js +27 -0
  235. package/dist/esm/plugins/table/ui/ui-styles.js +68 -0
  236. package/dist/esm/plugins/table/utils/nodes.js +14 -14
  237. package/dist/esm/plugins/tasks-and-decisions/commands.js +13 -1
  238. package/dist/esm/plugins/text-formatting/styles.js +4 -2
  239. package/dist/esm/plugins/text-formatting/ui/Toolbar/index.js +69 -2
  240. package/dist/esm/plugins/text-formatting/ui/Toolbar/toolbar-messages.js +30 -0
  241. package/dist/esm/plugins/text-formatting/utils.js +18 -0
  242. package/dist/esm/plugins/type-ahead/api.js +30 -2
  243. package/dist/esm/plugins/type-ahead/transforms/open-typeahead-at-cursor.js +16 -4
  244. package/dist/esm/plugins/type-ahead/ui/InputQuery.js +12 -0
  245. package/dist/esm/plugins/type-ahead/utils.js +17 -3
  246. package/dist/esm/ui/Appearance/Comment/Comment.js +2 -2
  247. package/dist/esm/ui/Appearance/FullPage/StyledComponents.js +2 -2
  248. package/dist/esm/ui/ContentStyles/index.js +28 -10
  249. package/dist/esm/utils/index.js +1 -1
  250. package/dist/esm/utils/insert.js +2 -10
  251. package/dist/esm/utils/selection.js +1 -6
  252. package/dist/esm/version-wrapper.js +1 -1
  253. package/dist/esm/version.json +1 -1
  254. package/dist/types/actions/index.d.ts +2 -2
  255. package/dist/types/extensibility.d.ts +1 -1
  256. package/dist/types/plugins/analytics/types/list-events.d.ts +0 -1
  257. package/dist/types/plugins/block-type/styles.d.ts +2 -1
  258. package/dist/types/plugins/block-type/ui/ToolbarBlockType/index.d.ts +1 -0
  259. package/dist/types/plugins/block-type/ui/ToolbarBlockType/styled.d.ts +2 -7
  260. package/dist/types/plugins/card/messages.d.ts +2 -2
  261. package/dist/types/plugins/card/ui/LinkToolbarButtonGroup.d.ts +18 -2
  262. package/dist/types/plugins/card/ui/LinkToolbarIconDropdown.d.ts +23 -3
  263. package/dist/types/plugins/card/ui/ResizableEmbedCard.d.ts +3 -1
  264. package/dist/types/plugins/card/ui/link-toolbar-button-group-options.d.ts +5 -0
  265. package/dist/types/plugins/card/ui/link-toolbar-icon-dropdown-options.d.ts +5 -0
  266. package/dist/types/plugins/card/ui/styled.d.ts +2 -3
  267. package/dist/types/plugins/card/ui/types.d.ts +12 -0
  268. package/dist/types/plugins/clipboard/pm-plugins/main.d.ts +10 -1
  269. package/dist/types/plugins/code-block/styles.d.ts +3 -2
  270. package/dist/types/plugins/extension/pm-plugins/main.d.ts +2 -1
  271. package/dist/types/plugins/extension/types.d.ts +1 -0
  272. package/dist/types/plugins/extension/utils.d.ts +3 -1
  273. package/dist/types/plugins/find-replace/ui/FindReplace.d.ts +2 -1
  274. package/dist/types/plugins/find-replace/ui/styles.d.ts +5 -5
  275. package/dist/types/plugins/layout/styles.d.ts +1 -1
  276. package/dist/types/plugins/list/actions/wrap-and-join-lists.d.ts +25 -0
  277. package/dist/types/plugins/list/commands/index.d.ts +0 -1
  278. package/dist/types/plugins/list/utils/replace-content.d.ts +8 -0
  279. package/dist/types/plugins/media/nodeviews/mediaNodeUpdater.d.ts +2 -2
  280. package/dist/types/plugins/media/styles.d.ts +1 -1
  281. package/dist/types/plugins/media/utils/media-single.d.ts +1 -0
  282. package/dist/types/plugins/panel/styles.d.ts +1 -1
  283. package/dist/types/plugins/paste/handlers.d.ts +1 -1
  284. package/dist/types/plugins/placeholder-text/placeholder-text-nodeview.d.ts +3 -2
  285. package/dist/types/plugins/placeholder-text/selection-utils.d.ts +2 -0
  286. package/dist/types/plugins/rule/styles.d.ts +1 -1
  287. package/dist/types/plugins/table/commands/index.d.ts +1 -1
  288. package/dist/types/plugins/table/commands/misc.d.ts +0 -1
  289. package/dist/types/plugins/table/nodeviews/table.d.ts +0 -1
  290. package/dist/types/plugins/table/pm-plugins/plugin-factory.d.ts +1 -4
  291. package/dist/types/plugins/table/pm-plugins/plugin-key.d.ts +3 -0
  292. package/dist/types/plugins/table/types.d.ts +1 -8
  293. package/dist/types/plugins/table/ui/FloatingContextualButton/{styles.css.d.ts → styles.d.ts} +0 -0
  294. package/dist/types/plugins/table/ui/FloatingContextualMenu/{styles.css.d.ts → styles.d.ts} +0 -0
  295. package/dist/types/plugins/table/ui/LayoutButton/index.d.ts +0 -1
  296. package/dist/types/plugins/table/ui/common-styles.d.ts +6 -0
  297. package/dist/types/plugins/table/ui/ui-styles.d.ts +15 -0
  298. package/dist/types/plugins/table/utils/nodes.d.ts +6 -6
  299. package/dist/types/plugins/text-formatting/pm-plugins/smart-input-rule.d.ts +1 -1
  300. package/dist/types/plugins/text-formatting/styles.d.ts +2 -1
  301. package/dist/types/plugins/text-formatting/ui/Toolbar/toolbar-messages.d.ts +30 -0
  302. package/dist/types/plugins/text-formatting/utils.d.ts +4 -0
  303. package/dist/types/plugins/type-ahead/api.d.ts +11 -1
  304. package/dist/types/plugins/type-ahead/transforms/open-typeahead-at-cursor.d.ts +1 -0
  305. package/dist/types/plugins/type-ahead/utils.d.ts +4 -0
  306. package/dist/types/ui/ContentStyles/index.d.ts +1 -0
  307. package/dist/types/utils/index.d.ts +1 -1
  308. package/dist/types/utils/selection.d.ts +0 -1
  309. package/package.json +28 -26
  310. package/dist/cjs/plugins/table/ui/common-styles.css.js +0 -44
  311. package/dist/cjs/plugins/table/ui/ui-styles.css.js +0 -95
  312. package/dist/esm/plugins/table/ui/common-styles.css.js +0 -23
  313. package/dist/esm/plugins/table/ui/ui-styles.css.js +0 -59
  314. package/dist/types/plugins/table/ui/common-styles.css.d.ts +0 -3
  315. package/dist/types/plugins/table/ui/ui-styles.css.d.ts +0 -14
@@ -1,5 +1,25 @@
1
1
  /// <reference types="react" />
2
- export interface LinkToolbarIconDropdownProps {
2
+ import { jsx } from '@emotion/react';
3
+ import type { GlyphProps } from '@atlaskit/icon/types';
4
+ import { Props as DropdownProps } from '../../floating-toolbar/ui/Dropdown';
5
+ export declare const ICON_HEIGHT = 40;
6
+ export declare const ICON_WIDTH = 40;
7
+ interface IconSizeProps {
8
+ width?: number;
9
+ height?: number;
3
10
  }
4
- declare const LinkToolbarIconDropdown: ({}: LinkToolbarIconDropdownProps) => JSX.Element;
5
- export default LinkToolbarIconDropdown;
11
+ export interface IconDropdownOptionProps {
12
+ title: string;
13
+ description: string;
14
+ selected: boolean;
15
+ disabled: boolean;
16
+ onClick: () => void;
17
+ icon: (props: GlyphProps & IconSizeProps) => JSX.Element;
18
+ testId?: string;
19
+ tooltipContent?: string | null;
20
+ }
21
+ export interface LinkToolbarIconDropdownProps extends DropdownProps {
22
+ options: IconDropdownOptionProps[];
23
+ }
24
+ export declare const LinkToolbarIconDropdown: ({ options, ...rest }: LinkToolbarIconDropdownProps) => jsx.JSX.Element;
25
+ export {};
@@ -1,4 +1,6 @@
1
+ /** @jsx jsx */
1
2
  import React from 'react';
3
+ import { jsx } from '@emotion/react';
2
4
  import { RichMediaLayout } from '@atlaskit/adf-schema';
3
5
  import { Props as ResizerProps } from '../../../ui/Resizer/types';
4
6
  declare type State = {
@@ -53,6 +55,6 @@ export default class ResizableEmbedCard extends React.Component<Props, State> {
53
55
  * and hence we use `style` prop.
54
56
  */
55
57
  private getHeightDefiningComponent;
56
- render(): JSX.Element;
58
+ render(): jsx.JSX.Element;
57
59
  }
58
60
  export {};
@@ -0,0 +1,5 @@
1
+ import { IntlShape } from 'react-intl-next';
2
+ import { Command } from '../../../types';
3
+ import { OptionConfig } from './types';
4
+ import { ButtonOptionProps } from './LinkToolbarButtonGroup';
5
+ export declare const getButtonGroupOption: (intl: IntlShape, dispatchCommand: (command: Command) => void, { disabled, onClick, selected, appearance, testId, tooltip }: OptionConfig) => ButtonOptionProps;
@@ -0,0 +1,5 @@
1
+ import { IntlShape } from 'react-intl-next';
2
+ import { Command } from '../../../types';
3
+ import { OptionConfig } from './types';
4
+ import { IconDropdownOptionProps } from './LinkToolbarIconDropdown';
5
+ export declare const getIconDropdownOption: (intl: IntlShape, dispatchCommand: (command: Command) => void, { disabled, onClick, selected, appearance, testId, tooltip }: OptionConfig) => IconDropdownOptionProps;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
- export declare const embedCardStyles: import("styled-components").InterpolationValue[];
3
- export declare const EmbedSpacing: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
1
+ export declare const embedCardStyles: import("@emotion/react").SerializedStyles;
2
+ export declare const embedSpacingStyles: import("@emotion/react").SerializedStyles;
@@ -0,0 +1,12 @@
1
+ import { CardAppearance } from '@atlaskit/editor-common/provider-factory';
2
+ import { Command } from '../../../types';
3
+ export interface OptionConfig {
4
+ appearance?: CardAppearance;
5
+ title: string;
6
+ onClick: Command;
7
+ selected: boolean;
8
+ testId: string;
9
+ disabled?: boolean;
10
+ hidden?: boolean;
11
+ tooltip?: string;
12
+ }
@@ -3,5 +3,14 @@ import { EditorView } from 'prosemirror-view';
3
3
  import { PMPluginFactoryParams } from '../../../types';
4
4
  import { DispatchAnalyticsEvent } from '../../analytics/types/dispatch-analytics-event';
5
5
  import { ACTION } from '../../analytics/types/enums';
6
- export declare const createPlugin: ({ dispatchAnalyticsEvent, }: PMPluginFactoryParams) => SafePlugin<any, any>;
6
+ import { DOMSerializer } from 'prosemirror-model';
7
+ import type { Schema } from 'prosemirror-model';
8
+ export declare const createPlugin: ({ dispatchAnalyticsEvent, schema, }: PMPluginFactoryParams) => SafePlugin<any, any>;
9
+ /**
10
+ * Overrides Prosemirror's default clipboardSerializer, in order to fix table row copy/paste bug raised in ED-13003.
11
+ * This allows us to store the original table’s attributes on the new table that the row is wrapped with when it is being copied.
12
+ * e.g. keeping the layout on a row that is copied.
13
+ * We store the default serializer in order to call it after we handle the table row case.
14
+ */
15
+ export declare const createClipboardSerializer: (schema: Schema, getEditorView: () => EditorView) => DOMSerializer;
7
16
  export declare const sendClipboardAnalytics: (view: EditorView, dispatchAnalyticsEvent: DispatchAnalyticsEvent, action: ACTION.CUT | ACTION.COPIED) => boolean;
@@ -1,2 +1,3 @@
1
- export declare const highlightingCodeBlockStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<import("@atlaskit/theme").AtlaskitThemeProps | import("@atlaskit/theme").CustomThemeProps | import("@atlaskit/theme").NoThemeProps | undefined, any>>[];
2
- export declare const codeBlockStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<import("@atlaskit/theme").AtlaskitThemeProps | import("@atlaskit/theme").CustomThemeProps | import("@atlaskit/theme").NoThemeProps | undefined, any>>[];
1
+ import { ThemeProps } from '@atlaskit/theme/types';
2
+ export declare const highlightingCodeBlockStyles: (props: ThemeProps) => import("@emotion/react").SerializedStyles;
3
+ export declare const codeBlockStyles: (props: ThemeProps) => import("@emotion/react").SerializedStyles;
@@ -6,6 +6,7 @@ import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider
6
6
  import { EditorAppearance } from '../../../types/editor-appearance';
7
7
  import { Dispatch, EventDispatcher } from '../../../event-dispatcher';
8
8
  import { PortalProviderAPI } from '../../../ui/PortalProvider';
9
+ import type { ExtensionState } from '../types';
9
10
  import { getPluginState, createCommand } from '../plugin-factory';
10
11
  import { pluginKey } from '../plugin-key';
11
12
  export declare const updateEditButton: (view: EditorView, extensionProvider: ExtensionProvider) => Promise<UpdateExtension<any> | undefined>;
@@ -13,5 +14,5 @@ export declare const createExtensionProviderHandler: (view: EditorView) => (name
13
14
  export declare const createContextIdentifierProviderHandler: (view: EditorView) => (name: string, provider?: Promise<ContextIdentifierProvider> | undefined) => Promise<void>;
14
15
  declare const createPlugin: (dispatch: Dispatch, providerFactory: ProviderFactory, extensionHandlers: ExtensionHandlers, portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, useLongPressSelection?: boolean, options?: {
15
16
  appearance?: EditorAppearance;
16
- }) => SafePlugin<import("../types").ExtensionState<import("@atlaskit/editor-common/extensions").Parameters>, import("prosemirror-model").Schema<any, any>>;
17
+ }) => SafePlugin<ExtensionState<import("@atlaskit/editor-common/extensions").Parameters>, import("prosemirror-model").Schema<any, any>>;
17
18
  export { pluginKey, createPlugin, createCommand, getPluginState };
@@ -3,6 +3,7 @@ import { UpdateExtension, ExtensionProvider, Parameters, TransformBefore, Transf
3
3
  export declare type ExtensionState<T extends Parameters = Parameters> = {
4
4
  localId?: string;
5
5
  autoSaveResolve?: () => void;
6
+ shouldRefreshEditButton: boolean;
6
7
  showEditButton: boolean;
7
8
  showContextPanel: boolean;
8
9
  updateExtension?: Promise<UpdateExtension<T> | void>;
@@ -1,10 +1,12 @@
1
1
  import { Schema, Mark } from 'prosemirror-model';
2
- import { EditorState } from 'prosemirror-state';
2
+ import { EditorState, ReadonlyTransaction } from 'prosemirror-state';
3
3
  import { Node as PMNode } from 'prosemirror-model';
4
4
  import { NodeWithPos, DomAtPos } from 'prosemirror-utils';
5
+ import type { ExtensionState } from './types';
5
6
  export declare const getSelectedExtension: (state: EditorState, searchParent?: boolean) => import("prosemirror-utils").ContentNodeWithPos | undefined;
6
7
  export declare const findExtensionWithLocalId: (state: EditorState, localId?: string | undefined) => NodeWithPos | undefined;
7
8
  export declare const getSelectedDomElement: (schema: Schema, domAtPos: DomAtPos, selectedExtensionNode: NodeWithPos) => HTMLElement;
8
9
  export declare const getDataConsumerMark: (newNode: PMNode) => Mark | undefined;
9
10
  export declare const getNodeTypesReferenced: (ids: string[], state: EditorState) => string[];
10
11
  export declare const findNodePosWithLocalId: (state: EditorState, localId: string) => NodeWithPos | undefined;
12
+ export declare const onSelectionChanged: (tr: ReadonlyTransaction, state: ExtensionState) => ExtensionState;
@@ -1,5 +1,6 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
+ import { jsx } from '@emotion/react';
3
4
  import { TRIGGER_METHOD, DispatchAnalyticsEvent } from '../../analytics/types';
4
5
  import { MatchCaseProps } from '../types';
5
6
  export declare type FindReplaceProps = {
@@ -37,6 +38,6 @@ declare class FindReplace extends React.PureComponent<FindReplaceProps> {
37
38
  setReplaceTextfieldRef: (replaceTextfieldRef: React.RefObject<HTMLInputElement>) => void;
38
39
  setFocusToFind: () => void;
39
40
  setFocusToReplace: () => void;
40
- render(): JSX.Element;
41
+ render(): jsx.JSX.Element;
41
42
  }
42
43
  export default FindReplace;
@@ -1,5 +1,5 @@
1
- export declare const replaceSectionButtonStyles: import("@emotion/core").SerializedStyles;
2
- export declare const ruleStyles: import("@emotion/core").SerializedStyles;
3
- export declare const wrapperStyles: import("@emotion/core").SerializedStyles;
4
- export declare const sectionWrapperStyles: import("@emotion/core").SerializedStyles;
5
- export declare const countStyles: import("@emotion/core").SerializedStyles;
1
+ export declare const replaceSectionButtonStyles: import("@emotion/react").SerializedStyles;
2
+ export declare const ruleStyles: import("@emotion/react").SerializedStyles;
3
+ export declare const wrapperStyles: import("@emotion/react").SerializedStyles;
4
+ export declare const sectionWrapperStyles: import("@emotion/react").SerializedStyles;
5
+ export declare const countStyles: import("@emotion/react").SerializedStyles;
@@ -1,3 +1,3 @@
1
1
  export declare const LAYOUT_SECTION_MARGIN: number;
2
2
  export declare const LAYOUT_COLUMN_PADDING: number;
3
- export declare const layoutStyles: import("styled-components").InterpolationValue[];
3
+ export declare const layoutStyles: import("@emotion/react").SerializedStyles;
@@ -0,0 +1,25 @@
1
+ import { Node, NodeType } from 'prosemirror-model';
2
+ import { Transaction } from 'prosemirror-state';
3
+ /**
4
+ * Wraps the selection in a list with the given type. If this results in
5
+ * two adjacent lists of the same type, those will be joined together.
6
+ */
7
+ export declare function wrapInListAndJoin(nodeType: NodeType, tr: Transaction): void;
8
+ /**
9
+ * Wraps the selection in a list with the given type and attributes.
10
+ *
11
+ * Adapted from https://github.com/ProseMirror/prosemirror-schema-list/blob/master/src/schema-list.js#L64-L89
12
+ */
13
+ export declare function wrapInList(listType: NodeType, attrs?: {
14
+ [key: string]: any;
15
+ }): (tr: Transaction) => boolean;
16
+ /**
17
+ * Checks whether two adjacent nodes can be joined. If so, the document
18
+ * will be updated to join those nodes. If not, the original transaction
19
+ * remains untouched.
20
+ *
21
+ * Nodes are considered joinable if the `isJoinable` predicate returns true.
22
+ *
23
+ * Adapted from https://github.com/ProseMirror/prosemirror-commands/blob/master/src/commands.js#L597-L610
24
+ */
25
+ export declare function autoJoin(tr: Transaction, isJoinable: (before: Node, after: Node) => boolean): void;
@@ -13,4 +13,3 @@ export declare const rootListDepth: (pos: ResolvedPos, nodes: Record<string, Nod
13
13
  export declare function toggleList(inputMethod: InputMethod, listType: 'bulletList' | 'orderedList'): Command;
14
14
  export declare function toggleBulletList(view: EditorView, inputMethod?: InputMethod): boolean;
15
15
  export declare function toggleOrderedList(view: EditorView, inputMethod?: InputMethod): boolean;
16
- export declare function wrapInList(nodeType: NodeType): Command;
@@ -0,0 +1,8 @@
1
+ import { ResolvedPos } from 'prosemirror-model';
2
+ import { Step } from 'prosemirror-transform';
3
+ declare type Params = {
4
+ insertPosition: number;
5
+ $target: ResolvedPos;
6
+ };
7
+ export declare const moveTargetIntoList: ({ insertPosition, $target, }: Params) => Step;
8
+ export {};
@@ -28,9 +28,9 @@ export declare class MediaNodeUpdater {
28
28
  hasFileAttributesDefined: () => string | false | 0 | null | undefined;
29
29
  updateFileAttrs: (isMediaSingle?: boolean) => Promise<void>;
30
30
  getAttrs: () => MediaADFAttrs | undefined;
31
- getObjectId: () => Promise<string | undefined>;
31
+ getObjectId: () => Promise<string | null>;
32
32
  uploadExternalMedia: (getPos: ProsemirrorGetPosHandler) => Promise<void>;
33
- getNodeContextId: () => string | undefined;
33
+ getNodeContextId: () => string | null;
34
34
  updateDimensions: (dimensions: RemoteDimensions) => void;
35
35
  getRemoteDimensions(): Promise<false | RemoteDimensions>;
36
36
  hasDifferentContextId: () => Promise<boolean>;
@@ -1 +1 @@
1
- export declare const mediaStyles: import("styled-components").InterpolationValue[];
1
+ export declare const mediaStyles: import("@emotion/react").SerializedStyles;
@@ -29,3 +29,4 @@ export declare const calcMediaPxWidth: (opts: {
29
29
  resizedPctWidth?: number | undefined;
30
30
  isFullWidthModeEnabled?: boolean | undefined;
31
31
  }) => number;
32
+ export declare function isCaptionNode(editorView: EditorView): boolean;
@@ -1 +1 @@
1
- export declare const panelStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<import("@atlaskit/theme").AtlaskitThemeProps | import("@atlaskit/theme").CustomThemeProps | import("@atlaskit/theme").NoThemeProps | undefined, any>>[];
1
+ export declare const panelStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<import("@atlaskit/theme").ThemeProps, any>>[];
@@ -12,7 +12,7 @@ export declare function handlePastePreservingMarks(slice: Slice): Command;
12
12
  export declare function handleMacroAutoConvert(text: string, slice: Slice, cardsOptions?: CardOptions, extensionAutoConverter?: ExtensionAutoConvertHandler): Command;
13
13
  export declare function handleCodeBlock(text: string): Command;
14
14
  export declare function handleMediaSingle(inputMethod: InputMethodInsertMedia): (slice: Slice) => Command;
15
- export declare function handleExpand(slice: Slice): Command;
15
+ export declare function handleExpandPasteInTable(slice: Slice): Command;
16
16
  export declare function handleMarkdown(markdownSlice: Slice): Command;
17
17
  export declare function handleParagraphBlockMarks(state: EditorState, slice: Slice): Slice<any>;
18
18
  /**
@@ -1,5 +1,5 @@
1
1
  import { NodeView, EditorView } from 'prosemirror-view';
2
- import { Node as PmNode } from 'prosemirror-model';
2
+ import { Node as PMNode } from 'prosemirror-model';
3
3
  import { getPosHandler } from '../../nodeviews';
4
4
  declare type PmMutationRecord = MutationRecord | {
5
5
  type: 'selection';
@@ -10,7 +10,8 @@ export declare class PlaceholderTextNodeView implements NodeView {
10
10
  private readonly view;
11
11
  private readonly getPos;
12
12
  readonly dom: Node;
13
- constructor(node: PmNode, view: EditorView, getPos: getPosHandler);
13
+ constructor(node: PMNode, view: EditorView, getPos: getPosHandler);
14
+ stopEvent(e: Event): boolean;
14
15
  ignoreMutation(record: PmMutationRecord): boolean;
15
16
  }
16
17
  export {};
@@ -0,0 +1,2 @@
1
+ import { Selection } from 'prosemirror-state';
2
+ export declare const isSelectionAtPlaceholder: (selection: Selection) => boolean;
@@ -1 +1 @@
1
- export declare const ruleStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<import("@atlaskit/theme").AtlaskitThemeProps | import("@atlaskit/theme").CustomThemeProps | import("@atlaskit/theme").NoThemeProps | undefined, any>>[];
1
+ export declare const ruleStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<import("@atlaskit/theme").ThemeProps, any>>[];
@@ -2,6 +2,6 @@ export { hoverColumns, hoverRows, hoverTable, hoverMergedCells, clearHoverSelect
2
2
  export { insertColumn, insertRow, createTable } from './insert';
3
3
  export { getNextLayout, toggleContextualMenu, toggleHeaderColumn, toggleHeaderRow, toggleNumberColumn, toggleTableLayout, } from './toggle';
4
4
  export { clearMultipleCells } from './clear';
5
- export { autoSizeTable, convertFirstRowToHeader, deleteTable, hideInsertColumnOrRowButton, moveCursorBackward, selectColumn, selectRow, setCellAttr, setEditorFocus, setMultipleCellAttrs, setTableRef, showInsertColumnButton, showInsertRowButton, transformSliceToAddTableHeaders, triggerUnlessTableHeader, addBoldInEmptyHeaderCells, addResizeHandleDecorations, setTableSize, } from './misc';
5
+ export { autoSizeTable, convertFirstRowToHeader, deleteTable, hideInsertColumnOrRowButton, moveCursorBackward, selectColumn, selectRow, setCellAttr, setEditorFocus, setMultipleCellAttrs, setTableRef, showInsertColumnButton, showInsertRowButton, transformSliceToAddTableHeaders, triggerUnlessTableHeader, addBoldInEmptyHeaderCells, addResizeHandleDecorations, } from './misc';
6
6
  export { sortByColumn } from './sort';
7
7
  export { goToNextCell } from './go-to-next-cell';
@@ -21,7 +21,6 @@ export declare const showInsertColumnButton: (columnIndex: number) => Command;
21
21
  export declare const showInsertRowButton: (rowIndex: number) => Command;
22
22
  export declare const hideInsertColumnOrRowButton: () => Command;
23
23
  export declare const addResizeHandleDecorations: (columnIndex: number) => Command;
24
- export declare const setTableSize: (tableHeight: number, tableWidth: number) => Command;
25
24
  export declare const autoSizeTable: (view: EditorView, node: PMNode, table: HTMLTableElement, basePos: number, opts: {
26
25
  dynamicTextSizing: boolean;
27
26
  containerWidth: number;
@@ -9,7 +9,6 @@ import { Props, TableOptions } from './types';
9
9
  export default class TableView extends ReactNodeView<Props> {
10
10
  private table;
11
11
  private resizeObserver?;
12
- private editorView;
13
12
  private tableRenderOptimization?;
14
13
  eventDispatcher?: EventDispatcher;
15
14
  getPos: getPosHandlerNode;
@@ -1,4 +1 @@
1
- import { PluginKey } from 'prosemirror-state';
2
- import { TablePluginState } from '../types';
3
- export declare const pluginKey: PluginKey<TablePluginState, any>;
4
- export declare const createPluginState: (dispatch: import("../../../event-dispatcher").Dispatch<any>, initialState: TablePluginState | ((state: import("prosemirror-state").EditorState<any>) => TablePluginState)) => import("prosemirror-state").SafeStateField<TablePluginState, import("prosemirror-model").Schema<any, any>>, createCommand: <A = import("../types").TablePluginAction>(action: A | ((state: Readonly<import("prosemirror-state").EditorState<any>>) => false | A), transform?: ((tr: import("prosemirror-state").Transaction<any>, state: import("prosemirror-state").EditorState<any>) => import("prosemirror-state").Transaction<any>) | undefined) => import("../../..").Command, getPluginState: (state: import("prosemirror-state").EditorState<any>) => TablePluginState;
1
+ export declare const createPluginState: (dispatch: import("../../../event-dispatcher").Dispatch<any>, initialState: import("../types").TablePluginState | ((state: import("prosemirror-state").EditorState<any>) => import("../types").TablePluginState)) => import("prosemirror-state").SafeStateField<import("../types").TablePluginState, import("prosemirror-model").Schema<any, any>>, createCommand: <A = import("../types").TablePluginAction>(action: A | ((state: Readonly<import("prosemirror-state").EditorState<any>>) => false | A), transform?: ((tr: import("prosemirror-state").Transaction<any>, state: import("prosemirror-state").EditorState<any>) => import("prosemirror-state").Transaction<any>) | undefined) => import("../../..").Command, getPluginState: (state: import("prosemirror-state").EditorState<any>) => import("../types").TablePluginState;
@@ -0,0 +1,3 @@
1
+ import { PluginKey } from 'prosemirror-state';
2
+ import { TablePluginState } from '../types';
3
+ export declare const pluginKey: PluginKey<TablePluginState, any>;
@@ -68,6 +68,7 @@ export interface TablePluginState {
68
68
  pluginConfig: PluginConfig;
69
69
  isHeaderColumnEnabled: boolean;
70
70
  isHeaderRowEnabled: boolean;
71
+ isNumberColumnEnabled?: boolean;
71
72
  targetCellPosition?: number;
72
73
  tableNode?: PmNode;
73
74
  tableRef?: HTMLTableElement;
@@ -82,8 +83,6 @@ export interface TablePluginState {
82
83
  ordering?: TableColumnOrdering;
83
84
  resizeHandleColumnIndex?: number;
84
85
  tableCellOptimization?: boolean;
85
- tableHeight?: number;
86
- tableWidth?: number;
87
86
  isTableCollapsed?: boolean;
88
87
  canCollapseTable?: boolean;
89
88
  }
@@ -189,12 +188,6 @@ export declare type TablePluginAction = {
189
188
  type: 'HIDE_INSERT_COLUMN_OR_ROW_BUTTON';
190
189
  } | {
191
190
  type: 'TOGGLE_CONTEXTUAL_MENU';
192
- } | {
193
- type: 'SET_TABLE_SIZE';
194
- data: {
195
- tableHeight: number;
196
- tableWidth: number;
197
- };
198
191
  };
199
192
  export declare type ColumnResizingPluginAction = {
200
193
  type: 'SET_RESIZE_HANDLE_POSITION';
@@ -11,7 +11,6 @@ export interface Props {
11
11
  scrollableElement?: HTMLElement;
12
12
  isResizing?: boolean;
13
13
  layout?: TableLayout;
14
- tableWidth?: number;
15
14
  stickyHeader?: RowStickyState;
16
15
  }
17
16
  declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
@@ -0,0 +1,6 @@
1
+ import { ThemeProps } from '@atlaskit/theme/types';
2
+ export declare const tableStyles: (props: ThemeProps) => import("@emotion/react").SerializedStyles;
3
+ export declare const tableFullPageEditorStyles: import("@emotion/react").SerializedStyles;
4
+ export declare const deprecatedTableFullPageEditorStyles: import("styled-components").InterpolationValue[];
5
+ export declare const tableCommentEditorStyles: import("@emotion/react").SerializedStyles;
6
+ export declare const deprecatedTableCommentEditorStyles: import("styled-components").InterpolationValue[];
@@ -0,0 +1,15 @@
1
+ import { ThemeProps } from '@atlaskit/theme/types';
2
+ export declare const InsertMarker: (props: ThemeProps, cssString?: string | undefined) => import("@emotion/react").SerializedStyles;
3
+ export declare const HeaderButton: (props: ThemeProps, cssString?: string | undefined) => import("@emotion/react").SerializedStyles;
4
+ export declare const HeaderButtonHover: () => import("@emotion/react").SerializedStyles;
5
+ export declare const HeaderButtonDanger: () => import("@emotion/react").SerializedStyles;
6
+ export declare const insertColumnButtonWrapper: import("@emotion/react").SerializedStyles;
7
+ export declare const insertRowButtonWrapper: import("@emotion/react").SerializedStyles;
8
+ export declare const columnControlsLineMarker: (props: ThemeProps) => import("@emotion/react").SerializedStyles;
9
+ export declare const DeleteButton: import("@emotion/react").SerializedStyles;
10
+ export declare const OverflowShadow: (props: ThemeProps) => import("@emotion/react").SerializedStyles;
11
+ export declare const columnControlsDecoration: (props: ThemeProps) => import("@emotion/react").SerializedStyles;
12
+ export declare const hoveredDeleteButton: import("@emotion/react").SerializedStyles;
13
+ export declare const hoveredCell: import("@emotion/react").SerializedStyles;
14
+ export declare const hoveredWarningCell: import("@emotion/react").SerializedStyles;
15
+ export declare const resizeHandle: import("@emotion/react").SerializedStyles;
@@ -1,11 +1,11 @@
1
1
  import { Node as PmNode } from 'prosemirror-model';
2
- import { EditorState } from 'prosemirror-state';
2
+ import { EditorState, Selection } from 'prosemirror-state';
3
3
  export declare const isIsolating: (node: PmNode) => boolean;
4
- export declare const containsHeaderColumn: (state: EditorState, table: PmNode) => boolean;
5
- export declare const containsHeaderRow: (state: EditorState, table: PmNode) => boolean;
6
- export declare const checkIfHeaderColumnEnabled: (state: EditorState) => boolean;
7
- export declare const checkIfHeaderRowEnabled: (state: EditorState) => boolean;
8
- export declare const checkIfNumberColumnEnabled: (state: EditorState) => boolean;
4
+ export declare const containsHeaderColumn: (table: PmNode) => boolean;
5
+ export declare const containsHeaderRow: (table: PmNode) => boolean;
6
+ export declare const checkIfHeaderColumnEnabled: (selection: Selection) => boolean;
7
+ export declare const checkIfHeaderRowEnabled: (selection: Selection) => boolean;
8
+ export declare const checkIfNumberColumnEnabled: (selection: Selection) => boolean;
9
9
  export declare const isLayoutSupported: (state: EditorState) => boolean;
10
10
  export declare const getTableWidth: (node: PmNode) => number;
11
11
  export declare const tablesHaveDifferentColumnWidths: (currentTable: PmNode, previousTable: PmNode) => boolean;
@@ -1,3 +1,3 @@
1
1
  import { FeatureFlags } from '../../../types/feature-flags';
2
- declare const _default: (featureFlags: FeatureFlags) => import("@atlaskit/editor-common").SafePlugin<any, any>;
2
+ declare const _default: (featureFlags: FeatureFlags) => import("@atlaskit/editor-common/safe-plugin").SafePlugin<any, any>;
3
3
  export default _default;
@@ -1 +1,2 @@
1
- export declare const textFormattingStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<import("@atlaskit/theme").AtlaskitThemeProps | import("@atlaskit/theme").CustomThemeProps | import("@atlaskit/theme").NoThemeProps | undefined, any>>[];
1
+ import { ThemeProps } from '@atlaskit/theme/types';
2
+ export declare const textFormattingStyles: (props: ThemeProps) => import("@emotion/react").SerializedStyles;
@@ -14,16 +14,31 @@ export declare const toolbarMessages: {
14
14
  defaultMessage: string;
15
15
  description: string;
16
16
  };
17
+ codeOn: {
18
+ id: string;
19
+ defaultMessage: string;
20
+ description: string;
21
+ };
17
22
  subscript: {
18
23
  id: string;
19
24
  defaultMessage: string;
20
25
  description: string;
21
26
  };
27
+ subscriptOffSuperscriptOn: {
28
+ id: string;
29
+ defaultMessage: string;
30
+ description: string;
31
+ };
22
32
  superscript: {
23
33
  id: string;
24
34
  defaultMessage: string;
25
35
  description: string;
26
36
  };
37
+ superscriptOffSubscriptOn: {
38
+ id: string;
39
+ defaultMessage: string;
40
+ description: string;
41
+ };
27
42
  clearFormatting: {
28
43
  id: string;
29
44
  defaultMessage: string;
@@ -44,4 +59,19 @@ export declare const toolbarMessages: {
44
59
  defaultMessage: string;
45
60
  description: string;
46
61
  };
62
+ on: {
63
+ id: string;
64
+ defaultMessage: string;
65
+ description: string;
66
+ };
67
+ off: {
68
+ id: string;
69
+ defaultMessage: string;
70
+ description: string;
71
+ };
72
+ textFormattingOff: {
73
+ id: string;
74
+ defaultMessage: string;
75
+ description: string;
76
+ };
47
77
  };
@@ -1,5 +1,6 @@
1
1
  import { MarkType, Mark as PMMark } from 'prosemirror-model';
2
2
  import { EditorState } from 'prosemirror-state';
3
+ import { MenuIconItem } from './ui/Toolbar/types';
3
4
  export declare const nodeLen: (node: Node) => number;
4
5
  export declare const isIgnorable: (dom: any) => boolean;
5
6
  export declare const isBlockNode: (dom: any) => boolean;
@@ -14,3 +15,6 @@ export declare const markActive: (state: EditorState, mark: PMMark) => boolean;
14
15
  */
15
16
  export declare const anyMarkActive: (state: EditorState, markType: MarkType) => boolean;
16
17
  export declare const checkFormattingIsPresent: (state: EditorState) => boolean;
18
+ export declare const usePreviousObjectState: (value: any) => MenuIconItem[];
19
+ export declare const compareItemsArrays: (items: MenuIconItem[], prevItems: MenuIconItem[]) => MenuIconItem[];
20
+ export declare const isArrayContainsContent: (items: MenuIconItem[], content: string) => boolean;
@@ -1,8 +1,10 @@
1
1
  import { EditorView } from 'prosemirror-view';
2
+ import { Transaction } from 'prosemirror-state';
2
3
  import type { TypeAheadItem } from '@atlaskit/editor-common/provider-factory';
3
4
  import { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
5
+ import { INPUT_METHOD } from '../analytics/types/enums';
4
6
  import type { TypeAheadHandler, TypeAheadInputMethod } from './types';
5
- import { Command } from '../../types/command';
7
+ import type { Command } from '../../types/command';
6
8
  declare type CloseOptions = {
7
9
  insertCurrentQueryAsRawText: boolean;
8
10
  attachCommand?: Command;
@@ -12,6 +14,14 @@ declare type InsertItemProps = {
12
14
  query: string;
13
15
  sourceListItem: TypeAheadItem[];
14
16
  };
17
+ export declare const createInternalTypeAheadTools: (editorView: EditorView) => {
18
+ findTypeAheadHandler: (trigger: string) => TypeAheadHandler | null;
19
+ openTypeAheadHandler: (props: {
20
+ triggerHandler: TypeAheadHandler;
21
+ inputMethod: INPUT_METHOD.INSERT_MENU | INPUT_METHOD.KEYBOARD | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR;
22
+ query?: string | undefined;
23
+ }) => (tr: Transaction<any>) => void;
24
+ };
15
25
  export declare const createTypeAheadTools: (editorView: EditorView) => {
16
26
  isOpen: () => TypeAheadHandler | false;
17
27
  currentQuery: () => string;
@@ -5,5 +5,6 @@ declare type Props = {
5
5
  inputMethod: TypeAheadInputMethod;
6
6
  query?: string;
7
7
  };
8
+ export declare const openTypeAhead: (props: Props) => (tr: Transaction) => void;
8
9
  export declare const openTypeAheadAtCursor: ({ triggerHandler, inputMethod, query, }: Props) => (tr: Transaction) => Transaction | null;
9
10
  export {};
@@ -10,6 +10,10 @@ export declare const getTypeAheadHandler: (editorState: EditorState) => any;
10
10
  export declare const getTypeAheadQuery: (editorState: EditorState) => any;
11
11
  export declare const isTypeAheadAllowed: (state: EditorState) => boolean;
12
12
  export declare const findHandler: (id: TypeAheadAvailableNodes, state: EditorState) => TypeAheadHandler | null;
13
+ export declare const findHandlerByTrigger: ({ trigger, editorState, }: {
14
+ trigger: string;
15
+ editorState: EditorState;
16
+ }) => TypeAheadHandler | null;
13
17
  declare type MoveSelectedIndexProps = {
14
18
  editorView: EditorView;
15
19
  direction: 'next' | 'previous';
@@ -1,3 +1,4 @@
1
+ /** @jsx jsx */
1
2
  import React from 'react';
2
3
  import type { FeatureFlags } from '../../types/feature-flags';
3
4
  declare type ContentStylesProps = {
@@ -6,7 +6,7 @@ export { isEmptyParagraph, hasVisibleContent, isNodeEmpty, isEmptyDocument, proc
6
6
  export { cascadeCommands, getEditorValueWithMedia } from './action';
7
7
  export { isMarkAllowedInRange, isMarkExcluded, removeBlockMarks, sanitiseSelectionMarksForWrapping, sanitiseMarksInSelection, } from './mark';
8
8
  export { isParagraph, isText, isLinkMark, validateNodes } from './nodes';
9
- export { isChromeWithSelectionBug, normaliseNestedLayout, setNodeSelection, setAllSelection, setGapCursorSelection, setCellSelection, setTextSelection, isValidPosition, } from './selection';
9
+ export { normaliseNestedLayout, setNodeSelection, setAllSelection, setGapCursorSelection, setCellSelection, setTextSelection, isValidPosition, } from './selection';
10
10
  export type { JSONDocNode, JSONNode };
11
11
  export { containsClassName } from './dom';
12
12
  export { default as measurements } from './performance/measure-enum';
@@ -9,7 +9,6 @@ export declare function setAllSelection(view: EditorView): void;
9
9
  export declare function setGapCursorSelection(view: EditorView, pos: number, side: Side): void;
10
10
  export declare function setCellSelection(view: EditorView, anchor: number, head?: number): void;
11
11
  export declare const normaliseNestedLayout: ({ selection, doc }: EditorState | Transaction, node: Node) => Node<any>;
12
- export declare const isChromeWithSelectionBug: boolean;
13
12
  export declare const isSelectionAtStartOfNode: ($pos: ResolvedPos, parentNode?: ContentNodeWithPos | undefined) => boolean;
14
13
  export declare const isSelectionAtEndOfNode: ($pos: ResolvedPos, parentNode?: ContentNodeWithPos | undefined) => boolean;
15
14
  export declare const isValidPosition: (pos: number, state: EditorState) => boolean;