hexagon-editor 0.1.9 → 0.1.10

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 (210) hide show
  1. package/README.md +145 -118
  2. package/dist/MarkdownEditor.vue.d.ts +21 -895
  3. package/dist/MarkdownEditor.vue.d.ts.map +1 -1
  4. package/dist/{MarkdownEditorLinkForm-nx1gDLpK.js → MarkdownEditorLinkForm-BAIb4QJp.js} +95 -92
  5. package/dist/{base-BOV5nzwj.js → base-B5Cf0K33.js} +9 -6
  6. package/dist/classname.d.ts.map +1 -1
  7. package/dist/components/MarkdownEditorFloatingMenus.vue.d.ts +12 -19
  8. package/dist/components/MarkdownEditorFloatingMenus.vue.d.ts.map +1 -1
  9. package/dist/components/MarkdownEditorImageActions.vue.d.ts +8 -9
  10. package/dist/components/MarkdownEditorImageActions.vue.d.ts.map +1 -1
  11. package/dist/components/MarkdownEditorToolbar.vue.d.ts +24 -22
  12. package/dist/components/MarkdownEditorToolbar.vue.d.ts.map +1 -1
  13. package/dist/components/MarkdownEditorToolbarIcon.vue.d.ts +2 -1
  14. package/dist/components/MarkdownEditorToolbarIcon.vue.d.ts.map +1 -1
  15. package/dist/composables/useFloatingPanel.d.ts +2 -2
  16. package/dist/composables/useFloatingPanel.d.ts.map +1 -1
  17. package/dist/composables/useMarkdownEditorValue.d.ts +1 -1
  18. package/dist/composables/useMarkdownEditorValue.d.ts.map +1 -1
  19. package/dist/configure.d.ts.map +1 -1
  20. package/dist/core/actions.d.ts.map +1 -1
  21. package/dist/core/basic-editor-atomic-source.d.ts +1 -1
  22. package/dist/core/basic-editor-atomic-source.d.ts.map +1 -1
  23. package/dist/core/basic-editor-command-helpers.d.ts +7 -7
  24. package/dist/core/basic-editor-command-helpers.d.ts.map +1 -1
  25. package/dist/core/basic-editor-markdown.d.ts +4 -2
  26. package/dist/core/basic-editor-markdown.d.ts.map +1 -1
  27. package/dist/core/basic-editor-renderers.d.ts +2 -2
  28. package/dist/core/basic-editor-renderers.d.ts.map +1 -1
  29. package/dist/core/basic-editor-runtime-plugins.d.ts +3 -3
  30. package/dist/core/basic-editor-runtime-plugins.d.ts.map +1 -1
  31. package/dist/core/basic-editor-selection.d.ts +3 -3
  32. package/dist/core/basic-editor-selection.d.ts.map +1 -1
  33. package/dist/core/basic-editor-types.d.ts +9 -9
  34. package/dist/core/basic-editor-types.d.ts.map +1 -1
  35. package/dist/core/basic-editor.d.ts +7 -4
  36. package/dist/core/basic-editor.d.ts.map +1 -1
  37. package/dist/core/content-handler.d.ts +2 -2
  38. package/dist/core/content-handler.d.ts.map +1 -1
  39. package/dist/core/editor-instance.d.ts +2 -2
  40. package/dist/core/editor-instance.d.ts.map +1 -1
  41. package/dist/core/events.d.ts.map +1 -1
  42. package/dist/core/extension-builder.d.ts +4 -4
  43. package/dist/core/extension-builder.d.ts.map +1 -1
  44. package/dist/core/extensions-manager.d.ts +7 -5
  45. package/dist/core/extensions-manager.d.ts.map +1 -1
  46. package/dist/core/index.d.ts +1 -1
  47. package/dist/core/index.d.ts.map +1 -1
  48. package/dist/core/lists.d.ts +3 -2
  49. package/dist/core/lists.d.ts.map +1 -1
  50. package/dist/core/logger.d.ts +1 -1
  51. package/dist/core/logger.d.ts.map +1 -1
  52. package/dist/core/markdown-parser.d.ts +3 -3
  53. package/dist/core/markdown-parser.d.ts.map +1 -1
  54. package/dist/core/markdown.d.ts +3 -2
  55. package/dist/core/markdown.d.ts.map +1 -1
  56. package/dist/core/markup-commands.d.ts +1 -1
  57. package/dist/core/markup-commands.d.ts.map +1 -1
  58. package/dist/core/markup-editor.d.ts +1 -1
  59. package/dist/core/markup-editor.d.ts.map +1 -1
  60. package/dist/core/registries.d.ts +6 -3
  61. package/dist/core/registries.d.ts.map +1 -1
  62. package/dist/core/schema-dynamic-modifier.d.ts +1 -1
  63. package/dist/core/schema-dynamic-modifier.d.ts.map +1 -1
  64. package/dist/core/vue-renderer.d.ts +6 -4
  65. package/dist/core/vue-renderer.d.ts.map +1 -1
  66. package/dist/core.d.ts +1 -0
  67. package/dist/core.js +17 -16
  68. package/dist/directives-CqalziGj.js +11 -0
  69. package/dist/directives.d.ts +23 -4
  70. package/dist/directives.d.ts.map +1 -1
  71. package/dist/extensions/additional/folding-heading.d.ts +3 -2
  72. package/dist/extensions/additional/folding-heading.d.ts.map +1 -1
  73. package/dist/extensions/additional/math.d.ts +7 -5
  74. package/dist/extensions/additional/math.d.ts.map +1 -1
  75. package/dist/extensions/additional/mermaid.d.ts +7 -5
  76. package/dist/extensions/additional/mermaid.d.ts.map +1 -1
  77. package/dist/extensions/additional/quote-link.d.ts +7 -5
  78. package/dist/extensions/additional/quote-link.d.ts.map +1 -1
  79. package/dist/extensions/additional/yfm-html-block.d.ts +7 -5
  80. package/dist/extensions/additional/yfm-html-block.d.ts.map +1 -1
  81. package/dist/extensions/base.d.ts +1 -1
  82. package/dist/extensions/base.d.ts.map +1 -1
  83. package/dist/extensions/behavior/clicks-on-edges.d.ts +2 -2
  84. package/dist/extensions/behavior/clicks-on-edges.d.ts.map +1 -1
  85. package/dist/extensions/behavior/clipboard.d.ts +2 -2
  86. package/dist/extensions/behavior/cursor.d.ts +4 -3
  87. package/dist/extensions/behavior/cursor.d.ts.map +1 -1
  88. package/dist/extensions/behavior/editor-mode-keymap.d.ts +1 -1
  89. package/dist/extensions/behavior/editor-mode-keymap.d.ts.map +1 -1
  90. package/dist/extensions/behavior/history.d.ts +2 -2
  91. package/dist/extensions/behavior/history.d.ts.map +1 -1
  92. package/dist/extensions/behavior/placeholder.d.ts +1 -1
  93. package/dist/extensions/behavior/placeholder.d.ts.map +1 -1
  94. package/dist/extensions/behavior/resizable.d.ts +1 -1
  95. package/dist/extensions/behavior/selection-commands.d.ts +3 -2
  96. package/dist/extensions/behavior/selection-commands.d.ts.map +1 -1
  97. package/dist/extensions/behavior/selection-context.d.ts +3 -3
  98. package/dist/extensions/behavior/selection-context.d.ts.map +1 -1
  99. package/dist/extensions/behavior/selection.d.ts +1 -1
  100. package/dist/extensions/behavior/selection.d.ts.map +1 -1
  101. package/dist/extensions/markdown/background-color.d.ts +6 -5
  102. package/dist/extensions/markdown/background-color.d.ts.map +1 -1
  103. package/dist/extensions/markdown/blockquote-specs.d.ts +4 -3
  104. package/dist/extensions/markdown/blockquote-specs.d.ts.map +1 -1
  105. package/dist/extensions/markdown/blockquote.d.ts +3 -3
  106. package/dist/extensions/markdown/blockquote.d.ts.map +1 -1
  107. package/dist/extensions/markdown/bold-specs.d.ts +4 -3
  108. package/dist/extensions/markdown/bold.d.ts +3 -3
  109. package/dist/extensions/markdown/bold.d.ts.map +1 -1
  110. package/dist/extensions/markdown/breaks-specs.d.ts +4 -3
  111. package/dist/extensions/markdown/breaks-specs.d.ts.map +1 -1
  112. package/dist/extensions/markdown/breaks.d.ts +2 -2
  113. package/dist/extensions/markdown/breaks.d.ts.map +1 -1
  114. package/dist/extensions/markdown/code-block-specs.d.ts +4 -3
  115. package/dist/extensions/markdown/code-block.d.ts +3 -3
  116. package/dist/extensions/markdown/code-block.d.ts.map +1 -1
  117. package/dist/extensions/markdown/code-specs.d.ts +4 -3
  118. package/dist/extensions/markdown/code.d.ts +4 -3
  119. package/dist/extensions/markdown/code.d.ts.map +1 -1
  120. package/dist/extensions/markdown/color.d.ts +6 -5
  121. package/dist/extensions/markdown/color.d.ts.map +1 -1
  122. package/dist/extensions/markdown/deflist-specs.d.ts +4 -3
  123. package/dist/extensions/markdown/deflist-specs.d.ts.map +1 -1
  124. package/dist/extensions/markdown/deflist.d.ts +5 -5
  125. package/dist/extensions/markdown/deflist.d.ts.map +1 -1
  126. package/dist/extensions/markdown/heading-specs.d.ts +4 -3
  127. package/dist/extensions/markdown/heading.d.ts +3 -3
  128. package/dist/extensions/markdown/heading.d.ts.map +1 -1
  129. package/dist/extensions/markdown/horizontal-rule-specs.d.ts +4 -3
  130. package/dist/extensions/markdown/horizontal-rule.d.ts +3 -3
  131. package/dist/extensions/markdown/horizontal-rule.d.ts.map +1 -1
  132. package/dist/extensions/markdown/html.d.ts +4 -3
  133. package/dist/extensions/markdown/html.d.ts.map +1 -1
  134. package/dist/extensions/markdown/image.d.ts +7 -6
  135. package/dist/extensions/markdown/image.d.ts.map +1 -1
  136. package/dist/extensions/markdown/italic-specs.d.ts +4 -3
  137. package/dist/extensions/markdown/italic.d.ts +3 -3
  138. package/dist/extensions/markdown/italic.d.ts.map +1 -1
  139. package/dist/extensions/markdown/link-specs.d.ts +5 -4
  140. package/dist/extensions/markdown/link.d.ts +3 -3
  141. package/dist/extensions/markdown/link.d.ts.map +1 -1
  142. package/dist/extensions/markdown/list-specs.d.ts +3 -2
  143. package/dist/extensions/markdown/list-specs.d.ts.map +1 -1
  144. package/dist/extensions/markdown/lists.d.ts +3 -3
  145. package/dist/extensions/markdown/lists.d.ts.map +1 -1
  146. package/dist/extensions/markdown/mark.d.ts +5 -4
  147. package/dist/extensions/markdown/mark.d.ts.map +1 -1
  148. package/dist/extensions/markdown/strike.d.ts +5 -4
  149. package/dist/extensions/markdown/strike.d.ts.map +1 -1
  150. package/dist/extensions/markdown/subscript.d.ts +5 -4
  151. package/dist/extensions/markdown/subscript.d.ts.map +1 -1
  152. package/dist/extensions/markdown/table-actions.d.ts +2 -2
  153. package/dist/extensions/markdown/table-actions.d.ts.map +1 -1
  154. package/dist/extensions/markdown/table-specs.d.ts +4 -3
  155. package/dist/extensions/markdown/table-specs.d.ts.map +1 -1
  156. package/dist/extensions/markdown/table.d.ts +1 -1
  157. package/dist/extensions/markdown/table.d.ts.map +1 -1
  158. package/dist/extensions/markdown/underline.d.ts +5 -4
  159. package/dist/extensions/markdown/underline.d.ts.map +1 -1
  160. package/dist/extensions.d.ts +1 -0
  161. package/dist/extensions.js +1 -1
  162. package/dist/forms/MarkdownEditorForm.vue.d.ts +14 -21
  163. package/dist/forms/MarkdownEditorForm.vue.d.ts.map +1 -1
  164. package/dist/forms/MarkdownEditorImageForm.vue.d.ts +13 -81
  165. package/dist/forms/MarkdownEditorImageForm.vue.d.ts.map +1 -1
  166. package/dist/forms/MarkdownEditorLinkForm.vue.d.ts +9 -79
  167. package/dist/forms/MarkdownEditorLinkForm.vue.d.ts.map +1 -1
  168. package/dist/forms/MarkdownEditorTextInput.vue.d.ts +8 -9
  169. package/dist/forms/MarkdownEditorTextInput.vue.d.ts.map +1 -1
  170. package/dist/forms.d.ts +1 -0
  171. package/dist/forms.js +1 -1
  172. package/dist/{full-s-sYdwp2.js → full-DakJ7Z5o.js} +1 -1
  173. package/dist/{full-specs-Cm3QffD5.js → full-specs-CE16SWE6.js} +1 -1
  174. package/dist/i18n/index.d.ts +1 -1
  175. package/dist/i18n.d.ts +1 -0
  176. package/dist/index.css +1 -1
  177. package/dist/index.d.ts +1 -1
  178. package/dist/index.d.ts.map +1 -1
  179. package/dist/index.js +906 -860
  180. package/dist/{markup-commands-DW5NFQUO.js → markup-commands-C-IL6Ajf.js} +2286 -2233
  181. package/dist/presets/commonmark-specs.d.ts +2 -2
  182. package/dist/presets/commonmark.d.ts +11 -11
  183. package/dist/presets/commonmark.d.ts.map +1 -1
  184. package/dist/presets/default.d.ts +2 -2
  185. package/dist/presets/full-specs.d.ts +2 -2
  186. package/dist/presets/full.d.ts +7 -7
  187. package/dist/presets/full.d.ts.map +1 -1
  188. package/dist/presets/zero.d.ts +2 -2
  189. package/dist/presets/zero.d.ts.map +1 -1
  190. package/dist/presets.d.ts +1 -0
  191. package/dist/presets.js +2 -2
  192. package/dist/public-types.d.ts +1 -1
  193. package/dist/public-types.d.ts.map +1 -1
  194. package/dist/renderer/MarkdownRenderer.vue.d.ts +11 -9
  195. package/dist/renderer/MarkdownRenderer.vue.d.ts.map +1 -1
  196. package/dist/renderer/index.d.ts +1 -1
  197. package/dist/renderer/index.d.ts.map +1 -1
  198. package/dist/renderer/markdown.d.ts +3 -2
  199. package/dist/renderer/markdown.d.ts.map +1 -1
  200. package/dist/renderer.css +1 -1
  201. package/dist/renderer.d.ts +1 -0
  202. package/dist/renderer.js +509 -484
  203. package/dist/toolbar/config.d.ts +2 -2
  204. package/dist/toolbar/config.d.ts.map +1 -1
  205. package/dist/toolbar/index.d.ts.map +1 -1
  206. package/dist/toolbar.d.ts +1 -0
  207. package/dist/use-markdown-editor.d.ts +3 -3
  208. package/dist/use-markdown-editor.d.ts.map +1 -1
  209. package/dist/version.d.ts +1 -1
  210. package/package.json +104 -105
package/dist/index.js CHANGED
@@ -1,78 +1,79 @@
1
- import { Lang as vl, configure as bl, getConfig as fl, subscribeConfigure as kl } from "./configure.js";
2
- import { cn as hl } from "./classname.js";
3
- import { getMarkdownEditorMessages as lt } from "./i18n.js";
4
- import { markdownEditorMessages as Cl } from "./i18n.js";
5
- import { n as ot, v as ke, t as nt, r as it, o as st, p as rt } from "./markup-commands-DW5NFQUO.js";
6
- import { A as pl, E as xl, a as Ll, b as Bl, c as Tl, L as El, L as $l, M as Hl, e as Vl, f as Sl, P as Al, g as Pl, S as zl, h as Fl, i as Nl, j as Dl, k as Rl, W as Il, l as ql, m as Ol, s as jl, q as Ul, u as Wl } from "./markup-commands-DW5NFQUO.js";
7
- import { c4 as dt, c5 as ut, c6 as mt, c7 as ct, c8 as gt } from "./base-BOV5nzwj.js";
8
- import { B as Gl, g as Kl, h as Yl, i as Zl, k as Xl, n as Jl, C as _l, o as eo, p as to, q as ao, r as lo, D as oo, E as no, G as io, H as so, u as ro, v as uo, w as mo, x as co, y as go, z as vo, I as bo, A as fo, J as ko, L as wo, K as ho, M as yo, P as Co, Q as Mo, R as po, S as xo, T as Lo, U as Bo, V as To, X as Eo, Y as $o, c9 as Ho, Z as Vo, _ as So, $ as Ao, a0 as Po, a1 as zo, a2 as Fo, a3 as No, a4 as Do, a5 as Ro, a6 as Io, ca as qo, cb as Oo, cc as jo, cd as Uo, c as Wo, ce as Qo, ac as Go, ad as Ko, af as Yo, a as Zo, b as Xo, ak as Jo, d as _o, e as en, f as tn, an, ao as ln, ap as on, aq as nn, ar as sn, cf as rn, cg as dn, ch as un, ci as mn, cj as cn, as as gn, at as vn, au as bn, av as fn, aw as kn, ax as wn, ay as hn, az as yn, aA as Cn, aB as Mn, aC as pn, aD as xn, aF as Ln, aG as Bn, aI as Tn, aJ as En, ck as $n, aN as Hn, aP as Vn, aT as Sn, aU as An, aV as Pn, aW as zn, aX as Fn, aY as Nn, j as Dn, l as Rn, a_ as In, a$ as qn, m as On, b7 as jn, b8 as Un, bd as Wn, be as Qn, bh as Gn, bi as Kn, bl as Yn, bn as Zn, bo as Xn, bp as Jn, bz as _n, bA as ei, bB as ti, bC as ai, bD as li, s as oi, bE as ni, bF as ii, bL as si, t as ri, bN as di, bO as ui, bQ as mi, bR as ci, bS as gi, bT as vi, bU as bi, bV as fi, bX as ki, bY as wi, b$ as hi, c0 as yi, c1 as Ci } from "./base-BOV5nzwj.js";
9
- import { defineComponent as ne, openBlock as i, createElementBlock as m, ref as y, Fragment as z, renderList as J, unref as d, withModifiers as h, createElementVNode as g, normalizeStyle as $e, toDisplayString as H, createCommentVNode as $, createVNode as C, createStaticVNode as vt, renderSlot as we, onBeforeUnmount as he, nextTick as oe, getCurrentInstance as Se, computed as He, watch as ae, onMounted as bt, createBlock as le, withCtx as ft, normalizeProps as kt, guardReactiveProps as wt, Teleport as ht, normalizeClass as yt, readonly as ue } from "vue";
10
- import { d as Ct, t as Mt, e as pt } from "./background-color-DJ1tENTK.js";
11
- import { t as xt, a as Lt, b as Bt } from "./color-DYgeN76h.js";
12
- import { _ as ie } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
- import { getToolbarConfig as Tt, isToolbarItemEnabled as N, isToolbarItemActive as X, normalizeToolbarItem as Et, isToolbarItemAvailable as $t } from "./toolbar.js";
14
- import { commonmarkToolbarConfig as pi, createToolbarConfig as xi, createToolbarGroup as Li, createToolbarItem as Bi, defaultToolbarConfig as Ti, fullToolbarConfig as Ei, markdownEditorToolbarItemIds as $i, minimalToolbarConfig as Hi, zeroToolbarConfig as Vi } from "./toolbar.js";
15
- import { a as Ht, M as Vt } from "./MarkdownEditorLinkForm-nx1gDLpK.js";
16
- import { _ as Ai, b as Pi } from "./MarkdownEditorLinkForm-nx1gDLpK.js";
17
- import { C as Fi, D as Ni, F as Di, Z as Ri } from "./full-s-sYdwp2.js";
18
- import { C as qi, F as Oi } from "./full-specs-Cm3QffD5.js";
19
- import { B as Ui, a as Wi, b as Qi, c as Gi, d as Ki, C as Yi, e as Zi, f as Xi, D as Ji, g as _i, h as es, H as ts, i as as, I as ls, j as os, L as ns, k as is, T as ss, l as rs, m as ds, n as us, o as ms, r as cs, v as gs, y as vs, M as bs, O as fs, R as ks, S as ws, W as hs, Z as ys } from "./heading-specs-Dnjn5FYs.js";
20
- const St = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M2.47 4.72a.75.75 0 0 0 0 1.06l3 3a.75.75 0 0 0 1.06-1.06L4.81 6H9a3.25 3.25 0 0 1 0 6.5H8A.75.75 0 0 0 8 14h1a4.75 4.75 0 1 0 0-9.5H4.81l1.72-1.72a.75.75 0 0 0-1.06-1.06z" clip-rule="evenodd"/></svg>
21
- `, At = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M13.53 4.72a.75.75 0 0 1 0 1.06l-3 3a.75.75 0 1 1-1.06-1.06L11.19 6H7a3.25 3.25 0 0 0 0 6.5h1A.75.75 0 0 1 8 14H7a4.75 4.75 0 1 1 0-9.5h4.19L9.47 2.78a.75.75 0 0 1 1.06-1.06z" clip-rule="evenodd"/></svg>
22
- `, Pt = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M4.25 2.25A.75.75 0 0 0 3.5 3v10c0 .414.336.75.75.75H9.5a3.25 3.25 0 0 0 1.477-6.146A3.25 3.25 0 0 0 8.5 2.25zm3.5 5a1.75 1.75 0 1 0 0-3.5h-2v3.5zm-2 1.5v3.5h3a1.75 1.75 0 1 0 0-3.5z" clip-rule="evenodd"/></svg>
23
- `, zt = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M2.5 5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5m3.25-2a.75.75 0 0 0 0 1.5h8.5a.75.75 0 0 0 0-1.5zm0 8.5a.75.75 0 0 0 0 1.5h8.5a.75.75 0 0 0 0-1.5zM5 8a.75.75 0 0 1 .75-.75h8.5a.75.75 0 0 1 0 1.5h-8.5A.75.75 0 0 1 5 8M3.75 8a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0M2.5 13.5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5" clip-rule="evenodd"/></svg>
24
- `, Ft = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M2.97 5.47a.75.75 0 0 1 1.06 0L8 9.44l3.97-3.97a.75.75 0 1 1 1.06 1.06l-4.5 4.5a.75.75 0 0 1-1.06 0l-4.5-4.5a.75.75 0 0 1 0-1.06" clip-rule="evenodd"/></svg>
25
- `, Nt = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M10.218 3.216a.75.75 0 0 0-1.436-.431l-3 10a.75.75 0 0 0 1.436.43zM4.53 4.97a.75.75 0 0 1 0 1.06L2.56 8l1.97 1.97a.75.75 0 0 1-1.06 1.06l-2.5-2.5a.75.75 0 0 1 0-1.06l2.5-2.5a.75.75 0 0 1 1.06 0m6.94 6.06a.75.75 0 0 1 0-1.06L13.44 8l-1.97-1.97a.75.75 0 0 1 1.06-1.06l2.5 2.5a.75.75 0 0 1 0 1.06l-2.5 2.5a.75.75 0 0 1-1.06 0" clip-rule="evenodd"/></svg>
26
- `, Dt = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><g clip-path="url(#a)"><path fill="currentColor" fill-rule="evenodd" d="M4.312 4.29a.764.764 0 0 1 1.103-.62.75.75 0 1 0 .67-1.34 2.264 2.264 0 0 0-3.268 1.836L2.706 5.5H1.75a.75.75 0 0 0 0 1.5h.83l-.392 4.71a.764.764 0 0 1-1.103.62.75.75 0 0 0-.67 1.34 2.264 2.264 0 0 0 3.268-1.836L4.086 7H5.25a.75.75 0 1 0 0-1.5H4.21zm6.014 2.23a.75.75 0 0 0-1.152.96l.85 1.02-.85 1.02a.75.75 0 0 0 1.152.96L11 9.672l.674.808a.75.75 0 0 0 1.152-.96l-.85-1.02.85-1.02a.75.75 0 0 0-1.152-.96L11 7.328zM8.02 4.55a.75.75 0 0 1 .43.969l-.145.378a7.25 7.25 0 0 0 0 5.205l.145.378a.75.75 0 0 1-1.4.539l-.145-.378a8.75 8.75 0 0 1 0-6.282l.145-.378a.75.75 0 0 1 .97-.431m5.961 0a.75.75 0 0 1 .97.43l.145.379a8.75 8.75 0 0 1 0 6.282l-.146.378a.75.75 0 1 1-1.4-.538l.146-.379a7.25 7.25 0 0 0 0-5.205l-.146-.378a.75.75 0 0 1 .431-.97" clip-rule="evenodd"/></g><defs><clipPath id="a"><path fill="currentColor" d="M0 0h16v16H0z"/></clipPath></defs></svg>
27
- `, Rt = `<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16" class="g-icon" fill="currentColor" stroke="none" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M7.199 2H8.8a.2.2 0 0 1 .2.2c0 1.808 1.958 2.939 3.524 2.034a.2.2 0 0 1 .271.073l.802 1.388a.2.2 0 0 1-.073.272c-1.566.904-1.566 3.164 0 4.069a.2.2 0 0 1 .073.271l-.802 1.388a.2.2 0 0 1-.271.073C10.958 10.863 9 11.993 9 13.8a.2.2 0 0 1-.199.2H7.2a.2.2 0 0 1-.2-.2c0-1.808-1.958-2.938-3.524-2.034a.2.2 0 0 1-.272-.073l-.8-1.388a.2.2 0 0 1 .072-.271c1.566-.905 1.566-3.165 0-4.07a.2.2 0 0 1-.073-.27l.801-1.389a.2.2 0 0 1 .272-.072C5.042 5.138 7 4.007 7 2.199c0-.11.089-.199.199-.199M5.5 2.2c0-.94.76-1.7 1.699-1.7H8.8c.94 0 1.7.76 1.7 1.7a.85.85 0 0 0 1.274.735 1.7 1.7 0 0 1 2.32.622l.802 1.388c.469.813.19 1.851-.622 2.32a.85.85 0 0 0 0 1.472 1.7 1.7 0 0 1 .622 2.32l-.802 1.388a1.7 1.7 0 0 1-2.32.622.85.85 0 0 0-1.274.735c0 .939-.76 1.7-1.699 1.7H7.2a1.7 1.7 0 0 1-1.699-1.7.85.85 0 0 0-1.274-.735 1.7 1.7 0 0 1-2.32-.622l-.802-1.388a1.7 1.7 0 0 1 .622-2.32.85.85 0 0 0 0-1.471 1.7 1.7 0 0 1-.622-2.32l.801-1.389a1.7 1.7 0 0 1 2.32-.622A.85.85 0 0 0 5.5 2.2m4 5.8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 1 1 3 0M11 8a3 3 0 1 1-6 0 3 3 0 0 1 6 0" clip-rule="evenodd"></path></svg></svg>
28
- `, It = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M1.75 8a.75.75 0 0 1 .75-.75h11a.75.75 0 0 1 0 1.5h-11A.75.75 0 0 1 1.75 8" clip-rule="evenodd"/></svg>
29
- `, qt = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M11.5 3h-7A1.5 1.5 0 0 0 3 4.5v5.027l.962-.7a1.75 1.75 0 0 1 2.079.016l.928.696 2.368-2.03a1.75 1.75 0 0 1 2.325.043L13 8.787V4.5A1.5 1.5 0 0 0 11.5 3m3 7.498V4.5a3 3 0 0 0-3-3h-7a3 3 0 0 0-3 3v7a3 3 0 0 0 3 3h7a3 3 0 0 0 3-3zm-1.5.33-2.355-2.174a.25.25 0 0 0-.332-.006L7.488 11.07l-.457.392-.481-.361-1.41-1.057a.25.25 0 0 0-.296-.002L3 11.381v.119A1.5 1.5 0 0 0 4.5 13h7a1.5 1.5 0 0 0 1.5-1.5zM7.5 6a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0" clip-rule="evenodd"/></svg>
30
- `, Ot = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M7.25 2a.75.75 0 0 0 0 1.5h1.317l-2.7 9H4.25a.75.75 0 1 0 0 1.5h4.5a.75.75 0 0 0 0-1.5H7.433l2.7-9h1.617a.75.75 0 0 0 0-1.5z" clip-rule="evenodd"/></svg>
31
- `, jt = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M3.47 6.53a.75.75 0 0 1 1.06 1.061l-.727.727a2.743 2.743 0 0 0 3.879 3.879l.727-.727a.75.75 0 0 1 1.06 1.06l-.726.727a4.243 4.243 0 0 1-6-6zm8 1.879a.75.75 0 0 0 1.06 1.06l.727-.726a4.243 4.243 0 0 0-6-6l-.727.727a.75.75 0 0 0 1.061 1.06l.727-.727a2.743 2.743 0 0 1 3.879 3.879zm-.94-1.879a.75.75 0 1 0-1.06-1.06l-4 4a.75.75 0 1 0 1.06 1.06z" clip-rule="evenodd"/></svg>
32
- `, Ut = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5">
1
+ import { Lang as Ll, configure as Bl, getConfig as Tl, subscribeConfigure as El } from "./configure.js";
2
+ import { cn as Hl } from "./classname.js";
3
+ import { getMarkdownEditorMessages as nt } from "./i18n.js";
4
+ import { markdownEditorMessages as Al } from "./i18n.js";
5
+ import { n as it, w as ye, r as rt, u as st, t as dt, o as ut, p as mt } from "./markup-commands-C-IL6Ajf.js";
6
+ import { A as Pl, E as zl, a as Fl, b as Nl, c as Dl, L as Rl, L as Il, M as Ol, e as ql, f as jl, P as Ul, g as Wl, S as Kl, h as Ql, i as Gl, j as Yl, k as Zl, W as Xl, l as Jl, m as _l, s as eo, q as to, v as ao } from "./markup-commands-C-IL6Ajf.js";
7
+ import { c4 as ct, c5 as gt, c6 as vt, c7 as ft, c8 as bt } from "./base-B5Cf0K33.js";
8
+ import { B as oo, g as no, h as io, i as ro, k as so, n as uo, C as mo, o as co, p as go, q as vo, r as fo, D as bo, E as ko, G as wo, H as ho, u as yo, v as Co, w as Mo, x as po, y as xo, z as Lo, I as Bo, A as To, J as Eo, L as $o, K as Ho, M as Vo, P as Ao, Q as So, R as Po, S as zo, T as Fo, U as No, V as Do, X as Ro, Y as Io, c9 as Oo, Z as qo, _ as jo, $ as Uo, a0 as Wo, a1 as Ko, a2 as Qo, a3 as Go, a4 as Yo, a5 as Zo, a6 as Xo, ca as Jo, cb as _o, cc as en, cd as tn, c as an, ce as ln, ac as on, ad as nn, af as rn, a as sn, b as dn, ak as un, d as mn, e as cn, f as gn, an as vn, ao as fn, ap as bn, aq as kn, ar as wn, cf as hn, cg as yn, ch as Cn, ci as Mn, cj as pn, as as xn, at as Ln, au as Bn, av as Tn, aw as En, ax as $n, ay as Hn, az as Vn, aA as An, aB as Sn, aC as Pn, aD as zn, aF as Fn, aG as Nn, aI as Dn, aJ as Rn, ck as In, aN as On, aP as qn, aT as jn, aU as Un, aV as Wn, aW as Kn, aX as Qn, aY as Gn, j as Yn, l as Zn, a_ as Xn, a$ as Jn, m as _n, b7 as ei, b8 as ti, bd as ai, be as li, bh as oi, bi as ni, bl as ii, bn as ri, bo as si, bp as di, bz as ui, bA as mi, bB as ci, bC as gi, bD as vi, s as fi, bE as bi, bF as ki, bL as wi, t as hi, bN as yi, bO as Ci, bQ as Mi, bR as pi, bS as xi, bT as Li, bU as Bi, bV as Ti, bX as Ei, bY as $i, b$ as Hi, c0 as Vi, c1 as Ai } from "./base-B5Cf0K33.js";
9
+ import { defineComponent as re, openBlock as r, createElementBlock as d, ref as M, Fragment as S, renderList as j, unref as u, withModifiers as k, createElementVNode as g, normalizeStyle as Ve, toDisplayString as V, createCommentVNode as $, createVNode as p, createStaticVNode as kt, computed as ge, withDirectives as wt, createBlock as ee, resolveDynamicComponent as ht, vShow as yt, renderSlot as Ce, onBeforeUnmount as Me, nextTick as ie, getCurrentInstance as Se, watch as ne, onMounted as Ct, withCtx as Mt, normalizeProps as pt, guardReactiveProps as xt, Teleport as Lt, normalizeClass as Bt, readonly as ce } from "vue";
10
+ import { d as Tt, t as Et, e as $t } from "./background-color-DJ1tENTK.js";
11
+ import { t as Ht, a as Vt, b as At } from "./color-DYgeN76h.js";
12
+ import { _ as se } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
+ import { getToolbarConfig as St, isToolbarItemEnabled as N, isToolbarItemActive as _, normalizeToolbarItem as Pt, isToolbarItemAvailable as zt } from "./toolbar.js";
14
+ import { commonmarkToolbarConfig as Pi, createToolbarConfig as zi, createToolbarGroup as Fi, createToolbarItem as Ni, defaultToolbarConfig as Di, fullToolbarConfig as Ri, markdownEditorToolbarItemIds as Ii, minimalToolbarConfig as Oi, zeroToolbarConfig as qi } from "./toolbar.js";
15
+ import { a as Ft, M as Nt } from "./MarkdownEditorLinkForm-BAIb4QJp.js";
16
+ import { _ as Ui, b as Wi } from "./MarkdownEditorLinkForm-BAIb4QJp.js";
17
+ import { n as Dt } from "./directives-CqalziGj.js";
18
+ import { C as Qi, D as Gi, F as Yi, Z as Zi } from "./full-DakJ7Z5o.js";
19
+ import { C as Ji, F as _i } from "./full-specs-CE16SWE6.js";
20
+ import { B as tr, a as ar, b as lr, c as or, d as nr, C as ir, e as rr, f as sr, D as dr, g as ur, h as mr, H as cr, i as gr, I as vr, j as fr, L as br, k as kr, T as wr, l as hr, m as yr, n as Cr, o as Mr, r as pr, v as xr, y as Lr, M as Br, O as Tr, R as Er, S as $r, W as Hr, Z as Vr } from "./heading-specs-Dnjn5FYs.js";
21
+ const Rt = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M2.47 4.72a.75.75 0 0 0 0 1.06l3 3a.75.75 0 0 0 1.06-1.06L4.81 6H9a3.25 3.25 0 0 1 0 6.5H8A.75.75 0 0 0 8 14h1a4.75 4.75 0 1 0 0-9.5H4.81l1.72-1.72a.75.75 0 0 0-1.06-1.06z" clip-rule="evenodd"/></svg>
22
+ `, It = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M13.53 4.72a.75.75 0 0 1 0 1.06l-3 3a.75.75 0 1 1-1.06-1.06L11.19 6H7a3.25 3.25 0 0 0 0 6.5h1A.75.75 0 0 1 8 14H7a4.75 4.75 0 1 1 0-9.5h4.19L9.47 2.78a.75.75 0 0 1 1.06-1.06z" clip-rule="evenodd"/></svg>
23
+ `, Ot = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M4.25 2.25A.75.75 0 0 0 3.5 3v10c0 .414.336.75.75.75H9.5a3.25 3.25 0 0 0 1.477-6.146A3.25 3.25 0 0 0 8.5 2.25zm3.5 5a1.75 1.75 0 1 0 0-3.5h-2v3.5zm-2 1.5v3.5h3a1.75 1.75 0 1 0 0-3.5z" clip-rule="evenodd"/></svg>
24
+ `, qt = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M2.5 5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5m3.25-2a.75.75 0 0 0 0 1.5h8.5a.75.75 0 0 0 0-1.5zm0 8.5a.75.75 0 0 0 0 1.5h8.5a.75.75 0 0 0 0-1.5zM5 8a.75.75 0 0 1 .75-.75h8.5a.75.75 0 0 1 0 1.5h-8.5A.75.75 0 0 1 5 8M3.75 8a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0M2.5 13.5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5" clip-rule="evenodd"/></svg>
25
+ `, jt = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M2.97 5.47a.75.75 0 0 1 1.06 0L8 9.44l3.97-3.97a.75.75 0 1 1 1.06 1.06l-4.5 4.5a.75.75 0 0 1-1.06 0l-4.5-4.5a.75.75 0 0 1 0-1.06" clip-rule="evenodd"/></svg>
26
+ `, Ut = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M10.218 3.216a.75.75 0 0 0-1.436-.431l-3 10a.75.75 0 0 0 1.436.43zM4.53 4.97a.75.75 0 0 1 0 1.06L2.56 8l1.97 1.97a.75.75 0 0 1-1.06 1.06l-2.5-2.5a.75.75 0 0 1 0-1.06l2.5-2.5a.75.75 0 0 1 1.06 0m6.94 6.06a.75.75 0 0 1 0-1.06L13.44 8l-1.97-1.97a.75.75 0 0 1 1.06-1.06l2.5 2.5a.75.75 0 0 1 0 1.06l-2.5 2.5a.75.75 0 0 1-1.06 0" clip-rule="evenodd"/></svg>
27
+ `, Wt = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><g clip-path="url(#a)"><path fill="currentColor" fill-rule="evenodd" d="M4.312 4.29a.764.764 0 0 1 1.103-.62.75.75 0 1 0 .67-1.34 2.264 2.264 0 0 0-3.268 1.836L2.706 5.5H1.75a.75.75 0 0 0 0 1.5h.83l-.392 4.71a.764.764 0 0 1-1.103.62.75.75 0 0 0-.67 1.34 2.264 2.264 0 0 0 3.268-1.836L4.086 7H5.25a.75.75 0 1 0 0-1.5H4.21zm6.014 2.23a.75.75 0 0 0-1.152.96l.85 1.02-.85 1.02a.75.75 0 0 0 1.152.96L11 9.672l.674.808a.75.75 0 0 0 1.152-.96l-.85-1.02.85-1.02a.75.75 0 0 0-1.152-.96L11 7.328zM8.02 4.55a.75.75 0 0 1 .43.969l-.145.378a7.25 7.25 0 0 0 0 5.205l.145.378a.75.75 0 0 1-1.4.539l-.145-.378a8.75 8.75 0 0 1 0-6.282l.145-.378a.75.75 0 0 1 .97-.431m5.961 0a.75.75 0 0 1 .97.43l.145.379a8.75 8.75 0 0 1 0 6.282l-.146.378a.75.75 0 1 1-1.4-.538l.146-.379a7.25 7.25 0 0 0 0-5.205l-.146-.378a.75.75 0 0 1 .431-.97" clip-rule="evenodd"/></g><defs><clipPath id="a"><path fill="currentColor" d="M0 0h16v16H0z"/></clipPath></defs></svg>
28
+ `, Kt = `<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16" class="g-icon" fill="currentColor" stroke="none" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M7.199 2H8.8a.2.2 0 0 1 .2.2c0 1.808 1.958 2.939 3.524 2.034a.2.2 0 0 1 .271.073l.802 1.388a.2.2 0 0 1-.073.272c-1.566.904-1.566 3.164 0 4.069a.2.2 0 0 1 .073.271l-.802 1.388a.2.2 0 0 1-.271.073C10.958 10.863 9 11.993 9 13.8a.2.2 0 0 1-.199.2H7.2a.2.2 0 0 1-.2-.2c0-1.808-1.958-2.938-3.524-2.034a.2.2 0 0 1-.272-.073l-.8-1.388a.2.2 0 0 1 .072-.271c1.566-.905 1.566-3.165 0-4.07a.2.2 0 0 1-.073-.27l.801-1.389a.2.2 0 0 1 .272-.072C5.042 5.138 7 4.007 7 2.199c0-.11.089-.199.199-.199M5.5 2.2c0-.94.76-1.7 1.699-1.7H8.8c.94 0 1.7.76 1.7 1.7a.85.85 0 0 0 1.274.735 1.7 1.7 0 0 1 2.32.622l.802 1.388c.469.813.19 1.851-.622 2.32a.85.85 0 0 0 0 1.472 1.7 1.7 0 0 1 .622 2.32l-.802 1.388a1.7 1.7 0 0 1-2.32.622.85.85 0 0 0-1.274.735c0 .939-.76 1.7-1.699 1.7H7.2a1.7 1.7 0 0 1-1.699-1.7.85.85 0 0 0-1.274-.735 1.7 1.7 0 0 1-2.32-.622l-.802-1.388a1.7 1.7 0 0 1 .622-2.32.85.85 0 0 0 0-1.471 1.7 1.7 0 0 1-.622-2.32l.801-1.389a1.7 1.7 0 0 1 2.32-.622A.85.85 0 0 0 5.5 2.2m4 5.8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 1 1 3 0M11 8a3 3 0 1 1-6 0 3 3 0 0 1 6 0" clip-rule="evenodd"></path></svg></svg>
29
+ `, Qt = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M1.75 8a.75.75 0 0 1 .75-.75h11a.75.75 0 0 1 0 1.5h-11A.75.75 0 0 1 1.75 8" clip-rule="evenodd"/></svg>
30
+ `, Gt = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M11.5 3h-7A1.5 1.5 0 0 0 3 4.5v5.027l.962-.7a1.75 1.75 0 0 1 2.079.016l.928.696 2.368-2.03a1.75 1.75 0 0 1 2.325.043L13 8.787V4.5A1.5 1.5 0 0 0 11.5 3m3 7.498V4.5a3 3 0 0 0-3-3h-7a3 3 0 0 0-3 3v7a3 3 0 0 0 3 3h7a3 3 0 0 0 3-3zm-1.5.33-2.355-2.174a.25.25 0 0 0-.332-.006L7.488 11.07l-.457.392-.481-.361-1.41-1.057a.25.25 0 0 0-.296-.002L3 11.381v.119A1.5 1.5 0 0 0 4.5 13h7a1.5 1.5 0 0 0 1.5-1.5zM7.5 6a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0" clip-rule="evenodd"/></svg>
31
+ `, Yt = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M7.25 2a.75.75 0 0 0 0 1.5h1.317l-2.7 9H4.25a.75.75 0 1 0 0 1.5h4.5a.75.75 0 0 0 0-1.5H7.433l2.7-9h1.617a.75.75 0 0 0 0-1.5z" clip-rule="evenodd"/></svg>
32
+ `, Zt = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M3.47 6.53a.75.75 0 0 1 1.06 1.061l-.727.727a2.743 2.743 0 0 0 3.879 3.879l.727-.727a.75.75 0 0 1 1.06 1.06l-.726.727a4.243 4.243 0 0 1-6-6zm8 1.879a.75.75 0 0 0 1.06 1.06l.727-.726a4.243 4.243 0 0 0-6-6l-.727.727a.75.75 0 0 0 1.061 1.06l.727-.727a2.743 2.743 0 0 1 3.879 3.879zm-.94-1.879a.75.75 0 1 0-1.06-1.06l-4 4a.75.75 0 1 0 1.06 1.06z" clip-rule="evenodd"/></svg>
33
+ `, Xt = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5">
33
34
  <rect x="1.5" y="1.5" width="4" height="3" rx=".75"/>
34
35
  <rect x="10.5" y="1.5" width="4" height="3" rx=".75"/>
35
36
  <rect x="6" y="11.5" width="4" height="3" rx=".75"/>
36
37
  <path d="M3.5 4.5v2h4.5v5M12.5 4.5v2H8"/>
37
38
  </svg>
38
- `, Wt = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M3.21 2.5a.5.5 0 0 0-.796-.403l-.71.524a.5.5 0 0 0 .507.856V5a.5.5 0 0 0 1 0zm2.54.5a.75.75 0 1 0 0 1.5h8.5a.75.75 0 0 0 0-1.5zm0 8.5a.75.75 0 0 0 0 1.5h8.5a.75.75 0 0 0 0-1.5zM5 8a.75.75 0 0 1 .75-.75h8.5a.75.75 0 0 1 0 1.5h-8.5A.75.75 0 0 1 5 8m-2.596-.67c-.07.051-.087.097-.09.116a.5.5 0 0 1-.988-.149c.051-.345.26-.61.495-.779.236-.169.531-.268.83-.268.345 0 .666.109.902.343s.337.543.337.85c0 .51-.321.855-.76 1.278l-.02.018-.013.011h.493a.5.5 0 0 1 0 1H1.75a.5.5 0 0 1-.326-.879l1.022-.88c.223-.216.338-.344.398-.434.046-.069.046-.092.046-.111v-.002c0-.09-.027-.127-.041-.141-.013-.013-.062-.053-.199-.053a.44.44 0 0 0-.246.08M1.9 10.5a.5.5 0 0 0 0 1h.38l-.15.18a.5.5 0 0 0 .383.82c.259 0 .365.077.407.122.051.054.08.133.08.218a.02.02 0 0 1-.004.014.2.2 0 0 1-.057.052.7.7 0 0 1-.371.094.55.55 0 0 1-.258-.057c-.059-.032-.075-.061-.076-.064a.5.5 0 0 0-.91.416c.213.464.728.705 1.244.705.319 0 .651-.082.92-.258.275-.181.512-.487.512-.902 0-.293-.096-.634-.355-.906a1.3 1.3 0 0 0-.252-.206l.34-.407a.5.5 0 0 0-.383-.821z" clip-rule="evenodd"/></svg>
39
- `, Qt = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><g clip-path="url(#a)"><path fill="currentColor" fill-rule="evenodd" d="M12.411 6.33A2.75 2.75 0 0 1 14.5 9v.25A2.75 2.75 0 0 1 11.75 12h-.25a2.747 2.747 0 0 1-2.748-2.657V9.34H8.75V9q0-.197.027-.386.03-.392.09-.77a8 8 0 0 1 .559-1.918 7.2 7.2 0 0 1 2.162-2.801l.098-.076A.24.24 0 0 1 11.83 3c.186 0 .306.202.22.367a19 19 0 0 0-.22.433 18 18 0 0 0-.43.951 14 14 0 0 0-.557 1.578l.054-.013a2.8 2.8 0 0 1 .603-.066h.25q.343.001.661.08m.549-1.405A4.25 4.25 0 0 1 16 9v.25a4.25 4.25 0 0 1-4.25 4.25h-.25A4.25 4.25 0 0 1 8 11.662 4.25 4.25 0 0 1 4.5 13.5h-.25A4.25 4.25 0 0 1 0 9.336V9q0-.275.035-.543c.207-2.62 1.358-4.966 3.488-6.599A1.74 1.74 0 0 1 4.58 1.5c1.341 0 2.146 1.425 1.548 2.564-.111.211-.26.508-.418.86.788.234 1.481.69 2.005 1.297a8.76 8.76 0 0 1 3.058-4.363A1.74 1.74 0 0 1 11.83 1.5c1.341 0 2.146 1.425 1.548 2.564-.111.211-.26.508-.418.86M5.16 6.33a2.8 2.8 0 0 0-.661-.08h-.25a2.8 2.8 0 0 0-.657.079 14 14 0 0 1 .68-1.865A18 18 0 0 1 4.8 3.367.25.25 0 0 0 4.58 3a.24.24 0 0 0-.144.049 8 8 0 0 0-.93.844 7.2 7.2 0 0 0-1.39 2.172 8 8 0 0 0-.498 1.779q-.062.378-.091.77A3 3 0 0 0 1.5 9v.339h.001v.004A2.747 2.747 0 0 0 4.25 12h.251a2.75 2.75 0 0 0 2.75-2.75V9c0-1.29-.89-2.374-2.089-2.67" clip-rule="evenodd"/></g><defs><clipPath id="a"><path fill="currentColor" d="M0 0h16v16H0z"/></clipPath></defs></svg>
40
- `, Gt = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M5.502 2.757C6.214 2.236 7.122 2 7.984 2c1.685 0 3.015.572 3.687 1.915a.75.75 0 1 1-1.342.67C10.001 3.93 9.331 3.5 7.984 3.5c-.611 0-1.19.17-1.597.468-.384.28-.627.678-.627 1.242 0 .403.165.758.463 1.04H4.447a2.9 2.9 0 0 1-.187-1.04c0-1.084.507-1.916 1.242-2.453m6.047 5.993h1.201a.75.75 0 0 0 0-1.5h-9.5a.75.75 0 0 0 0 1.5h5.475l.043.012h.002c1.196.323 1.98 1.005 1.98 1.988 0 .669-.289 1.063-.742 1.33-.5.296-1.222.437-2 .437-1.398 0-2.453-.472-2.796-1.504a.75.75 0 1 0-1.424.474c.657 1.969 2.602 2.53 4.22 2.53.915 0 1.94-.16 2.762-.644.869-.512 1.48-1.376 1.48-2.623 0-.822-.276-1.481-.7-2" clip-rule="evenodd"/></svg>
41
- `, Kt = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M9.25 3.5h-2.5v2h2.5zM4 3.5h1.25v2H2.5V5A1.5 1.5 0 0 1 4 3.5M2.5 7h2.75v2H2.5zm0 3.5v.5A1.5 1.5 0 0 0 4 12.5h1.25v-2zm4.25 0v2h2.5v-2zm4 0v2H12a1.5 1.5 0 0 0 1.5-1.5v-.5zM13.5 9h-2.75V7h2.75zM9.25 9h-2.5V7h2.5zm1.5-5.5v2h2.75V5A1.5 1.5 0 0 0 12 3.5zM4 2a3 3 0 0 0-3 3v6a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V5a3 3 0 0 0-3-3z" clip-rule="evenodd"/></svg>
42
- `, Yt = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M5 2.75a.75.75 0 0 0-1.5 0V7a4.5 4.5 0 0 0 9 0V2.75a.75.75 0 0 0-1.5 0V7a3 3 0 0 1-6 0zm-.75 9.75a.75.75 0 0 0 0 1.5h7.5a.75.75 0 0 0 0-1.5z" clip-rule="evenodd"/></svg>
43
- `, Zt = ["innerHTML"], Xt = /* @__PURE__ */ ne({
39
+ `, Jt = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M3.21 2.5a.5.5 0 0 0-.796-.403l-.71.524a.5.5 0 0 0 .507.856V5a.5.5 0 0 0 1 0zm2.54.5a.75.75 0 1 0 0 1.5h8.5a.75.75 0 0 0 0-1.5zm0 8.5a.75.75 0 0 0 0 1.5h8.5a.75.75 0 0 0 0-1.5zM5 8a.75.75 0 0 1 .75-.75h8.5a.75.75 0 0 1 0 1.5h-8.5A.75.75 0 0 1 5 8m-2.596-.67c-.07.051-.087.097-.09.116a.5.5 0 0 1-.988-.149c.051-.345.26-.61.495-.779.236-.169.531-.268.83-.268.345 0 .666.109.902.343s.337.543.337.85c0 .51-.321.855-.76 1.278l-.02.018-.013.011h.493a.5.5 0 0 1 0 1H1.75a.5.5 0 0 1-.326-.879l1.022-.88c.223-.216.338-.344.398-.434.046-.069.046-.092.046-.111v-.002c0-.09-.027-.127-.041-.141-.013-.013-.062-.053-.199-.053a.44.44 0 0 0-.246.08M1.9 10.5a.5.5 0 0 0 0 1h.38l-.15.18a.5.5 0 0 0 .383.82c.259 0 .365.077.407.122.051.054.08.133.08.218a.02.02 0 0 1-.004.014.2.2 0 0 1-.057.052.7.7 0 0 1-.371.094.55.55 0 0 1-.258-.057c-.059-.032-.075-.061-.076-.064a.5.5 0 0 0-.91.416c.213.464.728.705 1.244.705.319 0 .651-.082.92-.258.275-.181.512-.487.512-.902 0-.293-.096-.634-.355-.906a1.3 1.3 0 0 0-.252-.206l.34-.407a.5.5 0 0 0-.383-.821z" clip-rule="evenodd"/></svg>
40
+ `, _t = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><g clip-path="url(#a)"><path fill="currentColor" fill-rule="evenodd" d="M12.411 6.33A2.75 2.75 0 0 1 14.5 9v.25A2.75 2.75 0 0 1 11.75 12h-.25a2.747 2.747 0 0 1-2.748-2.657V9.34H8.75V9q0-.197.027-.386.03-.392.09-.77a8 8 0 0 1 .559-1.918 7.2 7.2 0 0 1 2.162-2.801l.098-.076A.24.24 0 0 1 11.83 3c.186 0 .306.202.22.367a19 19 0 0 0-.22.433 18 18 0 0 0-.43.951 14 14 0 0 0-.557 1.578l.054-.013a2.8 2.8 0 0 1 .603-.066h.25q.343.001.661.08m.549-1.405A4.25 4.25 0 0 1 16 9v.25a4.25 4.25 0 0 1-4.25 4.25h-.25A4.25 4.25 0 0 1 8 11.662 4.25 4.25 0 0 1 4.5 13.5h-.25A4.25 4.25 0 0 1 0 9.336V9q0-.275.035-.543c.207-2.62 1.358-4.966 3.488-6.599A1.74 1.74 0 0 1 4.58 1.5c1.341 0 2.146 1.425 1.548 2.564-.111.211-.26.508-.418.86.788.234 1.481.69 2.005 1.297a8.76 8.76 0 0 1 3.058-4.363A1.74 1.74 0 0 1 11.83 1.5c1.341 0 2.146 1.425 1.548 2.564-.111.211-.26.508-.418.86M5.16 6.33a2.8 2.8 0 0 0-.661-.08h-.25a2.8 2.8 0 0 0-.657.079 14 14 0 0 1 .68-1.865A18 18 0 0 1 4.8 3.367.25.25 0 0 0 4.58 3a.24.24 0 0 0-.144.049 8 8 0 0 0-.93.844 7.2 7.2 0 0 0-1.39 2.172 8 8 0 0 0-.498 1.779q-.062.378-.091.77A3 3 0 0 0 1.5 9v.339h.001v.004A2.747 2.747 0 0 0 4.25 12h.251a2.75 2.75 0 0 0 2.75-2.75V9c0-1.29-.89-2.374-2.089-2.67" clip-rule="evenodd"/></g><defs><clipPath id="a"><path fill="currentColor" d="M0 0h16v16H0z"/></clipPath></defs></svg>
41
+ `, ea = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M5.502 2.757C6.214 2.236 7.122 2 7.984 2c1.685 0 3.015.572 3.687 1.915a.75.75 0 1 1-1.342.67C10.001 3.93 9.331 3.5 7.984 3.5c-.611 0-1.19.17-1.597.468-.384.28-.627.678-.627 1.242 0 .403.165.758.463 1.04H4.447a2.9 2.9 0 0 1-.187-1.04c0-1.084.507-1.916 1.242-2.453m6.047 5.993h1.201a.75.75 0 0 0 0-1.5h-9.5a.75.75 0 0 0 0 1.5h5.475l.043.012h.002c1.196.323 1.98 1.005 1.98 1.988 0 .669-.289 1.063-.742 1.33-.5.296-1.222.437-2 .437-1.398 0-2.453-.472-2.796-1.504a.75.75 0 1 0-1.424.474c.657 1.969 2.602 2.53 4.22 2.53.915 0 1.94-.16 2.762-.644.869-.512 1.48-1.376 1.48-2.623 0-.822-.276-1.481-.7-2" clip-rule="evenodd"/></svg>
42
+ `, ta = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M9.25 3.5h-2.5v2h2.5zM4 3.5h1.25v2H2.5V5A1.5 1.5 0 0 1 4 3.5M2.5 7h2.75v2H2.5zm0 3.5v.5A1.5 1.5 0 0 0 4 12.5h1.25v-2zm4.25 0v2h2.5v-2zm4 0v2H12a1.5 1.5 0 0 0 1.5-1.5v-.5zM13.5 9h-2.75V7h2.75zM9.25 9h-2.5V7h2.5zm1.5-5.5v2h2.75V5A1.5 1.5 0 0 0 12 3.5zM4 2a3 3 0 0 0-3 3v6a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V5a3 3 0 0 0-3-3z" clip-rule="evenodd"/></svg>
43
+ `, aa = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M5 2.75a.75.75 0 0 0-1.5 0V7a4.5 4.5 0 0 0 9 0V2.75a.75.75 0 0 0-1.5 0V7a3 3 0 0 1-6 0zm-.75 9.75a.75.75 0 0 0 0 1.5h7.5a.75.75 0 0 0 0-1.5z" clip-rule="evenodd"/></svg>
44
+ `, la = ["innerHTML"], oa = /* @__PURE__ */ re({
44
45
  __name: "MarkdownEditorToolbarIcon",
45
46
  props: {
46
47
  name: {}
47
48
  },
48
49
  setup(e) {
49
- const k = {
50
- arrowLeft: St,
51
- arrowRight: At,
52
- bold: Pt,
53
- bulletList: zt,
54
- chevronDown: Ft,
55
- code: Nt,
56
- function: Dt,
57
- gear: Rt,
58
- horizontalRule: It,
59
- image: qt,
60
- italic: Ot,
61
- link: jt,
62
- mermaid: Ut,
63
- orderedList: Wt,
64
- quote: Qt,
65
- strike: Gt,
66
- table: Kt,
67
- underline: Yt
50
+ const b = {
51
+ arrowLeft: Rt,
52
+ arrowRight: It,
53
+ bold: Ot,
54
+ bulletList: qt,
55
+ chevronDown: jt,
56
+ code: Ut,
57
+ function: Wt,
58
+ gear: Kt,
59
+ horizontalRule: Qt,
60
+ image: Gt,
61
+ italic: Yt,
62
+ link: Zt,
63
+ mermaid: Xt,
64
+ orderedList: Jt,
65
+ quote: _t,
66
+ strike: ea,
67
+ table: ta,
68
+ underline: aa
68
69
  }, x = e;
69
- return (c, w) => (i(), m("span", {
70
+ return (o, w) => (r(), d("span", {
70
71
  class: "markdown-editor__toolbar-icon",
71
72
  "aria-hidden": "true",
72
- innerHTML: k[x.name]
73
- }, null, 8, Zt));
73
+ innerHTML: b[x.name]
74
+ }, null, 8, la));
74
75
  }
75
- }), p = /* @__PURE__ */ ie(Xt, [["__scopeId", "data-v-ded8a15f"]]), Jt = ["data-theme", "aria-label"], _t = ["onClick"], ea = ["data-theme", "aria-label"], ta = ["onClick"], aa = ["data-theme", "aria-label"], la = ["aria-checked"], oa = ["aria-checked"], na = ["data-theme", "aria-label"], ia = ["aria-checked", "onClick"], sa = { class: "markdown-editor__floating-menu-icon" }, ra = ["data-theme", "aria-label"], da = ["data-theme", "aria-label"], ua = ["aria-checked"], ma = ["aria-checked"], ca = ["disabled"], ga = ["disabled"], va = ["data-theme", "aria-label"], ba = ["aria-checked", "onClick"], fa = /* @__PURE__ */ ne({
76
+ }), L = /* @__PURE__ */ se(oa, [["__scopeId", "data-v-c68dd69d"]]), na = ["data-theme", "aria-label"], ia = ["onClick"], ra = ["data-theme", "aria-label"], sa = ["onClick"], da = ["data-theme", "aria-label"], ua = ["aria-checked"], ma = ["aria-checked"], ca = ["data-theme", "aria-label"], ga = ["aria-checked", "onClick"], va = { class: "markdown-editor__floating-menu-icon" }, fa = ["data-theme", "aria-label"], ba = ["data-theme", "aria-label"], ka = ["aria-checked"], wa = ["aria-checked"], ha = ["disabled"], ya = ["disabled"], Ca = ["data-theme", "aria-label"], Ma = ["aria-checked", "onClick"], pa = /* @__PURE__ */ re({
76
77
  __name: "MarkdownEditorFloatingMenus",
77
78
  props: {
78
79
  codeVisible: { type: Boolean },
@@ -89,72 +90,72 @@ const St = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill=
89
90
  translate: { type: Function }
90
91
  },
91
92
  emits: ["code-block", "select-background-color", "select-color", "inline-code", "inline-formula", "math-block", "select-mode", "select-text-style", "bullet-list", "ordered-list", "indent-list", "outdent-list"],
92
- setup(e, { expose: k, emit: x }) {
93
- const c = x, w = y(), u = y(), r = y(), s = y(), a = y(), M = y(), l = y(), v = ["wysiwyg", "markup", "split"];
94
- return k({
95
- getElement(V) {
93
+ setup(e, { expose: b, emit: x }) {
94
+ const o = x, w = M(), m = M(), h = M(), n = M(), C = M(), a = M(), y = M(), l = ["wysiwyg", "markup", "split"];
95
+ return b({
96
+ getElement(c) {
96
97
  return {
97
- "background-color": u.value,
98
+ "background-color": m.value,
98
99
  code: w.value,
99
- color: r.value,
100
- formula: s.value,
101
- heading: a.value,
102
- list: M.value,
103
- mode: l.value
104
- }[V];
100
+ color: h.value,
101
+ formula: n.value,
102
+ heading: C.value,
103
+ list: a.value,
104
+ mode: y.value
105
+ }[c];
105
106
  }
106
- }), (V, o) => (i(), m(z, null, [
107
- e.backgroundColorVisible ? (i(), m("div", {
107
+ }), (c, s) => (r(), d(S, null, [
108
+ e.backgroundColorVisible ? (r(), d("div", {
108
109
  key: 0,
109
110
  ref_key: "backgroundColor",
110
- ref: u,
111
+ ref: m,
111
112
  class: "markdown-editor__floating-menu",
112
113
  "data-theme": e.theme,
113
114
  role: "menu",
114
115
  "aria-label": e.translate("backgroundColor")
115
116
  }, [
116
- (i(!0), m(z, null, J(d(Ct), (b) => (i(), m("button", {
117
- key: b,
117
+ (r(!0), d(S, null, j(u(Tt), (f) => (r(), d("button", {
118
+ key: f,
118
119
  role: "menuitemradio",
119
120
  type: "button",
120
- onMousedown: o[0] || (o[0] = h(() => {
121
+ onMousedown: s[0] || (s[0] = k(() => {
121
122
  }, ["prevent"])),
122
- onClick: (S) => c("select-background-color", b)
123
+ onClick: (U) => o("select-background-color", f)
123
124
  }, [
124
125
  g("span", {
125
126
  class: "markdown-editor__floating-menu-icon markdown-editor__background-color-icon",
126
- style: $e(
127
- b === "default" ? void 0 : { backgroundColor: `var(${d(Mt)[b]})` }
127
+ style: Ve(
128
+ f === "default" ? void 0 : { backgroundColor: `var(${u(Et)[f]})` }
128
129
  )
129
130
  }, " A ", 4),
130
- g("span", null, H(e.translate(d(pt)[b])), 1)
131
- ], 40, _t))), 128))
132
- ], 8, Jt)) : $("", !0),
133
- e.colorVisible ? (i(), m("div", {
131
+ g("span", null, V(e.translate(u($t)[f])), 1)
132
+ ], 40, ia))), 128))
133
+ ], 8, na)) : $("", !0),
134
+ e.colorVisible ? (r(), d("div", {
134
135
  key: 1,
135
136
  ref_key: "color",
136
- ref: r,
137
+ ref: h,
137
138
  class: "markdown-editor__floating-menu",
138
139
  "data-theme": e.theme,
139
140
  role: "menu",
140
141
  "aria-label": e.translate("color")
141
142
  }, [
142
- (i(!0), m(z, null, J(d(xt), (b) => (i(), m("button", {
143
- key: b,
143
+ (r(!0), d(S, null, j(u(Ht), (f) => (r(), d("button", {
144
+ key: f,
144
145
  role: "menuitemradio",
145
146
  type: "button",
146
- onMousedown: o[1] || (o[1] = h(() => {
147
+ onMousedown: s[1] || (s[1] = k(() => {
147
148
  }, ["prevent"])),
148
- onClick: (S) => c("select-color", b)
149
+ onClick: (U) => o("select-color", f)
149
150
  }, [
150
151
  g("span", {
151
152
  class: "markdown-editor__floating-menu-icon",
152
- style: $e(b === "default" ? void 0 : { color: `var(${d(Lt)[b]})` })
153
+ style: Ve(f === "default" ? void 0 : { color: `var(${u(Vt)[f]})` })
153
154
  }, " A ", 4),
154
- g("span", null, H(e.translate(d(Bt)[b])), 1)
155
- ], 40, ta))), 128))
156
- ], 8, ea)) : $("", !0),
157
- e.codeVisible ? (i(), m("div", {
155
+ g("span", null, V(e.translate(u(At)[f])), 1)
156
+ ], 40, sa))), 128))
157
+ ], 8, ra)) : $("", !0),
158
+ e.codeVisible ? (r(), d("div", {
158
159
  key: 2,
159
160
  ref_key: "code",
160
161
  ref: w,
@@ -167,49 +168,49 @@ const St = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill=
167
168
  "aria-checked": e.state.code,
168
169
  role: "menuitemradio",
169
170
  type: "button",
170
- onMousedown: o[2] || (o[2] = h(() => {
171
+ onMousedown: s[2] || (s[2] = k(() => {
171
172
  }, ["prevent"])),
172
- onClick: o[3] || (o[3] = (b) => c("inline-code"))
173
+ onClick: s[3] || (s[3] = (f) => o("inline-code"))
173
174
  }, [
174
- C(p, { name: "code" }),
175
- g("span", null, H(e.translate("code")), 1)
176
- ], 40, la),
175
+ p(L, { name: "code" }),
176
+ g("span", null, V(e.translate("code")), 1)
177
+ ], 40, ua),
177
178
  g("button", {
178
179
  "aria-checked": e.state.codeBlock,
179
180
  role: "menuitemradio",
180
181
  type: "button",
181
- onMousedown: o[4] || (o[4] = h(() => {
182
+ onMousedown: s[4] || (s[4] = k(() => {
182
183
  }, ["prevent"])),
183
- onClick: o[5] || (o[5] = (b) => c("code-block"))
184
+ onClick: s[5] || (s[5] = (f) => o("code-block"))
184
185
  }, [
185
- o[18] || (o[18] = g("span", { class: "markdown-editor__floating-menu-icon" }, "{ }", -1)),
186
- g("span", null, H(e.translate("codeBlock")), 1)
187
- ], 40, oa)
188
- ], 8, aa)) : $("", !0),
189
- e.headingVisible ? (i(), m("div", {
186
+ s[18] || (s[18] = g("span", { class: "markdown-editor__floating-menu-icon" }, "{ }", -1)),
187
+ g("span", null, V(e.translate("codeBlock")), 1)
188
+ ], 40, ma)
189
+ ], 8, da)) : $("", !0),
190
+ e.headingVisible ? (r(), d("div", {
190
191
  key: 3,
191
192
  ref_key: "heading",
192
- ref: a,
193
+ ref: C,
193
194
  class: "markdown-editor__floating-menu",
194
195
  "data-theme": e.theme,
195
196
  role: "menu",
196
197
  "aria-label": e.translate("heading")
197
198
  }, [
198
- (i(), m(z, null, J(["paragraph", "1", "2", "3", "4", "5", "6"], (b) => g("button", {
199
- key: b,
200
- "aria-checked": e.textStyle === b,
199
+ (r(), d(S, null, j(["paragraph", "1", "2", "3", "4", "5", "6"], (f) => g("button", {
200
+ key: f,
201
+ "aria-checked": e.textStyle === f,
201
202
  role: "menuitemradio",
202
203
  type: "button",
203
- onClick: (S) => c("select-text-style", b)
204
+ onClick: (U) => o("select-text-style", f)
204
205
  }, [
205
- g("span", sa, H(b === "paragraph" ? "T" : `H${b}`), 1),
206
- g("span", null, H(b === "paragraph" ? e.translate("paragraph") : `${e.translate("heading")} ${b}`), 1)
207
- ], 8, ia)), 64))
208
- ], 8, na)) : $("", !0),
209
- e.formulaVisible ? (i(), m("div", {
206
+ g("span", va, V(f === "paragraph" ? "T" : `H${f}`), 1),
207
+ g("span", null, V(f === "paragraph" ? e.translate("paragraph") : `${e.translate("heading")} ${f}`), 1)
208
+ ], 8, ga)), 64))
209
+ ], 8, ca)) : $("", !0),
210
+ e.formulaVisible ? (r(), d("div", {
210
211
  key: 4,
211
212
  ref_key: "formula",
212
- ref: s,
213
+ ref: n,
213
214
  class: "markdown-editor__floating-menu",
214
215
  "data-theme": e.theme,
215
216
  role: "menu",
@@ -218,28 +219,28 @@ const St = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill=
218
219
  g("button", {
219
220
  role: "menuitem",
220
221
  type: "button",
221
- onMousedown: o[6] || (o[6] = h(() => {
222
+ onMousedown: s[6] || (s[6] = k(() => {
222
223
  }, ["prevent"])),
223
- onClick: o[7] || (o[7] = (b) => c("inline-formula"))
224
+ onClick: s[7] || (s[7] = (f) => o("inline-formula"))
224
225
  }, [
225
- o[19] || (o[19] = g("span", { class: "markdown-editor__floating-menu-icon" }, "ƒ", -1)),
226
- g("span", null, H(e.translate("formulaInline")), 1)
226
+ s[19] || (s[19] = g("span", { class: "markdown-editor__floating-menu-icon" }, "ƒ", -1)),
227
+ g("span", null, V(e.translate("formulaInline")), 1)
227
228
  ], 32),
228
229
  g("button", {
229
230
  role: "menuitem",
230
231
  type: "button",
231
- onMousedown: o[8] || (o[8] = h(() => {
232
+ onMousedown: s[8] || (s[8] = k(() => {
232
233
  }, ["prevent"])),
233
- onClick: o[9] || (o[9] = (b) => c("math-block"))
234
+ onClick: s[9] || (s[9] = (f) => o("math-block"))
234
235
  }, [
235
- o[20] || (o[20] = g("span", { class: "markdown-editor__floating-menu-icon" }, "∑", -1)),
236
- g("span", null, H(e.translate("formulaBlock")), 1)
236
+ s[20] || (s[20] = g("span", { class: "markdown-editor__floating-menu-icon" }, "∑", -1)),
237
+ g("span", null, V(e.translate("formulaBlock")), 1)
237
238
  ], 32)
238
- ], 8, ra)) : $("", !0),
239
- e.listVisible ? (i(), m("div", {
239
+ ], 8, fa)) : $("", !0),
240
+ e.listVisible ? (r(), d("div", {
240
241
  key: 5,
241
242
  ref_key: "list",
242
- ref: M,
243
+ ref: a,
243
244
  class: "markdown-editor__floating-menu markdown-editor__floating-menu--list",
244
245
  "data-theme": e.theme,
245
246
  role: "menu",
@@ -249,71 +250,71 @@ const St = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill=
249
250
  "aria-checked": e.state.bulletList,
250
251
  role: "menuitemradio",
251
252
  type: "button",
252
- onMousedown: o[10] || (o[10] = h(() => {
253
+ onMousedown: s[10] || (s[10] = k(() => {
253
254
  }, ["prevent"])),
254
- onClick: o[11] || (o[11] = (b) => c("bullet-list"))
255
+ onClick: s[11] || (s[11] = (f) => o("bullet-list"))
255
256
  }, [
256
- C(p, { name: "bulletList" }),
257
- g("span", null, H(e.translate("bulletList")), 1)
258
- ], 40, ua),
257
+ p(L, { name: "bulletList" }),
258
+ g("span", null, V(e.translate("bulletList")), 1)
259
+ ], 40, ka),
259
260
  g("button", {
260
261
  "aria-checked": e.state.orderedList,
261
262
  role: "menuitemradio",
262
263
  type: "button",
263
- onMousedown: o[12] || (o[12] = h(() => {
264
+ onMousedown: s[12] || (s[12] = k(() => {
264
265
  }, ["prevent"])),
265
- onClick: o[13] || (o[13] = (b) => c("ordered-list"))
266
+ onClick: s[13] || (s[13] = (f) => o("ordered-list"))
266
267
  }, [
267
- C(p, { name: "orderedList" }),
268
- g("span", null, H(e.translate("orderedList")), 1)
269
- ], 40, ma),
268
+ p(L, { name: "orderedList" }),
269
+ g("span", null, V(e.translate("orderedList")), 1)
270
+ ], 40, wa),
270
271
  g("button", {
271
272
  disabled: !e.state.listIndentEnabled,
272
273
  role: "menuitem",
273
274
  type: "button",
274
- onMousedown: o[14] || (o[14] = h(() => {
275
+ onMousedown: s[14] || (s[14] = k(() => {
275
276
  }, ["prevent"])),
276
- onClick: o[15] || (o[15] = (b) => c("indent-list"))
277
+ onClick: s[15] || (s[15] = (f) => o("indent-list"))
277
278
  }, [
278
- o[21] || (o[21] = g("span", { class: "markdown-editor__floating-menu-icon" }, "→", -1)),
279
- g("span", null, H(e.translate("listIndent")), 1),
280
- o[22] || (o[22] = g("kbd", null, "Tab", -1))
281
- ], 40, ca),
279
+ s[21] || (s[21] = g("span", { class: "markdown-editor__floating-menu-icon" }, "→", -1)),
280
+ g("span", null, V(e.translate("listIndent")), 1),
281
+ s[22] || (s[22] = g("kbd", null, "Tab", -1))
282
+ ], 40, ha),
282
283
  g("button", {
283
284
  disabled: !e.state.listOutdentEnabled,
284
285
  role: "menuitem",
285
286
  type: "button",
286
- onMousedown: o[16] || (o[16] = h(() => {
287
+ onMousedown: s[16] || (s[16] = k(() => {
287
288
  }, ["prevent"])),
288
- onClick: o[17] || (o[17] = (b) => c("outdent-list"))
289
+ onClick: s[17] || (s[17] = (f) => o("outdent-list"))
289
290
  }, [
290
- o[23] || (o[23] = g("span", { class: "markdown-editor__floating-menu-icon" }, "←", -1)),
291
- g("span", null, H(e.translate("listOutdent")), 1),
292
- o[24] || (o[24] = g("kbd", null, "⇧ Tab", -1))
293
- ], 40, ga)
294
- ], 8, da)) : $("", !0),
295
- e.modeVisible ? (i(), m("div", {
291
+ s[23] || (s[23] = g("span", { class: "markdown-editor__floating-menu-icon" }, "←", -1)),
292
+ g("span", null, V(e.translate("listOutdent")), 1),
293
+ s[24] || (s[24] = g("kbd", null, "⇧ Tab", -1))
294
+ ], 40, ya)
295
+ ], 8, ba)) : $("", !0),
296
+ e.modeVisible ? (r(), d("div", {
296
297
  key: 6,
297
298
  ref_key: "modeMenu",
298
- ref: l,
299
+ ref: y,
299
300
  class: "markdown-editor__floating-menu",
300
301
  "data-theme": e.theme,
301
302
  role: "menu",
302
303
  "aria-label": e.translate("mode")
303
304
  }, [
304
- (i(), m(z, null, J(v, (b) => g("button", {
305
- key: b,
306
- "aria-checked": e.mode === b,
305
+ (r(), d(S, null, j(l, (f) => g("button", {
306
+ key: f,
307
+ "aria-checked": e.mode === f,
307
308
  role: "menuitemradio",
308
309
  type: "button",
309
- onClick: (S) => c("select-mode", b)
310
+ onClick: (U) => o("select-mode", f)
310
311
  }, [
311
- g("span", null, H(e.translate(b === "wysiwyg" ? "visual" : b)), 1)
312
- ], 8, ba)), 64))
313
- ], 8, va)) : $("", !0)
312
+ g("span", null, V(e.translate(f === "wysiwyg" ? "visual" : f)), 1)
313
+ ], 8, Ma)), 64))
314
+ ], 8, Ca)) : $("", !0)
314
315
  ], 64));
315
316
  }
316
- }), ka = /* @__PURE__ */ ie(fa, [["__scopeId", "data-v-84979053"]]), wa = ["data-theme", "aria-label"], ha = ["aria-label", "title"], ya = ["value", "aria-label"], Ca = /* @__PURE__ */ ne({
317
+ }), xa = /* @__PURE__ */ se(pa, [["__scopeId", "data-v-d1483608"]]), La = ["data-theme", "aria-label"], Ba = ["aria-label", "title"], Ta = ["value", "aria-label"], Ea = /* @__PURE__ */ re({
317
318
  __name: "MarkdownEditorImageActions",
318
319
  props: {
319
320
  objectFit: {},
@@ -321,9 +322,9 @@ const St = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill=
321
322
  translate: { type: Function }
322
323
  },
323
324
  emits: ["full-width", "object-fit"],
324
- setup(e, { expose: k, emit: x }) {
325
- const c = x, w = y();
326
- return k({ element: w }), (u, r) => (i(), m("div", {
325
+ setup(e, { expose: b, emit: x }) {
326
+ const o = x, w = M();
327
+ return b({ element: w }), (m, h) => (r(), d("div", {
327
328
  ref_key: "element",
328
329
  ref: w,
329
330
  class: "markdown-editor__image-actions",
@@ -335,20 +336,25 @@ const St = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill=
335
336
  type: "button",
336
337
  "aria-label": e.translate("imageWidthFull"),
337
338
  title: e.translate("imageWidthFull"),
338
- onMousedown: r[0] || (r[0] = h(() => {
339
+ onMousedown: h[0] || (h[0] = k(() => {
339
340
  }, ["prevent"])),
340
- onClick: r[1] || (r[1] = (s) => c("full-width"))
341
- }, " ↔ ", 40, ha),
341
+ onClick: h[1] || (h[1] = (n) => o("full-width"))
342
+ }, " ↔ ", 40, Ba),
342
343
  g("select", {
343
344
  value: e.objectFit ?? "contain",
344
345
  "aria-label": e.translate("imageFit"),
345
- onChange: r[2] || (r[2] = (s) => c("object-fit", s.target.value))
346
- }, [...r[3] || (r[3] = [
347
- vt('<option value="contain" data-v-8660b8bb>Contain</option><option value="cover" data-v-8660b8bb>Cover</option><option value="fill" data-v-8660b8bb>Fill</option><option value="none" data-v-8660b8bb>None</option><option value="scale-down" data-v-8660b8bb>Scale down</option>', 5)
348
- ])], 40, ya)
349
- ], 8, wa));
346
+ onChange: h[2] || (h[2] = (n) => o("object-fit", n.target.value))
347
+ }, [...h[3] || (h[3] = [
348
+ kt('<option value="contain" data-v-84f14d20>Contain</option><option value="cover" data-v-84f14d20>Cover</option><option value="fill" data-v-84f14d20>Fill</option><option value="none" data-v-84f14d20>None</option><option value="scale-down" data-v-84f14d20>Scale down</option>', 5)
349
+ ])], 40, Ta)
350
+ ], 8, La));
350
351
  }
351
- }), Ma = /* @__PURE__ */ ie(Ca, [["__scopeId", "data-v-8660b8bb"]]), pa = ["aria-label"], xa = { class: "markdown-editor__toolbar-buttons" }, La = ["data-toolbar-group"], Ba = ["disabled", "aria-label", "title", "onClick"], Ta = ["disabled", "aria-label", "title", "onClick"], Ea = ["aria-expanded", "aria-label", "aria-pressed", "title"], $a = ["disabled", "aria-label", "aria-pressed", "title", "onClick"], Ha = ["disabled", "aria-label", "aria-pressed", "title", "onClick"], Va = ["disabled", "aria-label", "aria-pressed", "title", "onClick"], Sa = ["disabled", "aria-label", "aria-pressed", "title", "onClick"], Aa = ["disabled", "aria-label", "aria-pressed", "title", "onClick"], Pa = ["aria-expanded", "aria-label", "aria-pressed", "title"], za = ["aria-expanded", "aria-label", "aria-pressed", "title"], Fa = ["disabled", "aria-label", "aria-pressed", "title", "onClick"], Na = ["aria-label", "aria-pressed", "title"], Da = ["aria-expanded", "aria-pressed", "aria-label", "title"], Ra = ["aria-expanded", "aria-label", "title"], Ia = ["aria-expanded", "aria-label", "title"], qa = ["aria-expanded", "aria-label", "title"], Oa = ["aria-expanded", "aria-label", "aria-pressed", "title"], ja = ["aria-label", "aria-pressed", "title", "onClick"], Ua = ["aria-label", "title"], Wa = ["aria-label", "title"], Qa = ["aria-label", "title"], Ga = ["aria-expanded", "aria-label", "title"], Ka = /* @__PURE__ */ ne({
352
+ }), $a = /* @__PURE__ */ se(Ea, [["__scopeId", "data-v-84f14d20"]]), Ha = ["aria-label"], Va = { class: "markdown-editor__toolbar-buttons" }, Aa = ["data-toolbar-group"], Sa = ["disabled", "aria-label", "title", "onClick"], Pa = ["disabled", "aria-label", "title", "onClick"], za = ["aria-expanded", "aria-label", "aria-pressed", "title"], Fa = ["disabled", "aria-label", "aria-pressed", "title", "onClick"], Na = ["disabled", "aria-label", "aria-pressed", "title", "onClick"], Da = ["disabled", "aria-label", "aria-pressed", "title", "onClick"], Ra = ["disabled", "aria-label", "aria-pressed", "title", "onClick"], Ia = ["disabled", "aria-label", "aria-pressed", "title", "onClick"], Oa = ["aria-expanded", "aria-label", "aria-pressed", "title"], qa = ["aria-expanded", "aria-label", "aria-pressed", "title"], ja = ["disabled", "aria-label", "aria-pressed", "title", "onClick"], Ua = ["aria-label", "aria-pressed", "title"], Wa = ["aria-expanded", "aria-pressed", "aria-label", "title"], Ka = ["aria-expanded", "aria-label", "title"], Qa = ["aria-expanded", "aria-label", "title"], Ga = ["aria-expanded", "aria-label", "title"], Ya = ["aria-expanded", "aria-label", "aria-pressed", "title"], Za = ["aria-label", "aria-pressed", "title", "onClick"], Xa = ["aria-label", "title"], Ja = ["aria-label", "title"], _a = ["aria-label", "title"], el = {
353
+ key: 0,
354
+ class: "markdown-editor__toolbar-group",
355
+ "data-toolbar-group": "directives",
356
+ role: "group"
357
+ }, tl = ["data-toolbar-item", "aria-label", "title", "onClick"], al = { key: 1 }, ll = ["aria-expanded", "aria-label", "title"], ol = /* @__PURE__ */ re({
352
358
  __name: "MarkdownEditorToolbar",
353
359
  props: {
354
360
  commands: {},
@@ -367,66 +373,70 @@ const St = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill=
367
373
  toolbarPreset: {},
368
374
  toolbarConfig: {},
369
375
  features: {},
376
+ directives: {},
370
377
  translate: { type: Function }
371
378
  },
372
- emits: ["execute", "insert-html", "toggle-formula-menu", "toggle-code-menu", "toggle-background-color-menu", "toggle-color-menu", "toggle-heading-menu", "toggle-image-editor", "toggle-link-editor", "toggle-list-menu", "toggle-mode-menu"],
373
- setup(e, { emit: k }) {
379
+ emits: ["execute", "insert-html", "insert-directive", "toggle-formula-menu", "toggle-code-menu", "toggle-background-color-menu", "toggle-color-menu", "toggle-heading-menu", "toggle-image-editor", "toggle-link-editor", "toggle-list-menu", "toggle-mode-menu"],
380
+ setup(e, { emit: b }) {
374
381
  const x = e;
375
- function c(s) {
376
- return s.map(Et).filter((a) => $t(a, x.state));
382
+ function o(C) {
383
+ return C.map(Pt).filter((a) => zt(a, x.state));
377
384
  }
378
- function w(s, a) {
379
- N(s, x.state) && (s.action ? s.action.run({
385
+ function w(C, a) {
386
+ N(C, x.state) && (C.action ? C.action.run({
380
387
  commands: x.commands,
381
- execute: (M) => u("execute", s.id, M),
388
+ execute: (y) => m("execute", C.id, y),
382
389
  state: x.state
383
- }) : u("execute", s.id, a));
390
+ }) : m("execute", C.id, a));
384
391
  }
385
- const u = k;
386
- function r(s) {
387
- return s.currentTarget;
392
+ const m = b;
393
+ function h(C) {
394
+ return C.currentTarget;
388
395
  }
389
- return (s, a) => (i(), m("div", {
396
+ const n = ge(
397
+ () => Object.values(x.directives ?? {}).some((C) => C.toolbar)
398
+ );
399
+ return (C, a) => (r(), d("div", {
390
400
  class: "markdown-editor__toolbar",
391
401
  "data-markdown-editor-toolbar": "",
392
402
  role: "toolbar",
393
403
  "aria-label": e.translate("toolbar")
394
404
  }, [
395
- g("div", xa, [
396
- (i(!0), m(z, null, J((e.toolbarConfig ?? d(Tt)(e.toolbarPreset)).groups, (M) => (i(), m("div", {
397
- key: M.id,
405
+ g("div", Va, [
406
+ (r(!0), d(S, null, j((e.toolbarConfig ?? u(St)(e.toolbarPreset)).groups, (y) => (r(), d("div", {
407
+ key: y.id,
398
408
  class: "markdown-editor__toolbar-group",
399
409
  role: "group",
400
- "data-toolbar-group": M.id
410
+ "data-toolbar-group": y.id
401
411
  }, [
402
- (i(!0), m(z, null, J(c(M.items), (l) => (i(), m(z, {
412
+ (r(!0), d(S, null, j(o(y.items), (l) => (r(), d(S, {
403
413
  key: l.id
404
414
  }, [
405
- l.id === "undo" ? (i(), m("button", {
415
+ l.id === "undo" ? (r(), d("button", {
406
416
  key: 0,
407
417
  "data-toolbar-item": "undo",
408
418
  type: "button",
409
- disabled: !d(N)(l, e.state),
419
+ disabled: !u(N)(l, e.state),
410
420
  "aria-label": e.translate("undo"),
411
421
  title: e.translate("undo"),
412
- onMousedown: a[0] || (a[0] = h(() => {
422
+ onMousedown: a[0] || (a[0] = k(() => {
413
423
  }, ["prevent"])),
414
- onClick: (v) => w(l, e.commands.undo)
424
+ onClick: (c) => w(l, e.commands.undo)
415
425
  }, [
416
- C(p, { name: "arrowLeft" })
417
- ], 40, Ba)) : l.id === "redo" ? (i(), m("button", {
426
+ p(L, { name: "arrowLeft" })
427
+ ], 40, Sa)) : l.id === "redo" ? (r(), d("button", {
418
428
  key: 1,
419
429
  "data-toolbar-item": "redo",
420
430
  type: "button",
421
- disabled: !d(N)(l, e.state),
431
+ disabled: !u(N)(l, e.state),
422
432
  "aria-label": e.translate("redo"),
423
433
  title: e.translate("redo"),
424
- onMousedown: a[1] || (a[1] = h(() => {
434
+ onMousedown: a[1] || (a[1] = k(() => {
425
435
  }, ["prevent"])),
426
- onClick: (v) => w(l, e.commands.redo)
436
+ onClick: (c) => w(l, e.commands.redo)
427
437
  }, [
428
- C(p, { name: "arrowRight" })
429
- ], 40, Ta)) : l.id === "heading" ? (i(), m("button", {
438
+ p(L, { name: "arrowRight" })
439
+ ], 40, Pa)) : l.id === "heading" ? (r(), d("button", {
430
440
  key: 2,
431
441
  class: "markdown-editor__toolbar-heading",
432
442
  "data-toolbar-item": "heading",
@@ -435,76 +445,76 @@ const St = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill=
435
445
  "aria-pressed": e.state.headingLevel !== void 0,
436
446
  title: e.translate("heading"),
437
447
  type: "button",
438
- onMousedown: a[2] || (a[2] = h(() => {
448
+ onMousedown: a[2] || (a[2] = k(() => {
439
449
  }, ["prevent"])),
440
- onClick: a[3] || (a[3] = (v) => u("toggle-heading-menu", r(v)))
450
+ onClick: a[3] || (a[3] = (c) => m("toggle-heading-menu", h(c)))
441
451
  }, [
442
- g("span", null, H(e.textStyleLabel), 1),
443
- C(p, { name: "chevronDown" })
444
- ], 40, Ea)) : l.id === "bold" ? (i(), m("button", {
452
+ g("span", null, V(e.textStyleLabel), 1),
453
+ p(L, { name: "chevronDown" })
454
+ ], 40, za)) : l.id === "bold" ? (r(), d("button", {
445
455
  key: 3,
446
456
  "data-toolbar-item": "bold",
447
- disabled: !d(N)(l, e.state),
457
+ disabled: !u(N)(l, e.state),
448
458
  "aria-label": e.translate("bold"),
449
- "aria-pressed": d(X)(l, e.state, e.state.bold),
459
+ "aria-pressed": u(_)(l, e.state, e.state.bold),
450
460
  type: "button",
451
461
  title: e.translate("bold"),
452
- onMousedown: a[4] || (a[4] = h(() => {
462
+ onMousedown: a[4] || (a[4] = k(() => {
453
463
  }, ["prevent"])),
454
- onClick: (v) => w(l, e.commands.bold)
464
+ onClick: (c) => w(l, e.commands.bold)
455
465
  }, [
456
- C(p, { name: "bold" })
457
- ], 40, $a)) : l.id === "italic" ? (i(), m("button", {
466
+ p(L, { name: "bold" })
467
+ ], 40, Fa)) : l.id === "italic" ? (r(), d("button", {
458
468
  key: 4,
459
469
  "data-toolbar-item": "italic",
460
- disabled: !d(N)(l, e.state),
470
+ disabled: !u(N)(l, e.state),
461
471
  "aria-label": e.translate("italic"),
462
- "aria-pressed": d(X)(l, e.state, e.state.italic),
472
+ "aria-pressed": u(_)(l, e.state, e.state.italic),
463
473
  type: "button",
464
474
  title: e.translate("italic"),
465
- onMousedown: a[5] || (a[5] = h(() => {
475
+ onMousedown: a[5] || (a[5] = k(() => {
466
476
  }, ["prevent"])),
467
- onClick: (v) => w(l, e.commands.italic)
477
+ onClick: (c) => w(l, e.commands.italic)
468
478
  }, [
469
- C(p, { name: "italic" })
470
- ], 40, Ha)) : l.id === "underline" ? (i(), m("button", {
479
+ p(L, { name: "italic" })
480
+ ], 40, Na)) : l.id === "underline" ? (r(), d("button", {
471
481
  key: 5,
472
482
  "data-toolbar-item": "underline",
473
- disabled: !d(N)(l, e.state),
483
+ disabled: !u(N)(l, e.state),
474
484
  "aria-label": e.translate("underline"),
475
- "aria-pressed": d(X)(l, e.state, e.state.underline),
485
+ "aria-pressed": u(_)(l, e.state, e.state.underline),
476
486
  type: "button",
477
487
  title: e.translate("underline"),
478
- onMousedown: a[6] || (a[6] = h(() => {
488
+ onMousedown: a[6] || (a[6] = k(() => {
479
489
  }, ["prevent"])),
480
- onClick: (v) => w(l, e.commands.underline)
490
+ onClick: (c) => w(l, e.commands.underline)
481
491
  }, [
482
- C(p, { name: "underline" })
483
- ], 40, Va)) : l.id === "strike" ? (i(), m("button", {
492
+ p(L, { name: "underline" })
493
+ ], 40, Da)) : l.id === "strike" ? (r(), d("button", {
484
494
  key: 6,
485
495
  "data-toolbar-item": "strike",
486
- disabled: !d(N)(l, e.state),
496
+ disabled: !u(N)(l, e.state),
487
497
  "aria-label": e.translate("strike"),
488
- "aria-pressed": d(X)(l, e.state, e.state.strikethrough),
498
+ "aria-pressed": u(_)(l, e.state, e.state.strikethrough),
489
499
  type: "button",
490
500
  title: e.translate("strike"),
491
- onMousedown: a[7] || (a[7] = h(() => {
501
+ onMousedown: a[7] || (a[7] = k(() => {
492
502
  }, ["prevent"])),
493
- onClick: (v) => w(l, e.commands.strikethrough)
503
+ onClick: (c) => w(l, e.commands.strikethrough)
494
504
  }, [
495
- C(p, { name: "strike" })
496
- ], 40, Sa)) : l.id === "mark" ? (i(), m("button", {
505
+ p(L, { name: "strike" })
506
+ ], 40, Ra)) : l.id === "mark" ? (r(), d("button", {
497
507
  key: 7,
498
508
  "data-toolbar-item": "mark",
499
- disabled: !d(N)(l, e.state),
509
+ disabled: !u(N)(l, e.state),
500
510
  "aria-label": e.translate("mark"),
501
- "aria-pressed": d(X)(l, e.state, e.state.mark),
511
+ "aria-pressed": u(_)(l, e.state, e.state.mark),
502
512
  type: "button",
503
513
  title: e.translate("mark"),
504
- onMousedown: a[8] || (a[8] = h(() => {
514
+ onMousedown: a[8] || (a[8] = k(() => {
505
515
  }, ["prevent"])),
506
- onClick: (v) => w(l, e.commands.mark)
507
- }, " M ", 40, Aa)) : l.id === "code" ? (i(), m("button", {
516
+ onClick: (c) => w(l, e.commands.mark)
517
+ }, " M ", 40, Ia)) : l.id === "code" ? (r(), d("button", {
508
518
  key: 8,
509
519
  class: "markdown-editor__toolbar-code",
510
520
  "data-toolbar-item": "code",
@@ -513,13 +523,13 @@ const St = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill=
513
523
  "aria-pressed": e.state.code || e.state.codeBlock,
514
524
  title: e.translate(e.state.codeBlock ? "codeBlock" : "code"),
515
525
  type: "button",
516
- onMousedown: a[9] || (a[9] = h(() => {
526
+ onMousedown: a[9] || (a[9] = k(() => {
517
527
  }, ["prevent"])),
518
- onClick: a[10] || (a[10] = (v) => u("toggle-code-menu", r(v)))
528
+ onClick: a[10] || (a[10] = (c) => m("toggle-code-menu", h(c)))
519
529
  }, [
520
- C(p, { name: "code" }),
521
- C(p, { name: "chevronDown" })
522
- ], 40, Pa)) : l.id === "bullet-list" ? (i(), m("button", {
530
+ p(L, { name: "code" }),
531
+ p(L, { name: "chevronDown" })
532
+ ], 40, Oa)) : l.id === "bullet-list" ? (r(), d("button", {
523
533
  key: 9,
524
534
  class: "markdown-editor__toolbar-list",
525
535
  "data-toolbar-item": "list",
@@ -528,38 +538,38 @@ const St = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill=
528
538
  "aria-pressed": e.state.bulletList || e.state.orderedList,
529
539
  title: e.translate(e.state.orderedList ? "orderedList" : "bulletList"),
530
540
  type: "button",
531
- onMousedown: a[11] || (a[11] = h(() => {
541
+ onMousedown: a[11] || (a[11] = k(() => {
532
542
  }, ["prevent"])),
533
- onClick: a[12] || (a[12] = (v) => u("toggle-list-menu", r(v)))
543
+ onClick: a[12] || (a[12] = (c) => m("toggle-list-menu", h(c)))
534
544
  }, [
535
- C(p, {
545
+ p(L, {
536
546
  name: e.state.orderedList ? "orderedList" : "bulletList"
537
547
  }, null, 8, ["name"]),
538
- C(p, { name: "chevronDown" })
539
- ], 40, za)) : l.id === "ordered-list" ? (i(), m(z, { key: 10 }, [], 64)) : l.id === "quote" ? (i(), m("button", {
548
+ p(L, { name: "chevronDown" })
549
+ ], 40, qa)) : l.id === "ordered-list" ? (r(), d(S, { key: 10 }, [], 64)) : l.id === "quote" ? (r(), d("button", {
540
550
  key: 11,
541
551
  "data-toolbar-item": "quote",
542
- disabled: !d(N)(l, e.state),
552
+ disabled: !u(N)(l, e.state),
543
553
  "aria-label": e.translate("quote"),
544
- "aria-pressed": d(X)(l, e.state, e.state.quote),
554
+ "aria-pressed": u(_)(l, e.state, e.state.quote),
545
555
  type: "button",
546
556
  title: e.translate("quote"),
547
- onMousedown: a[13] || (a[13] = h(() => {
557
+ onMousedown: a[13] || (a[13] = k(() => {
548
558
  }, ["prevent"])),
549
- onClick: (v) => w(l, e.commands.quote)
559
+ onClick: (c) => w(l, e.commands.quote)
550
560
  }, [
551
- C(p, { name: "quote" })
552
- ], 40, Fa)) : l.id === "fold-heading" ? (i(), m("button", {
561
+ p(L, { name: "quote" })
562
+ ], 40, ja)) : l.id === "fold-heading" ? (r(), d("button", {
553
563
  key: 12,
554
564
  "data-toolbar-item": "fold-heading",
555
565
  "aria-label": e.translate("foldHeading"),
556
566
  "aria-pressed": e.state.headingFolded,
557
567
  type: "button",
558
568
  title: e.translate("foldHeading"),
559
- onMousedown: a[14] || (a[14] = h(() => {
569
+ onMousedown: a[14] || (a[14] = k(() => {
560
570
  }, ["prevent"])),
561
- onClick: a[15] || (a[15] = (v) => u("execute", "fold-heading", e.commands.toggleHeadingFolding))
562
- }, " ▸ ", 40, Na)) : l.id === "code-block" ? (i(), m(z, { key: 13 }, [], 64)) : l.id === "link" ? (i(), m("button", {
571
+ onClick: a[15] || (a[15] = (c) => m("execute", "fold-heading", e.commands.toggleHeadingFolding))
572
+ }, " ▸ ", 40, Ua)) : l.id === "code-block" ? (r(), d(S, { key: 13 }, [], 64)) : l.id === "link" ? (r(), d("button", {
563
573
  key: 14,
564
574
  "data-toolbar-item": "link",
565
575
  "aria-expanded": e.linkEditorVisible,
@@ -567,50 +577,50 @@ const St = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill=
567
577
  type: "button",
568
578
  "aria-label": e.translate("link"),
569
579
  title: e.translate("link"),
570
- onMousedown: a[16] || (a[16] = h(() => {
580
+ onMousedown: a[16] || (a[16] = k(() => {
571
581
  }, ["prevent"])),
572
- onClick: a[17] || (a[17] = (v) => u("toggle-link-editor", r(v)))
582
+ onClick: a[17] || (a[17] = (c) => m("toggle-link-editor", h(c)))
573
583
  }, [
574
- C(p, { name: "link" })
575
- ], 40, Da)) : l.id === "background-color" ? (i(), m("button", {
584
+ p(L, { name: "link" })
585
+ ], 40, Wa)) : l.id === "background-color" ? (r(), d("button", {
576
586
  key: 15,
577
587
  "data-toolbar-item": "background-color",
578
588
  "aria-expanded": e.backgroundColorMenuVisible,
579
589
  "aria-label": e.translate("backgroundColor"),
580
590
  title: e.translate("backgroundColor"),
581
591
  type: "button",
582
- onMousedown: a[18] || (a[18] = h(() => {
592
+ onMousedown: a[18] || (a[18] = k(() => {
583
593
  }, ["prevent"])),
584
- onClick: a[19] || (a[19] = (v) => u("toggle-background-color-menu", r(v)))
594
+ onClick: a[19] || (a[19] = (c) => m("toggle-background-color-menu", h(c)))
585
595
  }, [
586
- a[35] || (a[35] = g("span", { class: "markdown-editor__background-color-trigger" }, "A", -1)),
587
- C(p, { name: "chevronDown" })
588
- ], 40, Ra)) : l.id === "color" ? (i(), m("button", {
596
+ a[36] || (a[36] = g("span", { class: "markdown-editor__background-color-trigger" }, "A", -1)),
597
+ p(L, { name: "chevronDown" })
598
+ ], 40, Ka)) : l.id === "color" ? (r(), d("button", {
589
599
  key: 16,
590
600
  "data-toolbar-item": "color",
591
601
  "aria-expanded": e.colorMenuVisible,
592
602
  "aria-label": e.translate("color"),
593
603
  title: e.translate("color"),
594
604
  type: "button",
595
- onMousedown: a[20] || (a[20] = h(() => {
605
+ onMousedown: a[20] || (a[20] = k(() => {
596
606
  }, ["prevent"])),
597
- onClick: a[21] || (a[21] = (v) => u("toggle-color-menu", r(v)))
607
+ onClick: a[21] || (a[21] = (c) => m("toggle-color-menu", h(c)))
598
608
  }, [
599
- a[36] || (a[36] = g("span", { class: "markdown-editor__color-trigger" }, "A", -1)),
600
- C(p, { name: "chevronDown" })
601
- ], 40, Ia)) : l.id === "image" ? (i(), m("button", {
609
+ a[37] || (a[37] = g("span", { class: "markdown-editor__color-trigger" }, "A", -1)),
610
+ p(L, { name: "chevronDown" })
611
+ ], 40, Qa)) : l.id === "image" ? (r(), d("button", {
602
612
  key: 17,
603
613
  "data-toolbar-item": "image",
604
614
  "aria-expanded": e.imageEditorVisible,
605
615
  "aria-label": e.translate("image"),
606
616
  type: "button",
607
617
  title: e.translate("image"),
608
- onMousedown: a[22] || (a[22] = h(() => {
618
+ onMousedown: a[22] || (a[22] = k(() => {
609
619
  }, ["prevent"])),
610
- onClick: a[23] || (a[23] = (v) => u("toggle-image-editor", r(v)))
620
+ onClick: a[23] || (a[23] = (c) => m("toggle-image-editor", h(c)))
611
621
  }, [
612
- C(p, { name: "image" })
613
- ], 40, qa)) : l.id === "formula" ? (i(), m("button", {
622
+ p(L, { name: "image" })
623
+ ], 40, Ga)) : l.id === "formula" ? (r(), d("button", {
614
624
  key: 18,
615
625
  "data-toolbar-item": "formula",
616
626
  "aria-expanded": e.formulaMenuVisible,
@@ -618,60 +628,76 @@ const St = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill=
618
628
  "aria-pressed": e.state.formula,
619
629
  title: e.translate("formula"),
620
630
  type: "button",
621
- onMousedown: a[24] || (a[24] = h(() => {
631
+ onMousedown: a[24] || (a[24] = k(() => {
622
632
  }, ["prevent"])),
623
- onClick: a[25] || (a[25] = (v) => u("toggle-formula-menu", r(v)))
633
+ onClick: a[25] || (a[25] = (c) => m("toggle-formula-menu", h(c)))
624
634
  }, [
625
- C(p, { name: "function" })
626
- ], 40, Oa)) : l.id === "mermaid" ? (i(), m("button", {
635
+ p(L, { name: "function" })
636
+ ], 40, Ya)) : l.id === "mermaid" ? (r(), d("button", {
627
637
  key: 19,
628
638
  "data-toolbar-item": "mermaid",
629
639
  type: "button",
630
640
  "aria-label": e.translate("mermaid"),
631
641
  "aria-pressed": e.state.mermaid,
632
642
  title: e.translate("mermaid"),
633
- onMousedown: a[26] || (a[26] = h(() => {
643
+ onMousedown: a[26] || (a[26] = k(() => {
634
644
  }, ["prevent"])),
635
- onClick: (v) => w(l, e.commands.insertMermaid)
645
+ onClick: (c) => w(l, e.commands.insertMermaid)
636
646
  }, [
637
- C(p, { name: "mermaid" })
638
- ], 40, ja)) : l.id === "html" ? (i(), m("button", {
647
+ p(L, { name: "mermaid" })
648
+ ], 40, Za)) : l.id === "html" ? (r(), d("button", {
639
649
  key: 20,
640
650
  "data-toolbar-item": "html",
641
651
  type: "button",
642
652
  "aria-label": e.translate("html"),
643
653
  title: e.translate("html"),
644
- onMousedown: a[27] || (a[27] = h(() => {
654
+ onMousedown: a[27] || (a[27] = k(() => {
645
655
  }, ["prevent"])),
646
- onClick: a[28] || (a[28] = (v) => u("insert-html"))
647
- }, " </> ", 40, Ua)) : l.id === "horizontal-rule" ? (i(), m("button", {
656
+ onClick: a[28] || (a[28] = (c) => m("insert-html"))
657
+ }, " </> ", 40, Xa)) : l.id === "horizontal-rule" ? (r(), d("button", {
648
658
  key: 21,
649
659
  "data-toolbar-item": "horizontal-rule",
650
660
  "aria-label": e.translate("horizontalRule"),
651
661
  type: "button",
652
662
  title: e.translate("horizontalRule"),
653
- onMousedown: a[29] || (a[29] = h(() => {
663
+ onMousedown: a[29] || (a[29] = k(() => {
654
664
  }, ["prevent"])),
655
- onClick: a[30] || (a[30] = (v) => u("execute", "horizontal-rule", e.commands.horizontalRule))
665
+ onClick: a[30] || (a[30] = (c) => m("execute", "horizontal-rule", e.commands.horizontalRule))
656
666
  }, [
657
- C(p, { name: "horizontalRule" })
658
- ], 40, Wa)) : l.id === "table" ? (i(), m("button", {
667
+ p(L, { name: "horizontalRule" })
668
+ ], 40, Ja)) : l.id === "table" ? (r(), d("button", {
659
669
  key: 22,
660
670
  "data-toolbar-item": "table",
661
671
  "aria-label": e.translate("table"),
662
672
  type: "button",
663
673
  title: e.translate("table"),
664
- onMousedown: a[31] || (a[31] = h(() => {
674
+ onMousedown: a[31] || (a[31] = k(() => {
665
675
  }, ["prevent"])),
666
- onClick: a[32] || (a[32] = (v) => u("execute", "table", e.commands.insertTable()))
676
+ onClick: a[32] || (a[32] = (c) => m("execute", "table", e.commands.insertTable()))
667
677
  }, [
668
- C(p, { name: "table" })
669
- ], 40, Qa)) : $("", !0)
678
+ p(L, { name: "table" })
679
+ ], 40, _a)) : $("", !0)
670
680
  ], 64))), 128))
671
- ], 8, La))), 128)),
672
- we(s.$slots, "default", {
681
+ ], 8, Aa))), 128)),
682
+ n.value ? (r(), d("div", el, [
683
+ (r(!0), d(S, null, j(e.directives, (y, l) => wt((r(), d("button", {
684
+ key: l,
685
+ type: "button",
686
+ "data-toolbar-item": `directive-${l}`,
687
+ "aria-label": y.label ?? l,
688
+ title: y.label ?? l,
689
+ onMousedown: a[33] || (a[33] = k(() => {
690
+ }, ["prevent"])),
691
+ onClick: (c) => m("insert-directive", l)
692
+ }, [
693
+ y.icon !== void 0 ? (r(), ee(ht(y.icon), { key: 0 })) : (r(), d("span", al, V(y.label ?? l), 1))
694
+ ], 40, tl)), [
695
+ [yt, y.toolbar]
696
+ ])), 128))
697
+ ])) : $("", !0),
698
+ Ce(C.$slots, "default", {
673
699
  commands: e.commands,
674
- execute: (M) => u("execute", void 0, M)
700
+ execute: (y) => m("execute", void 0, y)
675
701
  }, void 0, !0)
676
702
  ]),
677
703
  g("button", {
@@ -681,93 +707,93 @@ const St = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill=
681
707
  "aria-expanded": e.modeMenuVisible,
682
708
  "aria-label": e.translate("mode"),
683
709
  title: e.translate("mode"),
684
- onMousedown: a[33] || (a[33] = h(() => {
710
+ onMousedown: a[34] || (a[34] = k(() => {
685
711
  }, ["prevent"])),
686
- onClick: a[34] || (a[34] = (M) => u("toggle-mode-menu", r(M)))
712
+ onClick: a[35] || (a[35] = (y) => m("toggle-mode-menu", h(y)))
687
713
  }, [
688
- C(p, { name: "gear" }),
689
- C(p, { name: "chevronDown" })
690
- ], 40, Ga)
691
- ], 8, pa));
714
+ p(L, { name: "gear" }),
715
+ p(L, { name: "chevronDown" })
716
+ ], 40, ll)
717
+ ], 8, Ha));
692
718
  }
693
- }), Ya = /* @__PURE__ */ ie(Ka, [["__scopeId", "data-v-411fb713"]]), Za = [
719
+ }), nl = /* @__PURE__ */ se(ol, [["__scopeId", "data-v-b8b80594"]]), il = [
694
720
  "--markdown-background",
695
721
  "--markdown-border",
696
722
  "--markdown-focus-background",
697
723
  "--markdown-focus-text",
698
724
  "--markdown-text"
699
725
  ];
700
- function P(e, k = {}) {
701
- const x = y(!1);
702
- let c;
726
+ function z(e, b = {}) {
727
+ const x = M(!1);
728
+ let o;
703
729
  function w() {
704
- x.value = !1, c?.(), c = void 0;
730
+ x.value = !1, o?.(), o = void 0;
705
731
  }
706
- async function u(s) {
707
- w(), x.value = !0, await oe();
708
- const a = e();
709
- if (a === void 0) return;
710
- const M = s.closest(".markdown-editor");
711
- if (M !== null) {
712
- const v = getComputedStyle(M);
713
- for (const V of Za)
714
- a.style.setProperty(V, v.getPropertyValue(V));
732
+ async function m(n) {
733
+ w(), x.value = !0, await ie();
734
+ const C = e();
735
+ if (C === void 0) return;
736
+ const a = n.closest(".markdown-editor");
737
+ if (a !== null) {
738
+ const l = getComputedStyle(a);
739
+ for (const c of il)
740
+ C.style.setProperty(c, l.getPropertyValue(c));
715
741
  }
716
- c = dt(s, a, async () => {
717
- const { x: v, y: V } = await ut(s, a, {
718
- middleware: [mt(6), ct({ padding: 8 }), gt({ padding: 8 })],
719
- placement: k.placement ?? "bottom-start",
742
+ o = ct(n, C, async () => {
743
+ const { x: l, y: c } = await gt(n, C, {
744
+ middleware: [vt(6), ft({ padding: 8 }), bt({ padding: 8 })],
745
+ placement: b.placement ?? "bottom-start",
720
746
  strategy: "fixed"
721
747
  });
722
- Object.assign(a.style, {
723
- left: `${v}px`,
748
+ Object.assign(C.style, {
749
+ left: `${l}px`,
724
750
  position: "fixed",
725
- top: `${V}px`
751
+ top: `${c}px`
726
752
  });
727
753
  });
728
754
  }
729
- async function r(s) {
730
- x.value ? w() : await u(s);
755
+ async function h(n) {
756
+ x.value ? w() : await m(n);
731
757
  }
732
- return he(w), {
758
+ return Me(w), {
733
759
  close: w,
734
- contains: (s) => e()?.contains(s) ?? !1,
735
- open: u,
736
- toggle: r,
760
+ contains: (n) => e()?.contains(n) ?? !1,
761
+ open: m,
762
+ toggle: h,
737
763
  visible: x
738
764
  };
739
765
  }
740
- function Ve(e, k) {
741
- return e.length === 0 ? k : k.length === 0 ? e : `${e}
766
+ function Ae(e, b) {
767
+ return e.length === 0 ? b : b.length === 0 ? e : `${e}
742
768
 
743
- ${k}`;
769
+ ${b}`;
744
770
  }
745
- function Xa(e) {
746
- const k = y(e.initialValue);
771
+ function rl(e) {
772
+ const b = M(e.initialValue);
747
773
  let x = !1;
748
- function c(s, a) {
749
- x = !0, a !== "markup" && e.getMarkupHost()?.setValue(s), a !== "visual" && e.getVisualHost()?.setValue(s), x = !1;
774
+ function o(n, C) {
775
+ x = !0, C !== "markup" && e.getMarkupHost()?.setValue(n), C !== "visual" && e.getVisualHost()?.setValue(n), x = !1;
750
776
  }
751
- function w(s) {
752
- s !== k.value && (k.value = s, c(s));
777
+ function w(n) {
778
+ n !== b.value && (b.value = n, o(n));
753
779
  }
754
- function u(s) {
755
- s !== k.value && (k.value = s, e.onChange(s), c(s));
780
+ function m(n) {
781
+ n !== b.value && (b.value = n, e.onChange(n), o(n));
756
782
  }
757
- function r(s, a) {
758
- s === k.value || x || (k.value = s, e.onChange(s), c(s, a));
783
+ function h(n, C) {
784
+ n === b.value || x || (b.value = n, e.onChange(n), o(n, C));
759
785
  }
760
- return { setExternalValue: w, setValue: u, updateFromHost: r, value: k };
786
+ return { setExternalValue: w, setValue: m, updateFromHost: h, value: b };
761
787
  }
762
- const Ja = ["data-locale", "data-mode", "data-theme"], _a = {
788
+ const sl = ["data-locale", "data-mode", "data-theme"], dl = {
763
789
  key: 0,
764
790
  class: "markdown-editor__header"
765
- }, el = /* @__PURE__ */ ne({
791
+ }, ul = /* @__PURE__ */ re({
766
792
  name: "MarkdownEditor",
767
793
  __name: "MarkdownEditor",
768
794
  props: {
769
795
  modelValue: { default: "" },
770
- directiveComponents: { default: void 0 },
796
+ directives: { default: void 0 },
771
797
  mode: { default: "wysiwyg" },
772
798
  locale: { default: "ru" },
773
799
  placeholder: { default: "" },
@@ -779,8 +805,8 @@ const Ja = ["data-locale", "data-mode", "data-theme"], _a = {
779
805
  features: { default: void 0 }
780
806
  },
781
807
  emits: ["cancel", "change", "mode-change", "update:modelValue", "update:mode", "submit"],
782
- setup(e, { expose: k, emit: x }) {
783
- const c = e, w = x, u = ot(), r = st(), s = Se()?.appContext, a = y(), M = y(), l = y(c.mode), v = y("https://"), V = y(""), o = y(""), b = y(), S = y(""), _ = y(""), j = y(!1), E = y({
808
+ setup(e, { expose: b, emit: x }) {
809
+ const o = e, w = x, m = it(), h = ge(() => Dt(o.directives)), n = ut(), C = Se()?.appContext, a = M(), y = M(), l = M(o.mode), c = M("https://"), s = M(""), f = M(""), U = M(), D = M(""), te = M(""), W = M(!1), H = M({
784
810
  bold: !1,
785
811
  bulletList: !1,
786
812
  code: !1,
@@ -803,28 +829,28 @@ const Ja = ["data-locale", "data-mode", "data-theme"], _a = {
803
829
  quote: !1,
804
830
  strikethrough: !1,
805
831
  underline: !1
806
- }), me = He(() => E.value.headingLevel?.toString() ?? "paragraph"), Ae = He(() => me.value === "paragraph" ? "H" : `H${me.value}`), ye = y(), D = y(), Ce = y(), U = P(() => D.value?.getElement("code")), W = P(() => D.value?.getElement("background-color")), Q = P(() => D.value?.getElement("color")), I = P(() => D.value?.getElement("formula")), G = P(() => D.value?.getElement("heading")), q = P(() => b.value?.element), ee = P(() => Ce.value?.element, {
832
+ }), ve = ge(() => H.value.headingLevel?.toString() ?? "paragraph"), Pe = ge(() => ve.value === "paragraph" ? "H" : `H${ve.value}`), pe = M(), R = M(), xe = M(), K = z(() => R.value?.getElement("code")), Q = z(() => R.value?.getElement("background-color")), G = z(() => R.value?.getElement("color")), I = z(() => R.value?.getElement("formula")), Y = z(() => R.value?.getElement("heading")), O = z(() => U.value?.element), ae = z(() => xe.value?.element, {
807
833
  placement: "top"
808
- }), A = P(() => ye.value?.element), K = P(() => D.value?.getElement("list")), Y = P(() => D.value?.getElement("mode"));
809
- let L, ce = "visual", Z = 0, ge = !1, T;
834
+ }), P = z(() => pe.value?.element), Z = z(() => R.value?.getElement("list")), X = z(() => R.value?.getElement("mode"));
835
+ let B, fe = "visual", J = 0, be = !1, E;
810
836
  const {
811
- setExternalValue: Pe,
812
- setValue: te,
813
- updateFromHost: Me,
814
- value: O
815
- } = Xa({
816
- getMarkupHost: () => L,
817
- getVisualHost: () => T,
818
- initialValue: c.modelValue,
837
+ setExternalValue: ze,
838
+ setValue: le,
839
+ updateFromHost: Le,
840
+ value: q
841
+ } = rl({
842
+ getMarkupHost: () => B,
843
+ getVisualHost: () => E,
844
+ initialValue: o.modelValue,
819
845
  onChange: (t) => {
820
846
  w("update:modelValue", t), w("change", t);
821
847
  }
822
848
  });
823
- function ve(t) {
824
- return lt(c.locale)[t];
849
+ function ke(t) {
850
+ return nt(o.locale)[t];
825
851
  }
826
- function se() {
827
- L?.destroy(), T?.destroy(), L = void 0, T = void 0, E.value = {
852
+ function de() {
853
+ B?.destroy(), E?.destroy(), B = void 0, E = void 0, H.value = {
828
854
  bold: !1,
829
855
  bulletList: !1,
830
856
  code: !1,
@@ -849,635 +875,655 @@ const Ja = ["data-locale", "data-mode", "data-theme"], _a = {
849
875
  underline: !1
850
876
  };
851
877
  }
852
- function ze(t) {
853
- l.value === "markup" || l.value === "split" && typeof t == "object" ? L?.moveCursor(t) : T?.moveCursor(typeof t == "object" ? "start" : t);
854
- }
855
878
  function Fe(t) {
856
- l.value === "markup" || l.value === "split" && L?.hasFocus() ? L?.insert(t) : T?.insert(t);
879
+ l.value === "markup" || l.value === "split" && typeof t == "object" ? B?.moveCursor(t) : E?.moveCursor(typeof t == "object" ? "start" : t);
857
880
  }
858
- function Ne() {
859
- if (S.value.trim().length === 0)
881
+ function Ne(t) {
882
+ l.value === "markup" || l.value === "split" && B?.hasFocus() ? B?.insert(t) : E?.insert(t);
883
+ }
884
+ function De() {
885
+ if (o.readonly || D.value.trim().length === 0)
860
886
  return;
861
- ge = !0;
862
- const t = _.value.trim() || S.value.trim();
863
- B() ? L?.run(r.setLink(S.value.trim(), void 0, t, j.value)) : F(void 0, u.setLink(S.value.trim(), t, t, j.value)), A.close();
887
+ be = !0;
888
+ const t = te.value.trim() || D.value.trim();
889
+ T() ? B?.run(n.setLink(D.value.trim(), void 0, t, W.value)) : F(void 0, m.setLink(D.value.trim(), t, t, W.value)), P.close();
864
890
  }
865
- function pe() {
866
- A.close();
891
+ function Be() {
892
+ P.close();
867
893
  }
868
- function De() {
869
- const t = v.value.trim();
870
- t.length !== 0 && (B() ? L?.run(
871
- r.insertImage(t, V.value.trim() || "Image", o.value.trim() || void 0)
894
+ function Re() {
895
+ if (o.readonly) return;
896
+ const t = c.value.trim();
897
+ t.length !== 0 && (T() ? B?.run(
898
+ n.insertImage(t, s.value.trim() || "Image", f.value.trim() || void 0)
872
899
  ) : F(
873
900
  void 0,
874
- u.insertImage(t, V.value.trim() || "Image", o.value.trim() || void 0)
875
- ), q.close());
901
+ m.insertImage(t, s.value.trim() || "Image", f.value.trim() || void 0)
902
+ ), O.close());
876
903
  }
877
- function Re() {
878
- q.close();
904
+ function Ie() {
905
+ O.close();
879
906
  }
880
- function Ie(t) {
881
- B() ? L?.run(t === "paragraph" ? r.paragraph : r.heading(Number(t))) : t === "paragraph" ? F(void 0, u.paragraph) : F(void 0, u.heading(Number(t))), G.close();
907
+ function Oe(t) {
908
+ o.readonly || (T() ? B?.run(t === "paragraph" ? n.paragraph : n.heading(Number(t))) : t === "paragraph" ? F(void 0, m.paragraph) : F(void 0, m.heading(Number(t))), Y.close());
882
909
  }
883
910
  async function qe(t) {
884
- B(), await G.toggle(t);
885
- }
886
- async function Oe(t) {
887
- B(), await U.toggle(t);
911
+ o.readonly || (T(), await Y.toggle(t));
888
912
  }
889
913
  async function je(t) {
890
- B() || await Q.toggle(t);
914
+ o.readonly || (T(), await K.toggle(t));
891
915
  }
892
916
  async function Ue(t) {
893
- B() || await W.toggle(t);
917
+ o.readonly || T() || await G.toggle(t);
918
+ }
919
+ async function We(t) {
920
+ o.readonly || T() || await Q.toggle(t);
894
921
  }
895
- function We(t) {
896
- W.close(), !B() && T?.run(u.setBackgroundColor(t));
922
+ function Ke(t) {
923
+ o.readonly || (Q.close(), !T() && E?.run(m.setBackgroundColor(t)));
897
924
  }
898
925
  function Qe(t) {
899
- Q.close(), !B() && T?.run(u.setColor(t));
926
+ o.readonly || (G.close(), !T() && E?.run(m.setColor(t)));
900
927
  }
901
- function xe(t, n) {
902
- B() ? L?.run(r[n]) : F(void 0, t), U.close();
928
+ function Te(t, i) {
929
+ o.readonly || (T() ? B?.run(n[i]) : F(void 0, t), K.close());
903
930
  }
904
931
  async function Ge(t) {
905
- if (B(), A.visible.value) {
906
- A.close();
907
- return;
932
+ if (!o.readonly) {
933
+ if (T(), P.visible.value) {
934
+ P.close();
935
+ return;
936
+ }
937
+ D.value = H.value.linkHref ?? "", te.value = H.value.linkText ?? window.getSelection()?.toString().trim() ?? "", W.value = H.value.linkOpenInNewWindow, await P.open(t);
908
938
  }
909
- S.value = E.value.linkHref ?? "", _.value = E.value.linkText ?? window.getSelection()?.toString().trim() ?? "", j.value = E.value.linkOpenInNewWindow, await A.open(t);
910
939
  }
911
- async function Le(t) {
912
- const n = E.value.linkHref;
913
- if (n === void 0 && t === void 0) {
914
- pe();
940
+ async function Ee(t) {
941
+ if (o.readonly) return;
942
+ const i = H.value.linkHref;
943
+ if (i === void 0 && t === void 0) {
944
+ Be();
915
945
  return;
916
946
  }
917
- S.value = t?.getAttribute("href") ?? n ?? "", _.value = t?.textContent ?? E.value.linkText ?? "", j.value = t?.getAttribute("target") === "_blank" || E.value.linkOpenInNewWindow;
918
- const f = window.getSelection()?.anchorNode, R = f instanceof Element ? f : f?.parentElement, fe = t ?? R?.closest("a");
919
- fe != null && await A.open(fe);
947
+ D.value = t?.getAttribute("href") ?? i ?? "", te.value = t?.textContent ?? H.value.linkText ?? "", W.value = t?.getAttribute("target") === "_blank" || H.value.linkOpenInNewWindow;
948
+ const v = window.getSelection()?.anchorNode, A = v instanceof Element ? v : v?.parentElement, oe = t ?? A?.closest("a");
949
+ oe != null && await P.open(oe);
920
950
  }
921
- function Ke(t) {
922
- const n = t.target;
923
- if (!(n instanceof Element)) return;
924
- const f = n.closest(".ProseMirror img");
925
- if (f !== null) {
926
- t.preventDefault(), T?.selectElement(f), ee.open(f);
951
+ function Ye(t) {
952
+ if (o.readonly) return;
953
+ const i = t.target;
954
+ if (!(i instanceof Element)) return;
955
+ const v = i.closest(".ProseMirror img");
956
+ if (v !== null) {
957
+ t.preventDefault(), E?.selectElement(v), ae.open(v);
927
958
  return;
928
959
  }
929
- const R = n.closest(".ProseMirror a");
930
- R !== null && (t.preventDefault(), T?.selectElement(R), Le(R));
931
- }
932
- async function Ye(t) {
933
- B(), await K.toggle(t);
934
- }
935
- function re(t, n) {
936
- B() ? L?.run(r[n]) : F(void 0, t), K.close();
960
+ const A = i.closest(".ProseMirror a");
961
+ A !== null && (t.preventDefault(), E?.selectElement(A), Ee(A));
937
962
  }
938
963
  async function Ze(t) {
939
- B(), await q.toggle(t);
964
+ o.readonly || (T(), await Z.toggle(t));
940
965
  }
941
- async function Be(t) {
942
- F(void 0, t), await oe();
943
- const n = M.value?.querySelector(".ProseMirror img.ProseMirror-selectednode");
944
- n != null && await ee.open(n);
966
+ function ue(t, i) {
967
+ o.readonly || (T() ? B?.run(n[i]) : F(void 0, t), Z.close());
945
968
  }
946
969
  async function Xe(t) {
947
- await Y.toggle(t);
970
+ o.readonly || (T(), await O.toggle(t));
971
+ }
972
+ async function $e(t) {
973
+ if (o.readonly) return;
974
+ F(void 0, t), await ie();
975
+ const i = y.value?.querySelector(".ProseMirror img.ProseMirror-selectednode");
976
+ i != null && await ae.open(i);
948
977
  }
949
978
  async function Je(t) {
950
- Y.close(), await be(t);
979
+ await X.toggle(t);
951
980
  }
952
- function _e() {
953
- B() ? L?.run(r.insertHtml) : T?.run(u.insertHtml);
981
+ async function _e(t) {
982
+ X.close(), await he(t);
954
983
  }
955
- async function et() {
956
- I.close(), !E.value.formula && (B() ? L?.run(r.insertMathBlock) : T?.run(u.insertMathBlock));
984
+ function et() {
985
+ o.readonly || (T() ? B?.run(n.insertHtml) : E?.run(m.insertHtml));
957
986
  }
958
- function tt() {
959
- I.close(), B() ? L?.run(r.insertInlineMath) : T?.run(u.insertInlineMath);
987
+ function tt(t) {
988
+ if (o.readonly) return;
989
+ const i = h.value[t];
990
+ if (i?.insert === void 0) return;
991
+ const { attrs: v, content: A } = i.insert, oe = `::: ${t}${i.serializeAttributes?.(v) ? ` {${i.serializeAttributes(v)}}` : ""}
992
+ ${A}
993
+ :::`;
994
+ T() ? B?.insert(oe) : E?.run(rt(t, A, v));
960
995
  }
961
- async function at(t) {
962
- B(), E.value.formula || await I.toggle(t);
996
+ async function at() {
997
+ o.readonly || (I.close(), !H.value.formula && (T() ? B?.run(n.insertMathBlock) : E?.run(m.insertMathBlock)));
963
998
  }
964
- function Te(t) {
965
- const n = t.target;
966
- if (n instanceof Node)
967
- for (const f of [
968
- G,
969
- U,
970
- W,
999
+ function lt() {
1000
+ o.readonly || (I.close(), T() ? B?.run(n.insertInlineMath) : E?.run(m.insertInlineMath));
1001
+ }
1002
+ async function ot(t) {
1003
+ o.readonly || (T(), H.value.formula || await I.toggle(t));
1004
+ }
1005
+ function He(t) {
1006
+ const i = t.target;
1007
+ if (i instanceof Node)
1008
+ for (const v of [
1009
+ Y,
1010
+ K,
971
1011
  Q,
1012
+ G,
972
1013
  I,
973
- A,
974
- K,
975
- q,
976
- ee,
977
- Y
1014
+ P,
1015
+ Z,
1016
+ O,
1017
+ ae,
1018
+ X
978
1019
  ])
979
- f.contains(n) || f.close();
1020
+ v.contains(i) || v.close();
980
1021
  }
981
- function Ee(t) {
1022
+ function we(t) {
982
1023
  if (t.key === "Escape")
983
- for (const n of [
984
- G,
985
- U,
986
- W,
1024
+ for (const i of [
1025
+ Y,
1026
+ K,
987
1027
  Q,
1028
+ G,
988
1029
  I,
989
- A,
990
- K,
991
- q,
992
- ee,
993
- Y
1030
+ P,
1031
+ Z,
1032
+ O,
1033
+ ae,
1034
+ X
994
1035
  ])
995
- n.close();
1036
+ i.close();
996
1037
  }
997
- function de() {
998
- l.value !== "markup" && M.value !== void 0 && (T = nt({
999
- directiveAppContext: s,
1000
- directiveComponents: c.directiveComponents,
1001
- features: c.features,
1002
- editable: !c.readonly,
1003
- initialValue: O.value,
1038
+ function me() {
1039
+ l.value !== "markup" && y.value !== void 0 && (E = st({
1040
+ directiveAppContext: C,
1041
+ directives: o.directives === void 0 ? void 0 : h.value,
1042
+ features: o.features,
1043
+ editable: !o.readonly,
1044
+ initialValue: q.value,
1004
1045
  onCancel: () => (w("cancel"), !0),
1005
1046
  onChange: (t) => {
1006
- Me(t, "visual"), M.value !== void 0 && ke(M.value, c.locale);
1047
+ Le(t, "visual"), y.value !== void 0 && ye(y.value, o.locale);
1007
1048
  },
1008
1049
  onSelectionChange: (t) => {
1009
- E.value = t, ge ? ge = !1 : Le();
1050
+ H.value = t, be ? be = !1 : Ee();
1010
1051
  },
1011
1052
  onSubmit: () => (w("submit"), !0),
1012
- placeholder: c.placeholder,
1013
- target: M.value
1014
- }), ke(M.value, c.locale)), l.value !== "wysiwyg" && a.value !== void 0 && (L = it({
1015
- editable: !c.readonly,
1016
- initialValue: O.value,
1017
- onChange: (t) => Me(t, "markup"),
1053
+ placeholder: o.placeholder,
1054
+ target: y.value
1055
+ }), ye(y.value, o.locale)), l.value !== "wysiwyg" && a.value !== void 0 && (B = dt({
1056
+ editable: !o.readonly,
1057
+ initialValue: q.value,
1058
+ onChange: (t) => Le(t, "markup"),
1018
1059
  target: a.value
1019
1060
  }));
1020
1061
  }
1021
- async function be(t) {
1062
+ async function he(t) {
1022
1063
  if (t === l.value)
1023
1064
  return;
1024
- const n = ++Z;
1025
- l.value = t, w("update:mode", t), w("mode-change", t), se(), await oe(), n === Z && de();
1065
+ const i = ++J;
1066
+ l.value = t, w("update:mode", t), w("mode-change", t), de(), await ie(), i === J && me();
1026
1067
  }
1027
- function B() {
1028
- return l.value === "markup" ? !0 : l.value === "wysiwyg" ? !1 : (L?.hasFocus() ? ce = "markup" : T?.hasFocus() && (ce = "visual"), ce === "markup");
1068
+ function T() {
1069
+ return l.value === "markup" ? !0 : l.value === "wysiwyg" ? !1 : (B?.hasFocus() ? fe = "markup" : E?.hasFocus() && (fe = "visual"), fe === "markup");
1029
1070
  }
1030
- function F(t, n) {
1031
- if (!c.readonly) {
1032
- if (B() && t !== void 0) {
1033
- const R = {
1034
- bold: r.bold,
1035
- "fold-heading": r.toggleHeadingFolding,
1036
- "horizontal-rule": r.horizontalRule,
1037
- italic: r.italic,
1038
- mark: r.mark,
1039
- mermaid: r.insertMermaid,
1040
- quote: r.quote,
1041
- redo: r.redo,
1042
- strike: r.strikethrough,
1043
- table: r.insertTable(),
1044
- underline: r.underline,
1045
- undo: r.undo
1071
+ function F(t, i) {
1072
+ if (!o.readonly) {
1073
+ if (T() && t !== void 0) {
1074
+ const A = {
1075
+ bold: n.bold,
1076
+ "fold-heading": n.toggleHeadingFolding,
1077
+ "horizontal-rule": n.horizontalRule,
1078
+ italic: n.italic,
1079
+ mark: n.mark,
1080
+ mermaid: n.insertMermaid,
1081
+ quote: n.quote,
1082
+ redo: n.redo,
1083
+ strike: n.strikethrough,
1084
+ table: n.insertTable(),
1085
+ underline: n.underline,
1086
+ undo: n.undo
1046
1087
  }[t];
1047
- R !== void 0 && L?.run(R);
1088
+ A !== void 0 && B?.run(A);
1048
1089
  return;
1049
1090
  }
1050
- T?.run(n);
1091
+ E?.run(i);
1051
1092
  }
1052
1093
  }
1053
- return ae(
1054
- () => c.modelValue,
1094
+ return ne(
1095
+ () => o.modelValue,
1055
1096
  (t) => {
1056
- t !== O.value && Pe(t);
1097
+ t !== q.value && ze(t);
1057
1098
  }
1058
- ), ae(
1059
- () => c.mode,
1099
+ ), ne(
1100
+ () => o.mode,
1060
1101
  (t) => {
1061
- be(t);
1102
+ he(t);
1062
1103
  }
1063
- ), ae(
1064
- () => c.locale,
1104
+ ), ne(
1105
+ () => o.locale,
1065
1106
  (t) => {
1066
- M.value !== void 0 && ke(M.value, t);
1107
+ y.value !== void 0 && ye(y.value, t);
1067
1108
  }
1068
- ), ae(
1069
- () => c.features,
1109
+ ), ne(
1110
+ () => o.features,
1070
1111
  async () => {
1071
- const t = ++Z;
1072
- se(), await oe(), t === Z && de();
1112
+ const t = ++J;
1113
+ de(), await ie(), t === J && me();
1073
1114
  }
1074
- ), ae(
1075
- () => c.readonly,
1115
+ ), ne(
1116
+ () => o.readonly,
1076
1117
  async () => {
1077
- const t = ++Z;
1078
- se(), await oe(), t === Z && de();
1118
+ we(new KeyboardEvent("keydown", { key: "Escape" }));
1119
+ const t = ++J;
1120
+ de(), await ie(), t === J && me();
1079
1121
  }
1080
- ), bt(() => {
1081
- de(), document.addEventListener("pointerdown", Te), document.addEventListener("keydown", Ee);
1082
- }), he(() => {
1083
- se(), document.removeEventListener("pointerdown", Te), document.removeEventListener("keydown", Ee);
1084
- }), k({
1085
- append: (t) => te(Ve(O.value, t)),
1086
- clear: () => te(""),
1087
- focus: () => l.value === "markup" ? L?.focus() : T?.focus(),
1122
+ ), Ct(() => {
1123
+ me(), document.addEventListener("pointerdown", He), document.addEventListener("keydown", we);
1124
+ }), Me(() => {
1125
+ de(), document.removeEventListener("pointerdown", He), document.removeEventListener("keydown", we);
1126
+ }), b({
1127
+ append: (t) => le(Ae(q.value, t)),
1128
+ clear: () => le(""),
1129
+ focus: () => l.value === "markup" ? B?.focus() : E?.focus(),
1088
1130
  getMode: () => l.value,
1089
- getValue: () => O.value,
1090
- hasFocus: () => l.value === "markup" ? L?.hasFocus() ?? !1 : T?.hasFocus() ?? !1,
1091
- insert: Fe,
1092
- isEmpty: () => O.value.length === 0,
1093
- moveCursor: ze,
1094
- prepend: (t) => te(Ve(t, O.value)),
1095
- replace: te,
1096
- setMode: be,
1097
- setValue: te
1098
- }), (t, n) => (i(), m("section", {
1131
+ getValue: () => q.value,
1132
+ hasFocus: () => l.value === "markup" ? B?.hasFocus() ?? !1 : E?.hasFocus() ?? !1,
1133
+ insert: Ne,
1134
+ isEmpty: () => q.value.length === 0,
1135
+ moveCursor: Fe,
1136
+ prepend: (t) => le(Ae(t, q.value)),
1137
+ replace: le,
1138
+ setMode: he,
1139
+ setValue: le
1140
+ }), (t, i) => (r(), d("section", {
1099
1141
  class: "markdown-editor",
1100
1142
  "data-locale": e.locale,
1101
1143
  "data-mode": l.value,
1102
1144
  "data-theme": e.theme,
1103
- onClick: Ke
1145
+ onClick: Ye
1104
1146
  }, [
1105
- t.$slots.header ? (i(), m("header", _a, [
1106
- we(t.$slots, "header", {}, void 0, !0)
1147
+ t.$slots.header ? (r(), d("header", dl, [
1148
+ Ce(t.$slots, "header", {}, void 0, !0)
1107
1149
  ])) : $("", !0),
1108
- e.readonly ? $("", !0) : (i(), le(Ya, {
1150
+ e.readonly ? $("", !0) : (r(), ee(nl, {
1109
1151
  key: 1,
1110
- commands: d(u),
1111
- "background-color-menu-visible": d(W).visible.value,
1112
- "color-menu-visible": d(Q).visible.value,
1113
- "code-menu-visible": d(U).visible.value,
1114
- "formula-menu-visible": d(I).visible.value,
1115
- "heading-menu-visible": d(G).visible.value,
1116
- "image-editor-visible": d(q).visible.value,
1117
- "link-editor-visible": d(A).visible.value,
1118
- "list-menu-visible": d(K).visible.value,
1152
+ commands: u(m),
1153
+ "background-color-menu-visible": u(Q).visible.value,
1154
+ "color-menu-visible": u(G).visible.value,
1155
+ "code-menu-visible": u(K).visible.value,
1156
+ "formula-menu-visible": u(I).visible.value,
1157
+ "heading-menu-visible": u(Y).visible.value,
1158
+ "image-editor-visible": u(O).visible.value,
1159
+ "link-editor-visible": u(P).visible.value,
1160
+ "list-menu-visible": u(Z).visible.value,
1119
1161
  mode: l.value,
1120
- "mode-menu-visible": d(Y).visible.value,
1121
- state: E.value,
1122
- "text-style-label": Ae.value,
1162
+ "mode-menu-visible": u(X).visible.value,
1163
+ state: H.value,
1164
+ "text-style-label": Pe.value,
1123
1165
  "toolbar-preset": e.toolbarPreset,
1124
1166
  "toolbar-config": e.toolbarConfig,
1125
1167
  features: e.features,
1126
- translate: ve,
1168
+ directives: o.directives === void 0 ? void 0 : h.value,
1169
+ translate: ke,
1127
1170
  onExecute: F,
1128
- onInsertHtml: _e,
1129
- onToggleFormulaMenu: at,
1130
- onToggleCodeMenu: Oe,
1131
- onToggleBackgroundColorMenu: Ue,
1132
- onToggleColorMenu: je,
1171
+ onInsertHtml: et,
1172
+ onInsertDirective: tt,
1173
+ onToggleFormulaMenu: ot,
1174
+ onToggleCodeMenu: je,
1175
+ onToggleBackgroundColorMenu: We,
1176
+ onToggleColorMenu: Ue,
1133
1177
  onToggleHeadingMenu: qe,
1134
- onToggleImageEditor: Ze,
1178
+ onToggleImageEditor: Xe,
1135
1179
  onToggleLinkEditor: Ge,
1136
- onToggleListMenu: Ye,
1137
- onToggleModeMenu: Xe
1180
+ onToggleListMenu: Ze,
1181
+ onToggleModeMenu: Je
1138
1182
  }, {
1139
- default: ft((f) => [
1140
- we(t.$slots, "toolbar", kt(wt(f)), void 0, !0)
1183
+ default: Mt((v) => [
1184
+ Ce(t.$slots, "toolbar", pt(xt(v)), void 0, !0)
1141
1185
  ]),
1142
1186
  _: 3
1143
- }, 8, ["commands", "background-color-menu-visible", "color-menu-visible", "code-menu-visible", "formula-menu-visible", "heading-menu-visible", "image-editor-visible", "link-editor-visible", "list-menu-visible", "mode", "mode-menu-visible", "state", "text-style-label", "toolbar-preset", "toolbar-config", "features"])),
1144
- (i(), le(ht, { to: "body" }, [
1145
- C(ka, {
1187
+ }, 8, ["commands", "background-color-menu-visible", "color-menu-visible", "code-menu-visible", "formula-menu-visible", "heading-menu-visible", "image-editor-visible", "link-editor-visible", "list-menu-visible", "mode", "mode-menu-visible", "state", "text-style-label", "toolbar-preset", "toolbar-config", "features", "directives"])),
1188
+ (r(), ee(Lt, { to: "body" }, [
1189
+ p(xa, {
1146
1190
  ref_key: "floatingMenus",
1147
- ref: D,
1148
- "code-visible": d(U).visible.value,
1149
- "background-color-visible": d(W).visible.value,
1150
- "color-visible": d(Q).visible.value,
1151
- "formula-visible": d(I).visible.value,
1152
- "heading-visible": d(G).visible.value,
1153
- "list-visible": d(K).visible.value,
1191
+ ref: R,
1192
+ "code-visible": u(K).visible.value,
1193
+ "background-color-visible": u(Q).visible.value,
1194
+ "color-visible": u(G).visible.value,
1195
+ "formula-visible": u(I).visible.value,
1196
+ "heading-visible": u(Y).visible.value,
1197
+ "list-visible": u(Z).visible.value,
1154
1198
  mode: l.value,
1155
- "mode-visible": d(Y).visible.value,
1156
- state: E.value,
1157
- "text-style": me.value,
1199
+ "mode-visible": u(X).visible.value,
1200
+ state: H.value,
1201
+ "text-style": ve.value,
1158
1202
  theme: e.theme,
1159
- translate: ve,
1160
- onBulletList: n[0] || (n[0] = (f) => re(d(u).bulletList, "bulletList")),
1161
- onCodeBlock: n[1] || (n[1] = (f) => xe(d(u).codeBlock, "codeBlock")),
1162
- onSelectBackgroundColor: We,
1203
+ translate: ke,
1204
+ onBulletList: i[0] || (i[0] = (v) => ue(u(m).bulletList, "bulletList")),
1205
+ onCodeBlock: i[1] || (i[1] = (v) => Te(u(m).codeBlock, "codeBlock")),
1206
+ onSelectBackgroundColor: Ke,
1163
1207
  onSelectColor: Qe,
1164
- onIndentList: n[2] || (n[2] = (f) => re(d(u).sinkListItem, "indentList")),
1165
- onInlineCode: n[3] || (n[3] = (f) => xe(d(u).code, "code")),
1166
- onInlineFormula: tt,
1167
- onMathBlock: et,
1168
- onOrderedList: n[4] || (n[4] = (f) => re(d(u).orderedList, "orderedList")),
1169
- onOutdentList: n[5] || (n[5] = (f) => re(d(u).liftListItem, "outdentList")),
1170
- onSelectMode: Je,
1171
- onSelectTextStyle: Ie
1208
+ onIndentList: i[2] || (i[2] = (v) => ue(u(m).sinkListItem, "indentList")),
1209
+ onInlineCode: i[3] || (i[3] = (v) => Te(u(m).code, "code")),
1210
+ onInlineFormula: lt,
1211
+ onMathBlock: at,
1212
+ onOrderedList: i[4] || (i[4] = (v) => ue(u(m).orderedList, "orderedList")),
1213
+ onOutdentList: i[5] || (i[5] = (v) => ue(u(m).liftListItem, "outdentList")),
1214
+ onSelectMode: _e,
1215
+ onSelectTextStyle: Oe
1172
1216
  }, null, 8, ["code-visible", "background-color-visible", "color-visible", "formula-visible", "heading-visible", "list-visible", "mode", "mode-visible", "state", "text-style", "theme"]),
1173
- d(A).visible.value ? (i(), le(Ht, {
1217
+ u(P).visible.value ? (r(), ee(Ft, {
1174
1218
  key: 0,
1175
1219
  ref_key: "linkForm",
1176
- ref: ye,
1177
- "has-current-link": E.value.linkHref !== void 0,
1220
+ ref: pe,
1221
+ "has-current-link": H.value.linkHref !== void 0,
1178
1222
  locale: e.locale,
1179
- "open-in-new-window": j.value,
1223
+ "open-in-new-window": W.value,
1180
1224
  theme: e.theme,
1181
- text: _.value,
1182
- url: S.value,
1183
- onApply: Ne,
1184
- onCancel: pe,
1185
- onRemove: n[6] || (n[6] = (f) => F(void 0, d(u).removeLink)),
1186
- "onUpdate:text": n[7] || (n[7] = (f) => _.value = f),
1187
- "onUpdate:url": n[8] || (n[8] = (f) => S.value = f),
1188
- "onUpdate:openInNewWindow": n[9] || (n[9] = (f) => j.value = f)
1225
+ text: te.value,
1226
+ url: D.value,
1227
+ onApply: De,
1228
+ onCancel: Be,
1229
+ onRemove: i[6] || (i[6] = (v) => F(void 0, u(m).removeLink)),
1230
+ "onUpdate:text": i[7] || (i[7] = (v) => te.value = v),
1231
+ "onUpdate:url": i[8] || (i[8] = (v) => D.value = v),
1232
+ "onUpdate:openInNewWindow": i[9] || (i[9] = (v) => W.value = v)
1189
1233
  }, null, 8, ["has-current-link", "locale", "open-in-new-window", "theme", "text", "url"])) : $("", !0),
1190
- d(q).visible.value ? (i(), le(Vt, {
1234
+ u(O).visible.value ? (r(), ee(Nt, {
1191
1235
  key: 1,
1192
1236
  ref_key: "imageForm",
1193
- ref: b,
1194
- alt: V.value,
1237
+ ref: U,
1238
+ variant: "basic",
1239
+ alt: s.value,
1195
1240
  locale: e.locale,
1196
1241
  theme: e.theme,
1197
- title: o.value,
1242
+ title: f.value,
1198
1243
  "upload-image": e.uploadImage,
1199
- url: v.value,
1200
- onApply: De,
1201
- onCancel: Re,
1202
- "onUpdate:alt": n[10] || (n[10] = (f) => V.value = f),
1203
- "onUpdate:title": n[11] || (n[11] = (f) => o.value = f),
1204
- "onUpdate:url": n[12] || (n[12] = (f) => v.value = f)
1244
+ url: c.value,
1245
+ onApply: Re,
1246
+ onCancel: Ie,
1247
+ "onUpdate:alt": i[10] || (i[10] = (v) => s.value = v),
1248
+ "onUpdate:title": i[11] || (i[11] = (v) => f.value = v),
1249
+ "onUpdate:url": i[12] || (i[12] = (v) => c.value = v)
1205
1250
  }, null, 8, ["alt", "locale", "theme", "title", "upload-image", "url"])) : $("", !0),
1206
- d(ee).visible.value ? (i(), le(Ma, {
1251
+ u(ae).visible.value ? (r(), ee($a, {
1207
1252
  key: 2,
1208
1253
  ref_key: "imageActions",
1209
- ref: Ce,
1210
- "object-fit": E.value.imageObjectFit,
1254
+ ref: xe,
1255
+ "object-fit": H.value.imageObjectFit,
1211
1256
  theme: e.theme,
1212
- translate: ve,
1213
- onFullWidth: n[13] || (n[13] = (f) => Be(d(u).setImageDisplay("100%", "contain", null))),
1214
- onObjectFit: n[14] || (n[14] = (f) => Be(d(u).setImageDisplay(void 0, f)))
1257
+ translate: ke,
1258
+ onFullWidth: i[13] || (i[13] = (v) => $e(u(m).setImageDisplay("100%", "contain", null))),
1259
+ onObjectFit: i[14] || (i[14] = (v) => $e(u(m).setImageDisplay(void 0, v)))
1215
1260
  }, null, 8, ["object-fit", "theme"])) : $("", !0)
1216
1261
  ])),
1217
1262
  g("div", {
1218
- class: yt(["markdown-editor__hosts", { "markdown-editor__hosts--split": l.value === "split" }])
1263
+ class: Bt(["markdown-editor__hosts", { "markdown-editor__hosts--split": l.value === "split" }])
1219
1264
  }, [
1220
- l.value !== "markup" ? (i(), m("div", {
1265
+ l.value !== "markup" ? (r(), d("div", {
1221
1266
  key: 0,
1222
1267
  ref_key: "visualTarget",
1223
- ref: M,
1268
+ ref: y,
1224
1269
  class: "markdown-editor__visual"
1225
1270
  }, null, 512)) : $("", !0),
1226
- l.value !== "wysiwyg" ? (i(), m("div", {
1271
+ l.value !== "wysiwyg" ? (r(), d("div", {
1227
1272
  key: 1,
1228
1273
  ref_key: "markupTarget",
1229
1274
  ref: a,
1230
1275
  class: "markdown-editor__markup"
1231
1276
  }, null, 512)) : $("", !0)
1232
1277
  ], 2)
1233
- ], 8, Ja));
1278
+ ], 8, sl));
1234
1279
  }
1235
- }), ul = /* @__PURE__ */ ie(el, [["__scopeId", "data-v-623bd764"]]);
1236
- function ml(e = {}) {
1237
- const k = rt(e), x = y(k.getValue()), c = y(k.getMode()), w = y(k.readonly), u = y(k.toolbarVisible), r = () => k.destroy();
1238
- return k.on("change", (s) => {
1239
- x.value = s;
1240
- }), k.on("modeChange", (s) => {
1241
- c.value = s;
1242
- }), k.on("changeReadonly", ({ readonly: s }) => {
1243
- w.value = s;
1244
- }), k.on("changeToolbarVisibility", ({ visible: s }) => {
1245
- u.value = s;
1246
- }), Se() !== null && he(r), {
1247
- destroy: r,
1248
- editor: k,
1249
- mode: ue(c),
1250
- readonly: ue(w),
1251
- toolbarVisible: ue(u),
1252
- value: ue(x)
1280
+ }), Cl = /* @__PURE__ */ se(ul, [["__scopeId", "data-v-496aeb11"]]);
1281
+ function Ml(e = {}) {
1282
+ const b = mt(e), x = M(b.getValue()), o = M(b.getMode()), w = M(b.readonly), m = M(b.toolbarVisible), h = () => b.destroy();
1283
+ return b.on("change", (n) => {
1284
+ x.value = n;
1285
+ }), b.on("modeChange", (n) => {
1286
+ o.value = n;
1287
+ }), b.on("changeReadonly", ({ readonly: n }) => {
1288
+ w.value = n;
1289
+ }), b.on("changeToolbarVisibility", ({ visible: n }) => {
1290
+ m.value = n;
1291
+ }), Se() !== null && Me(h), {
1292
+ destroy: h,
1293
+ editor: b,
1294
+ mode: ce(o),
1295
+ readonly: ce(w),
1296
+ toolbarVisible: ce(m),
1297
+ value: ce(x)
1253
1298
  };
1254
1299
  }
1255
1300
  export {
1256
- pl as ActionsManager,
1257
- Gl as BaseInputRules,
1258
- Kl as BaseKeymap,
1259
- Yl as BaseSchema,
1260
- Zl as Blockquote,
1261
- Ui as BlockquoteSpecs,
1262
- Xl as Bold,
1263
- Wi as BoldAttrs,
1264
- Qi as BoldSpecs,
1265
- Gi as BreakNodeName,
1266
- Jl as Breaks,
1267
- Ki as BreaksSpecs,
1268
- _l as ClicksOnEdges,
1269
- eo as Clipboard,
1270
- to as Code,
1271
- ao as CodeBlock,
1272
- Yi as CodeBlockAttrs,
1273
- Zi as CodeBlockSpecs,
1274
- Xi as CodeSpecs,
1275
- Fi as CommonMarkPreset,
1276
- qi as CommonMarkSpecsPreset,
1277
- lo as Cursor,
1278
- Ni as DefaultPreset,
1279
- oo as Deflist,
1280
- Ji as DeflistAttr,
1281
- _i as DeflistNode,
1282
- es as DeflistSpecs,
1283
- no as EditorModeKeymap,
1284
- xl as EventEmitter,
1285
- Ll as ExtensionBuilder,
1286
- Bl as ExtensionPriority,
1287
- Tl as ExtensionsManager,
1288
- Di as FullPreset,
1289
- Oi as FullSpecsPreset,
1290
- io as GapCursorSelection,
1291
- so as Heading,
1292
- ts as HeadingSpecs,
1293
- ro as History,
1294
- uo as HistoryAction,
1295
- mo as HorizontalRule,
1296
- as as HorizontalRuleSpecs,
1297
- co as Html,
1298
- go as HtmlAttr,
1299
- vo as HtmlNode,
1300
- bo as Image,
1301
- fo as ImageAttr,
1302
- ko as Italic,
1303
- ls as ItalicAttrs,
1304
- os as ItalicSpecs,
1305
- vl as Lang,
1306
- wo as Link,
1307
- ns as LinkAttr,
1308
- is as LinkSpecs,
1309
- ho as Lists,
1310
- El as Logger,
1311
- $l as Logger2,
1312
- yo as Mark,
1313
- Hl as MarkdownCodec,
1314
- ul as MarkdownEditor,
1315
- Ai as MarkdownEditorForm,
1316
- Vt as MarkdownEditorImageForm,
1317
- Ht as MarkdownEditorLinkForm,
1318
- Pi as MarkdownEditorTextInput,
1319
- Vl as MarkdownParser,
1320
- Sl as MarkdownParserDynamicModifier,
1321
- Co as Mermaid,
1322
- Al as ParserTokenRegistry,
1323
- Pl as ParserTokensRegistry,
1324
- Mo as Placeholder,
1325
- po as QuoteLink,
1326
- xo as Resizable,
1327
- zl as SafeEventEmitter,
1328
- Fl as SchemaDynamicModifier,
1329
- Nl as SchemaSpecRegistry,
1330
- Lo as Selection,
1331
- Bo as SelectionContext,
1332
- Dl as SerializerTokenRegistry,
1333
- Rl as SerializerTokensRegistry,
1334
- To as Strike,
1335
- Eo as Table,
1336
- ss as TableAttrs,
1337
- rs as TableCellAlign,
1338
- ds as TableNode,
1339
- us as TableSpecs,
1340
- $o as Underline,
1341
- Ho as VERSION,
1342
- Il as WysiwygContentHandler,
1343
- Vo as YfmHtmlBlock,
1344
- Ri as ZeroPreset,
1345
- So as addBreak,
1346
- Ao as addEmptyDefaultTextblockToEndOfDocumentActionName,
1347
- Po as addEmptyDefaultTextblockToStartOfDocumentActionName,
1348
- zo as addHorizontalRule,
1349
- Fo as addImage,
1350
- No as addParagraphToEnd,
1351
- Do as addParagraphToStart,
1352
- Ro as addTableColumn,
1353
- Io as addTableRow,
1354
- qo as arrowDown,
1355
- Oo as arrowLeft,
1356
- jo as arrowRight,
1357
- Uo as arrowUp,
1358
- ql as basicMarkdownCodec,
1359
- Ol as basicMarkdownSchema,
1360
- ms as blockquoteNodeName,
1361
- cs as boldMarkName,
1362
- hl as cn,
1363
- gs as codeBlockNodeName,
1364
- vs as codeMarkName,
1365
- Wo as collapseListsPlugin,
1366
- pi as commonmarkToolbarConfig,
1367
- bl as configure,
1368
- ot as createBasicEditorCommands,
1369
- st as createBasicMarkupCommands,
1370
- Qo as createFakeParagraph,
1371
- Go as createGapCursorPlugin,
1372
- Ko as createHistoryActions,
1373
- Yo as createListActions,
1374
- Zo as createListsInputRules,
1375
- Xo as createListsKeymap,
1376
- rt as createMarkdownEditor,
1377
- Jo as createTable,
1378
- xi as createToolbarConfig,
1379
- Li as createToolbarGroup,
1380
- Bi as createToolbarItem,
1381
- _o as createVueContextPanelPlugin,
1382
- en as createVueNodeView,
1383
- tn as createVueWidgetDecoration,
1384
- jl as defaultMarkdownSchema,
1385
- an as defaultMermaidSource,
1386
- Ti as defaultToolbarConfig,
1387
- ln as defaultYfmHtml,
1388
- on as deleteTable,
1389
- nn as deleteTableColumn,
1390
- sn as deleteTableRow,
1391
- rn as findFakeParaPosClosestToPos,
1392
- dn as findFakeParaPosForCodeBlock,
1393
- un as findFakeParaPosForNodeSelection,
1394
- mn as findFakeParaPosForTextSelection,
1395
- Ei as fullToolbarConfig,
1396
- cn as gapCursorBackspace,
1397
- Ul as getBasicWysiwygSelectionState,
1398
- gn as getBlockquoteType,
1399
- vn as getBoldType,
1400
- bn as getCodeBlockType,
1401
- fn as getCodeType,
1402
- fl as getConfig,
1403
- kn as getCurrentLink,
1404
- wn as getDeflistTypes,
1405
- hn as getHeadingType,
1406
- yn as getHorizontalRuleType,
1407
- Cn as getImageType,
1408
- Mn as getItalicType,
1409
- pn as getLinkType,
1410
- xn as getMarkType,
1411
- lt as getMarkdownEditorMessages,
1412
- Ln as getQuoteLinkType,
1413
- Bn as getStrikeType,
1414
- Tt as getToolbarConfig,
1415
- Tn as getUnderlineType,
1416
- En as goToTableCell,
1417
- bs as headingLevelAttr,
1418
- fs as headingNodeName,
1419
- $n as hierarchicalSelectAll,
1420
- ks as horizontalRuleMarkupAttr,
1421
- ws as horizontalRuleNodeName,
1422
- Hn as imageNodeName,
1423
- Vn as imageObjectFitValues,
1424
- Sn as insertMermaid,
1425
- An as insertTable,
1426
- Pn as insertYfmHtmlBlock,
1427
- zn as isBreakNode,
1428
- Fn as isGapCursorSelection,
1429
- Nn as isInsideCode,
1430
- X as isToolbarItemActive,
1431
- $t as isToolbarItemAvailable,
1301
+ Pl as ActionsManager,
1302
+ oo as BaseInputRules,
1303
+ no as BaseKeymap,
1304
+ io as BaseSchema,
1305
+ ro as Blockquote,
1306
+ tr as BlockquoteSpecs,
1307
+ so as Bold,
1308
+ ar as BoldAttrs,
1309
+ lr as BoldSpecs,
1310
+ or as BreakNodeName,
1311
+ uo as Breaks,
1312
+ nr as BreaksSpecs,
1313
+ mo as ClicksOnEdges,
1314
+ co as Clipboard,
1315
+ go as Code,
1316
+ vo as CodeBlock,
1317
+ ir as CodeBlockAttrs,
1318
+ rr as CodeBlockSpecs,
1319
+ sr as CodeSpecs,
1320
+ Qi as CommonMarkPreset,
1321
+ Ji as CommonMarkSpecsPreset,
1322
+ fo as Cursor,
1323
+ Gi as DefaultPreset,
1324
+ bo as Deflist,
1325
+ dr as DeflistAttr,
1326
+ ur as DeflistNode,
1327
+ mr as DeflistSpecs,
1328
+ ko as EditorModeKeymap,
1329
+ zl as EventEmitter,
1330
+ Fl as ExtensionBuilder,
1331
+ Nl as ExtensionPriority,
1332
+ Dl as ExtensionsManager,
1333
+ Yi as FullPreset,
1334
+ _i as FullSpecsPreset,
1335
+ wo as GapCursorSelection,
1336
+ ho as Heading,
1337
+ cr as HeadingSpecs,
1338
+ yo as History,
1339
+ Co as HistoryAction,
1340
+ Mo as HorizontalRule,
1341
+ gr as HorizontalRuleSpecs,
1342
+ po as Html,
1343
+ xo as HtmlAttr,
1344
+ Lo as HtmlNode,
1345
+ Bo as Image,
1346
+ To as ImageAttr,
1347
+ Eo as Italic,
1348
+ vr as ItalicAttrs,
1349
+ fr as ItalicSpecs,
1350
+ Ll as Lang,
1351
+ $o as Link,
1352
+ br as LinkAttr,
1353
+ kr as LinkSpecs,
1354
+ Ho as Lists,
1355
+ Rl as Logger,
1356
+ Il as Logger2,
1357
+ Vo as Mark,
1358
+ Ol as MarkdownCodec,
1359
+ Cl as MarkdownEditor,
1360
+ Ui as MarkdownEditorForm,
1361
+ Nt as MarkdownEditorImageForm,
1362
+ Ft as MarkdownEditorLinkForm,
1363
+ Wi as MarkdownEditorTextInput,
1364
+ ql as MarkdownParser,
1365
+ jl as MarkdownParserDynamicModifier,
1366
+ Ao as Mermaid,
1367
+ Ul as ParserTokenRegistry,
1368
+ Wl as ParserTokensRegistry,
1369
+ So as Placeholder,
1370
+ Po as QuoteLink,
1371
+ zo as Resizable,
1372
+ Kl as SafeEventEmitter,
1373
+ Ql as SchemaDynamicModifier,
1374
+ Gl as SchemaSpecRegistry,
1375
+ Fo as Selection,
1376
+ No as SelectionContext,
1377
+ Yl as SerializerTokenRegistry,
1378
+ Zl as SerializerTokensRegistry,
1379
+ Do as Strike,
1380
+ Ro as Table,
1381
+ wr as TableAttrs,
1382
+ hr as TableCellAlign,
1383
+ yr as TableNode,
1384
+ Cr as TableSpecs,
1385
+ Io as Underline,
1386
+ Oo as VERSION,
1387
+ Xl as WysiwygContentHandler,
1388
+ qo as YfmHtmlBlock,
1389
+ Zi as ZeroPreset,
1390
+ jo as addBreak,
1391
+ Uo as addEmptyDefaultTextblockToEndOfDocumentActionName,
1392
+ Wo as addEmptyDefaultTextblockToStartOfDocumentActionName,
1393
+ Ko as addHorizontalRule,
1394
+ Qo as addImage,
1395
+ Go as addParagraphToEnd,
1396
+ Yo as addParagraphToStart,
1397
+ Zo as addTableColumn,
1398
+ Xo as addTableRow,
1399
+ Jo as arrowDown,
1400
+ _o as arrowLeft,
1401
+ en as arrowRight,
1402
+ tn as arrowUp,
1403
+ Jl as basicMarkdownCodec,
1404
+ _l as basicMarkdownSchema,
1405
+ Mr as blockquoteNodeName,
1406
+ pr as boldMarkName,
1407
+ Hl as cn,
1408
+ xr as codeBlockNodeName,
1409
+ Lr as codeMarkName,
1410
+ an as collapseListsPlugin,
1411
+ Pi as commonmarkToolbarConfig,
1412
+ Bl as configure,
1413
+ it as createBasicEditorCommands,
1414
+ ut as createBasicMarkupCommands,
1415
+ ln as createFakeParagraph,
1416
+ on as createGapCursorPlugin,
1417
+ nn as createHistoryActions,
1418
+ rn as createListActions,
1419
+ sn as createListsInputRules,
1420
+ dn as createListsKeymap,
1421
+ mt as createMarkdownEditor,
1422
+ un as createTable,
1423
+ zi as createToolbarConfig,
1424
+ Fi as createToolbarGroup,
1425
+ Ni as createToolbarItem,
1426
+ mn as createVueContextPanelPlugin,
1427
+ cn as createVueNodeView,
1428
+ gn as createVueWidgetDecoration,
1429
+ eo as defaultMarkdownSchema,
1430
+ vn as defaultMermaidSource,
1431
+ Di as defaultToolbarConfig,
1432
+ fn as defaultYfmHtml,
1433
+ bn as deleteTable,
1434
+ kn as deleteTableColumn,
1435
+ wn as deleteTableRow,
1436
+ hn as findFakeParaPosClosestToPos,
1437
+ yn as findFakeParaPosForCodeBlock,
1438
+ Cn as findFakeParaPosForNodeSelection,
1439
+ Mn as findFakeParaPosForTextSelection,
1440
+ Ri as fullToolbarConfig,
1441
+ pn as gapCursorBackspace,
1442
+ to as getBasicWysiwygSelectionState,
1443
+ xn as getBlockquoteType,
1444
+ Ln as getBoldType,
1445
+ Bn as getCodeBlockType,
1446
+ Tn as getCodeType,
1447
+ Tl as getConfig,
1448
+ En as getCurrentLink,
1449
+ $n as getDeflistTypes,
1450
+ Hn as getHeadingType,
1451
+ Vn as getHorizontalRuleType,
1452
+ An as getImageType,
1453
+ Sn as getItalicType,
1454
+ Pn as getLinkType,
1455
+ zn as getMarkType,
1456
+ nt as getMarkdownEditorMessages,
1457
+ Fn as getQuoteLinkType,
1458
+ Nn as getStrikeType,
1459
+ St as getToolbarConfig,
1460
+ Dn as getUnderlineType,
1461
+ Rn as goToTableCell,
1462
+ Br as headingLevelAttr,
1463
+ Tr as headingNodeName,
1464
+ In as hierarchicalSelectAll,
1465
+ Er as horizontalRuleMarkupAttr,
1466
+ $r as horizontalRuleNodeName,
1467
+ On as imageNodeName,
1468
+ qn as imageObjectFitValues,
1469
+ rt as insertDirective,
1470
+ jn as insertMermaid,
1471
+ Un as insertTable,
1472
+ Wn as insertYfmHtmlBlock,
1473
+ Kn as isBreakNode,
1474
+ Qn as isGapCursorSelection,
1475
+ Gn as isInsideCode,
1476
+ _ as isToolbarItemActive,
1477
+ zt as isToolbarItemAvailable,
1432
1478
  N as isToolbarItemEnabled,
1433
- hs as italicMarkName,
1434
- Dn as joinPrevList,
1435
- Rn as liftEmptyListItem,
1436
- In as liftFromQuote,
1437
- ys as linkMarkName,
1438
- qn as markMarkName,
1439
- Cl as markdownEditorMessages,
1440
- $i as markdownEditorToolbarItemIds,
1441
- On as mergeListsPlugin,
1442
- jn as mermaidActionName,
1443
- Un as mermaidNodeName,
1444
- Hi as minimalToolbarConfig,
1445
- it as mountBasicMarkupEditor,
1446
- nt as mountBasicWysiwygEditor,
1447
- Wn as moveToNextTableRow,
1448
- Qn as newlineInCode,
1449
- Et as normalizeToolbarItem,
1450
- Gn as quoteLinkActionName,
1451
- Kn as quoteLinkNodeName,
1452
- Yn as removeCurrentLink,
1453
- Zn as removeLink,
1454
- Wl as renderMarkdownPreview,
1455
- Xn as resetCodeBlock,
1456
- Jn as resetHeading,
1457
- _n as setCodeBlock,
1458
- ei as setCodeBlockLanguage,
1459
- ti as setImageDisplay,
1460
- ai as setLink,
1461
- li as setTableColumnAlignment,
1462
- oi as sinkOnlySelectedListItem,
1463
- ni as splitDeflist,
1464
- ii as strikeMarkName,
1465
- kl as subscribeConfigure,
1466
- si as toHeading,
1467
- ri as toList,
1468
- di as toggleBold,
1469
- ui as toggleCode,
1470
- mi as toggleHighlight,
1471
- ci as toggleItalic,
1472
- gi as toggleLink,
1473
- vi as toggleQuote,
1474
- bi as toggleQuoteLink,
1475
- fi as toggleStrike,
1476
- ki as toggleUnderline,
1477
- wi as underlineMarkName,
1478
- ml as useMarkdownEditor,
1479
- hi as wrapToDeflist,
1480
- yi as yfmHtmlBlockActionName,
1481
- Ci as yfmHtmlBlockNodeName,
1482
- Vi as zeroToolbarConfig
1479
+ Hr as italicMarkName,
1480
+ Yn as joinPrevList,
1481
+ Zn as liftEmptyListItem,
1482
+ Xn as liftFromQuote,
1483
+ Vr as linkMarkName,
1484
+ Jn as markMarkName,
1485
+ Al as markdownEditorMessages,
1486
+ Ii as markdownEditorToolbarItemIds,
1487
+ _n as mergeListsPlugin,
1488
+ ei as mermaidActionName,
1489
+ ti as mermaidNodeName,
1490
+ Oi as minimalToolbarConfig,
1491
+ dt as mountBasicMarkupEditor,
1492
+ st as mountBasicWysiwygEditor,
1493
+ ai as moveToNextTableRow,
1494
+ li as newlineInCode,
1495
+ Pt as normalizeToolbarItem,
1496
+ oi as quoteLinkActionName,
1497
+ ni as quoteLinkNodeName,
1498
+ ii as removeCurrentLink,
1499
+ ri as removeLink,
1500
+ ao as renderMarkdownPreview,
1501
+ si as resetCodeBlock,
1502
+ di as resetHeading,
1503
+ ui as setCodeBlock,
1504
+ mi as setCodeBlockLanguage,
1505
+ ci as setImageDisplay,
1506
+ gi as setLink,
1507
+ vi as setTableColumnAlignment,
1508
+ fi as sinkOnlySelectedListItem,
1509
+ bi as splitDeflist,
1510
+ ki as strikeMarkName,
1511
+ El as subscribeConfigure,
1512
+ wi as toHeading,
1513
+ hi as toList,
1514
+ yi as toggleBold,
1515
+ Ci as toggleCode,
1516
+ Mi as toggleHighlight,
1517
+ pi as toggleItalic,
1518
+ xi as toggleLink,
1519
+ Li as toggleQuote,
1520
+ Bi as toggleQuoteLink,
1521
+ Ti as toggleStrike,
1522
+ Ei as toggleUnderline,
1523
+ $i as underlineMarkName,
1524
+ Ml as useMarkdownEditor,
1525
+ Hi as wrapToDeflist,
1526
+ Vi as yfmHtmlBlockActionName,
1527
+ Ai as yfmHtmlBlockNodeName,
1528
+ qi as zeroToolbarConfig
1483
1529
  };