@blocknote/core 0.25.2 → 0.27.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 (153) hide show
  1. package/dist/blocknote.cjs +11 -10
  2. package/dist/blocknote.cjs.map +1 -1
  3. package/dist/blocknote.js +3722 -9856
  4. package/dist/blocknote.js.map +1 -1
  5. package/dist/comments.cjs +1 -1
  6. package/dist/comments.cjs.map +1 -1
  7. package/dist/comments.js +45 -44
  8. package/dist/comments.js.map +1 -1
  9. package/dist/en-B7ycW7c8.js +360 -0
  10. package/dist/en-B7ycW7c8.js.map +1 -0
  11. package/dist/en-D4taoCs4.cjs +2 -0
  12. package/dist/en-D4taoCs4.cjs.map +1 -0
  13. package/dist/locales.cjs +2 -0
  14. package/dist/locales.cjs.map +1 -0
  15. package/dist/locales.js +6129 -0
  16. package/dist/locales.js.map +1 -0
  17. package/dist/style.css +1 -1
  18. package/dist/tsconfig.tsbuildinfo +1 -1
  19. package/dist/webpack-stats.json +1 -1
  20. package/package.json +36 -27
  21. package/src/api/clipboard/__snapshots__/internal/basicBlocks.html +1 -1
  22. package/src/api/clipboard/__snapshots__/internal/basicBlocksWithProps.html +1 -1
  23. package/src/api/clipboard/clipboardExternal.test.ts +1 -1
  24. package/src/api/clipboard/clipboardInternal.test.ts +1 -1
  25. package/src/api/clipboard/fromClipboard/acceptedMIMETypes.ts +1 -0
  26. package/src/api/clipboard/fromClipboard/pasteExtension.ts +96 -42
  27. package/src/api/exporters/html/__snapshots__/codeBlock/contains-newlines/external.html +1 -1
  28. package/src/api/exporters/html/__snapshots__/codeBlock/contains-newlines/internal.html +1 -1
  29. package/src/api/exporters/html/__snapshots__/codeBlock/defaultLanguage/external.html +1 -1
  30. package/src/api/exporters/html/__snapshots__/codeBlock/defaultLanguage/internal.html +1 -1
  31. package/src/api/exporters/html/__snapshots__/codeBlock/empty/external.html +1 -1
  32. package/src/api/exporters/html/__snapshots__/codeBlock/empty/internal.html +1 -1
  33. package/src/api/exporters/html/__snapshots__/codeBlock/python/external.html +1 -1
  34. package/src/api/exporters/html/__snapshots__/codeBlock/python/internal.html +1 -1
  35. package/src/api/exporters/html/htmlConversion.test.ts +2 -2
  36. package/src/api/exporters/html/util/serializeBlocksExternalHTML.ts +4 -4
  37. package/src/api/exporters/markdown/__snapshots__/codeBlock/defaultLanguage/markdown.md +1 -1
  38. package/src/api/exporters/markdown/__snapshots__/codeBlock/empty/markdown.md +1 -1
  39. package/src/api/exporters/markdown/__snapshots__/complex/misc/markdown.md +1 -1
  40. package/src/api/exporters/markdown/__snapshots__/lists/basic/markdown.md +8 -6
  41. package/src/api/exporters/markdown/__snapshots__/lists/nested/markdown.md +6 -6
  42. package/src/api/exporters/markdown/markdownExporter.test.ts +2 -2
  43. package/src/api/nodeConversions/__snapshots__/nodeConversions.test.ts.snap +2 -2
  44. package/src/api/nodeConversions/nodeToBlock.ts +1 -0
  45. package/src/api/parsers/html/__snapshots__/parse-2-tables.json +129 -0
  46. package/src/api/parsers/html/__snapshots__/parse-codeblocks.json +1 -1
  47. package/src/api/parsers/html/parseHTML.test.ts +36 -1
  48. package/src/api/parsers/markdown/__snapshots__/pasted/whitespace bold.json +42 -0
  49. package/src/api/parsers/markdown/__snapshots__/whitespace bold.json +19 -0
  50. package/src/api/parsers/markdown/detectMarkdown.ts +60 -0
  51. package/src/api/parsers/markdown/parseMarkdown.test.ts +7 -2
  52. package/src/api/parsers/markdown/parseMarkdown.ts +19 -18
  53. package/src/api/testUtil/cases/defaultSchema.ts +13 -0
  54. package/src/blocks/CodeBlockContent/CodeBlockContent.ts +100 -69
  55. package/src/blocks/QuoteBlockContent/QuoteBlockContent.ts +98 -0
  56. package/src/blocks/TableBlockContent/TableExtension.ts +1 -1
  57. package/src/blocks/defaultBlocks.ts +2 -2
  58. package/src/comments/threadstore/yjs/YjsThreadStore.ts +1 -0
  59. package/src/comments/threadstore/yjs/yjsHelpers.ts +3 -1
  60. package/src/comments/types.ts +4 -0
  61. package/src/editor/Block.css +14 -1
  62. package/src/editor/BlockNoteEditor.ts +103 -11
  63. package/src/editor/BlockNoteExtensions.ts +18 -4
  64. package/src/editor/BlockNoteTipTapEditor.ts +18 -7
  65. package/src/extensions/Comments/CommentsPlugin.ts +77 -30
  66. package/src/extensions/HardBreak/HardBreak.ts +35 -0
  67. package/src/extensions/KeyboardShortcuts/KeyboardShortcutsExtension.ts +100 -3
  68. package/src/extensions/SideMenu/dragging.ts +13 -0
  69. package/src/extensions/SuggestionMenu/SuggestionPlugin.ts +3 -1
  70. package/src/extensions/SuggestionMenu/getDefaultSlashMenuItems.ts +18 -2
  71. package/src/extensions/TableHandles/TableHandlesPlugin.ts +24 -23
  72. package/src/i18n/index.ts +2 -0
  73. package/src/i18n/locales/ar.ts +10 -0
  74. package/src/i18n/locales/de.ts +21 -1
  75. package/src/i18n/locales/en.ts +10 -0
  76. package/src/i18n/locales/es.ts +21 -1
  77. package/src/i18n/locales/fr.ts +10 -0
  78. package/src/i18n/locales/hr.ts +27 -4
  79. package/src/i18n/locales/is.ts +10 -0
  80. package/src/i18n/locales/it.ts +21 -1
  81. package/src/i18n/locales/ja.ts +10 -0
  82. package/src/i18n/locales/ko.ts +10 -0
  83. package/src/i18n/locales/nl.ts +10 -0
  84. package/src/i18n/locales/no.ts +10 -0
  85. package/src/i18n/locales/pl.ts +10 -0
  86. package/src/i18n/locales/pt.ts +10 -0
  87. package/src/i18n/locales/ru.ts +10 -0
  88. package/src/i18n/locales/uk.ts +10 -0
  89. package/src/i18n/locales/vi.ts +10 -0
  90. package/src/i18n/locales/zh.ts +10 -0
  91. package/src/index.ts +2 -3
  92. package/src/locales.ts +1 -0
  93. package/src/schema/blocks/types.ts +1 -0
  94. package/types/src/api/blockManipulation/commands/updateBlock/updateBlock.d.ts +1 -1
  95. package/types/src/api/blockManipulation/setupTestEnv.d.ts +34 -2
  96. package/types/src/api/clipboard/fromClipboard/acceptedMIMETypes.d.ts +1 -1
  97. package/types/src/api/clipboard/fromClipboard/fileDropExtension.d.ts +2 -2
  98. package/types/src/api/clipboard/fromClipboard/pasteExtension.d.ts +3 -3
  99. package/types/src/api/clipboard/testUtil.d.ts +66 -34
  100. package/types/src/api/clipboard/toClipboard/copyExtension.d.ts +1 -1
  101. package/types/src/api/exporters/html/externalHTMLExporter.d.ts +2 -2
  102. package/types/src/api/exporters/html/internalHTMLSerializer.d.ts +2 -2
  103. package/types/src/api/exporters/html/util/serializeBlocksExternalHTML.d.ts +1 -1
  104. package/types/src/api/exporters/html/util/serializeBlocksInternalHTML.d.ts +1 -1
  105. package/types/src/api/parsers/markdown/detectMarkdown.d.ts +6 -0
  106. package/types/src/api/parsers/markdown/parseMarkdown.d.ts +1 -0
  107. package/types/src/api/testUtil/cases/customBlocks.d.ts +72 -40
  108. package/types/src/api/testUtil/cases/customInlineContent.d.ts +34 -2
  109. package/types/src/api/testUtil/cases/customStyles.d.ts +34 -2
  110. package/types/src/blocks/AudioBlockContent/AudioBlockContent.d.ts +3 -3
  111. package/types/src/blocks/CodeBlockContent/CodeBlockContent.d.ts +46 -34
  112. package/types/src/blocks/FileBlockContent/FileBlockContent.d.ts +3 -3
  113. package/types/src/blocks/FileBlockContent/helpers/render/createFileBlockWrapper.d.ts +1 -1
  114. package/types/src/blocks/HeadingBlockContent/HeadingBlockContent.d.ts +2 -2
  115. package/types/src/blocks/ImageBlockContent/ImageBlockContent.d.ts +2 -2
  116. package/types/src/blocks/ListItemBlockContent/BulletListItemBlockContent/BulletListItemBlockContent.d.ts +2 -2
  117. package/types/src/blocks/ListItemBlockContent/CheckListItemBlockContent/CheckListItemBlockContent.d.ts +2 -2
  118. package/types/src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListItemBlockContent.d.ts +2 -2
  119. package/types/src/blocks/PageBreakBlockContent/PageBreakBlockContent.d.ts +2 -2
  120. package/types/src/blocks/PageBreakBlockContent/schema.d.ts +13 -13
  121. package/types/src/blocks/ParagraphBlockContent/ParagraphBlockContent.d.ts +2 -2
  122. package/types/src/blocks/QuoteBlockContent/QuoteBlockContent.d.ts +52 -0
  123. package/types/src/blocks/TableBlockContent/TableBlockContent.d.ts +2 -2
  124. package/types/src/blocks/VideoBlockContent/VideoBlockContent.d.ts +2 -2
  125. package/types/src/blocks/defaultBlockHelpers.d.ts +2 -2
  126. package/types/src/blocks/defaultBlocks.d.ts +107 -44
  127. package/types/src/comments/threadstore/yjs/YjsThreadStore.d.ts +3 -3
  128. package/types/src/comments/types.d.ts +4 -0
  129. package/types/src/editor/BlockNoteEditor.d.ts +58 -0
  130. package/types/src/editor/BlockNoteExtensions.d.ts +3 -2
  131. package/types/src/editor/BlockNoteTipTapEditor.d.ts +2 -1
  132. package/types/src/exporter/mapping.d.ts +2 -2
  133. package/types/src/extensions/BackgroundColor/BackgroundColorMark.d.ts +1 -1
  134. package/types/src/extensions/Collaboration/createCollaborationExtensions.d.ts +1 -1
  135. package/types/src/extensions/Comments/CommentsPlugin.d.ts +16 -1
  136. package/types/src/extensions/HardBreak/HardBreak.d.ts +2 -0
  137. package/types/src/extensions/TableHandles/TableHandlesPlugin.d.ts +4 -4
  138. package/types/src/extensions/TextColor/TextColorMark.d.ts +1 -1
  139. package/types/src/i18n/index.d.ts +2 -0
  140. package/types/src/i18n/locales/de.d.ts +2 -304
  141. package/types/src/i18n/locales/en.d.ts +11 -1
  142. package/types/src/i18n/locales/es.d.ts +2 -269
  143. package/types/src/i18n/locales/hr.d.ts +2 -266
  144. package/types/src/i18n/locales/it.d.ts +2 -269
  145. package/types/src/index.d.ts +1 -2
  146. package/types/src/locales.d.ts +1 -0
  147. package/types/src/pm-nodes/BlockContainer.d.ts +2 -7
  148. package/types/src/pm-nodes/BlockGroup.d.ts +2 -7
  149. package/types/src/schema/blocks/types.d.ts +1 -0
  150. package/types/src/schema/inlineContent/internal.d.ts +1 -1
  151. package/README.md +0 -125
  152. package/src/blocks/CodeBlockContent/defaultSupportedLanguages.ts +0 -116
  153. package/types/src/blocks/CodeBlockContent/shiki.bundle.d.ts +0 -82
@@ -1,266 +1,2 @@
1
- export declare const hr: {
2
- slash_menu: {
3
- heading: {
4
- title: string;
5
- subtext: string;
6
- aliases: string[];
7
- group: string;
8
- };
9
- heading_2: {
10
- title: string;
11
- subtext: string;
12
- aliases: string[];
13
- group: string;
14
- };
15
- heading_3: {
16
- title: string;
17
- subtext: string;
18
- aliases: string[];
19
- group: string;
20
- };
21
- numbered_list: {
22
- title: string;
23
- subtext: string;
24
- aliases: string[];
25
- group: string;
26
- };
27
- bullet_list: {
28
- title: string;
29
- subtext: string;
30
- aliases: string[];
31
- group: string;
32
- };
33
- check_list: {
34
- title: string;
35
- subtext: string;
36
- aliases: string[];
37
- group: string;
38
- };
39
- paragraph: {
40
- title: string;
41
- subtext: string;
42
- aliases: string[];
43
- group: string;
44
- };
45
- table: {
46
- title: string;
47
- subtext: string;
48
- aliases: string[];
49
- group: string;
50
- };
51
- page_break: {
52
- title: string;
53
- subtext: string;
54
- aliases: string[];
55
- group: string;
56
- };
57
- image: {
58
- title: string;
59
- subtext: string;
60
- aliases: string[];
61
- group: string;
62
- };
63
- video: {
64
- title: string;
65
- subtext: string;
66
- aliases: string[];
67
- group: string;
68
- };
69
- audio: {
70
- title: string;
71
- subtext: string;
72
- aliases: string[];
73
- group: string;
74
- };
75
- file: {
76
- title: string;
77
- subtext: string;
78
- aliases: string[];
79
- group: string;
80
- };
81
- emoji: {
82
- title: string;
83
- subtext: string;
84
- aliases: string[];
85
- group: string;
86
- };
87
- comment: {
88
- tooltip: string;
89
- };
90
- };
91
- placeholders: {
92
- default: string;
93
- heading: string;
94
- bulletListItem: string;
95
- numberedListItem: string;
96
- checkListItem: string;
97
- new_comment: string;
98
- edit_comment: string;
99
- comment_reply: string;
100
- };
101
- file_blocks: {
102
- image: {
103
- add_button_text: string;
104
- };
105
- video: {
106
- add_button_text: string;
107
- };
108
- audio: {
109
- add_button_text: string;
110
- };
111
- file: {
112
- add_button_text: string;
113
- };
114
- };
115
- side_menu: {
116
- add_block_label: string;
117
- drag_handle_label: string;
118
- };
119
- drag_handle: {
120
- delete_menuitem: string;
121
- colors_menuitem: string;
122
- };
123
- table_handle: {
124
- delete_column_menuitem: string;
125
- delete_row_menuitem: string;
126
- add_left_menuitem: string;
127
- add_right_menuitem: string;
128
- add_above_menuitem: string;
129
- add_below_menuitem: string;
130
- };
131
- suggestion_menu: {
132
- no_items_title: string;
133
- loading: string;
134
- };
135
- color_picker: {
136
- text_title: string;
137
- background_title: string;
138
- colors: {
139
- default: string;
140
- gray: string;
141
- brown: string;
142
- red: string;
143
- orange: string;
144
- yellow: string;
145
- green: string;
146
- blue: string;
147
- purple: string;
148
- pink: string;
149
- };
150
- };
151
- formatting_toolbar: {
152
- bold: {
153
- tooltip: string;
154
- secondary_tooltip: string;
155
- };
156
- italic: {
157
- tooltip: string;
158
- secondary_tooltip: string;
159
- };
160
- underline: {
161
- tooltip: string;
162
- secondary_tooltip: string;
163
- };
164
- strike: {
165
- tooltip: string;
166
- secondary_tooltip: string;
167
- };
168
- code: {
169
- tooltip: string;
170
- secondary_tooltip: string;
171
- };
172
- colors: {
173
- tooltip: string;
174
- };
175
- link: {
176
- tooltip: string;
177
- secondary_tooltip: string;
178
- };
179
- file_caption: {
180
- tooltip: string;
181
- input_placeholder: string;
182
- };
183
- file_replace: {
184
- tooltip: Record<string, string>;
185
- };
186
- file_rename: {
187
- tooltip: Record<string, string>;
188
- input_placeholder: Record<string, string>;
189
- };
190
- file_download: {
191
- tooltip: Record<string, string>;
192
- };
193
- file_delete: {
194
- tooltip: Record<string, string>;
195
- };
196
- file_preview_toggle: {
197
- tooltip: string;
198
- };
199
- nest: {
200
- tooltip: string;
201
- secondary_tooltip: string;
202
- };
203
- unnest: {
204
- tooltip: string;
205
- secondary_tooltip: string;
206
- };
207
- align_left: {
208
- tooltip: string;
209
- };
210
- align_center: {
211
- tooltip: string;
212
- };
213
- align_right: {
214
- tooltip: string;
215
- };
216
- align_justify: {
217
- tooltip: string;
218
- };
219
- comment: {
220
- tooltip: string;
221
- };
222
- };
223
- file_panel: {
224
- upload: {
225
- title: string;
226
- file_placeholder: Record<string, string>;
227
- upload_error: string;
228
- };
229
- embed: {
230
- title: string;
231
- embed_button: Record<string, string>;
232
- url_placeholder: string;
233
- };
234
- };
235
- link_toolbar: {
236
- delete: {
237
- tooltip: string;
238
- };
239
- edit: {
240
- text: string;
241
- tooltip: string;
242
- };
243
- open: {
244
- tooltip: string;
245
- };
246
- form: {
247
- title_placeholder: string;
248
- url_placeholder: string;
249
- };
250
- };
251
- comments: {
252
- actions: {
253
- add_reaction: string;
254
- resolve: string;
255
- edit_comment: string;
256
- delete_comment: string;
257
- more_actions: string;
258
- };
259
- reactions: {
260
- reacted_by: string;
261
- };
262
- };
263
- generic: {
264
- ctrl_shortcut: string;
265
- };
266
- };
1
+ import { Dictionary } from "../dictionary.js";
2
+ export declare const hr: Dictionary;
@@ -1,269 +1,2 @@
1
- export declare const it: {
2
- slash_menu: {
3
- heading: {
4
- title: string;
5
- subtext: string;
6
- aliases: string[];
7
- group: string;
8
- };
9
- heading_2: {
10
- title: string;
11
- subtext: string;
12
- aliases: string[];
13
- group: string;
14
- };
15
- heading_3: {
16
- title: string;
17
- subtext: string;
18
- aliases: string[];
19
- group: string;
20
- };
21
- numbered_list: {
22
- title: string;
23
- subtext: string;
24
- aliases: string[];
25
- group: string;
26
- };
27
- bullet_list: {
28
- title: string;
29
- subtext: string;
30
- aliases: string[];
31
- group: string;
32
- };
33
- check_list: {
34
- title: string;
35
- subtext: string;
36
- aliases: string[];
37
- group: string;
38
- };
39
- paragraph: {
40
- title: string;
41
- subtext: string;
42
- aliases: string[];
43
- group: string;
44
- };
45
- code_block: {
46
- title: string;
47
- subtext: string;
48
- aliases: string[];
49
- group: string;
50
- };
51
- page_break: {
52
- title: string;
53
- subtext: string;
54
- aliases: string[];
55
- group: string;
56
- };
57
- table: {
58
- title: string;
59
- subtext: string;
60
- aliases: string[];
61
- group: string;
62
- };
63
- image: {
64
- title: string;
65
- subtext: string;
66
- aliases: string[];
67
- group: string;
68
- };
69
- video: {
70
- title: string;
71
- subtext: string;
72
- aliases: string[];
73
- group: string;
74
- };
75
- audio: {
76
- title: string;
77
- subtext: string;
78
- aliases: string[];
79
- group: string;
80
- };
81
- file: {
82
- title: string;
83
- subtext: string;
84
- aliases: string[];
85
- group: string;
86
- };
87
- emoji: {
88
- title: string;
89
- subtext: string;
90
- aliases: string[];
91
- group: string;
92
- };
93
- };
94
- placeholders: {
95
- default: string;
96
- heading: string;
97
- bulletListItem: string;
98
- numberedListItem: string;
99
- checkListItem: string;
100
- new_comment: string;
101
- edit_comment: string;
102
- comment_reply: string;
103
- };
104
- file_blocks: {
105
- image: {
106
- add_button_text: string;
107
- };
108
- video: {
109
- add_button_text: string;
110
- };
111
- audio: {
112
- add_button_text: string;
113
- };
114
- file: {
115
- add_button_text: string;
116
- };
117
- };
118
- side_menu: {
119
- add_block_label: string;
120
- drag_handle_label: string;
121
- };
122
- drag_handle: {
123
- delete_menuitem: string;
124
- colors_menuitem: string;
125
- };
126
- table_handle: {
127
- delete_column_menuitem: string;
128
- delete_row_menuitem: string;
129
- add_left_menuitem: string;
130
- add_right_menuitem: string;
131
- add_above_menuitem: string;
132
- add_below_menuitem: string;
133
- };
134
- suggestion_menu: {
135
- no_items_title: string;
136
- loading: string;
137
- };
138
- color_picker: {
139
- text_title: string;
140
- background_title: string;
141
- colors: {
142
- default: string;
143
- gray: string;
144
- brown: string;
145
- red: string;
146
- orange: string;
147
- yellow: string;
148
- green: string;
149
- blue: string;
150
- purple: string;
151
- pink: string;
152
- };
153
- };
154
- formatting_toolbar: {
155
- bold: {
156
- tooltip: string;
157
- secondary_tooltip: string;
158
- };
159
- italic: {
160
- tooltip: string;
161
- secondary_tooltip: string;
162
- };
163
- underline: {
164
- tooltip: string;
165
- secondary_tooltip: string;
166
- };
167
- strike: {
168
- tooltip: string;
169
- secondary_tooltip: string;
170
- };
171
- code: {
172
- tooltip: string;
173
- secondary_tooltip: string;
174
- };
175
- colors: {
176
- tooltip: string;
177
- };
178
- link: {
179
- tooltip: string;
180
- secondary_tooltip: string;
181
- };
182
- file_caption: {
183
- tooltip: string;
184
- input_placeholder: string;
185
- };
186
- file_replace: {
187
- tooltip: Record<string, string>;
188
- };
189
- file_rename: {
190
- tooltip: Record<string, string>;
191
- input_placeholder: Record<string, string>;
192
- };
193
- file_download: {
194
- tooltip: Record<string, string>;
195
- };
196
- file_delete: {
197
- tooltip: Record<string, string>;
198
- };
199
- file_preview_toggle: {
200
- tooltip: string;
201
- };
202
- nest: {
203
- tooltip: string;
204
- secondary_tooltip: string;
205
- };
206
- unnest: {
207
- tooltip: string;
208
- secondary_tooltip: string;
209
- };
210
- align_left: {
211
- tooltip: string;
212
- };
213
- align_center: {
214
- tooltip: string;
215
- };
216
- align_right: {
217
- tooltip: string;
218
- };
219
- align_justify: {
220
- tooltip: string;
221
- };
222
- comment: {
223
- tooltip: string;
224
- };
225
- };
226
- file_panel: {
227
- upload: {
228
- title: string;
229
- file_placeholder: Record<string, string>;
230
- upload_error: string;
231
- };
232
- embed: {
233
- title: string;
234
- embed_button: Record<string, string>;
235
- url_placeholder: string;
236
- };
237
- };
238
- link_toolbar: {
239
- delete: {
240
- tooltip: string;
241
- };
242
- edit: {
243
- text: string;
244
- tooltip: string;
245
- };
246
- open: {
247
- tooltip: string;
248
- };
249
- form: {
250
- title_placeholder: string;
251
- url_placeholder: string;
252
- };
253
- };
254
- comments: {
255
- actions: {
256
- add_reaction: string;
257
- resolve: string;
258
- edit_comment: string;
259
- delete_comment: string;
260
- more_actions: string;
261
- };
262
- reactions: {
263
- reacted_by: string;
264
- };
265
- };
266
- generic: {
267
- ctrl_shortcut: string;
268
- };
269
- };
1
+ import { Dictionary } from "../dictionary.js";
2
+ export declare const it: Dictionary;
@@ -1,4 +1,3 @@
1
- import * as locales from "./i18n/locales/index.js";
2
1
  export * from "./api/blockManipulation/commands/updateBlock/updateBlock.js";
3
2
  export * from "./api/exporters/html/externalHTMLExporter.js";
4
3
  export * from "./api/exporters/html/internalHTMLSerializer.js";
@@ -53,8 +52,8 @@ export * from "./util/esmDependencies.js";
53
52
  export * from "./util/table.js";
54
53
  export * from "./util/string.js";
55
54
  export * from "./util/typescript.js";
55
+ export type { CodeBlockOptions } from "./blocks/CodeBlockContent/CodeBlockContent.js";
56
56
  export { UnreachableCaseError, assertEmpty } from "./util/typescript.js";
57
- export { locales };
58
57
  export * from "./api/nodeConversions/blockToNode.js";
59
58
  export * from "./api/nodeConversions/nodeToBlock.js";
60
59
  export * from "./api/testUtil/partialBlockTestUtil.js";
@@ -0,0 +1 @@
1
+ export * from "./i18n/index.js";
@@ -1,15 +1,10 @@
1
1
  import { Node } from "@tiptap/core";
2
2
  import type { BlockNoteEditor } from "../editor/BlockNoteEditor.js";
3
+ import { BlockNoteDOMAttributes } from "../schema/index.js";
3
4
  /**
4
5
  * The main "Block node" documents consist of
5
6
  */
6
7
  export declare const BlockContainer: Node<{
7
- domAttributes?: Partial<{
8
- editor: Record<string, string>;
9
- block: Record<string, string>;
10
- blockGroup: Record<string, string>;
11
- blockContent: Record<string, string>;
12
- inlineContent: Record<string, string>;
13
- }> | undefined;
8
+ domAttributes?: BlockNoteDOMAttributes;
14
9
  editor: BlockNoteEditor<any, any, any>;
15
10
  }, any>;
@@ -1,10 +1,5 @@
1
1
  import { Node } from "@tiptap/core";
2
+ import { BlockNoteDOMAttributes } from "../schema/index.js";
2
3
  export declare const BlockGroup: Node<{
3
- domAttributes?: Partial<{
4
- editor: Record<string, string>;
5
- block: Record<string, string>;
6
- blockGroup: Record<string, string>;
7
- blockContent: Record<string, string>;
8
- inlineContent: Record<string, string>;
9
- }> | undefined;
4
+ domAttributes?: BlockNoteDOMAttributes;
10
5
  }, any>;
@@ -38,6 +38,7 @@ export type BlockConfig = {
38
38
  content: "inline" | "none" | "table";
39
39
  isSelectable?: boolean;
40
40
  isFileBlock?: false;
41
+ hardBreakShortcut?: "shift+enter" | "enter" | "none";
41
42
  } | FileBlockConfig;
42
43
  export type TiptapBlockImplementation<T extends BlockConfig, B extends BlockSchema, I extends InlineContentSchema, S extends StyleSchema> = {
43
44
  requiredExtensions?: Array<Extension | Node>;
@@ -22,7 +22,7 @@ export declare function createInlineContentSpecFromTipTapNode<T extends Node, P
22
22
  content: "styled" | "none";
23
23
  };
24
24
  implementation: {
25
- node: Node<any, any>;
25
+ node: Node;
26
26
  };
27
27
  };
28
28
  export declare function getInlineContentSchemaFromSpecs<T extends InlineContentSpecs>(specs: T): InlineContentSchemaFromSpecs<T>;