@blocknote/core 0.21.0 → 0.23.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/blocknote.js +2320 -1692
- package/dist/blocknote.js.map +1 -1
- package/dist/blocknote.umd.cjs +7 -7
- package/dist/blocknote.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/webpack-stats.json +1 -1
- package/package.json +3 -3
- package/src/api/clipboard/__snapshots__/external/pasteEndOfParagraph.html +96 -0
- package/src/api/clipboard/__snapshots__/external/pasteEndOfParagraphText.html +96 -0
- package/src/api/clipboard/__snapshots__/external/pasteImage.html +111 -0
- package/src/api/clipboard/__snapshots__/external/pasteParagraphInCustomBlock.html +96 -0
- package/src/api/clipboard/__snapshots__/external/pasteTable.html +149 -0
- package/src/api/clipboard/__snapshots__/external/pasteTableInExistingTable.html +124 -0
- package/src/api/clipboard/__snapshots__/internal/basicBlocks.html +1 -0
- package/src/api/clipboard/__snapshots__/internal/basicBlocksWithProps.html +1 -0
- package/src/api/clipboard/__snapshots__/internal/paragraphInCustomBlock.html +1 -0
- package/src/api/clipboard/clipboardExternal.test.ts +161 -0
- package/src/api/clipboard/{clipboard.test.ts → clipboardInternal.test.ts} +186 -38
- package/src/api/clipboard/testUtil.ts +27 -0
- package/src/api/clipboard/toClipboard/copyExtension.ts +1 -0
- package/src/api/exporters/html/__snapshots__/pageBreak/basic/external.html +1 -0
- package/src/api/exporters/html/__snapshots__/pageBreak/basic/internal.html +1 -0
- package/src/api/exporters/html/util/serializeBlocksExternalHTML.ts +7 -1
- package/src/api/exporters/html/util/serializeBlocksInternalHTML.ts +3 -1
- package/src/api/exporters/markdown/__snapshots__/pageBreak/basic/markdown.md +0 -0
- package/src/api/nodeConversions/__snapshots__/nodeConversions.test.ts.snap +16 -0
- package/src/api/nodeConversions/nodeToBlock.ts +4 -1
- package/src/api/parsers/html/__snapshots__/parse-codeblocks.json +62 -0
- package/src/api/parsers/html/parseHTML.test.ts +9 -0
- package/src/api/parsers/markdown/__snapshots__/pasted/styled.json +2 -2
- package/src/api/testUtil/cases/defaultSchema.ts +15 -1
- package/src/api/testUtil/partialBlockTestUtil.ts +4 -1
- package/src/blocks/CodeBlockContent/CodeBlockContent.ts +32 -11
- package/src/blocks/HeadingBlockContent/HeadingBlockContent.ts +3 -28
- package/src/blocks/ListItemBlockContent/BulletListItemBlockContent/BulletListItemBlockContent.ts +1 -1
- package/src/blocks/ListItemBlockContent/CheckListItemBlockContent/CheckListItemBlockContent.ts +4 -16
- package/src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListIndexingPlugin.ts +11 -3
- package/src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListItemBlockContent.ts +26 -6
- package/src/blocks/PageBreakBlockContent/PageBreakBlockContent.ts +49 -0
- package/src/blocks/PageBreakBlockContent/getPageBreakSlashMenuItems.ts +45 -0
- package/src/blocks/PageBreakBlockContent/schema.ts +40 -0
- package/src/editor/Block.css +18 -4
- package/src/editor/BlockNoteEditor.test.ts +21 -1
- package/src/editor/BlockNoteEditor.ts +17 -0
- package/src/editor/BlockNoteExtensions.ts +111 -16
- package/src/editor/editor.css +28 -13
- package/src/editor/transformPasted.ts +57 -4
- package/src/extensions/SideMenu/SideMenuPlugin.ts +115 -23
- package/src/extensions/SideMenu/dragging.ts +0 -1
- package/src/extensions/SuggestionMenu/DefaultSuggestionItem.ts +1 -1
- package/src/i18n/locales/ar.ts +6 -0
- package/src/i18n/locales/de.ts +6 -0
- package/src/i18n/locales/en.ts +6 -0
- package/src/i18n/locales/es.ts +6 -0
- package/src/i18n/locales/fr.ts +47 -17
- package/src/i18n/locales/hr.ts +72 -54
- package/src/i18n/locales/index.ts +1 -0
- package/src/i18n/locales/is.ts +6 -0
- package/src/i18n/locales/it.ts +315 -0
- package/src/i18n/locales/ja.ts +6 -0
- package/src/i18n/locales/ko.ts +6 -0
- package/src/i18n/locales/nl.ts +6 -0
- package/src/i18n/locales/pl.ts +6 -0
- package/src/i18n/locales/pt.ts +6 -0
- package/src/i18n/locales/ru.ts +6 -0
- package/src/i18n/locales/vi.ts +6 -0
- package/src/i18n/locales/zh.ts +6 -0
- package/src/index.ts +3 -0
- package/src/schema/blocks/createSpec.ts +1 -1
- package/src/schema/blocks/internal.ts +16 -6
- package/src/schema/inlineContent/internal.ts +4 -1
- package/src/schema/propTypes.ts +41 -18
- package/types/src/api/blockManipulation/setupTestEnv.d.ts +8 -0
- package/types/src/api/clipboard/clipboardInternal.test.d.ts +1 -0
- package/types/src/api/clipboard/testUtil.d.ts +509 -0
- package/types/src/api/testUtil/cases/customBlocks.d.ts +8 -0
- package/types/src/api/testUtil/cases/customInlineContent.d.ts +8 -0
- package/types/src/api/testUtil/cases/customStyles.d.ts +8 -0
- package/types/src/api/testUtil/cases/defaultSchema.d.ts +2 -1
- package/types/src/blocks/CodeBlockContent/CodeBlockContent.d.ts +2 -0
- package/types/src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListItemBlockContent.d.ts +12 -0
- package/types/src/blocks/PageBreakBlockContent/PageBreakBlockContent.d.ts +31 -0
- package/types/src/blocks/PageBreakBlockContent/getPageBreakSlashMenuItems.d.ts +8 -0
- package/types/src/blocks/PageBreakBlockContent/schema.d.ts +86 -0
- package/types/src/blocks/defaultBlocks.d.ts +16 -0
- package/types/src/editor/BlockNoteEditor.d.ts +15 -0
- package/types/src/editor/BlockNoteExtensions.d.ts +2 -0
- package/types/src/editor/transformPasted.d.ts +8 -4
- package/types/src/extensions/SideMenu/SideMenuPlugin.d.ts +25 -5
- package/types/src/extensions/SuggestionMenu/DefaultSuggestionItem.d.ts +1 -1
- package/types/src/i18n/locales/de.d.ts +6 -0
- package/types/src/i18n/locales/en.d.ts +6 -0
- package/types/src/i18n/locales/es.d.ts +6 -0
- package/types/src/i18n/locales/hr.d.ts +6 -0
- package/types/src/i18n/locales/index.d.ts +1 -0
- package/types/src/i18n/locales/it.d.ts +245 -0
- package/types/src/index.d.ts +3 -0
- package/types/src/schema/propTypes.d.ts +20 -2
- package/dist/src/api/blockManipulation/commands/insertBlocks/insertBlocks.js +0 -30
- package/dist/src/api/blockManipulation/commands/insertBlocks/insertBlocks.js.map +0 -1
- package/dist/src/api/blockManipulation/commands/insertBlocks/insertBlocks.test.js +0 -99
- package/dist/src/api/blockManipulation/commands/insertBlocks/insertBlocks.test.js.map +0 -1
- package/dist/src/api/blockManipulation/commands/mergeBlocks/mergeBlocks.js +0 -97
- package/dist/src/api/blockManipulation/commands/mergeBlocks/mergeBlocks.js.map +0 -1
- package/dist/src/api/blockManipulation/commands/mergeBlocks/mergeBlocks.test.js +0 -88
- package/dist/src/api/blockManipulation/commands/mergeBlocks/mergeBlocks.test.js.map +0 -1
- package/dist/src/api/blockManipulation/commands/moveBlocks/moveBlocks.js +0 -219
- package/dist/src/api/blockManipulation/commands/moveBlocks/moveBlocks.js.map +0 -1
- package/dist/src/api/blockManipulation/commands/moveBlocks/moveBlocks.test.js +0 -175
- package/dist/src/api/blockManipulation/commands/moveBlocks/moveBlocks.test.js.map +0 -1
- package/dist/src/api/blockManipulation/commands/nestBlock/nestBlock.js +0 -57
- package/dist/src/api/blockManipulation/commands/nestBlock/nestBlock.js.map +0 -1
- package/dist/src/api/blockManipulation/commands/removeBlocks/removeBlocks.js +0 -5
- package/dist/src/api/blockManipulation/commands/removeBlocks/removeBlocks.js.map +0 -1
- package/dist/src/api/blockManipulation/commands/removeBlocks/removeBlocks.test.js +0 -31
- package/dist/src/api/blockManipulation/commands/removeBlocks/removeBlocks.test.js.map +0 -1
- package/dist/src/api/blockManipulation/commands/replaceBlocks/replaceBlocks.js +0 -71
- package/dist/src/api/blockManipulation/commands/replaceBlocks/replaceBlocks.js.map +0 -1
- package/dist/src/api/blockManipulation/commands/replaceBlocks/replaceBlocks.test.js +0 -157
- package/dist/src/api/blockManipulation/commands/replaceBlocks/replaceBlocks.test.js.map +0 -1
- package/dist/src/api/blockManipulation/commands/splitBlock/splitBlock.js +0 -27
- package/dist/src/api/blockManipulation/commands/splitBlock/splitBlock.js.map +0 -1
- package/dist/src/api/blockManipulation/commands/splitBlock/splitBlock.test.js +0 -67
- package/dist/src/api/blockManipulation/commands/splitBlock/splitBlock.test.js.map +0 -1
- package/dist/src/api/blockManipulation/commands/updateBlock/updateBlock.js +0 -148
- package/dist/src/api/blockManipulation/commands/updateBlock/updateBlock.js.map +0 -1
- package/dist/src/api/blockManipulation/commands/updateBlock/updateBlock.test.js +0 -252
- package/dist/src/api/blockManipulation/commands/updateBlock/updateBlock.test.js.map +0 -1
- package/dist/src/api/blockManipulation/getBlock/getBlock.js +0 -56
- package/dist/src/api/blockManipulation/getBlock/getBlock.js.map +0 -1
- package/dist/src/api/blockManipulation/insertContentAt.js +0 -64
- package/dist/src/api/blockManipulation/insertContentAt.js.map +0 -1
- package/dist/src/api/blockManipulation/selections/selection.js +0 -149
- package/dist/src/api/blockManipulation/selections/selection.js.map +0 -1
- package/dist/src/api/blockManipulation/selections/selection.test.js +0 -39
- package/dist/src/api/blockManipulation/selections/selection.test.js.map +0 -1
- package/dist/src/api/blockManipulation/selections/textCursorPosition/textCursorPosition.js +0 -79
- package/dist/src/api/blockManipulation/selections/textCursorPosition/textCursorPosition.js.map +0 -1
- package/dist/src/api/blockManipulation/selections/textCursorPosition/textCursorPosition.test.js +0 -33
- package/dist/src/api/blockManipulation/selections/textCursorPosition/textCursorPosition.test.js.map +0 -1
- package/dist/src/api/blockManipulation/setupTestEnv.js +0 -172
- package/dist/src/api/blockManipulation/setupTestEnv.js.map +0 -1
- package/dist/src/api/clipboard/clipboard.test.js +0 -249
- package/dist/src/api/clipboard/clipboard.test.js.map +0 -1
- package/dist/src/api/clipboard/fromClipboard/acceptedMIMETypes.js +0 -8
- package/dist/src/api/clipboard/fromClipboard/acceptedMIMETypes.js.map +0 -1
- package/dist/src/api/clipboard/fromClipboard/fileDropExtension.js +0 -38
- package/dist/src/api/clipboard/fromClipboard/fileDropExtension.js.map +0 -1
- package/dist/src/api/clipboard/fromClipboard/handleFileInsertion.js +0 -111
- package/dist/src/api/clipboard/fromClipboard/handleFileInsertion.js.map +0 -1
- package/dist/src/api/clipboard/fromClipboard/handleVSCodePaste.js +0 -25
- package/dist/src/api/clipboard/fromClipboard/handleVSCodePaste.js.map +0 -1
- package/dist/src/api/clipboard/fromClipboard/pasteExtension.js +0 -57
- package/dist/src/api/clipboard/fromClipboard/pasteExtension.js.map +0 -1
- package/dist/src/api/clipboard/toClipboard/copyExtension.js +0 -134
- package/dist/src/api/clipboard/toClipboard/copyExtension.js.map +0 -1
- package/dist/src/api/exporters/html/externalHTMLExporter.js +0 -35
- package/dist/src/api/exporters/html/externalHTMLExporter.js.map +0 -1
- package/dist/src/api/exporters/html/htmlConversion.test.js +0 -72
- package/dist/src/api/exporters/html/htmlConversion.test.js.map +0 -1
- package/dist/src/api/exporters/html/internalHTMLSerializer.js +0 -21
- package/dist/src/api/exporters/html/internalHTMLSerializer.js.map +0 -1
- package/dist/src/api/exporters/html/util/serializeBlocksExternalHTML.js +0 -141
- package/dist/src/api/exporters/html/util/serializeBlocksExternalHTML.js.map +0 -1
- package/dist/src/api/exporters/html/util/serializeBlocksInternalHTML.js +0 -96
- package/dist/src/api/exporters/html/util/serializeBlocksInternalHTML.js.map +0 -1
- package/dist/src/api/exporters/markdown/markdownExporter.js +0 -31
- package/dist/src/api/exporters/markdown/markdownExporter.js.map +0 -1
- package/dist/src/api/exporters/markdown/markdownExporter.test.js +0 -57
- package/dist/src/api/exporters/markdown/markdownExporter.test.js.map +0 -1
- package/dist/src/api/exporters/markdown/removeUnderlinesRehypePlugin.js +0 -33
- package/dist/src/api/exporters/markdown/removeUnderlinesRehypePlugin.js.map +0 -1
- package/dist/src/api/exporters/markdown/util/addSpacesToCheckboxesRehypePlugin.js +0 -37
- package/dist/src/api/exporters/markdown/util/addSpacesToCheckboxesRehypePlugin.js.map +0 -1
- package/dist/src/api/getBlockInfoFromPos.js +0 -165
- package/dist/src/api/getBlockInfoFromPos.js.map +0 -1
- package/dist/src/api/nodeConversions/blockToNode.js +0 -197
- package/dist/src/api/nodeConversions/blockToNode.js.map +0 -1
- package/dist/src/api/nodeConversions/fragmentToBlocks.js +0 -50
- package/dist/src/api/nodeConversions/fragmentToBlocks.js.map +0 -1
- package/dist/src/api/nodeConversions/nodeConversions.test.js +0 -54
- package/dist/src/api/nodeConversions/nodeConversions.test.js.map +0 -1
- package/dist/src/api/nodeConversions/nodeToBlock.js +0 -316
- package/dist/src/api/nodeConversions/nodeToBlock.js.map +0 -1
- package/dist/src/api/nodeUtil.js +0 -28
- package/dist/src/api/nodeUtil.js.map +0 -1
- package/dist/src/api/parsers/html/parseHTML.js +0 -19
- package/dist/src/api/parsers/html/parseHTML.js.map +0 -1
- package/dist/src/api/parsers/html/parseHTML.test.js +0 -470
- package/dist/src/api/parsers/html/parseHTML.test.js.map +0 -1
- package/dist/src/api/parsers/html/util/nestedLists.js +0 -106
- package/dist/src/api/parsers/html/util/nestedLists.js.map +0 -1
- package/dist/src/api/parsers/html/util/nestedLists.test.js +0 -166
- package/dist/src/api/parsers/html/util/nestedLists.test.js.map +0 -1
- package/dist/src/api/parsers/markdown/parseMarkdown.js +0 -52
- package/dist/src/api/parsers/markdown/parseMarkdown.js.map +0 -1
- package/dist/src/api/parsers/markdown/parseMarkdown.test.js +0 -112
- package/dist/src/api/parsers/markdown/parseMarkdown.test.js.map +0 -1
- package/dist/src/api/testUtil/cases/customBlocks.js +0 -313
- package/dist/src/api/testUtil/cases/customBlocks.js.map +0 -1
- package/dist/src/api/testUtil/cases/customInlineContent.js +0 -91
- package/dist/src/api/testUtil/cases/customInlineContent.js.map +0 -1
- package/dist/src/api/testUtil/cases/customStyles.js +0 -83
- package/dist/src/api/testUtil/cases/customStyles.js.map +0 -1
- package/dist/src/api/testUtil/cases/defaultSchema.js +0 -673
- package/dist/src/api/testUtil/cases/defaultSchema.js.map +0 -1
- package/dist/src/api/testUtil/index.js +0 -2
- package/dist/src/api/testUtil/index.js.map +0 -1
- package/dist/src/api/testUtil/partialBlockTestUtil.js +0 -114
- package/dist/src/api/testUtil/partialBlockTestUtil.js.map +0 -1
- package/dist/src/api/testUtil/paste.js +0 -29
- package/dist/src/api/testUtil/paste.js.map +0 -1
- package/dist/src/blocks/AudioBlockContent/AudioBlockContent.js +0 -104
- package/dist/src/blocks/AudioBlockContent/AudioBlockContent.js.map +0 -1
- package/dist/src/blocks/AudioBlockContent/parseAudioElement.js +0 -5
- package/dist/src/blocks/AudioBlockContent/parseAudioElement.js.map +0 -1
- package/dist/src/blocks/CodeBlockContent/CodeBlockContent.js +0 -281
- package/dist/src/blocks/CodeBlockContent/CodeBlockContent.js.map +0 -1
- package/dist/src/blocks/CodeBlockContent/defaultSupportedLanguages.js +0 -110
- package/dist/src/blocks/CodeBlockContent/defaultSupportedLanguages.js.map +0 -1
- package/dist/src/blocks/FileBlockContent/FileBlockContent.js +0 -71
- package/dist/src/blocks/FileBlockContent/FileBlockContent.js.map +0 -1
- package/dist/src/blocks/FileBlockContent/helpers/parse/parseEmbedElement.js +0 -5
- package/dist/src/blocks/FileBlockContent/helpers/parse/parseEmbedElement.js.map +0 -1
- package/dist/src/blocks/FileBlockContent/helpers/parse/parseFigureElement.js +0 -10
- package/dist/src/blocks/FileBlockContent/helpers/parse/parseFigureElement.js.map +0 -1
- package/dist/src/blocks/FileBlockContent/helpers/render/createAddFileButton.js +0 -39
- package/dist/src/blocks/FileBlockContent/helpers/render/createAddFileButton.js.map +0 -1
- package/dist/src/blocks/FileBlockContent/helpers/render/createFileBlockWrapper.js +0 -51
- package/dist/src/blocks/FileBlockContent/helpers/render/createFileBlockWrapper.js.map +0 -1
- package/dist/src/blocks/FileBlockContent/helpers/render/createFileNameWithIcon.js +0 -17
- package/dist/src/blocks/FileBlockContent/helpers/render/createFileNameWithIcon.js.map +0 -1
- package/dist/src/blocks/FileBlockContent/helpers/render/createResizableFileBlockWrapper.js +0 -147
- package/dist/src/blocks/FileBlockContent/helpers/render/createResizableFileBlockWrapper.js.map +0 -1
- package/dist/src/blocks/FileBlockContent/helpers/toExternalHTML/createFigureWithCaption.js +0 -9
- package/dist/src/blocks/FileBlockContent/helpers/toExternalHTML/createFigureWithCaption.js.map +0 -1
- package/dist/src/blocks/FileBlockContent/helpers/toExternalHTML/createLinkWithCaption.js +0 -11
- package/dist/src/blocks/FileBlockContent/helpers/toExternalHTML/createLinkWithCaption.js.map +0 -1
- package/dist/src/blocks/FileBlockContent/uploadToTmpFilesDotOrg_DEV_ONLY.js +0 -15
- package/dist/src/blocks/FileBlockContent/uploadToTmpFilesDotOrg_DEV_ONLY.js.map +0 -1
- package/dist/src/blocks/HeadingBlockContent/HeadingBlockContent.js +0 -145
- package/dist/src/blocks/HeadingBlockContent/HeadingBlockContent.js.map +0 -1
- package/dist/src/blocks/ImageBlockContent/ImageBlockContent.js +0 -114
- package/dist/src/blocks/ImageBlockContent/ImageBlockContent.js.map +0 -1
- package/dist/src/blocks/ImageBlockContent/parseImageElement.js +0 -6
- package/dist/src/blocks/ImageBlockContent/parseImageElement.js.map +0 -1
- package/dist/src/blocks/ListItemBlockContent/BulletListItemBlockContent/BulletListItemBlockContent.js +0 -113
- package/dist/src/blocks/ListItemBlockContent/BulletListItemBlockContent/BulletListItemBlockContent.js.map +0 -1
- package/dist/src/blocks/ListItemBlockContent/CheckListItemBlockContent/CheckListItemBlockContent.js +0 -224
- package/dist/src/blocks/ListItemBlockContent/CheckListItemBlockContent/CheckListItemBlockContent.js.map +0 -1
- package/dist/src/blocks/ListItemBlockContent/ListItemKeyboardShortcuts.js +0 -45
- package/dist/src/blocks/ListItemBlockContent/ListItemKeyboardShortcuts.js.map +0 -1
- package/dist/src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListIndexingPlugin.js +0 -58
- package/dist/src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListIndexingPlugin.js.map +0 -1
- package/dist/src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListItemBlockContent.js +0 -130
- package/dist/src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListItemBlockContent.js.map +0 -1
- package/dist/src/blocks/ParagraphBlockContent/ParagraphBlockContent.js +0 -52
- package/dist/src/blocks/ParagraphBlockContent/ParagraphBlockContent.js.map +0 -1
- package/dist/src/blocks/TableBlockContent/TableBlockContent.js +0 -129
- package/dist/src/blocks/TableBlockContent/TableBlockContent.js.map +0 -1
- package/dist/src/blocks/TableBlockContent/TableExtension.js +0 -64
- package/dist/src/blocks/TableBlockContent/TableExtension.js.map +0 -1
- package/dist/src/blocks/VideoBlockContent/VideoBlockContent.js +0 -114
- package/dist/src/blocks/VideoBlockContent/VideoBlockContent.js.map +0 -1
- package/dist/src/blocks/VideoBlockContent/parseVideoElement.js +0 -6
- package/dist/src/blocks/VideoBlockContent/parseVideoElement.js.map +0 -1
- package/dist/src/blocks/defaultBlockHelpers.js +0 -50
- package/dist/src/blocks/defaultBlockHelpers.js.map +0 -1
- package/dist/src/blocks/defaultBlockTypeGuards.js +0 -40
- package/dist/src/blocks/defaultBlockTypeGuards.js.map +0 -1
- package/dist/src/blocks/defaultBlocks.js +0 -50
- package/dist/src/blocks/defaultBlocks.js.map +0 -1
- package/dist/src/blocks/defaultProps.js +0 -19
- package/dist/src/blocks/defaultProps.js.map +0 -1
- package/dist/src/editor/BlockNoteEditor.js +0 -751
- package/dist/src/editor/BlockNoteEditor.js.map +0 -1
- package/dist/src/editor/BlockNoteEditor.test.js +0 -65
- package/dist/src/editor/BlockNoteEditor.test.js.map +0 -1
- package/dist/src/editor/BlockNoteExtensions.js +0 -192
- package/dist/src/editor/BlockNoteExtensions.js.map +0 -1
- package/dist/src/editor/BlockNoteSchema.js +0 -38
- package/dist/src/editor/BlockNoteSchema.js.map +0 -1
- package/dist/src/editor/BlockNoteTipTapEditor.js +0 -169
- package/dist/src/editor/BlockNoteTipTapEditor.js.map +0 -1
- package/dist/src/editor/cursorPositionTypes.js +0 -2
- package/dist/src/editor/cursorPositionTypes.js.map +0 -1
- package/dist/src/editor/defaultColors.js +0 -77
- package/dist/src/editor/defaultColors.js.map +0 -1
- package/dist/src/editor/selectionTypes.js +0 -2
- package/dist/src/editor/selectionTypes.js.map +0 -1
- package/dist/src/editor/transformPasted.js +0 -79
- package/dist/src/editor/transformPasted.js.map +0 -1
- package/dist/src/exporter/Exporter.js +0 -36
- package/dist/src/exporter/Exporter.js.map +0 -1
- package/dist/src/exporter/index.js +0 -3
- package/dist/src/exporter/index.js.map +0 -1
- package/dist/src/exporter/mapping.js +0 -12
- package/dist/src/exporter/mapping.js.map +0 -1
- package/dist/src/extensions/BackgroundColor/BackgroundColorExtension.js +0 -30
- package/dist/src/extensions/BackgroundColor/BackgroundColorExtension.js.map +0 -1
- package/dist/src/extensions/BackgroundColor/BackgroundColorMark.js +0 -39
- package/dist/src/extensions/BackgroundColor/BackgroundColorMark.js.map +0 -1
- package/dist/src/extensions/FilePanel/FilePanelPlugin.js +0 -131
- package/dist/src/extensions/FilePanel/FilePanelPlugin.js.map +0 -1
- package/dist/src/extensions/FormattingToolbar/FormattingToolbarPlugin.js +0 -197
- package/dist/src/extensions/FormattingToolbar/FormattingToolbarPlugin.js.map +0 -1
- package/dist/src/extensions/KeyboardShortcuts/KeyboardShortcutsExtension.js +0 -341
- package/dist/src/extensions/KeyboardShortcuts/KeyboardShortcutsExtension.js.map +0 -1
- package/dist/src/extensions/LinkToolbar/LinkToolbarPlugin.js +0 -251
- package/dist/src/extensions/LinkToolbar/LinkToolbarPlugin.js.map +0 -1
- package/dist/src/extensions/LinkToolbar/protocols.js +0 -14
- package/dist/src/extensions/LinkToolbar/protocols.js.map +0 -1
- package/dist/src/extensions/NodeSelectionKeyboard/NodeSelectionKeyboardPlugin.js +0 -54
- package/dist/src/extensions/NodeSelectionKeyboard/NodeSelectionKeyboardPlugin.js.map +0 -1
- package/dist/src/extensions/Placeholder/PlaceholderPlugin.js +0 -90
- package/dist/src/extensions/Placeholder/PlaceholderPlugin.js.map +0 -1
- package/dist/src/extensions/PreviousBlockType/PreviousBlockTypePlugin.js +0 -187
- package/dist/src/extensions/PreviousBlockType/PreviousBlockTypePlugin.js.map +0 -1
- package/dist/src/extensions/SideMenu/MultipleNodeSelection.js +0 -68
- package/dist/src/extensions/SideMenu/MultipleNodeSelection.js.map +0 -1
- package/dist/src/extensions/SideMenu/SideMenuPlugin.js +0 -347
- package/dist/src/extensions/SideMenu/SideMenuPlugin.js.map +0 -1
- package/dist/src/extensions/SideMenu/dragging.js +0 -135
- package/dist/src/extensions/SideMenu/dragging.js.map +0 -1
- package/dist/src/extensions/SuggestionMenu/DefaultGridSuggestionItem.js +0 -2
- package/dist/src/extensions/SuggestionMenu/DefaultGridSuggestionItem.js.map +0 -1
- package/dist/src/extensions/SuggestionMenu/DefaultSuggestionItem.js +0 -2
- package/dist/src/extensions/SuggestionMenu/DefaultSuggestionItem.js.map +0 -1
- package/dist/src/extensions/SuggestionMenu/SuggestionPlugin.js +0 -245
- package/dist/src/extensions/SuggestionMenu/SuggestionPlugin.js.map +0 -1
- package/dist/src/extensions/SuggestionMenu/getDefaultEmojiPickerItems.js +0 -26
- package/dist/src/extensions/SuggestionMenu/getDefaultEmojiPickerItems.js.map +0 -1
- package/dist/src/extensions/SuggestionMenu/getDefaultSlashMenuItems.js +0 -241
- package/dist/src/extensions/SuggestionMenu/getDefaultSlashMenuItems.js.map +0 -1
- package/dist/src/extensions/TableHandles/TableHandlesPlugin.js +0 -579
- package/dist/src/extensions/TableHandles/TableHandlesPlugin.js.map +0 -1
- package/dist/src/extensions/TextAlignment/TextAlignmentExtension.js +0 -36
- package/dist/src/extensions/TextAlignment/TextAlignmentExtension.js.map +0 -1
- package/dist/src/extensions/TextColor/TextColorExtension.js +0 -29
- package/dist/src/extensions/TextColor/TextColorExtension.js.map +0 -1
- package/dist/src/extensions/TextColor/TextColorMark.js +0 -37
- package/dist/src/extensions/TextColor/TextColorMark.js.map +0 -1
- package/dist/src/extensions/TrailingNode/TrailingNodeExtension.js +0 -58
- package/dist/src/extensions/TrailingNode/TrailingNodeExtension.js.map +0 -1
- package/dist/src/extensions/UniqueID/UniqueID.js +0 -283
- package/dist/src/extensions/UniqueID/UniqueID.js.map +0 -1
- package/dist/src/extensions/getDraggableBlockFromElement.js +0 -13
- package/dist/src/extensions/getDraggableBlockFromElement.js.map +0 -1
- package/dist/src/extensions-shared/UiElementPosition.js +0 -2
- package/dist/src/extensions-shared/UiElementPosition.js.map +0 -1
- package/dist/src/i18n/dictionary.js +0 -4
- package/dist/src/i18n/dictionary.js.map +0 -1
- package/dist/src/i18n/locales/ar.js +0 -298
- package/dist/src/i18n/locales/ar.js.map +0 -1
- package/dist/src/i18n/locales/de.js +0 -313
- package/dist/src/i18n/locales/de.js.map +0 -1
- package/dist/src/i18n/locales/en.js +0 -314
- package/dist/src/i18n/locales/en.js.map +0 -1
- package/dist/src/i18n/locales/es.js +0 -312
- package/dist/src/i18n/locales/es.js.map +0 -1
- package/dist/src/i18n/locales/fr.js +0 -313
- package/dist/src/i18n/locales/fr.js.map +0 -1
- package/dist/src/i18n/locales/hr.js +0 -308
- package/dist/src/i18n/locales/hr.js.map +0 -1
- package/dist/src/i18n/locales/index.js +0 -16
- package/dist/src/i18n/locales/index.js.map +0 -1
- package/dist/src/i18n/locales/is.js +0 -305
- package/dist/src/i18n/locales/is.js.map +0 -1
- package/dist/src/i18n/locales/ja.js +0 -333
- package/dist/src/i18n/locales/ja.js.map +0 -1
- package/dist/src/i18n/locales/ko.js +0 -326
- package/dist/src/i18n/locales/ko.js.map +0 -1
- package/dist/src/i18n/locales/nl.js +0 -313
- package/dist/src/i18n/locales/nl.js.map +0 -1
- package/dist/src/i18n/locales/pl.js +0 -297
- package/dist/src/i18n/locales/pl.js.map +0 -1
- package/dist/src/i18n/locales/pt.js +0 -305
- package/dist/src/i18n/locales/pt.js.map +0 -1
- package/dist/src/i18n/locales/ru.js +0 -340
- package/dist/src/i18n/locales/ru.js.map +0 -1
- package/dist/src/i18n/locales/vi.js +0 -312
- package/dist/src/i18n/locales/vi.js.map +0 -1
- package/dist/src/i18n/locales/zh.js +0 -346
- package/dist/src/i18n/locales/zh.js.map +0 -1
- package/dist/src/index.js +0 -63
- package/dist/src/index.js.map +0 -1
- package/dist/src/pm-nodes/BlockContainer.js +0 -72
- package/dist/src/pm-nodes/BlockContainer.js.map +0 -1
- package/dist/src/pm-nodes/BlockGroup.js +0 -43
- package/dist/src/pm-nodes/BlockGroup.js.map +0 -1
- package/dist/src/pm-nodes/Doc.js +0 -7
- package/dist/src/pm-nodes/Doc.js.map +0 -1
- package/dist/src/pm-nodes/index.js +0 -4
- package/dist/src/pm-nodes/index.js.map +0 -1
- package/dist/src/schema/blocks/createSpec.js +0 -126
- package/dist/src/schema/blocks/createSpec.js.map +0 -1
- package/dist/src/schema/blocks/internal.js +0 -147
- package/dist/src/schema/blocks/internal.js.map +0 -1
- package/dist/src/schema/blocks/types.js +0 -2
- package/dist/src/schema/blocks/types.js.map +0 -1
- package/dist/src/schema/index.js +0 -11
- package/dist/src/schema/index.js.map +0 -1
- package/dist/src/schema/inlineContent/createSpec.js +0 -64
- package/dist/src/schema/inlineContent/createSpec.js.map +0 -1
- package/dist/src/schema/inlineContent/internal.js +0 -52
- package/dist/src/schema/inlineContent/internal.js.map +0 -1
- package/dist/src/schema/inlineContent/types.js +0 -10
- package/dist/src/schema/inlineContent/types.js.map +0 -1
- package/dist/src/schema/propTypes.js +0 -2
- package/dist/src/schema/propTypes.js.map +0 -1
- package/dist/src/schema/styles/createSpec.js +0 -48
- package/dist/src/schema/styles/createSpec.js.map +0 -1
- package/dist/src/schema/styles/internal.js +0 -53
- package/dist/src/schema/styles/internal.js.map +0 -1
- package/dist/src/schema/styles/types.js +0 -2
- package/dist/src/schema/styles/types.js.map +0 -1
- package/dist/src/util/EventEmitter.js +0 -33
- package/dist/src/util/EventEmitter.js.map +0 -1
- package/dist/src/util/browser.js +0 -17
- package/dist/src/util/browser.js.map +0 -1
- package/dist/src/util/combineByGroup.js +0 -20
- package/dist/src/util/combineByGroup.js.map +0 -1
- package/dist/src/util/esmDependencies.js +0 -35
- package/dist/src/util/esmDependencies.js.map +0 -1
- package/dist/src/util/string.js +0 -14
- package/dist/src/util/string.js.map +0 -1
- package/dist/src/util/typescript.js +0 -12
- package/dist/src/util/typescript.js.map +0 -1
- /package/src/api/clipboard/__snapshots__/{childToParent.html → internal/childToParent.html} +0 -0
- /package/src/api/clipboard/__snapshots__/{childrenToNextParent.html → internal/childrenToNextParent.html} +0 -0
- /package/src/api/clipboard/__snapshots__/{childrenToNextParentsChildren.html → internal/childrenToNextParentsChildren.html} +0 -0
- /package/src/api/clipboard/__snapshots__/{image.html → internal/image.html} +0 -0
- /package/src/api/clipboard/__snapshots__/{multipleChildren.html → internal/multipleChildren.html} +0 -0
- /package/src/api/clipboard/__snapshots__/{multipleStyledText.html → internal/multipleStyledText.html} +0 -0
- /package/src/api/clipboard/__snapshots__/{nestedImage.html → internal/nestedImage.html} +0 -0
- /package/src/api/clipboard/__snapshots__/{partialChildToParent.html → internal/partialChildToParent.html} +0 -0
- /package/src/api/clipboard/__snapshots__/{styledText.html → internal/styledText.html} +0 -0
- /package/src/api/clipboard/__snapshots__/{tableAllCells.html → internal/tableAllCells.html} +0 -0
- /package/src/api/clipboard/__snapshots__/{tableCell.html → internal/tableCell.html} +0 -0
- /package/src/api/clipboard/__snapshots__/{tableCellText.html → internal/tableCellText.html} +0 -0
- /package/src/api/clipboard/__snapshots__/{tableRow.html → internal/tableRow.html} +0 -0
- /package/src/api/clipboard/__snapshots__/{unstyledText.html → internal/unstyledText.html} +0 -0
- /package/types/src/api/clipboard/{clipboard.test.d.ts → clipboardExternal.test.d.ts} +0 -0
package/src/i18n/locales/hr.ts
CHANGED
|
@@ -21,26 +21,38 @@ export const hr = {
|
|
|
21
21
|
numbered_list: {
|
|
22
22
|
title: "Numerirani popis",
|
|
23
23
|
subtext: "Popis s numeriranim stavkama",
|
|
24
|
-
aliases: [
|
|
24
|
+
aliases: [
|
|
25
|
+
"poredaniPopis",
|
|
26
|
+
"stavkaPopisa",
|
|
27
|
+
"popis",
|
|
28
|
+
"numeriraniPopis",
|
|
29
|
+
"numerirani popis",
|
|
30
|
+
],
|
|
25
31
|
group: "Osnovni blokovi",
|
|
26
32
|
},
|
|
27
33
|
bullet_list: {
|
|
28
34
|
title: "Popis s oznakama",
|
|
29
35
|
subtext: "Popis s grafičkim oznakama",
|
|
30
|
-
aliases: [
|
|
36
|
+
aliases: [
|
|
37
|
+
"neporedaniPopis",
|
|
38
|
+
"stavkaPopisa",
|
|
39
|
+
"popis",
|
|
40
|
+
"popisSOznakama",
|
|
41
|
+
"popis s oznakama",
|
|
42
|
+
],
|
|
31
43
|
group: "Osnovni blokovi",
|
|
32
44
|
},
|
|
33
45
|
check_list: {
|
|
34
46
|
title: "Check lista",
|
|
35
47
|
subtext: "Popis s kućicama za označavanje",
|
|
36
48
|
aliases: [
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
49
|
+
"neporedaniPopis",
|
|
50
|
+
"stavkaPopisa",
|
|
51
|
+
"popis",
|
|
52
|
+
"popisZaProvjeru",
|
|
53
|
+
"check lista",
|
|
54
|
+
"označeni popis",
|
|
55
|
+
"kućicaZaOznačavanje",
|
|
44
56
|
],
|
|
45
57
|
group: "Osnovni blokovi",
|
|
46
58
|
},
|
|
@@ -56,17 +68,23 @@ export const hr = {
|
|
|
56
68
|
aliases: ["tablica"],
|
|
57
69
|
group: "Napredno",
|
|
58
70
|
},
|
|
71
|
+
page_break: {
|
|
72
|
+
title: "Prijelom stranice",
|
|
73
|
+
subtext: "Razdjelnik stranice",
|
|
74
|
+
aliases: ["page", "break", "separator", "prijelom", "razdjelnik"],
|
|
75
|
+
group: "Osnovni blokovi",
|
|
76
|
+
},
|
|
59
77
|
image: {
|
|
60
78
|
title: "Slika",
|
|
61
79
|
subtext: "Slika s podesivom veličinom i natpisom",
|
|
62
80
|
aliases: [
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
81
|
+
"slika",
|
|
82
|
+
"učitavanjeSlike",
|
|
83
|
+
"učitaj",
|
|
84
|
+
"img",
|
|
85
|
+
"fotografija",
|
|
86
|
+
"medij",
|
|
87
|
+
"url",
|
|
70
88
|
],
|
|
71
89
|
group: "Mediji",
|
|
72
90
|
},
|
|
@@ -74,13 +92,13 @@ export const hr = {
|
|
|
74
92
|
title: "Video",
|
|
75
93
|
subtext: "Video s podesivom veličinom i natpisom",
|
|
76
94
|
aliases: [
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
95
|
+
"video",
|
|
96
|
+
"učitavanjeVidea",
|
|
97
|
+
"učitaj",
|
|
98
|
+
"mp4",
|
|
99
|
+
"film",
|
|
100
|
+
"medij",
|
|
101
|
+
"url",
|
|
84
102
|
],
|
|
85
103
|
group: "Mediji",
|
|
86
104
|
},
|
|
@@ -88,13 +106,13 @@ export const hr = {
|
|
|
88
106
|
title: "Audio",
|
|
89
107
|
subtext: "Audio s natpisom",
|
|
90
108
|
aliases: [
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
109
|
+
"audio",
|
|
110
|
+
"učitavanjeAudija",
|
|
111
|
+
"učitaj",
|
|
112
|
+
"mp3",
|
|
113
|
+
"zvuk",
|
|
114
|
+
"medij",
|
|
115
|
+
"url",
|
|
98
116
|
],
|
|
99
117
|
group: "Mediji",
|
|
100
118
|
},
|
|
@@ -157,16 +175,16 @@ export const hr = {
|
|
|
157
175
|
text_title: "Tekst",
|
|
158
176
|
background_title: "Pozadina",
|
|
159
177
|
colors: {
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
178
|
+
default: "Zadano",
|
|
179
|
+
gray: "Siva",
|
|
180
|
+
brown: "Smeđa",
|
|
181
|
+
red: "Crvena",
|
|
182
|
+
orange: "Narančasta",
|
|
183
|
+
yellow: "Žuta",
|
|
184
|
+
green: "Zelena",
|
|
185
|
+
blue: "Plava",
|
|
186
|
+
purple: "Ljubičasta",
|
|
187
|
+
pink: "Ružičasta",
|
|
170
188
|
},
|
|
171
189
|
},
|
|
172
190
|
|
|
@@ -240,29 +258,29 @@ export const hr = {
|
|
|
240
258
|
file: "Ukloni datoteku",
|
|
241
259
|
} as Record<string, string>,
|
|
242
260
|
},
|
|
243
|
-
|
|
261
|
+
file_preview_toggle: {
|
|
244
262
|
tooltip: "Prikaži/sakrij pregled",
|
|
245
|
-
|
|
246
|
-
|
|
263
|
+
},
|
|
264
|
+
nest: {
|
|
247
265
|
tooltip: "Ugnijezdi blok",
|
|
248
266
|
secondary_tooltip: "Tab",
|
|
249
|
-
|
|
250
|
-
|
|
267
|
+
},
|
|
268
|
+
unnest: {
|
|
251
269
|
tooltip: "Razgnijezdi blok",
|
|
252
270
|
secondary_tooltip: "Shift+Tab",
|
|
253
|
-
|
|
254
|
-
|
|
271
|
+
},
|
|
272
|
+
align_left: {
|
|
255
273
|
tooltip: "Poravnaj tekst lijevo",
|
|
256
|
-
|
|
257
|
-
|
|
274
|
+
},
|
|
275
|
+
align_center: {
|
|
258
276
|
tooltip: "Poravnaj tekst po sredini",
|
|
259
|
-
|
|
260
|
-
|
|
277
|
+
},
|
|
278
|
+
align_right: {
|
|
261
279
|
tooltip: "Poravnaj tekst desno",
|
|
262
|
-
|
|
263
|
-
|
|
280
|
+
},
|
|
281
|
+
align_justify: {
|
|
264
282
|
tooltip: "Poravnaj tekst obostrano",
|
|
265
|
-
|
|
283
|
+
},
|
|
266
284
|
},
|
|
267
285
|
file_panel: {
|
|
268
286
|
upload: {
|
package/src/i18n/locales/is.ts
CHANGED
|
@@ -50,6 +50,12 @@ export const is: Dictionary = {
|
|
|
50
50
|
aliases: ["kóði", "pre"],
|
|
51
51
|
group: "Grunnblokkar",
|
|
52
52
|
},
|
|
53
|
+
page_break: {
|
|
54
|
+
title: "Síðubrot",
|
|
55
|
+
subtext: "Síðuskil",
|
|
56
|
+
aliases: ["page", "break", "separator", "síðubrot", "síðuskil"],
|
|
57
|
+
group: "Grunnblokkir",
|
|
58
|
+
},
|
|
53
59
|
table: {
|
|
54
60
|
title: "Tafla",
|
|
55
61
|
subtext: "Notað fyrir töflur",
|
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
export const it = {
|
|
2
|
+
slash_menu: {
|
|
3
|
+
heading: {
|
|
4
|
+
title: "Intestazione 1",
|
|
5
|
+
subtext: "Intestazione di primo livello",
|
|
6
|
+
aliases: ["h", "intestazione1", "h1"],
|
|
7
|
+
group: "Intestazioni",
|
|
8
|
+
},
|
|
9
|
+
heading_2: {
|
|
10
|
+
title: "Intestazione 2",
|
|
11
|
+
subtext: "Intestazione di sezione chiave",
|
|
12
|
+
aliases: ["h2", "intestazione2", "sottotitolo"],
|
|
13
|
+
group: "Intestazioni",
|
|
14
|
+
},
|
|
15
|
+
heading_3: {
|
|
16
|
+
title: "Intestazione 3",
|
|
17
|
+
subtext: "Intestazione di sottosezione e gruppo",
|
|
18
|
+
aliases: ["h3", "intestazione3", "sottotitolo"],
|
|
19
|
+
group: "Intestazioni",
|
|
20
|
+
},
|
|
21
|
+
numbered_list: {
|
|
22
|
+
title: "Elenco Numerato",
|
|
23
|
+
subtext: "Elenco con elementi ordinati",
|
|
24
|
+
aliases: ["ol", "li", "elenco", "elenconumerato", "elenco numerato"],
|
|
25
|
+
group: "Blocchi Base",
|
|
26
|
+
},
|
|
27
|
+
bullet_list: {
|
|
28
|
+
title: "Elenco Puntato",
|
|
29
|
+
subtext: "Elenco con elementi non ordinati",
|
|
30
|
+
aliases: ["ul", "li", "elenco", "elencopuntato", "elenco puntato"],
|
|
31
|
+
group: "Blocchi Base",
|
|
32
|
+
},
|
|
33
|
+
check_list: {
|
|
34
|
+
title: "Elenco di Controllo",
|
|
35
|
+
subtext: "Elenco con caselle di controllo",
|
|
36
|
+
aliases: [
|
|
37
|
+
"ul",
|
|
38
|
+
"li",
|
|
39
|
+
"elenco",
|
|
40
|
+
"elencocontrollo",
|
|
41
|
+
"elenco controllo",
|
|
42
|
+
"elenco verificato",
|
|
43
|
+
"casella di controllo",
|
|
44
|
+
],
|
|
45
|
+
group: "Blocchi Base",
|
|
46
|
+
},
|
|
47
|
+
paragraph: {
|
|
48
|
+
title: "Paragrafo",
|
|
49
|
+
subtext: "Il corpo del tuo documento",
|
|
50
|
+
aliases: ["p", "paragrafo"],
|
|
51
|
+
group: "Blocchi Base",
|
|
52
|
+
},
|
|
53
|
+
code_block: {
|
|
54
|
+
title: "Blocco di Codice",
|
|
55
|
+
subtext: "Blocco di codice con evidenziazione della sintassi",
|
|
56
|
+
aliases: ["code", "pre"],
|
|
57
|
+
group: "Blocchi Base",
|
|
58
|
+
},
|
|
59
|
+
table: {
|
|
60
|
+
title: "Tabella",
|
|
61
|
+
subtext: "Tabella con celle modificabili",
|
|
62
|
+
aliases: ["tabella"],
|
|
63
|
+
group: "Avanzato",
|
|
64
|
+
},
|
|
65
|
+
image: {
|
|
66
|
+
title: "Immagine",
|
|
67
|
+
subtext: "Immagine ridimensionabile con didascalia",
|
|
68
|
+
aliases: [
|
|
69
|
+
"immagine",
|
|
70
|
+
"caricaImmagine",
|
|
71
|
+
"carica",
|
|
72
|
+
"img",
|
|
73
|
+
"foto",
|
|
74
|
+
"media",
|
|
75
|
+
"url",
|
|
76
|
+
],
|
|
77
|
+
group: "Media",
|
|
78
|
+
},
|
|
79
|
+
video: {
|
|
80
|
+
title: "Video",
|
|
81
|
+
subtext: "Video ridimensionabile con didascalia",
|
|
82
|
+
aliases: [
|
|
83
|
+
"video",
|
|
84
|
+
"caricaVideo",
|
|
85
|
+
"carica",
|
|
86
|
+
"mp4",
|
|
87
|
+
"film",
|
|
88
|
+
"media",
|
|
89
|
+
"url",
|
|
90
|
+
],
|
|
91
|
+
group: "Media",
|
|
92
|
+
},
|
|
93
|
+
audio: {
|
|
94
|
+
title: "Audio",
|
|
95
|
+
subtext: "Audio incorporato con didascalia",
|
|
96
|
+
aliases: [
|
|
97
|
+
"audio",
|
|
98
|
+
"caricaAudio",
|
|
99
|
+
"carica",
|
|
100
|
+
"mp3",
|
|
101
|
+
"suono",
|
|
102
|
+
"media",
|
|
103
|
+
"url",
|
|
104
|
+
],
|
|
105
|
+
group: "Media",
|
|
106
|
+
},
|
|
107
|
+
file: {
|
|
108
|
+
title: "File",
|
|
109
|
+
subtext: "File incorporato",
|
|
110
|
+
aliases: ["file", "carica", "embed", "media", "url"],
|
|
111
|
+
group: "Media",
|
|
112
|
+
},
|
|
113
|
+
emoji: {
|
|
114
|
+
title: "Emoji",
|
|
115
|
+
subtext: "Cerca e inserisci un'emoji",
|
|
116
|
+
aliases: ["emoji", "emote", "emozione", "faccia"],
|
|
117
|
+
group: "Altri",
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
placeholders: {
|
|
121
|
+
default: "Inserisci testo o digita '/' per i comandi",
|
|
122
|
+
heading: "Intestazione",
|
|
123
|
+
bulletListItem: "Elenco",
|
|
124
|
+
numberedListItem: "Elenco",
|
|
125
|
+
checkListItem: "Elenco",
|
|
126
|
+
},
|
|
127
|
+
file_blocks: {
|
|
128
|
+
image: {
|
|
129
|
+
add_button_text: "Aggiungi immagine",
|
|
130
|
+
},
|
|
131
|
+
video: {
|
|
132
|
+
add_button_text: "Aggiungi video",
|
|
133
|
+
},
|
|
134
|
+
audio: {
|
|
135
|
+
add_button_text: "Aggiungi audio",
|
|
136
|
+
},
|
|
137
|
+
file: {
|
|
138
|
+
add_button_text: "Aggiungi file",
|
|
139
|
+
},
|
|
140
|
+
},
|
|
141
|
+
// from react package:
|
|
142
|
+
side_menu: {
|
|
143
|
+
add_block_label: "Aggiungi blocco",
|
|
144
|
+
drag_handle_label: "Apri menu blocco",
|
|
145
|
+
},
|
|
146
|
+
drag_handle: {
|
|
147
|
+
delete_menuitem: "Elimina",
|
|
148
|
+
colors_menuitem: "Colori",
|
|
149
|
+
},
|
|
150
|
+
table_handle: {
|
|
151
|
+
delete_column_menuitem: "Elimina colonna",
|
|
152
|
+
delete_row_menuitem: "Elimina riga",
|
|
153
|
+
add_left_menuitem: "Aggiungi colonna a sinistra",
|
|
154
|
+
add_right_menuitem: "Aggiungi colonna a destra",
|
|
155
|
+
add_above_menuitem: "Aggiungi riga sopra",
|
|
156
|
+
add_below_menuitem: "Aggiungi riga sotto",
|
|
157
|
+
},
|
|
158
|
+
suggestion_menu: {
|
|
159
|
+
no_items_title: "Nessun elemento trovato",
|
|
160
|
+
loading: "Caricamento…",
|
|
161
|
+
},
|
|
162
|
+
color_picker: {
|
|
163
|
+
text_title: "Testo",
|
|
164
|
+
background_title: "Sfondo",
|
|
165
|
+
colors: {
|
|
166
|
+
default: "Predefinito",
|
|
167
|
+
gray: "Grigio",
|
|
168
|
+
brown: "Marrone",
|
|
169
|
+
red: "Rosso",
|
|
170
|
+
orange: "Arancione",
|
|
171
|
+
yellow: "Giallo",
|
|
172
|
+
green: "Verde",
|
|
173
|
+
blue: "Blu",
|
|
174
|
+
purple: "Viola",
|
|
175
|
+
pink: "Rosa",
|
|
176
|
+
},
|
|
177
|
+
},
|
|
178
|
+
|
|
179
|
+
formatting_toolbar: {
|
|
180
|
+
bold: {
|
|
181
|
+
tooltip: "Grassetto",
|
|
182
|
+
secondary_tooltip: "Cmd+B",
|
|
183
|
+
},
|
|
184
|
+
italic: {
|
|
185
|
+
tooltip: "Corsivo",
|
|
186
|
+
secondary_tooltip: "Cmd+I",
|
|
187
|
+
},
|
|
188
|
+
underline: {
|
|
189
|
+
tooltip: "Sottolineato",
|
|
190
|
+
secondary_tooltip: "Cmd+U",
|
|
191
|
+
},
|
|
192
|
+
strike: {
|
|
193
|
+
tooltip: "Barrato",
|
|
194
|
+
secondary_tooltip: "Cmd+Shift+S",
|
|
195
|
+
},
|
|
196
|
+
code: {
|
|
197
|
+
tooltip: "Codice",
|
|
198
|
+
secondary_tooltip: "",
|
|
199
|
+
},
|
|
200
|
+
colors: {
|
|
201
|
+
tooltip: "Colori",
|
|
202
|
+
},
|
|
203
|
+
link: {
|
|
204
|
+
tooltip: "Crea link",
|
|
205
|
+
secondary_tooltip: "Cmd+K",
|
|
206
|
+
},
|
|
207
|
+
file_caption: {
|
|
208
|
+
tooltip: "Modifica didascalia",
|
|
209
|
+
input_placeholder: "Modifica didascalia",
|
|
210
|
+
},
|
|
211
|
+
file_replace: {
|
|
212
|
+
tooltip: {
|
|
213
|
+
image: "Sostituisci immagine",
|
|
214
|
+
video: "Sostituisci video",
|
|
215
|
+
audio: "Sostituisci audio",
|
|
216
|
+
file: "Sostituisci file",
|
|
217
|
+
} as Record<string, string>,
|
|
218
|
+
},
|
|
219
|
+
file_rename: {
|
|
220
|
+
tooltip: {
|
|
221
|
+
image: "Rinomina immagine",
|
|
222
|
+
video: "Rinomina video",
|
|
223
|
+
audio: "Rinomina audio",
|
|
224
|
+
file: "Rinomina file",
|
|
225
|
+
} as Record<string, string>,
|
|
226
|
+
input_placeholder: {
|
|
227
|
+
image: "Rinomina immagine",
|
|
228
|
+
video: "Rinomina video",
|
|
229
|
+
audio: "Rinomina audio",
|
|
230
|
+
file: "Rinomina file",
|
|
231
|
+
} as Record<string, string>,
|
|
232
|
+
},
|
|
233
|
+
file_download: {
|
|
234
|
+
tooltip: {
|
|
235
|
+
image: "Scarica immagine",
|
|
236
|
+
video: "Scarica video",
|
|
237
|
+
audio: "Scarica audio",
|
|
238
|
+
file: "Scarica file",
|
|
239
|
+
} as Record<string, string>,
|
|
240
|
+
},
|
|
241
|
+
file_delete: {
|
|
242
|
+
tooltip: {
|
|
243
|
+
image: "Elimina immagine",
|
|
244
|
+
video: "Elimina video",
|
|
245
|
+
audio: "Elimina audio",
|
|
246
|
+
file: "Elimina file",
|
|
247
|
+
} as Record<string, string>,
|
|
248
|
+
},
|
|
249
|
+
file_preview_toggle: {
|
|
250
|
+
tooltip: "Attiva/disattiva anteprima",
|
|
251
|
+
},
|
|
252
|
+
nest: {
|
|
253
|
+
tooltip: "Annida blocco",
|
|
254
|
+
secondary_tooltip: "Tab",
|
|
255
|
+
},
|
|
256
|
+
unnest: {
|
|
257
|
+
tooltip: "Disannida blocco",
|
|
258
|
+
secondary_tooltip: "Shift+Tab",
|
|
259
|
+
},
|
|
260
|
+
align_left: {
|
|
261
|
+
tooltip: "Allinea testo a sinistra",
|
|
262
|
+
},
|
|
263
|
+
align_center: {
|
|
264
|
+
tooltip: "Allinea testo al centro",
|
|
265
|
+
},
|
|
266
|
+
align_right: {
|
|
267
|
+
tooltip: "Allinea testo a destra",
|
|
268
|
+
},
|
|
269
|
+
align_justify: {
|
|
270
|
+
tooltip: "Giustifica testo",
|
|
271
|
+
},
|
|
272
|
+
},
|
|
273
|
+
file_panel: {
|
|
274
|
+
upload: {
|
|
275
|
+
title: "Carica",
|
|
276
|
+
file_placeholder: {
|
|
277
|
+
image: "Carica immagine",
|
|
278
|
+
video: "Carica video",
|
|
279
|
+
audio: "Carica audio",
|
|
280
|
+
file: "Carica file",
|
|
281
|
+
} as Record<string, string>,
|
|
282
|
+
upload_error: "Errore: Caricamento fallito",
|
|
283
|
+
},
|
|
284
|
+
embed: {
|
|
285
|
+
title: "Incorpora",
|
|
286
|
+
embed_button: {
|
|
287
|
+
image: "Incorpora immagine",
|
|
288
|
+
video: "Incorpora video",
|
|
289
|
+
audio: "Incorpora audio",
|
|
290
|
+
file: "Incorpora file",
|
|
291
|
+
} as Record<string, string>,
|
|
292
|
+
url_placeholder: "Inserisci URL",
|
|
293
|
+
},
|
|
294
|
+
},
|
|
295
|
+
link_toolbar: {
|
|
296
|
+
delete: {
|
|
297
|
+
tooltip: "Rimuovi link",
|
|
298
|
+
},
|
|
299
|
+
edit: {
|
|
300
|
+
text: "Modifica link",
|
|
301
|
+
tooltip: "Modifica",
|
|
302
|
+
},
|
|
303
|
+
open: {
|
|
304
|
+
tooltip: "Apri in una nuova scheda",
|
|
305
|
+
},
|
|
306
|
+
form: {
|
|
307
|
+
title_placeholder: "Modifica titolo",
|
|
308
|
+
url_placeholder: "Modifica URL",
|
|
309
|
+
},
|
|
310
|
+
},
|
|
311
|
+
generic: {
|
|
312
|
+
ctrl_shortcut: "Ctrl",
|
|
313
|
+
},
|
|
314
|
+
};
|
|
315
|
+
|
package/src/i18n/locales/ja.ts
CHANGED
|
@@ -74,6 +74,12 @@ export const ja: Dictionary = {
|
|
|
74
74
|
aliases: ["code", "pre", "コード", "コードブロック"],
|
|
75
75
|
group: "基本ブロック",
|
|
76
76
|
},
|
|
77
|
+
page_break: {
|
|
78
|
+
title: "改ページ",
|
|
79
|
+
subtext: "ページ区切り",
|
|
80
|
+
aliases: ["page", "break", "separator", "改ページ", "区切り"],
|
|
81
|
+
group: "基本ブロック",
|
|
82
|
+
},
|
|
77
83
|
table: {
|
|
78
84
|
title: "表",
|
|
79
85
|
subtext: "表に使用",
|
package/src/i18n/locales/ko.ts
CHANGED
|
@@ -58,6 +58,12 @@ export const ko: Dictionary = {
|
|
|
58
58
|
aliases: ["code", "pre"],
|
|
59
59
|
group: "기본 블록",
|
|
60
60
|
},
|
|
61
|
+
page_break: {
|
|
62
|
+
title: "페이지 나누기",
|
|
63
|
+
subtext: "페이지 구분자",
|
|
64
|
+
aliases: ["page", "break", "separator", "페이지", "구분자"],
|
|
65
|
+
group: "기본 블록",
|
|
66
|
+
},
|
|
61
67
|
table: {
|
|
62
68
|
title: "표",
|
|
63
69
|
subtext: "간단한 표를 추가합니다.",
|
package/src/i18n/locales/nl.ts
CHANGED
|
@@ -50,6 +50,12 @@ export const nl: Dictionary = {
|
|
|
50
50
|
aliases: ["code", "pre"],
|
|
51
51
|
group: "Basisblokken",
|
|
52
52
|
},
|
|
53
|
+
page_break: {
|
|
54
|
+
title: "Pagina-einde",
|
|
55
|
+
subtext: "Paginascheiding",
|
|
56
|
+
aliases: ["page", "break", "separator", "pagina", "scheiding"],
|
|
57
|
+
group: "Basisblokken",
|
|
58
|
+
},
|
|
53
59
|
table: {
|
|
54
60
|
title: "Tabel",
|
|
55
61
|
subtext: "Gebruikt voor tabellen",
|
package/src/i18n/locales/pl.ts
CHANGED
|
@@ -50,6 +50,12 @@ export const pl: Dictionary = {
|
|
|
50
50
|
aliases: ["kod", "pre"],
|
|
51
51
|
group: "Podstawowe bloki",
|
|
52
52
|
},
|
|
53
|
+
page_break: {
|
|
54
|
+
title: "Podział strony",
|
|
55
|
+
subtext: "Separator strony",
|
|
56
|
+
aliases: ["page", "break", "separator", "podział", "separator"],
|
|
57
|
+
group: "Podstawowe bloki",
|
|
58
|
+
},
|
|
53
59
|
table: {
|
|
54
60
|
title: "Tabela",
|
|
55
61
|
subtext: "Używana do tworzenia tabel",
|
package/src/i18n/locales/pt.ts
CHANGED
|
@@ -57,6 +57,12 @@ export const pt: Dictionary = {
|
|
|
57
57
|
aliases: ["codigo", "pre"],
|
|
58
58
|
group: "Blocos básicos",
|
|
59
59
|
},
|
|
60
|
+
page_break: {
|
|
61
|
+
title: "Quebra de página",
|
|
62
|
+
subtext: "Separador de página",
|
|
63
|
+
aliases: ["page", "break", "separator", "quebra", "separador"],
|
|
64
|
+
group: "Blocos básicos",
|
|
65
|
+
},
|
|
60
66
|
table: {
|
|
61
67
|
title: "Tabela",
|
|
62
68
|
subtext: "Usado para tabelas",
|
package/src/i18n/locales/ru.ts
CHANGED
|
@@ -75,6 +75,12 @@ export const ru: Dictionary = {
|
|
|
75
75
|
aliases: ["code", "pre", "блок кода"],
|
|
76
76
|
group: "Базовые блоки",
|
|
77
77
|
},
|
|
78
|
+
page_break: {
|
|
79
|
+
title: "Разрыв страницы",
|
|
80
|
+
subtext: "Разделитель страницы",
|
|
81
|
+
aliases: ["page", "break", "separator", "разрыв", "разделитель"],
|
|
82
|
+
group: "Основные блоки",
|
|
83
|
+
},
|
|
78
84
|
table: {
|
|
79
85
|
title: "Таблица",
|
|
80
86
|
subtext: "Используется для таблиц",
|
package/src/i18n/locales/vi.ts
CHANGED
|
@@ -57,6 +57,12 @@ export const vi: Dictionary = {
|
|
|
57
57
|
aliases: ["code", "pre"],
|
|
58
58
|
group: "Khối cơ bản",
|
|
59
59
|
},
|
|
60
|
+
page_break: {
|
|
61
|
+
title: "Ngắt trang",
|
|
62
|
+
subtext: "Phân cách trang",
|
|
63
|
+
aliases: ["page", "break", "separator", "ngắt", "phân cách"],
|
|
64
|
+
group: "Khối cơ bản",
|
|
65
|
+
},
|
|
60
66
|
table: {
|
|
61
67
|
title: "Bảng",
|
|
62
68
|
subtext: "Sử dụng để tạo bảng",
|
package/src/i18n/locales/zh.ts
CHANGED
|
@@ -75,6 +75,12 @@ export const zh: Dictionary = {
|
|
|
75
75
|
aliases: ["code", "pre", "代码", "预格式"],
|
|
76
76
|
group: "基础",
|
|
77
77
|
},
|
|
78
|
+
page_break: {
|
|
79
|
+
title: "分页符",
|
|
80
|
+
subtext: "页面分隔符",
|
|
81
|
+
aliases: ["page", "break", "separator", "分页", "分隔符"],
|
|
82
|
+
group: "基础",
|
|
83
|
+
},
|
|
78
84
|
table: {
|
|
79
85
|
title: "表格",
|
|
80
86
|
subtext: "使用表格",
|
package/src/index.ts
CHANGED
|
@@ -6,6 +6,9 @@ export * from "./api/nodeUtil.js";
|
|
|
6
6
|
export * from "./api/testUtil/index.js";
|
|
7
7
|
export * from "./blocks/AudioBlockContent/AudioBlockContent.js";
|
|
8
8
|
export * from "./blocks/CodeBlockContent/CodeBlockContent.js";
|
|
9
|
+
export * from "./blocks/PageBreakBlockContent/PageBreakBlockContent.js";
|
|
10
|
+
export * from "./blocks/PageBreakBlockContent/getPageBreakSlashMenuItems.js";
|
|
11
|
+
export * from "./blocks/PageBreakBlockContent/schema.js";
|
|
9
12
|
export * from "./blocks/FileBlockContent/FileBlockContent.js";
|
|
10
13
|
export * from "./blocks/FileBlockContent/helpers/parse/parseEmbedElement.js";
|
|
11
14
|
export * from "./blocks/FileBlockContent/helpers/parse/parseFigureElement.js";
|
|
@@ -148,7 +148,7 @@ export function createBlockSpec<
|
|
|
148
148
|
: "") as T["content"] extends "inline" ? "inline*" : "",
|
|
149
149
|
group: "blockContent",
|
|
150
150
|
selectable: blockConfig.isSelectable ?? true,
|
|
151
|
-
|
|
151
|
+
isolating: true,
|
|
152
152
|
addAttributes() {
|
|
153
153
|
return propsToAttributes(blockConfig.propSchema);
|
|
154
154
|
},
|