@templatical/editor 0.8.4 → 0.8.5

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 (88) hide show
  1. package/dist/{AiChatSidebar-CnRXeK77.js → AiChatSidebar-uhkhnXQd.js} +1 -1
  2. package/dist/{AiFeatureMenu-BYDDrpj6.js → AiFeatureMenu-DXNKvXP5.js} +1 -1
  3. package/dist/{CloudEditor-B9a_K6Cm.js → CloudEditor-BSkPQjwo.js} +6 -6
  4. package/dist/{CollaboratorBar-HN4whzM-.js → CollaboratorBar-CP76Sh6c.js} +1 -1
  5. package/dist/{DesignReferenceSidebar-0GwjUn2V.js → DesignReferenceSidebar-CfJqJ7l6.js} +1 -1
  6. package/dist/{ModuleBrowserModal-DPZBsvqk.js → ModuleBrowserModal-BFQTm6uY.js} +4 -4
  7. package/dist/{ModulePreviewCanvas-CK4j11-e.js → ModulePreviewCanvas-DeqMpo73.js} +1 -1
  8. package/dist/{ParagraphEditor-DBus_iHH.js → ParagraphEditor-DqomSbW3.js} +13 -13
  9. package/dist/{SaveModuleDialog-DORRSbBo.js → SaveModuleDialog-DKcpPeWd.js} +2 -2
  10. package/dist/{SnapshotHistory-DTMVEk03.js → SnapshotHistory-Z9RQj53S.js} +1 -1
  11. package/dist/{TestEmailModal-DJmYp0Qi.js → TestEmailModal-C8DhylO1.js} +2 -2
  12. package/dist/{TitleEditor-70d9AF1V.js → TitleEditor-CgLrn6R3.js} +5 -5
  13. package/dist/{TplModal-BEfwlvPC.js → TplModal-CbwRwmR3.js} +1 -1
  14. package/dist/{blockTypeIcons-2DRoPa3K.js → blockTypeIcons-CccKujXP.js} +1 -1
  15. package/dist/bundle-stats.json +6 -6
  16. package/dist/cdn/chunks/{AiFeatureMenu-CcuKnisc.js → AiFeatureMenu-ChNv7XXj.js} +2 -2
  17. package/dist/cdn/chunks/{AiFeatureMenu-CcuKnisc.js.map → AiFeatureMenu-ChNv7XXj.js.map} +1 -1
  18. package/dist/cdn/chunks/{BlockIssueBadge-Sr3is7Wr.js → BlockIssueBadge-BovmWgok.js} +2 -2
  19. package/dist/cdn/chunks/{BlockIssueBadge-Sr3is7Wr.js.map → BlockIssueBadge-BovmWgok.js.map} +1 -1
  20. package/dist/cdn/chunks/{CloudEditor-Bi10d2Gq.js → CloudEditor-CHF_P5OL.js} +7 -7
  21. package/dist/cdn/chunks/{CloudEditor-Bi10d2Gq.js.map → CloudEditor-CHF_P5OL.js.map} +1 -1
  22. package/dist/cdn/chunks/{CollaboratorBar-C0zeecvl.js → CollaboratorBar-Bjr5YSh0.js} +3 -3
  23. package/dist/cdn/chunks/{CollaboratorBar-C0zeecvl.js.map → CollaboratorBar-Bjr5YSh0.js.map} +1 -1
  24. package/dist/cdn/chunks/{CountdownBlock-CpSUUDDs.js → CountdownBlock-KyzvhjMF.js} +2 -2
  25. package/dist/cdn/chunks/{CountdownBlock-CpSUUDDs.js.map → CountdownBlock-KyzvhjMF.js.map} +1 -1
  26. package/dist/cdn/chunks/{CountdownToolbar-BBzdR-00.js → CountdownToolbar-bJtMHGYz.js} +3 -3
  27. package/dist/cdn/chunks/{CountdownToolbar-BBzdR-00.js.map → CountdownToolbar-bJtMHGYz.js.map} +1 -1
  28. package/dist/cdn/chunks/{IssuesPanel-Bthq6qoZ.js → IssuesPanel-DFSYTQXy.js} +3 -3
  29. package/dist/cdn/chunks/{IssuesPanel-Bthq6qoZ.js.map → IssuesPanel-DFSYTQXy.js.map} +1 -1
  30. package/dist/cdn/chunks/{ModuleBrowserModal-CFMd6M7E.js → ModuleBrowserModal-DS0BGRhZ.js} +5 -5
  31. package/dist/cdn/chunks/{ModuleBrowserModal-CFMd6M7E.js.map → ModuleBrowserModal-DS0BGRhZ.js.map} +1 -1
  32. package/dist/cdn/chunks/{ModulePreviewCanvas-BkcPcF5C.js → ModulePreviewCanvas-Dwn2cA5a.js} +2 -2
  33. package/dist/cdn/chunks/{ModulePreviewCanvas-BkcPcF5C.js.map → ModulePreviewCanvas-Dwn2cA5a.js.map} +1 -1
  34. package/dist/cdn/chunks/{NumberWithSuffix-C2hH_ZIK.js → NumberWithSuffix-BNBeHv0P.js} +2 -2
  35. package/dist/cdn/chunks/{NumberWithSuffix-C2hH_ZIK.js.map → NumberWithSuffix-BNBeHv0P.js.map} +1 -1
  36. package/dist/cdn/chunks/{ParagraphEditor-BIWXLPfu.js → ParagraphEditor-C4TrTIOm.js} +16 -16
  37. package/dist/cdn/chunks/{ParagraphEditor-BIWXLPfu.js.map → ParagraphEditor-C4TrTIOm.js.map} +1 -1
  38. package/dist/cdn/chunks/{RichTextEditorContent-DU0gc4bi.js → RichTextEditorContent-HNFFL4aK.js} +2 -2
  39. package/dist/cdn/chunks/{RichTextEditorContent-DU0gc4bi.js.map → RichTextEditorContent-HNFFL4aK.js.map} +1 -1
  40. package/dist/cdn/chunks/{SaveModuleDialog-DR9EZlWe.js → SaveModuleDialog-CbHqqeID.js} +2 -2
  41. package/dist/cdn/chunks/{SaveModuleDialog-DR9EZlWe.js.map → SaveModuleDialog-CbHqqeID.js.map} +1 -1
  42. package/dist/cdn/chunks/{TitleEditor-DZcx2N4R.js → TitleEditor-gr-eBUq_.js} +8 -8
  43. package/dist/cdn/chunks/{TitleEditor-DZcx2N4R.js.map → TitleEditor-gr-eBUq_.js.map} +1 -1
  44. package/dist/cdn/chunks/{blockTypeIcons-eVGGIdne.js → blockTypeIcons-BUlgu9JL.js} +3 -3
  45. package/dist/cdn/chunks/{blockTypeIcons-eVGGIdne.js.map → blockTypeIcons-BUlgu9JL.js.map} +1 -1
  46. package/dist/cdn/chunks/{extensions-CvCoOuWB.js → extensions-DK_lVs7A.js} +3 -3
  47. package/dist/cdn/chunks/{extensions-CvCoOuWB.js.map → extensions-DK_lVs7A.js.map} +1 -1
  48. package/dist/cdn/chunks/{features-CUYy5kZQ.js → features-LiilsBqW.js} +806 -773
  49. package/dist/cdn/chunks/features-LiilsBqW.js.map +1 -0
  50. package/dist/cdn/chunks/{icons-C4zY5-I3.js → icons-Bn2SIR30.js} +2 -2
  51. package/dist/cdn/chunks/{icons-C4zY5-I3.js.map → icons-Bn2SIR30.js.map} +1 -1
  52. package/dist/cdn/chunks/{media-library-BNt3msId.js → media-library-Bb2PavAd.js} +3 -3
  53. package/dist/cdn/chunks/{media-library-BNt3msId.js.map → media-library-Bb2PavAd.js.map} +1 -1
  54. package/dist/cdn/chunks/{quality-BTPRPGB-.js → quality-Bpj6kNxR.js} +180 -154
  55. package/dist/cdn/chunks/{quality-BTPRPGB-.js.map → quality-Bpj6kNxR.js.map} +1 -1
  56. package/dist/cdn/chunks/{renderer-IOmuuZjJ.js → renderer-CYYyu-Di.js} +130 -96
  57. package/dist/cdn/chunks/{renderer-IOmuuZjJ.js.map → renderer-CYYyu-Di.js.map} +1 -1
  58. package/dist/cdn/chunks/{src-Dp0ZFQ4-.js → src-CQjZnxvw.js} +4 -4
  59. package/dist/cdn/chunks/{src-Dp0ZFQ4-.js.map → src-CQjZnxvw.js.map} +1 -1
  60. package/dist/cdn/chunks/{styles-DtgjgsBH.js → styles-5g8XOS68.js} +8 -8
  61. package/dist/cdn/chunks/{styles-DtgjgsBH.js.map → styles-5g8XOS68.js.map} +1 -1
  62. package/dist/cdn/chunks/{tiptap-BErAJEvo.js → tiptap-BBbH3IT9.js} +849 -725
  63. package/dist/cdn/chunks/tiptap-BBbH3IT9.js.map +1 -0
  64. package/dist/cdn/editor.js +5 -5
  65. package/dist/{cloud-Dz8Ay2FM.js → cloud-VxYMtfXC.js} +1 -1
  66. package/dist/{dist-BygsE-n3.js → dist-BDgf2G-V.js} +453 -314
  67. package/dist/{dist-BtDBsF3N.js → dist-BxP6TB0l.js} +2 -2
  68. package/dist/{dist-DWhP3Dp2.js → dist-BzuC8o3y.js} +1209 -1217
  69. package/dist/{dist-v-O2Subd.js → dist-C0jo8wtG.js} +2 -2
  70. package/dist/{dist-BTgujVMy.js → dist-C8wMh_gi.js} +2 -2
  71. package/dist/{dist-Cipw2HFH.js → dist-CIV3Brg-.js} +37 -4
  72. package/dist/{dist-BS5Oi67L.js → dist-CUpJmrjt.js} +2 -2
  73. package/dist/dist-D5lmdi1F.js +5 -0
  74. package/dist/{dist-T-ORzNfM.js → dist-D8C6jIXM.js} +168 -175
  75. package/dist/dist-DILjuzSv.js +5 -0
  76. package/dist/{dist-CDtcJMB2.js → dist-DXaxGLsw.js} +33 -33
  77. package/dist/{dist-DnGTaPRX.js → dist-DYO-w_Jf.js} +2 -2
  78. package/dist/{dist-CDZCyoRy.js → dist-UK-lbEBc.js} +2 -2
  79. package/dist/{extensions-BmGiz8Oo.js → extensions-DeNHyWwh.js} +27 -27
  80. package/dist/{styles-DFeOGKa_.js → styles-Bgqv7rLA.js} +4 -4
  81. package/dist/templatical-editor.js +3 -3
  82. package/dist/{useEditorCore-BXz-UXPd.js → useEditorCore-CaOVDL_m.js} +4 -4
  83. package/dist/{useMergeTag-CS2bmWA0.js → useMergeTag-RWsgUcSh.js} +1 -1
  84. package/package.json +21 -21
  85. package/dist/cdn/chunks/features-CUYy5kZQ.js.map +0 -1
  86. package/dist/cdn/chunks/tiptap-BErAJEvo.js.map +0 -1
  87. package/dist/dist-BySzGkeC.js +0 -5
  88. package/dist/dist-D7JUZ2Kd.js +0 -5
@@ -1,5 +1,5 @@
1
- import { Kt as e, c as t, ft as n, i as r } from "./dist-DWhP3Dp2.js";
2
- //#region ../../node_modules/.pnpm/@tiptap+extension-text-style@3.23.4_@tiptap+core@3.23.4_@tiptap+pm@3.23.4_/node_modules/@tiptap/extension-text-style/dist/index.js
1
+ import { Gt as e, c as t, dt as n, i as r } from "./dist-BzuC8o3y.js";
2
+ //#region ../../node_modules/.pnpm/@tiptap+extension-text-style@3.23.6_@tiptap+core@3.23.6_@tiptap+pm@3.23.6_/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) => {
@@ -1,5 +1,5 @@
1
- import { Kt as e, c as t } from "./dist-DWhP3Dp2.js";
2
- //#region ../../node_modules/.pnpm/@tiptap+extension-subscript@3.23.4_@tiptap+core@3.23.4_@tiptap+pm@3.23.4__@tiptap+pm@3.23.4/node_modules/@tiptap/extension-subscript/dist/index.js
1
+ import { Gt as e, c as t } from "./dist-BzuC8o3y.js";
2
+ //#region ../../node_modules/.pnpm/@tiptap+extension-subscript@3.23.6_@tiptap+core@3.23.6_@tiptap+pm@3.23.6__@tiptap+pm@3.23.6/node_modules/@tiptap/extension-subscript/dist/index.js
3
3
  var n = t.create({
4
4
  name: "subscript",
5
5
  addOptions() {
@@ -326,7 +326,7 @@ function q(e, t) {
326
326
  return n ? n.label : e;
327
327
  }
328
328
  function J(e, t) {
329
- return e.replace(/(<span[^>]*\sdata-merge-tag="([^"]*)"[^>]*>)(.*?)(<\/span>)/g, (e, n, r, i, a) => `${n}${q(r, t)}${a}`);
329
+ return $(e, "data-merge-tag", (e) => q(e, t));
330
330
  }
331
331
  function Y(e, t) {
332
332
  if (!e) return !1;
@@ -341,9 +341,42 @@ function Z(e, t) {
341
341
  return r && r[1] ? r[1].toUpperCase() : e;
342
342
  }
343
343
  function Q(e, t) {
344
- return e.replace(/(<span[^>]*\sdata-logic-merge-tag="([^"]*)"[^>]*>)(.*?)(<\/span>)/g, (e, n, r, i, a) => `${n}${Z(r, t)}${a}`);
344
+ return $(e, "data-logic-merge-tag", (e) => Z(e, t));
345
+ }
346
+ function $(e, t, n) {
347
+ let r = RegExp(`(?:^|\\s)${t}="([^"<>]*)"`), i = "", a = 0;
348
+ for (; a < e.length;) {
349
+ let t = e.indexOf("<span", a);
350
+ if (t === -1) {
351
+ i += e.substring(a);
352
+ break;
353
+ }
354
+ let o = e[t + 5];
355
+ if (o !== ">" && o !== " " && o !== " " && o !== "\n" && o !== "\r" && o !== "/") {
356
+ i += e.substring(a, t + 5), a = t + 5;
357
+ continue;
358
+ }
359
+ let s = e.indexOf(">", t + 5);
360
+ if (s === -1) {
361
+ i += e.substring(a);
362
+ break;
363
+ }
364
+ let c = e.indexOf("</span>", s + 1);
365
+ if (c === -1) {
366
+ i += e.substring(a);
367
+ break;
368
+ }
369
+ let l = e.substring(t + 5, s), u = r.exec(l);
370
+ if (!u) {
371
+ i += e.substring(a, t + 5), a = t + 5;
372
+ continue;
373
+ }
374
+ let d = u[1], f = n(d);
375
+ i += e.substring(a, s + 1), i += f, i += "</span>", a = c + 7;
376
+ }
377
+ return i;
345
378
  }
346
- var $ = class extends Error {
379
+ var ee = class extends Error {
347
380
  constructor(e, t) {
348
381
  super(e), this.statusCode = t, this.name = "SdkError";
349
382
  }
@@ -359,4 +392,4 @@ var $ = class extends Error {
359
392
  }
360
393
  };
361
394
  //#endregion
362
- export { J as A, Z as C, X as D, t as E, K as O, b as S, U as T, A as _, Y as a, C as b, I as c, D as d, M as f, O as g, w as h, B as i, W as j, Q as k, R as l, N as m, V as n, z as o, T as p, $ as r, E as s, e as t, v as u, j as v, q as w, k as x, F as y };
395
+ export { J as A, Z as C, X as D, t as E, K as O, b as S, U as T, A as _, Y as a, C as b, I as c, D as d, M as f, O as g, w as h, B as i, W as j, Q as k, R as l, N as m, V as n, z as o, T as p, ee as r, E as s, e as t, v as u, j as v, q as w, k as x, F as y };
@@ -1,5 +1,5 @@
1
- import { Kt as e, c as t } from "./dist-DWhP3Dp2.js";
2
- //#region ../../node_modules/.pnpm/@tiptap+extension-superscript@3.23.4_@tiptap+core@3.23.4_@tiptap+pm@3.23.4__@tiptap+pm@3.23.4/node_modules/@tiptap/extension-superscript/dist/index.js
1
+ import { Gt as e, c as t } from "./dist-BzuC8o3y.js";
2
+ //#region ../../node_modules/.pnpm/@tiptap+extension-superscript@3.23.6_@tiptap+core@3.23.6_@tiptap+pm@3.23.6__@tiptap+pm@3.23.6/node_modules/@tiptap/extension-superscript/dist/index.js
3
3
  var n = t.create({
4
4
  name: "superscript",
5
5
  addOptions() {
@@ -0,0 +1,5 @@
1
+ import { FontFamily as e } from "./dist-C0jo8wtG.js";
2
+ //#region ../../node_modules/.pnpm/@tiptap+extension-font-family@3.23.6_@tiptap+extension-text-style@3.23.6_@tiptap+core@3.23.6_@tiptap+pm@3.23.6__/node_modules/@tiptap/extension-font-family/dist/index.js
3
+ var t = e;
4
+ //#endregion
5
+ export { e as FontFamily, t as default };
@@ -1,146 +1,144 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
2
  import { $ as t, D as n, E as r, H as i, J as a, K as o, O as ee, Q as te, R as s, S as c, X as l, b as u, j as d, r as f, rt as ne, x as re } from "./vue.runtime.esm-bundler-BDSGA5hA.js";
3
- import { $ as ie, $t as ae, A as oe, At as se, B as ce, Bt as le, C as ue, Ct as de, D as fe, Dt as p, E as m, Et as h, F as g, Ft as _, G as v, Gt as y, H as b, Ht as x, I as S, It as C, J as w, Jt as T, K as E, Kt as D, L as O, Lt as k, M as A, Mt as j, N as M, Nt as N, O as P, Ot as F, P as I, Pt as L, Q as R, Qt as z, R as B, Rt as V, S as pe, St as me, T as he, Tt as ge, U as _e, Ut as ve, V as ye, Vt as be, W as xe, Wt as Se, X as Ce, Xt as we, Y as Te, Yt as Ee, Z as De, Zt as Oe, _ as ke, _t as Ae, a as je, an as Me, at as Ne, b as Pe, bt as Fe, c as Ie, cn as Le, ct as Re, d as ze, dn as Be, dt as Ve, en as He, et as Ue, f as H, fn as We, ft as Ge, g as Ke, gn as qe, gt as Je, h as Ye, hn as Xe, ht as Ze, i as Qe, in as $e, it as et, j as tt, jt as nt, k as rt, kt as it, l as U, ln as at, lt as ot, m as st, mn as ct, mt as lt, n as ut, nn as dt, nt as ft, o as pt, on as mt, ot as ht, p as gt, pn as _t, pt as vt, q as yt, qt as bt, r as xt, rn as St, rt as Ct, s as wt, sn as W, st as Tt, t as Et, tn as Dt, tt as Ot, u as kt, un as At, ut as jt, v as Mt, vt as G, w as Nt, wt as Pt, x as Ft, xt as It, y as K, yt as Lt, z as Rt, zt } from "./dist-DWhP3Dp2.js";
4
- //#region ../../node_modules/.pnpm/@tiptap+vue-3@3.23.4_@floating-ui+dom@1.7.6_@tiptap+core@3.23.4_@tiptap+pm@3.23.4__@tip_f27b5980fcbc79288d7d128a126b5167/node_modules/@tiptap/vue-3/dist/index.js
5
- var q = /* @__PURE__ */ e({
6
- CommandManager: () => Et,
7
- Editor: () => Y,
8
- EditorContent: () => Bt,
9
- Extendable: () => xt,
10
- Extension: () => Qe,
11
- Fragment: () => je,
12
- InputRule: () => pt,
13
- MappablePosition: () => wt,
14
- Mark: () => Ie,
15
- MarkView: () => U,
16
- MarkViewContent: () => Wt,
17
- Node: () => kt,
18
- NodePos: () => ze,
19
- NodeView: () => H,
20
- NodeViewContent: () => Vt,
21
- NodeViewWrapper: () => X,
22
- PasteRule: () => gt,
23
- ResizableNodeView: () => st,
24
- ResizableNodeview: () => Ye,
25
- Tracker: () => Ke,
3
+ import { $ as ie, $t as ae, A as oe, At as se, B as ce, Bt as le, C as ue, Ct as p, D as m, Dt as h, E as g, Et as _, F as v, Ft as y, G as b, Gt as x, H as S, Ht as C, I as w, It as T, J as E, Jt as D, K as O, Kt as k, L as A, Lt as j, M, Mt as N, N as P, Nt as F, O as I, Ot as L, P as R, Pt as z, Q as B, Qt as V, R as H, Rt as U, S as de, St as fe, T as pe, Tt as me, U as he, Ut as ge, V as _e, Vt as ve, W as ye, Wt as be, X as xe, Xt as Se, Y as Ce, Yt as we, Z as Te, Zt as Ee, _ as De, _t as W, a as Oe, an as ke, at as Ae, b as je, bt as Me, c as Ne, cn as Pe, ct as Fe, d as Ie, dn as Le, dt as Re, en as ze, et as Be, f as G, fn as Ve, ft as He, g as Ue, gt as We, h as Ge, ht as Ke, i as qe, in as Je, it as Ye, j as Xe, jt as Ze, k as Qe, kt as $e, l as K, ln as et, lt as tt, m as nt, mn as rt, mt as it, n as at, nn as ot, nt as st, o as ct, on as lt, ot as ut, p as dt, pn as ft, pt, q as mt, qt as ht, r as gt, rn as _t, rt as vt, s as yt, sn as bt, st as xt, t as St, tn as Ct, tt as wt, u as Tt, un as Et, ut as Dt, v as Ot, vt as kt, w as At, wt as jt, x as Mt, xt as Nt, y as Pt, yt as Ft, z as It, zt as Lt } from "./dist-BzuC8o3y.js";
4
+ //#region ../../node_modules/.pnpm/@tiptap+vue-3@3.23.6_@floating-ui+dom@1.7.6_@tiptap+core@3.23.6_@tiptap+pm@3.23.6__@tip_22724918e2e64612c755751af7cf1745/node_modules/@tiptap/vue-3/dist/index.js
5
+ var Rt = /* @__PURE__ */ e({
6
+ CommandManager: () => St,
7
+ Editor: () => J,
8
+ EditorContent: () => zt,
9
+ Extendable: () => gt,
10
+ Extension: () => qe,
11
+ Fragment: () => Oe,
12
+ InputRule: () => ct,
13
+ MappablePosition: () => yt,
14
+ Mark: () => Ne,
15
+ MarkView: () => K,
16
+ MarkViewContent: () => Ht,
17
+ Node: () => Tt,
18
+ NodePos: () => Ie,
19
+ NodeView: () => G,
20
+ NodeViewContent: () => Bt,
21
+ NodeViewWrapper: () => Y,
22
+ PasteRule: () => dt,
23
+ ResizableNodeView: () => nt,
24
+ ResizableNodeview: () => Ge,
25
+ Tracker: () => Ue,
26
26
  VueMarkView: () => Q,
27
- VueMarkViewRenderer: () => Gt,
27
+ VueMarkViewRenderer: () => Ut,
28
28
  VueNodeViewRenderer: () => $,
29
- VueRenderer: () => Z,
30
- callOrReturn: () => ke,
31
- canInsertNode: () => Mt,
32
- cancelPositionCheck: () => K,
33
- combineTransactionSteps: () => Pe,
34
- commands: () => Ft,
35
- createAtomBlockMarkdownSpec: () => pe,
36
- createBlockMarkdownSpec: () => ue,
37
- createChainableState: () => Nt,
38
- createDocument: () => he,
39
- createElement: () => G,
40
- createInlineMarkdownSpec: () => m,
41
- createMappablePosition: () => fe,
42
- createNodeFromContent: () => P,
43
- createStyleTag: () => rt,
44
- decodeHtmlEntities: () => oe,
45
- defaultBlockAt: () => tt,
46
- deleteProps: () => A,
29
+ VueRenderer: () => X,
30
+ callOrReturn: () => De,
31
+ canInsertNode: () => Ot,
32
+ combineTransactionSteps: () => Pt,
33
+ commands: () => je,
34
+ createAtomBlockMarkdownSpec: () => Mt,
35
+ createBlockMarkdownSpec: () => de,
36
+ createChainableState: () => ue,
37
+ createDocument: () => At,
38
+ createElement: () => W,
39
+ createInlineMarkdownSpec: () => pe,
40
+ createMappablePosition: () => g,
41
+ createNodeFromContent: () => m,
42
+ createStyleTag: () => I,
43
+ decodeHtmlEntities: () => Qe,
44
+ defaultBlockAt: () => oe,
45
+ deleteProps: () => Xe,
47
46
  elementFromString: () => M,
48
- encodeHtmlEntities: () => I,
49
- escapeForRegEx: () => g,
50
- extensions: () => S,
51
- findChildren: () => O,
52
- findChildrenInRange: () => B,
53
- findDuplicates: () => Rt,
54
- findParentNode: () => ce,
55
- findParentNodeClosestToPos: () => ye,
56
- flattenExtensions: () => b,
57
- fromString: () => _e,
58
- generateHTML: () => xe,
59
- generateJSON: () => v,
60
- generateText: () => E,
61
- getAttributes: () => yt,
62
- getAttributesFromExtensions: () => w,
63
- getChangedRanges: () => Te,
47
+ encodeHtmlEntities: () => P,
48
+ escapeForRegEx: () => R,
49
+ extensions: () => v,
50
+ findChildren: () => w,
51
+ findChildrenInRange: () => A,
52
+ findDuplicates: () => H,
53
+ findParentNode: () => It,
54
+ findParentNodeClosestToPos: () => ce,
55
+ flattenExtensions: () => _e,
56
+ fromString: () => S,
57
+ generateHTML: () => he,
58
+ generateJSON: () => ye,
59
+ generateText: () => b,
60
+ getAttributes: () => O,
61
+ getAttributesFromExtensions: () => mt,
62
+ getChangedRanges: () => E,
64
63
  getDebugJSON: () => Ce,
65
- getExtensionField: () => De,
66
- getHTMLFromFragment: () => R,
67
- getMarkAttributes: () => ie,
68
- getMarkRange: () => Ue,
69
- getMarkType: () => Ot,
70
- getMarksBetween: () => ft,
71
- getNodeAtPosition: () => Ct,
72
- getNodeAttributes: () => et,
73
- getNodeType: () => Ne,
74
- getRenderedAttributes: () => ht,
75
- getSchema: () => Tt,
76
- getSchemaByResolvedExtensions: () => Re,
77
- getSchemaTypeByName: () => ot,
78
- getSchemaTypeNameByName: () => jt,
79
- getSplittedAttributes: () => Ve,
80
- getStyleProperty: () => Ge,
81
- getText: () => vt,
82
- getTextBetween: () => lt,
83
- getTextContentFromNodes: () => Ze,
84
- getTextSerializersFromSchema: () => Je,
85
- getUpdatedPosition: () => Ae,
86
- h: () => G,
87
- injectExtensionAttributesToParseRule: () => Lt,
88
- inputRulesPlugin: () => Fe,
89
- isActive: () => It,
90
- isAndroid: () => me,
91
- isAtEndOfNode: () => de,
92
- isAtStartOfNode: () => Pt,
93
- isEmptyObject: () => ge,
94
- isExtensionRulesEnabled: () => h,
95
- isFirefox: () => p,
96
- isFunction: () => F,
97
- isList: () => it,
98
- isMacOS: () => se,
99
- isMarkActive: () => nt,
100
- isNodeActive: () => j,
64
+ getExtensionField: () => xe,
65
+ getHTMLFromFragment: () => Te,
66
+ getMarkAttributes: () => B,
67
+ getMarkRange: () => ie,
68
+ getMarkType: () => Be,
69
+ getMarksBetween: () => wt,
70
+ getNodeAtPosition: () => st,
71
+ getNodeAttributes: () => vt,
72
+ getNodeType: () => Ye,
73
+ getRenderedAttributes: () => Ae,
74
+ getSchema: () => ut,
75
+ getSchemaByResolvedExtensions: () => xt,
76
+ getSchemaTypeByName: () => Fe,
77
+ getSchemaTypeNameByName: () => tt,
78
+ getSplittedAttributes: () => Dt,
79
+ getStyleProperty: () => Re,
80
+ getText: () => He,
81
+ getTextBetween: () => pt,
82
+ getTextContentFromNodes: () => it,
83
+ getTextSerializersFromSchema: () => Ke,
84
+ getUpdatedPosition: () => We,
85
+ h: () => W,
86
+ injectExtensionAttributesToParseRule: () => kt,
87
+ inputRulesPlugin: () => Ft,
88
+ isActive: () => Me,
89
+ isAndroid: () => Nt,
90
+ isAtEndOfNode: () => fe,
91
+ isAtStartOfNode: () => p,
92
+ isEmptyObject: () => jt,
93
+ isExtensionRulesEnabled: () => me,
94
+ isFirefox: () => _,
95
+ isFunction: () => h,
96
+ isList: () => L,
97
+ isMacOS: () => $e,
98
+ isMarkActive: () => se,
99
+ isNodeActive: () => Ze,
101
100
  isNodeEmpty: () => N,
102
- isNodeSelection: () => L,
103
- isNodeViewSelected: () => _,
104
- isNumber: () => C,
105
- isPlainObject: () => k,
106
- isRegExp: () => V,
107
- isSafari: () => zt,
108
- isString: () => le,
109
- isTextSelection: () => be,
110
- isiOS: () => x,
111
- markInputRule: () => ve,
112
- markPasteRule: () => Se,
113
- markViewProps: () => Ut,
114
- markdown: () => y,
115
- mergeAttributes: () => D,
116
- mergeDeep: () => bt,
117
- minMax: () => T,
118
- nodeInputRule: () => Ee,
101
+ isNodeSelection: () => F,
102
+ isNodeViewSelected: () => z,
103
+ isNumber: () => y,
104
+ isPlainObject: () => T,
105
+ isRegExp: () => j,
106
+ isSafari: () => U,
107
+ isString: () => Lt,
108
+ isTextSelection: () => le,
109
+ isiOS: () => ve,
110
+ markInputRule: () => C,
111
+ markPasteRule: () => ge,
112
+ markViewProps: () => Z,
113
+ markdown: () => be,
114
+ mergeAttributes: () => x,
115
+ mergeDeep: () => k,
116
+ minMax: () => ht,
117
+ nodeInputRule: () => D,
119
118
  nodePasteRule: () => we,
120
- nodeViewProps: () => Kt,
121
- objectIncludes: () => Oe,
122
- parseAttributes: () => z,
123
- parseIndentedBlocks: () => ae,
124
- pasteRulesPlugin: () => He,
125
- posToDOMRect: () => Dt,
126
- removeDuplicates: () => dt,
127
- renderNestedMarkdownContent: () => St,
128
- resolveExtensions: () => $e,
129
- resolveFocusPosition: () => Me,
130
- rewriteUnknownContent: () => mt,
131
- schedulePositionCheck: () => W,
132
- selectionToInsertionEnd: () => Le,
133
- serializeAttributes: () => at,
134
- sortExtensions: () => At,
135
- splitExtensions: () => Be,
136
- textInputRule: () => We,
137
- textPasteRule: () => _t,
138
- textblockTypeInputRule: () => ct,
139
- updateMarkViewAttributes: () => Xe,
140
- useEditor: () => Ht,
141
- wrappingInputRule: () => qe
119
+ nodeViewProps: () => Wt,
120
+ objectIncludes: () => Se,
121
+ parseAttributes: () => Ee,
122
+ parseIndentedBlocks: () => V,
123
+ pasteRulesPlugin: () => ae,
124
+ posToDOMRect: () => ze,
125
+ removeDuplicates: () => Ct,
126
+ renderNestedMarkdownContent: () => ot,
127
+ resolveExtensions: () => _t,
128
+ resolveFocusPosition: () => Je,
129
+ rewriteUnknownContent: () => ke,
130
+ selectionToInsertionEnd: () => lt,
131
+ serializeAttributes: () => bt,
132
+ sortExtensions: () => Pe,
133
+ splitExtensions: () => et,
134
+ textInputRule: () => Et,
135
+ textPasteRule: () => Le,
136
+ textblockTypeInputRule: () => Ve,
137
+ updateMarkViewAttributes: () => ft,
138
+ useEditor: () => Vt,
139
+ wrappingInputRule: () => rt
142
140
  });
143
- function J(e) {
141
+ function q(e) {
144
142
  return i((t, n) => ({
145
143
  get() {
146
144
  return t(), e;
@@ -154,9 +152,9 @@ function J(e) {
154
152
  }
155
153
  }));
156
154
  }
157
- var Y = class extends ut {
155
+ var J = class extends at {
158
156
  constructor(e = {}) {
159
- return super(e), this.contentComponent = null, this.appContext = null, this.reactiveState = J(this.view.state), this.reactiveExtensionStorage = J(this.extensionStorage), this.on("beforeTransaction", ({ nextState: e }) => {
157
+ return super(e), this.contentComponent = null, this.appContext = null, this.reactiveState = q(this.view.state), this.reactiveExtensionStorage = q(this.extensionStorage), this.on("beforeTransaction", ({ nextState: e }) => {
160
158
  this.reactiveState.value = e, this.reactiveExtensionStorage.value = this.extensionStorage;
161
159
  }), o(this);
162
160
  }
@@ -174,7 +172,7 @@ var Y = class extends ut {
174
172
  let t = super.unregisterPlugin(e);
175
173
  return this.reactiveState && t && (this.reactiveState.value = t), t;
176
174
  }
177
- }, Bt = u({
175
+ }, zt = u({
178
176
  name: "EditorContent",
179
177
  props: { editor: {
180
178
  default: null,
@@ -202,7 +200,7 @@ var Y = class extends ut {
202
200
  this.rootEl = e;
203
201
  } });
204
202
  }
205
- }), Vt = u({
203
+ }), Bt = u({
206
204
  name: "NodeViewContent",
207
205
  props: { as: {
208
206
  type: String,
@@ -214,7 +212,7 @@ var Y = class extends ut {
214
212
  "data-node-view-content": ""
215
213
  });
216
214
  }
217
- }), X = u({
215
+ }), Y = u({
218
216
  name: "NodeViewWrapper",
219
217
  props: { as: {
220
218
  type: String,
@@ -230,15 +228,15 @@ var Y = class extends ut {
230
228
  onDragstart: this.onDragStart
231
229
  }, (e = this.$slots).default?.call(e));
232
230
  }
233
- }), Ht = (e = {}) => {
231
+ }), Vt = (e = {}) => {
234
232
  let t = te();
235
233
  return ee(() => {
236
- t.value = new Y(e);
234
+ t.value = new J(e);
237
235
  }), n(() => {
238
236
  var e;
239
237
  (e = t.value) == null || e.destroy();
240
238
  }), t;
241
- }, Z = class {
239
+ }, X = class {
242
240
  constructor(e, { props: t = {}, editor: n }) {
243
241
  this.destroyed = !1, this.editor = n, this.component = o(e), this.el = document.createElement("div"), this.props = a(t), this.renderedComponent = this.renderComponent();
244
242
  }
@@ -267,7 +265,7 @@ var Y = class extends ut {
267
265
  destroy() {
268
266
  this.destroyed || (this.destroyed = !0, this.renderedComponent.destroy());
269
267
  }
270
- }, Ut = {
268
+ }, Z = {
271
269
  editor: {
272
270
  type: Object,
273
271
  required: !0
@@ -296,7 +294,7 @@ var Y = class extends ut {
296
294
  type: Object,
297
295
  required: !0
298
296
  }
299
- }, Wt = u({
297
+ }, Ht = u({
300
298
  name: "MarkViewContent",
301
299
  props: { as: {
302
300
  type: String,
@@ -308,7 +306,7 @@ var Y = class extends ut {
308
306
  "data-mark-view-content": ""
309
307
  });
310
308
  }
311
- }), Q = class extends U {
309
+ }), Q = class extends K {
312
310
  constructor(e, t, n) {
313
311
  super(e, t, n);
314
312
  let r = {
@@ -324,7 +322,7 @@ var Y = class extends ut {
324
322
  __name: e.__name,
325
323
  __file: e.__file
326
324
  });
327
- this.renderer = new Z(i, {
325
+ this.renderer = new X(i, {
328
326
  editor: this.editor,
329
327
  props: r
330
328
  });
@@ -343,10 +341,10 @@ var Y = class extends ut {
343
341
  this.renderer.destroy();
344
342
  }
345
343
  };
346
- function Gt(e, t = {}) {
344
+ function Ut(e, t = {}) {
347
345
  return (n) => n.editor.contentComponent ? new Q(e, n, t) : {};
348
346
  }
349
- var Kt = {
347
+ var Wt = {
350
348
  editor: {
351
349
  type: Object,
352
350
  required: !0
@@ -391,9 +389,12 @@ var Kt = {
391
389
  type: Object,
392
390
  required: !0
393
391
  }
394
- }, qt = class extends H {
395
- constructor() {
396
- super(...arguments), this.positionCheckCallback = null, this.cachedExtensionWithSyncedStorage = null;
392
+ }, Gt = class extends G {
393
+ constructor(e, t, n) {
394
+ super(e, t, n), this.cachedExtensionWithSyncedStorage = null, this.handlePositionUpdate = () => {
395
+ let e = this.getPos();
396
+ typeof e != "number" || e === this.currentPos || (this.currentPos = e, this.renderer.updateProps({ getPos: () => this.getPos() }));
397
+ }, this.options.trackNodeViewPosition && this.editor.on("update", this.handlePositionUpdate);
397
398
  }
398
399
  get extensionWithSyncedStorage() {
399
400
  if (!this.cachedExtensionWithSyncedStorage) {
@@ -417,28 +418,24 @@ var Kt = {
417
418
  getPos: () => this.getPos(),
418
419
  updateAttributes: (e = {}) => this.updateAttributes(e),
419
420
  deleteNode: () => this.deleteNode()
420
- }, t = this.onDragStart.bind(this);
421
+ }, t = e, n = this.onDragStart.bind(this);
421
422
  this.decorationClasses = l(this.getDecorationClasses());
422
- let n = u({
423
+ let r = u({
423
424
  extends: { ...this.component },
424
425
  props: Object.keys(e),
425
426
  template: this.component.template,
426
427
  setup: (e) => {
427
- var n;
428
- return d("onDragStart", t), d("decorationClasses", this.decorationClasses), (n = this.component).setup?.call(n, e, { expose: () => void 0 });
428
+ var t;
429
+ return d("onDragStart", n), d("decorationClasses", this.decorationClasses), (t = this.component).setup?.call(t, e, { expose: () => void 0 });
429
430
  },
430
431
  __scopeId: this.component.__scopeId,
431
432
  __cssModules: this.component.__cssModules,
432
433
  __name: this.component.__name,
433
434
  __file: this.component.__file
434
435
  });
435
- this.handleSelectionUpdate = this.handleSelectionUpdate.bind(this), this.editor.on("selectionUpdate", this.handleSelectionUpdate), this.currentPos = this.getPos(), this.positionCheckCallback = () => {
436
- if (!this.renderer) return;
437
- let e = this.getPos();
438
- typeof e != "number" || e === this.currentPos || (this.currentPos = e, this.renderer.updateProps({ getPos: () => this.getPos() }));
439
- }, W(this.editor, this.positionCheckCallback), this.renderer = new Z(n, {
436
+ this.handleSelectionUpdate = this.handleSelectionUpdate.bind(this), this.editor.on("selectionUpdate", this.handleSelectionUpdate), this.currentPos = this.getPos(), this.renderer = new X(r, {
440
437
  editor: this.editor,
441
- props: e
438
+ props: t
442
439
  });
443
440
  }
444
441
  get dom() {
@@ -450,7 +447,7 @@ var Kt = {
450
447
  }
451
448
  handleSelectionUpdate() {
452
449
  let e = this.getPos();
453
- if (typeof e == "number") if (_({
450
+ if (typeof e == "number") if (z({
454
451
  selection: this.editor.state.selection,
455
452
  pos: e,
456
453
  nodeSize: this.node.nodeSize,
@@ -469,7 +466,7 @@ var Kt = {
469
466
  };
470
467
  if (typeof this.options.update == "function") {
471
468
  let i = this.node, a = this.decorations, o = this.innerDecorations;
472
- return this.node = e, this.decorations = t, this.innerDecorations = n, this.currentPos = this.getPos(), this.options.update({
469
+ return this.node = e, this.decorations = t, this.innerDecorations = n, this.options.update({
473
470
  oldNode: i,
474
471
  oldDecorations: a,
475
472
  newNode: e,
@@ -485,19 +482,15 @@ var Kt = {
485
482
  });
486
483
  }
487
484
  if (e.type !== this.node.type) return !1;
488
- let i = this.getPos();
489
- return e === this.node && this.decorations === t && this.innerDecorations === n ? i === this.currentPos ? !0 : (this.currentPos = i, r({
490
- node: e,
491
- decorations: t,
492
- innerDecorations: n,
493
- extension: this.extensionWithSyncedStorage,
494
- getPos: () => this.getPos()
495
- }), !0) : (this.node = e, this.decorations = t, this.innerDecorations = n, this.currentPos = i, r({
485
+ if (e === this.node) return this.node = e, this.decorations = t, this.innerDecorations = n, this.decorationClasses.value = this.getDecorationClasses(), !0;
486
+ this.node = e, this.decorations = t, this.innerDecorations = n, this.currentPos = this.getPos();
487
+ let i = {
496
488
  node: e,
497
489
  decorations: t,
498
490
  innerDecorations: n,
499
491
  extension: this.extensionWithSyncedStorage
500
- }), !0);
492
+ };
493
+ return this.options.trackNodeViewPosition && (i.getPos = () => this.getPos()), r(i), !0;
501
494
  }
502
495
  selectNode() {
503
496
  this.renderer.updateProps({ selected: !0 }), this.renderer.element && this.renderer.element.classList.add("ProseMirror-selectednode");
@@ -509,11 +502,11 @@ var Kt = {
509
502
  return this.decorations.flatMap((e) => e.type.attrs.class).join(" ");
510
503
  }
511
504
  destroy() {
512
- this.renderer.destroy(), this.editor.off("selectionUpdate", this.handleSelectionUpdate), this.positionCheckCallback &&= (K(this.editor, this.positionCheckCallback), null);
505
+ this.renderer.destroy(), this.editor.off("selectionUpdate", this.handleSelectionUpdate), this.options.trackNodeViewPosition && this.editor.off("update", this.handlePositionUpdate);
513
506
  }
514
507
  };
515
508
  function $(e, t) {
516
- return (n) => n.editor.contentComponent ? new qt(typeof e == "function" && "__vccOpts" in e ? e.__vccOpts : e, n, t) : {};
509
+ return (n) => n.editor.contentComponent ? new Gt(typeof e == "function" && "__vccOpts" in e ? e.__vccOpts : e, n, t) : {};
517
510
  }
518
511
  //#endregion
519
- export { $ as n, q as r, X as t };
512
+ export { $ as n, Rt as r, Y as t };
@@ -0,0 +1,5 @@
1
+ import { Color as e } from "./dist-C0jo8wtG.js";
2
+ //#region ../../node_modules/.pnpm/@tiptap+extension-color@3.23.6_@tiptap+extension-text-style@3.23.6_@tiptap+core@3.23.6_@tiptap+pm@3.23.6__/node_modules/@tiptap/extension-color/dist/index.js
3
+ var t = e;
4
+ //#endregion
5
+ export { e as Color, t as default };