@atlaskit/renderer 150.0.2 → 150.0.4
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 +14 -0
- package/dist/cjs/ui/MediaCard.js +42 -53
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/es2019/ui/MediaCard.js +2 -13
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/ui/MediaCard.js +42 -53
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/dist/types/ui/MediaCard.d.ts +0 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 150.0.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`6df50c65425ef`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6df50c65425ef) -
|
|
8
|
+
Clean up experiment `platform_editor_media_error_analytics`
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 150.0.3
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 150.0.2
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/cjs/ui/MediaCard.js
CHANGED
|
@@ -27,7 +27,6 @@ var _cardLoading = require("@atlaskit/media-card/cardLoading");
|
|
|
27
27
|
var _cardSync = _interopRequireDefault(require("@atlaskit/media-card/cardSync"));
|
|
28
28
|
var _mediaClientProvider = require("@atlaskit/media-client-react/media-client-provider");
|
|
29
29
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
30
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
31
30
|
var _analyticsContext = _interopRequireDefault(require("../analytics/analyticsContext"));
|
|
32
31
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t4 in e) "default" !== _t4 && {}.hasOwnProperty.call(e, _t4) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t4)) && (i.get || i.set) ? o(f, _t4, i) : f[_t4] = e[_t4]); return f; })(e, t); }
|
|
33
32
|
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; }
|
|
@@ -166,16 +165,6 @@ var MediaCardView = exports.MediaCardView = /*#__PURE__*/function (_Component) {
|
|
|
166
165
|
} : {})
|
|
167
166
|
});
|
|
168
167
|
});
|
|
169
|
-
(0, _defineProperty2.default)(_this, "onConsumerError", function (reason) {
|
|
170
|
-
var _this$props$onError2, _this$props5;
|
|
171
|
-
(_this$props$onError2 = (_this$props5 = _this.props).onError) === null || _this$props$onError2 === void 0 || _this$props$onError2.call(_this$props5, reason);
|
|
172
|
-
});
|
|
173
|
-
(0, _defineProperty2.default)(_this, "getMediaErrorHandler", function () {
|
|
174
|
-
if ((0, _expValEquals.expValEquals)('platform_editor_media_error_analytics', 'isEnabled', true)) {
|
|
175
|
-
return _this.onError;
|
|
176
|
-
}
|
|
177
|
-
return _this.props.onError ? _this.onConsumerError : undefined;
|
|
178
|
-
});
|
|
179
168
|
(0, _defineProperty2.default)(_this, "renderLoadingCard", function () {
|
|
180
169
|
var cardDimensions = _this.props.cardDimensions;
|
|
181
170
|
return /*#__PURE__*/_react.default.createElement(_cardLoading.CardLoading, {
|
|
@@ -209,11 +198,11 @@ var MediaCardView = exports.MediaCardView = /*#__PURE__*/function (_Component) {
|
|
|
209
198
|
key: "componentDidMount",
|
|
210
199
|
value: function () {
|
|
211
200
|
var _componentDidMount = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
|
212
|
-
var _this$
|
|
201
|
+
var _this$props5, rendererContext, contextIdentifierProvider, id, url, collectionName, nodeIsInCache, docIdentifiers, _t2, _t3;
|
|
213
202
|
return _regenerator.default.wrap(function (_context2) {
|
|
214
203
|
while (1) switch (_context2.prev = _context2.next) {
|
|
215
204
|
case 0:
|
|
216
|
-
_this$
|
|
205
|
+
_this$props5 = this.props, rendererContext = _this$props5.rendererContext, contextIdentifierProvider = _this$props5.contextIdentifierProvider, id = _this$props5.id, url = _this$props5.url, collectionName = _this$props5.collection;
|
|
217
206
|
if (!contextIdentifierProvider) {
|
|
218
207
|
_context2.next = 2;
|
|
219
208
|
break;
|
|
@@ -270,9 +259,9 @@ var MediaCardView = exports.MediaCardView = /*#__PURE__*/function (_Component) {
|
|
|
270
259
|
}, {
|
|
271
260
|
key: "componentWillUnmount",
|
|
272
261
|
value: function componentWillUnmount() {
|
|
273
|
-
var _this$
|
|
274
|
-
id = _this$
|
|
275
|
-
dataURI = _this$
|
|
262
|
+
var _this$props6 = this.props,
|
|
263
|
+
id = _this$props6.id,
|
|
264
|
+
dataURI = _this$props6.url;
|
|
276
265
|
if (id) {
|
|
277
266
|
mediaIdentifierMap.delete(id);
|
|
278
267
|
} else if (dataURI) {
|
|
@@ -282,20 +271,20 @@ var MediaCardView = exports.MediaCardView = /*#__PURE__*/function (_Component) {
|
|
|
282
271
|
}, {
|
|
283
272
|
key: "renderExternal",
|
|
284
273
|
value: function renderExternal(shouldOpenMediaViewer) {
|
|
285
|
-
var _this$
|
|
286
|
-
cardDimensions = _this$
|
|
287
|
-
resizeMode = _this$
|
|
288
|
-
appearance = _this$
|
|
289
|
-
url = _this$
|
|
290
|
-
imageStatus = _this$
|
|
291
|
-
disableOverlay = _this$
|
|
292
|
-
alt = _this$
|
|
293
|
-
featureFlags = _this$
|
|
294
|
-
ssr = _this$
|
|
295
|
-
mediaClient = _this$
|
|
296
|
-
dataAttributes = _this$
|
|
297
|
-
enableSyncMediaCard = _this$
|
|
298
|
-
localId = _this$
|
|
274
|
+
var _this$props7 = this.props,
|
|
275
|
+
cardDimensions = _this$props7.cardDimensions,
|
|
276
|
+
resizeMode = _this$props7.resizeMode,
|
|
277
|
+
appearance = _this$props7.appearance,
|
|
278
|
+
url = _this$props7.url,
|
|
279
|
+
imageStatus = _this$props7.imageStatus,
|
|
280
|
+
disableOverlay = _this$props7.disableOverlay,
|
|
281
|
+
alt = _this$props7.alt,
|
|
282
|
+
featureFlags = _this$props7.featureFlags,
|
|
283
|
+
ssr = _this$props7.ssr,
|
|
284
|
+
mediaClient = _this$props7.mediaClient,
|
|
285
|
+
dataAttributes = _this$props7.dataAttributes,
|
|
286
|
+
enableSyncMediaCard = _this$props7.enableSyncMediaCard,
|
|
287
|
+
localId = _this$props7.localId;
|
|
299
288
|
if (imageStatus === 'loading' || !url) {
|
|
300
289
|
return this.renderLoadingCard();
|
|
301
290
|
}
|
|
@@ -333,7 +322,7 @@ var MediaCardView = exports.MediaCardView = /*#__PURE__*/function (_Component) {
|
|
|
333
322
|
featureFlags: featureFlags,
|
|
334
323
|
ssr: ssr === null || ssr === void 0 ? void 0 : ssr.mode,
|
|
335
324
|
shouldHideTooltip: false,
|
|
336
|
-
onError: this.
|
|
325
|
+
onError: this.onError,
|
|
337
326
|
onPreviewRender: this.props.onPreviewRender
|
|
338
327
|
}))
|
|
339
328
|
);
|
|
@@ -345,27 +334,27 @@ var MediaCardView = exports.MediaCardView = /*#__PURE__*/function (_Component) {
|
|
|
345
334
|
var _this$state = this.state,
|
|
346
335
|
contextIdentifierProvider = _this$state.contextIdentifierProvider,
|
|
347
336
|
fileState = _this$state.fileState;
|
|
348
|
-
var _this$
|
|
349
|
-
id = _this$
|
|
350
|
-
alt = _this$
|
|
351
|
-
type = _this$
|
|
352
|
-
collection = _this$
|
|
353
|
-
occurrenceKey = _this$
|
|
354
|
-
cardDimensions = _this$
|
|
355
|
-
resizeMode = _this$
|
|
356
|
-
disableOverlay = _this$
|
|
357
|
-
useInlinePlayer = _this$
|
|
358
|
-
originalDimensions = _this$
|
|
359
|
-
forceOpenMediaViewer = _this$
|
|
360
|
-
featureFlags = _this$
|
|
361
|
-
shouldEnableDownloadButton = _this$
|
|
362
|
-
ssr = _this$
|
|
363
|
-
mediaClient = _this$
|
|
364
|
-
dataAttributes = _this$
|
|
365
|
-
enableSyncMediaCard = _this$
|
|
366
|
-
localId = _this$
|
|
367
|
-
mediaViewerExtensions = _this$
|
|
368
|
-
fallbackMediaNameFetcher = _this$
|
|
337
|
+
var _this$props8 = this.props,
|
|
338
|
+
id = _this$props8.id,
|
|
339
|
+
alt = _this$props8.alt,
|
|
340
|
+
type = _this$props8.type,
|
|
341
|
+
collection = _this$props8.collection,
|
|
342
|
+
occurrenceKey = _this$props8.occurrenceKey,
|
|
343
|
+
cardDimensions = _this$props8.cardDimensions,
|
|
344
|
+
resizeMode = _this$props8.resizeMode,
|
|
345
|
+
disableOverlay = _this$props8.disableOverlay,
|
|
346
|
+
useInlinePlayer = _this$props8.useInlinePlayer,
|
|
347
|
+
originalDimensions = _this$props8.originalDimensions,
|
|
348
|
+
forceOpenMediaViewer = _this$props8.shouldOpenMediaViewer,
|
|
349
|
+
featureFlags = _this$props8.featureFlags,
|
|
350
|
+
shouldEnableDownloadButton = _this$props8.shouldEnableDownloadButton,
|
|
351
|
+
ssr = _this$props8.ssr,
|
|
352
|
+
mediaClient = _this$props8.mediaClient,
|
|
353
|
+
dataAttributes = _this$props8.dataAttributes,
|
|
354
|
+
enableSyncMediaCard = _this$props8.enableSyncMediaCard,
|
|
355
|
+
localId = _this$props8.localId,
|
|
356
|
+
mediaViewerExtensions = _this$props8.mediaViewerExtensions,
|
|
357
|
+
fallbackMediaNameFetcher = _this$props8.fallbackMediaNameFetcher;
|
|
369
358
|
var isMobile = false;
|
|
370
359
|
var shouldPlayInline = useInlinePlayer !== undefined ? useInlinePlayer : true;
|
|
371
360
|
var isInlinePlayer = isMobile ? false : shouldPlayInline;
|
|
@@ -434,7 +423,7 @@ var MediaCardView = exports.MediaCardView = /*#__PURE__*/function (_Component) {
|
|
|
434
423
|
shouldHideTooltip: isMobile,
|
|
435
424
|
mediaViewerExtensions: mediaViewerExtensions,
|
|
436
425
|
fallbackMediaNameFetcher: fallbackMediaNameFetcher,
|
|
437
|
-
onError: this.
|
|
426
|
+
onError: this.onError,
|
|
438
427
|
onPreviewRender: this.props.onPreviewRender
|
|
439
428
|
}));
|
|
440
429
|
}
|
|
@@ -79,7 +79,7 @@ var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
79
79
|
var TABLE_INFO_TIMEOUT = 10000;
|
|
80
80
|
var RENDER_EVENT_SAMPLE_RATE = 0.1;
|
|
81
81
|
var packageName = "@atlaskit/renderer";
|
|
82
|
-
var packageVersion = "150.0.
|
|
82
|
+
var packageVersion = "150.0.3";
|
|
83
83
|
var setAsQueryContainerStyles = (0, _react2.css)({
|
|
84
84
|
containerName: 'ak-renderer-wrapper',
|
|
85
85
|
containerType: 'inline-size'
|
|
@@ -10,7 +10,6 @@ import { CardLoading } from '@atlaskit/media-card/cardLoading';
|
|
|
10
10
|
import CardSync from '@atlaskit/media-card/cardSync';
|
|
11
11
|
import { MediaClientContext } from '@atlaskit/media-client-react/media-client-provider';
|
|
12
12
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
13
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
14
13
|
import AnalyticsContext from '../analytics/analyticsContext';
|
|
15
14
|
export const mediaIdentifierMap = new Map();
|
|
16
15
|
export const getListOfIdentifiersFromDoc = doc => {
|
|
@@ -109,16 +108,6 @@ export class MediaCardView extends Component {
|
|
|
109
108
|
}
|
|
110
109
|
});
|
|
111
110
|
});
|
|
112
|
-
_defineProperty(this, "onConsumerError", reason => {
|
|
113
|
-
var _this$props$onError2, _this$props3;
|
|
114
|
-
(_this$props$onError2 = (_this$props3 = this.props).onError) === null || _this$props$onError2 === void 0 ? void 0 : _this$props$onError2.call(_this$props3, reason);
|
|
115
|
-
});
|
|
116
|
-
_defineProperty(this, "getMediaErrorHandler", () => {
|
|
117
|
-
if (expValEquals('platform_editor_media_error_analytics', 'isEnabled', true)) {
|
|
118
|
-
return this.onError;
|
|
119
|
-
}
|
|
120
|
-
return this.props.onError ? this.onConsumerError : undefined;
|
|
121
|
-
});
|
|
122
111
|
_defineProperty(this, "renderLoadingCard", () => {
|
|
123
112
|
const {
|
|
124
113
|
cardDimensions
|
|
@@ -258,7 +247,7 @@ export class MediaCardView extends Component {
|
|
|
258
247
|
featureFlags: featureFlags,
|
|
259
248
|
ssr: ssr === null || ssr === void 0 ? void 0 : ssr.mode,
|
|
260
249
|
shouldHideTooltip: false,
|
|
261
|
-
onError: this.
|
|
250
|
+
onError: this.onError,
|
|
262
251
|
onPreviewRender: this.props.onPreviewRender
|
|
263
252
|
}))
|
|
264
253
|
);
|
|
@@ -357,7 +346,7 @@ export class MediaCardView extends Component {
|
|
|
357
346
|
shouldHideTooltip: isMobile,
|
|
358
347
|
mediaViewerExtensions: mediaViewerExtensions,
|
|
359
348
|
fallbackMediaNameFetcher: fallbackMediaNameFetcher,
|
|
360
|
-
onError: this.
|
|
349
|
+
onError: this.onError,
|
|
361
350
|
onPreviewRender: this.props.onPreviewRender
|
|
362
351
|
}));
|
|
363
352
|
}
|
|
@@ -64,7 +64,7 @@ export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
64
64
|
const TABLE_INFO_TIMEOUT = 10000;
|
|
65
65
|
const RENDER_EVENT_SAMPLE_RATE = 0.1;
|
|
66
66
|
const packageName = "@atlaskit/renderer";
|
|
67
|
-
const packageVersion = "150.0.
|
|
67
|
+
const packageVersion = "150.0.3";
|
|
68
68
|
const setAsQueryContainerStyles = css({
|
|
69
69
|
containerName: 'ak-renderer-wrapper',
|
|
70
70
|
containerType: 'inline-size'
|
package/dist/esm/ui/MediaCard.js
CHANGED
|
@@ -23,7 +23,6 @@ import { CardLoading } from '@atlaskit/media-card/cardLoading';
|
|
|
23
23
|
import CardSync from '@atlaskit/media-card/cardSync';
|
|
24
24
|
import { MediaClientContext } from '@atlaskit/media-client-react/media-client-provider';
|
|
25
25
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
26
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
27
26
|
import AnalyticsContext from '../analytics/analyticsContext';
|
|
28
27
|
export var mediaIdentifierMap = new Map();
|
|
29
28
|
export var getListOfIdentifiersFromDoc = function getListOfIdentifiersFromDoc(doc) {
|
|
@@ -157,16 +156,6 @@ export var MediaCardView = /*#__PURE__*/function (_Component) {
|
|
|
157
156
|
} : {})
|
|
158
157
|
});
|
|
159
158
|
});
|
|
160
|
-
_defineProperty(_this, "onConsumerError", function (reason) {
|
|
161
|
-
var _this$props$onError2, _this$props5;
|
|
162
|
-
(_this$props$onError2 = (_this$props5 = _this.props).onError) === null || _this$props$onError2 === void 0 || _this$props$onError2.call(_this$props5, reason);
|
|
163
|
-
});
|
|
164
|
-
_defineProperty(_this, "getMediaErrorHandler", function () {
|
|
165
|
-
if (expValEquals('platform_editor_media_error_analytics', 'isEnabled', true)) {
|
|
166
|
-
return _this.onError;
|
|
167
|
-
}
|
|
168
|
-
return _this.props.onError ? _this.onConsumerError : undefined;
|
|
169
|
-
});
|
|
170
159
|
_defineProperty(_this, "renderLoadingCard", function () {
|
|
171
160
|
var cardDimensions = _this.props.cardDimensions;
|
|
172
161
|
return /*#__PURE__*/React.createElement(CardLoading, {
|
|
@@ -200,11 +189,11 @@ export var MediaCardView = /*#__PURE__*/function (_Component) {
|
|
|
200
189
|
key: "componentDidMount",
|
|
201
190
|
value: function () {
|
|
202
191
|
var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
203
|
-
var _this$
|
|
192
|
+
var _this$props5, rendererContext, contextIdentifierProvider, id, url, collectionName, nodeIsInCache, docIdentifiers, _t2, _t3;
|
|
204
193
|
return _regeneratorRuntime.wrap(function (_context2) {
|
|
205
194
|
while (1) switch (_context2.prev = _context2.next) {
|
|
206
195
|
case 0:
|
|
207
|
-
_this$
|
|
196
|
+
_this$props5 = this.props, rendererContext = _this$props5.rendererContext, contextIdentifierProvider = _this$props5.contextIdentifierProvider, id = _this$props5.id, url = _this$props5.url, collectionName = _this$props5.collection;
|
|
208
197
|
if (!contextIdentifierProvider) {
|
|
209
198
|
_context2.next = 2;
|
|
210
199
|
break;
|
|
@@ -261,9 +250,9 @@ export var MediaCardView = /*#__PURE__*/function (_Component) {
|
|
|
261
250
|
}, {
|
|
262
251
|
key: "componentWillUnmount",
|
|
263
252
|
value: function componentWillUnmount() {
|
|
264
|
-
var _this$
|
|
265
|
-
id = _this$
|
|
266
|
-
dataURI = _this$
|
|
253
|
+
var _this$props6 = this.props,
|
|
254
|
+
id = _this$props6.id,
|
|
255
|
+
dataURI = _this$props6.url;
|
|
267
256
|
if (id) {
|
|
268
257
|
mediaIdentifierMap.delete(id);
|
|
269
258
|
} else if (dataURI) {
|
|
@@ -273,20 +262,20 @@ export var MediaCardView = /*#__PURE__*/function (_Component) {
|
|
|
273
262
|
}, {
|
|
274
263
|
key: "renderExternal",
|
|
275
264
|
value: function renderExternal(shouldOpenMediaViewer) {
|
|
276
|
-
var _this$
|
|
277
|
-
cardDimensions = _this$
|
|
278
|
-
resizeMode = _this$
|
|
279
|
-
appearance = _this$
|
|
280
|
-
url = _this$
|
|
281
|
-
imageStatus = _this$
|
|
282
|
-
disableOverlay = _this$
|
|
283
|
-
alt = _this$
|
|
284
|
-
featureFlags = _this$
|
|
285
|
-
ssr = _this$
|
|
286
|
-
mediaClient = _this$
|
|
287
|
-
dataAttributes = _this$
|
|
288
|
-
enableSyncMediaCard = _this$
|
|
289
|
-
localId = _this$
|
|
265
|
+
var _this$props7 = this.props,
|
|
266
|
+
cardDimensions = _this$props7.cardDimensions,
|
|
267
|
+
resizeMode = _this$props7.resizeMode,
|
|
268
|
+
appearance = _this$props7.appearance,
|
|
269
|
+
url = _this$props7.url,
|
|
270
|
+
imageStatus = _this$props7.imageStatus,
|
|
271
|
+
disableOverlay = _this$props7.disableOverlay,
|
|
272
|
+
alt = _this$props7.alt,
|
|
273
|
+
featureFlags = _this$props7.featureFlags,
|
|
274
|
+
ssr = _this$props7.ssr,
|
|
275
|
+
mediaClient = _this$props7.mediaClient,
|
|
276
|
+
dataAttributes = _this$props7.dataAttributes,
|
|
277
|
+
enableSyncMediaCard = _this$props7.enableSyncMediaCard,
|
|
278
|
+
localId = _this$props7.localId;
|
|
290
279
|
if (imageStatus === 'loading' || !url) {
|
|
291
280
|
return this.renderLoadingCard();
|
|
292
281
|
}
|
|
@@ -324,7 +313,7 @@ export var MediaCardView = /*#__PURE__*/function (_Component) {
|
|
|
324
313
|
featureFlags: featureFlags,
|
|
325
314
|
ssr: ssr === null || ssr === void 0 ? void 0 : ssr.mode,
|
|
326
315
|
shouldHideTooltip: false,
|
|
327
|
-
onError: this.
|
|
316
|
+
onError: this.onError,
|
|
328
317
|
onPreviewRender: this.props.onPreviewRender
|
|
329
318
|
}))
|
|
330
319
|
);
|
|
@@ -336,27 +325,27 @@ export var MediaCardView = /*#__PURE__*/function (_Component) {
|
|
|
336
325
|
var _this$state = this.state,
|
|
337
326
|
contextIdentifierProvider = _this$state.contextIdentifierProvider,
|
|
338
327
|
fileState = _this$state.fileState;
|
|
339
|
-
var _this$
|
|
340
|
-
id = _this$
|
|
341
|
-
alt = _this$
|
|
342
|
-
type = _this$
|
|
343
|
-
collection = _this$
|
|
344
|
-
occurrenceKey = _this$
|
|
345
|
-
cardDimensions = _this$
|
|
346
|
-
resizeMode = _this$
|
|
347
|
-
disableOverlay = _this$
|
|
348
|
-
useInlinePlayer = _this$
|
|
349
|
-
originalDimensions = _this$
|
|
350
|
-
forceOpenMediaViewer = _this$
|
|
351
|
-
featureFlags = _this$
|
|
352
|
-
shouldEnableDownloadButton = _this$
|
|
353
|
-
ssr = _this$
|
|
354
|
-
mediaClient = _this$
|
|
355
|
-
dataAttributes = _this$
|
|
356
|
-
enableSyncMediaCard = _this$
|
|
357
|
-
localId = _this$
|
|
358
|
-
mediaViewerExtensions = _this$
|
|
359
|
-
fallbackMediaNameFetcher = _this$
|
|
328
|
+
var _this$props8 = this.props,
|
|
329
|
+
id = _this$props8.id,
|
|
330
|
+
alt = _this$props8.alt,
|
|
331
|
+
type = _this$props8.type,
|
|
332
|
+
collection = _this$props8.collection,
|
|
333
|
+
occurrenceKey = _this$props8.occurrenceKey,
|
|
334
|
+
cardDimensions = _this$props8.cardDimensions,
|
|
335
|
+
resizeMode = _this$props8.resizeMode,
|
|
336
|
+
disableOverlay = _this$props8.disableOverlay,
|
|
337
|
+
useInlinePlayer = _this$props8.useInlinePlayer,
|
|
338
|
+
originalDimensions = _this$props8.originalDimensions,
|
|
339
|
+
forceOpenMediaViewer = _this$props8.shouldOpenMediaViewer,
|
|
340
|
+
featureFlags = _this$props8.featureFlags,
|
|
341
|
+
shouldEnableDownloadButton = _this$props8.shouldEnableDownloadButton,
|
|
342
|
+
ssr = _this$props8.ssr,
|
|
343
|
+
mediaClient = _this$props8.mediaClient,
|
|
344
|
+
dataAttributes = _this$props8.dataAttributes,
|
|
345
|
+
enableSyncMediaCard = _this$props8.enableSyncMediaCard,
|
|
346
|
+
localId = _this$props8.localId,
|
|
347
|
+
mediaViewerExtensions = _this$props8.mediaViewerExtensions,
|
|
348
|
+
fallbackMediaNameFetcher = _this$props8.fallbackMediaNameFetcher;
|
|
360
349
|
var isMobile = false;
|
|
361
350
|
var shouldPlayInline = useInlinePlayer !== undefined ? useInlinePlayer : true;
|
|
362
351
|
var isInlinePlayer = isMobile ? false : shouldPlayInline;
|
|
@@ -425,7 +414,7 @@ export var MediaCardView = /*#__PURE__*/function (_Component) {
|
|
|
425
414
|
shouldHideTooltip: isMobile,
|
|
426
415
|
mediaViewerExtensions: mediaViewerExtensions,
|
|
427
416
|
fallbackMediaNameFetcher: fallbackMediaNameFetcher,
|
|
428
|
-
onError: this.
|
|
417
|
+
onError: this.onError,
|
|
429
418
|
onPreviewRender: this.props.onPreviewRender
|
|
430
419
|
}));
|
|
431
420
|
}
|
|
@@ -69,7 +69,7 @@ export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
69
69
|
var TABLE_INFO_TIMEOUT = 10000;
|
|
70
70
|
var RENDER_EVENT_SAMPLE_RATE = 0.1;
|
|
71
71
|
var packageName = "@atlaskit/renderer";
|
|
72
|
-
var packageVersion = "150.0.
|
|
72
|
+
var packageVersion = "150.0.3";
|
|
73
73
|
var setAsQueryContainerStyles = css({
|
|
74
74
|
containerName: 'ak-renderer-wrapper',
|
|
75
75
|
containerType: 'inline-size'
|
|
@@ -83,8 +83,6 @@ export declare class MediaCardView extends Component<MediaCardProps & {
|
|
|
83
83
|
componentWillUnmount(): void;
|
|
84
84
|
saveFileState: (id: string) => Promise<void>;
|
|
85
85
|
private onError;
|
|
86
|
-
private onConsumerError;
|
|
87
|
-
private getMediaErrorHandler;
|
|
88
86
|
private renderLoadingCard;
|
|
89
87
|
private renderExternal;
|
|
90
88
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "150.0.
|
|
3
|
+
"version": "150.0.4",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"@atlaskit/status": "^5.13.0",
|
|
74
74
|
"@atlaskit/task-decision": "^21.12.0",
|
|
75
75
|
"@atlaskit/theme": "^28.2.0",
|
|
76
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
76
|
+
"@atlaskit/tmp-editor-statsig": "^238.0.0",
|
|
77
77
|
"@atlaskit/tokens": "^20.5.0",
|
|
78
78
|
"@atlaskit/tooltip": "^24.4.0",
|
|
79
79
|
"@atlaskit/visually-hidden": "^4.4.0",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"uuid": "^11.1.1"
|
|
89
89
|
},
|
|
90
90
|
"peerDependencies": {
|
|
91
|
-
"@atlaskit/editor-common": "^131.
|
|
91
|
+
"@atlaskit/editor-common": "^131.1.0",
|
|
92
92
|
"@atlaskit/link-provider": "^6.0.0",
|
|
93
93
|
"@atlaskit/media-core": "^39.0.0",
|
|
94
94
|
"react": "^18.2.0 || ^19.2.0",
|