Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@glideapps/glide-data-grid

Package Overview
Dependencies
Maintainers
8
Versions
294
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@glideapps/glide-data-grid - npm Package Compare versions

Comparing version 2.2.5 to 2.2.6

.devcontainer/devcontainer.json

11

dist/js/data-editor/data-editor.js

@@ -581,4 +581,6 @@ "use strict";

var updateSelectedCell = React.useCallback(function (col, row) {
var fromEditingTrailingRow = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
var rowMax = mangledRows - (fromEditingTrailingRow ? 0 : 1);
col = (0, _fp.clamp)(rowMarkerOffset, columns.length, col);
row = (0, _fp.clamp)(0, mangledRows - 1, row);
row = (0, _fp.clamp)(0, rowMax, row);
if (col === (gridSelection === null || gridSelection === void 0 ? void 0 : gridSelection.cell[0]) && row === (gridSelection === null || gridSelection === void 0 ? void 0 : gridSelection.cell[1])) return false;

@@ -660,3 +662,3 @@ setGridSelection({

return true;
}, [rowMarkerOffset, columns, mangledRows, gridSelection === null || gridSelection === void 0 ? void 0 : gridSelection.cell, setGridSelection, rowMarkers, rowMarkerWidth, cellXOffset, cellYOffset, headerHeight, rowHeight, mangledCols]);
}, [mangledRows, rowMarkerOffset, columns, gridSelection === null || gridSelection === void 0 ? void 0 : gridSelection.cell, setGridSelection, rowMarkers, rowMarkerWidth, cellXOffset, cellYOffset, headerHeight, rowHeight, mangledCols]);
var onFinishEditing = React.useCallback(function (newValue, movement) {

@@ -676,5 +678,6 @@ if (gridSelection !== undefined && newValue !== undefined) {

if (gridSelection !== undefined && (movX !== 0 || movY !== 0)) {
updateSelectedCell(gridSelection.cell[0] + movX, gridSelection.cell[1] + movY);
var isEditingTrailingRow = gridSelection.cell[1] === mangledRows - 1 && newValue !== undefined;
updateSelectedCell(gridSelection.cell[0] + movX, gridSelection.cell[1] + movY, isEditingTrailingRow);
}
}, [gridSelection, focus, mangledOnCellEdited, rowMarkerOffset, updateSelectedCell]);
}, [gridSelection, focus, mangledOnCellEdited, rowMarkerOffset, mangledRows, updateSelectedCell]);
var onCellFocused = React.useCallback(function (cell) {

@@ -681,0 +684,0 @@ setGridSelection({

{
"name": "@glideapps/glide-data-grid",
"version": "2.2.5",
"version": "2.2.6",
"description": "Super fast, pure canvas Data Grid Editor",

@@ -5,0 +5,0 @@ "main": "dist/js/index.js",

@@ -17,2 +17,13 @@ # Glide Data Grid

### Setting Up Codespaces
If you'd like to set up glide data grid locally and contribute, the easiest way to get up and running
is to use Codespaces if you have access to it. If you do not, simply cloning the repo and running `npm install` also works!
#### Steps
- Cick the green dropdown labeled code, there should be two tabs: local and codespaces.
- Click on codespaces.
- If this is your first time, then create a new codespace. It will open a new browser tab and build the docker container for it - there will be a button to open the environment in VSCode if you'd prefer to run it that way
- You should see a screen that says `Setting up your codespace` As soon as that's done, you should see a VSCode like UI with files on the left.
- Open a terminal window (you should find it at the top under terminal) and run
`.devcontainer/install.sh`
## Installation

@@ -19,0 +30,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc