@milkdown/crepe 7.3.3

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 (241) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +11 -0
  3. package/lib/apl-p0IPP13W.js +76 -0
  4. package/lib/asciiarmor-lJsBxlJJ.js +34 -0
  5. package/lib/asn1-Q9v1zIy5.js +102 -0
  6. package/lib/asterisk-foNkeTjy.js +273 -0
  7. package/lib/brainfuck-0XqyXpNS.js +35 -0
  8. package/lib/clike-ak6Z6Yhe.js +639 -0
  9. package/lib/clojure-iYO8U8Sg.js +810 -0
  10. package/lib/clsx-7d8NmkQq.js +21 -0
  11. package/lib/cmake-SVzjkxV_.js +28 -0
  12. package/lib/cobol-APHEnAOX.js +74 -0
  13. package/lib/coffeescript-KqQa0SYG.js +182 -0
  14. package/lib/commonlisp-bwqNqR5V.js +79 -0
  15. package/lib/core/crepe.d.ts +21 -0
  16. package/lib/core/crepe.d.ts.map +1 -0
  17. package/lib/core/index.d.ts +3 -0
  18. package/lib/core/index.d.ts.map +1 -0
  19. package/lib/core/slice.d.ts +12 -0
  20. package/lib/core/slice.d.ts.map +1 -0
  21. package/lib/crystal-BViWuDpA.js +217 -0
  22. package/lib/css-KHXHXfXg.js +1572 -0
  23. package/lib/cypher-XpTt4zQ3.js +69 -0
  24. package/lib/d-fLig6yqY.js +139 -0
  25. package/lib/diff-WoKGLpy6.js +18 -0
  26. package/lib/dockerfile-u6f6Vw2s.js +194 -0
  27. package/lib/dtd-SIJRUW6K.js +91 -0
  28. package/lib/dylan-4HCLhpWP.js +238 -0
  29. package/lib/ebnf-h_0lged5.js +77 -0
  30. package/lib/ecl-Lf4FF0lf.js +133 -0
  31. package/lib/eiffel-qlw8KUyf.js +112 -0
  32. package/lib/elm-QRnB3zXs.js +108 -0
  33. package/lib/erlang-fyVKb7eK.js +488 -0
  34. package/lib/factor-BEeN4upY.js +65 -0
  35. package/lib/fcl-lRek3hEb.js +106 -0
  36. package/lib/feature/block-edit/handle/component.d.ts +9 -0
  37. package/lib/feature/block-edit/handle/component.d.ts.map +1 -0
  38. package/lib/feature/block-edit/handle/index.d.ts +12 -0
  39. package/lib/feature/block-edit/handle/index.d.ts.map +1 -0
  40. package/lib/feature/block-edit/index.d.ts +3 -0
  41. package/lib/feature/block-edit/index.d.ts.map +1 -0
  42. package/lib/feature/block-edit/menu/component.d.ts +14 -0
  43. package/lib/feature/block-edit/menu/component.d.ts.map +1 -0
  44. package/lib/feature/block-edit/menu/config.d.ts +21 -0
  45. package/lib/feature/block-edit/menu/config.d.ts.map +1 -0
  46. package/lib/feature/block-edit/menu/icons.d.ts +14 -0
  47. package/lib/feature/block-edit/menu/icons.d.ts.map +1 -0
  48. package/lib/feature/block-edit/menu/index.d.ts +9 -0
  49. package/lib/feature/block-edit/menu/index.d.ts.map +1 -0
  50. package/lib/feature/code-mirror/index.d.ts +3 -0
  51. package/lib/feature/code-mirror/index.d.ts.map +1 -0
  52. package/lib/feature/gap-cursor/index.d.ts +3 -0
  53. package/lib/feature/gap-cursor/index.d.ts.map +1 -0
  54. package/lib/feature/image-block/index.d.ts +3 -0
  55. package/lib/feature/image-block/index.d.ts.map +1 -0
  56. package/lib/feature/index.d.ts +18 -0
  57. package/lib/feature/index.d.ts.map +1 -0
  58. package/lib/feature/link-tooltip/consts.d.ts +5 -0
  59. package/lib/feature/link-tooltip/consts.d.ts.map +1 -0
  60. package/lib/feature/link-tooltip/index.d.ts +3 -0
  61. package/lib/feature/link-tooltip/index.d.ts.map +1 -0
  62. package/lib/feature/list-item/consts.d.ts +2 -0
  63. package/lib/feature/list-item/consts.d.ts.map +1 -0
  64. package/lib/feature/list-item/index.d.ts +3 -0
  65. package/lib/feature/list-item/index.d.ts.map +1 -0
  66. package/lib/feature/placeholder/index.d.ts +10 -0
  67. package/lib/feature/placeholder/index.d.ts.map +1 -0
  68. package/lib/feature/shared.d.ts +3 -0
  69. package/lib/feature/shared.d.ts.map +1 -0
  70. package/lib/feature/toolbar/component.d.ts +13 -0
  71. package/lib/feature/toolbar/component.d.ts.map +1 -0
  72. package/lib/feature/toolbar/consts.d.ts +5 -0
  73. package/lib/feature/toolbar/consts.d.ts.map +1 -0
  74. package/lib/feature/toolbar/index.d.ts +3 -0
  75. package/lib/feature/toolbar/index.d.ts.map +1 -0
  76. package/lib/forth-ua2bRd8T.js +60 -0
  77. package/lib/fortran-WnF7znuN.js +443 -0
  78. package/lib/gas-wowve1o7.js +183 -0
  79. package/lib/gherkin-m7GIChu3.js +34 -0
  80. package/lib/go-th443Dhb.js +158 -0
  81. package/lib/groovy-tR4RiZnc.js +161 -0
  82. package/lib/haskell-jxVBofv5.js +375 -0
  83. package/lib/haxe-kWPI2tq3.js +390 -0
  84. package/lib/hooks-82sqkbtE.js +21 -0
  85. package/lib/http-3GIFWUlG.js +45 -0
  86. package/lib/icons-HYkfuR-O.js +50 -0
  87. package/lib/idl-PvpMZg-l.js +947 -0
  88. package/lib/index-0RbcZMbq.js +8 -0
  89. package/lib/index-4afXjFMY.js +517 -0
  90. package/lib/index-7MeyepDG.js +78 -0
  91. package/lib/index-7QgQq3x3.js +551 -0
  92. package/lib/index-7pgP6qYs.js +107 -0
  93. package/lib/index-8DvtgRVa.js +19511 -0
  94. package/lib/index-8Gg-jEP4.js +288 -0
  95. package/lib/index-8S8qcncB.js +507 -0
  96. package/lib/index-9A_GmGh4.js +1039 -0
  97. package/lib/index-EJJfYLzA.js +928 -0
  98. package/lib/index-Eg39w5kL.js +984 -0
  99. package/lib/index-FIk_7oPb.js +168 -0
  100. package/lib/index-LlbrXb_n.js +368 -0
  101. package/lib/index-MovKtgMG.js +121 -0
  102. package/lib/index-N9GtIS4X.js +64 -0
  103. package/lib/index-Pwn25-kf.js +8 -0
  104. package/lib/index-SdFSDosa.js +1295 -0
  105. package/lib/index-W5Th22-Z.js +1744 -0
  106. package/lib/index-XiXSFLmI.js +20975 -0
  107. package/lib/index-bknOViGv.js +47 -0
  108. package/lib/index-bkuIUPFS.js +275 -0
  109. package/lib/index-jPA8J9Eo.js +8 -0
  110. package/lib/index-lsG76a9s.js +552 -0
  111. package/lib/index-oTRzPo3B.js +146 -0
  112. package/lib/index-rrf6_6DC.js +317 -0
  113. package/lib/index-vJbZIHYF.js +81 -0
  114. package/lib/index-vPRh55CO.js +137 -0
  115. package/lib/index-vxy63hib.js +323 -0
  116. package/lib/index-wn1_LgCS.js +99 -0
  117. package/lib/index-xHADmDT3.js +12 -0
  118. package/lib/index-yt2EpMtv.js +141 -0
  119. package/lib/index.d.ts +4 -0
  120. package/lib/index.d.ts.map +1 -0
  121. package/lib/index.es.js +7 -0
  122. package/lib/javascript-8ZHqHagw.js +758 -0
  123. package/lib/jinja2-vsOFe0qD.js +154 -0
  124. package/lib/julia-dlp_pbN1.js +241 -0
  125. package/lib/livescript-Gf5R-LT6.js +273 -0
  126. package/lib/lua-c5Y_JsBp.js +221 -0
  127. package/lib/mathematica-iiGTGmUs.js +35 -0
  128. package/lib/mbox-ZJh86H8B.js +78 -0
  129. package/lib/meta-tAGyVRPE.js +511 -0
  130. package/lib/mirc-i0qkCa0y.js +73 -0
  131. package/lib/mllike-Dy551fZW.js +275 -0
  132. package/lib/modelica-n6tGqUT9.js +94 -0
  133. package/lib/mscgen-aKSbB7D9.js +104 -0
  134. package/lib/mumps-lNiKA6sp.js +25 -0
  135. package/lib/nginx--YmuCfDj.js +93 -0
  136. package/lib/nsis-zhS8iA09.js +62 -0
  137. package/lib/ntriples-E3jQl3MC.js +79 -0
  138. package/lib/octave-EQvkGIeG.js +144 -0
  139. package/lib/oz-W2cpqFf6.js +152 -0
  140. package/lib/pascal-lCh6ouNZ.js +79 -0
  141. package/lib/perl-PxEQBX0B.js +915 -0
  142. package/lib/pig-Y_bNcrzS.js +56 -0
  143. package/lib/powershell-GaQP-TZr.js +249 -0
  144. package/lib/properties-mbRyn54L.js +26 -0
  145. package/lib/prosemirror-noTDkx-k.js +4 -0
  146. package/lib/protobuf-8CJideyJ.js +49 -0
  147. package/lib/puppet-ABBaChNZ.js +45 -0
  148. package/lib/python-sKdHg3Ka.js +321 -0
  149. package/lib/q-_1yG40Nm.js +89 -0
  150. package/lib/r-Ziz56bHT.js +108 -0
  151. package/lib/rpm-ORjGOHaQ.js +57 -0
  152. package/lib/ruby-jlbYq0dT.js +233 -0
  153. package/lib/sas-2n7xeUuO.js +107 -0
  154. package/lib/schema-tKk3m1fu.js +62 -0
  155. package/lib/scheme-XCs-NPeU.js +126 -0
  156. package/lib/shell-0_1Um7Dq.js +184 -0
  157. package/lib/sieve-7uyJD1x1.js +73 -0
  158. package/lib/simple-mode--HIzBxba.js +95 -0
  159. package/lib/smalltalk-PEFzrlQ-.js +48 -0
  160. package/lib/solr-BLBaHahN.js +41 -0
  161. package/lib/sparql-4F9ZWf1b.js +204 -0
  162. package/lib/spreadsheet-SGSo6blj.js +49 -0
  163. package/lib/sql-tebLBzN0.js +291 -0
  164. package/lib/stex-SFJcFGOO.js +130 -0
  165. package/lib/stylus-rwwWYWFm.js +256 -0
  166. package/lib/swift-eorJ0tCv.js +238 -0
  167. package/lib/tcl-IwXMB8U4.js +82 -0
  168. package/lib/textile-ok2VyjwC.js +299 -0
  169. package/lib/theme/classic/index.d.ts +3 -0
  170. package/lib/theme/classic/index.d.ts.map +1 -0
  171. package/lib/theme/classic-dark/index.d.ts +3 -0
  172. package/lib/theme/classic-dark/index.d.ts.map +1 -0
  173. package/lib/theme/headless/index.d.ts +3 -0
  174. package/lib/theme/headless/index.d.ts.map +1 -0
  175. package/lib/theme/index.d.ts +8 -0
  176. package/lib/theme/index.d.ts.map +1 -0
  177. package/lib/theme/shared.d.ts +3 -0
  178. package/lib/theme/shared.d.ts.map +1 -0
  179. package/lib/tiddlywiki-DLhz8_pc.js +156 -0
  180. package/lib/tiki-DFAqFElY.js +183 -0
  181. package/lib/tippy.esm-MZ2vxByW.js +1813 -0
  182. package/lib/toml-ryxpTZEV.js +49 -0
  183. package/lib/tooltip-plugin-gcwyQdiT.js +119 -0
  184. package/lib/troff-ZzZyvNct.js +36 -0
  185. package/lib/ttcn-6gvkqqpW.js +136 -0
  186. package/lib/ttcn-cfg-oSu-Dq5C.js +98 -0
  187. package/lib/turtle-10ofr5au.js +87 -0
  188. package/lib/use-css-light-dom-EKWZDmbJ.js +82 -0
  189. package/lib/utils/index.d.ts +4 -0
  190. package/lib/utils/index.d.ts.map +1 -0
  191. package/lib/vb-a6n6fzrD.js +74 -0
  192. package/lib/vbscript-dgvo8jPt.js +324 -0
  193. package/lib/velocity-CBncCrwO.js +97 -0
  194. package/lib/verilog-KlcACt6C.js +271 -0
  195. package/lib/vhdl-NMd7Gf35.js +117 -0
  196. package/lib/webidl-z1UE5DN_.js +160 -0
  197. package/lib/xquery-hDt5jWTp.js +431 -0
  198. package/lib/yacas-ftgh_qwr.js +74 -0
  199. package/lib/yaml-DnNTfjXK.js +53 -0
  200. package/lib/z80-dA1PqWe1.js +62 -0
  201. package/package.json +87 -0
  202. package/src/core/crepe.ts +98 -0
  203. package/src/core/index.ts +4 -0
  204. package/src/core/slice.ts +44 -0
  205. package/src/feature/block-edit/handle/component.ts +68 -0
  206. package/src/feature/block-edit/handle/index.ts +81 -0
  207. package/src/feature/block-edit/index.ts +17 -0
  208. package/src/feature/block-edit/menu/component.ts +210 -0
  209. package/src/feature/block-edit/menu/config.ts +335 -0
  210. package/src/feature/block-edit/menu/icons.ts +171 -0
  211. package/src/feature/block-edit/menu/index.ts +113 -0
  212. package/src/feature/block-edit/style.css +126 -0
  213. package/src/feature/code-mirror/index.ts +60 -0
  214. package/src/feature/code-mirror/style.css +159 -0
  215. package/src/feature/gap-cursor/index.ts +31 -0
  216. package/src/feature/image-block/index.ts +59 -0
  217. package/src/feature/image-block/style.css +215 -0
  218. package/src/feature/index.ts +66 -0
  219. package/src/feature/link-tooltip/consts.ts +47 -0
  220. package/src/feature/link-tooltip/index.ts +22 -0
  221. package/src/feature/link-tooltip/style.css +107 -0
  222. package/src/feature/list-item/consts.ts +15 -0
  223. package/src/feature/list-item/index.ts +30 -0
  224. package/src/feature/list-item/style.css +23 -0
  225. package/src/feature/placeholder/index.ts +87 -0
  226. package/src/feature/placeholder/style.css +9 -0
  227. package/src/feature/shared.ts +4 -0
  228. package/src/feature/toolbar/component.ts +101 -0
  229. package/src/feature/toolbar/consts.ts +26 -0
  230. package/src/feature/toolbar/index.ts +92 -0
  231. package/src/feature/toolbar/style.css +37 -0
  232. package/src/index.ts +5 -0
  233. package/src/theme/classic/index.ts +12 -0
  234. package/src/theme/classic/style.css +192 -0
  235. package/src/theme/classic-dark/index.ts +12 -0
  236. package/src/theme/classic-dark/style.css +197 -0
  237. package/src/theme/headless/index.ts +9 -0
  238. package/src/theme/index.ts +26 -0
  239. package/src/theme/shared.ts +4 -0
  240. package/src/utils/index.ts +12 -0
  241. package/src/vite-env.d.ts +2 -0
@@ -0,0 +1,368 @@
1
+ var N = (n, t, r) => {
2
+ if (!t.has(n))
3
+ throw TypeError("Cannot " + r);
4
+ };
5
+ var i = (n, t, r) => (N(n, t, "read from private field"), r ? r.call(n) : t.get(n)), c = (n, t, r) => {
6
+ if (t.has(n))
7
+ throw TypeError("Cannot add the same private member more than once");
8
+ t instanceof WeakSet ? t.add(n) : t.set(n, r);
9
+ }, d = (n, t, r, e) => (N(n, t, "write to private field"), e ? e.call(n, r) : t.set(n, r), r);
10
+ import { t as j, T as z, l as V, a as B, b as H } from "./tooltip-plugin-gcwyQdiT.js";
11
+ import { w as D, c as K, h as M, u as J, a as Q } from "./meta-tAGyVRPE.js";
12
+ import { d as R, f as _, T as U, i as tt } from "./index-XiXSFLmI.js";
13
+ import { d as et, p as Y } from "./tippy.esm-MZ2vxByW.js";
14
+ import { u as it } from "./hooks-82sqkbtE.js";
15
+ import { c as nt } from "./clsx-7d8NmkQq.js";
16
+ import "./icons-HYkfuR-O.js";
17
+ const $ = j("LINK_PREVIEW");
18
+ D($[0], {
19
+ displayName: "PreviewTooltipSpec<link-tooltip>",
20
+ group: "LinkTooltip"
21
+ });
22
+ D($[1], {
23
+ displayName: "PreviewTooltipPlugin<link-tooltip>",
24
+ group: "LinkTooltip"
25
+ });
26
+ const Z = j("LINK_EDIT");
27
+ D(Z[0], {
28
+ displayName: "EditTooltipSpec<link-tooltip>",
29
+ group: "LinkTooltip"
30
+ });
31
+ D(Z[1], {
32
+ displayName: "EditTooltipPlugin<link-tooltip>",
33
+ group: "LinkTooltip"
34
+ });
35
+ function ot(n, t, r, e) {
36
+ let o = { start: -1, end: -1 };
37
+ return t.nodesBetween(r, e, (s, p) => {
38
+ if (o.start > -1)
39
+ return !1;
40
+ o.start === -1 && n.isInSet(s.marks) && (o = {
41
+ start: p,
42
+ end: p + Math.max(s.textContent.length, 1)
43
+ });
44
+ }), o;
45
+ }
46
+ function st(n, t, r) {
47
+ const e = t.posAtCoords({ left: r.clientX, top: r.clientY });
48
+ if (!e)
49
+ return;
50
+ const { pos: o } = e, s = t.state.doc.nodeAt(o);
51
+ if (!s)
52
+ return;
53
+ const p = s.marks.find((a) => a.type === R.mark.type(n));
54
+ if (!(!p || !$.pluginKey()))
55
+ return { show: !0, pos: o, node: s, mark: p };
56
+ }
57
+ const q = ({ config: n, src: t, onEdit: r, onRemove: e }) => {
58
+ const o = (l) => {
59
+ l.stopPropagation(), l.preventDefault(), r == null || r();
60
+ }, s = (l) => {
61
+ l.stopPropagation(), l.preventDefault(), e == null || e();
62
+ };
63
+ return M`
64
+ <host>
65
+ <div class="link-preview" onmousedown=${(l) => {
66
+ l.preventDefault(), navigator.clipboard && t && navigator.clipboard.writeText(t).then(() => {
67
+ n == null || n.onCopyLink(t);
68
+ }).catch((a) => {
69
+ throw a;
70
+ });
71
+ }}>
72
+ <span class="link-icon">
73
+ ${n == null ? void 0 : n.linkIcon()}
74
+ </span>
75
+ <span class="link-display">${t}</span>
76
+ <span class="button link-edit-button" onmousedown=${o}>
77
+ ${n == null ? void 0 : n.editButton()}
78
+ </span>
79
+ <span class="button link-remove-button" onmousedown=${s}>
80
+ ${n == null ? void 0 : n.removeButton()}
81
+ </span>
82
+ </div>
83
+ </host>
84
+ `;
85
+ };
86
+ q.props = {
87
+ config: Object,
88
+ src: String,
89
+ onEdit: Function,
90
+ onRemove: Function
91
+ };
92
+ const W = K(q);
93
+ var u, w, g, x, T, L, b, C, y;
94
+ class rt {
95
+ constructor(t, r) {
96
+ c(this, x);
97
+ c(this, u, void 0);
98
+ c(this, w, void 0);
99
+ c(this, g, void 0);
100
+ c(this, L, void 0);
101
+ c(this, b, void 0);
102
+ c(this, C, void 0);
103
+ c(this, y, void 0);
104
+ this.ctx = t, d(this, u, new W()), d(this, w, new z({
105
+ debounce: 0,
106
+ content: i(this, u),
107
+ shouldShow: () => !1,
108
+ tippyOptions: {
109
+ arrow: !1,
110
+ delay: 0,
111
+ duration: 0
112
+ }
113
+ })), d(this, g, !1), this.setRect = (e) => {
114
+ var o;
115
+ (o = i(this, w).getInstance()) == null || o.setProps({
116
+ getReferenceClientRect: () => e
117
+ });
118
+ }, d(this, L, ({ mode: e }) => {
119
+ e === "edit" && i(this, y).call(this);
120
+ }), d(this, b, () => {
121
+ d(this, g, !0);
122
+ }), d(this, C, () => {
123
+ d(this, g, !1);
124
+ }), d(this, y, () => {
125
+ var e, o;
126
+ i(this, w).hide(), (e = i(this, x, T)) == null || e.popper.addEventListener("mouseenter", i(this, b)), (o = i(this, x, T)) == null || o.popper.addEventListener("mouseleave", i(this, C));
127
+ }), this.show = (e, o, s) => {
128
+ var l, a;
129
+ const p = this.ctx.get(V.key);
130
+ i(this, u).config = p, i(this, u).src = e.attrs.href, i(this, u).onEdit = () => {
131
+ this.ctx.get(B.key).editLink(e, o, s);
132
+ }, i(this, u).onRemove = () => {
133
+ this.ctx.get(B.key).removeLink(o, s), i(this, y).call(this);
134
+ }, i(this, w).show(), (l = i(this, x, T)) == null || l.popper.addEventListener("mouseenter", i(this, b)), (a = i(this, x, T)) == null || a.popper.addEventListener("mouseleave", i(this, C));
135
+ }, this.hide = () => {
136
+ i(this, g) || i(this, y).call(this);
137
+ }, this.update = () => {
138
+ }, this.destroy = () => {
139
+ this.ctx.use(H.key).off(i(this, L)), i(this, w).destroy(), i(this, u).remove();
140
+ }, i(this, w).update(r), t.use(H.key).on(i(this, L));
141
+ }
142
+ }
143
+ u = new WeakMap(), w = new WeakMap(), g = new WeakMap(), x = new WeakSet(), T = function() {
144
+ return i(this, w).getInstance();
145
+ }, L = new WeakMap(), b = new WeakMap(), C = new WeakMap(), y = new WeakMap();
146
+ customElements.define("milkdown-link-preview", W);
147
+ function lt(n) {
148
+ let t;
149
+ const e = et((s, p) => {
150
+ if (!t || !s.hasFocus() || n.get(H.key).mode === "edit")
151
+ return;
152
+ const a = st(n, s, p);
153
+ if (a) {
154
+ const h = s.state.doc.resolve(a.pos), E = ot(a.mark, s.state.doc, h.before(), h.after()), F = E.start, A = E.end;
155
+ t.setRect(Y(s, F, A)), t.show(a.mark, F, A);
156
+ return;
157
+ }
158
+ t.hide();
159
+ }, 200), o = () => {
160
+ setTimeout(() => {
161
+ t == null || t.hide();
162
+ }, 200);
163
+ };
164
+ n.set($.key, {
165
+ props: {
166
+ handleDOMEvents: {
167
+ mousemove: e,
168
+ mouseleave: o
169
+ }
170
+ },
171
+ view: (s) => (t = new rt(n, s), t)
172
+ });
173
+ }
174
+ const X = ({
175
+ src: n,
176
+ onConfirm: t,
177
+ onCancel: r,
178
+ config: e
179
+ }) => {
180
+ const o = J(), [s, p] = it(n);
181
+ Q(() => {
182
+ p(n ?? "");
183
+ }, [n]);
184
+ const l = () => {
185
+ var h;
186
+ t == null || t(((h = o.current) == null ? void 0 : h.value) ?? "");
187
+ }, a = (h) => {
188
+ var E;
189
+ h.stopPropagation(), h.key === "Enter" && (t == null || t(((E = o.current) == null ? void 0 : E.value) ?? ""), h.preventDefault()), h.key === "Escape" && (r == null || r(), h.preventDefault());
190
+ };
191
+ return M`
192
+ <host>
193
+ <div class="link-edit">
194
+ <input
195
+ class="input-area"
196
+ placeholder=${e == null ? void 0 : e.inputPlaceholder}
197
+ ref=${o}
198
+ onkeydown=${a}
199
+ oninput=${(h) => p(h.target.value)}
200
+ value=${s}
201
+ />
202
+ <span class=${nt("button confirm", s.length === 0 && "hidden")} onclick=${l}>
203
+ ${e == null ? void 0 : e.confirmButton()}
204
+ </span>
205
+ </div>
206
+ </host>
207
+ `;
208
+ };
209
+ X.props = {
210
+ config: Object,
211
+ src: String,
212
+ onConfirm: Function,
213
+ onCancel: Function
214
+ };
215
+ const G = K(X), O = {
216
+ from: -1,
217
+ to: -1,
218
+ mark: null
219
+ };
220
+ var k, m, v, f, I, S, P;
221
+ class pt {
222
+ constructor(t, r) {
223
+ c(this, k, void 0);
224
+ c(this, m, void 0);
225
+ c(this, v, void 0);
226
+ c(this, f, void 0);
227
+ c(this, I, void 0);
228
+ c(this, S, void 0);
229
+ c(this, P, void 0);
230
+ this.ctx = t, d(this, k, new G()), d(this, v, { ...O }), d(this, f, () => {
231
+ i(this, m).hide(), this.ctx.update(H.key, (e) => ({
232
+ ...e,
233
+ mode: "preview"
234
+ })), d(this, v, { ...O });
235
+ }), d(this, I, (e) => {
236
+ var o;
237
+ (o = i(this, m).getInstance()) == null || o.setProps({
238
+ getReferenceClientRect: () => e
239
+ });
240
+ }), d(this, S, (e) => {
241
+ const o = this.ctx.get(_), { from: s, to: p, mark: l } = i(this, v), a = R.type(this.ctx);
242
+ if (l && l.attrs.href === e) {
243
+ i(this, f).call(this);
244
+ return;
245
+ }
246
+ const h = o.state.tr;
247
+ l && h.removeMark(s, p, l), h.addMark(s, p, a.create({ href: e })), o.dispatch(h), i(this, f).call(this);
248
+ }), d(this, P, (e, o, s) => {
249
+ const p = this.ctx.get(V.key);
250
+ i(this, k).config = p, i(this, k).src = e, this.ctx.update(H.key, (a) => ({
251
+ ...a,
252
+ mode: "edit"
253
+ }));
254
+ const l = this.ctx.get(_);
255
+ i(this, I).call(this, Y(l, o, s)), l.dispatch(l.state.tr.setSelection(U.create(l.state.doc, o, s))), i(this, m).show(), requestAnimationFrame(() => {
256
+ var a;
257
+ (a = i(this, k).querySelector("input")) == null || a.focus();
258
+ });
259
+ }), this.update = (e) => {
260
+ const { state: o } = e, { selection: s } = o, { from: p, to: l } = s;
261
+ p === i(this, v).from && l === i(this, v).to || i(this, f).call(this);
262
+ }, this.destroy = () => {
263
+ i(this, m).destroy(), i(this, k).remove();
264
+ }, this.addLink = (e, o) => {
265
+ d(this, v, {
266
+ from: e,
267
+ to: o,
268
+ mark: null
269
+ }), i(this, P).call(this, "", e, o);
270
+ }, this.editLink = (e, o, s) => {
271
+ d(this, v, {
272
+ from: o,
273
+ to: s,
274
+ mark: e
275
+ }), i(this, P).call(this, e.attrs.href, o, s);
276
+ }, this.removeLink = (e, o) => {
277
+ const s = this.ctx.get(_), p = s.state.tr;
278
+ p.removeMark(e, o, R.type(this.ctx)), s.dispatch(p), i(this, f).call(this);
279
+ }, d(this, m, new z({
280
+ content: i(this, k),
281
+ debounce: 0,
282
+ shouldShow: () => !1,
283
+ tippyOptions: {
284
+ arrow: !1,
285
+ delay: 0,
286
+ duration: 0,
287
+ onHidden: () => {
288
+ i(this, k).update().catch((e) => {
289
+ throw e;
290
+ }), t.get(_).dom.focus();
291
+ }
292
+ }
293
+ })), i(this, m).update(r), i(this, k).onConfirm = i(this, S), i(this, k).onCancel = i(this, f);
294
+ }
295
+ }
296
+ k = new WeakMap(), m = new WeakMap(), v = new WeakMap(), f = new WeakMap(), I = new WeakMap(), S = new WeakMap(), P = new WeakMap();
297
+ customElements.define("milkdown-link-edit", G);
298
+ function at(n) {
299
+ let t;
300
+ n.update(B.key, (r) => ({
301
+ ...r,
302
+ addLink: (e, o) => {
303
+ t == null || t.addLink(e, o);
304
+ },
305
+ editLink: (e, o, s) => {
306
+ t == null || t.editLink(e, o, s);
307
+ },
308
+ removeLink: (e, o) => {
309
+ t == null || t.removeLink(e, o);
310
+ }
311
+ })), n.set(Z.key, {
312
+ view: (r) => (t = new pt(n, r), t)
313
+ });
314
+ }
315
+ function dt(n) {
316
+ lt(n), at(n);
317
+ }
318
+ const ht = [H, B, V, $, Z].flat(), ct = M`
319
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
320
+ <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"/>
321
+ </svg>
322
+ `, kt = M`
323
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
324
+ <g clip-path="url(#clip0_1013_1585)">
325
+ <path d="M14.06 9.02L14.98 9.94L5.92 19H5V18.08L14.06 9.02ZM17.66 3C17.41 3 17.15 3.1 16.96 3.29L15.13 5.12L18.88 8.87L20.71 7.04C21.1 6.65 21.1 6.02 20.71 5.63L18.37 3.29C18.17 3.09 17.92 3 17.66 3ZM14.06 6.19L3 17.25V21H6.75L17.81 9.94L14.06 6.19Z" fill="#817567"/>
326
+ </g>
327
+ <defs>
328
+ <clipPath id="clip0_1013_1585">
329
+ <rect width="24" height="24" fill="white"/>
330
+ </clipPath>
331
+ </defs>
332
+ </svg>
333
+ `, ut = M`
334
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
335
+ <g clip-path="url(#clip0_1013_1627)">
336
+ <path d="M6 19C6 20.1 6.9 21 8 21H16C17.1 21 18 20.1 18 19V9C18 7.9 17.1 7 16 7H8C6.9 7 6 7.9 6 9V19ZM9 9H15C15.55 9 16 9.45 16 10V18C16 18.55 15.55 19 15 19H9C8.45 19 8 18.55 8 18V10C8 9.45 8.45 9 9 9ZM15.5 4L14.79 3.29C14.61 3.11 14.35 3 14.09 3H9.91C9.65 3 9.39 3.11 9.21 3.29L8.5 4H6C5.45 4 5 4.45 5 5C5 5.55 5.45 6 6 6H18C18.55 6 19 5.55 19 5C19 4.45 18.55 4 18 4H15.5Z" fill="#817567"/>
337
+ </g>
338
+ <defs>
339
+ <clipPath id="clip0_1013_1627">
340
+ <rect width="24" height="24" fill="white"/>
341
+ </clipPath>
342
+ </defs>
343
+ </svg>
344
+ `, wt = M`
345
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
346
+ <g clip-path="url(#clip0_1013_1545)">
347
+ <path d="M9.00012 16.1998L5.50012 12.6998C5.11012 12.3098 4.49012 12.3098 4.10012 12.6998C3.71012 13.0898 3.71012 13.7098 4.10012 14.0998L8.29012 18.2898C8.68012 18.6798 9.31012 18.6798 9.70012 18.2898L20.3001 7.69982C20.6901 7.30982 20.6901 6.68982 20.3001 6.29982C19.9101 5.90982 19.2901 5.90982 18.9001 6.29982L9.00012 16.1998Z" fill="#817567"/>
348
+ </g>
349
+ <defs>
350
+ <clipPath id="clip0_1013_1545">
351
+ <rect width="24" height="24" fill="white"/>
352
+ </clipPath>
353
+ </defs>
354
+ </svg>
355
+ `, vt = '.milkdown milkdown-link-preview>.link-preview{height:32px;display:flex;justify-content:center;padding:4px 10px;background:var(--crepe-color-surface);gap:10px;border-radius:8px;cursor:pointer;box-shadow:var(--crepe-shadow-1)}.milkdown milkdown-link-preview>.link-preview>.link-display:hover:before{display:block}.milkdown milkdown-link-preview>.link-preview>.link-display:before{content:"click to copy link";position:absolute;transform:translate(50%,-120%);padding:3px 10px;font-size:12px;border-radius:8px;color:color-mix(in srgb,var(--crepe-color-on-background),transparent 60%);background:var(--crepe-color-background);text-align:center;display:none}.milkdown milkdown-link-preview>.link-preview>.link-icon{padding:3px;line-height:24px}.milkdown milkdown-link-preview>.link-preview>.link-icon>svg{width:18px;height:18px}.milkdown milkdown-link-preview>.link-preview>.link-display{width:240px;line-height:24px;overflow:hidden;text-overflow:ellipsis;font-size:14px}.milkdown milkdown-link-preview>.link-preview>.link-display:hover{text-decoration:underline}.milkdown milkdown-link-preview>.link-preview>.button{padding:3px;border-radius:8px;line-height:24px}.milkdown milkdown-link-preview>.link-preview>.button>svg{width:18px;height:18px;color:var(--crepe-color-outline)}.milkdown milkdown-link-preview>.link-preview>.button:hover{background:var(--crepe-color-hover)}.milkdown milkdown-link-edit>.link-edit{height:32px;display:flex;justify-content:center;padding:4px 10px 4px 20px;background:var(--crepe-color-surface);gap:8px;border-radius:8px;box-shadow:var(--crepe-shadow-1)}.milkdown milkdown-link-edit>.link-edit>.input-area{outline:none;background:transparent;width:200px;font-size:14px;color:var(--crepe-color-on-background)}.milkdown milkdown-link-edit>.link-edit>.button{padding:3px;cursor:pointer;border-radius:8px;font-size:12px;line-height:24px}.milkdown milkdown-link-edit>.link-edit>.button>svg{width:18px;height:18px;color:var(--crepe-color-outline)}.milkdown milkdown-link-edit>.link-edit>.button:hover{background:var(--crepe-color-hover)}.milkdown milkdown-link-edit>.link-edit>.button.hidden{visibility:hidden}', Pt = (n) => {
356
+ n.config(tt(vt)).config(dt).config((t) => {
357
+ t.update(V.key, (r) => ({
358
+ ...r,
359
+ linkIcon: () => ct,
360
+ editButton: () => kt,
361
+ removeButton: () => ut,
362
+ confirmButton: () => wt
363
+ }));
364
+ }).use(ht);
365
+ };
366
+ export {
367
+ Pt as defineFeature
368
+ };
@@ -0,0 +1,121 @@
1
+ import { c as y, e as w, u as x, b as $, h as r, w as f } from "./meta-tAGyVRPE.js";
2
+ import { c as I, u as L, $ as C } from "./use-css-light-dom-EKWZDmbJ.js";
3
+ import { c as B } from "./clsx-7d8NmkQq.js";
4
+ import { $ as v, l as S, T as E, i as T } from "./index-XiXSFLmI.js";
5
+ const F = I`
6
+ :host > .list-item {
7
+ display: flex;
8
+ align-items: start;
9
+ }
10
+
11
+ :host > .list-item > .children {
12
+ min-width: 0;
13
+ flex: 1;
14
+ }
15
+ `, h = ({
16
+ selected: i,
17
+ label: n,
18
+ listType: l,
19
+ checked: o,
20
+ onMount: t,
21
+ setAttr: s,
22
+ config: p
23
+ }) => {
24
+ const u = w(), a = x();
25
+ L(F), $(() => {
26
+ const m = a.current;
27
+ if (!m)
28
+ return;
29
+ const c = u.current.querySelector("[data-content-dom]");
30
+ c && (m.appendChild(c), t == null || t());
31
+ }, []);
32
+ const e = () => {
33
+ o != null && (s == null || s("checked", !o));
34
+ };
35
+ return r`<host>
36
+ <li class=${B("list-item", i && "ProseMirror-selectednode")}>
37
+ <div class="label-wrapper" onclick=${e} contenteditable="false">${p == null ? void 0 : p.renderLabel(n ?? "", l ?? "", o)}</div>
38
+ <div class="children" ref=${a}></div>
39
+ </li>
40
+ </host>`;
41
+ };
42
+ h.props = {
43
+ label: String,
44
+ checked: Boolean,
45
+ listType: String,
46
+ config: Object,
47
+ selected: Boolean,
48
+ setAttr: Function,
49
+ onMount: Function
50
+ };
51
+ const M = y(h), _ = {
52
+ renderLabel: (i, n, l) => l == null ? r`<span class='label'>${n === "bullet" ? "⦿" : i}</span>` : r`<input class='label' type="checkbox" checked=${l} />`
53
+ }, d = v(_, "listItemBlockConfigCtx");
54
+ f(d, {
55
+ displayName: "Config<list-item-block>",
56
+ group: "ListItemBlock"
57
+ });
58
+ customElements.define("milkdown-list-item-block", M);
59
+ const b = C(S.node, (i) => (n, l, o) => {
60
+ const t = document.createElement("milkdown-list-item-block"), s = document.createElement("div");
61
+ s.setAttribute("data-content-dom", "true"), s.classList.add("content-dom");
62
+ const p = i.get(d.key), u = (e) => {
63
+ t.listType = e.attrs.listType, t.label = e.attrs.label, t.checked = e.attrs.checked;
64
+ };
65
+ u(n), t.appendChild(s), t.selected = !1, t.setAttr = (e, m) => {
66
+ const c = o();
67
+ c != null && l.dispatch(l.state.tr.setNodeAttribute(c, e, m));
68
+ }, t.onMount = () => {
69
+ const e = o() ?? 0, m = e + n.nodeSize, { from: c, to: k } = l.state.selection;
70
+ l.hasFocus() && e < c && k < m && Promise.resolve().then(() => {
71
+ const g = l.state.doc.resolve(e);
72
+ l.dispatch(l.state.tr.setSelection(E.near(g, 1)));
73
+ });
74
+ };
75
+ let a = n;
76
+ return t.config = p, {
77
+ dom: t,
78
+ contentDOM: s,
79
+ update: (e) => e.type !== n.type || e.sameMarkup(a) && e.content.eq(a.content) ? !1 : (a = e, u(e), !0),
80
+ ignoreMutation: (e) => !t || !s ? !0 : e.type === "selection" ? !1 : s === e.target && e.type === "attributes" ? !0 : !s.contains(e.target),
81
+ selectNode: () => {
82
+ t.selected = !0;
83
+ },
84
+ deselectNode: () => {
85
+ t.selected = !1;
86
+ },
87
+ destroy: () => {
88
+ t.remove(), s.remove();
89
+ }
90
+ };
91
+ });
92
+ f(b, {
93
+ displayName: "NodeView<list-item-block>",
94
+ group: "ListItemBlock"
95
+ });
96
+ const j = [
97
+ d,
98
+ b
99
+ ], D = r`
100
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
101
+ <g clip-path="url(#clip0_952_6527)">
102
+ <circle cx="12" cy="12" r="3" fill="#817567"/>
103
+ </g>
104
+ <defs>
105
+ <clipPath id="clip0_952_6527">
106
+ <rect width="24" height="24" fill="white"/>
107
+ </clipPath>
108
+ </defs>
109
+ </svg>
110
+ `, O = ".milkdown milkdown-list-item-block{display:block;margin-top:10px}.milkdown milkdown-list-item-block li{gap:10px}.milkdown milkdown-list-item-block li .label-wrapper{color:var(--crepe-color-outline);height:24px;width:24px;display:flex;justify-content:center;align-items:center}.milkdown milkdown-list-item-block li .label-wrapper .label{height:24px;width:24px;text-align:right}";
111
+ function P(i) {
112
+ i.set(d.key, {
113
+ renderLabel: (n, l, o) => o == null ? l === "bullet" ? r`<span class='label'>${D}</span>` : r`<span class='label'>${n}</span>` : r`<input class='label' type="checkbox" checked=${o} />`
114
+ });
115
+ }
116
+ const A = (i) => {
117
+ i.config(T(O)).config(P).use(j);
118
+ };
119
+ export {
120
+ A as defineFeature
121
+ };
@@ -0,0 +1,64 @@
1
+ import { L as o, b as r, h as O, f as t, j as n, s as a, a as s, t as e } from "./index-8DvtgRVa.js";
2
+ import { L as i } from "./index-SdFSDosa.js";
3
+ import "./meta-tAGyVRPE.js";
4
+ import "./icons-HYkfuR-O.js";
5
+ import "./index-XiXSFLmI.js";
6
+ import "./hooks-82sqkbtE.js";
7
+ import "./use-css-light-dom-EKWZDmbJ.js";
8
+ import "./clsx-7d8NmkQq.js";
9
+ const Q = { __proto__: null, anyref: 34, dataref: 34, eqref: 34, externref: 34, i31ref: 34, funcref: 34, i8: 34, i16: 34, i32: 34, i64: 34, f32: 34, f64: 34 }, $ = /* @__PURE__ */ i.deserialize({
10
+ version: 14,
11
+ states: "!^Q]QPOOOqQPO'#CbOOQO'#Cd'#CdOOQO'#Cl'#ClOOQO'#Ch'#ChQ]QPOOOOQO,58|,58|OxQPO,58|OOQO-E6f-E6fOOQO1G.h1G.h",
12
+ stateData: "!P~O_OSPOSQOS~OTPOVROXROYROZROaQO~OSUO~P]OSXO~P]O",
13
+ goto: "xaPPPPPPbPbPPPhPPPrXROPTVQTOQVPTWTVXSOPTV",
14
+ nodeNames: "⚠ LineComment BlockComment Module ) ( App Identifier Type Keyword Number String",
15
+ maxTerm: 17,
16
+ nodeProps: [
17
+ ["openedBy", 4, "("],
18
+ ["closedBy", 5, ")"],
19
+ ["group", -6, 6, 7, 8, 9, 10, 11, "Expression"]
20
+ ],
21
+ skippedNodes: [0, 1, 2],
22
+ repeatNodeCount: 1,
23
+ tokenData: "/Q~R^XY}YZ}]^}pq}rs!Stu!qxy&Vyz'S{|'X}!O'X!Q!R'b!R![)_!]!^,{#T#o-^~!SO_~~!VTOr!Srs!fs#O!S#O#P!k#P~!S~!kOZ~~!nPO~!S~!tiqr$cst$ctu$cuv$cvw$cwx$cz{$c{|$c}!O$c!O!P$c!P!Q$c!Q![$c![!]$c!^!_$c!_!`$c!`!a$c!a!b$c!b!c$c!c!}$c#Q#R$c#R#S$c#S#T$c#T#o$c#p#q$c#r#s$c~$hiV~qr$cst$ctu$cuv$cvw$cwx$cz{$c{|$c}!O$c!O!P$c!P!Q$c!Q![$c![!]$c!^!_$c!_!`$c!`!a$c!a!b$c!b!c$c!c!}$c#Q#R$c#R#S$c#S#T$c#T#o$c#p#q$c#r#s$c~&[PT~!]!^&_~&bRO!]&_!]!^&k!^~&_~&nTOy&_yz&}z!]&_!]!^&k!^~&_~'SOQ~~'XOS~~'[Q!Q!R'b!R![)_~'gUY~!O!P'y!Q![)_!g!h(j#R#S)s#X#Y(j#l#m)y~(ORY~!Q![(X!g!h(j#X#Y(j~(^SY~!Q![(X!g!h(j#R#S)X#X#Y(j~(mR{|(v}!O(v!Q![(|~(yP!Q![(|~)RQY~!Q![(|#R#S(v~)[P!Q![(X~)dTY~!O!P'y!Q![)_!g!h(j#R#S)s#X#Y(j~)vP!Q![)_~)|R!Q![*V!c!i*V#T#Z*V~*[VY~!O!P*q!Q![*V!c!i*V!r!s+n#R#S)y#T#Z*V#d#e+n~*vTY~!Q![+V!c!i+V!r!s+n#T#Z+V#d#e+n~+[UY~!Q![+V!c!i+V!r!s+n#R#S,o#T#Z+V#d#e+n~+qT{|,Q}!O,Q!Q![,^!c!i,^#T#Z,^~,TR!Q![,^!c!i,^#T#Z,^~,cSY~!Q![,^!c!i,^#R#S,Q#T#Z,^~,rR!Q![+V!c!i+V#T#Z+V~-OP!]!^-R~-WQP~OY-RZ~-R~-ciX~qr-^st-^tu-^uv-^vw-^wx-^z{-^{|-^}!O-^!O!P-^!P!Q-^!Q![-^![!]-^!^!_-^!_!`-^!`!a-^!a!b-^!b!c-^!c!}-^#Q#R-^#R#S-^#S#T-^#T#o-^#p#q-^#r#s-^",
24
+ tokenizers: [0],
25
+ topRules: { Module: [0, 3] },
26
+ specialized: [{ term: 9, get: (c) => Q[c] || -1 }],
27
+ tokenPrec: 0
28
+ }), P = /* @__PURE__ */ o.define({
29
+ name: "wast",
30
+ parser: /* @__PURE__ */ $.configure({
31
+ props: [
32
+ /* @__PURE__ */ r.add({
33
+ App: /* @__PURE__ */ O({ closing: ")", align: !1 })
34
+ }),
35
+ /* @__PURE__ */ t.add({
36
+ App: n,
37
+ BlockComment(c) {
38
+ return { from: c.from + 2, to: c.to - 2 };
39
+ }
40
+ }),
41
+ /* @__PURE__ */ a({
42
+ Keyword: e.keyword,
43
+ Type: e.typeName,
44
+ Number: e.number,
45
+ String: e.string,
46
+ Identifier: e.variableName,
47
+ LineComment: e.lineComment,
48
+ BlockComment: e.blockComment,
49
+ "( )": e.paren
50
+ })
51
+ ]
52
+ }),
53
+ languageData: {
54
+ commentTokens: { line: ";;", block: { open: "(;", close: ";)" } },
55
+ closeBrackets: { brackets: ["(", '"'] }
56
+ }
57
+ });
58
+ function f() {
59
+ return new s(P);
60
+ }
61
+ export {
62
+ f as wast,
63
+ P as wastLanguage
64
+ };
@@ -0,0 +1,8 @@
1
+ import { p as e } from "./prosemirror-noTDkx-k.js";
2
+ import { i as r } from "./index-XiXSFLmI.js";
3
+ const i = '.milkdown{--crepe-color-background: #FFFDFB;--crepe-color-on-background: #1F1B16;--crepe-color-surface: #FFF8F4;--crepe-color-surface-low: #FFF1E5;--crepe-color-on-surface: #201B13;--crepe-color-on-surface-variant: #4F4539;--crepe-color-outline: #817567;--crepe-color-primary: #805610;--crepe-color-secondary: #FBDEBC;--crepe-color-on-secondary: #271904;--crepe-color-inverse: #362F27;--crepe-color-on-inverse: #FCEFE2;--crepe-color-inline-code: #BA1A1A;--crepe-color-error: #BA1A1A;--crepe-color-hover: #F9ECDF;--crepe-color-selected: #EDE0D4;--crepe-color-inline-area: #E4D8CC;--crepe-font-title: Georgia, Cambria, "Times New Roman", Times, serif;--crepe-font-default: "Open Sans", Arial, Helvetica, sans-serif;--crepe-font-code: Fira Code, Menlo, Monaco, "Courier New", Courier, monospace;--crepe-shadow-1: 0px 1px 3px 1px rgba(0, 0, 0, .15), 0px 1px 2px 0px rgba(0, 0, 0, .3);--crepe-shadow-2: 0px 2px 6px 2px rgba(0, 0, 0, .15), 0px 1px 2px 0px rgba(0, 0, 0, .3);font-family:var(--crepe-font-default);color:var(--crepe-color-on-background);background:var(--crepe-color-background)}.milkdown *{margin:0;padding:0;box-sizing:border-box}.milkdown button,.milkdown input{border:none;background:none;box-shadow:none}.milkdown button:focus,.milkdown input:focus{outline:none}.milkdown :focus-visible{outline:none}.milkdown .ProseMirror-focused{outline:none}.milkdown .ProseMirror{padding:60px 120px}.milkdown .ProseMirror>*{margin:20px 0 40px}.milkdown .ProseMirror *::selection{background:var(--crepe-color-selected)}.milkdown .ProseMirror li.ProseMirror-selectednode{outline:10px solid var(--crepe-color-selected)}.milkdown .ProseMirror li.ProseMirror-selectednode:after{all:unset}.milkdown .ProseMirror .ProseMirror-selectednode{background:var(--crepe-color-selected);outline:10px solid var(--crepe-color-selected)}.milkdown .ProseMirror img{vertical-align:bottom;max-width:100%}.milkdown .ProseMirror img.ProseMirror-selectednode{background:none;outline:2px solid var(--crepe-color-primary)}.milkdown .ProseMirror h1,.milkdown .ProseMirror h2,.milkdown .ProseMirror h3,.milkdown .ProseMirror h4,.milkdown .ProseMirror h5,.milkdown .ProseMirror h6{font-family:var(--crepe-font-title);font-weight:400}.milkdown .ProseMirror h1{font-size:42px;line-height:50px}.milkdown .ProseMirror h2{font-size:36px;line-height:44px}.milkdown .ProseMirror h3{font-size:32px;line-height:40px}.milkdown .ProseMirror h4{font-size:28px;line-height:36px}.milkdown .ProseMirror h5{font-size:24px;line-height:32px}.milkdown .ProseMirror h6{font-size:18px;font-weight:700;line-height:28px}.milkdown .ProseMirror p{font-size:16px;line-height:24px}.milkdown .ProseMirror code{color:var(--crepe-color-inline-code);background:color-mix(in srgb,var(--crepe-color-inline-area),transparent 40%);padding:0 10px;border-radius:4px}.milkdown .ProseMirror a{color:var(--crepe-color-primary)}.milkdown .ProseMirror pre{background:color-mix(in srgb,var(--crepe-color-inline-area),transparent 40%);padding:10px;border-radius:4px}.milkdown .ProseMirror pre code{padding:0;background:transparent}.milkdown .ProseMirror blockquote{position:relative;padding-left:40px}.milkdown .ProseMirror blockquote:before{content:"";width:4px;height:100%;left:0;position:absolute;background:var(--crepe-color-selected);border-radius:100px}.milkdown .ProseMirror blockquote hr{margin-bottom:16px}.milkdown .ProseMirror hr{border:none;border-bottom:1px solid color-mix(in srgb,var(--crepe-color-outline),transparent 80%);height:16px;position:relative}.milkdown .ProseMirror hr.ProseMirror-selectednode{outline:none;background:none;border-bottom:1px solid var(--crepe-color-outline)}.milkdown .ProseMirror .ProseMirror-gapcursor:after{box-sizing:border-box;border-top:1px solid var(--crepe-color-on-background);top:-40px}', c = (o) => {
4
+ o.config(r(e)).config(r(i));
5
+ };
6
+ export {
7
+ c as defineTheme
8
+ };