@blocknote/core 0.38.0 → 0.39.1-capitol

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 (239) hide show
  1. package/dist/BlockNoteSchema-Bsa_tSAC.cjs +11 -0
  2. package/dist/BlockNoteSchema-Bsa_tSAC.cjs.map +1 -0
  3. package/dist/BlockNoteSchema-CZez1nQf.js +4244 -0
  4. package/dist/BlockNoteSchema-CZez1nQf.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/webpack-stats.json +1 -1
  15. package/package.json +19 -17
  16. package/src/api/blockManipulation/commands/insertBlocks/insertBlocks.ts +1 -1
  17. package/src/api/blockManipulation/commands/replaceBlocks/replaceBlocks.ts +2 -2
  18. package/src/api/blockManipulation/commands/splitBlock/splitBlock.ts +34 -25
  19. package/src/api/blockManipulation/setupTestEnv.ts +0 -1
  20. package/src/api/clipboard/fromClipboard/handleFileInsertion.ts +6 -10
  21. package/src/api/clipboard/fromClipboard/pasteExtension.ts +1 -1
  22. package/src/api/clipboard/toClipboard/copyExtension.ts +1 -1
  23. package/src/api/exporters/html/util/serializeBlocksExternalHTML.ts +128 -28
  24. package/src/api/exporters/html/util/serializeBlocksInternalHTML.ts +101 -41
  25. package/src/api/pmUtil.ts +1 -1
  26. package/src/api/positionMapping.test.ts +58 -15
  27. package/src/api/positionMapping.ts +2 -4
  28. package/src/blocks/Audio/block.ts +174 -0
  29. package/src/blocks/BlockNoteSchema.ts +59 -0
  30. package/src/blocks/Code/block.ts +299 -0
  31. package/src/blocks/File/block.ts +98 -0
  32. package/src/blocks/{FileBlockContent → File}/helpers/render/createAddFileButton.ts +5 -2
  33. package/src/blocks/{FileBlockContent → File}/helpers/render/createFileBlockWrapper.ts +15 -6
  34. package/src/blocks/{FileBlockContent → File}/helpers/render/createFileNameWithIcon.ts +15 -2
  35. package/src/blocks/{FileBlockContent → File}/helpers/render/createResizableFileBlockWrapper.ts +21 -2
  36. package/src/blocks/Heading/block.ts +138 -0
  37. package/src/blocks/Image/block.ts +190 -0
  38. package/src/blocks/ListItem/BulletListItem/block.ts +116 -0
  39. package/src/blocks/ListItem/CheckListItem/block.ts +175 -0
  40. package/src/blocks/ListItem/NumberedListItem/IndexingPlugin.ts +173 -0
  41. package/src/blocks/ListItem/NumberedListItem/block.ts +133 -0
  42. package/src/blocks/ListItem/ToggleListItem/block.ts +78 -0
  43. package/src/blocks/PageBreak/block.ts +72 -0
  44. package/src/blocks/{PageBreakBlockContent → PageBreak}/getPageBreakSlashMenuItems.ts +9 -7
  45. package/src/blocks/Paragraph/block.ts +80 -0
  46. package/src/blocks/Quote/block.ts +90 -0
  47. package/src/blocks/{TableBlockContent/TableBlockContent.ts → Table/block.ts} +169 -51
  48. package/src/blocks/ToggleWrapper/createToggleWrapper.ts +1 -1
  49. package/src/blocks/Video/block.ts +143 -0
  50. package/src/blocks/defaultBlockHelpers.ts +2 -2
  51. package/src/blocks/defaultBlockTypeGuards.ts +143 -174
  52. package/src/blocks/defaultBlocks.ts +107 -35
  53. package/src/blocks/defaultProps.ts +145 -4
  54. package/src/blocks/index.ts +26 -0
  55. package/src/blocks/utils/listItemEnterHandler.ts +42 -0
  56. package/src/editor/Block.css +54 -18
  57. package/src/editor/BlockNoteEditor.ts +256 -211
  58. package/src/editor/BlockNoteExtension.ts +92 -0
  59. package/src/editor/BlockNoteExtensions.ts +18 -17
  60. package/src/editor/defaultColors.ts +2 -2
  61. package/src/exporter/Exporter.ts +1 -1
  62. package/src/exporter/mapping.ts +1 -1
  63. package/src/extensions/BackgroundColor/BackgroundColorExtension.ts +3 -20
  64. package/src/extensions/BackgroundColor/BackgroundColorMark.ts +6 -8
  65. package/src/extensions/BlockChange/BlockChangePlugin.ts +2 -1
  66. package/src/extensions/Collaboration/__snapshots__/fork-yjs-snap-editor-forked.json +2 -2
  67. package/src/extensions/Collaboration/__snapshots__/fork-yjs-snap-editor.json +2 -2
  68. package/src/extensions/Collaboration/__snapshots__/fork-yjs-snap-forked.html +1 -1
  69. package/src/extensions/Collaboration/__snapshots__/fork-yjs-snap.html +1 -1
  70. package/src/extensions/Collaboration/schemaMigration/SchemaMigrationPlugin.ts +52 -0
  71. package/src/extensions/Collaboration/schemaMigration/migrationRules/index.ts +4 -0
  72. package/src/extensions/Collaboration/schemaMigration/migrationRules/migrationRule.ts +4 -0
  73. package/src/extensions/Collaboration/schemaMigration/migrationRules/moveColorAttributes.ts +78 -0
  74. package/src/extensions/Comments/CommentsPlugin.ts +1 -1
  75. package/src/extensions/FilePanel/FilePanelPlugin.ts +5 -10
  76. package/src/extensions/FormattingToolbar/FormattingToolbarPlugin.ts +1 -1
  77. package/src/extensions/KeyboardShortcuts/KeyboardShortcutsExtension.ts +4 -3
  78. package/src/extensions/Placeholder/PlaceholderPlugin.ts +6 -6
  79. package/src/extensions/PreviousBlockType/PreviousBlockTypePlugin.ts +1 -23
  80. package/src/extensions/SideMenu/SideMenuPlugin.ts +1 -3
  81. package/src/extensions/SideMenu/dragging.ts +2 -2
  82. package/src/extensions/SuggestionMenu/SuggestionPlugin.ts +4 -7
  83. package/src/extensions/SuggestionMenu/getDefaultEmojiPickerItems.ts +6 -2
  84. package/src/extensions/SuggestionMenu/getDefaultSlashMenuItems.ts +24 -17
  85. package/src/extensions/TableHandles/TableHandlesPlugin.ts +8 -8
  86. package/src/extensions/TextAlignment/TextAlignmentExtension.ts +5 -11
  87. package/src/extensions/TextColor/TextColorExtension.ts +3 -17
  88. package/src/extensions/TextColor/TextColorMark.ts +4 -9
  89. package/src/extensions/UniqueID/UniqueID.ts +6 -13
  90. package/src/index.ts +2 -28
  91. package/src/schema/blocks/createSpec.ts +342 -169
  92. package/src/schema/blocks/internal.ts +77 -138
  93. package/src/schema/blocks/types.ts +264 -94
  94. package/src/schema/index.ts +1 -0
  95. package/src/schema/inlineContent/createSpec.ts +99 -21
  96. package/src/schema/inlineContent/internal.ts +16 -7
  97. package/src/schema/inlineContent/types.ts +24 -2
  98. package/src/schema/propTypes.ts +15 -9
  99. package/src/schema/schema.ts +209 -0
  100. package/src/schema/styles/createSpec.ts +79 -31
  101. package/src/schema/styles/internal.ts +61 -2
  102. package/src/schema/styles/types.ts +17 -3
  103. package/src/util/topo-sort.test.ts +125 -0
  104. package/src/util/topo-sort.ts +160 -0
  105. package/types/src/api/blockManipulation/commands/splitBlock/splitBlock.d.ts +2 -1
  106. package/types/src/api/blockManipulation/selections/selection.d.ts +1 -1
  107. package/types/src/api/blockManipulation/setupTestEnv.d.ts +29 -543
  108. package/types/src/api/exporters/html/util/serializeBlocksExternalHTML.d.ts +1 -1
  109. package/types/src/api/exporters/html/util/serializeBlocksInternalHTML.d.ts +1 -1
  110. package/types/src/api/exporters/markdown/util/convertVideoToMarkdownRehypePlugin.d.ts +2 -0
  111. package/types/src/api/exporters/markdown/util/removeUnderlinesRehypePlugin.d.ts +6 -0
  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/Divider/block.d.ts +3 -0
  118. package/types/src/blocks/File/block.d.ts +37 -0
  119. package/types/src/blocks/File/helpers/render/createAddFileButton.d.ts +6 -0
  120. package/types/src/blocks/File/helpers/render/createFileBlockWrapper.d.ts +25 -0
  121. package/types/src/blocks/{FileBlockContent → File}/helpers/render/createFileNameWithIcon.d.ts +6 -2
  122. package/types/src/blocks/File/helpers/render/createResizableFileBlockWrapper.d.ts +31 -0
  123. package/types/src/blocks/Heading/block.d.ts +71 -0
  124. package/types/src/blocks/Image/block.d.ts +102 -0
  125. package/types/src/blocks/ListItem/BulletListItem/block.d.ts +25 -0
  126. package/types/src/blocks/ListItem/CheckListItem/block.d.ts +33 -0
  127. package/types/src/blocks/ListItem/NumberedListItem/IndexingPlugin.d.ts +8 -0
  128. package/types/src/blocks/ListItem/NumberedListItem/block.d.ts +33 -0
  129. package/types/src/blocks/ListItem/ToggleListItem/block.d.ts +25 -0
  130. package/types/src/blocks/PageBreak/block.d.ts +11 -0
  131. package/types/src/blocks/{PageBreakBlockContent → PageBreak}/getPageBreakSlashMenuItems.d.ts +4 -2
  132. package/types/src/blocks/Paragraph/block.d.ts +25 -0
  133. package/types/src/blocks/Quote/block.d.ts +17 -0
  134. package/types/src/blocks/Table/block.d.ts +21 -0
  135. package/types/src/blocks/Video/block.d.ts +67 -0
  136. package/types/src/blocks/defaultBlockHelpers.d.ts +1 -1
  137. package/types/src/blocks/defaultBlockTypeGuards.d.ts +15 -36
  138. package/types/src/blocks/defaultBlocks.d.ts +221 -1060
  139. package/types/src/blocks/defaultProps.d.ts +17 -1
  140. package/types/src/blocks/index.d.ts +24 -0
  141. package/types/src/blocks/utils/listItemEnterHandler.d.ts +2 -0
  142. package/types/src/editor/BlockNoteEditor.d.ts +36 -67
  143. package/types/src/editor/BlockNoteExtension.d.ts +67 -0
  144. package/types/src/editor/BlockNoteExtensions.d.ts +1 -1
  145. package/types/src/editor/defaultColors.d.ts +8 -76
  146. package/types/src/editor/managers/BlockManager.d.ts +114 -0
  147. package/types/src/editor/managers/CollaborationManager.d.ts +115 -0
  148. package/types/src/editor/managers/EventManager.d.ts +58 -0
  149. package/types/src/editor/managers/ExportManager.d.ts +64 -0
  150. package/types/src/editor/managers/ExtensionManager.d.ts +68 -0
  151. package/types/src/editor/managers/SelectionManager.d.ts +54 -0
  152. package/types/src/editor/managers/StateManager.d.ts +115 -0
  153. package/types/src/editor/managers/StyleManager.d.ts +48 -0
  154. package/types/src/editor/managers/index.d.ts +8 -0
  155. package/types/src/exporter/Exporter.d.ts +1 -1
  156. package/types/src/exporter/mapping.d.ts +1 -1
  157. package/types/src/extensions/BackgroundColor/BackgroundColorMark.d.ts +4 -1
  158. package/types/src/extensions/Collaboration/schemaMigration/SchemaMigrationPlugin.d.ts +7 -0
  159. package/types/src/extensions/Collaboration/schemaMigration/migrationRules/index.d.ts +3 -0
  160. package/types/src/extensions/Collaboration/schemaMigration/migrationRules/migrationRule.d.ts +3 -0
  161. package/types/src/extensions/Collaboration/schemaMigration/migrationRules/moveColorAttributes.d.ts +2 -0
  162. package/types/src/extensions/Comments/CommentsPlugin.d.ts +1 -1
  163. package/types/src/extensions/FilePanel/FilePanelPlugin.d.ts +4 -4
  164. package/types/src/extensions/TextColor/TextColorMark.d.ts +4 -1
  165. package/types/src/index.d.ts +2 -25
  166. package/types/src/schema/blocks/createSpec.d.ts +16 -36
  167. package/types/src/schema/blocks/internal.d.ts +11 -33
  168. package/types/src/schema/blocks/types.d.ts +181 -57
  169. package/types/src/schema/index.d.ts +1 -0
  170. package/types/src/schema/inlineContent/createSpec.d.ts +36 -2
  171. package/types/src/schema/inlineContent/internal.d.ts +7 -15
  172. package/types/src/schema/inlineContent/types.d.ts +15 -1
  173. package/types/src/schema/propTypes.d.ts +4 -4
  174. package/types/src/schema/schema.d.ts +40 -0
  175. package/types/src/schema/styles/createSpec.d.ts +6 -4
  176. package/types/src/schema/styles/internal.d.ts +6 -3
  177. package/types/src/schema/styles/types.d.ts +11 -2
  178. package/types/src/util/topo-sort.d.ts +18 -0
  179. package/types/src/util/topo-sort.test.d.ts +1 -0
  180. package/dist/tsconfig.tsbuildinfo +0 -1
  181. package/src/blocks/AudioBlockContent/AudioBlockContent.ts +0 -144
  182. package/src/blocks/CodeBlockContent/CodeBlockContent.ts +0 -445
  183. package/src/blocks/FileBlockContent/FileBlockContent.ts +0 -100
  184. package/src/blocks/HeadingBlockContent/HeadingBlockContent.ts +0 -159
  185. package/src/blocks/ImageBlockContent/ImageBlockContent.ts +0 -159
  186. package/src/blocks/ListItemBlockContent/BulletListItemBlockContent/BulletListItemBlockContent.ts +0 -134
  187. package/src/blocks/ListItemBlockContent/CheckListItemBlockContent/CheckListItemBlockContent.ts +0 -299
  188. package/src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListIndexingPlugin.ts +0 -86
  189. package/src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListItemBlockContent.ts +0 -172
  190. package/src/blocks/ListItemBlockContent/ToggleListItemBlockContent/ToggleListItemBlockContent.ts +0 -104
  191. package/src/blocks/PageBreakBlockContent/PageBreakBlockContent.ts +0 -49
  192. package/src/blocks/PageBreakBlockContent/schema.ts +0 -40
  193. package/src/blocks/ParagraphBlockContent/ParagraphBlockContent.ts +0 -78
  194. package/src/blocks/QuoteBlockContent/QuoteBlockContent.ts +0 -121
  195. package/src/blocks/VideoBlockContent/VideoBlockContent.ts +0 -158
  196. package/src/editor/BlockNoteSchema.ts +0 -107
  197. package/src/editor/BlockNoteTipTapEditor.ts +0 -335
  198. package/types/src/blocks/AudioBlockContent/AudioBlockContent.d.ts +0 -99
  199. package/types/src/blocks/FileBlockContent/FileBlockContent.d.ts +0 -90
  200. package/types/src/blocks/FileBlockContent/helpers/render/createAddFileButton.d.ts +0 -6
  201. package/types/src/blocks/FileBlockContent/helpers/render/createFileBlockWrapper.d.ts +0 -9
  202. package/types/src/blocks/FileBlockContent/helpers/render/createResizableFileBlockWrapper.d.ts +0 -9
  203. package/types/src/blocks/HeadingBlockContent/HeadingBlockContent.d.ts +0 -67
  204. package/types/src/blocks/ImageBlockContent/ImageBlockContent.d.ts +0 -131
  205. package/types/src/blocks/ListItemBlockContent/BulletListItemBlockContent/BulletListItemBlockContent.d.ts +0 -46
  206. package/types/src/blocks/ListItemBlockContent/CheckListItemBlockContent/CheckListItemBlockContent.d.ts +0 -55
  207. package/types/src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListIndexingPlugin.d.ts +0 -2
  208. package/types/src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListItemBlockContent.d.ts +0 -58
  209. package/types/src/blocks/ListItemBlockContent/ToggleListItemBlockContent/ToggleListItemBlockContent.d.ts +0 -46
  210. package/types/src/blocks/PageBreakBlockContent/PageBreakBlockContent.d.ts +0 -31
  211. package/types/src/blocks/PageBreakBlockContent/schema.d.ts +0 -86
  212. package/types/src/blocks/ParagraphBlockContent/ParagraphBlockContent.d.ts +0 -52
  213. package/types/src/blocks/QuoteBlockContent/QuoteBlockContent.d.ts +0 -52
  214. package/types/src/blocks/TableBlockContent/TableBlockContent.d.ts +0 -39
  215. package/types/src/blocks/VideoBlockContent/VideoBlockContent.d.ts +0 -131
  216. package/types/src/editor/BlockNoteSchema.d.ts +0 -34
  217. package/types/src/editor/BlockNoteTipTapEditor.d.ts +0 -43
  218. /package/src/blocks/{AudioBlockContent → Audio}/parseAudioElement.ts +0 -0
  219. /package/src/blocks/{FileBlockContent → File}/helpers/parse/parseEmbedElement.ts +0 -0
  220. /package/src/blocks/{FileBlockContent → File}/helpers/parse/parseFigureElement.ts +0 -0
  221. /package/src/blocks/{FileBlockContent → File}/helpers/toExternalHTML/createFigureWithCaption.ts +0 -0
  222. /package/src/blocks/{FileBlockContent → File}/helpers/toExternalHTML/createLinkWithCaption.ts +0 -0
  223. /package/src/blocks/{FileBlockContent → File/helpers}/uploadToTmpFilesDotOrg_DEV_ONLY.ts +0 -0
  224. /package/src/blocks/{ImageBlockContent → Image}/parseImageElement.ts +0 -0
  225. /package/src/blocks/{ListItemBlockContent → ListItem}/ListItemKeyboardShortcuts.ts +0 -0
  226. /package/src/blocks/{ListItemBlockContent → ListItem}/getListItemContent.ts +0 -0
  227. /package/src/blocks/{TableBlockContent → Table}/TableExtension.ts +0 -0
  228. /package/src/blocks/{VideoBlockContent → Video}/parseVideoElement.ts +0 -0
  229. /package/types/src/blocks/{AudioBlockContent → Audio}/parseAudioElement.d.ts +0 -0
  230. /package/types/src/blocks/{FileBlockContent → File}/helpers/parse/parseEmbedElement.d.ts +0 -0
  231. /package/types/src/blocks/{FileBlockContent → File}/helpers/parse/parseFigureElement.d.ts +0 -0
  232. /package/types/src/blocks/{FileBlockContent → File}/helpers/toExternalHTML/createFigureWithCaption.d.ts +0 -0
  233. /package/types/src/blocks/{FileBlockContent → File}/helpers/toExternalHTML/createLinkWithCaption.d.ts +0 -0
  234. /package/types/src/blocks/{FileBlockContent → File/helpers}/uploadToTmpFilesDotOrg_DEV_ONLY.d.ts +0 -0
  235. /package/types/src/blocks/{ImageBlockContent → Image}/parseImageElement.d.ts +0 -0
  236. /package/types/src/blocks/{ListItemBlockContent → ListItem}/ListItemKeyboardShortcuts.d.ts +0 -0
  237. /package/types/src/blocks/{ListItemBlockContent → ListItem}/getListItemContent.d.ts +0 -0
  238. /package/types/src/blocks/{TableBlockContent → Table}/TableExtension.d.ts +0 -0
  239. /package/types/src/blocks/{VideoBlockContent → Video}/parseVideoElement.d.ts +0 -0
@@ -1,131 +0,0 @@
1
- import type { BlockNoteEditor } from "../../editor/BlockNoteEditor.js";
2
- import { BlockFromConfig, Props } from "../../schema/index.js";
3
- export declare const FILE_IMAGE_ICON_SVG = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M5 11.1005L7 9.1005L12.5 14.6005L16 11.1005L19 14.1005V5H5V11.1005ZM4 3H20C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3ZM15.5 10C14.6716 10 14 9.32843 14 8.5C14 7.67157 14.6716 7 15.5 7C16.3284 7 17 7.67157 17 8.5C17 9.32843 16.3284 10 15.5 10Z\"></path></svg>";
4
- export declare const imagePropSchema: {
5
- textAlignment: {
6
- default: "left";
7
- values: readonly ["left", "center", "right", "justify"];
8
- };
9
- backgroundColor: {
10
- default: "default";
11
- };
12
- name: {
13
- default: "";
14
- };
15
- url: {
16
- default: "";
17
- };
18
- caption: {
19
- default: "";
20
- };
21
- showPreview: {
22
- default: true;
23
- };
24
- previewWidth: {
25
- default: undefined;
26
- type: "number";
27
- };
28
- };
29
- export declare const imageBlockConfig: {
30
- type: "image";
31
- propSchema: {
32
- textAlignment: {
33
- default: "left";
34
- values: readonly ["left", "center", "right", "justify"];
35
- };
36
- backgroundColor: {
37
- default: "default";
38
- };
39
- name: {
40
- default: "";
41
- };
42
- url: {
43
- default: "";
44
- };
45
- caption: {
46
- default: "";
47
- };
48
- showPreview: {
49
- default: true;
50
- };
51
- previewWidth: {
52
- default: undefined;
53
- type: "number";
54
- };
55
- };
56
- content: "none";
57
- isFileBlock: true;
58
- fileBlockAccept: string[];
59
- };
60
- export declare const imageRender: (block: BlockFromConfig<typeof imageBlockConfig, any, any>, editor: BlockNoteEditor<any, any, any>) => {
61
- dom: HTMLElement;
62
- destroy: () => void;
63
- };
64
- export declare const imageParse: (element: HTMLElement) => Partial<Props<typeof imageBlockConfig.propSchema>> | undefined;
65
- export declare const imageToExternalHTML: (block: BlockFromConfig<typeof imageBlockConfig, any, any>) => {
66
- dom: HTMLElement;
67
- };
68
- export declare const ImageBlock: {
69
- config: {
70
- type: "image";
71
- propSchema: {
72
- textAlignment: {
73
- default: "left";
74
- values: readonly ["left", "center", "right", "justify"];
75
- };
76
- backgroundColor: {
77
- default: "default";
78
- };
79
- name: {
80
- default: "";
81
- };
82
- url: {
83
- default: "";
84
- };
85
- caption: {
86
- default: "";
87
- };
88
- showPreview: {
89
- default: true;
90
- };
91
- previewWidth: {
92
- default: undefined;
93
- type: "number";
94
- };
95
- };
96
- content: "none";
97
- isFileBlock: true;
98
- fileBlockAccept: string[];
99
- };
100
- implementation: import("../../index.js").TiptapBlockImplementation<{
101
- type: "image";
102
- propSchema: {
103
- textAlignment: {
104
- default: "left";
105
- values: readonly ["left", "center", "right", "justify"];
106
- };
107
- backgroundColor: {
108
- default: "default";
109
- };
110
- name: {
111
- default: "";
112
- };
113
- url: {
114
- default: "";
115
- };
116
- caption: {
117
- default: "";
118
- };
119
- showPreview: {
120
- default: true;
121
- };
122
- previewWidth: {
123
- default: undefined;
124
- type: "number";
125
- };
126
- };
127
- content: "none";
128
- isFileBlock: true;
129
- fileBlockAccept: string[];
130
- }, any, import("../../index.js").InlineContentSchema, import("../../index.js").StyleSchema>;
131
- };
@@ -1,46 +0,0 @@
1
- export declare const bulletListItemPropSchema: {
2
- backgroundColor: {
3
- default: "default";
4
- };
5
- textColor: {
6
- default: "default";
7
- };
8
- textAlignment: {
9
- default: "left";
10
- values: readonly ["left", "center", "right", "justify"];
11
- };
12
- };
13
- export declare const BulletListItem: {
14
- config: {
15
- type: "bulletListItem";
16
- content: "inline";
17
- propSchema: {
18
- backgroundColor: {
19
- default: "default";
20
- };
21
- textColor: {
22
- default: "default";
23
- };
24
- textAlignment: {
25
- default: "left";
26
- values: readonly ["left", "center", "right", "justify"];
27
- };
28
- };
29
- };
30
- implementation: import("../../../index.js").TiptapBlockImplementation<{
31
- type: "bulletListItem";
32
- content: "inline";
33
- propSchema: {
34
- backgroundColor: {
35
- default: "default";
36
- };
37
- textColor: {
38
- default: "default";
39
- };
40
- textAlignment: {
41
- default: "left";
42
- values: readonly ["left", "center", "right", "justify"];
43
- };
44
- };
45
- }, any, import("../../../index.js").InlineContentSchema, import("../../../index.js").StyleSchema>;
46
- };
@@ -1,55 +0,0 @@
1
- export declare const checkListItemPropSchema: {
2
- checked: {
3
- default: false;
4
- };
5
- backgroundColor: {
6
- default: "default";
7
- };
8
- textColor: {
9
- default: "default";
10
- };
11
- textAlignment: {
12
- default: "left";
13
- values: readonly ["left", "center", "right", "justify"];
14
- };
15
- };
16
- export declare const CheckListItem: {
17
- config: {
18
- type: "checkListItem";
19
- content: "inline";
20
- propSchema: {
21
- checked: {
22
- default: false;
23
- };
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
- };
36
- implementation: import("../../../index.js").TiptapBlockImplementation<{
37
- type: "checkListItem";
38
- content: "inline";
39
- propSchema: {
40
- checked: {
41
- default: false;
42
- };
43
- backgroundColor: {
44
- default: "default";
45
- };
46
- textColor: {
47
- default: "default";
48
- };
49
- textAlignment: {
50
- default: "left";
51
- values: readonly ["left", "center", "right", "justify"];
52
- };
53
- };
54
- }, any, import("../../../index.js").InlineContentSchema, import("../../../index.js").StyleSchema>;
55
- };
@@ -1,2 +0,0 @@
1
- import { Plugin } from "prosemirror-state";
2
- export declare const NumberedListIndexingPlugin: () => Plugin<any>;
@@ -1,58 +0,0 @@
1
- export declare const numberedListItemPropSchema: {
2
- start: {
3
- default: undefined;
4
- type: "number";
5
- };
6
- backgroundColor: {
7
- default: "default";
8
- };
9
- textColor: {
10
- default: "default";
11
- };
12
- textAlignment: {
13
- default: "left";
14
- values: readonly ["left", "center", "right", "justify"];
15
- };
16
- };
17
- export declare const NumberedListItem: {
18
- config: {
19
- type: "numberedListItem";
20
- content: "inline";
21
- propSchema: {
22
- start: {
23
- default: undefined;
24
- type: "number";
25
- };
26
- backgroundColor: {
27
- default: "default";
28
- };
29
- textColor: {
30
- default: "default";
31
- };
32
- textAlignment: {
33
- default: "left";
34
- values: readonly ["left", "center", "right", "justify"];
35
- };
36
- };
37
- };
38
- implementation: import("../../../index.js").TiptapBlockImplementation<{
39
- type: "numberedListItem";
40
- content: "inline";
41
- propSchema: {
42
- start: {
43
- default: undefined;
44
- type: "number";
45
- };
46
- backgroundColor: {
47
- default: "default";
48
- };
49
- textColor: {
50
- default: "default";
51
- };
52
- textAlignment: {
53
- default: "left";
54
- values: readonly ["left", "center", "right", "justify"];
55
- };
56
- };
57
- }, any, import("../../../index.js").InlineContentSchema, import("../../../index.js").StyleSchema>;
58
- };
@@ -1,46 +0,0 @@
1
- export declare const toggleListItemPropSchema: {
2
- backgroundColor: {
3
- default: "default";
4
- };
5
- textColor: {
6
- default: "default";
7
- };
8
- textAlignment: {
9
- default: "left";
10
- values: readonly ["left", "center", "right", "justify"];
11
- };
12
- };
13
- export declare const ToggleListItem: {
14
- config: {
15
- type: "toggleListItem";
16
- content: "inline";
17
- propSchema: {
18
- backgroundColor: {
19
- default: "default";
20
- };
21
- textColor: {
22
- default: "default";
23
- };
24
- textAlignment: {
25
- default: "left";
26
- values: readonly ["left", "center", "right", "justify"];
27
- };
28
- };
29
- };
30
- implementation: import("../../../index.js").TiptapBlockImplementation<{
31
- type: "toggleListItem";
32
- content: "inline";
33
- propSchema: {
34
- backgroundColor: {
35
- default: "default";
36
- };
37
- textColor: {
38
- default: "default";
39
- };
40
- textAlignment: {
41
- default: "left";
42
- values: readonly ["left", "center", "right", "justify"];
43
- };
44
- };
45
- }, any, import("../../../index.js").InlineContentSchema, import("../../../index.js").StyleSchema>;
46
- };
@@ -1,31 +0,0 @@
1
- import { Props } from "../../schema/index.js";
2
- export declare const pageBreakConfig: {
3
- type: "pageBreak";
4
- propSchema: {};
5
- content: "none";
6
- isFileBlock: false;
7
- isSelectable: false;
8
- };
9
- export declare const pageBreakRender: () => {
10
- dom: HTMLDivElement;
11
- };
12
- export declare const pageBreakParse: (element: HTMLElement) => Partial<Props<typeof pageBreakConfig.propSchema>> | undefined;
13
- export declare const pageBreakToExternalHTML: () => {
14
- dom: HTMLDivElement;
15
- };
16
- export declare const PageBreak: {
17
- config: {
18
- type: "pageBreak";
19
- propSchema: {};
20
- content: "none";
21
- isFileBlock: false;
22
- isSelectable: false;
23
- };
24
- implementation: import("../../index.js").TiptapBlockImplementation<{
25
- type: "pageBreak";
26
- propSchema: {};
27
- content: "none";
28
- isFileBlock: false;
29
- isSelectable: false;
30
- }, any, import("../../index.js").InlineContentSchema, import("../../index.js").StyleSchema>;
31
- };
@@ -1,86 +0,0 @@
1
- import { BlockNoteSchema } from "../../editor/BlockNoteSchema.js";
2
- import { BlockSchema, InlineContentSchema, StyleSchema } from "../../schema/index.js";
3
- import { PageBreak } from "./PageBreakBlockContent.js";
4
- export declare const pageBreakSchema: BlockNoteSchema<import("../../index.js").BlockSchemaFromSpecs<{
5
- pageBreak: {
6
- config: {
7
- type: "pageBreak";
8
- propSchema: {};
9
- content: "none";
10
- isFileBlock: false;
11
- isSelectable: false;
12
- };
13
- implementation: import("../../index.js").TiptapBlockImplementation<{
14
- type: "pageBreak";
15
- propSchema: {};
16
- content: "none";
17
- isFileBlock: false;
18
- isSelectable: false;
19
- }, any, InlineContentSchema, StyleSchema>;
20
- };
21
- }>, import("../../index.js").InlineContentSchemaFromSpecs<{
22
- text: {
23
- config: "text";
24
- implementation: any;
25
- };
26
- link: {
27
- config: "link";
28
- implementation: any;
29
- };
30
- }>, import("../../index.js").StyleSchemaFromSpecs<{
31
- bold: {
32
- config: {
33
- type: string;
34
- propSchema: "boolean";
35
- };
36
- implementation: import("../../index.js").StyleImplementation;
37
- };
38
- italic: {
39
- config: {
40
- type: string;
41
- propSchema: "boolean";
42
- };
43
- implementation: import("../../index.js").StyleImplementation;
44
- };
45
- underline: {
46
- config: {
47
- type: string;
48
- propSchema: "boolean";
49
- };
50
- implementation: import("../../index.js").StyleImplementation;
51
- };
52
- strike: {
53
- config: {
54
- type: string;
55
- propSchema: "boolean";
56
- };
57
- implementation: import("../../index.js").StyleImplementation;
58
- };
59
- code: {
60
- config: {
61
- type: string;
62
- propSchema: "boolean";
63
- };
64
- implementation: import("../../index.js").StyleImplementation;
65
- };
66
- textColor: {
67
- config: {
68
- type: string;
69
- propSchema: "string";
70
- };
71
- implementation: import("../../index.js").StyleImplementation;
72
- };
73
- backgroundColor: {
74
- config: {
75
- type: string;
76
- propSchema: "string";
77
- };
78
- implementation: import("../../index.js").StyleImplementation;
79
- };
80
- }>>;
81
- /**
82
- * Adds page break support to the given schema.
83
- */
84
- export declare const withPageBreak: <B extends BlockSchema, I extends InlineContentSchema, S extends StyleSchema>(schema: BlockNoteSchema<B, I, S>) => BlockNoteSchema<B & {
85
- pageBreak: typeof PageBreak.config;
86
- }, I, S>;
@@ -1,52 +0,0 @@
1
- export declare const paragraphPropSchema: {
2
- backgroundColor: {
3
- default: "default";
4
- };
5
- textColor: {
6
- default: "default";
7
- };
8
- textAlignment: {
9
- default: "left";
10
- values: readonly ["left", "center", "right", "justify"];
11
- };
12
- };
13
- export declare const ParagraphBlockContent: import("@tiptap/core").Node<any, any> & {
14
- name: "paragraph";
15
- config: {
16
- content: "inline*";
17
- };
18
- };
19
- export declare const Paragraph: {
20
- config: {
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
- };
36
- implementation: import("../../index.js").TiptapBlockImplementation<{
37
- type: "paragraph";
38
- content: "inline";
39
- propSchema: {
40
- backgroundColor: {
41
- default: "default";
42
- };
43
- textColor: {
44
- default: "default";
45
- };
46
- textAlignment: {
47
- default: "left";
48
- values: readonly ["left", "center", "right", "justify"];
49
- };
50
- };
51
- }, any, import("../../index.js").InlineContentSchema, import("../../index.js").StyleSchema>;
52
- };
@@ -1,52 +0,0 @@
1
- export declare const quotePropSchema: {
2
- backgroundColor: {
3
- default: "default";
4
- };
5
- textColor: {
6
- default: "default";
7
- };
8
- textAlignment: {
9
- default: "left";
10
- values: readonly ["left", "center", "right", "justify"];
11
- };
12
- };
13
- export declare const QuoteBlockContent: import("@tiptap/core").Node<any, any> & {
14
- name: "quote";
15
- config: {
16
- content: "inline*";
17
- };
18
- };
19
- export declare const Quote: {
20
- config: {
21
- type: "quote";
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
- };
36
- implementation: import("../../index.js").TiptapBlockImplementation<{
37
- type: "quote";
38
- content: "inline";
39
- propSchema: {
40
- backgroundColor: {
41
- default: "default";
42
- };
43
- textColor: {
44
- default: "default";
45
- };
46
- textAlignment: {
47
- default: "left";
48
- values: readonly ["left", "center", "right", "justify"];
49
- };
50
- };
51
- }, any, import("../../index.js").InlineContentSchema, import("../../index.js").StyleSchema>;
52
- };
@@ -1,39 +0,0 @@
1
- import { Node } from "@tiptap/core";
2
- export declare const tablePropSchema: {
3
- textColor: {
4
- default: "default";
5
- };
6
- };
7
- export declare const TableBlockContent: Node<any, any> & {
8
- name: "table";
9
- config: {
10
- content: "tableRow+";
11
- };
12
- };
13
- /**
14
- * This extension allows you to create table rows.
15
- * @see https://www.tiptap.dev/api/nodes/table-row
16
- */
17
- export declare const TableRow: Node<{
18
- HTMLAttributes: Record<string, any>;
19
- }, any>;
20
- export declare const Table: {
21
- config: {
22
- type: "table";
23
- content: "table";
24
- propSchema: {
25
- textColor: {
26
- default: "default";
27
- };
28
- };
29
- };
30
- implementation: import("../../index.js").TiptapBlockImplementation<{
31
- type: "table";
32
- content: "table";
33
- propSchema: {
34
- textColor: {
35
- default: "default";
36
- };
37
- };
38
- }, any, import("../../index.js").InlineContentSchema, import("../../index.js").StyleSchema>;
39
- };