@atlaskit/renderer 96.0.0 → 97.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 +21 -1
- package/dist/cjs/react/nodes/mediaInline.js +2 -2
- package/dist/cjs/react/nodes/panel.js +7 -5
- package/dist/cjs/react/nodes/table/sticky.js +26 -13
- package/dist/cjs/utils.js +0 -24
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/react/nodes/panel.js +19 -16
- package/dist/es2019/react/nodes/table/sticky.js +24 -6
- package/dist/es2019/utils.js +0 -22
- package/dist/es2019/version.json +1 -1
- package/dist/esm/react/nodes/heading-anchor.js +1 -1
- package/dist/esm/react/nodes/mediaInline.js +1 -1
- package/dist/esm/react/nodes/panel.js +7 -5
- package/dist/esm/react/nodes/table/sticky.js +24 -4
- package/dist/esm/react/nodes/task-item-with-providers.js +1 -1
- package/dist/esm/ui/MediaCard.js +2 -1
- package/dist/esm/utils.js +0 -22
- package/dist/esm/version.json +1 -1
- package/dist/types/utils.d.ts +4 -8
- package/package.json +16 -15
- package/report.api.md +225 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 97.0.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 96.0.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`d5ebbd97b8c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d5ebbd97b8c) - ED-15264 add styled-components dependency
|
|
14
|
+
|
|
15
|
+
## 96.0.1
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [`9dc961ea69e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9dc961ea69e) - ED-14610: reduce code bundled with table sticky headers
|
|
20
|
+
- [`d6b54a2fd48`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d6b54a2fd48) - [ux] Fix custom panel dark mode colour regression
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
|
|
3
23
|
## 96.0.0
|
|
4
24
|
|
|
5
25
|
### Major Changes
|
|
@@ -43,7 +63,7 @@
|
|
|
43
63
|
### Patch Changes
|
|
44
64
|
|
|
45
65
|
- [`ccde3d9eb43`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ccde3d9eb43) - [ux] ED-10335: memoize schema, validation and serialization for Renderer
|
|
46
|
-
- [`59e17ae76c1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/59e17ae76c1) - [ux] ED-14961
|
|
66
|
+
- [`59e17ae76c1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/59e17ae76c1) - [ux] ED-14961: fix table sticky header in renderer overlapping typeahead popup in comment section
|
|
47
67
|
- [`47a59c220af`](https://bitbucket.org/atlassian/atlassian-frontend/commits/47a59c220af) - [ux] ED-10334: memoised schema.nodeFromJSON() and node.check() in Renderer.renderDocument()
|
|
48
68
|
- [`08edcd36c6f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/08edcd36c6f) - [ux] Convert RGB color usage to Design Tokens. This change is backwards compatible with existing theming
|
|
49
69
|
- Updated dependencies
|
|
@@ -9,10 +9,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
9
9
|
});
|
|
10
10
|
exports.default = exports.RenderMediaInline = void 0;
|
|
11
11
|
|
|
12
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
|
-
|
|
14
12
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
15
13
|
|
|
14
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
15
|
+
|
|
16
16
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
17
17
|
|
|
18
18
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
@@ -40,13 +40,15 @@ var PanelStyled = function PanelStyled(props) {
|
|
|
40
40
|
|
|
41
41
|
if (props['data-panel-type'] === _adfSchema.PanelType.CUSTOM && props.backgroundColor) {
|
|
42
42
|
styles = function styles(theme) {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
dark: _panel.getPanelBackgroundDarkModeColors
|
|
43
|
+
var customStyle = (0, _theme.themed)({
|
|
44
|
+
dark: _panel.getPanelBackgroundDarkModeColors,
|
|
45
|
+
light: "background-color: ".concat(props.backgroundColor, ";")
|
|
47
46
|
})({
|
|
48
47
|
theme: theme
|
|
49
|
-
})
|
|
48
|
+
});
|
|
49
|
+
return (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n &.", " {\n ", "\n }\n\n &[data-panel-type=", "] {\n ", ";\n }\n "])), _panel.PanelSharedCssClassName.prefix, (0, _panel.panelSharedStylesWithoutPrefix)({
|
|
50
|
+
theme: theme
|
|
51
|
+
}), _adfSchema.PanelType.CUSTOM, customStyle);
|
|
50
52
|
};
|
|
51
53
|
}
|
|
52
54
|
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
|
|
5
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
|
-
|
|
7
5
|
Object.defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
@@ -25,24 +23,16 @@ var _styles = require("@atlaskit/editor-common/styles");
|
|
|
25
23
|
|
|
26
24
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
27
25
|
|
|
28
|
-
var
|
|
26
|
+
var _colors = require("@atlaskit/theme/colors");
|
|
29
27
|
|
|
30
28
|
var _tokens = require("@atlaskit/tokens");
|
|
31
29
|
|
|
32
|
-
var _utils = require("../../../utils");
|
|
33
|
-
|
|
34
30
|
var _table = require("./table");
|
|
35
31
|
|
|
36
32
|
var _injectProps = require("../../utils/inject-props");
|
|
37
33
|
|
|
38
34
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
39
35
|
|
|
40
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
41
|
-
|
|
42
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
43
|
-
|
|
44
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
45
|
-
var N40A = colors.N40A;
|
|
46
36
|
var tableStickyPadding = 8;
|
|
47
37
|
exports.tableStickyPadding = tableStickyPadding;
|
|
48
38
|
var modeSpecficStyles = {
|
|
@@ -52,7 +42,7 @@ var modeSpecficStyles = {
|
|
|
52
42
|
}; // TODO: Quality ticket: https://product-fabric.atlassian.net/browse/DSP-4123
|
|
53
43
|
|
|
54
44
|
var fixedTableDivStaticStyles = function fixedTableDivStaticStyles(top, width) {
|
|
55
|
-
return (0, _react2.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n ", "\n width: ", "px;\n z-index: ", ";\n &\n .", ",\n &\n .", "\n > table {\n margin-top: 0;\n margin-bottom: 0;\n }\n\n border-top: ", "px solid\n ", ";\n background: ", ";\n box-shadow: ", ";\n\n div[data-expanded='false'] & {\n display: none;\n }\n\n &\n .", ".right-shadow::after,\n &\n .", ".left-shadow::before {\n top: 0px;\n height: 100%;\n }\n"])), typeof top === 'number' && "top: ".concat(top, "px;"), width, _editorSharedStyles.akEditorStickyHeaderZIndex, _styles.TableSharedCssClassName.TABLE_CONTAINER, _styles.TableSharedCssClassName.TABLE_STICKY_WRAPPER, tableStickyPadding, (0, _tokens.token)('elevation.surface', 'white'), (0, _tokens.token)('elevation.surface.overlay', 'white'), (0, _tokens.token)('elevation.shadow.overflow', "0 6px 4px -4px ".concat(N40A)), _styles.TableSharedCssClassName.TABLE_CONTAINER, _styles.TableSharedCssClassName.TABLE_CONTAINER);
|
|
45
|
+
return (0, _react2.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n ", "\n width: ", "px;\n z-index: ", ";\n &\n .", ",\n &\n .", "\n > table {\n margin-top: 0;\n margin-bottom: 0;\n }\n\n border-top: ", "px solid\n ", ";\n background: ", ";\n box-shadow: ", ";\n\n div[data-expanded='false'] & {\n display: none;\n }\n\n &\n .", ".right-shadow::after,\n &\n .", ".left-shadow::before {\n top: 0px;\n height: 100%;\n }\n"])), typeof top === 'number' && "top: ".concat(top, "px;"), width, _editorSharedStyles.akEditorStickyHeaderZIndex, _styles.TableSharedCssClassName.TABLE_CONTAINER, _styles.TableSharedCssClassName.TABLE_STICKY_WRAPPER, tableStickyPadding, (0, _tokens.token)('elevation.surface', 'white'), (0, _tokens.token)('elevation.surface.overlay', 'white'), (0, _tokens.token)('elevation.shadow.overflow', "0 6px 4px -4px ".concat(_colors.N40A)), _styles.TableSharedCssClassName.TABLE_CONTAINER, _styles.TableSharedCssClassName.TABLE_CONTAINER);
|
|
56
46
|
};
|
|
57
47
|
|
|
58
48
|
var FixedTableDiv = function FixedTableDiv(props) {
|
|
@@ -123,9 +113,32 @@ var StickyTable = function StickyTable(_ref) {
|
|
|
123
113
|
invisible: true
|
|
124
114
|
}))))));
|
|
125
115
|
};
|
|
116
|
+
/**
|
|
117
|
+
* Traverse DOM Tree upwards looking for table parents with "overflow: scroll".
|
|
118
|
+
*/
|
|
119
|
+
|
|
126
120
|
|
|
127
121
|
exports.StickyTable = StickyTable;
|
|
128
122
|
|
|
123
|
+
function findHorizontalOverflowScrollParent(table) {
|
|
124
|
+
var parent = table;
|
|
125
|
+
|
|
126
|
+
if (!parent) {
|
|
127
|
+
return null;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
while (parent = parent.parentElement) {
|
|
131
|
+
// IE11 on Window 8 doesn't show styles from CSS when accessing through element.style property.
|
|
132
|
+
var style = window.getComputedStyle(parent);
|
|
133
|
+
|
|
134
|
+
if (style.overflow === 'scroll' || style.overflowY === 'scroll') {
|
|
135
|
+
return parent;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
return null;
|
|
140
|
+
}
|
|
141
|
+
|
|
129
142
|
var OverflowParent = /*#__PURE__*/function () {
|
|
130
143
|
function OverflowParent(ref) {
|
|
131
144
|
(0, _classCallCheck2.default)(this, OverflowParent);
|
|
@@ -172,7 +185,7 @@ var OverflowParent = /*#__PURE__*/function () {
|
|
|
172
185
|
}], [{
|
|
173
186
|
key: "fromElement",
|
|
174
187
|
value: function fromElement(el) {
|
|
175
|
-
return new OverflowParent(
|
|
188
|
+
return new OverflowParent(findHorizontalOverflowScrollParent(el) || window);
|
|
176
189
|
}
|
|
177
190
|
}]);
|
|
178
191
|
return OverflowParent;
|
package/dist/cjs/utils.js
CHANGED
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.ADFEncoder = void 0;
|
|
9
|
-
exports.findHorizontalOverflowScrollParent = findHorizontalOverflowScrollParent;
|
|
10
9
|
exports.findInTree = findInTree;
|
|
11
10
|
exports.getText = exports.getPlatform = exports.getEventHandler = void 0;
|
|
12
11
|
|
|
@@ -41,32 +40,9 @@ var getEventHandler = function getEventHandler(eventHandlers, type) {
|
|
|
41
40
|
var eventName = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'onClick';
|
|
42
41
|
return eventHandlers && type && eventHandlers[type] && eventHandlers[type][eventName];
|
|
43
42
|
};
|
|
44
|
-
/**
|
|
45
|
-
* Traverse DOM Tree upwards looking for table parents with "overflow: scroll".
|
|
46
|
-
*/
|
|
47
|
-
|
|
48
43
|
|
|
49
44
|
exports.getEventHandler = getEventHandler;
|
|
50
45
|
|
|
51
|
-
function findHorizontalOverflowScrollParent(table) {
|
|
52
|
-
var parent = table;
|
|
53
|
-
|
|
54
|
-
if (!parent) {
|
|
55
|
-
return null;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
while (parent = parent.parentElement) {
|
|
59
|
-
// IE11 on Window 8 doesn't show styles from CSS when accessing through element.style property.
|
|
60
|
-
var style = window.getComputedStyle(parent);
|
|
61
|
-
|
|
62
|
-
if (style.overflow === 'scroll' || style.overflowY === 'scroll') {
|
|
63
|
-
return parent;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
return null;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
46
|
var getPlatform = function getPlatform(rendererAppearance) {
|
|
71
47
|
if (rendererAppearance === 'mobile') {
|
|
72
48
|
return 'mobile';
|
package/dist/cjs/version.json
CHANGED
|
@@ -23,22 +23,25 @@ const PanelStyled = props => {
|
|
|
23
23
|
`;
|
|
24
24
|
|
|
25
25
|
if (props['data-panel-type'] === PanelType.CUSTOM && props.backgroundColor) {
|
|
26
|
-
styles = theme =>
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
26
|
+
styles = theme => {
|
|
27
|
+
const customStyle = themed({
|
|
28
|
+
dark: getPanelBackgroundDarkModeColors,
|
|
29
|
+
light: `background-color: ${props.backgroundColor};`
|
|
30
|
+
})({
|
|
31
|
+
theme
|
|
32
|
+
});
|
|
33
|
+
return css`
|
|
34
|
+
&.${PanelSharedCssClassName.prefix} {
|
|
35
|
+
${panelSharedStylesWithoutPrefix({
|
|
36
|
+
theme
|
|
37
|
+
})}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&[data-panel-type=${PanelType.CUSTOM}] {
|
|
41
|
+
${customStyle};
|
|
42
|
+
}
|
|
43
|
+
`;
|
|
44
|
+
};
|
|
42
45
|
}
|
|
43
46
|
|
|
44
47
|
return jsx("div", _extends({
|
|
@@ -5,13 +5,8 @@ import React from 'react';
|
|
|
5
5
|
import { css, jsx } from '@emotion/react';
|
|
6
6
|
import { TableSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
7
7
|
import { akEditorStickyHeaderZIndex } from '@atlaskit/editor-shared-styles';
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
const {
|
|
11
|
-
N40A
|
|
12
|
-
} = colors;
|
|
8
|
+
import { N40A } from '@atlaskit/theme/colors';
|
|
13
9
|
import { token } from '@atlaskit/tokens';
|
|
14
|
-
import { findHorizontalOverflowScrollParent } from '../../../utils';
|
|
15
10
|
import { Table } from './table';
|
|
16
11
|
import { recursivelyInjectProps } from '../../utils/inject-props';
|
|
17
12
|
export const tableStickyPadding = 8;
|
|
@@ -126,6 +121,29 @@ export const StickyTable = ({
|
|
|
126
121
|
invisible: true
|
|
127
122
|
}))))));
|
|
128
123
|
};
|
|
124
|
+
/**
|
|
125
|
+
* Traverse DOM Tree upwards looking for table parents with "overflow: scroll".
|
|
126
|
+
*/
|
|
127
|
+
|
|
128
|
+
function findHorizontalOverflowScrollParent(table) {
|
|
129
|
+
let parent = table;
|
|
130
|
+
|
|
131
|
+
if (!parent) {
|
|
132
|
+
return null;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
while (parent = parent.parentElement) {
|
|
136
|
+
// IE11 on Window 8 doesn't show styles from CSS when accessing through element.style property.
|
|
137
|
+
const style = window.getComputedStyle(parent);
|
|
138
|
+
|
|
139
|
+
if (style.overflow === 'scroll' || style.overflowY === 'scroll') {
|
|
140
|
+
return parent;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
return null;
|
|
145
|
+
}
|
|
146
|
+
|
|
129
147
|
export class OverflowParent {
|
|
130
148
|
constructor(ref) {
|
|
131
149
|
this.ref = ref;
|
package/dist/es2019/utils.js
CHANGED
|
@@ -18,28 +18,6 @@ export const getText = node => {
|
|
|
18
18
|
export const getEventHandler = (eventHandlers, type, eventName = 'onClick') => {
|
|
19
19
|
return eventHandlers && type && eventHandlers[type] && eventHandlers[type][eventName];
|
|
20
20
|
};
|
|
21
|
-
/**
|
|
22
|
-
* Traverse DOM Tree upwards looking for table parents with "overflow: scroll".
|
|
23
|
-
*/
|
|
24
|
-
|
|
25
|
-
export function findHorizontalOverflowScrollParent(table) {
|
|
26
|
-
let parent = table;
|
|
27
|
-
|
|
28
|
-
if (!parent) {
|
|
29
|
-
return null;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
while (parent = parent.parentElement) {
|
|
33
|
-
// IE11 on Window 8 doesn't show styles from CSS when accessing through element.style property.
|
|
34
|
-
const style = window.getComputedStyle(parent);
|
|
35
|
-
|
|
36
|
-
if (style.overflow === 'scroll' || style.overflowY === 'scroll') {
|
|
37
|
-
return parent;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
return null;
|
|
42
|
-
}
|
|
43
21
|
export const getPlatform = rendererAppearance => {
|
|
44
22
|
if (rendererAppearance === 'mobile') {
|
|
45
23
|
return 'mobile';
|
package/dist/es2019/version.json
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
2
1
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
3
2
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
4
3
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
@@ -14,6 +13,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
14
13
|
var _templateObject;
|
|
15
14
|
|
|
16
15
|
var _excluded = ["children"];
|
|
16
|
+
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
17
17
|
|
|
18
18
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
19
19
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
2
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
4
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
|
+
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
5
5
|
import React, { useEffect, useState } from 'react';
|
|
6
6
|
import { MediaInlineCard } from '@atlaskit/media-card';
|
|
7
7
|
import { MediaInlineCardErroredView, MediaInlineCardLoadingView, messages } from '@atlaskit/media-ui';
|
|
@@ -25,13 +25,15 @@ var PanelStyled = function PanelStyled(props) {
|
|
|
25
25
|
|
|
26
26
|
if (props['data-panel-type'] === PanelType.CUSTOM && props.backgroundColor) {
|
|
27
27
|
styles = function styles(theme) {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
dark: getPanelBackgroundDarkModeColors
|
|
28
|
+
var customStyle = themed({
|
|
29
|
+
dark: getPanelBackgroundDarkModeColors,
|
|
30
|
+
light: "background-color: ".concat(props.backgroundColor, ";")
|
|
32
31
|
})({
|
|
33
32
|
theme: theme
|
|
34
|
-
})
|
|
33
|
+
});
|
|
34
|
+
return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n &.", " {\n ", "\n }\n\n &[data-panel-type=", "] {\n ", ";\n }\n "])), PanelSharedCssClassName.prefix, panelSharedStylesWithoutPrefix({
|
|
35
|
+
theme: theme
|
|
36
|
+
}), PanelType.CUSTOM, customStyle);
|
|
35
37
|
};
|
|
36
38
|
}
|
|
37
39
|
|
|
@@ -10,11 +10,8 @@ import React from 'react';
|
|
|
10
10
|
import { css, jsx } from '@emotion/react';
|
|
11
11
|
import { TableSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
12
12
|
import { akEditorStickyHeaderZIndex } from '@atlaskit/editor-shared-styles';
|
|
13
|
-
import
|
|
14
|
-
|
|
15
|
-
var N40A = colors.N40A;
|
|
13
|
+
import { N40A } from '@atlaskit/theme/colors';
|
|
16
14
|
import { token } from '@atlaskit/tokens';
|
|
17
|
-
import { findHorizontalOverflowScrollParent } from '../../../utils';
|
|
18
15
|
import { Table } from './table';
|
|
19
16
|
import { recursivelyInjectProps } from '../../utils/inject-props';
|
|
20
17
|
export var tableStickyPadding = 8;
|
|
@@ -93,6 +90,29 @@ export var StickyTable = function StickyTable(_ref) {
|
|
|
93
90
|
invisible: true
|
|
94
91
|
}))))));
|
|
95
92
|
};
|
|
93
|
+
/**
|
|
94
|
+
* Traverse DOM Tree upwards looking for table parents with "overflow: scroll".
|
|
95
|
+
*/
|
|
96
|
+
|
|
97
|
+
function findHorizontalOverflowScrollParent(table) {
|
|
98
|
+
var parent = table;
|
|
99
|
+
|
|
100
|
+
if (!parent) {
|
|
101
|
+
return null;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
while (parent = parent.parentElement) {
|
|
105
|
+
// IE11 on Window 8 doesn't show styles from CSS when accessing through element.style property.
|
|
106
|
+
var style = window.getComputedStyle(parent);
|
|
107
|
+
|
|
108
|
+
if (style.overflow === 'scroll' || style.overflowY === 'scroll') {
|
|
109
|
+
return parent;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
return null;
|
|
114
|
+
}
|
|
115
|
+
|
|
96
116
|
export var OverflowParent = /*#__PURE__*/function () {
|
|
97
117
|
function OverflowParent(ref) {
|
|
98
118
|
_classCallCheck(this, OverflowParent);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
4
3
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
5
4
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
6
5
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
@@ -10,6 +9,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
|
|
|
10
9
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
11
10
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
12
11
|
var _excluded = ["contextIdentifierProvider", "objectAri", "isRenderer"];
|
|
12
|
+
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
13
13
|
|
|
14
14
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
15
15
|
|
package/dist/esm/ui/MediaCard.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
2
1
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
3
2
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
4
3
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
@@ -12,6 +11,8 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
12
11
|
|
|
13
12
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
14
13
|
|
|
14
|
+
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
15
|
+
|
|
15
16
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
16
17
|
|
|
17
18
|
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; } }
|
package/dist/esm/utils.js
CHANGED
|
@@ -22,28 +22,6 @@ export var getEventHandler = function getEventHandler(eventHandlers, type) {
|
|
|
22
22
|
var eventName = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'onClick';
|
|
23
23
|
return eventHandlers && type && eventHandlers[type] && eventHandlers[type][eventName];
|
|
24
24
|
};
|
|
25
|
-
/**
|
|
26
|
-
* Traverse DOM Tree upwards looking for table parents with "overflow: scroll".
|
|
27
|
-
*/
|
|
28
|
-
|
|
29
|
-
export function findHorizontalOverflowScrollParent(table) {
|
|
30
|
-
var parent = table;
|
|
31
|
-
|
|
32
|
-
if (!parent) {
|
|
33
|
-
return null;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
while (parent = parent.parentElement) {
|
|
37
|
-
// IE11 on Window 8 doesn't show styles from CSS when accessing through element.style property.
|
|
38
|
-
var style = window.getComputedStyle(parent);
|
|
39
|
-
|
|
40
|
-
if (style.overflow === 'scroll' || style.overflowY === 'scroll') {
|
|
41
|
-
return parent;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
return null;
|
|
46
|
-
}
|
|
47
25
|
export var getPlatform = function getPlatform(rendererAppearance) {
|
|
48
26
|
if (rendererAppearance === 'mobile') {
|
|
49
27
|
return 'mobile';
|
package/dist/esm/version.json
CHANGED
package/dist/types/utils.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Schema } from 'prosemirror-model';
|
|
1
|
+
import type { Schema } from 'prosemirror-model';
|
|
2
2
|
import type { ADNode } from '@atlaskit/editor-common/validator';
|
|
3
3
|
import type { EventHandlers } from '@atlaskit/editor-common/ui';
|
|
4
|
-
import { Transformer } from '@atlaskit/editor-common/types';
|
|
5
|
-
import { Node as PMNode } from 'prosemirror-model';
|
|
6
|
-
import { RendererAppearance } from './ui/Renderer/types';
|
|
4
|
+
import type { Transformer } from '@atlaskit/editor-common/types';
|
|
5
|
+
import type { Node as PMNode } from 'prosemirror-model';
|
|
6
|
+
import type { RendererAppearance } from './ui/Renderer/types';
|
|
7
7
|
export declare type TransformerProvider<T> = (schema: Schema) => Transformer<T>;
|
|
8
8
|
export declare class ADFEncoder<T> {
|
|
9
9
|
encode: (value: T) => any;
|
|
@@ -11,10 +11,6 @@ export declare class ADFEncoder<T> {
|
|
|
11
11
|
}
|
|
12
12
|
export declare const getText: (node: PMNode | ADNode) => string;
|
|
13
13
|
export declare const getEventHandler: (eventHandlers?: EventHandlers | undefined, type?: keyof EventHandlers | undefined, eventName?: string) => any;
|
|
14
|
-
/**
|
|
15
|
-
* Traverse DOM Tree upwards looking for table parents with "overflow: scroll".
|
|
16
|
-
*/
|
|
17
|
-
export declare function findHorizontalOverflowScrollParent(table: HTMLElement | null): HTMLElement | null;
|
|
18
14
|
export declare const getPlatform: (rendererAppearance: RendererAppearance) => "mobile" | "web";
|
|
19
15
|
/**
|
|
20
16
|
* Traverse through parent elements of element. Return element for which evaluate(element) returns
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "97.0.0",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@atlaskit/adf-schema": "^23.
|
|
28
|
-
"@atlaskit/adf-utils": "^17.
|
|
29
|
-
"@atlaskit/analytics-listeners": "^8.
|
|
30
|
-
"@atlaskit/analytics-namespaced-context": "^6.
|
|
27
|
+
"@atlaskit/adf-schema": "^23.2.0",
|
|
28
|
+
"@atlaskit/adf-utils": "^17.1.0",
|
|
29
|
+
"@atlaskit/analytics-listeners": "^8.3.0",
|
|
30
|
+
"@atlaskit/analytics-namespaced-context": "^6.5.0",
|
|
31
31
|
"@atlaskit/analytics-next": "^8.2.0",
|
|
32
32
|
"@atlaskit/button": "^16.3.0",
|
|
33
33
|
"@atlaskit/code": "^14.3.0",
|
|
@@ -35,12 +35,12 @@
|
|
|
35
35
|
"@atlaskit/editor-json-transformer": "^8.7.0",
|
|
36
36
|
"@atlaskit/editor-shared-styles": "^2.1.0",
|
|
37
37
|
"@atlaskit/icon": "^21.10.0",
|
|
38
|
-
"@atlaskit/media-card": "^73.
|
|
39
|
-
"@atlaskit/media-client": "^
|
|
40
|
-
"@atlaskit/media-common": "^2.
|
|
38
|
+
"@atlaskit/media-card": "^73.8.0",
|
|
39
|
+
"@atlaskit/media-client": "^17.0.0",
|
|
40
|
+
"@atlaskit/media-common": "^2.15.0",
|
|
41
41
|
"@atlaskit/media-filmstrip": "^44.0.0",
|
|
42
42
|
"@atlaskit/media-ui": "^22.1.0",
|
|
43
|
-
"@atlaskit/media-viewer": "^46.
|
|
43
|
+
"@atlaskit/media-viewer": "^46.5.0",
|
|
44
44
|
"@atlaskit/status": "^1.1.0",
|
|
45
45
|
"@atlaskit/task-decision": "^17.4.0",
|
|
46
46
|
"@atlaskit/theme": "^12.1.0",
|
|
@@ -59,16 +59,17 @@
|
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
61
|
"@atlaskit/media-core": "^33.0.0",
|
|
62
|
-
"@atlaskit/smart-card": "^19.
|
|
62
|
+
"@atlaskit/smart-card": "^19.2.0",
|
|
63
63
|
"react": "^16.8.0",
|
|
64
|
-
"react-dom": "^16.8.0"
|
|
64
|
+
"react-dom": "^16.8.0",
|
|
65
|
+
"styled-components": "^3.2.6"
|
|
65
66
|
},
|
|
66
67
|
"devDependencies": {
|
|
67
68
|
"@atlaskit/analytics-gas-types": "^5.0.5",
|
|
68
69
|
"@atlaskit/avatar": "^21.0.0",
|
|
69
70
|
"@atlaskit/css-reset": "^6.3.0",
|
|
70
71
|
"@atlaskit/docs": "*",
|
|
71
|
-
"@atlaskit/editor-core": "^
|
|
72
|
+
"@atlaskit/editor-core": "^168.0.0",
|
|
72
73
|
"@atlaskit/editor-test-helpers": "^17.0.0",
|
|
73
74
|
"@atlaskit/logo": "^13.7.0",
|
|
74
75
|
"@atlaskit/media-core": "^33.0.0",
|
|
@@ -76,12 +77,12 @@
|
|
|
76
77
|
"@atlaskit/media-test-helpers": "^30.0.0",
|
|
77
78
|
"@atlaskit/mention": "^21.0.0",
|
|
78
79
|
"@atlaskit/navigation-next": "^9.0.0",
|
|
79
|
-
"@atlaskit/profilecard": "^16.
|
|
80
|
+
"@atlaskit/profilecard": "^16.9.0",
|
|
80
81
|
"@atlaskit/radio": "^5.3.0",
|
|
81
82
|
"@atlaskit/range": "^6.0.0",
|
|
82
|
-
"@atlaskit/smart-card": "^19.
|
|
83
|
+
"@atlaskit/smart-card": "^19.2.0",
|
|
83
84
|
"@atlaskit/ssr": "*",
|
|
84
|
-
"@atlaskit/util-data-test": "^17.
|
|
85
|
+
"@atlaskit/util-data-test": "^17.3.0",
|
|
85
86
|
"@atlaskit/visual-regression": "*",
|
|
86
87
|
"@atlaskit/webdriver-runner": "*",
|
|
87
88
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
package/report.api.md
ADDED
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
## API Report File for "@atlaskit/renderer"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
/// <reference types="react" />
|
|
7
|
+
|
|
8
|
+
import type { ADFStage } from '@atlaskit/editor-common/validator';
|
|
9
|
+
import type { AnnotationProviders } from '@atlaskit/editor-common/types';
|
|
10
|
+
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
11
|
+
import type { EventHandlers } from '@atlaskit/editor-common/ui';
|
|
12
|
+
import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
|
|
13
|
+
import { Fragment } from 'prosemirror-model';
|
|
14
|
+
import { jsx } from '@emotion/react';
|
|
15
|
+
import { Mark } from 'prosemirror-model';
|
|
16
|
+
import { MediaClientConfig } from '@atlaskit/media-core';
|
|
17
|
+
import { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
18
|
+
import { Node as Node_2 } from 'prosemirror-model';
|
|
19
|
+
import { PropsDifference } from '@atlaskit/editor-common/utils';
|
|
20
|
+
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
21
|
+
import { Schema } from 'prosemirror-model';
|
|
22
|
+
import { SEVERITY } from '@atlaskit/editor-common/utils';
|
|
23
|
+
import { ShallowPropsDifference } from '@atlaskit/editor-common/utils';
|
|
24
|
+
import { SortOrder } from '@atlaskit/editor-common/types';
|
|
25
|
+
import { SSR } from '@atlaskit/media-common';
|
|
26
|
+
import type { Transformer as Transformer_2 } from '@atlaskit/editor-common/types';
|
|
27
|
+
import { UNSUPPORTED_CONTENT_LEVEL_SEVERITY } from '@atlaskit/editor-common/utils';
|
|
28
|
+
import type { UnsupportedContentLevelsTracking } from '@atlaskit/editor-common/utils';
|
|
29
|
+
import type { UnsupportedContentPayload } from '@atlaskit/editor-common/utils';
|
|
30
|
+
import { UnsupportedContentTooltipPayload } from '@atlaskit/editor-common/src/utils/analytics';
|
|
31
|
+
|
|
32
|
+
// @public (undocumented)
|
|
33
|
+
export class ADFEncoder<T> {
|
|
34
|
+
constructor(createTransformerWithSchema: TransformerProvider<T>);
|
|
35
|
+
// (undocumented)
|
|
36
|
+
encode: (value: T) => any;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// @public (undocumented)
|
|
40
|
+
export type HeadingAnchorLinksProps = boolean | HeadingAnchorLinksConfig;
|
|
41
|
+
|
|
42
|
+
// @public (undocumented)
|
|
43
|
+
export type MediaSSR = {
|
|
44
|
+
mode: SSR;
|
|
45
|
+
config: MediaClientConfig;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
// @public (undocumented)
|
|
49
|
+
export const ReactRenderer: (props: RendererProps) => jsx.JSX.Element;
|
|
50
|
+
|
|
51
|
+
// @public (undocumented)
|
|
52
|
+
export class ReactSerializer implements Serializer<JSX.Element> {
|
|
53
|
+
constructor(init: ReactSerializerInit);
|
|
54
|
+
// (undocumented)
|
|
55
|
+
static buildMarkStructure(content: Node_2[]): Mark<any>[];
|
|
56
|
+
// (undocumented)
|
|
57
|
+
static fromSchema(_: unknown, init: ReactSerializerInit): ReactSerializer;
|
|
58
|
+
// (undocumented)
|
|
59
|
+
static getChildNodes(fragment: Fragment): (Node_2 | TextWrapper)[];
|
|
60
|
+
// (undocumented)
|
|
61
|
+
static getMarks(node: Node_2): Mark[];
|
|
62
|
+
// (undocumented)
|
|
63
|
+
serializeFragment(
|
|
64
|
+
fragment: Fragment,
|
|
65
|
+
props?: any,
|
|
66
|
+
target?: any,
|
|
67
|
+
key?: string,
|
|
68
|
+
parentInfo?: ParentInfo,
|
|
69
|
+
): JSX.Element | null;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// @public (undocumented)
|
|
73
|
+
export const renderDocument: <T>(
|
|
74
|
+
doc: any,
|
|
75
|
+
serializer: Serializer<T>,
|
|
76
|
+
schema?: Schema,
|
|
77
|
+
adfStage?: ADFStage,
|
|
78
|
+
useSpecBasedValidator?: boolean,
|
|
79
|
+
rendererId?: string,
|
|
80
|
+
dispatchAnalyticsEvent?: DispatchAnalyticsEvent | undefined,
|
|
81
|
+
unsupportedContentLevelsTracking?:
|
|
82
|
+
| UnsupportedContentLevelsTracking
|
|
83
|
+
| undefined,
|
|
84
|
+
appearance?: RendererAppearance,
|
|
85
|
+
) => RenderOutput<T | null>;
|
|
86
|
+
|
|
87
|
+
// @public (undocumented)
|
|
88
|
+
export type RendererAppearance =
|
|
89
|
+
| 'comment'
|
|
90
|
+
| 'full-page'
|
|
91
|
+
| 'full-width'
|
|
92
|
+
| 'mobile'
|
|
93
|
+
| undefined;
|
|
94
|
+
|
|
95
|
+
// @public (undocumented)
|
|
96
|
+
export interface RendererContext {
|
|
97
|
+
// (undocumented)
|
|
98
|
+
adDoc?: any;
|
|
99
|
+
// (undocumented)
|
|
100
|
+
containerAri?: string;
|
|
101
|
+
// (undocumented)
|
|
102
|
+
objectAri?: string;
|
|
103
|
+
// (undocumented)
|
|
104
|
+
schema?: Schema;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
// @public (undocumented)
|
|
108
|
+
export interface RendererProps {
|
|
109
|
+
// (undocumented)
|
|
110
|
+
adfStage?: ADFStage;
|
|
111
|
+
// (undocumented)
|
|
112
|
+
allowAltTextOnImages?: boolean;
|
|
113
|
+
// (undocumented)
|
|
114
|
+
allowAnnotations?: boolean;
|
|
115
|
+
// (undocumented)
|
|
116
|
+
allowColumnSorting?: boolean;
|
|
117
|
+
// (undocumented)
|
|
118
|
+
allowCopyToClipboard?: boolean;
|
|
119
|
+
// (undocumented)
|
|
120
|
+
allowCustomPanels?: boolean;
|
|
121
|
+
// @deprecated (undocumented)
|
|
122
|
+
allowDynamicTextSizing?: boolean;
|
|
123
|
+
// (undocumented)
|
|
124
|
+
allowHeadingAnchorLinks?: HeadingAnchorLinksProps;
|
|
125
|
+
// (undocumented)
|
|
126
|
+
allowPlaceholderText?: boolean;
|
|
127
|
+
// (undocumented)
|
|
128
|
+
allowSelectAllTrap?: boolean;
|
|
129
|
+
// (undocumented)
|
|
130
|
+
allowUgcScrubber?: boolean;
|
|
131
|
+
// (undocumented)
|
|
132
|
+
analyticsEventSeverityTracking?: {
|
|
133
|
+
enabled: boolean;
|
|
134
|
+
severityNormalThreshold: number;
|
|
135
|
+
severityDegradedThreshold: number;
|
|
136
|
+
};
|
|
137
|
+
// (undocumented)
|
|
138
|
+
annotationProvider?: AnnotationProviders | null;
|
|
139
|
+
// (undocumented)
|
|
140
|
+
appearance?: RendererAppearance;
|
|
141
|
+
// (undocumented)
|
|
142
|
+
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
143
|
+
// (undocumented)
|
|
144
|
+
dataProviders?: ProviderFactory;
|
|
145
|
+
// (undocumented)
|
|
146
|
+
disableActions?: boolean;
|
|
147
|
+
// (undocumented)
|
|
148
|
+
disableHeadingIDs?: boolean;
|
|
149
|
+
// (undocumented)
|
|
150
|
+
document: any;
|
|
151
|
+
// (undocumented)
|
|
152
|
+
enableSsrInlineScripts?: boolean;
|
|
153
|
+
// (undocumented)
|
|
154
|
+
eventHandlers?: EventHandlers;
|
|
155
|
+
// (undocumented)
|
|
156
|
+
extensionHandlers?: ExtensionHandlers;
|
|
157
|
+
// (undocumented)
|
|
158
|
+
fadeOutHeight?: number;
|
|
159
|
+
featureFlags?:
|
|
160
|
+
| {
|
|
161
|
+
[featureFlag: string]: boolean;
|
|
162
|
+
}
|
|
163
|
+
| Partial<RawObjectFeatureFlags>;
|
|
164
|
+
// (undocumented)
|
|
165
|
+
innerRef?: React.RefObject<HTMLDivElement>;
|
|
166
|
+
// (undocumented)
|
|
167
|
+
maxHeight?: number;
|
|
168
|
+
// (undocumented)
|
|
169
|
+
media?: MediaOptions;
|
|
170
|
+
// (undocumented)
|
|
171
|
+
onComplete?: (stat: RenderOutputStat) => void;
|
|
172
|
+
// (undocumented)
|
|
173
|
+
onError?: (error: any) => void;
|
|
174
|
+
// (undocumented)
|
|
175
|
+
portal?: HTMLElement;
|
|
176
|
+
// (undocumented)
|
|
177
|
+
rendererContext?: RendererContext;
|
|
178
|
+
// (undocumented)
|
|
179
|
+
schema?: Schema;
|
|
180
|
+
// (undocumented)
|
|
181
|
+
shouldOpenMediaViewer?: boolean;
|
|
182
|
+
// (undocumented)
|
|
183
|
+
smartLinks?: SmartLinksOptions;
|
|
184
|
+
// (undocumented)
|
|
185
|
+
stickyHeaders?: StickyHeaderProps;
|
|
186
|
+
// (undocumented)
|
|
187
|
+
truncated?: boolean;
|
|
188
|
+
// (undocumented)
|
|
189
|
+
unsupportedContentLevelsTracking?: UnsupportedContentLevelsTracking;
|
|
190
|
+
// (undocumented)
|
|
191
|
+
useSpecBasedValidator?: boolean;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
// @public (undocumented)
|
|
195
|
+
export interface RenderOutputStat {
|
|
196
|
+
// (undocumented)
|
|
197
|
+
buildTreeTime?: number;
|
|
198
|
+
// (undocumented)
|
|
199
|
+
sanitizeTime: number;
|
|
200
|
+
// (undocumented)
|
|
201
|
+
serializeTime?: number;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
// @public (undocumented)
|
|
205
|
+
export interface Serializer<T> {
|
|
206
|
+
// (undocumented)
|
|
207
|
+
serializeFragment(
|
|
208
|
+
fragment: Fragment,
|
|
209
|
+
props?: any,
|
|
210
|
+
target?: any,
|
|
211
|
+
key?: string,
|
|
212
|
+
): T | null;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
// @public (undocumented)
|
|
216
|
+
export class TextSerializer implements Serializer<string> {
|
|
217
|
+
constructor(schema: Schema);
|
|
218
|
+
// (undocumented)
|
|
219
|
+
static fromSchema(schema?: Schema): TextSerializer;
|
|
220
|
+
// (undocumented)
|
|
221
|
+
serializeFragment(fragment: Fragment): string;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
// (No @packageDocumentation comment for this package)
|
|
225
|
+
```
|