/** * @license * Copyright Paperbits. All Rights Reserved. * * Use of this source code is governed by a Commercial license that can be found in the LICENSE file and at https://paperbits.io/license/commercial. */ import { IInjectorModule, IInjector } from "@paperbits/common/injection"; import { SectionLayoutSelector } from "./sectionLayoutSelector"; import { SectionHandlers } from "../sectionHandlers"; import { SectionEditor } from "./sectionEditor"; export class SectionEditorModule implements IInjectorModule { public register(injector: IInjector): void { injector.bind("emailSectionLayoutSelector", SectionLayoutSelector); injector.bind("emailSectionEditor", SectionEditor); injector.bindToCollection("widgetHandlers", SectionHandlers, "emailSectionHandler"); } }