@atlaskit/renderer 92.0.1 → 93.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist/cjs/analytics/enums.js +1 -0
- package/dist/cjs/react/marks/alignment.js +11 -12
- package/dist/cjs/react/marks/breakout.js +7 -9
- package/dist/cjs/react/marks/link.js +13 -6
- package/dist/cjs/react/nodes/codeBlock.js +1 -1
- package/dist/cjs/react/nodes/codeBlockCopyButton.js +13 -11
- package/dist/cjs/react/nodes/embedCard.js +25 -33
- package/dist/cjs/react/nodes/heading-anchor.js +7 -6
- package/dist/cjs/react/nodes/mediaSingle/index.js +15 -4
- package/dist/cjs/react/nodes/mediaSingle/styles.js +7 -10
- package/dist/cjs/react/nodes/panel.js +26 -16
- package/dist/cjs/react/nodes/table/sticky.js +51 -54
- package/dist/cjs/react/nodes/table.js +2 -10
- package/dist/cjs/react/utils/performance/RenderTracking.js +52 -0
- package/dist/cjs/ui/Expand.js +40 -20
- package/dist/cjs/ui/MediaCard.js +4 -14
- package/dist/cjs/ui/Renderer/index.js +37 -48
- package/dist/cjs/ui/Renderer/style.js +58 -63
- package/dist/cjs/ui/Renderer/truncated-wrapper.js +19 -21
- package/dist/cjs/ui/SortingIcon.js +8 -9
- package/dist/cjs/ui/renderer-props.js +1 -3
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/analytics/enums.js +1 -0
- package/dist/es2019/react/marks/alignment.js +15 -7
- package/dist/es2019/react/marks/breakout.js +6 -5
- package/dist/es2019/react/marks/link.js +8 -5
- package/dist/es2019/react/nodes/codeBlock.js +1 -1
- package/dist/es2019/react/nodes/codeBlockCopyButton.js +12 -9
- package/dist/es2019/react/nodes/embedCard.js +16 -16
- package/dist/es2019/react/nodes/heading-anchor.js +9 -6
- package/dist/es2019/react/nodes/mediaSingle/index.js +10 -6
- package/dist/es2019/react/nodes/mediaSingle/styles.js +6 -7
- package/dist/es2019/react/nodes/panel.js +23 -16
- package/dist/es2019/react/nodes/table/sticky.js +48 -41
- package/dist/es2019/react/nodes/table.js +2 -5
- package/dist/es2019/react/utils/performance/RenderTracking.js +37 -0
- package/dist/es2019/ui/Expand.js +52 -28
- package/dist/es2019/ui/MediaCard.js +3 -6
- package/dist/es2019/ui/Renderer/index.js +37 -42
- package/dist/es2019/ui/Renderer/style.js +363 -336
- package/dist/es2019/ui/Renderer/truncated-wrapper.js +26 -15
- package/dist/es2019/ui/SortingIcon.js +9 -7
- package/dist/es2019/ui/renderer-props.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/analytics/enums.js +1 -0
- package/dist/esm/react/marks/alignment.js +13 -6
- package/dist/esm/react/marks/breakout.js +6 -5
- package/dist/esm/react/marks/link.js +7 -5
- package/dist/esm/react/nodes/codeBlock.js +1 -1
- package/dist/esm/react/nodes/codeBlockCopyButton.js +10 -7
- package/dist/esm/react/nodes/embedCard.js +19 -19
- package/dist/esm/react/nodes/heading-anchor.js +8 -6
- package/dist/esm/react/nodes/mediaSingle/index.js +11 -6
- package/dist/esm/react/nodes/mediaSingle/styles.js +5 -7
- package/dist/esm/react/nodes/panel.js +27 -15
- package/dist/esm/react/nodes/table/sticky.js +53 -52
- package/dist/esm/react/nodes/table.js +2 -8
- package/dist/esm/react/utils/performance/RenderTracking.js +39 -0
- package/dist/esm/ui/Expand.js +45 -21
- package/dist/esm/ui/MediaCard.js +3 -9
- package/dist/esm/ui/Renderer/index.js +38 -46
- package/dist/esm/ui/Renderer/style.js +55 -56
- package/dist/esm/ui/Renderer/truncated-wrapper.js +20 -14
- package/dist/esm/ui/SortingIcon.js +9 -7
- package/dist/esm/ui/renderer-props.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/analytics/enums.d.ts +1 -0
- package/dist/types/analytics/events.d.ts +7 -2
- package/dist/types/react/marks/alignment.d.ts +2 -2
- package/dist/types/react/marks/breakout.d.ts +4 -3
- package/dist/types/react/marks/link.d.ts +2 -2
- package/dist/types/react/nodes/embedCard.d.ts +3 -2
- package/dist/types/react/nodes/heading-anchor.d.ts +1 -0
- package/dist/types/react/nodes/mediaSingle/index.d.ts +1 -0
- package/dist/types/react/nodes/mediaSingle/styles.d.ts +2 -3
- package/dist/types/react/nodes/panel.d.ts +3 -1
- package/dist/types/react/nodes/table/sticky.d.ts +4 -2
- package/dist/types/react/utils/performance/RenderTracking.d.ts +15 -0
- package/dist/types/ui/Expand.d.ts +2 -2
- package/dist/types/ui/MediaCard.d.ts +1 -3
- package/dist/types/ui/Renderer/index.d.ts +0 -25
- package/dist/types/ui/Renderer/style.d.ts +1 -4
- package/dist/types/ui/Renderer/truncated-wrapper.d.ts +3 -1
- package/dist/types/ui/SortingIcon.d.ts +3 -3
- package/dist/types/ui/renderer-props.d.ts +14 -2
- package/package.json +17 -19
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
2
|
|
|
3
|
-
var _templateObject, _templateObject2, _templateObject3;
|
|
3
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
|
|
4
4
|
|
|
5
|
-
import styled, { css as deprecatedCss } from 'styled-components';
|
|
6
5
|
import { css } from '@emotion/react';
|
|
7
6
|
import { themed } from '@atlaskit/theme/components';
|
|
8
7
|
import { gridSize, fontFamily, fontSize, borderRadius } from '@atlaskit/theme/constants';
|
|
@@ -41,7 +40,7 @@ export var headingSizes = {
|
|
|
41
40
|
};
|
|
42
41
|
|
|
43
42
|
var headingAnchorStyle = function headingAnchorStyle(headingTag) {
|
|
44
|
-
return
|
|
43
|
+
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n /**\n * The copy link button doesn't reserve space in the DOM so that\n * the text alignment isn't impacted by the button/icon's space.\n */\n .", " {\n position: absolute;\n height: ", "em;\n\n margin-left: 6px;\n\n button {\n padding-left: 0;\n padding-right: 0;\n }\n }\n\n /**\n * Applies hover effects to the heading anchor link button\n * to fade in when the user rolls over the heading.\n *\n * The link is persistent on mobile, so we use feature detection\n * to enable hover effects for systems that support it (desktop).\n *\n * @see https://caniuse.com/mdn-css_at-rules_media_hover\n */\n @media (hover: hover) and (pointer: fine) {\n .", " {\n > button {\n opacity: 0;\n transform: translate(-8px, 0px);\n transition: opacity 0.2s ease 0s, transform 0.2s ease 0s;\n }\n }\n\n &:hover {\n .", " > button {\n opacity: 1;\n transform: none !important;\n }\n }\n }\n "])), HeadingAnchorWrapperClassName, headingSizes[headingTag].lineHeight, HeadingAnchorWrapperClassName, HeadingAnchorWrapperClassName);
|
|
45
44
|
};
|
|
46
45
|
|
|
47
46
|
var alignedHeadingAnchorStyle = function alignedHeadingAnchorStyle(_ref) {
|
|
@@ -51,7 +50,7 @@ var alignedHeadingAnchorStyle = function alignedHeadingAnchorStyle(_ref) {
|
|
|
51
50
|
return '';
|
|
52
51
|
}
|
|
53
52
|
|
|
54
|
-
return "\n .fabric-editor-block-mark[data-align] > {\n h1
|
|
53
|
+
return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n .fabric-editor-block-mark[data-align] > {\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n position: relative;\n }\n }\n\n /**\n * For right-alignment we flip the link to be before the heading\n * text so that the text is flush up against the edge of the editor's\n * container edge.\n */\n .fabric-editor-block-mark:not([data-align='center'])[data-align] {\n > {\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n // Using right to left text to achieve the inverse effect\n // of where the copy link button icon sits for left/center\n // alignment.\n // Although this is unorthodox it's the only approach which\n // allows the button to sit flush against the left edge of\n // bottom line of text.\n direction: rtl;\n\n // By default RTL will negatively impact the layout of special\n // characters within the heading text, and potentially other\n // nested inline nodes. To prevent this we insert pseudo elements\n // containing HTML entities to retain LTR for all heading content\n // except for the copy link button.\n > *:not(.", "):not(br) {\n ::before {\n // Open LTR: https://www.fileformat.info/info/unicode/char/202a/index.htm\n content: '\u202A';\n }\n ::after {\n // Close LTR: https://www.fileformat.info/info/unicode/char/202c/index.htm\n content: '\u202C';\n }\n }\n }\n }\n .", " {\n margin: 0 6px 0 0;\n }\n\n @media (hover: hover) and (pointer: fine) {\n .", " > button {\n transform: translate(8px, 0px);\n }\n }\n }\n "], ["\n .fabric-editor-block-mark[data-align] > {\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n position: relative;\n }\n }\n\n /**\n * For right-alignment we flip the link to be before the heading\n * text so that the text is flush up against the edge of the editor's\n * container edge.\n */\n .fabric-editor-block-mark:not([data-align='center'])[data-align] {\n > {\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n // Using right to left text to achieve the inverse effect\n // of where the copy link button icon sits for left/center\n // alignment.\n // Although this is unorthodox it's the only approach which\n // allows the button to sit flush against the left edge of\n // bottom line of text.\n direction: rtl;\n\n // By default RTL will negatively impact the layout of special\n // characters within the heading text, and potentially other\n // nested inline nodes. To prevent this we insert pseudo elements\n // containing HTML entities to retain LTR for all heading content\n // except for the copy link button.\n > *:not(.", "):not(br) {\n ::before {\n // Open LTR: https://www.fileformat.info/info/unicode/char/202a/index.htm\n content: '\\u202A';\n }\n ::after {\n // Close LTR: https://www.fileformat.info/info/unicode/char/202c/index.htm\n content: '\\u202C';\n }\n }\n }\n }\n .", " {\n margin: 0 6px 0 0;\n }\n\n @media (hover: hover) and (pointer: fine) {\n .", " > button {\n transform: translate(8px, 0px);\n }\n }\n }\n "])), HeadingAnchorWrapperClassName, HeadingAnchorWrapperClassName, HeadingAnchorWrapperClassName);
|
|
55
54
|
};
|
|
56
55
|
|
|
57
56
|
var tableSortableColumnStyle = function tableSortableColumnStyle(_ref2) {
|
|
@@ -68,72 +67,72 @@ var tableSortableColumnStyle = function tableSortableColumnStyle(_ref2) {
|
|
|
68
67
|
headingsCss = "\n /**\n * When the sort button is enabled we want the heading's copy link button\n * to reserve space so that it can prematurely wrap to avoid the button\n * being displayed underneath the sort button (hidden or obscured).\n *\n * The two buttons fight each other since the sort button is displayed\n * on hover of the <th /> and the copy link button is displayed on hover\n * of the heading.\n *\n * Note that this can break the WYSIWYG experience in the case where\n * a heading fills the width of the table cell and the only thing which\n * wraps is the copy link button. This is hopefully a rare fringe case.\n */\n .".concat(HeadingAnchorWrapperClassName, " {\n position: unset;\n }\n > {\n h1, h2, h3, h4, h5, h6 {\n margin-right: 30px;\n }\n }\n ");
|
|
69
68
|
}
|
|
70
69
|
|
|
71
|
-
return "\n ."
|
|
70
|
+
return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n .", " {\n padding: 0;\n\n .", " {\n width: 100%;\n height: 100%;\n cursor: pointer;\n padding: ", "px;\n border-width: 1.5px;\n border-style: solid;\n border-color: transparent;\n\n > *:first-child {\n margin-top: 0;\n }\n\n > .ProseMirror-gapcursor.-right:first-child + * {\n margin-top: 0;\n }\n\n > .ProseMirror-gapcursor:first-child + span + * {\n margin-top: 0;\n }\n\n @supports selector(:focus-visible) {\n &:focus {\n outline: unset;\n }\n &:focus-visible {\n border-color: ", ";\n }\n }\n\n ", "\n }\n\n &.", "\n .", " {\n cursor: default;\n }\n\n .", " {\n margin: 0;\n opacity: 1;\n transition: opacity 0.2s ease-in-out;\n }\n\n .", " {\n opacity: 0;\n }\n\n &:hover {\n .", " {\n opacity: 1;\n }\n }\n }\n "])), RendererCssClassName.SORTABLE_COLUMN, RendererCssClassName.SORTABLE_COLUMN_BUTTON, tableCellPadding, colors.B300, headingsCss, RendererCssClassName.SORTABLE_COLUMN_NOT_ALLOWED, RendererCssClassName.SORTABLE_COLUMN_BUTTON, RendererCssClassName.SORTABLE_COLUMN_ICON, RendererCssClassName.SORTABLE_COLUMN_NO_ORDER, RendererCssClassName.SORTABLE_COLUMN_NO_ORDER);
|
|
72
71
|
};
|
|
73
72
|
|
|
74
|
-
var fullPageStyles = function fullPageStyles(_ref3) {
|
|
75
|
-
var
|
|
76
|
-
|
|
73
|
+
var fullPageStyles = function fullPageStyles(_ref3, _ref4) {
|
|
74
|
+
var appearance = _ref3.appearance;
|
|
75
|
+
var theme = _ref4.theme;
|
|
77
76
|
|
|
78
77
|
if (appearance !== 'full-page' && appearance !== 'mobile') {
|
|
79
78
|
return '';
|
|
80
79
|
}
|
|
81
80
|
|
|
82
|
-
return "\n max-width: "
|
|
81
|
+
return css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n max-width: ", ";\n margin: 0 auto;\n padding: 0 ", "px;\n "])), theme && theme.layoutMaxWidth ? "".concat(theme.layoutMaxWidth, "px") : 'none', appearance === 'full-page' ? FullPagePadding : 0);
|
|
83
82
|
};
|
|
84
83
|
|
|
85
|
-
var fullWidthStyles = function fullWidthStyles(
|
|
86
|
-
var appearance =
|
|
84
|
+
var fullWidthStyles = function fullWidthStyles(_ref5) {
|
|
85
|
+
var appearance = _ref5.appearance;
|
|
87
86
|
|
|
88
87
|
if (appearance !== 'full-width') {
|
|
89
88
|
return '';
|
|
90
89
|
}
|
|
91
90
|
|
|
92
|
-
return "\n
|
|
91
|
+
return css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n max-width: ", "px;\n margin: 0 auto;\n\n .fabric-editor-breakout-mark,\n .pm-table-container,\n .ak-renderer-extension {\n width: 100% !important;\n }\n "])), akEditorFullWidthLayoutWidth);
|
|
93
92
|
};
|
|
94
93
|
|
|
95
|
-
export var rendererStyles = function rendererStyles(
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
94
|
+
export var rendererStyles = function rendererStyles(wrapperProps) {
|
|
95
|
+
return function (theme) {
|
|
96
|
+
// This is required to be compatible with styled-components prop structure.
|
|
97
|
+
var themeProps = {
|
|
98
|
+
theme: theme
|
|
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({
|
|
101
|
+
light: colors.N800,
|
|
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({
|
|
104
|
+
light: colors.N30A,
|
|
105
|
+
dark: colors.DN70
|
|
106
|
+
})(themeProps), borderRadius(), themed({
|
|
107
|
+
light: colors.N800,
|
|
108
|
+
dark: colors.DN600
|
|
109
|
+
})(themeProps), colors.R50, colors.R500, gridSize() * 3, richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, alignedHeadingAnchorStyle(wrapperProps), mediaSingleSharedStyle, RendererCssClassName.DOCUMENT, TableSharedCssClassName.TABLE_CONTAINER, RendererCssClassName.EXTENSION_OVERFLOW_CONTAINER, RendererCssClassName.EXTENSION, RendererCssClassName.DOCUMENT, RendererCssClassName.EXTENSION, blockNodesVerticalMargin, RendererCssClassName.EXTENSION_CENTER_ALIGN, TableSharedCssClassName.TABLE_NODE_WRAPPER, tableSharedStyle(themeProps), RendererCssClassName.DOCUMENT, TableSharedCssClassName.TABLE_CONTAINER, shadowClassNames.RIGHT_SHADOW, shadowClassNames.LEFT_SHADOW, tableMarginTop - 1, tableMarginTop, akEditorStickyHeaderZIndex, tableSortableColumnStyle(wrapperProps), RendererCssClassName.NUMBER_COLUMN, themed({
|
|
110
|
+
light: akEditorTableToolbar,
|
|
111
|
+
dark: akEditorTableToolbarDark
|
|
112
|
+
})(themeProps), themed({
|
|
113
|
+
light: akEditorTableBorder,
|
|
114
|
+
dark: akEditorTableBorderDark
|
|
115
|
+
})(themeProps), akEditorTableNumberColumnWidth, themed({
|
|
116
|
+
light: colors.N200,
|
|
117
|
+
dark: colors.DN400
|
|
118
|
+
})(themeProps), relativeFontSizeToBase16(fontSize()), RendererCssClassName.NUMBER_COLUMN, akEditorStickyHeaderZIndex, themed({
|
|
119
|
+
light: akEditorTableBorder,
|
|
120
|
+
dark: akEditorTableBorderDark
|
|
121
|
+
})(themeProps), themed({
|
|
122
|
+
light: akEditorTableBorder,
|
|
123
|
+
dark: akEditorTableBorderDark
|
|
124
|
+
})(themeProps), akEditorStickyHeaderZIndex, themed({
|
|
125
|
+
light: akEditorTableBorder,
|
|
126
|
+
dark: akEditorTableBorderDark
|
|
127
|
+
})(themeProps), themed({
|
|
128
|
+
light: akEditorTableBorder,
|
|
129
|
+
dark: akEditorTableBorderDark
|
|
130
|
+
})(themeProps), themed({
|
|
131
|
+
light: akEditorTableToolbar,
|
|
132
|
+
dark: akEditorTableToolbarDark
|
|
133
|
+
})(themeProps), themed({
|
|
134
|
+
light: akEditorTableToolbar,
|
|
135
|
+
dark: akEditorTableToolbarDark
|
|
136
|
+
})(themeProps), borderRadius(), blockNodesVerticalMargin, columnLayoutSharedStyle, gridSize() * 2.5, gridSize() * 4, gridMediumMaxWidth);
|
|
99
137
|
};
|
|
100
|
-
|
|
101
|
-
}; // prettier-ignore
|
|
102
|
-
|
|
103
|
-
export var DeprecatedWrapper = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n font-size: ", "px;\n line-height: 1.5rem;\n color: ", ";\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 & .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 + .", ":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 + .rich-media-wrapped + *: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\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 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 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, &.", "::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, th {\n position: relative;\n }\n }\n\n table[data-number-column='true'] {\n .", " {\n background-color: ", ";\n border-right: 1px solid ", ";\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 border-bottom: 1px solid ", ";\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, .sticky td {\n box-shadow: 0px 1px ", ", 0px -0.5px ", ", inset -1px 0px ", ", 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, .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 & [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, themed({
|
|
104
|
-
light: colors.N800,
|
|
105
|
-
dark: '#B8C7E0'
|
|
106
|
-
}), fullPageStyles, fullWidthStyles, headingAnchorStyle('h1'), headingAnchorStyle('h2'), headingAnchorStyle('h3'), headingAnchorStyle('h4'), headingAnchorStyle('h5'), headingAnchorStyle('h6'), colors.B400, colors.B300, colors.placeholderText, panelSharedStyles, ruleSharedStyles, fontFamily(), relativeFontSizeToBase16(fontSize()), themed({
|
|
107
|
-
light: colors.N30A,
|
|
108
|
-
dark: colors.DN70
|
|
109
|
-
}), borderRadius(), themed({
|
|
110
|
-
light: colors.N800,
|
|
111
|
-
dark: colors.DN600
|
|
112
|
-
}), colors.R50, colors.R500, gridSize() * 3, richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, alignedHeadingAnchorStyle, RendererCssClassName.DOCUMENT, TableSharedCssClassName.TABLE_CONTAINER, RendererCssClassName.EXTENSION_OVERFLOW_CONTAINER, RendererCssClassName.EXTENSION, RendererCssClassName.EXTENSION, blockNodesVerticalMargin, RendererCssClassName.EXTENSION_CENTER_ALIGN, TableSharedCssClassName.TABLE_NODE_WRAPPER, TableSharedCssClassName.TABLE_CONTAINER, shadowClassNames.RIGHT_SHADOW, shadowClassNames.LEFT_SHADOW, tableMarginTop - 1, tableMarginTop, akEditorStickyHeaderZIndex, tableSortableColumnStyle, RendererCssClassName.NUMBER_COLUMN, themed({
|
|
113
|
-
light: akEditorTableToolbar,
|
|
114
|
-
dark: akEditorTableToolbarDark
|
|
115
|
-
}), themed({
|
|
116
|
-
light: akEditorTableBorder,
|
|
117
|
-
dark: akEditorTableBorderDark
|
|
118
|
-
}), akEditorTableNumberColumnWidth, themed({
|
|
119
|
-
light: colors.N200,
|
|
120
|
-
dark: colors.DN400
|
|
121
|
-
}), relativeFontSizeToBase16(fontSize()), RendererCssClassName.NUMBER_COLUMN, akEditorStickyHeaderZIndex, themed({
|
|
122
|
-
light: akEditorTableBorder,
|
|
123
|
-
dark: akEditorTableBorderDark
|
|
124
|
-
}), themed({
|
|
125
|
-
light: akEditorTableBorder,
|
|
126
|
-
dark: akEditorTableBorderDark
|
|
127
|
-
}), akEditorStickyHeaderZIndex, themed({
|
|
128
|
-
light: akEditorTableBorder,
|
|
129
|
-
dark: akEditorTableBorderDark
|
|
130
|
-
}), themed({
|
|
131
|
-
light: akEditorTableBorder,
|
|
132
|
-
dark: akEditorTableBorderDark
|
|
133
|
-
}), themed({
|
|
134
|
-
light: akEditorTableToolbar,
|
|
135
|
-
dark: akEditorTableToolbarDark
|
|
136
|
-
}), themed({
|
|
137
|
-
light: akEditorTableToolbar,
|
|
138
|
-
dark: akEditorTableToolbarDark
|
|
139
|
-
}), borderRadius(), blockNodesVerticalMargin, gridSize() * 2.5, gridSize() * 4, gridMediumMaxWidth);
|
|
138
|
+
};
|
|
@@ -11,20 +11,26 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
11
11
|
|
|
12
12
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
/** @jsx jsx */
|
|
15
|
+
import { css, jsx } from '@emotion/react';
|
|
15
16
|
import { Component } from 'react';
|
|
16
|
-
|
|
17
|
-
var
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
17
|
+
|
|
18
|
+
var fadeOutStyles = function fadeOutStyles(maxHeight, top, backgroundColor) {
|
|
19
|
+
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n overflow-y: hidden;\n max-height: ", "px;\n &::after {\n content: '';\n position: absolute;\n top: ", "px;\n bottom: 0;\n left: 0;\n right: 0;\n background-image: linear-gradient(\n rgba(255, 255, 255, 0),\n ", "\n );\n }\n"])), maxHeight, top, backgroundColor);
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
var FadeOut = function FadeOut(props) {
|
|
23
|
+
var children = props.children,
|
|
24
|
+
backgroundColor = props.backgroundColor,
|
|
25
|
+
fadeHeight = props.fadeHeight,
|
|
26
|
+
height = props.height;
|
|
27
|
+
var top = height - fadeHeight;
|
|
28
|
+
var styles = fadeOutStyles(height, top, backgroundColor);
|
|
29
|
+
return jsx("div", {
|
|
30
|
+
css: styles
|
|
31
|
+
}, children);
|
|
32
|
+
};
|
|
33
|
+
|
|
28
34
|
export var TruncatedWrapper = /*#__PURE__*/function (_Component) {
|
|
29
35
|
_inherits(TruncatedWrapper, _Component);
|
|
30
36
|
|
|
@@ -47,7 +53,7 @@ export var TruncatedWrapper = /*#__PURE__*/function (_Component) {
|
|
|
47
53
|
_this$props$backgroun = _this$props.backgroundColor,
|
|
48
54
|
backgroundColor = _this$props$backgroun === void 0 ? 'white' : _this$props$backgroun,
|
|
49
55
|
children = _this$props.children;
|
|
50
|
-
return
|
|
56
|
+
return jsx(FadeOut, {
|
|
51
57
|
height: height,
|
|
52
58
|
fadeHeight: fadeHeight,
|
|
53
59
|
backgroundColor: backgroundColor
|
|
@@ -2,8 +2,8 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
2
2
|
|
|
3
3
|
var _templateObject, _templateObject2;
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
import
|
|
5
|
+
/** @jsx jsx */
|
|
6
|
+
import { css, jsx } from '@emotion/react';
|
|
7
7
|
import Tooltip from '@atlaskit/tooltip';
|
|
8
8
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
9
9
|
import { N20, N30 } from '@atlaskit/theme/colors';
|
|
@@ -24,8 +24,8 @@ export var StatusClassNames;
|
|
|
24
24
|
StatusClassNames["SORTING_NOT_ALLOWED"] = "sorting-icon-svg__not-allowed";
|
|
25
25
|
})(StatusClassNames || (StatusClassNames = {}));
|
|
26
26
|
|
|
27
|
-
var
|
|
28
|
-
var
|
|
27
|
+
var wrapperStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: absolute;\n display: flex;\n height: 28px;\n width: 28px;\n margin: 6px;\n right: 0;\n top: 0;\n border: 2px solid #fff;\n border-radius: ", "px;\n background-color: ", ";\n justify-content: center;\n align-items: center;\n\n &:hover {\n background-color: ", ";\n }\n\n &.", " {\n cursor: not-allowed;\n }\n"])), gridSize() / 2, N20, N30, StatusClassNames.SORTING_NOT_ALLOWED);
|
|
28
|
+
var tableSortingIconStyles = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: 8px;\n height: 12px;\n transition: transform 0.3s cubic-bezier(0.15, 1, 0.3, 1);\n transform-origin: 50% 50%;\n background-image: url(", ");\n\n &.", " {\n transform: rotate(-180deg);\n }\n\n &.", "-inactive {\n opacity: 0.7;\n }\n"])), TableSortIconDataUrl, StatusClassNames.DESC, TABLE_SORTING_ICON_CLASS);
|
|
29
29
|
|
|
30
30
|
var getClassName = function getClassName(status) {
|
|
31
31
|
switch (status) {
|
|
@@ -71,13 +71,15 @@ var SortingIcon = function SortingIcon(_ref) {
|
|
|
71
71
|
var activated = sortOrdered !== SortOrder.NO_ORDER;
|
|
72
72
|
var wrapperClassName = !isSortingAllowed ? StatusClassNames.SORTING_NOT_ALLOWED : '';
|
|
73
73
|
var content = getTooltipTitle(intl, isSortingAllowed, sortOrdered);
|
|
74
|
-
return
|
|
74
|
+
return jsx(Tooltip, {
|
|
75
75
|
delay: 0,
|
|
76
76
|
content: content,
|
|
77
77
|
position: "top"
|
|
78
|
-
},
|
|
78
|
+
}, jsx("figure", {
|
|
79
|
+
css: wrapperStyles,
|
|
79
80
|
className: wrapperClassName
|
|
80
|
-
},
|
|
81
|
+
}, jsx("div", {
|
|
82
|
+
css: tableSortingIconStyles,
|
|
81
83
|
className: "".concat(getClassName(sortOrdered), " ").concat(TABLE_SORTING_ICON_CLASS, "-").concat(activated ? 'active' : 'inactive')
|
|
82
84
|
})));
|
|
83
85
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import { ACTION_SUBJECT } from '../analytics/enums';
|
package/dist/esm/version.json
CHANGED
|
@@ -7,6 +7,7 @@ export declare enum EVENT_TYPE {
|
|
|
7
7
|
export declare enum ACTION {
|
|
8
8
|
STARTED = "started",
|
|
9
9
|
RENDERED = "rendered",
|
|
10
|
+
RE_RENDERED = "reRendered",
|
|
10
11
|
RENDERER_TTI = "tti",
|
|
11
12
|
CRASHED = "unhandledErrorCaught",
|
|
12
13
|
INVALID_PROSEMIRROR_DOCUMENT = "invalidProsemirrorDocument",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ACTION, ACTION_SUBJECT, AEP, EVENT_TYPE, ACTION_SUBJECT_ID } from './enums';
|
|
2
|
-
import { SEVERITY, UNSUPPORTED_CONTENT_LEVEL_SEVERITY } from '@atlaskit/editor-common/utils';
|
|
2
|
+
import { PropsDifference, SEVERITY, ShallowPropsDifference, UNSUPPORTED_CONTENT_LEVEL_SEVERITY } from '@atlaskit/editor-common/utils';
|
|
3
3
|
import type { UnsupportedContentPayload } from '@atlaskit/editor-common/utils';
|
|
4
4
|
import { SortOrder } from '@atlaskit/editor-common/types';
|
|
5
5
|
import { UnsupportedContentTooltipPayload } from '@atlaskit/editor-common/src/utils/analytics';
|
|
@@ -22,6 +22,11 @@ declare type RendererRenderedAEP = AEP<ACTION.RENDERED, ACTION_SUBJECT.RENDERER,
|
|
|
22
22
|
nodes: Record<string, number>;
|
|
23
23
|
severity?: SEVERITY;
|
|
24
24
|
}, EVENT_TYPE.OPERATIONAL>;
|
|
25
|
+
declare type RendererReRenderedAEP<Props> = AEP<ACTION.RE_RENDERED, ACTION_SUBJECT.RENDERER, undefined, {
|
|
26
|
+
propsDifference: PropsDifference<Props> | ShallowPropsDifference<Props>;
|
|
27
|
+
count: number;
|
|
28
|
+
componentId?: string;
|
|
29
|
+
}, EVENT_TYPE.OPERATIONAL>;
|
|
25
30
|
export declare type ComponentCrashErrorAEP = AEP<ACTION.CRASHED, ACTION_SUBJECT.RENDERER, ACTION_SUBJECT_ID, {
|
|
26
31
|
platform: PLATFORM.WEB;
|
|
27
32
|
errorMessage?: string;
|
|
@@ -102,5 +107,5 @@ declare type RendererTTIAEP = AEP<ACTION.RENDERER_TTI, ACTION_SUBJECT.RENDERER,
|
|
|
102
107
|
ttiFromInvocation: number;
|
|
103
108
|
canceled: boolean;
|
|
104
109
|
}, EVENT_TYPE.OPERATIONAL>;
|
|
105
|
-
export declare type AnalyticsEventPayload = RendererStartAEP | RendererRenderedAEP | ComponentCrashErrorAEP | RendererUnsupportedContentLevelsTrackingSucceeded | RendererUnsupportedContentLevelsTrackingErrored | RendererSelectAllCaughtAEP | RendererSelectAllEscapedAEP | HeadingAnchorLinkButtonAEP | AnchorLinkAEP | TableSortColumnNotAllowedAEP | TableSortColumnAEP | VisitLinkAEP | VisitMediaLinkAEP | ExpandAEP | UnsupportedContentPayload | UnsupportedContentTooltipPayload | AnnotationAEP | AnnotationDeleteAEP | MediaLnkTransformedAEP | InvalidProsemirrorDocumentErrorAEP | RendererTTIAEP;
|
|
110
|
+
export declare type AnalyticsEventPayload<T = void> = RendererStartAEP | RendererRenderedAEP | RendererReRenderedAEP<T> | ComponentCrashErrorAEP | RendererUnsupportedContentLevelsTrackingSucceeded | RendererUnsupportedContentLevelsTrackingErrored | RendererSelectAllCaughtAEP | RendererSelectAllEscapedAEP | HeadingAnchorLinkButtonAEP | AnchorLinkAEP | TableSortColumnNotAllowedAEP | TableSortColumnAEP | VisitLinkAEP | VisitMediaLinkAEP | ExpandAEP | UnsupportedContentPayload | UnsupportedContentTooltipPayload | AnnotationAEP | AnnotationDeleteAEP | MediaLnkTransformedAEP | InvalidProsemirrorDocumentErrorAEP | RendererTTIAEP;
|
|
106
111
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx } from '@emotion/react';
|
|
2
2
|
import { AlignmentAttributes } from '@atlaskit/adf-schema';
|
|
3
3
|
import { MarkProps } from '../types';
|
|
4
|
-
export default function Alignment(props: MarkProps<AlignmentAttributes>): JSX.Element;
|
|
4
|
+
export default function Alignment(props: MarkProps<AlignmentAttributes>): jsx.JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import { jsx } from '@emotion/react';
|
|
2
3
|
import { BreakoutMarkAttrs } from '@atlaskit/adf-schema';
|
|
3
4
|
import { MarkProps } from '../types';
|
|
4
|
-
export declare const
|
|
5
|
-
export default function Breakout(props: MarkProps<BreakoutMarkAttrs>): JSX.Element;
|
|
5
|
+
export declare const wrapperStyles: import("@emotion/react").SerializedStyles;
|
|
6
|
+
export default function Breakout(props: MarkProps<BreakoutMarkAttrs>): jsx.JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx } from '@emotion/react';
|
|
2
2
|
import { LinkAttributes } from '@atlaskit/adf-schema';
|
|
3
3
|
import { MarkProps } from '../types';
|
|
4
4
|
interface LinkProps extends LinkAttributes {
|
|
5
5
|
target?: string;
|
|
6
6
|
isMediaLink?: boolean;
|
|
7
7
|
}
|
|
8
|
-
export default function Link(props: MarkProps<LinkProps>): JSX.Element;
|
|
8
|
+
export default function Link(props: MarkProps<LinkProps>): jsx.JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import { jsx } from '@emotion/react';
|
|
2
3
|
import type { EventHandlers } from '@atlaskit/editor-common/ui';
|
|
3
4
|
import { RichMediaLayout } from '@atlaskit/adf-schema';
|
|
4
5
|
import { RendererAppearance } from '../../ui/Renderer/types';
|
|
@@ -14,4 +15,4 @@ export default function EmbedCard(props: {
|
|
|
14
15
|
rendererAppearance?: RendererAppearance;
|
|
15
16
|
isInsideOfBlockNode?: boolean;
|
|
16
17
|
allowDynamicTextSizing?: boolean;
|
|
17
|
-
}): JSX.Element;
|
|
18
|
+
}): jsx.JSX.Element;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
|
|
3
|
-
}>;
|
|
1
|
+
export declare const uiMediaSingleBaseStyles: import("@emotion/react").SerializedStyles;
|
|
2
|
+
export declare const uiMediaSingleLayoutStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
1
2
|
import React from 'react';
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
2
4
|
import { PanelType } from '@atlaskit/adf-schema';
|
|
3
5
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
4
6
|
export interface Props {
|
|
@@ -11,5 +13,5 @@ export interface Props {
|
|
|
11
13
|
panelIconText?: string;
|
|
12
14
|
panelColor?: string;
|
|
13
15
|
}
|
|
14
|
-
declare const Panel: (props: Props) => JSX.Element;
|
|
16
|
+
declare const Panel: (props: Props) => jsx.JSX.Element;
|
|
15
17
|
export default Panel;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
1
2
|
import React from 'react';
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
2
4
|
import type { OverflowShadowProps } from '@atlaskit/editor-common/ui';
|
|
3
5
|
import { TableLayout } from '@atlaskit/adf-schema';
|
|
4
6
|
export declare type StickyMode = 'none' | 'stick' | 'pin-bottom';
|
|
@@ -8,7 +10,7 @@ interface FixedProps {
|
|
|
8
10
|
wrapperWidth: number;
|
|
9
11
|
mode: StickyMode;
|
|
10
12
|
}
|
|
11
|
-
export declare const FixedTableDiv:
|
|
13
|
+
export declare const FixedTableDiv: React.FC<FixedProps>;
|
|
12
14
|
export declare type StickyTableProps = {
|
|
13
15
|
left?: number;
|
|
14
16
|
top?: number;
|
|
@@ -24,7 +26,7 @@ export declare type StickyTableProps = {
|
|
|
24
26
|
renderWidth: number;
|
|
25
27
|
allowDynamicTextSizing?: boolean;
|
|
26
28
|
} & OverflowShadowProps;
|
|
27
|
-
export declare const StickyTable: ({ top, left, mode, shadowClassNames, innerRef, wrapperWidth, tableWidth, isNumberColumnEnabled, layout, children, columnWidths, renderWidth, allowDynamicTextSizing, rowHeight, }: StickyTableProps) => JSX.Element;
|
|
29
|
+
export declare const StickyTable: ({ top, left, mode, shadowClassNames, innerRef, wrapperWidth, tableWidth, isNumberColumnEnabled, layout, children, columnWidths, renderWidth, allowDynamicTextSizing, rowHeight, }: StickyTableProps) => jsx.JSX.Element;
|
|
28
30
|
export declare class OverflowParent {
|
|
29
31
|
private ref;
|
|
30
32
|
private constructor();
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { AnalyticsEventPayload } from '../../../analytics/events';
|
|
2
|
+
import { ACTION_SUBJECT, ACTION } from '../../../analytics/enums';
|
|
3
|
+
export declare type FireAnalyticsCallback = <T = void>(payload: AnalyticsEventPayload<T>) => void | undefined;
|
|
4
|
+
declare type RenderActions = ACTION.RE_RENDERED;
|
|
5
|
+
declare type RenderActionSubjects = ACTION_SUBJECT.RENDERER;
|
|
6
|
+
export declare type RenderTrackingProps<ComponentProps> = {
|
|
7
|
+
componentProps: ComponentProps;
|
|
8
|
+
action: RenderActions;
|
|
9
|
+
actionSubject: RenderActionSubjects;
|
|
10
|
+
handleAnalyticsEvent: FireAnalyticsCallback;
|
|
11
|
+
propsToIgnore?: Array<keyof ComponentProps>;
|
|
12
|
+
useShallow?: boolean;
|
|
13
|
+
};
|
|
14
|
+
export declare function RenderTracking<Props>(props: RenderTrackingProps<Props>): null;
|
|
15
|
+
export {};
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { AnalyticsEventPayload } from '../analytics/events';
|
|
4
4
|
import { WrappedComponentProps } from 'react-intl-next';
|
|
5
|
-
export
|
|
5
|
+
export declare type StyleProps = {
|
|
6
6
|
expanded?: boolean;
|
|
7
7
|
focused?: boolean;
|
|
8
8
|
'data-node-type'?: 'expand' | 'nestedExpand';
|
|
9
9
|
'data-title'?: string;
|
|
10
|
-
}
|
|
10
|
+
};
|
|
11
11
|
export interface ExpandProps {
|
|
12
12
|
title: string;
|
|
13
13
|
nodeType: 'expand' | 'nestedExpand';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Component } from 'react';
|
|
1
|
+
import React, { Component } from 'react';
|
|
3
2
|
import { ADFEntity } from '@atlaskit/adf-utils';
|
|
4
3
|
import { CardAppearance, CardDimensions, CardOnClickCallback, NumericalCardDimensions } from '@atlaskit/media-card';
|
|
5
4
|
import { MediaClientConfig } from '@atlaskit/media-core';
|
|
@@ -65,7 +64,6 @@ export declare class MediaCardInternal extends Component<MediaCardProps, State>
|
|
|
65
64
|
private getOnCardClickCallback;
|
|
66
65
|
render(): JSX.Element | null;
|
|
67
66
|
}
|
|
68
|
-
export declare const CardWrapper: import("styled-components").StyledComponentClass<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
69
67
|
export declare const getClipboardAttrs: ({ id, alt, collection, contextIdentifierProvider, originalDimensions, fileState, }: {
|
|
70
68
|
id: string;
|
|
71
69
|
alt?: string | undefined;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import React from 'react';
|
|
3
1
|
import { jsx } from '@emotion/react';
|
|
4
2
|
import { PureComponent } from 'react';
|
|
5
|
-
import { RendererAppearance } from './types';
|
|
6
3
|
import { RendererProps } from '../renderer-props';
|
|
7
4
|
export declare const NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
8
5
|
export declare const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
@@ -31,27 +28,5 @@ export declare class Renderer extends PureComponent<RendererProps> {
|
|
|
31
28
|
render(): jsx.JSX.Element;
|
|
32
29
|
componentWillUnmount(): void;
|
|
33
30
|
}
|
|
34
|
-
declare type RendererWrapperProps = {
|
|
35
|
-
appearance: RendererAppearance;
|
|
36
|
-
dynamicTextSizing: boolean;
|
|
37
|
-
innerRef?: React.RefObject<HTMLDivElement>;
|
|
38
|
-
allowColumnSorting?: boolean;
|
|
39
|
-
allowCopyToClipboard?: boolean;
|
|
40
|
-
allowPlaceholderText?: boolean;
|
|
41
|
-
allowCustomPanels?: boolean;
|
|
42
|
-
allowNestedHeaderLinks: boolean;
|
|
43
|
-
onClick?: (event: React.MouseEvent) => void;
|
|
44
|
-
onMouseDown?: (event: React.MouseEvent) => void;
|
|
45
|
-
} & {
|
|
46
|
-
children?: React.ReactNode;
|
|
47
|
-
};
|
|
48
|
-
/**
|
|
49
|
-
* When the product doesn't provide a IframeWidthObserverFallbackWrapper,
|
|
50
|
-
* we will give one to the renderer,
|
|
51
|
-
*
|
|
52
|
-
* so if we have more than one `WidthProvider` on the content,
|
|
53
|
-
* only one iframe will be created on the older browsers.
|
|
54
|
-
*/
|
|
55
|
-
export declare function RendererWrapper(props: RendererWrapperProps): jsx.JSX.Element;
|
|
56
31
|
declare const RendererWithAnnotationSelection: (props: RendererProps) => jsx.JSX.Element;
|
|
57
32
|
export default RendererWithAnnotationSelection;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
2
1
|
import { Theme } from '@emotion/react';
|
|
3
2
|
import { RendererAppearance } from './types';
|
|
4
3
|
export declare const FullPagePadding = 32;
|
|
5
4
|
export declare type RendererWrapperProps = {
|
|
6
5
|
appearance?: RendererAppearance;
|
|
7
|
-
theme?: any;
|
|
8
6
|
allowNestedHeaderLinks: boolean;
|
|
9
7
|
allowColumnSorting: boolean;
|
|
10
8
|
};
|
|
@@ -13,5 +11,4 @@ export declare const headingSizes: {
|
|
|
13
11
|
[key: string]: number;
|
|
14
12
|
};
|
|
15
13
|
};
|
|
16
|
-
export declare const rendererStyles: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
17
|
-
export declare const DeprecatedWrapper: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement> & RendererWrapperProps & HTMLAttributes<{}>, any, import("react").ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement> & RendererWrapperProps & HTMLAttributes<{}>>;
|
|
14
|
+
export declare const rendererStyles: (wrapperProps: RendererWrapperProps) => (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import { jsx } from '@emotion/react';
|
|
1
3
|
import { Component } from 'react';
|
|
2
4
|
export interface TruncatedWrapperProps {
|
|
3
5
|
height?: number;
|
|
@@ -6,5 +8,5 @@ export interface TruncatedWrapperProps {
|
|
|
6
8
|
}
|
|
7
9
|
export declare class TruncatedWrapper extends Component<TruncatedWrapperProps, {}> {
|
|
8
10
|
constructor(props: TruncatedWrapperProps);
|
|
9
|
-
render(): JSX.Element;
|
|
11
|
+
render(): jsx.JSX.Element;
|
|
10
12
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { SortOrder } from '@atlaskit/editor-common/types';
|
|
3
3
|
import { WrappedComponentProps } from 'react-intl-next';
|
|
4
4
|
export declare const TableSortIconDataUrl: string;
|
|
@@ -12,7 +12,7 @@ declare type Props = {
|
|
|
12
12
|
isSortingAllowed: boolean;
|
|
13
13
|
sortOrdered?: SortOrder;
|
|
14
14
|
} & WrappedComponentProps;
|
|
15
|
-
declare const _default:
|
|
16
|
-
WrappedComponent:
|
|
15
|
+
declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<Props>> & {
|
|
16
|
+
WrappedComponent: import("react").ComponentType<Props>;
|
|
17
17
|
};
|
|
18
18
|
export default _default;
|