@blocknote/core 0.30.0 → 0.31.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 (245) hide show
  1. package/dist/blocknote.cjs +9 -9
  2. package/dist/blocknote.cjs.map +1 -1
  3. package/dist/blocknote.js +2771 -2245
  4. package/dist/blocknote.js.map +1 -1
  5. package/dist/comments.cjs.map +1 -1
  6. package/dist/comments.js.map +1 -1
  7. package/dist/{en-D4taoCs4.cjs → en-BXVKCwYt.cjs} +2 -2
  8. package/dist/en-BXVKCwYt.cjs.map +1 -0
  9. package/dist/{en-B7ycW7c8.js → en-qGo6sk9V.js} +2 -3
  10. package/dist/en-qGo6sk9V.js.map +1 -0
  11. package/dist/locales.cjs +1 -1
  12. package/dist/locales.cjs.map +1 -1
  13. package/dist/locales.js +20 -39
  14. package/dist/locales.js.map +1 -1
  15. package/dist/style.css +1 -1
  16. package/dist/webpack-stats.json +1 -1
  17. package/package.json +8 -7
  18. package/src/api/README.md +1 -1
  19. package/src/api/blockManipulation/commands/insertBlocks/insertBlocks.test.ts +19 -14
  20. package/src/api/blockManipulation/commands/insertBlocks/insertBlocks.ts +7 -8
  21. package/src/api/blockManipulation/commands/mergeBlocks/mergeBlocks.test.ts +3 -3
  22. package/src/api/blockManipulation/commands/mergeBlocks/mergeBlocks.ts +12 -12
  23. package/src/api/blockManipulation/commands/moveBlocks/moveBlocks.test.ts +14 -14
  24. package/src/api/blockManipulation/commands/moveBlocks/moveBlocks.ts +16 -16
  25. package/src/api/blockManipulation/commands/nestBlock/nestBlock.ts +8 -8
  26. package/src/api/blockManipulation/commands/replaceBlocks/replaceBlocks.test.ts +12 -12
  27. package/src/api/blockManipulation/commands/replaceBlocks/replaceBlocks.ts +8 -8
  28. package/src/api/blockManipulation/commands/splitBlock/splitBlock.test.ts +10 -10
  29. package/src/api/blockManipulation/commands/splitBlock/splitBlock.ts +2 -2
  30. package/src/api/blockManipulation/commands/updateBlock/__snapshots__/updateBlock.test.ts.snap +2816 -0
  31. package/src/api/blockManipulation/commands/updateBlock/updateBlock.test.ts +200 -42
  32. package/src/api/blockManipulation/commands/updateBlock/updateBlock.ts +104 -34
  33. package/src/api/blockManipulation/getBlock/getBlock.ts +9 -9
  34. package/src/api/blockManipulation/insertContentAt.ts +1 -1
  35. package/src/api/blockManipulation/selections/selection.ts +59 -12
  36. package/src/api/blockManipulation/selections/{textCursorPosition/textCursorPosition.ts → textCursorPosition.ts} +13 -13
  37. package/src/api/blockManipulation/tables/tables.test.ts +106 -106
  38. package/src/api/blockManipulation/tables/tables.ts +35 -35
  39. package/src/api/clipboard/fromClipboard/fileDropExtension.ts +2 -2
  40. package/src/api/clipboard/fromClipboard/handleFileInsertion.ts +9 -9
  41. package/src/api/clipboard/fromClipboard/handleVSCodePaste.ts +3 -3
  42. package/src/api/clipboard/fromClipboard/pasteExtension.ts +3 -3
  43. package/src/api/clipboard/toClipboard/copyExtension.ts +22 -22
  44. package/src/api/exporters/html/externalHTMLExporter.ts +6 -6
  45. package/src/api/exporters/html/internalHTMLSerializer.ts +3 -3
  46. package/src/api/exporters/html/util/serializeBlocksExternalHTML.ts +16 -16
  47. package/src/api/exporters/html/util/serializeBlocksInternalHTML.ts +14 -14
  48. package/src/api/exporters/markdown/markdownExporter.ts +3 -3
  49. package/src/api/exporters/markdown/util/addSpacesToCheckboxesRehypePlugin.ts +3 -3
  50. package/src/api/getBlockInfoFromPos.ts +6 -6
  51. package/src/api/nodeConversions/blockToNode.ts +31 -28
  52. package/src/api/nodeConversions/fragmentToBlocks.ts +1 -1
  53. package/src/api/nodeConversions/nodeToBlock.ts +240 -41
  54. package/src/api/nodeUtil.test.ts +16 -16
  55. package/src/api/nodeUtil.ts +10 -10
  56. package/src/api/parsers/html/parseHTML.ts +1 -1
  57. package/src/api/parsers/html/util/nestedLists.ts +2 -2
  58. package/src/api/parsers/markdown/parseMarkdown.ts +1 -1
  59. package/src/api/pmUtil.ts +7 -7
  60. package/src/api/positionMapping.test.ts +3 -3
  61. package/src/api/positionMapping.ts +5 -5
  62. package/src/blocks/AudioBlockContent/AudioBlockContent.ts +4 -4
  63. package/src/blocks/CodeBlockContent/CodeBlockContent.ts +18 -18
  64. package/src/blocks/FileBlockContent/FileBlockContent.ts +2 -2
  65. package/src/blocks/FileBlockContent/helpers/parse/parseFigureElement.ts +2 -2
  66. package/src/blocks/FileBlockContent/helpers/render/createAddFileButton.ts +6 -6
  67. package/src/blocks/FileBlockContent/helpers/render/createFileBlockWrapper.ts +2 -2
  68. package/src/blocks/FileBlockContent/helpers/render/createFileNameWithIcon.ts +1 -1
  69. package/src/blocks/FileBlockContent/helpers/render/createResizableFileBlockWrapper.ts +7 -7
  70. package/src/blocks/FileBlockContent/helpers/toExternalHTML/createFigureWithCaption.ts +1 -1
  71. package/src/blocks/FileBlockContent/helpers/toExternalHTML/createLinkWithCaption.ts +1 -1
  72. package/src/blocks/FileBlockContent/uploadToTmpFilesDotOrg_DEV_ONLY.ts +2 -2
  73. package/src/blocks/HeadingBlockContent/HeadingBlockContent.ts +6 -6
  74. package/src/blocks/ImageBlockContent/ImageBlockContent.ts +4 -4
  75. package/src/blocks/ListItemBlockContent/BulletListItemBlockContent/BulletListItemBlockContent.ts +4 -4
  76. package/src/blocks/ListItemBlockContent/CheckListItemBlockContent/CheckListItemBlockContent.ts +10 -10
  77. package/src/blocks/ListItemBlockContent/ListItemKeyboardShortcuts.ts +1 -1
  78. package/src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListIndexingPlugin.ts +1 -1
  79. package/src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListItemBlockContent.ts +4 -4
  80. package/src/blocks/ListItemBlockContent/getListItemContent.ts +5 -5
  81. package/src/blocks/PageBreakBlockContent/PageBreakBlockContent.ts +1 -1
  82. package/src/blocks/PageBreakBlockContent/getPageBreakSlashMenuItems.ts +3 -3
  83. package/src/blocks/PageBreakBlockContent/schema.ts +2 -2
  84. package/src/blocks/ParagraphBlockContent/ParagraphBlockContent.ts +3 -3
  85. package/src/blocks/QuoteBlockContent/QuoteBlockContent.ts +4 -4
  86. package/src/blocks/README.md +1 -1
  87. package/src/blocks/TableBlockContent/TableBlockContent.ts +37 -7
  88. package/src/blocks/TableBlockContent/TableExtension.ts +3 -3
  89. package/src/blocks/VideoBlockContent/VideoBlockContent.ts +4 -4
  90. package/src/blocks/defaultBlockHelpers.ts +8 -8
  91. package/src/blocks/defaultBlockTypeGuards.ts +16 -16
  92. package/src/blocks/defaultBlocks.ts +3 -3
  93. package/src/comments/threadstore/DefaultThreadStoreAuth.ts +3 -3
  94. package/src/comments/threadstore/ThreadStore.ts +1 -1
  95. package/src/comments/threadstore/TipTapThreadStore.ts +10 -10
  96. package/src/comments/threadstore/yjs/RESTYjsThreadStore.ts +4 -4
  97. package/src/comments/threadstore/yjs/YjsThreadStore.test.ts +2 -2
  98. package/src/comments/threadstore/yjs/YjsThreadStore.ts +14 -14
  99. package/src/comments/threadstore/yjs/YjsThreadStoreBase.ts +1 -1
  100. package/src/comments/threadstore/yjs/yjsHelpers.ts +6 -6
  101. package/src/editor/Block.css +35 -1
  102. package/src/editor/BlockNoteEditor.test.ts +10 -3
  103. package/src/editor/BlockNoteEditor.ts +95 -38
  104. package/src/editor/BlockNoteExtension.ts +26 -0
  105. package/src/editor/BlockNoteExtensions.ts +38 -22
  106. package/src/editor/BlockNoteSchema.ts +4 -4
  107. package/src/editor/BlockNoteTipTapEditor.ts +33 -12
  108. package/src/editor/README.md +1 -1
  109. package/src/editor/cursorPositionTypes.ts +1 -1
  110. package/src/editor/editor.css +15 -3
  111. package/src/editor/selectionTypes.ts +1 -1
  112. package/src/editor/transformPasted.ts +2 -2
  113. package/src/exporter/Exporter.ts +5 -5
  114. package/src/exporter/mapping.ts +7 -7
  115. package/src/extensions/BackgroundColor/BackgroundColorMark.ts +1 -1
  116. package/src/extensions/Collaboration/CursorPlugin.ts +15 -9
  117. package/src/extensions/Collaboration/ForkYDocPlugin.test.ts +166 -0
  118. package/src/extensions/Collaboration/ForkYDocPlugin.ts +174 -0
  119. package/src/extensions/Collaboration/SyncPlugin.ts +7 -4
  120. package/src/extensions/Collaboration/UndoPlugin.ts +7 -4
  121. package/src/extensions/Collaboration/__snapshots__/fork-yjs-snap-editor-forked.json +30 -0
  122. package/src/extensions/Collaboration/__snapshots__/fork-yjs-snap-editor.json +30 -0
  123. package/src/extensions/Collaboration/__snapshots__/fork-yjs-snap-forked.html +1 -0
  124. package/src/extensions/Collaboration/__snapshots__/fork-yjs-snap.html +1 -0
  125. package/src/extensions/Comments/CommentsPlugin.ts +80 -75
  126. package/src/extensions/Comments/userstore/UserStore.ts +2 -2
  127. package/src/extensions/FilePanel/FilePanelPlugin.ts +56 -55
  128. package/src/extensions/FormattingToolbar/FormattingToolbarPlugin.ts +60 -30
  129. package/src/extensions/KeyboardShortcuts/KeyboardShortcutsExtension.ts +26 -26
  130. package/src/extensions/LinkToolbar/LinkToolbarPlugin.ts +33 -32
  131. package/src/extensions/NodeSelectionKeyboard/NodeSelectionKeyboardPlugin.ts +45 -42
  132. package/src/extensions/Placeholder/PlaceholderPlugin.ts +113 -110
  133. package/src/extensions/PreviousBlockType/PreviousBlockTypePlugin.ts +179 -170
  134. package/src/extensions/README.md +1 -1
  135. package/src/extensions/ShowSelection/ShowSelectionPlugin.ts +22 -19
  136. package/src/extensions/SideMenu/MultipleNodeSelection.ts +1 -1
  137. package/src/extensions/SideMenu/SideMenuPlugin.ts +49 -48
  138. package/src/extensions/SideMenu/dragging.ts +8 -8
  139. package/src/extensions/SuggestionMenu/SuggestionPlugin.ts +176 -176
  140. package/src/extensions/SuggestionMenu/getDefaultEmojiPickerItems.ts +2 -2
  141. package/src/extensions/SuggestionMenu/getDefaultSlashMenuItems.ts +16 -16
  142. package/src/extensions/Suggestions/SuggestionMarks.ts +175 -0
  143. package/src/extensions/TableHandles/TableHandlesPlugin.ts +199 -195
  144. package/src/extensions/TrailingNode/TrailingNodeExtension.ts +1 -1
  145. package/src/extensions/UniqueID/UniqueID.ts +6 -6
  146. package/src/extensions/getDraggableBlockFromElement.ts +1 -1
  147. package/src/fonts/inter.css +18 -9
  148. package/src/i18n/locales/ar.ts +0 -1
  149. package/src/i18n/locales/de.ts +0 -1
  150. package/src/i18n/locales/en.ts +0 -1
  151. package/src/i18n/locales/es.ts +0 -1
  152. package/src/i18n/locales/fr.ts +0 -1
  153. package/src/i18n/locales/hr.ts +0 -1
  154. package/src/i18n/locales/is.ts +0 -1
  155. package/src/i18n/locales/it.ts +0 -1
  156. package/src/i18n/locales/ja.ts +0 -1
  157. package/src/i18n/locales/ko.ts +0 -1
  158. package/src/i18n/locales/nl.ts +0 -1
  159. package/src/i18n/locales/no.ts +0 -1
  160. package/src/i18n/locales/pl.ts +0 -1
  161. package/src/i18n/locales/pt.ts +0 -1
  162. package/src/i18n/locales/ru.ts +0 -1
  163. package/src/i18n/locales/sk.ts +0 -1
  164. package/src/i18n/locales/uk.ts +0 -1
  165. package/src/i18n/locales/vi.ts +0 -1
  166. package/src/i18n/locales/zh-tw.ts +0 -1
  167. package/src/i18n/locales/zh.ts +0 -1
  168. package/src/index.ts +18 -8
  169. package/src/locales.ts +1 -1
  170. package/src/pm-nodes/BlockContainer.ts +1 -1
  171. package/src/pm-nodes/BlockGroup.ts +2 -2
  172. package/src/pm-nodes/Doc.ts +5 -4
  173. package/src/schema/README.md +1 -1
  174. package/src/schema/blocks/createSpec.ts +14 -14
  175. package/src/schema/blocks/internal.ts +17 -17
  176. package/src/schema/blocks/types.ts +25 -25
  177. package/src/schema/inlineContent/createSpec.ts +16 -20
  178. package/src/schema/inlineContent/internal.ts +9 -9
  179. package/src/schema/inlineContent/types.ts +26 -26
  180. package/src/schema/propTypes.ts +8 -8
  181. package/src/schema/styles/createSpec.ts +2 -2
  182. package/src/schema/styles/internal.ts +7 -7
  183. package/src/schema/styles/types.ts +2 -2
  184. package/src/util/EventEmitter.ts +4 -4
  185. package/src/util/README.md +1 -1
  186. package/src/util/combineByGroup.ts +1 -1
  187. package/src/util/table.ts +33 -30
  188. package/types/src/api/blockManipulation/commands/insertBlocks/insertBlocks.d.ts +1 -1
  189. package/types/src/api/blockManipulation/commands/removeBlocks/removeBlocks.d.ts +4 -0
  190. package/types/src/api/blockManipulation/commands/removeBlocks/removeBlocks.test.d.ts +1 -0
  191. package/types/src/api/blockManipulation/commands/updateBlock/updateBlock.d.ts +3 -1
  192. package/types/src/api/blockManipulation/selections/selection.d.ts +10 -0
  193. package/types/src/api/blockManipulation/selections/textCursorPosition.d.ts +5 -0
  194. package/types/src/api/blockManipulation/transactions.test.d.ts +0 -0
  195. package/types/src/api/clipboard/clipboardExternal.test.d.ts +1 -0
  196. package/types/src/api/clipboard/clipboardInternal.test.d.ts +1 -0
  197. package/types/src/api/clipboard/testUtil.d.ts +541 -0
  198. package/types/src/api/exporters/html/htmlConversion.test.d.ts +1 -0
  199. package/types/src/api/exporters/markdown/markdownExporter.test.d.ts +1 -0
  200. package/types/src/api/nodeConversions/nodeConversions.test.d.ts +1 -0
  201. package/types/src/api/nodeConversions/nodeToBlock.d.ts +39 -2
  202. package/types/src/api/parsers/html/parseHTML.test.d.ts +1 -0
  203. package/types/src/api/parsers/markdown/parseMarkdown.test.d.ts +1 -0
  204. package/types/src/api/pmUtil.d.ts +3 -3
  205. package/types/src/api/testUtil/cases/customBlocks.d.ts +670 -0
  206. package/types/src/api/testUtil/cases/customInlineContent.d.ts +558 -0
  207. package/types/src/api/testUtil/cases/customStyles.d.ts +552 -0
  208. package/types/src/api/testUtil/cases/defaultSchema.d.ts +4 -0
  209. package/types/src/api/testUtil/index.d.ts +14 -0
  210. package/types/src/api/testUtil/partialBlockTestUtil.d.ts +9 -0
  211. package/types/src/api/testUtil/paste.d.ts +2 -0
  212. package/types/src/blocks/CodeBlockContent/defaultSupportedLanguages.d.ts +6 -0
  213. package/types/src/blocks/TableBlockContent/TableBlockContent.d.ts +9 -1
  214. package/types/src/editor/BlockNoteEditor.d.ts +58 -10
  215. package/types/src/editor/BlockNoteExtension.d.ts +9 -0
  216. package/types/src/editor/BlockNoteExtensions.d.ts +2 -2
  217. package/types/src/editor/BlockNoteTipTapEditor.d.ts +2 -2
  218. package/types/src/extensions/Collaboration/CursorPlugin.d.ts +3 -3
  219. package/types/src/extensions/Collaboration/ForkYDocPlugin.d.ts +41 -0
  220. package/types/src/extensions/Collaboration/ForkYDocPlugin.test.d.ts +1 -0
  221. package/types/src/extensions/Collaboration/SyncPlugin.d.ts +3 -3
  222. package/types/src/extensions/Collaboration/UndoPlugin.d.ts +3 -3
  223. package/types/src/extensions/Collaboration/createCollaborationExtensions.d.ts +17 -0
  224. package/types/src/extensions/Comments/CommentsPlugin.d.ts +2 -4
  225. package/types/src/extensions/FilePanel/FilePanelPlugin.d.ts +3 -4
  226. package/types/src/extensions/FormattingToolbar/FormattingToolbarPlugin.d.ts +5 -5
  227. package/types/src/extensions/LinkToolbar/LinkToolbarPlugin.d.ts +3 -4
  228. package/types/src/extensions/NodeSelectionKeyboard/NodeSelectionKeyboardPlugin.d.ts +2 -3
  229. package/types/src/extensions/Placeholder/PlaceholderPlugin.d.ts +2 -3
  230. package/types/src/extensions/PreviousBlockType/PreviousBlockTypePlugin.d.ts +2 -3
  231. package/types/src/extensions/ShowSelection/ShowSelectionPlugin.d.ts +2 -3
  232. package/types/src/extensions/SideMenu/SideMenuPlugin.d.ts +3 -4
  233. package/types/src/extensions/SuggestionMenu/SuggestionPlugin.d.ts +2 -4
  234. package/types/src/extensions/Suggestions/SuggestionMarks.d.ts +4 -0
  235. package/types/src/extensions/TableHandles/TableHandlesPlugin.d.ts +5 -6
  236. package/types/src/i18n/locales/en.d.ts +0 -1
  237. package/types/src/i18n/locales/sk.d.ts +0 -1
  238. package/types/src/index.d.ts +15 -8
  239. package/dist/en-B7ycW7c8.js.map +0 -1
  240. package/dist/en-D4taoCs4.cjs.map +0 -1
  241. package/dist/tsconfig.tsbuildinfo +0 -1
  242. package/src/api/blockManipulation/selections/__snapshots__/selection.test.ts.snap +0 -844
  243. package/src/api/blockManipulation/selections/selection.test.ts +0 -72
  244. package/src/api/blockManipulation/selections/textCursorPosition/__snapshots__/textCursorPosition.test.ts.snap +0 -316
  245. package/src/api/blockManipulation/selections/textCursorPosition/textCursorPosition.test.ts +0 -74
@@ -0,0 +1,670 @@
1
+ import { EditorTestCases } from "../index.js";
2
+ import { DefaultInlineContentSchema, DefaultStyleSchema } from "../../../blocks/defaultBlocks.js";
3
+ import { BlockNoteSchema } from "../../../editor/BlockNoteSchema.js";
4
+ declare const schema: BlockNoteSchema<import("../../../index.js").BlockSchemaFromSpecs<{
5
+ simpleImage: {
6
+ config: {
7
+ type: string;
8
+ propSchema: {
9
+ textAlignment: {
10
+ default: "left";
11
+ values: readonly ["left", "center", "right", "justify"];
12
+ };
13
+ backgroundColor: {
14
+ default: "default";
15
+ };
16
+ name: {
17
+ default: "";
18
+ };
19
+ url: {
20
+ default: "";
21
+ };
22
+ caption: {
23
+ default: "";
24
+ };
25
+ showPreview: {
26
+ default: true;
27
+ };
28
+ previewWidth: {
29
+ default: number;
30
+ };
31
+ };
32
+ content: "none";
33
+ };
34
+ implementation: import("../../../index.js").TiptapBlockImplementation<{
35
+ type: string;
36
+ propSchema: {
37
+ textAlignment: {
38
+ default: "left";
39
+ values: readonly ["left", "center", "right", "justify"];
40
+ };
41
+ backgroundColor: {
42
+ default: "default";
43
+ };
44
+ name: {
45
+ default: "";
46
+ };
47
+ url: {
48
+ default: "";
49
+ };
50
+ caption: {
51
+ default: "";
52
+ };
53
+ showPreview: {
54
+ default: true;
55
+ };
56
+ previewWidth: {
57
+ default: number;
58
+ };
59
+ };
60
+ content: "none";
61
+ }, any, import("../../../index.js").InlineContentSchema, import("../../../index.js").StyleSchema>;
62
+ };
63
+ customParagraph: {
64
+ config: {
65
+ type: string;
66
+ propSchema: {
67
+ backgroundColor: {
68
+ default: "default";
69
+ };
70
+ textColor: {
71
+ default: "default";
72
+ };
73
+ textAlignment: {
74
+ default: "left";
75
+ values: readonly ["left", "center", "right", "justify"];
76
+ };
77
+ };
78
+ content: "inline";
79
+ };
80
+ implementation: import("../../../index.js").TiptapBlockImplementation<{
81
+ type: string;
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
+ content: "inline";
95
+ }, any, import("../../../index.js").InlineContentSchema, import("../../../index.js").StyleSchema>;
96
+ };
97
+ simpleCustomParagraph: {
98
+ config: {
99
+ type: string;
100
+ propSchema: {
101
+ backgroundColor: {
102
+ default: "default";
103
+ };
104
+ textColor: {
105
+ default: "default";
106
+ };
107
+ textAlignment: {
108
+ default: "left";
109
+ values: readonly ["left", "center", "right", "justify"];
110
+ };
111
+ };
112
+ content: "inline";
113
+ };
114
+ implementation: import("../../../index.js").TiptapBlockImplementation<{
115
+ type: string;
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
+ content: "inline";
129
+ }, any, import("../../../index.js").InlineContentSchema, import("../../../index.js").StyleSchema>;
130
+ };
131
+ paragraph: {
132
+ config: {
133
+ type: "paragraph";
134
+ content: "inline";
135
+ propSchema: {
136
+ backgroundColor: {
137
+ default: "default";
138
+ };
139
+ textColor: {
140
+ default: "default";
141
+ };
142
+ textAlignment: {
143
+ default: "left";
144
+ values: readonly ["left", "center", "right", "justify"];
145
+ };
146
+ };
147
+ };
148
+ implementation: import("../../../index.js").TiptapBlockImplementation<{
149
+ type: "paragraph";
150
+ content: "inline";
151
+ propSchema: {
152
+ backgroundColor: {
153
+ default: "default";
154
+ };
155
+ textColor: {
156
+ default: "default";
157
+ };
158
+ textAlignment: {
159
+ default: "left";
160
+ values: readonly ["left", "center", "right", "justify"];
161
+ };
162
+ };
163
+ }, any, import("../../../index.js").InlineContentSchema, import("../../../index.js").StyleSchema>;
164
+ };
165
+ heading: {
166
+ config: {
167
+ type: "heading";
168
+ content: "inline";
169
+ propSchema: {
170
+ level: {
171
+ default: number;
172
+ values: readonly [1, 2, 3];
173
+ };
174
+ backgroundColor: {
175
+ default: "default";
176
+ };
177
+ textColor: {
178
+ default: "default";
179
+ };
180
+ textAlignment: {
181
+ default: "left";
182
+ values: readonly ["left", "center", "right", "justify"];
183
+ };
184
+ };
185
+ };
186
+ implementation: import("../../../index.js").TiptapBlockImplementation<{
187
+ type: "heading";
188
+ content: "inline";
189
+ propSchema: {
190
+ level: {
191
+ default: number;
192
+ values: readonly [1, 2, 3];
193
+ };
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, import("../../../index.js").InlineContentSchema, import("../../../index.js").StyleSchema>;
206
+ };
207
+ quote: {
208
+ config: {
209
+ type: "quote";
210
+ content: "inline";
211
+ propSchema: {
212
+ backgroundColor: {
213
+ default: "default";
214
+ };
215
+ textColor: {
216
+ default: "default";
217
+ };
218
+ textAlignment: {
219
+ default: "left";
220
+ values: readonly ["left", "center", "right", "justify"];
221
+ };
222
+ };
223
+ };
224
+ implementation: import("../../../index.js").TiptapBlockImplementation<{
225
+ type: "quote";
226
+ content: "inline";
227
+ propSchema: {
228
+ backgroundColor: {
229
+ default: "default";
230
+ };
231
+ textColor: {
232
+ default: "default";
233
+ };
234
+ textAlignment: {
235
+ default: "left";
236
+ values: readonly ["left", "center", "right", "justify"];
237
+ };
238
+ };
239
+ }, any, import("../../../index.js").InlineContentSchema, import("../../../index.js").StyleSchema>;
240
+ };
241
+ codeBlock: {
242
+ config: {
243
+ type: "codeBlock";
244
+ content: "inline";
245
+ propSchema: {
246
+ language: {
247
+ default: string;
248
+ };
249
+ };
250
+ };
251
+ implementation: import("../../../index.js").TiptapBlockImplementation<{
252
+ type: "codeBlock";
253
+ content: "inline";
254
+ propSchema: {
255
+ language: {
256
+ default: string;
257
+ };
258
+ };
259
+ }, any, import("../../../index.js").InlineContentSchema, import("../../../index.js").StyleSchema>;
260
+ };
261
+ bulletListItem: {
262
+ config: {
263
+ type: "bulletListItem";
264
+ content: "inline";
265
+ propSchema: {
266
+ backgroundColor: {
267
+ default: "default";
268
+ };
269
+ textColor: {
270
+ default: "default";
271
+ };
272
+ textAlignment: {
273
+ default: "left";
274
+ values: readonly ["left", "center", "right", "justify"];
275
+ };
276
+ };
277
+ };
278
+ implementation: import("../../../index.js").TiptapBlockImplementation<{
279
+ type: "bulletListItem";
280
+ content: "inline";
281
+ propSchema: {
282
+ backgroundColor: {
283
+ default: "default";
284
+ };
285
+ textColor: {
286
+ default: "default";
287
+ };
288
+ textAlignment: {
289
+ default: "left";
290
+ values: readonly ["left", "center", "right", "justify"];
291
+ };
292
+ };
293
+ }, any, import("../../../index.js").InlineContentSchema, import("../../../index.js").StyleSchema>;
294
+ };
295
+ numberedListItem: {
296
+ config: {
297
+ type: "numberedListItem";
298
+ content: "inline";
299
+ propSchema: {
300
+ start: {
301
+ default: undefined;
302
+ type: "number";
303
+ };
304
+ backgroundColor: {
305
+ default: "default";
306
+ };
307
+ textColor: {
308
+ default: "default";
309
+ };
310
+ textAlignment: {
311
+ default: "left";
312
+ values: readonly ["left", "center", "right", "justify"];
313
+ };
314
+ };
315
+ };
316
+ implementation: import("../../../index.js").TiptapBlockImplementation<{
317
+ type: "numberedListItem";
318
+ content: "inline";
319
+ propSchema: {
320
+ start: {
321
+ default: undefined;
322
+ type: "number";
323
+ };
324
+ backgroundColor: {
325
+ default: "default";
326
+ };
327
+ textColor: {
328
+ default: "default";
329
+ };
330
+ textAlignment: {
331
+ default: "left";
332
+ values: readonly ["left", "center", "right", "justify"];
333
+ };
334
+ };
335
+ }, any, import("../../../index.js").InlineContentSchema, import("../../../index.js").StyleSchema>;
336
+ };
337
+ checkListItem: {
338
+ config: {
339
+ type: "checkListItem";
340
+ content: "inline";
341
+ propSchema: {
342
+ checked: {
343
+ default: false;
344
+ };
345
+ backgroundColor: {
346
+ default: "default";
347
+ };
348
+ textColor: {
349
+ default: "default";
350
+ };
351
+ textAlignment: {
352
+ default: "left";
353
+ values: readonly ["left", "center", "right", "justify"];
354
+ };
355
+ };
356
+ };
357
+ implementation: import("../../../index.js").TiptapBlockImplementation<{
358
+ type: "checkListItem";
359
+ content: "inline";
360
+ propSchema: {
361
+ checked: {
362
+ default: false;
363
+ };
364
+ backgroundColor: {
365
+ default: "default";
366
+ };
367
+ textColor: {
368
+ default: "default";
369
+ };
370
+ textAlignment: {
371
+ default: "left";
372
+ values: readonly ["left", "center", "right", "justify"];
373
+ };
374
+ };
375
+ }, any, import("../../../index.js").InlineContentSchema, import("../../../index.js").StyleSchema>;
376
+ };
377
+ table: {
378
+ config: {
379
+ type: "table";
380
+ content: "table";
381
+ propSchema: {
382
+ textColor: {
383
+ default: "default";
384
+ };
385
+ };
386
+ };
387
+ implementation: import("../../../index.js").TiptapBlockImplementation<{
388
+ type: "table";
389
+ content: "table";
390
+ propSchema: {
391
+ textColor: {
392
+ default: "default";
393
+ };
394
+ };
395
+ }, any, import("../../../index.js").InlineContentSchema, import("../../../index.js").StyleSchema>;
396
+ };
397
+ file: {
398
+ config: {
399
+ type: "file";
400
+ propSchema: {
401
+ backgroundColor: {
402
+ default: "default";
403
+ };
404
+ name: {
405
+ default: "";
406
+ };
407
+ url: {
408
+ default: "";
409
+ };
410
+ caption: {
411
+ default: "";
412
+ };
413
+ };
414
+ content: "none";
415
+ isFileBlock: true;
416
+ };
417
+ implementation: import("../../../index.js").TiptapBlockImplementation<{
418
+ type: "file";
419
+ propSchema: {
420
+ backgroundColor: {
421
+ default: "default";
422
+ };
423
+ name: {
424
+ default: "";
425
+ };
426
+ url: {
427
+ default: "";
428
+ };
429
+ caption: {
430
+ default: "";
431
+ };
432
+ };
433
+ content: "none";
434
+ isFileBlock: true;
435
+ }, any, import("../../../index.js").InlineContentSchema, import("../../../index.js").StyleSchema>;
436
+ };
437
+ image: {
438
+ config: {
439
+ type: "image";
440
+ propSchema: {
441
+ textAlignment: {
442
+ default: "left";
443
+ values: readonly ["left", "center", "right", "justify"];
444
+ };
445
+ backgroundColor: {
446
+ default: "default";
447
+ };
448
+ name: {
449
+ default: "";
450
+ };
451
+ url: {
452
+ default: "";
453
+ };
454
+ caption: {
455
+ default: "";
456
+ };
457
+ showPreview: {
458
+ default: true;
459
+ };
460
+ previewWidth: {
461
+ default: number;
462
+ };
463
+ };
464
+ content: "none";
465
+ isFileBlock: true;
466
+ fileBlockAccept: string[];
467
+ };
468
+ implementation: import("../../../index.js").TiptapBlockImplementation<{
469
+ type: "image";
470
+ propSchema: {
471
+ textAlignment: {
472
+ default: "left";
473
+ values: readonly ["left", "center", "right", "justify"];
474
+ };
475
+ backgroundColor: {
476
+ default: "default";
477
+ };
478
+ name: {
479
+ default: "";
480
+ };
481
+ url: {
482
+ default: "";
483
+ };
484
+ caption: {
485
+ default: "";
486
+ };
487
+ showPreview: {
488
+ default: true;
489
+ };
490
+ previewWidth: {
491
+ default: number;
492
+ };
493
+ };
494
+ content: "none";
495
+ isFileBlock: true;
496
+ fileBlockAccept: string[];
497
+ }, any, import("../../../index.js").InlineContentSchema, import("../../../index.js").StyleSchema>;
498
+ };
499
+ video: {
500
+ config: {
501
+ type: "video";
502
+ propSchema: {
503
+ textAlignment: {
504
+ default: "left";
505
+ values: readonly ["left", "center", "right", "justify"];
506
+ };
507
+ backgroundColor: {
508
+ default: "default";
509
+ };
510
+ name: {
511
+ default: "";
512
+ };
513
+ url: {
514
+ default: "";
515
+ };
516
+ caption: {
517
+ default: "";
518
+ };
519
+ showPreview: {
520
+ default: true;
521
+ };
522
+ previewWidth: {
523
+ default: number;
524
+ };
525
+ };
526
+ content: "none";
527
+ isFileBlock: true;
528
+ fileBlockAccept: string[];
529
+ };
530
+ implementation: import("../../../index.js").TiptapBlockImplementation<{
531
+ type: "video";
532
+ propSchema: {
533
+ textAlignment: {
534
+ default: "left";
535
+ values: readonly ["left", "center", "right", "justify"];
536
+ };
537
+ backgroundColor: {
538
+ default: "default";
539
+ };
540
+ name: {
541
+ default: "";
542
+ };
543
+ url: {
544
+ default: "";
545
+ };
546
+ caption: {
547
+ default: "";
548
+ };
549
+ showPreview: {
550
+ default: true;
551
+ };
552
+ previewWidth: {
553
+ default: number;
554
+ };
555
+ };
556
+ content: "none";
557
+ isFileBlock: true;
558
+ fileBlockAccept: string[];
559
+ }, any, import("../../../index.js").InlineContentSchema, import("../../../index.js").StyleSchema>;
560
+ };
561
+ audio: {
562
+ config: {
563
+ type: "audio";
564
+ propSchema: {
565
+ backgroundColor: {
566
+ default: "default";
567
+ };
568
+ name: {
569
+ default: "";
570
+ };
571
+ url: {
572
+ default: "";
573
+ };
574
+ caption: {
575
+ default: "";
576
+ };
577
+ showPreview: {
578
+ default: true;
579
+ };
580
+ };
581
+ content: "none";
582
+ isFileBlock: true;
583
+ fileBlockAccept: string[];
584
+ };
585
+ implementation: import("../../../index.js").TiptapBlockImplementation<{
586
+ type: "audio";
587
+ propSchema: {
588
+ backgroundColor: {
589
+ default: "default";
590
+ };
591
+ name: {
592
+ default: "";
593
+ };
594
+ url: {
595
+ default: "";
596
+ };
597
+ caption: {
598
+ default: "";
599
+ };
600
+ showPreview: {
601
+ default: true;
602
+ };
603
+ };
604
+ content: "none";
605
+ isFileBlock: true;
606
+ fileBlockAccept: string[];
607
+ }, any, import("../../../index.js").InlineContentSchema, import("../../../index.js").StyleSchema>;
608
+ };
609
+ }>, import("../../../index.js").InlineContentSchemaFromSpecs<{
610
+ text: {
611
+ config: "text";
612
+ implementation: any;
613
+ };
614
+ link: {
615
+ config: "link";
616
+ implementation: any;
617
+ };
618
+ }>, import("../../../index.js").StyleSchemaFromSpecs<{
619
+ bold: {
620
+ config: {
621
+ type: string;
622
+ propSchema: "boolean";
623
+ };
624
+ implementation: import("../../../index.js").StyleImplementation;
625
+ };
626
+ italic: {
627
+ config: {
628
+ type: string;
629
+ propSchema: "boolean";
630
+ };
631
+ implementation: import("../../../index.js").StyleImplementation;
632
+ };
633
+ underline: {
634
+ config: {
635
+ type: string;
636
+ propSchema: "boolean";
637
+ };
638
+ implementation: import("../../../index.js").StyleImplementation;
639
+ };
640
+ strike: {
641
+ config: {
642
+ type: string;
643
+ propSchema: "boolean";
644
+ };
645
+ implementation: import("../../../index.js").StyleImplementation;
646
+ };
647
+ code: {
648
+ config: {
649
+ type: string;
650
+ propSchema: "boolean";
651
+ };
652
+ implementation: import("../../../index.js").StyleImplementation;
653
+ };
654
+ textColor: {
655
+ config: {
656
+ type: string;
657
+ propSchema: "string";
658
+ };
659
+ implementation: import("../../../index.js").StyleImplementation;
660
+ };
661
+ backgroundColor: {
662
+ config: {
663
+ type: string;
664
+ propSchema: "string";
665
+ };
666
+ implementation: import("../../../index.js").StyleImplementation;
667
+ };
668
+ }>>;
669
+ export declare const customBlocksTestCases: EditorTestCases<typeof schema.blockSchema, DefaultInlineContentSchema, DefaultStyleSchema>;
670
+ export {};