PHP 8.2.30
Preview: index.cjs.map Size: 3.08 KB
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/@tiptap/extension-blockquote/dist/index.cjs.map

{"version":3,"file":"index.cjs","sources":["../src/blockquote.ts"],"sourcesContent":["import { mergeAttributes, Node, wrappingInputRule } from '@tiptap/core'\n\nexport interface BlockquoteOptions {\n  /**\n   * HTML attributes to add to the blockquote element\n   * @default {}\n   * @example { class: 'foo' }\n   */\n  HTMLAttributes: Record<string, any>,\n}\n\ndeclare module '@tiptap/core' {\n  interface Commands<ReturnType> {\n    blockQuote: {\n      /**\n       * Set a blockquote node\n       */\n      setBlockquote: () => ReturnType,\n      /**\n       * Toggle a blockquote node\n       */\n      toggleBlockquote: () => ReturnType,\n      /**\n       * Unset a blockquote node\n       */\n      unsetBlockquote: () => ReturnType,\n    }\n  }\n}\n\n/**\n * Matches a blockquote to a `>` as input.\n */\nexport const inputRegex = /^\\s*>\\s$/\n\n/**\n * This extension allows you to create blockquotes.\n * @see https://tiptap.dev/api/nodes/blockquote\n */\nexport const Blockquote = Node.create<BlockquoteOptions>({\n\n  name: 'blockquote',\n\n  addOptions() {\n    return {\n      HTMLAttributes: {},\n    }\n  },\n\n  content: 'block+',\n\n  group: 'block',\n\n  defining: true,\n\n  parseHTML() {\n    return [\n      { tag: 'blockquote' },\n    ]\n  },\n\n  renderHTML({ HTMLAttributes }) {\n    return ['blockquote', mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0]\n  },\n\n  addCommands() {\n    return {\n      setBlockquote: () => ({ commands }) => {\n        return commands.wrapIn(this.name)\n      },\n      toggleBlockquote: () => ({ commands }) => {\n        return commands.toggleWrap(this.name)\n      },\n      unsetBlockquote: () => ({ commands }) => {\n        return commands.lift(this.name)\n      },\n    }\n  },\n\n  addKeyboardShortcuts() {\n    return {\n      'Mod-Shift-b': () => this.editor.commands.toggleBlockquote(),\n    }\n  },\n\n  addInputRules() {\n    return [\n      wrappingInputRule({\n        find: inputRegex,\n        type: this.type,\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IAAI,CAAC,IAAI;aAChB,CAAC;SACH;KACF;AACF,CAAA;;;;;;"}

Directory Contents

Dirs: 0 × Files: 10

Name Size Perms Modified Actions
1006 B lrw-r--r-- 2026-02-28 00:28:00
Edit Download
550 B lrw-r--r-- 2026-02-28 00:27:14
Edit Download
1.58 KB lrw-r--r-- 2026-02-28 00:26:34
Edit Download
3.08 KB lrw-r--r-- 2026-02-28 00:27:24
Edit Download
141 B lrw-r--r-- 2026-02-28 00:28:08
Edit Download
189 B lrw-r--r-- 2026-02-28 00:27:32
Edit Download
1.49 KB lrw-r--r-- 2026-02-28 00:26:44
Edit Download
3.03 KB lrw-r--r-- 2026-02-28 00:27:36
Edit Download
2.07 KB lrw-r--r-- 2026-02-28 00:26:54
Edit Download
3.09 KB lrw-r--r-- 2026-02-28 00:27:44
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).