import { TIPTAP_GALLERY_TYPE } from "./../../ricos-content/index.js";
import { createRicosNodeExtension } from "./../../plugin-commons/index.js";
import { Gallery as Component } from "./component.js";
const name = TIPTAP_GALLERY_TYPE;
const tiptapExtensions = [
  createRicosNodeExtension({
    name,
    groups: ["spoilerable", "overlay", "draggable", "not-overtypable"],
    type: "react-node",
    reconfigure: (config, _extensions, _props, settings) => ({
      ...config,
      addOptions: () => settings
    }),
    Component,
    createExtensionConfig() {
      return {
        name: this.name,
        group: "block smartBlockCellContent layoutCellContent collapsibleListItemBodyContent listItemFirstChildContent listItemSecondChildContent",
        selectable: true,
        draggable: true,
        addAttributes: () => ({
          containerData: null,
          items: null,
          options: null,
          disableExpand: null,
          disableDownload: null,
          loading: {
            default: false
          },
          loadingPercentage: null
        }),
        addCommands() {
          return {};
        }
      };
    }
  })
];
export {
  tiptapExtensions
};
//# sourceMappingURL=tiptap.js.map
