@blocknote/core 0.10.0 → 0.10.1
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.js +14 -15
- package/dist/blocknote.js.map +1 -1
- package/dist/blocknote.umd.cjs +1 -1
- package/dist/blocknote.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/dist/webpack-stats.json +1 -1
- package/package.json +5 -3
- package/src/editor/BlockNoteEditor.ts +0 -1
- package/src/editor/editor.css +1 -0
- package/types/src/editor/BlockNoteEditor.d.ts +0 -1
- package/types/src/BlockNoteEditor.d.ts +0 -300
- package/types/src/BlockNoteEditor.test.d.ts +0 -1
- package/types/src/BlockNoteExtensions.d.ts +0 -26
- package/types/src/api/nodeConversions/testUtil.d.ts +0 -7
- package/types/src/api/testCases/cases/customBlocks.d.ts +0 -345
- package/types/src/api/testCases/cases/customInlineContent.d.ts +0 -29
- package/types/src/api/testCases/cases/customStyles.d.ts +0 -64
- package/types/src/api/testCases/cases/defaultSchema.d.ts +0 -3
- package/types/src/api/testCases/index.d.ts +0 -12
- package/types/src/api/util/nodeUtil.d.ts +0 -8
- package/types/src/extensions/Blocks/NonEditableBlockPlugin.d.ts +0 -2
- package/types/src/extensions/Blocks/PreviousBlockTypePlugin.d.ts +0 -14
- package/types/src/extensions/Blocks/api/blocks/createSpec.d.ts +0 -35
- package/types/src/extensions/Blocks/api/blocks/internal.d.ts +0 -45
- package/types/src/extensions/Blocks/api/blocks/types.d.ts +0 -114
- package/types/src/extensions/Blocks/api/cursorPositionTypes.d.ts +0 -8
- package/types/src/extensions/Blocks/api/defaultBlocks.d.ts +0 -577
- package/types/src/extensions/Blocks/api/defaultProps.d.ts +0 -15
- package/types/src/extensions/Blocks/api/inlineContent/createSpec.d.ts +0 -21
- package/types/src/extensions/Blocks/api/inlineContent/internal.d.ts +0 -25
- package/types/src/extensions/Blocks/api/inlineContent/types.d.ts +0 -62
- package/types/src/extensions/Blocks/api/selectionTypes.d.ts +0 -6
- package/types/src/extensions/Blocks/api/styles/createSpec.d.ts +0 -13
- package/types/src/extensions/Blocks/api/styles/internal.d.ts +0 -22
- package/types/src/extensions/Blocks/api/styles/types.d.ts +0 -21
- package/types/src/extensions/Blocks/helpers/findBlock.d.ts +0 -6
- package/types/src/extensions/Blocks/helpers/getBlockInfoFromPos.d.ts +0 -27
- package/types/src/extensions/Blocks/index.d.ts +0 -4
- package/types/src/extensions/Blocks/nodes/BlockAttributes.d.ts +0 -2
- package/types/src/extensions/Blocks/nodes/BlockContainer.d.ts +0 -30
- package/types/src/extensions/Blocks/nodes/BlockContent/HeadingBlockContent/HeadingBlockContent.d.ts +0 -58
- package/types/src/extensions/Blocks/nodes/BlockContent/ImageBlockContent/ImageBlockContent.d.ts +0 -95
- package/types/src/extensions/Blocks/nodes/BlockContent/ImageBlockContent/uploadToTmpFilesDotOrg_DEV_ONLY.d.ts +0 -1
- package/types/src/extensions/Blocks/nodes/BlockContent/ListItemBlockContent/BulletListItemBlockContent/BulletListItemBlockContent.d.ts +0 -46
- package/types/src/extensions/Blocks/nodes/BlockContent/ListItemBlockContent/ListItemKeyboardShortcuts.d.ts +0 -2
- package/types/src/extensions/Blocks/nodes/BlockContent/ListItemBlockContent/NumberedListItemBlockContent/NumberedListIndexingPlugin.d.ts +0 -2
- package/types/src/extensions/Blocks/nodes/BlockContent/ListItemBlockContent/NumberedListItemBlockContent/NumberedListItemBlockContent.d.ts +0 -46
- package/types/src/extensions/Blocks/nodes/BlockContent/ParagraphBlockContent/ParagraphBlockContent.d.ts +0 -52
- package/types/src/extensions/Blocks/nodes/BlockContent/TableBlockContent/TableBlockContent.d.ts +0 -53
- package/types/src/extensions/Blocks/nodes/BlockContent/TableBlockContent/TableExtension.d.ts +0 -2
- package/types/src/extensions/Blocks/nodes/BlockContent/defaultBlockHelpers.d.ts +0 -12
- package/types/src/extensions/Blocks/nodes/BlockGroup.d.ts +0 -10
- package/types/src/shared/BaseUiElementTypes.d.ts +0 -7
- package/types/src/shared/EditorElement.d.ts +0 -0
- package/types/src/shared/EventEmitter.d.ts +0 -11
- package/types/src/shared/plugins/suggestion/SuggestionItem.d.ts +0 -3
- package/types/src/shared/plugins/suggestion/SuggestionPlugin.d.ts +0 -37
- package/types/src/shared/utils.d.ts +0 -6
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
/** Define the main block types **/
|
|
2
|
-
import { Extension, Node } from "@tiptap/core";
|
|
3
|
-
import { BlockNoteEditor } from "../../../../BlockNoteEditor";
|
|
4
|
-
import { InlineContent, InlineContentSchema, PartialInlineContent } from "../inlineContent/types";
|
|
5
|
-
import { StyleSchema } from "../styles/types";
|
|
6
|
-
export type BlockNoteDOMElement = "editor" | "blockContainer" | "blockGroup" | "blockContent" | "inlineContent";
|
|
7
|
-
export type BlockNoteDOMAttributes = Partial<{
|
|
8
|
-
[DOMElement in BlockNoteDOMElement]: Record<string, string>;
|
|
9
|
-
}>;
|
|
10
|
-
export type PropSpec<PType extends boolean | number | string> = {
|
|
11
|
-
values?: readonly PType[];
|
|
12
|
-
default: PType;
|
|
13
|
-
};
|
|
14
|
-
export type PropSchema = Record<string, PropSpec<boolean | number | string>>;
|
|
15
|
-
export type Props<PSchema extends PropSchema> = {
|
|
16
|
-
[PName in keyof PSchema]: PSchema[PName]["default"] extends boolean ? PSchema[PName]["values"] extends readonly boolean[] ? PSchema[PName]["values"][number] : boolean : PSchema[PName]["default"] extends number ? PSchema[PName]["values"] extends readonly number[] ? PSchema[PName]["values"][number] : number : PSchema[PName]["default"] extends string ? PSchema[PName]["values"] extends readonly string[] ? PSchema[PName]["values"][number] : string : never;
|
|
17
|
-
};
|
|
18
|
-
export type BlockConfig = {
|
|
19
|
-
type: string;
|
|
20
|
-
readonly propSchema: PropSchema;
|
|
21
|
-
content: "inline" | "none" | "table";
|
|
22
|
-
};
|
|
23
|
-
export type TiptapBlockImplementation<T extends BlockConfig, B extends BlockSchema, I extends InlineContentSchema, S extends StyleSchema> = {
|
|
24
|
-
requiredExtensions?: Array<Extension | Node>;
|
|
25
|
-
node: Node;
|
|
26
|
-
toInternalHTML: (block: BlockFromConfigNoChildren<T, I, S> & {
|
|
27
|
-
children: Block<B, I, S>[];
|
|
28
|
-
}, editor: BlockNoteEditor<B, I, S>) => {
|
|
29
|
-
dom: HTMLElement;
|
|
30
|
-
contentDOM?: HTMLElement;
|
|
31
|
-
};
|
|
32
|
-
toExternalHTML: (block: BlockFromConfigNoChildren<T, I, S> & {
|
|
33
|
-
children: Block<B, I, S>[];
|
|
34
|
-
}, editor: BlockNoteEditor<B, I, S>) => {
|
|
35
|
-
dom: HTMLElement;
|
|
36
|
-
contentDOM?: HTMLElement;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
export type BlockSpec<T extends BlockConfig, B extends BlockSchema, I extends InlineContentSchema, S extends StyleSchema> = {
|
|
40
|
-
config: T;
|
|
41
|
-
implementation: TiptapBlockImplementation<T, B, I, S>;
|
|
42
|
-
};
|
|
43
|
-
type NamesMatch<Blocks extends Record<string, BlockConfig>> = Blocks extends {
|
|
44
|
-
[Type in keyof Blocks]: Type extends string ? Blocks[Type] extends {
|
|
45
|
-
type: Type;
|
|
46
|
-
} ? Blocks[Type] : never : never;
|
|
47
|
-
} ? Blocks : never;
|
|
48
|
-
export type BlockSchema = NamesMatch<Record<string, BlockConfig>>;
|
|
49
|
-
export type BlockSpecs = Record<string, BlockSpec<any, any, InlineContentSchema, StyleSchema>>;
|
|
50
|
-
export type BlockImplementations = Record<string, TiptapBlockImplementation<any, any, any, any>>;
|
|
51
|
-
export type BlockSchemaFromSpecs<T extends BlockSpecs> = {
|
|
52
|
-
[K in keyof T]: T[K]["config"];
|
|
53
|
-
};
|
|
54
|
-
export type BlockSchemaWithBlock<BType extends string, C extends BlockConfig> = {
|
|
55
|
-
[k in BType]: C;
|
|
56
|
-
};
|
|
57
|
-
export type TableContent<I extends InlineContentSchema, S extends StyleSchema = StyleSchema> = {
|
|
58
|
-
type: "tableContent";
|
|
59
|
-
rows: {
|
|
60
|
-
cells: InlineContent<I, S>[][];
|
|
61
|
-
}[];
|
|
62
|
-
};
|
|
63
|
-
export type BlockFromConfigNoChildren<B extends BlockConfig, I extends InlineContentSchema, S extends StyleSchema> = {
|
|
64
|
-
id: string;
|
|
65
|
-
type: B["type"];
|
|
66
|
-
props: Props<B["propSchema"]>;
|
|
67
|
-
content: B["content"] extends "inline" ? InlineContent<I, S>[] : B["content"] extends "table" ? TableContent<I, S> : B["content"] extends "none" ? undefined : never;
|
|
68
|
-
};
|
|
69
|
-
export type BlockFromConfig<B extends BlockConfig, I extends InlineContentSchema, S extends StyleSchema> = BlockFromConfigNoChildren<B, I, S> & {
|
|
70
|
-
children: Block<BlockSchema, I, S>[];
|
|
71
|
-
};
|
|
72
|
-
type BlocksWithoutChildren<BSchema extends BlockSchema, I extends InlineContentSchema, S extends StyleSchema> = {
|
|
73
|
-
[BType in keyof BSchema]: BlockFromConfigNoChildren<BSchema[BType], I, S>;
|
|
74
|
-
};
|
|
75
|
-
export type Block<BSchema extends BlockSchema, I extends InlineContentSchema, S extends StyleSchema> = BlocksWithoutChildren<BSchema, I, S>[keyof BSchema] & {
|
|
76
|
-
children: Block<BSchema, I, S>[];
|
|
77
|
-
};
|
|
78
|
-
export type SpecificBlock<BSchema extends BlockSchema, BType extends keyof BSchema, I extends InlineContentSchema, S extends StyleSchema> = BlocksWithoutChildren<BSchema, I, S>[BType] & {
|
|
79
|
-
children: Block<BSchema, I, S>[];
|
|
80
|
-
};
|
|
81
|
-
/** CODE FOR PARTIAL BLOCKS, analogous to above
|
|
82
|
-
*
|
|
83
|
-
* Partial blocks are convenience-wrappers to make it easier to
|
|
84
|
-
*create/update blocks in the editor.
|
|
85
|
-
*
|
|
86
|
-
*/
|
|
87
|
-
export type PartialTableContent<I extends InlineContentSchema, S extends StyleSchema = StyleSchema> = {
|
|
88
|
-
type: "tableContent";
|
|
89
|
-
rows: {
|
|
90
|
-
cells: PartialInlineContent<I, S>[];
|
|
91
|
-
}[];
|
|
92
|
-
};
|
|
93
|
-
type PartialBlockFromConfigNoChildren<B extends BlockConfig, I extends InlineContentSchema, S extends StyleSchema> = {
|
|
94
|
-
id?: string;
|
|
95
|
-
type?: B["type"];
|
|
96
|
-
props?: Partial<Props<B["propSchema"]>>;
|
|
97
|
-
content?: B["content"] extends "inline" ? PartialInlineContent<I, S> : B["content"] extends "table" ? PartialTableContent<I, S> : undefined;
|
|
98
|
-
};
|
|
99
|
-
type PartialBlocksWithoutChildren<BSchema extends BlockSchema, I extends InlineContentSchema, S extends StyleSchema> = {
|
|
100
|
-
[BType in keyof BSchema]: PartialBlockFromConfigNoChildren<BSchema[BType], I, S>;
|
|
101
|
-
};
|
|
102
|
-
export type PartialBlock<BSchema extends BlockSchema, I extends InlineContentSchema, S extends StyleSchema> = PartialBlocksWithoutChildren<BSchema, I, S>[keyof PartialBlocksWithoutChildren<BSchema, I, S>] & Partial<{
|
|
103
|
-
children: PartialBlock<BSchema, I, S>[];
|
|
104
|
-
}>;
|
|
105
|
-
export type SpecificPartialBlock<BSchema extends BlockSchema, I extends InlineContentSchema, BType extends keyof BSchema, S extends StyleSchema> = PartialBlocksWithoutChildren<BSchema, I, S>[BType] & {
|
|
106
|
-
children?: Block<BSchema, I, S>[];
|
|
107
|
-
};
|
|
108
|
-
export type PartialBlockFromConfig<B extends BlockConfig, I extends InlineContentSchema, S extends StyleSchema> = PartialBlockFromConfigNoChildren<B, I, S> & {
|
|
109
|
-
children?: Block<BlockSchema, I, S>[];
|
|
110
|
-
};
|
|
111
|
-
export type BlockIdentifier = {
|
|
112
|
-
id: string;
|
|
113
|
-
} | string;
|
|
114
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Block, BlockSchema } from "./blocks/types";
|
|
2
|
-
import { InlineContentSchema } from "./inlineContent/types";
|
|
3
|
-
import { StyleSchema } from "./styles/types";
|
|
4
|
-
export type TextCursorPosition<BSchema extends BlockSchema, I extends InlineContentSchema, S extends StyleSchema> = {
|
|
5
|
-
block: Block<BSchema, I, S>;
|
|
6
|
-
prevBlock: Block<BSchema, I, S> | undefined;
|
|
7
|
-
nextBlock: Block<BSchema, I, S> | undefined;
|
|
8
|
-
};
|
|
@@ -1,577 +0,0 @@
|
|
|
1
|
-
export declare const defaultBlockSpecs: {
|
|
2
|
-
paragraph: {
|
|
3
|
-
config: {
|
|
4
|
-
type: "paragraph";
|
|
5
|
-
content: "inline";
|
|
6
|
-
propSchema: {
|
|
7
|
-
backgroundColor: {
|
|
8
|
-
default: "default";
|
|
9
|
-
};
|
|
10
|
-
textColor: {
|
|
11
|
-
default: "default";
|
|
12
|
-
};
|
|
13
|
-
textAlignment: {
|
|
14
|
-
default: "left";
|
|
15
|
-
values: readonly ["left", "center", "right", "justify"];
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
implementation: import("./blocks/types").TiptapBlockImplementation<{
|
|
20
|
-
type: "paragraph";
|
|
21
|
-
content: "inline";
|
|
22
|
-
propSchema: {
|
|
23
|
-
backgroundColor: {
|
|
24
|
-
default: "default";
|
|
25
|
-
};
|
|
26
|
-
textColor: {
|
|
27
|
-
default: "default";
|
|
28
|
-
};
|
|
29
|
-
textAlignment: {
|
|
30
|
-
default: "left";
|
|
31
|
-
values: readonly ["left", "center", "right", "justify"];
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
}, any, import("./inlineContent/types").InlineContentSchema, import("./styles/types").StyleSchema>;
|
|
35
|
-
};
|
|
36
|
-
heading: {
|
|
37
|
-
config: {
|
|
38
|
-
type: "heading";
|
|
39
|
-
content: "inline";
|
|
40
|
-
propSchema: {
|
|
41
|
-
level: {
|
|
42
|
-
default: number;
|
|
43
|
-
values: readonly [1, 2, 3];
|
|
44
|
-
};
|
|
45
|
-
backgroundColor: {
|
|
46
|
-
default: "default";
|
|
47
|
-
};
|
|
48
|
-
textColor: {
|
|
49
|
-
default: "default";
|
|
50
|
-
};
|
|
51
|
-
textAlignment: {
|
|
52
|
-
default: "left";
|
|
53
|
-
values: readonly ["left", "center", "right", "justify"];
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
implementation: import("./blocks/types").TiptapBlockImplementation<{
|
|
58
|
-
type: "heading";
|
|
59
|
-
content: "inline";
|
|
60
|
-
propSchema: {
|
|
61
|
-
level: {
|
|
62
|
-
default: number;
|
|
63
|
-
values: readonly [1, 2, 3];
|
|
64
|
-
};
|
|
65
|
-
backgroundColor: {
|
|
66
|
-
default: "default";
|
|
67
|
-
};
|
|
68
|
-
textColor: {
|
|
69
|
-
default: "default";
|
|
70
|
-
};
|
|
71
|
-
textAlignment: {
|
|
72
|
-
default: "left";
|
|
73
|
-
values: readonly ["left", "center", "right", "justify"];
|
|
74
|
-
};
|
|
75
|
-
};
|
|
76
|
-
}, any, import("./inlineContent/types").InlineContentSchema, import("./styles/types").StyleSchema>;
|
|
77
|
-
};
|
|
78
|
-
bulletListItem: {
|
|
79
|
-
config: {
|
|
80
|
-
type: "bulletListItem";
|
|
81
|
-
content: "inline";
|
|
82
|
-
propSchema: {
|
|
83
|
-
backgroundColor: {
|
|
84
|
-
default: "default";
|
|
85
|
-
};
|
|
86
|
-
textColor: {
|
|
87
|
-
default: "default";
|
|
88
|
-
};
|
|
89
|
-
textAlignment: {
|
|
90
|
-
default: "left";
|
|
91
|
-
values: readonly ["left", "center", "right", "justify"];
|
|
92
|
-
};
|
|
93
|
-
};
|
|
94
|
-
};
|
|
95
|
-
implementation: import("./blocks/types").TiptapBlockImplementation<{
|
|
96
|
-
type: "bulletListItem";
|
|
97
|
-
content: "inline";
|
|
98
|
-
propSchema: {
|
|
99
|
-
backgroundColor: {
|
|
100
|
-
default: "default";
|
|
101
|
-
};
|
|
102
|
-
textColor: {
|
|
103
|
-
default: "default";
|
|
104
|
-
};
|
|
105
|
-
textAlignment: {
|
|
106
|
-
default: "left";
|
|
107
|
-
values: readonly ["left", "center", "right", "justify"];
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
|
-
}, any, import("./inlineContent/types").InlineContentSchema, import("./styles/types").StyleSchema>;
|
|
111
|
-
};
|
|
112
|
-
numberedListItem: {
|
|
113
|
-
config: {
|
|
114
|
-
type: "numberedListItem";
|
|
115
|
-
content: "inline";
|
|
116
|
-
propSchema: {
|
|
117
|
-
backgroundColor: {
|
|
118
|
-
default: "default";
|
|
119
|
-
};
|
|
120
|
-
textColor: {
|
|
121
|
-
default: "default";
|
|
122
|
-
};
|
|
123
|
-
textAlignment: {
|
|
124
|
-
default: "left";
|
|
125
|
-
values: readonly ["left", "center", "right", "justify"];
|
|
126
|
-
};
|
|
127
|
-
};
|
|
128
|
-
};
|
|
129
|
-
implementation: import("./blocks/types").TiptapBlockImplementation<{
|
|
130
|
-
type: "numberedListItem";
|
|
131
|
-
content: "inline";
|
|
132
|
-
propSchema: {
|
|
133
|
-
backgroundColor: {
|
|
134
|
-
default: "default";
|
|
135
|
-
};
|
|
136
|
-
textColor: {
|
|
137
|
-
default: "default";
|
|
138
|
-
};
|
|
139
|
-
textAlignment: {
|
|
140
|
-
default: "left";
|
|
141
|
-
values: readonly ["left", "center", "right", "justify"];
|
|
142
|
-
};
|
|
143
|
-
};
|
|
144
|
-
}, any, import("./inlineContent/types").InlineContentSchema, import("./styles/types").StyleSchema>;
|
|
145
|
-
};
|
|
146
|
-
image: {
|
|
147
|
-
config: {
|
|
148
|
-
type: "image";
|
|
149
|
-
propSchema: {
|
|
150
|
-
textAlignment: {
|
|
151
|
-
default: "left";
|
|
152
|
-
values: readonly ["left", "center", "right", "justify"];
|
|
153
|
-
};
|
|
154
|
-
backgroundColor: {
|
|
155
|
-
default: "default";
|
|
156
|
-
};
|
|
157
|
-
url: {
|
|
158
|
-
default: "";
|
|
159
|
-
};
|
|
160
|
-
caption: {
|
|
161
|
-
default: "";
|
|
162
|
-
};
|
|
163
|
-
width: {
|
|
164
|
-
default: 512;
|
|
165
|
-
};
|
|
166
|
-
};
|
|
167
|
-
content: "none";
|
|
168
|
-
};
|
|
169
|
-
implementation: import("./blocks/types").TiptapBlockImplementation<{
|
|
170
|
-
type: "image";
|
|
171
|
-
propSchema: {
|
|
172
|
-
textAlignment: {
|
|
173
|
-
default: "left";
|
|
174
|
-
values: readonly ["left", "center", "right", "justify"];
|
|
175
|
-
};
|
|
176
|
-
backgroundColor: {
|
|
177
|
-
default: "default";
|
|
178
|
-
};
|
|
179
|
-
url: {
|
|
180
|
-
default: "";
|
|
181
|
-
};
|
|
182
|
-
caption: {
|
|
183
|
-
default: "";
|
|
184
|
-
};
|
|
185
|
-
width: {
|
|
186
|
-
default: 512;
|
|
187
|
-
};
|
|
188
|
-
};
|
|
189
|
-
content: "none";
|
|
190
|
-
}, any, import("./inlineContent/types").InlineContentSchema, import("./styles/types").StyleSchema>;
|
|
191
|
-
};
|
|
192
|
-
table: {
|
|
193
|
-
config: {
|
|
194
|
-
type: "table";
|
|
195
|
-
content: "table";
|
|
196
|
-
propSchema: {
|
|
197
|
-
backgroundColor: {
|
|
198
|
-
default: "default";
|
|
199
|
-
};
|
|
200
|
-
textColor: {
|
|
201
|
-
default: "default";
|
|
202
|
-
};
|
|
203
|
-
textAlignment: {
|
|
204
|
-
default: "left";
|
|
205
|
-
values: readonly ["left", "center", "right", "justify"];
|
|
206
|
-
};
|
|
207
|
-
};
|
|
208
|
-
};
|
|
209
|
-
implementation: import("./blocks/types").TiptapBlockImplementation<{
|
|
210
|
-
type: "table";
|
|
211
|
-
content: "table";
|
|
212
|
-
propSchema: {
|
|
213
|
-
backgroundColor: {
|
|
214
|
-
default: "default";
|
|
215
|
-
};
|
|
216
|
-
textColor: {
|
|
217
|
-
default: "default";
|
|
218
|
-
};
|
|
219
|
-
textAlignment: {
|
|
220
|
-
default: "left";
|
|
221
|
-
values: readonly ["left", "center", "right", "justify"];
|
|
222
|
-
};
|
|
223
|
-
};
|
|
224
|
-
}, any, import("./inlineContent/types").InlineContentSchema, import("./styles/types").StyleSchema>;
|
|
225
|
-
};
|
|
226
|
-
};
|
|
227
|
-
export declare const defaultBlockSchema: import("./blocks/types").BlockSchemaFromSpecs<{
|
|
228
|
-
paragraph: {
|
|
229
|
-
config: {
|
|
230
|
-
type: "paragraph";
|
|
231
|
-
content: "inline";
|
|
232
|
-
propSchema: {
|
|
233
|
-
backgroundColor: {
|
|
234
|
-
default: "default";
|
|
235
|
-
};
|
|
236
|
-
textColor: {
|
|
237
|
-
default: "default";
|
|
238
|
-
};
|
|
239
|
-
textAlignment: {
|
|
240
|
-
default: "left";
|
|
241
|
-
values: readonly ["left", "center", "right", "justify"];
|
|
242
|
-
};
|
|
243
|
-
};
|
|
244
|
-
};
|
|
245
|
-
implementation: import("./blocks/types").TiptapBlockImplementation<{
|
|
246
|
-
type: "paragraph";
|
|
247
|
-
content: "inline";
|
|
248
|
-
propSchema: {
|
|
249
|
-
backgroundColor: {
|
|
250
|
-
default: "default";
|
|
251
|
-
};
|
|
252
|
-
textColor: {
|
|
253
|
-
default: "default";
|
|
254
|
-
};
|
|
255
|
-
textAlignment: {
|
|
256
|
-
default: "left";
|
|
257
|
-
values: readonly ["left", "center", "right", "justify"];
|
|
258
|
-
};
|
|
259
|
-
};
|
|
260
|
-
}, any, import("./inlineContent/types").InlineContentSchema, import("./styles/types").StyleSchema>;
|
|
261
|
-
};
|
|
262
|
-
heading: {
|
|
263
|
-
config: {
|
|
264
|
-
type: "heading";
|
|
265
|
-
content: "inline";
|
|
266
|
-
propSchema: {
|
|
267
|
-
level: {
|
|
268
|
-
default: number;
|
|
269
|
-
values: readonly [1, 2, 3];
|
|
270
|
-
};
|
|
271
|
-
backgroundColor: {
|
|
272
|
-
default: "default";
|
|
273
|
-
};
|
|
274
|
-
textColor: {
|
|
275
|
-
default: "default";
|
|
276
|
-
};
|
|
277
|
-
textAlignment: {
|
|
278
|
-
default: "left";
|
|
279
|
-
values: readonly ["left", "center", "right", "justify"];
|
|
280
|
-
};
|
|
281
|
-
};
|
|
282
|
-
};
|
|
283
|
-
implementation: import("./blocks/types").TiptapBlockImplementation<{
|
|
284
|
-
type: "heading";
|
|
285
|
-
content: "inline";
|
|
286
|
-
propSchema: {
|
|
287
|
-
level: {
|
|
288
|
-
default: number;
|
|
289
|
-
values: readonly [1, 2, 3];
|
|
290
|
-
};
|
|
291
|
-
backgroundColor: {
|
|
292
|
-
default: "default";
|
|
293
|
-
};
|
|
294
|
-
textColor: {
|
|
295
|
-
default: "default";
|
|
296
|
-
};
|
|
297
|
-
textAlignment: {
|
|
298
|
-
default: "left";
|
|
299
|
-
values: readonly ["left", "center", "right", "justify"];
|
|
300
|
-
};
|
|
301
|
-
};
|
|
302
|
-
}, any, import("./inlineContent/types").InlineContentSchema, import("./styles/types").StyleSchema>;
|
|
303
|
-
};
|
|
304
|
-
bulletListItem: {
|
|
305
|
-
config: {
|
|
306
|
-
type: "bulletListItem";
|
|
307
|
-
content: "inline";
|
|
308
|
-
propSchema: {
|
|
309
|
-
backgroundColor: {
|
|
310
|
-
default: "default";
|
|
311
|
-
};
|
|
312
|
-
textColor: {
|
|
313
|
-
default: "default";
|
|
314
|
-
};
|
|
315
|
-
textAlignment: {
|
|
316
|
-
default: "left";
|
|
317
|
-
values: readonly ["left", "center", "right", "justify"];
|
|
318
|
-
};
|
|
319
|
-
};
|
|
320
|
-
};
|
|
321
|
-
implementation: import("./blocks/types").TiptapBlockImplementation<{
|
|
322
|
-
type: "bulletListItem";
|
|
323
|
-
content: "inline";
|
|
324
|
-
propSchema: {
|
|
325
|
-
backgroundColor: {
|
|
326
|
-
default: "default";
|
|
327
|
-
};
|
|
328
|
-
textColor: {
|
|
329
|
-
default: "default";
|
|
330
|
-
};
|
|
331
|
-
textAlignment: {
|
|
332
|
-
default: "left";
|
|
333
|
-
values: readonly ["left", "center", "right", "justify"];
|
|
334
|
-
};
|
|
335
|
-
};
|
|
336
|
-
}, any, import("./inlineContent/types").InlineContentSchema, import("./styles/types").StyleSchema>;
|
|
337
|
-
};
|
|
338
|
-
numberedListItem: {
|
|
339
|
-
config: {
|
|
340
|
-
type: "numberedListItem";
|
|
341
|
-
content: "inline";
|
|
342
|
-
propSchema: {
|
|
343
|
-
backgroundColor: {
|
|
344
|
-
default: "default";
|
|
345
|
-
};
|
|
346
|
-
textColor: {
|
|
347
|
-
default: "default";
|
|
348
|
-
};
|
|
349
|
-
textAlignment: {
|
|
350
|
-
default: "left";
|
|
351
|
-
values: readonly ["left", "center", "right", "justify"];
|
|
352
|
-
};
|
|
353
|
-
};
|
|
354
|
-
};
|
|
355
|
-
implementation: import("./blocks/types").TiptapBlockImplementation<{
|
|
356
|
-
type: "numberedListItem";
|
|
357
|
-
content: "inline";
|
|
358
|
-
propSchema: {
|
|
359
|
-
backgroundColor: {
|
|
360
|
-
default: "default";
|
|
361
|
-
};
|
|
362
|
-
textColor: {
|
|
363
|
-
default: "default";
|
|
364
|
-
};
|
|
365
|
-
textAlignment: {
|
|
366
|
-
default: "left";
|
|
367
|
-
values: readonly ["left", "center", "right", "justify"];
|
|
368
|
-
};
|
|
369
|
-
};
|
|
370
|
-
}, any, import("./inlineContent/types").InlineContentSchema, import("./styles/types").StyleSchema>;
|
|
371
|
-
};
|
|
372
|
-
image: {
|
|
373
|
-
config: {
|
|
374
|
-
type: "image";
|
|
375
|
-
propSchema: {
|
|
376
|
-
textAlignment: {
|
|
377
|
-
default: "left";
|
|
378
|
-
values: readonly ["left", "center", "right", "justify"];
|
|
379
|
-
};
|
|
380
|
-
backgroundColor: {
|
|
381
|
-
default: "default";
|
|
382
|
-
};
|
|
383
|
-
url: {
|
|
384
|
-
default: "";
|
|
385
|
-
};
|
|
386
|
-
caption: {
|
|
387
|
-
default: "";
|
|
388
|
-
};
|
|
389
|
-
width: {
|
|
390
|
-
default: 512;
|
|
391
|
-
};
|
|
392
|
-
};
|
|
393
|
-
content: "none";
|
|
394
|
-
};
|
|
395
|
-
implementation: import("./blocks/types").TiptapBlockImplementation<{
|
|
396
|
-
type: "image";
|
|
397
|
-
propSchema: {
|
|
398
|
-
textAlignment: {
|
|
399
|
-
default: "left";
|
|
400
|
-
values: readonly ["left", "center", "right", "justify"];
|
|
401
|
-
};
|
|
402
|
-
backgroundColor: {
|
|
403
|
-
default: "default";
|
|
404
|
-
};
|
|
405
|
-
url: {
|
|
406
|
-
default: "";
|
|
407
|
-
};
|
|
408
|
-
caption: {
|
|
409
|
-
default: "";
|
|
410
|
-
};
|
|
411
|
-
width: {
|
|
412
|
-
default: 512;
|
|
413
|
-
};
|
|
414
|
-
};
|
|
415
|
-
content: "none";
|
|
416
|
-
}, any, import("./inlineContent/types").InlineContentSchema, import("./styles/types").StyleSchema>;
|
|
417
|
-
};
|
|
418
|
-
table: {
|
|
419
|
-
config: {
|
|
420
|
-
type: "table";
|
|
421
|
-
content: "table";
|
|
422
|
-
propSchema: {
|
|
423
|
-
backgroundColor: {
|
|
424
|
-
default: "default";
|
|
425
|
-
};
|
|
426
|
-
textColor: {
|
|
427
|
-
default: "default";
|
|
428
|
-
};
|
|
429
|
-
textAlignment: {
|
|
430
|
-
default: "left";
|
|
431
|
-
values: readonly ["left", "center", "right", "justify"];
|
|
432
|
-
};
|
|
433
|
-
};
|
|
434
|
-
};
|
|
435
|
-
implementation: import("./blocks/types").TiptapBlockImplementation<{
|
|
436
|
-
type: "table";
|
|
437
|
-
content: "table";
|
|
438
|
-
propSchema: {
|
|
439
|
-
backgroundColor: {
|
|
440
|
-
default: "default";
|
|
441
|
-
};
|
|
442
|
-
textColor: {
|
|
443
|
-
default: "default";
|
|
444
|
-
};
|
|
445
|
-
textAlignment: {
|
|
446
|
-
default: "left";
|
|
447
|
-
values: readonly ["left", "center", "right", "justify"];
|
|
448
|
-
};
|
|
449
|
-
};
|
|
450
|
-
}, any, import("./inlineContent/types").InlineContentSchema, import("./styles/types").StyleSchema>;
|
|
451
|
-
};
|
|
452
|
-
}>;
|
|
453
|
-
export type DefaultBlockSchema = typeof defaultBlockSchema;
|
|
454
|
-
export declare const defaultStyleSpecs: {
|
|
455
|
-
bold: {
|
|
456
|
-
config: {
|
|
457
|
-
type: string;
|
|
458
|
-
propSchema: "boolean";
|
|
459
|
-
};
|
|
460
|
-
implementation: import("./styles/types").StyleImplementation;
|
|
461
|
-
};
|
|
462
|
-
italic: {
|
|
463
|
-
config: {
|
|
464
|
-
type: string;
|
|
465
|
-
propSchema: "boolean";
|
|
466
|
-
};
|
|
467
|
-
implementation: import("./styles/types").StyleImplementation;
|
|
468
|
-
};
|
|
469
|
-
underline: {
|
|
470
|
-
config: {
|
|
471
|
-
type: string;
|
|
472
|
-
propSchema: "boolean";
|
|
473
|
-
};
|
|
474
|
-
implementation: import("./styles/types").StyleImplementation;
|
|
475
|
-
};
|
|
476
|
-
strike: {
|
|
477
|
-
config: {
|
|
478
|
-
type: string;
|
|
479
|
-
propSchema: "boolean";
|
|
480
|
-
};
|
|
481
|
-
implementation: import("./styles/types").StyleImplementation;
|
|
482
|
-
};
|
|
483
|
-
code: {
|
|
484
|
-
config: {
|
|
485
|
-
type: string;
|
|
486
|
-
propSchema: "boolean";
|
|
487
|
-
};
|
|
488
|
-
implementation: import("./styles/types").StyleImplementation;
|
|
489
|
-
};
|
|
490
|
-
textColor: {
|
|
491
|
-
config: {
|
|
492
|
-
type: string;
|
|
493
|
-
propSchema: "string";
|
|
494
|
-
};
|
|
495
|
-
implementation: import("./styles/types").StyleImplementation;
|
|
496
|
-
};
|
|
497
|
-
backgroundColor: {
|
|
498
|
-
config: {
|
|
499
|
-
type: string;
|
|
500
|
-
propSchema: "string";
|
|
501
|
-
};
|
|
502
|
-
implementation: import("./styles/types").StyleImplementation;
|
|
503
|
-
};
|
|
504
|
-
};
|
|
505
|
-
export declare const defaultStyleSchema: import("./styles/types").StyleSchemaFromSpecs<{
|
|
506
|
-
bold: {
|
|
507
|
-
config: {
|
|
508
|
-
type: string;
|
|
509
|
-
propSchema: "boolean";
|
|
510
|
-
};
|
|
511
|
-
implementation: import("./styles/types").StyleImplementation;
|
|
512
|
-
};
|
|
513
|
-
italic: {
|
|
514
|
-
config: {
|
|
515
|
-
type: string;
|
|
516
|
-
propSchema: "boolean";
|
|
517
|
-
};
|
|
518
|
-
implementation: import("./styles/types").StyleImplementation;
|
|
519
|
-
};
|
|
520
|
-
underline: {
|
|
521
|
-
config: {
|
|
522
|
-
type: string;
|
|
523
|
-
propSchema: "boolean";
|
|
524
|
-
};
|
|
525
|
-
implementation: import("./styles/types").StyleImplementation;
|
|
526
|
-
};
|
|
527
|
-
strike: {
|
|
528
|
-
config: {
|
|
529
|
-
type: string;
|
|
530
|
-
propSchema: "boolean";
|
|
531
|
-
};
|
|
532
|
-
implementation: import("./styles/types").StyleImplementation;
|
|
533
|
-
};
|
|
534
|
-
code: {
|
|
535
|
-
config: {
|
|
536
|
-
type: string;
|
|
537
|
-
propSchema: "boolean";
|
|
538
|
-
};
|
|
539
|
-
implementation: import("./styles/types").StyleImplementation;
|
|
540
|
-
};
|
|
541
|
-
textColor: {
|
|
542
|
-
config: {
|
|
543
|
-
type: string;
|
|
544
|
-
propSchema: "string";
|
|
545
|
-
};
|
|
546
|
-
implementation: import("./styles/types").StyleImplementation;
|
|
547
|
-
};
|
|
548
|
-
backgroundColor: {
|
|
549
|
-
config: {
|
|
550
|
-
type: string;
|
|
551
|
-
propSchema: "string";
|
|
552
|
-
};
|
|
553
|
-
implementation: import("./styles/types").StyleImplementation;
|
|
554
|
-
};
|
|
555
|
-
}>;
|
|
556
|
-
export type DefaultStyleSchema = typeof defaultStyleSchema;
|
|
557
|
-
export declare const defaultInlineContentSpecs: {
|
|
558
|
-
text: {
|
|
559
|
-
config: "text";
|
|
560
|
-
implementation: any;
|
|
561
|
-
};
|
|
562
|
-
link: {
|
|
563
|
-
config: "link";
|
|
564
|
-
implementation: any;
|
|
565
|
-
};
|
|
566
|
-
};
|
|
567
|
-
export declare const defaultInlineContentSchema: import("./inlineContent/types").InlineContentSchemaFromSpecs<{
|
|
568
|
-
text: {
|
|
569
|
-
config: "text";
|
|
570
|
-
implementation: any;
|
|
571
|
-
};
|
|
572
|
-
link: {
|
|
573
|
-
config: "link";
|
|
574
|
-
implementation: any;
|
|
575
|
-
};
|
|
576
|
-
}>;
|
|
577
|
-
export type DefaultInlineContentSchema = typeof defaultInlineContentSchema;
|