@atlaskit/renderer 109.4.3 → 109.4.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 +6 -0
- package/dist/cjs/react/nodes/mediaInline.js +1 -1
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/es2019/react/nodes/mediaInline.js +2 -2
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/react/nodes/mediaInline.js +2 -2
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 109.4.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#72231](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72231) [`edf38e369597`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/edf38e369597) - ED-21768 enable ssr for inline image
|
|
8
|
+
|
|
3
9
|
## 109.4.3
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -181,7 +181,7 @@ var MediaInline = function MediaInline(props) {
|
|
|
181
181
|
componentId: _analytics.ACTION_SUBJECT_ID.MEDIA_INLINE_IMAGE,
|
|
182
182
|
createAnalyticsEvent: createAnalyticsEvent
|
|
183
183
|
}, /*#__PURE__*/_react.default.createElement(_mediaInline.MediaInlineImageCard, {
|
|
184
|
-
mediaClient: mediaClient,
|
|
184
|
+
mediaClient: ssr !== null && ssr !== void 0 && ssr.config ? (0, _mediaClientReact.getMediaClient)(ssr.config) : mediaClient,
|
|
185
185
|
identifier: identifier,
|
|
186
186
|
alt: alt,
|
|
187
187
|
width: width,
|
|
@@ -54,7 +54,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
54
54
|
var NORMAL_SEVERITY_THRESHOLD = exports.NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
55
55
|
var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
56
56
|
var packageName = "@atlaskit/renderer";
|
|
57
|
-
var packageVersion = "109.4.
|
|
57
|
+
var packageVersion = "109.4.4";
|
|
58
58
|
var Renderer = exports.Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
59
59
|
(0, _inherits2.default)(Renderer, _PureComponent);
|
|
60
60
|
var _super = _createSuper(Renderer);
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import { MediaInlineImageCard } from '@atlaskit/editor-common/media-inline';
|
|
3
3
|
import { useProvider } from '@atlaskit/editor-common/provider-factory';
|
|
4
4
|
import { MediaInlineCard } from '@atlaskit/media-card';
|
|
5
|
-
import { MediaClientContext } from '@atlaskit/media-client-react';
|
|
5
|
+
import { MediaClientContext, getMediaClient } from '@atlaskit/media-client-react';
|
|
6
6
|
import { MediaInlineCardLoadingView } from '@atlaskit/media-ui';
|
|
7
7
|
import React, { useCallback, useEffect, useState, useContext } from 'react';
|
|
8
8
|
import { injectIntl } from 'react-intl-next';
|
|
@@ -146,7 +146,7 @@ const MediaInline = props => {
|
|
|
146
146
|
componentId: ACTION_SUBJECT_ID.MEDIA_INLINE_IMAGE,
|
|
147
147
|
createAnalyticsEvent: createAnalyticsEvent
|
|
148
148
|
}, /*#__PURE__*/React.createElement(MediaInlineImageCard, {
|
|
149
|
-
mediaClient: mediaClient,
|
|
149
|
+
mediaClient: ssr !== null && ssr !== void 0 && ssr.config ? getMediaClient(ssr.config) : mediaClient,
|
|
150
150
|
identifier: identifier,
|
|
151
151
|
alt: alt,
|
|
152
152
|
width: width,
|
|
@@ -35,7 +35,7 @@ import { EditorMediaClientProvider } from '../../react/utils/EditorMediaClientPr
|
|
|
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 = "109.4.
|
|
38
|
+
const packageVersion = "109.4.4";
|
|
39
39
|
export class Renderer extends PureComponent {
|
|
40
40
|
constructor(props) {
|
|
41
41
|
super(props);
|
|
@@ -8,7 +8,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
8
8
|
import { MediaInlineImageCard } from '@atlaskit/editor-common/media-inline';
|
|
9
9
|
import { useProvider } from '@atlaskit/editor-common/provider-factory';
|
|
10
10
|
import { MediaInlineCard } from '@atlaskit/media-card';
|
|
11
|
-
import { MediaClientContext } from '@atlaskit/media-client-react';
|
|
11
|
+
import { MediaClientContext, getMediaClient } from '@atlaskit/media-client-react';
|
|
12
12
|
import { MediaInlineCardLoadingView } from '@atlaskit/media-ui';
|
|
13
13
|
import React, { useCallback, useEffect, useState, useContext } from 'react';
|
|
14
14
|
import { injectIntl } from 'react-intl-next';
|
|
@@ -171,7 +171,7 @@ var MediaInline = function MediaInline(props) {
|
|
|
171
171
|
componentId: ACTION_SUBJECT_ID.MEDIA_INLINE_IMAGE,
|
|
172
172
|
createAnalyticsEvent: createAnalyticsEvent
|
|
173
173
|
}, /*#__PURE__*/React.createElement(MediaInlineImageCard, {
|
|
174
|
-
mediaClient: mediaClient,
|
|
174
|
+
mediaClient: ssr !== null && ssr !== void 0 && ssr.config ? getMediaClient(ssr.config) : mediaClient,
|
|
175
175
|
identifier: identifier,
|
|
176
176
|
alt: alt,
|
|
177
177
|
width: width,
|
|
@@ -45,7 +45,7 @@ import { EditorMediaClientProvider } from '../../react/utils/EditorMediaClientPr
|
|
|
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 = "109.4.
|
|
48
|
+
var packageVersion = "109.4.4";
|
|
49
49
|
export var Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
50
50
|
_inherits(Renderer, _PureComponent);
|
|
51
51
|
var _super = _createSuper(Renderer);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "109.4.
|
|
3
|
+
"version": "109.4.4",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"@atlaskit/emoji": "^67.6.0",
|
|
41
41
|
"@atlaskit/icon": "^22.0.0",
|
|
42
42
|
"@atlaskit/link-datasource": "^1.22.0",
|
|
43
|
-
"@atlaskit/media-card": "^77.
|
|
44
|
-
"@atlaskit/media-client": "^26.
|
|
43
|
+
"@atlaskit/media-card": "^77.10.0",
|
|
44
|
+
"@atlaskit/media-client": "^26.2.0",
|
|
45
45
|
"@atlaskit/media-client-react": "^2.0.0",
|
|
46
46
|
"@atlaskit/media-common": "^11.0.0",
|
|
47
47
|
"@atlaskit/media-filmstrip": "^47.0.0",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@atlaskit/status": "^1.4.0",
|
|
53
53
|
"@atlaskit/task-decision": "^17.9.0",
|
|
54
54
|
"@atlaskit/theme": "^12.6.0",
|
|
55
|
-
"@atlaskit/tokens": "^1.
|
|
55
|
+
"@atlaskit/tokens": "^1.37.0",
|
|
56
56
|
"@atlaskit/tooltip": "^18.1.0",
|
|
57
57
|
"@babel/runtime": "^7.0.0",
|
|
58
58
|
"@emotion/react": "^11.7.1",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"@atlaskit/link-provider": "^1.7.0",
|
|
67
|
-
"@atlaskit/media-core": "^34.
|
|
67
|
+
"@atlaskit/media-core": "^34.2.0",
|
|
68
68
|
"react": "^16.8.0",
|
|
69
69
|
"react-dom": "^16.8.0"
|
|
70
70
|
},
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"@atlaskit/css-reset": "^6.6.0",
|
|
76
76
|
"@atlaskit/link-provider": "^1.7.0",
|
|
77
77
|
"@atlaskit/link-test-helpers": "^6.2.0",
|
|
78
|
-
"@atlaskit/media-core": "^34.
|
|
78
|
+
"@atlaskit/media-core": "^34.2.0",
|
|
79
79
|
"@atlaskit/media-integration-test-helpers": "^3.0.0",
|
|
80
80
|
"@atlaskit/media-test-helpers": "^33.0.0",
|
|
81
81
|
"@atlaskit/mention": "^22.1.0",
|