@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
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { E as Editor, N as NovaSchema } from './editor-
|
|
2
|
-
export { A as AccordionOptions, b as AccordionState, c as AdvCodeOptions, d as AdvTableOptions, e as AiAction, f as AiMessage, g as AiOptions, h as AiRequest, i as AiShortcut, j as AutocompleterItem, k as AutocompleterSpec, l as AutocorrectCorrection, m as AutocorrectOptions, n as AutosaveOptions, B as BlockFormat, o as BlockPattern, p as BlockTag, q as ButtonSpec, C as ChainCommandName, r as ClassFilter, s as ClassOption, t as CodeGrammarLoader, u as CodeLanguage, v as CodeSampleOptions, w as CommandChain, x as CommandName, y as Comment, z as CommentAuthor, D as CommentStore, F as CommentThread, G as CommentsController, H as CommentsOptions, I as
|
|
3
|
-
export { D as DocumentOptions, a as DocumentRenderer, c as createRenderer, r as renderHTML } from './document-
|
|
1
|
+
import { E as Editor, N as NovaSchema } from './editor-S8w_w5W0.cjs';
|
|
2
|
+
export { A as AccordionOptions, b as AccordionState, c as AdvCodeOptions, d as AdvTableOptions, e as AiAction, f as AiMessage, g as AiOptions, h as AiRequest, i as AiShortcut, j as AutocompleterItem, k as AutocompleterSpec, l as AutocorrectCorrection, m as AutocorrectOptions, n as AutosaveOptions, B as BlockFormat, o as BlockPattern, p as BlockTag, q as ButtonSpec, C as ChainCommandName, r as ClassFilter, s as ClassOption, t as CodeGrammarLoader, u as CodeLanguage, v as CodeSampleOptions, w as CommandChain, x as CommandName, y as Comment, z as CommentAuthor, D as CommentStore, F as CommentThread, G as CommentsController, H as CommentsOptions, I as ContentLanguage, J as ContextToolbarSpec, K as ControlSpec, L as CorrectionKind, M as DEFAULT_MENUBAR, O as DEFAULT_MENUS, Q as DialogApi, R as DialogData, S as DialogField, T as DialogFieldValue, U as DialogSpec, V as EditImageOptions, W as EditorEvent, X as EditorEventDetails, Y as EditorListener, Z as EditorMode, _ as EditorOptions, $ as EditorSelection, a0 as EmbedInfo, a1 as ExportPdfOptions, a2 as ExportWordOptions, a3 as FilePickResult, a4 as FilePickType, a5 as FilePicker, a6 as FontOption, a7 as FormatSpec, a8 as Formatter, a9 as FullPageHtmlOptions, aa as HeadElement, ab as ImageAlign, ac as InlinePattern, ad as InlineTag, ae as LinkCheckerOptions, af as LinkStatus, ag as MarkName, ah as MediaEmbedOptions, ai as MentionUser, aj as MentionsOptions, ak as MenuButtonSpec, al as MenuDefinition, am as MenuEntry, an as MenuItem, ao as MenuItemSpec, ap as MergeTag, aq as MergeTagGroup, ar as MergeTagsOptions, as as NodeName, at as NodeViewFactory, au as NodeViewOptions, av as NodeViewProps, aw as NodeViewRenderer, ax as NotificationAction, ay as NotificationHandle, az as NotificationOptions, aA as NovaPlugin, aB as PAGE_SIZES, aC as PageBand, aD as PageBandParts, aE as PageData, aF as PageEmbedOptions, aG as PageEmbedSize, aH as PageHandler, a as PageLayout, aI as PageLayoutController, P as PageLayoutOptions, aJ as PageMargins, aK as PageSizeName, aL as PanelButtonSpec, aM as PasteOptions, aN as PdfRequest, aO as PluginEntry, aP as PluginOptions, aQ as QuickbarsOptions, aR as REMOTE_CHANGE_META, aS as Registry, aT as ReplacementPattern, aU as Revision, aV as RevisionHistoryOptions, aW as SchemaExtensions, aX as SelectionBookmark, aY as SidebarSpec, aZ as Sidebars, a_ as SlashCommand, a$ as StyleFormat, b0 as TableOfContentsOptions, b1 as TableSeries, b2 as TextAlign, b3 as TextPattern, b4 as TextPatternCommand, b5 as TextPatternContext, b6 as ToolbarConfig, b7 as ToolbarMode, b8 as TypographyOptions, b9 as TypographyRule, ba as UiManager, bb as UploadImageHandler, bc as ViewApi, bd as ViewButton, be as ViewSpec, bf as Views, bg as commands, bh as createCommentStore, bi as createEditor, bj as createSchema, bk as defaultFontFamilies, bl as defaultFontSizes, bm as defaultLineHeights, bn as defaultSlashCommands, bo as defaultToolbar, bp as defineNodeView, bq as definePlugin, br as getActiveAlign, bs as getComments, bt as getLinkAt, bu as getMentions, bv as getSelectedImage, bw as getTextLanguage, bx as htmlToPlainText, by as insertImage, bz as isCommandActive, bA as isMarkActive, bB as isNodeActive, bC as isPluginRegistered, bD as marksOf, bE as nodesOf, bF as openImageAltDialog, bG as openImageDialog, bH as pageLayout, bI as registerPlugin, bJ as sanitizeThread, bK as schema, bL as setImageAttrs, bM as setImageWidthFraction, bN as setLink, bO as setTextLanguage, bP as uploadImages } from './editor-S8w_w5W0.cjs';
|
|
3
|
+
export { D as DocumentOptions, a as DocumentRenderer, c as createRenderer, r as renderHTML } from './document-B0hLRhuH.cjs';
|
|
4
4
|
import { Schema, DOMParser, Node, Fragment } from 'prosemirror-model';
|
|
5
5
|
import { EditorState, Command, Transaction } from 'prosemirror-state';
|
|
6
|
-
export { a as LanguageLoader, L as LanguagePack, M as MessageKey, b as Messages, P as PluginMessageKey, T as Translator, e as en, g as getPluginMessages, h as hasLanguage, l as loadLanguage, r as registerLanguage } from './index-
|
|
6
|
+
export { a as LanguageLoader, L as LanguagePack, M as MessageKey, b as Messages, P as PluginMessageKey, T as Translator, e as en, g as getPluginMessages, h as hasLanguage, l as loadLanguage, r as registerLanguage } from './index-Pb2r0V-S.cjs';
|
|
7
7
|
export { H as HtmlRulesInstance, b as HtmlRulesModule, a as HtmlRulesOptions, S as SchemaSpecs, r as registerHtmlRules } from './html-rules-api-BLDDW9MO.cjs';
|
|
8
8
|
import './a11y.cjs';
|
|
9
9
|
import 'prosemirror-view';
|
|
@@ -299,6 +299,7 @@ declare const icons: {
|
|
|
299
299
|
textColor: string;
|
|
300
300
|
highlight: string;
|
|
301
301
|
lineHeight: string;
|
|
302
|
+
language: string;
|
|
302
303
|
upload: string;
|
|
303
304
|
externalLink: string;
|
|
304
305
|
copy: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { E as Editor, N as NovaSchema } from './editor-
|
|
2
|
-
export { A as AccordionOptions, b as AccordionState, c as AdvCodeOptions, d as AdvTableOptions, e as AiAction, f as AiMessage, g as AiOptions, h as AiRequest, i as AiShortcut, j as AutocompleterItem, k as AutocompleterSpec, l as AutocorrectCorrection, m as AutocorrectOptions, n as AutosaveOptions, B as BlockFormat, o as BlockPattern, p as BlockTag, q as ButtonSpec, C as ChainCommandName, r as ClassFilter, s as ClassOption, t as CodeGrammarLoader, u as CodeLanguage, v as CodeSampleOptions, w as CommandChain, x as CommandName, y as Comment, z as CommentAuthor, D as CommentStore, F as CommentThread, G as CommentsController, H as CommentsOptions, I as
|
|
3
|
-
export { D as DocumentOptions, a as DocumentRenderer, c as createRenderer, r as renderHTML } from './document-
|
|
1
|
+
import { E as Editor, N as NovaSchema } from './editor-DnAN9aPd.js';
|
|
2
|
+
export { A as AccordionOptions, b as AccordionState, c as AdvCodeOptions, d as AdvTableOptions, e as AiAction, f as AiMessage, g as AiOptions, h as AiRequest, i as AiShortcut, j as AutocompleterItem, k as AutocompleterSpec, l as AutocorrectCorrection, m as AutocorrectOptions, n as AutosaveOptions, B as BlockFormat, o as BlockPattern, p as BlockTag, q as ButtonSpec, C as ChainCommandName, r as ClassFilter, s as ClassOption, t as CodeGrammarLoader, u as CodeLanguage, v as CodeSampleOptions, w as CommandChain, x as CommandName, y as Comment, z as CommentAuthor, D as CommentStore, F as CommentThread, G as CommentsController, H as CommentsOptions, I as ContentLanguage, J as ContextToolbarSpec, K as ControlSpec, L as CorrectionKind, M as DEFAULT_MENUBAR, O as DEFAULT_MENUS, Q as DialogApi, R as DialogData, S as DialogField, T as DialogFieldValue, U as DialogSpec, V as EditImageOptions, W as EditorEvent, X as EditorEventDetails, Y as EditorListener, Z as EditorMode, _ as EditorOptions, $ as EditorSelection, a0 as EmbedInfo, a1 as ExportPdfOptions, a2 as ExportWordOptions, a3 as FilePickResult, a4 as FilePickType, a5 as FilePicker, a6 as FontOption, a7 as FormatSpec, a8 as Formatter, a9 as FullPageHtmlOptions, aa as HeadElement, ab as ImageAlign, ac as InlinePattern, ad as InlineTag, ae as LinkCheckerOptions, af as LinkStatus, ag as MarkName, ah as MediaEmbedOptions, ai as MentionUser, aj as MentionsOptions, ak as MenuButtonSpec, al as MenuDefinition, am as MenuEntry, an as MenuItem, ao as MenuItemSpec, ap as MergeTag, aq as MergeTagGroup, ar as MergeTagsOptions, as as NodeName, at as NodeViewFactory, au as NodeViewOptions, av as NodeViewProps, aw as NodeViewRenderer, ax as NotificationAction, ay as NotificationHandle, az as NotificationOptions, aA as NovaPlugin, aB as PAGE_SIZES, aC as PageBand, aD as PageBandParts, aE as PageData, aF as PageEmbedOptions, aG as PageEmbedSize, aH as PageHandler, a as PageLayout, aI as PageLayoutController, P as PageLayoutOptions, aJ as PageMargins, aK as PageSizeName, aL as PanelButtonSpec, aM as PasteOptions, aN as PdfRequest, aO as PluginEntry, aP as PluginOptions, aQ as QuickbarsOptions, aR as REMOTE_CHANGE_META, aS as Registry, aT as ReplacementPattern, aU as Revision, aV as RevisionHistoryOptions, aW as SchemaExtensions, aX as SelectionBookmark, aY as SidebarSpec, aZ as Sidebars, a_ as SlashCommand, a$ as StyleFormat, b0 as TableOfContentsOptions, b1 as TableSeries, b2 as TextAlign, b3 as TextPattern, b4 as TextPatternCommand, b5 as TextPatternContext, b6 as ToolbarConfig, b7 as ToolbarMode, b8 as TypographyOptions, b9 as TypographyRule, ba as UiManager, bb as UploadImageHandler, bc as ViewApi, bd as ViewButton, be as ViewSpec, bf as Views, bg as commands, bh as createCommentStore, bi as createEditor, bj as createSchema, bk as defaultFontFamilies, bl as defaultFontSizes, bm as defaultLineHeights, bn as defaultSlashCommands, bo as defaultToolbar, bp as defineNodeView, bq as definePlugin, br as getActiveAlign, bs as getComments, bt as getLinkAt, bu as getMentions, bv as getSelectedImage, bw as getTextLanguage, bx as htmlToPlainText, by as insertImage, bz as isCommandActive, bA as isMarkActive, bB as isNodeActive, bC as isPluginRegistered, bD as marksOf, bE as nodesOf, bF as openImageAltDialog, bG as openImageDialog, bH as pageLayout, bI as registerPlugin, bJ as sanitizeThread, bK as schema, bL as setImageAttrs, bM as setImageWidthFraction, bN as setLink, bO as setTextLanguage, bP as uploadImages } from './editor-DnAN9aPd.js';
|
|
3
|
+
export { D as DocumentOptions, a as DocumentRenderer, c as createRenderer, r as renderHTML } from './document-Dh-jz1SK.js';
|
|
4
4
|
import { Schema, DOMParser, Node, Fragment } from 'prosemirror-model';
|
|
5
5
|
import { EditorState, Command, Transaction } from 'prosemirror-state';
|
|
6
|
-
export { a as LanguageLoader, L as LanguagePack, M as MessageKey, b as Messages, P as PluginMessageKey, T as Translator, e as en, g as getPluginMessages, h as hasLanguage, l as loadLanguage, r as registerLanguage } from './index-
|
|
6
|
+
export { a as LanguageLoader, L as LanguagePack, M as MessageKey, b as Messages, P as PluginMessageKey, T as Translator, e as en, g as getPluginMessages, h as hasLanguage, l as loadLanguage, r as registerLanguage } from './index-Pb2r0V-S.js';
|
|
7
7
|
export { H as HtmlRulesInstance, b as HtmlRulesModule, a as HtmlRulesOptions, S as SchemaSpecs, r as registerHtmlRules } from './html-rules-api-BLDDW9MO.js';
|
|
8
8
|
import './a11y.js';
|
|
9
9
|
import 'prosemirror-view';
|
|
@@ -299,6 +299,7 @@ declare const icons: {
|
|
|
299
299
|
textColor: string;
|
|
300
300
|
highlight: string;
|
|
301
301
|
lineHeight: string;
|
|
302
|
+
language: string;
|
|
302
303
|
upload: string;
|
|
303
304
|
externalLink: string;
|
|
304
305
|
copy: string;
|
package/dist/index.js
CHANGED
|
@@ -12,12 +12,12 @@ import {
|
|
|
12
12
|
defaultToolbar,
|
|
13
13
|
htmlToPlainText,
|
|
14
14
|
printContent
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-RJ7T56OH.js";
|
|
16
|
+
import "./chunk-YP7N47QR.js";
|
|
17
|
+
import "./chunk-KW6ATQPN.js";
|
|
18
18
|
import {
|
|
19
19
|
parserFor
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-KGEHUWGL.js";
|
|
21
21
|
import "./chunk-GTLE2HEW.js";
|
|
22
22
|
import {
|
|
23
23
|
clearSearch,
|
|
@@ -37,13 +37,13 @@ import {
|
|
|
37
37
|
getStyle,
|
|
38
38
|
setLineHeight,
|
|
39
39
|
setStyle
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-FNJ7AEJK.js";
|
|
41
41
|
import {
|
|
42
42
|
applyLink,
|
|
43
43
|
normalizeUrl,
|
|
44
44
|
openLinkDialog,
|
|
45
45
|
removeLink
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-SNVYHGGO.js";
|
|
47
47
|
import {
|
|
48
48
|
getSelectedImage,
|
|
49
49
|
openImageAltDialog,
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
setImageAttrs,
|
|
52
52
|
setImageWidthFraction,
|
|
53
53
|
uploadImages
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-YYCDRUE2.js";
|
|
55
55
|
import {
|
|
56
56
|
createTable,
|
|
57
57
|
hasHeaderColumn,
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
insertTable,
|
|
60
60
|
setCellBackground,
|
|
61
61
|
tableCommands
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-RPHA4HRX.js";
|
|
63
63
|
import "./chunk-ANE5ASXG.js";
|
|
64
64
|
import {
|
|
65
65
|
formatHTML,
|
|
@@ -69,49 +69,49 @@ import {
|
|
|
69
69
|
openSourceCode,
|
|
70
70
|
toggleFullscreen
|
|
71
71
|
} from "./chunk-23ZLVT5D.js";
|
|
72
|
-
import "./chunk-
|
|
73
|
-
import "./chunk-
|
|
74
|
-
import "./chunk-
|
|
75
|
-
import "./chunk-
|
|
72
|
+
import "./chunk-DV7TGRU6.js";
|
|
73
|
+
import "./chunk-AB67XUSR.js";
|
|
74
|
+
import "./chunk-BMCH63QN.js";
|
|
75
|
+
import "./chunk-QWT56RVG.js";
|
|
76
76
|
import {
|
|
77
77
|
Formatter,
|
|
78
78
|
createRenderer,
|
|
79
79
|
renderHTML
|
|
80
|
-
} from "./chunk-
|
|
81
|
-
import "./chunk-
|
|
82
|
-
import "./chunk-
|
|
83
|
-
import "./chunk-
|
|
80
|
+
} from "./chunk-3KBQEAX2.js";
|
|
81
|
+
import "./chunk-IFSD6O5M.js";
|
|
82
|
+
import "./chunk-NX3KWIP5.js";
|
|
83
|
+
import "./chunk-3NNILZVB.js";
|
|
84
84
|
import {
|
|
85
85
|
HTMLSerializer
|
|
86
86
|
} from "./chunk-53AY5NAF.js";
|
|
87
87
|
import {
|
|
88
88
|
PAGE_SIZES,
|
|
89
89
|
pageLayout
|
|
90
|
-
} from "./chunk-
|
|
91
|
-
import "./chunk-
|
|
92
|
-
import "./chunk-
|
|
90
|
+
} from "./chunk-DCMPJ25E.js";
|
|
91
|
+
import "./chunk-K4LFGNS7.js";
|
|
92
|
+
import "./chunk-GUZCRDK6.js";
|
|
93
93
|
import {
|
|
94
94
|
getComments
|
|
95
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-YOTA26H7.js";
|
|
96
96
|
import {
|
|
97
97
|
isSuggesting,
|
|
98
98
|
listSuggestions,
|
|
99
99
|
resolveSuggestions,
|
|
100
100
|
setSuggesting,
|
|
101
101
|
suggestionsResult
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-HSVNJGK3.js";
|
|
103
103
|
import "./chunk-OQMMHWMZ.js";
|
|
104
104
|
import {
|
|
105
105
|
getMentions
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-T4543CB2.js";
|
|
107
107
|
import {
|
|
108
108
|
createCommentStore,
|
|
109
109
|
sanitizeThread
|
|
110
110
|
} from "./chunk-AP2PJFLB.js";
|
|
111
|
-
import "./chunk-
|
|
112
|
-
import "./chunk-
|
|
113
|
-
import "./chunk-
|
|
114
|
-
import "./chunk-
|
|
111
|
+
import "./chunk-ARBKIZZU.js";
|
|
112
|
+
import "./chunk-Y2OXWCM7.js";
|
|
113
|
+
import "./chunk-F2WT77ZG.js";
|
|
114
|
+
import "./chunk-BUABAYZL.js";
|
|
115
115
|
import {
|
|
116
116
|
commands,
|
|
117
117
|
getActiveAlign,
|
|
@@ -123,24 +123,26 @@ import {
|
|
|
123
123
|
marksOf,
|
|
124
124
|
nodesOf,
|
|
125
125
|
setLink
|
|
126
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-UHUOAQA6.js";
|
|
127
127
|
import "./chunk-HNEAVVBC.js";
|
|
128
128
|
import {
|
|
129
129
|
createSchema,
|
|
130
|
+
getTextLanguage,
|
|
130
131
|
isInTable,
|
|
131
|
-
schema
|
|
132
|
-
|
|
132
|
+
schema,
|
|
133
|
+
setTextLanguage
|
|
134
|
+
} from "./chunk-6BJEOL5V.js";
|
|
133
135
|
import "./chunk-XR7CY4NI.js";
|
|
134
136
|
import {
|
|
135
137
|
icons
|
|
136
|
-
} from "./chunk-
|
|
138
|
+
} from "./chunk-5KERLFDD.js";
|
|
137
139
|
import {
|
|
138
140
|
en,
|
|
139
141
|
getPluginMessages,
|
|
140
142
|
hasLanguage,
|
|
141
143
|
loadLanguage,
|
|
142
144
|
registerLanguage
|
|
143
|
-
} from "./chunk-
|
|
145
|
+
} from "./chunk-XCXJD5DO.js";
|
|
144
146
|
import {
|
|
145
147
|
definePlugin,
|
|
146
148
|
isPluginRegistered,
|
|
@@ -305,6 +307,7 @@ export {
|
|
|
305
307
|
getSearchState,
|
|
306
308
|
getSelectedImage,
|
|
307
309
|
getStyle,
|
|
310
|
+
getTextLanguage,
|
|
308
311
|
hasHeaderColumn,
|
|
309
312
|
hasHeaderRow,
|
|
310
313
|
hasLanguage,
|
|
@@ -354,6 +357,7 @@ export {
|
|
|
354
357
|
setSearch,
|
|
355
358
|
setStyle,
|
|
356
359
|
setSuggesting,
|
|
360
|
+
setTextLanguage,
|
|
357
361
|
suggestionsResult,
|
|
358
362
|
tableCommands,
|
|
359
363
|
toggleFullscreen,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/node-view.ts"],"sourcesContent":["import type { Node as PMNode } from 'prosemirror-model';\nimport type {\n EditorView,\n NodeView,\n NodeViewConstructor,\n ViewMutationRecord,\n} from 'prosemirror-view';\nimport type { Editor } from './editor';\n\n/**\n * A node drawn by your own code — a React or Vue component, or plain DOM. The core takes care of\n * ProseMirror (editable content, selection, mutations, events); the renderer only draws markup:\n *\n * nodeViews: { callout: defineNodeView(() => ({ mount(dom, props) {…}, update(props) {…}, destroy() {…} })) }\n *\n * The framework wrappers provide ready renderers: reactNodeView(Component), vueNodeView(Component).\n * A view doesn't change the document's HTML: getHTML() and the server use the schema's toDOM.\n */\n\nexport interface NodeViewProps {\n editor: Editor;\n /** The document node: `node.attrs`, `node.type.name`, `node.textContent`. */\n node: PMNode;\n /** The whole node is selected (a click on a node without content, or a selection around it). */\n selected: boolean;\n /** The node's position in the document; undefined when the node is already gone. */\n getPos(): number | undefined;\n /** Change the node's attributes — one edit, undone with Ctrl+Z. */\n updateAttributes(attrs: Record<string, unknown>): void;\n /** Delete the node. */\n deleteNode(): void;\n /**\n * The element of the editable content (for nodes with content, null otherwise). The renderer puts\n * it in its place in the markup (the NodeViewContent component); until then it sits in the view's root.\n */\n contentDOM: HTMLElement | null;\n}\n\nexport interface NodeViewRenderer {\n /** Draw the view in the dom element (already created; the editor inserts it into the document). */\n mount(dom: HTMLElement, props: NodeViewProps): void;\n /** The node, its attributes or the selection changed. */\n update(props: NodeViewProps): void;\n /** The node left the document (or the editor was destroyed). */\n destroy(): void;\n}\n\nexport interface NodeViewOptions {\n /** Tag of the view's root: div by default, span for inline nodes. */\n as?: string;\n /** Tag of the content element: the same as the root's by default. */\n contentAs?: string;\n /** Class of the view's root. */\n className?: string;\n /**\n * Whether the view takes an event away from the editor. By default it takes events of the view's\n * inputs, lists and buttons (outside the content), so typing in them doesn't reach the document.\n */\n stopEvent?: (event: Event) => boolean;\n}\n\n/** A view factory for NovaPlugin.nodeViews: the core calls it with its editor. */\nexport type NodeViewFactory = (editor: Editor) => NodeViewConstructor;\n\n/** The view's own controls: the editor doesn't need their events. */\nconst CONTROLS = 'input, textarea, select, button, label, [data-node-view-control]';\n\nfunction report(message: string, error: unknown): void {\n console.error(`[nova] ${message}`, error);\n}\n\nclass RenderedNodeView implements NodeView {\n readonly dom: HTMLElement;\n readonly contentDOM: HTMLElement | null;\n private selected = false;\n private readonly renderer: NodeViewRenderer | null = null;\n\n constructor(\n private node: PMNode,\n private readonly view: EditorView,\n private readonly getPos: () => number | undefined,\n private readonly editor: Editor,\n create: (editor: Editor) => NodeViewRenderer,\n private readonly options: NodeViewOptions,\n ) {\n const tag = options.as ?? (node.isInline ? 'span' : 'div');\n this.dom = document.createElement(tag);\n this.dom.setAttribute('data-node-view', node.type.name);\n if (options.className) this.dom.className = options.className;\n this.contentDOM = node.isLeaf ? null : document.createElement(options.contentAs ?? tag);\n // Before the first render the content sits right in the root: ProseMirror expects it inside dom.\n if (this.contentDOM) this.dom.append(this.contentDOM);\n try {\n this.renderer = create(editor);\n this.renderer.mount(this.dom, this.props());\n } catch (error) {\n // A renderer failure doesn't break the editor: the node stays editable, without its own markup.\n report(`Node view for \"${node.type.name}\" failed to render`, error);\n }\n }\n\n private props(): NodeViewProps {\n return {\n editor: this.editor,\n node: this.node,\n selected: this.selected,\n getPos: () => this.getPos(),\n updateAttributes: (attrs) => this.updateAttributes(attrs),\n deleteNode: () => this.deleteNode(),\n contentDOM: this.contentDOM,\n };\n }\n\n private render(): void {\n try {\n this.renderer?.update(this.props());\n } catch (error) {\n report(`Node view for \"${this.node.type.name}\" failed to update`, error);\n }\n }\n\n private current(): { pos: number; node: PMNode } | null {\n const pos = this.getPos();\n const node = pos === undefined ? null : this.view.state.doc.nodeAt(pos);\n return node && pos !== undefined ? { pos, node } : null;\n }\n\n private updateAttributes(attrs: Record<string, unknown>): void {\n const target = this.current();\n if (!target) return;\n const { tr } = this.view.state;\n this.view.dispatch(tr.setNodeMarkup(target.pos, undefined, { ...target.node.attrs, ...attrs }));\n }\n\n private deleteNode(): void {\n const target = this.current();\n if (!target) return;\n this.view.dispatch(this.view.state.tr.delete(target.pos, target.pos + target.node.nodeSize));\n }\n\n update(node: PMNode): boolean {\n if (node.type !== this.node.type) return false;\n if (node === this.node) return true;\n this.node = node;\n this.render();\n return true;\n }\n\n selectNode(): void {\n this.selected = true;\n this.dom.classList.add('ProseMirror-selectednode');\n this.render();\n }\n\n deselectNode(): void {\n this.selected = false;\n this.dom.classList.remove('ProseMirror-selectednode');\n this.render();\n }\n\n stopEvent(event: Event): boolean {\n if (this.options.stopEvent) return this.options.stopEvent(event);\n const target = event.target;\n if (!(target instanceof Element) || this.contentDOM?.contains(target)) return false;\n // Drag and drop and paste are the editor's business; clicks and typing in the view's own fields aren't.\n if (event.type.startsWith('drag') || event.type === 'drop') return false;\n const control = target.closest(CONTROLS);\n return !!control && this.dom.contains(control);\n }\n\n ignoreMutation(mutation: ViewMutationRecord): boolean {\n // A node without content: everything inside is the renderer's markup, the editor has nothing to read.\n if (!this.contentDOM) return true;\n // Its own markup around the content (and moving contentDOM itself into it) isn't a document edit.\n if (mutation.target === this.contentDOM && mutation.type === 'attributes') return true;\n return !this.contentDOM.contains(mutation.target);\n }\n\n destroy(): void {\n try {\n this.renderer?.destroy();\n } catch (error) {\n report(`Node view for \"${this.node.type.name}\" failed to clean up`, error);\n }\n }\n}\n\n/** A node view from your own renderer (React, Vue, DOM): `create` is called for each node. */\nexport function defineNodeView(\n create: (editor: Editor) => NodeViewRenderer,\n options: NodeViewOptions = {},\n): NodeViewFactory {\n return (editor) => (node, view, getPos) =>\n new RenderedNodeView(node, view, getPos, editor, create, options);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiEA,IAAM,WAAW;AAEjB,SAAS,OAAO,SAAiB,OAAsB;AACrD,UAAQ,MAAM,UAAU,OAAO,IAAI,KAAK;AAC1C;AAEA,IAAM,mBAAN,MAA2C;AAAA,EAMzC,YACU,MACS,MACA,QACA,QACjB,QACiB,SACjB;AANQ;AACS;AACA;AACA;AAEA;AAEjB,UAAM,MAAM,QAAQ,OAAO,KAAK,WAAW,SAAS;AACpD,SAAK,MAAM,SAAS,cAAc,GAAG;AACrC,SAAK,IAAI,aAAa,kBAAkB,KAAK,KAAK,IAAI;AACtD,QAAI,QAAQ,UAAW,MAAK,IAAI,YAAY,QAAQ;AACpD,SAAK,aAAa,KAAK,SAAS,OAAO,SAAS,cAAc,QAAQ,aAAa,GAAG;AAEtF,QAAI,KAAK,WAAY,MAAK,IAAI,OAAO,KAAK,UAAU;AACpD,QAAI;AACF,WAAK,WAAW,OAAO,MAAM;AAC7B,WAAK,SAAS,MAAM,KAAK,KAAK,KAAK,MAAM,CAAC;AAAA,IAC5C,SAAS,OAAO;AAEd,aAAO,kBAAkB,KAAK,KAAK,IAAI,sBAAsB,KAAK;AAAA,IACpE;AAAA,EACF;AAAA,EArBU;AA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-view.ts"],"sourcesContent":["import type { Node as PMNode } from 'prosemirror-model';\nimport type {\n EditorView,\n NodeView,\n NodeViewConstructor,\n ViewMutationRecord,\n} from 'prosemirror-view';\nimport type { Editor } from './editor';\n\n/**\n * A node drawn by your own code — a React or Vue component, or plain DOM. The core takes care of\n * ProseMirror (editable content, selection, mutations, events); the renderer only draws markup:\n *\n * nodeViews: { callout: defineNodeView(() => ({ mount(dom, props) {…}, update(props) {…}, destroy() {…} })) }\n *\n * The framework wrappers provide ready renderers: reactNodeView(Component), vueNodeView(Component).\n * A view doesn't change the document's HTML: getHTML() and the server use the schema's toDOM.\n */\n\nexport interface NodeViewProps {\n editor: Editor;\n /** The document node: `node.attrs`, `node.type.name`, `node.textContent`. */\n node: PMNode;\n /** The whole node is selected (a click on a node without content, or a selection around it). */\n selected: boolean;\n /** The node's position in the document; undefined when the node is already gone. */\n getPos(): number | undefined;\n /** Change the node's attributes — one edit, undone with Ctrl+Z. */\n updateAttributes(attrs: Record<string, unknown>): void;\n /** Delete the node. */\n deleteNode(): void;\n /**\n * The element of the editable content (for nodes with content, null otherwise). The renderer puts\n * it in its place in the markup (the NodeViewContent component); until then it sits in the view's root.\n */\n contentDOM: HTMLElement | null;\n}\n\nexport interface NodeViewRenderer {\n /** Draw the view in the dom element (already created; the editor inserts it into the document). */\n mount(dom: HTMLElement, props: NodeViewProps): void;\n /** The node, its attributes or the selection changed. */\n update(props: NodeViewProps): void;\n /** The node left the document (or the editor was destroyed). */\n destroy(): void;\n}\n\nexport interface NodeViewOptions {\n /** Tag of the view's root: div by default, span for inline nodes. */\n as?: string;\n /** Tag of the content element: the same as the root's by default. */\n contentAs?: string;\n /** Class of the view's root. */\n className?: string;\n /**\n * Whether the view takes an event away from the editor. By default it takes events of the view's\n * inputs, lists and buttons (outside the content), so typing in them doesn't reach the document.\n */\n stopEvent?: (event: Event) => boolean;\n}\n\n/** A view factory for NovaPlugin.nodeViews: the core calls it with its editor. */\nexport type NodeViewFactory = (editor: Editor) => NodeViewConstructor;\n\n/** The view's own controls: the editor doesn't need their events. */\nconst CONTROLS = 'input, textarea, select, button, label, [data-node-view-control]';\n\nfunction report(message: string, error: unknown): void {\n console.error(`[nova] ${message}`, error);\n}\n\nclass RenderedNodeView implements NodeView {\n readonly dom: HTMLElement;\n readonly contentDOM: HTMLElement | null;\n private selected = false;\n private readonly renderer: NodeViewRenderer | null = null;\n\n constructor(\n private node: PMNode,\n private readonly view: EditorView,\n private readonly getPos: () => number | undefined,\n private readonly editor: Editor,\n create: (editor: Editor) => NodeViewRenderer,\n private readonly options: NodeViewOptions,\n ) {\n const tag = options.as ?? (node.isInline ? 'span' : 'div');\n this.dom = document.createElement(tag);\n this.dom.setAttribute('data-node-view', node.type.name);\n if (options.className) this.dom.className = options.className;\n this.contentDOM = node.isLeaf ? null : document.createElement(options.contentAs ?? tag);\n // Before the first render the content sits right in the root: ProseMirror expects it inside dom.\n if (this.contentDOM) this.dom.append(this.contentDOM);\n try {\n this.renderer = create(editor);\n this.renderer.mount(this.dom, this.props());\n } catch (error) {\n // A renderer failure doesn't break the editor: the node stays editable, without its own markup.\n report(`Node view for \"${node.type.name}\" failed to render`, error);\n }\n }\n\n private props(): NodeViewProps {\n return {\n editor: this.editor,\n node: this.node,\n selected: this.selected,\n getPos: () => this.getPos(),\n updateAttributes: (attrs) => this.updateAttributes(attrs),\n deleteNode: () => this.deleteNode(),\n contentDOM: this.contentDOM,\n };\n }\n\n private render(): void {\n try {\n this.renderer?.update(this.props());\n } catch (error) {\n report(`Node view for \"${this.node.type.name}\" failed to update`, error);\n }\n }\n\n private current(): { pos: number; node: PMNode } | null {\n const pos = this.getPos();\n const node = pos === undefined ? null : this.view.state.doc.nodeAt(pos);\n return node && pos !== undefined ? { pos, node } : null;\n }\n\n private updateAttributes(attrs: Record<string, unknown>): void {\n const target = this.current();\n if (!target) return;\n const { tr } = this.view.state;\n this.view.dispatch(tr.setNodeMarkup(target.pos, undefined, { ...target.node.attrs, ...attrs }));\n }\n\n private deleteNode(): void {\n const target = this.current();\n if (!target) return;\n this.view.dispatch(this.view.state.tr.delete(target.pos, target.pos + target.node.nodeSize));\n }\n\n update(node: PMNode): boolean {\n if (node.type !== this.node.type) return false;\n if (node === this.node) return true;\n this.node = node;\n this.render();\n return true;\n }\n\n selectNode(): void {\n this.selected = true;\n this.dom.classList.add('ProseMirror-selectednode');\n this.render();\n }\n\n deselectNode(): void {\n this.selected = false;\n this.dom.classList.remove('ProseMirror-selectednode');\n this.render();\n }\n\n stopEvent(event: Event): boolean {\n if (this.options.stopEvent) return this.options.stopEvent(event);\n const target = event.target;\n if (!(target instanceof Element) || this.contentDOM?.contains(target)) return false;\n // Drag and drop and paste are the editor's business; clicks and typing in the view's own fields aren't.\n if (event.type.startsWith('drag') || event.type === 'drop') return false;\n const control = target.closest(CONTROLS);\n return !!control && this.dom.contains(control);\n }\n\n ignoreMutation(mutation: ViewMutationRecord): boolean {\n // A node without content: everything inside is the renderer's markup, the editor has nothing to read.\n if (!this.contentDOM) return true;\n // Its own markup around the content (and moving contentDOM itself into it) isn't a document edit.\n if (mutation.target === this.contentDOM && mutation.type === 'attributes') return true;\n return !this.contentDOM.contains(mutation.target);\n }\n\n destroy(): void {\n try {\n this.renderer?.destroy();\n } catch (error) {\n report(`Node view for \"${this.node.type.name}\" failed to clean up`, error);\n }\n }\n}\n\n/** A node view from your own renderer (React, Vue, DOM): `create` is called for each node. */\nexport function defineNodeView(\n create: (editor: Editor) => NodeViewRenderer,\n options: NodeViewOptions = {},\n): NodeViewFactory {\n return (editor) => (node, view, getPos) =>\n new RenderedNodeView(node, view, getPos, editor, create, options);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiEA,IAAM,WAAW;A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E9E,QAAI,MAAM,KAAK,WAAW,MAAM,KAAK,MAAM,SAAS,OAAQ,QAAO;AACnE,UAAM,UAAU,OAAO,QAAQ,QAAQ;AACvC,WAAO,CAAC,CAAC,WAAW,KAAK,IAAI,SAAS,OAAO;AAAA,EAC/C;AAAA,EAEA,eAAe,UAAuC;AAEpD,QAAI,CAAC,KAAK,WAAY,QAAO;AAE7B,QAAI,SAAS,WAAW,KAAK,cAAc,SAAS,SAAS,aAAc,QAAO;AAClF,WAAO,CAAC,KAAK,WAAW,SAAS,SAAS,MAAM;AAAA,EAClD;AAAA,EAEA,UAAgB;AACd,QAAI;AACF,WAAK,UAAU,QAAQ;AAAA,IACzB,SAAS,OAAO;AACd,aAAO,kBAAkB,KAAK,KAAK,KAAK,IAAI,wBAAwB,KAAK;AAAA,IAC3E;AAAA,EACF;AACF;AAGO,SAAS,eACd,QACA,UAA2B,CAAC,GACX;AACjB,SAAO,CAAC,WAAW,CAAC,MAAM,MAAM,WAC9B,IAAI,iBAAiB,MAAM,MAAM,QAAQ,QAAQ,QAAQ,OAAO;AACpE;","names":[]}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
icons
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5KERLFDD.js";
|
|
4
4
|
import {
|
|
5
5
|
insertText,
|
|
6
6
|
pickLabels
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-XCXJD5DO.js";
|
|
8
8
|
import {
|
|
9
9
|
definePlugin
|
|
10
10
|
} from "./chunk-V7WUHUHM.js";
|
|
@@ -58,4 +58,4 @@ export {
|
|
|
58
58
|
LABELS,
|
|
59
59
|
insertdatetime_default as default
|
|
60
60
|
};
|
|
61
|
-
//# sourceMappingURL=insertdatetime-
|
|
61
|
+
//# sourceMappingURL=insertdatetime-BXQ3XXPH.js.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addLinkNote
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KW6ATQPN.js";
|
|
4
4
|
import "./chunk-GTLE2HEW.js";
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-SNVYHGGO.js";
|
|
6
|
+
import "./chunk-DV7TGRU6.js";
|
|
7
|
+
import "./chunk-AB67XUSR.js";
|
|
8
|
+
import "./chunk-UHUOAQA6.js";
|
|
9
9
|
import "./chunk-HNEAVVBC.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-6BJEOL5V.js";
|
|
11
11
|
import "./chunk-XR7CY4NI.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-5KERLFDD.js";
|
|
13
13
|
import {
|
|
14
14
|
pickLabels
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-XCXJD5DO.js";
|
|
16
16
|
import {
|
|
17
17
|
definePlugin
|
|
18
18
|
} from "./chunk-V7WUHUHM.js";
|
|
@@ -284,4 +284,4 @@ export {
|
|
|
284
284
|
checkable,
|
|
285
285
|
linkchecker_default2 as default
|
|
286
286
|
};
|
|
287
|
-
//# sourceMappingURL=linkchecker-
|
|
287
|
+
//# sourceMappingURL=linkchecker-JASSETVI.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parserFor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KGEHUWGL.js";
|
|
4
4
|
import {
|
|
5
5
|
markdownToHTML
|
|
6
6
|
} from "./chunk-AUQSATWL.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-6BJEOL5V.js";
|
|
8
8
|
import "./chunk-XR7CY4NI.js";
|
|
9
9
|
import {
|
|
10
10
|
pickLabels
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-XCXJD5DO.js";
|
|
12
12
|
import {
|
|
13
13
|
definePlugin
|
|
14
14
|
} from "./chunk-V7WUHUHM.js";
|
|
@@ -133,4 +133,4 @@ export {
|
|
|
133
133
|
looksLikeMarkdown,
|
|
134
134
|
markdownSlice
|
|
135
135
|
};
|
|
136
|
-
//# sourceMappingURL=markdown-
|
|
136
|
+
//# sourceMappingURL=markdown-OTLTCK26.js.map
|
package/dist/markdown.d.cts
CHANGED
|
@@ -4,7 +4,7 @@ import './a11y.cjs';
|
|
|
4
4
|
import 'prosemirror-state';
|
|
5
5
|
import 'prosemirror-view';
|
|
6
6
|
import './html-rules-api-BLDDW9MO.cjs';
|
|
7
|
-
import './index-
|
|
7
|
+
import './index-Pb2r0V-S.cjs';
|
|
8
8
|
|
|
9
9
|
interface MarkdownToHTMLOptions {
|
|
10
10
|
/** Turn addresses like https://… into links (true by default). */
|
package/dist/markdown.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import './a11y.js';
|
|
|
4
4
|
import 'prosemirror-state';
|
|
5
5
|
import 'prosemirror-view';
|
|
6
6
|
import './html-rules-api-BLDDW9MO.js';
|
|
7
|
-
import './index-
|
|
7
|
+
import './index-Pb2r0V-S.js';
|
|
8
8
|
|
|
9
9
|
interface MarkdownToHTMLOptions {
|
|
10
10
|
/** Turn addresses like https://… into links (true by default). */
|
|
@@ -2,19 +2,19 @@ import {
|
|
|
2
2
|
loadTemml,
|
|
3
3
|
mathLatex,
|
|
4
4
|
renderMath
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-BUABAYZL.js";
|
|
6
6
|
import {
|
|
7
7
|
replaceSelectionWithBlock
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-UHUOAQA6.js";
|
|
9
9
|
import "./chunk-HNEAVVBC.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-6BJEOL5V.js";
|
|
11
11
|
import "./chunk-XR7CY4NI.js";
|
|
12
12
|
import {
|
|
13
13
|
icons
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-5KERLFDD.js";
|
|
15
15
|
import {
|
|
16
16
|
pickLabels
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-XCXJD5DO.js";
|
|
18
18
|
import {
|
|
19
19
|
definePlugin
|
|
20
20
|
} from "./chunk-V7WUHUHM.js";
|
|
@@ -154,4 +154,4 @@ export {
|
|
|
154
154
|
LABELS,
|
|
155
155
|
math_ui_default as default
|
|
156
156
|
};
|
|
157
|
-
//# sourceMappingURL=math-ui-
|
|
157
|
+
//# sourceMappingURL=math-ui-TY4VZF7Q.js.map
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
attachFilePicker
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DV7TGRU6.js";
|
|
4
4
|
import {
|
|
5
5
|
textField
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-AB67XUSR.js";
|
|
7
7
|
import {
|
|
8
8
|
embedResolvers,
|
|
9
9
|
parseMediaUrl
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ARBKIZZU.js";
|
|
11
11
|
import {
|
|
12
12
|
replaceSelectionWithBlock
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-UHUOAQA6.js";
|
|
14
14
|
import "./chunk-HNEAVVBC.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-6BJEOL5V.js";
|
|
16
16
|
import "./chunk-XR7CY4NI.js";
|
|
17
17
|
import {
|
|
18
18
|
icons
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-5KERLFDD.js";
|
|
20
20
|
import {
|
|
21
21
|
pickLabels
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-XCXJD5DO.js";
|
|
23
23
|
import {
|
|
24
24
|
definePlugin
|
|
25
25
|
} from "./chunk-V7WUHUHM.js";
|
|
@@ -120,4 +120,4 @@ export {
|
|
|
120
120
|
LABELS,
|
|
121
121
|
media_ui_default as default
|
|
122
122
|
};
|
|
123
|
-
//# sourceMappingURL=media-ui-
|
|
123
|
+
//# sourceMappingURL=media-ui-IXN4ENVF.js.map
|
|
@@ -3,19 +3,19 @@ import {
|
|
|
3
3
|
cardHref,
|
|
4
4
|
cardImage,
|
|
5
5
|
cardText
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NX3KWIP5.js";
|
|
7
7
|
import {
|
|
8
8
|
embedResolvers,
|
|
9
9
|
parseMediaUrl
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-ARBKIZZU.js";
|
|
11
|
+
import "./chunk-6BJEOL5V.js";
|
|
12
12
|
import "./chunk-XR7CY4NI.js";
|
|
13
13
|
import {
|
|
14
14
|
icons
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-5KERLFDD.js";
|
|
16
16
|
import {
|
|
17
17
|
pickLabels
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-XCXJD5DO.js";
|
|
19
19
|
import {
|
|
20
20
|
definePlugin
|
|
21
21
|
} from "./chunk-V7WUHUHM.js";
|
|
@@ -204,4 +204,4 @@ export {
|
|
|
204
204
|
LABELS,
|
|
205
205
|
mediaembed_ui_default as default
|
|
206
206
|
};
|
|
207
|
-
//# sourceMappingURL=mediaembed-ui-
|
|
207
|
+
//# sourceMappingURL=mediaembed-ui-ODX5ECXC.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
findMentionUsers
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-T4543CB2.js";
|
|
4
4
|
import {
|
|
5
5
|
pickLabels
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XCXJD5DO.js";
|
|
7
7
|
import {
|
|
8
8
|
definePlugin
|
|
9
9
|
} from "./chunk-V7WUHUHM.js";
|
|
@@ -55,4 +55,4 @@ export {
|
|
|
55
55
|
LABELS,
|
|
56
56
|
mentions_ui_default as default
|
|
57
57
|
};
|
|
58
|
-
//# sourceMappingURL=mentions-ui-
|
|
58
|
+
//# sourceMappingURL=mentions-ui-55GCKC6F.js.map
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
flatList,
|
|
4
4
|
isGroup,
|
|
5
5
|
optionsOf
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GUZCRDK6.js";
|
|
7
7
|
import {
|
|
8
8
|
icons
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-5KERLFDD.js";
|
|
10
10
|
import {
|
|
11
11
|
pickLabels
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-XCXJD5DO.js";
|
|
13
13
|
import {
|
|
14
14
|
definePlugin
|
|
15
15
|
} from "./chunk-V7WUHUHM.js";
|
|
@@ -70,4 +70,4 @@ var mergetags_ui_default = definePlugin({
|
|
|
70
70
|
export {
|
|
71
71
|
mergetags_ui_default as default
|
|
72
72
|
};
|
|
73
|
-
//# sourceMappingURL=mergetags-ui-
|
|
73
|
+
//# sourceMappingURL=mergetags-ui-6T7Z7MAZ.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
icons
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5KERLFDD.js";
|
|
4
4
|
import {
|
|
5
5
|
insertText,
|
|
6
6
|
pickLabels
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-XCXJD5DO.js";
|
|
8
8
|
import {
|
|
9
9
|
definePlugin
|
|
10
10
|
} from "./chunk-V7WUHUHM.js";
|
|
@@ -47,4 +47,4 @@ export {
|
|
|
47
47
|
LABELS,
|
|
48
48
|
nonbreaking_default as default
|
|
49
49
|
};
|
|
50
|
-
//# sourceMappingURL=nonbreaking-
|
|
50
|
+
//# sourceMappingURL=nonbreaking-PONHSOMJ.js.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
replaceSelectionWithBlock
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UHUOAQA6.js";
|
|
4
4
|
import "./chunk-HNEAVVBC.js";
|
|
5
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-6BJEOL5V.js";
|
|
6
6
|
import "./chunk-XR7CY4NI.js";
|
|
7
7
|
import {
|
|
8
8
|
icons
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-5KERLFDD.js";
|
|
10
10
|
import {
|
|
11
11
|
pickLabels
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-XCXJD5DO.js";
|
|
13
13
|
import {
|
|
14
14
|
definePlugin
|
|
15
15
|
} from "./chunk-V7WUHUHM.js";
|
|
@@ -47,4 +47,4 @@ export {
|
|
|
47
47
|
LABELS,
|
|
48
48
|
pagebreak_ui_default as default
|
|
49
49
|
};
|
|
50
|
-
//# sourceMappingURL=pagebreak-ui-
|
|
50
|
+
//# sourceMappingURL=pagebreak-ui-AKAW7M5I.js.map
|
|
@@ -3,18 +3,18 @@ import {
|
|
|
3
3
|
embeddableUrl,
|
|
4
4
|
pageEmbedOptions,
|
|
5
5
|
ratioOf
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-Y2OXWCM7.js";
|
|
7
7
|
import {
|
|
8
8
|
replaceSelectionWithBlock
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-UHUOAQA6.js";
|
|
10
10
|
import "./chunk-HNEAVVBC.js";
|
|
11
11
|
import {
|
|
12
12
|
imageSize
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-6BJEOL5V.js";
|
|
14
14
|
import "./chunk-XR7CY4NI.js";
|
|
15
15
|
import {
|
|
16
16
|
pickLabels
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-XCXJD5DO.js";
|
|
18
18
|
import {
|
|
19
19
|
definePlugin
|
|
20
20
|
} from "./chunk-V7WUHUHM.js";
|
|
@@ -169,4 +169,4 @@ export {
|
|
|
169
169
|
LABELS,
|
|
170
170
|
pageembed_ui_default as default
|
|
171
171
|
};
|
|
172
|
-
//# sourceMappingURL=pageembed-ui-
|
|
172
|
+
//# sourceMappingURL=pageembed-ui-GUNPKMBR.js.map
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
fillBand,
|
|
3
3
|
pageLayout,
|
|
4
4
|
setPageCount
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-DCMPJ25E.js";
|
|
6
6
|
import {
|
|
7
7
|
pickLabels
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-XCXJD5DO.js";
|
|
9
9
|
import {
|
|
10
10
|
definePlugin
|
|
11
11
|
} from "./chunk-V7WUHUHM.js";
|
|
@@ -233,4 +233,4 @@ export {
|
|
|
233
233
|
pagelayout_ui_default2 as default,
|
|
234
234
|
paginate
|
|
235
235
|
};
|
|
236
|
-
//# sourceMappingURL=pagelayout-ui-
|
|
236
|
+
//# sourceMappingURL=pagelayout-ui-JSFVEMHS.js.map
|