@blocknote/ariakit 0.14.6 → 0.15.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-ariakit.js +616 -561
- package/dist/blocknote-ariakit.js.map +1 -1
- package/dist/blocknote-ariakit.umd.cjs +10 -12
- package/dist/blocknote-ariakit.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/dist/webpack-stats.json +1 -1
- package/package.json +7 -7
- package/src/index.tsx +10 -0
- package/src/style.css +105 -52
- package/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenu.tsx +23 -0
- package/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuEmptyItem.tsx +21 -0
- package/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuItem.tsx +40 -0
- package/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuLoader.tsx +26 -0
- package/types/src/index.d.ts +2 -2
- package/types/src/input/TextInput.d.ts +4 -5
- 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 +6 -0
- package/types/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuEmptyItem.d.ts +5 -0
- package/types/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuItem.d.ts +7 -0
- package/types/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuLoader.d.ts +5 -0
- 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 +0 -1
- package/types/src/toolbar/ToolbarSelect.d.ts +3 -4
|
@@ -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,10 +1,9 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ComponentProps } from "@blocknote/react";
|
|
3
2
|
export declare const PopoverTrigger: import("react").ForwardRefExoticComponent<{
|
|
4
3
|
children?: import("react").ReactNode;
|
|
5
4
|
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
6
5
|
export declare const PopoverContent: import("react").ForwardRefExoticComponent<{
|
|
7
|
-
className?: string
|
|
6
|
+
className?: string;
|
|
8
7
|
variant: "form-popover" | "panel-popover";
|
|
9
8
|
children?: import("react").ReactNode;
|
|
10
9
|
} & 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>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const GridSuggestionMenuItem: import("react").ForwardRefExoticComponent<{
|
|
2
|
+
className?: string;
|
|
3
|
+
id: string;
|
|
4
|
+
isSelected: boolean;
|
|
5
|
+
onClick: () => void;
|
|
6
|
+
item: import("@blocknote/react").DefaultReactGridSuggestionItem;
|
|
7
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -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,10 +1,9 @@
|
|
|
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
4
|
} & {
|
|
6
|
-
className?: string
|
|
5
|
+
className?: string;
|
|
7
6
|
children?: import("react").ReactNode;
|
|
8
|
-
onMouseEnter?: (
|
|
9
|
-
onMouseLeave?: (
|
|
7
|
+
onMouseEnter?: () => void;
|
|
8
|
+
onMouseLeave?: () => void;
|
|
10
9
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -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>>;
|