streaksheet
Advanced tools
Comparing version 0.7.6 to 0.7.7
@@ -142,2 +142,8 @@ "use strict"; | ||
if (prevProps.style !== nextProps.style) { | ||
if (prevProps.style.width !== nextProps.style.width || prevProps.style.left !== nextProps.style.left) { | ||
return false; | ||
} | ||
} | ||
return true; | ||
@@ -144,0 +150,0 @@ }); |
@@ -57,4 +57,4 @@ "use strict"; | ||
resetAfterColumnIndex(columnIndex, false); | ||
onResizeColumn === null || onResizeColumn === void 0 ? void 0 : onResizeColumn(column.key, newWidth); | ||
resetAfterColumnIndex(columnIndex); | ||
}, [minimumColumnWidth, onResizeColumn, resetAfterColumnIndex]); | ||
@@ -145,4 +145,4 @@ var columnBounds = (0, _react.useMemo)(function () { | ||
resetAfterColumnIndex(Math.min(columnIndex, targetColumnIndex), false); | ||
onReorderColumn === null || onReorderColumn === void 0 ? void 0 : onReorderColumn(column.key, targetColumnIndex); | ||
resetAfterColumnIndex(Math.min(columnIndex, targetColumnIndex)); | ||
}, | ||
@@ -149,0 +149,0 @@ onDragResizeHandle: function onDragResizeHandle(deltaX) { |
@@ -417,3 +417,4 @@ "use strict"; | ||
event.stopPropagation(); | ||
}, [setCellBeingEdited]); | ||
}, [setCellBeingEdited]); // TODO move to separate file? | ||
var handleGridKeyDown = (0, React.useCallback)(function (event) { | ||
@@ -824,4 +825,4 @@ var key = event.key, | ||
var leftColumnKey = columnAndOverviewData.columns[leftColumnIndex].key; | ||
(_gridRef$current2 = gridRef.current) === null || _gridRef$current2 === void 0 ? void 0 : _gridRef$current2.resetAfterColumnIndex(leftColumnIndex, false); | ||
onSwapColumns(columnKey, leftColumnKey); | ||
(_gridRef$current2 = gridRef.current) === null || _gridRef$current2 === void 0 ? void 0 : _gridRef$current2.resetAfterColumnIndex(leftColumnIndex); | ||
}, | ||
@@ -845,4 +846,4 @@ moveColumnRight: function moveColumnRight(columnKey) { | ||
var rightColumnKey = columnAndOverviewData.columns[rightColumnIndex].key; | ||
(_gridRef$current3 = gridRef.current) === null || _gridRef$current3 === void 0 ? void 0 : _gridRef$current3.resetAfterColumnIndex(columnIndex, false); | ||
onSwapColumns(columnKey, rightColumnKey); | ||
(_gridRef$current3 = gridRef.current) === null || _gridRef$current3 === void 0 ? void 0 : _gridRef$current3.resetAfterColumnIndex(columnIndex); | ||
}, | ||
@@ -849,0 +850,0 @@ refreshRows: function refreshRows() { |
{ | ||
"name": "streaksheet", | ||
"version": "0.7.6", | ||
"version": "0.7.7", | ||
"author": "Chris Cowan <agentme49@gmail.com>", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
347587
3082
0