@blocknote/mantine 0.26.0 → 0.27.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/blocknote-mantine.cjs +1 -1
- package/dist/blocknote-mantine.cjs.map +1 -1
- package/dist/blocknote-mantine.js +9 -9
- package/dist/blocknote-mantine.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/webpack-stats.json +1 -1
- package/package.json +16 -16
- package/types/src/BlockNoteView.d.ts +3 -3
- package/types/src/badge/Badge.d.ts +7 -8
- package/types/src/comments/Card.d.ts +8 -9
- package/types/src/comments/Comment.d.ts +2 -3
- package/types/src/comments/Editor.d.ts +4 -5
- package/types/src/form/TextInput.d.ts +4 -5
- package/types/src/menu/Button.d.ts +6 -7
- package/types/src/menu/Menu.d.ts +8 -9
- package/types/src/panel/Panel.d.ts +1 -2
- package/types/src/panel/PanelButton.d.ts +2 -3
- package/types/src/panel/PanelFileInput.d.ts +1 -2
- package/types/src/panel/PanelTab.d.ts +1 -2
- package/types/src/panel/PanelTextInput.d.ts +2 -3
- package/types/src/popover/Popover.d.ts +1 -2
- package/types/src/sideMenu/SideMenu.d.ts +1 -2
- package/types/src/sideMenu/SideMenuButton.d.ts +6 -7
- package/types/src/suggestionMenu/SuggestionMenu.d.ts +1 -2
- package/types/src/suggestionMenu/SuggestionMenuEmptyItem.d.ts +1 -2
- package/types/src/suggestionMenu/SuggestionMenuItem.d.ts +1 -2
- package/types/src/suggestionMenu/SuggestionMenuLabel.d.ts +1 -2
- package/types/src/suggestionMenu/SuggestionMenuLoader.d.ts +1 -2
- package/types/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenu.d.ts +1 -2
- package/types/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuEmptyItem.d.ts +1 -2
- package/types/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuItem.d.ts +1 -2
- package/types/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuLoader.d.ts +1 -2
- package/types/src/tableHandle/ExtendButton.d.ts +3 -4
- package/types/src/tableHandle/TableHandle.d.ts +4 -5
- package/types/src/toolbar/Toolbar.d.ts +4 -5
- package/types/src/toolbar/ToolbarButton.d.ts +8 -9
- package/types/src/toolbar/ToolbarSelect.d.ts +3 -4
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as s, jsxs as v } from "react/jsx-runtime";
|
|
2
2
|
import { assertEmpty as d, isSafari as B, mergeCSSClasses as U, COLORS_DEFAULT as ae, COLORS_DARK_MODE_DEFAULT as le } from "@blocknote/core";
|
|
3
3
|
import { mergeRefs as W, FormattingToolbarController as ce, getFormattingToolbarItems as ue, FormattingToolbar as de, elementOverflow as q, useBlockNoteContext as me, usePrefersColorScheme as fe, ComponentsContext as ge, BlockNoteViewRaw as he } from "@blocknote/react";
|
|
4
|
-
import { Button as T, ActionIcon as z, Tooltip as Z, Stack as j, Text as x, Group as b, Chip as be,
|
|
5
|
-
import w, { forwardRef as m, useState as $, useRef as k, useEffect as A,
|
|
4
|
+
import { Button as T, ActionIcon as z, Tooltip as Z, Stack as j, Text as x, Group as b, Chip as be, Divider as pe, Card as J, Skeleton as _, Avatar as ve, TextInput as Q, Menu as S, CheckIcon as X, Tabs as P, LoadingOverlay as Se, FileInput as ye, PopoverDropdown as xe, PopoverTarget as Ce, Popover as we, Badge as Te, Loader as Y, Flex as Ne, MantineProvider as ke } from "@mantine/core";
|
|
5
|
+
import w, { forwardRef as m, useState as $, useRef as k, useEffect as A, useContext as Pe, createContext as Fe, useCallback as E } from "react";
|
|
6
6
|
import { useHover as Me, useFocusWithin as ee, mergeRefs as O, useFocusTrap as Oe } from "@mantine/hooks";
|
|
7
7
|
const te = (e, n, t = !1) => {
|
|
8
8
|
const o = [];
|
|
@@ -444,7 +444,7 @@ function qe(e, n) {
|
|
|
444
444
|
if (typeof e != "object" || !e) return e;
|
|
445
445
|
var t = e[Symbol.toPrimitive];
|
|
446
446
|
if (t !== void 0) {
|
|
447
|
-
var o = t.call(e, n
|
|
447
|
+
var o = t.call(e, n);
|
|
448
448
|
if (typeof o != "object") return o;
|
|
449
449
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
450
450
|
}
|
|
@@ -484,12 +484,12 @@ function Ze(e) {
|
|
|
484
484
|
return G !== void 0 ? /* @__PURE__ */ w.createElement(G.Consumer, null, (t) => n(t)) : n(oe);
|
|
485
485
|
}
|
|
486
486
|
function Je(e) {
|
|
487
|
-
return se({
|
|
487
|
+
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);
|
|
488
488
|
}
|
|
489
489
|
function Qe(e) {
|
|
490
|
-
return se({
|
|
490
|
+
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);
|
|
491
491
|
}
|
|
492
|
-
const ie =
|
|
492
|
+
const ie = Fe(void 0), Xe = m((e, n) => {
|
|
493
493
|
const {
|
|
494
494
|
children: t,
|
|
495
495
|
onOpenChange: o,
|
|
@@ -594,7 +594,7 @@ const ie = Pe(void 0), Xe = m((e, n) => {
|
|
|
594
594
|
...i
|
|
595
595
|
} = e;
|
|
596
596
|
d(i);
|
|
597
|
-
const l =
|
|
597
|
+
const l = Pe(ie);
|
|
598
598
|
return /* @__PURE__ */ s(
|
|
599
599
|
S.Dropdown,
|
|
600
600
|
{
|
|
@@ -731,7 +731,7 @@ const ie = Pe(void 0), Xe = m((e, n) => {
|
|
|
731
731
|
);
|
|
732
732
|
}), dt = (e) => {
|
|
733
733
|
const { opened: n, position: t, children: o, ...r } = e;
|
|
734
|
-
return d(r), /* @__PURE__ */ s(
|
|
734
|
+
return d(r), /* @__PURE__ */ s(we, { withinPortal: !1, opened: n, position: t, children: o });
|
|
735
735
|
}, mt = (e) => {
|
|
736
736
|
const { children: n, ...t } = e;
|
|
737
737
|
return d(t), /* @__PURE__ */ s(Ce, { children: n });
|
|
@@ -743,7 +743,7 @@ const ie = Pe(void 0), Xe = m((e, n) => {
|
|
|
743
743
|
// unused
|
|
744
744
|
...i
|
|
745
745
|
} = e;
|
|
746
|
-
return d(i), /* @__PURE__ */ s(
|
|
746
|
+
return d(i), /* @__PURE__ */ s(xe, { className: t, ref: n, children: o });
|
|
747
747
|
}), gt = m((e, n) => {
|
|
748
748
|
const { className: t, children: o, ...r } = e;
|
|
749
749
|
return d(r, !1), /* @__PURE__ */ s(
|