@blocknote/core 0.13.2 → 0.13.4
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 +5730 -2891
- package/dist/blocknote.js.map +1 -1
- package/dist/blocknote.umd.cjs +7 -7
- package/dist/blocknote.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/dist/webpack-stats.json +1 -1
- package/package.json +2 -2
- package/src/api/exporters/html/__snapshots__/file/basic/external.html +1 -0
- package/src/api/exporters/html/__snapshots__/file/basic/internal.html +1 -0
- package/src/api/exporters/html/__snapshots__/file/button/external.html +1 -0
- package/src/api/exporters/html/__snapshots__/file/button/internal.html +1 -0
- package/src/api/exporters/html/__snapshots__/file/nested/external.html +1 -0
- package/src/api/exporters/html/__snapshots__/file/nested/internal.html +1 -0
- package/src/api/exporters/html/__snapshots__/file/noCaption/external.html +1 -0
- package/src/api/exporters/html/__snapshots__/file/noCaption/internal.html +1 -0
- package/src/api/exporters/html/__snapshots__/file/noName/external.html +1 -0
- package/src/api/exporters/html/__snapshots__/file/noName/internal.html +1 -0
- package/src/api/exporters/html/__snapshots__/image/basic/external.html +1 -1
- package/src/api/exporters/html/__snapshots__/image/basic/internal.html +1 -1
- package/src/api/exporters/html/__snapshots__/image/button/external.html +1 -1
- package/src/api/exporters/html/__snapshots__/image/button/internal.html +1 -1
- package/src/api/exporters/html/__snapshots__/image/nested/external.html +1 -1
- package/src/api/exporters/html/__snapshots__/image/nested/internal.html +1 -1
- package/src/api/exporters/html/__snapshots__/image/noCaption/external.html +1 -0
- package/src/api/exporters/html/__snapshots__/image/noCaption/internal.html +1 -0
- package/src/api/exporters/html/__snapshots__/image/noName/external.html +1 -0
- package/src/api/exporters/html/__snapshots__/image/noName/internal.html +1 -0
- package/src/api/exporters/html/__snapshots__/image/noPreview/external.html +1 -0
- package/src/api/exporters/html/__snapshots__/image/noPreview/internal.html +1 -0
- package/src/api/exporters/html/__snapshots__/lists/basic/external.html +1 -0
- package/src/api/exporters/html/__snapshots__/lists/basic/internal.html +1 -0
- package/src/api/exporters/html/__snapshots__/lists/nested/external.html +1 -0
- package/src/api/exporters/html/__snapshots__/lists/nested/internal.html +1 -0
- package/src/api/exporters/html/__snapshots__/simpleFile/basic/external.html +1 -0
- package/src/api/exporters/html/__snapshots__/simpleFile/basic/internal.html +1 -0
- package/src/api/exporters/html/__snapshots__/simpleFile/button/external.html +1 -0
- package/src/api/exporters/html/__snapshots__/simpleFile/button/internal.html +1 -0
- package/src/api/exporters/html/__snapshots__/simpleFile/nested/external.html +1 -0
- package/src/api/exporters/html/__snapshots__/simpleFile/nested/internal.html +1 -0
- package/src/api/exporters/html/__snapshots__/simpleImage/basic/external.html +1 -1
- package/src/api/exporters/html/__snapshots__/simpleImage/basic/internal.html +1 -1
- package/src/api/exporters/html/__snapshots__/simpleImage/button/external.html +1 -1
- package/src/api/exporters/html/__snapshots__/simpleImage/button/internal.html +1 -1
- package/src/api/exporters/html/__snapshots__/simpleImage/nested/external.html +1 -1
- package/src/api/exporters/html/__snapshots__/simpleImage/nested/internal.html +1 -1
- package/src/api/exporters/html/__snapshots__/simpleImage/noCaption/external.html +1 -0
- package/src/api/exporters/html/__snapshots__/simpleImage/noCaption/internal.html +1 -0
- package/src/api/exporters/html/__snapshots__/simpleImage/noName/external.html +1 -0
- package/src/api/exporters/html/__snapshots__/simpleImage/noName/internal.html +1 -0
- package/src/api/exporters/html/__snapshots__/simpleImage/noPreview/external.html +1 -0
- package/src/api/exporters/html/__snapshots__/simpleImage/noPreview/internal.html +1 -0
- package/src/api/exporters/html/externalHTMLExporter.ts +4 -3
- package/src/api/exporters/html/util/simplifyBlocksRehypePlugin.ts +1 -1
- package/src/api/exporters/markdown/__snapshots__/file/basic/markdown.md +3 -0
- package/src/api/exporters/markdown/__snapshots__/file/button/markdown.md +1 -0
- package/src/api/exporters/markdown/__snapshots__/file/nested/markdown.md +7 -0
- package/src/api/exporters/markdown/__snapshots__/file/noCaption/markdown.md +1 -0
- package/src/api/exporters/markdown/__snapshots__/file/noName/markdown.md +3 -0
- package/src/api/exporters/markdown/__snapshots__/image/basic/markdown.md +1 -1
- package/src/api/exporters/markdown/__snapshots__/image/button/markdown.md +1 -1
- package/src/api/exporters/markdown/__snapshots__/image/nested/markdown.md +2 -2
- package/src/api/exporters/markdown/__snapshots__/image/noCaption/markdown.md +1 -0
- package/src/api/exporters/markdown/__snapshots__/image/noName/markdown.md +3 -0
- package/src/api/exporters/markdown/__snapshots__/image/noPreview/markdown.md +3 -0
- package/src/api/exporters/markdown/__snapshots__/lists/basic/markdown.md +8 -0
- package/src/api/exporters/markdown/__snapshots__/lists/nested/markdown.md +10 -0
- package/src/api/exporters/markdown/__snapshots__/simpleFile/basic/markdown.md +3 -0
- package/src/api/exporters/markdown/__snapshots__/simpleFile/button/markdown.md +1 -0
- package/src/api/exporters/markdown/__snapshots__/simpleFile/nested/markdown.md +7 -0
- package/src/api/exporters/markdown/__snapshots__/simpleImage/basic/markdown.md +3 -1
- package/src/api/exporters/markdown/__snapshots__/simpleImage/button/markdown.md +1 -0
- package/src/api/exporters/markdown/__snapshots__/simpleImage/nested/markdown.md +6 -2
- package/src/api/exporters/markdown/__snapshots__/simpleImage/noCaption/markdown.md +1 -0
- package/src/api/exporters/markdown/__snapshots__/simpleImage/noName/markdown.md +3 -0
- package/src/api/exporters/markdown/__snapshots__/simpleImage/noPreview/markdown.md +3 -0
- package/src/api/exporters/markdown/markdownExporter.ts +2 -0
- package/src/api/exporters/markdown/util/addSpacesToCheckboxesRehypePlugin.ts +42 -0
- package/src/api/nodeConversions/__snapshots__/nodeConversions.test.ts.snap +262 -4
- package/src/api/parsers/html/__snapshots__/paste/list-test.json +74 -2
- package/src/api/parsers/html/__snapshots__/paste/parse-basic-block-types.json +3 -1
- package/src/api/parsers/html/__snapshots__/paste/parse-fake-image-caption.json +3 -1
- package/src/api/parsers/html/__snapshots__/paste/parse-mixed-nested-lists.json +135 -10
- package/src/api/parsers/html/__snapshots__/paste/parse-nested-lists-with-paragraphs.json +132 -7
- package/src/api/parsers/html/__snapshots__/paste/parse-nested-lists.json +111 -3
- package/src/api/parsers/html/parseHTML.test.ts +166 -95
- package/src/api/testUtil/cases/customBlocks.ts +82 -33
- package/src/api/testUtil/cases/customInlineContent.ts +1 -1
- package/src/api/testUtil/cases/customStyles.ts +1 -1
- package/src/api/testUtil/cases/defaultSchema.ts +185 -4
- package/src/blocks/AudioBlockContent/AudioBlockContent.ts +163 -0
- package/src/blocks/AudioBlockContent/audioBlockHelpers.ts +5 -0
- package/src/blocks/FileBlockContent/FileBlockContent.ts +120 -0
- package/src/blocks/FileBlockContent/fileBlockHelpers.ts +377 -0
- package/src/blocks/ImageBlockContent/ImageBlockContent.ts +134 -354
- package/src/blocks/ImageBlockContent/imageBlockHelpers.ts +6 -0
- package/src/blocks/ListItemBlockContent/BulletListItemBlockContent/BulletListItemBlockContent.ts +3 -0
- package/src/blocks/ListItemBlockContent/CheckListItemBlockContent/CheckListItemBlockContent.ts +266 -0
- package/src/blocks/ListItemBlockContent/ListItemKeyboardShortcuts.ts +2 -1
- package/src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListItemBlockContent.ts +1 -0
- package/src/blocks/VideoBlockContent/VideoBlockContent.ts +181 -0
- package/src/blocks/VideoBlockContent/videoBlockHelpers.ts +6 -0
- package/src/blocks/defaultBlockTypeGuards.ts +53 -1
- package/src/blocks/defaultBlocks.ts +11 -2
- package/src/editor/Block.css +89 -27
- package/src/editor/BlockNoteEditor.ts +24 -10
- package/src/editor/BlockNoteSchema.ts +12 -3
- package/src/editor/transformPasted.ts +2 -1
- package/src/extensions/{ImagePanel/ImageToolbarPlugin.ts → FilePanel/FilePanelPlugin.ts} +22 -25
- package/src/extensions/FormattingToolbar/FormattingToolbarPlugin.ts +14 -2
- package/src/extensions/SuggestionMenu/getDefaultSlashMenuItems.ts +72 -2
- package/src/extensions/TableHandles/TableHandlesPlugin.ts +27 -27
- package/src/extensions/TextAlignment/TextAlignmentExtension.ts +7 -1
- package/src/i18n/locales/en.ts +117 -11
- package/src/i18n/locales/fr.ts +118 -11
- package/src/i18n/locales/index.ts +8 -2
- package/src/i18n/locales/is.ts +295 -0
- package/src/i18n/locales/ja.ts +323 -0
- package/src/i18n/locales/ko.ts +307 -0
- package/src/i18n/locales/nl.ts +108 -8
- package/src/i18n/locales/pl.ts +287 -0
- package/src/i18n/locales/pt.ts +295 -0
- package/src/i18n/locales/vi.ts +295 -0
- package/src/i18n/locales/zh.ts +123 -8
- package/src/index.ts +9 -2
- package/src/pm-nodes/BlockContainer.ts +18 -6
- package/src/schema/blocks/createSpec.ts +1 -0
- package/src/schema/blocks/internal.ts +10 -0
- package/src/schema/blocks/types.ts +40 -5
- package/src/util/string.ts +12 -0
- package/types/src/api/exporters/markdown/util/addSpacesToCheckboxesRehypePlugin.d.ts +7 -0
- package/types/src/api/testUtil/cases/customBlocks.d.ts +272 -54
- package/types/src/api/testUtil/cases/customInlineContent.d.ts +222 -16
- package/types/src/api/testUtil/cases/customStyles.d.ts +222 -16
- package/types/src/blocks/AudioBlockContent/AudioBlockContent.d.ts +101 -0
- package/types/src/blocks/AudioBlockContent/audioBlockHelpers.d.ts +3 -0
- package/types/src/blocks/FileBlockContent/FileBlockContent.d.ts +93 -0
- package/types/src/blocks/FileBlockContent/fileBlockHelpers.d.ts +30 -0
- package/types/src/blocks/ImageBlockContent/ImageBlockContent.d.ts +50 -14
- package/types/src/blocks/ImageBlockContent/imageBlockHelpers.d.ts +4 -0
- package/types/src/blocks/ListItemBlockContent/CheckListItemBlockContent/CheckListItemBlockContent.d.ts +55 -0
- package/types/src/blocks/VideoBlockContent/VideoBlockContent.d.ts +129 -0
- package/types/src/blocks/VideoBlockContent/videoBlockHelpers.d.ts +4 -0
- package/types/src/blocks/defaultBlockTypeGuards.d.ts +6 -1
- package/types/src/blocks/defaultBlocks.d.ts +444 -32
- package/types/src/editor/BlockNoteEditor.d.ts +12 -5
- package/types/src/extensions/{ImagePanel/ImageToolbarPlugin.d.ts → FilePanel/FilePanelPlugin.d.ts} +9 -12
- package/types/src/extensions/TableHandles/TableHandlesPlugin.d.ts +1 -1
- package/types/src/i18n/locales/en.d.ts +56 -7
- package/types/src/i18n/locales/fr.d.ts +2 -184
- package/types/src/i18n/locales/index.d.ts +7 -1
- package/types/src/i18n/locales/is.d.ts +2 -0
- package/types/src/i18n/locales/ja.d.ts +2 -0
- package/types/src/i18n/locales/ko.d.ts +2 -0
- package/types/src/i18n/locales/pl.d.ts +2 -0
- package/types/src/i18n/locales/pt.d.ts +2 -0
- package/types/src/i18n/locales/vi.d.ts +2 -0
- package/types/src/index.d.ts +8 -2
- package/types/src/pm-nodes/BlockContainer.d.ts +1 -1
- package/types/src/schema/blocks/internal.d.ts +1 -1
- package/types/src/schema/blocks/types.d.ts +25 -1
- package/types/src/util/string.d.ts +1 -0
- /package/src/blocks/{ImageBlockContent → FileBlockContent}/uploadToTmpFilesDotOrg_DEV_ONLY.ts +0 -0
- /package/types/src/blocks/{ImageBlockContent → FileBlockContent}/uploadToTmpFilesDotOrg_DEV_ONLY.d.ts +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { EditorTestCases } from "../index";
|
|
2
2
|
import { DefaultInlineContentSchema, DefaultStyleSchema } from "../../../blocks/defaultBlocks";
|
|
3
3
|
import { BlockNoteSchema } from "../../../editor/BlockNoteSchema";
|
|
4
|
-
declare const schema: BlockNoteSchema<import("
|
|
4
|
+
declare const schema: BlockNoteSchema<import("../../../schema").BlockSchemaFromSpecs<{
|
|
5
5
|
simpleImage: {
|
|
6
6
|
config: {
|
|
7
|
-
type:
|
|
7
|
+
type: string;
|
|
8
8
|
propSchema: {
|
|
9
9
|
textAlignment: {
|
|
10
10
|
default: "left";
|
|
@@ -13,20 +13,26 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
13
13
|
backgroundColor: {
|
|
14
14
|
default: "default";
|
|
15
15
|
};
|
|
16
|
+
name: {
|
|
17
|
+
default: "";
|
|
18
|
+
};
|
|
16
19
|
url: {
|
|
17
20
|
default: "";
|
|
18
21
|
};
|
|
19
22
|
caption: {
|
|
20
23
|
default: "";
|
|
21
24
|
};
|
|
22
|
-
|
|
23
|
-
default:
|
|
25
|
+
showPreview: {
|
|
26
|
+
default: true;
|
|
27
|
+
};
|
|
28
|
+
previewWidth: {
|
|
29
|
+
default: number;
|
|
24
30
|
};
|
|
25
31
|
};
|
|
26
32
|
content: "none";
|
|
27
33
|
};
|
|
28
|
-
implementation: import("
|
|
29
|
-
type:
|
|
34
|
+
implementation: import("../../../schema").TiptapBlockImplementation<{
|
|
35
|
+
type: string;
|
|
30
36
|
propSchema: {
|
|
31
37
|
textAlignment: {
|
|
32
38
|
default: "left";
|
|
@@ -35,22 +41,28 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
35
41
|
backgroundColor: {
|
|
36
42
|
default: "default";
|
|
37
43
|
};
|
|
44
|
+
name: {
|
|
45
|
+
default: "";
|
|
46
|
+
};
|
|
38
47
|
url: {
|
|
39
48
|
default: "";
|
|
40
49
|
};
|
|
41
50
|
caption: {
|
|
42
51
|
default: "";
|
|
43
52
|
};
|
|
44
|
-
|
|
45
|
-
default:
|
|
53
|
+
showPreview: {
|
|
54
|
+
default: true;
|
|
55
|
+
};
|
|
56
|
+
previewWidth: {
|
|
57
|
+
default: number;
|
|
46
58
|
};
|
|
47
59
|
};
|
|
48
60
|
content: "none";
|
|
49
|
-
}, any, import("
|
|
61
|
+
}, any, import("../../../schema").InlineContentSchema, import("../../../schema").StyleSchema>;
|
|
50
62
|
};
|
|
51
63
|
customParagraph: {
|
|
52
64
|
config: {
|
|
53
|
-
type:
|
|
65
|
+
type: string;
|
|
54
66
|
propSchema: {
|
|
55
67
|
backgroundColor: {
|
|
56
68
|
default: "default";
|
|
@@ -65,8 +77,8 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
65
77
|
};
|
|
66
78
|
content: "inline";
|
|
67
79
|
};
|
|
68
|
-
implementation: import("
|
|
69
|
-
type:
|
|
80
|
+
implementation: import("../../../schema").TiptapBlockImplementation<{
|
|
81
|
+
type: string;
|
|
70
82
|
propSchema: {
|
|
71
83
|
backgroundColor: {
|
|
72
84
|
default: "default";
|
|
@@ -80,11 +92,11 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
80
92
|
};
|
|
81
93
|
};
|
|
82
94
|
content: "inline";
|
|
83
|
-
}, any, import("
|
|
95
|
+
}, any, import("../../../schema").InlineContentSchema, import("../../../schema").StyleSchema>;
|
|
84
96
|
};
|
|
85
97
|
simpleCustomParagraph: {
|
|
86
98
|
config: {
|
|
87
|
-
type:
|
|
99
|
+
type: string;
|
|
88
100
|
propSchema: {
|
|
89
101
|
backgroundColor: {
|
|
90
102
|
default: "default";
|
|
@@ -99,8 +111,8 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
99
111
|
};
|
|
100
112
|
content: "inline";
|
|
101
113
|
};
|
|
102
|
-
implementation: import("
|
|
103
|
-
type:
|
|
114
|
+
implementation: import("../../../schema").TiptapBlockImplementation<{
|
|
115
|
+
type: string;
|
|
104
116
|
propSchema: {
|
|
105
117
|
backgroundColor: {
|
|
106
118
|
default: "default";
|
|
@@ -114,7 +126,7 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
114
126
|
};
|
|
115
127
|
};
|
|
116
128
|
content: "inline";
|
|
117
|
-
}, any, import("
|
|
129
|
+
}, any, import("../../../schema").InlineContentSchema, import("../../../schema").StyleSchema>;
|
|
118
130
|
};
|
|
119
131
|
paragraph: {
|
|
120
132
|
config: {
|
|
@@ -133,7 +145,7 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
133
145
|
};
|
|
134
146
|
};
|
|
135
147
|
};
|
|
136
|
-
implementation: import("
|
|
148
|
+
implementation: import("../../../schema").TiptapBlockImplementation<{
|
|
137
149
|
type: "paragraph";
|
|
138
150
|
content: "inline";
|
|
139
151
|
propSchema: {
|
|
@@ -148,7 +160,7 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
148
160
|
values: readonly ["left", "center", "right", "justify"];
|
|
149
161
|
};
|
|
150
162
|
};
|
|
151
|
-
}, any, import("
|
|
163
|
+
}, any, import("../../../schema").InlineContentSchema, import("../../../schema").StyleSchema>;
|
|
152
164
|
};
|
|
153
165
|
heading: {
|
|
154
166
|
config: {
|
|
@@ -171,7 +183,7 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
171
183
|
};
|
|
172
184
|
};
|
|
173
185
|
};
|
|
174
|
-
implementation: import("
|
|
186
|
+
implementation: import("../../../schema").TiptapBlockImplementation<{
|
|
175
187
|
type: "heading";
|
|
176
188
|
content: "inline";
|
|
177
189
|
propSchema: {
|
|
@@ -190,7 +202,7 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
190
202
|
values: readonly ["left", "center", "right", "justify"];
|
|
191
203
|
};
|
|
192
204
|
};
|
|
193
|
-
}, any, import("
|
|
205
|
+
}, any, import("../../../schema").InlineContentSchema, import("../../../schema").StyleSchema>;
|
|
194
206
|
};
|
|
195
207
|
bulletListItem: {
|
|
196
208
|
config: {
|
|
@@ -209,7 +221,7 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
209
221
|
};
|
|
210
222
|
};
|
|
211
223
|
};
|
|
212
|
-
implementation: import("
|
|
224
|
+
implementation: import("../../../schema").TiptapBlockImplementation<{
|
|
213
225
|
type: "bulletListItem";
|
|
214
226
|
content: "inline";
|
|
215
227
|
propSchema: {
|
|
@@ -224,7 +236,7 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
224
236
|
values: readonly ["left", "center", "right", "justify"];
|
|
225
237
|
};
|
|
226
238
|
};
|
|
227
|
-
}, any, import("
|
|
239
|
+
}, any, import("../../../schema").InlineContentSchema, import("../../../schema").StyleSchema>;
|
|
228
240
|
};
|
|
229
241
|
numberedListItem: {
|
|
230
242
|
config: {
|
|
@@ -243,7 +255,7 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
243
255
|
};
|
|
244
256
|
};
|
|
245
257
|
};
|
|
246
|
-
implementation: import("
|
|
258
|
+
implementation: import("../../../schema").TiptapBlockImplementation<{
|
|
247
259
|
type: "numberedListItem";
|
|
248
260
|
content: "inline";
|
|
249
261
|
propSchema: {
|
|
@@ -258,7 +270,121 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
258
270
|
values: readonly ["left", "center", "right", "justify"];
|
|
259
271
|
};
|
|
260
272
|
};
|
|
261
|
-
}, any, import("
|
|
273
|
+
}, any, import("../../../schema").InlineContentSchema, import("../../../schema").StyleSchema>;
|
|
274
|
+
};
|
|
275
|
+
checkListItem: {
|
|
276
|
+
config: {
|
|
277
|
+
type: "checkListItem";
|
|
278
|
+
content: "inline";
|
|
279
|
+
propSchema: {
|
|
280
|
+
checked: {
|
|
281
|
+
default: false;
|
|
282
|
+
};
|
|
283
|
+
backgroundColor: {
|
|
284
|
+
default: "default";
|
|
285
|
+
};
|
|
286
|
+
textColor: {
|
|
287
|
+
default: "default";
|
|
288
|
+
};
|
|
289
|
+
textAlignment: {
|
|
290
|
+
default: "left";
|
|
291
|
+
values: readonly ["left", "center", "right", "justify"];
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
};
|
|
295
|
+
implementation: import("../../../schema").TiptapBlockImplementation<{
|
|
296
|
+
type: "checkListItem";
|
|
297
|
+
content: "inline";
|
|
298
|
+
propSchema: {
|
|
299
|
+
checked: {
|
|
300
|
+
default: false;
|
|
301
|
+
};
|
|
302
|
+
backgroundColor: {
|
|
303
|
+
default: "default";
|
|
304
|
+
};
|
|
305
|
+
textColor: {
|
|
306
|
+
default: "default";
|
|
307
|
+
};
|
|
308
|
+
textAlignment: {
|
|
309
|
+
default: "left";
|
|
310
|
+
values: readonly ["left", "center", "right", "justify"];
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
}, any, import("../../../schema").InlineContentSchema, import("../../../schema").StyleSchema>;
|
|
314
|
+
};
|
|
315
|
+
table: {
|
|
316
|
+
config: {
|
|
317
|
+
type: "table";
|
|
318
|
+
content: "table";
|
|
319
|
+
propSchema: {
|
|
320
|
+
backgroundColor: {
|
|
321
|
+
default: "default";
|
|
322
|
+
};
|
|
323
|
+
textColor: {
|
|
324
|
+
default: "default";
|
|
325
|
+
};
|
|
326
|
+
textAlignment: {
|
|
327
|
+
default: "left";
|
|
328
|
+
values: readonly ["left", "center", "right", "justify"];
|
|
329
|
+
};
|
|
330
|
+
};
|
|
331
|
+
};
|
|
332
|
+
implementation: import("../../../schema").TiptapBlockImplementation<{
|
|
333
|
+
type: "table";
|
|
334
|
+
content: "table";
|
|
335
|
+
propSchema: {
|
|
336
|
+
backgroundColor: {
|
|
337
|
+
default: "default";
|
|
338
|
+
};
|
|
339
|
+
textColor: {
|
|
340
|
+
default: "default";
|
|
341
|
+
};
|
|
342
|
+
textAlignment: {
|
|
343
|
+
default: "left";
|
|
344
|
+
values: readonly ["left", "center", "right", "justify"];
|
|
345
|
+
};
|
|
346
|
+
};
|
|
347
|
+
}, any, import("../../../schema").InlineContentSchema, import("../../../schema").StyleSchema>;
|
|
348
|
+
};
|
|
349
|
+
file: {
|
|
350
|
+
config: {
|
|
351
|
+
type: "file";
|
|
352
|
+
propSchema: {
|
|
353
|
+
backgroundColor: {
|
|
354
|
+
default: "default";
|
|
355
|
+
};
|
|
356
|
+
name: {
|
|
357
|
+
default: "";
|
|
358
|
+
};
|
|
359
|
+
url: {
|
|
360
|
+
default: "";
|
|
361
|
+
};
|
|
362
|
+
caption: {
|
|
363
|
+
default: "";
|
|
364
|
+
};
|
|
365
|
+
};
|
|
366
|
+
content: "none";
|
|
367
|
+
isFileBlock: true;
|
|
368
|
+
};
|
|
369
|
+
implementation: import("../../../schema").TiptapBlockImplementation<{
|
|
370
|
+
type: "file";
|
|
371
|
+
propSchema: {
|
|
372
|
+
backgroundColor: {
|
|
373
|
+
default: "default";
|
|
374
|
+
};
|
|
375
|
+
name: {
|
|
376
|
+
default: "";
|
|
377
|
+
};
|
|
378
|
+
url: {
|
|
379
|
+
default: "";
|
|
380
|
+
};
|
|
381
|
+
caption: {
|
|
382
|
+
default: "";
|
|
383
|
+
};
|
|
384
|
+
};
|
|
385
|
+
content: "none";
|
|
386
|
+
isFileBlock: true;
|
|
387
|
+
}, any, import("../../../schema").InlineContentSchema, import("../../../schema").StyleSchema>;
|
|
262
388
|
};
|
|
263
389
|
image: {
|
|
264
390
|
config: {
|
|
@@ -271,19 +397,27 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
271
397
|
backgroundColor: {
|
|
272
398
|
default: "default";
|
|
273
399
|
};
|
|
400
|
+
name: {
|
|
401
|
+
default: "";
|
|
402
|
+
};
|
|
274
403
|
url: {
|
|
275
404
|
default: "";
|
|
276
405
|
};
|
|
277
406
|
caption: {
|
|
278
407
|
default: "";
|
|
279
408
|
};
|
|
280
|
-
|
|
281
|
-
default:
|
|
409
|
+
showPreview: {
|
|
410
|
+
default: true;
|
|
411
|
+
};
|
|
412
|
+
previewWidth: {
|
|
413
|
+
default: number;
|
|
282
414
|
};
|
|
283
415
|
};
|
|
284
416
|
content: "none";
|
|
417
|
+
isFileBlock: true;
|
|
418
|
+
fileBlockAcceptMimeTypes: string[];
|
|
285
419
|
};
|
|
286
|
-
implementation: import("
|
|
420
|
+
implementation: import("../../../schema").TiptapBlockImplementation<{
|
|
287
421
|
type: "image";
|
|
288
422
|
propSchema: {
|
|
289
423
|
textAlignment: {
|
|
@@ -293,54 +427,138 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
293
427
|
backgroundColor: {
|
|
294
428
|
default: "default";
|
|
295
429
|
};
|
|
430
|
+
name: {
|
|
431
|
+
default: "";
|
|
432
|
+
};
|
|
296
433
|
url: {
|
|
297
434
|
default: "";
|
|
298
435
|
};
|
|
299
436
|
caption: {
|
|
300
437
|
default: "";
|
|
301
438
|
};
|
|
302
|
-
|
|
303
|
-
default:
|
|
439
|
+
showPreview: {
|
|
440
|
+
default: true;
|
|
441
|
+
};
|
|
442
|
+
previewWidth: {
|
|
443
|
+
default: number;
|
|
304
444
|
};
|
|
305
445
|
};
|
|
306
446
|
content: "none";
|
|
307
|
-
|
|
447
|
+
isFileBlock: true;
|
|
448
|
+
fileBlockAcceptMimeTypes: string[];
|
|
449
|
+
}, any, import("../../../schema").InlineContentSchema, import("../../../schema").StyleSchema>;
|
|
308
450
|
};
|
|
309
|
-
|
|
451
|
+
video: {
|
|
310
452
|
config: {
|
|
311
|
-
type: "
|
|
312
|
-
content: "table";
|
|
453
|
+
type: "video";
|
|
313
454
|
propSchema: {
|
|
455
|
+
textAlignment: {
|
|
456
|
+
default: "left";
|
|
457
|
+
values: readonly ["left", "center", "right", "justify"];
|
|
458
|
+
};
|
|
314
459
|
backgroundColor: {
|
|
315
460
|
default: "default";
|
|
316
461
|
};
|
|
317
|
-
|
|
318
|
-
default: "
|
|
462
|
+
name: {
|
|
463
|
+
default: "";
|
|
464
|
+
};
|
|
465
|
+
url: {
|
|
466
|
+
default: "";
|
|
319
467
|
};
|
|
468
|
+
caption: {
|
|
469
|
+
default: "";
|
|
470
|
+
};
|
|
471
|
+
showPreview: {
|
|
472
|
+
default: true;
|
|
473
|
+
};
|
|
474
|
+
previewWidth: {
|
|
475
|
+
default: number;
|
|
476
|
+
};
|
|
477
|
+
};
|
|
478
|
+
content: "none";
|
|
479
|
+
isFileBlock: true;
|
|
480
|
+
fileBlockAcceptMimeTypes: string[];
|
|
481
|
+
};
|
|
482
|
+
implementation: import("../../../schema").TiptapBlockImplementation<{
|
|
483
|
+
type: "video";
|
|
484
|
+
propSchema: {
|
|
320
485
|
textAlignment: {
|
|
321
486
|
default: "left";
|
|
322
487
|
values: readonly ["left", "center", "right", "justify"];
|
|
323
488
|
};
|
|
489
|
+
backgroundColor: {
|
|
490
|
+
default: "default";
|
|
491
|
+
};
|
|
492
|
+
name: {
|
|
493
|
+
default: "";
|
|
494
|
+
};
|
|
495
|
+
url: {
|
|
496
|
+
default: "";
|
|
497
|
+
};
|
|
498
|
+
caption: {
|
|
499
|
+
default: "";
|
|
500
|
+
};
|
|
501
|
+
showPreview: {
|
|
502
|
+
default: true;
|
|
503
|
+
};
|
|
504
|
+
previewWidth: {
|
|
505
|
+
default: number;
|
|
506
|
+
};
|
|
324
507
|
};
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
508
|
+
content: "none";
|
|
509
|
+
isFileBlock: true;
|
|
510
|
+
fileBlockAcceptMimeTypes: string[];
|
|
511
|
+
}, any, import("../../../schema").InlineContentSchema, import("../../../schema").StyleSchema>;
|
|
512
|
+
};
|
|
513
|
+
audio: {
|
|
514
|
+
config: {
|
|
515
|
+
type: "audio";
|
|
329
516
|
propSchema: {
|
|
330
517
|
backgroundColor: {
|
|
331
518
|
default: "default";
|
|
332
519
|
};
|
|
333
|
-
|
|
520
|
+
name: {
|
|
521
|
+
default: "";
|
|
522
|
+
};
|
|
523
|
+
url: {
|
|
524
|
+
default: "";
|
|
525
|
+
};
|
|
526
|
+
caption: {
|
|
527
|
+
default: "";
|
|
528
|
+
};
|
|
529
|
+
showPreview: {
|
|
530
|
+
default: true;
|
|
531
|
+
};
|
|
532
|
+
};
|
|
533
|
+
content: "none";
|
|
534
|
+
isFileBlock: true;
|
|
535
|
+
fileBlockAcceptMimeTypes: string[];
|
|
536
|
+
};
|
|
537
|
+
implementation: import("../../../schema").TiptapBlockImplementation<{
|
|
538
|
+
type: "audio";
|
|
539
|
+
propSchema: {
|
|
540
|
+
backgroundColor: {
|
|
334
541
|
default: "default";
|
|
335
542
|
};
|
|
336
|
-
|
|
337
|
-
default: "
|
|
338
|
-
|
|
543
|
+
name: {
|
|
544
|
+
default: "";
|
|
545
|
+
};
|
|
546
|
+
url: {
|
|
547
|
+
default: "";
|
|
548
|
+
};
|
|
549
|
+
caption: {
|
|
550
|
+
default: "";
|
|
551
|
+
};
|
|
552
|
+
showPreview: {
|
|
553
|
+
default: true;
|
|
339
554
|
};
|
|
340
555
|
};
|
|
341
|
-
|
|
556
|
+
content: "none";
|
|
557
|
+
isFileBlock: true;
|
|
558
|
+
fileBlockAcceptMimeTypes: string[];
|
|
559
|
+
}, any, import("../../../schema").InlineContentSchema, import("../../../schema").StyleSchema>;
|
|
342
560
|
};
|
|
343
|
-
}>, import("
|
|
561
|
+
}>, import("../../../schema").InlineContentSchemaFromSpecs<{
|
|
344
562
|
text: {
|
|
345
563
|
config: "text";
|
|
346
564
|
implementation: any;
|
|
@@ -349,55 +567,55 @@ declare const schema: BlockNoteSchema<import("../../..").BlockSchemaFromSpecs<{
|
|
|
349
567
|
config: "link";
|
|
350
568
|
implementation: any;
|
|
351
569
|
};
|
|
352
|
-
}>, import("
|
|
570
|
+
}>, import("../../../schema").StyleSchemaFromSpecs<{
|
|
353
571
|
bold: {
|
|
354
572
|
config: {
|
|
355
573
|
type: string;
|
|
356
574
|
propSchema: "boolean";
|
|
357
575
|
};
|
|
358
|
-
implementation: import("
|
|
576
|
+
implementation: import("../../../schema").StyleImplementation;
|
|
359
577
|
};
|
|
360
578
|
italic: {
|
|
361
579
|
config: {
|
|
362
580
|
type: string;
|
|
363
581
|
propSchema: "boolean";
|
|
364
582
|
};
|
|
365
|
-
implementation: import("
|
|
583
|
+
implementation: import("../../../schema").StyleImplementation;
|
|
366
584
|
};
|
|
367
585
|
underline: {
|
|
368
586
|
config: {
|
|
369
587
|
type: string;
|
|
370
588
|
propSchema: "boolean";
|
|
371
589
|
};
|
|
372
|
-
implementation: import("
|
|
590
|
+
implementation: import("../../../schema").StyleImplementation;
|
|
373
591
|
};
|
|
374
592
|
strike: {
|
|
375
593
|
config: {
|
|
376
594
|
type: string;
|
|
377
595
|
propSchema: "boolean";
|
|
378
596
|
};
|
|
379
|
-
implementation: import("
|
|
597
|
+
implementation: import("../../../schema").StyleImplementation;
|
|
380
598
|
};
|
|
381
599
|
code: {
|
|
382
600
|
config: {
|
|
383
601
|
type: string;
|
|
384
602
|
propSchema: "boolean";
|
|
385
603
|
};
|
|
386
|
-
implementation: import("
|
|
604
|
+
implementation: import("../../../schema").StyleImplementation;
|
|
387
605
|
};
|
|
388
606
|
textColor: {
|
|
389
607
|
config: {
|
|
390
608
|
type: string;
|
|
391
609
|
propSchema: "string";
|
|
392
610
|
};
|
|
393
|
-
implementation: import("
|
|
611
|
+
implementation: import("../../../schema").StyleImplementation;
|
|
394
612
|
};
|
|
395
613
|
backgroundColor: {
|
|
396
614
|
config: {
|
|
397
615
|
type: string;
|
|
398
616
|
propSchema: "string";
|
|
399
617
|
};
|
|
400
|
-
implementation: import("
|
|
618
|
+
implementation: import("../../../schema").StyleImplementation;
|
|
401
619
|
};
|
|
402
620
|
}>>;
|
|
403
621
|
export declare const customBlocksTestCases: EditorTestCases<typeof schema.blockSchema, DefaultInlineContentSchema, DefaultStyleSchema>;
|