@atlaskit/renderer 117.0.0 → 117.0.1

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
+ ## 117.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#154154](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/154154)
8
+ [`ac64f10ddbadb`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ac64f10ddbadb) -
9
+ ED-27923: Added condition check in mediaSingle in common to fix embed width during SSR"
10
+ - Updated dependencies
11
+
3
12
  ## 117.0.0
4
13
 
5
14
  ### Patch Changes
@@ -141,7 +141,7 @@ var MediaSingleWithChildren = function MediaSingleWithChildren(props) {
141
141
  var padding = isFullPage ? _style.FullPagePadding * 2 : 0;
142
142
  var calcDimensions = (0, _react.useCallback)(function (mediaContainerWidth) {
143
143
  var containerWidth = getMediaContainerWidth(mediaContainerWidth, layout);
144
- var maxWidth = (0, _coreUtils.isSSR)() && widthAttr && typeof widthAttr === 'number' && widthType === 'pixel' && (0, _platformFeatureFlags.fg)('platform_editor_fix_image_size_diff_during_ssr') ? Math.max(widthAttr, containerWidth) : containerWidth;
144
+ var maxWidth = (0, _coreUtils.isSSR)() && widthAttr && typeof widthAttr === 'number' && (0, _platformFeatureFlags.fg)('platform_editor_fix_image_size_diff_during_ssr') ? Math.max(widthAttr, containerWidth) : containerWidth;
145
145
  var maxHeight = height / width * maxWidth;
146
146
  var cardDimensions = {
147
147
  width: "".concat(maxWidth, "px"),
@@ -162,7 +162,7 @@ var MediaSingleWithChildren = function MediaSingleWithChildren(props) {
162
162
  cardDimensions: cardDimensions,
163
163
  lineLength: lineLength
164
164
  };
165
- }, [height, isFullWidth, isInsideOfBlockNode, layout, padding, rendererAppearance, width, widthAttr, widthType]);
165
+ }, [height, isFullWidth, isInsideOfBlockNode, layout, padding, rendererAppearance, width, widthAttr]);
166
166
  var originalDimensions = (0, _react.useMemo)(function () {
167
167
  return {
168
168
  width: width,
@@ -63,7 +63,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
63
63
  var NORMAL_SEVERITY_THRESHOLD = exports.NORMAL_SEVERITY_THRESHOLD = 2000;
64
64
  var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
65
65
  var packageName = "@atlaskit/renderer";
66
- var packageVersion = "117.0.0";
66
+ var packageVersion = "117.0.1";
67
67
  var setAsQueryContainerStyles = (0, _react2.css)({
68
68
  containerName: 'ak-renderer-wrapper',
69
69
  containerType: 'inline-size'
@@ -127,7 +127,7 @@ const MediaSingleWithChildren = props => {
127
127
  const padding = isFullPage ? FullPagePadding * 2 : 0;
128
128
  const calcDimensions = useCallback(mediaContainerWidth => {
129
129
  const containerWidth = getMediaContainerWidth(mediaContainerWidth, layout);
130
- const maxWidth = isSSR() && widthAttr && typeof widthAttr === 'number' && widthType === 'pixel' && fg('platform_editor_fix_image_size_diff_during_ssr') ? Math.max(widthAttr, containerWidth) : containerWidth;
130
+ const maxWidth = isSSR() && widthAttr && typeof widthAttr === 'number' && fg('platform_editor_fix_image_size_diff_during_ssr') ? Math.max(widthAttr, containerWidth) : containerWidth;
131
131
  const maxHeight = height / width * maxWidth;
132
132
  const cardDimensions = {
133
133
  width: `${maxWidth}px`,
@@ -148,7 +148,7 @@ const MediaSingleWithChildren = props => {
148
148
  cardDimensions,
149
149
  lineLength
150
150
  };
151
- }, [height, isFullWidth, isInsideOfBlockNode, layout, padding, rendererAppearance, width, widthAttr, widthType]);
151
+ }, [height, isFullWidth, isInsideOfBlockNode, layout, padding, rendererAppearance, width, widthAttr]);
152
152
  const originalDimensions = useMemo(() => ({
153
153
  width,
154
154
  height
@@ -48,7 +48,7 @@ import { PortalContext } from './PortalContext';
48
48
  export const NORMAL_SEVERITY_THRESHOLD = 2000;
49
49
  export const DEGRADED_SEVERITY_THRESHOLD = 3000;
50
50
  const packageName = "@atlaskit/renderer";
51
- const packageVersion = "117.0.0";
51
+ const packageVersion = "117.0.1";
52
52
  const setAsQueryContainerStyles = css({
53
53
  containerName: 'ak-renderer-wrapper',
54
54
  containerType: 'inline-size'
@@ -130,7 +130,7 @@ var MediaSingleWithChildren = function MediaSingleWithChildren(props) {
130
130
  var padding = isFullPage ? FullPagePadding * 2 : 0;
131
131
  var calcDimensions = useCallback(function (mediaContainerWidth) {
132
132
  var containerWidth = getMediaContainerWidth(mediaContainerWidth, layout);
133
- var maxWidth = isSSR() && widthAttr && typeof widthAttr === 'number' && widthType === 'pixel' && fg('platform_editor_fix_image_size_diff_during_ssr') ? Math.max(widthAttr, containerWidth) : containerWidth;
133
+ var maxWidth = isSSR() && widthAttr && typeof widthAttr === 'number' && fg('platform_editor_fix_image_size_diff_during_ssr') ? Math.max(widthAttr, containerWidth) : containerWidth;
134
134
  var maxHeight = height / width * maxWidth;
135
135
  var cardDimensions = {
136
136
  width: "".concat(maxWidth, "px"),
@@ -151,7 +151,7 @@ var MediaSingleWithChildren = function MediaSingleWithChildren(props) {
151
151
  cardDimensions: cardDimensions,
152
152
  lineLength: lineLength
153
153
  };
154
- }, [height, isFullWidth, isInsideOfBlockNode, layout, padding, rendererAppearance, width, widthAttr, widthType]);
154
+ }, [height, isFullWidth, isInsideOfBlockNode, layout, padding, rendererAppearance, width, widthAttr]);
155
155
  var originalDimensions = useMemo(function () {
156
156
  return {
157
157
  width: width,
@@ -53,7 +53,7 @@ import { PortalContext } from './PortalContext';
53
53
  export var NORMAL_SEVERITY_THRESHOLD = 2000;
54
54
  export var DEGRADED_SEVERITY_THRESHOLD = 3000;
55
55
  var packageName = "@atlaskit/renderer";
56
- var packageVersion = "117.0.0";
56
+ var packageVersion = "117.0.1";
57
57
  var setAsQueryContainerStyles = css({
58
58
  containerName: 'ak-renderer-wrapper',
59
59
  containerType: 'inline-size'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "117.0.0",
3
+ "version": "117.0.1",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"