@atlaskit/renderer 112.12.2 → 112.12.4

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 (143) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/cjs/react/nodes/table.js +6 -1
  3. package/dist/cjs/ui/Renderer/index.js +1 -1
  4. package/dist/cjs/ui/Renderer/style.js +47 -2
  5. package/dist/es2019/react/nodes/table.js +6 -1
  6. package/dist/es2019/ui/Renderer/index.js +1 -1
  7. package/dist/es2019/ui/Renderer/style.js +46 -1
  8. package/dist/esm/react/nodes/table.js +6 -1
  9. package/dist/esm/ui/Renderer/index.js +1 -1
  10. package/dist/esm/ui/Renderer/style.js +46 -1
  11. package/dist/types/react/marks/annotation.d.ts +2 -2
  12. package/dist/types/react/marks/backgroundColor.d.ts +2 -2
  13. package/dist/types/react/marks/code.d.ts +1 -1
  14. package/dist/types/react/marks/confluence-inline-comment.d.ts +2 -2
  15. package/dist/types/react/marks/data-consumer.d.ts +2 -2
  16. package/dist/types/react/marks/em.d.ts +2 -2
  17. package/dist/types/react/marks/fragment.d.ts +2 -2
  18. package/dist/types/react/marks/indentation.d.ts +2 -2
  19. package/dist/types/react/marks/strike.d.ts +2 -2
  20. package/dist/types/react/marks/strong.d.ts +2 -2
  21. package/dist/types/react/marks/subsup.d.ts +2 -2
  22. package/dist/types/react/marks/textColor.d.ts +2 -2
  23. package/dist/types/react/marks/underline.d.ts +2 -2
  24. package/dist/types/react/marks/unsupportedMark.d.ts +2 -2
  25. package/dist/types/react/marks/unsupportedNodeAttribute.d.ts +2 -2
  26. package/dist/types/react/nodes/blockquote.d.ts +1 -1
  27. package/dist/types/react/nodes/bodiedExtension.d.ts +1 -1
  28. package/dist/types/react/nodes/bulletList.d.ts +1 -1
  29. package/dist/types/react/nodes/caption.d.ts +2 -2
  30. package/dist/types/react/nodes/date.d.ts +1 -1
  31. package/dist/types/react/nodes/decisionItem.d.ts +2 -2
  32. package/dist/types/react/nodes/decisionList.d.ts +2 -2
  33. package/dist/types/react/nodes/doc.d.ts +3 -3
  34. package/dist/types/react/nodes/extension.d.ts +5 -6
  35. package/dist/types/react/nodes/fallback.d.ts +1 -1
  36. package/dist/types/react/nodes/hardBreak.d.ts +2 -2
  37. package/dist/types/react/nodes/heading.d.ts +2 -2
  38. package/dist/types/react/nodes/inlineCard.d.ts +2 -2
  39. package/dist/types/react/nodes/inlineExtension.d.ts +2 -2
  40. package/dist/types/react/nodes/layoutSection.d.ts +1 -1
  41. package/dist/types/react/nodes/listItem.d.ts +1 -1
  42. package/dist/types/react/nodes/mediaGroup.d.ts +2 -2
  43. package/dist/types/react/nodes/orderedList.d.ts +1 -1
  44. package/dist/types/react/nodes/paragraph.d.ts +2 -2
  45. package/dist/types/react/nodes/placeholder.d.ts +2 -2
  46. package/dist/types/react/nodes/rule.d.ts +2 -2
  47. package/dist/types/react/nodes/table/colgroup.d.ts +2 -2
  48. package/dist/types/react/nodes/table/table.d.ts +1 -1
  49. package/dist/types/react/nodes/table.d.ts +4 -4
  50. package/dist/types/react/nodes/tableCell.d.ts +3 -3
  51. package/dist/types/react/nodes/tableRow.d.ts +1 -1
  52. package/dist/types/react/nodes/task-item-with-providers.d.ts +2 -2
  53. package/dist/types/react/nodes/taskItem.d.ts +2 -2
  54. package/dist/types/react/nodes/taskList.d.ts +2 -2
  55. package/dist/types/react/nodes/text-wrapper.d.ts +2 -1
  56. package/dist/types/react/nodes/unknownBlock.d.ts +1 -1
  57. package/dist/types/react/utils/EditorMediaClientProvider.d.ts +1 -1
  58. package/dist/types/react/utils/render-text-segments.d.ts +2 -2
  59. package/dist/types/ui/MediaCard.d.ts +2 -2
  60. package/dist/types/ui/Renderer/ErrorBoundary.d.ts +1 -1
  61. package/dist/types/ui/Renderer/breakout-ssr.d.ts +2 -2
  62. package/dist/types/ui/RendererActionsContext/WithRendererActions.d.ts +2 -2
  63. package/dist/types/ui/RendererActionsContext/index.d.ts +1 -1
  64. package/dist/types/ui/SmartCardStorage.d.ts +3 -3
  65. package/dist/types/ui/TaskItemsFormatContext/TaskItemsFormatContext.d.ts +2 -2
  66. package/dist/types/ui/active-header-id-provider.d.ts +1 -1
  67. package/dist/types/ui/annotations/context.d.ts +1 -1
  68. package/dist/types/ui/annotations/contexts/AnnotationHoverContext.d.ts +1 -1
  69. package/dist/types/ui/annotations/contexts/AnnotationRangeContext.d.ts +1 -1
  70. package/dist/types/ui/annotations/element/index.d.ts +1 -1
  71. package/dist/types/ui/annotations/hover/mounter.d.ts +1 -1
  72. package/dist/types/ui/annotations/hover/range-validator.d.ts +1 -1
  73. package/dist/types/ui/annotations/index.d.ts +1 -1
  74. package/dist/types/ui/annotations/selection/mounter.d.ts +1 -1
  75. package/dist/types/ui/annotations/selection/range-validator.d.ts +1 -1
  76. package/dist/types/ui/annotations/view/index.d.ts +2 -2
  77. package/dist/types-ts4.5/react/marks/annotation.d.ts +2 -2
  78. package/dist/types-ts4.5/react/marks/backgroundColor.d.ts +2 -2
  79. package/dist/types-ts4.5/react/marks/code.d.ts +1 -1
  80. package/dist/types-ts4.5/react/marks/confluence-inline-comment.d.ts +2 -2
  81. package/dist/types-ts4.5/react/marks/data-consumer.d.ts +2 -2
  82. package/dist/types-ts4.5/react/marks/em.d.ts +2 -2
  83. package/dist/types-ts4.5/react/marks/fragment.d.ts +2 -2
  84. package/dist/types-ts4.5/react/marks/indentation.d.ts +2 -2
  85. package/dist/types-ts4.5/react/marks/strike.d.ts +2 -2
  86. package/dist/types-ts4.5/react/marks/strong.d.ts +2 -2
  87. package/dist/types-ts4.5/react/marks/subsup.d.ts +2 -2
  88. package/dist/types-ts4.5/react/marks/textColor.d.ts +2 -2
  89. package/dist/types-ts4.5/react/marks/underline.d.ts +2 -2
  90. package/dist/types-ts4.5/react/marks/unsupportedMark.d.ts +2 -2
  91. package/dist/types-ts4.5/react/marks/unsupportedNodeAttribute.d.ts +2 -2
  92. package/dist/types-ts4.5/react/nodes/blockquote.d.ts +1 -1
  93. package/dist/types-ts4.5/react/nodes/bodiedExtension.d.ts +1 -1
  94. package/dist/types-ts4.5/react/nodes/bulletList.d.ts +1 -1
  95. package/dist/types-ts4.5/react/nodes/caption.d.ts +2 -2
  96. package/dist/types-ts4.5/react/nodes/date.d.ts +1 -1
  97. package/dist/types-ts4.5/react/nodes/decisionItem.d.ts +2 -2
  98. package/dist/types-ts4.5/react/nodes/decisionList.d.ts +2 -2
  99. package/dist/types-ts4.5/react/nodes/doc.d.ts +3 -3
  100. package/dist/types-ts4.5/react/nodes/extension.d.ts +5 -6
  101. package/dist/types-ts4.5/react/nodes/fallback.d.ts +1 -1
  102. package/dist/types-ts4.5/react/nodes/hardBreak.d.ts +2 -2
  103. package/dist/types-ts4.5/react/nodes/heading.d.ts +2 -2
  104. package/dist/types-ts4.5/react/nodes/inlineCard.d.ts +2 -2
  105. package/dist/types-ts4.5/react/nodes/inlineExtension.d.ts +2 -2
  106. package/dist/types-ts4.5/react/nodes/layoutSection.d.ts +1 -1
  107. package/dist/types-ts4.5/react/nodes/listItem.d.ts +1 -1
  108. package/dist/types-ts4.5/react/nodes/mediaGroup.d.ts +2 -2
  109. package/dist/types-ts4.5/react/nodes/orderedList.d.ts +1 -1
  110. package/dist/types-ts4.5/react/nodes/paragraph.d.ts +2 -2
  111. package/dist/types-ts4.5/react/nodes/placeholder.d.ts +2 -2
  112. package/dist/types-ts4.5/react/nodes/rule.d.ts +2 -2
  113. package/dist/types-ts4.5/react/nodes/table/colgroup.d.ts +2 -2
  114. package/dist/types-ts4.5/react/nodes/table/table.d.ts +1 -1
  115. package/dist/types-ts4.5/react/nodes/table.d.ts +4 -4
  116. package/dist/types-ts4.5/react/nodes/tableCell.d.ts +3 -3
  117. package/dist/types-ts4.5/react/nodes/tableRow.d.ts +1 -1
  118. package/dist/types-ts4.5/react/nodes/task-item-with-providers.d.ts +2 -2
  119. package/dist/types-ts4.5/react/nodes/taskItem.d.ts +2 -2
  120. package/dist/types-ts4.5/react/nodes/taskList.d.ts +2 -2
  121. package/dist/types-ts4.5/react/nodes/text-wrapper.d.ts +2 -1
  122. package/dist/types-ts4.5/react/nodes/unknownBlock.d.ts +1 -1
  123. package/dist/types-ts4.5/react/utils/EditorMediaClientProvider.d.ts +1 -1
  124. package/dist/types-ts4.5/react/utils/render-text-segments.d.ts +2 -2
  125. package/dist/types-ts4.5/ui/MediaCard.d.ts +2 -2
  126. package/dist/types-ts4.5/ui/Renderer/ErrorBoundary.d.ts +1 -1
  127. package/dist/types-ts4.5/ui/Renderer/breakout-ssr.d.ts +2 -2
  128. package/dist/types-ts4.5/ui/RendererActionsContext/WithRendererActions.d.ts +2 -2
  129. package/dist/types-ts4.5/ui/RendererActionsContext/index.d.ts +1 -1
  130. package/dist/types-ts4.5/ui/SmartCardStorage.d.ts +3 -3
  131. package/dist/types-ts4.5/ui/TaskItemsFormatContext/TaskItemsFormatContext.d.ts +2 -2
  132. package/dist/types-ts4.5/ui/active-header-id-provider.d.ts +1 -1
  133. package/dist/types-ts4.5/ui/annotations/context.d.ts +1 -1
  134. package/dist/types-ts4.5/ui/annotations/contexts/AnnotationHoverContext.d.ts +1 -1
  135. package/dist/types-ts4.5/ui/annotations/contexts/AnnotationRangeContext.d.ts +1 -1
  136. package/dist/types-ts4.5/ui/annotations/element/index.d.ts +1 -1
  137. package/dist/types-ts4.5/ui/annotations/hover/mounter.d.ts +1 -1
  138. package/dist/types-ts4.5/ui/annotations/hover/range-validator.d.ts +1 -1
  139. package/dist/types-ts4.5/ui/annotations/index.d.ts +1 -1
  140. package/dist/types-ts4.5/ui/annotations/selection/mounter.d.ts +1 -1
  141. package/dist/types-ts4.5/ui/annotations/selection/range-validator.d.ts +1 -1
  142. package/dist/types-ts4.5/ui/annotations/view/index.d.ts +2 -2
  143. package/package.json +15 -7
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # @atlaskit/renderer
2
2
 
3
+ ## 112.12.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#101282](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101282)
8
+ [`83bbb87a1ef40`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/83bbb87a1ef40) -
9
+ Moved deprecated ADS headingSizes object directly into this package as it is the only remaining
10
+ consumer. This is planned to be removed soon.
11
+ - Updated dependencies
12
+
13
+ ## 112.12.3
14
+
15
+ ### Patch Changes
16
+
17
+ - [#110251](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/110251)
18
+ [`b6adb9244b072`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b6adb9244b072) -
19
+ [ux] Visual refresh of the EmbedCard component
20
+ - [#110634](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/110634)
21
+ [`62224d53da886`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/62224d53da886) -
22
+ [ux] [ED-26283] CSS Selector fix for table with shadows when there are nested tables. It will only
23
+ select direct children now and not descendants which prevents unnecessary shadow on parent table
24
+ when there is a nested table.
25
+ - Updated dependencies
26
+
3
27
  ## 112.12.2
4
28
 
5
29
  ### Patch Changes
@@ -592,7 +592,12 @@ var TableProcessor = exports.TableProcessor = /*#__PURE__*/function (_React$Comp
592
592
  }]);
593
593
  }(_react.default.Component);
594
594
  var TableWithShadows = (0, _ui.overflowShadow)(TableProcessor, {
595
- overflowSelector: ".".concat(_styles.TableSharedCssClassName.TABLE_NODE_WRAPPER),
595
+ /**
596
+ * The :scope is in reference to table container and we are selecting only
597
+ * direct children that match the table node wrapper selector, not their
598
+ * descendants.
599
+ */
600
+ overflowSelector: ":scope > .".concat(_styles.TableSharedCssClassName.TABLE_NODE_WRAPPER),
596
601
  useShadowObserver: true
597
602
  });
598
603
  var TableWithWidth = function TableWithWidth(props) {
@@ -64,7 +64,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
64
64
  var NORMAL_SEVERITY_THRESHOLD = exports.NORMAL_SEVERITY_THRESHOLD = 2000;
65
65
  var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
66
66
  var packageName = "@atlaskit/renderer";
67
- var packageVersion = "112.12.2";
67
+ var packageVersion = "112.12.4";
68
68
  var setAsQueryContainerStyles = (0, _react2.css)({
69
69
  containerName: 'ak-renderer-wrapper',
70
70
  containerType: 'inline-size',
@@ -11,7 +11,6 @@ var _react = require("@emotion/react");
11
11
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
12
12
  var _colors = _interopRequireWildcard(require("@atlaskit/theme/colors"));
13
13
  var colors = _colors;
14
- var _typography = require("@atlaskit/theme/typography");
15
14
  var _tokens = require("@atlaskit/tokens");
16
15
  var _mediaInline = require("@atlaskit/editor-common/media-inline");
17
16
  var _styles = require("@atlaskit/editor-common/styles");
@@ -40,8 +39,54 @@ var telepointerStyles = function telepointerStyles(colorMode) {
40
39
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
41
40
  return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t\t#", " {\n\t\t\tdisplay: inline-block;\n\t\t\tposition: relative;\n\t\t\twidth: 1.5px;\n\t\t\theight: 25px;\n\t\t\tbackground: linear-gradient(\n\t\t\t\t45deg,\n\t\t\t\t", " -12.02%,\n\t\t\t\t", " 19.18%,\n\t\t\t\t", " 71.87%\n\t\t\t);\n\t\t\tmargin-left: ", ";\n\n\t\t\t&::after {\n\t\t\t\tcontent: 'AI';\n\t\t\t\tposition: absolute;\n\t\t\t\tdisplay: block;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 0;\n\t\t\t\tfont-size: 10px;\n\t\t\t\tfont-weight: ", ";\n\t\t\t\twidth: 12.5px;\n\t\t\t\theight: 13px;\n\t\t\t\tpadding-top: 1px;\n\t\t\t\tpadding-left: 1.5px;\n\t\t\t\tline-height: initial;\n\t\t\t\tborder-radius: 0px 2px 2px 0px;\n\t\t\t\tcolor: ", ";\n\t\t\t\tbackground: linear-gradient(\n\t\t\t\t\t45deg,\n\t\t\t\t\t", " -57%,\n\t\t\t\t\t", " 71.87%\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t"])), TELEPOINTER_ID, colorMode === 'dark' ? '#f5cd47' : '#f8e6a0', colorMode === 'dark' ? '#60c6d2' : '#8bdbe5', colorMode === 'dark' ? '#388bff' : '#0c66e4', "var(--ds-space-025, 2px)", "var(--ds-font-weight-bold, 700)", "var(--ds-text-inverse, white)", colorMode === 'dark' ? '#60c6d2' : '#8bdbe5', colorMode === 'dark' ? '#388bff' : '#0c66e4');
42
41
  };
42
+
43
+ /**
44
+ * **DEPRECATED**
45
+ *
46
+ * Originally defined in `@atlaskit/theme/typography`, but moved here as it has since been deleted in favor of typography tokens.
47
+ * This should be removed as part of editor token work. More info:
48
+ * https://atlassian.slack.com/archives/C075G5D7ZP1/p1733449725865539?thread_ts=1732159801.409789&cid=C075G5D7ZP1
49
+ * */
50
+ var headingSizesImport = {
51
+ h900: {
52
+ size: 35,
53
+ lineHeight: 40
54
+ },
55
+ h800: {
56
+ size: 29,
57
+ lineHeight: 32
58
+ },
59
+ h700: {
60
+ size: 24,
61
+ lineHeight: 28
62
+ },
63
+ h600: {
64
+ size: 20,
65
+ lineHeight: 24
66
+ },
67
+ h500: {
68
+ size: 16,
69
+ lineHeight: 20
70
+ },
71
+ h400: {
72
+ size: 14,
73
+ lineHeight: 16
74
+ },
75
+ h300: {
76
+ size: 12,
77
+ lineHeight: 16
78
+ },
79
+ h200: {
80
+ size: 12,
81
+ lineHeight: 16
82
+ },
83
+ h100: {
84
+ size: 11,
85
+ lineHeight: 16
86
+ }
87
+ };
43
88
  var getLineHeight = function getLineHeight(fontCode) {
44
- return _typography.headingSizes[fontCode].lineHeight / _typography.headingSizes[fontCode].size;
89
+ return headingSizesImport[fontCode].lineHeight / headingSizesImport[fontCode].size;
45
90
  };
46
91
  var headingSizes = {
47
92
  h1: {
@@ -531,7 +531,12 @@ export class TableProcessor extends React.Component {
531
531
  }
532
532
  }
533
533
  const TableWithShadows = overflowShadow(TableProcessor, {
534
- overflowSelector: `.${TableSharedCssClassName.TABLE_NODE_WRAPPER}`,
534
+ /**
535
+ * The :scope is in reference to table container and we are selecting only
536
+ * direct children that match the table node wrapper selector, not their
537
+ * descendants.
538
+ */
539
+ overflowSelector: `:scope > .${TableSharedCssClassName.TABLE_NODE_WRAPPER}`,
535
540
  useShadowObserver: true
536
541
  });
537
542
  const TableWithWidth = props => {
@@ -45,7 +45,7 @@ import { TruncatedWrapper } from './truncated-wrapper';
45
45
  export const NORMAL_SEVERITY_THRESHOLD = 2000;
46
46
  export const DEGRADED_SEVERITY_THRESHOLD = 3000;
47
47
  const packageName = "@atlaskit/renderer";
48
- const packageVersion = "112.12.2";
48
+ const packageVersion = "112.12.4";
49
49
  const setAsQueryContainerStyles = css({
50
50
  containerName: 'ak-renderer-wrapper',
51
51
  containerType: 'inline-size',
@@ -8,7 +8,6 @@ import { fg } from '@atlaskit/platform-feature-flags';
8
8
  // eslint-disable-next-line import/no-namespace
9
9
  import * as colors from '@atlaskit/theme/colors';
10
10
  import { N60A, Y300, Y75, N40A } from '@atlaskit/theme/colors';
11
- import { headingSizes as headingSizesImport } from '@atlaskit/theme/typography';
12
11
  import { getGlobalTheme } from '@atlaskit/tokens';
13
12
  import { mediaInlineImageStyles } from '@atlaskit/editor-common/media-inline';
14
13
  import { tableSharedStyle, columnLayoutSharedStyle, columnLayoutResponsiveSharedStyle, columnLayoutResponsiveRendererStyles, blockquoteSharedStyles, headingsSharedStyles, ruleSharedStyles, whitespaceSharedStyles, paragraphSharedStyles, listsSharedStyles, indentationSharedStyles, blockMarksSharedStyles, mediaSingleSharedStyle, TableSharedCssClassName, tableMarginTop, codeMarkSharedStyles, shadowSharedStyle, dateSharedStyle, richMediaClassName, tasksAndDecisionsStyles, smartCardSharedStyles, tableCellPadding, textColorStyles, backgroundColorStyles, codeBlockInListSafariFix, SmartCardSharedCssClassName, getStatusSharedStyles } from '@atlaskit/editor-common/styles';
@@ -64,6 +63,52 @@ const telepointerStyles = colorMode => {
64
63
  }
65
64
  `;
66
65
  };
66
+
67
+ /**
68
+ * **DEPRECATED**
69
+ *
70
+ * Originally defined in `@atlaskit/theme/typography`, but moved here as it has since been deleted in favor of typography tokens.
71
+ * This should be removed as part of editor token work. More info:
72
+ * https://atlassian.slack.com/archives/C075G5D7ZP1/p1733449725865539?thread_ts=1732159801.409789&cid=C075G5D7ZP1
73
+ * */
74
+ const headingSizesImport = {
75
+ h900: {
76
+ size: 35,
77
+ lineHeight: 40
78
+ },
79
+ h800: {
80
+ size: 29,
81
+ lineHeight: 32
82
+ },
83
+ h700: {
84
+ size: 24,
85
+ lineHeight: 28
86
+ },
87
+ h600: {
88
+ size: 20,
89
+ lineHeight: 24
90
+ },
91
+ h500: {
92
+ size: 16,
93
+ lineHeight: 20
94
+ },
95
+ h400: {
96
+ size: 14,
97
+ lineHeight: 16
98
+ },
99
+ h300: {
100
+ size: 12,
101
+ lineHeight: 16
102
+ },
103
+ h200: {
104
+ size: 12,
105
+ lineHeight: 16
106
+ },
107
+ h100: {
108
+ size: 11,
109
+ lineHeight: 16
110
+ }
111
+ };
67
112
  const getLineHeight = fontCode => headingSizesImport[fontCode].lineHeight / headingSizesImport[fontCode].size;
68
113
  const headingSizes = {
69
114
  h1: {
@@ -585,7 +585,12 @@ export var TableProcessor = /*#__PURE__*/function (_React$Component2) {
585
585
  }]);
586
586
  }(React.Component);
587
587
  var TableWithShadows = overflowShadow(TableProcessor, {
588
- overflowSelector: ".".concat(TableSharedCssClassName.TABLE_NODE_WRAPPER),
588
+ /**
589
+ * The :scope is in reference to table container and we are selecting only
590
+ * direct children that match the table node wrapper selector, not their
591
+ * descendants.
592
+ */
593
+ overflowSelector: ":scope > .".concat(TableSharedCssClassName.TABLE_NODE_WRAPPER),
589
594
  useShadowObserver: true
590
595
  });
591
596
  var TableWithWidth = function TableWithWidth(props) {
@@ -54,7 +54,7 @@ import { TruncatedWrapper } from './truncated-wrapper';
54
54
  export var NORMAL_SEVERITY_THRESHOLD = 2000;
55
55
  export var DEGRADED_SEVERITY_THRESHOLD = 3000;
56
56
  var packageName = "@atlaskit/renderer";
57
- var packageVersion = "112.12.2";
57
+ var packageVersion = "112.12.4";
58
58
  var setAsQueryContainerStyles = css({
59
59
  containerName: 'ak-renderer-wrapper',
60
60
  containerType: 'inline-size',
@@ -10,7 +10,6 @@ import { fg } from '@atlaskit/platform-feature-flags';
10
10
  // eslint-disable-next-line import/no-namespace
11
11
  import * as colors from '@atlaskit/theme/colors';
12
12
  import { N60A, Y300, Y75, N40A } from '@atlaskit/theme/colors';
13
- import { headingSizes as headingSizesImport } from '@atlaskit/theme/typography';
14
13
  import { getGlobalTheme } from '@atlaskit/tokens';
15
14
  import { mediaInlineImageStyles } from '@atlaskit/editor-common/media-inline';
16
15
  import { tableSharedStyle, columnLayoutSharedStyle, columnLayoutResponsiveSharedStyle, columnLayoutResponsiveRendererStyles, blockquoteSharedStyles, headingsSharedStyles, ruleSharedStyles, whitespaceSharedStyles, paragraphSharedStyles, listsSharedStyles, indentationSharedStyles, blockMarksSharedStyles, mediaSingleSharedStyle, TableSharedCssClassName, tableMarginTop, codeMarkSharedStyles, shadowSharedStyle, dateSharedStyle, richMediaClassName, tasksAndDecisionsStyles, smartCardSharedStyles, tableCellPadding, textColorStyles, backgroundColorStyles, codeBlockInListSafariFix, SmartCardSharedCssClassName, getStatusSharedStyles } from '@atlaskit/editor-common/styles';
@@ -30,6 +29,52 @@ var telepointerStyles = function telepointerStyles(colorMode) {
30
29
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
31
30
  return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t\t#", " {\n\t\t\tdisplay: inline-block;\n\t\t\tposition: relative;\n\t\t\twidth: 1.5px;\n\t\t\theight: 25px;\n\t\t\tbackground: linear-gradient(\n\t\t\t\t45deg,\n\t\t\t\t", " -12.02%,\n\t\t\t\t", " 19.18%,\n\t\t\t\t", " 71.87%\n\t\t\t);\n\t\t\tmargin-left: ", ";\n\n\t\t\t&::after {\n\t\t\t\tcontent: 'AI';\n\t\t\t\tposition: absolute;\n\t\t\t\tdisplay: block;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 0;\n\t\t\t\tfont-size: 10px;\n\t\t\t\tfont-weight: ", ";\n\t\t\t\twidth: 12.5px;\n\t\t\t\theight: 13px;\n\t\t\t\tpadding-top: 1px;\n\t\t\t\tpadding-left: 1.5px;\n\t\t\t\tline-height: initial;\n\t\t\t\tborder-radius: 0px 2px 2px 0px;\n\t\t\t\tcolor: ", ";\n\t\t\t\tbackground: linear-gradient(\n\t\t\t\t\t45deg,\n\t\t\t\t\t", " -57%,\n\t\t\t\t\t", " 71.87%\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t"])), TELEPOINTER_ID, colorMode === 'dark' ? '#f5cd47' : '#f8e6a0', colorMode === 'dark' ? '#60c6d2' : '#8bdbe5', colorMode === 'dark' ? '#388bff' : '#0c66e4', "var(--ds-space-025, 2px)", "var(--ds-font-weight-bold, 700)", "var(--ds-text-inverse, white)", colorMode === 'dark' ? '#60c6d2' : '#8bdbe5', colorMode === 'dark' ? '#388bff' : '#0c66e4');
32
31
  };
32
+
33
+ /**
34
+ * **DEPRECATED**
35
+ *
36
+ * Originally defined in `@atlaskit/theme/typography`, but moved here as it has since been deleted in favor of typography tokens.
37
+ * This should be removed as part of editor token work. More info:
38
+ * https://atlassian.slack.com/archives/C075G5D7ZP1/p1733449725865539?thread_ts=1732159801.409789&cid=C075G5D7ZP1
39
+ * */
40
+ var headingSizesImport = {
41
+ h900: {
42
+ size: 35,
43
+ lineHeight: 40
44
+ },
45
+ h800: {
46
+ size: 29,
47
+ lineHeight: 32
48
+ },
49
+ h700: {
50
+ size: 24,
51
+ lineHeight: 28
52
+ },
53
+ h600: {
54
+ size: 20,
55
+ lineHeight: 24
56
+ },
57
+ h500: {
58
+ size: 16,
59
+ lineHeight: 20
60
+ },
61
+ h400: {
62
+ size: 14,
63
+ lineHeight: 16
64
+ },
65
+ h300: {
66
+ size: 12,
67
+ lineHeight: 16
68
+ },
69
+ h200: {
70
+ size: 12,
71
+ lineHeight: 16
72
+ },
73
+ h100: {
74
+ size: 11,
75
+ lineHeight: 16
76
+ }
77
+ };
33
78
  var getLineHeight = function getLineHeight(fontCode) {
34
79
  return headingSizesImport[fontCode].lineHeight / headingSizesImport[fontCode].size;
35
80
  };
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import type { MarkProps, AnnotationMarkMeta } from '../types';
3
3
  import type { Mark } from '@atlaskit/editor-prosemirror/model';
4
4
  export declare const isAnnotationMark: (mark: Mark) => boolean;
5
- declare const AnnotationComponent: ({ id, annotationType, children, dataAttributes, annotationParentIds, allowAnnotations, useBlockLevel, isMediaInline, }: MarkProps<AnnotationMarkMeta>) => JSX.Element;
5
+ declare const AnnotationComponent: ({ id, annotationType, children, dataAttributes, annotationParentIds, allowAnnotations, useBlockLevel, isMediaInline, }: MarkProps<AnnotationMarkMeta>) => React.JSX.Element;
6
6
  export default AnnotationComponent;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import type { TextColorAttributes } from '@atlaskit/adf-schema';
3
3
  import type { MarkProps } from '../types';
4
- export default function BackgroundColor(props: MarkProps<TextColorAttributes>): JSX.Element;
4
+ export default function BackgroundColor(props: MarkProps<TextColorAttributes>): React.JSX.Element;
@@ -5,7 +5,7 @@ import type { MarkProps } from '../types';
5
5
  export declare const isCodeMark: (mark: Mark) => boolean;
6
6
  export declare function CodeWithIntl(props: MarkProps<{
7
7
  codeBidiWarningTooltipEnabled: boolean;
8
- }> & WrappedComponentProps): JSX.Element;
8
+ }> & WrappedComponentProps): React.JSX.Element;
9
9
  declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
10
10
  codeBidiWarningTooltipEnabled: boolean;
11
11
  } & import("../types").MarkMeta & {
@@ -1,9 +1,9 @@
1
- import { Component } from 'react';
1
+ import React, { Component } from 'react';
2
2
  import { type MarkProps } from '../types';
3
3
  interface Props {
4
4
  reference: string;
5
5
  }
6
6
  export default class ConfluenceInlineComment extends Component<MarkProps<Props>, Object> {
7
- render(): JSX.Element;
7
+ render(): React.JSX.Element;
8
8
  }
9
9
  export {};
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { type DataConsumerAttributes } from '@atlaskit/adf-schema';
3
3
  import { type MarkProps } from '../types';
4
- export default function DataConsumer(props: MarkProps<DataConsumerAttributes>): JSX.Element;
4
+ export default function DataConsumer(props: MarkProps<DataConsumerAttributes>): React.JSX.Element;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { type MarkProps } from '../types';
3
- export default function Em(props: MarkProps): JSX.Element;
3
+ export default function Em(props: MarkProps): React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { type FragmentAttributes } from '@atlaskit/adf-schema';
3
3
  import { type MarkProps } from '../types';
4
- export default function FragmentMark(props: MarkProps<FragmentAttributes>): JSX.Element;
4
+ export default function FragmentMark(props: MarkProps<FragmentAttributes>): React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { type IndentationMarkAttributes } from '@atlaskit/adf-schema';
3
3
  import { type MarkProps } from '../types';
4
- export default function Indentation(props: MarkProps<IndentationMarkAttributes>): JSX.Element;
4
+ export default function Indentation(props: MarkProps<IndentationMarkAttributes>): React.JSX.Element;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { type MarkProps } from '../types';
3
- export default function Strike(props: MarkProps): JSX.Element;
3
+ export default function Strike(props: MarkProps): React.JSX.Element;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { type MarkProps } from '../types';
3
- export default function Strong(props: MarkProps): JSX.Element;
3
+ export default function Strong(props: MarkProps): React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { type SubSupAttributes } from '@atlaskit/adf-schema';
3
3
  import { type MarkProps } from '../types';
4
- export default function SubSup(props: MarkProps<SubSupAttributes>): JSX.Element;
4
+ export default function SubSup(props: MarkProps<SubSupAttributes>): React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import type { TextColorAttributes } from '@atlaskit/adf-schema';
3
3
  import type { MarkProps } from '../types';
4
- export default function TextColor(props: MarkProps<TextColorAttributes>): JSX.Element;
4
+ export default function TextColor(props: MarkProps<TextColorAttributes>): React.JSX.Element;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { type MarkProps } from '../types';
3
- export default function Underline(props: MarkProps): JSX.Element;
3
+ export default function Underline(props: MarkProps): React.JSX.Element;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { type MarkProps } from '../types';
3
- export default function UnsupportedMark(props: MarkProps): JSX.Element;
3
+ export default function UnsupportedMark(props: MarkProps): React.JSX.Element;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { type MarkProps } from '../types';
3
- export default function UnsupportedNodeAttribute(props: MarkProps): JSX.Element;
3
+ export default function UnsupportedNodeAttribute(props: MarkProps): React.JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import React from 'react';
2
- export default function Blockquote(props: React.PropsWithChildren<unknown>): JSX.Element;
2
+ export default function Blockquote(props: React.PropsWithChildren<unknown>): React.JSX.Element;
@@ -21,5 +21,5 @@ interface Props {
21
21
  marks?: PMMark[];
22
22
  startPos: number;
23
23
  }
24
- declare const BodiedExtension: (props: React.PropsWithChildren<Props>) => JSX.Element;
24
+ declare const BodiedExtension: (props: React.PropsWithChildren<Props>) => React.JSX.Element;
25
25
  export default BodiedExtension;
@@ -2,4 +2,4 @@ import React from 'react';
2
2
  import type { Node } from '@atlaskit/editor-prosemirror/model';
3
3
  export default function BulletList(props: React.PropsWithChildren<{
4
4
  path?: Node[];
5
- }>): JSX.Element;
5
+ }>): React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { type NodeProps } from '../types';
3
- declare const RenderCaption: ({ children, dataAttributes }: NodeProps) => JSX.Element;
3
+ declare const RenderCaption: ({ children, dataAttributes }: NodeProps) => React.JSX.Element;
4
4
  export default RenderCaption;
@@ -8,5 +8,5 @@ export interface Props extends MarkDataAttributes {
8
8
  export declare const DateComponent: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
9
9
  WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
10
10
  };
11
- declare function DateWithFormatContext(props: Props): JSX.Element;
11
+ declare function DateWithFormatContext(props: Props): React.JSX.Element;
12
12
  export default DateWithFormatContext;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { type NodeProps } from '../types';
3
- export default function DecisionItem({ children, dataAttributes }: NodeProps): JSX.Element;
3
+ export default function DecisionItem({ children, dataAttributes }: NodeProps): React.JSX.Element;
@@ -1,7 +1,7 @@
1
- import { PureComponent } from 'react';
1
+ import React, { PureComponent } from 'react';
2
2
  export interface Props {
3
3
  children?: JSX.Element | JSX.Element[];
4
4
  }
5
5
  export default class DecisionList extends PureComponent<Props, Object> {
6
- render(): JSX.Element | null;
6
+ render(): React.JSX.Element | null;
7
7
  }
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- export default function Doc(props: any): JSX.Element;
3
- export declare function DocWithSelectAllTrap(props: any): JSX.Element;
1
+ import React from 'react';
2
+ export default function Doc(props: any): React.JSX.Element;
3
+ export declare function DocWithSelectAllTrap(props: any): React.JSX.Element;
@@ -24,7 +24,7 @@ type AllOrNone<T> = T | {
24
24
  type RenderExtensionOptions = {
25
25
  isTopLevel?: boolean;
26
26
  } & AllOrNone<OverflowShadowProps>;
27
- export declare const renderExtension: (content: any, layout: string, options?: RenderExtensionOptions, removeOverflow?: boolean) => JSX.Element;
27
+ export declare const renderExtension: (content: any, layout: string, options?: RenderExtensionOptions, removeOverflow?: boolean) => React.JSX.Element;
28
28
  declare const _default: {
29
29
  new (props: Props | Readonly<Props>): {
30
30
  overflowContainer?: HTMLElement | null | undefined;
@@ -46,7 +46,7 @@ declare const _default: {
46
46
  calcScrollableWidth: () => number;
47
47
  handleContainer: (container: HTMLElement | null) => void;
48
48
  initShadowObserver(): void;
49
- render(): JSX.Element;
49
+ render(): React.JSX.Element;
50
50
  context: unknown;
51
51
  setState<K extends keyof import("@atlaskit/editor-common/ui").OverflowShadowState>(state: import("@atlaskit/editor-common/ui").OverflowShadowState | ((prevState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, props: Readonly<Props>) => import("@atlaskit/editor-common/ui").OverflowShadowState | Pick<import("@atlaskit/editor-common/ui").OverflowShadowState, K> | null) | Pick<import("@atlaskit/editor-common/ui").OverflowShadowState, K> | null, callback?: (() => void) | undefined): void;
52
52
  forceUpdate(callback?: (() => void) | undefined): void;
@@ -73,10 +73,9 @@ declare const _default: {
73
73
  scrollable?: NodeList | undefined;
74
74
  diff?: number | undefined;
75
75
  state: {
76
- showLeftShadow: boolean; /** We don't want this error to block renderer */
77
- /** We keep rendering the default content */
76
+ showLeftShadow: boolean;
78
77
  showRightShadow: boolean;
79
- };
78
+ }; /** We keep rendering the default content */
80
79
  componentWillUnmount(): void;
81
80
  componentDidUpdate(): void;
82
81
  handleScroll: (event: Event) => void;
@@ -86,7 +85,7 @@ declare const _default: {
86
85
  calcScrollableWidth: () => number;
87
86
  handleContainer: (container: HTMLElement | null) => void;
88
87
  initShadowObserver(): void;
89
- render(): JSX.Element;
88
+ render(): React.JSX.Element;
90
89
  context: unknown;
91
90
  setState<K_1 extends keyof import("@atlaskit/editor-common/ui").OverflowShadowState>(state: import("@atlaskit/editor-common/ui").OverflowShadowState | ((prevState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, props: Readonly<Props>) => import("@atlaskit/editor-common/ui").OverflowShadowState | Pick<import("@atlaskit/editor-common/ui").OverflowShadowState, K_1> | null) | Pick<import("@atlaskit/editor-common/ui").OverflowShadowState, K_1> | null, callback?: (() => void) | undefined): void;
92
91
  forceUpdate(callback?: (() => void) | undefined): void;
@@ -18,7 +18,7 @@ export declare class CardErrorBoundary extends React.PureComponent<{
18
18
  isError: boolean;
19
19
  error: Error;
20
20
  };
21
- render(): string | number | boolean | React.ReactFragment | JSX.Element | null | undefined;
21
+ render(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
22
22
  componentDidCatch(_error: Error): void;
23
23
  }
24
24
  export {};
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  interface Props {
3
3
  forceNewLine?: boolean;
4
4
  }
5
- declare const HardBreak: ({ forceNewLine }: Props) => JSX.Element;
5
+ declare const HardBreak: ({ forceNewLine }: Props) => React.JSX.Element;
6
6
  export default HardBreak;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { type Node as PMNode } from '@atlaskit/editor-prosemirror/model';
3
3
  import { type NodeProps } from '../types';
4
4
  import { type HeadingAnchorLinksProps } from '../../ui/Renderer/types';
@@ -10,5 +10,5 @@ declare function Heading(props: NodeProps<{
10
10
  allowHeadingAnchorLinks?: HeadingAnchorLinksProps;
11
11
  marks?: PMNode['marks'];
12
12
  invisible?: boolean;
13
- }>): JSX.Element;
13
+ }>): React.JSX.Element;
14
14
  export default Heading;
@@ -14,7 +14,7 @@ export interface InlineCardProps extends MarkDataAttributes {
14
14
  }
15
15
  declare const _default: {
16
16
  new (props: import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps> | Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>): {
17
- render(): JSX.Element;
17
+ render(): import("react").JSX.Element;
18
18
  context: unknown;
19
19
  setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
20
20
  forceUpdate(callback?: (() => void) | undefined): void;
@@ -37,7 +37,7 @@ declare const _default: {
37
37
  UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
38
38
  };
39
39
  new (props: import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>, context: any): {
40
- render(): JSX.Element;
40
+ render(): import("react").JSX.Element;
41
41
  context: unknown;
42
42
  setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
43
43
  forceUpdate(callback?: (() => void) | undefined): void;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import type { RendererContext } from '../types';
3
3
  import type { Mark as PMMark } from '@atlaskit/editor-prosemirror/model';
4
4
  import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
@@ -14,5 +14,5 @@ interface Props {
14
14
  localId?: string;
15
15
  marks?: PMMark[];
16
16
  }
17
- declare const InlineExtension: (props: Props) => JSX.Element;
17
+ declare const InlineExtension: (props: Props) => React.JSX.Element;
18
18
  export default InlineExtension;
@@ -2,4 +2,4 @@ import React from 'react';
2
2
  import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
3
3
  export default function LayoutSection(props: React.PropsWithChildren<{
4
4
  content?: PMNode[];
5
- }>): JSX.Element;
5
+ }>): React.JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import React from 'react';
2
- export default function ListItem(props: React.PropsWithChildren<unknown>): JSX.Element;
2
+ export default function ListItem(props: React.PropsWithChildren<unknown>): React.JSX.Element;
@@ -19,12 +19,12 @@ export default class MediaGroup extends PureComponent<MediaGroupProps, MediaGrou
19
19
  state: MediaGroupState;
20
20
  private handleSize;
21
21
  private handleScroll;
22
- render(): JSX.Element;
22
+ render(): React.JSX.Element;
23
23
  renderSingleFile(child: ReactElement<MediaProps>): ReactElement<MediaProps, string | React.JSXElementConstructor<any>>;
24
24
  renderSingleLink(child: ReactElement<MediaProps>): ReactElement<MediaProps, string | React.JSXElementConstructor<any>>;
25
25
  onMediaClick: (cardClickHandler: CardEventClickHandler, child: ReactElement<MediaProps>, surroundingItems: Identifier[]) => (event: CardEvent, analyticsEvent?: any) => void;
26
26
  cloneFileCard(child: ReactElement<MediaProps>, surroundingItems: Identifier[]): ReactElement<MediaProps, string | React.JSXElementConstructor<any>>;
27
- renderStrip(): JSX.Element;
27
+ renderStrip(): React.JSX.Element;
28
28
  private mapMediaPropsToIdentifier;
29
29
  }
30
30
  export {};