Socket
Socket
Sign inDemoInstall

@react-stately/grid

Package Overview
Dependencies
10
Maintainers
2
Versions
614
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.8.7-nightly.4624 to 3.8.7

6

dist/GridCollection.main.js

@@ -80,3 +80,3 @@

for (let child of node.childNodes){
if (child.type === "cell" && child.parentKey == null) // if child is a cell parent key isn't already established by the collection, match child node to parent row
if (child.type === 'cell' && child.parentKey == null) // if child is a cell parent key isn't already established by the collection, match child node to parent row
child.parentKey = node.key;

@@ -105,4 +105,4 @@ childKeys.add(child.key);

level: 0,
key: "row-" + i,
type: "row",
key: 'row-' + i,
type: 'row',
value: undefined,

@@ -109,0 +109,0 @@ hasChildNodes: true,

@@ -74,3 +74,3 @@ /*

for (let child of node.childNodes){
if (child.type === "cell" && child.parentKey == null) // if child is a cell parent key isn't already established by the collection, match child node to parent row
if (child.type === 'cell' && child.parentKey == null) // if child is a cell parent key isn't already established by the collection, match child node to parent row
child.parentKey = node.key;

@@ -99,4 +99,4 @@ childKeys.add(child.key);

level: 0,
key: "row-" + i,
type: "row",
key: 'row-' + i,
type: 'row',
value: undefined,

@@ -103,0 +103,0 @@ hasChildNodes: true,

@@ -23,8 +23,8 @@ var $5Cus8$reactstatelycollections = require("@react-stately/collections");

// If focusMode is cell and an item is focused, focus a child cell instead.
if (focusMode === "cell" && key != null) {
if (focusMode === 'cell' && key != null) {
let item = collection.getItem(key);
if ((item === null || item === void 0 ? void 0 : item.type) === "item") {
if ((item === null || item === void 0 ? void 0 : item.type) === 'item') {
var _getLastItem, _getFirstItem;
let children = (0, $5Cus8$reactstatelycollections.getChildNodes)(item, collection);
if (child === "last") key = (_getLastItem = (0, $5Cus8$reactstatelycollections.getLastItem)(children)) === null || _getLastItem === void 0 ? void 0 : _getLastItem.key;
if (child === 'last') key = (_getLastItem = (0, $5Cus8$reactstatelycollections.getLastItem)(children)) === null || _getLastItem === void 0 ? void 0 : _getLastItem.key;
else key = (_getFirstItem = (0, $5Cus8$reactstatelycollections.getFirstItem)(children)) === null || _getFirstItem === void 0 ? void 0 : _getFirstItem.key;

@@ -44,3 +44,3 @@ }

const node = cachedCollection.current.getItem(selectionState.focusedKey);
const parentNode = node.parentKey != null && (node.type === "cell" || node.type === "rowheader" || node.type === "column") ? cachedCollection.current.getItem(node.parentKey) : node;
const parentNode = node.parentKey != null && (node.type === 'cell' || node.type === 'rowheader' || node.type === 'column') ? cachedCollection.current.getItem(node.parentKey) : node;
const cachedRows = cachedCollection.current.rows;

@@ -52,3 +52,3 @@ const rows = collection.rows;

while(index >= 0){
if (!selectionManager.isDisabled(rows[index].key) && rows[index].type !== "headerrow") {
if (!selectionManager.isDisabled(rows[index].key) && rows[index].type !== 'headerrow') {
newRow = rows[index];

@@ -55,0 +55,0 @@ break;

@@ -17,8 +17,8 @@ import {getChildNodes as $7nPCv$getChildNodes, getLastItem as $7nPCv$getLastItem, getFirstItem as $7nPCv$getFirstItem} from "@react-stately/collections";

// If focusMode is cell and an item is focused, focus a child cell instead.
if (focusMode === "cell" && key != null) {
if (focusMode === 'cell' && key != null) {
let item = collection.getItem(key);
if ((item === null || item === void 0 ? void 0 : item.type) === "item") {
if ((item === null || item === void 0 ? void 0 : item.type) === 'item') {
var _getLastItem, _getFirstItem;
let children = (0, $7nPCv$getChildNodes)(item, collection);
if (child === "last") key = (_getLastItem = (0, $7nPCv$getLastItem)(children)) === null || _getLastItem === void 0 ? void 0 : _getLastItem.key;
if (child === 'last') key = (_getLastItem = (0, $7nPCv$getLastItem)(children)) === null || _getLastItem === void 0 ? void 0 : _getLastItem.key;
else key = (_getFirstItem = (0, $7nPCv$getFirstItem)(children)) === null || _getFirstItem === void 0 ? void 0 : _getFirstItem.key;

@@ -38,3 +38,3 @@ }

const node = cachedCollection.current.getItem(selectionState.focusedKey);
const parentNode = node.parentKey != null && (node.type === "cell" || node.type === "rowheader" || node.type === "column") ? cachedCollection.current.getItem(node.parentKey) : node;
const parentNode = node.parentKey != null && (node.type === 'cell' || node.type === 'rowheader' || node.type === 'column') ? cachedCollection.current.getItem(node.parentKey) : node;
const cachedRows = cachedCollection.current.rows;

@@ -46,3 +46,3 @@ const rows = collection.rows;

while(index >= 0){
if (!selectionManager.isDisabled(rows[index].key) && rows[index].type !== "headerrow") {
if (!selectionManager.isDisabled(rows[index].key) && rows[index].type !== 'headerrow') {
newRow = rows[index];

@@ -49,0 +49,0 @@ break;

{
"name": "@react-stately/grid",
"version": "3.8.7-nightly.4624+d80999e89",
"version": "3.8.7",
"description": "Spectrum UI components in React",

@@ -25,6 +25,6 @@ "license": "Apache-2.0",

"dependencies": {
"@react-stately/collections": "3.0.0-nightly.2912+d80999e89",
"@react-stately/selection": "3.0.0-nightly.2912+d80999e89",
"@react-types/grid": "3.2.6-nightly.4624+d80999e89",
"@react-types/shared": "3.0.0-nightly.2912+d80999e89",
"@react-stately/collections": "^3.10.7",
"@react-stately/selection": "^3.15.1",
"@react-types/grid": "^3.2.6",
"@react-types/shared": "^3.23.1",
"@swc/helpers": "^0.5.0"

@@ -38,3 +38,3 @@ },

},
"gitHead": "d80999e897b4d4db9fcfb4e9b8fcdc9fdd700882"
"gitHead": "b77d7d594dff4dcfb5359bffbcfd18142b146433"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc