feat: introdce store
This commit is contained in:
31
frontend/src/app/canvas/canvasStore.index.ts
Normal file
31
frontend/src/app/canvas/canvasStore.index.ts
Normal file
@@ -0,0 +1,31 @@
|
||||
/**
|
||||
* Canvas store: centralized state + commands + selectors.
|
||||
* Entry point for store usage.
|
||||
*/
|
||||
|
||||
export {
|
||||
getCanvasStore,
|
||||
dispatchCanvasCommand,
|
||||
useCanvasStore,
|
||||
useCanvasStoreDispatch,
|
||||
canvasStore,
|
||||
} from './canvasStore'
|
||||
export type { CanvasStore, CanvasCommand } from './canvasStore'
|
||||
export { initialCanvasStore, canvasStoreReducer } from './canvasStore.reducer'
|
||||
export type { CanvasStore as CanvasStoreState, PathSlice, UISlice, GraphSlice, ConnectionFrom } from './canvasStore.types'
|
||||
export {
|
||||
selectGraph,
|
||||
selectPath,
|
||||
selectUI,
|
||||
selectNodes,
|
||||
selectEdges,
|
||||
selectPathNodeIds,
|
||||
selectPathPausedSegmentNodeIds,
|
||||
selectPathActiveSegmentNodeIds,
|
||||
selectConnectionStatusForEdge,
|
||||
selectPathRoleForNode,
|
||||
selectRenamingNodeId,
|
||||
selectFullscreenNodeId,
|
||||
selectConnectionFrom,
|
||||
} from './canvasStore.selectors'
|
||||
export type { ConnectionPathRole } from './canvasStore.selectors'
|
||||
Reference in New Issue
Block a user