You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@react-stately/tree

Package Overview
Dependencies
Maintainers
2
Versions
1069
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-da50cd099-250621

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-d87cc4422-250109",
"version": "3.0.0-nightly-da50cd099-250621",
"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-d87cc4422-250109",
"@react-stately/selection": "3.0.0-nightly-d87cc4422-250109",
"@react-stately/utils": "3.0.0-nightly-d87cc4422-250109",
"@react-types/shared": "3.0.0-nightly-d87cc4422-250109",
"@react-stately/collections": "3.0.0-nightly-da50cd099-250621",
"@react-stately/selection": "3.0.0-nightly-da50cd099-250621",
"@react-stately/utils": "3.0.0-nightly-da50cd099-250621",
"@react-types/shared": "3.0.0-nightly-da50cd099-250621",
"@swc/helpers": "^0.5.0"

@@ -32,0 +36,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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.