@pie-element/shared-editor-runtime 0.1.3-next.20261006160832 → 0.1.3-next.20261019151920

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/dist/browser/{dist-CbvLhouk.js → dist-1Ah9gEL8.js} +315 -290
  2. package/dist/browser/dist-1Ah9gEL8.js.map +1 -0
  3. package/dist/browser/{dist-Pg4oVkv2.js → dist-BVA3Sgbc.js} +66 -57
  4. package/dist/browser/dist-BVA3Sgbc.js.map +1 -0
  5. package/dist/browser/{dist-BLT2aMxu.js → dist-C2dWnbCz.js} +9 -18
  6. package/dist/browser/dist-C2dWnbCz.js.map +1 -0
  7. package/dist/browser/{dist-DwhlRAyY.js → dist-COqKtKEY.js} +27 -20
  8. package/dist/browser/dist-COqKtKEY.js.map +1 -0
  9. package/dist/browser/{dist-CJhbhuk0.js → dist-C_bRf4Tj.js} +17 -17
  10. package/dist/browser/dist-C_bRf4Tj.js.map +1 -0
  11. package/dist/browser/prosemirror-state/index.js +1 -2
  12. package/dist/browser/tiptap-core/index.js +1 -2
  13. package/dist/browser/tiptap-extension-character-count/index.js +1 -1
  14. package/dist/browser/tiptap-extension-character-count/index.js.map +1 -1
  15. package/dist/browser/tiptap-extension-image/index.js +6 -10
  16. package/dist/browser/tiptap-extension-image/index.js.map +1 -1
  17. package/dist/browser/tiptap-extension-list-item/index.js +1 -1
  18. package/dist/browser/tiptap-extension-list-item/index.js.map +1 -1
  19. package/dist/browser/tiptap-extension-placeholder/index.js +1 -1
  20. package/dist/browser/tiptap-extension-placeholder/index.js.map +1 -1
  21. package/dist/browser/tiptap-extension-subscript/index.js +1 -1
  22. package/dist/browser/tiptap-extension-subscript/index.js.map +1 -1
  23. package/dist/browser/tiptap-extension-superscript/index.js +1 -1
  24. package/dist/browser/tiptap-extension-superscript/index.js.map +1 -1
  25. package/dist/browser/tiptap-extension-table/index.js +1 -2
  26. package/dist/browser/tiptap-extension-table-cell/index.js +1 -1
  27. package/dist/browser/tiptap-extension-table-cell/index.js.map +1 -1
  28. package/dist/browser/tiptap-extension-table-header/index.js +1 -1
  29. package/dist/browser/tiptap-extension-table-header/index.js.map +1 -1
  30. package/dist/browser/tiptap-extension-table-row/index.js +1 -1
  31. package/dist/browser/tiptap-extension-table-row/index.js.map +1 -1
  32. package/dist/browser/tiptap-extension-text-align/index.js +1 -1
  33. package/dist/browser/tiptap-extension-text-align/index.js.map +1 -1
  34. package/dist/browser/tiptap-extension-text-style/index.js +1 -1
  35. package/dist/browser/tiptap-extension-text-style/index.js.map +1 -1
  36. package/dist/browser/tiptap-extensions/index.js +1 -2
  37. package/dist/browser/tiptap-pm-state/index.js +1 -2
  38. package/dist/browser/tiptap-starter-kit/index.js +6 -14
  39. package/dist/browser/tiptap-starter-kit/index.js.map +1 -1
  40. package/package.json +1 -1
  41. package/dist/browser/dist-BLT2aMxu.js.map +0 -1
  42. package/dist/browser/dist-CJhbhuk0.js.map +0 -1
  43. package/dist/browser/dist-CbvLhouk.js.map +0 -1
  44. package/dist/browser/dist-DwhlRAyY.js.map +0 -1
  45. package/dist/browser/dist-Pg4oVkv2.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dist-C_bRf4Tj.js","names":["Selection","keydownHandler","isNodeSelection","Decoration","redo","history","isNodeEmpty","undo","getExtensionField","getChangedRanges","DecorationSet","Extension","callOrReturn","dropPoint","PluginKey","TextSelection","Plugin","Slice","Selection$1","NodeSelection","Fragment","dropCursor","DropCursorView","editorView","options","handler","name","prevState","target","pos","$pos","isBlock","rect","editorDOM","editorRect","scaleX","scaleY","before","after","node","nodeRect","top","halfWidth","coords","parent","parentLeft","parentTop","parentScaleX","parentScaleY","timeout","event","disableDropCursor","disabled","point","GapCursor","doc","mapping","other","json","GapBookmark","closedBefore","closedAfter","override","deflt","mustMove","next","d","dir","$cur","inside","needsGap","type","index","gapCursor","drawGapCursor","$anchor","$head","handleKeyDown","\"ArrowLeft\"","arrow","\"ArrowRight\"","\"ArrowUp\"","\"ArrowDown\"","dirStr","axis","sel","state","$start","view","$found","dispatch","handleClick","clickPos","beforeinput","insert","$from","frag","i","tr","CharacterCount","text","word","initialEvaluationDone","limit","autoTrim","initialContentSize","newState","to","transaction","oldSize","newSize","from","Dropcursor","Focus","selection","decorations","isEditable","isFocused","maxLevels","anchor","currentLevel","Gapcursor","context","extension","DEFAULT_DATA_ATTRIBUTE","PLUGIN_KEY","createPlaceholderDecoration","classes","emptyNode","isEmptyDoc","emptyEditor","dataAttribute","placeholder","resolveEmptyNodeClass","emptyNodeClass","props","scanRangeForDecorations","editor","hasAnchor","isEmpty","buildPlaceholderDecorations","resolved","nodeStart","resolveTopLevelRange","nodePos","topLevelPos","toContentRelativeRange","range","getTopLevelBlocksInRange","ranges","offset","nodeEnd","absNodeStart","absNodeEnd","mergeRanges","sorted","a","b","merged","last","current","collectBlocksForChange","change","collectRescanRanges","changes","oldState","clampRange","clampedFrom","updateDecorationsInRanges","existing","decoration","newDecos","createPlaceholderStateField","prev","preparePlaceholderAttribute","attr","createPlaceholderPlugin","useResolvedPath","Placeholder","shouldSyncDomSelection","shouldPreserveSelection","clearDomSelection","_window$getSelection","restoreDomSelection","Selection","skipTrailingNodeMeta","nodeEqualsType","types","TrailingNode","plugin","defaultNode","disabledNodes","value","shouldInsertNodeAtEnd","endPosition","schema","lastNode","UndoRedo"],"sources":["../../../../../node_modules/.bun/prosemirror-dropcursor@1.8.4/node_modules/prosemirror-dropcursor/dist/index.js","../../../../../node_modules/.bun/prosemirror-gapcursor@1.4.1/node_modules/prosemirror-gapcursor/dist/index.js","../../../../../node_modules/.bun/@tiptap+extensions@3.31.4+e39601fe346c19ab/node_modules/@tiptap/extensions/dist/index.js"],"sourcesContent":["import { Plugin } from 'prosemirror-state';\nimport { dropPoint } from 'prosemirror-transform';\n\n/**\nCreate a plugin that, when added to a ProseMirror instance,\ncauses a decoration to show up at the drop position when something\nis dragged over the editor.\n\nNodes may add a `disableDropCursor` property to their spec to\ncontrol the showing of a drop cursor inside them. This may be a\nboolean or a function, which will be called with a view and a\nposition, and should return a boolean.\n*/\nfunction dropCursor(options = {}) {\n return new Plugin({\n view(editorView) { return new DropCursorView(editorView, options); }\n });\n}\nclass DropCursorView {\n constructor(editorView, options) {\n var _a;\n this.editorView = editorView;\n this.cursorPos = null;\n this.element = null;\n this.timeout = -1;\n this.lastDragEvent = null;\n this.width = (_a = options.width) !== null && _a !== void 0 ? _a : 1;\n this.color = options.color === false ? undefined : (options.color || \"black\");\n this.class = options.class;\n this.handlers = [\"dragover\", \"dragend\", \"drop\", \"dragleave\"].map(name => {\n let handler = (e) => { this[name](e); };\n editorView.dom.addEventListener(name, handler);\n return { name, handler };\n });\n }\n destroy() {\n this.setCursor(null);\n this.handlers.forEach(({ name, handler }) => this.editorView.dom.removeEventListener(name, handler));\n }\n update(editorView, prevState) {\n if (this.cursorPos != null && prevState.doc != editorView.state.doc) {\n // if we currently have an on-going drag event\n // we need to update the cursor position again and update the overlay\n if (this.lastDragEvent) {\n let target = this.computeTarget(this.lastDragEvent);\n if (target == this.cursorPos)\n this.updateOverlay();\n else\n this.setCursor(target);\n }\n else {\n this.updateOverlay();\n }\n }\n }\n setCursor(pos) {\n if (pos == this.cursorPos)\n return;\n this.cursorPos = pos;\n if (pos == null) {\n this.element.parentNode.removeChild(this.element);\n this.element = null;\n }\n else {\n this.updateOverlay();\n }\n }\n updateOverlay() {\n let $pos = this.editorView.state.doc.resolve(this.cursorPos);\n let isBlock = !$pos.parent.inlineContent, rect;\n let editorDOM = this.editorView.dom, editorRect = editorDOM.getBoundingClientRect();\n let scaleX = editorRect.width / editorDOM.offsetWidth, scaleY = editorRect.height / editorDOM.offsetHeight;\n if (isBlock) {\n let before = $pos.nodeBefore, after = $pos.nodeAfter;\n if (before || after) {\n let node = this.editorView.nodeDOM(this.cursorPos - (before ? before.nodeSize : 0));\n if (node) {\n let nodeRect = node.getBoundingClientRect();\n let top = before ? nodeRect.bottom : nodeRect.top;\n if (before && after)\n top = (top + this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top) / 2;\n let halfWidth = (this.width / 2) * scaleY;\n rect = { left: nodeRect.left, right: nodeRect.right, top: top - halfWidth, bottom: top + halfWidth };\n }\n }\n }\n if (!rect) {\n let coords = this.editorView.coordsAtPos(this.cursorPos);\n let halfWidth = (this.width / 2) * scaleX;\n rect = { left: coords.left - halfWidth, right: coords.left + halfWidth, top: coords.top, bottom: coords.bottom };\n }\n let parent = this.editorView.dom.offsetParent;\n if (!this.element) {\n this.element = parent.appendChild(document.createElement(\"div\"));\n if (this.class)\n this.element.className = this.class;\n this.element.style.cssText = \"position: absolute; z-index: 50; pointer-events: none;\";\n if (this.color) {\n this.element.style.backgroundColor = this.color;\n }\n }\n this.element.classList.toggle(\"prosemirror-dropcursor-block\", isBlock);\n this.element.classList.toggle(\"prosemirror-dropcursor-inline\", !isBlock);\n let parentLeft, parentTop;\n if (!parent || parent == document.body && getComputedStyle(parent).position == \"static\") {\n parentLeft = -pageXOffset;\n parentTop = -pageYOffset;\n }\n else {\n let rect = parent.getBoundingClientRect();\n let parentScaleX = rect.width / parent.offsetWidth, parentScaleY = rect.height / parent.offsetHeight;\n parentLeft = rect.left - parent.scrollLeft * parentScaleX;\n parentTop = rect.top - parent.scrollTop * parentScaleY;\n }\n this.element.style.left = (rect.left - parentLeft) / scaleX + \"px\";\n this.element.style.top = (rect.top - parentTop) / scaleY + \"px\";\n this.element.style.width = (rect.right - rect.left) / scaleX + \"px\";\n this.element.style.height = (rect.bottom - rect.top) / scaleY + \"px\";\n }\n scheduleRemoval(timeout) {\n clearTimeout(this.timeout);\n this.timeout = setTimeout(() => this.setCursor(null), timeout);\n }\n computeTarget(event) {\n let pos = this.editorView.posAtCoords({ left: event.clientX, top: event.clientY });\n let node = pos && pos.inside >= 0 && this.editorView.state.doc.nodeAt(pos.inside);\n let disableDropCursor = node && node.type.spec.disableDropCursor;\n let disabled = typeof disableDropCursor == \"function\"\n ? disableDropCursor(this.editorView, pos, event)\n : disableDropCursor;\n if (!pos || disabled)\n return null;\n let target = pos.pos;\n if (this.editorView.dragging && this.editorView.dragging.slice) {\n let point = dropPoint(this.editorView.state.doc, target, this.editorView.dragging.slice);\n if (point != null)\n target = point;\n }\n return target;\n }\n dragover(event) {\n if (!this.editorView.editable)\n return;\n this.lastDragEvent = event;\n let target = this.computeTarget(event);\n if (target != null) {\n this.setCursor(target);\n this.scheduleRemoval(5000);\n }\n }\n dragend() {\n this.scheduleRemoval(20);\n }\n drop() {\n this.scheduleRemoval(20);\n }\n dragleave(event) {\n if (!this.editorView.dom.contains(event.relatedTarget))\n this.setCursor(null);\n }\n}\n\nexport { dropCursor };\n","import { keydownHandler } from 'prosemirror-keymap';\nimport { Selection, NodeSelection, TextSelection, Plugin } from 'prosemirror-state';\nimport { Slice, Fragment } from 'prosemirror-model';\nimport { DecorationSet, Decoration } from 'prosemirror-view';\n\n/**\nGap cursor selections are represented using this class. Its\n`$anchor` and `$head` properties both point at the cursor position.\n*/\nclass GapCursor extends Selection {\n /**\n Create a gap cursor.\n */\n constructor($pos) {\n super($pos, $pos);\n }\n map(doc, mapping) {\n let $pos = doc.resolve(mapping.map(this.head));\n return GapCursor.valid($pos) ? new GapCursor($pos) : Selection.near($pos);\n }\n content() { return Slice.empty; }\n eq(other) {\n return other instanceof GapCursor && other.head == this.head;\n }\n toJSON() {\n return { type: \"gapcursor\", pos: this.head };\n }\n /**\n @internal\n */\n static fromJSON(doc, json) {\n if (typeof json.pos != \"number\")\n throw new RangeError(\"Invalid input for GapCursor.fromJSON\");\n return new GapCursor(doc.resolve(json.pos));\n }\n /**\n @internal\n */\n getBookmark() { return new GapBookmark(this.anchor); }\n /**\n @internal\n */\n static valid($pos) {\n let parent = $pos.parent;\n if (parent.inlineContent || !closedBefore($pos) || !closedAfter($pos))\n return false;\n let override = parent.type.spec.allowGapCursor;\n if (override != null)\n return override;\n let deflt = parent.contentMatchAt($pos.index()).defaultType;\n return deflt && deflt.isTextblock;\n }\n /**\n @internal\n */\n static findGapCursorFrom($pos, dir, mustMove = false) {\n search: for (;;) {\n if (!mustMove && GapCursor.valid($pos))\n return $pos;\n let pos = $pos.pos, next = null;\n // Scan up from this position\n for (let d = $pos.depth;; d--) {\n let parent = $pos.node(d);\n if (dir > 0 ? $pos.indexAfter(d) < parent.childCount : $pos.index(d) > 0) {\n next = parent.child(dir > 0 ? $pos.indexAfter(d) : $pos.index(d) - 1);\n break;\n }\n else if (d == 0) {\n return null;\n }\n pos += dir;\n let $cur = $pos.doc.resolve(pos);\n if (GapCursor.valid($cur))\n return $cur;\n }\n // And then down into the next node\n for (;;) {\n let inside = dir > 0 ? next.firstChild : next.lastChild;\n if (!inside) {\n if (next.isAtom && !next.isText && !NodeSelection.isSelectable(next)) {\n $pos = $pos.doc.resolve(pos + next.nodeSize * dir);\n mustMove = false;\n continue search;\n }\n break;\n }\n next = inside;\n pos += dir;\n let $cur = $pos.doc.resolve(pos);\n if (GapCursor.valid($cur))\n return $cur;\n }\n return null;\n }\n }\n}\nGapCursor.prototype.visible = false;\nGapCursor.findFrom = GapCursor.findGapCursorFrom;\nSelection.jsonID(\"gapcursor\", GapCursor);\nclass GapBookmark {\n constructor(pos) {\n this.pos = pos;\n }\n map(mapping) {\n return new GapBookmark(mapping.map(this.pos));\n }\n resolve(doc) {\n let $pos = doc.resolve(this.pos);\n return GapCursor.valid($pos) ? new GapCursor($pos) : Selection.near($pos);\n }\n}\nfunction needsGap(type) {\n return type.isAtom || type.spec.isolating || type.spec.createGapCursor;\n}\nfunction closedBefore($pos) {\n for (let d = $pos.depth; d >= 0; d--) {\n let index = $pos.index(d), parent = $pos.node(d);\n // At the start of this parent, look at next one\n if (index == 0) {\n if (parent.type.spec.isolating)\n return true;\n continue;\n }\n // See if the node before (or its first ancestor) is closed\n for (let before = parent.child(index - 1);; before = before.lastChild) {\n if ((before.childCount == 0 && !before.inlineContent) || needsGap(before.type))\n return true;\n if (before.inlineContent)\n return false;\n }\n }\n // Hit start of document\n return true;\n}\nfunction closedAfter($pos) {\n for (let d = $pos.depth; d >= 0; d--) {\n let index = $pos.indexAfter(d), parent = $pos.node(d);\n if (index == parent.childCount) {\n if (parent.type.spec.isolating)\n return true;\n continue;\n }\n for (let after = parent.child(index);; after = after.firstChild) {\n if ((after.childCount == 0 && !after.inlineContent) || needsGap(after.type))\n return true;\n if (after.inlineContent)\n return false;\n }\n }\n return true;\n}\n\n/**\nCreate a gap cursor plugin. When enabled, this will capture clicks\nnear and arrow-key-motion past places that don't have a normally\nselectable position nearby, and create a gap cursor selection for\nthem. The cursor is drawn as an element with class\n`ProseMirror-gapcursor`. You can either include\n`style/gapcursor.css` from the package's directory or add your own\nstyles to make it visible.\n*/\nfunction gapCursor() {\n return new Plugin({\n props: {\n decorations: drawGapCursor,\n createSelectionBetween(_view, $anchor, $head) {\n return $anchor.pos == $head.pos && GapCursor.valid($head) ? new GapCursor($head) : null;\n },\n handleClick,\n handleKeyDown,\n handleDOMEvents: { beforeinput: beforeinput }\n }\n });\n}\nconst handleKeyDown = keydownHandler({\n \"ArrowLeft\": arrow(\"horiz\", -1),\n \"ArrowRight\": arrow(\"horiz\", 1),\n \"ArrowUp\": arrow(\"vert\", -1),\n \"ArrowDown\": arrow(\"vert\", 1)\n});\nfunction arrow(axis, dir) {\n const dirStr = axis == \"vert\" ? (dir > 0 ? \"down\" : \"up\") : (dir > 0 ? \"right\" : \"left\");\n return function (state, dispatch, view) {\n let sel = state.selection;\n let $start = dir > 0 ? sel.$to : sel.$from, mustMove = sel.empty;\n if (sel instanceof TextSelection) {\n if (!view.endOfTextblock(dirStr) || $start.depth == 0)\n return false;\n mustMove = false;\n $start = state.doc.resolve(dir > 0 ? $start.after() : $start.before());\n }\n let $found = GapCursor.findGapCursorFrom($start, dir, mustMove);\n if (!$found)\n return false;\n if (dispatch)\n dispatch(state.tr.setSelection(new GapCursor($found)));\n return true;\n };\n}\nfunction handleClick(view, pos, event) {\n if (!view || !view.editable)\n return false;\n let $pos = view.state.doc.resolve(pos);\n if (!GapCursor.valid($pos))\n return false;\n let clickPos = view.posAtCoords({ left: event.clientX, top: event.clientY });\n if (clickPos && clickPos.inside > -1 && NodeSelection.isSelectable(view.state.doc.nodeAt(clickPos.inside)))\n return false;\n view.dispatch(view.state.tr.setSelection(new GapCursor($pos)));\n return true;\n}\n// This is a hack that, when a composition starts while a gap cursor\n// is active, quickly creates an inline context for the composition to\n// happen in, to avoid it being aborted by the DOM selection being\n// moved into a valid position.\nfunction beforeinput(view, event) {\n if (event.inputType != \"insertCompositionText\" || !(view.state.selection instanceof GapCursor))\n return false;\n let { $from } = view.state.selection;\n let insert = $from.parent.contentMatchAt($from.index()).findWrapping(view.state.schema.nodes.text);\n if (!insert)\n return false;\n let frag = Fragment.empty;\n for (let i = insert.length - 1; i >= 0; i--)\n frag = Fragment.from(insert[i].createAndFill(null, frag));\n let tr = view.state.tr.replace($from.pos, $from.pos, new Slice(frag, 0, 0));\n tr.setSelection(TextSelection.near(tr.doc.resolve($from.pos + 1)));\n view.dispatch(tr);\n return false;\n}\nfunction drawGapCursor(state) {\n if (!(state.selection instanceof GapCursor))\n return null;\n let node = document.createElement(\"div\");\n node.className = \"ProseMirror-gapcursor\";\n return DecorationSet.create(state.doc, [Decoration.widget(state.selection.head, node, { key: \"gapcursor\" })]);\n}\n\nexport { GapCursor, gapCursor };\n","import { Extension, callOrReturn, getChangedRanges, getExtensionField, isNodeEmpty, isNodeSelection } from \"@tiptap/core\";\nimport { Plugin, PluginKey } from \"@tiptap/pm/state\";\nimport { dropCursor } from \"@tiptap/pm/dropcursor\";\nimport { Decoration, DecorationSet } from \"@tiptap/pm/view\";\nimport { gapCursor } from \"@tiptap/pm/gapcursor\";\nimport { history, redo, undo } from \"@tiptap/pm/history\";\n//#region src/character-count/character-count.ts\n/**\n* This extension allows you to count the characters and words of your document.\n* @see https://tiptap.dev/api/extensions/character-count\n*/\nconst CharacterCount = Extension.create({\n\tname: \"characterCount\",\n\taddOptions() {\n\t\treturn {\n\t\t\tlimit: null,\n\t\t\tautoTrim: true,\n\t\t\tmode: \"textSize\",\n\t\t\ttextCounter: (text) => text.length,\n\t\t\twordCounter: (text) => text.split(\" \").filter((word) => word !== \"\").length\n\t\t};\n\t},\n\taddStorage() {\n\t\treturn {\n\t\t\tcharacters: () => 0,\n\t\t\twords: () => 0\n\t\t};\n\t},\n\tonBeforeCreate() {\n\t\tthis.storage.characters = (options) => {\n\t\t\tconst node = (options === null || options === void 0 ? void 0 : options.node) || this.editor.state.doc;\n\t\t\tif (((options === null || options === void 0 ? void 0 : options.mode) || this.options.mode) === \"textSize\") {\n\t\t\t\tconst text = node.textBetween(0, node.content.size, void 0, \" \");\n\t\t\t\treturn this.options.textCounter(text);\n\t\t\t}\n\t\t\treturn node.nodeSize;\n\t\t};\n\t\tthis.storage.words = (options) => {\n\t\t\tconst node = (options === null || options === void 0 ? void 0 : options.node) || this.editor.state.doc;\n\t\t\tconst text = node.textBetween(0, node.content.size, \" \", \" \");\n\t\t\treturn this.options.wordCounter(text);\n\t\t};\n\t},\n\taddProseMirrorPlugins() {\n\t\tlet initialEvaluationDone = false;\n\t\treturn [new Plugin({\n\t\t\tkey: new PluginKey(\"characterCount\"),\n\t\t\tappendTransaction: (transactions, oldState, newState) => {\n\t\t\t\tif (initialEvaluationDone) return;\n\t\t\t\tconst limit = this.options.limit;\n\t\t\t\tconst autoTrim = this.options.autoTrim;\n\t\t\t\tif (limit === null || limit === void 0 || limit === 0 || autoTrim === false) {\n\t\t\t\t\tinitialEvaluationDone = true;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tconst initialContentSize = this.storage.characters({ node: newState.doc });\n\t\t\t\tif (initialContentSize > limit) {\n\t\t\t\t\tconst over = initialContentSize - limit;\n\t\t\t\t\tconst from = 0;\n\t\t\t\t\tconst to = over;\n\t\t\t\t\tconsole.warn(`[CharacterCount] Initial content exceeded limit of ${limit} characters. Content was automatically trimmed.`);\n\t\t\t\t\tconst tr = newState.tr.deleteRange(from, to);\n\t\t\t\t\tinitialEvaluationDone = true;\n\t\t\t\t\treturn tr;\n\t\t\t\t}\n\t\t\t\tinitialEvaluationDone = true;\n\t\t\t},\n\t\t\tfilterTransaction: (transaction, state) => {\n\t\t\t\tconst limit = this.options.limit;\n\t\t\t\tif (!transaction.docChanged || limit === 0 || limit === null || limit === void 0) return true;\n\t\t\t\tconst oldSize = this.storage.characters({ node: state.doc });\n\t\t\t\tconst newSize = this.storage.characters({ node: transaction.doc });\n\t\t\t\tif (newSize <= limit) return true;\n\t\t\t\tif (oldSize > limit && newSize > limit && newSize <= oldSize) return true;\n\t\t\t\tif (oldSize > limit && newSize > limit && newSize > oldSize) return false;\n\t\t\t\tif (!transaction.getMeta(\"paste\")) return false;\n\t\t\t\tconst pos = transaction.selection.$head.pos;\n\t\t\t\tconst from = pos - (newSize - limit);\n\t\t\t\tconst to = pos;\n\t\t\t\ttransaction.deleteRange(from, to);\n\t\t\t\tif (this.storage.characters({ node: transaction.doc }) > limit) return false;\n\t\t\t\treturn true;\n\t\t\t}\n\t\t})];\n\t}\n});\n//#endregion\n//#region src/drop-cursor/drop-cursor.ts\n/**\n* This extension allows you to add a drop cursor to your editor.\n* A drop cursor is a line that appears when you drag and drop content\n* in-between nodes.\n* @see https://tiptap.dev/api/extensions/dropcursor\n*/\nconst Dropcursor = Extension.create({\n\tname: \"dropCursor\",\n\taddOptions() {\n\t\treturn {\n\t\t\tcolor: \"currentColor\",\n\t\t\twidth: 1,\n\t\t\tclass: void 0\n\t\t};\n\t},\n\taddProseMirrorPlugins() {\n\t\treturn [dropCursor(this.options)];\n\t}\n});\n//#endregion\n//#region src/focus/focus.ts\n/**\n* This extension allows you to add a class to the focused node.\n* @see https://www.tiptap.dev/api/extensions/focus\n*/\nconst Focus = Extension.create({\n\tname: \"focus\",\n\taddOptions() {\n\t\treturn {\n\t\t\tclassName: \"has-focus\",\n\t\t\tmode: \"all\"\n\t\t};\n\t},\n\taddProseMirrorPlugins() {\n\t\treturn [new Plugin({\n\t\t\tkey: new PluginKey(\"focus\"),\n\t\t\tprops: { decorations: ({ doc, selection }) => {\n\t\t\t\tconst { isEditable, isFocused } = this.editor;\n\t\t\t\tconst { anchor } = selection;\n\t\t\t\tconst decorations = [];\n\t\t\t\tif (!isEditable || !isFocused) return DecorationSet.create(doc, []);\n\t\t\t\tlet maxLevels = 0;\n\t\t\t\tif (this.options.mode === \"deepest\") doc.descendants((node, pos) => {\n\t\t\t\t\tif (node.isText) return;\n\t\t\t\t\tif (!(anchor >= pos && anchor <= pos + node.nodeSize - 1)) return false;\n\t\t\t\t\tmaxLevels += 1;\n\t\t\t\t});\n\t\t\t\tlet currentLevel = 0;\n\t\t\t\tdoc.descendants((node, pos) => {\n\t\t\t\t\tif (node.isText) return false;\n\t\t\t\t\tif (!(anchor >= pos && anchor <= pos + node.nodeSize - 1)) return false;\n\t\t\t\t\tcurrentLevel += 1;\n\t\t\t\t\tif (this.options.mode === \"deepest\" && maxLevels - currentLevel > 0 || this.options.mode === \"shallowest\" && currentLevel > 1) return this.options.mode === \"deepest\";\n\t\t\t\t\tdecorations.push(Decoration.node(pos, pos + node.nodeSize, { class: this.options.className }));\n\t\t\t\t});\n\t\t\t\treturn DecorationSet.create(doc, decorations);\n\t\t\t} }\n\t\t})];\n\t}\n});\n//#endregion\n//#region src/gap-cursor/gap-cursor.ts\n/**\n* This extension allows you to add a gap cursor to your editor.\n* A gap cursor is a cursor that appears when you click on a place\n* where no content is present, for example inbetween nodes.\n* @see https://tiptap.dev/api/extensions/gapcursor\n*/\nconst Gapcursor = Extension.create({\n\tname: \"gapCursor\",\n\taddProseMirrorPlugins() {\n\t\treturn [gapCursor()];\n\t},\n\textendNodeSchema(extension) {\n\t\tvar _callOrReturn;\n\t\tconst context = {\n\t\t\tname: extension.name,\n\t\t\toptions: extension.options,\n\t\t\tstorage: extension.storage\n\t\t};\n\t\treturn { allowGapCursor: (_callOrReturn = callOrReturn(getExtensionField(extension, \"allowGapCursor\", context))) !== null && _callOrReturn !== void 0 ? _callOrReturn : null };\n\t}\n});\n//#endregion\n//#region src/placeholder/constants.ts\n/** The default data attribute label */\nconst DEFAULT_DATA_ATTRIBUTE = \"placeholder\";\n/** The plugin key used to store and read the placeholder decoration set */\nconst PLUGIN_KEY = new PluginKey(\"tiptap__placeholder\");\n//#endregion\n//#region src/placeholder/utils/createPlaceholderDecoration.ts\n/**\n* Creates a ProseMirror node decoration that applies a placeholder\n* CSS class and data attribute to an empty node.\n* @param options.editor - The editor instance\n* @param options.pos - The position of the node in the document\n* @param options.node - The ProseMirror node\n* @param options.isEmptyDoc - Whether the entire document is empty\n* @param options.hasAnchor - Whether the selection anchor is within the node\n* @param options.dataAttribute - The data attribute name (e.g. `data-placeholder`)\n* @param options.classes - CSS classes for empty nodes and the empty editor\n* @param options.placeholder - The placeholder text or a function that returns it\n* @returns A ProseMirror node decoration with placeholder classes and data attribute\n*/\nfunction createPlaceholderDecoration(options) {\n\tconst { editor, placeholder, dataAttribute, pos, node, isEmptyDoc, hasAnchor, classes: { emptyNode, emptyEditor } } = options;\n\tconst classes = [emptyNode];\n\tif (isEmptyDoc) classes.push(emptyEditor);\n\treturn Decoration.node(pos, pos + node.nodeSize, {\n\t\tclass: classes.join(\" \"),\n\t\t[dataAttribute]: typeof placeholder === \"function\" ? placeholder({\n\t\t\teditor,\n\t\t\tnode,\n\t\t\tpos,\n\t\t\thasAnchor\n\t\t}) : placeholder\n\t});\n}\n//#endregion\n//#region src/placeholder/utils/buildPlaceholderDecorations.ts\nfunction resolveEmptyNodeClass(emptyNodeClass, props) {\n\treturn typeof emptyNodeClass === \"function\" ? emptyNodeClass(props) : emptyNodeClass;\n}\n/**\n* Scans a document range for empty textblocks that should receive placeholder\n* decorations. Used by the slow path and incremental state updates.\n*/\nfunction scanRangeForDecorations({ editor, options, dataAttribute, doc, selection, from, to }) {\n\tconst { anchor } = selection;\n\tconst decorations = [];\n\tconst isEmptyDoc = editor.isEmpty;\n\tdoc.nodesBetween(from, to, (node, pos) => {\n\t\tconst hasAnchor = anchor >= pos && anchor <= pos + node.nodeSize;\n\t\tconst isEmpty = !node.isLeaf && isNodeEmpty(node);\n\t\tif (!node.type.isTextblock) return options.includeChildren;\n\t\tif ((hasAnchor || !options.showOnlyCurrent) && isEmpty) decorations.push(createPlaceholderDecoration({\n\t\t\teditor,\n\t\t\tisEmptyDoc,\n\t\t\tdataAttribute,\n\t\t\thasAnchor,\n\t\t\tplaceholder: options.placeholder,\n\t\t\tclasses: {\n\t\t\t\temptyEditor: options.emptyEditorClass,\n\t\t\t\temptyNode: resolveEmptyNodeClass(options.emptyNodeClass, {\n\t\t\t\t\teditor,\n\t\t\t\t\tnode,\n\t\t\t\t\tpos,\n\t\t\t\t\thasAnchor\n\t\t\t\t})\n\t\t\t},\n\t\t\tnode,\n\t\t\tpos\n\t\t}));\n\t\treturn options.includeChildren;\n\t});\n\treturn decorations;\n}\n/**\n* Builds the placeholder decorations for the current document state.\n* @param options.editor - The editor instance.\n* @param options.options - The resolved placeholder options.\n* @param options.dataAttribute - The prepared `data-*` attribute name.\n* @param options.doc - The current document node.\n* @param options.selection - The current selection.\n* @returns A decoration set, or `null` when no placeholders should be shown.\n*/\nfunction buildPlaceholderDecorations({ editor, options, dataAttribute, doc, selection }) {\n\tif (!(editor.isEditable || !options.showOnlyWhenEditable)) return null;\n\tconst { anchor } = selection;\n\tconst decorations = [];\n\tconst isEmptyDoc = editor.isEmpty;\n\tif (options.showOnlyCurrent && !options.includeChildren) {\n\t\tconst resolved = doc.resolve(anchor);\n\t\tconst node = resolved.depth > 0 ? resolved.node(1) : resolved.nodeAfter;\n\t\tconst nodeStart = resolved.depth > 0 ? resolved.before(1) : anchor;\n\t\tif (node && node.type.isTextblock && isNodeEmpty(node)) {\n\t\t\tconst hasAnchor = anchor >= nodeStart && anchor <= nodeStart + node.nodeSize;\n\t\t\tdecorations.push(createPlaceholderDecoration({\n\t\t\t\teditor,\n\t\t\t\tisEmptyDoc,\n\t\t\t\tdataAttribute,\n\t\t\t\thasAnchor,\n\t\t\t\tplaceholder: options.placeholder,\n\t\t\t\tclasses: {\n\t\t\t\t\temptyEditor: options.emptyEditorClass,\n\t\t\t\t\temptyNode: resolveEmptyNodeClass(options.emptyNodeClass, {\n\t\t\t\t\t\teditor,\n\t\t\t\t\t\tnode,\n\t\t\t\t\t\tpos: nodeStart,\n\t\t\t\t\t\thasAnchor\n\t\t\t\t\t})\n\t\t\t\t},\n\t\t\t\tnode,\n\t\t\t\tpos: nodeStart\n\t\t\t}));\n\t\t}\n\t} else decorations.push(...scanRangeForDecorations({\n\t\teditor,\n\t\toptions,\n\t\tdataAttribute,\n\t\tdoc,\n\t\tselection,\n\t\tfrom: 0,\n\t\tto: doc.content.size\n\t}));\n\treturn DecorationSet.create(doc, decorations);\n}\n//#endregion\n//#region src/placeholder/utils/resolveTopLevelRange.ts\n/**\n* Resolves a document position to the `[from, to)` range of its containing\n* top-level block node in absolute document positions.\n*/\nfunction resolveTopLevelRange(doc, pos) {\n\tconst resolved = doc.resolve(pos);\n\tif (resolved.depth === 0) {\n\t\tvar _resolved$nodeAfter;\n\t\tconst node = (_resolved$nodeAfter = resolved.nodeAfter) !== null && _resolved$nodeAfter !== void 0 ? _resolved$nodeAfter : resolved.nodeBefore;\n\t\tif (!node) return {\n\t\t\tfrom: pos,\n\t\t\tto: pos\n\t\t};\n\t\tconst nodePos = resolved.nodeAfter ? pos : pos - node.nodeSize;\n\t\treturn {\n\t\t\tfrom: nodePos,\n\t\t\tto: nodePos + node.nodeSize\n\t\t};\n\t}\n\tconst topLevelPos = resolved.before(1);\n\treturn {\n\t\tfrom: topLevelPos,\n\t\tto: topLevelPos + resolved.node(1).nodeSize\n\t};\n}\n/**\n* Converts an absolute document range to content-relative positions used by\n* `Node#nodesBetween` and `Node#forEach` offsets.\n*/\nfunction toContentRelativeRange(doc, range) {\n\treturn {\n\t\tfrom: Math.max(0, range.from - 1),\n\t\tto: Math.min(doc.content.size, range.to - 1)\n\t};\n}\n/**\n* Returns the top-level block ranges that intersect a document change range.\n* Input `from`/`to` are absolute positions (e.g. from `getChangedRanges`).\n* Returned ranges are content-relative, matching `Node#forEach` offsets.\n*/\nfunction getTopLevelBlocksInRange(doc, from, to) {\n\tconst ranges = [];\n\tdoc.forEach((node, offset) => {\n\t\tconst nodeStart = offset;\n\t\tconst nodeEnd = nodeStart + node.nodeSize;\n\t\tconst absNodeStart = nodeStart + 1;\n\t\tconst absNodeEnd = nodeEnd + 1;\n\t\tif (absNodeStart < to && absNodeEnd > from) ranges.push({\n\t\t\tfrom: nodeStart,\n\t\t\tto: nodeEnd\n\t\t});\n\t});\n\treturn ranges;\n}\n/**\n* Sorts ranges by start position and merges overlapping or adjacent ranges.\n*/\nfunction mergeRanges(ranges) {\n\tif (ranges.length === 0) return [];\n\tconst sorted = [...ranges].sort((a, b) => a.from - b.from);\n\tconst merged = [{ ...sorted[0] }];\n\tfor (let i = 1; i < sorted.length; i += 1) {\n\t\tconst last = merged[merged.length - 1];\n\t\tconst current = sorted[i];\n\t\tif (current.from <= last.to) last.to = Math.max(last.to, current.to);\n\t\telse merged.push({ ...current });\n\t}\n\treturn merged;\n}\n//#endregion\n//#region src/placeholder/utils/placeholderStateField.ts\n/**\n* Expands a single changed range to the top-level blocks it touches.\n* Also resolves blocks at range boundaries so split/merge edits update\n* adjacent empty nodes (e.g. a new paragraph after Enter).\n*/\nfunction collectBlocksForChange(doc, change) {\n\tconst ranges = getTopLevelBlocksInRange(doc, change.from, change.to);\n\tranges.push(toContentRelativeRange(doc, resolveTopLevelRange(doc, change.from)));\n\tif (change.to > change.from) ranges.push(toContentRelativeRange(doc, resolveTopLevelRange(doc, Math.min(change.to, doc.content.size + 1) - 1)));\n\telse if (change.from < doc.content.size + 1) ranges.push(toContentRelativeRange(doc, resolveTopLevelRange(doc, Math.min(change.from + 1, doc.content.size))));\n\treturn ranges;\n}\n/**\n* Collects content-relative top-level block ranges that need placeholder\n* decorations recomputed after a transaction.\n*/\nfunction collectRescanRanges(tr, oldState, newState) {\n\tconst ranges = [];\n\tif (tr.docChanged) {\n\t\tconst changes = getChangedRanges(tr);\n\t\tfor (const change of changes) ranges.push(...collectBlocksForChange(newState.doc, change.newRange));\n\t}\n\tif (tr.selectionSet) {\n\t\tranges.push(toContentRelativeRange(newState.doc, resolveTopLevelRange(newState.doc, tr.mapping.map(oldState.selection.anchor))));\n\t\tranges.push(toContentRelativeRange(newState.doc, resolveTopLevelRange(newState.doc, newState.selection.anchor)));\n\t}\n\treturn mergeRanges(ranges);\n}\n/** Clamps a content-relative range to `[0, doc.content.size]`. */\nfunction clampRange(from, to, doc) {\n\tconst clampedFrom = Math.max(0, Math.min(from, doc.content.size));\n\treturn {\n\t\tfrom: clampedFrom,\n\t\tto: Math.max(clampedFrom, Math.min(to, doc.content.size))\n\t};\n}\n/**\n* Removes and rebuilds placeholder decorations within the given ranges.\n* Only drops decorations fully contained in a range so mapped decorations\n* on neighbouring blocks (e.g. at a block boundary) are kept intact.\n*/\nfunction updateDecorationsInRanges({ decorations, ranges, editor, options, dataAttribute, doc, selection }) {\n\tlet next = decorations;\n\tfor (const range of ranges) {\n\t\tconst { from, to } = clampRange(range.from, range.to, doc);\n\t\tconst existing = next.find(from, to).filter((decoration) => decoration.from >= from && decoration.to <= to);\n\t\tif (existing.length) next = next.remove(existing);\n\t\tconst newDecos = scanRangeForDecorations({\n\t\t\teditor,\n\t\t\toptions,\n\t\t\tdataAttribute,\n\t\t\tdoc,\n\t\t\tselection,\n\t\t\tfrom,\n\t\t\tto\n\t\t});\n\t\tif (newDecos.length) next = next.add(doc, newDecos);\n\t}\n\treturn next;\n}\n/**\n* Creates the incremental `StateField<DecorationSet>` used by the slow path\n* (`showOnlyCurrent: false` or `includeChildren: true`).\n*\n* Decorations are mapped through each transaction and only recomputed for\n* top-level blocks touched by document or selection changes.\n* @param options.editor - The editor instance.\n* @param options.options - The resolved placeholder options.\n* @param options.dataAttribute - The prepared `data-*` attribute name.\n* @returns A ProseMirror state field storing the placeholder decoration set.\n*/\nfunction createPlaceholderStateField({ editor, options, dataAttribute }) {\n\treturn {\n\t\tinit(_config, state) {\n\t\t\tconst decorations = buildPlaceholderDecorations({\n\t\t\t\teditor,\n\t\t\t\toptions,\n\t\t\t\tdataAttribute,\n\t\t\t\tdoc: state.doc,\n\t\t\t\tselection: state.selection\n\t\t\t});\n\t\t\treturn decorations !== null && decorations !== void 0 ? decorations : DecorationSet.empty;\n\t\t},\n\t\tapply(tr, prev, oldState, newState) {\n\t\t\tif (!tr.docChanged && !tr.selectionSet) return prev;\n\t\t\treturn updateDecorationsInRanges({\n\t\t\t\tdecorations: prev.map(tr.mapping, tr.doc),\n\t\t\t\tranges: collectRescanRanges(tr, oldState, newState),\n\t\t\t\teditor,\n\t\t\t\toptions,\n\t\t\t\tdataAttribute,\n\t\t\t\tdoc: newState.doc,\n\t\t\t\tselection: newState.selection\n\t\t\t});\n\t\t}\n\t};\n}\n//#endregion\n//#region src/placeholder/utils/preparePlaceholderAttribute.ts\n/**\n* Prepares the placeholder attribute by ensuring it is properly formatted.\n* @param attr - The placeholder attribute string.\n* @returns The prepared placeholder attribute string.\n*/\nfunction preparePlaceholderAttribute(attr) {\n\treturn attr.replace(/\\s+/g, \"-\").replace(/[^a-zA-Z0-9-]/g, \"\").replace(/^[0-9-]+/, \"\").replace(/^-+/, \"\").toLowerCase();\n}\n//#endregion\n//#region src/placeholder/plugins/PlaceholderPlugin.ts\n/**\n* Creates the ProseMirror plugin that renders placeholder decorations.\n* @param options.editor - The editor instance.\n* @param options.options - The resolved placeholder options.\n* @returns The configured placeholder plugin.\n*/\nfunction createPlaceholderPlugin({ editor, options }) {\n\tconst dataAttribute = options.dataAttribute ? `data-${preparePlaceholderAttribute(options.dataAttribute)}` : `data-${DEFAULT_DATA_ATTRIBUTE}`;\n\tconst useResolvedPath = options.showOnlyCurrent && !options.includeChildren;\n\treturn new Plugin({\n\t\tkey: PLUGIN_KEY,\n\t\t...useResolvedPath ? {} : { state: createPlaceholderStateField({\n\t\t\teditor,\n\t\t\toptions,\n\t\t\tdataAttribute\n\t\t}) },\n\t\tprops: { decorations: useResolvedPath ? ({ doc, selection }) => buildPlaceholderDecorations({\n\t\t\teditor,\n\t\t\toptions,\n\t\t\tdataAttribute,\n\t\t\tdoc,\n\t\t\tselection\n\t\t}) : (state) => {\n\t\t\tvar _PLUGIN_KEY$getState;\n\t\t\tif (options.showOnlyWhenEditable && !editor.isEditable) return DecorationSet.empty;\n\t\t\treturn (_PLUGIN_KEY$getState = PLUGIN_KEY.getState(state)) !== null && _PLUGIN_KEY$getState !== void 0 ? _PLUGIN_KEY$getState : DecorationSet.empty;\n\t\t} }\n\t});\n}\n//#endregion\n//#region src/placeholder/placeholder.ts\n/**\n* This extension allows you to add a placeholder to your editor.\n* A placeholder is a text that appears when the editor or a node is empty.\n* @see https://www.tiptap.dev/api/extensions/placeholder\n*/\nconst Placeholder = Extension.create({\n\tname: \"placeholder\",\n\taddOptions() {\n\t\treturn {\n\t\t\temptyEditorClass: \"is-editor-empty\",\n\t\t\temptyNodeClass: \"is-empty\",\n\t\t\tdataAttribute: DEFAULT_DATA_ATTRIBUTE,\n\t\t\tplaceholder: \"Write something …\",\n\t\t\tshowOnlyWhenEditable: true,\n\t\t\tshowOnlyCurrent: true,\n\t\t\tincludeChildren: false\n\t\t};\n\t},\n\taddProseMirrorPlugins() {\n\t\treturn [createPlaceholderPlugin({\n\t\t\teditor: this.editor,\n\t\t\toptions: this.options\n\t\t})];\n\t}\n});\n//#endregion\n//#region src/selection/selection.ts\n/**\n* Whether the native browser selection should be cleared on blur and restored on focus.\n* Only applies to non-empty text selections in an editable editor.\n*/\nfunction shouldSyncDomSelection(state, editor) {\n\treturn !state.selection.empty && !isNodeSelection(state.selection) && editor.isEditable;\n}\n/**\n* Whether the selection decoration should be rendered to keep the selection\n* visible while the editor is blurred (and not dragging).\n*/\nfunction shouldPreserveSelection(state, editor) {\n\treturn shouldSyncDomSelection(state, editor) && !editor.isFocused && !editor.view.dragging;\n}\nfunction clearDomSelection() {\n\tvar _window$getSelection;\n\t(_window$getSelection = window.getSelection()) === null || _window$getSelection === void 0 || _window$getSelection.removeAllRanges();\n}\n/**\n* Sync the native selection from the editor state.\n* @see https://prosemirror.net/docs/ref/#view.EditorView.focus\n*/\nfunction restoreDomSelection(view) {\n\tview.focus();\n}\n/**\n* This extension allows you to add a class to the selected text when the editor is blurred.\n* It clears the native browser selection on blur (so `::selection` styles do not overlap the\n* decoration) and restores it when the editor is focused again.\n* @see https://www.tiptap.dev/api/extensions/selection\n*/\nconst Selection = Extension.create({\n\tname: \"selection\",\n\taddOptions() {\n\t\treturn { className: \"selection\" };\n\t},\n\taddProseMirrorPlugins() {\n\t\tconst { editor, options } = this;\n\t\treturn [new Plugin({\n\t\t\tkey: new PluginKey(\"selection\"),\n\t\t\tprops: {\n\t\t\t\tdecorations(state) {\n\t\t\t\t\tif (!shouldPreserveSelection(state, editor)) return null;\n\t\t\t\t\treturn DecorationSet.create(state.doc, [Decoration.inline(state.selection.from, state.selection.to, { class: options.className })]);\n\t\t\t\t},\n\t\t\t\thandleDOMEvents: {\n\t\t\t\t\tblur(view) {\n\t\t\t\t\t\tif (!shouldSyncDomSelection(view.state, editor)) return false;\n\t\t\t\t\t\tclearDomSelection();\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t},\n\t\t\t\t\tfocus(view) {\n\t\t\t\t\t\tif (!shouldSyncDomSelection(view.state, editor)) return false;\n\t\t\t\t\t\trequestAnimationFrame(() => {\n\t\t\t\t\t\t\tif (!editor.isDestroyed && view.hasFocus()) restoreDomSelection(view);\n\t\t\t\t\t\t});\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t})];\n\t}\n});\n//#endregion\n//#region src/trailing-node/trailing-node.ts\nconst skipTrailingNodeMeta = \"skipTrailingNode\";\nfunction nodeEqualsType({ types, node }) {\n\treturn node && Array.isArray(types) && types.includes(node.type) || (node === null || node === void 0 ? void 0 : node.type) === types;\n}\n/**\n* This extension allows you to add an extra node at the end of the document.\n* @see https://www.tiptap.dev/api/extensions/trailing-node\n*/\nconst TrailingNode = Extension.create({\n\tname: \"trailingNode\",\n\taddOptions() {\n\t\treturn {\n\t\t\tnode: void 0,\n\t\t\tnotAfter: []\n\t\t};\n\t},\n\taddProseMirrorPlugins() {\n\t\tvar _this$editor$schema$t;\n\t\tconst plugin = new PluginKey(this.name);\n\t\tconst defaultNode = this.options.node || ((_this$editor$schema$t = this.editor.schema.topNodeType.contentMatch.defaultType) === null || _this$editor$schema$t === void 0 ? void 0 : _this$editor$schema$t.name) || \"paragraph\";\n\t\tconst disabledNodes = Object.entries(this.editor.schema.nodes).map(([, value]) => value).filter((node) => (this.options.notAfter || []).concat(defaultNode).includes(node.name));\n\t\treturn [new Plugin({\n\t\t\tkey: plugin,\n\t\t\tappendTransaction: (transactions, __, state) => {\n\t\t\t\tconst { doc, tr, schema } = state;\n\t\t\t\tconst shouldInsertNodeAtEnd = plugin.getState(state);\n\t\t\t\tconst endPosition = doc.content.size;\n\t\t\t\tconst type = schema.nodes[defaultNode];\n\t\t\t\tif (transactions.some((transaction) => transaction.getMeta(\"skipTrailingNode\"))) return;\n\t\t\t\tif (!shouldInsertNodeAtEnd) return;\n\t\t\t\treturn tr.insert(endPosition, type.create());\n\t\t\t},\n\t\t\tstate: {\n\t\t\t\tinit: (_, state) => {\n\t\t\t\t\tconst lastNode = state.tr.doc.lastChild;\n\t\t\t\t\treturn !nodeEqualsType({\n\t\t\t\t\t\tnode: lastNode,\n\t\t\t\t\t\ttypes: disabledNodes\n\t\t\t\t\t});\n\t\t\t\t},\n\t\t\t\tapply: (tr, value) => {\n\t\t\t\t\tif (!tr.docChanged) return value;\n\t\t\t\t\tif (tr.getMeta(\"__uniqueIDTransaction\")) return value;\n\t\t\t\t\tconst lastNode = tr.doc.lastChild;\n\t\t\t\t\treturn !nodeEqualsType({\n\t\t\t\t\t\tnode: lastNode,\n\t\t\t\t\t\ttypes: disabledNodes\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t})];\n\t}\n});\n//#endregion\n//#region src/undo-redo/undo-redo.ts\n/**\n* This extension allows you to undo and redo recent changes.\n* @see https://www.tiptap.dev/api/extensions/undo-redo\n*\n* **Important**: If the `@tiptap/extension-collaboration` package is used, make sure to remove\n* the `undo-redo` extension, as it is not compatible with the `collaboration` extension.\n*\n* `@tiptap/extension-collaboration` uses its own history implementation.\n*/\nconst UndoRedo = Extension.create({\n\tname: \"undoRedo\",\n\taddOptions() {\n\t\treturn {\n\t\t\tdepth: 100,\n\t\t\tnewGroupDelay: 500\n\t\t};\n\t},\n\taddCommands() {\n\t\treturn {\n\t\t\tundo: () => ({ state, dispatch }) => {\n\t\t\t\treturn undo(state, dispatch);\n\t\t\t},\n\t\t\tredo: () => ({ state, dispatch }) => {\n\t\t\t\treturn redo(state, dispatch);\n\t\t\t}\n\t\t};\n\t},\n\taddProseMirrorPlugins() {\n\t\treturn [history(this.options)];\n\t},\n\taddKeyboardShortcuts() {\n\t\treturn {\n\t\t\t\"Mod-z\": () => this.editor.commands.undo(),\n\t\t\t\"Shift-Mod-z\": () => this.editor.commands.redo(),\n\t\t\t\"Mod-y\": () => this.editor.commands.redo(),\n\t\t\t\"Mod-я\": () => this.editor.commands.undo(),\n\t\t\t\"Shift-Mod-я\": () => this.editor.commands.redo()\n\t\t};\n\t}\n});\n//#endregion\nexport { CharacterCount, DEFAULT_DATA_ATTRIBUTE, Dropcursor, Focus, Gapcursor, PLUGIN_KEY, Placeholder, Selection, TrailingNode, UndoRedo, preparePlaceholderAttribute, skipTrailingNodeMeta };\n\n//# sourceMappingURL=index.js.map"],"ignoreList":[0,1,2],"mappings":";;;AAaA,SAASqB,EAAW,IAAU,CAAC,GAAG;CAC9B,OAAO,IAAIL,EAAO,EACd,KAAK,GAAY;EAAE,OAAO,IAAIM,EAAeC,GAAYC,CAAO;CAAG,EACvE,CAAC;AACL;AACA,IAAMF,IAAN,MA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AAc3I,EAAI,QAAQ,MAC1BgB,IAAO4H,EAAO,MAAML;IAC1B,IAAI,GAAa,MAAM,MAAgBlF,EAAY,QAAQ,kBAAkB,CAAC,KACzEqF,GACL,OAAO/F,EAAG,OAAOgG,GAAa3H,EAAK,OAAO,CAAC;GAC5C;GACA,OAAO;IACN,OAAO,GAAG,MAAU;KACnB,IAAM6H,IAAW9G,EAAM,GAAG,IAAI;KAC9B,OAAO,CAACoG,EAAe;MACtB,MAAMU;MACN,OAAOL;KACR,CAAC;IACF;IACA,QAAQ,GAAI,MAAU;KAErB,IADI,CAAC7F,EAAG,cACJA,EAAG,QAAQ,uBAAuB,GAAG,OAAO8F;KAChD,IAAMI,IAAWlG,EAAG,IAAI;KACxB,OAAO,CAACwF,EAAe;MACtB,MAAMU;MACN,OAAOL;KACR,CAAC;IACF;GACD;EACD,CAAC,CAAC;CACH;AACD,CAAC,GAYKM,KAAW1L,EAAU,OAAO;CACjC,MAAM;CACN,aAAa;EACZ,OAAO;GACN,OAAO;GACP,eAAe;EAChB;CACD;CACA,cAAc;EACb,OAAO;GACN,aAAa,EAAE,UAAO,kBACdJ,EAAK+E,GAAOI,CAAQ;GAE5B,aAAa,EAAE,UAAO,kBACdtF,EAAKkF,GAAOI,CAAQ;EAE7B;CACD;CACA,wBAAwB;EACvB,OAAO,CAACrF,EAAQ,KAAK,OAAO,CAAC;CAC9B;CACA,uBAAuB;EACtB,OAAO;GACN,eAAe,KAAK,OAAO,SAAS,KAAK;GACzC,qBAAqB,KAAK,OAAO,SAAS,KAAK;GAC/C,eAAe,KAAK,OAAO,SAAS,KAAK;GACzC,eAAe,KAAK,OAAO,SAAS,KAAK;GACzC,qBAAqB,KAAK,OAAO,SAAS,KAAK;EAChD;CACD;AACD,CAAC"}
@@ -1,2 +1 @@
1
- import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c } from "../dist-Pg4oVkv2.js";
2
- export { c as AllSelection, i as EditorState, o as NodeSelection, n as Plugin, e as PluginKey, a as Selection, s as SelectionRange, t as TextSelection, r as Transaction };
1
+ export { t as AllSelection, n as EditorState, r as NodeSelection, i as Plugin, a as PluginKey, o as Selection, s as SelectionRange, c as TextSelection, l as Transaction } from "../dist-BVA3Sgbc.js";
@@ -1,2 +1 @@
1
- import { $ as ee, $t as te, A as e, An as t, At as n, B as r, Bn as i, Bt as a, C as o, Cn as s, Ct as c, D as l, Dn as u, Dt as d, E as f, En as p, Et as m, F as h, Fn as g, Ft as _, G as v, Gt as y, H as b, Ht as x, I as S, In as C, It as w, J as T, Jt as E, K as D, Kt as O, L as k, Ln as A, Lt as j, M, Mn as N, Mt as P, N as F, Nn as I, Nt as L, O as R, On as z, Ot as B, P as V, Pn as H, Pt as U, Q as W, Qt as G, R as K, Rn as q, Rt as J, S as Y, Sn as X, St as Z, T as Q, Tn as ne, Tt as re, U as ie, Ut as ae, V as oe, Vt as se, W as ce, Wt as le, X as ue, Xt as de, Y as fe, Yt as pe, Z as me, Zt as he, _ as ge, _n as _e, _t as ve, a as ye, an as be, at as xe, b as Se, bn as Ce, bt as we, c as Te, cn as Ee, ct as $, d as De, dn as Oe, dt as ke, en as Ae, et as je, f as Me, fn as Ne, ft as Pe, g as Fe, gn as Ie, gt as Le, h as Re, hn as ze, ht as Be, i as Ve, in as He, it as Ue, j as We, jn as Ge, jt as Ke, k as qe, kn as Je, kt as Ye, l as Xe, ln as Ze, lt as Qe, m as $e, mn as et, mt as tt, n as nt, nn as rt, nt as it, o as at, on as ot, ot as st, p as ct, pn as lt, pt as ut, q as dt, qt as ft, r as pt, rn as mt, rt as ht, s as gt, sn as _t, st as vt, t as yt, tn as bt, tt as xt, u as St, un as Ct, ut as wt, v as Tt, vn as Et, vt as Dt, w as Ot, wn as kt, wt as At, x as jt, xn as Mt, xt as Nt, y as Pt, yn as Ft, yt as It, z as Lt, zn as Rt, zt } from "../dist-CbvLhouk.js";
2
- export { yt as CommandManager, nt as DECORATION_MANAGER_PLUGIN_KEY, pt as Decoration, Ve as DecorationManager, ye as Editor, at as Extendable, gt as Extension, Te as Fragment, Xe as InlineDecoration, St as InputRule, De as MappablePosition, Me as Mark, ct as MarkView, $e as Node, Re as NodeDecoration, Fe as NodePos, ge as NodeView, Tt as PasteRule, Pt as ResizableNodeView, Se as ResizableNodeview, jt as Tracker, Y as WidgetDecoration, o as attrsEqual, Ot as callOrReturn, Q as canInsertNode, f as combineTransactionSteps, l as commands, R as createAtomBlockMarkdownSpec, qe as createBlockMarkdownSpec, e as createChainableState, We as createDocument, m as createElement, m as h, M as createInlineMarkdownSpec, F as createMappablePosition, V as createNodeFromContent, h as createStyleTag, S as createWidgetDecoration, k as decodeHtmlEntities, K as defaultBlockAt, Lt as deleteProps, r as elementFromString, oe as encodeHtmlEntities, b as escapeForRegEx, ie as extensions, ce as findChildren, v as findChildrenInRange, D as findDuplicates, dt as findParentNode, T as findParentNodeClosestToPos, fe as flattenExtensions, ue as fromString, me as generateHTML, W as generateJSON, ee as generateText, je as getAttributes, xt as getAttributesFromExtensions, it as getChangedRanges, ht as getDebugJSON, Ue as getExtensionField, xe as getHTMLFromFragment, st as getMarkAttributes, vt as getMarkRange, $ as getMarkType, Qe as getMarksBetween, wt as getNodeAtPosition, ke as getNodeAttributes, Pe as getNodeType, ut as getPreviousBlockSibling, tt as getRenderedAttributes, Be as getSchema, Le as getSchemaByResolvedExtensions, ve as getSchemaTypeByName, Dt as getSchemaTypeNameByName, It as getSplittedAttributes, we as getStyleProperty, Nt as getText, Z as getTextBetween, c as getTextContentFromNodes, At as getTextSerializersFromSchema, re as getUpdatedPosition, d as injectExtensionAttributesToParseRule, B as inputRulesPlugin, Ye as isActive, n as isAndroid, Ke as isAtEndOfNode, P as isAtStartOfNode, L as isEmptyObject, U as isExtensionRulesEnabled, _ as isFirefox, w as isFunction, j as isList, J as isMacOS, zt as isMarkActive, a as isNodeActive, se as isNodeEmpty, x as isNodeSelection, ae as isNodeViewSelected, le as isNumber, y as isPlainObject, O as isProseMirrorAddMarkStep, ft as isProseMirrorAddNodeMarkStep, E as isProseMirrorAttrStep, pe as isProseMirrorCellSelection, de as isProseMirrorDocAttrStep, he as isProseMirrorFragment, G as isProseMirrorNodeSelection, te as isProseMirrorRemoveMarkStep, Ae as isProseMirrorRemoveNodeMarkStep, bt as isProseMirrorReplaceAroundStep, rt as isProseMirrorReplaceStep, mt as isProseMirrorSlice, He as isProseMirrorStep, be as isProseMirrorStepResult, ot as isRegExp, _t as isSafari, Ee as isString, Ze as isTextSelection, Ct as isValidCSSStyleValue, Oe as isiOS, Ne as liveWidgetKeys, lt as markInputRule, et as markPasteRule, ze as markdown, Ie as marksEqual, _e as mergeAttributes, Et as mergeDeep, Ft as minMax, Ce as nodeInputRule, Mt as nodePasteRule, X as objectIncludes, s as parseAttributes, kt as parseIndentedBlocks, ne as pasteRulesPlugin, p as posToDOMRect, u as removeDuplicates, z as renderNestedMarkdownContent, Je as resolveExtensions, t as resolveFocusPosition, Ge as rewriteUnknownContent, N as selectionToInsertionEnd, I as serializeAttributes, H as sortExtensions, g as splitExtensions, C as textInputRule, A as textPasteRule, q as textblockTypeInputRule, Rt as updateMarkViewAttributes, i as wrappingInputRule };
1
+ export { t as CommandManager, n as DECORATION_MANAGER_PLUGIN_KEY, r as Decoration, i as DecorationManager, a as Editor, o as Extendable, s as Extension, c as Fragment, l as InlineDecoration, u as InputRule, d as MappablePosition, f as Mark, p as MarkView, m as Node, h as NodeDecoration, g as NodePos, _ as NodeView, v as PasteRule, y as ResizableNodeView, b as ResizableNodeview, x as Tracker, S as WidgetDecoration, C as attrsEqual, w as callOrReturn, T as canInsertNode, E as combineTransactionSteps, D as commands, O as createAtomBlockMarkdownSpec, k as createBlockMarkdownSpec, A as createChainableState, j as createDocument, Et as createElement, Et as h, M as createInlineMarkdownSpec, N as createMappablePosition, P as createNodeFromContent, F as createStyleTag, I as createWidgetDecoration, L as decodeHtmlEntities, R as defaultBlockAt, z as deleteProps, B as elementFromString, V as encodeHtmlEntities, H as escapeForRegEx, U as extensions, W as findChildren, G as findChildrenInRange, K as findDuplicates, q as findParentNode, J as findParentNodeClosestToPos, Y as flattenExtensions, X as fromString, Z as generateHTML, Q as generateJSON, $ as generateText, et as getAttributes, tt as getAttributesFromExtensions, nt as getChangedRanges, rt as getDebugJSON, it as getExtensionField, at as getHTMLFromFragment, ot as getMarkAttributes, st as getMarkRange, ct as getMarkType, lt as getMarksBetween, ut as getNodeAtPosition, dt as getNodeAttributes, ft as getNodeType, pt as getPreviousBlockSibling, mt as getRenderedAttributes, ht as getSchema, gt as getSchemaByResolvedExtensions, _t as getSchemaTypeByName, vt as getSchemaTypeNameByName, yt as getSplittedAttributes, bt as getStyleProperty, xt as getText, St as getTextBetween, Ct as getTextContentFromNodes, wt as getTextSerializersFromSchema, Tt as getUpdatedPosition, Dt as injectExtensionAttributesToParseRule, Ot as inputRulesPlugin, kt as isActive, At as isAndroid, jt as isAtEndOfNode, Mt as isAtStartOfNode, Nt as isEmptyObject, Pt as isExtensionRulesEnabled, Ft as isFirefox, It as isFunction, Lt as isList, Rt as isMacOS, zt as isMarkActive, Bt as isNodeActive, Vt as isNodeEmpty, Ht as isNodeSelection, Ut as isNodeViewSelected, Wt as isNumber, Gt as isPlainObject, Kt as isProseMirrorAddMarkStep, qt as isProseMirrorAddNodeMarkStep, Jt as isProseMirrorAttrStep, Yt as isProseMirrorCellSelection, Xt as isProseMirrorDocAttrStep, Zt as isProseMirrorFragment, Qt as isProseMirrorNodeSelection, $t as isProseMirrorRemoveMarkStep, en as isProseMirrorRemoveNodeMarkStep, tn as isProseMirrorReplaceAroundStep, nn as isProseMirrorReplaceStep, rn as isProseMirrorSlice, in as isProseMirrorStep, an as isProseMirrorStepResult, on as isRegExp, sn as isSafari, cn as isString, ln as isTextSelection, un as isValidCSSStyleValue, dn as isiOS, fn as liveWidgetKeys, pn as markInputRule, mn as markPasteRule, hn as markdown, gn as marksEqual, _n as mergeAttributes, vn as mergeDeep, yn as minMax, bn as nodeInputRule, xn as nodePasteRule, Sn as objectIncludes, Cn as parseAttributes, wn as parseIndentedBlocks, Tn as pasteRulesPlugin, En as posToDOMRect, Dn as removeDuplicates, On as renderNestedMarkdownContent, kn as resolveExtensions, An as resolveFocusPosition, jn as rewriteUnknownContent, Mn as selectionToInsertionEnd, Nn as serializeAttributes, Pn as sortExtensions, Fn as splitExtensions, In as textInputRule, Ln as textPasteRule, Rn as textblockTypeInputRule, zn as updateMarkViewAttributes, Bn as wrappingInputRule } from "../dist-1Ah9gEL8.js";
@@ -1,4 +1,4 @@
1
- import { t as e } from "../dist-CJhbhuk0.js";
1
+ import { t as e } from "../dist-C_bRf4Tj.js";
2
2
  //#region ../../../node_modules/.bun/@tiptap+extension-character-count@3.31.4+6a8bbf18e1b4d9f1/node_modules/@tiptap/extension-character-count/dist/index.js
3
3
  var t = e;
4
4
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["CharacterCount$1"],"sources":["../../../../../../node_modules/.bun/@tiptap+extension-character-count@3.31.4+6a8bbf18e1b4d9f1/node_modules/@tiptap/extension-character-count/dist/index.js"],"sourcesContent":["import { CharacterCount, CharacterCount as CharacterCount$1 } from \"@tiptap/extensions\";\n//#region src/index.ts\nvar src_default = CharacterCount$1;\n//#endregion\nexport { CharacterCount, src_default as default };\n\n//# sourceMappingURL=index.js.map"],"x_google_ignoreList":[0],"mappings":";;AAEA,IAAI,IAAcA"}
1
+ {"version":3,"file":"index.js","names":["CharacterCount$1","CharacterCount","src_default"],"sources":["../../../../../../node_modules/.bun/@tiptap+extension-character-count@3.31.4+6a8bbf18e1b4d9f1/node_modules/@tiptap/extension-character-count/dist/index.js"],"sourcesContent":["import { CharacterCount, CharacterCount as CharacterCount$1 } from \"@tiptap/extensions\";\n//#region src/index.ts\nvar src_default = CharacterCount$1;\n//#endregion\nexport { CharacterCount, src_default as default };\n\n//# sourceMappingURL=index.js.map"],"ignoreList":[0],"mappings":";;AAEA,IAAIE,IAAcF"}
@@ -1,4 +1,4 @@
1
- import { _n as e, bn as t, m as n, mt as r, y as i } from "../dist-CbvLhouk.js";
1
+ import { _n as e, bn as t, m as n, mt as r, y as i } from "../dist-1Ah9gEL8.js";
2
2
  //#region ../../../node_modules/.bun/@tiptap+extension-image@3.31.4+e39601fe346c19ab/node_modules/@tiptap/extension-image/dist/index.js
3
3
  var a = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, o = n.create({
4
4
  name: "image",
@@ -61,11 +61,7 @@ var a = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, o = n.create
61
61
  }
62
62
  }), p.src !== null && (f.src = p.src);
63
63
  let m = { ...u }, h = (e) => {
64
- if (typeof e == "string" && e !== "") {
65
- f.getAttribute("src") !== e && (f.src = e);
66
- return;
67
- }
68
- f.hasAttribute("src") && f.removeAttribute("src"), f.src !== "" && (f.src = "");
64
+ typeof e == "string" && e !== "" ? f.getAttribute("src") !== e && (f.src = e) : (f.hasAttribute("src") && f.removeAttribute("src"), f.src !== "" && (f.src = ""));
69
65
  };
70
66
  h(u.src);
71
67
  let g = new i({
@@ -85,12 +81,12 @@ var a = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, o = n.create
85
81
  },
86
82
  onUpdate: (e) => {
87
83
  if (e.type !== c.type) return !1;
88
- let t = r(e, d.extensionManager.attributes.filter((t) => t.type === e.type.name));
84
+ let t = d.extensionManager.attributes.filter((t) => t.type === e.type.name), n = r(e, t);
89
85
  return Object.keys(m).forEach((e) => {
90
- !s.has(e) && !(e in t) && f.removeAttribute(e);
91
- }), Object.entries(t).forEach(([e, t]) => {
86
+ !s.has(e) && !(e in n) && f.removeAttribute(e);
87
+ }), Object.entries(n).forEach(([e, t]) => {
92
88
  s.has(e) || (t == null ? f.removeAttribute(e) : f.setAttribute(e, t));
93
- }), h(t.src), m = t, !0;
89
+ }), h(n.src), m = n, !0;
94
90
  },
95
91
  options: {
96
92
  directions: t,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../../../node_modules/.bun/@tiptap+extension-image@3.31.4+e39601fe346c19ab/node_modules/@tiptap/extension-image/dist/index.js"],"sourcesContent":["import { Node, ResizableNodeView, getRenderedAttributes, mergeAttributes, nodeInputRule } from \"@tiptap/core\";\n//#region src/image.ts\n/**\n* Matches an image to a ![image](src \"title\") on input.\n*/\nconst inputRegex = /(?:^|\\s)(!\\[(.+|:?)]\\((\\S+)(?:(?:\\s+)[\"'](\\S+)[\"'])?\\))$/;\n/**\n* This extension allows you to insert images.\n* @see https://www.tiptap.dev/api/nodes/image\n*/\nconst Image = Node.create({\n\tname: \"image\",\n\taddOptions() {\n\t\treturn {\n\t\t\tinline: false,\n\t\t\tallowBase64: false,\n\t\t\tHTMLAttributes: {},\n\t\t\tresize: false\n\t\t};\n\t},\n\tinline() {\n\t\treturn this.options.inline;\n\t},\n\tgroup() {\n\t\treturn this.options.inline ? \"inline\" : \"block\";\n\t},\n\tdraggable: true,\n\taddAttributes() {\n\t\treturn {\n\t\t\tsrc: { default: null },\n\t\t\talt: { default: null },\n\t\t\ttitle: { default: null },\n\t\t\twidth: { default: null },\n\t\t\theight: { default: null }\n\t\t};\n\t},\n\tparseHTML() {\n\t\treturn [{ tag: this.options.allowBase64 ? \"img[src]\" : \"img[src]:not([src^=\\\"data:\\\"])\" }];\n\t},\n\trenderHTML({ HTMLAttributes }) {\n\t\treturn [\"img\", mergeAttributes(this.options.HTMLAttributes, HTMLAttributes)];\n\t},\n\tparseMarkdown: (token, helpers) => {\n\t\treturn helpers.createNode(\"image\", {\n\t\t\tsrc: token.href,\n\t\t\ttitle: token.title,\n\t\t\talt: token.text\n\t\t});\n\t},\n\trenderMarkdown: (node) => {\n\t\tvar _node$attrs$src, _node$attrs, _node$attrs$alt, _node$attrs2, _node$attrs$title, _node$attrs3;\n\t\tconst src = (_node$attrs$src = (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.src) !== null && _node$attrs$src !== void 0 ? _node$attrs$src : \"\";\n\t\tconst alt = (_node$attrs$alt = (_node$attrs2 = node.attrs) === null || _node$attrs2 === void 0 ? void 0 : _node$attrs2.alt) !== null && _node$attrs$alt !== void 0 ? _node$attrs$alt : \"\";\n\t\tconst title = (_node$attrs$title = (_node$attrs3 = node.attrs) === null || _node$attrs3 === void 0 ? void 0 : _node$attrs3.title) !== null && _node$attrs$title !== void 0 ? _node$attrs$title : \"\";\n\t\treturn title ? `![${alt}](${src} \"${title}\")` : `![${alt}](${src})`;\n\t},\n\taddNodeView() {\n\t\tif (!this.options.resize || !this.options.resize.enabled || typeof document === \"undefined\") return null;\n\t\tconst { directions, minWidth, minHeight, alwaysPreserveAspectRatio } = this.options.resize;\n\t\tconst resizeManagedAttributes = /* @__PURE__ */ new Set([\n\t\t\t\"src\",\n\t\t\t\"width\",\n\t\t\t\"height\"\n\t\t]);\n\t\treturn ({ node, getPos, HTMLAttributes, editor }) => {\n\t\t\tconst el = document.createElement(\"img\");\n\t\t\tel.draggable = false;\n\t\t\tconst mergedAttributes = mergeAttributes(this.options.HTMLAttributes, HTMLAttributes);\n\t\t\tObject.entries(mergedAttributes).forEach(([key, value]) => {\n\t\t\t\tif (value != null) switch (key) {\n\t\t\t\t\tcase \"src\":\n\t\t\t\t\tcase \"width\":\n\t\t\t\t\tcase \"height\": break;\n\t\t\t\t\tdefault: el.setAttribute(key, value);\n\t\t\t\t}\n\t\t\t});\n\t\t\tif (mergedAttributes.src !== null) el.src = mergedAttributes.src;\n\t\t\tlet previousHTMLAttributes = { ...HTMLAttributes };\n\t\t\tconst syncImageSource = (src) => {\n\t\t\t\tif (typeof src === \"string\" && src !== \"\") {\n\t\t\t\t\tif (el.getAttribute(\"src\") !== src) el.src = src;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif (el.hasAttribute(\"src\")) el.removeAttribute(\"src\");\n\t\t\t\tif (el.src !== \"\") el.src = \"\";\n\t\t\t};\n\t\t\tsyncImageSource(HTMLAttributes.src);\n\t\t\tconst onUpdate = (updatedNode) => {\n\t\t\t\tif (updatedNode.type !== node.type) return false;\n\t\t\t\tconst extensionAttributes = editor.extensionManager.attributes.filter((attribute) => attribute.type === updatedNode.type.name);\n\t\t\t\tconst newHTMLAttributes = getRenderedAttributes(updatedNode, extensionAttributes);\n\t\t\t\tObject.keys(previousHTMLAttributes).forEach((key) => {\n\t\t\t\t\tif (!resizeManagedAttributes.has(key) && !(key in newHTMLAttributes)) el.removeAttribute(key);\n\t\t\t\t});\n\t\t\t\tObject.entries(newHTMLAttributes).forEach(([key, value]) => {\n\t\t\t\t\tif (resizeManagedAttributes.has(key)) return;\n\t\t\t\t\tif (value != null) el.setAttribute(key, value);\n\t\t\t\t\telse el.removeAttribute(key);\n\t\t\t\t});\n\t\t\t\tsyncImageSource(newHTMLAttributes.src);\n\t\t\t\tpreviousHTMLAttributes = newHTMLAttributes;\n\t\t\t\treturn true;\n\t\t\t};\n\t\t\tconst nodeView = new ResizableNodeView({\n\t\t\t\telement: el,\n\t\t\t\teditor,\n\t\t\t\tnode,\n\t\t\t\tgetPos,\n\t\t\t\tonResize: (width, height) => {\n\t\t\t\t\tel.style.width = `${width}px`;\n\t\t\t\t\tel.style.height = `${height}px`;\n\t\t\t\t},\n\t\t\t\tonCommit: (width, height) => {\n\t\t\t\t\tconst pos = getPos();\n\t\t\t\t\tif (pos === void 0) return;\n\t\t\t\t\tthis.editor.chain().setNodeSelection(pos).updateAttributes(this.name, {\n\t\t\t\t\t\twidth,\n\t\t\t\t\t\theight\n\t\t\t\t\t}).run();\n\t\t\t\t},\n\t\t\t\tonUpdate,\n\t\t\t\toptions: {\n\t\t\t\t\tdirections,\n\t\t\t\t\tmin: {\n\t\t\t\t\t\twidth: minWidth,\n\t\t\t\t\t\theight: minHeight\n\t\t\t\t\t},\n\t\t\t\t\tpreserveAspectRatio: alwaysPreserveAspectRatio === true\n\t\t\t\t}\n\t\t\t});\n\t\t\tconst dom = nodeView.dom;\n\t\t\tconst showNodeView = () => {\n\t\t\t\tdom.style.visibility = \"\";\n\t\t\t\tdom.style.pointerEvents = \"\";\n\t\t\t};\n\t\t\tdom.style.visibility = \"hidden\";\n\t\t\tdom.style.pointerEvents = \"none\";\n\t\t\tif (el.complete && el.naturalWidth > 0) showNodeView();\n\t\t\telse {\n\t\t\t\tel.onload = showNodeView;\n\t\t\t\tel.onerror = showNodeView;\n\t\t\t}\n\t\t\treturn nodeView;\n\t\t};\n\t},\n\taddCommands() {\n\t\treturn { setImage: (options) => ({ commands }) => {\n\t\t\treturn commands.insertContent({\n\t\t\t\ttype: this.name,\n\t\t\t\tattrs: options\n\t\t\t});\n\t\t} };\n\t},\n\taddInputRules() {\n\t\treturn [nodeInputRule({\n\t\t\tfind: inputRegex,\n\t\t\ttype: this.type,\n\t\t\tgetAttributes: (match) => {\n\t\t\t\tconst [, , alt, src, title] = match;\n\t\t\t\treturn {\n\t\t\t\t\tsrc,\n\t\t\t\t\talt,\n\t\t\t\t\ttitle\n\t\t\t\t};\n\t\t\t}\n\t\t})];\n\t}\n});\n//#endregion\n//#region src/index.ts\nvar src_default = Image;\n//#endregion\nexport { Image, src_default as default, inputRegex };\n\n//# sourceMappingURL=index.js.map"],"x_google_ignoreList":[0],"mappings":";;AAKA,IAAM,IAAa,4DAKb,IAAQ,EAAK,OAAO;CACzB,MAAM;CACN,aAAa;EACZ,OAAO;GACN,QAAQ;GACR,aAAa;GACb,gBAAgB,CAAC;GACjB,QAAQ;EACT;CACD;CACA,SAAS;EACR,OAAO,KAAK,QAAQ;CACrB;CACA,QAAQ;EACP,OAAO,KAAK,QAAQ,SAAS,WAAW;CACzC;CACA,WAAW;CACX,gBAAgB;EACf,OAAO;GACN,KAAK,EAAE,SAAS,KAAK;GACrB,KAAK,EAAE,SAAS,KAAK;GACrB,OAAO,EAAE,SAAS,KAAK;GACvB,OAAO,EAAE,SAAS,KAAK;GACvB,QAAQ,EAAE,SAAS,KAAK;EACzB;CACD;CACA,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,aAAa,IACvB,EAAI,MAAM,gBAAgB;GAC3B;GAQA,OAPA,EAAI,MAAM,aAAa,UACvB,EAAI,MAAM,gBAAgB,QACtB,EAAG,YAAY,EAAG,eAAe,IAAG,EAAa,KAEpD,EAAG,SAAS,GACZ,EAAG,UAAU,IAEP;EACR;CACD;CACA,cAAc;EACb,OAAO,EAAE,WAAW,OAAa,EAAE,kBAC3B,EAAS,cAAc;GAC7B,MAAM,KAAK;GACX,OAAO;EACR,CAAC,EACA;CACH;CACA,gBAAgB;EACf,OAAO,CAAC,EAAc;GACrB,MAAM;GACN,MAAM,KAAK;GACX,gBAAgB,MAAU;IACzB,IAAM,KAAK,GAAK,GAAK,KAAS;IAC9B,OAAO;KACN;KACA;KACA;IACD;GACD;EACD,CAAC,CAAC;CACH;AACD,CAAC,GAGG,IAAc"}
1
+ {"version":3,"file":"index.js","names":["mergeAttributes","nodeInputRule","Node","getRenderedAttributes","ResizableNodeView","inputRegex","Image","HTMLAttributes","helpers","token","src","node","alt","title","resizeManagedAttributes","el","mergedAttributes","key","value","previousHTMLAttributes","syncImageSource","nodeView","width","height","pos","getPos","updatedNode","extensionAttributes","editor","attribute","newHTMLAttributes","minWidth","minHeight","alwaysPreserveAspectRatio","dom","showNodeView","commands","options","match","src_default"],"sources":["../../../../../../node_modules/.bun/@tiptap+extension-image@3.31.4+e39601fe346c19ab/node_modules/@tiptap/extension-image/dist/index.js"],"sourcesContent":["import { Node, ResizableNodeView, getRenderedAttributes, mergeAttributes, nodeInputRule } from \"@tiptap/core\";\n//#region src/image.ts\n/**\n* Matches an image to a ![image](src \"title\") on input.\n*/\nconst inputRegex = /(?:^|\\s)(!\\[(.+|:?)]\\((\\S+)(?:(?:\\s+)[\"'](\\S+)[\"'])?\\))$/;\n/**\n* This extension allows you to insert images.\n* @see https://www.tiptap.dev/api/nodes/image\n*/\nconst Image = Node.create({\n\tname: \"image\",\n\taddOptions() {\n\t\treturn {\n\t\t\tinline: false,\n\t\t\tallowBase64: false,\n\t\t\tHTMLAttributes: {},\n\t\t\tresize: false\n\t\t};\n\t},\n\tinline() {\n\t\treturn this.options.inline;\n\t},\n\tgroup() {\n\t\treturn this.options.inline ? \"inline\" : \"block\";\n\t},\n\tdraggable: true,\n\taddAttributes() {\n\t\treturn {\n\t\t\tsrc: { default: null },\n\t\t\talt: { default: null },\n\t\t\ttitle: { default: null },\n\t\t\twidth: { default: null },\n\t\t\theight: { default: null }\n\t\t};\n\t},\n\tparseHTML() {\n\t\treturn [{ tag: this.options.allowBase64 ? \"img[src]\" : \"img[src]:not([src^=\\\"data:\\\"])\" }];\n\t},\n\trenderHTML({ HTMLAttributes }) {\n\t\treturn [\"img\", mergeAttributes(this.options.HTMLAttributes, HTMLAttributes)];\n\t},\n\tparseMarkdown: (token, helpers) => {\n\t\treturn helpers.createNode(\"image\", {\n\t\t\tsrc: token.href,\n\t\t\ttitle: token.title,\n\t\t\talt: token.text\n\t\t});\n\t},\n\trenderMarkdown: (node) => {\n\t\tvar _node$attrs$src, _node$attrs, _node$attrs$alt, _node$attrs2, _node$attrs$title, _node$attrs3;\n\t\tconst src = (_node$attrs$src = (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.src) !== null && _node$attrs$src !== void 0 ? _node$attrs$src : \"\";\n\t\tconst alt = (_node$attrs$alt = (_node$attrs2 = node.attrs) === null || _node$attrs2 === void 0 ? void 0 : _node$attrs2.alt) !== null && _node$attrs$alt !== void 0 ? _node$attrs$alt : \"\";\n\t\tconst title = (_node$attrs$title = (_node$attrs3 = node.attrs) === null || _node$attrs3 === void 0 ? void 0 : _node$attrs3.title) !== null && _node$attrs$title !== void 0 ? _node$attrs$title : \"\";\n\t\treturn title ? `![${alt}](${src} \"${title}\")` : `![${alt}](${src})`;\n\t},\n\taddNodeView() {\n\t\tif (!this.options.resize || !this.options.resize.enabled || typeof document === \"undefined\") return null;\n\t\tconst { directions, minWidth, minHeight, alwaysPreserveAspectRatio } = this.options.resize;\n\t\tconst resizeManagedAttributes = /* @__PURE__ */ new Set([\n\t\t\t\"src\",\n\t\t\t\"width\",\n\t\t\t\"height\"\n\t\t]);\n\t\treturn ({ node, getPos, HTMLAttributes, editor }) => {\n\t\t\tconst el = document.createElement(\"img\");\n\t\t\tel.draggable = false;\n\t\t\tconst mergedAttributes = mergeAttributes(this.options.HTMLAttributes, HTMLAttributes);\n\t\t\tObject.entries(mergedAttributes).forEach(([key, value]) => {\n\t\t\t\tif (value != null) switch (key) {\n\t\t\t\t\tcase \"src\":\n\t\t\t\t\tcase \"width\":\n\t\t\t\t\tcase \"height\": break;\n\t\t\t\t\tdefault: el.setAttribute(key, value);\n\t\t\t\t}\n\t\t\t});\n\t\t\tif (mergedAttributes.src !== null) el.src = mergedAttributes.src;\n\t\t\tlet previousHTMLAttributes = { ...HTMLAttributes };\n\t\t\tconst syncImageSource = (src) => {\n\t\t\t\tif (typeof src === \"string\" && src !== \"\") {\n\t\t\t\t\tif (el.getAttribute(\"src\") !== src) el.src = src;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif (el.hasAttribute(\"src\")) el.removeAttribute(\"src\");\n\t\t\t\tif (el.src !== \"\") el.src = \"\";\n\t\t\t};\n\t\t\tsyncImageSource(HTMLAttributes.src);\n\t\t\tconst onUpdate = (updatedNode) => {\n\t\t\t\tif (updatedNode.type !== node.type) return false;\n\t\t\t\tconst extensionAttributes = editor.extensionManager.attributes.filter((attribute) => attribute.type === updatedNode.type.name);\n\t\t\t\tconst newHTMLAttributes = getRenderedAttributes(updatedNode, extensionAttributes);\n\t\t\t\tObject.keys(previousHTMLAttributes).forEach((key) => {\n\t\t\t\t\tif (!resizeManagedAttributes.has(key) && !(key in newHTMLAttributes)) el.removeAttribute(key);\n\t\t\t\t});\n\t\t\t\tObject.entries(newHTMLAttributes).forEach(([key, value]) => {\n\t\t\t\t\tif (resizeManagedAttributes.has(key)) return;\n\t\t\t\t\tif (value != null) el.setAttribute(key, value);\n\t\t\t\t\telse el.removeAttribute(key);\n\t\t\t\t});\n\t\t\t\tsyncImageSource(newHTMLAttributes.src);\n\t\t\t\tpreviousHTMLAttributes = newHTMLAttributes;\n\t\t\t\treturn true;\n\t\t\t};\n\t\t\tconst nodeView = new ResizableNodeView({\n\t\t\t\telement: el,\n\t\t\t\teditor,\n\t\t\t\tnode,\n\t\t\t\tgetPos,\n\t\t\t\tonResize: (width, height) => {\n\t\t\t\t\tel.style.width = `${width}px`;\n\t\t\t\t\tel.style.height = `${height}px`;\n\t\t\t\t},\n\t\t\t\tonCommit: (width, height) => {\n\t\t\t\t\tconst pos = getPos();\n\t\t\t\t\tif (pos === void 0) return;\n\t\t\t\t\tthis.editor.chain().setNodeSelection(pos).updateAttributes(this.name, {\n\t\t\t\t\t\twidth,\n\t\t\t\t\t\theight\n\t\t\t\t\t}).run();\n\t\t\t\t},\n\t\t\t\tonUpdate,\n\t\t\t\toptions: {\n\t\t\t\t\tdirections,\n\t\t\t\t\tmin: {\n\t\t\t\t\t\twidth: minWidth,\n\t\t\t\t\t\theight: minHeight\n\t\t\t\t\t},\n\t\t\t\t\tpreserveAspectRatio: alwaysPreserveAspectRatio === true\n\t\t\t\t}\n\t\t\t});\n\t\t\tconst dom = nodeView.dom;\n\t\t\tconst showNodeView = () => {\n\t\t\t\tdom.style.visibility = \"\";\n\t\t\t\tdom.style.pointerEvents = \"\";\n\t\t\t};\n\t\t\tdom.style.visibility = \"hidden\";\n\t\t\tdom.style.pointerEvents = \"none\";\n\t\t\tif (el.complete && el.naturalWidth > 0) showNodeView();\n\t\t\telse {\n\t\t\t\tel.onload = showNodeView;\n\t\t\t\tel.onerror = showNodeView;\n\t\t\t}\n\t\t\treturn nodeView;\n\t\t};\n\t},\n\taddCommands() {\n\t\treturn { setImage: (options) => ({ commands }) => {\n\t\t\treturn commands.insertContent({\n\t\t\t\ttype: this.name,\n\t\t\t\tattrs: options\n\t\t\t});\n\t\t} };\n\t},\n\taddInputRules() {\n\t\treturn [nodeInputRule({\n\t\t\tfind: inputRegex,\n\t\t\ttype: this.type,\n\t\t\tgetAttributes: (match) => {\n\t\t\t\tconst [, , alt, src, title] = match;\n\t\t\t\treturn {\n\t\t\t\t\tsrc,\n\t\t\t\t\talt,\n\t\t\t\t\ttitle\n\t\t\t\t};\n\t\t\t}\n\t\t})];\n\t}\n});\n//#endregion\n//#region src/index.ts\nvar src_default = Image;\n//#endregion\nexport { Image, src_default as default, inputRegex };\n\n//# sourceMappingURL=index.js.map"],"ignoreList":[0],"mappings":";;AAKA,IAAMK,IAAa,4DAKbC,IAAQJ,EAAK,OAAO;CACzB,MAAM;CACN,aAAa;EACZ,OAAO;GACN,QAAQ;GACR,aAAa;GACb,gBAAgB,CAAC;GACjB,QAAQ;EACT;CACD;CACA,SAAS;EACR,OAAO,KAAK,QAAQ;CACrB;CACA,QAAQ;EACP,OAAO,KAAK,QAAQ,SAAS,WAAW;CACzC;CACA,WAAW;CACX,gBAAgB;EACf,OAAO;GACN,KAAK,EAAE,SAAS,KAAK;GACrB,KAAK,EAAE,SAAS,KAAK;GACrB,OAAO,EAAE,SAAS,KAAK;GACvB,OAAO,EAAE,SAAS,KAAK;GACvB,QAAQ,EAAE,SAAS,KAAK;EACzB;CACD;CACA,YAAY;EACX,OAAO,CAAC,EAAE,KAAK,KAAK,QAAQ,cAAc,aAAa,iCAAiC,CAAC;CAC1F;CACA,WAAW,EAAE,qBAAkB;EAC9B,OAAO,CAAC,OAAOF,EAAgB,KAAK,QAAQ,gBAAgBO,CAAc,CAAC;CAC5E;CACA,gBAAgB,GAAO,MACfC,EAAQ,WAAW,SAAS;EAClC,KAAKC,EAAM;EACX,OAAOA,EAAM;EACb,KAAKA,EAAM;CACZ,CAAC;CAEF,iBAAiB,MAAS;EAEzB,IAAMC,IAAwCC,EAAK,OAAiE,OAAgE,IAC9KC,IAAyCD,EAAK,OAAmE,OAAgE,IACjLE,IAA6CF,EAAK,OAAmE,SAAsE;EACjM,OAAOE,IAAQ,KAAKD,EAAI,IAAIF,EAAI,IAAIG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AAK;GACX,gBAAgB,MAAU;IACzB,IAAM,KAAKO,GAAKF,GAAKG,KAASyB;IAC9B,OAAO;KACN;KACA;KACA;IACD;GACD;EACD,CAAC,CAAC;CACH;AACD,CAAC,GAGGC,IAAcjC"}
@@ -1,4 +1,4 @@
1
- import { n as e } from "../dist-BLT2aMxu.js";
1
+ import { n as e } from "../dist-C2dWnbCz.js";
2
2
  //#region ../../../node_modules/.bun/@tiptap+extension-list-item@3.31.4+4ad255b50f8c9c6d/node_modules/@tiptap/extension-list-item/dist/index.js
3
3
  var t = e;
4
4
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["ListItem$1"],"sources":["../../../../../../node_modules/.bun/@tiptap+extension-list-item@3.31.4+4ad255b50f8c9c6d/node_modules/@tiptap/extension-list-item/dist/index.js"],"sourcesContent":["import { ListItem, ListItem as ListItem$1 } from \"@tiptap/extension-list\";\n//#region src/index.ts\nvar src_default = ListItem$1;\n//#endregion\nexport { ListItem, src_default as default };\n\n//# sourceMappingURL=index.js.map"],"x_google_ignoreList":[0],"mappings":";;AAEA,IAAI,IAAcA"}
1
+ {"version":3,"file":"index.js","names":["ListItem$1","ListItem","src_default"],"sources":["../../../../../../node_modules/.bun/@tiptap+extension-list-item@3.31.4+4ad255b50f8c9c6d/node_modules/@tiptap/extension-list-item/dist/index.js"],"sourcesContent":["import { ListItem, ListItem as ListItem$1 } from \"@tiptap/extension-list\";\n//#region src/index.ts\nvar src_default = ListItem$1;\n//#endregion\nexport { ListItem, src_default as default };\n\n//# sourceMappingURL=index.js.map"],"ignoreList":[0],"mappings":";;AAEA,IAAIE,IAAcF"}
@@ -1,4 +1,4 @@
1
- import { s as e } from "../dist-CJhbhuk0.js";
1
+ import { s as e } from "../dist-C_bRf4Tj.js";
2
2
  //#region ../../../node_modules/.bun/@tiptap+extension-placeholder@3.31.4+6a8bbf18e1b4d9f1/node_modules/@tiptap/extension-placeholder/dist/index.js
3
3
  var t = e;
4
4
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["Placeholder$1"],"sources":["../../../../../../node_modules/.bun/@tiptap+extension-placeholder@3.31.4+6a8bbf18e1b4d9f1/node_modules/@tiptap/extension-placeholder/dist/index.js"],"sourcesContent":["import { Placeholder, Placeholder as Placeholder$1 } from \"@tiptap/extensions\";\n//#region src/index.ts\nvar src_default = Placeholder$1;\n//#endregion\nexport { Placeholder, src_default as default };\n\n//# sourceMappingURL=index.js.map"],"x_google_ignoreList":[0],"mappings":";;AAEA,IAAI,IAAcA"}
1
+ {"version":3,"file":"index.js","names":["Placeholder$1","Placeholder","src_default"],"sources":["../../../../../../node_modules/.bun/@tiptap+extension-placeholder@3.31.4+6a8bbf18e1b4d9f1/node_modules/@tiptap/extension-placeholder/dist/index.js"],"sourcesContent":["import { Placeholder, Placeholder as Placeholder$1 } from \"@tiptap/extensions\";\n//#region src/index.ts\nvar src_default = Placeholder$1;\n//#endregion\nexport { Placeholder, src_default as default };\n\n//# sourceMappingURL=index.js.map"],"ignoreList":[0],"mappings":";;AAEA,IAAIE,IAAcF"}
@@ -1,4 +1,4 @@
1
- import { _n as e, f as t } from "../dist-CbvLhouk.js";
1
+ import { _n as e, f as t } from "../dist-1Ah9gEL8.js";
2
2
  //#region ../../../node_modules/.bun/@tiptap+extension-subscript@3.31.4+e39601fe346c19ab/node_modules/@tiptap/extension-subscript/dist/index.js
3
3
  var n = t.create({
4
4
  name: "subscript",
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../../../node_modules/.bun/@tiptap+extension-subscript@3.31.4+e39601fe346c19ab/node_modules/@tiptap/extension-subscript/dist/index.js"],"sourcesContent":["import { Mark, mergeAttributes } from \"@tiptap/core\";\n//#region src/subscript.ts\n/**\n* This extension allows you to create subscript text.\n* @see https://www.tiptap.dev/api/marks/subscript\n*/\nconst Subscript = Mark.create({\n\tname: \"subscript\",\n\taddOptions() {\n\t\treturn { HTMLAttributes: {} };\n\t},\n\tparseHTML() {\n\t\treturn [{ tag: \"sub\" }, {\n\t\t\tstyle: \"vertical-align\",\n\t\t\tgetAttrs(value) {\n\t\t\t\tif (value !== \"sub\") return false;\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}];\n\t},\n\trenderHTML({ HTMLAttributes }) {\n\t\treturn [\n\t\t\t\"sub\",\n\t\t\tmergeAttributes(this.options.HTMLAttributes, HTMLAttributes),\n\t\t\t0\n\t\t];\n\t},\n\taddCommands() {\n\t\treturn {\n\t\t\tsetSubscript: () => ({ commands }) => {\n\t\t\t\treturn commands.setMark(this.name);\n\t\t\t},\n\t\t\ttoggleSubscript: () => ({ commands }) => {\n\t\t\t\treturn commands.toggleMark(this.name);\n\t\t\t},\n\t\t\tunsetSubscript: () => ({ commands }) => {\n\t\t\t\treturn commands.unsetMark(this.name);\n\t\t\t}\n\t\t};\n\t},\n\taddKeyboardShortcuts() {\n\t\treturn { \"Mod-,\": () => this.editor.commands.toggleSubscript() };\n\t}\n});\n//#endregion\n//#region src/index.ts\nvar src_default = Subscript;\n//#endregion\nexport { Subscript, src_default as default };\n\n//# sourceMappingURL=index.js.map"],"x_google_ignoreList":[0],"mappings":";;AAMA,IAAM,IAAY,EAAK,OAAO;CAC7B,MAAM;CACN,aAAa;EACZ,OAAO,EAAE,gBAAgB,CAAC,EAAE;CAC7B;CACA,YAAY;EACX,OAAO,CAAC,EAAE,KAAK,MAAM,GAAG;GACvB,OAAO;GACP,SAAS,GAAO;IAEf,OADI,MAAU,SACP;GACR;EACD,CAAC;CACF;CACA,WAAW,EAAE,qBAAkB;EAC9B,OAAO;GACN;GACA,EAAgB,KAAK,QAAQ,gBAAgB,CAAc;GAC3D;EACD;CACD;CACA,cAAc;EACb,OAAO;GACN,qBAAqB,EAAE,kBACf,EAAS,QAAQ,KAAK,IAAI;GAElC,wBAAwB,EAAE,kBAClB,EAAS,WAAW,KAAK,IAAI;GAErC,uBAAuB,EAAE,kBACjB,EAAS,UAAU,KAAK,IAAI;EAErC;CACD;CACA,uBAAuB;EACtB,OAAO,EAAE,eAAe,KAAK,OAAO,SAAS,gBAAgB,EAAE;CAChE;AACD,CAAC,GAGG,IAAc"}
1
+ {"version":3,"file":"index.js","names":["mergeAttributes","Mark","Subscript","value","HTMLAttributes","commands","src_default"],"sources":["../../../../../../node_modules/.bun/@tiptap+extension-subscript@3.31.4+e39601fe346c19ab/node_modules/@tiptap/extension-subscript/dist/index.js"],"sourcesContent":["import { Mark, mergeAttributes } from \"@tiptap/core\";\n//#region src/subscript.ts\n/**\n* This extension allows you to create subscript text.\n* @see https://www.tiptap.dev/api/marks/subscript\n*/\nconst Subscript = Mark.create({\n\tname: \"subscript\",\n\taddOptions() {\n\t\treturn { HTMLAttributes: {} };\n\t},\n\tparseHTML() {\n\t\treturn [{ tag: \"sub\" }, {\n\t\t\tstyle: \"vertical-align\",\n\t\t\tgetAttrs(value) {\n\t\t\t\tif (value !== \"sub\") return false;\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}];\n\t},\n\trenderHTML({ HTMLAttributes }) {\n\t\treturn [\n\t\t\t\"sub\",\n\t\t\tmergeAttributes(this.options.HTMLAttributes, HTMLAttributes),\n\t\t\t0\n\t\t];\n\t},\n\taddCommands() {\n\t\treturn {\n\t\t\tsetSubscript: () => ({ commands }) => {\n\t\t\t\treturn commands.setMark(this.name);\n\t\t\t},\n\t\t\ttoggleSubscript: () => ({ commands }) => {\n\t\t\t\treturn commands.toggleMark(this.name);\n\t\t\t},\n\t\t\tunsetSubscript: () => ({ commands }) => {\n\t\t\t\treturn commands.unsetMark(this.name);\n\t\t\t}\n\t\t};\n\t},\n\taddKeyboardShortcuts() {\n\t\treturn { \"Mod-,\": () => this.editor.commands.toggleSubscript() };\n\t}\n});\n//#endregion\n//#region src/index.ts\nvar src_default = Subscript;\n//#endregion\nexport { Subscript, src_default as default };\n\n//# sourceMappingURL=index.js.map"],"ignoreList":[0],"mappings":";;AAMA,IAAME,IAAYD,EAAK,OAAO;CAC7B,MAAM;CACN,aAAa;EACZ,OAAO,EAAE,gBAAgB,CAAC,EAAE;CAC7B;CACA,YAAY;EACX,OAAO,CAAC,EAAE,KAAK,MAAM,GAAG;GACvB,OAAO;GACP,SAAS,GAAO;IAEf,OADIE,MAAU,SACP;GACR;EACD,CAAC;CACF;CACA,WAAW,EAAE,qBAAkB;EAC9B,OAAO;GACN;GACAH,EAAgB,KAAK,QAAQ,gBAAgBI,CAAc;GAC3D;EACD;CACD;CACA,cAAc;EACb,OAAO;GACN,qBAAqB,EAAE,kBACfC,EAAS,QAAQ,KAAK,IAAI;GAElC,wBAAwB,EAAE,kBAClBA,EAAS,WAAW,KAAK,IAAI;GAErC,uBAAuB,EAAE,kBACjBA,EAAS,UAAU,KAAK,IAAI;EAErC;CACD;CACA,uBAAuB;EACtB,OAAO,EAAE,eAAe,KAAK,OAAO,SAAS,gBAAgB,EAAE;CAChE;AACD,CAAC,GAGGC,IAAcJ"}
@@ -1,4 +1,4 @@
1
- import { _n as e, f as t } from "../dist-CbvLhouk.js";
1
+ import { _n as e, f as t } from "../dist-1Ah9gEL8.js";
2
2
  //#region ../../../node_modules/.bun/@tiptap+extension-superscript@3.31.4+e39601fe346c19ab/node_modules/@tiptap/extension-superscript/dist/index.js
3
3
  var n = t.create({
4
4
  name: "superscript",
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../../../node_modules/.bun/@tiptap+extension-superscript@3.31.4+e39601fe346c19ab/node_modules/@tiptap/extension-superscript/dist/index.js"],"sourcesContent":["import { Mark, mergeAttributes } from \"@tiptap/core\";\n//#region src/superscript.ts\n/**\n* This extension allows you to create superscript text.\n* @see https://www.tiptap.dev/api/marks/superscript\n*/\nconst Superscript = Mark.create({\n\tname: \"superscript\",\n\taddOptions() {\n\t\treturn { HTMLAttributes: {} };\n\t},\n\tparseHTML() {\n\t\treturn [{ tag: \"sup\" }, {\n\t\t\tstyle: \"vertical-align\",\n\t\t\tgetAttrs(value) {\n\t\t\t\tif (value !== \"super\") return false;\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}];\n\t},\n\trenderHTML({ HTMLAttributes }) {\n\t\treturn [\n\t\t\t\"sup\",\n\t\t\tmergeAttributes(this.options.HTMLAttributes, HTMLAttributes),\n\t\t\t0\n\t\t];\n\t},\n\taddCommands() {\n\t\treturn {\n\t\t\tsetSuperscript: () => ({ commands }) => {\n\t\t\t\treturn commands.setMark(this.name);\n\t\t\t},\n\t\t\ttoggleSuperscript: () => ({ commands }) => {\n\t\t\t\treturn commands.toggleMark(this.name);\n\t\t\t},\n\t\t\tunsetSuperscript: () => ({ commands }) => {\n\t\t\t\treturn commands.unsetMark(this.name);\n\t\t\t}\n\t\t};\n\t},\n\taddKeyboardShortcuts() {\n\t\treturn { \"Mod-.\": () => this.editor.commands.toggleSuperscript() };\n\t}\n});\n//#endregion\n//#region src/index.ts\nvar src_default = Superscript;\n//#endregion\nexport { Superscript, src_default as default };\n\n//# sourceMappingURL=index.js.map"],"x_google_ignoreList":[0],"mappings":";;AAMA,IAAM,IAAc,EAAK,OAAO;CAC/B,MAAM;CACN,aAAa;EACZ,OAAO,EAAE,gBAAgB,CAAC,EAAE;CAC7B;CACA,YAAY;EACX,OAAO,CAAC,EAAE,KAAK,MAAM,GAAG;GACvB,OAAO;GACP,SAAS,GAAO;IAEf,OADI,MAAU,WACP;GACR;EACD,CAAC;CACF;CACA,WAAW,EAAE,qBAAkB;EAC9B,OAAO;GACN;GACA,EAAgB,KAAK,QAAQ,gBAAgB,CAAc;GAC3D;EACD;CACD;CACA,cAAc;EACb,OAAO;GACN,uBAAuB,EAAE,kBACjB,EAAS,QAAQ,KAAK,IAAI;GAElC,0BAA0B,EAAE,kBACpB,EAAS,WAAW,KAAK,IAAI;GAErC,yBAAyB,EAAE,kBACnB,EAAS,UAAU,KAAK,IAAI;EAErC;CACD;CACA,uBAAuB;EACtB,OAAO,EAAE,eAAe,KAAK,OAAO,SAAS,kBAAkB,EAAE;CAClE;AACD,CAAC,GAGG,IAAc"}
1
+ {"version":3,"file":"index.js","names":["mergeAttributes","Mark","Superscript","value","HTMLAttributes","commands","src_default"],"sources":["../../../../../../node_modules/.bun/@tiptap+extension-superscript@3.31.4+e39601fe346c19ab/node_modules/@tiptap/extension-superscript/dist/index.js"],"sourcesContent":["import { Mark, mergeAttributes } from \"@tiptap/core\";\n//#region src/superscript.ts\n/**\n* This extension allows you to create superscript text.\n* @see https://www.tiptap.dev/api/marks/superscript\n*/\nconst Superscript = Mark.create({\n\tname: \"superscript\",\n\taddOptions() {\n\t\treturn { HTMLAttributes: {} };\n\t},\n\tparseHTML() {\n\t\treturn [{ tag: \"sup\" }, {\n\t\t\tstyle: \"vertical-align\",\n\t\t\tgetAttrs(value) {\n\t\t\t\tif (value !== \"super\") return false;\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}];\n\t},\n\trenderHTML({ HTMLAttributes }) {\n\t\treturn [\n\t\t\t\"sup\",\n\t\t\tmergeAttributes(this.options.HTMLAttributes, HTMLAttributes),\n\t\t\t0\n\t\t];\n\t},\n\taddCommands() {\n\t\treturn {\n\t\t\tsetSuperscript: () => ({ commands }) => {\n\t\t\t\treturn commands.setMark(this.name);\n\t\t\t},\n\t\t\ttoggleSuperscript: () => ({ commands }) => {\n\t\t\t\treturn commands.toggleMark(this.name);\n\t\t\t},\n\t\t\tunsetSuperscript: () => ({ commands }) => {\n\t\t\t\treturn commands.unsetMark(this.name);\n\t\t\t}\n\t\t};\n\t},\n\taddKeyboardShortcuts() {\n\t\treturn { \"Mod-.\": () => this.editor.commands.toggleSuperscript() };\n\t}\n});\n//#endregion\n//#region src/index.ts\nvar src_default = Superscript;\n//#endregion\nexport { Superscript, src_default as default };\n\n//# sourceMappingURL=index.js.map"],"ignoreList":[0],"mappings":";;AAMA,IAAME,IAAcD,EAAK,OAAO;CAC/B,MAAM;CACN,aAAa;EACZ,OAAO,EAAE,gBAAgB,CAAC,EAAE;CAC7B;CACA,YAAY;EACX,OAAO,CAAC,EAAE,KAAK,MAAM,GAAG;GACvB,OAAO;GACP,SAAS,GAAO;IAEf,OADIE,MAAU,WACP;GACR;EACD,CAAC;CACF;CACA,WAAW,EAAE,qBAAkB;EAC9B,OAAO;GACN;GACAH,EAAgB,KAAK,QAAQ,gBAAgBI,CAAc;GAC3D;EACD;CACD;CACA,cAAc;EACb,OAAO;GACN,uBAAuB,EAAE,kBACjBC,EAAS,QAAQ,KAAK,IAAI;GAElC,0BAA0B,EAAE,kBACpBA,EAAS,WAAW,KAAK,IAAI;GAErC,yBAAyB,EAAE,kBACnBA,EAAS,UAAU,KAAK,IAAI;EAErC;CACD;CACA,uBAAuB;EACtB,OAAO,EAAE,eAAe,KAAK,OAAO,SAAS,kBAAkB,EAAE;CAClE;AACD,CAAC,GAGGC,IAAcJ"}
@@ -1,2 +1 @@
1
- import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, p as c, r as l, s as u, t as d, u as f } from "../dist-DwhlRAyY.js";
2
- export { d as DEFAULT_CELL_LINE_SEPARATOR, o as Table, l as TableCell, i as TableHeader, e as TableKit, s as TableRow, u as TableView, t as createColGroup, a as createTable, f as escapeTableCellPipes, n as preprocessTablePipes, r as renderTableToMarkdown, c as updateColumns };
1
+ export { t as DEFAULT_CELL_LINE_SEPARATOR, n as Table, r as TableCell, i as TableHeader, a as TableKit, o as TableRow, s as TableView, c as createColGroup, l as createTable, u as escapeTableCellPipes, d as preprocessTablePipes, f as renderTableToMarkdown, p as updateColumns } from "../dist-COqKtKEY.js";
@@ -1,4 +1,4 @@
1
- import { r as e } from "../dist-DwhlRAyY.js";
1
+ import { r as e } from "../dist-COqKtKEY.js";
2
2
  //#region ../../../node_modules/.bun/@tiptap+extension-table-cell@3.31.4+879eaf604ad5ee7f/node_modules/@tiptap/extension-table-cell/dist/index.js
3
3
  var t = e;
4
4
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["TableCell$1"],"sources":["../../../../../../node_modules/.bun/@tiptap+extension-table-cell@3.31.4+879eaf604ad5ee7f/node_modules/@tiptap/extension-table-cell/dist/index.js"],"sourcesContent":["import { TableCell, TableCell as TableCell$1 } from \"@tiptap/extension-table\";\n//#region src/index.ts\nvar src_default = TableCell$1;\n//#endregion\nexport { TableCell, src_default as default };\n\n//# sourceMappingURL=index.js.map"],"x_google_ignoreList":[0],"mappings":";;AAEA,IAAI,IAAcA"}
1
+ {"version":3,"file":"index.js","names":["TableCell$1","TableCell","src_default"],"sources":["../../../../../../node_modules/.bun/@tiptap+extension-table-cell@3.31.4+879eaf604ad5ee7f/node_modules/@tiptap/extension-table-cell/dist/index.js"],"sourcesContent":["import { TableCell, TableCell as TableCell$1 } from \"@tiptap/extension-table\";\n//#region src/index.ts\nvar src_default = TableCell$1;\n//#endregion\nexport { TableCell, src_default as default };\n\n//# sourceMappingURL=index.js.map"],"ignoreList":[0],"mappings":";;AAEA,IAAIE,IAAcF"}
@@ -1,4 +1,4 @@
1
- import { i as e } from "../dist-DwhlRAyY.js";
1
+ import { i as e } from "../dist-COqKtKEY.js";
2
2
  //#region ../../../node_modules/.bun/@tiptap+extension-table-header@3.31.4+879eaf604ad5ee7f/node_modules/@tiptap/extension-table-header/dist/index.js
3
3
  var t = e;
4
4
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["TableHeader$1"],"sources":["../../../../../../node_modules/.bun/@tiptap+extension-table-header@3.31.4+879eaf604ad5ee7f/node_modules/@tiptap/extension-table-header/dist/index.js"],"sourcesContent":["import { TableHeader, TableHeader as TableHeader$1 } from \"@tiptap/extension-table\";\n//#region src/index.ts\nvar src_default = TableHeader$1;\n//#endregion\nexport { TableHeader, src_default as default };\n\n//# sourceMappingURL=index.js.map"],"x_google_ignoreList":[0],"mappings":";;AAEA,IAAI,IAAcA"}
1
+ {"version":3,"file":"index.js","names":["TableHeader$1","TableHeader","src_default"],"sources":["../../../../../../node_modules/.bun/@tiptap+extension-table-header@3.31.4+879eaf604ad5ee7f/node_modules/@tiptap/extension-table-header/dist/index.js"],"sourcesContent":["import { TableHeader, TableHeader as TableHeader$1 } from \"@tiptap/extension-table\";\n//#region src/index.ts\nvar src_default = TableHeader$1;\n//#endregion\nexport { TableHeader, src_default as default };\n\n//# sourceMappingURL=index.js.map"],"ignoreList":[0],"mappings":";;AAEA,IAAIE,IAAcF"}
@@ -1,4 +1,4 @@
1
- import { o as e } from "../dist-DwhlRAyY.js";
1
+ import { o as e } from "../dist-COqKtKEY.js";
2
2
  //#region ../../../node_modules/.bun/@tiptap+extension-table-row@3.31.4+879eaf604ad5ee7f/node_modules/@tiptap/extension-table-row/dist/index.js
3
3
  var t = e;
4
4
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["TableRow$1"],"sources":["../../../../../../node_modules/.bun/@tiptap+extension-table-row@3.31.4+879eaf604ad5ee7f/node_modules/@tiptap/extension-table-row/dist/index.js"],"sourcesContent":["import { TableRow, TableRow as TableRow$1 } from \"@tiptap/extension-table\";\n//#region src/index.ts\nvar src_default = TableRow$1;\n//#endregion\nexport { TableRow, src_default as default };\n\n//# sourceMappingURL=index.js.map"],"x_google_ignoreList":[0],"mappings":";;AAEA,IAAI,IAAcA"}
1
+ {"version":3,"file":"index.js","names":["TableRow$1","TableRow","src_default"],"sources":["../../../../../../node_modules/.bun/@tiptap+extension-table-row@3.31.4+879eaf604ad5ee7f/node_modules/@tiptap/extension-table-row/dist/index.js"],"sourcesContent":["import { TableRow, TableRow as TableRow$1 } from \"@tiptap/extension-table\";\n//#region src/index.ts\nvar src_default = TableRow$1;\n//#endregion\nexport { TableRow, src_default as default };\n\n//# sourceMappingURL=index.js.map"],"ignoreList":[0],"mappings":";;AAEA,IAAIE,IAAcF"}
@@ -1,4 +1,4 @@
1
- import { s as e, un as t } from "../dist-CbvLhouk.js";
1
+ import { s as e, un as t } from "../dist-1Ah9gEL8.js";
2
2
  //#region ../../../node_modules/.bun/@tiptap+extension-text-align@3.31.4+e39601fe346c19ab/node_modules/@tiptap/extension-text-align/dist/index.js
3
3
  var n = e.create({
4
4
  name: "textAlign",
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../../../node_modules/.bun/@tiptap+extension-text-align@3.31.4+e39601fe346c19ab/node_modules/@tiptap/extension-text-align/dist/index.js"],"sourcesContent":["import { Extension, isValidCSSStyleValue } from \"@tiptap/core\";\n//#region src/text-align.ts\n/**\n* This extension allows you to align text.\n* @see https://www.tiptap.dev/api/extensions/text-align\n*/\nconst TextAlign = Extension.create({\n\tname: \"textAlign\",\n\taddOptions() {\n\t\treturn {\n\t\t\ttypes: [],\n\t\t\talignments: [\n\t\t\t\t\"left\",\n\t\t\t\t\"center\",\n\t\t\t\t\"right\",\n\t\t\t\t\"justify\"\n\t\t\t],\n\t\t\tdefaultAlignment: null\n\t\t};\n\t},\n\taddGlobalAttributes() {\n\t\treturn [{\n\t\t\ttypes: this.options.types,\n\t\t\tattributes: { textAlign: {\n\t\t\t\tdefault: this.options.defaultAlignment,\n\t\t\t\tparseHTML: (element) => {\n\t\t\t\t\tconst alignment = element.style.textAlign;\n\t\t\t\t\treturn this.options.alignments.includes(alignment) ? alignment : this.options.defaultAlignment;\n\t\t\t\t},\n\t\t\t\trenderHTML: (attributes) => {\n\t\t\t\t\tif (!isValidCSSStyleValue(attributes.textAlign) || !this.options.alignments.includes(attributes.textAlign)) return {};\n\t\t\t\t\treturn { style: `text-align: ${attributes.textAlign}` };\n\t\t\t\t}\n\t\t\t} }\n\t\t}];\n\t},\n\taddCommands() {\n\t\treturn {\n\t\t\tsetTextAlign: (alignment) => ({ commands }) => {\n\t\t\t\tif (!this.options.alignments.includes(alignment)) return false;\n\t\t\t\treturn this.options.types.map((type) => commands.updateAttributes(type, { textAlign: alignment })).some((response) => response);\n\t\t\t},\n\t\t\tunsetTextAlign: () => ({ commands }) => {\n\t\t\t\treturn this.options.types.map((type) => commands.resetAttributes(type, \"textAlign\")).some((response) => response);\n\t\t\t},\n\t\t\ttoggleTextAlign: (alignment) => ({ editor, commands }) => {\n\t\t\t\tif (!this.options.alignments.includes(alignment)) return false;\n\t\t\t\tif (editor.isActive({ textAlign: alignment })) return commands.unsetTextAlign();\n\t\t\t\treturn commands.setTextAlign(alignment);\n\t\t\t}\n\t\t};\n\t},\n\taddKeyboardShortcuts() {\n\t\treturn {\n\t\t\t\"Mod-Shift-l\": () => this.editor.commands.setTextAlign(\"left\"),\n\t\t\t\"Mod-Shift-e\": () => this.editor.commands.setTextAlign(\"center\"),\n\t\t\t\"Mod-Shift-r\": () => this.editor.commands.setTextAlign(\"right\"),\n\t\t\t\"Mod-Shift-j\": () => this.editor.commands.setTextAlign(\"justify\")\n\t\t};\n\t}\n});\n//#endregion\n//#region src/index.ts\nvar src_default = TextAlign;\n//#endregion\nexport { TextAlign, src_default as default };\n\n//# sourceMappingURL=index.js.map"],"x_google_ignoreList":[0],"mappings":";;AAMA,IAAM,IAAY,EAAU,OAAO;CAClC,MAAM;CACN,aAAa;EACZ,OAAO;GACN,OAAO,CAAC;GACR,YAAY;IACX;IACA;IACA;IACA;GACD;GACA,kBAAkB;EACnB;CACD;CACA,sBAAsB;EACrB,OAAO,CAAC;GACP,OAAO,KAAK,QAAQ;GACpB,YAAY,EAAE,WAAW;IACxB,SAAS,KAAK,QAAQ;IACtB,YAAY,MAAY;KACvB,IAAM,IAAY,EAAQ,MAAM;KAChC,OAAO,KAAK,QAAQ,WAAW,SAAS,CAAS,IAAI,IAAY,KAAK,QAAQ;IAC/E;IACA,aAAa,MACR,CAAC,EAAqB,EAAW,SAAS,KAAK,CAAC,KAAK,QAAQ,WAAW,SAAS,EAAW,SAAS,IAAU,CAAC,IAC7G,EAAE,OAAO,eAAe,EAAW,YAAY;GAExD,EAAE;EACH,CAAC;CACF;CACA,cAAc;EACb,OAAO;GACN,eAAe,OAAe,EAAE,kBAC1B,KAAK,QAAQ,WAAW,SAAS,CAAS,IACxC,KAAK,QAAQ,MAAM,KAAK,MAAS,EAAS,iBAAiB,GAAM,EAAE,WAAW,EAAU,CAAC,CAAC,CAAC,CAAC,MAAM,MAAa,CAAQ,IADrE;GAG1D,uBAAuB,EAAE,kBACjB,KAAK,QAAQ,MAAM,KAAK,MAAS,EAAS,gBAAgB,GAAM,WAAW,CAAC,CAAC,CAAC,MAAM,MAAa,CAAQ;GAEjH,kBAAkB,OAAe,EAAE,WAAQ,kBACrC,KAAK,QAAQ,WAAW,SAAS,CAAS,IAC3C,EAAO,SAAS,EAAE,WAAW,EAAU,CAAC,IAAU,EAAS,eAAe,IACvE,EAAS,aAAa,CAAS,IAFmB;EAI3D;CACD;CACA,uBAAuB;EACtB,OAAO;GACN,qBAAqB,KAAK,OAAO,SAAS,aAAa,MAAM;GAC7D,qBAAqB,KAAK,OAAO,SAAS,aAAa,QAAQ;GAC/D,qBAAqB,KAAK,OAAO,SAAS,aAAa,OAAO;GAC9D,qBAAqB,KAAK,OAAO,SAAS,aAAa,SAAS;EACjE;CACD;AACD,CAAC,GAGG,IAAc"}
1
+ {"version":3,"file":"index.js","names":["Extension","isValidCSSStyleValue","TextAlign","alignment","element","attributes","commands","type","response","editor","src_default"],"sources":["../../../../../../node_modules/.bun/@tiptap+extension-text-align@3.31.4+e39601fe346c19ab/node_modules/@tiptap/extension-text-align/dist/index.js"],"sourcesContent":["import { Extension, isValidCSSStyleValue } from \"@tiptap/core\";\n//#region src/text-align.ts\n/**\n* This extension allows you to align text.\n* @see https://www.tiptap.dev/api/extensions/text-align\n*/\nconst TextAlign = Extension.create({\n\tname: \"textAlign\",\n\taddOptions() {\n\t\treturn {\n\t\t\ttypes: [],\n\t\t\talignments: [\n\t\t\t\t\"left\",\n\t\t\t\t\"center\",\n\t\t\t\t\"right\",\n\t\t\t\t\"justify\"\n\t\t\t],\n\t\t\tdefaultAlignment: null\n\t\t};\n\t},\n\taddGlobalAttributes() {\n\t\treturn [{\n\t\t\ttypes: this.options.types,\n\t\t\tattributes: { textAlign: {\n\t\t\t\tdefault: this.options.defaultAlignment,\n\t\t\t\tparseHTML: (element) => {\n\t\t\t\t\tconst alignment = element.style.textAlign;\n\t\t\t\t\treturn this.options.alignments.includes(alignment) ? alignment : this.options.defaultAlignment;\n\t\t\t\t},\n\t\t\t\trenderHTML: (attributes) => {\n\t\t\t\t\tif (!isValidCSSStyleValue(attributes.textAlign) || !this.options.alignments.includes(attributes.textAlign)) return {};\n\t\t\t\t\treturn { style: `text-align: ${attributes.textAlign}` };\n\t\t\t\t}\n\t\t\t} }\n\t\t}];\n\t},\n\taddCommands() {\n\t\treturn {\n\t\t\tsetTextAlign: (alignment) => ({ commands }) => {\n\t\t\t\tif (!this.options.alignments.includes(alignment)) return false;\n\t\t\t\treturn this.options.types.map((type) => commands.updateAttributes(type, { textAlign: alignment })).some((response) => response);\n\t\t\t},\n\t\t\tunsetTextAlign: () => ({ commands }) => {\n\t\t\t\treturn this.options.types.map((type) => commands.resetAttributes(type, \"textAlign\")).some((response) => response);\n\t\t\t},\n\t\t\ttoggleTextAlign: (alignment) => ({ editor, commands }) => {\n\t\t\t\tif (!this.options.alignments.includes(alignment)) return false;\n\t\t\t\tif (editor.isActive({ textAlign: alignment })) return commands.unsetTextAlign();\n\t\t\t\treturn commands.setTextAlign(alignment);\n\t\t\t}\n\t\t};\n\t},\n\taddKeyboardShortcuts() {\n\t\treturn {\n\t\t\t\"Mod-Shift-l\": () => this.editor.commands.setTextAlign(\"left\"),\n\t\t\t\"Mod-Shift-e\": () => this.editor.commands.setTextAlign(\"center\"),\n\t\t\t\"Mod-Shift-r\": () => this.editor.commands.setTextAlign(\"right\"),\n\t\t\t\"Mod-Shift-j\": () => this.editor.commands.setTextAlign(\"justify\")\n\t\t};\n\t}\n});\n//#endregion\n//#region src/index.ts\nvar src_default = TextAlign;\n//#endregion\nexport { TextAlign, src_default as default };\n\n//# sourceMappingURL=index.js.map"],"ignoreList":[0],"mappings":";;AAMA,IAAME,IAAYF,EAAU,OAAO;CAClC,MAAM;CACN,aAAa;EACZ,OAAO;GACN,OAAO,CAAC;GACR,YAAY;IACX;IACA;IACA;IACA;GACD;GACA,kBAAkB;EACn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from "../dist-CbvLhouk.js";
1
+ import { _n as e, bt as t, f as n, s as r, un as i } from "../dist-1Ah9gEL8.js";
2
2
  //#region ../../../node_modules/.bun/@tiptap+extension-text-style@3.31.4+e39601fe346c19ab/node_modules/@tiptap/extension-text-style/dist/index.js
3
3
  var a = 20, o = (e, t = 0) => {
4
4
  let n = [];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../../../node_modules/.bun/@tiptap+extension-text-style@3.31.4+e39601fe346c19ab/node_modules/@tiptap/extension-text-style/dist/index.js"],"sourcesContent":["import { Extension, Mark, getStyleProperty, isValidCSSStyleValue, mergeAttributes } from \"@tiptap/core\";\n//#region src/text-style/index.ts\nconst MAX_FIND_CHILD_SPAN_DEPTH = 20;\n/**\n* Returns all next child spans, either direct children or nested deeper\n* but won't traverse deeper into child spans found, will only go MAX_FIND_CHILD_SPAN_DEPTH levels deep (default: 20)\n*/\nconst findChildSpans = (element, depth = 0) => {\n\tconst childSpans = [];\n\tif (!element.children.length || depth > MAX_FIND_CHILD_SPAN_DEPTH) return childSpans;\n\tArray.from(element.children).forEach((child) => {\n\t\tif (child.tagName === \"SPAN\") childSpans.push(child);\n\t\telse if (child.children.length) childSpans.push(...findChildSpans(child, depth + 1));\n\t});\n\treturn childSpans;\n};\nconst mergeNestedSpanStyles = (element) => {\n\tif (!element.children.length) return;\n\tconst childSpans = findChildSpans(element);\n\tif (!childSpans) return;\n\tchildSpans.forEach((childSpan) => {\n\t\tvar _childSpan$parentElem;\n\t\tconst childStyle = childSpan.getAttribute(\"style\");\n\t\tconst closestParentSpanStyleOfChild = (_childSpan$parentElem = childSpan.parentElement) === null || _childSpan$parentElem === void 0 || (_childSpan$parentElem = _childSpan$parentElem.closest(\"span\")) === null || _childSpan$parentElem === void 0 ? void 0 : _childSpan$parentElem.getAttribute(\"style\");\n\t\tchildSpan.setAttribute(\"style\", `${closestParentSpanStyleOfChild};${childStyle}`);\n\t});\n};\n/**\n* This extension allows you to create text styles. It is required by default\n* for the `text-color` and `font-family` extensions.\n* @see https://www.tiptap.dev/api/marks/text-style\n*/\nconst TextStyle = Mark.create({\n\tname: \"textStyle\",\n\tpriority: 101,\n\taddOptions() {\n\t\treturn {\n\t\t\tHTMLAttributes: {},\n\t\t\tmergeNestedSpanStyles: true\n\t\t};\n\t},\n\tparseHTML() {\n\t\treturn [{\n\t\t\ttag: \"span\",\n\t\t\tconsuming: false,\n\t\t\tgetAttrs: (element) => {\n\t\t\t\tif (!element.hasAttribute(\"style\")) return false;\n\t\t\t\tif (this.options.mergeNestedSpanStyles) mergeNestedSpanStyles(element);\n\t\t\t\treturn {};\n\t\t\t}\n\t\t}];\n\t},\n\trenderHTML({ HTMLAttributes }) {\n\t\treturn [\n\t\t\t\"span\",\n\t\t\tmergeAttributes(this.options.HTMLAttributes, HTMLAttributes),\n\t\t\t0\n\t\t];\n\t},\n\taddCommands() {\n\t\treturn {\n\t\t\ttoggleTextStyle: (attributes) => ({ commands }) => {\n\t\t\t\treturn commands.toggleMark(this.name, attributes);\n\t\t\t},\n\t\t\tremoveEmptyTextStyle: () => ({ tr }) => {\n\t\t\t\tconst { selection } = tr;\n\t\t\t\ttr.doc.nodesBetween(selection.from, selection.to, (node, pos) => {\n\t\t\t\t\tif (!node.isInline) return true;\n\t\t\t\t\tif (!node.marks.filter((mark) => mark.type === this.type).some((mark) => Object.values(mark.attrs).some((value) => !!value))) tr.removeMark(pos, pos + node.nodeSize, this.type);\n\t\t\t\t});\n\t\t\t\treturn true;\n\t\t\t}\n\t\t};\n\t}\n});\n//#endregion\n//#region src/background-color/background-color.ts\n/**\n* This extension allows you to color your text.\n* @see https://tiptap.dev/api/extensions/background-color\n*/\nconst BackgroundColor = Extension.create({\n\tname: \"backgroundColor\",\n\taddOptions() {\n\t\treturn { types: [\"textStyle\"] };\n\t},\n\taddGlobalAttributes() {\n\t\treturn [{\n\t\t\ttypes: this.options.types,\n\t\t\tattributes: { backgroundColor: {\n\t\t\t\tdefault: null,\n\t\t\t\tparseHTML: (element) => {\n\t\t\t\t\tvar _getStyleProperty;\n\t\t\t\t\tconst value = (_getStyleProperty = getStyleProperty(element, \"background-color\")) !== null && _getStyleProperty !== void 0 ? _getStyleProperty : element.style.backgroundColor;\n\t\t\t\t\treturn value === null || value === void 0 ? void 0 : value.replace(/['\"]+/g, \"\");\n\t\t\t\t},\n\t\t\t\trenderHTML: (attributes) => {\n\t\t\t\t\tif (!isValidCSSStyleValue(attributes.backgroundColor)) return {};\n\t\t\t\t\treturn { style: `background-color: ${attributes.backgroundColor}` };\n\t\t\t\t}\n\t\t\t} }\n\t\t}];\n\t},\n\taddCommands() {\n\t\treturn {\n\t\t\tsetBackgroundColor: (backgroundColor) => ({ chain }) => {\n\t\t\t\treturn chain().setMark(\"textStyle\", { backgroundColor }).run();\n\t\t\t},\n\t\t\tunsetBackgroundColor: () => ({ chain }) => {\n\t\t\t\treturn chain().setMark(\"textStyle\", { backgroundColor: null }).removeEmptyTextStyle().run();\n\t\t\t}\n\t\t};\n\t}\n});\n//#endregion\n//#region src/color/color.ts\n/**\n* This extension allows you to color your text.\n* @see https://tiptap.dev/api/extensions/color\n*/\nconst Color = Extension.create({\n\tname: \"color\",\n\taddOptions() {\n\t\treturn { types: [\"textStyle\"] };\n\t},\n\taddGlobalAttributes() {\n\t\treturn [{\n\t\t\ttypes: this.options.types,\n\t\t\tattributes: { color: {\n\t\t\t\tdefault: null,\n\t\t\t\tparseHTML: (element) => {\n\t\t\t\t\tvar _getStyleProperty;\n\t\t\t\t\tconst value = (_getStyleProperty = getStyleProperty(element, \"color\")) !== null && _getStyleProperty !== void 0 ? _getStyleProperty : element.style.color;\n\t\t\t\t\treturn value === null || value === void 0 ? void 0 : value.replace(/['\"]+/g, \"\");\n\t\t\t\t},\n\t\t\t\trenderHTML: (attributes) => {\n\t\t\t\t\tif (!isValidCSSStyleValue(attributes.color)) return {};\n\t\t\t\t\treturn { style: `color: ${attributes.color}` };\n\t\t\t\t}\n\t\t\t} }\n\t\t}];\n\t},\n\taddCommands() {\n\t\treturn {\n\t\t\tsetColor: (color) => ({ chain }) => {\n\t\t\t\treturn chain().setMark(\"textStyle\", { color }).run();\n\t\t\t},\n\t\t\tunsetColor: () => ({ chain }) => {\n\t\t\t\treturn chain().setMark(\"textStyle\", { color: null }).removeEmptyTextStyle().run();\n\t\t\t}\n\t\t};\n\t}\n});\n//#endregion\n//#region src/font-family/font-family.ts\n/**\n* This extension allows you to set a font family for text.\n* @see https://www.tiptap.dev/api/extensions/font-family\n*/\nconst FontFamily = Extension.create({\n\tname: \"fontFamily\",\n\taddOptions() {\n\t\treturn { types: [\"textStyle\"] };\n\t},\n\taddGlobalAttributes() {\n\t\treturn [{\n\t\t\ttypes: this.options.types,\n\t\t\tattributes: { fontFamily: {\n\t\t\t\tdefault: null,\n\t\t\t\tparseHTML: (element) => {\n\t\t\t\t\tvar _getStyleProperty;\n\t\t\t\t\treturn (_getStyleProperty = getStyleProperty(element, \"font-family\")) !== null && _getStyleProperty !== void 0 ? _getStyleProperty : element.style.fontFamily;\n\t\t\t\t},\n\t\t\t\trenderHTML: (attributes) => {\n\t\t\t\t\tif (!isValidCSSStyleValue(attributes.fontFamily)) return {};\n\t\t\t\t\treturn { style: `font-family: ${attributes.fontFamily}` };\n\t\t\t\t}\n\t\t\t} }\n\t\t}];\n\t},\n\taddCommands() {\n\t\treturn {\n\t\t\tsetFontFamily: (fontFamily) => ({ chain }) => {\n\t\t\t\treturn chain().setMark(\"textStyle\", { fontFamily }).run();\n\t\t\t},\n\t\t\tunsetFontFamily: () => ({ chain }) => {\n\t\t\t\treturn chain().setMark(\"textStyle\", { fontFamily: null }).removeEmptyTextStyle().run();\n\t\t\t}\n\t\t};\n\t}\n});\n//#endregion\n//#region src/font-size/font-size.ts\n/**\n* This extension allows you to set a font size for text.\n* @see https://www.tiptap.dev/api/extensions/font-size\n*/\nconst FontSize = Extension.create({\n\tname: \"fontSize\",\n\taddOptions() {\n\t\treturn { types: [\"textStyle\"] };\n\t},\n\taddGlobalAttributes() {\n\t\treturn [{\n\t\t\ttypes: this.options.types,\n\t\t\tattributes: { fontSize: {\n\t\t\t\tdefault: null,\n\t\t\t\tparseHTML: (element) => {\n\t\t\t\t\tvar _getStyleProperty;\n\t\t\t\t\treturn (_getStyleProperty = getStyleProperty(element, \"font-size\")) !== null && _getStyleProperty !== void 0 ? _getStyleProperty : element.style.fontSize;\n\t\t\t\t},\n\t\t\t\trenderHTML: (attributes) => {\n\t\t\t\t\tif (!isValidCSSStyleValue(attributes.fontSize)) return {};\n\t\t\t\t\treturn { style: `font-size: ${attributes.fontSize}` };\n\t\t\t\t}\n\t\t\t} }\n\t\t}];\n\t},\n\taddCommands() {\n\t\treturn {\n\t\t\tsetFontSize: (fontSize) => ({ chain }) => {\n\t\t\t\treturn chain().setMark(\"textStyle\", { fontSize }).run();\n\t\t\t},\n\t\t\tunsetFontSize: () => ({ chain }) => {\n\t\t\t\treturn chain().setMark(\"textStyle\", { fontSize: null }).removeEmptyTextStyle().run();\n\t\t\t}\n\t\t};\n\t}\n});\n//#endregion\n//#region src/line-height/line-height.ts\n/**\n* This extension allows you to set the line-height for text.\n* @see https://www.tiptap.dev/api/extensions/line-height\n*/\nconst LineHeight = Extension.create({\n\tname: \"lineHeight\",\n\taddOptions() {\n\t\treturn { types: [\"textStyle\"] };\n\t},\n\taddGlobalAttributes() {\n\t\treturn [{\n\t\t\ttypes: this.options.types,\n\t\t\tattributes: { lineHeight: {\n\t\t\t\tdefault: null,\n\t\t\t\tparseHTML: (element) => {\n\t\t\t\t\tvar _getStyleProperty;\n\t\t\t\t\treturn (_getStyleProperty = getStyleProperty(element, \"line-height\")) !== null && _getStyleProperty !== void 0 ? _getStyleProperty : element.style.lineHeight;\n\t\t\t\t},\n\t\t\t\trenderHTML: (attributes) => {\n\t\t\t\t\tif (!isValidCSSStyleValue(attributes.lineHeight)) return {};\n\t\t\t\t\treturn { style: `line-height: ${attributes.lineHeight}` };\n\t\t\t\t}\n\t\t\t} }\n\t\t}];\n\t},\n\taddCommands() {\n\t\treturn {\n\t\t\tsetLineHeight: (lineHeight) => ({ chain }) => {\n\t\t\t\treturn chain().setMark(\"textStyle\", { lineHeight }).run();\n\t\t\t},\n\t\t\tunsetLineHeight: () => ({ chain }) => {\n\t\t\t\treturn chain().setMark(\"textStyle\", { lineHeight: null }).removeEmptyTextStyle().run();\n\t\t\t}\n\t\t};\n\t}\n});\n//#endregion\n//#region src/text-style-kit/index.ts\n/**\n* The table kit is a collection of table editor extensions.\n*\n* It’s a good starting point for building your own table in Tiptap.\n*/\nconst TextStyleKit = Extension.create({\n\tname: \"textStyleKit\",\n\taddExtensions() {\n\t\tconst extensions = [];\n\t\tif (this.options.backgroundColor !== false) extensions.push(BackgroundColor.configure(this.options.backgroundColor));\n\t\tif (this.options.color !== false) extensions.push(Color.configure(this.options.color));\n\t\tif (this.options.fontFamily !== false) extensions.push(FontFamily.configure(this.options.fontFamily));\n\t\tif (this.options.fontSize !== false) extensions.push(FontSize.configure(this.options.fontSize));\n\t\tif (this.options.lineHeight !== false) extensions.push(LineHeight.configure(this.options.lineHeight));\n\t\tif (this.options.textStyle !== false) extensions.push(TextStyle.configure(this.options.textStyle));\n\t\treturn extensions;\n\t}\n});\n//#endregion\nexport { BackgroundColor, Color, FontFamily, FontSize, LineHeight, TextStyle, TextStyleKit };\n\n//# sourceMappingURL=index.js.map"],"x_google_ignoreList":[0],"mappings":";;AAEA,IAAM,IAA4B,IAK5B,KAAkB,GAAS,IAAQ,MAAM;CAC9C,IAAM,IAAa,CAAC;CAMpB,OALI,CAAC,EAAQ,SAAS,UAAU,IAAQ,KACxC,MAAM,KAAK,EAAQ,QAAQ,CAAC,CAAC,SAAS,MAAU;EAC/C,AAAI,EAAM,YAAY,SAAQ,EAAW,KAAK,CAAK,IAC1C,EAAM,SAAS,UAAQ,EAAW,KAAK,GAAG,EAAe,GAAO,IAAQ,CAAC,CAAC;CACpF,CAAC,GAJyE;AAM3E,GACM,KAAyB,MAAY;CAC1C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Ac,MAAO,EAAW,KAAK,EAAU,UAAU,KAAK,QAAQ,SAAS,CAAC,GAC1F;CACR;AACD,CAAC"}
1
+ {"version":3,"file":"index.js","names":["mergeAttributes","getStyleProperty","Mark","Extension","isValidCSSStyleValue","MAX_FIND_CHILD_SPAN_DEPTH","findChildSpans","childSpans","element","depth","child","mergeNestedSpanStyles","_childSpan$parentElem","childStyle","childSpan","closestParentSpanStyleOfChild","TextStyle","HTMLAttributes","commands","attributes","tr","selection","node","mark","value","pos","BackgroundColor","chain","Color","FontFamily","FontSize","LineHeight","TextStyleKit","extensions"],"sources":["../../../../../../node_modules/.bun/@tiptap+extension-text-style@3.31.4+e39601fe346c19ab/node_modules/@tiptap/extension-text-style/dist/index.js"],"sourcesContent":["import { Extension, Mark, getStyleProperty, isValidCSSStyleValue, mergeAttributes } from \"@tiptap/core\";\n//#region src/text-style/index.ts\nconst MAX_FIND_CHILD_SPAN_DEPTH = 20;\n/**\n* Returns all next child spans, either direct children or nested deeper\n* but won't traverse deeper into child spans found, will only go MAX_FIND_CHILD_SPAN_DEPTH levels deep (default: 20)\n*/\nconst findChildSpans = (element, depth = 0) => {\n\tconst childSpans = [];\n\tif (!element.children.length || depth > MAX_FIND_CHILD_SPAN_DEPTH) return childSpans;\n\tArray.from(element.children).forEach((child) => {\n\t\tif (child.tagName === \"SPAN\") childSpans.push(child);\n\t\telse if (child.children.length) childSpans.push(...findChildSpans(child, depth + 1));\n\t});\n\treturn childSpans;\n};\nconst mergeNestedSpanStyles = (element) => {\n\tif (!element.children.length) return;\n\tconst childSpans = findChildSpans(element);\n\tif (!childSpans) return;\n\tchildSpans.forEach((childSpan) => {\n\t\tvar _childSpan$parentElem;\n\t\tconst childStyle = childSpan.getAttribute(\"style\");\n\t\tconst closestParentSpanStyleOfChild = (_childSpan$parentElem = childSpan.parentElement) === null || _childSpan$parentElem === void 0 || (_childSpan$parentElem = _childSpan$parentElem.closest(\"span\")) === null || _childSpan$parentElem === void 0 ? void 0 : _childSpan$parentElem.getAttribute(\"style\");\n\t\tchildSpan.setAttribute(\"style\", `${closestParentSpanStyleOfChild};${childStyle}`);\n\t});\n};\n/**\n* This extension allows you to create text styles. It is required by default\n* for the `text-color` and `font-family` extensions.\n* @see https://www.tiptap.dev/api/marks/text-style\n*/\nconst TextStyle = Mark.create({\n\tname: \"textStyle\",\n\tpriority: 101,\n\taddOptions() {\n\t\treturn {\n\t\t\tHTMLAttributes: {},\n\t\t\tmergeNestedSpanStyles: true\n\t\t};\n\t},\n\tparseHTML() {\n\t\treturn [{\n\t\t\ttag: \"span\",\n\t\t\tconsuming: false,\n\t\t\tgetAttrs: (element) => {\n\t\t\t\tif (!element.hasAttribute(\"style\")) return false;\n\t\t\t\tif (this.options.mergeNestedSpanStyles) mergeNestedSpanStyles(element);\n\t\t\t\treturn {};\n\t\t\t}\n\t\t}];\n\t},\n\trenderHTML({ HTMLAttributes }) {\n\t\treturn [\n\t\t\t\"span\",\n\t\t\tmergeAttributes(this.options.HTMLAttributes, HTMLAttributes),\n\t\t\t0\n\t\t];\n\t},\n\taddCommands() {\n\t\treturn {\n\t\t\ttoggleTextStyle: (attributes) => ({ commands }) => {\n\t\t\t\treturn commands.toggleMark(this.name, attributes);\n\t\t\t},\n\t\t\tremoveEmptyTextStyle: () => ({ tr }) => {\n\t\t\t\tconst { selection } = tr;\n\t\t\t\ttr.doc.nodesBetween(selection.from, selection.to, (node, pos) => {\n\t\t\t\t\tif (!node.isInline) return true;\n\t\t\t\t\tif (!node.marks.filter((mark) => mark.type === this.type).some((mark) => Object.values(mark.attrs).some((value) => !!value))) tr.removeMark(pos, pos + node.nodeSize, this.type);\n\t\t\t\t});\n\t\t\t\treturn true;\n\t\t\t}\n\t\t};\n\t}\n});\n//#endregion\n//#region src/background-color/background-color.ts\n/**\n* This extension allows you to color your text.\n* @see https://tiptap.dev/api/extensions/background-color\n*/\nconst BackgroundColor = Extension.create({\n\tname: \"backgroundColor\",\n\taddOptions() {\n\t\treturn { types: [\"textStyle\"] };\n\t},\n\taddGlobalAttributes() {\n\t\treturn [{\n\t\t\ttypes: this.options.types,\n\t\t\tattributes: { backgroundColor: {\n\t\t\t\tdefault: null,\n\t\t\t\tparseHTML: (element) => {\n\t\t\t\t\tvar _getStyleProperty;\n\t\t\t\t\tconst value = (_getStyleProperty = getStyleProperty(element, \"background-color\")) !== null && _getStyleProperty !== void 0 ? _getStyleProperty : element.style.backgroundColor;\n\t\t\t\t\treturn value === null || value === void 0 ? void 0 : value.replace(/['\"]+/g, \"\");\n\t\t\t\t},\n\t\t\t\trenderHTML: (attributes) => {\n\t\t\t\t\tif (!isValidCSSStyleValue(attributes.backgroundColor)) return {};\n\t\t\t\t\treturn { style: `background-color: ${attributes.backgroundColor}` };\n\t\t\t\t}\n\t\t\t} }\n\t\t}];\n\t},\n\taddCommands() {\n\t\treturn {\n\t\t\tsetBackgroundColor: (backgroundColor) => ({ chain }) => {\n\t\t\t\treturn chain().setMark(\"textStyle\", { backgroundColor }).run();\n\t\t\t},\n\t\t\tunsetBackgroundColor: () => ({ chain }) => {\n\t\t\t\treturn chain().setMark(\"textStyle\", { backgroundColor: null }).removeEmptyTextStyle().run();\n\t\t\t}\n\t\t};\n\t}\n});\n//#endregion\n//#region src/color/color.ts\n/**\n* This extension allows you to color your text.\n* @see https://tiptap.dev/api/extensions/color\n*/\nconst Color = Extension.create({\n\tname: \"color\",\n\taddOptions() {\n\t\treturn { types: [\"textStyle\"] };\n\t},\n\taddGlobalAttributes() {\n\t\treturn [{\n\t\t\ttypes: this.options.types,\n\t\t\tattributes: { color: {\n\t\t\t\tdefault: null,\n\t\t\t\tparseHTML: (element) => {\n\t\t\t\t\tvar _getStyleProperty;\n\t\t\t\t\tconst value = (_getStyleProperty = getStyleProperty(element, \"color\")) !== null && _getStyleProperty !== void 0 ? _getStyleProperty : element.style.color;\n\t\t\t\t\treturn value === null || value === void 0 ? void 0 : value.replace(/['\"]+/g, \"\");\n\t\t\t\t},\n\t\t\t\trenderHTML: (attributes) => {\n\t\t\t\t\tif (!isValidCSSStyleValue(attributes.color)) return {};\n\t\t\t\t\treturn { style: `color: ${attributes.color}` };\n\t\t\t\t}\n\t\t\t} }\n\t\t}];\n\t},\n\taddCommands() {\n\t\treturn {\n\t\t\tsetColor: (color) => ({ chain }) => {\n\t\t\t\treturn chain().setMark(\"textStyle\", { color }).run();\n\t\t\t},\n\t\t\tunsetColor: () => ({ chain }) => {\n\t\t\t\treturn chain().setMark(\"textStyle\", { color: null }).removeEmptyTextStyle().run();\n\t\t\t}\n\t\t};\n\t}\n});\n//#endregion\n//#region src/font-family/font-family.ts\n/**\n* This extension allows you to set a font family for text.\n* @see https://www.tiptap.dev/api/extensions/font-family\n*/\nconst FontFamily = Extension.create({\n\tname: \"fontFamily\",\n\taddOptions() {\n\t\treturn { types: [\"textStyle\"] };\n\t},\n\taddGlobalAttributes() {\n\t\treturn [{\n\t\t\ttypes: this.options.types,\n\t\t\tattributes: { fontFamily: {\n\t\t\t\tdefault: null,\n\t\t\t\tparseHTML: (element) => {\n\t\t\t\t\tvar _getStyleProperty;\n\t\t\t\t\treturn (_getStyleProperty = getStyleProperty(element, \"font-family\")) !== null && _getStyleProperty !== void 0 ? _getStyleProperty : element.style.fontFamily;\n\t\t\t\t},\n\t\t\t\trenderHTML: (attributes) => {\n\t\t\t\t\tif (!isValidCSSStyleValue(attributes.fontFamily)) return {};\n\t\t\t\t\treturn { style: `font-family: ${attributes.fontFamily}` };\n\t\t\t\t}\n\t\t\t} }\n\t\t}];\n\t},\n\taddCommands() {\n\t\treturn {\n\t\t\tsetFontFamily: (fontFamily) => ({ chain }) => {\n\t\t\t\treturn chain().setMark(\"textStyle\", { fontFamily }).run();\n\t\t\t},\n\t\t\tunsetFontFamily: () => ({ chain }) => {\n\t\t\t\treturn chain().setMark(\"textStyle\", { fontFamily: null }).removeEmptyTextStyle().run();\n\t\t\t}\n\t\t};\n\t}\n});\n//#endregion\n//#region src/font-size/font-size.ts\n/**\n* This extension allows you to set a font size for text.\n* @see https://www.tiptap.dev/api/extensions/font-size\n*/\nconst FontSize = Extension.create({\n\tname: \"fontSize\",\n\taddOptions() {\n\t\treturn { types: [\"textStyle\"] };\n\t},\n\taddGlobalAttributes() {\n\t\treturn [{\n\t\t\ttypes: this.options.types,\n\t\t\tattributes: { fontSize: {\n\t\t\t\tdefault: null,\n\t\t\t\tparseHTML: (element) => {\n\t\t\t\t\tvar _getStyleProperty;\n\t\t\t\t\treturn (_getStyleProperty = getStyleProperty(element, \"font-size\")) !== null && _getStyleProperty !== void 0 ? _getStyleProperty : element.style.fontSize;\n\t\t\t\t},\n\t\t\t\trenderHTML: (attributes) => {\n\t\t\t\t\tif (!isValidCSSStyleValue(attributes.fontSize)) return {};\n\t\t\t\t\treturn { style: `font-size: ${attributes.fontSize}` };\n\t\t\t\t}\n\t\t\t} }\n\t\t}];\n\t},\n\taddCommands() {\n\t\treturn {\n\t\t\tsetFontSize: (fontSize) => ({ chain }) => {\n\t\t\t\treturn chain().setMark(\"textStyle\", { fontSize }).run();\n\t\t\t},\n\t\t\tunsetFontSize: () => ({ chain }) => {\n\t\t\t\treturn chain().setMark(\"textStyle\", { fontSize: null }).removeEmptyTextStyle().run();\n\t\t\t}\n\t\t};\n\t}\n});\n//#endregion\n//#region src/line-height/line-height.ts\n/**\n* This extension allows you to set the line-height for text.\n* @see https://www.tiptap.dev/api/extensions/line-height\n*/\nconst LineHeight = Extension.create({\n\tname: \"lineHeight\",\n\taddOptions() {\n\t\treturn { types: [\"textStyle\"] };\n\t},\n\taddGlobalAttributes() {\n\t\treturn [{\n\t\t\ttypes: this.options.types,\n\t\t\tattributes: { lineHeight: {\n\t\t\t\tdefault: null,\n\t\t\t\tparseHTML: (element) => {\n\t\t\t\t\tvar _getStyleProperty;\n\t\t\t\t\treturn (_getStyleProperty = getStyleProperty(element, \"line-height\")) !== null && _getStyleProperty !== void 0 ? _getStyleProperty : element.style.lineHeight;\n\t\t\t\t},\n\t\t\t\trenderHTML: (attributes) => {\n\t\t\t\t\tif (!isValidCSSStyleValue(attributes.lineHeight)) return {};\n\t\t\t\t\treturn { style: `line-height: ${attributes.lineHeight}` };\n\t\t\t\t}\n\t\t\t} }\n\t\t}];\n\t},\n\taddCommands() {\n\t\treturn {\n\t\t\tsetLineHeight: (lineHeight) => ({ chain }) => {\n\t\t\t\treturn chain().setMark(\"textStyle\", { lineHeight }).run();\n\t\t\t},\n\t\t\tunsetLineHeight: () => ({ chain }) => {\n\t\t\t\treturn chain().setMark(\"textStyle\", { lineHeight: null }).removeEmptyTextStyle().run();\n\t\t\t}\n\t\t};\n\t}\n});\n//#endregion\n//#region src/text-style-kit/index.ts\n/**\n* The table kit is a collection of table editor extensions.\n*\n* It’s a good starting point for building your own table in Tiptap.\n*/\nconst TextStyleKit = Extension.create({\n\tname: \"textStyleKit\",\n\taddExtensions() {\n\t\tconst extensions = [];\n\t\tif (this.options.backgroundColor !== false) extensions.push(BackgroundColor.configure(this.options.backgroundColor));\n\t\tif (this.options.color !== false) extensions.push(Color.configure(this.options.color));\n\t\tif (this.options.fontFamily !== false) extensions.push(FontFamily.configure(this.options.fontFamily));\n\t\tif (this.options.fontSize !== false) extensions.push(FontSize.configure(this.options.fontSize));\n\t\tif (this.options.lineHeight !== false) extensions.push(LineHeight.configure(this.options.lineHeight));\n\t\tif (this.options.textStyle !== false) extensions.push(TextStyle.configure(this.options.textStyle));\n\t\treturn extensions;\n\t}\n});\n//#endregion\nexport { BackgroundColor, Color, FontFamily, FontSize, LineHeight, TextStyle, TextStyleKit };\n\n//# sourceMappingURL=index.js.map"],"ignoreList":[0],"mappings":";;AAEA,IAAMK,IAA4B,IAK5BC,KAAkB,GAAS,IAAQ,MAAM;CAC9C,IAAMC,IAAa,CAAC;CAMpB,OALI,CAACC,EAAQ,SAAS,UAAUC,IAAQJ,KACxC,MAAM,KAAKG,EAAQ,QAAQ,CAAC,CAAC,SAAS,MAAU;EAC/C,AAAIE,EAAM,YAAY,SAAQH,EAAW,KAAKG,CAAK,IAC1CA,E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,QAAQ,eAAe,MAAOK,EAAW,KAAKJ,EAAW,UAAU,KAAK,QAAQ,UAAU,CAAC,GAChG,KAAK,QAAQ,aAAa,MAAOI,EAAW,KAAKH,EAAS,UAAU,KAAK,QAAQ,QAAQ,CAAC,GAC1F,KAAK,QAAQ,eAAe,MAAOG,EAAW,KAAKF,EAAW,UAAU,KAAK,QAAQ,UAAU,CAAC,GAChG,KAAK,QAAQ,cAAc,MAAOE,EAAW,KAAKjB,EAAU,UAAU,KAAK,QAAQ,SAAS,CAAC,GAC1FiB;CACR;AACD,CAAC"}
@@ -1,2 +1 @@
1
- import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, r as c, s as l, t as u, u as d } from "../dist-CJhbhuk0.js";
2
- export { u as CharacterCount, o as DEFAULT_DATA_ATTRIBUTE, c as Dropcursor, i as Focus, e as Gapcursor, s as PLUGIN_KEY, l as Placeholder, t as Selection, a as TrailingNode, d as UndoRedo, n as preparePlaceholderAttribute, r as skipTrailingNodeMeta };
1
+ export { t as CharacterCount, n as DEFAULT_DATA_ATTRIBUTE, r as Dropcursor, i as Focus, a as Gapcursor, o as PLUGIN_KEY, s as Placeholder, c as Selection, l as TrailingNode, u as UndoRedo, d as preparePlaceholderAttribute, f as skipTrailingNodeMeta } from "../dist-C_bRf4Tj.js";
@@ -1,2 +1 @@
1
- import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c } from "../dist-Pg4oVkv2.js";
2
- export { c as AllSelection, i as EditorState, o as NodeSelection, n as Plugin, e as PluginKey, a as Selection, s as SelectionRange, t as TextSelection, r as Transaction };
1
+ export { t as AllSelection, n as EditorState, r as NodeSelection, i as Plugin, a as PluginKey, o as Selection, s as SelectionRange, c as TextSelection, l as Transaction } from "../dist-BVA3Sgbc.js";