@atlaskit/renderer 133.17.0 → 133.17.1
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 +8 -0
- package/dist/cjs/react/nodes/heading.compiled.css +3 -1
- package/dist/cjs/react/nodes/heading.js +7 -9
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/es2019/react/nodes/heading.compiled.css +3 -1
- package/dist/es2019/react/nodes/heading.js +4 -7
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/react/nodes/heading.compiled.css +3 -1
- package/dist/esm/react/nodes/heading.js +7 -9
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/package.json +1 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 133.17.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`dbd6aad00148d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/dbd6aad00148d) -
|
|
8
|
+
Animate collapsible heading toggle icons
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 133.17.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
._l8kuuqm3 svg{transition:var(--_1vzp3at)}._12hn14w8 svg{transform:rotate(90deg)}
|
|
1
2
|
._152tidpf{inset-block-start:0}
|
|
2
3
|
._1e02idpf{inset-inline-start:0}
|
|
3
4
|
._1e0c1ule{display:block}
|
|
@@ -9,4 +10,5 @@
|
|
|
9
10
|
._lcxvglyw{pointer-events:none}
|
|
10
11
|
._tzy4idpf{opacity:0}
|
|
11
12
|
@media (hover:none){._tza3kb7n{opacity:1}._12yg1wug{pointer-events:auto}}
|
|
12
|
-
@media (pointer:coarse){._xrqrkb7n{opacity:1}._l4c51wug{pointer-events:auto}}
|
|
13
|
+
@media (pointer:coarse){._xrqrkb7n{opacity:1}._l4c51wug{pointer-events:auto}}
|
|
14
|
+
@media (prefers-reduced-motion:reduce){._wxvuglyw svg{transition:none}}
|
|
@@ -13,7 +13,7 @@ var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
|
13
13
|
var _react = _interopRequireDefault(require("react"));
|
|
14
14
|
var _reactIntl = require("react-intl");
|
|
15
15
|
var _new = require("@atlaskit/button/new");
|
|
16
|
-
var
|
|
16
|
+
var _constants = require("@atlaskit/editor-shared-styles/constants");
|
|
17
17
|
var _chevronRight = _interopRequireDefault(require("@atlaskit/icon/core/chevron-right"));
|
|
18
18
|
var _interactionMetrics = require("@atlaskit/react-ufo/interaction-metrics");
|
|
19
19
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
@@ -44,13 +44,8 @@ function hasRightAlignmentMark(marks) {
|
|
|
44
44
|
var wrapperStyles = null;
|
|
45
45
|
var collapsibleHeadingWrapperStyles = null;
|
|
46
46
|
var collapsibleHeadingButtonStyles = null;
|
|
47
|
+
var collapsibleHeadingButtonExpandedStyles = null;
|
|
47
48
|
var collapsibleHeadingButtonHiddenStyles = null;
|
|
48
|
-
var ChevronDownSmallIcon = function ChevronDownSmallIcon() {
|
|
49
|
-
return /*#__PURE__*/_react.default.createElement(_chevronDown.default, {
|
|
50
|
-
label: "",
|
|
51
|
-
size: "small"
|
|
52
|
-
});
|
|
53
|
-
};
|
|
54
49
|
var ChevronRightSmallIcon = function ChevronRightSmallIcon() {
|
|
55
50
|
return /*#__PURE__*/_react.default.createElement(_chevronRight.default, {
|
|
56
51
|
label: "",
|
|
@@ -120,11 +115,14 @@ function CollapsibleHeadingButton(_ref3) {
|
|
|
120
115
|
return setIsFocused(true);
|
|
121
116
|
}, []);
|
|
122
117
|
return /*#__PURE__*/_react.default.createElement("span", {
|
|
123
|
-
className: (0, _runtime.ax)(["_kqswstnw _152tidpf _1e02idpf _1pbykb7n", !isVisible && "_tzy4idpf _lcxvglyw _tza3kb7n _12yg1wug _xrqrkb7n _l4c51wug"])
|
|
118
|
+
className: (0, _runtime.ax)(["_kqswstnw _152tidpf _1e02idpf _1pbykb7n _l8kuuqm3 _wxvuglyw", !isCollapsed && "_12hn14w8", !isVisible && "_tzy4idpf _lcxvglyw _tza3kb7n _12yg1wug _xrqrkb7n _l4c51wug"]),
|
|
119
|
+
style: {
|
|
120
|
+
"--_1vzp3at": (0, _runtime.ix)("transform 0.2s ".concat(_constants.akEditorSwoopCubicBezier))
|
|
121
|
+
}
|
|
124
122
|
}, /*#__PURE__*/_react.default.createElement(_new.IconButton, {
|
|
125
123
|
appearance: "subtle",
|
|
126
124
|
spacing: "compact",
|
|
127
|
-
icon:
|
|
125
|
+
icon: ChevronRightSmallIcon,
|
|
128
126
|
label: intl.formatMessage(isCollapsed ? _messages.collapsibleHeadingMessages.expandSection : _messages.collapsibleHeadingMessages.collapseSection),
|
|
129
127
|
"aria-expanded": !isCollapsed,
|
|
130
128
|
isTooltipDisabled: false,
|
|
@@ -73,7 +73,7 @@ var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
73
73
|
var TABLE_INFO_TIMEOUT = 10000;
|
|
74
74
|
var RENDER_EVENT_SAMPLE_RATE = 0.1;
|
|
75
75
|
var packageName = "@atlaskit/renderer";
|
|
76
|
-
var packageVersion = "133.
|
|
76
|
+
var packageVersion = "133.17.0";
|
|
77
77
|
var setAsQueryContainerStyles = (0, _react2.css)({
|
|
78
78
|
containerName: 'ak-renderer-wrapper',
|
|
79
79
|
containerType: 'inline-size'
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
._l8ku180e svg{transition:transform .2s cubic-bezier(.15,1,.3,1)}._12hn14w8 svg{transform:rotate(90deg)}
|
|
1
2
|
._152tidpf{inset-block-start:0}
|
|
2
3
|
._1e02idpf{inset-inline-start:0}
|
|
3
4
|
._1e0c1ule{display:block}
|
|
@@ -9,4 +10,5 @@
|
|
|
9
10
|
._lcxvglyw{pointer-events:none}
|
|
10
11
|
._tzy4idpf{opacity:0}
|
|
11
12
|
@media (hover:none){._tza3kb7n{opacity:1}._12yg1wug{pointer-events:auto}}
|
|
12
|
-
@media (pointer:coarse){._xrqrkb7n{opacity:1}._l4c51wug{pointer-events:auto}}
|
|
13
|
+
@media (pointer:coarse){._xrqrkb7n{opacity:1}._l4c51wug{pointer-events:auto}}
|
|
14
|
+
@media (prefers-reduced-motion:reduce){._wxvuglyw svg{transition:none}}
|
|
@@ -4,7 +4,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { useIntl } from 'react-intl';
|
|
6
6
|
import { IconButton } from '@atlaskit/button/new';
|
|
7
|
-
import
|
|
7
|
+
import { akEditorSwoopCubicBezier } from '@atlaskit/editor-shared-styles/constants';
|
|
8
8
|
import ChevronRightIcon from '@atlaskit/icon/core/chevron-right';
|
|
9
9
|
import { abortAll } from '@atlaskit/react-ufo/interaction-metrics';
|
|
10
10
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
@@ -32,11 +32,8 @@ function hasRightAlignmentMark(marks) {
|
|
|
32
32
|
const wrapperStyles = null;
|
|
33
33
|
const collapsibleHeadingWrapperStyles = null;
|
|
34
34
|
const collapsibleHeadingButtonStyles = null;
|
|
35
|
+
const collapsibleHeadingButtonExpandedStyles = null;
|
|
35
36
|
const collapsibleHeadingButtonHiddenStyles = null;
|
|
36
|
-
const ChevronDownSmallIcon = () => /*#__PURE__*/React.createElement(ChevronDownIcon, {
|
|
37
|
-
label: "",
|
|
38
|
-
size: "small"
|
|
39
|
-
});
|
|
40
37
|
const ChevronRightSmallIcon = () => /*#__PURE__*/React.createElement(ChevronRightIcon, {
|
|
41
38
|
label: "",
|
|
42
39
|
size: "small"
|
|
@@ -98,11 +95,11 @@ function CollapsibleHeadingButton({
|
|
|
98
95
|
const handleBlur = React.useCallback(() => setIsFocused(false), []);
|
|
99
96
|
const handleKeyDown = React.useCallback(() => setIsFocused(true), []);
|
|
100
97
|
return /*#__PURE__*/React.createElement("span", {
|
|
101
|
-
className: ax(["_kqswstnw _152tidpf _1e02idpf _1pbykb7n", !isVisible && "_tzy4idpf _lcxvglyw _tza3kb7n _12yg1wug _xrqrkb7n _l4c51wug"])
|
|
98
|
+
className: ax(["_kqswstnw _152tidpf _1e02idpf _1pbykb7n _l8ku180e _wxvuglyw", !isCollapsed && "_12hn14w8", !isVisible && "_tzy4idpf _lcxvglyw _tza3kb7n _12yg1wug _xrqrkb7n _l4c51wug"])
|
|
102
99
|
}, /*#__PURE__*/React.createElement(IconButton, {
|
|
103
100
|
appearance: "subtle",
|
|
104
101
|
spacing: "compact",
|
|
105
|
-
icon:
|
|
102
|
+
icon: ChevronRightSmallIcon,
|
|
106
103
|
label: intl.formatMessage(isCollapsed ? collapsibleHeadingMessages.expandSection : collapsibleHeadingMessages.collapseSection),
|
|
107
104
|
"aria-expanded": !isCollapsed,
|
|
108
105
|
isTooltipDisabled: false,
|
|
@@ -59,7 +59,7 @@ export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
59
59
|
const TABLE_INFO_TIMEOUT = 10000;
|
|
60
60
|
const RENDER_EVENT_SAMPLE_RATE = 0.1;
|
|
61
61
|
const packageName = "@atlaskit/renderer";
|
|
62
|
-
const packageVersion = "133.
|
|
62
|
+
const packageVersion = "133.17.0";
|
|
63
63
|
const setAsQueryContainerStyles = css({
|
|
64
64
|
containerName: 'ak-renderer-wrapper',
|
|
65
65
|
containerType: 'inline-size'
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
._l8kuuqm3 svg{transition:var(--_1vzp3at)}._12hn14w8 svg{transform:rotate(90deg)}
|
|
1
2
|
._152tidpf{inset-block-start:0}
|
|
2
3
|
._1e02idpf{inset-inline-start:0}
|
|
3
4
|
._1e0c1ule{display:block}
|
|
@@ -9,4 +10,5 @@
|
|
|
9
10
|
._lcxvglyw{pointer-events:none}
|
|
10
11
|
._tzy4idpf{opacity:0}
|
|
11
12
|
@media (hover:none){._tza3kb7n{opacity:1}._12yg1wug{pointer-events:auto}}
|
|
12
|
-
@media (pointer:coarse){._xrqrkb7n{opacity:1}._l4c51wug{pointer-events:auto}}
|
|
13
|
+
@media (pointer:coarse){._xrqrkb7n{opacity:1}._l4c51wug{pointer-events:auto}}
|
|
14
|
+
@media (prefers-reduced-motion:reduce){._wxvuglyw svg{transition:none}}
|
|
@@ -6,7 +6,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import { useIntl } from 'react-intl';
|
|
8
8
|
import { IconButton } from '@atlaskit/button/new';
|
|
9
|
-
import
|
|
9
|
+
import { akEditorSwoopCubicBezier } from '@atlaskit/editor-shared-styles/constants';
|
|
10
10
|
import ChevronRightIcon from '@atlaskit/icon/core/chevron-right';
|
|
11
11
|
import { abortAll } from '@atlaskit/react-ufo/interaction-metrics';
|
|
12
12
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
@@ -37,13 +37,8 @@ function hasRightAlignmentMark(marks) {
|
|
|
37
37
|
var wrapperStyles = null;
|
|
38
38
|
var collapsibleHeadingWrapperStyles = null;
|
|
39
39
|
var collapsibleHeadingButtonStyles = null;
|
|
40
|
+
var collapsibleHeadingButtonExpandedStyles = null;
|
|
40
41
|
var collapsibleHeadingButtonHiddenStyles = null;
|
|
41
|
-
var ChevronDownSmallIcon = function ChevronDownSmallIcon() {
|
|
42
|
-
return /*#__PURE__*/React.createElement(ChevronDownIcon, {
|
|
43
|
-
label: "",
|
|
44
|
-
size: "small"
|
|
45
|
-
});
|
|
46
|
-
};
|
|
47
42
|
var ChevronRightSmallIcon = function ChevronRightSmallIcon() {
|
|
48
43
|
return /*#__PURE__*/React.createElement(ChevronRightIcon, {
|
|
49
44
|
label: "",
|
|
@@ -113,11 +108,14 @@ function CollapsibleHeadingButton(_ref3) {
|
|
|
113
108
|
return setIsFocused(true);
|
|
114
109
|
}, []);
|
|
115
110
|
return /*#__PURE__*/React.createElement("span", {
|
|
116
|
-
className: ax(["_kqswstnw _152tidpf _1e02idpf _1pbykb7n", !isVisible && "_tzy4idpf _lcxvglyw _tza3kb7n _12yg1wug _xrqrkb7n _l4c51wug"])
|
|
111
|
+
className: ax(["_kqswstnw _152tidpf _1e02idpf _1pbykb7n _l8kuuqm3 _wxvuglyw", !isCollapsed && "_12hn14w8", !isVisible && "_tzy4idpf _lcxvglyw _tza3kb7n _12yg1wug _xrqrkb7n _l4c51wug"]),
|
|
112
|
+
style: {
|
|
113
|
+
"--_1vzp3at": ix("transform 0.2s ".concat(akEditorSwoopCubicBezier))
|
|
114
|
+
}
|
|
117
115
|
}, /*#__PURE__*/React.createElement(IconButton, {
|
|
118
116
|
appearance: "subtle",
|
|
119
117
|
spacing: "compact",
|
|
120
|
-
icon:
|
|
118
|
+
icon: ChevronRightSmallIcon,
|
|
121
119
|
label: intl.formatMessage(isCollapsed ? collapsibleHeadingMessages.expandSection : collapsibleHeadingMessages.collapseSection),
|
|
122
120
|
"aria-expanded": !isCollapsed,
|
|
123
121
|
isTooltipDisabled: false,
|
|
@@ -64,7 +64,7 @@ export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
64
64
|
var TABLE_INFO_TIMEOUT = 10000;
|
|
65
65
|
var RENDER_EVENT_SAMPLE_RATE = 0.1;
|
|
66
66
|
var packageName = "@atlaskit/renderer";
|
|
67
|
-
var packageVersion = "133.
|
|
67
|
+
var packageVersion = "133.17.0";
|
|
68
68
|
var setAsQueryContainerStyles = css({
|
|
69
69
|
containerName: 'ak-renderer-wrapper',
|
|
70
70
|
containerType: 'inline-size'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "133.17.
|
|
3
|
+
"version": "133.17.1",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -212,9 +212,6 @@
|
|
|
212
212
|
"platform_editor_numbered_column_in_include": {
|
|
213
213
|
"type": "boolean"
|
|
214
214
|
},
|
|
215
|
-
"jfp-magma-ssr-iv-editor-media": {
|
|
216
|
-
"type": "boolean"
|
|
217
|
-
},
|
|
218
215
|
"jfp-magma-ssr-iv-editor-links": {
|
|
219
216
|
"type": "boolean"
|
|
220
217
|
},
|