@atlaskit/renderer 109.4.3 → 109.4.5

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/renderer
2
2
 
3
+ ## 109.4.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 109.4.4
10
+
11
+ ### Patch Changes
12
+
13
+ - [#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
14
+
3
15
  ## 109.4.3
4
16
 
5
17
  ### 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.3";
57
+ var packageVersion = "109.4.5";
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.3";
38
+ const packageVersion = "109.4.5";
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.3";
48
+ var packageVersion = "109.4.5";
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",
3
+ "version": "109.4.5",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -30,9 +30,9 @@
30
30
  "@atlaskit/analytics-listeners": "^8.9.0",
31
31
  "@atlaskit/analytics-namespaced-context": "^6.9.0",
32
32
  "@atlaskit/analytics-next": "^9.2.0",
33
- "@atlaskit/button": "^17.3.0",
33
+ "@atlaskit/button": "^17.4.0",
34
34
  "@atlaskit/code": "^15.1.0",
35
- "@atlaskit/editor-common": "^77.4.0",
35
+ "@atlaskit/editor-common": "^78.0.0",
36
36
  "@atlaskit/editor-json-transformer": "^8.10.0",
37
37
  "@atlaskit/editor-palette": "1.5.2",
38
38
  "@atlaskit/editor-prosemirror": "3.0.0",
@@ -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.9.0",
44
- "@atlaskit/media-client": "^26.1.0",
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.36.0",
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.1.2",
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.1.0",
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",