@templatical/editor 0.10.0 → 0.10.2

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 (138) hide show
  1. package/dist/{AiChatSidebar-D30WPhbv.js → AiChatSidebar-BMwpZx-6.js} +14 -14
  2. package/dist/{AiFeatureMenu-B5CJX5zr.js → AiFeatureMenu-xgaIGUCo.js} +8 -8
  3. package/dist/{BlockIssueBadge-CkB4Yyz2.js → BlockIssueBadge-3kNs6WoD.js} +5 -5
  4. package/dist/{CloudEditor-nT-R769W.js → CloudEditor-Dm9hiaui.js} +159 -156
  5. package/dist/{CollaboratorBar-CwhlXODK.js → CollaboratorBar-Cz_evoU4.js} +4 -4
  6. package/dist/{CommentsSidebar-gpZMMI5w.js → CommentsSidebar-jFZj_CTo.js} +13 -13
  7. package/dist/{CountdownBlock-BNvuXucv.js → CountdownBlock-S-SCyVye.js} +4 -4
  8. package/dist/{CountdownToolbar-Dl82DAmI.js → CountdownToolbar-Ckdo-3P-.js} +3 -3
  9. package/dist/{DesignReferenceSidebar-Bs5AMxVd.js → DesignReferenceSidebar-B9QNPZNV.js} +10 -10
  10. package/dist/{IssuesPanel-CqQa2BtU.js → IssuesPanel-_E_fbSM8.js} +8 -8
  11. package/dist/{LoadingTrack-xCOLUR3o.js → LoadingTrack-BZ5KJyZ_.js} +2 -2
  12. package/dist/{ModuleBrowserModal-BWWgF0LC.js → ModuleBrowserModal-BB22urqi.js} +10 -10
  13. package/dist/{ModulePreviewCanvas-D7Tk5HOt.js → ModulePreviewCanvas-CH5OdXv8.js} +3 -3
  14. package/dist/{NumberWithSuffix-DVy5HxMi.js → NumberWithSuffix-BHDXHMpo.js} +3 -3
  15. package/dist/{ParagraphEditor-DVSGdMOo.js → ParagraphEditor-BmY7LLgN.js} +26 -26
  16. package/dist/{RichTextEditorContent-DN-fRjMa.js → RichTextEditorContent-COijbaWp.js} +8 -8
  17. package/dist/{SaveModuleDialog-CkEYkyVD.js → SaveModuleDialog-D5WN-je_.js} +7 -7
  18. package/dist/{SnapshotHistory-Nx9wrlbF.js → SnapshotHistory-BQ55Rhri.js} +9 -9
  19. package/dist/{TemplateScoringPanel-BG9M-29t.js → TemplateScoringPanel-Dhf_Qgr7.js} +15 -15
  20. package/dist/{TestEmailModal-CRjtEs6S.js → TestEmailModal-DH_Viz_m.js} +5 -5
  21. package/dist/{TitleEditor-CvtV4pCA.js → TitleEditor-Dn613K8o.js} +12 -12
  22. package/dist/{TplModal-BudEYVcJ.js → TplModal-Dxa3rhHI.js} +4 -4
  23. package/dist/{blockTypeIcons-Dd-UvfnC.js → blockTypeIcons-CrcSCTD6.js} +2 -2
  24. package/dist/bundle-stats.json +6 -6
  25. package/dist/cdn/chunks/{AiFeatureMenu-DKOv8VnB.js → AiFeatureMenu-CCsgxyN9.js} +4 -4
  26. package/dist/cdn/chunks/{AiFeatureMenu-DKOv8VnB.js.map → AiFeatureMenu-CCsgxyN9.js.map} +1 -1
  27. package/dist/cdn/chunks/{BlockIssueBadge-DpiSTwM7.js → BlockIssueBadge-Lc3NWFV8.js} +3 -3
  28. package/dist/cdn/chunks/{BlockIssueBadge-DpiSTwM7.js.map → BlockIssueBadge-Lc3NWFV8.js.map} +1 -1
  29. package/dist/cdn/chunks/{CloudEditor-xc_uOEgn.js → CloudEditor-KkwvBhyt.js} +131 -128
  30. package/dist/cdn/chunks/CloudEditor-KkwvBhyt.js.map +1 -0
  31. package/dist/cdn/chunks/{CollaboratorBar-VWfPri_h.js → CollaboratorBar-BGIGiFSm.js} +4 -4
  32. package/dist/cdn/chunks/{CollaboratorBar-VWfPri_h.js.map → CollaboratorBar-BGIGiFSm.js.map} +1 -1
  33. package/dist/cdn/chunks/{CountdownBlock-BKsCWboK.js → CountdownBlock-gqnpxKp_.js} +4 -4
  34. package/dist/cdn/chunks/{CountdownBlock-BKsCWboK.js.map → CountdownBlock-gqnpxKp_.js.map} +1 -1
  35. package/dist/cdn/chunks/{CountdownToolbar-BLtECDNb.js → CountdownToolbar-xHpaWQE2.js} +4 -4
  36. package/dist/cdn/chunks/{CountdownToolbar-BLtECDNb.js.map → CountdownToolbar-xHpaWQE2.js.map} +1 -1
  37. package/dist/cdn/chunks/{IssuesPanel-BW2piyvs.js → IssuesPanel-DHTTHu65.js} +4 -4
  38. package/dist/cdn/chunks/{IssuesPanel-BW2piyvs.js.map → IssuesPanel-DHTTHu65.js.map} +1 -1
  39. package/dist/cdn/chunks/{ModuleBrowserModal-TLlKpvjX.js → ModuleBrowserModal-DDTjrKph.js} +6 -6
  40. package/dist/cdn/chunks/{ModuleBrowserModal-TLlKpvjX.js.map → ModuleBrowserModal-DDTjrKph.js.map} +1 -1
  41. package/dist/cdn/chunks/{ModulePreviewCanvas-wu7y-vrh.js → ModulePreviewCanvas-DeFq0hVi.js} +3 -3
  42. package/dist/cdn/chunks/{ModulePreviewCanvas-wu7y-vrh.js.map → ModulePreviewCanvas-DeFq0hVi.js.map} +1 -1
  43. package/dist/cdn/chunks/{NumberWithSuffix-DxoUtTMr.js → NumberWithSuffix-D4wtmU9O.js} +3 -3
  44. package/dist/cdn/chunks/{NumberWithSuffix-DxoUtTMr.js.map → NumberWithSuffix-D4wtmU9O.js.map} +1 -1
  45. package/dist/cdn/chunks/{ParagraphEditor-DvxIO2LN.js → ParagraphEditor-CwY8GeWa.js} +20 -20
  46. package/dist/cdn/chunks/{ParagraphEditor-DvxIO2LN.js.map → ParagraphEditor-CwY8GeWa.js.map} +1 -1
  47. package/dist/cdn/chunks/{RichTextEditorContent-Dm9GXJmo.js → RichTextEditorContent-C_bMURGF.js} +5 -5
  48. package/dist/cdn/chunks/{RichTextEditorContent-Dm9GXJmo.js.map → RichTextEditorContent-C_bMURGF.js.map} +1 -1
  49. package/dist/cdn/chunks/{SaveModuleDialog-BRAdVcYM.js → SaveModuleDialog-DEi8PSP6.js} +3 -3
  50. package/dist/cdn/chunks/{SaveModuleDialog-BRAdVcYM.js.map → SaveModuleDialog-DEi8PSP6.js.map} +1 -1
  51. package/dist/cdn/chunks/{TitleEditor-D3gPRd0x.js → TitleEditor-Betpo8AZ.js} +9 -9
  52. package/dist/cdn/chunks/{TitleEditor-D3gPRd0x.js.map → TitleEditor-Betpo8AZ.js.map} +1 -1
  53. package/dist/cdn/chunks/{blockTypeIcons-C2cm4RjU.js → blockTypeIcons-Xz6OBq3U.js} +3 -3
  54. package/dist/cdn/chunks/{blockTypeIcons-C2cm4RjU.js.map → blockTypeIcons-Xz6OBq3U.js.map} +1 -1
  55. package/dist/cdn/chunks/{draggable-BwWMFq33.js → draggable-BTGr7_-X.js} +1271 -1270
  56. package/dist/cdn/chunks/draggable-BTGr7_-X.js.map +1 -0
  57. package/dist/cdn/chunks/{extensions-SS1ywPUR.js → extensions-D_j4UWxi.js} +108 -105
  58. package/dist/cdn/chunks/{extensions-SS1ywPUR.js.map → extensions-D_j4UWxi.js.map} +1 -1
  59. package/dist/cdn/chunks/{features-CwZTdcbt.js → features-A28DQtjE.js} +831 -820
  60. package/dist/cdn/chunks/features-A28DQtjE.js.map +1 -0
  61. package/dist/cdn/chunks/{icons-CbNEr1kc.js → icons-C9D3N0-J.js} +12 -12
  62. package/dist/cdn/chunks/{icons-CbNEr1kc.js.map → icons-C9D3N0-J.js.map} +1 -1
  63. package/dist/cdn/chunks/{liquid.browser-rMoPo2t_.js → liquid.browser-DUDc3U21.js} +10 -10
  64. package/dist/cdn/chunks/{liquid.browser-rMoPo2t_.js.map → liquid.browser-DUDc3U21.js.map} +1 -1
  65. package/dist/cdn/chunks/{media-library-BRpHZOl7.js → media-library-CH1Wx5wP.js} +13 -9
  66. package/dist/cdn/chunks/media-library-CH1Wx5wP.js.map +1 -0
  67. package/dist/cdn/chunks/pusher-CHo5Cua0.js.map +1 -1
  68. package/dist/cdn/chunks/{quality-BqJqIPRU.js → quality-D4NeyFej.js} +530 -530
  69. package/dist/cdn/chunks/{quality-BqJqIPRU.js.map → quality-D4NeyFej.js.map} +1 -1
  70. package/dist/cdn/chunks/{renderer-CGVYkdUi.js → renderer-BQnGfLhL.js} +62 -61
  71. package/dist/cdn/chunks/renderer-BQnGfLhL.js.map +1 -0
  72. package/dist/cdn/chunks/{src-CvzfrFlT.js → src-BkKEyLw1.js} +6 -6
  73. package/dist/cdn/chunks/{src-CvzfrFlT.js.map → src-BkKEyLw1.js.map} +1 -1
  74. package/dist/cdn/chunks/{styles-2P5yvfsS.js → styles-BDVaiw3K.js} +150 -150
  75. package/dist/cdn/chunks/{styles-2P5yvfsS.js.map → styles-BDVaiw3K.js.map} +1 -1
  76. package/dist/cdn/chunks/{tiptap-BBbH3IT9.js → tiptap-P5abGB13.js} +4437 -2580
  77. package/dist/cdn/chunks/tiptap-P5abGB13.js.map +1 -0
  78. package/dist/cdn/editor.css +1 -1
  79. package/dist/cdn/editor.js +100 -100
  80. package/dist/cdn/editor.js.map +1 -1
  81. package/dist/{check-ChQyfxJ3.js → check-KooI2jyS.js} +1 -1
  82. package/dist/{chevron-down-DJjo0jSV.js → chevron-down-mnlFgueW.js} +1 -1
  83. package/dist/{circle-alert-CPH6l3Lc.js → circle-alert-D89_hB8j.js} +1 -1
  84. package/dist/{clock-DHl_BIkU.js → clock-BaadyUrg.js} +1 -1
  85. package/dist/{cloud-BBC7bv8q.js → cloud-D-FScaHx.js} +80 -74
  86. package/dist/{createLucideIcon-XgXOJ05E.js → createLucideIcon-D-6fpD2L.js} +3 -3
  87. package/dist/{dist-DXaxGLsw.js → dist-BttO3Zdx.js} +44 -44
  88. package/dist/{dist-C8wMh_gi.js → dist-C1WcikEF.js} +5 -5
  89. package/dist/dist-CjULgTep.js +4072 -0
  90. package/dist/{dist-GAmhYvUK.js → dist-D6L_WdRL.js} +96 -86
  91. package/dist/{dist-DYO-w_Jf.js → dist-DaajG7Fo.js} +5 -5
  92. package/dist/dist-Df4eV6Zi.js +5 -0
  93. package/dist/{dist-D8C6jIXM.js → dist-Dnqx5UF3.js} +171 -158
  94. package/dist/{dist-CUpJmrjt.js → dist-Drp5bNAu.js} +5 -5
  95. package/dist/dist-WJ1fVd5b.js +5 -0
  96. package/dist/{dist-BxP6TB0l.js → dist-XA2i70J5.js} +8 -8
  97. package/dist/{dist-UK-lbEBc.js → dist-b52vYHb5.js} +2 -2
  98. package/dist/{dist-CNLAS2v2.js → dist-cl33Ip6W.js} +3 -3
  99. package/dist/{dist-C0jo8wtG.js → dist-sqf7pq5q.js} +16 -16
  100. package/dist/{dist-BzuC8o3y.js → dist-zInT3Lf6.js} +78 -60
  101. package/dist/{extensions-C87ZSllQ.js → extensions-DA-w1gVg.js} +128 -125
  102. package/dist/{image-up-CPBCOMit.js → image-up-DjwfAom6.js} +1 -1
  103. package/dist/{info-DIY9mguM.js → info-Db3HlTr8.js} +1 -1
  104. package/dist/{keys-Vt3XipJl.js → keys-BjmL5YCT.js} +1 -1
  105. package/dist/{liquid.browser-IgQrXHPQ.js → liquid.browser--qtl1Fqy.js} +9 -9
  106. package/dist/{list-checks-CSCyu3fH.js → list-checks-BlAB0X8a.js} +1 -1
  107. package/dist/{loader-circle-Rz_4vJLH.js → loader-circle-EVqyIxjU.js} +1 -1
  108. package/dist/{message-circle-D-umK_MU.js → message-circle-BuI5pBVG.js} +1 -1
  109. package/dist/{refresh-cw-CvWF4jfR.js → refresh-cw-C2vM_6zQ.js} +1 -1
  110. package/dist/{scan-line-wanvAFDr.js → scan-line-AUIh_SHI.js} +1 -1
  111. package/dist/{send-BhbhbIFT.js → send-nrbwF7xg.js} +1 -1
  112. package/dist/{shield-check-CXPPMWth.js → shield-check-B55Ozmva.js} +1 -1
  113. package/dist/{sparkles-CrUN0KWY.js → sparkles-oh1NUSFq.js} +1 -1
  114. package/dist/style.css +1 -1
  115. package/dist/{styles-DOjWbqA9.js → styles-Byhh107n.js} +41 -41
  116. package/dist/templatical-editor.js +81 -80
  117. package/dist/{text-align-end-Bkq8oBrD.js → text-align-start-B2MqzZwU.js} +11 -11
  118. package/dist/{trash-2-BpY5BCLT.js → trash-2-DH8RBwAx.js} +1 -1
  119. package/dist/{triangle-alert-MwJBKR2e.js → triangle-alert-BQHjCt3B.js} +1 -1
  120. package/dist/{useAliveFlag-BLyG8L4d.js → useAliveFlag-B_b9ubwD.js} +1 -1
  121. package/dist/{useCloudI18n-sRfoQCZY.js → useCloudI18n-BHCrmQgj.js} +2 -2
  122. package/dist/{useEditorCore-DxApq2hZ.js → useEditorCore-BEgc3KFu.js} +370 -377
  123. package/dist/{useI18n-lF6hYgZu.js → useI18n-Bb9-ha9X.js} +2 -2
  124. package/dist/{useMergeTag-CZVI7Xe5.js → useMergeTag-HykzEtBn.js} +3 -3
  125. package/dist/usePopoverRoot-BZDkRRry.js +8 -0
  126. package/dist/{vue.runtime.esm-bundler-BDSGA5hA.js → vue.runtime.esm-bundler-MzYCkFSH.js} +1306 -1305
  127. package/dist/{x-rcnxRG8Y.js → x-DgCCENgP.js} +1 -1
  128. package/package.json +27 -27
  129. package/dist/cdn/chunks/CloudEditor-xc_uOEgn.js.map +0 -1
  130. package/dist/cdn/chunks/draggable-BwWMFq33.js.map +0 -1
  131. package/dist/cdn/chunks/features-CwZTdcbt.js.map +0 -1
  132. package/dist/cdn/chunks/media-library-BRpHZOl7.js.map +0 -1
  133. package/dist/cdn/chunks/renderer-CGVYkdUi.js.map +0 -1
  134. package/dist/cdn/chunks/tiptap-BBbH3IT9.js.map +0 -1
  135. package/dist/dist-BDgf2G-V.js +0 -2243
  136. package/dist/dist-D5lmdi1F.js +0 -5
  137. package/dist/dist-DILjuzSv.js +0 -5
  138. package/dist/usePopoverRoot-p2BanBI7.js +0 -8
@@ -1,5 +1,5 @@
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
1
+ import { c as e, ft as t, i as n, qt as r } from "./dist-zInT3Lf6.js";
2
+ //#region ../../node_modules/.pnpm/@tiptap+extension-text-style@3.26.0_@tiptap+core@3.26.0_@tiptap+pm@3.26.0_/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) => {
@@ -12,7 +12,7 @@ var i = 20, a = (e, t = 0) => {
12
12
  let t = e.getAttribute("style"), n = (e.parentElement?.closest("span"))?.getAttribute("style");
13
13
  e.setAttribute("style", `${n};${t}`);
14
14
  });
15
- }, s = t.create({
15
+ }, s = e.create({
16
16
  name: "textStyle",
17
17
  priority: 101,
18
18
  addOptions() {
@@ -28,10 +28,10 @@ var i = 20, a = (e, t = 0) => {
28
28
  getAttrs: (e) => e.hasAttribute("style") ? (this.options.mergeNestedSpanStyles && o(e), {}) : !1
29
29
  }];
30
30
  },
31
- renderHTML({ HTMLAttributes: t }) {
31
+ renderHTML({ HTMLAttributes: e }) {
32
32
  return [
33
33
  "span",
34
- e(this.options.HTMLAttributes, t),
34
+ r(this.options.HTMLAttributes, e),
35
35
  0
36
36
  ];
37
37
  },
@@ -47,7 +47,7 @@ var i = 20, a = (e, t = 0) => {
47
47
  }
48
48
  };
49
49
  }
50
- }), c = r.create({
50
+ }), c = n.create({
51
51
  name: "backgroundColor",
52
52
  addOptions() {
53
53
  return { types: ["textStyle"] };
@@ -57,7 +57,7 @@ var i = 20, a = (e, t = 0) => {
57
57
  types: this.options.types,
58
58
  attributes: { backgroundColor: {
59
59
  default: null,
60
- parseHTML: (e) => (n(e, "background-color") ?? e.style.backgroundColor)?.replace(/['"]+/g, ""),
60
+ parseHTML: (e) => (t(e, "background-color") ?? e.style.backgroundColor)?.replace(/['"]+/g, ""),
61
61
  renderHTML: (e) => e.backgroundColor ? { style: `background-color: ${e.backgroundColor}` } : {}
62
62
  } }
63
63
  }];
@@ -68,7 +68,7 @@ var i = 20, a = (e, t = 0) => {
68
68
  unsetBackgroundColor: () => ({ chain: e }) => e().setMark("textStyle", { backgroundColor: null }).removeEmptyTextStyle().run()
69
69
  };
70
70
  }
71
- }), l = r.create({
71
+ }), l = n.create({
72
72
  name: "color",
73
73
  addOptions() {
74
74
  return { types: ["textStyle"] };
@@ -78,7 +78,7 @@ var i = 20, a = (e, t = 0) => {
78
78
  types: this.options.types,
79
79
  attributes: { color: {
80
80
  default: null,
81
- parseHTML: (e) => (n(e, "color") ?? e.style.color)?.replace(/['"]+/g, ""),
81
+ parseHTML: (e) => (t(e, "color") ?? e.style.color)?.replace(/['"]+/g, ""),
82
82
  renderHTML: (e) => e.color ? { style: `color: ${e.color}` } : {}
83
83
  } }
84
84
  }];
@@ -89,7 +89,7 @@ var i = 20, a = (e, t = 0) => {
89
89
  unsetColor: () => ({ chain: e }) => e().setMark("textStyle", { color: null }).removeEmptyTextStyle().run()
90
90
  };
91
91
  }
92
- }), u = r.create({
92
+ }), u = n.create({
93
93
  name: "fontFamily",
94
94
  addOptions() {
95
95
  return { types: ["textStyle"] };
@@ -99,7 +99,7 @@ var i = 20, a = (e, t = 0) => {
99
99
  types: this.options.types,
100
100
  attributes: { fontFamily: {
101
101
  default: null,
102
- parseHTML: (e) => n(e, "font-family") ?? e.style.fontFamily,
102
+ parseHTML: (e) => t(e, "font-family") ?? e.style.fontFamily,
103
103
  renderHTML: (e) => e.fontFamily ? { style: `font-family: ${e.fontFamily}` } : {}
104
104
  } }
105
105
  }];
@@ -110,7 +110,7 @@ var i = 20, a = (e, t = 0) => {
110
110
  unsetFontFamily: () => ({ chain: e }) => e().setMark("textStyle", { fontFamily: null }).removeEmptyTextStyle().run()
111
111
  };
112
112
  }
113
- }), d = r.create({
113
+ }), d = n.create({
114
114
  name: "fontSize",
115
115
  addOptions() {
116
116
  return { types: ["textStyle"] };
@@ -120,7 +120,7 @@ var i = 20, a = (e, t = 0) => {
120
120
  types: this.options.types,
121
121
  attributes: { fontSize: {
122
122
  default: null,
123
- parseHTML: (e) => n(e, "font-size") ?? e.style.fontSize,
123
+ parseHTML: (e) => t(e, "font-size") ?? e.style.fontSize,
124
124
  renderHTML: (e) => e.fontSize ? { style: `font-size: ${e.fontSize}` } : {}
125
125
  } }
126
126
  }];
@@ -131,7 +131,7 @@ var i = 20, a = (e, t = 0) => {
131
131
  unsetFontSize: () => ({ chain: e }) => e().setMark("textStyle", { fontSize: null }).removeEmptyTextStyle().run()
132
132
  };
133
133
  }
134
- }), f = r.create({
134
+ }), f = n.create({
135
135
  name: "lineHeight",
136
136
  addOptions() {
137
137
  return { types: ["textStyle"] };
@@ -141,7 +141,7 @@ var i = 20, a = (e, t = 0) => {
141
141
  types: this.options.types,
142
142
  attributes: { lineHeight: {
143
143
  default: null,
144
- parseHTML: (e) => n(e, "line-height") ?? e.style.lineHeight,
144
+ parseHTML: (e) => t(e, "line-height") ?? e.style.lineHeight,
145
145
  renderHTML: (e) => e.lineHeight ? { style: `line-height: ${e.lineHeight}` } : {}
146
146
  } }
147
147
  }];
@@ -152,7 +152,7 @@ var i = 20, a = (e, t = 0) => {
152
152
  unsetLineHeight: () => ({ chain: e }) => e().setMark("textStyle", { lineHeight: null }).removeEmptyTextStyle().run()
153
153
  };
154
154
  }
155
- }), p = r.create({
155
+ }), p = n.create({
156
156
  name: "textStyleKit",
157
157
  addExtensions() {
158
158
  let e = [];
@@ -64,7 +64,7 @@ e.prototype = {
64
64
  return new e(n);
65
65
  };
66
66
  //#endregion
67
- //#region ../../node_modules/.pnpm/prosemirror-model@1.25.6/node_modules/prosemirror-model/dist/index.js
67
+ //#region ../../node_modules/.pnpm/prosemirror-model@1.25.7/node_modules/prosemirror-model/dist/index.js
68
68
  function t(e, n, r) {
69
69
  for (let i = 0;; i++) {
70
70
  if (i == e.childCount || i == n.childCount) return e.childCount == n.childCount ? null : r;
@@ -1793,8 +1793,8 @@ function $e(e) {
1793
1793
  return n(e), t;
1794
1794
  }
1795
1795
  function et(e, t, n, r) {
1796
- if (t.nodeType == 3) return { dom: t };
1797
- if (t.dom && t.dom.nodeType == 3) return t;
1796
+ if (t.nodeType == 1) return { dom: t };
1797
+ if (t.dom && t.dom.nodeType == 1) return t;
1798
1798
  let i = t[0], a;
1799
1799
  if (typeof i != "string") throw RangeError("Invalid array passed to renderSpec");
1800
1800
  if (r && (a = Qe(r)) && a.indexOf(t) > -1) throw RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");
@@ -7237,7 +7237,7 @@ function Gs(e) {
7237
7237
  };
7238
7238
  }
7239
7239
  //#endregion
7240
- //#region ../../node_modules/.pnpm/@tiptap+core@3.23.6_@tiptap+pm@3.23.6/node_modules/@tiptap/core/dist/index.js
7240
+ //#region ../../node_modules/.pnpm/@tiptap+core@3.26.0_@tiptap+pm@3.26.0/node_modules/@tiptap/core/dist/index.js
7241
7241
  var Ks = Object.defineProperty, qs = (e, t) => {
7242
7242
  for (var n in t) Ks(e, n, {
7243
7243
  get: t[n],
@@ -8668,11 +8668,17 @@ var Tu = (e, t, n, r = {}) => ({ editor: i, tr: a, state: o, dispatch: s, chain:
8668
8668
  }
8669
8669
  }
8670
8670
  return !1;
8671
- }, Au = () => ({ tr: e, dispatch: t }) => {
8672
- let { selection: n } = e, { empty: r, ranges: i } = n;
8673
- return r || t && i.forEach((t) => {
8674
- e.removeMark(t.$from.pos, t.$to.pos);
8675
- }), !0;
8671
+ }, Au = (e = {}) => ({ tr: t, dispatch: n, editor: r }) => {
8672
+ let { ignoreClearable: i = !1 } = e, { selection: a } = t, { empty: o, ranges: s } = a;
8673
+ if (o) return !0;
8674
+ let { nonClearableMarks: c } = r.extensionManager;
8675
+ if (n) {
8676
+ let e = Object.values(r.schema.marks).filter((e) => i || !c.includes(e.name));
8677
+ s.forEach((n) => {
8678
+ for (let r of e) t.removeMark(n.$from.pos, n.$to.pos, r);
8679
+ });
8680
+ }
8681
+ return !0;
8676
8682
  }, ju = (e, t = {}) => ({ tr: n, state: r, dispatch: i }) => {
8677
8683
  let { extendEmptyMarkRange: a = !1 } = t, { selection: o } = n, s = Y(e, r.schema), { $from: c, empty: l, ranges: u } = o;
8678
8684
  if (!i) return !0;
@@ -8876,13 +8882,13 @@ var Wu = class {
8876
8882
  }, this.name = this.config.name;
8877
8883
  }
8878
8884
  get options() {
8879
- return { ...Q(Z(this, "addOptions", { name: this.name })) || {} };
8885
+ return { ...Q(Z(this, "addOptions", { name: this.name })) };
8880
8886
  }
8881
8887
  get storage() {
8882
8888
  return { ...Q(Z(this, "addStorage", {
8883
8889
  name: this.name,
8884
8890
  options: this.options
8885
- })) || {} };
8891
+ })) };
8886
8892
  }
8887
8893
  configure(e = {}) {
8888
8894
  let t = this.extend({
@@ -9057,7 +9063,7 @@ function Qu(e) {
9057
9063
  }
9058
9064
  var $u = class {
9059
9065
  constructor(e, t) {
9060
- this.splittableMarks = [], this.editor = t, this.baseExtensions = e, this.extensions = jl(e), this.schema = Ol(this.extensions, t), this.setupExtensions();
9066
+ this.splittableMarks = [], this.nonClearableMarks = [], this.editor = t, this.baseExtensions = e, this.extensions = jl(e), this.schema = Ol(this.extensions, t), this.setupExtensions();
9061
9067
  }
9062
9068
  get commands() {
9063
9069
  return this.extensions.reduce((e, t) => {
@@ -9207,7 +9213,7 @@ var $u = class {
9207
9213
  extension: t,
9208
9214
  HTMLAttributes: s,
9209
9215
  updateAttributes: (t) => {
9210
- Ud(i, e, t);
9216
+ Gd(i, e, t);
9211
9217
  }
9212
9218
  });
9213
9219
  }] : [];
@@ -9232,7 +9238,7 @@ var $u = class {
9232
9238
  editor: this.editor,
9233
9239
  type: ql(e.name, this.schema)
9234
9240
  };
9235
- e.type === "mark" && (Q(Z(e, "keepOnSplit", t)) ?? !0) && this.splittableMarks.push(e.name);
9241
+ e.type === "mark" && ((Q(Z(e, "keepOnSplit", t)) ?? !0) && this.splittableMarks.push(e.name), (Q(Z(e, "clearable", t)) ?? !0) || this.nonClearableMarks.push(e.name));
9236
9242
  let n = Z(e, "onBeforeCreate", t), r = Z(e, "onCreate", t), i = Z(e, "onUpdate", t), a = Z(e, "onSelectionUpdate", t), o = Z(e, "onTransaction", t), s = Z(e, "onFocus", t), c = Z(e, "onBlur", t), l = Z(e, "onDestroy", t);
9237
9243
  n && this.editor.on("beforeCreate", n), r && this.editor.on("create", r), i && this.editor.on("update", i), a && this.editor.on("selectionUpdate", a), o && this.editor.on("transaction", o), s && this.editor.on("focus", s), c && this.editor.on("blur", c), l && this.editor.on("destroy", l);
9238
9244
  });
@@ -9276,14 +9282,14 @@ var $ = class e extends Wu {
9276
9282
  return [new M({
9277
9283
  key: new jn("clipboardTextSerializer"),
9278
9284
  props: { clipboardTextSerializer: () => {
9279
- let { editor: e } = this, { state: t, schema: n } = e, { doc: r, selection: i } = t, { ranges: a } = i, o = Math.min(...a.map((e) => e.$from.pos)), s = Math.max(...a.map((e) => e.$to.pos)), c = Ll(n);
9280
- return Fl(r, {
9281
- from: o,
9282
- to: s
9283
- }, {
9284
- ...this.options.blockSeparator === void 0 ? {} : { blockSeparator: this.options.blockSeparator },
9285
- textSerializers: c
9286
- });
9285
+ let { editor: e } = this, { state: t, schema: n } = e, { doc: r, selection: i } = t, a = Ll(n), { blockSeparator: o } = this.options, s = {
9286
+ ...o === void 0 ? {} : { blockSeparator: o },
9287
+ textSerializers: a
9288
+ };
9289
+ return [...i.ranges].sort((e, t) => e.$from.pos - t.$from.pos).map(({ $from: e, $to: t }) => Fl(r, {
9290
+ from: e.pos,
9291
+ to: t.pos
9292
+ }, s)).join(o ?? "\n\n");
9287
9293
  } }
9288
9294
  })];
9289
9295
  }
@@ -10058,7 +10064,7 @@ var Sd = (e, t) => {
10058
10064
  e.key === "Shift" && (this.isShiftKeyPressed = !0);
10059
10065
  }, this.handleKeyUp = (e) => {
10060
10066
  e.key === "Shift" && (this.isShiftKeyPressed = !1);
10061
- }, this.node = e.node, this.editor = e.editor, this.element = e.element, this.contentElement = e.contentElement, this.getPos = e.getPos, this.onResize = e.onResize, this.onCommit = e.onCommit, this.onUpdate = e.onUpdate, e.options?.min && (this.minSize = {
10067
+ }, this.node = e.node, this.editor = e.editor, this.element = e.element, this.element.draggable = !1, this.contentElement = e.contentElement, this.getPos = e.getPos, this.onResize = e.onResize, this.onCommit = e.onCommit, this.onUpdate = e.onUpdate, e.options?.min && (this.minSize = {
10062
10068
  ...this.minSize,
10063
10069
  ...e.options.min
10064
10070
  }), e.options?.max && (this.maxSize = e.options.max), e?.options?.directions && (this.directions = e.options.directions), e.options?.preserveAspectRatio && (this.preserveAspectRatio = e.options.preserveAspectRatio), e.options?.className && (this.classNames = {
@@ -10156,6 +10162,12 @@ var Sd = (e, t) => {
10156
10162
  }
10157
10163
  }, Td = wd;
10158
10164
  function Ed(e, t) {
10165
+ if (e === t) return !0;
10166
+ if (!e || !t) return !1;
10167
+ let n = Object.keys(e), r = Object.keys(t);
10168
+ return n.length === r.length ? n.every((n) => Object.prototype.hasOwnProperty.call(t, n) && Object.is(e[n], t[n])) : !1;
10169
+ }
10170
+ function Dd(e, t) {
10159
10171
  let { selection: n } = e, { $from: r } = n;
10160
10172
  if (n instanceof A) {
10161
10173
  let e = r.index();
@@ -10169,10 +10181,10 @@ function Ed(e, t) {
10169
10181
  }
10170
10182
  return !1;
10171
10183
  }
10172
- function Dd(e) {
10184
+ function Od(e) {
10173
10185
  return e.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&");
10174
10186
  }
10175
- function Od(e, t) {
10187
+ function kd(e, t) {
10176
10188
  let n = e.getAttribute("style");
10177
10189
  if (!n) return null;
10178
10190
  let r = n.split(";").map((e) => e.trim()).filter(Boolean), i = t.toLowerCase();
@@ -10182,29 +10194,29 @@ function Od(e, t) {
10182
10194
  }
10183
10195
  return null;
10184
10196
  }
10185
- function kd(e) {
10197
+ function Ad(e) {
10186
10198
  return e.replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&quot;/g, "\"").replace(/&amp;/g, "&");
10187
10199
  }
10188
- function Ad(e) {
10200
+ function jd(e) {
10189
10201
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
10190
10202
  }
10191
- function jd() {
10203
+ function Md() {
10192
10204
  return typeof navigator < "u" ? /Firefox/.test(navigator.userAgent) : !1;
10193
10205
  }
10194
- function Md(e) {
10206
+ function Nd(e) {
10195
10207
  return typeof e == "string";
10196
10208
  }
10197
- var Nd = {};
10198
- qs(Nd, {
10199
- createAtomBlockMarkdownSpec: () => Id,
10200
- createBlockMarkdownSpec: () => Ld,
10201
- createInlineMarkdownSpec: () => Bd,
10202
- parseAttributes: () => Pd,
10203
- parseIndentedBlocks: () => Vd,
10204
- renderNestedMarkdownContent: () => Hd,
10205
- serializeAttributes: () => Fd
10209
+ var Pd = {};
10210
+ qs(Pd, {
10211
+ createAtomBlockMarkdownSpec: () => Ld,
10212
+ createBlockMarkdownSpec: () => Rd,
10213
+ createInlineMarkdownSpec: () => Vd,
10214
+ parseAttributes: () => Fd,
10215
+ parseIndentedBlocks: () => Hd,
10216
+ renderNestedMarkdownContent: () => Ud,
10217
+ serializeAttributes: () => Id
10206
10218
  });
10207
- function Pd(e) {
10219
+ function Fd(e) {
10208
10220
  if (!e?.trim()) return {};
10209
10221
  let t = {}, n = [], r = e.replace(/["']([^"']*)["']/g, (e) => (n.push(e), `__QUOTED_${n.length - 1}__`)), i = r.match(/(?:^|\s)\.([a-zA-Z][\w-]*)/g);
10210
10222
  i && (t.class = i.map((e) => e.trim().slice(1)).join(" "));
@@ -10218,15 +10230,15 @@ function Pd(e) {
10218
10230
  e.match(/^[a-zA-Z][\w-]*$/) && (t[e] = !0);
10219
10231
  }), t;
10220
10232
  }
10221
- function Fd(e) {
10233
+ function Id(e) {
10222
10234
  if (!e || Object.keys(e).length === 0) return "";
10223
10235
  let t = [];
10224
10236
  return e.class && String(e.class).split(/\s+/).filter(Boolean).forEach((e) => t.push(`.${e}`)), e.id && t.push(`#${e.id}`), Object.entries(e).forEach(([e, n]) => {
10225
10237
  e === "class" || e === "id" || (n === !0 ? t.push(e) : n !== !1 && n != null && t.push(`${e}="${String(n)}"`));
10226
10238
  }), t.join(" ");
10227
10239
  }
10228
- function Id(e) {
10229
- let { nodeName: t, name: n, parseAttributes: r = Pd, serializeAttributes: i = Fd, defaultAttributes: a = {}, requiredAttributes: o = [], allowedAttributes: s } = e, c = n || t, l = (e) => {
10240
+ function Ld(e) {
10241
+ let { nodeName: t, name: n, parseAttributes: r = Fd, serializeAttributes: i = Id, defaultAttributes: a = {}, requiredAttributes: o = [], allowedAttributes: s } = e, c = n || t, l = (e) => {
10230
10242
  if (!s) return e;
10231
10243
  let t = {};
10232
10244
  return s.forEach((n) => {
@@ -10265,8 +10277,8 @@ function Id(e) {
10265
10277
  }
10266
10278
  };
10267
10279
  }
10268
- function Ld(e) {
10269
- let { nodeName: t, name: n, getContent: r, parseAttributes: i = Pd, serializeAttributes: a = Fd, defaultAttributes: o = {}, content: s = "block", allowedAttributes: c } = e, l = n || t, u = (e) => {
10280
+ function Rd(e) {
10281
+ let { nodeName: t, name: n, getContent: r, parseAttributes: i = Fd, serializeAttributes: a = Id, defaultAttributes: o = {}, content: s = "block", allowedAttributes: c } = e, l = n || t, u = (e) => {
10270
10282
  if (!c) return e;
10271
10283
  let t = {};
10272
10284
  return c.forEach((n) => {
@@ -10340,7 +10352,7 @@ ${t.renderChildren(e.content || [], "\n\n")}
10340
10352
  }
10341
10353
  };
10342
10354
  }
10343
- function Rd(e) {
10355
+ function zd(e) {
10344
10356
  if (!e.trim()) return {};
10345
10357
  let t = {}, n = /(\w+)=(?:"([^"]*)"|'([^']*)')/g, r = n.exec(e);
10346
10358
  for (; r !== null;) {
@@ -10349,11 +10361,11 @@ function Rd(e) {
10349
10361
  }
10350
10362
  return t;
10351
10363
  }
10352
- function zd(e) {
10364
+ function Bd(e) {
10353
10365
  return Object.entries(e).filter(([, e]) => e != null).map(([e, t]) => `${e}="${t}"`).join(" ");
10354
10366
  }
10355
- function Bd(e) {
10356
- let { nodeName: t, name: n, getContent: r, parseAttributes: i = Rd, serializeAttributes: a = zd, defaultAttributes: o = {}, selfClosing: s = !1, allowedAttributes: c } = e, l = n || t, u = (e) => {
10367
+ function Vd(e) {
10368
+ let { nodeName: t, name: n, getContent: r, parseAttributes: i = zd, serializeAttributes: a = Bd, defaultAttributes: o = {}, selfClosing: s = !1, allowedAttributes: c } = e, l = n || t, u = (e) => {
10357
10369
  if (!c) return e;
10358
10370
  let t = {};
10359
10371
  return c.forEach((n) => {
@@ -10410,7 +10422,7 @@ function Bd(e) {
10410
10422
  }
10411
10423
  };
10412
10424
  }
10413
- function Vd(e, t, n) {
10425
+ function Hd(e, t, n) {
10414
10426
  let r = e.split("\n"), i = [], a = "", o = 0, s = t.baseIndentSize || 2;
10415
10427
  for (; o < r.length;) {
10416
10428
  let e = r[o], c = e.match(t.itemPattern);
@@ -10454,7 +10466,7 @@ function Vd(e, t, n) {
10454
10466
  raw: a
10455
10467
  };
10456
10468
  }
10457
- function Hd(e, t, n, r) {
10469
+ function Ud(e, t, n, r) {
10458
10470
  if (!e || !Array.isArray(e.content)) return "";
10459
10471
  let i = typeof n == "function" ? n(r) : n, [a, ...o] = e.content, s = `${i}${t.renderChildren([a])}`;
10460
10472
  return o && o.length > 0 && o.forEach((e, n) => {
@@ -10468,7 +10480,13 @@ ${n}`;
10468
10480
  }
10469
10481
  }), s;
10470
10482
  }
10471
- function Ud(e, t, n = {}) {
10483
+ function Wd(e, t) {
10484
+ return e.length === t.length ? e.every((e, n) => {
10485
+ let r = t[n];
10486
+ return e.type === r.type && Ed(e.attrs, r.attrs);
10487
+ }) : !1;
10488
+ }
10489
+ function Gd(e, t, n = {}) {
10472
10490
  let { state: r } = t, { doc: i, tr: a } = r, o = e;
10473
10491
  i.descendants((t, r) => {
10474
10492
  let i = a.mapping.map(r), s = a.mapping.map(r) + t.nodeSize, c = null;
@@ -10488,7 +10506,7 @@ function Ud(e, t, n = {}) {
10488
10506
  }
10489
10507
  }), a.docChanged && t.view.dispatch(a);
10490
10508
  }
10491
- var Wd = class {
10509
+ var Kd = class {
10492
10510
  constructor(e, t, n) {
10493
10511
  this.component = e, this.editor = t.editor, this.options = { ...n }, this.mark = t.mark, this.HTMLAttributes = t.HTMLAttributes;
10494
10512
  }
@@ -10499,12 +10517,12 @@ var Wd = class {
10499
10517
  return null;
10500
10518
  }
10501
10519
  updateAttributes(e, t) {
10502
- Ud(t || this.mark, this.editor, e);
10520
+ Gd(t || this.mark, this.editor, e);
10503
10521
  }
10504
10522
  ignoreMutation(e) {
10505
10523
  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" && (Sc() || xc()) && 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);
10506
10524
  }
10507
- }, Gd = class e extends Wu {
10525
+ }, qd = class e extends Wu {
10508
10526
  constructor() {
10509
10527
  super(...arguments), this.type = "node";
10510
10528
  }
@@ -10518,7 +10536,7 @@ var Wd = class {
10518
10536
  let t = typeof e == "function" ? e() : e;
10519
10537
  return super.extend(t);
10520
10538
  }
10521
- }, Kd = class {
10539
+ }, Jd = class {
10522
10540
  constructor(e, t, n) {
10523
10541
  this.isDragging = !1, this.component = e, this.editor = t.editor, this.options = {
10524
10542
  stopEvent: null,
@@ -10610,7 +10628,7 @@ var Wd = class {
10610
10628
  });
10611
10629
  }
10612
10630
  };
10613
- function qd(e) {
10631
+ function Yd(e) {
10614
10632
  return new qu({
10615
10633
  find: e.find,
10616
10634
  handler: ({ state: t, range: n, match: r, pasteEvent: i }) => {
@@ -10625,7 +10643,7 @@ function qd(e) {
10625
10643
  }
10626
10644
  });
10627
10645
  }
10628
- function Jd(e) {
10646
+ function Xd(e) {
10629
10647
  return new qu({
10630
10648
  find: e.find,
10631
10649
  handler({ match: t, chain: n, range: r, pasteEvent: i }) {
@@ -10639,7 +10657,7 @@ function Jd(e) {
10639
10657
  }
10640
10658
  });
10641
10659
  }
10642
- function Yd(e) {
10660
+ function Zd(e) {
10643
10661
  return new qu({
10644
10662
  find: e.find,
10645
10663
  handler: ({ state: t, range: n, match: r }) => {
@@ -10654,7 +10672,7 @@ function Yd(e) {
10654
10672
  }
10655
10673
  });
10656
10674
  }
10657
- var Xd = class {
10675
+ var Qd = class {
10658
10676
  constructor(e) {
10659
10677
  this.transaction = e, this.currentStep = this.transaction.steps.length;
10660
10678
  }
@@ -10670,4 +10688,4 @@ var Xd = class {
10670
10688
  }
10671
10689
  };
10672
10690
  //#endregion
10673
- export { gc as $, Qu as $t, ll as A, Xl as At, fl as B, yc as Bt, Js as C, ft as Cn, $l as Ct, kc as D, gl as Dt, su as E, l as En, jd as Et, ed as F, Ku as Ft, Rl as G, Sl as Gt, wl as H, gd as Ht, ul as I, Hu as It, Ul as J, _d as Jt, Bl as K, Uu as Kt, dl as L, fc as Lt, Oc as M, nu as Mt, Ad as N, ru as Nt, md as O, tu as Ot, Dd as P, iu as Pt, sl as Q, Vd as Qt, kl as R, Cc as Rt, Ld as S, k as Sn, Ql as St, Bd as T, r as Tn, eu as Tt, Nl as U, qd as Ut, ml as V, Sc as Vt, Pl as W, Nd as Wt, Z as X, pc as Xt, Wl as Y, Jd as Yt, hl as Z, Pd as Zt, Q as _, G as _n, Sd as _t, xd as a, uu as an, Cl as at, Xs as b, jn as bn, Zl as bt, Gu as c, Al as cn, ql as ct, fd as d, Yd as dn, Od as dt, cu as en, Y as et, Kd as f, vd as fn, Il as ft, Xd as g, Uo as gn, ou as gt, Td as h, Gs as hn, Ll as ht, $ as i, bc as in, J as it, Xc as j, Wc as jt, kd as k, Vc as kt, Wd as l, vl as ln, Yc as lt, wd as m, bd as mn, Yl as mt, hd as n, Hd as nn, Kl as nt, Lu as o, Ac as on, Ml as ot, qu as p, Ud as pn, Fl as pt, yl as q, X as qt, Wu as r, jl as rn, zl as rt, au as s, Fd as sn, Ol as st, Ys as t, Vl as tn, Gl as tt, Gd as u, yd as un, Jl as ut, Ed as v, A as vn, Tl as vt, al as w, Ut as wn, _l as wt, Id as x, O as xn, xc as xt, cl as y, M as yn, Bu as yt, pl as z, Md as zt };
10691
+ export { sl as $, Fd as $t, Ad as A, Vc as At, pl as B, Nd as Bt, Rd as C, O as Cn, Ql as Ct, su as D, r as Dn, Md as Dt, Vd as E, Ut as En, eu as Et, Od as F, iu as Ft, Pl as G, Pd as Gt, ml as H, Sc as Ht, ed as I, Ku as It, yl as J, Uu as Jt, Rl as K, Wd as Kt, ul as L, Hu as Lt, Xc as M, Wc as Mt, Oc as N, nu as Nt, kc as O, l as On, gl as Ot, jd as P, ru as Pt, hl as Q, pc as Qt, dl as R, fc as Rt, Ld as S, jn as Sn, xc as St, al as T, ft as Tn, _l as Tt, wl as U, gd as Ut, fl as V, yc as Vt, Nl as W, Yd as Wt, Wl as X, _d as Xt, Ul as Y, X as Yt, Z, Xd as Zt, Ed as _, Gs as _n, ou as _t, xd as a, jl as an, J as at, cl as b, A as bn, Bu as bt, Gu as c, Ac as cn, Ol as ct, fd as d, vl as dn, Jl as dt, Hd as en, gc as et, Jd as f, yd as fn, kd as ft, Qd as g, bd as gn, Ll as gt, Td as h, Gd as hn, Yl as ht, $ as i, Ud as in, zl as it, ll as j, Xl as jt, md as k, tu as kt, Kd as l, Id as ln, ql as lt, wd as m, vd as mn, Fl as mt, hd as n, cu as nn, Gl as nt, Lu as o, bc as on, Cl as ot, qu as p, Zd as pn, Il as pt, Bl as q, Sl as qt, Wu as r, Vl as rn, Kl as rt, au as s, uu as sn, Ml as st, Ys as t, Qu as tn, Y as tt, qd as u, Al as un, Yc as ut, Q as v, Uo as vn, Sd as vt, Js as w, k as wn, $l as wt, Xs as x, M as xn, Zl as xt, Dd as y, G as yn, Tl as yt, kl as z, Cc as zt };