@blocknote/ariakit 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-ariakit.cjs +1 -1
- package/dist/blocknote-ariakit.cjs.map +1 -1
- package/dist/blocknote-ariakit.js +269 -229
- package/dist/blocknote-ariakit.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 +40 -3
- package/src/comments/Comment.tsx +9 -3
- package/src/comments/Editor.tsx +3 -2
- package/src/components.ts +4 -1
- package/src/style.css +35 -13
- package/types/src/BlockNoteView.d.ts +2 -2
- 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/input/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
package/src/comments/Card.tsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Group as AriakitGroup } from "@ariakit/react";
|
|
1
|
+
import { Button as AriakitButton, Group as AriakitGroup } from "@ariakit/react";
|
|
2
2
|
|
|
3
3
|
import { assertEmpty, mergeCSSClasses } from "@blocknote/core";
|
|
4
4
|
import { ComponentProps } from "@blocknote/react";
|
|
@@ -8,14 +8,31 @@ export const Card = forwardRef<
|
|
|
8
8
|
HTMLDivElement,
|
|
9
9
|
ComponentProps["Comments"]["Card"]
|
|
10
10
|
>((props, ref) => {
|
|
11
|
-
const {
|
|
11
|
+
const {
|
|
12
|
+
className,
|
|
13
|
+
children,
|
|
14
|
+
selected,
|
|
15
|
+
headerText,
|
|
16
|
+
onFocus,
|
|
17
|
+
onBlur,
|
|
18
|
+
tabIndex,
|
|
19
|
+
...rest
|
|
20
|
+
} = props;
|
|
12
21
|
|
|
13
22
|
assertEmpty(rest, false);
|
|
14
23
|
|
|
15
24
|
return (
|
|
16
25
|
<AriakitGroup
|
|
17
|
-
className={mergeCSSClasses(
|
|
26
|
+
className={mergeCSSClasses(
|
|
27
|
+
className,
|
|
28
|
+
"bn-ak-hovercard",
|
|
29
|
+
selected && "selected"
|
|
30
|
+
)}
|
|
31
|
+
onFocus={onFocus}
|
|
32
|
+
onBlur={onBlur}
|
|
33
|
+
tabIndex={tabIndex}
|
|
18
34
|
ref={ref}>
|
|
35
|
+
{headerText && <div className={"bn-header-text"}>{headerText}</div>}
|
|
19
36
|
{children}
|
|
20
37
|
</AriakitGroup>
|
|
21
38
|
);
|
|
@@ -37,3 +54,23 @@ export const CardSection = forwardRef<
|
|
|
37
54
|
</AriakitGroup>
|
|
38
55
|
);
|
|
39
56
|
});
|
|
57
|
+
|
|
58
|
+
export const ExpandSectionsPrompt = forwardRef<
|
|
59
|
+
HTMLButtonElement,
|
|
60
|
+
ComponentProps["Comments"]["ExpandSectionsPrompt"]
|
|
61
|
+
>((props, ref) => {
|
|
62
|
+
const { className, children, ...rest } = props;
|
|
63
|
+
|
|
64
|
+
assertEmpty(rest, false);
|
|
65
|
+
|
|
66
|
+
return (
|
|
67
|
+
<AriakitButton
|
|
68
|
+
className={mergeCSSClasses(
|
|
69
|
+
className,
|
|
70
|
+
"bn-ak-button bn-ak-secondary bn-ak-expand-sections-prompt"
|
|
71
|
+
)}
|
|
72
|
+
ref={ref}>
|
|
73
|
+
{children}
|
|
74
|
+
</AriakitButton>
|
|
75
|
+
);
|
|
76
|
+
});
|
package/src/comments/Comment.tsx
CHANGED
|
@@ -6,9 +6,12 @@ import { forwardRef, useState } from "react";
|
|
|
6
6
|
|
|
7
7
|
const AuthorInfo = forwardRef<
|
|
8
8
|
HTMLDivElement,
|
|
9
|
-
Pick<
|
|
9
|
+
Pick<
|
|
10
|
+
ComponentProps["Comments"]["Comment"],
|
|
11
|
+
"authorInfo" | "timeString" | "edited"
|
|
12
|
+
>
|
|
10
13
|
>((props, _ref) => {
|
|
11
|
-
const { authorInfo, timeString, ...rest } = props;
|
|
14
|
+
const { authorInfo, timeString, edited, ...rest } = props;
|
|
12
15
|
|
|
13
16
|
assertEmpty(rest, false);
|
|
14
17
|
|
|
@@ -30,7 +33,9 @@ const AuthorInfo = forwardRef<
|
|
|
30
33
|
/>
|
|
31
34
|
<div className={"bn-ak-username"}>
|
|
32
35
|
{authorInfo.username}
|
|
33
|
-
<span>
|
|
36
|
+
<span>
|
|
37
|
+
{timeString} {edited && "(edited)"}
|
|
38
|
+
</span>
|
|
34
39
|
</div>
|
|
35
40
|
</AriakitGroup>
|
|
36
41
|
);
|
|
@@ -47,6 +52,7 @@ export const Comment = forwardRef<
|
|
|
47
52
|
timeString,
|
|
48
53
|
actions,
|
|
49
54
|
children,
|
|
55
|
+
edited,
|
|
50
56
|
...rest
|
|
51
57
|
} = props;
|
|
52
58
|
|
package/src/comments/Editor.tsx
CHANGED
|
@@ -12,13 +12,14 @@ export const Editor = forwardRef<
|
|
|
12
12
|
HTMLDivElement,
|
|
13
13
|
ComponentProps["Comments"]["Editor"]
|
|
14
14
|
>((props, ref) => {
|
|
15
|
-
const { className, onFocus, onBlur, editor, editable, ...rest } =
|
|
15
|
+
const { className, onFocus, onBlur, autoFocus, editor, editable, ...rest } =
|
|
16
|
+
props;
|
|
16
17
|
|
|
17
18
|
assertEmpty(rest, false);
|
|
18
19
|
|
|
19
20
|
return (
|
|
20
21
|
<BlockNoteView
|
|
21
|
-
autoFocus={
|
|
22
|
+
autoFocus={autoFocus}
|
|
22
23
|
className={className}
|
|
23
24
|
editor={props.editor}
|
|
24
25
|
sideMenu={false}
|
package/src/components.ts
CHANGED
|
@@ -33,7 +33,7 @@ import { TableHandle } from "./tableHandle/TableHandle.js";
|
|
|
33
33
|
import { Toolbar } from "./toolbar/Toolbar.js";
|
|
34
34
|
import { ToolbarButton } from "./toolbar/ToolbarButton.js";
|
|
35
35
|
import { ToolbarSelect } from "./toolbar/ToolbarSelect.js";
|
|
36
|
-
import { Card, CardSection } from "./comments/Card.js";
|
|
36
|
+
import { Card, CardSection, ExpandSectionsPrompt } from "./comments/Card.js";
|
|
37
37
|
import { Comment } from "./comments/Comment.js";
|
|
38
38
|
import { Editor } from "./comments/Editor.js";
|
|
39
39
|
import { Badge, BadgeGroup } from "./badge/Badge.js";
|
|
@@ -60,6 +60,7 @@ export const components: Components = {
|
|
|
60
60
|
LinkToolbar: {
|
|
61
61
|
Root: Toolbar,
|
|
62
62
|
Button: ToolbarButton,
|
|
63
|
+
Select: ToolbarSelect,
|
|
63
64
|
},
|
|
64
65
|
SideMenu: {
|
|
65
66
|
Root: SideMenu,
|
|
@@ -81,6 +82,7 @@ export const components: Components = {
|
|
|
81
82
|
Editor: Editor,
|
|
82
83
|
Card: Card,
|
|
83
84
|
CardSection: CardSection,
|
|
85
|
+
ExpandSectionsPrompt: ExpandSectionsPrompt,
|
|
84
86
|
},
|
|
85
87
|
Generic: {
|
|
86
88
|
Badge: {
|
|
@@ -90,6 +92,7 @@ export const components: Components = {
|
|
|
90
92
|
Toolbar: {
|
|
91
93
|
Root: Toolbar,
|
|
92
94
|
Button: ToolbarButton,
|
|
95
|
+
Select: ToolbarSelect,
|
|
93
96
|
},
|
|
94
97
|
Form: {
|
|
95
98
|
Root: Form,
|
package/src/style.css
CHANGED
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
--highlight: rgb(255 255 255/20%);
|
|
91
91
|
--shadow: rgb(0 0 0/10%);
|
|
92
92
|
box-shadow: inset 0 0 0 1px var(--border), inset 0 2px 0 var(--highlight),
|
|
93
|
-
|
|
93
|
+
inset 0 -1px 0 var(--shadow), 0 1px 1px var(--shadow);
|
|
94
94
|
font-size: 0.7rem;
|
|
95
95
|
border-radius: 4px;
|
|
96
96
|
padding-inline: 4px;
|
|
@@ -221,14 +221,14 @@
|
|
|
221
221
|
}
|
|
222
222
|
|
|
223
223
|
.bn-ariakit .bn-thread-comments {
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
224
|
+
display: flex;
|
|
225
|
+
flex-direction: column;
|
|
226
|
+
gap: 16px;
|
|
227
227
|
}
|
|
228
228
|
|
|
229
229
|
.bn-ak-avatar {
|
|
230
|
-
|
|
231
|
-
|
|
230
|
+
height: 24px;
|
|
231
|
+
width: 24px;
|
|
232
232
|
}
|
|
233
233
|
|
|
234
234
|
.bn-ak-username {
|
|
@@ -244,9 +244,9 @@
|
|
|
244
244
|
}
|
|
245
245
|
|
|
246
246
|
.bn-ak-author-info {
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
247
|
+
align-items: center;
|
|
248
|
+
display: flex;
|
|
249
|
+
gap: 16px
|
|
250
250
|
}
|
|
251
251
|
|
|
252
252
|
.bn-ariakit .bn-comment-editor .bn-editor {
|
|
@@ -271,9 +271,9 @@
|
|
|
271
271
|
}
|
|
272
272
|
|
|
273
273
|
.bn-ak-badge-group {
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
274
|
+
align-items: center;
|
|
275
|
+
display: flex;
|
|
276
|
+
gap: 4px;
|
|
277
277
|
flex-wrap: wrap;
|
|
278
278
|
width: 100%;
|
|
279
279
|
}
|
|
@@ -309,11 +309,33 @@
|
|
|
309
309
|
}
|
|
310
310
|
|
|
311
311
|
.bn-ak-skeleton {
|
|
312
|
-
|
|
312
|
+
background-color: rgb(255 255 255/25%);
|
|
313
313
|
}
|
|
314
314
|
|
|
315
315
|
.bn-ak-username.bn-ak-skeleton {
|
|
316
316
|
border-radius: 8px;
|
|
317
317
|
height: 16px;
|
|
318
318
|
width: 100px;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.bn-ak-expand-sections-prompt {
|
|
322
|
+
padding: 0;
|
|
323
|
+
width: fit-content;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
.bn-ak-expand-sections-prompt:hover {
|
|
327
|
+
background-color: transparent;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.bn-ariakit .bn-thread .bn-header-text,
|
|
331
|
+
.bn-ariakit .bn-thread .bn-resolved-text {
|
|
332
|
+
font-size: 0.8rem;
|
|
333
|
+
font-style: italic;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.bn-ariakit .bn-thread.selected .bn-header-text,
|
|
337
|
+
.bn-ariakit .bn-thread.selected .bn-resolved-text,
|
|
338
|
+
.bn-ariakit .bn-thread.selected .bn-ak-author-info,
|
|
339
|
+
.bn-ariakit .bn-thread.selected .bn-ak-expand-sections-prompt {
|
|
340
|
+
color: var(--bn-colors-selected-text);
|
|
319
341
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { InlineContentSchema, StyleSchema } from "@blocknote/core";
|
|
1
|
+
import { BlockSchema, InlineContentSchema, StyleSchema } from "@blocknote/core";
|
|
2
2
|
import { BlockNoteViewProps } from "@blocknote/react";
|
|
3
|
-
export declare const BlockNoteView: <BSchema extends
|
|
3
|
+
export declare const BlockNoteView: <BSchema extends BlockSchema, ISchema extends InlineContentSchema, SSchema extends StyleSchema>(props: BlockNoteViewProps<BSchema, ISchema, SSchema>) => import("react/jsx-runtime.js").JSX.Element;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const Badge: import("react").ForwardRefExoticComponent<{
|
|
3
|
-
className?: string
|
|
2
|
+
className?: string;
|
|
4
3
|
text: string;
|
|
5
4
|
icon?: import("react").ReactNode;
|
|
6
|
-
isSelected?: boolean
|
|
7
|
-
mainTooltip?: string
|
|
8
|
-
secondaryTooltip?: string
|
|
9
|
-
onClick?: (
|
|
10
|
-
onMouseEnter?: (
|
|
5
|
+
isSelected?: boolean;
|
|
6
|
+
mainTooltip?: string;
|
|
7
|
+
secondaryTooltip?: string;
|
|
8
|
+
onClick?: (event: React.MouseEvent) => void;
|
|
9
|
+
onMouseEnter?: () => void;
|
|
11
10
|
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
12
11
|
export declare const BadgeGroup: import("react").ForwardRefExoticComponent<{
|
|
13
|
-
className?: string
|
|
12
|
+
className?: string;
|
|
14
13
|
children: import("react").ReactNode;
|
|
15
14
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,9 +1,17 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const Card: import("react").ForwardRefExoticComponent<{
|
|
3
|
-
className?: string
|
|
2
|
+
className?: string;
|
|
3
|
+
headerText?: string;
|
|
4
|
+
selected?: boolean;
|
|
5
|
+
onFocus?: (event: React.FocusEvent) => void;
|
|
6
|
+
onBlur?: (event: React.FocusEvent) => void;
|
|
7
|
+
tabIndex?: number;
|
|
4
8
|
children?: import("react").ReactNode;
|
|
5
9
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
10
|
export declare const CardSection: import("react").ForwardRefExoticComponent<{
|
|
7
|
-
className?: string
|
|
11
|
+
className?: string;
|
|
8
12
|
children?: import("react").ReactNode;
|
|
9
13
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
14
|
+
export declare const ExpandSectionsPrompt: import("react").ForwardRefExoticComponent<{
|
|
15
|
+
className?: string;
|
|
16
|
+
children?: import("react").ReactNode;
|
|
17
|
+
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const Comment: import("react").ForwardRefExoticComponent<{
|
|
3
|
-
className?: string
|
|
2
|
+
className?: string;
|
|
4
3
|
children?: import("react").ReactNode;
|
|
5
4
|
authorInfo: "loading" | import("@blocknote/core/types/src/comments").User;
|
|
6
5
|
timeString: string;
|
|
6
|
+
edited: boolean;
|
|
7
7
|
actions?: import("react").ReactNode;
|
|
8
|
-
showActions?: boolean | "hover"
|
|
8
|
+
showActions?: boolean | "hover";
|
|
9
9
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const Editor: import("react").ForwardRefExoticComponent<{
|
|
3
|
-
className?: string
|
|
2
|
+
className?: string;
|
|
3
|
+
autoFocus?: boolean;
|
|
4
4
|
editable: boolean;
|
|
5
5
|
editor: import("@blocknote/core").BlockNoteEditor<any, any, any>;
|
|
6
|
-
onFocus?: (
|
|
7
|
-
onBlur?: (
|
|
6
|
+
onFocus?: () => void;
|
|
7
|
+
onBlur?: () => void;
|
|
8
8
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -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>>;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const MenuButton: 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;
|
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 MenuDropdown: import("react").ForwardRefExoticComponent<{
|
|
5
|
-
className?: string
|
|
4
|
+
className?: string;
|
|
6
5
|
children?: import("react").ReactNode;
|
|
7
|
-
sub?: boolean
|
|
6
|
+
sub?: boolean;
|
|
8
7
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
8
|
export declare const MenuItem: import("react").ForwardRefExoticComponent<{
|
|
10
|
-
className?: string
|
|
9
|
+
className?: string;
|
|
11
10
|
children?: import("react").ReactNode;
|
|
12
|
-
subTrigger?: boolean
|
|
11
|
+
subTrigger?: boolean;
|
|
13
12
|
icon?: import("react").ReactNode;
|
|
14
|
-
checked?: boolean
|
|
15
|
-
onClick?: (
|
|
13
|
+
checked?: boolean;
|
|
14
|
+
onClick?: () => void;
|
|
16
15
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
17
16
|
export declare const MenuLabel: import("react").ForwardRefExoticComponent<{
|
|
18
|
-
className?: string
|
|
17
|
+
className?: string;
|
|
19
18
|
children?: import("react").ReactNode;
|
|
20
19
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
21
20
|
export declare const MenuTrigger: (props: ComponentProps["Generic"]["Menu"]["Trigger"]) => string | number | boolean | import("react/jsx-runtime").JSX.Element | Iterable<import("react").ReactNode> | null | undefined;
|
|
22
21
|
export declare const MenuDivider: import("react").ForwardRefExoticComponent<{
|
|
23
|
-
className?: string
|
|
22
|
+
className?: string;
|
|
24
23
|
} & import("react").RefAttributes<HTMLHRElement>>;
|
|
@@ -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>>;
|
|
@@ -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,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,19 +1,18 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
/**
|
|
3
2
|
* Helper for basic buttons that show in the formatting toolbar.
|
|
4
3
|
*/
|
|
5
4
|
export declare const ToolbarButton: import("react").ForwardRefExoticComponent<({
|
|
6
|
-
className?: string
|
|
7
|
-
mainTooltip?: string
|
|
8
|
-
secondaryTooltip?: string
|
|
5
|
+
className?: string;
|
|
6
|
+
mainTooltip?: string;
|
|
7
|
+
secondaryTooltip?: string;
|
|
9
8
|
icon?: import("react").ReactNode;
|
|
10
|
-
onClick?: (
|
|
11
|
-
isSelected?: boolean
|
|
12
|
-
isDisabled?: boolean
|
|
13
|
-
variant?: "default" | "compact"
|
|
9
|
+
onClick?: (e: import("react").MouseEvent) => void;
|
|
10
|
+
isSelected?: boolean;
|
|
11
|
+
isDisabled?: boolean;
|
|
12
|
+
variant?: "default" | "compact";
|
|
14
13
|
} & ({
|
|
15
14
|
children: import("react").ReactNode;
|
|
16
|
-
label?: string
|
|
15
|
+
label?: string;
|
|
17
16
|
} | {
|
|
18
17
|
children?: undefined;
|
|
19
18
|
label: string;
|