@blocknote/core 0.48.1 → 0.49.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/blocknote.cjs +1 -1
- package/dist/blocknote.js +3 -3
- package/dist/{blocks-DYl7UTS4.js → blocks-CSfJen16.js} +18 -2
- package/dist/blocks-CSfJen16.js.map +1 -0
- package/dist/{blocks-BEvIOzln.cjs → blocks-_lpGWKOa.cjs} +3 -3
- package/dist/blocks-_lpGWKOa.cjs.map +1 -0
- package/dist/blocks.cjs +1 -1
- package/dist/blocks.js +1 -1
- package/dist/comments.cjs +1 -1
- package/dist/comments.cjs.map +1 -1
- package/dist/comments.js +2 -2
- package/dist/comments.js.map +1 -1
- package/dist/extensions-BfYaEv6F.cjs +2 -0
- package/dist/extensions-BfYaEv6F.cjs.map +1 -0
- package/dist/{extensions-3nf9PPhA.js → extensions-C3nguvVr.js} +240 -248
- package/dist/extensions-C3nguvVr.js.map +1 -0
- package/dist/extensions.cjs +1 -1
- package/dist/extensions.js +2 -2
- package/dist/src-ChTwrMcE.cjs +5 -0
- package/dist/src-ChTwrMcE.cjs.map +1 -0
- package/dist/{src-Hjv1f5lc.js → src-DQfz4zLM.js} +757 -373
- package/dist/src-DQfz4zLM.js.map +1 -0
- package/dist/style.css +1 -1
- package/dist/webpack-stats.json +1 -1
- package/dist/yjs.cjs +1 -1
- package/dist/yjs.js +1 -1
- package/package.json +6 -8
- package/src/blocks/ListItem/NumberedListItem/IndexingPlugin.test.ts +14 -1
- package/src/blocks/Quote/block.ts +9 -0
- package/src/blocks/Table/block.ts +26 -0
- package/src/comments/extension.ts +5 -0
- package/src/comments/threadstore/yjs/YjsThreadStore.test.ts +3 -2
- package/src/comments/threadstore/yjs/YjsThreadStore.ts +4 -4
- package/src/editor/BlockNoteEditor.ts +84 -5
- package/src/editor/editor.css +5 -0
- package/src/editor/managers/ExtensionManager/extensions.ts +8 -26
- package/src/editor/managers/StyleManager.ts +90 -10
- package/src/extensions/FormattingToolbar/FormattingToolbar.ts +23 -16
- package/src/extensions/LinkToolbar/LinkToolbar.ts +30 -75
- package/src/extensions/Placeholder/Placeholder.ts +2 -2
- package/src/extensions/tiptap-extensions/Link/helpers/autolink.ts +179 -0
- package/src/extensions/tiptap-extensions/Link/helpers/clickHandler.ts +82 -0
- package/src/extensions/tiptap-extensions/Link/helpers/linkDetector.ts +414 -0
- package/src/extensions/tiptap-extensions/Link/helpers/pasteHandler.ts +53 -0
- package/src/extensions/tiptap-extensions/Link/helpers/tlds.ts +7 -0
- package/src/extensions/tiptap-extensions/Link/helpers/whitespace.ts +13 -0
- package/src/extensions/tiptap-extensions/Link/index.ts +2 -0
- package/src/extensions/tiptap-extensions/Link/link.test.ts +941 -0
- package/src/extensions/tiptap-extensions/Link/link.ts +207 -0
- package/src/extensions/tiptap-extensions/UniqueID/UniqueID.ts +3 -5
- package/src/schema/inlineContent/types.ts +1 -1
- package/types/src/editor/BlockNoteEditor.d.ts +69 -3
- package/types/src/editor/managers/StyleManager.d.ts +22 -0
- package/types/src/extensions/LinkToolbar/LinkToolbar.d.ts +28 -7
- package/types/src/extensions/tiptap-extensions/Link/helpers/autolink.d.ts +13 -0
- package/types/src/extensions/tiptap-extensions/Link/helpers/clickHandler.d.ts +12 -0
- package/types/src/extensions/tiptap-extensions/Link/helpers/linkDetector.d.ts +32 -0
- package/types/src/extensions/tiptap-extensions/Link/helpers/pasteHandler.d.ts +12 -0
- package/types/src/extensions/tiptap-extensions/Link/helpers/tlds.d.ts +1 -0
- package/types/src/extensions/tiptap-extensions/Link/helpers/whitespace.d.ts +4 -0
- package/types/src/extensions/tiptap-extensions/Link/index.d.ts +2 -0
- package/types/src/extensions/tiptap-extensions/Link/link.d.ts +13 -0
- package/types/src/extensions/tiptap-extensions/Link/link.test.d.ts +1 -0
- package/types/src/schema/inlineContent/types.d.ts +1 -2
- package/dist/blocks-BEvIOzln.cjs.map +0 -1
- package/dist/blocks-DYl7UTS4.js.map +0 -1
- package/dist/extensions-3nf9PPhA.js.map +0 -1
- package/dist/extensions-D9y6evn6.cjs +0 -2
- package/dist/extensions-D9y6evn6.cjs.map +0 -1
- package/dist/src-BKJH7Jla.cjs +0 -5
- package/dist/src-BKJH7Jla.cjs.map +0 -1
- package/dist/src-Hjv1f5lc.js.map +0 -1
package/dist/style.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
.bn-block-outer{line-height:1.5;transition:margin .2s}.bn-block{flex-direction:column;display:flex}.bn-block-content{width:100%;padding:3px 0;transition:font-size .2s;display:flex}.bn-block-content.ProseMirror-selectednode>*,.ProseMirror-selectednode>.bn-block-content>*{border-radius:4px;outline:4px solid #64a0ff}.bn-block-content:before{content:"";height:0;margin-right:0;transition:all .2s;overflow:visible}.bn-inline-content{white-space:pre-wrap}.bn-block-group .bn-block-group{margin-left:24px}.bn-block-group .bn-block-group>.bn-block-outer{position:relative}.bn-block-group .bn-block-group>.bn-block-outer:not([data-prev-depth-changed]):before{content:" ";height:100%;transition:all .2s .1s;display:inline;position:absolute;left:-20px}.bn-block-group .bn-block-group>.bn-block-outer[data-prev-depth-change="-2"]:before{height:0}.bn-inline-content code{font-family:monospace}[data-prev-depth-change="1"]{--x:1}[data-prev-depth-change="2"]{--x:2}[data-prev-depth-change="3"]{--x:3}[data-prev-depth-change="4"]{--x:4}[data-prev-depth-change="5"]{--x:5}[data-prev-depth-change="-1"]{--x:-1}[data-prev-depth-change="-2"]{--x:-2}[data-prev-depth-change="-3"]{--x:-3}[data-prev-depth-change="-4"]{--x:-4}[data-prev-depth-change="-5"]{--x:-5}.bn-block-outer[data-prev-depth-change]{margin-left:calc(10px * var(--x))}.bn-block-outer[data-prev-depth-change] .bn-block-outer[data-prev-depth-change]{margin-left:0}[data-content-type=heading]{--level:3em}[data-content-type=heading][data-level="2"]{--level:2em}[data-content-type=heading][data-level="3"]{--level:1.3em}[data-content-type=heading][data-level="4"]{--level:1em}[data-content-type=heading][data-level="5"]{--level:.9em}[data-content-type=heading][data-level="6"]{--level:.8em}[data-prev-level="1"]{--prev-level:3em}[data-prev-level="2"]{--prev-level:2em}[data-prev-level="3"]{--prev-level:1.3em}[data-prev-level="4"]{--prev-level:1em}[data-prev-level="5"]{--prev-level:.9em}[data-prev-level="6"]{--prev-level:.8em}.bn-block-outer[data-prev-type=heading]>.bn-block>.bn-block-content{font-size:var(--prev-level);font-weight:700}.bn-block-outer:not([data-prev-type])>.bn-block>.bn-block-content[data-content-type=heading],.bn-block-outer:not([data-prev-type])>.bn-block>div[data-type=modification]>div[data-type=modification]>.bn-block-content[data-content-type=heading]{font-size:var(--level);font-weight:700}[data-content-type=quote] blockquote{color:#7d797a;border-left:2px solid #7d797a;margin:0;padding-left:1em}[data-content-type=divider] hr{border:none;border-top:1px solid #7d797a;flex:1;margin:.5em 0}.bn-block-content:before{content:"";margin-right:0}.bn-block-content[data-content-type=numberedListItem]:before{justify-content:center;min-width:24px;padding-right:4px;display:flex}[data-content-type=numberedListItem]{--index:attr(data-index)}[data-prev-type=numberedListItem]{--prev-index:attr(data-prev-index)}.bn-block-outer[data-prev-type=numberedListItem]:not([data-prev-index=none])>.bn-block>.bn-block-content:before{content:var(--prev-index) "."}.bn-block-outer:not([data-prev-type])>.bn-block>.bn-block-content[data-content-type=numberedListItem]:before,.bn-block-outer:not([data-prev-type])>.bn-block>div[data-type=modification]>.bn-block-content[data-content-type=numberedListItem]:before{content:var(--index) "."}.bn-block-content[data-content-type=bulletListItem]:before{justify-content:center;min-width:24px;padding-right:4px;display:flex}.bn-block-content[data-content-type=checkListItem]>div:has(>input){height:24px}.bn-block-content[data-content-type=checkListItem]>div>input{cursor:pointer;margin-left:4px;margin-right:8px;width:12px;height:24px;margin-block:0}.bn-block-content[data-content-type=checkListItem][data-checked=true] .bn-inline-content{text-decoration:line-through}.bn-block-content[data-text-alignment=center]{justify-content:center}.bn-block-content[data-text-alignment=right]{justify-content:flex-end}:is(.bn-block:has(>.bn-block-content>div>.bn-toggle-wrapper[data-show-children=false])>.bn-block-group,.bn-block:has(>.react-renderer>.bn-block-content>div>.bn-toggle-wrapper[data-show-children=false])>.bn-block-group){display:none}.bn-toggle-wrapper{align-items:center;display:flex}.bn-toggle-button{color:var(--bn-colors-editor-text);padding:3px}.bn-toggle-button>svg{width:18px;height:18px}.bn-toggle-wrapper[data-show-children=true] .bn-toggle-button{transform:rotate(90deg)}.bn-toggle-add-block-button{color:var(--bn-colors-side-menu);width:fit-content;margin-left:22px;padding-inline:2px;font-size:16px;font-weight:400}.bn-toggle-button,.bn-toggle-add-block-button{border-radius:var(--bn-border-radius-small);cursor:pointer;-webkit-user-select:none;user-select:none;background:0 0;border:none;display:flex}.bn-toggle-button:hover,.bn-toggle-add-block-button:hover{background-color:var(--bn-colors-hovered-background)}.bn-block-outer[data-prev-type=bulletListItem]>.bn-block>.bn-block-content:before,.bn-block-outer:not([data-prev-type])>.bn-block>.bn-block-content[data-content-type=bulletListItem]:before,.bn-block-outer:not([data-prev-type])>.bn-block>div[data-type=modification]>.bn-block-content[data-content-type=bulletListItem]:before{content:"•"}[data-content-type=bulletListItem]~.bn-block-group>.bn-block-outer[data-prev-type=bulletListItem]>.bn-block>.bn-block-content:before,[data-content-type=bulletListItem]~.bn-block-group>.bn-block-outer:not([data-prev-type])>.bn-block>.bn-block-content[data-content-type=bulletListItem]:before,[data-content-type=bulletListItem]~.bn-block-group>.bn-block-outer:not([data-prev-type])>.bn-block>div[data-type=modification]>.bn-block-content[data-content-type=bulletListItem]:before{content:"◦"}[data-content-type=bulletListItem]~.bn-block-group [data-content-type=bulletListItem]~.bn-block-group>.bn-block-outer[data-prev-type=bulletListItem]>.bn-block>.bn-block-content:before,[data-content-type=bulletListItem]~.bn-block-group [data-content-type=bulletListItem]~.bn-block-group>.bn-block-outer:not([data-prev-type])>.bn-block>.bn-block-content[data-content-type=bulletListItem]:before,[data-content-type=bulletListItem]~.bn-block-group [data-content-type=bulletListItem]~.bn-block-group>.bn-block-outer:not([data-prev-type])>.bn-block>div[data-type=modification]>.bn-block-content[data-content-type=bulletListItem]:before{content:"▪︎"}.bn-block-content[data-content-type=codeBlock]{color:#fff;background-color:#161616;border-radius:8px;position:relative}.bn-block-content[data-content-type=codeBlock]>pre{white-space:pre;tab-size:2;width:100%;margin:0;padding:24px;overflow-x:auto}.bn-block-content[data-content-type=codeBlock]>div{outline:none!important}.bn-block-content[data-content-type=codeBlock]>div>select{appearance:none;-webkit-user-select:none;user-select:none;cursor:pointer;color:#fff;opacity:0;background-color:#0000;border:none;font-size:.8em;transition:opacity .3s 1s;position:absolute;top:8px;left:18px;outline:none!important}.bn-block-content[data-content-type=codeBlock]>div>select>option{color:#000}.bn-block-content[data-content-type=codeBlock]:hover>div>select,.bn-block-content[data-content-type=codeBlock]>div>select:focus{opacity:.5;transition-delay:.1s}.bn-block-content[data-content-type=pageBreak]>div{border-top:2px dotted #7d797a;width:100%;height:0;margin-block:11px}@media print{.bn-block-content[data-content-type=pageBreak]>div{page-break-after:always}}[data-file-block] .bn-file-block-content-wrapper{cursor:pointer;-webkit-user-select:none;user-select:none;flex-direction:column;display:flex}:is([data-file-block] .bn-file-block-content-wrapper:has(.bn-add-file-button),[data-file-block] .bn-file-block-content-wrapper:has(.bn-file-name-with-icon)){width:100%}[data-file-block] .bn-add-file-button{color:#7d797a;background-color:#f2f1ee;border-radius:4px;align-items:center;gap:10px;padding:12px;display:flex}.bn-editor[contenteditable=true] [data-file-block] .bn-add-file-button:hover,[data-file-block] .bn-file-name-with-icon:hover,.ProseMirror-selectednode .bn-file-name-with-icon{background-color:#e1e1e1}[data-file-block] .bn-add-file-button-icon,[data-file-block] .bn-file-icon{width:24px;height:24px}[data-file-block] .bn-add-file-button-text{font-size:.9rem}[data-file-block] .bn-file-name-with-icon{border-radius:4px;gap:4px;padding:4px;display:flex}[data-file-block] .bn-file-caption{word-break:break-word;padding-block:4px;font-size:.8em}[data-file-block] .bn-file-caption:empty{padding-block:0}[data-file-block] .bn-resize-handle{cursor:ew-resize;background-color:#000;border:1px solid #fff;border-radius:4px;width:8px;height:30px;position:absolute}[data-file-block] .bn-visual-media-wrapper{align-items:center;max-width:100%;display:flex;position:relative}[data-file-block] .bn-visual-media{border-radius:4px;width:100%}[data-content-type=audio]>.bn-file-block-content-wrapper,.bn-audio{width:100%}.bn-block-content:has(.ProseMirror-trailingBreak:only-child):after{pointer-events:none;max-width:100%;margin-inline:-2px;font-style:italic}[data-style-type=textColor][data-value=gray],[data-text-color=gray]{color:#9b9a97}.bn-block:has(>.bn-block-content[data-text-color=gray]){color:#9b9a97}[data-style-type=textColor][data-value=brown],[data-text-color=brown]{color:#64473a}.bn-block:has(>.bn-block-content[data-text-color=brown]){color:#64473a}[data-style-type=textColor][data-value=red],[data-text-color=red]{color:#e03e3e}.bn-block:has(>.bn-block-content[data-text-color=red]){color:#e03e3e}[data-style-type=textColor][data-value=orange],[data-text-color=orange]{color:#d9730d}.bn-block:has(>.bn-block-content[data-text-color=orange]){color:#d9730d}[data-style-type=textColor][data-value=yellow],[data-text-color=yellow]{color:#dfab01}.bn-block:has(>.bn-block-content[data-text-color=yellow]){color:#dfab01}[data-style-type=textColor][data-value=green],[data-text-color=green]{color:#4d6461}.bn-block:has(>.bn-block-content[data-text-color=green]){color:#4d6461}[data-style-type=textColor][data-value=blue],[data-text-color=blue]{color:#0b6e99}.bn-block:has(>.bn-block-content[data-text-color=blue]){color:#0b6e99}[data-style-type=textColor][data-value=purple],[data-text-color=purple]{color:#6940a5}.bn-block:has(>.bn-block-content[data-text-color=purple]){color:#6940a5}[data-style-type=textColor][data-value=pink],[data-text-color=pink]{color:#ad1a72}.bn-block:has(>.bn-block-content[data-text-color=pink]){color:#ad1a72}[data-style-type=backgroundColor][data-value=gray],[data-background-color=gray]{background-color:#ebeced}.bn-block:has(>.bn-block-content[data-background-color=gray]){background-color:#ebeced}[data-style-type=backgroundColor][data-value=brown],[data-background-color=brown]{background-color:#e9e5e3}.bn-block:has(>.bn-block-content[data-background-color=brown]){background-color:#e9e5e3}[data-style-type=backgroundColor][data-value=red],[data-background-color=red]{background-color:#fbe4e4}.bn-block:has(>.bn-block-content[data-background-color=red]){background-color:#fbe4e4}[data-style-type=backgroundColor][data-value=orange],[data-background-color=orange]{background-color:#f6e9d9}.bn-block:has(>.bn-block-content[data-background-color=orange]){background-color:#f6e9d9}[data-style-type=backgroundColor][data-value=yellow],[data-background-color=yellow]{background-color:#fbf3db}.bn-block:has(>.bn-block-content[data-background-color=yellow]){background-color:#fbf3db}[data-style-type=backgroundColor][data-value=green],[data-background-color=green]{background-color:#ddedea}.bn-block:has(>.bn-block-content[data-background-color=green]){background-color:#ddedea}[data-style-type=backgroundColor][data-value=blue],[data-background-color=blue]{background-color:#ddebf1}.bn-block:has(>.bn-block-content[data-background-color=blue]){background-color:#ddebf1}[data-style-type=backgroundColor][data-value=purple],[data-background-color=purple]{background-color:#eae4f2}.bn-block:has(>.bn-block-content[data-background-color=purple]){background-color:#eae4f2}[data-style-type=backgroundColor][data-value=pink],[data-background-color=pink]{background-color:#f4dfeb}.bn-block:has(>.bn-block-content[data-background-color=pink]){background-color:#f4dfeb}[data-text-alignment=left]{text-align:left!important;justify-content:flex-start!important}[data-text-alignment=center]{text-align:center!important;justify-content:center!important}[data-text-alignment=right]{text-align:right!important;justify-content:flex-end!important}[data-text-alignment=justify]{text-align:justify!important;justify-content:flex-start!important}.bn-block-column-list{flex-direction:row;display:flex}.bn-block-column{flex:1;padding:12px 20px;overflow-x:auto}.bn-block-column:first-child{padding-left:0}.bn-block-column:last-child{padding-right:0}.bn-thread-mark:not([data-orphan=true]){background:#ffc80026}.bn-thread-mark .bn-thread-mark-selected{background:#ffc80040}.ProseMirror .tableWrapper{overflow-x:auto}.ProseMirror table{border-collapse:collapse;table-layout:fixed;width:100%;overflow:hidden}.ProseMirror td,.ProseMirror th{vertical-align:top;box-sizing:border-box;position:relative}.ProseMirror td:not([data-colwidth]):not(.column-resize-dragging),.ProseMirror th:not([data-colwidth]):not(.column-resize-dragging){min-width:var(--default-cell-min-width)}.ProseMirror .column-resize-handle{z-index:20;pointer-events:none;background-color:#adf;width:4px;position:absolute;top:0;bottom:0;right:-2px}.ProseMirror.resize-cursor{cursor:ew-resize;cursor:col-resize}.ProseMirror .selectedCell:after{z-index:2;content:"";pointer-events:none;background:#c8c8ff66;position:absolute;inset:0}.bn-editor{font-synthesis:style weight;--N800:#172b4d;--N40:#dfe1e6;outline:none;padding-inline:54px}.bn-comment-editor{width:100%;padding:0}.bn-comment-editor .bn-editor{padding:0}.bn-default-styles p,.bn-default-styles h1,.bn-default-styles h2,.bn-default-styles h3,.bn-default-styles h4,.bn-default-styles h5,.bn-default-styles h6,.bn-default-styles li{font-size:inherit;margin:0;padding:0;min-width:2px!important}.bn-default-styles{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,SF Pro Display,-apple-system,BlinkMacSystemFont,Open Sans,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-size:16px;font-weight:400}.bn-table-drop-cursor{z-index:20;pointer-events:none;background-color:#adf;position:absolute}.bn-drag-preview{opacity:.001;padding:10px;position:absolute;top:0;left:0}.bn-editor .bn-collaboration-cursor__base{position:relative}.bn-editor .bn-collaboration-cursor__base .bn-collaboration-cursor__caret{width:2px;position:absolute;top:1px;bottom:-2px;left:-1px}.bn-editor .bn-collaboration-cursor__base .bn-collaboration-cursor__label{pointer-events:none;white-space:nowrap;-webkit-user-select:none;user-select:none;color:#0000;border-radius:0 1.5px 1.5px 0;max-width:4px;max-height:5px;padding:0;font-size:12px;font-style:normal;font-weight:600;line-height:normal;transition:all .2s;position:absolute;top:-1px;left:0;overflow:hidden}.bn-editor .bn-collaboration-cursor__base[data-active] .bn-collaboration-cursor__label{color:#0d0d0d;border-radius:3px 3px 3px 0;max-width:20rem;max-height:1.1rem;padding:.1rem .3rem;transition:all .2s;top:-17px;left:0}.bn-editor [data-content-type=table] .tableWrapper{--bn-table-widget-size:22px;--bn-table-handle-size:calc(18px / 2);padding:var(--bn-table-handle-size) var(--bn-table-widget-size) var(--bn-table-widget-size) var(--bn-table-handle-size);width:100%;position:relative;overflow-y:hidden}.bn-editor [data-content-type=table] table{word-break:break-word;width:auto!important}.bn-editor [data-content-type=table] th,.bn-editor [data-content-type=table] td{border:1px solid #ddd;padding:5px 10px}.bn-editor [data-content-type=table] th{text-align:left;font-weight:700}.bn-editor [data-content-type=table] th>p,.bn-editor [data-content-type=table] td>p{min-height:1.5rem}.ProseMirror td,.ProseMirror th{min-width:auto!important}.ProseMirror td:not([colwidth]):not(.column-resize-dragging),.ProseMirror th:not([colwidth]):not(.column-resize-dragging){min-width:var(--default-cell-min-width)!important}.prosemirror-dropcursor-block{transition-property:top,bottom;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.prosemirror-dropcursor-vertical{transition-property:left,right}[data-show-selection]{background-color:highlight;padding:2px 0}
|
|
1
|
+
.bn-block-outer{line-height:1.5;transition:margin .2s}.bn-block{flex-direction:column;display:flex}.bn-block-content{width:100%;padding:3px 0;transition:font-size .2s;display:flex}.bn-block-content.ProseMirror-selectednode>*,.ProseMirror-selectednode>.bn-block-content>*{border-radius:4px;outline:4px solid #64a0ff}.bn-block-content:before{content:"";height:0;margin-right:0;transition:all .2s;overflow:visible}.bn-inline-content{white-space:pre-wrap}.bn-block-group .bn-block-group{margin-left:24px}.bn-block-group .bn-block-group>.bn-block-outer{position:relative}.bn-block-group .bn-block-group>.bn-block-outer:not([data-prev-depth-changed]):before{content:" ";height:100%;transition:all .2s .1s;display:inline;position:absolute;left:-20px}.bn-block-group .bn-block-group>.bn-block-outer[data-prev-depth-change="-2"]:before{height:0}.bn-inline-content code{font-family:monospace}[data-prev-depth-change="1"]{--x:1}[data-prev-depth-change="2"]{--x:2}[data-prev-depth-change="3"]{--x:3}[data-prev-depth-change="4"]{--x:4}[data-prev-depth-change="5"]{--x:5}[data-prev-depth-change="-1"]{--x:-1}[data-prev-depth-change="-2"]{--x:-2}[data-prev-depth-change="-3"]{--x:-3}[data-prev-depth-change="-4"]{--x:-4}[data-prev-depth-change="-5"]{--x:-5}.bn-block-outer[data-prev-depth-change]{margin-left:calc(10px * var(--x))}.bn-block-outer[data-prev-depth-change] .bn-block-outer[data-prev-depth-change]{margin-left:0}[data-content-type=heading]{--level:3em}[data-content-type=heading][data-level="2"]{--level:2em}[data-content-type=heading][data-level="3"]{--level:1.3em}[data-content-type=heading][data-level="4"]{--level:1em}[data-content-type=heading][data-level="5"]{--level:.9em}[data-content-type=heading][data-level="6"]{--level:.8em}[data-prev-level="1"]{--prev-level:3em}[data-prev-level="2"]{--prev-level:2em}[data-prev-level="3"]{--prev-level:1.3em}[data-prev-level="4"]{--prev-level:1em}[data-prev-level="5"]{--prev-level:.9em}[data-prev-level="6"]{--prev-level:.8em}.bn-block-outer[data-prev-type=heading]>.bn-block>.bn-block-content{font-size:var(--prev-level);font-weight:700}.bn-block-outer:not([data-prev-type])>.bn-block>.bn-block-content[data-content-type=heading],.bn-block-outer:not([data-prev-type])>.bn-block>div[data-type=modification]>div[data-type=modification]>.bn-block-content[data-content-type=heading]{font-size:var(--level);font-weight:700}[data-content-type=quote] blockquote{color:#7d797a;border-left:2px solid #7d797a;margin:0;padding-left:1em}[data-content-type=divider] hr{border:none;border-top:1px solid #7d797a;flex:1;margin:.5em 0}.bn-block-content:before{content:"";margin-right:0}.bn-block-content[data-content-type=numberedListItem]:before{justify-content:center;min-width:24px;padding-right:4px;display:flex}[data-content-type=numberedListItem]{--index:attr(data-index)}[data-prev-type=numberedListItem]{--prev-index:attr(data-prev-index)}.bn-block-outer[data-prev-type=numberedListItem]:not([data-prev-index=none])>.bn-block>.bn-block-content:before{content:var(--prev-index) "."}.bn-block-outer:not([data-prev-type])>.bn-block>.bn-block-content[data-content-type=numberedListItem]:before,.bn-block-outer:not([data-prev-type])>.bn-block>div[data-type=modification]>.bn-block-content[data-content-type=numberedListItem]:before{content:var(--index) "."}.bn-block-content[data-content-type=bulletListItem]:before{justify-content:center;min-width:24px;padding-right:4px;display:flex}.bn-block-content[data-content-type=checkListItem]>div:has(>input){height:24px}.bn-block-content[data-content-type=checkListItem]>div>input{cursor:pointer;margin-left:4px;margin-right:8px;width:12px;height:24px;margin-block:0}.bn-block-content[data-content-type=checkListItem][data-checked=true] .bn-inline-content{text-decoration:line-through}.bn-block-content[data-text-alignment=center]{justify-content:center}.bn-block-content[data-text-alignment=right]{justify-content:flex-end}:is(.bn-block:has(>.bn-block-content>div>.bn-toggle-wrapper[data-show-children=false])>.bn-block-group,.bn-block:has(>.react-renderer>.bn-block-content>div>.bn-toggle-wrapper[data-show-children=false])>.bn-block-group){display:none}.bn-toggle-wrapper{align-items:center;display:flex}.bn-toggle-button{color:var(--bn-colors-editor-text);padding:3px}.bn-toggle-button>svg{width:18px;height:18px}.bn-toggle-wrapper[data-show-children=true] .bn-toggle-button{transform:rotate(90deg)}.bn-toggle-add-block-button{color:var(--bn-colors-side-menu);width:fit-content;margin-left:22px;padding-inline:2px;font-size:16px;font-weight:400}.bn-toggle-button,.bn-toggle-add-block-button{border-radius:var(--bn-border-radius-small);cursor:pointer;-webkit-user-select:none;user-select:none;background:0 0;border:none;display:flex}.bn-toggle-button:hover,.bn-toggle-add-block-button:hover{background-color:var(--bn-colors-hovered-background)}.bn-block-outer[data-prev-type=bulletListItem]>.bn-block>.bn-block-content:before,.bn-block-outer:not([data-prev-type])>.bn-block>.bn-block-content[data-content-type=bulletListItem]:before,.bn-block-outer:not([data-prev-type])>.bn-block>div[data-type=modification]>.bn-block-content[data-content-type=bulletListItem]:before{content:"•"}[data-content-type=bulletListItem]~.bn-block-group>.bn-block-outer[data-prev-type=bulletListItem]>.bn-block>.bn-block-content:before,[data-content-type=bulletListItem]~.bn-block-group>.bn-block-outer:not([data-prev-type])>.bn-block>.bn-block-content[data-content-type=bulletListItem]:before,[data-content-type=bulletListItem]~.bn-block-group>.bn-block-outer:not([data-prev-type])>.bn-block>div[data-type=modification]>.bn-block-content[data-content-type=bulletListItem]:before{content:"◦"}[data-content-type=bulletListItem]~.bn-block-group [data-content-type=bulletListItem]~.bn-block-group>.bn-block-outer[data-prev-type=bulletListItem]>.bn-block>.bn-block-content:before,[data-content-type=bulletListItem]~.bn-block-group [data-content-type=bulletListItem]~.bn-block-group>.bn-block-outer:not([data-prev-type])>.bn-block>.bn-block-content[data-content-type=bulletListItem]:before,[data-content-type=bulletListItem]~.bn-block-group [data-content-type=bulletListItem]~.bn-block-group>.bn-block-outer:not([data-prev-type])>.bn-block>div[data-type=modification]>.bn-block-content[data-content-type=bulletListItem]:before{content:"▪︎"}.bn-block-content[data-content-type=codeBlock]{color:#fff;background-color:#161616;border-radius:8px;position:relative}.bn-block-content[data-content-type=codeBlock]>pre{white-space:pre;tab-size:2;width:100%;margin:0;padding:24px;overflow-x:auto}.bn-block-content[data-content-type=codeBlock]>div{outline:none!important}.bn-block-content[data-content-type=codeBlock]>div>select{appearance:none;-webkit-user-select:none;user-select:none;cursor:pointer;color:#fff;opacity:0;background-color:#0000;border:none;font-size:.8em;transition:opacity .3s 1s;position:absolute;top:8px;left:18px;outline:none!important}.bn-block-content[data-content-type=codeBlock]>div>select>option{color:#000}.bn-block-content[data-content-type=codeBlock]:hover>div>select,.bn-block-content[data-content-type=codeBlock]>div>select:focus{opacity:.5;transition-delay:.1s}.bn-block-content[data-content-type=pageBreak]>div{border-top:2px dotted #7d797a;width:100%;height:0;margin-block:11px}@media print{.bn-block-content[data-content-type=pageBreak]>div{page-break-after:always}}[data-file-block] .bn-file-block-content-wrapper{cursor:pointer;-webkit-user-select:none;user-select:none;flex-direction:column;display:flex}:is([data-file-block] .bn-file-block-content-wrapper:has(.bn-add-file-button),[data-file-block] .bn-file-block-content-wrapper:has(.bn-file-name-with-icon)){width:100%}[data-file-block] .bn-add-file-button{color:#7d797a;background-color:#f2f1ee;border-radius:4px;align-items:center;gap:10px;padding:12px;display:flex}.bn-editor[contenteditable=true] [data-file-block] .bn-add-file-button:hover,[data-file-block] .bn-file-name-with-icon:hover,.ProseMirror-selectednode .bn-file-name-with-icon{background-color:#e1e1e1}[data-file-block] .bn-add-file-button-icon,[data-file-block] .bn-file-icon{width:24px;height:24px}[data-file-block] .bn-add-file-button-text{font-size:.9rem}[data-file-block] .bn-file-name-with-icon{border-radius:4px;gap:4px;padding:4px;display:flex}[data-file-block] .bn-file-caption{word-break:break-word;padding-block:4px;font-size:.8em}[data-file-block] .bn-file-caption:empty{padding-block:0}[data-file-block] .bn-resize-handle{cursor:ew-resize;background-color:#000;border:1px solid #fff;border-radius:4px;width:8px;height:30px;position:absolute}[data-file-block] .bn-visual-media-wrapper{align-items:center;max-width:100%;display:flex;position:relative}[data-file-block] .bn-visual-media{border-radius:4px;width:100%}[data-content-type=audio]>.bn-file-block-content-wrapper,.bn-audio{width:100%}.bn-block-content:has(.ProseMirror-trailingBreak:only-child):after{pointer-events:none;max-width:100%;margin-inline:-2px;font-style:italic}[data-style-type=textColor][data-value=gray],[data-text-color=gray]{color:#9b9a97}.bn-block:has(>.bn-block-content[data-text-color=gray]){color:#9b9a97}[data-style-type=textColor][data-value=brown],[data-text-color=brown]{color:#64473a}.bn-block:has(>.bn-block-content[data-text-color=brown]){color:#64473a}[data-style-type=textColor][data-value=red],[data-text-color=red]{color:#e03e3e}.bn-block:has(>.bn-block-content[data-text-color=red]){color:#e03e3e}[data-style-type=textColor][data-value=orange],[data-text-color=orange]{color:#d9730d}.bn-block:has(>.bn-block-content[data-text-color=orange]){color:#d9730d}[data-style-type=textColor][data-value=yellow],[data-text-color=yellow]{color:#dfab01}.bn-block:has(>.bn-block-content[data-text-color=yellow]){color:#dfab01}[data-style-type=textColor][data-value=green],[data-text-color=green]{color:#4d6461}.bn-block:has(>.bn-block-content[data-text-color=green]){color:#4d6461}[data-style-type=textColor][data-value=blue],[data-text-color=blue]{color:#0b6e99}.bn-block:has(>.bn-block-content[data-text-color=blue]){color:#0b6e99}[data-style-type=textColor][data-value=purple],[data-text-color=purple]{color:#6940a5}.bn-block:has(>.bn-block-content[data-text-color=purple]){color:#6940a5}[data-style-type=textColor][data-value=pink],[data-text-color=pink]{color:#ad1a72}.bn-block:has(>.bn-block-content[data-text-color=pink]){color:#ad1a72}[data-style-type=backgroundColor][data-value=gray],[data-background-color=gray]{background-color:#ebeced}.bn-block:has(>.bn-block-content[data-background-color=gray]){background-color:#ebeced}[data-style-type=backgroundColor][data-value=brown],[data-background-color=brown]{background-color:#e9e5e3}.bn-block:has(>.bn-block-content[data-background-color=brown]){background-color:#e9e5e3}[data-style-type=backgroundColor][data-value=red],[data-background-color=red]{background-color:#fbe4e4}.bn-block:has(>.bn-block-content[data-background-color=red]){background-color:#fbe4e4}[data-style-type=backgroundColor][data-value=orange],[data-background-color=orange]{background-color:#f6e9d9}.bn-block:has(>.bn-block-content[data-background-color=orange]){background-color:#f6e9d9}[data-style-type=backgroundColor][data-value=yellow],[data-background-color=yellow]{background-color:#fbf3db}.bn-block:has(>.bn-block-content[data-background-color=yellow]){background-color:#fbf3db}[data-style-type=backgroundColor][data-value=green],[data-background-color=green]{background-color:#ddedea}.bn-block:has(>.bn-block-content[data-background-color=green]){background-color:#ddedea}[data-style-type=backgroundColor][data-value=blue],[data-background-color=blue]{background-color:#ddebf1}.bn-block:has(>.bn-block-content[data-background-color=blue]){background-color:#ddebf1}[data-style-type=backgroundColor][data-value=purple],[data-background-color=purple]{background-color:#eae4f2}.bn-block:has(>.bn-block-content[data-background-color=purple]){background-color:#eae4f2}[data-style-type=backgroundColor][data-value=pink],[data-background-color=pink]{background-color:#f4dfeb}.bn-block:has(>.bn-block-content[data-background-color=pink]){background-color:#f4dfeb}[data-text-alignment=left]{text-align:left!important;justify-content:flex-start!important}[data-text-alignment=center]{text-align:center!important;justify-content:center!important}[data-text-alignment=right]{text-align:right!important;justify-content:flex-end!important}[data-text-alignment=justify]{text-align:justify!important;justify-content:flex-start!important}.bn-block-column-list{flex-direction:row;display:flex}.bn-block-column{flex:1;padding:12px 20px;overflow-x:auto}.bn-block-column:first-child{padding-left:0}.bn-block-column:last-child{padding-right:0}.bn-thread-mark:not([data-orphan=true]){background:#ffc80026}.bn-thread-mark .bn-thread-mark-selected{background:#ffc80040}.ProseMirror .tableWrapper{overflow-x:auto}.ProseMirror table{border-collapse:collapse;table-layout:fixed;width:100%;overflow:hidden}.ProseMirror td,.ProseMirror th{vertical-align:top;box-sizing:border-box;position:relative}.ProseMirror td:not([data-colwidth]):not(.column-resize-dragging),.ProseMirror th:not([data-colwidth]):not(.column-resize-dragging){min-width:var(--default-cell-min-width)}.ProseMirror .column-resize-handle{z-index:20;pointer-events:none;background-color:#adf;width:4px;position:absolute;top:0;bottom:0;right:-2px}.ProseMirror.resize-cursor{cursor:ew-resize;cursor:col-resize}.ProseMirror .selectedCell:after{z-index:2;content:"";pointer-events:none;background:#c8c8ff66;position:absolute;inset:0}.bn-editor{font-synthesis:style weight;--N800:#172b4d;--N40:#dfe1e6;outline:none;padding-inline:54px}.bn-comment-editor{width:100%;padding:0}.bn-comment-editor .bn-editor{padding:0}.bn-default-styles p,.bn-default-styles h1,.bn-default-styles h2,.bn-default-styles h3,.bn-default-styles h4,.bn-default-styles h5,.bn-default-styles h6,.bn-default-styles li{font-size:inherit;margin:0;padding:0;min-width:2px!important}.bn-default-styles{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,SF Pro Display,-apple-system,BlinkMacSystemFont,Open Sans,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-size:16px;font-weight:400}.bn-table-drop-cursor{z-index:20;pointer-events:none;background-color:#adf;position:absolute}.bn-drag-preview{opacity:.001;pointer-events:none;padding:10px;position:absolute;top:0;left:0}.bn-editor .bn-collaboration-cursor__base{position:relative}.bn-editor .bn-collaboration-cursor__base .bn-collaboration-cursor__caret{width:2px;position:absolute;top:1px;bottom:-2px;left:-1px}.bn-editor .bn-collaboration-cursor__base .bn-collaboration-cursor__label{pointer-events:none;white-space:nowrap;-webkit-user-select:none;user-select:none;color:#0000;border-radius:0 1.5px 1.5px 0;max-width:4px;max-height:5px;padding:0;font-size:12px;font-style:normal;font-weight:600;line-height:normal;transition:all .2s;position:absolute;top:-1px;left:0;overflow:hidden}.bn-editor .bn-collaboration-cursor__base[data-active] .bn-collaboration-cursor__label{color:#0d0d0d;border-radius:3px 3px 3px 0;max-width:20rem;max-height:1.1rem;padding:.1rem .3rem;transition:all .2s;top:-17px;left:0}.bn-editor [data-content-type=table] .tableWrapper{--bn-table-widget-size:22px;--bn-table-handle-size:calc(18px / 2);padding:var(--bn-table-handle-size) var(--bn-table-widget-size) var(--bn-table-widget-size) var(--bn-table-handle-size);width:100%;position:relative;overflow-y:hidden}.bn-editor [data-content-type=table] table{word-break:break-word;width:auto!important}.bn-editor [data-content-type=table] th,.bn-editor [data-content-type=table] td{border:1px solid #ddd;padding:5px 10px}.bn-editor [data-content-type=table] th{text-align:left;font-weight:700}.bn-editor [data-content-type=table] th>p,.bn-editor [data-content-type=table] td>p{min-height:1.5rem}.ProseMirror td,.ProseMirror th{min-width:auto!important}.ProseMirror td:not([colwidth]):not(.column-resize-dragging),.ProseMirror th:not([colwidth]):not(.column-resize-dragging){min-width:var(--default-cell-min-width)!important}.prosemirror-dropcursor-block{transition-property:top,bottom;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.prosemirror-dropcursor-vertical{transition-property:left,right}[data-show-selection]{background-color:highlight;padding:2px 0}
|
|
2
2
|
/*$vite$:1*/
|
package/dist/webpack-stats.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"builtAt":1776359410818,"assets":[{"name":"blocknote.cjs","size":6765},{"name":"blocks.cjs","size":2459},{"name":"comments.cjs","size":15359},{"name":"extensions.cjs","size":1179},{"name":"locales.cjs","size":178469},{"name":"yjs.cjs","size":873},{"name":"BlockNoteExtension-ab0REuob.cjs","size":1181},{"name":"EventEmitter-DHdSnYCD.cjs","size":466},{"name":"ShowSelection-DhXglbt8.cjs","size":824},{"name":"blocks-BEvIOzln.cjs","size":97855},{"name":"en-C4ykW581.cjs","size":6807},{"name":"extensions-D9y6evn6.cjs","size":49165},{"name":"src-BKJH7Jla.cjs","size":69517},{"name":"BlockNoteExtension-ab0REuob.cjs.map","size":9552},{"name":"EventEmitter-DHdSnYCD.cjs.map","size":2205},{"name":"ShowSelection-DhXglbt8.cjs.map","size":2871},{"name":"blocks-BEvIOzln.cjs.map","size":421628},{"name":"comments.cjs.map","size":66194},{"name":"en-C4ykW581.cjs.map","size":15246},{"name":"extensions-D9y6evn6.cjs.map","size":225368},{"name":"locales.cjs.map","size":365790},{"name":"src-BKJH7Jla.cjs.map","size":358344},{"name":"yjs.cjs.map","size":5180}],"chunks":[{"id":"5ba86af","entry":true,"initial":true,"files":["blocknote.cjs"],"names":["blocknote"]},{"id":"0d889d6","entry":true,"initial":true,"files":["blocks.cjs"],"names":["blocks"]},{"id":"1627b02","entry":true,"initial":true,"files":["comments.cjs"],"names":["comments"]},{"id":"eec1f7a","entry":true,"initial":true,"files":["extensions.cjs"],"names":["extensions"]},{"id":"9eaffe2","entry":true,"initial":true,"files":["locales.cjs"],"names":["locales"]},{"id":"526cf7b","entry":true,"initial":true,"files":["yjs.cjs"],"names":["yjs"]},{"id":"9db21a2","entry":false,"initial":true,"files":["BlockNoteExtension-ab0REuob.cjs"],"names":["BlockNoteExtension"]},{"id":"c302b40","entry":false,"initial":true,"files":["EventEmitter-DHdSnYCD.cjs"],"names":["EventEmitter"]},{"id":"da3865a","entry":false,"initial":true,"files":["ShowSelection-DhXglbt8.cjs"],"names":["ShowSelection"]},{"id":"c90dbef","entry":false,"initial":true,"files":["blocks-BEvIOzln.cjs"],"names":["blocks"]},{"id":"a1e239a","entry":false,"initial":true,"files":["en-C4ykW581.cjs"],"names":["en"]},{"id":"f16e717","entry":false,"initial":true,"files":["extensions-D9y6evn6.cjs"],"names":["extensions"]},{"id":"a1ee98a","entry":false,"initial":true,"files":["src-BKJH7Jla.cjs"],"names":["src"]}],"modules":[{"name":"./src/comments/mark.ts","size":936,"chunks":["1627b02"]},{"name":"./src/comments/userstore/UserStore.ts","size":874,"chunks":["1627b02"]},{"name":"./src/comments/extension.ts","size":6389,"chunks":["1627b02"]},{"name":"./src/comments/threadstore/ThreadStoreAuth.ts","size":99,"chunks":["1627b02"]},{"name":"./src/comments/threadstore/DefaultThreadStoreAuth.ts","size":1002,"chunks":["1627b02"]},{"name":"./src/comments/threadstore/ThreadStore.ts","size":143,"chunks":["1627b02"]},{"name":"./src/comments/threadstore/TipTapThreadStore.ts","size":4149,"chunks":["1627b02"]},{"name":"./src/comments/threadstore/yjs/yjsHelpers.ts","size":2736,"chunks":["1627b02"]},{"name":"./src/comments/threadstore/yjs/YjsThreadStoreBase.ts","size":779,"chunks":["1627b02"]},{"name":"./src/comments/threadstore/yjs/RESTYjsThreadStore.ts","size":1989,"chunks":["1627b02"]},{"name":"./src/comments/threadstore/yjs/YjsThreadStore.ts","size":6139,"chunks":["1627b02"]},{"name":"./src/comments/index.ts","size":0,"chunks":["1627b02"]},{"name":"./src/i18n/locales/ar.ts","size":8874,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/de.ts","size":9838,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/es.ts","size":9497,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/fa.ts","size":8458,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/fr.ts","size":10181,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/he.ts","size":8490,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/hr.ts","size":9195,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/is.ts","size":9417,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/it.ts","size":9754,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/ja.ts","size":8128,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/ko.ts","size":7766,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/nl.ts","size":9438,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/no.ts","size":9486,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/pl.ts","size":9207,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/pt.ts","size":9337,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/ru.ts","size":10277,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/sk.ts","size":9165,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/uk.ts","size":10049,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/vi.ts","size":9158,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/zh.ts","size":7619,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/zh-tw.ts","size":7674,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/uz.ts","size":10240,"chunks":["9eaffe2"]},{"name":"./src/i18n/index.ts","size":0,"chunks":["9eaffe2"]},{"name":"./src/yjs/utils.ts","size":1044,"chunks":["526cf7b"]},{"name":"./src/yjs/index.ts","size":0,"chunks":["526cf7b"]},{"name":"./rolldown/runtime.js","size":1008,"chunks":["9db21a2"]},{"name":"./src/editor/managers/ExtensionManager/symbol.ts","size":125,"chunks":["9db21a2"]},{"name":"./src/editor/BlockNoteExtension.ts","size":646,"chunks":["9db21a2"]},{"name":"./src/util/EventEmitter.ts","size":640,"chunks":["c302b40"]},{"name":"./src/extensions/ShowSelection/ShowSelection.ts","size":1063,"chunks":["da3865a"]},{"name":"./src/extensions/tiptap-extensions/UniqueID/UniqueID.ts","size":5471,"chunks":["c90dbef"]},{"name":"./src/schema/inlineContent/types.ts","size":357,"chunks":["c90dbef"]},{"name":"./src/util/table.ts","size":1179,"chunks":["c90dbef"]},{"name":"./src/util/typescript.ts","size":369,"chunks":["c90dbef"]},{"name":"./src/util/browser.ts","size":590,"chunks":["c90dbef"]},{"name":"./src/blocks/defaultBlockHelpers.ts","size":1986,"chunks":["c90dbef"]},{"name":"./src/util/string.ts","size":611,"chunks":["c90dbef"]},{"name":"./src/schema/blocks/internal.ts","size":2733,"chunks":["c90dbef"]},{"name":"./src/schema/blocks/createSpec.ts","size":5308,"chunks":["c90dbef"]},{"name":"./src/api/getBlockInfoFromPos.ts","size":3293,"chunks":["c90dbef"]},{"name":"./src/api/pmUtil.ts","size":675,"chunks":["c90dbef"]},{"name":"./src/api/nodeConversions/nodeToBlock.ts","size":10578,"chunks":["c90dbef"]},{"name":"./src/schema/inlineContent/internal.ts","size":1374,"chunks":["c90dbef"]},{"name":"./src/schema/styles/internal.ts","size":2486,"chunks":["c90dbef"]},{"name":"./src/schema/styles/createSpec.ts","size":1823,"chunks":["c90dbef"]},{"name":"./src/util/topo-sort.ts","size":2728,"chunks":["c90dbef"]},{"name":"./src/schema/schema.ts","size":2982,"chunks":["c90dbef"]},{"name":"./src/api/blockManipulation/tables/tables.ts","size":9114,"chunks":["c90dbef"]},{"name":"./src/api/nodeConversions/blockToNode.ts","size":6122,"chunks":["c90dbef"]},{"name":"./src/api/nodeUtil.ts","size":526,"chunks":["c90dbef"]},{"name":"./src/api/blockManipulation/commands/updateBlock/updateBlock.ts","size":7382,"chunks":["c90dbef"]},{"name":"./src/editor/defaultColors.ts","size":1133,"chunks":["c90dbef"]},{"name":"./src/blocks/defaultProps.ts","size":3100,"chunks":["c90dbef"]},{"name":"./src/blocks/File/helpers/parse/parseFigureElement.ts","size":334,"chunks":["c90dbef"]},{"name":"./src/extensions/FilePanel/FilePanel.ts","size":644,"chunks":["c90dbef"]},{"name":"./src/blocks/File/helpers/render/createAddFileButton.ts","size":1779,"chunks":["c90dbef"]},{"name":"./src/blocks/File/helpers/render/createFileNameWithIcon.ts","size":813,"chunks":["c90dbef"]},{"name":"./src/blocks/File/helpers/render/createFileBlockWrapper.ts","size":1359,"chunks":["c90dbef"]},{"name":"./src/blocks/File/helpers/toExternalHTML/createFigureWithCaption.ts","size":389,"chunks":["c90dbef"]},{"name":"./src/blocks/File/helpers/toExternalHTML/createLinkWithCaption.ts","size":368,"chunks":["c90dbef"]},{"name":"./src/blocks/Audio/parseAudioElement.ts","size":153,"chunks":["c90dbef"]},{"name":"./src/blocks/Audio/block.ts","size":4002,"chunks":["c90dbef"]},{"name":"./src/blocks/Code/shiki.ts","size":1635,"chunks":["c90dbef"]},{"name":"./src/blocks/Code/block.ts","size":5136,"chunks":["c90dbef"]},{"name":"./src/blocks/Divider/block.ts","size":607,"chunks":["c90dbef"]},{"name":"./src/blocks/File/helpers/parse/parseEmbedElement.ts","size":166,"chunks":["c90dbef"]},{"name":"./src/blocks/File/block.ts","size":1498,"chunks":["c90dbef"]},{"name":"./src/blocks/getDetailsContent.ts","size":1243,"chunks":["c90dbef"]},{"name":"./src/blocks/ToggleWrapper/createToggleWrapper.ts","size":4455,"chunks":["c90dbef"]},{"name":"./src/blocks/Heading/block.ts","size":3041,"chunks":["c90dbef"]},{"name":"./src/blocks/File/helpers/render/createResizableFileBlockWrapper.ts","size":5389,"chunks":["c90dbef"]},{"name":"./src/blocks/Image/parseImageElement.ts","size":238,"chunks":["c90dbef"]},{"name":"./src/blocks/Image/block.ts","size":3727,"chunks":["c90dbef"]},{"name":"./src/api/blockManipulation/commands/splitBlock/splitBlock.ts","size":815,"chunks":["c90dbef"]},{"name":"./src/blocks/utils/listItemEnterHandler.ts","size":864,"chunks":["c90dbef"]},{"name":"./src/blocks/ListItem/getListItemContent.ts","size":1262,"chunks":["c90dbef"]},{"name":"./src/blocks/ListItem/BulletListItem/block.ts","size":1728,"chunks":["c90dbef"]},{"name":"./src/blocks/ListItem/CheckListItem/block.ts","size":3076,"chunks":["c90dbef"]},{"name":"./src/blocks/ListItem/NumberedListItem/IndexingPlugin.ts","size":4025,"chunks":["c90dbef"]},{"name":"./src/blocks/ListItem/NumberedListItem/block.ts","size":2184,"chunks":["c90dbef"]},{"name":"./src/blocks/ListItem/ToggleListItem/block.ts","size":2142,"chunks":["c90dbef"]},{"name":"./src/blocks/PageBreak/block.ts","size":778,"chunks":["c90dbef"]},{"name":"./src/blocks/Paragraph/block.ts","size":1106,"chunks":["c90dbef"]},{"name":"./src/blocks/Quote/block.ts","size":1344,"chunks":["c90dbef"]},{"name":"./src/blocks/Table/TableExtension.ts","size":1683,"chunks":["c90dbef"]},{"name":"./src/blocks/Table/block.ts","size":6843,"chunks":["c90dbef"]},{"name":"./src/blocks/Video/parseVideoElement.ts","size":202,"chunks":["c90dbef"]},{"name":"./src/blocks/Video/block.ts","size":3523,"chunks":["c90dbef"]},{"name":"./src/blocks/File/helpers/uploadToTmpFilesDotOrg_DEV_ONLY.ts","size":360,"chunks":["c90dbef"]},{"name":"./src/blocks/defaultBlockTypeGuards.ts","size":1844,"chunks":["c90dbef"]},{"name":"./src/api/positionMapping.ts","size":1488,"chunks":["c90dbef"]},{"name":"./src/extensions/SuggestionMenu/SuggestionMenu.ts","size":7041,"chunks":["c90dbef"]},{"name":"./src/extensions/SuggestionMenu/getDefaultSlashMenuItems.ts","size":7283,"chunks":["c90dbef"]},{"name":"./src/blocks/PageBreak/getPageBreakSlashMenuItems.ts","size":478,"chunks":["c90dbef"]},{"name":"./src/blocks/defaultBlocks.ts","size":2631,"chunks":["c90dbef"]},{"name":"./src/blocks/BlockNoteSchema.ts","size":392,"chunks":["c90dbef"]},{"name":"./src/blocks/index.ts","size":0,"chunks":["c90dbef"]},{"name":"./src/i18n/locales/en.ts","size":8792,"chunks":["a1e239a"]},{"name":"./src/api/exporters/html/util/serializeBlocksExternalHTML.ts","size":6772,"chunks":["f16e717"]},{"name":"./src/api/exporters/html/externalHTMLExporter.ts","size":828,"chunks":["f16e717"]},{"name":"./src/api/getBlocksChangedByTransaction.ts","size":5691,"chunks":["f16e717"]},{"name":"./src/extensions/BlockChange/BlockChange.ts","size":846,"chunks":["f16e717"]},{"name":"./src/extensions/Collaboration/YCursorPlugin.ts","size":4129,"chunks":["f16e717"]},{"name":"./src/extensions/Collaboration/YSync.ts","size":264,"chunks":["f16e717"]},{"name":"./src/extensions/Collaboration/YUndo.ts","size":329,"chunks":["f16e717"]},{"name":"./src/extensions/Collaboration/ForkYDoc.ts","size":2304,"chunks":["f16e717"]},{"name":"./src/extensions/Collaboration/schemaMigration/migrationRules/moveColorAttributes.ts","size":1467,"chunks":["f16e717"]},{"name":"./src/extensions/Collaboration/schemaMigration/migrationRules/index.ts","size":144,"chunks":["f16e717"]},{"name":"./src/extensions/Collaboration/schemaMigration/SchemaMigration.ts","size":785,"chunks":["f16e717"]},{"name":"./src/extensions/DropCursor/utils.ts","size":2894,"chunks":["f16e717"]},{"name":"./src/extensions/DropCursor/DropCursor.ts","size":4396,"chunks":["f16e717"]},{"name":"./src/extensions/FormattingToolbar/FormattingToolbar.ts","size":1892,"chunks":["f16e717"]},{"name":"./src/extensions/History/History.ts","size":291,"chunks":["f16e717"]},{"name":"./src/extensions/LinkToolbar/LinkToolbar.ts","size":2415,"chunks":["f16e717"]},{"name":"./src/extensions/LinkToolbar/protocols.ts","size":222,"chunks":["f16e717"]},{"name":"./src/extensions/NodeSelectionKeyboard/NodeSelectionKeyboard.ts","size":1020,"chunks":["f16e717"]},{"name":"./src/extensions/Placeholder/Placeholder.ts","size":2834,"chunks":["f16e717"]},{"name":"./src/extensions/PreviousBlockType/PreviousBlockType.ts","size":3844,"chunks":["f16e717"]},{"name":"./src/extensions/getDraggableBlockFromElement.ts","size":450,"chunks":["f16e717"]},{"name":"./src/api/exporters/markdown/util/removeUnderlinesRehypePlugin.ts","size":731,"chunks":["f16e717"]},{"name":"./src/api/exporters/markdown/util/addSpacesToCheckboxesRehypePlugin.ts","size":751,"chunks":["f16e717"]},{"name":"./src/api/exporters/markdown/util/convertVideoToMarkdownRehypePlugin.ts","size":533,"chunks":["f16e717"]},{"name":"./src/api/exporters/markdown/markdownExporter.ts","size":603,"chunks":["f16e717"]},{"name":"./src/api/nodeConversions/fragmentToBlocks.ts","size":655,"chunks":["f16e717"]},{"name":"./src/extensions/SideMenu/MultipleNodeSelection.ts","size":1622,"chunks":["f16e717"]},{"name":"./src/extensions/SideMenu/dragging.ts","size":4331,"chunks":["f16e717"]},{"name":"./src/extensions/SideMenu/SideMenu.ts","size":10435,"chunks":["f16e717"]},{"name":"./src/extensions/SuggestionMenu/getDefaultEmojiPickerItems.ts","size":1157,"chunks":["f16e717"]},{"name":"./src/extensions/TableHandles/TableHandles.ts","size":21138,"chunks":["f16e717"]},{"name":"./src/extensions/TrailingNode/TrailingNode.ts","size":1293,"chunks":["f16e717"]},{"name":"./src/extensions/index.ts","size":0,"chunks":["f16e717"]},{"name":"./src/schema/inlineContent/createSpec.ts","size":2763,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/commands/insertBlocks/insertBlocks.ts","size":806,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/commands/replaceBlocks/util/fixColumnList.ts","size":2912,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/commands/replaceBlocks/replaceBlocks.ts","size":2107,"chunks":["a1ee98a"]},{"name":"./src/api/exporters/html/util/serializeBlocksInternalHTML.ts","size":4192,"chunks":["a1ee98a"]},{"name":"./src/api/exporters/html/internalHTMLSerializer.ts","size":2891,"chunks":["a1ee98a"]},{"name":"./src/style.css","size":0,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/commands/moveBlocks/moveBlocks.ts","size":5132,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/commands/nestBlock/nestBlock.ts","size":3252,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/getBlock/getBlock.ts","size":1770,"chunks":["a1ee98a"]},{"name":"./src/editor/managers/BlockManager.ts","size":2037,"chunks":["a1ee98a"]},{"name":"./src/editor/managers/EventManager.ts","size":1757,"chunks":["a1ee98a"]},{"name":"./src/api/parsers/html/util/nestedLists.ts","size":2108,"chunks":["a1ee98a"]},{"name":"./src/api/parsers/html/util/normalizeWhitespace.ts","size":1043,"chunks":["a1ee98a"]},{"name":"./src/api/parsers/html/parseHTML.ts","size":479,"chunks":["a1ee98a"]},{"name":"./src/api/parsers/markdown/parseMarkdown.ts","size":1821,"chunks":["a1ee98a"]},{"name":"./src/editor/managers/ExportManager.ts","size":1204,"chunks":["a1ee98a"]},{"name":"./src/api/clipboard/fromClipboard/acceptedMIMETypes.ts","size":203,"chunks":["a1ee98a"]},{"name":"./src/api/clipboard/fromClipboard/handleFileInsertion.ts","size":3623,"chunks":["a1ee98a"]},{"name":"./src/api/clipboard/fromClipboard/fileDropExtension.ts","size":643,"chunks":["a1ee98a"]},{"name":"./src/api/parsers/markdown/detectMarkdown.ts","size":1179,"chunks":["a1ee98a"]},{"name":"./src/api/clipboard/fromClipboard/handleVSCodePaste.ts","size":636,"chunks":["a1ee98a"]},{"name":"./src/api/clipboard/fromClipboard/pasteExtension.ts","size":1993,"chunks":["a1ee98a"]},{"name":"./src/api/clipboard/toClipboard/copyExtension.ts","size":4154,"chunks":["a1ee98a"]},{"name":"./src/extensions/tiptap-extensions/BackgroundColor/BackgroundColorExtension.ts","size":340,"chunks":["a1ee98a"]},{"name":"./src/extensions/tiptap-extensions/HardBreak/HardBreak.ts","size":457,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/commands/mergeBlocks/mergeBlocks.ts","size":3366,"chunks":["a1ee98a"]},{"name":"./src/extensions/tiptap-extensions/KeyboardShortcuts/KeyboardShortcutsExtension.ts","size":19143,"chunks":["a1ee98a"]},{"name":"./src/extensions/tiptap-extensions/Suggestions/SuggestionMarks.ts","size":3108,"chunks":["a1ee98a"]},{"name":"./src/extensions/tiptap-extensions/TextAlignment/TextAlignmentExtension.ts","size":589,"chunks":["a1ee98a"]},{"name":"./src/extensions/tiptap-extensions/TextColor/TextColorExtension.ts","size":336,"chunks":["a1ee98a"]},{"name":"./src/pm-nodes/BlockContainer.ts","size":1713,"chunks":["a1ee98a"]},{"name":"./src/pm-nodes/BlockGroup.ts","size":1016,"chunks":["a1ee98a"]},{"name":"./src/pm-nodes/Doc.ts","size":180,"chunks":["a1ee98a"]},{"name":"./src/extensions/Collaboration/Collaboration.ts","size":379,"chunks":["a1ee98a"]},{"name":"./src/editor/managers/ExtensionManager/extensions.ts","size":3243,"chunks":["a1ee98a"]},{"name":"./src/editor/managers/ExtensionManager/index.ts","size":8934,"chunks":["a1ee98a"]},{"name":"./src/util/expandToWords.ts","size":836,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/selections/selection.ts","size":4725,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/selections/textCursorPosition.ts","size":2235,"chunks":["a1ee98a"]},{"name":"./src/editor/managers/SelectionManager.ts","size":1275,"chunks":["a1ee98a"]},{"name":"./src/editor/managers/StateManager.ts","size":3188,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/insertContentAt.ts","size":1010,"chunks":["a1ee98a"]},{"name":"./src/editor/managers/StyleManager.ts","size":2686,"chunks":["a1ee98a"]},{"name":"./src/editor/transformPasted.ts","size":3511,"chunks":["a1ee98a"]},{"name":"./src/editor/BlockNoteEditor.ts","size":11724,"chunks":["a1ee98a"]},{"name":"./src/exporter/Exporter.ts","size":962,"chunks":["a1ee98a"]},{"name":"./src/exporter/mapping.ts","size":237,"chunks":["a1ee98a"]},{"name":"./src/util/combineByGroup.ts","size":527,"chunks":["a1ee98a"]},{"name":"./src/index.ts","size":0,"chunks":["a1ee98a"]}]}
|
|
1
|
+
{"builtAt":1777035729076,"assets":[{"name":"blocknote.cjs","size":6765},{"name":"blocks.cjs","size":2459},{"name":"comments.cjs","size":15402},{"name":"extensions.cjs","size":1179},{"name":"locales.cjs","size":178469},{"name":"yjs.cjs","size":873},{"name":"BlockNoteExtension-ab0REuob.cjs","size":1181},{"name":"EventEmitter-DHdSnYCD.cjs","size":466},{"name":"ShowSelection-DhXglbt8.cjs","size":824},{"name":"blocks-_lpGWKOa.cjs","size":98147},{"name":"en-C4ykW581.cjs","size":6807},{"name":"extensions-BfYaEv6F.cjs","size":48733},{"name":"src-ChTwrMcE.cjs","size":82625},{"name":"BlockNoteExtension-ab0REuob.cjs.map","size":9552},{"name":"EventEmitter-DHdSnYCD.cjs.map","size":2205},{"name":"ShowSelection-DhXglbt8.cjs.map","size":2871},{"name":"blocks-_lpGWKOa.cjs.map","size":423360},{"name":"comments.cjs.map","size":66543},{"name":"en-C4ykW581.cjs.map","size":15246},{"name":"extensions-BfYaEv6F.cjs.map","size":223669},{"name":"locales.cjs.map","size":365790},{"name":"src-ChTwrMcE.cjs.map","size":404386},{"name":"yjs.cjs.map","size":5180}],"chunks":[{"id":"5ba86af","entry":true,"initial":true,"files":["blocknote.cjs"],"names":["blocknote"]},{"id":"0d889d6","entry":true,"initial":true,"files":["blocks.cjs"],"names":["blocks"]},{"id":"1627b02","entry":true,"initial":true,"files":["comments.cjs"],"names":["comments"]},{"id":"eec1f7a","entry":true,"initial":true,"files":["extensions.cjs"],"names":["extensions"]},{"id":"9eaffe2","entry":true,"initial":true,"files":["locales.cjs"],"names":["locales"]},{"id":"526cf7b","entry":true,"initial":true,"files":["yjs.cjs"],"names":["yjs"]},{"id":"9db21a2","entry":false,"initial":true,"files":["BlockNoteExtension-ab0REuob.cjs"],"names":["BlockNoteExtension"]},{"id":"c302b40","entry":false,"initial":true,"files":["EventEmitter-DHdSnYCD.cjs"],"names":["EventEmitter"]},{"id":"da3865a","entry":false,"initial":true,"files":["ShowSelection-DhXglbt8.cjs"],"names":["ShowSelection"]},{"id":"c90dbef","entry":false,"initial":true,"files":["blocks-_lpGWKOa.cjs"],"names":["blocks"]},{"id":"a1e239a","entry":false,"initial":true,"files":["en-C4ykW581.cjs"],"names":["en"]},{"id":"f16e717","entry":false,"initial":true,"files":["extensions-BfYaEv6F.cjs"],"names":["extensions"]},{"id":"a1ee98a","entry":false,"initial":true,"files":["src-ChTwrMcE.cjs"],"names":["src"]}],"modules":[{"name":"./src/comments/mark.ts","size":936,"chunks":["1627b02"]},{"name":"./src/comments/userstore/UserStore.ts","size":874,"chunks":["1627b02"]},{"name":"./src/comments/extension.ts","size":6420,"chunks":["1627b02"]},{"name":"./src/comments/threadstore/ThreadStoreAuth.ts","size":99,"chunks":["1627b02"]},{"name":"./src/comments/threadstore/DefaultThreadStoreAuth.ts","size":1002,"chunks":["1627b02"]},{"name":"./src/comments/threadstore/ThreadStore.ts","size":143,"chunks":["1627b02"]},{"name":"./src/comments/threadstore/TipTapThreadStore.ts","size":4149,"chunks":["1627b02"]},{"name":"./src/comments/threadstore/yjs/yjsHelpers.ts","size":2736,"chunks":["1627b02"]},{"name":"./src/comments/threadstore/yjs/YjsThreadStoreBase.ts","size":779,"chunks":["1627b02"]},{"name":"./src/comments/threadstore/yjs/RESTYjsThreadStore.ts","size":1989,"chunks":["1627b02"]},{"name":"./src/comments/threadstore/yjs/YjsThreadStore.ts","size":6172,"chunks":["1627b02"]},{"name":"./src/comments/index.ts","size":0,"chunks":["1627b02"]},{"name":"./src/i18n/locales/ar.ts","size":8874,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/de.ts","size":9838,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/es.ts","size":9497,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/fa.ts","size":8458,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/fr.ts","size":10181,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/he.ts","size":8490,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/hr.ts","size":9195,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/is.ts","size":9417,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/it.ts","size":9754,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/ja.ts","size":8128,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/ko.ts","size":7766,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/nl.ts","size":9438,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/no.ts","size":9486,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/pl.ts","size":9207,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/pt.ts","size":9337,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/ru.ts","size":10277,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/sk.ts","size":9165,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/uk.ts","size":10049,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/vi.ts","size":9158,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/zh.ts","size":7619,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/zh-tw.ts","size":7674,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/uz.ts","size":10240,"chunks":["9eaffe2"]},{"name":"./src/i18n/index.ts","size":0,"chunks":["9eaffe2"]},{"name":"./src/yjs/utils.ts","size":1044,"chunks":["526cf7b"]},{"name":"./src/yjs/index.ts","size":0,"chunks":["526cf7b"]},{"name":"./rolldown/runtime.js","size":1008,"chunks":["9db21a2"]},{"name":"./src/editor/managers/ExtensionManager/symbol.ts","size":125,"chunks":["9db21a2"]},{"name":"./src/editor/BlockNoteExtension.ts","size":646,"chunks":["9db21a2"]},{"name":"./src/util/EventEmitter.ts","size":640,"chunks":["c302b40"]},{"name":"./src/extensions/ShowSelection/ShowSelection.ts","size":1063,"chunks":["da3865a"]},{"name":"./src/extensions/tiptap-extensions/UniqueID/UniqueID.ts","size":5482,"chunks":["c90dbef"]},{"name":"./src/schema/inlineContent/types.ts","size":357,"chunks":["c90dbef"]},{"name":"./src/util/table.ts","size":1179,"chunks":["c90dbef"]},{"name":"./src/util/typescript.ts","size":369,"chunks":["c90dbef"]},{"name":"./src/util/browser.ts","size":590,"chunks":["c90dbef"]},{"name":"./src/blocks/defaultBlockHelpers.ts","size":1986,"chunks":["c90dbef"]},{"name":"./src/util/string.ts","size":611,"chunks":["c90dbef"]},{"name":"./src/schema/blocks/internal.ts","size":2733,"chunks":["c90dbef"]},{"name":"./src/schema/blocks/createSpec.ts","size":5308,"chunks":["c90dbef"]},{"name":"./src/api/getBlockInfoFromPos.ts","size":3293,"chunks":["c90dbef"]},{"name":"./src/api/pmUtil.ts","size":675,"chunks":["c90dbef"]},{"name":"./src/api/nodeConversions/nodeToBlock.ts","size":10578,"chunks":["c90dbef"]},{"name":"./src/schema/inlineContent/internal.ts","size":1374,"chunks":["c90dbef"]},{"name":"./src/schema/styles/internal.ts","size":2486,"chunks":["c90dbef"]},{"name":"./src/schema/styles/createSpec.ts","size":1823,"chunks":["c90dbef"]},{"name":"./src/util/topo-sort.ts","size":2728,"chunks":["c90dbef"]},{"name":"./src/schema/schema.ts","size":2982,"chunks":["c90dbef"]},{"name":"./src/api/blockManipulation/tables/tables.ts","size":9114,"chunks":["c90dbef"]},{"name":"./src/api/nodeConversions/blockToNode.ts","size":6122,"chunks":["c90dbef"]},{"name":"./src/api/nodeUtil.ts","size":526,"chunks":["c90dbef"]},{"name":"./src/api/blockManipulation/commands/updateBlock/updateBlock.ts","size":7382,"chunks":["c90dbef"]},{"name":"./src/editor/defaultColors.ts","size":1133,"chunks":["c90dbef"]},{"name":"./src/blocks/defaultProps.ts","size":3100,"chunks":["c90dbef"]},{"name":"./src/blocks/File/helpers/parse/parseFigureElement.ts","size":334,"chunks":["c90dbef"]},{"name":"./src/extensions/FilePanel/FilePanel.ts","size":644,"chunks":["c90dbef"]},{"name":"./src/blocks/File/helpers/render/createAddFileButton.ts","size":1779,"chunks":["c90dbef"]},{"name":"./src/blocks/File/helpers/render/createFileNameWithIcon.ts","size":813,"chunks":["c90dbef"]},{"name":"./src/blocks/File/helpers/render/createFileBlockWrapper.ts","size":1359,"chunks":["c90dbef"]},{"name":"./src/blocks/File/helpers/toExternalHTML/createFigureWithCaption.ts","size":389,"chunks":["c90dbef"]},{"name":"./src/blocks/File/helpers/toExternalHTML/createLinkWithCaption.ts","size":368,"chunks":["c90dbef"]},{"name":"./src/blocks/Audio/parseAudioElement.ts","size":153,"chunks":["c90dbef"]},{"name":"./src/blocks/Audio/block.ts","size":4002,"chunks":["c90dbef"]},{"name":"./src/blocks/Code/shiki.ts","size":1635,"chunks":["c90dbef"]},{"name":"./src/blocks/Code/block.ts","size":5136,"chunks":["c90dbef"]},{"name":"./src/blocks/Divider/block.ts","size":607,"chunks":["c90dbef"]},{"name":"./src/blocks/File/helpers/parse/parseEmbedElement.ts","size":166,"chunks":["c90dbef"]},{"name":"./src/blocks/File/block.ts","size":1498,"chunks":["c90dbef"]},{"name":"./src/blocks/getDetailsContent.ts","size":1243,"chunks":["c90dbef"]},{"name":"./src/blocks/ToggleWrapper/createToggleWrapper.ts","size":4455,"chunks":["c90dbef"]},{"name":"./src/blocks/Heading/block.ts","size":3041,"chunks":["c90dbef"]},{"name":"./src/blocks/File/helpers/render/createResizableFileBlockWrapper.ts","size":5389,"chunks":["c90dbef"]},{"name":"./src/blocks/Image/parseImageElement.ts","size":238,"chunks":["c90dbef"]},{"name":"./src/blocks/Image/block.ts","size":3727,"chunks":["c90dbef"]},{"name":"./src/api/blockManipulation/commands/splitBlock/splitBlock.ts","size":815,"chunks":["c90dbef"]},{"name":"./src/blocks/utils/listItemEnterHandler.ts","size":864,"chunks":["c90dbef"]},{"name":"./src/blocks/ListItem/getListItemContent.ts","size":1262,"chunks":["c90dbef"]},{"name":"./src/blocks/ListItem/BulletListItem/block.ts","size":1728,"chunks":["c90dbef"]},{"name":"./src/blocks/ListItem/CheckListItem/block.ts","size":3076,"chunks":["c90dbef"]},{"name":"./src/blocks/ListItem/NumberedListItem/IndexingPlugin.ts","size":4025,"chunks":["c90dbef"]},{"name":"./src/blocks/ListItem/NumberedListItem/block.ts","size":2184,"chunks":["c90dbef"]},{"name":"./src/blocks/ListItem/ToggleListItem/block.ts","size":2142,"chunks":["c90dbef"]},{"name":"./src/blocks/PageBreak/block.ts","size":778,"chunks":["c90dbef"]},{"name":"./src/blocks/Paragraph/block.ts","size":1106,"chunks":["c90dbef"]},{"name":"./src/blocks/Quote/block.ts","size":1472,"chunks":["c90dbef"]},{"name":"./src/blocks/Table/TableExtension.ts","size":1683,"chunks":["c90dbef"]},{"name":"./src/blocks/Table/block.ts","size":7259,"chunks":["c90dbef"]},{"name":"./src/blocks/Video/parseVideoElement.ts","size":202,"chunks":["c90dbef"]},{"name":"./src/blocks/Video/block.ts","size":3523,"chunks":["c90dbef"]},{"name":"./src/blocks/File/helpers/uploadToTmpFilesDotOrg_DEV_ONLY.ts","size":360,"chunks":["c90dbef"]},{"name":"./src/blocks/defaultBlockTypeGuards.ts","size":1844,"chunks":["c90dbef"]},{"name":"./src/api/positionMapping.ts","size":1488,"chunks":["c90dbef"]},{"name":"./src/extensions/SuggestionMenu/SuggestionMenu.ts","size":7041,"chunks":["c90dbef"]},{"name":"./src/extensions/SuggestionMenu/getDefaultSlashMenuItems.ts","size":7283,"chunks":["c90dbef"]},{"name":"./src/blocks/PageBreak/getPageBreakSlashMenuItems.ts","size":478,"chunks":["c90dbef"]},{"name":"./src/blocks/defaultBlocks.ts","size":2631,"chunks":["c90dbef"]},{"name":"./src/blocks/BlockNoteSchema.ts","size":392,"chunks":["c90dbef"]},{"name":"./src/blocks/index.ts","size":0,"chunks":["c90dbef"]},{"name":"./src/i18n/locales/en.ts","size":8792,"chunks":["a1e239a"]},{"name":"./src/api/exporters/html/util/serializeBlocksExternalHTML.ts","size":6772,"chunks":["f16e717"]},{"name":"./src/api/exporters/html/externalHTMLExporter.ts","size":828,"chunks":["f16e717"]},{"name":"./src/api/getBlocksChangedByTransaction.ts","size":5691,"chunks":["f16e717"]},{"name":"./src/extensions/BlockChange/BlockChange.ts","size":846,"chunks":["f16e717"]},{"name":"./src/extensions/Collaboration/YCursorPlugin.ts","size":4129,"chunks":["f16e717"]},{"name":"./src/extensions/Collaboration/YSync.ts","size":264,"chunks":["f16e717"]},{"name":"./src/extensions/Collaboration/YUndo.ts","size":329,"chunks":["f16e717"]},{"name":"./src/extensions/Collaboration/ForkYDoc.ts","size":2304,"chunks":["f16e717"]},{"name":"./src/extensions/Collaboration/schemaMigration/migrationRules/moveColorAttributes.ts","size":1467,"chunks":["f16e717"]},{"name":"./src/extensions/Collaboration/schemaMigration/migrationRules/index.ts","size":144,"chunks":["f16e717"]},{"name":"./src/extensions/Collaboration/schemaMigration/SchemaMigration.ts","size":785,"chunks":["f16e717"]},{"name":"./src/extensions/DropCursor/utils.ts","size":2894,"chunks":["f16e717"]},{"name":"./src/extensions/DropCursor/DropCursor.ts","size":4396,"chunks":["f16e717"]},{"name":"./src/extensions/FormattingToolbar/FormattingToolbar.ts","size":2066,"chunks":["f16e717"]},{"name":"./src/extensions/History/History.ts","size":291,"chunks":["f16e717"]},{"name":"./src/extensions/LinkToolbar/LinkToolbar.ts","size":1512,"chunks":["f16e717"]},{"name":"./src/extensions/LinkToolbar/protocols.ts","size":222,"chunks":["f16e717"]},{"name":"./src/extensions/NodeSelectionKeyboard/NodeSelectionKeyboard.ts","size":1020,"chunks":["f16e717"]},{"name":"./src/extensions/Placeholder/Placeholder.ts","size":2845,"chunks":["f16e717"]},{"name":"./src/extensions/PreviousBlockType/PreviousBlockType.ts","size":3844,"chunks":["f16e717"]},{"name":"./src/extensions/getDraggableBlockFromElement.ts","size":450,"chunks":["f16e717"]},{"name":"./src/api/exporters/markdown/util/removeUnderlinesRehypePlugin.ts","size":731,"chunks":["f16e717"]},{"name":"./src/api/exporters/markdown/util/addSpacesToCheckboxesRehypePlugin.ts","size":751,"chunks":["f16e717"]},{"name":"./src/api/exporters/markdown/util/convertVideoToMarkdownRehypePlugin.ts","size":533,"chunks":["f16e717"]},{"name":"./src/api/exporters/markdown/markdownExporter.ts","size":603,"chunks":["f16e717"]},{"name":"./src/api/nodeConversions/fragmentToBlocks.ts","size":655,"chunks":["f16e717"]},{"name":"./src/extensions/SideMenu/MultipleNodeSelection.ts","size":1622,"chunks":["f16e717"]},{"name":"./src/extensions/SideMenu/dragging.ts","size":4331,"chunks":["f16e717"]},{"name":"./src/extensions/SideMenu/SideMenu.ts","size":10435,"chunks":["f16e717"]},{"name":"./src/extensions/SuggestionMenu/getDefaultEmojiPickerItems.ts","size":1157,"chunks":["f16e717"]},{"name":"./src/extensions/TableHandles/TableHandles.ts","size":21138,"chunks":["f16e717"]},{"name":"./src/extensions/TrailingNode/TrailingNode.ts","size":1293,"chunks":["f16e717"]},{"name":"./src/extensions/index.ts","size":0,"chunks":["f16e717"]},{"name":"./src/schema/inlineContent/createSpec.ts","size":2763,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/commands/insertBlocks/insertBlocks.ts","size":806,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/commands/replaceBlocks/util/fixColumnList.ts","size":2912,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/commands/replaceBlocks/replaceBlocks.ts","size":2107,"chunks":["a1ee98a"]},{"name":"./src/api/exporters/html/util/serializeBlocksInternalHTML.ts","size":4192,"chunks":["a1ee98a"]},{"name":"./src/api/exporters/html/internalHTMLSerializer.ts","size":2891,"chunks":["a1ee98a"]},{"name":"./src/style.css","size":0,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/commands/moveBlocks/moveBlocks.ts","size":5132,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/commands/nestBlock/nestBlock.ts","size":3252,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/getBlock/getBlock.ts","size":1770,"chunks":["a1ee98a"]},{"name":"./src/editor/managers/BlockManager.ts","size":2037,"chunks":["a1ee98a"]},{"name":"./src/editor/managers/EventManager.ts","size":1757,"chunks":["a1ee98a"]},{"name":"./src/api/parsers/html/util/nestedLists.ts","size":2108,"chunks":["a1ee98a"]},{"name":"./src/api/parsers/html/util/normalizeWhitespace.ts","size":1043,"chunks":["a1ee98a"]},{"name":"./src/api/parsers/html/parseHTML.ts","size":479,"chunks":["a1ee98a"]},{"name":"./src/api/parsers/markdown/parseMarkdown.ts","size":1799,"chunks":["a1ee98a"]},{"name":"./src/editor/managers/ExportManager.ts","size":1204,"chunks":["a1ee98a"]},{"name":"./src/extensions/tiptap-extensions/Link/helpers/tlds.ts","size":4939,"chunks":["a1ee98a"]},{"name":"./src/extensions/tiptap-extensions/Link/helpers/linkDetector.ts","size":5359,"chunks":["a1ee98a"]},{"name":"./src/extensions/tiptap-extensions/Link/helpers/whitespace.ts","size":377,"chunks":["a1ee98a"]},{"name":"./src/extensions/tiptap-extensions/Link/helpers/autolink.ts","size":2995,"chunks":["a1ee98a"]},{"name":"./src/extensions/tiptap-extensions/Link/helpers/clickHandler.ts","size":1223,"chunks":["a1ee98a"]},{"name":"./src/extensions/tiptap-extensions/Link/helpers/pasteHandler.ts","size":909,"chunks":["a1ee98a"]},{"name":"./src/extensions/tiptap-extensions/Link/link.ts","size":3223,"chunks":["a1ee98a"]},{"name":"./src/api/clipboard/fromClipboard/acceptedMIMETypes.ts","size":203,"chunks":["a1ee98a"]},{"name":"./src/api/clipboard/fromClipboard/handleFileInsertion.ts","size":3623,"chunks":["a1ee98a"]},{"name":"./src/api/clipboard/fromClipboard/fileDropExtension.ts","size":643,"chunks":["a1ee98a"]},{"name":"./src/api/parsers/markdown/detectMarkdown.ts","size":1179,"chunks":["a1ee98a"]},{"name":"./src/api/clipboard/fromClipboard/handleVSCodePaste.ts","size":636,"chunks":["a1ee98a"]},{"name":"./src/api/clipboard/fromClipboard/pasteExtension.ts","size":1993,"chunks":["a1ee98a"]},{"name":"./src/api/clipboard/toClipboard/copyExtension.ts","size":4154,"chunks":["a1ee98a"]},{"name":"./src/extensions/tiptap-extensions/BackgroundColor/BackgroundColorExtension.ts","size":340,"chunks":["a1ee98a"]},{"name":"./src/extensions/tiptap-extensions/HardBreak/HardBreak.ts","size":457,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/commands/mergeBlocks/mergeBlocks.ts","size":3366,"chunks":["a1ee98a"]},{"name":"./src/extensions/tiptap-extensions/KeyboardShortcuts/KeyboardShortcutsExtension.ts","size":19143,"chunks":["a1ee98a"]},{"name":"./src/extensions/tiptap-extensions/Suggestions/SuggestionMarks.ts","size":3108,"chunks":["a1ee98a"]},{"name":"./src/extensions/tiptap-extensions/TextAlignment/TextAlignmentExtension.ts","size":589,"chunks":["a1ee98a"]},{"name":"./src/extensions/tiptap-extensions/TextColor/TextColorExtension.ts","size":336,"chunks":["a1ee98a"]},{"name":"./src/pm-nodes/BlockContainer.ts","size":1713,"chunks":["a1ee98a"]},{"name":"./src/pm-nodes/BlockGroup.ts","size":1016,"chunks":["a1ee98a"]},{"name":"./src/pm-nodes/Doc.ts","size":180,"chunks":["a1ee98a"]},{"name":"./src/extensions/Collaboration/Collaboration.ts","size":379,"chunks":["a1ee98a"]},{"name":"./src/editor/managers/ExtensionManager/extensions.ts","size":3053,"chunks":["a1ee98a"]},{"name":"./src/editor/managers/ExtensionManager/index.ts","size":8934,"chunks":["a1ee98a"]},{"name":"./src/util/expandToWords.ts","size":836,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/selections/selection.ts","size":4725,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/selections/textCursorPosition.ts","size":2235,"chunks":["a1ee98a"]},{"name":"./src/editor/managers/SelectionManager.ts","size":1275,"chunks":["a1ee98a"]},{"name":"./src/editor/managers/StateManager.ts","size":3188,"chunks":["a1ee98a"]},{"name":"./src/api/blockManipulation/insertContentAt.ts","size":1010,"chunks":["a1ee98a"]},{"name":"./src/editor/managers/StyleManager.ts","size":4009,"chunks":["a1ee98a"]},{"name":"./src/editor/transformPasted.ts","size":3511,"chunks":["a1ee98a"]},{"name":"./src/editor/BlockNoteEditor.ts","size":12075,"chunks":["a1ee98a"]},{"name":"./src/exporter/Exporter.ts","size":962,"chunks":["a1ee98a"]},{"name":"./src/exporter/mapping.ts","size":237,"chunks":["a1ee98a"]},{"name":"./src/util/combineByGroup.ts","size":527,"chunks":["a1ee98a"]},{"name":"./src/index.ts","size":0,"chunks":["a1ee98a"]}]}
|
package/dist/yjs.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`./BlockNoteExtension-ab0REuob.cjs`);const e=require(`./blocks-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`./BlockNoteExtension-ab0REuob.cjs`);const e=require(`./blocks-_lpGWKOa.cjs`);let t=require(`y-prosemirror`);function n(t,n){return e.rn(t.pmSchema.nodeFromJSON(n))}function r(t,n){let r=n.map(n=>e.Ot(n,t.pmSchema));return t.pmSchema.topNodeType.create(null,t.pmSchema.nodes.blockGroup.create(null,r))}function i(n,r){return e.rn((0,t.yXmlFragmentToProseMirrorRootNode)(r,n.pmSchema))}function a(e,n,i){return(0,t.prosemirrorToYXmlFragment)(r(e,n),i)}function o(e,t,n=`prosemirror`){return i(e,t.getXmlFragment(n))}function s(e,n,i=`prosemirror`){return(0,t.prosemirrorToYDoc)(r(e,n),i)}exports._blocksToProsemirrorNode=r,exports._prosemirrorJSONToBlocks=n,exports.blocksToYDoc=s,exports.blocksToYXmlFragment=a,exports.yDocToBlocks=o,exports.yXmlFragmentToBlocks=i;
|
|
2
2
|
//# sourceMappingURL=yjs.cjs.map
|
package/dist/yjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ot as e, rn as t } from "./blocks-
|
|
1
|
+
import { Ot as e, rn as t } from "./blocks-CSfJen16.js";
|
|
2
2
|
import { prosemirrorToYDoc as n, prosemirrorToYXmlFragment as r, yXmlFragmentToProseMirrorRootNode as i } from "y-prosemirror";
|
|
3
3
|
//#region src/yjs/utils.ts
|
|
4
4
|
function a(e, n) {
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"directory": "packages/core"
|
|
12
12
|
},
|
|
13
13
|
"license": "MPL-2.0",
|
|
14
|
-
"version": "0.
|
|
14
|
+
"version": "0.49.0",
|
|
15
15
|
"files": [
|
|
16
16
|
"dist",
|
|
17
17
|
"types",
|
|
@@ -88,7 +88,6 @@
|
|
|
88
88
|
"@tiptap/extension-code": "^3.13.0",
|
|
89
89
|
"@tiptap/extension-horizontal-rule": "^3.13.0",
|
|
90
90
|
"@tiptap/extension-italic": "^3.13.0",
|
|
91
|
-
"@tiptap/extension-link": "^3.22.1",
|
|
92
91
|
"@tiptap/extension-paragraph": "^3.13.0",
|
|
93
92
|
"@tiptap/extension-strike": "^3.13.0",
|
|
94
93
|
"@tiptap/extension-text": "^3.13.0",
|
|
@@ -98,6 +97,7 @@
|
|
|
98
97
|
"emoji-mart": "^5.6.0",
|
|
99
98
|
"fast-deep-equal": "^3.1.3",
|
|
100
99
|
"hast-util-from-dom": "^5.0.1",
|
|
100
|
+
"lib0": "^0.2.99",
|
|
101
101
|
"prosemirror-highlight": "^0.15.1",
|
|
102
102
|
"prosemirror-model": "^1.25.4",
|
|
103
103
|
"prosemirror-state": "^1.4.4",
|
|
@@ -114,21 +114,18 @@
|
|
|
114
114
|
"remark-stringify": "^11.0.0",
|
|
115
115
|
"unified": "^11.0.5",
|
|
116
116
|
"unist-util-visit": "^5.0.0",
|
|
117
|
-
"uuid": "^8.3.2",
|
|
118
117
|
"y-prosemirror": "^1.3.7",
|
|
119
118
|
"y-protocols": "^1.0.6",
|
|
120
119
|
"yjs": "^13.6.27"
|
|
121
120
|
},
|
|
122
121
|
"devDependencies": {
|
|
123
|
-
"@types/emoji-mart": "^3.0.14",
|
|
124
122
|
"@types/hast": "^3.0.4",
|
|
125
|
-
"@types/uuid": "^8.3.4",
|
|
126
123
|
"eslint": "^8.57.1",
|
|
127
|
-
"jsdom": "^
|
|
124
|
+
"jsdom": "^29.0.2",
|
|
128
125
|
"rimraf": "^5.0.10",
|
|
129
126
|
"rollup-plugin-webpack-stats": "^0.2.6",
|
|
130
127
|
"typescript": "^5.9.3",
|
|
131
|
-
"vite": "^8.0.
|
|
128
|
+
"vite": "^8.0.8",
|
|
132
129
|
"vite-plugin-eslint": "^1.8.1",
|
|
133
130
|
"vitest": "^4.1.2"
|
|
134
131
|
},
|
|
@@ -146,6 +143,7 @@
|
|
|
146
143
|
"lint": "eslint src --max-warnings 0",
|
|
147
144
|
"test": "vitest --run",
|
|
148
145
|
"test-watch": "vitest watch",
|
|
149
|
-
"clean": "rimraf dist && rimraf types"
|
|
146
|
+
"clean": "rimraf dist && rimraf types",
|
|
147
|
+
"update-tlds": "node scripts/update-tlds.mjs"
|
|
150
148
|
}
|
|
151
149
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Selection } from "prosemirror-state";
|
|
2
|
-
import { describe, expect, it } from "vitest";
|
|
2
|
+
import { afterEach, describe, expect, it } from "vitest";
|
|
3
3
|
|
|
4
4
|
import { BlockNoteEditor } from "../../../editor/BlockNoteEditor.js";
|
|
5
5
|
|
|
@@ -9,9 +9,22 @@ import { BlockNoteEditor } from "../../../editor/BlockNoteEditor.js";
|
|
|
9
9
|
|
|
10
10
|
const PLUGIN_KEY = "numbered-list-indexing-decorations$";
|
|
11
11
|
|
|
12
|
+
// Track editors created in each test so we can unmount them in afterEach —
|
|
13
|
+
// otherwise prosemirror-view's DOMObserver leaves a setTimeout alive that
|
|
14
|
+
// fires after vitest tears down jsdom, throwing
|
|
15
|
+
// `ReferenceError: document is not defined` and failing the run.
|
|
16
|
+
const activeEditors: BlockNoteEditor<any, any, any>[] = [];
|
|
17
|
+
|
|
18
|
+
afterEach(() => {
|
|
19
|
+
while (activeEditors.length) {
|
|
20
|
+
activeEditors.pop()!.unmount();
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
|
|
12
24
|
function createEditor() {
|
|
13
25
|
const editor = BlockNoteEditor.create();
|
|
14
26
|
editor.mount(document.createElement("div"));
|
|
27
|
+
activeEditors.push(editor);
|
|
15
28
|
return editor;
|
|
16
29
|
}
|
|
17
30
|
|
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
TableContent,
|
|
11
11
|
} from "../../schema/index.js";
|
|
12
12
|
import { mergeCSSClasses } from "../../util/browser.js";
|
|
13
|
+
import { camelToDataKebab } from "../../util/string.js";
|
|
13
14
|
import { createDefaultBlockDOMOutputSpec } from "../defaultBlockHelpers.js";
|
|
14
15
|
import { defaultProps } from "../defaultProps.js";
|
|
15
16
|
import { EMPTY_CELL_WIDTH, TableExtension } from "./TableExtension.js";
|
|
@@ -252,6 +253,31 @@ const TiptapTableNode = Node.create({
|
|
|
252
253
|
super.ignoreMutation(record)
|
|
253
254
|
);
|
|
254
255
|
}
|
|
256
|
+
|
|
257
|
+
// `TableView` implements its own `update` method, as the view needs to
|
|
258
|
+
// be persisted across updates for column resizing to work properly.
|
|
259
|
+
// However, it doesn't do anything else, so we have to re-apply the
|
|
260
|
+
// HTML attributes from props manually. This isn't an issue for node
|
|
261
|
+
// views created e.g. by custom blocks, as those aren't persisted
|
|
262
|
+
// across updates (they are reinstantiated each time), and so
|
|
263
|
+
// `HTMLAttributes` is always up-to-date for those.
|
|
264
|
+
update(updatedNode: PMNode): boolean {
|
|
265
|
+
if (!super.update(updatedNode)) {
|
|
266
|
+
return false;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
for (const [propName, propSpec] of Object.entries(tablePropSchema)) {
|
|
270
|
+
const attrName = camelToDataKebab(propName);
|
|
271
|
+
const value = updatedNode.attrs[propName];
|
|
272
|
+
if (value !== propSpec.default) {
|
|
273
|
+
this.dom.setAttribute(attrName, String(value));
|
|
274
|
+
} else {
|
|
275
|
+
this.dom.removeAttribute(attrName);
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
return true;
|
|
280
|
+
}
|
|
255
281
|
}
|
|
256
282
|
|
|
257
283
|
return new BlockNoteTableView(node, EMPTY_CELL_WIDTH, {
|
|
@@ -306,6 +306,11 @@ export const CommentsExtension = createExtension(
|
|
|
306
306
|
selectedThreadId: undefined,
|
|
307
307
|
pendingComment: true,
|
|
308
308
|
}));
|
|
309
|
+
// Use `editor.domElement` as `editor.focus()` doesn't do anything if
|
|
310
|
+
// the editor is non-editable. Editor needs to be focused as
|
|
311
|
+
// `showSelection` will otherwise trigger a selection update which
|
|
312
|
+
// triggers `stopPendingComment`.
|
|
313
|
+
editor.domElement?.focus();
|
|
309
314
|
editor
|
|
310
315
|
.getExtension(ShowSelectionExtension)
|
|
311
316
|
?.showSelection(true, "comments");
|
|
@@ -6,8 +6,9 @@ import { YjsThreadStore } from "./YjsThreadStore.js";
|
|
|
6
6
|
|
|
7
7
|
// Mock UUID to generate sequential IDs
|
|
8
8
|
let mockUuidCounter = 0;
|
|
9
|
-
vi.mock("
|
|
10
|
-
|
|
9
|
+
vi.mock("lib0/random", async (importOriginal) => ({
|
|
10
|
+
...(await importOriginal<typeof import("lib0/random")>()),
|
|
11
|
+
uuidv4: () => `mocked-uuid-${++mockUuidCounter}`,
|
|
11
12
|
}));
|
|
12
13
|
|
|
13
14
|
describe("YjsThreadStore", () => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { uuidv4 } from "lib0/random";
|
|
2
2
|
import * as Y from "yjs";
|
|
3
3
|
import { CommentBody, CommentData, ThreadData } from "../../types.js";
|
|
4
4
|
import { ThreadStoreAuth } from "../ThreadStoreAuth.js";
|
|
@@ -57,7 +57,7 @@ export class YjsThreadStore extends YjsThreadStoreBase {
|
|
|
57
57
|
|
|
58
58
|
const comment: CommentData = {
|
|
59
59
|
type: "comment",
|
|
60
|
-
id:
|
|
60
|
+
id: uuidv4(),
|
|
61
61
|
userId: this.userId,
|
|
62
62
|
createdAt: date,
|
|
63
63
|
updatedAt: date,
|
|
@@ -68,7 +68,7 @@ export class YjsThreadStore extends YjsThreadStoreBase {
|
|
|
68
68
|
|
|
69
69
|
const thread: ThreadData = {
|
|
70
70
|
type: "thread",
|
|
71
|
-
id:
|
|
71
|
+
id: uuidv4(),
|
|
72
72
|
createdAt: date,
|
|
73
73
|
updatedAt: date,
|
|
74
74
|
comments: [comment],
|
|
@@ -105,7 +105,7 @@ export class YjsThreadStore extends YjsThreadStoreBase {
|
|
|
105
105
|
const date = new Date();
|
|
106
106
|
const comment: CommentData = {
|
|
107
107
|
type: "comment",
|
|
108
|
-
id:
|
|
108
|
+
id: uuidv4(),
|
|
109
109
|
userId: this.userId,
|
|
110
110
|
createdAt: date,
|
|
111
111
|
updatedAt: date,
|
|
@@ -140,6 +140,54 @@ export interface BlockNoteEditorOptions<
|
|
|
140
140
|
NoInfer<SSchema>
|
|
141
141
|
>[];
|
|
142
142
|
|
|
143
|
+
/**
|
|
144
|
+
* Options for configuring how links behave in the editor.
|
|
145
|
+
*/
|
|
146
|
+
links?: {
|
|
147
|
+
/**
|
|
148
|
+
* HTML attributes to add to rendered link elements.
|
|
149
|
+
*
|
|
150
|
+
* @default {}
|
|
151
|
+
* @example { class: "my-link-class", target: "_blank" }
|
|
152
|
+
*/
|
|
153
|
+
HTMLAttributes?: Record<string, any>;
|
|
154
|
+
/**
|
|
155
|
+
* Custom handler invoked when a link is clicked. If left `undefined`,
|
|
156
|
+
* links are opened in a new window on click. If provided, the default
|
|
157
|
+
* open-on-click behavior is disabled and this function is called instead.
|
|
158
|
+
*
|
|
159
|
+
* Return `false` to let ProseMirror continue handling the click event.
|
|
160
|
+
* Returning `true` or nothing (the default) marks the event as handled.
|
|
161
|
+
*/
|
|
162
|
+
onClick?: (
|
|
163
|
+
event: MouseEvent,
|
|
164
|
+
editor: BlockNoteEditor<any, any, any>,
|
|
165
|
+
) => boolean | void;
|
|
166
|
+
/**
|
|
167
|
+
* Callback that decides whether a given `href` is a valid link. Applied at
|
|
168
|
+
* every gate where a link enters the document: HTML import, HTML export,
|
|
169
|
+
* paste, and autolink. Useful for supporting additional URI schemes (e.g.
|
|
170
|
+
* `vscode:`, `myapp:`) or tightening the default allowlist.
|
|
171
|
+
*
|
|
172
|
+
* Defaults to `isAllowedUri`, which allows
|
|
173
|
+
* `http|https|ftp|ftps|mailto|tel|callto|sms|cid|xmpp`. Import
|
|
174
|
+
* `isAllowedUri` from `@blocknote/core` to layer on top of the default.
|
|
175
|
+
*
|
|
176
|
+
* @example
|
|
177
|
+
* ```ts
|
|
178
|
+
* import { isAllowedUri } from "@blocknote/core";
|
|
179
|
+
*
|
|
180
|
+
* BlockNoteEditor.create({
|
|
181
|
+
* links: {
|
|
182
|
+
* isValidLink: (href) =>
|
|
183
|
+
* isAllowedUri(href) || href.startsWith("myapp:"),
|
|
184
|
+
* },
|
|
185
|
+
* });
|
|
186
|
+
* ```
|
|
187
|
+
*/
|
|
188
|
+
isValidLink?: (href: string) => boolean;
|
|
189
|
+
};
|
|
190
|
+
|
|
143
191
|
/**
|
|
144
192
|
* @deprecated, provide placeholders via dictionary instead
|
|
145
193
|
* @internal
|
|
@@ -562,6 +610,13 @@ export class BlockNoteEditor<
|
|
|
562
610
|
};
|
|
563
611
|
this.pmSchema.cached.blockNoteEditor = this;
|
|
564
612
|
|
|
613
|
+
this._tiptapEditor.on("mount", () => {
|
|
614
|
+
this.headless = false;
|
|
615
|
+
});
|
|
616
|
+
this._tiptapEditor.on("unmount", () => {
|
|
617
|
+
this.headless = true;
|
|
618
|
+
});
|
|
619
|
+
|
|
565
620
|
// Initialize managers
|
|
566
621
|
this._blockManager = new BlockManager(this as any);
|
|
567
622
|
|
|
@@ -758,9 +813,7 @@ export class BlockNoteEditor<
|
|
|
758
813
|
return this.prosemirrorView?.hasFocus() || false;
|
|
759
814
|
}
|
|
760
815
|
|
|
761
|
-
public
|
|
762
|
-
return !this._tiptapEditor.isInitialized;
|
|
763
|
-
}
|
|
816
|
+
public headless = true;
|
|
764
817
|
|
|
765
818
|
/**
|
|
766
819
|
* Focus on the editor
|
|
@@ -1130,6 +1183,32 @@ export class BlockNoteEditor<
|
|
|
1130
1183
|
this._styleManager.createLink(url, text);
|
|
1131
1184
|
}
|
|
1132
1185
|
|
|
1186
|
+
/**
|
|
1187
|
+
* Find the link mark and its range at the given position.
|
|
1188
|
+
* Returns undefined if there is no link at that position.
|
|
1189
|
+
*/
|
|
1190
|
+
public getLinkMarkAtPos(pos: number) {
|
|
1191
|
+
return this._styleManager.getLinkMarkAtPos(pos);
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
/**
|
|
1195
|
+
* Updates the link at the given position with a new URL and text.
|
|
1196
|
+
* @param url The new link URL.
|
|
1197
|
+
* @param text The new text to display.
|
|
1198
|
+
* @param position The position inside the link to edit. Defaults to the current selection anchor.
|
|
1199
|
+
*/
|
|
1200
|
+
public editLink(url: string, text: string, position?: number) {
|
|
1201
|
+
this._styleManager.editLink(url, text, position);
|
|
1202
|
+
}
|
|
1203
|
+
|
|
1204
|
+
/**
|
|
1205
|
+
* Removes the link at the given position, keeping the text.
|
|
1206
|
+
* @param position The position inside the link to remove. Defaults to the current selection anchor.
|
|
1207
|
+
*/
|
|
1208
|
+
public deleteLink(position?: number) {
|
|
1209
|
+
this._styleManager.deleteLink(position);
|
|
1210
|
+
}
|
|
1211
|
+
|
|
1133
1212
|
/**
|
|
1134
1213
|
* Checks if the block containing the text cursor can be nested.
|
|
1135
1214
|
*/
|
|
@@ -1296,7 +1375,7 @@ export class BlockNoteEditor<
|
|
|
1296
1375
|
editor: BlockNoteEditor<BSchema, ISchema, SSchema>;
|
|
1297
1376
|
}) => void,
|
|
1298
1377
|
) {
|
|
1299
|
-
this._eventManager.onMount(callback);
|
|
1378
|
+
return this._eventManager.onMount(callback);
|
|
1300
1379
|
}
|
|
1301
1380
|
|
|
1302
1381
|
/**
|
|
@@ -1312,7 +1391,7 @@ export class BlockNoteEditor<
|
|
|
1312
1391
|
editor: BlockNoteEditor<BSchema, ISchema, SSchema>;
|
|
1313
1392
|
}) => void,
|
|
1314
1393
|
) {
|
|
1315
|
-
this._eventManager.onUnmount(callback);
|
|
1394
|
+
return this._eventManager.onUnmount(callback);
|
|
1316
1395
|
}
|
|
1317
1396
|
|
|
1318
1397
|
/**
|
package/src/editor/editor.css
CHANGED
|
@@ -80,6 +80,11 @@
|
|
|
80
80
|
hidden. So setting it to an extremely low value instead makes the element
|
|
81
81
|
functionally invisible while not affecting the drag preview itself. */
|
|
82
82
|
opacity: 0.001;
|
|
83
|
+
/* The element is kept in the DOM after setDragImage captures its snapshot,
|
|
84
|
+
so it can overlap the editor and block drops in that area. Disabling
|
|
85
|
+
pointer-events lets drag/drop events pass through to the editor while
|
|
86
|
+
leaving the captured preview unaffected. */
|
|
87
|
+
pointer-events: none;
|
|
83
88
|
}
|
|
84
89
|
|
|
85
90
|
.bn-editor .bn-collaboration-cursor__base {
|