@novaprose/core 0.8.0 → 0.9.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/{a11ychecker-7KQU7DD3.js → a11ychecker-6ES3UMU3.js} +8 -8
- package/dist/{accordion-ui-FGN3I5UF.js → accordion-ui-B4I2FJXE.js} +4 -4
- package/dist/{advcode-65Z2ELUB.js → advcode-7S6N64C7.js} +4 -4
- package/dist/{advcode-editor-WIOCY552.js → advcode-editor-ENCPFVLO.js} +2 -2
- package/dist/{advlist-CEHE6YXS.js → advlist-FEDGNLMQ.js} +4 -4
- package/dist/{advtable-ui-5CBOPTHW.js → advtable-ui-JAVJY4L4.js} +8 -8
- package/dist/{ai-IRQYZHRK.js → ai-5KM776QW.js} +3 -3
- package/dist/{anchor-ui-NWIIRKGY.js → anchor-ui-VPKNKZ7J.js} +4 -4
- package/dist/{autocorrect-6GFLVDPC.js → autocorrect-5QLICCRN.js} +2 -2
- package/dist/{autolink-N427KVQO.js → autolink-ZYIPRXBA.js} +3 -3
- package/dist/{autosave-L7OZ3KLK.js → autosave-IC7YYG44.js} +3 -3
- package/dist/{casechange-5G6RAJ7K.js → casechange-R7IO2APS.js} +3 -3
- package/dist/{charmap-5CBBDWOP.js → charmap-CARYZFKD.js} +3 -3
- package/dist/{checklist-HM4VXZKY.js → checklist-7E47QW6L.js} +5 -5
- package/dist/{chunk-YDPZCVXS.js → chunk-3KBQEAX2.js} +6 -3
- package/dist/chunk-3KBQEAX2.js.map +1 -0
- package/dist/{chunk-AQV6FIKK.js → chunk-3NNILZVB.js} +3 -3
- package/dist/{chunk-ADRPQLZ2.js → chunk-5KERLFDD.js} +4 -1
- package/dist/chunk-5KERLFDD.js.map +1 -0
- package/dist/{chunk-TAM2FHKG.js → chunk-6BJEOL5V.js} +125 -1
- package/dist/chunk-6BJEOL5V.js.map +1 -0
- package/dist/{chunk-MZGNOHSY.js → chunk-AB67XUSR.js} +5 -3
- package/dist/{chunk-MZGNOHSY.js.map → chunk-AB67XUSR.js.map} +1 -1
- package/dist/{chunk-5VCESSQB.js → chunk-ARBKIZZU.js} +3 -3
- package/dist/{chunk-I7Y4KSM2.js → chunk-BMCH63QN.js} +50 -50
- package/dist/{chunk-EOJ5XHKA.js → chunk-BUABAYZL.js} +3 -3
- package/dist/{chunk-OFHGXYG3.js → chunk-DCMPJ25E.js} +2 -2
- package/dist/{chunk-FTEA6L2Q.js → chunk-DV7TGRU6.js} +2 -2
- package/dist/{chunk-HC6RMBAD.js → chunk-F2WT77ZG.js} +4 -4
- package/dist/{chunk-6YSQGFV7.js → chunk-FNJ7AEJK.js} +72 -10
- package/dist/chunk-FNJ7AEJK.js.map +1 -0
- package/dist/{chunk-C326LHHU.js → chunk-GUZCRDK6.js} +3 -3
- package/dist/{chunk-P2UU2NLT.js → chunk-HSVNJGK3.js} +3 -3
- package/dist/{chunk-S2XZRKHA.js → chunk-IFSD6O5M.js} +2 -2
- package/dist/{chunk-VK6YF2AA.js → chunk-IO5PU52K.js} +2 -2
- package/dist/{chunk-YG5V7POU.js → chunk-K4LFGNS7.js} +3 -3
- package/dist/{chunk-66INZHZ2.js → chunk-KGEHUWGL.js} +2 -2
- package/dist/{chunk-YVSUR7E5.js → chunk-KW6ATQPN.js} +4 -4
- package/dist/{chunk-LVEQBNLX.js → chunk-NX3KWIP5.js} +2 -2
- package/dist/{chunk-T3IRLTKK.js → chunk-QWT56RVG.js} +2 -2
- package/dist/{chunk-EXX2S352.js → chunk-RJ7T56OH.js} +184 -39
- package/dist/chunk-RJ7T56OH.js.map +1 -0
- package/dist/{chunk-GHVB6SV4.js → chunk-RPHA4HRX.js} +4 -4
- package/dist/{chunk-TABIUD2L.js → chunk-S4DCQA74.js} +2 -2
- package/dist/{chunk-IG2BL4ON.js → chunk-SNVYHGGO.js} +5 -5
- package/dist/{chunk-IG2BL4ON.js.map → chunk-SNVYHGGO.js.map} +1 -1
- package/dist/{chunk-GXXXLPDQ.js → chunk-T4543CB2.js} +2 -2
- package/dist/{chunk-AC3YCAX4.js → chunk-UHUOAQA6.js} +2 -2
- package/dist/{chunk-DEYYVZ7O.js → chunk-XCXJD5DO.js} +4 -1
- package/dist/chunk-XCXJD5DO.js.map +1 -0
- package/dist/{chunk-NTGEKGXU.js → chunk-Y2OXWCM7.js} +3 -3
- package/dist/{chunk-N32H37AJ.js → chunk-YOTA26H7.js} +4 -4
- package/dist/{chunk-4I4AYH2K.js → chunk-YP7N47QR.js} +2 -2
- package/dist/{chunk-J6W2CDRF.js → chunk-YYCDRUE2.js} +5 -5
- package/dist/{codesample-GHWIC7PT.js → codesample-FOWXMCTC.js} +5 -5
- package/dist/{directionality-EGQKGDZA.js → directionality-BXWXNPRZ.js} +5 -5
- package/dist/{document-IQqDDT4v.d.cts → document-B0hLRhuH.d.cts} +1 -1
- package/dist/{document-0ft41E6d.d.ts → document-Dh-jz1SK.d.ts} +1 -1
- package/dist/docx.cjs +64 -7
- package/dist/docx.cjs.map +1 -1
- package/dist/docx.d.cts +1 -1
- package/dist/docx.d.ts +1 -1
- package/dist/docx.js +26 -21
- package/dist/docx.js.map +1 -1
- package/dist/{draghandle-U6CYZHPA.js → draghandle-3IBHVHDE.js} +4 -4
- package/dist/{editimage-5EWPSM22.js → editimage-GTLFGHYU.js} +8 -8
- package/dist/{editor-Dmtwjw2u.d.ts → editor-DnAN9aPd.d.ts} +64 -4
- package/dist/{editor-BCMxe1M4.d.cts → editor-S8w_w5W0.d.cts} +64 -4
- package/dist/{email-ELNMEQ6E.js → email-FDSENENR.js} +2 -2
- package/dist/email.d.cts +2 -2
- package/dist/email.d.ts +2 -2
- package/dist/{emoticons-EGHNZKSA.js → emoticons-SHYSAEID.js} +3 -3
- package/dist/{exportpdf-4P7X3NY2.js → exportpdf-TEBDQZSN.js} +4 -4
- package/dist/{exportword-JFJ3KTYZ.js → exportword-BGH2CZXO.js} +3 -3
- package/dist/{footnotes-ui-FV6QRGDA.js → footnotes-ui-KPKFDSN7.js} +17 -17
- package/dist/{formatpainter-IEXX27OJ.js → formatpainter-CB4ZTKR5.js} +3 -3
- package/dist/{fullpagehtml-ui-RE4C2NO5.js → fullpagehtml-ui-JPGRMXHD.js} +4 -4
- package/dist/html-rules.cjs +2 -2
- package/dist/html-rules.cjs.map +1 -1
- package/dist/html-rules.js +2 -2
- package/dist/html-rules.js.map +1 -1
- package/dist/i18n/de.cjs +3 -0
- package/dist/i18n/de.cjs.map +1 -1
- package/dist/i18n/de.js +3 -0
- package/dist/i18n/de.js.map +1 -1
- package/dist/i18n/es.cjs +3 -0
- package/dist/i18n/es.cjs.map +1 -1
- package/dist/i18n/es.js +3 -0
- package/dist/i18n/es.js.map +1 -1
- package/dist/i18n/fr.cjs +3 -0
- package/dist/i18n/fr.cjs.map +1 -1
- package/dist/i18n/fr.js +3 -0
- package/dist/i18n/fr.js.map +1 -1
- package/dist/i18n/it.cjs +3 -0
- package/dist/i18n/it.cjs.map +1 -1
- package/dist/i18n/it.js +3 -0
- package/dist/i18n/it.js.map +1 -1
- package/dist/i18n/pt-BR.cjs +3 -0
- package/dist/i18n/pt-BR.cjs.map +1 -1
- package/dist/i18n/pt-BR.js +3 -0
- package/dist/i18n/pt-BR.js.map +1 -1
- package/dist/i18n/ru.cjs +3 -0
- package/dist/i18n/ru.cjs.map +1 -1
- package/dist/i18n/ru.js +3 -0
- package/dist/i18n/ru.js.map +1 -1
- package/dist/{importword-D7Z6RXGQ.js → importword-ZOWLUWSN.js} +3 -3
- package/dist/{index-CZ9yDvmQ.d.ts → index-Pb2r0V-S.d.cts} +3 -0
- package/dist/{index-CZ9yDvmQ.d.cts → index-Pb2r0V-S.d.ts} +3 -0
- package/dist/index.cjs +544 -178
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.js +35 -31
- package/dist/index.js.map +1 -1
- package/dist/{insertdatetime-YW2VHYZH.js → insertdatetime-BXQ3XXPH.js} +3 -3
- package/dist/{linkchecker-3S3MCPOS.js → linkchecker-JASSETVI.js} +9 -9
- package/dist/{markdown-26O3N3T2.js → markdown-OTLTCK26.js} +4 -4
- package/dist/markdown.d.cts +1 -1
- package/dist/markdown.d.ts +1 -1
- package/dist/{math-ui-RUTCHTRY.js → math-ui-TY4VZF7Q.js} +6 -6
- package/dist/{media-ui-36TE3CJD.js → media-ui-IXN4ENVF.js} +8 -8
- package/dist/{mediaembed-ui-ZNTGZ2SQ.js → mediaembed-ui-ODX5ECXC.js} +6 -6
- package/dist/{mentions-ui-O4IPWQT4.js → mentions-ui-55GCKC6F.js} +3 -3
- package/dist/{mergetags-ui-HS3Q2R36.js → mergetags-ui-6T7Z7MAZ.js} +4 -4
- package/dist/{nonbreaking-GYRUH4UO.js → nonbreaking-PONHSOMJ.js} +3 -3
- package/dist/{pagebreak-ui-I4ZPYK3U.js → pagebreak-ui-AKAW7M5I.js} +5 -5
- package/dist/{pageembed-ui-WOY6VWRJ.js → pageembed-ui-GUNPKMBR.js} +5 -5
- package/dist/{pagelayout-ui-Y2IM7FJQ.js → pagelayout-ui-JSFVEMHS.js} +3 -3
- package/dist/{paste-office-3A6KWKCV.js → paste-office-TORLAZ5L.js} +13 -3
- package/dist/paste-office-TORLAZ5L.js.map +1 -0
- package/dist/{permanentpen-6D5LLKFX.js → permanentpen-EACURV5U.js} +11 -11
- package/dist/{print-MZMLQIQX.js → print-4XJCOANX.js} +2 -2
- package/dist/{quickbars-UZ2Q67TX.js → quickbars-BT5PETRX.js} +9 -9
- package/dist/{revisionhistory-ACRB23HL.js → revisionhistory-3FKLMJHJ.js} +16 -16
- package/dist/{save-72ZLF6AO.js → save-ZHFXH222.js} +3 -3
- package/dist/{search-bar-HTZQNPD3.js → search-bar-6MVRMTK6.js} +4 -4
- package/dist/search-bar-6MVRMTK6.js.map +1 -0
- package/dist/{spellchecker-DJ7SP5JY.js → spellchecker-JJKA6B4R.js} +2 -2
- package/dist/{suggestions-panel-RJXC4LCM.js → suggestions-panel-X37NFLXE.js} +6 -6
- package/dist/{suggestions-ui-PODMNH7D.js → suggestions-ui-WN7QNYHB.js} +7 -7
- package/dist/{table-OBHE465Y.js → table-PEF56QG5.js} +5 -5
- package/dist/{table-dialogs-UMIIZQYE.js → table-dialogs-QS3VFZD2.js} +6 -6
- package/dist/{tableofcontents-ui-U2PYNPX6.js → tableofcontents-ui-U7EV3UU7.js} +6 -6
- package/dist/{template-YYC2MGVH.js → template-ZRTKIP2J.js} +16 -16
- package/dist/{typography-EQUXUXIN.js → typography-S7RO54DB.js} +2 -2
- package/dist/upload.d.cts +1 -1
- package/dist/upload.d.ts +1 -1
- package/dist/{visualblocks-O5QW7ZDT.js → visualblocks-KJYRHF2L.js} +3 -3
- package/dist/{visualchars-UQFRWQPE.js → visualchars-TDLZKFXD.js} +3 -3
- package/package.json +1 -1
- package/src/style.css +56 -6
- package/dist/chunk-6YSQGFV7.js.map +0 -1
- package/dist/chunk-ADRPQLZ2.js.map +0 -1
- package/dist/chunk-DEYYVZ7O.js.map +0 -1
- package/dist/chunk-EXX2S352.js.map +0 -1
- package/dist/chunk-TAM2FHKG.js.map +0 -1
- package/dist/chunk-YDPZCVXS.js.map +0 -1
- package/dist/paste-office-3A6KWKCV.js.map +0 -1
- package/dist/search-bar-HTZQNPD3.js.map +0 -1
- /package/dist/{a11ychecker-7KQU7DD3.js.map → a11ychecker-6ES3UMU3.js.map} +0 -0
- /package/dist/{accordion-ui-FGN3I5UF.js.map → accordion-ui-B4I2FJXE.js.map} +0 -0
- /package/dist/{advcode-65Z2ELUB.js.map → advcode-7S6N64C7.js.map} +0 -0
- /package/dist/{advcode-editor-WIOCY552.js.map → advcode-editor-ENCPFVLO.js.map} +0 -0
- /package/dist/{advlist-CEHE6YXS.js.map → advlist-FEDGNLMQ.js.map} +0 -0
- /package/dist/{advtable-ui-5CBOPTHW.js.map → advtable-ui-JAVJY4L4.js.map} +0 -0
- /package/dist/{ai-IRQYZHRK.js.map → ai-5KM776QW.js.map} +0 -0
- /package/dist/{anchor-ui-NWIIRKGY.js.map → anchor-ui-VPKNKZ7J.js.map} +0 -0
- /package/dist/{autocorrect-6GFLVDPC.js.map → autocorrect-5QLICCRN.js.map} +0 -0
- /package/dist/{autolink-N427KVQO.js.map → autolink-ZYIPRXBA.js.map} +0 -0
- /package/dist/{autosave-L7OZ3KLK.js.map → autosave-IC7YYG44.js.map} +0 -0
- /package/dist/{casechange-5G6RAJ7K.js.map → casechange-R7IO2APS.js.map} +0 -0
- /package/dist/{charmap-5CBBDWOP.js.map → charmap-CARYZFKD.js.map} +0 -0
- /package/dist/{checklist-HM4VXZKY.js.map → checklist-7E47QW6L.js.map} +0 -0
- /package/dist/{chunk-AQV6FIKK.js.map → chunk-3NNILZVB.js.map} +0 -0
- /package/dist/{chunk-5VCESSQB.js.map → chunk-ARBKIZZU.js.map} +0 -0
- /package/dist/{chunk-I7Y4KSM2.js.map → chunk-BMCH63QN.js.map} +0 -0
- /package/dist/{chunk-EOJ5XHKA.js.map → chunk-BUABAYZL.js.map} +0 -0
- /package/dist/{chunk-OFHGXYG3.js.map → chunk-DCMPJ25E.js.map} +0 -0
- /package/dist/{chunk-FTEA6L2Q.js.map → chunk-DV7TGRU6.js.map} +0 -0
- /package/dist/{chunk-HC6RMBAD.js.map → chunk-F2WT77ZG.js.map} +0 -0
- /package/dist/{chunk-C326LHHU.js.map → chunk-GUZCRDK6.js.map} +0 -0
- /package/dist/{chunk-P2UU2NLT.js.map → chunk-HSVNJGK3.js.map} +0 -0
- /package/dist/{chunk-S2XZRKHA.js.map → chunk-IFSD6O5M.js.map} +0 -0
- /package/dist/{chunk-VK6YF2AA.js.map → chunk-IO5PU52K.js.map} +0 -0
- /package/dist/{chunk-YG5V7POU.js.map → chunk-K4LFGNS7.js.map} +0 -0
- /package/dist/{chunk-66INZHZ2.js.map → chunk-KGEHUWGL.js.map} +0 -0
- /package/dist/{chunk-YVSUR7E5.js.map → chunk-KW6ATQPN.js.map} +0 -0
- /package/dist/{chunk-LVEQBNLX.js.map → chunk-NX3KWIP5.js.map} +0 -0
- /package/dist/{chunk-T3IRLTKK.js.map → chunk-QWT56RVG.js.map} +0 -0
- /package/dist/{chunk-GHVB6SV4.js.map → chunk-RPHA4HRX.js.map} +0 -0
- /package/dist/{chunk-TABIUD2L.js.map → chunk-S4DCQA74.js.map} +0 -0
- /package/dist/{chunk-GXXXLPDQ.js.map → chunk-T4543CB2.js.map} +0 -0
- /package/dist/{chunk-AC3YCAX4.js.map → chunk-UHUOAQA6.js.map} +0 -0
- /package/dist/{chunk-NTGEKGXU.js.map → chunk-Y2OXWCM7.js.map} +0 -0
- /package/dist/{chunk-N32H37AJ.js.map → chunk-YOTA26H7.js.map} +0 -0
- /package/dist/{chunk-4I4AYH2K.js.map → chunk-YP7N47QR.js.map} +0 -0
- /package/dist/{chunk-J6W2CDRF.js.map → chunk-YYCDRUE2.js.map} +0 -0
- /package/dist/{codesample-GHWIC7PT.js.map → codesample-FOWXMCTC.js.map} +0 -0
- /package/dist/{directionality-EGQKGDZA.js.map → directionality-BXWXNPRZ.js.map} +0 -0
- /package/dist/{draghandle-U6CYZHPA.js.map → draghandle-3IBHVHDE.js.map} +0 -0
- /package/dist/{editimage-5EWPSM22.js.map → editimage-GTLFGHYU.js.map} +0 -0
- /package/dist/{email-ELNMEQ6E.js.map → email-FDSENENR.js.map} +0 -0
- /package/dist/{emoticons-EGHNZKSA.js.map → emoticons-SHYSAEID.js.map} +0 -0
- /package/dist/{exportpdf-4P7X3NY2.js.map → exportpdf-TEBDQZSN.js.map} +0 -0
- /package/dist/{exportword-JFJ3KTYZ.js.map → exportword-BGH2CZXO.js.map} +0 -0
- /package/dist/{footnotes-ui-FV6QRGDA.js.map → footnotes-ui-KPKFDSN7.js.map} +0 -0
- /package/dist/{formatpainter-IEXX27OJ.js.map → formatpainter-CB4ZTKR5.js.map} +0 -0
- /package/dist/{fullpagehtml-ui-RE4C2NO5.js.map → fullpagehtml-ui-JPGRMXHD.js.map} +0 -0
- /package/dist/{importword-D7Z6RXGQ.js.map → importword-ZOWLUWSN.js.map} +0 -0
- /package/dist/{insertdatetime-YW2VHYZH.js.map → insertdatetime-BXQ3XXPH.js.map} +0 -0
- /package/dist/{linkchecker-3S3MCPOS.js.map → linkchecker-JASSETVI.js.map} +0 -0
- /package/dist/{markdown-26O3N3T2.js.map → markdown-OTLTCK26.js.map} +0 -0
- /package/dist/{math-ui-RUTCHTRY.js.map → math-ui-TY4VZF7Q.js.map} +0 -0
- /package/dist/{media-ui-36TE3CJD.js.map → media-ui-IXN4ENVF.js.map} +0 -0
- /package/dist/{mediaembed-ui-ZNTGZ2SQ.js.map → mediaembed-ui-ODX5ECXC.js.map} +0 -0
- /package/dist/{mentions-ui-O4IPWQT4.js.map → mentions-ui-55GCKC6F.js.map} +0 -0
- /package/dist/{mergetags-ui-HS3Q2R36.js.map → mergetags-ui-6T7Z7MAZ.js.map} +0 -0
- /package/dist/{nonbreaking-GYRUH4UO.js.map → nonbreaking-PONHSOMJ.js.map} +0 -0
- /package/dist/{pagebreak-ui-I4ZPYK3U.js.map → pagebreak-ui-AKAW7M5I.js.map} +0 -0
- /package/dist/{pageembed-ui-WOY6VWRJ.js.map → pageembed-ui-GUNPKMBR.js.map} +0 -0
- /package/dist/{pagelayout-ui-Y2IM7FJQ.js.map → pagelayout-ui-JSFVEMHS.js.map} +0 -0
- /package/dist/{permanentpen-6D5LLKFX.js.map → permanentpen-EACURV5U.js.map} +0 -0
- /package/dist/{print-MZMLQIQX.js.map → print-4XJCOANX.js.map} +0 -0
- /package/dist/{quickbars-UZ2Q67TX.js.map → quickbars-BT5PETRX.js.map} +0 -0
- /package/dist/{revisionhistory-ACRB23HL.js.map → revisionhistory-3FKLMJHJ.js.map} +0 -0
- /package/dist/{save-72ZLF6AO.js.map → save-ZHFXH222.js.map} +0 -0
- /package/dist/{spellchecker-DJ7SP5JY.js.map → spellchecker-JJKA6B4R.js.map} +0 -0
- /package/dist/{suggestions-panel-RJXC4LCM.js.map → suggestions-panel-X37NFLXE.js.map} +0 -0
- /package/dist/{suggestions-ui-PODMNH7D.js.map → suggestions-ui-WN7QNYHB.js.map} +0 -0
- /package/dist/{table-OBHE465Y.js.map → table-PEF56QG5.js.map} +0 -0
- /package/dist/{table-dialogs-UMIIZQYE.js.map → table-dialogs-QS3VFZD2.js.map} +0 -0
- /package/dist/{tableofcontents-ui-U2PYNPX6.js.map → tableofcontents-ui-U7EV3UU7.js.map} +0 -0
- /package/dist/{template-YYC2MGVH.js.map → template-ZRTKIP2J.js.map} +0 -0
- /package/dist/{typography-EQUXUXIN.js.map → typography-S7RO54DB.js.map} +0 -0
- /package/dist/{visualblocks-O5QW7ZDT.js.map → visualblocks-KJYRHF2L.js.map} +0 -0
- /package/dist/{visualchars-UQFRWQPE.js.map → visualchars-TDLZKFXD.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
schema
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6BJEOL5V.js";
|
|
4
4
|
import {
|
|
5
5
|
OWN_STYLE
|
|
6
6
|
} from "./chunk-OOVNE6MB.js";
|
|
@@ -76,4 +76,4 @@ var novaParser = parserFor(schema);
|
|
|
76
76
|
export {
|
|
77
77
|
parserFor
|
|
78
78
|
};
|
|
79
|
-
//# sourceMappingURL=chunk-
|
|
79
|
+
//# sourceMappingURL=chunk-KGEHUWGL.js.map
|
|
@@ -4,15 +4,15 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
openLinkDialog,
|
|
6
6
|
removeLink
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SNVYHGGO.js";
|
|
8
8
|
import {
|
|
9
9
|
getLinkAt,
|
|
10
10
|
markRange,
|
|
11
11
|
marksOf
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-UHUOAQA6.js";
|
|
13
13
|
import {
|
|
14
14
|
icons
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-5KERLFDD.js";
|
|
16
16
|
import {
|
|
17
17
|
activeElement,
|
|
18
18
|
h,
|
|
@@ -148,4 +148,4 @@ export {
|
|
|
148
148
|
addLinkNote,
|
|
149
149
|
linkBubblePlugin
|
|
150
150
|
};
|
|
151
|
-
//# sourceMappingURL=chunk-
|
|
151
|
+
//# sourceMappingURL=chunk-KW6ATQPN.js.map
|
|
@@ -194,7 +194,7 @@ var mediaembed_default = definePlugin({
|
|
|
194
194
|
new Plugin({ props: { nodeViews: { link_card: (node) => cardView(node, settings) } } })
|
|
195
195
|
];
|
|
196
196
|
},
|
|
197
|
-
load: () => import("./mediaembed-ui-
|
|
197
|
+
load: () => import("./mediaembed-ui-ODX5ECXC.js")
|
|
198
198
|
});
|
|
199
199
|
|
|
200
200
|
export {
|
|
@@ -204,4 +204,4 @@ export {
|
|
|
204
204
|
cardFields,
|
|
205
205
|
mediaembed_default
|
|
206
206
|
};
|
|
207
|
-
//# sourceMappingURL=chunk-
|
|
207
|
+
//# sourceMappingURL=chunk-NX3KWIP5.js.map
|
|
@@ -148,11 +148,11 @@ var footnotes_default2 = definePlugin({
|
|
|
148
148
|
setup(editor) {
|
|
149
149
|
editor.ui.addStyles("nova-footnotes", footnotes_default);
|
|
150
150
|
},
|
|
151
|
-
load: () => import("./footnotes-ui-
|
|
151
|
+
load: () => import("./footnotes-ui-KPKFDSN7.js")
|
|
152
152
|
});
|
|
153
153
|
|
|
154
154
|
export {
|
|
155
155
|
footnoteId,
|
|
156
156
|
footnotes_default2 as footnotes_default
|
|
157
157
|
};
|
|
158
|
-
//# sourceMappingURL=chunk-
|
|
158
|
+
//# sourceMappingURL=chunk-QWT56RVG.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createMenu,
|
|
3
3
|
focusMenu
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-YP7N47QR.js";
|
|
5
5
|
import {
|
|
6
6
|
linkBubblePlugin
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KW6ATQPN.js";
|
|
8
8
|
import {
|
|
9
9
|
parserFor
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-KGEHUWGL.js";
|
|
11
11
|
import {
|
|
12
12
|
Popover,
|
|
13
13
|
positionFloating,
|
|
@@ -18,20 +18,20 @@ import {
|
|
|
18
18
|
} from "./chunk-6LQM7G4V.js";
|
|
19
19
|
import {
|
|
20
20
|
registerBuiltins
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-FNJ7AEJK.js";
|
|
22
22
|
import {
|
|
23
23
|
openLinkDialog
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-SNVYHGGO.js";
|
|
25
25
|
import {
|
|
26
26
|
embeddedImageUploadPlugin,
|
|
27
27
|
exitImageCaption,
|
|
28
28
|
imageDropPastePlugin,
|
|
29
29
|
openImageDialog
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-YYCDRUE2.js";
|
|
31
31
|
import {
|
|
32
32
|
insertTable,
|
|
33
33
|
loadTables
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-RPHA4HRX.js";
|
|
35
35
|
import {
|
|
36
36
|
flatMarkViews
|
|
37
37
|
} from "./chunk-ANE5ASXG.js";
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
import {
|
|
44
44
|
openDialog,
|
|
45
45
|
textField
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-AB67XUSR.js";
|
|
47
47
|
import {
|
|
48
48
|
ContentRules,
|
|
49
49
|
Formatter,
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
isRtlLanguage,
|
|
53
53
|
sanitizeJSON,
|
|
54
54
|
schemaFromOptions
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-3KBQEAX2.js";
|
|
56
56
|
import {
|
|
57
57
|
SET_CONTENT_META
|
|
58
58
|
} from "./chunk-OQMMHWMZ.js";
|
|
@@ -62,18 +62,20 @@ import {
|
|
|
62
62
|
listIndent,
|
|
63
63
|
listOutdent,
|
|
64
64
|
nodesOf
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-UHUOAQA6.js";
|
|
66
66
|
import {
|
|
67
67
|
classAttr,
|
|
68
68
|
imageSize,
|
|
69
|
+
languageTag,
|
|
70
|
+
primaryLanguage,
|
|
69
71
|
schema
|
|
70
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-6BJEOL5V.js";
|
|
71
73
|
import {
|
|
72
74
|
icons
|
|
73
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-5KERLFDD.js";
|
|
74
76
|
import {
|
|
75
77
|
createTranslator
|
|
76
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-XCXJD5DO.js";
|
|
77
79
|
import {
|
|
78
80
|
loadPlugin,
|
|
79
81
|
orderPlugins,
|
|
@@ -112,7 +114,7 @@ function hasLocalFileImages(html) {
|
|
|
112
114
|
var cleaner = null;
|
|
113
115
|
var loading = null;
|
|
114
116
|
function loadPasteCleaner() {
|
|
115
|
-
loading ??= import("./paste-office-
|
|
117
|
+
loading ??= import("./paste-office-TORLAZ5L.js").then(
|
|
116
118
|
(module) => cleaner = module,
|
|
117
119
|
() => {
|
|
118
120
|
loading = null;
|
|
@@ -149,6 +151,26 @@ function htmlToPlainText(html) {
|
|
|
149
151
|
template.content.childNodes.forEach(walk);
|
|
150
152
|
return out.split("\n").map((line) => line.trim()).join("\n").replace(/\n{3,}/g, "\n\n").trim();
|
|
151
153
|
}
|
|
154
|
+
function textLanguage(editor) {
|
|
155
|
+
return languageTag(editor.options.contentLanguage) ?? languageTag(editor.root.parentElement?.closest("[lang]")?.getAttribute("lang"));
|
|
156
|
+
}
|
|
157
|
+
function withoutTextLanguage(html, lang) {
|
|
158
|
+
if (!lang || !/\slang\s*=/i.test(html)) return html;
|
|
159
|
+
const template = document.createElement("template");
|
|
160
|
+
template.innerHTML = html;
|
|
161
|
+
let changed = false;
|
|
162
|
+
for (const el of template.content.querySelectorAll("[lang]")) {
|
|
163
|
+
const tag = languageTag(el.getAttribute("lang"));
|
|
164
|
+
if (tag && primaryLanguage(tag) === primaryLanguage(lang)) {
|
|
165
|
+
el.removeAttribute("lang");
|
|
166
|
+
changed = true;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
if (!changed) return html;
|
|
170
|
+
const container = document.createElement("div");
|
|
171
|
+
container.append(template.content);
|
|
172
|
+
return container.innerHTML;
|
|
173
|
+
}
|
|
152
174
|
function pastePlugin(editor) {
|
|
153
175
|
let reentrant = false;
|
|
154
176
|
return new Plugin({
|
|
@@ -171,6 +193,7 @@ function pastePlugin(editor) {
|
|
|
171
193
|
const { pastePreprocess, pastePostprocess, pasteStyles } = editor.options;
|
|
172
194
|
let result = pastePreprocess ? pastePreprocess(html, editor) : html;
|
|
173
195
|
if (cleaner) result = cleaner.cleanPastedHTML(result, pasteStyles ?? "clean");
|
|
196
|
+
result = withoutTextLanguage(result, textLanguage(editor));
|
|
174
197
|
if (pastePostprocess) {
|
|
175
198
|
const template = document.createElement("template");
|
|
176
199
|
template.innerHTML = result;
|
|
@@ -288,7 +311,7 @@ var DEFAULT_MENUS = {
|
|
|
288
311
|
},
|
|
289
312
|
format: {
|
|
290
313
|
title: "menu.format",
|
|
291
|
-
items: "bold italic underline strikethrough superscript subscript inlinecode | paragraph h1 h2 h3 blockquote codeblock | alignleft aligncenter alignright alignjustify | lowercase uppercase titlecase | formatpainter permanentpen configurepermanentpen | removeformat"
|
|
314
|
+
items: "bold italic underline strikethrough superscript subscript inlinecode | paragraph h1 h2 h3 blockquote codeblock | alignleft aligncenter alignright alignjustify | lowercase uppercase titlecase | formatpainter permanentpen configurepermanentpen | language | removeformat"
|
|
292
315
|
},
|
|
293
316
|
table: {
|
|
294
317
|
title: "menu.table",
|
|
@@ -443,7 +466,7 @@ function createMenubar(editor, host, config, menus) {
|
|
|
443
466
|
// src/ui/menu-items.ts
|
|
444
467
|
import { AllSelection } from "prosemirror-state";
|
|
445
468
|
function printContent(editor) {
|
|
446
|
-
void import("./print-
|
|
469
|
+
void import("./print-4XJCOANX.js").then(
|
|
447
470
|
(module) => module.print(editor),
|
|
448
471
|
(error) => console.error("[nova] print: could not load the print module", error)
|
|
449
472
|
);
|
|
@@ -1072,6 +1095,7 @@ function createStatusbar(editor, host) {
|
|
|
1072
1095
|
var MIN_HEIGHT = 100;
|
|
1073
1096
|
var MIN_WIDTH = 200;
|
|
1074
1097
|
var KEY_STEP = 20;
|
|
1098
|
+
var MAX_HEIGHT = 4e3;
|
|
1075
1099
|
function createResizeHandle(editor, host, both) {
|
|
1076
1100
|
const root = editor.root;
|
|
1077
1101
|
const handle = h("div", {
|
|
@@ -1079,11 +1103,19 @@ function createResizeHandle(editor, host, both) {
|
|
|
1079
1103
|
role: "separator",
|
|
1080
1104
|
tabIndex: 0,
|
|
1081
1105
|
"aria-orientation": "horizontal",
|
|
1082
|
-
"aria-label": editor.ui.t("status.resize")
|
|
1106
|
+
"aria-label": editor.ui.t("status.resize"),
|
|
1107
|
+
"aria-valuemin": String(MIN_HEIGHT)
|
|
1083
1108
|
});
|
|
1084
1109
|
handle.append(icon(both ? icons.resizeHandleBoth : icons.resizeHandle));
|
|
1085
1110
|
root.dataset.resize = both ? "both" : "vertical";
|
|
1086
1111
|
host.append(handle);
|
|
1112
|
+
const sayHeight = () => {
|
|
1113
|
+
const height = Math.max(MIN_HEIGHT, root.offsetHeight);
|
|
1114
|
+
handle.setAttribute("aria-valuenow", String(height));
|
|
1115
|
+
handle.setAttribute("aria-valuemax", String(Math.max(MAX_HEIGHT, height)));
|
|
1116
|
+
};
|
|
1117
|
+
sayHeight();
|
|
1118
|
+
handle.addEventListener("focus", sayHeight);
|
|
1087
1119
|
const setSize = (height, width) => {
|
|
1088
1120
|
root.style.boxSizing = "border-box";
|
|
1089
1121
|
root.style.height = `${Math.max(MIN_HEIGHT, Math.round(height))}px`;
|
|
@@ -1091,7 +1123,7 @@ function createResizeHandle(editor, host, both) {
|
|
|
1091
1123
|
const max = root.parentElement?.clientWidth || Infinity;
|
|
1092
1124
|
root.style.width = `${Math.min(max, Math.max(MIN_WIDTH, Math.round(width)))}px`;
|
|
1093
1125
|
}
|
|
1094
|
-
|
|
1126
|
+
sayHeight();
|
|
1095
1127
|
};
|
|
1096
1128
|
let start = null;
|
|
1097
1129
|
const onDown = (event) => {
|
|
@@ -1134,17 +1166,117 @@ function createResizeHandle(editor, host, both) {
|
|
|
1134
1166
|
};
|
|
1135
1167
|
}
|
|
1136
1168
|
|
|
1169
|
+
// src/sticky-header.ts
|
|
1170
|
+
import { Plugin as Plugin2, PluginKey as PluginKey2 } from "prosemirror-state";
|
|
1171
|
+
function stickyHeader(header, content) {
|
|
1172
|
+
let measured = null;
|
|
1173
|
+
const cover = () => {
|
|
1174
|
+
if (measured !== null) return measured;
|
|
1175
|
+
measured = 0;
|
|
1176
|
+
queueMicrotask(() => measured = null);
|
|
1177
|
+
if (content.scrollHeight > content.clientHeight + 1) return measured;
|
|
1178
|
+
const style = getComputedStyle(header);
|
|
1179
|
+
if (style.position === "sticky" && style.display !== "none")
|
|
1180
|
+
measured = header.offsetHeight + (parseFloat(style.top) || 0);
|
|
1181
|
+
return measured;
|
|
1182
|
+
};
|
|
1183
|
+
const uncover = (view) => {
|
|
1184
|
+
if (!cover() || !view.hasFocus()) return;
|
|
1185
|
+
const box = header.getBoundingClientRect();
|
|
1186
|
+
let caret;
|
|
1187
|
+
try {
|
|
1188
|
+
caret = view.coordsAtPos(view.state.selection.head);
|
|
1189
|
+
} catch {
|
|
1190
|
+
return;
|
|
1191
|
+
}
|
|
1192
|
+
if (caret.bottom <= box.top || caret.top >= box.bottom) return;
|
|
1193
|
+
scrollerOf(header).scrollBy(0, caret.top - box.bottom - 5);
|
|
1194
|
+
};
|
|
1195
|
+
const reveal = (view) => {
|
|
1196
|
+
if (!view.dom.getClientRects().length) return;
|
|
1197
|
+
let rect;
|
|
1198
|
+
try {
|
|
1199
|
+
rect = view.coordsAtPos(view.state.selection.head);
|
|
1200
|
+
} catch {
|
|
1201
|
+
return;
|
|
1202
|
+
}
|
|
1203
|
+
if (content.scrollHeight > content.clientHeight + 1) {
|
|
1204
|
+
const box = content.getBoundingClientRect();
|
|
1205
|
+
if (rect.top < box.top + 5) content.scrollTop -= box.top + 5 - rect.top;
|
|
1206
|
+
else if (rect.bottom > box.bottom - 5) content.scrollTop += rect.bottom - box.bottom + 5;
|
|
1207
|
+
rect = view.coordsAtPos(view.state.selection.head);
|
|
1208
|
+
}
|
|
1209
|
+
const scroller = scrollerOf(content);
|
|
1210
|
+
const area = scroller instanceof HTMLElement ? scroller.getBoundingClientRect() : { top: 0, bottom: scroller.innerHeight };
|
|
1211
|
+
const top = area.top + cover() + 5;
|
|
1212
|
+
const bottom = area.bottom - 5;
|
|
1213
|
+
if (rect.top < top) scroller.scrollBy(0, rect.top - top);
|
|
1214
|
+
else if (rect.bottom > bottom) scroller.scrollBy(0, rect.bottom - bottom);
|
|
1215
|
+
};
|
|
1216
|
+
const plugin = new Plugin2({
|
|
1217
|
+
key: scrolls,
|
|
1218
|
+
// Counts the requests to scroll to the selection (tr.scrollIntoView()).
|
|
1219
|
+
state: {
|
|
1220
|
+
init: () => 0,
|
|
1221
|
+
apply: (tr, count) => tr.scrolledIntoView ? count + 1 : count
|
|
1222
|
+
},
|
|
1223
|
+
view: () => {
|
|
1224
|
+
let frame = 0;
|
|
1225
|
+
return {
|
|
1226
|
+
update(view, prev) {
|
|
1227
|
+
if (scrolls.getState(view.state) !== scrolls.getState(prev) && !view.hasFocus())
|
|
1228
|
+
reveal(view);
|
|
1229
|
+
if (view.state.selection.eq(prev.selection)) return;
|
|
1230
|
+
cancelAnimationFrame(frame);
|
|
1231
|
+
frame = requestAnimationFrame(() => uncover(view));
|
|
1232
|
+
},
|
|
1233
|
+
destroy: () => cancelAnimationFrame(frame)
|
|
1234
|
+
};
|
|
1235
|
+
}
|
|
1236
|
+
});
|
|
1237
|
+
return {
|
|
1238
|
+
plugin,
|
|
1239
|
+
props: {
|
|
1240
|
+
scrollThreshold: {
|
|
1241
|
+
left: 0,
|
|
1242
|
+
right: 0,
|
|
1243
|
+
bottom: 0,
|
|
1244
|
+
get top() {
|
|
1245
|
+
return cover();
|
|
1246
|
+
}
|
|
1247
|
+
},
|
|
1248
|
+
scrollMargin: {
|
|
1249
|
+
left: 5,
|
|
1250
|
+
right: 5,
|
|
1251
|
+
bottom: 5,
|
|
1252
|
+
get top() {
|
|
1253
|
+
return cover() + 5;
|
|
1254
|
+
}
|
|
1255
|
+
}
|
|
1256
|
+
}
|
|
1257
|
+
};
|
|
1258
|
+
}
|
|
1259
|
+
var scrolls = new PluginKey2("nova-scroll-requests");
|
|
1260
|
+
function scrollerOf(el) {
|
|
1261
|
+
for (let parent = el.parentElement; parent; parent = parent.parentElement) {
|
|
1262
|
+
const { overflowY } = getComputedStyle(parent);
|
|
1263
|
+
if (/auto|scroll|overlay/.test(overflowY) && parent.scrollHeight > parent.clientHeight + 1)
|
|
1264
|
+
return parent;
|
|
1265
|
+
}
|
|
1266
|
+
return el.ownerDocument.defaultView ?? window;
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1137
1269
|
// src/editor.ts
|
|
1138
1270
|
import { dropCursor } from "prosemirror-dropcursor";
|
|
1139
1271
|
import { gapCursor } from "prosemirror-gapcursor";
|
|
1140
1272
|
import { history } from "prosemirror-history";
|
|
1141
1273
|
import { keymap as keymap3 } from "prosemirror-keymap";
|
|
1142
1274
|
import { Node as PMNode, Slice as Slice2 } from "prosemirror-model";
|
|
1143
|
-
import { EditorState, Plugin as
|
|
1275
|
+
import { EditorState, Plugin as Plugin9 } from "prosemirror-state";
|
|
1144
1276
|
import { EditorView } from "prosemirror-view";
|
|
1145
1277
|
|
|
1146
1278
|
// src/first-click.ts
|
|
1147
|
-
import { Plugin as
|
|
1279
|
+
import { Plugin as Plugin3, Selection } from "prosemirror-state";
|
|
1148
1280
|
function browserCaret(view) {
|
|
1149
1281
|
const selection = view.dom.ownerDocument.getSelection();
|
|
1150
1282
|
const node = selection?.focusNode;
|
|
@@ -1157,7 +1289,7 @@ function browserCaret(view) {
|
|
|
1157
1289
|
}
|
|
1158
1290
|
function firstClickPlugin() {
|
|
1159
1291
|
let focusedOnMouseDown = true;
|
|
1160
|
-
return new
|
|
1292
|
+
return new Plugin3({
|
|
1161
1293
|
props: {
|
|
1162
1294
|
handleDOMEvents: {
|
|
1163
1295
|
mousedown(view) {
|
|
@@ -1186,8 +1318,8 @@ function firstClickPlugin() {
|
|
|
1186
1318
|
}
|
|
1187
1319
|
|
|
1188
1320
|
// src/announce.ts
|
|
1189
|
-
import { Plugin as
|
|
1190
|
-
var announceKey = new
|
|
1321
|
+
import { Plugin as Plugin4, PluginKey as PluginKey3 } from "prosemirror-state";
|
|
1322
|
+
var announceKey = new PluginKey3("nova-announce");
|
|
1191
1323
|
function spokenCommand(name) {
|
|
1192
1324
|
return (state, dispatch, view) => commands[name](state, dispatch && ((tr) => dispatch(tr.setMeta(announceKey, name))), view);
|
|
1193
1325
|
}
|
|
@@ -1254,7 +1386,7 @@ function describeTyped(before, after, t) {
|
|
|
1254
1386
|
return changed < 0 ? null : t(now[changed]);
|
|
1255
1387
|
}
|
|
1256
1388
|
function announcePlugin(t, say) {
|
|
1257
|
-
return new
|
|
1389
|
+
return new Plugin4({
|
|
1258
1390
|
key: announceKey,
|
|
1259
1391
|
state: {
|
|
1260
1392
|
init: () => null,
|
|
@@ -1371,7 +1503,7 @@ function codeFenceKeymap(isAllowed = () => true, schema2 = schema) {
|
|
|
1371
1503
|
}
|
|
1372
1504
|
|
|
1373
1505
|
// src/text-patterns.ts
|
|
1374
|
-
import { Plugin as
|
|
1506
|
+
import { Plugin as Plugin5, TextSelection } from "prosemirror-state";
|
|
1375
1507
|
var FORMATS = {
|
|
1376
1508
|
bold: "bold",
|
|
1377
1509
|
italic: "italic",
|
|
@@ -1473,7 +1605,7 @@ function textPatternsPlugin(editor, patterns, lookup) {
|
|
|
1473
1605
|
}
|
|
1474
1606
|
return null;
|
|
1475
1607
|
};
|
|
1476
|
-
return new
|
|
1608
|
+
return new Plugin5({
|
|
1477
1609
|
props: {
|
|
1478
1610
|
handleTextInput(view, from, to, text) {
|
|
1479
1611
|
if (text !== " " || from !== to) return false;
|
|
@@ -1662,11 +1794,11 @@ function createChain(host) {
|
|
|
1662
1794
|
}
|
|
1663
1795
|
|
|
1664
1796
|
// src/selection.ts
|
|
1665
|
-
import { AllSelection as AllSelection2, NodeSelection, Plugin as
|
|
1797
|
+
import { AllSelection as AllSelection2, NodeSelection, Plugin as Plugin6, PluginKey as PluginKey4, TextSelection as TextSelection2 } from "prosemirror-state";
|
|
1666
1798
|
var MAX_BOOKMARKS = 200;
|
|
1667
|
-
var bookmarksKey = new
|
|
1799
|
+
var bookmarksKey = new PluginKey4("nova-bookmarks");
|
|
1668
1800
|
function bookmarksPlugin() {
|
|
1669
|
-
return new
|
|
1801
|
+
return new Plugin6({
|
|
1670
1802
|
key: bookmarksKey,
|
|
1671
1803
|
state: {
|
|
1672
1804
|
init: () => /* @__PURE__ */ new Map(),
|
|
@@ -1837,10 +1969,10 @@ function createSelection(editor) {
|
|
|
1837
1969
|
}
|
|
1838
1970
|
|
|
1839
1971
|
// src/ui/context-toolbar.ts
|
|
1840
|
-
import { NodeSelection as NodeSelection2, Plugin as
|
|
1972
|
+
import { NodeSelection as NodeSelection2, Plugin as Plugin7, PluginKey as PluginKey5 } from "prosemirror-state";
|
|
1841
1973
|
function contextToolbarPlugin(editor) {
|
|
1842
|
-
return new
|
|
1843
|
-
key: new
|
|
1974
|
+
return new Plugin7({
|
|
1975
|
+
key: new PluginKey5("nova-context-toolbar"),
|
|
1844
1976
|
view(view) {
|
|
1845
1977
|
const container = h("div", {
|
|
1846
1978
|
className: "nova-bubble nova-context-toolbar",
|
|
@@ -2101,7 +2233,7 @@ var ImageView = class {
|
|
|
2101
2233
|
};
|
|
2102
2234
|
|
|
2103
2235
|
// src/ui/autocompleter.ts
|
|
2104
|
-
import { Plugin as
|
|
2236
|
+
import { Plugin as Plugin8, PluginKey as PluginKey6 } from "prosemirror-state";
|
|
2105
2237
|
var MAX_QUERY = 30;
|
|
2106
2238
|
function escapeRegExp(value) {
|
|
2107
2239
|
return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
@@ -2222,8 +2354,8 @@ function autocompleterPlugin(editor) {
|
|
|
2222
2354
|
renderItems(view);
|
|
2223
2355
|
});
|
|
2224
2356
|
};
|
|
2225
|
-
return new
|
|
2226
|
-
key: new
|
|
2357
|
+
return new Plugin8({
|
|
2358
|
+
key: new PluginKey6("nova-autocompleter"),
|
|
2227
2359
|
view(view) {
|
|
2228
2360
|
list = h("div", {
|
|
2229
2361
|
className: "nova-popover nova-ac",
|
|
@@ -3030,6 +3162,9 @@ var Editor = class {
|
|
|
3030
3162
|
header.append(menubarHost, toolbarHost);
|
|
3031
3163
|
this.root.append(header, contentHost, statusbarHost);
|
|
3032
3164
|
this.toolbarHost = toolbarHost;
|
|
3165
|
+
const stickyOffset = Number(options.toolbarStickyOffset);
|
|
3166
|
+
if (Number.isFinite(stickyOffset) && stickyOffset > 0)
|
|
3167
|
+
this.root.style.setProperty("--nova-sticky-offset", `${Math.min(stickyOffset, 1e3)}px`);
|
|
3033
3168
|
this.mode = options.mode ?? "classic";
|
|
3034
3169
|
this.root.classList.add(`nova-mode-${this.mode}`);
|
|
3035
3170
|
const distractionFree = this.mode === "distraction-free";
|
|
@@ -3106,6 +3241,7 @@ var Editor = class {
|
|
|
3106
3241
|
if (page) pages.set(this, page);
|
|
3107
3242
|
const initialDoc = parseContent(this.schema, options.content ?? "", page);
|
|
3108
3243
|
const tablesAnchor = searchPlugin();
|
|
3244
|
+
const sticky = stickyHeader(header, contentHost);
|
|
3109
3245
|
const initialPlugins = [
|
|
3110
3246
|
// First: while the list is open, Enter/Tab/arrows belong to the autocompleter, not the keymap.
|
|
3111
3247
|
autocompleterPlugin(this),
|
|
@@ -3139,6 +3275,8 @@ var Editor = class {
|
|
|
3139
3275
|
firstClickPlugin(),
|
|
3140
3276
|
// editor.selection's bookmarks move along with the changes.
|
|
3141
3277
|
bookmarksPlugin(),
|
|
3278
|
+
// The line with the caret is never left under the sticky header.
|
|
3279
|
+
sticky.plugin,
|
|
3142
3280
|
...pluginPm,
|
|
3143
3281
|
...options.prosemirrorPlugins ?? []
|
|
3144
3282
|
];
|
|
@@ -3151,14 +3289,17 @@ var Editor = class {
|
|
|
3151
3289
|
this.disabled = options.disabled ?? false;
|
|
3152
3290
|
this.pasteAsText = options.pasteAsText ?? false;
|
|
3153
3291
|
const handleTransaction = this.handleTransaction.bind(this);
|
|
3292
|
+
const contentLanguage = languageTag(options.contentLanguage);
|
|
3154
3293
|
this.view = new EditorView(contentHost, {
|
|
3155
3294
|
state,
|
|
3156
3295
|
editable: () => this.isEditable(),
|
|
3296
|
+
...sticky.props,
|
|
3157
3297
|
attributes: {
|
|
3158
3298
|
class: "nova-prosemirror",
|
|
3159
3299
|
role: "textbox",
|
|
3160
3300
|
"aria-multiline": "true",
|
|
3161
3301
|
"aria-label": this.ui.t("editor.label"),
|
|
3302
|
+
...contentLanguage ? { lang: contentLanguage } : {},
|
|
3162
3303
|
// The visible placeholder is CSS generated content with empty alternative text (style.css);
|
|
3163
3304
|
// screen readers get it as aria-placeholder, not as text inside the document.
|
|
3164
3305
|
...options.placeholder ? { "data-placeholder": options.placeholder, "aria-placeholder": options.placeholder } : {}
|
|
@@ -3283,7 +3424,7 @@ var Editor = class {
|
|
|
3283
3424
|
const nodeViews = Object.fromEntries(
|
|
3284
3425
|
Object.entries(plugin.nodeViews).map(([name, factory]) => [name, factory(this)])
|
|
3285
3426
|
);
|
|
3286
|
-
pm.push(new
|
|
3427
|
+
pm.push(new Plugin9({ props: { nodeViews } }));
|
|
3287
3428
|
}
|
|
3288
3429
|
return pm;
|
|
3289
3430
|
} catch (error) {
|
|
@@ -3506,10 +3647,14 @@ var Editor = class {
|
|
|
3506
3647
|
}
|
|
3507
3648
|
/** The find and replace bar, loaded once (a separate chunk: the first load stays smaller). */
|
|
3508
3649
|
loadSearchBar() {
|
|
3509
|
-
this.searchBarLoad ??= import("./search-bar-
|
|
3650
|
+
this.searchBarLoad ??= import("./search-bar-6MVRMTK6.js").then(
|
|
3510
3651
|
({ createSearchBar }) => {
|
|
3511
3652
|
if (this.destroyed) return null;
|
|
3512
|
-
|
|
3653
|
+
const header = this.toolbarHost.parentElement;
|
|
3654
|
+
this.searchBar = createSearchBar(
|
|
3655
|
+
this,
|
|
3656
|
+
(bar) => header ? header.append(bar) : this.contentHost.before(bar)
|
|
3657
|
+
);
|
|
3513
3658
|
return this.searchBar;
|
|
3514
3659
|
},
|
|
3515
3660
|
(error) => {
|
|
@@ -3639,4 +3784,4 @@ export {
|
|
|
3639
3784
|
parseContent,
|
|
3640
3785
|
createEditor
|
|
3641
3786
|
};
|
|
3642
|
-
//# sourceMappingURL=chunk-
|
|
3787
|
+
//# sourceMappingURL=chunk-RJ7T56OH.js.map
|