{"mappings":";6GA6Ba,IAAAA,EAAWC,EAAK,OAAwB,CACnD,KAAM,WAEN,YAAU,CACR,MAAO,CACL,eAAgB,CAAA,EAChB,mBAAoB,aACpB,oBAAqB,gBAIzB,QAAS,mBAET,SAAU,GAEV,WAAS,CACP,MAAO,CACL,CACE,IAAK,IACN,IAIL,WAAW,CAAE,eAAAC,CAAc,EAAE,CAC3B,MAAO,CAAC,KAAMC,EAAgB,KAAK,QAAQ,eAAgBD,CAAc,EAAG,CAAC,GAG/E,sBAAoB,CAClB,MAAO,CACL,MAAO,IAAM,KAAK,OAAO,SAAS,cAAc,KAAK,IAAI,EACzD,IAAK,IAAM,KAAK,OAAO,SAAS,aAAa,KAAK,IAAI,EACtD,YAAa,IAAM,KAAK,OAAO,SAAS,aAAa,KAAK,IAAI,GAGnE,CAAA","names":["ListItem","Node","HTMLAttributes","mergeAttributes"],"sources":["../esm/npm/@tiptap/extension-list-item@2.27.3/node_modules/@tiptap/extension-list-item/src/list-item.ts"],"sourcesContent":["import { mergeAttributes, Node } from '@tiptap/core'\n\nexport interface ListItemOptions {\n  /**\n   * The HTML attributes for a list item node.\n   * @default {}\n   * @example { class: 'foo' }\n   */\n  HTMLAttributes: Record\u003cstring, any\u003e,\n\n  /**\n   * The node type for bulletList nodes\n   * @default 'bulletList'\n   * @example 'myCustomBulletList'\n   */\n  bulletListTypeName: string\n\n  /**\n   * The node type for orderedList nodes\n   * @default 'orderedList'\n   * @example 'myCustomOrderedList'\n   */\n  orderedListTypeName: string\n}\n\n/**\n * This extension allows you to create list items.\n * @see https://www.tiptap.dev/api/nodes/list-item\n */\nexport const ListItem = Node.create\u003cListItemOptions\u003e({\n  name: 'listItem',\n\n  addOptions() {\n    return {\n      HTMLAttributes: {},\n      bulletListTypeName: 'bulletList',\n      orderedListTypeName: 'orderedList',\n    }\n  },\n\n  content: 'paragraph block*',\n\n  defining: true,\n\n  parseHTML() {\n    return [\n      {\n        tag: 'li',\n      },\n    ]\n  },\n\n  renderHTML({ HTMLAttributes }) {\n    return ['li', mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0]\n  },\n\n  addKeyboardShortcuts() {\n    return {\n      Enter: () =\u003e this.editor.commands.splitListItem(this.name),\n      Tab: () =\u003e this.editor.commands.sinkListItem(this.name),\n      'Shift-Tab': () =\u003e this.editor.commands.liftListItem(this.name),\n    }\n  },\n})\n"],"version":3}
