You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

@react-stately/tree

Package Overview
Dependencies
Maintainers
2
Versions
951
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-stately/tree - npm Package Compare versions

Comparing version

to
3.0.0-nightly-27e5ef1b7-250319

2

dist/types.d.ts

@@ -7,3 +7,3 @@ import { Collection, Key, Node, CollectionStateBase, DisabledBehavior, Expandable, MultipleSelection } from "@react-types/shared";

});
[Symbol.iterator](): Generator<Node<T>, void, undefined>;
[Symbol.iterator](): IterableIterator<Node<T>>;
get size(): number;

@@ -10,0 +10,0 @@ getKeys(): IterableIterator<Key>;

{
"name": "@react-stately/tree",
"version": "3.0.0-nightly-2788d8afd-250205",
"version": "3.0.0-nightly-27e5ef1b7-250319",
"description": "Spectrum UI components in React",

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

"dependencies": {
"@react-stately/collections": "3.0.0-nightly-2788d8afd-250205",
"@react-stately/selection": "3.0.0-nightly-2788d8afd-250205",
"@react-stately/utils": "3.0.0-nightly-2788d8afd-250205",
"@react-types/shared": "3.0.0-nightly-2788d8afd-250205",
"@react-stately/collections": "3.0.0-nightly-27e5ef1b7-250319",
"@react-stately/selection": "3.0.0-nightly-27e5ef1b7-250319",
"@react-stately/utils": "3.0.0-nightly-27e5ef1b7-250319",
"@react-types/shared": "3.0.0-nightly-27e5ef1b7-250319",
"@swc/helpers": "^0.5.0"

@@ -31,0 +31,0 @@ },

@@ -64,15 +64,15 @@ /*

*[Symbol.iterator]() {
*[Symbol.iterator](): IterableIterator<Node<T>> {
yield* this.iterable;
}
get size() {
get size(): number {
return this.keyMap.size;
}
getKeys() {
getKeys(): IterableIterator<Key> {
return this.keyMap.keys();
}
getKeyBefore(key: Key) {
getKeyBefore(key: Key): Key | null {
let node = this.keyMap.get(key);

@@ -82,3 +82,3 @@ return node ? node.prevKey ?? null : null;

getKeyAfter(key: Key) {
getKeyAfter(key: Key): Key | null {
let node = this.keyMap.get(key);

@@ -88,15 +88,15 @@ return node ? node.nextKey ?? null : null;

getFirstKey() {
getFirstKey(): Key | null {
return this.firstKey;
}
getLastKey() {
getLastKey(): Key | null {
return this.lastKey;
}
getItem(key: Key) {
getItem(key: Key): Node<T> | null {
return this.keyMap.get(key) ?? null;
}
at(idx: number) {
at(idx: number): Node<T> | null {
const keys = [...this.getKeys()];

@@ -103,0 +103,0 @@ return this.getItem(keys[idx]);

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