@atlaskit/renderer 109.42.6 → 109.43.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 (140) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/cjs/react/marks/alignment.js +4 -1
  3. package/dist/cjs/react/marks/border.js +4 -1
  4. package/dist/cjs/react/marks/breakout.js +4 -1
  5. package/dist/cjs/react/marks/link.js +4 -1
  6. package/dist/cjs/react/nodes/blockCard.js +4 -1
  7. package/dist/cjs/react/nodes/codeBlock/codeBlock.js +4 -1
  8. package/dist/cjs/react/nodes/codeBlock/components/codeBlockButtonContainer.js +4 -1
  9. package/dist/cjs/react/nodes/codeBlock/components/codeBlockContainer.js +4 -1
  10. package/dist/cjs/react/nodes/codeBlock/components/codeBlockCopyButton.js +4 -1
  11. package/dist/cjs/react/nodes/codeBlock/components/codeBlockWrapButton.js +4 -1
  12. package/dist/cjs/react/nodes/codeBlock/components/lightWeightCodeBlock.js +4 -1
  13. package/dist/cjs/react/nodes/codeBlock/windowedCodeBlock.js +4 -1
  14. package/dist/cjs/react/nodes/embedCard.js +4 -1
  15. package/dist/cjs/react/nodes/emoji.js +4 -1
  16. package/dist/cjs/react/nodes/extensionFrame.js +4 -1
  17. package/dist/cjs/react/nodes/heading-anchor.js +4 -1
  18. package/dist/cjs/react/nodes/inlineCard.js +4 -1
  19. package/dist/cjs/react/nodes/layoutColumn.js +4 -1
  20. package/dist/cjs/react/nodes/media/index.js +4 -1
  21. package/dist/cjs/react/nodes/mediaSingle/index.js +4 -1
  22. package/dist/cjs/react/nodes/mediaSingle/styles.js +4 -1
  23. package/dist/cjs/react/nodes/multiBodiedExtension.js +4 -1
  24. package/dist/cjs/react/nodes/panel.js +4 -1
  25. package/dist/cjs/react/nodes/table/colgroup.js +3 -1
  26. package/dist/cjs/react/nodes/table/sticky.js +4 -1
  27. package/dist/cjs/react/nodes/table/table.js +4 -0
  28. package/dist/cjs/react/nodes/table.js +5 -1
  29. package/dist/cjs/react/utils/appearance.js +4 -1
  30. package/dist/cjs/ui/Expand.js +4 -1
  31. package/dist/cjs/ui/ExtensionRenderer.js +4 -1
  32. package/dist/cjs/ui/Renderer/index.js +5 -2
  33. package/dist/cjs/ui/Renderer/truncated-wrapper.js +4 -1
  34. package/dist/cjs/ui/annotations/draft/component.js +4 -1
  35. package/dist/cjs/ui/annotations/element/mark.js +4 -1
  36. package/dist/es2019/react/marks/alignment.js +4 -1
  37. package/dist/es2019/react/marks/border.js +4 -1
  38. package/dist/es2019/react/marks/breakout.js +4 -1
  39. package/dist/es2019/react/marks/link.js +4 -1
  40. package/dist/es2019/react/nodes/blockCard.js +4 -1
  41. package/dist/es2019/react/nodes/codeBlock/codeBlock.js +4 -1
  42. package/dist/es2019/react/nodes/codeBlock/components/codeBlockButtonContainer.js +4 -1
  43. package/dist/es2019/react/nodes/codeBlock/components/codeBlockContainer.js +4 -1
  44. package/dist/es2019/react/nodes/codeBlock/components/codeBlockCopyButton.js +4 -1
  45. package/dist/es2019/react/nodes/codeBlock/components/codeBlockWrapButton.js +4 -1
  46. package/dist/es2019/react/nodes/codeBlock/components/lightWeightCodeBlock.js +4 -1
  47. package/dist/es2019/react/nodes/codeBlock/windowedCodeBlock.js +4 -1
  48. package/dist/es2019/react/nodes/embedCard.js +4 -1
  49. package/dist/es2019/react/nodes/emoji.js +4 -1
  50. package/dist/es2019/react/nodes/extensionFrame.js +4 -1
  51. package/dist/es2019/react/nodes/heading-anchor.js +4 -1
  52. package/dist/es2019/react/nodes/inlineCard.js +4 -1
  53. package/dist/es2019/react/nodes/layoutColumn.js +4 -1
  54. package/dist/es2019/react/nodes/media/index.js +4 -1
  55. package/dist/es2019/react/nodes/mediaSingle/index.js +4 -1
  56. package/dist/es2019/react/nodes/mediaSingle/styles.js +4 -1
  57. package/dist/es2019/react/nodes/multiBodiedExtension.js +4 -1
  58. package/dist/es2019/react/nodes/panel.js +4 -1
  59. package/dist/es2019/react/nodes/table/colgroup.js +3 -1
  60. package/dist/es2019/react/nodes/table/sticky.js +4 -1
  61. package/dist/es2019/react/nodes/table/table.js +5 -1
  62. package/dist/es2019/react/nodes/table.js +6 -2
  63. package/dist/es2019/react/utils/appearance.js +1 -0
  64. package/dist/es2019/ui/Expand.js +4 -1
  65. package/dist/es2019/ui/ExtensionRenderer.js +4 -1
  66. package/dist/es2019/ui/Renderer/index.js +5 -2
  67. package/dist/es2019/ui/Renderer/truncated-wrapper.js +4 -1
  68. package/dist/es2019/ui/annotations/draft/component.js +4 -1
  69. package/dist/es2019/ui/annotations/element/mark.js +4 -1
  70. package/dist/esm/react/marks/alignment.js +4 -1
  71. package/dist/esm/react/marks/border.js +4 -1
  72. package/dist/esm/react/marks/breakout.js +4 -1
  73. package/dist/esm/react/marks/link.js +4 -1
  74. package/dist/esm/react/nodes/blockCard.js +4 -1
  75. package/dist/esm/react/nodes/codeBlock/codeBlock.js +4 -1
  76. package/dist/esm/react/nodes/codeBlock/components/codeBlockButtonContainer.js +4 -1
  77. package/dist/esm/react/nodes/codeBlock/components/codeBlockContainer.js +4 -1
  78. package/dist/esm/react/nodes/codeBlock/components/codeBlockCopyButton.js +4 -1
  79. package/dist/esm/react/nodes/codeBlock/components/codeBlockWrapButton.js +4 -1
  80. package/dist/esm/react/nodes/codeBlock/components/lightWeightCodeBlock.js +4 -1
  81. package/dist/esm/react/nodes/codeBlock/windowedCodeBlock.js +4 -1
  82. package/dist/esm/react/nodes/embedCard.js +4 -1
  83. package/dist/esm/react/nodes/emoji.js +4 -1
  84. package/dist/esm/react/nodes/extensionFrame.js +4 -1
  85. package/dist/esm/react/nodes/heading-anchor.js +4 -1
  86. package/dist/esm/react/nodes/inlineCard.js +4 -1
  87. package/dist/esm/react/nodes/layoutColumn.js +4 -1
  88. package/dist/esm/react/nodes/media/index.js +4 -1
  89. package/dist/esm/react/nodes/mediaSingle/index.js +4 -1
  90. package/dist/esm/react/nodes/mediaSingle/styles.js +4 -1
  91. package/dist/esm/react/nodes/multiBodiedExtension.js +4 -1
  92. package/dist/esm/react/nodes/panel.js +4 -1
  93. package/dist/esm/react/nodes/table/colgroup.js +3 -1
  94. package/dist/esm/react/nodes/table/sticky.js +4 -1
  95. package/dist/esm/react/nodes/table/table.js +4 -0
  96. package/dist/esm/react/nodes/table.js +6 -2
  97. package/dist/esm/react/utils/appearance.js +3 -0
  98. package/dist/esm/ui/Expand.js +4 -1
  99. package/dist/esm/ui/ExtensionRenderer.js +4 -1
  100. package/dist/esm/ui/Renderer/index.js +5 -2
  101. package/dist/esm/ui/Renderer/truncated-wrapper.js +4 -1
  102. package/dist/esm/ui/annotations/draft/component.js +4 -1
  103. package/dist/esm/ui/annotations/element/mark.js +4 -1
  104. package/dist/types/react/marks/border.d.ts +4 -1
  105. package/dist/types/react/marks/breakout.d.ts +4 -1
  106. package/dist/types/react/nodes/codeBlock/components/codeBlockButtonContainer.d.ts +4 -1
  107. package/dist/types/react/nodes/codeBlock/components/codeBlockContainer.d.ts +4 -1
  108. package/dist/types/react/nodes/codeBlock/components/lightWeightCodeBlock.d.ts +4 -1
  109. package/dist/types/react/nodes/embedCard.d.ts +4 -1
  110. package/dist/types/react/nodes/emoji.d.ts +4 -1
  111. package/dist/types/react/nodes/extensionFrame.d.ts +4 -1
  112. package/dist/types/react/nodes/layoutColumn.d.ts +4 -1
  113. package/dist/types/react/nodes/media/index.d.ts +4 -1
  114. package/dist/types/react/nodes/multiBodiedExtension.d.ts +4 -1
  115. package/dist/types/react/nodes/panel.d.ts +4 -1
  116. package/dist/types/react/nodes/table/sticky.d.ts +4 -1
  117. package/dist/types/react/utils/appearance.d.ts +1 -0
  118. package/dist/types/ui/Renderer/index.d.ts +4 -1
  119. package/dist/types/ui/Renderer/truncated-wrapper.d.ts +4 -1
  120. package/dist/types/ui/annotations/draft/component.d.ts +4 -1
  121. package/dist/types/ui/annotations/element/mark.d.ts +4 -1
  122. package/dist/types-ts4.5/react/marks/border.d.ts +4 -1
  123. package/dist/types-ts4.5/react/marks/breakout.d.ts +4 -1
  124. package/dist/types-ts4.5/react/nodes/codeBlock/components/codeBlockButtonContainer.d.ts +4 -1
  125. package/dist/types-ts4.5/react/nodes/codeBlock/components/codeBlockContainer.d.ts +4 -1
  126. package/dist/types-ts4.5/react/nodes/codeBlock/components/lightWeightCodeBlock.d.ts +4 -1
  127. package/dist/types-ts4.5/react/nodes/embedCard.d.ts +4 -1
  128. package/dist/types-ts4.5/react/nodes/emoji.d.ts +4 -1
  129. package/dist/types-ts4.5/react/nodes/extensionFrame.d.ts +4 -1
  130. package/dist/types-ts4.5/react/nodes/layoutColumn.d.ts +4 -1
  131. package/dist/types-ts4.5/react/nodes/media/index.d.ts +4 -1
  132. package/dist/types-ts4.5/react/nodes/multiBodiedExtension.d.ts +4 -1
  133. package/dist/types-ts4.5/react/nodes/panel.d.ts +4 -1
  134. package/dist/types-ts4.5/react/nodes/table/sticky.d.ts +4 -1
  135. package/dist/types-ts4.5/react/utils/appearance.d.ts +1 -0
  136. package/dist/types-ts4.5/ui/Renderer/index.d.ts +4 -1
  137. package/dist/types-ts4.5/ui/Renderer/truncated-wrapper.d.ts +4 -1
  138. package/dist/types-ts4.5/ui/annotations/draft/component.d.ts +4 -1
  139. package/dist/types-ts4.5/ui/annotations/element/mark.d.ts +4 -1
  140. package/package.json +15 -12
@@ -24,9 +24,11 @@ import { TableHeader } from './tableCell';
24
24
  import { withSmartCardStorage } from '../../ui/SmartCardStorage';
25
25
  import { StickyTable, tableStickyPadding, OverflowParent } from './table/sticky';
26
26
  import { Table } from './table/table';
27
- import { isFullPageAppearance, isFullWidthAppearance, isFullWidthOrFullPageAppearance } from '../utils/appearance';
27
+ import { isCommentAppearance, isFullPageAppearance, isFullWidthAppearance, isFullWidthOrFullPageAppearance } from '../utils/appearance';
28
28
  export var isTableResizingEnabled = function isTableResizingEnabled(appearance) {
29
- return isFullWidthOrFullPageAppearance(appearance);
29
+ return isFullWidthOrFullPageAppearance(appearance) ||
30
+ // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
31
+ isCommentAppearance(appearance) && fg('platform_editor_table_support_in_comment');
30
32
  };
31
33
  var orderChildren = function orderChildren(children, tableNode, smartCardStorage, tableOrderStatus) {
32
34
  if (!tableOrderStatus || tableOrderStatus.order === SortOrder.NO_ORDER) {
@@ -302,6 +304,8 @@ export var TableContainer = /*#__PURE__*/function (_React$Component) {
302
304
  var calcDefaultLayoutWidthByAppearance = function calcDefaultLayoutWidthByAppearance(rendererAppearance, tableNode) {
303
305
  if (rendererAppearance === 'full-width' && !(tableNode !== null && tableNode !== void 0 && tableNode.attrs.width)) {
304
306
  return isRenderWidthValid ? Math.min(akEditorFullWidthLayoutWidth, renderWidth) : akEditorFullWidthLayoutWidth;
307
+ } else if (rendererAppearance === 'comment' && isTableResizingEnabled(rendererAppearance) && !(tableNode !== null && tableNode !== void 0 && tableNode.attrs.width)) {
308
+ return renderWidth;
305
309
  } else {
306
310
  // custom width, or width mapped to breakpoint
307
311
  var tableContainerWidth = getTableContainerWidth(tableNode);
@@ -4,6 +4,9 @@ export var isFullWidthAppearance = function isFullWidthAppearance(appearance) {
4
4
  export var isFullPageAppearance = function isFullPageAppearance(appearance) {
5
5
  return appearance === 'full-page';
6
6
  };
7
+ export var isCommentAppearance = function isCommentAppearance(appearance) {
8
+ return appearance === 'comment';
9
+ };
7
10
  export var isFullWidthOrFullPageAppearance = function isFullWidthOrFullPageAppearance(appearance) {
8
11
  return isFullPageAppearance(appearance) || isFullWidthAppearance(appearance);
9
12
  };
@@ -4,7 +4,10 @@ import _extends from "@babel/runtime/helpers/extends";
4
4
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
5
5
  var _excluded = ["expanded"];
6
6
  var _templateObject, _templateObject2, _templateObject3;
7
- /** @jsx jsx */
7
+ /**
8
+ * @jsxRuntime classic
9
+ * @jsx jsx
10
+ */
8
11
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
12
  import { css, jsx } from '@emotion/react';
10
13
  import React, { useCallback, useMemo, useRef } from 'react';
@@ -1,5 +1,8 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
- /** @jsx jsx */
2
+ /**
3
+ * @jsxRuntime classic
4
+ * @jsx jsx
5
+ */
3
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
7
  import { css, jsx } from '@emotion/react';
5
8
  import React, { Fragment } from 'react';
@@ -10,7 +10,10 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
10
10
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
11
11
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
12
12
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
13
- /** @jsx jsx */
13
+ /**
14
+ * @jsxRuntime classic
15
+ * @jsx jsx
16
+ */
14
17
  import React, { Fragment, useContext, useLayoutEffect, useRef, PureComponent } from 'react';
15
18
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
16
19
  import { jsx } from '@emotion/react';
@@ -49,7 +52,7 @@ import { nodeToReact } from '../../react/nodes';
49
52
  export var NORMAL_SEVERITY_THRESHOLD = 2000;
50
53
  export var DEGRADED_SEVERITY_THRESHOLD = 3000;
51
54
  var packageName = "@atlaskit/renderer";
52
- var packageVersion = "109.42.6";
55
+ var packageVersion = "109.43.0";
53
56
  export var defaultNodeComponents = nodeToReact;
54
57
  export var Renderer = /*#__PURE__*/function (_PureComponent) {
55
58
  _inherits(Renderer, _PureComponent);
@@ -5,7 +5,10 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
5
5
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
6
6
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
7
7
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
8
- /** @jsx jsx */
8
+ /**
9
+ * @jsxRuntime classic
10
+ * @jsx jsx
11
+ */
9
12
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
10
13
  import { css, jsx } from '@emotion/react';
11
14
  import { Component } from 'react';
@@ -1,5 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
- /** @jsx jsx */
2
+ /**
3
+ * @jsxRuntime classic
4
+ * @jsx jsx
5
+ */
3
6
  import React, { Fragment } from 'react';
4
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
5
8
  import { css, jsx } from '@emotion/react';
@@ -4,7 +4,10 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
4
4
  var _templateObject;
5
5
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
6
6
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7
- /** @jsx jsx */
7
+ /**
8
+ * @jsxRuntime classic
9
+ * @jsx jsx
10
+ */
8
11
 
9
12
  import { useMemo, useCallback } from 'react';
10
13
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import { jsx } from '@emotion/react';
3
6
  import type { BorderMarkAttributes } from '@atlaskit/adf-schema';
4
7
  import type { MarkProps } from '../types';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import { jsx } from '@emotion/react';
3
6
  import type { BreakoutMarkAttrs } from '@atlaskit/adf-schema';
4
7
  import type { MarkProps } from '../types';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import { jsx } from '@emotion/react';
3
6
  import type { Dispatch, SetStateAction } from 'react';
4
7
  export interface CodeBlockButtonContainerProps {
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import { jsx } from '@emotion/react';
3
6
  import type { ReactNode } from 'react';
4
7
  import type { CodeBlockButtonContainerProps } from './codeBlockButtonContainer';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import React from 'react';
3
6
  import type { Props as CodeBlockProps } from '../codeBlock';
4
7
  export declare const LightWeightCodeBlockCssClassName: {
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import { jsx } from '@emotion/react';
3
6
  import type { SmartLinksOptions } from '../../types/smartLinksOptions';
4
7
  import type { EventHandlers } from '@atlaskit/editor-common/ui';
@@ -1,5 +1,8 @@
1
1
  /// <reference types="react" />
2
- /** @jsx jsx */
2
+ /**
3
+ * @jsxRuntime classic
4
+ * @jsx jsx
5
+ */
3
6
  import { jsx } from '@emotion/react';
4
7
  import { type EmojiAttributes } from '@atlaskit/adf-schema';
5
8
  import { type EmojiResourceConfig } from '@atlaskit/emoji/resource';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  /// <reference types="react" />
3
6
  import { jsx } from '@emotion/react';
4
7
  import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import React from 'react';
3
6
  import { jsx } from '@emotion/react';
4
7
  export default function LayoutSection(props: React.PropsWithChildren<{
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import type { PropsWithChildren } from 'react';
3
6
  import React from 'react';
4
7
  import { jsx } from '@emotion/react';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import { jsx } from '@emotion/react';
3
6
  import React from 'react';
4
7
  import type { Mark as PMMark, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import React from 'react';
3
6
  import { jsx } from '@emotion/react';
4
7
  import { PanelType } from '@atlaskit/adf-schema';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import React from 'react';
3
6
  import { jsx } from '@emotion/react';
4
7
  import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
@@ -1,4 +1,5 @@
1
1
  import { type RendererAppearance } from '../../ui/Renderer/types';
2
2
  export declare const isFullWidthAppearance: (appearance: RendererAppearance) => boolean;
3
3
  export declare const isFullPageAppearance: (appearance: RendererAppearance) => boolean;
4
+ export declare const isCommentAppearance: (appearance: RendererAppearance) => boolean;
4
5
  export declare const isFullWidthOrFullPageAppearance: (appearance: RendererAppearance) => boolean;
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import React, { PureComponent } from 'react';
3
6
  import { jsx } from '@emotion/react';
4
7
  import type { NodeComponentsProps } from './types';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import { jsx } from '@emotion/react';
3
6
  import { Component } from 'react';
4
7
  export interface TruncatedWrapperProps {
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import React from 'react';
3
6
  import { jsx } from '@emotion/react';
4
7
  import type { Position } from '../types';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import type React from 'react';
3
6
  import type { OnAnnotationClickPayload } from '@atlaskit/editor-common/types';
4
7
  import type { AnnotationId, AnnotationDataAttributes } from '@atlaskit/adf-schema';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import { jsx } from '@emotion/react';
3
6
  import type { BorderMarkAttributes } from '@atlaskit/adf-schema';
4
7
  import type { MarkProps } from '../types';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import { jsx } from '@emotion/react';
3
6
  import type { BreakoutMarkAttrs } from '@atlaskit/adf-schema';
4
7
  import type { MarkProps } from '../types';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import { jsx } from '@emotion/react';
3
6
  import type { Dispatch, SetStateAction } from 'react';
4
7
  export interface CodeBlockButtonContainerProps {
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import { jsx } from '@emotion/react';
3
6
  import type { ReactNode } from 'react';
4
7
  import type { CodeBlockButtonContainerProps } from './codeBlockButtonContainer';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import React from 'react';
3
6
  import type { Props as CodeBlockProps } from '../codeBlock';
4
7
  export declare const LightWeightCodeBlockCssClassName: {
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import { jsx } from '@emotion/react';
3
6
  import type { SmartLinksOptions } from '../../types/smartLinksOptions';
4
7
  import type { EventHandlers } from '@atlaskit/editor-common/ui';
@@ -1,5 +1,8 @@
1
1
  /// <reference types="react" />
2
- /** @jsx jsx */
2
+ /**
3
+ * @jsxRuntime classic
4
+ * @jsx jsx
5
+ */
3
6
  import { jsx } from '@emotion/react';
4
7
  import { type EmojiAttributes } from '@atlaskit/adf-schema';
5
8
  import { type EmojiResourceConfig } from '@atlaskit/emoji/resource';
@@ -1,5 +1,8 @@
1
1
  /// <reference types="react" />
2
- /** @jsx jsx */
2
+ /**
3
+ * @jsxRuntime classic
4
+ * @jsx jsx
5
+ */
3
6
  import { jsx } from '@emotion/react';
4
7
  import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
5
8
  import type { RendererContext } from '../types';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import React from 'react';
3
6
  import { jsx } from '@emotion/react';
4
7
  export default function LayoutSection(props: React.PropsWithChildren<{
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import type { PropsWithChildren } from 'react';
3
6
  import React from 'react';
4
7
  import { jsx } from '@emotion/react';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import { jsx } from '@emotion/react';
3
6
  import React from 'react';
4
7
  import type { Mark as PMMark, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import React from 'react';
3
6
  import { jsx } from '@emotion/react';
4
7
  import { PanelType } from '@atlaskit/adf-schema';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import React from 'react';
3
6
  import { jsx } from '@emotion/react';
4
7
  import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
@@ -1,4 +1,5 @@
1
1
  import { type RendererAppearance } from '../../ui/Renderer/types';
2
2
  export declare const isFullWidthAppearance: (appearance: RendererAppearance) => boolean;
3
3
  export declare const isFullPageAppearance: (appearance: RendererAppearance) => boolean;
4
+ export declare const isCommentAppearance: (appearance: RendererAppearance) => boolean;
4
5
  export declare const isFullWidthOrFullPageAppearance: (appearance: RendererAppearance) => boolean;
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import React, { PureComponent } from 'react';
3
6
  import { jsx } from '@emotion/react';
4
7
  import type { NodeComponentsProps } from './types';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import { jsx } from '@emotion/react';
3
6
  import { Component } from 'react';
4
7
  export interface TruncatedWrapperProps {
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import React from 'react';
3
6
  import { jsx } from '@emotion/react';
4
7
  import type { Position } from '../types';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import type React from 'react';
3
6
  import type { OnAnnotationClickPayload } from '@atlaskit/editor-common/types';
4
7
  import type { AnnotationId, AnnotationDataAttributes } from '@atlaskit/adf-schema';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "109.42.6",
3
+ "version": "109.43.0",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -24,22 +24,22 @@
24
24
  "runReact18": true
25
25
  },
26
26
  "dependencies": {
27
- "@atlaskit/adf-schema": "^39.0.3",
28
- "@atlaskit/adf-utils": "^19.4.0",
27
+ "@atlaskit/adf-schema": "^40.3.0",
28
+ "@atlaskit/adf-utils": "^19.5.0",
29
29
  "@atlaskit/analytics-listeners": "^8.10.0",
30
30
  "@atlaskit/analytics-namespaced-context": "^6.10.0",
31
31
  "@atlaskit/analytics-next": "^9.3.0",
32
- "@atlaskit/button": "^19.0.0",
32
+ "@atlaskit/button": "^19.1.0",
33
33
  "@atlaskit/code": "^15.4.0",
34
- "@atlaskit/editor-common": "^86.3.0",
35
- "@atlaskit/editor-json-transformer": "^8.15.0",
34
+ "@atlaskit/editor-common": "^86.7.0",
35
+ "@atlaskit/editor-json-transformer": "^8.16.0",
36
36
  "@atlaskit/editor-palette": "1.6.0",
37
37
  "@atlaskit/editor-prosemirror": "4.0.1",
38
38
  "@atlaskit/editor-shared-styles": "^2.13.0",
39
39
  "@atlaskit/emoji": "^67.6.0",
40
40
  "@atlaskit/feature-gate-js-client": "^4.18.0",
41
- "@atlaskit/icon": "^22.6.0",
42
- "@atlaskit/link-datasource": "^2.5.0",
41
+ "@atlaskit/icon": "^22.7.0",
42
+ "@atlaskit/link-datasource": "^2.6.0",
43
43
  "@atlaskit/media-card": "^78.0.0",
44
44
  "@atlaskit/media-client": "^27.3.0",
45
45
  "@atlaskit/media-client-react": "^2.0.0",
@@ -48,7 +48,7 @@
48
48
  "@atlaskit/media-ui": "^25.10.0",
49
49
  "@atlaskit/media-viewer": "^48.6.0",
50
50
  "@atlaskit/platform-feature-flags": "^0.3.0",
51
- "@atlaskit/smart-card": "^27.9.0",
51
+ "@atlaskit/smart-card": "^27.10.0",
52
52
  "@atlaskit/status": "^1.4.0",
53
53
  "@atlaskit/task-decision": "^17.10.0",
54
54
  "@atlaskit/theme": "^12.11.0",
@@ -63,7 +63,7 @@
63
63
  "uuid": "^3.1.0"
64
64
  },
65
65
  "peerDependencies": {
66
- "@atlaskit/link-provider": "^1.12.0",
66
+ "@atlaskit/link-provider": "^1.13.0",
67
67
  "@atlaskit/media-core": "^34.2.0",
68
68
  "react": "^16.8.0",
69
69
  "react-dom": "^16.8.0"
@@ -73,8 +73,8 @@
73
73
  "@af/visual-regression": "*",
74
74
  "@atlaskit/analytics-gas-types": "^5.1.0",
75
75
  "@atlaskit/css-reset": "^6.9.0",
76
- "@atlaskit/editor-test-helpers": "^18.26.0",
77
- "@atlaskit/link-provider": "^1.12.0",
76
+ "@atlaskit/editor-test-helpers": "^18.27.0",
77
+ "@atlaskit/link-provider": "^1.13.0",
78
78
  "@atlaskit/link-test-helpers": "^7.0.0",
79
79
  "@atlaskit/linking-common": "^5.7.0",
80
80
  "@atlaskit/media-core": "^34.2.0",
@@ -131,6 +131,9 @@
131
131
  "platform_editor_tables_padding_increase": {
132
132
  "type": "boolean"
133
133
  },
134
+ "platform_editor_table_support_in_comment": {
135
+ "type": "boolean"
136
+ },
134
137
  "editor_inline_comments_on_inline_nodes": {
135
138
  "type": "boolean"
136
139
  },