Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
@monokle/tree-navigator
Advanced tools
React library for rendering tree structures based on the Redux store.
Create tree structures based on your Redux state then easily render it in React.
// RTK Listeners setup
export const listenerMiddleware = createListenerMiddleware();
export type AppStartListening = TypedStartListening<RootState, AppDispatch>;
export type AppStopListening = TypedStopListening<RootState, AppDispatch>;
export const startAppListening = listenerMiddleware.startListening as AppStartListening;
export const stopAppListening = listenerMiddleware.stopListening as AppStopListening;
// configure the redux store
const store = configureStore({
reducer: combineReducers({
// add the reducer created by rtk-tree-navigator
...getTreeNavigatorReducer(),
// other reducers...
}),
middleware: getDefaultMiddleware => getDefaultMiddleware().prepend(
listenerMiddleware.middleware
),
});
// rtk-tree-navigator setup
setupTreeNavigators({
startListening: startAppListening,
stopListening: stopAppListening,
dispatch: store.dispatch
})
// create your first tree navigator
export const treeNavigator = createTreeNavigator("Resources");
// register a section
treeNavigator.registerSection("sectionId" {
scope: (state) => state.main.resources,
build: {
label: "Some section
},
items: {
build: scope => scope.resources.map((resource) => {
return {
id: resource.id,
label: resource.name,
props: {
isSelected: resource.isSelected
}
}
}),
}
});
// register a subsection
treeNavigator.registerSection("sectionId.subsectionId", {/*...*/});
// unregister a section
treeNavigator.unregisterSection('id');
// the tree navigator can be rendered by using the Renderer component
<treeNavigator.Renderer />
FAQs
React library for rendering tree structures based on the Redux store.
The npm package @monokle/tree-navigator receives a total of 6 weekly downloads. As such, @monokle/tree-navigator popularity was classified as not popular.
We found that @monokle/tree-navigator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers 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.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
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.