@atlaskit/renderer 124.1.2 → 124.1.3
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/ui/Renderer/breakout-ssr.js +7 -1
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/es2019/ui/Renderer/breakout-ssr.js +7 -1
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/ui/Renderer/breakout-ssr.js +7 -1
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/package.json +6 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 124.1.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`ca42d0b688ad9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ca42d0b688ad9) -
|
|
8
|
+
[ED-29292] Fix wrapped media in table not wrapping in renderer
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 124.1.2
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -95,7 +95,13 @@ function applyBreakoutAfterSSR(id, breakoutConsts, shouldSkipBreakoutScript) {
|
|
|
95
95
|
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
96
96
|
var node = maybeNode;
|
|
97
97
|
var mode = node.dataset.mode || node.dataset.layout || '';
|
|
98
|
-
|
|
98
|
+
var nodeType = node.dataset.nodeType;
|
|
99
|
+
var widthType = node.dataset.widthType;
|
|
100
|
+
var isMediaSingleWithPixelWidth = nodeType === 'mediaSingle' && widthType === 'pixel';
|
|
101
|
+
if (!mode || !WIDE_LAYOUT_MODES.includes(mode) ||
|
|
102
|
+
// skip apply width styling to mediaSingle node with pixel width to avoid image size changing
|
|
103
|
+
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
104
|
+
isMediaSingleWithPixelWidth && (0, _platformFeatureFlags.fg)('platform_editor_fix_image_size_diff_during_ssr') && (0, _platformFeatureFlags.fg)('platform_editor_fix_media_in_renderer')) {
|
|
99
105
|
return;
|
|
100
106
|
}
|
|
101
107
|
|
|
@@ -68,7 +68,7 @@ var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
68
68
|
// we want to calculate all the table widths (which causes reflows) after the renderer has finished loading to mitigate performance impact
|
|
69
69
|
var TABLE_WIDTH_INFO_TIMEOUT = 10000;
|
|
70
70
|
var packageName = "@atlaskit/renderer";
|
|
71
|
-
var packageVersion = "
|
|
71
|
+
var packageVersion = "0.0.0-development";
|
|
72
72
|
var setAsQueryContainerStyles = (0, _react2.css)({
|
|
73
73
|
containerName: 'ak-renderer-wrapper',
|
|
74
74
|
containerType: 'inline-size'
|
|
@@ -103,7 +103,13 @@ function applyBreakoutAfterSSR(id, breakoutConsts, shouldSkipBreakoutScript) {
|
|
|
103
103
|
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
104
104
|
const node = maybeNode;
|
|
105
105
|
const mode = node.dataset.mode || node.dataset.layout || '';
|
|
106
|
-
|
|
106
|
+
const nodeType = node.dataset.nodeType;
|
|
107
|
+
const widthType = node.dataset.widthType;
|
|
108
|
+
const isMediaSingleWithPixelWidth = nodeType === 'mediaSingle' && widthType === 'pixel';
|
|
109
|
+
if (!mode || !WIDE_LAYOUT_MODES.includes(mode) ||
|
|
110
|
+
// skip apply width styling to mediaSingle node with pixel width to avoid image size changing
|
|
111
|
+
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
112
|
+
isMediaSingleWithPixelWidth && fg('platform_editor_fix_image_size_diff_during_ssr') && fg('platform_editor_fix_media_in_renderer')) {
|
|
107
113
|
return;
|
|
108
114
|
}
|
|
109
115
|
|
|
@@ -54,7 +54,7 @@ export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
54
54
|
// we want to calculate all the table widths (which causes reflows) after the renderer has finished loading to mitigate performance impact
|
|
55
55
|
const TABLE_WIDTH_INFO_TIMEOUT = 10000;
|
|
56
56
|
const packageName = "@atlaskit/renderer";
|
|
57
|
-
const packageVersion = "
|
|
57
|
+
const packageVersion = "0.0.0-development";
|
|
58
58
|
const setAsQueryContainerStyles = css({
|
|
59
59
|
containerName: 'ak-renderer-wrapper',
|
|
60
60
|
containerType: 'inline-size'
|
|
@@ -86,7 +86,13 @@ function applyBreakoutAfterSSR(id, breakoutConsts, shouldSkipBreakoutScript) {
|
|
|
86
86
|
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
87
87
|
var node = maybeNode;
|
|
88
88
|
var mode = node.dataset.mode || node.dataset.layout || '';
|
|
89
|
-
|
|
89
|
+
var nodeType = node.dataset.nodeType;
|
|
90
|
+
var widthType = node.dataset.widthType;
|
|
91
|
+
var isMediaSingleWithPixelWidth = nodeType === 'mediaSingle' && widthType === 'pixel';
|
|
92
|
+
if (!mode || !WIDE_LAYOUT_MODES.includes(mode) ||
|
|
93
|
+
// skip apply width styling to mediaSingle node with pixel width to avoid image size changing
|
|
94
|
+
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
95
|
+
isMediaSingleWithPixelWidth && fg('platform_editor_fix_image_size_diff_during_ssr') && fg('platform_editor_fix_media_in_renderer')) {
|
|
90
96
|
return;
|
|
91
97
|
}
|
|
92
98
|
|
|
@@ -59,7 +59,7 @@ export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
59
59
|
// we want to calculate all the table widths (which causes reflows) after the renderer has finished loading to mitigate performance impact
|
|
60
60
|
var TABLE_WIDTH_INFO_TIMEOUT = 10000;
|
|
61
61
|
var packageName = "@atlaskit/renderer";
|
|
62
|
-
var packageVersion = "
|
|
62
|
+
var packageVersion = "0.0.0-development";
|
|
63
63
|
var setAsQueryContainerStyles = css({
|
|
64
64
|
containerName: 'ak-renderer-wrapper',
|
|
65
65
|
containerType: 'inline-size'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "124.1.
|
|
3
|
+
"version": "124.1.3",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@atlaskit/analytics-namespaced-context": "^7.1.0",
|
|
31
31
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
32
32
|
"@atlaskit/browser-apis": "^0.0.1",
|
|
33
|
-
"@atlaskit/button": "^23.
|
|
33
|
+
"@atlaskit/button": "^23.5.0",
|
|
34
34
|
"@atlaskit/code": "^17.2.0",
|
|
35
35
|
"@atlaskit/editor-json-transformer": "^8.30.0",
|
|
36
36
|
"@atlaskit/editor-palette": "^2.1.0",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"@atlaskit/mention": "^24.2.0",
|
|
92
92
|
"@atlaskit/modal-dialog": "^14.4.0",
|
|
93
93
|
"@atlaskit/navigation-next": "patch:@atlaskit/navigation-next@npm%3A9.0.17#~/.yarn/patches/@atlaskit-navigation-next-npm-9.0.17-958ca0ab9d.patch",
|
|
94
|
-
"@atlaskit/profilecard": "^24.
|
|
94
|
+
"@atlaskit/profilecard": "^24.16.0",
|
|
95
95
|
"@atlaskit/util-data-test": "^18.3.0",
|
|
96
96
|
"@atlassian/feature-flags-test-utils": "^0.3.0",
|
|
97
97
|
"@testing-library/react": "^13.4.0",
|
|
@@ -172,6 +172,9 @@
|
|
|
172
172
|
"platform_editor_add_media_from_url_rollout": {
|
|
173
173
|
"type": "boolean"
|
|
174
174
|
},
|
|
175
|
+
"platform_editor_fix_media_in_renderer": {
|
|
176
|
+
"type": "boolean"
|
|
177
|
+
},
|
|
175
178
|
"platform_editor_tables_numbered_column_correction": {
|
|
176
179
|
"type": "boolean"
|
|
177
180
|
},
|