react-accessible-treeview
Advanced tools
Comparing version 2.3.1 to 2.3.2
@@ -15,7 +15,7 @@ import React from "react"; | ||
} | ||
export declare type INodeRef = HTMLLIElement | HTMLDivElement; | ||
export declare type INodeRefs = null | React.RefObject<{ | ||
export type INodeRef = HTMLLIElement | HTMLDivElement; | ||
export type INodeRefs = null | React.RefObject<{ | ||
[key: number]: INodeRef; | ||
}>; | ||
export declare type TreeViewAction = { | ||
export type TreeViewAction = { | ||
type: "COLLAPSE"; | ||
@@ -118,5 +118,5 @@ id: number; | ||
export declare const CLICK_ACTIONS: readonly ("SELECT" | "FOCUS" | "EXCLUSIVE_SELECT")[]; | ||
declare type ValueOf<T> = T[keyof T]; | ||
export declare type ClickActions = ValueOf<typeof clickActions>; | ||
declare type ActionableNode = { | ||
type ValueOf<T> = T[keyof T]; | ||
export type ClickActions = ValueOf<typeof clickActions>; | ||
type ActionableNode = { | ||
"aria-selected": boolean | undefined; | ||
@@ -126,3 +126,3 @@ } | { | ||
}; | ||
export declare type LeafProps = ActionableNode & { | ||
export type LeafProps = ActionableNode & { | ||
role: string; | ||
@@ -206,3 +206,3 @@ tabIndex: number; | ||
export declare const NODE_ACTIONS: readonly ("select" | "check")[]; | ||
export declare type NodeAction = ValueOf<typeof nodeActions>; | ||
export type NodeAction = ValueOf<typeof nodeActions>; | ||
export interface ITreeViewProps { | ||
@@ -209,0 +209,0 @@ /** Tree data*/ |
/// <reference types="react" /> | ||
import { INode, INodeRef } from "."; | ||
export declare type EventCallback = <T, E>(event: React.MouseEvent<T, E> | React.KeyboardEvent<T>) => void; | ||
export type EventCallback = <T, E>(event: React.MouseEvent<T, E> | React.KeyboardEvent<T>) => void; | ||
export declare const composeHandlers: (...handlers: EventCallback[]) => EventCallback; | ||
@@ -5,0 +5,0 @@ export declare const difference: (a: Set<number>, b: Set<number>) => Set<number>; |
{ | ||
"name": "react-accessible-treeview", | ||
"description": "A react component that implements the treeview pattern as described by the WAI-ARIA Authoring Practices.", | ||
"version": "2.3.1", | ||
"version": "2.3.2", | ||
"author": "lissitz (https://github.com/lissitz)", | ||
@@ -12,4 +12,4 @@ "main": "dist/react-accessible-treeview.cjs.js", | ||
"prop-types": "^15.7.2", | ||
"react": "^16.8.0 || ^17.0.0", | ||
"react-dom": "^16.8.0 || ^17.0.0" | ||
"react": "^16.8.0 || ^17.0.0 || ^18.0.0", | ||
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0" | ||
}, | ||
@@ -21,9 +21,9 @@ "devDependencies": { | ||
"@babel/preset-react": "^7.0.0", | ||
"@storybook/addon-actions": "^5.1.11", | ||
"@storybook/addon-links": "^5.1.11", | ||
"@storybook/addons": "^5.1.11", | ||
"@storybook/react": "^5.1.11", | ||
"@storybook/addon-actions": "^6.5.16", | ||
"@storybook/addon-links": "^6.5.16", | ||
"@storybook/addons": "^6.5.16", | ||
"@storybook/react": "^6.5.16", | ||
"@testing-library/dom": "^8.16.0", | ||
"@testing-library/jest-dom": "^5.16.4", | ||
"@testing-library/react": "^12.1.5", | ||
"@testing-library/react": "^13.4.0", | ||
"@types/jest": "^28.1.3", | ||
@@ -41,3 +41,3 @@ "@typescript-eslint/eslint-plugin": "^5.30.5", | ||
"eslint-plugin-react": "^7.30.1", | ||
"eslint-plugin-react-hooks": "^2.5.1", | ||
"eslint-plugin-react-hooks": "^4.6.0", | ||
"jest": "^28.1.3", | ||
@@ -47,5 +47,5 @@ "jest-environment-jsdom": "^28.1.3", | ||
"prettier": "^1.18.2", | ||
"react": "^17.0.0", | ||
"react": "^18.2.0", | ||
"react-icons": "^3.7.0", | ||
"react-test-renderer": "^17.0.0", | ||
"react-test-renderer": "^18.2.0", | ||
"rollup": "^1.16.7", | ||
@@ -52,0 +52,0 @@ "rollup-plugin-babel": "^4.3.3", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
80508