@atlaskit/renderer 109.4.2 → 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 +12 -0
- package/dist/cjs/react/nodes/heading-anchor.js +2 -1
- package/dist/cjs/react/nodes/mediaInline.js +1 -1
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/es2019/react/nodes/heading-anchor.js +3 -1
- package/dist/es2019/react/nodes/mediaInline.js +2 -2
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/react/nodes/heading-anchor.js +3 -1
- package/dist/esm/react/nodes/mediaInline.js +2 -2
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/dist/types/react/nodes/heading-anchor.d.ts +1 -2
- package/dist/types-ts4.5/react/nodes/heading-anchor.d.ts +1 -2
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
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
|
+
|
|
9
|
+
## 109.4.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#72081](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72081) [`4487160917d2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4487160917d2) - [ux] ED-22052: adds button type attribute to non atlaskit button instances
|
|
14
|
+
|
|
3
15
|
## 109.4.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -102,7 +102,8 @@ var HeadingAnchor = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
102
102
|
css: copyAnchorButtonStyles,
|
|
103
103
|
onMouseLeave: _this.resetMessage,
|
|
104
104
|
onClick: _this.copyToClipboard,
|
|
105
|
-
"aria-label": _this.state.tooltipMessage
|
|
105
|
+
"aria-label": _this.state.tooltipMessage,
|
|
106
|
+
type: "button"
|
|
106
107
|
}, (0, _react2.jsx)(_link.default, {
|
|
107
108
|
label: _this.getCopyAriaLabel(),
|
|
108
109
|
size: _this.props.level > 3 ? 'small' : 'medium',
|
|
@@ -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);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
/** @jsx jsx */
|
|
4
|
+
|
|
4
5
|
import React from 'react';
|
|
5
6
|
import { css, jsx } from '@emotion/react';
|
|
6
7
|
import { N200, N500, B400 } from '@atlaskit/theme/colors';
|
|
@@ -69,7 +70,8 @@ class HeadingAnchor extends React.PureComponent {
|
|
|
69
70
|
css: copyAnchorButtonStyles,
|
|
70
71
|
onMouseLeave: this.resetMessage,
|
|
71
72
|
onClick: this.copyToClipboard,
|
|
72
|
-
"aria-label": this.state.tooltipMessage
|
|
73
|
+
"aria-label": this.state.tooltipMessage,
|
|
74
|
+
type: "button"
|
|
73
75
|
}, jsx(LinkIcon, {
|
|
74
76
|
label: this.getCopyAriaLabel(),
|
|
75
77
|
size: this.props.level > 3 ? 'small' : 'medium',
|
|
@@ -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);
|
|
@@ -15,6 +15,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
15
15
|
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); }; }
|
|
16
16
|
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; } }
|
|
17
17
|
/** @jsx jsx */
|
|
18
|
+
|
|
18
19
|
import React from 'react';
|
|
19
20
|
import { css, jsx } from '@emotion/react';
|
|
20
21
|
import { N200, N500, B400 } from '@atlaskit/theme/colors';
|
|
@@ -95,7 +96,8 @@ var HeadingAnchor = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
95
96
|
css: copyAnchorButtonStyles,
|
|
96
97
|
onMouseLeave: _this.resetMessage,
|
|
97
98
|
onClick: _this.copyToClipboard,
|
|
98
|
-
"aria-label": _this.state.tooltipMessage
|
|
99
|
+
"aria-label": _this.state.tooltipMessage,
|
|
100
|
+
type: "button"
|
|
99
101
|
}, jsx(LinkIcon, {
|
|
100
102
|
label: _this.getCopyAriaLabel(),
|
|
101
103
|
size: _this.props.level > 3 ? 'small' : 'medium',
|
|
@@ -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);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
1
|
import React from 'react';
|
|
3
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
2
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
4
3
|
export declare const HeadingAnchorWrapperClassName = "heading-anchor-wrapper";
|
|
5
4
|
type Props = {
|
|
6
5
|
onCopyText: () => Promise<void>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
1
|
import React from 'react';
|
|
3
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
2
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
4
3
|
export declare const HeadingAnchorWrapperClassName = "heading-anchor-wrapper";
|
|
5
4
|
type Props = {
|
|
6
5
|
onCopyText: () => Promise<void>;
|
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",
|