@atlaskit/editor-core 176.0.3 → 177.0.1

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 (632) hide show
  1. package/.eslintrc.js +2 -2
  2. package/CHANGELOG.md +114 -0
  3. package/dist/cjs/create-editor/ReactEditorView.js +3 -1
  4. package/dist/cjs/create-editor/create-plugins-list.js +9 -6
  5. package/dist/cjs/create-editor/messages.js +17 -0
  6. package/dist/cjs/i18n/en.js +2 -2
  7. package/dist/cjs/i18n/en_GB.js +2 -2
  8. package/dist/cjs/i18n/en_ZZ.js +2 -2
  9. package/dist/cjs/i18n/index.js +4 -4
  10. package/dist/cjs/i18n/languages.js +9 -4
  11. package/dist/cjs/labs/next/full-page.js +2 -4
  12. package/dist/cjs/labs/next/presets/mobile.js +2 -2
  13. package/dist/cjs/labs/next/presets/preset.js +38 -6
  14. package/dist/cjs/plugins/alignment/ui/ToolbarAlignment/styles.js +1 -3
  15. package/dist/cjs/plugins/annotation/nodeviews/index.js +1 -0
  16. package/dist/cjs/plugins/block-type/ui/ToolbarBlockType/index.js +6 -1
  17. package/dist/cjs/plugins/block-type/ui/ToolbarBlockType/styled.js +2 -4
  18. package/dist/cjs/plugins/breakout/ui/LayoutButton.js +5 -3
  19. package/dist/cjs/plugins/card/pm-plugins/doc.js +18 -29
  20. package/dist/cjs/plugins/card/pm-plugins/main.js +7 -21
  21. package/dist/cjs/plugins/card/styles.js +1 -3
  22. package/dist/cjs/plugins/card/toolbar.js +24 -8
  23. package/dist/cjs/plugins/card/ui/EditLinkToolbar.js +9 -5
  24. package/dist/cjs/plugins/card/ui/LinkToolbarAppearance.js +19 -53
  25. package/dist/cjs/plugins/card/utils.js +17 -3
  26. package/dist/cjs/plugins/code-block/styles.js +2 -4
  27. package/dist/cjs/plugins/collab-edit/actions.js +3 -3
  28. package/dist/cjs/plugins/collab-edit/styles.js +2 -4
  29. package/dist/cjs/plugins/collab-edit/ui/styles.js +2 -4
  30. package/dist/cjs/plugins/copy-button/toolbar.js +5 -3
  31. package/dist/cjs/plugins/date/index.js +1 -7
  32. package/dist/cjs/plugins/date/styles.js +1 -3
  33. package/dist/cjs/plugins/date/ui/DatePicker/index.js +2 -5
  34. package/dist/cjs/plugins/emoji/index.js +7 -14
  35. package/dist/cjs/plugins/expand/pm-plugins/main.js +4 -1
  36. package/dist/cjs/plugins/expand/toolbar.js +1 -0
  37. package/dist/cjs/plugins/expand/ui/styles.js +14 -16
  38. package/dist/cjs/plugins/extension/commands.js +17 -2
  39. package/dist/cjs/plugins/extension/pm-plugins/main.js +10 -0
  40. package/dist/cjs/plugins/extension/toolbar.js +49 -7
  41. package/dist/cjs/plugins/extension/ui/Extension/Extension/styles.js +4 -6
  42. package/dist/cjs/plugins/extension/ui/Extension/InlineExtension/styles.js +1 -3
  43. package/dist/cjs/plugins/extension/ui/Extension/styles.js +5 -7
  44. package/dist/cjs/plugins/extension/ui/SaveIndicator/SaveIndicator.js +2 -4
  45. package/dist/cjs/plugins/extension/ui/styles.js +1 -3
  46. package/dist/cjs/plugins/fake-text-cursor/styles.js +1 -3
  47. package/dist/cjs/plugins/feature-flags-context/feature-flags-from-props.js +11 -11
  48. package/dist/cjs/plugins/find-replace/ui/FindReplaceToolbarButton.js +7 -2
  49. package/dist/cjs/plugins/find-replace/ui/styles.js +2 -4
  50. package/dist/cjs/plugins/floating-toolbar/index.js +16 -4
  51. package/dist/cjs/plugins/floating-toolbar/ui/CheckboxModal.js +99 -0
  52. package/dist/cjs/plugins/floating-toolbar/ui/ConfirmationModal.js +10 -30
  53. package/dist/cjs/plugins/floating-toolbar/ui/Dropdown.js +16 -4
  54. package/dist/cjs/plugins/floating-toolbar/ui/DropdownMenu.js +109 -58
  55. package/dist/cjs/plugins/floating-toolbar/ui/EditorEmojiAddIcon.js +1 -3
  56. package/dist/cjs/plugins/floating-toolbar/ui/EmojiPickerButton.js +1 -2
  57. package/dist/cjs/plugins/floating-toolbar/ui/ScrollButtons.js +30 -111
  58. package/dist/cjs/plugins/floating-toolbar/ui/Separator.js +1 -3
  59. package/dist/cjs/plugins/floating-toolbar/ui/SimpleModal.js +51 -0
  60. package/dist/cjs/plugins/floating-toolbar/ui/Toolbar.js +30 -52
  61. package/dist/cjs/plugins/floating-toolbar/ui/messages.js +13 -3
  62. package/dist/cjs/plugins/floating-toolbar/ui/styles.js +10 -12
  63. package/dist/cjs/plugins/floating-toolbar/utils.js +4 -19
  64. package/dist/cjs/plugins/grid/styles.js +1 -3
  65. package/dist/cjs/plugins/help-dialog/index.js +3 -2
  66. package/dist/cjs/plugins/help-dialog/ui/styles.js +9 -11
  67. package/dist/cjs/plugins/hyperlink/Toolbar.js +20 -1
  68. package/dist/cjs/plugins/hyperlink/ui/EditorLinkPicker/index.js +6 -3
  69. package/dist/cjs/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +3 -5
  70. package/dist/cjs/plugins/hyperlink/ui/HyperlinkAddToolbar/index.js +5 -10
  71. package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-element-browser.js +2 -1
  72. package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu-legacy.js +2 -1
  73. package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu.js +2 -1
  74. package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/dropdown-button.js +2 -1
  75. package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/index.js +2 -0
  76. package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/item.js +26 -12
  77. package/dist/cjs/plugins/jira-issue/nodeviews/jira-issue.js +2 -4
  78. package/dist/cjs/plugins/layout/styles.js +1 -3
  79. package/dist/cjs/plugins/layout/toolbar.js +1 -0
  80. package/dist/cjs/plugins/list/actions/outdent-list-items-selected.js +34 -4
  81. package/dist/cjs/plugins/list/commands/outdent-list.js +1 -1
  82. package/dist/cjs/plugins/list/index.js +6 -2
  83. package/dist/cjs/plugins/list/pm-plugins/input-rules/create-list-input-rule.js +13 -2
  84. package/dist/cjs/plugins/list/pm-plugins/input-rules/index.js +5 -2
  85. package/dist/cjs/plugins/list/pm-plugins/main.js +32 -10
  86. package/dist/cjs/plugins/media/index.js +35 -0
  87. package/dist/cjs/plugins/media/nodeviews/mediaGroup.js +7 -6
  88. package/dist/cjs/plugins/media/nodeviews/mediaInline.js +3 -1
  89. package/dist/cjs/plugins/media/nodeviews/mediaNodeUpdater.js +70 -64
  90. package/dist/cjs/plugins/media/nodeviews/mediaSingle.js +3 -1
  91. package/dist/cjs/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.js +3 -5
  92. package/dist/cjs/plugins/media/pm-plugins/main.js +6 -0
  93. package/dist/cjs/plugins/media/styles.js +1 -3
  94. package/dist/cjs/plugins/media/toolbar/index.js +3 -0
  95. package/dist/cjs/plugins/media/ui/CaptionPlaceholder/index.js +1 -3
  96. package/dist/cjs/plugins/media/ui/Media/DropPlaceholder.js +2 -4
  97. package/dist/cjs/plugins/media/ui/MediaLinkingToolbar.js +1 -3
  98. package/dist/cjs/plugins/media/utils/media-single.js +19 -3
  99. package/dist/cjs/plugins/mentions/styles.js +1 -3
  100. package/dist/cjs/plugins/mentions/ui/InviteItem/index.js +1 -3
  101. package/dist/cjs/plugins/mentions/ui/InviteItem/styles.js +2 -4
  102. package/dist/cjs/plugins/panel/styles.js +1 -3
  103. package/dist/cjs/plugins/panel/toolbar.js +1 -0
  104. package/dist/cjs/plugins/panel/utils.js +1 -1
  105. package/dist/cjs/plugins/paste/index.js +2 -1
  106. package/dist/cjs/plugins/paste/pm-plugins/analytics.js +19 -3
  107. package/dist/cjs/plugins/paste/pm-plugins/main.js +1 -1
  108. package/dist/cjs/plugins/paste/util/index.js +2 -2
  109. package/dist/cjs/plugins/placeholder/index.js +24 -47
  110. package/dist/cjs/plugins/placeholder/styles.js +2 -6
  111. package/dist/cjs/plugins/placeholder-text/styles.js +1 -3
  112. package/dist/cjs/plugins/rule/styles.js +1 -3
  113. package/dist/cjs/plugins/status/ui/statusPicker.js +1 -3
  114. package/dist/cjs/plugins/tasks-and-decisions/nodeviews/taskItem.js +7 -3
  115. package/dist/cjs/plugins/tasks-and-decisions/styles.js +1 -3
  116. package/dist/cjs/plugins/tasks-and-decisions/ui/ToolbarDecision/index.js +1 -0
  117. package/dist/cjs/plugins/text-color/ui/ToolbarTextColor/index.js +10 -5
  118. package/dist/cjs/plugins/text-formatting/ui/Toolbar/hooks/formatting-icons.js +5 -1
  119. package/dist/cjs/plugins/text-formatting/ui/Toolbar/single-toolbar-buttons.js +5 -1
  120. package/dist/cjs/plugins/toolbar-lists-indentation/ui/Toolbar.js +16 -6
  121. package/dist/cjs/plugins/type-ahead/index.js +2 -8
  122. package/dist/cjs/plugins/type-ahead/messages.js +44 -4
  123. package/dist/cjs/plugins/type-ahead/pm-plugins/decorations.js +1 -4
  124. package/dist/cjs/plugins/type-ahead/ui/InputQuery.js +18 -4
  125. package/dist/cjs/plugins/type-ahead/ui/TypeAheadList.js +9 -4
  126. package/dist/cjs/plugins/type-ahead/ui/TypeAheadListItem.js +15 -14
  127. package/dist/cjs/plugins/type-ahead/ui/TypeAheadPopup.js +3 -4
  128. package/dist/cjs/plugins/type-ahead/utils.js +44 -2
  129. package/dist/cjs/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +6 -2
  130. package/dist/cjs/plugins/unsupported-content/styles.js +1 -3
  131. package/dist/cjs/ui/Addon/Dropdown/styles.js +1 -3
  132. package/dist/cjs/ui/Addon/DropdownItem/styles.js +1 -3
  133. package/dist/cjs/ui/Alignment/AlignmentButton/index.js +4 -1
  134. package/dist/cjs/ui/Appearance/Comment/Comment.js +1 -3
  135. package/dist/cjs/ui/Appearance/Comment/Toolbar.js +2 -4
  136. package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +2 -1
  137. package/dist/cjs/ui/Appearance/FullPage/MainToolbar.js +2 -4
  138. package/dist/cjs/ui/ChromeCollapsed/styles.js +1 -3
  139. package/dist/cjs/ui/CollapsedEditor/index.js +4 -2
  140. package/dist/cjs/ui/ColorPickerButton/index.js +2 -1
  141. package/dist/cjs/ui/ConfigPanel/Fields/CheckboxGroup.js +1 -3
  142. package/dist/cjs/ui/ConfigPanel/Fields/Expand.js +1 -3
  143. package/dist/cjs/ui/ConfigPanel/Fields/Fieldset.js +4 -7
  144. package/dist/cjs/ui/ConfigPanel/Fields/common/RequiredIndicator.js +1 -3
  145. package/dist/cjs/ui/ConfigPanel/FormContent.js +2 -1
  146. package/dist/cjs/ui/ConfigPanel/Header.js +2 -4
  147. package/dist/cjs/ui/ConfigPanel/NestedForms/RemovableField.js +1 -3
  148. package/dist/cjs/ui/ContentStyles/index.js +2 -4
  149. package/dist/cjs/ui/ContextPanel/index.js +1 -3
  150. package/dist/cjs/ui/ElementBrowser/InsertMenu.js +3 -5
  151. package/dist/cjs/ui/ElementBrowser/ModalElementBrowser.js +2 -4
  152. package/dist/cjs/ui/ElementBrowser/components/CategoryList.js +2 -4
  153. package/dist/cjs/ui/ElementBrowser/components/ElementList/ElementList.js +2 -4
  154. package/dist/cjs/ui/ElementBrowser/components/ElementList/EmptyState.js +1 -3
  155. package/dist/cjs/ui/ElementBrowser/components/ElementSearch.js +1 -3
  156. package/dist/cjs/ui/FloatingToolbar/styles.js +1 -3
  157. package/dist/cjs/ui/LinkSearch/LinkSearchListItem.js +3 -5
  158. package/dist/cjs/ui/LinkSearch/ToolbarComponents.js +3 -1
  159. package/dist/cjs/ui/PanelTextInput/styles.js +1 -3
  160. package/dist/cjs/ui/ToolbarArrowKeyNavigationProvider/index.js +55 -33
  161. package/dist/cjs/ui/ToolbarFeedback/styles.js +3 -5
  162. package/dist/cjs/ui/WithFlash/index.js +2 -4
  163. package/dist/cjs/ui/styles.js +2 -4
  164. package/dist/cjs/utils/commands.js +25 -13
  165. package/dist/cjs/utils/input-rules.js +26 -2
  166. package/dist/cjs/version-wrapper.js +1 -1
  167. package/dist/cjs/version.json +1 -1
  168. package/dist/es2019/create-editor/ReactEditorView.js +2 -1
  169. package/dist/es2019/create-editor/create-plugins-list.js +9 -6
  170. package/dist/es2019/create-editor/messages.js +8 -0
  171. package/dist/es2019/i18n/en.js +2 -2
  172. package/dist/es2019/i18n/en_GB.js +2 -2
  173. package/dist/es2019/i18n/en_ZZ.js +2 -2
  174. package/dist/es2019/i18n/index.js +4 -4
  175. package/dist/es2019/i18n/languages.js +9 -4
  176. package/dist/es2019/labs/next/full-page.js +2 -3
  177. package/dist/es2019/labs/next/presets/mobile.js +2 -2
  178. package/dist/es2019/labs/next/presets/preset.js +28 -7
  179. package/dist/es2019/plugins/alignment/ui/ToolbarAlignment/styles.js +1 -2
  180. package/dist/es2019/plugins/annotation/nodeviews/index.js +1 -0
  181. package/dist/es2019/plugins/block-type/ui/ToolbarBlockType/index.js +5 -1
  182. package/dist/es2019/plugins/block-type/ui/ToolbarBlockType/styled.js +2 -3
  183. package/dist/es2019/plugins/breakout/ui/LayoutButton.js +8 -6
  184. package/dist/es2019/plugins/card/pm-plugins/doc.js +10 -19
  185. package/dist/es2019/plugins/card/pm-plugins/main.js +4 -19
  186. package/dist/es2019/plugins/card/styles.js +6 -7
  187. package/dist/es2019/plugins/card/toolbar.js +19 -2
  188. package/dist/es2019/plugins/card/ui/EditLinkToolbar.js +8 -6
  189. package/dist/es2019/plugins/card/ui/LinkToolbarAppearance.js +7 -36
  190. package/dist/es2019/plugins/card/utils.js +15 -2
  191. package/dist/es2019/plugins/code-block/styles.js +8 -9
  192. package/dist/es2019/plugins/collab-edit/actions.js +3 -3
  193. package/dist/es2019/plugins/collab-edit/styles.js +2 -3
  194. package/dist/es2019/plugins/collab-edit/ui/styles.js +3 -4
  195. package/dist/es2019/plugins/copy-button/toolbar.js +5 -3
  196. package/dist/es2019/plugins/date/index.js +0 -7
  197. package/dist/es2019/plugins/date/styles.js +1 -2
  198. package/dist/es2019/plugins/date/ui/DatePicker/index.js +3 -5
  199. package/dist/es2019/plugins/emoji/index.js +7 -13
  200. package/dist/es2019/plugins/expand/pm-plugins/main.js +3 -3
  201. package/dist/es2019/plugins/expand/toolbar.js +1 -0
  202. package/dist/es2019/plugins/expand/ui/styles.js +14 -15
  203. package/dist/es2019/plugins/extension/commands.js +10 -1
  204. package/dist/es2019/plugins/extension/pm-plugins/main.js +10 -0
  205. package/dist/es2019/plugins/extension/toolbar.js +43 -8
  206. package/dist/es2019/plugins/extension/ui/Extension/Extension/styles.js +4 -5
  207. package/dist/es2019/plugins/extension/ui/Extension/InlineExtension/styles.js +1 -2
  208. package/dist/es2019/plugins/extension/ui/Extension/styles.js +6 -7
  209. package/dist/es2019/plugins/extension/ui/SaveIndicator/SaveIndicator.js +3 -4
  210. package/dist/es2019/plugins/extension/ui/styles.js +2 -3
  211. package/dist/es2019/plugins/fake-text-cursor/styles.js +2 -3
  212. package/dist/es2019/plugins/feature-flags-context/feature-flags-from-props.js +11 -11
  213. package/dist/es2019/plugins/find-replace/ui/FindReplaceToolbarButton.js +7 -3
  214. package/dist/es2019/plugins/find-replace/ui/styles.js +2 -3
  215. package/dist/es2019/plugins/floating-toolbar/index.js +15 -5
  216. package/dist/es2019/plugins/floating-toolbar/ui/CheckboxModal.js +70 -0
  217. package/dist/es2019/plugins/floating-toolbar/ui/ConfirmationModal.js +8 -27
  218. package/dist/es2019/plugins/floating-toolbar/ui/Dropdown.js +17 -4
  219. package/dist/es2019/plugins/floating-toolbar/ui/DropdownMenu.js +97 -52
  220. package/dist/es2019/plugins/floating-toolbar/ui/EditorEmojiAddIcon.js +1 -2
  221. package/dist/es2019/plugins/floating-toolbar/ui/EmojiPickerButton.js +1 -1
  222. package/dist/es2019/plugins/floating-toolbar/ui/ScrollButtons.js +30 -78
  223. package/dist/es2019/plugins/floating-toolbar/ui/Separator.js +1 -2
  224. package/dist/es2019/plugins/floating-toolbar/ui/SimpleModal.js +32 -0
  225. package/dist/es2019/plugins/floating-toolbar/ui/Toolbar.js +29 -50
  226. package/dist/es2019/plugins/floating-toolbar/ui/messages.js +14 -4
  227. package/dist/es2019/plugins/floating-toolbar/ui/styles.js +10 -11
  228. package/dist/es2019/plugins/floating-toolbar/utils.js +4 -17
  229. package/dist/es2019/plugins/grid/styles.js +2 -3
  230. package/dist/es2019/plugins/help-dialog/index.js +2 -2
  231. package/dist/es2019/plugins/help-dialog/ui/styles.js +11 -12
  232. package/dist/es2019/plugins/hyperlink/Toolbar.js +18 -2
  233. package/dist/es2019/plugins/hyperlink/ui/EditorLinkPicker/index.js +9 -2
  234. package/dist/es2019/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +4 -5
  235. package/dist/es2019/plugins/hyperlink/ui/HyperlinkAddToolbar/index.js +5 -9
  236. package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-element-browser.js +2 -1
  237. package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu-legacy.js +2 -1
  238. package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu.js +2 -1
  239. package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/dropdown-button.js +2 -1
  240. package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/index.js +2 -0
  241. package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/item.js +25 -12
  242. package/dist/es2019/plugins/jira-issue/nodeviews/jira-issue.js +5 -6
  243. package/dist/es2019/plugins/layout/styles.js +4 -5
  244. package/dist/es2019/plugins/layout/toolbar.js +1 -0
  245. package/dist/es2019/plugins/list/actions/outdent-list-items-selected.js +24 -4
  246. package/dist/es2019/plugins/list/commands/outdent-list.js +1 -1
  247. package/dist/es2019/plugins/list/index.js +7 -3
  248. package/dist/es2019/plugins/list/pm-plugins/input-rules/create-list-input-rule.js +13 -2
  249. package/dist/es2019/plugins/list/pm-plugins/input-rules/index.js +5 -2
  250. package/dist/es2019/plugins/list/pm-plugins/main.js +31 -11
  251. package/dist/es2019/plugins/media/index.js +38 -0
  252. package/dist/es2019/plugins/media/nodeviews/mediaGroup.js +6 -5
  253. package/dist/es2019/plugins/media/nodeviews/mediaInline.js +3 -1
  254. package/dist/es2019/plugins/media/nodeviews/mediaNodeUpdater.js +2 -2
  255. package/dist/es2019/plugins/media/nodeviews/mediaSingle.js +3 -1
  256. package/dist/es2019/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.js +4 -5
  257. package/dist/es2019/plugins/media/pm-plugins/main.js +7 -0
  258. package/dist/es2019/plugins/media/styles.js +10 -11
  259. package/dist/es2019/plugins/media/toolbar/index.js +3 -0
  260. package/dist/es2019/plugins/media/ui/CaptionPlaceholder/index.js +1 -2
  261. package/dist/es2019/plugins/media/ui/Media/DropPlaceholder.js +3 -4
  262. package/dist/es2019/plugins/media/ui/MediaLinkingToolbar.js +1 -2
  263. package/dist/es2019/plugins/media/utils/media-single.js +20 -3
  264. package/dist/es2019/plugins/mentions/styles.js +4 -5
  265. package/dist/es2019/plugins/mentions/ui/InviteItem/index.js +1 -2
  266. package/dist/es2019/plugins/mentions/ui/InviteItem/styles.js +2 -3
  267. package/dist/es2019/plugins/panel/styles.js +4 -5
  268. package/dist/es2019/plugins/panel/toolbar.js +1 -0
  269. package/dist/es2019/plugins/panel/utils.js +1 -1
  270. package/dist/es2019/plugins/paste/index.js +2 -1
  271. package/dist/es2019/plugins/paste/pm-plugins/analytics.js +15 -2
  272. package/dist/es2019/plugins/paste/pm-plugins/main.js +1 -1
  273. package/dist/es2019/plugins/paste/util/index.js +2 -2
  274. package/dist/es2019/plugins/placeholder/index.js +21 -47
  275. package/dist/es2019/plugins/placeholder/styles.js +2 -21
  276. package/dist/es2019/plugins/placeholder-text/styles.js +4 -5
  277. package/dist/es2019/plugins/rule/styles.js +1 -2
  278. package/dist/es2019/plugins/status/ui/statusPicker.js +2 -3
  279. package/dist/es2019/plugins/tasks-and-decisions/nodeviews/taskItem.js +6 -3
  280. package/dist/es2019/plugins/tasks-and-decisions/styles.js +2 -3
  281. package/dist/es2019/plugins/tasks-and-decisions/ui/ToolbarDecision/index.js +1 -0
  282. package/dist/es2019/plugins/text-color/ui/ToolbarTextColor/index.js +8 -7
  283. package/dist/es2019/plugins/text-formatting/ui/Toolbar/hooks/formatting-icons.js +4 -1
  284. package/dist/es2019/plugins/text-formatting/ui/Toolbar/single-toolbar-buttons.js +18 -12
  285. package/dist/es2019/plugins/toolbar-lists-indentation/ui/Toolbar.js +16 -7
  286. package/dist/es2019/plugins/type-ahead/index.js +2 -2
  287. package/dist/es2019/plugins/type-ahead/messages.js +44 -4
  288. package/dist/es2019/plugins/type-ahead/pm-plugins/decorations.js +1 -3
  289. package/dist/es2019/plugins/type-ahead/ui/InputQuery.js +18 -3
  290. package/dist/es2019/plugins/type-ahead/ui/TypeAheadList.js +10 -5
  291. package/dist/es2019/plugins/type-ahead/ui/TypeAheadListItem.js +16 -14
  292. package/dist/es2019/plugins/type-ahead/ui/TypeAheadPopup.js +4 -4
  293. package/dist/es2019/plugins/type-ahead/utils.js +38 -0
  294. package/dist/es2019/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +6 -3
  295. package/dist/es2019/plugins/unsupported-content/styles.js +2 -3
  296. package/dist/es2019/ui/Addon/Dropdown/styles.js +2 -3
  297. package/dist/es2019/ui/Addon/DropdownItem/styles.js +2 -3
  298. package/dist/es2019/ui/Alignment/AlignmentButton/index.js +4 -2
  299. package/dist/es2019/ui/Appearance/Comment/Comment.js +2 -3
  300. package/dist/es2019/ui/Appearance/Comment/Toolbar.js +4 -5
  301. package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +2 -1
  302. package/dist/es2019/ui/Appearance/FullPage/MainToolbar.js +2 -3
  303. package/dist/es2019/ui/ChromeCollapsed/styles.js +5 -6
  304. package/dist/es2019/ui/CollapsedEditor/index.js +3 -2
  305. package/dist/es2019/ui/ColorPickerButton/index.js +2 -1
  306. package/dist/es2019/ui/ConfigPanel/Fields/CheckboxGroup.js +1 -2
  307. package/dist/es2019/ui/ConfigPanel/Fields/Expand.js +1 -2
  308. package/dist/es2019/ui/ConfigPanel/Fields/Fieldset.js +5 -7
  309. package/dist/es2019/ui/ConfigPanel/Fields/common/RequiredIndicator.js +1 -2
  310. package/dist/es2019/ui/ConfigPanel/FormContent.js +3 -3
  311. package/dist/es2019/ui/ConfigPanel/Header.js +2 -3
  312. package/dist/es2019/ui/ConfigPanel/NestedForms/RemovableField.js +2 -3
  313. package/dist/es2019/ui/ContentStyles/index.js +8 -4
  314. package/dist/es2019/ui/ContextPanel/index.js +1 -2
  315. package/dist/es2019/ui/ElementBrowser/InsertMenu.js +4 -5
  316. package/dist/es2019/ui/ElementBrowser/ModalElementBrowser.js +2 -3
  317. package/dist/es2019/ui/ElementBrowser/components/CategoryList.js +2 -3
  318. package/dist/es2019/ui/ElementBrowser/components/ElementList/ElementList.js +2 -3
  319. package/dist/es2019/ui/ElementBrowser/components/ElementList/EmptyState.js +1 -2
  320. package/dist/es2019/ui/ElementBrowser/components/ElementSearch.js +1 -2
  321. package/dist/es2019/ui/FloatingToolbar/styles.js +2 -3
  322. package/dist/es2019/ui/LinkSearch/LinkSearchListItem.js +3 -4
  323. package/dist/es2019/ui/LinkSearch/ToolbarComponents.js +1 -0
  324. package/dist/es2019/ui/PanelTextInput/styles.js +3 -4
  325. package/dist/es2019/ui/ToolbarArrowKeyNavigationProvider/index.js +56 -34
  326. package/dist/es2019/ui/ToolbarFeedback/styles.js +4 -5
  327. package/dist/es2019/ui/WithFlash/index.js +3 -4
  328. package/dist/es2019/ui/styles.js +3 -4
  329. package/dist/es2019/utils/commands.js +26 -14
  330. package/dist/es2019/utils/input-rules.js +22 -1
  331. package/dist/es2019/version-wrapper.js +1 -1
  332. package/dist/es2019/version.json +1 -1
  333. package/dist/esm/create-editor/ReactEditorView.js +2 -1
  334. package/dist/esm/create-editor/create-plugins-list.js +9 -6
  335. package/dist/esm/create-editor/messages.js +8 -0
  336. package/dist/esm/i18n/en.js +2 -2
  337. package/dist/esm/i18n/en_GB.js +2 -2
  338. package/dist/esm/i18n/en_ZZ.js +2 -2
  339. package/dist/esm/i18n/index.js +4 -4
  340. package/dist/esm/i18n/languages.js +9 -4
  341. package/dist/esm/labs/next/full-page.js +2 -3
  342. package/dist/esm/labs/next/presets/mobile.js +2 -2
  343. package/dist/esm/labs/next/presets/preset.js +36 -6
  344. package/dist/esm/plugins/alignment/ui/ToolbarAlignment/styles.js +1 -2
  345. package/dist/esm/plugins/annotation/nodeviews/index.js +1 -0
  346. package/dist/esm/plugins/block-type/ui/ToolbarBlockType/index.js +5 -1
  347. package/dist/esm/plugins/block-type/ui/ToolbarBlockType/styled.js +2 -3
  348. package/dist/esm/plugins/breakout/ui/LayoutButton.js +5 -3
  349. package/dist/esm/plugins/card/pm-plugins/doc.js +10 -20
  350. package/dist/esm/plugins/card/pm-plugins/main.js +4 -17
  351. package/dist/esm/plugins/card/styles.js +1 -2
  352. package/dist/esm/plugins/card/toolbar.js +24 -8
  353. package/dist/esm/plugins/card/ui/EditLinkToolbar.js +8 -6
  354. package/dist/esm/plugins/card/ui/LinkToolbarAppearance.js +9 -39
  355. package/dist/esm/plugins/card/utils.js +15 -2
  356. package/dist/esm/plugins/code-block/styles.js +2 -3
  357. package/dist/esm/plugins/collab-edit/actions.js +3 -3
  358. package/dist/esm/plugins/collab-edit/styles.js +2 -3
  359. package/dist/esm/plugins/collab-edit/ui/styles.js +2 -3
  360. package/dist/esm/plugins/copy-button/toolbar.js +5 -3
  361. package/dist/esm/plugins/date/index.js +1 -6
  362. package/dist/esm/plugins/date/styles.js +1 -2
  363. package/dist/esm/plugins/date/ui/DatePicker/index.js +2 -4
  364. package/dist/esm/plugins/emoji/index.js +7 -13
  365. package/dist/esm/plugins/expand/pm-plugins/main.js +3 -3
  366. package/dist/esm/plugins/expand/toolbar.js +1 -0
  367. package/dist/esm/plugins/expand/ui/styles.js +14 -15
  368. package/dist/esm/plugins/extension/commands.js +12 -1
  369. package/dist/esm/plugins/extension/pm-plugins/main.js +10 -0
  370. package/dist/esm/plugins/extension/toolbar.js +50 -8
  371. package/dist/esm/plugins/extension/ui/Extension/Extension/styles.js +4 -5
  372. package/dist/esm/plugins/extension/ui/Extension/InlineExtension/styles.js +1 -2
  373. package/dist/esm/plugins/extension/ui/Extension/styles.js +5 -6
  374. package/dist/esm/plugins/extension/ui/SaveIndicator/SaveIndicator.js +2 -3
  375. package/dist/esm/plugins/extension/ui/styles.js +1 -2
  376. package/dist/esm/plugins/fake-text-cursor/styles.js +1 -2
  377. package/dist/esm/plugins/feature-flags-context/feature-flags-from-props.js +11 -11
  378. package/dist/esm/plugins/find-replace/ui/FindReplaceToolbarButton.js +7 -3
  379. package/dist/esm/plugins/find-replace/ui/styles.js +2 -3
  380. package/dist/esm/plugins/floating-toolbar/index.js +16 -4
  381. package/dist/esm/plugins/floating-toolbar/ui/CheckboxModal.js +75 -0
  382. package/dist/esm/plugins/floating-toolbar/ui/ConfirmationModal.js +11 -25
  383. package/dist/esm/plugins/floating-toolbar/ui/Dropdown.js +17 -4
  384. package/dist/esm/plugins/floating-toolbar/ui/DropdownMenu.js +101 -49
  385. package/dist/esm/plugins/floating-toolbar/ui/EditorEmojiAddIcon.js +1 -2
  386. package/dist/esm/plugins/floating-toolbar/ui/EmojiPickerButton.js +1 -1
  387. package/dist/esm/plugins/floating-toolbar/ui/ScrollButtons.js +30 -110
  388. package/dist/esm/plugins/floating-toolbar/ui/Separator.js +1 -2
  389. package/dist/esm/plugins/floating-toolbar/ui/SimpleModal.js +30 -0
  390. package/dist/esm/plugins/floating-toolbar/ui/Toolbar.js +30 -51
  391. package/dist/esm/plugins/floating-toolbar/ui/messages.js +13 -3
  392. package/dist/esm/plugins/floating-toolbar/ui/styles.js +10 -11
  393. package/dist/esm/plugins/floating-toolbar/utils.js +4 -17
  394. package/dist/esm/plugins/grid/styles.js +1 -2
  395. package/dist/esm/plugins/help-dialog/index.js +3 -2
  396. package/dist/esm/plugins/help-dialog/ui/styles.js +9 -10
  397. package/dist/esm/plugins/hyperlink/Toolbar.js +20 -2
  398. package/dist/esm/plugins/hyperlink/ui/EditorLinkPicker/index.js +10 -3
  399. package/dist/esm/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +3 -4
  400. package/dist/esm/plugins/hyperlink/ui/HyperlinkAddToolbar/index.js +5 -10
  401. package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-element-browser.js +2 -1
  402. package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu-legacy.js +2 -1
  403. package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu.js +2 -1
  404. package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/dropdown-button.js +2 -1
  405. package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/index.js +2 -0
  406. package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/item.js +25 -12
  407. package/dist/esm/plugins/jira-issue/nodeviews/jira-issue.js +2 -3
  408. package/dist/esm/plugins/layout/styles.js +1 -2
  409. package/dist/esm/plugins/layout/toolbar.js +1 -0
  410. package/dist/esm/plugins/list/actions/outdent-list-items-selected.js +30 -4
  411. package/dist/esm/plugins/list/commands/outdent-list.js +1 -1
  412. package/dist/esm/plugins/list/index.js +7 -3
  413. package/dist/esm/plugins/list/pm-plugins/input-rules/create-list-input-rule.js +13 -2
  414. package/dist/esm/plugins/list/pm-plugins/input-rules/index.js +5 -2
  415. package/dist/esm/plugins/list/pm-plugins/main.js +31 -11
  416. package/dist/esm/plugins/media/index.js +33 -0
  417. package/dist/esm/plugins/media/nodeviews/mediaGroup.js +7 -6
  418. package/dist/esm/plugins/media/nodeviews/mediaInline.js +3 -1
  419. package/dist/esm/plugins/media/nodeviews/mediaNodeUpdater.js +70 -64
  420. package/dist/esm/plugins/media/nodeviews/mediaSingle.js +3 -1
  421. package/dist/esm/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.js +3 -4
  422. package/dist/esm/plugins/media/pm-plugins/main.js +7 -0
  423. package/dist/esm/plugins/media/styles.js +1 -2
  424. package/dist/esm/plugins/media/toolbar/index.js +3 -0
  425. package/dist/esm/plugins/media/ui/CaptionPlaceholder/index.js +1 -2
  426. package/dist/esm/plugins/media/ui/Media/DropPlaceholder.js +2 -3
  427. package/dist/esm/plugins/media/ui/MediaLinkingToolbar.js +1 -2
  428. package/dist/esm/plugins/media/utils/media-single.js +18 -3
  429. package/dist/esm/plugins/mentions/styles.js +1 -2
  430. package/dist/esm/plugins/mentions/ui/InviteItem/index.js +1 -2
  431. package/dist/esm/plugins/mentions/ui/InviteItem/styles.js +2 -3
  432. package/dist/esm/plugins/panel/styles.js +1 -2
  433. package/dist/esm/plugins/panel/toolbar.js +1 -0
  434. package/dist/esm/plugins/panel/utils.js +1 -1
  435. package/dist/esm/plugins/paste/index.js +2 -1
  436. package/dist/esm/plugins/paste/pm-plugins/analytics.js +15 -2
  437. package/dist/esm/plugins/paste/pm-plugins/main.js +1 -1
  438. package/dist/esm/plugins/paste/util/index.js +2 -2
  439. package/dist/esm/plugins/placeholder/index.js +23 -45
  440. package/dist/esm/plugins/placeholder/styles.js +1 -3
  441. package/dist/esm/plugins/placeholder-text/styles.js +1 -2
  442. package/dist/esm/plugins/rule/styles.js +1 -2
  443. package/dist/esm/plugins/status/ui/statusPicker.js +1 -2
  444. package/dist/esm/plugins/tasks-and-decisions/nodeviews/taskItem.js +6 -3
  445. package/dist/esm/plugins/tasks-and-decisions/styles.js +1 -2
  446. package/dist/esm/plugins/tasks-and-decisions/ui/ToolbarDecision/index.js +1 -0
  447. package/dist/esm/plugins/text-color/ui/ToolbarTextColor/index.js +9 -5
  448. package/dist/esm/plugins/text-formatting/ui/Toolbar/hooks/formatting-icons.js +4 -1
  449. package/dist/esm/plugins/text-formatting/ui/Toolbar/single-toolbar-buttons.js +5 -1
  450. package/dist/esm/plugins/toolbar-lists-indentation/ui/Toolbar.js +16 -7
  451. package/dist/esm/plugins/type-ahead/index.js +2 -2
  452. package/dist/esm/plugins/type-ahead/messages.js +44 -4
  453. package/dist/esm/plugins/type-ahead/pm-plugins/decorations.js +1 -3
  454. package/dist/esm/plugins/type-ahead/ui/InputQuery.js +18 -3
  455. package/dist/esm/plugins/type-ahead/ui/TypeAheadList.js +10 -5
  456. package/dist/esm/plugins/type-ahead/ui/TypeAheadListItem.js +15 -13
  457. package/dist/esm/plugins/type-ahead/ui/TypeAheadPopup.js +3 -3
  458. package/dist/esm/plugins/type-ahead/utils.js +38 -0
  459. package/dist/esm/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +6 -3
  460. package/dist/esm/plugins/unsupported-content/styles.js +1 -2
  461. package/dist/esm/ui/Addon/Dropdown/styles.js +1 -2
  462. package/dist/esm/ui/Addon/DropdownItem/styles.js +1 -2
  463. package/dist/esm/ui/Alignment/AlignmentButton/index.js +4 -2
  464. package/dist/esm/ui/Appearance/Comment/Comment.js +1 -2
  465. package/dist/esm/ui/Appearance/Comment/Toolbar.js +3 -4
  466. package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +2 -1
  467. package/dist/esm/ui/Appearance/FullPage/MainToolbar.js +2 -3
  468. package/dist/esm/ui/ChromeCollapsed/styles.js +1 -2
  469. package/dist/esm/ui/CollapsedEditor/index.js +3 -2
  470. package/dist/esm/ui/ColorPickerButton/index.js +2 -1
  471. package/dist/esm/ui/ConfigPanel/Fields/CheckboxGroup.js +1 -2
  472. package/dist/esm/ui/ConfigPanel/Fields/Expand.js +1 -2
  473. package/dist/esm/ui/ConfigPanel/Fields/Fieldset.js +5 -7
  474. package/dist/esm/ui/ConfigPanel/Fields/common/RequiredIndicator.js +1 -2
  475. package/dist/esm/ui/ConfigPanel/FormContent.js +3 -3
  476. package/dist/esm/ui/ConfigPanel/Header.js +2 -3
  477. package/dist/esm/ui/ConfigPanel/NestedForms/RemovableField.js +1 -2
  478. package/dist/esm/ui/ContentStyles/index.js +2 -3
  479. package/dist/esm/ui/ContextPanel/index.js +1 -2
  480. package/dist/esm/ui/ElementBrowser/InsertMenu.js +3 -4
  481. package/dist/esm/ui/ElementBrowser/ModalElementBrowser.js +2 -3
  482. package/dist/esm/ui/ElementBrowser/components/CategoryList.js +2 -3
  483. package/dist/esm/ui/ElementBrowser/components/ElementList/ElementList.js +2 -3
  484. package/dist/esm/ui/ElementBrowser/components/ElementList/EmptyState.js +1 -2
  485. package/dist/esm/ui/ElementBrowser/components/ElementSearch.js +1 -2
  486. package/dist/esm/ui/FloatingToolbar/styles.js +1 -2
  487. package/dist/esm/ui/LinkSearch/LinkSearchListItem.js +3 -4
  488. package/dist/esm/ui/LinkSearch/ToolbarComponents.js +1 -0
  489. package/dist/esm/ui/PanelTextInput/styles.js +2 -3
  490. package/dist/esm/ui/ToolbarArrowKeyNavigationProvider/index.js +56 -34
  491. package/dist/esm/ui/ToolbarFeedback/styles.js +3 -4
  492. package/dist/esm/ui/WithFlash/index.js +2 -3
  493. package/dist/esm/ui/styles.js +2 -3
  494. package/dist/esm/utils/commands.js +25 -13
  495. package/dist/esm/utils/input-rules.js +23 -1
  496. package/dist/esm/version-wrapper.js +1 -1
  497. package/dist/esm/version.json +1 -1
  498. package/dist/types/create-editor/messages.d.ts +7 -0
  499. package/dist/types/i18n/index.d.ts +4 -4
  500. package/dist/types/i18n/languages.d.ts +8 -3
  501. package/dist/types/labs/next/presets/cxhtml.d.ts +1 -1
  502. package/dist/types/labs/next/presets/default.d.ts +2 -2
  503. package/dist/types/labs/next/presets/mobile.d.ts +1 -1
  504. package/dist/types/labs/next/presets/preset.d.ts +10 -6
  505. package/dist/types/plugins/alignment/index.d.ts +2 -2
  506. package/dist/types/plugins/analytics/plugin.d.ts +2 -2
  507. package/dist/types/plugins/annotation/index.d.ts +2 -2
  508. package/dist/types/plugins/avatar-group/index.d.ts +4 -3
  509. package/dist/types/plugins/base/index.d.ts +2 -2
  510. package/dist/types/plugins/before-primaryToolbar/index.d.ts +4 -3
  511. package/dist/types/plugins/block-type/index.d.ts +2 -2
  512. package/dist/types/plugins/block-type/ui/ToolbarBlockType/index.d.ts +1 -1
  513. package/dist/types/plugins/breakout/index.d.ts +2 -2
  514. package/dist/types/plugins/caption/index.d.ts +2 -2
  515. package/dist/types/plugins/card/index.d.ts +2 -2
  516. package/dist/types/plugins/card/pm-plugins/doc.d.ts +4 -4
  517. package/dist/types/plugins/card/pm-plugins/main.d.ts +1 -1
  518. package/dist/types/plugins/card/ui/EditLinkToolbar.d.ts +1 -1
  519. package/dist/types/plugins/card/ui/LinkToolbarAppearance.d.ts +5 -5
  520. package/dist/types/plugins/card/utils.d.ts +2 -1
  521. package/dist/types/plugins/clear-marks-on-change-to-empty-document/index.d.ts +2 -2
  522. package/dist/types/plugins/clipboard/index.d.ts +2 -2
  523. package/dist/types/plugins/code-bidi-warning/index.d.ts +4 -3
  524. package/dist/types/plugins/code-block/index.d.ts +2 -2
  525. package/dist/types/plugins/collab-edit/actions.d.ts +1 -1
  526. package/dist/types/plugins/collab-edit/index.d.ts +2 -2
  527. package/dist/types/plugins/context-panel/index.d.ts +2 -2
  528. package/dist/types/plugins/copy-button/index.d.ts +2 -2
  529. package/dist/types/plugins/custom-autoformat/index.d.ts +2 -2
  530. package/dist/types/plugins/data-consumer/index.d.ts +2 -2
  531. package/dist/types/plugins/date/index.d.ts +2 -2
  532. package/dist/types/plugins/date/ui/DatePicker/index.d.ts +0 -1
  533. package/dist/types/plugins/editor-disabled/index.d.ts +2 -2
  534. package/dist/types/plugins/emoji/index.d.ts +2 -2
  535. package/dist/types/plugins/emoji/types.d.ts +2 -1
  536. package/dist/types/plugins/expand/index.d.ts +2 -2
  537. package/dist/types/plugins/expand/pm-plugins/main.d.ts +1 -0
  538. package/dist/types/plugins/extension/commands.d.ts +2 -0
  539. package/dist/types/plugins/extension/index.d.ts +2 -2
  540. package/dist/types/plugins/extension/toolbar.d.ts +10 -0
  541. package/dist/types/plugins/fake-text-cursor/index.d.ts +2 -2
  542. package/dist/types/plugins/feature-flags-context/index.d.ts +2 -2
  543. package/dist/types/plugins/feedback-dialog/index.d.ts +3 -2
  544. package/dist/types/plugins/find-replace/index.d.ts +4 -3
  545. package/dist/types/plugins/floating-toolbar/index.d.ts +2 -2
  546. package/dist/types/plugins/floating-toolbar/ui/CheckboxModal.d.ts +4 -0
  547. package/dist/types/plugins/floating-toolbar/ui/ConfirmationModal.d.ts +1 -8
  548. package/dist/types/plugins/floating-toolbar/ui/Dropdown.d.ts +3 -0
  549. package/dist/types/plugins/floating-toolbar/ui/DropdownMenu.d.ts +4 -0
  550. package/dist/types/plugins/floating-toolbar/ui/SimpleModal.d.ts +4 -0
  551. package/dist/types/plugins/floating-toolbar/ui/messages.d.ts +10 -0
  552. package/dist/types/plugins/floating-toolbar/ui/types.d.ts +1 -1
  553. package/dist/types/plugins/floating-toolbar/utils.d.ts +2 -3
  554. package/dist/types/plugins/fragment/index.d.ts +2 -2
  555. package/dist/types/plugins/grid/index.d.ts +2 -2
  556. package/dist/types/plugins/help-dialog/index.d.ts +2 -3
  557. package/dist/types/plugins/history/index.d.ts +2 -2
  558. package/dist/types/plugins/hyperlink/index.d.ts +2 -2
  559. package/dist/types/plugins/hyperlink/ui/EditorLinkPicker/index.d.ts +7 -2
  560. package/dist/types/plugins/hyperlink/ui/HyperlinkAddToolbar/index.d.ts +2 -1
  561. package/dist/types/plugins/image-upload/index.d.ts +2 -2
  562. package/dist/types/plugins/indentation/index.d.ts +2 -2
  563. package/dist/types/plugins/insert-block/index.d.ts +2 -2
  564. package/dist/types/plugins/insert-block/ui/ToolbarInsertBlock/dropdown-button.d.ts +1 -0
  565. package/dist/types/plugins/jira-issue/index.d.ts +2 -2
  566. package/dist/types/plugins/layout/index.d.ts +2 -2
  567. package/dist/types/plugins/list/actions/outdent-list-items-selected.d.ts +2 -2
  568. package/dist/types/plugins/list/index.d.ts +3 -2
  569. package/dist/types/plugins/list/pm-plugins/input-rules/create-list-input-rule.d.ts +3 -1
  570. package/dist/types/plugins/list/pm-plugins/main.d.ts +2 -2
  571. package/dist/types/plugins/list/types.d.ts +2 -0
  572. package/dist/types/plugins/macro/index.d.ts +2 -2
  573. package/dist/types/plugins/max-content-size/index.d.ts +2 -2
  574. package/dist/types/plugins/media/index.d.ts +2 -2
  575. package/dist/types/plugins/media/nodeviews/mediaNodeUpdater.d.ts +2 -1
  576. package/dist/types/plugins/media/pm-plugins/main.d.ts +1 -0
  577. package/dist/types/plugins/media/pm-plugins/types.d.ts +1 -0
  578. package/dist/types/plugins/mentions/index.d.ts +2 -2
  579. package/dist/types/plugins/mobile-dimensions/index.d.ts +2 -2
  580. package/dist/types/plugins/mobile-selection/mobile-selection-plugin.d.ts +2 -2
  581. package/dist/types/plugins/panel/index.d.ts +2 -2
  582. package/dist/types/plugins/paste/index.d.ts +3 -2
  583. package/dist/types/plugins/paste/pm-plugins/analytics.d.ts +1 -0
  584. package/dist/types/plugins/placeholder/index.d.ts +4 -4
  585. package/dist/types/plugins/placeholder/styles.d.ts +0 -1
  586. package/dist/types/plugins/placeholder-text/index.d.ts +2 -2
  587. package/dist/types/plugins/quick-insert/index.d.ts +2 -2
  588. package/dist/types/plugins/rule/index.d.ts +2 -2
  589. package/dist/types/plugins/save-on-enter/index.d.ts +3 -2
  590. package/dist/types/plugins/scroll-into-view/index.d.ts +2 -2
  591. package/dist/types/plugins/selection/index.d.ts +2 -2
  592. package/dist/types/plugins/status/index.d.ts +2 -2
  593. package/dist/types/plugins/submit-editor/index.d.ts +4 -2
  594. package/dist/types/plugins/tasks-and-decisions/index.d.ts +2 -2
  595. package/dist/types/plugins/text-color/index.d.ts +3 -2
  596. package/dist/types/plugins/text-formatting/index.d.ts +2 -2
  597. package/dist/types/plugins/toolbar-lists-indentation/index.d.ts +4 -3
  598. package/dist/types/plugins/type-ahead/index.d.ts +2 -2
  599. package/dist/types/plugins/type-ahead/messages.d.ts +41 -1
  600. package/dist/types/plugins/type-ahead/ui/TypeAheadList.d.ts +3 -1
  601. package/dist/types/plugins/type-ahead/ui/TypeAheadListItem.d.ts +1 -0
  602. package/dist/types/plugins/type-ahead/utils.d.ts +7 -1
  603. package/dist/types/plugins/undo-redo/index.d.ts +2 -2
  604. package/dist/types/plugins/unsupported-content/index.d.ts +2 -2
  605. package/dist/types/plugins/view-update-subscription/index.d.ts +2 -2
  606. package/dist/types/plugins/width/index.d.ts +2 -2
  607. package/dist/types/test-utils.d.ts +2 -1
  608. package/dist/types/types/editor-plugin.d.ts +1 -1
  609. package/dist/types/types/editor-props.d.ts +0 -2
  610. package/dist/types/types/index.d.ts +1 -1
  611. package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +3 -3
  612. package/dist/types/ui/ConfigPanel/ConfigPanel.d.ts +1 -1
  613. package/dist/types/ui/ConfigPanel/Fields/Fieldset.d.ts +2 -1
  614. package/dist/types/ui/ConfigPanel/FormContent.d.ts +2 -23
  615. package/dist/types/ui/ConfigPanel/types.d.ts +22 -0
  616. package/dist/types/ui/ContentStyles/index.d.ts +2 -2
  617. package/dist/types/ui/LinkSearch/ToolbarComponents.d.ts +1 -0
  618. package/dist/types/ui/ToolbarArrowKeyNavigationProvider/index.d.ts +4 -1
  619. package/package.json +26 -26
  620. package/report.api.md +25 -16
  621. package/dist/cjs/plugins/card/ui/LinkToolbarIconDropdown.js +0 -181
  622. package/dist/cjs/plugins/card/ui/link-toolbar-icon-dropdown-options.js +0 -66
  623. package/dist/cjs/plugins/emoji/ui/EmojiContextProvider/index.js +0 -61
  624. package/dist/es2019/plugins/card/ui/LinkToolbarIconDropdown.js +0 -151
  625. package/dist/es2019/plugins/card/ui/link-toolbar-icon-dropdown-options.js +0 -51
  626. package/dist/es2019/plugins/emoji/ui/EmojiContextProvider/index.js +0 -21
  627. package/dist/esm/plugins/card/ui/LinkToolbarIconDropdown.js +0 -161
  628. package/dist/esm/plugins/card/ui/link-toolbar-icon-dropdown-options.js +0 -51
  629. package/dist/esm/plugins/emoji/ui/EmojiContextProvider/index.js +0 -46
  630. package/dist/types/plugins/card/ui/LinkToolbarIconDropdown.d.ts +0 -25
  631. package/dist/types/plugins/card/ui/link-toolbar-icon-dropdown-options.d.ts +0 -5
  632. package/dist/types/plugins/emoji/ui/EmojiContextProvider/index.d.ts +0 -13
@@ -23,8 +23,6 @@ var _checkbox = require("@atlaskit/checkbox");
23
23
 
24
24
  var _form = require("@atlaskit/form");
25
25
 
26
- var _tokens = require("@atlaskit/tokens");
27
-
28
26
  var _types = require("../types");
29
27
 
30
28
  var _FieldMessages = _interopRequireDefault(require("../FieldMessages"));
@@ -39,7 +37,7 @@ function _validate(value, isRequired) {
39
37
  }
40
38
  }
41
39
 
42
- var requiredIndicator = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n color: ", ";\n"])), (0, _tokens.token)('color.text.danger', '#bf2600'));
40
+ var requiredIndicator = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n color: ", ";\n"])), "var(--ds-text-danger, #bf2600)");
43
41
 
44
42
  function CheckboxGroupInner(_ref) {
45
43
  var label = _ref.label,
@@ -21,8 +21,6 @@ var _reactIntlNext = require("react-intl-next");
21
21
 
22
22
  var _colors = require("@atlaskit/theme/colors");
23
23
 
24
- var _tokens = require("@atlaskit/tokens");
25
-
26
24
  var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/glyph/chevron-down"));
27
25
 
28
26
  var _chevronRight = _interopRequireDefault(require("@atlaskit/icon/glyph/chevron-right"));
@@ -39,7 +37,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
39
37
 
40
38
  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; }
41
39
 
42
- var expandContainer = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n border-bottom: 1px solid ", ";\n"])), (0, _tokens.token)('color.border', _colors.N40));
40
+ var expandContainer = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n border-bottom: 1px solid ", ";\n"])), "var(--ds-border, ".concat(_colors.N40, ")"));
43
41
  exports.expandContainer = expandContainer;
44
42
  var expandControl = (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n height: ", "px;\n justify-content: center;\n padding-right: ", "px;\n"])), (0, _constants.gridSize)() * 6, (0, _constants.gridSize)());
45
43
  exports.expandControl = expandControl;
@@ -45,16 +45,12 @@ var _addCircle = _interopRequireDefault(require("@atlaskit/icon/glyph/add-circle
45
45
 
46
46
  var _messages = require("../messages");
47
47
 
48
- var _FormContent = _interopRequireDefault(require("../FormContent"));
49
-
50
48
  var _utils = require("../utils");
51
49
 
52
50
  var _constants = require("@atlaskit/theme/constants");
53
51
 
54
52
  var _colors = require("@atlaskit/theme/colors");
55
53
 
56
- var _tokens = require("@atlaskit/tokens");
57
-
58
54
  var _templateObject, _templateObject2;
59
55
 
60
56
  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); }
@@ -69,7 +65,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
69
65
 
70
66
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
71
67
 
72
- var actionsWrapper = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n border-top: 1px solid ", ";\n margin-top: ", "px;\n padding-top: ", "px;\n"])), (0, _tokens.token)('color.border', _colors.N40A), (0, _constants.gridSize)() * 2, (0, _constants.gridSize)() * 2);
68
+ var actionsWrapper = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n border-top: 1px solid ", ";\n margin-top: ", "px;\n padding-top: ", "px;\n"])), "var(--ds-border, ".concat(_colors.N40A, ")"), (0, _constants.gridSize)() * 2, (0, _constants.gridSize)() * 2);
73
69
 
74
70
  var populateFromParameters = function populateFromParameters(parameters, fields) {
75
71
  if (Object.keys(parameters).length) {
@@ -291,7 +287,8 @@ var FieldsetField = /*#__PURE__*/function (_React$Component) {
291
287
  extensionManifest = _this$props.extensionManifest,
292
288
  onFieldChange = _this$props.onFieldChange,
293
289
  firstVisibleFieldName = _this$props.firstVisibleFieldName,
294
- error = _this$props.error;
290
+ error = _this$props.error,
291
+ FormComponent = _this$props.formComponent;
295
292
  var label = field.label,
296
293
  options = field.options;
297
294
  var _this$state3 = this.state,
@@ -301,7 +298,7 @@ var FieldsetField = /*#__PURE__*/function (_React$Component) {
301
298
  var children = this.renderActions();
302
299
  return (0, _react2.jsx)(_react.Fragment, null, error && (0, _react2.jsx)(FieldsetError, {
303
300
  message: error
304
- }), (0, _react2.jsx)("div", null, options.showTitle && (0, _react2.jsx)("h5", null, label), (0, _react2.jsx)(_FormContent.default, {
301
+ }), (0, _react2.jsx)("div", null, options.showTitle && (0, _react2.jsx)("h5", null, label), (0, _react2.jsx)(FormComponent, {
305
302
  fields: selectedFields,
306
303
  parentName: name,
307
304
  extensionManifest: extensionManifest,
@@ -13,9 +13,7 @@ var _react = require("@emotion/react");
13
13
 
14
14
  var _colors = require("@atlaskit/theme/colors");
15
15
 
16
- var _tokens = require("@atlaskit/tokens");
17
-
18
16
  var _templateObject;
19
17
 
20
- var requiredIndicator = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n color: ", ";\n"])), (0, _tokens.token)('color.text.danger', _colors.R500));
18
+ var requiredIndicator = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n color: ", ";\n"])), "var(--ds-text-danger, ".concat(_colors.R500, ")"));
21
19
  exports.requiredIndicator = requiredIndicator;
@@ -152,7 +152,8 @@ function FieldComponent(_ref) {
152
152
  onFieldChange: onFieldChange,
153
153
  extensionManifest: extensionManifest,
154
154
  parameters: defaultValue || {},
155
- error: error
155
+ error: error,
156
+ formComponent: FormContent
156
157
  });
157
158
 
158
159
  case 'user':
@@ -25,8 +25,6 @@ var _constants = require("@atlaskit/theme/constants");
25
25
 
26
26
  var _colors = require("@atlaskit/theme/colors");
27
27
 
28
- var _tokens = require("@atlaskit/tokens");
29
-
30
28
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
31
29
 
32
30
  var _messages = require("./messages");
@@ -38,10 +36,10 @@ var buttonWidth = 40;
38
36
  var margin = 16;
39
37
  var gapSizeForEllipsis = iconWidth + buttonWidth + margin * 2;
40
38
  var item = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n margin-bottom: 24px;\n"])));
41
- var itemIcon = (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n width: ", "px;\n height: ", "px;\n overflow: hidden;\n border: 1px solid ", "; /* N60 at 50% */\n border-radius: ", "px;\n box-sizing: border-box;\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n div {\n width: ", "px;\n height: ", "px;\n }\n"])), iconWidth, iconWidth, (0, _tokens.token)('color.border', 'rgba(223, 225, 229, 0.5)'), (0, _constants.borderRadius)(), iconWidth, iconWidth);
39
+ var itemIcon = (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n width: ", "px;\n height: ", "px;\n overflow: hidden;\n border: 1px solid ", "; /* N60 at 50% */\n border-radius: ", "px;\n box-sizing: border-box;\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n div {\n width: ", "px;\n height: ", "px;\n }\n"])), iconWidth, iconWidth, "var(--ds-border, rgba(223, 225, 229, 0.5))", (0, _constants.borderRadius)(), iconWidth, iconWidth);
42
40
  var itemBody = (0, _react2.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n justify-content: space-between;\n line-height: 1.4;\n margin: 0 16px;\n flex-grow: 3;\n max-width: calc(100% - ", "px);\n"])), gapSizeForEllipsis);
43
41
  var centeredItemTitle = (0, _react2.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n"])));
44
- var itemText = (0, _react2.css)(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n max-width: 100%;\n white-space: initial;\n .item-summary {\n font-size: ", ";\n color: ", ";\n margin-top: 4px;\n\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n"])), (0, _editorSharedStyles.relativeFontSizeToBase16)(11.67), (0, _tokens.token)('color.text.subtlest', _colors.N200));
42
+ var itemText = (0, _react2.css)(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n max-width: 100%;\n white-space: initial;\n .item-summary {\n font-size: ", ";\n color: ", ";\n margin-top: 4px;\n\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n"])), (0, _editorSharedStyles.relativeFontSizeToBase16)(11.67), "var(--ds-text-subtlest, ".concat(_colors.N200, ")"));
45
43
  var descriptionStyle = (0, _react2.css)(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n margin-bottom: 24px;\n"])));
46
44
  var closeButtonWrapper = (0, _react2.css)(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n width: ", "px;\n text-align: right;\n"])), buttonWidth);
47
45
 
@@ -23,15 +23,13 @@ var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
23
23
 
24
24
  var _colors = require("@atlaskit/theme/colors");
25
25
 
26
- var _tokens = require("@atlaskit/tokens");
27
-
28
26
  var _messages = require("../messages");
29
27
 
30
28
  var _templateObject, _templateObject2, _templateObject3;
31
29
 
32
30
  var removableFieldWrapper = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n margin-bottom: 0;\n"])));
33
31
  var wrapperWithMarginBottom = (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n margin-bottom: ", "px;\n"])), (0, _constants.gridSize)() * 2);
34
- var removeButtonWrapper = (0, _react2.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n position: absolute;\n right: 0;\n top: 0;\n cursor: pointer;\n\n color: ", ";\n\n &:hover {\n color: ", ";\n }\n"])), (0, _tokens.token)('color.icon.subtle', _colors.N80), (0, _tokens.token)('color.icon.danger', _colors.R300));
32
+ var removeButtonWrapper = (0, _react2.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n position: absolute;\n right: 0;\n top: 0;\n cursor: pointer;\n\n color: ", ";\n\n &:hover {\n color: ", ";\n }\n"])), "var(--ds-icon-subtle, ".concat(_colors.N80, ")"), "var(--ds-icon-danger, ".concat(_colors.R300, ")"));
35
33
 
36
34
  var RemovableField = function RemovableField(_ref) {
37
35
  var _children$props$field;
@@ -19,8 +19,6 @@ var _styles = require("@atlaskit/editor-common/styles");
19
19
 
20
20
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
21
21
 
22
- var _tokens = require("@atlaskit/tokens");
23
-
24
22
  var _styles2 = require("../../plugins/unsupported-content/styles");
25
23
 
26
24
  var _styles3 = require("../../plugins/collab-edit/styles");
@@ -88,9 +86,9 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
88
86
  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; }
89
87
 
90
88
  var contentStyles = function contentStyles(props) {
91
- return (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n .ProseMirror {\n outline: none;\n font-size: ", "px;\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n }\n\n .ProseMirror[contenteditable='false'] .taskItemView-content-wrap {\n pointer-events: none;\n opacity: 0.7;\n }\n\n .ProseMirror-hideselection *::selection {\n background: transparent;\n }\n\n .ProseMirror-hideselection *::-moz-selection {\n background: transparent;\n }\n\n .ProseMirror-selectednode {\n outline: none;\n }\n\n .ProseMirror-selectednode:empty {\n outline: 2px solid ", ";\n }\n\n ", "\n ", "\n ", "\n\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\n .panelView-content-wrap {\n box-sizing: border-box;\n }\n\n .mediaGroupView-content-wrap ul {\n padding: 0;\n }\n\n /** Needed to override any cleared floats, e.g. image wrapping */\n\n div.fabric-editor-block-mark[class^='fabric-editor-align'] {\n clear: none !important;\n }\n\n .fabric-editor-align-end {\n text-align: right;\n }\n\n .fabric-editor-align-start {\n text-align: left;\n }\n\n .fabric-editor-align-center {\n text-align: center;\n }\n\n .pm-table-header-content-wrap,\n .pm-table-cell-content-wrap div.fabric-editor-block-mark {\n p:first-of-type {\n margin-top: 0;\n }\n }\n\n .hyperlink-floating-toolbar,\n .", " {\n padding: 0;\n }\n\n /* Link icon in the Atlaskit package\n is bigger than the others\n */\n .hyperlink-open-link {\n svg {\n max-width: 18px;\n }\n &[href] {\n padding: 0 4px;\n }\n }\n"])), (0, _editorSharedStyles.editorFontSize)({
89
+ return (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n .ProseMirror {\n outline: none;\n font-size: ", "px;\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n }\n\n .ProseMirror[contenteditable='false'] .taskItemView-content-wrap {\n pointer-events: none;\n opacity: 0.7;\n }\n\n .ProseMirror-hideselection *::selection {\n background: transparent;\n }\n\n .ProseMirror-hideselection *::-moz-selection {\n background: transparent;\n }\n\n .ProseMirror-selectednode {\n outline: none;\n }\n\n .ProseMirror-selectednode:empty {\n outline: 2px solid ", ";\n }\n\n ", "\n ", "\n ", "\n\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\n .panelView-content-wrap {\n box-sizing: border-box;\n }\n\n .mediaGroupView-content-wrap ul {\n padding: 0;\n }\n\n /** Needed to override any cleared floats, e.g. image wrapping */\n\n div.fabric-editor-block-mark[class^='fabric-editor-align'] {\n clear: none !important;\n }\n\n .fabric-editor-align-end {\n text-align: right;\n }\n\n .fabric-editor-align-start {\n text-align: left;\n }\n\n .fabric-editor-align-center {\n text-align: center;\n }\n\n .pm-table-header-content-wrap :not(.fabric-editor-alignment),\n .pm-table-header-content-wrap\n :not(p, .fabric-editor-block-mark)\n + div.fabric-editor-block-mark,\n .pm-table-cell-content-wrap\n :not(p, .fabric-editor-block-mark)\n + div.fabric-editor-block-mark {\n p:first-of-type {\n margin-top: 0;\n }\n }\n\n .hyperlink-floating-toolbar,\n .", " {\n padding: 0;\n }\n\n /* Link icon in the Atlaskit package\n is bigger than the others\n */\n .hyperlink-open-link {\n svg {\n max-width: 18px;\n }\n &[href] {\n padding: 0 4px;\n }\n }\n"])), (0, _editorSharedStyles.editorFontSize)({
92
90
  theme: props.theme
93
- }), _styles.whitespaceSharedStyles, _styles.paragraphSharedStyles, _styles.listsSharedStyles, _styles.indentationSharedStyles, _styles.shadowSharedStyle, _getInlineNodeViewProducer.InlineNodeViewSharedStyles, (0, _tokens.token)('color.border.focused', '#8cf'), _styles17.placeholderTextStyles, _styles5.placeholderStyles, (0, _styles7.codeBlockStyles)(props), (0, _styles6.blocktypeStyles)(props), (0, _styles16.textFormattingStyles)(props), _styles.textColorStyles, _styles8.listsStyles, (0, _styles9.ruleStyles)(props), _styles10.mediaStyles, _styles11.layoutStyles, _styles3.telepointerStyle, _styles4.gapCursorStyles, (0, _commonStyles.tableStyles)(props), (0, _styles12.panelStyles)(props), _styles13.fakeCursorStyles, _styles14.mentionsStyles, _styles15.emojiStyles, _styles.tasksAndDecisionsStyles, _styles18.gridStyles, _styles19.linkStyles, _styles.blockMarksSharedStyles, _styles.dateSharedStyle, _styles20.extensionStyles, (0, _styles21.expandStyles)(props), _styles22.findReplaceStyles, _styles23.taskDecisionStyles, _styles24.statusStyles, (0, _styles.annotationSharedStyles)(props), _styles25.smartCardStyles, _styles.smartCardSharedStyles, _styles26.dateStyles, _styled.embedCardStyles, _styles2.unsupportedStyles, _style.ClassNames.FLOATING_TOOLBAR_COMPONENT);
91
+ }), _styles.whitespaceSharedStyles, _styles.paragraphSharedStyles, _styles.listsSharedStyles, _styles.indentationSharedStyles, _styles.shadowSharedStyle, _getInlineNodeViewProducer.InlineNodeViewSharedStyles, "var(--ds-border-focused, #8cf)", _styles17.placeholderTextStyles, _styles5.placeholderStyles, (0, _styles7.codeBlockStyles)(props), (0, _styles6.blocktypeStyles)(props), (0, _styles16.textFormattingStyles)(props), _styles.textColorStyles, _styles8.listsStyles, (0, _styles9.ruleStyles)(props), _styles10.mediaStyles, _styles11.layoutStyles, _styles3.telepointerStyle, _styles4.gapCursorStyles, (0, _commonStyles.tableStyles)(props), (0, _styles12.panelStyles)(props), _styles13.fakeCursorStyles, _styles14.mentionsStyles, _styles15.emojiStyles, _styles.tasksAndDecisionsStyles, _styles18.gridStyles, _styles19.linkStyles, _styles.blockMarksSharedStyles, _styles.dateSharedStyle, _styles20.extensionStyles, (0, _styles21.expandStyles)(props), _styles22.findReplaceStyles, _styles23.taskDecisionStyles, _styles24.statusStyles, (0, _styles.annotationSharedStyles)(props), _styles25.smartCardStyles, _styles.smartCardSharedStyles, _styles26.dateStyles, _styled.embedCardStyles, _styles2.unsupportedStyles, _style.ClassNames.FLOATING_TOOLBAR_COMPONENT);
94
92
  };
95
93
 
96
94
  var createEditorContentStyle = function createEditorContentStyle(styles) {
@@ -47,8 +47,6 @@ var _WithEditorActions = _interopRequireDefault(require("../WithEditorActions"))
47
47
 
48
48
  var _document = require("../../utils/document");
49
49
 
50
- var _tokens = require("@atlaskit/tokens");
51
-
52
50
  var _templateObject, _templateObject2, _templateObject3, _templateObject4;
53
51
 
54
52
  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; }
@@ -79,7 +77,7 @@ var shouldPanelBePositionedOverEditor = function shouldPanelBePositionedOverEdit
79
77
 
80
78
  exports.shouldPanelBePositionedOverEditor = shouldPanelBePositionedOverEditor;
81
79
  var panelHidden = (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n width: 0;\n"])));
82
- var panel = (0, _react2.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n width: ", "px;\n height: 100%;\n transition: width ", "ms ", ";\n overflow: hidden;\n box-shadow: inset 2px 0 0 0 ", ";\n"])), _editorSharedStyles.akEditorContextPanelWidth, ANIM_SPEED_MS, _editorSharedStyles.akEditorSwoopCubicBezier, (0, _tokens.token)('color.border', _colors.N30));
80
+ var panel = (0, _react2.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n width: ", "px;\n height: 100%;\n transition: width ", "ms ", ";\n overflow: hidden;\n box-shadow: inset 2px 0 0 0 ", ";\n"])), _editorSharedStyles.akEditorContextPanelWidth, ANIM_SPEED_MS, _editorSharedStyles.akEditorSwoopCubicBezier, "var(--ds-border, ".concat(_colors.N30, ")"));
83
81
  exports.panel = panel;
84
82
  var content = (0, _react2.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n transition: width 600ms ", ";\n box-sizing: border-box;\n padding: 16px 16px 0px;\n width: ", "px;\n height: 100%;\n overflow-y: auto;\n"])), _editorSharedStyles.akEditorSwoopCubicBezier, _editorSharedStyles.akEditorContextPanelWidth);
85
83
  exports.content = content;
@@ -43,8 +43,6 @@ var _ElementBrowserLoader = _interopRequireDefault(require("./components/Element
43
43
 
44
44
  var _constants = require("./constants");
45
45
 
46
- var _tokens = require("@atlaskit/tokens");
47
-
48
46
  var _excluded = ["children"];
49
47
 
50
48
  var _templateObject, _templateObject2, _templateObject3, _templateObject4;
@@ -184,9 +182,9 @@ var insertMenuWrapper = function insertMenuWrapper(theme, itemCount) {
184
182
  return (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: column;\n width: 320px;\n height: ", "px;\n background-color: ", ";\n border-radius: ", "px;\n box-shadow: ", ";\n"])), getInsertMenuHeight({
185
183
  itemCount: itemCount
186
184
  }), (0, _components.themed)({
187
- light: (0, _tokens.token)('elevation.surface.overlay', _colors.N0),
188
- dark: (0, _tokens.token)('elevation.surface.overlay', _colors.DN50)
189
- })(theme), (0, _theme.borderRadius)(), (0, _tokens.token)('elevation.shadow.overlay', "0 0 0 1px ".concat(_colors.N30A, ",\n 0 2px 1px ").concat(_colors.N30A, ",\n 0 0 20px -6px ").concat(_colors.N60A)));
185
+ light: "var(--ds-surface-overlay, ".concat(_colors.N0, ")"),
186
+ dark: "var(--ds-surface-overlay, ".concat(_colors.DN50, ")")
187
+ })(theme), (0, _theme.borderRadius)(), "var(--ds-shadow-overlay, ".concat("0 0 0 1px ".concat(_colors.N30A, ",\n 0 2px 1px ").concat(_colors.N30A, ",\n 0 0 20px -6px ").concat(_colors.N60A), ")"));
190
188
  };
191
189
 
192
190
  var itemBefore = (0, _react2.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n width: 40px;\n height: 40px;\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n align-items: center;\n margin-right: ", "px;\n"])), (0, _theme.gridSize)() / 2);
@@ -39,8 +39,6 @@ var _constants2 = require("./constants");
39
39
 
40
40
  var _messages = require("./messages");
41
41
 
42
- var _tokens = require("@atlaskit/tokens");
43
-
44
42
  var _templateObject, _templateObject2, _templateObject3, _templateObject4;
45
43
 
46
44
  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); }
@@ -50,8 +48,8 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
50
48
  var actions = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: inline-flex;\n margin: 0 -4px;\n"])));
51
49
  var actionItem = (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n flex: 1 0 auto;\n margin: 0 4px;\n"])));
52
50
  var wrapper = (0, _react2.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex: 1 1 auto;\n box-sizing: border-box;\n padding: ", "px ", "px 0 10px;\n overflow: hidden;\n background-color: ", ";\n border-radius: ", "px;\n"])), _constants2.MODAL_WRAPPER_PADDING, _constants2.MODAL_WRAPPER_PADDING, (0, _components.themed)({
53
- light: (0, _tokens.token)('elevation.surface.overlay', _colors.N0),
54
- dark: (0, _tokens.token)('elevation.surface.overlay', _colors.DN50)
51
+ light: "var(--ds-surface-overlay, ".concat(_colors.N0, ")"),
52
+ dark: "var(--ds-surface-overlay, ".concat(_colors.DN50, ")")
55
53
  })(), (0, _constants.borderRadius)());
56
54
  var modalFooter = (0, _react2.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n padding: ", "px;\n\n position: relative;\n align-items: center;\n justify-content: space-between;\n"])), _constants2.MODAL_WRAPPER_PADDING);
57
55
 
@@ -35,8 +35,6 @@ var _useFocus = _interopRequireDefault(require("../hooks/use-focus"));
35
35
 
36
36
  var _analytics = require("../../../plugins/analytics");
37
37
 
38
- var _tokens = require("@atlaskit/tokens");
39
-
40
38
  var _templateObject;
41
39
 
42
40
  var _excluded = ["categories"],
@@ -117,9 +115,9 @@ function CategoryListItem(_ref2) {
117
115
  marginLeft: '2px',
118
116
  height: '100%',
119
117
  width: '100%',
120
- color: category.name !== selectedCategory ? (0, _tokens.token)('color.text', _colors.N800) : (0, _tokens.token)('color.text.selected', _colors.B400)
118
+ color: category.name !== selectedCategory ? "var(--ds-text, ".concat(_colors.N800, ")") : "var(--ds-text-selected, ".concat(_colors.B400, ")")
121
119
  }, category.name === selectedCategory && {
122
- background: (0, _tokens.token)('color.background.selected', _colors.B50)
120
+ background: "var(--ds-background-selected, ".concat(_colors.B50, ")")
123
121
  })
124
122
  }, rest);
125
123
  }, [category.name, selectedCategory]);
@@ -34,8 +34,6 @@ var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
34
34
 
35
35
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
36
36
 
37
- var _tokens = require("@atlaskit/tokens");
38
-
39
37
  var _analyticsNext = require("@atlaskit/analytics-next");
40
38
 
41
39
  var _analytics = require("../../../../plugins/analytics");
@@ -277,7 +275,7 @@ var ItemContent = /*#__PURE__*/(0, _react.memo)(function (_ref6) {
277
275
  css: itemDescription
278
276
  }, description)));
279
277
  });
280
- var elementItemsWrapper = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n flex: 1;\n flex-flow: row wrap;\n align-items: flex-start;\n justify-content: flex-start;\n overflow: hidden;\n padding: ", "px; // For Focus outline\n\n .ReactVirtualized__Collection {\n border-radius: 3px; // Standard border-radius across other components like Search or Item.\n outline: none;\n\n :focus {\n box-shadow: 0 0 0 ", "px\n ", ";\n }\n }\n .ReactVirtualized__Collection__innerScrollContainer {\n div[class='element-item-wrapper']:last-child {\n padding-bottom: 4px;\n }\n }\n"])), _constants.ELEMENT_LIST_PADDING, _constants.ELEMENT_LIST_PADDING, (0, _tokens.token)('color.border.focused', _colors.B100));
278
+ var elementItemsWrapper = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n flex: 1;\n flex-flow: row wrap;\n align-items: flex-start;\n justify-content: flex-start;\n overflow: hidden;\n padding: ", "px; // For Focus outline\n\n .ReactVirtualized__Collection {\n border-radius: 3px; // Standard border-radius across other components like Search or Item.\n outline: none;\n\n :focus {\n box-shadow: 0 0 0 ", "px\n ", ";\n }\n }\n .ReactVirtualized__Collection__innerScrollContainer {\n div[class='element-item-wrapper']:last-child {\n padding-bottom: 4px;\n }\n }\n"])), _constants.ELEMENT_LIST_PADDING, _constants.ELEMENT_LIST_PADDING, "var(--ds-border-focused, ".concat(_colors.B100, ")"));
281
279
  var elementItemWrapper = (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n div {\n button {\n height: 75px;\n align-items: flex-start;\n padding: 12px 12px 11px;\n }\n }\n"])));
282
280
  var itemBody = (0, _react2.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n justify-content: space-between;\n line-height: 1.4;\n width: 100%;\n\n margin-top: -2px; // Fixes the Item Icon and text's alignment issue\n"])));
283
281
  /*
@@ -286,7 +284,7 @@ var itemBody = (0, _react2.css)(_templateObject3 || (_templateObject3 = (0, _tag
286
284
  */
287
285
 
288
286
  var multilineStyle = (0, _react2.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n"])));
289
- var itemDescription = (0, _react2.css)(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n ", ";\n\n overflow: hidden;\n font-size: ", ";\n color: ", ";\n margin-top: 2px;\n"])), multilineStyle, (0, _editorSharedStyles.relativeFontSizeToBase16)(11.67), (0, _tokens.token)('color.text.subtle', _colors.N200));
287
+ var itemDescription = (0, _react2.css)(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n ", ";\n\n overflow: hidden;\n font-size: ", ";\n color: ", ";\n margin-top: 2px;\n"])), multilineStyle, (0, _editorSharedStyles.relativeFontSizeToBase16)(11.67), "var(--ds-text-subtle, ".concat(_colors.N200, ")"));
290
288
  var itemText = (0, _react2.css)(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n width: inherit;\n white-space: initial;\n"])));
291
289
  var itemTitleWrapper = (0, _react2.css)(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: space-between; // Title and keyboardshortcut are rendered in the same block\n"])));
292
290
  var itemTitle = (0, _react2.css)(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n overflow: hidden;\n\n white-space: nowrap;\n text-overflow: ellipsis;\n"])));
@@ -17,8 +17,6 @@ var _button = _interopRequireDefault(require("@atlaskit/button"));
17
17
 
18
18
  var _NotFoundIllustration = _interopRequireDefault(require("./NotFoundIllustration"));
19
19
 
20
- var _tokens = require("@atlaskit/tokens");
21
-
22
20
  var _templateObject, _templateObject2, _templateObject3, _templateObject4;
23
21
 
24
22
  function EmptyState(_ref) {
@@ -51,7 +49,7 @@ function EmptyState(_ref) {
51
49
  })))));
52
50
  }
53
51
 
54
- var emptyStateHeading = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n font-size: 1.42857em;\n line-height: 1.2;\n color: ", ";\n font-weight: 500;\n letter-spacing: -0.008em;\n margin-top: 28px;\n"])), (0, _tokens.token)('color.text', 'rgb(23, 43, 77)'));
52
+ var emptyStateHeading = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n font-size: 1.42857em;\n line-height: 1.2;\n color: ", ";\n font-weight: 500;\n letter-spacing: -0.008em;\n margin-top: 28px;\n"])), "var(--ds-text, rgb(23, 43, 77))");
55
53
  var emptyStateSubHeading = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n margin-top: 16px;\n max-width: 400px;\n text-align: center;\n"])));
56
54
  var emptyStateWrapper = (0, _react.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n"])));
57
55
  var externalLinkWrapper = (0, _react.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n margin-top: 14px;\n"])));
@@ -35,8 +35,6 @@ var _types = require("../types");
35
35
 
36
36
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
37
37
 
38
- var _tokens = require("@atlaskit/tokens");
39
-
40
38
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
41
39
 
42
40
  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); }
@@ -102,7 +100,7 @@ var placeHolderMessage = {
102
100
  var styledShortcut = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n ", "\n padding: ", "px ", "px;\n width: ", "px;\n"])), _styles.shortcutStyle, _constants.GRID_SIZE / 2, _constants.GRID_SIZE, _constants.GRID_SIZE * 6);
103
101
  var wrapper = (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n & > [data-ds--text-field--container] {\n height: ", "px;\n border-radius: ", "px;\n flex: 1 1 100%;\n overflow: visible;\n & > [data-ds--text-field--input] {\n margin-bottom: 3px;\n font-size: ", ";\n padding: ", "px 6px ", "px 0;\n }\n }\n"])), _constants.GRID_SIZE * 6, _constants.GRID_SIZE, (0, _editorSharedStyles.relativeFontSizeToBase16)(14), _constants.GRID_SIZE, _constants.GRID_SIZE);
104
102
  var wrapperInline = (0, _react2.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n & > [data-ds--text-field--container] {\n height: ", "px;\n flex: none;\n overflow: revert;\n }\n"])), _constants.GRID_SIZE * 5);
105
- var elementBeforeInput = (0, _react2.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n margin: 1px 6px 0 8px;\n color: ", ";\n\n // Custom SearchIcon style\n span,\n svg {\n height: 20px;\n width: 20px;\n }\n"])), (0, _tokens.token)('color.icon', _colors.N200));
103
+ var elementBeforeInput = (0, _react2.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n margin: 1px 6px 0 8px;\n color: ", ";\n\n // Custom SearchIcon style\n span,\n svg {\n height: 20px;\n width: 20px;\n }\n"])), "var(--ds-icon, ".concat(_colors.N200, ")"));
106
104
  var elementAfterInput = (0, _react2.css)(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n margin: 0 8px;\n height: ", ";\n text-align: center;\n"])), _constants.SEARCH_ITEM_HEIGHT_WIDTH);
107
105
  var MemoizedElementSearchWithAnalytics = /*#__PURE__*/(0, _react.memo)((0, _analyticsNext.withAnalyticsContext)({
108
106
  component: 'Searchbar'
@@ -15,12 +15,10 @@ var _constants = require("@atlaskit/theme/constants");
15
15
 
16
16
  var _colors = require("@atlaskit/theme/colors");
17
17
 
18
- var _tokens = require("@atlaskit/tokens");
19
-
20
18
  var _templateObject, _templateObject2;
21
19
 
22
20
  var container = function container(height) {
23
- return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n border-radius: ", "px;\n box-shadow: ", ";\n display: flex;\n align-items: center;\n box-sizing: border-box;\n padding: 4px 8px;\n background-color: ", ";\n ", ";\n"])), (0, _constants.borderRadius)(), (0, _tokens.token)('elevation.shadow.overlay', "0 12px 24px -6px ".concat(_colors.N50A, ", 0 0 1px ").concat(_colors.N60A)), (0, _tokens.token)('color.background.input', _colors.N0), height ? (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n height: ", "px;\n "])), height) : '');
21
+ return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n border-radius: ", "px;\n box-shadow: ", ";\n display: flex;\n align-items: center;\n box-sizing: border-box;\n padding: 4px 8px;\n background-color: ", ";\n ", ";\n"])), (0, _constants.borderRadius)(), "var(--ds-shadow-overlay, ".concat("0 12px 24px -6px ".concat(_colors.N50A, ", 0 0 1px ").concat(_colors.N60A), ")"), "var(--ds-background-input, ".concat(_colors.N0, ")"), height ? (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n height: ", "px;\n "])), height) : '');
24
22
  };
25
23
 
26
24
  exports.container = container;
@@ -31,8 +31,6 @@ var _react2 = require("@emotion/react");
31
31
 
32
32
  var _theme = require("@atlaskit/theme");
33
33
 
34
- var _tokens = require("@atlaskit/tokens");
35
-
36
34
  var _colors = require("@atlaskit/theme/colors");
37
35
 
38
36
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
@@ -55,12 +53,12 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
55
53
 
56
54
  var container = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n background-color: transparent;\n padding: 8px 12px;\n cursor: pointer;\n display: flex;\n margin-top: 0;\n"])));
57
55
  exports.container = container;
58
- var containerSelected = (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n background-color: ", ";\n"])), (0, _tokens.token)('color.background.neutral.subtle.hovered', _colors.N20));
56
+ var containerSelected = (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n background-color: ", ";\n"])), "var(--ds-background-neutral-subtle-hovered, ".concat(_colors.N20, ")"));
59
57
  exports.containerSelected = containerSelected;
60
58
  var nameWrapper = (0, _react2.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n overflow: hidden;\n"])));
61
- var nameStyle = (0, _react2.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n color: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n line-height: 20px;\n"])), (0, _tokens.token)('color.text', _colors.N800));
59
+ var nameStyle = (0, _react2.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n color: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n line-height: 20px;\n"])), "var(--ds-text, ".concat(_colors.N800, ")"));
62
60
  exports.nameStyle = nameStyle;
63
- var containerName = (0, _react2.css)(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n color: ", ";\n line-height: 14px;\n font-size: ", ";\n"])), (0, _tokens.token)('color.text.subtlest', _colors.N300), (0, _editorSharedStyles.relativeFontSizeToBase16)((0, _theme.fontSizeSmall)()));
61
+ var containerName = (0, _react2.css)(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n color: ", ";\n line-height: 14px;\n font-size: ", ";\n"])), "var(--ds-text-subtlest, ".concat(_colors.N300, ")"), (0, _editorSharedStyles.relativeFontSizeToBase16)((0, _theme.fontSizeSmall)()));
64
62
  exports.containerName = containerName;
65
63
  var iconStyle = (0, _react2.css)(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n min-width: 16px;\n margin-top: 3px;\n margin-right: 12px;\n\n img {\n max-width: 16px;\n }\n"])));
66
64
 
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.inputWrapper = exports.containerWithProvider = exports.container = exports.RECENT_SEARCH_WIDTH_WITHOUT_ITEMS_IN_PX = exports.RECENT_SEARCH_WIDTH_IN_PX = exports.RECENT_SEARCH_HEIGHT_IN_PX = void 0;
8
+ exports.inputWrapper = exports.containerWithProvider = exports.container = exports.RECENT_SEARCH_WIDTH_WITHOUT_ITEMS_IN_PX = exports.RECENT_SEARCH_WIDTH_IN_PX = exports.RECENT_SEARCH_HEIGHT_IN_PX = exports.LINKPICKER_HEIGHT_IN_PX = void 0;
9
9
 
10
10
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
11
11
 
@@ -19,6 +19,8 @@ var RECENT_SEARCH_WIDTH_WITHOUT_ITEMS_IN_PX = 360;
19
19
  exports.RECENT_SEARCH_WIDTH_WITHOUT_ITEMS_IN_PX = RECENT_SEARCH_WIDTH_WITHOUT_ITEMS_IN_PX;
20
20
  var RECENT_SEARCH_HEIGHT_IN_PX = 360;
21
21
  exports.RECENT_SEARCH_HEIGHT_IN_PX = RECENT_SEARCH_HEIGHT_IN_PX;
22
+ var LINKPICKER_HEIGHT_IN_PX = 570;
23
+ exports.LINKPICKER_HEIGHT_IN_PX = LINKPICKER_HEIGHT_IN_PX;
22
24
  var inputWrapper = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n line-height: 0;\n padding: 5px 0;\n align-items: center;\n"])));
23
25
  exports.inputWrapper = inputWrapper;
24
26
  var container = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: column;\n overflow: auto;\n padding: 0;\n\n width: ", "px;\n line-height: initial;\n"])), RECENT_SEARCH_WIDTH_WITHOUT_ITEMS_IN_PX);
@@ -15,12 +15,10 @@ var _colors = require("@atlaskit/theme/colors");
15
15
 
16
16
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
17
17
 
18
- var _tokens = require("@atlaskit/tokens");
19
-
20
18
  var _templateObject, _templateObject2;
21
19
 
22
20
  // Normal .className gets overridden by input[type=text] hence this hack to produce input.className
23
- var panelTextInput = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n input& {\n background: transparent;\n border: 0;\n border-radius: 0;\n box-sizing: content-box;\n color: ", ";\n flex-grow: 1;\n font-size: ", ";\n line-height: 20px;\n padding: 0;\n min-width: 145px;\n\n /* Hides IE10+ built-in [x] clear input button */\n &::-ms-clear {\n display: none;\n }\n\n &:focus {\n outline: none;\n }\n\n &::placeholder {\n color: ", ";\n }\n }\n"])), (0, _tokens.token)('color.text.subtle', _colors.N400), (0, _editorSharedStyles.relativeFontSizeToBase16)(13), (0, _tokens.token)('color.text.subtlest', _colors.N100));
21
+ var panelTextInput = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n input& {\n background: transparent;\n border: 0;\n border-radius: 0;\n box-sizing: content-box;\n color: ", ";\n flex-grow: 1;\n font-size: ", ";\n line-height: 20px;\n padding: 0;\n min-width: 145px;\n\n /* Hides IE10+ built-in [x] clear input button */\n &::-ms-clear {\n display: none;\n }\n\n &:focus {\n outline: none;\n }\n\n &::placeholder {\n color: ", ";\n }\n }\n"])), "var(--ds-text-subtle, ".concat(_colors.N400, ")"), (0, _editorSharedStyles.relativeFontSizeToBase16)(13), "var(--ds-text-subtlest, ".concat(_colors.N100, ")"));
24
22
  exports.panelTextInput = panelTextInput;
25
23
 
26
24
  var panelTextInputWithCustomWidth = function panelTextInputWithCustomWidth(width) {
@@ -37,32 +37,33 @@ exports.KeyDownHandlerContext = KeyDownHandlerContext;
37
37
 
38
38
  var ToolbarArrowKeyNavigationProvider = function ToolbarArrowKeyNavigationProvider(_ref) {
39
39
  var children = _ref.children,
40
- editorView = _ref.editorView;
40
+ editorView = _ref.editorView,
41
+ childComponentSelector = _ref.childComponentSelector,
42
+ handleEscape = _ref.handleEscape,
43
+ disableArrowKeyNavigation = _ref.disableArrowKeyNavigation;
41
44
  var wrapperRef = (0, _react.useRef)(null);
42
- var currentSelectedItemIndex = (0, _react.useRef)(0);
43
-
44
- var incrementIndex = function incrementIndex(list) {
45
- if (currentSelectedItemIndex.current === list.length - 1) {
46
- currentSelectedItemIndex.current = 0;
45
+ var selectedItemIndex = (0, _react.useRef)(0);
46
+ var incrementIndex = (0, _react.useCallback)(function (list) {
47
+ if (selectedItemIndex.current === list.length - 1) {
48
+ selectedItemIndex.current = 0;
47
49
  } else {
48
- currentSelectedItemIndex.current = currentSelectedItemIndex.current + 1;
50
+ selectedItemIndex.current = selectedItemIndex.current + 1;
49
51
  }
50
- };
51
-
52
- var decrementIndex = function decrementIndex(list) {
53
- if (currentSelectedItemIndex.current === 0) {
54
- currentSelectedItemIndex.current = list.length - 1;
52
+ }, []);
53
+ var decrementIndex = (0, _react.useCallback)(function (list) {
54
+ if (selectedItemIndex.current === 0) {
55
+ selectedItemIndex.current = list.length - 1;
55
56
  } else {
56
- currentSelectedItemIndex.current = currentSelectedItemIndex.current - 1;
57
+ selectedItemIndex.current = selectedItemIndex.current - 1;
57
58
  }
58
- };
59
+ }, []);
59
60
 
60
61
  var handleArrowRight = function handleArrowRight() {
61
62
  var _filteredFocusableEle;
62
63
 
63
64
  var filteredFocusableElements = getFilteredFocusableElements(wrapperRef === null || wrapperRef === void 0 ? void 0 : wrapperRef.current);
64
65
  incrementIndex(filteredFocusableElements);
65
- (_filteredFocusableEle = filteredFocusableElements[currentSelectedItemIndex.current]) === null || _filteredFocusableEle === void 0 ? void 0 : _filteredFocusableEle.focus();
66
+ (_filteredFocusableEle = filteredFocusableElements[selectedItemIndex.current]) === null || _filteredFocusableEle === void 0 ? void 0 : _filteredFocusableEle.focus();
66
67
  };
67
68
 
68
69
  var handleArrowLeft = function handleArrowLeft() {
@@ -70,14 +71,23 @@ var ToolbarArrowKeyNavigationProvider = function ToolbarArrowKeyNavigationProvid
70
71
 
71
72
  var filteredFocusableElements = getFilteredFocusableElements(wrapperRef === null || wrapperRef === void 0 ? void 0 : wrapperRef.current);
72
73
  decrementIndex(filteredFocusableElements);
73
- (_filteredFocusableEle2 = filteredFocusableElements[currentSelectedItemIndex.current]) === null || _filteredFocusableEle2 === void 0 ? void 0 : _filteredFocusableEle2.focus();
74
+ (_filteredFocusableEle2 = filteredFocusableElements[selectedItemIndex.current]) === null || _filteredFocusableEle2 === void 0 ? void 0 : _filteredFocusableEle2.focus();
74
75
  };
75
76
 
76
77
  var handleTab = function handleTab() {
77
78
  var _filteredFocusableEle3;
78
79
 
79
80
  var filteredFocusableElements = getFilteredFocusableElements(wrapperRef === null || wrapperRef === void 0 ? void 0 : wrapperRef.current);
80
- (_filteredFocusableEle3 = filteredFocusableElements[currentSelectedItemIndex.current]) === null || _filteredFocusableEle3 === void 0 ? void 0 : _filteredFocusableEle3.focus();
81
+ (_filteredFocusableEle3 = filteredFocusableElements[selectedItemIndex.current]) === null || _filteredFocusableEle3 === void 0 ? void 0 : _filteredFocusableEle3.focus();
82
+ };
83
+
84
+ var focusAndScrollToElement = function focusAndScrollToElement(element) {
85
+ element === null || element === void 0 ? void 0 : element.scrollIntoView({
86
+ behavior: 'smooth',
87
+ block: 'center',
88
+ inline: 'nearest'
89
+ });
90
+ element.focus();
81
91
  };
82
92
 
83
93
  var submenuKeydownHandleContext = {
@@ -86,7 +96,7 @@ var ToolbarArrowKeyNavigationProvider = function ToolbarArrowKeyNavigationProvid
86
96
  handleTab: handleTab
87
97
  };
88
98
  (0, _react.useLayoutEffect)(function () {
89
- if (!wrapperRef.current) {
99
+ if (!wrapperRef.current || disableArrowKeyNavigation) {
90
100
  return;
91
101
  }
92
102
 
@@ -97,17 +107,17 @@ var ToolbarArrowKeyNavigationProvider = function ToolbarArrowKeyNavigationProvid
97
107
  */
98
108
 
99
109
  var handleKeyDown = function handleKeyDown(event) {
100
- var _document$querySelect, _wrapperRef$current, _filteredFocusableEle4;
110
+ var _document$querySelect, _document$querySelect2, _wrapperRef$current;
101
111
 
102
- //To trap the focus inside the horizontal main toolbar for left and right arrow keys
103
- var targetElement = event.target; //To filter out the events outside the main toolbar
112
+ //To trap the focus inside the horizontal toolbar for left and right arrow keys
113
+ var targetElement = event.target; //To filter out the events outside the child component
104
114
 
105
- if (!targetElement.closest("[data-testid='ak-editor-main-toolbar']")) {
115
+ if (!targetElement.closest("".concat(childComponentSelector))) {
106
116
  return;
107
117
  } //The key events are from child components such as dropdown menus / popups are ignored
108
118
 
109
119
 
110
- if ((_document$querySelect = document.querySelector('[data-role="droplistContent"], [data-test-id="color-picker-menu"], [data-emoji-picker-container="true"]')) !== null && _document$querySelect !== void 0 && _document$querySelect.contains(targetElement) || event.key === 'ArrowUp' || event.key === 'ArrowDown') {
120
+ if ((_document$querySelect = document.querySelector('[data-role="droplistContent"], [data-test-id="color-picker-menu"], [data-emoji-picker-container="true"]')) !== null && _document$querySelect !== void 0 && _document$querySelect.contains(targetElement) || (_document$querySelect2 = document.querySelector('[data-test-id="color-picker-menu"]')) !== null && _document$querySelect2 !== void 0 && _document$querySelect2.contains(targetElement) || event.key === 'ArrowUp' || event.key === 'ArrowDown' || disableArrowKeyNavigation) {
111
121
  return;
112
122
  }
113
123
 
@@ -120,25 +130,37 @@ var ToolbarArrowKeyNavigationProvider = function ToolbarArrowKeyNavigationProvid
120
130
 
121
131
 
122
132
  if (!((_wrapperRef$current = wrapperRef.current) !== null && _wrapperRef$current !== void 0 && _wrapperRef$current.contains(targetElement))) {
123
- currentSelectedItemIndex.current = -1;
133
+ selectedItemIndex.current = -1;
124
134
  } else {
125
- currentSelectedItemIndex.current = filteredFocusableElements.indexOf(targetElement) > -1 ? filteredFocusableElements.indexOf(targetElement) : currentSelectedItemIndex.current;
135
+ selectedItemIndex.current = filteredFocusableElements.indexOf(targetElement) > -1 ? filteredFocusableElements.indexOf(targetElement) : selectedItemIndex.current;
126
136
  }
127
137
 
128
- if (event.key === 'ArrowRight') {
129
- incrementIndex(filteredFocusableElements);
130
- } else if (event.key === 'ArrowLeft') {
131
- decrementIndex(filteredFocusableElements);
132
- }
138
+ switch (event.key) {
139
+ case 'ArrowRight':
140
+ incrementIndex(filteredFocusableElements);
141
+ focusAndScrollToElement(filteredFocusableElements[selectedItemIndex.current]);
142
+ event.preventDefault();
143
+ break;
144
+
145
+ case 'ArrowLeft':
146
+ decrementIndex(filteredFocusableElements);
147
+ focusAndScrollToElement(filteredFocusableElements[selectedItemIndex.current]);
148
+ event.preventDefault();
149
+ break;
133
150
 
134
- (_filteredFocusableEle4 = filteredFocusableElements[currentSelectedItemIndex.current]) === null || _filteredFocusableEle4 === void 0 ? void 0 : _filteredFocusableEle4.focus();
151
+ case 'Escape':
152
+ handleEscape(event);
153
+ break;
154
+
155
+ default:
156
+ }
135
157
  };
136
158
 
137
159
  element === null || element === void 0 ? void 0 : element.addEventListener('keydown', handleKeyDown);
138
160
  return function () {
139
161
  element === null || element === void 0 ? void 0 : element.removeEventListener('keydown', handleKeyDown);
140
162
  };
141
- }, [currentSelectedItemIndex, wrapperRef, editorView]);
163
+ }, [selectedItemIndex, wrapperRef, editorView, disableArrowKeyNavigation, handleEscape, childComponentSelector, incrementIndex, decrementIndex]);
142
164
  return /*#__PURE__*/_react.default.createElement("div", {
143
165
  className: "custom-key-handler-wrapper",
144
166
  ref: wrapperRef
@@ -161,6 +183,6 @@ function getFocusableElements(rootNode) {
161
183
  function getFilteredFocusableElements(rootNode) {
162
184
  //The focusable elements from child components such as dropdown menus / popups are ignored
163
185
  return getFocusableElements(rootNode).filter(function (elm) {
164
- return !elm.closest('[data-role="droplistContent"]') && !elm.closest('[data-emoji-picker-container="true"]') && !elm.closest('[data-test-id="color-picker-menu"]');
186
+ return !elm.closest('[data-role="droplistContent"]') && !elm.closest('[data-emoji-picker-container="true"]') && !elm.closest('[data-test-id="color-picker-menu"]') && !elm.closest('.scroll-buttons');
165
187
  });
166
188
  }