@atlaskit/renderer 137.2.0 → 137.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 +36 -0
- package/dist/cjs/react/nodes/heading-anchor.js +4 -3
- package/dist/cjs/ui/Expand.js +12 -11
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/es2019/react/nodes/heading-anchor.js +4 -3
- package/dist/es2019/ui/Expand.js +12 -11
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/react/nodes/heading-anchor.js +4 -3
- package/dist/esm/ui/Expand.js +12 -11
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,41 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 137.2.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 137.2.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`4db8fed8666c0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4db8fed8666c0) -
|
|
14
|
+
Clean up experiment `platform_editor_close_expand_find` and permanently enable browser find in
|
|
15
|
+
collapsed Expand content.
|
|
16
|
+
- [`5cacf96fc4102`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5cacf96fc4102) -
|
|
17
|
+
A collapsed expand no longer wraps a body that is standing in for itself in `WidthProvider`, or
|
|
18
|
+
renders the div that clears the following sibling's margin. Nothing in that body is laid out until
|
|
19
|
+
the reader or browser find opens the expand, so neither is of any use yet, and `WidthProvider`
|
|
20
|
+
costs two divs, a `ResizeObserver` and an `IntersectionObserver` for every expand on the page.
|
|
21
|
+
|
|
22
|
+
Opening the expand puts both back. React cannot add a DOM ancestor without rebuilding what is
|
|
23
|
+
under it, so the blocks that do render while collapsed are mounted a second time then: a nested
|
|
24
|
+
expand, which comes back open through the set browser find records it in, and an extension holding
|
|
25
|
+
stashed ADF, whose nested renderer is rebuilt.
|
|
26
|
+
|
|
27
|
+
Behind the `platform_editor_defer_collapsed_expand_body` experiment, which controls whether a
|
|
28
|
+
collapsed expand holds its body back at all.
|
|
29
|
+
|
|
30
|
+
- [`08bf773f7599a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/08bf773f7599a) -
|
|
31
|
+
Migrate experiments to use the new platform experiment API. This major release removes the
|
|
32
|
+
migrated experiment entries from `@atlaskit/tmp-editor-statsig`'s `editorExperimentsConfig` and
|
|
33
|
+
test overrides. Consumers must replace legacy `expVal`/`expValEquals` calls with
|
|
34
|
+
`@atlaskit/platform-feature-experiments` APIs, using `isExperimentEnabled` for boolean `isEnabled`
|
|
35
|
+
experiments and `expVal` for parameterized experiments; use `mockExpEnabled`/`mockExpDisabled` in
|
|
36
|
+
tests.
|
|
37
|
+
- Updated dependencies
|
|
38
|
+
|
|
3
39
|
## 137.2.0
|
|
4
40
|
|
|
5
41
|
### Minor Changes
|
|
@@ -19,8 +19,9 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
19
19
|
var _react2 = require("@emotion/react");
|
|
20
20
|
var _reactIntl = require("react-intl");
|
|
21
21
|
var _link = _interopRequireDefault(require("@atlaskit/icon/core/link"));
|
|
22
|
-
var
|
|
22
|
+
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
23
23
|
var _Tooltip = _interopRequireDefault(require("@atlaskit/tooltip/Tooltip"));
|
|
24
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
24
25
|
var _messages = require("../../messages");
|
|
25
26
|
var _excluded = ["children"];
|
|
26
27
|
/**
|
|
@@ -74,7 +75,7 @@ var HeadingAnchor = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
74
75
|
isClicked: isClicked
|
|
75
76
|
}, function () {
|
|
76
77
|
// Reposition tooltip after content change (replaces the key-based remount)
|
|
77
|
-
if ((0,
|
|
78
|
+
if ((0, _isExperimentEnabled.isExperimentEnabled)('a11y-fixes-week4-may-2026')) {
|
|
78
79
|
var _this$_tooltipUpdate, _this2;
|
|
79
80
|
(_this$_tooltipUpdate = (_this2 = _this)._tooltipUpdate) === null || _this$_tooltipUpdate === void 0 || _this$_tooltipUpdate.call(_this2);
|
|
80
81
|
}
|
|
@@ -158,7 +159,7 @@ var HeadingAnchor = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
158
159
|
value: function render() {
|
|
159
160
|
var tooltipMessage = this.state.tooltipMessage;
|
|
160
161
|
if (tooltipMessage) {
|
|
161
|
-
if ((0,
|
|
162
|
+
if ((0, _isExperimentEnabled.isExperimentEnabled)('a11y-fixes-week4-may-2026')) {
|
|
162
163
|
// Fix for A11Y-30972: Use content as a function with update callback so
|
|
163
164
|
// the Tooltip repositions without unmounting (which caused focus loss).
|
|
164
165
|
// @see https://hello.jira.atlassian.cloud/browse/A11Y-30972
|
package/dist/cjs/ui/Expand.js
CHANGED
|
@@ -102,7 +102,7 @@ var titleContainerStylesExpanded = (0, _react.css)({
|
|
|
102
102
|
});
|
|
103
103
|
|
|
104
104
|
// Base styles for the content container. visibility:hidden hides collapsed content.
|
|
105
|
-
// When browser find is
|
|
105
|
+
// When browser find is supported, the useEffect clears visibility:hidden after setting
|
|
106
106
|
// hidden="until-found" on the DOM element, which applies content-visibility:hidden natively —
|
|
107
107
|
// this hides the content while allowing browser Ctrl+F to index the text.
|
|
108
108
|
// The visibility:hidden in CSS serves as an SSR fallback (useEffect doesn't run server-side).
|
|
@@ -121,8 +121,8 @@ var contentContainerStyles = (0, _react.css)({
|
|
|
121
121
|
}
|
|
122
122
|
});
|
|
123
123
|
|
|
124
|
-
// display:flow-root is applied only when browser find is
|
|
125
|
-
// It must NOT be set when browser find is
|
|
124
|
+
// display:flow-root is applied only when browser find is not supported.
|
|
125
|
+
// It must NOT be set when browser find is supported — it overrides the
|
|
126
126
|
// content-visibility:hidden applied by hidden="until-found" and makes content visible.
|
|
127
127
|
var contentContainerStylesFlowRoot = (0, _react.css)({
|
|
128
128
|
display: 'flow-root'
|
|
@@ -145,7 +145,7 @@ var contentContainerStylesNotExpanded = (0, _react.css)({
|
|
|
145
145
|
}
|
|
146
146
|
});
|
|
147
147
|
|
|
148
|
-
// When browser find is
|
|
148
|
+
// When browser find is supported and expand is collapsed, we rely on the
|
|
149
149
|
// hidden="until-found" attribute on the outer container to hide content.
|
|
150
150
|
// We remove height:0/overflow:hidden/clip from the inner wrapper so the
|
|
151
151
|
// browser can actually search through the content.
|
|
@@ -331,7 +331,7 @@ function Expand(_ref) {
|
|
|
331
331
|
if (!contentWrapper) {
|
|
332
332
|
return;
|
|
333
333
|
}
|
|
334
|
-
if (supportsHiddenUntilFound &&
|
|
334
|
+
if (supportsHiddenUntilFound && !expanded) {
|
|
335
335
|
contentWrapper.setAttribute('hidden', 'until-found');
|
|
336
336
|
// Products ship a CSS reset with `[hidden] { display: none }` — Confluence does. That is an
|
|
337
337
|
// author rule, so it beats the UA stylesheet's
|
|
@@ -354,7 +354,7 @@ function Expand(_ref) {
|
|
|
354
354
|
}
|
|
355
355
|
}, [expanded, supportsHiddenUntilFound]);
|
|
356
356
|
(0, _react2.useEffect)(function () {
|
|
357
|
-
if (
|
|
357
|
+
if (expanded) {
|
|
358
358
|
return;
|
|
359
359
|
}
|
|
360
360
|
var contentWrapper = contentWrapperRef.current;
|
|
@@ -383,6 +383,9 @@ function Expand(_ref) {
|
|
|
383
383
|
revealedByFind: revealedByFind
|
|
384
384
|
};
|
|
385
385
|
}, [revealed, openWithAncestors, revealedByFind]);
|
|
386
|
+
var body = (0, _react.jsx)(_expandBody.ExpandBodyProvider, {
|
|
387
|
+
value: expandBody
|
|
388
|
+
}, children);
|
|
386
389
|
return (0, _react.jsx)(Container, {
|
|
387
390
|
"data-testid": "expand-container-".concat(nodeType, "-").concat(id),
|
|
388
391
|
"data-node-type": nodeType,
|
|
@@ -440,16 +443,14 @@ function Expand(_ref) {
|
|
|
440
443
|
id: id
|
|
441
444
|
}, title || intl.formatMessage(_ui.expandMessages.expandDefaultTitle))), (0, _react.jsx)(ContentContainer, {
|
|
442
445
|
expanded: expanded,
|
|
443
|
-
enableBrowserFind: supportsHiddenUntilFound
|
|
446
|
+
enableBrowserFind: supportsHiddenUntilFound,
|
|
444
447
|
contentRef: contentContainerRef
|
|
445
448
|
}, (0, _react.jsx)("div", {
|
|
446
449
|
className: "".concat(nodeType, "-content-wrapper"),
|
|
447
450
|
ref: contentWrapperRef
|
|
448
|
-
}, (0, _react.jsx)(_ui.WidthProvider, null, (0, _react.jsx)("div", {
|
|
451
|
+
}, revealed ? (0, _react.jsx)(_ui.WidthProvider, null, (0, _react.jsx)("div", {
|
|
449
452
|
css: clearNextSiblingMarginTopStyle
|
|
450
|
-
}),
|
|
451
|
-
value: expandBody
|
|
452
|
-
}, children)))));
|
|
453
|
+
}), body) : body)));
|
|
453
454
|
}
|
|
454
455
|
|
|
455
456
|
// eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
@@ -74,7 +74,7 @@ var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
74
74
|
var TABLE_INFO_TIMEOUT = 10000;
|
|
75
75
|
var RENDER_EVENT_SAMPLE_RATE = 0.1;
|
|
76
76
|
var packageName = "@atlaskit/renderer";
|
|
77
|
-
var packageVersion = "137.1
|
|
77
|
+
var packageVersion = "137.2.1";
|
|
78
78
|
var setAsQueryContainerStyles = (0, _react2.css)({
|
|
79
79
|
containerName: 'ak-renderer-wrapper',
|
|
80
80
|
containerType: 'inline-size'
|
|
@@ -10,8 +10,9 @@ import React from 'react';
|
|
|
10
10
|
import { css, jsx } from '@emotion/react';
|
|
11
11
|
import { injectIntl } from 'react-intl';
|
|
12
12
|
import LinkIcon from '@atlaskit/icon/core/link';
|
|
13
|
-
import {
|
|
13
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
14
14
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
15
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
15
16
|
import { headingAnchorLinkMessages } from '../../messages';
|
|
16
17
|
export const HeadingAnchorWrapperClassName = 'heading-anchor-wrapper';
|
|
17
18
|
const CopyAnchorWrapperWithRef = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
@@ -57,7 +58,7 @@ class HeadingAnchor extends React.PureComponent {
|
|
|
57
58
|
isClicked
|
|
58
59
|
}, () => {
|
|
59
60
|
// Reposition tooltip after content change (replaces the key-based remount)
|
|
60
|
-
if (
|
|
61
|
+
if (isExperimentEnabled('a11y-fixes-week4-may-2026')) {
|
|
61
62
|
var _this$_tooltipUpdate;
|
|
62
63
|
(_this$_tooltipUpdate = this._tooltipUpdate) === null || _this$_tooltipUpdate === void 0 ? void 0 : _this$_tooltipUpdate.call(this);
|
|
63
64
|
}
|
|
@@ -123,7 +124,7 @@ class HeadingAnchor extends React.PureComponent {
|
|
|
123
124
|
tooltipMessage
|
|
124
125
|
} = this.state;
|
|
125
126
|
if (tooltipMessage) {
|
|
126
|
-
if (
|
|
127
|
+
if (isExperimentEnabled('a11y-fixes-week4-may-2026')) {
|
|
127
128
|
// Fix for A11Y-30972: Use content as a function with update callback so
|
|
128
129
|
// the Tooltip repositions without unmounting (which caused focus loss).
|
|
129
130
|
// @see https://hello.jira.atlassian.cloud/browse/A11Y-30972
|
package/dist/es2019/ui/Expand.js
CHANGED
|
@@ -91,7 +91,7 @@ const titleContainerStylesExpanded = css({
|
|
|
91
91
|
});
|
|
92
92
|
|
|
93
93
|
// Base styles for the content container. visibility:hidden hides collapsed content.
|
|
94
|
-
// When browser find is
|
|
94
|
+
// When browser find is supported, the useEffect clears visibility:hidden after setting
|
|
95
95
|
// hidden="until-found" on the DOM element, which applies content-visibility:hidden natively —
|
|
96
96
|
// this hides the content while allowing browser Ctrl+F to index the text.
|
|
97
97
|
// The visibility:hidden in CSS serves as an SSR fallback (useEffect doesn't run server-side).
|
|
@@ -110,8 +110,8 @@ const contentContainerStyles = css({
|
|
|
110
110
|
}
|
|
111
111
|
});
|
|
112
112
|
|
|
113
|
-
// display:flow-root is applied only when browser find is
|
|
114
|
-
// It must NOT be set when browser find is
|
|
113
|
+
// display:flow-root is applied only when browser find is not supported.
|
|
114
|
+
// It must NOT be set when browser find is supported — it overrides the
|
|
115
115
|
// content-visibility:hidden applied by hidden="until-found" and makes content visible.
|
|
116
116
|
const contentContainerStylesFlowRoot = css({
|
|
117
117
|
display: 'flow-root'
|
|
@@ -134,7 +134,7 @@ const contentContainerStylesNotExpanded = css({
|
|
|
134
134
|
}
|
|
135
135
|
});
|
|
136
136
|
|
|
137
|
-
// When browser find is
|
|
137
|
+
// When browser find is supported and expand is collapsed, we rely on the
|
|
138
138
|
// hidden="until-found" attribute on the outer container to hide content.
|
|
139
139
|
// We remove height:0/overflow:hidden/clip from the inner wrapper so the
|
|
140
140
|
// browser can actually search through the content.
|
|
@@ -308,7 +308,7 @@ function Expand({
|
|
|
308
308
|
if (!contentWrapper) {
|
|
309
309
|
return;
|
|
310
310
|
}
|
|
311
|
-
if (supportsHiddenUntilFound &&
|
|
311
|
+
if (supportsHiddenUntilFound && !expanded) {
|
|
312
312
|
contentWrapper.setAttribute('hidden', 'until-found');
|
|
313
313
|
// Products ship a CSS reset with `[hidden] { display: none }` — Confluence does. That is an
|
|
314
314
|
// author rule, so it beats the UA stylesheet's
|
|
@@ -331,7 +331,7 @@ function Expand({
|
|
|
331
331
|
}
|
|
332
332
|
}, [expanded, supportsHiddenUntilFound]);
|
|
333
333
|
useEffect(() => {
|
|
334
|
-
if (
|
|
334
|
+
if (expanded) {
|
|
335
335
|
return;
|
|
336
336
|
}
|
|
337
337
|
const contentWrapper = contentWrapperRef.current;
|
|
@@ -358,6 +358,9 @@ function Expand({
|
|
|
358
358
|
openWithAncestors,
|
|
359
359
|
revealedByFind
|
|
360
360
|
}), [revealed, openWithAncestors, revealedByFind]);
|
|
361
|
+
const body = jsx(ExpandBodyProvider, {
|
|
362
|
+
value: expandBody
|
|
363
|
+
}, children);
|
|
361
364
|
return jsx(Container, {
|
|
362
365
|
"data-testid": `expand-container-${nodeType}-${id}`,
|
|
363
366
|
"data-node-type": nodeType,
|
|
@@ -415,16 +418,14 @@ function Expand({
|
|
|
415
418
|
id: id
|
|
416
419
|
}, title || intl.formatMessage(expandMessages.expandDefaultTitle))), jsx(ContentContainer, {
|
|
417
420
|
expanded: expanded,
|
|
418
|
-
enableBrowserFind: supportsHiddenUntilFound
|
|
421
|
+
enableBrowserFind: supportsHiddenUntilFound,
|
|
419
422
|
contentRef: contentContainerRef
|
|
420
423
|
}, jsx("div", {
|
|
421
424
|
className: `${nodeType}-content-wrapper`,
|
|
422
425
|
ref: contentWrapperRef
|
|
423
|
-
}, jsx(WidthProvider, null, jsx("div", {
|
|
426
|
+
}, revealed ? jsx(WidthProvider, null, jsx("div", {
|
|
424
427
|
css: clearNextSiblingMarginTopStyle
|
|
425
|
-
}),
|
|
426
|
-
value: expandBody
|
|
427
|
-
}, children)))));
|
|
428
|
+
}), body) : body)));
|
|
428
429
|
}
|
|
429
430
|
|
|
430
431
|
// eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
@@ -60,7 +60,7 @@ export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
60
60
|
const TABLE_INFO_TIMEOUT = 10000;
|
|
61
61
|
const RENDER_EVENT_SAMPLE_RATE = 0.1;
|
|
62
62
|
const packageName = "@atlaskit/renderer";
|
|
63
|
-
const packageVersion = "137.1
|
|
63
|
+
const packageVersion = "137.2.1";
|
|
64
64
|
const setAsQueryContainerStyles = css({
|
|
65
65
|
containerName: 'ak-renderer-wrapper',
|
|
66
66
|
containerType: 'inline-size'
|
|
@@ -21,8 +21,9 @@ import React from 'react';
|
|
|
21
21
|
import { css, jsx } from '@emotion/react';
|
|
22
22
|
import { injectIntl } from 'react-intl';
|
|
23
23
|
import LinkIcon from '@atlaskit/icon/core/link';
|
|
24
|
-
import {
|
|
24
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
25
25
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
26
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
26
27
|
import { headingAnchorLinkMessages } from '../../messages';
|
|
27
28
|
export var HeadingAnchorWrapperClassName = 'heading-anchor-wrapper';
|
|
28
29
|
var CopyAnchorWrapperWithRef = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
@@ -68,7 +69,7 @@ var HeadingAnchor = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
68
69
|
isClicked: isClicked
|
|
69
70
|
}, function () {
|
|
70
71
|
// Reposition tooltip after content change (replaces the key-based remount)
|
|
71
|
-
if (
|
|
72
|
+
if (isExperimentEnabled('a11y-fixes-week4-may-2026')) {
|
|
72
73
|
var _this$_tooltipUpdate, _this2;
|
|
73
74
|
(_this$_tooltipUpdate = (_this2 = _this)._tooltipUpdate) === null || _this$_tooltipUpdate === void 0 || _this$_tooltipUpdate.call(_this2);
|
|
74
75
|
}
|
|
@@ -152,7 +153,7 @@ var HeadingAnchor = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
152
153
|
value: function render() {
|
|
153
154
|
var tooltipMessage = this.state.tooltipMessage;
|
|
154
155
|
if (tooltipMessage) {
|
|
155
|
-
if (
|
|
156
|
+
if (isExperimentEnabled('a11y-fixes-week4-may-2026')) {
|
|
156
157
|
// Fix for A11Y-30972: Use content as a function with update callback so
|
|
157
158
|
// the Tooltip repositions without unmounting (which caused focus loss).
|
|
158
159
|
// @see https://hello.jira.atlassian.cloud/browse/A11Y-30972
|
package/dist/esm/ui/Expand.js
CHANGED
|
@@ -92,7 +92,7 @@ var titleContainerStylesExpanded = css({
|
|
|
92
92
|
});
|
|
93
93
|
|
|
94
94
|
// Base styles for the content container. visibility:hidden hides collapsed content.
|
|
95
|
-
// When browser find is
|
|
95
|
+
// When browser find is supported, the useEffect clears visibility:hidden after setting
|
|
96
96
|
// hidden="until-found" on the DOM element, which applies content-visibility:hidden natively —
|
|
97
97
|
// this hides the content while allowing browser Ctrl+F to index the text.
|
|
98
98
|
// The visibility:hidden in CSS serves as an SSR fallback (useEffect doesn't run server-side).
|
|
@@ -111,8 +111,8 @@ var contentContainerStyles = css({
|
|
|
111
111
|
}
|
|
112
112
|
});
|
|
113
113
|
|
|
114
|
-
// display:flow-root is applied only when browser find is
|
|
115
|
-
// It must NOT be set when browser find is
|
|
114
|
+
// display:flow-root is applied only when browser find is not supported.
|
|
115
|
+
// It must NOT be set when browser find is supported — it overrides the
|
|
116
116
|
// content-visibility:hidden applied by hidden="until-found" and makes content visible.
|
|
117
117
|
var contentContainerStylesFlowRoot = css({
|
|
118
118
|
display: 'flow-root'
|
|
@@ -135,7 +135,7 @@ var contentContainerStylesNotExpanded = css({
|
|
|
135
135
|
}
|
|
136
136
|
});
|
|
137
137
|
|
|
138
|
-
// When browser find is
|
|
138
|
+
// When browser find is supported and expand is collapsed, we rely on the
|
|
139
139
|
// hidden="until-found" attribute on the outer container to hide content.
|
|
140
140
|
// We remove height:0/overflow:hidden/clip from the inner wrapper so the
|
|
141
141
|
// browser can actually search through the content.
|
|
@@ -321,7 +321,7 @@ function Expand(_ref) {
|
|
|
321
321
|
if (!contentWrapper) {
|
|
322
322
|
return;
|
|
323
323
|
}
|
|
324
|
-
if (supportsHiddenUntilFound &&
|
|
324
|
+
if (supportsHiddenUntilFound && !expanded) {
|
|
325
325
|
contentWrapper.setAttribute('hidden', 'until-found');
|
|
326
326
|
// Products ship a CSS reset with `[hidden] { display: none }` — Confluence does. That is an
|
|
327
327
|
// author rule, so it beats the UA stylesheet's
|
|
@@ -344,7 +344,7 @@ function Expand(_ref) {
|
|
|
344
344
|
}
|
|
345
345
|
}, [expanded, supportsHiddenUntilFound]);
|
|
346
346
|
useEffect(function () {
|
|
347
|
-
if (
|
|
347
|
+
if (expanded) {
|
|
348
348
|
return;
|
|
349
349
|
}
|
|
350
350
|
var contentWrapper = contentWrapperRef.current;
|
|
@@ -373,6 +373,9 @@ function Expand(_ref) {
|
|
|
373
373
|
revealedByFind: revealedByFind
|
|
374
374
|
};
|
|
375
375
|
}, [revealed, openWithAncestors, revealedByFind]);
|
|
376
|
+
var body = jsx(ExpandBodyProvider, {
|
|
377
|
+
value: expandBody
|
|
378
|
+
}, children);
|
|
376
379
|
return jsx(Container, {
|
|
377
380
|
"data-testid": "expand-container-".concat(nodeType, "-").concat(id),
|
|
378
381
|
"data-node-type": nodeType,
|
|
@@ -430,16 +433,14 @@ function Expand(_ref) {
|
|
|
430
433
|
id: id
|
|
431
434
|
}, title || intl.formatMessage(expandMessages.expandDefaultTitle))), jsx(ContentContainer, {
|
|
432
435
|
expanded: expanded,
|
|
433
|
-
enableBrowserFind: supportsHiddenUntilFound
|
|
436
|
+
enableBrowserFind: supportsHiddenUntilFound,
|
|
434
437
|
contentRef: contentContainerRef
|
|
435
438
|
}, jsx("div", {
|
|
436
439
|
className: "".concat(nodeType, "-content-wrapper"),
|
|
437
440
|
ref: contentWrapperRef
|
|
438
|
-
}, jsx(WidthProvider, null, jsx("div", {
|
|
441
|
+
}, revealed ? jsx(WidthProvider, null, jsx("div", {
|
|
439
442
|
css: clearNextSiblingMarginTopStyle
|
|
440
|
-
}),
|
|
441
|
-
value: expandBody
|
|
442
|
-
}, children)))));
|
|
443
|
+
}), body) : body)));
|
|
443
444
|
}
|
|
444
445
|
|
|
445
446
|
// eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
@@ -65,7 +65,7 @@ export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
65
65
|
var TABLE_INFO_TIMEOUT = 10000;
|
|
66
66
|
var RENDER_EVENT_SAMPLE_RATE = 0.1;
|
|
67
67
|
var packageName = "@atlaskit/renderer";
|
|
68
|
-
var packageVersion = "137.1
|
|
68
|
+
var packageVersion = "137.2.1";
|
|
69
69
|
var setAsQueryContainerStyles = css({
|
|
70
70
|
containerName: 'ak-renderer-wrapper',
|
|
71
71
|
containerType: 'inline-size'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "137.2.
|
|
3
|
+
"version": "137.2.2",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@atlaskit/linking-common": "^12.1.0",
|
|
56
56
|
"@atlaskit/media-card": "^81.9.0",
|
|
57
57
|
"@atlaskit/media-client": "^37.6.0",
|
|
58
|
-
"@atlaskit/media-client-react": "^6.
|
|
58
|
+
"@atlaskit/media-client-react": "^6.4.0",
|
|
59
59
|
"@atlaskit/media-common": "^14.6.0",
|
|
60
60
|
"@atlaskit/media-filmstrip": "^52.4.0",
|
|
61
61
|
"@atlaskit/media-ui": "^30.15.0",
|
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
"@atlaskit/status": "^5.9.0",
|
|
71
71
|
"@atlaskit/task-decision": "^21.9.0",
|
|
72
72
|
"@atlaskit/theme": "^28.2.0",
|
|
73
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
74
|
-
"@atlaskit/tokens": "^16.
|
|
73
|
+
"@atlaskit/tmp-editor-statsig": "^170.0.0",
|
|
74
|
+
"@atlaskit/tokens": "^16.11.0",
|
|
75
75
|
"@atlaskit/tooltip": "^24.3.0",
|
|
76
76
|
"@atlaskit/visually-hidden": "^4.4.0",
|
|
77
77
|
"@babel/runtime": "^7.0.0",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"uuid": "^3.1.0"
|
|
86
86
|
},
|
|
87
87
|
"peerDependencies": {
|
|
88
|
-
"@atlaskit/editor-common": "^120.
|
|
88
|
+
"@atlaskit/editor-common": "^120.10.0",
|
|
89
89
|
"@atlaskit/link-provider": "^5.5.0",
|
|
90
90
|
"@atlaskit/media-core": "^38.2.0",
|
|
91
91
|
"react": "^18.2.0",
|