@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.
Files changed (163) hide show
  1. package/dist/blocknote.js +5730 -2891
  2. package/dist/blocknote.js.map +1 -1
  3. package/dist/blocknote.umd.cjs +7 -7
  4. package/dist/blocknote.umd.cjs.map +1 -1
  5. package/dist/style.css +1 -1
  6. package/dist/webpack-stats.json +1 -1
  7. package/package.json +2 -2
  8. package/src/api/exporters/html/__snapshots__/file/basic/external.html +1 -0
  9. package/src/api/exporters/html/__snapshots__/file/basic/internal.html +1 -0
  10. package/src/api/exporters/html/__snapshots__/file/button/external.html +1 -0
  11. package/src/api/exporters/html/__snapshots__/file/button/internal.html +1 -0
  12. package/src/api/exporters/html/__snapshots__/file/nested/external.html +1 -0
  13. package/src/api/exporters/html/__snapshots__/file/nested/internal.html +1 -0
  14. package/src/api/exporters/html/__snapshots__/file/noCaption/external.html +1 -0
  15. package/src/api/exporters/html/__snapshots__/file/noCaption/internal.html +1 -0
  16. package/src/api/exporters/html/__snapshots__/file/noName/external.html +1 -0
  17. package/src/api/exporters/html/__snapshots__/file/noName/internal.html +1 -0
  18. package/src/api/exporters/html/__snapshots__/image/basic/external.html +1 -1
  19. package/src/api/exporters/html/__snapshots__/image/basic/internal.html +1 -1
  20. package/src/api/exporters/html/__snapshots__/image/button/external.html +1 -1
  21. package/src/api/exporters/html/__snapshots__/image/button/internal.html +1 -1
  22. package/src/api/exporters/html/__snapshots__/image/nested/external.html +1 -1
  23. package/src/api/exporters/html/__snapshots__/image/nested/internal.html +1 -1
  24. package/src/api/exporters/html/__snapshots__/image/noCaption/external.html +1 -0
  25. package/src/api/exporters/html/__snapshots__/image/noCaption/internal.html +1 -0
  26. package/src/api/exporters/html/__snapshots__/image/noName/external.html +1 -0
  27. package/src/api/exporters/html/__snapshots__/image/noName/internal.html +1 -0
  28. package/src/api/exporters/html/__snapshots__/image/noPreview/external.html +1 -0
  29. package/src/api/exporters/html/__snapshots__/image/noPreview/internal.html +1 -0
  30. package/src/api/exporters/html/__snapshots__/lists/basic/external.html +1 -0
  31. package/src/api/exporters/html/__snapshots__/lists/basic/internal.html +1 -0
  32. package/src/api/exporters/html/__snapshots__/lists/nested/external.html +1 -0
  33. package/src/api/exporters/html/__snapshots__/lists/nested/internal.html +1 -0
  34. package/src/api/exporters/html/__snapshots__/simpleFile/basic/external.html +1 -0
  35. package/src/api/exporters/html/__snapshots__/simpleFile/basic/internal.html +1 -0
  36. package/src/api/exporters/html/__snapshots__/simpleFile/button/external.html +1 -0
  37. package/src/api/exporters/html/__snapshots__/simpleFile/button/internal.html +1 -0
  38. package/src/api/exporters/html/__snapshots__/simpleFile/nested/external.html +1 -0
  39. package/src/api/exporters/html/__snapshots__/simpleFile/nested/internal.html +1 -0
  40. package/src/api/exporters/html/__snapshots__/simpleImage/basic/external.html +1 -1
  41. package/src/api/exporters/html/__snapshots__/simpleImage/basic/internal.html +1 -1
  42. package/src/api/exporters/html/__snapshots__/simpleImage/button/external.html +1 -1
  43. package/src/api/exporters/html/__snapshots__/simpleImage/button/internal.html +1 -1
  44. package/src/api/exporters/html/__snapshots__/simpleImage/nested/external.html +1 -1
  45. package/src/api/exporters/html/__snapshots__/simpleImage/nested/internal.html +1 -1
  46. package/src/api/exporters/html/__snapshots__/simpleImage/noCaption/external.html +1 -0
  47. package/src/api/exporters/html/__snapshots__/simpleImage/noCaption/internal.html +1 -0
  48. package/src/api/exporters/html/__snapshots__/simpleImage/noName/external.html +1 -0
  49. package/src/api/exporters/html/__snapshots__/simpleImage/noName/internal.html +1 -0
  50. package/src/api/exporters/html/__snapshots__/simpleImage/noPreview/external.html +1 -0
  51. package/src/api/exporters/html/__snapshots__/simpleImage/noPreview/internal.html +1 -0
  52. package/src/api/exporters/html/externalHTMLExporter.ts +4 -3
  53. package/src/api/exporters/html/util/simplifyBlocksRehypePlugin.ts +1 -1
  54. package/src/api/exporters/markdown/__snapshots__/file/basic/markdown.md +3 -0
  55. package/src/api/exporters/markdown/__snapshots__/file/button/markdown.md +1 -0
  56. package/src/api/exporters/markdown/__snapshots__/file/nested/markdown.md +7 -0
  57. package/src/api/exporters/markdown/__snapshots__/file/noCaption/markdown.md +1 -0
  58. package/src/api/exporters/markdown/__snapshots__/file/noName/markdown.md +3 -0
  59. package/src/api/exporters/markdown/__snapshots__/image/basic/markdown.md +1 -1
  60. package/src/api/exporters/markdown/__snapshots__/image/button/markdown.md +1 -1
  61. package/src/api/exporters/markdown/__snapshots__/image/nested/markdown.md +2 -2
  62. package/src/api/exporters/markdown/__snapshots__/image/noCaption/markdown.md +1 -0
  63. package/src/api/exporters/markdown/__snapshots__/image/noName/markdown.md +3 -0
  64. package/src/api/exporters/markdown/__snapshots__/image/noPreview/markdown.md +3 -0
  65. package/src/api/exporters/markdown/__snapshots__/lists/basic/markdown.md +8 -0
  66. package/src/api/exporters/markdown/__snapshots__/lists/nested/markdown.md +10 -0
  67. package/src/api/exporters/markdown/__snapshots__/simpleFile/basic/markdown.md +3 -0
  68. package/src/api/exporters/markdown/__snapshots__/simpleFile/button/markdown.md +1 -0
  69. package/src/api/exporters/markdown/__snapshots__/simpleFile/nested/markdown.md +7 -0
  70. package/src/api/exporters/markdown/__snapshots__/simpleImage/basic/markdown.md +3 -1
  71. package/src/api/exporters/markdown/__snapshots__/simpleImage/button/markdown.md +1 -0
  72. package/src/api/exporters/markdown/__snapshots__/simpleImage/nested/markdown.md +6 -2
  73. package/src/api/exporters/markdown/__snapshots__/simpleImage/noCaption/markdown.md +1 -0
  74. package/src/api/exporters/markdown/__snapshots__/simpleImage/noName/markdown.md +3 -0
  75. package/src/api/exporters/markdown/__snapshots__/simpleImage/noPreview/markdown.md +3 -0
  76. package/src/api/exporters/markdown/markdownExporter.ts +2 -0
  77. package/src/api/exporters/markdown/util/addSpacesToCheckboxesRehypePlugin.ts +42 -0
  78. package/src/api/nodeConversions/__snapshots__/nodeConversions.test.ts.snap +262 -4
  79. package/src/api/parsers/html/__snapshots__/paste/list-test.json +74 -2
  80. package/src/api/parsers/html/__snapshots__/paste/parse-basic-block-types.json +3 -1
  81. package/src/api/parsers/html/__snapshots__/paste/parse-fake-image-caption.json +3 -1
  82. package/src/api/parsers/html/__snapshots__/paste/parse-mixed-nested-lists.json +135 -10
  83. package/src/api/parsers/html/__snapshots__/paste/parse-nested-lists-with-paragraphs.json +132 -7
  84. package/src/api/parsers/html/__snapshots__/paste/parse-nested-lists.json +111 -3
  85. package/src/api/parsers/html/parseHTML.test.ts +166 -95
  86. package/src/api/testUtil/cases/customBlocks.ts +82 -33
  87. package/src/api/testUtil/cases/customInlineContent.ts +1 -1
  88. package/src/api/testUtil/cases/customStyles.ts +1 -1
  89. package/src/api/testUtil/cases/defaultSchema.ts +185 -4
  90. package/src/blocks/AudioBlockContent/AudioBlockContent.ts +163 -0
  91. package/src/blocks/AudioBlockContent/audioBlockHelpers.ts +5 -0
  92. package/src/blocks/FileBlockContent/FileBlockContent.ts +120 -0
  93. package/src/blocks/FileBlockContent/fileBlockHelpers.ts +377 -0
  94. package/src/blocks/ImageBlockContent/ImageBlockContent.ts +134 -354
  95. package/src/blocks/ImageBlockContent/imageBlockHelpers.ts +6 -0
  96. package/src/blocks/ListItemBlockContent/BulletListItemBlockContent/BulletListItemBlockContent.ts +3 -0
  97. package/src/blocks/ListItemBlockContent/CheckListItemBlockContent/CheckListItemBlockContent.ts +266 -0
  98. package/src/blocks/ListItemBlockContent/ListItemKeyboardShortcuts.ts +2 -1
  99. package/src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListItemBlockContent.ts +1 -0
  100. package/src/blocks/VideoBlockContent/VideoBlockContent.ts +181 -0
  101. package/src/blocks/VideoBlockContent/videoBlockHelpers.ts +6 -0
  102. package/src/blocks/defaultBlockTypeGuards.ts +53 -1
  103. package/src/blocks/defaultBlocks.ts +11 -2
  104. package/src/editor/Block.css +89 -27
  105. package/src/editor/BlockNoteEditor.ts +24 -10
  106. package/src/editor/BlockNoteSchema.ts +12 -3
  107. package/src/editor/transformPasted.ts +2 -1
  108. package/src/extensions/{ImagePanel/ImageToolbarPlugin.ts → FilePanel/FilePanelPlugin.ts} +22 -25
  109. package/src/extensions/FormattingToolbar/FormattingToolbarPlugin.ts +14 -2
  110. package/src/extensions/SuggestionMenu/getDefaultSlashMenuItems.ts +72 -2
  111. package/src/extensions/TableHandles/TableHandlesPlugin.ts +27 -27
  112. package/src/extensions/TextAlignment/TextAlignmentExtension.ts +7 -1
  113. package/src/i18n/locales/en.ts +117 -11
  114. package/src/i18n/locales/fr.ts +118 -11
  115. package/src/i18n/locales/index.ts +8 -2
  116. package/src/i18n/locales/is.ts +295 -0
  117. package/src/i18n/locales/ja.ts +323 -0
  118. package/src/i18n/locales/ko.ts +307 -0
  119. package/src/i18n/locales/nl.ts +108 -8
  120. package/src/i18n/locales/pl.ts +287 -0
  121. package/src/i18n/locales/pt.ts +295 -0
  122. package/src/i18n/locales/vi.ts +295 -0
  123. package/src/i18n/locales/zh.ts +123 -8
  124. package/src/index.ts +9 -2
  125. package/src/pm-nodes/BlockContainer.ts +18 -6
  126. package/src/schema/blocks/createSpec.ts +1 -0
  127. package/src/schema/blocks/internal.ts +10 -0
  128. package/src/schema/blocks/types.ts +40 -5
  129. package/src/util/string.ts +12 -0
  130. package/types/src/api/exporters/markdown/util/addSpacesToCheckboxesRehypePlugin.d.ts +7 -0
  131. package/types/src/api/testUtil/cases/customBlocks.d.ts +272 -54
  132. package/types/src/api/testUtil/cases/customInlineContent.d.ts +222 -16
  133. package/types/src/api/testUtil/cases/customStyles.d.ts +222 -16
  134. package/types/src/blocks/AudioBlockContent/AudioBlockContent.d.ts +101 -0
  135. package/types/src/blocks/AudioBlockContent/audioBlockHelpers.d.ts +3 -0
  136. package/types/src/blocks/FileBlockContent/FileBlockContent.d.ts +93 -0
  137. package/types/src/blocks/FileBlockContent/fileBlockHelpers.d.ts +30 -0
  138. package/types/src/blocks/ImageBlockContent/ImageBlockContent.d.ts +50 -14
  139. package/types/src/blocks/ImageBlockContent/imageBlockHelpers.d.ts +4 -0
  140. package/types/src/blocks/ListItemBlockContent/CheckListItemBlockContent/CheckListItemBlockContent.d.ts +55 -0
  141. package/types/src/blocks/VideoBlockContent/VideoBlockContent.d.ts +129 -0
  142. package/types/src/blocks/VideoBlockContent/videoBlockHelpers.d.ts +4 -0
  143. package/types/src/blocks/defaultBlockTypeGuards.d.ts +6 -1
  144. package/types/src/blocks/defaultBlocks.d.ts +444 -32
  145. package/types/src/editor/BlockNoteEditor.d.ts +12 -5
  146. package/types/src/extensions/{ImagePanel/ImageToolbarPlugin.d.ts → FilePanel/FilePanelPlugin.d.ts} +9 -12
  147. package/types/src/extensions/TableHandles/TableHandlesPlugin.d.ts +1 -1
  148. package/types/src/i18n/locales/en.d.ts +56 -7
  149. package/types/src/i18n/locales/fr.d.ts +2 -184
  150. package/types/src/i18n/locales/index.d.ts +7 -1
  151. package/types/src/i18n/locales/is.d.ts +2 -0
  152. package/types/src/i18n/locales/ja.d.ts +2 -0
  153. package/types/src/i18n/locales/ko.d.ts +2 -0
  154. package/types/src/i18n/locales/pl.d.ts +2 -0
  155. package/types/src/i18n/locales/pt.d.ts +2 -0
  156. package/types/src/i18n/locales/vi.d.ts +2 -0
  157. package/types/src/index.d.ts +8 -2
  158. package/types/src/pm-nodes/BlockContainer.d.ts +1 -1
  159. package/types/src/schema/blocks/internal.d.ts +1 -1
  160. package/types/src/schema/blocks/types.d.ts +25 -1
  161. package/types/src/util/string.d.ts +1 -0
  162. /package/src/blocks/{ImageBlockContent → FileBlockContent}/uploadToTmpFilesDotOrg_DEV_ONLY.ts +0 -0
  163. /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("../../..").BlockSchemaFromSpecs<{
4
+ declare const schema: BlockNoteSchema<import("../../../schema").BlockSchemaFromSpecs<{
5
5
  simpleImage: {
6
6
  config: {
7
- type: "simpleImage";
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
- width: {
23
- default: 512;
25
+ showPreview: {
26
+ default: true;
27
+ };
28
+ previewWidth: {
29
+ default: number;
24
30
  };
25
31
  };
26
32
  content: "none";
27
33
  };
28
- implementation: import("../../..").TiptapBlockImplementation<{
29
- type: "simpleImage";
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
- width: {
45
- default: 512;
53
+ showPreview: {
54
+ default: true;
55
+ };
56
+ previewWidth: {
57
+ default: number;
46
58
  };
47
59
  };
48
60
  content: "none";
49
- }, any, import("../../..").InlineContentSchema, import("../../..").StyleSchema>;
61
+ }, any, import("../../../schema").InlineContentSchema, import("../../../schema").StyleSchema>;
50
62
  };
51
63
  customParagraph: {
52
64
  config: {
53
- type: "customParagraph";
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("../../..").TiptapBlockImplementation<{
69
- type: "customParagraph";
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("../../..").InlineContentSchema, import("../../..").StyleSchema>;
95
+ }, any, import("../../../schema").InlineContentSchema, import("../../../schema").StyleSchema>;
84
96
  };
85
97
  simpleCustomParagraph: {
86
98
  config: {
87
- type: "simpleCustomParagraph";
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("../../..").TiptapBlockImplementation<{
103
- type: "simpleCustomParagraph";
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("../../..").InlineContentSchema, import("../../..").StyleSchema>;
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("../../..").TiptapBlockImplementation<{
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("../../..").InlineContentSchema, import("../../..").StyleSchema>;
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("../../..").TiptapBlockImplementation<{
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("../../..").InlineContentSchema, import("../../..").StyleSchema>;
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("../../..").TiptapBlockImplementation<{
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("../../..").InlineContentSchema, import("../../..").StyleSchema>;
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("../../..").TiptapBlockImplementation<{
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("../../..").InlineContentSchema, import("../../..").StyleSchema>;
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
- width: {
281
- default: 512;
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("../../..").TiptapBlockImplementation<{
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
- width: {
303
- default: 512;
439
+ showPreview: {
440
+ default: true;
441
+ };
442
+ previewWidth: {
443
+ default: number;
304
444
  };
305
445
  };
306
446
  content: "none";
307
- }, any, import("../../..").InlineContentSchema, import("../../..").StyleSchema>;
447
+ isFileBlock: true;
448
+ fileBlockAcceptMimeTypes: string[];
449
+ }, any, import("../../../schema").InlineContentSchema, import("../../../schema").StyleSchema>;
308
450
  };
309
- table: {
451
+ video: {
310
452
  config: {
311
- type: "table";
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
- textColor: {
318
- default: "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
- implementation: import("../../..").TiptapBlockImplementation<{
327
- type: "table";
328
- content: "table";
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
- textColor: {
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
- textAlignment: {
337
- default: "left";
338
- values: readonly ["left", "center", "right", "justify"];
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
- }, any, import("../../..").InlineContentSchema, import("../../..").StyleSchema>;
556
+ content: "none";
557
+ isFileBlock: true;
558
+ fileBlockAcceptMimeTypes: string[];
559
+ }, any, import("../../../schema").InlineContentSchema, import("../../../schema").StyleSchema>;
342
560
  };
343
- }>, import("../../..").InlineContentSchemaFromSpecs<{
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("../../..").StyleSchemaFromSpecs<{
570
+ }>, import("../../../schema").StyleSchemaFromSpecs<{
353
571
  bold: {
354
572
  config: {
355
573
  type: string;
356
574
  propSchema: "boolean";
357
575
  };
358
- implementation: import("../../..").StyleImplementation;
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("../../..").StyleImplementation;
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("../../..").StyleImplementation;
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("../../..").StyleImplementation;
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("../../..").StyleImplementation;
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("../../..").StyleImplementation;
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("../../..").StyleImplementation;
618
+ implementation: import("../../../schema").StyleImplementation;
401
619
  };
402
620
  }>>;
403
621
  export declare const customBlocksTestCases: EditorTestCases<typeof schema.blockSchema, DefaultInlineContentSchema, DefaultStyleSchema>;