import { store } from '@things-factory/shell'
import { ADD_MODELLER_EDITORS } from '@things-factory/modeller-ui'

import './parameter-editor/camera-setting-editor'
import './parameter-editor/camera-calibration-editor'
import './parameter-editor/camera-roi-editor'
import './parameter-editor/pose-editor'
import './parameter-editor/offset-pose-editor'
import './parameter-editor/offset-joints-editor'
import './parameter-editor/offset-pose-simple-editor'
import './parameter-editor/handeye-calibration-editor'
import './parameter-editor/realsense-camera-setting-editor'
import './parameter-editor/pose-program-editor'
import './parameter-editor/workspace-status-editor'
import './parameter-editor/handeye-config-editor'

export default function bootstrap() {
  store.dispatch({
    type: ADD_MODELLER_EDITORS,
    editors: {
      pose: 'pose-editor',
      'offset-pose': 'offset-pose-editor',
      'offset-pose-simple': 'offset-pose-simple-editor',
      'pose-program': 'pose-program-editor',
      'camera-setting': 'camera-setting-editor',
      'camera-calibration': 'camera-calibration-editor',
      'camera-roi': 'camera-roi-editor',
      'handeye-config': 'handeye-config-editor',
      'handeye-calibration': 'handeye-calibration-editor',
      'realsense-camera-setting': 'realsense-camera-setting-editor',
      'workspace-status': 'workspace-status-editor',
      'offset-joints': 'offset-joints-editor'
    }
  })
}
