@atlaskit/renderer 93.0.0 → 93.0.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 (66) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/actions/package.json +1 -0
  3. package/consts/package.json +1 -0
  4. package/dist/cjs/i18n/en.js +28 -0
  5. package/dist/cjs/i18n/en_GB.js +28 -0
  6. package/dist/cjs/i18n/pl.js +7 -1
  7. package/dist/cjs/i18n/pt_BR.js +1 -1
  8. package/dist/cjs/react/nodes/panel.js +16 -10
  9. package/dist/cjs/render-document.js +2 -2
  10. package/dist/cjs/text/index.js +2 -2
  11. package/dist/cjs/ui/Renderer/click-to-edit.js +4 -4
  12. package/dist/cjs/ui/Renderer/index.js +2 -2
  13. package/dist/cjs/ui/Renderer/style.js +2 -2
  14. package/dist/cjs/ui/annotations/element/mark.js +5 -1
  15. package/dist/cjs/utils.js +2 -2
  16. package/dist/cjs/version.json +1 -1
  17. package/dist/es2019/i18n/en.js +20 -0
  18. package/dist/es2019/i18n/en_GB.js +20 -0
  19. package/dist/es2019/i18n/pl.js +7 -1
  20. package/dist/es2019/i18n/pt_BR.js +1 -1
  21. package/dist/es2019/react/nodes/panel.js +18 -5
  22. package/dist/es2019/render-document.js +1 -1
  23. package/dist/es2019/text/index.js +1 -1
  24. package/dist/es2019/ui/Renderer/click-to-edit.js +1 -1
  25. package/dist/es2019/ui/Renderer/index.js +1 -1
  26. package/dist/es2019/ui/Renderer/style.js +1 -2
  27. package/dist/es2019/ui/annotations/element/mark.js +6 -2
  28. package/dist/es2019/utils.js +1 -1
  29. package/dist/es2019/version.json +1 -1
  30. package/dist/esm/i18n/en.js +20 -0
  31. package/dist/esm/i18n/en_GB.js +20 -0
  32. package/dist/esm/i18n/pl.js +7 -1
  33. package/dist/esm/i18n/pt_BR.js +1 -1
  34. package/dist/esm/react/nodes/panel.js +12 -7
  35. package/dist/esm/render-document.js +1 -1
  36. package/dist/esm/text/index.js +1 -1
  37. package/dist/esm/ui/Renderer/click-to-edit.js +1 -1
  38. package/dist/esm/ui/Renderer/index.js +1 -1
  39. package/dist/esm/ui/Renderer/style.js +3 -3
  40. package/dist/esm/ui/annotations/element/mark.js +5 -1
  41. package/dist/esm/utils.js +1 -1
  42. package/dist/esm/version.json +1 -1
  43. package/dist/types/actions/index.d.ts +1 -4
  44. package/dist/types/i18n/en.d.ts +20 -0
  45. package/dist/types/i18n/en_GB.d.ts +20 -0
  46. package/dist/types/i18n/pl.d.ts +6 -0
  47. package/dist/types/react/nodes/copy-text-provider.d.ts +1 -1
  48. package/dist/types/react/nodes/extension.d.ts +2 -2
  49. package/dist/types/react/nodes/fallback.d.ts +1 -1
  50. package/dist/types/react/nodes/index.d.ts +20 -38
  51. package/dist/types/react/nodes/inlineCard.d.ts +20 -20
  52. package/dist/types/react/nodes/media.d.ts +1 -1
  53. package/dist/types/react/nodes/mediaGroup.d.ts +3 -3
  54. package/dist/types/react/nodes/table.d.ts +80 -80
  55. package/dist/types/ui/MediaCard.d.ts +1 -1
  56. package/dist/types/ui/SmartCardStorage.d.ts +21 -20
  57. package/dist/types/ui/SortingIcon.d.ts +7 -5
  58. package/dist/types/utils.d.ts +1 -1
  59. package/messages/package.json +1 -0
  60. package/package.json +14 -14
  61. package/render-document/package.json +1 -0
  62. package/renderer-context/package.json +1 -0
  63. package/serializer/package.json +1 -0
  64. package/text-serializer/package.json +1 -0
  65. package/use-feature-flags/package.json +1 -0
  66. package/utils/package.json +1 -0
@@ -0,0 +1,20 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by Traduki 2.0.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ */
7
+ //English (United Kingdom)
8
+ export default {
9
+ 'fabric.editor.codeBlockCopyButton.copiedToClipboard': 'Copied!',
10
+ 'fabric.editor.codeBlockCopyButton.copyToClipboard': 'Copy',
11
+ 'fabric.editor.headingLink.ascOrderLabel': 'Sort column Z to A',
12
+ 'fabric.editor.headingLink.ascSortingLabel': 'ascending',
13
+ 'fabric.editor.headingLink.copied': 'Copied!',
14
+ 'fabric.editor.headingLink.copyAnchorLink': 'Copy link to heading',
15
+ 'fabric.editor.headingLink.copyAriaLabel': 'Copy',
16
+ 'fabric.editor.headingLink.descOrderLabel': "⚠️ You can't sort a table with merged cell",
17
+ 'fabric.editor.headingLink.failedToCopy': 'Copy failed',
18
+ 'fabric.editor.headingLink.noOrderLabel': 'Sort column A to Z',
19
+ 'fabric.editor.headingLink.noneSortingLabel': 'descending'
20
+ };
@@ -8,7 +8,13 @@
8
8
  export default {
9
9
  'fabric.editor.codeBlockCopyButton.copiedToClipboard': 'Skopiowano!',
10
10
  'fabric.editor.codeBlockCopyButton.copyToClipboard': 'Kopiuj',
11
+ 'fabric.editor.headingLink.ascOrderLabel': 'Sortuj kolumnę od Z do A',
12
+ 'fabric.editor.headingLink.ascSortingLabel': 'rosnąco',
11
13
  'fabric.editor.headingLink.copied': 'Skopiowano!',
12
14
  'fabric.editor.headingLink.copyAnchorLink': 'Skopiuj łącze do nagłówka',
13
- 'fabric.editor.headingLink.failedToCopy': 'Kopiowanie nie powiodło się'
15
+ 'fabric.editor.headingLink.copyAriaLabel': 'Kopiuj',
16
+ 'fabric.editor.headingLink.descOrderLabel': '⚠️ Nie można sortować tabeli ze scaloną komórką',
17
+ 'fabric.editor.headingLink.failedToCopy': 'Kopiowanie nie powiodło się',
18
+ 'fabric.editor.headingLink.noOrderLabel': 'Sortuj kolumnę od A do Z',
19
+ 'fabric.editor.headingLink.noneSortingLabel': 'malejąco'
14
20
  };
@@ -13,7 +13,7 @@ export default {
13
13
  'fabric.editor.headingLink.copied': 'Copiado!',
14
14
  'fabric.editor.headingLink.copyAnchorLink': 'Copiar link para cabeçalho',
15
15
  'fabric.editor.headingLink.copyAriaLabel': 'Copiar',
16
- 'fabric.editor.headingLink.descOrderLabel': ' Você não pode ordenar uma tabela com células mescladas',
16
+ 'fabric.editor.headingLink.descOrderLabel': '⚠️ Você não pode ordenar uma tabela com células mescladas',
17
17
  'fabric.editor.headingLink.failedToCopy': 'Falha na cópia',
18
18
  'fabric.editor.headingLink.noOrderLabel': 'Ordenar coluna de A a Z',
19
19
  'fabric.editor.headingLink.noneSortingLabel': 'descendente'
@@ -8,25 +8,30 @@ import React from 'react';
8
8
  import { css, jsx } from '@emotion/react';
9
9
  import TipIcon from '@atlaskit/icon/glyph/editor/hint';
10
10
  import { PanelType } from '@atlaskit/adf-schema';
11
- import { PanelSharedCssClassName } from '@atlaskit/editor-common/styles';
11
+ import { getPanelBackgroundDarkModeColors, panelSharedStylesWithoutPrefix, PanelSharedCssClassName } from '@atlaskit/editor-common/panel';
12
12
  import EmojiIcon from '@atlaskit/icon/glyph/editor/emoji';
13
13
  import EmojiItem from './emoji'; // AFP-2532 TODO: Fix automatic suppressions below
14
14
  // eslint-disable-next-line @atlassian/tangerine/import/entry-points
15
15
 
16
16
  import { themed } from '@atlaskit/theme';
17
- import { getPanelBackgroundDarkModeColors } from '@atlaskit/editor-common/styles';
18
17
  import { PanelInfoIcon, PanelSuccessIcon, PanelNoteIcon, PanelWarningIcon, PanelErrorIcon } from '@atlaskit/editor-common/icons';
19
18
 
20
19
  var PanelStyled = function PanelStyled(props) {
21
- var styles = function styles(themeProps) {
22
- return css(_templateObject || (_templateObject = _taggedTemplateLiteral([""])));
20
+ var styles = function styles(theme) {
21
+ return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n &.", " {\n ", "\n }\n "])), PanelSharedCssClassName.prefix, panelSharedStylesWithoutPrefix({
22
+ theme: theme
23
+ }));
23
24
  };
24
25
 
25
26
  if (props['data-panel-type'] === PanelType.CUSTOM && props.backgroundColor) {
26
- styles = function styles(themeProps) {
27
- return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n &[data-panel-type=", "] {\n background-color: ", ";\n ", ";\n }\n "])), PanelType.CUSTOM, props.backgroundColor, themed({
27
+ styles = function styles(theme) {
28
+ return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n &.", " {\n ", "\n }\n\n &[data-panel-type=", "] {\n background-color: ", ";\n ", ";\n }\n "])), PanelSharedCssClassName.prefix, panelSharedStylesWithoutPrefix({
29
+ theme: theme
30
+ }), PanelType.CUSTOM, props.backgroundColor, themed({
28
31
  dark: getPanelBackgroundDarkModeColors
29
- })(themeProps));
32
+ })({
33
+ theme: theme
34
+ }));
30
35
  };
31
36
  }
32
37
 
@@ -1,4 +1,4 @@
1
- import { defaultSchema } from '@atlaskit/adf-schema';
1
+ import { defaultSchema } from '@atlaskit/adf-schema/schema-default';
2
2
  import { getValidDocument } from '@atlaskit/editor-common/validator';
3
3
  import { validateADFEntity, findAndTrackUnsupportedContentNodes } from '@atlaskit/editor-common/utils';
4
4
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from './analytics/enums';
@@ -1,6 +1,6 @@
1
1
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
2
2
  import _createClass from "@babel/runtime/helpers/createClass";
3
- import { defaultSchema } from '@atlaskit/adf-schema';
3
+ import { defaultSchema } from '@atlaskit/adf-schema/schema-default';
4
4
  import { reduce } from './nodes';
5
5
 
6
6
  var TextSerializer = /*#__PURE__*/function () {
@@ -1,4 +1,4 @@
1
- import { fileCardImageViewSelector } from '@atlaskit/media-card';
1
+ import { fileCardImageViewSelector } from '@atlaskit/media-card/classnames';
2
2
  import { mediaViewerPopupClass } from '@atlaskit/media-viewer/classnames';
3
3
  /**
4
4
  * Check if an element is interactive (or otherwise if clicking on it shouldn't transition the
@@ -19,7 +19,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
19
19
  import React, { Fragment, useContext, useLayoutEffect, useRef } from 'react';
20
20
  import { jsx } from '@emotion/react';
21
21
  import { PureComponent } from 'react';
22
- import { getSchemaBasedOnStage } from '@atlaskit/adf-schema';
22
+ import { getSchemaBasedOnStage } from '@atlaskit/adf-schema/schema-default';
23
23
  import { reduce } from '@atlaskit/adf-utils';
24
24
  import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
25
25
  import { UnsupportedBlock, BaseTheme, WidthProvider, WithCreateAnalyticsEvent, IntlErrorBoundary } from '@atlaskit/editor-common/ui';
@@ -7,7 +7,7 @@ import { themed } from '@atlaskit/theme/components';
7
7
  import { gridSize, fontFamily, fontSize, borderRadius } from '@atlaskit/theme/constants';
8
8
  import * as colors from '@atlaskit/theme/colors';
9
9
  import { headingSizes as headingSizesImport } from '@atlaskit/theme/typography';
10
- import { tableSharedStyle, columnLayoutSharedStyle, blockquoteSharedStyles, headingsSharedStyles, panelSharedStyles, ruleSharedStyles, whitespaceSharedStyles, paragraphSharedStyles, listsSharedStyles, indentationSharedStyles, blockMarksSharedStyles, mediaSingleSharedStyle, TableSharedCssClassName, tableMarginTop, codeMarkSharedStyles, shadowSharedStyle, dateSharedStyle, richMediaClassName, tasksAndDecisionsStyles, smartCardSharedStyles, tableCellPadding, textColorStyles } from '@atlaskit/editor-common/styles';
10
+ import { tableSharedStyle, columnLayoutSharedStyle, blockquoteSharedStyles, headingsSharedStyles, ruleSharedStyles, whitespaceSharedStyles, paragraphSharedStyles, listsSharedStyles, indentationSharedStyles, blockMarksSharedStyles, mediaSingleSharedStyle, TableSharedCssClassName, tableMarginTop, codeMarkSharedStyles, shadowSharedStyle, dateSharedStyle, richMediaClassName, tasksAndDecisionsStyles, smartCardSharedStyles, tableCellPadding, textColorStyles } from '@atlaskit/editor-common/styles';
11
11
  import { shadowClassNames } from '@atlaskit/editor-common/ui';
12
12
  import { editorFontSize, blockNodesVerticalMargin, akEditorTableToolbar, akEditorTableToolbarDark, akEditorTableBorder, akEditorTableBorderDark, akEditorTableNumberColumnWidth, gridMediumMaxWidth, akEditorFullWidthLayoutWidth, akEditorStickyHeaderZIndex, relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
13
13
  import { RendererCssClassName } from '../../consts';
@@ -97,10 +97,10 @@ export var rendererStyles = function rendererStyles(wrapperProps) {
97
97
  var themeProps = {
98
98
  theme: theme
99
99
  };
100
- return css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n font-size: ", "px;\n line-height: 1.5rem;\n color: ", ";\n\n .", "::after {\n // we add a clearfix after ak-renderer-document in order to\n // contain internal floats (such as media images that are \"wrap-left\")\n // to just the renderer (and not spill outside of it)\n content: '';\n visibility: hidden;\n display: block;\n height: 0;\n clear: both;\n }\n\n ", "\n ", "\n\n & h1 {\n ", "\n }\n\n & h2 {\n ", "\n }\n\n & h3 {\n ", "\n }\n\n & h4 {\n ", "\n }\n\n & h5 {\n ", "\n }\n\n & h6 {\n ", "\n }\n\n & span.akActionMark {\n color: ", ";\n text-decoration: none;\n\n &:hover {\n color: ", ";\n text-decoration: underline;\n }\n }\n\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: ", "px;\n color: ", ";\n padding: 2px 4px;\n margin: 0 1px;\n transition: background 0.3s;\n }\n\n & span.date-node-highlighted {\n background: ", ";\n color: ", ";\n }\n\n & .renderer-image {\n max-width: 100%;\n display: block;\n margin: ", "px 0;\n }\n\n .", ".rich-media-wrapped\n + .", ":not(.rich-media-wrapped) {\n clear: both;\n }\n\n & .code-block,\n & blockquote,\n & hr,\n & > div > div:not(.rich-media-wrapped),\n .", ".rich-media-wrapped\n + .rich-media-wrapped\n + *:not(.rich-media-wrapped),\n .", ".rich-media-wrapped + div:not(.rich-media-wrapped),\n .", ".image-align-start,\n .", ".image-center,\n .", ".image-align-end {\n clear: both;\n }\n\n & .rich-media-wrapped {\n & + h1,\n & + h2,\n & + h3,\n & + h4,\n & + h5,\n & + h6 {\n margin-top: 8px;\n }\n }\n\n ", "\n /* plugin styles */\n ", " &\n div[class^='image-wrap-'] + div[class^='image-wrap-'] {\n margin-left: 0;\n margin-right: 0;\n }\n\n /* Breakout for tables and extensions */\n .", " > {\n * .", " {\n width: 100% !important;\n left: 0 !important;\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\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 * 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-child {\n height: 100%;\n\n td,\n th {\n position: relative;\n }\n }\n\n table[data-number-column='true'] {\n .", " {\n background-color: ", ";\n border-right: 1px solid\n ", ";\n width: ", "px;\n text-align: center;\n color: ", ";\n font-size: ", ";\n }\n\n .fixed .", " {\n border-right: 0px none;\n }\n }\n }\n\n tr[data-header-row].fixed {\n position: fixed !important;\n display: flex;\n overflow: hidden;\n z-index: ", ";\n\n border-right: 1px solid\n ", ";\n border-bottom: 1px solid\n ", ";\n\n /* this is to compensate for the table border */\n transform: translateX(-1px);\n }\n\n .sticky > th {\n z-index: ", ";\n position: sticky !important;\n top: 0;\n }\n\n /* Make the number column header sticky */\n .sticky > td {\n position: sticky !important;\n top: 0;\n }\n\n /* add border for position: sticky\n and work around background-clip: padding-box\n bug for FF causing box-shadow bug in Chrome */\n .sticky th,\n .sticky td {\n box-shadow: 0px 1px\n ", ",\n 0px -0.5px ", ",\n inset -1px 0px ", ",\n 0px -1px ", ";\n }\n\n /* this will remove jumpiness caused in Chrome for sticky headers */\n .fixed + tr {\n min-height: 0px;\n }\n\n /*\n * We wrap CodeBlock in a grid to prevent it from overflowing the container of the renderer.\n * See ED-4159.\n */\n & .code-block {\n max-width: 100%;\n /* -ms- properties are necessary until MS supports the latest version of the grid spec */\n /* stylelint-disable value-no-vendor-prefix, declaration-block-no-duplicate-properties */\n display: -ms-grid;\n display: grid;\n -ms-grid-columns: auto 1fr;\n /* stylelint-enable */\n\n grid-template-columns: minmax(0, 1fr);\n position: relative;\n border-radius: ", "px;\n\n /*\n * The overall renderer has word-wrap: break; which causes issues with\n * code block line numbers in Safari / iOS.\n */\n word-wrap: normal;\n\n & > span {\n /* stylelint-disable value-no-vendor-prefix */\n -ms-grid-row: 1;\n -ms-grid-column: 2;\n /* stylelint-enable */\n grid-column: 1;\n }\n }\n\n & .MediaGroup,\n & .code-block {\n margin-top: ", ";\n\n &:first-child {\n margin-top: 0;\n }\n\n &:hover button.copy-to-clipboard,\n .copy-to-clipboard:focus {\n opacity: 1;\n position: absolute;\n height: 32px;\n width: 32px;\n right: 6px;\n top: 4px;\n padding: 2px;\n }\n }\n\n ", ";\n & [data-layout-section] {\n margin-top: ", "px;\n & > div + div {\n margin-left: ", "px;\n }\n\n @media screen and (max-width: ", "px) {\n & > div + div {\n margin-left: 0;\n }\n }\n }\n "])), editorFontSize(themeProps), themed({
100
+ return css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n font-size: ", "px;\n line-height: 1.5rem;\n color: ", ";\n\n .", "::after {\n // we add a clearfix after ak-renderer-document in order to\n // contain internal floats (such as media images that are \"wrap-left\")\n // to just the renderer (and not spill outside of it)\n content: '';\n visibility: hidden;\n display: block;\n height: 0;\n clear: both;\n }\n\n ", "\n ", "\n\n & h1 {\n ", "\n }\n\n & h2 {\n ", "\n }\n\n & h3 {\n ", "\n }\n\n & h4 {\n ", "\n }\n\n & h5 {\n ", "\n }\n\n & h6 {\n ", "\n }\n\n & span.akActionMark {\n color: ", ";\n text-decoration: none;\n\n &:hover {\n color: ", ";\n text-decoration: underline;\n }\n }\n\n & span.akActionMark {\n cursor: pointer;\n }\n\n & span[data-placeholder] {\n color: ", ";\n }\n\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", "\n\n & .UnknownBlock {\n font-family: ", ";\n font-size: ", ";\n font-weight: 400;\n white-space: pre-wrap;\n word-wrap: break-word;\n }\n\n & span.date-node {\n background: ", ";\n border-radius: ", "px;\n color: ", ";\n padding: 2px 4px;\n margin: 0 1px;\n transition: background 0.3s;\n }\n\n & span.date-node-highlighted {\n background: ", ";\n color: ", ";\n }\n\n & .renderer-image {\n max-width: 100%;\n display: block;\n margin: ", "px 0;\n }\n\n .", ".rich-media-wrapped\n + .", ":not(.rich-media-wrapped) {\n clear: both;\n }\n\n & .code-block,\n & blockquote,\n & hr,\n & > div > div:not(.rich-media-wrapped),\n .", ".rich-media-wrapped\n + .rich-media-wrapped\n + *:not(.rich-media-wrapped),\n .", ".rich-media-wrapped + div:not(.rich-media-wrapped),\n .", ".image-align-start,\n .", ".image-center,\n .", ".image-align-end {\n clear: both;\n }\n\n & .rich-media-wrapped {\n & + h1,\n & + h2,\n & + h3,\n & + h4,\n & + h5,\n & + h6 {\n margin-top: 8px;\n }\n }\n\n ", "\n /* plugin styles */\n ", " &\n div[class^='image-wrap-'] + div[class^='image-wrap-'] {\n margin-left: 0;\n margin-right: 0;\n }\n\n /* Breakout for tables and extensions */\n .", " > {\n * .", " {\n width: 100% !important;\n left: 0 !important;\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\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 * 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-child {\n height: 100%;\n\n td,\n th {\n position: relative;\n }\n }\n\n table[data-number-column='true'] {\n .", " {\n background-color: ", ";\n border-right: 1px solid\n ", ";\n width: ", "px;\n text-align: center;\n color: ", ";\n font-size: ", ";\n }\n\n .fixed .", " {\n border-right: 0px none;\n }\n }\n }\n\n tr[data-header-row].fixed {\n position: fixed !important;\n display: flex;\n overflow: hidden;\n z-index: ", ";\n\n border-right: 1px solid\n ", ";\n border-bottom: 1px solid\n ", ";\n\n /* this is to compensate for the table border */\n transform: translateX(-1px);\n }\n\n .sticky > th {\n z-index: ", ";\n position: sticky !important;\n top: 0;\n }\n\n /* Make the number column header sticky */\n .sticky > td {\n position: sticky !important;\n top: 0;\n }\n\n /* add border for position: sticky\n and work around background-clip: padding-box\n bug for FF causing box-shadow bug in Chrome */\n .sticky th,\n .sticky td {\n box-shadow: 0px 1px\n ", ",\n 0px -0.5px ", ",\n inset -1px 0px ", ",\n 0px -1px ", ";\n }\n\n /* this will remove jumpiness caused in Chrome for sticky headers */\n .fixed + tr {\n min-height: 0px;\n }\n\n /*\n * We wrap CodeBlock in a grid to prevent it from overflowing the container of the renderer.\n * See ED-4159.\n */\n & .code-block {\n max-width: 100%;\n /* -ms- properties are necessary until MS supports the latest version of the grid spec */\n /* stylelint-disable value-no-vendor-prefix, declaration-block-no-duplicate-properties */\n display: -ms-grid;\n display: grid;\n -ms-grid-columns: auto 1fr;\n /* stylelint-enable */\n\n grid-template-columns: minmax(0, 1fr);\n position: relative;\n border-radius: ", "px;\n\n /*\n * The overall renderer has word-wrap: break; which causes issues with\n * code block line numbers in Safari / iOS.\n */\n word-wrap: normal;\n\n & > span {\n /* stylelint-disable value-no-vendor-prefix */\n -ms-grid-row: 1;\n -ms-grid-column: 2;\n /* stylelint-enable */\n grid-column: 1;\n }\n }\n\n & .MediaGroup,\n & .code-block {\n margin-top: ", ";\n\n &:first-child {\n margin-top: 0;\n }\n\n &:hover button.copy-to-clipboard,\n .copy-to-clipboard:focus {\n opacity: 1;\n position: absolute;\n height: 32px;\n width: 32px;\n right: 6px;\n top: 4px;\n padding: 2px;\n }\n }\n\n ", ";\n & [data-layout-section] {\n margin-top: ", "px;\n & > div + div {\n margin-left: ", "px;\n }\n\n @media screen and (max-width: ", "px) {\n & > div + div {\n margin-left: 0;\n }\n }\n }\n "])), editorFontSize(themeProps), themed({
101
101
  light: colors.N800,
102
102
  dark: '#B8C7E0'
103
- })(themeProps), RendererCssClassName.DOCUMENT, fullPageStyles(wrapperProps, themeProps), fullWidthStyles(wrapperProps), headingAnchorStyle('h1'), headingAnchorStyle('h2'), headingAnchorStyle('h3'), headingAnchorStyle('h4'), headingAnchorStyle('h5'), headingAnchorStyle('h6'), colors.B400, colors.B300, colors.placeholderText(themeProps), whitespaceSharedStyles, blockquoteSharedStyles, headingsSharedStyles(themeProps), panelSharedStyles(themeProps), ruleSharedStyles(themeProps), paragraphSharedStyles, listsSharedStyles, indentationSharedStyles, blockMarksSharedStyles, codeMarkSharedStyles(themeProps), shadowSharedStyle, dateSharedStyle, textColorStyles, tasksAndDecisionsStyles, smartCardSharedStyles, fontFamily(), relativeFontSizeToBase16(fontSize()), themed({
103
+ })(themeProps), RendererCssClassName.DOCUMENT, fullPageStyles(wrapperProps, themeProps), fullWidthStyles(wrapperProps), headingAnchorStyle('h1'), headingAnchorStyle('h2'), headingAnchorStyle('h3'), headingAnchorStyle('h4'), headingAnchorStyle('h5'), headingAnchorStyle('h6'), colors.B400, colors.B300, colors.placeholderText(themeProps), whitespaceSharedStyles, blockquoteSharedStyles, headingsSharedStyles(themeProps), ruleSharedStyles(themeProps), paragraphSharedStyles, listsSharedStyles, indentationSharedStyles, blockMarksSharedStyles, codeMarkSharedStyles(themeProps), shadowSharedStyle, dateSharedStyle, textColorStyles, tasksAndDecisionsStyles, smartCardSharedStyles, fontFamily(), relativeFontSizeToBase16(fontSize()), themed({
104
104
  light: colors.N30A,
105
105
  dark: colors.DN70
106
106
  })(themeProps), borderRadius(), themed({
@@ -16,7 +16,11 @@ import { AnnotationSharedCSSByState } from '@atlaskit/editor-common/styles';
16
16
  import { AnnotationMarkStates } from '@atlaskit/adf-schema';
17
17
 
18
18
  var markStyles = function markStyles(props) {
19
- return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n color: inherit;\n background-color: unset;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n\n &[data-mark-annotation-state='", "'] {\n ", ";\n\n &:focus,\n &[data-has-focus='true'] {\n ", ";\n }\n }\n"])), AnnotationMarkStates.ACTIVE, AnnotationSharedCSSByState(props).blur, AnnotationSharedCSSByState(props).focus);
19
+ return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n color: inherit;\n background-color: unset;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n\n &[data-mark-annotation-state='", "'] {\n ", ";\n\n &:focus,\n &[data-has-focus='true'] {\n ", ";\n }\n }\n"])), AnnotationMarkStates.ACTIVE, AnnotationSharedCSSByState({
20
+ theme: props
21
+ }).blur, AnnotationSharedCSSByState({
22
+ theme: props
23
+ }).focus);
20
24
  };
21
25
 
22
26
  export var MarkComponent = function MarkComponent(_ref) {
package/dist/esm/utils.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import _createClass from "@babel/runtime/helpers/createClass";
2
2
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
3
- import { defaultSchema } from '@atlaskit/adf-schema';
3
+ import { defaultSchema } from '@atlaskit/adf-schema/schema-default';
4
4
  import { JSONTransformer } from '@atlaskit/editor-json-transformer';
5
5
 
6
6
  function createEncoder(parser, encoder) {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "93.0.0",
3
+ "version": "93.0.3",
4
4
  "sideEffects": false
5
5
  }
@@ -49,10 +49,7 @@ export default class RendererActions implements RendererActionsOptions, Annotati
49
49
  step: RemoveMarkStep<Schema<any, any>>;
50
50
  doc: JSONDocNode;
51
51
  };
52
- annotate(range: Range, annotationId: string, annotationType: 'inlineComment'): false | ({
53
- step: Step<any>;
54
- doc: JSONDocNode;
55
- } & AnnotationByMatches);
52
+ annotate(range: Range, annotationId: string, annotationType: 'inlineComment'): AnnotationActionResult;
56
53
  isValidAnnotationRange(range: Range): boolean;
57
54
  isValidAnnotationPosition(pos: Position): boolean;
58
55
  getPositionFromRange(range: Range): Position | false;
@@ -0,0 +1,20 @@
1
+ declare const _default: {
2
+ 'fabric.editor.codeBlockCopyButton.copiedToClipboard': string;
3
+ 'fabric.editor.codeBlockCopyButton.copyToClipboard': string;
4
+ 'fabric.editor.headingLink.ascOrderLabel': string;
5
+ 'fabric.editor.headingLink.ascSortingLabel': string;
6
+ 'fabric.editor.headingLink.copied': string;
7
+ 'fabric.editor.headingLink.copyAnchorLink': string;
8
+ 'fabric.editor.headingLink.copyAriaLabel': string;
9
+ 'fabric.editor.headingLink.descOrderLabel': string;
10
+ 'fabric.editor.headingLink.failedToCopy': string;
11
+ 'fabric.editor.headingLink.noOrderLabel': string;
12
+ 'fabric.editor.headingLink.noneSortingLabel': string;
13
+ };
14
+ /**
15
+ * NOTE:
16
+ *
17
+ * This file is automatically generated by Traduki 2.0.
18
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
19
+ */
20
+ export default _default;
@@ -0,0 +1,20 @@
1
+ declare const _default: {
2
+ 'fabric.editor.codeBlockCopyButton.copiedToClipboard': string;
3
+ 'fabric.editor.codeBlockCopyButton.copyToClipboard': string;
4
+ 'fabric.editor.headingLink.ascOrderLabel': string;
5
+ 'fabric.editor.headingLink.ascSortingLabel': string;
6
+ 'fabric.editor.headingLink.copied': string;
7
+ 'fabric.editor.headingLink.copyAnchorLink': string;
8
+ 'fabric.editor.headingLink.copyAriaLabel': string;
9
+ 'fabric.editor.headingLink.descOrderLabel': string;
10
+ 'fabric.editor.headingLink.failedToCopy': string;
11
+ 'fabric.editor.headingLink.noOrderLabel': string;
12
+ 'fabric.editor.headingLink.noneSortingLabel': string;
13
+ };
14
+ /**
15
+ * NOTE:
16
+ *
17
+ * This file is automatically generated by Traduki 2.0.
18
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
19
+ */
20
+ export default _default;
@@ -1,9 +1,15 @@
1
1
  declare const _default: {
2
2
  'fabric.editor.codeBlockCopyButton.copiedToClipboard': string;
3
3
  'fabric.editor.codeBlockCopyButton.copyToClipboard': string;
4
+ 'fabric.editor.headingLink.ascOrderLabel': string;
5
+ 'fabric.editor.headingLink.ascSortingLabel': string;
4
6
  'fabric.editor.headingLink.copied': string;
5
7
  'fabric.editor.headingLink.copyAnchorLink': string;
8
+ 'fabric.editor.headingLink.copyAriaLabel': string;
9
+ 'fabric.editor.headingLink.descOrderLabel': string;
6
10
  'fabric.editor.headingLink.failedToCopy': string;
11
+ 'fabric.editor.headingLink.noOrderLabel': string;
12
+ 'fabric.editor.headingLink.noneSortingLabel': string;
7
13
  };
8
14
  /**
9
15
  * NOTE:
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  export declare const clipboardApiSupported: () => boolean;
3
- export declare const ieClipboardApiSupported: () => boolean;
3
+ export declare const ieClipboardApiSupported: () => any;
4
4
  export declare const copyToClipboardIE: (textToCopy: string) => Promise<void>;
5
5
  export declare const copyToClipboardLegacy: (textToCopy: string, copyAreaRef: HTMLElement | null) => Promise<void>;
6
6
  export declare const copyToClipboard: (textToCopy: string) => Promise<void>;
@@ -44,7 +44,7 @@ declare const _default: {
44
44
  handleContainer: (container: HTMLElement | null) => void;
45
45
  render(): JSX.Element;
46
46
  context: any;
47
- setState<K extends "showLeftShadow" | "showRightShadow">(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;
47
+ 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;
48
48
  forceUpdate(callBack?: (() => void) | undefined): void;
49
49
  readonly props: Readonly<Props> & Readonly<{
50
50
  children?: React.ReactNode;
@@ -82,7 +82,7 @@ declare const _default: {
82
82
  handleContainer: (container: HTMLElement | null) => void;
83
83
  render(): JSX.Element;
84
84
  context: any;
85
- setState<K_1 extends "showLeftShadow" | "showRightShadow">(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;
85
+ 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;
86
86
  forceUpdate(callBack?: (() => void) | undefined): void;
87
87
  readonly props: Readonly<Props> & Readonly<{
88
88
  children?: React.ReactNode;
@@ -11,6 +11,6 @@ export declare class CardErrorBoundary extends React.PureComponent<{
11
11
  isError: boolean;
12
12
  };
13
13
  onClickFallback: (e: React.MouseEvent<HTMLElement>) => void;
14
- render(): {} | null | undefined;
14
+ render(): React.ReactNode;
15
15
  componentDidCatch(_error: Error): void;
16
16
  }
@@ -21,16 +21,16 @@ import Table from './table';
21
21
  import { TableCell } from './tableCell';
22
22
  import TableRow from './tableRow';
23
23
  import UnknownBlock from './unknownBlock';
24
- declare const CodeBlock: (React.ComponentClass<import("react-intl-next").WithIntlProps<import("./codeBlock").Props & import("react-intl-next").WrappedComponentProps<"intl">>, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("react-intl-next").WithIntlProps<import("./codeBlock").Props & import("react-intl-next").WrappedComponentProps<"intl">>> & Loadable.LoadableComponent);
25
- declare const TaskList: (React.ComponentClass<import("./taskList").Props, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("./taskList").Props> & Loadable.LoadableComponent);
26
- declare const TaskItem: (React.ComponentClass<import("../types").NodeProps<import("./taskItem").Props>, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("../types").NodeProps<import("./taskItem").Props>> & Loadable.LoadableComponent);
27
- declare const DecisionList: (React.ComponentClass<import("./decisionList").Props, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("./decisionList").Props> & Loadable.LoadableComponent);
28
- declare const DecisionItem: (React.ComponentClass<import("../types").NodeMeta, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("../types").NodeMeta> & Loadable.LoadableComponent);
29
- declare const Date: (React.ComponentClass<import("react-intl-next").WithIntlProps<import("./date").Props & import("react-intl-next").WrappedComponentProps<"intl">>, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("react-intl-next").WithIntlProps<import("./date").Props & import("react-intl-next").WrappedComponentProps<"intl">>> & Loadable.LoadableComponent);
30
- declare const Status: (React.ComponentClass<import("./status").Props, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("./status").Props> & Loadable.LoadableComponent);
31
- declare const Emoji: (React.ComponentClass<import("./emoji").EmojiProps, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("./emoji").EmojiProps> & Loadable.LoadableComponent);
32
- declare const Panel: (React.ComponentClass<import("./panel").Props, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("./panel").Props> & Loadable.LoadableComponent);
33
- declare const EmbedCard: (React.ComponentClass<{
24
+ declare const CodeBlock: React.ComponentType<import("react-intl-next").WithIntlProps<import("./codeBlock").Props & import("react-intl-next").WrappedComponentProps<"intl">>> & Loadable.LoadableComponent;
25
+ declare const TaskList: React.ComponentType<import("./taskList").Props> & Loadable.LoadableComponent;
26
+ declare const TaskItem: React.ComponentType<import("../types").NodeProps<import("./taskItem").Props>> & Loadable.LoadableComponent;
27
+ declare const DecisionList: React.ComponentType<import("./decisionList").Props> & Loadable.LoadableComponent;
28
+ declare const DecisionItem: React.ComponentType<import("../types").NodeMeta> & Loadable.LoadableComponent;
29
+ declare const Date: React.ComponentType<import("react-intl-next").WithIntlProps<import("./date").Props & import("react-intl-next").WrappedComponentProps<"intl">>> & Loadable.LoadableComponent;
30
+ declare const Status: React.ComponentType<import("./status").Props> & Loadable.LoadableComponent;
31
+ declare const Emoji: React.ComponentType<import("./emoji").EmojiProps> & Loadable.LoadableComponent;
32
+ declare const Panel: React.ComponentType<import("./panel").Props> & Loadable.LoadableComponent;
33
+ declare const EmbedCard: React.ComponentType<{
34
34
  url?: string | undefined;
35
35
  data?: object | undefined;
36
36
  eventHandlers?: import("@atlaskit/editor-common/ui").EventHandlers | undefined;
@@ -42,39 +42,21 @@ declare const EmbedCard: (React.ComponentClass<{
42
42
  rendererAppearance?: import("../..").RendererAppearance;
43
43
  isInsideOfBlockNode?: boolean | undefined;
44
44
  allowDynamicTextSizing?: boolean | undefined;
45
- }, any> & Loadable.LoadableComponent) | (React.FunctionComponent<{
46
- url?: string | undefined;
47
- data?: object | undefined;
48
- eventHandlers?: import("@atlaskit/editor-common/ui").EventHandlers | undefined;
49
- portal?: HTMLElement | undefined;
50
- originalHeight?: number | undefined;
51
- originalWidth?: number | undefined;
52
- width?: number | undefined;
53
- layout: import("@atlaskit/adf-schema").RichMediaLayout;
54
- rendererAppearance?: import("../..").RendererAppearance;
55
- isInsideOfBlockNode?: boolean | undefined;
56
- allowDynamicTextSizing?: boolean | undefined;
57
- }> & Loadable.LoadableComponent);
58
- declare const InlineCard: (React.ComponentClass<Pick<import("./inlineCard").InlineCardProps & import("../../ui/SmartCardStorage").WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">, any> & Loadable.LoadableComponent) | (React.FunctionComponent<Pick<import("./inlineCard").InlineCardProps & import("../../ui/SmartCardStorage").WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">> & Loadable.LoadableComponent);
59
- declare const BlockCard: (React.ComponentClass<{
60
- url?: string | undefined;
61
- data?: object | undefined;
62
- eventHandlers?: import("@atlaskit/editor-common/ui").EventHandlers | undefined;
63
- portal?: HTMLElement | undefined;
64
- rendererAppearance?: import("../..").RendererAppearance;
65
- }, any> & Loadable.LoadableComponent) | (React.FunctionComponent<{
45
+ }> & Loadable.LoadableComponent;
46
+ declare const InlineCard: React.ComponentType<import("@atlaskit/editor-common/utils").Diff<import("./inlineCard").InlineCardProps & import("../../ui/SmartCardStorage").WithSmartCardStorageProps, import("../../ui/SmartCardStorage").WithSmartCardStorageProps>> & Loadable.LoadableComponent;
47
+ declare const BlockCard: React.ComponentType<{
66
48
  url?: string | undefined;
67
49
  data?: object | undefined;
68
50
  eventHandlers?: import("@atlaskit/editor-common/ui").EventHandlers | undefined;
69
51
  portal?: HTMLElement | undefined;
70
52
  rendererAppearance?: import("../..").RendererAppearance;
71
- }> & Loadable.LoadableComponent);
72
- declare const Media: (React.ComponentClass<import("./media").MediaProps, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("./media").MediaProps> & Loadable.LoadableComponent);
73
- declare const MediaGroup: (React.ComponentClass<import("./mediaGroup").MediaGroupProps, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("./mediaGroup").MediaGroupProps> & Loadable.LoadableComponent);
74
- declare const MediaInline: (React.ComponentClass<import("./mediaInline").MediaInlineProps, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("./mediaInline").MediaInlineProps> & Loadable.LoadableComponent);
75
- declare const MediaSingle: (React.ComponentClass<import("react-intl-next").WithIntlProps<import("./mediaSingle").Props & import("react-intl-next").WrappedComponentProps<"intl">>, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("react-intl-next").WithIntlProps<import("./mediaSingle").Props & import("react-intl-next").WrappedComponentProps<"intl">>> & Loadable.LoadableComponent);
76
- declare const Mention: (React.ComponentClass<import("./mention").Props, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("./mention").Props> & Loadable.LoadableComponent);
77
- declare const Expand: (React.ComponentClass<import("react-intl-next").WithIntlProps<import("../../ui/Expand").ExpandProps & import("react-intl-next").WrappedComponentProps<"intl">>, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("react-intl-next").WithIntlProps<import("../../ui/Expand").ExpandProps & import("react-intl-next").WrappedComponentProps<"intl">>> & Loadable.LoadableComponent);
53
+ }> & Loadable.LoadableComponent;
54
+ declare const Media: React.ComponentType<import("./media").MediaProps> & Loadable.LoadableComponent;
55
+ declare const MediaGroup: React.ComponentType<import("./mediaGroup").MediaGroupProps> & Loadable.LoadableComponent;
56
+ declare const MediaInline: React.ComponentType<import("./mediaInline").MediaInlineProps> & Loadable.LoadableComponent;
57
+ declare const MediaSingle: React.ComponentType<import("react-intl-next").WithIntlProps<import("./mediaSingle").Props & import("react-intl-next").WrappedComponentProps<"intl">>> & Loadable.LoadableComponent;
58
+ declare const Mention: React.ComponentType<import("./mention").Props> & Loadable.LoadableComponent;
59
+ declare const Expand: React.ComponentType<import("react-intl-next").WithIntlProps<import("../../ui/Expand").ExpandProps & import("react-intl-next").WrappedComponentProps<"intl">>> & Loadable.LoadableComponent;
78
60
  export declare const nodeToReact: {
79
61
  [key: string]: React.ComponentType<any>;
80
62
  };
@@ -10,12 +10,12 @@ export interface InlineCardProps {
10
10
  smartLinks?: SmartLinksOptions;
11
11
  }
12
12
  declare const _default: {
13
- new (props: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">>): {
13
+ new (props: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>): {
14
14
  render(): JSX.Element;
15
15
  context: any;
16
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
16
+ 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;
17
17
  forceUpdate(callBack?: (() => void) | undefined): void;
18
- readonly props: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">> & Readonly<{
18
+ readonly props: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>> & Readonly<{
19
19
  children?: React.ReactNode;
20
20
  }>;
21
21
  state: Readonly<{}>;
@@ -23,24 +23,24 @@ declare const _default: {
23
23
  [key: string]: React.ReactInstance;
24
24
  };
25
25
  componentDidMount?(): void;
26
- shouldComponentUpdate?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">>, nextState: Readonly<{}>, nextContext: any): boolean;
26
+ shouldComponentUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): boolean;
27
27
  componentWillUnmount?(): void;
28
28
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
29
- getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">>, prevState: Readonly<{}>): any;
30
- componentDidUpdate?(prevProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">>, prevState: Readonly<{}>, snapshot?: any): void;
29
+ getSnapshotBeforeUpdate?(prevProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, prevState: Readonly<{}>): any;
30
+ componentDidUpdate?(prevProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, prevState: Readonly<{}>, snapshot?: any): void;
31
31
  componentWillMount?(): void;
32
32
  UNSAFE_componentWillMount?(): void;
33
- componentWillReceiveProps?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">>, nextContext: any): void;
34
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">>, nextContext: any): void;
35
- componentWillUpdate?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">>, nextState: Readonly<{}>, nextContext: any): void;
36
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">>, nextState: Readonly<{}>, nextContext: any): void;
33
+ componentWillReceiveProps?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextContext: any): void;
34
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextContext: any): void;
35
+ componentWillUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
36
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
37
37
  };
38
- new (props: Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">, context?: any): {
38
+ new (props: import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>, context?: any): {
39
39
  render(): JSX.Element;
40
40
  context: any;
41
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
41
+ 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;
42
42
  forceUpdate(callBack?: (() => void) | undefined): void;
43
- readonly props: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">> & Readonly<{
43
+ readonly props: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>> & Readonly<{
44
44
  children?: React.ReactNode;
45
45
  }>;
46
46
  state: Readonly<{}>;
@@ -48,17 +48,17 @@ declare const _default: {
48
48
  [key: string]: React.ReactInstance;
49
49
  };
50
50
  componentDidMount?(): void;
51
- shouldComponentUpdate?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">>, nextState: Readonly<{}>, nextContext: any): boolean;
51
+ shouldComponentUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): boolean;
52
52
  componentWillUnmount?(): void;
53
53
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
54
- getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">>, prevState: Readonly<{}>): any;
55
- componentDidUpdate?(prevProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">>, prevState: Readonly<{}>, snapshot?: any): void;
54
+ getSnapshotBeforeUpdate?(prevProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, prevState: Readonly<{}>): any;
55
+ componentDidUpdate?(prevProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, prevState: Readonly<{}>, snapshot?: any): void;
56
56
  componentWillMount?(): void;
57
57
  UNSAFE_componentWillMount?(): void;
58
- componentWillReceiveProps?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">>, nextContext: any): void;
59
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">>, nextContext: any): void;
60
- componentWillUpdate?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">>, nextState: Readonly<{}>, nextContext: any): void;
61
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">>, nextState: Readonly<{}>, nextContext: any): void;
58
+ componentWillReceiveProps?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextContext: any): void;
59
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextContext: any): void;
60
+ componentWillUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
61
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
62
62
  };
63
63
  contextType?: React.Context<any> | undefined;
64
64
  };
@@ -6,7 +6,7 @@ import type { EventHandlers } from '@atlaskit/editor-common/ui';
6
6
  import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
7
7
  import { MediaCardProps } from '../../ui/MediaCard';
8
8
  import { LinkDefinition } from '@atlaskit/adf-schema';
9
- import { MediaFeatureFlags } from '@atlaskit/media-common';
9
+ import type { MediaFeatureFlags } from '@atlaskit/media-common';
10
10
  import { AnalyticsEventPayload } from '../../analytics/events';
11
11
  export declare type MediaProps = MediaCardProps & {
12
12
  providers?: ProviderFactory;
@@ -20,10 +20,10 @@ export default class MediaGroup extends PureComponent<MediaGroupProps, MediaGrou
20
20
  private handleSize;
21
21
  private handleScroll;
22
22
  render(): JSX.Element;
23
- renderSingleFile(child: ReactElement<MediaProps>): React.ReactElement<MediaProps, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>;
24
- renderSingleLink(child: ReactElement<MediaProps>): React.ReactElement<MediaProps, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>;
23
+ renderSingleFile(child: ReactElement<MediaProps>): React.ReactElement<MediaProps, string | React.JSXElementConstructor<any>>;
24
+ renderSingleLink(child: ReactElement<MediaProps>): React.ReactElement<MediaProps, string | React.JSXElementConstructor<any>>;
25
25
  onMediaClick: (cardClickHandler: CardEventClickHandler, child: ReactElement<MediaProps>, surroundingItems: Identifier[]) => (event: CardEvent, analyticsEvent?: any) => void;
26
- cloneFileCard(child: ReactElement<MediaProps>, surroundingItems: Identifier[]): React.ReactElement<MediaProps, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>;
26
+ cloneFileCard(child: ReactElement<MediaProps>, surroundingItems: Identifier[]): React.ReactElement<MediaProps, string | React.JSXElementConstructor<any>>;
27
27
  renderStrip(): JSX.Element;
28
28
  private mapMediaPropsToIdentifier;
29
29
  }