@atlaskit/renderer 108.18.0 → 108.19.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 +11 -0
- package/afm-cc/tsconfig.json +109 -0
- package/dist/cjs/react/marks/alignment.js +3 -2
- package/dist/cjs/react/marks/breakout.js +3 -2
- package/dist/cjs/react/marks/link.js +4 -3
- package/dist/cjs/react/nodes/blockCard.js +13 -11
- package/dist/cjs/react/nodes/codeBlock/codeBlock.js +5 -2
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockButtonContainer.js +6 -4
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockContainer.js +3 -2
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockCopyButton.js +11 -8
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockWrapButton.js +11 -8
- package/dist/cjs/react/nodes/codeBlock/components/lightWeightCodeBlock.js +8 -7
- package/dist/cjs/react/nodes/codeBlock/windowedCodeBlock.js +6 -5
- package/dist/cjs/react/nodes/embedCard.js +9 -8
- package/dist/cjs/react/nodes/heading-anchor.js +5 -4
- package/dist/cjs/react/nodes/layoutColumn.js +3 -2
- package/dist/cjs/react/nodes/media/index.js +8 -7
- package/dist/cjs/react/nodes/mediaInline.js +26 -3
- package/dist/cjs/react/nodes/mediaSingle/index.js +6 -3
- package/dist/cjs/react/nodes/mediaSingle/styles.js +1 -0
- package/dist/cjs/react/nodes/panel.js +9 -7
- package/dist/cjs/react/nodes/table/sticky.js +7 -6
- package/dist/cjs/ui/Expand.js +18 -16
- package/dist/cjs/ui/Renderer/index.js +25 -24
- package/dist/cjs/ui/Renderer/truncated-wrapper.js +3 -2
- package/dist/cjs/ui/SortingIcon.js +5 -4
- package/dist/cjs/ui/annotations/draft/component.js +9 -8
- package/dist/cjs/ui/annotations/element/mark.js +2 -1
- package/dist/es2019/react/marks/alignment.js +4 -3
- package/dist/es2019/react/marks/breakout.js +4 -3
- package/dist/es2019/react/marks/link.js +5 -4
- package/dist/es2019/react/nodes/blockCard.js +13 -12
- package/dist/es2019/react/nodes/codeBlock/codeBlock.js +4 -2
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockButtonContainer.js +6 -5
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockContainer.js +4 -3
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockCopyButton.js +7 -5
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockWrapButton.js +9 -7
- package/dist/es2019/react/nodes/codeBlock/components/lightWeightCodeBlock.js +9 -8
- package/dist/es2019/react/nodes/codeBlock/windowedCodeBlock.js +6 -4
- package/dist/es2019/react/nodes/embedCard.js +10 -9
- package/dist/es2019/react/nodes/heading-anchor.js +6 -5
- package/dist/es2019/react/nodes/layoutColumn.js +4 -3
- package/dist/es2019/react/nodes/media/index.js +9 -6
- package/dist/es2019/react/nodes/mediaInline.js +25 -3
- package/dist/es2019/react/nodes/mediaSingle/index.js +6 -3
- package/dist/es2019/react/nodes/mediaSingle/styles.js +1 -0
- package/dist/es2019/react/nodes/panel.js +8 -7
- package/dist/es2019/react/nodes/table/sticky.js +8 -7
- package/dist/es2019/ui/Expand.js +17 -16
- package/dist/es2019/ui/Renderer/index.js +25 -23
- package/dist/es2019/ui/Renderer/truncated-wrapper.js +4 -3
- package/dist/es2019/ui/SortingIcon.js +6 -5
- package/dist/es2019/ui/annotations/draft/component.js +10 -9
- package/dist/es2019/ui/annotations/element/mark.js +3 -2
- package/dist/esm/react/marks/alignment.js +4 -3
- package/dist/esm/react/marks/breakout.js +4 -3
- package/dist/esm/react/marks/link.js +5 -4
- package/dist/esm/react/nodes/blockCard.js +13 -12
- package/dist/esm/react/nodes/codeBlock/codeBlock.js +4 -2
- package/dist/esm/react/nodes/codeBlock/components/codeBlockButtonContainer.js +6 -5
- package/dist/esm/react/nodes/codeBlock/components/codeBlockContainer.js +4 -3
- package/dist/esm/react/nodes/codeBlock/components/codeBlockCopyButton.js +7 -5
- package/dist/esm/react/nodes/codeBlock/components/codeBlockWrapButton.js +9 -7
- package/dist/esm/react/nodes/codeBlock/components/lightWeightCodeBlock.js +9 -8
- package/dist/esm/react/nodes/codeBlock/windowedCodeBlock.js +6 -4
- package/dist/esm/react/nodes/embedCard.js +10 -9
- package/dist/esm/react/nodes/heading-anchor.js +6 -5
- package/dist/esm/react/nodes/layoutColumn.js +4 -3
- package/dist/esm/react/nodes/media/index.js +9 -6
- package/dist/esm/react/nodes/mediaInline.js +26 -3
- package/dist/esm/react/nodes/mediaSingle/index.js +6 -3
- package/dist/esm/react/nodes/mediaSingle/styles.js +1 -0
- package/dist/esm/react/nodes/panel.js +8 -7
- package/dist/esm/react/nodes/table/sticky.js +8 -7
- package/dist/esm/ui/Expand.js +17 -16
- package/dist/esm/ui/Renderer/index.js +25 -23
- package/dist/esm/ui/Renderer/truncated-wrapper.js +4 -3
- package/dist/esm/ui/SortingIcon.js +6 -5
- package/dist/esm/ui/annotations/draft/component.js +10 -9
- package/dist/esm/ui/annotations/element/mark.js +3 -2
- package/dist/types/react/nodes/index.d.ts +1 -1
- package/dist/types/react/nodes/mediaInline.d.ts +4 -3
- package/dist/types-ts4.5/react/nodes/index.d.ts +1 -1
- package/dist/types-ts4.5/react/nodes/mediaInline.d.ts +4 -3
- package/package.json +2 -1
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
+
/** @jsx jsx */
|
|
3
|
+
|
|
2
4
|
import { default as React, Fragment } from 'react';
|
|
5
|
+
import { jsx } from '@emotion/react';
|
|
3
6
|
import { injectIntl } from 'react-intl-next';
|
|
4
7
|
import { MediaSingle as UIMediaSingle, WidthConsumer } from '@atlaskit/editor-common/ui';
|
|
5
8
|
import { akEditorFullWidthLayoutWidth, akEditorDefaultLayoutWidth, akEditorWideLayoutWidth } from '@atlaskit/editor-shared-styles';
|
|
@@ -154,7 +157,7 @@ var MediaSingle = function MediaSingle(props) {
|
|
|
154
157
|
featureFlags: featureFlags
|
|
155
158
|
});
|
|
156
159
|
var uiMediaSingleStyles = layout === 'full-width' || layout === 'wide' ? [uiMediaSingleBaseStyles, uiMediaSingleLayoutStyles] : [uiMediaSingleBaseStyles];
|
|
157
|
-
return
|
|
160
|
+
return jsx(UIMediaSingle, {
|
|
158
161
|
css: uiMediaSingleStyles,
|
|
159
162
|
handleMediaSingleRef: ref,
|
|
160
163
|
layout: layout,
|
|
@@ -167,9 +170,9 @@ var MediaSingle = function MediaSingle(props) {
|
|
|
167
170
|
widthType: widthType
|
|
168
171
|
},
|
|
169
172
|
fullWidthMode: isFullWidth
|
|
170
|
-
},
|
|
173
|
+
}, jsx(Fragment, null, mediaComponent), allowCaptions && caption);
|
|
171
174
|
};
|
|
172
|
-
return
|
|
175
|
+
return jsx(WidthConsumer, null, function (_ref3) {
|
|
173
176
|
var width = _ref3.width;
|
|
174
177
|
// Note: in SSR mode the `window` object is not defined,
|
|
175
178
|
// therefore width here is 0, see:
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
2
|
var _templateObject, _templateObject2;
|
|
3
|
+
/** @jsx jsx */
|
|
3
4
|
import { css } from '@emotion/react';
|
|
4
5
|
export var uiMediaSingleBaseStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n transition: all 0.1s linear;\n"])));
|
|
5
6
|
export var uiMediaSingleLayoutStyles = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin-left: 50%;\n transform: translateX(-50%);\n"])));
|
|
@@ -3,8 +3,9 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
4
|
var _templateObject, _templateObject2;
|
|
5
5
|
var _excluded = ["backgroundColor", "hasIcon"];
|
|
6
|
+
/** @jsx jsx */
|
|
6
7
|
import React from 'react';
|
|
7
|
-
import { css } from '@emotion/react';
|
|
8
|
+
import { css, jsx } from '@emotion/react';
|
|
8
9
|
import TipIcon from '@atlaskit/icon/glyph/editor/hint';
|
|
9
10
|
import { PanelType } from '@atlaskit/adf-schema';
|
|
10
11
|
import { getPanelBackgroundDarkModeColors, panelSharedStylesWithoutPrefix, PanelSharedCssClassName } from '@atlaskit/editor-common/panel';
|
|
@@ -38,7 +39,7 @@ var PanelStyled = function PanelStyled(_ref) {
|
|
|
38
39
|
}), PanelType.CUSTOM, customStyle, hasIcon ? '' : 'padding-left: 12px;');
|
|
39
40
|
};
|
|
40
41
|
}
|
|
41
|
-
return
|
|
42
|
+
return jsx("div", _extends({
|
|
42
43
|
css: styles
|
|
43
44
|
}, props), props.children);
|
|
44
45
|
};
|
|
@@ -67,7 +68,7 @@ var Panel = function Panel(props) {
|
|
|
67
68
|
var getIcon = function getIcon() {
|
|
68
69
|
if (panelType === PanelType.CUSTOM) {
|
|
69
70
|
if (panelIcon && providers) {
|
|
70
|
-
return
|
|
71
|
+
return jsx(EmojiItem, {
|
|
71
72
|
id: panelIconId,
|
|
72
73
|
text: panelIconText,
|
|
73
74
|
shortName: panelIcon,
|
|
@@ -77,19 +78,19 @@ var Panel = function Panel(props) {
|
|
|
77
78
|
return null;
|
|
78
79
|
}
|
|
79
80
|
var Icon = panelIcons[panelType];
|
|
80
|
-
return
|
|
81
|
+
return jsx(Icon, {
|
|
81
82
|
label: "Panel ".concat(panelType)
|
|
82
83
|
});
|
|
83
84
|
};
|
|
84
85
|
var icon = getIcon();
|
|
85
86
|
var renderIcon = function renderIcon() {
|
|
86
87
|
if (icon) {
|
|
87
|
-
return
|
|
88
|
+
return jsx("div", {
|
|
88
89
|
className: PanelSharedCssClassName.icon
|
|
89
90
|
}, icon);
|
|
90
91
|
}
|
|
91
92
|
};
|
|
92
|
-
return
|
|
93
|
+
return jsx(PanelStyled, {
|
|
93
94
|
className: PanelSharedCssClassName.prefix,
|
|
94
95
|
"data-panel-type": panelType,
|
|
95
96
|
"data-panel-color": panelColor,
|
|
@@ -98,7 +99,7 @@ var Panel = function Panel(props) {
|
|
|
98
99
|
"data-panel-icon-text": panelIconText,
|
|
99
100
|
backgroundColor: panelColor,
|
|
100
101
|
hasIcon: Boolean(icon)
|
|
101
|
-
}, renderIcon(),
|
|
102
|
+
}, renderIcon(), jsx("div", {
|
|
102
103
|
className: PanelSharedCssClassName.content
|
|
103
104
|
}, children));
|
|
104
105
|
};
|
|
@@ -3,8 +3,9 @@ import _createClass from "@babel/runtime/helpers/createClass";
|
|
|
3
3
|
import _extends from "@babel/runtime/helpers/extends";
|
|
4
4
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
5
5
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
6
|
+
/** @jsx jsx */
|
|
6
7
|
import React from 'react';
|
|
7
|
-
import { css } from '@emotion/react';
|
|
8
|
+
import { css, jsx } from '@emotion/react';
|
|
8
9
|
import { TableSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
9
10
|
import { akEditorStickyHeaderZIndex } from '@atlaskit/editor-shared-styles';
|
|
10
11
|
import { N40A } from '@atlaskit/theme/colors';
|
|
@@ -37,7 +38,7 @@ export var FixedTableDiv = function FixedTableDiv(props) {
|
|
|
37
38
|
var attrs = {
|
|
38
39
|
mode: mode
|
|
39
40
|
};
|
|
40
|
-
return
|
|
41
|
+
return jsx("div", _extends({}, attrs, {
|
|
41
42
|
"data-testid": "sticky-table-fixed",
|
|
42
43
|
css: fixedTableCss
|
|
43
44
|
}), props.children);
|
|
@@ -73,26 +74,26 @@ export var StickyTable = function StickyTable(_ref) {
|
|
|
73
74
|
});
|
|
74
75
|
}
|
|
75
76
|
/* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
|
|
76
|
-
return
|
|
77
|
+
return jsx("div", {
|
|
77
78
|
css: styles
|
|
78
|
-
},
|
|
79
|
+
}, jsx(FixedTableDiv, {
|
|
79
80
|
top: mode === 'stick' ? top : undefined,
|
|
80
81
|
mode: rowHeight > 300 ? 'none' : mode,
|
|
81
82
|
wrapperWidth: wrapperWidth,
|
|
82
83
|
rendererAppearance: rendererAppearance
|
|
83
|
-
},
|
|
84
|
+
}, jsx("div", {
|
|
84
85
|
className: "".concat(TableSharedCssClassName.TABLE_CONTAINER, " is-sticky ").concat(shadowClassNames || ''),
|
|
85
86
|
"data-layout": layout,
|
|
86
87
|
style: {
|
|
87
88
|
width: tableWidth
|
|
88
89
|
}
|
|
89
|
-
},
|
|
90
|
+
}, jsx("div", {
|
|
90
91
|
ref: innerRef,
|
|
91
92
|
className: "".concat(TableSharedCssClassName.TABLE_STICKY_WRAPPER),
|
|
92
93
|
style: {
|
|
93
94
|
overflow: 'hidden'
|
|
94
95
|
}
|
|
95
|
-
},
|
|
96
|
+
}, jsx(Table, {
|
|
96
97
|
columnWidths: columnWidths,
|
|
97
98
|
layout: layout,
|
|
98
99
|
isNumberColumnEnabled: isNumberColumnEnabled,
|
package/dist/esm/ui/Expand.js
CHANGED
|
@@ -2,8 +2,9 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
4
4
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
5
|
+
/** @jsx jsx */
|
|
5
6
|
import React, { useRef, useCallback, useMemo } from 'react';
|
|
6
|
-
import { css } from '@emotion/react';
|
|
7
|
+
import { css, jsx } from '@emotion/react';
|
|
7
8
|
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
8
9
|
import { gridSize, fontSize } from '@atlaskit/theme/constants';
|
|
9
10
|
import ChevronRightIcon from '@atlaskit/icon/glyph/chevron-right';
|
|
@@ -25,7 +26,7 @@ var Container = function Container(props) {
|
|
|
25
26
|
theme: themeProps
|
|
26
27
|
}), paddingBottom);
|
|
27
28
|
};
|
|
28
|
-
return
|
|
29
|
+
return jsx("div", _extends({
|
|
29
30
|
css: styles
|
|
30
31
|
}, props), props.children);
|
|
31
32
|
};
|
|
@@ -36,7 +37,7 @@ var TitleContainer = function TitleContainer(props) {
|
|
|
36
37
|
theme: themeProps
|
|
37
38
|
}), "var(--ds-space-100, 8px)", paddingBottom);
|
|
38
39
|
};
|
|
39
|
-
return
|
|
40
|
+
return jsx("button", _extends({
|
|
40
41
|
css: styles
|
|
41
42
|
}, props), props.children);
|
|
42
43
|
};
|
|
@@ -49,7 +50,7 @@ var ContentContainer = function ContentContainer(props) {
|
|
|
49
50
|
theme: themeProps
|
|
50
51
|
}), "var(--ds-space-200, 16px)", gridSize() * 5 - gridSize() / 2, visibility);
|
|
51
52
|
};
|
|
52
|
-
return
|
|
53
|
+
return jsx("div", _extends({
|
|
53
54
|
css: styles
|
|
54
55
|
}, props), props.children);
|
|
55
56
|
};
|
|
@@ -96,18 +97,18 @@ function Expand(_ref) {
|
|
|
96
97
|
var handleBlur = useCallback(function () {
|
|
97
98
|
return setFocused(false);
|
|
98
99
|
}, []);
|
|
99
|
-
return
|
|
100
|
+
return jsx(Container, {
|
|
100
101
|
"data-node-type": nodeType,
|
|
101
102
|
"data-title": title,
|
|
102
103
|
"data-expanded": expanded,
|
|
103
104
|
expanded: expanded,
|
|
104
105
|
focused: focused
|
|
105
|
-
}, nestedHeaderIds && nestedHeaderIds.length > 0 ?
|
|
106
|
+
}, nestedHeaderIds && nestedHeaderIds.length > 0 ? jsx(ActiveHeaderIdConsumer, {
|
|
106
107
|
nestedHeaderIds: nestedHeaderIds,
|
|
107
108
|
onNestedHeaderIdMatch: function onNestedHeaderIdMatch() {
|
|
108
109
|
return setExpanded(true);
|
|
109
110
|
}
|
|
110
|
-
}) : null,
|
|
111
|
+
}) : null, jsx(TitleContainer, {
|
|
111
112
|
onClick: function onClick(e) {
|
|
112
113
|
e.stopPropagation();
|
|
113
114
|
fireExpandToggleAnalytics(nodeType, expanded, fireAnalyticsEvent);
|
|
@@ -122,27 +123,27 @@ function Expand(_ref) {
|
|
|
122
123
|
"aria-expanded": expanded,
|
|
123
124
|
contentEditable: false,
|
|
124
125
|
expanded: expanded
|
|
125
|
-
}, isMobile ?
|
|
126
|
+
}, isMobile ? jsx(ExpandIconWrapper, {
|
|
126
127
|
expanded: expanded
|
|
127
|
-
},
|
|
128
|
+
}, jsx(ChevronRightIcon, {
|
|
128
129
|
label: label
|
|
129
|
-
})) :
|
|
130
|
+
})) : jsx(Tooltip, {
|
|
130
131
|
content: label,
|
|
131
132
|
position: "top",
|
|
132
133
|
tag: ExpandLayoutWrapperWithRef,
|
|
133
134
|
testId: 'tooltip'
|
|
134
|
-
},
|
|
135
|
+
}, jsx(ExpandIconWrapper, {
|
|
135
136
|
expanded: expanded
|
|
136
|
-
},
|
|
137
|
+
}, jsx(ChevronRightIcon, {
|
|
137
138
|
label: label
|
|
138
|
-
}))),
|
|
139
|
+
}))), jsx("span", {
|
|
139
140
|
css: titleStyles,
|
|
140
141
|
id: id
|
|
141
|
-
}, title || intl.formatMessage(expandMessages.expandDefaultTitle))),
|
|
142
|
+
}, title || intl.formatMessage(expandMessages.expandDefaultTitle))), jsx(ContentContainer, {
|
|
142
143
|
expanded: expanded
|
|
143
|
-
},
|
|
144
|
+
}, jsx("div", {
|
|
144
145
|
className: "".concat(nodeType, "-content-wrapper")
|
|
145
|
-
},
|
|
146
|
+
}, jsx(WidthProvider, null, jsx("div", {
|
|
146
147
|
css: clearNextSiblingMarginTopStyle
|
|
147
148
|
}), children))));
|
|
148
149
|
}
|
|
@@ -10,7 +10,9 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
10
10
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
11
11
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
12
12
|
function _isNativeReflectConstruct() { 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
|
+
/** @jsx jsx */
|
|
13
14
|
import React, { Fragment, useContext, useLayoutEffect, useRef, PureComponent } from 'react';
|
|
15
|
+
import { jsx } from '@emotion/react';
|
|
14
16
|
import { getSchemaBasedOnStage } from '@atlaskit/adf-schema/schema-default';
|
|
15
17
|
import { reduce } from '@atlaskit/adf-utils/traverse';
|
|
16
18
|
import { ProviderFactory, ProviderFactoryProvider } from '@atlaskit/editor-common/provider-factory';
|
|
@@ -43,7 +45,7 @@ import { EditorMediaClientProvider } from '../../react/utils/EditorMediaClientPr
|
|
|
43
45
|
export var NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
44
46
|
export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
45
47
|
var packageName = "@atlaskit/renderer";
|
|
46
|
-
var packageVersion = "108.
|
|
48
|
+
var packageVersion = "108.19.0";
|
|
47
49
|
export var Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
48
50
|
_inherits(Renderer, _PureComponent);
|
|
49
51
|
var _super = _createSuper(Renderer);
|
|
@@ -349,19 +351,19 @@ export var Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
|
349
351
|
if (onComplete) {
|
|
350
352
|
onComplete(stat);
|
|
351
353
|
}
|
|
352
|
-
var rendererOutput =
|
|
354
|
+
var rendererOutput = jsx(RendererContextProvider, {
|
|
353
355
|
value: this.featureFlags(this.props.featureFlags)
|
|
354
|
-
},
|
|
356
|
+
}, jsx(ActiveHeaderIdProvider, {
|
|
355
357
|
value: getActiveHeadingId(allowHeadingAnchorLinks)
|
|
356
|
-
},
|
|
358
|
+
}, jsx(AnalyticsContext.Provider, {
|
|
357
359
|
value: {
|
|
358
360
|
fireAnalyticsEvent: function fireAnalyticsEvent(event) {
|
|
359
361
|
return _this3.fireAnalyticsEvent(event);
|
|
360
362
|
}
|
|
361
363
|
}
|
|
362
|
-
},
|
|
364
|
+
}, jsx(SmartCardStorageProvider, null, jsx(ProviderFactoryProvider, {
|
|
363
365
|
value: this.providerFactory
|
|
364
|
-
},
|
|
366
|
+
}, jsx(RendererWrapper, {
|
|
365
367
|
appearance: appearance,
|
|
366
368
|
allowNestedHeaderLinks: allowNestedHeaderLinks,
|
|
367
369
|
allowColumnSorting: allowColumnSorting,
|
|
@@ -375,30 +377,30 @@ export var Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
|
375
377
|
onClick: handleWrapperOnClick,
|
|
376
378
|
onMouseDown: this.onMouseDownEditView,
|
|
377
379
|
ssr: media === null || media === void 0 ? void 0 : media.ssr
|
|
378
|
-
}, enableSsrInlineScripts ?
|
|
380
|
+
}, enableSsrInlineScripts ? jsx(BreakoutSSRInlineScript, null) : null, jsx(RendererActionsInternalUpdater, {
|
|
379
381
|
doc: pmDoc,
|
|
380
382
|
schema: schema,
|
|
381
383
|
onAnalyticsEvent: this.fireAnalyticsEvent
|
|
382
384
|
}, result)))))));
|
|
383
|
-
var rendererResult = truncated ?
|
|
385
|
+
var rendererResult = truncated ? jsx(TruncatedWrapper, {
|
|
384
386
|
height: maxHeight,
|
|
385
387
|
fadeHeight: fadeOutHeight
|
|
386
388
|
}, rendererOutput) : rendererOutput;
|
|
387
389
|
var rendererRenderTracking = (_this$featureFlags2 = this.featureFlags(this.props.featureFlags)) === null || _this$featureFlags2 === void 0 || (_this$featureFlags2 = _this$featureFlags2.featureFlags) === null || _this$featureFlags2 === void 0 || (_this$featureFlags2 = _this$featureFlags2.rendererRenderTracking) === null || _this$featureFlags2 === void 0 ? void 0 : _this$featureFlags2[ACTION_SUBJECT.RENDERER];
|
|
388
|
-
var reRenderTracking = (rendererRenderTracking === null || rendererRenderTracking === void 0 ? void 0 : rendererRenderTracking.enabled) &&
|
|
390
|
+
var reRenderTracking = (rendererRenderTracking === null || rendererRenderTracking === void 0 ? void 0 : rendererRenderTracking.enabled) && jsx(RenderTracking, {
|
|
389
391
|
componentProps: this.props,
|
|
390
392
|
action: ACTION.RE_RENDERED,
|
|
391
393
|
actionSubject: ACTION_SUBJECT.RENDERER,
|
|
392
394
|
handleAnalyticsEvent: this.fireAnalyticsEvent,
|
|
393
395
|
useShallow: rendererRenderTracking.useShallow
|
|
394
396
|
});
|
|
395
|
-
return
|
|
397
|
+
return jsx(Fragment, null, reRenderTracking, rendererResult);
|
|
396
398
|
} catch (e) {
|
|
397
399
|
var _featureFlags$feature2;
|
|
398
400
|
if (onError) {
|
|
399
401
|
onError(e);
|
|
400
402
|
}
|
|
401
|
-
return
|
|
403
|
+
return jsx(RendererWrapper, {
|
|
402
404
|
appearance: appearance,
|
|
403
405
|
allowCopyToClipboard: allowCopyToClipboard,
|
|
404
406
|
allowWrapCodeBlock: allowWrapCodeBlock,
|
|
@@ -408,7 +410,7 @@ export var Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
|
408
410
|
useBlockRenderForCodeBlock: (_featureFlags$feature2 = featureFlags.featureFlags.useBlockRenderForCodeBlock) !== null && _featureFlags$feature2 !== void 0 ? _featureFlags$feature2 : true,
|
|
409
411
|
addTelepointer: this.props.addTelepointer,
|
|
410
412
|
onClick: handleWrapperOnClick
|
|
411
|
-
},
|
|
413
|
+
}, jsx(UnsupportedBlock, null));
|
|
412
414
|
}
|
|
413
415
|
}
|
|
414
416
|
}, {
|
|
@@ -429,7 +431,7 @@ export var Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
|
429
431
|
return Renderer;
|
|
430
432
|
}(PureComponent);
|
|
431
433
|
var RendererWithAnalytics = /*#__PURE__*/React.memo(function (props) {
|
|
432
|
-
return
|
|
434
|
+
return jsx(FabricEditorAnalyticsContext, {
|
|
433
435
|
data: {
|
|
434
436
|
appearance: getAnalyticsAppearance(props.appearance),
|
|
435
437
|
packageName: packageName,
|
|
@@ -437,15 +439,15 @@ var RendererWithAnalytics = /*#__PURE__*/React.memo(function (props) {
|
|
|
437
439
|
componentName: 'renderer',
|
|
438
440
|
editorSessionId: uuid()
|
|
439
441
|
}
|
|
440
|
-
},
|
|
442
|
+
}, jsx(WithCreateAnalyticsEvent, {
|
|
441
443
|
render: function render(createAnalyticsEvent) {
|
|
442
444
|
// `IntlErrorBoundary` only captures Internationalisation errors, leaving others for `ErrorBoundary`.
|
|
443
|
-
return
|
|
445
|
+
return jsx(ErrorBoundary, {
|
|
444
446
|
component: ACTION_SUBJECT.RENDERER,
|
|
445
447
|
rethrowError: true,
|
|
446
448
|
fallbackComponent: null,
|
|
447
449
|
createAnalyticsEvent: createAnalyticsEvent
|
|
448
|
-
},
|
|
450
|
+
}, jsx(IntlErrorBoundary, null, jsx(Renderer, _extends({}, props, {
|
|
449
451
|
createAnalyticsEvent: createAnalyticsEvent
|
|
450
452
|
}))));
|
|
451
453
|
}
|
|
@@ -513,14 +515,14 @@ var RendererWrapper = /*#__PURE__*/React.memo(function (props) {
|
|
|
513
515
|
};
|
|
514
516
|
}
|
|
515
517
|
}, [innerRef, addTelepointer]);
|
|
516
|
-
return
|
|
518
|
+
return jsx(WidthProvider, {
|
|
517
519
|
className: "ak-renderer-wrapper is-".concat(appearance),
|
|
518
520
|
"data-appearance": appearance
|
|
519
|
-
},
|
|
521
|
+
}, jsx(BaseTheme, {
|
|
520
522
|
baseFontSize: appearance && appearance !== 'comment' ? akEditorFullPageDefaultFontSize : undefined
|
|
521
|
-
},
|
|
523
|
+
}, jsx(EditorMediaClientProvider, {
|
|
522
524
|
ssr: ssr
|
|
523
|
-
},
|
|
525
|
+
}, jsx("div", {
|
|
524
526
|
ref: innerRef,
|
|
525
527
|
onClick: onClick,
|
|
526
528
|
onMouseDown: onMouseDown,
|
|
@@ -557,15 +559,15 @@ var RendererWithAnnotationSelection = function RendererWithAnnotationSelection(p
|
|
|
557
559
|
var localRef = React.useRef(null);
|
|
558
560
|
var innerRef = props.innerRef || localRef;
|
|
559
561
|
if (!allowAnnotations) {
|
|
560
|
-
return
|
|
562
|
+
return jsx(RendererWithAnalytics, _extends({
|
|
561
563
|
innerRef: innerRef
|
|
562
564
|
}, props));
|
|
563
565
|
}
|
|
564
|
-
return
|
|
566
|
+
return jsx(RendererActionsContext, null, jsx(AnnotationsWrapper, {
|
|
565
567
|
rendererRef: innerRef,
|
|
566
568
|
adfDocument: adfDocument,
|
|
567
569
|
annotationProvider: props.annotationProvider
|
|
568
|
-
},
|
|
570
|
+
}, jsx(RendererWithAnalytics, _extends({
|
|
569
571
|
innerRef: innerRef
|
|
570
572
|
}, props, {
|
|
571
573
|
featureFlags: props.featureFlags
|
|
@@ -7,7 +7,8 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
7
7
|
var _templateObject;
|
|
8
8
|
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); }; }
|
|
9
9
|
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; } }
|
|
10
|
-
|
|
10
|
+
/** @jsx jsx */
|
|
11
|
+
import { css, jsx } from '@emotion/react';
|
|
11
12
|
import { Component } from 'react';
|
|
12
13
|
var fadeOutStyles = function fadeOutStyles(maxHeight, top, backgroundColor) {
|
|
13
14
|
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 ", ",\n ", "\n );\n }\n"])), maxHeight, top, "var(--ds-background-neutral-subtle, rgba(255, 255, 255, 0))", backgroundColor);
|
|
@@ -19,7 +20,7 @@ var FadeOut = function FadeOut(props) {
|
|
|
19
20
|
height = props.height;
|
|
20
21
|
var top = height - fadeHeight;
|
|
21
22
|
var styles = fadeOutStyles(height, top, backgroundColor);
|
|
22
|
-
return
|
|
23
|
+
return jsx("div", {
|
|
23
24
|
css: styles
|
|
24
25
|
}, children);
|
|
25
26
|
};
|
|
@@ -43,7 +44,7 @@ export var TruncatedWrapper = /*#__PURE__*/function (_Component) {
|
|
|
43
44
|
_this$props$backgroun = _this$props.backgroundColor,
|
|
44
45
|
backgroundColor = _this$props$backgroun === void 0 ? "var(--ds-surface, white)" : _this$props$backgroun,
|
|
45
46
|
children = _this$props.children;
|
|
46
|
-
return
|
|
47
|
+
return jsx(FadeOut, {
|
|
47
48
|
height: height,
|
|
48
49
|
fadeHeight: fadeHeight,
|
|
49
50
|
backgroundColor: backgroundColor
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
2
|
var _templateObject, _templateObject2, _templateObject3;
|
|
3
|
-
|
|
3
|
+
/** @jsx jsx */
|
|
4
|
+
import { css, jsx } from '@emotion/react';
|
|
4
5
|
import Tooltip from '@atlaskit/tooltip';
|
|
5
6
|
import { N20, N30 } from '@atlaskit/theme/colors';
|
|
6
7
|
import { SortOrder } from '@atlaskit/editor-common/types';
|
|
@@ -92,11 +93,11 @@ var SortingIcon = function SortingIcon(_ref) {
|
|
|
92
93
|
onKeyDown(event);
|
|
93
94
|
}
|
|
94
95
|
};
|
|
95
|
-
return
|
|
96
|
+
return jsx(Tooltip, {
|
|
96
97
|
delay: 0,
|
|
97
98
|
content: content,
|
|
98
99
|
position: "top"
|
|
99
|
-
},
|
|
100
|
+
}, jsx("div", {
|
|
100
101
|
css: buttonStyles,
|
|
101
102
|
className: buttonClassName,
|
|
102
103
|
role: "button",
|
|
@@ -105,10 +106,10 @@ var SortingIcon = function SortingIcon(_ref) {
|
|
|
105
106
|
"aria-disabled": !isSortingAllowed,
|
|
106
107
|
onClick: handleClick,
|
|
107
108
|
onKeyDown: handleKeyDown
|
|
108
|
-
},
|
|
109
|
+
}, jsx("div", {
|
|
109
110
|
css: iconWrapperStyles,
|
|
110
111
|
className: getIconClassName(isSortingAllowed, sortOrdered)
|
|
111
|
-
},
|
|
112
|
+
}, jsx("div", {
|
|
112
113
|
css: iconStyles
|
|
113
114
|
}))));
|
|
114
115
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
3
3
|
var _templateObject;
|
|
4
|
+
/** @jsx jsx */
|
|
4
5
|
import React, { Fragment } from 'react';
|
|
5
|
-
import { css } from '@emotion/react';
|
|
6
|
+
import { css, jsx } from '@emotion/react';
|
|
6
7
|
import { InsertDraftPosition } from '../types';
|
|
7
8
|
import { AnnotationsDraftContext } from '../context';
|
|
8
9
|
import { splitText, calcTextSplitOffset, findTextString } from './text';
|
|
@@ -15,7 +16,7 @@ var markStyles = function markStyles(props) {
|
|
|
15
16
|
export var AnnotationDraft = function AnnotationDraft(_ref) {
|
|
16
17
|
var draftPosition = _ref.draftPosition,
|
|
17
18
|
children = _ref.children;
|
|
18
|
-
return
|
|
19
|
+
return jsx("mark", _extends({
|
|
19
20
|
"data-renderer-mark": true
|
|
20
21
|
}, dataAttributes(draftPosition), {
|
|
21
22
|
css: markStyles
|
|
@@ -40,12 +41,12 @@ export var applyAnnotationOnText = function applyAnnotationOnText(_ref2) {
|
|
|
40
41
|
var annotateIndex = getAnnotationIndex(shouldApplyAnnotationAt, texts.length);
|
|
41
42
|
return texts.map(function (value, index) {
|
|
42
43
|
if (annotateIndex === index) {
|
|
43
|
-
return
|
|
44
|
+
return jsx(AnnotationDraft, {
|
|
44
45
|
key: index,
|
|
45
46
|
draftPosition: draftPosition
|
|
46
47
|
}, value);
|
|
47
48
|
}
|
|
48
|
-
return
|
|
49
|
+
return jsx(React.Fragment, {
|
|
49
50
|
key: index
|
|
50
51
|
}, value);
|
|
51
52
|
});
|
|
@@ -68,27 +69,27 @@ export var TextWithAnnotationDraft = function TextWithAnnotationDraft(_ref3) {
|
|
|
68
69
|
return calcInsertDraftPositionOnText(textPosition, nextDraftPosition);
|
|
69
70
|
}, [nextDraftPosition, textPosition]);
|
|
70
71
|
if (shouldApplyAnnotationAt === false || !nextDraftPosition) {
|
|
71
|
-
return
|
|
72
|
+
return jsx(Fragment, null, children);
|
|
72
73
|
}
|
|
73
74
|
if (shouldApplyAnnotationAt === InsertDraftPosition.AROUND_TEXT) {
|
|
74
|
-
return
|
|
75
|
+
return jsx(AnnotationDraft, {
|
|
75
76
|
key: 0,
|
|
76
77
|
draftPosition: nextDraftPosition
|
|
77
78
|
}, children);
|
|
78
79
|
}
|
|
79
80
|
var textString = findTextString(children);
|
|
80
81
|
if (!textString) {
|
|
81
|
-
return
|
|
82
|
+
return jsx(Fragment, null, children);
|
|
82
83
|
}
|
|
83
84
|
var offsets = calcTextSplitOffset(nextDraftPosition, textPosition, textString);
|
|
84
85
|
var texts = splitText(textString, offsets);
|
|
85
86
|
if (!texts) {
|
|
86
|
-
return
|
|
87
|
+
return jsx(Fragment, null, children);
|
|
87
88
|
}
|
|
88
89
|
var components = applyAnnotationOnText({
|
|
89
90
|
texts: texts,
|
|
90
91
|
shouldApplyAnnotationAt: shouldApplyAnnotationAt,
|
|
91
92
|
draftPosition: nextDraftPosition
|
|
92
93
|
});
|
|
93
|
-
return
|
|
94
|
+
return jsx(Fragment, null, components);
|
|
94
95
|
};
|
|
@@ -5,8 +5,9 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
5
5
|
var _templateObject;
|
|
6
6
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7
7
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8
|
+
/** @jsx jsx */
|
|
8
9
|
import React, { useMemo, useCallback } from 'react';
|
|
9
|
-
import { css } from '@emotion/react';
|
|
10
|
+
import { css, jsx } from '@emotion/react';
|
|
10
11
|
import { AnnotationSharedCSSByState } from '@atlaskit/editor-common/styles';
|
|
11
12
|
import { AnnotationMarkStates } from '@atlaskit/adf-schema';
|
|
12
13
|
var markStyles = function markStyles(props) {
|
|
@@ -49,7 +50,7 @@ export var MarkComponent = function MarkComponent(_ref) {
|
|
|
49
50
|
} : {
|
|
50
51
|
'aria-details': annotationIds.join(', ')
|
|
51
52
|
};
|
|
52
|
-
return
|
|
53
|
+
return jsx("mark", _extends({
|
|
53
54
|
id: id,
|
|
54
55
|
onClick: onMarkClick
|
|
55
56
|
}, accessibility, overriddenData, {
|
|
@@ -58,7 +58,7 @@ declare const BlockCard: React.ComponentType<{
|
|
|
58
58
|
}> & Loadable.LoadableComponent;
|
|
59
59
|
declare const Media: React.ComponentType<import("./media").MediaProps> & Loadable.LoadableComponent;
|
|
60
60
|
declare const MediaGroup: React.ComponentType<import("./mediaGroup").MediaGroupProps> & Loadable.LoadableComponent;
|
|
61
|
-
declare const MediaInline: React.ComponentType<import("react-intl-next").WithIntlProps<import("./mediaInline").MediaInlineProps & import("react-intl-next").WrappedComponentProps<"intl"
|
|
61
|
+
declare const MediaInline: React.ComponentType<import("react-intl-next").WithIntlProps<import("./mediaInline").MediaInlineProps & import("react-intl-next").WrappedComponentProps<"intl"> & import("@atlaskit/editor-common/media-inline").MediaInlineAttrs>> & Loadable.LoadableComponent;
|
|
62
62
|
declare const MediaSingle: React.ComponentType<import("react-intl-next").WithIntlProps<import("./mediaSingle").Props & import("react-intl-next").WrappedComponentProps<"intl">>> & Loadable.LoadableComponent;
|
|
63
63
|
declare const Mention: React.ComponentType<import("./mention").Props> & Loadable.LoadableComponent;
|
|
64
64
|
declare const Expand: React.ComponentType<import("react-intl-next").WithIntlProps<import("../../ui/Expand").ExpandProps & import("react-intl-next").WrappedComponentProps<"intl">>> & Loadable.LoadableComponent;
|
|
@@ -8,6 +8,7 @@ import type { EventHandlers } from '@atlaskit/editor-common/ui';
|
|
|
8
8
|
import type { RendererAppearance } from '../../ui/Renderer/types';
|
|
9
9
|
import type { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
10
10
|
import type { RendererContext } from '../types';
|
|
11
|
+
import type { MediaInlineAttrs } from '@atlaskit/editor-common/media-inline';
|
|
11
12
|
type MediaInlineProviders = {
|
|
12
13
|
mediaProvider?: Promise<MediaProvider>;
|
|
13
14
|
contextIdentifierProvider?: Promise<ContextIdentifierProvider>;
|
|
@@ -32,8 +33,8 @@ export type MediaInlineProps = {
|
|
|
32
33
|
rendererAppearance?: RendererAppearance;
|
|
33
34
|
featureFlags?: MediaFeatureFlags;
|
|
34
35
|
};
|
|
35
|
-
export declare const RenderMediaInline: FC<RenderMediaInlineProps>;
|
|
36
|
-
declare const _default: React.FC<import("react-intl-next").WithIntlProps<MediaInlineProps & WrappedComponentProps<"intl"
|
|
37
|
-
WrappedComponent: React.ComponentType<MediaInlineProps & WrappedComponentProps<"intl"
|
|
36
|
+
export declare const RenderMediaInline: FC<RenderMediaInlineProps & MediaInlineAttrs>;
|
|
37
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<MediaInlineProps & WrappedComponentProps<"intl"> & MediaInlineAttrs>> & {
|
|
38
|
+
WrappedComponent: React.ComponentType<MediaInlineProps & WrappedComponentProps<"intl"> & MediaInlineAttrs>;
|
|
38
39
|
};
|
|
39
40
|
export default _default;
|
|
@@ -58,7 +58,7 @@ declare const BlockCard: React.ComponentType<{
|
|
|
58
58
|
}> & Loadable.LoadableComponent;
|
|
59
59
|
declare const Media: React.ComponentType<import("./media").MediaProps> & Loadable.LoadableComponent;
|
|
60
60
|
declare const MediaGroup: React.ComponentType<import("./mediaGroup").MediaGroupProps> & Loadable.LoadableComponent;
|
|
61
|
-
declare const MediaInline: React.ComponentType<import("react-intl-next").WithIntlProps<import("./mediaInline").MediaInlineProps & import("react-intl-next").WrappedComponentProps<"intl"
|
|
61
|
+
declare const MediaInline: React.ComponentType<import("react-intl-next").WithIntlProps<import("./mediaInline").MediaInlineProps & import("react-intl-next").WrappedComponentProps<"intl"> & import("@atlaskit/editor-common/media-inline").MediaInlineAttrs>> & Loadable.LoadableComponent;
|
|
62
62
|
declare const MediaSingle: React.ComponentType<import("react-intl-next").WithIntlProps<import("./mediaSingle").Props & import("react-intl-next").WrappedComponentProps<"intl">>> & Loadable.LoadableComponent;
|
|
63
63
|
declare const Mention: React.ComponentType<import("./mention").Props> & Loadable.LoadableComponent;
|
|
64
64
|
declare const Expand: React.ComponentType<import("react-intl-next").WithIntlProps<import("../../ui/Expand").ExpandProps & import("react-intl-next").WrappedComponentProps<"intl">>> & Loadable.LoadableComponent;
|
|
@@ -8,6 +8,7 @@ import type { EventHandlers } from '@atlaskit/editor-common/ui';
|
|
|
8
8
|
import type { RendererAppearance } from '../../ui/Renderer/types';
|
|
9
9
|
import type { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
10
10
|
import type { RendererContext } from '../types';
|
|
11
|
+
import type { MediaInlineAttrs } from '@atlaskit/editor-common/media-inline';
|
|
11
12
|
type MediaInlineProviders = {
|
|
12
13
|
mediaProvider?: Promise<MediaProvider>;
|
|
13
14
|
contextIdentifierProvider?: Promise<ContextIdentifierProvider>;
|
|
@@ -32,8 +33,8 @@ export type MediaInlineProps = {
|
|
|
32
33
|
rendererAppearance?: RendererAppearance;
|
|
33
34
|
featureFlags?: MediaFeatureFlags;
|
|
34
35
|
};
|
|
35
|
-
export declare const RenderMediaInline: FC<RenderMediaInlineProps>;
|
|
36
|
-
declare const _default: React.FC<import("react-intl-next").WithIntlProps<MediaInlineProps & WrappedComponentProps<"intl"
|
|
37
|
-
WrappedComponent: React.ComponentType<MediaInlineProps & WrappedComponentProps<"intl"
|
|
36
|
+
export declare const RenderMediaInline: FC<RenderMediaInlineProps & MediaInlineAttrs>;
|
|
37
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<MediaInlineProps & WrappedComponentProps<"intl"> & MediaInlineAttrs>> & {
|
|
38
|
+
WrappedComponent: React.ComponentType<MediaInlineProps & WrappedComponentProps<"intl"> & MediaInlineAttrs>;
|
|
38
39
|
};
|
|
39
40
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "108.
|
|
3
|
+
"version": "108.19.0",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -69,6 +69,7 @@
|
|
|
69
69
|
"react-dom": "^16.8.0"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
+
"@af/integration-testing": "*",
|
|
72
73
|
"@af/visual-regression": "*",
|
|
73
74
|
"@atlaskit/analytics-gas-types": "^5.1.0",
|
|
74
75
|
"@atlaskit/css-reset": "^6.6.0",
|