Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
react-accessible-tree
Advanced tools
An accessible-tree component. With full keyboard and screen reader supports: https://www.w3.org/TR/wai-aria-practices/examples/treeview/treeview-2/treeview-2a.html
An accessible-tree component. With full keyboard and screen reader supports: https://www.w3.org/TR/wai-aria-practices/examples/treeview/treeview-2/treeview-2a.html
Example
import * as React from "react";
import { ITreeNode, ReactAccessibleTree } from "../src";
export const Food: React.FunctionComponent = () => {
const [treeData, setTreeData] = React.useState<ITreeNode[]>([
{
title: <h3>Fruits</h3>,
id: "fruits",
searchKeys: ["fruits"],
children: [
{
title: <div>Oranges</div>,
id: "oranges",
searchKeys: ["oranges"],
children: []
},
{
title: (
<a href="https://en.wikipedia.org/wiki/Pineapple">Pineapples</a>
),
id: "pineapple",
searchKeys: ["pineapple"],
children: []
},
{
title: <div>Apples</div>,
id: "apple",
searchKeys: ["apple"],
children: [
{
id: "McIntosh",
title: (
<a href="https://en.wikipedia.org/wiki/McIntosh_%28apple%29">
McIntosh
</a>
),
searchKeys: ["McIntosh"],
children: []
},
{
id: "Granny Smith",
title: (
<a href="https://en.wikipedia.org/wiki/Granny_Smith">
Granny Smith
</a>
),
searchKeys: ["Granny", "Smith"],
children: []
},
{
id: "Fuji",
title: (
<a href="https://en.wikipedia.org/wiki/Fuji_(apple)">Fuji</a>
),
searchKeys: ["Fuji"],
children: []
}
]
},
{
title: <a href="https://en.wikipedia.org/wiki/Banana">Bananas</a>,
id: "bananas",
searchKeys: ["bananas"],
children: []
}
]
},
{
id: "vegetables",
title: <h3>Vegetables</h3>,
searchKeys: ["vegetables"],
children: [
{
id: "Podded Vegetables",
title: "Podded Vegetables",
searchKeys: ["Podded Vegetables"],
children: [
{
title: <a href="https://en.wikipedia.org/wiki/Lentil">Lentil</a>,
id: "lentil",
searchKeys: ["lentil"],
children: []
},
{
title: (
<a href="https://en.wikipedia.org/wiki/Pea" role="link">
Pea
</a>
),
id: "pea",
searchKeys: ["pea"],
children: []
},
{
title: <a href="https://en.wikipedia.org/wiki/Peanut">Peanut</a>,
id: "peanut",
searchKeys: ["peanut"],
children: []
}
]
},
{
id: "Bulb and Stem Vegetables",
title: "Bulb and Stem Vegetables",
searchKeys: ["Bulb and Stem Vegetables"],
children: [
{
title: (
<a href="https://en.wikipedia.org/wiki/Asparagus">Asparagus</a>
),
id: "Asparagus",
searchKeys: ["Asparagus"],
children: []
},
{
title: <a href="https://en.wikipedia.org/wiki/Celery">Celery</a>,
id: "Celeryea",
searchKeys: ["Celery"],
children: []
},
{
title: <a href="https://en.wikipedia.org/wiki/Leek">Leek</a>,
id: "leek",
searchKeys: ["leek"],
children: []
},
{
title: <a href="https://en.wikipedia.org/wiki/Onion">Onion</a>,
id: "Onion",
searchKeys: ["Onion"],
children: []
}
]
},
{
id: "Root and Tuberous Vegetables",
title: "Root and Tuberous Vegetables",
searchKeys: ["Root and Tuberous Vegetables"],
children: [
{
title: <a href="https://en.wikipedia.org/wiki/Carrot">Carrot</a>,
id: "Carrot",
searchKeys: ["Carrot"],
children: []
},
{
title: <a href="https://en.wikipedia.org/wiki/Ginger">Ginger</a>,
id: "Ginger",
searchKeys: ["Ginger"],
children: []
},
{
title: (
<a href="https://en.wikipedia.org/wiki/Parsnip">Parsnip</a>
),
id: "Parsnip",
searchKeys: ["Parsnip"],
children: []
},
{
title: <a href="https://en.wikipedia.org/wiki/Potato">Potato</a>,
id: "Potato",
searchKeys: ["Potato"],
children: []
}
]
}
]
}
]);
const onChange = (nextData: ITreeNode[]): void => {
setTreeData(nextData);
};
return <ReactAccessibleTree treeData={treeData} onChange={onChange} />;
};
FAQs
An accessible-tree component. With full keyboard and screen reader supports: https://www.w3.org/TR/wai-aria-practices/examples/treeview/treeview-2/treeview-2a.html
We found that react-accessible-tree demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.