"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var bulleted_list_exports = {};
__export(bulleted_list_exports, {
  pluginBulletedList: () => pluginBulletedList
});
module.exports = __toCommonJS(bulleted_list_exports);
var import_wix_ui_icons_common = require("@wix/wix-ui-icons-common");
var import_ricos_content = require("./../../ricos-content/index.js");
var import_v1 = require("./../../ricos-schema/legacy/wix/rich_content/v1/index.js");
var import_ricos_types = require("./../../ricos-types/index.js");
var import_is_always_visible = require("./../../_shared/resolvers/is-always-visible.js");
var import_is_bulleted_list_in_selection = require("./../../_shared/resolvers/is-bulleted-list-in-selection.js");
var import_is_node_or_caption_selected = require("./../../_shared/resolvers/is-node-or-caption-selected.js");
var import_bulleted_list_converter = require("./bulleted-list-converter.js");
var import_data_hooks = require("./data-hooks.js");
var import_extension = require("./extension.js");
const pluginBulletedList = {
  type: import_v1.Node_Type.BULLETED_LIST,
  config: {},
  tiptapExtensions: [import_extension.bulletedList],
  pmMarkConverters: [],
  pmNodeConverters: [import_bulleted_list_converter.bulletedListConverter],
  shortcuts: [
    (0, import_ricos_types.createShortcut)({
      name: import_v1.Node_Type.BULLETED_LIST,
      description: "ShortcutsSheet_Formatting_BulletedList",
      keys: { macOs: "Meta+Shift+8", windows: "Ctrl+Shift+8" },
      command({ publicCommands }) {
        publicCommands.setBlockType(import_ricos_content.BULLET_LIST_TYPE);
        return "continue";
      },
      group: "ShortcutsSheet_Section_Formatting",
      enabled: true,
      showInShortcutSheet: true
    })
  ],
  textButtons: [
    {
      id: import_v1.Node_Type.BULLETED_LIST,
      type: "toggle",
      presentation: {
        dataHook: import_data_hooks.TEXT_BUTTON_BULLETED_LIST,
        tooltip: "UnorderedListButton_Tooltip",
        icon: import_wix_ui_icons_common.BulletListThin
      },
      attributes: {
        visible: import_is_always_visible.isAlwaysVisible,
        active: import_is_bulleted_list_in_selection.isBulletedListInSelection,
        disabled: import_is_node_or_caption_selected.isNodeOrCaptionSelected
      },
      command: ({ publicCommands }) => () => {
        publicCommands.setBlockType(import_ricos_content.BULLET_LIST_TYPE);
        return true;
      }
    }
  ],
  getQuickActions: ({ pluginServices }) => [
    {
      id: import_v1.Node_Type.BULLETED_LIST,
      title: "QuickActionsPlugin_ActionTitle_BulletedList",
      icon: pluginServices?.context.isMobile ? import_wix_ui_icons_common.BulletListThin : import_wix_ui_icons_common.BulletListThinSmall,
      section: import_ricos_types.quickActionsModalSections.FormatLayout,
      tags: ["unordered", "points", "items", "dots"],
      command: ({ publicCommands }) => publicCommands.setBlockType(import_ricos_content.BULLET_LIST_TYPE)
    }
  ]
};
//# sourceMappingURL=bulleted-list.js.map
