@templatical/editor 0.10.1 → 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 (132) hide show
  1. package/dist/{AiChatSidebar-Dz5bH1z3.js → AiChatSidebar-BMwpZx-6.js} +14 -14
  2. package/dist/{AiFeatureMenu-D2Xn0jFx.js → AiFeatureMenu-xgaIGUCo.js} +8 -8
  3. package/dist/{BlockIssueBadge-CnqD1cGo.js → BlockIssueBadge-3kNs6WoD.js} +5 -5
  4. package/dist/{CloudEditor-BizZwsfD.js → CloudEditor-Dm9hiaui.js} +21 -21
  5. package/dist/{CollaboratorBar-Bn2JDu6l.js → CollaboratorBar-Cz_evoU4.js} +4 -4
  6. package/dist/{CommentsSidebar-BAG6rdVC.js → CommentsSidebar-jFZj_CTo.js} +13 -13
  7. package/dist/{CountdownBlock-B_Hr9Bm9.js → CountdownBlock-S-SCyVye.js} +4 -4
  8. package/dist/{CountdownToolbar-DaqDLKLk.js → CountdownToolbar-Ckdo-3P-.js} +3 -3
  9. package/dist/{DesignReferenceSidebar-I9LWjvrj.js → DesignReferenceSidebar-B9QNPZNV.js} +10 -10
  10. package/dist/{IssuesPanel-B32Ifp4x.js → IssuesPanel-_E_fbSM8.js} +8 -8
  11. package/dist/{LoadingTrack-UTqOUN4O.js → LoadingTrack-BZ5KJyZ_.js} +2 -2
  12. package/dist/{ModuleBrowserModal-DodRped1.js → ModuleBrowserModal-BB22urqi.js} +10 -10
  13. package/dist/{ModulePreviewCanvas-DhcnddJF.js → ModulePreviewCanvas-CH5OdXv8.js} +3 -3
  14. package/dist/{NumberWithSuffix-DB7GyyCI.js → NumberWithSuffix-BHDXHMpo.js} +3 -3
  15. package/dist/{ParagraphEditor-pJA9BHAL.js → ParagraphEditor-BmY7LLgN.js} +24 -24
  16. package/dist/{RichTextEditorContent-dTGSUff_.js → RichTextEditorContent-COijbaWp.js} +8 -8
  17. package/dist/{SaveModuleDialog-D634e99d.js → SaveModuleDialog-D5WN-je_.js} +7 -7
  18. package/dist/{SnapshotHistory-m_nGAHlb.js → SnapshotHistory-BQ55Rhri.js} +9 -9
  19. package/dist/{TemplateScoringPanel-BOQh9neV.js → TemplateScoringPanel-Dhf_Qgr7.js} +15 -15
  20. package/dist/{TestEmailModal-DOcwoKkc.js → TestEmailModal-DH_Viz_m.js} +5 -5
  21. package/dist/{TitleEditor-t6JMWamY.js → TitleEditor-Dn613K8o.js} +12 -12
  22. package/dist/{TplModal-BAtbfDB0.js → TplModal-Dxa3rhHI.js} +4 -4
  23. package/dist/{blockTypeIcons-C4lXx3Au.js → blockTypeIcons-CrcSCTD6.js} +2 -2
  24. package/dist/bundle-stats.json +6 -6
  25. package/dist/cdn/chunks/{AiFeatureMenu-BeOyHAoZ.js → AiFeatureMenu-CCsgxyN9.js} +4 -4
  26. package/dist/cdn/chunks/{AiFeatureMenu-BeOyHAoZ.js.map → AiFeatureMenu-CCsgxyN9.js.map} +1 -1
  27. package/dist/cdn/chunks/{BlockIssueBadge-C6YilQdl.js → BlockIssueBadge-Lc3NWFV8.js} +3 -3
  28. package/dist/cdn/chunks/{BlockIssueBadge-C6YilQdl.js.map → BlockIssueBadge-Lc3NWFV8.js.map} +1 -1
  29. package/dist/cdn/chunks/{CloudEditor-DEA37rdW.js → CloudEditor-KkwvBhyt.js} +123 -123
  30. package/dist/cdn/chunks/{CloudEditor-DEA37rdW.js.map → CloudEditor-KkwvBhyt.js.map} +1 -1
  31. package/dist/cdn/chunks/{CollaboratorBar-CKW7jOW4.js → CollaboratorBar-BGIGiFSm.js} +4 -4
  32. package/dist/cdn/chunks/{CollaboratorBar-CKW7jOW4.js.map → CollaboratorBar-BGIGiFSm.js.map} +1 -1
  33. package/dist/cdn/chunks/{CountdownBlock-DU9ga9Ki.js → CountdownBlock-gqnpxKp_.js} +4 -4
  34. package/dist/cdn/chunks/{CountdownBlock-DU9ga9Ki.js.map → CountdownBlock-gqnpxKp_.js.map} +1 -1
  35. package/dist/cdn/chunks/{CountdownToolbar-BHWsxth7.js → CountdownToolbar-xHpaWQE2.js} +4 -4
  36. package/dist/cdn/chunks/{CountdownToolbar-BHWsxth7.js.map → CountdownToolbar-xHpaWQE2.js.map} +1 -1
  37. package/dist/cdn/chunks/{IssuesPanel-BkYhij39.js → IssuesPanel-DHTTHu65.js} +4 -4
  38. package/dist/cdn/chunks/{IssuesPanel-BkYhij39.js.map → IssuesPanel-DHTTHu65.js.map} +1 -1
  39. package/dist/cdn/chunks/{ModuleBrowserModal-D51w942J.js → ModuleBrowserModal-DDTjrKph.js} +6 -6
  40. package/dist/cdn/chunks/{ModuleBrowserModal-D51w942J.js.map → ModuleBrowserModal-DDTjrKph.js.map} +1 -1
  41. package/dist/cdn/chunks/{ModulePreviewCanvas-BqTqcKHS.js → ModulePreviewCanvas-DeFq0hVi.js} +3 -3
  42. package/dist/cdn/chunks/{ModulePreviewCanvas-BqTqcKHS.js.map → ModulePreviewCanvas-DeFq0hVi.js.map} +1 -1
  43. package/dist/cdn/chunks/{NumberWithSuffix-DuUcF2zG.js → NumberWithSuffix-D4wtmU9O.js} +3 -3
  44. package/dist/cdn/chunks/{NumberWithSuffix-DuUcF2zG.js.map → NumberWithSuffix-D4wtmU9O.js.map} +1 -1
  45. package/dist/cdn/chunks/{ParagraphEditor-Bqjn3ZNm.js → ParagraphEditor-CwY8GeWa.js} +18 -18
  46. package/dist/cdn/chunks/{ParagraphEditor-Bqjn3ZNm.js.map → ParagraphEditor-CwY8GeWa.js.map} +1 -1
  47. package/dist/cdn/chunks/{RichTextEditorContent-mIkkb5EK.js → RichTextEditorContent-C_bMURGF.js} +5 -5
  48. package/dist/cdn/chunks/{RichTextEditorContent-mIkkb5EK.js.map → RichTextEditorContent-C_bMURGF.js.map} +1 -1
  49. package/dist/cdn/chunks/{SaveModuleDialog-Felfmkcj.js → SaveModuleDialog-DEi8PSP6.js} +3 -3
  50. package/dist/cdn/chunks/{SaveModuleDialog-Felfmkcj.js.map → SaveModuleDialog-DEi8PSP6.js.map} +1 -1
  51. package/dist/cdn/chunks/{TitleEditor-Dcldr8D6.js → TitleEditor-Betpo8AZ.js} +9 -9
  52. package/dist/cdn/chunks/{TitleEditor-Dcldr8D6.js.map → TitleEditor-Betpo8AZ.js.map} +1 -1
  53. package/dist/cdn/chunks/{blockTypeIcons-D05Wqf5u.js → blockTypeIcons-Xz6OBq3U.js} +3 -3
  54. package/dist/cdn/chunks/{blockTypeIcons-D05Wqf5u.js.map → blockTypeIcons-Xz6OBq3U.js.map} +1 -1
  55. package/dist/cdn/chunks/{draggable-J_1CPXYc.js → draggable-BTGr7_-X.js} +19 -19
  56. package/dist/cdn/chunks/{draggable-J_1CPXYc.js.map → draggable-BTGr7_-X.js.map} +1 -1
  57. package/dist/cdn/chunks/{extensions-CNmpC18A.js → extensions-D_j4UWxi.js} +4 -4
  58. package/dist/cdn/chunks/{extensions-CNmpC18A.js.map → extensions-D_j4UWxi.js.map} +1 -1
  59. package/dist/cdn/chunks/{features-_ar9QbVv.js → features-A28DQtjE.js} +815 -810
  60. package/dist/cdn/chunks/features-A28DQtjE.js.map +1 -0
  61. package/dist/cdn/chunks/{icons-CnwCLJX-.js → icons-C9D3N0-J.js} +2 -2
  62. package/dist/cdn/chunks/{icons-CnwCLJX-.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-9jyt7Bf9.js → media-library-CH1Wx5wP.js} +7 -7
  66. package/dist/cdn/chunks/{media-library-9jyt7Bf9.js.map → media-library-CH1Wx5wP.js.map} +1 -1
  67. package/dist/cdn/chunks/pusher-CHo5Cua0.js.map +1 -1
  68. package/dist/cdn/chunks/{quality-CO9mj_RH.js → quality-D4NeyFej.js} +530 -530
  69. package/dist/cdn/chunks/{quality-CO9mj_RH.js.map → quality-D4NeyFej.js.map} +1 -1
  70. package/dist/cdn/chunks/{renderer-m6XTCWCL.js → renderer-BQnGfLhL.js} +16 -16
  71. package/dist/cdn/chunks/{renderer-m6XTCWCL.js.map → renderer-BQnGfLhL.js.map} +1 -1
  72. package/dist/cdn/chunks/{src-DfMSYqvE.js → src-BkKEyLw1.js} +6 -6
  73. package/dist/cdn/chunks/{src-DfMSYqvE.js.map → src-BkKEyLw1.js.map} +1 -1
  74. package/dist/cdn/chunks/{styles-1uFWdD5T.js → styles-BDVaiw3K.js} +142 -142
  75. package/dist/cdn/chunks/{styles-1uFWdD5T.js.map → styles-BDVaiw3K.js.map} +1 -1
  76. package/dist/cdn/chunks/{tiptap-CJbIm_hE.js → tiptap-P5abGB13.js} +4434 -2577
  77. package/dist/cdn/chunks/tiptap-P5abGB13.js.map +1 -0
  78. package/dist/cdn/editor.js +100 -100
  79. package/dist/cdn/editor.js.map +1 -1
  80. package/dist/{check-Bs6_uQpm.js → check-KooI2jyS.js} +1 -1
  81. package/dist/{chevron-down-so1rnGwF.js → chevron-down-mnlFgueW.js} +1 -1
  82. package/dist/{circle-alert-CrKv0AuW.js → circle-alert-D89_hB8j.js} +1 -1
  83. package/dist/{clock-Cpx6GYpa.js → clock-BaadyUrg.js} +1 -1
  84. package/dist/{cloud-bHhCNRZa.js → cloud-D-FScaHx.js} +2 -2
  85. package/dist/{createLucideIcon-DFBxEm5K.js → createLucideIcon-D-6fpD2L.js} +1 -1
  86. package/dist/{dist-DwEpKyry.js → dist-BttO3Zdx.js} +44 -44
  87. package/dist/{dist-CMkZaqX1.js → dist-C1WcikEF.js} +5 -5
  88. package/dist/dist-CjULgTep.js +4072 -0
  89. package/dist/{dist-BufRk8ZY.js → dist-D6L_WdRL.js} +95 -85
  90. package/dist/{dist-DJ5YJLXn.js → dist-DaajG7Fo.js} +5 -5
  91. package/dist/dist-Df4eV6Zi.js +5 -0
  92. package/dist/{dist-BejBMbBX.js → dist-Dnqx5UF3.js} +171 -158
  93. package/dist/{dist-CIK3BYgh.js → dist-Drp5bNAu.js} +5 -5
  94. package/dist/dist-WJ1fVd5b.js +5 -0
  95. package/dist/{dist-CoaWXQ7N.js → dist-XA2i70J5.js} +8 -8
  96. package/dist/{dist-74n2Mqc6.js → dist-b52vYHb5.js} +2 -2
  97. package/dist/{dist-2-A7SaKm.js → dist-cl33Ip6W.js} +1 -1
  98. package/dist/{dist-0RguD1vS.js → dist-sqf7pq5q.js} +16 -16
  99. package/dist/{dist-B3CcePtK.js → dist-zInT3Lf6.js} +75 -57
  100. package/dist/{extensions-C810eSzv.js → extensions-DA-w1gVg.js} +29 -29
  101. package/dist/{image-up-kMLE5GsI.js → image-up-DjwfAom6.js} +1 -1
  102. package/dist/{info-xqRxLfNz.js → info-Db3HlTr8.js} +1 -1
  103. package/dist/{keys-BoYBr3PU.js → keys-BjmL5YCT.js} +1 -1
  104. package/dist/{liquid.browser-IgQrXHPQ.js → liquid.browser--qtl1Fqy.js} +9 -9
  105. package/dist/{list-checks-C81htkBJ.js → list-checks-BlAB0X8a.js} +1 -1
  106. package/dist/{loader-circle-C6cZPIum.js → loader-circle-EVqyIxjU.js} +1 -1
  107. package/dist/{message-circle-dqOBRe07.js → message-circle-BuI5pBVG.js} +1 -1
  108. package/dist/{refresh-cw-DCjNd6o0.js → refresh-cw-C2vM_6zQ.js} +1 -1
  109. package/dist/{scan-line-DXz0nZVJ.js → scan-line-AUIh_SHI.js} +1 -1
  110. package/dist/{send-C4uH_WaI.js → send-nrbwF7xg.js} +1 -1
  111. package/dist/{shield-check-B3U68ssA.js → shield-check-B55Ozmva.js} +1 -1
  112. package/dist/{sparkles-CsDweGUy.js → sparkles-oh1NUSFq.js} +1 -1
  113. package/dist/{styles-CBlNpqL9.js → styles-Byhh107n.js} +33 -33
  114. package/dist/templatical-editor.js +81 -80
  115. package/dist/{text-align-start-BkKQePFp.js → text-align-start-B2MqzZwU.js} +1 -1
  116. package/dist/{trash-2-BIOkaEz1.js → trash-2-DH8RBwAx.js} +1 -1
  117. package/dist/{triangle-alert-Bbgu6uUG.js → triangle-alert-BQHjCt3B.js} +1 -1
  118. package/dist/{useAliveFlag-Bc99FWyR.js → useAliveFlag-B_b9ubwD.js} +1 -1
  119. package/dist/{useCloudI18n-DiwsLi6z.js → useCloudI18n-BHCrmQgj.js} +2 -2
  120. package/dist/{useEditorCore-7c1QpPlw.js → useEditorCore-BEgc3KFu.js} +368 -375
  121. package/dist/{useI18n-DskZMfRJ.js → useI18n-Bb9-ha9X.js} +2 -2
  122. package/dist/{useMergeTag-Co4xYwG6.js → useMergeTag-HykzEtBn.js} +3 -3
  123. package/dist/usePopoverRoot-BZDkRRry.js +8 -0
  124. package/dist/{vue.runtime.esm-bundler-D0Hg03Ub.js → vue.runtime.esm-bundler-MzYCkFSH.js} +18 -18
  125. package/dist/{x-DWU6NCuE.js → x-DgCCENgP.js} +1 -1
  126. package/package.json +25 -25
  127. package/dist/cdn/chunks/features-_ar9QbVv.js.map +0 -1
  128. package/dist/cdn/chunks/tiptap-CJbIm_hE.js.map +0 -1
  129. package/dist/dist-Bvje_Tqb.js +0 -5
  130. package/dist/dist-BxHa6kIT.js +0 -2243
  131. package/dist/dist-D1YvgM6p.js +0 -5
  132. package/dist/usePopoverRoot-DYH_gX8o.js +0 -8
@@ -1,5 +1,5 @@
1
- import { Gt as e, c as t, dt as n, i as r } from "./dist-B3CcePtK.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 = [];
@@ -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 };
@@ -1,11 +1,11 @@
1
- import { A as e, B as t, E as n, M as r, S as i, X as a, a as o, at as s, b as c, c as l, d as u, f as d, h as f, l as p, m, n as h, ot as g, p as _, rt as v, s as y, st as b, z as x } from "./vue.runtime.esm-bundler-D0Hg03Ub.js";
2
- import { C as S, D as C, n as w, w as T } from "./dist-BufRk8ZY.js";
3
- import { t as E } from "./useI18n-DskZMfRJ.js";
4
- import { t as D } from "./useMergeTag-Co4xYwG6.js";
5
- import { Gt as O, P as k, _n as A, bn as j, gn as M, i as N, o as P, p as F, u as I, yn as L } from "./dist-B3CcePtK.js";
6
- import { n as R, t as z } from "./dist-BejBMbBX.js";
1
+ import { A as e, B as t, E as n, M as r, S as i, X as a, a as o, at as s, b as c, c as l, d as u, f as d, h as f, l as p, m, n as h, ot as g, p as _, rt as v, s as y, st as b, z as x } from "./vue.runtime.esm-bundler-MzYCkFSH.js";
2
+ import { C as S, D as C, n as w, w as T } from "./dist-D6L_WdRL.js";
3
+ import { t as E } from "./useI18n-Bb9-ha9X.js";
4
+ import { t as D } from "./useMergeTag-HykzEtBn.js";
5
+ import { F as O, Sn as k, i as A, o as j, p as M, qt as N, u as P, vn as F, xn as ee, yn as I } from "./dist-zInT3Lf6.js";
6
+ import { n as L, t as R } from "./dist-Dnqx5UF3.js";
7
7
  //#region src/extensions/FontSize.ts
8
- var ee = N.create({
8
+ var te = A.create({
9
9
  name: "fontSize",
10
10
  addOptions() {
11
11
  return { types: ["textStyle"] };
@@ -26,7 +26,7 @@ var ee = N.create({
26
26
  unsetFontSize: () => ({ chain: e }) => e().setMark("textStyle", { fontSize: null }).removeEmptyTextStyle().run()
27
27
  };
28
28
  }
29
- }), te = N.create({
29
+ }), ne = A.create({
30
30
  name: "letterSpacing",
31
31
  addOptions() {
32
32
  return { types: ["textStyle"] };
@@ -47,7 +47,7 @@ var ee = N.create({
47
47
  unsetLetterSpacing: () => ({ chain: e }) => e().setMark("textStyle", { letterSpacing: null }).removeEmptyTextStyle().run()
48
48
  };
49
49
  }
50
- }), ne = N.create({
50
+ }), re = A.create({
51
51
  name: "lineHeight",
52
52
  addOptions() {
53
53
  return {
@@ -71,7 +71,7 @@ var ee = N.create({
71
71
  unsetLineHeight: () => ({ commands: e }) => this.options.types.every((t) => e.resetAttributes(t, "lineHeight"))
72
72
  };
73
73
  }
74
- }), re = [
74
+ }), z = [
75
75
  "aria-label",
76
76
  "data-tooltip",
77
77
  "onKeydown"
@@ -107,7 +107,7 @@ var ee = N.create({
107
107
  function N(e) {
108
108
  e.key === "Enter" ? (e.preventDefault(), M()) : e.key === "Escape" && (T.value = !1);
109
109
  }
110
- return (n, i) => (e(), _(v(z), {
110
+ return (n, i) => (e(), _(v(R), {
111
111
  as: "span",
112
112
  class: s(h.value ? "tpl-logic-merge-tag-node tpl:group tpl:mx-0.5 tpl:inline-flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[0.8em] tpl:font-bold tpl:tracking-wide tpl:uppercase tpl:select-none" : ""),
113
113
  style: g(h.value ? "background-color: transparent; border: 1.5px solid color-mix(in srgb, var(--tpl-primary) 50%, transparent); color: var(--tpl-primary);" : ""),
@@ -131,7 +131,7 @@ var ee = N.create({
131
131
  "data-tooltip": r.node.attrs.value,
132
132
  onClick: l(j, ["stop"]),
133
133
  onKeydown: [y(l(j, ["stop"]), ["enter"]), y(l(j, ["prevent", "stop"]), ["space"])]
134
- }, b(w.value), 41, re)) : (e(), f("span", {
134
+ }, b(w.value), 41, z)) : (e(), f("span", {
135
135
  key: 2,
136
136
  role: "button",
137
137
  tabindex: "0",
@@ -177,11 +177,11 @@ function U(e, t) {
177
177
  //#endregion
178
178
  //#region src/extensions/renderVueNodeView.ts
179
179
  function W(e) {
180
- return R(e);
180
+ return L(e);
181
181
  }
182
182
  //#endregion
183
183
  //#region src/extensions/LogicMergeTagNode.ts
184
- var G = I.create({
184
+ var G = P.create({
185
185
  name: "logicMergeTagNode",
186
186
  group: "inline",
187
187
  inline: !0,
@@ -213,7 +213,7 @@ var G = I.create({
213
213
  let n = S(e.attrs.value, this.options.syntax);
214
214
  return [
215
215
  "span",
216
- O(t, {
216
+ N(t, {
217
217
  "data-logic-merge-tag": e.attrs.value,
218
218
  "data-keyword": n
219
219
  }),
@@ -230,7 +230,7 @@ var G = I.create({
230
230
  };
231
231
  },
232
232
  addInputRules() {
233
- return [new P({
233
+ return [new j({
234
234
  find: RegExp(this.options.syntax.logic.source + "$", ""),
235
235
  handler: ({ state: e, range: t, match: n }) => {
236
236
  let r = n[0];
@@ -244,7 +244,7 @@ var G = I.create({
244
244
  })];
245
245
  },
246
246
  addPasteRules() {
247
- return [new F({
247
+ return [new M({
248
248
  find: new RegExp(this.options.syntax.logic.source, "g"),
249
249
  handler: ({ state: e, range: t, match: n }) => {
250
250
  let r = n[0];
@@ -285,7 +285,7 @@ var G = I.create({
285
285
  function w(e) {
286
286
  e.key === "Enter" ? (e.preventDefault(), C()) : e.key === "Escape" && (m.value = !1);
287
287
  }
288
- return (n, i) => (e(), _(v(z), {
288
+ return (n, i) => (e(), _(v(R), {
289
289
  as: "span",
290
290
  class: "tpl-merge-tag-node tpl:group tpl:mx-0.5 tpl:inline-flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[0.9em] tpl:font-medium tpl:select-none tpl:text-[var(--tpl-primary)]",
291
291
  style: { "background-color": "color-mix(in srgb, var(--tpl-primary) 20%, transparent)" },
@@ -337,7 +337,7 @@ var G = I.create({
337
337
  _: 1
338
338
  }));
339
339
  }
340
- }), Y = I.create({
340
+ }), Y = P.create({
341
341
  name: "mergeTagNode",
342
342
  group: "inline",
343
343
  inline: !0,
@@ -367,7 +367,7 @@ var G = I.create({
367
367
  let n = T(e.attrs.value, this.options.mergeTags);
368
368
  return [
369
369
  "span",
370
- O(t, {
370
+ N(t, {
371
371
  "data-merge-tag": e.attrs.value,
372
372
  "data-label": n
373
373
  }),
@@ -393,7 +393,7 @@ var G = I.create({
393
393
  };
394
394
  },
395
395
  addInputRules() {
396
- return [new P({
396
+ return [new j({
397
397
  find: RegExp(this.options.syntax.value.source + "$", ""),
398
398
  handler: ({ state: e, range: t, match: n }) => {
399
399
  let r = n[0], i = T(r, this.options.mergeTags), a = this.type.create({
@@ -405,7 +405,7 @@ var G = I.create({
405
405
  })];
406
406
  },
407
407
  addPasteRules() {
408
- return [new F({
408
+ return [new M({
409
409
  find: new RegExp(this.options.syntax.value.source, "g"),
410
410
  handler: ({ state: e, range: t, match: n }) => {
411
411
  let r = n[0], i = T(r, this.options.mergeTags), a = this.type.create({
@@ -418,9 +418,9 @@ var G = I.create({
418
418
  }
419
419
  });
420
420
  //#endregion
421
- //#region ../../node_modules/.pnpm/@tiptap+suggestion@3.23.6_@tiptap+core@3.23.6_@tiptap+pm@3.23.6__@tiptap+pm@3.23.6/node_modules/@tiptap/suggestion/dist/index.js
421
+ //#region ../../node_modules/.pnpm/@tiptap+suggestion@3.26.0_@tiptap+core@3.26.0_@tiptap+pm@3.26.0__@tiptap+pm@3.26.0/node_modules/@tiptap/suggestion/dist/index.js
422
422
  function ie(e) {
423
- let { char: t, allowSpaces: n, allowToIncludeChar: r, allowedPrefixes: i, startOfLine: a, $position: o } = e, s = n && !r, c = k(t), l = RegExp(`\\s${c}$`), u = a ? "^" : "", d = r ? "" : c, f = RegExp(s ? `${u}${c}.*?(?=\\s${d}|$)` : `${u}(?:^)?${c}[^\\s${d}]*`, "gm"), p = o.nodeBefore?.isText && o.nodeBefore.text;
423
+ let { char: t, allowSpaces: n, allowToIncludeChar: r, allowedPrefixes: i, startOfLine: a, $position: o } = e, s = n && !r, c = O(t), l = RegExp(`\\s${c}$`), u = a ? "^" : "", d = r ? "" : c, f = RegExp(s ? `${u}${c}.*?(?=\\s${d}|$)` : `${u}(?:^)?${c}[^\\s${d}]*`, "gm"), p = o.nodeBefore?.isText && o.nodeBefore.text;
424
424
  if (!p) return null;
425
425
  let m = o.pos - p.length, h = Array.from(p.matchAll(f)).pop();
426
426
  if (!h || h.input === void 0 || h.index === void 0) return null;
@@ -444,7 +444,7 @@ function ae(e) {
444
444
  return /\s/.test(n);
445
445
  }) : !1;
446
446
  }
447
- var oe = new j("suggestion");
447
+ var oe = new k("suggestion");
448
448
  function se({ pluginKey: e = oe, editor: t, char: n = "@", allowSpaces: r = !1, allowToIncludeChar: i = !1, allowedPrefixes: a = [" "], startOfLine: o = !1, decorationTag: s = "span", decorationClass: c = "suggestion", decorationContent: l = "", decorationEmptyClass: u = "is-empty", command: d = () => null, items: f = () => [], render: p = () => ({}), allow: m = () => !0, findSuggestionMatch: h = ie, shouldShow: g, shouldResetDismissed: _ }) {
449
449
  let v, y = p?.(), b = r && !i, x = () => {
450
450
  let e = t.state.selection.$anchor.pos, { top: n, right: r, bottom: i, left: a } = t.view.coordsAtPos(e);
@@ -492,7 +492,7 @@ function se({ pluginKey: e = oe, editor: t, char: n = "@", allowSpaces: r = !1,
492
492
  let a = n.state.tr.setMeta(r, { exit: !0 });
493
493
  n.dispatch(a);
494
494
  }
495
- let T = new L({
495
+ let T = new ee({
496
496
  key: e,
497
497
  view() {
498
498
  return {
@@ -605,7 +605,7 @@ function se({ pluginKey: e = oe, editor: t, char: n = "@", allowSpaces: r = !1,
605
605
  let { active: t, range: n, decorationId: r, query: i } = T.getState(e);
606
606
  if (!t) return null;
607
607
  let a = !i?.length, o = [c];
608
- return a && o.push(u), A.create(e.doc, [M.inline(n.from, n.to, {
608
+ return a && o.push(u), I.create(e.doc, [F.inline(n.from, n.to, {
609
609
  nodeName: s,
610
610
  class: o.join(" "),
611
611
  "data-decoration-id": r,
@@ -768,7 +768,7 @@ function he(e, t) {
768
768
  };
769
769
  };
770
770
  }
771
- var ge = N.create({
771
+ var ge = A.create({
772
772
  name: "mergeTagSuggestion",
773
773
  addOptions() {
774
774
  return {
@@ -803,4 +803,4 @@ var ge = N.create({
803
803
  }
804
804
  });
805
805
  //#endregion
806
- export { ee as FontSize, te as LetterSpacing, ne as LineHeight, G as LogicMergeTagNode, Y as MergeTagNode, ge as MergeTagSuggestion, Q as filterMergeTags, $ as handleSuggestionKeyDown };
806
+ export { te as FontSize, ne as LetterSpacing, re as LineHeight, G as LogicMergeTagNode, Y as MergeTagNode, ge as MergeTagSuggestion, Q as filterMergeTags, $ as handleSuggestionKeyDown };