import SliderTimelineModel from './SliderTimelineModel.mjs';
import SliderTimelineView from './SliderTimelineView.mjs';
import { installTimelineAction } from './timelineAction.mjs';
import timelinePreprocessor from './preprocessor.mjs';

function install(registers) {
  registers.registerComponentModel(SliderTimelineModel);
  registers.registerComponentView(SliderTimelineView);
  registers.registerSubTypeDefaulter('timeline', function () {
    // Only slider now.
    return 'slider';
  });
  installTimelineAction(registers);
  registers.registerPreprocessor(timelinePreprocessor);
}

export { install };
