drizzle-cube
Version:
Drizzle ORM-first semantic layer with Cube.js compatibility. Type-safe analytics and dashboards with SQL injection protection.
14 lines (13 loc) • 1.52 kB
TypeScript
/**
* Zustand Stores - Barrel Export
*
* Centralized state management stores for the drizzle-cube client.
*
* ARCHITECTURE: Instance-based stores
* - Each AnalysisBuilder/Dashboard gets its own Zustand store instance via Context
* - Use `*StoreProvider` to wrap components that need store access
* - Use `use*Store` hook to access state (must be inside provider)
*/
export { AnalysisBuilderStoreProvider, useAnalysisBuilderStore, useAnalysisBuilderStoreApi, createAnalysisBuilderStore, selectCurrentState, selectMetrics, selectBreakdowns, selectFilters, selectChartConfig, selectUIState, selectMultiQueryState, type AnalysisBuilderStore, type AnalysisBuilderStoreState, type AnalysisBuilderStoreActions, type FieldModalMode, type CreateStoreOptions, type AnalysisBuilderStoreProviderProps, type InitialFunnelState, type InitialFlowState, } from './analysisBuilderStore.js';
export { DashboardStoreProvider, useDashboardStore, useDashboardStoreApi, useDashboardStoreOptional, createDashboardStore, selectEditModeState, selectModalState, selectLayoutState, selectDebugData, selectPortletDebugData, selectEditModeActions, selectModalActions, selectLayoutActions, selectDebugDataActions, selectAllActions, type DashboardStore, type DashboardStoreState, type DashboardStoreActions, type PortletDebugDataEntry, type DebugDataEntry as DashboardDebugDataEntry, // Alias to avoid conflict with hooks/queries
type DragState, type CreateDashboardStoreOptions, type DashboardStoreProviderProps, } from './dashboardStore.js';