@templatical/editor 0.14.0 → 0.15.1

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 (153) hide show
  1. package/dist/{AiChatSidebar-J8iO_sX7.js → AiChatSidebar-BIKvYREk.js} +57 -56
  2. package/dist/{AiFeatureMenu-F2diEDgV.js → AiFeatureMenu-CU6kTMTf.js} +20 -20
  3. package/dist/{BlockIssueBadge-a-qlByxF.js → BlockIssueBadge-B3xVgMTh.js} +11 -11
  4. package/dist/{CloudEditor-CDjtwb4i.js → CloudEditor-DRPxvUEj.js} +470 -468
  5. package/dist/{CollaboratorBar-B_EnJLtW.js → CollaboratorBar-DMSjd3HZ.js} +20 -20
  6. package/dist/{CommentsSidebar-DaP9BA_r.js → CommentsSidebar-D_tSGvTX.js} +154 -153
  7. package/dist/CountdownBlock-apiYUhkQ.js +92 -0
  8. package/dist/CountdownToolbar-CS0axcjz.js +210 -0
  9. package/dist/{DesignReferenceSidebar-BHRlTqlT.js → DesignReferenceSidebar-DWYK9nTk.js} +58 -57
  10. package/dist/{IssuesPanel-u7ee3Wrl.js → IssuesPanel-CR1MPaDE.js} +40 -40
  11. package/dist/{LoadingTrack-CV3ID80N.js → LoadingTrack-DsecR8Rw.js} +1 -1
  12. package/dist/MergeTagSuggestion-CH2SUxBo.js +1327 -0
  13. package/dist/{ModuleBrowserModal-DOsdaS6s.js → ModuleBrowserModal-BOzleijA.js} +60 -59
  14. package/dist/{ModulePreviewCanvas-Cx4MOJ0X.js → ModulePreviewCanvas-Cg99Pbde.js} +29 -29
  15. package/dist/{NumberWithSuffix-D2mW_DhT.js → NumberWithSuffix-CrA6quxx.js} +143 -142
  16. package/dist/{ParagraphEditor-DMzkVnST.js → ParagraphEditor-8jnzoL0A.js} +250 -247
  17. package/dist/{RichTextEditorContent-CRCxCwKf.js → RichTextEditorContent-BqLHIZY7.js} +45 -44
  18. package/dist/{SaveModuleDialog-DuEKgumL.js → SaveModuleDialog-Cy2XyjYT.js} +38 -37
  19. package/dist/{SnapshotHistory-CVgiNJtE.js → SnapshotHistory-cfxmOsJu.js} +34 -33
  20. package/dist/{TemplateScoringPanel-lm0_9nYi.js → TemplateScoringPanel-CZ62rGHz.js} +83 -82
  21. package/dist/{TestEmailModal-WBMdiW5S.js → TestEmailModal-sr1MaMVX.js} +22 -21
  22. package/dist/{TitleEditor-eyT0h-Sa.js → TitleEditor-CvGTprIg.js} +46 -45
  23. package/dist/{TplModal-tjQ7OB0g.js → TplModal-BtKB-0Bx.js} +14 -13
  24. package/dist/{blockTypeIcons-DdB3uTKD.js → blockTypeIcons-BxEbbev5.js} +2 -2
  25. package/dist/bundle-stats.json +8 -8
  26. package/dist/cdn/chunks/{AiFeatureMenu-D7rB2SBs.js → AiFeatureMenu-fDUpv_-s.js} +5 -5
  27. package/dist/cdn/chunks/{AiFeatureMenu-D7rB2SBs.js.map → AiFeatureMenu-fDUpv_-s.js.map} +1 -1
  28. package/dist/cdn/chunks/{BlockIssueBadge-DHOe0pgx.js → BlockIssueBadge-Byce0j0W.js} +3 -3
  29. package/dist/cdn/chunks/{BlockIssueBadge-DHOe0pgx.js.map → BlockIssueBadge-Byce0j0W.js.map} +1 -1
  30. package/dist/cdn/chunks/{CloudEditor-DNed_Ym0.js → CloudEditor-B4m8ldiE.js} +89 -89
  31. package/dist/cdn/chunks/{CloudEditor-DNed_Ym0.js.map → CloudEditor-B4m8ldiE.js.map} +1 -1
  32. package/dist/cdn/chunks/{CollaboratorBar-sj_9Lee3.js → CollaboratorBar-LnLmjxw_.js} +4 -4
  33. package/dist/cdn/chunks/{CollaboratorBar-sj_9Lee3.js.map → CollaboratorBar-LnLmjxw_.js.map} +1 -1
  34. package/dist/cdn/chunks/{CountdownBlock-C1Ikjpn4.js → CountdownBlock-DxTuMRBM.js} +3 -3
  35. package/dist/cdn/chunks/{CountdownBlock-C1Ikjpn4.js.map → CountdownBlock-DxTuMRBM.js.map} +1 -1
  36. package/dist/cdn/chunks/{CountdownToolbar-j1G_X8rB.js → CountdownToolbar-DUrVfQZH.js} +4 -4
  37. package/dist/cdn/chunks/{CountdownToolbar-j1G_X8rB.js.map → CountdownToolbar-DUrVfQZH.js.map} +1 -1
  38. package/dist/cdn/chunks/{IssuesPanel-CTOf3PsH.js → IssuesPanel-CHl90k4h.js} +4 -4
  39. package/dist/cdn/chunks/{IssuesPanel-CTOf3PsH.js.map → IssuesPanel-CHl90k4h.js.map} +1 -1
  40. package/dist/cdn/chunks/MergeTagSuggestion-BsCAo4Co.js +213 -0
  41. package/dist/cdn/chunks/MergeTagSuggestion-BsCAo4Co.js.map +1 -0
  42. package/dist/cdn/chunks/{ModuleBrowserModal-DCh88-rr.js → ModuleBrowserModal-DW0iQW0J.js} +6 -6
  43. package/dist/cdn/chunks/{ModuleBrowserModal-DCh88-rr.js.map → ModuleBrowserModal-DW0iQW0J.js.map} +1 -1
  44. package/dist/cdn/chunks/{ModulePreviewCanvas-DJqvTKmg.js → ModulePreviewCanvas-Cxo8v8t1.js} +3 -3
  45. package/dist/cdn/chunks/{ModulePreviewCanvas-DJqvTKmg.js.map → ModulePreviewCanvas-Cxo8v8t1.js.map} +1 -1
  46. package/dist/cdn/chunks/{NumberWithSuffix-Bu45XWSl.js → NumberWithSuffix-CnSRmUMK.js} +6 -6
  47. package/dist/cdn/chunks/{NumberWithSuffix-Bu45XWSl.js.map → NumberWithSuffix-CnSRmUMK.js.map} +1 -1
  48. package/dist/cdn/chunks/{ParagraphEditor-DwZqLJp2.js → ParagraphEditor-iG5cDjH0.js} +25 -23
  49. package/dist/cdn/chunks/{ParagraphEditor-DwZqLJp2.js.map → ParagraphEditor-iG5cDjH0.js.map} +1 -1
  50. package/dist/cdn/chunks/{RichTextEditorContent-CIuZ-2DV.js → RichTextEditorContent-DQpgeGMj.js} +4 -4
  51. package/dist/cdn/chunks/{RichTextEditorContent-CIuZ-2DV.js.map → RichTextEditorContent-DQpgeGMj.js.map} +1 -1
  52. package/dist/cdn/chunks/{SaveModuleDialog-Bep0X2s_.js → SaveModuleDialog-sJQXg2Mh.js} +3 -3
  53. package/dist/cdn/chunks/{SaveModuleDialog-Bep0X2s_.js.map → SaveModuleDialog-sJQXg2Mh.js.map} +1 -1
  54. package/dist/cdn/chunks/{TitleEditor-DO1-h3RY.js → TitleEditor-C8qIn9Oi.js} +12 -11
  55. package/dist/cdn/chunks/TitleEditor-C8qIn9Oi.js.map +1 -0
  56. package/dist/cdn/chunks/{blockTypeIcons-8o24HVJu.js → blockTypeIcons-DySnOpPo.js} +3 -3
  57. package/dist/cdn/chunks/{blockTypeIcons-8o24HVJu.js.map → blockTypeIcons-DySnOpPo.js.map} +1 -1
  58. package/dist/cdn/chunks/{draggable-kPCz_3zM.js → draggable-kG-D5Xsm.js} +6 -6
  59. package/dist/cdn/chunks/draggable-kG-D5Xsm.js.map +1 -0
  60. package/dist/cdn/chunks/extensions-C2pTX899.js +421 -0
  61. package/dist/cdn/chunks/extensions-C2pTX899.js.map +1 -0
  62. package/dist/cdn/chunks/{features-CkTMVylx.js → features-CHE3YjQE.js} +886 -837
  63. package/dist/cdn/chunks/features-CHE3YjQE.js.map +1 -0
  64. package/dist/cdn/chunks/{icons-9zjCuoJx.js → icons-M4uqBV-_.js} +26 -26
  65. package/dist/cdn/chunks/{icons-9zjCuoJx.js.map → icons-M4uqBV-_.js.map} +1 -1
  66. package/dist/cdn/chunks/{liquid.browser-DKKBzRQu.js → liquid.browser-BJOEu6Cg.js} +693 -678
  67. package/dist/cdn/chunks/liquid.browser-BJOEu6Cg.js.map +1 -0
  68. package/dist/cdn/chunks/{media-library-DMRIPx4g.js → media-library-Bqr15VN2.js} +33 -33
  69. package/dist/cdn/chunks/{media-library-DMRIPx4g.js.map → media-library-Bqr15VN2.js.map} +1 -1
  70. package/dist/cdn/chunks/{pusher-CdEqyLwF.js → pusher-CIwiKF8H.js} +4 -4
  71. package/dist/cdn/chunks/{pusher-CdEqyLwF.js.map → pusher-CIwiKF8H.js.map} +1 -1
  72. package/dist/cdn/chunks/{quality-CyeUgs_c.js → quality-DJZ_fqc2.js} +112 -112
  73. package/dist/cdn/chunks/{quality-CyeUgs_c.js.map → quality-DJZ_fqc2.js.map} +1 -1
  74. package/dist/cdn/chunks/{renderer-BIKUEKDD.js → renderer-CyzTR1Vq.js} +20 -20
  75. package/dist/cdn/chunks/renderer-CyzTR1Vq.js.map +1 -0
  76. package/dist/cdn/chunks/{src-pDy_imWG.js → src-q-SBgWx7.js} +5 -5
  77. package/dist/cdn/chunks/{src-pDy_imWG.js.map → src-q-SBgWx7.js.map} +1 -1
  78. package/dist/cdn/chunks/{styles-D4Bd3SCx.js → styles-PWISdaws.js} +1484 -1344
  79. package/dist/cdn/chunks/styles-PWISdaws.js.map +1 -0
  80. package/dist/cdn/chunks/{tiptap-BlLFFU3M.js → tiptap-DF9PEiqH.js} +6859 -6823
  81. package/dist/cdn/chunks/tiptap-DF9PEiqH.js.map +1 -0
  82. package/dist/cdn/editor.css +1 -1
  83. package/dist/cdn/editor.js +35 -35
  84. package/dist/cdn/editor.js.map +1 -1
  85. package/dist/{check-CYJwFmjy.js → check-rl7ok6uJ.js} +1 -1
  86. package/dist/{chevron-down-C5l-DzAA.js → chevron-down-BKe__NOD.js} +1 -1
  87. package/dist/{circle-alert-wf5HUFZY.js → circle-alert-C8xmpMsK.js} +1 -1
  88. package/dist/{clock-Bj0bQw-K.js → clock-BW4JuDCN.js} +1 -1
  89. package/dist/{cloud-CoFDm9YA.js → cloud-BQusL53H.js} +208 -208
  90. package/dist/createLucideIcon-Dx-EjR9r.js +43 -0
  91. package/dist/{dist-CLpPNKy9.js → dist-B5Sov3sS.js} +7 -7
  92. package/dist/dist-BEWiuOMi.js +251 -0
  93. package/dist/{dist-CrQZ_af9.js → dist-BFmE-7hB.js} +2 -2
  94. package/dist/{dist-U5vfDdYI.js → dist-BMoa33wT.js} +2 -2
  95. package/dist/{dist-BctFrpeA.js → dist-BibU4HNl.js} +74 -65
  96. package/dist/{dist-Dd3ibRZm.js → dist-BsCGIDSt.js} +103 -102
  97. package/dist/dist-CNLKj9wa.js +5 -0
  98. package/dist/{dist-BX3gGwL8.js → dist-CNXDNYQn.js} +728 -694
  99. package/dist/{dist-Bn703mnA.js → dist-COG3IdPK.js} +3 -3
  100. package/dist/{dist-B7w6xTU6.js → dist-CQZxDvFw.js} +3 -3
  101. package/dist/{dist-34OcyoK1.js → dist-CRsjOQM-.js} +2 -2
  102. package/dist/dist-CTT6WYJ6.js +134 -0
  103. package/dist/dist-Cqa6aeAJ.js +5 -0
  104. package/dist/{dist-ChMninLH.js → dist-SXJJ2v41.js} +2 -2
  105. package/dist/{dist-CyjyYg52.js → dist-itdjZraK.js} +28 -23
  106. package/dist/extensions-DwaZAqm6.js +423 -0
  107. package/dist/{image-up-x8-WXfsx.js → image-up-BwBCmQ4P.js} +1 -1
  108. package/dist/{info-RS_fGcGi.js → info-TCn7uWR5.js} +1 -1
  109. package/dist/{keys-DgYXDafq.js → keys-Cv8-8GsD.js} +1 -1
  110. package/dist/{liquid.browser-CVjP5Mex.js → liquid.browser-DZLtv26k.js} +692 -677
  111. package/dist/{list-checks-Bf7XdDyv.js → list-checks-CSrOWNgq.js} +1 -1
  112. package/dist/{loader-circle-CLZ0_FvW.js → loader-circle-BLmicnPG.js} +1 -1
  113. package/dist/{message-circle-B-1bN9ab.js → message-circle-C9hHMQCI.js} +1 -1
  114. package/dist/{refresh-cw-CWKWqJYG.js → refresh-cw-D1JQ1LNa.js} +1 -1
  115. package/dist/runtime-dom.esm-bundler-BzuoCyNp.js +523 -0
  116. package/dist/{scan-line-BtK5dEai.js → scan-line-DgijVq9y.js} +1 -1
  117. package/dist/{send-Cn1IUdzh.js → send-DjPdq69F.js} +1 -1
  118. package/dist/{shield-check-CrvMk4Ea.js → shield-check-Bqluu8FS.js} +1 -1
  119. package/dist/{sparkles-CgfjwvnG.js → sparkles-M4azPVSP.js} +1 -1
  120. package/dist/style.css +1 -1
  121. package/dist/styles-B2OrgEnn.js +4164 -0
  122. package/dist/templatical-editor.js +127 -126
  123. package/dist/{text-align-start-C3r_Rnvy.js → text-align-start-CMya5pCQ.js} +11 -11
  124. package/dist/{trash-2-CjERg4x9.js → trash-2-C-81rkLS.js} +1 -1
  125. package/dist/{triangle-alert-Chkny574.js → triangle-alert-BuRWnynk.js} +1 -1
  126. package/dist/{upload-e5kDRkPb.js → upload-CWBIoLd4.js} +1 -1
  127. package/dist/{useAliveFlag-cUQj9rmB.js → useAliveFlag-CECL_OUb.js} +1 -1
  128. package/dist/{useCloudI18n-CYJKqXtI.js → useCloudI18n-AKCy98qD.js} +2 -2
  129. package/dist/{useEditorCore-8JxXDOA4.js → useEditorCore-DJeOXVxQ.js} +1407 -1365
  130. package/dist/{useI18n-BWqM8i78.js → useI18n-C-TDeJBt.js} +2 -2
  131. package/dist/{useMergeTag-NHC4ylza.js → useMergeTag-DSrBY0-2.js} +5 -5
  132. package/dist/usePopoverRoot-DKUDnr55.js +8 -0
  133. package/dist/{vue.runtime.esm-bundler-BPa483TZ.js → vue.runtime.esm-bundler-l0XAqiyv.js} +626 -1147
  134. package/dist/{x-DiPIbccg.js → x-CQSvXnGR.js} +1 -1
  135. package/package.json +26 -26
  136. package/dist/CountdownBlock-DtAokAVw.js +0 -92
  137. package/dist/CountdownToolbar-Dtqgwy0g.js +0 -210
  138. package/dist/cdn/chunks/TitleEditor-DO1-h3RY.js.map +0 -1
  139. package/dist/cdn/chunks/draggable-kPCz_3zM.js.map +0 -1
  140. package/dist/cdn/chunks/extensions-iwBXnEwq.js +0 -605
  141. package/dist/cdn/chunks/extensions-iwBXnEwq.js.map +0 -1
  142. package/dist/cdn/chunks/features-CkTMVylx.js.map +0 -1
  143. package/dist/cdn/chunks/liquid.browser-DKKBzRQu.js.map +0 -1
  144. package/dist/cdn/chunks/renderer-BIKUEKDD.js.map +0 -1
  145. package/dist/cdn/chunks/styles-D4Bd3SCx.js.map +0 -1
  146. package/dist/cdn/chunks/tiptap-BlLFFU3M.js.map +0 -1
  147. package/dist/createLucideIcon-Bad2kKE0.js +0 -43
  148. package/dist/dist-CADDCv0o.js +0 -5
  149. package/dist/dist-CGvz7vkq.js +0 -5
  150. package/dist/dist-DuCzdgDA.js +0 -382
  151. package/dist/extensions-J439b7y7.js +0 -1720
  152. package/dist/styles-BUwDOWd3.js +0 -4022
  153. package/dist/usePopoverRoot-B1sdY4es.js +0 -8
@@ -1,5 +1,5 @@
1
- import { c as e, qt as t } from "./dist-CyjyYg52.js";
2
- //#region ../../node_modules/.pnpm/@tiptap+extension-superscript@3.27.1_@tiptap+core@3.27.1_@tiptap+pm@3.27.1__@tiptap+pm@3.27.1/node_modules/@tiptap/extension-superscript/dist/index.js
1
+ import { c as e, qt as t } from "./dist-itdjZraK.js";
2
+ //#region ../../node_modules/.pnpm/@tiptap+extension-superscript@3.27.3_@tiptap+core@3.27.3_@tiptap+pm@3.27.3__@tiptap+pm@3.27.3/node_modules/@tiptap/extension-superscript/dist/index.js
3
3
  var n = e.create({
4
4
  name: "superscript",
5
5
  addOptions() {
@@ -9,7 +9,7 @@ var n = e.create({
9
9
  return [{ tag: "sup" }, {
10
10
  style: "vertical-align",
11
11
  getAttrs(e) {
12
- return e === "super" ? null : !1;
12
+ return e === "super" && null;
13
13
  }
14
14
  }];
15
15
  },
@@ -1,5 +1,5 @@
1
- import { c as e, qt as t } from "./dist-CyjyYg52.js";
2
- //#region ../../node_modules/.pnpm/@tiptap+extension-subscript@3.27.1_@tiptap+core@3.27.1_@tiptap+pm@3.27.1__@tiptap+pm@3.27.1/node_modules/@tiptap/extension-subscript/dist/index.js
1
+ import { c as e, qt as t } from "./dist-itdjZraK.js";
2
+ //#region ../../node_modules/.pnpm/@tiptap+extension-subscript@3.27.3_@tiptap+core@3.27.3_@tiptap+pm@3.27.3__@tiptap+pm@3.27.3/node_modules/@tiptap/extension-subscript/dist/index.js
3
3
  var n = e.create({
4
4
  name: "subscript",
5
5
  addOptions() {
@@ -9,7 +9,7 @@ var n = e.create({
9
9
  return [{ tag: "sub" }, {
10
10
  style: "vertical-align",
11
11
  getAttrs(e) {
12
- return e === "sub" ? null : !1;
12
+ return e === "sub" && null;
13
13
  }
14
14
  }];
15
15
  },
@@ -1,5 +1,5 @@
1
- import { i as e } from "./dist-CyjyYg52.js";
2
- //#region ../../node_modules/.pnpm/@tiptap+extension-text-align@3.27.1_@tiptap+core@3.27.1_@tiptap+pm@3.27.1_/node_modules/@tiptap/extension-text-align/dist/index.js
1
+ import { i as e } from "./dist-itdjZraK.js";
2
+ //#region ../../node_modules/.pnpm/@tiptap+extension-text-align@3.27.3_@tiptap+core@3.27.3_@tiptap+pm@3.27.3_/node_modules/@tiptap/extension-text-align/dist/index.js
3
3
  var t = e.create({
4
4
  name: "textAlign",
5
5
  addOptions() {
@@ -0,0 +1,134 @@
1
+ import { E as e, H as t, I as n, K as r, W as i, X as a, Y as o, Z as s, b as c, et as l, v as u, w as d, x as f } from "./vue.runtime.esm-bundler-l0XAqiyv.js";
2
+ //#region ../../node_modules/.pnpm/@vueuse+shared@14.3.0_vue@3.5.39_typescript@6.0.3_/node_modules/@vueuse/shared/dist/index.js
3
+ function p(e, n) {
4
+ return t() ? (r(e, n), !0) : !1;
5
+ }
6
+ var m = /* @__PURE__ */ new WeakMap(), h = (...e) => {
7
+ let n = e[0], r = u()?.proxy ?? t();
8
+ if (r == null && !c()) throw Error("injectLocal must be called in setup");
9
+ return r && m.has(r) && n in m.get(r) ? m.get(r)[n] : f(...e);
10
+ }, g = typeof window < "u" && typeof document < "u";
11
+ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
12
+ var _ = (e) => e != null, v = Object.prototype.toString, y = (e) => v.call(e) === "[object Object]", b = () => {}, x = /* @__PURE__ */ S();
13
+ function S() {
14
+ var e, t;
15
+ return g && !!(!((e = window) == null || (e = e.navigator) == null) && e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window) == null || (t = t.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window?.navigator.userAgent));
16
+ }
17
+ function C(e, t) {
18
+ function n(...n) {
19
+ return new Promise((r, i) => {
20
+ Promise.resolve(e(() => t.apply(this, n), {
21
+ fn: t,
22
+ thisArg: this,
23
+ args: n
24
+ })).then(r).catch(i);
25
+ });
26
+ }
27
+ return n;
28
+ }
29
+ var w = (e) => e();
30
+ function T(e, t = {}) {
31
+ let n, r, i = b, a = (e) => {
32
+ clearTimeout(e), i(), i = b;
33
+ }, o;
34
+ return (s) => {
35
+ let c = l(e), u = l(t.maxWait);
36
+ return n && a(n), c <= 0 || u !== void 0 && u <= 0 ? (r &&= (a(r), void 0), Promise.resolve(s())) : new Promise((e, l) => {
37
+ i = t.rejectOnCancel ? l : e, o = s, u && !r && (r = setTimeout(() => {
38
+ n && a(n), r = void 0, e(o());
39
+ }, u)), n = setTimeout(() => {
40
+ r && a(r), r = void 0, e(s());
41
+ }, c);
42
+ });
43
+ };
44
+ }
45
+ function E(e) {
46
+ return e.endsWith("rem") ? Number.parseFloat(e) * 16 : Number.parseFloat(e);
47
+ }
48
+ function D(e) {
49
+ return Array.isArray(e) ? e : [e];
50
+ }
51
+ function O(e) {
52
+ return e || u();
53
+ }
54
+ function k(e, t = 200, n = {}) {
55
+ return C(T(t, n), e);
56
+ }
57
+ function A(e, t = 200, r = {}) {
58
+ let i = o(l(e)), s = k(() => {
59
+ i.value = e.value;
60
+ }, t, r);
61
+ return n(e, () => s()), a(i);
62
+ }
63
+ function j(e, t, r = {}) {
64
+ let { eventFilter: i = w, ...a } = r;
65
+ return n(e, C(i, t), a);
66
+ }
67
+ function M(t, n = !0, r) {
68
+ O(r) ? e(t, r) : n ? t() : d(t);
69
+ }
70
+ function N(e, t = 1e3, r = {}) {
71
+ let { immediate: o = !0, immediateCallback: c = !1 } = r, u = null, d = s(!1);
72
+ function f() {
73
+ u &&= (clearInterval(u), null);
74
+ }
75
+ function m() {
76
+ d.value = !1, f();
77
+ }
78
+ function h() {
79
+ let n = l(t);
80
+ n <= 0 || (d.value = !0, c && e(), f(), d.value && (u = setInterval(e, n)));
81
+ }
82
+ return o && g && h(), (i(t) || typeof t == "function") && p(n(t, () => {
83
+ d.value && g && h();
84
+ })), p(m), {
85
+ isActive: a(d),
86
+ pause: m,
87
+ resume: h
88
+ };
89
+ }
90
+ function P(e, t, n = {}) {
91
+ let { immediate: r = !0, immediateCallback: i = !1 } = n, o = s(!1), c;
92
+ function u() {
93
+ c &&= (clearTimeout(c), void 0);
94
+ }
95
+ function d() {
96
+ o.value = !1, u();
97
+ }
98
+ function f(...n) {
99
+ i && e(), u(), o.value = !0, c = setTimeout(() => {
100
+ o.value = !1, c = void 0, e(...n);
101
+ }, l(t));
102
+ }
103
+ return r && (o.value = !0, g && f()), p(d), {
104
+ isPending: a(o),
105
+ start: f,
106
+ stop: d
107
+ };
108
+ }
109
+ function F(e = !1, t = {}) {
110
+ let { truthyValue: n = !0, falsyValue: r = !1 } = t, a = i(e), o = s(e);
111
+ function c(e) {
112
+ if (arguments.length) return o.value = e, o.value;
113
+ {
114
+ let e = l(n);
115
+ return o.value = o.value === e ? l(r) : e, o.value;
116
+ }
117
+ }
118
+ return a ? c : [o, c];
119
+ }
120
+ function I(e, t, n = {}) {
121
+ let { debounce: r = 0, maxWait: i = void 0, ...a } = n;
122
+ return j(e, t, {
123
+ ...a,
124
+ eventFilter: T(r, { maxWait: i })
125
+ });
126
+ }
127
+ function L(e, t, r) {
128
+ return n(e, t, {
129
+ ...r,
130
+ immediate: !0
131
+ });
132
+ }
133
+ //#endregion
134
+ export { L as _, b as a, A as c, p as d, k as f, I as g, F as h, y as i, D as l, P as m, g as n, _ as o, N as p, x as r, E as s, h as t, M as u };
@@ -0,0 +1,5 @@
1
+ import { FontFamily as e } from "./dist-SXJJ2v41.js";
2
+ //#region ../../node_modules/.pnpm/@tiptap+extension-font-family@3.27.3_@tiptap+extension-text-style@3.27.3_@tiptap+core@3.27.3_@tiptap+pm@3.27.3__/node_modules/@tiptap/extension-font-family/dist/index.js
3
+ var t = e;
4
+ //#endregion
5
+ export { e as FontFamily, t as default };
@@ -1,5 +1,5 @@
1
- import { c as e, ft as t, i as n, qt as r } from "./dist-CyjyYg52.js";
2
- //#region ../../node_modules/.pnpm/@tiptap+extension-text-style@3.27.1_@tiptap+core@3.27.1_@tiptap+pm@3.27.1_/node_modules/@tiptap/extension-text-style/dist/index.js
1
+ import { c as e, ft as t, i as n, qt as r } from "./dist-itdjZraK.js";
2
+ //#region ../../node_modules/.pnpm/@tiptap+extension-text-style@3.27.3_@tiptap+core@3.27.3_@tiptap+pm@3.27.3_/node_modules/@tiptap/extension-text-style/dist/index.js
3
3
  var i = 20, a = (e, t = 0) => {
4
4
  let n = [];
5
5
  return !e.children.length || t > i || Array.from(e.children).forEach((e) => {
@@ -6763,7 +6763,7 @@ function vs(e, t, n) {
6763
6763
  topOpen: !0,
6764
6764
  from: i,
6765
6765
  to: a,
6766
- preserveWhitespace: p.parent.type.whitespace == "pre" ? "full" : !0,
6766
+ preserveWhitespace: p.parent.type.whitespace != "pre" || "full",
6767
6767
  findPositions: l,
6768
6768
  ruleFromNode: ys,
6769
6769
  context: p
@@ -7287,7 +7287,7 @@ function qs(e) {
7287
7287
  };
7288
7288
  }
7289
7289
  //#endregion
7290
- //#region ../../node_modules/.pnpm/@tiptap+core@3.27.1_@tiptap+pm@3.27.1/node_modules/@tiptap/core/dist/index.js
7290
+ //#region ../../node_modules/.pnpm/@tiptap+core@3.27.3_@tiptap+pm@3.27.3/node_modules/@tiptap/core/dist/index.js
7291
7291
  var Js = Object.defineProperty, Ys = (e, t) => {
7292
7292
  for (var n in t) Js(e, n, {
7293
7293
  get: t[n],
@@ -7506,17 +7506,22 @@ var oc = (e) => ({ tr: t, state: n, dispatch: r }) => {
7506
7506
  from: lc(e, n, "left"),
7507
7507
  to: lc(t, n, "right")
7508
7508
  }), dc = () => ({ state: e, dispatch: t }) => {
7509
- let { $from: n, $to: r } = e.selection;
7510
7509
  if (e.selection.empty) return !1;
7511
- let { from: i, to: a } = uc(n, r, e.schema);
7512
- return t && (e.tr.deleteRange(i, a).scrollIntoView(), t(e.tr)), !0;
7510
+ if (t) {
7511
+ let n = e.tr, { ranges: r } = e.selection, i = n.steps.length;
7512
+ r.forEach((t) => {
7513
+ let r = n.mapping.slice(i), { from: a, to: o } = uc(n.doc.resolve(r.map(t.$from.pos)), n.doc.resolve(r.map(t.$to.pos)), e.schema);
7514
+ n.deleteRange(a, o);
7515
+ }), n.scrollIntoView(), t(n);
7516
+ }
7517
+ return !0;
7513
7518
  }, fc = () => ({ commands: e }) => e.keyboardShortcut("Enter"), pc = () => ({ state: e, dispatch: t }) => $n(e, t);
7514
7519
  function mc(e) {
7515
7520
  return Object.prototype.toString.call(e) === "[object RegExp]";
7516
7521
  }
7517
7522
  function hc(e, t, n = { strict: !0 }) {
7518
7523
  let r = Object.keys(t);
7519
- return r.length ? r.every((r) => n.strict ? t[r] === e[r] : mc(t[r]) ? t[r].test(e[r]) : t[r] === e[r]) : !0;
7524
+ return !r.length || r.every((r) => n.strict ? t[r] === e[r] : mc(t[r]) ? t[r].test(e[r]) : t[r] === e[r]);
7520
7525
  }
7521
7526
  function gc(e, t, n = {}) {
7522
7527
  return e.find((e) => e.type === t && hc(Object.fromEntries(Object.keys(n).map((t) => [t, e.attrs[t]])), n));
@@ -7591,7 +7596,7 @@ function wc() {
7591
7596
  ].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document;
7592
7597
  }
7593
7598
  function Tc() {
7594
- return typeof navigator < "u" ? /^((?!chrome|android).)*safari/i.test(navigator.userAgent) : !1;
7599
+ return typeof navigator < "u" && /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
7595
7600
  }
7596
7601
  var Ec = (e = null, t = {}) => ({ editor: n, view: r, tr: i, dispatch: a }) => {
7597
7602
  t = {
@@ -7767,7 +7772,7 @@ var Nc = (e) => !("type" in e), Pc = (e, t, n) => ({ tr: r, dispatch: i, editor:
7767
7772
  }
7768
7773
  }, Vc = () => ({ state: e, dispatch: t }) => Rn(e, t), Hc = () => ({ state: e, dispatch: t }) => zn(e, t);
7769
7774
  function Uc() {
7770
- return typeof navigator < "u" ? /Mac/.test(navigator.platform) : !1;
7775
+ return typeof navigator < "u" && /Mac/.test(navigator.platform);
7771
7776
  }
7772
7777
  function Wc(e) {
7773
7778
  let t = e.split(/-(?!$)/), n = t[t.length - 1];
@@ -7817,7 +7822,7 @@ function Kc(e, t, n = {}) {
7817
7822
  to: a
7818
7823
  });
7819
7824
  });
7820
- let c = i - r, l = s.filter((e) => o ? o.name === e.node.type.name : !0).filter((e) => hc(e.node.attrs, n, { strict: !1 }));
7825
+ let c = i - r, l = s.filter((e) => !o || o.name === e.node.type.name).filter((e) => hc(e.node.attrs, n, { strict: !1 }));
7821
7826
  return a ? !!l.length : l.reduce((e, t) => e + t.to - t.from, 0) >= c;
7822
7827
  }
7823
7828
  var qc = (e, t = {}) => ({ state: n, dispatch: r }) => Kc(n, J(e, n.schema), t) ? Xn(n, r) : !1, Jc = () => ({ state: e, dispatch: t }) => tr(e, t), Yc = (e) => ({ state: t, dispatch: n }) => xr(J(e, t.schema))(t, n), Xc = () => ({ state: e, dispatch: t }) => Zn(e, t);
@@ -8074,7 +8079,7 @@ function Tl(e, t) {
8074
8079
  return t.filter((t) => t.type === e.type.name).filter((e) => e.attribute.rendered).map((t) => t.attribute.renderHTML ? t.attribute.renderHTML(e.attrs) || {} : { [t.name]: e.attrs[t.name] }).reduce((e, t) => wl(e, t), {});
8075
8080
  }
8076
8081
  function El(e) {
8077
- return typeof e == "string" ? e.match(/^[+-]?(?:\d*\.)?\d+$/) ? Number(e) : e === "true" ? !0 : e === "false" ? !1 : e : e;
8082
+ return typeof e == "string" ? e.match(/^[+-]?(?:\d*\.)?\d+$/) ? Number(e) : e === "true" || e !== "false" && e : e;
8078
8083
  }
8079
8084
  function Dl(e, t) {
8080
8085
  return "style" in e ? e : {
@@ -8351,7 +8356,7 @@ var Zl = (e, t = 500) => {
8351
8356
  };
8352
8357
  function Ql(e, t, n = {}) {
8353
8358
  let { empty: r, ranges: i } = e.selection, a = t ? Y(t, e.schema) : null;
8354
- if (r) return !!(e.storedMarks || e.selection.$from.marks()).filter((e) => a ? a.name === e.type.name : !0).find((e) => hc(e.attrs, n, { strict: !1 }));
8359
+ if (r) return !!(e.storedMarks || e.selection.$from.marks()).filter((e) => !a || a.name === e.type.name).find((e) => hc(e.attrs, n, { strict: !1 }));
8355
8360
  let o = 0, s = [];
8356
8361
  if (i.forEach(({ $from: t, $to: n }) => {
8357
8362
  let r = t.pos, i = n.pos;
@@ -8366,13 +8371,13 @@ function Ql(e, t, n = {}) {
8366
8371
  })));
8367
8372
  });
8368
8373
  }), o === 0) return !1;
8369
- let c = s.filter((e) => a ? a.name === e.mark.type.name : !0).filter((e) => hc(e.mark.attrs, n, { strict: !1 })).reduce((e, t) => e + t.to - t.from, 0), l = s.filter((e) => a ? e.mark.type !== a && e.mark.type.excludes(a) : !0).reduce((e, t) => e + t.to - t.from, 0);
8374
+ let c = s.filter((e) => !a || a.name === e.mark.type.name).filter((e) => hc(e.mark.attrs, n, { strict: !1 })).reduce((e, t) => e + t.to - t.from, 0), l = s.filter((e) => !a || e.mark.type !== a && e.mark.type.excludes(a)).reduce((e, t) => e + t.to - t.from, 0);
8370
8375
  return (c > 0 ? c + l : c) >= o;
8371
8376
  }
8372
8377
  function $l(e, t, n = {}) {
8373
8378
  if (!t) return Kc(e, null, n) || Ql(e, null, n);
8374
8379
  let r = Zc(t, e.schema);
8375
- return r === "node" ? Kc(e, t, n) : r === "mark" ? Ql(e, t, n) : !1;
8380
+ return r === "node" ? Kc(e, t, n) : r === "mark" && Ql(e, t, n);
8376
8381
  }
8377
8382
  var eu = (e, t) => {
8378
8383
  let { $from: n, $to: r, $anchor: i } = e.selection;
@@ -8398,7 +8403,7 @@ function ru(e, t) {
8398
8403
  options: r.options,
8399
8404
  storage: r.storage
8400
8405
  }));
8401
- return typeof i == "string" ? i.split(" ").includes("list") : !1;
8406
+ return typeof i == "string" && i.split(" ").includes("list");
8402
8407
  }
8403
8408
  function iu(e, { checkChildren: t = !0, ignoreWhitespace: n = !1 } = {}) {
8404
8409
  if (n) {
@@ -8507,7 +8512,7 @@ function pu(e, t, n) {
8507
8512
  }
8508
8513
  let { ranges: a } = r;
8509
8514
  return a.some(({ $from: t, $to: r }) => {
8510
- let i = t.depth === 0 ? e.doc.inlineContent && e.doc.type.allowsMarkType(n) : !1;
8515
+ let i = t.depth === 0 && e.doc.inlineContent && e.doc.type.allowsMarkType(n);
8511
8516
  return e.doc.nodesBetween(t.pos, r.pos, (e, t, r) => {
8512
8517
  if (i) return !1;
8513
8518
  if (e.isInline) {
@@ -8815,7 +8820,7 @@ function Vu(e, t) {
8815
8820
  if (e === t) return !0;
8816
8821
  if (!e || !t) return !1;
8817
8822
  let n = Object.keys(e), r = Object.keys(t);
8818
- return n.length === r.length ? n.every((n) => Object.prototype.hasOwnProperty.call(t, n) && Object.is(e[n], t[n])) : !1;
8823
+ return n.length === r.length && n.every((n) => Object.prototype.hasOwnProperty.call(t, n) && Object.is(e[n], t[n]));
8819
8824
  }
8820
8825
  function Hu(e, t) {
8821
8826
  let { selection: n } = e, { $from: r } = n;
@@ -8857,7 +8862,7 @@ function qu(e) {
8857
8862
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
8858
8863
  }
8859
8864
  function Ju() {
8860
- return typeof navigator < "u" ? /Firefox/.test(navigator.userAgent) : !1;
8865
+ return typeof navigator < "u" && /Firefox/.test(navigator.userAgent);
8861
8866
  }
8862
8867
  function Yu(e) {
8863
8868
  return typeof e == "number";
@@ -8866,7 +8871,7 @@ function Xu(e) {
8866
8871
  return Object.prototype.toString.call(e).slice(8, -1);
8867
8872
  }
8868
8873
  function Zu(e) {
8869
- return Xu(e) === "Object" ? e.constructor === Object && Object.getPrototypeOf(e) === Object.prototype : !1;
8874
+ return Xu(e) === "Object" && e.constructor === Object && Object.getPrototypeOf(e) === Object.prototype;
8870
8875
  }
8871
8876
  function Qu(e) {
8872
8877
  return typeof e == "string";
@@ -9196,7 +9201,7 @@ var pd = class {
9196
9201
  fd(t || this.mark, this.editor, e);
9197
9202
  }
9198
9203
  ignoreMutation(e) {
9199
- return !this.dom || !this.contentDOM ? !0 : typeof this.options.ignoreMutation == "function" ? this.options.ignoreMutation({ mutation: e }) : e.type === "selection" || this.dom.contains(e.target) && e.type === "childList" && (wc() || Cc()) && this.editor.isFocused && [...Array.from(e.addedNodes), ...Array.from(e.removedNodes)].every((e) => e.isContentEditable) ? !1 : this.contentDOM === e.target && e.type === "attributes" ? !0 : !this.contentDOM.contains(e.target);
9204
+ return !this.dom || !this.contentDOM ? !0 : typeof this.options.ignoreMutation == "function" ? this.options.ignoreMutation({ mutation: e }) : e.type === "selection" || this.dom.contains(e.target) && e.type === "childList" && (wc() || Cc()) && this.editor.isFocused && [...Array.from(e.addedNodes), ...Array.from(e.removedNodes)].every((e) => e.isContentEditable) ? !1 : this.contentDOM === e.target && e.type === "attributes" || !this.contentDOM.contains(e.target);
9200
9205
  }
9201
9206
  }, md = class {
9202
9207
  constructor(e) {
@@ -9762,7 +9767,7 @@ var $ = class e extends vd {
9762
9767
  let i = r.mapping;
9763
9768
  r.steps.forEach((t, n) => {
9764
9769
  if (t instanceof vt) {
9765
- let a = i.slice(n).map(t.from, -1), o = i.slice(n).map(t.to), s = i.invert().map(a, -1), c = i.invert().map(o), l = a > 0 ? r.doc.nodeAt(a - 1)?.marks.some((e) => e.eq(t.mark)) : !1, u = r.doc.nodeAt(o)?.marks.some((e) => e.eq(t.mark));
9770
+ let a = i.slice(n).map(t.from, -1), o = i.slice(n).map(t.to), s = i.invert().map(a, -1), c = i.invert().map(o), l = a > 0 && r.doc.nodeAt(a - 1)?.marks.some((e) => e.eq(t.mark)), u = r.doc.nodeAt(o)?.marks.some((e) => e.eq(t.mark));
9766
9771
  this.editor.emit("delete", {
9767
9772
  type: "mark",
9768
9773
  mark: t.mark,
@@ -10212,7 +10217,7 @@ var $ = class e extends vd {
10212
10217
  Id,
10213
10218
  Ad,
10214
10219
  Rd.configure({ direction: this.options.textDirection })
10215
- ].filter((e) => typeof this.options.enableCoreExtensions == "object" ? this.options.enableCoreExtensions[e.name] !== !1 : !0) : [], ...this.options.extensions].filter((e) => [
10220
+ ].filter((e) => typeof this.options.enableCoreExtensions != "object" || this.options.enableCoreExtensions[e.name] !== !1) : [], ...this.options.extensions].filter((e) => [
10216
10221
  "extension",
10217
10222
  "node",
10218
10223
  "mark"
@@ -10513,7 +10518,7 @@ var Jd = (e, t) => {
10513
10518
  e !== this.lastEditableState && (this.lastEditableState = e, e ? e && this.handleMap.size === 0 && this.attachHandles() : this.removeHandles());
10514
10519
  }
10515
10520
  update(e, t, n) {
10516
- return e.type === this.node.type ? (this.node = e, this.onUpdate ? this.onUpdate(e, t, n) : !0) : !1;
10521
+ return e.type === this.node.type ? (this.node = e, !this.onUpdate || this.onUpdate(e, t, n)) : !1;
10517
10522
  }
10518
10523
  destroy() {
10519
10524
  this.isResizing && (this.container.dataset.resizeState = "false", this.classNames.resizing && this.container.classList.remove(this.classNames.resizing), document.removeEventListener("mousemove", this.handleMouseMove), document.removeEventListener("mouseup", this.handleMouseUp), document.removeEventListener("keydown", this.handleKeyDown), document.removeEventListener("keyup", this.handleKeyUp), this.isResizing = !1, this.activeHandle = null), this.editor.off("update", this.handleEditorUpdate.bind(this)), this.container.remove();
@@ -10674,7 +10679,7 @@ var Jd = (e, t) => {
10674
10679
  return !(o || r || i || l || u || d || f && c);
10675
10680
  }
10676
10681
  ignoreMutation(e) {
10677
- return !this.dom || !this.contentDOM ? !0 : typeof this.options.ignoreMutation == "function" ? this.options.ignoreMutation({ mutation: e }) : this.node.isLeaf || this.node.isAtom ? !0 : e.type === "selection" || this.dom.contains(e.target) && e.type === "childList" && (wc() || Cc()) && this.editor.isFocused && [...Array.from(e.addedNodes), ...Array.from(e.removedNodes)].every((e) => e.isContentEditable) ? !1 : this.contentDOM === e.target && e.type === "attributes" ? !0 : !this.contentDOM.contains(e.target);
10682
+ return !this.dom || !this.contentDOM ? !0 : typeof this.options.ignoreMutation == "function" ? this.options.ignoreMutation({ mutation: e }) : this.node.isLeaf || this.node.isAtom ? !0 : e.type === "selection" || this.dom.contains(e.target) && e.type === "childList" && (wc() || Cc()) && this.editor.isFocused && [...Array.from(e.addedNodes), ...Array.from(e.removedNodes)].every((e) => e.isContentEditable) ? !1 : this.contentDOM === e.target && e.type === "attributes" || !this.contentDOM.contains(e.target);
10678
10683
  }
10679
10684
  updateAttributes(e) {
10680
10685
  this.editor.commands.command(({ tr: t }) => {