@atlaskit/editor-common 81.1.5 → 81.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (299) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/codemods/migrates/entry-points.ts +14 -30
  3. package/dist/cjs/clipboard/index.js +4 -4
  4. package/dist/cjs/collab/index.js +1 -1
  5. package/dist/cjs/doc-utils/editor-use-only.js +2 -2
  6. package/dist/cjs/i18n/cs.js +1 -0
  7. package/dist/cjs/i18n/da.js +3 -2
  8. package/dist/cjs/i18n/de.js +3 -2
  9. package/dist/cjs/i18n/en.js +1 -0
  10. package/dist/cjs/i18n/en_GB.js +1 -0
  11. package/dist/cjs/i18n/en_ZZ.js +1 -0
  12. package/dist/cjs/i18n/es.js +2 -1
  13. package/dist/cjs/i18n/fi.js +2 -1
  14. package/dist/cjs/i18n/fr.js +1 -0
  15. package/dist/cjs/i18n/hu.js +1 -0
  16. package/dist/cjs/i18n/it.js +1 -0
  17. package/dist/cjs/i18n/ja.js +2 -1
  18. package/dist/cjs/i18n/ko.js +2 -1
  19. package/dist/cjs/i18n/nb.js +1 -0
  20. package/dist/cjs/i18n/nl.js +1 -0
  21. package/dist/cjs/i18n/pl.js +1 -0
  22. package/dist/cjs/i18n/pt_BR.js +1 -0
  23. package/dist/cjs/i18n/ru.js +1 -0
  24. package/dist/cjs/i18n/sv.js +1 -0
  25. package/dist/cjs/i18n/th.js +1 -0
  26. package/dist/cjs/i18n/tr.js +1 -0
  27. package/dist/cjs/i18n/uk.js +7 -6
  28. package/dist/cjs/i18n/vi.js +1 -0
  29. package/dist/cjs/i18n/zh.js +3 -2
  30. package/dist/cjs/i18n/zh_TW.js +1 -0
  31. package/dist/cjs/lists/node.js +8 -8
  32. package/dist/cjs/lists/replace-content.js +8 -8
  33. package/dist/cjs/mark/commands.js +64 -15
  34. package/dist/cjs/mark/index.js +6 -0
  35. package/dist/cjs/media-inline/styles.js +2 -2
  36. package/dist/cjs/messages/card.js +20 -0
  37. package/dist/cjs/monitoring/error.js +1 -1
  38. package/dist/cjs/selection/gap-cursor/styles.js +1 -1
  39. package/dist/cjs/styles/shared/annotation.js +1 -1
  40. package/dist/cjs/styles/shared/block-marks.js +1 -1
  41. package/dist/cjs/styles/shared/code-block.js +2 -2
  42. package/dist/cjs/styles/shared/lists.js +1 -1
  43. package/dist/cjs/styles/shared/panel.js +1 -1
  44. package/dist/cjs/styles/shared/resizer.js +1 -1
  45. package/dist/cjs/styles/shared/smartCard.js +1 -1
  46. package/dist/cjs/styles/shared/table.js +1 -1
  47. package/dist/cjs/styles/shared/task-decision.js +1 -1
  48. package/dist/cjs/styles/shared/unsupported-content.js +1 -1
  49. package/dist/cjs/table/SortingIcon.js +2 -2
  50. package/dist/cjs/ui/DropList/index.js +1 -1
  51. package/dist/cjs/ui/Expand/index.js +1 -1
  52. package/dist/cjs/ui/FloatingToolbar/styles.js +4 -4
  53. package/dist/cjs/ui/MediaSingle/styled.js +5 -5
  54. package/dist/cjs/ui/ResizerLegacy/styled.js +1 -1
  55. package/dist/cjs/ui-menu/DropdownMenu/index.js +2 -2
  56. package/dist/cjs/utils/calculate-toolbar-position.js +8 -8
  57. package/dist/cjs/utils/compareNodes.js +7 -7
  58. package/dist/cjs/utils/dedupe.js +10 -10
  59. package/dist/es2019/clipboard/index.js +4 -4
  60. package/dist/es2019/collab/index.js +29 -29
  61. package/dist/es2019/doc-utils/editor-use-only.js +2 -2
  62. package/dist/es2019/i18n/cs.js +1 -0
  63. package/dist/es2019/i18n/da.js +3 -2
  64. package/dist/es2019/i18n/de.js +3 -2
  65. package/dist/es2019/i18n/en.js +1 -0
  66. package/dist/es2019/i18n/en_GB.js +1 -0
  67. package/dist/es2019/i18n/en_ZZ.js +1 -0
  68. package/dist/es2019/i18n/es.js +2 -1
  69. package/dist/es2019/i18n/fi.js +2 -1
  70. package/dist/es2019/i18n/fr.js +1 -0
  71. package/dist/es2019/i18n/hu.js +1 -0
  72. package/dist/es2019/i18n/it.js +1 -0
  73. package/dist/es2019/i18n/ja.js +2 -1
  74. package/dist/es2019/i18n/ko.js +2 -1
  75. package/dist/es2019/i18n/nb.js +1 -0
  76. package/dist/es2019/i18n/nl.js +1 -0
  77. package/dist/es2019/i18n/pl.js +1 -0
  78. package/dist/es2019/i18n/pt_BR.js +1 -0
  79. package/dist/es2019/i18n/ru.js +1 -0
  80. package/dist/es2019/i18n/sv.js +1 -0
  81. package/dist/es2019/i18n/th.js +1 -0
  82. package/dist/es2019/i18n/tr.js +1 -0
  83. package/dist/es2019/i18n/uk.js +7 -6
  84. package/dist/es2019/i18n/vi.js +1 -0
  85. package/dist/es2019/i18n/zh.js +3 -2
  86. package/dist/es2019/i18n/zh_TW.js +1 -0
  87. package/dist/es2019/lists/node.js +8 -8
  88. package/dist/es2019/lists/replace-content.js +8 -8
  89. package/dist/es2019/mark/commands.js +54 -1
  90. package/dist/es2019/mark/index.js +1 -1
  91. package/dist/es2019/media-inline/styles.js +28 -28
  92. package/dist/es2019/messages/card.js +20 -0
  93. package/dist/es2019/monitoring/error.js +1 -1
  94. package/dist/es2019/selection/gap-cursor/styles.js +80 -80
  95. package/dist/es2019/styles/shared/annotation.js +12 -12
  96. package/dist/es2019/styles/shared/block-marks.js +16 -16
  97. package/dist/es2019/styles/shared/code-block.js +101 -89
  98. package/dist/es2019/styles/shared/lists.js +83 -86
  99. package/dist/es2019/styles/shared/panel.js +78 -78
  100. package/dist/es2019/styles/shared/resizer.js +180 -178
  101. package/dist/es2019/styles/shared/smartCard.js +92 -102
  102. package/dist/es2019/styles/shared/table.js +125 -127
  103. package/dist/es2019/styles/shared/task-decision.js +46 -46
  104. package/dist/es2019/styles/shared/unsupported-content.js +15 -15
  105. package/dist/es2019/table/SortingIcon.js +34 -34
  106. package/dist/es2019/ui/DropList/index.js +1 -1
  107. package/dist/es2019/ui/Expand/index.js +14 -14
  108. package/dist/es2019/ui/FloatingToolbar/styles.js +4 -4
  109. package/dist/es2019/ui/MediaSingle/styled.js +55 -55
  110. package/dist/es2019/ui/ResizerLegacy/styled.js +10 -10
  111. package/dist/es2019/ui-menu/DropdownMenu/index.js +30 -30
  112. package/dist/es2019/utils/calculate-toolbar-position.js +8 -8
  113. package/dist/es2019/utils/compareNodes.js +7 -7
  114. package/dist/es2019/utils/dedupe.js +10 -10
  115. package/dist/esm/clipboard/index.js +4 -4
  116. package/dist/esm/collab/index.js +1 -1
  117. package/dist/esm/doc-utils/editor-use-only.js +2 -2
  118. package/dist/esm/i18n/cs.js +1 -0
  119. package/dist/esm/i18n/da.js +3 -2
  120. package/dist/esm/i18n/de.js +3 -2
  121. package/dist/esm/i18n/en.js +1 -0
  122. package/dist/esm/i18n/en_GB.js +1 -0
  123. package/dist/esm/i18n/en_ZZ.js +1 -0
  124. package/dist/esm/i18n/es.js +2 -1
  125. package/dist/esm/i18n/fi.js +2 -1
  126. package/dist/esm/i18n/fr.js +1 -0
  127. package/dist/esm/i18n/hu.js +1 -0
  128. package/dist/esm/i18n/it.js +1 -0
  129. package/dist/esm/i18n/ja.js +2 -1
  130. package/dist/esm/i18n/ko.js +2 -1
  131. package/dist/esm/i18n/nb.js +1 -0
  132. package/dist/esm/i18n/nl.js +1 -0
  133. package/dist/esm/i18n/pl.js +1 -0
  134. package/dist/esm/i18n/pt_BR.js +1 -0
  135. package/dist/esm/i18n/ru.js +1 -0
  136. package/dist/esm/i18n/sv.js +1 -0
  137. package/dist/esm/i18n/th.js +1 -0
  138. package/dist/esm/i18n/tr.js +1 -0
  139. package/dist/esm/i18n/uk.js +7 -6
  140. package/dist/esm/i18n/vi.js +1 -0
  141. package/dist/esm/i18n/zh.js +3 -2
  142. package/dist/esm/i18n/zh_TW.js +1 -0
  143. package/dist/esm/lists/node.js +8 -8
  144. package/dist/esm/lists/replace-content.js +8 -8
  145. package/dist/esm/mark/commands.js +61 -14
  146. package/dist/esm/mark/index.js +1 -1
  147. package/dist/esm/media-inline/styles.js +2 -2
  148. package/dist/esm/messages/card.js +20 -0
  149. package/dist/esm/monitoring/error.js +1 -1
  150. package/dist/esm/selection/gap-cursor/styles.js +1 -1
  151. package/dist/esm/styles/shared/annotation.js +1 -1
  152. package/dist/esm/styles/shared/block-marks.js +1 -1
  153. package/dist/esm/styles/shared/code-block.js +2 -2
  154. package/dist/esm/styles/shared/lists.js +1 -1
  155. package/dist/esm/styles/shared/panel.js +1 -1
  156. package/dist/esm/styles/shared/resizer.js +1 -1
  157. package/dist/esm/styles/shared/smartCard.js +1 -1
  158. package/dist/esm/styles/shared/table.js +1 -1
  159. package/dist/esm/styles/shared/task-decision.js +1 -1
  160. package/dist/esm/styles/shared/unsupported-content.js +1 -1
  161. package/dist/esm/table/SortingIcon.js +2 -2
  162. package/dist/esm/ui/DropList/index.js +1 -1
  163. package/dist/esm/ui/Expand/index.js +1 -1
  164. package/dist/esm/ui/FloatingToolbar/styles.js +4 -4
  165. package/dist/esm/ui/MediaSingle/styled.js +5 -5
  166. package/dist/esm/ui/ResizerLegacy/styled.js +1 -1
  167. package/dist/esm/ui-menu/DropdownMenu/index.js +2 -2
  168. package/dist/esm/utils/calculate-toolbar-position.js +8 -8
  169. package/dist/esm/utils/compareNodes.js +7 -7
  170. package/dist/esm/utils/dedupe.js +10 -10
  171. package/dist/types/analytics/index.d.ts +1 -1
  172. package/dist/types/analytics/types/index.d.ts +3 -3
  173. package/dist/types/card/LinkToolbarButtonGroup.d.ts +1 -1
  174. package/dist/types/card/index.d.ts +1 -1
  175. package/dist/types/element-browser/ViewMore.d.ts +1 -1
  176. package/dist/types/element-browser/components/ElementList/EmptyState.d.ts +1 -1
  177. package/dist/types/extensibility/index.d.ts +1 -1
  178. package/dist/types/extensions/index.d.ts +1 -1
  179. package/dist/types/extensions/types/index.d.ts +2 -2
  180. package/dist/types/guideline/index.d.ts +3 -3
  181. package/dist/types/i18n/cs.d.ts +1 -0
  182. package/dist/types/i18n/da.d.ts +1 -0
  183. package/dist/types/i18n/de.d.ts +1 -0
  184. package/dist/types/i18n/en.d.ts +1 -0
  185. package/dist/types/i18n/en_GB.d.ts +1 -0
  186. package/dist/types/i18n/en_ZZ.d.ts +1 -0
  187. package/dist/types/i18n/es.d.ts +1 -0
  188. package/dist/types/i18n/fi.d.ts +1 -0
  189. package/dist/types/i18n/fr.d.ts +1 -0
  190. package/dist/types/i18n/hu.d.ts +1 -0
  191. package/dist/types/i18n/it.d.ts +1 -0
  192. package/dist/types/i18n/ja.d.ts +1 -0
  193. package/dist/types/i18n/ko.d.ts +1 -0
  194. package/dist/types/i18n/nb.d.ts +1 -0
  195. package/dist/types/i18n/nl.d.ts +1 -0
  196. package/dist/types/i18n/pl.d.ts +1 -0
  197. package/dist/types/i18n/pt_BR.d.ts +1 -0
  198. package/dist/types/i18n/ru.d.ts +1 -0
  199. package/dist/types/i18n/sv.d.ts +1 -0
  200. package/dist/types/i18n/th.d.ts +1 -0
  201. package/dist/types/i18n/tr.d.ts +1 -0
  202. package/dist/types/i18n/uk.d.ts +1 -0
  203. package/dist/types/i18n/vi.d.ts +1 -0
  204. package/dist/types/i18n/zh.d.ts +1 -0
  205. package/dist/types/i18n/zh_TW.d.ts +1 -0
  206. package/dist/types/link/index.d.ts +3 -3
  207. package/dist/types/lists/index.d.ts +3 -3
  208. package/dist/types/lists/replace-content.d.ts +1 -1
  209. package/dist/types/mark/commands.d.ts +5 -0
  210. package/dist/types/mark/index.d.ts +2 -2
  211. package/dist/types/media-inline/index.d.ts +1 -1
  212. package/dist/types/media-inline/views/frame.d.ts +1 -1
  213. package/dist/types/messages/card.d.ts +20 -0
  214. package/dist/types/portal/index.d.ts +1 -1
  215. package/dist/types/preset/index.d.ts +1 -1
  216. package/dist/types/preset/plugin-injection-api.d.ts +1 -1
  217. package/dist/types/provider-factory/quick-insert-provider.d.ts +1 -1
  218. package/dist/types/provider-factory.d.ts +2 -2
  219. package/dist/types/react-node-view/index.d.ts +1 -1
  220. package/dist/types/selection/index.d.ts +2 -2
  221. package/dist/types/styles/index.d.ts +4 -4
  222. package/dist/types/types/feature-flags.d.ts +6 -6
  223. package/dist/types/types/index.d.ts +12 -12
  224. package/dist/types/types/next-editor-plugin.d.ts +2 -8
  225. package/dist/types/types/performance-tracking.d.ts +4 -4
  226. package/dist/types/ufo/index.d.ts +1 -1
  227. package/dist/types/ui/BaseTheme/index.d.ts +1 -1
  228. package/dist/types/ui/FloatingToolbar/styles.d.ts +4 -4
  229. package/dist/types/ui/MediaSingle/styled.d.ts +1 -1
  230. package/dist/types/ui/index.d.ts +4 -4
  231. package/dist/types/ui-color/index.d.ts +1 -1
  232. package/dist/types/utils/get-performance-options.d.ts +1 -1
  233. package/dist/types/utils/index.d.ts +6 -6
  234. package/dist/types/validator.d.ts +1 -1
  235. package/dist/types-ts4.5/analytics/index.d.ts +1 -1
  236. package/dist/types-ts4.5/analytics/types/index.d.ts +3 -3
  237. package/dist/types-ts4.5/card/LinkToolbarButtonGroup.d.ts +1 -1
  238. package/dist/types-ts4.5/card/index.d.ts +1 -1
  239. package/dist/types-ts4.5/element-browser/ViewMore.d.ts +1 -1
  240. package/dist/types-ts4.5/element-browser/components/ElementList/EmptyState.d.ts +1 -1
  241. package/dist/types-ts4.5/extensibility/index.d.ts +1 -1
  242. package/dist/types-ts4.5/extensions/index.d.ts +1 -1
  243. package/dist/types-ts4.5/extensions/types/index.d.ts +2 -2
  244. package/dist/types-ts4.5/guideline/index.d.ts +3 -3
  245. package/dist/types-ts4.5/i18n/cs.d.ts +1 -0
  246. package/dist/types-ts4.5/i18n/da.d.ts +1 -0
  247. package/dist/types-ts4.5/i18n/de.d.ts +1 -0
  248. package/dist/types-ts4.5/i18n/en.d.ts +1 -0
  249. package/dist/types-ts4.5/i18n/en_GB.d.ts +1 -0
  250. package/dist/types-ts4.5/i18n/en_ZZ.d.ts +1 -0
  251. package/dist/types-ts4.5/i18n/es.d.ts +1 -0
  252. package/dist/types-ts4.5/i18n/fi.d.ts +1 -0
  253. package/dist/types-ts4.5/i18n/fr.d.ts +1 -0
  254. package/dist/types-ts4.5/i18n/hu.d.ts +1 -0
  255. package/dist/types-ts4.5/i18n/it.d.ts +1 -0
  256. package/dist/types-ts4.5/i18n/ja.d.ts +1 -0
  257. package/dist/types-ts4.5/i18n/ko.d.ts +1 -0
  258. package/dist/types-ts4.5/i18n/nb.d.ts +1 -0
  259. package/dist/types-ts4.5/i18n/nl.d.ts +1 -0
  260. package/dist/types-ts4.5/i18n/pl.d.ts +1 -0
  261. package/dist/types-ts4.5/i18n/pt_BR.d.ts +1 -0
  262. package/dist/types-ts4.5/i18n/ru.d.ts +1 -0
  263. package/dist/types-ts4.5/i18n/sv.d.ts +1 -0
  264. package/dist/types-ts4.5/i18n/th.d.ts +1 -0
  265. package/dist/types-ts4.5/i18n/tr.d.ts +1 -0
  266. package/dist/types-ts4.5/i18n/uk.d.ts +1 -0
  267. package/dist/types-ts4.5/i18n/vi.d.ts +1 -0
  268. package/dist/types-ts4.5/i18n/zh.d.ts +1 -0
  269. package/dist/types-ts4.5/i18n/zh_TW.d.ts +1 -0
  270. package/dist/types-ts4.5/link/index.d.ts +3 -3
  271. package/dist/types-ts4.5/lists/index.d.ts +3 -3
  272. package/dist/types-ts4.5/lists/replace-content.d.ts +1 -1
  273. package/dist/types-ts4.5/mark/commands.d.ts +5 -0
  274. package/dist/types-ts4.5/mark/index.d.ts +2 -2
  275. package/dist/types-ts4.5/media-inline/index.d.ts +1 -1
  276. package/dist/types-ts4.5/media-inline/views/frame.d.ts +1 -1
  277. package/dist/types-ts4.5/messages/card.d.ts +20 -0
  278. package/dist/types-ts4.5/portal/index.d.ts +1 -1
  279. package/dist/types-ts4.5/preset/index.d.ts +1 -1
  280. package/dist/types-ts4.5/preset/plugin-injection-api.d.ts +1 -1
  281. package/dist/types-ts4.5/provider-factory/quick-insert-provider.d.ts +1 -1
  282. package/dist/types-ts4.5/provider-factory.d.ts +2 -2
  283. package/dist/types-ts4.5/react-node-view/index.d.ts +1 -1
  284. package/dist/types-ts4.5/selection/index.d.ts +2 -2
  285. package/dist/types-ts4.5/styles/index.d.ts +4 -4
  286. package/dist/types-ts4.5/types/feature-flags.d.ts +6 -6
  287. package/dist/types-ts4.5/types/index.d.ts +12 -12
  288. package/dist/types-ts4.5/types/performance-tracking.d.ts +4 -4
  289. package/dist/types-ts4.5/ufo/index.d.ts +1 -1
  290. package/dist/types-ts4.5/ui/BaseTheme/index.d.ts +1 -1
  291. package/dist/types-ts4.5/ui/FloatingToolbar/styles.d.ts +4 -4
  292. package/dist/types-ts4.5/ui/MediaSingle/styled.d.ts +1 -1
  293. package/dist/types-ts4.5/ui/index.d.ts +4 -4
  294. package/dist/types-ts4.5/ui-color/index.d.ts +1 -1
  295. package/dist/types-ts4.5/utils/get-performance-options.d.ts +1 -1
  296. package/dist/types-ts4.5/utils/index.d.ts +6 -6
  297. package/dist/types-ts4.5/validator.d.ts +1 -1
  298. package/package.json +7 -6
  299. package/report.api.md +6 -5
@@ -37,146 +37,144 @@ export const TableSharedCssClassName = {
37
37
 
38
38
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Appears safe to auto-fix, but leaving it up to the team to remediate as the readability only gets worse with autofixing
39
39
  const tableSharedStyle = () => css`
40
- ${tableCellBackgroundStyleOverride()}
41
- .${TableSharedCssClassName.TABLE_CONTAINER} {
42
- position: relative;
43
- margin: 0 auto ${"var(--ds-space-200, 16px)"};
44
- box-sizing: border-box;
40
+ ${tableCellBackgroundStyleOverride()}
41
+ .${TableSharedCssClassName.TABLE_CONTAINER} {
42
+ position: relative;
43
+ margin: 0 auto ${"var(--ds-space-200, 16px)"};
44
+ box-sizing: border-box;
45
45
 
46
- /**
46
+ /**
47
47
  * Fix block top alignment inside table cells.
48
48
  */
49
- .decisionItemView-content-wrap:first-of-type > div {
50
- margin-top: 0;
51
- }
52
- }
53
- .${TableSharedCssClassName.TABLE_CONTAINER}[data-number-column='true'] {
54
- padding-left: ${akEditorTableNumberColumnWidth - 1}px;
55
- clear: both;
56
- }
57
-
58
- .${TableSharedCssClassName.TABLE_RESIZER_CONTAINER} {
59
- will-change: width, margin-left;
60
- }
61
-
62
- .${TableSharedCssClassName.TABLE_RESIZER_CONTAINER} table {
63
- will-change: width;
64
- }
65
-
66
- .${TableSharedCssClassName.TABLE_NODE_WRAPPER} > table {
67
- margin: ${"var(--ds-space-300, 24px)"} 0 0 0;
68
- }
69
-
70
- .${TableSharedCssClassName.TABLE_CONTAINER} > table,
71
- .${TableSharedCssClassName.TABLE_STICKY_WRAPPER} > table {
72
- margin: ${"var(--ds-space-300, 24px)"} ${"var(--ds-space-100, 8px)"} 0 0;
73
- }
74
-
75
- /* avoid applying styles to nested tables (possible via extensions) */
76
- .${TableSharedCssClassName.TABLE_CONTAINER} > table,
77
- .${TableSharedCssClassName.TABLE_NODE_WRAPPER} > table,
78
- .${TableSharedCssClassName.TABLE_STICKY_WRAPPER} > table {
79
- border-collapse: collapse;
80
- border: ${tableCellBorderWidth}px solid
81
- ${`var(--ds-background-accent-gray-subtler, ${akEditorTableBorder})`};
82
- table-layout: fixed;
83
- font-size: 1em;
84
- width: 100%;
85
-
86
- &[data-autosize='true'] {
87
- table-layout: auto;
88
- }
89
-
90
- & {
91
- * {
92
- box-sizing: border-box;
93
- }
94
- hr {
95
- box-sizing: content-box;
96
- }
97
-
98
- tbody {
99
- border-bottom: none;
100
- }
101
- th td {
102
- background-color: ${"var(--ds-background-neutral-subtle, white)"};
103
- }
104
- th,
105
- td {
106
- min-width: ${tableCellMinWidth}px;
107
- font-weight: normal;
108
- vertical-align: top;
109
- border: 1px solid
110
- ${`var(--ds-background-accent-gray-subtler, ${akEditorTableBorder})`};
111
- border-right-width: 0;
112
- border-bottom-width: 0;
113
- padding: ${"var(--ds-space-100, 8px)"};
114
- /* https://stackoverflow.com/questions/7517127/borders-not-shown-in-firefox-with-border-collapse-on-table-position-relative-o */
115
- ${browser.gecko || browser.ie || browser.mac && browser.chrome ? 'background-clip: padding-box;' : ''}
116
-
117
- > :first-child:not(style),
49
+ .decisionItemView-content-wrap:first-of-type > div {
50
+ margin-top: 0;
51
+ }
52
+ }
53
+ .${TableSharedCssClassName.TABLE_CONTAINER}[data-number-column='true'] {
54
+ padding-left: ${akEditorTableNumberColumnWidth - 1}px;
55
+ clear: both;
56
+ }
57
+
58
+ .${TableSharedCssClassName.TABLE_RESIZER_CONTAINER} {
59
+ will-change: width, margin-left;
60
+ }
61
+
62
+ .${TableSharedCssClassName.TABLE_RESIZER_CONTAINER} table {
63
+ will-change: width;
64
+ }
65
+
66
+ .${TableSharedCssClassName.TABLE_NODE_WRAPPER} > table {
67
+ margin: ${"var(--ds-space-300, 24px)"} 0 0 0;
68
+ }
69
+
70
+ .${TableSharedCssClassName.TABLE_CONTAINER} > table,
71
+ .${TableSharedCssClassName.TABLE_STICKY_WRAPPER} > table {
72
+ margin: ${"var(--ds-space-300, 24px)"} ${"var(--ds-space-100, 8px)"} 0 0;
73
+ }
74
+
75
+ /* avoid applying styles to nested tables (possible via extensions) */
76
+ .${TableSharedCssClassName.TABLE_CONTAINER} > table,
77
+ .${TableSharedCssClassName.TABLE_NODE_WRAPPER} > table,
78
+ .${TableSharedCssClassName.TABLE_STICKY_WRAPPER} > table {
79
+ border-collapse: collapse;
80
+ border: ${tableCellBorderWidth}px solid
81
+ ${`var(--ds-background-accent-gray-subtler, ${akEditorTableBorder})`};
82
+ table-layout: fixed;
83
+ font-size: 1em;
84
+ width: 100%;
85
+
86
+ &[data-autosize='true'] {
87
+ table-layout: auto;
88
+ }
89
+
90
+ & {
91
+ * {
92
+ box-sizing: border-box;
93
+ }
94
+ hr {
95
+ box-sizing: content-box;
96
+ }
97
+
98
+ tbody {
99
+ border-bottom: none;
100
+ }
101
+ th td {
102
+ background-color: ${"var(--ds-background-neutral-subtle, white)"};
103
+ }
104
+ th,
105
+ td {
106
+ min-width: ${tableCellMinWidth}px;
107
+ font-weight: normal;
108
+ vertical-align: top;
109
+ border: 1px solid ${`var(--ds-background-accent-gray-subtler, ${akEditorTableBorder})`};
110
+ border-right-width: 0;
111
+ border-bottom-width: 0;
112
+ padding: ${"var(--ds-space-100, 8px)"};
113
+ /* https://stackoverflow.com/questions/7517127/borders-not-shown-in-firefox-with-border-collapse-on-table-position-relative-o */
114
+ ${browser.gecko || browser.ie || browser.mac && browser.chrome ? 'background-clip: padding-box;' : ''}
115
+
116
+ > :first-child:not(style),
118
117
  > style:first-child + * {
119
- margin-top: 0;
120
- }
121
-
122
- > .ProseMirror-gapcursor:first-child + *,
123
- > style:first-child + .ProseMirror-gapcursor + * {
124
- margin-top: 0;
125
- }
126
-
127
- > .ProseMirror-gapcursor:first-child + span + *,
128
- > style:first-child + .ProseMirror-gapcursor + span + * {
129
- margin-top: 0;
130
- }
131
-
132
- th p:not(:first-of-type),
133
- td p:not(:first-of-type) {
134
- margin-top: ${"var(--ds-space-150, 12px)"};
135
- }
136
- }
137
- th {
138
- background-color: ${`var(--ds-background-accent-gray-subtlest, ${akEditorTableToolbar})`};
139
- text-align: left;
140
-
141
- /* only apply this styling to codeblocks in default background headercells */
142
- /* TODO this needs to be overhauled as it relies on unsafe selectors */
143
- &:not([style]):not(.danger) {
144
- .${CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER}:not(.danger) {
145
- background-color: ${"var(--ds-surface-raised, rgb(235, 237, 240))"};
146
-
147
- :not(.${akEditorSelectedNodeClassName}) {
148
- box-shadow: 0px 0px 0px 1px
149
- ${"var(--ds-border, transparent)"};
150
- }
151
-
152
- .${CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER} {
153
- background-image: ${overflowShadow({
118
+ margin-top: 0;
119
+ }
120
+
121
+ > .ProseMirror-gapcursor:first-child + *,
122
+ > style:first-child + .ProseMirror-gapcursor + * {
123
+ margin-top: 0;
124
+ }
125
+
126
+ > .ProseMirror-gapcursor:first-child + span + *,
127
+ > style:first-child + .ProseMirror-gapcursor + span + * {
128
+ margin-top: 0;
129
+ }
130
+
131
+ th p:not(:first-of-type),
132
+ td p:not(:first-of-type) {
133
+ margin-top: ${"var(--ds-space-150, 12px)"};
134
+ }
135
+ }
136
+ th {
137
+ background-color: ${`var(--ds-background-accent-gray-subtlest, ${akEditorTableToolbar})`};
138
+ text-align: left;
139
+
140
+ /* only apply this styling to codeblocks in default background headercells */
141
+ /* TODO this needs to be overhauled as it relies on unsafe selectors */
142
+ &:not([style]):not(.danger) {
143
+ .${CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER}:not(.danger) {
144
+ background-color: ${"var(--ds-surface-raised, rgb(235, 237, 240))"};
145
+
146
+ :not(.${akEditorSelectedNodeClassName}) {
147
+ box-shadow: 0px 0px 0px 1px ${"var(--ds-border, transparent)"};
148
+ }
149
+
150
+ .${CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER} {
151
+ background-image: ${overflowShadow({
154
152
  leftCoverWidth: "var(--ds-space-300, 24px)"
155
153
  })};
156
154
 
157
- background-color: ${"var(--ds-background-neutral, rgb(235, 237, 240))"};
158
- }
155
+ background-color: ${"var(--ds-background-neutral, rgb(235, 237, 240))"};
156
+ }
159
157
 
160
- .${CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER} {
161
- background-color: ${"var(--ds-background-neutral, rgb(226, 229, 233))"};
162
- }
158
+ .${CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER} {
159
+ background-color: ${"var(--ds-background-neutral, rgb(226, 229, 233))"};
160
+ }
163
161
 
164
- /* this is only relevant to the element taken care of by renderer */
165
- > [data-ds--code--code-block] {
166
- background-image: ${overflowShadow({
162
+ /* this is only relevant to the element taken care of by renderer */
163
+ > [data-ds--code--code-block] {
164
+ background-image: ${overflowShadow({
167
165
  leftCoverWidth: "var(--ds-space-300, 24px)"
168
166
  })}!important;
169
167
 
170
- background-color: ${"var(--ds-background-neutral, rgb(235, 237, 240))"}!important;
168
+ background-color: ${"var(--ds-background-neutral, rgb(235, 237, 240))"}!important;
171
169
 
172
- // selector lives inside @atlaskit/code
173
- --ds--code--line-number-bg-color: ${"var(--ds-background-neutral, rgb(226, 229, 233))"};
174
- }
175
- }
176
- }
177
- }
178
- }
179
- }
170
+ // selector lives inside @atlaskit/code
171
+ --ds--code--line-number-bg-color: ${"var(--ds-background-neutral, rgb(226, 229, 233))"};
172
+ }
173
+ }
174
+ }
175
+ }
176
+ }
177
+ }
180
178
  `;
181
179
  export const calcTableWidth = (layout, containerWidth, addControllerPadding = true) => {
182
180
  switch (layout) {
@@ -7,58 +7,58 @@ export const TaskDecisionSharedCssClassName = {
7
7
  TASK_ITEM: 'task-item'
8
8
  };
9
9
  export const tasksAndDecisionsStyles = css`
10
- .ProseMirror {
11
- .taskItemView-content-wrap,
12
- .${TaskDecisionSharedCssClassName.DECISION_CONTAINER} {
13
- position: relative;
14
- min-width: ${akEditorTableCellMinWidth}px;
15
- }
10
+ .ProseMirror {
11
+ .taskItemView-content-wrap,
12
+ .${TaskDecisionSharedCssClassName.DECISION_CONTAINER} {
13
+ position: relative;
14
+ min-width: ${akEditorTableCellMinWidth}px;
15
+ }
16
16
 
17
- .${TaskDecisionSharedCssClassName.DECISION_CONTAINER} {
18
- margin-top: 0;
19
- }
17
+ .${TaskDecisionSharedCssClassName.DECISION_CONTAINER} {
18
+ margin-top: 0;
19
+ }
20
20
 
21
- .${TaskDecisionSharedCssClassName.TASK_CONTAINER} {
22
- span[contenteditable='false'] {
23
- height: ${akEditorLineHeight}em;
24
- }
25
- }
21
+ .${TaskDecisionSharedCssClassName.TASK_CONTAINER} {
22
+ span[contenteditable='false'] {
23
+ height: ${akEditorLineHeight}em;
24
+ }
25
+ }
26
26
 
27
- .${TaskDecisionSharedCssClassName.TASK_ITEM} {
28
- line-height: ${akEditorLineHeight};
29
- }
30
- }
27
+ .${TaskDecisionSharedCssClassName.TASK_ITEM} {
28
+ line-height: ${akEditorLineHeight};
29
+ }
30
+ }
31
31
 
32
- div[data-task-local-id] {
33
- span[contenteditable='false'] {
34
- height: ${akEditorLineHeight}em;
35
- }
36
- span[contenteditable='false'] + div {
37
- line-height: ${akEditorLineHeight}em;
38
- }
39
- }
32
+ div[data-task-local-id] {
33
+ span[contenteditable='false'] {
34
+ height: ${akEditorLineHeight}em;
35
+ }
36
+ span[contenteditable='false'] + div {
37
+ line-height: ${akEditorLineHeight}em;
38
+ }
39
+ }
40
40
 
41
- div[data-task-list-local-id] {
42
- margin: ${"var(--ds-space-150, 12px)"} 0 0 0;
43
- }
41
+ div[data-task-list-local-id] {
42
+ margin: ${"var(--ds-space-150, 12px)"} 0 0 0;
43
+ }
44
44
 
45
- div[data-task-list-local-id] {
46
- // If task item is not first in the list then set margin top to 4px.
47
- div + div {
48
- margin-top: ${"var(--ds-space-050, 4px)"};
49
- }
50
- }
45
+ div[data-task-list-local-id] {
46
+ // If task item is not first in the list then set margin top to 4px.
47
+ div + div {
48
+ margin-top: ${"var(--ds-space-050, 4px)"};
49
+ }
50
+ }
51
51
 
52
- // If task list is not first in the document then set margin top to 4px.
53
- div[data-task-list-local-id] div[data-task-list-local-id] {
54
- margin-top: ${"var(--ds-space-050, 4px)"};
55
- margin-left: ${"var(--ds-space-300, 24px)"};
56
- }
52
+ // If task list is not first in the document then set margin top to 4px.
53
+ div[data-task-list-local-id] div[data-task-list-local-id] {
54
+ margin-top: ${"var(--ds-space-050, 4px)"};
55
+ margin-left: ${"var(--ds-space-300, 24px)"};
56
+ }
57
57
 
58
- /* When action list is inside panel */
59
- .ak-editor-panel__content {
60
- > div[data-task-list-local-id]:first-child {
61
- margin: 0 0 0 0 !important;
62
- }
63
- }
58
+ /* When action list is inside panel */
59
+ .ak-editor-panel__content {
60
+ > div[data-task-list-local-id]:first-child {
61
+ margin: 0 0 0 0 !important;
62
+ }
63
+ }
64
64
  `;
@@ -9,21 +9,21 @@ const blockUnsupportedSelector = `.${UnsupportedSharedCssClassName.BLOCK_CONTAIN
9
9
 
10
10
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Nested `getSelectionStyles` would need a rebuild to autofix
11
11
  export const unsupportedStyles = css`
12
- ${blockUnsupportedSelector}, ${inlineUnsupportedSelector} {
13
- cursor: pointer;
14
- }
12
+ ${blockUnsupportedSelector}, ${inlineUnsupportedSelector} {
13
+ cursor: pointer;
14
+ }
15
15
 
16
- .${akEditorSelectedNodeClassName}${blockUnsupportedSelector},
17
- .${akEditorSelectedNodeClassName}${inlineUnsupportedSelector} {
18
- ${getSelectionStyles([SelectionStyle.Background, SelectionStyle.Border])}
19
- }
16
+ .${akEditorSelectedNodeClassName}${blockUnsupportedSelector},
17
+ .${akEditorSelectedNodeClassName}${inlineUnsupportedSelector} {
18
+ ${getSelectionStyles([SelectionStyle.Background, SelectionStyle.Border])}
19
+ }
20
20
 
21
- .danger {
22
- .${akEditorSelectedNodeClassName}${blockUnsupportedSelector},
23
- .${akEditorSelectedNodeClassName}${inlineUnsupportedSelector} {
24
- border: ${akEditorSelectedBorderSize}px solid
25
- ${`var(--ds-border-danger, ${akEditorDeleteBorder})`};
26
- background-color: ${`var(--ds-blanket-danger, ${akEditorDeleteBackgroundWithOpacity})`};
27
- }
28
- }
21
+ .danger {
22
+ .${akEditorSelectedNodeClassName}${blockUnsupportedSelector},
23
+ .${akEditorSelectedNodeClassName}${inlineUnsupportedSelector} {
24
+ border: ${akEditorSelectedBorderSize}px solid
25
+ ${`var(--ds-border-danger, ${akEditorDeleteBorder})`};
26
+ background-color: ${`var(--ds-blanket-danger, ${akEditorDeleteBackgroundWithOpacity})`};
27
+ }
28
+ }
29
29
  `;
@@ -16,49 +16,49 @@ export let StatusClassNames = /*#__PURE__*/function (StatusClassNames) {
16
16
 
17
17
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
18
18
  const buttonStyles = css`
19
- position: absolute;
20
- display: flex;
21
- height: 28px;
22
- width: 28px;
23
- margin: ${"var(--ds-space-075, 6px)"};
24
- right: 0;
25
- top: 0;
26
- border: 2px solid ${"var(--ds-border, #fff)"};
27
- border-radius: ${"var(--ds-border-radius-100, 4px)"};
28
- background-color: ${`var(--ds-surface-overlay, ${N20})`};
29
- justify-content: center;
30
- align-items: center;
31
- cursor: pointer;
19
+ position: absolute;
20
+ display: flex;
21
+ height: 28px;
22
+ width: 28px;
23
+ margin: ${"var(--ds-space-075, 6px)"};
24
+ right: 0;
25
+ top: 0;
26
+ border: 2px solid ${"var(--ds-border, #fff)"};
27
+ border-radius: ${"var(--ds-border-radius-100, 4px)"};
28
+ background-color: ${`var(--ds-surface-overlay, ${N20})`};
29
+ justify-content: center;
30
+ align-items: center;
31
+ cursor: pointer;
32
32
 
33
- &:hover {
34
- background-color: ${`var(--ds-surface-overlay-hovered, ${N30})`};
35
- }
33
+ &:hover {
34
+ background-color: ${`var(--ds-surface-overlay-hovered, ${N30})`};
35
+ }
36
36
 
37
- &:active {
38
- background-color: ${"var(--ds-surface-overlay-pressed, rgba(179, 212, 255, 0.6))"};
39
- }
37
+ &:active {
38
+ background-color: ${"var(--ds-surface-overlay-pressed, rgba(179, 212, 255, 0.6))"};
39
+ }
40
40
 
41
- &.${SORTABLE_COLUMN_ICON_CLASSNAME}__not-allowed {
42
- cursor: not-allowed;
43
- }
41
+ &.${SORTABLE_COLUMN_ICON_CLASSNAME}__not-allowed {
42
+ cursor: not-allowed;
43
+ }
44
44
  `;
45
45
 
46
46
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
47
47
  const iconWrapperStyles = css`
48
- width: 8px;
49
- height: 12px;
50
- transition: transform 0.3s cubic-bezier(0.15, 1, 0.3, 1);
51
- transform-origin: 50% 50%;
52
- display: flex;
53
- justify-content: center;
48
+ width: 8px;
49
+ height: 12px;
50
+ transition: transform 0.3s cubic-bezier(0.15, 1, 0.3, 1);
51
+ transform-origin: 50% 50%;
52
+ display: flex;
53
+ justify-content: center;
54
54
 
55
- &.${StatusClassNames.DESC} {
56
- transform: rotate(-180deg);
57
- }
55
+ &.${StatusClassNames.DESC} {
56
+ transform: rotate(-180deg);
57
+ }
58
58
 
59
- &.${SORTABLE_COLUMN_ICON_CLASSNAME}-inactive {
60
- opacity: 0.7;
61
- }
59
+ &.${SORTABLE_COLUMN_ICON_CLASSNAME}-inactive {
60
+ opacity: 0.7;
61
+ }
62
62
  `;
63
63
 
64
64
  // The icon is created with CSS due to the following Firefox issue: https://product-fabric.atlassian.net/browse/ED-8001
@@ -7,7 +7,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
7
7
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
8
8
  import Layer from '../Layer';
9
9
  const packageName = "@atlaskit/editor-common";
10
- const packageVersion = "81.1.5";
10
+ const packageVersion = "81.2.1";
11
11
  const halfFocusRing = 1;
12
12
  const dropOffset = '0, 8';
13
13
  class DropList extends Component {
@@ -114,21 +114,21 @@ const containerStyles = styleProps => {
114
114
  const contentStyles = styleProps => () =>
115
115
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
116
116
  css`
117
- padding-top: ${styleProps.expanded ? "var(--ds-space-100, 8px)" : "var(--ds-space-0, 0px)"};
118
- padding-right: ${"var(--ds-space-100, 8px)"};
119
- padding-left: ${"var(--ds-space-300, 24px)"};
120
- margin-left: ${"var(--ds-space-050, 4px)"};
121
- display: flow-root;
117
+ padding-top: ${styleProps.expanded ? "var(--ds-space-100, 8px)" : "var(--ds-space-0, 0px)"};
118
+ padding-right: ${"var(--ds-space-100, 8px)"};
119
+ padding-left: ${"var(--ds-space-300, 24px)"};
120
+ margin-left: ${"var(--ds-space-050, 4px)"};
121
+ display: flow-root;
122
122
 
123
- // The follow rules inside @supports block are added as a part of ED-8893
124
- // The fix is targeting mobile bridge on iOS 12 or below,
125
- // We should consider remove this fix when we no longer support iOS 12
126
- @supports not (display: flow-root) {
127
- width: 100%;
128
- box-sizing: border-box;
129
- }
123
+ // The follow rules inside @supports block are added as a part of ED-8893
124
+ // The fix is targeting mobile bridge on iOS 12 or below,
125
+ // We should consider remove this fix when we no longer support iOS 12
126
+ @supports not (display: flow-root) {
127
+ width: 100%;
128
+ box-sizing: border-box;
129
+ }
130
130
 
131
- ${!styleProps.expanded ? `
131
+ ${!styleProps.expanded ? `
132
132
  .expand-content-wrapper, .nestedExpand-content-wrapper {
133
133
  /* We visually hide the content here to preserve the content during copy+paste */
134
134
  /* Do not add text nowrap here because inline comment navigation depends on the location of the text */
@@ -140,7 +140,7 @@ css`
140
140
  user-select: none;
141
141
  }
142
142
  ` : ''}
143
- `;
143
+ `;
144
144
  const titleInputStyles = () => css({
145
145
  outline: 'none',
146
146
  border: 'none',
@@ -4,10 +4,10 @@ export const iconOnlySpacing = {
4
4
  '&&': {
5
5
  padding: '0px',
6
6
  /**
7
- Increased specificity here because css for .hyperlink-open-link defined in
8
- packages/editor/editor-core/src/ui/ContentStyles/index.tsx file
9
- overrides padding left-right 2px with 4px.
10
- */
7
+ Increased specificity here because css for .hyperlink-open-link defined in
8
+ packages/editor/editor-core/src/ui/ContentStyles/index.tsx file
9
+ overrides padding left-right 2px with 4px.
10
+ */
11
11
  '&&[href]': {
12
12
  padding: '0 2px'
13
13
  }