@fileverse-dev/ddoc 3.1.7-linkCaption-0 → 3.1.7-linkCaption-1
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/index.es.js +114 -107
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -5877,7 +5877,7 @@ const xv = /* @__PURE__ */ Object.create(null);
|
|
|
5877
5877
|
function TI(e) {
|
|
5878
5878
|
return e in xv ? e + "$" + ++xv[e] : (xv[e] = 0, e + "$");
|
|
5879
5879
|
}
|
|
5880
|
-
class
|
|
5880
|
+
class At {
|
|
5881
5881
|
/**
|
|
5882
5882
|
Create a plugin key.
|
|
5883
5883
|
*/
|
|
@@ -12317,7 +12317,7 @@ var vt = class WL extends Hk {
|
|
|
12317
12317
|
addProseMirrorPlugins() {
|
|
12318
12318
|
return [
|
|
12319
12319
|
new Dt({
|
|
12320
|
-
key: new
|
|
12320
|
+
key: new At("clipboardTextSerializer"),
|
|
12321
12321
|
props: {
|
|
12322
12322
|
clipboardTextSerializer: () => {
|
|
12323
12323
|
const { editor: e } = this, { state: t, schema: n } = e, { doc: r, selection: o } = t, { ranges: i } = o, s = Math.min(...i.map((c) => c.$from.pos)), a = Math.max(...i.map((c) => c.$to.pos)), l = zk(n);
|
|
@@ -12398,7 +12398,7 @@ var vt = class WL extends Hk {
|
|
|
12398
12398
|
addProseMirrorPlugins() {
|
|
12399
12399
|
return [
|
|
12400
12400
|
new Dt({
|
|
12401
|
-
key: new
|
|
12401
|
+
key: new At("tiptapDrop"),
|
|
12402
12402
|
props: {
|
|
12403
12403
|
handleDrop: (e, t, n, r) => {
|
|
12404
12404
|
this.editor.emit("drop", {
|
|
@@ -12417,14 +12417,14 @@ var vt = class WL extends Hk {
|
|
|
12417
12417
|
addProseMirrorPlugins() {
|
|
12418
12418
|
return [
|
|
12419
12419
|
new Dt({
|
|
12420
|
-
key: new
|
|
12420
|
+
key: new At("editable"),
|
|
12421
12421
|
props: {
|
|
12422
12422
|
editable: () => this.editor.options.editable
|
|
12423
12423
|
}
|
|
12424
12424
|
})
|
|
12425
12425
|
];
|
|
12426
12426
|
}
|
|
12427
|
-
}), YL = new
|
|
12427
|
+
}), YL = new At("focusEvents"), ZL = vt.create({
|
|
12428
12428
|
name: "focusEvents",
|
|
12429
12429
|
addProseMirrorPlugins() {
|
|
12430
12430
|
const { editor: e } = this;
|
|
@@ -12503,7 +12503,7 @@ var vt = class WL extends Hk {
|
|
|
12503
12503
|
// This is an alternative to ProseMirror's `AllSelection`, which doesn’t work well
|
|
12504
12504
|
// with many other commands.
|
|
12505
12505
|
new Dt({
|
|
12506
|
-
key: new
|
|
12506
|
+
key: new At("clearDocument"),
|
|
12507
12507
|
appendTransaction: (e, t, n) => {
|
|
12508
12508
|
if (e.some((g) => g.getMeta("composition")))
|
|
12509
12509
|
return;
|
|
@@ -12531,7 +12531,7 @@ var vt = class WL extends Hk {
|
|
|
12531
12531
|
addProseMirrorPlugins() {
|
|
12532
12532
|
return [
|
|
12533
12533
|
new Dt({
|
|
12534
|
-
key: new
|
|
12534
|
+
key: new At("tiptapPaste"),
|
|
12535
12535
|
props: {
|
|
12536
12536
|
handlePaste: (e, t, n) => {
|
|
12537
12537
|
this.editor.emit("paste", {
|
|
@@ -12549,7 +12549,7 @@ var vt = class WL extends Hk {
|
|
|
12549
12549
|
addProseMirrorPlugins() {
|
|
12550
12550
|
return [
|
|
12551
12551
|
new Dt({
|
|
12552
|
-
key: new
|
|
12552
|
+
key: new At("tabindex"),
|
|
12553
12553
|
props: {
|
|
12554
12554
|
attributes: () => this.editor.isEditable ? { tabindex: "0" } : {}
|
|
12555
12555
|
}
|
|
@@ -12588,7 +12588,7 @@ var vt = class WL extends Hk {
|
|
|
12588
12588
|
addProseMirrorPlugins() {
|
|
12589
12589
|
return [
|
|
12590
12590
|
new Dt({
|
|
12591
|
-
key: new
|
|
12591
|
+
key: new At("textDirection"),
|
|
12592
12592
|
props: {
|
|
12593
12593
|
attributes: () => {
|
|
12594
12594
|
const e = this.options.direction;
|
|
@@ -13695,7 +13695,7 @@ function $ie(e, t, n = {}) {
|
|
|
13695
13695
|
}
|
|
13696
13696
|
}), i.docChanged && t.view.dispatch(i);
|
|
13697
13697
|
}
|
|
13698
|
-
var
|
|
13698
|
+
var St = class nU extends Hk {
|
|
13699
13699
|
constructor() {
|
|
13700
13700
|
super(...arguments), this.type = "node";
|
|
13701
13701
|
}
|
|
@@ -15986,7 +15986,7 @@ function ho(e) {
|
|
|
15986
15986
|
}
|
|
15987
15987
|
return t;
|
|
15988
15988
|
}
|
|
15989
|
-
var lu = new
|
|
15989
|
+
var lu = new At("selectingCells");
|
|
15990
15990
|
function kh(e) {
|
|
15991
15991
|
for (let t = e.depth - 1; t > 0; t--)
|
|
15992
15992
|
if (e.node(t).type.spec.tableRole == "row")
|
|
@@ -16290,7 +16290,7 @@ function pae(e, t, n) {
|
|
|
16290
16290
|
} else r instanceof ut && cae(r) ? i = ut.create(o, r.from) : r instanceof ut && dae(r) && (i = ut.create(o, r.$from.start(), r.$from.end()));
|
|
16291
16291
|
return i && (t || (t = e.tr)).setSelection(i), t;
|
|
16292
16292
|
}
|
|
16293
|
-
var hae = new
|
|
16293
|
+
var hae = new At("fix-tables");
|
|
16294
16294
|
function OU(e, t, n, r) {
|
|
16295
16295
|
const o = e.childCount, i = t.childCount;
|
|
16296
16296
|
e: for (let s = 0, a = 0; s < i; s++) {
|
|
@@ -17204,7 +17204,7 @@ function P5(e, t, n, r, o, i) {
|
|
|
17204
17204
|
l ? (n.style.width = a + "px", n.style.minWidth = "") : (n.style.width = "", n.style.minWidth = a + "px");
|
|
17205
17205
|
}
|
|
17206
17206
|
}
|
|
17207
|
-
var vi = new
|
|
17207
|
+
var vi = new At(
|
|
17208
17208
|
"tableColumnResizing"
|
|
17209
17209
|
);
|
|
17210
17210
|
function Pae({
|
|
@@ -17638,7 +17638,7 @@ var Jae = class {
|
|
|
17638
17638
|
this.hide(), this.element.removeEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.view.dom.removeEventListener("dragstart", this.dragstartHandler), window.removeEventListener("resize", this.resizeHandler), this.scrollTarget.removeEventListener("scroll", this.resizeHandler), this.editor.off("focus", this.focusHandler), this.editor.off("blur", this.blurHandler), this.editor.off("transaction", this.transactionHandler), this.floatingUIOptions.onDestroy && this.floatingUIOptions.onDestroy();
|
|
17639
17639
|
}
|
|
17640
17640
|
}, zU = (e) => new Dt({
|
|
17641
|
-
key: typeof e.pluginKey == "string" ? new
|
|
17641
|
+
key: typeof e.pluginKey == "string" ? new At(e.pluginKey) : e.pluginKey,
|
|
17642
17642
|
view: (t) => new Jae({ view: t, ...e })
|
|
17643
17643
|
});
|
|
17644
17644
|
vt.create({
|
|
@@ -17769,7 +17769,7 @@ var Qae = class {
|
|
|
17769
17769
|
this.hide(), this.element.removeEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.editor.off("focus", this.focusHandler), this.editor.off("blur", this.blurHandler), this.floatingUIOptions.onDestroy && this.floatingUIOptions.onDestroy();
|
|
17770
17770
|
}
|
|
17771
17771
|
}, $U = (e) => new Dt({
|
|
17772
|
-
key: typeof e.pluginKey == "string" ? new
|
|
17772
|
+
key: typeof e.pluginKey == "string" ? new At(e.pluginKey) : e.pluginKey,
|
|
17773
17773
|
view: (t) => new Qae({ view: t, ...e })
|
|
17774
17774
|
});
|
|
17775
17775
|
vt.create({
|
|
@@ -18023,7 +18023,7 @@ const qU = (e) => e8(e).buffer, z5 = (e) => {
|
|
|
18023
18023
|
} catch (o) {
|
|
18024
18024
|
console.error("Error decrypting and displaying the image:", o);
|
|
18025
18025
|
}
|
|
18026
|
-
}, fp = new
|
|
18026
|
+
}, fp = new At("upload-image"), hle = () => new Dt({
|
|
18027
18027
|
key: fp,
|
|
18028
18028
|
state: {
|
|
18029
18029
|
init() {
|
|
@@ -45097,7 +45097,7 @@ function hH(e, t) {
|
|
|
45097
45097
|
function Rme(e) {
|
|
45098
45098
|
return e != null && (typeof e == "string" || e.nodeType && (e.nodeType === 1 || e.nodeType === 9 || e.nodeType === 11));
|
|
45099
45099
|
}
|
|
45100
|
-
const c9 = new
|
|
45100
|
+
const c9 = new At("inline-ui"), s1 = [], Ime = () => new Dt({
|
|
45101
45101
|
key: c9,
|
|
45102
45102
|
state: {
|
|
45103
45103
|
init() {
|
|
@@ -50059,7 +50059,7 @@ const U2e = /* @__PURE__ */ Xu(L2e), sf = () => {
|
|
|
50059
50059
|
] }) })
|
|
50060
50060
|
}
|
|
50061
50061
|
) : null;
|
|
50062
|
-
}, IH =
|
|
50062
|
+
}, IH = St.create({
|
|
50063
50063
|
name: "column",
|
|
50064
50064
|
content: "dBlock+",
|
|
50065
50065
|
isolating: !0,
|
|
@@ -50154,7 +50154,7 @@ class Fb extends Et {
|
|
|
50154
50154
|
}
|
|
50155
50155
|
}
|
|
50156
50156
|
var mc = /* @__PURE__ */ ((e) => (e.AlignLeft = "align-left", e.AlignRight = "align-right", e.AlignCenter = "align-center", e))(mc || {});
|
|
50157
|
-
const wb =
|
|
50157
|
+
const wb = St.create({
|
|
50158
50158
|
name: "columns",
|
|
50159
50159
|
group: "columns",
|
|
50160
50160
|
content: "column{2,}",
|
|
@@ -54139,7 +54139,7 @@ ${S.getHTML()}`
|
|
|
54139
54139
|
spellcheck: "true",
|
|
54140
54140
|
suppressContentEditableWarning: "true"
|
|
54141
54141
|
}
|
|
54142
|
-
}, $n = new
|
|
54142
|
+
}, $n = new At("y-sync"), ua = new At("y-undo"), Sc = new At("yjs-cursor"), Yye = (e) => {
|
|
54143
54143
|
for (let n = 6; n < e.length; n++)
|
|
54144
54144
|
e[n % 6] = e[n % 6] ^ e[n];
|
|
54145
54145
|
return e.slice(0, 6);
|
|
@@ -55204,7 +55204,7 @@ var Exe = vt.create({
|
|
|
55204
55204
|
n,
|
|
55205
55205
|
// Only add the filterInvalidContent plugin if content checking is enabled
|
|
55206
55206
|
this.editor.options.enableContentCheck && new Dt({
|
|
55207
|
-
key: new
|
|
55207
|
+
key: new At("filterInvalidContent"),
|
|
55208
55208
|
filterTransaction: () => {
|
|
55209
55209
|
var s;
|
|
55210
55210
|
return this.storage.isDisabled !== !1 && ((s = t.doc) == null || s.destroy()), !0;
|
|
@@ -55221,7 +55221,7 @@ var Exe = vt.create({
|
|
|
55221
55221
|
if (e === "svg")
|
|
55222
55222
|
throw new Error("SVG elements are not supported in the JSX syntax, use the array syntax instead");
|
|
55223
55223
|
return [e, r, n];
|
|
55224
|
-
}, Cxe = /^\s*>\s$/, _xe =
|
|
55224
|
+
}, Cxe = /^\s*>\s$/, _xe = St.create({
|
|
55225
55225
|
name: "blockquote",
|
|
55226
55226
|
addOptions() {
|
|
55227
55227
|
return {
|
|
@@ -55387,7 +55387,7 @@ ${n}
|
|
|
55387
55387
|
})
|
|
55388
55388
|
];
|
|
55389
55389
|
}
|
|
55390
|
-
}), _4 = 4, Rxe = /^```([a-z]+)?[\s\n]$/, Ixe = /^~~~([a-z]+)?[\s\n]$/, wW =
|
|
55390
|
+
}), _4 = 4, Rxe = /^```([a-z]+)?[\s\n]$/, Ixe = /^~~~([a-z]+)?[\s\n]$/, wW = St.create({
|
|
55391
55391
|
name: "codeBlock",
|
|
55392
55392
|
addOptions() {
|
|
55393
55393
|
return {
|
|
@@ -55580,7 +55580,7 @@ ${n}
|
|
|
55580
55580
|
// this plugin creates a code block for pasted content from VS Code
|
|
55581
55581
|
// we can also detect the copied code language
|
|
55582
55582
|
new Dt({
|
|
55583
|
-
key: new
|
|
55583
|
+
key: new At("codeBlockVSCodeHandler"),
|
|
55584
55584
|
props: {
|
|
55585
55585
|
handlePaste: (e, t) => {
|
|
55586
55586
|
if (!t.clipboardData || this.editor.isActive(this.type.name))
|
|
@@ -55596,14 +55596,14 @@ ${n}
|
|
|
55596
55596
|
})
|
|
55597
55597
|
];
|
|
55598
55598
|
}
|
|
55599
|
-
}), Lxe = wW, DW =
|
|
55599
|
+
}), Lxe = wW, DW = St.create({
|
|
55600
55600
|
name: "doc",
|
|
55601
55601
|
topNode: !0,
|
|
55602
55602
|
content: "block+",
|
|
55603
55603
|
renderMarkdown: (e, t) => e.content ? t.renderChildren(e.content, `
|
|
55604
55604
|
|
|
55605
55605
|
`) : ""
|
|
55606
|
-
}), Uxe =
|
|
55606
|
+
}), Uxe = St.create({
|
|
55607
55607
|
name: "hardBreak",
|
|
55608
55608
|
markdownTokenName: "br",
|
|
55609
55609
|
addOptions() {
|
|
@@ -55657,7 +55657,7 @@ ${n}
|
|
|
55657
55657
|
"Shift-Enter": () => this.editor.commands.setHardBreak()
|
|
55658
55658
|
};
|
|
55659
55659
|
}
|
|
55660
|
-
}), kW =
|
|
55660
|
+
}), kW = St.create({
|
|
55661
55661
|
name: "heading",
|
|
55662
55662
|
addOptions() {
|
|
55663
55663
|
return {
|
|
@@ -55715,7 +55715,7 @@ ${n}
|
|
|
55715
55715
|
}
|
|
55716
55716
|
}));
|
|
55717
55717
|
}
|
|
55718
|
-
}), Pxe = kW, EW =
|
|
55718
|
+
}), Pxe = kW, EW = St.create({
|
|
55719
55719
|
name: "horizontalRule",
|
|
55720
55720
|
addOptions() {
|
|
55721
55721
|
return {
|
|
@@ -56535,7 +56535,7 @@ function h3e(e) {
|
|
|
56535
56535
|
}
|
|
56536
56536
|
function f3e(e) {
|
|
56537
56537
|
return new Dt({
|
|
56538
|
-
key: new
|
|
56538
|
+
key: new At("autolink"),
|
|
56539
56539
|
appendTransaction: (t, n, r) => {
|
|
56540
56540
|
const o = t.some((u) => u.docChanged) && !n.doc.eq(r.doc), i = t.some((u) => u.getMeta("preventAutolink"));
|
|
56541
56541
|
if (!o || i)
|
|
@@ -56588,7 +56588,7 @@ function f3e(e) {
|
|
|
56588
56588
|
}
|
|
56589
56589
|
function g3e(e) {
|
|
56590
56590
|
return new Dt({
|
|
56591
|
-
key: new
|
|
56591
|
+
key: new At("handleClickLink"),
|
|
56592
56592
|
props: {
|
|
56593
56593
|
handleClick: (t, n, r) => {
|
|
56594
56594
|
var o, i;
|
|
@@ -56614,7 +56614,7 @@ function g3e(e) {
|
|
|
56614
56614
|
}
|
|
56615
56615
|
function m3e(e) {
|
|
56616
56616
|
return new Dt({
|
|
56617
|
-
key: new
|
|
56617
|
+
key: new At("handlePasteLink"),
|
|
56618
56618
|
props: {
|
|
56619
56619
|
handlePaste: (t, n, r) => {
|
|
56620
56620
|
const { shouldAutoLink: o } = e, { state: i } = t, { selection: s } = i, { empty: a } = s;
|
|
@@ -56823,7 +56823,7 @@ var OW = Ir.create({
|
|
|
56823
56823
|
}), b3e = OW, y3e = Object.defineProperty, x3e = (e, t) => {
|
|
56824
56824
|
for (var n in t)
|
|
56825
56825
|
y3e(e, n, { get: t[n], enumerable: !0 });
|
|
56826
|
-
}, v3e = "listItem", ej = "textStyle", tj = /^\s*([-+*])\s$/, T9 =
|
|
56826
|
+
}, v3e = "listItem", ej = "textStyle", tj = /^\s*([-+*])\s$/, T9 = St.create({
|
|
56827
56827
|
name: "bulletList",
|
|
56828
56828
|
addOptions() {
|
|
56829
56829
|
return {
|
|
@@ -56877,7 +56877,7 @@ var OW = Ir.create({
|
|
|
56877
56877
|
editor: this.editor
|
|
56878
56878
|
})), [e];
|
|
56879
56879
|
}
|
|
56880
|
-
}), j9 =
|
|
56880
|
+
}), j9 = St.create({
|
|
56881
56881
|
name: "listItem",
|
|
56882
56882
|
addOptions() {
|
|
56883
56883
|
return {
|
|
@@ -57169,7 +57169,7 @@ function E3e(e, t) {
|
|
|
57169
57169
|
};
|
|
57170
57170
|
});
|
|
57171
57171
|
}
|
|
57172
|
-
var C3e = "listItem", rj = "textStyle", oj = /^(\d+)\.\s$/, HW =
|
|
57172
|
+
var C3e = "listItem", rj = "textStyle", oj = /^(\d+)\.\s$/, HW = St.create({
|
|
57173
57173
|
name: "orderedList",
|
|
57174
57174
|
addOptions() {
|
|
57175
57175
|
return {
|
|
@@ -57276,7 +57276,7 @@ var C3e = "listItem", rj = "textStyle", oj = /^(\d+)\.\s$/, HW = At.create({
|
|
|
57276
57276
|
editor: this.editor
|
|
57277
57277
|
})), [e];
|
|
57278
57278
|
}
|
|
57279
|
-
}), _3e = /^\s*(\[([( |x])?\])\s$/, WW =
|
|
57279
|
+
}), _3e = /^\s*(\[([( |x])?\])\s$/, WW = St.create({
|
|
57280
57280
|
name: "taskItem",
|
|
57281
57281
|
addOptions() {
|
|
57282
57282
|
return {
|
|
@@ -57400,7 +57400,7 @@ var C3e = "listItem", rj = "textStyle", oj = /^(\d+)\.\s$/, HW = At.create({
|
|
|
57400
57400
|
})
|
|
57401
57401
|
];
|
|
57402
57402
|
}
|
|
57403
|
-
}), qW =
|
|
57403
|
+
}), qW = St.create({
|
|
57404
57404
|
name: "taskList",
|
|
57405
57405
|
addOptions() {
|
|
57406
57406
|
return {
|
|
@@ -57520,7 +57520,7 @@ vt.create({
|
|
|
57520
57520
|
return this.options.bulletList !== !1 && e.push(T9.configure(this.options.bulletList)), this.options.listItem !== !1 && e.push(j9.configure(this.options.listItem)), this.options.listKeymap !== !1 && e.push(zW.configure(this.options.listKeymap)), this.options.orderedList !== !1 && e.push(HW.configure(this.options.orderedList)), this.options.taskItem !== !1 && e.push(WW.configure(this.options.taskItem)), this.options.taskList !== !1 && e.push(qW.configure(this.options.taskList)), e;
|
|
57521
57521
|
}
|
|
57522
57522
|
});
|
|
57523
|
-
var A3e =
|
|
57523
|
+
var A3e = St.create({
|
|
57524
57524
|
name: "paragraph",
|
|
57525
57525
|
priority: 1e3,
|
|
57526
57526
|
addOptions() {
|
|
@@ -57615,7 +57615,7 @@ var A3e = At.create({
|
|
|
57615
57615
|
})
|
|
57616
57616
|
];
|
|
57617
57617
|
}
|
|
57618
|
-
}), B3e =
|
|
57618
|
+
}), B3e = St.create({
|
|
57619
57619
|
name: "text",
|
|
57620
57620
|
group: "inline",
|
|
57621
57621
|
parseMarkdown: (e) => ({
|
|
@@ -58259,7 +58259,7 @@ function y2(e) {
|
|
|
58259
58259
|
}
|
|
58260
58260
|
return O4;
|
|
58261
58261
|
}
|
|
58262
|
-
const Kc = new
|
|
58262
|
+
const Kc = new At("history"), Y3e = new At("closeHistory");
|
|
58263
58263
|
function Z3e(e = {}) {
|
|
58264
58264
|
return e = {
|
|
58265
58265
|
depth: e.depth || 100,
|
|
@@ -58331,7 +58331,7 @@ var J3e = vt.create({
|
|
|
58331
58331
|
let e = !1;
|
|
58332
58332
|
return [
|
|
58333
58333
|
new Dt({
|
|
58334
|
-
key: new
|
|
58334
|
+
key: new At("characterCount"),
|
|
58335
58335
|
appendTransaction: (t, n, r) => {
|
|
58336
58336
|
if (e)
|
|
58337
58337
|
return;
|
|
@@ -58390,7 +58390,7 @@ vt.create({
|
|
|
58390
58390
|
addProseMirrorPlugins() {
|
|
58391
58391
|
return [
|
|
58392
58392
|
new Dt({
|
|
58393
|
-
key: new
|
|
58393
|
+
key: new At("focus"),
|
|
58394
58394
|
props: {
|
|
58395
58395
|
decorations: ({ doc: e, selection: t }) => {
|
|
58396
58396
|
const { isEditable: n, isFocused: r } = this.editor, { anchor: o } = t, i = [];
|
|
@@ -58453,7 +58453,7 @@ var JW = vt.create({
|
|
|
58453
58453
|
addProseMirrorPlugins() {
|
|
58454
58454
|
return [
|
|
58455
58455
|
new Dt({
|
|
58456
|
-
key: new
|
|
58456
|
+
key: new At("placeholder"),
|
|
58457
58457
|
props: {
|
|
58458
58458
|
decorations: ({ doc: e, selection: t }) => {
|
|
58459
58459
|
const n = this.editor.isEditable || !this.options.showOnlyWhenEditable, { anchor: r } = t, o = [];
|
|
@@ -58495,7 +58495,7 @@ vt.create({
|
|
|
58495
58495
|
const { editor: e, options: t } = this;
|
|
58496
58496
|
return [
|
|
58497
58497
|
new Dt({
|
|
58498
|
-
key: new
|
|
58498
|
+
key: new At("selection"),
|
|
58499
58499
|
props: {
|
|
58500
58500
|
decorations(n) {
|
|
58501
58501
|
return n.selection.empty || e.isFocused || !e.isEditable || UL(n.selection) || e.view.dragging ? null : Jt.create(n.doc, [
|
|
@@ -58522,7 +58522,7 @@ var eve = vt.create({
|
|
|
58522
58522
|
},
|
|
58523
58523
|
addProseMirrorPlugins() {
|
|
58524
58524
|
var e;
|
|
58525
|
-
const t = new
|
|
58525
|
+
const t = new At(this.name), n = ((e = this.editor.schema.topNodeType.contentMatch.defaultType) == null ? void 0 : e.name) || this.options.node || "paragraph", r = Object.entries(this.editor.schema.nodes).map(([, o]) => o).filter((o) => (this.options.notAfter || []).concat(n).includes(o.name));
|
|
58526
58526
|
return [
|
|
58527
58527
|
new Dt({
|
|
58528
58528
|
key: t,
|
|
@@ -58879,7 +58879,7 @@ var gve = ({
|
|
|
58879
58879
|
getId: e,
|
|
58880
58880
|
anchorTypes: t = ["heading"]
|
|
58881
58881
|
}) => new Dt({
|
|
58882
|
-
key: new
|
|
58882
|
+
key: new At("tableOfContent"),
|
|
58883
58883
|
appendTransaction(n, r, o) {
|
|
58884
58884
|
const i = o.tr;
|
|
58885
58885
|
let s = !1;
|
|
@@ -59703,7 +59703,7 @@ const wve = zxe.extend({
|
|
|
59703
59703
|
)
|
|
59704
59704
|
}
|
|
59705
59705
|
);
|
|
59706
|
-
}, Ave =
|
|
59706
|
+
}, Ave = St.create({
|
|
59707
59707
|
name: "iframe",
|
|
59708
59708
|
group: "block",
|
|
59709
59709
|
atom: !0,
|
|
@@ -61307,7 +61307,7 @@ const f6e = (e, t, n) => {
|
|
|
61307
61307
|
) : /* @__PURE__ */ F.jsx("div", { className: "w-full flex justify-center items-center min-h-[200px]", children: n ? /* @__PURE__ */ F.jsx(pq, { tweet: n }) : /* @__PURE__ */ F.jsx(g6e, { id: e.attrs.tweetId }) })
|
|
61308
61308
|
}
|
|
61309
61309
|
);
|
|
61310
|
-
}, b6e =
|
|
61310
|
+
}, b6e = St.create({
|
|
61311
61311
|
name: "embeddedTweet",
|
|
61312
61312
|
group: "block",
|
|
61313
61313
|
atom: !0,
|
|
@@ -65329,7 +65329,7 @@ const t5e = _t.memo(
|
|
|
65329
65329
|
}
|
|
65330
65330
|
);
|
|
65331
65331
|
Aq.displayName = "DBlockNodeView";
|
|
65332
|
-
const Sq =
|
|
65332
|
+
const Sq = St.create({
|
|
65333
65333
|
name: "dBlock",
|
|
65334
65334
|
priority: 1e3,
|
|
65335
65335
|
group: "dBlock",
|
|
@@ -65769,7 +65769,7 @@ const Sq = At.create({
|
|
|
65769
65769
|
addProseMirrorPlugins() {
|
|
65770
65770
|
return this.options.hasAvailableModels ? [
|
|
65771
65771
|
new Dt({
|
|
65772
|
-
key: new
|
|
65772
|
+
key: new At("dblock-aiwriter-space"),
|
|
65773
65773
|
props: {
|
|
65774
65774
|
handleTextInput: (e, t, n, r) => {
|
|
65775
65775
|
var h, f;
|
|
@@ -65920,7 +65920,7 @@ function s5e(e, t, n, r) {
|
|
|
65920
65920
|
const l = i ? `${o}px` : "", u = i ? "" : `${o}px`;
|
|
65921
65921
|
return { colgroup: ["colgroup", {}, ...s], tableWidth: l, tableMinWidth: u };
|
|
65922
65922
|
}
|
|
65923
|
-
const a5e =
|
|
65923
|
+
const a5e = St.create({
|
|
65924
65924
|
name: "table",
|
|
65925
65925
|
// @ts-ignore
|
|
65926
65926
|
addOptions() {
|
|
@@ -68134,7 +68134,7 @@ const Xwe = [
|
|
|
68134
68134
|
]
|
|
68135
68135
|
}
|
|
68136
68136
|
);
|
|
68137
|
-
}, Ywe =
|
|
68137
|
+
}, Ywe = St.create({
|
|
68138
68138
|
name: "tableCell",
|
|
68139
68139
|
addOptions() {
|
|
68140
68140
|
return {
|
|
@@ -68177,7 +68177,7 @@ const Xwe = [
|
|
|
68177
68177
|
className: "relative"
|
|
68178
68178
|
});
|
|
68179
68179
|
}
|
|
68180
|
-
}), Zwe =
|
|
68180
|
+
}), Zwe = St.create({
|
|
68181
68181
|
name: "tableHeader",
|
|
68182
68182
|
addOptions() {
|
|
68183
68183
|
return {
|
|
@@ -68231,7 +68231,7 @@ const Xwe = [
|
|
|
68231
68231
|
return t && Object.entries(t).forEach(([o, i]) => r.setAttribute(o, i)), n && Object.entries(n).forEach(
|
|
68232
68232
|
([o, i]) => r.addEventListener(o, i)
|
|
68233
68233
|
), r;
|
|
68234
|
-
}, Qwe =
|
|
68234
|
+
}, Qwe = St.create({
|
|
68235
68235
|
name: "tableRow",
|
|
68236
68236
|
addOptions() {
|
|
68237
68237
|
return {
|
|
@@ -68357,7 +68357,7 @@ const tDe = vt.create({
|
|
|
68357
68357
|
};
|
|
68358
68358
|
},
|
|
68359
68359
|
addProseMirrorPlugins() {
|
|
68360
|
-
const e = new
|
|
68360
|
+
const e = new At(this.name), t = Object.entries(this.editor.schema.nodes).map(([, n]) => n).filter((n) => this.options.notAfter.includes(n.name));
|
|
68361
68361
|
return [
|
|
68362
68362
|
new Dt({
|
|
68363
68363
|
key: e,
|
|
@@ -68657,7 +68657,7 @@ const tDe = vt.create({
|
|
|
68657
68657
|
] })
|
|
68658
68658
|
}
|
|
68659
68659
|
);
|
|
68660
|
-
}, oDe =
|
|
68660
|
+
}, oDe = St.create({
|
|
68661
68661
|
name: "actionButton",
|
|
68662
68662
|
group: "block",
|
|
68663
68663
|
content: "block*",
|
|
@@ -69585,7 +69585,7 @@ function ODe(e) {
|
|
|
69585
69585
|
t.insertBefore(e.firstChild, e);
|
|
69586
69586
|
t.removeChild(e);
|
|
69587
69587
|
}
|
|
69588
|
-
const Hx =
|
|
69588
|
+
const Hx = St.create({
|
|
69589
69589
|
name: "markdownHTMLNode",
|
|
69590
69590
|
addStorage() {
|
|
69591
69591
|
return {
|
|
@@ -69611,7 +69611,7 @@ ${n.innerHTML}
|
|
|
69611
69611
|
` : `
|
|
69612
69612
|
`, n.outerHTML;
|
|
69613
69613
|
}
|
|
69614
|
-
const LDe =
|
|
69614
|
+
const LDe = St.create({
|
|
69615
69615
|
name: "blockquote"
|
|
69616
69616
|
}), UDe = LDe.extend({
|
|
69617
69617
|
/**
|
|
@@ -69627,7 +69627,7 @@ const LDe = At.create({
|
|
|
69627
69627
|
}
|
|
69628
69628
|
};
|
|
69629
69629
|
}
|
|
69630
|
-
}), PDe =
|
|
69630
|
+
}), PDe = St.create({
|
|
69631
69631
|
name: "bulletList"
|
|
69632
69632
|
}), uV = PDe.extend({
|
|
69633
69633
|
/**
|
|
@@ -69645,7 +69645,7 @@ const LDe = At.create({
|
|
|
69645
69645
|
}
|
|
69646
69646
|
};
|
|
69647
69647
|
}
|
|
69648
|
-
}), zDe =
|
|
69648
|
+
}), zDe = St.create({
|
|
69649
69649
|
name: "codeBlock"
|
|
69650
69650
|
}), $De = zDe.extend({
|
|
69651
69651
|
/**
|
|
@@ -69672,7 +69672,7 @@ const LDe = At.create({
|
|
|
69672
69672
|
}
|
|
69673
69673
|
};
|
|
69674
69674
|
}
|
|
69675
|
-
}), HDe =
|
|
69675
|
+
}), HDe = St.create({
|
|
69676
69676
|
name: "hardBreak"
|
|
69677
69677
|
}), cV = HDe.extend({
|
|
69678
69678
|
/**
|
|
@@ -69695,7 +69695,7 @@ const LDe = At.create({
|
|
|
69695
69695
|
}
|
|
69696
69696
|
};
|
|
69697
69697
|
}
|
|
69698
|
-
}), WDe =
|
|
69698
|
+
}), WDe = St.create({
|
|
69699
69699
|
name: "heading"
|
|
69700
69700
|
}), qDe = WDe.extend({
|
|
69701
69701
|
/**
|
|
@@ -69711,7 +69711,7 @@ const LDe = At.create({
|
|
|
69711
69711
|
}
|
|
69712
69712
|
};
|
|
69713
69713
|
}
|
|
69714
|
-
}), VDe =
|
|
69714
|
+
}), VDe = St.create({
|
|
69715
69715
|
name: "horizontalRule"
|
|
69716
69716
|
}), GDe = VDe.extend({
|
|
69717
69717
|
/**
|
|
@@ -69727,7 +69727,7 @@ const LDe = At.create({
|
|
|
69727
69727
|
}
|
|
69728
69728
|
};
|
|
69729
69729
|
}
|
|
69730
|
-
}), KDe =
|
|
69730
|
+
}), KDe = St.create({
|
|
69731
69731
|
name: "image"
|
|
69732
69732
|
}), XDe = KDe.extend({
|
|
69733
69733
|
/**
|
|
@@ -69743,7 +69743,7 @@ const LDe = At.create({
|
|
|
69743
69743
|
}
|
|
69744
69744
|
};
|
|
69745
69745
|
}
|
|
69746
|
-
}), YDe =
|
|
69746
|
+
}), YDe = St.create({
|
|
69747
69747
|
name: "listItem"
|
|
69748
69748
|
}), ZDe = YDe.extend({
|
|
69749
69749
|
/**
|
|
@@ -69759,7 +69759,7 @@ const LDe = At.create({
|
|
|
69759
69759
|
}
|
|
69760
69760
|
};
|
|
69761
69761
|
}
|
|
69762
|
-
}), JDe =
|
|
69762
|
+
}), JDe = St.create({
|
|
69763
69763
|
name: "orderedList"
|
|
69764
69764
|
});
|
|
69765
69765
|
function QDe(e, t, n) {
|
|
@@ -69788,7 +69788,7 @@ const eke = JDe.extend({
|
|
|
69788
69788
|
}
|
|
69789
69789
|
};
|
|
69790
69790
|
}
|
|
69791
|
-
}), tke =
|
|
69791
|
+
}), tke = St.create({
|
|
69792
69792
|
name: "paragraph"
|
|
69793
69793
|
}), nke = tke.extend({
|
|
69794
69794
|
/**
|
|
@@ -69809,7 +69809,7 @@ function sF(e) {
|
|
|
69809
69809
|
var t, n;
|
|
69810
69810
|
return (t = e == null || (n = e.content) === null || n === void 0 ? void 0 : n.content) !== null && t !== void 0 ? t : [];
|
|
69811
69811
|
}
|
|
69812
|
-
const rke =
|
|
69812
|
+
const rke = St.create({
|
|
69813
69813
|
name: "table"
|
|
69814
69814
|
}), oke = rke.extend({
|
|
69815
69815
|
/**
|
|
@@ -69850,7 +69850,7 @@ function ike(e) {
|
|
|
69850
69850
|
const t = sF(e), n = t[0], r = t.slice(1);
|
|
69851
69851
|
return !(sF(n).some((o) => o.type.name !== "tableHeader" || uB(o) || o.childCount > 1) || r.some((o) => sF(o).some((i) => i.type.name === "tableHeader" || uB(i) || i.childCount > 1)));
|
|
69852
69852
|
}
|
|
69853
|
-
const ske =
|
|
69853
|
+
const ske = St.create({
|
|
69854
69854
|
name: "taskItem"
|
|
69855
69855
|
}), ake = ske.extend({
|
|
69856
69856
|
/**
|
|
@@ -69874,7 +69874,7 @@ const ske = At.create({
|
|
|
69874
69874
|
}
|
|
69875
69875
|
};
|
|
69876
69876
|
}
|
|
69877
|
-
}), lke =
|
|
69877
|
+
}), lke = St.create({
|
|
69878
69878
|
name: "taskList"
|
|
69879
69879
|
}), uke = lke.extend({
|
|
69880
69880
|
/**
|
|
@@ -69897,7 +69897,7 @@ const ske = At.create({
|
|
|
69897
69897
|
}
|
|
69898
69898
|
};
|
|
69899
69899
|
}
|
|
69900
|
-
}), cke =
|
|
69900
|
+
}), cke = St.create({
|
|
69901
69901
|
name: "text"
|
|
69902
69902
|
}), dke = cke.extend({
|
|
69903
69903
|
/**
|
|
@@ -70151,7 +70151,7 @@ const Eke = vt.create({
|
|
|
70151
70151
|
},
|
|
70152
70152
|
addProseMirrorPlugins() {
|
|
70153
70153
|
return [new Dt({
|
|
70154
|
-
key: new
|
|
70154
|
+
key: new At("markdownClipboard"),
|
|
70155
70155
|
props: {
|
|
70156
70156
|
clipboardTextParser: (e, t, n) => {
|
|
70157
70157
|
if (n || !this.options.transformPastedText)
|
|
@@ -92453,7 +92453,7 @@ function DOe(e, t, n, r, o) {
|
|
|
92453
92453
|
}
|
|
92454
92454
|
return i;
|
|
92455
92455
|
}
|
|
92456
|
-
const fZ = { addInlineMath: !0, evaluation: !1, delimiters: "dollar", renderTextMode: "raw-latex" }, kOe =
|
|
92456
|
+
const fZ = { addInlineMath: !0, evaluation: !1, delimiters: "dollar", renderTextMode: "raw-latex" }, kOe = St.create({
|
|
92457
92457
|
name: "inlineMath",
|
|
92458
92458
|
group: "inline",
|
|
92459
92459
|
inline: !0,
|
|
@@ -92661,7 +92661,7 @@ const EOe = "mathExtension", COe = vt.create({
|
|
|
92661
92661
|
const e = [];
|
|
92662
92662
|
return this.options.addInlineMath !== !1 && e.push(kOe.configure(this.options)), e;
|
|
92663
92663
|
}
|
|
92664
|
-
}), _Oe =
|
|
92664
|
+
}), _Oe = St.create({
|
|
92665
92665
|
name: "footnote",
|
|
92666
92666
|
group: "block",
|
|
92667
92667
|
content: "inline*",
|
|
@@ -92676,7 +92676,7 @@ const EOe = "mathExtension", COe = vt.create({
|
|
|
92676
92676
|
return ["footnote", It(e), 0];
|
|
92677
92677
|
}
|
|
92678
92678
|
});
|
|
92679
|
-
|
|
92679
|
+
St.create({
|
|
92680
92680
|
name: "footnoteRef",
|
|
92681
92681
|
group: "inline",
|
|
92682
92682
|
inline: !0,
|
|
@@ -92771,7 +92771,7 @@ var AOe = Ir.create({
|
|
|
92771
92771
|
}
|
|
92772
92772
|
}), jOe = TOe;
|
|
92773
92773
|
const BOe = (e, t) => new Dt({
|
|
92774
|
-
key: new
|
|
92774
|
+
key: new At("media-paste-drop"),
|
|
92775
92775
|
props: {
|
|
92776
92776
|
handlePaste(n, r) {
|
|
92777
92777
|
var u, c;
|
|
@@ -92836,7 +92836,7 @@ const BOe = (e, t) => new Dt({
|
|
|
92836
92836
|
}), !0) : !1;
|
|
92837
92837
|
}
|
|
92838
92838
|
}
|
|
92839
|
-
}), NOe = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, MOe = /!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\)/, OOe =
|
|
92839
|
+
}), NOe = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, MOe = /!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\)/, OOe = St.create({
|
|
92840
92840
|
name: "resizableMedia",
|
|
92841
92841
|
addOptions() {
|
|
92842
92842
|
return {
|
|
@@ -92978,21 +92978,6 @@ const BOe = (e, t) => new Dt({
|
|
|
92978
92978
|
}
|
|
92979
92979
|
};
|
|
92980
92980
|
},
|
|
92981
|
-
onCreate({ editor: e }) {
|
|
92982
|
-
const { tr: t } = e.state;
|
|
92983
|
-
let n = !1;
|
|
92984
|
-
e.state.doc.descendants((r, o) => {
|
|
92985
|
-
if (r.type.name !== "resizableMedia" || !r.attrs.caption || r.content.childCount > 0) return;
|
|
92986
|
-
const i = e.schema.nodes.mediaCaption.create(
|
|
92987
|
-
null,
|
|
92988
|
-
r.attrs.caption ? e.schema.text(r.attrs.caption) : void 0
|
|
92989
|
-
), s = o + r.nodeSize - 1;
|
|
92990
|
-
t.insert(s, i), t.setNodeMarkup(t.mapping.map(o), void 0, {
|
|
92991
|
-
...r.attrs,
|
|
92992
|
-
caption: null
|
|
92993
|
-
}), n = !0;
|
|
92994
|
-
}), n && e.view.dispatch(t);
|
|
92995
|
-
},
|
|
92996
92981
|
addNodeView() {
|
|
92997
92982
|
return ka(
|
|
92998
92983
|
iq(
|
|
@@ -93054,10 +93039,32 @@ const BOe = (e, t) => new Dt({
|
|
|
93054
93039
|
this.options.ipfsImageUploadFn
|
|
93055
93040
|
),
|
|
93056
93041
|
hle(),
|
|
93057
|
-
Ime()
|
|
93042
|
+
Ime(),
|
|
93043
|
+
// Migrates legacy `caption` attribute → `mediaCaption` child node.
|
|
93044
|
+
// Runs on every doc-changing transaction so it catches captions that
|
|
93045
|
+
// arrive asynchronously via Yjs sync, not just at editor init.
|
|
93046
|
+
new Dt({
|
|
93047
|
+
key: new At("resizableMediaCaptionMigration"),
|
|
93048
|
+
appendTransaction: (e, t, n) => {
|
|
93049
|
+
if (!e.some((i) => i.docChanged)) return null;
|
|
93050
|
+
const r = n.tr;
|
|
93051
|
+
let o = !1;
|
|
93052
|
+
return n.doc.descendants((i, s) => {
|
|
93053
|
+
if (i.type.name !== "resizableMedia" || !i.attrs.caption || i.content.childCount > 0) return;
|
|
93054
|
+
const a = n.schema.nodes.mediaCaption.create(
|
|
93055
|
+
null,
|
|
93056
|
+
n.schema.text(i.attrs.caption)
|
|
93057
|
+
), l = s + i.nodeSize - 1;
|
|
93058
|
+
r.insert(l, a), r.setNodeMarkup(r.mapping.map(s), void 0, {
|
|
93059
|
+
...i.attrs,
|
|
93060
|
+
caption: null
|
|
93061
|
+
}), o = !0;
|
|
93062
|
+
}), o ? r : null;
|
|
93063
|
+
}
|
|
93064
|
+
})
|
|
93058
93065
|
];
|
|
93059
93066
|
}
|
|
93060
|
-
}), ROe =
|
|
93067
|
+
}), ROe = St.create({
|
|
93061
93068
|
name: "mediaCaption",
|
|
93062
93069
|
content: "inline*",
|
|
93063
93070
|
marks: "link",
|
|
@@ -93244,7 +93251,7 @@ const IOe = ({
|
|
|
93244
93251
|
name: "linkPreview",
|
|
93245
93252
|
addProseMirrorPlugins() {
|
|
93246
93253
|
if (!this.options.metadataProxyUrl) return [];
|
|
93247
|
-
const e = new
|
|
93254
|
+
const e = new At("link-preview");
|
|
93248
93255
|
let t = null, n = null, r = null, o = null, i = null;
|
|
93249
93256
|
const s = new EventTarget();
|
|
93250
93257
|
return [
|
|
@@ -93300,7 +93307,7 @@ const IOe = ({
|
|
|
93300
93307
|
})
|
|
93301
93308
|
];
|
|
93302
93309
|
}
|
|
93303
|
-
}), UOe =
|
|
93310
|
+
}), UOe = St.create({
|
|
93304
93311
|
name: "callout",
|
|
93305
93312
|
group: "block",
|
|
93306
93313
|
// Allow formatted content
|
|
@@ -93316,7 +93323,7 @@ const IOe = ({
|
|
|
93316
93323
|
};
|
|
93317
93324
|
},
|
|
93318
93325
|
addProseMirrorPlugins() {
|
|
93319
|
-
const e = new
|
|
93326
|
+
const e = new At("callout-block");
|
|
93320
93327
|
return [
|
|
93321
93328
|
new Dt({
|
|
93322
93329
|
key: e,
|
|
@@ -93512,7 +93519,7 @@ const IOe = ({
|
|
|
93512
93519
|
// When a paragraph is newly inserted next to a styled paragraph, copy
|
|
93513
93520
|
// fontFamily and fontSize from the previous sibling in one pass.
|
|
93514
93521
|
new Dt({
|
|
93515
|
-
key: new
|
|
93522
|
+
key: new At("typographyInheritance"),
|
|
93516
93523
|
appendTransaction: (e, t, n) => {
|
|
93517
93524
|
if (!e.some((s) => {
|
|
93518
93525
|
if (!s.docChanged) return !1;
|
|
@@ -93553,7 +93560,7 @@ const IOe = ({
|
|
|
93553
93560
|
// fontSize node attrs, restore both as storedMarks in one pass so the
|
|
93554
93561
|
// next typed character picks up the correct styling.
|
|
93555
93562
|
new Dt({
|
|
93556
|
-
key: new
|
|
93563
|
+
key: new At("typographyStoredMarks"),
|
|
93557
93564
|
appendTransaction: (e, t, n) => {
|
|
93558
93565
|
var a, l, u;
|
|
93559
93566
|
if (!e.some((c) => c.selectionSet)) return null;
|
|
@@ -94689,7 +94696,7 @@ function LRe({
|
|
|
94689
94696
|
if (!["highlight", "highlightAuto", "listLanguages"].every((o) => IRe(t[o])))
|
|
94690
94697
|
throw Error("You should provide an instance of lowlight to use the code-block-lowlight extension");
|
|
94691
94698
|
const r = new Dt({
|
|
94692
|
-
key: new
|
|
94699
|
+
key: new At("lowlight"),
|
|
94693
94700
|
state: {
|
|
94694
94701
|
init: (o, { doc: i }) => IO({
|
|
94695
94702
|
doc: i,
|
|
@@ -108072,7 +108079,7 @@ const gLe = vt.create({
|
|
|
108072
108079
|
};
|
|
108073
108080
|
},
|
|
108074
108081
|
addProseMirrorPlugins() {
|
|
108075
|
-
const e = new
|
|
108082
|
+
const e = new At("lineHeightInheritance");
|
|
108076
108083
|
return [
|
|
108077
108084
|
new Dt({
|
|
108078
108085
|
key: e,
|
|
@@ -108137,7 +108144,7 @@ function mLe(e) {
|
|
|
108137
108144
|
text: m[0]
|
|
108138
108145
|
} : null;
|
|
108139
108146
|
}
|
|
108140
|
-
var bLe = new
|
|
108147
|
+
var bLe = new At("suggestion");
|
|
108141
108148
|
function yLe({
|
|
108142
108149
|
pluginKey: e = bLe,
|
|
108143
108150
|
editor: t,
|
|
@@ -168230,7 +168237,7 @@ function FLe(e) {
|
|
|
168230
168237
|
};
|
|
168231
168238
|
});
|
|
168232
168239
|
}
|
|
168233
|
-
const wLe = 200, DLe = new
|
|
168240
|
+
const wLe = 200, DLe = new At("emoji"), kLe = St.create({
|
|
168234
168241
|
name: "emoji",
|
|
168235
168242
|
content: "text*",
|
|
168236
168243
|
priority: wLe,
|
|
@@ -168308,7 +168315,7 @@ const wLe = 200, DLe = new St("emoji"), kLe = At.create({
|
|
|
168308
168315
|
var r;
|
|
168309
168316
|
const e = ((r = this.parent) == null ? void 0 : r.call(this)) ?? [], t = this.options;
|
|
168310
168317
|
return [new Dt({
|
|
168311
|
-
key: new
|
|
168318
|
+
key: new At("foreignHeadingLinkDetector"),
|
|
168312
168319
|
props: {
|
|
168313
168320
|
handlePaste: (o, i) => {
|
|
168314
168321
|
var l, u, c;
|
|
@@ -169413,7 +169420,7 @@ const wLe = 200, DLe = new St("emoji"), kLe = At.create({
|
|
|
169413
169420
|
]
|
|
169414
169421
|
}
|
|
169415
169422
|
);
|
|
169416
|
-
}, JZ =
|
|
169423
|
+
}, JZ = St.create({
|
|
169417
169424
|
name: "pageBreak",
|
|
169418
169425
|
addOptions() {
|
|
169419
169426
|
return {
|
|
@@ -169457,7 +169464,7 @@ const wLe = 200, DLe = new St("emoji"), kLe = At.create({
|
|
|
169457
169464
|
addProseMirrorPlugins() {
|
|
169458
169465
|
return [
|
|
169459
169466
|
new Dt({
|
|
169460
|
-
key: new
|
|
169467
|
+
key: new At("pageBreakPlugin"),
|
|
169461
169468
|
props: {
|
|
169462
169469
|
handleClick: (e, t, n) => {
|
|
169463
169470
|
if (n.target.classList.contains("remove-page-break-icon")) {
|
|
@@ -170432,7 +170439,7 @@ const pUe = vt.create({
|
|
|
170432
170439
|
},
|
|
170433
170440
|
addProseMirrorPlugins() {
|
|
170434
170441
|
var p;
|
|
170435
|
-
const e = new
|
|
170442
|
+
const e = new At("ai-autocomplete");
|
|
170436
170443
|
let t = null, n = !1, r = "", o = null;
|
|
170437
170444
|
const i = new aJ({
|
|
170438
170445
|
host: (p = this.options) == null ? void 0 : p.endpoint
|
|
@@ -171097,7 +171104,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
171097
171104
|
}
|
|
171098
171105
|
) });
|
|
171099
171106
|
}
|
|
171100
|
-
), bUe =
|
|
171107
|
+
), bUe = St.create({
|
|
171101
171108
|
name: "aiWriter",
|
|
171102
171109
|
group: "block",
|
|
171103
171110
|
atom: !0,
|