import { DraggableHOC } from "./../../_shared/draggable-hoc.js";
import { createRicosFunctionalExtension } from "./../../plugin-commons/index.js";
const draggable = createRicosFunctionalExtension({
  type: "extension",
  groups: [],
  name: "ricos-draggable",
  reconfigure(config, extensions, _ricosProps) {
    const types = extensions.filter((extension) => extension.groups.includes("draggable")).map(({ name }) => name);
    return {
      ...config,
      priority: 70,
      addNodeHoc: () => {
        return {
          nodeTypes: types,
          getNodeHoc: () => DraggableHOC,
          priority: 70
        };
      }
    };
  },
  createExtensionConfig() {
    return {
      name: this.name
    };
  }
});
export {
  draggable
};
//# sourceMappingURL=extension.js.map
