🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@react-stately/tree

Package Overview
Dependencies
Maintainers
2
Versions
1008
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-58122b179-250527

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-56e575731-241121",
"version": "3.0.0-nightly-58122b179-250527",
"description": "Spectrum UI components in React",

@@ -9,3 +9,7 @@ "license": "Apache-2.0",

"exports": {
"types": "./dist/types.d.ts",
"source": "./src/index.ts",
"types": [
"./dist/types.d.ts",
"./src/index.ts"
],
"import": "./dist/import.mjs",

@@ -26,6 +30,6 @@ "require": "./dist/main.js"

"dependencies": {
"@react-stately/collections": "^3.0.0-nightly-56e575731-241121",
"@react-stately/selection": "^3.0.0-nightly-56e575731-241121",
"@react-stately/utils": "^3.0.0-nightly-56e575731-241121",
"@react-types/shared": "^3.0.0-nightly-56e575731-241121",
"@react-stately/collections": "3.0.0-nightly-58122b179-250527",
"@react-stately/selection": "3.0.0-nightly-58122b179-250527",
"@react-stately/utils": "3.0.0-nightly-58122b179-250527",
"@react-types/shared": "3.0.0-nightly-58122b179-250527",
"@swc/helpers": "^0.5.0"

@@ -38,4 +42,3 @@ },

"access": "public"
},
"stableVersion": "3.8.6"
}
}

@@ -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