@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
@@ -321,6 +321,7 @@ export default {
321
321
  'fabric.editor.pageActionsLabel': 'Sidåtgärder',
322
322
  'fabric.editor.panel.backgroundColor': 'Bakgrundsfärg',
323
323
  'fabric.editor.panel.emoji': 'Lägg till emoji',
324
+ 'fabric.editor.panel.panelsGroup': 'Paneltyper',
324
325
  'fabric.editor.pasteOptions': 'Inklistringsalternativ',
325
326
  'fabric.editor.pastePlainText': 'Klistra in oformaterad text',
326
327
  'fabric.editor.placeholderAltText': 'Beskriv den här bilden med alternativ text',
@@ -321,6 +321,7 @@ export default {
321
321
  'fabric.editor.pageActionsLabel': 'การดำเนินการของหน้าข้อมูล',
322
322
  'fabric.editor.panel.backgroundColor': 'สีพื้นหลัง',
323
323
  'fabric.editor.panel.emoji': 'เพิ่มเอโมจิ',
324
+ 'fabric.editor.panel.panelsGroup': 'ประเภทแผง',
324
325
  'fabric.editor.pasteOptions': 'ตัวเลือกการวาง',
325
326
  'fabric.editor.pastePlainText': 'วางข้อความธรรมดา',
326
327
  'fabric.editor.placeholderAltText': 'อธิบายรูปภาพนี้ด้วยข้อความอธิบายรูปภาพ',
@@ -321,6 +321,7 @@ export default {
321
321
  'fabric.editor.pageActionsLabel': 'Sayfa işlemleri',
322
322
  'fabric.editor.panel.backgroundColor': 'Arkaplan rengi',
323
323
  'fabric.editor.panel.emoji': 'Emoji ekle',
324
+ 'fabric.editor.panel.panelsGroup': 'Panel Türleri',
324
325
  'fabric.editor.pasteOptions': 'Yapıştırma seçenekleri',
325
326
  'fabric.editor.pastePlainText': 'Düz metin olarak yapıştır',
326
327
  'fabric.editor.placeholderAltText': 'Bu görseli bir alternatif metinle açıklayın',
@@ -112,7 +112,7 @@ export default {
112
112
  'fabric.editor.decision': 'Рішення',
113
113
  'fabric.editor.decision.description': 'Зафіксувати рішення, щоб його було легко знайти',
114
114
  'fabric.editor.decisionPlaceholder': 'Додати рішення...',
115
- 'fabric.editor.decreaseColumnSize': 'Зменшити розмір стовпця',
115
+ 'fabric.editor.decreaseColumnSize': 'Звузити стовпець',
116
116
  'fabric.editor.decreaseSize': 'Зменшити розмір',
117
117
  'fabric.editor.defaultAltText': 'Документ',
118
118
  'fabric.editor.description': 'Опис',
@@ -239,7 +239,7 @@ export default {
239
239
  'fabric.editor.imageBorderSize': 'Розмір',
240
240
  'fabric.editor.imageBorderSubtle': 'Тонка',
241
241
  'fabric.editor.improvement': 'Покращення',
242
- 'fabric.editor.increaseColumnSize': 'Збільшити розмір стовпця',
242
+ 'fabric.editor.increaseColumnSize': 'Розширити стовпець',
243
243
  'fabric.editor.increaseSize': 'Збільшити розмір',
244
244
  'fabric.editor.indent': 'Збільшити відступ',
245
245
  'fabric.editor.info': 'Інформація',
@@ -321,6 +321,7 @@ export default {
321
321
  'fabric.editor.pageActionsLabel': 'Дії на сторінці',
322
322
  'fabric.editor.panel.backgroundColor': 'Колір фону',
323
323
  'fabric.editor.panel.emoji': 'Додати емодзі',
324
+ 'fabric.editor.panel.panelsGroup': 'Типи панелей',
324
325
  'fabric.editor.pasteOptions': 'Параметри вставки',
325
326
  'fabric.editor.pastePlainText': 'Вставити текст без форматування',
326
327
  'fabric.editor.placeholderAltText': 'Опишіть це зображення за допомогою тексту заміщення',
@@ -393,12 +394,12 @@ export default {
393
394
  'fabric.editor.tableSizeSelectorButton': '{numberOfColumns} × {numberOfRows}',
394
395
  'fabric.editor.tableSizeSelectorPopup': 'Засіб вибору розміру таблиці',
395
396
  'fabric.editor.tables.adjustColumn': 'Налаштувати стовпець',
396
- 'fabric.editor.tables.columnResizeLast': 'Ви можете змінити розмір тільки цього стовпця зліва.',
397
- 'fabric.editor.tables.columnResizeOverflow': 'Ви можете змінити розмір тільки цього стовпця, оскільки таблиця має панель прокрутки.',
398
- 'fabric.editor.tables.columnWidth': '{width, plural, one {Ширину стовпця змінено на {width} пікселя} few {Ширину стовпця змінено на {width} пікселі} many {Ширину стовпця змінено на {width} пікселів} other {Ширину стовпця змінено на {width} пікселів}}',
397
+ 'fabric.editor.tables.columnResizeLast': 'Розмір цього стовпця можна змінити тільки зліва.',
398
+ 'fabric.editor.tables.columnResizeOverflow': 'Розмір цього стовпця можна міняти лише за наявності в таблиці панелі прокрутки.',
399
+ 'fabric.editor.tables.columnWidth': '{width, plural, one {Ширину стовпця змінено на {width} піксель} few {Ширину стовпця змінено на {width} пікселі} many {Ширину стовпця змінено на {width} пікселів} other {Ширину стовпця змінено на {width} пікселя}}',
399
400
  'fabric.editor.tables.confirmDeleteLinkedModalMessage': 'Видалення розширення {nodeName} порушить роботу всього, що з ним пов’язано.',
400
401
  'fabric.editor.tables.confirmDeleteLinkedModalOKButton': 'Видалити',
401
- 'fabric.editor.tables.resizeStop': 'Змінення розміру зупинено',
402
+ 'fabric.editor.tables.resizeStop': 'Змінення розміру припинено',
402
403
  'fabric.editor.tables.resizeTable': 'Змінити розмір таблиці',
403
404
  'fabric.editor.tables.startedColumnResize': 'Змінення розміру стовпця розпочато',
404
405
  'fabric.editor.task': 'Завдання',
@@ -321,6 +321,7 @@ export default {
321
321
  'fabric.editor.pageActionsLabel': 'Thao tác trang',
322
322
  'fabric.editor.panel.backgroundColor': 'Màu nền',
323
323
  'fabric.editor.panel.emoji': 'Thêm biểu tượng cảm xúc',
324
+ 'fabric.editor.panel.panelsGroup': 'Các loại bảng điều khiển',
324
325
  'fabric.editor.pasteOptions': 'Tùy chọn dán',
325
326
  'fabric.editor.pastePlainText': 'Dán văn bản thuần túy',
326
327
  'fabric.editor.placeholderAltText': 'Mô tả hình ảnh này bằng văn bản thay thế',
@@ -102,7 +102,7 @@ export default {
102
102
  'fabric.editor.datasource.assetsObjects.description': '通过搜索和筛选插入来自 Jira Service Management 中的资产的对象',
103
103
  'fabric.editor.datasource.assetsObjectsGeneralAvailability': '资产',
104
104
  'fabric.editor.datasource.confluenceSearch': '插入 Confluence 列表',
105
- 'fabric.editor.datasource.confluenceSearch.description': '通过增强的搜索、筛选和配置插入来自 Confluence 的搜索结果列表。',
105
+ 'fabric.editor.datasource.confluenceSearch.description': '通过增强的搜索、筛选和配置来插入来自 Confluence 的搜索结果列表。',
106
106
  'fabric.editor.datasource.jiraIssue': 'Jira 事务',
107
107
  'fabric.editor.datasource.jiraIssue.description': '通过增强的搜索、筛选和配置插入来自 Jira Cloud 的 Jira 事务。',
108
108
  'fabric.editor.datasourceAppearanceTitle': '列表',
@@ -321,6 +321,7 @@ export default {
321
321
  'fabric.editor.pageActionsLabel': '页面操作',
322
322
  'fabric.editor.panel.backgroundColor': '背景颜色',
323
323
  'fabric.editor.panel.emoji': '添加表情',
324
+ 'fabric.editor.panel.panelsGroup': '面板类型',
324
325
  'fabric.editor.pasteOptions': '粘贴选项',
325
326
  'fabric.editor.pastePlainText': '粘贴纯文本',
326
327
  'fabric.editor.placeholderAltText': '用替代文本描述此图片',
@@ -448,7 +449,7 @@ export default {
448
449
  'fabric.editor.urlDescription': '以 URL 显示链接',
449
450
  'fabric.editor.urlTitle': 'URL',
450
451
  'fabric.editor.useMarkdown': '使用 Markdown',
451
- 'fabric.editor.viewAndAddCommentsOnMedia': '查看并添加评论',
452
+ 'fabric.editor.viewAndAddCommentsOnMedia': '查看和添加评论',
452
453
  'fabric.editor.viewCommentOnMedia': '查看评论',
453
454
  'fabric.editor.viewMore': '查看更多',
454
455
  'fabric.editor.visit': '在新窗口中打开链接',
@@ -321,6 +321,7 @@ export default {
321
321
  'fabric.editor.pageActionsLabel': '頁面動作',
322
322
  'fabric.editor.panel.backgroundColor': '背景顏色',
323
323
  'fabric.editor.panel.emoji': '新增表情符號',
324
+ 'fabric.editor.panel.panelsGroup': '面板類型',
324
325
  'fabric.editor.pasteOptions': '貼上選項',
325
326
  'fabric.editor.pastePlainText': '貼上純文字',
326
327
  'fabric.editor.placeholderAltText': '使用替代文字描述這張圖片',
@@ -129,10 +129,10 @@ var findGrandParentResolvedPos = function findGrandParentResolvedPos(tr, $from)
129
129
  };
130
130
  var findNestedTaskListsIndexAtSameLevel = function findNestedTaskListsIndexAtSameLevel(tr, $from) {
131
131
  /*
132
- Currently our cursor would be inside a pargraph of a list of type numbered/bullet list,
133
- we need to find the grandparent of the cursor which is the list at same level of taskList.
134
- We can get the root list item(inside which various lists are being resolved before outdenting) by going one depth above that list.
135
- */
132
+ Currently our cursor would be inside a pargraph of a list of type numbered/bullet list,
133
+ we need to find the grandparent of the cursor which is the list at same level of taskList.
134
+ We can get the root list item(inside which various lists are being resolved before outdenting) by going one depth above that list.
135
+ */
136
136
  var nestedListResolvedPos = findGrandParentResolvedPos(tr, $from);
137
137
  var rootListItem = nestedListResolvedPos === null || nestedListResolvedPos === void 0 ? void 0 : nestedListResolvedPos.node(nestedListResolvedPos.depth - 1);
138
138
  var nestedTaskListsIndexes = [];
@@ -160,10 +160,10 @@ export var processNestedTaskListsInSameLevel = function processNestedTaskListsIn
160
160
  });
161
161
 
162
162
  /*
163
- Wraps the taskLists present at each index mentioned in the nestedTaskListIndexesToWrap to the list above it.
164
- After each wrap the indexes changes since two lists are being merged into one,
165
- so we keep track of it and use it to access actual calculated taskList indexes.
166
- */
163
+ Wraps the taskLists present at each index mentioned in the nestedTaskListIndexesToWrap to the list above it.
164
+ After each wrap the indexes changes since two lists are being merged into one,
165
+ so we keep track of it and use it to access actual calculated taskList indexes.
166
+ */
167
167
  if (rootListItemStart) {
168
168
  var taskListsFixedNested = 0;
169
169
  nestedTaskListIndexesToWrap.forEach(function (index) {
@@ -28,14 +28,14 @@ export var wrapTaskListIntoListAbove = function wrapTaskListIntoListAbove(tr, ta
28
28
  var frag = Fragment.from(taskList.content);
29
29
 
30
30
  /*
31
- Delete the existing taskList at the same level and insert inside above list provided
32
- 1. To delete the tasklist, we need wrapping positions before and after it to completely delete it.
33
- $taskListStart.after() would give us closing position enclosed by node itself using it would remove only the contents of taskList
34
- so we add 1 to it to get the position after the taskList node and completly remove it.
35
- 2. Inserting the taskList at the end() position safe inserts the taskList to next available position which would lead to deleting and inserting taskList at same place.
36
- Reason: $previousListStart.end() gives us end position of listItem but we can add content only inside listItem not at same level
37
- so we subtract 1 to get the position inside the list item and insert the TaskList same level as paragraph/content inside listItem.
38
- */
31
+ Delete the existing taskList at the same level and insert inside above list provided
32
+ 1. To delete the tasklist, we need wrapping positions before and after it to completely delete it.
33
+ $taskListStart.after() would give us closing position enclosed by node itself using it would remove only the contents of taskList
34
+ so we add 1 to it to get the position after the taskList node and completly remove it.
35
+ 2. Inserting the taskList at the end() position safe inserts the taskList to next available position which would lead to deleting and inserting taskList at same place.
36
+ Reason: $previousListStart.end() gives us end position of listItem but we can add content only inside listItem not at same level
37
+ so we subtract 1 to get the position inside the list item and insert the TaskList same level as paragraph/content inside listItem.
38
+ */
39
39
  tr.delete($taskListStart.before(), $taskListStart.after() + 1);
40
40
  tr.insert($previousListStart.end() - 1, frag);
41
41
  };
@@ -55,17 +55,64 @@ export function filterChildrenBetween(doc, from, to, predicate) {
55
55
  });
56
56
  return results;
57
57
  }
58
+ export function transformNonTextNodesToText(from, to, tr) {
59
+ var doc = tr.doc;
60
+ var schema = doc.type.schema;
61
+ var _schema$nodes2 = schema.nodes,
62
+ mentionNodeType = _schema$nodes2.mention,
63
+ textNodeType = _schema$nodes2.text,
64
+ emojiNodeType = _schema$nodes2.emoji,
65
+ inlineCardNodeType = _schema$nodes2.inlineCard;
66
+ var nodesToChange = [];
67
+ doc.nodesBetween(from, to, function (node, pos, parent) {
68
+ if ([mentionNodeType, textNodeType, emojiNodeType, inlineCardNodeType].includes(node.type)) {
69
+ nodesToChange.push({
70
+ node: node,
71
+ pos: pos
72
+ });
73
+ }
74
+ });
75
+ nodesToChange.forEach(function (_ref) {
76
+ var node = _ref.node,
77
+ pos = _ref.pos;
78
+ if (node.type !== textNodeType) {
79
+ var newText = node.attrs.url ||
80
+ // url for inlineCard
81
+ node.attrs.text || "".concat(node.type.name, " text missing"); // fallback for missing text
82
+
83
+ var currentPos = tr.mapping.map(pos);
84
+ tr.replaceWith(currentPos, currentPos + node.nodeSize, schema.text(newText, node.marks));
85
+ } else if (node.text) {
86
+ // Find a valid start and end position because the text may be partially selected.
87
+ var startPositionInSelection = Math.max(pos, from);
88
+ var endPositionInSelection = Math.min(pos + node.nodeSize, to);
89
+ var textForReplacing = doc.textBetween(startPositionInSelection, endPositionInSelection);
90
+ var _newText = textForReplacing.replace(FIND_SMART_CHAR, function (match) {
91
+ var _SMART_TO_ASCII$match;
92
+ return (_SMART_TO_ASCII$match = SMART_TO_ASCII[match]) !== null && _SMART_TO_ASCII$match !== void 0 ? _SMART_TO_ASCII$match : match;
93
+ });
94
+ var currentStartPos = tr.mapping.map(startPositionInSelection);
95
+ var currentEndPos = tr.mapping.map(endPositionInSelection);
96
+ tr.replaceWith(currentStartPos, currentEndPos, schema.text(_newText, node.marks));
97
+ }
98
+ });
99
+ }
100
+
101
+ /**
102
+ * @private
103
+ * @deprecated Use {@link transformNonTextNodesToText} instead.
104
+ */
58
105
  export var transformSmartCharsMentionsAndEmojis = function transformSmartCharsMentionsAndEmojis(from, to, tr) {
59
106
  var schema = tr.doc.type.schema;
60
- var _schema$nodes2 = schema.nodes,
61
- mention = _schema$nodes2.mention,
62
- text = _schema$nodes2.text,
63
- emoji = _schema$nodes2.emoji;
107
+ var _schema$nodes3 = schema.nodes,
108
+ mention = _schema$nodes3.mention,
109
+ text = _schema$nodes3.text,
110
+ emoji = _schema$nodes3.emoji;
64
111
  // Traverse through all the nodes within the range and replace them with their plaintext counterpart
65
112
  var children = filterChildrenBetween(tr.doc, from, to, isNodeTextBlock(schema));
66
- children.forEach(function (_ref) {
67
- var node = _ref.node,
68
- pos = _ref.pos;
113
+ children.forEach(function (_ref2) {
114
+ var node = _ref2.node,
115
+ pos = _ref2.pos;
69
116
  if (node.type === mention || node.type === emoji) {
70
117
  // Convert gracefully when no text found, ProseMirror will blow up if you try to create a node with an empty string or undefined
71
118
  var replacementText = node.attrs.text;
@@ -85,7 +132,7 @@ export var applyMarkOnRange = function applyMarkOnRange(from, to, removeMark, ma
85
132
  var code = schema.marks.code;
86
133
  var inlineCard = schema.nodes.inlineCard;
87
134
  if (mark.type === code) {
88
- transformSmartCharsMentionsAndEmojis(from, to, tr);
135
+ getBooleanFF('platform.editor.simplify-inline-cards-in-code-blocks_jw6t1') ? transformNonTextNodesToText(from, to, tr) : transformSmartCharsMentionsAndEmojis(from, to, tr);
89
136
  }
90
137
  tr.doc.nodesBetween(tr.mapping.map(from), tr.mapping.map(to), function (node, pos) {
91
138
  if (getBooleanFF('platform.editor.allow-inline-comments-for-inline-nodes')) {
@@ -127,8 +174,8 @@ export var entireSelectionContainsMark = function entireSelectionContainsMark(ma
127
174
  return onlyContainsMark;
128
175
  };
129
176
  var toggleMarkInRange = function toggleMarkInRange(mark) {
130
- return function (_ref2) {
131
- var tr = _ref2.tr;
177
+ return function (_ref3) {
178
+ var tr = _ref3.tr;
132
179
  if (tr.selection instanceof CellSelection) {
133
180
  var _removeMark = true;
134
181
  var cells = [];
@@ -173,8 +220,8 @@ var toggleMarkInRange = function toggleMarkInRange(mark) {
173
220
  * @param attrs
174
221
  */
175
222
  export var toggleMark = function toggleMark(markType, attrs) {
176
- return function (_ref3) {
177
- var tr = _ref3.tr;
223
+ return function (_ref4) {
224
+ var tr = _ref4.tr;
178
225
  var mark = markType.create(attrs);
179
226
 
180
227
  // For cursor selections we can use the default behaviour.
@@ -196,8 +243,8 @@ export var toggleMark = function toggleMark(markType, attrs) {
196
243
  * A wrapper around ProseMirror removeMark and removeStoredMark, which handles mark removal in text, CellSelections and cursor stored marks.
197
244
  */
198
245
  export var removeMark = function removeMark(mark) {
199
- return function (_ref4) {
200
- var tr = _ref4.tr;
246
+ return function (_ref5) {
247
+ var tr = _ref5.tr;
201
248
  var selection = tr.selection;
202
249
  if (selection instanceof CellSelection) {
203
250
  selection.forEachCell(function (cell, cellPos) {
@@ -1,2 +1,2 @@
1
- export { transformSmartCharsMentionsAndEmojis, applyMarkOnRange, filterChildrenBetween, toggleMark, removeMark, entireSelectionContainsMark } from './commands';
1
+ export { transformSmartCharsMentionsAndEmojis, transformNonTextNodesToText, applyMarkOnRange, filterChildrenBetween, toggleMark, removeMark, entireSelectionContainsMark } from './commands';
2
2
  export { anyMarkActive, isMarkAllowedInRange, isMarkExcluded } from './text-formatting';
@@ -12,7 +12,7 @@ export var INLINE_IMAGE_BORDER_COLOR_CSS_VAR_KEY = '--editor-media-inline-image-
12
12
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Nested and dynamic css calls are violations, needs manual remediation
13
13
  var inlineImageHeight = function inlineImageHeight(height) {
14
14
  var margin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
15
- return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n /* Editor style */\n > .mediaInlineView-content-wrap > .", ",\n > :is(a, span[data-mark-type='border']) .mediaInlineView-content-wrap > .", ",\n /* Renderer style */\n > .", ",\n > :is(a, span[data-mark-type='border']) .", " {\n height: ", "px;\n transform: translateY(", "px);\n }\n"])), INLINE_IMAGE_WRAPPER_CLASS_NAME, INLINE_IMAGE_WRAPPER_CLASS_NAME, INLINE_IMAGE_WRAPPER_CLASS_NAME, INLINE_IMAGE_WRAPPER_CLASS_NAME, height, margin);
15
+ return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t/* Editor style */\n\t> .mediaInlineView-content-wrap > .", ",\n > :is(a, span[data-mark-type='border']) .mediaInlineView-content-wrap > .", ",\n /* Renderer style */\n > .", ",\n > :is(a, span[data-mark-type='border']) .", " {\n\t\theight: ", "px;\n\t\ttransform: translateY(", "px);\n\t}\n"])), INLINE_IMAGE_WRAPPER_CLASS_NAME, INLINE_IMAGE_WRAPPER_CLASS_NAME, INLINE_IMAGE_WRAPPER_CLASS_NAME, INLINE_IMAGE_WRAPPER_CLASS_NAME, height, margin);
16
16
  };
17
17
 
18
18
  /**
@@ -22,7 +22,7 @@ var inlineImageHeight = function inlineImageHeight(height) {
22
22
  * mapping
23
23
  */
24
24
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Nested and dynamic css calls are violations, needs manual remediation
25
- export var mediaInlineImageStyles = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n // p, h3, and action items\n .", " {\n height: ", "px;\n transform: translateY(-2px);\n }\n\n h1 {\n ", "\n }\n\n h2 {\n ", "\n }\n\n h3 {\n ", "\n }\n\n h4 {\n ", "\n }\n\n h5 {\n ", "\n }\n\n h6 {\n ", "\n }\n"])), INLINE_IMAGE_WRAPPER_CLASS_NAME, referenceHeights['p'], inlineImageHeight(referenceHeights['h1'], -3), inlineImageHeight(referenceHeights['h2'], -3), inlineImageHeight(referenceHeights['h3'], -2), inlineImageHeight(referenceHeights['h4'], -2), inlineImageHeight(referenceHeights['h5'], -2), inlineImageHeight(referenceHeights['h6'], -2));
25
+ export var mediaInlineImageStyles = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n\t// p, h3, and action items\n\t.", " {\n\t\theight: ", "px;\n\t\ttransform: translateY(-2px);\n\t}\n\n\th1 {\n\t\t", "\n\t}\n\n\th2 {\n\t\t", "\n\t}\n\n\th3 {\n\t\t", "\n\t}\n\n\th4 {\n\t\t", "\n\t}\n\n\th5 {\n\t\t", "\n\t}\n\n\th6 {\n\t\t", "\n\t}\n"])), INLINE_IMAGE_WRAPPER_CLASS_NAME, referenceHeights['p'], inlineImageHeight(referenceHeights['h1'], -3), inlineImageHeight(referenceHeights['h2'], -3), inlineImageHeight(referenceHeights['h3'], -2), inlineImageHeight(referenceHeights['h4'], -2), inlineImageHeight(referenceHeights['h5'], -2), inlineImageHeight(referenceHeights['h6'], -2));
26
26
  export var wrapperStyle = css({
27
27
  display: 'inline-flex',
28
28
  justifyContent: 'center',
@@ -80,6 +80,26 @@ export var messages = defineMessages({
80
80
  defaultMessage: 'Display an interactive preview of a link',
81
81
  description: 'Description for option to display link as an embedded object.'
82
82
  },
83
+ editDropdownExpandIconLabel: {
84
+ id: 'fabric.editor.editDropdownExpandIconLabel',
85
+ defaultMessage: 'Expand dropdown menu',
86
+ description: 'Text of an icon to expand the dropdown'
87
+ },
88
+ editDropdownTriggerTitle: {
89
+ id: 'fabric.editor.editDropdownTriggerTitle',
90
+ defaultMessage: 'Edit',
91
+ description: 'Text of a button to trigger opening an edit dropdown'
92
+ },
93
+ editDropdownEditLinkTitle: {
94
+ id: 'fabric.editor.editDropdownEditLinkTitle',
95
+ defaultMessage: 'Edit link',
96
+ description: 'Edit dropdown edit link button text'
97
+ },
98
+ editDropdownEditDatasourceTitle: {
99
+ id: 'fabric.editor.editDropdownEditDatasourceTitle',
100
+ defaultMessage: 'Edit search query',
101
+ description: 'Edit dropdown edit datasource button text'
102
+ },
83
103
  datasourceTitle: {
84
104
  id: 'fabric.editor.datasourceTitle',
85
105
  defaultMessage: 'Edit search query',
@@ -6,7 +6,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
6
6
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7
7
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
8
8
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
9
- var packageVersion = "81.1.5";
9
+ var packageVersion = "81.2.1";
10
10
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
11
11
  // Remove URL as it has UGC
12
12
  // TODO: Sanitise the URL instead of just removing it
@@ -16,4 +16,4 @@ var wrapLeft = '[layout="wrap-left"]';
16
16
  var wrapRight = '[layout="wrap-right"]';
17
17
 
18
18
  // 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.
19
- export var gapCursorStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n /* =============== GAP CURSOR ================== */\n .ProseMirror {\n &.", " {\n caret-color: transparent;\n }\n\n ", " {\n display: none;\n pointer-events: none;\n position: relative;\n\n & span {\n caret-color: transparent;\n position: absolute;\n height: 100%;\n width: 100%;\n display: block;\n }\n\n & span::after {\n animation: 1s ", " step-end infinite;\n border-left: 1px solid;\n content: '';\n display: block;\n position: absolute;\n top: 0;\n height: 100%;\n }\n &.-left span::after {\n left: ", ";\n }\n &.-right span::after {\n right: ", ";\n }\n & span[layout='full-width'],\n & span[layout='wide'],\n & span[layout='fixed-width'] {\n margin-left: 50%;\n transform: translateX(-50%);\n }\n &", " {\n float: right;\n }\n\n /* fix vertical alignment of gap cursor */\n &:first-of-type + ul,\n &:first-of-type + span + ul,\n &:first-of-type + ol,\n &:first-of-type + span + ol,\n &:first-of-type + pre,\n &:first-of-type + span + pre,\n &:first-of-type + blockquote,\n &:first-of-type + span + blockquote {\n margin-top: 0;\n }\n }\n &.ProseMirror-focused ", " {\n display: block;\n border-color: transparent;\n }\n }\n\n /* This hack below is for two images aligned side by side */\n ", "", " + span + ", ",\n ", "", " + span + ", ",\n ", " + ", " + ", ",\n ", " + ", " + span + ", ",\n ", " + ", " + ", ",\n ", " + ", " + span + ", ",\n ", " + ", " + ", ",\n ", " + ", " + span ", ",\n ", " + ", " + ", ",\n ", " + ", " + span + ", ",\n ", " + ", " {\n clear: none;\n }\n\n ", " + ", " + ", " > div,\n ", " + ", " + span + ", " > div,\n ", " + ", " + ", " > div,\n ", " + ", " + span + ", " > div,\n ", " + ", " + ", " > div,\n ", " + ", " + span + ", " > div,\n ", " + ", " + ", " > div,\n ", " + ", " + span + ", " > div {\n margin-right: 0;\n margin-left: 0;\n margin-bottom: 0;\n }\n\n ", " + ", ",\n ", " + ", " {\n float: left;\n }\n\n ", " + ", " + span + ", "::after,\n ", " + ", " + span + ", "::after,\n ", " + ", " + ", "::after,\n ", " + ", " + span + ", "::after,\n ", " + ", " + ", "::after,\n ", " + ", " + span + ", "::after {\n visibility: hidden;\n display: block;\n font-size: 0;\n content: ' ';\n clear: both;\n height: 0;\n }\n\n ", " + ", " + ", " + *,\n ", " + ", " + ", " + span + *,\n ", " + ", " + ", " + *,\n ", " + ", " + ", " + span + *,\n ", " + ", " + span + ", " + *,\n ", " + ", " + span + ", " + *,\n ", " + ", " + span + ", " + *,\n ", " + ", " + span + ", " + *,\n ", " + ", " + ", " + * > *,\n ", " + ", " + ", " + span + * > *,\n ", " + ", " + ", " + * > *,\n ", " + ", " + ", " + span + * > *,\n ", " + ", " + span + ", " + * > *,\n ", " + ", " + span + ", " + * > *,\n ", " + ", " + span + ", " + * > *,\n ", " + ", " + span + ", " + * > *,\n ", " + ", " + *,\n ", " + ", " + span + * {\n margin-top: 0;\n }\n"])), hideCaretModifier, gapCursor, gapCursorBlink, "var(--ds-space-negative-050, -4px)", "var(--ds-space-negative-050, -4px)", wrapRight, gapCursor, gapCursor, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapLeft, gapCursor, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapRight, wrapLeft, gapCursor, wrapRight, gapCursor, gapCursor, wrapLeft, wrapRight, gapCursor, wrapRight, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, gapCursor, wrapLeft, wrapRight, gapCursor, wrapRight, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, gapCursor, wrapLeft, wrapRight, gapCursor, wrapRight, wrapLeft, prosemirrorwidget, gapCursor, prosemirrorwidget, gapCursor);
19
+ export var gapCursorStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t/* =============== GAP CURSOR ================== */\n\t.ProseMirror {\n\t\t&.", " {\n\t\t\tcaret-color: transparent;\n\t\t}\n\n\t\t", " {\n\t\t\tdisplay: none;\n\t\t\tpointer-events: none;\n\t\t\tposition: relative;\n\n\t\t\t& span {\n\t\t\t\tcaret-color: transparent;\n\t\t\t\tposition: absolute;\n\t\t\t\theight: 100%;\n\t\t\t\twidth: 100%;\n\t\t\t\tdisplay: block;\n\t\t\t}\n\n\t\t\t& span::after {\n\t\t\t\tanimation: 1s ", " step-end infinite;\n\t\t\t\tborder-left: 1px solid;\n\t\t\t\tcontent: '';\n\t\t\t\tdisplay: block;\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 0;\n\t\t\t\theight: 100%;\n\t\t\t}\n\t\t\t&.-left span::after {\n\t\t\t\tleft: ", ";\n\t\t\t}\n\t\t\t&.-right span::after {\n\t\t\t\tright: ", ";\n\t\t\t}\n\t\t\t& span[layout='full-width'],\n\t\t\t& span[layout='wide'],\n\t\t\t& span[layout='fixed-width'] {\n\t\t\t\tmargin-left: 50%;\n\t\t\t\ttransform: translateX(-50%);\n\t\t\t}\n\t\t\t&", " {\n\t\t\t\tfloat: right;\n\t\t\t}\n\n\t\t\t/* fix vertical alignment of gap cursor */\n\t\t\t&:first-of-type + ul,\n\t\t\t&:first-of-type + span + ul,\n\t\t\t&:first-of-type + ol,\n\t\t\t&:first-of-type + span + ol,\n\t\t\t&:first-of-type + pre,\n\t\t\t&:first-of-type + span + pre,\n\t\t\t&:first-of-type + blockquote,\n\t\t\t&:first-of-type + span + blockquote {\n\t\t\t\tmargin-top: 0;\n\t\t\t}\n\t\t}\n\t\t&.ProseMirror-focused ", " {\n\t\t\tdisplay: block;\n\t\t\tborder-color: transparent;\n\t\t}\n\t}\n\n\t/* This hack below is for two images aligned side by side */\n\t", "", " + span + ", ",\n ", "", " + span + ", ",\n ", " + ", " + ", ",\n ", " + ", " + span + ", ",\n ", " + ", " + ", ",\n ", " + ", " + span + ", ",\n ", " + ", " + ", ",\n ", " + ", " + span ", ",\n ", " + ", " + ", ",\n ", " + ", " + span + ", ",\n ", " + ", " {\n\t\tclear: none;\n\t}\n\n\t", " + ", " + ", " > div,\n ", " + ", " + span + ", " > div,\n ", " + ", " + ", " > div,\n ", " + ", " + span + ", " > div,\n ", " + ", " + ", " > div,\n ", " + ", " + span + ", " > div,\n ", " + ", " + ", " > div,\n ", " + ", " + span + ", " > div {\n\t\tmargin-right: 0;\n\t\tmargin-left: 0;\n\t\tmargin-bottom: 0;\n\t}\n\n\t", " + ", ",\n ", " + ", " {\n\t\tfloat: left;\n\t}\n\n\t", " + ", " + span + ", "::after,\n ", " + ", " + span + ", "::after,\n ", " + ", " + ", "::after,\n ", " + ", " + span + ", "::after,\n ", " + ", " + ", "::after,\n ", " + ", " + span + ", "::after {\n\t\tvisibility: hidden;\n\t\tdisplay: block;\n\t\tfont-size: 0;\n\t\tcontent: ' ';\n\t\tclear: both;\n\t\theight: 0;\n\t}\n\n\t", " + ", " + ", " + *,\n ", " + ", " + ", " + span + *,\n ", " + ", " + ", " + *,\n ", " + ", " + ", " + span + *,\n ", " + ", " + span + ", " + *,\n ", " + ", " + span + ", " + *,\n ", " + ", " + span + ", " + *,\n ", " + ", " + span + ", " + *,\n ", " + ", " + ", " + * > *,\n ", " + ", " + ", " + span + * > *,\n ", " + ", " + ", " + * > *,\n ", " + ", " + ", " + span + * > *,\n ", " + ", " + span + ", " + * > *,\n ", " + ", " + span + ", " + * > *,\n ", " + ", " + span + ", " + * > *,\n ", " + ", " + span + ", " + * > *,\n ", " + ", " + *,\n ", " + ", " + span + * {\n\t\tmargin-top: 0;\n\t}\n"])), hideCaretModifier, gapCursor, gapCursorBlink, "var(--ds-space-negative-050, -4px)", "var(--ds-space-negative-050, -4px)", wrapRight, gapCursor, gapCursor, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapLeft, gapCursor, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapRight, wrapLeft, gapCursor, wrapRight, gapCursor, gapCursor, wrapLeft, wrapRight, gapCursor, wrapRight, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, gapCursor, wrapLeft, wrapRight, gapCursor, wrapRight, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, gapCursor, wrapLeft, wrapRight, gapCursor, wrapRight, wrapLeft, prosemirrorwidget, gapCursor, prosemirrorwidget, gapCursor);
@@ -64,5 +64,5 @@ export var AnnotationSharedCSSByState = function AnnotationSharedCSSByState() {
64
64
 
65
65
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- `AnnotationSharedCSSByState()` is not safe in object syntax
66
66
  export var annotationSharedStyles = function annotationSharedStyles() {
67
- return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ProseMirror {\n .", " {\n ", ";\n }\n\n .", " {\n ", ";\n cursor: initial;\n }\n\n .", " {\n ", ";\n }\n }\n"])), AnnotationSharedClassNames.focus, AnnotationSharedCSSByState().focus, AnnotationSharedClassNames.draft, AnnotationSharedCSSByState().focus, AnnotationSharedClassNames.blur, AnnotationSharedCSSByState().blur);
67
+ return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.ProseMirror {\n\t\t.", " {\n\t\t\t", ";\n\t\t}\n\n\t\t.", " {\n\t\t\t", ";\n\t\t\tcursor: initial;\n\t\t}\n\n\t\t.", " {\n\t\t\t", ";\n\t\t}\n\t}\n"])), AnnotationSharedClassNames.focus, AnnotationSharedCSSByState().focus, AnnotationSharedClassNames.draft, AnnotationSharedCSSByState().focus, AnnotationSharedClassNames.blur, AnnotationSharedCSSByState().blur);
68
68
  };
@@ -2,4 +2,4 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
2
2
  var _templateObject;
3
3
  /* 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 */
4
4
  import { css } from '@emotion/react';
5
- export var blockMarksSharedStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n /**\n * We need to remove margin-top from first item\n * inside doc, tableCell, tableHeader, blockquote, etc.\n */\n *:not(.fabric-editor-block-mark) >,\n /* For nested block marks apart from those with indentation mark */\n *:not(.fabric-editor-block-mark) >\n div.fabric-editor-block-mark:first-of-type\n /* Do not remove the margin top for nodes inside indentation marks */\n :not(.fabric-editor-indentation-mark)\n /* Do not remove the margin top for nodes inside alignment marks */\n :not(.fabric-editor-alignment),\n // If first element inside a block node has alignment mark, then remove the margin-top\n .fabric-editor-alignment:first-of-type:first-child,\n // If first document element has indentation mark remove margin-top\n .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child {\n p,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n .heading-wrapper {\n :first-child:not(style),\n style:first-child + * {\n margin-top: 0;\n }\n }\n }\n"])));
5
+ export var blockMarksSharedStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t/**\n * We need to remove margin-top from first item\n * inside doc, tableCell, tableHeader, blockquote, etc.\n */\n\t*:not(.fabric-editor-block-mark) >,\n /* For nested block marks apart from those with indentation mark */\n *:not(.fabric-editor-block-mark) >\n div.fabric-editor-block-mark:first-of-type\n /* Do not remove the margin top for nodes inside indentation marks */\n :not(.fabric-editor-indentation-mark)\n /* Do not remove the margin top for nodes inside alignment marks */\n :not(.fabric-editor-alignment),\n // If first element inside a block node has alignment mark, then remove the margin-top\n .fabric-editor-alignment:first-of-type:first-child,\n // If first document element has indentation mark remove margin-top\n .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child {\n\t\tp,\n\t\th1,\n\t\th2,\n\t\th3,\n\t\th4,\n\t\th5,\n\t\th6,\n\t\t.heading-wrapper {\n\t\t\t:first-child:not(style),\n\t\t\tstyle:first-child + * {\n\t\t\t\tmargin-top: 0;\n\t\t\t}\n\t\t}\n\t}\n"])));
@@ -15,8 +15,8 @@ export var CodeBlockSharedCssClassName = {
15
15
  DS_CODEBLOCK: '[data-ds--code--code-block]'
16
16
  };
17
17
  export var codeBlockSharedStyles = function codeBlockSharedStyles() {
18
- return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .", " {\n position: relative;\n background-color: ", ";\n border-radius: ", ";\n margin: ", " 0 0 0;\n font-family: ", ";\n min-width: ", "px;\n cursor: pointer;\n\n --ds--code--bg-color: transparent;\n\n /* This is necessary to allow for arrow key navigation in/out of code blocks in Firefox. */\n white-space: normal;\n\n .", " {\n position: absolute;\n visibility: hidden;\n height: 1.5rem;\n top: 0px;\n left: 0px;\n }\n\n .", " {\n position: absolute;\n visibility: hidden;\n height: 1.5rem;\n bottom: 0px;\n right: 0px;\n }\n\n .", " {\n background-color: ", ";\n display: flex;\n border-radius: ", ";\n width: 100%;\n counter-reset: line;\n overflow-x: auto;\n\n background-image: ", ";\n\n background-repeat: no-repeat;\n background-attachment: local, local, local, local, scroll, scroll, scroll,\n scroll;\n background-size: ", " 100%,\n ", " 100%, ", " 100%,\n ", " 100%, ", " 100%,\n 1px 100%, ", " 100%, 1px 100%;\n background-position: 0 0, 0 0, 100% 0, 100% 0, 100% 0, 100% 0, 0 0, 0 0;\n\n /* Be careful if refactoring this; it is needed to keep arrow key navigation in Firefox consistent with other browsers. */\n overflow-y: hidden;\n }\n\n .", " {\n flex-shrink: 0;\n text-align: right;\n background-color: ", ";\n padding: ", ";\n position: relative;\n\n span {\n display: block;\n line-height: 0;\n font-size: 0;\n\n ::before {\n display: inline-block;\n content: counter(line);\n counter-increment: line;\n color: ", ";\n font-size: ", ";\n line-height: 1.5rem;\n }\n }\n }\n\n .", " {\n display: flex;\n flex: 1;\n\n code {\n flex-grow: 1;\n tab-size: 4;\n cursor: text;\n color: ", ";\n border-radius: ", ";\n margin: ", ";\n white-space: pre;\n font-size: ", ";\n line-height: 1.5rem;\n }\n }\n }\n"])), CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, "var(--ds-surface-raised, transparent)", "var(--ds-border-radius, 3px)", blockNodesVerticalMargin, akEditorCodeFontFamily, akEditorTableCellMinWidth, CodeBlockSharedCssClassName.CODEBLOCK_START, CodeBlockSharedCssClassName.CODEBLOCK_END, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, "var(--ds-background-neutral, ".concat(N20, ")"), "var(--ds-border-radius, 3px)", overflowShadow({
18
+ return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.", " {\n\t\tposition: relative;\n\t\tbackground-color: ", ";\n\t\tborder-radius: ", ";\n\t\tmargin: ", " 0 0 0;\n\t\tfont-family: ", ";\n\t\tmin-width: ", "px;\n\t\tcursor: pointer;\n\n\t\t--ds--code--bg-color: transparent;\n\n\t\t/* This is necessary to allow for arrow key navigation in/out of code blocks in Firefox. */\n\t\twhite-space: normal;\n\n\t\t.", " {\n\t\t\tposition: absolute;\n\t\t\tvisibility: hidden;\n\t\t\theight: 1.5rem;\n\t\t\ttop: 0px;\n\t\t\tleft: 0px;\n\t\t}\n\n\t\t.", " {\n\t\t\tposition: absolute;\n\t\t\tvisibility: hidden;\n\t\t\theight: 1.5rem;\n\t\t\tbottom: 0px;\n\t\t\tright: 0px;\n\t\t}\n\n\t\t.", " {\n\t\t\tbackground-color: ", ";\n\t\t\tdisplay: flex;\n\t\t\tborder-radius: ", ";\n\t\t\twidth: 100%;\n\t\t\tcounter-reset: line;\n\t\t\toverflow-x: auto;\n\n\t\t\tbackground-image: ", ";\n\n\t\t\tbackground-repeat: no-repeat;\n\t\t\tbackground-attachment: local, local, local, local, scroll, scroll, scroll, scroll;\n\t\t\tbackground-size:\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t1px 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t1px 100%;\n\t\t\tbackground-position:\n\t\t\t\t0 0,\n\t\t\t\t0 0,\n\t\t\t\t100% 0,\n\t\t\t\t100% 0,\n\t\t\t\t100% 0,\n\t\t\t\t100% 0,\n\t\t\t\t0 0,\n\t\t\t\t0 0;\n\n\t\t\t/* Be careful if refactoring this; it is needed to keep arrow key navigation in Firefox consistent with other browsers. */\n\t\t\toverflow-y: hidden;\n\t\t}\n\n\t\t.", " {\n\t\t\tflex-shrink: 0;\n\t\t\ttext-align: right;\n\t\t\tbackground-color: ", ";\n\t\t\tpadding: ", ";\n\t\t\tposition: relative;\n\n\t\t\tspan {\n\t\t\t\tdisplay: block;\n\t\t\t\tline-height: 0;\n\t\t\t\tfont-size: 0;\n\n\t\t\t\t::before {\n\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t\tcontent: counter(line);\n\t\t\t\t\tcounter-increment: line;\n\t\t\t\t\tcolor: ", ";\n\t\t\t\t\tfont-size: ", ";\n\t\t\t\t\tline-height: 1.5rem;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t.", " {\n\t\t\tdisplay: flex;\n\t\t\tflex: 1;\n\n\t\t\tcode {\n\t\t\t\tflex-grow: 1;\n\t\t\t\ttab-size: 4;\n\t\t\t\tcursor: text;\n\t\t\t\tcolor: ", ";\n\t\t\t\tborder-radius: ", ";\n\t\t\t\tmargin: ", ";\n\t\t\t\twhite-space: pre;\n\t\t\t\tfont-size: ", ";\n\t\t\t\tline-height: 1.5rem;\n\t\t\t}\n\t\t}\n\t}\n"])), CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, "var(--ds-surface-raised, transparent)", "var(--ds-border-radius, 3px)", blockNodesVerticalMargin, akEditorCodeFontFamily, akEditorTableCellMinWidth, CodeBlockSharedCssClassName.CODEBLOCK_START, CodeBlockSharedCssClassName.CODEBLOCK_END, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, "var(--ds-background-neutral, ".concat(N20, ")"), "var(--ds-border-radius, 3px)", overflowShadow({
19
19
  leftCoverWidth: "var(--ds-space-300, 24px)"
20
20
  }), "var(--ds-space-300, 24px)", "var(--ds-space-300, 24px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER, "var(--ds-background-neutral, ".concat(N30, ")"), "var(--ds-space-100, 8px)", "var(--ds-text-subtlest, ".concat(N400, ")"), relativeFontSizeToBase16(fontSize()), CodeBlockSharedCssClassName.CODEBLOCK_CONTENT, "var(--ds-text, ".concat(N800, ")"), "var(--ds-border-radius, 3px)", "var(--ds-space-100, 8px)", relativeFontSizeToBase16(fontSize()));
21
21
  };
22
- export var codeBlockInListSafariFix = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ::before {\n content: ' ';\n line-height: ", ";\n }\n\n > p:first-child,\n > .code-block:first-child,\n > .ProseMirror-gapcursor:first-child + .code-block {\n margin-top: -", "em !important;\n }\n"])), akEditorLineHeight, akEditorLineHeight);
22
+ export var codeBlockInListSafariFix = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n\t::before {\n\t\tcontent: ' ';\n\t\tline-height: ", ";\n\t}\n\n\t> p:first-child,\n\t> .code-block:first-child,\n\t> .ProseMirror-gapcursor:first-child + .code-block {\n\t\tmargin-top: -", "em !important;\n\t}\n"])), akEditorLineHeight, akEditorLineHeight);
@@ -44,4 +44,4 @@ export function getOrderedListInlineStyles(itemCounterDigitsSize, styleFormat) {
44
44
  }
45
45
 
46
46
  // 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…
47
- export var listsSharedStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n /* =============== INDENTATION SPACING ========= */\n\n ul,\n ol {\n box-sizing: border-box;\n padding-left: var(\n ", ",\n ", "px\n );\n\n /*\n Firefox does not handle empty block element inside li tag.\n If there is not block element inside li tag,\n then firefox sets inherited height to li\n However, if there is any block element and if it's empty\n (or has empty inline element) then\n firefox sets li tag height to zero.\n More details at\n https://product-fabric.atlassian.net/wiki/spaces/~455502413/pages/3149365890/ED-14110+Investigation\n */\n li p:empty,\n li p > span:empty {\n ", "\n }\n }\n\n ", ", ", " {\n /*\n Ensures list item content adheres to the list's margin instead\n of filling the entire block row. This is important to allow\n clicking interactive elements which are floated next to a list.\n\n For some history and context on this block, see PRs related to tickets.:\n @see ED-6551 - original issue.\n @see ED-7015 - follow up issue.\n @see ED-7447 - flow-root change.\n\n We use 'display: table' (old clear fix / new block formatting context hack)\n for older browsers and 'flow-root' for modern browsers.\n\n @see https://css-tricks.com/display-flow-root/\n */\n // For older browsers the do not support flow-root.\n /* stylelint-disable declaration-block-no-duplicate-properties */\n display: table;\n display: flow-root;\n /* stylelint-enable declaration-block-no-duplicate-properties */\n }\n\n /* =============== INDENTATION AESTHETICS ========= */\n\n /**\n We support nested lists up to six levels deep.\n **/\n\n /* LEGACY LISTS */\n\n ul,\n ul ul ul ul {\n list-style-type: disc;\n }\n\n ul ul,\n ul ul ul ul ul {\n list-style-type: circle;\n }\n\n ul ul ul,\n ul ul ul ul ul ul {\n list-style-type: square;\n }\n\n ol,\n ol ol ol ol {\n list-style-type: decimal;\n }\n ol ol,\n ol ol ol ol ol {\n list-style-type: lower-alpha;\n }\n ol ol ol,\n ol ol ol ol ol ol {\n list-style-type: lower-roman;\n }\n\n /* PREDICTABLE LISTS */\n\n ol[data-indent-level='1'],\n ol[data-indent-level='4'] {\n list-style-type: decimal;\n }\n\n ol[data-indent-level='2'],\n ol[data-indent-level='5'] {\n list-style-type: lower-alpha;\n }\n\n ol[data-indent-level='3'],\n ol[data-indent-level='6'] {\n list-style-type: lower-roman;\n }\n\n ul[data-indent-level='1'],\n ul[data-indent-level='4'] {\n list-style-type: disc;\n }\n\n ul[data-indent-level='2'],\n ul[data-indent-level='5'] {\n list-style-type: circle;\n }\n\n ul[data-indent-level='3'],\n ul[data-indent-level='6'] {\n list-style-type: square;\n }\n"])), CSS_VAR_NAMES.ITEM_COUNTER_PADDING, listItemCounterPadding, browser.gecko ? 'display: inline-block;' : '', orderedListSelector, bulletListSelector);
47
+ export var listsSharedStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t/* =============== INDENTATION SPACING ========= */\n\n\tul,\n\tol {\n\t\tbox-sizing: border-box;\n\t\tpadding-left: var(", ", ", "px);\n\n\t\t/*\n Firefox does not handle empty block element inside li tag.\n If there is not block element inside li tag,\n then firefox sets inherited height to li\n However, if there is any block element and if it's empty\n (or has empty inline element) then\n firefox sets li tag height to zero.\n More details at\n https://product-fabric.atlassian.net/wiki/spaces/~455502413/pages/3149365890/ED-14110+Investigation\n */\n\t\tli p:empty,\n\t\tli p > span:empty {\n\t\t\t", "\n\t\t}\n\t}\n\n\t", ", ", " {\n\t\t/*\n Ensures list item content adheres to the list's margin instead\n of filling the entire block row. This is important to allow\n clicking interactive elements which are floated next to a list.\n\n For some history and context on this block, see PRs related to tickets.:\n @see ED-6551 - original issue.\n @see ED-7015 - follow up issue.\n @see ED-7447 - flow-root change.\n\n We use 'display: table' (old clear fix / new block formatting context hack)\n for older browsers and 'flow-root' for modern browsers.\n\n @see https://css-tricks.com/display-flow-root/\n */\n\t\t// For older browsers the do not support flow-root.\n\t\t/* stylelint-disable declaration-block-no-duplicate-properties */\n\t\tdisplay: table;\n\t\tdisplay: flow-root;\n\t\t/* stylelint-enable declaration-block-no-duplicate-properties */\n\t}\n\n\t/* =============== INDENTATION AESTHETICS ========= */\n\n\t/**\n We support nested lists up to six levels deep.\n **/\n\n\t/* LEGACY LISTS */\n\n\tul,\n\tul ul ul ul {\n\t\tlist-style-type: disc;\n\t}\n\n\tul ul,\n\tul ul ul ul ul {\n\t\tlist-style-type: circle;\n\t}\n\n\tul ul ul,\n\tul ul ul ul ul ul {\n\t\tlist-style-type: square;\n\t}\n\n\tol,\n\tol ol ol ol {\n\t\tlist-style-type: decimal;\n\t}\n\tol ol,\n\tol ol ol ol ol {\n\t\tlist-style-type: lower-alpha;\n\t}\n\tol ol ol,\n\tol ol ol ol ol ol {\n\t\tlist-style-type: lower-roman;\n\t}\n\n\t/* PREDICTABLE LISTS */\n\n\tol[data-indent-level='1'],\n\tol[data-indent-level='4'] {\n\t\tlist-style-type: decimal;\n\t}\n\n\tol[data-indent-level='2'],\n\tol[data-indent-level='5'] {\n\t\tlist-style-type: lower-alpha;\n\t}\n\n\tol[data-indent-level='3'],\n\tol[data-indent-level='6'] {\n\t\tlist-style-type: lower-roman;\n\t}\n\n\tul[data-indent-level='1'],\n\tul[data-indent-level='4'] {\n\t\tlist-style-type: disc;\n\t}\n\n\tul[data-indent-level='2'],\n\tul[data-indent-level='5'] {\n\t\tlist-style-type: circle;\n\t}\n\n\tul[data-indent-level='3'],\n\tul[data-indent-level='6'] {\n\t\tlist-style-type: square;\n\t}\n"])), CSS_VAR_NAMES.ITEM_COUNTER_PADDING, listItemCounterPadding, browser.gecko ? 'display: inline-block;' : '', orderedListSelector, bulletListSelector);
@@ -161,7 +161,7 @@ var mainDynamicStyles = function mainDynamicStyles(panelType) {
161
161
 
162
162
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Safe to autofix with a tiny tweak to `mainDynamicStyles` being an object, but holding off…
163
163
  export var panelSharedStylesWithoutPrefix = function panelSharedStylesWithoutPrefix() {
164
- return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n border-radius: ", ";\n margin: ", " 0 0;\n padding-top: ", ";\n padding-right: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n min-width: ", "px;\n display: flex;\n position: relative;\n align-items: normal;\n word-break: break-word;\n\n ", "\n\n .", " {\n flex-shrink: 0;\n height: ", ";\n width: ", ";\n box-sizing: content-box;\n padding-right: ", ";\n text-align: center;\n user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n margin-top: 0.1em;\n ", "\n\n > span {\n vertical-align: middle;\n display: inline-flex;\n }\n\n .", " {\n vertical-align: ", "px;\n }\n\n .", " {\n vertical-align: ", "px;\n\n // Vertical align only works for inline-block elements in Firefox\n @-moz-document url-prefix() {\n img {\n display: inline-block;\n }\n }\n }\n }\n\n .ak-editor-panel__content {\n margin: ", " 0 ", ";\n flex: 1 0 0;\n /*\n https://ishadeed.com/article/min-max-css/#setting-min-width-to-zero-with-flexbox\n The default value for min-width is auto, which is computed to zero. When an element is a flex item, the value of min-width doesn\u2019t compute to zero. The minimum size of a flex item is equal to the size of its contents.\n */\n min-width: 0;\n }\n\n &[data-panel-type='", "'] {\n ", "\n\n .", " {\n ", "\n }\n }\n\n &[data-panel-type='", "'] {\n ", "\n\n .", " {\n ", "\n }\n }\n\n &[data-panel-type='", "'] {\n ", "\n\n .", " {\n ", "\n }\n }\n\n &[data-panel-type='", "'] {\n ", "\n\n .", " {\n ", "\n }\n }\n\n &[data-panel-type='", "'] {\n ", "\n\n .", " {\n ", "\n }\n }\n"])), "var(--ds-border-radius, 3px)", blockNodesVerticalMargin, "var(--ds-space-100, 8px)", "var(--ds-space-200, 16px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", akEditorTableCellMinWidth, mainDynamicStyles(PanelType.INFO), PanelSharedCssClassName.icon, "var(--ds-space-300, 24px)", "var(--ds-space-300, 24px)", "var(--ds-space-100, 8px)", iconDynamicStyles(PanelType.INFO), emojiSprite, panelEmojiSpriteVerticalAlignment, emojiImage, panelEmojiImageVerticalAlignment, "var(--ds-space-025, 2px)", "var(--ds-space-025, 2px)", PanelType.NOTE, mainDynamicStyles(PanelType.NOTE), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.NOTE), PanelType.TIP, mainDynamicStyles(PanelType.TIP), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.TIP), PanelType.WARNING, mainDynamicStyles(PanelType.WARNING), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.WARNING), PanelType.ERROR, mainDynamicStyles(PanelType.ERROR), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.ERROR), PanelType.SUCCESS, mainDynamicStyles(PanelType.SUCCESS), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.SUCCESS));
164
+ return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\tborder-radius: ", ";\n\tmargin: ", " 0 0;\n\tpadding-top: ", ";\n\tpadding-right: ", ";\n\tpadding-bottom: ", ";\n\tpadding-left: ", ";\n\tmin-width: ", "px;\n\tdisplay: flex;\n\tposition: relative;\n\talign-items: normal;\n\tword-break: break-word;\n\n\t", "\n\n\t.", " {\n\t\tflex-shrink: 0;\n\t\theight: ", ";\n\t\twidth: ", ";\n\t\tbox-sizing: content-box;\n\t\tpadding-right: ", ";\n\t\ttext-align: center;\n\t\tuser-select: none;\n\t\t-moz-user-select: none;\n\t\t-webkit-user-select: none;\n\t\t-ms-user-select: none;\n\t\tmargin-top: 0.1em;\n\t\t", "\n\n\t\t> span {\n\t\t\tvertical-align: middle;\n\t\t\tdisplay: inline-flex;\n\t\t}\n\n\t\t.", " {\n\t\t\tvertical-align: ", "px;\n\t\t}\n\n\t\t.", " {\n\t\t\tvertical-align: ", "px;\n\n\t\t\t// Vertical align only works for inline-block elements in Firefox\n\t\t\t@-moz-document url-prefix() {\n\t\t\t\timg {\n\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t.ak-editor-panel__content {\n\t\tmargin: ", " 0 ", ";\n\t\tflex: 1 0 0;\n\t\t/*\n https://ishadeed.com/article/min-max-css/#setting-min-width-to-zero-with-flexbox\n The default value for min-width is auto, which is computed to zero. When an element is a flex item, the value of min-width doesn\u2019t compute to zero. The minimum size of a flex item is equal to the size of its contents.\n */\n\t\tmin-width: 0;\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\n\t\t.", " {\n\t\t\t", "\n\t\t}\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\n\t\t.", " {\n\t\t\t", "\n\t\t}\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\n\t\t.", " {\n\t\t\t", "\n\t\t}\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\n\t\t.", " {\n\t\t\t", "\n\t\t}\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\n\t\t.", " {\n\t\t\t", "\n\t\t}\n\t}\n"])), "var(--ds-border-radius, 3px)", blockNodesVerticalMargin, "var(--ds-space-100, 8px)", "var(--ds-space-200, 16px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", akEditorTableCellMinWidth, mainDynamicStyles(PanelType.INFO), PanelSharedCssClassName.icon, "var(--ds-space-300, 24px)", "var(--ds-space-300, 24px)", "var(--ds-space-100, 8px)", iconDynamicStyles(PanelType.INFO), emojiSprite, panelEmojiSpriteVerticalAlignment, emojiImage, panelEmojiImageVerticalAlignment, "var(--ds-space-025, 2px)", "var(--ds-space-025, 2px)", PanelType.NOTE, mainDynamicStyles(PanelType.NOTE), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.NOTE), PanelType.TIP, mainDynamicStyles(PanelType.TIP), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.TIP), PanelType.WARNING, mainDynamicStyles(PanelType.WARNING), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.WARNING), PanelType.ERROR, mainDynamicStyles(PanelType.ERROR), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.ERROR), PanelType.SUCCESS, mainDynamicStyles(PanelType.SUCCESS), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.SUCCESS));
165
165
  };
166
166
  export var panelSharedStyles = function panelSharedStyles() {
167
167
  return css(_defineProperty({}, ".".concat(PanelSharedCssClassName.prefix), panelSharedStylesWithoutPrefix()));
@@ -21,4 +21,4 @@ export var handleWrapperClass = 'resizer-handle-wrapper';
21
21
  export var resizerHandleZIndex = 1;
22
22
 
23
23
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Seems perfectly safe to autofix, but comments would be lost…
24
- export var resizerStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .", " {\n will-change: width;\n\n &:hover,\n &.display-handle {\n & > .", " > .", " {\n visibility: visible;\n opacity: 1;\n }\n }\n\n &.is-resizing {\n & .", " {\n background: ", ";\n }\n }\n\n &.", " {\n & .", " {\n transition: none;\n background: ", ";\n }\n }\n }\n\n .", " {\n display: flex;\n visibility: hidden;\n opacity: 0;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 7px;\n transition: visibility 0.2s, opacity 0.2s;\n\n /*\n NOTE: The below style is targeted at the div element added by the tooltip. We don't have any means of injecting styles\n into the tooltip\n */\n & div[role='presentation'] {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n margin-top: ", ";\n white-space: normal;\n }\n\n /*\n Handle Positions\n */\n &.left {\n align-items: flex-start;\n }\n &.right {\n align-items: flex-end;\n }\n\n /*\n Handle Sizing\n */\n &.small {\n & .", " {\n height: 43px;\n }\n }\n &.medium {\n & .", " {\n height: 64px;\n }\n }\n &.large {\n & .", " {\n height: 96px;\n }\n }\n\n /*\n Handle Alignment\n */\n &.sticky {\n & .", " {\n position: sticky;\n top: ", ";\n bottom: ", ";\n }\n }\n\n &:hover {\n & .", " {\n background: ", ";\n }\n\n & .", " {\n visibility: visible;\n opacity: 0.5;\n }\n }\n }\n\n .", " {\n content: ' ';\n display: flex;\n width: 3px;\n margin: 0 ", ";\n height: 64px;\n transition: background-color 0.2s;\n border-radius: 6px;\n border: 0;\n padding: 0;\n z-index: 2;\n outline: none;\n min-height: 24px;\n background: ", ";\n\n &:hover {\n cursor: col-resize;\n }\n\n &:focus {\n background: ", ";\n\n &::after {\n content: '';\n position: absolute;\n top: ", ";\n right: ", ";\n bottom: ", ";\n left: ", ";\n border: 2px solid ", ";\n border-radius: inherit;\n z-index: -1;\n }\n }\n }\n\n .", " {\n visibility: hidden;\n position: absolute;\n width: 7px;\n height: calc(100% - 40px);\n border-radius: 4px;\n opacity: 0;\n transition: background-color 0.2s, visibility 0.2s, opacity 0.2s;\n\n &.none {\n background: none;\n }\n\n &.shadow {\n background: ", ";\n }\n\n &.full-height {\n background: ", ";\n height: 100%;\n min-height: 36px;\n }\n }\n\n .", " {\n & .", " {\n background: ", ";\n }\n }\n\n .", " {\n position: relative;\n display: inline-block;\n width: 100%;\n\n &.", " {\n padding: 0 ", ";\n left: ", ";\n }\n }\n\n // This below style is here to make sure the image width is correct when nested in a table\n table\n .", ",\n table\n .", ".", " {\n padding: unset;\n left: unset;\n }\n"])), resizerItemClassName, handleWrapperClass, resizerHandleClassName, resizerHandleThumbClassName, "var(--ds-border-focused, ".concat(B200, ")"), resizerDangerClassName, resizerHandleThumbClassName, "var(--ds-icon-danger, ".concat(akEditorDeleteIconColor, ")"), resizerHandleClassName, "var(--ds-space-negative-200, -16px)", resizerHandleThumbClassName, resizerHandleThumbClassName, resizerHandleThumbClassName, resizerHandleThumbClassName, "var(--ds-space-150, 12px)", "var(--ds-space-150, 12px)", resizerHandleThumbClassName, "var(--ds-border-focused, ".concat(B200, ")"), resizerHandleTrackClassName, resizerHandleThumbClassName, "var(--ds-space-025, 2px)", "var(--ds-border, ".concat(N60, ")"), "var(--ds-border-selected, #0C66E4)", "var(--ds-space-negative-050, -4px)", "var(--ds-space-negative-050, -4px)", "var(--ds-space-negative-050, -4px)", "var(--ds-space-negative-050, -4px)", "var(--ds-border-focused, #388BFF)", resizerHandleTrackClassName, "var(--ds-background-selected, ".concat(B50, ")"), "var(--ds-background-selected, ".concat(B50, ")"), akEditorSelectedNodeClassName, resizerHandleThumbClassName, "var(--ds-border-focused, ".concat(B200, ")"), resizerHoverZoneClassName, resizerExtendedZone, "var(--ds-space-150, 12px)", "var(--ds-space-negative-150, -12px)", resizerHoverZoneClassName, resizerHoverZoneClassName, resizerExtendedZone);
24
+ export var resizerStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.", " {\n\t\twill-change: width;\n\n\t\t&:hover,\n\t\t&.display-handle {\n\t\t\t& > .", " > .", " {\n\t\t\t\tvisibility: visible;\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\n\t\t&.is-resizing {\n\t\t\t& .", " {\n\t\t\t\tbackground: ", ";\n\t\t\t}\n\t\t}\n\n\t\t&.", " {\n\t\t\t& .", " {\n\t\t\t\ttransition: none;\n\t\t\t\tbackground: ", ";\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\tdisplay: flex;\n\t\tvisibility: hidden;\n\t\topacity: 0;\n\t\tflex-direction: column;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\twidth: 7px;\n\t\ttransition:\n\t\t\tvisibility 0.2s,\n\t\t\topacity 0.2s;\n\n\t\t/*\n NOTE: The below style is targeted at the div element added by the tooltip. We don't have any means of injecting styles\n into the tooltip\n */\n\t\t& div[role='presentation'] {\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t\tjustify-content: center;\n\t\t\talign-items: center;\n\t\t\tmargin-top: ", ";\n\t\t\twhite-space: normal;\n\t\t}\n\n\t\t/*\n Handle Positions\n */\n\t\t&.left {\n\t\t\talign-items: flex-start;\n\t\t}\n\t\t&.right {\n\t\t\talign-items: flex-end;\n\t\t}\n\n\t\t/*\n Handle Sizing\n */\n\t\t&.small {\n\t\t\t& .", " {\n\t\t\t\theight: 43px;\n\t\t\t}\n\t\t}\n\t\t&.medium {\n\t\t\t& .", " {\n\t\t\t\theight: 64px;\n\t\t\t}\n\t\t}\n\t\t&.large {\n\t\t\t& .", " {\n\t\t\t\theight: 96px;\n\t\t\t}\n\t\t}\n\n\t\t/*\n Handle Alignment\n */\n\t\t&.sticky {\n\t\t\t& .", " {\n\t\t\t\tposition: sticky;\n\t\t\t\ttop: ", ";\n\t\t\t\tbottom: ", ";\n\t\t\t}\n\t\t}\n\n\t\t&:hover {\n\t\t\t& .", " {\n\t\t\t\tbackground: ", ";\n\t\t\t}\n\n\t\t\t& .", " {\n\t\t\t\tvisibility: visible;\n\t\t\t\topacity: 0.5;\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\tcontent: ' ';\n\t\tdisplay: flex;\n\t\twidth: 3px;\n\t\tmargin: 0 ", ";\n\t\theight: 64px;\n\t\ttransition: background-color 0.2s;\n\t\tborder-radius: 6px;\n\t\tborder: 0;\n\t\tpadding: 0;\n\t\tz-index: 2;\n\t\toutline: none;\n\t\tmin-height: 24px;\n\t\tbackground: ", ";\n\n\t\t&:hover {\n\t\t\tcursor: col-resize;\n\t\t}\n\n\t\t&:focus {\n\t\t\tbackground: ", ";\n\n\t\t\t&::after {\n\t\t\t\tcontent: '';\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: ", ";\n\t\t\t\tright: ", ";\n\t\t\t\tbottom: ", ";\n\t\t\t\tleft: ", ";\n\t\t\t\tborder: 2px solid ", ";\n\t\t\t\tborder-radius: inherit;\n\t\t\t\tz-index: -1;\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\tvisibility: hidden;\n\t\tposition: absolute;\n\t\twidth: 7px;\n\t\theight: calc(100% - 40px);\n\t\tborder-radius: 4px;\n\t\topacity: 0;\n\t\ttransition:\n\t\t\tbackground-color 0.2s,\n\t\t\tvisibility 0.2s,\n\t\t\topacity 0.2s;\n\n\t\t&.none {\n\t\t\tbackground: none;\n\t\t}\n\n\t\t&.shadow {\n\t\t\tbackground: ", ";\n\t\t}\n\n\t\t&.full-height {\n\t\t\tbackground: ", ";\n\t\t\theight: 100%;\n\t\t\tmin-height: 36px;\n\t\t}\n\t}\n\n\t.", " {\n\t\t& .", " {\n\t\t\tbackground: ", ";\n\t\t}\n\t}\n\n\t.", " {\n\t\tposition: relative;\n\t\tdisplay: inline-block;\n\t\twidth: 100%;\n\n\t\t&.", " {\n\t\t\tpadding: 0 ", ";\n\t\t\tleft: ", ";\n\t\t}\n\t}\n\n\t// This below style is here to make sure the image width is correct when nested in a table\n\ttable .", ", table .", ".", " {\n\t\tpadding: unset;\n\t\tleft: unset;\n\t}\n"])), resizerItemClassName, handleWrapperClass, resizerHandleClassName, resizerHandleThumbClassName, "var(--ds-border-focused, ".concat(B200, ")"), resizerDangerClassName, resizerHandleThumbClassName, "var(--ds-icon-danger, ".concat(akEditorDeleteIconColor, ")"), resizerHandleClassName, "var(--ds-space-negative-200, -16px)", resizerHandleThumbClassName, resizerHandleThumbClassName, resizerHandleThumbClassName, resizerHandleThumbClassName, "var(--ds-space-150, 12px)", "var(--ds-space-150, 12px)", resizerHandleThumbClassName, "var(--ds-border-focused, ".concat(B200, ")"), resizerHandleTrackClassName, resizerHandleThumbClassName, "var(--ds-space-025, 2px)", "var(--ds-border, ".concat(N60, ")"), "var(--ds-border-selected, #0C66E4)", "var(--ds-space-negative-050, -4px)", "var(--ds-space-negative-050, -4px)", "var(--ds-space-negative-050, -4px)", "var(--ds-space-negative-050, -4px)", "var(--ds-border-focused, #388BFF)", resizerHandleTrackClassName, "var(--ds-background-selected, ".concat(B50, ")"), "var(--ds-background-selected, ".concat(B50, ")"), akEditorSelectedNodeClassName, resizerHandleThumbClassName, "var(--ds-border-focused, ".concat(B200, ")"), resizerHoverZoneClassName, resizerExtendedZone, "var(--ds-space-150, 12px)", "var(--ds-space-negative-150, -12px)", resizerHoverZoneClassName, resizerHoverZoneClassName, resizerExtendedZone);
@@ -10,4 +10,4 @@ export var DATASOURCE_INNER_CONTAINER_CLASSNAME = 'datasourceView-content-inner-
10
10
  export var FLOATING_TOOLBAR_LINKPICKER_CLASSNAME = 'card-floating-toolbar--link-picker';
11
11
 
12
12
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Seems safe to autofix with a fix to `getSelectionStyles`
13
- export var smartCardStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .", " {\n max-width: calc(100% - 20px);\n vertical-align: top;\n word-break: break-all;\n ", "\n .card {\n padding-left: ", ";\n padding-right: ", ";\n padding-top: 0.5em;\n padding-bottom: 0.5em;\n margin-bottom: -0.5em;\n\n .", " > a:focus {\n ", "\n }\n }\n\n &.", "\n .", "\n > a {\n ", "\n }\n .", " > a {\n /* EDM-1717: box-shadow Safari fix start */\n z-index: 1;\n position: relative;\n /* EDM-1717: box-shadow Safari fix end */\n }\n\n &.danger {\n .", " > a {\n box-shadow: 0 0 0 1px\n ", ";\n /* EDM-1717: box-shadow Safari fix start */\n z-index: 2;\n /* EDM-1717: box-shadow Safari fix end */\n }\n }\n }\n\n .", " {\n .", " > div {\n cursor: pointer;\n }\n\n &.", "\n .", "\n > div {\n ", "\n border-radius: ", ";\n }\n\n &.danger {\n .", " > div {\n box-shadow: 0 0 0 1px\n ", " !important;\n }\n }\n }\n\n .", ".", " {\n max-width: 100%;\n display: flex;\n justify-content: center;\n\n .", " {\n cursor: pointer;\n background-color: ", ";\n border-radius: ", ";\n border: 1px solid ", ";\n }\n\n &.", " {\n .", " {\n ", "\n }\n }\n\n &.danger {\n .", " {\n box-shadow: 0 0 0 1px\n ", ";\n }\n }\n }\n\n .", " {\n .", " > div {\n cursor: pointer;\n &::after {\n transition: box-shadow 0s;\n }\n }\n\n &.", "\n .", "\n > div::after {\n ", "\n }\n\n &.danger {\n .media-card-frame::after {\n box-shadow: 0 0 0 1px\n ", " !important;\n background: ", " !important;\n }\n .richMedia-resize-handle-right::after,\n .richMedia-resize-handle-left::after {\n background: ", ";\n }\n }\n }\n\n .", " {\n padding: 0;\n }\n"])), SmartCardSharedCssClassName.INLINE_CARD_CONTAINER, getBooleanFF('platform.editor.allow-inline-comments-for-inline-nodes') ? ".card-with-comment {\n background: ".concat("var(--ds-background-accent-yellow-subtler, ".concat(Y75, ")"), ";\n border-bottom: 2px solid ", "var(--ds-border-accent-yellow, ".concat(Y300, ")"), ";\n box-shadow: ", "var(--ds-shadow-overlay, ".concat("1px 2px 3px ".concat(N60A, ", -1px 2px 3px ").concat(N60A), ")"), ";\n }") : '', "var(--ds-space-025, 2px)", "var(--ds-space-025, 2px)", SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), SmartCardSharedCssClassName.LOADER_WRAPPER, SmartCardSharedCssClassName.LOADER_WRAPPER, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, SmartCardSharedCssClassName.LOADER_WRAPPER, akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), "var(--ds-border-radius-200, 8px)", SmartCardSharedCssClassName.LOADER_WRAPPER, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), SmartCardSharedCssClassName.DATASOURCE_CONTAINER, SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, DATASOURCE_INNER_CONTAINER_CLASSNAME, "var(--ds-background-neutral-subtle, ".concat(N0, ")"), "var(--ds-border-radius-200, 8px)", "var(--ds-border, ".concat(N40, ")"), akEditorSelectedNodeClassName, DATASOURCE_INNER_CONTAINER_CLASSNAME, getSelectionStyles([SelectionStyle.BoxShadow]), DATASOURCE_INNER_CONTAINER_CLASSNAME, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), SmartCardSharedCssClassName.EMBED_CARD_CONTAINER, SmartCardSharedCssClassName.LOADER_WRAPPER, akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), "var(--ds-background-danger, ".concat(akEditorDeleteBackground, ")"), "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), FLOATING_TOOLBAR_LINKPICKER_CLASSNAME);
13
+ export var smartCardStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.", " {\n\t\tmax-width: calc(100% - 20px);\n\t\tvertical-align: top;\n\t\tword-break: break-all;\n\t\t", "\n\t\t.card {\n\t\t\tpadding-left: ", ";\n\t\t\tpadding-right: ", ";\n\t\t\tpadding-top: 0.5em;\n\t\t\tpadding-bottom: 0.5em;\n\t\t\tmargin-bottom: -0.5em;\n\n\t\t\t.", " > a:focus {\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\n\t\t&.", " .", " > a {\n\t\t\t", "\n\t\t}\n\t\t.", " > a {\n\t\t\t/* EDM-1717: box-shadow Safari fix start */\n\t\t\tz-index: 1;\n\t\t\tposition: relative;\n\t\t\t/* EDM-1717: box-shadow Safari fix end */\n\t\t}\n\n\t\t&.danger {\n\t\t\t.", " > a {\n\t\t\t\tbox-shadow: 0 0 0 1px ", ";\n\t\t\t\t/* EDM-1717: box-shadow Safari fix start */\n\t\t\t\tz-index: 2;\n\t\t\t\t/* EDM-1717: box-shadow Safari fix end */\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\t.", " > div {\n\t\t\tcursor: pointer;\n\t\t}\n\n\t\t&.", " .", " > div {\n\t\t\t", "\n\t\t\tborder-radius: ", ";\n\t\t}\n\n\t\t&.danger {\n\t\t\t.", " > div {\n\t\t\t\tbox-shadow: 0 0 0 1px ", " !important;\n\t\t\t}\n\t\t}\n\t}\n\n\t.", ".", " {\n\t\tmax-width: 100%;\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\n\t\t.", " {\n\t\t\tcursor: pointer;\n\t\t\tbackground-color: ", ";\n\t\t\tborder-radius: ", ";\n\t\t\tborder: 1px solid ", ";\n\t\t}\n\n\t\t&.", " {\n\t\t\t.", " {\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\n\t\t&.danger {\n\t\t\t.", " {\n\t\t\t\tbox-shadow: 0 0 0 1px ", ";\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\t.", " > div {\n\t\t\tcursor: pointer;\n\t\t\t&::after {\n\t\t\t\ttransition: box-shadow 0s;\n\t\t\t}\n\t\t}\n\n\t\t&.", " .", " > div::after {\n\t\t\t", "\n\t\t}\n\n\t\t&.danger {\n\t\t\t.media-card-frame::after {\n\t\t\t\tbox-shadow: 0 0 0 1px ", " !important;\n\t\t\t\tbackground: ", " !important;\n\t\t\t}\n\t\t\t.richMedia-resize-handle-right::after,\n\t\t\t.richMedia-resize-handle-left::after {\n\t\t\t\tbackground: ", ";\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\tpadding: 0;\n\t}\n"])), SmartCardSharedCssClassName.INLINE_CARD_CONTAINER, getBooleanFF('platform.editor.allow-inline-comments-for-inline-nodes') ? ".card-with-comment {\n background: ".concat("var(--ds-background-accent-yellow-subtler, ".concat(Y75, ")"), ";\n border-bottom: 2px solid ", "var(--ds-border-accent-yellow, ".concat(Y300, ")"), ";\n box-shadow: ", "var(--ds-shadow-overlay, ".concat("1px 2px 3px ".concat(N60A, ", -1px 2px 3px ").concat(N60A), ")"), ";\n }") : '', "var(--ds-space-025, 2px)", "var(--ds-space-025, 2px)", SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), SmartCardSharedCssClassName.LOADER_WRAPPER, SmartCardSharedCssClassName.LOADER_WRAPPER, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, SmartCardSharedCssClassName.LOADER_WRAPPER, akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), "var(--ds-border-radius-200, 8px)", SmartCardSharedCssClassName.LOADER_WRAPPER, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), SmartCardSharedCssClassName.DATASOURCE_CONTAINER, SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, DATASOURCE_INNER_CONTAINER_CLASSNAME, "var(--ds-background-neutral-subtle, ".concat(N0, ")"), "var(--ds-border-radius-200, 8px)", "var(--ds-border, ".concat(N40, ")"), akEditorSelectedNodeClassName, DATASOURCE_INNER_CONTAINER_CLASSNAME, getSelectionStyles([SelectionStyle.BoxShadow]), DATASOURCE_INNER_CONTAINER_CLASSNAME, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), SmartCardSharedCssClassName.EMBED_CARD_CONTAINER, SmartCardSharedCssClassName.LOADER_WRAPPER, akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), "var(--ds-background-danger, ".concat(akEditorDeleteBackground, ")"), "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), FLOATING_TOOLBAR_LINKPICKER_CLASSNAME);