@blocknote/shadcn 0.26.0 → 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-shadcn.cjs.map +1 -1
- package/dist/blocknote-shadcn.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/webpack-stats.json +1 -1
- package/package.json +16 -12
- package/types/src/BlockNoteView.d.ts +3 -3
- package/types/src/ShadCNComponentsContext.d.ts +12 -13
- 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/components/ui/badge.d.ts +1 -1
- package/types/src/components/ui/dropdown-menu.d.ts +4 -4
- package/types/src/components/ui/form.d.ts +2 -2
- package/types/src/components/ui/skeleton.d.ts +0 -1
- package/types/src/form/Form.d.ts +1 -1
- 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 +10 -11
- 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 +2 -3
- 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 +15 -16
package/types/src/menu/Menu.d.ts
CHANGED
|
@@ -1,24 +1,23 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ComponentProps } from "@blocknote/react";
|
|
3
|
-
export declare const Menu: (props: ComponentProps["Generic"]["Menu"]["Root"]) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export declare const MenuTrigger: (props: ComponentProps["Generic"]["Menu"]["Trigger"]) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const Menu: (props: ComponentProps["Generic"]["Menu"]["Root"]) => import("react/jsx-runtime.js").JSX.Element;
|
|
3
|
+
export declare const MenuTrigger: (props: ComponentProps["Generic"]["Menu"]["Trigger"]) => import("react/jsx-runtime.js").JSX.Element;
|
|
5
4
|
export declare const MenuDropdown: import("react").ForwardRefExoticComponent<{
|
|
6
|
-
className?: string
|
|
5
|
+
className?: string;
|
|
7
6
|
children?: import("react").ReactNode;
|
|
8
|
-
sub?: boolean
|
|
7
|
+
sub?: boolean;
|
|
9
8
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
9
|
export declare const MenuItem: import("react").ForwardRefExoticComponent<{
|
|
11
|
-
className?: string
|
|
10
|
+
className?: string;
|
|
12
11
|
children?: import("react").ReactNode;
|
|
13
|
-
subTrigger?: boolean
|
|
12
|
+
subTrigger?: boolean;
|
|
14
13
|
icon?: import("react").ReactNode;
|
|
15
|
-
checked?: boolean
|
|
16
|
-
onClick?: (
|
|
14
|
+
checked?: boolean;
|
|
15
|
+
onClick?: () => void;
|
|
17
16
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
18
17
|
export declare const MenuDivider: import("react").ForwardRefExoticComponent<{
|
|
19
|
-
className?: string
|
|
18
|
+
className?: string;
|
|
20
19
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
21
20
|
export declare const MenuLabel: import("react").ForwardRefExoticComponent<{
|
|
22
|
-
className?: string
|
|
21
|
+
className?: string;
|
|
23
22
|
children?: import("react").ReactNode;
|
|
24
23
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const PanelButton: import("react").ForwardRefExoticComponent<({
|
|
3
|
-
className?: string
|
|
2
|
+
className?: string;
|
|
4
3
|
onClick: () => void;
|
|
5
4
|
} & ({
|
|
6
5
|
children: import("react").ReactNode;
|
|
7
|
-
label?: string
|
|
6
|
+
label?: string;
|
|
8
7
|
} | {
|
|
9
8
|
children?: undefined;
|
|
10
9
|
label: string;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const PanelTextInput: import("react").ForwardRefExoticComponent<{
|
|
3
|
-
className?: string
|
|
2
|
+
className?: string;
|
|
4
3
|
value: string;
|
|
5
4
|
placeholder: string;
|
|
6
5
|
onChange: (event: import("react").ChangeEvent<HTMLInputElement>) => void;
|
|
7
|
-
onKeyDown: (event: import("react").KeyboardEvent
|
|
6
|
+
onKeyDown: (event: import("react").KeyboardEvent) => void;
|
|
8
7
|
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ComponentProps } from "@blocknote/react";
|
|
3
|
-
export declare const Popover: (props: ComponentProps["Generic"]["Popover"]["Root"]) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const Popover: (props: ComponentProps["Generic"]["Popover"]["Root"]) => import("react/jsx-runtime.js").JSX.Element;
|
|
4
3
|
export declare const PopoverTrigger: import("react").ForwardRefExoticComponent<{
|
|
5
4
|
children?: import("react").ReactNode;
|
|
6
5
|
} & import("react").RefAttributes<unknown>>;
|
|
7
6
|
export declare const PopoverContent: import("react").ForwardRefExoticComponent<{
|
|
8
|
-
className?: string
|
|
7
|
+
className?: string;
|
|
9
8
|
variant: "form-popover" | "panel-popover";
|
|
10
9
|
children?: import("react").ReactNode;
|
|
11
10
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const SideMenuButton: import("react").ForwardRefExoticComponent<({
|
|
3
|
-
className?: string
|
|
4
|
-
onClick?: (
|
|
2
|
+
className?: string;
|
|
3
|
+
onClick?: (e: import("react").MouseEvent) => void;
|
|
5
4
|
icon?: import("react").ReactNode;
|
|
6
|
-
onDragStart?: (
|
|
7
|
-
onDragEnd?: (
|
|
8
|
-
draggable?: boolean
|
|
5
|
+
onDragStart?: (e: React.DragEvent) => void;
|
|
6
|
+
onDragEnd?: (e: React.DragEvent) => void;
|
|
7
|
+
draggable?: boolean;
|
|
9
8
|
} & ({
|
|
10
9
|
children: import("react").ReactNode;
|
|
11
|
-
label?: string
|
|
10
|
+
label?: string;
|
|
12
11
|
} | {
|
|
13
12
|
children?: undefined;
|
|
14
13
|
label: string;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const SuggestionMenu: import("react").ForwardRefExoticComponent<{
|
|
3
2
|
id: string;
|
|
4
|
-
className?: string
|
|
3
|
+
className?: string;
|
|
5
4
|
children?: import("react").ReactNode;
|
|
6
5
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const SuggestionMenuEmptyItem: import("react").ForwardRefExoticComponent<{
|
|
3
|
-
className?: string
|
|
2
|
+
className?: string;
|
|
4
3
|
children?: import("react").ReactNode;
|
|
5
4
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const SuggestionMenuLoader: import("react").ForwardRefExoticComponent<{
|
|
3
|
-
className?: string
|
|
2
|
+
className?: string;
|
|
4
3
|
children?: import("react").ReactNode;
|
|
5
4
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const GridSuggestionMenu: import("react").ForwardRefExoticComponent<{
|
|
3
2
|
id: string;
|
|
4
3
|
columns: number;
|
|
5
|
-
className?: string
|
|
4
|
+
className?: string;
|
|
6
5
|
children?: import("react").ReactNode;
|
|
7
6
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -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,35 +1,34 @@
|
|
|
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>>;
|
|
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;
|
|
24
23
|
})) & import("react").RefAttributes<HTMLButtonElement>>;
|
|
25
24
|
export declare const ToolbarSelect: import("react").ForwardRefExoticComponent<{
|
|
26
|
-
className?: string
|
|
25
|
+
className?: string;
|
|
27
26
|
items: {
|
|
28
27
|
text: string;
|
|
29
28
|
icon: import("react").ReactNode;
|
|
30
29
|
onClick: () => void;
|
|
31
30
|
isSelected: boolean;
|
|
32
|
-
isDisabled?: boolean
|
|
31
|
+
isDisabled?: boolean;
|
|
33
32
|
}[];
|
|
34
|
-
isDisabled?: boolean
|
|
33
|
+
isDisabled?: boolean;
|
|
35
34
|
} & import("react").RefAttributes<HTMLDivElement>>;
|