import React from "react";
import { ShortcutsContextProvider } from "./../../ricos-context/index.js";
import { EditorKeyboardShortcuts } from "./../../ricos-shortcuts/index.js";
import { createRicosComponentStory } from "./../../wix-rich-content-common/create-ricos-component-story.js";
import { ShortcutsDialog } from "./shortcuts-dialog.js";
const template = () => (storyProps) => {
  const shortcuts = new EditorKeyboardShortcuts({});
  const mockShortcuts = [
    {
      name: "OpenShortcutsSheet",
      description: "Open keyboard shortcuts",
      group: "ShortcutsSheet_Section_General",
      keys: { macOs: "Meta+/", windows: "Ctrl+/" },
      enabled: true,
      showInShortcutSheet: true,
      command: () => "continue"
    },
    {
      name: "EnterToolbar",
      description: "Focus toolbar",
      group: "ShortcutsSheet_Section_ToolbarNavigation",
      keys: { macOs: "Ctrl+T", windows: "Alt+T" },
      enabled: true,
      showInShortcutSheet: true,
      command: () => "continue"
    },
    {
      name: "BOLD",
      description: "Toggle bold",
      group: "ShortcutsSheet_Section_Formatting",
      keys: { macOs: "Meta+B", windows: "Ctrl+B" },
      enabled: true,
      showInShortcutSheet: true,
      command: () => "continue"
    },
    {
      name: "ITALIC",
      description: "Toggle italic",
      group: "ShortcutsSheet_Section_Formatting",
      keys: { macOs: "Meta+I", windows: "Ctrl+I" },
      enabled: true,
      showInShortcutSheet: true,
      command: () => "continue"
    }
  ];
  mockShortcuts.forEach((shortcut) => {
    shortcuts.register(shortcut);
  });
  return createRicosComponentStory({
    component: /* @__PURE__ */ React.createElement(ShortcutsContextProvider, { shortcuts }, /* @__PURE__ */ React.createElement(ShortcutsDialog, null)),
    storyProps
  });
};
const Dialog = template();
Dialog.args = {
  environment: "businessManager"
};
var shortcuts_dialog_stories_default = {
  name: "ShortcutsDialog"
};
export {
  Dialog,
  shortcuts_dialog_stories_default as default
};
//# sourceMappingURL=shortcuts-dialog.stories.js.map
