@blocknote/core 0.25.1 → 0.25.2
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.cjs +3 -3
- package/dist/blocknote.cjs.map +1 -1
- package/dist/blocknote.js +30 -36
- package/dist/blocknote.js.map +1 -1
- package/dist/comments.cjs.map +1 -1
- package/dist/comments.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/webpack-stats.json +1 -1
- package/package.json +2 -2
- package/src/api/nodeConversions/nodeToBlock.ts +2 -2
- package/src/comments/threadstore/ThreadStore.ts +1 -1
- package/src/editor/BlockNoteEditor.ts +0 -6
- package/src/extensions/Comments/CommentMark.ts +0 -1
- package/src/extensions/Comments/CommentsPlugin.ts +3 -1
- package/src/extensions/TableHandles/TableHandlesPlugin.ts +1 -3
- package/types/src/blocks/CodeBlockContent/shiki.bundle.d.ts +82 -0
- package/types/src/comments/threadstore/ThreadStore.d.ts +1 -1
package/dist/webpack-stats.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"builtAt":1741193153445,"assets":[{"name":"blocknote.cjs","size":287384},{"name":"comments.cjs","size":11720},{"name":"comments.cjs.map","size":47300},{"name":"blocknote.cjs.map","size":1059927}],"chunks":[{"id":"a1ee98a","entry":true,"initial":true,"files":["blocknote.cjs"],"names":["blocknote"]},{"id":"1627b02","entry":true,"initial":true,"files":["comments.cjs"],"names":["comments"]}],"modules":[{"name":"./src/i18n/locales/ar.ts","size":7622,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/de.ts","size":8039,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/en.ts","size":7724,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/es.ts","size":7897,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/fr.ts","size":8964,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/hr.ts","size":7828,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/is.ts","size":7959,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/it.ts","size":7990,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/ja.ts","size":7258,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/ko.ts","size":7034,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/nl.ts","size":8189,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/no.ts","size":8071,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/pl.ts","size":7874,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/pt.ts","size":8126,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/ru.ts","size":8806,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/uk.ts","size":8740,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/vi.ts","size":7976,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/zh.ts","size":6961,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/index.ts","size":0,"chunks":["a1ee98a"]},{"name":"./src/util/typescript.ts","size":331,"chunks":["a1ee98a"]},{"name":"./src/api/getBlockInfoFromPos.ts","size":3648,"chunks":["a1ee98a"]},{"name":"./src/extensions/UniqueID/UniqueID.ts","size":9054,"chunks":["a1ee98a"]},{"name":"./src/schema/inlineContent/types.ts","size":302,"chunks":["a1ee98a"]},{"name":"./src/util/table.ts","size":1212,"chunks":["a1ee98a"]},{"name":"./src/util/browser.ts","size":536,"chunks":["a1ee98a"]},{"name":"./src/blocks/defaultBlockHelpers.ts","size":1755,"chunks":["a1ee98a"]},{"name":"./src/blocks/defaultProps.ts","size":269,"chunks":["a1ee98a"]},{"name":"./src/util/string.ts","size":299,"chunks":["a1ee98a"]},{"name":"./src/schema/blocks/internal.ts","size":4130,"chunks":["a1ee98a"]},{"name":"./src/schema/blocks/createSpec.ts","size":3609,"chunks":["a1ee98a"]},{"name":"./src/api/nodeConversions/nodeToBlock.ts","size":9510,"chunks":["a1ee98a"]},{"name":"./src/schema/inlineContent/internal.ts","size":1398,"chunks":["a1ee98a"]},{"name":"./src/schema/inlineContent/createSpec.ts","size":2739,"chunks":["a1ee98a"]},{"name":"./src/schema/styles/internal.ts","size":1162,"chunks":["a1ee98a"]},{"name":"./src/schema/styles/createSpec.ts","size":1263,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/tables/tables.ts","size":10346,"chunks":["a1ee98a"]},{"name":"./src/api/nodeConversions/blockToNode.ts","size":6903,"chunks":["a1ee98a"]},{"name":"./src/api/nodeUtil.ts","size":490,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/commands/updateBlock/updateBlock.ts","size":4754,"chunks":["a1ee98a"]},{"name":"./src/api/exporters/html/util/serializeBlocksExternalHTML.ts","size":5122,"chunks":["a1ee98a"]},{"name":"./src/api/exporters/html/externalHTMLExporter.ts","size":886,"chunks":["a1ee98a"]},{"name":"./src/api/exporters/html/util/serializeBlocksInternalHTML.ts","size":3264,"chunks":["a1ee98a"]},{"name":"./src/api/exporters/html/internalHTMLSerializer.ts","size":288,"chunks":["a1ee98a"]},{"name":"./src/blocks/FileBlockContent/helpers/parse/parseFigureElement.ts","size":342,"chunks":["a1ee98a"]},{"name":"./src/blocks/FileBlockContent/helpers/render/createAddFileButton.ts","size":1725,"chunks":["a1ee98a"]},{"name":"./src/blocks/FileBlockContent/helpers/render/createFileNameWithIcon.ts","size":753,"chunks":["a1ee98a"]},{"name":"./src/blocks/FileBlockContent/helpers/render/createFileBlockWrapper.ts","size":1428,"chunks":["a1ee98a"]},{"name":"./src/blocks/FileBlockContent/helpers/toExternalHTML/createFigureWithCaption.ts","size":307,"chunks":["a1ee98a"]},{"name":"./src/blocks/FileBlockContent/helpers/toExternalHTML/createLinkWithCaption.ts","size":294,"chunks":["a1ee98a"]},{"name":"./src/blocks/AudioBlockContent/parseAudioElement.ts","size":108,"chunks":["a1ee98a"]},{"name":"./src/blocks/AudioBlockContent/AudioBlockContent.ts","size":3155,"chunks":["a1ee98a"]},{"name":"./src/blocks/CodeBlockContent/defaultSupportedLanguages.ts","size":1707,"chunks":["a1ee98a"]},{"name":"./src/blocks/CodeBlockContent/CodeBlockContent.ts","size":9104,"chunks":["a1ee98a"]},{"name":"./src/blocks/FileBlockContent/helpers/parse/parseEmbedElement.ts","size":108,"chunks":["a1ee98a"]},{"name":"./src/blocks/FileBlockContent/FileBlockContent.ts","size":1460,"chunks":["a1ee98a"]},{"name":"./src/blocks/FileBlockContent/helpers/render/createResizableFileBlockWrapper.ts","size":4637,"chunks":["a1ee98a"]},{"name":"./src/blocks/FileBlockContent/uploadToTmpFilesDotOrg_DEV_ONLY.ts","size":316,"chunks":["a1ee98a"]},{"name":"./src/blocks/ImageBlockContent/parseImageElement.ts","size":175,"chunks":["a1ee98a"]},{"name":"./src/blocks/ImageBlockContent/ImageBlockContent.ts","size":3243,"chunks":["a1ee98a"]},{"name":"./src/blocks/PageBreakBlockContent/PageBreakBlockContent.ts","size":854,"chunks":["a1ee98a"]},{"name":"./src/extensions/BackgroundColor/BackgroundColorMark.ts","size":946,"chunks":["a1ee98a"]},{"name":"./src/extensions/TextColor/TextColorMark.ts","size":866,"chunks":["a1ee98a"]},{"name":"./src/blocks/HeadingBlockContent/HeadingBlockContent.ts","size":3418,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/commands/splitBlock/splitBlock.ts","size":868,"chunks":["a1ee98a"]},{"name":"./src/blocks/ListItemBlockContent/ListItemKeyboardShortcuts.ts","size":1429,"chunks":["a1ee98a"]},{"name":"./src/blocks/ListItemBlockContent/BulletListItemBlockContent/BulletListItemBlockContent.ts","size":3415,"chunks":["a1ee98a"]},{"name":"./src/blocks/ListItemBlockContent/CheckListItemBlockContent/CheckListItemBlockContent.ts","size":7148,"chunks":["a1ee98a"]},{"name":"./src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListIndexingPlugin.ts","size":2207,"chunks":["a1ee98a"]},{"name":"./src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListItemBlockContent.ts","size":4427,"chunks":["a1ee98a"]},{"name":"./src/blocks/ParagraphBlockContent/ParagraphBlockContent.ts","size":1434,"chunks":["a1ee98a"]},{"name":"./src/blocks/TableBlockContent/TableExtension.ts","size":2275,"chunks":["a1ee98a"]},{"name":"./src/blocks/TableBlockContent/TableBlockContent.ts","size":4708,"chunks":["a1ee98a"]},{"name":"./src/blocks/VideoBlockContent/parseVideoElement.ts","size":175,"chunks":["a1ee98a"]},{"name":"./src/blocks/VideoBlockContent/VideoBlockContent.ts","size":3162,"chunks":["a1ee98a"]},{"name":"./src/blocks/defaultBlocks.ts","size":1147,"chunks":["a1ee98a"]},{"name":"./src/blocks/defaultBlockTypeGuards.ts","size":1688,"chunks":["a1ee98a"]},{"name":"./src/extensions/SuggestionMenu/getDefaultSlashMenuItems.ts","size":6763,"chunks":["a1ee98a"]},{"name":"./src/editor/BlockNoteSchema.ts","size":1044,"chunks":["a1ee98a"]},{"name":"./src/blocks/PageBreakBlockContent/schema.ts","size":350,"chunks":["a1ee98a"]},{"name":"./src/blocks/PageBreakBlockContent/getPageBreakSlashMenuItems.ts","size":536,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/commands/insertBlocks/insertBlocks.ts","size":1141,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/commands/moveBlocks/moveBlocks.ts","size":5693,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/commands/nestBlock/nestBlock.ts","size":2324,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/commands/replaceBlocks/replaceBlocks.ts","size":2533,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/commands/removeBlocks/removeBlocks.ts","size":123,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/getBlock/getBlock.ts","size":2452,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/insertContentAt.ts","size":1120,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/selections/selection.ts","size":4698,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/selections/textCursorPosition/textCursorPosition.ts","size":2880,"chunks":["a1ee98a"]},{"name":"./src/util/esmDependencies.ts","size":820,"chunks":["a1ee98a"]},{"name":"./src/api/exporters/markdown/removeUnderlinesRehypePlugin.ts","size":752,"chunks":["a1ee98a"]},{"name":"./src/api/exporters/markdown/util/addSpacesToCheckboxesRehypePlugin.ts","size":969,"chunks":["a1ee98a"]},{"name":"./src/api/exporters/markdown/markdownExporter.ts","size":837,"chunks":["a1ee98a"]},{"name":"./src/api/parsers/html/util/nestedLists.ts","size":2174,"chunks":["a1ee98a"]},{"name":"./src/api/parsers/html/parseHTML.ts","size":503,"chunks":["a1ee98a"]},{"name":"./src/api/parsers/markdown/parseMarkdown.ts","size":1097,"chunks":["a1ee98a"]},{"name":"./src/api/clipboard/fromClipboard/acceptedMIMETypes.ts","size":115,"chunks":["a1ee98a"]},{"name":"./src/api/clipboard/fromClipboard/handleFileInsertion.ts","size":3917,"chunks":["a1ee98a"]},{"name":"./src/api/clipboard/fromClipboard/fileDropExtension.ts","size":884,"chunks":["a1ee98a"]},{"name":"./src/api/clipboard/fromClipboard/handleVSCodePaste.ts","size":661,"chunks":["a1ee98a"]},{"name":"./src/api/clipboard/fromClipboard/pasteExtension.ts","size":1552,"chunks":["a1ee98a"]},{"name":"./src/api/nodeConversions/fragmentToBlocks.ts","size":859,"chunks":["a1ee98a"]},{"name":"./src/api/clipboard/toClipboard/copyExtension.ts","size":5228,"chunks":["a1ee98a"]},{"name":"./src/extensions/BackgroundColor/BackgroundColorExtension.ts","size":819,"chunks":["a1ee98a"]},{"name":"./src/extensions/Collaboration/createCollaborationExtensions.ts","size":3553,"chunks":["a1ee98a"]},{"name":"./src/extensions/Comments/CommentMark.ts","size":1486,"chunks":["a1ee98a"]},{"name":"./src/util/EventEmitter.ts","size":744,"chunks":["a1ee98a"]},{"name":"./src/extensions/Comments/userstore/UserStore.ts","size":1354,"chunks":["a1ee98a"]},{"name":"./src/extensions/Comments/CommentsPlugin.ts","size":6396,"chunks":["a1ee98a"]},{"name":"./src/extensions/FilePanel/FilePanelPlugin.ts","size":3584,"chunks":["a1ee98a"]},{"name":"./src/extensions/FormattingToolbar/FormattingToolbarPlugin.ts","size":5323,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/commands/mergeBlocks/mergeBlocks.ts","size":3228,"chunks":["a1ee98a"]},{"name":"./src/extensions/KeyboardShortcuts/KeyboardShortcutsExtension.ts","size":14774,"chunks":["a1ee98a"]},{"name":"./src/extensions/LinkToolbar/LinkToolbarPlugin.ts","size":7611,"chunks":["a1ee98a"]},{"name":"./src/extensions/LinkToolbar/protocols.ts","size":172,"chunks":["a1ee98a"]},{"name":"./src/extensions/NodeSelectionKeyboard/NodeSelectionKeyboardPlugin.ts","size":1195,"chunks":["a1ee98a"]},{"name":"./src/extensions/Placeholder/PlaceholderPlugin.ts","size":3609,"chunks":["a1ee98a"]},{"name":"./src/extensions/PreviousBlockType/PreviousBlockTypePlugin.ts","size":4826,"chunks":["a1ee98a"]},{"name":"./src/extensions/ShowSelection/ShowSelectionPlugin.ts","size":967,"chunks":["a1ee98a"]},{"name":"./src/extensions/getDraggableBlockFromElement.ts","size":404,"chunks":["a1ee98a"]},{"name":"./src/extensions/SideMenu/MultipleNodeSelection.ts","size":1616,"chunks":["a1ee98a"]},{"name":"./src/extensions/SideMenu/dragging.ts","size":4482,"chunks":["a1ee98a"]},{"name":"./src/extensions/SideMenu/SideMenuPlugin.ts","size":14087,"chunks":["a1ee98a"]},{"name":"./src/extensions/SuggestionMenu/SuggestionPlugin.ts","size":8070,"chunks":["a1ee98a"]},{"name":"./src/extensions/TableHandles/TableHandlesPlugin.ts","size":27024,"chunks":["a1ee98a"]},{"name":"./src/extensions/TextAlignment/TextAlignmentExtension.ts","size":976,"chunks":["a1ee98a"]},{"name":"./src/extensions/TextColor/TextColorExtension.ts","size":753,"chunks":["a1ee98a"]},{"name":"./src/extensions/TrailingNode/TrailingNodeExtension.ts","size":1563,"chunks":["a1ee98a"]},{"name":"./src/pm-nodes/BlockContainer.ts","size":2038,"chunks":["a1ee98a"]},{"name":"./src/pm-nodes/BlockGroup.ts","size":1102,"chunks":["a1ee98a"]},{"name":"./src/pm-nodes/Doc.ts","size":90,"chunks":["a1ee98a"]},{"name":"./src/editor/BlockNoteExtensions.ts","size":4887,"chunks":["a1ee98a"]},{"name":"./src/editor/transformPasted.ts","size":2604,"chunks":["a1ee98a"]},{"name":"./src/editor/BlockNoteTipTapEditor.ts","size":3846,"chunks":["a1ee98a"]},{"name":"./src/style.css","size":0,"chunks":["a1ee98a"]},{"name":"./src/editor/BlockNoteEditor.ts","size":29763,"chunks":["a1ee98a"]},{"name":"./src/editor/defaultColors.ts","size":1193,"chunks":["a1ee98a"]},{"name":"./src/exporter/Exporter.ts","size":1075,"chunks":["a1ee98a"]},{"name":"./src/exporter/mapping.ts","size":197,"chunks":["a1ee98a"]},{"name":"./src/extensions/SuggestionMenu/getDefaultEmojiPickerItems.ts","size":1204,"chunks":["a1ee98a"]},{"name":"./src/util/combineByGroup.ts","size":550,"chunks":["a1ee98a"]},{"name":"./src/api/testUtil/partialBlockTestUtil.ts","size":3860,"chunks":["a1ee98a"]},{"name":"./src/index.ts","size":0,"chunks":["a1ee98a"]},{"name":"./src/comments/threadstore/ThreadStoreAuth.ts","size":25,"chunks":["1627b02"]},{"name":"./src/comments/threadstore/DefaultThreadStoreAuth.ts","size":2014,"chunks":["1627b02"]},{"name":"./src/comments/threadstore/ThreadStore.ts","size":77,"chunks":["1627b02"]},{"name":"./src/comments/threadstore/TipTapThreadStore.ts","size":5321,"chunks":["1627b02"]},{"name":"./src/comments/threadstore/yjs/yjsHelpers.ts","size":2907,"chunks":["1627b02"]},{"name":"./src/comments/threadstore/yjs/YjsThreadStoreBase.ts","size":790,"chunks":["1627b02"]},{"name":"./src/comments/threadstore/yjs/RESTYjsThreadStore.ts","size":2069,"chunks":["1627b02"]},{"name":"./src/comments/threadstore/yjs/YjsThreadStore.ts","size":7223,"chunks":["1627b02"]},{"name":"./src/comments/index.ts","size":0,"chunks":["1627b02"]}]}
|
|
1
|
+
{"builtAt":1741855634620,"assets":[{"name":"blocknote.cjs","size":287175},{"name":"comments.cjs","size":11720},{"name":"comments.cjs.map","size":47301},{"name":"blocknote.cjs.map","size":1059573}],"chunks":[{"id":"a1ee98a","entry":true,"initial":true,"files":["blocknote.cjs"],"names":["blocknote"]},{"id":"1627b02","entry":true,"initial":true,"files":["comments.cjs"],"names":["comments"]}],"modules":[{"name":"./src/i18n/locales/ar.ts","size":7622,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/de.ts","size":8039,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/en.ts","size":7724,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/es.ts","size":7897,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/fr.ts","size":8964,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/hr.ts","size":7828,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/is.ts","size":7959,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/it.ts","size":7990,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/ja.ts","size":7258,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/ko.ts","size":7034,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/nl.ts","size":8189,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/no.ts","size":8071,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/pl.ts","size":7874,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/pt.ts","size":8126,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/ru.ts","size":8806,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/uk.ts","size":8740,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/vi.ts","size":7976,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/zh.ts","size":6961,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/index.ts","size":0,"chunks":["a1ee98a"]},{"name":"./src/util/typescript.ts","size":331,"chunks":["a1ee98a"]},{"name":"./src/api/getBlockInfoFromPos.ts","size":3648,"chunks":["a1ee98a"]},{"name":"./src/extensions/UniqueID/UniqueID.ts","size":9054,"chunks":["a1ee98a"]},{"name":"./src/schema/inlineContent/types.ts","size":302,"chunks":["a1ee98a"]},{"name":"./src/util/table.ts","size":1212,"chunks":["a1ee98a"]},{"name":"./src/util/browser.ts","size":536,"chunks":["a1ee98a"]},{"name":"./src/blocks/defaultBlockHelpers.ts","size":1755,"chunks":["a1ee98a"]},{"name":"./src/blocks/defaultProps.ts","size":269,"chunks":["a1ee98a"]},{"name":"./src/util/string.ts","size":299,"chunks":["a1ee98a"]},{"name":"./src/schema/blocks/internal.ts","size":4130,"chunks":["a1ee98a"]},{"name":"./src/schema/blocks/createSpec.ts","size":3609,"chunks":["a1ee98a"]},{"name":"./src/api/nodeConversions/nodeToBlock.ts","size":9512,"chunks":["a1ee98a"]},{"name":"./src/schema/inlineContent/internal.ts","size":1398,"chunks":["a1ee98a"]},{"name":"./src/schema/inlineContent/createSpec.ts","size":2739,"chunks":["a1ee98a"]},{"name":"./src/schema/styles/internal.ts","size":1162,"chunks":["a1ee98a"]},{"name":"./src/schema/styles/createSpec.ts","size":1263,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/tables/tables.ts","size":10346,"chunks":["a1ee98a"]},{"name":"./src/api/nodeConversions/blockToNode.ts","size":6903,"chunks":["a1ee98a"]},{"name":"./src/api/nodeUtil.ts","size":490,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/commands/updateBlock/updateBlock.ts","size":4754,"chunks":["a1ee98a"]},{"name":"./src/api/exporters/html/util/serializeBlocksExternalHTML.ts","size":5122,"chunks":["a1ee98a"]},{"name":"./src/api/exporters/html/externalHTMLExporter.ts","size":886,"chunks":["a1ee98a"]},{"name":"./src/api/exporters/html/util/serializeBlocksInternalHTML.ts","size":3264,"chunks":["a1ee98a"]},{"name":"./src/api/exporters/html/internalHTMLSerializer.ts","size":288,"chunks":["a1ee98a"]},{"name":"./src/blocks/FileBlockContent/helpers/parse/parseFigureElement.ts","size":342,"chunks":["a1ee98a"]},{"name":"./src/blocks/FileBlockContent/helpers/render/createAddFileButton.ts","size":1725,"chunks":["a1ee98a"]},{"name":"./src/blocks/FileBlockContent/helpers/render/createFileNameWithIcon.ts","size":753,"chunks":["a1ee98a"]},{"name":"./src/blocks/FileBlockContent/helpers/render/createFileBlockWrapper.ts","size":1428,"chunks":["a1ee98a"]},{"name":"./src/blocks/FileBlockContent/helpers/toExternalHTML/createFigureWithCaption.ts","size":307,"chunks":["a1ee98a"]},{"name":"./src/blocks/FileBlockContent/helpers/toExternalHTML/createLinkWithCaption.ts","size":294,"chunks":["a1ee98a"]},{"name":"./src/blocks/AudioBlockContent/parseAudioElement.ts","size":108,"chunks":["a1ee98a"]},{"name":"./src/blocks/AudioBlockContent/AudioBlockContent.ts","size":3155,"chunks":["a1ee98a"]},{"name":"./src/blocks/CodeBlockContent/defaultSupportedLanguages.ts","size":1707,"chunks":["a1ee98a"]},{"name":"./src/blocks/CodeBlockContent/CodeBlockContent.ts","size":9104,"chunks":["a1ee98a"]},{"name":"./src/blocks/FileBlockContent/helpers/parse/parseEmbedElement.ts","size":108,"chunks":["a1ee98a"]},{"name":"./src/blocks/FileBlockContent/FileBlockContent.ts","size":1460,"chunks":["a1ee98a"]},{"name":"./src/blocks/FileBlockContent/helpers/render/createResizableFileBlockWrapper.ts","size":4637,"chunks":["a1ee98a"]},{"name":"./src/blocks/FileBlockContent/uploadToTmpFilesDotOrg_DEV_ONLY.ts","size":316,"chunks":["a1ee98a"]},{"name":"./src/blocks/ImageBlockContent/parseImageElement.ts","size":175,"chunks":["a1ee98a"]},{"name":"./src/blocks/ImageBlockContent/ImageBlockContent.ts","size":3243,"chunks":["a1ee98a"]},{"name":"./src/blocks/PageBreakBlockContent/PageBreakBlockContent.ts","size":854,"chunks":["a1ee98a"]},{"name":"./src/extensions/BackgroundColor/BackgroundColorMark.ts","size":946,"chunks":["a1ee98a"]},{"name":"./src/extensions/TextColor/TextColorMark.ts","size":866,"chunks":["a1ee98a"]},{"name":"./src/blocks/HeadingBlockContent/HeadingBlockContent.ts","size":3418,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/commands/splitBlock/splitBlock.ts","size":868,"chunks":["a1ee98a"]},{"name":"./src/blocks/ListItemBlockContent/ListItemKeyboardShortcuts.ts","size":1429,"chunks":["a1ee98a"]},{"name":"./src/blocks/ListItemBlockContent/BulletListItemBlockContent/BulletListItemBlockContent.ts","size":3415,"chunks":["a1ee98a"]},{"name":"./src/blocks/ListItemBlockContent/CheckListItemBlockContent/CheckListItemBlockContent.ts","size":7148,"chunks":["a1ee98a"]},{"name":"./src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListIndexingPlugin.ts","size":2207,"chunks":["a1ee98a"]},{"name":"./src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListItemBlockContent.ts","size":4427,"chunks":["a1ee98a"]},{"name":"./src/blocks/ParagraphBlockContent/ParagraphBlockContent.ts","size":1434,"chunks":["a1ee98a"]},{"name":"./src/blocks/TableBlockContent/TableExtension.ts","size":2275,"chunks":["a1ee98a"]},{"name":"./src/blocks/TableBlockContent/TableBlockContent.ts","size":4708,"chunks":["a1ee98a"]},{"name":"./src/blocks/VideoBlockContent/parseVideoElement.ts","size":175,"chunks":["a1ee98a"]},{"name":"./src/blocks/VideoBlockContent/VideoBlockContent.ts","size":3162,"chunks":["a1ee98a"]},{"name":"./src/blocks/defaultBlocks.ts","size":1147,"chunks":["a1ee98a"]},{"name":"./src/blocks/defaultBlockTypeGuards.ts","size":1688,"chunks":["a1ee98a"]},{"name":"./src/extensions/SuggestionMenu/getDefaultSlashMenuItems.ts","size":6763,"chunks":["a1ee98a"]},{"name":"./src/editor/BlockNoteSchema.ts","size":1044,"chunks":["a1ee98a"]},{"name":"./src/blocks/PageBreakBlockContent/schema.ts","size":350,"chunks":["a1ee98a"]},{"name":"./src/blocks/PageBreakBlockContent/getPageBreakSlashMenuItems.ts","size":536,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/commands/insertBlocks/insertBlocks.ts","size":1141,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/commands/moveBlocks/moveBlocks.ts","size":5693,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/commands/nestBlock/nestBlock.ts","size":2324,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/commands/replaceBlocks/replaceBlocks.ts","size":2533,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/commands/removeBlocks/removeBlocks.ts","size":123,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/getBlock/getBlock.ts","size":2452,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/insertContentAt.ts","size":1120,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/selections/selection.ts","size":4698,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/selections/textCursorPosition/textCursorPosition.ts","size":2880,"chunks":["a1ee98a"]},{"name":"./src/util/esmDependencies.ts","size":820,"chunks":["a1ee98a"]},{"name":"./src/api/exporters/markdown/removeUnderlinesRehypePlugin.ts","size":752,"chunks":["a1ee98a"]},{"name":"./src/api/exporters/markdown/util/addSpacesToCheckboxesRehypePlugin.ts","size":969,"chunks":["a1ee98a"]},{"name":"./src/api/exporters/markdown/markdownExporter.ts","size":837,"chunks":["a1ee98a"]},{"name":"./src/api/parsers/html/util/nestedLists.ts","size":2174,"chunks":["a1ee98a"]},{"name":"./src/api/parsers/html/parseHTML.ts","size":503,"chunks":["a1ee98a"]},{"name":"./src/api/parsers/markdown/parseMarkdown.ts","size":1097,"chunks":["a1ee98a"]},{"name":"./src/api/clipboard/fromClipboard/acceptedMIMETypes.ts","size":115,"chunks":["a1ee98a"]},{"name":"./src/api/clipboard/fromClipboard/handleFileInsertion.ts","size":3917,"chunks":["a1ee98a"]},{"name":"./src/api/clipboard/fromClipboard/fileDropExtension.ts","size":884,"chunks":["a1ee98a"]},{"name":"./src/api/clipboard/fromClipboard/handleVSCodePaste.ts","size":661,"chunks":["a1ee98a"]},{"name":"./src/api/clipboard/fromClipboard/pasteExtension.ts","size":1552,"chunks":["a1ee98a"]},{"name":"./src/api/nodeConversions/fragmentToBlocks.ts","size":859,"chunks":["a1ee98a"]},{"name":"./src/api/clipboard/toClipboard/copyExtension.ts","size":5228,"chunks":["a1ee98a"]},{"name":"./src/extensions/BackgroundColor/BackgroundColorExtension.ts","size":819,"chunks":["a1ee98a"]},{"name":"./src/extensions/Collaboration/createCollaborationExtensions.ts","size":3553,"chunks":["a1ee98a"]},{"name":"./src/extensions/Comments/CommentMark.ts","size":1428,"chunks":["a1ee98a"]},{"name":"./src/util/EventEmitter.ts","size":744,"chunks":["a1ee98a"]},{"name":"./src/extensions/Comments/userstore/UserStore.ts","size":1354,"chunks":["a1ee98a"]},{"name":"./src/extensions/Comments/CommentsPlugin.ts","size":6448,"chunks":["a1ee98a"]},{"name":"./src/extensions/FilePanel/FilePanelPlugin.ts","size":3584,"chunks":["a1ee98a"]},{"name":"./src/extensions/FormattingToolbar/FormattingToolbarPlugin.ts","size":5323,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/commands/mergeBlocks/mergeBlocks.ts","size":3228,"chunks":["a1ee98a"]},{"name":"./src/extensions/KeyboardShortcuts/KeyboardShortcutsExtension.ts","size":14774,"chunks":["a1ee98a"]},{"name":"./src/extensions/LinkToolbar/LinkToolbarPlugin.ts","size":7611,"chunks":["a1ee98a"]},{"name":"./src/extensions/LinkToolbar/protocols.ts","size":172,"chunks":["a1ee98a"]},{"name":"./src/extensions/NodeSelectionKeyboard/NodeSelectionKeyboardPlugin.ts","size":1195,"chunks":["a1ee98a"]},{"name":"./src/extensions/Placeholder/PlaceholderPlugin.ts","size":3609,"chunks":["a1ee98a"]},{"name":"./src/extensions/PreviousBlockType/PreviousBlockTypePlugin.ts","size":4826,"chunks":["a1ee98a"]},{"name":"./src/extensions/ShowSelection/ShowSelectionPlugin.ts","size":967,"chunks":["a1ee98a"]},{"name":"./src/extensions/getDraggableBlockFromElement.ts","size":404,"chunks":["a1ee98a"]},{"name":"./src/extensions/SideMenu/MultipleNodeSelection.ts","size":1616,"chunks":["a1ee98a"]},{"name":"./src/extensions/SideMenu/dragging.ts","size":4482,"chunks":["a1ee98a"]},{"name":"./src/extensions/SideMenu/SideMenuPlugin.ts","size":14087,"chunks":["a1ee98a"]},{"name":"./src/extensions/SuggestionMenu/SuggestionPlugin.ts","size":8070,"chunks":["a1ee98a"]},{"name":"./src/extensions/TableHandles/TableHandlesPlugin.ts","size":26922,"chunks":["a1ee98a"]},{"name":"./src/extensions/TextAlignment/TextAlignmentExtension.ts","size":976,"chunks":["a1ee98a"]},{"name":"./src/extensions/TextColor/TextColorExtension.ts","size":753,"chunks":["a1ee98a"]},{"name":"./src/extensions/TrailingNode/TrailingNodeExtension.ts","size":1563,"chunks":["a1ee98a"]},{"name":"./src/pm-nodes/BlockContainer.ts","size":2038,"chunks":["a1ee98a"]},{"name":"./src/pm-nodes/BlockGroup.ts","size":1102,"chunks":["a1ee98a"]},{"name":"./src/pm-nodes/Doc.ts","size":90,"chunks":["a1ee98a"]},{"name":"./src/editor/BlockNoteExtensions.ts","size":4887,"chunks":["a1ee98a"]},{"name":"./src/editor/transformPasted.ts","size":2604,"chunks":["a1ee98a"]},{"name":"./src/editor/BlockNoteTipTapEditor.ts","size":3846,"chunks":["a1ee98a"]},{"name":"./src/style.css","size":0,"chunks":["a1ee98a"]},{"name":"./src/editor/BlockNoteEditor.ts","size":29564,"chunks":["a1ee98a"]},{"name":"./src/editor/defaultColors.ts","size":1193,"chunks":["a1ee98a"]},{"name":"./src/exporter/Exporter.ts","size":1075,"chunks":["a1ee98a"]},{"name":"./src/exporter/mapping.ts","size":197,"chunks":["a1ee98a"]},{"name":"./src/extensions/SuggestionMenu/getDefaultEmojiPickerItems.ts","size":1204,"chunks":["a1ee98a"]},{"name":"./src/util/combineByGroup.ts","size":550,"chunks":["a1ee98a"]},{"name":"./src/api/testUtil/partialBlockTestUtil.ts","size":3860,"chunks":["a1ee98a"]},{"name":"./src/index.ts","size":0,"chunks":["a1ee98a"]},{"name":"./src/comments/threadstore/ThreadStoreAuth.ts","size":25,"chunks":["1627b02"]},{"name":"./src/comments/threadstore/DefaultThreadStoreAuth.ts","size":2014,"chunks":["1627b02"]},{"name":"./src/comments/threadstore/ThreadStore.ts","size":77,"chunks":["1627b02"]},{"name":"./src/comments/threadstore/TipTapThreadStore.ts","size":5321,"chunks":["1627b02"]},{"name":"./src/comments/threadstore/yjs/yjsHelpers.ts","size":2907,"chunks":["1627b02"]},{"name":"./src/comments/threadstore/yjs/YjsThreadStoreBase.ts","size":790,"chunks":["1627b02"]},{"name":"./src/comments/threadstore/yjs/RESTYjsThreadStore.ts","size":2069,"chunks":["1627b02"]},{"name":"./src/comments/threadstore/yjs/YjsThreadStore.ts","size":7223,"chunks":["1627b02"]},{"name":"./src/comments/index.ts","size":0,"chunks":["1627b02"]}]}
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"*.css"
|
|
7
7
|
],
|
|
8
8
|
"license": "MPL-2.0",
|
|
9
|
-
"version": "0.25.
|
|
9
|
+
"version": "0.25.2",
|
|
10
10
|
"files": [
|
|
11
11
|
"dist",
|
|
12
12
|
"types",
|
|
@@ -137,5 +137,5 @@
|
|
|
137
137
|
"access": "public",
|
|
138
138
|
"registry": "https://registry.npmjs.org/"
|
|
139
139
|
},
|
|
140
|
-
"gitHead": "
|
|
140
|
+
"gitHead": "8bb9bc6be7b7865ff3a6baffef1877ab079244e9"
|
|
141
141
|
}
|
|
@@ -112,13 +112,13 @@ export function contentNodeToTableContent<
|
|
|
112
112
|
});
|
|
113
113
|
|
|
114
114
|
for (let i = 0; i < headerMatrix.length; i++) {
|
|
115
|
-
if (headerMatrix[i]
|
|
115
|
+
if (headerMatrix[i]?.every((isHeader) => isHeader)) {
|
|
116
116
|
ret.headerRows = (ret.headerRows ?? 0) + 1;
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
for (let i = 0; i < headerMatrix[0]?.length; i++) {
|
|
121
|
-
if (headerMatrix
|
|
121
|
+
if (headerMatrix?.every((row) => row[i])) {
|
|
122
122
|
ret.headerCols = (ret.headerCols ?? 0) + 1;
|
|
123
123
|
}
|
|
124
124
|
}
|
|
@@ -587,12 +587,6 @@ export class BlockNoteEditor<
|
|
|
587
587
|
);
|
|
588
588
|
}
|
|
589
589
|
|
|
590
|
-
if (newOptions.comments && !collaborationEnabled) {
|
|
591
|
-
throw new Error(
|
|
592
|
-
"Comments are only supported when collaboration is enabled, please set the collaboration option"
|
|
593
|
-
);
|
|
594
|
-
}
|
|
595
|
-
|
|
596
590
|
const initialContent =
|
|
597
591
|
newOptions.initialContent ||
|
|
598
592
|
(collaborationEnabled
|
|
@@ -283,7 +283,9 @@ export class CommentsPlugin extends EventEmitter<any> {
|
|
|
283
283
|
head: pmSelection.head,
|
|
284
284
|
anchor: pmSelection.anchor,
|
|
285
285
|
},
|
|
286
|
-
yjs:
|
|
286
|
+
yjs: ystate
|
|
287
|
+
? getRelativeSelection(ystate.binding, view.state)
|
|
288
|
+
: undefined, // if we're not using yjs
|
|
287
289
|
};
|
|
288
290
|
|
|
289
291
|
await this.threadStore.addThreadToDocument({
|
|
@@ -394,9 +394,7 @@ export class TableHandlesView<
|
|
|
394
394
|
(element) => element.tagName === "TD" || element.tagName === "TH"
|
|
395
395
|
);
|
|
396
396
|
if (tableCellElements.length === 0) {
|
|
397
|
-
|
|
398
|
-
"Could not find table cell element that the mouse cursor is hovering over."
|
|
399
|
-
);
|
|
397
|
+
return;
|
|
400
398
|
}
|
|
401
399
|
const tableCellElement = tableCellElements[0];
|
|
402
400
|
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import type { DynamicImportThemeRegistration, HighlighterGeneric } from "@shikijs/types";
|
|
2
|
+
type BundledLanguage = keyof typeof bundledLanguages;
|
|
3
|
+
type BundledTheme = "github-dark";
|
|
4
|
+
type Highlighter = HighlighterGeneric<BundledLanguage, BundledTheme>;
|
|
5
|
+
declare const bundledLanguages: {
|
|
6
|
+
c: () => Promise<typeof import("@shikijs/langs-precompiled/c")>;
|
|
7
|
+
cpp: () => Promise<typeof import("@shikijs/langs-precompiled/cpp")>;
|
|
8
|
+
"c++": () => Promise<typeof import("@shikijs/langs-precompiled/cpp")>;
|
|
9
|
+
css: () => Promise<typeof import("@shikijs/langs-precompiled/css")>;
|
|
10
|
+
glsl: () => Promise<typeof import("@shikijs/langs-precompiled/glsl")>;
|
|
11
|
+
graphql: () => Promise<typeof import("@shikijs/langs-precompiled/graphql")>;
|
|
12
|
+
gql: () => Promise<typeof import("@shikijs/langs-precompiled/graphql")>;
|
|
13
|
+
haml: () => Promise<typeof import("@shikijs/langs-precompiled/haml")>;
|
|
14
|
+
html: () => Promise<typeof import("@shikijs/langs-precompiled/html")>;
|
|
15
|
+
java: () => Promise<typeof import("@shikijs/langs-precompiled/java")>;
|
|
16
|
+
javascript: () => Promise<typeof import("@shikijs/langs-precompiled/javascript")>;
|
|
17
|
+
js: () => Promise<typeof import("@shikijs/langs-precompiled/javascript")>;
|
|
18
|
+
json: () => Promise<typeof import("@shikijs/langs-precompiled/json")>;
|
|
19
|
+
jsonc: () => Promise<typeof import("@shikijs/langs-precompiled/jsonc")>;
|
|
20
|
+
jsonl: () => Promise<typeof import("@shikijs/langs-precompiled/jsonl")>;
|
|
21
|
+
jsx: () => Promise<typeof import("@shikijs/langs-precompiled/jsx")>;
|
|
22
|
+
julia: () => Promise<typeof import("@shikijs/langs-precompiled/julia")>;
|
|
23
|
+
jl: () => Promise<typeof import("@shikijs/langs-precompiled/julia")>;
|
|
24
|
+
less: () => Promise<typeof import("@shikijs/langs-precompiled/less")>;
|
|
25
|
+
markdown: () => Promise<typeof import("@shikijs/langs-precompiled/markdown")>;
|
|
26
|
+
md: () => Promise<typeof import("@shikijs/langs-precompiled/markdown")>;
|
|
27
|
+
mdx: () => Promise<typeof import("@shikijs/langs-precompiled/mdx")>;
|
|
28
|
+
php: () => Promise<typeof import("@shikijs/langs-precompiled/php")>;
|
|
29
|
+
postcss: () => Promise<typeof import("@shikijs/langs-precompiled/postcss")>;
|
|
30
|
+
pug: () => Promise<typeof import("@shikijs/langs-precompiled/pug")>;
|
|
31
|
+
jade: () => Promise<typeof import("@shikijs/langs-precompiled/pug")>;
|
|
32
|
+
python: () => Promise<typeof import("@shikijs/langs-precompiled/python")>;
|
|
33
|
+
py: () => Promise<typeof import("@shikijs/langs-precompiled/python")>;
|
|
34
|
+
r: () => Promise<typeof import("@shikijs/langs-precompiled/r")>;
|
|
35
|
+
regexp: () => Promise<typeof import("@shikijs/langs-precompiled/regexp")>;
|
|
36
|
+
regex: () => Promise<typeof import("@shikijs/langs-precompiled/regexp")>;
|
|
37
|
+
sass: () => Promise<typeof import("@shikijs/langs-precompiled/sass")>;
|
|
38
|
+
scss: () => Promise<typeof import("@shikijs/langs-precompiled/scss")>;
|
|
39
|
+
shellscript: () => Promise<typeof import("@shikijs/langs-precompiled/shellscript")>;
|
|
40
|
+
bash: () => Promise<typeof import("@shikijs/langs-precompiled/shellscript")>;
|
|
41
|
+
sh: () => Promise<typeof import("@shikijs/langs-precompiled/shellscript")>;
|
|
42
|
+
shell: () => Promise<typeof import("@shikijs/langs-precompiled/shellscript")>;
|
|
43
|
+
zsh: () => Promise<typeof import("@shikijs/langs-precompiled/shellscript")>;
|
|
44
|
+
sql: () => Promise<typeof import("@shikijs/langs-precompiled/sql")>;
|
|
45
|
+
svelte: () => Promise<typeof import("@shikijs/langs-precompiled/svelte")>;
|
|
46
|
+
typescript: () => Promise<typeof import("@shikijs/langs-precompiled/typescript")>;
|
|
47
|
+
ts: () => Promise<typeof import("@shikijs/langs-precompiled/typescript")>;
|
|
48
|
+
vue: () => Promise<typeof import("@shikijs/langs-precompiled/vue")>;
|
|
49
|
+
"vue-html": () => Promise<typeof import("@shikijs/langs-precompiled/vue-html")>;
|
|
50
|
+
wasm: () => Promise<typeof import("@shikijs/langs-precompiled/wasm")>;
|
|
51
|
+
wgsl: () => Promise<typeof import("@shikijs/langs-precompiled/wgsl")>;
|
|
52
|
+
xml: () => Promise<typeof import("@shikijs/langs-precompiled/xml")>;
|
|
53
|
+
yaml: () => Promise<typeof import("@shikijs/langs-precompiled/yaml")>;
|
|
54
|
+
yml: () => Promise<typeof import("@shikijs/langs-precompiled/yaml")>;
|
|
55
|
+
tsx: () => Promise<typeof import("@shikijs/langs-precompiled/tsx")>;
|
|
56
|
+
typescriptreact: () => Promise<typeof import("@shikijs/langs-precompiled/tsx")>;
|
|
57
|
+
haskell: () => Promise<typeof import("@shikijs/langs-precompiled/haskell")>;
|
|
58
|
+
hs: () => Promise<typeof import("@shikijs/langs-precompiled/haskell")>;
|
|
59
|
+
"c#": () => Promise<typeof import("@shikijs/langs-precompiled/csharp")>;
|
|
60
|
+
csharp: () => Promise<typeof import("@shikijs/langs-precompiled/csharp")>;
|
|
61
|
+
cs: () => Promise<typeof import("@shikijs/langs-precompiled/csharp")>;
|
|
62
|
+
latex: () => Promise<typeof import("@shikijs/langs-precompiled/latex")>;
|
|
63
|
+
lua: () => Promise<typeof import("@shikijs/langs-precompiled/lua")>;
|
|
64
|
+
mermaid: () => Promise<typeof import("@shikijs/langs-precompiled/mermaid")>;
|
|
65
|
+
mmd: () => Promise<typeof import("@shikijs/langs-precompiled/mermaid")>;
|
|
66
|
+
ruby: () => Promise<typeof import("@shikijs/langs-precompiled/ruby")>;
|
|
67
|
+
rb: () => Promise<typeof import("@shikijs/langs-precompiled/ruby")>;
|
|
68
|
+
rust: () => Promise<typeof import("@shikijs/langs-precompiled/rust")>;
|
|
69
|
+
rs: () => Promise<typeof import("@shikijs/langs-precompiled/rust")>;
|
|
70
|
+
scala: () => Promise<typeof import("@shikijs/langs-precompiled/scala")>;
|
|
71
|
+
swift: () => Promise<typeof import("@shikijs/langs/swift")>;
|
|
72
|
+
kotlin: () => Promise<typeof import("@shikijs/langs-precompiled/kotlin")>;
|
|
73
|
+
kt: () => Promise<typeof import("@shikijs/langs-precompiled/kotlin")>;
|
|
74
|
+
kts: () => Promise<typeof import("@shikijs/langs-precompiled/kotlin")>;
|
|
75
|
+
"objective-c": () => Promise<typeof import("@shikijs/langs-precompiled/objective-c")>;
|
|
76
|
+
objc: () => Promise<typeof import("@shikijs/langs-precompiled/objective-c")>;
|
|
77
|
+
};
|
|
78
|
+
declare const bundledThemes: Record<"github-dark", DynamicImportThemeRegistration>;
|
|
79
|
+
declare const createHighlighter: import("@shikijs/types").CreateHighlighterFactory<"html" | "ruby" | "rb" | "javascript" | "yaml" | "markdown" | "c" | "cpp" | "c++" | "css" | "glsl" | "graphql" | "gql" | "haml" | "java" | "js" | "json" | "jsonc" | "jsonl" | "jsx" | "julia" | "jl" | "less" | "md" | "mdx" | "php" | "postcss" | "pug" | "jade" | "python" | "py" | "r" | "regexp" | "regex" | "sass" | "scss" | "shellscript" | "bash" | "sh" | "shell" | "zsh" | "sql" | "svelte" | "typescript" | "ts" | "vue" | "vue-html" | "wasm" | "wgsl" | "xml" | "yml" | "tsx" | "typescriptreact" | "haskell" | "hs" | "csharp" | "c#" | "cs" | "latex" | "lua" | "mermaid" | "mmd" | "rust" | "rs" | "scala" | "swift" | "kotlin" | "kt" | "kts" | "objective-c" | "objc", "github-dark">;
|
|
80
|
+
declare const codeToHtml: (code: string, options: import("@shikijs/types").CodeToHastOptions<"html" | "ruby" | "rb" | "javascript" | "yaml" | "markdown" | "c" | "cpp" | "c++" | "css" | "glsl" | "graphql" | "gql" | "haml" | "java" | "js" | "json" | "jsonc" | "jsonl" | "jsx" | "julia" | "jl" | "less" | "md" | "mdx" | "php" | "postcss" | "pug" | "jade" | "python" | "py" | "r" | "regexp" | "regex" | "sass" | "scss" | "shellscript" | "bash" | "sh" | "shell" | "zsh" | "sql" | "svelte" | "typescript" | "ts" | "vue" | "vue-html" | "wasm" | "wgsl" | "xml" | "yml" | "tsx" | "typescriptreact" | "haskell" | "hs" | "csharp" | "c#" | "cs" | "latex" | "lua" | "mermaid" | "mmd" | "rust" | "rs" | "scala" | "swift" | "kotlin" | "kt" | "kts" | "objective-c" | "objc", "github-dark">) => Promise<string>, codeToHast: (code: string, options: import("@shikijs/types").CodeToHastOptions<"html" | "ruby" | "rb" | "javascript" | "yaml" | "markdown" | "c" | "cpp" | "c++" | "css" | "glsl" | "graphql" | "gql" | "haml" | "java" | "js" | "json" | "jsonc" | "jsonl" | "jsx" | "julia" | "jl" | "less" | "md" | "mdx" | "php" | "postcss" | "pug" | "jade" | "python" | "py" | "r" | "regexp" | "regex" | "sass" | "scss" | "shellscript" | "bash" | "sh" | "shell" | "zsh" | "sql" | "svelte" | "typescript" | "ts" | "vue" | "vue-html" | "wasm" | "wgsl" | "xml" | "yml" | "tsx" | "typescriptreact" | "haskell" | "hs" | "csharp" | "c#" | "cs" | "latex" | "lua" | "mermaid" | "mmd" | "rust" | "rs" | "scala" | "swift" | "kotlin" | "kt" | "kts" | "objective-c" | "objc", "github-dark">) => Promise<import("hast").Root>, codeToTokensBase: (code: string, options: import("@shikijs/types").RequireKeys<import("@shikijs/types").CodeToTokensBaseOptions<"html" | "ruby" | "rb" | "javascript" | "yaml" | "markdown" | "c" | "cpp" | "c++" | "css" | "glsl" | "graphql" | "gql" | "haml" | "java" | "js" | "json" | "jsonc" | "jsonl" | "jsx" | "julia" | "jl" | "less" | "md" | "mdx" | "php" | "postcss" | "pug" | "jade" | "python" | "py" | "r" | "regexp" | "regex" | "sass" | "scss" | "shellscript" | "bash" | "sh" | "shell" | "zsh" | "sql" | "svelte" | "typescript" | "ts" | "vue" | "vue-html" | "wasm" | "wgsl" | "xml" | "yml" | "tsx" | "typescriptreact" | "haskell" | "hs" | "csharp" | "c#" | "cs" | "latex" | "lua" | "mermaid" | "mmd" | "rust" | "rs" | "scala" | "swift" | "kotlin" | "kt" | "kts" | "objective-c" | "objc", "github-dark">, "theme" | "lang">) => Promise<import("@shikijs/types").ThemedToken[][]>, codeToTokens: (code: string, options: import("@shikijs/types").CodeToTokensOptions<"html" | "ruby" | "rb" | "javascript" | "yaml" | "markdown" | "c" | "cpp" | "c++" | "css" | "glsl" | "graphql" | "gql" | "haml" | "java" | "js" | "json" | "jsonc" | "jsonl" | "jsx" | "julia" | "jl" | "less" | "md" | "mdx" | "php" | "postcss" | "pug" | "jade" | "python" | "py" | "r" | "regexp" | "regex" | "sass" | "scss" | "shellscript" | "bash" | "sh" | "shell" | "zsh" | "sql" | "svelte" | "typescript" | "ts" | "vue" | "vue-html" | "wasm" | "wgsl" | "xml" | "yml" | "tsx" | "typescriptreact" | "haskell" | "hs" | "csharp" | "c#" | "cs" | "latex" | "lua" | "mermaid" | "mmd" | "rust" | "rs" | "scala" | "swift" | "kotlin" | "kt" | "kts" | "objective-c" | "objc", "github-dark">) => Promise<import("@shikijs/types").TokensResult>, codeToTokensWithThemes: (code: string, options: import("@shikijs/types").RequireKeys<import("@shikijs/types").CodeToTokensWithThemesOptions<"html" | "ruby" | "rb" | "javascript" | "yaml" | "markdown" | "c" | "cpp" | "c++" | "css" | "glsl" | "graphql" | "gql" | "haml" | "java" | "js" | "json" | "jsonc" | "jsonl" | "jsx" | "julia" | "jl" | "less" | "md" | "mdx" | "php" | "postcss" | "pug" | "jade" | "python" | "py" | "r" | "regexp" | "regex" | "sass" | "scss" | "shellscript" | "bash" | "sh" | "shell" | "zsh" | "sql" | "svelte" | "typescript" | "ts" | "vue" | "vue-html" | "wasm" | "wgsl" | "xml" | "yml" | "tsx" | "typescriptreact" | "haskell" | "hs" | "csharp" | "c#" | "cs" | "latex" | "lua" | "mermaid" | "mmd" | "rust" | "rs" | "scala" | "swift" | "kotlin" | "kt" | "kts" | "objective-c" | "objc", "github-dark">, "lang" | "themes">) => Promise<import("@shikijs/types").ThemedTokenWithVariants[][]>, getSingletonHighlighter: (options?: Partial<import("@shikijs/types").BundledHighlighterOptions<"html" | "ruby" | "rb" | "javascript" | "yaml" | "markdown" | "c" | "cpp" | "c++" | "css" | "glsl" | "graphql" | "gql" | "haml" | "java" | "js" | "json" | "jsonc" | "jsonl" | "jsx" | "julia" | "jl" | "less" | "md" | "mdx" | "php" | "postcss" | "pug" | "jade" | "python" | "py" | "r" | "regexp" | "regex" | "sass" | "scss" | "shellscript" | "bash" | "sh" | "shell" | "zsh" | "sql" | "svelte" | "typescript" | "ts" | "vue" | "vue-html" | "wasm" | "wgsl" | "xml" | "yml" | "tsx" | "typescriptreact" | "haskell" | "hs" | "csharp" | "c#" | "cs" | "latex" | "lua" | "mermaid" | "mmd" | "rust" | "rs" | "scala" | "swift" | "kotlin" | "kt" | "kts" | "objective-c" | "objc", "github-dark">> | undefined) => Promise<HighlighterGeneric<"html" | "ruby" | "rb" | "javascript" | "yaml" | "markdown" | "c" | "cpp" | "c++" | "css" | "glsl" | "graphql" | "gql" | "haml" | "java" | "js" | "json" | "jsonc" | "jsonl" | "jsx" | "julia" | "jl" | "less" | "md" | "mdx" | "php" | "postcss" | "pug" | "jade" | "python" | "py" | "r" | "regexp" | "regex" | "sass" | "scss" | "shellscript" | "bash" | "sh" | "shell" | "zsh" | "sql" | "svelte" | "typescript" | "ts" | "vue" | "vue-html" | "wasm" | "wgsl" | "xml" | "yml" | "tsx" | "typescriptreact" | "haskell" | "hs" | "csharp" | "c#" | "cs" | "latex" | "lua" | "mermaid" | "mmd" | "rust" | "rs" | "scala" | "swift" | "kotlin" | "kt" | "kts" | "objective-c" | "objc", "github-dark">>, getLastGrammarState: ((element: import("hast").Root | import("@shikijs/types").ThemedToken[][]) => import("@shikijs/types").GrammarState) | ((code: string, options: import("@shikijs/types").CodeToTokensBaseOptions<"html" | "ruby" | "rb" | "javascript" | "yaml" | "markdown" | "c" | "cpp" | "c++" | "css" | "glsl" | "graphql" | "gql" | "haml" | "java" | "js" | "json" | "jsonc" | "jsonl" | "jsx" | "julia" | "jl" | "less" | "md" | "mdx" | "php" | "postcss" | "pug" | "jade" | "python" | "py" | "r" | "regexp" | "regex" | "sass" | "scss" | "shellscript" | "bash" | "sh" | "shell" | "zsh" | "sql" | "svelte" | "typescript" | "ts" | "vue" | "vue-html" | "wasm" | "wgsl" | "xml" | "yml" | "tsx" | "typescriptreact" | "haskell" | "hs" | "csharp" | "c#" | "cs" | "latex" | "lua" | "mermaid" | "mmd" | "rust" | "rs" | "scala" | "swift" | "kotlin" | "kt" | "kts" | "objective-c" | "objc", "github-dark">) => Promise<import("@shikijs/types").GrammarState>);
|
|
81
|
+
export { bundledLanguages, bundledThemes, codeToHast, codeToHtml, codeToTokens, codeToTokensBase, codeToTokensWithThemes, createHighlighter, getLastGrammarState, getSingletonHighlighter, };
|
|
82
|
+
export type { BundledLanguage, BundledTheme, Highlighter };
|