@atlaskit/renderer 153.4.6 → 153.4.7
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/table.js +3 -33
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/es2019/react/nodes/table.js +3 -33
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/react/nodes/table.js +3 -33
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/dist/types/react/nodes/table.d.ts +0 -33
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 153.4.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`ef0e136c312f5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ef0e136c312f5) -
|
|
8
|
+
Remove obsolete nested-table rollout documentation from renderer declarations.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 153.4.6
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -398,39 +398,9 @@ var TableContainer = exports.TableContainer = /*#__PURE__*/function (_React$Comp
|
|
|
398
398
|
return Boolean(this.props.isInsideOfTable || this.isInsideTableCell());
|
|
399
399
|
}
|
|
400
400
|
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
* which overrides the inline styles set by this component. Using
|
|
405
|
-
* style.setProperty with 'important' priority on inline styles beats
|
|
406
|
-
* stylesheet !important rules per the CSS cascade.
|
|
407
|
-
*
|
|
408
|
-
* Tables that are nested inside another table need to remain constrained by
|
|
409
|
-
* their table-cell context. Do not promote their width to inline !important,
|
|
410
|
-
* otherwise nested tables rendered through macros such as Excerpt Include can
|
|
411
|
-
* overflow and overlap adjacent cells.
|
|
412
|
-
*
|
|
413
|
-
* Top-level tables in nested renderers still preserve their saved width, but
|
|
414
|
-
* are capped to their containing block so wide tables do not escape constrained
|
|
415
|
-
* macro bodies such as Excerpt Include panels.
|
|
416
|
-
*
|
|
417
|
-
* Uses lastComputedStyle (populated during render) rather than reading from
|
|
418
|
-
* element.style, because React may remove properties from the DOM when their
|
|
419
|
-
* values transition to undefined between renders.
|
|
420
|
-
*
|
|
421
|
-
* A NON-resized table inside a nested renderer (e.g. an Excerpt macro body)
|
|
422
|
-
* takes a default layout cap (760px/1800px, or a `cqw` length for full-page
|
|
423
|
-
* appearances) from the outer renderer's width context. That value does not
|
|
424
|
-
* match the macro's own box, so promoting it to inline `!important` makes
|
|
425
|
-
* the table collapse. Such tables have no author-chosen size to preserve, so
|
|
426
|
-
* we re-assert the parent stylesheet's intent (fill the box:
|
|
427
|
-
* `width: 100%; left: 0`) with inline `!important`.
|
|
428
|
-
*
|
|
429
|
-
* Explicitly resized tables (`tableNode.attrs.width` set) are excluded and keep
|
|
430
|
-
* the original PGXT-10226 behavior: their author-chosen width/left is promoted
|
|
431
|
-
* verbatim so the Include Page macro does not stretch or indent them. The
|
|
432
|
-
* table-cell short-circuit (PGXT-10294) above also still applies.
|
|
433
|
-
*/
|
|
401
|
+
// Preserve saved widths in nested renderers while keeping tables within their macro bounds.
|
|
402
|
+
// Unresized tables fill the macro; tables inside table cells keep their cell constraints.
|
|
403
|
+
// Use lastComputedStyle because React can remove inline styles during rerenders.
|
|
434
404
|
}, {
|
|
435
405
|
key: "applyNestedRendererTableFix",
|
|
436
406
|
value: function applyNestedRendererTableFix() {
|
|
@@ -79,7 +79,7 @@ var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
79
79
|
var TABLE_INFO_TIMEOUT = 10000;
|
|
80
80
|
var RENDER_EVENT_SAMPLE_RATE = 0.1;
|
|
81
81
|
var packageName = "@atlaskit/renderer";
|
|
82
|
-
var packageVersion = "153.4.
|
|
82
|
+
var packageVersion = "153.4.6";
|
|
83
83
|
var setAsQueryContainerStyles = (0, _react2.css)({
|
|
84
84
|
containerName: 'ak-renderer-wrapper',
|
|
85
85
|
containerType: 'inline-size'
|
|
@@ -349,39 +349,9 @@ export class TableContainer extends React.Component {
|
|
|
349
349
|
return Boolean(this.props.isInsideOfTable || this.isInsideTableCell());
|
|
350
350
|
}
|
|
351
351
|
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
* which overrides the inline styles set by this component. Using
|
|
356
|
-
* style.setProperty with 'important' priority on inline styles beats
|
|
357
|
-
* stylesheet !important rules per the CSS cascade.
|
|
358
|
-
*
|
|
359
|
-
* Tables that are nested inside another table need to remain constrained by
|
|
360
|
-
* their table-cell context. Do not promote their width to inline !important,
|
|
361
|
-
* otherwise nested tables rendered through macros such as Excerpt Include can
|
|
362
|
-
* overflow and overlap adjacent cells.
|
|
363
|
-
*
|
|
364
|
-
* Top-level tables in nested renderers still preserve their saved width, but
|
|
365
|
-
* are capped to their containing block so wide tables do not escape constrained
|
|
366
|
-
* macro bodies such as Excerpt Include panels.
|
|
367
|
-
*
|
|
368
|
-
* Uses lastComputedStyle (populated during render) rather than reading from
|
|
369
|
-
* element.style, because React may remove properties from the DOM when their
|
|
370
|
-
* values transition to undefined between renders.
|
|
371
|
-
*
|
|
372
|
-
* A NON-resized table inside a nested renderer (e.g. an Excerpt macro body)
|
|
373
|
-
* takes a default layout cap (760px/1800px, or a `cqw` length for full-page
|
|
374
|
-
* appearances) from the outer renderer's width context. That value does not
|
|
375
|
-
* match the macro's own box, so promoting it to inline `!important` makes
|
|
376
|
-
* the table collapse. Such tables have no author-chosen size to preserve, so
|
|
377
|
-
* we re-assert the parent stylesheet's intent (fill the box:
|
|
378
|
-
* `width: 100%; left: 0`) with inline `!important`.
|
|
379
|
-
*
|
|
380
|
-
* Explicitly resized tables (`tableNode.attrs.width` set) are excluded and keep
|
|
381
|
-
* the original PGXT-10226 behavior: their author-chosen width/left is promoted
|
|
382
|
-
* verbatim so the Include Page macro does not stretch or indent them. The
|
|
383
|
-
* table-cell short-circuit (PGXT-10294) above also still applies.
|
|
384
|
-
*/
|
|
352
|
+
// Preserve saved widths in nested renderers while keeping tables within their macro bounds.
|
|
353
|
+
// Unresized tables fill the macro; tables inside table cells keep their cell constraints.
|
|
354
|
+
// Use lastComputedStyle because React can remove inline styles during rerenders.
|
|
385
355
|
applyNestedRendererTableFix() {
|
|
386
356
|
var _this$props$tableNode;
|
|
387
357
|
if (!this.containerRef) {
|
|
@@ -64,7 +64,7 @@ export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
64
64
|
const TABLE_INFO_TIMEOUT = 10000;
|
|
65
65
|
const RENDER_EVENT_SAMPLE_RATE = 0.1;
|
|
66
66
|
const packageName = "@atlaskit/renderer";
|
|
67
|
-
const packageVersion = "153.4.
|
|
67
|
+
const packageVersion = "153.4.6";
|
|
68
68
|
const setAsQueryContainerStyles = css({
|
|
69
69
|
containerName: 'ak-renderer-wrapper',
|
|
70
70
|
containerType: 'inline-size'
|
|
@@ -393,39 +393,9 @@ export var TableContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
393
393
|
return Boolean(this.props.isInsideOfTable || this.isInsideTableCell());
|
|
394
394
|
}
|
|
395
395
|
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
* which overrides the inline styles set by this component. Using
|
|
400
|
-
* style.setProperty with 'important' priority on inline styles beats
|
|
401
|
-
* stylesheet !important rules per the CSS cascade.
|
|
402
|
-
*
|
|
403
|
-
* Tables that are nested inside another table need to remain constrained by
|
|
404
|
-
* their table-cell context. Do not promote their width to inline !important,
|
|
405
|
-
* otherwise nested tables rendered through macros such as Excerpt Include can
|
|
406
|
-
* overflow and overlap adjacent cells.
|
|
407
|
-
*
|
|
408
|
-
* Top-level tables in nested renderers still preserve their saved width, but
|
|
409
|
-
* are capped to their containing block so wide tables do not escape constrained
|
|
410
|
-
* macro bodies such as Excerpt Include panels.
|
|
411
|
-
*
|
|
412
|
-
* Uses lastComputedStyle (populated during render) rather than reading from
|
|
413
|
-
* element.style, because React may remove properties from the DOM when their
|
|
414
|
-
* values transition to undefined between renders.
|
|
415
|
-
*
|
|
416
|
-
* A NON-resized table inside a nested renderer (e.g. an Excerpt macro body)
|
|
417
|
-
* takes a default layout cap (760px/1800px, or a `cqw` length for full-page
|
|
418
|
-
* appearances) from the outer renderer's width context. That value does not
|
|
419
|
-
* match the macro's own box, so promoting it to inline `!important` makes
|
|
420
|
-
* the table collapse. Such tables have no author-chosen size to preserve, so
|
|
421
|
-
* we re-assert the parent stylesheet's intent (fill the box:
|
|
422
|
-
* `width: 100%; left: 0`) with inline `!important`.
|
|
423
|
-
*
|
|
424
|
-
* Explicitly resized tables (`tableNode.attrs.width` set) are excluded and keep
|
|
425
|
-
* the original PGXT-10226 behavior: their author-chosen width/left is promoted
|
|
426
|
-
* verbatim so the Include Page macro does not stretch or indent them. The
|
|
427
|
-
* table-cell short-circuit (PGXT-10294) above also still applies.
|
|
428
|
-
*/
|
|
396
|
+
// Preserve saved widths in nested renderers while keeping tables within their macro bounds.
|
|
397
|
+
// Unresized tables fill the macro; tables inside table cells keep their cell constraints.
|
|
398
|
+
// Use lastComputedStyle because React can remove inline styles during rerenders.
|
|
429
399
|
}, {
|
|
430
400
|
key: "applyNestedRendererTableFix",
|
|
431
401
|
value: function applyNestedRendererTableFix() {
|
|
@@ -69,7 +69,7 @@ export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
69
69
|
var TABLE_INFO_TIMEOUT = 10000;
|
|
70
70
|
var RENDER_EVENT_SAMPLE_RATE = 0.1;
|
|
71
71
|
var packageName = "@atlaskit/renderer";
|
|
72
|
-
var packageVersion = "153.4.
|
|
72
|
+
var packageVersion = "153.4.6";
|
|
73
73
|
var setAsQueryContainerStyles = css({
|
|
74
74
|
containerName: 'ak-renderer-wrapper',
|
|
75
75
|
containerType: 'inline-size'
|
|
@@ -81,39 +81,6 @@ export declare class TableContainer extends React.Component<TableProps & Overflo
|
|
|
81
81
|
*/
|
|
82
82
|
private isInsideTableCell;
|
|
83
83
|
private isInsideTableContext;
|
|
84
|
-
/**
|
|
85
|
-
* For tables inside nested renderers (e.g. Include Page macro), the parent
|
|
86
|
-
* renderer's CSS override forces width:100%!important and left:0!important
|
|
87
|
-
* which overrides the inline styles set by this component. Using
|
|
88
|
-
* style.setProperty with 'important' priority on inline styles beats
|
|
89
|
-
* stylesheet !important rules per the CSS cascade.
|
|
90
|
-
*
|
|
91
|
-
* Tables that are nested inside another table need to remain constrained by
|
|
92
|
-
* their table-cell context. Do not promote their width to inline !important,
|
|
93
|
-
* otherwise nested tables rendered through macros such as Excerpt Include can
|
|
94
|
-
* overflow and overlap adjacent cells.
|
|
95
|
-
*
|
|
96
|
-
* Top-level tables in nested renderers still preserve their saved width, but
|
|
97
|
-
* are capped to their containing block so wide tables do not escape constrained
|
|
98
|
-
* macro bodies such as Excerpt Include panels.
|
|
99
|
-
*
|
|
100
|
-
* Uses lastComputedStyle (populated during render) rather than reading from
|
|
101
|
-
* element.style, because React may remove properties from the DOM when their
|
|
102
|
-
* values transition to undefined between renders.
|
|
103
|
-
*
|
|
104
|
-
* A NON-resized table inside a nested renderer (e.g. an Excerpt macro body)
|
|
105
|
-
* takes a default layout cap (760px/1800px, or a `cqw` length for full-page
|
|
106
|
-
* appearances) from the outer renderer's width context. That value does not
|
|
107
|
-
* match the macro's own box, so promoting it to inline `!important` makes
|
|
108
|
-
* the table collapse. Such tables have no author-chosen size to preserve, so
|
|
109
|
-
* we re-assert the parent stylesheet's intent (fill the box:
|
|
110
|
-
* `width: 100%; left: 0`) with inline `!important`.
|
|
111
|
-
*
|
|
112
|
-
* Explicitly resized tables (`tableNode.attrs.width` set) are excluded and keep
|
|
113
|
-
* the original PGXT-10226 behavior: their author-chosen width/left is promoted
|
|
114
|
-
* verbatim so the Include Page macro does not stretch or indent them. The
|
|
115
|
-
* table-cell short-circuit (PGXT-10294) above also still applies.
|
|
116
|
-
*/
|
|
117
84
|
private applyNestedRendererTableFix;
|
|
118
85
|
/**
|
|
119
86
|
* Callback ref that captures the container DOM element and also forwards
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "153.4.
|
|
3
|
+
"version": "153.4.7",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@atlaskit/media-client-react": "^7.0.0",
|
|
62
62
|
"@atlaskit/media-common": "^14.7.0",
|
|
63
63
|
"@atlaskit/media-filmstrip": "^53.0.0",
|
|
64
|
-
"@atlaskit/media-ui": "^31.
|
|
64
|
+
"@atlaskit/media-ui": "^31.10.0",
|
|
65
65
|
"@atlaskit/media-viewer": "^54.12.0",
|
|
66
66
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
67
67
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"uuid": "^11.1.1"
|
|
87
87
|
},
|
|
88
88
|
"peerDependencies": {
|
|
89
|
-
"@atlaskit/editor-common": "^134.
|
|
89
|
+
"@atlaskit/editor-common": "^134.18.0",
|
|
90
90
|
"@atlaskit/link-provider": "^6.1.0",
|
|
91
91
|
"@atlaskit/media-core": "^39.0.0",
|
|
92
92
|
"react": "^18.2.0 || ^19.2.0",
|
|
@@ -98,8 +98,8 @@
|
|
|
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-common": "^134.
|
|
102
|
-
"@atlaskit/editor-plugin-media": "^32.
|
|
101
|
+
"@atlaskit/editor-common": "^134.18.0",
|
|
102
|
+
"@atlaskit/editor-plugin-media": "^32.4.0",
|
|
103
103
|
"@atlaskit/editor-test-helpers": "workspace:^",
|
|
104
104
|
"@atlaskit/inline-edit": "^16.5.0",
|
|
105
105
|
"@atlaskit/json-ld-types": "^2.1.0",
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
"@atlaskit/profilecard": "^27.9.0",
|
|
118
118
|
"@atlaskit/radio": "^10.2.0",
|
|
119
119
|
"@atlaskit/range": "^12.2.0",
|
|
120
|
-
"@atlaskit/section-message": "^10.
|
|
120
|
+
"@atlaskit/section-message": "^10.3.0",
|
|
121
121
|
"@atlaskit/side-nav-items": "^2.6.0",
|
|
122
122
|
"@atlaskit/textfield": "^10.3.0",
|
|
123
123
|
"@atlaskit/toggle": "^17.3.0",
|