@atlaskit/editor-plugin-table 15.0.7 → 15.0.8
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/editor-plugin-table
|
|
2
2
|
|
|
3
|
+
## 15.0.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`925eb6478e9a5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/925eb6478e9a5) -
|
|
8
|
+
Remove overflowY on tables to prevent Y axis scroll bar showing on Windows.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 15.0.7
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -254,7 +254,7 @@ var ResizableTableContainerLegacy = /*#__PURE__*/_react.default.memo(function (_
|
|
|
254
254
|
var calculatedWidth = !node.attrs.width && isCommentEditor ? responsiveContainerWidth : Math.min(tableWidth, responsiveContainerWidth);
|
|
255
255
|
|
|
256
256
|
// Ensure minimum width for usability while respecting container constraints
|
|
257
|
-
var width =
|
|
257
|
+
var width = Math.max(calculatedWidth, Math.min(responsiveContainerWidth * 0.5, 300));
|
|
258
258
|
if (!isResizing) {
|
|
259
259
|
tableWidthRef.current = width;
|
|
260
260
|
}
|
|
@@ -457,7 +457,7 @@ var ResizableTableContainerNext = /*#__PURE__*/_react.default.memo(function (_re
|
|
|
457
457
|
var calculatedWidth = !node.attrs.width && isCommentEditor ? responsiveContainerWidth : Math.min(tableWidth, responsiveContainerWidth);
|
|
458
458
|
|
|
459
459
|
// Ensure minimum width for usability while respecting container constraints
|
|
460
|
-
var width =
|
|
460
|
+
var width = Math.max(calculatedWidth, Math.min(responsiveContainerWidth * 0.5, 300));
|
|
461
461
|
var maxResizerWidth = isCommentEditor ? responsiveContainerWidth : Math.min(responsiveContainerWidth, _consts.TABLE_MAX_WIDTH);
|
|
462
462
|
return {
|
|
463
463
|
width: width,
|
|
@@ -247,7 +247,7 @@ const ResizableTableContainerLegacy = /*#__PURE__*/React.memo(({
|
|
|
247
247
|
const calculatedWidth = !node.attrs.width && isCommentEditor ? responsiveContainerWidth : Math.min(tableWidth, responsiveContainerWidth);
|
|
248
248
|
|
|
249
249
|
// Ensure minimum width for usability while respecting container constraints
|
|
250
|
-
const width =
|
|
250
|
+
const width = Math.max(calculatedWidth, Math.min(responsiveContainerWidth * 0.5, 300));
|
|
251
251
|
if (!isResizing) {
|
|
252
252
|
tableWidthRef.current = width;
|
|
253
253
|
}
|
|
@@ -452,7 +452,7 @@ const ResizableTableContainerNext = /*#__PURE__*/React.memo(({
|
|
|
452
452
|
const calculatedWidth = !node.attrs.width && isCommentEditor ? responsiveContainerWidth : Math.min(tableWidth, responsiveContainerWidth);
|
|
453
453
|
|
|
454
454
|
// Ensure minimum width for usability while respecting container constraints
|
|
455
|
-
const width =
|
|
455
|
+
const width = Math.max(calculatedWidth, Math.min(responsiveContainerWidth * 0.5, 300));
|
|
456
456
|
const maxResizerWidth = isCommentEditor ? responsiveContainerWidth : Math.min(responsiveContainerWidth, TABLE_MAX_WIDTH);
|
|
457
457
|
return {
|
|
458
458
|
width,
|
|
@@ -245,7 +245,7 @@ var ResizableTableContainerLegacy = /*#__PURE__*/React.memo(function (_ref4) {
|
|
|
245
245
|
var calculatedWidth = !node.attrs.width && isCommentEditor ? responsiveContainerWidth : Math.min(tableWidth, responsiveContainerWidth);
|
|
246
246
|
|
|
247
247
|
// Ensure minimum width for usability while respecting container constraints
|
|
248
|
-
var width =
|
|
248
|
+
var width = Math.max(calculatedWidth, Math.min(responsiveContainerWidth * 0.5, 300));
|
|
249
249
|
if (!isResizing) {
|
|
250
250
|
tableWidthRef.current = width;
|
|
251
251
|
}
|
|
@@ -448,7 +448,7 @@ var ResizableTableContainerNext = /*#__PURE__*/React.memo(function (_ref5) {
|
|
|
448
448
|
var calculatedWidth = !node.attrs.width && isCommentEditor ? responsiveContainerWidth : Math.min(tableWidth, responsiveContainerWidth);
|
|
449
449
|
|
|
450
450
|
// Ensure minimum width for usability while respecting container constraints
|
|
451
|
-
var width =
|
|
451
|
+
var width = Math.max(calculatedWidth, Math.min(responsiveContainerWidth * 0.5, 300));
|
|
452
452
|
var maxResizerWidth = isCommentEditor ? responsiveContainerWidth : Math.min(responsiveContainerWidth, TABLE_MAX_WIDTH);
|
|
453
453
|
return {
|
|
454
454
|
width: width,
|