@blocknote/core 0.37.0 → 0.39.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.
- package/dist/BlockNoteSchema-DmZ6UQfY.cjs +11 -0
- package/dist/BlockNoteSchema-DmZ6UQfY.cjs.map +1 -0
- package/dist/BlockNoteSchema-oR047ACf.js +4275 -0
- package/dist/BlockNoteSchema-oR047ACf.js.map +1 -0
- package/dist/blocknote.cjs +4 -12
- package/dist/blocknote.cjs.map +1 -1
- package/dist/blocknote.js +3311 -7230
- package/dist/blocknote.js.map +1 -1
- package/dist/blocks.cjs +2 -0
- package/dist/blocks.cjs.map +1 -0
- package/dist/blocks.js +71 -0
- package/dist/blocks.js.map +1 -0
- package/dist/{en-CvDoFvhc.js → en-Bq3Es3Np.js} +6 -12
- package/dist/en-Bq3Es3Np.js.map +1 -0
- package/dist/en-D3B48eJ7.cjs +2 -0
- package/dist/en-D3B48eJ7.cjs.map +1 -0
- package/dist/locales.cjs +1 -1
- package/dist/locales.cjs.map +1 -1
- package/dist/locales.js +109 -229
- package/dist/locales.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/webpack-stats.json +1 -1
- package/package.json +25 -22
- package/src/api/blockManipulation/commands/insertBlocks/insertBlocks.ts +1 -1
- package/src/api/blockManipulation/commands/replaceBlocks/replaceBlocks.ts +2 -2
- package/src/api/blockManipulation/commands/splitBlock/splitBlock.ts +34 -25
- package/src/api/blockManipulation/setupTestEnv.ts +0 -1
- package/src/api/clipboard/fromClipboard/handleFileInsertion.ts +4 -8
- package/src/api/clipboard/toClipboard/copyExtension.ts +1 -3
- package/src/api/exporters/html/externalHTMLExporter.ts +0 -1
- package/src/api/exporters/html/util/serializeBlocksExternalHTML.ts +128 -28
- package/src/api/exporters/html/util/serializeBlocksInternalHTML.ts +101 -41
- package/src/api/exporters/markdown/markdownExporter.ts +13 -22
- package/src/api/exporters/markdown/util/addSpacesToCheckboxesRehypePlugin.ts +2 -12
- package/src/api/parsers/html/parseHTML.ts +3 -2
- package/src/api/parsers/html/util/nestedLists.test.ts +8 -8
- package/src/api/parsers/markdown/parseMarkdown.ts +17 -14
- package/src/api/pmUtil.ts +1 -1
- package/src/api/positionMapping.test.ts +197 -33
- package/src/api/positionMapping.ts +4 -6
- package/src/blocks/Audio/block.ts +174 -0
- package/src/blocks/BlockNoteSchema.ts +59 -0
- package/src/blocks/Code/block.ts +303 -0
- package/src/blocks/Code/shiki.ts +73 -0
- package/src/blocks/File/block.ts +98 -0
- package/src/blocks/{FileBlockContent → File}/helpers/render/createAddFileButton.ts +8 -4
- package/src/blocks/{FileBlockContent → File}/helpers/render/createFileBlockWrapper.ts +16 -13
- package/src/blocks/{FileBlockContent → File}/helpers/render/createFileNameWithIcon.ts +15 -2
- package/src/blocks/{FileBlockContent → File}/helpers/render/createResizableFileBlockWrapper.ts +63 -19
- package/src/blocks/Heading/block.ts +138 -0
- package/src/blocks/Image/block.ts +190 -0
- package/src/blocks/ListItem/BulletListItem/block.ts +116 -0
- package/src/blocks/ListItem/CheckListItem/block.ts +175 -0
- package/src/blocks/ListItem/NumberedListItem/IndexingPlugin.ts +173 -0
- package/src/blocks/ListItem/NumberedListItem/block.ts +133 -0
- package/src/blocks/ListItem/ToggleListItem/block.ts +78 -0
- package/src/blocks/PageBreak/block.ts +72 -0
- package/src/blocks/{PageBreakBlockContent → PageBreak}/getPageBreakSlashMenuItems.ts +9 -7
- package/src/blocks/Paragraph/block.ts +80 -0
- package/src/blocks/Quote/block.ts +90 -0
- package/src/blocks/{TableBlockContent/TableBlockContent.ts → Table/block.ts} +169 -51
- package/src/blocks/ToggleWrapper/createToggleWrapper.ts +1 -1
- package/src/blocks/Video/block.ts +143 -0
- package/src/blocks/defaultBlockHelpers.ts +2 -2
- package/src/blocks/defaultBlockTypeGuards.ts +143 -174
- package/src/blocks/defaultBlocks.ts +107 -35
- package/src/blocks/defaultProps.ts +145 -4
- package/src/blocks/index.ts +26 -0
- package/src/blocks/utils/listItemEnterHandler.ts +42 -0
- package/src/editor/Block.css +54 -18
- package/src/editor/BlockNoteEditor.ts +265 -230
- package/src/editor/BlockNoteExtension.ts +92 -0
- package/src/editor/BlockNoteExtensions.ts +20 -16
- package/src/editor/defaultColors.ts +2 -2
- package/src/exporter/Exporter.ts +1 -1
- package/src/exporter/mapping.ts +1 -1
- package/src/extensions/BackgroundColor/BackgroundColorExtension.ts +3 -20
- package/src/extensions/BackgroundColor/BackgroundColorMark.ts +6 -8
- package/src/extensions/BlockChange/BlockChangePlugin.ts +2 -1
- package/src/extensions/Collaboration/__snapshots__/fork-yjs-snap-editor-forked.json +2 -2
- package/src/extensions/Collaboration/__snapshots__/fork-yjs-snap-editor.json +2 -2
- package/src/extensions/Collaboration/__snapshots__/fork-yjs-snap-forked.html +1 -1
- package/src/extensions/Collaboration/__snapshots__/fork-yjs-snap.html +1 -1
- package/src/extensions/Collaboration/schemaMigration/SchemaMigrationPlugin.ts +52 -0
- package/src/extensions/Collaboration/schemaMigration/migrationRules/index.ts +4 -0
- package/src/extensions/Collaboration/schemaMigration/migrationRules/migrationRule.ts +4 -0
- package/src/extensions/Collaboration/schemaMigration/migrationRules/moveColorAttributes.ts +78 -0
- package/src/extensions/Comments/CommentsPlugin.ts +2 -0
- package/src/extensions/FilePanel/FilePanelPlugin.ts +5 -10
- package/src/extensions/FormattingToolbar/FormattingToolbarPlugin.ts +1 -1
- package/src/extensions/KeyboardShortcuts/KeyboardShortcutsExtension.ts +4 -3
- package/src/extensions/Placeholder/PlaceholderPlugin.ts +2 -2
- package/src/extensions/PreviousBlockType/PreviousBlockTypePlugin.ts +1 -23
- package/src/extensions/SideMenu/SideMenuPlugin.ts +0 -2
- package/src/extensions/SuggestionMenu/SuggestionPlugin.ts +0 -5
- package/src/extensions/SuggestionMenu/getDefaultEmojiPickerItems.ts +6 -2
- package/src/extensions/SuggestionMenu/getDefaultSlashMenuItems.ts +24 -17
- package/src/extensions/TableHandles/TableHandlesPlugin.ts +2 -2
- package/src/extensions/TextAlignment/TextAlignmentExtension.ts +5 -11
- package/src/extensions/TextColor/TextColorExtension.ts +3 -17
- package/src/extensions/TextColor/TextColorMark.ts +4 -9
- package/src/extensions/UniqueID/UniqueID.ts +6 -13
- package/src/i18n/locales/ar.ts +6 -12
- package/src/i18n/locales/de.ts +6 -12
- package/src/i18n/locales/en.ts +6 -12
- package/src/i18n/locales/es.ts +6 -12
- package/src/i18n/locales/fr.ts +6 -12
- package/src/i18n/locales/he.ts +6 -12
- package/src/i18n/locales/hr.ts +6 -12
- package/src/i18n/locales/is.ts +6 -12
- package/src/i18n/locales/it.ts +6 -12
- package/src/i18n/locales/ja.ts +6 -12
- package/src/i18n/locales/ko.ts +6 -12
- package/src/i18n/locales/nl.ts +6 -12
- package/src/i18n/locales/no.ts +6 -12
- package/src/i18n/locales/pl.ts +6 -12
- package/src/i18n/locales/pt.ts +6 -12
- package/src/i18n/locales/ru.ts +6 -12
- package/src/i18n/locales/sk.ts +6 -12
- package/src/i18n/locales/uk.ts +6 -12
- package/src/i18n/locales/vi.ts +6 -12
- package/src/i18n/locales/zh-tw.ts +6 -12
- package/src/i18n/locales/zh.ts +6 -12
- package/src/index.ts +2 -29
- package/src/schema/blocks/createSpec.ts +342 -169
- package/src/schema/blocks/internal.ts +77 -138
- package/src/schema/blocks/types.ts +264 -94
- package/src/schema/index.ts +1 -0
- package/src/schema/inlineContent/createSpec.ts +99 -21
- package/src/schema/inlineContent/internal.ts +16 -7
- package/src/schema/inlineContent/types.ts +24 -2
- package/src/schema/propTypes.ts +15 -9
- package/src/schema/schema.ts +209 -0
- package/src/schema/styles/createSpec.ts +79 -31
- package/src/schema/styles/internal.ts +61 -2
- package/src/schema/styles/types.ts +17 -3
- package/src/util/topo-sort.test.ts +125 -0
- package/src/util/topo-sort.ts +160 -0
- package/types/src/api/blockManipulation/commands/splitBlock/splitBlock.d.ts +2 -1
- package/types/src/api/blockManipulation/selections/selection.d.ts +1 -1
- package/types/src/api/blockManipulation/setupTestEnv.d.ts +29 -543
- package/types/src/api/exporters/html/util/serializeBlocksExternalHTML.d.ts +1 -1
- package/types/src/api/exporters/html/util/serializeBlocksInternalHTML.d.ts +1 -1
- package/types/src/api/exporters/markdown/markdownExporter.d.ts +1 -1
- package/types/src/api/parsers/html/parseHTML.d.ts +1 -1
- package/types/src/api/parsers/markdown/parseMarkdown.d.ts +2 -2
- package/types/src/api/pmUtil.d.ts +1 -1
- package/types/src/blocks/Audio/block.d.ts +58 -0
- package/types/src/blocks/BlockNoteSchema.d.ts +18 -0
- package/types/src/blocks/{CodeBlockContent/CodeBlockContent.d.ts → Code/block.d.ts} +25 -26
- package/types/src/blocks/Code/shiki.d.ts +4 -0
- package/types/src/blocks/File/block.d.ts +37 -0
- package/types/src/blocks/File/helpers/render/createAddFileButton.d.ts +6 -0
- package/types/src/blocks/File/helpers/render/createFileBlockWrapper.d.ts +25 -0
- package/types/src/blocks/{FileBlockContent → File}/helpers/render/createFileNameWithIcon.d.ts +6 -2
- package/types/src/blocks/File/helpers/render/createResizableFileBlockWrapper.d.ts +31 -0
- package/types/src/blocks/Heading/block.d.ts +71 -0
- package/types/src/blocks/Image/block.d.ts +102 -0
- package/types/src/blocks/ListItem/BulletListItem/block.d.ts +25 -0
- package/types/src/blocks/ListItem/CheckListItem/block.d.ts +33 -0
- package/types/src/blocks/ListItem/NumberedListItem/IndexingPlugin.d.ts +8 -0
- package/types/src/blocks/ListItem/NumberedListItem/block.d.ts +33 -0
- package/types/src/blocks/ListItem/ToggleListItem/block.d.ts +25 -0
- package/types/src/blocks/PageBreak/block.d.ts +11 -0
- package/types/src/blocks/{PageBreakBlockContent → PageBreak}/getPageBreakSlashMenuItems.d.ts +4 -2
- package/types/src/blocks/Paragraph/block.d.ts +25 -0
- package/types/src/blocks/Quote/block.d.ts +17 -0
- package/types/src/blocks/Table/block.d.ts +21 -0
- package/types/src/blocks/Video/block.d.ts +67 -0
- package/types/src/blocks/defaultBlockHelpers.d.ts +1 -1
- package/types/src/blocks/defaultBlockTypeGuards.d.ts +15 -36
- package/types/src/blocks/defaultBlocks.d.ts +221 -1060
- package/types/src/blocks/defaultProps.d.ts +17 -1
- package/types/src/blocks/index.d.ts +24 -0
- package/types/src/blocks/utils/listItemEnterHandler.d.ts +2 -0
- package/types/src/editor/BlockNoteEditor.d.ts +39 -75
- package/types/src/editor/BlockNoteExtension.d.ts +67 -0
- package/types/src/editor/BlockNoteExtensions.d.ts +2 -0
- package/types/src/editor/defaultColors.d.ts +8 -76
- package/types/src/exporter/Exporter.d.ts +1 -1
- package/types/src/exporter/mapping.d.ts +1 -1
- package/types/src/extensions/BackgroundColor/BackgroundColorMark.d.ts +4 -1
- package/types/src/extensions/Collaboration/schemaMigration/SchemaMigrationPlugin.d.ts +7 -0
- package/types/src/extensions/Collaboration/schemaMigration/migrationRules/index.d.ts +3 -0
- package/types/src/extensions/Collaboration/schemaMigration/migrationRules/migrationRule.d.ts +3 -0
- package/types/src/extensions/Collaboration/schemaMigration/migrationRules/moveColorAttributes.d.ts +2 -0
- package/types/src/extensions/Comments/CommentsPlugin.d.ts +3 -1
- package/types/src/extensions/FilePanel/FilePanelPlugin.d.ts +4 -4
- package/types/src/extensions/TextColor/TextColorMark.d.ts +4 -1
- package/types/src/i18n/locales/en.d.ts +1 -12
- package/types/src/i18n/locales/sk.d.ts +1 -12
- package/types/src/index.d.ts +2 -26
- package/types/src/schema/blocks/createSpec.d.ts +16 -36
- package/types/src/schema/blocks/internal.d.ts +11 -33
- package/types/src/schema/blocks/types.d.ts +181 -57
- package/types/src/schema/index.d.ts +1 -0
- package/types/src/schema/inlineContent/createSpec.d.ts +36 -2
- package/types/src/schema/inlineContent/internal.d.ts +7 -15
- package/types/src/schema/inlineContent/types.d.ts +15 -1
- package/types/src/schema/propTypes.d.ts +4 -4
- package/types/src/schema/schema.d.ts +40 -0
- package/types/src/schema/styles/createSpec.d.ts +6 -4
- package/types/src/schema/styles/internal.d.ts +6 -3
- package/types/src/schema/styles/types.d.ts +11 -2
- package/types/src/util/topo-sort.d.ts +18 -0
- package/types/src/util/topo-sort.test.d.ts +1 -0
- package/dist/en-CvDoFvhc.js.map +0 -1
- package/dist/en-ub2yVBX0.cjs +0 -2
- package/dist/en-ub2yVBX0.cjs.map +0 -1
- package/src/blocks/AudioBlockContent/AudioBlockContent.ts +0 -145
- package/src/blocks/CodeBlockContent/CodeBlockContent.ts +0 -445
- package/src/blocks/FileBlockContent/FileBlockContent.ts +0 -100
- package/src/blocks/HeadingBlockContent/HeadingBlockContent.ts +0 -159
- package/src/blocks/ImageBlockContent/ImageBlockContent.ts +0 -160
- package/src/blocks/ListItemBlockContent/BulletListItemBlockContent/BulletListItemBlockContent.ts +0 -134
- package/src/blocks/ListItemBlockContent/CheckListItemBlockContent/CheckListItemBlockContent.ts +0 -299
- package/src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListIndexingPlugin.ts +0 -86
- package/src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListItemBlockContent.ts +0 -172
- package/src/blocks/ListItemBlockContent/ToggleListItemBlockContent/ToggleListItemBlockContent.ts +0 -104
- package/src/blocks/PageBreakBlockContent/PageBreakBlockContent.ts +0 -49
- package/src/blocks/PageBreakBlockContent/schema.ts +0 -40
- package/src/blocks/ParagraphBlockContent/ParagraphBlockContent.ts +0 -78
- package/src/blocks/QuoteBlockContent/QuoteBlockContent.ts +0 -121
- package/src/blocks/VideoBlockContent/VideoBlockContent.ts +0 -159
- package/src/editor/BlockNoteSchema.ts +0 -107
- package/src/editor/BlockNoteTipTapEditor.ts +0 -335
- package/src/util/esmDependencies.ts +0 -51
- package/types/src/blocks/AudioBlockContent/AudioBlockContent.d.ts +0 -99
- package/types/src/blocks/FileBlockContent/FileBlockContent.d.ts +0 -90
- package/types/src/blocks/FileBlockContent/helpers/render/createAddFileButton.d.ts +0 -6
- package/types/src/blocks/FileBlockContent/helpers/render/createFileBlockWrapper.d.ts +0 -9
- package/types/src/blocks/FileBlockContent/helpers/render/createResizableFileBlockWrapper.d.ts +0 -9
- package/types/src/blocks/HeadingBlockContent/HeadingBlockContent.d.ts +0 -67
- package/types/src/blocks/ImageBlockContent/ImageBlockContent.d.ts +0 -131
- package/types/src/blocks/ListItemBlockContent/BulletListItemBlockContent/BulletListItemBlockContent.d.ts +0 -46
- package/types/src/blocks/ListItemBlockContent/CheckListItemBlockContent/CheckListItemBlockContent.d.ts +0 -55
- package/types/src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListIndexingPlugin.d.ts +0 -2
- package/types/src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListItemBlockContent.d.ts +0 -58
- package/types/src/blocks/ListItemBlockContent/ToggleListItemBlockContent/ToggleListItemBlockContent.d.ts +0 -46
- package/types/src/blocks/PageBreakBlockContent/PageBreakBlockContent.d.ts +0 -31
- package/types/src/blocks/PageBreakBlockContent/schema.d.ts +0 -86
- package/types/src/blocks/ParagraphBlockContent/ParagraphBlockContent.d.ts +0 -52
- package/types/src/blocks/QuoteBlockContent/QuoteBlockContent.d.ts +0 -52
- package/types/src/blocks/TableBlockContent/TableBlockContent.d.ts +0 -39
- package/types/src/blocks/VideoBlockContent/VideoBlockContent.d.ts +0 -131
- package/types/src/editor/BlockNoteSchema.d.ts +0 -34
- package/types/src/editor/BlockNoteTipTapEditor.d.ts +0 -43
- package/types/src/util/esmDependencies.d.ts +0 -24
- /package/src/blocks/{AudioBlockContent → Audio}/parseAudioElement.ts +0 -0
- /package/src/blocks/{FileBlockContent → File}/helpers/parse/parseEmbedElement.ts +0 -0
- /package/src/blocks/{FileBlockContent → File}/helpers/parse/parseFigureElement.ts +0 -0
- /package/src/blocks/{FileBlockContent → File}/helpers/toExternalHTML/createFigureWithCaption.ts +0 -0
- /package/src/blocks/{FileBlockContent → File}/helpers/toExternalHTML/createLinkWithCaption.ts +0 -0
- /package/src/blocks/{FileBlockContent → File/helpers}/uploadToTmpFilesDotOrg_DEV_ONLY.ts +0 -0
- /package/src/blocks/{ImageBlockContent → Image}/parseImageElement.ts +0 -0
- /package/src/blocks/{ListItemBlockContent → ListItem}/ListItemKeyboardShortcuts.ts +0 -0
- /package/src/blocks/{ListItemBlockContent → ListItem}/getListItemContent.ts +0 -0
- /package/src/blocks/{TableBlockContent → Table}/TableExtension.ts +0 -0
- /package/src/blocks/{VideoBlockContent → Video}/parseVideoElement.ts +0 -0
- /package/types/src/blocks/{AudioBlockContent → Audio}/parseAudioElement.d.ts +0 -0
- /package/types/src/blocks/{FileBlockContent → File}/helpers/parse/parseEmbedElement.d.ts +0 -0
- /package/types/src/blocks/{FileBlockContent → File}/helpers/parse/parseFigureElement.d.ts +0 -0
- /package/types/src/blocks/{FileBlockContent → File}/helpers/toExternalHTML/createFigureWithCaption.d.ts +0 -0
- /package/types/src/blocks/{FileBlockContent → File}/helpers/toExternalHTML/createLinkWithCaption.d.ts +0 -0
- /package/types/src/blocks/{FileBlockContent → File/helpers}/uploadToTmpFilesDotOrg_DEV_ONLY.d.ts +0 -0
- /package/types/src/blocks/{ImageBlockContent → Image}/parseImageElement.d.ts +0 -0
- /package/types/src/blocks/{ListItemBlockContent → ListItem}/ListItemKeyboardShortcuts.d.ts +0 -0
- /package/types/src/blocks/{ListItemBlockContent → ListItem}/getListItemContent.d.ts +0 -0
- /package/types/src/blocks/{TableBlockContent → Table}/TableExtension.d.ts +0 -0
- /package/types/src/blocks/{VideoBlockContent → Video}/parseVideoElement.d.ts +0 -0
package/src/i18n/locales/nl.ts
CHANGED
|
@@ -185,18 +185,12 @@ export const nl: Dictionary = {
|
|
|
185
185
|
comment_reply: "Reactie toevoegen...",
|
|
186
186
|
},
|
|
187
187
|
file_blocks: {
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
},
|
|
194
|
-
audio: {
|
|
195
|
-
add_button_text: "Audio toevoegen",
|
|
196
|
-
},
|
|
197
|
-
file: {
|
|
198
|
-
add_button_text: "Bestand toevoegen",
|
|
199
|
-
},
|
|
188
|
+
add_button_text: {
|
|
189
|
+
image: "Afbeelding toevoegen",
|
|
190
|
+
video: "Video toevoegen",
|
|
191
|
+
audio: "Audio toevoegen",
|
|
192
|
+
file: "Bestand toevoegen",
|
|
193
|
+
} as Record<string, string>,
|
|
200
194
|
},
|
|
201
195
|
toggle_blocks: {
|
|
202
196
|
add_block_button: "Lege uitklapper. Klik om een blok toe te voegen.",
|
package/src/i18n/locales/no.ts
CHANGED
|
@@ -203,18 +203,12 @@ export const no: Dictionary = {
|
|
|
203
203
|
comment_reply: "Legg til kommentar...",
|
|
204
204
|
},
|
|
205
205
|
file_blocks: {
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
},
|
|
212
|
-
audio: {
|
|
213
|
-
add_button_text: "Legg til lyd",
|
|
214
|
-
},
|
|
215
|
-
file: {
|
|
216
|
-
add_button_text: "Legg til fil",
|
|
217
|
-
},
|
|
206
|
+
add_button_text: {
|
|
207
|
+
image: "Legg til bilde",
|
|
208
|
+
video: "Legg til video",
|
|
209
|
+
audio: "Legg til lyd",
|
|
210
|
+
file: "Legg til fil",
|
|
211
|
+
} as Record<string, string>,
|
|
218
212
|
},
|
|
219
213
|
toggle_blocks: {
|
|
220
214
|
add_block_button: "Tomt toggle. Klikk for å legge til en blokk.",
|
package/src/i18n/locales/pl.ts
CHANGED
|
@@ -175,18 +175,12 @@ export const pl: Dictionary = {
|
|
|
175
175
|
comment_reply: "Dodaj komentarz...",
|
|
176
176
|
},
|
|
177
177
|
file_blocks: {
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
},
|
|
184
|
-
audio: {
|
|
185
|
-
add_button_text: "Dodaj audio",
|
|
186
|
-
},
|
|
187
|
-
file: {
|
|
188
|
-
add_button_text: "Dodaj plik",
|
|
189
|
-
},
|
|
178
|
+
add_button_text: {
|
|
179
|
+
image: "Dodaj zdjęcie",
|
|
180
|
+
video: "Dodaj wideo",
|
|
181
|
+
audio: "Dodaj audio",
|
|
182
|
+
file: "Dodaj plik",
|
|
183
|
+
} as Record<string, string>,
|
|
190
184
|
},
|
|
191
185
|
toggle_blocks: {
|
|
192
186
|
add_block_button:
|
package/src/i18n/locales/pt.ts
CHANGED
|
@@ -176,18 +176,12 @@ export const pt: Dictionary = {
|
|
|
176
176
|
comment_reply: "Adicionar comentário...",
|
|
177
177
|
},
|
|
178
178
|
file_blocks: {
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
},
|
|
185
|
-
audio: {
|
|
186
|
-
add_button_text: "Adicionar áudio",
|
|
187
|
-
},
|
|
188
|
-
file: {
|
|
189
|
-
add_button_text: "Adicionar arquivo",
|
|
190
|
-
},
|
|
179
|
+
add_button_text: {
|
|
180
|
+
image: "Adicionar imagem",
|
|
181
|
+
video: "Adicionar vídeo",
|
|
182
|
+
audio: "Adicionar áudio",
|
|
183
|
+
file: "Adicionar arquivo",
|
|
184
|
+
} as Record<string, string>,
|
|
191
185
|
},
|
|
192
186
|
toggle_blocks: {
|
|
193
187
|
add_block_button: "Toggle vazio. Clique para adicionar um bloco.",
|
package/src/i18n/locales/ru.ts
CHANGED
|
@@ -227,18 +227,12 @@ export const ru: Dictionary = {
|
|
|
227
227
|
comment_reply: "Добавить комментарий...",
|
|
228
228
|
},
|
|
229
229
|
file_blocks: {
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
},
|
|
236
|
-
audio: {
|
|
237
|
-
add_button_text: "Добавить аудио",
|
|
238
|
-
},
|
|
239
|
-
file: {
|
|
240
|
-
add_button_text: "Добавить файл",
|
|
241
|
-
},
|
|
230
|
+
add_button_text: {
|
|
231
|
+
image: "Добавить изображение",
|
|
232
|
+
video: "Добавить видео",
|
|
233
|
+
audio: "Добавить аудио",
|
|
234
|
+
file: "Добавить файл",
|
|
235
|
+
} as Record<string, string>,
|
|
242
236
|
},
|
|
243
237
|
toggle_blocks: {
|
|
244
238
|
add_block_button: "Пустой переключатель. Нажмите, чтобы добавить блок.",
|
package/src/i18n/locales/sk.ts
CHANGED
|
@@ -184,18 +184,12 @@ export const sk = {
|
|
|
184
184
|
comment_reply: "Pridať komentár...",
|
|
185
185
|
} as Record<string | "default" | "emptyDocument", string | undefined>,
|
|
186
186
|
file_blocks: {
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
},
|
|
193
|
-
audio: {
|
|
194
|
-
add_button_text: "Pridať audio",
|
|
195
|
-
},
|
|
196
|
-
file: {
|
|
197
|
-
add_button_text: "Pridať súbor",
|
|
198
|
-
},
|
|
187
|
+
add_button_text: {
|
|
188
|
+
image: "Pridať obrázok",
|
|
189
|
+
video: "Pridať video",
|
|
190
|
+
audio: "Pridať audio",
|
|
191
|
+
file: "Pridať súbor",
|
|
192
|
+
} as Record<string, string>,
|
|
199
193
|
},
|
|
200
194
|
toggle_blocks: {
|
|
201
195
|
add_block_button: "Prázdne prepínanie. Kliknite pre pridanie bloku.",
|
package/src/i18n/locales/uk.ts
CHANGED
|
@@ -209,18 +209,12 @@ export const uk: Dictionary = {
|
|
|
209
209
|
comment_reply: "Додати коментар...",
|
|
210
210
|
},
|
|
211
211
|
file_blocks: {
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
},
|
|
218
|
-
audio: {
|
|
219
|
-
add_button_text: "Додати аудіо",
|
|
220
|
-
},
|
|
221
|
-
file: {
|
|
222
|
-
add_button_text: "Додати файл",
|
|
223
|
-
},
|
|
212
|
+
add_button_text: {
|
|
213
|
+
image: "Додати зображення",
|
|
214
|
+
video: "Додати відео",
|
|
215
|
+
audio: "Додати аудіо",
|
|
216
|
+
file: "Додати файл",
|
|
217
|
+
} as Record<string, string>,
|
|
224
218
|
},
|
|
225
219
|
toggle_blocks: {
|
|
226
220
|
add_block_button: "Порожній перемикач. Натисніть, щоб додати блок.",
|
package/src/i18n/locales/vi.ts
CHANGED
|
@@ -183,18 +183,12 @@ export const vi: Dictionary = {
|
|
|
183
183
|
comment_reply: "Thêm bình luận...",
|
|
184
184
|
},
|
|
185
185
|
file_blocks: {
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
},
|
|
192
|
-
audio: {
|
|
193
|
-
add_button_text: "Thêm âm thanh",
|
|
194
|
-
},
|
|
195
|
-
file: {
|
|
196
|
-
add_button_text: "Thêm tệp",
|
|
197
|
-
},
|
|
186
|
+
add_button_text: {
|
|
187
|
+
image: "Thêm ảnh",
|
|
188
|
+
video: "Thêm video",
|
|
189
|
+
audio: "Thêm âm thanh",
|
|
190
|
+
file: "Thêm tệp",
|
|
191
|
+
} as Record<string, string>,
|
|
198
192
|
},
|
|
199
193
|
toggle_blocks: {
|
|
200
194
|
add_block_button: "Toggle trống. Nhấp để thêm khối.",
|
|
@@ -225,18 +225,12 @@ export const zhTW: Dictionary = {
|
|
|
225
225
|
comment_reply: "新增評論...",
|
|
226
226
|
},
|
|
227
227
|
file_blocks: {
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
},
|
|
234
|
-
audio: {
|
|
235
|
-
add_button_text: "新增音訊",
|
|
236
|
-
},
|
|
237
|
-
file: {
|
|
238
|
-
add_button_text: "新增檔案",
|
|
239
|
-
},
|
|
228
|
+
add_button_text: {
|
|
229
|
+
image: "新增圖片",
|
|
230
|
+
video: "新增影片",
|
|
231
|
+
audio: "新增音訊",
|
|
232
|
+
file: "新增檔案",
|
|
233
|
+
} as Record<string, string>,
|
|
240
234
|
},
|
|
241
235
|
toggle_blocks: {
|
|
242
236
|
add_block_button: "空的切換區。點擊新增區塊。",
|
package/src/i18n/locales/zh.ts
CHANGED
|
@@ -225,18 +225,12 @@ export const zh: Dictionary = {
|
|
|
225
225
|
comment_reply: "添加评论...",
|
|
226
226
|
},
|
|
227
227
|
file_blocks: {
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
},
|
|
234
|
-
audio: {
|
|
235
|
-
add_button_text: "添加音频",
|
|
236
|
-
},
|
|
237
|
-
file: {
|
|
238
|
-
add_button_text: "添加文件",
|
|
239
|
-
},
|
|
228
|
+
add_button_text: {
|
|
229
|
+
image: "添加图片",
|
|
230
|
+
video: "添加视频",
|
|
231
|
+
audio: "添加音频",
|
|
232
|
+
file: "添加文件",
|
|
233
|
+
} as Record<string, string>,
|
|
240
234
|
},
|
|
241
235
|
toggle_blocks: {
|
|
242
236
|
add_block_button: "空的切换区。点击添加区块。",
|
package/src/index.ts
CHANGED
|
@@ -7,36 +7,10 @@ export * from "./api/getBlockInfoFromPos.js";
|
|
|
7
7
|
export * from "./api/getBlocksChangedByTransaction.js";
|
|
8
8
|
export * from "./api/nodeUtil.js";
|
|
9
9
|
export * from "./api/pmUtil.js";
|
|
10
|
-
export * from "./blocks/
|
|
11
|
-
export * from "./blocks/CodeBlockContent/CodeBlockContent.js";
|
|
12
|
-
export * from "./blocks/defaultBlockHelpers.js";
|
|
13
|
-
export * from "./blocks/defaultBlocks.js";
|
|
14
|
-
export * from "./blocks/defaultBlockTypeGuards.js";
|
|
15
|
-
export * from "./blocks/defaultProps.js";
|
|
16
|
-
export * from "./blocks/FileBlockContent/FileBlockContent.js";
|
|
17
|
-
export * from "./blocks/FileBlockContent/helpers/parse/parseEmbedElement.js";
|
|
18
|
-
export * from "./blocks/FileBlockContent/helpers/parse/parseFigureElement.js";
|
|
19
|
-
export * from "./blocks/FileBlockContent/helpers/render/createAddFileButton.js";
|
|
20
|
-
export * from "./blocks/FileBlockContent/helpers/render/createFileBlockWrapper.js";
|
|
21
|
-
export * from "./blocks/FileBlockContent/helpers/render/createFileNameWithIcon.js";
|
|
22
|
-
export * from "./blocks/FileBlockContent/helpers/render/createResizableFileBlockWrapper.js";
|
|
23
|
-
export * from "./blocks/FileBlockContent/helpers/toExternalHTML/createFigureWithCaption.js";
|
|
24
|
-
export * from "./blocks/FileBlockContent/helpers/toExternalHTML/createLinkWithCaption.js";
|
|
25
|
-
export * from "./blocks/FileBlockContent/uploadToTmpFilesDotOrg_DEV_ONLY.js";
|
|
26
|
-
export * from "./blocks/ImageBlockContent/ImageBlockContent.js";
|
|
27
|
-
export * from "./blocks/PageBreakBlockContent/getPageBreakSlashMenuItems.js";
|
|
28
|
-
export * from "./blocks/PageBreakBlockContent/PageBreakBlockContent.js";
|
|
29
|
-
export * from "./blocks/PageBreakBlockContent/schema.js";
|
|
30
|
-
export * from "./blocks/ToggleWrapper/createToggleWrapper.js";
|
|
31
|
-
export {
|
|
32
|
-
EMPTY_CELL_HEIGHT,
|
|
33
|
-
EMPTY_CELL_WIDTH,
|
|
34
|
-
} from "./blocks/TableBlockContent/TableExtension.js";
|
|
35
|
-
export * from "./blocks/VideoBlockContent/VideoBlockContent.js";
|
|
10
|
+
export * from "./blocks/index.js";
|
|
36
11
|
export * from "./editor/BlockNoteEditor.js";
|
|
37
12
|
export * from "./editor/BlockNoteExtension.js";
|
|
38
13
|
export * from "./editor/BlockNoteExtensions.js";
|
|
39
|
-
export * from "./editor/BlockNoteSchema.js";
|
|
40
14
|
export * from "./editor/defaultColors.js";
|
|
41
15
|
export * from "./editor/selectionTypes.js";
|
|
42
16
|
export * from "./exporter/index.js";
|
|
@@ -56,12 +30,11 @@ export * from "./i18n/dictionary.js";
|
|
|
56
30
|
export * from "./schema/index.js";
|
|
57
31
|
export * from "./util/browser.js";
|
|
58
32
|
export * from "./util/combineByGroup.js";
|
|
59
|
-
export * from "./util/esmDependencies.js";
|
|
60
33
|
export * from "./util/string.js";
|
|
61
34
|
export * from "./util/table.js";
|
|
62
35
|
export * from "./util/typescript.js";
|
|
63
36
|
|
|
64
|
-
export type { CodeBlockOptions } from "./blocks/
|
|
37
|
+
export type { CodeBlockOptions } from "./blocks/Code/block.js";
|
|
65
38
|
export { assertEmpty, UnreachableCaseError } from "./util/typescript.js";
|
|
66
39
|
|
|
67
40
|
export * from "./util/EventEmitter.js";
|