@atlaskit/editor-common 78.11.4 → 78.11.6

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 (367) hide show
  1. package/.eslintrc.js +8 -0
  2. package/CHANGELOG.md +18 -0
  3. package/afm-cc/tsconfig.json +3 -0
  4. package/dist/cjs/__tests_external__/page-objects/Editor.js +1 -1
  5. package/dist/cjs/__tests_external__/page-objects/EditorSmartLink.js +1 -1
  6. package/dist/cjs/__tests_external__/page-objects/Renderer.js +1 -1
  7. package/dist/cjs/analytics/types/enums.js +1 -0
  8. package/dist/cjs/analytics/types/table-events.js +1 -0
  9. package/dist/cjs/annotation/index.js +1 -1
  10. package/dist/cjs/card/MediaAndEmbedsToolbar/index.js +2 -2
  11. package/dist/cjs/card/index.js +2 -2
  12. package/dist/cjs/clipboard/index.js +2 -2
  13. package/dist/cjs/collab/index.js +40 -10
  14. package/dist/cjs/element-browser/ElementBrowser.js +3 -3
  15. package/dist/cjs/element-browser/components/CategoryList.js +2 -2
  16. package/dist/cjs/element-browser/components/ElementBrowserLoader.js +2 -2
  17. package/dist/cjs/element-browser/components/ElementList/ElementList.js +92 -15
  18. package/dist/cjs/element-browser/components/ElementList/EmptyState.js +6 -5
  19. package/dist/cjs/element-browser/components/ElementSearch.js +5 -6
  20. package/dist/cjs/element-browser/components/StatelessElementBrowser.js +2 -2
  21. package/dist/cjs/element-browser/hooks/use-container-width.js +2 -2
  22. package/dist/cjs/extensibility/Extension/Extension/index.js +2 -2
  23. package/dist/cjs/extensibility/Extension/Extension/styles.js +3 -3
  24. package/dist/cjs/extensibility/Extension/Lozenge.js +1 -1
  25. package/dist/cjs/extensibility/Extension/styles.js +1 -1
  26. package/dist/cjs/extensibility/Extension.js +3 -3
  27. package/dist/cjs/extensibility/ExtensionComponent.js +3 -4
  28. package/dist/cjs/extensibility/MultiBodiedExtension/index.js +2 -2
  29. package/dist/cjs/extensibility/extensionNodeView.js +1 -1
  30. package/dist/cjs/extensibility/index.js +2 -2
  31. package/dist/cjs/icons/index.js +2 -2
  32. package/dist/cjs/keymaps/index.js +10 -7
  33. package/dist/cjs/link/LinkPicker/EditorLinkPicker/index.js +2 -2
  34. package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +4 -4
  35. package/dist/cjs/link/LinkSearch/LinkSearchList.js +15 -7
  36. package/dist/cjs/link/LinkSearch/LinkSearchListItem.js +4 -4
  37. package/dist/cjs/link/LinkSearch/ToolbarComponents.js +17 -6
  38. package/dist/cjs/link/LinkSearch/index.js +1 -2
  39. package/dist/cjs/link/LinkSearch/withActivityProvider.js +1 -1
  40. package/dist/cjs/link/index.js +2 -2
  41. package/dist/cjs/media-inline/styles.js +2 -0
  42. package/dist/cjs/monitoring/error.js +3 -3
  43. package/dist/cjs/preset/editor-commands.js +1 -1
  44. package/dist/cjs/provider-factory/with-providers.js +1 -1
  45. package/dist/cjs/quick-insert/assets/index.js +2 -2
  46. package/dist/cjs/react-node-view/getInlineNodeViewProducer.js +1 -0
  47. package/dist/cjs/resizer/Resizer.js +8 -11
  48. package/dist/cjs/safe-plugin/index.js +1 -1
  49. package/dist/cjs/selection/gap-cursor/selection.js +1 -1
  50. package/dist/cjs/selection/gap-cursor/styles.js +12 -3
  51. package/dist/cjs/selection-based-node-view/SelectionBasedNodeView.js +1 -1
  52. package/dist/cjs/styles/shared/annotation.js +18 -4
  53. package/dist/cjs/styles/shared/block-marks.js +1 -0
  54. package/dist/cjs/styles/shared/blockquote.js +29 -4
  55. package/dist/cjs/styles/shared/code-block.js +1 -0
  56. package/dist/cjs/styles/shared/code-mark.js +8 -3
  57. package/dist/cjs/styles/shared/column-layout.js +17 -3
  58. package/dist/cjs/styles/shared/date.js +4 -3
  59. package/dist/cjs/styles/shared/embedCard.js +19 -5
  60. package/dist/cjs/styles/shared/expand.js +3 -5
  61. package/dist/cjs/styles/shared/grid.js +28 -4
  62. package/dist/cjs/styles/shared/headings.js +34 -3
  63. package/dist/cjs/styles/shared/indentation.js +28 -4
  64. package/dist/cjs/styles/shared/link.js +5 -4
  65. package/dist/cjs/styles/shared/lists.js +2 -0
  66. package/dist/cjs/styles/shared/media-single.js +39 -3
  67. package/dist/cjs/styles/shared/panel.js +6 -3
  68. package/dist/cjs/styles/shared/paragraph.js +11 -4
  69. package/dist/cjs/styles/shared/plugins.js +30 -7
  70. package/dist/cjs/styles/shared/resizer.js +5 -3
  71. package/dist/cjs/styles/shared/rule.js +10 -4
  72. package/dist/cjs/styles/shared/shadow.js +31 -3
  73. package/dist/cjs/styles/shared/smartCard.js +2 -0
  74. package/dist/cjs/styles/shared/table.js +2 -0
  75. package/dist/cjs/styles/shared/tableCell.js +2 -4
  76. package/dist/cjs/styles/shared/text-color.js +8 -4
  77. package/dist/cjs/styles/shared/unsupported-content.js +2 -0
  78. package/dist/cjs/styles/shared/whitespace.js +4 -4
  79. package/dist/cjs/ui/Announcer/announcer.js +4 -2
  80. package/dist/cjs/ui/BaseTheme/index.js +2 -2
  81. package/dist/cjs/ui/Caption/index.js +1 -1
  82. package/dist/cjs/ui/ContextPanel/context.js +1 -1
  83. package/dist/cjs/ui/DropList/index.js +2 -2
  84. package/dist/cjs/ui/Emoji/index.js +3 -3
  85. package/dist/cjs/ui/ErrorBoundary/index.js +1 -1
  86. package/dist/cjs/ui/Expand/index.js +3 -3
  87. package/dist/cjs/ui/IntlErrorBoundary/index.js +1 -1
  88. package/dist/cjs/ui/IntlProviderIfMissingWrapper/index.js +2 -2
  89. package/dist/cjs/ui/Layer/index.js +3 -4
  90. package/dist/cjs/ui/MediaSingle/styled.js +16 -8
  91. package/dist/cjs/ui/Mention/index.js +3 -3
  92. package/dist/cjs/ui/Mention/mention-with-profilecard.js +2 -2
  93. package/dist/cjs/ui/Mention/mention-with-providers.js +3 -3
  94. package/dist/cjs/ui/MultiBodiedExtension/index.js +1 -2
  95. package/dist/cjs/ui/OverflowShadow/index.js +1 -1
  96. package/dist/cjs/ui/PanelTextInput/index.js +1 -1
  97. package/dist/cjs/ui/Popup/index.js +1 -1
  98. package/dist/cjs/ui/PortalProvider/index.js +1 -1
  99. package/dist/cjs/ui/ResizerLegacy/index.js +1 -1
  100. package/dist/cjs/ui/ResizerLegacy/styled.js +1 -0
  101. package/dist/cjs/ui/UnsupportedBlock/index.js +3 -3
  102. package/dist/cjs/ui/UnsupportedInline/index.js +18 -5
  103. package/dist/cjs/ui/WidthProvider/index.js +2 -2
  104. package/dist/cjs/ui/WithCreateAnalyticsEvent/index.js +1 -1
  105. package/dist/cjs/ui/clear-next-sibling-margin-top.js +12 -5
  106. package/dist/cjs/ui/index.js +2 -2
  107. package/dist/cjs/ui/with-outer-listeners.js +3 -3
  108. package/dist/cjs/ui-color/ColorPalette/Color/index.js +3 -3
  109. package/dist/cjs/ui-color/ColorPalette/Color/styles.js +21 -5
  110. package/dist/cjs/ui-menu/ArrowKeyNavigationProvider/ColorPaletteArrowKeyNavigationProvider/index.js +2 -2
  111. package/dist/cjs/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.js +2 -2
  112. package/dist/cjs/ui-menu/ColorPickerButton/index.js +35 -7
  113. package/dist/cjs/ui-menu/Dropdown/index.js +3 -3
  114. package/dist/cjs/ui-menu/DropdownContainer/index.js +2 -2
  115. package/dist/cjs/ui-menu/DropdownMenu/index.js +3 -4
  116. package/dist/cjs/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +2 -2
  117. package/dist/cjs/ui-menu/ToolbarButton/index.js +2 -2
  118. package/dist/cjs/ui-menu/index.js +2 -2
  119. package/dist/cjs/ui-react/with-react-editor-view-outer-listeners.js +3 -3
  120. package/dist/cjs/utils/imageLoader.js +3 -3
  121. package/dist/cjs/with-plugin-state/index.js +1 -1
  122. package/dist/es2019/analytics/types/enums.js +1 -0
  123. package/dist/es2019/analytics/types/table-events.js +1 -0
  124. package/dist/es2019/card/MediaAndEmbedsToolbar/index.js +1 -0
  125. package/dist/es2019/collab/index.js +36 -38
  126. package/dist/es2019/element-browser/components/ElementList/ElementList.js +83 -94
  127. package/dist/es2019/element-browser/components/ElementList/EmptyState.js +6 -5
  128. package/dist/es2019/element-browser/components/ElementSearch.js +3 -4
  129. package/dist/es2019/extensibility/Extension/Extension/styles.js +4 -4
  130. package/dist/es2019/extensibility/Extension/styles.js +1 -1
  131. package/dist/es2019/extensibility/ExtensionComponent.js +0 -1
  132. package/dist/es2019/extensions/types/field-definitions.js +1 -0
  133. package/dist/es2019/keymaps/index.js +7 -11
  134. package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -1
  135. package/dist/es2019/link/LinkSearch/LinkSearchList.js +14 -14
  136. package/dist/es2019/link/LinkSearch/LinkSearchListItem.js +2 -1
  137. package/dist/es2019/link/LinkSearch/ToolbarComponents.js +17 -18
  138. package/dist/es2019/link/LinkSearch/index.js +0 -1
  139. package/dist/es2019/media-inline/media-inline-image-card.js +0 -1
  140. package/dist/es2019/media-inline/styles.js +2 -0
  141. package/dist/es2019/media-inline/views/icon-wrapper.js +0 -1
  142. package/dist/es2019/monitoring/error.js +1 -1
  143. package/dist/es2019/react-node-view/getInlineNodeViewProducer.js +1 -0
  144. package/dist/es2019/resizer/Resizer.js +2 -3
  145. package/dist/es2019/selection/gap-cursor/styles.js +11 -9
  146. package/dist/es2019/styles/shared/annotation.js +13 -12
  147. package/dist/es2019/styles/shared/block-marks.js +1 -0
  148. package/dist/es2019/styles/shared/blockquote.js +27 -34
  149. package/dist/es2019/styles/shared/code-block.js +1 -0
  150. package/dist/es2019/styles/shared/code-mark.js +5 -5
  151. package/dist/es2019/styles/shared/column-layout.js +15 -17
  152. package/dist/es2019/styles/shared/date.js +4 -4
  153. package/dist/es2019/styles/shared/embedCard.js +17 -21
  154. package/dist/es2019/styles/shared/expand.js +3 -4
  155. package/dist/es2019/styles/shared/grid.js +27 -31
  156. package/dist/es2019/styles/shared/headings.js +36 -35
  157. package/dist/es2019/styles/shared/indentation.js +26 -20
  158. package/dist/es2019/styles/shared/link.js +4 -4
  159. package/dist/es2019/styles/shared/lists.js +2 -0
  160. package/dist/es2019/styles/shared/media-single.js +42 -65
  161. package/dist/es2019/styles/shared/panel.js +6 -6
  162. package/dist/es2019/styles/shared/paragraph.js +10 -9
  163. package/dist/es2019/styles/shared/plugins.js +29 -34
  164. package/dist/es2019/styles/shared/resizer.js +8 -3
  165. package/dist/es2019/styles/shared/rule.js +9 -8
  166. package/dist/es2019/styles/shared/shadow.js +35 -65
  167. package/dist/es2019/styles/shared/smartCard.js +2 -0
  168. package/dist/es2019/styles/shared/table.js +2 -0
  169. package/dist/es2019/styles/shared/tableCell.js +1 -3
  170. package/dist/es2019/styles/shared/text-color.js +7 -8
  171. package/dist/es2019/styles/shared/unsupported-content.js +2 -0
  172. package/dist/es2019/styles/shared/whitespace.js +4 -4
  173. package/dist/es2019/ui/Announcer/announcer.js +2 -0
  174. package/dist/es2019/ui/ContextPanel/context.js +1 -0
  175. package/dist/es2019/ui/DropList/index.js +1 -1
  176. package/dist/es2019/ui/Expand/index.js +3 -4
  177. package/dist/es2019/ui/Layer/index.js +0 -1
  178. package/dist/es2019/ui/MediaSingle/styled.js +37 -31
  179. package/dist/es2019/ui/MultiBodiedExtension/index.js +1 -3
  180. package/dist/es2019/ui/ResizerLegacy/styled.js +2 -0
  181. package/dist/es2019/ui/UnsupportedBlock/index.js +2 -2
  182. package/dist/es2019/ui/UnsupportedInline/index.js +15 -15
  183. package/dist/es2019/ui/clear-next-sibling-margin-top.js +11 -9
  184. package/dist/es2019/ui-color/ColorPalette/Color/styles.js +20 -24
  185. package/dist/es2019/ui-menu/ColorPickerButton/index.js +34 -35
  186. package/dist/es2019/ui-menu/DropdownMenu/index.js +0 -1
  187. package/dist/es2019/utils/dom.js +1 -0
  188. package/dist/es2019/with-plugin-state/index.js +1 -0
  189. package/dist/esm/__tests_external__/page-objects/Editor.js +1 -1
  190. package/dist/esm/__tests_external__/page-objects/EditorSmartLink.js +1 -1
  191. package/dist/esm/__tests_external__/page-objects/Renderer.js +1 -1
  192. package/dist/esm/analytics/types/enums.js +1 -0
  193. package/dist/esm/analytics/types/table-events.js +1 -0
  194. package/dist/esm/annotation/index.js +1 -1
  195. package/dist/esm/card/MediaAndEmbedsToolbar/index.js +1 -0
  196. package/dist/esm/collab/index.js +40 -8
  197. package/dist/esm/element-browser/ElementBrowser.js +1 -1
  198. package/dist/esm/element-browser/components/ElementList/ElementList.js +90 -13
  199. package/dist/esm/element-browser/components/ElementList/EmptyState.js +6 -5
  200. package/dist/esm/element-browser/components/ElementSearch.js +3 -4
  201. package/dist/esm/extensibility/Extension/Extension/styles.js +4 -4
  202. package/dist/esm/extensibility/Extension/Lozenge.js +1 -1
  203. package/dist/esm/extensibility/Extension/styles.js +1 -1
  204. package/dist/esm/extensibility/Extension.js +1 -1
  205. package/dist/esm/extensibility/ExtensionComponent.js +1 -2
  206. package/dist/esm/extensibility/extensionNodeView.js +1 -1
  207. package/dist/esm/extensions/types/field-definitions.js +1 -0
  208. package/dist/esm/keymaps/index.js +7 -5
  209. package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +2 -2
  210. package/dist/esm/link/LinkSearch/LinkSearchList.js +15 -6
  211. package/dist/esm/link/LinkSearch/LinkSearchListItem.js +3 -2
  212. package/dist/esm/link/LinkSearch/ToolbarComponents.js +17 -5
  213. package/dist/esm/link/LinkSearch/index.js +1 -2
  214. package/dist/esm/link/LinkSearch/withActivityProvider.js +1 -1
  215. package/dist/esm/media-inline/media-inline-image-card.js +0 -1
  216. package/dist/esm/media-inline/styles.js +2 -0
  217. package/dist/esm/media-inline/views/icon-wrapper.js +0 -1
  218. package/dist/esm/monitoring/error.js +1 -1
  219. package/dist/esm/preset/editor-commands.js +1 -1
  220. package/dist/esm/provider-factory/with-providers.js +1 -1
  221. package/dist/esm/react-node-view/getInlineNodeViewProducer.js +1 -0
  222. package/dist/esm/resizer/Resizer.js +2 -5
  223. package/dist/esm/safe-plugin/index.js +1 -1
  224. package/dist/esm/selection/gap-cursor/selection.js +1 -1
  225. package/dist/esm/selection/gap-cursor/styles.js +12 -3
  226. package/dist/esm/selection-based-node-view/SelectionBasedNodeView.js +1 -1
  227. package/dist/esm/styles/shared/annotation.js +18 -4
  228. package/dist/esm/styles/shared/block-marks.js +1 -0
  229. package/dist/esm/styles/shared/blockquote.js +29 -3
  230. package/dist/esm/styles/shared/code-block.js +1 -0
  231. package/dist/esm/styles/shared/code-mark.js +8 -3
  232. package/dist/esm/styles/shared/column-layout.js +17 -3
  233. package/dist/esm/styles/shared/date.js +4 -3
  234. package/dist/esm/styles/shared/embedCard.js +19 -4
  235. package/dist/esm/styles/shared/expand.js +3 -4
  236. package/dist/esm/styles/shared/grid.js +28 -3
  237. package/dist/esm/styles/shared/headings.js +34 -3
  238. package/dist/esm/styles/shared/indentation.js +28 -3
  239. package/dist/esm/styles/shared/link.js +5 -3
  240. package/dist/esm/styles/shared/lists.js +2 -0
  241. package/dist/esm/styles/shared/media-single.js +39 -3
  242. package/dist/esm/styles/shared/panel.js +6 -3
  243. package/dist/esm/styles/shared/paragraph.js +11 -3
  244. package/dist/esm/styles/shared/plugins.js +30 -6
  245. package/dist/esm/styles/shared/resizer.js +4 -2
  246. package/dist/esm/styles/shared/rule.js +10 -3
  247. package/dist/esm/styles/shared/shadow.js +31 -3
  248. package/dist/esm/styles/shared/smartCard.js +2 -0
  249. package/dist/esm/styles/shared/table.js +2 -0
  250. package/dist/esm/styles/shared/tableCell.js +1 -3
  251. package/dist/esm/styles/shared/text-color.js +8 -3
  252. package/dist/esm/styles/shared/unsupported-content.js +2 -0
  253. package/dist/esm/styles/shared/whitespace.js +4 -3
  254. package/dist/esm/ui/Announcer/announcer.js +2 -0
  255. package/dist/esm/ui/Caption/index.js +1 -1
  256. package/dist/esm/ui/ContextPanel/context.js +2 -1
  257. package/dist/esm/ui/DropList/index.js +2 -2
  258. package/dist/esm/ui/Emoji/index.js +1 -1
  259. package/dist/esm/ui/ErrorBoundary/index.js +1 -1
  260. package/dist/esm/ui/Expand/index.js +2 -2
  261. package/dist/esm/ui/IntlErrorBoundary/index.js +1 -1
  262. package/dist/esm/ui/Layer/index.js +1 -2
  263. package/dist/esm/ui/MediaSingle/styled.js +16 -8
  264. package/dist/esm/ui/Mention/index.js +1 -1
  265. package/dist/esm/ui/Mention/mention-with-providers.js +1 -1
  266. package/dist/esm/ui/MultiBodiedExtension/index.js +1 -3
  267. package/dist/esm/ui/OverflowShadow/index.js +1 -1
  268. package/dist/esm/ui/PanelTextInput/index.js +1 -1
  269. package/dist/esm/ui/Popup/index.js +1 -1
  270. package/dist/esm/ui/PortalProvider/index.js +1 -1
  271. package/dist/esm/ui/ResizerLegacy/index.js +1 -1
  272. package/dist/esm/ui/ResizerLegacy/styled.js +2 -0
  273. package/dist/esm/ui/UnsupportedBlock/index.js +1 -1
  274. package/dist/esm/ui/UnsupportedInline/index.js +15 -3
  275. package/dist/esm/ui/WithCreateAnalyticsEvent/index.js +1 -1
  276. package/dist/esm/ui/clear-next-sibling-margin-top.js +12 -5
  277. package/dist/esm/ui/with-outer-listeners.js +1 -1
  278. package/dist/esm/ui-color/ColorPalette/Color/index.js +1 -1
  279. package/dist/esm/ui-color/ColorPalette/Color/styles.js +21 -5
  280. package/dist/esm/ui-menu/ColorPickerButton/index.js +34 -7
  281. package/dist/esm/ui-menu/Dropdown/index.js +1 -1
  282. package/dist/esm/ui-menu/DropdownMenu/index.js +1 -2
  283. package/dist/esm/ui-react/with-react-editor-view-outer-listeners.js +1 -1
  284. package/dist/esm/utils/dom.js +1 -0
  285. package/dist/esm/utils/imageLoader.js +1 -1
  286. package/dist/esm/with-plugin-state/index.js +1 -1
  287. package/dist/types/analytics/types/enums.d.ts +2 -1
  288. package/dist/types/analytics/types/table-events.d.ts +10 -1
  289. package/dist/types/collab/index.d.ts +1 -1
  290. package/dist/types/element-browser/components/ElementBrowserLoader.d.ts +1 -1
  291. package/dist/types/extensions/types/extension-manifest-common.d.ts +1 -1
  292. package/dist/types/extensions/types/extension-manifest.d.ts +1 -1
  293. package/dist/types/icons/index.d.ts +1 -1
  294. package/dist/types/link/LinkSearch/withActivityProvider.d.ts +1 -1
  295. package/dist/types/media-inline/inline-image-wrapper.d.ts +3 -2
  296. package/dist/types/media-inline/media-inline-image-card.d.ts +4 -4
  297. package/dist/types/media-inline/views/error-view.d.ts +3 -2
  298. package/dist/types/media-inline/views/frame.d.ts +3 -2
  299. package/dist/types/media-inline/views/icon-wrapper.d.ts +3 -2
  300. package/dist/types/media-inline/views/loading-view.d.ts +2 -2
  301. package/dist/types/quick-insert/assets/index.d.ts +24 -24
  302. package/dist/types/react-node-view/getInlineNodeViewProducer.d.ts +1 -1
  303. package/dist/types/react-node-view/index.d.ts +2 -2
  304. package/dist/types/selection-based-node-view/SelectionBasedNodeView.d.ts +1 -1
  305. package/dist/types/styles/shared/resizer.d.ts +1 -0
  306. package/dist/types/types/annotation/index.d.ts +2 -2
  307. package/dist/types/types/floating-toolbar.d.ts +3 -3
  308. package/dist/types/ui/Announcer/announcer.d.ts +1 -1
  309. package/dist/types/ui/DropList/index.d.ts +1 -2
  310. package/dist/types/ui/ErrorBoundary/index.d.ts +1 -0
  311. package/dist/types/ui/IntlErrorBoundary/index.d.ts +1 -0
  312. package/dist/types/ui/Layer/index.d.ts +2 -1
  313. package/dist/types/ui/MediaSingle/styled.d.ts +1 -1
  314. package/dist/types/ui/OverflowShadow/index.d.ts +1 -1
  315. package/dist/types/ui/Popup/index.d.ts +1 -0
  316. package/dist/types/ui/UnsupportedInline/index.d.ts +3 -3
  317. package/dist/types/ui/with-outer-listeners.d.ts +3 -2
  318. package/dist/types/ui-menu/ArrowKeyNavigationProvider/ColorPaletteArrowKeyNavigationProvider/index.d.ts +1 -1
  319. package/dist/types/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.d.ts +1 -1
  320. package/dist/types/ui-menu/ArrowKeyNavigationProvider/index.d.ts +1 -1
  321. package/dist/types/ui-menu/ColorPickerButton/index.d.ts +1 -1
  322. package/dist/types/ui-menu/Dropdown/index.d.ts +1 -1
  323. package/dist/types/ui-menu/DropdownMenu/index.d.ts +1 -1
  324. package/dist/types/ui-menu/DropdownMenu/types.d.ts +1 -0
  325. package/dist/types/ui-react/with-react-editor-view-outer-listeners.d.ts +1 -2
  326. package/dist/types/utils/imageLoader.d.ts +1 -1
  327. package/dist/types-ts4.5/analytics/types/enums.d.ts +2 -1
  328. package/dist/types-ts4.5/analytics/types/table-events.d.ts +10 -1
  329. package/dist/types-ts4.5/collab/index.d.ts +1 -1
  330. package/dist/types-ts4.5/element-browser/components/ElementBrowserLoader.d.ts +1 -1
  331. package/dist/types-ts4.5/extensions/types/extension-manifest-common.d.ts +1 -1
  332. package/dist/types-ts4.5/extensions/types/extension-manifest.d.ts +1 -1
  333. package/dist/types-ts4.5/icons/index.d.ts +1 -1
  334. package/dist/types-ts4.5/link/LinkSearch/withActivityProvider.d.ts +1 -1
  335. package/dist/types-ts4.5/media-inline/inline-image-wrapper.d.ts +3 -2
  336. package/dist/types-ts4.5/media-inline/media-inline-image-card.d.ts +4 -4
  337. package/dist/types-ts4.5/media-inline/views/error-view.d.ts +3 -2
  338. package/dist/types-ts4.5/media-inline/views/frame.d.ts +3 -2
  339. package/dist/types-ts4.5/media-inline/views/icon-wrapper.d.ts +3 -2
  340. package/dist/types-ts4.5/media-inline/views/loading-view.d.ts +2 -2
  341. package/dist/types-ts4.5/quick-insert/assets/index.d.ts +24 -24
  342. package/dist/types-ts4.5/react-node-view/getInlineNodeViewProducer.d.ts +1 -1
  343. package/dist/types-ts4.5/react-node-view/index.d.ts +2 -2
  344. package/dist/types-ts4.5/selection-based-node-view/SelectionBasedNodeView.d.ts +1 -1
  345. package/dist/types-ts4.5/styles/shared/resizer.d.ts +1 -0
  346. package/dist/types-ts4.5/types/annotation/index.d.ts +2 -2
  347. package/dist/types-ts4.5/types/floating-toolbar.d.ts +3 -3
  348. package/dist/types-ts4.5/ui/Announcer/announcer.d.ts +1 -1
  349. package/dist/types-ts4.5/ui/DropList/index.d.ts +1 -2
  350. package/dist/types-ts4.5/ui/ErrorBoundary/index.d.ts +1 -0
  351. package/dist/types-ts4.5/ui/IntlErrorBoundary/index.d.ts +1 -0
  352. package/dist/types-ts4.5/ui/Layer/index.d.ts +2 -1
  353. package/dist/types-ts4.5/ui/MediaSingle/styled.d.ts +1 -1
  354. package/dist/types-ts4.5/ui/OverflowShadow/index.d.ts +1 -1
  355. package/dist/types-ts4.5/ui/Popup/index.d.ts +1 -0
  356. package/dist/types-ts4.5/ui/UnsupportedInline/index.d.ts +3 -3
  357. package/dist/types-ts4.5/ui/with-outer-listeners.d.ts +3 -2
  358. package/dist/types-ts4.5/ui-menu/ArrowKeyNavigationProvider/ColorPaletteArrowKeyNavigationProvider/index.d.ts +1 -1
  359. package/dist/types-ts4.5/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.d.ts +1 -1
  360. package/dist/types-ts4.5/ui-menu/ArrowKeyNavigationProvider/index.d.ts +1 -1
  361. package/dist/types-ts4.5/ui-menu/ColorPickerButton/index.d.ts +1 -1
  362. package/dist/types-ts4.5/ui-menu/Dropdown/index.d.ts +1 -1
  363. package/dist/types-ts4.5/ui-menu/DropdownMenu/index.d.ts +1 -1
  364. package/dist/types-ts4.5/ui-menu/DropdownMenu/types.d.ts +1 -0
  365. package/dist/types-ts4.5/ui-react/with-react-editor-view-outer-listeners.d.ts +1 -2
  366. package/dist/types-ts4.5/utils/imageLoader.d.ts +1 -1
  367. package/package.json +4 -3
@@ -4,6 +4,7 @@ import React, { Fragment } from 'react';
4
4
  import { css, jsx } from '@emotion/react';
5
5
  // AFP-2532 TODO: Fix automatic suppressions below
6
6
  // eslint-disable-next-line @atlassian/tangerine/import/entry-points
7
+
7
8
  import { injectIntl } from 'react-intl-next';
8
9
  import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
9
10
  import { N20, N300, N800 } from '@atlaskit/theme/colors';
@@ -37,7 +38,7 @@ export const containerName = css({
37
38
  });
38
39
  const iconStyle = css({
39
40
  minWidth: '16px',
40
- marginTop: '3px',
41
+ marginTop: "var(--ds-space-050, 4px)",
41
42
  marginRight: "var(--ds-space-150, 12px)",
42
43
  img: {
43
44
  maxWidth: '16px'
@@ -1,20 +1,19 @@
1
1
  import { css } from '@emotion/react';
2
2
  import { RECENT_SEARCH_WIDTH_IN_PX, RECENT_SEARCH_WIDTH_WITHOUT_ITEMS_IN_PX } from '../../ui';
3
- export const inputWrapper = css`
4
- display: flex;
5
- line-height: 0;
6
- padding: 5px 0;
7
- align-items: center;
8
- `;
9
- export const container = css`
10
- display: flex;
11
- flex-direction: column;
12
- overflow: auto;
13
- padding: 0;
14
-
15
- width: ${RECENT_SEARCH_WIDTH_WITHOUT_ITEMS_IN_PX}px;
16
- line-height: initial;
17
- `;
18
- export const containerWithProvider = css`
19
- width: ${RECENT_SEARCH_WIDTH_IN_PX}px;
20
- `;
3
+ export const inputWrapper = css({
4
+ display: 'flex',
5
+ lineHeight: 0,
6
+ padding: `${"var(--ds-space-075, 6px)"} 0`,
7
+ alignItems: 'center'
8
+ });
9
+ export const container = css({
10
+ display: 'flex',
11
+ flexDirection: 'column',
12
+ overflow: 'auto',
13
+ padding: 0,
14
+ width: `${RECENT_SEARCH_WIDTH_WITHOUT_ITEMS_IN_PX}px`,
15
+ lineHeight: 'initial'
16
+ });
17
+ export const containerWithProvider = css({
18
+ width: `${RECENT_SEARCH_WIDTH_IN_PX}px`
19
+ });
@@ -22,7 +22,6 @@ class RecentLink extends React.Component {
22
22
  if (!inputMethod) {
23
23
  return; // No call submit, if there is nothing to submit
24
24
  }
25
-
26
25
  switch (inputMethod) {
27
26
  case INPUT_METHOD.MANUAL:
28
27
  {
@@ -1,5 +1,4 @@
1
1
  /** @jsx jsx */
2
-
3
2
  import { Fragment, useCallback, useEffect, useMemo, useState } from 'react';
4
3
  import { jsx } from '@emotion/react';
5
4
  import ReactDOM from 'react-dom';
@@ -7,6 +7,7 @@ export const INLINE_IMAGE_BORDER_SIZE_CSS_VAR_KEY = '--editor-media-inline-image
7
7
  export const INLINE_IMAGE_BORDER_COLOR_CSS_VAR_KEY = '--editor-media-inline-image-border-color';
8
8
 
9
9
  // We implemented such selectors to ensure specificity:
10
+ // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Nested and dynamic css calls are violations, needs manual remediation
10
11
  const inlineImageHeight = (height, margin = 0) => css`
11
12
  /* Editor style */
12
13
  > .mediaInlineView-content-wrap > .${INLINE_IMAGE_WRAPPER_CLASS_NAME},
@@ -25,6 +26,7 @@ const inlineImageHeight = (height, margin = 0) => css`
25
26
  * shift in top and bottom and size adjustments to make up for lack of 1to1 size
26
27
  * mapping
27
28
  */
29
+ // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Nested and dynamic css calls are violations, needs manual remediation
28
30
  export const mediaInlineImageStyles = css`
29
31
  // p, h3, and action items
30
32
  .${INLINE_IMAGE_WRAPPER_CLASS_NAME} {
@@ -1,5 +1,4 @@
1
1
  /** @jsx jsx */
2
-
3
2
  import { css, jsx } from '@emotion/react';
4
3
  const wrapperStyle = css({
5
4
  display: 'flex',
@@ -1,6 +1,6 @@
1
1
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
2
2
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
3
- const packageVersion = "78.11.4";
3
+ const packageVersion = "78.11.6";
4
4
  const sanitiseSentryEvents = (data, _hint) => {
5
5
  // Remove URL as it has UGC
6
6
  // TODO: Sanitise the URL instead of just removing it
@@ -199,6 +199,7 @@ function getPortalChildren({
199
199
  // nodeViews: {
200
200
  // [nodeViewName: string]: NodeViewProducer
201
201
  // }
202
+
202
203
  // This return of this function is intended to be the value of a key
203
204
  // in a ProseMirror nodeViews object.
204
205
  export function getInlineNodeViewProducer({
@@ -3,7 +3,7 @@ import React, { forwardRef, useCallback, useImperativeHandle, useMemo, useRef, u
3
3
  import classnames from 'classnames';
4
4
  import { Resizable } from 're-resizable';
5
5
  import Tooltip from '@atlaskit/tooltip';
6
- import { handleWrapperClass, resizerDangerClassName, resizerHandleClassName, resizerHandleThumbClassName, resizerHandleTrackClassName, resizerHandleZIndex, resizerHoverZoneClassName, resizerItemClassName } from '../styles/shared/resizer';
6
+ import { handleWrapperClass, resizerDangerClassName, resizerExtendedZone, resizerHandleClassName, resizerHandleThumbClassName, resizerHandleTrackClassName, resizerHandleZIndex, resizerHoverZoneClassName, resizerItemClassName } from '../styles/shared/resizer';
7
7
  const SUPPORTED_HANDLES = ['left', 'right'];
8
8
  const ResizerNext = (props, ref) => {
9
9
  const [isResizing, setIsResizing] = useState(false);
@@ -96,7 +96,7 @@ const ResizerNext = (props, ref) => {
96
96
  [resizerDangerClassName]: appearance === 'danger'
97
97
  });
98
98
  const resizerZoneClassName = classnames(resizerHoverZoneClassName, {
99
- 'is-extended': needExtendedResizeZone
99
+ [resizerExtendedZone]: needExtendedResizeZone
100
100
  });
101
101
  const handleComponent = useMemo(() => {
102
102
  return SUPPORTED_HANDLES.reduce((result, position) => {
@@ -108,7 +108,6 @@ const ResizerNext = (props, ref) => {
108
108
  type: "button",
109
109
  tabIndex: -1 //We want to control focus on this button ourselves
110
110
  });
111
-
112
111
  if ((!handleHighlight || handleHighlight === 'none') && !handleTooltipContent) {
113
112
  return {
114
113
  ...result,
@@ -1,17 +1,19 @@
1
1
  import { css, keyframes } from '@emotion/react';
2
- const gapCursorBlink = keyframes`
3
- from, to {
4
- opacity: 0;
2
+ const gapCursorBlink = keyframes({
3
+ 'from, to': {
4
+ opacity: 0
5
+ },
6
+ '50%': {
7
+ opacity: 1
5
8
  }
6
- 50% {
7
- opacity: 1;
8
- }
9
- `;
9
+ });
10
10
  export const hideCaretModifier = 'ProseMirror-hide-gapcursor';
11
11
  const gapCursor = '.ProseMirror-gapcursor';
12
12
  const prosemirrorwidget = '.ProseMirror-widget';
13
13
  const wrapLeft = '[layout="wrap-left"]';
14
14
  const wrapRight = '[layout="wrap-right"]';
15
+
16
+ // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- This needs manual remediation, it autofixes seemingly safely, but the code style and readability is destroyed.
15
17
  export const gapCursorStyles = css`
16
18
  /* =============== GAP CURSOR ================== */
17
19
  .ProseMirror {
@@ -42,10 +44,10 @@ export const gapCursorStyles = css`
42
44
  height: 100%;
43
45
  }
44
46
  &.-left span::after {
45
- left: -3px;
47
+ left: ${"var(--ds-space-negative-050, -4px)"};
46
48
  }
47
49
  &.-right span::after {
48
- right: -3px;
50
+ right: ${"var(--ds-space-negative-050, -4px)"};
49
51
  }
50
52
  & span[layout='full-width'],
51
53
  & span[layout='wide'],
@@ -9,22 +9,23 @@ export const AnnotationSharedClassNames = {
9
9
  const Y75a = 'rgba(255, 240, 179, 0.5)';
10
10
  const Y200a = 'rgba(255, 196, 0, 0.82)';
11
11
  export const AnnotationSharedCSSByState = () => ({
12
- focus: css`
12
+ focus: css({
13
13
  // Background is not coming through in confluence, suspecting to be caused by some specific combination of
14
14
  // emotion and token look up
15
-
16
- background: ${`var(--ds-background-accent-yellow-subtler, ${Y75})`};
17
- border-bottom: 2px solid ${`var(--ds-border-accent-yellow, ${Y300})`};
15
+ background: `var(--ds-background-accent-yellow-subtler, ${Y75})`,
16
+ borderBottom: `2px solid ${`var(--ds-border-accent-yellow, ${Y300})`}`,
18
17
  // TODO: https://product-fabric.atlassian.net/browse/DSP-4147
19
- box-shadow: ${`var(--ds-shadow-overlay, ${`1px 2px 3px ${N60A}, -1px 2px 3px ${N60A}`})`};
20
- cursor: pointer;
21
- `,
22
- blur: css`
23
- background: ${`var(--ds-background-accent-yellow-subtlest, ${Y75a})`};
24
- border-bottom: 2px solid ${`var(--ds-border-accent-yellow, ${Y200a})`};
25
- cursor: pointer;
26
- `
18
+ boxShadow: `var(--ds-shadow-overlay, ${`1px 2px 3px ${N60A}, -1px 2px 3px ${N60A}`})`,
19
+ cursor: 'pointer'
20
+ }),
21
+ blur: css({
22
+ background: `var(--ds-background-accent-yellow-subtlest, ${Y75a})`,
23
+ borderBottom: `2px solid ${`var(--ds-border-accent-yellow, ${Y200a})`}`,
24
+ cursor: 'pointer'
25
+ })
27
26
  });
27
+
28
+ // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- `AnnotationSharedCSSByState()` is not safe in object syntax
28
29
  export const annotationSharedStyles = () => css`
29
30
  .ProseMirror {
30
31
  .${AnnotationSharedClassNames.focus} {
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @atlaskit/design-system/no-css-tagged-template-expression -- Perfectly safe to auto-fix, but leaving it up to the team to remediate as the readability only gets worse with autofixing */
1
2
  import { css } from '@emotion/react';
2
3
  export const blockMarksSharedStyles = css`
3
4
  /**
@@ -1,38 +1,31 @@
1
1
  import { css } from '@emotion/react';
2
2
  import { akEditorBlockquoteBorderColor, blockNodesVerticalMargin } from '@atlaskit/editor-shared-styles';
3
- export const blockquoteSharedStyles = css`
4
- & blockquote {
5
- box-sizing: border-box;
6
- padding-left: ${"var(--ds-space-200, 16px)"};
7
- border-left: 2px solid
8
- ${`var(--ds-border, ${akEditorBlockquoteBorderColor})`};
9
- margin: ${blockNodesVerticalMargin} 0 0 0;
10
- margin-right: 0;
11
-
12
- [dir='rtl'] & {
13
- padding-left: 0;
14
- padding-right: ${"var(--ds-space-200, 16px)"};
15
- }
16
-
17
- &:first-child {
18
- margin-top: 0;
19
- }
20
-
21
- &::before {
22
- content: '';
23
- }
24
-
25
- &::after {
26
- content: none;
27
- }
28
-
29
- & p {
30
- display: block;
31
- }
32
-
33
- & table,
34
- & table:last-child {
35
- display: inline-table;
3
+ export const blockquoteSharedStyles = css({
4
+ '& blockquote': {
5
+ boxSizing: 'border-box',
6
+ paddingLeft: "var(--ds-space-200, 16px)",
7
+ borderLeft: `2px solid ${`var(--ds-border, ${akEditorBlockquoteBorderColor})`}`,
8
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
9
+ margin: `${blockNodesVerticalMargin} 0 0 0`,
10
+ marginRight: 0,
11
+ "[dir='rtl'] &": {
12
+ paddingLeft: 0,
13
+ paddingRight: "var(--ds-space-200, 16px)"
14
+ },
15
+ '&:first-child': {
16
+ marginTop: 0
17
+ },
18
+ '&::before': {
19
+ content: "''"
20
+ },
21
+ '&::after': {
22
+ content: 'none'
23
+ },
24
+ '& p': {
25
+ display: 'block'
26
+ },
27
+ '& table, & table:last-child': {
28
+ display: 'inline-table'
36
29
  }
37
30
  }
38
- `;
31
+ });
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @atlaskit/design-system/no-css-tagged-template-expression -- Should be safe to autofix, but ignoring for now */
1
2
  import { css } from '@emotion/react';
2
3
  import { akEditorCodeFontFamily, akEditorLineHeight, akEditorTableCellMinWidth, blockNodesVerticalMargin, overflowShadow, relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
3
4
  import { N20, N30, N400, N800 } from '@atlaskit/theme/colors';
@@ -2,10 +2,10 @@ import { css } from '@emotion/react';
2
2
  import { getCodeStyles } from '@atlaskit/code/inline';
3
3
  import { N30A } from '@atlaskit/theme/colors';
4
4
  export const codeMarkSharedStyles = () => {
5
- return css`
6
- .code {
7
- --ds--code--bg-color: ${`var(--ds-background-neutral, ${N30A})`};
8
- ${getCodeStyles()}
5
+ return css({
6
+ '.code': {
7
+ '--ds--code--bg-color': `var(--ds-background-neutral, ${N30A})`,
8
+ ...getCodeStyles()
9
9
  }
10
- `;
10
+ });
11
11
  };
@@ -1,22 +1,20 @@
1
1
  import { css } from '@emotion/react';
2
2
  import { gridMediumMaxWidth } from '@atlaskit/editor-shared-styles';
3
- const columnLayoutSharedStyle = css`
4
- [data-layout-section] {
5
- position: relative;
6
- display: flex;
7
- flex-direction: row;
8
- & > * {
9
- flex: 1;
10
- min-width: 0;
11
- }
12
-
13
- & > .unsupportedBlockView-content-wrap {
14
- min-width: initial;
15
- }
16
-
17
- @media screen and (max-width: ${gridMediumMaxWidth}px) {
18
- flex-direction: column;
3
+ const columnLayoutSharedStyle = css({
4
+ '[data-layout-section]': {
5
+ position: 'relative',
6
+ display: 'flex',
7
+ flexDirection: 'row',
8
+ '& > *': {
9
+ flex: 1,
10
+ minWidth: 0
11
+ },
12
+ '& > .unsupportedBlockView-content-wrap': {
13
+ minWidth: 'initial'
14
+ },
15
+ [`@media screen and (max-width: ${gridMediumMaxWidth}px)`]: {
16
+ flexDirection: 'column'
19
17
  }
20
18
  }
21
- `;
19
+ });
22
20
  export { columnLayoutSharedStyle };
@@ -3,8 +3,8 @@ export const DateSharedCssClassName = {
3
3
  DATE_WRAPPER: `date-lozenger-container`,
4
4
  DATE_CONTAINER: 'dateView-content-wrap'
5
5
  };
6
- export const dateSharedStyle = css`
7
- .${DateSharedCssClassName.DATE_WRAPPER} span {
8
- white-space: unset;
6
+ export const dateSharedStyle = css({
7
+ [`.${DateSharedCssClassName.DATE_WRAPPER} span`]: {
8
+ whiteSpace: 'unset'
9
9
  }
10
- `;
10
+ });
@@ -1,24 +1,20 @@
1
1
  import { css } from '@emotion/react';
2
- export const embedCardStyles = css`
3
- .ProseMirror {
4
- .embedCardView-content-wrap[layout^='wrap-'] {
5
- max-width: 100%;
6
- }
7
-
8
- .embedCardView-content-wrap[layout='wrap-left'] {
9
- float: left;
10
- }
11
-
12
- .embedCardView-content-wrap[layout='wrap-right'] {
13
- float: right;
14
- }
15
-
16
- .embedCardView-content-wrap[layout='wrap-right']
17
- + .embedCardView-content-wrap[layout='wrap-left'] {
18
- clear: both;
2
+ export const embedCardStyles = css({
3
+ '.ProseMirror': {
4
+ ".embedCardView-content-wrap[layout^='wrap-']": {
5
+ maxWidth: '100%'
6
+ },
7
+ ".embedCardView-content-wrap[layout='wrap-left']": {
8
+ float: 'left'
9
+ },
10
+ ".embedCardView-content-wrap[layout='wrap-right']": {
11
+ float: 'right'
12
+ },
13
+ ".embedCardView-content-wrap[layout='wrap-right'] + .embedCardView-content-wrap[layout='wrap-left']": {
14
+ clear: 'both'
19
15
  }
20
16
  }
21
- `;
22
- export const embedSpacingStyles = css`
23
- margin: 0 10px;
24
- `;
17
+ });
18
+ export const embedSpacingStyles = css({
19
+ margin: `0 ${"var(--ds-space-150, 12px)"}`
20
+ });
@@ -1,8 +1,7 @@
1
1
  import { css } from '@emotion/react';
2
- /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
3
- export const expandIconWrapperStyle = css`
4
- margin-left: ${"var(--ds-space-negative-100, -8px)"};
5
- `;
2
+ export const expandIconWrapperStyle = css({
3
+ marginLeft: "var(--ds-space-negative-100, -8px)"
4
+ });
6
5
  const prefix = 'ak-editor-expand';
7
6
  export const expandClassNames = {
8
7
  prefix,
@@ -2,35 +2,31 @@ import { css } from '@emotion/react';
2
2
  import { akEditorGridLineZIndex } from '@atlaskit/editor-shared-styles';
3
3
  import { B200, N30A } from '@atlaskit/theme/colors';
4
4
  export const GRID_GUTTER = 12;
5
- export const gridStyles = css`
6
- .gridParent {
7
- width: calc(100% + ${GRID_GUTTER * 2}px);
8
- margin-left: ${"var(--ds-space-negative-150, -12px)"}; // Negative GRID_GUTTER
9
- margin-right: ${"var(--ds-space-negative-150, -12px)"}; // Negative GRID_GUTTER
10
- transform: scale(1);
11
- z-index: ${akEditorGridLineZIndex};
5
+ export const gridStyles = css({
6
+ '.gridParent': {
7
+ width: `calc(100% + ${GRID_GUTTER * 2}px)`,
8
+ marginLeft: "var(--ds-space-negative-150, -12px)",
9
+ marginRight: "var(--ds-space-negative-150, -12px)",
10
+ transform: 'scale(1)',
11
+ zIndex: akEditorGridLineZIndex
12
+ },
13
+ '.gridContainer': {
14
+ position: 'fixed',
15
+ height: '100vh',
16
+ width: '100%',
17
+ pointerEvents: 'none'
18
+ },
19
+ '.gridLine': {
20
+ borderLeft: `1px solid ${`var(--ds-border, ${N30A})`}`,
21
+ display: 'inline-block',
22
+ boxSizing: 'border-box',
23
+ height: '100%',
24
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
25
+ marginLeft: '-1px',
26
+ transition: 'border-color 0.15s linear',
27
+ zIndex: 0
28
+ },
29
+ '.highlight': {
30
+ borderLeft: `1px solid ${`var(--ds-border-focused, ${B200})`}`
12
31
  }
13
-
14
- .gridContainer {
15
- position: fixed;
16
- height: 100vh;
17
- width: 100%;
18
- pointer-events: none;
19
- }
20
-
21
- // TODO: https://product-fabric.atlassian.net/browse/DSP-4352
22
- .gridLine {
23
- border-left: 1px solid ${`var(--ds-border, ${N30A})`};
24
- display: inline-block;
25
- box-sizing: border-box;
26
- height: 100%;
27
- margin-left: -1px;
28
-
29
- transition: border-color 0.15s linear;
30
- z-index: 0;
31
- }
32
-
33
- .highlight {
34
- border-left: 1px solid ${`var(--ds-border-focused, ${B200})`};
35
- }
36
- `;
32
+ });
@@ -3,39 +3,40 @@ import { h100, h300, h400, h500, h600, h700 } from '@atlaskit/theme/typography';
3
3
 
4
4
  // @see typography spreadsheet: https://docs.google.com/spreadsheets/d/1iYusRGCT4PoPfvxbJ8NrgjtfFgXLm5lpDWXzjua1W2E/edit#gid=93913128
5
5
  // text sizing prototype: http://proto/fabricrender/
6
- export const headingsSharedStyles = () => css`
7
- & h1 {
8
- ${h700()};
9
- margin-bottom: 0;
10
- margin-top: 1.667em;
6
+ export const headingsSharedStyles = () => css({
7
+ '& h1': {
8
+ ...h700(),
9
+ marginBottom: 0,
10
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
11
+ marginTop: '1.667em'
12
+ },
13
+ '& h2': {
14
+ ...h600(),
15
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
16
+ marginTop: '1.8em',
17
+ marginBottom: 0
18
+ },
19
+ '& h3': {
20
+ ...h500(),
21
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
22
+ marginTop: '2em',
23
+ marginBottom: 0
24
+ },
25
+ '& h4': {
26
+ ...h400(),
27
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
28
+ marginTop: '1.357em'
29
+ },
30
+ '& h5': {
31
+ ...h300(),
32
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
33
+ marginTop: '1.667em',
34
+ textTransform: 'none'
35
+ },
36
+ '& h6': {
37
+ ...h100(),
38
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
39
+ marginTop: '1.455em',
40
+ textTransform: 'none'
11
41
  }
12
-
13
- & h2 {
14
- ${h600()};
15
- margin-top: 1.8em;
16
- margin-bottom: 0;
17
- }
18
-
19
- & h3 {
20
- ${h500()};
21
- margin-top: 2em;
22
- margin-bottom: 0;
23
- }
24
-
25
- & h4 {
26
- ${h400()};
27
- margin-top: 1.357em;
28
- }
29
-
30
- & h5 {
31
- ${h300()};
32
- margin-top: 1.667em;
33
- text-transform: none;
34
- }
35
-
36
- & h6 {
37
- ${h100()};
38
- margin-top: 1.455em;
39
- text-transform: none;
40
- }
41
- `;
42
+ });
@@ -1,23 +1,29 @@
1
1
  import { css } from '@emotion/react';
2
- export const indentationSharedStyles = css`
3
- .fabric-editor-indentation-mark {
4
- &[data-level='1'] {
5
- margin-left: 30px;
6
- }
7
- &[data-level='2'] {
8
- margin-left: 60px;
9
- }
10
- &[data-level='3'] {
11
- margin-left: 90px;
12
- }
13
- &[data-level='4'] {
14
- margin-left: 120px;
15
- }
16
- &[data-level='5'] {
17
- margin-left: 150px;
18
- }
19
- &[data-level='6'] {
20
- margin-left: 180px;
2
+ export const indentationSharedStyles = css({
3
+ '.fabric-editor-indentation-mark': {
4
+ "&[data-level='1']": {
5
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
6
+ marginLeft: '30px'
7
+ },
8
+ "&[data-level='2']": {
9
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
10
+ marginLeft: '60px'
11
+ },
12
+ "&[data-level='3']": {
13
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
14
+ marginLeft: '90px'
15
+ },
16
+ "&[data-level='4']": {
17
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
18
+ marginLeft: '120px'
19
+ },
20
+ "&[data-level='5']": {
21
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
22
+ marginLeft: '150px'
23
+ },
24
+ "&[data-level='6']": {
25
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
26
+ marginLeft: '180px'
21
27
  }
22
28
  }
23
- `;
29
+ });
@@ -1,7 +1,7 @@
1
1
  import { css } from '@emotion/react';
2
- const linkSharedStyle = css`
3
- a.blockLink {
4
- display: block;
2
+ const linkSharedStyle = css({
3
+ 'a.blockLink': {
4
+ display: 'block'
5
5
  }
6
- `;
6
+ });
7
7
  export { linkSharedStyle };
@@ -33,6 +33,8 @@ export function getOrderedListInlineStyles(itemCounterDigitsSize, styleFormat) {
33
33
  }
34
34
  return style;
35
35
  }
36
+
37
+ // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- There is some "flow-root" hack that is not actually valid css. Do note, this might not even work in Compiled (or Emotion) due to the way tagged template expressions are parsed…
36
38
  export const listsSharedStyles = css`
37
39
  /* =============== INDENTATION SPACING ========= */
38
40