@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
@@ -5,11 +5,11 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.SecondaryToolbar = exports.NonCustomToolbarWrapper = exports.MainToolbarSecondChild = exports.MainToolbarIconBefore = exports.MainToolbarFirstChild = exports.MainToolbar = exports.MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT = exports.CustomToolbarWrapper = void 0;
8
+ exports.nonCustomToolbarWrapperStyle = exports.mainToolbarStyle = exports.mainToolbarSecondChildStyle = exports.mainToolbarIconBeforeStyle = exports.mainToolbarFirstChildStyle = exports.customToolbarWrapperStyle = exports.MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT = void 0;
9
9
 
10
10
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
11
11
 
12
- var _styledComponents = _interopRequireDefault(require("styled-components"));
12
+ var _react = require("@emotion/react");
13
13
 
14
14
  var _colors = require("@atlaskit/theme/colors");
15
15
 
@@ -17,51 +17,39 @@ var _constants = require("@atlaskit/theme/constants");
17
17
 
18
18
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
19
19
 
20
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
20
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10;
21
21
 
22
22
  var MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT = 868;
23
23
  exports.MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT = MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT;
24
24
  var toolbarLineHeight = 56;
25
-
26
- var MainToolbar = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n align-items: center;\n box-shadow: ", ";\n transition: box-shadow 200ms ", ";\n z-index: ", ";\n display: flex;\n height: ", "px;\n flex-shrink: 0;\n background-color: white;\n\n & object {\n height: 0 !important;\n }\n\n @media (max-width: ", "px) {\n ", "\n }\n\n @media (max-width: ", "px) {\n display: grid;\n height: calc(", "px * 2);\n }\n"])), function (props) {
27
- return props.showKeyline ? "0 ".concat(_editorSharedStyles.akEditorToolbarKeylineHeight, "px 0 0 ").concat(_colors.N30) : 'none';
28
- }, _editorSharedStyles.akEditorSwoopCubicBezier, _editorSharedStyles.akEditorMenuZIndex, toolbarLineHeight, MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, function (props) {
29
- return props.twoLineEditorToolbar && "\n flex-wrap: wrap;\n height: calc(".concat(toolbarLineHeight, "px * 2);\n ");
30
- }, _editorSharedStyles.akEditorMobileMaxWidth, toolbarLineHeight);
31
-
32
- exports.MainToolbar = MainToolbar;
33
- MainToolbar.displayName = 'MainToolbar';
34
-
35
- var MainToolbarIconBefore = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n margin: ", "px;\n height: ", "px;\n width: ", "px;\n @media (max-width: ", "px) {\n grid-column: 1;\n grid-row: 1;\n }\n"])), (0, _constants.gridSize)() * 2, (0, _constants.gridSize)() * 4, (0, _constants.gridSize)() * 4, _editorSharedStyles.akEditorMobileMaxWidth);
36
-
37
- exports.MainToolbarIconBefore = MainToolbarIconBefore;
38
- MainToolbarIconBefore.displayName = 'MainToolbarIconBefore';
39
-
40
- var MainToolbarFirstChild = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-grow: 1;\n\n @media (max-width: ", "px) {\n ", "\n }\n @media (max-width: ", "px) {\n grid-column: 1;\n grid-row: 1;\n }\n"])), MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, function (props) {
41
- return props.twoLineEditorToolbar && "\n flex: 1 1 100%;\n height: ".concat(toolbarLineHeight, "px;\n justify-content: flex-end;\n // ED-10241: We add fit-content to ensure that MainToolbar does not\n // shrink more than the size of its contents. This will prevent the\n // find/replace icon from being overlapped during a confluence\n // publish operation\n min-width: fit-content;\n ");
42
- }, _editorSharedStyles.akEditorMobileMaxWidth);
43
-
44
- exports.MainToolbarFirstChild = MainToolbarFirstChild;
45
- MainToolbarFirstChild.displayName = 'MainToolbarFirstChild';
46
-
47
- var MainToolbarSecondChild = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n // ED-10241: We add fit-content to ensure that MainToolbar does not\n // shrink more than the size of its contents. This will prevent the\n // find/replace icon from being overlapped during a confluence\n // publish operation\n min-width: fit-content;\n @media (max-width: ", "px) {\n ", "\n }\n"])), MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, function (props) {
48
- return props.twoLineEditorToolbar && "\n display: flex;\n flex-grow: 1;\n flex: 1 1 100%;\n margin: auto;\n height: ".concat(toolbarLineHeight, "px;\n min-width: 0;\n ");
49
- });
50
-
51
- exports.MainToolbarSecondChild = MainToolbarSecondChild;
52
- MainToolbarSecondChild.displayName = 'MainToolbarSecondChild';
53
-
54
- var SecondaryToolbar = _styledComponents.default.div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n box-sizing: border-box;\n justify-content: flex-end;\n align-items: center;\n flex-shrink: 0;\n display: flex;\n padding: 24px 0;\n"])));
55
-
56
- exports.SecondaryToolbar = SecondaryToolbar;
57
- SecondaryToolbar.displayName = 'SecondaryToolbar';
58
-
59
- var NonCustomToolbarWrapper = _styledComponents.default.div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n align-items: center;\n display: flex;\n flex-grow: 1;\n"])));
60
-
61
- exports.NonCustomToolbarWrapper = NonCustomToolbarWrapper;
62
- NonCustomToolbarWrapper.displayName = 'NonCustomToolbar';
63
-
64
- var CustomToolbarWrapper = _styledComponents.default.div(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n align-items: center;\n display: flex;\n"])));
65
-
66
- exports.CustomToolbarWrapper = CustomToolbarWrapper;
67
- CustomToolbarWrapper.displayName = 'CustomToolbar';
25
+ var mainToolbarWithKeyline = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n box-shadow: 0 ", "px 0 0 ", ";\n"])), _editorSharedStyles.akEditorToolbarKeylineHeight, _colors.N30);
26
+ var mainToolbarTwoLineStyle = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n @media (max-width: ", "px) {\n flex-wrap: wrap;\n height: calc(", "px * 2);\n }\n"])), MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, toolbarLineHeight);
27
+ var mainToolbar = (0, _react.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n align-items: center;\n box-shadow: none;\n transition: box-shadow 200ms ", ";\n z-index: ", ";\n display: flex;\n height: ", "px;\n flex-shrink: 0;\n background-color: white;\n\n & object {\n height: 0 !important;\n }\n\n @media (max-width: ", "px) {\n display: grid;\n height: calc(", "px * 2);\n }\n"])), _editorSharedStyles.akEditorSwoopCubicBezier, _editorSharedStyles.akEditorMenuZIndex, toolbarLineHeight, _editorSharedStyles.akEditorMobileMaxWidth, toolbarLineHeight);
28
+
29
+ var mainToolbarStyle = function mainToolbarStyle(showKeyline, twoLineEditorToolbar) {
30
+ return [mainToolbar, showKeyline && mainToolbarWithKeyline, twoLineEditorToolbar && mainToolbarTwoLineStyle];
31
+ };
32
+
33
+ exports.mainToolbarStyle = mainToolbarStyle;
34
+ var mainToolbarIconBeforeStyle = (0, _react.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n margin: ", "px;\n height: ", "px;\n width: ", "px;\n @media (max-width: ", "px) {\n grid-column: 1;\n grid-row: 1;\n }\n"])), (0, _constants.gridSize)() * 2, (0, _constants.gridSize)() * 4, (0, _constants.gridSize)() * 4, _editorSharedStyles.akEditorMobileMaxWidth);
35
+ exports.mainToolbarIconBeforeStyle = mainToolbarIconBeforeStyle;
36
+ var mainToolbarFirstChild = (0, _react.css)(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-grow: 1;\n\n @media (max-width: ", "px) {\n grid-column: 1;\n grid-row: 1;\n }\n"])), _editorSharedStyles.akEditorMobileMaxWidth);
37
+ var mainToolbarFirstChildTowLine = (0, _react.css)(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n @media (max-width: ", "px) {\n flex: 1 1 100%;\n height: ", "px;\n justify-content: flex-end;\n // ED-10241: We add fit-content to ensure that MainToolbar does not\n // shrink more than the size of its contents. This will prevent the\n // find/replace icon from being overlapped during a confluence\n // publish operation\n min-width: fit-content;\n }\n"])), MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, toolbarLineHeight);
38
+
39
+ var mainToolbarFirstChildStyle = function mainToolbarFirstChildStyle(twoLineEditorToolbar) {
40
+ return [mainToolbarFirstChild, twoLineEditorToolbar && mainToolbarFirstChildTowLine];
41
+ };
42
+
43
+ exports.mainToolbarFirstChildStyle = mainToolbarFirstChildStyle;
44
+ var mainToolbarSecondChild = (0, _react.css)(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n // ED-10241: We add fit-content to ensure that MainToolbar does not\n // shrink more than the size of its contents. This will prevent the\n // find/replace icon from being overlapped during a confluence\n // publish operation\n min-width: fit-content;\n"])));
45
+ var mainToolbarSecondChildTwoLine = (0, _react.css)(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n @media (max-width: ", "px) {\n display: flex;\n flex-grow: 1;\n flex: 1 1 100%;\n margin: auto;\n height: ", "px;\n min-width: 0;\n }\n"])), MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, toolbarLineHeight);
46
+
47
+ var mainToolbarSecondChildStyle = function mainToolbarSecondChildStyle(twoLineEditorToolbar) {
48
+ return [mainToolbarSecondChild, twoLineEditorToolbar && mainToolbarSecondChildTwoLine];
49
+ };
50
+
51
+ exports.mainToolbarSecondChildStyle = mainToolbarSecondChildStyle;
52
+ var nonCustomToolbarWrapperStyle = (0, _react.css)(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n align-items: center;\n display: flex;\n flex-grow: 1;\n"])));
53
+ exports.nonCustomToolbarWrapperStyle = nonCustomToolbarWrapperStyle;
54
+ var customToolbarWrapperStyle = (0, _react.css)(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n align-items: center;\n display: flex;\n"])));
55
+ exports.customToolbarWrapperStyle = customToolbarWrapperStyle;
@@ -5,17 +5,17 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.SidebarArea = exports.ScrollContainer = exports.FullPageEditorWrapper = exports.EditorContentGutter = exports.EditorContentArea = exports.ContentArea = void 0;
8
+ exports.sidebarArea = exports.positionedOverEditorStyle = exports.fullPageEditorWrapper = exports.editorContentGutterStyle = exports.editorContentAreaStyle = exports.editorContentAreaHideContainer = exports.contentArea = exports.ScrollContainer = void 0;
9
9
 
10
10
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
11
11
 
12
- var _styledComponents = _interopRequireDefault(require("styled-components"));
12
+ var _react = require("@emotion/react");
13
13
 
14
14
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
15
15
 
16
16
  var _adfSchema = require("@atlaskit/adf-schema");
17
17
 
18
- var _ContentStyles = _interopRequireDefault(require("../../ContentStyles"));
18
+ var _ContentStyles = require("../../ContentStyles");
19
19
 
20
20
  var _commonStyles = require("../../../plugins/table/ui/common-styles");
21
21
 
@@ -23,53 +23,48 @@ var _consts = require("../../../plugins/table/ui/consts");
23
23
 
24
24
  var _styles = require("../../styles");
25
25
 
26
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
26
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10;
27
27
 
28
28
  var SWOOP_ANIMATION = "0.5s ".concat(_editorSharedStyles.akEditorSwoopCubicBezier);
29
29
  var TOTAL_PADDING = _editorSharedStyles.akEditorGutterPadding * 2;
30
-
31
- var FullPageEditorWrapper = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n min-width: 340px;\n height: 100%;\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n"])));
32
-
33
- exports.FullPageEditorWrapper = FullPageEditorWrapper;
34
- FullPageEditorWrapper.displayName = 'FullPageEditorWrapper';
35
- var ScrollContainer = (0, _styledComponents.default)(_ContentStyles.default)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n flex-grow: 1;\n height: 100%;\n overflow-y: scroll;\n position: relative;\n display: flex;\n flex-direction: column;\n scroll-behavior: smooth;\n ", ";\n"])), _styles.scrollbarStyles);
30
+ var fullPageEditorWrapper = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n min-width: 340px;\n height: 100%;\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n"])));
31
+ exports.fullPageEditorWrapper = fullPageEditorWrapper;
32
+ var scrollStyles = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n flex-grow: 1;\n height: 100%;\n overflow-y: scroll;\n position: relative;\n display: flex;\n flex-direction: column;\n scroll-behavior: smooth;\n ", ";\n"])), _styles.scrollbarStyles);
33
+ var ScrollContainer = (0, _ContentStyles.createEditorContentStyle)(scrollStyles);
36
34
  exports.ScrollContainer = ScrollContainer;
37
- ScrollContainer.displayName = 'ScrollContainer';
38
-
39
- var ContentArea = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: row;\n height: calc(100% - ", ");\n box-sizing: border-box;\n margin: 0;\n padding: 0\n ", "px;\n\n // transition used to match scrollbar with config panel opening animation\n // only use animation when opening as there is a bug with floating toolbars.\n transition: padding ", "ms\n ", ";\n"])), _editorSharedStyles.ATLASSIAN_NAVIGATION_HEIGHT, function (p) {
40
- return p.positionedOverEditor ? _editorSharedStyles.akEditorContextPanelWidth : 0;
41
- }, function (p) {
42
- return p.positionedOverEditor ? 500 : 0;
43
- }, _editorSharedStyles.akEditorSwoopCubicBezier);
44
-
45
- exports.ContentArea = ContentArea;
46
- ContentArea.displayName = 'ContentArea';
47
-
48
- var SidebarArea = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n height: 100%;\n box-sizing: border-box;\n align-self: flex-end;\n"])));
49
-
50
- exports.SidebarArea = SidebarArea;
51
- SidebarArea.displayName = 'SidebarArea';
52
-
53
- var EditorContentArea = _styledComponents.default.div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n line-height: 24px;\n padding-top: 50px;\n padding-bottom: 55px;\n height: calc(\n 100% - 105px\n ); /* fill the viewport: 100% - (padding top & bottom) */\n width: 100%;\n margin: auto;\n flex-direction: column;\n flex-grow: 1;\n\n max-width: ", "px;\n transition: max-width ", ";\n\n & .ProseMirror {\n flex-grow: 1;\n box-sizing: border-box;\n }\n\n & .ProseMirror {\n & > * {\n /* pre-emptively clear all direct descendant content, just in case any are adjacent floated content */\n clear: both;\n }\n > p,\n > ul,\n > ol:not(", "):not(", "),\n > h1,\n > h2,\n > h3,\n > h4,\n > h5,\n > h6 {\n /* deliberately allow wrapping of text based nodes, just in case any are adjacent floated content */\n clear: none;\n }\n\n > p:last-child {\n margin-bottom: 24px;\n }\n }\n\n ", ";\n\n .fabric-editor--full-width-mode {\n /* Full Width Mode styles for ignoring breakout sizes */\n .fabric-editor-breakout-mark,\n .extension-container.block,\n .pm-table-container {\n width: 100% !important;\n }\n\n .fabric-editor-breakout-mark {\n margin-left: unset !important;\n transform: none !important;\n }\n\n /* Prevent horizontal scroll on page in full width mode */\n ", "\n }\n"])), function (_ref) {
54
- var theme = _ref.theme,
55
- fullWidthMode = _ref.fullWidthMode;
56
- return (fullWidthMode ? _editorSharedStyles.akEditorFullWidthLayoutWidth : theme.layoutMaxWidth) + TOTAL_PADDING;
57
- }, SWOOP_ANIMATION, _adfSchema.taskListSelector, _adfSchema.decisionListSelector, _commonStyles.deprecatedTableFullPageEditorStyles, function (_ref2) {
58
- var containerWidth = _ref2.containerWidth;
59
-
60
- if (!containerWidth) {
61
- // initially hide until we have a containerWidth and can properly size them,
62
- // otherwise they can cause the editor width to extend which is non-recoverable
63
- return "\n .pm-table-container,\n .code-block,\n .extension-container {\n display: none;\n }\n ";
64
- }
65
-
66
- return "\n .pm-table-container,\n .code-block,\n .extension-container {\n max-width: ".concat(containerWidth - TOTAL_PADDING - _consts.tableMarginFullWidthMode * 2, "px;\n }\n\n [data-layout-section] {\n max-width: ").concat(containerWidth - TOTAL_PADDING + _editorSharedStyles.akLayoutGutterOffset * 2, "px;\n }\n ");
67
- });
68
-
69
- exports.EditorContentArea = EditorContentArea;
70
- EditorContentArea.displayName = 'EditorContentArea';
71
-
72
- var EditorContentGutter = _styledComponents.default.div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n box-sizing: border-box;\n padding: 0 ", "px;\n"])), _editorSharedStyles.akEditorGutterPadding);
73
-
74
- exports.EditorContentGutter = EditorContentGutter;
75
- EditorContentGutter.displayName = 'EditorContentGutter';
35
+ ScrollContainer.displayName = 'ScrollContainer'; // transition used to match scrollbar with config panel opening animation
36
+ // only use animation when opening as there is a bug with floating toolbars.
37
+
38
+ var positionedOverEditorStyle = (0, _react.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n padding: 0 ", "px;\n transition: padding 500ms ", ";\n"])), _editorSharedStyles.akEditorContextPanelWidth, _editorSharedStyles.akEditorSwoopCubicBezier);
39
+ exports.positionedOverEditorStyle = positionedOverEditorStyle;
40
+ var contentArea = (0, _react.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: row;\n height: calc(100% - ", ");\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n transition: padding 0ms ", ";\n"])), _editorSharedStyles.ATLASSIAN_NAVIGATION_HEIGHT, _editorSharedStyles.akEditorSwoopCubicBezier);
41
+ exports.contentArea = contentArea;
42
+ var sidebarArea = (0, _react.css)(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n height: 100%;\n box-sizing: border-box;\n align-self: flex-end;\n"]))); // initially hide until we have a containerWidth and can properly size them,
43
+ // otherwise they can cause the editor width to extend which is non-recoverable
44
+
45
+ exports.sidebarArea = sidebarArea;
46
+ var editorContentAreaHideContainer = (0, _react.css)(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n .fabric-editor--full-width-mode {\n .pm-table-container,\n .code-block,\n .extension-container {\n display: none;\n }\n }\n"])));
47
+ /* Prevent horizontal scroll on page in full width mode */
48
+
49
+ exports.editorContentAreaHideContainer = editorContentAreaHideContainer;
50
+
51
+ var editorContentAreaContainerStyle = function editorContentAreaContainerStyle(containerWidth) {
52
+ return (0, _react.css)(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n .fabric-editor--full-width-mode {\n .pm-table-container,\n .code-block,\n .extension-container {\n max-width: ", "px;\n }\n\n [data-layout-section] {\n max-width: ", "px;\n }\n }\n"])), containerWidth - TOTAL_PADDING - _consts.tableMarginFullWidthMode * 2, containerWidth - TOTAL_PADDING + _editorSharedStyles.akLayoutGutterOffset * 2);
53
+ };
54
+
55
+ var editorContentAreaStyle = function editorContentAreaStyle(_ref) {
56
+ var layoutMaxWidth = _ref.layoutMaxWidth,
57
+ fullWidthMode = _ref.fullWidthMode,
58
+ containerWidth = _ref.containerWidth;
59
+ return [editorContentArea, !fullWidthMode && editorContentAreaWithLayoutWith(layoutMaxWidth), containerWidth ? editorContentAreaContainerStyle(containerWidth) : editorContentAreaHideContainer];
60
+ };
61
+
62
+ exports.editorContentAreaStyle = editorContentAreaStyle;
63
+
64
+ var editorContentAreaWithLayoutWith = function editorContentAreaWithLayoutWith(layoutMaxWidth) {
65
+ return (0, _react.css)(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n max-width: ", "px;\n"])), layoutMaxWidth + TOTAL_PADDING);
66
+ };
67
+
68
+ var editorContentArea = (0, _react.css)(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n line-height: 24px;\n padding-top: 50px;\n padding-bottom: 55px;\n height: calc(\n 100% - 105px\n ); /* fill the viewport: 100% - (padding top & bottom) */\n width: 100%;\n margin: auto;\n flex-direction: column;\n flex-grow: 1;\n\n max-width: ", "px;\n transition: max-width ", ";\n & .ProseMirror {\n flex-grow: 1;\n box-sizing: border-box;\n }\n\n & .ProseMirror {\n & > * {\n /* pre-emptively clear all direct descendant content, just in case any are adjacent floated content */\n clear: both;\n }\n > p,\n > ul,\n > ol:not(", "):not(", "),\n > h1,\n > h2,\n > h3,\n > h4,\n > h5,\n > h6 {\n /* deliberately allow wrapping of text based nodes, just in case any are adjacent floated content */\n clear: none;\n }\n\n > p:last-child {\n margin-bottom: 24px;\n }\n }\n\n ", ";\n\n .fabric-editor--full-width-mode {\n /* Full Width Mode styles for ignoring breakout sizes */\n .fabric-editor-breakout-mark,\n .extension-container.block,\n .pm-table-container {\n width: 100% !important;\n }\n\n .fabric-editor-breakout-mark {\n margin-left: unset !important;\n transform: none !important;\n }\n }\n"])), _editorSharedStyles.akEditorFullWidthLayoutWidth + TOTAL_PADDING, SWOOP_ANIMATION, _adfSchema.taskListSelector, _adfSchema.decisionListSelector, _commonStyles.tableFullPageEditorStyles);
69
+ var editorContentGutterStyle = (0, _react.css)(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n box-sizing: border-box;\n padding: 0 ", "px;\n"])), _editorSharedStyles.akEditorGutterPadding);
70
+ exports.editorContentGutterStyle = editorContentGutterStyle;
@@ -13,7 +13,7 @@ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/hel
13
13
 
14
14
  var _react = _interopRequireWildcard(require("react"));
15
15
 
16
- var _styledComponents = _interopRequireDefault(require("styled-components"));
16
+ var _react2 = require("@emotion/react");
17
17
 
18
18
  var _maxContentSize = require("../../plugins/max-content-size");
19
19
 
@@ -23,20 +23,18 @@ var _WithPluginState = _interopRequireDefault(require("../WithPluginState"));
23
23
 
24
24
  var _WithFlash = _interopRequireDefault(require("../WithFlash"));
25
25
 
26
- var _ContentStyles = _interopRequireDefault(require("../ContentStyles"));
26
+ var _ContentStyles = require("../ContentStyles");
27
27
 
28
28
  var _Addon = require("../Addon");
29
29
 
30
- var _templateObject, _templateObject2;
30
+ var _templateObject;
31
31
 
32
32
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
33
33
 
34
34
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
35
35
 
36
- var MobileEditor = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n min-height: 30px;\n width: 100%;\n max-width: inherit;\n box-sizing: border-box;\n word-wrap: break-word;\n\n div > .ProseMirror {\n outline: none;\n white-space: pre-wrap;\n padding: 0;\n margin: 0;\n }\n"])));
37
-
38
- MobileEditor.displayName = 'MobileEditor';
39
- var ContentArea = (0, _styledComponents.default)(_ContentStyles.default)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)([""])));
36
+ var mobileEditor = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n min-height: 30px;\n width: 100%;\n max-width: inherit;\n box-sizing: border-box;\n word-wrap: break-word;\n\n div > .ProseMirror {\n outline: none;\n white-space: pre-wrap;\n padding: 0;\n margin: 0;\n }\n"])));
37
+ var ContentArea = (0, _ContentStyles.createEditorContentStyle)();
40
38
  ContentArea.displayName = 'ContentArea';
41
39
 
42
40
  function MobileAppearance(_ref) {
@@ -75,21 +73,20 @@ function MobileAppearance(_ref) {
75
73
  }
76
74
  }
77
75
 
78
- return /*#__PURE__*/_react.default.createElement(_WithFlash.default, {
76
+ return (0, _react2.jsx)(_WithFlash.default, {
79
77
  animate: maxContentSizeReached
80
- }, /*#__PURE__*/_react.default.createElement(MobileEditor, {
81
- isMaxContentSizeReached: maxContentSizeReached,
82
- maxHeight: maxHeight
83
- }, /*#__PURE__*/_react.default.createElement(_Addon.ClickAreaMobile, {
78
+ }, (0, _react2.jsx)("div", {
79
+ css: mobileEditor
80
+ }, (0, _react2.jsx)(_Addon.ClickAreaMobile, {
84
81
  editorView: editorView || undefined,
85
82
  minHeight: minHeight,
86
83
  persistScrollGutter: persistScrollGutter,
87
84
  isExpanded: currentIsExpanded
88
- }, /*#__PURE__*/_react.default.createElement(ContentArea, null, /*#__PURE__*/_react.default.createElement("div", {
85
+ }, (0, _react2.jsx)(ContentArea, null, (0, _react2.jsx)("div", {
89
86
  className: "ak-editor-content-area"
90
87
  }, children)))));
91
- }, [children, maxHeight, editorView, persistScrollGutter]);
92
- return /*#__PURE__*/_react.default.createElement(_WithPluginState.default, {
88
+ }, [children, editorView, persistScrollGutter]);
89
+ return (0, _react2.jsx)(_WithPluginState.default, {
93
90
  plugins: {
94
91
  maxContentSize: _maxContentSize.pluginKey,
95
92
  mobileDimensions: _pluginFactory.mobileDimensionsPluginKey
@@ -25,6 +25,8 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
25
25
 
26
26
  var _react = _interopRequireWildcard(require("react"));
27
27
 
28
+ var _react2 = require("@emotion/react");
29
+
28
30
  var _styles = require("./styles");
29
31
 
30
32
  var _reactIntlNext = require("react-intl-next");
@@ -79,8 +81,9 @@ var ChromeCollapsed = /*#__PURE__*/function (_PureComponent) {
79
81
  key: "render",
80
82
  value: function render() {
81
83
  var placeholder = this.props.text || this.props.intl.formatMessage(_messages.messages.chromeCollapsedPlaceholder);
82
- return /*#__PURE__*/_react.default.createElement(_styles.Input, {
83
- innerRef: this.handleInputRef,
84
+ return (0, _react2.jsx)("input", {
85
+ css: _styles.inputStyle,
86
+ ref: this.handleInputRef,
84
87
  onFocus: this.focusHandler,
85
88
  placeholder: placeholder
86
89
  });
@@ -5,11 +5,11 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.Input = void 0;
8
+ exports.inputStyle = void 0;
9
9
 
10
10
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
11
11
 
12
- var _styledComponents = _interopRequireDefault(require("styled-components"));
12
+ var _react = require("@emotion/react");
13
13
 
14
14
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
15
15
 
@@ -19,6 +19,5 @@ var _colors = require("@atlaskit/theme/colors");
19
19
 
20
20
  var _templateObject;
21
21
 
22
- var Input = _styledComponents.default.input(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n /* Normal .className gets overridden by input[type=text] hence this hack to produce input.className */\n input& {\n background-color: white;\n border: 1px solid ", ";\n border-radius: ", "px;\n box-sizing: border-box;\n height: 40px;\n padding-left: 20px;\n padding-top: 12px;\n padding-bottom: 12px;\n font-size: ", ";\n width: 100%;\n font-weight: 400;\n line-height: 1.42857142857143;\n letter-spacing: -0.005em;\n color: ", ";\n\n &:hover {\n border-color: ", ";\n cursor: text;\n }\n }\n"])), _editorSharedStyles.akEditorSubtleAccent, (0, _constants.borderRadius)(), (0, _editorSharedStyles.relativeFontSizeToBase16)(14), _colors.N300, _colors.N50);
23
-
24
- exports.Input = Input;
22
+ var inputStyle = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n /* Normal .className gets overridden by input[type=text] hence this hack to produce input.className */\n input& {\n background-color: white;\n border: 1px solid ", ";\n border-radius: ", "px;\n box-sizing: border-box;\n height: 40px;\n padding-left: 20px;\n padding-top: 12px;\n padding-bottom: 12px;\n font-size: ", ";\n width: 100%;\n font-weight: 400;\n line-height: 1.42857142857143;\n letter-spacing: -0.005em;\n color: ", ";\n\n &:hover {\n border-color: ", ";\n cursor: text;\n }\n }\n"])), _editorSharedStyles.akEditorSubtleAccent, (0, _constants.borderRadius)(), (0, _editorSharedStyles.relativeFontSizeToBase16)(14), _colors.N300, _colors.N50);
23
+ exports.inputStyle = inputStyle;
@@ -25,6 +25,8 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
25
25
 
26
26
  var _react = _interopRequireWildcard(require("react"));
27
27
 
28
+ var _react2 = require("@emotion/react");
29
+
28
30
  var _done = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/done"));
29
31
 
30
32
  var _colors = require("@atlaskit/theme/colors");
@@ -82,9 +84,12 @@ var Color = /*#__PURE__*/function (_PureComponent) {
82
84
  borderColor = _this$props2.borderColor,
83
85
  _this$props2$checkMar = _this$props2.checkMarkColor,
84
86
  checkMarkColor = _this$props2$checkMar === void 0 ? _colors.N0 : _this$props2$checkMar;
85
- return /*#__PURE__*/_react.default.createElement(_tooltip.default, {
87
+ return (0, _react2.jsx)(_tooltip.default, {
86
88
  content: label
87
- }, /*#__PURE__*/_react.default.createElement(_styles.ButtonWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.Button, {
89
+ }, (0, _react2.jsx)("span", {
90
+ css: _styles.buttonWrapperStyle
91
+ }, (0, _react2.jsx)("button", {
92
+ css: _styles.buttonStyle,
88
93
  "aria-label": label,
89
94
  role: "radio",
90
95
  "aria-checked": isSelected,
@@ -97,7 +102,7 @@ var Color = /*#__PURE__*/function (_PureComponent) {
97
102
  border: "1px solid ".concat(borderColor)
98
103
  },
99
104
  autoFocus: autoFocus
100
- }, isSelected && /*#__PURE__*/_react.default.createElement(_done.default, {
105
+ }, isSelected && (0, _react2.jsx)(_done.default, {
101
106
  primaryColor: checkMarkColor,
102
107
  label: ""
103
108
  }))));
@@ -5,20 +5,17 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.ButtonWrapper = exports.Button = void 0;
8
+ exports.buttonWrapperStyle = exports.buttonStyle = void 0;
9
9
 
10
10
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
11
11
 
12
- var _styledComponents = _interopRequireDefault(require("styled-components"));
12
+ var _react = require("@emotion/react");
13
13
 
14
14
  var _colors = require("@atlaskit/theme/colors");
15
15
 
16
16
  var _templateObject, _templateObject2;
17
17
 
18
- var Button = _styledComponents.default.button(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n height: 26px;\n width: 26px;\n background: ", ";\n padding: 0;\n border-radius: 4px;\n border: 1px solid ", ";\n cursor: pointer;\n display: block;\n"])), _colors.N900, _colors.N0);
19
-
20
- exports.Button = Button;
21
-
22
- var ButtonWrapper = _styledComponents.default.span(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n border: 1px solid transparent;\n margin: 1px;\n font-size: 0;\n display: flex;\n align-items: center;\n padding: 1px;\n border-radius: 6px;\n &:hover {\n border-color: ", ";\n }\n"])), _colors.N50);
23
-
24
- exports.ButtonWrapper = ButtonWrapper;
18
+ var buttonStyle = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n height: 26px;\n width: 26px;\n background: ", ";\n padding: 0;\n border-radius: 4px;\n border: 1px solid ", ";\n cursor: pointer;\n display: block;\n"])), _colors.N900, _colors.N0);
19
+ exports.buttonStyle = buttonStyle;
20
+ var buttonWrapperStyle = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n border: 1px solid transparent;\n margin: 1px;\n font-size: 0;\n display: flex;\n align-items: center;\n padding: 1px;\n border-radius: 6px;\n &:hover {\n border-color: ", ";\n }\n"])), _colors.N50);
21
+ exports.buttonWrapperStyle = buttonWrapperStyle;
@@ -13,7 +13,7 @@ var _theme = require("@atlaskit/theme");
13
13
 
14
14
  var _common = require("./common");
15
15
 
16
- var _styles = require("@atlaskit/editor-common/styles");
16
+ var _panel = require("@atlaskit/editor-common/panel");
17
17
 
18
18
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
19
19
 
@@ -90,67 +90,67 @@ var panelBackgroundPalette = [{
90
90
  exports.panelBackgroundPalette = panelBackgroundPalette;
91
91
  var panelDarkModeBackgroundPalette = [{
92
92
  label: 'Dark gray',
93
- value: _styles.darkPanelColors.DarkGray
93
+ value: _panel.darkPanelColors.DarkGray
94
94
  }, {
95
95
  label: 'Dark blue',
96
- value: _styles.darkPanelColors.B1200S
96
+ value: _panel.darkPanelColors.B1200S
97
97
  }, {
98
98
  label: 'Dark teal',
99
- value: _styles.darkPanelColors.T1200S
99
+ value: _panel.darkPanelColors.T1200S
100
100
  }, {
101
101
  label: 'Dark green',
102
- value: _styles.darkPanelColors.G1200S
102
+ value: _panel.darkPanelColors.G1200S
103
103
  }, {
104
104
  label: 'Dark yellow',
105
- value: _styles.darkPanelColors.Y1200S
105
+ value: _panel.darkPanelColors.Y1200S
106
106
  }, {
107
107
  label: 'Dark red',
108
- value: _styles.darkPanelColors.R1200S
108
+ value: _panel.darkPanelColors.R1200S
109
109
  }, {
110
110
  label: 'Dark purple',
111
- value: _styles.darkPanelColors.P1200S
111
+ value: _panel.darkPanelColors.P1200S
112
112
  }, {
113
113
  label: 'Gray',
114
- value: _styles.darkPanelColors.Gray
114
+ value: _panel.darkPanelColors.Gray
115
115
  }, {
116
116
  label: 'blue',
117
- value: _styles.darkPanelColors.B900
117
+ value: _panel.darkPanelColors.B900
118
118
  }, {
119
119
  label: 'teal',
120
- value: _styles.darkPanelColors.T900
120
+ value: _panel.darkPanelColors.T900
121
121
  }, {
122
122
  label: 'green',
123
- value: _styles.darkPanelColors.G900
123
+ value: _panel.darkPanelColors.G900
124
124
  }, {
125
125
  label: 'yellow',
126
- value: _styles.darkPanelColors.Y900
126
+ value: _panel.darkPanelColors.Y900
127
127
  }, {
128
128
  label: 'red',
129
- value: _styles.darkPanelColors.R900
129
+ value: _panel.darkPanelColors.R900
130
130
  }, {
131
131
  label: 'purple',
132
- value: _styles.darkPanelColors.P900
132
+ value: _panel.darkPanelColors.P900
133
133
  }, {
134
134
  label: 'Light gray',
135
- value: _styles.darkPanelColors.LightGray
135
+ value: _panel.darkPanelColors.LightGray
136
136
  }, {
137
137
  label: 'Light blue',
138
- value: _styles.darkPanelColors.B800S
138
+ value: _panel.darkPanelColors.B800S
139
139
  }, {
140
140
  label: 'Light teal',
141
- value: _styles.darkPanelColors.T900S
141
+ value: _panel.darkPanelColors.T900S
142
142
  }, {
143
143
  label: 'Light green',
144
- value: _styles.darkPanelColors.G900S
144
+ value: _panel.darkPanelColors.G900S
145
145
  }, {
146
146
  label: 'Light yellow',
147
- value: _styles.darkPanelColors.Y800S
147
+ value: _panel.darkPanelColors.Y800S
148
148
  }, {
149
149
  label: 'Light red',
150
- value: _styles.darkPanelColors.R800S
150
+ value: _panel.darkPanelColors.R800S
151
151
  }, {
152
152
  label: 'Light purple',
153
- value: _styles.darkPanelColors.P800S
153
+ value: _panel.darkPanelColors.P800S
154
154
  }].map(function (color) {
155
155
  return _objectSpread(_objectSpread({}, color), {}, {
156
156
  border: _common.DEFAULT_BORDER_COLOR
@@ -10,6 +10,8 @@ exports.getContrastColor = getContrastColor;
10
10
 
11
11
  var _react = _interopRequireDefault(require("react"));
12
12
 
13
+ var _react2 = require("@emotion/react");
14
+
13
15
  var _chromatism = _interopRequireDefault(require("chromatism"));
14
16
 
15
17
  var _Color = _interopRequireDefault(require("./Color"));
@@ -20,6 +22,8 @@ var _reactIntlNext = require("react-intl-next");
20
22
 
21
23
  var _colors = require("@atlaskit/theme/colors");
22
24
 
25
+ /** @jsx jsx */
26
+
23
27
  /**
24
28
  * For a given color pick the color from a list of colors with
25
29
  * the highest contrast
@@ -52,8 +56,9 @@ var ColorPalette = function ColorPalette(props) {
52
56
  }, []);
53
57
  }, [palette, cols]);
54
58
 
55
- return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, colorsPerRow.map(function (row, rowIdx) {
56
- return /*#__PURE__*/_react.default.createElement(_styles.ColorPaletteWrapper, {
59
+ return (0, _react2.jsx)(_react.default.Fragment, null, colorsPerRow.map(function (row, rowIdx) {
60
+ return (0, _react2.jsx)("div", {
61
+ css: _styles.colorPaletteWrapper,
57
62
  className: className,
58
63
  key: "row-first-color-".concat(row[0].value),
59
64
  role: "radiogroup"
@@ -62,7 +67,7 @@ var ColorPalette = function ColorPalette(props) {
62
67
  label = _ref.label,
63
68
  border = _ref.border,
64
69
  message = _ref.message;
65
- return /*#__PURE__*/_react.default.createElement(_Color.default, {
70
+ return (0, _react2.jsx)(_Color.default, {
66
71
  key: value,
67
72
  value: value,
68
73
  borderColor: border,
@@ -5,16 +5,15 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.ColorPaletteWrapper = void 0;
8
+ exports.colorPaletteWrapper = void 0;
9
9
 
10
10
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
11
11
 
12
- var _styledComponents = _interopRequireDefault(require("styled-components"));
12
+ var _react = require("@emotion/react");
13
13
 
14
14
  var _constants = require("@atlaskit/theme/constants");
15
15
 
16
16
  var _templateObject;
17
17
 
18
- var ColorPaletteWrapper = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n padding: 0 ", "px;\n /* Firefox bug fix: https://product-fabric.atlassian.net/browse/ED-1789 */\n display: flex;\n"])), (0, _constants.gridSize)());
19
-
20
- exports.ColorPaletteWrapper = ColorPaletteWrapper;
18
+ var colorPaletteWrapper = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n padding: 0 ", "px;\n /* Firefox bug fix: https://product-fabric.atlassian.net/browse/ED-1789 */\n display: flex;\n"])), (0, _constants.gridSize)());
19
+ exports.colorPaletteWrapper = colorPaletteWrapper;