@blocknote/mantine 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-mantine.js +608 -558
- package/dist/blocknote-mantine.js.map +1 -1
- package/dist/blocknote-mantine.umd.cjs +10 -12
- 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 +7 -7
- package/src/index.tsx +11 -2
- package/src/style.css +47 -0
- package/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenu.tsx +23 -0
- package/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuEmptyItem.tsx +25 -0
- package/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuItem.tsx +42 -0
- package/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuLoader.tsx +28 -0
- package/types/src/form/TextInput.d.ts +4 -5
- package/types/src/index.d.ts +2 -2
- 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
package/dist/webpack-stats.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"builtAt":
|
|
1
|
+
{"builtAt":1721314102613,"assets":[{"name":"blocknote-mantine.umd.cjs","size":31327},{"name":"blocknote-mantine.umd.cjs.map","size":359604}],"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/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":792,"chunks":["ec22802"]},{"name":"./src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuLoader.tsx","size":392,"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/suggestionMenu/SuggestionMenu.tsx","size":314,"chunks":["ec22802"]},{"name":"./src/suggestionMenu/SuggestionMenuEmptyItem.tsx","size":352,"chunks":["ec22802"]},{"name":"./src/suggestionMenu/SuggestionMenuItem.tsx","size":1806,"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/form/TextInput.tsx","size":582,"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/style.css","size":0,"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.15.2",
|
|
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.15.2",
|
|
55
|
+
"@blocknote/react": "^0.15.2",
|
|
56
56
|
"@mantine/core": "^7.10.1",
|
|
57
57
|
"@mantine/hooks": "^7.10.1",
|
|
58
58
|
"@mantine/utils": "^6.0.21",
|
|
@@ -63,15 +63,15 @@
|
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@types/react": "^18.0.25",
|
|
65
65
|
"@types/react-dom": "^18.0.9",
|
|
66
|
-
"@vitejs/plugin-react": "^4.
|
|
66
|
+
"@vitejs/plugin-react": "^4.3.1",
|
|
67
67
|
"eslint": "^8.10.0",
|
|
68
68
|
"prettier": "^2.7.1",
|
|
69
69
|
"rimraf": "^5.0.5",
|
|
70
70
|
"rollup-plugin-webpack-stats": "^0.2.2",
|
|
71
71
|
"typescript": "^5.3.3",
|
|
72
|
-
"vite": "^
|
|
72
|
+
"vite": "^5.3.4",
|
|
73
73
|
"vite-plugin-eslint": "^1.8.1",
|
|
74
|
-
"vite-plugin-externalize-deps": "^0.
|
|
74
|
+
"vite-plugin-externalize-deps": "^0.8.0"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
77
|
"react": "^18",
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"access": "public",
|
|
87
87
|
"registry": "https://registry.npmjs.org/"
|
|
88
88
|
},
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "448b99bcdf0ebb032f906da1ba549764d50b7ae2"
|
|
90
90
|
}
|
package/src/index.tsx
CHANGED
|
@@ -19,7 +19,10 @@ import {
|
|
|
19
19
|
applyBlockNoteCSSVariablesFromTheme,
|
|
20
20
|
removeBlockNoteCSSVariables,
|
|
21
21
|
} from "./BlockNoteTheme";
|
|
22
|
-
import {
|
|
22
|
+
import { GridSuggestionMenu } from "./suggestionMenu/gridSuggestionMenu/GridSuggestionMenu";
|
|
23
|
+
import { GridSuggestionMenuEmptyItem } from "./suggestionMenu/gridSuggestionMenu/GridSuggestionMenuEmptyItem";
|
|
24
|
+
import { GridSuggestionMenuItem } from "./suggestionMenu/gridSuggestionMenu/GridSuggestionMenuItem";
|
|
25
|
+
import { GridSuggestionMenuLoader } from "./suggestionMenu/gridSuggestionMenu/GridSuggestionMenuLoader";
|
|
23
26
|
import {
|
|
24
27
|
Menu,
|
|
25
28
|
MenuDivider,
|
|
@@ -42,10 +45,10 @@ import { SuggestionMenuItem } from "./suggestionMenu/SuggestionMenuItem";
|
|
|
42
45
|
import { SuggestionMenuLabel } from "./suggestionMenu/SuggestionMenuLabel";
|
|
43
46
|
import { SuggestionMenuLoader } from "./suggestionMenu/SuggestionMenuLoader";
|
|
44
47
|
import { TableHandle } from "./tableHandle/TableHandle";
|
|
48
|
+
import { TextInput } from "./form/TextInput";
|
|
45
49
|
import { Toolbar } from "./toolbar/Toolbar";
|
|
46
50
|
import { ToolbarButton } from "./toolbar/ToolbarButton";
|
|
47
51
|
import { ToolbarSelect } from "./toolbar/ToolbarSelect";
|
|
48
|
-
|
|
49
52
|
import "./style.css";
|
|
50
53
|
|
|
51
54
|
export * from "./BlockNoteTheme";
|
|
@@ -64,6 +67,12 @@ export const components: Components = {
|
|
|
64
67
|
TabPanel: PanelTab,
|
|
65
68
|
TextInput: PanelTextInput,
|
|
66
69
|
},
|
|
70
|
+
GridSuggestionMenu: {
|
|
71
|
+
Root: GridSuggestionMenu,
|
|
72
|
+
Item: GridSuggestionMenuItem,
|
|
73
|
+
EmptyItem: GridSuggestionMenuEmptyItem,
|
|
74
|
+
Loader: GridSuggestionMenuLoader,
|
|
75
|
+
},
|
|
67
76
|
LinkToolbar: {
|
|
68
77
|
Root: Toolbar,
|
|
69
78
|
Button: ToolbarButton,
|
package/src/style.css
CHANGED
|
@@ -299,6 +299,7 @@
|
|
|
299
299
|
box-shadow: var(--bn-shadow-medium);
|
|
300
300
|
box-sizing: border-box;
|
|
301
301
|
color: var(--bn-colors-menu-text);
|
|
302
|
+
height: fit-content;
|
|
302
303
|
overflow-y: auto;
|
|
303
304
|
padding: 2px;
|
|
304
305
|
}
|
|
@@ -362,6 +363,52 @@
|
|
|
362
363
|
background-color: var(--bn-colors-side-menu);
|
|
363
364
|
}
|
|
364
365
|
|
|
366
|
+
.bn-mantine .bn-grid-suggestion-menu {
|
|
367
|
+
background: var(--bn-colors-menu-background);
|
|
368
|
+
border-radius: var(--bn-border-radius-large);
|
|
369
|
+
box-shadow: var(--bn-shadow-medium);
|
|
370
|
+
display: grid;
|
|
371
|
+
gap: 7px;
|
|
372
|
+
height: fit-content;
|
|
373
|
+
justify-items: center;
|
|
374
|
+
max-height: min(500px, 100%);
|
|
375
|
+
overflow-y: auto;
|
|
376
|
+
padding: 20px;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.bn-mantine .bn-grid-suggestion-menu-item {
|
|
380
|
+
align-items: center;
|
|
381
|
+
border-radius: var(--bn-border-radius-large);
|
|
382
|
+
cursor: pointer;
|
|
383
|
+
display: flex;
|
|
384
|
+
font-size: 24px;
|
|
385
|
+
height: 32px;
|
|
386
|
+
justify-content: center;
|
|
387
|
+
margin: 2px;
|
|
388
|
+
padding: 4px;
|
|
389
|
+
width: 32px;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
.bn-mantine .bn-grid-suggestion-menu-item[aria-selected="true"],
|
|
393
|
+
.bn-mantine .bn-grid-suggestion-menu-item:hover {
|
|
394
|
+
background-color: var(--bn-colors-hovered-background);
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
.bn-mantine .bn-grid-suggestion-menu-empty-item,
|
|
398
|
+
.bn-mantine .bn-grid-suggestion-menu-loader{
|
|
399
|
+
align-items: center;
|
|
400
|
+
color: var(--bn-colors-menu-text);
|
|
401
|
+
display: flex;
|
|
402
|
+
font-size: 14px;
|
|
403
|
+
font-weight: 500;
|
|
404
|
+
height: 32px;
|
|
405
|
+
justify-content: center;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
.bn-mantine .bn-grid-suggestion-menu-loader span {
|
|
409
|
+
background-color: var(--bn-colors-side-menu);
|
|
410
|
+
}
|
|
411
|
+
|
|
365
412
|
/* Side Menu styling */
|
|
366
413
|
.bn-mantine .bn-side-menu {
|
|
367
414
|
background-color: transparent;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { assertEmpty } from "@blocknote/core";
|
|
2
|
+
import { ComponentProps } from "@blocknote/react";
|
|
3
|
+
import { forwardRef } from "react";
|
|
4
|
+
|
|
5
|
+
export const GridSuggestionMenu = forwardRef<
|
|
6
|
+
HTMLDivElement,
|
|
7
|
+
ComponentProps["GridSuggestionMenu"]["Root"]
|
|
8
|
+
>((props, ref) => {
|
|
9
|
+
const { className, children, id, columns, ...rest } = props;
|
|
10
|
+
|
|
11
|
+
assertEmpty(rest);
|
|
12
|
+
|
|
13
|
+
return (
|
|
14
|
+
<div
|
|
15
|
+
className={className}
|
|
16
|
+
style={{ gridTemplateColumns: `repeat(${columns}, 1fr)` } as any}
|
|
17
|
+
ref={ref}
|
|
18
|
+
id={id}
|
|
19
|
+
role="grid">
|
|
20
|
+
{children}
|
|
21
|
+
</div>
|
|
22
|
+
);
|
|
23
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Group as MantineGroup } from "@mantine/core";
|
|
2
|
+
|
|
3
|
+
import { assertEmpty } from "@blocknote/core";
|
|
4
|
+
import { ComponentProps } from "@blocknote/react";
|
|
5
|
+
import { forwardRef } from "react";
|
|
6
|
+
|
|
7
|
+
export const GridSuggestionMenuEmptyItem = forwardRef<
|
|
8
|
+
HTMLDivElement,
|
|
9
|
+
ComponentProps["GridSuggestionMenu"]["EmptyItem"]
|
|
10
|
+
>((props, ref) => {
|
|
11
|
+
const { className, children, columns, ...rest } = props;
|
|
12
|
+
|
|
13
|
+
assertEmpty(rest);
|
|
14
|
+
|
|
15
|
+
return (
|
|
16
|
+
<MantineGroup
|
|
17
|
+
className={className}
|
|
18
|
+
style={{ gridColumn: `1 / ${columns + 1}` }}
|
|
19
|
+
ref={ref}>
|
|
20
|
+
<MantineGroup className="bn-mt-suggestion-menu-item-title">
|
|
21
|
+
{children}
|
|
22
|
+
</MantineGroup>
|
|
23
|
+
</MantineGroup>
|
|
24
|
+
);
|
|
25
|
+
});
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { mergeRefs } from "@mantine/hooks";
|
|
2
|
+
|
|
3
|
+
import { assertEmpty } from "@blocknote/core";
|
|
4
|
+
import { ComponentProps, elementOverflow } from "@blocknote/react";
|
|
5
|
+
import { forwardRef, useEffect, useRef } from "react";
|
|
6
|
+
|
|
7
|
+
export const GridSuggestionMenuItem = forwardRef<
|
|
8
|
+
HTMLDivElement,
|
|
9
|
+
ComponentProps["GridSuggestionMenu"]["Item"]
|
|
10
|
+
>((props, ref) => {
|
|
11
|
+
const { className, isSelected, onClick, item, id, ...rest } = props;
|
|
12
|
+
|
|
13
|
+
assertEmpty(rest);
|
|
14
|
+
|
|
15
|
+
const itemRef = useRef<HTMLDivElement>(null);
|
|
16
|
+
|
|
17
|
+
useEffect(() => {
|
|
18
|
+
if (!itemRef.current || !isSelected) {
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
const overflow = elementOverflow(itemRef.current);
|
|
23
|
+
|
|
24
|
+
if (overflow === "top") {
|
|
25
|
+
itemRef.current.scrollIntoView(true);
|
|
26
|
+
} else if (overflow === "bottom") {
|
|
27
|
+
itemRef.current.scrollIntoView(false);
|
|
28
|
+
}
|
|
29
|
+
}, [isSelected]);
|
|
30
|
+
|
|
31
|
+
return (
|
|
32
|
+
<div
|
|
33
|
+
className={className}
|
|
34
|
+
ref={mergeRefs(ref, itemRef)}
|
|
35
|
+
id={id}
|
|
36
|
+
role="option"
|
|
37
|
+
onClick={onClick}
|
|
38
|
+
aria-selected={isSelected || undefined}>
|
|
39
|
+
{item.icon}
|
|
40
|
+
</div>
|
|
41
|
+
);
|
|
42
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Loader as MantineLoader } from "@mantine/core";
|
|
2
|
+
|
|
3
|
+
import { assertEmpty } from "@blocknote/core";
|
|
4
|
+
import { ComponentProps } from "@blocknote/react";
|
|
5
|
+
import { forwardRef } from "react";
|
|
6
|
+
|
|
7
|
+
export const GridSuggestionMenuLoader = forwardRef<
|
|
8
|
+
HTMLDivElement,
|
|
9
|
+
ComponentProps["GridSuggestionMenu"]["Loader"]
|
|
10
|
+
>((props, ref) => {
|
|
11
|
+
const {
|
|
12
|
+
className,
|
|
13
|
+
children, // unused, using "dots" instead
|
|
14
|
+
columns,
|
|
15
|
+
...rest
|
|
16
|
+
} = props;
|
|
17
|
+
|
|
18
|
+
assertEmpty(rest);
|
|
19
|
+
|
|
20
|
+
return (
|
|
21
|
+
<MantineLoader
|
|
22
|
+
className={className}
|
|
23
|
+
style={{ gridColumn: `1 / ${columns + 1}` }}
|
|
24
|
+
type="dots"
|
|
25
|
+
ref={ref}
|
|
26
|
+
/>
|
|
27
|
+
);
|
|
28
|
+
});
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const TextInput: import("react").ForwardRefExoticComponent<{
|
|
3
|
-
className?: string
|
|
2
|
+
className?: string;
|
|
4
3
|
name: string;
|
|
5
|
-
label?: string
|
|
4
|
+
label?: string;
|
|
6
5
|
icon: import("react").ReactNode;
|
|
7
|
-
autoFocus?: boolean
|
|
6
|
+
autoFocus?: boolean;
|
|
8
7
|
placeholder: string;
|
|
9
8
|
value: string;
|
|
10
9
|
onKeyDown: (event: import("react").KeyboardEvent<HTMLInputElement>) => void;
|
|
11
10
|
onChange: (event: import("react").ChangeEvent<HTMLInputElement>) => void;
|
|
12
|
-
onSubmit?: (
|
|
11
|
+
onSubmit?: () => void;
|
|
13
12
|
} & import("react").RefAttributes<HTMLInputElement>>;
|
package/types/src/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InlineContentSchema, StyleSchema } from "@blocknote/core";
|
|
1
|
+
import { BlockSchema, InlineContentSchema, StyleSchema } from "@blocknote/core";
|
|
2
2
|
import { BlockNoteViewRaw, Components } from "@blocknote/react";
|
|
3
3
|
import { ComponentProps } from "react";
|
|
4
4
|
import { Theme } from "./BlockNoteTheme";
|
|
@@ -6,7 +6,7 @@ import "./style.css";
|
|
|
6
6
|
export * from "./BlockNoteTheme";
|
|
7
7
|
export * from "./defaultThemes";
|
|
8
8
|
export declare const components: Components;
|
|
9
|
-
export declare const BlockNoteView: <BSchema extends
|
|
9
|
+
export declare const BlockNoteView: <BSchema extends BlockSchema, ISchema extends InlineContentSchema, SSchema extends StyleSchema>(props: Omit<ComponentProps<typeof BlockNoteViewRaw<BSchema, ISchema, SSchema>>, "theme"> & {
|
|
10
10
|
theme?: "light" | "dark" | Theme | {
|
|
11
11
|
light: Theme;
|
|
12
12
|
dark: Theme;
|
package/types/src/menu/Menu.d.ts
CHANGED
|
@@ -1,24 +1,23 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ComponentProps } from "@blocknote/react";
|
|
3
2
|
export declare const Menu: (props: ComponentProps["Generic"]["Menu"]["Root"]) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export declare const MenuItem: import("react").ForwardRefExoticComponent<{
|
|
5
|
-
className?: string
|
|
4
|
+
className?: string;
|
|
6
5
|
children?: import("react").ReactNode;
|
|
7
|
-
subTrigger?: boolean
|
|
6
|
+
subTrigger?: boolean;
|
|
8
7
|
icon?: import("react").ReactNode;
|
|
9
|
-
checked?: boolean
|
|
10
|
-
onClick?: (
|
|
8
|
+
checked?: boolean;
|
|
9
|
+
onClick?: () => void;
|
|
11
10
|
} & import("react").RefAttributes<HTMLButtonElement & HTMLDivElement>>;
|
|
12
11
|
export declare const MenuTrigger: (props: ComponentProps["Generic"]["Menu"]["Trigger"]) => import("react/jsx-runtime").JSX.Element;
|
|
13
12
|
export declare const MenuDropdown: import("react").ForwardRefExoticComponent<{
|
|
14
|
-
className?: string
|
|
13
|
+
className?: string;
|
|
15
14
|
children?: import("react").ReactNode;
|
|
16
|
-
sub?: boolean
|
|
15
|
+
sub?: boolean;
|
|
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,9 +1,8 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ComponentProps } from "@blocknote/react";
|
|
3
2
|
export declare const Popover: (props: ComponentProps["Generic"]["Popover"]["Root"]) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export declare const PopoverTrigger: (props: ComponentProps["Generic"]["Popover"]["Trigger"]) => import("react/jsx-runtime").JSX.Element;
|
|
5
4
|
export declare const PopoverContent: import("react").ForwardRefExoticComponent<{
|
|
6
|
-
className?: string
|
|
5
|
+
className?: string;
|
|
7
6
|
variant: "form-popover" | "panel-popover";
|
|
8
7
|
children?: import("react").ReactNode;
|
|
9
8
|
} & 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>>;
|