@atlaskit/editor-core 187.32.3 → 187.32.5

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,11 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 187.32.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`ee475b14581`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ee475b14581) - Set max width for nested media single node to 100% to make it reponsive to parent width change
8
+
3
9
  ## 187.32.3
4
10
 
5
11
  ### Patch Changes
@@ -154,7 +154,7 @@ var ResizableMediaSingleNext = /*#__PURE__*/function (_React$Component) {
154
154
  return dispatch(tr);
155
155
  }, _mediaSingle.MEDIA_SINGLE_RESIZE_THROTTLE_TIME));
156
156
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "calcMaxWidth", (0, _memoizeOne.default)(function (contentWidth, containerWidth, fullWidthMode) {
157
- if (_this.isNestedNode() || fullWidthMode) {
157
+ if (fullWidthMode) {
158
158
  return contentWidth;
159
159
  }
160
160
  return (0, _mediaSingle.calcMediaSingleMaxWidth)(containerWidth);
@@ -533,7 +533,8 @@ var ResizableMediaSingleNext = /*#__PURE__*/function (_React$Component) {
533
533
  'rich-media-wrapped': layout === 'wrap-left' || layout === 'wrap-right'
534
534
  });
535
535
  var resizerNextClassName = (0, _classnames.default)(className, _styles.resizerStyles);
536
- var maxWidth = this.calcMaxWidth(lineLength, containerWidth, fullWidthMode);
536
+ var maxWidth = this.isNestedNode() ? undefined // fall back to 'max-width: 100%'
537
+ : this.calcMaxWidth(lineLength, containerWidth, fullWidthMode);
537
538
  var minWidth = this.calcMinWidth(isVideoFile, lineLength);
538
539
  return (0, _react2.jsx)("div", {
539
540
  ref: this.saveWrapper,
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.version = exports.nextMajorVersion = exports.name = void 0;
7
7
  var name = "@atlaskit/editor-core";
8
8
  exports.name = name;
9
- var version = "187.32.3";
9
+ var version = "187.32.5";
10
10
  exports.version = version;
11
11
  var nextMajorVersion = function nextMajorVersion() {
12
12
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
@@ -137,7 +137,7 @@ class ResizableMediaSingleNext extends React.Component {
137
137
  return dispatch(tr);
138
138
  }, MEDIA_SINGLE_RESIZE_THROTTLE_TIME));
139
139
  _defineProperty(this, "calcMaxWidth", memoizeOne((contentWidth, containerWidth, fullWidthMode) => {
140
- if (this.isNestedNode() || fullWidthMode) {
140
+ if (fullWidthMode) {
141
141
  return contentWidth;
142
142
  }
143
143
  return calcMediaSingleMaxWidth(containerWidth);
@@ -452,7 +452,8 @@ class ResizableMediaSingleNext extends React.Component {
452
452
  'rich-media-wrapped': layout === 'wrap-left' || layout === 'wrap-right'
453
453
  });
454
454
  const resizerNextClassName = classnames(className, resizerStyles);
455
- const maxWidth = this.calcMaxWidth(lineLength, containerWidth, fullWidthMode);
455
+ const maxWidth = this.isNestedNode() ? undefined // fall back to 'max-width: 100%'
456
+ : this.calcMaxWidth(lineLength, containerWidth, fullWidthMode);
456
457
  const minWidth = this.calcMinWidth(isVideoFile, lineLength);
457
458
  return jsx("div", {
458
459
  ref: this.saveWrapper,
@@ -1,5 +1,5 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "187.32.3";
2
+ export const version = "187.32.5";
3
3
  export const nextMajorVersion = () => {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -147,7 +147,7 @@ var ResizableMediaSingleNext = /*#__PURE__*/function (_React$Component) {
147
147
  return dispatch(tr);
148
148
  }, MEDIA_SINGLE_RESIZE_THROTTLE_TIME));
149
149
  _defineProperty(_assertThisInitialized(_this), "calcMaxWidth", memoizeOne(function (contentWidth, containerWidth, fullWidthMode) {
150
- if (_this.isNestedNode() || fullWidthMode) {
150
+ if (fullWidthMode) {
151
151
  return contentWidth;
152
152
  }
153
153
  return calcMediaSingleMaxWidth(containerWidth);
@@ -526,7 +526,8 @@ var ResizableMediaSingleNext = /*#__PURE__*/function (_React$Component) {
526
526
  'rich-media-wrapped': layout === 'wrap-left' || layout === 'wrap-right'
527
527
  });
528
528
  var resizerNextClassName = classnames(className, resizerStyles);
529
- var maxWidth = this.calcMaxWidth(lineLength, containerWidth, fullWidthMode);
529
+ var maxWidth = this.isNestedNode() ? undefined // fall back to 'max-width: 100%'
530
+ : this.calcMaxWidth(lineLength, containerWidth, fullWidthMode);
530
531
  var minWidth = this.calcMinWidth(isVideoFile, lineLength);
531
532
  return jsx("div", {
532
533
  ref: this.saveWrapper,
@@ -1,5 +1,5 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "187.32.3";
2
+ export var version = "187.32.5";
3
3
  export var nextMajorVersion = function nextMajorVersion() {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "187.32.3",
3
+ "version": "187.32.5",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -105,7 +105,7 @@
105
105
  "@atlaskit/radio": "^5.6.0",
106
106
  "@atlaskit/section-message": "^6.4.0",
107
107
  "@atlaskit/select": "^16.5.0",
108
- "@atlaskit/smart-card": "^26.16.0",
108
+ "@atlaskit/smart-card": "^26.17.0",
109
109
  "@atlaskit/smart-user-picker": "^6.3.0",
110
110
  "@atlaskit/spinner": "^15.5.0",
111
111
  "@atlaskit/status": "^1.3.0",