@atlaskit/renderer 124.9.10 → 124.9.11
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
|
+
## 124.9.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`9630c61136f9b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9630c61136f9b) -
|
|
8
|
+
Fixed bug where percentage based width attributes was being used as an aboslute pixel number
|
|
9
|
+
instead of correctly calculating the width.
|
|
10
|
+
|
|
3
11
|
## 124.9.10
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -142,7 +142,7 @@ var MediaSingleWithChildren = function MediaSingleWithChildren(props) {
|
|
|
142
142
|
var containerWidth = getMediaContainerWidth(mediaContainerWidth, layout);
|
|
143
143
|
var cardDimensions = {};
|
|
144
144
|
if ((0, _platformFeatureFlags.fg)('media-perf-uplift-mutation-fix')) {
|
|
145
|
-
var maxWidth = widthAttr && typeof widthAttr === 'number' ? widthAttr : containerWidth;
|
|
145
|
+
var maxWidth = widthAttr && typeof widthAttr === 'number' && widthType === 'pixel' ? widthAttr : containerWidth;
|
|
146
146
|
cardDimensions = {
|
|
147
147
|
width: "".concat(maxWidth, "px"),
|
|
148
148
|
height: "100%"
|
|
@@ -170,7 +170,7 @@ var MediaSingleWithChildren = function MediaSingleWithChildren(props) {
|
|
|
170
170
|
cardDimensions: cardDimensions,
|
|
171
171
|
lineLength: lineLength
|
|
172
172
|
};
|
|
173
|
-
}, [height, isFullWidth, isInsideOfBlockNode, layout, padding, rendererAppearance, width, widthAttr]);
|
|
173
|
+
}, [height, isFullWidth, isInsideOfBlockNode, layout, padding, rendererAppearance, width, widthAttr, widthType]);
|
|
174
174
|
var originalDimensions = (0, _react.useMemo)(function () {
|
|
175
175
|
return {
|
|
176
176
|
width: width,
|
|
@@ -129,7 +129,7 @@ const MediaSingleWithChildren = props => {
|
|
|
129
129
|
const containerWidth = getMediaContainerWidth(mediaContainerWidth, layout);
|
|
130
130
|
let cardDimensions = {};
|
|
131
131
|
if (fg('media-perf-uplift-mutation-fix')) {
|
|
132
|
-
const maxWidth = widthAttr && typeof widthAttr === 'number' ? widthAttr : containerWidth;
|
|
132
|
+
const maxWidth = widthAttr && typeof widthAttr === 'number' && widthType === 'pixel' ? widthAttr : containerWidth;
|
|
133
133
|
cardDimensions = {
|
|
134
134
|
width: `${maxWidth}px`,
|
|
135
135
|
height: `100%`
|
|
@@ -157,7 +157,7 @@ const MediaSingleWithChildren = props => {
|
|
|
157
157
|
cardDimensions,
|
|
158
158
|
lineLength
|
|
159
159
|
};
|
|
160
|
-
}, [height, isFullWidth, isInsideOfBlockNode, layout, padding, rendererAppearance, width, widthAttr]);
|
|
160
|
+
}, [height, isFullWidth, isInsideOfBlockNode, layout, padding, rendererAppearance, width, widthAttr, widthType]);
|
|
161
161
|
const originalDimensions = useMemo(() => ({
|
|
162
162
|
width,
|
|
163
163
|
height
|
|
@@ -132,7 +132,7 @@ var MediaSingleWithChildren = function MediaSingleWithChildren(props) {
|
|
|
132
132
|
var containerWidth = getMediaContainerWidth(mediaContainerWidth, layout);
|
|
133
133
|
var cardDimensions = {};
|
|
134
134
|
if (fg('media-perf-uplift-mutation-fix')) {
|
|
135
|
-
var maxWidth = widthAttr && typeof widthAttr === 'number' ? widthAttr : containerWidth;
|
|
135
|
+
var maxWidth = widthAttr && typeof widthAttr === 'number' && widthType === 'pixel' ? widthAttr : containerWidth;
|
|
136
136
|
cardDimensions = {
|
|
137
137
|
width: "".concat(maxWidth, "px"),
|
|
138
138
|
height: "100%"
|
|
@@ -160,7 +160,7 @@ var MediaSingleWithChildren = function MediaSingleWithChildren(props) {
|
|
|
160
160
|
cardDimensions: cardDimensions,
|
|
161
161
|
lineLength: lineLength
|
|
162
162
|
};
|
|
163
|
-
}, [height, isFullWidth, isInsideOfBlockNode, layout, padding, rendererAppearance, width, widthAttr]);
|
|
163
|
+
}, [height, isFullWidth, isInsideOfBlockNode, layout, padding, rendererAppearance, width, widthAttr, widthType]);
|
|
164
164
|
var originalDimensions = useMemo(function () {
|
|
165
165
|
return {
|
|
166
166
|
width: width,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "124.9.
|
|
3
|
+
"version": "124.9.11",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"uuid": "^3.1.0"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
|
-
"@atlaskit/editor-common": "^110.
|
|
74
|
+
"@atlaskit/editor-common": "^110.22.0",
|
|
75
75
|
"@atlaskit/link-provider": "^4.0.0",
|
|
76
76
|
"@atlaskit/media-core": "^37.0.0",
|
|
77
77
|
"react": "^18.2.0",
|