@blocknote/core 0.7.0 → 0.7.1-alpha.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/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.7.0",
|
|
6
|
+
"version": "0.7.1-alpha.0",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist",
|
|
9
9
|
"types",
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"module": "./dist/blocknote.js",
|
|
31
31
|
"exports": {
|
|
32
32
|
".": {
|
|
33
|
+
"types": "./types/src/index.d.ts",
|
|
33
34
|
"import": "./dist/blocknote.js",
|
|
34
35
|
"require": "./dist/blocknote.umd.cjs"
|
|
35
36
|
},
|
|
@@ -109,5 +110,5 @@
|
|
|
109
110
|
"access": "public",
|
|
110
111
|
"registry": "https://registry.npmjs.org/"
|
|
111
112
|
},
|
|
112
|
-
"gitHead": "
|
|
113
|
+
"gitHead": "221da514c70e561fd8256d6bec6b825390060edf"
|
|
113
114
|
}
|
|
@@ -8,7 +8,10 @@ export declare function parse<BType extends string, PSchema extends PropSchema,
|
|
|
8
8
|
}[];
|
|
9
9
|
export declare function render<BType extends string, PSchema extends PropSchema, ContainsInlineContent extends boolean, BSchema extends BlockSchema>(blockConfig: Omit<BlockConfig<BType, PSchema, ContainsInlineContent, BSchema>, "render">, HTMLAttributes: Record<string, any>): {
|
|
10
10
|
dom: HTMLDivElement;
|
|
11
|
-
contentDOM: HTMLDivElement
|
|
11
|
+
contentDOM: HTMLDivElement;
|
|
12
|
+
} | {
|
|
13
|
+
dom: HTMLDivElement;
|
|
14
|
+
contentDOM?: undefined;
|
|
12
15
|
};
|
|
13
16
|
export declare function createBlockSpec<BType extends string, PSchema extends PropSchema, ContainsInlineContent extends boolean, BSchema extends BlockSchema>(blockConfig: BlockConfig<BType, PSchema, ContainsInlineContent, BSchema>): BlockSpec<BType, PSchema>;
|
|
14
17
|
export declare function createTipTapBlock<Type extends string>(config: TipTapNodeConfig<Type>): TipTapNode<Type>;
|
|
@@ -26,7 +26,7 @@ export declare const defaultBlockSchema: {
|
|
|
26
26
|
values: readonly ["left", "center", "right", "justify"];
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
|
-
readonly node: import("./blockTypes").TipTapNode<"paragraph">;
|
|
29
|
+
readonly node: import("./blockTypes").TipTapNode<"paragraph", any, any>;
|
|
30
30
|
};
|
|
31
31
|
readonly heading: {
|
|
32
32
|
readonly propSchema: {
|
|
@@ -45,7 +45,7 @@ export declare const defaultBlockSchema: {
|
|
|
45
45
|
values: readonly ["left", "center", "right", "justify"];
|
|
46
46
|
};
|
|
47
47
|
};
|
|
48
|
-
readonly node: import("./blockTypes").TipTapNode<"heading">;
|
|
48
|
+
readonly node: import("./blockTypes").TipTapNode<"heading", any, any>;
|
|
49
49
|
};
|
|
50
50
|
readonly bulletListItem: {
|
|
51
51
|
readonly propSchema: {
|
|
@@ -60,7 +60,7 @@ export declare const defaultBlockSchema: {
|
|
|
60
60
|
values: readonly ["left", "center", "right", "justify"];
|
|
61
61
|
};
|
|
62
62
|
};
|
|
63
|
-
readonly node: import("./blockTypes").TipTapNode<"bulletListItem">;
|
|
63
|
+
readonly node: import("./blockTypes").TipTapNode<"bulletListItem", any, any>;
|
|
64
64
|
};
|
|
65
65
|
readonly numberedListItem: {
|
|
66
66
|
readonly propSchema: {
|
|
@@ -75,7 +75,7 @@ export declare const defaultBlockSchema: {
|
|
|
75
75
|
values: readonly ["left", "center", "right", "justify"];
|
|
76
76
|
};
|
|
77
77
|
};
|
|
78
|
-
readonly node: import("./blockTypes").TipTapNode<"numberedListItem">;
|
|
78
|
+
readonly node: import("./blockTypes").TipTapNode<"numberedListItem", any, any>;
|
|
79
79
|
};
|
|
80
80
|
};
|
|
81
81
|
export type DefaultBlockSchema = TypesMatch<typeof defaultBlockSchema>;
|