@blocknote/mantine 0.31.2 → 0.31.3
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-mantine.cjs +1 -1
- package/dist/blocknote-mantine.cjs.map +1 -1
- package/dist/blocknote-mantine.js +140 -140
- package/dist/blocknote-mantine.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/webpack-stats.json +1 -1
- package/package.json +3 -3
- package/src/comments/Comment.tsx +3 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as s, jsxs as v } from "react/jsx-runtime";
|
|
2
2
|
import { assertEmpty as d, isSafari as B, mergeCSSClasses as z, COLORS_DEFAULT as ae, COLORS_DARK_MODE_DEFAULT as le } from "@blocknote/core";
|
|
3
|
-
import { mergeRefs as W,
|
|
4
|
-
import { Button as N, ActionIcon as j, Tooltip as Z, Stack as $, Text as w, Group as b, Chip as
|
|
5
|
-
import T, { forwardRef as m, useState as A, useRef as P, useEffect as _, useContext as
|
|
6
|
-
import { useHover as
|
|
3
|
+
import { mergeRefs as W, useDictionary as ce, FormattingToolbarController as ue, getFormattingToolbarItems as de, FormattingToolbar as me, elementOverflow as q, useBlockNoteContext as fe, usePrefersColorScheme as ge, ComponentsContext as he, BlockNoteViewRaw as be } from "@blocknote/react";
|
|
4
|
+
import { Button as N, ActionIcon as j, Tooltip as Z, Stack as $, Text as w, Group as b, Chip as pe, Divider as ve, Card as J, Skeleton as V, Avatar as Se, TextInput as Q, Menu as S, CheckIcon as X, Tabs as M, LoadingOverlay as ye, FileInput as xe, PopoverDropdown as Ce, PopoverTarget as we, Popover as Te, Badge as Ne, Loader as Y, Flex as ke, MantineProvider as Pe } from "@mantine/core";
|
|
5
|
+
import T, { forwardRef as m, useState as A, useRef as P, useEffect as _, useContext as Me, createContext as Fe, useCallback as E } from "react";
|
|
6
|
+
import { useHover as Oe, useFocusWithin as ee, mergeRefs as R, useFocusTrap as Re } from "@mantine/hooks";
|
|
7
7
|
const te = (e, n, t = !1) => {
|
|
8
8
|
const o = [];
|
|
9
9
|
function r(i, l = "--bn") {
|
|
@@ -13,7 +13,7 @@ const te = (e, n, t = !1) => {
|
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
return r(e), o;
|
|
16
|
-
}, G = (e, n) => te(e, n),
|
|
16
|
+
}, G = (e, n) => te(e, n), De = {
|
|
17
17
|
colors: {
|
|
18
18
|
editor: {
|
|
19
19
|
text: void 0,
|
|
@@ -83,10 +83,10 @@ const te = (e, n, t = !1) => {
|
|
|
83
83
|
},
|
|
84
84
|
borderRadius: void 0,
|
|
85
85
|
fontFamily: void 0
|
|
86
|
-
}, Ie = (e) => te(
|
|
86
|
+
}, Ie = (e) => te(De, e, !0), ne = (e) => /* @__PURE__ */ v($, { gap: 0, className: "bn-tooltip", children: [
|
|
87
87
|
/* @__PURE__ */ s(w, { size: "sm", lineClamp: 5, children: e.mainTooltip }),
|
|
88
88
|
e.secondaryTooltip && /* @__PURE__ */ s(w, { size: "xs", lineClamp: 5, children: e.secondaryTooltip })
|
|
89
|
-
] }),
|
|
89
|
+
] }), D = m(
|
|
90
90
|
(e, n) => {
|
|
91
91
|
const {
|
|
92
92
|
className: t,
|
|
@@ -161,7 +161,7 @@ const te = (e, n, t = !1) => {
|
|
|
161
161
|
}
|
|
162
162
|
) : k;
|
|
163
163
|
}
|
|
164
|
-
),
|
|
164
|
+
), Le = m((e, n) => {
|
|
165
165
|
const {
|
|
166
166
|
className: t,
|
|
167
167
|
text: o,
|
|
@@ -175,7 +175,7 @@ const te = (e, n, t = !1) => {
|
|
|
175
175
|
} = e;
|
|
176
176
|
d(g, !1);
|
|
177
177
|
const [h, p] = A(!1), C = /* @__PURE__ */ v(
|
|
178
|
-
|
|
178
|
+
pe,
|
|
179
179
|
{
|
|
180
180
|
className: t,
|
|
181
181
|
checked: i === !0,
|
|
@@ -210,10 +210,10 @@ const te = (e, n, t = !1) => {
|
|
|
210
210
|
children: C
|
|
211
211
|
}
|
|
212
212
|
);
|
|
213
|
-
}),
|
|
213
|
+
}), Be = m((e, n) => {
|
|
214
214
|
const { className: t, children: o, ...r } = e;
|
|
215
215
|
return d(r), /* @__PURE__ */ s(b, { className: t, ref: n, children: o });
|
|
216
|
-
}),
|
|
216
|
+
}), Ee = m((e, n) => {
|
|
217
217
|
const {
|
|
218
218
|
className: t,
|
|
219
219
|
children: o,
|
|
@@ -246,27 +246,27 @@ const te = (e, n, t = !1) => {
|
|
|
246
246
|
]
|
|
247
247
|
}
|
|
248
248
|
);
|
|
249
|
-
}),
|
|
249
|
+
}), ze = m((e, n) => {
|
|
250
250
|
const { className: t, children: o, ...r } = e;
|
|
251
251
|
return d(r, !1), /* @__PURE__ */ s(J.Section, { className: t, ref: n, children: o });
|
|
252
|
-
}),
|
|
252
|
+
}), je = m((e, n) => {
|
|
253
253
|
const { className: t, children: o, ...r } = e;
|
|
254
254
|
return d(r, !1), /* @__PURE__ */ s(
|
|
255
|
-
|
|
255
|
+
ve,
|
|
256
256
|
{
|
|
257
257
|
className: t,
|
|
258
258
|
label: /* @__PURE__ */ s(w, { children: o }),
|
|
259
259
|
ref: n
|
|
260
260
|
}
|
|
261
261
|
);
|
|
262
|
-
}),
|
|
263
|
-
const { authorInfo: t, timeString: o, edited: r, ...i } = e;
|
|
262
|
+
}), $e = m((e, n) => {
|
|
263
|
+
const { authorInfo: t, timeString: o, edited: r, ...i } = e, l = ce();
|
|
264
264
|
return d(i, !1), t === "loading" ? /* @__PURE__ */ v(b, { children: [
|
|
265
265
|
/* @__PURE__ */ s(V, { height: 24, width: 24 }),
|
|
266
266
|
/* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(V, { height: 12, width: 100 }) })
|
|
267
267
|
] }) : /* @__PURE__ */ v(b, { children: [
|
|
268
268
|
/* @__PURE__ */ s(
|
|
269
|
-
|
|
269
|
+
Se,
|
|
270
270
|
{
|
|
271
271
|
src: t.avatarUrl,
|
|
272
272
|
alt: t.username,
|
|
@@ -280,11 +280,11 @@ const te = (e, n, t = !1) => {
|
|
|
280
280
|
/* @__PURE__ */ v(w, { fz: "xs", c: "dimmed", span: !0, ml: "xs", children: [
|
|
281
281
|
o,
|
|
282
282
|
" ",
|
|
283
|
-
r &&
|
|
283
|
+
r && `(${l.comments.edited})`
|
|
284
284
|
] })
|
|
285
285
|
] })
|
|
286
286
|
] });
|
|
287
|
-
}),
|
|
287
|
+
}), Ae = m((e, n) => {
|
|
288
288
|
const {
|
|
289
289
|
className: t,
|
|
290
290
|
showActions: o,
|
|
@@ -294,7 +294,7 @@ const te = (e, n, t = !1) => {
|
|
|
294
294
|
actions: a,
|
|
295
295
|
children: u,
|
|
296
296
|
...c
|
|
297
|
-
} = e, { hovered: g, ref: h } =
|
|
297
|
+
} = e, { hovered: g, ref: h } = Oe(), { focused: p, ref: C } = ee(), y = W([n, h]);
|
|
298
298
|
return d(c, !1), /* @__PURE__ */ v(b, { pos: "relative", ref: y, className: t, children: [
|
|
299
299
|
a && (o === !0 || o === void 0 || o === "hover" && g || p) ? /* @__PURE__ */ s(
|
|
300
300
|
b,
|
|
@@ -309,13 +309,13 @@ const te = (e, n, t = !1) => {
|
|
|
309
309
|
children: a
|
|
310
310
|
}
|
|
311
311
|
) : null,
|
|
312
|
-
/* @__PURE__ */ s(
|
|
312
|
+
/* @__PURE__ */ s($e, { ...e }),
|
|
313
313
|
u
|
|
314
314
|
] });
|
|
315
|
-
}),
|
|
315
|
+
}), _e = m((e, n) => {
|
|
316
316
|
const { className: t, autoFocus: o, onFocus: r, onBlur: i, editor: l, editable: a, ...u } = e;
|
|
317
317
|
return d(u, !1), /* @__PURE__ */ s(
|
|
318
|
-
|
|
318
|
+
Ot,
|
|
319
319
|
{
|
|
320
320
|
autoFocus: o,
|
|
321
321
|
className: t,
|
|
@@ -330,19 +330,19 @@ const te = (e, n, t = !1) => {
|
|
|
330
330
|
onFocus: r,
|
|
331
331
|
onBlur: i,
|
|
332
332
|
children: /* @__PURE__ */ s(
|
|
333
|
-
|
|
333
|
+
ue,
|
|
334
334
|
{
|
|
335
|
-
formattingToolbar:
|
|
335
|
+
formattingToolbar: Ve
|
|
336
336
|
}
|
|
337
337
|
)
|
|
338
338
|
}
|
|
339
339
|
);
|
|
340
|
-
}),
|
|
341
|
-
const e =
|
|
340
|
+
}), Ve = () => {
|
|
341
|
+
const e = de([]).filter(
|
|
342
342
|
(n) => n.key !== "nestBlockButton" && n.key !== "unnestBlockButton"
|
|
343
343
|
);
|
|
344
|
-
return /* @__PURE__ */ s(
|
|
345
|
-
},
|
|
344
|
+
return /* @__PURE__ */ s(me, { blockTypeSelectItems: [], children: e });
|
|
345
|
+
}, Ge = m((e, n) => {
|
|
346
346
|
const {
|
|
347
347
|
className: t,
|
|
348
348
|
name: o,
|
|
@@ -391,10 +391,10 @@ var oe = {
|
|
|
391
391
|
className: void 0,
|
|
392
392
|
style: void 0,
|
|
393
393
|
attr: void 0
|
|
394
|
-
}, H = T.createContext && /* @__PURE__ */ T.createContext(oe),
|
|
395
|
-
function
|
|
394
|
+
}, H = T.createContext && /* @__PURE__ */ T.createContext(oe), He = ["attr", "size", "title"];
|
|
395
|
+
function Ke(e, n) {
|
|
396
396
|
if (e == null) return {};
|
|
397
|
-
var t =
|
|
397
|
+
var t = Ue(e, n), o, r;
|
|
398
398
|
if (Object.getOwnPropertySymbols) {
|
|
399
399
|
var i = Object.getOwnPropertySymbols(e);
|
|
400
400
|
for (r = 0; r < i.length; r++)
|
|
@@ -402,7 +402,7 @@ function He(e, n) {
|
|
|
402
402
|
}
|
|
403
403
|
return t;
|
|
404
404
|
}
|
|
405
|
-
function
|
|
405
|
+
function Ue(e, n) {
|
|
406
406
|
if (e == null) return {};
|
|
407
407
|
var t = {};
|
|
408
408
|
for (var o in e)
|
|
@@ -436,21 +436,21 @@ function O(e) {
|
|
|
436
436
|
for (var n = 1; n < arguments.length; n++) {
|
|
437
437
|
var t = arguments[n] != null ? arguments[n] : {};
|
|
438
438
|
n % 2 ? K(Object(t), !0).forEach(function(o) {
|
|
439
|
-
|
|
439
|
+
We(e, o, t[o]);
|
|
440
440
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : K(Object(t)).forEach(function(o) {
|
|
441
441
|
Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(t, o));
|
|
442
442
|
});
|
|
443
443
|
}
|
|
444
444
|
return e;
|
|
445
445
|
}
|
|
446
|
-
function
|
|
447
|
-
return n =
|
|
446
|
+
function We(e, n, t) {
|
|
447
|
+
return n = qe(n), n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
|
|
448
448
|
}
|
|
449
|
-
function
|
|
450
|
-
var n =
|
|
449
|
+
function qe(e) {
|
|
450
|
+
var n = Ze(e, "string");
|
|
451
451
|
return typeof n == "symbol" ? n : n + "";
|
|
452
452
|
}
|
|
453
|
-
function
|
|
453
|
+
function Ze(e, n) {
|
|
454
454
|
if (typeof e != "object" || !e) return e;
|
|
455
455
|
var t = e[Symbol.toPrimitive];
|
|
456
456
|
if (t !== void 0) {
|
|
@@ -466,17 +466,17 @@ function re(e) {
|
|
|
466
466
|
}, n.attr), re(n.child)));
|
|
467
467
|
}
|
|
468
468
|
function se(e) {
|
|
469
|
-
return (n) => /* @__PURE__ */ T.createElement(
|
|
469
|
+
return (n) => /* @__PURE__ */ T.createElement(Je, F({
|
|
470
470
|
attr: O({}, e.attr)
|
|
471
471
|
}, n), re(e.child));
|
|
472
472
|
}
|
|
473
|
-
function
|
|
473
|
+
function Je(e) {
|
|
474
474
|
var n = (t) => {
|
|
475
475
|
var {
|
|
476
476
|
attr: o,
|
|
477
477
|
size: r,
|
|
478
478
|
title: i
|
|
479
|
-
} = e, l =
|
|
479
|
+
} = e, l = Ke(e, He), a = r || t.size || "1em", u;
|
|
480
480
|
return t.className && (u = t.className), e.className && (u = (u ? u + " " : "") + e.className), /* @__PURE__ */ T.createElement("svg", F({
|
|
481
481
|
stroke: "currentColor",
|
|
482
482
|
fill: "currentColor",
|
|
@@ -493,13 +493,13 @@ function Ze(e) {
|
|
|
493
493
|
};
|
|
494
494
|
return H !== void 0 ? /* @__PURE__ */ T.createElement(H.Consumer, null, (t) => n(t)) : n(oe);
|
|
495
495
|
}
|
|
496
|
-
function
|
|
496
|
+
function Qe(e) {
|
|
497
497
|
return se({ attr: { viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true" }, child: [{ tag: "path", attr: { fillRule: "evenodd", d: "M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z", clipRule: "evenodd" }, child: [] }] })(e);
|
|
498
498
|
}
|
|
499
|
-
function
|
|
499
|
+
function Xe(e) {
|
|
500
500
|
return se({ attr: { viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true" }, child: [{ tag: "path", attr: { fillRule: "evenodd", d: "M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z", clipRule: "evenodd" }, child: [] }] })(e);
|
|
501
501
|
}
|
|
502
|
-
const ie =
|
|
502
|
+
const ie = Fe(void 0), Ye = m((e, n) => {
|
|
503
503
|
const {
|
|
504
504
|
children: t,
|
|
505
505
|
onOpenChange: o,
|
|
@@ -548,9 +548,9 @@ const ie = Me(void 0), Xe = m((e, n) => {
|
|
|
548
548
|
)
|
|
549
549
|
}
|
|
550
550
|
);
|
|
551
|
-
}),
|
|
551
|
+
}), et = (e) => {
|
|
552
552
|
const { children: n, onOpenChange: t, position: o, sub: r, ...i } = e;
|
|
553
|
-
return d(i), r ? /* @__PURE__ */ s(
|
|
553
|
+
return d(i), r ? /* @__PURE__ */ s(Ye, { ...e }) : /* @__PURE__ */ s(
|
|
554
554
|
S,
|
|
555
555
|
{
|
|
556
556
|
withinPortal: !1,
|
|
@@ -560,7 +560,7 @@ const ie = Me(void 0), Xe = m((e, n) => {
|
|
|
560
560
|
children: n
|
|
561
561
|
}
|
|
562
562
|
);
|
|
563
|
-
},
|
|
563
|
+
}, tt = m((e, n) => {
|
|
564
564
|
const { className: t, children: o, icon: r, checked: i, subTrigger: l, onClick: a, ...u } = e;
|
|
565
565
|
return d(u, !1), l ? /* @__PURE__ */ v(
|
|
566
566
|
"div",
|
|
@@ -572,7 +572,7 @@ const ie = Me(void 0), Xe = m((e, n) => {
|
|
|
572
572
|
...u,
|
|
573
573
|
children: [
|
|
574
574
|
o,
|
|
575
|
-
/* @__PURE__ */ s(
|
|
575
|
+
/* @__PURE__ */ s(Xe, { size: 15 })
|
|
576
576
|
]
|
|
577
577
|
}
|
|
578
578
|
) : /* @__PURE__ */ s(
|
|
@@ -587,7 +587,7 @@ const ie = Me(void 0), Xe = m((e, n) => {
|
|
|
587
587
|
children: o
|
|
588
588
|
}
|
|
589
589
|
);
|
|
590
|
-
}),
|
|
590
|
+
}), nt = (e) => {
|
|
591
591
|
const {
|
|
592
592
|
children: n,
|
|
593
593
|
sub: t,
|
|
@@ -595,7 +595,7 @@ const ie = Me(void 0), Xe = m((e, n) => {
|
|
|
595
595
|
...o
|
|
596
596
|
} = e;
|
|
597
597
|
return d(o), /* @__PURE__ */ s(S.Target, { children: n });
|
|
598
|
-
},
|
|
598
|
+
}, ot = m((e, n) => {
|
|
599
599
|
const {
|
|
600
600
|
className: t,
|
|
601
601
|
children: o,
|
|
@@ -604,7 +604,7 @@ const ie = Me(void 0), Xe = m((e, n) => {
|
|
|
604
604
|
...i
|
|
605
605
|
} = e;
|
|
606
606
|
d(i);
|
|
607
|
-
const l =
|
|
607
|
+
const l = Me(ie);
|
|
608
608
|
return /* @__PURE__ */ s(
|
|
609
609
|
S.Dropdown,
|
|
610
610
|
{
|
|
@@ -615,13 +615,13 @@ const ie = Me(void 0), Xe = m((e, n) => {
|
|
|
615
615
|
children: o
|
|
616
616
|
}
|
|
617
617
|
);
|
|
618
|
-
}),
|
|
618
|
+
}), rt = m((e, n) => {
|
|
619
619
|
const { className: t, ...o } = e;
|
|
620
620
|
return d(o), /* @__PURE__ */ s(S.Divider, { className: t, ref: n });
|
|
621
|
-
}),
|
|
621
|
+
}), st = m((e, n) => {
|
|
622
622
|
const { className: t, children: o, ...r } = e;
|
|
623
623
|
return d(r), /* @__PURE__ */ s(S.Label, { className: t, ref: n, children: o });
|
|
624
|
-
}),
|
|
624
|
+
}), it = m((e, n) => {
|
|
625
625
|
const {
|
|
626
626
|
className: t,
|
|
627
627
|
children: o,
|
|
@@ -661,7 +661,7 @@ const ie = Me(void 0), Xe = m((e, n) => {
|
|
|
661
661
|
children: o
|
|
662
662
|
}
|
|
663
663
|
);
|
|
664
|
-
}),
|
|
664
|
+
}), at = m((e, n) => {
|
|
665
665
|
const {
|
|
666
666
|
className: t,
|
|
667
667
|
tabs: o,
|
|
@@ -678,7 +678,7 @@ const ie = Me(void 0), Xe = m((e, n) => {
|
|
|
678
678
|
defaultValue: r,
|
|
679
679
|
onChange: l,
|
|
680
680
|
children: [
|
|
681
|
-
a && /* @__PURE__ */ s(
|
|
681
|
+
a && /* @__PURE__ */ s(ye, { visible: a }),
|
|
682
682
|
/* @__PURE__ */ s(M.List, { children: o.map((c) => /* @__PURE__ */ s(
|
|
683
683
|
M.Tab,
|
|
684
684
|
{
|
|
@@ -692,7 +692,7 @@ const ie = Me(void 0), Xe = m((e, n) => {
|
|
|
692
692
|
]
|
|
693
693
|
}
|
|
694
694
|
) });
|
|
695
|
-
}),
|
|
695
|
+
}), lt = m((e, n) => {
|
|
696
696
|
const { className: t, children: o, onClick: r, label: i, ...l } = e;
|
|
697
697
|
return d(l), /* @__PURE__ */ s(
|
|
698
698
|
N,
|
|
@@ -706,10 +706,10 @@ const ie = Me(void 0), Xe = m((e, n) => {
|
|
|
706
706
|
children: o
|
|
707
707
|
}
|
|
708
708
|
);
|
|
709
|
-
}),
|
|
709
|
+
}), ct = m((e, n) => {
|
|
710
710
|
const { className: t, accept: o, value: r, placeholder: i, onChange: l, ...a } = e;
|
|
711
711
|
return d(a), /* @__PURE__ */ s(
|
|
712
|
-
|
|
712
|
+
xe,
|
|
713
713
|
{
|
|
714
714
|
size: "xs",
|
|
715
715
|
className: t,
|
|
@@ -721,10 +721,10 @@ const ie = Me(void 0), Xe = m((e, n) => {
|
|
|
721
721
|
...a
|
|
722
722
|
}
|
|
723
723
|
);
|
|
724
|
-
}),
|
|
724
|
+
}), ut = m((e, n) => {
|
|
725
725
|
const { className: t, children: o, ...r } = e;
|
|
726
726
|
return d(r), /* @__PURE__ */ s("div", { className: t, ref: n, children: o });
|
|
727
|
-
}),
|
|
727
|
+
}), dt = m((e, n) => {
|
|
728
728
|
const { className: t, value: o, placeholder: r, onKeyDown: i, onChange: l, ...a } = e;
|
|
729
729
|
return d(a), /* @__PURE__ */ s(
|
|
730
730
|
Q,
|
|
@@ -739,13 +739,13 @@ const ie = Me(void 0), Xe = m((e, n) => {
|
|
|
739
739
|
onChange: l
|
|
740
740
|
}
|
|
741
741
|
);
|
|
742
|
-
}),
|
|
742
|
+
}), mt = (e) => {
|
|
743
743
|
const { opened: n, position: t, children: o, ...r } = e;
|
|
744
|
-
return d(r), /* @__PURE__ */ s(
|
|
745
|
-
},
|
|
744
|
+
return d(r), /* @__PURE__ */ s(Te, { withinPortal: !1, opened: n, position: t, children: o });
|
|
745
|
+
}, ft = (e) => {
|
|
746
746
|
const { children: n, ...t } = e;
|
|
747
|
-
return d(t), /* @__PURE__ */ s(
|
|
748
|
-
},
|
|
747
|
+
return d(t), /* @__PURE__ */ s(we, { children: n });
|
|
748
|
+
}, gt = m((e, n) => {
|
|
749
749
|
const {
|
|
750
750
|
className: t,
|
|
751
751
|
children: o,
|
|
@@ -753,8 +753,8 @@ const ie = Me(void 0), Xe = m((e, n) => {
|
|
|
753
753
|
// unused
|
|
754
754
|
...i
|
|
755
755
|
} = e;
|
|
756
|
-
return d(i), /* @__PURE__ */ s(
|
|
757
|
-
}),
|
|
756
|
+
return d(i), /* @__PURE__ */ s(Ce, { className: t, ref: n, children: o });
|
|
757
|
+
}), ht = m((e, n) => {
|
|
758
758
|
const { className: t, children: o, ...r } = e;
|
|
759
759
|
return d(r, !1), /* @__PURE__ */ s(
|
|
760
760
|
b,
|
|
@@ -767,7 +767,7 @@ const ie = Me(void 0), Xe = m((e, n) => {
|
|
|
767
767
|
children: o
|
|
768
768
|
}
|
|
769
769
|
);
|
|
770
|
-
}),
|
|
770
|
+
}), bt = m((e, n) => {
|
|
771
771
|
const {
|
|
772
772
|
className: t,
|
|
773
773
|
children: o,
|
|
@@ -807,7 +807,7 @@ const ie = Me(void 0), Xe = m((e, n) => {
|
|
|
807
807
|
children: o
|
|
808
808
|
}
|
|
809
809
|
);
|
|
810
|
-
}),
|
|
810
|
+
}), pt = m((e, n) => {
|
|
811
811
|
const { className: t, children: o, id: r, ...i } = e;
|
|
812
812
|
return d(i), /* @__PURE__ */ s(
|
|
813
813
|
$,
|
|
@@ -820,10 +820,10 @@ const ie = Me(void 0), Xe = m((e, n) => {
|
|
|
820
820
|
children: o
|
|
821
821
|
}
|
|
822
822
|
);
|
|
823
|
-
}),
|
|
823
|
+
}), vt = m((e, n) => {
|
|
824
824
|
const { className: t, children: o, ...r } = e;
|
|
825
825
|
return d(r), /* @__PURE__ */ s(b, { className: t, ref: n, children: /* @__PURE__ */ s(b, { className: "bn-mt-suggestion-menu-item-title", children: o }) });
|
|
826
|
-
}),
|
|
826
|
+
}), St = m((e, n) => {
|
|
827
827
|
const { className: t, isSelected: o, onClick: r, item: i, id: l, ...a } = e;
|
|
828
828
|
d(a);
|
|
829
829
|
const u = P(null);
|
|
@@ -865,19 +865,19 @@ const ie = Me(void 0), Xe = m((e, n) => {
|
|
|
865
865
|
{
|
|
866
866
|
"data-position": "right",
|
|
867
867
|
className: "bn-mt-suggestion-menu-item-section",
|
|
868
|
-
children: /* @__PURE__ */ s(
|
|
868
|
+
children: /* @__PURE__ */ s(Ne, { size: "xs", children: i.badge })
|
|
869
869
|
}
|
|
870
870
|
)
|
|
871
871
|
]
|
|
872
872
|
}
|
|
873
873
|
);
|
|
874
|
-
}),
|
|
874
|
+
}), yt = m((e, n) => {
|
|
875
875
|
const { className: t, children: o, ...r } = e;
|
|
876
876
|
return d(r), /* @__PURE__ */ s(b, { className: t, ref: n, children: o });
|
|
877
|
-
}),
|
|
877
|
+
}), xt = m((e, n) => {
|
|
878
878
|
const { className: t, ...o } = e;
|
|
879
879
|
return d(o), /* @__PURE__ */ s(Y, { className: t, type: "dots", size: 16, ref: n });
|
|
880
|
-
}),
|
|
880
|
+
}), Ct = m((e, n) => {
|
|
881
881
|
const { className: t, children: o, id: r, columns: i, ...l } = e;
|
|
882
882
|
return d(l), /* @__PURE__ */ s(
|
|
883
883
|
"div",
|
|
@@ -890,7 +890,7 @@ const ie = Me(void 0), Xe = m((e, n) => {
|
|
|
890
890
|
children: o
|
|
891
891
|
}
|
|
892
892
|
);
|
|
893
|
-
}),
|
|
893
|
+
}), wt = m((e, n) => {
|
|
894
894
|
const { className: t, children: o, columns: r, ...i } = e;
|
|
895
895
|
return d(i), /* @__PURE__ */ s(
|
|
896
896
|
b,
|
|
@@ -901,7 +901,7 @@ const ie = Me(void 0), Xe = m((e, n) => {
|
|
|
901
901
|
children: /* @__PURE__ */ s(b, { className: "bn-mt-suggestion-menu-item-title", children: o })
|
|
902
902
|
}
|
|
903
903
|
);
|
|
904
|
-
}),
|
|
904
|
+
}), Tt = m((e, n) => {
|
|
905
905
|
const { className: t, isSelected: o, onClick: r, item: i, id: l, ...a } = e;
|
|
906
906
|
d(a);
|
|
907
907
|
const u = P(null);
|
|
@@ -925,7 +925,7 @@ const ie = Me(void 0), Xe = m((e, n) => {
|
|
|
925
925
|
children: i.icon
|
|
926
926
|
}
|
|
927
927
|
);
|
|
928
|
-
}),
|
|
928
|
+
}), Nt = m((e, n) => {
|
|
929
929
|
const {
|
|
930
930
|
className: t,
|
|
931
931
|
children: o,
|
|
@@ -942,7 +942,7 @@ const ie = Me(void 0), Xe = m((e, n) => {
|
|
|
942
942
|
ref: n
|
|
943
943
|
}
|
|
944
944
|
);
|
|
945
|
-
}),
|
|
945
|
+
}), kt = m((e, n) => {
|
|
946
946
|
const { children: t, className: o, onMouseDown: r, onClick: i, ...l } = e;
|
|
947
947
|
return d(l, !1), /* @__PURE__ */ s(
|
|
948
948
|
N,
|
|
@@ -955,7 +955,7 @@ const ie = Me(void 0), Xe = m((e, n) => {
|
|
|
955
955
|
children: t
|
|
956
956
|
}
|
|
957
957
|
);
|
|
958
|
-
}),
|
|
958
|
+
}), Pt = m((e, n) => {
|
|
959
959
|
const {
|
|
960
960
|
className: t,
|
|
961
961
|
children: o,
|
|
@@ -980,7 +980,7 @@ const ie = Me(void 0), Xe = m((e, n) => {
|
|
|
980
980
|
children: o
|
|
981
981
|
}
|
|
982
982
|
);
|
|
983
|
-
}),
|
|
983
|
+
}), I = m(
|
|
984
984
|
(e, n) => {
|
|
985
985
|
const {
|
|
986
986
|
className: t,
|
|
@@ -991,9 +991,9 @@ const ie = Me(void 0), Xe = m((e, n) => {
|
|
|
991
991
|
...a
|
|
992
992
|
} = e;
|
|
993
993
|
d(a);
|
|
994
|
-
const { ref: u, focused: c } = ee(), g =
|
|
994
|
+
const { ref: u, focused: c } = ee(), g = Re(c), h = R(n, u, g);
|
|
995
995
|
return /* @__PURE__ */ s(
|
|
996
|
-
|
|
996
|
+
ke,
|
|
997
997
|
{
|
|
998
998
|
className: t,
|
|
999
999
|
ref: h,
|
|
@@ -1026,7 +1026,7 @@ const ie = Me(void 0), Xe = m((e, n) => {
|
|
|
1026
1026
|
B() && a.currentTarget.focus();
|
|
1027
1027
|
},
|
|
1028
1028
|
leftSection: l.icon,
|
|
1029
|
-
rightSection: /* @__PURE__ */ s(
|
|
1029
|
+
rightSection: /* @__PURE__ */ s(Qe, {}),
|
|
1030
1030
|
size: "xs",
|
|
1031
1031
|
variant: "subtle",
|
|
1032
1032
|
disabled: r,
|
|
@@ -1050,86 +1050,86 @@ const ie = Me(void 0), Xe = m((e, n) => {
|
|
|
1050
1050
|
]
|
|
1051
1051
|
}
|
|
1052
1052
|
) : null;
|
|
1053
|
-
}),
|
|
1053
|
+
}), Mt = {
|
|
1054
1054
|
FormattingToolbar: {
|
|
1055
|
-
Root:
|
|
1056
|
-
Button:
|
|
1055
|
+
Root: I,
|
|
1056
|
+
Button: D,
|
|
1057
1057
|
Select: L
|
|
1058
1058
|
},
|
|
1059
1059
|
FilePanel: {
|
|
1060
|
-
Root:
|
|
1061
|
-
Button:
|
|
1062
|
-
FileInput:
|
|
1063
|
-
TabPanel:
|
|
1064
|
-
TextInput:
|
|
1060
|
+
Root: at,
|
|
1061
|
+
Button: lt,
|
|
1062
|
+
FileInput: ct,
|
|
1063
|
+
TabPanel: ut,
|
|
1064
|
+
TextInput: dt
|
|
1065
1065
|
},
|
|
1066
1066
|
GridSuggestionMenu: {
|
|
1067
|
-
Root:
|
|
1068
|
-
Item:
|
|
1069
|
-
EmptyItem:
|
|
1070
|
-
Loader:
|
|
1067
|
+
Root: Ct,
|
|
1068
|
+
Item: Tt,
|
|
1069
|
+
EmptyItem: wt,
|
|
1070
|
+
Loader: Nt
|
|
1071
1071
|
},
|
|
1072
1072
|
LinkToolbar: {
|
|
1073
|
-
Root:
|
|
1074
|
-
Button:
|
|
1073
|
+
Root: I,
|
|
1074
|
+
Button: D,
|
|
1075
1075
|
Select: L
|
|
1076
1076
|
},
|
|
1077
1077
|
SideMenu: {
|
|
1078
|
-
Root:
|
|
1079
|
-
Button:
|
|
1078
|
+
Root: ht,
|
|
1079
|
+
Button: bt
|
|
1080
1080
|
},
|
|
1081
1081
|
SuggestionMenu: {
|
|
1082
|
-
Root:
|
|
1083
|
-
Item:
|
|
1084
|
-
EmptyItem:
|
|
1085
|
-
Label:
|
|
1086
|
-
Loader:
|
|
1082
|
+
Root: pt,
|
|
1083
|
+
Item: St,
|
|
1084
|
+
EmptyItem: vt,
|
|
1085
|
+
Label: yt,
|
|
1086
|
+
Loader: xt
|
|
1087
1087
|
},
|
|
1088
1088
|
TableHandle: {
|
|
1089
|
-
Root:
|
|
1090
|
-
ExtendButton:
|
|
1089
|
+
Root: Pt,
|
|
1090
|
+
ExtendButton: kt
|
|
1091
1091
|
},
|
|
1092
1092
|
Generic: {
|
|
1093
1093
|
Badge: {
|
|
1094
|
-
Root:
|
|
1095
|
-
Group:
|
|
1094
|
+
Root: Le,
|
|
1095
|
+
Group: Be
|
|
1096
1096
|
},
|
|
1097
1097
|
Form: {
|
|
1098
1098
|
Root: (e) => /* @__PURE__ */ s("div", { children: e.children }),
|
|
1099
|
-
TextInput:
|
|
1099
|
+
TextInput: Ge
|
|
1100
1100
|
},
|
|
1101
1101
|
Menu: {
|
|
1102
|
-
Root:
|
|
1103
|
-
Trigger:
|
|
1104
|
-
Dropdown:
|
|
1105
|
-
Divider:
|
|
1106
|
-
Label:
|
|
1107
|
-
Item:
|
|
1108
|
-
Button:
|
|
1102
|
+
Root: et,
|
|
1103
|
+
Trigger: nt,
|
|
1104
|
+
Dropdown: ot,
|
|
1105
|
+
Divider: rt,
|
|
1106
|
+
Label: st,
|
|
1107
|
+
Item: tt,
|
|
1108
|
+
Button: it
|
|
1109
1109
|
},
|
|
1110
1110
|
Popover: {
|
|
1111
|
-
Root:
|
|
1112
|
-
Trigger:
|
|
1113
|
-
Content:
|
|
1111
|
+
Root: mt,
|
|
1112
|
+
Trigger: ft,
|
|
1113
|
+
Content: gt
|
|
1114
1114
|
},
|
|
1115
1115
|
Toolbar: {
|
|
1116
|
-
Root:
|
|
1117
|
-
Button:
|
|
1116
|
+
Root: I,
|
|
1117
|
+
Button: D,
|
|
1118
1118
|
Select: L
|
|
1119
1119
|
}
|
|
1120
1120
|
},
|
|
1121
1121
|
Comments: {
|
|
1122
|
-
Comment:
|
|
1123
|
-
Editor:
|
|
1124
|
-
Card:
|
|
1125
|
-
CardSection:
|
|
1126
|
-
ExpandSectionsPrompt:
|
|
1122
|
+
Comment: Ae,
|
|
1123
|
+
Editor: _e,
|
|
1124
|
+
Card: Ee,
|
|
1125
|
+
CardSection: ze,
|
|
1126
|
+
ExpandSectionsPrompt: je
|
|
1127
1127
|
}
|
|
1128
|
-
},
|
|
1128
|
+
}, Ft = {
|
|
1129
1129
|
// Removes button press effect
|
|
1130
1130
|
activeClassName: ""
|
|
1131
|
-
},
|
|
1132
|
-
const { className: n, theme: t, ...o } = e, r =
|
|
1131
|
+
}, Ot = (e) => {
|
|
1132
|
+
const { className: n, theme: t, ...o } = e, r = fe(), i = ge(), l = (r == null ? void 0 : r.colorSchemePreference) || i, a = E(
|
|
1133
1133
|
(c) => {
|
|
1134
1134
|
if (c && (Ie(c), typeof t == "object")) {
|
|
1135
1135
|
if ("light" in t && "dark" in t) {
|
|
@@ -1145,15 +1145,15 @@ const ie = Me(void 0), Xe = m((e, n) => {
|
|
|
1145
1145
|
},
|
|
1146
1146
|
[l, t]
|
|
1147
1147
|
), u = typeof t == "string" ? t : l !== "no-preference" ? l : "light";
|
|
1148
|
-
return /* @__PURE__ */ s(
|
|
1149
|
-
|
|
1148
|
+
return /* @__PURE__ */ s(he.Provider, { value: Mt, children: /* @__PURE__ */ s(
|
|
1149
|
+
Pe,
|
|
1150
1150
|
{
|
|
1151
|
-
theme:
|
|
1151
|
+
theme: Ft,
|
|
1152
1152
|
cssVariablesSelector: ".bn-mantine",
|
|
1153
1153
|
getRootElement: () => {
|
|
1154
1154
|
},
|
|
1155
1155
|
children: /* @__PURE__ */ s(
|
|
1156
|
-
|
|
1156
|
+
be,
|
|
1157
1157
|
{
|
|
1158
1158
|
"data-mantine-color-scheme": u,
|
|
1159
1159
|
className: z("bn-mantine", n || ""),
|
|
@@ -1208,7 +1208,7 @@ const ie = Me(void 0), Xe = m((e, n) => {
|
|
|
1208
1208
|
},
|
|
1209
1209
|
borderRadius: 6,
|
|
1210
1210
|
fontFamily: '"Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Open Sans", "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif'
|
|
1211
|
-
},
|
|
1211
|
+
}, zt = {
|
|
1212
1212
|
colors: {
|
|
1213
1213
|
editor: {
|
|
1214
1214
|
text: f[2],
|
|
@@ -1243,10 +1243,10 @@ const ie = Me(void 0), Xe = m((e, n) => {
|
|
|
1243
1243
|
fontFamily: U.fontFamily
|
|
1244
1244
|
};
|
|
1245
1245
|
export {
|
|
1246
|
-
|
|
1246
|
+
Ot as BlockNoteView,
|
|
1247
1247
|
G as applyBlockNoteCSSVariablesFromTheme,
|
|
1248
|
-
|
|
1249
|
-
|
|
1248
|
+
Mt as components,
|
|
1249
|
+
zt as darkDefaultTheme,
|
|
1250
1250
|
f as defaultColorScheme,
|
|
1251
1251
|
U as lightDefaultTheme,
|
|
1252
1252
|
Ie as removeBlockNoteCSSVariables
|