@templatical/editor 0.0.4 → 0.0.6

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 (163) hide show
  1. package/dist/AiChatSidebar-CNhSl_ty.js +228 -0
  2. package/dist/{AiFeatureMenu-K44aZa_P.js → AiFeatureMenu-BFVsjUJY.js} +23 -23
  3. package/dist/CloudEditor-Bz5Xkxej.js +1082 -0
  4. package/dist/{CollaboratorBar-BuCEcdbB.js → CollaboratorBar-D2Gu5Xj2.js} +3 -3
  5. package/dist/{CommentsSidebar-2lcqMfIP.js → CommentsSidebar-CTeEAZTj.js} +131 -131
  6. package/dist/{DesignReferenceSidebar-CNMu4Zrx.js → DesignReferenceSidebar-u2tKSQK0.js} +52 -52
  7. package/dist/{LoadingTrack-vK8W2PJf.js → LoadingTrack--aUassFH.js} +1 -1
  8. package/dist/{ModuleBrowserModal-CvQ0xyQf.js → ModuleBrowserModal-DNxODPlX.js} +58 -58
  9. package/dist/{ModulePreviewCanvas-Be2B3Y07.js → ModulePreviewCanvas-DnGe1Y-2.js} +32 -32
  10. package/dist/ParagraphEditor-CYrzYJO5.js +688 -0
  11. package/dist/{RichTextEditorContent-CHJlh7HJ.js → RichTextEditorContent-BeqlWlWB.js} +2 -2
  12. package/dist/{SaveModuleDialog-BaaeH5Xm.js → SaveModuleDialog-Kde6X13X.js} +25 -25
  13. package/dist/{SnapshotHistory-BPfjiuu1.js → SnapshotHistory-B3EfIcLW.js} +7 -7
  14. package/dist/TemplateScoringPanel-D2vCRGgx.js +254 -0
  15. package/dist/{TestEmailModal-DIAlB3e_.js → TestEmailModal-Egk0DFDf.js} +3 -3
  16. package/dist/{TitleEditor-D9DPjQkX.js → TitleEditor-DwUpo4gF.js} +11 -11
  17. package/dist/{TplModal-CmTSvCY-.js → TplModal-BCruYWks.js} +4 -4
  18. package/dist/{_plugin-vue_export-helper-B1-bu7yR.js → _plugin-vue_export-helper-5TQrnOhO.js} +2 -2
  19. package/dist/{blockTypeIcons-D1RTWOkx.js → blockTypeIcons-rW4BUUNC.js} +2 -2
  20. package/dist/cdn/chunks/{AiFeatureMenu-lxVm1RjH.js → AiFeatureMenu-Dcbshcfu.js} +16 -16
  21. package/dist/cdn/chunks/AiFeatureMenu-Dcbshcfu.js.map +1 -0
  22. package/dist/cdn/chunks/CloudEditor-Bca3RyBW.js +1056 -0
  23. package/dist/cdn/chunks/CloudEditor-Bca3RyBW.js.map +1 -0
  24. package/dist/cdn/chunks/{CollaboratorBar-D2PKtlOw.js → CollaboratorBar-sToKJfHi.js} +4 -4
  25. package/dist/cdn/chunks/{CollaboratorBar-D2PKtlOw.js.map → CollaboratorBar-sToKJfHi.js.map} +1 -1
  26. package/dist/cdn/chunks/{ModuleBrowserModal-CxDXzkKS.js → ModuleBrowserModal-BNhwXbWw.js} +52 -52
  27. package/dist/cdn/chunks/ModuleBrowserModal-BNhwXbWw.js.map +1 -0
  28. package/dist/cdn/chunks/{ModulePreviewCanvas-DEfHampA.js → ModulePreviewCanvas-DylUylPU.js} +3 -3
  29. package/dist/cdn/chunks/{ModulePreviewCanvas-DEfHampA.js.map → ModulePreviewCanvas-DylUylPU.js.map} +1 -1
  30. package/dist/cdn/chunks/ParagraphEditor-BBw90y_p.js +539 -0
  31. package/dist/cdn/chunks/ParagraphEditor-BBw90y_p.js.map +1 -0
  32. package/dist/cdn/chunks/{RichTextEditorContent-DWUzizsC.js → RichTextEditorContent-DvyIO3nR.js} +5 -5
  33. package/dist/cdn/chunks/{RichTextEditorContent-DWUzizsC.js.map → RichTextEditorContent-DvyIO3nR.js.map} +1 -1
  34. package/dist/cdn/chunks/{SaveModuleDialog-DVna2xUl.js → SaveModuleDialog-DvbSHvhF.js} +24 -24
  35. package/dist/cdn/chunks/SaveModuleDialog-DvbSHvhF.js.map +1 -0
  36. package/dist/cdn/chunks/{TitleEditor-DDf_OcHS.js → TitleEditor-tS3mgoVr.js} +10 -10
  37. package/dist/cdn/chunks/{TitleEditor-DDf_OcHS.js.map → TitleEditor-tS3mgoVr.js.map} +1 -1
  38. package/dist/cdn/chunks/{blockTypeIcons-BnobReQm.js → blockTypeIcons-DbnbyEQE.js} +3 -3
  39. package/dist/cdn/chunks/{blockTypeIcons-BnobReQm.js.map → blockTypeIcons-DbnbyEQE.js.map} +1 -1
  40. package/dist/cdn/chunks/{de-BvYD17KT.js → de-CgUR_S5I.js} +1 -1
  41. package/dist/cdn/chunks/{de-BvYD17KT.js.map → de-CgUR_S5I.js.map} +1 -1
  42. package/dist/cdn/chunks/{de-BB3dgVOc.js → de-D8oDPhBD.js} +1 -1
  43. package/dist/cdn/chunks/de-D8oDPhBD.js.map +1 -0
  44. package/dist/cdn/chunks/{dist-B878xb_62.js → dist-BUmN5e4r.js} +15 -12
  45. package/dist/cdn/chunks/dist-BUmN5e4r.js.map +1 -0
  46. package/dist/cdn/chunks/{draggable-BQNU47zu.js → draggable-m78lz0gI.js} +1591 -1563
  47. package/dist/cdn/chunks/draggable-m78lz0gI.js.map +1 -0
  48. package/dist/cdn/chunks/{emojiData-BVEJHcNH.js → emojiData-CNNgvDqx.js} +1 -1
  49. package/dist/cdn/chunks/{emojiData-BVEJHcNH.js.map → emojiData-CNNgvDqx.js.map} +1 -1
  50. package/dist/cdn/chunks/{en-CpotcOPr.js → en-BBmfBDqY.js} +1 -1
  51. package/dist/cdn/chunks/{en-CpotcOPr.js.map → en-BBmfBDqY.js.map} +1 -1
  52. package/dist/cdn/chunks/{en-DeDcpnoS.js → en-HseRPPeK.js} +1 -1
  53. package/dist/cdn/chunks/en-HseRPPeK.js.map +1 -0
  54. package/dist/cdn/chunks/{extensions-B_kcV0tK.js → extensions-ClpY3m0W.js} +31 -31
  55. package/dist/cdn/chunks/{extensions-B_kcV0tK.js.map → extensions-ClpY3m0W.js.map} +1 -1
  56. package/dist/cdn/chunks/{features-ofOGnSC0.js → features-B5dGxWLi.js} +1645 -1608
  57. package/dist/cdn/chunks/features-B5dGxWLi.js.map +1 -0
  58. package/dist/cdn/chunks/{icons-bIb7PBOE.js → icons-hflTyPmb.js} +8 -8
  59. package/dist/cdn/chunks/icons-hflTyPmb.js.map +1 -0
  60. package/dist/cdn/chunks/{liquid.browser-C1VIYISn.js → liquid.browser-BxyRVCKv.js} +24 -17
  61. package/dist/cdn/chunks/liquid.browser-BxyRVCKv.js.map +1 -0
  62. package/dist/cdn/chunks/{media-library-BIYzV2Y2.js → media-library-Dgy-V-JA.js} +547 -543
  63. package/dist/cdn/chunks/{media-library-BIYzV2Y2.js.map → media-library-Dgy-V-JA.js.map} +1 -1
  64. package/dist/cdn/chunks/{pusher-DJPhQnE8.js → pusher-D-m2WSdL.js} +10 -7
  65. package/dist/cdn/chunks/pusher-D-m2WSdL.js.map +1 -0
  66. package/dist/cdn/chunks/readableTextColor-Cd_cgWO_.js.map +1 -1
  67. package/dist/cdn/chunks/{rolldown-runtime-DPITmOBR.js → rolldown-runtime-BNuo_Jkg.js} +1 -1
  68. package/dist/cdn/chunks/{src-BuW9oYtm.js → src-TDwMmqm0.js} +7 -7
  69. package/dist/cdn/chunks/{src-BuW9oYtm.js.map → src-TDwMmqm0.js.map} +1 -1
  70. package/dist/cdn/chunks/{styleConstants-1KwsBMxJ.js → styleConstants-DFe3I4Op.js} +6 -6
  71. package/dist/cdn/chunks/{styleConstants-1KwsBMxJ.js.map → styleConstants-DFe3I4Op.js.map} +1 -1
  72. package/dist/cdn/chunks/{styles-DQFExz-T.js → styles-hCOCOR6K.js} +1229 -1101
  73. package/dist/cdn/chunks/styles-hCOCOR6K.js.map +1 -0
  74. package/dist/cdn/chunks/{tiptap-DplY-S-k.js → tiptap-C28NLMX8.js} +1531 -1309
  75. package/dist/cdn/chunks/tiptap-C28NLMX8.js.map +1 -0
  76. package/dist/cdn/editor.css +1 -1
  77. package/dist/cdn/editor.js +112 -141
  78. package/dist/cdn/editor.js.map +1 -1
  79. package/dist/{check-B7kDuZmP.js → check-B5S-C0bz.js} +1 -1
  80. package/dist/{chevron-down-DJLW2Q9Z.js → chevron-down-CjsV1T0W.js} +1 -1
  81. package/dist/{circle-alert-E2vYPs5r.js → circle-alert-CVTmJHKW.js} +1 -1
  82. package/dist/{clock-lWIIQA3C.js → clock-CAjdSHBy.js} +1 -1
  83. package/dist/{dist-CG-vEqSU.js → dist-Ac4o1O4a.js} +2 -2
  84. package/dist/{dist-BkIys9zn.js → dist-B4LTlrAn.js} +6 -6
  85. package/dist/{dist-ChAGLpWo.js → dist-BTtKPcd2.js} +2 -2
  86. package/dist/{dist-C1BIRHCQ.js → dist-CBr-qhie.js} +2 -2
  87. package/dist/{dist-DmOE-Ubp.js → dist-COOFiBFV.js} +2 -2
  88. package/dist/{dist-4LiM9FDd.js → dist-COguaIvm.js} +2 -2
  89. package/dist/{dist-Bu7veieH.js → dist-Crqkuf-w.js} +2 -2
  90. package/dist/{dist-DkypH7qG.js → dist-DEJZ9iAU.js} +2 -2
  91. package/dist/{dist-D_HQYSY-.js → dist-DHYuVJ_7.js} +2 -2
  92. package/dist/{dist-C_ymrGFi.js → dist-DJrDTuRr.js} +973 -958
  93. package/dist/{dist-DysAFIPy.js → dist-DPM-DFvh.js} +142 -114
  94. package/dist/{dist-DrvKRSU6.js → dist-DfqLGwSF.js} +2 -2
  95. package/dist/dist-DmVOCJjI.js +5 -0
  96. package/dist/{extensions-DEjfEFhD.js → extensions-C6xp_B7K.js} +3 -3
  97. package/dist/{image-up-X4xIq4ea.js → image-up-vZa1Txr-.js} +1 -1
  98. package/dist/index.d.ts +223 -0
  99. package/dist/{liquid.browser-BemTg3sZ.js → liquid.browser-C02owkex.js} +20 -15
  100. package/dist/{loader-circle-BTQQxC3l.js → loader-circle-DilFjHSk.js} +1 -1
  101. package/dist/{message-circle-Blgm6V_h.js → message-circle-Dpcnc2oa.js} +1 -1
  102. package/dist/{refresh-cw-Bb4PEeW1.js → refresh-cw-4r7rkHHX.js} +1 -1
  103. package/dist/rolldown-runtime-gEudmnaM.js +23 -0
  104. package/dist/{scan-line-7lZPfOdm.js → scan-line-684IxPQ0.js} +1 -1
  105. package/dist/{send-C0ltAQrv.js → send-ChDw64yL.js} +1 -1
  106. package/dist/{shield-check-f-qv4RKs.js → shield-check-9dhLdyST.js} +1 -1
  107. package/dist/{sparkles-KhBCGlqB.js → sparkles-Co9fkDcv.js} +1 -1
  108. package/dist/{styleConstants-D4SOZGBV.js → styleConstants-RV3eYwkD.js} +6 -6
  109. package/dist/styles-nvxFh6L6.js +3557 -0
  110. package/dist/templatical-editor.css +1 -1
  111. package/dist/templatical-editor.js +111 -141
  112. package/dist/templatical-editor.umd.cjs +63 -73
  113. package/dist/{trash-2-OwjZ-guZ.js → trash-2-CZkMtjeC.js} +1 -1
  114. package/dist/{triangle-alert-DOSRIUYZ.js → triangle-alert-Dvt51agD.js} +1 -1
  115. package/dist/{useEditorCore-CjwRMl7K.js → useEditorCore-ColJh1ST.js} +1183 -1182
  116. package/dist/{x-CGlq2XQe.js → x-CU2XZOkQ.js} +1 -1
  117. package/package.json +52 -49
  118. package/dist/AiChatSidebar-CjfhTZwo.js +0 -214
  119. package/dist/CloudEditor-DFyuRxUV.js +0 -926
  120. package/dist/ParagraphEditor-CcMPnbDr.js +0 -652
  121. package/dist/TemplateScoringPanel-D58A23Vq.js +0 -249
  122. package/dist/cdn/chunks/AiChatSidebar-CmPTbTFG.js +0 -2
  123. package/dist/cdn/chunks/AiFeatureMenu-lxVm1RjH.js.map +0 -1
  124. package/dist/cdn/chunks/CloudEditor-Bmp5IlWi.js +0 -900
  125. package/dist/cdn/chunks/CloudEditor-Bmp5IlWi.js.map +0 -1
  126. package/dist/cdn/chunks/CommentsSidebar-BOelj4Ca.js +0 -2
  127. package/dist/cdn/chunks/DesignReferenceSidebar-Bf6rg0A7.js +0 -2
  128. package/dist/cdn/chunks/ModuleBrowserModal-CxDXzkKS.js.map +0 -1
  129. package/dist/cdn/chunks/ParagraphEditor-DHdu6lb3.js +0 -503
  130. package/dist/cdn/chunks/ParagraphEditor-DHdu6lb3.js.map +0 -1
  131. package/dist/cdn/chunks/SaveModuleDialog-DVna2xUl.js.map +0 -1
  132. package/dist/cdn/chunks/SnapshotHistory-BFF2SsTN.js +0 -2
  133. package/dist/cdn/chunks/TemplateScoringPanel-gi8wc_m7.js +0 -2
  134. package/dist/cdn/chunks/TestEmailModal-Qtd6aC-6.js +0 -2
  135. package/dist/cdn/chunks/de-BB3dgVOc.js.map +0 -1
  136. package/dist/cdn/chunks/dist-B6AUkMyh.js +0 -2
  137. package/dist/cdn/chunks/dist-B878xb_62.js.map +0 -1
  138. package/dist/cdn/chunks/dist-Bf1Op9A1.js +0 -2
  139. package/dist/cdn/chunks/dist-BkETaOfw.js +0 -2
  140. package/dist/cdn/chunks/dist-CJcMnY7o.js +0 -2
  141. package/dist/cdn/chunks/dist-CWsl6S1K.js +0 -2
  142. package/dist/cdn/chunks/dist-CllLxIMQ.js +0 -2
  143. package/dist/cdn/chunks/dist-Cs0wFwdw.js +0 -2
  144. package/dist/cdn/chunks/dist-DLWHlekl.js +0 -2
  145. package/dist/cdn/chunks/dist-DS3_HVpX.js +0 -2
  146. package/dist/cdn/chunks/dist-DTXopj1a.js +0 -2
  147. package/dist/cdn/chunks/dist-DnwLoNLm.js +0 -2
  148. package/dist/cdn/chunks/draggable-BQNU47zu.js.map +0 -1
  149. package/dist/cdn/chunks/en-DeDcpnoS.js.map +0 -1
  150. package/dist/cdn/chunks/features-ofOGnSC0.js.map +0 -1
  151. package/dist/cdn/chunks/icons-bIb7PBOE.js.map +0 -1
  152. package/dist/cdn/chunks/liquid.browser-C1VIYISn.js.map +0 -1
  153. package/dist/cdn/chunks/pusher-DJPhQnE8.js.map +0 -1
  154. package/dist/cdn/chunks/styles-DQFExz-T.js.map +0 -1
  155. package/dist/cdn/chunks/tiptap-DplY-S-k.js.map +0 -1
  156. package/dist/dist-Dxnd0GRf.js +0 -5
  157. package/dist/styles-CgLaxDfu.js +0 -3428
  158. /package/dist/{de-D7TLGIPA.js → de-Dh8ON-dm.js} +0 -0
  159. /package/dist/{emojiData-BfWQS72m.js → emojiData-Qc8mH_zW.js} +0 -0
  160. /package/dist/{en-DvtiEMwP.js → en-C7IShRSD.js} +0 -0
  161. /package/dist/{formatRelativeTime-DX3FgqN9.js → formatRelativeTime-D8f6NR7i.js} +0 -0
  162. /package/dist/{readableTextColor-LDlmVEUv.js → readableTextColor-B809bF5J.js} +0 -0
  163. /package/dist/{useMergeTag-BZ3X0bNr.js → useMergeTag-CSXcnFBc.js} +0 -0
@@ -1,7 +1,7 @@
1
- import { Cn as e, Ct as t, En as n, Ht as r, Mt as i, Nt as a, Sn as o, St as s, Tn as c, Vt as l, Wt as u, Z as d, Zt as f, _ as p, _n as m, at as ee, bn as h, c as g, fn as _, gn as v, hn as te, i as y, jt as b, mn as x, ot as ne, qt as re, rt as ie, tn as S, u as C, v as ae, vn as w, wn as oe, xn as T, yn as E } from "./dist-C_ymrGFi.js";
2
- import { Link as se } from "./dist-Bu7veieH.js";
3
- import { Underline as ce } from "./dist-C1BIRHCQ.js";
4
- //#region ../../node_modules/.bun/@tiptap+core@3.22.1+c79d51da8b4a98f1/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js
1
+ import { Cn as e, Ct as t, En as n, Ht as r, Mt as i, Nt as a, Sn as o, St as s, Tn as c, Vt as l, Wt as u, Z as d, Zt as f, _ as p, _n as m, at as ee, bn as h, c as g, fn as _, gn as v, hn as te, i as y, jt as b, mn as x, ot as ne, qt as re, rt as ie, tn as S, u as C, v as ae, vn as w, wn as oe, xn as T, yn as E } from "./dist-DJrDTuRr.js";
2
+ import { Link as se } from "./dist-Crqkuf-w.js";
3
+ import { Underline as ce } from "./dist-CBr-qhie.js";
4
+ //#region ../../node_modules/.bun/@tiptap+core@3.22.4+8cda450aa445dbca/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js
5
5
  var D = (e, t) => {
6
6
  if (e === "slot") return 0;
7
7
  if (e instanceof Function) return e(t);
@@ -754,66 +754,94 @@ var N = (e, t) => {
754
754
  }
755
755
  }), Re = /^(\s*)(\d+)\.\s+(.*)$/, ze = /^\s/;
756
756
  function Be(e) {
757
+ let t = e.trimStart();
758
+ return /^[-+*]\s+/.test(t) || /^\d+\.\s+/.test(t) || /^>\s?/.test(t) || /^```/.test(t) || /^~~~/.test(t);
759
+ }
760
+ function Ve(e) {
761
+ let t = [], n = [], r = !1;
762
+ return e.forEach((e) => {
763
+ if (r) {
764
+ n.push(e);
765
+ return;
766
+ }
767
+ if (e.trim() === "") {
768
+ r = !0, n.push(e);
769
+ return;
770
+ }
771
+ if (t.length > 0 && Be(e)) {
772
+ r = !0, n.push(e);
773
+ return;
774
+ }
775
+ t.push(e);
776
+ }), {
777
+ paragraphLines: t,
778
+ blockLines: n
779
+ };
780
+ }
781
+ function He(e) {
757
782
  let t = [], n = 0, r = 0;
758
783
  for (; n < e.length;) {
759
784
  let i = e[n], a = i.match(Re);
760
785
  if (!a) break;
761
- let [, o, s, c] = a, l = o.length, u = c, d = n + 1, f = [i];
786
+ let [, o, s, c] = a, l = o.length, u = [c], d = n + 1, f = [i], p = !1;
762
787
  for (; d < e.length;) {
763
788
  let t = e[d];
764
789
  if (t.match(Re)) break;
765
- if (t.trim() === "") f.push(t), u += "\n", d += 1;
766
- else if (t.match(ze)) f.push(t), u += `
767
- ${t.slice(l + 2)}`, d += 1;
768
- else break;
790
+ if (t.trim() === "") f.push(t), u.push(""), p = !0, d += 1;
791
+ else if (t.match(ze)) f.push(t), u.push(t.slice(l + 2)), d += 1;
792
+ else {
793
+ if (p) break;
794
+ f.push(t), u.push(t), d += 1;
795
+ }
769
796
  }
770
797
  t.push({
771
798
  indent: l,
772
799
  number: parseInt(s, 10),
773
- content: u.trim(),
800
+ content: u.join("\n").trim(),
801
+ contentLines: u,
774
802
  raw: f.join("\n")
775
803
  }), r = d, n = d;
776
804
  }
777
805
  return [t, r];
778
806
  }
779
- function Ve(e, t, n) {
807
+ function Ue(e, t, n) {
780
808
  let r = [], i = 0;
781
809
  for (; i < e.length;) {
782
810
  let a = e[i];
783
811
  if (a.indent === t) {
784
- let o = a.content.split("\n"), s = o[0]?.trim() || "", c = [];
785
- s && c.push({
812
+ let { paragraphLines: o, blockLines: s } = Ve(a.contentLines), c = o.join("\n").trim(), l = [];
813
+ c && l.push({
786
814
  type: "paragraph",
787
- raw: s,
788
- tokens: n.inlineTokens(s)
815
+ raw: c,
816
+ tokens: n.inlineTokens(c)
789
817
  });
790
- let l = o.slice(1).join("\n").trim();
791
- if (l) {
792
- let e = n.blockTokens(l);
793
- c.push(...e);
818
+ let u = s.join("\n").trim();
819
+ if (u) {
820
+ let e = n.blockTokens(u);
821
+ l.push(...e);
794
822
  }
795
- let u = i + 1, d = [];
796
- for (; u < e.length && e[u].indent > t;) d.push(e[u]), u += 1;
797
- if (d.length > 0) {
798
- let e = Ve(d, Math.min(...d.map((e) => e.indent)), n);
799
- c.push({
823
+ let d = i + 1, f = [];
824
+ for (; d < e.length && e[d].indent > t;) f.push(e[d]), d += 1;
825
+ if (f.length > 0) {
826
+ let e = Ue(f, Math.min(...f.map((e) => e.indent)), n);
827
+ l.push({
800
828
  type: "list",
801
829
  ordered: !0,
802
- start: d[0].number,
830
+ start: f[0].number,
803
831
  items: e,
804
- raw: d.map((e) => e.raw).join("\n")
832
+ raw: f.map((e) => e.raw).join("\n")
805
833
  });
806
834
  }
807
835
  r.push({
808
836
  type: "list_item",
809
837
  raw: a.raw,
810
- tokens: c
811
- }), i = u;
838
+ tokens: l
839
+ }), i = d;
812
840
  } else i += 1;
813
841
  }
814
842
  return r;
815
843
  }
816
- function He(e, t) {
844
+ function We(e, t) {
817
845
  return e.map((e) => {
818
846
  if (e.type !== "list_item") return t.parseChildren([e])[0];
819
847
  let n = [];
@@ -835,7 +863,7 @@ function He(e, t) {
835
863
  };
836
864
  });
837
865
  }
838
- var Ue = "listItem", We = "textStyle", Ge = /^(\d+)\.\s$/, Ke = C.create({
866
+ var Ge = "listItem", Ke = "textStyle", qe = /^(\d+)\.\s$/, Je = C.create({
839
867
  name: "orderedList",
840
868
  addOptions() {
841
869
  return {
@@ -879,7 +907,7 @@ var Ue = "listItem", We = "textStyle", Ge = /^(\d+)\.\s$/, Ke = C.create({
879
907
  markdownTokenName: "list",
880
908
  parseMarkdown: (e, t) => {
881
909
  if (e.type !== "list" || !e.ordered) return [];
882
- let n = e.start || 1, r = e.items ? He(e.items, t) : [];
910
+ let n = e.start || 1, r = e.items ? We(e.items, t) : [];
883
911
  return n === 1 ? {
884
912
  type: "orderedList",
885
913
  content: r
@@ -898,9 +926,9 @@ var Ue = "listItem", We = "textStyle", Ge = /^(\d+)\.\s$/, Ke = C.create({
898
926
  return t === void 0 ? -1 : t;
899
927
  },
900
928
  tokenize: (e, t, n) => {
901
- let r = e.split("\n"), [i, a] = Be(r);
929
+ let r = e.split("\n"), [i, a] = He(r);
902
930
  if (i.length === 0) return;
903
- let o = Ve(i, 0, n);
931
+ let o = Ue(i, 0, n);
904
932
  if (o.length !== 0) return {
905
933
  type: "list",
906
934
  ordered: !0,
@@ -912,32 +940,32 @@ var Ue = "listItem", We = "textStyle", Ge = /^(\d+)\.\s$/, Ke = C.create({
912
940
  },
913
941
  markdownOptions: { indentsContent: !0 },
914
942
  addCommands() {
915
- return { toggleOrderedList: () => ({ commands: e, chain: t }) => this.options.keepAttributes ? t().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(Ue, this.editor.getAttributes(We)).run() : e.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks) };
943
+ return { toggleOrderedList: () => ({ commands: e, chain: t }) => this.options.keepAttributes ? t().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(Ge, this.editor.getAttributes(Ke)).run() : e.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks) };
916
944
  },
917
945
  addKeyboardShortcuts() {
918
946
  return { "Mod-Shift-7": () => this.editor.commands.toggleOrderedList() };
919
947
  },
920
948
  addInputRules() {
921
949
  let e = x({
922
- find: Ge,
950
+ find: qe,
923
951
  type: this.type,
924
952
  getAttributes: (e) => ({ start: +e[1] }),
925
953
  joinPredicate: (e, t) => t.childCount + t.attrs.start === +e[1]
926
954
  });
927
955
  return (this.options.keepMarks || this.options.keepAttributes) && (e = x({
928
- find: Ge,
956
+ find: qe,
929
957
  type: this.type,
930
958
  keepMarks: this.options.keepMarks,
931
959
  keepAttributes: this.options.keepAttributes,
932
960
  getAttributes: (e) => ({
933
961
  start: +e[1],
934
- ...this.editor.getAttributes(We)
962
+ ...this.editor.getAttributes(Ke)
935
963
  }),
936
964
  joinPredicate: (e, t) => t.childCount + t.attrs.start === +e[1],
937
965
  editor: this.editor
938
966
  })), [e];
939
967
  }
940
- }), qe = /^\s*(\[([( |x])?\])\s$/, Je = C.create({
968
+ }), Ye = /^\s*(\[([( |x])?\])\s$/, Xe = C.create({
941
969
  name: "taskItem",
942
970
  addOptions() {
943
971
  return {
@@ -1047,12 +1075,12 @@ var Ue = "listItem", We = "textStyle", Ge = /^(\d+)\.\s$/, Ke = C.create({
1047
1075
  },
1048
1076
  addInputRules() {
1049
1077
  return [x({
1050
- find: qe,
1078
+ find: Ye,
1051
1079
  type: this.type,
1052
1080
  getAttributes: (e) => ({ checked: e[e.length - 1] === "x" })
1053
1081
  })];
1054
1082
  }
1055
- }), Ye = C.create({
1083
+ }), Ze = C.create({
1056
1084
  name: "taskList",
1057
1085
  addOptions() {
1058
1086
  return {
@@ -1150,12 +1178,12 @@ y.create({
1150
1178
  name: "listKit",
1151
1179
  addExtensions() {
1152
1180
  let e = [];
1153
- return this.options.bulletList !== !1 && e.push(j.configure(this.options.bulletList)), this.options.listItem !== !1 && e.push(M.configure(this.options.listItem)), this.options.listKeymap !== !1 && e.push(Le.configure(this.options.listKeymap)), this.options.orderedList !== !1 && e.push(Ke.configure(this.options.orderedList)), this.options.taskItem !== !1 && e.push(Je.configure(this.options.taskItem)), this.options.taskList !== !1 && e.push(Ye.configure(this.options.taskList)), e;
1181
+ return this.options.bulletList !== !1 && e.push(j.configure(this.options.bulletList)), this.options.listItem !== !1 && e.push(M.configure(this.options.listItem)), this.options.listKeymap !== !1 && e.push(Le.configure(this.options.listKeymap)), this.options.orderedList !== !1 && e.push(Je.configure(this.options.orderedList)), this.options.taskItem !== !1 && e.push(Xe.configure(this.options.taskItem)), this.options.taskList !== !1 && e.push(Ze.configure(this.options.taskList)), e;
1154
1182
  }
1155
1183
  });
1156
1184
  //#endregion
1157
- //#region ../../node_modules/.bun/@tiptap+extension-paragraph@3.22.1+ea875cbca4543ce7/node_modules/@tiptap/extension-paragraph/dist/index.js
1158
- var B = "&nbsp;", V = "\xA0", Xe = C.create({
1185
+ //#region ../../node_modules/.bun/@tiptap+extension-paragraph@3.22.4+426911c3531ad19c/node_modules/@tiptap/extension-paragraph/dist/index.js
1186
+ var B = "&nbsp;", V = "\xA0", Qe = C.create({
1159
1187
  name: "paragraph",
1160
1188
  priority: 1e3,
1161
1189
  addOptions() {
@@ -1194,7 +1222,7 @@ var B = "&nbsp;", V = "\xA0", Xe = C.create({
1194
1222
  addKeyboardShortcuts() {
1195
1223
  return { "Mod-Alt-0": () => this.editor.commands.setParagraph() };
1196
1224
  }
1197
- }), Ze = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, Qe = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, $e = g.create({
1225
+ }), $e = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, et = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, tt = g.create({
1198
1226
  name: "strike",
1199
1227
  addOptions() {
1200
1228
  return { HTMLAttributes: {} };
@@ -1233,17 +1261,17 @@ var B = "&nbsp;", V = "\xA0", Xe = C.create({
1233
1261
  },
1234
1262
  addInputRules() {
1235
1263
  return [l({
1236
- find: Ze,
1264
+ find: $e,
1237
1265
  type: this.type
1238
1266
  })];
1239
1267
  },
1240
1268
  addPasteRules() {
1241
1269
  return [r({
1242
- find: Qe,
1270
+ find: et,
1243
1271
  type: this.type
1244
1272
  })];
1245
1273
  }
1246
- }), et = C.create({
1274
+ }), nt = C.create({
1247
1275
  name: "text",
1248
1276
  group: "inline",
1249
1277
  parseMarkdown: (e) => ({
@@ -1254,12 +1282,12 @@ var B = "&nbsp;", V = "\xA0", Xe = C.create({
1254
1282
  });
1255
1283
  //#endregion
1256
1284
  //#region ../../node_modules/.bun/prosemirror-dropcursor@1.8.2/node_modules/prosemirror-dropcursor/dist/index.js
1257
- function tt(e = {}) {
1285
+ function rt(e = {}) {
1258
1286
  return new E({ view(t) {
1259
- return new nt(t, e);
1287
+ return new it(t, e);
1260
1288
  } });
1261
1289
  }
1262
- var nt = class {
1290
+ var it = class {
1263
1291
  constructor(e, t) {
1264
1292
  this.editorView = e, this.cursorPos = null, this.element = null, this.timeout = -1, this.width = t.width ?? 1, this.color = t.color === !1 ? void 0 : t.color || "black", this.class = t.class, this.handlers = [
1265
1293
  "dragover",
@@ -1375,11 +1403,11 @@ var nt = class {
1375
1403
  return new e(t.resolve(n.pos));
1376
1404
  }
1377
1405
  getBookmark() {
1378
- return new rt(this.anchor);
1406
+ return new at(this.anchor);
1379
1407
  }
1380
1408
  static valid(e) {
1381
1409
  let t = e.parent;
1382
- if (t.inlineContent || !at(e) || !ot(e)) return !1;
1410
+ if (t.inlineContent || !st(e) || !ct(e)) return !1;
1383
1411
  let n = t.type.spec.allowGapCursor;
1384
1412
  if (n != null) return n;
1385
1413
  let r = t.contentMatchAt(e.index()).defaultType;
@@ -1417,7 +1445,7 @@ var nt = class {
1417
1445
  }
1418
1446
  };
1419
1447
  H.prototype.visible = !1, H.findFrom = H.findGapCursorFrom, T.jsonID("gapcursor", H);
1420
- var rt = class e {
1448
+ var at = class e {
1421
1449
  constructor(e) {
1422
1450
  this.pos = e;
1423
1451
  }
@@ -1429,10 +1457,10 @@ var rt = class e {
1429
1457
  return H.valid(t) ? new H(t) : T.near(t);
1430
1458
  }
1431
1459
  };
1432
- function it(e) {
1460
+ function ot(e) {
1433
1461
  return e.isAtom || e.spec.isolating || e.spec.createGapCursor;
1434
1462
  }
1435
- function at(e) {
1463
+ function st(e) {
1436
1464
  for (let t = e.depth; t >= 0; t--) {
1437
1465
  let n = e.index(t), r = e.node(t);
1438
1466
  if (n == 0) {
@@ -1440,13 +1468,13 @@ function at(e) {
1440
1468
  continue;
1441
1469
  }
1442
1470
  for (let e = r.child(n - 1);; e = e.lastChild) {
1443
- if (e.childCount == 0 && !e.inlineContent || it(e.type)) return !0;
1471
+ if (e.childCount == 0 && !e.inlineContent || ot(e.type)) return !0;
1444
1472
  if (e.inlineContent) return !1;
1445
1473
  }
1446
1474
  }
1447
1475
  return !0;
1448
1476
  }
1449
- function ot(e) {
1477
+ function ct(e) {
1450
1478
  for (let t = e.depth; t >= 0; t--) {
1451
1479
  let n = e.indexAfter(t), r = e.node(t);
1452
1480
  if (n == r.childCount) {
@@ -1454,24 +1482,24 @@ function ot(e) {
1454
1482
  continue;
1455
1483
  }
1456
1484
  for (let e = r.child(n);; e = e.firstChild) {
1457
- if (e.childCount == 0 && !e.inlineContent || it(e.type)) return !0;
1485
+ if (e.childCount == 0 && !e.inlineContent || ot(e.type)) return !0;
1458
1486
  if (e.inlineContent) return !1;
1459
1487
  }
1460
1488
  }
1461
1489
  return !0;
1462
1490
  }
1463
- function st() {
1491
+ function lt() {
1464
1492
  return new E({ props: {
1465
- decorations: dt,
1493
+ decorations: pt,
1466
1494
  createSelectionBetween(e, t, n) {
1467
1495
  return t.pos == n.pos && H.valid(n) ? new H(n) : null;
1468
1496
  },
1469
- handleClick: lt,
1470
- handleKeyDown: ct,
1471
- handleDOMEvents: { beforeinput: ut }
1497
+ handleClick: dt,
1498
+ handleKeyDown: ut,
1499
+ handleDOMEvents: { beforeinput: ft }
1472
1500
  } });
1473
1501
  }
1474
- var ct = te({
1502
+ var ut = te({
1475
1503
  ArrowLeft: U("horiz", -1),
1476
1504
  ArrowRight: U("horiz", 1),
1477
1505
  ArrowUp: U("vert", -1),
@@ -1489,7 +1517,7 @@ function U(e, t) {
1489
1517
  return l ? (r && r(e.tr.setSelection(new H(l))), !0) : !1;
1490
1518
  };
1491
1519
  }
1492
- function lt(e, t, n) {
1520
+ function dt(e, t, n) {
1493
1521
  if (!e || !e.editable) return !1;
1494
1522
  let r = e.state.doc.resolve(t);
1495
1523
  if (!H.valid(r)) return !1;
@@ -1499,7 +1527,7 @@ function lt(e, t, n) {
1499
1527
  });
1500
1528
  return i && i.inside > -1 && w.isSelectable(e.state.doc.nodeAt(i.inside)) ? !1 : (e.dispatch(e.state.tr.setSelection(new H(r))), !0);
1501
1529
  }
1502
- function ut(e, t) {
1530
+ function ft(e, t) {
1503
1531
  if (t.inputType != "insertCompositionText" || !(e.state.selection instanceof H)) return !1;
1504
1532
  let { $from: r } = e.state.selection, i = r.parent.contentMatchAt(r.index()).findWrapping(e.state.schema.nodes.text);
1505
1533
  if (!i) return !1;
@@ -1508,7 +1536,7 @@ function ut(e, t) {
1508
1536
  let s = e.state.tr.replace(r.pos, r.pos, new n(a, 0, 0));
1509
1537
  return s.setSelection(o.near(s.doc.resolve(r.pos + 1))), e.dispatch(s), !1;
1510
1538
  }
1511
- function dt(e) {
1539
+ function pt(e) {
1512
1540
  if (!(e.selection instanceof H)) return null;
1513
1541
  let t = document.createElement("div");
1514
1542
  return t.className = "ProseMirror-gapcursor", m.create(e.doc, [v.widget(e.selection.head, t, { key: "gapcursor" })]);
@@ -1521,7 +1549,7 @@ G.prototype.append = function(e) {
1521
1549
  }, G.prototype.prepend = function(e) {
1522
1550
  return e.length ? G.from(e).append(this) : this;
1523
1551
  }, G.prototype.appendInner = function(e) {
1524
- return new pt(this, e);
1552
+ return new ht(this, e);
1525
1553
  }, G.prototype.slice = function(e, t) {
1526
1554
  return e === void 0 && (e = 0), t === void 0 && (t = this.length), e >= t ? G.empty : this.sliceInner(Math.max(0, e), Math.min(this.length, t));
1527
1555
  }, G.prototype.get = function(e) {
@@ -1535,9 +1563,9 @@ G.prototype.append = function(e) {
1535
1563
  return r.push(e(t, n));
1536
1564
  }, t, n), r;
1537
1565
  }, G.from = function(e) {
1538
- return e instanceof G ? e : e && e.length ? new ft(e) : G.empty;
1566
+ return e instanceof G ? e : e && e.length ? new mt(e) : G.empty;
1539
1567
  };
1540
- var ft = /* @__PURE__ */ function(e) {
1568
+ var mt = /* @__PURE__ */ function(e) {
1541
1569
  function t(t) {
1542
1570
  e.call(this), this.values = t;
1543
1571
  }
@@ -1566,8 +1594,8 @@ var ft = /* @__PURE__ */ function(e) {
1566
1594
  return 0;
1567
1595
  }, Object.defineProperties(t.prototype, n), t;
1568
1596
  }(G);
1569
- G.empty = new ft([]);
1570
- var pt = /* @__PURE__ */ function(e) {
1597
+ G.empty = new mt([]);
1598
+ var ht = /* @__PURE__ */ function(e) {
1571
1599
  function t(t, n) {
1572
1600
  e.call(this), this.left = t, this.right = n, this.length = t.length + n.length, this.depth = Math.max(t.depth, n.depth) + 1;
1573
1601
  }
@@ -1594,7 +1622,7 @@ var pt = /* @__PURE__ */ function(e) {
1594
1622
  }, t.prototype.appendInner = function(e) {
1595
1623
  return this.left.depth >= Math.max(this.right.depth, e.depth) + 1 ? new t(this.left, new t(this.right, e)) : new t(this, e);
1596
1624
  }, t;
1597
- }(G), mt = 500, K = class t {
1625
+ }(G), gt = 500, K = class t {
1598
1626
  constructor(e, t) {
1599
1627
  this.items = e, this.eventCount = t;
1600
1628
  }
@@ -1632,7 +1660,7 @@ var pt = /* @__PURE__ */ function(e) {
1632
1660
  (u = c && c.merge(l)) && (l = u, t ? a.pop() : s = s.slice(0, s.length - 1)), a.push(l), n &&= (o++, void 0), i || (c = l);
1633
1661
  }
1634
1662
  let l = o - r.depth;
1635
- return l > gt && (s = ht(s, l), o -= l), new t(s.append(a), o);
1663
+ return l > vt && (s = _t(s, l), o -= l), new t(s.append(a), o);
1636
1664
  }
1637
1665
  remapping(t, n) {
1638
1666
  let r = new e();
@@ -1664,7 +1692,7 @@ var pt = /* @__PURE__ */ function(e) {
1664
1692
  let l = [];
1665
1693
  for (let e = n; e < o; e++) l.push(new q(a.maps[e]));
1666
1694
  let u = new t(this.items.slice(0, i).append(l).append(r), s);
1667
- return u.emptyItemCount() > mt && (u = u.compress(this.items.length - r.length)), u;
1695
+ return u.emptyItemCount() > gt && (u = u.compress(this.items.length - r.length)), u;
1668
1696
  }
1669
1697
  emptyItemCount() {
1670
1698
  let e = 0;
@@ -1689,7 +1717,7 @@ var pt = /* @__PURE__ */ function(e) {
1689
1717
  }
1690
1718
  };
1691
1719
  K.empty = new K(G.empty, 0);
1692
- function ht(e, t) {
1720
+ function _t(e, t) {
1693
1721
  let n;
1694
1722
  return e.forEach((e, r) => {
1695
1723
  if (e.selection && t-- == 0) return n = r, !1;
@@ -1709,21 +1737,21 @@ var q = class e {
1709
1737
  constructor(e, t, n, r, i) {
1710
1738
  this.done = e, this.undone = t, this.prevRanges = n, this.prevTime = r, this.prevComposition = i;
1711
1739
  }
1712
- }, gt = 20;
1713
- function _t(e, t, n, r) {
1740
+ }, vt = 20;
1741
+ function yt(e, t, n, r) {
1714
1742
  let i = n.getMeta(Q), a;
1715
1743
  if (i) return i.historyState;
1716
- n.getMeta(St) && (e = new J(e.done, e.undone, null, 0, -1));
1744
+ n.getMeta(wt) && (e = new J(e.done, e.undone, null, 0, -1));
1717
1745
  let o = n.getMeta("appendedTransaction");
1718
1746
  if (n.steps.length == 0) return e;
1719
- if (o && o.getMeta(Q)) return o.getMeta(Q).redo ? new J(e.done.addTransform(n, void 0, r, Z(t)), e.undone, yt(n.mapping.maps), e.prevTime, e.prevComposition) : new J(e.done, e.undone.addTransform(n, void 0, r, Z(t)), null, e.prevTime, e.prevComposition);
1747
+ if (o && o.getMeta(Q)) return o.getMeta(Q).redo ? new J(e.done.addTransform(n, void 0, r, Z(t)), e.undone, xt(n.mapping.maps), e.prevTime, e.prevComposition) : new J(e.done, e.undone.addTransform(n, void 0, r, Z(t)), null, e.prevTime, e.prevComposition);
1720
1748
  if (n.getMeta("addToHistory") !== !1 && !(o && o.getMeta("addToHistory") === !1)) {
1721
- let i = n.getMeta("composition"), a = e.prevTime == 0 || !o && e.prevComposition != i && (e.prevTime < (n.time || 0) - r.newGroupDelay || !vt(n, e.prevRanges)), s = o ? Y(e.prevRanges, n.mapping) : yt(n.mapping.maps);
1749
+ let i = n.getMeta("composition"), a = e.prevTime == 0 || !o && e.prevComposition != i && (e.prevTime < (n.time || 0) - r.newGroupDelay || !bt(n, e.prevRanges)), s = o ? Y(e.prevRanges, n.mapping) : xt(n.mapping.maps);
1722
1750
  return new J(e.done.addTransform(n, a ? t.selection.getBookmark() : void 0, r, Z(t)), K.empty, s, n.time, i ?? e.prevComposition);
1723
1751
  } else if (a = n.getMeta("rebased")) return new J(e.done.rebased(n, a), e.undone.rebased(n, a), Y(e.prevRanges, n.mapping), e.prevTime, e.prevComposition);
1724
1752
  else return new J(e.done.addMaps(n.mapping.maps), e.undone.addMaps(n.mapping.maps), Y(e.prevRanges, n.mapping), e.prevTime, e.prevComposition);
1725
1753
  }
1726
- function vt(e, t) {
1754
+ function bt(e, t) {
1727
1755
  if (!t) return !1;
1728
1756
  if (!e.docChanged) return !0;
1729
1757
  let n = !1;
@@ -1731,7 +1759,7 @@ function vt(e, t) {
1731
1759
  for (let i = 0; i < t.length; i += 2) e <= t[i + 1] && r >= t[i] && (n = !0);
1732
1760
  }), n;
1733
1761
  }
1734
- function yt(e) {
1762
+ function xt(e) {
1735
1763
  let t = [];
1736
1764
  for (let n = e.length - 1; n >= 0 && t.length == 0; n--) e[n].forEach((e, n, r, i) => t.push(r, i));
1737
1765
  return t;
@@ -1745,7 +1773,7 @@ function Y(e, t) {
1745
1773
  }
1746
1774
  return n;
1747
1775
  }
1748
- function bt(e, t, n) {
1776
+ function St(e, t, n) {
1749
1777
  let r = Z(t), i = Q.get(t).spec.config, a = (n ? e.undone : e.done).popEvent(t, r);
1750
1778
  if (!a) return null;
1751
1779
  let o = a.selection.resolve(a.transform.doc), s = (n ? e.done : e.undone).addTransform(a.transform, t.selection.getBookmark(), i, r), c = new J(n ? s : a.remaining, n ? a.remaining : s, null, 0, -1);
@@ -1754,11 +1782,11 @@ function bt(e, t, n) {
1754
1782
  historyState: c
1755
1783
  });
1756
1784
  }
1757
- var X = !1, xt = null;
1785
+ var X = !1, Ct = null;
1758
1786
  function Z(e) {
1759
1787
  let t = e.plugins;
1760
- if (xt != t) {
1761
- X = !1, xt = t;
1788
+ if (Ct != t) {
1789
+ X = !1, Ct = t;
1762
1790
  for (let e = 0; e < t.length; e++) if (t[e].spec.historyPreserveItems) {
1763
1791
  X = !0;
1764
1792
  break;
@@ -1766,8 +1794,8 @@ function Z(e) {
1766
1794
  }
1767
1795
  return X;
1768
1796
  }
1769
- var Q = new h("history"), St = new h("closeHistory");
1770
- function Ct(e = {}) {
1797
+ var Q = new h("history"), wt = new h("closeHistory");
1798
+ function Tt(e = {}) {
1771
1799
  return e = {
1772
1800
  depth: e.depth || 100,
1773
1801
  newGroupDelay: e.newGroupDelay || 500
@@ -1778,28 +1806,28 @@ function Ct(e = {}) {
1778
1806
  return new J(K.empty, K.empty, null, 0, -1);
1779
1807
  },
1780
1808
  apply(t, n, r) {
1781
- return _t(n, r, t, e);
1809
+ return yt(n, r, t, e);
1782
1810
  }
1783
1811
  },
1784
1812
  config: e,
1785
1813
  props: { handleDOMEvents: { beforeinput(e, t) {
1786
- let n = t.inputType, r = n == "historyUndo" ? Tt : n == "historyRedo" ? $ : null;
1814
+ let n = t.inputType, r = n == "historyUndo" ? $ : n == "historyRedo" ? Dt : null;
1787
1815
  return !r || !e.editable ? !1 : (t.preventDefault(), r(e.state, e.dispatch));
1788
1816
  } } }
1789
1817
  });
1790
1818
  }
1791
- function wt(e, t) {
1819
+ function Et(e, t) {
1792
1820
  return (n, r) => {
1793
1821
  let i = Q.getState(n);
1794
1822
  if (!i || (e ? i.undone : i.done).eventCount == 0) return !1;
1795
1823
  if (r) {
1796
- let a = bt(i, n, e);
1824
+ let a = St(i, n, e);
1797
1825
  a && r(t ? a.scrollIntoView() : a);
1798
1826
  }
1799
1827
  return !0;
1800
1828
  };
1801
1829
  }
1802
- var Tt = wt(!1, !0), $ = wt(!0, !0);
1830
+ var $ = Et(!1, !0), Dt = Et(!0, !0);
1803
1831
  y.create({
1804
1832
  name: "characterCount",
1805
1833
  addOptions() {
@@ -1861,7 +1889,7 @@ y.create({
1861
1889
  })];
1862
1890
  }
1863
1891
  });
1864
- var Et = y.create({
1892
+ var Ot = y.create({
1865
1893
  name: "dropCursor",
1866
1894
  addOptions() {
1867
1895
  return {
@@ -1871,7 +1899,7 @@ var Et = y.create({
1871
1899
  };
1872
1900
  },
1873
1901
  addProseMirrorPlugins() {
1874
- return [tt(this.options)];
1902
+ return [rt(this.options)];
1875
1903
  }
1876
1904
  });
1877
1905
  y.create({
@@ -1905,10 +1933,10 @@ y.create({
1905
1933
  })];
1906
1934
  }
1907
1935
  });
1908
- var Dt = y.create({
1936
+ var kt = y.create({
1909
1937
  name: "gapCursor",
1910
1938
  addProseMirrorPlugins() {
1911
- return [st()];
1939
+ return [lt()];
1912
1940
  },
1913
1941
  extendNodeSchema(e) {
1914
1942
  return { allowGapCursor: p(d(e, "allowGapCursor", {
@@ -1917,8 +1945,8 @@ var Dt = y.create({
1917
1945
  storage: e.storage
1918
1946
  })) ?? null };
1919
1947
  }
1920
- }), Ot = "placeholder";
1921
- function kt(e) {
1948
+ }), At = "placeholder";
1949
+ function jt(e) {
1922
1950
  return e.replace(/\s+/g, "-").replace(/[^a-zA-Z0-9-]/g, "").replace(/^[0-9-]+/, "").replace(/^-+/, "").toLowerCase();
1923
1951
  }
1924
1952
  y.create({
@@ -1927,7 +1955,7 @@ y.create({
1927
1955
  return {
1928
1956
  emptyEditorClass: "is-editor-empty",
1929
1957
  emptyNodeClass: "is-empty",
1930
- dataAttribute: Ot,
1958
+ dataAttribute: At,
1931
1959
  placeholder: "Write something …",
1932
1960
  showOnlyWhenEditable: !0,
1933
1961
  showOnlyCurrent: !0,
@@ -1935,7 +1963,7 @@ y.create({
1935
1963
  };
1936
1964
  },
1937
1965
  addProseMirrorPlugins() {
1938
- let e = this.options.dataAttribute ? `data-${kt(this.options.dataAttribute)}` : `data-${Ot}`;
1966
+ let e = this.options.dataAttribute ? `data-${jt(this.options.dataAttribute)}` : `data-${At}`;
1939
1967
  return [new E({
1940
1968
  key: new h("placeholder"),
1941
1969
  props: { decorations: ({ doc: t, selection: n }) => {
@@ -1979,10 +2007,10 @@ y.create({
1979
2007
  })];
1980
2008
  }
1981
2009
  });
1982
- function At({ types: e, node: t }) {
2010
+ function Mt({ types: e, node: t }) {
1983
2011
  return t && Array.isArray(e) && e.includes(t.type) || t?.type === e;
1984
2012
  }
1985
- var jt = y.create({
2013
+ var Nt = y.create({
1986
2014
  name: "trailingNode",
1987
2015
  addOptions() {
1988
2016
  return {
@@ -2001,7 +2029,7 @@ var jt = y.create({
2001
2029
  state: {
2002
2030
  init: (e, t) => {
2003
2031
  let r = t.tr.doc.lastChild;
2004
- return !At({
2032
+ return !Mt({
2005
2033
  node: r,
2006
2034
  types: n
2007
2035
  });
@@ -2009,7 +2037,7 @@ var jt = y.create({
2009
2037
  apply: (e, t) => {
2010
2038
  if (!e.docChanged || e.getMeta("__uniqueIDTransaction")) return t;
2011
2039
  let r = e.doc.lastChild;
2012
- return !At({
2040
+ return !Mt({
2013
2041
  node: r,
2014
2042
  types: n
2015
2043
  });
@@ -2017,7 +2045,7 @@ var jt = y.create({
2017
2045
  }
2018
2046
  })];
2019
2047
  }
2020
- }), Mt = y.create({
2048
+ }), Pt = y.create({
2021
2049
  name: "undoRedo",
2022
2050
  addOptions() {
2023
2051
  return {
@@ -2027,12 +2055,12 @@ var jt = y.create({
2027
2055
  },
2028
2056
  addCommands() {
2029
2057
  return {
2030
- undo: () => ({ state: e, dispatch: t }) => Tt(e, t),
2031
- redo: () => ({ state: e, dispatch: t }) => $(e, t)
2058
+ undo: () => ({ state: e, dispatch: t }) => $(e, t),
2059
+ redo: () => ({ state: e, dispatch: t }) => Dt(e, t)
2032
2060
  };
2033
2061
  },
2034
2062
  addProseMirrorPlugins() {
2035
- return [Ct(this.options)];
2063
+ return [Tt(this.options)];
2036
2064
  },
2037
2065
  addKeyboardShortcuts() {
2038
2066
  return {
@@ -2043,12 +2071,12 @@ var jt = y.create({
2043
2071
  "Shift-Mod-я": () => this.editor.commands.redo()
2044
2072
  };
2045
2073
  }
2046
- }), Nt = y.create({
2074
+ }), Ft = y.create({
2047
2075
  name: "starterKit",
2048
2076
  addExtensions() {
2049
2077
  let e = [];
2050
- return this.options.bold !== !1 && e.push(he.configure(this.options.bold)), this.options.blockquote !== !1 && e.push(ue.configure(this.options.blockquote)), this.options.bulletList !== !1 && e.push(j.configure(this.options.bulletList)), this.options.code !== !1 && e.push(ve.configure(this.options.code)), this.options.codeBlock !== !1 && e.push(xe.configure(this.options.codeBlock)), this.options.document !== !1 && e.push(Se.configure(this.options.document)), this.options.dropcursor !== !1 && e.push(Et.configure(this.options.dropcursor)), this.options.gapcursor !== !1 && e.push(Dt.configure(this.options.gapcursor)), this.options.hardBreak !== !1 && e.push(Ce.configure(this.options.hardBreak)), this.options.heading !== !1 && e.push(we.configure(this.options.heading)), this.options.undoRedo !== !1 && e.push(Mt.configure(this.options.undoRedo)), this.options.horizontalRule !== !1 && e.push(Te.configure(this.options.horizontalRule)), this.options.italic !== !1 && e.push(Ae.configure(this.options.italic)), this.options.listItem !== !1 && e.push(M.configure(this.options.listItem)), this.options.listKeymap !== !1 && e.push(Le.configure(this.options?.listKeymap)), this.options.link !== !1 && e.push(se.configure(this.options?.link)), this.options.orderedList !== !1 && e.push(Ke.configure(this.options.orderedList)), this.options.paragraph !== !1 && e.push(Xe.configure(this.options.paragraph)), this.options.strike !== !1 && e.push($e.configure(this.options.strike)), this.options.text !== !1 && e.push(et.configure(this.options.text)), this.options.underline !== !1 && e.push(ce.configure(this.options?.underline)), this.options.trailingNode !== !1 && e.push(jt.configure(this.options?.trailingNode)), e;
2078
+ return this.options.bold !== !1 && e.push(he.configure(this.options.bold)), this.options.blockquote !== !1 && e.push(ue.configure(this.options.blockquote)), this.options.bulletList !== !1 && e.push(j.configure(this.options.bulletList)), this.options.code !== !1 && e.push(ve.configure(this.options.code)), this.options.codeBlock !== !1 && e.push(xe.configure(this.options.codeBlock)), this.options.document !== !1 && e.push(Se.configure(this.options.document)), this.options.dropcursor !== !1 && e.push(Ot.configure(this.options.dropcursor)), this.options.gapcursor !== !1 && e.push(kt.configure(this.options.gapcursor)), this.options.hardBreak !== !1 && e.push(Ce.configure(this.options.hardBreak)), this.options.heading !== !1 && e.push(we.configure(this.options.heading)), this.options.undoRedo !== !1 && e.push(Pt.configure(this.options.undoRedo)), this.options.horizontalRule !== !1 && e.push(Te.configure(this.options.horizontalRule)), this.options.italic !== !1 && e.push(Ae.configure(this.options.italic)), this.options.listItem !== !1 && e.push(M.configure(this.options.listItem)), this.options.listKeymap !== !1 && e.push(Le.configure(this.options?.listKeymap)), this.options.link !== !1 && e.push(se.configure(this.options?.link)), this.options.orderedList !== !1 && e.push(Je.configure(this.options.orderedList)), this.options.paragraph !== !1 && e.push(Qe.configure(this.options.paragraph)), this.options.strike !== !1 && e.push(tt.configure(this.options.strike)), this.options.text !== !1 && e.push(nt.configure(this.options.text)), this.options.underline !== !1 && e.push(ce.configure(this.options?.underline)), this.options.trailingNode !== !1 && e.push(Nt.configure(this.options?.trailingNode)), e;
2051
2079
  }
2052
- }), Pt = Nt;
2080
+ }), It = Ft;
2053
2081
  //#endregion
2054
- export { Nt as StarterKit, Pt as default };
2082
+ export { Ft as StarterKit, It as default };