@atlaskit/renderer 112.12.1 → 112.12.3

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 (148) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/cjs/react/nodes/media/index.js +3 -3
  3. package/dist/cjs/react/nodes/mediaSingle/index.js +3 -3
  4. package/dist/cjs/react/nodes/table.js +6 -1
  5. package/dist/cjs/ui/Renderer/breakout-ssr.js +3 -3
  6. package/dist/cjs/ui/Renderer/index.js +1 -1
  7. package/dist/cjs/ui/annotations/draft/text.js +2 -2
  8. package/dist/es2019/react/nodes/table.js +6 -1
  9. package/dist/es2019/ui/Renderer/index.js +1 -1
  10. package/dist/esm/react/nodes/media/index.js +3 -3
  11. package/dist/esm/react/nodes/mediaSingle/index.js +3 -3
  12. package/dist/esm/react/nodes/table.js +6 -1
  13. package/dist/esm/ui/Renderer/breakout-ssr.js +3 -3
  14. package/dist/esm/ui/Renderer/index.js +1 -1
  15. package/dist/esm/ui/annotations/draft/text.js +3 -2
  16. package/dist/types/react/marks/annotation.d.ts +2 -2
  17. package/dist/types/react/marks/backgroundColor.d.ts +2 -2
  18. package/dist/types/react/marks/code.d.ts +1 -1
  19. package/dist/types/react/marks/confluence-inline-comment.d.ts +2 -2
  20. package/dist/types/react/marks/data-consumer.d.ts +2 -2
  21. package/dist/types/react/marks/em.d.ts +2 -2
  22. package/dist/types/react/marks/fragment.d.ts +2 -2
  23. package/dist/types/react/marks/indentation.d.ts +2 -2
  24. package/dist/types/react/marks/strike.d.ts +2 -2
  25. package/dist/types/react/marks/strong.d.ts +2 -2
  26. package/dist/types/react/marks/subsup.d.ts +2 -2
  27. package/dist/types/react/marks/textColor.d.ts +2 -2
  28. package/dist/types/react/marks/underline.d.ts +2 -2
  29. package/dist/types/react/marks/unsupportedMark.d.ts +2 -2
  30. package/dist/types/react/marks/unsupportedNodeAttribute.d.ts +2 -2
  31. package/dist/types/react/nodes/blockquote.d.ts +1 -1
  32. package/dist/types/react/nodes/bodiedExtension.d.ts +1 -1
  33. package/dist/types/react/nodes/bulletList.d.ts +1 -1
  34. package/dist/types/react/nodes/caption.d.ts +2 -2
  35. package/dist/types/react/nodes/date.d.ts +1 -1
  36. package/dist/types/react/nodes/decisionItem.d.ts +2 -2
  37. package/dist/types/react/nodes/decisionList.d.ts +2 -2
  38. package/dist/types/react/nodes/doc.d.ts +3 -3
  39. package/dist/types/react/nodes/extension.d.ts +5 -6
  40. package/dist/types/react/nodes/fallback.d.ts +1 -1
  41. package/dist/types/react/nodes/hardBreak.d.ts +2 -2
  42. package/dist/types/react/nodes/heading.d.ts +2 -2
  43. package/dist/types/react/nodes/inlineCard.d.ts +2 -2
  44. package/dist/types/react/nodes/inlineExtension.d.ts +2 -2
  45. package/dist/types/react/nodes/layoutSection.d.ts +1 -1
  46. package/dist/types/react/nodes/listItem.d.ts +1 -1
  47. package/dist/types/react/nodes/mediaGroup.d.ts +2 -2
  48. package/dist/types/react/nodes/orderedList.d.ts +1 -1
  49. package/dist/types/react/nodes/paragraph.d.ts +2 -2
  50. package/dist/types/react/nodes/placeholder.d.ts +2 -2
  51. package/dist/types/react/nodes/rule.d.ts +2 -2
  52. package/dist/types/react/nodes/table/colgroup.d.ts +2 -2
  53. package/dist/types/react/nodes/table/table.d.ts +1 -1
  54. package/dist/types/react/nodes/table.d.ts +4 -4
  55. package/dist/types/react/nodes/tableCell.d.ts +3 -3
  56. package/dist/types/react/nodes/tableRow.d.ts +1 -1
  57. package/dist/types/react/nodes/task-item-with-providers.d.ts +2 -2
  58. package/dist/types/react/nodes/taskItem.d.ts +2 -2
  59. package/dist/types/react/nodes/taskList.d.ts +2 -2
  60. package/dist/types/react/nodes/text-wrapper.d.ts +2 -1
  61. package/dist/types/react/nodes/unknownBlock.d.ts +1 -1
  62. package/dist/types/react/utils/EditorMediaClientProvider.d.ts +1 -1
  63. package/dist/types/react/utils/render-text-segments.d.ts +2 -2
  64. package/dist/types/ui/MediaCard.d.ts +2 -2
  65. package/dist/types/ui/Renderer/ErrorBoundary.d.ts +1 -1
  66. package/dist/types/ui/Renderer/breakout-ssr.d.ts +2 -2
  67. package/dist/types/ui/RendererActionsContext/WithRendererActions.d.ts +2 -2
  68. package/dist/types/ui/RendererActionsContext/index.d.ts +1 -1
  69. package/dist/types/ui/SmartCardStorage.d.ts +3 -3
  70. package/dist/types/ui/TaskItemsFormatContext/TaskItemsFormatContext.d.ts +2 -2
  71. package/dist/types/ui/active-header-id-provider.d.ts +1 -1
  72. package/dist/types/ui/annotations/context.d.ts +1 -1
  73. package/dist/types/ui/annotations/contexts/AnnotationHoverContext.d.ts +1 -1
  74. package/dist/types/ui/annotations/contexts/AnnotationRangeContext.d.ts +1 -1
  75. package/dist/types/ui/annotations/element/index.d.ts +1 -1
  76. package/dist/types/ui/annotations/hover/mounter.d.ts +1 -1
  77. package/dist/types/ui/annotations/hover/range-validator.d.ts +1 -1
  78. package/dist/types/ui/annotations/index.d.ts +1 -1
  79. package/dist/types/ui/annotations/selection/mounter.d.ts +1 -1
  80. package/dist/types/ui/annotations/selection/range-validator.d.ts +1 -1
  81. package/dist/types/ui/annotations/view/index.d.ts +2 -2
  82. package/dist/types-ts4.5/react/marks/annotation.d.ts +2 -2
  83. package/dist/types-ts4.5/react/marks/backgroundColor.d.ts +2 -2
  84. package/dist/types-ts4.5/react/marks/code.d.ts +1 -1
  85. package/dist/types-ts4.5/react/marks/confluence-inline-comment.d.ts +2 -2
  86. package/dist/types-ts4.5/react/marks/data-consumer.d.ts +2 -2
  87. package/dist/types-ts4.5/react/marks/em.d.ts +2 -2
  88. package/dist/types-ts4.5/react/marks/fragment.d.ts +2 -2
  89. package/dist/types-ts4.5/react/marks/indentation.d.ts +2 -2
  90. package/dist/types-ts4.5/react/marks/strike.d.ts +2 -2
  91. package/dist/types-ts4.5/react/marks/strong.d.ts +2 -2
  92. package/dist/types-ts4.5/react/marks/subsup.d.ts +2 -2
  93. package/dist/types-ts4.5/react/marks/textColor.d.ts +2 -2
  94. package/dist/types-ts4.5/react/marks/underline.d.ts +2 -2
  95. package/dist/types-ts4.5/react/marks/unsupportedMark.d.ts +2 -2
  96. package/dist/types-ts4.5/react/marks/unsupportedNodeAttribute.d.ts +2 -2
  97. package/dist/types-ts4.5/react/nodes/blockquote.d.ts +1 -1
  98. package/dist/types-ts4.5/react/nodes/bodiedExtension.d.ts +1 -1
  99. package/dist/types-ts4.5/react/nodes/bulletList.d.ts +1 -1
  100. package/dist/types-ts4.5/react/nodes/caption.d.ts +2 -2
  101. package/dist/types-ts4.5/react/nodes/date.d.ts +1 -1
  102. package/dist/types-ts4.5/react/nodes/decisionItem.d.ts +2 -2
  103. package/dist/types-ts4.5/react/nodes/decisionList.d.ts +2 -2
  104. package/dist/types-ts4.5/react/nodes/doc.d.ts +3 -3
  105. package/dist/types-ts4.5/react/nodes/extension.d.ts +5 -6
  106. package/dist/types-ts4.5/react/nodes/fallback.d.ts +1 -1
  107. package/dist/types-ts4.5/react/nodes/hardBreak.d.ts +2 -2
  108. package/dist/types-ts4.5/react/nodes/heading.d.ts +2 -2
  109. package/dist/types-ts4.5/react/nodes/inlineCard.d.ts +2 -2
  110. package/dist/types-ts4.5/react/nodes/inlineExtension.d.ts +2 -2
  111. package/dist/types-ts4.5/react/nodes/layoutSection.d.ts +1 -1
  112. package/dist/types-ts4.5/react/nodes/listItem.d.ts +1 -1
  113. package/dist/types-ts4.5/react/nodes/mediaGroup.d.ts +2 -2
  114. package/dist/types-ts4.5/react/nodes/orderedList.d.ts +1 -1
  115. package/dist/types-ts4.5/react/nodes/paragraph.d.ts +2 -2
  116. package/dist/types-ts4.5/react/nodes/placeholder.d.ts +2 -2
  117. package/dist/types-ts4.5/react/nodes/rule.d.ts +2 -2
  118. package/dist/types-ts4.5/react/nodes/table/colgroup.d.ts +2 -2
  119. package/dist/types-ts4.5/react/nodes/table/table.d.ts +1 -1
  120. package/dist/types-ts4.5/react/nodes/table.d.ts +4 -4
  121. package/dist/types-ts4.5/react/nodes/tableCell.d.ts +3 -3
  122. package/dist/types-ts4.5/react/nodes/tableRow.d.ts +1 -1
  123. package/dist/types-ts4.5/react/nodes/task-item-with-providers.d.ts +2 -2
  124. package/dist/types-ts4.5/react/nodes/taskItem.d.ts +2 -2
  125. package/dist/types-ts4.5/react/nodes/taskList.d.ts +2 -2
  126. package/dist/types-ts4.5/react/nodes/text-wrapper.d.ts +2 -1
  127. package/dist/types-ts4.5/react/nodes/unknownBlock.d.ts +1 -1
  128. package/dist/types-ts4.5/react/utils/EditorMediaClientProvider.d.ts +1 -1
  129. package/dist/types-ts4.5/react/utils/render-text-segments.d.ts +2 -2
  130. package/dist/types-ts4.5/ui/MediaCard.d.ts +2 -2
  131. package/dist/types-ts4.5/ui/Renderer/ErrorBoundary.d.ts +1 -1
  132. package/dist/types-ts4.5/ui/Renderer/breakout-ssr.d.ts +2 -2
  133. package/dist/types-ts4.5/ui/RendererActionsContext/WithRendererActions.d.ts +2 -2
  134. package/dist/types-ts4.5/ui/RendererActionsContext/index.d.ts +1 -1
  135. package/dist/types-ts4.5/ui/SmartCardStorage.d.ts +3 -3
  136. package/dist/types-ts4.5/ui/TaskItemsFormatContext/TaskItemsFormatContext.d.ts +2 -2
  137. package/dist/types-ts4.5/ui/active-header-id-provider.d.ts +1 -1
  138. package/dist/types-ts4.5/ui/annotations/context.d.ts +1 -1
  139. package/dist/types-ts4.5/ui/annotations/contexts/AnnotationHoverContext.d.ts +1 -1
  140. package/dist/types-ts4.5/ui/annotations/contexts/AnnotationRangeContext.d.ts +1 -1
  141. package/dist/types-ts4.5/ui/annotations/element/index.d.ts +1 -1
  142. package/dist/types-ts4.5/ui/annotations/hover/mounter.d.ts +1 -1
  143. package/dist/types-ts4.5/ui/annotations/hover/range-validator.d.ts +1 -1
  144. package/dist/types-ts4.5/ui/annotations/index.d.ts +1 -1
  145. package/dist/types-ts4.5/ui/annotations/selection/mounter.d.ts +1 -1
  146. package/dist/types-ts4.5/ui/annotations/selection/range-validator.d.ts +1 -1
  147. package/dist/types-ts4.5/ui/annotations/view/index.d.ts +2 -2
  148. package/package.json +18 -10
package/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # @atlaskit/renderer
2
2
 
3
+ ## 112.12.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#110251](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/110251)
8
+ [`b6adb9244b072`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b6adb9244b072) -
9
+ [ux] Visual refresh of the EmbedCard component
10
+ - [#110634](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/110634)
11
+ [`62224d53da886`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/62224d53da886) -
12
+ [ux] [ED-26283] CSS Selector fix for table with shadows when there are nested tables. It will only
13
+ select direct children now and not descendants which prevents unnecessary shadow on parent table
14
+ when there is a nested table.
15
+ - Updated dependencies
16
+
17
+ ## 112.12.2
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies
22
+
3
23
  ## 112.12.1
4
24
 
5
25
  ### Patch Changes
@@ -116,7 +116,7 @@ var MediaAnnotation = function MediaAnnotation(_ref3) {
116
116
  useBlockLevel: true
117
117
  }, children);
118
118
  };
119
- var MediaAnnotations = function MediaAnnotations(_ref4) {
119
+ var _MediaAnnotations = function MediaAnnotations(_ref4) {
120
120
  var _ref4$marks = _ref4.marks,
121
121
  marks = _ref4$marks === void 0 ? [] : _ref4$marks,
122
122
  children = _ref4.children;
@@ -131,7 +131,7 @@ var MediaAnnotations = function MediaAnnotations(_ref4) {
131
131
  return (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)(MediaAnnotation, {
132
132
  key: currentMark.attrs.id,
133
133
  mark: currentMark
134
- }, otherMarks.length ? (0, _react2.jsx)(MediaAnnotations, {
134
+ }, otherMarks.length ? (0, _react2.jsx)(_MediaAnnotations, {
135
135
  marks: otherMarks
136
136
  }, children) : (0, _react2.jsx)(_react.Fragment, null, children)));
137
137
  };
@@ -332,7 +332,7 @@ var Media = /*#__PURE__*/function (_PureComponent) {
332
332
  return (0, _react2.jsx)(MediaLink, {
333
333
  mark: linkMark,
334
334
  onClick: _this.handleMediaLinkClickFn
335
- }, (0, _react2.jsx)(MediaAnnotations, {
335
+ }, (0, _react2.jsx)(_MediaAnnotations, {
336
336
  marks: annotationMarks
337
337
  }, (0, _react2.jsx)(MediaBorder, {
338
338
  mark: borderMark
@@ -43,7 +43,7 @@ var isMediaElement = function isMediaElement(media) {
43
43
  // better than assume the first item in children is media
44
44
  return nodeType === 'media' || ['external', 'file', 'link'].indexOf(type) >= 0;
45
45
  };
46
- var checkForMediaElement = function checkForMediaElement(children) {
46
+ var _checkForMediaElement = function checkForMediaElement(children) {
47
47
  var _React$Children$toArr = _react.default.Children.toArray(children),
48
48
  _React$Children$toArr2 = (0, _slicedToArray2.default)(_React$Children$toArr, 1),
49
49
  media = _React$Children$toArr2[0];
@@ -52,7 +52,7 @@ var checkForMediaElement = function checkForMediaElement(children) {
52
52
  if (media && !isMediaElement(media) && media.props.children) {
53
53
  // Ignored via go/ees005
54
54
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
55
- return checkForMediaElement(media.props.children);
55
+ return _checkForMediaElement(media.props.children);
56
56
  }
57
57
  return media;
58
58
  };
@@ -256,7 +256,7 @@ var MediaSingle = function MediaSingle(props) {
256
256
  if (!isMediaElement(node)) {
257
257
  // Ignored via go/ees005
258
258
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
259
- var mediaElement = checkForMediaElement(node.props.children);
259
+ var mediaElement = _checkForMediaElement(node.props.children);
260
260
  if (!mediaElement) {
261
261
  return node;
262
262
  }
@@ -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) {
@@ -195,14 +195,14 @@ function applyBreakoutAfterSSR(id, breakoutConsts, shouldFixTableResizing) {
195
195
  * – https://developer.mozilla.org/en-US/docs/Web/API/Window/load_event
196
196
  * – https://developer.mozilla.org/en-US/docs/Web/API/Document/DOMContentLoaded_event
197
197
  */
198
- var disconnect = function disconnect() {
198
+ var _disconnect = function disconnect() {
199
199
  observer.disconnect();
200
200
  // Ignored via go/ees005
201
201
  // eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
202
- window.removeEventListener('load', disconnect);
202
+ window.removeEventListener('load', _disconnect);
203
203
  };
204
204
  // Ignored via go/ees005
205
205
  // eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
206
- window.addEventListener('load', disconnect);
206
+ window.addEventListener('load', _disconnect);
207
207
  }
208
208
  var calcLineLength = exports.calcLineLength = _utils.breakoutConsts.calcLineLength;
@@ -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.1";
67
+ var packageVersion = "112.12.3";
68
68
  var setAsQueryContainerStyles = (0, _react2.css)({
69
69
  containerName: 'ak-renderer-wrapper',
70
70
  containerType: 'inline-size',
@@ -9,7 +9,7 @@ var _react = _interopRequireDefault(require("react"));
9
9
  function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
10
10
  function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
11
11
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
12
- var findTextString = exports.findTextString = function findTextString(reactNode) {
12
+ var _findTextString = exports.findTextString = function findTextString(reactNode) {
13
13
  var result = null;
14
14
  var children = _react.default.Children.toArray(reactNode);
15
15
  var _iterator = _createForOfIteratorHelper(children),
@@ -22,7 +22,7 @@ var findTextString = exports.findTextString = function findTextString(reactNode)
22
22
  } else if (typeof childNode === 'string') {
23
23
  result = childNode;
24
24
  } else if (isReactElement(childNode) && childNode.props.children) {
25
- result = findTextString(childNode.props.children);
25
+ result = _findTextString(childNode.props.children);
26
26
  }
27
27
  }
28
28
  } catch (err) {
@@ -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.1";
48
+ const packageVersion = "112.12.3";
49
49
  const setAsQueryContainerStyles = css({
50
50
  containerName: 'ak-renderer-wrapper',
51
51
  containerType: 'inline-size',
@@ -107,7 +107,7 @@ var MediaAnnotation = function MediaAnnotation(_ref3) {
107
107
  useBlockLevel: true
108
108
  }, children);
109
109
  };
110
- var MediaAnnotations = function MediaAnnotations(_ref4) {
110
+ var _MediaAnnotations = function MediaAnnotations(_ref4) {
111
111
  var _ref4$marks = _ref4.marks,
112
112
  marks = _ref4$marks === void 0 ? [] : _ref4$marks,
113
113
  children = _ref4.children;
@@ -122,7 +122,7 @@ var MediaAnnotations = function MediaAnnotations(_ref4) {
122
122
  return jsx(Fragment, null, jsx(MediaAnnotation, {
123
123
  key: currentMark.attrs.id,
124
124
  mark: currentMark
125
- }, otherMarks.length ? jsx(MediaAnnotations, {
125
+ }, otherMarks.length ? jsx(_MediaAnnotations, {
126
126
  marks: otherMarks
127
127
  }, children) : jsx(Fragment, null, children)));
128
128
  };
@@ -323,7 +323,7 @@ var Media = /*#__PURE__*/function (_PureComponent) {
323
323
  return jsx(MediaLink, {
324
324
  mark: linkMark,
325
325
  onClick: _this.handleMediaLinkClickFn
326
- }, jsx(MediaAnnotations, {
326
+ }, jsx(_MediaAnnotations, {
327
327
  marks: annotationMarks
328
328
  }, jsx(MediaBorder, {
329
329
  mark: borderMark
@@ -32,7 +32,7 @@ var isMediaElement = function isMediaElement(media) {
32
32
  // better than assume the first item in children is media
33
33
  return nodeType === 'media' || ['external', 'file', 'link'].indexOf(type) >= 0;
34
34
  };
35
- var checkForMediaElement = function checkForMediaElement(children) {
35
+ var _checkForMediaElement = function checkForMediaElement(children) {
36
36
  var _React$Children$toArr = React.Children.toArray(children),
37
37
  _React$Children$toArr2 = _slicedToArray(_React$Children$toArr, 1),
38
38
  media = _React$Children$toArr2[0];
@@ -41,7 +41,7 @@ var checkForMediaElement = function checkForMediaElement(children) {
41
41
  if (media && !isMediaElement(media) && media.props.children) {
42
42
  // Ignored via go/ees005
43
43
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
44
- return checkForMediaElement(media.props.children);
44
+ return _checkForMediaElement(media.props.children);
45
45
  }
46
46
  return media;
47
47
  };
@@ -245,7 +245,7 @@ var MediaSingle = function MediaSingle(props) {
245
245
  if (!isMediaElement(node)) {
246
246
  // Ignored via go/ees005
247
247
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
248
- var mediaElement = checkForMediaElement(node.props.children);
248
+ var mediaElement = _checkForMediaElement(node.props.children);
249
249
  if (!mediaElement) {
250
250
  return node;
251
251
  }
@@ -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) {
@@ -186,14 +186,14 @@ function applyBreakoutAfterSSR(id, breakoutConsts, shouldFixTableResizing) {
186
186
  * – https://developer.mozilla.org/en-US/docs/Web/API/Window/load_event
187
187
  * – https://developer.mozilla.org/en-US/docs/Web/API/Document/DOMContentLoaded_event
188
188
  */
189
- var disconnect = function disconnect() {
189
+ var _disconnect = function disconnect() {
190
190
  observer.disconnect();
191
191
  // Ignored via go/ees005
192
192
  // eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
193
- window.removeEventListener('load', disconnect);
193
+ window.removeEventListener('load', _disconnect);
194
194
  };
195
195
  // Ignored via go/ees005
196
196
  // eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
197
- window.addEventListener('load', disconnect);
197
+ window.addEventListener('load', _disconnect);
198
198
  }
199
199
  export var calcLineLength = breakoutConsts.calcLineLength;
@@ -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.1";
57
+ var packageVersion = "112.12.3";
58
58
  var setAsQueryContainerStyles = css({
59
59
  containerName: 'ak-renderer-wrapper',
60
60
  containerType: 'inline-size',
@@ -2,7 +2,7 @@ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol
2
2
  function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
3
3
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
4
4
  import React from 'react';
5
- export var findTextString = function findTextString(reactNode) {
5
+ var _findTextString = function findTextString(reactNode) {
6
6
  var result = null;
7
7
  var children = React.Children.toArray(reactNode);
8
8
  var _iterator = _createForOfIteratorHelper(children),
@@ -15,7 +15,7 @@ export var findTextString = function findTextString(reactNode) {
15
15
  } else if (typeof childNode === 'string') {
16
16
  result = childNode;
17
17
  } else if (isReactElement(childNode) && childNode.props.children) {
18
- result = findTextString(childNode.props.children);
18
+ result = _findTextString(childNode.props.children);
19
19
  }
20
20
  }
21
21
  } catch (err) {
@@ -25,6 +25,7 @@ export var findTextString = function findTextString(reactNode) {
25
25
  }
26
26
  return result;
27
27
  };
28
+ export { _findTextString as findTextString };
28
29
  function isReactElement(child) {
29
30
  return !!child.type;
30
31
  }
@@ -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;