sort imports (#6094)

Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
Jess Frazelle
2025-04-01 14:20:42 -07:00
committed by GitHub
parent ee20a09e7e
commit 2fc8cb5376
342 changed files with 3008 additions and 2699 deletions

View File

@ -1,20 +1,21 @@
import { useEffect } from 'react'
import { AnyStateMachine, Actor, StateFrom, EventFrom } from 'xstate'
import { createMachineCommand } from '../lib/createMachineCommand'
import { modelingMachine } from 'machines/modelingMachine'
import { authMachine } from 'machines/authMachine'
import { settingsMachine } from 'machines/settingsMachine'
import { projectsMachine } from 'machines/projectsMachine'
import { useAppState } from 'AppState'
import { useNetworkContext } from 'hooks/useNetworkContext'
import { NetworkHealthState } from 'hooks/useNetworkStatus'
import { useKclContext } from 'lang/KclProvider'
import {
Command,
StateMachineCommandSetConfig,
StateMachineCommandSetSchema,
} from 'lib/commandTypes'
import { useKclContext } from 'lang/KclProvider'
import { useNetworkContext } from 'hooks/useNetworkContext'
import { NetworkHealthState } from 'hooks/useNetworkStatus'
import { useAppState } from 'AppState'
import { authMachine } from 'machines/authMachine'
import { commandBarActor } from 'machines/commandBarMachine'
import { modelingMachine } from 'machines/modelingMachine'
import { projectsMachine } from 'machines/projectsMachine'
import { settingsMachine } from 'machines/settingsMachine'
import { useEffect } from 'react'
import { Actor, AnyStateMachine, EventFrom, StateFrom } from 'xstate'
import { createMachineCommand } from '../lib/createMachineCommand'
// This might not be necessary, AnyStateMachine from xstate is working
export type AllMachines =
@ -25,7 +26,7 @@ export type AllMachines =
interface UseStateMachineCommandsArgs<
T extends AllMachines,
S extends StateMachineCommandSetSchema<T>
S extends StateMachineCommandSetSchema<T>,
> {
machineId: T['id']
state: StateFrom<T>
@ -38,7 +39,7 @@ interface UseStateMachineCommandsArgs<
export default function useStateMachineCommands<
T extends AnyStateMachine,
S extends StateMachineCommandSetSchema<T>
S extends StateMachineCommandSetSchema<T>,
>({
machineId,
state,