@atlaskit/renderer 103.0.1 → 104.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (217) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/cjs/react/marks/textColor.js +8 -2
  3. package/dist/cjs/react/nodes/codeBlock/components/codeBlockContainer.js +8 -5
  4. package/dist/cjs/react/nodes/codeBlockCopyButton.js +3 -3
  5. package/dist/cjs/ui/Renderer/index.js +11 -1
  6. package/dist/cjs/ui/Renderer/style.js +1 -1
  7. package/dist/cjs/version.json +1 -1
  8. package/dist/es2019/react/marks/textColor.js +7 -2
  9. package/dist/es2019/react/nodes/codeBlock/components/codeBlockContainer.js +10 -7
  10. package/dist/es2019/react/nodes/codeBlockCopyButton.js +16 -7
  11. package/dist/es2019/ui/Renderer/index.js +11 -2
  12. package/dist/es2019/ui/Renderer/style.js +284 -284
  13. package/dist/es2019/version.json +1 -1
  14. package/dist/esm/react/marks/textColor.js +7 -2
  15. package/dist/esm/react/nodes/codeBlock/components/codeBlockContainer.js +7 -6
  16. package/dist/esm/react/nodes/codeBlockCopyButton.js +2 -2
  17. package/dist/esm/ui/Renderer/index.js +13 -2
  18. package/dist/esm/ui/Renderer/style.js +1 -1
  19. package/dist/esm/version.json +1 -1
  20. package/dist/types/analytics/events.d.ts +1 -0
  21. package/dist/types/ui/Renderer/index.d.ts +5 -0
  22. package/package.json +15 -22
  23. package/report.api.md +38 -30
  24. package/dist/types-ts4.0/actions/index.d.ts +0 -61
  25. package/dist/types-ts4.0/actions/matches-utils.d.ts +0 -7
  26. package/dist/types-ts4.0/actions.d.ts +0 -3
  27. package/dist/types-ts4.0/analytics/analyticsContext.d.ts +0 -6
  28. package/dist/types-ts4.0/analytics/enums.d.ts +0 -56
  29. package/dist/types-ts4.0/analytics/events.d.ts +0 -110
  30. package/dist/types-ts4.0/analytics/unsupported-content.d.ts +0 -10
  31. package/dist/types-ts4.0/consts.d.ts +0 -12
  32. package/dist/types-ts4.0/i18n/cs.d.ts +0 -20
  33. package/dist/types-ts4.0/i18n/da.d.ts +0 -20
  34. package/dist/types-ts4.0/i18n/de.d.ts +0 -20
  35. package/dist/types-ts4.0/i18n/en.d.ts +0 -20
  36. package/dist/types-ts4.0/i18n/en_GB.d.ts +0 -20
  37. package/dist/types-ts4.0/i18n/en_ZZ.d.ts +0 -20
  38. package/dist/types-ts4.0/i18n/es.d.ts +0 -20
  39. package/dist/types-ts4.0/i18n/et.d.ts +0 -8
  40. package/dist/types-ts4.0/i18n/fi.d.ts +0 -20
  41. package/dist/types-ts4.0/i18n/fr.d.ts +0 -20
  42. package/dist/types-ts4.0/i18n/hu.d.ts +0 -20
  43. package/dist/types-ts4.0/i18n/index.d.ts +0 -31
  44. package/dist/types-ts4.0/i18n/it.d.ts +0 -20
  45. package/dist/types-ts4.0/i18n/ja.d.ts +0 -20
  46. package/dist/types-ts4.0/i18n/ko.d.ts +0 -20
  47. package/dist/types-ts4.0/i18n/nb.d.ts +0 -20
  48. package/dist/types-ts4.0/i18n/nl.d.ts +0 -20
  49. package/dist/types-ts4.0/i18n/pl.d.ts +0 -20
  50. package/dist/types-ts4.0/i18n/pt_BR.d.ts +0 -20
  51. package/dist/types-ts4.0/i18n/pt_PT.d.ts +0 -8
  52. package/dist/types-ts4.0/i18n/ru.d.ts +0 -20
  53. package/dist/types-ts4.0/i18n/sk.d.ts +0 -8
  54. package/dist/types-ts4.0/i18n/sv.d.ts +0 -20
  55. package/dist/types-ts4.0/i18n/th.d.ts +0 -20
  56. package/dist/types-ts4.0/i18n/tr.d.ts +0 -20
  57. package/dist/types-ts4.0/i18n/uk.d.ts +0 -20
  58. package/dist/types-ts4.0/i18n/vi.d.ts +0 -20
  59. package/dist/types-ts4.0/i18n/zh.d.ts +0 -20
  60. package/dist/types-ts4.0/i18n/zh_TW.d.ts +0 -20
  61. package/dist/types-ts4.0/index.d.ts +0 -11
  62. package/dist/types-ts4.0/messages.d.ts +0 -61
  63. package/dist/types-ts4.0/react/hooks/use-bidi-warnings.d.ts +0 -10
  64. package/dist/types-ts4.0/react/hooks/use-in-viewport.d.ts +0 -5
  65. package/dist/types-ts4.0/react/hooks/use-observed-width.d.ts +0 -3
  66. package/dist/types-ts4.0/react/index.d.ts +0 -118
  67. package/dist/types-ts4.0/react/marks/alignment.d.ts +0 -4
  68. package/dist/types-ts4.0/react/marks/annotation.d.ts +0 -6
  69. package/dist/types-ts4.0/react/marks/breakout.d.ts +0 -6
  70. package/dist/types-ts4.0/react/marks/code.d.ts +0 -16
  71. package/dist/types-ts4.0/react/marks/confluence-inline-comment.d.ts +0 -8
  72. package/dist/types-ts4.0/react/marks/data-consumer.d.ts +0 -4
  73. package/dist/types-ts4.0/react/marks/em.d.ts +0 -3
  74. package/dist/types-ts4.0/react/marks/fragment.d.ts +0 -4
  75. package/dist/types-ts4.0/react/marks/indentation.d.ts +0 -4
  76. package/dist/types-ts4.0/react/marks/index.d.ts +0 -21
  77. package/dist/types-ts4.0/react/marks/link.d.ts +0 -9
  78. package/dist/types-ts4.0/react/marks/strike.d.ts +0 -3
  79. package/dist/types-ts4.0/react/marks/strong.d.ts +0 -3
  80. package/dist/types-ts4.0/react/marks/subsup.d.ts +0 -4
  81. package/dist/types-ts4.0/react/marks/textColor.d.ts +0 -4
  82. package/dist/types-ts4.0/react/marks/underline.d.ts +0 -3
  83. package/dist/types-ts4.0/react/marks/unsupportedMark.d.ts +0 -3
  84. package/dist/types-ts4.0/react/marks/unsupportedNodeAttribute.d.ts +0 -3
  85. package/dist/types-ts4.0/react/nodes/blockCard.d.ts +0 -10
  86. package/dist/types-ts4.0/react/nodes/blockquote.d.ts +0 -2
  87. package/dist/types-ts4.0/react/nodes/bodiedExtension.d.ts +0 -24
  88. package/dist/types-ts4.0/react/nodes/bulletList.d.ts +0 -5
  89. package/dist/types-ts4.0/react/nodes/caption.d.ts +0 -4
  90. package/dist/types-ts4.0/react/nodes/codeBlock/codeBlock.d.ts +0 -14
  91. package/dist/types-ts4.0/react/nodes/codeBlock/components/codeBlockContainer.d.ts +0 -12
  92. package/dist/types-ts4.0/react/nodes/codeBlock/components/lightWeightCodeBlock.d.ts +0 -9
  93. package/dist/types-ts4.0/react/nodes/codeBlock/windowedCodeBlock.d.ts +0 -4
  94. package/dist/types-ts4.0/react/nodes/codeBlockCopyButton.d.ts +0 -9
  95. package/dist/types-ts4.0/react/nodes/date.d.ts +0 -11
  96. package/dist/types-ts4.0/react/nodes/decisionItem.d.ts +0 -3
  97. package/dist/types-ts4.0/react/nodes/decisionList.d.ts +0 -7
  98. package/dist/types-ts4.0/react/nodes/doc.d.ts +0 -3
  99. package/dist/types-ts4.0/react/nodes/embedCard.d.ts +0 -17
  100. package/dist/types-ts4.0/react/nodes/emoji.d.ts +0 -10
  101. package/dist/types-ts4.0/react/nodes/extension.d.ts +0 -113
  102. package/dist/types-ts4.0/react/nodes/fallback.d.ts +0 -16
  103. package/dist/types-ts4.0/react/nodes/hardBreak.d.ts +0 -6
  104. package/dist/types-ts4.0/react/nodes/heading-anchor.d.ts +0 -14
  105. package/dist/types-ts4.0/react/nodes/heading.d.ts +0 -14
  106. package/dist/types-ts4.0/react/nodes/index.d.ts +0 -94
  107. package/dist/types-ts4.0/react/nodes/inline.d.ts +0 -1
  108. package/dist/types-ts4.0/react/nodes/inlineCard.d.ts +0 -65
  109. package/dist/types-ts4.0/react/nodes/inlineExtension.d.ts +0 -18
  110. package/dist/types-ts4.0/react/nodes/layoutColumn.d.ts +0 -6
  111. package/dist/types-ts4.0/react/nodes/layoutSection.d.ts +0 -2
  112. package/dist/types-ts4.0/react/nodes/listItem.d.ts +0 -2
  113. package/dist/types-ts4.0/react/nodes/media.d.ts +0 -27
  114. package/dist/types-ts4.0/react/nodes/mediaGroup.d.ts +0 -29
  115. package/dist/types-ts4.0/react/nodes/mediaInline.d.ts +0 -20
  116. package/dist/types-ts4.0/react/nodes/mediaSingle/index.d.ts +0 -23
  117. package/dist/types-ts4.0/react/nodes/mediaSingle/styles.d.ts +0 -2
  118. package/dist/types-ts4.0/react/nodes/mention.d.ts +0 -13
  119. package/dist/types-ts4.0/react/nodes/orderedList.d.ts +0 -6
  120. package/dist/types-ts4.0/react/nodes/panel.d.ts +0 -17
  121. package/dist/types-ts4.0/react/nodes/paragraph.d.ts +0 -3
  122. package/dist/types-ts4.0/react/nodes/placeholder.d.ts +0 -6
  123. package/dist/types-ts4.0/react/nodes/rule.d.ts +0 -2
  124. package/dist/types-ts4.0/react/nodes/status.d.ts +0 -10
  125. package/dist/types-ts4.0/react/nodes/table/colgroup.d.ts +0 -3
  126. package/dist/types-ts4.0/react/nodes/table/sticky.d.ts +0 -38
  127. package/dist/types-ts4.0/react/nodes/table/table.d.ts +0 -7
  128. package/dist/types-ts4.0/react/nodes/table/types.d.ts +0 -7
  129. package/dist/types-ts4.0/react/nodes/table.d.ts +0 -269
  130. package/dist/types-ts4.0/react/nodes/tableCell.d.ts +0 -81
  131. package/dist/types-ts4.0/react/nodes/tableRow.d.ts +0 -24
  132. package/dist/types-ts4.0/react/nodes/task-item-with-providers.d.ts +0 -29
  133. package/dist/types-ts4.0/react/nodes/taskItem.d.ts +0 -19
  134. package/dist/types-ts4.0/react/nodes/taskList.d.ts +0 -8
  135. package/dist/types-ts4.0/react/nodes/text-wrapper.d.ts +0 -8
  136. package/dist/types-ts4.0/react/nodes/unknownBlock.d.ts +0 -2
  137. package/dist/types-ts4.0/react/renderer-node.d.ts +0 -4
  138. package/dist/types-ts4.0/react/types.d.ts +0 -57
  139. package/dist/types-ts4.0/react/utils/clipboard.d.ts +0 -1
  140. package/dist/types-ts4.0/react/utils/element-selection.d.ts +0 -9
  141. package/dist/types-ts4.0/react/utils/getCardClickHandler.d.ts +0 -2
  142. package/dist/types-ts4.0/react/utils/inject-props.d.ts +0 -6
  143. package/dist/types-ts4.0/react/utils/links.d.ts +0 -3
  144. package/dist/types-ts4.0/react/utils/lists.d.ts +0 -2
  145. package/dist/types-ts4.0/react/utils/performance/RenderTracking.d.ts +0 -15
  146. package/dist/types-ts4.0/react/utils/use-select-all-trap.d.ts +0 -2
  147. package/dist/types-ts4.0/render-document.d.ts +0 -23
  148. package/dist/types-ts4.0/renderer-context.d.ts +0 -9
  149. package/dist/types-ts4.0/serializer.d.ts +0 -4
  150. package/dist/types-ts4.0/steps/index.d.ts +0 -14
  151. package/dist/types-ts4.0/text/index.d.ts +0 -8
  152. package/dist/types-ts4.0/text/nodes/blockquote.d.ts +0 -3
  153. package/dist/types-ts4.0/text/nodes/bulletList.d.ts +0 -3
  154. package/dist/types-ts4.0/text/nodes/date.d.ts +0 -3
  155. package/dist/types-ts4.0/text/nodes/decisionItem.d.ts +0 -3
  156. package/dist/types-ts4.0/text/nodes/hardBreak.d.ts +0 -3
  157. package/dist/types-ts4.0/text/nodes/heading.d.ts +0 -3
  158. package/dist/types-ts4.0/text/nodes/index.d.ts +0 -6
  159. package/dist/types-ts4.0/text/nodes/inlineCard.d.ts +0 -3
  160. package/dist/types-ts4.0/text/nodes/listItem.d.ts +0 -3
  161. package/dist/types-ts4.0/text/nodes/mediaGroup.d.ts +0 -3
  162. package/dist/types-ts4.0/text/nodes/mention.d.ts +0 -3
  163. package/dist/types-ts4.0/text/nodes/orderedList.d.ts +0 -3
  164. package/dist/types-ts4.0/text/nodes/panel.d.ts +0 -3
  165. package/dist/types-ts4.0/text/nodes/paragraph.d.ts +0 -3
  166. package/dist/types-ts4.0/text/nodes/rule.d.ts +0 -3
  167. package/dist/types-ts4.0/text/nodes/status.d.ts +0 -3
  168. package/dist/types-ts4.0/text/nodes/table.d.ts +0 -3
  169. package/dist/types-ts4.0/text/nodes/taskItem.d.ts +0 -3
  170. package/dist/types-ts4.0/text/nodes/unknown.d.ts +0 -3
  171. package/dist/types-ts4.0/text-serializer.d.ts +0 -1
  172. package/dist/types-ts4.0/types/i18n.d.ts +0 -5
  173. package/dist/types-ts4.0/types/mediaOptions.d.ts +0 -12
  174. package/dist/types-ts4.0/types/smartLinksOptions.d.ts +0 -3
  175. package/dist/types-ts4.0/ui/Expand.d.ts +0 -21
  176. package/dist/types-ts4.0/ui/ExtensionRenderer.d.ts +0 -42
  177. package/dist/types-ts4.0/ui/MediaCard.d.ts +0 -77
  178. package/dist/types-ts4.0/ui/Renderer/ErrorBoundary.d.ts +0 -24
  179. package/dist/types-ts4.0/ui/Renderer/breakout-ssr.d.ts +0 -11
  180. package/dist/types-ts4.0/ui/Renderer/click-to-edit.d.ts +0 -6
  181. package/dist/types-ts4.0/ui/Renderer/index.d.ts +0 -33
  182. package/dist/types-ts4.0/ui/Renderer/style.d.ts +0 -14
  183. package/dist/types-ts4.0/ui/Renderer/truncated-wrapper.d.ts +0 -12
  184. package/dist/types-ts4.0/ui/Renderer/types.d.ts +0 -16
  185. package/dist/types-ts4.0/ui/RendererActionsContext/WithRendererActions.d.ts +0 -6
  186. package/dist/types-ts4.0/ui/RendererActionsContext/index.d.ts +0 -9
  187. package/dist/types-ts4.0/ui/SmartCardStorage.d.ts +0 -60
  188. package/dist/types-ts4.0/ui/SortingIcon.d.ts +0 -23
  189. package/dist/types-ts4.0/ui/TaskItemsFormatContext/TaskItemsFormatContext.d.ts +0 -15
  190. package/dist/types-ts4.0/ui/TaskItemsFormatContext/index.d.ts +0 -2
  191. package/dist/types-ts4.0/ui/active-header-id-provider.d.ts +0 -18
  192. package/dist/types-ts4.0/ui/annotations/context.d.ts +0 -27
  193. package/dist/types-ts4.0/ui/annotations/draft/component.d.ts +0 -20
  194. package/dist/types-ts4.0/ui/annotations/draft/dom.d.ts +0 -7
  195. package/dist/types-ts4.0/ui/annotations/draft/index.d.ts +0 -2
  196. package/dist/types-ts4.0/ui/annotations/draft/position.d.ts +0 -2
  197. package/dist/types-ts4.0/ui/annotations/draft/text.d.ts +0 -11
  198. package/dist/types-ts4.0/ui/annotations/element/index.d.ts +0 -10
  199. package/dist/types-ts4.0/ui/annotations/element/mark.d.ts +0 -14
  200. package/dist/types-ts4.0/ui/annotations/hooks/index.d.ts +0 -3
  201. package/dist/types-ts4.0/ui/annotations/hooks/use-events.d.ts +0 -18
  202. package/dist/types-ts4.0/ui/annotations/hooks/use-inline-comment-subscriber.d.ts +0 -1
  203. package/dist/types-ts4.0/ui/annotations/hooks/use-inline-comments-filter.d.ts +0 -9
  204. package/dist/types-ts4.0/ui/annotations/hooks/use-load-annotations.d.ts +0 -6
  205. package/dist/types-ts4.0/ui/annotations/hooks/user-selection.d.ts +0 -9
  206. package/dist/types-ts4.0/ui/annotations/hooks/utils.d.ts +0 -2
  207. package/dist/types-ts4.0/ui/annotations/index.d.ts +0 -5
  208. package/dist/types-ts4.0/ui/annotations/selection/index.d.ts +0 -1
  209. package/dist/types-ts4.0/ui/annotations/selection/mounter.d.ts +0 -20
  210. package/dist/types-ts4.0/ui/annotations/selection/range-validator.d.ts +0 -13
  211. package/dist/types-ts4.0/ui/annotations/selection/wrapper.d.ts +0 -8
  212. package/dist/types-ts4.0/ui/annotations/types.d.ts +0 -22
  213. package/dist/types-ts4.0/ui/annotations/view/index.d.ts +0 -7
  214. package/dist/types-ts4.0/ui/index.d.ts +0 -1
  215. package/dist/types-ts4.0/ui/renderer-props.d.ts +0 -100
  216. package/dist/types-ts4.0/use-feature-flags.d.ts +0 -2
  217. package/dist/types-ts4.0/utils.d.ts +0 -24
@@ -294,409 +294,409 @@ export const rendererStyles = wrapperProps => theme => {
294
294
  theme
295
295
  };
296
296
  return css`
297
- font-size: ${editorFontSize(themeProps)}px;
298
- line-height: 1.5rem;
299
- color: ${themed({
297
+ font-size: ${editorFontSize(themeProps)}px;
298
+ line-height: 1.5rem;
299
+ color: ${themed({
300
300
  light: token('color.text', colors.N800),
301
301
  dark: token('color.text', '#B8C7E0')
302
302
  })(themeProps)};
303
303
 
304
- .${RendererCssClassName.DOCUMENT}::after {
305
- // we add a clearfix after ak-renderer-document in order to
306
- // contain internal floats (such as media images that are "wrap-left")
307
- // to just the renderer (and not spill outside of it)
308
- content: '';
309
- visibility: hidden;
310
- display: block;
311
- height: 0;
312
- clear: both;
313
- }
304
+ .${RendererCssClassName.DOCUMENT}::after {
305
+ // we add a clearfix after ak-renderer-document in order to
306
+ // contain internal floats (such as media images that are "wrap-left")
307
+ // to just the renderer (and not spill outside of it)
308
+ content: '';
309
+ visibility: hidden;
310
+ display: block;
311
+ height: 0;
312
+ clear: both;
313
+ }
314
314
 
315
- ${fullPageStyles(wrapperProps, themeProps)}
316
- ${fullWidthStyles(wrapperProps)}
315
+ ${fullPageStyles(wrapperProps, themeProps)}
316
+ ${fullWidthStyles(wrapperProps)}
317
317
 
318
318
  & h1 {
319
- ${headingAnchorStyle('h1')}
320
- }
319
+ ${headingAnchorStyle('h1')}
320
+ }
321
321
 
322
- & h2 {
323
- ${headingAnchorStyle('h2')}
324
- }
322
+ & h2 {
323
+ ${headingAnchorStyle('h2')}
324
+ }
325
325
 
326
- & h3 {
327
- ${headingAnchorStyle('h3')}
328
- }
326
+ & h3 {
327
+ ${headingAnchorStyle('h3')}
328
+ }
329
329
 
330
- & h4 {
331
- ${headingAnchorStyle('h4')}
332
- }
330
+ & h4 {
331
+ ${headingAnchorStyle('h4')}
332
+ }
333
333
 
334
- & h5 {
335
- ${headingAnchorStyle('h5')}
336
- }
334
+ & h5 {
335
+ ${headingAnchorStyle('h5')}
336
+ }
337
337
 
338
- & h6 {
339
- ${headingAnchorStyle('h6')}
340
- }
338
+ & h6 {
339
+ ${headingAnchorStyle('h6')}
340
+ }
341
341
 
342
- & span.akActionMark {
343
- color: ${token('color.link', colors.B400)};
344
- text-decoration: none;
342
+ & span.akActionMark {
343
+ color: ${token('color.link', colors.B400)};
344
+ text-decoration: none;
345
345
 
346
- &:hover {
347
- color: ${token('color.link', colors.B300)};
348
- text-decoration: underline;
346
+ &:hover {
347
+ color: ${token('color.link', colors.B300)};
348
+ text-decoration: underline;
349
+ }
350
+
351
+ &:active {
352
+ color: ${token('color.link.pressed', colors.B500)};
353
+ }
349
354
  }
350
355
 
351
- &:active {
352
- color: ${token('color.link.pressed', colors.B500)};
356
+ & span.akActionMark {
357
+ cursor: pointer;
353
358
  }
354
- }
355
359
 
356
- & span.akActionMark {
357
- cursor: pointer;
358
- }
360
+ & span[data-placeholder] {
361
+ color: ${colors.placeholderText(themeProps)};
362
+ }
359
363
 
360
- & span[data-placeholder] {
361
- color: ${colors.placeholderText(themeProps)};
362
- }
364
+ ${whitespaceSharedStyles};
365
+ ${blockquoteSharedStyles};
366
+ ${headingsSharedStyles(themeProps)};
367
+ ${ruleSharedStyles(themeProps)};
368
+ ${paragraphSharedStyles};
369
+ ${listsSharedStyles};
370
+ ${indentationSharedStyles};
371
+ ${blockMarksSharedStyles};
372
+ ${codeMarkSharedStyles(themeProps)};
373
+ ${shadowSharedStyle};
374
+ ${dateSharedStyle};
375
+ ${textColorStyles};
376
+ ${tasksAndDecisionsStyles};
377
+ ${smartCardSharedStyles}
363
378
 
364
- ${whitespaceSharedStyles};
365
- ${blockquoteSharedStyles};
366
- ${headingsSharedStyles(themeProps)};
367
- ${ruleSharedStyles(themeProps)};
368
- ${paragraphSharedStyles};
369
- ${listsSharedStyles};
370
- ${indentationSharedStyles};
371
- ${blockMarksSharedStyles};
372
- ${codeMarkSharedStyles(themeProps)};
373
- ${shadowSharedStyle};
374
- ${dateSharedStyle};
375
- ${textColorStyles};
376
- ${tasksAndDecisionsStyles};
377
- ${smartCardSharedStyles}
378
-
379
- & .UnknownBlock {
380
- font-family: ${fontFamily()};
381
- font-size: ${relativeFontSizeToBase16(fontSize())};
382
- font-weight: 400;
383
- white-space: pre-wrap;
384
- word-wrap: break-word;
385
- }
379
+ & .UnknownBlock {
380
+ font-family: ${fontFamily()};
381
+ font-size: ${relativeFontSizeToBase16(fontSize())};
382
+ font-weight: 400;
383
+ white-space: pre-wrap;
384
+ word-wrap: break-word;
385
+ }
386
386
 
387
- & span.date-node {
388
- background: ${themed({
387
+ & span.date-node {
388
+ background: ${themed({
389
389
  light: token('color.background.neutral', colors.N30A),
390
390
  dark: token('color.background.neutral', colors.DN70)
391
391
  })(themeProps)};
392
- border-radius: ${borderRadius()}px;
393
- color: ${themed({
392
+ border-radius: ${borderRadius()}px;
393
+ color: ${themed({
394
394
  light: token('color.text', colors.N800),
395
395
  dark: token('color.text', colors.DN600)
396
396
  })(themeProps)};
397
- padding: 2px 4px;
398
- margin: 0 1px;
399
- transition: background 0.3s;
400
- }
397
+ padding: 2px 4px;
398
+ margin: 0 1px;
399
+ transition: background 0.3s;
400
+ }
401
401
 
402
- & span.date-node-highlighted {
403
- background: ${token('color.background.danger', colors.R50)};
404
- color: ${token('color.text.danger', colors.R500)};
405
- }
402
+ & span.date-node-highlighted {
403
+ background: ${token('color.background.danger', colors.R50)};
404
+ color: ${token('color.text.danger', colors.R500)};
405
+ }
406
406
 
407
- & .renderer-image {
408
- max-width: 100%;
409
- display: block;
410
- margin: ${gridSize() * 3}px 0;
411
- }
407
+ & .renderer-image {
408
+ max-width: 100%;
409
+ display: block;
410
+ margin: ${gridSize() * 3}px 0;
411
+ }
412
412
 
413
- .${richMediaClassName}.rich-media-wrapped
414
- + .${richMediaClassName}:not(.rich-media-wrapped) {
415
- clear: both;
416
- }
413
+ .${richMediaClassName}.rich-media-wrapped
414
+ + .${richMediaClassName}:not(.rich-media-wrapped) {
415
+ clear: both;
416
+ }
417
417
 
418
- & .code-block,
419
- & blockquote,
420
- & hr,
421
- & > div > div:not(.rich-media-wrapped),
422
- .${richMediaClassName}.rich-media-wrapped
423
- + .rich-media-wrapped
424
- + *:not(.rich-media-wrapped),
425
- .${richMediaClassName}.rich-media-wrapped + div:not(.rich-media-wrapped),
426
- .${richMediaClassName}.image-align-start,
427
- .${richMediaClassName}.image-center,
428
- .${richMediaClassName}.image-align-end {
429
- clear: both;
430
- }
418
+ & .code-block,
419
+ & blockquote,
420
+ & hr,
421
+ & > div > div:not(.rich-media-wrapped),
422
+ .${richMediaClassName}.rich-media-wrapped
423
+ + .rich-media-wrapped
424
+ + *:not(.rich-media-wrapped),
425
+ .${richMediaClassName}.rich-media-wrapped + div:not(.rich-media-wrapped),
426
+ .${richMediaClassName}.image-align-start,
427
+ .${richMediaClassName}.image-center,
428
+ .${richMediaClassName}.image-align-end {
429
+ clear: both;
430
+ }
431
431
 
432
- & .rich-media-wrapped {
433
- & + h1,
434
- & + h2,
435
- & + h3,
436
- & + h4,
437
- & + h5,
438
- & + h6 {
439
- margin-top: 8px;
432
+ & .rich-media-wrapped {
433
+ & + h1,
434
+ & + h2,
435
+ & + h3,
436
+ & + h4,
437
+ & + h5,
438
+ & + h6 {
439
+ margin-top: 8px;
440
+ }
440
441
  }
441
- }
442
442
 
443
- ${alignedHeadingAnchorStyle(wrapperProps)}
444
- /* plugin styles */
443
+ ${alignedHeadingAnchorStyle(wrapperProps)}
444
+ /* plugin styles */
445
445
  ${mediaSingleSharedStyle} &
446
446
  div[class^='image-wrap-'] + div[class^='image-wrap-'] {
447
- margin-left: 0;
448
- margin-right: 0;
449
- }
450
-
451
- /* Breakout for tables and extensions */
452
- .${RendererCssClassName.DOCUMENT} > {
453
- * .${TableSharedCssClassName.TABLE_CONTAINER} {
454
- width: 100% !important;
455
- left: 0 !important;
447
+ margin-left: 0;
448
+ margin-right: 0;
456
449
  }
457
450
 
458
- * .${RendererCssClassName.EXTENSION_OVERFLOW_CONTAINER} {
459
- overflow-x: auto;
460
- }
451
+ /* Breakout for tables and extensions */
452
+ .${RendererCssClassName.DOCUMENT} > {
453
+ * .${TableSharedCssClassName.TABLE_CONTAINER} {
454
+ width: 100% !important;
455
+ left: 0 !important;
456
+ }
461
457
 
462
- & .${RendererCssClassName.EXTENSION}:first-child {
463
- margin-top: 0;
464
- }
465
- }
458
+ * .${RendererCssClassName.EXTENSION_OVERFLOW_CONTAINER} {
459
+ overflow-x: auto;
460
+ }
466
461
 
467
- .${RendererCssClassName.DOCUMENT} {
468
- .${RendererCssClassName.EXTENSION} {
469
- margin-top: ${blockNodesVerticalMargin};
462
+ & .${RendererCssClassName.EXTENSION}:first-child {
463
+ margin-top: 0;
464
+ }
470
465
  }
471
466
 
472
- .${RendererCssClassName.EXTENSION_CENTER_ALIGN} {
473
- margin-left: 50%;
474
- transform: translateX(-50%);
475
- }
467
+ .${RendererCssClassName.DOCUMENT} {
468
+ .${RendererCssClassName.EXTENSION} {
469
+ margin-top: ${blockNodesVerticalMargin};
470
+ }
476
471
 
477
- .${TableSharedCssClassName.TABLE_NODE_WRAPPER} {
478
- overflow-x: auto;
479
- }
472
+ .${RendererCssClassName.EXTENSION_CENTER_ALIGN} {
473
+ margin-left: 50%;
474
+ transform: translateX(-50%);
475
+ }
480
476
 
481
- .${shadowObserverClassNames.SHADOW_CONTAINER}
482
477
  .${TableSharedCssClassName.TABLE_NODE_WRAPPER} {
483
- display: flex;
478
+ overflow-x: auto;
479
+ }
480
+
481
+ .${shadowObserverClassNames.SHADOW_CONTAINER}
482
+ .${TableSharedCssClassName.TABLE_NODE_WRAPPER} {
483
+ display: flex;
484
+ }
484
485
  }
485
- }
486
486
 
487
- ${tableSharedStyle(themeProps)}
487
+ ${tableSharedStyle(themeProps)}
488
488
 
489
- .${RendererCssClassName.DOCUMENT} .${TableSharedCssClassName.TABLE_CONTAINER} {
490
- z-index: 0;
491
- transition: all 0.1s linear;
492
- display: flex; /* needed to avoid position: fixed jumpiness in Chrome */
489
+ .${RendererCssClassName.DOCUMENT} .${TableSharedCssClassName.TABLE_CONTAINER} {
490
+ z-index: 0;
491
+ transition: all 0.1s linear;
492
+ display: flex; /* needed to avoid position: fixed jumpiness in Chrome */
493
493
 
494
- /** Shadow overrides */
495
- &.${shadowClassNames.RIGHT_SHADOW}::after,
496
- &.${shadowClassNames.LEFT_SHADOW}::before {
497
- top: ${tableMarginTop - 1}px;
498
- height: calc(100% - ${tableMarginTop}px);
499
- z-index: ${akEditorStickyHeaderZIndex};
500
- }
494
+ /** Shadow overrides */
495
+ &.${shadowClassNames.RIGHT_SHADOW}::after,
496
+ &.${shadowClassNames.LEFT_SHADOW}::before {
497
+ top: ${tableMarginTop - 1}px;
498
+ height: calc(100% - ${tableMarginTop}px);
499
+ z-index: ${akEditorStickyHeaderZIndex};
500
+ }
501
501
 
502
- &
503
- .${shadowObserverClassNames.SENTINEL_LEFT},
504
502
  &
505
- .${shadowObserverClassNames.SENTINEL_RIGHT} {
506
- height: calc(100% - ${tableMarginTop}px);
507
- }
503
+ .${shadowObserverClassNames.SENTINEL_LEFT},
504
+ &
505
+ .${shadowObserverClassNames.SENTINEL_RIGHT} {
506
+ height: calc(100% - ${tableMarginTop}px);
507
+ }
508
508
 
509
- /**
509
+ /**
510
510
  * A hack for making all the <th /> heights equal in case some have shorter
511
511
  * content than others.
512
512
  *
513
513
  * This is done to make sort buttons fill entire <th />.
514
514
  */
515
- table {
516
- height: 1px; /* will be ignored */
517
- ${tableSortableColumnStyle(wrapperProps)};
518
- margin-left: 0;
519
- margin-right: 0;
520
- }
515
+ table {
516
+ height: 1px; /* will be ignored */
517
+ ${tableSortableColumnStyle(wrapperProps)};
518
+ margin-left: 0;
519
+ margin-right: 0;
520
+ }
521
521
 
522
- table tr:first-of-type {
523
- height: 100%;
522
+ table tr:first-of-type {
523
+ height: 100%;
524
524
 
525
- td,
526
- th {
527
- position: relative;
525
+ td,
526
+ th {
527
+ position: relative;
528
+ }
528
529
  }
529
- }
530
530
 
531
- table[data-number-column='true'] {
532
- .${RendererCssClassName.NUMBER_COLUMN} {
533
- background-color: ${themed({
531
+ table[data-number-column='true'] {
532
+ .${RendererCssClassName.NUMBER_COLUMN} {
533
+ background-color: ${themed({
534
534
  light: token('color.background.neutral', akEditorTableToolbar),
535
535
  dark: token('color.background.neutral', akEditorTableToolbarDark)
536
536
  })(themeProps)};
537
- border-right: 1px solid
538
- ${themed({
537
+ border-right: 1px solid
538
+ ${themed({
539
539
  light: token('color.border', akEditorTableBorder),
540
540
  dark: token('color.border', akEditorTableBorderDark)
541
541
  })(themeProps)};
542
- width: ${akEditorTableNumberColumnWidth}px;
543
- text-align: center;
544
- color: ${themed({
542
+ width: ${akEditorTableNumberColumnWidth}px;
543
+ text-align: center;
544
+ color: ${themed({
545
545
  light: token('color.text.subtlest', colors.N200),
546
546
  dark: token('color.text.subtlest', colors.DN400)
547
547
  })(themeProps)};
548
- font-size: ${relativeFontSizeToBase16(fontSize())};
549
- }
548
+ font-size: ${relativeFontSizeToBase16(fontSize())};
549
+ }
550
550
 
551
- .fixed .${RendererCssClassName.NUMBER_COLUMN} {
552
- border-right: 0px none;
551
+ .fixed .${RendererCssClassName.NUMBER_COLUMN} {
552
+ border-right: 0px none;
553
+ }
553
554
  }
554
555
  }
555
- }
556
556
 
557
- tr[data-header-row].fixed {
558
- position: fixed !important;
559
- display: flex;
560
- overflow: hidden;
561
- z-index: ${akEditorStickyHeaderZIndex};
557
+ tr[data-header-row].fixed {
558
+ position: fixed !important;
559
+ display: flex;
560
+ overflow: hidden;
561
+ z-index: ${akEditorStickyHeaderZIndex};
562
562
 
563
- border-right: 1px solid
564
- ${themed({
563
+ border-right: 1px solid
564
+ ${themed({
565
565
  light: token('color.border', akEditorTableBorder),
566
566
  dark: token('color.border', akEditorTableBorderDark)
567
567
  })(themeProps)};
568
- border-bottom: 1px solid
569
- ${themed({
568
+ border-bottom: 1px solid
569
+ ${themed({
570
570
  light: token('color.border', akEditorTableBorder),
571
571
  dark: token('color.border', akEditorTableBorderDark)
572
572
  })(themeProps)};
573
573
 
574
- /* this is to compensate for the table border */
575
- transform: translateX(-1px);
576
- }
574
+ /* this is to compensate for the table border */
575
+ transform: translateX(-1px);
576
+ }
577
577
 
578
- .sticky > th {
579
- z-index: ${akEditorStickyHeaderZIndex};
580
- position: sticky !important;
581
- top: 0;
582
- }
578
+ .sticky > th {
579
+ z-index: ${akEditorStickyHeaderZIndex};
580
+ position: sticky !important;
581
+ top: 0;
582
+ }
583
583
 
584
- /* Make the number column header sticky */
585
- .sticky > td {
586
- position: sticky !important;
587
- top: 0;
588
- }
584
+ /* Make the number column header sticky */
585
+ .sticky > td {
586
+ position: sticky !important;
587
+ top: 0;
588
+ }
589
589
 
590
- /* add border for position: sticky
590
+ /* add border for position: sticky
591
591
  and work around background-clip: padding-box
592
592
  bug for FF causing box-shadow bug in Chrome */
593
- .sticky th,
594
- .sticky td {
595
- box-shadow: 0px 1px
596
- ${themed({
593
+ .sticky th,
594
+ .sticky td {
595
+ box-shadow: 0px 1px
596
+ ${themed({
597
597
  light: token('color.border', akEditorTableBorder),
598
598
  dark: token('color.border', akEditorTableBorderDark)
599
599
  })(themeProps)},
600
- 0px -0.5px ${themed({
600
+ 0px -0.5px ${themed({
601
601
  light: token('color.border', akEditorTableBorder),
602
602
  dark: token('color.border', akEditorTableBorderDark)
603
603
  })(themeProps)},
604
- inset -1px 0px ${themed({
604
+ inset -1px 0px ${themed({
605
605
  light: token('color.border', akEditorTableToolbar),
606
606
  dark: token('color.border', akEditorTableToolbarDark)
607
607
  })(themeProps)},
608
- 0px -1px ${themed({
608
+ 0px -1px ${themed({
609
609
  light: token('color.border', akEditorTableToolbar),
610
610
  dark: token('color.border', akEditorTableToolbarDark)
611
611
  })(themeProps)};
612
- }
612
+ }
613
613
 
614
- /* this will remove jumpiness caused in Chrome for sticky headers */
615
- .fixed + tr {
616
- min-height: 0px;
617
- }
614
+ /* this will remove jumpiness caused in Chrome for sticky headers */
615
+ .fixed + tr {
616
+ min-height: 0px;
617
+ }
618
618
 
619
- /*
619
+ /*
620
620
  * We wrap CodeBlock in a grid to prevent it from overflowing the container of the renderer.
621
621
  * See ED-4159.
622
622
  */
623
- & .code-block {
624
- max-width: 100%;
625
- /* -ms- properties are necessary until MS supports the latest version of the grid spec */
626
- /* stylelint-disable value-no-vendor-prefix, declaration-block-no-duplicate-properties */
627
- display: -ms-grid;
628
- display: grid;
629
- -ms-grid-columns: auto 1fr;
630
- /* stylelint-enable */
631
-
632
- grid-template-columns: minmax(0, 1fr);
633
- position: relative;
634
- border-radius: ${borderRadius()}px;
623
+ & .code-block {
624
+ max-width: 100%;
625
+ /* -ms- properties are necessary until MS supports the latest version of the grid spec */
626
+ /* stylelint-disable value-no-vendor-prefix, declaration-block-no-duplicate-properties */
627
+ display: -ms-grid;
628
+ display: grid;
629
+ -ms-grid-columns: auto 1fr;
630
+ /* stylelint-enable */
635
631
 
636
- /*
632
+ grid-template-columns: minmax(0, 1fr);
633
+ position: relative;
634
+ border-radius: ${borderRadius()}px;
635
+
636
+ /*
637
637
  * The overall renderer has word-wrap: break; which causes issues with
638
638
  * code block line numbers in Safari / iOS.
639
639
  */
640
- word-wrap: normal;
641
-
642
- & > span {
643
- /* stylelint-disable value-no-vendor-prefix */
644
- -ms-grid-row: 1;
645
- -ms-grid-column: 2;
646
- /* stylelint-enable */
647
- grid-column: 1;
640
+ word-wrap: normal;
641
+
642
+ & > span {
643
+ /* stylelint-disable value-no-vendor-prefix */
644
+ -ms-grid-row: 1;
645
+ -ms-grid-column: 2;
646
+ /* stylelint-enable */
647
+ grid-column: 1;
648
+ }
648
649
  }
649
- }
650
650
 
651
- & .MediaGroup,
652
- & .code-block {
653
- margin-top: ${blockNodesVerticalMargin};
651
+ & .MediaGroup,
652
+ & .code-block {
653
+ margin-top: ${blockNodesVerticalMargin};
654
654
 
655
- &:first-child {
656
- margin-top: 0;
657
- }
655
+ &:first-child {
656
+ margin-top: 0;
657
+ }
658
658
 
659
- &:hover button.copy-to-clipboard,
660
- .copy-to-clipboard:focus {
661
- opacity: 1;
662
- position: absolute;
663
- height: 32px;
664
- width: 32px;
665
- right: 6px;
666
- top: 4px;
667
- padding: 2px;
659
+ &:hover button.copy-to-clipboard,
660
+ .copy-to-clipboard:focus {
661
+ opacity: 1;
662
+ position: absolute;
663
+ height: 32px;
664
+ width: 32px;
665
+ right: 6px;
666
+ top: 4px;
667
+ padding: 2px;
668
+ }
668
669
  }
669
- }
670
670
 
671
- ${getLightWeightCodeBlockStylesForRootRendererStyleSheet()}
672
-
673
- ${columnLayoutSharedStyle};
674
- & [data-layout-section] {
675
- margin-top: ${gridSize() * 2.5}px;
676
- & > div + div {
677
- margin-left: ${gridSize() * 4}px;
678
- }
671
+ ${getLightWeightCodeBlockStylesForRootRendererStyleSheet()}
679
672
 
680
- @media screen and (max-width: ${gridMediumMaxWidth}px) {
673
+ ${columnLayoutSharedStyle};
674
+ & [data-layout-section] {
675
+ margin-top: ${gridSize() * 2.5}px;
681
676
  & > div + div {
682
- margin-left: 0;
677
+ margin-left: ${gridSize() * 4}px;
683
678
  }
684
- }
685
- }
686
679
 
687
- & li {
688
- > .code-block {
689
- margin: ${blockNodesVerticalMargin} 0 0 0;
690
- }
691
- > .code-block:first-child {
692
- margin-top: 0;
680
+ @media screen and (max-width: ${gridMediumMaxWidth}px) {
681
+ & > div + div {
682
+ margin-left: 0;
683
+ }
684
+ }
693
685
  }
694
686
 
695
- > div:last-of-type.code-block {
696
- margin-bottom: ${blockNodesVerticalMargin};
697
- }
687
+ & li {
688
+ > .code-block {
689
+ margin: ${blockNodesVerticalMargin} 0 0 0;
690
+ }
691
+ > .code-block:first-child {
692
+ margin-top: 0;
693
+ }
698
694
 
699
- ${browser.safari ? codeBlockInListSafariFix : ''}
700
- }
701
- `;
695
+ > div:last-of-type.code-block {
696
+ margin-bottom: ${blockNodesVerticalMargin};
697
+ }
698
+
699
+ ${browser.safari ? codeBlockInListSafariFix : ''}
700
+ }
701
+ `;
702
702
  };