@blocknote/core 0.49.0 → 0.50.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-_lpGWKOa.cjs → blocks-BFnTypT-.cjs} +2 -2
- package/dist/{blocks-_lpGWKOa.cjs.map → blocks-BFnTypT-.cjs.map} +1 -1
- package/dist/{blocks-CSfJen16.js → blocks-UU7EM-QM.js} +587 -572
- package/dist/{blocks-CSfJen16.js.map → blocks-UU7EM-QM.js.map} +1 -1
- 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 +17 -14
- package/dist/comments.js.map +1 -1
- package/dist/{en-QsSI16s5.js → en-B9hMApn4.js} +4 -2
- package/dist/en-B9hMApn4.js.map +1 -0
- package/dist/{en-C4ykW581.cjs → en-Cj5r8sW_.cjs} +2 -2
- package/dist/en-Cj5r8sW_.cjs.map +1 -0
- package/dist/{extensions-BfYaEv6F.cjs → extensions-CYsFi5Is.cjs} +2 -2
- package/dist/{extensions-BfYaEv6F.cjs.map → extensions-CYsFi5Is.cjs.map} +1 -1
- package/dist/{extensions-C3nguvVr.js → extensions-CkLT--Nc.js} +6 -4
- package/dist/{extensions-C3nguvVr.js.map → extensions-CkLT--Nc.js.map} +1 -1
- package/dist/extensions.cjs +1 -1
- package/dist/extensions.js +2 -2
- package/dist/locales.cjs +1 -1
- package/dist/locales.cjs.map +1 -1
- package/dist/locales.js +67 -23
- package/dist/locales.js.map +1 -1
- package/dist/{src-ChTwrMcE.cjs → src-DsJ6yzs9.cjs} +5 -5
- package/dist/src-DsJ6yzs9.cjs.map +1 -0
- package/dist/{src-DQfz4zLM.js → src-SVFpMAWE.js} +380 -376
- package/dist/src-SVFpMAWE.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 +1 -1
- package/src/api/clipboard/toClipboard/copyExtension.ts +21 -16
- package/src/blocks/Table/TableExtension.ts +38 -9
- package/src/blocks/defaultBlocks.ts +34 -1
- package/src/comments/extension.ts +30 -11
- package/src/editor/Block.css +14 -18
- package/src/editor/managers/ExtensionManager/extensions.ts +8 -9
- package/src/extensions/SideMenu/SideMenu.ts +2 -2
- package/src/extensions/TableHandles/TableHandles.ts +2 -0
- package/src/extensions/tiptap-extensions/Link/index.ts +1 -1
- package/src/extensions/tiptap-extensions/Link/link.ts +49 -18
- package/src/i18n/locales/ar.ts +3 -1
- package/src/i18n/locales/de.ts +3 -1
- package/src/i18n/locales/en.ts +3 -1
- package/src/i18n/locales/es.ts +3 -1
- package/src/i18n/locales/fa.ts +3 -1
- package/src/i18n/locales/fr.ts +3 -1
- package/src/i18n/locales/he.ts +3 -1
- package/src/i18n/locales/hr.ts +3 -1
- package/src/i18n/locales/is.ts +3 -1
- package/src/i18n/locales/it.ts +3 -1
- package/src/i18n/locales/ja.ts +3 -1
- package/src/i18n/locales/ko.ts +3 -1
- package/src/i18n/locales/nl.ts +3 -1
- package/src/i18n/locales/no.ts +3 -1
- package/src/i18n/locales/pl.ts +3 -1
- package/src/i18n/locales/pt.ts +3 -1
- package/src/i18n/locales/ru.ts +3 -1
- package/src/i18n/locales/sk.ts +3 -1
- package/src/i18n/locales/uk.ts +3 -1
- package/src/i18n/locales/uz.ts +3 -1
- package/src/i18n/locales/vi.ts +3 -1
- package/src/i18n/locales/zh-tw.ts +3 -1
- package/src/i18n/locales/zh.ts +3 -1
- package/types/src/comments/extension.d.ts +2 -1
- package/types/src/extensions/tiptap-extensions/Link/index.d.ts +1 -1
- package/types/src/extensions/tiptap-extensions/Link/link.d.ts +12 -0
- package/types/src/i18n/locales/en.d.ts +2 -0
- package/types/src/i18n/locales/fa.d.ts +2 -0
- package/types/src/i18n/locales/sk.d.ts +2 -0
- package/dist/en-C4ykW581.cjs.map +0 -1
- package/dist/en-QsSI16s5.js.map +0 -1
- package/dist/src-ChTwrMcE.cjs.map +0 -1
- package/dist/src-DQfz4zLM.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;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}
|
|
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;padding-top:18px}[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}[data-file-block] .bn-add-file-button:where(.dark,.dark *){color:#bebebe;background-color:#464646}.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}.bn-editor[contenteditable=true] [data-file-block] .bn-add-file-button:hover:where(.dark,.dark *),[data-file-block] .bn-file-name-with-icon:hover:where(.dark,.dark *),.ProseMirror-selectednode .bn-file-name-with-icon:where(.dark,.dark *){background-color:#5a5a5a}[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]{color:#9b9a97}.bn-block:has(>.bn-block-content[data-text-color=gray]){color:#9b9a97}[data-style-type=textColor][data-value=brown]{color:#64473a}.bn-block:has(>.bn-block-content[data-text-color=brown]){color:#64473a}[data-style-type=textColor][data-value=red]{color:#e03e3e}.bn-block:has(>.bn-block-content[data-text-color=red]){color:#e03e3e}[data-style-type=textColor][data-value=orange]{color:#d9730d}.bn-block:has(>.bn-block-content[data-text-color=orange]){color:#d9730d}[data-style-type=textColor][data-value=yellow]{color:#dfab01}.bn-block:has(>.bn-block-content[data-text-color=yellow]){color:#dfab01}[data-style-type=textColor][data-value=green]{color:#4d6461}.bn-block:has(>.bn-block-content[data-text-color=green]){color:#4d6461}[data-style-type=textColor][data-value=blue]{color:#0b6e99}.bn-block:has(>.bn-block-content[data-text-color=blue]){color:#0b6e99}[data-style-type=textColor][data-value=purple]{color:#6940a5}.bn-block:has(>.bn-block-content[data-text-color=purple]){color:#6940a5}[data-style-type=textColor][data-value=pink]{color:#ad1a72}.bn-block:has(>.bn-block-content[data-text-color=pink]){color:#ad1a72}[data-style-type=backgroundColor][data-value=gray]{background-color:#ebeced}.bn-block:has(>.bn-block-content[data-background-color=gray]){background-color:#ebeced}[data-style-type=backgroundColor][data-value=brown]{background-color:#e9e5e3}.bn-block:has(>.bn-block-content[data-background-color=brown]){background-color:#e9e5e3}[data-style-type=backgroundColor][data-value=red]{background-color:#fbe4e4}.bn-block:has(>.bn-block-content[data-background-color=red]){background-color:#fbe4e4}[data-style-type=backgroundColor][data-value=orange]{background-color:#f6e9d9}.bn-block:has(>.bn-block-content[data-background-color=orange]){background-color:#f6e9d9}[data-style-type=backgroundColor][data-value=yellow]{background-color:#fbf3db}.bn-block:has(>.bn-block-content[data-background-color=yellow]){background-color:#fbf3db}[data-style-type=backgroundColor][data-value=green]{background-color:#ddedea}.bn-block:has(>.bn-block-content[data-background-color=green]){background-color:#ddedea}[data-style-type=backgroundColor][data-value=blue]{background-color:#ddebf1}.bn-block:has(>.bn-block-content[data-background-color=blue]){background-color:#ddebf1}[data-style-type=backgroundColor][data-value=purple]{background-color:#eae4f2}.bn-block:has(>.bn-block-content[data-background-color=purple]){background-color:#eae4f2}[data-style-type=backgroundColor][data-value=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":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"]}]}
|
|
1
|
+
{"builtAt":1777910834463,"assets":[{"name":"blocknote.cjs","size":6765},{"name":"blocks.cjs","size":2459},{"name":"comments.cjs","size":15546},{"name":"extensions.cjs","size":1179},{"name":"locales.cjs","size":180162},{"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-BFnTypT-.cjs","size":98615},{"name":"en-Cj5r8sW_.cjs","size":6871},{"name":"extensions-CYsFi5Is.cjs","size":48770},{"name":"src-DsJ6yzs9.cjs","size":82814},{"name":"BlockNoteExtension-ab0REuob.cjs.map","size":9552},{"name":"EventEmitter-DHdSnYCD.cjs.map","size":2205},{"name":"ShowSelection-DhXglbt8.cjs.map","size":2871},{"name":"blocks-BFnTypT-.cjs.map","size":425958},{"name":"comments.cjs.map","size":67440},{"name":"en-Cj5r8sW_.cjs.map","size":15354},{"name":"extensions-CYsFi5Is.cjs.map","size":223817},{"name":"locales.cjs.map","size":368453},{"name":"src-DsJ6yzs9.cjs.map","size":405836},{"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-BFnTypT-.cjs"],"names":["blocks"]},{"id":"a1e239a","entry":false,"initial":true,"files":["en-Cj5r8sW_.cjs"],"names":["en"]},{"id":"f16e717","entry":false,"initial":true,"files":["extensions-CYsFi5Is.cjs"],"names":["extensions"]},{"id":"a1ee98a","entry":false,"initial":true,"files":["src-DsJ6yzs9.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":6720,"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":8948,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/de.ts","size":9922,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/es.ts","size":9576,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/fa.ts","size":8533,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/fr.ts","size":10257,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/he.ts","size":8557,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/hr.ts","size":9287,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/is.ts","size":9493,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/it.ts","size":9833,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/ja.ts","size":8187,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/ko.ts","size":7826,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/nl.ts","size":9521,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/no.ts","size":9566,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/pl.ts","size":9296,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/pt.ts","size":9419,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/ru.ts","size":10348,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/sk.ts","size":9248,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/uk.ts","size":10123,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/vi.ts","size":9230,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/zh.ts","size":7675,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/zh-tw.ts","size":7730,"chunks":["9eaffe2"]},{"name":"./src/i18n/locales/uz.ts","size":10319,"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":2033,"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":3115,"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":8865,"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":10436,"chunks":["f16e717"]},{"name":"./src/extensions/SuggestionMenu/getDefaultEmojiPickerItems.ts","size":1157,"chunks":["f16e717"]},{"name":"./src/extensions/TableHandles/TableHandles.ts","size":21175,"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":3432,"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":4209,"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":3041,"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-BFnTypT-.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-UU7EM-QM.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
|
@@ -145,11 +145,13 @@ export function selectedFragmentToHTML<
|
|
|
145
145
|
return { clipboardHTML, externalHTML, markdown };
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
const checkIfSelectionInNonEditableBlock = () => {
|
|
149
|
-
//
|
|
150
|
-
//
|
|
151
|
-
|
|
152
|
-
|
|
148
|
+
const checkIfSelectionInNonEditableBlock = (view: EditorView) => {
|
|
149
|
+
// Use ProseMirror's internal selection state to check for empty selection.
|
|
150
|
+
// window.getSelection() returns null or a collapsed selection inside Shadow
|
|
151
|
+
// DOM (Firefox, Safari, and Chromium edge cases), causing this guard to
|
|
152
|
+
// misfire and silently skip clipboard writes. view.state.selection is always
|
|
153
|
+
// accurate regardless of DOM mode.
|
|
154
|
+
if (view.state.selection.empty) {
|
|
153
155
|
return true;
|
|
154
156
|
}
|
|
155
157
|
|
|
@@ -158,16 +160,19 @@ const checkIfSelectionInNonEditableBlock = () => {
|
|
|
158
160
|
// non-editable block. We only need to check one node as it's
|
|
159
161
|
// not possible for the browser selection to start in an
|
|
160
162
|
// editable block and end in a non-editable one.
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
163
|
+
const selection = window.getSelection();
|
|
164
|
+
if (selection && !selection.isCollapsed) {
|
|
165
|
+
let node = selection.focusNode;
|
|
166
|
+
while (node) {
|
|
167
|
+
if (
|
|
168
|
+
node instanceof HTMLElement &&
|
|
169
|
+
node.getAttribute("contenteditable") === "false"
|
|
170
|
+
) {
|
|
171
|
+
return true;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
node = node.parentElement;
|
|
168
175
|
}
|
|
169
|
-
|
|
170
|
-
node = node.parentElement;
|
|
171
176
|
}
|
|
172
177
|
|
|
173
178
|
return false;
|
|
@@ -213,7 +218,7 @@ export const createCopyToClipboardExtension = <
|
|
|
213
218
|
props: {
|
|
214
219
|
handleDOMEvents: {
|
|
215
220
|
copy(view, event) {
|
|
216
|
-
if (checkIfSelectionInNonEditableBlock()) {
|
|
221
|
+
if (checkIfSelectionInNonEditableBlock(view)) {
|
|
217
222
|
return true;
|
|
218
223
|
}
|
|
219
224
|
|
|
@@ -222,7 +227,7 @@ export const createCopyToClipboardExtension = <
|
|
|
222
227
|
return true;
|
|
223
228
|
},
|
|
224
229
|
cut(view, event) {
|
|
225
|
-
if (checkIfSelectionInNonEditableBlock()) {
|
|
230
|
+
if (checkIfSelectionInNonEditableBlock(view)) {
|
|
226
231
|
return true;
|
|
227
232
|
}
|
|
228
233
|
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { callOrReturn, Extension, getExtensionField } from "@tiptap/core";
|
|
2
|
-
import {
|
|
2
|
+
import { TextSelection } from "prosemirror-state";
|
|
3
|
+
import {
|
|
4
|
+
columnResizing,
|
|
5
|
+
goToNextCell,
|
|
6
|
+
isInTable,
|
|
7
|
+
moveCellForward,
|
|
8
|
+
nextCell,
|
|
9
|
+
selectionCell,
|
|
10
|
+
tableEditing,
|
|
11
|
+
} from "prosemirror-tables";
|
|
3
12
|
|
|
4
13
|
export const RESIZE_MIN_WIDTH = 35;
|
|
5
14
|
export const EMPTY_CELL_WIDTH = 120;
|
|
@@ -24,19 +33,39 @@ export const TableExtension = Extension.create({
|
|
|
24
33
|
|
|
25
34
|
addKeyboardShortcuts() {
|
|
26
35
|
return {
|
|
27
|
-
//
|
|
36
|
+
// Moves the selection to the cell below.
|
|
28
37
|
Enter: () => {
|
|
29
38
|
if (
|
|
30
|
-
this.editor.state.selection.
|
|
31
|
-
|
|
32
|
-
"tableParagraph"
|
|
39
|
+
this.editor.state.selection.$head.parent.type.name !==
|
|
40
|
+
"tableParagraph"
|
|
33
41
|
) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
return true;
|
|
42
|
+
return false;
|
|
37
43
|
}
|
|
38
44
|
|
|
39
|
-
return
|
|
45
|
+
return this.editor.commands.command(({ state, dispatch }) => {
|
|
46
|
+
if (!isInTable(state)) {
|
|
47
|
+
return false;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
const $cell = selectionCell(state);
|
|
51
|
+
const $nextCell = nextCell($cell, "vert", 1);
|
|
52
|
+
|
|
53
|
+
if (!$nextCell) {
|
|
54
|
+
return false;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
if (dispatch) {
|
|
58
|
+
dispatch(
|
|
59
|
+
state.tr
|
|
60
|
+
.setSelection(
|
|
61
|
+
TextSelection.between($nextCell, moveCellForward($nextCell)),
|
|
62
|
+
)
|
|
63
|
+
.scrollIntoView(),
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return true;
|
|
68
|
+
});
|
|
40
69
|
},
|
|
41
70
|
// Ensures that backspace won't delete the table if the text cursor is at
|
|
42
71
|
// the start of a cell and the selection is empty.
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { InputRule, markInputRule } from "@tiptap/core";
|
|
1
2
|
import Bold from "@tiptap/extension-bold";
|
|
2
3
|
import Code from "@tiptap/extension-code";
|
|
3
4
|
import Italic from "@tiptap/extension-italic";
|
|
@@ -136,7 +137,39 @@ export const defaultStyleSpecs = {
|
|
|
136
137
|
italic: createStyleSpecFromTipTapMark(Italic, "boolean"),
|
|
137
138
|
underline: createStyleSpecFromTipTapMark(Underline, "boolean"),
|
|
138
139
|
strike: createStyleSpecFromTipTapMark(Strike, "boolean"),
|
|
139
|
-
code: createStyleSpecFromTipTapMark(
|
|
140
|
+
code: createStyleSpecFromTipTapMark(
|
|
141
|
+
Code.extend({
|
|
142
|
+
addInputRules() {
|
|
143
|
+
return [
|
|
144
|
+
// Matches any string that starts with a backtick, ends with a
|
|
145
|
+
// backtick, and has any non-backtick characters in between. Copied
|
|
146
|
+
// from original input rule:
|
|
147
|
+
// https://github.com/ueberdosis/tiptap/blob/c27661c148cdbea9e1c80107e10d0a9d1775c4ec/packages/extension-code/src/code.ts#L116
|
|
148
|
+
markInputRule({
|
|
149
|
+
find: /(^|[^`])`([^`]+)`(?!`)$/,
|
|
150
|
+
type: this.type,
|
|
151
|
+
}),
|
|
152
|
+
// Extends the Code mark with an extra input rule that fires when a space is
|
|
153
|
+
// typed after the closing backtick. The default rule only fires when typing
|
|
154
|
+
// the closing backtick itself, so it misses the case where the user adds
|
|
155
|
+
// both backticks first, then writes content between them.
|
|
156
|
+
new InputRule({
|
|
157
|
+
find: /(^|[^`])`([^`]+)`(?!`) $/,
|
|
158
|
+
handler: ({ state, range, match }) => {
|
|
159
|
+
const { tr, schema } = state;
|
|
160
|
+
const leadingChar = match[1];
|
|
161
|
+
const content = match[2];
|
|
162
|
+
tr.replaceWith(range.from + leadingChar.length, range.to, [
|
|
163
|
+
schema.text(content, [this.type.create()]),
|
|
164
|
+
schema.text(" "),
|
|
165
|
+
]);
|
|
166
|
+
},
|
|
167
|
+
}),
|
|
168
|
+
];
|
|
169
|
+
},
|
|
170
|
+
}),
|
|
171
|
+
"boolean",
|
|
172
|
+
),
|
|
140
173
|
textColor: TextColor,
|
|
141
174
|
backgroundColor: BackgroundColor,
|
|
142
175
|
} satisfies StyleSpecs;
|
|
@@ -158,6 +158,8 @@ export const CommentsExtension = createExtension(
|
|
|
158
158
|
return {
|
|
159
159
|
key: "comments",
|
|
160
160
|
store,
|
|
161
|
+
runsBefore: ["link"],
|
|
162
|
+
tiptapExtensions: [CommentMark],
|
|
161
163
|
prosemirrorPlugins: [
|
|
162
164
|
new Plugin<CommentsPluginState>({
|
|
163
165
|
key: PLUGIN_KEY,
|
|
@@ -224,7 +226,7 @@ export const CommentsExtension = createExtension(
|
|
|
224
226
|
},
|
|
225
227
|
handleClick: (view, pos, event) => {
|
|
226
228
|
if (event.button !== 0) {
|
|
227
|
-
return;
|
|
229
|
+
return false;
|
|
228
230
|
}
|
|
229
231
|
|
|
230
232
|
const node = view.state.doc.nodeAt(pos);
|
|
@@ -235,7 +237,7 @@ export const CommentsExtension = createExtension(
|
|
|
235
237
|
...prev,
|
|
236
238
|
selectedThreadId: undefined,
|
|
237
239
|
}));
|
|
238
|
-
return;
|
|
240
|
+
return false;
|
|
239
241
|
}
|
|
240
242
|
|
|
241
243
|
const commentMark = node.marks.find(
|
|
@@ -243,15 +245,33 @@ export const CommentsExtension = createExtension(
|
|
|
243
245
|
mark.type.name === markType && mark.attrs.orphan !== true,
|
|
244
246
|
);
|
|
245
247
|
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
store.
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
248
|
+
if (!commentMark) {
|
|
249
|
+
// Clicked outside any comment thread. Deselect if needed but
|
|
250
|
+
// don't consume the event so other handlers (e.g. link
|
|
251
|
+
// navigation) can process it.
|
|
252
|
+
if (store.state.selectedThreadId !== undefined) {
|
|
253
|
+
store.setState((prev) => ({
|
|
254
|
+
...prev,
|
|
255
|
+
selectedThreadId: undefined,
|
|
256
|
+
}));
|
|
257
|
+
}
|
|
258
|
+
return false;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
const threadId = commentMark.attrs.threadId as string;
|
|
262
|
+
|
|
263
|
+
// If the clicked thread is already selected, do nothing and let
|
|
264
|
+
// other handlers process the event (e.g. navigating a link).
|
|
265
|
+
if (threadId === store.state.selectedThreadId) {
|
|
266
|
+
return false;
|
|
254
267
|
}
|
|
268
|
+
|
|
269
|
+
store.setState((prev) => ({
|
|
270
|
+
...prev,
|
|
271
|
+
selectedThreadId: threadId,
|
|
272
|
+
}));
|
|
273
|
+
|
|
274
|
+
return true;
|
|
255
275
|
},
|
|
256
276
|
},
|
|
257
277
|
}),
|
|
@@ -356,7 +376,6 @@ export const CommentsExtension = createExtension(
|
|
|
356
376
|
},
|
|
357
377
|
userStore,
|
|
358
378
|
commentEditorSchema,
|
|
359
|
-
tiptapExtensions: [CommentMark],
|
|
360
379
|
} as const;
|
|
361
380
|
},
|
|
362
381
|
);
|