@atlaskit/renderer 108.11.16 → 108.11.17
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 +7 -0
- package/dist/cjs/react/nodes/media/index.js +5 -4
- package/dist/cjs/react/nodes/media/styles.js +3 -6
- package/dist/cjs/ui/MediaCard.js +2 -6
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/es2019/react/nodes/media/index.js +7 -5
- package/dist/es2019/react/nodes/media/styles.js +9 -11
- package/dist/es2019/ui/MediaCard.js +2 -6
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/react/nodes/media/index.js +7 -5
- package/dist/esm/react/nodes/media/styles.js +3 -6
- package/dist/esm/ui/MediaCard.js +2 -6
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/dist/types/react/nodes/media/index.d.ts +4 -5
- package/dist/types/react/nodes/media/styles.d.ts +2 -2
- package/dist/types/ui/MediaCard.d.ts +8 -9
- package/dist/types-ts4.5/react/nodes/media/index.d.ts +4 -5
- package/dist/types-ts4.5/react/nodes/media/styles.d.ts +2 -2
- package/dist/types-ts4.5/ui/MediaCard.d.ts +8 -9
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 108.11.17
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`e6122bf1c9a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e6122bf1c9a) - MEX-2481 revert and re-introduce a new fix for media border gap issue
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
3
10
|
## 108.11.16
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -64,7 +64,6 @@ var Media = /*#__PURE__*/function (_PureComponent) {
|
|
|
64
64
|
border: !!borderMark
|
|
65
65
|
})
|
|
66
66
|
}, (0, _react2.jsx)(_MediaCard.MediaCard, (0, _extends2.default)({
|
|
67
|
-
expandByPixel: borderMark && _ui.IMAGE_AND_BORDER_ADJUSTMENT,
|
|
68
67
|
mediaProvider: mediaProvider,
|
|
69
68
|
contextIdentifierProvider: contextIdentifierProvider
|
|
70
69
|
}, _this.props, {
|
|
@@ -80,14 +79,16 @@ var Media = /*#__PURE__*/function (_PureComponent) {
|
|
|
80
79
|
"data-mark-type": "border",
|
|
81
80
|
"data-color": borderColor,
|
|
82
81
|
"data-size": borderWidth,
|
|
83
|
-
css: (0, _styles.borderStyle)(
|
|
84
|
-
},
|
|
82
|
+
css: (0, _styles.borderStyle)(paletteColorValue, borderWidth)
|
|
83
|
+
}, (0, _react2.jsx)(_ui.MediaBorderGapFiller, {
|
|
84
|
+
borderColor: borderColor
|
|
85
|
+
}), mediaComponent) : mediaComponent;
|
|
85
86
|
return linkHref ? (0, _react2.jsx)("a", {
|
|
86
87
|
href: linkHref,
|
|
87
88
|
rel: "noreferrer noopener",
|
|
88
89
|
onClick: _this.handleMediaLinkClick,
|
|
89
90
|
"data-block-link": linkHref,
|
|
90
|
-
css:
|
|
91
|
+
css: _styles.linkStyle
|
|
91
92
|
}, mediaComponentWithBorder) : mediaComponentWithBorder;
|
|
92
93
|
});
|
|
93
94
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleMediaLinkClick", function (event) {
|
|
@@ -7,13 +7,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.linkStyle = exports.borderStyle = void 0;
|
|
8
8
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
|
-
var _ui = require("@atlaskit/editor-common/ui");
|
|
11
10
|
var _templateObject, _templateObject2;
|
|
12
|
-
var linkStyle =
|
|
13
|
-
return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: absolute;\n background: transparent;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n cursor: pointer;\n width: ", " !important;\n height: ", " !important;\n"])), hasBorderMark ? "calc(100% - ".concat(_ui.IMAGE_AND_BORDER_ADJUSTMENT, "px)") : '100%', hasBorderMark ? "calc(100% - ".concat(_ui.IMAGE_AND_BORDER_ADJUSTMENT, "px)") : '100%');
|
|
14
|
-
};
|
|
11
|
+
var linkStyle = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: absolute;\n background: transparent;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n cursor: pointer;\n width: 100% !important;\n height: 100% !important;\n"])));
|
|
15
12
|
exports.linkStyle = linkStyle;
|
|
16
|
-
var borderStyle = function borderStyle(
|
|
17
|
-
return (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n
|
|
13
|
+
var borderStyle = function borderStyle(color, width) {
|
|
14
|
+
return (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n position: absolute;\n width: 100% !important;\n height: 100% !important;\n border-radius: ", "px;\n box-shadow: 0 0 0 ", "px ", ";\n"])), width, width, color);
|
|
18
15
|
};
|
|
19
16
|
exports.borderStyle = borderStyle;
|
package/dist/cjs/ui/MediaCard.js
CHANGED
|
@@ -227,8 +227,7 @@ var MediaCardInternal = /*#__PURE__*/function (_Component) {
|
|
|
227
227
|
alt = _this$props3.alt,
|
|
228
228
|
featureFlags = _this$props3.featureFlags,
|
|
229
229
|
ssr = _this$props3.ssr,
|
|
230
|
-
rendererAppearance = _this$props3.rendererAppearance
|
|
231
|
-
expandByPixel = _this$props3.expandByPixel;
|
|
230
|
+
rendererAppearance = _this$props3.rendererAppearance;
|
|
232
231
|
if (imageStatus === 'loading' || !url) {
|
|
233
232
|
return this.renderLoadingCard();
|
|
234
233
|
}
|
|
@@ -242,7 +241,6 @@ var MediaCardInternal = /*#__PURE__*/function (_Component) {
|
|
|
242
241
|
// context is not really used when the type is external and we want to render the component asap
|
|
243
242
|
, {
|
|
244
243
|
mediaClientConfig: mediaClientConfig,
|
|
245
|
-
expandByPixel: expandByPixel,
|
|
246
244
|
alt: alt,
|
|
247
245
|
identifier: identifier,
|
|
248
246
|
dimensions: cardDimensions,
|
|
@@ -278,8 +276,7 @@ var MediaCardInternal = /*#__PURE__*/function (_Component) {
|
|
|
278
276
|
forceOpenMediaViewer = _this$props4.shouldOpenMediaViewer,
|
|
279
277
|
featureFlags = _this$props4.featureFlags,
|
|
280
278
|
shouldEnableDownloadButton = _this$props4.shouldEnableDownloadButton,
|
|
281
|
-
ssr = _this$props4.ssr
|
|
282
|
-
expandByPixel = _this$props4.expandByPixel;
|
|
279
|
+
ssr = _this$props4.ssr;
|
|
283
280
|
var isMobile = rendererAppearance === 'mobile';
|
|
284
281
|
var shouldPlayInline = useInlinePlayer !== undefined ? useInlinePlayer : true;
|
|
285
282
|
var isInlinePlayer = isMobile ? false : shouldPlayInline;
|
|
@@ -315,7 +312,6 @@ var MediaCardInternal = /*#__PURE__*/function (_Component) {
|
|
|
315
312
|
originalDimensions: originalDimensions,
|
|
316
313
|
fileState: fileState
|
|
317
314
|
}), /*#__PURE__*/_react.default.createElement(_mediaCard.Card, {
|
|
318
|
-
expandByPixel: expandByPixel,
|
|
319
315
|
identifier: identifier,
|
|
320
316
|
alt: alt,
|
|
321
317
|
contextId: contextId,
|
|
@@ -55,7 +55,7 @@ exports.NORMAL_SEVERITY_THRESHOLD = NORMAL_SEVERITY_THRESHOLD;
|
|
|
55
55
|
var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
56
56
|
exports.DEGRADED_SEVERITY_THRESHOLD = DEGRADED_SEVERITY_THRESHOLD;
|
|
57
57
|
var packageName = "@atlaskit/renderer";
|
|
58
|
-
var packageVersion = "108.11.
|
|
58
|
+
var packageVersion = "108.11.17";
|
|
59
59
|
var Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
60
60
|
(0, _inherits2.default)(Renderer, _PureComponent);
|
|
61
61
|
var _super = _createSuper(Renderer);
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
/** @jsx jsx */
|
|
4
|
+
|
|
4
5
|
import React from 'react';
|
|
5
6
|
import { PureComponent } from 'react';
|
|
6
7
|
import { jsx } from '@emotion/react';
|
|
7
8
|
import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
8
9
|
import { MEDIA_CONTEXT } from '@atlaskit/analytics-namespaced-context';
|
|
9
10
|
import { WithProviders } from '@atlaskit/editor-common/provider-factory';
|
|
10
|
-
import {
|
|
11
|
+
import { MediaBorderGapFiller } from '@atlaskit/editor-common/ui';
|
|
11
12
|
import { MediaCard } from '../../../ui/MediaCard';
|
|
12
13
|
import { hexToEditorBorderPaletteColor } from '@atlaskit/editor-palette';
|
|
13
14
|
import { getEventHandler } from '../../../utils';
|
|
@@ -45,7 +46,6 @@ export default class Media extends PureComponent {
|
|
|
45
46
|
}
|
|
46
47
|
}
|
|
47
48
|
}, jsx(MediaCard, _extends({
|
|
48
|
-
expandByPixel: borderMark && IMAGE_AND_BORDER_ADJUSTMENT,
|
|
49
49
|
mediaProvider: mediaProvider,
|
|
50
50
|
contextIdentifierProvider: contextIdentifierProvider
|
|
51
51
|
}, this.props, {
|
|
@@ -61,14 +61,16 @@ export default class Media extends PureComponent {
|
|
|
61
61
|
"data-mark-type": "border",
|
|
62
62
|
"data-color": borderColor,
|
|
63
63
|
"data-size": borderWidth,
|
|
64
|
-
css: borderStyle(
|
|
65
|
-
},
|
|
64
|
+
css: borderStyle(paletteColorValue, borderWidth)
|
|
65
|
+
}, jsx(MediaBorderGapFiller, {
|
|
66
|
+
borderColor: borderColor
|
|
67
|
+
}), mediaComponent) : mediaComponent;
|
|
66
68
|
return linkHref ? jsx("a", {
|
|
67
69
|
href: linkHref,
|
|
68
70
|
rel: "noreferrer noopener",
|
|
69
71
|
onClick: this.handleMediaLinkClick,
|
|
70
72
|
"data-block-link": linkHref,
|
|
71
|
-
css: linkStyle
|
|
73
|
+
css: linkStyle
|
|
72
74
|
}, mediaComponentWithBorder) : mediaComponentWithBorder;
|
|
73
75
|
});
|
|
74
76
|
_defineProperty(this, "handleMediaLinkClick", event => {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
|
-
|
|
3
|
-
export const linkStyle = hasBorderMark => css`
|
|
2
|
+
export const linkStyle = css`
|
|
4
3
|
position: absolute;
|
|
5
4
|
background: transparent;
|
|
6
5
|
top: 0;
|
|
@@ -8,14 +7,13 @@ export const linkStyle = hasBorderMark => css`
|
|
|
8
7
|
bottom: 0;
|
|
9
8
|
left: 0;
|
|
10
9
|
cursor: pointer;
|
|
11
|
-
width:
|
|
12
|
-
height:
|
|
10
|
+
width: 100% !important;
|
|
11
|
+
height: 100% !important;
|
|
13
12
|
`;
|
|
14
|
-
export const borderStyle = (
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
border-
|
|
19
|
-
|
|
20
|
-
border-radius: ${width * 2}px;
|
|
13
|
+
export const borderStyle = (color, width) => css`
|
|
14
|
+
position: absolute;
|
|
15
|
+
width: 100% !important;
|
|
16
|
+
height: 100% !important;
|
|
17
|
+
border-radius: ${width}px;
|
|
18
|
+
box-shadow: 0 0 0 ${width}px ${color};
|
|
21
19
|
`;
|
|
@@ -158,8 +158,7 @@ export class MediaCardInternal extends Component {
|
|
|
158
158
|
alt,
|
|
159
159
|
featureFlags,
|
|
160
160
|
ssr,
|
|
161
|
-
rendererAppearance
|
|
162
|
-
expandByPixel
|
|
161
|
+
rendererAppearance
|
|
163
162
|
} = this.props;
|
|
164
163
|
if (imageStatus === 'loading' || !url) {
|
|
165
164
|
return this.renderLoadingCard();
|
|
@@ -174,7 +173,6 @@ export class MediaCardInternal extends Component {
|
|
|
174
173
|
// context is not really used when the type is external and we want to render the component asap
|
|
175
174
|
, {
|
|
176
175
|
mediaClientConfig: mediaClientConfig,
|
|
177
|
-
expandByPixel: expandByPixel,
|
|
178
176
|
alt: alt,
|
|
179
177
|
identifier: identifier,
|
|
180
178
|
dimensions: cardDimensions,
|
|
@@ -209,8 +207,7 @@ export class MediaCardInternal extends Component {
|
|
|
209
207
|
shouldOpenMediaViewer: forceOpenMediaViewer,
|
|
210
208
|
featureFlags,
|
|
211
209
|
shouldEnableDownloadButton,
|
|
212
|
-
ssr
|
|
213
|
-
expandByPixel
|
|
210
|
+
ssr
|
|
214
211
|
} = this.props;
|
|
215
212
|
const isMobile = rendererAppearance === 'mobile';
|
|
216
213
|
const shouldPlayInline = useInlinePlayer !== undefined ? useInlinePlayer : true;
|
|
@@ -247,7 +244,6 @@ export class MediaCardInternal extends Component {
|
|
|
247
244
|
originalDimensions,
|
|
248
245
|
fileState
|
|
249
246
|
}), /*#__PURE__*/React.createElement(Card, {
|
|
250
|
-
expandByPixel: expandByPixel,
|
|
251
247
|
identifier: identifier,
|
|
252
248
|
alt: alt,
|
|
253
249
|
contextId: contextId,
|
|
@@ -35,7 +35,7 @@ import { RenderTracking } from '../../react/utils/performance/RenderTracking';
|
|
|
35
35
|
export const NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
36
36
|
export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
37
37
|
const packageName = "@atlaskit/renderer";
|
|
38
|
-
const packageVersion = "108.11.
|
|
38
|
+
const packageVersion = "108.11.17";
|
|
39
39
|
export class Renderer extends PureComponent {
|
|
40
40
|
constructor(props) {
|
|
41
41
|
super(props);
|
|
@@ -9,13 +9,14 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
9
9
|
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); }; }
|
|
10
10
|
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; } }
|
|
11
11
|
/** @jsx jsx */
|
|
12
|
+
|
|
12
13
|
import React from 'react';
|
|
13
14
|
import { PureComponent } from 'react';
|
|
14
15
|
import { jsx } from '@emotion/react';
|
|
15
16
|
import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
16
17
|
import { MEDIA_CONTEXT } from '@atlaskit/analytics-namespaced-context';
|
|
17
18
|
import { WithProviders } from '@atlaskit/editor-common/provider-factory';
|
|
18
|
-
import {
|
|
19
|
+
import { MediaBorderGapFiller } from '@atlaskit/editor-common/ui';
|
|
19
20
|
import { MediaCard } from '../../../ui/MediaCard';
|
|
20
21
|
import { hexToEditorBorderPaletteColor } from '@atlaskit/editor-palette';
|
|
21
22
|
import { getEventHandler } from '../../../utils';
|
|
@@ -56,7 +57,6 @@ var Media = /*#__PURE__*/function (_PureComponent) {
|
|
|
56
57
|
border: !!borderMark
|
|
57
58
|
})
|
|
58
59
|
}, jsx(MediaCard, _extends({
|
|
59
|
-
expandByPixel: borderMark && IMAGE_AND_BORDER_ADJUSTMENT,
|
|
60
60
|
mediaProvider: mediaProvider,
|
|
61
61
|
contextIdentifierProvider: contextIdentifierProvider
|
|
62
62
|
}, _this.props, {
|
|
@@ -72,14 +72,16 @@ var Media = /*#__PURE__*/function (_PureComponent) {
|
|
|
72
72
|
"data-mark-type": "border",
|
|
73
73
|
"data-color": borderColor,
|
|
74
74
|
"data-size": borderWidth,
|
|
75
|
-
css: borderStyle(
|
|
76
|
-
},
|
|
75
|
+
css: borderStyle(paletteColorValue, borderWidth)
|
|
76
|
+
}, jsx(MediaBorderGapFiller, {
|
|
77
|
+
borderColor: borderColor
|
|
78
|
+
}), mediaComponent) : mediaComponent;
|
|
77
79
|
return linkHref ? jsx("a", {
|
|
78
80
|
href: linkHref,
|
|
79
81
|
rel: "noreferrer noopener",
|
|
80
82
|
onClick: _this.handleMediaLinkClick,
|
|
81
83
|
"data-block-link": linkHref,
|
|
82
|
-
css: linkStyle
|
|
84
|
+
css: linkStyle
|
|
83
85
|
}, mediaComponentWithBorder) : mediaComponentWithBorder;
|
|
84
86
|
});
|
|
85
87
|
_defineProperty(_assertThisInitialized(_this), "handleMediaLinkClick", function (event) {
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
2
|
var _templateObject, _templateObject2;
|
|
3
3
|
import { css } from '@emotion/react';
|
|
4
|
-
|
|
5
|
-
export var
|
|
6
|
-
return css(
|
|
7
|
-
};
|
|
8
|
-
export var borderStyle = function borderStyle(hasLinkMark, color, width) {
|
|
9
|
-
return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: ", " !important;\n height: ", " !important;\n border-color: ", ";\n border-width: ", "px;\n border-style: solid;\n border-radius: ", "px;\n"])), hasLinkMark ? '100%' : "calc(100% - ".concat(IMAGE_AND_BORDER_ADJUSTMENT, "px)"), hasLinkMark ? '100%' : "calc(100% - ".concat(IMAGE_AND_BORDER_ADJUSTMENT, "px)"), color, width, width * 2);
|
|
4
|
+
export var linkStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: absolute;\n background: transparent;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n cursor: pointer;\n width: 100% !important;\n height: 100% !important;\n"])));
|
|
5
|
+
export var borderStyle = function borderStyle(color, width) {
|
|
6
|
+
return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: absolute;\n width: 100% !important;\n height: 100% !important;\n border-radius: ", "px;\n box-shadow: 0 0 0 ", "px ", ";\n"])), width, width, color);
|
|
10
7
|
};
|
package/dist/esm/ui/MediaCard.js
CHANGED
|
@@ -215,8 +215,7 @@ export var MediaCardInternal = /*#__PURE__*/function (_Component) {
|
|
|
215
215
|
alt = _this$props3.alt,
|
|
216
216
|
featureFlags = _this$props3.featureFlags,
|
|
217
217
|
ssr = _this$props3.ssr,
|
|
218
|
-
rendererAppearance = _this$props3.rendererAppearance
|
|
219
|
-
expandByPixel = _this$props3.expandByPixel;
|
|
218
|
+
rendererAppearance = _this$props3.rendererAppearance;
|
|
220
219
|
if (imageStatus === 'loading' || !url) {
|
|
221
220
|
return this.renderLoadingCard();
|
|
222
221
|
}
|
|
@@ -230,7 +229,6 @@ export var MediaCardInternal = /*#__PURE__*/function (_Component) {
|
|
|
230
229
|
// context is not really used when the type is external and we want to render the component asap
|
|
231
230
|
, {
|
|
232
231
|
mediaClientConfig: mediaClientConfig,
|
|
233
|
-
expandByPixel: expandByPixel,
|
|
234
232
|
alt: alt,
|
|
235
233
|
identifier: identifier,
|
|
236
234
|
dimensions: cardDimensions,
|
|
@@ -266,8 +264,7 @@ export var MediaCardInternal = /*#__PURE__*/function (_Component) {
|
|
|
266
264
|
forceOpenMediaViewer = _this$props4.shouldOpenMediaViewer,
|
|
267
265
|
featureFlags = _this$props4.featureFlags,
|
|
268
266
|
shouldEnableDownloadButton = _this$props4.shouldEnableDownloadButton,
|
|
269
|
-
ssr = _this$props4.ssr
|
|
270
|
-
expandByPixel = _this$props4.expandByPixel;
|
|
267
|
+
ssr = _this$props4.ssr;
|
|
271
268
|
var isMobile = rendererAppearance === 'mobile';
|
|
272
269
|
var shouldPlayInline = useInlinePlayer !== undefined ? useInlinePlayer : true;
|
|
273
270
|
var isInlinePlayer = isMobile ? false : shouldPlayInline;
|
|
@@ -303,7 +300,6 @@ export var MediaCardInternal = /*#__PURE__*/function (_Component) {
|
|
|
303
300
|
originalDimensions: originalDimensions,
|
|
304
301
|
fileState: fileState
|
|
305
302
|
}), /*#__PURE__*/React.createElement(Card, {
|
|
306
|
-
expandByPixel: expandByPixel,
|
|
307
303
|
identifier: identifier,
|
|
308
304
|
alt: alt,
|
|
309
305
|
contextId: contextId,
|
|
@@ -45,7 +45,7 @@ import { RenderTracking } from '../../react/utils/performance/RenderTracking';
|
|
|
45
45
|
export var NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
46
46
|
export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
47
47
|
var packageName = "@atlaskit/renderer";
|
|
48
|
-
var packageVersion = "108.11.
|
|
48
|
+
var packageVersion = "108.11.17";
|
|
49
49
|
export var Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
50
50
|
_inherits(Renderer, _PureComponent);
|
|
51
51
|
var _super = _createSuper(Renderer);
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import { PureComponent } from 'react';
|
|
4
3
|
import { jsx } from '@emotion/react';
|
|
5
4
|
import type { EventHandlers } from '@atlaskit/editor-common/ui';
|
|
6
|
-
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
7
|
-
import { MediaCardProps } from '../../../ui/MediaCard';
|
|
8
|
-
import { LinkDefinition, BorderMarkDefinition } from '@atlaskit/adf-schema';
|
|
5
|
+
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
6
|
+
import type { MediaCardProps } from '../../../ui/MediaCard';
|
|
7
|
+
import type { LinkDefinition, BorderMarkDefinition } from '@atlaskit/adf-schema';
|
|
9
8
|
import type { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
10
|
-
import { AnalyticsEventPayload } from '../../../analytics/events';
|
|
9
|
+
import type { AnalyticsEventPayload } from '../../../analytics/events';
|
|
11
10
|
export type MediaProps = MediaCardProps & {
|
|
12
11
|
providers?: ProviderFactory;
|
|
13
12
|
allowAltTextOnImages?: boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const linkStyle:
|
|
2
|
-
export declare const borderStyle: (
|
|
1
|
+
export declare const linkStyle: import("@emotion/react").SerializedStyles;
|
|
2
|
+
export declare const borderStyle: (color: string, width: number) => import("@emotion/react").SerializedStyles;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
2
|
import type { ADFEntity } from '@atlaskit/adf-utils/types';
|
|
3
|
-
import { CardAppearance, CardDimensions, CardOnClickCallback, NumericalCardDimensions } from '@atlaskit/media-card';
|
|
4
|
-
import { MediaClientConfig } from '@atlaskit/media-core';
|
|
5
|
-
import { ImageResizeMode, Identifier, FileState } from '@atlaskit/media-client';
|
|
6
|
-
import { MediaType } from '@atlaskit/adf-schema';
|
|
3
|
+
import type { CardAppearance, CardDimensions, CardOnClickCallback, NumericalCardDimensions } from '@atlaskit/media-card';
|
|
4
|
+
import type { MediaClientConfig } from '@atlaskit/media-core';
|
|
5
|
+
import type { ImageResizeMode, Identifier, FileState } from '@atlaskit/media-client';
|
|
6
|
+
import type { MediaType } from '@atlaskit/adf-schema';
|
|
7
7
|
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
8
8
|
import type { ImageStatus } from '@atlaskit/editor-common/utils';
|
|
9
|
-
import { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
10
|
-
import { RendererAppearance } from './Renderer/types';
|
|
11
|
-
import { RendererContext } from '../react/types';
|
|
12
|
-
import { MediaSSR } from '../types/mediaOptions';
|
|
9
|
+
import type { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
10
|
+
import type { RendererAppearance } from './Renderer/types';
|
|
11
|
+
import type { RendererContext } from '../react/types';
|
|
12
|
+
import type { MediaSSR } from '../types/mediaOptions';
|
|
13
13
|
export type MediaProvider = {
|
|
14
14
|
viewMediaClientConfig: MediaClientConfig;
|
|
15
15
|
};
|
|
@@ -40,7 +40,6 @@ export interface MediaCardProps {
|
|
|
40
40
|
featureFlags?: MediaFeatureFlags;
|
|
41
41
|
shouldEnableDownloadButton?: boolean;
|
|
42
42
|
ssr?: MediaSSR;
|
|
43
|
-
expandByPixel?: number;
|
|
44
43
|
}
|
|
45
44
|
export interface State {
|
|
46
45
|
mediaClientConfig?: MediaClientConfig;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import { PureComponent } from 'react';
|
|
4
3
|
import { jsx } from '@emotion/react';
|
|
5
4
|
import type { EventHandlers } from '@atlaskit/editor-common/ui';
|
|
6
|
-
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
7
|
-
import { MediaCardProps } from '../../../ui/MediaCard';
|
|
8
|
-
import { LinkDefinition, BorderMarkDefinition } from '@atlaskit/adf-schema';
|
|
5
|
+
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
6
|
+
import type { MediaCardProps } from '../../../ui/MediaCard';
|
|
7
|
+
import type { LinkDefinition, BorderMarkDefinition } from '@atlaskit/adf-schema';
|
|
9
8
|
import type { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
10
|
-
import { AnalyticsEventPayload } from '../../../analytics/events';
|
|
9
|
+
import type { AnalyticsEventPayload } from '../../../analytics/events';
|
|
11
10
|
export type MediaProps = MediaCardProps & {
|
|
12
11
|
providers?: ProviderFactory;
|
|
13
12
|
allowAltTextOnImages?: boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const linkStyle:
|
|
2
|
-
export declare const borderStyle: (
|
|
1
|
+
export declare const linkStyle: import("@emotion/react").SerializedStyles;
|
|
2
|
+
export declare const borderStyle: (color: string, width: number) => import("@emotion/react").SerializedStyles;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
2
|
import type { ADFEntity } from '@atlaskit/adf-utils/types';
|
|
3
|
-
import { CardAppearance, CardDimensions, CardOnClickCallback, NumericalCardDimensions } from '@atlaskit/media-card';
|
|
4
|
-
import { MediaClientConfig } from '@atlaskit/media-core';
|
|
5
|
-
import { ImageResizeMode, Identifier, FileState } from '@atlaskit/media-client';
|
|
6
|
-
import { MediaType } from '@atlaskit/adf-schema';
|
|
3
|
+
import type { CardAppearance, CardDimensions, CardOnClickCallback, NumericalCardDimensions } from '@atlaskit/media-card';
|
|
4
|
+
import type { MediaClientConfig } from '@atlaskit/media-core';
|
|
5
|
+
import type { ImageResizeMode, Identifier, FileState } from '@atlaskit/media-client';
|
|
6
|
+
import type { MediaType } from '@atlaskit/adf-schema';
|
|
7
7
|
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
8
8
|
import type { ImageStatus } from '@atlaskit/editor-common/utils';
|
|
9
|
-
import { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
10
|
-
import { RendererAppearance } from './Renderer/types';
|
|
11
|
-
import { RendererContext } from '../react/types';
|
|
12
|
-
import { MediaSSR } from '../types/mediaOptions';
|
|
9
|
+
import type { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
10
|
+
import type { RendererAppearance } from './Renderer/types';
|
|
11
|
+
import type { RendererContext } from '../react/types';
|
|
12
|
+
import type { MediaSSR } from '../types/mediaOptions';
|
|
13
13
|
export type MediaProvider = {
|
|
14
14
|
viewMediaClientConfig: MediaClientConfig;
|
|
15
15
|
};
|
|
@@ -40,7 +40,6 @@ export interface MediaCardProps {
|
|
|
40
40
|
featureFlags?: MediaFeatureFlags;
|
|
41
41
|
shouldEnableDownloadButton?: boolean;
|
|
42
42
|
ssr?: MediaSSR;
|
|
43
|
-
expandByPixel?: number;
|
|
44
43
|
}
|
|
45
44
|
export interface State {
|
|
46
45
|
mediaClientConfig?: MediaClientConfig;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "108.11.
|
|
3
|
+
"version": "108.11.17",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@atlaskit/analytics-next": "^9.1.0",
|
|
32
32
|
"@atlaskit/button": "^16.10.0",
|
|
33
33
|
"@atlaskit/code": "^14.6.0",
|
|
34
|
-
"@atlaskit/editor-common": "^
|
|
34
|
+
"@atlaskit/editor-common": "^75.0.0",
|
|
35
35
|
"@atlaskit/editor-json-transformer": "^8.10.0",
|
|
36
36
|
"@atlaskit/editor-palette": "1.5.1",
|
|
37
37
|
"@atlaskit/editor-prosemirror": "1.1.0",
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
"@atlaskit/emoji": "^67.5.0",
|
|
40
40
|
"@atlaskit/icon": "^21.12.0",
|
|
41
41
|
"@atlaskit/link-datasource": "^1.1.0",
|
|
42
|
-
"@atlaskit/media-card": "^
|
|
42
|
+
"@atlaskit/media-card": "^77.0.0",
|
|
43
43
|
"@atlaskit/media-client": "^24.0.0",
|
|
44
44
|
"@atlaskit/media-common": "^9.0.0",
|
|
45
45
|
"@atlaskit/media-filmstrip": "^47.0.0",
|
|
46
|
-
"@atlaskit/media-ui": "^
|
|
46
|
+
"@atlaskit/media-ui": "^25.0.0",
|
|
47
47
|
"@atlaskit/media-viewer": "^48.0.0",
|
|
48
48
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
49
49
|
"@atlaskit/smart-card": "^26.25.0",
|