@atlaskit/renderer 109.4.2 → 109.4.3
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/heading-anchor.js +2 -1
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/es2019/react/nodes/heading-anchor.js +3 -1
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/react/nodes/heading-anchor.js +3 -1
- 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 +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 109.4.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#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
|
|
8
|
+
|
|
3
9
|
## 109.4.2
|
|
4
10
|
|
|
5
11
|
### 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',
|
|
@@ -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.3";
|
|
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',
|
|
@@ -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.3";
|
|
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',
|
|
@@ -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.3";
|
|
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>;
|