import { createQuickActionsTestkit } from "./../ricos-common-plugins/quick-actions/testkit.js";
import { commonPluginTestkits } from "./../ricos-common-plugins/testkit.js";
import { dataHook } from "./../wix-rich-content-common/index.js";
import { createAiTestkit } from "./../plugin-ai/testkit.js";
import { createAudioTestkit } from "./../plugin-audio/testkit.js";
import {
  createActionButtonTestkit,
  createLinkButtonTestkit
} from "./../plugin-button/testkit.js";
import { createCodeBlockTestkit } from "./../plugin-code-block/testkit.js";
import { createCollapsibleListTestkit } from "./../plugin-collapsible-list/testkit.js";
import { createDividerTestkit } from "./../plugin-divider/testkit.js";
import { createEmojiTestkit } from "./../plugin-emoji/testkit.js";
import { createFileUploadTestkit } from "./../plugin-file-upload/testkit.js";
import { createGalleryTestkit } from "./../plugin-gallery/testkit.js";
import { createGiphyTestkit } from "./../plugin-giphy/testkit.js";
import { createHeadingsTestkit } from "./../plugin-headings/testkit.js";
import { createHtmlTestkit } from "./../plugin-html/testkit.js";
import { createImageTestkit } from "./../plugin-image/testkit.js";
import { createInlineAiTestkit } from "./../plugin-inline-ai/testkit.js";
import { createLinkPreviewTestkit } from "./../plugin-link-preview/testkit.js";
import { createLinkTestkit } from "./../plugin-link/testkit.js";
import { createShapeTestkit } from "./../plugin-shape/testkit.js";
import { createSmartBlockCellTestkit } from "./../plugin-smart-block/cell.testkit.js";
import { createSmartBlockTestkit } from "./../plugin-smart-block/testkit.js";
import { createPollsTestkit } from "./../plugin-social-polls/testkit.js";
import { createSpoilerTestkit } from "./../plugin-spoiler/testkit.js";
import { createTableTestkit } from "./../plugin-table/testkit.js";
import { createSketchTestkit } from "./../plugin-text-color/sketch/testkit.js";
import { createTextColorTestkit } from "./../plugin-text-color/testkit.js";
import { createVerticalEmbedTestkit } from "./../plugin-vertical-embed/testkit.js";
import { createVideoTestkit } from "./../plugin-video/testkit.js";
const createDangerousErrorTestkit = (getBase) => {
  return {
    content: {
      atIndex: (index) => {
        return {
          exists: async () => {
            const errorContent = getBase().$$(dataHook("rendering-error")).get(index);
            return errorContent.exists();
          }
        };
      }
    }
  };
};
const getAllPluginsTestkits = ({ getBase }) => {
  return {
    actionButton: createActionButtonTestkit(getBase),
    ai: createAiTestkit(getBase),
    inlineAi: createInlineAiTestkit(getBase),
    audio: createAudioTestkit(getBase),
    codeBlock: createCodeBlockTestkit(getBase),
    collapsibleList: createCollapsibleListTestkit(getBase),
    divider: createDividerTestkit(getBase),
    emoji: createEmojiTestkit(getBase),
    fileUpload: createFileUploadTestkit(getBase),
    gallery: createGalleryTestkit(getBase),
    gif: createGiphyTestkit(getBase),
    heading: createHeadingsTestkit(getBase),
    html: createHtmlTestkit(getBase),
    image: createImageTestkit(getBase),
    linkButton: createLinkButtonTestkit(getBase),
    linkPreview: createLinkPreviewTestkit(getBase),
    link: createLinkTestkit(getBase),
    poll: createPollsTestkit(getBase),
    quickActions: createQuickActionsTestkit(getBase),
    shape: createShapeTestkit(getBase),
    sketch: createSketchTestkit(getBase),
    spoiler: createSpoilerTestkit(getBase),
    table: createTableTestkit(getBase),
    textColor: createTextColorTestkit(getBase),
    verticalEmbed: createVerticalEmbedTestkit(getBase),
    video: createVideoTestkit(getBase),
    smartBlock: createSmartBlockTestkit(getBase),
    smartBlockCell: createSmartBlockCellTestkit(getBase),
    dangerousError: createDangerousErrorTestkit(getBase),
    // commons
    bulletList: commonPluginTestkits.bulletList(getBase),
    fontSize: commonPluginTestkits.fontSize(getBase),
    blockquote: commonPluginTestkits.blockquote(getBase),
    title: commonPluginTestkits.title(getBase),
    bold: commonPluginTestkits.bold(getBase),
    italic: commonPluginTestkits.italic(getBase),
    selectionHighlight: commonPluginTestkits.selectionHighlight(getBase),
    textAlign: commonPluginTestkits.textAlign(getBase),
    layout: commonPluginTestkits.layout(getBase),
    layoutCell: commonPluginTestkits.layoutCell(getBase),
    lineSpacing: commonPluginTestkits.lineSpacing(getBase),
    strikethrough: commonPluginTestkits.strikethrough(getBase),
    gapSpacer: commonPluginTestkits.gapSpacer(getBase)
  };
};
export {
  getAllPluginsTestkits
};
//# sourceMappingURL=get-all-plugin-testkits.js.map
