@blocknote/core 0.51.0 → 0.51.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/blocknote.cjs +1 -1
- package/dist/blocknote.js +2 -2
- package/dist/{extensions-Cuw3zOdC.cjs → extensions-Cutrafjg.cjs} +2 -2
- package/dist/extensions-Cutrafjg.cjs.map +1 -0
- package/dist/{extensions-CQFfm5f5.js → extensions-D2mx2C9y.js} +7 -4
- package/dist/extensions-D2mx2C9y.js.map +1 -0
- package/dist/extensions.cjs +1 -1
- package/dist/extensions.js +1 -1
- package/dist/{src-_83jmA7A.cjs → src-D5R5YzV7.cjs} +3 -3
- package/dist/src-D5R5YzV7.cjs.map +1 -0
- package/dist/{src-DK_8q1j5.js → src-Dvmif2FY.js} +4 -4
- package/dist/src-Dvmif2FY.js.map +1 -0
- package/dist/webpack-stats.json +1 -1
- package/package.json +1 -1
- package/src/api/clipboard/toClipboard/copyExtension.ts +12 -1
- package/src/api/exporters/html/util/serializeBlocksExternalHTML.ts +12 -4
- package/types/src/api/exporters/html/util/serializeBlocksExternalHTML.d.ts +1 -0
- package/dist/extensions-CQFfm5f5.js.map +0 -1
- package/dist/extensions-Cuw3zOdC.cjs.map +0 -1
- package/dist/src-DK_8q1j5.js.map +0 -1
- package/dist/src-_83jmA7A.cjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { $t as e, At as t, Dn as n, Dt as r, Et as i, H as a, Qt as o, Rn as s, Tt as c, Ut as l, Yn as u, Zt as d, _n as f, _t as p, an as m, f as h, fn as g, gn as _, hn as v, in as ee, jn as te, jt as ne, kt as y, ln as re, m as b, mn as x, mt as ie, nn as ae, on as S, rn as oe, sn as se, t as ce, wt as le, yn as C, yt as ue, zn as w } from "./blocks-D0lMxErU.js";
|
|
2
|
-
import { C as de, D as fe, E as pe, O as me, S as he, T as ge, _ as _e, b as ve, d as ye, f as be, l as xe, m as Se, n as Ce, o as we, p as Te, t as Ee, u as De, v as Oe, w as ke, x as Ae } from "./extensions-
|
|
2
|
+
import { C as de, D as fe, E as pe, O as me, S as he, T as ge, _ as _e, b as ve, d as ye, f as be, l as xe, m as Se, n as Ce, o as we, p as Te, t as Ee, u as De, v as Oe, w as ke, x as Ae } from "./extensions-D2mx2C9y.js";
|
|
3
3
|
import { r as je, t as Me } from "./BlockNoteExtension-B6RhuQ3V.js";
|
|
4
4
|
import { t as Ne } from "./ShowSelection-BsHFfdMi.js";
|
|
5
5
|
import { t as Pe } from "./en-B9hMApn4.js";
|
|
@@ -1731,11 +1731,11 @@ function Wr(e, t, n) {
|
|
|
1731
1731
|
}
|
|
1732
1732
|
function Gr(e, t) {
|
|
1733
1733
|
"node" in e.state.selection && e.state.selection.node.type.spec.group === "blockContent" && t.transact((t) => t.setSelection(new M(t.doc.resolve(e.state.selection.from - 1))));
|
|
1734
|
-
let n = e.serializeForClipboard(e.state.selection.content()).dom.innerHTML, r = e.state.selection.content().content, i = Wr(e, r, t);
|
|
1734
|
+
let n = e.serializeForClipboard(e.state.selection.content()).dom.innerHTML, r = e.state.selection.content().content, i = Wr(e, r, t), { $from: a, $to: o } = e.state.selection, s = a.parent.type.name, c = t.blockImplementations[s];
|
|
1735
1735
|
return {
|
|
1736
1736
|
clipboardHTML: n,
|
|
1737
1737
|
externalHTML: i,
|
|
1738
|
-
markdown: ye(i)
|
|
1738
|
+
markdown: a.sameParent(o) && c?.implementation.meta?.code === !0 ? e.state.doc.textBetween(a.pos, o.pos) : ye(i)
|
|
1739
1739
|
};
|
|
1740
1740
|
}
|
|
1741
1741
|
var Kr = (e) => {
|
|
@@ -3277,4 +3277,4 @@ function Fi(e, ...t) {
|
|
|
3277
3277
|
//#endregion
|
|
3278
3278
|
export { L as _, gi as a, mt as b, zn as c, Gt as d, Kt as f, R as g, z as h, Mi as i, H as l, Dt as m, Pi as n, Gr as o, Wt as p, Ni as r, Bn as s, Fi as t, Ut as u, gt as v, pt as x, ht as y };
|
|
3279
3279
|
|
|
3280
|
-
//# sourceMappingURL=src-
|
|
3280
|
+
//# sourceMappingURL=src-Dvmif2FY.js.map
|