mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-28 03:00:29 -04:00
chore(stores): remove unused exports and dead code from zustand stores (#4014)
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
export { useFolderStore, useIsFolderSelected, useIsWorkflowSelected } from './store'
|
||||
export type { FolderTreeNode, Workflow, WorkflowFolder } from './types'
|
||||
export type { FolderTreeNode, WorkflowFolder } from './types'
|
||||
|
||||
@@ -301,6 +301,3 @@ export const useIsWorkflowSelected = (workflowId: string) =>
|
||||
|
||||
export const useIsFolderSelected = (folderId: string) =>
|
||||
useFolderStore((state) => state.selectedFolders.has(folderId))
|
||||
|
||||
export const useIsTaskSelected = (taskId: string) =>
|
||||
useFolderStore((state) => state.selectedTasks.has(taskId))
|
||||
|
||||
@@ -1,13 +1,3 @@
|
||||
export interface Workflow {
|
||||
id: string
|
||||
folderId?: string | null
|
||||
name?: string
|
||||
description?: string
|
||||
userId?: string
|
||||
workspaceId?: string
|
||||
[key: string]: any // For additional properties
|
||||
}
|
||||
|
||||
export interface WorkflowFolder {
|
||||
id: string
|
||||
name: string
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
export { useNotificationStore } from './store'
|
||||
export type {
|
||||
AddNotificationParams,
|
||||
Notification,
|
||||
NotificationAction,
|
||||
} from './types'
|
||||
export type { Notification, NotificationAction } from './types'
|
||||
export { sendMothershipMessage } from './utils'
|
||||
|
||||
@@ -7,12 +7,4 @@ export {
|
||||
} from './storage'
|
||||
export { useConsoleEntry, useTerminalConsoleStore, useWorkflowConsoleEntries } from './store'
|
||||
export type { ConsoleEntry, ConsoleStore, ConsoleUpdate } from './types'
|
||||
export {
|
||||
normalizeConsoleError,
|
||||
normalizeConsoleInput,
|
||||
normalizeConsoleOutput,
|
||||
safeConsoleStringify,
|
||||
TERMINAL_CONSOLE_LIMITS,
|
||||
trimConsoleEntries,
|
||||
trimWorkflowConsoleEntries,
|
||||
} from './utils'
|
||||
export { safeConsoleStringify } from './utils'
|
||||
|
||||
@@ -4,14 +4,8 @@ export {
|
||||
consolePersistence,
|
||||
type ExecutionPointer,
|
||||
loadExecutionPointer,
|
||||
normalizeConsoleError,
|
||||
normalizeConsoleInput,
|
||||
normalizeConsoleOutput,
|
||||
safeConsoleStringify,
|
||||
saveExecutionPointer,
|
||||
TERMINAL_CONSOLE_LIMITS,
|
||||
trimConsoleEntries,
|
||||
trimWorkflowConsoleEntries,
|
||||
useConsoleEntry,
|
||||
useTerminalConsoleStore,
|
||||
useWorkflowConsoleEntries,
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
export {
|
||||
getDefaultVariablesDimensions,
|
||||
getVariablesPosition,
|
||||
MAX_VARIABLES_HEIGHT,
|
||||
MAX_VARIABLES_WIDTH,
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
import { create } from 'zustand'
|
||||
import { devtools, persist } from 'zustand/middleware'
|
||||
import type {
|
||||
VariablesDimensions,
|
||||
VariablesModalStore,
|
||||
VariablesPosition,
|
||||
} from '@/stores/variables/types'
|
||||
import type { VariablesModalStore, VariablesPosition } from '@/stores/variables/types'
|
||||
|
||||
/**
|
||||
* Floating variables modal default dimensions.
|
||||
@@ -135,11 +131,3 @@ export const useVariablesModalStore = create<VariablesModalStore>()(
|
||||
{ name: 'variables-modal-store' }
|
||||
)
|
||||
)
|
||||
|
||||
/**
|
||||
* Get default floating variables modal dimensions.
|
||||
*/
|
||||
export const getDefaultVariablesDimensions = (): VariablesDimensions => ({
|
||||
width: DEFAULT_WIDTH,
|
||||
height: DEFAULT_HEIGHT,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user