@pie-element/shared-editor-runtime 0.1.2-next.20261002215153 → 0.1.2-next.20261005220847

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 (40) hide show
  1. package/dist/browser/{dist-BsIpHitF.js → dist-BLT2aMxu.js} +204 -179
  2. package/dist/browser/dist-BLT2aMxu.js.map +1 -0
  3. package/dist/browser/dist-CJhbhuk0.js +719 -0
  4. package/dist/browser/dist-CJhbhuk0.js.map +1 -0
  5. package/dist/browser/{dist-CL31Mguj.js → dist-CbvLhouk.js} +1767 -1376
  6. package/dist/browser/dist-CbvLhouk.js.map +1 -0
  7. package/dist/browser/{dist-CF7SJxlB.js → dist-DwhlRAyY.js} +402 -351
  8. package/dist/browser/{dist-CF7SJxlB.js.map → dist-DwhlRAyY.js.map} +1 -1
  9. package/dist/browser/tiptap-core/index.js +2 -2
  10. package/dist/browser/tiptap-extension-character-count/index.js +2 -2
  11. package/dist/browser/tiptap-extension-character-count/index.js.map +1 -1
  12. package/dist/browser/tiptap-extension-image/index.js +8 -8
  13. package/dist/browser/tiptap-extension-image/index.js.map +1 -1
  14. package/dist/browser/tiptap-extension-list-item/index.js +2 -2
  15. package/dist/browser/tiptap-extension-list-item/index.js.map +1 -1
  16. package/dist/browser/tiptap-extension-placeholder/index.js +2 -2
  17. package/dist/browser/tiptap-extension-placeholder/index.js.map +1 -1
  18. package/dist/browser/tiptap-extension-subscript/index.js +5 -5
  19. package/dist/browser/tiptap-extension-subscript/index.js.map +1 -1
  20. package/dist/browser/tiptap-extension-superscript/index.js +5 -5
  21. package/dist/browser/tiptap-extension-superscript/index.js.map +1 -1
  22. package/dist/browser/tiptap-extension-table/index.js +1 -1
  23. package/dist/browser/tiptap-extension-table-cell/index.js +2 -2
  24. package/dist/browser/tiptap-extension-table-cell/index.js.map +1 -1
  25. package/dist/browser/tiptap-extension-table-header/index.js +2 -2
  26. package/dist/browser/tiptap-extension-table-header/index.js.map +1 -1
  27. package/dist/browser/tiptap-extension-table-row/index.js +2 -2
  28. package/dist/browser/tiptap-extension-table-row/index.js.map +1 -1
  29. package/dist/browser/tiptap-extension-text-align/index.js +6 -6
  30. package/dist/browser/tiptap-extension-text-align/index.js.map +1 -1
  31. package/dist/browser/tiptap-extension-text-style/index.js +29 -29
  32. package/dist/browser/tiptap-extension-text-style/index.js.map +1 -1
  33. package/dist/browser/tiptap-extensions/index.js +1 -1
  34. package/dist/browser/tiptap-starter-kit/index.js +350 -316
  35. package/dist/browser/tiptap-starter-kit/index.js.map +1 -1
  36. package/package.json +1 -1
  37. package/dist/browser/dist-BsIpHitF.js.map +0 -1
  38. package/dist/browser/dist-BwzOz38C.js +0 -1003
  39. package/dist/browser/dist-BwzOz38C.js.map +0 -1
  40. package/dist/browser/dist-CL31Mguj.js.map +0 -1
@@ -1,2 +1,2 @@
1
- import { $ as ee, $t as te, A as e, An as t, At as n, B as r, Bt as i, C as a, Cn as o, Ct as s, D as c, Dn as l, Dt as u, E as d, En as f, Et as p, F as m, Fn as h, Ft as g, G as _, Gt as v, H as y, Ht as b, I as x, In as S, It as C, J as w, Jt as T, K as E, Kt as D, L as O, Ln as k, Lt as A, M as j, Mn as M, Mt as N, N as P, Nn as F, Nt as I, O as L, On as R, Ot as z, P as B, Pn as V, Pt as H, Q as U, Qt as W, R as G, Rn as K, Rt as q, S as J, Sn as Y, St as X, T as Z, Tn as Q, Tt as ne, U as re, Ut as ie, V as ae, Vt as oe, W as se, Wt as ce, X as le, Xt as ue, Y as de, Yt as fe, Z as pe, Zt as me, _ as he, _n as ge, _t as _e, a as ve, an as ye, at as be, b as xe, bn as Se, bt as Ce, c as we, cn as Te, ct as Ee, d as $, dn as De, dt as Oe, en as ke, et as Ae, f as je, fn as Me, ft as Ne, g as Pe, gn as Fe, gt as Ie, h as Le, hn as Re, ht as ze, i as Be, in as Ve, it as He, j as Ue, jn as We, jt as Ge, k as Ke, kn as qe, kt as Je, l as Ye, ln as Xe, lt as Ze, m as Qe, mn as $e, mt as et, n as tt, nn as nt, nt as rt, o as it, on as at, ot, p as st, pn as ct, pt as lt, q as ut, qt as dt, r as ft, rn as pt, rt as mt, s as ht, sn as gt, st as _t, t as vt, tn as yt, tt as bt, u as xt, un as St, ut as Ct, v as wt, vn as Tt, vt as Et, w as Dt, wn as Ot, wt as kt, x as At, xn as jt, xt as Mt, y as Nt, yn as Pt, yt as Ft, z as It, zn as Lt, zt as Rt } from "../dist-CL31Mguj.js";
2
- export { vt as CommandManager, tt as DECORATION_MANAGER_PLUGIN_KEY, ft as Decoration, Be as DecorationManager, ve as Editor, it as Extendable, ht as Extension, we as Fragment, Ye as InlineDecoration, xt as InputRule, $ as MappablePosition, je as Mark, st as MarkView, Qe as Node, Le as NodeDecoration, Pe as NodePos, he as NodeView, wt as PasteRule, Nt as ResizableNodeView, xe as ResizableNodeview, At as Tracker, J as WidgetDecoration, a as attrsEqual, Dt as callOrReturn, Z as canInsertNode, d as combineTransactionSteps, c as commands, L as createAtomBlockMarkdownSpec, Ke as createBlockMarkdownSpec, e as createChainableState, Ue as createDocument, p as createElement, p as h, j as createInlineMarkdownSpec, P as createMappablePosition, B as createNodeFromContent, m as createStyleTag, x as createWidgetDecoration, O as decodeHtmlEntities, G as defaultBlockAt, It as deleteProps, r as elementFromString, ae as encodeHtmlEntities, y as escapeForRegEx, re as extensions, se as findChildren, _ as findChildrenInRange, E as findDuplicates, ut as findParentNode, w as findParentNodeClosestToPos, de as flattenExtensions, le as fromString, pe as generateHTML, U as generateJSON, ee as generateText, Ae as getAttributes, bt as getAttributesFromExtensions, rt as getChangedRanges, mt as getDebugJSON, He as getExtensionField, be as getHTMLFromFragment, ot as getMarkAttributes, _t as getMarkRange, Ee as getMarkType, Ze as getMarksBetween, Ct as getNodeAtPosition, Oe as getNodeAttributes, Ne as getNodeType, lt as getPreviousBlockSibling, et as getRenderedAttributes, ze as getSchema, Ie as getSchemaByResolvedExtensions, _e as getSchemaTypeByName, Et as getSchemaTypeNameByName, Ft as getSplittedAttributes, Ce as getStyleProperty, Mt as getText, X as getTextBetween, s as getTextContentFromNodes, kt as getTextSerializersFromSchema, ne as getUpdatedPosition, u as injectExtensionAttributesToParseRule, z as inputRulesPlugin, Je as isActive, n as isAndroid, Ge as isAtEndOfNode, N as isAtStartOfNode, I as isEmptyObject, H as isExtensionRulesEnabled, g as isFirefox, C as isFunction, A as isList, q as isMacOS, Rt as isMarkActive, i as isNodeActive, oe as isNodeEmpty, b as isNodeSelection, ie as isNodeViewSelected, ce as isNumber, v as isPlainObject, D as isProseMirrorAddMarkStep, dt as isProseMirrorAddNodeMarkStep, T as isProseMirrorAttrStep, fe as isProseMirrorCellSelection, ue as isProseMirrorDocAttrStep, me as isProseMirrorFragment, W as isProseMirrorNodeSelection, te as isProseMirrorRemoveMarkStep, ke as isProseMirrorRemoveNodeMarkStep, yt as isProseMirrorReplaceAroundStep, nt as isProseMirrorReplaceStep, pt as isProseMirrorSlice, Ve as isProseMirrorStep, ye as isProseMirrorStepResult, at as isRegExp, gt as isSafari, Te as isString, Xe as isTextSelection, St as isiOS, De as liveWidgetKeys, Me as markInputRule, ct as markPasteRule, $e as markdown, Re as marksEqual, Fe as mergeAttributes, ge as mergeDeep, Tt as minMax, Pt as nodeInputRule, Se as nodePasteRule, jt as objectIncludes, Y as parseAttributes, o as parseIndentedBlocks, Ot as pasteRulesPlugin, Q as posToDOMRect, f as removeDuplicates, l as renderNestedMarkdownContent, R as resolveExtensions, qe as resolveFocusPosition, t as rewriteUnknownContent, We as selectionToInsertionEnd, M as serializeAttributes, F as sortExtensions, V as splitExtensions, h as textInputRule, S as textPasteRule, k as textblockTypeInputRule, K as updateMarkViewAttributes, Lt as wrappingInputRule };
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,5 +1,5 @@
1
- import { t as e } from "../dist-BwzOz38C.js";
2
- //#region ../../../node_modules/.bun/@tiptap+extension-character-count@3.31.3+a20e98c2c6261f96/node_modules/@tiptap/extension-character-count/dist/index.js
1
+ import { t as e } from "../dist-CJhbhuk0.js";
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
5
5
  export { e as CharacterCount, t as default };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["CharacterCount$1"],"sources":["../../../../../../node_modules/.bun/@tiptap+extension-character-count@3.31.3+a20e98c2c6261f96/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"],"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,6 +1,6 @@
1
- import { gn as e, m as t, mt as n, y as r, yn as i } from "../dist-CL31Mguj.js";
2
- //#region ../../../node_modules/.bun/@tiptap+extension-image@3.31.3+9ea2bbe04937c6bd/node_modules/@tiptap/extension-image/dist/index.js
3
- var a = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, o = t.create({
1
+ import { _n as e, bn as t, m as n, mt as r, y as i } from "../dist-CbvLhouk.js";
2
+ //#region ../../../node_modules/.bun/@tiptap+extension-image@3.31.4+e39601fe346c19ab/node_modules/@tiptap/extension-image/dist/index.js
3
+ var a = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, o = n.create({
4
4
  name: "image",
5
5
  addOptions() {
6
6
  return {
@@ -43,7 +43,7 @@ var a = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, o = t.create
43
43
  },
44
44
  addNodeView() {
45
45
  if (!this.options.resize || !this.options.resize.enabled || typeof document > "u") return null;
46
- let { directions: t, minWidth: i, minHeight: a, alwaysPreserveAspectRatio: o } = this.options.resize, s = /* @__PURE__ */ new Set([
46
+ let { directions: t, minWidth: n, minHeight: a, alwaysPreserveAspectRatio: o } = this.options.resize, s = /* @__PURE__ */ new Set([
47
47
  "src",
48
48
  "width",
49
49
  "height"
@@ -68,7 +68,7 @@ var a = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, o = t.create
68
68
  f.hasAttribute("src") && f.removeAttribute("src"), f.src !== "" && (f.src = "");
69
69
  };
70
70
  h(u.src);
71
- let g = new r({
71
+ let g = new i({
72
72
  element: f,
73
73
  editor: d,
74
74
  node: c,
@@ -85,7 +85,7 @@ var a = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, o = t.create
85
85
  },
86
86
  onUpdate: (e) => {
87
87
  if (e.type !== c.type) return !1;
88
- let t = n(e, d.extensionManager.attributes.filter((t) => t.type === e.type.name));
88
+ let t = r(e, d.extensionManager.attributes.filter((t) => t.type === e.type.name));
89
89
  return Object.keys(m).forEach((e) => {
90
90
  !s.has(e) && !(e in t) && f.removeAttribute(e);
91
91
  }), Object.entries(t).forEach(([e, t]) => {
@@ -95,7 +95,7 @@ var a = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, o = t.create
95
95
  options: {
96
96
  directions: t,
97
97
  min: {
98
- width: i,
98
+ width: n,
99
99
  height: a
100
100
  },
101
101
  preserveAspectRatio: o === !0
@@ -113,7 +113,7 @@ var a = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, o = t.create
113
113
  }) };
114
114
  },
115
115
  addInputRules() {
116
- return [i({
116
+ return [t({
117
117
  find: a,
118
118
  type: this.type,
119
119
  getAttributes: (e) => {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../../../node_modules/.bun/@tiptap+extension-image@3.31.3+9ea2bbe04937c6bd/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,YAAY;EACX,OAAO,CAAC,EAAE,KAAK,KAAK,QAAQ,cAAc,aAAa,iCAAiC,CAAC;CAC1F;CACA,WAAW,EAAE,qBAAkB;EAC9B,OAAO,CAAC,OAAO,EAAgB,KAAK,QAAQ,gBAAgB,CAAc,CAAC;CAC5E;CACA,gBAAgB,GAAO,MACf,EAAQ,WAAW,SAAS;EAClC,KAAK,EAAM;EACX,OAAO,EAAM;EACb,KAAK,EAAM;CACZ,CAAC;CAEF,iBAAiB,MAAS;EAEzB,IAAM,IAAwC,EAAK,OAAiE,OAAgE,IAC9K,IAAyC,EAAK,OAAmE,OAAgE,IACjL,IAA6C,EAAK,OAAmE,SAAsE;EACjM,OAAO,IAAQ,KAAK,EAAI,IAAI,EAAI,IAAI,EAAM,MAAM,KAAK,EAAI,IAAI,EAAI;CAClE;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c"}
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,YAAY;EAC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ACvB,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,5 +1,5 @@
1
- import { n as e } from "../dist-BsIpHitF.js";
2
- //#region ../../../node_modules/.bun/@tiptap+extension-list-item@3.31.3+8791dd31e8bec98e/node_modules/@tiptap/extension-list-item/dist/index.js
1
+ import { n as e } from "../dist-BLT2aMxu.js";
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
5
5
  export { e as ListItem, t as default };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["ListItem$1"],"sources":["../../../../../../node_modules/.bun/@tiptap+extension-list-item@3.31.3+8791dd31e8bec98e/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"],"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,5 +1,5 @@
1
- import { s as e } from "../dist-BwzOz38C.js";
2
- //#region ../../../node_modules/.bun/@tiptap+extension-placeholder@3.31.3+a20e98c2c6261f96/node_modules/@tiptap/extension-placeholder/dist/index.js
1
+ import { s as e } from "../dist-CJhbhuk0.js";
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
5
5
  export { e as Placeholder, t as default };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["Placeholder$1"],"sources":["../../../../../../node_modules/.bun/@tiptap+extension-placeholder@3.31.3+a20e98c2c6261f96/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"],"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,6 +1,6 @@
1
- import { f as e, gn as t } from "../dist-CL31Mguj.js";
2
- //#region ../../../node_modules/.bun/@tiptap+extension-subscript@3.31.3+9ea2bbe04937c6bd/node_modules/@tiptap/extension-subscript/dist/index.js
3
- var n = e.create({
1
+ import { _n as e, f as t } from "../dist-CbvLhouk.js";
2
+ //#region ../../../node_modules/.bun/@tiptap+extension-subscript@3.31.4+e39601fe346c19ab/node_modules/@tiptap/extension-subscript/dist/index.js
3
+ var n = t.create({
4
4
  name: "subscript",
5
5
  addOptions() {
6
6
  return { HTMLAttributes: {} };
@@ -13,10 +13,10 @@ var n = e.create({
13
13
  }
14
14
  }];
15
15
  },
16
- renderHTML({ HTMLAttributes: e }) {
16
+ renderHTML({ HTMLAttributes: t }) {
17
17
  return [
18
18
  "sub",
19
- t(this.options.HTMLAttributes, e),
19
+ e(this.options.HTMLAttributes, t),
20
20
  0
21
21
  ];
22
22
  },
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../../../node_modules/.bun/@tiptap+extension-subscript@3.31.3+9ea2bbe04937c6bd/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":[],"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,6 +1,6 @@
1
- import { f as e, gn as t } from "../dist-CL31Mguj.js";
2
- //#region ../../../node_modules/.bun/@tiptap+extension-superscript@3.31.3+9ea2bbe04937c6bd/node_modules/@tiptap/extension-superscript/dist/index.js
3
- var n = e.create({
1
+ import { _n as e, f as t } from "../dist-CbvLhouk.js";
2
+ //#region ../../../node_modules/.bun/@tiptap+extension-superscript@3.31.4+e39601fe346c19ab/node_modules/@tiptap/extension-superscript/dist/index.js
3
+ var n = t.create({
4
4
  name: "superscript",
5
5
  addOptions() {
6
6
  return { HTMLAttributes: {} };
@@ -13,10 +13,10 @@ var n = e.create({
13
13
  }
14
14
  }];
15
15
  },
16
- renderHTML({ HTMLAttributes: e }) {
16
+ renderHTML({ HTMLAttributes: t }) {
17
17
  return [
18
18
  "sup",
19
- t(this.options.HTMLAttributes, e),
19
+ e(this.options.HTMLAttributes, t),
20
20
  0
21
21
  ];
22
22
  },
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../../../node_modules/.bun/@tiptap+extension-superscript@3.31.3+9ea2bbe04937c6bd/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":[],"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,2 +1,2 @@
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-CF7SJxlB.js";
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
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,5 +1,5 @@
1
- import { r as e } from "../dist-CF7SJxlB.js";
2
- //#region ../../../node_modules/.bun/@tiptap+extension-table-cell@3.31.3+f18b8259e95d0e66/node_modules/@tiptap/extension-table-cell/dist/index.js
1
+ import { r as e } from "../dist-DwhlRAyY.js";
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
5
5
  export { e as TableCell, t as default };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["TableCell$1"],"sources":["../../../../../../node_modules/.bun/@tiptap+extension-table-cell@3.31.3+f18b8259e95d0e66/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"],"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,5 +1,5 @@
1
- import { i as e } from "../dist-CF7SJxlB.js";
2
- //#region ../../../node_modules/.bun/@tiptap+extension-table-header@3.31.3+f18b8259e95d0e66/node_modules/@tiptap/extension-table-header/dist/index.js
1
+ import { i as e } from "../dist-DwhlRAyY.js";
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
5
5
  export { e as TableHeader, t as default };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["TableHeader$1"],"sources":["../../../../../../node_modules/.bun/@tiptap+extension-table-header@3.31.3+f18b8259e95d0e66/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"],"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,5 +1,5 @@
1
- import { o as e } from "../dist-CF7SJxlB.js";
2
- //#region ../../../node_modules/.bun/@tiptap+extension-table-row@3.31.3+f18b8259e95d0e66/node_modules/@tiptap/extension-table-row/dist/index.js
1
+ import { o as e } from "../dist-DwhlRAyY.js";
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
5
5
  export { e as TableRow, t as default };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["TableRow$1"],"sources":["../../../../../../node_modules/.bun/@tiptap+extension-table-row@3.31.3+f18b8259e95d0e66/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"],"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,6 +1,6 @@
1
- import { s as e } from "../dist-CL31Mguj.js";
2
- //#region ../../../node_modules/.bun/@tiptap+extension-text-align@3.31.3+9ea2bbe04937c6bd/node_modules/@tiptap/extension-text-align/dist/index.js
3
- var t = e.create({
1
+ import { s as e, un as t } from "../dist-CbvLhouk.js";
2
+ //#region ../../../node_modules/.bun/@tiptap+extension-text-align@3.31.4+e39601fe346c19ab/node_modules/@tiptap/extension-text-align/dist/index.js
3
+ var n = e.create({
4
4
  name: "textAlign",
5
5
  addOptions() {
6
6
  return {
@@ -23,7 +23,7 @@ var t = e.create({
23
23
  let t = e.style.textAlign;
24
24
  return this.options.alignments.includes(t) ? t : this.options.defaultAlignment;
25
25
  },
26
- renderHTML: (e) => e.textAlign ? { style: `text-align: ${e.textAlign}` } : {}
26
+ renderHTML: (e) => !t(e.textAlign) || !this.options.alignments.includes(e.textAlign) ? {} : { style: `text-align: ${e.textAlign}` }
27
27
  } }
28
28
  }];
29
29
  },
@@ -42,8 +42,8 @@ var t = e.create({
42
42
  "Mod-Shift-j": () => this.editor.commands.setTextAlign("justify")
43
43
  };
44
44
  }
45
- }), n = t;
45
+ }), r = n;
46
46
  //#endregion
47
- export { t as TextAlign, n as default };
47
+ export { n as TextAlign, r as default };
48
48
 
49
49
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../../../node_modules/.bun/@tiptap+extension-text-align@3.31.3+9ea2bbe04937c6bd/node_modules/@tiptap/extension-text-align/dist/index.js"],"sourcesContent":["import { Extension } 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 (!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,E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ources":["../../../../../../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,19 +1,19 @@
1
- import { bt as e, f as t, gn as n, s as r } from "../dist-CL31Mguj.js";
2
- //#region ../../../node_modules/.bun/@tiptap+extension-text-style@3.31.3+9ea2bbe04937c6bd/node_modules/@tiptap/extension-text-style/dist/index.js
3
- var i = 20, a = (e, t = 0) => {
1
+ import { _n as e, bt as t, f as n, s as r, un as i } from "../dist-CbvLhouk.js";
2
+ //#region ../../../node_modules/.bun/@tiptap+extension-text-style@3.31.4+e39601fe346c19ab/node_modules/@tiptap/extension-text-style/dist/index.js
3
+ var a = 20, o = (e, t = 0) => {
4
4
  let n = [];
5
- return !e.children.length || t > i || Array.from(e.children).forEach((e) => {
6
- e.tagName === "SPAN" ? n.push(e) : e.children.length && n.push(...a(e, t + 1));
5
+ return !e.children.length || t > a || Array.from(e.children).forEach((e) => {
6
+ e.tagName === "SPAN" ? n.push(e) : e.children.length && n.push(...o(e, t + 1));
7
7
  }), n;
8
- }, o = (e) => {
8
+ }, s = (e) => {
9
9
  if (!e.children.length) return;
10
- let t = a(e);
10
+ let t = o(e);
11
11
  t && t.forEach((e) => {
12
12
  var t;
13
13
  let n = e.getAttribute("style"), r = (t = e.parentElement) == null || (t = t.closest("span")) == null ? void 0 : t.getAttribute("style");
14
14
  e.setAttribute("style", `${r};${n}`);
15
15
  });
16
- }, s = t.create({
16
+ }, c = n.create({
17
17
  name: "textStyle",
18
18
  priority: 101,
19
19
  addOptions() {
@@ -26,13 +26,13 @@ var i = 20, a = (e, t = 0) => {
26
26
  return [{
27
27
  tag: "span",
28
28
  consuming: !1,
29
- getAttrs: (e) => e.hasAttribute("style") ? (this.options.mergeNestedSpanStyles && o(e), {}) : !1
29
+ getAttrs: (e) => e.hasAttribute("style") ? (this.options.mergeNestedSpanStyles && s(e), {}) : !1
30
30
  }];
31
31
  },
32
- renderHTML({ HTMLAttributes: e }) {
32
+ renderHTML({ HTMLAttributes: t }) {
33
33
  return [
34
34
  "span",
35
- n(this.options.HTMLAttributes, e),
35
+ e(this.options.HTMLAttributes, t),
36
36
  0
37
37
  ];
38
38
  },
@@ -48,7 +48,7 @@ var i = 20, a = (e, t = 0) => {
48
48
  }
49
49
  };
50
50
  }
51
- }), c = r.create({
51
+ }), l = r.create({
52
52
  name: "backgroundColor",
53
53
  addOptions() {
54
54
  return { types: ["textStyle"] };
@@ -58,8 +58,8 @@ var i = 20, a = (e, t = 0) => {
58
58
  types: this.options.types,
59
59
  attributes: { backgroundColor: {
60
60
  default: null,
61
- parseHTML: (t) => (e(t, "background-color") ?? t.style.backgroundColor)?.replace(/['"]+/g, ""),
62
- renderHTML: (e) => e.backgroundColor ? { style: `background-color: ${e.backgroundColor}` } : {}
61
+ parseHTML: (e) => (t(e, "background-color") ?? e.style.backgroundColor)?.replace(/['"]+/g, ""),
62
+ renderHTML: (e) => i(e.backgroundColor) ? { style: `background-color: ${e.backgroundColor}` } : {}
63
63
  } }
64
64
  }];
65
65
  },
@@ -69,7 +69,7 @@ var i = 20, a = (e, t = 0) => {
69
69
  unsetBackgroundColor: () => ({ chain: e }) => e().setMark("textStyle", { backgroundColor: null }).removeEmptyTextStyle().run()
70
70
  };
71
71
  }
72
- }), l = r.create({
72
+ }), u = r.create({
73
73
  name: "color",
74
74
  addOptions() {
75
75
  return { types: ["textStyle"] };
@@ -79,8 +79,8 @@ var i = 20, a = (e, t = 0) => {
79
79
  types: this.options.types,
80
80
  attributes: { color: {
81
81
  default: null,
82
- parseHTML: (t) => (e(t, "color") ?? t.style.color)?.replace(/['"]+/g, ""),
83
- renderHTML: (e) => e.color ? { style: `color: ${e.color}` } : {}
82
+ parseHTML: (e) => (t(e, "color") ?? e.style.color)?.replace(/['"]+/g, ""),
83
+ renderHTML: (e) => i(e.color) ? { style: `color: ${e.color}` } : {}
84
84
  } }
85
85
  }];
86
86
  },
@@ -90,7 +90,7 @@ var i = 20, a = (e, t = 0) => {
90
90
  unsetColor: () => ({ chain: e }) => e().setMark("textStyle", { color: null }).removeEmptyTextStyle().run()
91
91
  };
92
92
  }
93
- }), u = r.create({
93
+ }), d = r.create({
94
94
  name: "fontFamily",
95
95
  addOptions() {
96
96
  return { types: ["textStyle"] };
@@ -100,8 +100,8 @@ var i = 20, a = (e, t = 0) => {
100
100
  types: this.options.types,
101
101
  attributes: { fontFamily: {
102
102
  default: null,
103
- parseHTML: (t) => e(t, "font-family") ?? t.style.fontFamily,
104
- renderHTML: (e) => e.fontFamily ? { style: `font-family: ${e.fontFamily}` } : {}
103
+ parseHTML: (e) => t(e, "font-family") ?? e.style.fontFamily,
104
+ renderHTML: (e) => i(e.fontFamily) ? { style: `font-family: ${e.fontFamily}` } : {}
105
105
  } }
106
106
  }];
107
107
  },
@@ -111,7 +111,7 @@ var i = 20, a = (e, t = 0) => {
111
111
  unsetFontFamily: () => ({ chain: e }) => e().setMark("textStyle", { fontFamily: null }).removeEmptyTextStyle().run()
112
112
  };
113
113
  }
114
- }), d = r.create({
114
+ }), f = r.create({
115
115
  name: "fontSize",
116
116
  addOptions() {
117
117
  return { types: ["textStyle"] };
@@ -121,8 +121,8 @@ var i = 20, a = (e, t = 0) => {
121
121
  types: this.options.types,
122
122
  attributes: { fontSize: {
123
123
  default: null,
124
- parseHTML: (t) => e(t, "font-size") ?? t.style.fontSize,
125
- renderHTML: (e) => e.fontSize ? { style: `font-size: ${e.fontSize}` } : {}
124
+ parseHTML: (e) => t(e, "font-size") ?? e.style.fontSize,
125
+ renderHTML: (e) => i(e.fontSize) ? { style: `font-size: ${e.fontSize}` } : {}
126
126
  } }
127
127
  }];
128
128
  },
@@ -132,7 +132,7 @@ var i = 20, a = (e, t = 0) => {
132
132
  unsetFontSize: () => ({ chain: e }) => e().setMark("textStyle", { fontSize: null }).removeEmptyTextStyle().run()
133
133
  };
134
134
  }
135
- }), f = r.create({
135
+ }), p = r.create({
136
136
  name: "lineHeight",
137
137
  addOptions() {
138
138
  return { types: ["textStyle"] };
@@ -142,8 +142,8 @@ var i = 20, a = (e, t = 0) => {
142
142
  types: this.options.types,
143
143
  attributes: { lineHeight: {
144
144
  default: null,
145
- parseHTML: (t) => e(t, "line-height") ?? t.style.lineHeight,
146
- renderHTML: (e) => e.lineHeight ? { style: `line-height: ${e.lineHeight}` } : {}
145
+ parseHTML: (e) => t(e, "line-height") ?? e.style.lineHeight,
146
+ renderHTML: (e) => i(e.lineHeight) ? { style: `line-height: ${e.lineHeight}` } : {}
147
147
  } }
148
148
  }];
149
149
  },
@@ -153,14 +153,14 @@ var i = 20, a = (e, t = 0) => {
153
153
  unsetLineHeight: () => ({ chain: e }) => e().setMark("textStyle", { lineHeight: null }).removeEmptyTextStyle().run()
154
154
  };
155
155
  }
156
- }), p = r.create({
156
+ }), m = r.create({
157
157
  name: "textStyleKit",
158
158
  addExtensions() {
159
159
  let e = [];
160
- return this.options.backgroundColor !== !1 && e.push(c.configure(this.options.backgroundColor)), this.options.color !== !1 && e.push(l.configure(this.options.color)), this.options.fontFamily !== !1 && e.push(u.configure(this.options.fontFamily)), this.options.fontSize !== !1 && e.push(d.configure(this.options.fontSize)), this.options.lineHeight !== !1 && e.push(f.configure(this.options.lineHeight)), this.options.textStyle !== !1 && e.push(s.configure(this.options.textStyle)), e;
160
+ return this.options.backgroundColor !== !1 && e.push(l.configure(this.options.backgroundColor)), this.options.color !== !1 && e.push(u.configure(this.options.color)), this.options.fontFamily !== !1 && e.push(d.configure(this.options.fontFamily)), this.options.fontSize !== !1 && e.push(f.configure(this.options.fontSize)), this.options.lineHeight !== !1 && e.push(p.configure(this.options.lineHeight)), this.options.textStyle !== !1 && e.push(c.configure(this.options.textStyle)), e;
161
161
  }
162
162
  });
163
163
  //#endregion
164
- export { c as BackgroundColor, l as Color, u as FontFamily, d as FontSize, f as LineHeight, s as TextStyle, p as TextStyleKit };
164
+ export { l as BackgroundColor, u as Color, d as FontFamily, f as FontSize, p as LineHeight, c as TextStyle, m as TextStyleKit };
165
165
 
166
166
  //# sourceMappingURL=index.js.map