@blocknote/core 0.10.0 → 0.11.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.
Files changed (81) hide show
  1. package/README.md +1 -1
  2. package/dist/blocknote.js +1536 -1458
  3. package/dist/blocknote.js.map +1 -1
  4. package/dist/blocknote.umd.cjs +6 -6
  5. package/dist/blocknote.umd.cjs.map +1 -1
  6. package/dist/style.css +1 -1
  7. package/dist/webpack-stats.json +1 -1
  8. package/package.json +5 -3
  9. package/src/api/blockManipulation/blockManipulation.ts +144 -30
  10. package/src/api/exporters/copyExtension.ts +97 -24
  11. package/src/api/exporters/html/__snapshots__/image/basic/internal.html +1 -1
  12. package/src/api/exporters/html/__snapshots__/image/button/internal.html +1 -1
  13. package/src/api/exporters/html/__snapshots__/image/nested/internal.html +1 -1
  14. package/src/api/exporters/html/__snapshots__/simpleImage/basic/external.html +1 -1
  15. package/src/api/exporters/html/__snapshots__/simpleImage/basic/internal.html +1 -1
  16. package/src/api/exporters/html/__snapshots__/simpleImage/button/external.html +1 -1
  17. package/src/api/exporters/html/__snapshots__/simpleImage/button/internal.html +1 -1
  18. package/src/api/exporters/html/__snapshots__/simpleImage/nested/external.html +1 -1
  19. package/src/api/exporters/html/__snapshots__/simpleImage/nested/internal.html +1 -1
  20. package/src/api/exporters/html/util/sharedHTMLConversion.ts +1 -0
  21. package/src/api/exporters/markdown/__snapshots__/simpleImage/button/markdown.md +0 -1
  22. package/src/api/nodeConversions/__snapshots__/nodeConversions.test.ts.snap +9 -0
  23. package/src/api/parsers/pasteExtension.ts +0 -1
  24. package/src/blocks/ImageBlockContent/ImageBlockContent.ts +19 -19
  25. package/src/editor/Block.css +19 -14
  26. package/src/editor/BlockNoteEditor.ts +11 -12
  27. package/src/editor/editor.css +1 -0
  28. package/src/extensions/NonEditableBlocks/NonEditableBlockPlugin.ts +12 -1
  29. package/src/extensions/SideMenu/SideMenuPlugin.ts +2 -2
  30. package/src/extensions/TableHandles/TableHandlesPlugin.ts +3 -1
  31. package/src/pm-nodes/BlockContainer.ts +1 -1
  32. package/types/src/api/blockManipulation/blockManipulation.d.ts +8 -6
  33. package/types/src/editor/BlockNoteEditor.d.ts +9 -7
  34. package/types/src/BlockNoteEditor.d.ts +0 -300
  35. package/types/src/BlockNoteEditor.test.d.ts +0 -1
  36. package/types/src/BlockNoteExtensions.d.ts +0 -26
  37. package/types/src/api/nodeConversions/testUtil.d.ts +0 -7
  38. package/types/src/api/testCases/cases/customBlocks.d.ts +0 -345
  39. package/types/src/api/testCases/cases/customInlineContent.d.ts +0 -29
  40. package/types/src/api/testCases/cases/customStyles.d.ts +0 -64
  41. package/types/src/api/testCases/cases/defaultSchema.d.ts +0 -3
  42. package/types/src/api/testCases/index.d.ts +0 -12
  43. package/types/src/api/util/nodeUtil.d.ts +0 -8
  44. package/types/src/extensions/Blocks/NonEditableBlockPlugin.d.ts +0 -2
  45. package/types/src/extensions/Blocks/PreviousBlockTypePlugin.d.ts +0 -14
  46. package/types/src/extensions/Blocks/api/blocks/createSpec.d.ts +0 -35
  47. package/types/src/extensions/Blocks/api/blocks/internal.d.ts +0 -45
  48. package/types/src/extensions/Blocks/api/blocks/types.d.ts +0 -114
  49. package/types/src/extensions/Blocks/api/cursorPositionTypes.d.ts +0 -8
  50. package/types/src/extensions/Blocks/api/defaultBlocks.d.ts +0 -577
  51. package/types/src/extensions/Blocks/api/defaultProps.d.ts +0 -15
  52. package/types/src/extensions/Blocks/api/inlineContent/createSpec.d.ts +0 -21
  53. package/types/src/extensions/Blocks/api/inlineContent/internal.d.ts +0 -25
  54. package/types/src/extensions/Blocks/api/inlineContent/types.d.ts +0 -62
  55. package/types/src/extensions/Blocks/api/selectionTypes.d.ts +0 -6
  56. package/types/src/extensions/Blocks/api/styles/createSpec.d.ts +0 -13
  57. package/types/src/extensions/Blocks/api/styles/internal.d.ts +0 -22
  58. package/types/src/extensions/Blocks/api/styles/types.d.ts +0 -21
  59. package/types/src/extensions/Blocks/helpers/findBlock.d.ts +0 -6
  60. package/types/src/extensions/Blocks/helpers/getBlockInfoFromPos.d.ts +0 -27
  61. package/types/src/extensions/Blocks/index.d.ts +0 -4
  62. package/types/src/extensions/Blocks/nodes/BlockAttributes.d.ts +0 -2
  63. package/types/src/extensions/Blocks/nodes/BlockContainer.d.ts +0 -30
  64. package/types/src/extensions/Blocks/nodes/BlockContent/HeadingBlockContent/HeadingBlockContent.d.ts +0 -58
  65. package/types/src/extensions/Blocks/nodes/BlockContent/ImageBlockContent/ImageBlockContent.d.ts +0 -95
  66. package/types/src/extensions/Blocks/nodes/BlockContent/ImageBlockContent/uploadToTmpFilesDotOrg_DEV_ONLY.d.ts +0 -1
  67. package/types/src/extensions/Blocks/nodes/BlockContent/ListItemBlockContent/BulletListItemBlockContent/BulletListItemBlockContent.d.ts +0 -46
  68. package/types/src/extensions/Blocks/nodes/BlockContent/ListItemBlockContent/ListItemKeyboardShortcuts.d.ts +0 -2
  69. package/types/src/extensions/Blocks/nodes/BlockContent/ListItemBlockContent/NumberedListItemBlockContent/NumberedListIndexingPlugin.d.ts +0 -2
  70. package/types/src/extensions/Blocks/nodes/BlockContent/ListItemBlockContent/NumberedListItemBlockContent/NumberedListItemBlockContent.d.ts +0 -46
  71. package/types/src/extensions/Blocks/nodes/BlockContent/ParagraphBlockContent/ParagraphBlockContent.d.ts +0 -52
  72. package/types/src/extensions/Blocks/nodes/BlockContent/TableBlockContent/TableBlockContent.d.ts +0 -53
  73. package/types/src/extensions/Blocks/nodes/BlockContent/TableBlockContent/TableExtension.d.ts +0 -2
  74. package/types/src/extensions/Blocks/nodes/BlockContent/defaultBlockHelpers.d.ts +0 -12
  75. package/types/src/extensions/Blocks/nodes/BlockGroup.d.ts +0 -10
  76. package/types/src/shared/BaseUiElementTypes.d.ts +0 -7
  77. package/types/src/shared/EditorElement.d.ts +0 -0
  78. package/types/src/shared/EventEmitter.d.ts +0 -11
  79. package/types/src/shared/plugins/suggestion/SuggestionItem.d.ts +0 -3
  80. package/types/src/shared/plugins/suggestion/SuggestionPlugin.d.ts +0 -37
  81. package/types/src/shared/utils.d.ts +0 -6
@@ -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;
@@ -1,15 +0,0 @@
1
- import { Props } from "./blocks/types";
2
- export declare const defaultProps: {
3
- backgroundColor: {
4
- default: "default";
5
- };
6
- textColor: {
7
- default: "default";
8
- };
9
- textAlignment: {
10
- default: "left";
11
- values: readonly ["left", "center", "right", "justify"];
12
- };
13
- };
14
- export type DefaultProps = Props<typeof defaultProps>;
15
- export declare const inheritedProps: string[];
@@ -1,21 +0,0 @@
1
- import { ParseRule } from "@tiptap/pm/model";
2
- import { StyleSchema } from "../styles/types";
3
- import { CustomInlineContentConfig, InlineContentConfig, InlineContentFromConfig, InlineContentSpec } from "./types";
4
- export type CustomInlineContentImplementation<T extends InlineContentConfig, S extends StyleSchema> = {
5
- render: (
6
- /**
7
- * The custom inline content to render
8
- */
9
- inlineContent: InlineContentFromConfig<T, S>
10
- /**
11
- * The BlockNote editor instance
12
- * This is typed generically. If you want an editor with your custom schema, you need to
13
- * cast it manually, e.g.: `const e = editor as BlockNoteEditor<typeof mySchema>;`
14
- */
15
- ) => {
16
- dom: HTMLElement;
17
- contentDOM?: HTMLElement;
18
- };
19
- };
20
- export declare function getInlineContentParseRules(config: CustomInlineContentConfig): ParseRule[];
21
- export declare function createInlineContentSpec<T extends CustomInlineContentConfig, S extends StyleSchema>(inlineContentConfig: T, inlineContentImplementation: CustomInlineContentImplementation<T, S>): InlineContentSpec<T>;
@@ -1,25 +0,0 @@
1
- import { Node } from "@tiptap/core";
2
- import { Props, PropSchema } from "../blocks/types";
3
- import { InlineContentConfig, InlineContentImplementation, InlineContentSchemaFromSpecs, InlineContentSpecs } from "./types";
4
- export declare function addInlineContentAttributes<IType extends string, PSchema extends PropSchema>(element: {
5
- dom: HTMLElement;
6
- contentDOM?: HTMLElement;
7
- }, inlineContentType: IType, inlineContentProps: Props<PSchema>, propSchema: PSchema): {
8
- dom: HTMLElement;
9
- contentDOM?: HTMLElement;
10
- };
11
- export declare function createInternalInlineContentSpec<T extends InlineContentConfig>(config: T, implementation: InlineContentImplementation<T>): {
12
- config: T;
13
- implementation: InlineContentImplementation<T>;
14
- };
15
- export declare function createInlineContentSpecFromTipTapNode<T extends Node, P extends PropSchema>(node: T, propSchema: P): {
16
- config: {
17
- type: T["name"];
18
- propSchema: P;
19
- content: "styled" | "none";
20
- };
21
- implementation: {
22
- node: Node<any, any>;
23
- };
24
- };
25
- export declare function getInlineContentSchemaFromSpecs<T extends InlineContentSpecs>(specs: T): InlineContentSchemaFromSpecs<T>;