@atlaskit/renderer 136.2.3 → 136.2.4

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,14 @@
1
1
  # @atlaskit/renderer
2
2
 
3
+ ## 136.2.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`b6733d7c1b79e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b6733d7c1b79e) -
8
+ [ux] Updated styles for collapsible headings to ensure any element with height set via inline
9
+ style is not taking space when heading is collapsed.
10
+ - Updated dependencies
11
+
3
12
  ## 136.2.3
4
13
 
5
14
  ### Patch Changes
@@ -99,10 +99,17 @@ var baseStyles = (0, _react.css)((0, _defineProperty2.default)((0, _defineProper
99
99
  clear: 'both'
100
100
  }), ".".concat(_consts.RendererCssClassName.DOCUMENT), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, "> [".concat(_collapsibleHeadingsDom.COLLAPSED_CONTENT_OWNERS_ATTRIBUTE, "][hidden='until-found']"), {
101
101
  display: 'block',
102
- minBlockSize: 0,
103
- marginBlock: 0,
104
- paddingBlock: 0,
105
- borderBlockWidth: 0
102
+ // `hidden='until-found'` maps to `content-visibility: hidden`, which skips the element's
103
+ // contents but keeps its own box, sized by its own specified sizes. Everything below
104
+ // needs `!important` because extension nodes are sized and spaced by declarations that
105
+ // would otherwise win: an inline `height`/`min-height` reserving macro height (see
106
+ // `react/nodes/extension.tsx`), and `!important` alignment margins from
107
+ // `@atlaskit/native-embeds-common`. Without it the collapsed section keeps a visible gap.
108
+ blockSize: '0 !important',
109
+ minBlockSize: '0 !important',
110
+ marginBlock: '0 !important',
111
+ paddingBlock: '0 !important',
112
+ borderBlockWidth: '0 !important'
106
113
  }), ".".concat(_mediaInline.INLINE_IMAGE_WRAPPER_CLASS_NAME), {
107
114
  height: '22px',
108
115
  transform: "translateY(-2px)"
@@ -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 = "136.2.2";
77
+ var packageVersion = "136.2.3";
78
78
  var setAsQueryContainerStyles = (0, _react2.css)({
79
79
  containerName: 'ak-renderer-wrapper',
80
80
  containerType: 'inline-size'
@@ -90,10 +90,17 @@ const baseStyles = css({
90
90
  [`.${RendererCssClassName.DOCUMENT}`]: {
91
91
  [`> [${COLLAPSED_CONTENT_OWNERS_ATTRIBUTE}][hidden='until-found']`]: {
92
92
  display: 'block',
93
- minBlockSize: 0,
94
- marginBlock: 0,
95
- paddingBlock: 0,
96
- borderBlockWidth: 0
93
+ // `hidden='until-found'` maps to `content-visibility: hidden`, which skips the element's
94
+ // contents but keeps its own box, sized by its own specified sizes. Everything below
95
+ // needs `!important` because extension nodes are sized and spaced by declarations that
96
+ // would otherwise win: an inline `height`/`min-height` reserving macro height (see
97
+ // `react/nodes/extension.tsx`), and `!important` alignment margins from
98
+ // `@atlaskit/native-embeds-common`. Without it the collapsed section keeps a visible gap.
99
+ blockSize: '0 !important',
100
+ minBlockSize: '0 !important',
101
+ marginBlock: '0 !important',
102
+ paddingBlock: '0 !important',
103
+ borderBlockWidth: '0 !important'
97
104
  },
98
105
  // p, h3, and action items
99
106
  [`.${INLINE_IMAGE_WRAPPER_CLASS_NAME}`]: {
@@ -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 = "136.2.2";
63
+ const packageVersion = "136.2.3";
64
64
  const setAsQueryContainerStyles = css({
65
65
  containerName: 'ak-renderer-wrapper',
66
66
  containerType: 'inline-size'
@@ -92,10 +92,17 @@ var baseStyles = css(_defineProperty(_defineProperty(_defineProperty(_defineProp
92
92
  clear: 'both'
93
93
  }), ".".concat(RendererCssClassName.DOCUMENT), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "> [".concat(COLLAPSED_CONTENT_OWNERS_ATTRIBUTE, "][hidden='until-found']"), {
94
94
  display: 'block',
95
- minBlockSize: 0,
96
- marginBlock: 0,
97
- paddingBlock: 0,
98
- borderBlockWidth: 0
95
+ // `hidden='until-found'` maps to `content-visibility: hidden`, which skips the element's
96
+ // contents but keeps its own box, sized by its own specified sizes. Everything below
97
+ // needs `!important` because extension nodes are sized and spaced by declarations that
98
+ // would otherwise win: an inline `height`/`min-height` reserving macro height (see
99
+ // `react/nodes/extension.tsx`), and `!important` alignment margins from
100
+ // `@atlaskit/native-embeds-common`. Without it the collapsed section keeps a visible gap.
101
+ blockSize: '0 !important',
102
+ minBlockSize: '0 !important',
103
+ marginBlock: '0 !important',
104
+ paddingBlock: '0 !important',
105
+ borderBlockWidth: '0 !important'
99
106
  }), ".".concat(INLINE_IMAGE_WRAPPER_CLASS_NAME), {
100
107
  height: '22px',
101
108
  transform: "translateY(-2px)"
@@ -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 = "136.2.2";
68
+ var packageVersion = "136.2.3";
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": "136.2.3",
3
+ "version": "136.2.4",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"