@blocknote/mantine 0.25.2 → 0.27.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.cjs +1 -1
- package/dist/blocknote-mantine.cjs.map +1 -1
- package/dist/blocknote-mantine.js +417 -369
- 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 -12
- package/src/comments/Card.tsx +56 -7
- package/src/comments/Comment.tsx +7 -3
- package/src/comments/Editor.tsx +3 -2
- package/src/components.tsx +4 -1
- package/src/style.css +35 -13
- package/types/src/BlockNoteView.d.ts +3 -3
- package/types/src/badge/Badge.d.ts +7 -8
- package/types/src/comments/Card.d.ts +11 -3
- package/types/src/comments/Comment.d.ts +3 -3
- package/types/src/comments/Editor.d.ts +4 -4
- 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,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const GridSuggestionMenuEmptyItem: import("react").ForwardRefExoticComponent<{
|
|
3
2
|
columns: number;
|
|
4
|
-
className?: string
|
|
3
|
+
className?: string;
|
|
5
4
|
children?: import("react").ReactNode;
|
|
6
5
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const GridSuggestionMenuLoader: import("react").ForwardRefExoticComponent<{
|
|
3
2
|
columns: number;
|
|
4
|
-
className?: string
|
|
3
|
+
className?: string;
|
|
5
4
|
children?: import("react").ReactNode;
|
|
6
5
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const ExtendButton: import("react").ForwardRefExoticComponent<{
|
|
3
|
-
className?: string
|
|
4
|
-
onClick: (e:
|
|
5
|
-
onMouseDown: (e:
|
|
2
|
+
className?: string;
|
|
3
|
+
onClick: (e: React.MouseEvent) => void;
|
|
4
|
+
onMouseDown: (e: React.MouseEvent) => void;
|
|
6
5
|
children: import("react").ReactNode;
|
|
7
6
|
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const TableHandle: import("react").ForwardRefExoticComponent<({
|
|
3
|
-
className?: string
|
|
2
|
+
className?: string;
|
|
4
3
|
draggable: boolean;
|
|
5
|
-
onDragStart: (e:
|
|
4
|
+
onDragStart: (e: React.DragEvent) => void;
|
|
6
5
|
onDragEnd: () => void;
|
|
7
|
-
style?: import("react").CSSProperties
|
|
6
|
+
style?: import("react").CSSProperties;
|
|
8
7
|
} & ({
|
|
9
8
|
children: import("react").ReactNode;
|
|
10
|
-
label?: string
|
|
9
|
+
label?: string;
|
|
11
10
|
} | {
|
|
12
11
|
children?: undefined;
|
|
13
12
|
label: string;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const Toolbar: import("react").ForwardRefExoticComponent<{
|
|
3
|
-
className?: string
|
|
2
|
+
className?: string;
|
|
4
3
|
children?: import("react").ReactNode;
|
|
5
|
-
onMouseEnter?: (
|
|
6
|
-
onMouseLeave?: (
|
|
7
|
-
variant?: "default" | "action-toolbar"
|
|
4
|
+
onMouseEnter?: () => void;
|
|
5
|
+
onMouseLeave?: () => void;
|
|
6
|
+
variant?: "default" | "action-toolbar";
|
|
8
7
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const TooltipContent: (props: {
|
|
3
2
|
mainTooltip: string;
|
|
4
3
|
secondaryTooltip?: string;
|
|
@@ -7,17 +6,17 @@ export declare const TooltipContent: (props: {
|
|
|
7
6
|
* Helper for basic buttons that show in the formatting toolbar.
|
|
8
7
|
*/
|
|
9
8
|
export declare const ToolbarButton: import("react").ForwardRefExoticComponent<({
|
|
10
|
-
className?: string
|
|
11
|
-
mainTooltip?: string
|
|
12
|
-
secondaryTooltip?: string
|
|
9
|
+
className?: string;
|
|
10
|
+
mainTooltip?: string;
|
|
11
|
+
secondaryTooltip?: string;
|
|
13
12
|
icon?: import("react").ReactNode;
|
|
14
|
-
onClick?: (
|
|
15
|
-
isSelected?: boolean
|
|
16
|
-
isDisabled?: boolean
|
|
17
|
-
variant?: "default" | "compact"
|
|
13
|
+
onClick?: (e: import("react").MouseEvent) => void;
|
|
14
|
+
isSelected?: boolean;
|
|
15
|
+
isDisabled?: boolean;
|
|
16
|
+
variant?: "default" | "compact";
|
|
18
17
|
} & ({
|
|
19
18
|
children: import("react").ReactNode;
|
|
20
|
-
label?: string
|
|
19
|
+
label?: string;
|
|
21
20
|
} | {
|
|
22
21
|
children?: undefined;
|
|
23
22
|
label: string;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const ToolbarSelect: import("react").ForwardRefExoticComponent<{
|
|
3
|
-
className?: string
|
|
2
|
+
className?: string;
|
|
4
3
|
items: {
|
|
5
4
|
text: string;
|
|
6
5
|
icon: import("react").ReactNode;
|
|
7
6
|
onClick: () => void;
|
|
8
7
|
isSelected: boolean;
|
|
9
|
-
isDisabled?: boolean
|
|
8
|
+
isDisabled?: boolean;
|
|
10
9
|
}[];
|
|
11
|
-
isDisabled?: boolean
|
|
10
|
+
isDisabled?: boolean;
|
|
12
11
|
} & import("react").RefAttributes<HTMLDivElement>>;
|