@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.
- package/lib/core/crepe.d.ts +1 -1
- package/lib/core/crepe.d.ts.map +1 -1
- 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-wbiYuOxV.js → index-BSv6537G.js} +93 -89
- package/lib/{index-kJIKUIIa.js → index-BoI246Ti.js} +18 -18
- package/lib/{index-KpfNv3rh.js → index-DDSXiQ90.js} +4 -4
- package/lib/{index-TsIsEZU1.js → index-ECCvmC6D.js} +12 -6
- package/lib/{index-hNRb95TL.js → index-EI1FcaSv.js} +4 -4
- package/lib/{index-h_6aZnx8.js → index-ESoQGvsE.js} +8 -8
- package/lib/{index-Gz6CQY-t.js → index-GOH7H2i9.js} +4 -4
- package/lib/{index-j2S9Lybz.js → index-GjFRg3RJ.js} +1 -1
- package/lib/index-GzVCh3P9.js +353 -0
- package/lib/{index-fJFWq6Y-.js → index-KCykNSJx.js} +7 -7
- package/lib/{index-yP4hAgM2.js → index-Ls2I7eOW.js} +61 -50
- package/lib/{index-7mRbGzci.js → index-P4-KqpEN.js} +5 -5
- package/lib/{index-bnwzlBfQ.js → index-Qcks_HSE.js} +6 -6
- package/lib/{index-YMk3n5vO.js → index-RKThEh9x.js} +4 -4
- package/lib/{index-qQMehYhQ.js → index-UqF8o9eD.js} +3246 -3092
- package/lib/{index-xkrG0YF8.js → index-_VrGF4z-.js} +5 -5
- package/lib/{index-H0TD0r41.js → index-cteyPSwp.js} +1 -1
- package/lib/{index-0c09be_R.js → index-f0pbmfJP.js} +4 -4
- package/lib/{index-kwrazjQE.js → index-gMYRN2wV.js} +7 -7
- package/lib/{index-5QLddZAp.js → index-jZuF1Iix.js} +4 -4
- package/lib/{index-Gg_apETx.js → index-kyD7hUif.js} +5 -5
- package/lib/{index-Zxe2neJQ.js → index-oszOFbwW.js} +149 -147
- package/lib/{index-b2y_N_O5.js → index-pC1MPpe2.js} +31 -31
- package/lib/{index-JGveSciI.js → index-q3iu4cef.js} +7 -7
- package/lib/{index-TRbxSkC1.js → index-qMeqmZtK.js} +4 -4
- package/lib/index-rs4SJ8Gd.js +253 -0
- package/lib/{index-oOHgRzEu.js → index-w-CiezW1.js} +21 -20
- package/lib/{index-WAhmZOxr.js → index-x6C6leag.js} +4 -4
- package/lib/{index-3qfZtuPz.js → index-xa7wUurf.js} +1 -1
- package/lib/{index-8NLp8LdC.js → index-xjkoF_Bn.js} +9 -9
- package/lib/{index-Ic30Lzgg.js → index-yrfirMbY.js} +4 -4
- package/lib/{index-2Cm9HHYj.js → index-zNGl_CdN.js} +1 -1
- package/lib/{index-ffdCLz6T.js → index-zc51oyS8.js} +2 -2
- package/lib/index.es.js +1 -1
- package/lib/{schema-t8-IDHY6.js → schema-ywm7RaKF.js} +1 -1
- package/lib/{tippy.esm-xX0Dh8mH.js → tippy.esm-4ny8MQOF.js} +33 -33
- package/lib/{tooltip-plugin-0UgO85XO.js → tooltip-plugin-NpyG8C5u.js} +17 -17
- package/package.json +14 -14
- package/src/core/crepe.ts +1 -0
- package/src/feature/block-edit/handle/index.ts +2 -1
- package/src/feature/block-edit/menu/index.ts +2 -0
- package/src/feature/toolbar/index.ts +2 -0
- package/lib/yaml-DnNTfjXK.js +0 -53
|
@@ -11,15 +11,15 @@ var ul = /* @__PURE__ */ ((n) => (n.Headless = "headless", n.Classic = "classic"
|
|
|
11
11
|
async function Hd(n, e) {
|
|
12
12
|
switch (n) {
|
|
13
13
|
case "headless": {
|
|
14
|
-
const { defineTheme: t } = await import("./index-
|
|
14
|
+
const { defineTheme: t } = await import("./index-zNGl_CdN.js");
|
|
15
15
|
return t(e);
|
|
16
16
|
}
|
|
17
17
|
case "classic": {
|
|
18
|
-
const { defineTheme: t } = await import("./index-
|
|
18
|
+
const { defineTheme: t } = await import("./index-xa7wUurf.js");
|
|
19
19
|
return t(e);
|
|
20
20
|
}
|
|
21
21
|
case "classic-dark": {
|
|
22
|
-
const { defineTheme: t } = await import("./index-
|
|
22
|
+
const { defineTheme: t } = await import("./index-GjFRg3RJ.js");
|
|
23
23
|
return t(e);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -38,35 +38,35 @@ const Kd = {
|
|
|
38
38
|
async function Wd(n, e, t) {
|
|
39
39
|
switch (n) {
|
|
40
40
|
case "code-mirror": {
|
|
41
|
-
const { defineFeature: r } = await import("./index-
|
|
41
|
+
const { defineFeature: r } = await import("./index-UqF8o9eD.js").then((i) => i.K);
|
|
42
42
|
return r(e, t);
|
|
43
43
|
}
|
|
44
44
|
case "list-item": {
|
|
45
|
-
const { defineFeature: r } = await import("./index-
|
|
45
|
+
const { defineFeature: r } = await import("./index-zc51oyS8.js");
|
|
46
46
|
return r(e, t);
|
|
47
47
|
}
|
|
48
48
|
case "link-tooltip": {
|
|
49
|
-
const { defineFeature: r } = await import("./index-
|
|
49
|
+
const { defineFeature: r } = await import("./index-BSv6537G.js");
|
|
50
50
|
return r(e, t);
|
|
51
51
|
}
|
|
52
52
|
case "image-block": {
|
|
53
|
-
const { defineFeature: r } = await import("./index-
|
|
53
|
+
const { defineFeature: r } = await import("./index-BoI246Ti.js");
|
|
54
54
|
return r(e, t);
|
|
55
55
|
}
|
|
56
56
|
case "gap-cursor": {
|
|
57
|
-
const { defineFeature: r } = await import("./index-
|
|
57
|
+
const { defineFeature: r } = await import("./index-xjkoF_Bn.js");
|
|
58
58
|
return r(e, t);
|
|
59
59
|
}
|
|
60
60
|
case "block-edit": {
|
|
61
|
-
const { defineFeature: r } = await import("./index-
|
|
61
|
+
const { defineFeature: r } = await import("./index-oszOFbwW.js");
|
|
62
62
|
return r(e, t);
|
|
63
63
|
}
|
|
64
64
|
case "placeholder": {
|
|
65
|
-
const { defineFeature: r } = await import("./index-
|
|
65
|
+
const { defineFeature: r } = await import("./index-_VrGF4z-.js");
|
|
66
66
|
return r(e, t);
|
|
67
67
|
}
|
|
68
68
|
case "toolbar": {
|
|
69
|
-
const { defineFeature: r } = await import("./index-
|
|
69
|
+
const { defineFeature: r } = await import("./index-w-CiezW1.js");
|
|
70
70
|
return r(e, t);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
@@ -16970,6 +16970,9 @@ S(Yl, {
|
|
|
16970
16970
|
group: "Emphasis"
|
|
16971
16971
|
});
|
|
16972
16972
|
const ud = rt((n) => vs(/(?:^|[^*])\*([^*]+)\*$/, Tr.type(n), {
|
|
16973
|
+
getAttr: () => ({
|
|
16974
|
+
marker: "*"
|
|
16975
|
+
}),
|
|
16973
16976
|
updateCaptured: ({ fullMatch: e, start: t }) => e.startsWith("*") ? {} : { fullMatch: e.slice(1), start: t + 1 }
|
|
16974
16977
|
}));
|
|
16975
16978
|
S(ud, {
|
|
@@ -16977,6 +16980,9 @@ S(ud, {
|
|
|
16977
16980
|
group: "Emphasis"
|
|
16978
16981
|
});
|
|
16979
16982
|
const hd = rt((n) => vs(/(?:^|[^_])_([^_]+)_$/, Tr.type(n), {
|
|
16983
|
+
getAttr: () => ({
|
|
16984
|
+
marker: "_"
|
|
16985
|
+
}),
|
|
16980
16986
|
updateCaptured: ({ fullMatch: e, start: t }) => e.startsWith("_") ? {} : { fullMatch: e.slice(1), start: t + 1 }
|
|
16981
16987
|
}));
|
|
16982
16988
|
S(hd, {
|
|
@@ -17045,7 +17051,11 @@ S(Zl, {
|
|
|
17045
17051
|
displayName: "Command<toggleStrongCommand>",
|
|
17046
17052
|
group: "Strong"
|
|
17047
17053
|
});
|
|
17048
|
-
const fd = rt((n) => vs(/(?:\*\*|__)([^*_]+)(?:\*\*|__)$/, zi.type(n)
|
|
17054
|
+
const fd = rt((n) => vs(/(?:\*\*|__)([^*_]+)(?:\*\*|__)$/, zi.type(n), {
|
|
17055
|
+
getAttr: (e) => ({
|
|
17056
|
+
marker: e[0].startsWith("*") ? "*" : "_"
|
|
17057
|
+
})
|
|
17058
|
+
}));
|
|
17049
17059
|
S(fd, {
|
|
17050
17060
|
displayName: "InputRule<strong>",
|
|
17051
17061
|
group: "Strong"
|
|
@@ -20163,7 +20173,7 @@ S(Ea, {
|
|
|
20163
20173
|
});
|
|
20164
20174
|
const Ft = it("list_item", (n) => ({
|
|
20165
20175
|
group: "listItem",
|
|
20166
|
-
content: "
|
|
20176
|
+
content: "block+",
|
|
20167
20177
|
attrs: {
|
|
20168
20178
|
label: {
|
|
20169
20179
|
default: "•"
|
|
@@ -20227,7 +20237,7 @@ S(Ta, {
|
|
|
20227
20237
|
displayName: "Command<sinkListItemCommand>",
|
|
20228
20238
|
group: "ListItem"
|
|
20229
20239
|
});
|
|
20230
|
-
const Aa = te("
|
|
20240
|
+
const Aa = te("LiftListItem", (n) => () => Od(Ft.type(n)));
|
|
20231
20241
|
S(Aa, {
|
|
20232
20242
|
displayName: "Command<liftListItemCommand>",
|
|
20233
20243
|
group: "ListItem"
|
|
@@ -20680,7 +20690,7 @@ S(Ad, {
|
|
|
20680
20690
|
});
|
|
20681
20691
|
const Dd = Rn((n) => {
|
|
20682
20692
|
const e = new tt("MILKDOWN_HEADING_ID"), t = (r) => {
|
|
20683
|
-
if (r.composing
|
|
20693
|
+
if (r.composing)
|
|
20684
20694
|
return;
|
|
20685
20695
|
const i = n.get(Fs.key), s = r.state.tr.setMeta("addToHistory", !1);
|
|
20686
20696
|
let o = !1;
|
|
@@ -20908,7 +20918,7 @@ class Xb {
|
|
|
20908
20918
|
return k(this, ct);
|
|
20909
20919
|
}
|
|
20910
20920
|
setReadonly(e) {
|
|
20911
|
-
O(this, Ti, !e);
|
|
20921
|
+
return O(this, Ti, !e), this;
|
|
20912
20922
|
}
|
|
20913
20923
|
getMarkdown() {
|
|
20914
20924
|
return k(this, ct).action(pb());
|
|
@@ -20917,59 +20927,60 @@ class Xb {
|
|
|
20917
20927
|
ct = new WeakMap(), kr = new WeakMap(), xr = new WeakMap(), Ti = new WeakMap();
|
|
20918
20928
|
export {
|
|
20919
20929
|
bt as $,
|
|
20920
|
-
|
|
20921
|
-
|
|
20930
|
+
tt as A,
|
|
20931
|
+
Qb as B,
|
|
20922
20932
|
ul as C,
|
|
20923
20933
|
re as D,
|
|
20924
|
-
|
|
20934
|
+
Pn as E,
|
|
20925
20935
|
M as F,
|
|
20926
|
-
|
|
20927
|
-
|
|
20928
|
-
|
|
20929
|
-
|
|
20930
|
-
|
|
20931
|
-
|
|
20932
|
-
|
|
20936
|
+
zn as G,
|
|
20937
|
+
Bi as H,
|
|
20938
|
+
Fi as I,
|
|
20939
|
+
Dr as J,
|
|
20940
|
+
vr as K,
|
|
20941
|
+
bh as L,
|
|
20942
|
+
it as M,
|
|
20933
20943
|
ac as N,
|
|
20934
|
-
|
|
20944
|
+
vn as O,
|
|
20935
20945
|
et as P,
|
|
20936
|
-
|
|
20937
|
-
|
|
20946
|
+
zi as Q,
|
|
20947
|
+
Tr as R,
|
|
20938
20948
|
gt as S,
|
|
20939
20949
|
W as T,
|
|
20940
|
-
|
|
20941
|
-
|
|
20942
|
-
|
|
20943
|
-
|
|
20944
|
-
|
|
20945
|
-
|
|
20946
|
-
|
|
20950
|
+
Zt as U,
|
|
20951
|
+
Q as V,
|
|
20952
|
+
Zl as W,
|
|
20953
|
+
Yl as X,
|
|
20954
|
+
ta as Y,
|
|
20955
|
+
E0 as Z,
|
|
20956
|
+
Zb as _,
|
|
20947
20957
|
cm as a,
|
|
20948
|
-
|
|
20949
|
-
|
|
20958
|
+
qd as a0,
|
|
20959
|
+
Gu as a1,
|
|
20960
|
+
Xb as a2,
|
|
20950
20961
|
rn as b,
|
|
20951
20962
|
Li as c,
|
|
20952
20963
|
Zn as d,
|
|
20953
20964
|
ek as e,
|
|
20954
|
-
|
|
20955
|
-
|
|
20956
|
-
|
|
20965
|
+
ol as f,
|
|
20966
|
+
Qn as g,
|
|
20967
|
+
Pi as h,
|
|
20957
20968
|
Gb as i,
|
|
20958
|
-
|
|
20969
|
+
Ar as j,
|
|
20959
20970
|
pk as k,
|
|
20960
20971
|
Ft as l,
|
|
20961
20972
|
rl as m,
|
|
20962
20973
|
nl as n,
|
|
20963
|
-
|
|
20964
|
-
|
|
20965
|
-
|
|
20974
|
+
Xm as o,
|
|
20975
|
+
K as p,
|
|
20976
|
+
kk as q,
|
|
20966
20977
|
od as r,
|
|
20967
20978
|
gs as s,
|
|
20968
|
-
|
|
20979
|
+
F as t,
|
|
20969
20980
|
sd as u,
|
|
20970
20981
|
Ir as v,
|
|
20971
|
-
|
|
20972
|
-
|
|
20973
|
-
|
|
20974
|
-
|
|
20982
|
+
T as w,
|
|
20983
|
+
Pe as x,
|
|
20984
|
+
Rn as y,
|
|
20985
|
+
dt as z
|
|
20975
20986
|
};
|
|
@@ -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-ECCvmC6D.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-UqF8o9eD.js";
|
|
3
|
+
import { defineCSSCompletionSource as C } from "./index-EI1FcaSv.js";
|
|
4
4
|
import "./meta-tAGyVRPE.js";
|
|
5
5
|
import "./icons-HYkfuR-O.js";
|
|
6
|
-
import "./index-
|
|
6
|
+
import "./index-Ls2I7eOW.js";
|
|
7
7
|
import "./hooks-82sqkbtE.js";
|
|
8
|
-
import "./index-
|
|
8
|
+
import "./index-cteyPSwp.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,
|
|
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-ECCvmC6D.js";
|
|
2
|
+
import { s as xe, t as h, p as Te, L as Ve, b as we, f as ye, G as ve, a as Xe, E as ke, e as K, k as $e } from "./index-UqF8o9eD.js";
|
|
3
|
+
import { cssLanguage as J, css as _e } from "./index-EI1FcaSv.js";
|
|
4
|
+
import { typescriptLanguage as qe, jsxLanguage as Ce, tsxLanguage as Ae, javascriptLanguage as M, javascript as Qe } from "./index-DDSXiQ90.js";
|
|
5
5
|
import "./meta-tAGyVRPE.js";
|
|
6
6
|
import "./icons-HYkfuR-O.js";
|
|
7
|
-
import "./index-
|
|
7
|
+
import "./index-Ls2I7eOW.js";
|
|
8
8
|
import "./hooks-82sqkbtE.js";
|
|
9
|
-
import "./index-
|
|
9
|
+
import "./index-cteyPSwp.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 { L as J, a as ee, i as te, c as ae, b as re, d as ne, f as ie, s as se, t as i, e as oe } from "./index-
|
|
2
|
-
import { E as le, L as ce } from "./index-
|
|
1
|
+
import { L as J, a as ee, i as te, c as ae, b as re, d as ne, f as ie, s as se, t as i, e as oe } from "./index-UqF8o9eD.js";
|
|
2
|
+
import { E as le, L as ce } from "./index-ECCvmC6D.js";
|
|
3
3
|
import "./meta-tAGyVRPE.js";
|
|
4
4
|
import "./icons-HYkfuR-O.js";
|
|
5
|
-
import "./index-
|
|
5
|
+
import "./index-Ls2I7eOW.js";
|
|
6
6
|
import "./hooks-82sqkbtE.js";
|
|
7
|
-
import "./index-
|
|
7
|
+
import "./index-cteyPSwp.js";
|
|
8
8
|
import "./clsx-7d8NmkQq.js";
|
|
9
9
|
const de = 36, B = 1, me = 2, k = 3, C = 4, ue = 5, fe = 6, pe = 7, ge = 8, he = 9, _e = 10, be = 11, ve = 12, ye = 13, ke = 14, xe = 15, Oe = 16, we = 17, X = 18, Qe = 19, V = 20, $ = 21, R = 22, Se = 23, Ce = 24;
|
|
10
10
|
function P(t) {
|