@atlaskit/renderer 153.2.0 → 153.2.2
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 +18 -0
- package/dist/cjs/react/nodes/heading-anchor.js +8 -24
- package/dist/cjs/ui/Expand.js +1 -1
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/es2019/react/nodes/heading-anchor.js +8 -24
- package/dist/es2019/ui/Expand.js +1 -1
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/react/nodes/heading-anchor.js +8 -24
- package/dist/esm/ui/Expand.js +1 -1
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 153.2.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`8c852c7ba9503`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8c852c7ba9503) -
|
|
8
|
+
Remove a11y-fixes-week4-may-2026 and retain the enabled accessibility behavior for Unsplash
|
|
9
|
+
headings, heading-link focus and tooltips, and reaction expansion state.
|
|
10
|
+
|
|
11
|
+
## 153.2.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`e217b926e88f6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e217b926e88f6) -
|
|
16
|
+
Enable standard node width and comment margin styles for the wiv_modernization_cohort gate, in
|
|
17
|
+
addition to platform_editor_expand_standard_width_fix, platform_editor_comment_margin_cq and the
|
|
18
|
+
work_item_modernization experiment
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 153.2.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
|
@@ -90,11 +90,9 @@ var HeadingAnchor = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
90
90
|
tooltipMessage: _this.props.intl.formatMessage(message),
|
|
91
91
|
isClicked: isClicked
|
|
92
92
|
}, function () {
|
|
93
|
+
var _this$_tooltipUpdate, _this2;
|
|
93
94
|
// Reposition tooltip after content change (replaces the key-based remount)
|
|
94
|
-
|
|
95
|
-
var _this$_tooltipUpdate, _this2;
|
|
96
|
-
(_this$_tooltipUpdate = (_this2 = _this)._tooltipUpdate) === null || _this$_tooltipUpdate === void 0 || _this$_tooltipUpdate.call(_this2);
|
|
97
|
-
}
|
|
95
|
+
(_this$_tooltipUpdate = (_this2 = _this)._tooltipUpdate) === null || _this$_tooltipUpdate === void 0 || _this$_tooltipUpdate.call(_this2);
|
|
98
96
|
});
|
|
99
97
|
});
|
|
100
98
|
(0, _defineProperty2.default)(_this, "getCopyAriaLabel", function () {
|
|
@@ -196,30 +194,16 @@ var HeadingAnchor = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
196
194
|
value: function render() {
|
|
197
195
|
var tooltipMessage = this.state.tooltipMessage;
|
|
198
196
|
if (tooltipMessage) {
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
// @see https://hello.jira.atlassian.cloud/browse/A11Y-30972
|
|
203
|
-
return (0, _react2.jsx)(_Tooltip.default, {
|
|
204
|
-
tag: CopyAnchorWrapperWithRef,
|
|
205
|
-
content: this.renderTooltipContent,
|
|
206
|
-
position: "top",
|
|
207
|
-
delay: 0,
|
|
208
|
-
isScreenReaderAnnouncementDisabled: (0, _expValEquals.expValEquals)('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? true : false,
|
|
209
|
-
hasNewContentOnTriggerClick: true
|
|
210
|
-
}, this.renderAnchorButton());
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
// We set the key to the message to ensure it remounts when the message
|
|
214
|
-
// changes, so that it correctly repositions.
|
|
215
|
-
// @see https://ecosystem.atlassian.net/projects/AK/queues/issue/AK-6548
|
|
197
|
+
// Fix for A11Y-30972: Use content as a function with update callback so
|
|
198
|
+
// the Tooltip repositions without unmounting (which caused focus loss).
|
|
199
|
+
// @see https://hello.jira.atlassian.cloud/browse/A11Y-30972
|
|
216
200
|
return (0, _react2.jsx)(_Tooltip.default, {
|
|
217
201
|
tag: CopyAnchorWrapperWithRef,
|
|
218
|
-
content:
|
|
202
|
+
content: this.renderTooltipContent,
|
|
219
203
|
position: "top",
|
|
220
204
|
delay: 0,
|
|
221
|
-
|
|
222
|
-
|
|
205
|
+
isScreenReaderAnnouncementDisabled: (0, _expValEquals.expValEquals)('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? true : false,
|
|
206
|
+
hasNewContentOnTriggerClick: true
|
|
223
207
|
}, this.renderAnchorButton());
|
|
224
208
|
}
|
|
225
209
|
return this.renderAnchorButton();
|
package/dist/cjs/ui/Expand.js
CHANGED
|
@@ -399,7 +399,7 @@ function Expand(_ref) {
|
|
|
399
399
|
focused: focused
|
|
400
400
|
// Comment surfaces (Jira description and comments) have no gutter for the expand to sit in.
|
|
401
401
|
,
|
|
402
|
-
useStandardWidth: ((0, _fg.fg)('platform_editor_expand_standard_width_fix') || (0, _isExperimentEnabled.isExperimentEnabled)('work_item_modernization')) && rendererAppearance === 'comment'
|
|
402
|
+
useStandardWidth: ((0, _fg.fg)('platform_editor_expand_standard_width_fix') || (0, _isExperimentEnabled.isExperimentEnabled)('work_item_modernization') || (0, _fg.fg)('wiv_modernization_cohort')) && rendererAppearance === 'comment'
|
|
403
403
|
}, nestedHeaderIds && nestedHeaderIds.length > 0 ? (0, _react2.jsx)(_activeHeaderIdProvider.ActiveHeaderIdConsumer, {
|
|
404
404
|
nestedHeaderIds: nestedHeaderIds,
|
|
405
405
|
onNestedHeaderIdMatch: openBody
|
|
@@ -80,7 +80,7 @@ var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
80
80
|
var TABLE_INFO_TIMEOUT = 10000;
|
|
81
81
|
var RENDER_EVENT_SAMPLE_RATE = 0.1;
|
|
82
82
|
var packageName = "@atlaskit/renderer";
|
|
83
|
-
var packageVersion = "153.1
|
|
83
|
+
var packageVersion = "153.2.1";
|
|
84
84
|
var setAsQueryContainerStyles = (0, _react2.css)({
|
|
85
85
|
containerName: 'ak-renderer-wrapper',
|
|
86
86
|
containerType: 'inline-size'
|
|
@@ -74,11 +74,9 @@ class HeadingAnchor extends React.PureComponent {
|
|
|
74
74
|
tooltipMessage: this.props.intl.formatMessage(message),
|
|
75
75
|
isClicked
|
|
76
76
|
}, () => {
|
|
77
|
+
var _this$_tooltipUpdate;
|
|
77
78
|
// Reposition tooltip after content change (replaces the key-based remount)
|
|
78
|
-
|
|
79
|
-
var _this$_tooltipUpdate;
|
|
80
|
-
(_this$_tooltipUpdate = this._tooltipUpdate) === null || _this$_tooltipUpdate === void 0 ? void 0 : _this$_tooltipUpdate.call(this);
|
|
81
|
-
}
|
|
79
|
+
(_this$_tooltipUpdate = this._tooltipUpdate) === null || _this$_tooltipUpdate === void 0 ? void 0 : _this$_tooltipUpdate.call(this);
|
|
82
80
|
});
|
|
83
81
|
});
|
|
84
82
|
_defineProperty(this, "getCopyAriaLabel", () => {
|
|
@@ -162,30 +160,16 @@ class HeadingAnchor extends React.PureComponent {
|
|
|
162
160
|
tooltipMessage
|
|
163
161
|
} = this.state;
|
|
164
162
|
if (tooltipMessage) {
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
// @see https://hello.jira.atlassian.cloud/browse/A11Y-30972
|
|
169
|
-
return jsx(Tooltip, {
|
|
170
|
-
tag: CopyAnchorWrapperWithRef,
|
|
171
|
-
content: this.renderTooltipContent,
|
|
172
|
-
position: "top",
|
|
173
|
-
delay: 0,
|
|
174
|
-
isScreenReaderAnnouncementDisabled: expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? true : false,
|
|
175
|
-
hasNewContentOnTriggerClick: true
|
|
176
|
-
}, this.renderAnchorButton());
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
// We set the key to the message to ensure it remounts when the message
|
|
180
|
-
// changes, so that it correctly repositions.
|
|
181
|
-
// @see https://ecosystem.atlassian.net/projects/AK/queues/issue/AK-6548
|
|
163
|
+
// Fix for A11Y-30972: Use content as a function with update callback so
|
|
164
|
+
// the Tooltip repositions without unmounting (which caused focus loss).
|
|
165
|
+
// @see https://hello.jira.atlassian.cloud/browse/A11Y-30972
|
|
182
166
|
return jsx(Tooltip, {
|
|
183
167
|
tag: CopyAnchorWrapperWithRef,
|
|
184
|
-
content:
|
|
168
|
+
content: this.renderTooltipContent,
|
|
185
169
|
position: "top",
|
|
186
170
|
delay: 0,
|
|
187
|
-
|
|
188
|
-
|
|
171
|
+
isScreenReaderAnnouncementDisabled: expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? true : false,
|
|
172
|
+
hasNewContentOnTriggerClick: true
|
|
189
173
|
}, this.renderAnchorButton());
|
|
190
174
|
}
|
|
191
175
|
return this.renderAnchorButton();
|
package/dist/es2019/ui/Expand.js
CHANGED
|
@@ -375,7 +375,7 @@ function Expand({
|
|
|
375
375
|
focused: focused
|
|
376
376
|
// Comment surfaces (Jira description and comments) have no gutter for the expand to sit in.
|
|
377
377
|
,
|
|
378
|
-
useStandardWidth: (fg('platform_editor_expand_standard_width_fix') || isExperimentEnabled('work_item_modernization')) && rendererAppearance === 'comment'
|
|
378
|
+
useStandardWidth: (fg('platform_editor_expand_standard_width_fix') || isExperimentEnabled('work_item_modernization') || fg('wiv_modernization_cohort')) && rendererAppearance === 'comment'
|
|
379
379
|
}, nestedHeaderIds && nestedHeaderIds.length > 0 ? jsx(ActiveHeaderIdConsumer, {
|
|
380
380
|
nestedHeaderIds: nestedHeaderIds,
|
|
381
381
|
onNestedHeaderIdMatch: openBody
|
|
@@ -65,7 +65,7 @@ export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
65
65
|
const TABLE_INFO_TIMEOUT = 10000;
|
|
66
66
|
const RENDER_EVENT_SAMPLE_RATE = 0.1;
|
|
67
67
|
const packageName = "@atlaskit/renderer";
|
|
68
|
-
const packageVersion = "153.1
|
|
68
|
+
const packageVersion = "153.2.1";
|
|
69
69
|
const setAsQueryContainerStyles = css({
|
|
70
70
|
containerName: 'ak-renderer-wrapper',
|
|
71
71
|
containerType: 'inline-size'
|
|
@@ -85,11 +85,9 @@ var HeadingAnchor = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
85
85
|
tooltipMessage: _this.props.intl.formatMessage(message),
|
|
86
86
|
isClicked: isClicked
|
|
87
87
|
}, function () {
|
|
88
|
+
var _this$_tooltipUpdate, _this2;
|
|
88
89
|
// Reposition tooltip after content change (replaces the key-based remount)
|
|
89
|
-
|
|
90
|
-
var _this$_tooltipUpdate, _this2;
|
|
91
|
-
(_this$_tooltipUpdate = (_this2 = _this)._tooltipUpdate) === null || _this$_tooltipUpdate === void 0 || _this$_tooltipUpdate.call(_this2);
|
|
92
|
-
}
|
|
90
|
+
(_this$_tooltipUpdate = (_this2 = _this)._tooltipUpdate) === null || _this$_tooltipUpdate === void 0 || _this$_tooltipUpdate.call(_this2);
|
|
93
91
|
});
|
|
94
92
|
});
|
|
95
93
|
_defineProperty(_this, "getCopyAriaLabel", function () {
|
|
@@ -191,30 +189,16 @@ var HeadingAnchor = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
191
189
|
value: function render() {
|
|
192
190
|
var tooltipMessage = this.state.tooltipMessage;
|
|
193
191
|
if (tooltipMessage) {
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
// @see https://hello.jira.atlassian.cloud/browse/A11Y-30972
|
|
198
|
-
return jsx(Tooltip, {
|
|
199
|
-
tag: CopyAnchorWrapperWithRef,
|
|
200
|
-
content: this.renderTooltipContent,
|
|
201
|
-
position: "top",
|
|
202
|
-
delay: 0,
|
|
203
|
-
isScreenReaderAnnouncementDisabled: expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? true : false,
|
|
204
|
-
hasNewContentOnTriggerClick: true
|
|
205
|
-
}, this.renderAnchorButton());
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
// We set the key to the message to ensure it remounts when the message
|
|
209
|
-
// changes, so that it correctly repositions.
|
|
210
|
-
// @see https://ecosystem.atlassian.net/projects/AK/queues/issue/AK-6548
|
|
192
|
+
// Fix for A11Y-30972: Use content as a function with update callback so
|
|
193
|
+
// the Tooltip repositions without unmounting (which caused focus loss).
|
|
194
|
+
// @see https://hello.jira.atlassian.cloud/browse/A11Y-30972
|
|
211
195
|
return jsx(Tooltip, {
|
|
212
196
|
tag: CopyAnchorWrapperWithRef,
|
|
213
|
-
content:
|
|
197
|
+
content: this.renderTooltipContent,
|
|
214
198
|
position: "top",
|
|
215
199
|
delay: 0,
|
|
216
|
-
|
|
217
|
-
|
|
200
|
+
isScreenReaderAnnouncementDisabled: expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? true : false,
|
|
201
|
+
hasNewContentOnTriggerClick: true
|
|
218
202
|
}, this.renderAnchorButton());
|
|
219
203
|
}
|
|
220
204
|
return this.renderAnchorButton();
|
package/dist/esm/ui/Expand.js
CHANGED
|
@@ -390,7 +390,7 @@ function Expand(_ref) {
|
|
|
390
390
|
focused: focused
|
|
391
391
|
// Comment surfaces (Jira description and comments) have no gutter for the expand to sit in.
|
|
392
392
|
,
|
|
393
|
-
useStandardWidth: (fg('platform_editor_expand_standard_width_fix') || isExperimentEnabled('work_item_modernization')) && rendererAppearance === 'comment'
|
|
393
|
+
useStandardWidth: (fg('platform_editor_expand_standard_width_fix') || isExperimentEnabled('work_item_modernization') || fg('wiv_modernization_cohort')) && rendererAppearance === 'comment'
|
|
394
394
|
}, nestedHeaderIds && nestedHeaderIds.length > 0 ? jsx(ActiveHeaderIdConsumer, {
|
|
395
395
|
nestedHeaderIds: nestedHeaderIds,
|
|
396
396
|
onNestedHeaderIdMatch: openBody
|
|
@@ -70,7 +70,7 @@ export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
70
70
|
var TABLE_INFO_TIMEOUT = 10000;
|
|
71
71
|
var RENDER_EVENT_SAMPLE_RATE = 0.1;
|
|
72
72
|
var packageName = "@atlaskit/renderer";
|
|
73
|
-
var packageVersion = "153.1
|
|
73
|
+
var packageVersion = "153.2.1";
|
|
74
74
|
var setAsQueryContainerStyles = css({
|
|
75
75
|
containerName: 'ak-renderer-wrapper',
|
|
76
76
|
containerType: 'inline-size'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "153.2.
|
|
3
|
+
"version": "153.2.2",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -49,14 +49,14 @@
|
|
|
49
49
|
"@atlaskit/editor-prosemirror": "^9.0.0",
|
|
50
50
|
"@atlaskit/editor-shared-styles": "^4.6.0",
|
|
51
51
|
"@atlaskit/editor-smart-link-draggable": "^1.2.0",
|
|
52
|
-
"@atlaskit/emoji": "^73.
|
|
52
|
+
"@atlaskit/emoji": "^73.3.0",
|
|
53
53
|
"@atlaskit/feature-gate-js-client": "^7.1.0",
|
|
54
54
|
"@atlaskit/icon": "^38.0.0",
|
|
55
55
|
"@atlaskit/link": "^5.1.0",
|
|
56
|
-
"@atlaskit/link-datasource": "^7.
|
|
56
|
+
"@atlaskit/link-datasource": "^7.10.0",
|
|
57
57
|
"@atlaskit/link-extractors": "^5.0.0",
|
|
58
58
|
"@atlaskit/linking-common": "^13.0.0",
|
|
59
|
-
"@atlaskit/media-card": "^82.
|
|
59
|
+
"@atlaskit/media-card": "^82.2.0",
|
|
60
60
|
"@atlaskit/media-client": "^39.3.0",
|
|
61
61
|
"@atlaskit/media-client-react": "^7.0.0",
|
|
62
62
|
"@atlaskit/media-common": "^14.7.0",
|
|
@@ -68,10 +68,10 @@
|
|
|
68
68
|
"@atlaskit/platform-feature-flags-react": "^1.2.0",
|
|
69
69
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
70
70
|
"@atlaskit/react-ufo": "^8.3.0",
|
|
71
|
-
"@atlaskit/smart-card": "^46.
|
|
71
|
+
"@atlaskit/smart-card": "^46.11.0",
|
|
72
72
|
"@atlaskit/status": "^5.15.0",
|
|
73
73
|
"@atlaskit/task-decision": "^21.14.0",
|
|
74
|
-
"@atlaskit/tmp-editor-statsig": "^248.
|
|
74
|
+
"@atlaskit/tmp-editor-statsig": "^248.1.0",
|
|
75
75
|
"@atlaskit/tokens": "^20.8.0",
|
|
76
76
|
"@atlaskit/tooltip": "^24.4.0",
|
|
77
77
|
"@atlaskit/visually-hidden": "^4.4.0",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"@af/visual-regression": "workspace:^",
|
|
99
99
|
"@atlaskit/analytics-gas-types": "^6.2.0",
|
|
100
100
|
"@atlaskit/checkbox": "^19.3.0",
|
|
101
|
-
"@atlaskit/editor-plugin-media": "^32.
|
|
101
|
+
"@atlaskit/editor-plugin-media": "^32.2.0",
|
|
102
102
|
"@atlaskit/editor-test-helpers": "workspace:^",
|
|
103
103
|
"@atlaskit/inline-edit": "^16.4.0",
|
|
104
104
|
"@atlaskit/json-ld-types": "^2.1.0",
|
|
@@ -109,8 +109,8 @@
|
|
|
109
109
|
"@atlaskit/media-integration-test-helpers": "workspace:^",
|
|
110
110
|
"@atlaskit/media-state": "^4.0.0",
|
|
111
111
|
"@atlaskit/media-test-helpers": "^43.0.0",
|
|
112
|
-
"@atlaskit/mention": "^30.
|
|
113
|
-
"@atlaskit/modal-dialog": "^17.
|
|
112
|
+
"@atlaskit/mention": "^30.7.0",
|
|
113
|
+
"@atlaskit/modal-dialog": "^17.2.0",
|
|
114
114
|
"@atlaskit/navigation-system": "^11.4.0",
|
|
115
115
|
"@atlaskit/primitives": "^22.6.0",
|
|
116
116
|
"@atlaskit/profilecard": "^27.4.0",
|