@blocknote/core 0.43.0 → 0.44.0
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/{BlockNoteSchema-D8TyvlfU.cjs → BlockNoteSchema-B4gm-Qco.cjs} +2 -2
- package/dist/{BlockNoteSchema-D8TyvlfU.cjs.map → BlockNoteSchema-B4gm-Qco.cjs.map} +1 -1
- package/dist/{BlockNoteSchema-CbSavEwr.js → BlockNoteSchema-C-l154WP.js} +2 -2
- package/dist/{BlockNoteSchema-CbSavEwr.js.map → BlockNoteSchema-C-l154WP.js.map} +1 -1
- package/dist/{TrailingNode-BUhuMJrB.js → TrailingNode-B_zPMWxw.js} +235 -233
- package/dist/{TrailingNode-BUhuMJrB.js.map → TrailingNode-B_zPMWxw.js.map} +1 -1
- package/dist/TrailingNode-CRHrgOnK.cjs +2 -0
- package/dist/{TrailingNode-CaT_wbho.cjs.map → TrailingNode-CRHrgOnK.cjs.map} +1 -1
- package/dist/blocknote.cjs +4 -4
- package/dist/blocknote.cjs.map +1 -1
- package/dist/blocknote.js +508 -506
- package/dist/blocknote.js.map +1 -1
- package/dist/blocks.cjs +1 -1
- package/dist/blocks.js +2 -2
- package/dist/defaultBlocks-DLJ4Q1_J.cjs +6 -0
- package/dist/{defaultBlocks-BxFclIGP.cjs.map → defaultBlocks-DLJ4Q1_J.cjs.map} +1 -1
- package/dist/{defaultBlocks-BJtxTOM2.js → defaultBlocks-DgA_mtQV.js} +463 -460
- package/dist/{defaultBlocks-BJtxTOM2.js.map → defaultBlocks-DgA_mtQV.js.map} +1 -1
- package/dist/extensions.cjs +1 -1
- package/dist/extensions.js +3 -3
- package/dist/webpack-stats.json +1 -1
- package/package.json +1 -1
- package/dist/TrailingNode-CaT_wbho.cjs +0 -2
- package/dist/defaultBlocks-BxFclIGP.cjs +0 -6
|
@@ -1,52 +1,54 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var b = (n, e, o) =>
|
|
4
|
-
import { Plugin as
|
|
5
|
-
import { combineTransactionSteps as
|
|
6
|
-
import
|
|
7
|
-
import { i as
|
|
8
|
-
import { ai as ue, a2 as
|
|
1
|
+
var Ee = Object.defineProperty;
|
|
2
|
+
var Ie = (n, e, o) => e in n ? Ee(n, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : n[e] = o;
|
|
3
|
+
var b = (n, e, o) => Ie(n, typeof e != "symbol" ? e + "" : e, o);
|
|
4
|
+
import { Plugin as T, PluginKey as P, NodeSelection as ae, TextSelection as le, Selection as L } from "prosemirror-state";
|
|
5
|
+
import { combineTransactionSteps as Be, getMarkRange as Te, posToDOMRect as Pe, findChildren as X } from "@tiptap/core";
|
|
6
|
+
import Oe from "fast-deep-equal";
|
|
7
|
+
import { i as j, t as De, U as Ae, n as Me, g as N, a as R, c as ce, m as Le, e as de, f as Ne, h as Re, j as Ve, k as He, l as Fe, o as q, p as W } from "./blockToNode-DBNbhwwC.js";
|
|
8
|
+
import { ai as ue, a2 as G, aj as he, $ as $e, a1 as J } from "./defaultBlocks-DgA_mtQV.js";
|
|
9
9
|
import { c as k, a as H } from "./BlockNoteExtension-C2X7LW-V.js";
|
|
10
|
-
import { yCursorPlugin as Ue, defaultSelectionBuilder as
|
|
10
|
+
import { yCursorPlugin as Ue, defaultSelectionBuilder as _e, ySyncPlugin as ze, redoCommand as Ke, undoCommand as Ye, yUndoPlugin as Xe, yUndoPluginKey as Q } from "y-prosemirror";
|
|
11
11
|
import * as I from "yjs";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
12
|
+
import { PluginKey as me, Plugin as pe, TextSelection as je } from "@tiptap/pm/state";
|
|
13
|
+
import { dropCursor as qe } from "prosemirror-dropcursor";
|
|
14
|
+
import { redo as We, undo as Ge, history as Je } from "@tiptap/pm/history";
|
|
14
15
|
import { Decoration as A, DecorationSet as V } from "prosemirror-view";
|
|
15
|
-
import { v4 as
|
|
16
|
-
import {
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
|
|
16
|
+
import { v4 as Qe } from "uuid";
|
|
17
|
+
import { DOMParser as Ze, Slice as et } from "@tiptap/pm/model";
|
|
18
|
+
import { DOMSerializer as fe, Fragment as ge, Slice as tt } from "prosemirror-model";
|
|
19
|
+
import ot from "rehype-parse";
|
|
20
|
+
import nt from "rehype-remark";
|
|
21
|
+
import rt from "remark-gfm";
|
|
22
|
+
import st from "remark-stringify";
|
|
23
|
+
import { unified as it } from "unified";
|
|
24
|
+
import { fromDom as at } from "hast-util-from-dom";
|
|
25
|
+
import { visit as lt } from "unist-util-visit";
|
|
26
|
+
import { splitCell as ct, mergeCells as dt, deleteRow as ut, deleteColumn as ht, addRowBefore as mt, addRowAfter as pt, addColumnBefore as ft, addColumnAfter as gt, CellSelection as wt } from "prosemirror-tables";
|
|
27
|
+
function we(n) {
|
|
26
28
|
const e = Array.from(n.classList).filter(
|
|
27
29
|
(o) => !o.startsWith("bn-")
|
|
28
30
|
) || [];
|
|
29
31
|
e.length > 0 ? n.className = e.join(" ") : n.removeAttribute("class");
|
|
30
32
|
}
|
|
31
|
-
function
|
|
33
|
+
function ye(n, e, o, t) {
|
|
32
34
|
var a;
|
|
33
35
|
let r;
|
|
34
36
|
if (e)
|
|
35
37
|
if (typeof e == "string")
|
|
36
|
-
r =
|
|
38
|
+
r = j([e], n.pmSchema);
|
|
37
39
|
else if (Array.isArray(e))
|
|
38
|
-
r =
|
|
40
|
+
r = j(e, n.pmSchema);
|
|
39
41
|
else if (e.type === "tableContent")
|
|
40
|
-
r =
|
|
42
|
+
r = De(e, n.pmSchema);
|
|
41
43
|
else
|
|
42
|
-
throw new
|
|
44
|
+
throw new Ae(e.type);
|
|
43
45
|
else throw new Error("blockContent is required");
|
|
44
46
|
const i = ((t == null ? void 0 : t.document) ?? document).createDocumentFragment();
|
|
45
47
|
for (const c of r)
|
|
46
48
|
if (c.type.name !== "text" && n.schema.inlineContentSchema[c.type.name]) {
|
|
47
49
|
const l = n.schema.inlineContentSpecs[c.type.name].implementation;
|
|
48
50
|
if (l) {
|
|
49
|
-
const m =
|
|
51
|
+
const m = Me(
|
|
50
52
|
c,
|
|
51
53
|
n.schema.inlineContentSchema,
|
|
52
54
|
n.schema.styleSchema
|
|
@@ -83,21 +85,21 @@ function we(n, e, o, t) {
|
|
|
83
85
|
const h = (n.schema.styleSpecs[m.type.name].implementation.toExternalHTML ?? n.schema.styleSpecs[m.type.name].implementation.render)(m.attrs.stringValue, n);
|
|
84
86
|
h.contentDOM.appendChild(l), l = h.dom;
|
|
85
87
|
} else {
|
|
86
|
-
const h = m.type.spec.toDOM(m, !0), f =
|
|
88
|
+
const h = m.type.spec.toDOM(m, !0), f = fe.renderSpec(document, h);
|
|
87
89
|
f.contentDOM.appendChild(l), l = f.dom;
|
|
88
90
|
}
|
|
89
91
|
i.appendChild(l);
|
|
90
92
|
} else {
|
|
91
93
|
const l = o.serializeFragment(
|
|
92
|
-
|
|
94
|
+
ge.from([c]),
|
|
93
95
|
t
|
|
94
96
|
);
|
|
95
97
|
i.appendChild(l);
|
|
96
98
|
}
|
|
97
|
-
return i.childNodes.length === 1 && ((a = i.firstChild) == null ? void 0 : a.nodeType) === 1 &&
|
|
99
|
+
return i.childNodes.length === 1 && ((a = i.firstChild) == null ? void 0 : a.nodeType) === 1 && we(i.firstChild), i;
|
|
98
100
|
}
|
|
99
|
-
function
|
|
100
|
-
var p, w, y, E, O,
|
|
101
|
+
function yt(n, e, o, t, r, s, i) {
|
|
102
|
+
var p, w, y, E, O, _, z, K, Y;
|
|
101
103
|
const a = (i == null ? void 0 : i.document) ?? document, c = e.pmSchema.nodes.blockContainer, l = o.props || {};
|
|
102
104
|
for (const [v, S] of Object.entries(
|
|
103
105
|
e.schema.blockSchema[o.type].propSchema
|
|
@@ -127,11 +129,11 @@ function pt(n, e, o, t, r, s, i) {
|
|
|
127
129
|
);
|
|
128
130
|
for (const S of v)
|
|
129
131
|
u.dom.firstChild.setAttribute(S.name, S.value);
|
|
130
|
-
|
|
132
|
+
we(u.dom.firstChild), g.append(...Array.from(u.dom.childNodes));
|
|
131
133
|
} else
|
|
132
134
|
g.append(u.dom);
|
|
133
135
|
if (u.contentDOM && o.content) {
|
|
134
|
-
const v =
|
|
136
|
+
const v = ye(
|
|
135
137
|
e,
|
|
136
138
|
o.content,
|
|
137
139
|
// TODO
|
|
@@ -151,7 +153,7 @@ function pt(n, e, o, t, r, s, i) {
|
|
|
151
153
|
n.append(g);
|
|
152
154
|
if (o.children && o.children.length > 0) {
|
|
153
155
|
const v = a.createDocumentFragment();
|
|
154
|
-
if (
|
|
156
|
+
if (be(
|
|
155
157
|
v,
|
|
156
158
|
e,
|
|
157
159
|
o.children,
|
|
@@ -159,15 +161,15 @@ function pt(n, e, o, t, r, s, i) {
|
|
|
159
161
|
r,
|
|
160
162
|
s,
|
|
161
163
|
i
|
|
162
|
-
), ((O = n.lastChild) == null ? void 0 : O.nodeName) === "UL" || ((
|
|
163
|
-
for (; ((
|
|
164
|
+
), ((O = n.lastChild) == null ? void 0 : O.nodeName) === "UL" || ((_ = n.lastChild) == null ? void 0 : _.nodeName) === "OL")
|
|
165
|
+
for (; ((z = v.firstChild) == null ? void 0 : z.nodeName) === "UL" || ((K = v.firstChild) == null ? void 0 : K.nodeName) === "OL"; )
|
|
164
166
|
n.lastChild.lastChild.appendChild(v.firstChild);
|
|
165
|
-
e.pmSchema.nodes[o.type].isInGroup("blockContent") ? n.append(v) : (
|
|
167
|
+
e.pmSchema.nodes[o.type].isInGroup("blockContent") ? n.append(v) : (Y = u.contentDOM) == null || Y.append(v);
|
|
166
168
|
}
|
|
167
169
|
}
|
|
168
|
-
const
|
|
170
|
+
const be = (n, e, o, t, r, s, i) => {
|
|
169
171
|
for (const a of o)
|
|
170
|
-
|
|
172
|
+
yt(
|
|
171
173
|
n,
|
|
172
174
|
e,
|
|
173
175
|
a,
|
|
@@ -176,9 +178,9 @@ const ye = (n, e, o, t, r, s, i) => {
|
|
|
176
178
|
s,
|
|
177
179
|
i
|
|
178
180
|
);
|
|
179
|
-
},
|
|
181
|
+
}, bt = (n, e, o, t, r, s) => {
|
|
180
182
|
const a = ((s == null ? void 0 : s.document) ?? document).createDocumentFragment();
|
|
181
|
-
return
|
|
183
|
+
return be(
|
|
182
184
|
a,
|
|
183
185
|
n,
|
|
184
186
|
e,
|
|
@@ -187,11 +189,11 @@ const ye = (n, e, o, t, r, s, i) => {
|
|
|
187
189
|
r,
|
|
188
190
|
s
|
|
189
191
|
), a;
|
|
190
|
-
},
|
|
191
|
-
const o =
|
|
192
|
+
}, ve = (n, e) => {
|
|
193
|
+
const o = fe.fromSchema(n);
|
|
192
194
|
return {
|
|
193
195
|
exportBlocks: (t, r) => {
|
|
194
|
-
const s =
|
|
196
|
+
const s = bt(
|
|
195
197
|
e,
|
|
196
198
|
t,
|
|
197
199
|
o,
|
|
@@ -202,7 +204,7 @@ const ye = (n, e, o, t, r, s, i) => {
|
|
|
202
204
|
return i.append(s), i.innerHTML;
|
|
203
205
|
},
|
|
204
206
|
exportInlineContent: (t, r) => {
|
|
205
|
-
const s =
|
|
207
|
+
const s = ye(
|
|
206
208
|
e,
|
|
207
209
|
t,
|
|
208
210
|
o,
|
|
@@ -212,7 +214,7 @@ const ye = (n, e, o, t, r, s, i) => {
|
|
|
212
214
|
}
|
|
213
215
|
};
|
|
214
216
|
};
|
|
215
|
-
function
|
|
217
|
+
function vt(n, e) {
|
|
216
218
|
if (e === 0)
|
|
217
219
|
return;
|
|
218
220
|
const o = n.resolve(e);
|
|
@@ -222,23 +224,23 @@ function gt(n, e) {
|
|
|
222
224
|
return r.attrs.id;
|
|
223
225
|
}
|
|
224
226
|
}
|
|
225
|
-
function
|
|
227
|
+
function kt(n) {
|
|
226
228
|
return n.getMeta("paste") ? { type: "paste" } : n.getMeta("uiEvent") === "drop" ? { type: "drop" } : n.getMeta("history$") ? {
|
|
227
229
|
type: n.getMeta("history$").redo ? "redo" : "undo"
|
|
228
230
|
} : n.getMeta("y-sync$") ? n.getMeta("y-sync$").isUndoRedoOperation ? { type: "undo-redo" } : { type: "yjs-remote" } : { type: "local" };
|
|
229
231
|
}
|
|
230
|
-
function
|
|
232
|
+
function Z(n) {
|
|
231
233
|
const e = "__root__", o = {}, t = {}, r = N(n);
|
|
232
234
|
return n.descendants((s, i) => {
|
|
233
235
|
if (!ue(s))
|
|
234
236
|
return !0;
|
|
235
|
-
const a =
|
|
237
|
+
const a = vt(n, i), c = a ?? e;
|
|
236
238
|
t[c] || (t[c] = []);
|
|
237
239
|
const l = R(s, r);
|
|
238
240
|
return o[s.attrs.id] = { block: l, parentId: a }, t[c].push(s.attrs.id), !0;
|
|
239
241
|
}), { byId: o, childrenByParent: t };
|
|
240
242
|
}
|
|
241
|
-
function
|
|
243
|
+
function Ct(n, e) {
|
|
242
244
|
const o = /* @__PURE__ */ new Set();
|
|
243
245
|
if (!n || !e)
|
|
244
246
|
return o;
|
|
@@ -270,13 +272,13 @@ function yt(n, e) {
|
|
|
270
272
|
u.has(d) || o.add(r[d]);
|
|
271
273
|
return o;
|
|
272
274
|
}
|
|
273
|
-
function
|
|
274
|
-
const o =
|
|
275
|
+
function St(n, e = []) {
|
|
276
|
+
const o = kt(n), t = Be(n.before, [
|
|
275
277
|
n,
|
|
276
278
|
...e
|
|
277
|
-
]), r =
|
|
279
|
+
]), r = Z(
|
|
278
280
|
t.before
|
|
279
|
-
), s =
|
|
281
|
+
), s = Z(
|
|
280
282
|
t.doc
|
|
281
283
|
), i = [], a = /* @__PURE__ */ new Set();
|
|
282
284
|
Object.keys(s.byId).filter((u) => !(u in r.byId)).forEach((u) => {
|
|
@@ -303,7 +305,7 @@ function bt(n, e = []) {
|
|
|
303
305
|
source: o,
|
|
304
306
|
prevParent: g.parentId ? (w = r.byId[g.parentId]) == null ? void 0 : w.block : void 0,
|
|
305
307
|
currentParent: d.parentId ? (y = s.byId[d.parentId]) == null ? void 0 : y.block : void 0
|
|
306
|
-
}), a.add(u)) :
|
|
308
|
+
}), a.add(u)) : Oe(
|
|
307
309
|
{ ...g.block, children: void 0 },
|
|
308
310
|
{ ...d.block, children: void 0 }
|
|
309
311
|
) || (i.push({
|
|
@@ -318,7 +320,7 @@ function bt(n, e = []) {
|
|
|
318
320
|
...Object.keys(l)
|
|
319
321
|
]), f = /* @__PURE__ */ new Set();
|
|
320
322
|
return h.forEach((u) => {
|
|
321
|
-
const g =
|
|
323
|
+
const g = Ct(
|
|
322
324
|
c[u],
|
|
323
325
|
l[u]
|
|
324
326
|
);
|
|
@@ -336,7 +338,7 @@ function bt(n, e = []) {
|
|
|
336
338
|
});
|
|
337
339
|
}), i;
|
|
338
340
|
}
|
|
339
|
-
function
|
|
341
|
+
function xt() {
|
|
340
342
|
const n = (e) => {
|
|
341
343
|
let o = e.children.length;
|
|
342
344
|
for (let t = 0; t < o; t++) {
|
|
@@ -352,7 +354,7 @@ function vt() {
|
|
|
352
354
|
};
|
|
353
355
|
return n;
|
|
354
356
|
}
|
|
355
|
-
function
|
|
357
|
+
function Et() {
|
|
356
358
|
const n = (e) => {
|
|
357
359
|
var o;
|
|
358
360
|
if (e.children && "length" in e.children && e.children.length)
|
|
@@ -361,15 +363,15 @@ function kt() {
|
|
|
361
363
|
r.type === "element" && r.tagName === "input" && ((o = r.properties) == null ? void 0 : o.type) === "checkbox" && (s == null ? void 0 : s.type) === "element" && s.tagName === "p" ? (s.tagName = "span", s.children.splice(
|
|
362
364
|
0,
|
|
363
365
|
0,
|
|
364
|
-
|
|
366
|
+
at(document.createTextNode(" "))
|
|
365
367
|
)) : n(r);
|
|
366
368
|
}
|
|
367
369
|
};
|
|
368
370
|
return n;
|
|
369
371
|
}
|
|
370
|
-
function
|
|
372
|
+
function It() {
|
|
371
373
|
return (n) => {
|
|
372
|
-
|
|
374
|
+
lt(n, "element", (e, o, t) => {
|
|
373
375
|
var r, s, i, a;
|
|
374
376
|
if (t && e.tagName === "video") {
|
|
375
377
|
const c = ((r = e.properties) == null ? void 0 : r.src) || ((s = e.properties) == null ? void 0 : s["data-url"]) || "", l = ((i = e.properties) == null ? void 0 : i.title) || ((a = e.properties) == null ? void 0 : a["data-name"]) || "";
|
|
@@ -381,16 +383,16 @@ function Ct() {
|
|
|
381
383
|
});
|
|
382
384
|
};
|
|
383
385
|
}
|
|
384
|
-
function
|
|
385
|
-
return
|
|
386
|
+
function ke(n) {
|
|
387
|
+
return it().use(ot, { fragment: !0 }).use(It).use(xt).use(Et).use(nt).use(rt).use(st, {
|
|
386
388
|
handlers: { text: (o) => o.value }
|
|
387
389
|
}).processSync(n).value;
|
|
388
390
|
}
|
|
389
|
-
function
|
|
390
|
-
const s =
|
|
391
|
-
return
|
|
391
|
+
function po(n, e, o, t) {
|
|
392
|
+
const s = ve(e, o).exportBlocks(n, t);
|
|
393
|
+
return ke(s);
|
|
392
394
|
}
|
|
393
|
-
function
|
|
395
|
+
function Bt(n) {
|
|
394
396
|
const e = [];
|
|
395
397
|
return n.descendants((o) => {
|
|
396
398
|
var r, s;
|
|
@@ -400,18 +402,18 @@ function St(n) {
|
|
|
400
402
|
}), !1) : o.type.isInGroup("bnBlock") ? (e.push(R(o, t)), !1) : !0;
|
|
401
403
|
}), e;
|
|
402
404
|
}
|
|
403
|
-
const
|
|
405
|
+
const fo = k(() => {
|
|
404
406
|
const n = [];
|
|
405
407
|
return {
|
|
406
408
|
key: "blockChange",
|
|
407
409
|
prosemirrorPlugins: [
|
|
408
|
-
new
|
|
409
|
-
key: new
|
|
410
|
+
new T({
|
|
411
|
+
key: new P("blockChange"),
|
|
410
412
|
filterTransaction: (e) => {
|
|
411
413
|
let o;
|
|
412
414
|
return n.reduce((t, r) => t === !1 ? t : r({
|
|
413
415
|
getChanges() {
|
|
414
|
-
return o || (o =
|
|
416
|
+
return o || (o = St(e), o);
|
|
415
417
|
},
|
|
416
418
|
tr: e
|
|
417
419
|
}) !== !1, !0);
|
|
@@ -431,25 +433,25 @@ const lo = k(() => {
|
|
|
431
433
|
}
|
|
432
434
|
};
|
|
433
435
|
});
|
|
434
|
-
function
|
|
436
|
+
function ee(n) {
|
|
435
437
|
const e = n.charAt(0) === "#" ? n.substring(1, 7) : n, o = parseInt(e.substring(0, 2), 16), t = parseInt(e.substring(2, 4), 16), r = parseInt(e.substring(4, 6), 16), i = [o / 255, t / 255, r / 255].map((c) => c <= 0.03928 ? c / 12.92 : Math.pow((c + 0.055) / 1.055, 2.4));
|
|
436
438
|
return 0.2126 * i[0] + 0.7152 * i[1] + 0.0722 * i[2] <= 0.179;
|
|
437
439
|
}
|
|
438
|
-
function
|
|
440
|
+
function Tt(n) {
|
|
439
441
|
const e = document.createElement("span");
|
|
440
442
|
e.classList.add("bn-collaboration-cursor__base");
|
|
441
443
|
const o = document.createElement("span");
|
|
442
444
|
o.setAttribute("contentedEditable", "false"), o.classList.add("bn-collaboration-cursor__caret"), o.setAttribute(
|
|
443
445
|
"style",
|
|
444
|
-
`background-color: ${n.color}; color: ${
|
|
446
|
+
`background-color: ${n.color}; color: ${ee(n.color) ? "white" : "black"}`
|
|
445
447
|
);
|
|
446
448
|
const t = document.createElement("span");
|
|
447
449
|
return t.classList.add("bn-collaboration-cursor__label"), t.setAttribute(
|
|
448
450
|
"style",
|
|
449
|
-
`background-color: ${n.color}; color: ${
|
|
451
|
+
`background-color: ${n.color}; color: ${ee(n.color) ? "white" : "black"}`
|
|
450
452
|
), t.insertBefore(document.createTextNode(n.name), null), o.insertBefore(t, null), e.insertBefore(document.createTextNode(""), null), e.insertBefore(o, null), e.insertBefore(document.createTextNode(""), null), e;
|
|
451
453
|
}
|
|
452
|
-
const
|
|
454
|
+
const te = k(
|
|
453
455
|
({
|
|
454
456
|
options: n
|
|
455
457
|
}) => {
|
|
@@ -473,11 +475,11 @@ const oe = k(
|
|
|
473
475
|
key: "yCursor",
|
|
474
476
|
prosemirrorPlugins: [
|
|
475
477
|
Ue(n.provider.awareness, {
|
|
476
|
-
selectionBuilder:
|
|
478
|
+
selectionBuilder: _e,
|
|
477
479
|
cursorBuilder(o, t) {
|
|
478
480
|
let r = e.get(t);
|
|
479
481
|
if (!r) {
|
|
480
|
-
const s = (n.renderCursor ??
|
|
482
|
+
const s = (n.renderCursor ?? Tt)(o);
|
|
481
483
|
n.showCursorLabels !== "always" && (s.addEventListener("mouseenter", () => {
|
|
482
484
|
const i = e.get(t);
|
|
483
485
|
i.element.setAttribute("data-active", ""), i.hideTimeout && (clearTimeout(i.hideTimeout), e.set(t, {
|
|
@@ -510,17 +512,17 @@ const oe = k(
|
|
|
510
512
|
), F = k(
|
|
511
513
|
({ options: n }) => ({
|
|
512
514
|
key: "ySync",
|
|
513
|
-
prosemirrorPlugins: [
|
|
515
|
+
prosemirrorPlugins: [ze(n.fragment)],
|
|
514
516
|
runsBefore: ["default"]
|
|
515
517
|
})
|
|
516
|
-
),
|
|
518
|
+
), $ = k(({ editor: n }) => ({
|
|
517
519
|
key: "yUndo",
|
|
518
|
-
prosemirrorPlugins: [
|
|
520
|
+
prosemirrorPlugins: [Xe({ trackedOrigins: [n] })],
|
|
519
521
|
dependsOn: ["yCursor", "ySync"],
|
|
520
522
|
undoCommand: Ye,
|
|
521
|
-
redoCommand:
|
|
523
|
+
redoCommand: Ke
|
|
522
524
|
}));
|
|
523
|
-
function
|
|
525
|
+
function Pt(n, e) {
|
|
524
526
|
const o = n.doc;
|
|
525
527
|
if (n._item === null) {
|
|
526
528
|
const t = Array.from(o.share.keys()).find(
|
|
@@ -534,7 +536,7 @@ function Et(n, e) {
|
|
|
534
536
|
return r[s].content.type;
|
|
535
537
|
}
|
|
536
538
|
}
|
|
537
|
-
const
|
|
539
|
+
const go = k(
|
|
538
540
|
({
|
|
539
541
|
editor: n,
|
|
540
542
|
options: e
|
|
@@ -557,14 +559,14 @@ const co = k(
|
|
|
557
559
|
throw new Error("No fragment to fork from");
|
|
558
560
|
const s = new I.Doc();
|
|
559
561
|
I.applyUpdate(s, I.encodeStateAsUpdate(r.doc));
|
|
560
|
-
const i =
|
|
562
|
+
const i = Pt(r, s);
|
|
561
563
|
o = {
|
|
562
|
-
undoStack:
|
|
564
|
+
undoStack: Q.getState(n.prosemirrorState).undoManager.undoStack,
|
|
563
565
|
originalFragment: r,
|
|
564
566
|
forkedFragment: i
|
|
565
567
|
}, n.unregisterExtension([
|
|
566
|
-
|
|
567
|
-
|
|
568
|
+
$,
|
|
569
|
+
te,
|
|
568
570
|
F
|
|
569
571
|
]);
|
|
570
572
|
const a = {
|
|
@@ -574,7 +576,7 @@ const co = k(
|
|
|
574
576
|
n.registerExtension([
|
|
575
577
|
F(a),
|
|
576
578
|
// No need to register the cursor plugin again, it's a local fork
|
|
577
|
-
|
|
579
|
+
$({})
|
|
578
580
|
]), t.setState({ isForked: !0 });
|
|
579
581
|
},
|
|
580
582
|
/**
|
|
@@ -589,9 +591,9 @@ const co = k(
|
|
|
589
591
|
const { originalFragment: s, forkedFragment: i, undoStack: a } = o;
|
|
590
592
|
if (n.registerExtension([
|
|
591
593
|
F(e),
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
]),
|
|
594
|
+
te(e),
|
|
595
|
+
$({})
|
|
596
|
+
]), Q.getState(
|
|
595
597
|
n.prosemirrorState
|
|
596
598
|
).undoManager.undoStack = a, r) {
|
|
597
599
|
const c = I.encodeStateAsUpdate(
|
|
@@ -604,18 +606,18 @@ const co = k(
|
|
|
604
606
|
}
|
|
605
607
|
};
|
|
606
608
|
}
|
|
607
|
-
),
|
|
609
|
+
), Ce = (n, e) => {
|
|
608
610
|
e(n), n.forEach((o) => {
|
|
609
|
-
o instanceof I.XmlElement &&
|
|
611
|
+
o instanceof I.XmlElement && Ce(o, e);
|
|
610
612
|
});
|
|
611
|
-
},
|
|
613
|
+
}, Ot = (n, e) => {
|
|
612
614
|
const o = /* @__PURE__ */ new Map();
|
|
613
615
|
return n.forEach((t) => {
|
|
614
|
-
t instanceof I.XmlElement &&
|
|
616
|
+
t instanceof I.XmlElement && Ce(t, (r) => {
|
|
615
617
|
if (r.nodeName === "blockContainer" && r.hasAttribute("id")) {
|
|
616
618
|
const s = r.getAttribute("textColor"), i = r.getAttribute("backgroundColor"), a = {
|
|
617
|
-
textColor: s ===
|
|
618
|
-
backgroundColor: i ===
|
|
619
|
+
textColor: s === G.textColor.default ? void 0 : s,
|
|
620
|
+
backgroundColor: i === G.backgroundColor.default ? void 0 : i
|
|
619
621
|
};
|
|
620
622
|
(a.textColor || a.backgroundColor) && o.set(r.getAttribute("id"), a);
|
|
621
623
|
}
|
|
@@ -633,14 +635,14 @@ const co = k(
|
|
|
633
635
|
});
|
|
634
636
|
}
|
|
635
637
|
}), !0);
|
|
636
|
-
},
|
|
638
|
+
}, Dt = [Ot], wo = k(
|
|
637
639
|
({ options: n }) => {
|
|
638
640
|
let e = !1;
|
|
639
|
-
const o = new
|
|
641
|
+
const o = new me("schemaMigration");
|
|
640
642
|
return {
|
|
641
643
|
key: "schemaMigration",
|
|
642
644
|
prosemirrorPlugins: [
|
|
643
|
-
new
|
|
645
|
+
new pe({
|
|
644
646
|
key: o,
|
|
645
647
|
appendTransaction: (t, r, s) => {
|
|
646
648
|
if (e || // If any of the transactions are not due to a yjs sync, we don't need to run the migration
|
|
@@ -649,7 +651,7 @@ const co = k(
|
|
|
649
651
|
!n.fragment.firstChild)
|
|
650
652
|
return;
|
|
651
653
|
const i = s.tr;
|
|
652
|
-
for (const a of
|
|
654
|
+
for (const a of Dt)
|
|
653
655
|
a(n.fragment, i);
|
|
654
656
|
if (e = !0, !!i.docChanged)
|
|
655
657
|
return i;
|
|
@@ -658,24 +660,24 @@ const co = k(
|
|
|
658
660
|
]
|
|
659
661
|
};
|
|
660
662
|
}
|
|
661
|
-
),
|
|
663
|
+
), yo = k(
|
|
662
664
|
({
|
|
663
665
|
editor: n,
|
|
664
666
|
options: e
|
|
665
667
|
}) => ({
|
|
666
668
|
key: "dropCursor",
|
|
667
669
|
prosemirrorPlugins: [
|
|
668
|
-
(e.dropCursor ??
|
|
670
|
+
(e.dropCursor ?? qe)({
|
|
669
671
|
width: 5,
|
|
670
672
|
color: "#ddeeff",
|
|
671
673
|
editor: n
|
|
672
674
|
})
|
|
673
675
|
]
|
|
674
676
|
})
|
|
675
|
-
),
|
|
677
|
+
), bo = k(({ editor: n }) => {
|
|
676
678
|
const e = H(!1), o = () => n.transact((t) => {
|
|
677
679
|
var s;
|
|
678
|
-
if (t.selection.empty || t.selection instanceof
|
|
680
|
+
if (t.selection.empty || t.selection instanceof ae && (t.selection.node.type.spec.content === "inline*" || ((s = t.selection.node.firstChild) == null ? void 0 : s.type.spec.content) === "inline*") || t.selection instanceof le && t.doc.textBetween(t.selection.from, t.selection.to).length === 0)
|
|
679
681
|
return !1;
|
|
680
682
|
let r = !1;
|
|
681
683
|
return t.selection.content().content.descendants((i) => (i.type.spec.code && (r = !0), !r)), !r;
|
|
@@ -716,12 +718,12 @@ const co = k(
|
|
|
716
718
|
});
|
|
717
719
|
}
|
|
718
720
|
};
|
|
719
|
-
}),
|
|
721
|
+
}), vo = k(() => ({
|
|
720
722
|
key: "history",
|
|
721
|
-
prosemirrorPlugins: [
|
|
722
|
-
undoCommand:
|
|
723
|
-
redoCommand:
|
|
724
|
-
})),
|
|
723
|
+
prosemirrorPlugins: [Je()],
|
|
724
|
+
undoCommand: Ge,
|
|
725
|
+
redoCommand: We
|
|
726
|
+
})), ko = k(({ editor: n }) => {
|
|
725
727
|
function e(r) {
|
|
726
728
|
let s = n.prosemirrorView.nodeDOM(r);
|
|
727
729
|
for (; s && s.parentElement; ) {
|
|
@@ -736,7 +738,7 @@ const co = k(
|
|
|
736
738
|
const a = i.doc.resolve(r), c = a.marks().find((m) => m.type.name === s);
|
|
737
739
|
if (!c)
|
|
738
740
|
return;
|
|
739
|
-
const l =
|
|
741
|
+
const l = Te(a, c.type);
|
|
740
742
|
if (l)
|
|
741
743
|
return {
|
|
742
744
|
range: l,
|
|
@@ -745,7 +747,7 @@ const co = k(
|
|
|
745
747
|
return i.doc.textBetween(l.from, l.to);
|
|
746
748
|
},
|
|
747
749
|
get position() {
|
|
748
|
-
return
|
|
750
|
+
return Pe(
|
|
749
751
|
n.prosemirrorView,
|
|
750
752
|
l.from,
|
|
751
753
|
l.to
|
|
@@ -802,7 +804,7 @@ const co = k(
|
|
|
802
804
|
}), n.prosemirrorView.focus();
|
|
803
805
|
}
|
|
804
806
|
};
|
|
805
|
-
}),
|
|
807
|
+
}), Co = [
|
|
806
808
|
"http",
|
|
807
809
|
"https",
|
|
808
810
|
"ftp",
|
|
@@ -813,12 +815,12 @@ const co = k(
|
|
|
813
815
|
"sms",
|
|
814
816
|
"cid",
|
|
815
817
|
"xmpp"
|
|
816
|
-
],
|
|
818
|
+
], So = "https", At = new P("node-selection-keyboard"), xo = k(
|
|
817
819
|
() => ({
|
|
818
820
|
key: "nodeSelectionKeyboard",
|
|
819
821
|
prosemirrorPlugins: [
|
|
820
|
-
new
|
|
821
|
-
key:
|
|
822
|
+
new T({
|
|
823
|
+
key: At,
|
|
822
824
|
props: {
|
|
823
825
|
handleKeyDown: (n, e) => {
|
|
824
826
|
if ("node" in n.state.selection) {
|
|
@@ -833,7 +835,7 @@ const co = k(
|
|
|
833
835
|
n.state.tr.selection.$to.after(),
|
|
834
836
|
n.state.schema.nodes.paragraph.createChecked()
|
|
835
837
|
).setSelection(
|
|
836
|
-
new
|
|
838
|
+
new le(
|
|
837
839
|
o.doc.resolve(
|
|
838
840
|
n.state.tr.selection.$to.after() + 1
|
|
839
841
|
)
|
|
@@ -848,7 +850,7 @@ const co = k(
|
|
|
848
850
|
})
|
|
849
851
|
]
|
|
850
852
|
})
|
|
851
|
-
),
|
|
853
|
+
), Mt = new P("blocknote-placeholder"), Eo = k(
|
|
852
854
|
({
|
|
853
855
|
editor: n,
|
|
854
856
|
options: e
|
|
@@ -857,10 +859,10 @@ const co = k(
|
|
|
857
859
|
return {
|
|
858
860
|
key: "placeholder",
|
|
859
861
|
prosemirrorPlugins: [
|
|
860
|
-
new
|
|
861
|
-
key:
|
|
862
|
+
new T({
|
|
863
|
+
key: Mt,
|
|
862
864
|
view: (t) => {
|
|
863
|
-
const r = `placeholder-selector-${
|
|
865
|
+
const r = `placeholder-selector-${Qe()}`;
|
|
864
866
|
t.dom.classList.add(r);
|
|
865
867
|
const s = document.createElement("style"), i = n._tiptapEditor.options.injectNonce;
|
|
866
868
|
i && s.setAttribute("nonce", i), t.root instanceof window.ShadowRoot ? t.root.append(s) : t.root.head.appendChild(s);
|
|
@@ -928,7 +930,7 @@ const co = k(
|
|
|
928
930
|
]
|
|
929
931
|
};
|
|
930
932
|
}
|
|
931
|
-
),
|
|
933
|
+
), oe = new P("previous-blocks"), Lt = {
|
|
932
934
|
// Numbered List Items
|
|
933
935
|
index: "index",
|
|
934
936
|
// Headings
|
|
@@ -937,20 +939,20 @@ const co = k(
|
|
|
937
939
|
type: "type",
|
|
938
940
|
depth: "depth",
|
|
939
941
|
"depth-change": "depth-change"
|
|
940
|
-
},
|
|
942
|
+
}, Io = k(() => {
|
|
941
943
|
let n;
|
|
942
944
|
return {
|
|
943
945
|
key: "previousBlockType",
|
|
944
946
|
prosemirrorPlugins: [
|
|
945
|
-
new
|
|
946
|
-
key:
|
|
947
|
+
new T({
|
|
948
|
+
key: oe,
|
|
947
949
|
view(e) {
|
|
948
950
|
return {
|
|
949
951
|
update: async (o, t) => {
|
|
950
952
|
var r;
|
|
951
953
|
((r = this.key) == null ? void 0 : r.getState(o.state).updatedBlocks.size) > 0 && (n = setTimeout(() => {
|
|
952
954
|
o.dispatch(
|
|
953
|
-
o.state.tr.setMeta(
|
|
955
|
+
o.state.tr.setMeta(oe, { clearUpdate: !0 })
|
|
954
956
|
);
|
|
955
957
|
}, 0));
|
|
956
958
|
},
|
|
@@ -973,12 +975,12 @@ const co = k(
|
|
|
973
975
|
apply(e, o, t, r) {
|
|
974
976
|
if (o.currentTransactionOldBlockAttrs = {}, o.updatedBlocks.clear(), !e.docChanged || t.doc.eq(r.doc))
|
|
975
977
|
return o;
|
|
976
|
-
const s = {}, i =
|
|
978
|
+
const s = {}, i = X(
|
|
977
979
|
t.doc,
|
|
978
980
|
(l) => l.attrs.id
|
|
979
981
|
), a = new Map(
|
|
980
982
|
i.map((l) => [l.node.attrs.id, l])
|
|
981
|
-
), c =
|
|
983
|
+
), c = X(
|
|
982
984
|
r.doc,
|
|
983
985
|
(l) => l.attrs.id
|
|
984
986
|
);
|
|
@@ -1013,7 +1015,7 @@ const co = k(
|
|
|
1013
1015
|
return;
|
|
1014
1016
|
const i = o.currentTransactionOldBlockAttrs[r.attrs.id], a = {};
|
|
1015
1017
|
for (const [l, m] of Object.entries(i))
|
|
1016
|
-
a["data-prev-" +
|
|
1018
|
+
a["data-prev-" + Lt[l]] = m || "none";
|
|
1017
1019
|
const c = A.node(s, s + r.nodeSize, {
|
|
1018
1020
|
...a
|
|
1019
1021
|
});
|
|
@@ -1025,14 +1027,14 @@ const co = k(
|
|
|
1025
1027
|
]
|
|
1026
1028
|
};
|
|
1027
1029
|
});
|
|
1028
|
-
function
|
|
1030
|
+
function Se(n, e) {
|
|
1029
1031
|
var o, t;
|
|
1030
1032
|
for (; n && n.parentElement && n.parentElement !== e.dom && ((o = n.getAttribute) == null ? void 0 : o.call(n, "data-node-type")) !== "blockContainer"; )
|
|
1031
1033
|
n = n.parentElement;
|
|
1032
1034
|
if (((t = n.getAttribute) == null ? void 0 : t.call(n, "data-node-type")) === "blockContainer")
|
|
1033
1035
|
return { node: n, id: n.getAttribute("data-id") };
|
|
1034
1036
|
}
|
|
1035
|
-
class
|
|
1037
|
+
class B extends L {
|
|
1036
1038
|
constructor(o, t) {
|
|
1037
1039
|
super(o, t);
|
|
1038
1040
|
b(this, "nodes");
|
|
@@ -1043,13 +1045,13 @@ class P extends L {
|
|
|
1043
1045
|
});
|
|
1044
1046
|
}
|
|
1045
1047
|
static create(o, t, r = t) {
|
|
1046
|
-
return new
|
|
1048
|
+
return new B(o.resolve(t), o.resolve(r));
|
|
1047
1049
|
}
|
|
1048
1050
|
content() {
|
|
1049
|
-
return new
|
|
1051
|
+
return new tt(ge.from(this.nodes), 0, 0);
|
|
1050
1052
|
}
|
|
1051
1053
|
eq(o) {
|
|
1052
|
-
if (!(o instanceof
|
|
1054
|
+
if (!(o instanceof B) || this.nodes.length !== o.nodes.length || this.from !== o.from || this.to !== o.to)
|
|
1053
1055
|
return !1;
|
|
1054
1056
|
for (let t = 0; t < this.nodes.length; t++)
|
|
1055
1057
|
if (!this.nodes[t].eq(o.nodes[t]))
|
|
@@ -1058,7 +1060,7 @@ class P extends L {
|
|
|
1058
1060
|
}
|
|
1059
1061
|
map(o, t) {
|
|
1060
1062
|
const r = t.mapResult(this.from), s = t.mapResult(this.to);
|
|
1061
|
-
return s.deleted ? L.near(o.resolve(r.pos)) : r.deleted ? L.near(o.resolve(s.pos)) : new
|
|
1063
|
+
return s.deleted ? L.near(o.resolve(r.pos)) : r.deleted ? L.near(o.resolve(s.pos)) : new B(
|
|
1062
1064
|
o.resolve(r.pos),
|
|
1063
1065
|
o.resolve(s.pos)
|
|
1064
1066
|
);
|
|
@@ -1067,9 +1069,9 @@ class P extends L {
|
|
|
1067
1069
|
return { type: "multiple-node", anchor: this.anchor, head: this.head };
|
|
1068
1070
|
}
|
|
1069
1071
|
}
|
|
1070
|
-
L.jsonID("multiple-node",
|
|
1072
|
+
L.jsonID("multiple-node", B);
|
|
1071
1073
|
let x;
|
|
1072
|
-
function
|
|
1074
|
+
function Nt(n, e) {
|
|
1073
1075
|
let o, t;
|
|
1074
1076
|
const r = e.resolve(n.from).node().type.spec.group === "blockContent", s = e.resolve(n.to).node().type.spec.group === "blockContent", i = Math.min(n.$anchor.depth, n.$head.depth);
|
|
1075
1077
|
if (r && s) {
|
|
@@ -1079,7 +1081,7 @@ function Dt(n, e) {
|
|
|
1079
1081
|
o = n.from, t = n.to;
|
|
1080
1082
|
return { from: o, to: t };
|
|
1081
1083
|
}
|
|
1082
|
-
function
|
|
1084
|
+
function ne(n, e, o = e) {
|
|
1083
1085
|
e === o && (o += n.state.doc.resolve(e + 1).node().nodeSize);
|
|
1084
1086
|
const t = n.domAtPos(e).node.cloneNode(!0), r = n.domAtPos(e).node, s = (h, f) => Array.prototype.indexOf.call(h.children, f), i = s(
|
|
1085
1087
|
r,
|
|
@@ -1092,7 +1094,7 @@ function re(n, e, o = e) {
|
|
|
1092
1094
|
);
|
|
1093
1095
|
for (let h = r.childElementCount - 1; h >= 0; h--)
|
|
1094
1096
|
(h > a || h < i) && t.removeChild(t.children[h]);
|
|
1095
|
-
|
|
1097
|
+
xe(n.root), x = t;
|
|
1096
1098
|
const c = x.getElementsByTagName("iframe");
|
|
1097
1099
|
for (let h = 0; h < c.length; h++) {
|
|
1098
1100
|
const f = c[h], u = f.parentElement;
|
|
@@ -1103,10 +1105,10 @@ function re(n, e, o = e) {
|
|
|
1103
1105
|
).join(" ");
|
|
1104
1106
|
x.className = x.className + " bn-drag-preview " + m, n.root instanceof ShadowRoot ? n.root.appendChild(x) : n.root.body.appendChild(x);
|
|
1105
1107
|
}
|
|
1106
|
-
function
|
|
1108
|
+
function xe(n) {
|
|
1107
1109
|
x !== void 0 && (n instanceof ShadowRoot ? n.removeChild(x) : n.body.removeChild(x), x = void 0);
|
|
1108
1110
|
}
|
|
1109
|
-
function
|
|
1111
|
+
function Rt(n, e, o) {
|
|
1110
1112
|
if (!n.dataTransfer || o.headless)
|
|
1111
1113
|
return;
|
|
1112
1114
|
const t = o.prosemirrorView, r = he(e.id, t.state.doc);
|
|
@@ -1114,22 +1116,22 @@ function At(n, e, o) {
|
|
|
1114
1116
|
throw new Error(`Block with ID ${e.id} not found`);
|
|
1115
1117
|
const s = r.posBeforeNode;
|
|
1116
1118
|
if (s != null) {
|
|
1117
|
-
const i = t.state.selection, a = t.state.doc, { from: c, to: l } =
|
|
1119
|
+
const i = t.state.selection, a = t.state.doc, { from: c, to: l } = Nt(i, a), m = c <= s && s < l, h = i.$anchor.node() !== i.$head.node() || i instanceof B;
|
|
1118
1120
|
m && h ? (t.dispatch(
|
|
1119
|
-
t.state.tr.setSelection(
|
|
1120
|
-
),
|
|
1121
|
-
t.state.tr.setSelection(
|
|
1122
|
-
),
|
|
1123
|
-
const f = t.state.selection.content(), u = o.pmSchema, g = t.serializeForClipboard(f).dom.innerHTML, d =
|
|
1121
|
+
t.state.tr.setSelection(B.create(a, c, l))
|
|
1122
|
+
), ne(t, c, l)) : (t.dispatch(
|
|
1123
|
+
t.state.tr.setSelection(ae.create(t.state.doc, s))
|
|
1124
|
+
), ne(t, s));
|
|
1125
|
+
const f = t.state.selection.content(), u = o.pmSchema, g = t.serializeForClipboard(f).dom.innerHTML, d = ve(u, o), p = Bt(f.content), w = d.exportBlocks(p, {}), y = ke(w);
|
|
1124
1126
|
n.dataTransfer.clearData(), n.dataTransfer.setData("blocknote/html", g), n.dataTransfer.setData("text/html", w), n.dataTransfer.setData("text/plain", y), n.dataTransfer.effectAllowed = "move", n.dataTransfer.setDragImage(x, 0, 0);
|
|
1125
1127
|
}
|
|
1126
1128
|
}
|
|
1127
|
-
const
|
|
1128
|
-
function
|
|
1129
|
+
const re = 250;
|
|
1130
|
+
function U(n, e, o = !0) {
|
|
1129
1131
|
const t = n.root.elementsFromPoint(e.left, e.top);
|
|
1130
1132
|
for (const r of t)
|
|
1131
1133
|
if (n.dom.contains(r))
|
|
1132
|
-
return o && r.closest("[data-node-type=columnList]") ?
|
|
1134
|
+
return o && r.closest("[data-node-type=columnList]") ? U(
|
|
1133
1135
|
n,
|
|
1134
1136
|
{
|
|
1135
1137
|
// TODO can we do better than this?
|
|
@@ -1138,9 +1140,9 @@ function $(n, e, o = !0) {
|
|
|
1138
1140
|
top: e.top
|
|
1139
1141
|
},
|
|
1140
1142
|
!1
|
|
1141
|
-
) :
|
|
1143
|
+
) : Se(r, n);
|
|
1142
1144
|
}
|
|
1143
|
-
function
|
|
1145
|
+
function Vt(n, e) {
|
|
1144
1146
|
if (!e.dom.firstChild)
|
|
1145
1147
|
return;
|
|
1146
1148
|
const o = e.dom.firstChild.getBoundingClientRect(), t = {
|
|
@@ -1150,11 +1152,11 @@ function Mt(n, e) {
|
|
|
1150
1152
|
o.right - 10
|
|
1151
1153
|
),
|
|
1152
1154
|
top: n.y
|
|
1153
|
-
}, r =
|
|
1155
|
+
}, r = U(e, t);
|
|
1154
1156
|
if (!r)
|
|
1155
1157
|
return;
|
|
1156
1158
|
const s = r.node.getBoundingClientRect();
|
|
1157
|
-
return
|
|
1159
|
+
return U(
|
|
1158
1160
|
e,
|
|
1159
1161
|
{
|
|
1160
1162
|
left: s.right - 10,
|
|
@@ -1163,7 +1165,7 @@ function Mt(n, e) {
|
|
|
1163
1165
|
!1
|
|
1164
1166
|
);
|
|
1165
1167
|
}
|
|
1166
|
-
class
|
|
1168
|
+
class Ht {
|
|
1167
1169
|
constructor(e, o, t) {
|
|
1168
1170
|
b(this, "state");
|
|
1169
1171
|
b(this, "emitUpdate");
|
|
@@ -1182,11 +1184,11 @@ class Lt {
|
|
|
1182
1184
|
clientX: this.mousePos.x,
|
|
1183
1185
|
clientY: this.mousePos.y
|
|
1184
1186
|
});
|
|
1185
|
-
if ((e == null ? void 0 : e.element) !== this.pmView.dom || e.distance >
|
|
1187
|
+
if ((e == null ? void 0 : e.element) !== this.pmView.dom || e.distance > re) {
|
|
1186
1188
|
(t = this.state) != null && t.show && (this.state.show = !1, this.updateState(this.state));
|
|
1187
1189
|
return;
|
|
1188
1190
|
}
|
|
1189
|
-
const o =
|
|
1191
|
+
const o = Vt(this.mousePos, this.pmView);
|
|
1190
1192
|
if (!o || !this.editor.isEditable) {
|
|
1191
1193
|
(r = this.state) != null && r.show && (this.state.show = !1, this.updateState(this.state));
|
|
1192
1194
|
return;
|
|
@@ -1238,11 +1240,11 @@ class Lt {
|
|
|
1238
1240
|
return;
|
|
1239
1241
|
const t = document.createElement("div");
|
|
1240
1242
|
t.innerHTML = o;
|
|
1241
|
-
const s =
|
|
1243
|
+
const s = Ze.fromSchema(this.pmView.state.schema).parse(t, {
|
|
1242
1244
|
topNode: this.pmView.state.schema.nodes.blockGroup.create()
|
|
1243
1245
|
});
|
|
1244
1246
|
this.pmView.dragging = {
|
|
1245
|
-
slice: new
|
|
1247
|
+
slice: new et(s.content, 0, 0),
|
|
1246
1248
|
move: !0
|
|
1247
1249
|
};
|
|
1248
1250
|
});
|
|
@@ -1305,7 +1307,7 @@ class Lt {
|
|
|
1305
1307
|
b(this, "getDragEventContext", (e) => {
|
|
1306
1308
|
var c;
|
|
1307
1309
|
const o = !((c = e.dataTransfer) != null && c.types.includes("blocknote/html")) && !!this.pmView.dragging, t = !!this.isDragOrigin, r = o || t, s = this.findClosestEditorElement(e);
|
|
1308
|
-
if (!s || s.distance >
|
|
1310
|
+
if (!s || s.distance > re)
|
|
1309
1311
|
return;
|
|
1310
1312
|
const i = s.element === this.pmView.dom, a = i && s.distance === 0;
|
|
1311
1313
|
if (!(!i && !r))
|
|
@@ -1342,7 +1344,7 @@ class Lt {
|
|
|
1342
1344
|
return;
|
|
1343
1345
|
this.pmView.dispatch(
|
|
1344
1346
|
this.pmView.state.tr.setSelection(
|
|
1345
|
-
|
|
1347
|
+
je.create(
|
|
1346
1348
|
this.pmView.state.tr.doc,
|
|
1347
1349
|
this.pmView.state.tr.selection.anchor
|
|
1348
1350
|
)
|
|
@@ -1457,7 +1459,7 @@ class Lt {
|
|
|
1457
1459
|
);
|
|
1458
1460
|
}
|
|
1459
1461
|
}
|
|
1460
|
-
const
|
|
1462
|
+
const Ft = new me("SideMenuPlugin"), Bo = k(({ editor: n }) => {
|
|
1461
1463
|
let e;
|
|
1462
1464
|
const o = H(
|
|
1463
1465
|
void 0
|
|
@@ -1466,9 +1468,9 @@ const Nt = new T("SideMenuPlugin"), ko = k(({ editor: n }) => {
|
|
|
1466
1468
|
key: "sideMenu",
|
|
1467
1469
|
store: o,
|
|
1468
1470
|
prosemirrorPlugins: [
|
|
1469
|
-
new
|
|
1470
|
-
key:
|
|
1471
|
-
view: (t) => (e = new
|
|
1471
|
+
new pe({
|
|
1472
|
+
key: Ft,
|
|
1473
|
+
view: (t) => (e = new Ht(n, t, (r) => {
|
|
1472
1474
|
o.setState({ ...r });
|
|
1473
1475
|
}), e)
|
|
1474
1476
|
})
|
|
@@ -1477,13 +1479,13 @@ const Nt = new T("SideMenuPlugin"), ko = k(({ editor: n }) => {
|
|
|
1477
1479
|
* Handles drag & drop events for blocks.
|
|
1478
1480
|
*/
|
|
1479
1481
|
blockDragStart(t, r) {
|
|
1480
|
-
e && (e.isDragOrigin = !0),
|
|
1482
|
+
e && (e.isDragOrigin = !0), Rt(t, r, n);
|
|
1481
1483
|
},
|
|
1482
1484
|
/**
|
|
1483
1485
|
* Handles drag & drop events for blocks.
|
|
1484
1486
|
*/
|
|
1485
1487
|
blockDragEnd() {
|
|
1486
|
-
|
|
1488
|
+
xe(n.prosemirrorView.root), e && (e.isDragOrigin = !1), n.blur();
|
|
1487
1489
|
},
|
|
1488
1490
|
/**
|
|
1489
1491
|
* Freezes the side menu. When frozen, the side menu will stay
|
|
@@ -1504,16 +1506,16 @@ const Nt = new T("SideMenuPlugin"), ko = k(({ editor: n }) => {
|
|
|
1504
1506
|
};
|
|
1505
1507
|
});
|
|
1506
1508
|
let C;
|
|
1507
|
-
function
|
|
1509
|
+
function se(n) {
|
|
1508
1510
|
C || (C = document.createElement("div"), C.innerHTML = "_", C.style.opacity = "0", C.style.height = "1px", C.style.width = "1px", n instanceof Document ? n.body.appendChild(C) : n.appendChild(C));
|
|
1509
1511
|
}
|
|
1510
|
-
function
|
|
1512
|
+
function $t(n) {
|
|
1511
1513
|
C && (n instanceof Document ? n.body.removeChild(C) : n.removeChild(C), C = void 0);
|
|
1512
1514
|
}
|
|
1513
1515
|
function M(n) {
|
|
1514
1516
|
return Array.prototype.indexOf.call(n.parentElement.childNodes, n);
|
|
1515
1517
|
}
|
|
1516
|
-
function
|
|
1518
|
+
function Ut(n) {
|
|
1517
1519
|
let e = n;
|
|
1518
1520
|
for (; e && e.nodeName !== "TD" && e.nodeName !== "TH" && !e.classList.contains("tableWrapper"); ) {
|
|
1519
1521
|
if (e.classList.contains("ProseMirror"))
|
|
@@ -1533,12 +1535,12 @@ function Vt(n) {
|
|
|
1533
1535
|
tbodyNode: e.querySelector("tbody")
|
|
1534
1536
|
};
|
|
1535
1537
|
}
|
|
1536
|
-
function
|
|
1538
|
+
function _t(n, e) {
|
|
1537
1539
|
const o = e.querySelectorAll(n);
|
|
1538
1540
|
for (let t = 0; t < o.length; t++)
|
|
1539
1541
|
o[t].style.visibility = "hidden";
|
|
1540
1542
|
}
|
|
1541
|
-
class
|
|
1543
|
+
class zt {
|
|
1542
1544
|
constructor(e, o, t) {
|
|
1543
1545
|
b(this, "state");
|
|
1544
1546
|
b(this, "emitUpdate");
|
|
@@ -1558,7 +1560,7 @@ class Ft {
|
|
|
1558
1560
|
var l, m, h, f, u, g, d;
|
|
1559
1561
|
if (this.menuFrozen || this.mouseState === "selecting" || !(e.target instanceof Element) || !this.pmView.dom.contains(e.target))
|
|
1560
1562
|
return;
|
|
1561
|
-
const o =
|
|
1563
|
+
const o = Ut(e.target);
|
|
1562
1564
|
if ((o == null ? void 0 : o.type) === "cell" && this.mouseState === "down" && !((l = this.state) != null && l.draggingState)) {
|
|
1563
1565
|
this.mouseState = "selecting", (m = this.state) != null && m.show && (this.state.show = !1, this.state.showAddOrRemoveRowsButton = !1, this.state.showAddOrRemoveColumnsButton = !1, this.emitUpdate());
|
|
1564
1566
|
return;
|
|
@@ -1569,7 +1571,7 @@ class Ft {
|
|
|
1569
1571
|
}
|
|
1570
1572
|
if (!o.tbodyNode)
|
|
1571
1573
|
return;
|
|
1572
|
-
const t = o.tbodyNode.getBoundingClientRect(), r =
|
|
1574
|
+
const t = o.tbodyNode.getBoundingClientRect(), r = Se(o.domNode, this.pmView);
|
|
1573
1575
|
if (!r)
|
|
1574
1576
|
return;
|
|
1575
1577
|
this.tableElement = r.node;
|
|
@@ -1586,7 +1588,7 @@ class Ft {
|
|
|
1586
1588
|
this.editor.schema.inlineContentSchema,
|
|
1587
1589
|
this.editor.schema.styleSchema
|
|
1588
1590
|
);
|
|
1589
|
-
if (
|
|
1591
|
+
if ($e(this.editor, "table") && (this.tablePos = i.posBeforeNode + 1, s = a), !s)
|
|
1590
1592
|
return;
|
|
1591
1593
|
this.tableId = r.id;
|
|
1592
1594
|
const c = (f = o.domNode.closest(".tableWrapper")) == null ? void 0 : f.querySelector(".table-widgets-container");
|
|
@@ -1628,7 +1630,7 @@ class Ft {
|
|
|
1628
1630
|
var f;
|
|
1629
1631
|
if (((f = this.state) == null ? void 0 : f.draggingState) === void 0)
|
|
1630
1632
|
return;
|
|
1631
|
-
e.preventDefault(), e.dataTransfer.dropEffect = "move",
|
|
1633
|
+
e.preventDefault(), e.dataTransfer.dropEffect = "move", _t(
|
|
1632
1634
|
".prosemirror-dropcursor-block, .prosemirror-dropcursor-inline",
|
|
1633
1635
|
this.pmView.root
|
|
1634
1636
|
);
|
|
@@ -1669,7 +1671,7 @@ class Ft {
|
|
|
1669
1671
|
r
|
|
1670
1672
|
))
|
|
1671
1673
|
return !1;
|
|
1672
|
-
const i =
|
|
1674
|
+
const i = Le(
|
|
1673
1675
|
this.state.block,
|
|
1674
1676
|
o.originalIndex,
|
|
1675
1677
|
r
|
|
@@ -1688,7 +1690,7 @@ class Ft {
|
|
|
1688
1690
|
t
|
|
1689
1691
|
))
|
|
1690
1692
|
return !1;
|
|
1691
|
-
const i =
|
|
1693
|
+
const i = Ne(
|
|
1692
1694
|
this.state.block,
|
|
1693
1695
|
o.originalIndex,
|
|
1694
1696
|
t
|
|
@@ -1727,7 +1729,7 @@ class Ft {
|
|
|
1727
1729
|
this.state.show = !1, this.state.showAddOrRemoveRowsButton = !1, this.state.showAddOrRemoveColumnsButton = !1, this.emitUpdate();
|
|
1728
1730
|
return;
|
|
1729
1731
|
}
|
|
1730
|
-
const { height: e, width: o } =
|
|
1732
|
+
const { height: e, width: o } = Re(
|
|
1731
1733
|
this.state.block
|
|
1732
1734
|
);
|
|
1733
1735
|
this.state.rowIndex !== void 0 && this.state.colIndex !== void 0 && (this.state.rowIndex >= e && (this.state.rowIndex = e - 1), this.state.colIndex >= o && (this.state.colIndex = o - 1));
|
|
@@ -1752,16 +1754,16 @@ class Ft {
|
|
|
1752
1754
|
);
|
|
1753
1755
|
}
|
|
1754
1756
|
}
|
|
1755
|
-
const D = new
|
|
1757
|
+
const D = new P("TableHandlesPlugin"), To = k(({ editor: n }) => {
|
|
1756
1758
|
let e;
|
|
1757
1759
|
const o = H(void 0);
|
|
1758
1760
|
return {
|
|
1759
1761
|
key: "tableHandles",
|
|
1760
1762
|
store: o,
|
|
1761
1763
|
prosemirrorPlugins: [
|
|
1762
|
-
new
|
|
1764
|
+
new T({
|
|
1763
1765
|
key: D,
|
|
1764
|
-
view: (t) => (e = new
|
|
1766
|
+
view: (t) => (e = new zt(n, t, (r) => {
|
|
1765
1767
|
o.setState({
|
|
1766
1768
|
...r,
|
|
1767
1769
|
draggingState: r.draggingState ? { ...r.draggingState } : void 0
|
|
@@ -1780,7 +1782,7 @@ const D = new T("TableHandlesPlugin"), Co = k(({ editor: n }) => {
|
|
|
1780
1782
|
if (r === c || !i || l === "row" && !ce(i, c, r) || l === "col" && !de(i, c, r))
|
|
1781
1783
|
return V.create(t.doc, s);
|
|
1782
1784
|
const m = t.doc.resolve(e.tablePos + 1);
|
|
1783
|
-
return e.state.draggingState.draggedCellOrientation === "row" ?
|
|
1785
|
+
return e.state.draggingState.draggedCellOrientation === "row" ? W(
|
|
1784
1786
|
e.state.block,
|
|
1785
1787
|
r
|
|
1786
1788
|
).forEach(({ row: f, col: u }) => {
|
|
@@ -1796,7 +1798,7 @@ const D = new T("TableHandlesPlugin"), Co = k(({ editor: n }) => {
|
|
|
1796
1798
|
return y.className = "bn-table-drop-cursor", y.style.left = "0", y.style.right = "0", r > c ? y.style.bottom = "-2px" : y.style.top = "-3px", y.style.height = "4px", y;
|
|
1797
1799
|
})
|
|
1798
1800
|
);
|
|
1799
|
-
}) :
|
|
1801
|
+
}) : q(
|
|
1800
1802
|
e.state.block,
|
|
1801
1803
|
r
|
|
1802
1804
|
).forEach(({ row: f, col: u }) => {
|
|
@@ -1837,7 +1839,7 @@ const D = new T("TableHandlesPlugin"), Co = k(({ editor: n }) => {
|
|
|
1837
1839
|
newIndex: e.state.colIndex,
|
|
1838
1840
|
tablePos: e.tablePos
|
|
1839
1841
|
})
|
|
1840
|
-
), !n.headless && (
|
|
1842
|
+
), !n.headless && (se(n.prosemirrorView.root), t.dataTransfer.setDragImage(C, 0, 0), t.dataTransfer.effectAllowed = "move");
|
|
1841
1843
|
},
|
|
1842
1844
|
/**
|
|
1843
1845
|
* Callback that should be set on the `dragStart` event for whichever element
|
|
@@ -1859,7 +1861,7 @@ const D = new T("TableHandlesPlugin"), Co = k(({ editor: n }) => {
|
|
|
1859
1861
|
newIndex: e.state.rowIndex,
|
|
1860
1862
|
tablePos: e.tablePos
|
|
1861
1863
|
})
|
|
1862
|
-
), !n.headless && (
|
|
1864
|
+
), !n.headless && (se(n.prosemirrorView.root), t.dataTransfer.setDragImage(C, 0, 0), t.dataTransfer.effectAllowed = "copyMove");
|
|
1863
1865
|
},
|
|
1864
1866
|
/**
|
|
1865
1867
|
* Callback that should be set on the `dragEnd` event for both the element
|
|
@@ -1870,7 +1872,7 @@ const D = new T("TableHandlesPlugin"), Co = k(({ editor: n }) => {
|
|
|
1870
1872
|
throw new Error(
|
|
1871
1873
|
"Attempted to drag table row, but no table block was hovered prior."
|
|
1872
1874
|
);
|
|
1873
|
-
e.state.draggingState = void 0, e.emitUpdate(), n.transact((t) => t.setMeta(D, null)), !n.headless &&
|
|
1875
|
+
e.state.draggingState = void 0, e.emitUpdate(), n.transact((t) => t.setMeta(D, null)), !n.headless && $t(n.prosemirrorView.root);
|
|
1874
1876
|
},
|
|
1875
1877
|
/**
|
|
1876
1878
|
* Freezes the drag handles. When frozen, they will stay attached to the same
|
|
@@ -1887,13 +1889,13 @@ const D = new T("TableHandlesPlugin"), Co = k(({ editor: n }) => {
|
|
|
1887
1889
|
e.menuFrozen = !1;
|
|
1888
1890
|
},
|
|
1889
1891
|
getCellsAtRowHandle(t, r) {
|
|
1890
|
-
return
|
|
1892
|
+
return W(t, r);
|
|
1891
1893
|
},
|
|
1892
1894
|
/**
|
|
1893
1895
|
* Get all the cells in a column of the table block.
|
|
1894
1896
|
*/
|
|
1895
1897
|
getCellsAtColumnHandle(t, r) {
|
|
1896
|
-
return
|
|
1898
|
+
return q(t, r);
|
|
1897
1899
|
},
|
|
1898
1900
|
/**
|
|
1899
1901
|
* Sets the selection to the given cell or a range of cells.
|
|
@@ -1914,7 +1916,7 @@ const D = new T("TableHandlesPlugin"), Co = k(({ editor: n }) => {
|
|
|
1914
1916
|
l.posAtIndex(s.col)
|
|
1915
1917
|
), h = t.tr;
|
|
1916
1918
|
return h.setSelection(
|
|
1917
|
-
new
|
|
1919
|
+
new wt(c, m)
|
|
1918
1920
|
), t.apply(h);
|
|
1919
1921
|
},
|
|
1920
1922
|
/**
|
|
@@ -1926,7 +1928,7 @@ const D = new T("TableHandlesPlugin"), Co = k(({ editor: n }) => {
|
|
|
1926
1928
|
s,
|
|
1927
1929
|
r.orientation === "row" ? { row: t, col: 0 } : { row: 0, col: t }
|
|
1928
1930
|
);
|
|
1929
|
-
return r.orientation === "row" ? r.side === "above" ?
|
|
1931
|
+
return r.orientation === "row" ? r.side === "above" ? mt(a, i) : pt(a, i) : r.side === "left" ? ft(a, i) : gt(a, i);
|
|
1930
1932
|
});
|
|
1931
1933
|
},
|
|
1932
1934
|
/**
|
|
@@ -1938,13 +1940,13 @@ const D = new T("TableHandlesPlugin"), Co = k(({ editor: n }) => {
|
|
|
1938
1940
|
row: t,
|
|
1939
1941
|
col: 0
|
|
1940
1942
|
});
|
|
1941
|
-
return
|
|
1943
|
+
return ut(a, i);
|
|
1942
1944
|
}) : n.exec((s, i) => {
|
|
1943
1945
|
const a = this.setCellSelection(s, {
|
|
1944
1946
|
row: 0,
|
|
1945
1947
|
col: t
|
|
1946
1948
|
});
|
|
1947
|
-
return
|
|
1949
|
+
return ht(a, i);
|
|
1948
1950
|
});
|
|
1949
1951
|
},
|
|
1950
1952
|
/**
|
|
@@ -1957,7 +1959,7 @@ const D = new T("TableHandlesPlugin"), Co = k(({ editor: n }) => {
|
|
|
1957
1959
|
t.relativeStartCell,
|
|
1958
1960
|
t.relativeEndCell
|
|
1959
1961
|
) : r;
|
|
1960
|
-
return
|
|
1962
|
+
return dt(i, s);
|
|
1961
1963
|
});
|
|
1962
1964
|
},
|
|
1963
1965
|
/**
|
|
@@ -1967,7 +1969,7 @@ const D = new T("TableHandlesPlugin"), Co = k(({ editor: n }) => {
|
|
|
1967
1969
|
splitCell(t) {
|
|
1968
1970
|
return n.exec((r, s) => {
|
|
1969
1971
|
const i = t ? this.setCellSelection(r, t) : r;
|
|
1970
|
-
return
|
|
1972
|
+
return ct(i, s);
|
|
1971
1973
|
});
|
|
1972
1974
|
},
|
|
1973
1975
|
/**
|
|
@@ -1978,7 +1980,7 @@ const D = new T("TableHandlesPlugin"), Co = k(({ editor: n }) => {
|
|
|
1978
1980
|
return n.transact((t) => {
|
|
1979
1981
|
const r = t.selection;
|
|
1980
1982
|
let s = r.$from, i = r.$to;
|
|
1981
|
-
if (
|
|
1983
|
+
if (J(r)) {
|
|
1982
1984
|
const { ranges: d } = r;
|
|
1983
1985
|
d.forEach((p) => {
|
|
1984
1986
|
s = p.$from.min(s ?? p.$from), i = p.$to.max(i ?? p.$to);
|
|
@@ -2015,29 +2017,29 @@ const D = new T("TableHandlesPlugin"), Co = k(({ editor: n }) => {
|
|
|
2015
2017
|
*/
|
|
2016
2018
|
getMergeDirection(t) {
|
|
2017
2019
|
return n.transact((r) => {
|
|
2018
|
-
const s =
|
|
2020
|
+
const s = J(r.selection) ? r.selection : void 0;
|
|
2019
2021
|
if (!s || !t || // Only offer the merge button if there is more than one cell selected.
|
|
2020
2022
|
s.ranges.length <= 1)
|
|
2021
2023
|
return;
|
|
2022
2024
|
const i = this.getCellSelection();
|
|
2023
2025
|
if (i)
|
|
2024
|
-
return
|
|
2026
|
+
return Fe(i.from, i.to, t) ? "vertical" : "horizontal";
|
|
2025
2027
|
});
|
|
2026
2028
|
},
|
|
2027
2029
|
cropEmptyRowsOrColumns(t, r) {
|
|
2028
|
-
return
|
|
2030
|
+
return He(t, r);
|
|
2029
2031
|
},
|
|
2030
2032
|
addRowsOrColumns(t, r, s) {
|
|
2031
|
-
return
|
|
2033
|
+
return Ve(t, r, s);
|
|
2032
2034
|
}
|
|
2033
2035
|
};
|
|
2034
|
-
}),
|
|
2036
|
+
}), ie = new P("trailingNode"), Po = k(() => ({
|
|
2035
2037
|
key: "trailingNode",
|
|
2036
2038
|
prosemirrorPlugins: [
|
|
2037
|
-
new
|
|
2038
|
-
key:
|
|
2039
|
+
new T({
|
|
2040
|
+
key: ie,
|
|
2039
2041
|
appendTransaction: (n, e, o) => {
|
|
2040
|
-
const { doc: t, tr: r, schema: s } = o, i =
|
|
2042
|
+
const { doc: t, tr: r, schema: s } = o, i = ie.getState(o), a = t.content.size - 2, c = s.nodes.blockContainer, l = s.nodes.paragraph;
|
|
2041
2043
|
if (i)
|
|
2042
2044
|
return r.insert(
|
|
2043
2045
|
a,
|
|
@@ -2065,32 +2067,32 @@ const D = new T("TableHandlesPlugin"), Co = k(({ editor: n }) => {
|
|
|
2065
2067
|
]
|
|
2066
2068
|
}));
|
|
2067
2069
|
export {
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2070
|
+
fo as B,
|
|
2071
|
+
yo as D,
|
|
2072
|
+
go as F,
|
|
2073
|
+
vo as H,
|
|
2074
|
+
ko as L,
|
|
2075
|
+
xo as N,
|
|
2076
|
+
Eo as P,
|
|
2077
|
+
wo as S,
|
|
2078
|
+
zt as T,
|
|
2079
|
+
Co as V,
|
|
2080
|
+
te as Y,
|
|
2079
2081
|
F as a,
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2082
|
+
$ as b,
|
|
2083
|
+
bo as c,
|
|
2084
|
+
So as d,
|
|
2085
|
+
Io as e,
|
|
2086
|
+
Ht as f,
|
|
2087
|
+
Bo as g,
|
|
2088
|
+
To as h,
|
|
2089
|
+
Po as i,
|
|
2090
|
+
St as j,
|
|
2091
|
+
ve as k,
|
|
2092
|
+
po as l,
|
|
2093
|
+
ke as m,
|
|
2094
|
+
Bt as n,
|
|
2095
|
+
Ft as s,
|
|
2094
2096
|
D as t
|
|
2095
2097
|
};
|
|
2096
|
-
//# sourceMappingURL=TrailingNode-
|
|
2098
|
+
//# sourceMappingURL=TrailingNode-B_zPMWxw.js.map
|