@atlaskit/editor-core 177.0.0 → 178.0.0

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 (292) hide show
  1. package/CHANGELOG.md +89 -0
  2. package/codemods/__tests__/next-remove-allow-more-text-colors-prop.ts +147 -0
  3. package/codemods/migrates/next-remove-allow-more-text-colors-prop.ts +58 -0
  4. package/dist/cjs/create-editor/ErrorBoundary.js +3 -1
  5. package/dist/cjs/create-editor/ReactEditorView.js +3 -2
  6. package/dist/cjs/create-editor/create-editor.js +3 -1
  7. package/dist/cjs/editor.js +7 -0
  8. package/dist/cjs/labs/next/full-page.js +2 -4
  9. package/dist/cjs/plugins/alignment/ui/ToolbarAlignment/styles.js +1 -3
  10. package/dist/cjs/plugins/block-type/commands/delete-and-move-cursor.js +67 -0
  11. package/dist/cjs/plugins/block-type/commands/index.js +9 -1
  12. package/dist/cjs/plugins/block-type/pm-plugins/keymap.js +8 -3
  13. package/dist/cjs/plugins/block-type/ui/ToolbarBlockType/styled.js +2 -4
  14. package/dist/cjs/plugins/breakout/ui/LayoutButton.js +1 -3
  15. package/dist/cjs/plugins/card/styles.js +1 -3
  16. package/dist/cjs/plugins/code-block/styles.js +2 -4
  17. package/dist/cjs/plugins/collab-edit/styles.js +2 -4
  18. package/dist/cjs/plugins/collab-edit/ui/styles.js +2 -4
  19. package/dist/cjs/plugins/date/styles.js +1 -3
  20. package/dist/cjs/plugins/date/ui/DatePicker/index.js +1 -3
  21. package/dist/cjs/plugins/expand/ui/styles.js +14 -16
  22. package/dist/cjs/plugins/extension/ui/Extension/Extension/styles.js +4 -6
  23. package/dist/cjs/plugins/extension/ui/Extension/InlineExtension/styles.js +1 -3
  24. package/dist/cjs/plugins/extension/ui/Extension/styles.js +5 -7
  25. package/dist/cjs/plugins/extension/ui/SaveIndicator/SaveIndicator.js +2 -4
  26. package/dist/cjs/plugins/extension/ui/styles.js +1 -3
  27. package/dist/cjs/plugins/fake-text-cursor/styles.js +1 -3
  28. package/dist/cjs/plugins/feature-flags-context/feature-flags-from-props.js +12 -12
  29. package/dist/cjs/plugins/find-replace/ui/styles.js +2 -4
  30. package/dist/cjs/plugins/floating-toolbar/ui/DropdownMenu.js +40 -14
  31. package/dist/cjs/plugins/floating-toolbar/ui/EditorEmojiAddIcon.js +1 -3
  32. package/dist/cjs/plugins/floating-toolbar/ui/ScrollButtons.js +1 -3
  33. package/dist/cjs/plugins/floating-toolbar/ui/Separator.js +1 -3
  34. package/dist/cjs/plugins/floating-toolbar/ui/Toolbar.js +11 -20
  35. package/dist/cjs/plugins/floating-toolbar/ui/styles.js +10 -12
  36. package/dist/cjs/plugins/grid/styles.js +1 -3
  37. package/dist/cjs/plugins/help-dialog/ui/styles.js +9 -11
  38. package/dist/cjs/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +5 -5
  39. package/dist/cjs/plugins/jira-issue/nodeviews/jira-issue.js +2 -4
  40. package/dist/cjs/plugins/layout/styles.js +1 -3
  41. package/dist/cjs/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.js +3 -5
  42. package/dist/cjs/plugins/media/styles.js +1 -3
  43. package/dist/cjs/plugins/media/ui/CaptionPlaceholder/index.js +1 -3
  44. package/dist/cjs/plugins/media/ui/Media/DropPlaceholder.js +2 -4
  45. package/dist/cjs/plugins/media/ui/MediaLinkingToolbar.js +1 -3
  46. package/dist/cjs/plugins/mentions/styles.js +1 -3
  47. package/dist/cjs/plugins/mentions/ui/InviteItem/index.js +1 -3
  48. package/dist/cjs/plugins/mentions/ui/InviteItem/styles.js +2 -4
  49. package/dist/cjs/plugins/panel/styles.js +1 -3
  50. package/dist/cjs/plugins/placeholder/styles.js +1 -3
  51. package/dist/cjs/plugins/placeholder-text/styles.js +1 -3
  52. package/dist/cjs/plugins/rule/styles.js +1 -3
  53. package/dist/cjs/plugins/status/ui/statusPicker.js +1 -3
  54. package/dist/cjs/plugins/tasks-and-decisions/styles.js +1 -3
  55. package/dist/cjs/plugins/text-color/commands/change-color.js +1 -2
  56. package/dist/cjs/plugins/text-color/pm-plugins/main.js +1 -1
  57. package/dist/cjs/plugins/text-color/ui/ToolbarTextColor/index.js +2 -10
  58. package/dist/cjs/plugins/type-ahead/pm-plugins/decorations.js +1 -3
  59. package/dist/cjs/plugins/type-ahead/ui/InputQuery.js +1 -3
  60. package/dist/cjs/plugins/type-ahead/ui/TypeAheadListItem.js +7 -9
  61. package/dist/cjs/plugins/type-ahead/ui/TypeAheadPopup.js +1 -3
  62. package/dist/cjs/plugins/unsupported-content/styles.js +1 -3
  63. package/dist/cjs/ui/Addon/Dropdown/styles.js +1 -3
  64. package/dist/cjs/ui/Addon/DropdownItem/styles.js +1 -3
  65. package/dist/cjs/ui/Appearance/Comment/Comment.js +1 -3
  66. package/dist/cjs/ui/Appearance/Comment/Toolbar.js +2 -4
  67. package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +19 -1
  68. package/dist/cjs/ui/Appearance/FullPage/MainToolbar.js +2 -4
  69. package/dist/cjs/ui/ChromeCollapsed/styles.js +1 -3
  70. package/dist/cjs/ui/ColorPalette/Palettes/textColorPalette.js +0 -6
  71. package/dist/cjs/ui/ColorPickerButton/index.js +3 -8
  72. package/dist/cjs/ui/ConfigPanel/Fields/CheckboxGroup.js +1 -3
  73. package/dist/cjs/ui/ConfigPanel/Fields/Expand.js +1 -3
  74. package/dist/cjs/ui/ConfigPanel/Fields/Fieldset.js +1 -3
  75. package/dist/cjs/ui/ConfigPanel/Fields/common/RequiredIndicator.js +1 -3
  76. package/dist/cjs/ui/ConfigPanel/Header.js +2 -4
  77. package/dist/cjs/ui/ConfigPanel/NestedForms/RemovableField.js +1 -3
  78. package/dist/cjs/ui/ContentStyles/index.js +1 -3
  79. package/dist/cjs/ui/ContextPanel/index.js +1 -3
  80. package/dist/cjs/ui/ElementBrowser/InsertMenu.js +3 -5
  81. package/dist/cjs/ui/ElementBrowser/ModalElementBrowser.js +2 -4
  82. package/dist/cjs/ui/ElementBrowser/components/CategoryList.js +2 -4
  83. package/dist/cjs/ui/ElementBrowser/components/ElementList/ElementList.js +2 -4
  84. package/dist/cjs/ui/ElementBrowser/components/ElementList/EmptyState.js +1 -3
  85. package/dist/cjs/ui/ElementBrowser/components/ElementSearch.js +1 -3
  86. package/dist/cjs/ui/FloatingToolbar/styles.js +1 -3
  87. package/dist/cjs/ui/LinkSearch/LinkSearchListItem.js +3 -5
  88. package/dist/cjs/ui/PanelTextInput/styles.js +1 -3
  89. package/dist/cjs/ui/ToolbarArrowKeyNavigationProvider/index.js +27 -2
  90. package/dist/cjs/ui/ToolbarFeedback/styles.js +3 -5
  91. package/dist/cjs/ui/WithFlash/index.js +2 -4
  92. package/dist/cjs/ui/styles.js +2 -4
  93. package/dist/cjs/utils/performance/instrumented-plugin.js +6 -3
  94. package/dist/cjs/utils/performance/safer-transactions.js +8 -2
  95. package/dist/cjs/version-wrapper.js +1 -1
  96. package/dist/cjs/version.json +1 -1
  97. package/dist/es2019/create-editor/ErrorBoundary.js +3 -1
  98. package/dist/es2019/create-editor/ReactEditorView.js +3 -2
  99. package/dist/es2019/create-editor/create-editor.js +3 -1
  100. package/dist/es2019/editor.js +7 -0
  101. package/dist/es2019/labs/next/full-page.js +2 -3
  102. package/dist/es2019/plugins/alignment/ui/ToolbarAlignment/styles.js +1 -2
  103. package/dist/es2019/plugins/block-type/commands/delete-and-move-cursor.js +63 -0
  104. package/dist/es2019/plugins/block-type/commands/index.js +2 -1
  105. package/dist/es2019/plugins/block-type/pm-plugins/keymap.js +7 -4
  106. package/dist/es2019/plugins/block-type/ui/ToolbarBlockType/styled.js +2 -3
  107. package/dist/es2019/plugins/breakout/ui/LayoutButton.js +4 -5
  108. package/dist/es2019/plugins/card/styles.js +6 -7
  109. package/dist/es2019/plugins/code-block/styles.js +8 -9
  110. package/dist/es2019/plugins/collab-edit/styles.js +2 -3
  111. package/dist/es2019/plugins/collab-edit/ui/styles.js +3 -4
  112. package/dist/es2019/plugins/date/styles.js +1 -2
  113. package/dist/es2019/plugins/date/ui/DatePicker/index.js +2 -3
  114. package/dist/es2019/plugins/expand/ui/styles.js +14 -15
  115. package/dist/es2019/plugins/extension/ui/Extension/Extension/styles.js +4 -5
  116. package/dist/es2019/plugins/extension/ui/Extension/InlineExtension/styles.js +1 -2
  117. package/dist/es2019/plugins/extension/ui/Extension/styles.js +6 -7
  118. package/dist/es2019/plugins/extension/ui/SaveIndicator/SaveIndicator.js +3 -4
  119. package/dist/es2019/plugins/extension/ui/styles.js +2 -3
  120. package/dist/es2019/plugins/fake-text-cursor/styles.js +2 -3
  121. package/dist/es2019/plugins/feature-flags-context/feature-flags-from-props.js +12 -12
  122. package/dist/es2019/plugins/find-replace/ui/styles.js +2 -3
  123. package/dist/es2019/plugins/floating-toolbar/ui/DropdownMenu.js +43 -13
  124. package/dist/es2019/plugins/floating-toolbar/ui/EditorEmojiAddIcon.js +1 -2
  125. package/dist/es2019/plugins/floating-toolbar/ui/ScrollButtons.js +1 -2
  126. package/dist/es2019/plugins/floating-toolbar/ui/Separator.js +1 -2
  127. package/dist/es2019/plugins/floating-toolbar/ui/Toolbar.js +12 -21
  128. package/dist/es2019/plugins/floating-toolbar/ui/styles.js +10 -11
  129. package/dist/es2019/plugins/grid/styles.js +2 -3
  130. package/dist/es2019/plugins/help-dialog/ui/styles.js +11 -12
  131. package/dist/es2019/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +6 -5
  132. package/dist/es2019/plugins/jira-issue/nodeviews/jira-issue.js +5 -6
  133. package/dist/es2019/plugins/layout/styles.js +4 -5
  134. package/dist/es2019/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.js +4 -5
  135. package/dist/es2019/plugins/media/styles.js +10 -11
  136. package/dist/es2019/plugins/media/ui/CaptionPlaceholder/index.js +1 -2
  137. package/dist/es2019/plugins/media/ui/Media/DropPlaceholder.js +3 -4
  138. package/dist/es2019/plugins/media/ui/MediaLinkingToolbar.js +1 -2
  139. package/dist/es2019/plugins/mentions/styles.js +4 -5
  140. package/dist/es2019/plugins/mentions/ui/InviteItem/index.js +1 -2
  141. package/dist/es2019/plugins/mentions/ui/InviteItem/styles.js +2 -3
  142. package/dist/es2019/plugins/panel/styles.js +4 -5
  143. package/dist/es2019/plugins/placeholder/styles.js +1 -2
  144. package/dist/es2019/plugins/placeholder-text/styles.js +4 -5
  145. package/dist/es2019/plugins/rule/styles.js +1 -2
  146. package/dist/es2019/plugins/status/ui/statusPicker.js +2 -3
  147. package/dist/es2019/plugins/tasks-and-decisions/styles.js +2 -3
  148. package/dist/es2019/plugins/text-color/commands/change-color.js +1 -2
  149. package/dist/es2019/plugins/text-color/pm-plugins/main.js +2 -2
  150. package/dist/es2019/plugins/text-color/ui/ToolbarTextColor/index.js +2 -6
  151. package/dist/es2019/plugins/type-ahead/pm-plugins/decorations.js +1 -2
  152. package/dist/es2019/plugins/type-ahead/ui/InputQuery.js +1 -2
  153. package/dist/es2019/plugins/type-ahead/ui/TypeAheadListItem.js +8 -9
  154. package/dist/es2019/plugins/type-ahead/ui/TypeAheadPopup.js +2 -3
  155. package/dist/es2019/plugins/unsupported-content/styles.js +2 -3
  156. package/dist/es2019/ui/Addon/Dropdown/styles.js +2 -3
  157. package/dist/es2019/ui/Addon/DropdownItem/styles.js +2 -3
  158. package/dist/es2019/ui/Appearance/Comment/Comment.js +2 -3
  159. package/dist/es2019/ui/Appearance/Comment/Toolbar.js +2 -3
  160. package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +19 -1
  161. package/dist/es2019/ui/Appearance/FullPage/MainToolbar.js +2 -3
  162. package/dist/es2019/ui/ChromeCollapsed/styles.js +5 -6
  163. package/dist/es2019/ui/ColorPalette/Palettes/textColorPalette.js +1 -1
  164. package/dist/es2019/ui/ColorPickerButton/index.js +20 -9
  165. package/dist/es2019/ui/ConfigPanel/Fields/CheckboxGroup.js +1 -2
  166. package/dist/es2019/ui/ConfigPanel/Fields/Expand.js +1 -2
  167. package/dist/es2019/ui/ConfigPanel/Fields/Fieldset.js +1 -2
  168. package/dist/es2019/ui/ConfigPanel/Fields/common/RequiredIndicator.js +1 -2
  169. package/dist/es2019/ui/ConfigPanel/Header.js +2 -3
  170. package/dist/es2019/ui/ConfigPanel/NestedForms/RemovableField.js +2 -3
  171. package/dist/es2019/ui/ContentStyles/index.js +1 -2
  172. package/dist/es2019/ui/ContextPanel/index.js +1 -2
  173. package/dist/es2019/ui/ElementBrowser/InsertMenu.js +4 -5
  174. package/dist/es2019/ui/ElementBrowser/ModalElementBrowser.js +2 -3
  175. package/dist/es2019/ui/ElementBrowser/components/CategoryList.js +2 -3
  176. package/dist/es2019/ui/ElementBrowser/components/ElementList/ElementList.js +2 -3
  177. package/dist/es2019/ui/ElementBrowser/components/ElementList/EmptyState.js +1 -2
  178. package/dist/es2019/ui/ElementBrowser/components/ElementSearch.js +1 -2
  179. package/dist/es2019/ui/FloatingToolbar/styles.js +2 -3
  180. package/dist/es2019/ui/LinkSearch/LinkSearchListItem.js +3 -4
  181. package/dist/es2019/ui/PanelTextInput/styles.js +3 -4
  182. package/dist/es2019/ui/ToolbarArrowKeyNavigationProvider/index.js +27 -2
  183. package/dist/es2019/ui/ToolbarFeedback/styles.js +4 -5
  184. package/dist/es2019/ui/WithFlash/index.js +3 -4
  185. package/dist/es2019/ui/styles.js +3 -4
  186. package/dist/es2019/utils/performance/instrumented-plugin.js +5 -3
  187. package/dist/es2019/utils/performance/safer-transactions.js +8 -2
  188. package/dist/es2019/version-wrapper.js +1 -1
  189. package/dist/es2019/version.json +1 -1
  190. package/dist/esm/create-editor/ErrorBoundary.js +3 -1
  191. package/dist/esm/create-editor/ReactEditorView.js +3 -2
  192. package/dist/esm/create-editor/create-editor.js +3 -1
  193. package/dist/esm/editor.js +7 -0
  194. package/dist/esm/labs/next/full-page.js +2 -3
  195. package/dist/esm/plugins/alignment/ui/ToolbarAlignment/styles.js +1 -2
  196. package/dist/esm/plugins/block-type/commands/delete-and-move-cursor.js +58 -0
  197. package/dist/esm/plugins/block-type/commands/index.js +2 -1
  198. package/dist/esm/plugins/block-type/pm-plugins/keymap.js +7 -4
  199. package/dist/esm/plugins/block-type/ui/ToolbarBlockType/styled.js +2 -3
  200. package/dist/esm/plugins/breakout/ui/LayoutButton.js +1 -2
  201. package/dist/esm/plugins/card/styles.js +1 -2
  202. package/dist/esm/plugins/code-block/styles.js +2 -3
  203. package/dist/esm/plugins/collab-edit/styles.js +2 -3
  204. package/dist/esm/plugins/collab-edit/ui/styles.js +2 -3
  205. package/dist/esm/plugins/date/styles.js +1 -2
  206. package/dist/esm/plugins/date/ui/DatePicker/index.js +1 -2
  207. package/dist/esm/plugins/expand/ui/styles.js +14 -15
  208. package/dist/esm/plugins/extension/ui/Extension/Extension/styles.js +4 -5
  209. package/dist/esm/plugins/extension/ui/Extension/InlineExtension/styles.js +1 -2
  210. package/dist/esm/plugins/extension/ui/Extension/styles.js +5 -6
  211. package/dist/esm/plugins/extension/ui/SaveIndicator/SaveIndicator.js +2 -3
  212. package/dist/esm/plugins/extension/ui/styles.js +1 -2
  213. package/dist/esm/plugins/fake-text-cursor/styles.js +1 -2
  214. package/dist/esm/plugins/feature-flags-context/feature-flags-from-props.js +12 -12
  215. package/dist/esm/plugins/find-replace/ui/styles.js +2 -3
  216. package/dist/esm/plugins/floating-toolbar/ui/DropdownMenu.js +41 -14
  217. package/dist/esm/plugins/floating-toolbar/ui/EditorEmojiAddIcon.js +1 -2
  218. package/dist/esm/plugins/floating-toolbar/ui/ScrollButtons.js +1 -2
  219. package/dist/esm/plugins/floating-toolbar/ui/Separator.js +1 -2
  220. package/dist/esm/plugins/floating-toolbar/ui/Toolbar.js +12 -21
  221. package/dist/esm/plugins/floating-toolbar/ui/styles.js +10 -11
  222. package/dist/esm/plugins/grid/styles.js +1 -2
  223. package/dist/esm/plugins/help-dialog/ui/styles.js +9 -10
  224. package/dist/esm/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +5 -4
  225. package/dist/esm/plugins/jira-issue/nodeviews/jira-issue.js +2 -3
  226. package/dist/esm/plugins/layout/styles.js +1 -2
  227. package/dist/esm/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.js +3 -4
  228. package/dist/esm/plugins/media/styles.js +1 -2
  229. package/dist/esm/plugins/media/ui/CaptionPlaceholder/index.js +1 -2
  230. package/dist/esm/plugins/media/ui/Media/DropPlaceholder.js +2 -3
  231. package/dist/esm/plugins/media/ui/MediaLinkingToolbar.js +1 -2
  232. package/dist/esm/plugins/mentions/styles.js +1 -2
  233. package/dist/esm/plugins/mentions/ui/InviteItem/index.js +1 -2
  234. package/dist/esm/plugins/mentions/ui/InviteItem/styles.js +2 -3
  235. package/dist/esm/plugins/panel/styles.js +1 -2
  236. package/dist/esm/plugins/placeholder/styles.js +1 -2
  237. package/dist/esm/plugins/placeholder-text/styles.js +1 -2
  238. package/dist/esm/plugins/rule/styles.js +1 -2
  239. package/dist/esm/plugins/status/ui/statusPicker.js +1 -2
  240. package/dist/esm/plugins/tasks-and-decisions/styles.js +1 -2
  241. package/dist/esm/plugins/text-color/commands/change-color.js +1 -2
  242. package/dist/esm/plugins/text-color/pm-plugins/main.js +2 -2
  243. package/dist/esm/plugins/text-color/ui/ToolbarTextColor/index.js +2 -9
  244. package/dist/esm/plugins/type-ahead/pm-plugins/decorations.js +1 -2
  245. package/dist/esm/plugins/type-ahead/ui/InputQuery.js +1 -2
  246. package/dist/esm/plugins/type-ahead/ui/TypeAheadListItem.js +7 -8
  247. package/dist/esm/plugins/type-ahead/ui/TypeAheadPopup.js +1 -2
  248. package/dist/esm/plugins/unsupported-content/styles.js +1 -2
  249. package/dist/esm/ui/Addon/Dropdown/styles.js +1 -2
  250. package/dist/esm/ui/Addon/DropdownItem/styles.js +1 -2
  251. package/dist/esm/ui/Appearance/Comment/Comment.js +1 -2
  252. package/dist/esm/ui/Appearance/Comment/Toolbar.js +2 -3
  253. package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +19 -1
  254. package/dist/esm/ui/Appearance/FullPage/MainToolbar.js +2 -3
  255. package/dist/esm/ui/ChromeCollapsed/styles.js +1 -2
  256. package/dist/esm/ui/ColorPalette/Palettes/textColorPalette.js +1 -1
  257. package/dist/esm/ui/ColorPickerButton/index.js +5 -10
  258. package/dist/esm/ui/ConfigPanel/Fields/CheckboxGroup.js +1 -2
  259. package/dist/esm/ui/ConfigPanel/Fields/Expand.js +1 -2
  260. package/dist/esm/ui/ConfigPanel/Fields/Fieldset.js +1 -2
  261. package/dist/esm/ui/ConfigPanel/Fields/common/RequiredIndicator.js +1 -2
  262. package/dist/esm/ui/ConfigPanel/Header.js +2 -3
  263. package/dist/esm/ui/ConfigPanel/NestedForms/RemovableField.js +1 -2
  264. package/dist/esm/ui/ContentStyles/index.js +1 -2
  265. package/dist/esm/ui/ContextPanel/index.js +1 -2
  266. package/dist/esm/ui/ElementBrowser/InsertMenu.js +3 -4
  267. package/dist/esm/ui/ElementBrowser/ModalElementBrowser.js +2 -3
  268. package/dist/esm/ui/ElementBrowser/components/CategoryList.js +2 -3
  269. package/dist/esm/ui/ElementBrowser/components/ElementList/ElementList.js +2 -3
  270. package/dist/esm/ui/ElementBrowser/components/ElementList/EmptyState.js +1 -2
  271. package/dist/esm/ui/ElementBrowser/components/ElementSearch.js +1 -2
  272. package/dist/esm/ui/FloatingToolbar/styles.js +1 -2
  273. package/dist/esm/ui/LinkSearch/LinkSearchListItem.js +3 -4
  274. package/dist/esm/ui/PanelTextInput/styles.js +2 -3
  275. package/dist/esm/ui/ToolbarArrowKeyNavigationProvider/index.js +27 -2
  276. package/dist/esm/ui/ToolbarFeedback/styles.js +3 -4
  277. package/dist/esm/ui/WithFlash/index.js +2 -3
  278. package/dist/esm/ui/styles.js +2 -3
  279. package/dist/esm/utils/performance/instrumented-plugin.js +6 -3
  280. package/dist/esm/utils/performance/safer-transactions.js +8 -2
  281. package/dist/esm/version-wrapper.js +1 -1
  282. package/dist/esm/version.json +1 -1
  283. package/dist/types/plugins/block-type/commands/delete-and-move-cursor.d.ts +12 -0
  284. package/dist/types/plugins/block-type/commands/index.d.ts +1 -0
  285. package/dist/types/plugins/floating-toolbar/ui/DropdownMenu.d.ts +1 -0
  286. package/dist/types/plugins/text-color/pm-plugins/main.d.ts +1 -1
  287. package/dist/types/ui/ColorPalette/Palettes/textColorPalette.d.ts +1 -1
  288. package/dist/types/ui/ToolbarArrowKeyNavigationProvider/index.d.ts +2 -1
  289. package/dist/types/utils/performance/instrumented-plugin.d.ts +1 -0
  290. package/dist/types/utils/performance/safer-transactions.d.ts +2 -1
  291. package/package.json +10 -11
  292. package/report.api.md +18 -2
@@ -4,7 +4,6 @@ import _extends from "@babel/runtime/helpers/extends";
4
4
  import { jsx } from '@emotion/react';
5
5
  import AddIcon from '@atlaskit/icon/glyph/add';
6
6
  import { N300 } from '@atlaskit/theme/colors';
7
- import { token } from '@atlaskit/tokens';
8
7
  import React, { useCallback, useEffect } from 'react';
9
8
  import { FormattedMessage, injectIntl } from 'react-intl-next';
10
9
  import { avatarStyle, capitalizedStyle, mentionItemStyle, nameSectionStyle, rowStyle, ROW_SIDE_PADDING, AVATAR_HEIGHT, mentionItemSelectedStyle } from './styles';
@@ -53,7 +52,7 @@ var InviteItem = function InviteItem(_ref) {
53
52
  css: avatarStyle
54
53
  }, jsx(AddIcon, {
55
54
  label: intl.formatMessage(messages.mentionsAddLabel),
56
- primaryColor: token('color.icon.subtle', N300)
55
+ primaryColor: "var(--ds-icon-subtle, ".concat(N300, ")")
57
56
  })), jsx("div", {
58
57
  css: nameSectionStyle,
59
58
  "data-testid": "name-section"
@@ -4,12 +4,11 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
4
4
 
5
5
  import { css } from '@emotion/react';
6
6
  import { N30, N300 } from '@atlaskit/theme/colors';
7
- import { token } from '@atlaskit/tokens';
8
7
  export var ROW_SIDE_PADDING = 14;
9
8
  export var rowStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n align-items: center;\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n overflow: hidden;\n padding: 6px ", "px;\n text-overflow: ellipsis;\n vertical-align: middle;\n"])), ROW_SIDE_PADDING);
10
9
  export var AVATAR_HEIGHT = 36;
11
10
  export var avatarStyle = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: relative;\n flex: initial;\n opacity: inherit;\n width: 36px;\n height: ", "px;\n\n > span {\n width: 24px;\n height: 24px;\n padding: 6px;\n }\n"])), AVATAR_HEIGHT);
12
- export var nameSectionStyle = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n flex: 1;\n min-width: 0;\n margin-left: 14px;\n color: ", ";\n opacity: inherit;\n"])), token('color.text.subtle', N300));
11
+ export var nameSectionStyle = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n flex: 1;\n min-width: 0;\n margin-left: 14px;\n color: ", ";\n opacity: inherit;\n"])), "var(--ds-text-subtle, ".concat(N300, ")"));
13
12
  export var mentionItemStyle = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n background-color: transparent;\n display: block;\n overflow: hidden;\n list-style-type: none;\n cursor: pointer;\n"])));
14
- export var mentionItemSelectedStyle = css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n background-color: ", ";\n"])), token('color.background.neutral.subtle.hovered', N30));
13
+ export var mentionItemSelectedStyle = css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n background-color: ", ";\n"])), "var(--ds-background-neutral-subtle-hovered, ".concat(N30, ")"));
15
14
  export var capitalizedStyle = css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n text-transform: capitalize;\n"])));
@@ -5,7 +5,6 @@ var _templateObject;
5
5
  import { css } from '@emotion/react';
6
6
  import { panelSharedStyles, PanelSharedCssClassName } from '@atlaskit/editor-common/panel';
7
7
  import { SelectionStyle, getSelectionStyles, akEditorDeleteBackground, akEditorDeleteBackgroundWithOpacity, akEditorDeleteBorder, akEditorSelectedBorderSize, akEditorDeleteIconColor, akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
8
- import { token } from '@atlaskit/tokens';
9
8
  export var panelStyles = function panelStyles(props) {
10
- return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ProseMirror {\n .", " {\n cursor: pointer;\n\n /* Danger when top level node */\n &.danger {\n box-shadow: 0 0 0 ", "px\n ", ";\n background-color: ", " !important;\n\n .", " {\n color: ", " !important;\n }\n }\n }\n\n .", " {\n cursor: text;\n }\n\n /* Danger when nested node */\n .danger .", " {\n &[data-panel-type] {\n background-color: ", ";\n\n .", " {\n color: ", ";\n }\n }\n }\n\n ", ";\n }\n\n .", ".", ":not(.danger) {\n ", "\n }\n"])), PanelSharedCssClassName.prefix, akEditorSelectedBorderSize, akEditorDeleteBorder, token('color.background.danger', akEditorDeleteBackground), PanelSharedCssClassName.icon, token('color.icon.danger', akEditorDeleteIconColor), PanelSharedCssClassName.content, PanelSharedCssClassName.prefix, token('color.blanket.danger', akEditorDeleteBackgroundWithOpacity), PanelSharedCssClassName.icon, token('color.icon.danger', akEditorDeleteIconColor), panelSharedStyles(props), PanelSharedCssClassName.prefix, akEditorSelectedNodeClassName, getSelectionStyles([SelectionStyle.BoxShadow, SelectionStyle.Blanket]));
9
+ return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ProseMirror {\n .", " {\n cursor: pointer;\n\n /* Danger when top level node */\n &.danger {\n box-shadow: 0 0 0 ", "px\n ", ";\n background-color: ", " !important;\n\n .", " {\n color: ", " !important;\n }\n }\n }\n\n .", " {\n cursor: text;\n }\n\n /* Danger when nested node */\n .danger .", " {\n &[data-panel-type] {\n background-color: ", ";\n\n .", " {\n color: ", ";\n }\n }\n }\n\n ", ";\n }\n\n .", ".", ":not(.danger) {\n ", "\n }\n"])), PanelSharedCssClassName.prefix, akEditorSelectedBorderSize, akEditorDeleteBorder, "var(--ds-background-danger, ".concat(akEditorDeleteBackground, ")"), PanelSharedCssClassName.icon, "var(--ds-icon-danger, ".concat(akEditorDeleteIconColor, ")"), PanelSharedCssClassName.content, PanelSharedCssClassName.prefix, "var(--ds-blanket-danger, ".concat(akEditorDeleteBackgroundWithOpacity, ")"), PanelSharedCssClassName.icon, "var(--ds-icon-danger, ".concat(akEditorDeleteIconColor, ")"), panelSharedStyles(props), PanelSharedCssClassName.prefix, akEditorSelectedNodeClassName, getSelectionStyles([SelectionStyle.BoxShadow, SelectionStyle.Blanket]));
11
10
  };
@@ -4,5 +4,4 @@ var _templateObject;
4
4
 
5
5
  import { css } from '@emotion/react';
6
6
  import { N200 } from '@atlaskit/theme/colors';
7
- import { token } from '@atlaskit/tokens';
8
- export var placeholderStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ProseMirror .placeholder-decoration {\n color: ", ";\n width: 100%;\n pointer-events: none;\n user-select: none;\n }\n"])), token('color.text.subtlest', N200));
7
+ export var placeholderStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ProseMirror .placeholder-decoration {\n color: ", ";\n width: 100%;\n pointer-events: none;\n user-select: none;\n }\n"])), "var(--ds-text-subtlest, ".concat(N200, ")"));
@@ -5,5 +5,4 @@ var _templateObject;
5
5
  import { css } from '@emotion/react';
6
6
  import { N300 } from '@atlaskit/theme/colors';
7
7
  import { SelectionStyle, getSelectionStyles, akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
8
- import { token } from '@atlaskit/tokens';
9
- export var placeholderTextStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ProseMirror span[data-placeholder] {\n color: ", ";\n display: inline;\n }\n\n .ProseMirror span.pm-placeholder {\n display: inline;\n color: ", ";\n }\n .ProseMirror span.pm-placeholder__text {\n display: inline;\n color: ", ";\n }\n\n .ProseMirror span.pm-placeholder.", " {\n ", "\n }\n\n .ProseMirror span.pm-placeholder__text[data-placeholder]::after {\n color: ", ";\n cursor: text;\n content: attr(data-placeholder);\n display: inline;\n }\n"])), token('color.text.subtlest', N300), token('color.text.subtlest', N300), token('color.text.subtlest', N300), akEditorSelectedNodeClassName, getSelectionStyles([SelectionStyle.Background]), token('color.text.subtlest', N300));
8
+ export var placeholderTextStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ProseMirror span[data-placeholder] {\n color: ", ";\n display: inline;\n }\n\n .ProseMirror span.pm-placeholder {\n display: inline;\n color: ", ";\n }\n .ProseMirror span.pm-placeholder__text {\n display: inline;\n color: ", ";\n }\n\n .ProseMirror span.pm-placeholder.", " {\n ", "\n }\n\n .ProseMirror span.pm-placeholder__text[data-placeholder]::after {\n color: ", ";\n cursor: text;\n content: attr(data-placeholder);\n display: inline;\n }\n"])), "var(--ds-text-subtlest, ".concat(N300, ")"), "var(--ds-text-subtlest, ".concat(N300, ")"), "var(--ds-text-subtlest, ".concat(N300, ")"), akEditorSelectedNodeClassName, getSelectionStyles([SelectionStyle.Background]), "var(--ds-text-subtlest, ".concat(N300, ")"));
@@ -5,7 +5,6 @@ var _templateObject;
5
5
  import { css } from '@emotion/react';
6
6
  import { ruleSharedStyles } from '@atlaskit/editor-common/styles';
7
7
  import { akEditorLineHeight, akEditorSelectedBorderColor, akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
8
- import { token } from '@atlaskit/tokens';
9
8
  export var ruleStyles = function ruleStyles(props) {
10
- return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ProseMirror {\n ", ";\n\n hr {\n cursor: pointer;\n padding: 4px 0;\n margin: calc(", "em - 4px) 0;\n background-clip: content-box;\n\n &.", " {\n outline: none;\n background-color: ", ";\n }\n }\n }\n"])), ruleSharedStyles(props), akEditorLineHeight, akEditorSelectedNodeClassName, token('color.border.selected', akEditorSelectedBorderColor));
9
+ return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ProseMirror {\n ", ";\n\n hr {\n cursor: pointer;\n padding: 4px 0;\n margin: calc(", "em - 4px) 0;\n background-clip: content-box;\n\n &.", " {\n outline: none;\n background-color: ", ";\n }\n }\n }\n"])), ruleSharedStyles(props), akEditorLineHeight, akEditorSelectedNodeClassName, "var(--ds-border-selected, ".concat(akEditorSelectedBorderColor, ")"));
11
10
  };
@@ -25,7 +25,6 @@ import { N0 } from '@atlaskit/theme/colors';
25
25
  import withOuterListeners from '../../../ui/with-outer-listeners';
26
26
  import { DEFAULT_STATUS } from '../actions';
27
27
  import { analyticsState, createStatusAnalyticsAndFire } from '../analytics';
28
- import { token } from '@atlaskit/tokens';
29
28
  var PopupWithListeners = withOuterListeners(Popup);
30
29
  export var InputMethod;
31
30
 
@@ -35,7 +34,7 @@ export var InputMethod;
35
34
  InputMethod["enterKey"] = "enterKey";
36
35
  })(InputMethod || (InputMethod = {}));
37
36
 
38
- var pickerContainer = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background: ", ";\n padding: ", "px 0;\n border-radius: ", "px;\n box-shadow: ", ";\n input {\n text-transform: uppercase;\n }\n"])), token('elevation.surface.overlay', N0), gridSize(), borderRadius(), token('elevation.shadow.overlay', '0 0 1px rgba(9, 30, 66, 0.31), 0 4px 8px -2px rgba(9, 30, 66, 0.25)'));
37
+ var pickerContainer = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background: ", ";\n padding: ", "px 0;\n border-radius: ", "px;\n box-shadow: ", ";\n input {\n text-transform: uppercase;\n }\n"])), "var(--ds-surface-overlay, ".concat(N0, ")"), gridSize(), borderRadius(), "var(--ds-shadow-overlay, 0 0 1px rgba(9, 30, 66, 0.31), 0 4px 8px -2px rgba(9, 30, 66, 0.25))");
39
38
  export var StatusPickerWithoutAnalytcs = /*#__PURE__*/function (_React$Component) {
40
39
  _inherits(StatusPickerWithoutAnalytcs, _React$Component);
41
40
 
@@ -5,5 +5,4 @@ var _templateObject;
5
5
  import { css } from '@emotion/react';
6
6
  import { TaskDecisionSharedCssClassName } from '@atlaskit/editor-common/styles';
7
7
  import { SelectionStyle, getSelectionStyles, akEditorDeleteBackgroundWithOpacity, akEditorDeleteBorder, akEditorSelectedBorderSize, akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
8
- import { token } from '@atlaskit/tokens';
9
- export var taskDecisionStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n [data-decision-wrapper] {\n cursor: pointer;\n }\n\n .", " > [data-decision-wrapper],\n ol[data-node-type='decisionList'].", " {\n border-radius: 4px;\n ", "\n }\n\n .danger {\n .", ".", "\n > div {\n box-shadow: 0 0 0 ", "px\n ", ";\n background-color: ", ";\n &::after {\n content: none; /* reset the Blanket selection style */\n }\n }\n }\n"])), akEditorSelectedNodeClassName, akEditorSelectedNodeClassName, getSelectionStyles([SelectionStyle.BoxShadow, SelectionStyle.Blanket]), TaskDecisionSharedCssClassName.DECISION_CONTAINER, akEditorSelectedNodeClassName, akEditorSelectedBorderSize, token('color.border.danger', akEditorDeleteBorder), token('color.blanket.danger', akEditorDeleteBackgroundWithOpacity));
8
+ export var taskDecisionStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n [data-decision-wrapper] {\n cursor: pointer;\n }\n\n .", " > [data-decision-wrapper],\n ol[data-node-type='decisionList'].", " {\n border-radius: 4px;\n ", "\n }\n\n .danger {\n .", ".", "\n > div {\n box-shadow: 0 0 0 ", "px\n ", ";\n background-color: ", ";\n &::after {\n content: none; /* reset the Blanket selection style */\n }\n }\n }\n"])), akEditorSelectedNodeClassName, akEditorSelectedNodeClassName, getSelectionStyles([SelectionStyle.BoxShadow, SelectionStyle.Blanket]), TaskDecisionSharedCssClassName.DECISION_CONTAINER, akEditorSelectedNodeClassName, akEditorSelectedBorderSize, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), "var(--ds-blanket-danger, ".concat(akEditorDeleteBackgroundWithOpacity, ")"));
@@ -41,8 +41,7 @@ export var changeColor = function changeColor(color) {
41
41
  if (textColor) {
42
42
  var pluginState = pluginKey.getState(state);
43
43
  var activeColor = getActiveColor(state);
44
- var withColorAnalytics = createWithColorAnalytics(color, activeColor, // palette is a subset of paletteExpanded
45
- pluginState.paletteExpanded || pluginState.palette);
44
+ var withColorAnalytics = createWithColorAnalytics(color, activeColor, pluginState.palette);
46
45
 
47
46
  if (pluginState.disabled) {
48
47
  return false;
@@ -7,7 +7,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
7
7
 
8
8
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
9
9
  import { PluginKey } from 'prosemirror-state';
10
- import { textColorPaletteExtended } from '../../../ui/ColorPalette/Palettes/textColorPalette';
10
+ import { textColorPalette } from '../../../ui/ColorPalette/Palettes/textColorPalette';
11
11
  import { DEFAULT_BORDER_COLOR } from '../../../ui/ColorPalette/Palettes/common';
12
12
  import { DEFAULT_COLOR, getActiveColor } from '../utils/color';
13
13
  import { getDisabledState } from '../utils/disabled';
@@ -18,7 +18,7 @@ export function createInitialPluginState(editorState, pluginConfig) {
18
18
  value: defaultColor.color,
19
19
  label: defaultColor.label,
20
20
  border: DEFAULT_BORDER_COLOR
21
- }].concat(_toConsumableArray(textColorPaletteExtended));
21
+ }].concat(_toConsumableArray(textColorPalette));
22
22
  var state = {
23
23
  color: getActiveColor(editorState),
24
24
  disabled: getDisabledState(editorState),
@@ -21,7 +21,6 @@ import { defineMessages, injectIntl } from 'react-intl-next';
21
21
  import { akEditorMenuZIndex } from '@atlaskit/editor-shared-styles';
22
22
  import ExpandIcon from '@atlaskit/icon/glyph/chevron-down';
23
23
  import ColorPalette from '../../../../ui/ColorPalette';
24
- import { textColorPalette as originalTextColors } from '../../../../ui/ColorPalette/Palettes/textColorPalette';
25
24
  import Dropdown from '../../../../ui/Dropdown';
26
25
  import { expandIconWrapperStyle, wrapperStyle, separatorStyles, triggerWrapperStyles } from '../../../../ui/styles';
27
26
  import ToolbarButton, { TOOLBAR_BUTTON } from '../../../../ui/ToolbarButton';
@@ -77,20 +76,14 @@ export var ToolbarTextColor = /*#__PURE__*/function (_React$Component) {
77
76
  if (!disabled) {
78
77
  var _this$props$editorVie;
79
78
 
80
- var _this$props$pluginSta = _this.props.pluginState,
81
- palette = _this$props$pluginSta.palette,
82
- defaultColor = _this$props$pluginSta.defaultColor; // we store color names in analytics
79
+ var palette = _this.props.pluginState.palette; // we store color names in analytics
83
80
 
84
81
  var swatch = palette.find(function (sw) {
85
82
  return sw.value === color;
86
83
  });
87
- var isNewColor = color !== defaultColor && !originalTextColors.some(function (col) {
88
- return col.value === color;
89
- });
90
84
 
91
85
  _this.dispatchAnalyticsEvent(_this.buildAnalyticsSelectColor({
92
- color: (swatch ? swatch.label : color).toLowerCase(),
93
- isNewColor: isNewColor
86
+ color: (swatch ? swatch.label : color).toLowerCase()
94
87
  }));
95
88
 
96
89
  _this.handleOpenChange({
@@ -12,7 +12,6 @@ import { WrapperTypeAhead } from '../ui/WrapperTypeAhead';
12
12
  import { StatsModifier } from '../stats-modifier';
13
13
  import { getTypeAheadQuery } from '../utils';
14
14
  import { closeTypeAhead } from '../transforms/close-type-ahead';
15
- import { token } from '@atlaskit/tokens';
16
15
  export var factoryDecorations = function factoryDecorations(_ref) {
17
16
  var intl = _ref.intl,
18
17
  popupMountRef = _ref.popupMountRef,
@@ -51,7 +50,7 @@ export var factoryDecorations = function factoryDecorations(_ref) {
51
50
 
52
51
  typeaheadComponent.dataset.editorPopup = 'true';
53
52
  typeaheadComponent.dataset.typeAhead = TYPE_AHEAD_DECORATION_DATA_ATTRIBUTE;
54
- typeaheadComponent.style.color = token('color.text.accent.blue', B400);
53
+ typeaheadComponent.style.color = "var(--ds-text-accent-blue, ".concat(B400, ")");
55
54
  typeaheadComponent.style.backgroundColor = 'transparent';
56
55
 
57
56
  var onUndoRedo = function onUndoRedo(inputType) {
@@ -13,7 +13,6 @@ import { TYPE_AHEAD_DECORATION_ELEMENT_ID } from '../constants';
13
13
  import { AssistiveText } from './AssistiveText';
14
14
  import { typeAheadListMessages } from '../messages';
15
15
  import { useIntl } from 'react-intl-next';
16
- import { token } from '@atlaskit/tokens';
17
16
  import * as colors from '@atlaskit/theme/colors';
18
17
 
19
18
  var isNavigationKey = function isNavigationKey(event) {
@@ -251,7 +250,7 @@ export var InputQuery = /*#__PURE__*/React.memo(function (_ref) {
251
250
  background: 'transparent',
252
251
  border: 'none',
253
252
  '&&': {
254
- color: "".concat(token('color.link', colors.B400))
253
+ color: "".concat("var(--ds-link, ".concat(colors.B400, ")"))
255
254
  }
256
255
  });
257
256
  useLayoutEffect(function () {
@@ -13,24 +13,23 @@ import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
13
13
  import IconFallback from '../../quick-insert/assets/fallback';
14
14
  import { shortcutStyle } from '../../../ui/styles';
15
15
  import { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
16
- import { token } from '@atlaskit/tokens';
17
16
  import { useIntl } from 'react-intl-next';
18
17
  import { typeAheadListMessages } from '../messages';
19
18
  export var ICON_HEIGHT = 40;
20
19
  export var ICON_WIDTH = 40;
21
20
  export var ITEM_PADDING = 12;
22
- export var itemIcon = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\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"])), ICON_WIDTH, ICON_HEIGHT, token('color.border', 'rgba(223, 225, 229, 0.5)'), borderRadius(), ICON_WIDTH, ICON_HEIGHT);
21
+ export var itemIcon = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\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"])), ICON_WIDTH, ICON_HEIGHT, "var(--ds-border, rgba(223, 225, 229, 0.5))", borderRadius(), ICON_WIDTH, ICON_HEIGHT);
23
22
  var itemBody = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n justify-content: space-between;\n"])));
24
23
 
25
24
  var itemText = function itemText(theme) {
26
25
  return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n white-space: initial;\n color: ", ";\n .item-title {\n line-height: 1.4;\n }\n .item-description {\n font-size: ", ";\n color: ", ";\n margin-top: 3px;\n }\n"])), themed({
27
- light: token('color.text', N800),
28
- dark: token('color.text', DN600)
29
- })(theme), relativeFontSizeToBase16(12), token('color.text.subtlest', N200));
26
+ light: "var(--ds-text, ".concat(N800, ")"),
27
+ dark: "var(--ds-text, ".concat(DN600, ")")
28
+ })(theme), relativeFontSizeToBase16(12), "var(--ds-text-subtlest, ".concat(N200, ")"));
30
29
  };
31
30
 
32
31
  var itemAfter = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n flex: 0 0 auto;\n"])));
33
- var customRenderItemDivStyle = css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n overflow: hidden;\n &:hover {\n background-color: ", ";\n }\n &:focus {\n box-shadow: inset 0px 0px 0px 2px ", ";\n outline: none;\n }\n"])), token('color.background.selected', N30), token('color.border.focused', B100));
32
+ var customRenderItemDivStyle = css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n overflow: hidden;\n &:hover {\n background-color: ", ";\n }\n &:focus {\n box-shadow: inset 0px 0px 0px 2px ", ";\n outline: none;\n }\n"])), "var(--ds-background-selected, ".concat(N30, ")"), "var(--ds-border-focused, ".concat(B100, ")"));
34
33
  /**
35
34
  * This CSS emulates the desired behaviour with :focus-visible for firefox.
36
35
  * Firefox unfortunately does not register keyboard focus if user mouseDown and drag a typeahead item
@@ -39,14 +38,14 @@ var customRenderItemDivStyle = css(_templateObject5 || (_templateObject5 = _tagg
39
38
 
40
39
  var selectionFrame = {
41
40
  '& > button:focus': {
42
- boxShadow: "inset 0px 0px 0px 2px ".concat(token('color.border.focused', B100)),
41
+ boxShadow: "inset 0px 0px 0px 2px ".concat("var(--ds-border-focused, ".concat(B100, ")")),
43
42
  outline: 'none',
44
43
  '&:active': {
45
44
  boxShadow: 'none'
46
45
  }
47
46
  }
48
47
  };
49
- var selectedStyle = css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n background-color: ", ";\n"])), token('color.background.selected', N30));
48
+ var selectedStyle = css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n background-color: ", ";\n"])), "var(--ds-background-selected, ".concat(N30, ")"));
50
49
  var FallbackIcon = /*#__PURE__*/React.memo(function (_ref) {
51
50
  var label = _ref.label;
52
51
  return jsx(IconFallback, null);
@@ -15,9 +15,8 @@ import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/anal
15
15
  import { CloseSelectionOptions, TYPE_AHEAD_DECORATION_DATA_ATTRIBUTE, TYPE_AHEAD_POPUP_CONTENT_CLASS } from '../constants';
16
16
  import { TypeAheadList } from './TypeAheadList';
17
17
  import { ITEM_PADDING } from './TypeAheadListItem';
18
- import { token } from '@atlaskit/tokens';
19
18
  var DEFAULT_TYPEAHEAD_MENU_HEIGHT = 380;
20
- var typeAheadContent = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background: ", ";\n border-radius: ", "px;\n box-shadow: ", ";\n padding: ", "px 0;\n width: 320px;\n max-height: 380px; /* ~5.5 visibile items */\n overflow-y: auto;\n -ms-overflow-style: -ms-autohiding-scrollbar;\n position: relative;\n"])), token('elevation.surface.overlay', N0), borderRadius(), token('elevation.shadow.overlay', "0 0 1px ".concat(N60A, ", 0 4px 8px -2px ").concat(N50A)), gridSize() / 2);
19
+ var typeAheadContent = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background: ", ";\n border-radius: ", "px;\n box-shadow: ", ";\n padding: ", "px 0;\n width: 320px;\n max-height: 380px; /* ~5.5 visibile items */\n overflow-y: auto;\n -ms-overflow-style: -ms-autohiding-scrollbar;\n position: relative;\n"])), "var(--ds-surface-overlay, ".concat(N0, ")"), borderRadius(), "var(--ds-shadow-overlay, ".concat("0 0 1px ".concat(N60A, ", 0 4px 8px -2px ").concat(N50A), ")"), gridSize() / 2);
21
20
 
22
21
  var Highlight = function Highlight(_ref) {
23
22
  var state = _ref.state,
@@ -4,11 +4,10 @@ var _templateObject;
4
4
 
5
5
  import { css } from '@emotion/react';
6
6
  import { SelectionStyle, getSelectionStyles, akEditorDeleteBackgroundWithOpacity, akEditorSelectedBorderSize, akEditorDeleteBorder, akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
7
- import { token } from '@atlaskit/tokens';
8
7
  export var UnsupportedSharedCssClassName = {
9
8
  BLOCK_CONTAINER: 'unsupportedBlockView-content-wrap',
10
9
  INLINE_CONTAINER: 'unsupportedInlineView-content-wrap'
11
10
  };
12
11
  var inlineUnsupportedSelector = ".".concat(UnsupportedSharedCssClassName.INLINE_CONTAINER, " > span:nth-of-type(2)");
13
12
  var blockUnsupportedSelector = ".".concat(UnsupportedSharedCssClassName.BLOCK_CONTAINER, " > div");
14
- export var unsupportedStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", ", ", " {\n cursor: pointer;\n }\n\n .", "", ",\n .", "", " {\n ", "\n }\n\n .danger {\n .", "", ",\n .", "", " {\n border: ", "px solid\n ", ";\n background-color: ", ";\n }\n }\n"])), blockUnsupportedSelector, inlineUnsupportedSelector, akEditorSelectedNodeClassName, blockUnsupportedSelector, akEditorSelectedNodeClassName, inlineUnsupportedSelector, getSelectionStyles([SelectionStyle.Background, SelectionStyle.Border]), akEditorSelectedNodeClassName, blockUnsupportedSelector, akEditorSelectedNodeClassName, inlineUnsupportedSelector, akEditorSelectedBorderSize, token('color.border.danger', akEditorDeleteBorder), token('color.blanket.danger', akEditorDeleteBackgroundWithOpacity));
13
+ export var unsupportedStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", ", ", " {\n cursor: pointer;\n }\n\n .", "", ",\n .", "", " {\n ", "\n }\n\n .danger {\n .", "", ",\n .", "", " {\n border: ", "px solid\n ", ";\n background-color: ", ";\n }\n }\n"])), blockUnsupportedSelector, inlineUnsupportedSelector, akEditorSelectedNodeClassName, blockUnsupportedSelector, akEditorSelectedNodeClassName, inlineUnsupportedSelector, getSelectionStyles([SelectionStyle.Background, SelectionStyle.Border]), akEditorSelectedNodeClassName, blockUnsupportedSelector, akEditorSelectedNodeClassName, inlineUnsupportedSelector, akEditorSelectedBorderSize, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), "var(--ds-blanket-danger, ".concat(akEditorDeleteBackgroundWithOpacity, ")"));
@@ -5,5 +5,4 @@ var _templateObject;
5
5
  import { css } from '@emotion/react';
6
6
  import { borderRadius } from '@atlaskit/theme/constants';
7
7
  import { N60A } from '@atlaskit/theme/colors';
8
- import { token } from '@atlaskit/tokens';
9
- export var dropdown = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n background: ", ";\n border-radius: ", "px;\n box-shadow: ", ";\n box-sizing: border-box;\n padding: 4px 0;\n"])), token('elevation.surface.overlay', 'white'), borderRadius(), token('elevation.shadow.overlay', "0 4px 8px -2px ".concat(N60A, ", 0 0 1px ").concat(N60A)));
8
+ export var dropdown = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n background: ", ";\n border-radius: ", "px;\n box-shadow: ", ";\n box-sizing: border-box;\n padding: 4px 0;\n"])), "var(--ds-surface-overlay, white)", borderRadius(), "var(--ds-shadow-overlay, ".concat("0 4px 8px -2px ".concat(N60A, ", 0 0 1px ").concat(N60A), ")"));
@@ -4,5 +4,4 @@ var _templateObject;
4
4
 
5
5
  import { css } from '@emotion/react';
6
6
  import { N800, N20 } from '@atlaskit/theme/colors';
7
- import { token } from '@atlaskit/tokens';
8
- export var dropdownItem = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n cursor: pointer;\n text-decoration: none;\n padding: 8px 32px 8px 12px;\n color: ", ";\n > span {\n display: flex;\n margin-right: 8px;\n }\n &:hover {\n background-color: ", ";\n }\n"])), token('color.text', N800), token('color.background.neutral.subtle.hovered', N20));
7
+ export var dropdownItem = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n cursor: pointer;\n text-decoration: none;\n padding: 8px 32px 8px 12px;\n color: ", ";\n > span {\n display: flex;\n margin-right: 8px;\n }\n &:hover {\n background-color: ", ";\n }\n"])), "var(--ds-text, ".concat(N800, ")"), "var(--ds-background-neutral-subtle-hovered, ".concat(N20, ")"));
@@ -20,7 +20,6 @@ import ButtonGroup from '@atlaskit/button/button-group';
20
20
  import Button from '@atlaskit/button/custom-theme-button';
21
21
  import { borderRadius } from '@atlaskit/theme/constants';
22
22
  import { N40 } from '@atlaskit/theme/colors';
23
- import { token } from '@atlaskit/tokens';
24
23
  import Toolbar from '../../Toolbar';
25
24
  import PluginSlot from '../../PluginSlot';
26
25
  import WithPluginState from '../../WithPluginState';
@@ -40,7 +39,7 @@ import { TableControlsPadding, MainToolbar, mainToolbarCustomComponentsSlotStyle
40
39
  import { createEditorContentStyle } from '../../ContentStyles';
41
40
  var CommentEditorMargin = 14;
42
41
  var CommentEditorSmallerMargin = 8;
43
- var commentEditorStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n\n .less-margin .ProseMirror {\n margin: 12px ", "px ", "px;\n }\n\n min-width: 272px;\n /* Border + Toolbar + Footer + (Paragraph + ((Paragraph + Margin) * (DefaultLines - 1)) */\n /* calc(2px + 40px + 24px + ( 20px + (32px * 2))) */\n\n height: auto;\n background-color: ", ";\n border: 1px solid ", ";\n box-sizing: border-box;\n border-radius: ", "px;\n\n max-width: inherit;\n word-wrap: break-word;\n"])), CommentEditorSmallerMargin, CommentEditorSmallerMargin, token('color.background.input', 'white'), token('color.border', N40), borderRadius());
42
+ var commentEditorStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n\n .less-margin .ProseMirror {\n margin: 12px ", "px ", "px;\n }\n\n min-width: 272px;\n /* Border + Toolbar + Footer + (Paragraph + ((Paragraph + Margin) * (DefaultLines - 1)) */\n /* calc(2px + 40px + 24px + ( 20px + (32px * 2))) */\n\n height: auto;\n background-color: ", ";\n border: 1px solid ", ";\n box-sizing: border-box;\n border-radius: ", "px;\n\n max-width: inherit;\n word-wrap: break-word;\n"])), CommentEditorSmallerMargin, CommentEditorSmallerMargin, "var(--ds-background-input, white)", "var(--ds-border, ".concat(N40, ")"), borderRadius());
44
43
  var ContentArea = createEditorContentStyle(css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n flex-grow: 1;\n overflow-x: hidden;\n overflow-y: auto;\n line-height: 24px;\n\n /** Hack for Bitbucket to ensure entire editorView gets drop event; see ED-3294 **/\n /** Hack for table controls. Otherwise margin collapse and controls are misplaced. **/\n .ProseMirror {\n margin: 12px ", "px ", "px;\n }\n\n .gridParent {\n margin-left: ", "px;\n margin-right: ", "px;\n width: calc(100% + ", "px);\n }\n\n padding: ", "px;\n\n ", ";\n"])), CommentEditorMargin, CommentEditorMargin, CommentEditorMargin - GRID_GUTTER, CommentEditorMargin - GRID_GUTTER, CommentEditorMargin - GRID_GUTTER, TableControlsPadding, tableCommentEditorStyles));
45
44
  ContentArea.displayName = 'ContentArea';
46
45
  var secondaryToolbarStyle = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n box-sizing: border-box;\n justify-content: flex-end;\n align-items: center;\n display: flex;\n padding: 12px 1px;\n"])));
@@ -8,11 +8,10 @@ import React, { useEffect, useState } from 'react';
8
8
  import { css, jsx } from '@emotion/react';
9
9
  import { gridSize } from '@atlaskit/theme/constants';
10
10
  import { N30 } from '@atlaskit/theme/colors';
11
- import { token } from '@atlaskit/tokens';
12
11
  import { akEditorToolbarKeylineHeight, akEditorMenuZIndex } from '@atlaskit/editor-shared-styles';
13
12
  export var TableControlsPadding = 20;
14
- var mainToolbarWrapperStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n align-items: center;\n padding: ", "px ", "px 0;\n display: flex;\n height: auto;\n background-color: ", ";\n box-shadow: none;\n padding-left: ", "px;\n\n & > div {\n > :first-child:not(style),\n > style:first-child + * {\n margin-left: 0;\n }\n }\n\n .block-type-btn {\n padding-left: 0;\n }\n"])), gridSize(), gridSize(), token('elevation.surface', 'white'), TableControlsPadding);
15
- var stickyToolbarWrapperStyle = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n /* stylelint-disable declaration-block-no-duplicate-properties */\n position: relative;\n position: sticky;\n /* stylelint-enable declaration-block-no-duplicate-properties */\n padding-bottom: ", "px;\n z-index: ", ";\n transition: box-shadow ease-in-out 0.2s;\n &.show-keyline {\n box-shadow: 0 ", "px 0 0\n ", ";\n }\n"])), gridSize(), akEditorMenuZIndex, akEditorToolbarKeylineHeight, token('color.border', N30));
13
+ var mainToolbarWrapperStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n align-items: center;\n padding: ", "px ", "px 0;\n display: flex;\n height: auto;\n background-color: ", ";\n box-shadow: none;\n padding-left: ", "px;\n\n & > div {\n > :first-child:not(style),\n > style:first-child + * {\n margin-left: 0;\n }\n }\n\n .block-type-btn {\n padding-left: 0;\n }\n"])), gridSize(), gridSize(), "var(--ds-surface, white)", TableControlsPadding);
14
+ var stickyToolbarWrapperStyle = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n /* stylelint-disable declaration-block-no-duplicate-properties */\n position: relative;\n position: sticky;\n /* stylelint-enable declaration-block-no-duplicate-properties */\n padding-bottom: ", "px;\n z-index: ", ";\n transition: box-shadow ease-in-out 0.2s;\n &.show-keyline {\n box-shadow: 0 ", "px 0 0\n ", ";\n }\n"])), gridSize(), akEditorMenuZIndex, akEditorToolbarKeylineHeight, "var(--ds-border, ".concat(N30, ")"));
16
15
 
17
16
  var StickyToolbar = function StickyToolbar(props) {
18
17
  var _useState = useState(0),
@@ -73,13 +73,31 @@ export var EditorToolbar = /*#__PURE__*/React.memo(function (props) {
73
73
  };
74
74
  }
75
75
  });
76
+
77
+ var isShortcutToFocusToolbar = function isShortcutToFocusToolbar(event) {
78
+ //Alt + F9 to reach first element in this main toolbar
79
+ return event.altKey && (event.key === 'F9' || event.keyCode === 120);
80
+ };
81
+
82
+ var handleEscape = function handleEscape(event) {
83
+ var _props$editorView;
84
+
85
+ if (!((_props$editorView = props.editorView) !== null && _props$editorView !== void 0 && _props$editorView.hasFocus())) {
86
+ var _props$editorView2;
87
+
88
+ (_props$editorView2 = props.editorView) === null || _props$editorView2 === void 0 ? void 0 : _props$editorView2.focus();
89
+ }
90
+ };
91
+
76
92
  return jsx(ContextPanelConsumer, null, function (_ref) {
77
93
  var _props$featureFlags8, _props$featureFlags9, _props$featureFlags10;
78
94
 
79
95
  var contextPanelWidth = _ref.width;
80
96
  return jsx(ToolbarArrowKeyNavigationProvider, {
81
97
  editorView: props.editorView,
82
- childComponentSelector: "[data-testid='ak-editor-main-toolbar']"
98
+ childComponentSelector: "[data-testid='ak-editor-main-toolbar']",
99
+ isShortcutToFocusToolbar: isShortcutToFocusToolbar,
100
+ handleEscape: handleEscape
83
101
  }, jsx("div", {
84
102
  css: mainToolbarStyle(props.showKeyline || contextPanelWidth > 0, !!((_props$featureFlags8 = props.featureFlags) !== null && _props$featureFlags8 !== void 0 && _props$featureFlags8.twoLineEditorToolbar)),
85
103
  "data-testid": "ak-editor-main-toolbar"
@@ -4,15 +4,14 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
4
4
 
5
5
  import { css } from '@emotion/react';
6
6
  import { N30 } from '@atlaskit/theme/colors';
7
- import { token } from '@atlaskit/tokens';
8
7
  import { gridSize } from '@atlaskit/theme/constants';
9
8
  import { akEditorMenuZIndex, akEditorSwoopCubicBezier, akEditorToolbarKeylineHeight, akEditorMobileMaxWidth } from '@atlaskit/editor-shared-styles';
10
9
  export var MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT = 868;
11
10
  var toolbarLineHeight = 56; // box-shadow is overriden by the mainToolbar
12
11
 
13
- var mainToolbarWithKeyline = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n box-shadow: 0 ", "px 0 0\n ", ";\n"])), akEditorToolbarKeylineHeight, token('color.border', N30));
12
+ var mainToolbarWithKeyline = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n box-shadow: 0 ", "px 0 0\n ", ";\n"])), akEditorToolbarKeylineHeight, "var(--ds-border, ".concat(N30, ")"));
14
13
  var mainToolbarTwoLineStyle = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n @media (max-width: ", "px) {\n flex-wrap: wrap;\n height: calc(", "px * 2);\n }\n"])), MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, toolbarLineHeight);
15
- var mainToolbar = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n position: relative;\n align-items: center;\n box-shadow: none;\n transition: box-shadow 200ms ", ";\n z-index: ", ";\n display: flex;\n height: ", "px;\n flex-shrink: 0;\n // TODO: https://product-fabric.atlassian.net/browse/DSP-4456\n background-color: ", ";\n\n & object {\n height: 0 !important;\n }\n\n @media (max-width: ", "px) {\n display: grid;\n height: calc(", "px * 2);\n }\n"])), akEditorSwoopCubicBezier, akEditorMenuZIndex, toolbarLineHeight, token('elevation.surface', 'white'), akEditorMobileMaxWidth, toolbarLineHeight);
14
+ var mainToolbar = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n position: relative;\n align-items: center;\n box-shadow: none;\n transition: box-shadow 200ms ", ";\n z-index: ", ";\n display: flex;\n height: ", "px;\n flex-shrink: 0;\n // TODO: https://product-fabric.atlassian.net/browse/DSP-4456\n background-color: ", ";\n\n & object {\n height: 0 !important;\n }\n\n @media (max-width: ", "px) {\n display: grid;\n height: calc(", "px * 2);\n }\n"])), akEditorSwoopCubicBezier, akEditorMenuZIndex, toolbarLineHeight, "var(--ds-surface, white)", akEditorMobileMaxWidth, toolbarLineHeight);
16
15
  export var mainToolbarStyle = function mainToolbarStyle(showKeyline, twoLineEditorToolbar) {
17
16
  return [mainToolbar, showKeyline && mainToolbarWithKeyline, twoLineEditorToolbar && mainToolbarTwoLineStyle];
18
17
  };
@@ -6,5 +6,4 @@ import { css } from '@emotion/react';
6
6
  import { akEditorSubtleAccent, relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
7
7
  import { borderRadius } from '@atlaskit/theme/constants';
8
8
  import { N300, N50 } from '@atlaskit/theme/colors';
9
- import { token } from '@atlaskit/tokens';
10
- export var inputStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n /* Normal .className gets overridden by input[type=text] hence this hack to produce input.className */\n input& {\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: ", "px;\n box-sizing: border-box;\n height: 40px;\n padding-left: 20px;\n padding-top: 12px;\n padding-bottom: 12px;\n font-size: ", ";\n width: 100%;\n font-weight: 400;\n line-height: 1.42857142857143;\n letter-spacing: -0.005em;\n color: ", ";\n\n &:hover {\n background-color: ", ";\n border-color: ", ";\n cursor: text;\n }\n }\n"])), token('color.background.input', 'white'), token('color.border.input', akEditorSubtleAccent), borderRadius(), relativeFontSizeToBase16(14), token('color.text.subtlest', N300), token('color.background.input.hovered', 'white'), token('color.border.input', N50));
9
+ export var inputStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n /* Normal .className gets overridden by input[type=text] hence this hack to produce input.className */\n input& {\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: ", "px;\n box-sizing: border-box;\n height: 40px;\n padding-left: 20px;\n padding-top: 12px;\n padding-bottom: 12px;\n font-size: ", ";\n width: 100%;\n font-weight: 400;\n line-height: 1.42857142857143;\n letter-spacing: -0.005em;\n color: ", ";\n\n &:hover {\n background-color: ", ";\n border-color: ", ";\n cursor: text;\n }\n }\n"])), "var(--ds-background-input, white)", "var(--ds-border-input, ".concat(akEditorSubtleAccent, ")"), borderRadius(), relativeFontSizeToBase16(14), "var(--ds-text-subtlest, ".concat(N300, ")"), "var(--ds-background-input-hovered, white)", "var(--ds-border-input, ".concat(N50, ")"));
@@ -1 +1 @@
1
- export { textColorPalette, textColorPaletteExtended } from '@atlaskit/editor-common/ui-color';
1
+ export { textColorPalette } from '@atlaskit/editor-common/ui-color';
@@ -1,7 +1,7 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
2
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
3
3
 
4
- var _templateObject, _templateObject2;
4
+ var _templateObject, _templateObject2, _templateObject3;
5
5
 
6
6
  /** @jsx jsx */
7
7
  import React from 'react';
@@ -15,8 +15,8 @@ import ColorPalette from '../ColorPalette';
15
15
  import { DEFAULT_BORDER_COLOR } from '../ColorPalette/Palettes/common';
16
16
  import { withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-next';
17
17
  import { editorAnalyticsChannel } from '../../plugins/analytics/consts';
18
- import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '../../plugins/analytics/types'; // helps adjusts position of popup
19
-
18
+ import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '../../plugins/analytics/types';
19
+ // helps adjusts position of popup
20
20
  var colorPickerButtonWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n"]))); // Control the size of color picker buttons and preview
21
21
  // TODO: https://product-fabric.atlassian.net/browse/DSP-4134
22
22
 
@@ -104,6 +104,7 @@ var ColorPickerButton = function ColorPickerButton(props) {
104
104
  };
105
105
 
106
106
  var title = props.title || '';
107
+ var buttonStyle = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n padding: 6px;\n background-color: ", ";\n &:before {\n display: flex;\n justify-content: center;\n align-items: center;\n align-self: center;\n content: '';\n border: 1px solid ", ";\n border-radius: ", "px;\n background-color: ", ";\n width: ", "px;\n height: ", "px;\n padding: 0;\n }\n "])), "var(--ds-background-neutral, transparent)", DEFAULT_BORDER_COLOR, borderRadius(), props.currentColor || 'transparent', ((_props$size = props.size) === null || _props$size === void 0 ? void 0 : _props$size.width) || 14, ((_props$size2 = props.size) === null || _props$size2 === void 0 ? void 0 : _props$size2.height) || 14);
107
108
  return jsx("div", {
108
109
  css: colorPickerButtonWrapper
109
110
  }, jsx(Tooltip, {
@@ -114,13 +115,7 @@ var ColorPickerButton = function ColorPickerButton(props) {
114
115
  "aria-label": title,
115
116
  spacing: "compact",
116
117
  onClick: togglePopup,
117
- style: {
118
- backgroundColor: props.currentColor || 'transparent',
119
- border: "1px solid ".concat(DEFAULT_BORDER_COLOR),
120
- width: "".concat(((_props$size = props.size) === null || _props$size === void 0 ? void 0 : _props$size.width) || 20, "px"),
121
- height: "".concat(((_props$size2 = props.size) === null || _props$size2 === void 0 ? void 0 : _props$size2.height) || 20, "px"),
122
- padding: 0
123
- }
118
+ css: buttonStyle
124
119
  })), renderPopup());
125
120
  };
126
121
 
@@ -11,7 +11,6 @@ import { Fragment, useCallback } from 'react';
11
11
  import { css, jsx } from '@emotion/react';
12
12
  import { Checkbox as AKCheckbox } from '@atlaskit/checkbox';
13
13
  import { Field, Fieldset as AKFieldset } from '@atlaskit/form';
14
- import { token } from '@atlaskit/tokens';
15
14
  import { ValidationError } from '../types';
16
15
  import FieldMessages from '../FieldMessages';
17
16
 
@@ -21,7 +20,7 @@ function _validate(value, isRequired) {
21
20
  }
22
21
  }
23
22
 
24
- var requiredIndicator = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n color: ", ";\n"])), token('color.text.danger', '#bf2600'));
23
+ var requiredIndicator = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n color: ", ";\n"])), "var(--ds-text-danger, #bf2600)");
25
24
 
26
25
  function CheckboxGroupInner(_ref) {
27
26
  var label = _ref.label,
@@ -8,13 +8,12 @@ import React, { useState } from 'react';
8
8
  import { css, jsx } from '@emotion/react';
9
9
  import { injectIntl } from 'react-intl-next';
10
10
  import { N40 } from '@atlaskit/theme/colors';
11
- import { token } from '@atlaskit/tokens';
12
11
  import ChevronDownIcon from '@atlaskit/icon/glyph/chevron-down';
13
12
  import ChevronRightIcon from '@atlaskit/icon/glyph/chevron-right';
14
13
  import Button from '@atlaskit/button';
15
14
  import { gridSize } from '@atlaskit/theme/constants';
16
15
  import { messages } from '../messages';
17
- export var expandContainer = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n border-bottom: 1px solid ", ";\n"])), token('color.border', N40));
16
+ export var expandContainer = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n border-bottom: 1px solid ", ";\n"])), "var(--ds-border, ".concat(N40, ")"));
18
17
  export var expandControl = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n height: ", "px;\n justify-content: center;\n padding-right: ", "px;\n"])), gridSize() * 6, gridSize());
19
18
  var chevronContainer = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n\n & > button {\n width: ", "px;\n height: ", "px;\n }\n"])), gridSize() * 3, gridSize() * 3);
20
19
  var labelContainer = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n width: 100%;\n align-items: center;\n display: flex;\n font-weight: 500;\n"])));
@@ -31,8 +31,7 @@ import { messages } from '../messages';
31
31
  import { getNameFromDuplicateField, isDuplicateField } from '../utils';
32
32
  import { gridSize } from '@atlaskit/theme/constants';
33
33
  import { N40A } from '@atlaskit/theme/colors';
34
- import { token } from '@atlaskit/tokens';
35
- var actionsWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n border-top: 1px solid ", ";\n margin-top: ", "px;\n padding-top: ", "px;\n"])), token('color.border', N40A), gridSize() * 2, gridSize() * 2);
34
+ var actionsWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n border-top: 1px solid ", ";\n margin-top: ", "px;\n padding-top: ", "px;\n"])), "var(--ds-border, ".concat(N40A, ")"), gridSize() * 2, gridSize() * 2);
36
35
 
37
36
  var populateFromParameters = function populateFromParameters(parameters, fields) {
38
37
  if (Object.keys(parameters).length) {
@@ -4,5 +4,4 @@ var _templateObject;
4
4
 
5
5
  import { css } from '@emotion/react';
6
6
  import { R500 } from '@atlaskit/theme/colors';
7
- import { token } from '@atlaskit/tokens';
8
- export var requiredIndicator = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n color: ", ";\n"])), token('color.text.danger', R500));
7
+ export var requiredIndicator = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n color: ", ";\n"])), "var(--ds-text-danger, ".concat(R500, ")"));
@@ -11,7 +11,6 @@ import Button from '@atlaskit/button/custom-theme-button';
11
11
  import CrossIcon from '@atlaskit/icon/glyph/cross';
12
12
  import { borderRadius } from '@atlaskit/theme/constants';
13
13
  import { N200 } from '@atlaskit/theme/colors';
14
- import { token } from '@atlaskit/tokens';
15
14
  import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
16
15
  import { messages } from './messages';
17
16
  var iconWidth = 40;
@@ -19,10 +18,10 @@ var buttonWidth = 40;
19
18
  var margin = 16;
20
19
  var gapSizeForEllipsis = iconWidth + buttonWidth + margin * 2;
21
20
  var item = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n margin-bottom: 24px;\n"])));
22
- var itemIcon = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\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, token('color.border', 'rgba(223, 225, 229, 0.5)'), borderRadius(), iconWidth, iconWidth);
21
+ var itemIcon = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\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))", borderRadius(), iconWidth, iconWidth);
23
22
  var itemBody = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\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);
24
23
  var centeredItemTitle = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n"])));
25
- var itemText = css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\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"])), relativeFontSizeToBase16(11.67), token('color.text.subtlest', N200));
24
+ var itemText = css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\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"])), relativeFontSizeToBase16(11.67), "var(--ds-text-subtlest, ".concat(N200, ")"));
26
25
  var descriptionStyle = css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n margin-bottom: 24px;\n"])));
27
26
  var closeButtonWrapper = css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n width: ", "px;\n text-align: right;\n"])), buttonWidth);
28
27
 
@@ -10,11 +10,10 @@ import { gridSize } from '@atlaskit/theme/constants';
10
10
  import CrossCircleIcon from '@atlaskit/icon/glyph/cross-circle';
11
11
  import Tooltip from '@atlaskit/tooltip';
12
12
  import { N80, R300 } from '@atlaskit/theme/colors';
13
- import { token } from '@atlaskit/tokens';
14
13
  import { messages } from '../messages';
15
14
  var removableFieldWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n margin-bottom: 0;\n"])));
16
15
  var wrapperWithMarginBottom = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin-bottom: ", "px;\n"])), gridSize() * 2);
17
- var removeButtonWrapper = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n position: absolute;\n right: 0;\n top: 0;\n cursor: pointer;\n\n color: ", ";\n\n &:hover {\n color: ", ";\n }\n"])), token('color.icon.subtle', N80), token('color.icon.danger', R300));
16
+ var removeButtonWrapper = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\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(N80, ")"), "var(--ds-icon-danger, ".concat(R300, ")"));
18
17
 
19
18
  var RemovableField = function RemovableField(_ref) {
20
19
  var _children$props$field;