@atlaskit/renderer 107.3.3 → 108.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 (125) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/cjs/actions/index.js +3 -4
  3. package/dist/cjs/analytics/enums.js +16 -16
  4. package/dist/cjs/analytics/events.js +12 -12
  5. package/dist/cjs/i18n/cs.js +1 -0
  6. package/dist/cjs/i18n/da.js +1 -0
  7. package/dist/cjs/i18n/de.js +1 -0
  8. package/dist/cjs/i18n/en.js +1 -0
  9. package/dist/cjs/i18n/en_GB.js +1 -0
  10. package/dist/cjs/i18n/en_ZZ.js +5 -4
  11. package/dist/cjs/i18n/es.js +1 -0
  12. package/dist/cjs/i18n/fi.js +1 -0
  13. package/dist/cjs/i18n/fr.js +1 -0
  14. package/dist/cjs/i18n/hu.js +1 -0
  15. package/dist/cjs/i18n/it.js +1 -0
  16. package/dist/cjs/i18n/ja.js +1 -0
  17. package/dist/cjs/i18n/ko.js +1 -0
  18. package/dist/cjs/i18n/nb.js +1 -0
  19. package/dist/cjs/i18n/nl.js +1 -0
  20. package/dist/cjs/i18n/pl.js +1 -0
  21. package/dist/cjs/i18n/pt_BR.js +1 -0
  22. package/dist/cjs/i18n/ru.js +1 -0
  23. package/dist/cjs/i18n/sv.js +1 -0
  24. package/dist/cjs/i18n/th.js +1 -0
  25. package/dist/cjs/i18n/tr.js +1 -0
  26. package/dist/cjs/i18n/uk.js +1 -0
  27. package/dist/cjs/i18n/vi.js +1 -0
  28. package/dist/cjs/i18n/zh.js +1 -0
  29. package/dist/cjs/i18n/zh_TW.js +1 -0
  30. package/dist/cjs/react/hooks/use-in-viewport.js +1 -1
  31. package/dist/cjs/react/hooks/use-observed-width.js +1 -1
  32. package/dist/cjs/react/index.js +8 -9
  33. package/dist/cjs/react/nodes/codeBlock/windowedCodeBlock.js +12 -13
  34. package/dist/cjs/react/nodes/heading-anchor.js +21 -24
  35. package/dist/cjs/react/nodes/index.js +38 -19
  36. package/dist/cjs/react/nodes/mediaInline.js +17 -19
  37. package/dist/cjs/react/nodes/table.js +3 -3
  38. package/dist/cjs/react/nodes/task-item-with-providers.js +34 -36
  39. package/dist/cjs/ui/MediaCard.js +82 -87
  40. package/dist/cjs/ui/Renderer/index.js +5 -6
  41. package/dist/cjs/ui/Renderer/style.js +7 -4
  42. package/dist/cjs/ui/SortingIcon.js +4 -4
  43. package/dist/cjs/ui/annotations/types.js +4 -4
  44. package/dist/cjs/version.json +1 -1
  45. package/dist/es2019/actions/index.js +3 -4
  46. package/dist/es2019/analytics/enums.js +12 -12
  47. package/dist/es2019/analytics/events.js +9 -9
  48. package/dist/es2019/i18n/cs.js +1 -0
  49. package/dist/es2019/i18n/da.js +1 -0
  50. package/dist/es2019/i18n/de.js +1 -0
  51. package/dist/es2019/i18n/en.js +1 -0
  52. package/dist/es2019/i18n/en_GB.js +1 -0
  53. package/dist/es2019/i18n/en_ZZ.js +5 -4
  54. package/dist/es2019/i18n/es.js +1 -0
  55. package/dist/es2019/i18n/fi.js +1 -0
  56. package/dist/es2019/i18n/fr.js +1 -0
  57. package/dist/es2019/i18n/hu.js +1 -0
  58. package/dist/es2019/i18n/it.js +1 -0
  59. package/dist/es2019/i18n/ja.js +1 -0
  60. package/dist/es2019/i18n/ko.js +1 -0
  61. package/dist/es2019/i18n/nb.js +1 -0
  62. package/dist/es2019/i18n/nl.js +1 -0
  63. package/dist/es2019/i18n/pl.js +1 -0
  64. package/dist/es2019/i18n/pt_BR.js +1 -0
  65. package/dist/es2019/i18n/ru.js +1 -0
  66. package/dist/es2019/i18n/sv.js +1 -0
  67. package/dist/es2019/i18n/th.js +1 -0
  68. package/dist/es2019/i18n/tr.js +1 -0
  69. package/dist/es2019/i18n/uk.js +1 -0
  70. package/dist/es2019/i18n/vi.js +1 -0
  71. package/dist/es2019/i18n/zh.js +1 -0
  72. package/dist/es2019/i18n/zh_TW.js +1 -0
  73. package/dist/es2019/react/index.js +8 -9
  74. package/dist/es2019/react/nodes/table.js +3 -4
  75. package/dist/es2019/ui/MediaCard.js +6 -8
  76. package/dist/es2019/ui/Renderer/index.js +5 -6
  77. package/dist/es2019/ui/Renderer/style.js +7 -4
  78. package/dist/es2019/ui/SortingIcon.js +3 -3
  79. package/dist/es2019/ui/annotations/types.js +3 -3
  80. package/dist/es2019/version.json +1 -1
  81. package/dist/esm/actions/index.js +3 -4
  82. package/dist/esm/analytics/enums.js +12 -12
  83. package/dist/esm/analytics/events.js +9 -9
  84. package/dist/esm/i18n/cs.js +1 -0
  85. package/dist/esm/i18n/da.js +1 -0
  86. package/dist/esm/i18n/de.js +1 -0
  87. package/dist/esm/i18n/en.js +1 -0
  88. package/dist/esm/i18n/en_GB.js +1 -0
  89. package/dist/esm/i18n/en_ZZ.js +5 -4
  90. package/dist/esm/i18n/es.js +1 -0
  91. package/dist/esm/i18n/fi.js +1 -0
  92. package/dist/esm/i18n/fr.js +1 -0
  93. package/dist/esm/i18n/hu.js +1 -0
  94. package/dist/esm/i18n/it.js +1 -0
  95. package/dist/esm/i18n/ja.js +1 -0
  96. package/dist/esm/i18n/ko.js +1 -0
  97. package/dist/esm/i18n/nb.js +1 -0
  98. package/dist/esm/i18n/nl.js +1 -0
  99. package/dist/esm/i18n/pl.js +1 -0
  100. package/dist/esm/i18n/pt_BR.js +1 -0
  101. package/dist/esm/i18n/ru.js +1 -0
  102. package/dist/esm/i18n/sv.js +1 -0
  103. package/dist/esm/i18n/th.js +1 -0
  104. package/dist/esm/i18n/tr.js +1 -0
  105. package/dist/esm/i18n/uk.js +1 -0
  106. package/dist/esm/i18n/vi.js +1 -0
  107. package/dist/esm/i18n/zh.js +1 -0
  108. package/dist/esm/i18n/zh_TW.js +1 -0
  109. package/dist/esm/react/hooks/use-in-viewport.js +1 -1
  110. package/dist/esm/react/hooks/use-observed-width.js +1 -1
  111. package/dist/esm/react/index.js +8 -9
  112. package/dist/esm/react/nodes/codeBlock/windowedCodeBlock.js +10 -13
  113. package/dist/esm/react/nodes/heading-anchor.js +21 -24
  114. package/dist/esm/react/nodes/mediaInline.js +17 -20
  115. package/dist/esm/react/nodes/table.js +3 -3
  116. package/dist/esm/react/nodes/task-item-with-providers.js +34 -37
  117. package/dist/esm/ui/MediaCard.js +82 -88
  118. package/dist/esm/ui/Renderer/index.js +5 -6
  119. package/dist/esm/ui/Renderer/style.js +8 -5
  120. package/dist/esm/ui/SortingIcon.js +3 -3
  121. package/dist/esm/ui/annotations/types.js +3 -3
  122. package/dist/esm/version.json +1 -1
  123. package/dist/types/i18n/en_ZZ.d.ts +2 -2
  124. package/package.json +41 -41
  125. package/report.api.md +1 -1
@@ -2,7 +2,7 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
2
2
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
3
3
  import { css } from '@emotion/react';
4
4
  import { themed } from '@atlaskit/theme/components';
5
- import { gridSize, fontFamily, fontSize, borderRadius } from '@atlaskit/theme/constants';
5
+ import { gridSize, fontFamily, fontSize } from '@atlaskit/theme/constants';
6
6
  import * as colors from '@atlaskit/theme/colors';
7
7
  import { headingSizes as headingSizesImport } from '@atlaskit/theme/typography';
8
8
  import { tableSharedStyle, columnLayoutSharedStyle, blockquoteSharedStyles, headingsSharedStyles, ruleSharedStyles, whitespaceSharedStyles, paragraphSharedStyles, listsSharedStyles, indentationSharedStyles, blockMarksSharedStyles, mediaSingleSharedStyle, TableSharedCssClassName, tableMarginTop, codeMarkSharedStyles, shadowSharedStyle, dateSharedStyle, richMediaClassName, tasksAndDecisionsStyles, smartCardSharedStyles, tableCellPadding, textColorStyles, codeBlockInListSafariFix } from '@atlaskit/editor-common/styles';
@@ -86,13 +86,16 @@ export var rendererStyles = function rendererStyles(wrapperProps) {
86
86
  var themeProps = {
87
87
  theme: theme
88
88
  };
89
- return css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n font-size: ", "px;\n line-height: 1.5rem;\n color: ", ";\n\n .", "::after {\n // we add a clearfix after ak-renderer-document in order to\n // contain internal floats (such as media images that are \"wrap-left\")\n // to just the renderer (and not spill outside of it)\n content: '';\n visibility: hidden;\n display: block;\n height: 0;\n clear: both;\n }\n\n ", "\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\n & span.akActionMark {\n color: ", ";\n text-decoration: none;\n\n &:hover {\n color: ", ";\n text-decoration: underline;\n }\n\n &:active {\n color: ", ";\n }\n }\n\n & span.akActionMark {\n cursor: pointer;\n }\n\n & span[data-placeholder] {\n color: ", ";\n }\n\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", "\n\n & .UnknownBlock {\n font-family: ", ";\n font-size: ", ";\n font-weight: 400;\n white-space: pre-wrap;\n word-wrap: break-word;\n }\n\n & span.date-node {\n background: ", ";\n border-radius: ", "px;\n color: ", ";\n padding: 2px 4px;\n margin: 0 1px;\n transition: background 0.3s;\n }\n\n & span.date-node-highlighted {\n background: ", ";\n color: ", ";\n }\n\n & .renderer-image {\n max-width: 100%;\n display: block;\n margin: ", "px 0;\n }\n\n .", ".rich-media-wrapped\n + .", ":not(.rich-media-wrapped) {\n clear: both;\n }\n\n & .code-block,\n & blockquote,\n & hr,\n & > div > div:not(.rich-media-wrapped),\n .", ".rich-media-wrapped\n + .rich-media-wrapped\n + *:not(.rich-media-wrapped),\n .", ".rich-media-wrapped + div:not(.rich-media-wrapped),\n .", ".image-align-start,\n .", ".image-center,\n .", ".image-align-end {\n clear: both;\n }\n\n & .rich-media-wrapped {\n & + h1,\n & + h2,\n & + h3,\n & + h4,\n & + h5,\n & + h6 {\n margin-top: 8px;\n }\n }\n\n ", "\n /* plugin styles */\n ", " &\n div[class^='image-wrap-'] + div[class^='image-wrap-'] {\n margin-left: 0;\n margin-right: 0;\n }\n\n /* Breakout for tables and extensions */\n .", " > {\n ", "\n\n * .", " {\n overflow-x: auto;\n }\n\n & .", ":first-child {\n margin-top: 0;\n }\n }\n\n .", " {\n .", " {\n margin-top: ", ";\n }\n\n .", " {\n margin-left: 50%;\n transform: translateX(-50%);\n }\n\n .", " {\n overflow-x: auto;\n }\n\n .", "\n .", " {\n display: flex;\n }\n }\n\n ", "\n\n .", " .", " {\n z-index: 0;\n transition: all 0.1s linear;\n display: flex; /* needed to avoid position: fixed jumpiness in Chrome */\n\n /** Shadow overrides */\n &.", "::after,\n &.", "::before {\n top: ", "px;\n height: calc(100% - ", "px);\n z-index: ", ";\n }\n\n &\n .", ",\n &\n .", " {\n height: calc(100% - ", "px);\n }\n\n /**\n * A hack for making all the <th /> heights equal in case some have shorter\n * content than others.\n *\n * This is done to make sort buttons fill entire <th />.\n */\n table {\n height: 1px; /* will be ignored */\n ", ";\n margin-left: 0;\n margin-right: 0;\n }\n\n table tr:first-of-type {\n height: 100%;\n\n td,\n th {\n position: relative;\n }\n }\n\n table[data-number-column='true'] {\n .", " {\n background-color: ", ";\n border-right: 1px solid\n ", ";\n width: ", "px;\n text-align: center;\n color: ", ";\n font-size: ", ";\n }\n\n .fixed .", " {\n border-right: 0px none;\n }\n }\n }\n\n tr[data-header-row].fixed {\n position: fixed !important;\n display: flex;\n overflow: hidden;\n z-index: ", ";\n\n border-right: 1px solid\n ", ";\n border-bottom: 1px solid\n ", ";\n\n /* this is to compensate for the table border */\n transform: translateX(-1px);\n }\n\n .sticky > th {\n z-index: ", ";\n position: sticky !important;\n top: 0;\n }\n\n /* Make the number column header sticky */\n .sticky > td {\n position: sticky !important;\n top: 0;\n }\n\n /* add border for position: sticky\n and work around background-clip: padding-box\n bug for FF causing box-shadow bug in Chrome */\n .sticky th,\n .sticky td {\n box-shadow: 0px 1px\n ", ",\n 0px -0.5px ", ",\n inset -1px 0px ", ",\n 0px -1px ", ";\n }\n\n /* this will remove jumpiness caused in Chrome for sticky headers */\n .fixed + tr {\n min-height: 0px;\n }\n\n /*\n * We wrap CodeBlock in a grid to prevent it from overflowing the container of the renderer.\n * See ED-4159.\n */\n & .code-block {\n max-width: 100%;\n /* -ms- properties are necessary until MS supports the latest version of the grid spec */\n /* stylelint-disable value-no-vendor-prefix, declaration-block-no-duplicate-properties */\n display: -ms-grid;\n display: grid;\n -ms-grid-columns: auto 1fr;\n /* stylelint-enable */\n\n grid-template-columns: minmax(0, 1fr);\n position: relative;\n border-radius: ", "px;\n\n /*\n * The overall renderer has word-wrap: break; which causes issues with\n * code block line numbers in Safari / iOS.\n */\n word-wrap: normal;\n\n & > span {\n /* stylelint-disable value-no-vendor-prefix */\n -ms-grid-row: 1;\n -ms-grid-column: 2;\n /* stylelint-enable */\n grid-column: 1;\n }\n }\n\n & .MediaGroup,\n & .code-block {\n margin-top: ", ";\n\n &:first-child {\n margin-top: 0;\n }\n }\n\n ", "\n\n ", ";\n & [data-layout-section] {\n margin-top: ", "px;\n & > div + div {\n margin-left: ", "px;\n }\n\n @media screen and (max-width: ", "px) {\n & > div + div {\n margin-left: 0;\n }\n }\n\n & .MediaGroup,\n & .code-block {\n margin-top: ", ";\n\n &:first-child {\n margin-top: 0;\n }\n }\n }\n\n & li {\n > .code-block {\n margin: ", " 0 0 0;\n }\n > .code-block:first-child {\n margin-top: 0;\n }\n\n > div:last-of-type.code-block {\n margin-bottom: ", ";\n }\n }\n\n & :not([data-node-type='decisionList']) > li {\n ", "\n }\n "])), editorFontSize(themeProps), themed({
89
+ return css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n font-size: ", "px;\n line-height: 1.5rem;\n color: ", ";\n\n .", "::after {\n // we add a clearfix after ak-renderer-document in order to\n // contain internal floats (such as media images that are \"wrap-left\")\n // to just the renderer (and not spill outside of it)\n content: '';\n visibility: hidden;\n display: block;\n height: 0;\n clear: both;\n }\n\n ", "\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\n & span.akActionMark {\n color: ", ";\n text-decoration: none;\n\n &:hover {\n color: ", ";\n text-decoration: underline;\n }\n\n &:active {\n color: ", ";\n }\n }\n\n & span.akActionMark {\n cursor: pointer;\n }\n\n & span[data-placeholder] {\n color: ", ";\n }\n\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", "\n\n & .UnknownBlock {\n font-family: ", ";\n font-size: ", ";\n font-weight: 400;\n white-space: pre-wrap;\n word-wrap: break-word;\n }\n\n & span.date-node {\n background: ", ";\n border-radius: ", ";\n color: ", ";\n padding: 2px 4px;\n margin: 0 1px;\n transition: background 0.3s;\n }\n\n & span.date-node-highlighted {\n background: ", ";\n color: ", ";\n }\n\n & .renderer-image {\n max-width: 100%;\n display: block;\n margin: ", "px 0;\n }\n\n .", ".rich-media-wrapped\n + .", ":not(.rich-media-wrapped) {\n clear: both;\n }\n\n & .code-block,\n & blockquote,\n & hr,\n & > div > div:not(.rich-media-wrapped),\n .", ".rich-media-wrapped\n + .rich-media-wrapped\n + *:not(.rich-media-wrapped),\n .", ".rich-media-wrapped + div:not(.rich-media-wrapped),\n .", ".image-align-start,\n .", ".image-center,\n .", ".image-align-end {\n clear: both;\n }\n\n & .rich-media-wrapped {\n & + h1,\n & + h2,\n & + h3,\n & + h4,\n & + h5,\n & + h6 {\n margin-top: 8px;\n }\n }\n\n ", "\n /* plugin styles */\n ", " &\n div[class^='image-wrap-'] + div[class^='image-wrap-'] {\n margin-left: 0;\n margin-right: 0;\n }\n\n /* Breakout for tables and extensions */\n .", " > {\n ", "\n\n * .", " {\n overflow-x: auto;\n }\n\n & .", ":first-child {\n margin-top: 0;\n }\n }\n\n .", " {\n .", " {\n margin-top: ", ";\n }\n\n .", " {\n margin-left: 50%;\n transform: translateX(-50%);\n }\n\n .", " {\n overflow-x: auto;\n }\n\n .", "\n .", " {\n display: flex;\n }\n }\n\n ", "\n\n .", " .", " {\n z-index: 0;\n transition: all 0.1s linear;\n display: flex; /* needed to avoid position: fixed jumpiness in Chrome */\n\n /** Shadow overrides */\n &.", "::after,\n &.", "::before {\n top: ", "px;\n height: calc(100% - ", "px);\n z-index: ", ";\n }\n\n &\n .", ",\n &\n .", " {\n height: calc(100% - ", "px);\n }\n\n /**\n * A hack for making all the <th /> heights equal in case some have shorter\n * content than others.\n *\n * This is done to make sort buttons fill entire <th />.\n */\n table {\n height: 1px; /* will be ignored */\n ", ";\n margin-left: 0;\n margin-right: 0;\n }\n\n table tr:first-of-type {\n height: 100%;\n\n td,\n th {\n position: relative;\n }\n }\n\n table[data-number-column='true'] {\n .", " {\n background-color: ", ";\n border-right: 1px solid\n ", ";\n width: ", "px;\n text-align: center;\n color: ", ";\n font-size: ", ";\n }\n\n .fixed .", " {\n border-right: 0px none;\n }\n }\n }\n\n tr[data-header-row].fixed {\n position: fixed !important;\n display: flex;\n overflow: hidden;\n z-index: ", ";\n\n border-right: 1px solid\n ", ";\n border-bottom: 1px solid\n ", ";\n\n /* this is to compensate for the table border */\n transform: translateX(-1px);\n }\n\n .sticky > th {\n z-index: ", ";\n position: sticky !important;\n top: 0;\n }\n\n /* Make the number column header sticky */\n .sticky > td {\n position: sticky !important;\n top: 0;\n }\n\n /* add border for position: sticky\n and work around background-clip: padding-box\n bug for FF causing box-shadow bug in Chrome */\n .sticky th,\n .sticky td {\n box-shadow: 0px 1px\n ", ",\n 0px -0.5px ", ",\n inset -1px 0px ", ",\n 0px -1px ", ";\n }\n\n /* this will remove jumpiness caused in Chrome for sticky headers */\n .fixed + tr {\n min-height: 0px;\n }\n\n /*\n * We wrap CodeBlock in a grid to prevent it from overflowing the container of the renderer.\n * See ED-4159.\n */\n & .code-block {\n max-width: 100%;\n /* -ms- properties are necessary until MS supports the latest version of the grid spec */\n /* stylelint-disable value-no-vendor-prefix, declaration-block-no-duplicate-properties */\n display: -ms-grid;\n display: grid;\n -ms-grid-columns: auto 1fr;\n /* stylelint-enable */\n\n grid-template-columns: minmax(0, 1fr);\n position: relative;\n border-radius: ", ";\n\n /*\n * The overall renderer has word-wrap: break; which causes issues with\n * code block line numbers in Safari / iOS.\n */\n word-wrap: normal;\n\n & > span {\n /* stylelint-disable value-no-vendor-prefix */\n -ms-grid-row: 1;\n -ms-grid-column: 2;\n /* stylelint-enable */\n grid-column: 1;\n }\n }\n\n & .MediaGroup,\n & .code-block {\n margin-top: ", ";\n\n &:first-child {\n margin-top: 0;\n }\n }\n\n ", "\n\n ", ";\n & [data-layout-section] {\n margin-top: ", "px;\n & > div + div {\n margin-left: ", "px;\n }\n\n @media screen and (max-width: ", "px) {\n & > div + div {\n margin-left: 0;\n }\n }\n\n & .MediaGroup,\n & .code-block {\n margin-top: ", ";\n\n &:first-child {\n margin-top: 0;\n }\n }\n }\n\n & li {\n > .code-block {\n margin: ", " 0 0 0;\n }\n > .code-block:first-child {\n margin-top: 0;\n }\n\n > div:last-of-type.code-block {\n margin-bottom: ", ";\n }\n }\n\n & :not([data-node-type='decisionList']) > li {\n ", "\n }\n "])), editorFontSize(themeProps), themed({
90
90
  light: "var(--ds-text, ".concat(colors.N800, ")"),
91
91
  dark: "var(--ds-text, #B8C7E0)"
92
- })(themeProps), RendererCssClassName.DOCUMENT, fullPageStyles(wrapperProps, themeProps), fullWidthStyles(wrapperProps), headingAnchorStyle('h1'), headingAnchorStyle('h2'), headingAnchorStyle('h3'), headingAnchorStyle('h4'), headingAnchorStyle('h5'), headingAnchorStyle('h6'), "var(--ds-link, ".concat(colors.B400, ")"), "var(--ds-link, ".concat(colors.B300, ")"), "var(--ds-link-pressed, ".concat(colors.B500, ")"), colors.placeholderText(themeProps), whitespaceSharedStyles, blockquoteSharedStyles, headingsSharedStyles(themeProps), ruleSharedStyles(themeProps), paragraphSharedStyles, listsSharedStyles, indentationSharedStyles, blockMarksSharedStyles, codeMarkSharedStyles(themeProps), shadowSharedStyle, dateSharedStyle, textColorStyles, tasksAndDecisionsStyles, smartCardSharedStyles, fontFamily(), relativeFontSizeToBase16(fontSize()), themed({
92
+ })(themeProps), RendererCssClassName.DOCUMENT, fullPageStyles(wrapperProps, themeProps), fullWidthStyles(wrapperProps), headingAnchorStyle('h1'), headingAnchorStyle('h2'), headingAnchorStyle('h3'), headingAnchorStyle('h4'), headingAnchorStyle('h5'), headingAnchorStyle('h6'), "var(--ds-link, ".concat(colors.B400, ")"), "var(--ds-link, ".concat(colors.B300, ")"), "var(--ds-link-pressed, ".concat(colors.B500, ")"), themed({
93
+ light: "var(--ds-text-subtlest, ".concat(colors.N200, ")"),
94
+ dark: "var(--ds-text-subtlest, ".concat(colors.DN200, ")")
95
+ })(themeProps), whitespaceSharedStyles, blockquoteSharedStyles, headingsSharedStyles(themeProps), ruleSharedStyles(themeProps), paragraphSharedStyles, listsSharedStyles, indentationSharedStyles, blockMarksSharedStyles, codeMarkSharedStyles(themeProps), shadowSharedStyle, dateSharedStyle, textColorStyles, tasksAndDecisionsStyles, smartCardSharedStyles, fontFamily(), relativeFontSizeToBase16(fontSize()), themed({
93
96
  light: "var(--ds-background-neutral, ".concat(colors.N30A, ")"),
94
97
  dark: "var(--ds-background-neutral, ".concat(colors.DN70, ")")
95
- })(themeProps), borderRadius(), themed({
98
+ })(themeProps), "var(--ds-radius-100, 3px)", themed({
96
99
  light: "var(--ds-text, ".concat(colors.N800, ")"),
97
100
  dark: "var(--ds-text, ".concat(colors.DN600, ")")
98
101
  })(themeProps), "var(--ds-background-danger, ".concat(colors.R50, ")"), "var(--ds-text-danger, ".concat(colors.R500, ")"), gridSize() * 3, richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, alignedHeadingAnchorStyle(wrapperProps), mediaSingleSharedStyle, RendererCssClassName.DOCUMENT, breakoutWidthStyle(wrapperProps.useFragmentMarkBreakoutWidthStylingFix), RendererCssClassName.EXTENSION_OVERFLOW_CONTAINER, RendererCssClassName.EXTENSION, RendererCssClassName.DOCUMENT, RendererCssClassName.EXTENSION, blockNodesVerticalMargin, RendererCssClassName.EXTENSION_CENTER_ALIGN, TableSharedCssClassName.TABLE_NODE_WRAPPER, shadowObserverClassNames.SHADOW_CONTAINER, TableSharedCssClassName.TABLE_NODE_WRAPPER, tableSharedStyle(themeProps), RendererCssClassName.DOCUMENT, TableSharedCssClassName.TABLE_CONTAINER, shadowClassNames.RIGHT_SHADOW, shadowClassNames.LEFT_SHADOW, tableMarginTop - 1, tableMarginTop, akEditorStickyHeaderZIndex, shadowObserverClassNames.SENTINEL_LEFT, shadowObserverClassNames.SENTINEL_RIGHT, tableMarginTop, tableSortableColumnStyle(wrapperProps), RendererCssClassName.NUMBER_COLUMN, themed({
@@ -122,6 +125,6 @@ export var rendererStyles = function rendererStyles(wrapperProps) {
122
125
  })(themeProps), themed({
123
126
  light: "var(--ds-border, ".concat(akEditorTableToolbar, ")"),
124
127
  dark: "var(--ds-border, ".concat(akEditorTableToolbarDark, ")")
125
- })(themeProps), borderRadius(), blockNodesVerticalMargin, getLightWeightCodeBlockStylesForRootRendererStyleSheet(), columnLayoutSharedStyle, gridSize() * 2.5, gridSize() * 4, gridMediumMaxWidth, blockNodesVerticalMargin, blockNodesVerticalMargin, blockNodesVerticalMargin, browser.safari ? codeBlockInListSafariFix : '');
128
+ })(themeProps), "var(--ds-radius-100, 3px)", blockNodesVerticalMargin, getLightWeightCodeBlockStylesForRootRendererStyleSheet(), columnLayoutSharedStyle, gridSize() * 2.5, gridSize() * 4, gridMediumMaxWidth, blockNodesVerticalMargin, blockNodesVerticalMargin, blockNodesVerticalMargin, browser.safari ? codeBlockInListSafariFix : '');
126
129
  };
127
130
  };
@@ -9,13 +9,13 @@ import { SortOrder } from '@atlaskit/editor-common/types';
9
9
  import { sortingIconMessages } from '../messages';
10
10
  import { injectIntl } from 'react-intl-next';
11
11
  import { RendererCssClassName } from '../consts';
12
- export var StatusClassNames;
13
- (function (StatusClassNames) {
12
+ export var StatusClassNames = /*#__PURE__*/function (StatusClassNames) {
14
13
  StatusClassNames["ASC"] = "sorting-icon-svg__asc";
15
14
  StatusClassNames["DESC"] = "sorting-icon-svg__desc";
16
15
  StatusClassNames["NO_ORDER"] = "sorting-icon-svg__no_order";
17
16
  StatusClassNames["SORTING_NOT_ALLOWED"] = "sorting-icon-svg__not-allowed";
18
- })(StatusClassNames || (StatusClassNames = {}));
17
+ return StatusClassNames;
18
+ }({});
19
19
  var buttonStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: absolute;\n display: flex;\n height: 28px;\n width: 28px;\n margin: 6px;\n right: 0;\n top: 0;\n border: 2px solid ", ";\n border-radius: ", "px;\n background-color: ", ";\n justify-content: center;\n align-items: center;\n cursor: pointer;\n\n &:hover {\n background-color: ", ";\n }\n\n &:active {\n background-color: ", ";\n }\n\n &.", "__not-allowed {\n cursor: not-allowed;\n }\n"])), "var(--ds-border, #fff)", gridSize() / 2, "var(--ds-surface-overlay, ".concat(N20, ")"), "var(--ds-surface-overlay-hovered, ".concat(N30, ")"), "var(--ds-surface-overlay-pressed, rgba(179, 212, 255, 0.6))", RendererCssClassName.SORTABLE_COLUMN_ICON);
20
20
  var iconWrapperStyles = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: 8px;\n height: 12px;\n transition: transform 0.3s cubic-bezier(0.15, 1, 0.3, 1);\n transform-origin: 50% 50%;\n display: flex;\n justify-content: center;\n\n &.", " {\n transform: rotate(-180deg);\n }\n\n &.", "-inactive {\n opacity: 0.7;\n }\n"])), StatusClassNames.DESC, RendererCssClassName.SORTABLE_COLUMN_ICON);
21
21
 
@@ -1,7 +1,7 @@
1
- export var InsertDraftPosition;
2
- (function (InsertDraftPosition) {
1
+ export var InsertDraftPosition = /*#__PURE__*/function (InsertDraftPosition) {
3
2
  InsertDraftPosition["AROUND_TEXT"] = "AROUND_TEXT";
4
3
  InsertDraftPosition["START"] = "START";
5
4
  InsertDraftPosition["END"] = "END";
6
5
  InsertDraftPosition["INSIDE"] = "INSIDE";
7
- })(InsertDraftPosition || (InsertDraftPosition = {}));
6
+ return InsertDraftPosition;
7
+ }({});
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "107.3.3",
3
+ "version": "108.0.0",
4
4
  "sideEffects": false
5
5
  }
@@ -1,13 +1,13 @@
1
1
  declare const _default: {
2
- 'fabric.editor.codeBlockCopyButton.copiedToClipboard': string;
3
- 'fabric.editor.codeBlockCopyButton.copyToClipboard': string;
4
2
  'fabric.editor.headingLink.ascOrderLabel': string;
5
3
  'fabric.editor.headingLink.ascSortingLabel': string;
6
4
  'fabric.editor.headingLink.copied': string;
7
5
  'fabric.editor.headingLink.copyAnchorLink': string;
8
6
  'fabric.editor.headingLink.copyAriaLabel': string;
9
7
  'fabric.editor.headingLink.descOrderLabel': string;
8
+ 'fabric.editor.headingLink.descSortingLabel': string;
10
9
  'fabric.editor.headingLink.failedToCopy': string;
10
+ 'fabric.editor.headingLink.invalidLabel': string;
11
11
  'fabric.editor.headingLink.noOrderLabel': string;
12
12
  'fabric.editor.headingLink.noneSortingLabel': string;
13
13
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "107.3.3",
3
+ "version": "108.0.0",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -24,31 +24,31 @@
24
24
  }
25
25
  },
26
26
  "dependencies": {
27
- "@atlaskit/adf-schema": "^25.5.0",
28
- "@atlaskit/adf-utils": "^18.1.0",
29
- "@atlaskit/analytics-listeners": "^8.6.0",
30
- "@atlaskit/analytics-namespaced-context": "^6.6.0",
31
- "@atlaskit/analytics-next": "^9.0.0",
32
- "@atlaskit/button": "^16.6.0",
33
- "@atlaskit/code": "^14.5.3",
34
- "@atlaskit/editor-common": "^72.8.0",
35
- "@atlaskit/editor-json-transformer": "^8.8.0",
36
- "@atlaskit/editor-palette": "1.3.0",
37
- "@atlaskit/editor-shared-styles": "^2.3.0",
38
- "@atlaskit/emoji": "^67.3.0",
39
- "@atlaskit/icon": "^21.11.0",
40
- "@atlaskit/media-card": "^74.7.0",
41
- "@atlaskit/media-client": "^21.0.0",
42
- "@atlaskit/media-common": "^4.0.0",
43
- "@atlaskit/media-filmstrip": "^46.1.0",
44
- "@atlaskit/media-ui": "^22.3.0",
45
- "@atlaskit/media-viewer": "^47.5.0",
46
- "@atlaskit/smart-card": "^25.4.0",
47
- "@atlaskit/status": "^1.2.0",
48
- "@atlaskit/task-decision": "^17.5.0",
49
- "@atlaskit/theme": "^12.4.0",
50
- "@atlaskit/tokens": "^1.2.0",
51
- "@atlaskit/tooltip": "^17.7.0",
27
+ "@atlaskit/adf-schema": "^25.6.0",
28
+ "@atlaskit/adf-utils": "^18.2.0",
29
+ "@atlaskit/analytics-listeners": "^8.7.0",
30
+ "@atlaskit/analytics-namespaced-context": "^6.7.0",
31
+ "@atlaskit/analytics-next": "^9.1.0",
32
+ "@atlaskit/button": "^16.7.0",
33
+ "@atlaskit/code": "^14.6.0",
34
+ "@atlaskit/editor-common": "^74.0.0",
35
+ "@atlaskit/editor-json-transformer": "^8.9.0",
36
+ "@atlaskit/editor-palette": "1.4.0",
37
+ "@atlaskit/editor-shared-styles": "^2.4.0",
38
+ "@atlaskit/emoji": "^67.4.0",
39
+ "@atlaskit/icon": "^21.12.0",
40
+ "@atlaskit/media-card": "^74.8.0",
41
+ "@atlaskit/media-client": "^22.0.0",
42
+ "@atlaskit/media-common": "^4.1.0",
43
+ "@atlaskit/media-filmstrip": "^47.0.0",
44
+ "@atlaskit/media-ui": "^22.4.0",
45
+ "@atlaskit/media-viewer": "^47.6.0",
46
+ "@atlaskit/smart-card": "^26.0.0",
47
+ "@atlaskit/status": "^1.3.0",
48
+ "@atlaskit/task-decision": "^17.6.0",
49
+ "@atlaskit/theme": "^12.5.0",
50
+ "@atlaskit/tokens": "^1.3.0",
51
+ "@atlaskit/tooltip": "^17.8.0",
52
52
  "@babel/runtime": "^7.0.0",
53
53
  "@emotion/react": "^11.7.1",
54
54
  "lodash": "^4.17.21",
@@ -61,30 +61,30 @@
61
61
  "uuid": "^3.1.0"
62
62
  },
63
63
  "peerDependencies": {
64
- "@atlaskit/link-provider": "^1.5.3",
65
- "@atlaskit/media-core": "^34.0.2",
64
+ "@atlaskit/link-provider": "^1.6.0",
65
+ "@atlaskit/media-core": "^34.1.0",
66
66
  "react": "^16.8.0",
67
67
  "react-dom": "^16.8.0"
68
68
  },
69
69
  "devDependencies": {
70
- "@atlaskit/analytics-gas-types": "^5.0.5",
71
- "@atlaskit/avatar": "^21.2.0",
72
- "@atlaskit/css-reset": "^6.3.0",
70
+ "@atlaskit/analytics-gas-types": "^5.1.0",
71
+ "@atlaskit/avatar": "^21.3.0",
72
+ "@atlaskit/css-reset": "^6.5.0",
73
73
  "@atlaskit/docs": "*",
74
- "@atlaskit/editor-core": "^182.1.0",
74
+ "@atlaskit/editor-core": "^183.0.0",
75
75
  "@atlaskit/editor-test-helpers": "^18.2.0",
76
- "@atlaskit/link-provider": "^1.5.0",
77
- "@atlaskit/logo": "^13.12.0",
78
- "@atlaskit/media-core": "^34.0.0",
76
+ "@atlaskit/link-provider": "^1.6.0",
77
+ "@atlaskit/logo": "^13.14.0",
78
+ "@atlaskit/media-core": "^34.1.0",
79
79
  "@atlaskit/media-integration-test-helpers": "^2.6.0",
80
- "@atlaskit/media-test-helpers": "^32.0.0",
81
- "@atlaskit/mention": "^22.0.0",
80
+ "@atlaskit/media-test-helpers": "^33.0.0",
81
+ "@atlaskit/mention": "^22.1.0",
82
82
  "@atlaskit/navigation-next": "^9.0.0",
83
- "@atlaskit/profilecard": "^19.2.0",
84
- "@atlaskit/radio": "^5.4.0",
85
- "@atlaskit/range": "^7.0.0",
83
+ "@atlaskit/profilecard": "^19.3.0",
84
+ "@atlaskit/radio": "^5.5.0",
85
+ "@atlaskit/range": "^7.1.0",
86
86
  "@atlaskit/ssr": "*",
87
- "@atlaskit/util-data-test": "^17.7.0",
87
+ "@atlaskit/util-data-test": "^17.8.0",
88
88
  "@atlaskit/visual-regression": "*",
89
89
  "@atlaskit/webdriver-runner": "*",
90
90
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
package/report.api.md CHANGED
@@ -759,7 +759,7 @@ type VisitMediaLinkAEP = AEP<
759
759
 
760
760
  ```json
761
761
  {
762
- "@atlaskit/link-provider": "^1.5.1",
762
+ "@atlaskit/link-provider": "^1.5.3",
763
763
  "@atlaskit/media-core": "^34.0.2",
764
764
  "react": "^16.8.0",
765
765
  "react-dom": "^16.8.0"