@blocknote/mantine 0.16.0 → 0.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/blocknote-mantine.js +161 -161
- 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/webpack-stats.json +1 -1
- package/package.json +4 -4
- package/src/defaultThemes.ts +1 -1
- package/src/index.tsx +27 -27
- package/types/src/index.d.ts +3 -3
package/dist/webpack-stats.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"builtAt":
|
|
1
|
+
{"builtAt":1729263496039,"assets":[{"name":"blocknote-mantine.umd.cjs","size":31424},{"name":"blocknote-mantine.umd.cjs.map","size":359899}],"chunks":[{"id":"ec22802","entry":true,"initial":true,"files":["blocknote-mantine.umd.cjs"],"names":["index"]}],"modules":[{"name":"../../node_modules/react/jsx-runtime.js?commonjs-module","size":31,"chunks":["ec22802"]},{"name":"../../node_modules/react/cjs/react-jsx-runtime.production.min.js?commonjs-exports","size":40,"chunks":["ec22802"]},{"name":"../../node_modules/react/cjs/react-jsx-runtime.production.min.js","size":1200,"chunks":["ec22802"]},{"name":"../../node_modules/react/cjs/react-jsx-runtime.development.js?commonjs-exports","size":37,"chunks":["ec22802"]},{"name":"../../node_modules/react/cjs/react-jsx-runtime.development.js","size":43843,"chunks":["ec22802"]},{"name":"../../node_modules/react/jsx-runtime.js","size":225,"chunks":["ec22802"]},{"name":"./src/BlockNoteTheme.ts","size":2185,"chunks":["ec22802"]},{"name":"./src/form/TextInput.tsx","size":582,"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":4155,"chunks":["ec22802"]},{"name":"./src/panel/Panel.tsx","size":1057,"chunks":["ec22802"]},{"name":"./src/panel/PanelButton.tsx","size":352,"chunks":["ec22802"]},{"name":"./src/panel/PanelFileInput.tsx","size":374,"chunks":["ec22802"]},{"name":"./src/panel/PanelTab.tsx","size":216,"chunks":["ec22802"]},{"name":"./src/panel/PanelTextInput.tsx","size":399,"chunks":["ec22802"]},{"name":"./src/popover/Popover.tsx","size":759,"chunks":["ec22802"]},{"name":"./src/sideMenu/SideMenu.tsx","size":316,"chunks":["ec22802"]},{"name":"./src/sideMenu/SideMenuButton.tsx","size":787,"chunks":["ec22802"]},{"name":"./src/style.css","size":0,"chunks":["ec22802"]},{"name":"./src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenu.tsx","size":368,"chunks":["ec22802"]},{"name":"./src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuEmptyItem.tsx","size":450,"chunks":["ec22802"]},{"name":"./src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuItem.tsx","size":862,"chunks":["ec22802"]},{"name":"./src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuLoader.tsx","size":392,"chunks":["ec22802"]},{"name":"./src/suggestionMenu/SuggestionMenu.tsx","size":314,"chunks":["ec22802"]},{"name":"./src/suggestionMenu/SuggestionMenuEmptyItem.tsx","size":352,"chunks":["ec22802"]},{"name":"./src/suggestionMenu/SuggestionMenuItem.tsx","size":1871,"chunks":["ec22802"]},{"name":"./src/suggestionMenu/SuggestionMenuLabel.tsx","size":234,"chunks":["ec22802"]},{"name":"./src/suggestionMenu/SuggestionMenuLoader.tsx","size":290,"chunks":["ec22802"]},{"name":"./src/tableHandle/TableHandle.tsx","size":459,"chunks":["ec22802"]},{"name":"./src/toolbar/Toolbar.tsx","size":569,"chunks":["ec22802"]},{"name":"./src/toolbar/ToolbarButton.tsx","size":2278,"chunks":["ec22802"]},{"name":"./src/toolbar/ToolbarSelect.tsx","size":1841,"chunks":["ec22802"]},{"name":"./src/defaultThemes.ts","size":3405,"chunks":["ec22802"]},{"name":"./src/index.tsx","size":2710,"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.17.1",
|
|
10
10
|
"files": [
|
|
11
11
|
"dist",
|
|
12
12
|
"types",
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"clean": "rimraf dist && rimraf types"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@blocknote/core": "^0.
|
|
55
|
-
"@blocknote/react": "^0.
|
|
54
|
+
"@blocknote/core": "^0.17.1",
|
|
55
|
+
"@blocknote/react": "^0.17.1",
|
|
56
56
|
"@mantine/core": "^7.10.1",
|
|
57
57
|
"@mantine/hooks": "^7.10.1",
|
|
58
58
|
"@mantine/utils": "^6.0.21",
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"access": "public",
|
|
87
87
|
"registry": "https://registry.npmjs.org/"
|
|
88
88
|
},
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "8867e6411d6e698e667b7ac22697bcf76f763937"
|
|
90
90
|
}
|
package/src/defaultThemes.ts
CHANGED
package/src/index.tsx
CHANGED
|
@@ -15,14 +15,11 @@ import { MantineProvider } from "@mantine/core";
|
|
|
15
15
|
import { ComponentProps, useCallback } from "react";
|
|
16
16
|
|
|
17
17
|
import {
|
|
18
|
-
Theme,
|
|
19
18
|
applyBlockNoteCSSVariablesFromTheme,
|
|
20
19
|
removeBlockNoteCSSVariables,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
import {
|
|
24
|
-
import { GridSuggestionMenuItem } from "./suggestionMenu/gridSuggestionMenu/GridSuggestionMenuItem";
|
|
25
|
-
import { GridSuggestionMenuLoader } from "./suggestionMenu/gridSuggestionMenu/GridSuggestionMenuLoader";
|
|
20
|
+
Theme,
|
|
21
|
+
} from "./BlockNoteTheme.js";
|
|
22
|
+
import { TextInput } from "./form/TextInput.js";
|
|
26
23
|
import {
|
|
27
24
|
Menu,
|
|
28
25
|
MenuDivider,
|
|
@@ -30,29 +27,32 @@ import {
|
|
|
30
27
|
MenuItem,
|
|
31
28
|
MenuLabel,
|
|
32
29
|
MenuTrigger,
|
|
33
|
-
} from "./menu/Menu";
|
|
34
|
-
import { Panel } from "./panel/Panel";
|
|
35
|
-
import { PanelButton } from "./panel/PanelButton";
|
|
36
|
-
import { PanelFileInput } from "./panel/PanelFileInput";
|
|
37
|
-
import { PanelTab } from "./panel/PanelTab";
|
|
38
|
-
import { PanelTextInput } from "./panel/PanelTextInput";
|
|
39
|
-
import { Popover, PopoverContent, PopoverTrigger } from "./popover/Popover";
|
|
40
|
-
import { SideMenu } from "./sideMenu/SideMenu";
|
|
41
|
-
import { SideMenuButton } from "./sideMenu/SideMenuButton";
|
|
42
|
-
import { SuggestionMenu } from "./suggestionMenu/SuggestionMenu";
|
|
43
|
-
import { SuggestionMenuEmptyItem } from "./suggestionMenu/SuggestionMenuEmptyItem";
|
|
44
|
-
import { SuggestionMenuItem } from "./suggestionMenu/SuggestionMenuItem";
|
|
45
|
-
import { SuggestionMenuLabel } from "./suggestionMenu/SuggestionMenuLabel";
|
|
46
|
-
import { SuggestionMenuLoader } from "./suggestionMenu/SuggestionMenuLoader";
|
|
47
|
-
import { TableHandle } from "./tableHandle/TableHandle";
|
|
48
|
-
import { TextInput } from "./form/TextInput";
|
|
49
|
-
import { Toolbar } from "./toolbar/Toolbar";
|
|
50
|
-
import { ToolbarButton } from "./toolbar/ToolbarButton";
|
|
51
|
-
import { ToolbarSelect } from "./toolbar/ToolbarSelect";
|
|
30
|
+
} from "./menu/Menu.js";
|
|
31
|
+
import { Panel } from "./panel/Panel.js";
|
|
32
|
+
import { PanelButton } from "./panel/PanelButton.js";
|
|
33
|
+
import { PanelFileInput } from "./panel/PanelFileInput.js";
|
|
34
|
+
import { PanelTab } from "./panel/PanelTab.js";
|
|
35
|
+
import { PanelTextInput } from "./panel/PanelTextInput.js";
|
|
36
|
+
import { Popover, PopoverContent, PopoverTrigger } from "./popover/Popover.js";
|
|
37
|
+
import { SideMenu } from "./sideMenu/SideMenu.js";
|
|
38
|
+
import { SideMenuButton } from "./sideMenu/SideMenuButton.js";
|
|
52
39
|
import "./style.css";
|
|
40
|
+
import { GridSuggestionMenu } from "./suggestionMenu/gridSuggestionMenu/GridSuggestionMenu.js";
|
|
41
|
+
import { GridSuggestionMenuEmptyItem } from "./suggestionMenu/gridSuggestionMenu/GridSuggestionMenuEmptyItem.js";
|
|
42
|
+
import { GridSuggestionMenuItem } from "./suggestionMenu/gridSuggestionMenu/GridSuggestionMenuItem.js";
|
|
43
|
+
import { GridSuggestionMenuLoader } from "./suggestionMenu/gridSuggestionMenu/GridSuggestionMenuLoader.js";
|
|
44
|
+
import { SuggestionMenu } from "./suggestionMenu/SuggestionMenu.js";
|
|
45
|
+
import { SuggestionMenuEmptyItem } from "./suggestionMenu/SuggestionMenuEmptyItem.js";
|
|
46
|
+
import { SuggestionMenuItem } from "./suggestionMenu/SuggestionMenuItem.js";
|
|
47
|
+
import { SuggestionMenuLabel } from "./suggestionMenu/SuggestionMenuLabel.js";
|
|
48
|
+
import { SuggestionMenuLoader } from "./suggestionMenu/SuggestionMenuLoader.js";
|
|
49
|
+
import { TableHandle } from "./tableHandle/TableHandle.js";
|
|
50
|
+
import { Toolbar } from "./toolbar/Toolbar.js";
|
|
51
|
+
import { ToolbarButton } from "./toolbar/ToolbarButton.js";
|
|
52
|
+
import { ToolbarSelect } from "./toolbar/ToolbarSelect.js";
|
|
53
53
|
|
|
54
|
-
export * from "./BlockNoteTheme";
|
|
55
|
-
export * from "./defaultThemes";
|
|
54
|
+
export * from "./BlockNoteTheme.js";
|
|
55
|
+
export * from "./defaultThemes.js";
|
|
56
56
|
|
|
57
57
|
export const components: Components = {
|
|
58
58
|
FormattingToolbar: {
|
package/types/src/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { InlineContentSchema, StyleSchema } from "@blocknote/core";
|
|
2
2
|
import { BlockNoteViewRaw, Components } from "@blocknote/react";
|
|
3
3
|
import { ComponentProps } from "react";
|
|
4
|
-
import { Theme } from "./BlockNoteTheme";
|
|
4
|
+
import { Theme } from "./BlockNoteTheme.js";
|
|
5
5
|
import "./style.css";
|
|
6
|
-
export * from "./BlockNoteTheme";
|
|
7
|
-
export * from "./defaultThemes";
|
|
6
|
+
export * from "./BlockNoteTheme.js";
|
|
7
|
+
export * from "./defaultThemes.js";
|
|
8
8
|
export declare const components: Components;
|
|
9
9
|
export declare const BlockNoteView: <BSchema extends Record<string, import("@blocknote/core").BlockConfig>, ISchema extends InlineContentSchema, SSchema extends StyleSchema>(props: Omit<ComponentProps<typeof BlockNoteViewRaw<BSchema, ISchema, SSchema>>, "theme"> & {
|
|
10
10
|
theme?: "light" | "dark" | Theme | {
|