@atlaskit/renderer 153.2.1 → 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 CHANGED
@@ -1,5 +1,13 @@
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
+
3
11
  ## 153.2.1
4
12
 
5
13
  ### Patch 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
- if ((0, _isExperimentEnabled.isExperimentEnabled)('a11y-fixes-week4-may-2026')) {
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
- if ((0, _isExperimentEnabled.isExperimentEnabled)('a11y-fixes-week4-may-2026')) {
200
- // Fix for A11Y-30972: Use content as a function with update callback so
201
- // the Tooltip repositions without unmounting (which caused focus loss).
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: tooltipMessage,
202
+ content: this.renderTooltipContent,
219
203
  position: "top",
220
204
  delay: 0,
221
- key: tooltipMessage,
222
- isScreenReaderAnnouncementDisabled: (0, _expValEquals.expValEquals)('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? true : false
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();
@@ -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.2.0";
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
- if (isExperimentEnabled('a11y-fixes-week4-may-2026')) {
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
- if (isExperimentEnabled('a11y-fixes-week4-may-2026')) {
166
- // Fix for A11Y-30972: Use content as a function with update callback so
167
- // the Tooltip repositions without unmounting (which caused focus loss).
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: tooltipMessage,
168
+ content: this.renderTooltipContent,
185
169
  position: "top",
186
170
  delay: 0,
187
- key: tooltipMessage,
188
- isScreenReaderAnnouncementDisabled: expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? true : false
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();
@@ -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.2.0";
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
- if (isExperimentEnabled('a11y-fixes-week4-may-2026')) {
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
- if (isExperimentEnabled('a11y-fixes-week4-may-2026')) {
195
- // Fix for A11Y-30972: Use content as a function with update callback so
196
- // the Tooltip repositions without unmounting (which caused focus loss).
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: tooltipMessage,
197
+ content: this.renderTooltipContent,
214
198
  position: "top",
215
199
  delay: 0,
216
- key: tooltipMessage,
217
- isScreenReaderAnnouncementDisabled: expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? true : false
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();
@@ -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.2.0";
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.1",
3
+ "version": "153.2.2",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -110,7 +110,7 @@
110
110
  "@atlaskit/media-state": "^4.0.0",
111
111
  "@atlaskit/media-test-helpers": "^43.0.0",
112
112
  "@atlaskit/mention": "^30.7.0",
113
- "@atlaskit/modal-dialog": "^17.1.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",