@blocknote/ariakit 0.15.2 → 0.15.3
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/webpack-stats.json +1 -1
- package/package.json +4 -4
- package/types/src/index.d.ts +2 -2
- package/types/src/input/TextInput.d.ts +5 -4
- package/types/src/menu/Menu.d.ts +9 -8
- package/types/src/panel/Panel.d.ts +2 -1
- package/types/src/panel/PanelButton.d.ts +3 -2
- package/types/src/panel/PanelFileInput.d.ts +2 -1
- package/types/src/panel/PanelTab.d.ts +2 -1
- package/types/src/panel/PanelTextInput.d.ts +3 -2
- package/types/src/popover/Popover.d.ts +2 -1
- package/types/src/sideMenu/SideMenu.d.ts +2 -1
- package/types/src/sideMenu/SideMenuButton.d.ts +7 -6
- package/types/src/suggestionMenu/SuggestionMenu.d.ts +2 -1
- package/types/src/suggestionMenu/SuggestionMenuEmptyItem.d.ts +2 -1
- package/types/src/suggestionMenu/SuggestionMenuItem.d.ts +2 -1
- package/types/src/suggestionMenu/SuggestionMenuLabel.d.ts +2 -1
- package/types/src/suggestionMenu/SuggestionMenuLoader.d.ts +2 -1
- package/types/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenu.d.ts +2 -1
- package/types/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuEmptyItem.d.ts +2 -1
- package/types/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuItem.d.ts +2 -1
- package/types/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuLoader.d.ts +2 -1
- package/types/src/tableHandle/TableHandle.d.ts +5 -4
- package/types/src/toolbar/Toolbar.d.ts +5 -4
- package/types/src/toolbar/ToolbarButton.d.ts +1 -0
- package/types/src/toolbar/ToolbarSelect.d.ts +4 -3
package/dist/webpack-stats.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"builtAt":
|
|
1
|
+
{"builtAt":1721335284932,"assets":[{"name":"blocknote-ariakit.umd.cjs","size":24266},{"name":"blocknote-ariakit.umd.cjs.map","size":108310}],"chunks":[{"id":"ec22802","entry":true,"initial":true,"files":["blocknote-ariakit.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":1205,"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":43848,"chunks":["ec22802"]},{"name":"../../node_modules/react/jsx-runtime.js","size":225,"chunks":["ec22802"]},{"name":"./src/input/Form.tsx","size":175,"chunks":["ec22802"]},{"name":"./src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenu.tsx","size":373,"chunks":["ec22802"]},{"name":"./src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuEmptyItem.tsx","size":499,"chunks":["ec22802"]},{"name":"./src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuItem.tsx","size":813,"chunks":["ec22802"]},{"name":"./src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuLoader.tsx","size":385,"chunks":["ec22802"]},{"name":"./src/input/TextInput.tsx","size":898,"chunks":["ec22802"]},{"name":"./src/menu/Menu.tsx","size":2665,"chunks":["ec22802"]},{"name":"./src/panel/Panel.tsx","size":1224,"chunks":["ec22802"]},{"name":"./src/panel/PanelButton.tsx","size":378,"chunks":["ec22802"]},{"name":"./src/panel/PanelFileInput.tsx","size":538,"chunks":["ec22802"]},{"name":"./src/panel/PanelTab.tsx","size":221,"chunks":["ec22802"]},{"name":"./src/panel/PanelTextInput.tsx","size":539,"chunks":["ec22802"]},{"name":"./src/popover/Popover.tsx","size":801,"chunks":["ec22802"]},{"name":"./src/sideMenu/SideMenu.tsx","size":243,"chunks":["ec22802"]},{"name":"./src/sideMenu/SideMenuButton.tsx","size":618,"chunks":["ec22802"]},{"name":"./src/suggestionMenu/SuggestionMenu.tsx","size":357,"chunks":["ec22802"]},{"name":"./src/suggestionMenu/SuggestionMenuItem.tsx","size":1804,"chunks":["ec22802"]},{"name":"./src/suggestionMenu/SuggestionMenuEmptyItem.tsx","size":435,"chunks":["ec22802"]},{"name":"./src/suggestionMenu/SuggestionMenuLabel.tsx","size":326,"chunks":["ec22802"]},{"name":"./src/suggestionMenu/SuggestionMenuLoader.tsx","size":233,"chunks":["ec22802"]},{"name":"./src/tableHandle/TableHandle.tsx","size":558,"chunks":["ec22802"]},{"name":"./src/toolbar/Toolbar.tsx","size":416,"chunks":["ec22802"]},{"name":"./src/toolbar/ToolbarButton.tsx","size":1713,"chunks":["ec22802"]},{"name":"./src/toolbar/ToolbarSelect.tsx","size":1565,"chunks":["ec22802"]},{"name":"./src/style.css","size":0,"chunks":["ec22802"]},{"name":"./src/index.tsx","size":1513,"chunks":["ec22802"]}]}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"homepage": "https://github.com/TypeCellOS/BlockNote",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MPL-2.0",
|
|
6
|
-
"version": "0.15.
|
|
6
|
+
"version": "0.15.3",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist",
|
|
9
9
|
"types",
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@ariakit/react": "^0.4.3",
|
|
52
|
-
"@blocknote/core": "^0.15.
|
|
53
|
-
"@blocknote/react": "^0.15.
|
|
52
|
+
"@blocknote/core": "^0.15.3",
|
|
53
|
+
"@blocknote/react": "^0.15.3",
|
|
54
54
|
"react": "^18",
|
|
55
55
|
"react-dom": "^18"
|
|
56
56
|
},
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
"access": "public",
|
|
81
81
|
"registry": "https://registry.npmjs.org/"
|
|
82
82
|
},
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "34c2039e632d19db79f11adf17b2c2acab33e0bc"
|
|
84
84
|
}
|
package/types/src/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { InlineContentSchema, StyleSchema } from "@blocknote/core";
|
|
2
2
|
import { BlockNoteViewRaw, Components } from "@blocknote/react";
|
|
3
3
|
import { ComponentProps } from "react";
|
|
4
4
|
import "./style.css";
|
|
5
5
|
export declare const components: Components;
|
|
6
|
-
export declare const BlockNoteView: <BSchema extends
|
|
6
|
+
export declare const BlockNoteView: <BSchema extends Record<string, import("@blocknote/core").BlockConfig>, ISchema extends InlineContentSchema, SSchema extends StyleSchema>(props: ComponentProps<typeof BlockNoteViewRaw<BSchema, ISchema, SSchema>>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export declare const TextInput: import("react").ForwardRefExoticComponent<{
|
|
2
|
-
className?: string;
|
|
3
|
+
className?: string | undefined;
|
|
3
4
|
name: string;
|
|
4
|
-
label?: string;
|
|
5
|
+
label?: string | undefined;
|
|
5
6
|
icon: import("react").ReactNode;
|
|
6
|
-
autoFocus?: boolean;
|
|
7
|
+
autoFocus?: boolean | undefined;
|
|
7
8
|
placeholder: string;
|
|
8
9
|
value: string;
|
|
9
10
|
onKeyDown: (event: import("react").KeyboardEvent<HTMLInputElement>) => void;
|
|
10
11
|
onChange: (event: import("react").ChangeEvent<HTMLInputElement>) => void;
|
|
11
|
-
onSubmit?: () => void;
|
|
12
|
+
onSubmit?: (() => void) | undefined;
|
|
12
13
|
} & import("react").RefAttributes<HTMLInputElement>>;
|
package/types/src/menu/Menu.d.ts
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ComponentProps } from "@blocknote/react";
|
|
2
3
|
export declare const Menu: (props: ComponentProps["Generic"]["Menu"]["Root"]) => import("react/jsx-runtime").JSX.Element;
|
|
3
4
|
export declare const MenuDropdown: import("react").ForwardRefExoticComponent<{
|
|
4
|
-
className?: string;
|
|
5
|
+
className?: string | undefined;
|
|
5
6
|
children?: import("react").ReactNode;
|
|
6
|
-
sub?: boolean;
|
|
7
|
+
sub?: boolean | undefined;
|
|
7
8
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
9
|
export declare const MenuItem: import("react").ForwardRefExoticComponent<{
|
|
9
|
-
className?: string;
|
|
10
|
+
className?: string | undefined;
|
|
10
11
|
children?: import("react").ReactNode;
|
|
11
|
-
subTrigger?: boolean;
|
|
12
|
+
subTrigger?: boolean | undefined;
|
|
12
13
|
icon?: import("react").ReactNode;
|
|
13
|
-
checked?: boolean;
|
|
14
|
-
onClick?: () => void;
|
|
14
|
+
checked?: boolean | undefined;
|
|
15
|
+
onClick?: (() => void) | undefined;
|
|
15
16
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
16
17
|
export declare const MenuLabel: import("react").ForwardRefExoticComponent<{
|
|
17
|
-
className?: string;
|
|
18
|
+
className?: string | undefined;
|
|
18
19
|
children?: import("react").ReactNode;
|
|
19
20
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
20
21
|
export declare const MenuTrigger: (props: ComponentProps["Generic"]["Menu"]["Trigger"]) => string | number | boolean | import("react/jsx-runtime").JSX.Element | Iterable<import("react").ReactNode> | null | undefined;
|
|
21
22
|
export declare const MenuDivider: import("react").ForwardRefExoticComponent<{
|
|
22
|
-
className?: string;
|
|
23
|
+
className?: string | undefined;
|
|
23
24
|
} & import("react").RefAttributes<HTMLHRElement>>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export declare const PanelButton: import("react").ForwardRefExoticComponent<({
|
|
2
|
-
className?: string;
|
|
3
|
+
className?: string | undefined;
|
|
3
4
|
onClick: () => void;
|
|
4
5
|
} & ({
|
|
5
6
|
children: import("react").ReactNode;
|
|
6
|
-
label?: string;
|
|
7
|
+
label?: string | undefined;
|
|
7
8
|
} | {
|
|
8
9
|
children?: undefined;
|
|
9
10
|
label: string;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export declare const PanelTextInput: import("react").ForwardRefExoticComponent<{
|
|
2
|
-
className?: string;
|
|
3
|
+
className?: string | undefined;
|
|
3
4
|
value: string;
|
|
4
5
|
placeholder: string;
|
|
5
6
|
onChange: (event: import("react").ChangeEvent<HTMLInputElement>) => void;
|
|
6
|
-
onKeyDown: (event: import("react").KeyboardEvent) => void;
|
|
7
|
+
onKeyDown: (event: import("react").KeyboardEvent<Element>) => void;
|
|
7
8
|
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ComponentProps } from "@blocknote/react";
|
|
2
3
|
export declare const PopoverTrigger: import("react").ForwardRefExoticComponent<{
|
|
3
4
|
children?: import("react").ReactNode;
|
|
4
5
|
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
5
6
|
export declare const PopoverContent: import("react").ForwardRefExoticComponent<{
|
|
6
|
-
className?: string;
|
|
7
|
+
className?: string | undefined;
|
|
7
8
|
variant: "form-popover" | "panel-popover";
|
|
8
9
|
children?: import("react").ReactNode;
|
|
9
10
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export declare const SideMenuButton: import("react").ForwardRefExoticComponent<({
|
|
2
|
-
className?: string;
|
|
3
|
-
onClick?: (e: import("react").MouseEvent) => void;
|
|
3
|
+
className?: string | undefined;
|
|
4
|
+
onClick?: ((e: import("react").MouseEvent<Element, MouseEvent>) => void) | undefined;
|
|
4
5
|
icon?: import("react").ReactNode;
|
|
5
|
-
onDragStart?: (e:
|
|
6
|
-
onDragEnd?: (e:
|
|
7
|
-
draggable?: boolean;
|
|
6
|
+
onDragStart?: ((e: import("react").DragEvent<Element>) => void) | undefined;
|
|
7
|
+
onDragEnd?: ((e: import("react").DragEvent<Element>) => void) | undefined;
|
|
8
|
+
draggable?: boolean | undefined;
|
|
8
9
|
} & ({
|
|
9
10
|
children: import("react").ReactNode;
|
|
10
|
-
label?: string;
|
|
11
|
+
label?: string | undefined;
|
|
11
12
|
} | {
|
|
12
13
|
children?: undefined;
|
|
13
14
|
label: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export declare const SuggestionMenu: import("react").ForwardRefExoticComponent<{
|
|
2
3
|
id: string;
|
|
3
|
-
className?: string;
|
|
4
|
+
className?: string | undefined;
|
|
4
5
|
children?: import("react").ReactNode;
|
|
5
6
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export declare const SuggestionMenuEmptyItem: import("react").ForwardRefExoticComponent<{
|
|
2
|
-
className?: string;
|
|
3
|
+
className?: string | undefined;
|
|
3
4
|
children?: import("react").ReactNode;
|
|
4
5
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export declare const SuggestionMenuLoader: import("react").ForwardRefExoticComponent<{
|
|
2
|
-
className?: string;
|
|
3
|
+
className?: string | undefined;
|
|
3
4
|
children?: import("react").ReactNode;
|
|
4
5
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export declare const GridSuggestionMenu: import("react").ForwardRefExoticComponent<{
|
|
2
3
|
id: string;
|
|
3
4
|
columns: number;
|
|
4
|
-
className?: string;
|
|
5
|
+
className?: string | undefined;
|
|
5
6
|
children?: import("react").ReactNode;
|
|
6
7
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export declare const GridSuggestionMenuEmptyItem: import("react").ForwardRefExoticComponent<{
|
|
2
3
|
columns: number;
|
|
3
|
-
className?: string;
|
|
4
|
+
className?: string | undefined;
|
|
4
5
|
children?: import("react").ReactNode;
|
|
5
6
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export declare const GridSuggestionMenuLoader: import("react").ForwardRefExoticComponent<{
|
|
2
3
|
columns: number;
|
|
3
|
-
className?: string;
|
|
4
|
+
className?: string | undefined;
|
|
4
5
|
children?: import("react").ReactNode;
|
|
5
6
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export declare const TableHandle: import("react").ForwardRefExoticComponent<({
|
|
2
|
-
className?: string;
|
|
3
|
+
className?: string | undefined;
|
|
3
4
|
draggable: boolean;
|
|
4
|
-
onDragStart: (e:
|
|
5
|
+
onDragStart: (e: import("react").DragEvent<Element>) => void;
|
|
5
6
|
onDragEnd: () => void;
|
|
6
|
-
style?: import("react").CSSProperties;
|
|
7
|
+
style?: import("react").CSSProperties | undefined;
|
|
7
8
|
} & ({
|
|
8
9
|
children: import("react").ReactNode;
|
|
9
|
-
label?: string;
|
|
10
|
+
label?: string | undefined;
|
|
10
11
|
} | {
|
|
11
12
|
children?: undefined;
|
|
12
13
|
label: string;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export declare const Toolbar: import("react").ForwardRefExoticComponent<{
|
|
2
|
-
className?: string;
|
|
3
|
+
className?: string | undefined;
|
|
3
4
|
children?: import("react").ReactNode;
|
|
4
5
|
} & {
|
|
5
|
-
className?: string;
|
|
6
|
+
className?: string | undefined;
|
|
6
7
|
children?: import("react").ReactNode;
|
|
7
|
-
onMouseEnter?: () => void;
|
|
8
|
-
onMouseLeave?: () => void;
|
|
8
|
+
onMouseEnter?: (() => void) | undefined;
|
|
9
|
+
onMouseLeave?: (() => void) | undefined;
|
|
9
10
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export declare const ToolbarSelect: import("react").ForwardRefExoticComponent<{
|
|
2
|
-
className?: string;
|
|
3
|
+
className?: string | undefined;
|
|
3
4
|
items: {
|
|
4
5
|
text: string;
|
|
5
6
|
icon: import("react").ReactNode;
|
|
6
7
|
onClick: () => void;
|
|
7
8
|
isSelected: boolean;
|
|
8
|
-
isDisabled?: boolean;
|
|
9
|
+
isDisabled?: boolean | undefined;
|
|
9
10
|
}[];
|
|
10
|
-
isDisabled?: boolean;
|
|
11
|
+
isDisabled?: boolean | undefined;
|
|
11
12
|
} & import("react").RefAttributes<HTMLDivElement>>;
|