@milkdown/crepe 7.3.3 → 7.3.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/lib/feature/block-edit/handle/index.d.ts.map +1 -1
- package/lib/feature/block-edit/menu/index.d.ts.map +1 -1
- package/lib/feature/toolbar/index.d.ts.map +1 -1
- package/lib/{index-4afXjFMY.js → index-1KQHo-44.js} +4 -4
- package/lib/{index-SdFSDosa.js → index-4p4g7ekJ.js} +1 -1
- package/lib/{index-8Gg-jEP4.js → index-4uesIuIi.js} +4 -4
- package/lib/{index-Pwn25-kf.js → index-51ybuhXd.js} +1 -1
- package/lib/{index-0RbcZMbq.js → index-96I5UgEh.js} +1 -1
- package/lib/{index-vJbZIHYF.js → index-C17brGmy.js} +4 -4
- package/lib/{index-W5Th22-Z.js → index-EhPVaWMa.js} +7 -7
- package/lib/{index-jPA8J9Eo.js → index-IKzcztdD.js} +1 -1
- package/lib/{index-FIk_7oPb.js → index-KDuMRRPt.js} +4 -4
- package/lib/{use-css-light-dom-EKWZDmbJ.js → index-K_kBonEs.js} +24 -23
- package/lib/{index-7MeyepDG.js → index-Mwqn_gij.js} +7 -7
- package/lib/{index-oTRzPo3B.js → index-P2HixfB4.js} +4 -4
- package/lib/{index-rrf6_6DC.js → index-PwfWCMtB.js} +9 -9
- package/lib/{index-XiXSFLmI.js → index-S3dtETwZ.js} +46 -45
- package/lib/{index-yt2EpMtv.js → index-T6CCBIrO.js} +5 -5
- package/lib/{index-9A_GmGh4.js → index-UdINtlLB.js} +154 -152
- package/lib/{index-7pgP6qYs.js → index-WpINpUas.js} +7 -7
- package/lib/{index-LlbrXb_n.js → index-YjIgdsm-.js} +80 -84
- package/lib/{index-vPRh55CO.js → index-ZyvuYqIf.js} +21 -23
- package/lib/{index-8S8qcncB.js → index-brbFUWoa.js} +18 -18
- package/lib/{index-vxy63hib.js → index-cAviWcah.js} +7 -7
- package/lib/{index-lsG76a9s.js → index-f8O1bHwz.js} +4 -4
- package/lib/{index-N9GtIS4X.js → index-f_vMXWyc.js} +4 -4
- package/lib/{index-bknOViGv.js → index-gRh597MD.js} +5 -5
- package/lib/{index-wn1_LgCS.js → index-gaQ0Jeve.js} +4 -4
- package/lib/{index-MovKtgMG.js → index-hcG6NuOF.js} +2 -2
- package/lib/{index-8DvtgRVa.js → index-iECr6hjv.js} +24 -24
- package/lib/{index-bkuIUPFS.js → index-iHi9E5fI.js} +5 -5
- package/lib/{index-Eg39w5kL.js → index-sAnPFt21.js} +6 -6
- package/lib/{index-7QgQq3x3.js → index-wD9meLYq.js} +4 -4
- package/lib/{index-EJJfYLzA.js → index-zY_Ffd-9.js} +4 -4
- package/lib/index.es.js +1 -1
- package/lib/{schema-tKk3m1fu.js → schema-PTbL6iMu.js} +1 -1
- package/lib/{tippy.esm-MZ2vxByW.js → tippy.esm-lHdsQkl8.js} +33 -33
- package/lib/{tooltip-plugin-gcwyQdiT.js → tooltip-plugin-Pjm6nx6a.js} +32 -29
- package/package.json +14 -14
- package/src/feature/block-edit/handle/index.ts +2 -4
- package/src/feature/block-edit/menu/index.ts +2 -3
- package/src/feature/toolbar/index.ts +2 -3
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { I as X, i as
|
|
2
|
-
import { w as C, h, e as q, a as U, c as
|
|
3
|
-
import {
|
|
4
|
-
import { i as
|
|
1
|
+
import { I as X, i as F } from "./schema-PTbL6iMu.js";
|
|
2
|
+
import { w as C, h, e as q, a as U, c as M, u as P } from "./meta-tAGyVRPE.js";
|
|
3
|
+
import { h as J, v as Q, $ as S, j as A, i as ee } from "./index-S3dtETwZ.js";
|
|
4
|
+
import { i as V, a as ie } from "./icons-HYkfuR-O.js";
|
|
5
5
|
import { u as f } from "./hooks-82sqkbtE.js";
|
|
6
|
-
import { c as
|
|
6
|
+
import { c as _, u as D, $ as O } from "./index-K_kBonEs.js";
|
|
7
7
|
import { c as k } from "./clsx-7d8NmkQq.js";
|
|
8
8
|
function te(n) {
|
|
9
9
|
return Q(n, "paragraph", (a, l, d) => {
|
|
@@ -32,14 +32,14 @@ C(R.options, {
|
|
|
32
32
|
group: "ImageBlock"
|
|
33
33
|
});
|
|
34
34
|
const ne = {
|
|
35
|
-
imageIcon: () =>
|
|
35
|
+
imageIcon: () => V,
|
|
36
36
|
captionIcon: () => ie,
|
|
37
37
|
uploadButton: () => h`Upload file`,
|
|
38
38
|
confirmButton: () => h`Confirm ⏎`,
|
|
39
39
|
uploadPlaceholderText: "or paste the image link ...",
|
|
40
40
|
captionPlaceholderText: "Image caption",
|
|
41
41
|
onUpload: (n) => Promise.resolve(URL.createObjectURL(n))
|
|
42
|
-
}, N =
|
|
42
|
+
}, N = S(ne, "imageBlockConfigCtx");
|
|
43
43
|
C(N, {
|
|
44
44
|
displayName: "Config<image-block>",
|
|
45
45
|
group: "ImageBlock"
|
|
@@ -81,7 +81,7 @@ function oe({
|
|
|
81
81
|
};
|
|
82
82
|
}, []);
|
|
83
83
|
}
|
|
84
|
-
const ae =
|
|
84
|
+
const ae = _`
|
|
85
85
|
:host {
|
|
86
86
|
outline: none;
|
|
87
87
|
margin: 16px 0;
|
|
@@ -265,9 +265,9 @@ Z.props = {
|
|
|
265
265
|
setAttr: Function,
|
|
266
266
|
config: Object
|
|
267
267
|
};
|
|
268
|
-
const le =
|
|
268
|
+
const le = M(Z);
|
|
269
269
|
customElements.define("milkdown-image-block", le);
|
|
270
|
-
const K = O(
|
|
270
|
+
const K = O(F.node, (n) => (a, l, d) => {
|
|
271
271
|
const e = document.createElement("milkdown-image-block"), i = n.get(N.key), o = (t) => {
|
|
272
272
|
e.src = t.attrs.src, e.ratio = t.attrs.ratio, e.caption = t.attrs.caption;
|
|
273
273
|
};
|
|
@@ -295,21 +295,21 @@ C(K, {
|
|
|
295
295
|
});
|
|
296
296
|
const re = [
|
|
297
297
|
R,
|
|
298
|
-
|
|
298
|
+
F,
|
|
299
299
|
K,
|
|
300
300
|
N
|
|
301
301
|
].flat(), me = {
|
|
302
|
-
imageIcon: () =>
|
|
302
|
+
imageIcon: () => V,
|
|
303
303
|
uploadButton: () => h`Upload`,
|
|
304
304
|
confirmButton: () => h`⏎`,
|
|
305
305
|
uploadPlaceholderText: "/Paste",
|
|
306
306
|
onUpload: (n) => Promise.resolve(URL.createObjectURL(n))
|
|
307
|
-
}, H =
|
|
307
|
+
}, H = S(me, "inlineImageConfigCtx");
|
|
308
308
|
C(H, {
|
|
309
309
|
displayName: "Config<image-inline>",
|
|
310
310
|
group: "ImageInline"
|
|
311
311
|
});
|
|
312
|
-
const se =
|
|
312
|
+
const se = _`
|
|
313
313
|
:host {
|
|
314
314
|
outline: none;
|
|
315
315
|
display: inline;
|
|
@@ -431,7 +431,7 @@ W.props = {
|
|
|
431
431
|
setAttr: Function,
|
|
432
432
|
config: Object
|
|
433
433
|
};
|
|
434
|
-
const pe =
|
|
434
|
+
const pe = M(W);
|
|
435
435
|
customElements.define("milkdown-image-inline", pe);
|
|
436
436
|
const Y = O(A.node, (n) => (a, l, d) => {
|
|
437
437
|
const e = document.createElement("milkdown-image-inline"), i = n.get(H.key), o = (t) => {
|
|
@@ -462,7 +462,7 @@ C(Y, {
|
|
|
462
462
|
const ce = [
|
|
463
463
|
H,
|
|
464
464
|
Y
|
|
465
|
-
], de = ".milkdown milkdown-image-inline.empty.selected{background:none;outline:none}.milkdown milkdown-image-inline.empty.selected .empty-image-inline{box-shadow:var(--crepe-shadow-1)}.milkdown milkdown-image-inline.selected{background:none;outline:1px solid var(--crepe-color-primary)}.milkdown milkdown-image-inline.selected ::selection{background:transparent}.milkdown milkdown-image-inline img.image-inline{vertical-align:text-bottom}.milkdown milkdown-image-inline .empty-image-inline{align-items:center;padding:4px 10px;gap:10px;background:var(--crepe-color-surface);font-family:var(--crepe-font-default);border-radius:8px}.milkdown milkdown-image-inline .empty-image-inline .image-icon{padding:3px;width:24px;height:24px}.milkdown milkdown-image-inline .empty-image-inline .image-icon svg{width:18px;height:18px}.milkdown milkdown-image-inline .empty-image-inline .link-importer{height:24px}.milkdown milkdown-image-inline .empty-image-inline .link-importer .placeholder{color:color-mix(in srgb,var(--crepe-color-on-background),transparent 60%)}.milkdown milkdown-image-inline .empty-image-inline .link-importer .placeholder ::selection{background:transparent}.milkdown milkdown-image-inline .empty-image-inline .link-importer .link-input-area{line-height:24px}.milkdown milkdown-image-inline .empty-image-inline .link-importer .placeholder .uploader{gap:8px;color:var(--crepe-color-primary);justify-content:center;transition:color .2s;font-family:var(--crepe-font-default)}.milkdown milkdown-image-inline .empty-image-inline .link-importer.focus .placeholder .uploader{color:unset}.milkdown milkdown-image-inline .empty-image-inline .link-importer .placeholder .uploader:hover{color:var(--crepe-color-primary)}.milkdown milkdown-image-inline .empty-image-inline .link-importer .placeholder .text{margin-left:8px}.milkdown milkdown-image-inline .empty-image-inline .confirm{width:24px;height:24px;padding:3px;border-radius:8px;color:var(--crepe-color-primary)}.milkdown milkdown-image-inline .empty-image-inline .confirm svg{width:18px;height:18px}.milkdown milkdown-image-inline .empty-image-inline .confirm:hover{background:var(--crepe-color-hover)}.milkdown milkdown-image-block.selected>.image-edit{outline:1px solid var(--crepe-color-outline)}.milkdown milkdown-image-block.selected>.image-wrapper img{outline:1px solid var(--crepe-color-outline)}.milkdown milkdown-image-block.selected ::selection{background:transparent}.milkdown milkdown-image-block .image-wrapper{display:flex;justify-content:center;align-items:center}.milkdown milkdown-image-block .image-wrapper .operation{gap:16px;right:16px;top:16px;opacity:0;transition:all .2s}.milkdown milkdown-image-block:hover>.image-wrapper .operation{opacity:1}.milkdown milkdown-image-block .image-wrapper .operation>.operation-item{color:var(--crepe-color-on-inverse);padding:8px;background:var(--crepe-color-inverse);opacity:.6;border-radius:50%;width:40px;height:40px}.milkdown milkdown-image-block .image-wrapper .operation>.operation-item svg{width:24px;height:24px}.milkdown milkdown-image-block .image-wrapper .image-resize-handle{height:4px;bottom:-3px;max-width:160px;width:100%;background:var(--crepe-color-outline);opacity:0;transition:all .2s;border-radius:4px}.milkdown milkdown-image-block:hover>.image-wrapper .image-resize-handle{opacity:1}.milkdown milkdown-image-block .caption-input{margin:16px auto;font-family:var(--crepe-font-default)}.milkdown milkdown-image-block .image-edit{align-items:center;padding:16px 24px;gap:16px;background:var(--crepe-color-surface);height:56px}.milkdown milkdown-image-block .image-edit .image-icon{color:var(--crepe-color-outline)}.milkdown milkdown-image-block .image-edit .image-icon svg{width:24px;height:24px}.milkdown milkdown-image-block .image-edit .link-importer .placeholder{color:color-mix(in srgb,var(--crepe-color-on-background),transparent 60%)}.milkdown milkdown-image-block .image-edit .link-importer .placeholder ::selection{background:transparent}.milkdown milkdown-image-block .image-edit .link-importer .link-input-area{line-height:24px}.milkdown milkdown-image-block .image-edit .link-importer .placeholder .uploader{gap:8px;color:var(--crepe-color-primary);justify-content:center;transition:color .2s}.milkdown milkdown-image-block .image-edit .link-importer.focus .placeholder .uploader{color:unset}.milkdown milkdown-image-block .image-edit .link-importer .placeholder .uploader:hover{color:var(--crepe-color-primary)}.milkdown milkdown-image-block .image-edit .link-importer .placeholder .text{margin-left:8px}.milkdown milkdown-image-block .image-edit .confirm{background:var(--crepe-color-secondary);color:var(--crepe-color-on-secondary);line-height:40px;padding:0 24px;border-radius:100px;font-size:14px}",
|
|
465
|
+
], de = ".milkdown milkdown-image-inline.empty.selected{background:none;outline:none}.milkdown milkdown-image-inline.empty.selected .empty-image-inline{box-shadow:var(--crepe-shadow-1)}.milkdown milkdown-image-inline.selected{background:none;outline:1px solid var(--crepe-color-primary)}.milkdown milkdown-image-inline.selected ::selection{background:transparent}.milkdown milkdown-image-inline img.image-inline{vertical-align:text-bottom}.milkdown milkdown-image-inline .empty-image-inline{align-items:center;padding:4px 10px;gap:10px;background:var(--crepe-color-surface);font-family:var(--crepe-font-default);border-radius:8px}.milkdown milkdown-image-inline .empty-image-inline .image-icon{padding:3px;width:24px;height:24px}.milkdown milkdown-image-inline .empty-image-inline .image-icon svg{width:18px;height:18px}.milkdown milkdown-image-inline .empty-image-inline .link-importer{height:24px}.milkdown milkdown-image-inline .empty-image-inline .link-importer .placeholder{color:color-mix(in srgb,var(--crepe-color-on-background),transparent 60%)}.milkdown milkdown-image-inline .empty-image-inline .link-importer .placeholder ::selection{background:transparent}.milkdown milkdown-image-inline .empty-image-inline .link-importer .link-input-area{line-height:24px}.milkdown milkdown-image-inline .empty-image-inline .link-importer .placeholder .uploader{gap:8px;color:var(--crepe-color-primary);justify-content:center;transition:color .2s;font-family:var(--crepe-font-default)}.milkdown milkdown-image-inline .empty-image-inline .link-importer.focus .placeholder .uploader{color:unset}.milkdown milkdown-image-inline .empty-image-inline .link-importer .placeholder .uploader:hover{color:var(--crepe-color-primary)}.milkdown milkdown-image-inline .empty-image-inline .link-importer .placeholder .text{margin-left:8px}.milkdown milkdown-image-inline .empty-image-inline .confirm{width:24px;height:24px;padding:3px;border-radius:8px;color:var(--crepe-color-primary)}.milkdown milkdown-image-inline .empty-image-inline .confirm svg{width:18px;height:18px}.milkdown milkdown-image-inline .empty-image-inline .confirm:hover{background:var(--crepe-color-hover)}.milkdown milkdown-image-block.selected>.image-edit{outline:1px solid var(--crepe-color-outline)}.milkdown milkdown-image-block.selected>.image-wrapper img{outline:1px solid var(--crepe-color-outline)}.milkdown milkdown-image-block.selected ::selection{background:transparent}.milkdown milkdown-image-block .image-wrapper{display:flex;justify-content:center;align-items:center}.milkdown milkdown-image-block .image-wrapper .operation{gap:16px;right:16px;top:16px;opacity:0;transition:all .2s}.milkdown milkdown-image-block:hover>.image-wrapper .operation{opacity:1}.milkdown milkdown-image-block .image-wrapper .operation>.operation-item{color:var(--crepe-color-on-inverse);padding:8px;background:var(--crepe-color-inverse);opacity:.6;border-radius:50%;width:40px;height:40px}.milkdown milkdown-image-block .image-wrapper .operation>.operation-item svg{width:24px;height:24px}.milkdown milkdown-image-block .image-wrapper .image-resize-handle{height:4px;bottom:-3px;max-width:160px;width:100%;background:var(--crepe-color-outline);opacity:0;transition:all .2s;border-radius:4px}.milkdown milkdown-image-block:hover>.image-wrapper .image-resize-handle{opacity:1}.milkdown milkdown-image-block .caption-input{margin:16px auto;font-family:var(--crepe-font-default)}.milkdown milkdown-image-block .image-edit{align-items:center;padding:16px 24px;gap:16px;background:var(--crepe-color-surface);height:56px}.milkdown milkdown-image-block .image-edit .image-icon{color:var(--crepe-color-outline)}.milkdown milkdown-image-block .image-edit .image-icon svg{width:24px;height:24px}.milkdown milkdown-image-block .image-edit .link-importer .placeholder{color:color-mix(in srgb,var(--crepe-color-on-background),transparent 60%)}.milkdown milkdown-image-block .image-edit .link-importer .placeholder ::selection{background:transparent}.milkdown milkdown-image-block .image-edit .link-importer .link-input-area{line-height:24px}.milkdown milkdown-image-block .image-edit .link-importer .placeholder .uploader{gap:8px;color:var(--crepe-color-primary);justify-content:center;transition:color .2s}.milkdown milkdown-image-block .image-edit .link-importer.focus .placeholder .uploader{color:unset}.milkdown milkdown-image-block .image-edit .link-importer .placeholder .uploader:hover{color:var(--crepe-color-primary)}.milkdown milkdown-image-block .image-edit .link-importer .placeholder .text{margin-left:8px}.milkdown milkdown-image-block .image-edit .confirm{background:var(--crepe-color-secondary);color:var(--crepe-color-on-secondary);line-height:40px;padding:0 24px;border-radius:100px;font-size:14px}", j = h`
|
|
466
466
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
467
467
|
<g clip-path="url(#clip0_1013_1596)">
|
|
468
468
|
<path d="M19 5V19H5V5H19ZM19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM14.14 11.86L11.14 15.73L9 13.14L6 17H18L14.14 11.86Z" fill="#817567"/>
|
|
@@ -490,12 +490,12 @@ const ce = [
|
|
|
490
490
|
n.config(ee(de)).config((a) => {
|
|
491
491
|
a.update(H.key, (l) => ({
|
|
492
492
|
...l,
|
|
493
|
-
imageIcon: () =>
|
|
493
|
+
imageIcon: () => j,
|
|
494
494
|
confirmButton: () => ge,
|
|
495
495
|
uploadPlaceholderText: "or paste link"
|
|
496
496
|
})), a.update(N.key, (l) => ({
|
|
497
497
|
...l,
|
|
498
|
-
imageIcon: () =>
|
|
498
|
+
imageIcon: () => j,
|
|
499
499
|
captionIcon: () => ue,
|
|
500
500
|
confirmButton: () => h`Confirm`,
|
|
501
501
|
captionPlaceholderText: "Write Image Caption"
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { E as S, L as o } from "./index-
|
|
2
|
-
import { s as t, t as $, L as l, b as x, d as W, h as R, f as V, j as r, a as U, p as v } from "./index-
|
|
3
|
-
import { html as u } from "./index-
|
|
1
|
+
import { E as S, L as o } from "./index-4p4g7ekJ.js";
|
|
2
|
+
import { s as t, t as $, L as l, b as x, d as W, h as R, f as V, j as r, a as U, p as v } from "./index-iECr6hjv.js";
|
|
3
|
+
import { html as u } from "./index-sAnPFt21.js";
|
|
4
4
|
import "./meta-tAGyVRPE.js";
|
|
5
5
|
import "./icons-HYkfuR-O.js";
|
|
6
|
-
import "./index-
|
|
6
|
+
import "./index-S3dtETwZ.js";
|
|
7
7
|
import "./hooks-82sqkbtE.js";
|
|
8
|
-
import "./
|
|
8
|
+
import "./index-K_kBonEs.js";
|
|
9
9
|
import "./clsx-7d8NmkQq.js";
|
|
10
|
-
import "./index-
|
|
11
|
-
import "./index-
|
|
10
|
+
import "./index-zY_Ffd-9.js";
|
|
11
|
+
import "./index-f8O1bHwz.js";
|
|
12
12
|
const m = 1, b = 2, p = 263, k = 3, c = 264, s = 265, Y = 266, Z = 4, w = 5, _ = 6, h = 7, X = 8, j = 9, f = 10, G = 11, g = 12, E = 13, I = 14, N = 15, F = 16, C = 17, L = 18, A = 19, H = 20, K = 21, D = 22, B = 23, M = 24, J = 25, OO = 26, $O = 27, QO = 28, iO = 29, yO = 30, aO = 31, zO = 32, SO = 33, PO = 34, WO = 35, eO = 36, TO = 37, sO = 38, XO = 39, dO = 40, nO = 41, qO = 42, oO = 43, tO = 44, lO = 45, xO = 46, RO = 47, VO = 48, rO = 49, UO = 50, vO = 51, uO = 52, mO = 53, bO = 54, pO = 55, kO = 56, cO = 57, YO = 58, ZO = 59, wO = 60, _O = 61, e = 62, hO = 63, jO = 64, fO = 65, GO = {
|
|
13
13
|
abstract: Z,
|
|
14
14
|
and: w,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { C, E as d, L as I, a as x } from "./index-
|
|
2
|
-
import { s as A, t as i, D as p, e as j, L as J, b as N, d as m, g as D, h as K, f as L, j as B, J as G, a as F, i as H, c as M, H as OO, E as aO, I as QO, w as iO, B as eO } from "./index-
|
|
1
|
+
import { C, E as d, L as I, a as x } from "./index-4p4g7ekJ.js";
|
|
2
|
+
import { s as A, t as i, D as p, e as j, L as J, b as N, d as m, g as D, h as K, f as L, j as B, J as G, a as F, i as H, c as M, H as OO, E as aO, I as QO, w as iO, B as eO } from "./index-iECr6hjv.js";
|
|
3
3
|
import "./meta-tAGyVRPE.js";
|
|
4
4
|
import "./icons-HYkfuR-O.js";
|
|
5
|
-
import "./index-
|
|
5
|
+
import "./index-S3dtETwZ.js";
|
|
6
6
|
import "./hooks-82sqkbtE.js";
|
|
7
|
-
import "./
|
|
7
|
+
import "./index-K_kBonEs.js";
|
|
8
8
|
import "./clsx-7d8NmkQq.js";
|
|
9
9
|
const ZO = 309, h = 1, $O = 2, rO = 3, tO = 310, oO = 312, pO = 313, nO = 4, PO = 5, cO = 0, g = [
|
|
10
10
|
9,
|
|
@@ -1,10 +1,10 @@
|
|
|
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-
|
|
2
|
-
import { L as i } from "./index-
|
|
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-iECr6hjv.js";
|
|
2
|
+
import { L as i } from "./index-4p4g7ekJ.js";
|
|
3
3
|
import "./meta-tAGyVRPE.js";
|
|
4
4
|
import "./icons-HYkfuR-O.js";
|
|
5
|
-
import "./index-
|
|
5
|
+
import "./index-S3dtETwZ.js";
|
|
6
6
|
import "./hooks-82sqkbtE.js";
|
|
7
|
-
import "./
|
|
7
|
+
import "./index-K_kBonEs.js";
|
|
8
8
|
import "./clsx-7d8NmkQq.js";
|
|
9
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
10
|
version: 14,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { $ as i,
|
|
1
|
+
import { $ as i, y as s, i as a, P as d, A as u, D as p, x as f } from "./index-S3dtETwZ.js";
|
|
2
2
|
import { i as h, a as g } from "./index-xHADmDT3.js";
|
|
3
3
|
const m = ".milkdown .crepe-placeholder:before{position:absolute;color:color-mix(in srgb,var(--crepe-color-on-background),transparent 60%);pointer-events:none;height:0;content:attr(data-placeholder)}";
|
|
4
|
-
function
|
|
4
|
+
function y(o) {
|
|
5
5
|
var e;
|
|
6
6
|
return o.childCount <= 1 && !((e = o.firstChild) != null && e.content.size);
|
|
7
7
|
}
|
|
8
|
-
function
|
|
8
|
+
function x(o, e) {
|
|
9
9
|
const { selection: n } = o;
|
|
10
10
|
if (!n.empty)
|
|
11
11
|
return null;
|
|
@@ -26,9 +26,9 @@ const c = i({
|
|
|
26
26
|
props: {
|
|
27
27
|
decorations: (e) => {
|
|
28
28
|
const n = o.get(c.key);
|
|
29
|
-
if (n.mode === "doc" && !
|
|
29
|
+
if (n.mode === "doc" && !y(e.doc) || h(e.selection) || g(e.selection))
|
|
30
30
|
return null;
|
|
31
|
-
const t = n.text, r =
|
|
31
|
+
const t = n.text, r = x(e, t);
|
|
32
32
|
return r ? p.create(e.doc, [r]) : null;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { L as X } from "./index-
|
|
2
|
-
import { s as e, t as O, L as r, b as s, d as $, g as S, h as l, f as Z, j as Y, a as t } from "./index-
|
|
1
|
+
import { L as X } from "./index-4p4g7ekJ.js";
|
|
2
|
+
import { s as e, t as O, L as r, b as s, d as $, g as S, h as l, f as Z, j as Y, a as t } from "./index-iECr6hjv.js";
|
|
3
3
|
import "./meta-tAGyVRPE.js";
|
|
4
4
|
import "./icons-HYkfuR-O.js";
|
|
5
|
-
import "./index-
|
|
5
|
+
import "./index-S3dtETwZ.js";
|
|
6
6
|
import "./hooks-82sqkbtE.js";
|
|
7
|
-
import "./
|
|
7
|
+
import "./index-K_kBonEs.js";
|
|
8
8
|
import "./clsx-7d8NmkQq.js";
|
|
9
9
|
const n = e({
|
|
10
10
|
null: O.null,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
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 "./
|
|
2
|
+
import { c as I, u as L, $ as C } from "./index-K_kBonEs.js";
|
|
3
3
|
import { c as B } from "./clsx-7d8NmkQq.js";
|
|
4
|
-
import { $ as v, l as S, T as E, i as T } from "./index-
|
|
4
|
+
import { $ as v, l as S, T as E, i as T } from "./index-S3dtETwZ.js";
|
|
5
5
|
const F = I`
|
|
6
6
|
:host > .list-item {
|
|
7
7
|
display: flex;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { w as Ta, h as si, c as Uf, u as vs, a as Ss, b as Gf, d as Yf } from "./meta-tAGyVRPE.js";
|
|
2
2
|
import { c as Xf, s as Jf, x as _f } from "./icons-HYkfuR-O.js";
|
|
3
|
-
import { $ as Qf, k as Zf, b as eu, s as tu, e as iu, u as nu, r as Bo, T as Cs, c as su, i as ru, a as ou, C as Eo } from "./index-
|
|
3
|
+
import { $ as Qf, k as Zf, b as eu, s as tu, e as iu, u as nu, r as Bo, T as Cs, c as su, i as ru, a as ou, C as Eo } from "./index-S3dtETwZ.js";
|
|
4
4
|
import { u as Lo, a as lu } from "./hooks-82sqkbtE.js";
|
|
5
|
-
import { c as au, u as hu, $ as cu } from "./
|
|
5
|
+
import { c as au, u as hu, $ as cu } from "./index-K_kBonEs.js";
|
|
6
6
|
import { c as As } from "./clsx-7d8NmkQq.js";
|
|
7
7
|
const fu = {
|
|
8
8
|
extensions: [],
|
|
@@ -14191,7 +14191,7 @@ function k(n) {
|
|
|
14191
14191
|
return new tg(uo.define(n));
|
|
14192
14192
|
}
|
|
14193
14193
|
function pt(n) {
|
|
14194
|
-
return import("./index-
|
|
14194
|
+
return import("./index-1KQHo-44.js").then((e) => e.sql({ dialect: e[n] }));
|
|
14195
14195
|
}
|
|
14196
14196
|
const Ug = [
|
|
14197
14197
|
// New-style language modes
|
|
@@ -14199,7 +14199,7 @@ const Ug = [
|
|
|
14199
14199
|
name: "C",
|
|
14200
14200
|
extensions: ["c", "h", "ino"],
|
|
14201
14201
|
load() {
|
|
14202
|
-
return import("./index-
|
|
14202
|
+
return import("./index-P2HixfB4.js").then((n) => n.cpp());
|
|
14203
14203
|
}
|
|
14204
14204
|
}),
|
|
14205
14205
|
/* @__PURE__ */ x.of({
|
|
@@ -14207,7 +14207,7 @@ const Ug = [
|
|
|
14207
14207
|
alias: ["cpp"],
|
|
14208
14208
|
extensions: ["cpp", "c++", "cc", "cxx", "hpp", "h++", "hh", "hxx"],
|
|
14209
14209
|
load() {
|
|
14210
|
-
return import("./index-
|
|
14210
|
+
return import("./index-P2HixfB4.js").then((n) => n.cpp());
|
|
14211
14211
|
}
|
|
14212
14212
|
}),
|
|
14213
14213
|
/* @__PURE__ */ x.of({
|
|
@@ -14222,7 +14222,7 @@ const Ug = [
|
|
|
14222
14222
|
name: "CSS",
|
|
14223
14223
|
extensions: ["css"],
|
|
14224
14224
|
load() {
|
|
14225
|
-
return import("./index-
|
|
14225
|
+
return import("./index-zY_Ffd-9.js").then((n) => n.css());
|
|
14226
14226
|
}
|
|
14227
14227
|
}),
|
|
14228
14228
|
/* @__PURE__ */ x.of({
|
|
@@ -14230,14 +14230,14 @@ const Ug = [
|
|
|
14230
14230
|
alias: ["xhtml"],
|
|
14231
14231
|
extensions: ["html", "htm", "handlebars", "hbs"],
|
|
14232
14232
|
load() {
|
|
14233
|
-
return import("./index-
|
|
14233
|
+
return import("./index-sAnPFt21.js").then((n) => n.html());
|
|
14234
14234
|
}
|
|
14235
14235
|
}),
|
|
14236
14236
|
/* @__PURE__ */ x.of({
|
|
14237
14237
|
name: "Java",
|
|
14238
14238
|
extensions: ["java"],
|
|
14239
14239
|
load() {
|
|
14240
|
-
return import("./index-
|
|
14240
|
+
return import("./index-gaQ0Jeve.js").then((n) => n.java());
|
|
14241
14241
|
}
|
|
14242
14242
|
}),
|
|
14243
14243
|
/* @__PURE__ */ x.of({
|
|
@@ -14245,7 +14245,7 @@ const Ug = [
|
|
|
14245
14245
|
alias: ["ecmascript", "js", "node"],
|
|
14246
14246
|
extensions: ["js", "mjs", "cjs"],
|
|
14247
14247
|
load() {
|
|
14248
|
-
return import("./index-
|
|
14248
|
+
return import("./index-f8O1bHwz.js").then((n) => n.javascript());
|
|
14249
14249
|
}
|
|
14250
14250
|
}),
|
|
14251
14251
|
/* @__PURE__ */ x.of({
|
|
@@ -14253,21 +14253,21 @@ const Ug = [
|
|
|
14253
14253
|
alias: ["json5"],
|
|
14254
14254
|
extensions: ["json", "map"],
|
|
14255
14255
|
load() {
|
|
14256
|
-
return import("./index-
|
|
14256
|
+
return import("./index-C17brGmy.js").then((n) => n.json());
|
|
14257
14257
|
}
|
|
14258
14258
|
}),
|
|
14259
14259
|
/* @__PURE__ */ x.of({
|
|
14260
14260
|
name: "JSX",
|
|
14261
14261
|
extensions: ["jsx"],
|
|
14262
14262
|
load() {
|
|
14263
|
-
return import("./index-
|
|
14263
|
+
return import("./index-f8O1bHwz.js").then((n) => n.javascript({ jsx: !0 }));
|
|
14264
14264
|
}
|
|
14265
14265
|
}),
|
|
14266
14266
|
/* @__PURE__ */ x.of({
|
|
14267
14267
|
name: "LESS",
|
|
14268
14268
|
extensions: ["less"],
|
|
14269
14269
|
load() {
|
|
14270
|
-
return import("./index-
|
|
14270
|
+
return import("./index-T6CCBIrO.js").then((n) => n.less());
|
|
14271
14271
|
}
|
|
14272
14272
|
}),
|
|
14273
14273
|
/* @__PURE__ */ x.of({
|
|
@@ -14280,7 +14280,7 @@ const Ug = [
|
|
|
14280
14280
|
name: "Markdown",
|
|
14281
14281
|
extensions: ["md", "markdown", "mkd"],
|
|
14282
14282
|
load() {
|
|
14283
|
-
return import("./index-
|
|
14283
|
+
return import("./index-EhPVaWMa.js").then((n) => n.markdown());
|
|
14284
14284
|
}
|
|
14285
14285
|
}),
|
|
14286
14286
|
/* @__PURE__ */ x.of({
|
|
@@ -14299,7 +14299,7 @@ const Ug = [
|
|
|
14299
14299
|
name: "PHP",
|
|
14300
14300
|
extensions: ["php", "php3", "php4", "php5", "php7", "phtml"],
|
|
14301
14301
|
load() {
|
|
14302
|
-
return import("./index-
|
|
14302
|
+
return import("./index-cAviWcah.js").then((n) => n.php());
|
|
14303
14303
|
}
|
|
14304
14304
|
}),
|
|
14305
14305
|
/* @__PURE__ */ x.of({
|
|
@@ -14320,28 +14320,28 @@ const Ug = [
|
|
|
14320
14320
|
extensions: ["BUILD", "bzl", "py", "pyw"],
|
|
14321
14321
|
filename: /^(BUCK|BUILD)$/,
|
|
14322
14322
|
load() {
|
|
14323
|
-
return import("./index-
|
|
14323
|
+
return import("./index-wD9meLYq.js").then((n) => n.python());
|
|
14324
14324
|
}
|
|
14325
14325
|
}),
|
|
14326
14326
|
/* @__PURE__ */ x.of({
|
|
14327
14327
|
name: "Rust",
|
|
14328
14328
|
extensions: ["rs"],
|
|
14329
14329
|
load() {
|
|
14330
|
-
return import("./index-
|
|
14330
|
+
return import("./index-KDuMRRPt.js").then((n) => n.rust());
|
|
14331
14331
|
}
|
|
14332
14332
|
}),
|
|
14333
14333
|
/* @__PURE__ */ x.of({
|
|
14334
14334
|
name: "Sass",
|
|
14335
14335
|
extensions: ["sass"],
|
|
14336
14336
|
load() {
|
|
14337
|
-
return import("./index-
|
|
14337
|
+
return import("./index-iHi9E5fI.js").then((n) => n.sass({ indented: !0 }));
|
|
14338
14338
|
}
|
|
14339
14339
|
}),
|
|
14340
14340
|
/* @__PURE__ */ x.of({
|
|
14341
14341
|
name: "SCSS",
|
|
14342
14342
|
extensions: ["scss"],
|
|
14343
14343
|
load() {
|
|
14344
|
-
return import("./index-
|
|
14344
|
+
return import("./index-iHi9E5fI.js").then((n) => n.sass());
|
|
14345
14345
|
}
|
|
14346
14346
|
}),
|
|
14347
14347
|
/* @__PURE__ */ x.of({
|
|
@@ -14361,7 +14361,7 @@ const Ug = [
|
|
|
14361
14361
|
name: "TSX",
|
|
14362
14362
|
extensions: ["tsx"],
|
|
14363
14363
|
load() {
|
|
14364
|
-
return import("./index-
|
|
14364
|
+
return import("./index-f8O1bHwz.js").then((n) => n.javascript({ jsx: !0, typescript: !0 }));
|
|
14365
14365
|
}
|
|
14366
14366
|
}),
|
|
14367
14367
|
/* @__PURE__ */ x.of({
|
|
@@ -14369,14 +14369,14 @@ const Ug = [
|
|
|
14369
14369
|
alias: ["ts"],
|
|
14370
14370
|
extensions: ["ts"],
|
|
14371
14371
|
load() {
|
|
14372
|
-
return import("./index-
|
|
14372
|
+
return import("./index-f8O1bHwz.js").then((n) => n.javascript({ typescript: !0 }));
|
|
14373
14373
|
}
|
|
14374
14374
|
}),
|
|
14375
14375
|
/* @__PURE__ */ x.of({
|
|
14376
14376
|
name: "WebAssembly",
|
|
14377
14377
|
extensions: ["wat", "wast"],
|
|
14378
14378
|
load() {
|
|
14379
|
-
return import("./index-
|
|
14379
|
+
return import("./index-f_vMXWyc.js").then((n) => n.wast());
|
|
14380
14380
|
}
|
|
14381
14381
|
}),
|
|
14382
14382
|
/* @__PURE__ */ x.of({
|
|
@@ -14384,7 +14384,7 @@ const Ug = [
|
|
|
14384
14384
|
alias: ["rss", "wsdl", "xsd"],
|
|
14385
14385
|
extensions: ["xml", "xsl", "xsd", "svg"],
|
|
14386
14386
|
load() {
|
|
14387
|
-
return import("./index-
|
|
14387
|
+
return import("./index-4uesIuIi.js").then((n) => n.xml());
|
|
14388
14388
|
}
|
|
14389
14389
|
}),
|
|
14390
14390
|
// Legacy modes ported from CodeMirror 5
|
|
@@ -15187,13 +15187,13 @@ const Ug = [
|
|
|
15187
15187
|
name: "Vue",
|
|
15188
15188
|
extensions: ["vue"],
|
|
15189
15189
|
load() {
|
|
15190
|
-
return import("./index-
|
|
15190
|
+
return import("./index-Mwqn_gij.js").then((n) => n.vue());
|
|
15191
15191
|
}
|
|
15192
15192
|
}),
|
|
15193
15193
|
/* @__PURE__ */ x.of({
|
|
15194
15194
|
name: "Angular Template",
|
|
15195
15195
|
load() {
|
|
15196
|
-
return import("./index-
|
|
15196
|
+
return import("./index-WpINpUas.js").then((n) => n.angular());
|
|
15197
15197
|
}
|
|
15198
15198
|
})
|
|
15199
15199
|
], Gg = (n) => {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { E as R, C as z, L as G } from "./index-
|
|
2
|
-
import { s as w, t as $, L as q, f as j, j as b, b as v, d as u, a as E } from "./index-
|
|
3
|
-
import { defineCSSCompletionSource as C } from "./index-
|
|
1
|
+
import { E as R, C as z, L as G } from "./index-4p4g7ekJ.js";
|
|
2
|
+
import { s as w, t as $, L as q, f as j, j as b, b as v, d as u, a as E } from "./index-iECr6hjv.js";
|
|
3
|
+
import { defineCSSCompletionSource as C } from "./index-zY_Ffd-9.js";
|
|
4
4
|
import "./meta-tAGyVRPE.js";
|
|
5
5
|
import "./icons-HYkfuR-O.js";
|
|
6
|
-
import "./index-
|
|
6
|
+
import "./index-S3dtETwZ.js";
|
|
7
7
|
import "./hooks-82sqkbtE.js";
|
|
8
|
-
import "./
|
|
8
|
+
import "./index-K_kBonEs.js";
|
|
9
9
|
import "./clsx-7d8NmkQq.js";
|
|
10
10
|
const Y = 148, X = 149, V = 150, N = 1, F = 2, T = 3, I = 151, D = 152, k = 4, L = 5, K = 153, Z = 154, _ = 155, P = 156, h = 6, U = 7, A = 8, B = 9, c = 0, o = [
|
|
11
11
|
9,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { C as be, E as k, L as Pe } from "./index-
|
|
2
|
-
import { s as xe, t as h, p as Te, L as Ve, b as we, f as ye, F as ve, a as Xe, H as ke, e as K, E as $e } from "./index-
|
|
3
|
-
import { cssLanguage as J, css as _e } from "./index-
|
|
4
|
-
import { typescriptLanguage as qe, jsxLanguage as Ce, tsxLanguage as Ae, javascriptLanguage as M, javascript as Qe } from "./index-
|
|
1
|
+
import { C as be, E as k, L as Pe } from "./index-4p4g7ekJ.js";
|
|
2
|
+
import { s as xe, t as h, p as Te, L as Ve, b as we, f as ye, F as ve, a as Xe, H as ke, e as K, E as $e } from "./index-iECr6hjv.js";
|
|
3
|
+
import { cssLanguage as J, css as _e } from "./index-zY_Ffd-9.js";
|
|
4
|
+
import { typescriptLanguage as qe, jsxLanguage as Ce, tsxLanguage as Ae, javascriptLanguage as M, javascript as Qe } from "./index-f8O1bHwz.js";
|
|
5
5
|
import "./meta-tAGyVRPE.js";
|
|
6
6
|
import "./icons-HYkfuR-O.js";
|
|
7
|
-
import "./index-
|
|
7
|
+
import "./index-S3dtETwZ.js";
|
|
8
8
|
import "./hooks-82sqkbtE.js";
|
|
9
|
-
import "./
|
|
9
|
+
import "./index-K_kBonEs.js";
|
|
10
10
|
import "./clsx-7d8NmkQq.js";
|
|
11
11
|
const Ye = 54, Me = 1, Re = 55, Ee = 2, Ze = 56, Be = 3, W = 4, We = 5, v = 6, ee = 7, te = 8, ae = 9, le = 10, ze = 11, De = 12, Ne = 13, $ = 57, Ge = 14, z = 58, re = 20, je = 22, ne = 23, Ie = 24, Q = 26, se = 27, Ue = 28, Le = 31, Fe = 34, He = 36, Ke = 37, Je = 0, et = 1, tt = {
|
|
12
12
|
area: !0,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { E as P, C as G, L as g } from "./index-
|
|
2
|
-
import { s as _, t as Q, e as k, i as E, L as U, b as z, h as q, f as A, j as F, a as C, I, c as N, B as L, D as x } from "./index-
|
|
1
|
+
import { E as P, C as G, L as g } from "./index-4p4g7ekJ.js";
|
|
2
|
+
import { s as _, t as Q, e as k, i as E, L as U, b as z, h as q, f as A, j as F, a as C, I, c as N, B as L, D as x } from "./index-iECr6hjv.js";
|
|
3
3
|
import "./meta-tAGyVRPE.js";
|
|
4
4
|
import "./icons-HYkfuR-O.js";
|
|
5
|
-
import "./index-
|
|
5
|
+
import "./index-S3dtETwZ.js";
|
|
6
6
|
import "./hooks-82sqkbtE.js";
|
|
7
|
-
import "./
|
|
7
|
+
import "./index-K_kBonEs.js";
|
|
8
8
|
import "./clsx-7d8NmkQq.js";
|
|
9
9
|
const D = 1, Z = 201, u = 202, H = 203, m = 204, J = 205, B = 206, M = 207, K = 2, OO = 208, rO = 209, aO = 3, iO = 210, QO = 211, eO = 4, SO = 212, oO = 213, xO = 5, sO = 214, tO = 26, TO = 27, nO = 51, PO = 52, lO = 57, pO = 58, qO = 59, $O = 61, XO = 62, wO = 63, YO = 64, cO = 65, mO = 67, fO = 251, dO = 74, bO = 270, yO = 115, ZO = 133, uO = 154, WO = 155, VO = 158, t = 10, T = 13, Y = 32, l = 9, c = 35, RO = 40, vO = 46, f = 123, W = 39, V = 34, jO = 92, hO = /* @__PURE__ */ new Set([
|
|
10
10
|
TO,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { E as m, L as k, a as v } from "./index-
|
|
2
|
-
import { s as R, t as o, e as z, L as W, b as X, d as x, f as T, j as U, a as _, I as Z, B as C } from "./index-
|
|
1
|
+
import { E as m, L as k, a as v } from "./index-4p4g7ekJ.js";
|
|
2
|
+
import { s as R, t as o, e as z, L as W, b as X, d as x, f as T, j as U, a as _, I as Z, B as C } from "./index-iECr6hjv.js";
|
|
3
3
|
import "./meta-tAGyVRPE.js";
|
|
4
4
|
import "./icons-HYkfuR-O.js";
|
|
5
|
-
import "./index-
|
|
5
|
+
import "./index-S3dtETwZ.js";
|
|
6
6
|
import "./hooks-82sqkbtE.js";
|
|
7
|
-
import "./
|
|
7
|
+
import "./index-K_kBonEs.js";
|
|
8
8
|
import "./clsx-7d8NmkQq.js";
|
|
9
9
|
const E = 96, S = 1, G = 97, V = 98, g = 2, $ = [
|
|
10
10
|
9,
|
package/lib/index.es.js
CHANGED