@blocknote/mantine 0.20.0 → 0.21.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/blocknote-mantine.js +15 -15
- package/dist/blocknote-mantine.js.map +1 -1
- package/dist/blocknote-mantine.umd.cjs +1 -1
- package/dist/blocknote-mantine.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/dist/webpack-stats.json +1 -1
- package/package.json +4 -4
- package/src/index.tsx +4 -6
- package/src/style.css +6 -0
- package/types/src/index.d.ts +2 -3
package/dist/webpack-stats.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"builtAt":
|
|
1
|
+
{"builtAt":1734093916421,"assets":[{"name":"blocknote-mantine.umd.cjs","size":16974},{"name":"blocknote-mantine.umd.cjs.map","size":295218}],"chunks":[{"id":"ec22802","entry":true,"initial":true,"files":["blocknote-mantine.umd.cjs"],"names":["index"]}],"modules":[{"name":"./src/BlockNoteTheme.ts","size":2185,"chunks":["ec22802"]},{"name":"./src/form/TextInput.tsx","size":575,"chunks":["ec22802"]},{"name":"../../node_modules/react-icons/lib/iconContext.mjs","size":251,"chunks":["ec22802"]},{"name":"../../node_modules/react-icons/lib/iconBase.mjs","size":4014,"chunks":["ec22802"]},{"name":"../../node_modules/react-icons/hi/index.mjs","size":744,"chunks":["ec22802"]},{"name":"./src/menu/Menu.tsx","size":4215,"chunks":["ec22802"]},{"name":"./src/panel/Panel.tsx","size":1015,"chunks":["ec22802"]},{"name":"./src/panel/PanelButton.tsx","size":345,"chunks":["ec22802"]},{"name":"./src/panel/PanelFileInput.tsx","size":367,"chunks":["ec22802"]},{"name":"./src/panel/PanelTab.tsx","size":209,"chunks":["ec22802"]},{"name":"./src/panel/PanelTextInput.tsx","size":392,"chunks":["ec22802"]},{"name":"./src/popover/Popover.tsx","size":679,"chunks":["ec22802"]},{"name":"./src/sideMenu/SideMenu.tsx","size":309,"chunks":["ec22802"]},{"name":"./src/sideMenu/SideMenuButton.tsx","size":773,"chunks":["ec22802"]},{"name":"./src/style.css","size":0,"chunks":["ec22802"]},{"name":"./src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenu.tsx","size":361,"chunks":["ec22802"]},{"name":"./src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuEmptyItem.tsx","size":436,"chunks":["ec22802"]},{"name":"./src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuItem.tsx","size":855,"chunks":["ec22802"]},{"name":"./src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuLoader.tsx","size":385,"chunks":["ec22802"]},{"name":"./src/suggestionMenu/SuggestionMenu.tsx","size":307,"chunks":["ec22802"]},{"name":"./src/suggestionMenu/SuggestionMenuEmptyItem.tsx","size":338,"chunks":["ec22802"]},{"name":"./src/suggestionMenu/SuggestionMenuItem.tsx","size":1822,"chunks":["ec22802"]},{"name":"./src/suggestionMenu/SuggestionMenuLabel.tsx","size":227,"chunks":["ec22802"]},{"name":"./src/suggestionMenu/SuggestionMenuLoader.tsx","size":283,"chunks":["ec22802"]},{"name":"./src/tableHandle/ExtendButton.tsx","size":333,"chunks":["ec22802"]},{"name":"./src/tableHandle/TableHandle.tsx","size":452,"chunks":["ec22802"]},{"name":"./src/toolbar/Toolbar.tsx","size":562,"chunks":["ec22802"]},{"name":"./src/toolbar/ToolbarButton.tsx","size":2229,"chunks":["ec22802"]},{"name":"./src/toolbar/ToolbarSelect.tsx","size":1785,"chunks":["ec22802"]},{"name":"./src/defaultThemes.ts","size":2023,"chunks":["ec22802"]},{"name":"./src/index.tsx","size":2700,"chunks":["ec22802"]}]}
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"*.css"
|
|
7
7
|
],
|
|
8
8
|
"license": "MPL-2.0",
|
|
9
|
-
"version": "0.
|
|
9
|
+
"version": "0.21.0",
|
|
10
10
|
"files": [
|
|
11
11
|
"dist",
|
|
12
12
|
"types",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"clean": "rimraf dist && rimraf types"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@blocknote/core": "^0.
|
|
54
|
-
"@blocknote/react": "^0.
|
|
53
|
+
"@blocknote/core": "^0.21.0",
|
|
54
|
+
"@blocknote/react": "^0.21.0",
|
|
55
55
|
"@mantine/core": "^7.10.1",
|
|
56
56
|
"@mantine/hooks": "^7.10.1",
|
|
57
57
|
"@mantine/utils": "^6.0.21",
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
"access": "public",
|
|
84
84
|
"registry": "https://registry.npmjs.org/"
|
|
85
85
|
},
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "377bcf8336a0b5445a970955af3d50483d6f7c90"
|
|
87
87
|
}
|
package/src/index.tsx
CHANGED
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
StyleSchema,
|
|
6
6
|
} from "@blocknote/core";
|
|
7
7
|
import {
|
|
8
|
+
BlockNoteViewProps,
|
|
8
9
|
BlockNoteViewRaw,
|
|
9
10
|
Components,
|
|
10
11
|
ComponentsContext,
|
|
@@ -12,7 +13,7 @@ import {
|
|
|
12
13
|
usePrefersColorScheme,
|
|
13
14
|
} from "@blocknote/react";
|
|
14
15
|
import { MantineProvider } from "@mantine/core";
|
|
15
|
-
import {
|
|
16
|
+
import { useCallback } from "react";
|
|
16
17
|
|
|
17
18
|
import {
|
|
18
19
|
applyBlockNoteCSSVariablesFromTheme,
|
|
@@ -46,8 +47,8 @@ import { SuggestionMenuEmptyItem } from "./suggestionMenu/SuggestionMenuEmptyIte
|
|
|
46
47
|
import { SuggestionMenuItem } from "./suggestionMenu/SuggestionMenuItem.js";
|
|
47
48
|
import { SuggestionMenuLabel } from "./suggestionMenu/SuggestionMenuLabel.js";
|
|
48
49
|
import { SuggestionMenuLoader } from "./suggestionMenu/SuggestionMenuLoader.js";
|
|
49
|
-
import { TableHandle } from "./tableHandle/TableHandle.js";
|
|
50
50
|
import { ExtendButton } from "./tableHandle/ExtendButton.js";
|
|
51
|
+
import { TableHandle } from "./tableHandle/TableHandle.js";
|
|
51
52
|
import { Toolbar } from "./toolbar/Toolbar.js";
|
|
52
53
|
import { ToolbarButton } from "./toolbar/ToolbarButton.js";
|
|
53
54
|
import { ToolbarSelect } from "./toolbar/ToolbarSelect.js";
|
|
@@ -124,10 +125,7 @@ export const BlockNoteView = <
|
|
|
124
125
|
ISchema extends InlineContentSchema,
|
|
125
126
|
SSchema extends StyleSchema
|
|
126
127
|
>(
|
|
127
|
-
props: Omit<
|
|
128
|
-
ComponentProps<typeof BlockNoteViewRaw<BSchema, ISchema, SSchema>>,
|
|
129
|
-
"theme"
|
|
130
|
-
> & {
|
|
128
|
+
props: Omit<BlockNoteViewProps<BSchema, ISchema, SSchema>, "theme"> & {
|
|
131
129
|
theme?:
|
|
132
130
|
| "light"
|
|
133
131
|
| "dark"
|
package/src/style.css
CHANGED
|
@@ -134,6 +134,10 @@
|
|
|
134
134
|
overflow: auto;
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
+
.bn-mantine .mantine-Button-root[aria-controls*="dropdown"] {
|
|
138
|
+
min-width: fit-content;
|
|
139
|
+
}
|
|
140
|
+
|
|
137
141
|
/* Toolbar styling */
|
|
138
142
|
.bn-mantine .bn-toolbar {
|
|
139
143
|
background-color: var(--bn-colors-menu-background);
|
|
@@ -144,6 +148,8 @@
|
|
|
144
148
|
gap: 2px;
|
|
145
149
|
padding: 2px;
|
|
146
150
|
width: fit-content;
|
|
151
|
+
overflow-x: auto;
|
|
152
|
+
max-width: 100vw;
|
|
147
153
|
}
|
|
148
154
|
|
|
149
155
|
.bn-mantine .bn-toolbar:empty {
|
package/types/src/index.d.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { InlineContentSchema, StyleSchema } from "@blocknote/core";
|
|
2
|
-
import {
|
|
3
|
-
import { ComponentProps } from "react";
|
|
2
|
+
import { BlockNoteViewProps, Components } from "@blocknote/react";
|
|
4
3
|
import { Theme } from "./BlockNoteTheme.js";
|
|
5
4
|
import "./style.css";
|
|
6
5
|
export * from "./BlockNoteTheme.js";
|
|
7
6
|
export * from "./defaultThemes.js";
|
|
8
7
|
export declare const components: Components;
|
|
9
|
-
export declare const BlockNoteView: <BSchema extends Record<string, import("@blocknote/core").BlockConfig>, ISchema extends InlineContentSchema, SSchema extends StyleSchema>(props: Omit<
|
|
8
|
+
export declare const BlockNoteView: <BSchema extends Record<string, import("@blocknote/core").BlockConfig>, ISchema extends InlineContentSchema, SSchema extends StyleSchema>(props: Omit<BlockNoteViewProps<BSchema, ISchema, SSchema>, "theme"> & {
|
|
10
9
|
theme?: "light" | "dark" | Theme | {
|
|
11
10
|
light: Theme;
|
|
12
11
|
dark: Theme;
|