@blocknote/core 0.38.0 → 0.39.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.
Files changed (228) hide show
  1. package/dist/BlockNoteSchema-DmZ6UQfY.cjs +11 -0
  2. package/dist/BlockNoteSchema-DmZ6UQfY.cjs.map +1 -0
  3. package/dist/BlockNoteSchema-oR047ACf.js +4275 -0
  4. package/dist/BlockNoteSchema-oR047ACf.js.map +1 -0
  5. package/dist/blocknote.cjs +4 -12
  6. package/dist/blocknote.cjs.map +1 -1
  7. package/dist/blocknote.js +3401 -7305
  8. package/dist/blocknote.js.map +1 -1
  9. package/dist/blocks.cjs +2 -0
  10. package/dist/blocks.cjs.map +1 -0
  11. package/dist/blocks.js +71 -0
  12. package/dist/blocks.js.map +1 -0
  13. package/dist/style.css +1 -1
  14. package/dist/tsconfig.tsbuildinfo +1 -1
  15. package/dist/webpack-stats.json +1 -1
  16. package/package.json +19 -16
  17. package/src/api/blockManipulation/commands/insertBlocks/insertBlocks.ts +1 -1
  18. package/src/api/blockManipulation/commands/replaceBlocks/replaceBlocks.ts +2 -2
  19. package/src/api/blockManipulation/commands/splitBlock/splitBlock.ts +34 -25
  20. package/src/api/blockManipulation/setupTestEnv.ts +0 -1
  21. package/src/api/clipboard/fromClipboard/handleFileInsertion.ts +6 -10
  22. package/src/api/clipboard/fromClipboard/pasteExtension.ts +1 -1
  23. package/src/api/clipboard/toClipboard/copyExtension.ts +1 -1
  24. package/src/api/exporters/html/util/serializeBlocksExternalHTML.ts +128 -28
  25. package/src/api/exporters/html/util/serializeBlocksInternalHTML.ts +101 -41
  26. package/src/api/pmUtil.ts +1 -1
  27. package/src/api/positionMapping.test.ts +58 -15
  28. package/src/api/positionMapping.ts +2 -4
  29. package/src/blocks/Audio/block.ts +174 -0
  30. package/src/blocks/BlockNoteSchema.ts +59 -0
  31. package/src/blocks/Code/block.ts +303 -0
  32. package/src/blocks/Code/shiki.ts +73 -0
  33. package/src/blocks/File/block.ts +98 -0
  34. package/src/blocks/{FileBlockContent → File}/helpers/render/createAddFileButton.ts +5 -2
  35. package/src/blocks/{FileBlockContent → File}/helpers/render/createFileBlockWrapper.ts +15 -6
  36. package/src/blocks/{FileBlockContent → File}/helpers/render/createFileNameWithIcon.ts +15 -2
  37. package/src/blocks/{FileBlockContent → File}/helpers/render/createResizableFileBlockWrapper.ts +21 -2
  38. package/src/blocks/Heading/block.ts +138 -0
  39. package/src/blocks/Image/block.ts +190 -0
  40. package/src/blocks/ListItem/BulletListItem/block.ts +116 -0
  41. package/src/blocks/ListItem/CheckListItem/block.ts +175 -0
  42. package/src/blocks/ListItem/NumberedListItem/IndexingPlugin.ts +173 -0
  43. package/src/blocks/ListItem/NumberedListItem/block.ts +133 -0
  44. package/src/blocks/ListItem/ToggleListItem/block.ts +78 -0
  45. package/src/blocks/PageBreak/block.ts +72 -0
  46. package/src/blocks/{PageBreakBlockContent → PageBreak}/getPageBreakSlashMenuItems.ts +9 -7
  47. package/src/blocks/Paragraph/block.ts +80 -0
  48. package/src/blocks/Quote/block.ts +90 -0
  49. package/src/blocks/{TableBlockContent/TableBlockContent.ts → Table/block.ts} +169 -51
  50. package/src/blocks/ToggleWrapper/createToggleWrapper.ts +1 -1
  51. package/src/blocks/Video/block.ts +143 -0
  52. package/src/blocks/defaultBlockHelpers.ts +2 -2
  53. package/src/blocks/defaultBlockTypeGuards.ts +143 -174
  54. package/src/blocks/defaultBlocks.ts +107 -35
  55. package/src/blocks/defaultProps.ts +145 -4
  56. package/src/blocks/index.ts +26 -0
  57. package/src/blocks/utils/listItemEnterHandler.ts +42 -0
  58. package/src/editor/Block.css +54 -18
  59. package/src/editor/BlockNoteEditor.ts +256 -211
  60. package/src/editor/BlockNoteExtension.ts +92 -0
  61. package/src/editor/BlockNoteExtensions.ts +18 -17
  62. package/src/editor/defaultColors.ts +2 -2
  63. package/src/exporter/Exporter.ts +1 -1
  64. package/src/exporter/mapping.ts +1 -1
  65. package/src/extensions/BackgroundColor/BackgroundColorExtension.ts +3 -20
  66. package/src/extensions/BackgroundColor/BackgroundColorMark.ts +6 -8
  67. package/src/extensions/BlockChange/BlockChangePlugin.ts +2 -1
  68. package/src/extensions/Collaboration/__snapshots__/fork-yjs-snap-editor-forked.json +2 -2
  69. package/src/extensions/Collaboration/__snapshots__/fork-yjs-snap-editor.json +2 -2
  70. package/src/extensions/Collaboration/__snapshots__/fork-yjs-snap-forked.html +1 -1
  71. package/src/extensions/Collaboration/__snapshots__/fork-yjs-snap.html +1 -1
  72. package/src/extensions/Collaboration/schemaMigration/SchemaMigrationPlugin.ts +52 -0
  73. package/src/extensions/Collaboration/schemaMigration/migrationRules/index.ts +4 -0
  74. package/src/extensions/Collaboration/schemaMigration/migrationRules/migrationRule.ts +4 -0
  75. package/src/extensions/Collaboration/schemaMigration/migrationRules/moveColorAttributes.ts +78 -0
  76. package/src/extensions/Comments/CommentsPlugin.ts +1 -1
  77. package/src/extensions/FilePanel/FilePanelPlugin.ts +5 -10
  78. package/src/extensions/FormattingToolbar/FormattingToolbarPlugin.ts +1 -1
  79. package/src/extensions/KeyboardShortcuts/KeyboardShortcutsExtension.ts +4 -3
  80. package/src/extensions/Placeholder/PlaceholderPlugin.ts +6 -6
  81. package/src/extensions/PreviousBlockType/PreviousBlockTypePlugin.ts +1 -23
  82. package/src/extensions/SideMenu/SideMenuPlugin.ts +1 -3
  83. package/src/extensions/SideMenu/dragging.ts +2 -2
  84. package/src/extensions/SuggestionMenu/SuggestionPlugin.ts +4 -7
  85. package/src/extensions/SuggestionMenu/getDefaultEmojiPickerItems.ts +6 -2
  86. package/src/extensions/SuggestionMenu/getDefaultSlashMenuItems.ts +24 -17
  87. package/src/extensions/TableHandles/TableHandlesPlugin.ts +8 -8
  88. package/src/extensions/TextAlignment/TextAlignmentExtension.ts +5 -11
  89. package/src/extensions/TextColor/TextColorExtension.ts +3 -17
  90. package/src/extensions/TextColor/TextColorMark.ts +4 -9
  91. package/src/extensions/UniqueID/UniqueID.ts +6 -13
  92. package/src/index.ts +2 -28
  93. package/src/schema/blocks/createSpec.ts +342 -169
  94. package/src/schema/blocks/internal.ts +77 -138
  95. package/src/schema/blocks/types.ts +264 -94
  96. package/src/schema/index.ts +1 -0
  97. package/src/schema/inlineContent/createSpec.ts +99 -21
  98. package/src/schema/inlineContent/internal.ts +16 -7
  99. package/src/schema/inlineContent/types.ts +24 -2
  100. package/src/schema/propTypes.ts +15 -9
  101. package/src/schema/schema.ts +209 -0
  102. package/src/schema/styles/createSpec.ts +79 -31
  103. package/src/schema/styles/internal.ts +61 -2
  104. package/src/schema/styles/types.ts +17 -3
  105. package/src/util/topo-sort.test.ts +125 -0
  106. package/src/util/topo-sort.ts +160 -0
  107. package/types/src/api/blockManipulation/commands/splitBlock/splitBlock.d.ts +2 -1
  108. package/types/src/api/blockManipulation/selections/selection.d.ts +1 -1
  109. package/types/src/api/blockManipulation/setupTestEnv.d.ts +29 -543
  110. package/types/src/api/exporters/html/util/serializeBlocksExternalHTML.d.ts +1 -1
  111. package/types/src/api/exporters/html/util/serializeBlocksInternalHTML.d.ts +1 -1
  112. package/types/src/api/pmUtil.d.ts +1 -1
  113. package/types/src/blocks/Audio/block.d.ts +58 -0
  114. package/types/src/blocks/BlockNoteSchema.d.ts +18 -0
  115. package/types/src/blocks/{CodeBlockContent/CodeBlockContent.d.ts → Code/block.d.ts} +25 -26
  116. package/types/src/blocks/Code/shiki.d.ts +4 -0
  117. package/types/src/blocks/File/block.d.ts +37 -0
  118. package/types/src/blocks/File/helpers/render/createAddFileButton.d.ts +6 -0
  119. package/types/src/blocks/File/helpers/render/createFileBlockWrapper.d.ts +25 -0
  120. package/types/src/blocks/{FileBlockContent → File}/helpers/render/createFileNameWithIcon.d.ts +6 -2
  121. package/types/src/blocks/File/helpers/render/createResizableFileBlockWrapper.d.ts +31 -0
  122. package/types/src/blocks/Heading/block.d.ts +71 -0
  123. package/types/src/blocks/Image/block.d.ts +102 -0
  124. package/types/src/blocks/ListItem/BulletListItem/block.d.ts +25 -0
  125. package/types/src/blocks/ListItem/CheckListItem/block.d.ts +33 -0
  126. package/types/src/blocks/ListItem/NumberedListItem/IndexingPlugin.d.ts +8 -0
  127. package/types/src/blocks/ListItem/NumberedListItem/block.d.ts +33 -0
  128. package/types/src/blocks/ListItem/ToggleListItem/block.d.ts +25 -0
  129. package/types/src/blocks/PageBreak/block.d.ts +11 -0
  130. package/types/src/blocks/{PageBreakBlockContent → PageBreak}/getPageBreakSlashMenuItems.d.ts +4 -2
  131. package/types/src/blocks/Paragraph/block.d.ts +25 -0
  132. package/types/src/blocks/Quote/block.d.ts +17 -0
  133. package/types/src/blocks/Table/block.d.ts +21 -0
  134. package/types/src/blocks/Video/block.d.ts +67 -0
  135. package/types/src/blocks/defaultBlockHelpers.d.ts +1 -1
  136. package/types/src/blocks/defaultBlockTypeGuards.d.ts +15 -36
  137. package/types/src/blocks/defaultBlocks.d.ts +221 -1060
  138. package/types/src/blocks/defaultProps.d.ts +17 -1
  139. package/types/src/blocks/index.d.ts +24 -0
  140. package/types/src/blocks/utils/listItemEnterHandler.d.ts +2 -0
  141. package/types/src/editor/BlockNoteEditor.d.ts +36 -67
  142. package/types/src/editor/BlockNoteExtension.d.ts +67 -0
  143. package/types/src/editor/BlockNoteExtensions.d.ts +1 -1
  144. package/types/src/editor/defaultColors.d.ts +8 -76
  145. package/types/src/exporter/Exporter.d.ts +1 -1
  146. package/types/src/exporter/mapping.d.ts +1 -1
  147. package/types/src/extensions/BackgroundColor/BackgroundColorMark.d.ts +4 -1
  148. package/types/src/extensions/Collaboration/schemaMigration/SchemaMigrationPlugin.d.ts +7 -0
  149. package/types/src/extensions/Collaboration/schemaMigration/migrationRules/index.d.ts +3 -0
  150. package/types/src/extensions/Collaboration/schemaMigration/migrationRules/migrationRule.d.ts +3 -0
  151. package/types/src/extensions/Collaboration/schemaMigration/migrationRules/moveColorAttributes.d.ts +2 -0
  152. package/types/src/extensions/Comments/CommentsPlugin.d.ts +1 -1
  153. package/types/src/extensions/FilePanel/FilePanelPlugin.d.ts +4 -4
  154. package/types/src/extensions/TextColor/TextColorMark.d.ts +4 -1
  155. package/types/src/index.d.ts +2 -25
  156. package/types/src/schema/blocks/createSpec.d.ts +16 -36
  157. package/types/src/schema/blocks/internal.d.ts +11 -33
  158. package/types/src/schema/blocks/types.d.ts +181 -57
  159. package/types/src/schema/index.d.ts +1 -0
  160. package/types/src/schema/inlineContent/createSpec.d.ts +36 -2
  161. package/types/src/schema/inlineContent/internal.d.ts +7 -15
  162. package/types/src/schema/inlineContent/types.d.ts +15 -1
  163. package/types/src/schema/propTypes.d.ts +4 -4
  164. package/types/src/schema/schema.d.ts +40 -0
  165. package/types/src/schema/styles/createSpec.d.ts +6 -4
  166. package/types/src/schema/styles/internal.d.ts +6 -3
  167. package/types/src/schema/styles/types.d.ts +11 -2
  168. package/types/src/util/topo-sort.d.ts +18 -0
  169. package/types/src/util/topo-sort.test.d.ts +1 -0
  170. package/src/blocks/AudioBlockContent/AudioBlockContent.ts +0 -144
  171. package/src/blocks/CodeBlockContent/CodeBlockContent.ts +0 -445
  172. package/src/blocks/FileBlockContent/FileBlockContent.ts +0 -100
  173. package/src/blocks/HeadingBlockContent/HeadingBlockContent.ts +0 -159
  174. package/src/blocks/ImageBlockContent/ImageBlockContent.ts +0 -159
  175. package/src/blocks/ListItemBlockContent/BulletListItemBlockContent/BulletListItemBlockContent.ts +0 -134
  176. package/src/blocks/ListItemBlockContent/CheckListItemBlockContent/CheckListItemBlockContent.ts +0 -299
  177. package/src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListIndexingPlugin.ts +0 -86
  178. package/src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListItemBlockContent.ts +0 -172
  179. package/src/blocks/ListItemBlockContent/ToggleListItemBlockContent/ToggleListItemBlockContent.ts +0 -104
  180. package/src/blocks/PageBreakBlockContent/PageBreakBlockContent.ts +0 -49
  181. package/src/blocks/PageBreakBlockContent/schema.ts +0 -40
  182. package/src/blocks/ParagraphBlockContent/ParagraphBlockContent.ts +0 -78
  183. package/src/blocks/QuoteBlockContent/QuoteBlockContent.ts +0 -121
  184. package/src/blocks/VideoBlockContent/VideoBlockContent.ts +0 -158
  185. package/src/editor/BlockNoteSchema.ts +0 -107
  186. package/src/editor/BlockNoteTipTapEditor.ts +0 -335
  187. package/types/src/blocks/AudioBlockContent/AudioBlockContent.d.ts +0 -99
  188. package/types/src/blocks/FileBlockContent/FileBlockContent.d.ts +0 -90
  189. package/types/src/blocks/FileBlockContent/helpers/render/createAddFileButton.d.ts +0 -6
  190. package/types/src/blocks/FileBlockContent/helpers/render/createFileBlockWrapper.d.ts +0 -9
  191. package/types/src/blocks/FileBlockContent/helpers/render/createResizableFileBlockWrapper.d.ts +0 -9
  192. package/types/src/blocks/HeadingBlockContent/HeadingBlockContent.d.ts +0 -67
  193. package/types/src/blocks/ImageBlockContent/ImageBlockContent.d.ts +0 -131
  194. package/types/src/blocks/ListItemBlockContent/BulletListItemBlockContent/BulletListItemBlockContent.d.ts +0 -46
  195. package/types/src/blocks/ListItemBlockContent/CheckListItemBlockContent/CheckListItemBlockContent.d.ts +0 -55
  196. package/types/src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListIndexingPlugin.d.ts +0 -2
  197. package/types/src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListItemBlockContent.d.ts +0 -58
  198. package/types/src/blocks/ListItemBlockContent/ToggleListItemBlockContent/ToggleListItemBlockContent.d.ts +0 -46
  199. package/types/src/blocks/PageBreakBlockContent/PageBreakBlockContent.d.ts +0 -31
  200. package/types/src/blocks/PageBreakBlockContent/schema.d.ts +0 -86
  201. package/types/src/blocks/ParagraphBlockContent/ParagraphBlockContent.d.ts +0 -52
  202. package/types/src/blocks/QuoteBlockContent/QuoteBlockContent.d.ts +0 -52
  203. package/types/src/blocks/TableBlockContent/TableBlockContent.d.ts +0 -39
  204. package/types/src/blocks/VideoBlockContent/VideoBlockContent.d.ts +0 -131
  205. package/types/src/editor/BlockNoteSchema.d.ts +0 -34
  206. package/types/src/editor/BlockNoteTipTapEditor.d.ts +0 -43
  207. /package/src/blocks/{AudioBlockContent → Audio}/parseAudioElement.ts +0 -0
  208. /package/src/blocks/{FileBlockContent → File}/helpers/parse/parseEmbedElement.ts +0 -0
  209. /package/src/blocks/{FileBlockContent → File}/helpers/parse/parseFigureElement.ts +0 -0
  210. /package/src/blocks/{FileBlockContent → File}/helpers/toExternalHTML/createFigureWithCaption.ts +0 -0
  211. /package/src/blocks/{FileBlockContent → File}/helpers/toExternalHTML/createLinkWithCaption.ts +0 -0
  212. /package/src/blocks/{FileBlockContent → File/helpers}/uploadToTmpFilesDotOrg_DEV_ONLY.ts +0 -0
  213. /package/src/blocks/{ImageBlockContent → Image}/parseImageElement.ts +0 -0
  214. /package/src/blocks/{ListItemBlockContent → ListItem}/ListItemKeyboardShortcuts.ts +0 -0
  215. /package/src/blocks/{ListItemBlockContent → ListItem}/getListItemContent.ts +0 -0
  216. /package/src/blocks/{TableBlockContent → Table}/TableExtension.ts +0 -0
  217. /package/src/blocks/{VideoBlockContent → Video}/parseVideoElement.ts +0 -0
  218. /package/types/src/blocks/{AudioBlockContent → Audio}/parseAudioElement.d.ts +0 -0
  219. /package/types/src/blocks/{FileBlockContent → File}/helpers/parse/parseEmbedElement.d.ts +0 -0
  220. /package/types/src/blocks/{FileBlockContent → File}/helpers/parse/parseFigureElement.d.ts +0 -0
  221. /package/types/src/blocks/{FileBlockContent → File}/helpers/toExternalHTML/createFigureWithCaption.d.ts +0 -0
  222. /package/types/src/blocks/{FileBlockContent → File}/helpers/toExternalHTML/createLinkWithCaption.d.ts +0 -0
  223. /package/types/src/blocks/{FileBlockContent → File/helpers}/uploadToTmpFilesDotOrg_DEV_ONLY.d.ts +0 -0
  224. /package/types/src/blocks/{ImageBlockContent → Image}/parseImageElement.d.ts +0 -0
  225. /package/types/src/blocks/{ListItemBlockContent → ListItem}/ListItemKeyboardShortcuts.d.ts +0 -0
  226. /package/types/src/blocks/{ListItemBlockContent → ListItem}/getListItemContent.d.ts +0 -0
  227. /package/types/src/blocks/{TableBlockContent → Table}/TableExtension.d.ts +0 -0
  228. /package/types/src/blocks/{VideoBlockContent → Video}/parseVideoElement.d.ts +0 -0
@@ -1,1053 +1,196 @@
1
1
  import { BlockNoDefaults, BlockSchema, InlineContentSchema, PartialBlockNoDefaults, StyleSchema } from "../schema/index.js";
2
2
  export declare const defaultBlockSpecs: {
3
- paragraph: {
4
- config: {
5
- type: "paragraph";
6
- content: "inline";
7
- propSchema: {
8
- backgroundColor: {
9
- default: "default";
10
- };
11
- textColor: {
12
- default: "default";
13
- };
14
- textAlignment: {
15
- default: "left";
16
- values: readonly ["left", "center", "right", "justify"];
17
- };
18
- };
3
+ readonly audio: import("../index.js").BlockSpec<"audio", {
4
+ readonly backgroundColor: {
5
+ default: "default";
19
6
  };
20
- implementation: import("../index.js").TiptapBlockImplementation<{
21
- type: "paragraph";
22
- content: "inline";
23
- propSchema: {
24
- backgroundColor: {
25
- default: "default";
26
- };
27
- textColor: {
28
- default: "default";
29
- };
30
- textAlignment: {
31
- default: "left";
32
- values: readonly ["left", "center", "right", "justify"];
33
- };
34
- };
35
- }, any, InlineContentSchema, StyleSchema>;
36
- };
37
- heading: {
38
- config: {
39
- type: "heading";
40
- content: "inline";
41
- propSchema: {
42
- level: {
43
- default: number;
44
- values: readonly [1, 2, 3, 4, 5, 6];
45
- };
46
- isToggleable: {
47
- default: false;
48
- };
49
- backgroundColor: {
50
- default: "default";
51
- };
52
- textColor: {
53
- default: "default";
54
- };
55
- textAlignment: {
56
- default: "left";
57
- values: readonly ["left", "center", "right", "justify"];
58
- };
59
- };
7
+ readonly name: {
8
+ readonly default: "";
60
9
  };
61
- implementation: import("../index.js").TiptapBlockImplementation<{
62
- type: "heading";
63
- content: "inline";
64
- propSchema: {
65
- level: {
66
- default: number;
67
- values: readonly [1, 2, 3, 4, 5, 6];
68
- };
69
- isToggleable: {
70
- default: false;
71
- };
72
- backgroundColor: {
73
- default: "default";
74
- };
75
- textColor: {
76
- default: "default";
77
- };
78
- textAlignment: {
79
- default: "left";
80
- values: readonly ["left", "center", "right", "justify"];
81
- };
82
- };
83
- }, any, InlineContentSchema, StyleSchema>;
84
- };
85
- quote: {
86
- config: {
87
- type: "quote";
88
- content: "inline";
89
- propSchema: {
90
- backgroundColor: {
91
- default: "default";
92
- };
93
- textColor: {
94
- default: "default";
95
- };
96
- textAlignment: {
97
- default: "left";
98
- values: readonly ["left", "center", "right", "justify"];
99
- };
100
- };
10
+ readonly url: {
11
+ readonly default: "";
101
12
  };
102
- implementation: import("../index.js").TiptapBlockImplementation<{
103
- type: "quote";
104
- content: "inline";
105
- propSchema: {
106
- backgroundColor: {
107
- default: "default";
108
- };
109
- textColor: {
110
- default: "default";
111
- };
112
- textAlignment: {
113
- default: "left";
114
- values: readonly ["left", "center", "right", "justify"];
115
- };
116
- };
117
- }, any, InlineContentSchema, StyleSchema>;
118
- };
119
- codeBlock: {
120
- config: {
121
- type: "codeBlock";
122
- content: "inline";
123
- propSchema: {
124
- language: {
125
- default: string;
126
- };
127
- };
13
+ readonly caption: {
14
+ readonly default: "";
128
15
  };
129
- implementation: import("../index.js").TiptapBlockImplementation<{
130
- type: "codeBlock";
131
- content: "inline";
132
- propSchema: {
133
- language: {
134
- default: string;
135
- };
136
- };
137
- }, any, InlineContentSchema, StyleSchema>;
138
- };
139
- toggleListItem: {
140
- config: {
141
- type: "toggleListItem";
142
- content: "inline";
143
- propSchema: {
144
- backgroundColor: {
145
- default: "default";
146
- };
147
- textColor: {
148
- default: "default";
149
- };
150
- textAlignment: {
151
- default: "left";
152
- values: readonly ["left", "center", "right", "justify"];
153
- };
154
- };
16
+ readonly showPreview: {
17
+ readonly default: true;
155
18
  };
156
- implementation: import("../index.js").TiptapBlockImplementation<{
157
- type: "toggleListItem";
158
- content: "inline";
159
- propSchema: {
160
- backgroundColor: {
161
- default: "default";
162
- };
163
- textColor: {
164
- default: "default";
165
- };
166
- textAlignment: {
167
- default: "left";
168
- values: readonly ["left", "center", "right", "justify"];
169
- };
170
- };
171
- }, any, InlineContentSchema, StyleSchema>;
172
- };
173
- bulletListItem: {
174
- config: {
175
- type: "bulletListItem";
176
- content: "inline";
177
- propSchema: {
178
- backgroundColor: {
179
- default: "default";
180
- };
181
- textColor: {
182
- default: "default";
183
- };
184
- textAlignment: {
185
- default: "left";
186
- values: readonly ["left", "center", "right", "justify"];
187
- };
188
- };
19
+ }, "none">;
20
+ readonly bulletListItem: import("../index.js").BlockSpec<"bulletListItem", {
21
+ readonly backgroundColor: {
22
+ default: "default";
189
23
  };
190
- implementation: import("../index.js").TiptapBlockImplementation<{
191
- type: "bulletListItem";
192
- content: "inline";
193
- propSchema: {
194
- backgroundColor: {
195
- default: "default";
196
- };
197
- textColor: {
198
- default: "default";
199
- };
200
- textAlignment: {
201
- default: "left";
202
- values: readonly ["left", "center", "right", "justify"];
203
- };
204
- };
205
- }, any, InlineContentSchema, StyleSchema>;
206
- };
207
- numberedListItem: {
208
- config: {
209
- type: "numberedListItem";
210
- content: "inline";
211
- propSchema: {
212
- start: {
213
- default: undefined;
214
- type: "number";
215
- };
216
- backgroundColor: {
217
- default: "default";
218
- };
219
- textColor: {
220
- default: "default";
221
- };
222
- textAlignment: {
223
- default: "left";
224
- values: readonly ["left", "center", "right", "justify"];
225
- };
226
- };
24
+ readonly textColor: {
25
+ default: "default";
227
26
  };
228
- implementation: import("../index.js").TiptapBlockImplementation<{
229
- type: "numberedListItem";
230
- content: "inline";
231
- propSchema: {
232
- start: {
233
- default: undefined;
234
- type: "number";
235
- };
236
- backgroundColor: {
237
- default: "default";
238
- };
239
- textColor: {
240
- default: "default";
241
- };
242
- textAlignment: {
243
- default: "left";
244
- values: readonly ["left", "center", "right", "justify"];
245
- };
246
- };
247
- }, any, InlineContentSchema, StyleSchema>;
248
- };
249
- checkListItem: {
250
- config: {
251
- type: "checkListItem";
252
- content: "inline";
253
- propSchema: {
254
- checked: {
255
- default: false;
256
- };
257
- backgroundColor: {
258
- default: "default";
259
- };
260
- textColor: {
261
- default: "default";
262
- };
263
- textAlignment: {
264
- default: "left";
265
- values: readonly ["left", "center", "right", "justify"];
266
- };
267
- };
27
+ readonly textAlignment: {
28
+ default: "left";
29
+ values: readonly ["left", "center", "right", "justify"];
268
30
  };
269
- implementation: import("../index.js").TiptapBlockImplementation<{
270
- type: "checkListItem";
271
- content: "inline";
272
- propSchema: {
273
- checked: {
274
- default: false;
275
- };
276
- backgroundColor: {
277
- default: "default";
278
- };
279
- textColor: {
280
- default: "default";
281
- };
282
- textAlignment: {
283
- default: "left";
284
- values: readonly ["left", "center", "right", "justify"];
285
- };
286
- };
287
- }, any, InlineContentSchema, StyleSchema>;
288
- };
289
- table: {
290
- config: {
291
- type: "table";
292
- content: "table";
293
- propSchema: {
294
- textColor: {
295
- default: "default";
296
- };
297
- };
31
+ }, "inline">;
32
+ readonly checkListItem: import("../index.js").BlockSpec<"checkListItem", {
33
+ readonly checked: {
34
+ readonly default: false;
35
+ readonly type: "boolean";
298
36
  };
299
- implementation: import("../index.js").TiptapBlockImplementation<{
300
- type: "table";
301
- content: "table";
302
- propSchema: {
303
- textColor: {
304
- default: "default";
305
- };
306
- };
307
- }, any, InlineContentSchema, StyleSchema>;
308
- };
309
- file: {
310
- config: {
311
- type: "file";
312
- propSchema: {
313
- backgroundColor: {
314
- default: "default";
315
- };
316
- name: {
317
- default: "";
318
- };
319
- url: {
320
- default: "";
321
- };
322
- caption: {
323
- default: "";
324
- };
325
- };
326
- content: "none";
327
- isFileBlock: true;
37
+ readonly backgroundColor: {
38
+ default: "default";
328
39
  };
329
- implementation: import("../index.js").TiptapBlockImplementation<{
330
- type: "file";
331
- propSchema: {
332
- backgroundColor: {
333
- default: "default";
334
- };
335
- name: {
336
- default: "";
337
- };
338
- url: {
339
- default: "";
340
- };
341
- caption: {
342
- default: "";
343
- };
344
- };
345
- content: "none";
346
- isFileBlock: true;
347
- }, any, InlineContentSchema, StyleSchema>;
348
- };
349
- image: {
350
- config: {
351
- type: "image";
352
- propSchema: {
353
- textAlignment: {
354
- default: "left";
355
- values: readonly ["left", "center", "right", "justify"];
356
- };
357
- backgroundColor: {
358
- default: "default";
359
- };
360
- name: {
361
- default: "";
362
- };
363
- url: {
364
- default: "";
365
- };
366
- caption: {
367
- default: "";
368
- };
369
- showPreview: {
370
- default: true;
371
- };
372
- previewWidth: {
373
- default: undefined;
374
- type: "number";
375
- };
376
- };
377
- content: "none";
378
- isFileBlock: true;
379
- fileBlockAccept: string[];
40
+ readonly textColor: {
41
+ default: "default";
380
42
  };
381
- implementation: import("../index.js").TiptapBlockImplementation<{
382
- type: "image";
383
- propSchema: {
384
- textAlignment: {
385
- default: "left";
386
- values: readonly ["left", "center", "right", "justify"];
387
- };
388
- backgroundColor: {
389
- default: "default";
390
- };
391
- name: {
392
- default: "";
393
- };
394
- url: {
395
- default: "";
396
- };
397
- caption: {
398
- default: "";
399
- };
400
- showPreview: {
401
- default: true;
402
- };
403
- previewWidth: {
404
- default: undefined;
405
- type: "number";
406
- };
407
- };
408
- content: "none";
409
- isFileBlock: true;
410
- fileBlockAccept: string[];
411
- }, any, InlineContentSchema, StyleSchema>;
412
- };
413
- video: {
414
- config: {
415
- type: "video";
416
- propSchema: {
417
- textAlignment: {
418
- default: "left";
419
- values: readonly ["left", "center", "right", "justify"];
420
- };
421
- backgroundColor: {
422
- default: "default";
423
- };
424
- name: {
425
- default: "";
426
- };
427
- url: {
428
- default: "";
429
- };
430
- caption: {
431
- default: "";
432
- };
433
- showPreview: {
434
- default: true;
435
- };
436
- previewWidth: {
437
- default: undefined;
438
- type: "number";
439
- };
440
- };
441
- content: "none";
442
- isFileBlock: true;
443
- fileBlockAccept: string[];
43
+ readonly textAlignment: {
44
+ default: "left";
45
+ values: readonly ["left", "center", "right", "justify"];
444
46
  };
445
- implementation: import("../index.js").TiptapBlockImplementation<{
446
- type: "video";
447
- propSchema: {
448
- textAlignment: {
449
- default: "left";
450
- values: readonly ["left", "center", "right", "justify"];
451
- };
452
- backgroundColor: {
453
- default: "default";
454
- };
455
- name: {
456
- default: "";
457
- };
458
- url: {
459
- default: "";
460
- };
461
- caption: {
462
- default: "";
463
- };
464
- showPreview: {
465
- default: true;
466
- };
467
- previewWidth: {
468
- default: undefined;
469
- type: "number";
470
- };
471
- };
472
- content: "none";
473
- isFileBlock: true;
474
- fileBlockAccept: string[];
475
- }, any, InlineContentSchema, StyleSchema>;
476
- };
477
- audio: {
478
- config: {
479
- type: "audio";
480
- propSchema: {
481
- backgroundColor: {
482
- default: "default";
483
- };
484
- name: {
485
- default: "";
486
- };
487
- url: {
488
- default: "";
489
- };
490
- caption: {
491
- default: "";
492
- };
493
- showPreview: {
494
- default: true;
495
- };
496
- };
497
- content: "none";
498
- isFileBlock: true;
499
- fileBlockAccept: string[];
47
+ }, "inline">;
48
+ readonly codeBlock: import("../index.js").BlockSpec<"codeBlock", {
49
+ readonly language: {
50
+ readonly default: string;
500
51
  };
501
- implementation: import("../index.js").TiptapBlockImplementation<{
502
- type: "audio";
503
- propSchema: {
504
- backgroundColor: {
505
- default: "default";
506
- };
507
- name: {
508
- default: "";
509
- };
510
- url: {
511
- default: "";
512
- };
513
- caption: {
514
- default: "";
515
- };
516
- showPreview: {
517
- default: true;
518
- };
519
- };
520
- content: "none";
521
- isFileBlock: true;
522
- fileBlockAccept: string[];
523
- }, any, InlineContentSchema, StyleSchema>;
524
- };
525
- };
526
- export declare const defaultBlockSchema: import("../index.js").BlockSchemaFromSpecs<{
527
- paragraph: {
528
- config: {
529
- type: "paragraph";
530
- content: "inline";
531
- propSchema: {
532
- backgroundColor: {
533
- default: "default";
534
- };
535
- textColor: {
536
- default: "default";
537
- };
538
- textAlignment: {
539
- default: "left";
540
- values: readonly ["left", "center", "right", "justify"];
541
- };
542
- };
52
+ }, "inline">;
53
+ readonly file: import("../index.js").BlockSpec<"file", {
54
+ readonly backgroundColor: {
55
+ default: "default";
543
56
  };
544
- implementation: import("../index.js").TiptapBlockImplementation<{
545
- type: "paragraph";
546
- content: "inline";
547
- propSchema: {
548
- backgroundColor: {
549
- default: "default";
550
- };
551
- textColor: {
552
- default: "default";
553
- };
554
- textAlignment: {
555
- default: "left";
556
- values: readonly ["left", "center", "right", "justify"];
557
- };
558
- };
559
- }, any, InlineContentSchema, StyleSchema>;
560
- };
561
- heading: {
562
- config: {
563
- type: "heading";
564
- content: "inline";
565
- propSchema: {
566
- level: {
567
- default: number;
568
- values: readonly [1, 2, 3, 4, 5, 6];
569
- };
570
- isToggleable: {
571
- default: false;
572
- };
573
- backgroundColor: {
574
- default: "default";
575
- };
576
- textColor: {
577
- default: "default";
578
- };
579
- textAlignment: {
580
- default: "left";
581
- values: readonly ["left", "center", "right", "justify"];
582
- };
583
- };
57
+ readonly name: {
58
+ readonly default: "";
584
59
  };
585
- implementation: import("../index.js").TiptapBlockImplementation<{
586
- type: "heading";
587
- content: "inline";
588
- propSchema: {
589
- level: {
590
- default: number;
591
- values: readonly [1, 2, 3, 4, 5, 6];
592
- };
593
- isToggleable: {
594
- default: false;
595
- };
596
- backgroundColor: {
597
- default: "default";
598
- };
599
- textColor: {
600
- default: "default";
601
- };
602
- textAlignment: {
603
- default: "left";
604
- values: readonly ["left", "center", "right", "justify"];
605
- };
606
- };
607
- }, any, InlineContentSchema, StyleSchema>;
608
- };
609
- quote: {
610
- config: {
611
- type: "quote";
612
- content: "inline";
613
- propSchema: {
614
- backgroundColor: {
615
- default: "default";
616
- };
617
- textColor: {
618
- default: "default";
619
- };
620
- textAlignment: {
621
- default: "left";
622
- values: readonly ["left", "center", "right", "justify"];
623
- };
624
- };
60
+ readonly url: {
61
+ readonly default: "";
625
62
  };
626
- implementation: import("../index.js").TiptapBlockImplementation<{
627
- type: "quote";
628
- content: "inline";
629
- propSchema: {
630
- backgroundColor: {
631
- default: "default";
632
- };
633
- textColor: {
634
- default: "default";
635
- };
636
- textAlignment: {
637
- default: "left";
638
- values: readonly ["left", "center", "right", "justify"];
639
- };
640
- };
641
- }, any, InlineContentSchema, StyleSchema>;
642
- };
643
- codeBlock: {
644
- config: {
645
- type: "codeBlock";
646
- content: "inline";
647
- propSchema: {
648
- language: {
649
- default: string;
650
- };
651
- };
63
+ readonly caption: {
64
+ readonly default: "";
652
65
  };
653
- implementation: import("../index.js").TiptapBlockImplementation<{
654
- type: "codeBlock";
655
- content: "inline";
656
- propSchema: {
657
- language: {
658
- default: string;
659
- };
660
- };
661
- }, any, InlineContentSchema, StyleSchema>;
662
- };
663
- toggleListItem: {
664
- config: {
665
- type: "toggleListItem";
666
- content: "inline";
667
- propSchema: {
668
- backgroundColor: {
669
- default: "default";
670
- };
671
- textColor: {
672
- default: "default";
673
- };
674
- textAlignment: {
675
- default: "left";
676
- values: readonly ["left", "center", "right", "justify"];
677
- };
678
- };
66
+ }, "none">;
67
+ readonly heading: import("../index.js").BlockSpec<"heading", {
68
+ readonly isToggleable?: {
69
+ readonly default: false;
70
+ readonly optional: true;
71
+ } | undefined;
72
+ readonly level: {
73
+ readonly default: 1 | 2 | 4 | 3 | 5 | 6;
74
+ readonly values: readonly number[];
679
75
  };
680
- implementation: import("../index.js").TiptapBlockImplementation<{
681
- type: "toggleListItem";
682
- content: "inline";
683
- propSchema: {
684
- backgroundColor: {
685
- default: "default";
686
- };
687
- textColor: {
688
- default: "default";
689
- };
690
- textAlignment: {
691
- default: "left";
692
- values: readonly ["left", "center", "right", "justify"];
693
- };
694
- };
695
- }, any, InlineContentSchema, StyleSchema>;
696
- };
697
- bulletListItem: {
698
- config: {
699
- type: "bulletListItem";
700
- content: "inline";
701
- propSchema: {
702
- backgroundColor: {
703
- default: "default";
704
- };
705
- textColor: {
706
- default: "default";
707
- };
708
- textAlignment: {
709
- default: "left";
710
- values: readonly ["left", "center", "right", "justify"];
711
- };
712
- };
76
+ readonly backgroundColor: {
77
+ default: "default";
713
78
  };
714
- implementation: import("../index.js").TiptapBlockImplementation<{
715
- type: "bulletListItem";
716
- content: "inline";
717
- propSchema: {
718
- backgroundColor: {
719
- default: "default";
720
- };
721
- textColor: {
722
- default: "default";
723
- };
724
- textAlignment: {
725
- default: "left";
726
- values: readonly ["left", "center", "right", "justify"];
727
- };
728
- };
729
- }, any, InlineContentSchema, StyleSchema>;
730
- };
731
- numberedListItem: {
732
- config: {
733
- type: "numberedListItem";
734
- content: "inline";
735
- propSchema: {
736
- start: {
737
- default: undefined;
738
- type: "number";
739
- };
740
- backgroundColor: {
741
- default: "default";
742
- };
743
- textColor: {
744
- default: "default";
745
- };
746
- textAlignment: {
747
- default: "left";
748
- values: readonly ["left", "center", "right", "justify"];
749
- };
750
- };
79
+ readonly textColor: {
80
+ default: "default";
751
81
  };
752
- implementation: import("../index.js").TiptapBlockImplementation<{
753
- type: "numberedListItem";
754
- content: "inline";
755
- propSchema: {
756
- start: {
757
- default: undefined;
758
- type: "number";
759
- };
760
- backgroundColor: {
761
- default: "default";
762
- };
763
- textColor: {
764
- default: "default";
765
- };
766
- textAlignment: {
767
- default: "left";
768
- values: readonly ["left", "center", "right", "justify"];
769
- };
770
- };
771
- }, any, InlineContentSchema, StyleSchema>;
772
- };
773
- checkListItem: {
774
- config: {
775
- type: "checkListItem";
776
- content: "inline";
777
- propSchema: {
778
- checked: {
779
- default: false;
780
- };
781
- backgroundColor: {
782
- default: "default";
783
- };
784
- textColor: {
785
- default: "default";
786
- };
787
- textAlignment: {
788
- default: "left";
789
- values: readonly ["left", "center", "right", "justify"];
790
- };
791
- };
82
+ readonly textAlignment: {
83
+ default: "left";
84
+ values: readonly ["left", "center", "right", "justify"];
792
85
  };
793
- implementation: import("../index.js").TiptapBlockImplementation<{
794
- type: "checkListItem";
795
- content: "inline";
796
- propSchema: {
797
- checked: {
798
- default: false;
799
- };
800
- backgroundColor: {
801
- default: "default";
802
- };
803
- textColor: {
804
- default: "default";
805
- };
806
- textAlignment: {
807
- default: "left";
808
- values: readonly ["left", "center", "right", "justify"];
809
- };
810
- };
811
- }, any, InlineContentSchema, StyleSchema>;
812
- };
813
- table: {
814
- config: {
815
- type: "table";
816
- content: "table";
817
- propSchema: {
818
- textColor: {
819
- default: "default";
820
- };
821
- };
86
+ }, "inline">;
87
+ readonly image: import("../index.js").BlockSpec<"image", {
88
+ readonly textAlignment: {
89
+ default: "left";
90
+ values: readonly ["left", "center", "right", "justify"];
822
91
  };
823
- implementation: import("../index.js").TiptapBlockImplementation<{
824
- type: "table";
825
- content: "table";
826
- propSchema: {
827
- textColor: {
828
- default: "default";
829
- };
830
- };
831
- }, any, InlineContentSchema, StyleSchema>;
832
- };
833
- file: {
834
- config: {
835
- type: "file";
836
- propSchema: {
837
- backgroundColor: {
838
- default: "default";
839
- };
840
- name: {
841
- default: "";
842
- };
843
- url: {
844
- default: "";
845
- };
846
- caption: {
847
- default: "";
848
- };
849
- };
850
- content: "none";
851
- isFileBlock: true;
92
+ readonly backgroundColor: {
93
+ default: "default";
852
94
  };
853
- implementation: import("../index.js").TiptapBlockImplementation<{
854
- type: "file";
855
- propSchema: {
856
- backgroundColor: {
857
- default: "default";
858
- };
859
- name: {
860
- default: "";
861
- };
862
- url: {
863
- default: "";
864
- };
865
- caption: {
866
- default: "";
867
- };
868
- };
869
- content: "none";
870
- isFileBlock: true;
871
- }, any, InlineContentSchema, StyleSchema>;
872
- };
873
- image: {
874
- config: {
875
- type: "image";
876
- propSchema: {
877
- textAlignment: {
878
- default: "left";
879
- values: readonly ["left", "center", "right", "justify"];
880
- };
881
- backgroundColor: {
882
- default: "default";
883
- };
884
- name: {
885
- default: "";
886
- };
887
- url: {
888
- default: "";
889
- };
890
- caption: {
891
- default: "";
892
- };
893
- showPreview: {
894
- default: true;
895
- };
896
- previewWidth: {
897
- default: undefined;
898
- type: "number";
899
- };
900
- };
901
- content: "none";
902
- isFileBlock: true;
903
- fileBlockAccept: string[];
95
+ readonly name: {
96
+ readonly default: "";
904
97
  };
905
- implementation: import("../index.js").TiptapBlockImplementation<{
906
- type: "image";
907
- propSchema: {
908
- textAlignment: {
909
- default: "left";
910
- values: readonly ["left", "center", "right", "justify"];
911
- };
912
- backgroundColor: {
913
- default: "default";
914
- };
915
- name: {
916
- default: "";
917
- };
918
- url: {
919
- default: "";
920
- };
921
- caption: {
922
- default: "";
923
- };
924
- showPreview: {
925
- default: true;
926
- };
927
- previewWidth: {
928
- default: undefined;
929
- type: "number";
930
- };
931
- };
932
- content: "none";
933
- isFileBlock: true;
934
- fileBlockAccept: string[];
935
- }, any, InlineContentSchema, StyleSchema>;
936
- };
937
- video: {
938
- config: {
939
- type: "video";
940
- propSchema: {
941
- textAlignment: {
942
- default: "left";
943
- values: readonly ["left", "center", "right", "justify"];
944
- };
945
- backgroundColor: {
946
- default: "default";
947
- };
948
- name: {
949
- default: "";
950
- };
951
- url: {
952
- default: "";
953
- };
954
- caption: {
955
- default: "";
956
- };
957
- showPreview: {
958
- default: true;
959
- };
960
- previewWidth: {
961
- default: undefined;
962
- type: "number";
963
- };
964
- };
965
- content: "none";
966
- isFileBlock: true;
967
- fileBlockAccept: string[];
98
+ readonly url: {
99
+ readonly default: "";
968
100
  };
969
- implementation: import("../index.js").TiptapBlockImplementation<{
970
- type: "video";
971
- propSchema: {
972
- textAlignment: {
973
- default: "left";
974
- values: readonly ["left", "center", "right", "justify"];
975
- };
976
- backgroundColor: {
977
- default: "default";
978
- };
979
- name: {
980
- default: "";
981
- };
982
- url: {
983
- default: "";
984
- };
985
- caption: {
986
- default: "";
987
- };
988
- showPreview: {
989
- default: true;
990
- };
991
- previewWidth: {
992
- default: undefined;
993
- type: "number";
994
- };
995
- };
996
- content: "none";
997
- isFileBlock: true;
998
- fileBlockAccept: string[];
999
- }, any, InlineContentSchema, StyleSchema>;
1000
- };
1001
- audio: {
1002
- config: {
1003
- type: "audio";
1004
- propSchema: {
1005
- backgroundColor: {
1006
- default: "default";
1007
- };
1008
- name: {
1009
- default: "";
1010
- };
1011
- url: {
1012
- default: "";
1013
- };
1014
- caption: {
1015
- default: "";
1016
- };
1017
- showPreview: {
1018
- default: true;
1019
- };
1020
- };
1021
- content: "none";
1022
- isFileBlock: true;
1023
- fileBlockAccept: string[];
101
+ readonly caption: {
102
+ readonly default: "";
1024
103
  };
1025
- implementation: import("../index.js").TiptapBlockImplementation<{
1026
- type: "audio";
1027
- propSchema: {
1028
- backgroundColor: {
1029
- default: "default";
1030
- };
1031
- name: {
1032
- default: "";
1033
- };
1034
- url: {
1035
- default: "";
1036
- };
1037
- caption: {
1038
- default: "";
1039
- };
1040
- showPreview: {
1041
- default: true;
1042
- };
1043
- };
1044
- content: "none";
1045
- isFileBlock: true;
1046
- fileBlockAccept: string[];
1047
- }, any, InlineContentSchema, StyleSchema>;
1048
- };
1049
- }>;
1050
- export type _DefaultBlockSchema = typeof defaultBlockSchema;
104
+ readonly showPreview: {
105
+ readonly default: true;
106
+ };
107
+ readonly previewWidth: {
108
+ readonly default: undefined;
109
+ readonly type: "number";
110
+ };
111
+ }, "none">;
112
+ readonly numberedListItem: import("../index.js").BlockSpec<"numberedListItem", {
113
+ readonly start: {
114
+ readonly default: undefined;
115
+ readonly type: "number";
116
+ };
117
+ readonly backgroundColor: {
118
+ default: "default";
119
+ };
120
+ readonly textColor: {
121
+ default: "default";
122
+ };
123
+ readonly textAlignment: {
124
+ default: "left";
125
+ values: readonly ["left", "center", "right", "justify"];
126
+ };
127
+ }, "inline">;
128
+ readonly paragraph: import("../index.js").BlockSpec<"paragraph", {
129
+ backgroundColor: {
130
+ default: "default";
131
+ };
132
+ textColor: {
133
+ default: "default";
134
+ };
135
+ textAlignment: {
136
+ default: "left";
137
+ values: readonly ["left", "center", "right", "justify"];
138
+ };
139
+ }, "inline">;
140
+ readonly quote: import("../index.js").BlockSpec<"quote", {
141
+ readonly backgroundColor: {
142
+ default: "default";
143
+ };
144
+ readonly textColor: {
145
+ default: "default";
146
+ };
147
+ }, "inline">;
148
+ readonly table: import("../index.js").LooseBlockSpec<"table", {
149
+ textColor: {
150
+ default: "default";
151
+ };
152
+ }, "table">;
153
+ readonly toggleListItem: import("../index.js").BlockSpec<"toggleListItem", {
154
+ readonly backgroundColor: {
155
+ default: "default";
156
+ };
157
+ readonly textColor: {
158
+ default: "default";
159
+ };
160
+ readonly textAlignment: {
161
+ default: "left";
162
+ values: readonly ["left", "center", "right", "justify"];
163
+ };
164
+ }, "inline">;
165
+ readonly video: import("../index.js").BlockSpec<"video", {
166
+ textAlignment: {
167
+ default: "left";
168
+ values: readonly ["left", "center", "right", "justify"];
169
+ };
170
+ backgroundColor: {
171
+ default: "default";
172
+ };
173
+ name: {
174
+ default: "";
175
+ };
176
+ url: {
177
+ default: "";
178
+ };
179
+ caption: {
180
+ default: "";
181
+ };
182
+ showPreview: {
183
+ default: boolean;
184
+ };
185
+ previewWidth: {
186
+ default: undefined;
187
+ type: "number";
188
+ };
189
+ }, "none">;
190
+ };
191
+ export type _DefaultBlockSchema = {
192
+ [K in keyof typeof defaultBlockSpecs]: (typeof defaultBlockSpecs)[K]["config"];
193
+ };
1051
194
  export type DefaultBlockSchema = _DefaultBlockSchema;
1052
195
  export declare const defaultStyleSpecs: {
1053
196
  bold: {
@@ -1055,50 +198,59 @@ export declare const defaultStyleSpecs: {
1055
198
  type: string;
1056
199
  propSchema: "boolean";
1057
200
  };
1058
- implementation: import("../index.js").StyleImplementation;
201
+ implementation: import("../index.js").StyleImplementation<{
202
+ type: string;
203
+ propSchema: "boolean";
204
+ }>;
1059
205
  };
1060
206
  italic: {
1061
207
  config: {
1062
208
  type: string;
1063
209
  propSchema: "boolean";
1064
210
  };
1065
- implementation: import("../index.js").StyleImplementation;
211
+ implementation: import("../index.js").StyleImplementation<{
212
+ type: string;
213
+ propSchema: "boolean";
214
+ }>;
1066
215
  };
1067
216
  underline: {
1068
217
  config: {
1069
218
  type: string;
1070
219
  propSchema: "boolean";
1071
220
  };
1072
- implementation: import("../index.js").StyleImplementation;
221
+ implementation: import("../index.js").StyleImplementation<{
222
+ type: string;
223
+ propSchema: "boolean";
224
+ }>;
1073
225
  };
1074
226
  strike: {
1075
227
  config: {
1076
228
  type: string;
1077
229
  propSchema: "boolean";
1078
230
  };
1079
- implementation: import("../index.js").StyleImplementation;
1080
- };
1081
- code: {
1082
- config: {
231
+ implementation: import("../index.js").StyleImplementation<{
1083
232
  type: string;
1084
233
  propSchema: "boolean";
1085
- };
1086
- implementation: import("../index.js").StyleImplementation;
234
+ }>;
1087
235
  };
1088
- textColor: {
236
+ code: {
1089
237
  config: {
1090
238
  type: string;
1091
- propSchema: "string";
239
+ propSchema: "boolean";
1092
240
  };
1093
- implementation: import("../index.js").StyleImplementation;
1094
- };
1095
- backgroundColor: {
1096
- config: {
241
+ implementation: import("../index.js").StyleImplementation<{
1097
242
  type: string;
1098
- propSchema: "string";
1099
- };
1100
- implementation: import("../index.js").StyleImplementation;
1101
- };
243
+ propSchema: "boolean";
244
+ }>;
245
+ };
246
+ textColor: import("../index.js").StyleSpec<{
247
+ readonly type: "textColor";
248
+ readonly propSchema: "string";
249
+ }>;
250
+ backgroundColor: import("../index.js").StyleSpec<{
251
+ readonly type: "backgroundColor";
252
+ readonly propSchema: "string";
253
+ }>;
1102
254
  };
1103
255
  export declare const defaultStyleSchema: import("../index.js").StyleSchemaFromSpecs<{
1104
256
  bold: {
@@ -1106,50 +258,59 @@ export declare const defaultStyleSchema: import("../index.js").StyleSchemaFromSp
1106
258
  type: string;
1107
259
  propSchema: "boolean";
1108
260
  };
1109
- implementation: import("../index.js").StyleImplementation;
261
+ implementation: import("../index.js").StyleImplementation<{
262
+ type: string;
263
+ propSchema: "boolean";
264
+ }>;
1110
265
  };
1111
266
  italic: {
1112
267
  config: {
1113
268
  type: string;
1114
269
  propSchema: "boolean";
1115
270
  };
1116
- implementation: import("../index.js").StyleImplementation;
271
+ implementation: import("../index.js").StyleImplementation<{
272
+ type: string;
273
+ propSchema: "boolean";
274
+ }>;
1117
275
  };
1118
276
  underline: {
1119
277
  config: {
1120
278
  type: string;
1121
279
  propSchema: "boolean";
1122
280
  };
1123
- implementation: import("../index.js").StyleImplementation;
281
+ implementation: import("../index.js").StyleImplementation<{
282
+ type: string;
283
+ propSchema: "boolean";
284
+ }>;
1124
285
  };
1125
286
  strike: {
1126
287
  config: {
1127
288
  type: string;
1128
289
  propSchema: "boolean";
1129
290
  };
1130
- implementation: import("../index.js").StyleImplementation;
1131
- };
1132
- code: {
1133
- config: {
291
+ implementation: import("../index.js").StyleImplementation<{
1134
292
  type: string;
1135
293
  propSchema: "boolean";
1136
- };
1137
- implementation: import("../index.js").StyleImplementation;
294
+ }>;
1138
295
  };
1139
- textColor: {
296
+ code: {
1140
297
  config: {
1141
298
  type: string;
1142
- propSchema: "string";
299
+ propSchema: "boolean";
1143
300
  };
1144
- implementation: import("../index.js").StyleImplementation;
1145
- };
1146
- backgroundColor: {
1147
- config: {
301
+ implementation: import("../index.js").StyleImplementation<{
1148
302
  type: string;
1149
- propSchema: "string";
1150
- };
1151
- implementation: import("../index.js").StyleImplementation;
1152
- };
303
+ propSchema: "boolean";
304
+ }>;
305
+ };
306
+ textColor: import("../index.js").StyleSpec<{
307
+ readonly type: "textColor";
308
+ readonly propSchema: "string";
309
+ }>;
310
+ backgroundColor: import("../index.js").StyleSpec<{
311
+ readonly type: "backgroundColor";
312
+ readonly propSchema: "string";
313
+ }>;
1153
314
  }>;
1154
315
  export type _DefaultStyleSchema = typeof defaultStyleSchema;
1155
316
  export type DefaultStyleSchema = _DefaultStyleSchema;