@blocknote/core 0.39.0 → 0.39.1-capitol-test

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/dist/{BlockNoteSchema-DmZ6UQfY.cjs → BlockNoteSchema-Bsa_tSAC.cjs} +8 -8
  2. package/dist/BlockNoteSchema-Bsa_tSAC.cjs.map +1 -0
  3. package/dist/{BlockNoteSchema-oR047ACf.js → BlockNoteSchema-CZez1nQf.js} +586 -617
  4. package/dist/BlockNoteSchema-CZez1nQf.js.map +1 -0
  5. package/dist/blocknote.cjs +4 -4
  6. package/dist/blocknote.cjs.map +1 -1
  7. package/dist/blocknote.js +1172 -1185
  8. package/dist/blocknote.js.map +1 -1
  9. package/dist/blocks.cjs +1 -1
  10. package/dist/blocks.js +1 -1
  11. package/dist/webpack-stats.json +1 -1
  12. package/package.json +1 -2
  13. package/src/api/clipboard/fromClipboard/handleFileInsertion.ts +2 -2
  14. package/src/api/clipboard/fromClipboard/pasteExtension.ts +1 -1
  15. package/src/blocks/Code/block.ts +1 -5
  16. package/src/editor/BlockNoteEditor.ts +23 -19
  17. package/src/extensions/Placeholder/PlaceholderPlugin.ts +6 -6
  18. package/src/extensions/SideMenu/SideMenuPlugin.ts +1 -3
  19. package/src/extensions/SideMenu/dragging.ts +2 -2
  20. package/src/extensions/SuggestionMenu/SuggestionPlugin.ts +4 -2
  21. package/src/extensions/TableHandles/TableHandlesPlugin.ts +6 -6
  22. package/types/src/api/exporters/markdown/util/convertVideoToMarkdownRehypePlugin.d.ts +2 -0
  23. package/types/src/api/exporters/markdown/util/removeUnderlinesRehypePlugin.d.ts +6 -0
  24. package/types/src/blocks/Divider/block.d.ts +3 -0
  25. package/types/src/editor/BlockNoteEditor.d.ts +3 -1
  26. package/types/src/editor/managers/BlockManager.d.ts +114 -0
  27. package/types/src/editor/managers/CollaborationManager.d.ts +115 -0
  28. package/types/src/editor/managers/EventManager.d.ts +58 -0
  29. package/types/src/editor/managers/ExportManager.d.ts +64 -0
  30. package/types/src/editor/managers/ExtensionManager.d.ts +68 -0
  31. package/types/src/editor/managers/SelectionManager.d.ts +54 -0
  32. package/types/src/editor/managers/StateManager.d.ts +115 -0
  33. package/types/src/editor/managers/StyleManager.d.ts +48 -0
  34. package/types/src/editor/managers/index.d.ts +8 -0
  35. package/dist/BlockNoteSchema-DmZ6UQfY.cjs.map +0 -1
  36. package/dist/BlockNoteSchema-oR047ACf.js.map +0 -1
  37. package/dist/tsconfig.tsbuildinfo +0 -1
  38. package/src/blocks/Code/shiki.ts +0 -73
package/dist/blocks.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./BlockNoteSchema-DmZ6UQfY.cjs");exports.BlockNoteSchema=e.BlockNoteSchema;exports.EMPTY_CELL_HEIGHT=e.EMPTY_CELL_HEIGHT;exports.EMPTY_CELL_WIDTH=e.EMPTY_CELL_WIDTH;exports.FILE_AUDIO_ICON_SVG=e.FILE_AUDIO_ICON_SVG;exports.FILE_IMAGE_ICON_SVG=e.FILE_IMAGE_ICON_SVG;exports.FILE_VIDEO_ICON_SVG=e.FILE_VIDEO_ICON_SVG;exports.addDefaultPropsExternalHTML=e.addDefaultPropsExternalHTML;exports.audioParse=e.audioParse;exports.audioRender=e.audioRender;exports.audioToExternalHTML=e.audioToExternalHTML;exports.blockHasType=e.blockHasType;exports.checkPageBreakBlocksInSchema=e.checkPageBreakBlocksInSchema;exports.createAudioBlockConfig=e.createAudioBlockConfig;exports.createAudioBlockSpec=e.createAudioBlockSpec;exports.createBulletListItemBlockConfig=e.createBulletListItemBlockConfig;exports.createBulletListItemBlockSpec=e.createBulletListItemBlockSpec;exports.createCheckListItemBlockSpec=e.createCheckListItemBlockSpec;exports.createCheckListItemConfig=e.createCheckListItemConfig;exports.createCodeBlockConfig=e.createCodeBlockConfig;exports.createCodeBlockSpec=e.createCodeBlockSpec;exports.createDefaultBlockDOMOutputSpec=e.createDefaultBlockDOMOutputSpec;exports.createFileBlockConfig=e.createFileBlockConfig;exports.createFileBlockSpec=e.createFileBlockSpec;exports.createHeadingBlockConfig=e.createHeadingBlockConfig;exports.createHeadingBlockSpec=e.createHeadingBlockSpec;exports.createImageBlockConfig=e.createImageBlockConfig;exports.createImageBlockSpec=e.createImageBlockSpec;exports.createNumberedListItemBlockConfig=e.createNumberedListItemBlockConfig;exports.createNumberedListItemBlockSpec=e.createNumberedListItemBlockSpec;exports.createPageBreakBlockConfig=e.createPageBreakBlockConfig;exports.createPageBreakBlockSpec=e.createPageBreakBlockSpec;exports.createParagraphBlockConfig=e.createParagraphBlockConfig;exports.createParagraphBlockSpec=e.createParagraphBlockSpec;exports.createQuoteBlockConfig=e.createQuoteBlockConfig;exports.createQuoteBlockSpec=e.createQuoteBlockSpec;exports.createTableBlockSpec=e.createTableBlockSpec;exports.createToggleListItemBlockConfig=e.createToggleListItemBlockConfig;exports.createToggleListItemBlockSpec=e.createToggleListItemBlockSpec;exports.createToggleWrapper=e.createToggleWrapper;exports.createVideoBlockConfig=e.createVideoBlockConfig;exports.createVideoBlockSpec=e.createVideoBlockSpec;exports.defaultBlockSpecs=e.defaultBlockSpecs;exports.defaultBlockToHTML=e.defaultBlockToHTML;exports.defaultInlineContentSchema=e.defaultInlineContentSchema;exports.defaultInlineContentSpecs=e.defaultInlineContentSpecs;exports.defaultProps=e.defaultProps;exports.defaultStyleSchema=e.defaultStyleSchema;exports.defaultStyleSpecs=e.defaultStyleSpecs;exports.defaultToggledState=e.defaultToggledState;exports.editorHasBlockWithType=e.editorHasBlockWithType;exports.fileParse=e.fileParse;exports.getBackgroundColorAttribute=e.getBackgroundColorAttribute;exports.getLanguageId=e.getLanguageId;exports.getPageBreakSlashMenuItems=e.getPageBreakSlashMenuItems;exports.getTextAlignmentAttribute=e.getTextAlignmentAttribute;exports.getTextColorAttribute=e.getTextColorAttribute;exports.imageParse=e.imageParse;exports.imageRender=e.imageRender;exports.imageToExternalHTML=e.imageToExternalHTML;exports.isTableCellSelection=e.isTableCellSelection;exports.mergeParagraphs=e.mergeParagraphs;exports.parseAudioElement=e.parseAudioElement;exports.parseDefaultProps=e.parseDefaultProps;exports.tablePropSchema=e.tablePropSchema;exports.uploadToTmpFilesDotOrg_DEV_ONLY=e.uploadToTmpFilesDotOrg_DEV_ONLY;exports.videoParse=e.videoParse;exports.withPageBreak=e.withPageBreak;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./BlockNoteSchema-Bsa_tSAC.cjs");exports.BlockNoteSchema=e.BlockNoteSchema;exports.EMPTY_CELL_HEIGHT=e.EMPTY_CELL_HEIGHT;exports.EMPTY_CELL_WIDTH=e.EMPTY_CELL_WIDTH;exports.FILE_AUDIO_ICON_SVG=e.FILE_AUDIO_ICON_SVG;exports.FILE_IMAGE_ICON_SVG=e.FILE_IMAGE_ICON_SVG;exports.FILE_VIDEO_ICON_SVG=e.FILE_VIDEO_ICON_SVG;exports.addDefaultPropsExternalHTML=e.addDefaultPropsExternalHTML;exports.audioParse=e.audioParse;exports.audioRender=e.audioRender;exports.audioToExternalHTML=e.audioToExternalHTML;exports.blockHasType=e.blockHasType;exports.checkPageBreakBlocksInSchema=e.checkPageBreakBlocksInSchema;exports.createAudioBlockConfig=e.createAudioBlockConfig;exports.createAudioBlockSpec=e.createAudioBlockSpec;exports.createBulletListItemBlockConfig=e.createBulletListItemBlockConfig;exports.createBulletListItemBlockSpec=e.createBulletListItemBlockSpec;exports.createCheckListItemBlockSpec=e.createCheckListItemBlockSpec;exports.createCheckListItemConfig=e.createCheckListItemConfig;exports.createCodeBlockConfig=e.createCodeBlockConfig;exports.createCodeBlockSpec=e.createCodeBlockSpec;exports.createDefaultBlockDOMOutputSpec=e.createDefaultBlockDOMOutputSpec;exports.createFileBlockConfig=e.createFileBlockConfig;exports.createFileBlockSpec=e.createFileBlockSpec;exports.createHeadingBlockConfig=e.createHeadingBlockConfig;exports.createHeadingBlockSpec=e.createHeadingBlockSpec;exports.createImageBlockConfig=e.createImageBlockConfig;exports.createImageBlockSpec=e.createImageBlockSpec;exports.createNumberedListItemBlockConfig=e.createNumberedListItemBlockConfig;exports.createNumberedListItemBlockSpec=e.createNumberedListItemBlockSpec;exports.createPageBreakBlockConfig=e.createPageBreakBlockConfig;exports.createPageBreakBlockSpec=e.createPageBreakBlockSpec;exports.createParagraphBlockConfig=e.createParagraphBlockConfig;exports.createParagraphBlockSpec=e.createParagraphBlockSpec;exports.createQuoteBlockConfig=e.createQuoteBlockConfig;exports.createQuoteBlockSpec=e.createQuoteBlockSpec;exports.createTableBlockSpec=e.createTableBlockSpec;exports.createToggleListItemBlockConfig=e.createToggleListItemBlockConfig;exports.createToggleListItemBlockSpec=e.createToggleListItemBlockSpec;exports.createToggleWrapper=e.createToggleWrapper;exports.createVideoBlockConfig=e.createVideoBlockConfig;exports.createVideoBlockSpec=e.createVideoBlockSpec;exports.defaultBlockSpecs=e.defaultBlockSpecs;exports.defaultBlockToHTML=e.defaultBlockToHTML;exports.defaultInlineContentSchema=e.defaultInlineContentSchema;exports.defaultInlineContentSpecs=e.defaultInlineContentSpecs;exports.defaultProps=e.defaultProps;exports.defaultStyleSchema=e.defaultStyleSchema;exports.defaultStyleSpecs=e.defaultStyleSpecs;exports.defaultToggledState=e.defaultToggledState;exports.editorHasBlockWithType=e.editorHasBlockWithType;exports.fileParse=e.fileParse;exports.getBackgroundColorAttribute=e.getBackgroundColorAttribute;exports.getLanguageId=e.getLanguageId;exports.getPageBreakSlashMenuItems=e.getPageBreakSlashMenuItems;exports.getTextAlignmentAttribute=e.getTextAlignmentAttribute;exports.getTextColorAttribute=e.getTextColorAttribute;exports.imageParse=e.imageParse;exports.imageRender=e.imageRender;exports.imageToExternalHTML=e.imageToExternalHTML;exports.isTableCellSelection=e.isTableCellSelection;exports.mergeParagraphs=e.mergeParagraphs;exports.parseAudioElement=e.parseAudioElement;exports.parseDefaultProps=e.parseDefaultProps;exports.tablePropSchema=e.tablePropSchema;exports.uploadToTmpFilesDotOrg_DEV_ONLY=e.uploadToTmpFilesDotOrg_DEV_ONLY;exports.videoParse=e.videoParse;exports.withPageBreak=e.withPageBreak;
2
2
  //# sourceMappingURL=blocks.cjs.map
package/dist/blocks.js CHANGED
@@ -1,4 +1,4 @@
1
- import { X as t, E as s, a as c, F as o, o as l, O as r, a9 as i, b as g, d as k, e as B, a5 as n, V as p, c as d, f as u, v as S, w as C, y as f, x as m, g as I, h as T, Y as L, j as P, l as E, m as _, n as h, q as H, u as b, z as A, A as D, D as M, G as O, I as N, J as V, K as x, L as F, N as G, B as y, C as W, T as Y, P as Q, R, $ as v, Z as w, a3 as U, a2 as j, a7 as q, a1 as z, a0 as J, S as K, a4 as X, k as Z, aa as $, i as ee, W as ae, ac as te, ab as se, r as ce, s as oe, t as le, a6 as re, _ as ie, p as ge, a8 as ke, M as Be, U as ne, Q as pe, H as de } from "./BlockNoteSchema-oR047ACf.js";
1
+ import { X as t, E as s, a as c, F as o, o as l, O as r, a9 as i, b as g, d as k, e as B, a5 as n, V as p, c as d, f as u, v as S, w as C, y as f, x as m, g as I, h as T, Y as L, j as P, l as E, m as _, n as h, q as H, u as b, z as A, A as D, D as M, G as O, I as N, J as V, K as x, L as F, N as G, B as y, C as W, T as Y, P as Q, R, $ as v, Z as w, a3 as U, a2 as j, a7 as q, a1 as z, a0 as J, S as K, a4 as X, k as Z, aa as $, i as ee, W as ae, ac as te, ab as se, r as ce, s as oe, t as le, a6 as re, _ as ie, p as ge, a8 as ke, M as Be, U as ne, Q as pe, H as de } from "./BlockNoteSchema-CZez1nQf.js";
2
2
  export {
3
3
  t as BlockNoteSchema,
4
4
  s as EMPTY_CELL_HEIGHT,
@@ -1 +1 @@
1
- {"builtAt":1758181015789,"assets":[{"name":"blocks.cjs","size":3743},{"name":"comments.cjs","size":11826},{"name":"locales.cjs","size":158539},{"name":"blocknote.cjs","size":132008},{"name":"en-D3B48eJ7.cjs","size":6630},{"name":"BlockNoteSchema-DmZ6UQfY.cjs","size":83376},{"name":"en-D3B48eJ7.cjs.map","size":14973},{"name":"BlockNoteSchema-DmZ6UQfY.cjs.map","size":409974},{"name":"blocks.cjs.map","size":91},{"name":"comments.cjs.map","size":47628},{"name":"locales.cjs.map","size":326303},{"name":"blocknote.cjs.map","size":581476}],"chunks":[{"id":"c90dbef","entry":true,"initial":true,"files":["blocks.cjs"],"names":["blocks"]},{"id":"1627b02","entry":true,"initial":true,"files":["comments.cjs"],"names":["comments"]},{"id":"9eaffe2","entry":true,"initial":true,"files":["locales.cjs"],"names":["locales"]},{"id":"a1ee98a","entry":true,"initial":true,"files":["blocknote.cjs"],"names":["blocknote"]},{"id":"a1e239a","entry":false,"initial":true,"files":["en-D3B48eJ7.cjs"],"names":["en"]},{"id":"7515671","entry":false,"initial":true,"files":["BlockNoteSchema-DmZ6UQfY.cjs"],"names":["BlockNoteSchema"]}],"modules":[{"name":"./src/blocks/index.ts","size":0,"chunks":["c90dbef"]},{"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":3002,"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":7267,"chunks":["1627b02"]},{"name":"./src/comments/index.ts","size":0,"chunks":["1627b02"]},{"name":"./src/i18n/locales/ar.ts","size":9373,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/de.ts","size":10556,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/es.ts","size":10094,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/fr.ts","size":11042,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/he.ts","size":9106,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/hr.ts","size":9915,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/is.ts","size":10096,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/it.ts","size":10520,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/ja.ts","size":8949,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/ko.ts","size":8445,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/nl.ts","size":10026,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/no.ts","size":10202,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/pl.ts","size":9741,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/pt.ts","size":9895,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/ru.ts","size":11067,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/sk.ts","size":9783,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/uk.ts","size":10730,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/vi.ts","size":9771,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/zh.ts","size":8423,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/zh-tw.ts","size":8463,"chunks":["9eaffe2"]},{"name":"./src/i18n/index.ts","size":0,"chunks":["9eaffe2"]},{"name":"./src/schema/inlineContent/createSpec.ts","size":3784,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/commands/insertBlocks/insertBlocks.ts","size":849,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/commands/replaceBlocks/replaceBlocks.ts","size":1940,"chunks":["a1ee98a"]},{"name":"./src/api/exporters/html/util/serializeBlocksExternalHTML.ts","size":7444,"chunks":["a1ee98a"]},{"name":"./src/api/exporters/html/externalHTMLExporter.ts","size":886,"chunks":["a1ee98a"]},{"name":"./src/api/exporters/html/util/serializeBlocksInternalHTML.ts","size":4914,"chunks":["a1ee98a"]},{"name":"./src/api/exporters/html/internalHTMLSerializer.ts","size":288,"chunks":["a1ee98a"]},{"name":"./src/api/getBlocksChangedByTransaction.ts","size":6577,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/commands/moveBlocks/moveBlocks.ts","size":5706,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/commands/nestBlock/nestBlock.ts","size":2067,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/getBlock/getBlock.ts","size":2087,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/insertContentAt.ts","size":1049,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/selections/selection.ts","size":5301,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/selections/textCursorPosition.ts","size":2606,"chunks":["a1ee98a"]},{"name":"./src/api/exporters/markdown/removeUnderlinesRehypePlugin.ts","size":752,"chunks":["a1ee98a"]},{"name":"./src/api/exporters/markdown/util/addSpacesToCheckboxesRehypePlugin.ts","size":775,"chunks":["a1ee98a"]},{"name":"./src/api/exporters/markdown/markdownExporter.ts","size":646,"chunks":["a1ee98a"]},{"name":"./src/api/parsers/html/util/nestedLists.ts","size":2174,"chunks":["a1ee98a"]},{"name":"./src/api/parsers/html/parseHTML.ts","size":439,"chunks":["a1ee98a"]},{"name":"./src/api/parsers/markdown/parseMarkdown.ts","size":1067,"chunks":["a1ee98a"]},{"name":"./src/style.css","size":0,"chunks":["a1ee98a"]},{"name":"./src/api/clipboard/fromClipboard/acceptedMIMETypes.ts","size":134,"chunks":["a1ee98a"]},{"name":"./src/api/clipboard/fromClipboard/handleFileInsertion.ts","size":4178,"chunks":["a1ee98a"]},{"name":"./src/api/clipboard/fromClipboard/fileDropExtension.ts","size":884,"chunks":["a1ee98a"]},{"name":"./src/api/parsers/markdown/detectMarkdown.ts","size":1140,"chunks":["a1ee98a"]},{"name":"./src/api/clipboard/fromClipboard/handleVSCodePaste.ts","size":661,"chunks":["a1ee98a"]},{"name":"./src/api/clipboard/fromClipboard/pasteExtension.ts","size":2412,"chunks":["a1ee98a"]},{"name":"./src/api/nodeConversions/fragmentToBlocks.ts","size":677,"chunks":["a1ee98a"]},{"name":"./src/api/clipboard/toClipboard/copyExtension.ts","size":5191,"chunks":["a1ee98a"]},{"name":"./src/extensions/BackgroundColor/BackgroundColorExtension.ts","size":308,"chunks":["a1ee98a"]},{"name":"./src/extensions/BlockChange/BlockChangePlugin.ts","size":1064,"chunks":["a1ee98a"]},{"name":"./src/extensions/Collaboration/CursorPlugin.ts","size":4715,"chunks":["a1ee98a"]},{"name":"./src/extensions/Collaboration/SyncPlugin.ts","size":260,"chunks":["a1ee98a"]},{"name":"./src/extensions/Collaboration/UndoPlugin.ts","size":281,"chunks":["a1ee98a"]},{"name":"./src/extensions/Collaboration/ForkYDocPlugin.ts","size":4323,"chunks":["a1ee98a"]},{"name":"./src/extensions/Collaboration/schemaMigration/migrationRules/moveColorAttributes.ts","size":1403,"chunks":["a1ee98a"]},{"name":"./src/extensions/Collaboration/schemaMigration/migrationRules/index.ts","size":45,"chunks":["a1ee98a"]},{"name":"./src/extensions/Collaboration/schemaMigration/SchemaMigrationPlugin.ts","size":882,"chunks":["a1ee98a"]},{"name":"./src/extensions/Comments/CommentMark.ts","size":1428,"chunks":["a1ee98a"]},{"name":"./src/extensions/Comments/userstore/UserStore.ts","size":1370,"chunks":["a1ee98a"]},{"name":"./src/extensions/Comments/CommentsPlugin.ts","size":7904,"chunks":["a1ee98a"]},{"name":"./src/extensions/FilePanel/FilePanelPlugin.ts","size":4151,"chunks":["a1ee98a"]},{"name":"./src/extensions/FormattingToolbar/FormattingToolbarPlugin.ts","size":7068,"chunks":["a1ee98a"]},{"name":"./src/extensions/HardBreak/HardBreak.ts","size":376,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/commands/mergeBlocks/mergeBlocks.ts","size":3292,"chunks":["a1ee98a"]},{"name":"./src/extensions/KeyboardShortcuts/KeyboardShortcutsExtension.ts","size":18593,"chunks":["a1ee98a"]},{"name":"./src/extensions/LinkToolbar/LinkToolbarPlugin.ts","size":7731,"chunks":["a1ee98a"]},{"name":"./src/extensions/LinkToolbar/protocols.ts","size":172,"chunks":["a1ee98a"]},{"name":"./src/extensions/NodeSelectionKeyboard/NodeSelectionKeyboardPlugin.ts","size":1383,"chunks":["a1ee98a"]},{"name":"./src/extensions/Placeholder/PlaceholderPlugin.ts","size":3925,"chunks":["a1ee98a"]},{"name":"./src/extensions/PreviousBlockType/PreviousBlockTypePlugin.ts","size":4843,"chunks":["a1ee98a"]},{"name":"./src/extensions/ShowSelection/ShowSelectionPlugin.ts","size":1059,"chunks":["a1ee98a"]},{"name":"./src/extensions/getDraggableBlockFromElement.ts","size":404,"chunks":["a1ee98a"]},{"name":"./src/extensions/SideMenu/MultipleNodeSelection.ts","size":1700,"chunks":["a1ee98a"]},{"name":"./src/extensions/SideMenu/dragging.ts","size":4734,"chunks":["a1ee98a"]},{"name":"./src/extensions/SideMenu/SideMenuPlugin.ts","size":16706,"chunks":["a1ee98a"]},{"name":"./src/api/positionMapping.ts","size":1639,"chunks":["a1ee98a"]},{"name":"./src/extensions/SuggestionMenu/SuggestionPlugin.ts","size":9262,"chunks":["a1ee98a"]},{"name":"./src/extensions/Suggestions/SuggestionMarks.ts","size":4452,"chunks":["a1ee98a"]},{"name":"./src/extensions/TableHandles/TableHandlesPlugin.ts","size":27647,"chunks":["a1ee98a"]},{"name":"./src/extensions/TextAlignment/TextAlignmentExtension.ts","size":936,"chunks":["a1ee98a"]},{"name":"./src/extensions/TextColor/TextColorExtension.ts","size":293,"chunks":["a1ee98a"]},{"name":"./src/extensions/TrailingNode/TrailingNodeExtension.ts","size":1563,"chunks":["a1ee98a"]},{"name":"./src/pm-nodes/BlockContainer.ts","size":2186,"chunks":["a1ee98a"]},{"name":"./src/pm-nodes/BlockGroup.ts","size":1162,"chunks":["a1ee98a"]},{"name":"./src/pm-nodes/Doc.ts","size":134,"chunks":["a1ee98a"]},{"name":"./src/editor/BlockNoteExtensions.ts","size":5410,"chunks":["a1ee98a"]},{"name":"./src/editor/transformPasted.ts","size":2620,"chunks":["a1ee98a"]},{"name":"./src/editor/BlockNoteEditor.ts","size":39461,"chunks":["a1ee98a"]},{"name":"./src/exporter/Exporter.ts","size":1101,"chunks":["a1ee98a"]},{"name":"./src/exporter/mapping.ts","size":197,"chunks":["a1ee98a"]},{"name":"./src/extensions/SuggestionMenu/getDefaultEmojiPickerItems.ts","size":1296,"chunks":["a1ee98a"]},{"name":"./src/util/combineByGroup.ts","size":550,"chunks":["a1ee98a"]},{"name":"./src/index.ts","size":0,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/en.ts","size":9415,"chunks":["a1e239a"]},{"name":"./src/extensions/UniqueID/UniqueID.ts","size":8905,"chunks":["7515671"]},{"name":"./src/schema/inlineContent/types.ts","size":302,"chunks":["7515671"]},{"name":"./src/util/table.ts","size":1212,"chunks":["7515671"]},{"name":"./src/util/typescript.ts","size":331,"chunks":["7515671"]},{"name":"./src/util/browser.ts","size":643,"chunks":["7515671"]},{"name":"./src/blocks/defaultBlockHelpers.ts","size":2103,"chunks":["7515671"]},{"name":"./src/util/string.ts","size":299,"chunks":["7515671"]},{"name":"./src/schema/blocks/internal.ts","size":3387,"chunks":["7515671"]},{"name":"./src/schema/blocks/createSpec.ts","size":6635,"chunks":["7515671"]},{"name":"./src/api/getBlockInfoFromPos.ts","size":3797,"chunks":["7515671"]},{"name":"./src/api/pmUtil.ts","size":651,"chunks":["7515671"]},{"name":"./src/api/nodeConversions/nodeToBlock.ts","size":13005,"chunks":["7515671"]},{"name":"./src/schema/inlineContent/internal.ts","size":1428,"chunks":["7515671"]},{"name":"./src/schema/styles/internal.ts","size":2909,"chunks":["7515671"]},{"name":"./src/schema/styles/createSpec.ts","size":2276,"chunks":["7515671"]},{"name":"./src/util/topo-sort.ts","size":2271,"chunks":["7515671"]},{"name":"./src/schema/schema.ts","size":3360,"chunks":["7515671"]},{"name":"./src/api/blockManipulation/tables/tables.ts","size":10346,"chunks":["7515671"]},{"name":"./src/api/nodeConversions/blockToNode.ts","size":7193,"chunks":["7515671"]},{"name":"./src/api/nodeUtil.ts","size":549,"chunks":["7515671"]},{"name":"./src/api/blockManipulation/commands/updateBlock/updateBlock.ts","size":8371,"chunks":["7515671"]},{"name":"./src/editor/defaultColors.ts","size":1193,"chunks":["7515671"]},{"name":"./src/blocks/defaultProps.ts","size":3350,"chunks":["7515671"]},{"name":"./src/blocks/File/helpers/parse/parseFigureElement.ts","size":342,"chunks":["7515671"]},{"name":"./src/blocks/File/helpers/render/createAddFileButton.ts","size":1809,"chunks":["7515671"]},{"name":"./src/blocks/File/helpers/render/createFileNameWithIcon.ts","size":753,"chunks":["7515671"]},{"name":"./src/blocks/File/helpers/render/createFileBlockWrapper.ts","size":1374,"chunks":["7515671"]},{"name":"./src/blocks/File/helpers/toExternalHTML/createFigureWithCaption.ts","size":307,"chunks":["7515671"]},{"name":"./src/blocks/File/helpers/toExternalHTML/createLinkWithCaption.ts","size":294,"chunks":["7515671"]},{"name":"./src/blocks/Audio/parseAudioElement.ts","size":108,"chunks":["7515671"]},{"name":"./src/blocks/Audio/block.ts","size":3593,"chunks":["7515671"]},{"name":"./src/util/EventEmitter.ts","size":744,"chunks":["7515671"]},{"name":"./src/editor/BlockNoteExtension.ts","size":1873,"chunks":["7515671"]},{"name":"./src/blocks/Code/shiki.ts","size":1699,"chunks":["7515671"]},{"name":"./src/blocks/Code/block.ts","size":6492,"chunks":["7515671"]},{"name":"./src/blocks/File/helpers/parse/parseEmbedElement.ts","size":108,"chunks":["7515671"]},{"name":"./src/blocks/File/block.ts","size":1766,"chunks":["7515671"]},{"name":"./src/blocks/ToggleWrapper/createToggleWrapper.ts","size":5207,"chunks":["7515671"]},{"name":"./src/blocks/Heading/block.ts","size":2639,"chunks":["7515671"]},{"name":"./src/blocks/File/helpers/render/createResizableFileBlockWrapper.ts","size":6266,"chunks":["7515671"]},{"name":"./src/blocks/Image/parseImageElement.ts","size":224,"chunks":["7515671"]},{"name":"./src/blocks/Image/block.ts","size":3777,"chunks":["7515671"]},{"name":"./src/api/blockManipulation/commands/splitBlock/splitBlock.ts","size":909,"chunks":["7515671"]},{"name":"./src/blocks/utils/listItemEnterHandler.ts","size":880,"chunks":["7515671"]},{"name":"./src/blocks/ListItem/getListItemContent.ts","size":1425,"chunks":["7515671"]},{"name":"./src/blocks/ListItem/BulletListItem/block.ts","size":2186,"chunks":["7515671"]},{"name":"./src/blocks/ListItem/CheckListItem/block.ts","size":3824,"chunks":["7515671"]},{"name":"./src/blocks/ListItem/NumberedListItem/IndexingPlugin.ts","size":3124,"chunks":["7515671"]},{"name":"./src/blocks/ListItem/NumberedListItem/block.ts","size":2718,"chunks":["7515671"]},{"name":"./src/blocks/ListItem/ToggleListItem/block.ts","size":1458,"chunks":["7515671"]},{"name":"./src/blocks/PageBreak/block.ts","size":883,"chunks":["7515671"]},{"name":"./src/blocks/Paragraph/block.ts","size":1337,"chunks":["7515671"]},{"name":"./src/blocks/Quote/block.ts","size":1654,"chunks":["7515671"]},{"name":"./src/blocks/Table/TableExtension.ts","size":2297,"chunks":["7515671"]},{"name":"./src/blocks/Table/block.ts","size":8298,"chunks":["7515671"]},{"name":"./src/blocks/Video/parseVideoElement.ts","size":175,"chunks":["7515671"]},{"name":"./src/blocks/Video/block.ts","size":3577,"chunks":["7515671"]},{"name":"./src/blocks/File/helpers/uploadToTmpFilesDotOrg_DEV_ONLY.ts","size":316,"chunks":["7515671"]},{"name":"./src/blocks/defaultBlockTypeGuards.ts","size":2213,"chunks":["7515671"]},{"name":"./src/extensions/SuggestionMenu/getDefaultSlashMenuItems.ts","size":8782,"chunks":["7515671"]},{"name":"./src/blocks/PageBreak/getPageBreakSlashMenuItems.ts","size":447,"chunks":["7515671"]},{"name":"./src/blocks/defaultBlocks.ts","size":2814,"chunks":["7515671"]},{"name":"./src/blocks/BlockNoteSchema.ts","size":330,"chunks":["7515671"]}]}
1
+ {"builtAt":1760023441854,"assets":[{"name":"blocks.cjs","size":3743},{"name":"comments.cjs","size":11826},{"name":"locales.cjs","size":158539},{"name":"blocknote.cjs","size":131548},{"name":"en-D3B48eJ7.cjs","size":6630},{"name":"BlockNoteSchema-Bsa_tSAC.cjs","size":82505},{"name":"en-D3B48eJ7.cjs.map","size":14973},{"name":"BlockNoteSchema-Bsa_tSAC.cjs.map","size":406290},{"name":"blocks.cjs.map","size":91},{"name":"comments.cjs.map","size":47628},{"name":"locales.cjs.map","size":326303},{"name":"blocknote.cjs.map","size":580938}],"chunks":[{"id":"c90dbef","entry":true,"initial":true,"files":["blocks.cjs"],"names":["blocks"]},{"id":"1627b02","entry":true,"initial":true,"files":["comments.cjs"],"names":["comments"]},{"id":"9eaffe2","entry":true,"initial":true,"files":["locales.cjs"],"names":["locales"]},{"id":"a1ee98a","entry":true,"initial":true,"files":["blocknote.cjs"],"names":["blocknote"]},{"id":"a1e239a","entry":false,"initial":true,"files":["en-D3B48eJ7.cjs"],"names":["en"]},{"id":"7515671","entry":false,"initial":true,"files":["BlockNoteSchema-Bsa_tSAC.cjs"],"names":["BlockNoteSchema"]}],"modules":[{"name":"./src/blocks/index.ts","size":0,"chunks":["c90dbef"]},{"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":3002,"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":7267,"chunks":["1627b02"]},{"name":"./src/comments/index.ts","size":0,"chunks":["1627b02"]},{"name":"./src/i18n/locales/ar.ts","size":9373,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/de.ts","size":10556,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/es.ts","size":10094,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/fr.ts","size":11042,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/he.ts","size":9106,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/hr.ts","size":9915,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/is.ts","size":10096,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/it.ts","size":10520,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/ja.ts","size":8949,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/ko.ts","size":8445,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/nl.ts","size":10026,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/no.ts","size":10202,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/pl.ts","size":9741,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/pt.ts","size":9895,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/ru.ts","size":11067,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/sk.ts","size":9783,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/uk.ts","size":10730,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/vi.ts","size":9771,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/zh.ts","size":8423,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/zh-tw.ts","size":8463,"chunks":["9eaffe2"]},{"name":"./src/i18n/index.ts","size":0,"chunks":["9eaffe2"]},{"name":"./src/schema/inlineContent/createSpec.ts","size":3784,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/commands/insertBlocks/insertBlocks.ts","size":849,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/commands/replaceBlocks/replaceBlocks.ts","size":1940,"chunks":["a1ee98a"]},{"name":"./src/api/exporters/html/util/serializeBlocksExternalHTML.ts","size":7444,"chunks":["a1ee98a"]},{"name":"./src/api/exporters/html/externalHTMLExporter.ts","size":886,"chunks":["a1ee98a"]},{"name":"./src/api/exporters/html/util/serializeBlocksInternalHTML.ts","size":4914,"chunks":["a1ee98a"]},{"name":"./src/api/exporters/html/internalHTMLSerializer.ts","size":288,"chunks":["a1ee98a"]},{"name":"./src/api/getBlocksChangedByTransaction.ts","size":6577,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/commands/moveBlocks/moveBlocks.ts","size":5706,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/commands/nestBlock/nestBlock.ts","size":2067,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/getBlock/getBlock.ts","size":2087,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/insertContentAt.ts","size":1049,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/selections/selection.ts","size":5301,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/selections/textCursorPosition.ts","size":2606,"chunks":["a1ee98a"]},{"name":"./src/api/exporters/markdown/removeUnderlinesRehypePlugin.ts","size":752,"chunks":["a1ee98a"]},{"name":"./src/api/exporters/markdown/util/addSpacesToCheckboxesRehypePlugin.ts","size":775,"chunks":["a1ee98a"]},{"name":"./src/api/exporters/markdown/markdownExporter.ts","size":646,"chunks":["a1ee98a"]},{"name":"./src/api/parsers/html/util/nestedLists.ts","size":2174,"chunks":["a1ee98a"]},{"name":"./src/api/parsers/html/parseHTML.ts","size":439,"chunks":["a1ee98a"]},{"name":"./src/api/parsers/markdown/parseMarkdown.ts","size":1067,"chunks":["a1ee98a"]},{"name":"./src/style.css","size":0,"chunks":["a1ee98a"]},{"name":"./src/api/clipboard/fromClipboard/acceptedMIMETypes.ts","size":134,"chunks":["a1ee98a"]},{"name":"./src/api/clipboard/fromClipboard/handleFileInsertion.ts","size":4176,"chunks":["a1ee98a"]},{"name":"./src/api/clipboard/fromClipboard/fileDropExtension.ts","size":884,"chunks":["a1ee98a"]},{"name":"./src/api/parsers/markdown/detectMarkdown.ts","size":1140,"chunks":["a1ee98a"]},{"name":"./src/api/clipboard/fromClipboard/handleVSCodePaste.ts","size":661,"chunks":["a1ee98a"]},{"name":"./src/api/clipboard/fromClipboard/pasteExtension.ts","size":2412,"chunks":["a1ee98a"]},{"name":"./src/api/nodeConversions/fragmentToBlocks.ts","size":677,"chunks":["a1ee98a"]},{"name":"./src/api/clipboard/toClipboard/copyExtension.ts","size":5191,"chunks":["a1ee98a"]},{"name":"./src/extensions/BackgroundColor/BackgroundColorExtension.ts","size":308,"chunks":["a1ee98a"]},{"name":"./src/extensions/BlockChange/BlockChangePlugin.ts","size":1064,"chunks":["a1ee98a"]},{"name":"./src/extensions/Collaboration/CursorPlugin.ts","size":4715,"chunks":["a1ee98a"]},{"name":"./src/extensions/Collaboration/SyncPlugin.ts","size":260,"chunks":["a1ee98a"]},{"name":"./src/extensions/Collaboration/UndoPlugin.ts","size":281,"chunks":["a1ee98a"]},{"name":"./src/extensions/Collaboration/ForkYDocPlugin.ts","size":4323,"chunks":["a1ee98a"]},{"name":"./src/extensions/Collaboration/schemaMigration/migrationRules/moveColorAttributes.ts","size":1403,"chunks":["a1ee98a"]},{"name":"./src/extensions/Collaboration/schemaMigration/migrationRules/index.ts","size":45,"chunks":["a1ee98a"]},{"name":"./src/extensions/Collaboration/schemaMigration/SchemaMigrationPlugin.ts","size":882,"chunks":["a1ee98a"]},{"name":"./src/extensions/Comments/CommentMark.ts","size":1428,"chunks":["a1ee98a"]},{"name":"./src/extensions/Comments/userstore/UserStore.ts","size":1370,"chunks":["a1ee98a"]},{"name":"./src/extensions/Comments/CommentsPlugin.ts","size":7904,"chunks":["a1ee98a"]},{"name":"./src/extensions/FilePanel/FilePanelPlugin.ts","size":4151,"chunks":["a1ee98a"]},{"name":"./src/extensions/FormattingToolbar/FormattingToolbarPlugin.ts","size":7068,"chunks":["a1ee98a"]},{"name":"./src/extensions/HardBreak/HardBreak.ts","size":376,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/commands/mergeBlocks/mergeBlocks.ts","size":3292,"chunks":["a1ee98a"]},{"name":"./src/extensions/KeyboardShortcuts/KeyboardShortcutsExtension.ts","size":18593,"chunks":["a1ee98a"]},{"name":"./src/extensions/LinkToolbar/LinkToolbarPlugin.ts","size":7731,"chunks":["a1ee98a"]},{"name":"./src/extensions/LinkToolbar/protocols.ts","size":172,"chunks":["a1ee98a"]},{"name":"./src/extensions/NodeSelectionKeyboard/NodeSelectionKeyboardPlugin.ts","size":1383,"chunks":["a1ee98a"]},{"name":"./src/extensions/Placeholder/PlaceholderPlugin.ts","size":3813,"chunks":["a1ee98a"]},{"name":"./src/extensions/PreviousBlockType/PreviousBlockTypePlugin.ts","size":4843,"chunks":["a1ee98a"]},{"name":"./src/extensions/ShowSelection/ShowSelectionPlugin.ts","size":1059,"chunks":["a1ee98a"]},{"name":"./src/extensions/getDraggableBlockFromElement.ts","size":404,"chunks":["a1ee98a"]},{"name":"./src/extensions/SideMenu/MultipleNodeSelection.ts","size":1700,"chunks":["a1ee98a"]},{"name":"./src/extensions/SideMenu/dragging.ts","size":4744,"chunks":["a1ee98a"]},{"name":"./src/extensions/SideMenu/SideMenuPlugin.ts","size":16659,"chunks":["a1ee98a"]},{"name":"./src/api/positionMapping.ts","size":1639,"chunks":["a1ee98a"]},{"name":"./src/extensions/SuggestionMenu/SuggestionPlugin.ts","size":9266,"chunks":["a1ee98a"]},{"name":"./src/extensions/Suggestions/SuggestionMarks.ts","size":4452,"chunks":["a1ee98a"]},{"name":"./src/extensions/TableHandles/TableHandlesPlugin.ts","size":27500,"chunks":["a1ee98a"]},{"name":"./src/extensions/TextAlignment/TextAlignmentExtension.ts","size":936,"chunks":["a1ee98a"]},{"name":"./src/extensions/TextColor/TextColorExtension.ts","size":293,"chunks":["a1ee98a"]},{"name":"./src/extensions/TrailingNode/TrailingNodeExtension.ts","size":1563,"chunks":["a1ee98a"]},{"name":"./src/pm-nodes/BlockContainer.ts","size":2186,"chunks":["a1ee98a"]},{"name":"./src/pm-nodes/BlockGroup.ts","size":1162,"chunks":["a1ee98a"]},{"name":"./src/pm-nodes/Doc.ts","size":134,"chunks":["a1ee98a"]},{"name":"./src/editor/BlockNoteExtensions.ts","size":5410,"chunks":["a1ee98a"]},{"name":"./src/editor/transformPasted.ts","size":2620,"chunks":["a1ee98a"]},{"name":"./src/editor/BlockNoteEditor.ts","size":39463,"chunks":["a1ee98a"]},{"name":"./src/exporter/Exporter.ts","size":1101,"chunks":["a1ee98a"]},{"name":"./src/exporter/mapping.ts","size":197,"chunks":["a1ee98a"]},{"name":"./src/extensions/SuggestionMenu/getDefaultEmojiPickerItems.ts","size":1296,"chunks":["a1ee98a"]},{"name":"./src/util/combineByGroup.ts","size":550,"chunks":["a1ee98a"]},{"name":"./src/index.ts","size":0,"chunks":["a1ee98a"]},{"name":"./src/i18n/locales/en.ts","size":9415,"chunks":["a1e239a"]},{"name":"./src/extensions/UniqueID/UniqueID.ts","size":8905,"chunks":["7515671"]},{"name":"./src/schema/inlineContent/types.ts","size":302,"chunks":["7515671"]},{"name":"./src/util/table.ts","size":1212,"chunks":["7515671"]},{"name":"./src/util/typescript.ts","size":331,"chunks":["7515671"]},{"name":"./src/util/browser.ts","size":643,"chunks":["7515671"]},{"name":"./src/blocks/defaultBlockHelpers.ts","size":2103,"chunks":["7515671"]},{"name":"./src/util/string.ts","size":299,"chunks":["7515671"]},{"name":"./src/schema/blocks/internal.ts","size":3387,"chunks":["7515671"]},{"name":"./src/schema/blocks/createSpec.ts","size":6635,"chunks":["7515671"]},{"name":"./src/api/getBlockInfoFromPos.ts","size":3797,"chunks":["7515671"]},{"name":"./src/api/pmUtil.ts","size":651,"chunks":["7515671"]},{"name":"./src/api/nodeConversions/nodeToBlock.ts","size":13005,"chunks":["7515671"]},{"name":"./src/schema/inlineContent/internal.ts","size":1428,"chunks":["7515671"]},{"name":"./src/schema/styles/internal.ts","size":2909,"chunks":["7515671"]},{"name":"./src/schema/styles/createSpec.ts","size":2276,"chunks":["7515671"]},{"name":"./src/util/topo-sort.ts","size":2271,"chunks":["7515671"]},{"name":"./src/schema/schema.ts","size":3360,"chunks":["7515671"]},{"name":"./src/api/blockManipulation/tables/tables.ts","size":10346,"chunks":["7515671"]},{"name":"./src/api/nodeConversions/blockToNode.ts","size":7193,"chunks":["7515671"]},{"name":"./src/api/nodeUtil.ts","size":549,"chunks":["7515671"]},{"name":"./src/api/blockManipulation/commands/updateBlock/updateBlock.ts","size":8371,"chunks":["7515671"]},{"name":"./src/editor/defaultColors.ts","size":1193,"chunks":["7515671"]},{"name":"./src/blocks/defaultProps.ts","size":3350,"chunks":["7515671"]},{"name":"./src/blocks/File/helpers/parse/parseFigureElement.ts","size":342,"chunks":["7515671"]},{"name":"./src/blocks/File/helpers/render/createAddFileButton.ts","size":1809,"chunks":["7515671"]},{"name":"./src/blocks/File/helpers/render/createFileNameWithIcon.ts","size":753,"chunks":["7515671"]},{"name":"./src/blocks/File/helpers/render/createFileBlockWrapper.ts","size":1374,"chunks":["7515671"]},{"name":"./src/blocks/File/helpers/toExternalHTML/createFigureWithCaption.ts","size":307,"chunks":["7515671"]},{"name":"./src/blocks/File/helpers/toExternalHTML/createLinkWithCaption.ts","size":294,"chunks":["7515671"]},{"name":"./src/blocks/Audio/parseAudioElement.ts","size":108,"chunks":["7515671"]},{"name":"./src/blocks/Audio/block.ts","size":3593,"chunks":["7515671"]},{"name":"./src/util/EventEmitter.ts","size":744,"chunks":["7515671"]},{"name":"./src/editor/BlockNoteExtension.ts","size":1873,"chunks":["7515671"]},{"name":"./src/blocks/Code/block.ts","size":6366,"chunks":["7515671"]},{"name":"./src/blocks/File/helpers/parse/parseEmbedElement.ts","size":108,"chunks":["7515671"]},{"name":"./src/blocks/File/block.ts","size":1766,"chunks":["7515671"]},{"name":"./src/blocks/ToggleWrapper/createToggleWrapper.ts","size":5207,"chunks":["7515671"]},{"name":"./src/blocks/Heading/block.ts","size":2639,"chunks":["7515671"]},{"name":"./src/blocks/File/helpers/render/createResizableFileBlockWrapper.ts","size":6266,"chunks":["7515671"]},{"name":"./src/blocks/Image/parseImageElement.ts","size":224,"chunks":["7515671"]},{"name":"./src/blocks/Image/block.ts","size":3777,"chunks":["7515671"]},{"name":"./src/api/blockManipulation/commands/splitBlock/splitBlock.ts","size":909,"chunks":["7515671"]},{"name":"./src/blocks/utils/listItemEnterHandler.ts","size":880,"chunks":["7515671"]},{"name":"./src/blocks/ListItem/getListItemContent.ts","size":1425,"chunks":["7515671"]},{"name":"./src/blocks/ListItem/BulletListItem/block.ts","size":2186,"chunks":["7515671"]},{"name":"./src/blocks/ListItem/CheckListItem/block.ts","size":3824,"chunks":["7515671"]},{"name":"./src/blocks/ListItem/NumberedListItem/IndexingPlugin.ts","size":3124,"chunks":["7515671"]},{"name":"./src/blocks/ListItem/NumberedListItem/block.ts","size":2718,"chunks":["7515671"]},{"name":"./src/blocks/ListItem/ToggleListItem/block.ts","size":1458,"chunks":["7515671"]},{"name":"./src/blocks/PageBreak/block.ts","size":883,"chunks":["7515671"]},{"name":"./src/blocks/Paragraph/block.ts","size":1337,"chunks":["7515671"]},{"name":"./src/blocks/Quote/block.ts","size":1654,"chunks":["7515671"]},{"name":"./src/blocks/Table/TableExtension.ts","size":2297,"chunks":["7515671"]},{"name":"./src/blocks/Table/block.ts","size":8298,"chunks":["7515671"]},{"name":"./src/blocks/Video/parseVideoElement.ts","size":175,"chunks":["7515671"]},{"name":"./src/blocks/Video/block.ts","size":3577,"chunks":["7515671"]},{"name":"./src/blocks/File/helpers/uploadToTmpFilesDotOrg_DEV_ONLY.ts","size":316,"chunks":["7515671"]},{"name":"./src/blocks/defaultBlockTypeGuards.ts","size":2213,"chunks":["7515671"]},{"name":"./src/extensions/SuggestionMenu/getDefaultSlashMenuItems.ts","size":8782,"chunks":["7515671"]},{"name":"./src/blocks/PageBreak/getPageBreakSlashMenuItems.ts","size":447,"chunks":["7515671"]},{"name":"./src/blocks/defaultBlocks.ts","size":2814,"chunks":["7515671"]},{"name":"./src/blocks/BlockNoteSchema.ts","size":330,"chunks":["7515671"]}]}
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "directory": "packages/core"
12
12
  },
13
13
  "license": "MPL-2.0",
14
- "version": "0.39.0",
14
+ "version": "0.39.1-capitol-test",
15
15
  "files": [
16
16
  "dist",
17
17
  "types",
@@ -88,7 +88,6 @@
88
88
  "fast-deep-equal": "^3",
89
89
  "hast-util-from-dom": "^5.0.1",
90
90
  "prosemirror-dropcursor": "^1.8.2",
91
- "prosemirror-highlight": "^0.13.0",
92
91
  "prosemirror-model": "^1.25.3",
93
92
  "prosemirror-state": "^1.4.3",
94
93
  "prosemirror-tables": "^1.6.4",
@@ -152,7 +152,7 @@ export async function handleFileInsertion<
152
152
  top: (event as DragEvent).clientY,
153
153
  };
154
154
 
155
- const pos = editor.prosemirrorView?.posAtCoords(coords);
155
+ const pos = editor.prosemirrorView.posAtCoords(coords);
156
156
 
157
157
  if (!pos) {
158
158
  return;
@@ -160,7 +160,7 @@ export async function handleFileInsertion<
160
160
 
161
161
  insertedBlockId = editor.transact((tr) => {
162
162
  const posInfo = getNearestBlockPos(tr.doc, pos.pos);
163
- const blockElement = editor.prosemirrorView?.dom.querySelector(
163
+ const blockElement = editor.prosemirrorView.dom.querySelector(
164
164
  `[data-id="${posInfo.node.attrs.id}"]`,
165
165
  );
166
166
 
@@ -57,7 +57,7 @@ function defaultPasteHandler({
57
57
  }
58
58
 
59
59
  if (format === "vscode-editor-data") {
60
- handleVSCodePaste(event, editor.prosemirrorView!);
60
+ handleVSCodePaste(event, editor.prosemirrorView);
61
61
  return true;
62
62
  }
63
63
 
@@ -1,7 +1,7 @@
1
1
  import type { HighlighterGeneric } from "@shikijs/types";
2
2
  import { createBlockNoteExtension } from "../../editor/BlockNoteExtension.js";
3
3
  import { createBlockConfig, createBlockSpec } from "../../schema/index.js";
4
- import { lazyShikiPlugin } from "./shiki.js";
4
+
5
5
  import { DOMParser } from "@tiptap/pm/model";
6
6
 
7
7
  export type CodeBlockOptions = {
@@ -168,10 +168,6 @@ export const createCodeBlockSpec = createBlockSpec(
168
168
  }),
169
169
  (options) => {
170
170
  return [
171
- createBlockNoteExtension({
172
- key: "code-block-highlighter",
173
- plugins: [lazyShikiPlugin(options)],
174
- }),
175
171
  createBlockNoteExtension({
176
172
  key: "code-block-keyboard-shortcuts",
177
173
  keyboardShortcuts: {
@@ -433,7 +433,9 @@ export type BlockNoteEditorOptions<
433
433
  /**
434
434
  * Register extensions to the editor.
435
435
  *
436
- * @internal
436
+ * See [Extensions](/docs/features/extensions) for more info.
437
+ *
438
+ * @remarks `BlockNoteExtension[]`
437
439
  */
438
440
  extensions?: Array<BlockNoteExtension | BlockNoteExtensionFactory>;
439
441
  };
@@ -794,29 +796,31 @@ export class BlockNoteEditor<
794
796
  editor: this,
795
797
  });
796
798
  if (replaceWith) {
797
- const blockInfo = getBlockInfoFromTransaction(
798
- state.tr,
799
- );
799
+ const cursorPosition =
800
+ this.getTextCursorPosition();
800
801
 
801
- // TODO this is weird, why do we need it?
802
802
  if (
803
- blockInfo.isBlockContainer &&
804
- blockInfo.blockContent.node.type.spec
805
- .content === "inline*"
803
+ this.schema.blockSchema[
804
+ cursorPosition.block.type
805
+ ].content !== "inline"
806
806
  ) {
807
- const tr = state.tr.deleteRange(
808
- range.from,
809
- range.to,
810
- );
811
- updateBlockTr(
812
- tr,
813
- blockInfo.bnBlock.beforePos,
814
- replaceWith,
815
- range.from,
816
- range.to,
817
- );
818
807
  return undefined;
819
808
  }
809
+
810
+ const blockInfo = getBlockInfoFromTransaction(
811
+ state.tr,
812
+ );
813
+ const tr = state.tr.deleteRange(
814
+ range.from,
815
+ range.to,
816
+ );
817
+
818
+ updateBlockTr(
819
+ tr,
820
+ blockInfo.bnBlock.beforePos,
821
+ replaceWith,
822
+ );
823
+ return undefined;
820
824
  }
821
825
  return null;
822
826
  },
@@ -32,10 +32,10 @@ export class PlaceholderPlugin extends BlockNoteExtension {
32
32
  styleEl.setAttribute("nonce", nonce);
33
33
  }
34
34
 
35
- if (editor.prosemirrorView?.root instanceof window.ShadowRoot) {
36
- editor.prosemirrorView.root.append(styleEl);
35
+ if (view.root instanceof window.ShadowRoot) {
36
+ view.root.append(styleEl);
37
37
  } else {
38
- editor.prosemirrorView?.root.head.appendChild(styleEl);
38
+ view.root.head.appendChild(styleEl);
39
39
  }
40
40
 
41
41
  const styleSheet = styleEl.sheet!;
@@ -88,10 +88,10 @@ export class PlaceholderPlugin extends BlockNoteExtension {
88
88
 
89
89
  return {
90
90
  destroy: () => {
91
- if (editor.prosemirrorView?.root instanceof window.ShadowRoot) {
92
- editor.prosemirrorView.root.removeChild(styleEl);
91
+ if (view.root instanceof window.ShadowRoot) {
92
+ view.root.removeChild(styleEl);
93
93
  } else {
94
- editor.prosemirrorView?.root.head.removeChild(styleEl);
94
+ view.root.head.removeChild(styleEl);
95
95
  }
96
96
  },
97
97
  };
@@ -733,9 +733,7 @@ export class SideMenuProsemirrorPlugin<
733
733
  * Handles drag & drop events for blocks.
734
734
  */
735
735
  blockDragEnd = () => {
736
- if (this.editor.prosemirrorView) {
737
- unsetDragImage(this.editor.prosemirrorView.root);
738
- }
736
+ unsetDragImage(this.editor.prosemirrorView.root);
739
737
 
740
738
  if (this.view) {
741
739
  this.view.isDragOrigin = false;
@@ -159,10 +159,10 @@ export function dragStart<
159
159
  return;
160
160
  }
161
161
 
162
- const view = editor.prosemirrorView;
163
- if (!view) {
162
+ if (editor.headless) {
164
163
  return;
165
164
  }
165
+ const view = editor.prosemirrorView;
166
166
 
167
167
  const posInfo = getNodeById(block.id, view.state.doc);
168
168
  if (!posInfo) {
@@ -32,6 +32,7 @@ class SuggestionMenuView<
32
32
  constructor(
33
33
  private readonly editor: BlockNoteEditor<BSchema, I, S>,
34
34
  emitUpdate: (menuName: string, state: SuggestionMenuState) => void,
35
+ view: EditorView,
35
36
  ) {
36
37
  this.pluginState = undefined;
37
38
 
@@ -46,7 +47,7 @@ class SuggestionMenuView<
46
47
  });
47
48
  };
48
49
 
49
- this.rootEl = this.editor.prosemirrorView?.root;
50
+ this.rootEl = view.root;
50
51
 
51
52
  // Setting capture=true ensures that any parent container of the editor that
52
53
  // gets scrolled will trigger the scroll event. Scroll events do not bubble
@@ -181,12 +182,13 @@ export class SuggestionMenuProseMirrorPlugin<
181
182
  new Plugin({
182
183
  key: suggestionMenuPluginKey,
183
184
 
184
- view: () => {
185
+ view: (view) => {
185
186
  this.view = new SuggestionMenuView<BSchema, I, S>(
186
187
  editor,
187
188
  (triggerCharacter, state) => {
188
189
  this.emit(`update ${triggerCharacter}`, state);
189
190
  },
191
+ view,
190
192
  );
191
193
  return this.view;
192
194
  },
@@ -829,8 +829,8 @@ export class TableHandlesProsemirrorPlugin<
829
829
  }),
830
830
  );
831
831
 
832
- if (!this.editor.prosemirrorView) {
833
- throw new Error("Editor view not initialized.");
832
+ if (this.editor.headless) {
833
+ return;
834
834
  }
835
835
 
836
836
  setHiddenDragImage(this.editor.prosemirrorView.root);
@@ -872,8 +872,8 @@ export class TableHandlesProsemirrorPlugin<
872
872
  }),
873
873
  );
874
874
 
875
- if (!this.editor.prosemirrorView) {
876
- throw new Error("Editor view not initialized.");
875
+ if (this.editor.headless) {
876
+ return;
877
877
  }
878
878
 
879
879
  setHiddenDragImage(this.editor.prosemirrorView.root);
@@ -897,8 +897,8 @@ export class TableHandlesProsemirrorPlugin<
897
897
 
898
898
  this.editor.transact((tr) => tr.setMeta(tableHandlesPluginKey, null));
899
899
 
900
- if (!this.editor.prosemirrorView) {
901
- throw new Error("Editor view not initialized.");
900
+ if (this.editor.headless) {
901
+ return;
902
902
  }
903
903
 
904
904
  unsetHiddenDragImage(this.editor.prosemirrorView.root);
@@ -0,0 +1,2 @@
1
+ import { Parent as HASTParent } from "hast";
2
+ export declare function convertVideoToMarkdown(): (tree: HASTParent) => void;
@@ -0,0 +1,6 @@
1
+ import { Parent as HASTParent } from "hast";
2
+ /**
3
+ * Rehype plugin which removes <u> tags. Used to remove underlines before converting HTML to markdown, as Markdown
4
+ * doesn't support underlines.
5
+ */
6
+ export declare function removeUnderlines(): (tree: HASTParent) => void;
@@ -0,0 +1,3 @@
1
+ export type DividerBlockConfig = ReturnType<typeof createDividerBlockConfig>;
2
+ export declare const createDividerBlockConfig: () => import("../../index.js").BlockConfig<"divider", {}, "none">;
3
+ export declare const createDividerBlockSpec: (options?: Partial<Partial<Record<string, any>>> | undefined) => import("../../index.js").BlockSpec<"divider", {}, "none">;
@@ -278,7 +278,9 @@ export type BlockNoteEditorOptions<BSchema extends BlockSchema, ISchema extends
278
278
  /**
279
279
  * Register extensions to the editor.
280
280
  *
281
- * @internal
281
+ * See [Extensions](/docs/features/extensions) for more info.
282
+ *
283
+ * @remarks `BlockNoteExtension[]`
282
284
  */
283
285
  extensions?: Array<BlockNoteExtension | BlockNoteExtensionFactory>;
284
286
  };
@@ -0,0 +1,114 @@
1
+ import { Block, DefaultBlockSchema, DefaultInlineContentSchema, DefaultStyleSchema, PartialBlock } from "../../blocks/defaultBlocks.js";
2
+ import { BlockIdentifier, BlockSchema, InlineContentSchema, StyleSchema } from "../../schema/index.js";
3
+ import { BlockNoteEditor } from "../BlockNoteEditor.js";
4
+ export declare class BlockManager<BSchema extends BlockSchema = DefaultBlockSchema, ISchema extends InlineContentSchema = DefaultInlineContentSchema, SSchema extends StyleSchema = DefaultStyleSchema> {
5
+ private editor;
6
+ constructor(editor: BlockNoteEditor<BSchema, ISchema, SSchema>);
7
+ /**
8
+ * Gets a snapshot of all top-level (non-nested) blocks in the editor.
9
+ * @returns A snapshot of all top-level (non-nested) blocks in the editor.
10
+ */
11
+ get document(): Block<BSchema, ISchema, SSchema>[];
12
+ /**
13
+ * Gets a snapshot of an existing block from the editor.
14
+ * @param blockIdentifier The identifier of an existing block that should be
15
+ * retrieved.
16
+ * @returns The block that matches the identifier, or `undefined` if no
17
+ * matching block was found.
18
+ */
19
+ getBlock(blockIdentifier: BlockIdentifier): Block<BSchema, ISchema, SSchema> | undefined;
20
+ /**
21
+ * Gets a snapshot of the previous sibling of an existing block from the
22
+ * editor.
23
+ * @param blockIdentifier The identifier of an existing block for which the
24
+ * previous sibling should be retrieved.
25
+ * @returns The previous sibling of the block that matches the identifier.
26
+ * `undefined` if no matching block was found, or it's the first child/block
27
+ * in the document.
28
+ */
29
+ getPrevBlock(blockIdentifier: BlockIdentifier): Block<BSchema, ISchema, SSchema> | undefined;
30
+ /**
31
+ * Gets a snapshot of the next sibling of an existing block from the editor.
32
+ * @param blockIdentifier The identifier of an existing block for which the
33
+ * next sibling should be retrieved.
34
+ * @returns The next sibling of the block that matches the identifier.
35
+ * `undefined` if no matching block was found, or it's the last child/block in
36
+ * the document.
37
+ */
38
+ getNextBlock(blockIdentifier: BlockIdentifier): Block<BSchema, ISchema, SSchema> | undefined;
39
+ /**
40
+ * Gets a snapshot of the parent of an existing block from the editor.
41
+ * @param blockIdentifier The identifier of an existing block for which the
42
+ * parent should be retrieved.
43
+ * @returns The parent of the block that matches the identifier. `undefined`
44
+ * if no matching block was found, or the block isn't nested.
45
+ */
46
+ getParentBlock(blockIdentifier: BlockIdentifier): Block<BSchema, ISchema, SSchema> | undefined;
47
+ /**
48
+ * Traverses all blocks in the editor depth-first, and executes a callback for each.
49
+ * @param callback The callback to execute for each block. Returning `false` stops the traversal.
50
+ * @param reverse Whether the blocks should be traversed in reverse order.
51
+ */
52
+ forEachBlock(callback: (block: Block<BSchema, ISchema, SSchema>) => boolean, reverse?: boolean): void;
53
+ /**
54
+ * Inserts new blocks into the editor. If a block's `id` is undefined, BlockNote generates one automatically. Throws an
55
+ * error if the reference block could not be found.
56
+ * @param blocksToInsert An array of partial blocks that should be inserted.
57
+ * @param referenceBlock An identifier for an existing block, at which the new blocks should be inserted.
58
+ * @param placement Whether the blocks should be inserted just before, just after, or nested inside the
59
+ * `referenceBlock`.
60
+ */
61
+ insertBlocks(blocksToInsert: PartialBlock<BSchema, ISchema, SSchema>[], referenceBlock: BlockIdentifier, placement?: "before" | "after"): Block<BSchema, ISchema, SSchema>[];
62
+ /**
63
+ * Updates an existing block in the editor. Since updatedBlock is a PartialBlock object, some fields might not be
64
+ * defined. These undefined fields are kept as-is from the existing block. Throws an error if the block to update could
65
+ * not be found.
66
+ * @param blockToUpdate The block that should be updated.
67
+ * @param update A partial block which defines how the existing block should be changed.
68
+ */
69
+ updateBlock(blockToUpdate: BlockIdentifier, update: PartialBlock<BSchema, ISchema, SSchema>): Block<BSchema, ISchema, SSchema>;
70
+ /**
71
+ * Removes existing blocks from the editor. Throws an error if any of the blocks could not be found.
72
+ * @param blocksToRemove An array of identifiers for existing blocks that should be removed.
73
+ */
74
+ removeBlocks(blocksToRemove: BlockIdentifier[]): Block<Record<string, import("../../index.js").BlockConfig<string, import("../../index.js").PropSchema, "inline" | "none" | "table">>, InlineContentSchema, StyleSchema>[];
75
+ /**
76
+ * Replaces existing blocks in the editor with new blocks. If the blocks that should be removed are not adjacent or
77
+ * are at different nesting levels, `blocksToInsert` will be inserted at the position of the first block in
78
+ * `blocksToRemove`. Throws an error if any of the blocks to remove could not be found.
79
+ * @param blocksToRemove An array of blocks that should be replaced.
80
+ * @param blocksToInsert An array of partial blocks to replace the old ones with.
81
+ */
82
+ replaceBlocks(blocksToRemove: BlockIdentifier[], blocksToInsert: PartialBlock<BSchema, ISchema, SSchema>[]): {
83
+ insertedBlocks: Block<BSchema, ISchema, SSchema>[];
84
+ removedBlocks: Block<BSchema, ISchema, SSchema>[];
85
+ };
86
+ /**
87
+ * Checks if the block containing the text cursor can be nested.
88
+ */
89
+ canNestBlock(): boolean;
90
+ /**
91
+ * Nests the block containing the text cursor into the block above it.
92
+ */
93
+ nestBlock(): void;
94
+ /**
95
+ * Checks if the block containing the text cursor is nested.
96
+ */
97
+ canUnnestBlock(): boolean;
98
+ /**
99
+ * Lifts the block containing the text cursor out of its parent.
100
+ */
101
+ unnestBlock(): void;
102
+ /**
103
+ * Moves the selected blocks up. If the previous block has children, moves
104
+ * them to the end of its children. If there is no previous block, but the
105
+ * current blocks share a common parent, moves them out of & before it.
106
+ */
107
+ moveBlocksUp(): void;
108
+ /**
109
+ * Moves the selected blocks down. If the next block has children, moves
110
+ * them to the start of its children. If there is no next block, but the
111
+ * current blocks share a common parent, moves them out of & after it.
112
+ */
113
+ moveBlocksDown(): void;
114
+ }