@milkdown/crepe 7.3.4 → 7.3.6

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 (48) hide show
  1. package/lib/core/crepe.d.ts +1 -1
  2. package/lib/core/crepe.d.ts.map +1 -1
  3. package/lib/feature/block-edit/handle/index.d.ts.map +1 -1
  4. package/lib/feature/block-edit/menu/index.d.ts.map +1 -1
  5. package/lib/feature/toolbar/index.d.ts.map +1 -1
  6. package/lib/{index-wbiYuOxV.js → index-BSv6537G.js} +93 -89
  7. package/lib/{index-kJIKUIIa.js → index-BoI246Ti.js} +18 -18
  8. package/lib/{index-KpfNv3rh.js → index-DDSXiQ90.js} +4 -4
  9. package/lib/{index-TsIsEZU1.js → index-ECCvmC6D.js} +12 -6
  10. package/lib/{index-hNRb95TL.js → index-EI1FcaSv.js} +4 -4
  11. package/lib/{index-h_6aZnx8.js → index-ESoQGvsE.js} +8 -8
  12. package/lib/{index-Gz6CQY-t.js → index-GOH7H2i9.js} +4 -4
  13. package/lib/{index-j2S9Lybz.js → index-GjFRg3RJ.js} +1 -1
  14. package/lib/index-GzVCh3P9.js +353 -0
  15. package/lib/{index-fJFWq6Y-.js → index-KCykNSJx.js} +7 -7
  16. package/lib/{index-yP4hAgM2.js → index-Ls2I7eOW.js} +61 -50
  17. package/lib/{index-7mRbGzci.js → index-P4-KqpEN.js} +5 -5
  18. package/lib/{index-bnwzlBfQ.js → index-Qcks_HSE.js} +6 -6
  19. package/lib/{index-YMk3n5vO.js → index-RKThEh9x.js} +4 -4
  20. package/lib/{index-qQMehYhQ.js → index-UqF8o9eD.js} +3246 -3092
  21. package/lib/{index-xkrG0YF8.js → index-_VrGF4z-.js} +5 -5
  22. package/lib/{index-H0TD0r41.js → index-cteyPSwp.js} +1 -1
  23. package/lib/{index-0c09be_R.js → index-f0pbmfJP.js} +4 -4
  24. package/lib/{index-kwrazjQE.js → index-gMYRN2wV.js} +7 -7
  25. package/lib/{index-5QLddZAp.js → index-jZuF1Iix.js} +4 -4
  26. package/lib/{index-Gg_apETx.js → index-kyD7hUif.js} +5 -5
  27. package/lib/{index-Zxe2neJQ.js → index-oszOFbwW.js} +149 -147
  28. package/lib/{index-b2y_N_O5.js → index-pC1MPpe2.js} +31 -31
  29. package/lib/{index-JGveSciI.js → index-q3iu4cef.js} +7 -7
  30. package/lib/{index-TRbxSkC1.js → index-qMeqmZtK.js} +4 -4
  31. package/lib/index-rs4SJ8Gd.js +253 -0
  32. package/lib/{index-oOHgRzEu.js → index-w-CiezW1.js} +21 -20
  33. package/lib/{index-WAhmZOxr.js → index-x6C6leag.js} +4 -4
  34. package/lib/{index-3qfZtuPz.js → index-xa7wUurf.js} +1 -1
  35. package/lib/{index-8NLp8LdC.js → index-xjkoF_Bn.js} +9 -9
  36. package/lib/{index-Ic30Lzgg.js → index-yrfirMbY.js} +4 -4
  37. package/lib/{index-2Cm9HHYj.js → index-zNGl_CdN.js} +1 -1
  38. package/lib/{index-ffdCLz6T.js → index-zc51oyS8.js} +2 -2
  39. package/lib/index.es.js +1 -1
  40. package/lib/{schema-t8-IDHY6.js → schema-ywm7RaKF.js} +1 -1
  41. package/lib/{tippy.esm-xX0Dh8mH.js → tippy.esm-4ny8MQOF.js} +33 -33
  42. package/lib/{tooltip-plugin-0UgO85XO.js → tooltip-plugin-NpyG8C5u.js} +17 -17
  43. package/package.json +14 -14
  44. package/src/core/crepe.ts +1 -0
  45. package/src/feature/block-edit/handle/index.ts +2 -1
  46. package/src/feature/block-edit/menu/index.ts +2 -0
  47. package/src/feature/toolbar/index.ts +2 -0
  48. package/lib/yaml-DnNTfjXK.js +0 -53
@@ -1,14 +1,14 @@
1
- import { N as $, k as M, s as xe, l as Ae, t as c, P as tt, T as rt, m as B, p as nt, e as j, E as I, n as R, a as ae, o as st, q as it, C as ot, r as at, u as lt, v as ht, w as ft, f as Ee, b as ut, x as dt, y as pt, z as le, A as ct } from "./index-qQMehYhQ.js";
2
- import { htmlCompletionSource as mt, html as gt } from "./index-bnwzlBfQ.js";
1
+ import { N as $, l as M, s as xe, m as Ae, t as c, P as tt, T as rt, n as E, p as nt, e as j, k as I, o as R, a as ae, q as st, r as it, C as ot, u as at, v as lt, w as ht, x as ft, f as Be, b as ut, y as dt, z as pt, A as le, B as ct } from "./index-UqF8o9eD.js";
2
+ import { htmlCompletionSource as mt, html as gt } from "./index-Qcks_HSE.js";
3
3
  import "./meta-tAGyVRPE.js";
4
4
  import "./icons-HYkfuR-O.js";
5
- import "./index-yP4hAgM2.js";
5
+ import "./index-Ls2I7eOW.js";
6
6
  import "./hooks-82sqkbtE.js";
7
- import "./index-H0TD0r41.js";
7
+ import "./index-cteyPSwp.js";
8
8
  import "./clsx-7d8NmkQq.js";
9
- import "./index-TsIsEZU1.js";
10
- import "./index-hNRb95TL.js";
11
- import "./index-KpfNv3rh.js";
9
+ import "./index-ECCvmC6D.js";
10
+ import "./index-EI1FcaSv.js";
11
+ import "./index-DDSXiQ90.js";
12
12
  class X {
13
13
  static create(e, r, n, s, i) {
14
14
  let o = s + (s << 8) + e + (r << 4) | 0;
@@ -18,12 +18,12 @@ class X {
18
18
  this.type = e, this.value = r, this.from = n, this.hash = s, this.end = i, this.children = o, this.positions = a, this.hashProp = [[M.contextHash, s]];
19
19
  }
20
20
  addChild(e, r) {
21
- e.prop(M.contextHash) != this.hash && (e = new B(e.type, e.children, e.positions, e.length, this.hashProp)), this.children.push(e), this.positions.push(r);
21
+ e.prop(M.contextHash) != this.hash && (e = new E(e.type, e.children, e.positions, e.length, this.hashProp)), this.children.push(e), this.positions.push(r);
22
22
  }
23
23
  toTree(e, r = this.end) {
24
24
  let n = this.children.length - 1;
25
- return n >= 0 && (r = Math.max(r, this.positions[n] + this.children[n].length + this.from)), new B(e.types[this.type], this.children, this.positions, r - this.from).balance({
26
- makeTree: (s, i, o) => new B($.none, s, i, o, this.hashProp)
25
+ return n >= 0 && (r = Math.max(r, this.positions[n] + this.children[n].length + this.from)), new E(e.types[this.type], this.children, this.positions, r - this.from).balance({
26
+ makeTree: (s, i, o) => new E($.none, s, i, o, this.hashProp)
27
27
  });
28
28
  }
29
29
  }
@@ -110,7 +110,7 @@ function he(t, e, r) {
110
110
  let n = (t.type == u.OrderedList ? se : ne)(r, e, !1);
111
111
  return n > 0 && (t.type != u.BulletList || re(r, e, !1) < 0) && r.text.charCodeAt(r.pos + n - 1) == t.value;
112
112
  }
113
- const Be = {
113
+ const Ee = {
114
114
  [u.Blockquote](t, e, r) {
115
115
  return r.next != 62 ? !1 : (r.markers.push(g(u.QuoteMark, e.lineStart + r.pos, e.lineStart + r.pos + 1)), r.moveBase(r.pos + (C(r.text.charCodeAt(r.pos + 1)) ? 2 : 1)), t.end = e.lineStart + r.text.length, !0);
116
116
  },
@@ -230,7 +230,7 @@ function ue(t, e) {
230
230
  let r = t.countIndent(e, t.pos, t.indent), n = t.countIndent(t.skipSpace(e), e, r);
231
231
  return n >= r + 5 ? r + 1 : n;
232
232
  }
233
- function E(t, e, r) {
233
+ function B(t, e, r) {
234
234
  let n = t.length - 1;
235
235
  n >= 0 && t[n].to == e && t[n].type == u.CodeText ? t[n].to = r : t.push(g(u.CodeText, e, r));
236
236
  }
@@ -241,9 +241,9 @@ const z = {
241
241
  if (e.indent < r)
242
242
  return !1;
243
243
  let n = e.findColumn(r), s = t.lineStart + n, i = t.lineStart + e.text.length, o = [], a = [];
244
- for (E(o, s, i); t.nextLine() && e.depth >= t.stack.length; )
244
+ for (B(o, s, i); t.nextLine() && e.depth >= t.stack.length; )
245
245
  if (e.pos == e.text.length) {
246
- E(a, t.lineStart - 1, t.lineStart);
246
+ B(a, t.lineStart - 1, t.lineStart);
247
247
  for (let l of e.markers)
248
248
  a.push(l);
249
249
  } else {
@@ -252,15 +252,15 @@ const z = {
252
252
  {
253
253
  if (a.length) {
254
254
  for (let f of a)
255
- f.type == u.CodeText ? E(o, f.from, f.to) : o.push(f);
255
+ f.type == u.CodeText ? B(o, f.from, f.to) : o.push(f);
256
256
  a = [];
257
257
  }
258
- E(o, t.lineStart - 1, t.lineStart);
258
+ B(o, t.lineStart - 1, t.lineStart);
259
259
  for (let f of e.markers)
260
260
  o.push(f);
261
261
  i = t.lineStart + e.text.length;
262
262
  let l = t.lineStart + e.findColumn(e.baseIndent + 4);
263
- l < i && E(o, l, i);
263
+ l < i && B(o, l, i);
264
264
  }
265
265
  }
266
266
  return a.length && (a = a.filter((l) => l.type != u.CodeText), a.length && (e.markers = a.concat(e.markers))), t.addNode(t.buffer.writeElements(o, -s).finish(u.CodeBlock, i - s), s), !0;
@@ -282,11 +282,11 @@ const z = {
282
282
  l.push(g(u.CodeMark, t.lineStart + e.pos, t.lineStart + h)), t.nextLine();
283
283
  break;
284
284
  } else {
285
- f || E(l, t.lineStart - 1, t.lineStart);
285
+ f || B(l, t.lineStart - 1, t.lineStart);
286
286
  for (let m of e.markers)
287
287
  l.push(m);
288
288
  let p = t.lineStart + e.basePos, d = t.lineStart + e.text.length;
289
- p < d && E(l, p, d);
289
+ p < d && B(l, p, d);
290
290
  }
291
291
  }
292
292
  return t.addNode(t.buffer.writeElements(l, -n).finish(u.FencedCode, t.prevLineEnd() - n), n), !0;
@@ -592,7 +592,7 @@ class At {
592
592
  }
593
593
  /// @internal
594
594
  addNode(e, r, n) {
595
- typeof e == "number" && (e = new B(this.parser.nodeSet.types[e], P, P, (n ?? this.prevLineEnd()) - r)), this.block.addChild(e, r - this.block.from);
595
+ typeof e == "number" && (e = new E(this.parser.nodeSet.types[e], P, P, (n ?? this.prevLineEnd()) - r)), this.block.addChild(e, r - this.block.from);
596
596
  }
597
597
  /// Add a block element. Can be called by [block
598
598
  /// parsers](#BlockParser.parse).
@@ -647,7 +647,7 @@ function Oe(t, e, r, n, s) {
647
647
  let p = h.from + n, d, m = s.get(h.tree);
648
648
  m ? d = m : h.to + n > i ? (d = Oe(t, e, h, n, s), f(h.to + n, !1)) : d = h.toTree(), o.push(d), a.push(p - l);
649
649
  }
650
- return f(r.to + n, !1), new B(r.type, o, a, r.to + n - l, r.tree ? r.tree.propValues : void 0);
650
+ return f(r.to + n, !1), new E(r.type, o, a, r.to + n - l, r.tree ? r.tree.propValues : void 0);
651
651
  }
652
652
  class _ extends tt {
653
653
  /// @internal
@@ -724,7 +724,7 @@ class _ extends tt {
724
724
  /// returning an array of [`Element`](#Element) objects representing
725
725
  /// the inline content.
726
726
  parseInline(e, r) {
727
- let n = new Bt(this, e, r);
727
+ let n = new Et(this, e, r);
728
728
  e:
729
729
  for (let s = r; s < n.end; ) {
730
730
  let i = n.char(s);
@@ -776,7 +776,7 @@ for (let t = 1, e; e = u[t]; t++)
776
776
  Te[t] = $.define({
777
777
  id: t,
778
778
  name: e,
779
- props: t >= u.Escape ? [] : [[M.group, t in Be ? ["Block", "BlockContext"] : ["Block", "LeafBlock"]]],
779
+ props: t >= u.Escape ? [] : [[M.group, t in Ee ? ["Block", "BlockContext"] : ["Block", "LeafBlock"]]],
780
780
  top: e == "Document"
781
781
  });
782
782
  const P = [];
@@ -793,7 +793,7 @@ class ze {
793
793
  return this;
794
794
  }
795
795
  finish(e, r) {
796
- return B.build({
796
+ return E.build({
797
797
  buffer: this.content,
798
798
  nodeSet: this.nodeSet,
799
799
  reused: this.nodes,
@@ -948,7 +948,7 @@ const Q = {
948
948
  if (s instanceof x && (s.type == v || s.type == de)) {
949
949
  if (!s.side || t.skipSpace(s.to) == r && !/[(\[]/.test(t.slice(r + 1, r + 2)))
950
950
  return t.parts[n] = null, -1;
951
- let i = t.takeContent(n), o = t.parts[n] = Et(t, i, s.type == v ? u.Link : u.Image, s.from, r + 1);
951
+ let i = t.takeContent(n), o = t.parts[n] = Bt(t, i, s.type == v ? u.Link : u.Image, s.from, r + 1);
952
952
  if (s.type == v)
953
953
  for (let a = 0; a < n; a++) {
954
954
  let l = t.parts[a];
@@ -960,7 +960,7 @@ const Q = {
960
960
  return -1;
961
961
  }
962
962
  };
963
- function Et(t, e, r, n, s) {
963
+ function Bt(t, e, r, n, s) {
964
964
  let { text: i } = t, o = t.char(s), a = s;
965
965
  if (e.unshift(g(u.LinkMark, n, n + (r == u.Image ? 2 : 1))), e.push(g(u.LinkMark, s - 1, s)), o == 40) {
966
966
  let l = t.skipSpace(s + 1), f = $e(i, l - t.offset, t.offset), h;
@@ -1033,7 +1033,7 @@ function _e(t, e, r, n) {
1033
1033
  }
1034
1034
  return null;
1035
1035
  }
1036
- class Bt {
1036
+ class Et {
1037
1037
  /// @internal
1038
1038
  constructor(e, r, n) {
1039
1039
  this.parser = e, this.text = r, this.offset = n, this.parts = [];
@@ -1200,7 +1200,7 @@ class Mt {
1200
1200
  if (r.to - n <= e.ranges[e.rangeI].to)
1201
1201
  e.addNode(r.tree, h);
1202
1202
  else {
1203
- let p = new B(e.parser.nodeSet.types[u.Paragraph], [], [], 0, e.block.hashProp);
1203
+ let p = new E(e.parser.nodeSet.types[u.Paragraph], [], [], 0, e.block.hashProp);
1204
1204
  e.reusePlaceholders.set(p, r.tree), e.addNode(p, h);
1205
1205
  }
1206
1206
  if (r.type.is("Block") && (It.indexOf(r.type.id) < 0 ? (o = r.to - n, a = e.block.children.length) : (o = l, a = f, l = r.to - n, f = e.block.children.length)), !r.nextSibling())
@@ -1242,7 +1242,7 @@ const Pt = xe({
1242
1242
  "CodeInfo LinkLabel": c.labelName,
1243
1243
  LinkTitle: c.string,
1244
1244
  Paragraph: c.content
1245
- }), Ht = new _(new Ae(Te).extend(Pt), Object.keys(z).map((t) => z[t]), Object.keys(z).map((t) => St[t]), Object.keys(z), Ct, Be, Object.keys(Q).map((t) => Q[t]), Object.keys(Q), []);
1245
+ }), Ht = new _(new Ae(Te).extend(Pt), Object.keys(z).map((t) => z[t]), Object.keys(z).map((t) => St[t]), Object.keys(z), Ct, Ee, Object.keys(Q).map((t) => Q[t]), Object.keys(Q), []);
1246
1246
  function vt(t, e, r) {
1247
1247
  let n = [];
1248
1248
  for (let s = t.firstChild, i = e; ; s = s.nextSibling) {
@@ -1467,7 +1467,7 @@ const jt = {
1467
1467
  }]
1468
1468
  }, Ze = /* @__PURE__ */ ft({ commentTokens: { block: { open: "<!--", close: "-->" } } }), Ge = /* @__PURE__ */ new M(), Ve = /* @__PURE__ */ Ht.configure({
1469
1469
  props: [
1470
- /* @__PURE__ */ Ee.add((t) => !t.is("Block") || t.is("Document") || W(t) != null ? void 0 : (e, r) => ({ from: r.doc.lineAt(e.from).to, to: e.to })),
1470
+ /* @__PURE__ */ Be.add((t) => !t.is("Block") || t.is("Document") || W(t) != null ? void 0 : (e, r) => ({ from: r.doc.lineAt(e.from).to, to: e.to })),
1471
1471
  /* @__PURE__ */ Ge.add(W),
1472
1472
  /* @__PURE__ */ ut.add({
1473
1473
  Document: () => null
@@ -1507,7 +1507,7 @@ function ie(t) {
1507
1507
  }
1508
1508
  const Zt = /* @__PURE__ */ ie(Ve), Gt = /* @__PURE__ */ Ve.configure([$t, _t, jt, qt, {
1509
1509
  props: [
1510
- /* @__PURE__ */ Ee.add({
1510
+ /* @__PURE__ */ Be.add({
1511
1511
  Table: (t, e) => ({ from: e.doc.lineAt(t.from).to, to: t.to })
1512
1512
  })
1513
1513
  ]
@@ -1,14 +1,14 @@
1
- import { L as p, a as u, s as m, t as e, p as n } from "./index-qQMehYhQ.js";
2
- import { html as l } from "./index-bnwzlBfQ.js";
3
- import { javascriptLanguage as b } from "./index-KpfNv3rh.js";
4
- import { L as S, a as r } from "./index-TsIsEZU1.js";
1
+ import { L as p, a as u, s as m, t as e, p as n } from "./index-UqF8o9eD.js";
2
+ import { html as l } from "./index-Qcks_HSE.js";
3
+ import { javascriptLanguage as b } from "./index-DDSXiQ90.js";
4
+ import { L as S, a as r } from "./index-ECCvmC6D.js";
5
5
  import "./meta-tAGyVRPE.js";
6
6
  import "./icons-HYkfuR-O.js";
7
- import "./index-yP4hAgM2.js";
7
+ import "./index-Ls2I7eOW.js";
8
8
  import "./hooks-82sqkbtE.js";
9
- import "./index-H0TD0r41.js";
9
+ import "./index-cteyPSwp.js";
10
10
  import "./clsx-7d8NmkQq.js";
11
- import "./index-hNRb95TL.js";
11
+ import "./index-EI1FcaSv.js";
12
12
  const c = /* @__PURE__ */ S.deserialize({
13
13
  version: 14,
14
14
  states: "%pOVOWOOObQPOOOpOSO'#C_OOOO'#Cp'#CpQVOWOOQxQPOOO!TQQOOQ!YQPOOOOOO,58y,58yO!_OSO,58yOOOO-E6n-E6nO!dQQO'#CqQ{QPOOO!iQPOOQ{QPOOO!qQPOOOOOO1G.e1G.eOOQO,59],59]OOQO-E6o-E6oO!yOpO'#CiO#RO`O'#CiQOQPOOO#ZO#tO'#CmO#fO!bO'#CmOOQO,59T,59TO#qOpO,59TO#vO`O,59TOOOO'#Cr'#CrO#{O#tO,59XOOQO,59X,59XOOOO'#Cs'#CsO$WO!bO,59XOOQO1G.o1G.oOOOO-E6p-E6pOOQO1G.s1G.sOOOO-E6q-E6q",
@@ -1,10 +1,10 @@
1
- import { E as a, L as o } from "./index-TsIsEZU1.js";
2
- import { s as Z, t as Q, L as _, b as q, d as r, f as l, j as w, a as V } from "./index-qQMehYhQ.js";
1
+ import { E as a, L as o } from "./index-ECCvmC6D.js";
2
+ import { s as Z, t as Q, L as _, b as q, d as r, f as l, j as w, a as V } from "./index-UqF8o9eD.js";
3
3
  import "./meta-tAGyVRPE.js";
4
4
  import "./icons-HYkfuR-O.js";
5
- import "./index-yP4hAgM2.js";
5
+ import "./index-Ls2I7eOW.js";
6
6
  import "./hooks-82sqkbtE.js";
7
- import "./index-H0TD0r41.js";
7
+ import "./index-cteyPSwp.js";
8
8
  import "./clsx-7d8NmkQq.js";
9
9
  const R = 1, g = 2, b = 3, y = 4, T = 5, s = 98, c = 101, p = 102, t = 114, v = 69, X = 48, W = 46, d = 43, f = 45, Y = 35, z = 34, x = 124, U = 60, h = 62;
10
10
  function n(O) {
@@ -0,0 +1,253 @@
1
+ import { E as W, k as u, a as T, e as b, p as y, L as v, s as k, t, b as _, h as R, f as Y } from "./index-UqF8o9eD.js";
2
+ import { html as w } from "./index-Qcks_HSE.js";
3
+ import { L as U, E as d } from "./index-ECCvmC6D.js";
4
+ import "./meta-tAGyVRPE.js";
5
+ import "./icons-HYkfuR-O.js";
6
+ import "./index-Ls2I7eOW.js";
7
+ import "./hooks-82sqkbtE.js";
8
+ import "./index-cteyPSwp.js";
9
+ import "./clsx-7d8NmkQq.js";
10
+ import "./index-EI1FcaSv.js";
11
+ import "./index-DDSXiQ90.js";
12
+ const G = 1, X = 2, S = 3, z = 180, j = 4, h = 181, Z = 5, E = 182;
13
+ function x(O) {
14
+ return O >= 65 && O <= 90 || O >= 97 && O <= 122;
15
+ }
16
+ const V = /* @__PURE__ */ new d((O) => {
17
+ let a = O.pos;
18
+ for (; ; ) {
19
+ let { next: e } = O;
20
+ if (e < 0)
21
+ break;
22
+ if (e == 123) {
23
+ let r = O.peek(1);
24
+ if (r == 123) {
25
+ if (O.pos > a)
26
+ break;
27
+ O.acceptToken(G, 2);
28
+ return;
29
+ } else if (r == 37) {
30
+ if (O.pos > a)
31
+ break;
32
+ let $ = 2, i = 2;
33
+ for (; ; ) {
34
+ let n = O.peek($);
35
+ if (n == 32 || n == 10)
36
+ ++$;
37
+ else if (n == 35)
38
+ for (++$; ; ) {
39
+ let Q = O.peek($);
40
+ if (Q < 0 || Q == 10)
41
+ break;
42
+ $++;
43
+ }
44
+ else if (n == 45 && i == 2)
45
+ i = ++$;
46
+ else {
47
+ let Q = n == 101 && O.peek($ + 1) == 110 && O.peek($ + 2) == 100;
48
+ O.acceptToken(Q ? S : X, i);
49
+ return;
50
+ }
51
+ }
52
+ }
53
+ }
54
+ if (O.advance(), e == 10)
55
+ break;
56
+ }
57
+ O.pos > a && O.acceptToken(z);
58
+ });
59
+ function f(O, a, e) {
60
+ return new d((r) => {
61
+ let $ = r.pos;
62
+ for (; ; ) {
63
+ let { next: i } = r;
64
+ if (i == 123 && r.peek(1) == 37) {
65
+ let n = 2;
66
+ for (; ; n++) {
67
+ let l = r.peek(n);
68
+ if (l != 32 && l != 10)
69
+ break;
70
+ }
71
+ let Q = "";
72
+ for (; ; n++) {
73
+ let l = r.peek(n);
74
+ if (!x(l))
75
+ break;
76
+ Q += String.fromCharCode(l);
77
+ }
78
+ if (Q == O) {
79
+ if (r.pos > $)
80
+ break;
81
+ r.acceptToken(e, 2);
82
+ break;
83
+ }
84
+ } else if (i < 0)
85
+ break;
86
+ if (r.advance(), i == 10)
87
+ break;
88
+ }
89
+ r.pos > $ && r.acceptToken(a);
90
+ });
91
+ }
92
+ const F = /* @__PURE__ */ f("endcomment", E, Z), D = /* @__PURE__ */ f("endraw", h, j), N = { __proto__: null, contains: 32, or: 36, and: 36, true: 50, false: 50, empty: 52, forloop: 54, tablerowloop: 56, continue: 58, in: 128, with: 194, for: 196, as: 198, if: 234, endif: 238, unless: 244, endunless: 248, elsif: 252, else: 256, case: 262, endcase: 266, when: 270, endfor: 278, tablerow: 284, endtablerow: 288, break: 292, cycle: 298, echo: 302, render: 306, include: 312, assign: 316, capture: 322, endcapture: 326, increment: 330, decrement: 334 }, C = { __proto__: null, if: 82, endif: 86, elsif: 90, else: 94, unless: 100, endunless: 104, case: 110, endcase: 114, when: 118, for: 126, endfor: 136, tablerow: 142, endtablerow: 146, break: 150, continue: 154, cycle: 158, comment: 164, endcomment: 170, raw: 176, endraw: 182, echo: 186, render: 190, include: 202, assign: 206, capture: 212, endcapture: 216, increment: 220, decrement: 224, liquid: 228 }, I = /* @__PURE__ */ U.deserialize({
93
+ version: 14,
94
+ states: "GYQYOPOOOOOP'#F{'#F{OeOXO'#CdOsQWO'#CfO!bQ`O'#DQO#{OPO'#DTO$ZOPO'#D^O$iOPO'#DcO$wOPO'#DkO%VOPO'#DsO%eOSO'#EOO%jOQO'#EUO%oOPO'#EhOOOP'#G`'#G`OOOP'#G]'#G]OOOP'#Fz'#FzQYOPOOOOOP-E9y-E9yOOQO'#Cg'#CgO&`QpO,59QO&gQpO'#G^OsQWO'#CsOOQO'#G^'#G^OOOP,59l,59lO)PQWO,59lOsQWO,59pOsQWO,59tO)WQ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p ) ( RangeExpression .. BooleanLiteral empty forloop tablerowloop continue StringLiteral NumberLiteral Filter | FilterName : Tag TagName %} IfDirective Tag if EndTag endif Tag elsif Tag else UnlessDirective Tag unless EndTag endunless CaseDirective Tag case EndTag endcase Tag when , ForDirective Tag for in Parameter ParameterName EndTag endfor TableDirective Tag tablerow EndTag endtablerow Tag break Tag continue Tag cycle Comment Tag comment CommentText EndTag endcomment RawDirective Tag raw RawText EndTag endraw Tag echo Tag render RenderParameter with for as Tag include Tag assign CaptureDirective Tag capture EndTag endcapture Tag increment Tag decrement Tag liquid IfDirective Tag if EndTag endif UnlessDirective Tag unless EndTag endunless Tag elsif Tag else CaseDirective Tag case EndTag endcase Tag when ForDirective Tag EndTag endfor TableDirective Tag tablerow EndTag endtablerow Tag break Tag Tag cycle Tag echo Tag render RenderParameter Tag include Tag assign CaptureDirective Tag capture EndTag endcapture Tag increment Tag decrement",
98
+ maxTerm: 189,
99
+ nodeProps: [
100
+ ["closedBy", 1, "}}", -4, 2, 3, 4, 5, "%}", 22, ")"],
101
+ ["openedBy", 9, "{{", 21, "(", 38, "{%"],
102
+ ["group", -12, 11, 12, 15, 19, 23, 25, 26, 27, 28, 29, 30, 31, "Expression"]
103
+ ],
104
+ skippedNodes: [0, 6],
105
+ repeatNodeCount: 11,
106
+ tokenData: ")l~RlXY!yYZ!y]^!ypq!yqr#[rs#gst$Xuv$pwx${xy%hyz%m{|%r|}'^}!O'c!O!P'o!Q![&{![!](P!^!_(U!_!`(^!`!a(U!c!}(f#R#S(f#T#o(f#p#q)[#q#r)a%W;'S(f;'S;:j)U<%lO(f~#OS%O~XY!yYZ!y]^!ypq!y~#_P!_!`#b~#gOa~~#jUOY#gZr#grs#|s;'S#g;'S;=`$R<%lO#g~$ROn~~$UP;=`<%l#g~$^SU~OY$XZ;'S$X;'S;=`$j<%lO$X~$mP;=`<%l$X~$sP#q#r$v~${Ov~~%OUOY${Zw${wx#|x;'S${;'S;=`%b<%lO${~%eP;=`<%l${~%mOf~~%rOe~P%uQ!O!P%{!Q![&{P&OP!Q![&RP&WRoP!Q![&R!g!h&a#X#Y&aP&dR{|&m}!O&m!Q![&sP&pP!Q![&sP&xPoP!Q![&sP'QSoP!O!P%{!Q![&{!g!h&a#X#Y&a~'cO!^~~'fRuv$p!O!P%{!Q![&{~'tQ]S!O!P'z!Q![&R~(POh~~(UOs~~(ZPa~!_!`#b~(cPd~!_!`#b_(oV^WuQ%RT!Q![(f!c!}(f#R#S(f#T#o(f%W;'S(f;'S;:j)U<%lO(f_)XP;=`<%l(f~)aOq~~)dP#q#r)g~)lOX~",
107
+ tokenizers: [V, D, F, 0, 1, 2, 3],
108
+ topRules: { Template: [0, 7] },
109
+ specialized: [{ term: 187, get: (O) => N[O] || -1 }, { term: 37, get: (O) => C[O] || -1 }],
110
+ tokenPrec: 0
111
+ });
112
+ function s(O, a) {
113
+ return O.split(" ").map((e) => ({ label: e, type: a }));
114
+ }
115
+ const m = /* @__PURE__ */ s("abs append at_least at_most capitalize ceil compact concat date default divided_by downcase escape escape_once first floor join last lstrip map minus modulo newline_to_br plus prepend remove remove_first replace replace_first reverse round rstrip size slice sort sort_natural split strip strip_html strip_newlines sum times truncate truncatewords uniq upcase url_decode url_encode where", "function"), P = /* @__PURE__ */ s("cycle comment endcomment raw endraw echo increment decrement liquid if elsif else endif unless endunless case endcase for endfor tablerow endtablerow break continue assign capture endcapture render include", "keyword"), q = /* @__PURE__ */ s("empty forloop tablerowloop in with as contains", "keyword"), L = /* @__PURE__ */ s("first index index0 last length rindex", "property"), A = /* @__PURE__ */ s("col col0 col_first col_last first index index0 last length rindex rindex0 row", "property");
116
+ function B(O) {
117
+ var a;
118
+ let { state: e, pos: r } = O, $ = b(e).resolveInner(r, -1).enterUnfinishedNodesBefore(r), i = ((a = $.childBefore(r)) === null || a === void 0 ? void 0 : a.name) || $.name;
119
+ if ($.name == "FilterName")
120
+ return { type: "filter", node: $ };
121
+ if (O.explicit && i == "|")
122
+ return { type: "filter" };
123
+ if ($.name == "TagName")
124
+ return { type: "tag", node: $ };
125
+ if (O.explicit && i == "{%")
126
+ return { type: "tag" };
127
+ if ($.name == "PropertyName" && $.parent.name == "MemberExpression")
128
+ return { type: "property", node: $, target: $.parent };
129
+ if ($.name == "." && $.parent.name == "MemberExpression")
130
+ return { type: "property", target: $.parent };
131
+ if ($.name == "MemberExpression" && i == ".")
132
+ return { type: "property", target: $ };
133
+ if ($.name == "VariableName")
134
+ return { type: "expression", from: $.from };
135
+ let n = O.matchBefore(/[\w\u00c0-\uffff]+$/);
136
+ return n ? { type: "expression", from: n.from } : O.explicit && $.name != "CommentText" && $.name != "StringLiteral" && $.name != "NumberLiteral" && $.name != "InlineComment" ? { type: "expression" } : null;
137
+ }
138
+ function M(O, a, e, r) {
139
+ let $ = [];
140
+ for (; ; ) {
141
+ let i = a.getChild("Expression");
142
+ if (!i)
143
+ return [];
144
+ if (i.name == "forloop")
145
+ return $.length ? [] : L;
146
+ if (i.name == "tablerowloop")
147
+ return $.length ? [] : A;
148
+ if (i.name == "VariableName") {
149
+ $.unshift(O.sliceDoc(i.from, i.to));
150
+ break;
151
+ } else if (i.name == "MemberExpression") {
152
+ let n = i.getChild("PropertyName");
153
+ n && $.unshift(O.sliceDoc(n.from, n.to)), a = i;
154
+ } else
155
+ return [];
156
+ }
157
+ return r ? r($, O, e) : [];
158
+ }
159
+ function H(O = {}) {
160
+ let a = O.filters ? O.filters.concat(m) : m, e = O.tags ? O.tags.concat(P) : P, r = O.variables ? O.variables.concat(q) : q, { properties: $ } = O;
161
+ return (i) => {
162
+ var n;
163
+ let Q = B(i);
164
+ if (!Q)
165
+ return null;
166
+ let l = (n = Q.from) !== null && n !== void 0 ? n : Q.node ? Q.node.from : i.pos, o;
167
+ return Q.type == "filter" ? o = a : Q.type == "tag" ? o = e : Q.type == "expression" ? o = r : o = M(i.state, Q.target, i, $), o.length ? { options: o, from: l, validFor: /^[\w\u00c0-\uffff]*$/ } : null;
168
+ };
169
+ }
170
+ const K = /* @__PURE__ */ W.inputHandler.of((O, a, e, r) => r != "%" || a != e || O.state.doc.sliceString(a - 1, e + 1) != "{}" ? !1 : (O.dispatch(O.state.changeByRange(($) => ({
171
+ changes: { from: $.from, to: $.to, insert: "%%" },
172
+ range: u.cursor($.from + 1)
173
+ })), {
174
+ scrollIntoView: !0,
175
+ userEvent: "input.type"
176
+ }), !0));
177
+ function c(O) {
178
+ return (a) => {
179
+ let e = O.test(a.textAfter);
180
+ return a.lineIndent(a.node.from) + (e ? 0 : a.unit);
181
+ };
182
+ }
183
+ const J = /* @__PURE__ */ v.define({
184
+ name: "liquid",
185
+ parser: /* @__PURE__ */ I.configure({
186
+ props: [
187
+ /* @__PURE__ */ k({
188
+ "cycle comment endcomment raw endraw echo increment decrement liquid in with as": t.keyword,
189
+ "empty forloop tablerowloop": t.atom,
190
+ "if elsif else endif unless endunless case endcase for endfor tablerow endtablerow break continue": t.controlKeyword,
191
+ "assign capture endcapture": t.definitionKeyword,
192
+ contains: t.operatorKeyword,
193
+ "render include": t.moduleKeyword,
194
+ VariableName: t.variableName,
195
+ TagName: t.tagName,
196
+ FilterName: /* @__PURE__ */ t.function(t.variableName),
197
+ PropertyName: t.propertyName,
198
+ CompareOp: t.compareOperator,
199
+ AssignOp: t.definitionOperator,
200
+ LogicOp: t.logicOperator,
201
+ NumberLiteral: t.number,
202
+ StringLiteral: t.string,
203
+ BooleanLiteral: t.bool,
204
+ InlineComment: t.lineComment,
205
+ CommentText: t.blockComment,
206
+ "{% %} {{ }}": t.brace,
207
+ "( )": t.paren,
208
+ ".": t.derefOperator,
209
+ ", .. : |": t.punctuation
210
+ }),
211
+ /* @__PURE__ */ _.add({
212
+ Tag: /* @__PURE__ */ R({ closing: "%}" }),
213
+ "UnlessDirective ForDirective TablerowDirective CaptureDirective": /* @__PURE__ */ c(/^\s*(\{%-?\s*)?end\w/),
214
+ IfDirective: /* @__PURE__ */ c(/^\s*(\{%-?\s*)?(endif|else|elsif)\b/),
215
+ CaseDirective: /* @__PURE__ */ c(/^\s*(\{%-?\s*)?(endcase|when)\b/)
216
+ }),
217
+ /* @__PURE__ */ Y.add({
218
+ "UnlessDirective ForDirective TablerowDirective CaptureDirective IfDirective CaseDirective RawDirective Comment"(O) {
219
+ let a = O.firstChild, e = O.lastChild;
220
+ return !a || a.name != "Tag" ? null : { from: a.to, to: e.name == "EndTag" ? e.from : O.to };
221
+ }
222
+ })
223
+ ]
224
+ }),
225
+ languageData: {
226
+ commentTokens: { line: "#" },
227
+ indentOnInput: /^\s*{%-?\s*(?:end|elsif|else|when|)$/
228
+ }
229
+ }), p = /* @__PURE__ */ w();
230
+ function g(O) {
231
+ return J.configure({
232
+ wrap: y((a) => a.type.isTop ? {
233
+ parser: O.parser,
234
+ overlay: (e) => e.name == "Text" || e.name == "RawText"
235
+ } : null)
236
+ }, "liquid");
237
+ }
238
+ const OO = /* @__PURE__ */ g(p.language);
239
+ function cO(O = {}) {
240
+ let a = O.base || p, e = a.language == p.language ? OO : g(a.language);
241
+ return new T(e, [
242
+ a.support,
243
+ e.data.of({ autocomplete: H(O) }),
244
+ a.language.data.of({ closeBrackets: { brackets: ["{"] } }),
245
+ K
246
+ ]);
247
+ }
248
+ export {
249
+ K as closePercentBrace,
250
+ cO as liquid,
251
+ H as liquidCompletionSource,
252
+ OO as liquidLanguage
253
+ };
@@ -7,31 +7,31 @@ var a = (o, t, n) => (v(o, t, "read from private field"), n ? n.call(o) : t.get(
7
7
  throw TypeError("Cannot add the same private member more than once");
8
8
  t instanceof WeakSet ? t.add(o) : t.set(o, n);
9
9
  }, g = (o, t, n, c) => (v(o, t, "write to private field"), c ? c.call(o, n) : t.set(o, n), n);
10
- import { O as B, Q as S, R as E, d as b, f, U as u, V as I, W as F, X as O, i as P, T as k } from "./index-yP4hAgM2.js";
11
- import { h as m, c as R, f as A, a as j } from "./meta-tAGyVRPE.js";
10
+ import { Q as B, R as S, U as E, d as b, g as f, V as u, W as I, X as F, Y as O, i as P, f as R, T as k } from "./index-Ls2I7eOW.js";
11
+ import { h as m, c as A, f as j, a as D } from "./meta-tAGyVRPE.js";
12
12
  import { c as p } from "./clsx-7d8NmkQq.js";
13
- import { a as H, t as U, T as D } from "./tooltip-plugin-0UgO85XO.js";
13
+ import { a as H, t as U, T as N } from "./tooltip-plugin-NpyG8C5u.js";
14
14
  import "./icons-HYkfuR-O.js";
15
- import "./tippy.esm-xX0Dh8mH.js";
16
- const N = m`
15
+ import "./tippy.esm-4ny8MQOF.js";
16
+ const Q = m`
17
17
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
18
18
  <path d="M8.85758 18.625C8.4358 18.625 8.07715 18.4772 7.78163 18.1817C7.48613 17.8862 7.33838 17.5275 7.33838 17.1058V6.8942C7.33838 6.47242 7.48613 6.11377 7.78163 5.81825C8.07715 5.52275 8.4358 5.375 8.85758 5.375H12.1999C13.2191 5.375 14.1406 5.69231 14.9643 6.32693C15.788 6.96154 16.1999 7.81603 16.1999 8.89038C16.1999 9.63779 16.0194 10.2471 15.6585 10.7183C15.2976 11.1894 14.9088 11.5314 14.4922 11.7442C15.005 11.9211 15.4947 12.2708 15.9614 12.7933C16.428 13.3157 16.6614 14.0192 16.6614 14.9038C16.6614 16.182 16.1902 17.1217 15.2479 17.723C14.3056 18.3243 13.3563 18.625 12.3999 18.625H8.85758ZM9.4883 16.6327H12.3191C13.1063 16.6327 13.6627 16.4141 13.9884 15.9769C14.314 15.5397 14.4768 15.1205 14.4768 14.7192C14.4768 14.3179 14.314 13.8987 13.9884 13.4615C13.6627 13.0243 13.0909 12.8057 12.273 12.8057H9.4883V16.6327ZM9.4883 10.875H12.0826C12.6903 10.875 13.172 10.7013 13.5278 10.3539C13.8836 10.0064 14.0615 9.59037 14.0615 9.10575C14.0615 8.59035 13.8733 8.16918 13.497 7.84225C13.1207 7.51533 12.6595 7.35188 12.1133 7.35188H9.4883V10.875Z" fill="#817567"/>
19
19
  </svg>
20
- `, Q = m`
20
+ `, W = m`
21
21
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
22
22
  <path d="M6.29811 18.625C6.04505 18.625 5.83115 18.5375 5.65641 18.3626C5.48166 18.1877 5.39429 17.9736 5.39429 17.7203C5.39429 17.467 5.48166 17.2532 5.65641 17.0788C5.83115 16.9045 6.04505 16.8173 6.29811 16.8173H9.21159L12.452 7.18265H9.53851C9.28545 7.18265 9.07155 7.0952 8.89681 6.9203C8.72206 6.7454 8.63469 6.5313 8.63469 6.278C8.63469 6.02472 8.72206 5.81089 8.89681 5.63652C9.07155 5.46217 9.28545 5.375 9.53851 5.375H16.8847C17.1377 5.375 17.3516 5.46245 17.5264 5.63735C17.7011 5.81225 17.7885 6.02634 17.7885 6.27962C17.7885 6.53293 17.7011 6.74676 17.5264 6.92113C17.3516 7.09548 17.1377 7.18265 16.8847 7.18265H14.2789L11.0385 16.8173H13.6443C13.8973 16.8173 14.1112 16.9048 14.286 17.0797C14.4607 17.2546 14.5481 17.4687 14.5481 17.722C14.5481 17.9752 14.4607 18.1891 14.286 18.3634C14.1112 18.5378 13.8973 18.625 13.6443 18.625H6.29811Z" fill="#817567"/>
23
23
  </svg>
24
- `, W = m`
24
+ `, X = m`
25
25
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
26
26
  <path d="M4.46924 12.0158L8.52694 16.0735C8.66541 16.212 8.73624 16.386 8.73944 16.5956C8.74266 16.8052 8.67183 16.9824 8.52694 17.1273C8.38208 17.2722 8.20644 17.3446 8.00004 17.3446C7.79364 17.3446 7.61801 17.2722 7.47315 17.1273L2.97892 12.6331C2.88532 12.5395 2.81929 12.4408 2.78084 12.3369C2.74238 12.2331 2.72314 12.1209 2.72314 12.0004C2.72314 11.8799 2.74238 11.7677 2.78084 11.6639C2.81929 11.56 2.88532 11.4613 2.97892 11.3677L7.47315 6.87351C7.62184 6.72479 7.79844 6.64882 8.00292 6.6456C8.2074 6.6424 8.38721 6.71837 8.54234 6.87351C8.69746 7.02862 8.77502 7.20682 8.77502 7.4081C8.77502 7.60937 8.69746 7.78757 8.54234 7.94271L4.46924 12.0158ZM19.5308 11.985L15.4731 7.9273C15.3347 7.78885 15.2638 7.61482 15.2606 7.40521C15.2574 7.19561 15.3283 7.01837 15.4731 6.87351C15.618 6.72862 15.7936 6.65618 16 6.65618C16.2064 6.65618 16.3821 6.72862 16.5269 6.87351L21.0212 11.3677C21.1148 11.4613 21.1808 11.56 21.2192 11.6639C21.2577 11.7677 21.2769 11.8799 21.2769 12.0004C21.2769 12.1209 21.2577 12.2331 21.2192 12.3369C21.1808 12.4408 21.1148 12.5395 21.0212 12.6331L16.5269 17.1273C16.3782 17.276 16.2042 17.3494 16.0048 17.3475C15.8055 17.3456 15.6283 17.2671 15.4731 17.1119C15.318 16.9568 15.2404 16.7786 15.2404 16.5773C15.2404 16.376 15.318 16.1978 15.4731 16.0427L19.5308 11.985Z" fill="#817567"/>
27
27
  </svg>
28
- `, X = m`
28
+ `, Y = m`
29
29
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
30
30
  <path d="M17.0385 19.5003V16.5388H14.0769V15.0388H17.0385V12.0773H18.5384V15.0388H21.5V16.5388H18.5384V19.5003H17.0385ZM10.8077 16.5388H7.03845C5.78282 16.5388 4.7125 16.0963 3.8275 15.2114C2.9425 14.3266 2.5 13.2564 2.5 12.0009C2.5 10.7454 2.9425 9.67504 3.8275 8.78979C4.7125 7.90454 5.78282 7.46191 7.03845 7.46191H10.8077V8.96186H7.03845C6.1987 8.96186 5.48235 9.25834 4.8894 9.85129C4.29645 10.4442 3.99998 11.1606 3.99998 12.0003C3.99998 12.8401 4.29645 13.5564 4.8894 14.1494C5.48235 14.7423 6.1987 15.0388 7.03845 15.0388H10.8077V16.5388ZM8.25 12.7503V11.2504H15.75V12.7503H8.25ZM21.5 12.0003H20C20 11.1606 19.7035 10.4442 19.1106 9.85129C18.5176 9.25834 17.8013 8.96186 16.9615 8.96186H13.1923V7.46191H16.9615C18.2171 7.46191 19.2875 7.90441 20.1725 8.78939C21.0575 9.67439 21.5 10.7447 21.5 12.0003Z" fill="#817567"/>
31
31
  </svg>
32
32
  `, V = ({ ctx: o, hide: t, show: n }) => {
33
- const c = A();
34
- j(() => {
33
+ const c = j();
34
+ D(() => {
35
35
  c();
36
36
  }, [n]);
37
37
  const s = (e) => (i) => {
@@ -49,7 +49,7 @@ const N = m`
49
49
  e.get(u).call(I.key);
50
50
  })}
51
51
  >
52
- ${N}
52
+ ${Q}
53
53
  </button>
54
54
  <button
55
55
  class=${p("toolbar-item", o && r(S.type(o)) && "active")}
@@ -57,7 +57,7 @@ const N = m`
57
57
  e.get(u).call(F.key);
58
58
  })}
59
59
  >
60
- ${Q}
60
+ ${W}
61
61
  </button>
62
62
  <div class="divider"></div>
63
63
  <button
@@ -66,7 +66,7 @@ const N = m`
66
66
  e.get(u).call(O.key);
67
67
  })}
68
68
  >
69
- ${W}
69
+ ${X}
70
70
  </button>
71
71
  <button
72
72
  class=${p("toolbar-item", o && r(b.type(o)) && "active")}
@@ -79,7 +79,7 @@ const N = m`
79
79
  e.get(H.key).addLink(d.from, d.to), t == null || t();
80
80
  })}
81
81
  >
82
- ${X}
82
+ ${Y}
83
83
  </button>
84
84
  </host>`;
85
85
  };
@@ -88,7 +88,7 @@ V.props = {
88
88
  hide: Function,
89
89
  show: Boolean
90
90
  };
91
- const x = R(V), _ = ".milkdown milkdown-toolbar{display:flex;background:var(--crepe-color-surface);box-shadow:var(--crepe-shadow-1);border-radius:8px;overflow:hidden}.milkdown milkdown-toolbar .divider{width:1px;background:color-mix(in srgb,var(--crepe-color-outline),transparent 80%);height:24px;margin:10px}.milkdown milkdown-toolbar .toolbar-item{width:44px;height:44px;padding:10px;cursor:pointer}.milkdown milkdown-toolbar .toolbar-item:hover{background:var(--crepe-color-hover)}.milkdown milkdown-toolbar .toolbar-item.active{background:var(--crepe-color-selected)}.milkdown milkdown-toolbar .toolbar-item svg{height:24px;width:24px;color:var(--crepe-color-outline)}", y = U("CREPE_TOOLBAR");
91
+ const x = A(V), _ = ".milkdown milkdown-toolbar{display:flex;background:var(--crepe-color-surface);box-shadow:var(--crepe-shadow-1);border-radius:8px;overflow:hidden}.milkdown milkdown-toolbar .divider{width:1px;background:color-mix(in srgb,var(--crepe-color-outline),transparent 80%);height:24px;margin:10px}.milkdown milkdown-toolbar .toolbar-item{width:44px;height:44px;padding:10px;cursor:pointer}.milkdown milkdown-toolbar .toolbar-item:hover{background:var(--crepe-color-hover)}.milkdown milkdown-toolbar .toolbar-item.active{background:var(--crepe-color-selected)}.milkdown milkdown-toolbar .toolbar-item svg{height:24px;width:24px;color:var(--crepe-color-outline)}", y = U("CREPE_TOOLBAR");
92
92
  var C, l;
93
93
  class q {
94
94
  constructor(t, n) {
@@ -102,10 +102,11 @@ class q {
102
102
  a(this, C).hide();
103
103
  };
104
104
  const c = new x();
105
- g(this, l, c), a(this, l).ctx = t, a(this, l).hide = this.hide, g(this, C, new D({
105
+ g(this, l, c), a(this, l).ctx = t, a(this, l).hide = this.hide, g(this, C, new N({
106
106
  content: a(this, l),
107
107
  debounce: 20,
108
108
  tippyOptions: {
109
+ appendTo: () => t.get(R),
109
110
  onShow: () => {
110
111
  a(this, l).show = !0;
111
112
  },
@@ -114,15 +115,15 @@ class q {
114
115
  }
115
116
  },
116
117
  shouldShow(s) {
117
- const { doc: r, selection: e } = s.state, { empty: i, from: d, to: h } = e, L = !r.textBetween(d, h).length && e instanceof k, $ = !(e instanceof k), M = c.contains(document.activeElement), T = !s.hasFocus() && !M, Z = !s.editable;
118
- return !(T || $ || i || L || Z);
118
+ const { doc: r, selection: e } = s.state, { empty: i, from: d, to: h } = e, L = !r.textBetween(d, h).length && e instanceof k, M = !(e instanceof k), T = c.contains(document.activeElement), $ = !s.hasFocus() && !T, Z = !s.editable;
119
+ return !($ || M || i || L || Z);
119
120
  }
120
121
  })), this.update(n);
121
122
  }
122
123
  }
123
124
  C = new WeakMap(), l = new WeakMap();
124
125
  customElements.define("milkdown-toolbar", x);
125
- const e1 = (o) => {
126
+ const n1 = (o) => {
126
127
  o.config(P(_)).config((t) => {
127
128
  t.set(y.key, {
128
129
  view: (n) => new q(t, n)
@@ -130,5 +131,5 @@ const e1 = (o) => {
130
131
  }).use(y);
131
132
  };
132
133
  export {
133
- e1 as defineFeature
134
+ n1 as defineFeature
134
135
  };