hexagon-editor 0.1.3 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,22 +1,22 @@
1
- import { Lang as Za, configure as Ka, getConfig as Xa, subscribeConfigure as Ja } from "./configure.js";
2
- import { cn as el } from "./classname.js";
3
- import { getMarkdownEditorMessages as Ke } from "./i18n.js";
4
- import { markdownEditorMessages as al } from "./i18n.js";
5
- import { n as Xe, v as ge, t as Je, r as _e, o as et, p as tt } from "./markup-commands-BckOOKIe.js";
6
- import { A as nl, E as ol, a as il, b as sl, c as rl, L as dl, L as ul, M as ml, e as cl, f as vl, P as gl, g as fl, S as bl, h as kl, i as wl, j as hl, k as yl, W as Ml, l as Cl, m as pl, s as xl, q as Ll, u as Bl } from "./markup-commands-BckOOKIe.js";
1
+ import { Lang as Za, configure as Xa, getConfig as Ja, subscribeConfigure as _a } from "./configure.js";
2
+ import { cn as tl } from "./classname.js";
3
+ import { getMarkdownEditorMessages as Ze } from "./i18n.js";
4
+ import { markdownEditorMessages as ll } from "./i18n.js";
5
+ import { n as Xe, v as ge, t as Je, r as _e, o as et, p as tt } from "./markup-commands-B2NMfYHE.js";
6
+ import { A as ol, E as il, a as sl, b as rl, c as dl, L as ul, L as ml, M as cl, e as vl, f as gl, P as fl, g as bl, S as kl, h as wl, i as hl, j as yl, k as Ml, W as Cl, l as pl, m as xl, s as Ll, q as Bl, u as Tl } from "./markup-commands-B2NMfYHE.js";
7
7
  import { c4 as at, c5 as lt, c6 as nt, c7 as ot, c8 as it } from "./base-Bnv2-Te4.js";
8
- import { B as El, g as Hl, h as $l, i as Vl, k as Sl, n as Al, C as Pl, o as zl, p as Fl, q as Nl, r as Rl, D as Dl, E as Il, G as ql, H as Ol, u as jl, v as Ul, w as Wl, x as Ql, y as Gl, z as Yl, I as Zl, A as Kl, J as Xl, L as Jl, K as _l, M as en, P as tn, Q as an, R as ln, S as nn, T as on, U as sn, V as rn, X as dn, Y as un, c9 as mn, Z as cn, _ as vn, $ as gn, a0 as fn, a1 as bn, a2 as kn, a3 as wn, a4 as hn, a5 as yn, a6 as Mn, ca as Cn, cb as pn, cc as xn, cd as Ln, c as Bn, ce as Tn, ac as En, ad as Hn, af as $n, a as Vn, b as Sn, ak as An, d as Pn, e as zn, f as Fn, an as Nn, ao as Rn, ap as Dn, aq as In, ar as qn, cf as On, cg as jn, ch as Un, ci as Wn, cj as Qn, as as Gn, at as Yn, au as Zn, av as Kn, aw as Xn, ax as Jn, ay as _n, az as eo, aA as to, aB as ao, aC as lo, aD as no, aF as oo, aG as io, aI as so, aJ as ro, ck as uo, aN as mo, aP as co, aT as vo, aU as go, aV as fo, aW as bo, aX as ko, aY as wo, j as ho, l as yo, a_ as Mo, a$ as Co, m as po, b7 as xo, b8 as Lo, bd as Bo, be as To, bh as Eo, bi as Ho, bl as $o, bn as Vo, bo as So, bp as Ao, bz as Po, bA as zo, bB as Fo, bC as No, bD as Ro, s as Do, bE as Io, bF as qo, bL as Oo, t as jo, bN as Uo, bO as Wo, bQ as Qo, bR as Go, bS as Yo, bT as Zo, bU as Ko, bV as Xo, bX as Jo, bY as _o, b$ as ei, c0 as ti, c1 as ai } from "./base-Bnv2-Te4.js";
9
- import { c as ni, g as oi } from "./optional-renderers-BalvqqvY.js";
10
- import { defineComponent as J, openBlock as r, createElementBlock as m, ref as h, Fragment as F, createElementVNode as f, withModifiers as w, createVNode as C, toDisplayString as H, createCommentVNode as E, renderList as oe, createStaticVNode as st, unref as c, renderSlot as fe, onBeforeUnmount as be, nextTick as ne, getCurrentInstance as He, computed as Te, watch as ae, onMounted as rt, createBlock as X, withCtx as dt, normalizeProps as ut, guardReactiveProps as mt, Teleport as ct, normalizeClass as vt, readonly as le } from "vue";
8
+ import { B as Hl, g as $l, h as Al, i as Sl, k as Vl, n as Pl, C as zl, o as Fl, p as Nl, q as Rl, r as Dl, D as Il, E as ql, G as Ol, H as jl, u as Ul, v as Wl, w as Ql, x as Gl, y as Yl, z as Kl, I as Zl, A as Xl, J as Jl, L as _l, K as en, M as tn, P as an, Q as ln, R as nn, S as on, T as sn, U as rn, V as dn, X as un, Y as mn, c9 as cn, Z as vn, _ as gn, $ as fn, a0 as bn, a1 as kn, a2 as wn, a3 as hn, a4 as yn, a5 as Mn, a6 as Cn, ca as pn, cb as xn, cc as Ln, cd as Bn, c as Tn, ce as En, ac as Hn, ad as $n, af as An, a as Sn, b as Vn, ak as Pn, d as zn, e as Fn, f as Nn, an as Rn, ao as Dn, ap as In, aq as qn, ar as On, cf as jn, cg as Un, ch as Wn, ci as Qn, cj as Gn, as as Yn, at as Kn, au as Zn, av as Xn, aw as Jn, ax as _n, ay as eo, az as to, aA as ao, aB as lo, aC as no, aD as oo, aF as io, aG as so, aI as ro, aJ as uo, ck as mo, aN as co, aP as vo, aT as go, aU as fo, aV as bo, aW as ko, aX as wo, aY as ho, j as yo, l as Mo, a_ as Co, a$ as po, m as xo, b7 as Lo, b8 as Bo, bd as To, be as Eo, bh as Ho, bi as $o, bl as Ao, bn as So, bo as Vo, bp as Po, bz as zo, bA as Fo, bB as No, bC as Ro, bD as Do, s as Io, bE as qo, bF as Oo, bL as jo, t as Uo, bN as Wo, bO as Qo, bQ as Go, bR as Yo, bS as Ko, bT as Zo, bU as Xo, bV as Jo, bX as _o, bY as ei, b$ as ti, c0 as ai, c1 as li } from "./base-Bnv2-Te4.js";
9
+ import { c as oi, g as ii } from "./optional-renderers-BalvqqvY.js";
10
+ import { defineComponent as J, openBlock as r, createElementBlock as m, ref as h, Fragment as F, createElementVNode as g, withModifiers as w, createVNode as C, toDisplayString as H, createCommentVNode as E, renderList as oe, createStaticVNode as st, unref as c, renderSlot as fe, onBeforeUnmount as be, nextTick as ne, getCurrentInstance as He, computed as Te, watch as ae, onMounted as rt, createBlock as X, withCtx as dt, normalizeProps as ut, guardReactiveProps as mt, Teleport as ct, normalizeClass as vt, readonly as le } from "vue";
11
11
  import { _ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
12
  import { getToolbarConfig as gt, isToolbarItemEnabled as S, isToolbarItemActive as G, normalizeToolbarItem as ft, isToolbarItemAvailable as bt } from "./toolbar.js";
13
- import { commonmarkToolbarConfig as si, createToolbarConfig as ri, createToolbarGroup as di, createToolbarItem as ui, defaultToolbarConfig as mi, fullToolbarConfig as ci, markdownEditorToolbarItemIds as vi, minimalToolbarConfig as gi, zeroToolbarConfig as fi } from "./toolbar.js";
13
+ import { commonmarkToolbarConfig as ri, createToolbarConfig as di, createToolbarGroup as ui, createToolbarItem as mi, defaultToolbarConfig as ci, fullToolbarConfig as vi, markdownEditorToolbarItemIds as gi, minimalToolbarConfig as fi, zeroToolbarConfig as bi } from "./toolbar.js";
14
14
  import { a as kt, M as wt } from "./MarkdownEditorLinkForm-C7CGgA83.js";
15
- import { _ as ki, b as wi } from "./MarkdownEditorLinkForm-C7CGgA83.js";
15
+ import { _ as wi, b as hi } from "./MarkdownEditorLinkForm-C7CGgA83.js";
16
16
  import "./katex-ByXcxnHy.js";
17
- import { C as yi, D as Mi, F as Ci, Z as pi } from "./full-C-o2lPBX.js";
18
- import { C as Li, F as Bi } from "./full-specs-Cl-ODShc.js";
19
- import { B as Ei, a as Hi, b as $i, c as Vi, d as Si, C as Ai, e as Pi, f as zi, D as Fi, g as Ni, h as Ri, H as Di, i as Ii, I as qi, j as Oi, L as ji, k as Ui, T as Wi, l as Qi, m as Gi, n as Yi, o as Zi, r as Ki, v as Xi, y as Ji, M as _i, O as es, R as ts, S as as, W as ls, Z as ns } from "./heading-specs-D7Bj4aIM.js";
17
+ import { C as Mi, D as Ci, F as pi, Z as xi } from "./full-C-o2lPBX.js";
18
+ import { C as Bi, F as Ti } from "./full-specs-Cl-ODShc.js";
19
+ import { B as Hi, a as $i, b as Ai, c as Si, d as Vi, C as Pi, e as zi, f as Fi, D as Ni, g as Ri, h as Di, H as Ii, i as qi, I as Oi, j as ji, L as Ui, k as Wi, T as Qi, l as Gi, m as Yi, n as Ki, o as Zi, r as Xi, v as Ji, y as _i, M as es, O as ts, R as as, S as ls, W as ns, Z as os } from "./heading-specs-D7Bj4aIM.js";
20
20
  import './index.css';const ht = `<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
21
  `, 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="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
22
  `, Mt = `<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,22 +24,19 @@ import './index.css';const ht = `<svg xmlns="http://www.w3.org/2000/svg" width="
24
24
  `, 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="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
25
  `, xt = `<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
26
  `, Lt = `<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
- `, Bt = `<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">
28
- <circle cx="8" cy="8" r="2.25"/>
29
- <path d="M6.7 1.5h2.6l.4 1.6c.3.1.6.3.9.5l1.6-.5 1.3 2.2-1.2 1.1v1.2l1.2 1.1-1.3 2.2-1.6-.5-.9.5-.4 1.6H6.7l-.4-1.6-.9-.5-1.6.5-1.3-2.2 1.2-1.1V6.4L2.5 5.3l1.3-2.2 1.6.5.9-.5.4-1.6Z"/>
30
- </svg>
27
+ `, Bt = `<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>
31
28
  `, Tt = `<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>
32
29
  `, Et = `<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>
33
30
  `, Ht = `<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>
34
31
  `, $t = `<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>
35
- `, Vt = `<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">
32
+ `, At = `<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">
36
33
  <rect x="1.5" y="1.5" width="4" height="3" rx=".75"/>
37
34
  <rect x="10.5" y="1.5" width="4" height="3" rx=".75"/>
38
35
  <rect x="6" y="11.5" width="4" height="3" rx=".75"/>
39
36
  <path d="M3.5 4.5v2h4.5v5M12.5 4.5v2H8"/>
40
37
  </svg>
41
38
  `, 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="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>
42
- `, At = `<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>
39
+ `, Vt = `<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>
43
40
  `, 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="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>
44
41
  `, 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="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>
45
42
  `, 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="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>
@@ -49,14 +46,14 @@ import './index.css';const ht = `<svg xmlns="http://www.w3.org/2000/svg" width="
49
46
  name: {}
50
47
  },
51
48
  setup(e) {
52
- const g = { arrowLeft: ht, arrowRight: yt, bold: Mt, bulletList: Ct, chevronDown: pt, code: xt, function: Lt, gear: Bt, horizontalRule: Tt, image: Et, italic: Ht, link: $t, mermaid: Vt, orderedList: St, quote: At, strike: Pt, table: zt, underline: Ft }, y = e;
49
+ const f = { arrowLeft: ht, arrowRight: yt, bold: Mt, bulletList: Ct, chevronDown: pt, code: xt, function: Lt, gear: Bt, horizontalRule: Tt, image: Et, italic: Ht, link: $t, mermaid: At, orderedList: St, quote: Vt, strike: Pt, table: zt, underline: Ft }, y = e;
53
50
  return (u, b) => (r(), m("span", {
54
51
  class: "markdown-editor__toolbar-icon",
55
52
  "aria-hidden": "true",
56
- innerHTML: g[y.name]
53
+ innerHTML: f[y.name]
57
54
  }, null, 8, Nt));
58
55
  }
59
- }), p = /* @__PURE__ */ _(Rt, [["__scopeId", "data-v-ec4329c1"]]), Dt = ["data-theme", "aria-label"], It = ["aria-checked"], qt = ["aria-checked"], Ot = ["data-theme", "aria-label"], jt = ["aria-checked", "onClick"], Ut = { class: "markdown-editor__floating-menu-icon" }, Wt = ["data-theme", "aria-label"], Qt = ["data-theme", "aria-label"], Gt = ["aria-checked"], Yt = ["aria-checked"], Zt = ["disabled"], Kt = ["disabled"], Xt = ["data-theme", "aria-label"], Jt = ["aria-checked", "onClick"], _t = /* @__PURE__ */ J({
56
+ }), p = /* @__PURE__ */ _(Rt, [["__scopeId", "data-v-ec4329c1"]]), Dt = ["data-theme", "aria-label"], It = ["aria-checked"], qt = ["aria-checked"], Ot = ["data-theme", "aria-label"], jt = ["aria-checked", "onClick"], Ut = { class: "markdown-editor__floating-menu-icon" }, Wt = ["data-theme", "aria-label"], Qt = ["data-theme", "aria-label"], Gt = ["aria-checked"], Yt = ["aria-checked"], Kt = ["disabled"], Zt = ["disabled"], Xt = ["data-theme", "aria-label"], Jt = ["aria-checked", "onClick"], _t = /* @__PURE__ */ J({
60
57
  __name: "MarkdownEditorFloatingMenus",
61
58
  props: {
62
59
  codeVisible: { type: Boolean },
@@ -71,9 +68,9 @@ import './index.css';const ht = `<svg xmlns="http://www.w3.org/2000/svg" width="
71
68
  translate: { type: Function }
72
69
  },
73
70
  emits: ["code-block", "inline-code", "inline-formula", "math-block", "select-mode", "select-text-style", "bullet-list", "ordered-list", "indent-list", "outdent-list"],
74
- setup(e, { expose: g, emit: y }) {
71
+ setup(e, { expose: f, emit: y }) {
75
72
  const u = y, b = h(), d = h(), s = h(), i = h(), a = h(), M = ["wysiwyg", "markup", "split"];
76
- return g({
73
+ return f({
77
74
  getElement(n) {
78
75
  return { code: b.value, formula: d.value, heading: s.value, list: i.value, mode: a.value }[n];
79
76
  }
@@ -87,7 +84,7 @@ import './index.css';const ht = `<svg xmlns="http://www.w3.org/2000/svg" width="
87
84
  role: "menu",
88
85
  "aria-label": e.translate("code")
89
86
  }, [
90
- f("button", {
87
+ g("button", {
91
88
  "aria-checked": e.state.code,
92
89
  role: "menuitemradio",
93
90
  type: "button",
@@ -96,9 +93,9 @@ import './index.css';const ht = `<svg xmlns="http://www.w3.org/2000/svg" width="
96
93
  onClick: l[1] || (l[1] = (k) => u("inline-code"))
97
94
  }, [
98
95
  C(p, { name: "code" }),
99
- f("span", null, H(e.translate("code")), 1)
96
+ g("span", null, H(e.translate("code")), 1)
100
97
  ], 40, It),
101
- f("button", {
98
+ g("button", {
102
99
  "aria-checked": e.state.codeBlock,
103
100
  role: "menuitemradio",
104
101
  type: "button",
@@ -106,8 +103,8 @@ import './index.css';const ht = `<svg xmlns="http://www.w3.org/2000/svg" width="
106
103
  }, ["prevent"])),
107
104
  onClick: l[3] || (l[3] = (k) => u("code-block"))
108
105
  }, [
109
- l[16] || (l[16] = f("span", { class: "markdown-editor__floating-menu-icon" }, "{ }", -1)),
110
- f("span", null, H(e.translate("codeBlock")), 1)
106
+ l[16] || (l[16] = g("span", { class: "markdown-editor__floating-menu-icon" }, "{ }", -1)),
107
+ g("span", null, H(e.translate("codeBlock")), 1)
111
108
  ], 40, qt)
112
109
  ], 8, Dt)) : E("", !0),
113
110
  e.headingVisible ? (r(), m("div", {
@@ -119,15 +116,15 @@ import './index.css';const ht = `<svg xmlns="http://www.w3.org/2000/svg" width="
119
116
  role: "menu",
120
117
  "aria-label": e.translate("heading")
121
118
  }, [
122
- (r(), m(F, null, oe(["paragraph", "1", "2", "3", "4", "5", "6"], (k) => f("button", {
119
+ (r(), m(F, null, oe(["paragraph", "1", "2", "3", "4", "5", "6"], (k) => g("button", {
123
120
  key: k,
124
121
  "aria-checked": e.textStyle === k,
125
122
  role: "menuitemradio",
126
123
  type: "button",
127
124
  onClick: (I) => u("select-text-style", k)
128
125
  }, [
129
- f("span", Ut, H(k === "paragraph" ? "T" : `H${k}`), 1),
130
- f("span", null, H(k === "paragraph" ? e.translate("paragraph") : `${e.translate("heading")} ${k}`), 1)
126
+ g("span", Ut, H(k === "paragraph" ? "T" : `H${k}`), 1),
127
+ g("span", null, H(k === "paragraph" ? e.translate("paragraph") : `${e.translate("heading")} ${k}`), 1)
131
128
  ], 8, jt)), 64))
132
129
  ], 8, Ot)) : E("", !0),
133
130
  e.formulaVisible ? (r(), m("div", {
@@ -139,25 +136,25 @@ import './index.css';const ht = `<svg xmlns="http://www.w3.org/2000/svg" width="
139
136
  role: "menu",
140
137
  "aria-label": e.translate("formulaInsert")
141
138
  }, [
142
- f("button", {
139
+ g("button", {
143
140
  role: "menuitem",
144
141
  type: "button",
145
142
  onMousedown: l[4] || (l[4] = w(() => {
146
143
  }, ["prevent"])),
147
144
  onClick: l[5] || (l[5] = (k) => u("inline-formula"))
148
145
  }, [
149
- l[17] || (l[17] = f("span", { class: "markdown-editor__floating-menu-icon" }, "ƒ", -1)),
150
- f("span", null, H(e.translate("formulaInline")), 1)
146
+ l[17] || (l[17] = g("span", { class: "markdown-editor__floating-menu-icon" }, "ƒ", -1)),
147
+ g("span", null, H(e.translate("formulaInline")), 1)
151
148
  ], 32),
152
- f("button", {
149
+ g("button", {
153
150
  role: "menuitem",
154
151
  type: "button",
155
152
  onMousedown: l[6] || (l[6] = w(() => {
156
153
  }, ["prevent"])),
157
154
  onClick: l[7] || (l[7] = (k) => u("math-block"))
158
155
  }, [
159
- l[18] || (l[18] = f("span", { class: "markdown-editor__floating-menu-icon" }, "∑", -1)),
160
- f("span", null, H(e.translate("formulaBlock")), 1)
156
+ l[18] || (l[18] = g("span", { class: "markdown-editor__floating-menu-icon" }, "∑", -1)),
157
+ g("span", null, H(e.translate("formulaBlock")), 1)
161
158
  ], 32)
162
159
  ], 8, Wt)) : E("", !0),
163
160
  e.listVisible ? (r(), m("div", {
@@ -169,7 +166,7 @@ import './index.css';const ht = `<svg xmlns="http://www.w3.org/2000/svg" width="
169
166
  role: "menu",
170
167
  "aria-label": e.translate("bulletList")
171
168
  }, [
172
- f("button", {
169
+ g("button", {
173
170
  "aria-checked": e.state.bulletList,
174
171
  role: "menuitemradio",
175
172
  type: "button",
@@ -178,9 +175,9 @@ import './index.css';const ht = `<svg xmlns="http://www.w3.org/2000/svg" width="
178
175
  onClick: l[9] || (l[9] = (k) => u("bullet-list"))
179
176
  }, [
180
177
  C(p, { name: "bulletList" }),
181
- f("span", null, H(e.translate("bulletList")), 1)
178
+ g("span", null, H(e.translate("bulletList")), 1)
182
179
  ], 40, Gt),
183
- f("button", {
180
+ g("button", {
184
181
  "aria-checked": e.state.orderedList,
185
182
  role: "menuitemradio",
186
183
  type: "button",
@@ -189,9 +186,9 @@ import './index.css';const ht = `<svg xmlns="http://www.w3.org/2000/svg" width="
189
186
  onClick: l[11] || (l[11] = (k) => u("ordered-list"))
190
187
  }, [
191
188
  C(p, { name: "orderedList" }),
192
- f("span", null, H(e.translate("orderedList")), 1)
189
+ g("span", null, H(e.translate("orderedList")), 1)
193
190
  ], 40, Yt),
194
- f("button", {
191
+ g("button", {
195
192
  disabled: !e.state.listIndentEnabled,
196
193
  role: "menuitem",
197
194
  type: "button",
@@ -199,11 +196,11 @@ import './index.css';const ht = `<svg xmlns="http://www.w3.org/2000/svg" width="
199
196
  }, ["prevent"])),
200
197
  onClick: l[13] || (l[13] = (k) => u("indent-list"))
201
198
  }, [
202
- l[19] || (l[19] = f("span", { class: "markdown-editor__floating-menu-icon" }, "→", -1)),
203
- f("span", null, H(e.translate("listIndent")), 1),
204
- l[20] || (l[20] = f("kbd", null, "Tab", -1))
205
- ], 40, Zt),
206
- f("button", {
199
+ l[19] || (l[19] = g("span", { class: "markdown-editor__floating-menu-icon" }, "→", -1)),
200
+ g("span", null, H(e.translate("listIndent")), 1),
201
+ l[20] || (l[20] = g("kbd", null, "Tab", -1))
202
+ ], 40, Kt),
203
+ g("button", {
207
204
  disabled: !e.state.listOutdentEnabled,
208
205
  role: "menuitem",
209
206
  type: "button",
@@ -211,10 +208,10 @@ import './index.css';const ht = `<svg xmlns="http://www.w3.org/2000/svg" width="
211
208
  }, ["prevent"])),
212
209
  onClick: l[15] || (l[15] = (k) => u("outdent-list"))
213
210
  }, [
214
- l[21] || (l[21] = f("span", { class: "markdown-editor__floating-menu-icon" }, "←", -1)),
215
- f("span", null, H(e.translate("listOutdent")), 1),
216
- l[22] || (l[22] = f("kbd", null, "⇧ Tab", -1))
217
- ], 40, Kt)
211
+ l[21] || (l[21] = g("span", { class: "markdown-editor__floating-menu-icon" }, "←", -1)),
212
+ g("span", null, H(e.translate("listOutdent")), 1),
213
+ l[22] || (l[22] = g("kbd", null, "⇧ Tab", -1))
214
+ ], 40, Zt)
218
215
  ], 8, Qt)) : E("", !0),
219
216
  e.modeVisible ? (r(), m("div", {
220
217
  key: 4,
@@ -225,14 +222,14 @@ import './index.css';const ht = `<svg xmlns="http://www.w3.org/2000/svg" width="
225
222
  role: "menu",
226
223
  "aria-label": e.translate("mode")
227
224
  }, [
228
- (r(), m(F, null, oe(M, (k) => f("button", {
225
+ (r(), m(F, null, oe(M, (k) => g("button", {
229
226
  key: k,
230
227
  "aria-checked": e.mode === k,
231
228
  role: "menuitemradio",
232
229
  type: "button",
233
230
  onClick: (I) => u("select-mode", k)
234
231
  }, [
235
- f("span", null, H(e.translate(k === "wysiwyg" ? "visual" : k)), 1)
232
+ g("span", null, H(e.translate(k === "wysiwyg" ? "visual" : k)), 1)
236
233
  ], 8, Jt)), 64))
237
234
  ], 8, Xt)) : E("", !0)
238
235
  ], 64));
@@ -245,9 +242,9 @@ import './index.css';const ht = `<svg xmlns="http://www.w3.org/2000/svg" width="
245
242
  translate: { type: Function }
246
243
  },
247
244
  emits: ["full-width", "object-fit"],
248
- setup(e, { expose: g, emit: y }) {
245
+ setup(e, { expose: f, emit: y }) {
249
246
  const u = y, b = h();
250
- return g({ element: b }), (d, s) => (r(), m("div", {
247
+ return f({ element: b }), (d, s) => (r(), m("div", {
251
248
  ref_key: "element",
252
249
  ref: b,
253
250
  class: "markdown-editor__image-actions",
@@ -255,7 +252,7 @@ import './index.css';const ht = `<svg xmlns="http://www.w3.org/2000/svg" width="
255
252
  role: "toolbar",
256
253
  "aria-label": e.translate("image")
257
254
  }, [
258
- f("button", {
255
+ g("button", {
259
256
  type: "button",
260
257
  "aria-label": e.translate("imageWidthFull"),
261
258
  title: e.translate("imageWidthFull"),
@@ -263,7 +260,7 @@ import './index.css';const ht = `<svg xmlns="http://www.w3.org/2000/svg" width="
263
260
  }, ["prevent"])),
264
261
  onClick: s[1] || (s[1] = (i) => u("full-width"))
265
262
  }, "↔", 40, aa),
266
- f("select", {
263
+ g("select", {
267
264
  value: e.objectFit ?? "contain",
268
265
  "aria-label": e.translate("imageFit"),
269
266
  onChange: s[2] || (s[2] = (i) => u("object-fit", i.target.value))
@@ -272,7 +269,7 @@ import './index.css';const ht = `<svg xmlns="http://www.w3.org/2000/svg" width="
272
269
  ])], 40, la)
273
270
  ], 8, ta));
274
271
  }
275
- }), oa = /* @__PURE__ */ _(na, [["__scopeId", "data-v-0158c930"]]), ia = ["aria-label"], sa = ["data-toolbar-group"], ra = ["disabled", "aria-label", "title", "onClick"], da = ["disabled", "aria-label", "title", "onClick"], ua = ["aria-expanded", "aria-label", "aria-pressed", "title"], ma = ["disabled", "aria-label", "aria-pressed", "title", "onClick"], ca = ["disabled", "aria-label", "aria-pressed", "title", "onClick"], va = ["disabled", "aria-label", "aria-pressed", "title", "onClick"], ga = ["disabled", "aria-label", "aria-pressed", "title", "onClick"], fa = ["disabled", "aria-label", "aria-pressed", "title", "onClick"], ba = ["aria-expanded", "aria-label", "aria-pressed", "title"], ka = ["aria-expanded", "aria-label", "aria-pressed", "title"], wa = ["disabled", "aria-label", "aria-pressed", "title", "onClick"], ha = ["aria-label", "aria-pressed", "title"], ya = ["aria-expanded", "aria-pressed", "aria-label", "title"], Ma = ["title"], Ca = ["aria-label"], pa = ["aria-expanded", "aria-label", "title"], xa = ["aria-expanded", "aria-label", "aria-pressed", "title"], La = ["aria-label", "aria-pressed", "title", "onClick"], Ba = ["aria-label", "title"], Ta = ["aria-label", "title"], Ea = ["aria-label", "title"], Ha = ["aria-expanded", "aria-label", "title"], $a = /* @__PURE__ */ J({
272
+ }), oa = /* @__PURE__ */ _(na, [["__scopeId", "data-v-0158c930"]]), ia = ["aria-label"], sa = { class: "markdown-editor__toolbar-buttons" }, ra = ["data-toolbar-group"], da = ["disabled", "aria-label", "title", "onClick"], ua = ["disabled", "aria-label", "title", "onClick"], ma = ["aria-expanded", "aria-label", "aria-pressed", "title"], ca = ["disabled", "aria-label", "aria-pressed", "title", "onClick"], va = ["disabled", "aria-label", "aria-pressed", "title", "onClick"], ga = ["disabled", "aria-label", "aria-pressed", "title", "onClick"], fa = ["disabled", "aria-label", "aria-pressed", "title", "onClick"], ba = ["disabled", "aria-label", "aria-pressed", "title", "onClick"], ka = ["aria-expanded", "aria-label", "aria-pressed", "title"], wa = ["aria-expanded", "aria-label", "aria-pressed", "title"], ha = ["disabled", "aria-label", "aria-pressed", "title", "onClick"], ya = ["aria-label", "aria-pressed", "title"], Ma = ["aria-expanded", "aria-pressed", "aria-label", "title"], Ca = ["title"], pa = ["aria-label"], xa = ["aria-expanded", "aria-label", "title"], La = ["aria-expanded", "aria-label", "aria-pressed", "title"], Ba = ["aria-label", "aria-pressed", "title", "onClick"], Ta = ["aria-label", "title"], Ea = ["aria-label", "title"], Ha = ["aria-label", "title"], $a = ["aria-expanded", "aria-label", "title"], Aa = /* @__PURE__ */ J({
276
273
  __name: "MarkdownEditorToolbar",
277
274
  props: {
278
275
  commands: {},
@@ -291,7 +288,7 @@ import './index.css';const ht = `<svg xmlns="http://www.w3.org/2000/svg" width="
291
288
  translate: { type: Function }
292
289
  },
293
290
  emits: ["execute", "insert-html", "toggle-formula-menu", "toggle-code-menu", "toggle-heading-menu", "toggle-image-editor", "toggle-link-editor", "toggle-list-menu", "toggle-mode-menu"],
294
- setup(e, { emit: g }) {
291
+ setup(e, { emit: f }) {
295
292
  const y = e;
296
293
  function u(i) {
297
294
  return i.map(ft).filter((a) => bt(a, y.state));
@@ -303,7 +300,7 @@ import './index.css';const ht = `<svg xmlns="http://www.w3.org/2000/svg" width="
303
300
  state: y.state
304
301
  }) : d("execute", i.id, a));
305
302
  }
306
- const d = g;
303
+ const d = f;
307
304
  function s(i) {
308
305
  return i.currentTarget;
309
306
  }
@@ -313,269 +310,275 @@ import './index.css';const ht = `<svg xmlns="http://www.w3.org/2000/svg" width="
313
310
  role: "toolbar",
314
311
  "aria-label": e.translate("toolbar")
315
312
  }, [
316
- (r(!0), m(F, null, oe((e.toolbarConfig ?? c(gt)(e.toolbarPreset)).groups, (M) => (r(), m("div", {
317
- key: M.id,
318
- class: "markdown-editor__toolbar-group",
319
- role: "group",
320
- "data-toolbar-group": M.id
321
- }, [
322
- (r(!0), m(F, null, oe(u(M.items), (n) => (r(), m(F, {
323
- key: n.id
313
+ g("div", sa, [
314
+ (r(!0), m(F, null, oe((e.toolbarConfig ?? c(gt)(e.toolbarPreset)).groups, (M) => (r(), m("div", {
315
+ key: M.id,
316
+ class: "markdown-editor__toolbar-group",
317
+ role: "group",
318
+ "data-toolbar-group": M.id
324
319
  }, [
325
- n.id === "undo" ? (r(), m("button", {
326
- key: 0,
327
- "data-toolbar-item": "undo",
328
- type: "button",
329
- disabled: !c(S)(n, e.state),
330
- "aria-label": e.translate("undo"),
331
- title: e.translate("undo"),
332
- onMousedown: a[0] || (a[0] = w(() => {
333
- }, ["prevent"])),
334
- onClick: (l) => b(n, e.commands.undo)
335
- }, [
336
- C(p, { name: "arrowLeft" })
337
- ], 40, ra)) : n.id === "redo" ? (r(), m("button", {
338
- key: 1,
339
- "data-toolbar-item": "redo",
340
- type: "button",
341
- disabled: !c(S)(n, e.state),
342
- "aria-label": e.translate("redo"),
343
- title: e.translate("redo"),
344
- onMousedown: a[1] || (a[1] = w(() => {
345
- }, ["prevent"])),
346
- onClick: (l) => b(n, e.commands.redo)
347
- }, [
348
- C(p, { name: "arrowRight" })
349
- ], 40, da)) : n.id === "heading" ? (r(), m("button", {
350
- key: 2,
351
- class: "markdown-editor__toolbar-heading",
352
- "data-toolbar-item": "heading",
353
- "aria-expanded": e.headingMenuVisible,
354
- "aria-label": e.translate("heading"),
355
- "aria-pressed": e.state.headingLevel !== void 0,
356
- title: e.translate("heading"),
357
- type: "button",
358
- onMousedown: a[2] || (a[2] = w(() => {
359
- }, ["prevent"])),
360
- onClick: a[3] || (a[3] = (l) => d("toggle-heading-menu", s(l)))
361
- }, [
362
- f("span", null, H(e.textStyleLabel), 1),
363
- C(p, { name: "chevronDown" })
364
- ], 40, ua)) : n.id === "bold" ? (r(), m("button", {
365
- key: 3,
366
- "data-toolbar-item": "bold",
367
- disabled: !c(S)(n, e.state),
368
- "aria-label": e.translate("bold"),
369
- "aria-pressed": c(G)(n, e.state, e.state.bold),
370
- type: "button",
371
- title: e.translate("bold"),
372
- onMousedown: a[4] || (a[4] = w(() => {
373
- }, ["prevent"])),
374
- onClick: (l) => b(n, e.commands.bold)
375
- }, [
376
- C(p, { name: "bold" })
377
- ], 40, ma)) : n.id === "italic" ? (r(), m("button", {
378
- key: 4,
379
- "data-toolbar-item": "italic",
380
- disabled: !c(S)(n, e.state),
381
- "aria-label": e.translate("italic"),
382
- "aria-pressed": c(G)(n, e.state, e.state.italic),
383
- type: "button",
384
- title: e.translate("italic"),
385
- onMousedown: a[5] || (a[5] = w(() => {
386
- }, ["prevent"])),
387
- onClick: (l) => b(n, e.commands.italic)
388
- }, [
389
- C(p, { name: "italic" })
390
- ], 40, ca)) : n.id === "underline" ? (r(), m("button", {
391
- key: 5,
392
- "data-toolbar-item": "underline",
393
- disabled: !c(S)(n, e.state),
394
- "aria-label": e.translate("underline"),
395
- "aria-pressed": c(G)(n, e.state, e.state.underline),
396
- type: "button",
397
- title: e.translate("underline"),
398
- onMousedown: a[6] || (a[6] = w(() => {
399
- }, ["prevent"])),
400
- onClick: (l) => b(n, e.commands.underline)
401
- }, [
402
- C(p, { name: "underline" })
403
- ], 40, va)) : n.id === "strike" ? (r(), m("button", {
404
- key: 6,
405
- "data-toolbar-item": "strike",
406
- disabled: !c(S)(n, e.state),
407
- "aria-label": e.translate("strike"),
408
- "aria-pressed": c(G)(n, e.state, e.state.strikethrough),
409
- type: "button",
410
- title: e.translate("strike"),
411
- onMousedown: a[7] || (a[7] = w(() => {
412
- }, ["prevent"])),
413
- onClick: (l) => b(n, e.commands.strikethrough)
414
- }, [
415
- C(p, { name: "strike" })
416
- ], 40, ga)) : n.id === "mark" ? (r(), m("button", {
417
- key: 7,
418
- "data-toolbar-item": "mark",
419
- disabled: !c(S)(n, e.state),
420
- "aria-label": e.translate("mark"),
421
- "aria-pressed": c(G)(n, e.state, e.state.mark),
422
- type: "button",
423
- title: e.translate("mark"),
424
- onMousedown: a[8] || (a[8] = w(() => {
425
- }, ["prevent"])),
426
- onClick: (l) => b(n, e.commands.mark)
427
- }, " M ", 40, fa)) : n.id === "code" ? (r(), m("button", {
428
- key: 8,
429
- class: "markdown-editor__toolbar-code",
430
- "data-toolbar-item": "code",
431
- "aria-expanded": e.codeMenuVisible,
432
- "aria-label": e.translate(e.state.codeBlock ? "codeBlock" : "code"),
433
- "aria-pressed": e.state.code || e.state.codeBlock,
434
- title: e.translate(e.state.codeBlock ? "codeBlock" : "code"),
435
- type: "button",
436
- onMousedown: a[9] || (a[9] = w(() => {
437
- }, ["prevent"])),
438
- onClick: a[10] || (a[10] = (l) => d("toggle-code-menu", s(l)))
439
- }, [
440
- C(p, { name: "code" }),
441
- C(p, { name: "chevronDown" })
442
- ], 40, ba)) : n.id === "bullet-list" ? (r(), m("button", {
443
- key: 9,
444
- class: "markdown-editor__toolbar-list",
445
- "data-toolbar-item": "list",
446
- "aria-expanded": e.listMenuVisible,
447
- "aria-label": e.translate(e.state.orderedList ? "orderedList" : "bulletList"),
448
- "aria-pressed": e.state.bulletList || e.state.orderedList,
449
- title: e.translate(e.state.orderedList ? "orderedList" : "bulletList"),
450
- type: "button",
451
- onMousedown: a[11] || (a[11] = w(() => {
452
- }, ["prevent"])),
453
- onClick: a[12] || (a[12] = (l) => d("toggle-list-menu", s(l)))
454
- }, [
455
- C(p, {
456
- name: e.state.orderedList ? "orderedList" : "bulletList"
457
- }, null, 8, ["name"]),
458
- C(p, { name: "chevronDown" })
459
- ], 40, ka)) : n.id === "ordered-list" ? (r(), m(F, { key: 10 }, [], 64)) : n.id === "quote" ? (r(), m("button", {
460
- key: 11,
461
- "data-toolbar-item": "quote",
462
- disabled: !c(S)(n, e.state),
463
- "aria-label": e.translate("quote"),
464
- "aria-pressed": c(G)(n, e.state, e.state.quote),
465
- type: "button",
466
- title: e.translate("quote"),
467
- onMousedown: a[13] || (a[13] = w(() => {
468
- }, ["prevent"])),
469
- onClick: (l) => b(n, e.commands.quote)
470
- }, [
471
- C(p, { name: "quote" })
472
- ], 40, wa)) : n.id === "fold-heading" ? (r(), m("button", {
473
- key: 12,
474
- "data-toolbar-item": "fold-heading",
475
- "aria-label": e.translate("foldHeading"),
476
- "aria-pressed": e.state.headingFolded,
477
- type: "button",
478
- title: e.translate("foldHeading"),
479
- onMousedown: a[14] || (a[14] = w(() => {
480
- }, ["prevent"])),
481
- onClick: a[15] || (a[15] = (l) => d("execute", "fold-heading", e.commands.toggleHeadingFolding))
482
- }, " ▸ ", 40, ha)) : n.id === "code-block" ? (r(), m(F, { key: 13 }, [], 64)) : n.id === "link" ? (r(), m("button", {
483
- key: 14,
484
- "data-toolbar-item": "link",
485
- "aria-expanded": e.linkEditorVisible,
486
- "aria-pressed": e.state.linkHref !== void 0,
487
- type: "button",
488
- "aria-label": e.translate("link"),
489
- title: e.translate("link"),
490
- onMousedown: a[16] || (a[16] = w(() => {
491
- }, ["prevent"])),
492
- onClick: a[17] || (a[17] = (l) => d("toggle-link-editor", s(l)))
493
- }, [
494
- C(p, { name: "link" })
495
- ], 40, ya)) : n.id === "color" ? (r(), m("label", {
496
- key: 15,
497
- "data-toolbar-item": "color",
498
- class: "markdown-editor__color",
499
- title: e.translate("color")
500
- }, [
501
- f("input", {
502
- "aria-label": e.translate("color"),
503
- type: "color",
504
- value: "#202125",
505
- onInput: a[18] || (a[18] = (l) => d("execute", "color", e.commands.setColor(l.target.value)))
506
- }, null, 40, Ca)
507
- ], 8, Ma)) : n.id === "image" ? (r(), m("button", {
508
- key: 16,
509
- "data-toolbar-item": "image",
510
- "aria-expanded": e.imageEditorVisible,
511
- "aria-label": e.translate("image"),
512
- type: "button",
513
- title: e.translate("image"),
514
- onMousedown: a[19] || (a[19] = w(() => {
515
- }, ["prevent"])),
516
- onClick: a[20] || (a[20] = (l) => d("toggle-image-editor", s(l)))
517
- }, [
518
- C(p, { name: "image" })
519
- ], 40, pa)) : n.id === "formula" ? (r(), m("button", {
520
- key: 17,
521
- "data-toolbar-item": "formula",
522
- "aria-expanded": e.formulaMenuVisible,
523
- "aria-label": e.translate("formula"),
524
- "aria-pressed": e.state.formula,
525
- title: e.translate("formula"),
526
- type: "button",
527
- onMousedown: a[21] || (a[21] = w(() => {
528
- }, ["prevent"])),
529
- onClick: a[22] || (a[22] = (l) => d("toggle-formula-menu", s(l)))
530
- }, [
531
- C(p, { name: "function" })
532
- ], 40, xa)) : n.id === "mermaid" ? (r(), m("button", {
533
- key: 18,
534
- "data-toolbar-item": "mermaid",
535
- type: "button",
536
- "aria-label": e.translate("mermaid"),
537
- "aria-pressed": e.state.mermaid,
538
- title: e.translate("mermaid"),
539
- onMousedown: a[23] || (a[23] = w(() => {
540
- }, ["prevent"])),
541
- onClick: (l) => b(n, e.commands.insertMermaid)
542
- }, [
543
- C(p, { name: "mermaid" })
544
- ], 40, La)) : n.id === "html" ? (r(), m("button", {
545
- key: 19,
546
- "data-toolbar-item": "html",
547
- type: "button",
548
- "aria-label": e.translate("html"),
549
- title: e.translate("html"),
550
- onMousedown: a[24] || (a[24] = w(() => {
551
- }, ["prevent"])),
552
- onClick: a[25] || (a[25] = (l) => d("insert-html"))
553
- }, " </> ", 40, Ba)) : n.id === "horizontal-rule" ? (r(), m("button", {
554
- key: 20,
555
- "data-toolbar-item": "horizontal-rule",
556
- "aria-label": e.translate("horizontalRule"),
557
- type: "button",
558
- title: e.translate("horizontalRule"),
559
- onMousedown: a[26] || (a[26] = w(() => {
560
- }, ["prevent"])),
561
- onClick: a[27] || (a[27] = (l) => d("execute", "horizontal-rule", e.commands.horizontalRule))
562
- }, [
563
- C(p, { name: "horizontalRule" })
564
- ], 40, Ta)) : n.id === "table" ? (r(), m("button", {
565
- key: 21,
566
- "data-toolbar-item": "table",
567
- "aria-label": e.translate("table"),
568
- type: "button",
569
- title: e.translate("table"),
570
- onMousedown: a[28] || (a[28] = w(() => {
571
- }, ["prevent"])),
572
- onClick: a[29] || (a[29] = (l) => d("execute", "table", e.commands.insertTable()))
320
+ (r(!0), m(F, null, oe(u(M.items), (n) => (r(), m(F, {
321
+ key: n.id
573
322
  }, [
574
- C(p, { name: "table" })
575
- ], 40, Ea)) : E("", !0)
576
- ], 64))), 128))
577
- ], 8, sa))), 128)),
578
- f("button", {
323
+ n.id === "undo" ? (r(), m("button", {
324
+ key: 0,
325
+ "data-toolbar-item": "undo",
326
+ type: "button",
327
+ disabled: !c(S)(n, e.state),
328
+ "aria-label": e.translate("undo"),
329
+ title: e.translate("undo"),
330
+ onMousedown: a[0] || (a[0] = w(() => {
331
+ }, ["prevent"])),
332
+ onClick: (l) => b(n, e.commands.undo)
333
+ }, [
334
+ C(p, { name: "arrowLeft" })
335
+ ], 40, da)) : n.id === "redo" ? (r(), m("button", {
336
+ key: 1,
337
+ "data-toolbar-item": "redo",
338
+ type: "button",
339
+ disabled: !c(S)(n, e.state),
340
+ "aria-label": e.translate("redo"),
341
+ title: e.translate("redo"),
342
+ onMousedown: a[1] || (a[1] = w(() => {
343
+ }, ["prevent"])),
344
+ onClick: (l) => b(n, e.commands.redo)
345
+ }, [
346
+ C(p, { name: "arrowRight" })
347
+ ], 40, ua)) : n.id === "heading" ? (r(), m("button", {
348
+ key: 2,
349
+ class: "markdown-editor__toolbar-heading",
350
+ "data-toolbar-item": "heading",
351
+ "aria-expanded": e.headingMenuVisible,
352
+ "aria-label": e.translate("heading"),
353
+ "aria-pressed": e.state.headingLevel !== void 0,
354
+ title: e.translate("heading"),
355
+ type: "button",
356
+ onMousedown: a[2] || (a[2] = w(() => {
357
+ }, ["prevent"])),
358
+ onClick: a[3] || (a[3] = (l) => d("toggle-heading-menu", s(l)))
359
+ }, [
360
+ g("span", null, H(e.textStyleLabel), 1),
361
+ C(p, { name: "chevronDown" })
362
+ ], 40, ma)) : n.id === "bold" ? (r(), m("button", {
363
+ key: 3,
364
+ "data-toolbar-item": "bold",
365
+ disabled: !c(S)(n, e.state),
366
+ "aria-label": e.translate("bold"),
367
+ "aria-pressed": c(G)(n, e.state, e.state.bold),
368
+ type: "button",
369
+ title: e.translate("bold"),
370
+ onMousedown: a[4] || (a[4] = w(() => {
371
+ }, ["prevent"])),
372
+ onClick: (l) => b(n, e.commands.bold)
373
+ }, [
374
+ C(p, { name: "bold" })
375
+ ], 40, ca)) : n.id === "italic" ? (r(), m("button", {
376
+ key: 4,
377
+ "data-toolbar-item": "italic",
378
+ disabled: !c(S)(n, e.state),
379
+ "aria-label": e.translate("italic"),
380
+ "aria-pressed": c(G)(n, e.state, e.state.italic),
381
+ type: "button",
382
+ title: e.translate("italic"),
383
+ onMousedown: a[5] || (a[5] = w(() => {
384
+ }, ["prevent"])),
385
+ onClick: (l) => b(n, e.commands.italic)
386
+ }, [
387
+ C(p, { name: "italic" })
388
+ ], 40, va)) : n.id === "underline" ? (r(), m("button", {
389
+ key: 5,
390
+ "data-toolbar-item": "underline",
391
+ disabled: !c(S)(n, e.state),
392
+ "aria-label": e.translate("underline"),
393
+ "aria-pressed": c(G)(n, e.state, e.state.underline),
394
+ type: "button",
395
+ title: e.translate("underline"),
396
+ onMousedown: a[6] || (a[6] = w(() => {
397
+ }, ["prevent"])),
398
+ onClick: (l) => b(n, e.commands.underline)
399
+ }, [
400
+ C(p, { name: "underline" })
401
+ ], 40, ga)) : n.id === "strike" ? (r(), m("button", {
402
+ key: 6,
403
+ "data-toolbar-item": "strike",
404
+ disabled: !c(S)(n, e.state),
405
+ "aria-label": e.translate("strike"),
406
+ "aria-pressed": c(G)(n, e.state, e.state.strikethrough),
407
+ type: "button",
408
+ title: e.translate("strike"),
409
+ onMousedown: a[7] || (a[7] = w(() => {
410
+ }, ["prevent"])),
411
+ onClick: (l) => b(n, e.commands.strikethrough)
412
+ }, [
413
+ C(p, { name: "strike" })
414
+ ], 40, fa)) : n.id === "mark" ? (r(), m("button", {
415
+ key: 7,
416
+ "data-toolbar-item": "mark",
417
+ disabled: !c(S)(n, e.state),
418
+ "aria-label": e.translate("mark"),
419
+ "aria-pressed": c(G)(n, e.state, e.state.mark),
420
+ type: "button",
421
+ title: e.translate("mark"),
422
+ onMousedown: a[8] || (a[8] = w(() => {
423
+ }, ["prevent"])),
424
+ onClick: (l) => b(n, e.commands.mark)
425
+ }, " M ", 40, ba)) : n.id === "code" ? (r(), m("button", {
426
+ key: 8,
427
+ class: "markdown-editor__toolbar-code",
428
+ "data-toolbar-item": "code",
429
+ "aria-expanded": e.codeMenuVisible,
430
+ "aria-label": e.translate(e.state.codeBlock ? "codeBlock" : "code"),
431
+ "aria-pressed": e.state.code || e.state.codeBlock,
432
+ title: e.translate(e.state.codeBlock ? "codeBlock" : "code"),
433
+ type: "button",
434
+ onMousedown: a[9] || (a[9] = w(() => {
435
+ }, ["prevent"])),
436
+ onClick: a[10] || (a[10] = (l) => d("toggle-code-menu", s(l)))
437
+ }, [
438
+ C(p, { name: "code" }),
439
+ C(p, { name: "chevronDown" })
440
+ ], 40, ka)) : n.id === "bullet-list" ? (r(), m("button", {
441
+ key: 9,
442
+ class: "markdown-editor__toolbar-list",
443
+ "data-toolbar-item": "list",
444
+ "aria-expanded": e.listMenuVisible,
445
+ "aria-label": e.translate(e.state.orderedList ? "orderedList" : "bulletList"),
446
+ "aria-pressed": e.state.bulletList || e.state.orderedList,
447
+ title: e.translate(e.state.orderedList ? "orderedList" : "bulletList"),
448
+ type: "button",
449
+ onMousedown: a[11] || (a[11] = w(() => {
450
+ }, ["prevent"])),
451
+ onClick: a[12] || (a[12] = (l) => d("toggle-list-menu", s(l)))
452
+ }, [
453
+ C(p, {
454
+ name: e.state.orderedList ? "orderedList" : "bulletList"
455
+ }, null, 8, ["name"]),
456
+ C(p, { name: "chevronDown" })
457
+ ], 40, wa)) : n.id === "ordered-list" ? (r(), m(F, { key: 10 }, [], 64)) : n.id === "quote" ? (r(), m("button", {
458
+ key: 11,
459
+ "data-toolbar-item": "quote",
460
+ disabled: !c(S)(n, e.state),
461
+ "aria-label": e.translate("quote"),
462
+ "aria-pressed": c(G)(n, e.state, e.state.quote),
463
+ type: "button",
464
+ title: e.translate("quote"),
465
+ onMousedown: a[13] || (a[13] = w(() => {
466
+ }, ["prevent"])),
467
+ onClick: (l) => b(n, e.commands.quote)
468
+ }, [
469
+ C(p, { name: "quote" })
470
+ ], 40, ha)) : n.id === "fold-heading" ? (r(), m("button", {
471
+ key: 12,
472
+ "data-toolbar-item": "fold-heading",
473
+ "aria-label": e.translate("foldHeading"),
474
+ "aria-pressed": e.state.headingFolded,
475
+ type: "button",
476
+ title: e.translate("foldHeading"),
477
+ onMousedown: a[14] || (a[14] = w(() => {
478
+ }, ["prevent"])),
479
+ onClick: a[15] || (a[15] = (l) => d("execute", "fold-heading", e.commands.toggleHeadingFolding))
480
+ }, " ▸ ", 40, ya)) : n.id === "code-block" ? (r(), m(F, { key: 13 }, [], 64)) : n.id === "link" ? (r(), m("button", {
481
+ key: 14,
482
+ "data-toolbar-item": "link",
483
+ "aria-expanded": e.linkEditorVisible,
484
+ "aria-pressed": e.state.linkHref !== void 0,
485
+ type: "button",
486
+ "aria-label": e.translate("link"),
487
+ title: e.translate("link"),
488
+ onMousedown: a[16] || (a[16] = w(() => {
489
+ }, ["prevent"])),
490
+ onClick: a[17] || (a[17] = (l) => d("toggle-link-editor", s(l)))
491
+ }, [
492
+ C(p, { name: "link" })
493
+ ], 40, Ma)) : n.id === "color" ? (r(), m("label", {
494
+ key: 15,
495
+ "data-toolbar-item": "color",
496
+ class: "markdown-editor__color",
497
+ title: e.translate("color")
498
+ }, [
499
+ g("input", {
500
+ "aria-label": e.translate("color"),
501
+ type: "color",
502
+ value: "#202125",
503
+ onInput: a[18] || (a[18] = (l) => d("execute", "color", e.commands.setColor(l.target.value)))
504
+ }, null, 40, pa)
505
+ ], 8, Ca)) : n.id === "image" ? (r(), m("button", {
506
+ key: 16,
507
+ "data-toolbar-item": "image",
508
+ "aria-expanded": e.imageEditorVisible,
509
+ "aria-label": e.translate("image"),
510
+ type: "button",
511
+ title: e.translate("image"),
512
+ onMousedown: a[19] || (a[19] = w(() => {
513
+ }, ["prevent"])),
514
+ onClick: a[20] || (a[20] = (l) => d("toggle-image-editor", s(l)))
515
+ }, [
516
+ C(p, { name: "image" })
517
+ ], 40, xa)) : n.id === "formula" ? (r(), m("button", {
518
+ key: 17,
519
+ "data-toolbar-item": "formula",
520
+ "aria-expanded": e.formulaMenuVisible,
521
+ "aria-label": e.translate("formula"),
522
+ "aria-pressed": e.state.formula,
523
+ title: e.translate("formula"),
524
+ type: "button",
525
+ onMousedown: a[21] || (a[21] = w(() => {
526
+ }, ["prevent"])),
527
+ onClick: a[22] || (a[22] = (l) => d("toggle-formula-menu", s(l)))
528
+ }, [
529
+ C(p, { name: "function" })
530
+ ], 40, La)) : n.id === "mermaid" ? (r(), m("button", {
531
+ key: 18,
532
+ "data-toolbar-item": "mermaid",
533
+ type: "button",
534
+ "aria-label": e.translate("mermaid"),
535
+ "aria-pressed": e.state.mermaid,
536
+ title: e.translate("mermaid"),
537
+ onMousedown: a[23] || (a[23] = w(() => {
538
+ }, ["prevent"])),
539
+ onClick: (l) => b(n, e.commands.insertMermaid)
540
+ }, [
541
+ C(p, { name: "mermaid" })
542
+ ], 40, Ba)) : n.id === "html" ? (r(), m("button", {
543
+ key: 19,
544
+ "data-toolbar-item": "html",
545
+ type: "button",
546
+ "aria-label": e.translate("html"),
547
+ title: e.translate("html"),
548
+ onMousedown: a[24] || (a[24] = w(() => {
549
+ }, ["prevent"])),
550
+ onClick: a[25] || (a[25] = (l) => d("insert-html"))
551
+ }, " </> ", 40, Ta)) : n.id === "horizontal-rule" ? (r(), m("button", {
552
+ key: 20,
553
+ "data-toolbar-item": "horizontal-rule",
554
+ "aria-label": e.translate("horizontalRule"),
555
+ type: "button",
556
+ title: e.translate("horizontalRule"),
557
+ onMousedown: a[26] || (a[26] = w(() => {
558
+ }, ["prevent"])),
559
+ onClick: a[27] || (a[27] = (l) => d("execute", "horizontal-rule", e.commands.horizontalRule))
560
+ }, [
561
+ C(p, { name: "horizontalRule" })
562
+ ], 40, Ea)) : n.id === "table" ? (r(), m("button", {
563
+ key: 21,
564
+ "data-toolbar-item": "table",
565
+ "aria-label": e.translate("table"),
566
+ type: "button",
567
+ title: e.translate("table"),
568
+ onMousedown: a[28] || (a[28] = w(() => {
569
+ }, ["prevent"])),
570
+ onClick: a[29] || (a[29] = (l) => d("execute", "table", e.commands.insertTable()))
571
+ }, [
572
+ C(p, { name: "table" })
573
+ ], 40, Ha)) : E("", !0)
574
+ ], 64))), 128))
575
+ ], 8, ra))), 128)),
576
+ fe(i.$slots, "default", {
577
+ commands: e.commands,
578
+ execute: (M) => d("execute", void 0, M)
579
+ }, void 0, !0)
580
+ ]),
581
+ g("button", {
579
582
  class: "markdown-editor__toolbar-mode",
580
583
  "data-toolbar-item": "mode",
581
584
  type: "button",
@@ -588,21 +591,17 @@ import './index.css';const ht = `<svg xmlns="http://www.w3.org/2000/svg" width="
588
591
  }, [
589
592
  C(p, { name: "gear" }),
590
593
  C(p, { name: "chevronDown" })
591
- ], 40, Ha),
592
- fe(i.$slots, "default", {
593
- commands: e.commands,
594
- execute: (M) => d("execute", void 0, M)
595
- }, void 0, !0)
594
+ ], 40, $a)
596
595
  ], 8, ia));
597
596
  }
598
- }), Va = /* @__PURE__ */ _($a, [["__scopeId", "data-v-322b6a9c"]]), Sa = [
597
+ }), Sa = /* @__PURE__ */ _(Aa, [["__scopeId", "data-v-46de1959"]]), Va = [
599
598
  "--markdown-background",
600
599
  "--markdown-border",
601
600
  "--markdown-focus-background",
602
601
  "--markdown-focus-text",
603
602
  "--markdown-text"
604
603
  ];
605
- function z(e, g = {}) {
604
+ function z(e, f = {}) {
606
605
  const y = h(!1);
607
606
  let u;
608
607
  function b() {
@@ -615,13 +614,13 @@ function z(e, g = {}) {
615
614
  const M = i.closest(".markdown-editor");
616
615
  if (M !== null) {
617
616
  const l = getComputedStyle(M);
618
- for (const k of Sa)
617
+ for (const k of Va)
619
618
  a.style.setProperty(k, l.getPropertyValue(k));
620
619
  }
621
620
  u = at(i, a, async () => {
622
621
  const { x: l, y: k } = await lt(i, a, {
623
622
  middleware: [nt(6), ot({ padding: 8 }), it({ padding: 8 })],
624
- placement: g.placement ?? "bottom-start",
623
+ placement: f.placement ?? "bottom-start",
625
624
  strategy: "fixed"
626
625
  });
627
626
  Object.assign(a.style, { left: `${l}px`, position: "fixed", top: `${k}px` });
@@ -638,32 +637,32 @@ function z(e, g = {}) {
638
637
  visible: y
639
638
  };
640
639
  }
641
- function Ee(e, g) {
642
- return e.length === 0 ? g : g.length === 0 ? e : `${e}
640
+ function Ee(e, f) {
641
+ return e.length === 0 ? f : f.length === 0 ? e : `${e}
643
642
 
644
- ${g}`;
643
+ ${f}`;
645
644
  }
646
- function Aa(e) {
647
- const g = h(e.initialValue);
645
+ function Pa(e) {
646
+ const f = h(e.initialValue);
648
647
  let y = !1;
649
648
  function u(i, a) {
650
649
  y = !0, a !== "markup" && e.getMarkupHost()?.setValue(i), a !== "visual" && e.getVisualHost()?.setValue(i), y = !1;
651
650
  }
652
651
  function b(i) {
653
- i !== g.value && (g.value = i, u(i));
652
+ i !== f.value && (f.value = i, u(i));
654
653
  }
655
654
  function d(i) {
656
- i !== g.value && (g.value = i, e.onChange(i), u(i));
655
+ i !== f.value && (f.value = i, e.onChange(i), u(i));
657
656
  }
658
657
  function s(i, a) {
659
- i === g.value || y || (g.value = i, e.onChange(i), u(i, a));
658
+ i === f.value || y || (f.value = i, e.onChange(i), u(i, a));
660
659
  }
661
- return { setExternalValue: b, setValue: d, updateFromHost: s, value: g };
660
+ return { setExternalValue: b, setValue: d, updateFromHost: s, value: f };
662
661
  }
663
- const Pa = ["data-locale", "data-mode", "data-theme"], za = {
662
+ const za = ["data-locale", "data-mode", "data-theme"], Fa = {
664
663
  key: 0,
665
664
  class: "markdown-editor__header"
666
- }, Fa = /* @__PURE__ */ J({
665
+ }, Na = /* @__PURE__ */ J({
667
666
  name: "MarkdownEditor",
668
667
  __name: "MarkdownEditor",
669
668
  props: {
@@ -679,8 +678,8 @@ const Pa = ["data-locale", "data-mode", "data-theme"], za = {
679
678
  theme: { default: "auto" }
680
679
  },
681
680
  emits: ["cancel", "change", "mode-change", "update:modelValue", "update:mode", "submit"],
682
- setup(e, { expose: g, emit: y }) {
683
- const u = e, b = y, d = Xe(), s = et(), i = He()?.appContext, a = h(), M = h(), n = h(u.mode), l = h("https://"), k = h(""), I = h(""), ke = h(), A = h(""), Y = h(""), q = h(!1), L = h({
681
+ setup(e, { expose: f, emit: y }) {
682
+ const u = e, b = y, d = Xe(), s = et(), i = He()?.appContext, a = h(), M = h(), n = h(u.mode), l = h("https://"), k = h(""), I = h(""), ke = h(), V = h(""), Y = h(""), q = h(!1), L = h({
684
683
  bold: !1,
685
684
  bulletList: !1,
686
685
  code: !1,
@@ -703,9 +702,9 @@ const Pa = ["data-locale", "data-mode", "data-theme"], za = {
703
702
  quote: !1,
704
703
  strikethrough: !1,
705
704
  underline: !1
706
- }), ie = Te(() => L.value.headingLevel?.toString() ?? "paragraph"), $e = Te(() => ie.value === "paragraph" ? "H" : `H${ie.value}`), we = h(), O = h(), he = h(), j = z(() => O.value?.getElement("code")), N = z(() => O.value?.getElement("formula")), U = z(() => O.value?.getElement("heading")), R = z(() => ke.value?.element), Z = z(() => he.value?.element, { placement: "top" }), $ = z(() => we.value?.element), W = z(() => O.value?.getElement("list")), Q = z(() => O.value?.getElement("mode"));
705
+ }), ie = Te(() => L.value.headingLevel?.toString() ?? "paragraph"), $e = Te(() => ie.value === "paragraph" ? "H" : `H${ie.value}`), we = h(), O = h(), he = h(), j = z(() => O.value?.getElement("code")), N = z(() => O.value?.getElement("formula")), U = z(() => O.value?.getElement("heading")), R = z(() => ke.value?.element), K = z(() => he.value?.element, { placement: "top" }), $ = z(() => we.value?.element), W = z(() => O.value?.getElement("list")), Q = z(() => O.value?.getElement("mode"));
707
706
  let x, se = "visual", ee = 0, re = !1, B;
708
- const { setExternalValue: Ve, setValue: K, updateFromHost: ye, value: D } = Aa({
707
+ const { setExternalValue: Ae, setValue: Z, updateFromHost: ye, value: D } = Pa({
709
708
  getMarkupHost: () => x,
710
709
  getVisualHost: () => B,
711
710
  initialValue: u.modelValue,
@@ -714,7 +713,7 @@ const Pa = ["data-locale", "data-mode", "data-theme"], za = {
714
713
  }
715
714
  });
716
715
  function de(t) {
717
- return Ke(u.locale)[t];
716
+ return Ze(u.locale)[t];
718
717
  }
719
718
  function ue() {
720
719
  x?.destroy(), B?.destroy(), x = void 0, B = void 0, L.value = {
@@ -745,28 +744,28 @@ const Pa = ["data-locale", "data-mode", "data-theme"], za = {
745
744
  function Se(t) {
746
745
  n.value === "markup" || n.value === "split" && typeof t == "object" ? x?.moveCursor(t) : B?.moveCursor(typeof t == "object" ? "start" : t);
747
746
  }
748
- function Ae(t) {
747
+ function Ve(t) {
749
748
  n.value === "markup" || n.value === "split" && x?.hasFocus() ? x?.insert(t) : B?.insert(t);
750
749
  }
751
750
  function Pe() {
752
- if (A.value.trim().length === 0)
751
+ if (V.value.trim().length === 0)
753
752
  return;
754
753
  re = !0;
755
- const t = Y.value.trim() || A.value.trim();
756
- T() ? x?.run(s.setLink(A.value.trim(), void 0, t, q.value)) : V(void 0, d.setLink(A.value.trim(), t, t, q.value)), $.close();
754
+ const t = Y.value.trim() || V.value.trim();
755
+ T() ? x?.run(s.setLink(V.value.trim(), void 0, t, q.value)) : A(void 0, d.setLink(V.value.trim(), t, t, q.value)), $.close();
757
756
  }
758
757
  function Me() {
759
758
  $.close();
760
759
  }
761
760
  function ze() {
762
761
  const t = l.value.trim();
763
- t.length !== 0 && (T() ? x?.run(s.insertImage(t, k.value.trim() || "Image", I.value.trim() || void 0)) : V(void 0, d.insertImage(t, k.value.trim() || "Image", I.value.trim() || void 0)), R.close());
762
+ t.length !== 0 && (T() ? x?.run(s.insertImage(t, k.value.trim() || "Image", I.value.trim() || void 0)) : A(void 0, d.insertImage(t, k.value.trim() || "Image", I.value.trim() || void 0)), R.close());
764
763
  }
765
764
  function Fe() {
766
765
  R.close();
767
766
  }
768
767
  function Ne(t) {
769
- T() ? x?.run(t === "paragraph" ? s.paragraph : s.heading(Number(t))) : t === "paragraph" ? V(void 0, d.paragraph) : V(void 0, d.heading(Number(t))), U.close();
768
+ T() ? x?.run(t === "paragraph" ? s.paragraph : s.heading(Number(t))) : t === "paragraph" ? A(void 0, d.paragraph) : A(void 0, d.heading(Number(t))), U.close();
770
769
  }
771
770
  async function Re(t) {
772
771
  T(), await U.toggle(t);
@@ -775,14 +774,14 @@ const Pa = ["data-locale", "data-mode", "data-theme"], za = {
775
774
  T(), await j.toggle(t);
776
775
  }
777
776
  function Ce(t, o) {
778
- T() ? x?.run(s[o]) : V(void 0, t), j.close();
777
+ T() ? x?.run(s[o]) : A(void 0, t), j.close();
779
778
  }
780
779
  async function Ie(t) {
781
780
  if (T(), $.visible.value) {
782
781
  $.close();
783
782
  return;
784
783
  }
785
- A.value = L.value.linkHref ?? "", Y.value = L.value.linkText ?? window.getSelection()?.toString().trim() ?? "", q.value = L.value.linkOpenInNewWindow, await $.open(t);
784
+ V.value = L.value.linkHref ?? "", Y.value = L.value.linkText ?? window.getSelection()?.toString().trim() ?? "", q.value = L.value.linkOpenInNewWindow, await $.open(t);
786
785
  }
787
786
  async function pe(t) {
788
787
  const o = L.value.linkHref;
@@ -790,7 +789,7 @@ const Pa = ["data-locale", "data-mode", "data-theme"], za = {
790
789
  Me();
791
790
  return;
792
791
  }
793
- A.value = t?.getAttribute("href") ?? o ?? "", Y.value = t?.textContent ?? L.value.linkText ?? "", q.value = t?.getAttribute("target") === "_blank" || L.value.linkOpenInNewWindow;
792
+ V.value = t?.getAttribute("href") ?? o ?? "", Y.value = t?.textContent ?? L.value.linkText ?? "", q.value = t?.getAttribute("target") === "_blank" || L.value.linkOpenInNewWindow;
794
793
  const v = window.getSelection()?.anchorNode, P = v instanceof Element ? v : v?.parentElement, ve = t ?? P?.closest("a");
795
794
  ve != null && await $.open(ve);
796
795
  }
@@ -799,7 +798,7 @@ const Pa = ["data-locale", "data-mode", "data-theme"], za = {
799
798
  if (!(o instanceof Element)) return;
800
799
  const v = o.closest(".ProseMirror img");
801
800
  if (v !== null) {
802
- t.preventDefault(), B?.selectElement(v), Z.open(v);
801
+ t.preventDefault(), B?.selectElement(v), K.open(v);
803
802
  return;
804
803
  }
805
804
  const P = o.closest(".ProseMirror a");
@@ -809,15 +808,15 @@ const Pa = ["data-locale", "data-mode", "data-theme"], za = {
809
808
  T(), await W.toggle(t);
810
809
  }
811
810
  function te(t, o) {
812
- T() ? x?.run(s[o]) : V(void 0, t), W.close();
811
+ T() ? x?.run(s[o]) : A(void 0, t), W.close();
813
812
  }
814
813
  async function je(t) {
815
814
  T(), await R.toggle(t);
816
815
  }
817
816
  async function xe(t) {
818
- V(void 0, t), await ne();
817
+ A(void 0, t), await ne();
819
818
  const o = M.value?.querySelector(".ProseMirror img.ProseMirror-selectednode");
820
- o != null && await Z.open(o);
819
+ o != null && await K.open(o);
821
820
  }
822
821
  async function Ue(t) {
823
822
  await Q.toggle(t);
@@ -834,18 +833,18 @@ const Pa = ["data-locale", "data-mode", "data-theme"], za = {
834
833
  function Ye() {
835
834
  N.close(), T() ? x?.run(s.insertInlineMath) : B?.run(d.insertInlineMath);
836
835
  }
837
- async function Ze(t) {
836
+ async function Ke(t) {
838
837
  T(), L.value.formula || await N.toggle(t);
839
838
  }
840
839
  function Le(t) {
841
840
  const o = t.target;
842
841
  if (o instanceof Node)
843
- for (const v of [U, j, N, $, W, R, Z, Q])
842
+ for (const v of [U, j, N, $, W, R, K, Q])
844
843
  v.contains(o) || v.close();
845
844
  }
846
845
  function Be(t) {
847
846
  if (t.key === "Escape")
848
- for (const o of [U, j, N, $, W, R, Z, Q]) o.close();
847
+ for (const o of [U, j, N, $, W, R, K, Q]) o.close();
849
848
  }
850
849
  function me() {
851
850
  n.value !== "markup" && M.value !== void 0 && (B = Je({
@@ -879,7 +878,7 @@ const Pa = ["data-locale", "data-mode", "data-theme"], za = {
879
878
  function T() {
880
879
  return n.value === "markup" ? !0 : n.value === "wysiwyg" ? !1 : (x?.hasFocus() ? se = "markup" : B?.hasFocus() && (se = "visual"), se === "markup");
881
880
  }
882
- function V(t, o) {
881
+ function A(t, o) {
883
882
  if (!u.readonly) {
884
883
  if (T() && t !== void 0) {
885
884
  const P = {
@@ -905,7 +904,7 @@ const Pa = ["data-locale", "data-mode", "data-theme"], za = {
905
904
  return ae(
906
905
  () => u.modelValue,
907
906
  (t) => {
908
- t !== D.value && Ve(t);
907
+ t !== D.value && Ae(t);
909
908
  }
910
909
  ), ae(
911
910
  () => u.mode,
@@ -927,20 +926,20 @@ const Pa = ["data-locale", "data-mode", "data-theme"], za = {
927
926
  me(), document.addEventListener("pointerdown", Le), document.addEventListener("keydown", Be);
928
927
  }), be(() => {
929
928
  ue(), document.removeEventListener("pointerdown", Le), document.removeEventListener("keydown", Be);
930
- }), g({
931
- append: (t) => K(Ee(D.value, t)),
932
- clear: () => K(""),
929
+ }), f({
930
+ append: (t) => Z(Ee(D.value, t)),
931
+ clear: () => Z(""),
933
932
  focus: () => n.value === "markup" ? x?.focus() : B?.focus(),
934
933
  getMode: () => n.value,
935
934
  getValue: () => D.value,
936
935
  hasFocus: () => n.value === "markup" ? x?.hasFocus() ?? !1 : B?.hasFocus() ?? !1,
937
- insert: Ae,
936
+ insert: Ve,
938
937
  isEmpty: () => D.value.length === 0,
939
938
  moveCursor: Se,
940
- prepend: (t) => K(Ee(t, D.value)),
941
- replace: K,
939
+ prepend: (t) => Z(Ee(t, D.value)),
940
+ replace: Z,
942
941
  setMode: ce,
943
- setValue: K
942
+ setValue: Z
944
943
  }), (t, o) => (r(), m("section", {
945
944
  class: "markdown-editor",
946
945
  "data-locale": e.locale,
@@ -948,10 +947,10 @@ const Pa = ["data-locale", "data-mode", "data-theme"], za = {
948
947
  "data-theme": e.theme,
949
948
  onClick: qe
950
949
  }, [
951
- t.$slots.header ? (r(), m("header", za, [
950
+ t.$slots.header ? (r(), m("header", Fa, [
952
951
  fe(t.$slots, "header", {}, void 0, !0)
953
952
  ])) : E("", !0),
954
- e.readonly ? E("", !0) : (r(), X(Va, {
953
+ e.readonly ? E("", !0) : (r(), X(Sa, {
955
954
  key: 1,
956
955
  commands: c(d),
957
956
  "code-menu-visible": c(j).visible.value,
@@ -967,9 +966,9 @@ const Pa = ["data-locale", "data-mode", "data-theme"], za = {
967
966
  "toolbar-preset": e.toolbarPreset,
968
967
  "toolbar-config": e.toolbarConfig,
969
968
  translate: de,
970
- onExecute: V,
969
+ onExecute: A,
971
970
  onInsertHtml: Qe,
972
- onToggleFormulaMenu: Ze,
971
+ onToggleFormulaMenu: Ke,
973
972
  onToggleCodeMenu: De,
974
973
  onToggleHeadingMenu: Re,
975
974
  onToggleImageEditor: je,
@@ -1016,12 +1015,12 @@ const Pa = ["data-locale", "data-mode", "data-theme"], za = {
1016
1015
  "open-in-new-window": q.value,
1017
1016
  theme: e.theme,
1018
1017
  text: Y.value,
1019
- url: A.value,
1018
+ url: V.value,
1020
1019
  onApply: Pe,
1021
1020
  onCancel: Me,
1022
- onRemove: o[6] || (o[6] = (v) => V(void 0, c(d).removeLink)),
1021
+ onRemove: o[6] || (o[6] = (v) => A(void 0, c(d).removeLink)),
1023
1022
  "onUpdate:text": o[7] || (o[7] = (v) => Y.value = v),
1024
- "onUpdate:url": o[8] || (o[8] = (v) => A.value = v),
1023
+ "onUpdate:url": o[8] || (o[8] = (v) => V.value = v),
1025
1024
  "onUpdate:openInNewWindow": o[9] || (o[9] = (v) => q.value = v)
1026
1025
  }, null, 8, ["has-current-link", "locale", "open-in-new-window", "theme", "text", "url"])) : E("", !0),
1027
1026
  c(R).visible.value ? (r(), X(wt, {
@@ -1040,7 +1039,7 @@ const Pa = ["data-locale", "data-mode", "data-theme"], za = {
1040
1039
  "onUpdate:title": o[11] || (o[11] = (v) => I.value = v),
1041
1040
  "onUpdate:url": o[12] || (o[12] = (v) => l.value = v)
1042
1041
  }, null, 8, ["alt", "locale", "theme", "title", "upload-image", "url"])) : E("", !0),
1043
- c(Z).visible.value ? (r(), X(oa, {
1042
+ c(K).visible.value ? (r(), X(oa, {
1044
1043
  key: 2,
1045
1044
  ref_key: "imageActions",
1046
1045
  ref: he,
@@ -1051,7 +1050,7 @@ const Pa = ["data-locale", "data-mode", "data-theme"], za = {
1051
1050
  onObjectFit: o[14] || (o[14] = (v) => xe(c(d).setImageDisplay(void 0, v)))
1052
1051
  }, null, 8, ["object-fit", "theme"])) : E("", !0)
1053
1052
  ])),
1054
- f("div", {
1053
+ g("div", {
1055
1054
  class: vt(["markdown-editor__hosts", { "markdown-editor__hosts--split": n.value === "split" }])
1056
1055
  }, [
1057
1056
  n.value !== "markup" ? (r(), m("div", {
@@ -1067,22 +1066,22 @@ const Pa = ["data-locale", "data-mode", "data-theme"], za = {
1067
1066
  class: "markdown-editor__markup"
1068
1067
  }, null, 512)) : E("", !0)
1069
1068
  ], 2)
1070
- ], 8, Pa));
1069
+ ], 8, za));
1071
1070
  }
1072
- }), Wa = /* @__PURE__ */ _(Fa, [["__scopeId", "data-v-44b8d7ae"]]);
1073
- function Qa(e = {}) {
1074
- const g = tt(e), y = h(g.getValue()), u = h(g.getMode()), b = h(g.readonly), d = h(g.toolbarVisible), s = () => g.destroy();
1075
- return g.on("change", (i) => {
1071
+ }), Qa = /* @__PURE__ */ _(Na, [["__scopeId", "data-v-44b8d7ae"]]);
1072
+ function Ga(e = {}) {
1073
+ const f = tt(e), y = h(f.getValue()), u = h(f.getMode()), b = h(f.readonly), d = h(f.toolbarVisible), s = () => f.destroy();
1074
+ return f.on("change", (i) => {
1076
1075
  y.value = i;
1077
- }), g.on("modeChange", (i) => {
1076
+ }), f.on("modeChange", (i) => {
1078
1077
  u.value = i;
1079
- }), g.on("changeReadonly", ({ readonly: i }) => {
1078
+ }), f.on("changeReadonly", ({ readonly: i }) => {
1080
1079
  b.value = i;
1081
- }), g.on("changeToolbarVisibility", ({ visible: i }) => {
1080
+ }), f.on("changeToolbarVisibility", ({ visible: i }) => {
1082
1081
  d.value = i;
1083
1082
  }), He() !== null && be(s), {
1084
1083
  destroy: s,
1085
- editor: g,
1084
+ editor: f,
1086
1085
  mode: le(u),
1087
1086
  readonly: le(b),
1088
1087
  toolbarVisible: le(d),
@@ -1090,233 +1089,233 @@ function Qa(e = {}) {
1090
1089
  };
1091
1090
  }
1092
1091
  export {
1093
- nl as ActionsManager,
1094
- El as BaseInputRules,
1095
- Hl as BaseKeymap,
1096
- $l as BaseSchema,
1097
- Vl as Blockquote,
1098
- Ei as BlockquoteSpecs,
1099
- Sl as Bold,
1100
- Hi as BoldAttrs,
1101
- $i as BoldSpecs,
1102
- Vi as BreakNodeName,
1103
- Al as Breaks,
1104
- Si as BreaksSpecs,
1105
- Pl as ClicksOnEdges,
1106
- zl as Clipboard,
1107
- Fl as Code,
1108
- Nl as CodeBlock,
1109
- Ai as CodeBlockAttrs,
1110
- Pi as CodeBlockSpecs,
1111
- zi as CodeSpecs,
1112
- yi as CommonMarkPreset,
1113
- Li as CommonMarkSpecsPreset,
1114
- Rl as Cursor,
1115
- Mi as DefaultPreset,
1116
- Dl as Deflist,
1117
- Fi as DeflistAttr,
1118
- Ni as DeflistNode,
1119
- Ri as DeflistSpecs,
1120
- Il as EditorModeKeymap,
1121
- ol as EventEmitter,
1122
- il as ExtensionBuilder,
1123
- sl as ExtensionPriority,
1124
- rl as ExtensionsManager,
1125
- Ci as FullPreset,
1126
- Bi as FullSpecsPreset,
1127
- ql as GapCursorSelection,
1128
- Ol as Heading,
1129
- Di as HeadingSpecs,
1130
- jl as History,
1131
- Ul as HistoryAction,
1132
- Wl as HorizontalRule,
1133
- Ii as HorizontalRuleSpecs,
1134
- Ql as Html,
1135
- Gl as HtmlAttr,
1136
- Yl as HtmlNode,
1092
+ ol as ActionsManager,
1093
+ Hl as BaseInputRules,
1094
+ $l as BaseKeymap,
1095
+ Al as BaseSchema,
1096
+ Sl as Blockquote,
1097
+ Hi as BlockquoteSpecs,
1098
+ Vl as Bold,
1099
+ $i as BoldAttrs,
1100
+ Ai as BoldSpecs,
1101
+ Si as BreakNodeName,
1102
+ Pl as Breaks,
1103
+ Vi as BreaksSpecs,
1104
+ zl as ClicksOnEdges,
1105
+ Fl as Clipboard,
1106
+ Nl as Code,
1107
+ Rl as CodeBlock,
1108
+ Pi as CodeBlockAttrs,
1109
+ zi as CodeBlockSpecs,
1110
+ Fi as CodeSpecs,
1111
+ Mi as CommonMarkPreset,
1112
+ Bi as CommonMarkSpecsPreset,
1113
+ Dl as Cursor,
1114
+ Ci as DefaultPreset,
1115
+ Il as Deflist,
1116
+ Ni as DeflistAttr,
1117
+ Ri as DeflistNode,
1118
+ Di as DeflistSpecs,
1119
+ ql as EditorModeKeymap,
1120
+ il as EventEmitter,
1121
+ sl as ExtensionBuilder,
1122
+ rl as ExtensionPriority,
1123
+ dl as ExtensionsManager,
1124
+ pi as FullPreset,
1125
+ Ti as FullSpecsPreset,
1126
+ Ol as GapCursorSelection,
1127
+ jl as Heading,
1128
+ Ii as HeadingSpecs,
1129
+ Ul as History,
1130
+ Wl as HistoryAction,
1131
+ Ql as HorizontalRule,
1132
+ qi as HorizontalRuleSpecs,
1133
+ Gl as Html,
1134
+ Yl as HtmlAttr,
1135
+ Kl as HtmlNode,
1137
1136
  Zl as Image,
1138
- Kl as ImageAttr,
1139
- Xl as Italic,
1140
- qi as ItalicAttrs,
1141
- Oi as ItalicSpecs,
1137
+ Xl as ImageAttr,
1138
+ Jl as Italic,
1139
+ Oi as ItalicAttrs,
1140
+ ji as ItalicSpecs,
1142
1141
  Za as Lang,
1143
- Jl as Link,
1144
- ji as LinkAttr,
1145
- Ui as LinkSpecs,
1146
- _l as Lists,
1147
- dl as Logger,
1148
- ul as Logger2,
1149
- en as Mark,
1150
- ml as MarkdownCodec,
1151
- Wa as MarkdownEditor,
1152
- ki as MarkdownEditorForm,
1142
+ _l as Link,
1143
+ Ui as LinkAttr,
1144
+ Wi as LinkSpecs,
1145
+ en as Lists,
1146
+ ul as Logger,
1147
+ ml as Logger2,
1148
+ tn as Mark,
1149
+ cl as MarkdownCodec,
1150
+ Qa as MarkdownEditor,
1151
+ wi as MarkdownEditorForm,
1153
1152
  wt as MarkdownEditorImageForm,
1154
1153
  kt as MarkdownEditorLinkForm,
1155
- wi as MarkdownEditorTextInput,
1156
- cl as MarkdownParser,
1157
- vl as MarkdownParserDynamicModifier,
1158
- tn as Mermaid,
1159
- gl as ParserTokenRegistry,
1160
- fl as ParserTokensRegistry,
1161
- an as Placeholder,
1162
- ln as QuoteLink,
1163
- nn as Resizable,
1164
- bl as SafeEventEmitter,
1165
- kl as SchemaDynamicModifier,
1166
- wl as SchemaSpecRegistry,
1167
- on as Selection,
1168
- sn as SelectionContext,
1169
- hl as SerializerTokenRegistry,
1170
- yl as SerializerTokensRegistry,
1171
- rn as Strike,
1172
- dn as Table,
1173
- Wi as TableAttrs,
1174
- Qi as TableCellAlign,
1175
- Gi as TableNode,
1176
- Yi as TableSpecs,
1177
- un as Underline,
1178
- mn as VERSION,
1179
- Ml as WysiwygContentHandler,
1180
- cn as YfmHtmlBlock,
1181
- pi as ZeroPreset,
1182
- vn as addBreak,
1183
- gn as addEmptyDefaultTextblockToEndOfDocumentActionName,
1184
- fn as addEmptyDefaultTextblockToStartOfDocumentActionName,
1185
- bn as addHorizontalRule,
1186
- kn as addImage,
1187
- wn as addParagraphToEnd,
1188
- hn as addParagraphToStart,
1189
- yn as addTableColumn,
1190
- Mn as addTableRow,
1191
- Cn as arrowDown,
1192
- pn as arrowLeft,
1193
- xn as arrowRight,
1194
- Ln as arrowUp,
1195
- Cl as basicMarkdownCodec,
1196
- pl as basicMarkdownSchema,
1154
+ hi as MarkdownEditorTextInput,
1155
+ vl as MarkdownParser,
1156
+ gl as MarkdownParserDynamicModifier,
1157
+ an as Mermaid,
1158
+ fl as ParserTokenRegistry,
1159
+ bl as ParserTokensRegistry,
1160
+ ln as Placeholder,
1161
+ nn as QuoteLink,
1162
+ on as Resizable,
1163
+ kl as SafeEventEmitter,
1164
+ wl as SchemaDynamicModifier,
1165
+ hl as SchemaSpecRegistry,
1166
+ sn as Selection,
1167
+ rn as SelectionContext,
1168
+ yl as SerializerTokenRegistry,
1169
+ Ml as SerializerTokensRegistry,
1170
+ dn as Strike,
1171
+ un as Table,
1172
+ Qi as TableAttrs,
1173
+ Gi as TableCellAlign,
1174
+ Yi as TableNode,
1175
+ Ki as TableSpecs,
1176
+ mn as Underline,
1177
+ cn as VERSION,
1178
+ Cl as WysiwygContentHandler,
1179
+ vn as YfmHtmlBlock,
1180
+ xi as ZeroPreset,
1181
+ gn as addBreak,
1182
+ fn as addEmptyDefaultTextblockToEndOfDocumentActionName,
1183
+ bn as addEmptyDefaultTextblockToStartOfDocumentActionName,
1184
+ kn as addHorizontalRule,
1185
+ wn as addImage,
1186
+ hn as addParagraphToEnd,
1187
+ yn as addParagraphToStart,
1188
+ Mn as addTableColumn,
1189
+ Cn as addTableRow,
1190
+ pn as arrowDown,
1191
+ xn as arrowLeft,
1192
+ Ln as arrowRight,
1193
+ Bn as arrowUp,
1194
+ pl as basicMarkdownCodec,
1195
+ xl as basicMarkdownSchema,
1197
1196
  Zi as blockquoteNodeName,
1198
- Ki as boldMarkName,
1199
- el as cn,
1200
- Xi as codeBlockNodeName,
1201
- Ji as codeMarkName,
1202
- Bn as collapseListsPlugin,
1203
- si as commonmarkToolbarConfig,
1204
- Ka as configure,
1205
- ni as configureAdvancedMarkdownRenderers,
1197
+ Xi as boldMarkName,
1198
+ tl as cn,
1199
+ Ji as codeBlockNodeName,
1200
+ _i as codeMarkName,
1201
+ Tn as collapseListsPlugin,
1202
+ ri as commonmarkToolbarConfig,
1203
+ Xa as configure,
1204
+ oi as configureAdvancedMarkdownRenderers,
1206
1205
  Xe as createBasicEditorCommands,
1207
1206
  et as createBasicMarkupCommands,
1208
- Tn as createFakeParagraph,
1209
- En as createGapCursorPlugin,
1210
- Hn as createHistoryActions,
1211
- $n as createListActions,
1212
- Vn as createListsInputRules,
1213
- Sn as createListsKeymap,
1207
+ En as createFakeParagraph,
1208
+ Hn as createGapCursorPlugin,
1209
+ $n as createHistoryActions,
1210
+ An as createListActions,
1211
+ Sn as createListsInputRules,
1212
+ Vn as createListsKeymap,
1214
1213
  tt as createMarkdownEditor,
1215
- An as createTable,
1216
- ri as createToolbarConfig,
1217
- di as createToolbarGroup,
1218
- ui as createToolbarItem,
1219
- Pn as createVueContextPanelPlugin,
1220
- zn as createVueNodeView,
1221
- Fn as createVueWidgetDecoration,
1222
- xl as defaultMarkdownSchema,
1223
- Nn as defaultMermaidSource,
1224
- mi as defaultToolbarConfig,
1225
- Rn as defaultYfmHtml,
1226
- Dn as deleteTable,
1227
- In as deleteTableColumn,
1228
- qn as deleteTableRow,
1229
- On as findFakeParaPosClosestToPos,
1230
- jn as findFakeParaPosForCodeBlock,
1231
- Un as findFakeParaPosForNodeSelection,
1232
- Wn as findFakeParaPosForTextSelection,
1233
- ci as fullToolbarConfig,
1234
- Qn as gapCursorBackspace,
1235
- oi as getAdvancedMarkdownRenderers,
1236
- Ll as getBasicWysiwygSelectionState,
1237
- Gn as getBlockquoteType,
1238
- Yn as getBoldType,
1214
+ Pn as createTable,
1215
+ di as createToolbarConfig,
1216
+ ui as createToolbarGroup,
1217
+ mi as createToolbarItem,
1218
+ zn as createVueContextPanelPlugin,
1219
+ Fn as createVueNodeView,
1220
+ Nn as createVueWidgetDecoration,
1221
+ Ll as defaultMarkdownSchema,
1222
+ Rn as defaultMermaidSource,
1223
+ ci as defaultToolbarConfig,
1224
+ Dn as defaultYfmHtml,
1225
+ In as deleteTable,
1226
+ qn as deleteTableColumn,
1227
+ On as deleteTableRow,
1228
+ jn as findFakeParaPosClosestToPos,
1229
+ Un as findFakeParaPosForCodeBlock,
1230
+ Wn as findFakeParaPosForNodeSelection,
1231
+ Qn as findFakeParaPosForTextSelection,
1232
+ vi as fullToolbarConfig,
1233
+ Gn as gapCursorBackspace,
1234
+ ii as getAdvancedMarkdownRenderers,
1235
+ Bl as getBasicWysiwygSelectionState,
1236
+ Yn as getBlockquoteType,
1237
+ Kn as getBoldType,
1239
1238
  Zn as getCodeBlockType,
1240
- Kn as getCodeType,
1241
- Xa as getConfig,
1242
- Xn as getCurrentLink,
1243
- Jn as getDeflistTypes,
1244
- _n as getHeadingType,
1245
- eo as getHorizontalRuleType,
1246
- to as getImageType,
1247
- ao as getItalicType,
1248
- lo as getLinkType,
1249
- no as getMarkType,
1250
- Ke as getMarkdownEditorMessages,
1251
- oo as getQuoteLinkType,
1252
- io as getStrikeType,
1239
+ Xn as getCodeType,
1240
+ Ja as getConfig,
1241
+ Jn as getCurrentLink,
1242
+ _n as getDeflistTypes,
1243
+ eo as getHeadingType,
1244
+ to as getHorizontalRuleType,
1245
+ ao as getImageType,
1246
+ lo as getItalicType,
1247
+ no as getLinkType,
1248
+ oo as getMarkType,
1249
+ Ze as getMarkdownEditorMessages,
1250
+ io as getQuoteLinkType,
1251
+ so as getStrikeType,
1253
1252
  gt as getToolbarConfig,
1254
- so as getUnderlineType,
1255
- ro as goToTableCell,
1256
- _i as headingLevelAttr,
1257
- es as headingNodeName,
1258
- uo as hierarchicalSelectAll,
1259
- ts as horizontalRuleMarkupAttr,
1260
- as as horizontalRuleNodeName,
1261
- mo as imageNodeName,
1262
- co as imageObjectFitValues,
1263
- vo as insertMermaid,
1264
- go as insertTable,
1265
- fo as insertYfmHtmlBlock,
1266
- bo as isBreakNode,
1267
- ko as isGapCursorSelection,
1268
- wo as isInsideCode,
1253
+ ro as getUnderlineType,
1254
+ uo as goToTableCell,
1255
+ es as headingLevelAttr,
1256
+ ts as headingNodeName,
1257
+ mo as hierarchicalSelectAll,
1258
+ as as horizontalRuleMarkupAttr,
1259
+ ls as horizontalRuleNodeName,
1260
+ co as imageNodeName,
1261
+ vo as imageObjectFitValues,
1262
+ go as insertMermaid,
1263
+ fo as insertTable,
1264
+ bo as insertYfmHtmlBlock,
1265
+ ko as isBreakNode,
1266
+ wo as isGapCursorSelection,
1267
+ ho as isInsideCode,
1269
1268
  G as isToolbarItemActive,
1270
1269
  bt as isToolbarItemAvailable,
1271
1270
  S as isToolbarItemEnabled,
1272
- ls as italicMarkName,
1273
- ho as joinPrevList,
1274
- yo as liftEmptyListItem,
1275
- Mo as liftFromQuote,
1276
- ns as linkMarkName,
1277
- Co as markMarkName,
1278
- al as markdownEditorMessages,
1279
- vi as markdownEditorToolbarItemIds,
1280
- po as mergeListsPlugin,
1281
- xo as mermaidActionName,
1282
- Lo as mermaidNodeName,
1283
- gi as minimalToolbarConfig,
1271
+ ns as italicMarkName,
1272
+ yo as joinPrevList,
1273
+ Mo as liftEmptyListItem,
1274
+ Co as liftFromQuote,
1275
+ os as linkMarkName,
1276
+ po as markMarkName,
1277
+ ll as markdownEditorMessages,
1278
+ gi as markdownEditorToolbarItemIds,
1279
+ xo as mergeListsPlugin,
1280
+ Lo as mermaidActionName,
1281
+ Bo as mermaidNodeName,
1282
+ fi as minimalToolbarConfig,
1284
1283
  _e as mountBasicMarkupEditor,
1285
1284
  Je as mountBasicWysiwygEditor,
1286
- Bo as moveToNextTableRow,
1287
- To as newlineInCode,
1285
+ To as moveToNextTableRow,
1286
+ Eo as newlineInCode,
1288
1287
  ft as normalizeToolbarItem,
1289
- Eo as quoteLinkActionName,
1290
- Ho as quoteLinkNodeName,
1291
- $o as removeCurrentLink,
1292
- Vo as removeLink,
1293
- Bl as renderMarkdownPreview,
1294
- So as resetCodeBlock,
1295
- Ao as resetHeading,
1296
- Po as setCodeBlock,
1297
- zo as setCodeBlockLanguage,
1298
- Fo as setImageDisplay,
1299
- No as setLink,
1300
- Ro as setTableColumnAlignment,
1301
- Do as sinkOnlySelectedListItem,
1302
- Io as splitDeflist,
1303
- qo as strikeMarkName,
1304
- Ja as subscribeConfigure,
1305
- Oo as toHeading,
1306
- jo as toList,
1307
- Uo as toggleBold,
1308
- Wo as toggleCode,
1309
- Qo as toggleHighlight,
1310
- Go as toggleItalic,
1311
- Yo as toggleLink,
1288
+ Ho as quoteLinkActionName,
1289
+ $o as quoteLinkNodeName,
1290
+ Ao as removeCurrentLink,
1291
+ So as removeLink,
1292
+ Tl as renderMarkdownPreview,
1293
+ Vo as resetCodeBlock,
1294
+ Po as resetHeading,
1295
+ zo as setCodeBlock,
1296
+ Fo as setCodeBlockLanguage,
1297
+ No as setImageDisplay,
1298
+ Ro as setLink,
1299
+ Do as setTableColumnAlignment,
1300
+ Io as sinkOnlySelectedListItem,
1301
+ qo as splitDeflist,
1302
+ Oo as strikeMarkName,
1303
+ _a as subscribeConfigure,
1304
+ jo as toHeading,
1305
+ Uo as toList,
1306
+ Wo as toggleBold,
1307
+ Qo as toggleCode,
1308
+ Go as toggleHighlight,
1309
+ Yo as toggleItalic,
1310
+ Ko as toggleLink,
1312
1311
  Zo as toggleQuote,
1313
- Ko as toggleQuoteLink,
1314
- Xo as toggleStrike,
1315
- Jo as toggleUnderline,
1316
- _o as underlineMarkName,
1317
- Qa as useMarkdownEditor,
1318
- ei as wrapToDeflist,
1319
- ti as yfmHtmlBlockActionName,
1320
- ai as yfmHtmlBlockNodeName,
1321
- fi as zeroToolbarConfig
1312
+ Xo as toggleQuoteLink,
1313
+ Jo as toggleStrike,
1314
+ _o as toggleUnderline,
1315
+ ei as underlineMarkName,
1316
+ Ga as useMarkdownEditor,
1317
+ ti as wrapToDeflist,
1318
+ ai as yfmHtmlBlockActionName,
1319
+ li as yfmHtmlBlockNodeName,
1320
+ bi as zeroToolbarConfig
1322
1321
  };