@atlaskit/renderer 109.7.0 → 109.7.2

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 (96) hide show
  1. package/.eslintrc.js +8 -0
  2. package/CHANGELOG.md +12 -0
  3. package/dist/cjs/react/nodes/blockCard.js +1 -0
  4. package/dist/cjs/react/nodes/codeBlock/components/codeBlockButtonContainer.js +5 -5
  5. package/dist/cjs/react/nodes/codeBlock/components/codeBlockCopyButton.js +1 -4
  6. package/dist/cjs/react/nodes/codeBlock/components/codeBlockWrapButton.js +0 -1
  7. package/dist/cjs/react/nodes/embedCard.js +1 -0
  8. package/dist/cjs/react/nodes/table/sticky.js +32 -6
  9. package/dist/cjs/react/nodes/table.js +2 -1
  10. package/dist/cjs/ui/Renderer/index.js +1 -1
  11. package/dist/cjs/ui/Renderer/style.js +6 -1
  12. package/dist/es2019/react/nodes/blockCard.js +1 -0
  13. package/dist/es2019/react/nodes/codeBlock/components/codeBlockButtonContainer.js +5 -5
  14. package/dist/es2019/react/nodes/codeBlock/components/codeBlockCopyButton.js +1 -1
  15. package/dist/es2019/react/nodes/codeBlock/components/codeBlockWrapButton.js +0 -1
  16. package/dist/es2019/react/nodes/embedCard.js +1 -0
  17. package/dist/es2019/react/nodes/table/sticky.js +34 -44
  18. package/dist/es2019/react/nodes/table.js +2 -1
  19. package/dist/es2019/ui/Renderer/index.js +1 -1
  20. package/dist/es2019/ui/Renderer/style.js +7 -1
  21. package/dist/esm/react/nodes/blockCard.js +1 -0
  22. package/dist/esm/react/nodes/codeBlock/components/codeBlockButtonContainer.js +5 -5
  23. package/dist/esm/react/nodes/codeBlock/components/codeBlockCopyButton.js +1 -1
  24. package/dist/esm/react/nodes/codeBlock/components/codeBlockWrapButton.js +0 -1
  25. package/dist/esm/react/nodes/embedCard.js +1 -0
  26. package/dist/esm/react/nodes/table/sticky.js +31 -6
  27. package/dist/esm/react/nodes/table.js +2 -1
  28. package/dist/esm/ui/Renderer/index.js +1 -1
  29. package/dist/esm/ui/Renderer/style.js +6 -1
  30. package/dist/types/react/marks/index.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 +3 -3
  34. package/dist/types/react/nodes/codeBlock/components/codeBlockCopyButton.d.ts +3 -3
  35. package/dist/types/react/nodes/codeBlock/components/codeBlockWrapButton.d.ts +2 -3
  36. package/dist/types/react/nodes/extensionFrame.d.ts +2 -1
  37. package/dist/types/react/nodes/fallback.d.ts +1 -1
  38. package/dist/types/react/nodes/hardBreak.d.ts +2 -2
  39. package/dist/types/react/nodes/heading-anchor.d.ts +2 -9
  40. package/dist/types/react/nodes/index.d.ts +2 -2
  41. package/dist/types/react/nodes/inlineExtension.d.ts +2 -2
  42. package/dist/types/react/nodes/layoutColumn.d.ts +2 -2
  43. package/dist/types/react/nodes/layoutSection.d.ts +1 -1
  44. package/dist/types/react/nodes/listItem.d.ts +1 -1
  45. package/dist/types/react/nodes/mediaInline.d.ts +2 -3
  46. package/dist/types/react/nodes/multiBodiedExtension.d.ts +2 -1
  47. package/dist/types/react/nodes/table/sticky.d.ts +1 -1
  48. package/dist/types/react/nodes/unknownBlock.d.ts +1 -1
  49. package/dist/types/react/utils/EditorMediaClientProvider.d.ts +4 -4
  50. package/dist/types/ui/Renderer/ErrorBoundary.d.ts +1 -0
  51. package/dist/types/ui/Renderer/truncated-wrapper.d.ts +2 -1
  52. package/dist/types/ui/Renderer/types.d.ts +1 -1
  53. package/dist/types/ui/SmartCardStorage.d.ts +2 -2
  54. package/dist/types/ui/annotations/context.d.ts +4 -4
  55. package/dist/types/ui/annotations/draft/component.d.ts +4 -3
  56. package/dist/types/ui/annotations/element/index.d.ts +1 -1
  57. package/dist/types/ui/annotations/element/mark.d.ts +2 -1
  58. package/dist/types/ui/annotations/index.d.ts +1 -1
  59. package/dist/types/ui/annotations/selection/mounter.d.ts +2 -2
  60. package/dist/types/ui/annotations/selection/range-validator.d.ts +2 -2
  61. package/dist/types/ui/annotations/selection/wrapper.d.ts +1 -1
  62. package/dist/types/ui/annotations/view/index.d.ts +2 -2
  63. package/dist/types-ts4.5/react/marks/index.d.ts +2 -2
  64. package/dist/types-ts4.5/react/nodes/blockquote.d.ts +1 -1
  65. package/dist/types-ts4.5/react/nodes/bodiedExtension.d.ts +1 -1
  66. package/dist/types-ts4.5/react/nodes/bulletList.d.ts +3 -3
  67. package/dist/types-ts4.5/react/nodes/codeBlock/components/codeBlockCopyButton.d.ts +3 -3
  68. package/dist/types-ts4.5/react/nodes/codeBlock/components/codeBlockWrapButton.d.ts +2 -3
  69. package/dist/types-ts4.5/react/nodes/extensionFrame.d.ts +2 -1
  70. package/dist/types-ts4.5/react/nodes/fallback.d.ts +1 -1
  71. package/dist/types-ts4.5/react/nodes/hardBreak.d.ts +2 -2
  72. package/dist/types-ts4.5/react/nodes/heading-anchor.d.ts +2 -9
  73. package/dist/types-ts4.5/react/nodes/index.d.ts +2 -2
  74. package/dist/types-ts4.5/react/nodes/inlineExtension.d.ts +2 -2
  75. package/dist/types-ts4.5/react/nodes/layoutColumn.d.ts +2 -2
  76. package/dist/types-ts4.5/react/nodes/layoutSection.d.ts +1 -1
  77. package/dist/types-ts4.5/react/nodes/listItem.d.ts +1 -1
  78. package/dist/types-ts4.5/react/nodes/mediaInline.d.ts +2 -3
  79. package/dist/types-ts4.5/react/nodes/multiBodiedExtension.d.ts +2 -1
  80. package/dist/types-ts4.5/react/nodes/table/sticky.d.ts +1 -1
  81. package/dist/types-ts4.5/react/nodes/unknownBlock.d.ts +1 -1
  82. package/dist/types-ts4.5/react/utils/EditorMediaClientProvider.d.ts +4 -4
  83. package/dist/types-ts4.5/ui/Renderer/ErrorBoundary.d.ts +1 -0
  84. package/dist/types-ts4.5/ui/Renderer/truncated-wrapper.d.ts +2 -1
  85. package/dist/types-ts4.5/ui/Renderer/types.d.ts +1 -1
  86. package/dist/types-ts4.5/ui/SmartCardStorage.d.ts +2 -2
  87. package/dist/types-ts4.5/ui/annotations/context.d.ts +4 -4
  88. package/dist/types-ts4.5/ui/annotations/draft/component.d.ts +4 -3
  89. package/dist/types-ts4.5/ui/annotations/element/index.d.ts +1 -1
  90. package/dist/types-ts4.5/ui/annotations/element/mark.d.ts +2 -1
  91. package/dist/types-ts4.5/ui/annotations/index.d.ts +1 -1
  92. package/dist/types-ts4.5/ui/annotations/selection/mounter.d.ts +2 -2
  93. package/dist/types-ts4.5/ui/annotations/selection/range-validator.d.ts +2 -2
  94. package/dist/types-ts4.5/ui/annotations/selection/wrapper.d.ts +1 -1
  95. package/dist/types-ts4.5/ui/annotations/view/index.d.ts +2 -2
  96. package/package.json +8 -7
@@ -351,7 +351,8 @@ export var TableContainer = /*#__PURE__*/function (_React$Component) {
351
351
  ref: this.props.handleRef,
352
352
  style: {
353
353
  width: tableWidth,
354
- left: left // eslint-disable-line @atlaskit/design-system/ensure-design-token-usage
354
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/ensure-design-token-usage/preview
355
+ left: left
355
356
  }
356
357
  }, getBooleanFF('platform.editor.custom-table-width') && stickyHeaders && tableCanBeSticky(tableNode, children) && /*#__PURE__*/React.createElement(StickyTable, {
357
358
  isNumberColumnEnabled: isNumberColumnEnabled,
@@ -46,7 +46,7 @@ import { EditorMediaClientProvider } from '../../react/utils/EditorMediaClientPr
46
46
  export var NORMAL_SEVERITY_THRESHOLD = 2000;
47
47
  export var DEGRADED_SEVERITY_THRESHOLD = 3000;
48
48
  var packageName = "@atlaskit/renderer";
49
- var packageVersion = "109.7.0";
49
+ var packageVersion = "109.7.2";
50
50
  export var Renderer = /*#__PURE__*/function (_PureComponent) {
51
51
  _inherits(Renderer, _PureComponent);
52
52
  var _super = _createSuper(Renderer);
@@ -25,6 +25,8 @@ export var TELEPOINTER_ID = 'ai-streaming-telepointer';
25
25
  var telepointerStyles = function telepointerStyles() {
26
26
  var _getGlobalTheme = getGlobalTheme(),
27
27
  colorMode = _getGlobalTheme.colorMode;
28
+
29
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
28
30
  return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n #", " {\n display: inline-block;\n position: relative;\n width: 1.5px;\n height: 25px;\n background: linear-gradient(\n 45deg,\n ", " -12.02%,\n ", " 19.18%,\n ", " 71.87%\n );\n margin-left: ", ";\n\n &::after {\n content: 'AI';\n position: absolute;\n display: block;\n top: 0;\n left: 0;\n font-size: 10px;\n font-weight: 700;\n width: 12.5px;\n height: 13px;\n padding-top: 1px;\n padding-left: 1.5px;\n line-height: initial;\n border-radius: 0px 2px 2px 0px;\n color: ", ";\n background: linear-gradient(\n 45deg,\n ", " -57%,\n ", " 71.87%\n );\n }\n }\n "])), TELEPOINTER_ID, colorMode === 'dark' ? '#f5cd47' : '#f8e6a0', colorMode === 'dark' ? '#60c6d2' : '#8bdbe5', colorMode === 'dark' ? '#388bff' : '#0c66e4', "var(--ds-space-025, 2px)", "var(--ds-text-inverse, white)", colorMode === 'dark' ? '#60c6d2' : '#8bdbe5', colorMode === 'dark' ? '#388bff' : '#0c66e4');
29
31
  };
30
32
  var getLineHeight = function getLineHeight(fontCode) {
@@ -94,7 +96,8 @@ var breakoutWidthStyle = function breakoutWidthStyle() {
94
96
  return css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n *:not([data-mark-type='fragment'])\n .", " {\n // TODO - improve inline style logic on table container so important styles aren't required here\n width: 100% !important;\n left: 0 !important;\n }\n\n [data-mark-type='fragment'] * .", " {\n // TODO - improve inline style logic on table container so important styles aren't required here\n width: 100% !important;\n left: 0 !important;\n }\n "])), TableSharedCssClassName.TABLE_CONTAINER, TableSharedCssClassName.TABLE_CONTAINER);
95
97
  };
96
98
  var getShadowOverrides = function getShadowOverrides() {
97
- return getBooleanFF('platform.editor.table.increase-shadow-visibility_lh89r') ? css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n /** Shadow overrides */\n &.", "::after,\n &.", "::before {\n width: ", "px;\n background: linear-gradient(\n to left,\n transparent 0,\n ", " 140%\n ),\n linear-gradient(\n to right,\n ", " 0px,\n transparent 1px\n );\n }\n\n &.", "::after {\n background: linear-gradient(\n to right,\n transparent 0,\n ", " 140%\n ),\n linear-gradient(\n to left,\n ", " 0px,\n transparent 1px\n );\n left: calc(100% - ", "px);\n }\n "])), shadowClassNames.RIGHT_SHADOW, shadowClassNames.LEFT_SHADOW, tableShadowWidth, "var(--ds-shadow-overflow-spread, ".concat(N40A, ")"), "var(--ds-shadow-overflow-perimeter, transparent)", shadowClassNames.RIGHT_SHADOW, "var(--ds-shadow-overflow-spread, ".concat(N40A, ")"), "var(--ds-shadow-overflow-perimeter, transparent)", tableShadowWidth) : '';
99
+ return getBooleanFF('platform.editor.table.increase-shadow-visibility_lh89r') ? // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
100
+ css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n /** Shadow overrides */\n &.", "::after,\n &.", "::before {\n width: ", "px;\n background: linear-gradient(\n to left,\n transparent 0,\n ", " 140%\n ),\n linear-gradient(\n to right,\n ", " 0px,\n transparent 1px\n );\n }\n\n &.", "::after {\n background: linear-gradient(\n to right,\n transparent 0,\n ", " 140%\n ),\n linear-gradient(\n to left,\n ", " 0px,\n transparent 1px\n );\n left: calc(100% - ", "px);\n }\n "])), shadowClassNames.RIGHT_SHADOW, shadowClassNames.LEFT_SHADOW, tableShadowWidth, "var(--ds-shadow-overflow-spread, ".concat(N40A, ")"), "var(--ds-shadow-overflow-perimeter, transparent)", shadowClassNames.RIGHT_SHADOW, "var(--ds-shadow-overflow-spread, ".concat(N40A, ")"), "var(--ds-shadow-overflow-perimeter, transparent)", tableShadowWidth) : '';
98
101
  };
99
102
  export var rendererStyles = function rendererStyles(wrapperProps) {
100
103
  return function (theme) {
@@ -103,6 +106,8 @@ export var rendererStyles = function rendererStyles(wrapperProps) {
103
106
  theme: theme
104
107
  };
105
108
  var useBlockRenderForCodeBlock = wrapperProps.useBlockRenderForCodeBlock;
109
+
110
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
106
111
  return css(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n font-size: ", "px;\n line-height: 1.5rem;\n color: ", ";\n\n .", "::after {\n // we add a clearfix after ak-renderer-document in order to\n // contain internal floats (such as media images that are \"wrap-left\")\n // to just the renderer (and not spill outside of it)\n content: '';\n visibility: hidden;\n display: block;\n height: 0;\n clear: both;\n }\n\n ", "\n ", "\n\n .", " {\n ", "\n }\n\n & h1 {\n ", "\n }\n\n & h2 {\n ", "\n }\n\n & h3 {\n ", "\n }\n\n & h4 {\n ", "\n }\n\n & h5 {\n ", "\n }\n\n & h6 {\n ", "\n }\n\n & span.akActionMark {\n color: ", ";\n text-decoration: none;\n\n &:hover {\n color: ", ";\n text-decoration: underline;\n }\n\n &:active {\n color: ", ";\n }\n }\n\n & span.akActionMark {\n cursor: pointer;\n }\n\n & span[data-placeholder] {\n color: ", ";\n }\n\n ", "\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", "\n\n & .UnknownBlock {\n font-family: ", ";\n font-size: ", ";\n font-weight: 400;\n white-space: pre-wrap;\n word-wrap: break-word;\n }\n\n & span.date-node {\n background: ", ";\n border-radius: ", ";\n color: ", ";\n padding: ", " ", ";\n margin: 0 1px;\n transition: background 0.3s;\n }\n\n & span.date-node-highlighted {\n background: ", ";\n color: ", ";\n }\n\n & .renderer-image {\n max-width: 100%;\n display: block;\n margin: ", " 0;\n }\n\n .", ".rich-media-wrapped\n + .", ":not(.rich-media-wrapped) {\n clear: both;\n }\n\n & .code-block,\n & blockquote,\n & hr,\n & > div > div:not(.rich-media-wrapped),\n .", ".rich-media-wrapped\n + .rich-media-wrapped\n + *:not(.rich-media-wrapped),\n .", ".rich-media-wrapped + div:not(.rich-media-wrapped),\n .", ".image-align-start,\n .", ".image-center,\n .", ".image-align-end {\n clear: both;\n }\n\n & .rich-media-wrapped {\n & + h1,\n & + h2,\n & + h3,\n & + h4,\n & + h5,\n & + h6 {\n margin-top: ", ";\n }\n }\n\n ", "\n /* plugin styles */\n ", " &\n div[class^='image-wrap-'] + div[class^='image-wrap-'] {\n margin-left: 0;\n margin-right: 0;\n }\n\n /* Breakout for tables and extensions */\n .", " > {\n ", "\n\n * .", " {\n overflow-x: auto;\n }\n\n & .", ":first-child {\n margin-top: 0;\n }\n }\n\n .", " {\n .", " {\n margin-top: ", ";\n }\n\n .", " {\n margin-left: 50%;\n transform: translateX(-50%);\n }\n\n .", " {\n overflow-x: auto;\n }\n\n .", "\n .", " {\n display: flex;\n }\n }\n\n ", "\n\n .", " .", " {\n z-index: 0;\n transition: all 0.1s linear;\n display: flex; /* needed to avoid position: fixed jumpiness in Chrome */\n\n /** Shadow overrides */\n &.", "::after,\n &.", "::before {\n top: ", "px;\n height: calc(100% - ", "px);\n z-index: ", ";\n }\n\n ", "\n\n &\n .", ",\n &\n .", " {\n height: calc(100% - ", "px);\n }\n\n /**\n * A hack for making all the <th /> heights equal in case some have shorter\n * content than others.\n *\n * This is done to make sort buttons fill entire <th />.\n */\n table {\n height: 1px; /* will be ignored */\n ", ";\n margin-left: 0;\n margin-right: 0;\n }\n\n table tr:first-of-type {\n height: 100%;\n\n td,\n th {\n position: relative;\n }\n }\n\n table[data-number-column='true'] {\n .", " {\n background-color: ", ";\n border-right: 1px solid\n ", ";\n width: ", "px;\n text-align: center;\n color: ", ";\n font-size: ", ";\n }\n\n .fixed .", " {\n border-right: 0px none;\n }\n }\n }\n\n tr[data-header-row].fixed {\n position: fixed !important;\n display: flex;\n overflow: hidden;\n z-index: ", ";\n\n border-right: 1px solid\n ", ";\n border-bottom: 1px solid\n ", ";\n\n /* this is to compensate for the table border */\n transform: translateX(-1px);\n }\n\n .sticky > th {\n z-index: ", ";\n position: sticky !important;\n top: 0;\n }\n\n /* Make the number column header sticky */\n .sticky > td {\n position: sticky !important;\n top: 0;\n }\n\n /* add border for position: sticky\n and work around background-clip: padding-box\n bug for FF causing box-shadow bug in Chrome */\n .sticky th,\n .sticky td {\n box-shadow: 0px 1px\n ", ",\n 0px -0.5px ", ",\n inset -1px 0px ", ",\n 0px -1px ", ";\n }\n\n /* this will remove jumpiness caused in Chrome for sticky headers */\n .fixed + tr {\n min-height: 0px;\n }\n\n /*\n * We wrap CodeBlock in a grid to prevent it from overflowing the container of the renderer.\n * See ED-4159.\n */\n & .code-block {\n max-width: 100%;\n /* -ms- properties are necessary until MS supports the latest version of the grid spec */\n /* stylelint-disable value-no-vendor-prefix, declaration-block-no-duplicate-properties */\n display: block;\n /* stylelint-enable */\n\n position: relative;\n border-radius: ", ";\n\n /*\n * The overall renderer has word-wrap: break; which causes issues with\n * code block line numbers in Safari / iOS.\n */\n word-wrap: normal;\n }\n\n & .MediaGroup,\n & .code-block {\n margin-top: ", ";\n\n &:first-child {\n margin-top: 0;\n }\n }\n\n ", "\n\n ", "\n\n ", ";\n & [data-layout-section] {\n margin-top: ", ";\n & > div + div {\n margin-left: ", ";\n }\n\n @media screen and (max-width: ", "px) {\n & > div + div {\n margin-left: 0;\n }\n }\n\n & .MediaGroup,\n & .code-block {\n margin-top: ", ";\n\n &:first-child {\n margin-top: 0;\n }\n }\n }\n\n & li {\n > .code-block {\n margin: ", " 0 0 0;\n }\n > .code-block:first-child {\n margin-top: 0;\n }\n\n > div:last-of-type.code-block {\n margin-bottom: ", ";\n }\n }\n\n &:not([data-node-type='decisionList']) > li,\n // This prevents https://product-fabric.atlassian.net/browse/ED-20924\n &:not(.", ") > li {\n ", "\n }\n "])), editorFontSize(themeProps), "var(--ds-text, ".concat(colors.N800, ")"), RendererCssClassName.DOCUMENT, fullPageStyles(wrapperProps, themeProps), fullWidthStyles(wrapperProps), RendererCssClassName.DOCUMENT, mediaInlineImageStyles, headingAnchorStyle('h1'), headingAnchorStyle('h2'), headingAnchorStyle('h3'), headingAnchorStyle('h4'), headingAnchorStyle('h5'), headingAnchorStyle('h6'), "var(--ds-link, ".concat(colors.B400, ")"), "var(--ds-link, ".concat(colors.B300, ")"), "var(--ds-link-pressed, ".concat(colors.B500, ")"), "var(--ds-text-subtlest, ".concat(colors.N200, ")"), telepointerStyles(), whitespaceSharedStyles, blockquoteSharedStyles, headingsSharedStyles(), ruleSharedStyles(), paragraphSharedStyles, listsSharedStyles, indentationSharedStyles, blockMarksSharedStyles, codeMarkSharedStyles(), shadowSharedStyle, dateSharedStyle, textColorStyles, tasksAndDecisionsStyles, smartCardSharedStyles, fontFamily(), relativeFontSizeToBase16(fontSize()), "var(--ds-background-neutral, ".concat(colors.N30A, ")"), "var(--ds-border-radius-100, 3px)", "var(--ds-text, ".concat(colors.N800, ")"), "var(--ds-space-025, 2px)", "var(--ds-space-050, 4px)", "var(--ds-background-danger, ".concat(colors.R50, ")"), "var(--ds-text-danger, ".concat(colors.R500, ")"), "var(--ds-space-300, 24px)", richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, "var(--ds-space-100, 8px)", alignedHeadingAnchorStyle(wrapperProps), mediaSingleSharedStyle, RendererCssClassName.DOCUMENT, breakoutWidthStyle(), RendererCssClassName.EXTENSION_OVERFLOW_CONTAINER, RendererCssClassName.EXTENSION, RendererCssClassName.DOCUMENT, RendererCssClassName.EXTENSION, blockNodesVerticalMargin, RendererCssClassName.EXTENSION_CENTER_ALIGN, TableSharedCssClassName.TABLE_NODE_WRAPPER, shadowObserverClassNames.SHADOW_CONTAINER, TableSharedCssClassName.TABLE_NODE_WRAPPER, tableSharedStyle(), RendererCssClassName.DOCUMENT, TableSharedCssClassName.TABLE_CONTAINER, shadowClassNames.RIGHT_SHADOW, shadowClassNames.LEFT_SHADOW, tableMarginTop - 1, tableMarginTop, akEditorStickyHeaderZIndex, getShadowOverrides(), shadowObserverClassNames.SENTINEL_LEFT, shadowObserverClassNames.SENTINEL_RIGHT, tableMarginTop, tableSortableColumnStyle(wrapperProps), RendererCssClassName.NUMBER_COLUMN, "var(--ds-background-neutral, ".concat(akEditorTableToolbar, ")"), "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorder, ")"), akEditorTableNumberColumnWidth, "var(--ds-text-subtlest, ".concat(colors.N200, ")"), relativeFontSizeToBase16(fontSize()), RendererCssClassName.NUMBER_COLUMN, akEditorStickyHeaderZIndex, "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorder, ")"), "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorder, ")"), akEditorStickyHeaderZIndex, "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorder, ")"), "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorder, ")"), "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableToolbar, ")"), "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableToolbar, ")"), "var(--ds-border-radius-100, 3px)", blockNodesVerticalMargin, useGridRenderForCodeBlock(useBlockRenderForCodeBlock), getLightWeightCodeBlockStylesForRootRendererStyleSheet(), columnLayoutSharedStyle, "var(--ds-space-250, 20px)", "var(--ds-space-400, 32px)", gridMediumMaxWidth, blockNodesVerticalMargin, blockNodesVerticalMargin, blockNodesVerticalMargin, SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, browser.safari ? codeBlockInListSafariFix : '');
107
112
  };
108
113
  };
@@ -16,7 +16,7 @@ import FragmentMark from './fragment';
16
16
  import Annotation, { isAnnotationMark } from './annotation';
17
17
  import Border from './border';
18
18
  export declare const markToReact: {
19
- [key: string]: ComponentType<any>;
19
+ [key: string]: ComponentType<React.PropsWithChildren<any>>;
20
20
  };
21
- export declare const toReact: (mark: Mark) => ComponentType<any>;
21
+ export declare const toReact: (mark: Mark) => ComponentType<React.PropsWithChildren<any>>;
22
22
  export { Code, Em, Link, Strike, Strong, Subsup, TextColor, Underline, Breakout, Annotation, Border, UnsupportedMark, isAnnotationMark, UnsupportedNodeAttribute, DataConsumer, FragmentMark, };
@@ -1,2 +1,2 @@
1
1
  import React from 'react';
2
- export default function Blockquote(props: React.Props<any>): JSX.Element;
2
+ export default function Blockquote(props: React.PropsWithChildren<unknown>): JSX.Element;
@@ -20,5 +20,5 @@ export interface Props {
20
20
  localId?: string;
21
21
  marks?: PMMark[];
22
22
  }
23
- declare const BodiedExtension: React.FunctionComponent<Props>;
23
+ declare const BodiedExtension: React.FunctionComponent<React.PropsWithChildren<Props>>;
24
24
  export default BodiedExtension;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { Node } from '@atlaskit/editor-prosemirror/model';
3
- export default function BulletList(props: {
2
+ import type { Node } from '@atlaskit/editor-prosemirror/model';
3
+ export default function BulletList(props: React.PropsWithChildren<{
4
4
  path?: Node[];
5
- } & React.Props<any>): JSX.Element;
5
+ }>): JSX.Element;
@@ -1,9 +1,9 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { WrappedComponentProps } from 'react-intl-next';
3
3
  type Props = {
4
4
  content: string;
5
5
  };
6
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
7
- WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
6
+ declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
7
+ WrappedComponent: import("react").ComponentType<Props & WrappedComponentProps<"intl">>;
8
8
  };
9
9
  export default _default;
@@ -1,11 +1,10 @@
1
- import React from 'react';
2
1
  import type { Dispatch, SetStateAction } from 'react';
3
2
  import { WrappedComponentProps } from 'react-intl-next';
4
3
  type Props = {
5
4
  setWrapLongLines: Dispatch<SetStateAction<boolean>>;
6
5
  wrapLongLines?: boolean;
7
6
  };
8
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
9
- WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
7
+ declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
8
+ WrappedComponent: import("react").ComponentType<Props & WrappedComponentProps<"intl">>;
10
9
  };
11
10
  export default _default;
@@ -1,4 +1,5 @@
1
1
  /** @jsx jsx */
2
+ import { jsx } from '@emotion/react';
2
3
  import React from 'react';
3
4
  import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
4
5
  import type { RendererContext } from '../types';
@@ -20,5 +21,5 @@ export interface Props {
20
21
  layout?: ExtensionLayout;
21
22
  localId?: string;
22
23
  }
23
- declare const ExtensionFrame: React.FunctionComponent<Props>;
24
+ declare const ExtensionFrame: (props: React.PropsWithChildren<Props>) => jsx.JSX.Element;
24
25
  export default ExtensionFrame;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  export type CardErrorBoundaryProps = {
3
- unsupportedComponent: React.ComponentType;
3
+ unsupportedComponent: React.ComponentType<React.PropsWithChildren<unknown>>;
4
4
  };
5
5
  export declare class CardErrorBoundary extends React.PureComponent<{
6
6
  url?: string;
@@ -1,6 +1,6 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  interface Props {
3
3
  forceNewLine?: boolean;
4
4
  }
5
- declare const HardBreak: React.FunctionComponent<Props>;
5
+ declare const HardBreak: ({ forceNewLine }: Props) => JSX.Element;
6
6
  export default HardBreak;
@@ -1,13 +1,6 @@
1
1
  import React from 'react';
2
- import type { WrappedComponentProps } from 'react-intl-next';
3
2
  export declare const HeadingAnchorWrapperClassName = "heading-anchor-wrapper";
4
- type Props = {
5
- onCopyText: () => Promise<void>;
6
- enableNestedHeaderLinks?: boolean;
7
- level: number;
8
- };
9
- type HeadingAnchorProps = Props & React.Props<any> & WrappedComponentProps;
10
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<HeadingAnchorProps>> & {
11
- WrappedComponent: React.ComponentType<HeadingAnchorProps>;
3
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<any>> & {
4
+ WrappedComponent: React.ComponentType<any>;
12
5
  };
13
6
  export default _default;
@@ -71,13 +71,13 @@ declare const MediaSingle: React.ComponentType<import("react-intl-next").WithInt
71
71
  declare const Mention: React.ComponentType<import("./mention").Props> & Loadable.LoadableComponent;
72
72
  declare const Expand: React.ComponentType<import("react-intl-next").WithIntlProps<import("../../ui/Expand").ExpandProps & import("react-intl-next").WrappedComponentProps<"intl">>> & Loadable.LoadableComponent;
73
73
  export declare const nodeToReact: {
74
- [key: string]: React.ComponentType<any>;
74
+ [key: string]: React.ComponentType<React.PropsWithChildren<any>>;
75
75
  };
76
76
  export interface ToReactFlags {
77
77
  allowSelectAllTrap?: boolean;
78
78
  allowWindowedCodeBlock?: boolean;
79
79
  }
80
- export declare const toReact: (node: Node, flags?: ToReactFlags, nodeComponents?: NodeComponentsProps) => React.ComponentType<any>;
80
+ export declare const toReact: (node: Node, flags?: ToReactFlags, nodeComponents?: NodeComponentsProps) => React.ComponentType<React.PropsWithChildren<any>>;
81
81
  export interface TextWrapper {
82
82
  type: {
83
83
  name: 'textWrapper';
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ /// <reference types="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 @@ export interface Props {
14
14
  localId?: string;
15
15
  marks?: PMMark[];
16
16
  }
17
- declare const InlineExtension: React.FunctionComponent<Props>;
17
+ declare const InlineExtension: (props: Props) => JSX.Element;
18
18
  export default InlineExtension;
@@ -1,6 +1,6 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
3
  import { jsx } from '@emotion/react';
4
- export default function LayoutSection(props: {
4
+ export default function LayoutSection(props: React.PropsWithChildren<{
5
5
  width?: number;
6
- } & React.Props<any>): jsx.JSX.Element;
6
+ }>): jsx.JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import React from 'react';
2
- export default function LayoutSection(props: React.Props<any>): JSX.Element;
2
+ export default function LayoutSection(props: React.PropsWithChildren<unknown>): JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import React from 'react';
2
- export default function ListItem(props: React.Props<any>): JSX.Element;
2
+ export default function ListItem(props: React.PropsWithChildren<unknown>): JSX.Element;
@@ -3,7 +3,6 @@ import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
3
3
  import type { EventHandlers } from '@atlaskit/editor-common/ui';
4
4
  import type { FileIdentifier } from '@atlaskit/media-client';
5
5
  import type { MediaFeatureFlags } from '@atlaskit/media-common';
6
- import type { FC } from 'react';
7
6
  import React from 'react';
8
7
  import type { IntlShape, WrappedComponentProps } from 'react-intl-next';
9
8
  import type { ClipboardAttrs } from '../../ui/MediaCard';
@@ -32,8 +31,8 @@ export type MediaInlineProps = {
32
31
  marks?: Array<Mark>;
33
32
  ssr?: MediaSSR;
34
33
  };
35
- export declare const RenderMediaInline: FC<RenderMediaInlineProps>;
36
- declare const _default: FC<import("react-intl-next").WithIntlProps<MediaInlineProps & WrappedComponentProps<"intl"> & MediaInlineAttrs>> & {
34
+ export declare const RenderMediaInline: ({ rendererAppearance, clipboardAttrs, collection: collectionName, eventHandlers, identifier, }: RenderMediaInlineProps) => JSX.Element;
35
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<MediaInlineProps & WrappedComponentProps<"intl"> & MediaInlineAttrs>> & {
37
36
  WrappedComponent: React.ComponentType<MediaInlineProps & WrappedComponentProps<"intl"> & MediaInlineAttrs>;
38
37
  };
39
38
  export default _default;
@@ -1,4 +1,5 @@
1
1
  /** @jsx jsx */
2
+ import { jsx } from '@emotion/react';
2
3
  import React from 'react';
3
4
  import type { Mark as PMMark, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
4
5
  import type { RendererContext } from '../types';
@@ -21,5 +22,5 @@ export interface Props {
21
22
  localId?: string;
22
23
  marks?: PMMark[];
23
24
  }
24
- declare const MultiBodiedExtension: React.FunctionComponent<Props>;
25
+ declare const MultiBodiedExtension: (props: React.PropsWithChildren<Props>) => jsx.JSX.Element;
25
26
  export default MultiBodiedExtension;
@@ -13,7 +13,7 @@ interface FixedProps {
13
13
  mode: StickyMode;
14
14
  rendererAppearance: RendererAppearance;
15
15
  }
16
- export declare const FixedTableDiv: React.FC<FixedProps>;
16
+ export declare const FixedTableDiv: (props: React.PropsWithChildren<FixedProps>) => jsx.JSX.Element;
17
17
  export type StickyTableProps = {
18
18
  left?: number;
19
19
  top?: number;
@@ -1,2 +1,2 @@
1
1
  import React from 'react';
2
- export default function UnknownBlock(props: React.Props<any>): JSX.Element;
2
+ export default function UnknownBlock(props: React.PropsWithChildren<unknown>): JSX.Element;
@@ -1,5 +1,5 @@
1
- import type { FC } from 'react';
1
+ import React from 'react';
2
2
  import type { MediaSSR } from '../../types/mediaOptions';
3
- export declare const EditorMediaClientProvider: FC<{
4
- ssr?: MediaSSR;
5
- }>;
3
+ export declare const EditorMediaClientProvider: ({ children, ssr, }: React.PropsWithChildren<{
4
+ ssr?: MediaSSR | undefined;
5
+ }>) => JSX.Element;
@@ -3,6 +3,7 @@ import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
3
3
  import type { ComponentCrashErrorAEP } from '../../analytics/events';
4
4
  interface ErrorBoundaryProps {
5
5
  component: ComponentCrashErrorAEP['actionSubject'];
6
+ children: React.ReactNode;
6
7
  componentId?: ComponentCrashErrorAEP['actionSubjectId'];
7
8
  fallbackComponent?: React.ReactNode;
8
9
  createAnalyticsEvent?: CreateUIAnalyticsEvent;
@@ -5,8 +5,9 @@ export interface TruncatedWrapperProps {
5
5
  height?: number;
6
6
  fadeHeight?: number;
7
7
  backgroundColor?: string;
8
+ children?: React.ReactNode;
8
9
  }
9
- export declare class TruncatedWrapper extends Component<TruncatedWrapperProps, {}> {
10
+ export declare class TruncatedWrapper extends Component<TruncatedWrapperProps, unknown> {
10
11
  constructor(props: TruncatedWrapperProps);
11
12
  render(): jsx.JSX.Element;
12
13
  }
@@ -11,6 +11,6 @@ export type HeadingAnchorLinksConfig = {
11
11
  allowNestedHeaderLinks?: boolean;
12
12
  };
13
13
  export type NodeComponentsProps = {
14
- [key: string]: React.ComponentType<any>;
14
+ [key: string]: React.ComponentType<React.PropsWithChildren<any>>;
15
15
  };
16
16
  export type HeadingAnchorLinksProps = boolean | HeadingAnchorLinksConfig;
@@ -4,8 +4,8 @@ export interface WithSmartCardStorageProps {
4
4
  smartCardStorage: Map<string, string>;
5
5
  }
6
6
  export declare const Context: React.Context<Map<string, string>>;
7
- export declare const Provider: React.FunctionComponent;
8
- export declare const withSmartCardStorage: <Props extends WithSmartCardStorageProps>(WrappedComponent: React.ComponentType<Props>) => {
7
+ export declare const Provider: ({ children, }: React.PropsWithChildren<unknown>) => JSX.Element;
8
+ export declare const withSmartCardStorage: <Props extends WithSmartCardStorageProps>(WrappedComponent: React.ComponentType<React.PropsWithChildren<Props>>) => {
9
9
  new (props: Diff<Props, WithSmartCardStorageProps> | Readonly<Diff<Props, WithSmartCardStorageProps>>): {
10
10
  render(): JSX.Element;
11
11
  context: any;
@@ -1,12 +1,12 @@
1
1
  import React from 'react';
2
- import { Position } from './types';
2
+ import type { Position } from './types';
3
3
  import type { AnnotationProviders } from '@atlaskit/editor-common/types';
4
- import { AnnotationMarkStates } from '@atlaskit/adf-schema';
5
- type ChildrenProps = {
4
+ import type { AnnotationMarkStates } from '@atlaskit/adf-schema';
5
+ export type AnnotationsDraftContextWrapperChildrenProps = {
6
6
  applyAnnotationDraftAt: (position: Position) => void;
7
7
  clearAnnotationDraft: () => void;
8
8
  };
9
- export type RenderCallbackType = React.FC<ChildrenProps>;
9
+ export type RenderCallbackType = (props: React.PropsWithChildren<AnnotationsDraftContextWrapperChildrenProps>) => React.ReactNode;
10
10
  type Props = {
11
11
  children: RenderCallbackType;
12
12
  };
@@ -1,11 +1,12 @@
1
1
  /** @jsx jsx */
2
2
  import type { ReactNode } from 'react';
3
3
  import React from 'react';
4
+ import { jsx } from '@emotion/react';
4
5
  import type { Position } from '../types';
5
6
  import { InsertDraftPosition } from '../types';
6
- export declare const AnnotationDraft: React.FC<{
7
+ export declare const AnnotationDraft: ({ draftPosition, children, }: React.PropsWithChildren<{
7
8
  draftPosition: Position;
8
- }>;
9
+ }>) => jsx.JSX.Element;
9
10
  type ApplyAnnotationsProps = {
10
11
  texts: string[];
11
12
  shouldApplyAnnotationAt: InsertDraftPosition.INSIDE | InsertDraftPosition.START | InsertDraftPosition.END;
@@ -18,5 +19,5 @@ type Props = {
18
19
  endPos: number;
19
20
  children: ReactNode;
20
21
  };
21
- export declare const TextWithAnnotationDraft: React.FC<Props>;
22
+ export declare const TextWithAnnotationDraft: ({ startPos, endPos, children, }: Props) => jsx.JSX.Element;
22
23
  export {};
@@ -6,5 +6,5 @@ type MarkElementProps = {
6
6
  dataAttributes: AnnotationDataAttributes;
7
7
  annotationType: AnnotationTypes;
8
8
  };
9
- declare const MarkElement: React.FC<MarkElementProps>;
9
+ declare const MarkElement: ({ annotationParentIds, children, dataAttributes, id, }: React.PropsWithChildren<MarkElementProps>) => JSX.Element;
10
10
  export { MarkElement };
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { jsx } from '@emotion/react';
2
3
  import type { OnAnnotationClickPayload } from '@atlaskit/editor-common/types';
3
4
  import type { AnnotationId, AnnotationDataAttributes } from '@atlaskit/adf-schema';
4
5
  import { AnnotationMarkStates } from '@atlaskit/adf-schema';
@@ -10,5 +11,5 @@ type MarkComponentProps = {
10
11
  hasFocus: boolean;
11
12
  onClick: (props: OnAnnotationClickPayload) => void;
12
13
  };
13
- export declare const MarkComponent: React.FC<MarkComponentProps>;
14
+ export declare const MarkComponent: ({ annotationParentIds, children, dataAttributes, id, state, hasFocus, onClick, }: React.PropsWithChildren<MarkComponentProps>) => jsx.JSX.Element;
14
15
  export {};
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { AnnotationsWrapperProps } from './types';
3
- export declare const AnnotationsWrapper: React.FC<AnnotationsWrapperProps>;
3
+ export declare const AnnotationsWrapper: (props: React.PropsWithChildren<AnnotationsWrapperProps>) => JSX.Element;
4
4
  export { TextWithAnnotationDraft } from './draft';
5
5
  export { MarkElement as AnnotationMark } from './element';
@@ -5,7 +5,7 @@ import { Position } from '../types';
5
5
  import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
6
6
  type Props = {
7
7
  range: Range;
8
- component: React.ComponentType<InlineCommentSelectionComponentProps>;
8
+ component: React.ComponentType<React.PropsWithChildren<InlineCommentSelectionComponentProps>>;
9
9
  wrapperDOM: React.RefObject<HTMLDivElement>;
10
10
  documentPosition: Position | false;
11
11
  isAnnotationAllowed: boolean;
@@ -16,5 +16,5 @@ type Props = {
16
16
  createAnalyticsEvent?: CreateUIAnalyticsEvent;
17
17
  generateIndexMatch?: (pos: Position) => false | AnnotationByMatches;
18
18
  };
19
- export declare const SelectionInlineCommentMounter: React.FC<Props>;
19
+ export declare const SelectionInlineCommentMounter: React.MemoExoticComponent<(props: React.PropsWithChildren<Props>) => JSX.Element>;
20
20
  export {};
@@ -3,11 +3,11 @@ import { Position } from '../types';
3
3
  import type { InlineCommentSelectionComponentProps } from '@atlaskit/editor-common/types';
4
4
  import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
5
5
  type Props = {
6
- selectionComponent: React.ComponentType<InlineCommentSelectionComponentProps>;
6
+ selectionComponent: React.ComponentType<React.PropsWithChildren<InlineCommentSelectionComponentProps>>;
7
7
  rendererRef: React.RefObject<HTMLDivElement>;
8
8
  applyAnnotationDraftAt: (position: Position) => void;
9
9
  clearAnnotationDraft: () => void;
10
10
  createAnalyticsEvent?: CreateUIAnalyticsEvent;
11
11
  };
12
- export declare const SelectionRangeValidator: React.FC<Props>;
12
+ export declare const SelectionRangeValidator: (props: Props) => JSX.Element | null;
13
13
  export {};
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
2
+ import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
3
3
  type Props = {
4
4
  rendererRef: React.RefObject<HTMLDivElement>;
5
5
  createAnalyticsEvent?: CreateUIAnalyticsEvent;
@@ -1,7 +1,7 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
3
3
  type Props = {
4
4
  createAnalyticsEvent?: CreateUIAnalyticsEvent;
5
5
  };
6
- declare const AnnotationView: React.FC<Props>;
6
+ declare const AnnotationView: (props: Props) => JSX.Element | null;
7
7
  export { AnnotationView };
@@ -16,7 +16,7 @@ import FragmentMark from './fragment';
16
16
  import Annotation, { isAnnotationMark } from './annotation';
17
17
  import Border from './border';
18
18
  export declare const markToReact: {
19
- [key: string]: ComponentType<any>;
19
+ [key: string]: ComponentType<React.PropsWithChildren<any>>;
20
20
  };
21
- export declare const toReact: (mark: Mark) => ComponentType<any>;
21
+ export declare const toReact: (mark: Mark) => ComponentType<React.PropsWithChildren<any>>;
22
22
  export { Code, Em, Link, Strike, Strong, Subsup, TextColor, Underline, Breakout, Annotation, Border, UnsupportedMark, isAnnotationMark, UnsupportedNodeAttribute, DataConsumer, FragmentMark, };
@@ -1,2 +1,2 @@
1
1
  import React from 'react';
2
- export default function Blockquote(props: React.Props<any>): JSX.Element;
2
+ export default function Blockquote(props: React.PropsWithChildren<unknown>): JSX.Element;
@@ -20,5 +20,5 @@ export interface Props {
20
20
  localId?: string;
21
21
  marks?: PMMark[];
22
22
  }
23
- declare const BodiedExtension: React.FunctionComponent<Props>;
23
+ declare const BodiedExtension: React.FunctionComponent<React.PropsWithChildren<Props>>;
24
24
  export default BodiedExtension;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { Node } from '@atlaskit/editor-prosemirror/model';
3
- export default function BulletList(props: {
2
+ import type { Node } from '@atlaskit/editor-prosemirror/model';
3
+ export default function BulletList(props: React.PropsWithChildren<{
4
4
  path?: Node[];
5
- } & React.Props<any>): JSX.Element;
5
+ }>): JSX.Element;
@@ -1,9 +1,9 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { WrappedComponentProps } from 'react-intl-next';
3
3
  type Props = {
4
4
  content: string;
5
5
  };
6
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
7
- WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
6
+ declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
7
+ WrappedComponent: import("react").ComponentType<Props & WrappedComponentProps<"intl">>;
8
8
  };
9
9
  export default _default;
@@ -1,11 +1,10 @@
1
- import React from 'react';
2
1
  import type { Dispatch, SetStateAction } from 'react';
3
2
  import { WrappedComponentProps } from 'react-intl-next';
4
3
  type Props = {
5
4
  setWrapLongLines: Dispatch<SetStateAction<boolean>>;
6
5
  wrapLongLines?: boolean;
7
6
  };
8
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
9
- WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
7
+ declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
8
+ WrappedComponent: import("react").ComponentType<Props & WrappedComponentProps<"intl">>;
10
9
  };
11
10
  export default _default;
@@ -1,4 +1,5 @@
1
1
  /** @jsx jsx */
2
+ import { jsx } from '@emotion/react';
2
3
  import React from 'react';
3
4
  import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
4
5
  import type { RendererContext } from '../types';
@@ -20,5 +21,5 @@ export interface Props {
20
21
  layout?: ExtensionLayout;
21
22
  localId?: string;
22
23
  }
23
- declare const ExtensionFrame: React.FunctionComponent<Props>;
24
+ declare const ExtensionFrame: (props: React.PropsWithChildren<Props>) => jsx.JSX.Element;
24
25
  export default ExtensionFrame;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  export type CardErrorBoundaryProps = {
3
- unsupportedComponent: React.ComponentType;
3
+ unsupportedComponent: React.ComponentType<React.PropsWithChildren<unknown>>;
4
4
  };
5
5
  export declare class CardErrorBoundary extends React.PureComponent<{
6
6
  url?: string;
@@ -1,6 +1,6 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  interface Props {
3
3
  forceNewLine?: boolean;
4
4
  }
5
- declare const HardBreak: React.FunctionComponent<Props>;
5
+ declare const HardBreak: ({ forceNewLine }: Props) => JSX.Element;
6
6
  export default HardBreak;
@@ -1,13 +1,6 @@
1
1
  import React from 'react';
2
- import type { WrappedComponentProps } from 'react-intl-next';
3
2
  export declare const HeadingAnchorWrapperClassName = "heading-anchor-wrapper";
4
- type Props = {
5
- onCopyText: () => Promise<void>;
6
- enableNestedHeaderLinks?: boolean;
7
- level: number;
8
- };
9
- type HeadingAnchorProps = Props & React.Props<any> & WrappedComponentProps;
10
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<HeadingAnchorProps>> & {
11
- WrappedComponent: React.ComponentType<HeadingAnchorProps>;
3
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<any>> & {
4
+ WrappedComponent: React.ComponentType<any>;
12
5
  };
13
6
  export default _default;