@atlaskit/renderer 109.19.0 → 109.19.1
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 +6 -0
- package/dist/cjs/react/nodes/media/index.js +11 -5
- package/dist/cjs/react/nodes/mediaSingle/index.js +6 -4
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/es2019/react/nodes/media/index.js +8 -4
- package/dist/es2019/react/nodes/mediaSingle/index.js +6 -4
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/react/nodes/media/index.js +11 -5
- package/dist/esm/react/nodes/mediaSingle/index.js +6 -4
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/dist/types/react/nodes/media/index.d.ts +1 -0
- package/dist/types-ts4.5/react/nodes/media/index.d.ts +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 109.19.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#91808](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91808) [`00e5dcfdf240`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/00e5dcfdf240) - [ux] Does not add comment button on hover on media that is inside comment or inline comment rendereres
|
|
8
|
+
|
|
3
9
|
## 109.19.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
|
@@ -35,7 +35,7 @@ var _mediaSingle = require("@atlaskit/editor-common/media-single");
|
|
|
35
35
|
var _reactIntlNext = require("react-intl-next");
|
|
36
36
|
var _hooks = require("../../../ui/annotations/hooks");
|
|
37
37
|
var _types = require("@atlaskit/editor-common/types");
|
|
38
|
-
var _excluded = ["marks", "mediaElement"];
|
|
38
|
+
var _excluded = ["marks", "mediaElement", "isDrafting"];
|
|
39
39
|
/** @jsx jsx */
|
|
40
40
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
41
41
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -121,6 +121,8 @@ var CommentBadgeWrapper = function CommentBadgeWrapper(_ref5) {
|
|
|
121
121
|
var _marks$map;
|
|
122
122
|
var marks = _ref5.marks,
|
|
123
123
|
mediaElement = _ref5.mediaElement,
|
|
124
|
+
_ref5$isDrafting = _ref5.isDrafting,
|
|
125
|
+
isDrafting = _ref5$isDrafting === void 0 ? false : _ref5$isDrafting,
|
|
124
126
|
rest = (0, _objectWithoutProperties2.default)(_ref5, _excluded);
|
|
125
127
|
var _useState = (0, _react.useState)('default'),
|
|
126
128
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
@@ -160,7 +162,7 @@ var CommentBadgeWrapper = function CommentBadgeWrapper(_ref5) {
|
|
|
160
162
|
observer.disconnect();
|
|
161
163
|
};
|
|
162
164
|
}, [mediaElement, setStatus]);
|
|
163
|
-
if (!activeParentIds.length) {
|
|
165
|
+
if (!isDrafting && !activeParentIds.length) {
|
|
164
166
|
return null;
|
|
165
167
|
}
|
|
166
168
|
var onClick = function onClick(e) {
|
|
@@ -201,7 +203,9 @@ var Media = /*#__PURE__*/function (_PureComponent) {
|
|
|
201
203
|
ssr = _this$props.ssr,
|
|
202
204
|
width = _this$props.width,
|
|
203
205
|
height = _this$props.height,
|
|
204
|
-
mediaSingleElement = _this$props.mediaSingleElement
|
|
206
|
+
mediaSingleElement = _this$props.mediaSingleElement,
|
|
207
|
+
_this$props$isDraftin = _this$props.isDrafting,
|
|
208
|
+
isDrafting = _this$props$isDraftin === void 0 ? false : _this$props$isDraftin;
|
|
205
209
|
var annotationMarks = _this.props.isAnnotationMark ? _this.props.marks.filter(_this.props.isAnnotationMark) : undefined;
|
|
206
210
|
var borderMark = _this.props.marks.find(_this.props.isBorderMark);
|
|
207
211
|
var linkMark = _this.props.marks.find(_this.props.isLinkMark);
|
|
@@ -223,7 +227,8 @@ var Media = /*#__PURE__*/function (_PureComponent) {
|
|
|
223
227
|
marks: annotationMarks,
|
|
224
228
|
mediaElement: mediaSingleElement,
|
|
225
229
|
width: width,
|
|
226
|
-
height: height
|
|
230
|
+
height: height,
|
|
231
|
+
isDrafting: isDrafting
|
|
227
232
|
}), (0, _react2.jsx)(_MediaCard.MediaCard, (0, _extends2.default)({
|
|
228
233
|
contextIdentifierProvider: contextIdentifierProvider
|
|
229
234
|
}, _this.props, {
|
|
@@ -311,7 +316,8 @@ var MediaWithDraftAnnotation = function MediaWithDraftAnnotation(props) {
|
|
|
311
316
|
}) : dataAttributes;
|
|
312
317
|
}, [applyDraftAnnotation, dataAttributes]);
|
|
313
318
|
return (0, _react2.jsx)(Media, (0, _extends2.default)({}, props, {
|
|
314
|
-
dataAttributes: dataAttributesWithDraftAnnotation
|
|
319
|
+
dataAttributes: dataAttributesWithDraftAnnotation,
|
|
320
|
+
isDrafting: shouldApplyDraftAnnotation
|
|
315
321
|
}));
|
|
316
322
|
};
|
|
317
323
|
var _default = exports.default = MediaWithDraftAnnotation;
|
|
@@ -114,8 +114,9 @@ var MediaSingleWithChildren = function MediaSingleWithChildren(props) {
|
|
|
114
114
|
|
|
115
115
|
// TODO: put appearance-based padding into theme instead
|
|
116
116
|
|
|
117
|
-
var
|
|
117
|
+
var isFullPage = rendererAppearance === 'full-page';
|
|
118
118
|
var isFullWidth = rendererAppearance === 'full-width';
|
|
119
|
+
var padding = isFullPage ? _style.FullPagePadding * 2 : 0;
|
|
119
120
|
var calcDimensions = (0, _react.useCallback)(function (mediaContainerWidth) {
|
|
120
121
|
var containerWidth = getMediaContainerWidth(mediaContainerWidth, layout);
|
|
121
122
|
var maxWidth = containerWidth;
|
|
@@ -152,6 +153,7 @@ var MediaSingleWithChildren = function MediaSingleWithChildren(props) {
|
|
|
152
153
|
cancelTimeout = _useAnnotationHoverDi.cancelTimeout,
|
|
153
154
|
initiateTimeout = _useAnnotationHoverDi.initiateTimeout,
|
|
154
155
|
setIsWithinRange = _useAnnotationHoverDi.setIsWithinRange;
|
|
156
|
+
var isFullPageRenderer = isFullPage || isFullWidth;
|
|
155
157
|
(0, _react.useEffect)(function () {
|
|
156
158
|
var mediaSingleElement = ref.current;
|
|
157
159
|
var handleMouseEnter = function handleMouseEnter(event) {
|
|
@@ -164,17 +166,17 @@ var MediaSingleWithChildren = function MediaSingleWithChildren(props) {
|
|
|
164
166
|
var handleMouseLeave = function handleMouseLeave() {
|
|
165
167
|
initiateTimeout();
|
|
166
168
|
};
|
|
167
|
-
if (mediaSingleElement) {
|
|
169
|
+
if (mediaSingleElement && isFullPageRenderer) {
|
|
168
170
|
mediaSingleElement.addEventListener('mouseenter', handleMouseEnter);
|
|
169
171
|
mediaSingleElement.addEventListener('mouseleave', handleMouseLeave);
|
|
170
172
|
}
|
|
171
173
|
return function () {
|
|
172
|
-
if (mediaSingleElement) {
|
|
174
|
+
if (mediaSingleElement && isFullPageRenderer) {
|
|
173
175
|
mediaSingleElement.removeEventListener('mouseenter', handleMouseEnter);
|
|
174
176
|
mediaSingleElement.removeEventListener('mouseleave', handleMouseLeave);
|
|
175
177
|
}
|
|
176
178
|
};
|
|
177
|
-
}, [setHoverTarget, cancelTimeout, initiateTimeout, setIsWithinRange]);
|
|
179
|
+
}, [setHoverTarget, isFullPageRenderer, cancelTimeout, initiateTimeout, setIsWithinRange]);
|
|
178
180
|
|
|
179
181
|
// Note: in SSR mode the `window` object is not defined,
|
|
180
182
|
// therefore width here is 0, see:
|
|
@@ -55,7 +55,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
55
55
|
var NORMAL_SEVERITY_THRESHOLD = exports.NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
56
56
|
var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
57
57
|
var packageName = "@atlaskit/renderer";
|
|
58
|
-
var packageVersion = "109.19.
|
|
58
|
+
var packageVersion = "109.19.1";
|
|
59
59
|
var Renderer = exports.Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
60
60
|
(0, _inherits2.default)(Renderer, _PureComponent);
|
|
61
61
|
var _super = _createSuper(Renderer);
|
|
@@ -101,6 +101,7 @@ const CommentBadge = injectIntl(CommentBadgeComponent);
|
|
|
101
101
|
const CommentBadgeWrapper = ({
|
|
102
102
|
marks,
|
|
103
103
|
mediaElement,
|
|
104
|
+
isDrafting = false,
|
|
104
105
|
...rest
|
|
105
106
|
}) => {
|
|
106
107
|
var _marks$map;
|
|
@@ -134,7 +135,7 @@ const CommentBadgeWrapper = ({
|
|
|
134
135
|
observer.disconnect();
|
|
135
136
|
};
|
|
136
137
|
}, [mediaElement, setStatus]);
|
|
137
|
-
if (!activeParentIds.length) {
|
|
138
|
+
if (!isDrafting && !activeParentIds.length) {
|
|
138
139
|
return null;
|
|
139
140
|
}
|
|
140
141
|
const onClick = e => {
|
|
@@ -168,7 +169,8 @@ class Media extends PureComponent {
|
|
|
168
169
|
ssr,
|
|
169
170
|
width,
|
|
170
171
|
height,
|
|
171
|
-
mediaSingleElement
|
|
172
|
+
mediaSingleElement,
|
|
173
|
+
isDrafting = false
|
|
172
174
|
} = this.props;
|
|
173
175
|
const annotationMarks = this.props.isAnnotationMark ? this.props.marks.filter(this.props.isAnnotationMark) : undefined;
|
|
174
176
|
const borderMark = this.props.marks.find(this.props.isBorderMark);
|
|
@@ -193,7 +195,8 @@ class Media extends PureComponent {
|
|
|
193
195
|
marks: annotationMarks,
|
|
194
196
|
mediaElement: mediaSingleElement,
|
|
195
197
|
width: width,
|
|
196
|
-
height: height
|
|
198
|
+
height: height,
|
|
199
|
+
isDrafting: isDrafting
|
|
197
200
|
}), jsx(MediaCard, _extends({
|
|
198
201
|
contextIdentifierProvider: contextIdentifierProvider
|
|
199
202
|
}, this.props, {
|
|
@@ -274,7 +277,8 @@ const MediaWithDraftAnnotation = props => {
|
|
|
274
277
|
'data-renderer-mark': true
|
|
275
278
|
} : dataAttributes, [applyDraftAnnotation, dataAttributes]);
|
|
276
279
|
return jsx(Media, _extends({}, props, {
|
|
277
|
-
dataAttributes: dataAttributesWithDraftAnnotation
|
|
280
|
+
dataAttributes: dataAttributesWithDraftAnnotation,
|
|
281
|
+
isDrafting: shouldApplyDraftAnnotation
|
|
278
282
|
}));
|
|
279
283
|
};
|
|
280
284
|
export default MediaWithDraftAnnotation;
|
|
@@ -101,8 +101,9 @@ const MediaSingleWithChildren = props => {
|
|
|
101
101
|
|
|
102
102
|
// TODO: put appearance-based padding into theme instead
|
|
103
103
|
|
|
104
|
-
const
|
|
104
|
+
const isFullPage = rendererAppearance === 'full-page';
|
|
105
105
|
const isFullWidth = rendererAppearance === 'full-width';
|
|
106
|
+
const padding = isFullPage ? FullPagePadding * 2 : 0;
|
|
106
107
|
const calcDimensions = useCallback(mediaContainerWidth => {
|
|
107
108
|
const containerWidth = getMediaContainerWidth(mediaContainerWidth, layout);
|
|
108
109
|
const maxWidth = containerWidth;
|
|
@@ -139,6 +140,7 @@ const MediaSingleWithChildren = props => {
|
|
|
139
140
|
initiateTimeout,
|
|
140
141
|
setIsWithinRange
|
|
141
142
|
} = useAnnotationHoverDispatch();
|
|
143
|
+
const isFullPageRenderer = isFullPage || isFullWidth;
|
|
142
144
|
useEffect(() => {
|
|
143
145
|
const mediaSingleElement = ref.current;
|
|
144
146
|
const handleMouseEnter = event => {
|
|
@@ -151,17 +153,17 @@ const MediaSingleWithChildren = props => {
|
|
|
151
153
|
const handleMouseLeave = () => {
|
|
152
154
|
initiateTimeout();
|
|
153
155
|
};
|
|
154
|
-
if (mediaSingleElement) {
|
|
156
|
+
if (mediaSingleElement && isFullPageRenderer) {
|
|
155
157
|
mediaSingleElement.addEventListener('mouseenter', handleMouseEnter);
|
|
156
158
|
mediaSingleElement.addEventListener('mouseleave', handleMouseLeave);
|
|
157
159
|
}
|
|
158
160
|
return () => {
|
|
159
|
-
if (mediaSingleElement) {
|
|
161
|
+
if (mediaSingleElement && isFullPageRenderer) {
|
|
160
162
|
mediaSingleElement.removeEventListener('mouseenter', handleMouseEnter);
|
|
161
163
|
mediaSingleElement.removeEventListener('mouseleave', handleMouseLeave);
|
|
162
164
|
}
|
|
163
165
|
};
|
|
164
|
-
}, [setHoverTarget, cancelTimeout, initiateTimeout, setIsWithinRange]);
|
|
166
|
+
}, [setHoverTarget, isFullPageRenderer, cancelTimeout, initiateTimeout, setIsWithinRange]);
|
|
165
167
|
|
|
166
168
|
// Note: in SSR mode the `window` object is not defined,
|
|
167
169
|
// therefore width here is 0, see:
|
|
@@ -36,7 +36,7 @@ import { EditorMediaClientProvider } from '../../react/utils/EditorMediaClientPr
|
|
|
36
36
|
export const NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
37
37
|
export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
38
38
|
const packageName = "@atlaskit/renderer";
|
|
39
|
-
const packageVersion = "109.19.
|
|
39
|
+
const packageVersion = "109.19.1";
|
|
40
40
|
export class Renderer extends PureComponent {
|
|
41
41
|
constructor(props) {
|
|
42
42
|
super(props);
|
|
@@ -8,7 +8,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
8
8
|
import _extends from "@babel/runtime/helpers/extends";
|
|
9
9
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
10
10
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
11
|
-
var _excluded = ["marks", "mediaElement"];
|
|
11
|
+
var _excluded = ["marks", "mediaElement", "isDrafting"];
|
|
12
12
|
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; }
|
|
13
13
|
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; }
|
|
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); }; }
|
|
@@ -112,6 +112,8 @@ var CommentBadgeWrapper = function CommentBadgeWrapper(_ref5) {
|
|
|
112
112
|
var _marks$map;
|
|
113
113
|
var marks = _ref5.marks,
|
|
114
114
|
mediaElement = _ref5.mediaElement,
|
|
115
|
+
_ref5$isDrafting = _ref5.isDrafting,
|
|
116
|
+
isDrafting = _ref5$isDrafting === void 0 ? false : _ref5$isDrafting,
|
|
115
117
|
rest = _objectWithoutProperties(_ref5, _excluded);
|
|
116
118
|
var _useState = useState('default'),
|
|
117
119
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -151,7 +153,7 @@ var CommentBadgeWrapper = function CommentBadgeWrapper(_ref5) {
|
|
|
151
153
|
observer.disconnect();
|
|
152
154
|
};
|
|
153
155
|
}, [mediaElement, setStatus]);
|
|
154
|
-
if (!activeParentIds.length) {
|
|
156
|
+
if (!isDrafting && !activeParentIds.length) {
|
|
155
157
|
return null;
|
|
156
158
|
}
|
|
157
159
|
var onClick = function onClick(e) {
|
|
@@ -192,7 +194,9 @@ var Media = /*#__PURE__*/function (_PureComponent) {
|
|
|
192
194
|
ssr = _this$props.ssr,
|
|
193
195
|
width = _this$props.width,
|
|
194
196
|
height = _this$props.height,
|
|
195
|
-
mediaSingleElement = _this$props.mediaSingleElement
|
|
197
|
+
mediaSingleElement = _this$props.mediaSingleElement,
|
|
198
|
+
_this$props$isDraftin = _this$props.isDrafting,
|
|
199
|
+
isDrafting = _this$props$isDraftin === void 0 ? false : _this$props$isDraftin;
|
|
196
200
|
var annotationMarks = _this.props.isAnnotationMark ? _this.props.marks.filter(_this.props.isAnnotationMark) : undefined;
|
|
197
201
|
var borderMark = _this.props.marks.find(_this.props.isBorderMark);
|
|
198
202
|
var linkMark = _this.props.marks.find(_this.props.isLinkMark);
|
|
@@ -214,7 +218,8 @@ var Media = /*#__PURE__*/function (_PureComponent) {
|
|
|
214
218
|
marks: annotationMarks,
|
|
215
219
|
mediaElement: mediaSingleElement,
|
|
216
220
|
width: width,
|
|
217
|
-
height: height
|
|
221
|
+
height: height,
|
|
222
|
+
isDrafting: isDrafting
|
|
218
223
|
}), jsx(MediaCard, _extends({
|
|
219
224
|
contextIdentifierProvider: contextIdentifierProvider
|
|
220
225
|
}, _this.props, {
|
|
@@ -302,7 +307,8 @@ var MediaWithDraftAnnotation = function MediaWithDraftAnnotation(props) {
|
|
|
302
307
|
}) : dataAttributes;
|
|
303
308
|
}, [applyDraftAnnotation, dataAttributes]);
|
|
304
309
|
return jsx(Media, _extends({}, props, {
|
|
305
|
-
dataAttributes: dataAttributesWithDraftAnnotation
|
|
310
|
+
dataAttributes: dataAttributesWithDraftAnnotation,
|
|
311
|
+
isDrafting: shouldApplyDraftAnnotation
|
|
306
312
|
}));
|
|
307
313
|
};
|
|
308
314
|
export default MediaWithDraftAnnotation;
|
|
@@ -104,8 +104,9 @@ var MediaSingleWithChildren = function MediaSingleWithChildren(props) {
|
|
|
104
104
|
|
|
105
105
|
// TODO: put appearance-based padding into theme instead
|
|
106
106
|
|
|
107
|
-
var
|
|
107
|
+
var isFullPage = rendererAppearance === 'full-page';
|
|
108
108
|
var isFullWidth = rendererAppearance === 'full-width';
|
|
109
|
+
var padding = isFullPage ? FullPagePadding * 2 : 0;
|
|
109
110
|
var calcDimensions = useCallback(function (mediaContainerWidth) {
|
|
110
111
|
var containerWidth = getMediaContainerWidth(mediaContainerWidth, layout);
|
|
111
112
|
var maxWidth = containerWidth;
|
|
@@ -142,6 +143,7 @@ var MediaSingleWithChildren = function MediaSingleWithChildren(props) {
|
|
|
142
143
|
cancelTimeout = _useAnnotationHoverDi.cancelTimeout,
|
|
143
144
|
initiateTimeout = _useAnnotationHoverDi.initiateTimeout,
|
|
144
145
|
setIsWithinRange = _useAnnotationHoverDi.setIsWithinRange;
|
|
146
|
+
var isFullPageRenderer = isFullPage || isFullWidth;
|
|
145
147
|
useEffect(function () {
|
|
146
148
|
var mediaSingleElement = ref.current;
|
|
147
149
|
var handleMouseEnter = function handleMouseEnter(event) {
|
|
@@ -154,17 +156,17 @@ var MediaSingleWithChildren = function MediaSingleWithChildren(props) {
|
|
|
154
156
|
var handleMouseLeave = function handleMouseLeave() {
|
|
155
157
|
initiateTimeout();
|
|
156
158
|
};
|
|
157
|
-
if (mediaSingleElement) {
|
|
159
|
+
if (mediaSingleElement && isFullPageRenderer) {
|
|
158
160
|
mediaSingleElement.addEventListener('mouseenter', handleMouseEnter);
|
|
159
161
|
mediaSingleElement.addEventListener('mouseleave', handleMouseLeave);
|
|
160
162
|
}
|
|
161
163
|
return function () {
|
|
162
|
-
if (mediaSingleElement) {
|
|
164
|
+
if (mediaSingleElement && isFullPageRenderer) {
|
|
163
165
|
mediaSingleElement.removeEventListener('mouseenter', handleMouseEnter);
|
|
164
166
|
mediaSingleElement.removeEventListener('mouseleave', handleMouseLeave);
|
|
165
167
|
}
|
|
166
168
|
};
|
|
167
|
-
}, [setHoverTarget, cancelTimeout, initiateTimeout, setIsWithinRange]);
|
|
169
|
+
}, [setHoverTarget, isFullPageRenderer, cancelTimeout, initiateTimeout, setIsWithinRange]);
|
|
168
170
|
|
|
169
171
|
// Note: in SSR mode the `window` object is not defined,
|
|
170
172
|
// therefore width here is 0, see:
|
|
@@ -46,7 +46,7 @@ import { EditorMediaClientProvider } from '../../react/utils/EditorMediaClientPr
|
|
|
46
46
|
export var NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
47
47
|
export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
48
48
|
var packageName = "@atlaskit/renderer";
|
|
49
|
-
var packageVersion = "109.19.
|
|
49
|
+
var packageVersion = "109.19.1";
|
|
50
50
|
export var Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
51
51
|
_inherits(Renderer, _PureComponent);
|
|
52
52
|
var _super = _createSuper(Renderer);
|
|
@@ -25,6 +25,7 @@ export type MediaProps = MediaCardProps & {
|
|
|
25
25
|
mediaSingleElement?: HTMLElement | null;
|
|
26
26
|
width?: number;
|
|
27
27
|
height?: number;
|
|
28
|
+
isDrafting: boolean;
|
|
28
29
|
};
|
|
29
30
|
declare const MediaWithDraftAnnotation: (props: PropsWithChildren<MediaProps>) => jsx.JSX.Element;
|
|
30
31
|
export default MediaWithDraftAnnotation;
|
|
@@ -25,6 +25,7 @@ export type MediaProps = MediaCardProps & {
|
|
|
25
25
|
mediaSingleElement?: HTMLElement | null;
|
|
26
26
|
width?: number;
|
|
27
27
|
height?: number;
|
|
28
|
+
isDrafting: boolean;
|
|
28
29
|
};
|
|
29
30
|
declare const MediaWithDraftAnnotation: (props: PropsWithChildren<MediaProps>) => jsx.JSX.Element;
|
|
30
31
|
export default MediaWithDraftAnnotation;
|