@templatical/editor 0.61.0 → 0.62.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/LICENSE +21 -109
- package/README.md +3 -3
- package/dist/{AiAltTextPopover-DSA1wiiW.js → AiAltTextPopover-C1Ike67q.js} +3 -4
- package/dist/{AiAltTextReview-B9-vfzCj.js → AiAltTextReview-BjT7_PoG.js} +2 -3
- package/dist/{AiChatPanel-DF5TvO9H.js → AiChatPanel-C82fJozf.js} +3 -4
- package/dist/{AiPanels-zRqC5DIP.js → AiPanels-sam_GMNs.js} +1 -1
- package/dist/{AiRewriteMenu-CmZKTO-O.js → AiRewriteMenu-CpBcT6QL.js} +3 -4
- package/dist/{BlockIssueBadge-Bug5iqcK.js → BlockIssueBadge-D3OmWkCh.js} +2 -3
- package/dist/{BlockPreviewCanvas-knSyWaCP.js → BlockPreviewCanvas-BHRmnq0w.js} +6 -6
- package/dist/{CollaborationNotices-BM35YG72.js → CollaborationNotices-Cmc7Ziuf.js} +1 -1
- package/dist/{CollaboratorBar-DMsEOndt.js → CollaboratorBar-DVtWefk1.js} +1 -1
- package/dist/{CommentsPanel-BMYvXRKK.js → CommentsPanel-BSt22Zw9.js} +1 -1
- package/dist/{cdn/chunks/CommentsSidebar-BEiOQ_zT.js → CommentsSidebar-C8qbxjyN.js} +228 -205
- package/dist/{CountdownBlock-AYPypmcX.js → CountdownBlock-bFAELCB6.js} +3 -4
- package/dist/{CountdownToolbar-BprSuPJk.js → CountdownToolbar-CJbPEVV5.js} +4 -4
- package/dist/{IssuesPanel-CeCvUfa7.js → IssuesPanel-CKYf6K84.js} +4 -5
- package/dist/{LanguageMenu-CkGqLYjf.js → LanguageMenu-BFOEQEPy.js} +5 -6
- package/dist/{LocaleNotices-D0be8ovO.js → LocaleNotices-24UYFxo2.js} +7 -8
- package/dist/{LogicTagInsertButton-BzEZUTRZ.js → LogicTagInsertButton-DdaafrjI.js} +95 -96
- package/dist/{MergeTagInput-By2FSStk.js → MergeTagInput-BXM6-eF-.js} +1 -1
- package/dist/{MergeTagModeToggle-DtjOZhoD.js → MergeTagModeToggle-ooA_Ytfq.js} +2 -3
- package/dist/{MergeTagTextarea-BjHlamJv.js → MergeTagTextarea-B86MPY89.js} +3 -4
- package/dist/{ParagraphEditor-Ctu4fSsl.js → ParagraphEditor-C15Glzy_.js} +78 -79
- package/dist/{RestoreVersionDialog-DvZoTJVa.js → RestoreVersionDialog-C13Bo4b0.js} +2 -2
- package/dist/{RichTextEditorContent-B1p7Ykq8.js → RichTextEditorContent-BNMBOkdy.js} +5 -6
- package/dist/{SaveBlockDialog-DHfT-Tpx.js → SaveBlockDialog-lm_1-2w2.js} +23 -24
- package/dist/{SavedBlocksBrowserModal-BjJuuXQv.js → SavedBlocksBrowserModal-BjUZG5_S.js} +8 -9
- package/dist/{SavedBlocksPanels-D6eiMQZ3.js → SavedBlocksPanels-Bj3LAXcL.js} +1 -1
- package/dist/{SavedBlocksPickBar-BkgCDSXe.js → SavedBlocksPickBar-DOTr0Imx.js} +2 -2
- package/dist/{TemplateSettings-DQAbNsiS.js → TemplateSettings-Z-i-_xF5.js} +19 -20
- package/dist/{TestEmailModal-m_AEa36T.js → TestEmailModal-ClEnoNEB.js} +17 -18
- package/dist/{TestEmailPanel-OApkuaVd.js → TestEmailPanel-CVmrt-d9.js} +1 -1
- package/dist/{TitleEditor-Cwdtfk15.js → TitleEditor-BHZF5C6q.js} +8 -9
- package/dist/{Toolbar-D_T55elL.js → Toolbar-bwAdFK4A.js} +308 -310
- package/dist/{TplModal-2MKm5y6r.js → TplModal-QWmSO1nR.js} +4 -4
- package/dist/{VersionHistoryMenu-B3-xJ7GO.js → VersionHistoryMenu-qoOkZKal.js} +6 -7
- package/dist/{VersionHistoryPanels-CCM0IQBg.js → VersionHistoryPanels-D82hgc2v.js} +1 -1
- package/dist/{VersionPreviewBanner-DLAB4ZbS.js → VersionPreviewBanner-DEN9rl6y.js} +1 -1
- package/dist/{WrapperBlock-BZl10HLy.js → WrapperBlock-32v93A9w.js} +4 -4
- package/dist/{blockTypeIcons-C691ZY1l.js → blockTypeIcons-C1S2wVx8.js} +4 -4
- package/dist/bundle-stats.json +8 -8
- package/dist/{ca-C8N05sCU.js → ca-BIseSbs-.js} +1 -2
- package/dist/cdn/chunks/{AiAltTextPopover-BLNN_Pnd.js → AiAltTextPopover-mDx_knAl.js} +4 -5
- package/dist/cdn/chunks/{AiAltTextPopover-BLNN_Pnd.js.map → AiAltTextPopover-mDx_knAl.js.map} +1 -1
- package/dist/cdn/chunks/{AiAltTextReview-Db8vSNpe.js → AiAltTextReview-Dmg8iVWD.js} +3 -4
- package/dist/cdn/chunks/{AiAltTextReview-Db8vSNpe.js.map → AiAltTextReview-Dmg8iVWD.js.map} +1 -1
- package/dist/cdn/chunks/{AiChatPanel-BYAsgmoC.js → AiChatPanel-CEDr_x8G.js} +4 -5
- package/dist/cdn/chunks/{AiChatPanel-BYAsgmoC.js.map → AiChatPanel-CEDr_x8G.js.map} +1 -1
- package/dist/cdn/chunks/{AiPanels-MY_YPls8.js → AiPanels-qJgLTYPs.js} +2 -2
- package/dist/cdn/chunks/{AiPanels-MY_YPls8.js.map → AiPanels-qJgLTYPs.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-BSePiXe_.js → AiRewriteMenu-2a9WjizC.js} +4 -5
- package/dist/cdn/chunks/{AiRewriteMenu-BSePiXe_.js.map → AiRewriteMenu-2a9WjizC.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-fYeNnepj.js → BlockIssueBadge-D87CYoPw.js} +3 -4
- package/dist/cdn/chunks/{BlockIssueBadge-fYeNnepj.js.map → BlockIssueBadge-D87CYoPw.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-B153A3hu.js → BlockPreviewCanvas-DDDKuWJz.js} +8 -8
- package/dist/cdn/chunks/{BlockPreviewCanvas-B153A3hu.js.map → BlockPreviewCanvas-DDDKuWJz.js.map} +1 -1
- package/dist/cdn/chunks/{CollaborationNotices-COkmBmps.js → CollaborationNotices-DyzhN_Ns.js} +2 -2
- package/dist/cdn/chunks/{CollaborationNotices-COkmBmps.js.map → CollaborationNotices-DyzhN_Ns.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-BSzI8YIU.js → CollaboratorBar-bNFuQxxP.js} +2 -2
- package/dist/cdn/chunks/{CollaboratorBar-BSzI8YIU.js.map → CollaboratorBar-bNFuQxxP.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-R27fqh9O.js → CommentsPanel-D-D2qsS6.js} +2 -2
- package/dist/cdn/chunks/{CommentsPanel-R27fqh9O.js.map → CommentsPanel-D-D2qsS6.js.map} +1 -1
- package/dist/cdn/chunks/CommentsSidebar-CCVp8M2T.js +479 -0
- package/dist/cdn/chunks/CommentsSidebar-CCVp8M2T.js.map +1 -0
- package/dist/cdn/chunks/{CountdownBlock--hlKE2aj.js → CountdownBlock-5hUzymeP.js} +4 -5
- package/dist/cdn/chunks/{CountdownBlock--hlKE2aj.js.map → CountdownBlock-5hUzymeP.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-DOhXnbsq.js → CountdownToolbar-DaGxwKfG.js} +5 -5
- package/dist/cdn/chunks/{CountdownToolbar-DOhXnbsq.js.map → CountdownToolbar-DaGxwKfG.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-DgxiS3hF.js → IssuesPanel-DQQo1B1z.js} +10 -11
- package/dist/cdn/chunks/IssuesPanel-DQQo1B1z.js.map +1 -0
- package/dist/cdn/chunks/{LanguageMenu-B6kt8SgX.js → LanguageMenu-2Er64H2b.js} +6 -7
- package/dist/cdn/chunks/{LanguageMenu-B6kt8SgX.js.map → LanguageMenu-2Er64H2b.js.map} +1 -1
- package/dist/cdn/chunks/{LocaleNotices-Bleg4gTu.js → LocaleNotices-DSfOyyyf.js} +8 -9
- package/dist/cdn/chunks/{LocaleNotices-Bleg4gTu.js.map → LocaleNotices-DSfOyyyf.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-DGg1Wvhp.js → LogicTagInsertButton-CumMM1rP.js} +7 -8
- package/dist/cdn/chunks/{LogicTagInsertButton-DGg1Wvhp.js.map → LogicTagInsertButton-CumMM1rP.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-BVfTwujW.js → MergeTagInput-Dm_QiG96.js} +2 -2
- package/dist/cdn/chunks/{MergeTagInput-BVfTwujW.js.map → MergeTagInput-Dm_QiG96.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-BoI0C1Y6.js → MergeTagModeToggle-Bir7lkLe.js} +3 -4
- package/dist/cdn/chunks/{MergeTagModeToggle-BoI0C1Y6.js.map → MergeTagModeToggle-Bir7lkLe.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagTextarea-DGDv-pdn.js → MergeTagTextarea-B_IFeWfZ.js} +4 -5
- package/dist/cdn/chunks/{MergeTagTextarea-DGDv-pdn.js.map → MergeTagTextarea-B_IFeWfZ.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-D0q36Myd.js → ParagraphEditor-CWjMxuy0.js} +135 -136
- package/dist/cdn/chunks/{ParagraphEditor-D0q36Myd.js.map → ParagraphEditor-CWjMxuy0.js.map} +1 -1
- package/dist/cdn/chunks/{RestoreVersionDialog-CJggFdbi.js → RestoreVersionDialog-BsfulSK7.js} +3 -3
- package/dist/cdn/chunks/{RestoreVersionDialog-CJggFdbi.js.map → RestoreVersionDialog-BsfulSK7.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-D3ihUF8v.js → RichTextEditorContent-CuvFVxEq.js} +6 -7
- package/dist/cdn/chunks/{RichTextEditorContent-D3ihUF8v.js.map → RichTextEditorContent-CuvFVxEq.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-BzES5tqd.js → SaveBlockDialog-8zxJlHw2.js} +25 -26
- package/dist/cdn/chunks/{SaveBlockDialog-BzES5tqd.js.map → SaveBlockDialog-8zxJlHw2.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-CLNcZcLd.js → SavedBlocksBrowserModal-DtaGW2H4.js} +9 -10
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-CLNcZcLd.js.map → SavedBlocksBrowserModal-DtaGW2H4.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-R0W9LElD.js → SavedBlocksPanels-CtDhdbiD.js} +2 -2
- package/dist/cdn/chunks/{SavedBlocksPanels-R0W9LElD.js.map → SavedBlocksPanels-CtDhdbiD.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-JNi5Rx4V.js → SavedBlocksPickBar-DovcCaoW.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPickBar-JNi5Rx4V.js.map → SavedBlocksPickBar-DovcCaoW.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-C5wsNcgX.js → TemplateSettings-B8Ch5ps8.js} +20 -21
- package/dist/cdn/chunks/{TemplateSettings-C5wsNcgX.js.map → TemplateSettings-B8Ch5ps8.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-BxIAwjww.js → TestEmailModal-D1EuQSgA.js} +16 -17
- package/dist/cdn/chunks/{TestEmailModal-BxIAwjww.js.map → TestEmailModal-D1EuQSgA.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-B8BsWXjE.js → TestEmailPanel-0iG-utN7.js} +2 -2
- package/dist/cdn/chunks/{TestEmailPanel-B8BsWXjE.js.map → TestEmailPanel-0iG-utN7.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-DhcI1aRS.js → TitleEditor-k2vSwKxN.js} +17 -18
- package/dist/cdn/chunks/{TitleEditor-DhcI1aRS.js.map → TitleEditor-k2vSwKxN.js.map} +1 -1
- package/dist/cdn/chunks/{Toolbar-Ch3h2BUs.js → Toolbar-BnTSuZQb.js} +310 -312
- package/dist/cdn/chunks/Toolbar-BnTSuZQb.js.map +1 -0
- package/dist/cdn/chunks/{TplModal-CPOqOxVf.js → TplModal-iRdN04Sa.js} +5 -5
- package/dist/cdn/chunks/{TplModal-CPOqOxVf.js.map → TplModal-iRdN04Sa.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-DTDO48HI.js → VersionHistoryMenu-DlPr3twf.js} +7 -8
- package/dist/cdn/chunks/{VersionHistoryMenu-DTDO48HI.js.map → VersionHistoryMenu-DlPr3twf.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-CVrXHYxT.js → VersionHistoryPanels-Bw5UHEvo.js} +2 -2
- package/dist/cdn/chunks/{VersionHistoryPanels-CVrXHYxT.js.map → VersionHistoryPanels-Bw5UHEvo.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-C1H_fYAr.js → VersionPreviewBanner-anJgZOcw.js} +2 -2
- package/dist/cdn/chunks/VersionPreviewBanner-anJgZOcw.js.map +1 -0
- package/dist/cdn/chunks/{WrapperBlock-B8SJ7Q4w.js → WrapperBlock-CFjCtyvx.js} +5 -5
- package/dist/cdn/chunks/{WrapperBlock-B8SJ7Q4w.js.map → WrapperBlock-CFjCtyvx.js.map} +1 -1
- package/dist/cdn/chunks/{ca-C8N05sCU.js → ca-BIseSbs-.js} +2 -3
- package/dist/cdn/chunks/{ca-C8N05sCU.js.map → ca-BIseSbs-.js.map} +1 -1
- package/dist/cdn/chunks/{composables-CKXPwWo9.js → composables-Nir0umYc.js} +444 -464
- package/dist/cdn/chunks/composables-Nir0umYc.js.map +1 -0
- package/dist/{da-Dno_4nGy.js → cdn/chunks/da-DN46iRXS.js} +3 -2
- package/dist/cdn/chunks/{da-Dno_4nGy.js.map → da-DN46iRXS.js.map} +1 -1
- package/dist/{de-DRR5JSkh.js → cdn/chunks/de-Dyk8PPCm.js} +3 -2
- package/dist/cdn/chunks/{de-DRR5JSkh.js.map → de-Dyk8PPCm.js.map} +1 -1
- package/dist/{en-DAcLbbpg.js → cdn/chunks/en-BzMbMmgz.js} +3 -2
- package/dist/cdn/chunks/{en-DAcLbbpg.js.map → en-BzMbMmgz.js.map} +1 -1
- package/dist/{es-BcEQLQxe.js → cdn/chunks/es-KSHEXYyf.js} +3 -2
- package/dist/cdn/chunks/{es-BcEQLQxe.js.map → es-KSHEXYyf.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-Bq9nXmBP.js → extensions-Br2hHeiR.js} +5 -5
- package/dist/cdn/chunks/{extensions-Bq9nXmBP.js.map → extensions-Br2hHeiR.js.map} +1 -1
- package/dist/{fr-CNQG7ESr.js → cdn/chunks/fr-DtKHfZyk.js} +3 -2
- package/dist/cdn/chunks/{fr-CNQG7ESr.js.map → fr-DtKHfZyk.js.map} +1 -1
- package/dist/{ja-CMxWxqSH.js → cdn/chunks/ja-DUSaDVPA.js} +3 -2
- package/dist/cdn/chunks/{ja-CMxWxqSH.js.map → ja-DUSaDVPA.js.map} +1 -1
- package/dist/{nl-BjyYZDkC.js → cdn/chunks/nl-DQbuxzD6.js} +3 -2
- package/dist/cdn/chunks/{nl-BjyYZDkC.js.map → nl-DQbuxzD6.js.map} +1 -1
- package/dist/{pt-BR-DC2A3C0v.js → cdn/chunks/pt-BR-CxpxBtvc.js} +3 -2
- package/dist/cdn/chunks/{pt-BR-DC2A3C0v.js.map → pt-BR-CxpxBtvc.js.map} +1 -1
- package/dist/cdn/chunks/rolldown-runtime-CGnMp29N.js +10 -0
- package/dist/cdn/chunks/{socialIcons-CSe4YJ52.js → socialIcons-CXQfKLUV.js} +156 -136
- package/dist/cdn/chunks/socialIcons-CXQfKLUV.js.map +1 -0
- package/dist/cdn/chunks/{src-Bk1LF1np.js → src-9e0wFfHH.js} +4 -2
- package/dist/cdn/chunks/src-9e0wFfHH.js.map +1 -0
- package/dist/cdn/chunks/src-A0kzK-pR.js.map +1 -1
- package/dist/cdn/chunks/{src-edESkGqO.js → src-C9jjLNMg.js} +2 -2
- package/dist/cdn/chunks/{src-edESkGqO.js.map → src-C9jjLNMg.js.map} +1 -1
- package/dist/cdn/chunks/{tiptap-DDhueoan.js → tiptap-DLW5XdqI.js} +2 -2
- package/dist/cdn/chunks/{tiptap-DDhueoan.js.map → tiptap-DLW5XdqI.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorRoot-D0Lp2x4_.js → useEditorRoot-BPVxLYFD.js} +2 -2
- package/dist/cdn/chunks/{useEditorRoot-D0Lp2x4_.js.map → useEditorRoot-BPVxLYFD.js.map} +1 -1
- package/dist/cdn/chunks/useI18n-DwP1ksBW.js +24 -0
- package/dist/cdn/chunks/{keys-ywH4jHJ2.js.map → useI18n-DwP1ksBW.js.map} +1 -1
- package/dist/cdn/chunks/{useLanguageName-DDhdVpqh.js → useLanguageName-CeuoO9WZ.js} +2 -2
- package/dist/cdn/chunks/{useLanguageName-DDhdVpqh.js.map → useLanguageName-CeuoO9WZ.js.map} +1 -1
- package/dist/cdn/chunks/{useLogicTag-CKtQlJDa.js → useLogicTag-gphGbQfy.js} +3 -3
- package/dist/cdn/chunks/{useLogicTag-CKtQlJDa.js.map → useLogicTag-gphGbQfy.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-Dwy3U0PI.js → useMergeTag-QM-tkBc6.js} +3 -3
- package/dist/cdn/chunks/{useMergeTag-Dwy3U0PI.js.map → useMergeTag-QM-tkBc6.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-CBp9uwjV.js → usePopoverPosition-Cg8LR0W4.js} +2 -2
- package/dist/cdn/chunks/{usePopoverPosition-CBp9uwjV.js.map → usePopoverPosition-Cg8LR0W4.js.map} +1 -1
- package/dist/cdn/chunks/{useScrollToBlock-32EnuMwu.js → useScrollToBlock-CS7zo4oQ.js} +2 -2
- package/dist/cdn/chunks/{useScrollToBlock-32EnuMwu.js.map → useScrollToBlock-CS7zo4oQ.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +877 -975
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{composables-26aR45W3.js → composables-6SKZrQs-.js} +817 -837
- package/dist/{cdn/chunks/da-Dno_4nGy.js → da-DN46iRXS.js} +1 -4
- package/dist/{cdn/chunks/de-DRR5JSkh.js → de-Dyk8PPCm.js} +1 -4
- package/dist/{cdn/chunks/en-DAcLbbpg.js → en-BzMbMmgz.js} +1 -4
- package/dist/{cdn/chunks/es-BcEQLQxe.js → es-KSHEXYyf.js} +1 -4
- package/dist/{extensions-zHf8YFRw.js → extensions-D74nAP73.js} +3 -3
- package/dist/{cdn/chunks/fr-CNQG7ESr.js → fr-DtKHfZyk.js} +1 -4
- package/dist/index.d.ts +33 -405
- package/dist/{cdn/chunks/ja-CMxWxqSH.js → ja-DUSaDVPA.js} +1 -4
- package/dist/{cdn/chunks/nl-BjyYZDkC.js → nl-DQbuxzD6.js} +1 -4
- package/dist/{cdn/chunks/pt-BR-DC2A3C0v.js → pt-BR-CxpxBtvc.js} +1 -4
- package/dist/{socialIcons-mWE33bOn.js → socialIcons-K89pe-h2.js} +84 -64
- package/dist/style.css +1 -1
- package/dist/templatical-editor.js +1060 -1158
- package/dist/{useEditorRoot-DWfC2CVC.js → useEditorRoot-CQeutW_s.js} +1 -1
- package/dist/useI18n-B05qsAsl.js +22 -0
- package/dist/{useLanguageName-CEFzafHB.js → useLanguageName-CnpG7FD5.js} +1 -1
- package/dist/{useLogicTag-K5CPoMTk.js → useLogicTag-DSa1si4o.js} +2 -2
- package/dist/{useMergeTag-tsU_Sw2x.js → useMergeTag-DwxbvRZI.js} +2 -2
- package/dist/{usePopoverPosition-DF0ZYH7g.js → usePopoverPosition-B8CXTr8v.js} +1 -1
- package/dist/{useScrollToBlock-eZXiGa8o.js → useScrollToBlock-ZZBBGFan.js} +1 -1
- package/package.json +11 -13
- package/dist/CloudHeaderExtras-DC_oNrxz.js +0 -22
- package/dist/CloudPanels-BbHJHZri.js +0 -167
- package/dist/CommentsSidebar-_8at1Rug.js +0 -516
- package/dist/cdn/chunks/CloudHeaderExtras-Cd-ePldd.js +0 -24
- package/dist/cdn/chunks/CloudHeaderExtras-Cd-ePldd.js.map +0 -1
- package/dist/cdn/chunks/CloudPanels-Bv26_Sd8.js +0 -167
- package/dist/cdn/chunks/CloudPanels-Bv26_Sd8.js.map +0 -1
- package/dist/cdn/chunks/CommentsSidebar-BEiOQ_zT.js.map +0 -1
- package/dist/cdn/chunks/IssuesPanel-DgxiS3hF.js.map +0 -1
- package/dist/cdn/chunks/Toolbar-Ch3h2BUs.js.map +0 -1
- package/dist/cdn/chunks/VersionPreviewBanner-C1H_fYAr.js.map +0 -1
- package/dist/cdn/chunks/composables-CKXPwWo9.js.map +0 -1
- package/dist/cdn/chunks/createCloudRuntime-CUlw09ix.js +0 -1405
- package/dist/cdn/chunks/createCloudRuntime-CUlw09ix.js.map +0 -1
- package/dist/cdn/chunks/de-6M4JoHoD.js +0 -21
- package/dist/cdn/chunks/de-6M4JoHoD.js.map +0 -1
- package/dist/cdn/chunks/en-FzUuJ8HW.js +0 -21
- package/dist/cdn/chunks/en-FzUuJ8HW.js.map +0 -1
- package/dist/cdn/chunks/keys-ywH4jHJ2.js +0 -11
- package/dist/cdn/chunks/logger-CqQTfJGx.js +0 -26
- package/dist/cdn/chunks/logger-CqQTfJGx.js.map +0 -1
- package/dist/cdn/chunks/preRenderCustomBlocks-BLVFtvl8.js +0 -22
- package/dist/cdn/chunks/preRenderCustomBlocks-BLVFtvl8.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-Bp92Fc6J.js +0 -21
- package/dist/cdn/chunks/pt-BR-Bp92Fc6J.js.map +0 -1
- package/dist/cdn/chunks/pusher-x9rNqzon.js +0 -2473
- package/dist/cdn/chunks/pusher-x9rNqzon.js.map +0 -1
- package/dist/cdn/chunks/rolldown-runtime-QGRDbDUS.js +0 -19
- package/dist/cdn/chunks/socialIcons-CSe4YJ52.js.map +0 -1
- package/dist/cdn/chunks/src-Bk1LF1np.js.map +0 -1
- package/dist/cdn/chunks/useCloudI18n-BTV9uu3c.js +0 -24
- package/dist/cdn/chunks/useCloudI18n-BTV9uu3c.js.map +0 -1
- package/dist/cdn/chunks/useI18n-DPg6rPbu.js +0 -18
- package/dist/cdn/chunks/useI18n-DPg6rPbu.js.map +0 -1
- package/dist/createCloudRuntime-CiEo0wkr.js +0 -1389
- package/dist/de-6M4JoHoD.js +0 -19
- package/dist/en-FzUuJ8HW.js +0 -19
- package/dist/keys-B4DimcgX.js +0 -9
- package/dist/logger-BOu7oEtk.js +0 -24
- package/dist/preRenderCustomBlocks-6CLw2rP6.js +0 -20
- package/dist/pt-BR-Bp92Fc6J.js +0 -19
- package/dist/useCloudI18n-BnuOL1YS.js +0 -22
- package/dist/useI18n-Cx9W7OWb.js +0 -16
|
@@ -1,24 +1,23 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as e } from "./rolldown-runtime-CGnMp29N.js";
|
|
2
2
|
import { B as t, C as n, F as r, L as i, O as a, S as o, X as s, _ as c, b as l, c as u, ct as d, dt as f, f as p, g as m, h, l as g, m as _, mt as v, p as y, pt as b, tt as x, u as S, x as C } from "./draggable-IRVFEZ-b.js";
|
|
3
|
-
import {
|
|
4
|
-
import { n as O } from "./usePopoverPosition-
|
|
3
|
+
import { F as w, I as T, R as E, z as D } from "./composables-Nir0umYc.js";
|
|
4
|
+
import { n as O } from "./usePopoverPosition-Cg8LR0W4.js";
|
|
5
5
|
import { ft as k } from "./src-A0kzK-pR.js";
|
|
6
6
|
import { n as A } from "./useLocalizedDisplay-Brdkp3KH.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { t as
|
|
13
|
-
import { n as
|
|
14
|
-
import {
|
|
15
|
-
import { n as H, t as U } from "./RichTextEditorContent-D3ihUF8v.js";
|
|
7
|
+
import { F as j, _ as ee, d as te, j as ne, lt as M, rt as N, st as P, t as F, y as I } from "./useI18n-DwP1ksBW.js";
|
|
8
|
+
import { c as L } from "./LogicTagInsertButton-CumMM1rP.js";
|
|
9
|
+
import { t as R } from "./dist-zu1jwYIS.js";
|
|
10
|
+
import { C as re, Et as z, Ht as ie, L as ae, N as oe, S as se, _ as ce, at as le, b as ue, dt as de, g as fe, h as pe, ht as me, l as he, lt as ge, ot as _e, st as ve, v as ye } from "./icons-DdVB-5WO.js";
|
|
11
|
+
import { t as B } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
12
|
+
import { n as be, t as xe } from "./withCurrentFont-C4pIesdB.js";
|
|
13
|
+
import { a as Se, n as Ce, o as we, s as Te } from "./styleConstants-Br6CIRoS.js";
|
|
14
|
+
import { n as V, t as H } from "./RichTextEditorContent-CuvFVxEq.js";
|
|
16
15
|
// src/components/toolbar/ToolbarSelect.vue?vue&type=script&setup=true&lang.ts
|
|
17
|
-
var
|
|
16
|
+
var U = [
|
|
18
17
|
"value",
|
|
19
18
|
"aria-label",
|
|
20
19
|
"title"
|
|
21
|
-
],
|
|
20
|
+
], W = { value: "" }, G = ["value"], K = /* @__PURE__ */ n({
|
|
22
21
|
__name: "ToolbarSelect",
|
|
23
22
|
props: {
|
|
24
23
|
modelValue: {},
|
|
@@ -55,21 +54,21 @@ var W = [
|
|
|
55
54
|
"aria-label": e.label,
|
|
56
55
|
title: e.label,
|
|
57
56
|
onChange: o
|
|
58
|
-
}, [_("option",
|
|
57
|
+
}, [_("option", W, v(e.placeholder ?? ""), 1), (r(!0), c(S, null, i(p.value, (e) => (r(), c("option", {
|
|
59
58
|
key: s(e),
|
|
60
59
|
value: s(e)
|
|
61
|
-
}, v(l(e)), 9,
|
|
60
|
+
}, v(l(e)), 9, G))), 128))], 42, U));
|
|
62
61
|
}
|
|
63
|
-
}),
|
|
62
|
+
}), q = [
|
|
64
63
|
"aria-label",
|
|
65
64
|
"title",
|
|
66
65
|
"aria-expanded"
|
|
67
|
-
],
|
|
66
|
+
], J = ["aria-label"], Y = { class: "tpl:mb-1.5 tpl:text-[10px] tpl:font-medium tpl:tracking-wide tpl:text-[var(--tpl-text-muted)] tpl:uppercase" }, X = { class: "tpl:grid tpl:grid-cols-10 tpl:gap-0.5" }, Z = ["aria-label", "onClick"], Ee = /* @__PURE__ */ n({
|
|
68
67
|
__name: "EmojiPickerDropdown",
|
|
69
68
|
emits: ["insert"],
|
|
70
69
|
setup(e, { emit: t }) {
|
|
71
|
-
let n = t, { categories: a, isOpen: o, toggle: s, close: l } = E(), { t: p, format: h } =
|
|
72
|
-
|
|
70
|
+
let n = t, { categories: a, isOpen: o, toggle: s, close: l } = E(), { t: p, format: h } = F(), b = x(null), w = x(null), T = y(() => o.value);
|
|
71
|
+
D(b, T), R(w, () => {
|
|
73
72
|
o.value && l();
|
|
74
73
|
});
|
|
75
74
|
function O(e) {
|
|
@@ -77,7 +76,7 @@ var W = [
|
|
|
77
76
|
}
|
|
78
77
|
return (e, t) => (r(), c("div", {
|
|
79
78
|
ref_key: "rootRef",
|
|
80
|
-
ref:
|
|
79
|
+
ref: w,
|
|
81
80
|
class: "tpl:relative"
|
|
82
81
|
}, [_("button", {
|
|
83
82
|
type: "button",
|
|
@@ -88,10 +87,10 @@ var W = [
|
|
|
88
87
|
"aria-haspopup": "dialog",
|
|
89
88
|
"aria-controls": "tpl-emoji-picker",
|
|
90
89
|
onClick: t[0] ||= (...e) => d(s) && d(s)(...e)
|
|
91
|
-
}, [C(d(
|
|
90
|
+
}, [C(d(z), {
|
|
92
91
|
size: 16,
|
|
93
92
|
"stroke-width": 2
|
|
94
|
-
})], 10,
|
|
93
|
+
})], 10, q), d(o) ? (r(), c("div", {
|
|
95
94
|
key: 0,
|
|
96
95
|
id: "tpl-emoji-picker",
|
|
97
96
|
ref_key: "pickerRef",
|
|
@@ -105,13 +104,13 @@ var W = [
|
|
|
105
104
|
}, [(r(!0), c(S, null, i(d(a), (e) => (r(), c("div", {
|
|
106
105
|
key: e.key,
|
|
107
106
|
class: "tpl:mb-2 tpl:last:mb-0"
|
|
108
|
-
}, [_("div",
|
|
107
|
+
}, [_("div", Y, v(d(p).emoji[e.key]), 1), _("div", X, [(r(!0), c(S, null, i(e.emojis, (e) => (r(), c("button", {
|
|
109
108
|
key: e,
|
|
110
109
|
type: "button",
|
|
111
110
|
"aria-label": d(h)(d(p).paragraphEditor.emojiItemLabel, { emoji: e }),
|
|
112
111
|
class: "tpl:flex tpl:size-6 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded tpl:border-none tpl:bg-transparent tpl:text-base tpl:transition-all tpl:hover:scale-125 tpl:hover:bg-[var(--tpl-bg-active)]",
|
|
113
112
|
onClick: (t) => O(e)
|
|
114
|
-
}, v(e), 9,
|
|
113
|
+
}, v(e), 9, Z))), 128))])]))), 128))], 40, J)) : m("", !0)], 512));
|
|
115
114
|
}
|
|
116
115
|
}), De = [
|
|
117
116
|
"aria-label",
|
|
@@ -145,7 +144,7 @@ var W = [
|
|
|
145
144
|
function Ae(e, t) {
|
|
146
145
|
return r(), c("span", ke);
|
|
147
146
|
}
|
|
148
|
-
var $ = /*#__PURE__*/
|
|
147
|
+
var $ = /*#__PURE__*/ B(Oe, [["render", Ae]]);
|
|
149
148
|
// src/utils/richTextColor.ts
|
|
150
149
|
function je(e, t) {
|
|
151
150
|
return e || t || "#000000";
|
|
@@ -170,43 +169,43 @@ var Me = ["data-tpl-theme", "aria-label"], Ne = ["disabled", "inert"], Pe = { cl
|
|
|
170
169
|
"add-logic-tag"
|
|
171
170
|
],
|
|
172
171
|
setup(e, { emit: t }) {
|
|
173
|
-
let n = o(() => import("./AiRewriteMenu-
|
|
172
|
+
let n = o(() => import("./AiRewriteMenu-2a9WjizC.js")), i = e, s = a(te, {}), u = y(() => s.ai?.isFeatureEnabled("rewrite") ?? !1), f = t, g = a(N, null), x = a(P, null), w = M(I, "ParagraphToolbar"), T = O(), E = a(j, null), D = a(ne, null), k = a(ee, null), A = y(() => (E?.isOpen.value ?? !1) || (D?.isOpen.value ?? !1)), { t: R } = F(), z = w.fonts, B = we.map((e) => ({
|
|
174
173
|
value: e,
|
|
175
|
-
label: e === "normal" ?
|
|
174
|
+
label: e === "normal" ? R.paragraphEditor.letterSpacingNormal : e
|
|
176
175
|
}));
|
|
177
|
-
function
|
|
176
|
+
function V(e) {
|
|
178
177
|
i.isEditable !== !1 && i.editor?.chain().focus().insertContent(e).run();
|
|
179
178
|
}
|
|
180
|
-
function
|
|
179
|
+
function H(e) {
|
|
181
180
|
return i.editor?.getAttributes("textStyle")[e] || "";
|
|
182
181
|
}
|
|
183
|
-
function
|
|
182
|
+
function U(e) {
|
|
184
183
|
let t = i.editor?.chain().focus();
|
|
185
184
|
e ? t?.setFontFamily(e).run() : t?.unsetFontFamily().run();
|
|
186
185
|
}
|
|
187
|
-
function
|
|
186
|
+
function W(e) {
|
|
188
187
|
let t = i.editor?.chain().focus();
|
|
189
188
|
e ? t?.setFontSize(e).run() : t?.unsetFontSize().run();
|
|
190
189
|
}
|
|
191
|
-
function
|
|
190
|
+
function G() {
|
|
192
191
|
return i.editor?.isActive("link") ?? !1;
|
|
193
192
|
}
|
|
194
|
-
function
|
|
193
|
+
function q() {
|
|
195
194
|
return i.editor?.getAttributes("link").color || "";
|
|
196
195
|
}
|
|
197
|
-
function
|
|
196
|
+
function J(e) {
|
|
198
197
|
if (i.isEditable === !1) return;
|
|
199
198
|
let t = i.editor?.chain().focus();
|
|
200
|
-
t && (
|
|
199
|
+
t && (G() ? (t.extendMarkRange("link").updateAttributes("link", { color: e || null }), e && t.unsetColor(), t.run()) : e ? t.setColor(e).updateAttributes("link", { color: e }).run() : t.unsetColor().run());
|
|
201
200
|
}
|
|
202
|
-
function
|
|
201
|
+
function Y() {
|
|
203
202
|
let e = k?.content.value.settings;
|
|
204
|
-
return
|
|
203
|
+
return G() ? je(q(), e?.linkColor || e?.textColor) : je(H("color"), e?.textColor);
|
|
205
204
|
}
|
|
206
|
-
function
|
|
207
|
-
return
|
|
205
|
+
function X() {
|
|
206
|
+
return G() ? q() : H("color");
|
|
208
207
|
}
|
|
209
|
-
function
|
|
208
|
+
function Z() {
|
|
210
209
|
return i.editor?.getAttributes("paragraph").lineHeight || "";
|
|
211
210
|
}
|
|
212
211
|
function De(e) {
|
|
@@ -232,7 +231,7 @@ var Me = ["data-tpl-theme", "aria-label"], Ne = ["disabled", "inert"], Pe = { cl
|
|
|
232
231
|
key: 0,
|
|
233
232
|
"data-tpl-theme": d(x),
|
|
234
233
|
role: "toolbar",
|
|
235
|
-
"aria-label": d(
|
|
234
|
+
"aria-label": d(R).paragraphEditor.toolbar,
|
|
236
235
|
class: "tpl tpl-text-toolbar tpl:absolute tpl:flex tpl:gap-1 tpl:rounded-lg tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2 tpl:shadow-[var(--tpl-shadow-lg)]",
|
|
237
236
|
style: b({
|
|
238
237
|
...d(g),
|
|
@@ -246,26 +245,26 @@ var Me = ["data-tpl-theme", "aria-label"], Ne = ["disabled", "inert"], Pe = { cl
|
|
|
246
245
|
inert: e.isEditable === !1,
|
|
247
246
|
class: "tpl:contents"
|
|
248
247
|
}, [!e.isLoading && e.editor ? (r(), c(S, { key: 0 }, [_("div", Pe, [
|
|
249
|
-
C(
|
|
250
|
-
"model-value": d(
|
|
251
|
-
options: d(
|
|
252
|
-
label: d(
|
|
253
|
-
placeholder: d(
|
|
248
|
+
C(K, {
|
|
249
|
+
"model-value": d(xe)(H("fontFamily")),
|
|
250
|
+
options: d(be)(d(z), H("fontFamily")),
|
|
251
|
+
label: d(R).paragraphEditor.fontFamily,
|
|
252
|
+
placeholder: d(R).paragraphEditor.defaultFont,
|
|
254
253
|
"width-class": "tpl:w-32",
|
|
255
|
-
"onUpdate:modelValue":
|
|
254
|
+
"onUpdate:modelValue": U
|
|
256
255
|
}, null, 8, [
|
|
257
256
|
"model-value",
|
|
258
257
|
"options",
|
|
259
258
|
"label",
|
|
260
259
|
"placeholder"
|
|
261
260
|
]),
|
|
262
|
-
C(
|
|
263
|
-
"model-value":
|
|
264
|
-
options: d(
|
|
265
|
-
label: d(
|
|
266
|
-
placeholder: d(
|
|
261
|
+
C(K, {
|
|
262
|
+
"model-value": H("fontSize"),
|
|
263
|
+
options: d(Se),
|
|
264
|
+
label: d(R).paragraphEditor.fontSize,
|
|
265
|
+
placeholder: d(R).paragraphEditor.defaultSize,
|
|
267
266
|
"width-class": "tpl:w-20",
|
|
268
|
-
"onUpdate:modelValue":
|
|
267
|
+
"onUpdate:modelValue": W
|
|
269
268
|
}, null, 8, [
|
|
270
269
|
"model-value",
|
|
271
270
|
"options",
|
|
@@ -273,29 +272,29 @@ var Me = ["data-tpl-theme", "aria-label"], Ne = ["disabled", "inert"], Pe = { cl
|
|
|
273
272
|
"placeholder"
|
|
274
273
|
]),
|
|
275
274
|
C($),
|
|
276
|
-
C(
|
|
275
|
+
C(L, {
|
|
277
276
|
"swatch-only": "",
|
|
278
277
|
disabled: e.isEditable === !1,
|
|
279
278
|
size: "sm",
|
|
280
279
|
"data-testid": "text-color-picker",
|
|
281
|
-
"model-value":
|
|
282
|
-
"seed-color":
|
|
283
|
-
"aria-label": d(
|
|
284
|
-
"onUpdate:modelValue":
|
|
280
|
+
"model-value": X(),
|
|
281
|
+
"seed-color": Y(),
|
|
282
|
+
"aria-label": d(R).paragraphEditor.textColor,
|
|
283
|
+
"onUpdate:modelValue": J
|
|
285
284
|
}, null, 8, [
|
|
286
285
|
"disabled",
|
|
287
286
|
"model-value",
|
|
288
287
|
"seed-color",
|
|
289
288
|
"aria-label"
|
|
290
289
|
]),
|
|
291
|
-
C(
|
|
290
|
+
C(L, {
|
|
292
291
|
"swatch-only": "",
|
|
293
292
|
disabled: e.isEditable === !1,
|
|
294
293
|
size: "sm",
|
|
295
294
|
"data-testid": "highlight-color-picker",
|
|
296
295
|
"model-value": ke(),
|
|
297
|
-
"seed-color": d(
|
|
298
|
-
"aria-label": d(
|
|
296
|
+
"seed-color": d(Ce),
|
|
297
|
+
"aria-label": d(R).paragraphEditor.highlightColor,
|
|
299
298
|
"onUpdate:modelValue": Ae
|
|
300
299
|
}, null, 8, [
|
|
301
300
|
"disabled",
|
|
@@ -305,8 +304,8 @@ var Me = ["data-tpl-theme", "aria-label"], Ne = ["disabled", "inert"], Pe = { cl
|
|
|
305
304
|
]),
|
|
306
305
|
C($),
|
|
307
306
|
C(Q, {
|
|
308
|
-
icon: d(
|
|
309
|
-
label: d(
|
|
307
|
+
icon: d(de),
|
|
308
|
+
label: d(R).paragraphEditor.bold,
|
|
310
309
|
active: e.editor.isActive("bold"),
|
|
311
310
|
"stroke-width": 2.5,
|
|
312
311
|
onClick: i[0] ||= (t) => e.editor.chain().focus().toggleBold().run()
|
|
@@ -316,8 +315,8 @@ var Me = ["data-tpl-theme", "aria-label"], Ne = ["disabled", "inert"], Pe = { cl
|
|
|
316
315
|
"active"
|
|
317
316
|
]),
|
|
318
317
|
C(Q, {
|
|
319
|
-
icon: d(
|
|
320
|
-
label: d(
|
|
318
|
+
icon: d(me),
|
|
319
|
+
label: d(R).paragraphEditor.italic,
|
|
321
320
|
active: e.editor.isActive("italic"),
|
|
322
321
|
onClick: i[1] ||= (t) => e.editor.chain().focus().toggleItalic().run()
|
|
323
322
|
}, null, 8, [
|
|
@@ -326,8 +325,8 @@ var Me = ["data-tpl-theme", "aria-label"], Ne = ["disabled", "inert"], Pe = { cl
|
|
|
326
325
|
"active"
|
|
327
326
|
]),
|
|
328
327
|
C(Q, {
|
|
329
|
-
icon: d(
|
|
330
|
-
label: d(
|
|
328
|
+
icon: d(he),
|
|
329
|
+
label: d(R).paragraphEditor.underline,
|
|
331
330
|
active: e.editor.isActive("underline"),
|
|
332
331
|
onClick: i[2] ||= (t) => e.editor.chain().focus().toggleUnderline().run()
|
|
333
332
|
}, null, 8, [
|
|
@@ -336,8 +335,8 @@ var Me = ["data-tpl-theme", "aria-label"], Ne = ["disabled", "inert"], Pe = { cl
|
|
|
336
335
|
"active"
|
|
337
336
|
]),
|
|
338
337
|
C(Q, {
|
|
339
|
-
icon: d(
|
|
340
|
-
label: d(
|
|
338
|
+
icon: d(re),
|
|
339
|
+
label: d(R).paragraphEditor.strikethrough,
|
|
341
340
|
active: e.editor.isActive("strike"),
|
|
342
341
|
onClick: i[3] ||= (t) => e.editor.chain().focus().toggleStrike().run()
|
|
343
342
|
}, null, 8, [
|
|
@@ -347,8 +346,8 @@ var Me = ["data-tpl-theme", "aria-label"], Ne = ["disabled", "inert"], Pe = { cl
|
|
|
347
346
|
]),
|
|
348
347
|
C($),
|
|
349
348
|
C(Q, {
|
|
350
|
-
icon: d(
|
|
351
|
-
label: d(
|
|
349
|
+
icon: d(se),
|
|
350
|
+
label: d(R).paragraphEditor.subscript,
|
|
352
351
|
active: e.editor.isActive("subscript"),
|
|
353
352
|
onClick: i[4] ||= (t) => e.editor.chain().focus().toggleSubscript().run()
|
|
354
353
|
}, null, 8, [
|
|
@@ -357,8 +356,8 @@ var Me = ["data-tpl-theme", "aria-label"], Ne = ["disabled", "inert"], Pe = { cl
|
|
|
357
356
|
"active"
|
|
358
357
|
]),
|
|
359
358
|
C(Q, {
|
|
360
|
-
icon: d(
|
|
361
|
-
label: d(
|
|
359
|
+
icon: d(ue),
|
|
360
|
+
label: d(R).paragraphEditor.superscript,
|
|
362
361
|
active: e.editor.isActive("superscript"),
|
|
363
362
|
onClick: i[5] ||= (t) => e.editor.chain().focus().toggleSuperscript().run()
|
|
364
363
|
}, null, 8, [
|
|
@@ -368,8 +367,8 @@ var Me = ["data-tpl-theme", "aria-label"], Ne = ["disabled", "inert"], Pe = { cl
|
|
|
368
367
|
]),
|
|
369
368
|
C($),
|
|
370
369
|
C(Q, {
|
|
371
|
-
icon: d(
|
|
372
|
-
label: d(
|
|
370
|
+
icon: d(ge),
|
|
371
|
+
label: d(R).paragraphEditor.addLink,
|
|
373
372
|
active: e.editor.isActive("link"),
|
|
374
373
|
onClick: i[6] ||= (e) => f("open-link-dialog")
|
|
375
374
|
}, null, 8, [
|
|
@@ -379,8 +378,8 @@ var Me = ["data-tpl-theme", "aria-label"], Ne = ["disabled", "inert"], Pe = { cl
|
|
|
379
378
|
])
|
|
380
379
|
]), _("div", Fe, [
|
|
381
380
|
C(Q, {
|
|
382
|
-
icon: d(
|
|
383
|
-
label: d(
|
|
381
|
+
icon: d(_e),
|
|
382
|
+
label: d(R).paragraphEditor.bulletList,
|
|
384
383
|
active: e.editor.isActive("bulletList"),
|
|
385
384
|
onClick: i[7] ||= (t) => e.editor.chain().focus().toggleBulletList().run()
|
|
386
385
|
}, null, 8, [
|
|
@@ -389,8 +388,8 @@ var Me = ["data-tpl-theme", "aria-label"], Ne = ["disabled", "inert"], Pe = { cl
|
|
|
389
388
|
"active"
|
|
390
389
|
]),
|
|
391
390
|
C(Q, {
|
|
392
|
-
icon: d(
|
|
393
|
-
label: d(
|
|
391
|
+
icon: d(ve),
|
|
392
|
+
label: d(R).paragraphEditor.numberedList,
|
|
394
393
|
active: e.editor.isActive("orderedList"),
|
|
395
394
|
onClick: i[8] ||= (t) => e.editor.chain().focus().toggleOrderedList().run()
|
|
396
395
|
}, null, 8, [
|
|
@@ -400,8 +399,8 @@ var Me = ["data-tpl-theme", "aria-label"], Ne = ["disabled", "inert"], Pe = { cl
|
|
|
400
399
|
]),
|
|
401
400
|
C($),
|
|
402
401
|
C(Q, {
|
|
403
|
-
icon: d(
|
|
404
|
-
label: d(
|
|
402
|
+
icon: d(pe),
|
|
403
|
+
label: d(R).paragraphEditor.alignLeft,
|
|
405
404
|
active: e.editor.isActive({ textAlign: "left" }),
|
|
406
405
|
onClick: i[9] ||= (t) => e.editor.chain().focus().setTextAlign("left").run()
|
|
407
406
|
}, null, 8, [
|
|
@@ -410,8 +409,8 @@ var Me = ["data-tpl-theme", "aria-label"], Ne = ["disabled", "inert"], Pe = { cl
|
|
|
410
409
|
"active"
|
|
411
410
|
]),
|
|
412
411
|
C(Q, {
|
|
413
|
-
icon: d(
|
|
414
|
-
label: d(
|
|
412
|
+
icon: d(ce),
|
|
413
|
+
label: d(R).paragraphEditor.alignCenter,
|
|
415
414
|
active: e.editor.isActive({ textAlign: "center" }),
|
|
416
415
|
onClick: i[10] ||= (t) => e.editor.chain().focus().setTextAlign("center").run()
|
|
417
416
|
}, null, 8, [
|
|
@@ -420,8 +419,8 @@ var Me = ["data-tpl-theme", "aria-label"], Ne = ["disabled", "inert"], Pe = { cl
|
|
|
420
419
|
"active"
|
|
421
420
|
]),
|
|
422
421
|
C(Q, {
|
|
423
|
-
icon: d(
|
|
424
|
-
label: d(
|
|
422
|
+
icon: d(ye),
|
|
423
|
+
label: d(R).paragraphEditor.alignRight,
|
|
425
424
|
active: e.editor.isActive({ textAlign: "right" }),
|
|
426
425
|
onClick: i[11] ||= (t) => e.editor.chain().focus().setTextAlign("right").run()
|
|
427
426
|
}, null, 8, [
|
|
@@ -430,8 +429,8 @@ var Me = ["data-tpl-theme", "aria-label"], Ne = ["disabled", "inert"], Pe = { cl
|
|
|
430
429
|
"active"
|
|
431
430
|
]),
|
|
432
431
|
C(Q, {
|
|
433
|
-
icon: d(
|
|
434
|
-
label: d(
|
|
432
|
+
icon: d(fe),
|
|
433
|
+
label: d(R).paragraphEditor.alignJustify,
|
|
435
434
|
active: e.editor.isActive({ textAlign: "justify" }),
|
|
436
435
|
onClick: i[12] ||= (t) => e.editor.chain().focus().setTextAlign("justify").run()
|
|
437
436
|
}, null, 8, [
|
|
@@ -440,11 +439,11 @@ var Me = ["data-tpl-theme", "aria-label"], Ne = ["disabled", "inert"], Pe = { cl
|
|
|
440
439
|
"active"
|
|
441
440
|
]),
|
|
442
441
|
C($),
|
|
443
|
-
C(
|
|
444
|
-
"model-value":
|
|
445
|
-
options: d(
|
|
446
|
-
label: d(
|
|
447
|
-
placeholder: d(
|
|
442
|
+
C(K, {
|
|
443
|
+
"model-value": Z(),
|
|
444
|
+
options: d(Te),
|
|
445
|
+
label: d(R).paragraphEditor.lineHeight,
|
|
446
|
+
placeholder: d(R).paragraphEditor.lineHeightShort,
|
|
448
447
|
"width-class": "tpl:w-16",
|
|
449
448
|
"onUpdate:modelValue": De
|
|
450
449
|
}, null, 8, [
|
|
@@ -453,11 +452,11 @@ var Me = ["data-tpl-theme", "aria-label"], Ne = ["disabled", "inert"], Pe = { cl
|
|
|
453
452
|
"label",
|
|
454
453
|
"placeholder"
|
|
455
454
|
]),
|
|
456
|
-
C(
|
|
457
|
-
"model-value":
|
|
458
|
-
options: d(
|
|
459
|
-
label: d(
|
|
460
|
-
placeholder: d(
|
|
455
|
+
C(K, {
|
|
456
|
+
"model-value": H("letterSpacing"),
|
|
457
|
+
options: d(B),
|
|
458
|
+
label: d(R).paragraphEditor.letterSpacing,
|
|
459
|
+
placeholder: d(R).paragraphEditor.letterSpacingShort,
|
|
461
460
|
"width-class": "tpl:w-20",
|
|
462
461
|
"onUpdate:modelValue": Oe
|
|
463
462
|
}, null, 8, [
|
|
@@ -468,39 +467,39 @@ var Me = ["data-tpl-theme", "aria-label"], Ne = ["disabled", "inert"], Pe = { cl
|
|
|
468
467
|
]),
|
|
469
468
|
C($),
|
|
470
469
|
C(Q, {
|
|
471
|
-
icon: d(
|
|
472
|
-
label: d(
|
|
470
|
+
icon: d(ae),
|
|
471
|
+
label: d(R).paragraphEditor.clearFormatting,
|
|
473
472
|
onClick: i[13] ||= (t) => e.editor.chain().focus().clearNodes().unsetAllMarks().run()
|
|
474
473
|
}, null, 8, ["icon", "label"]),
|
|
475
474
|
C($),
|
|
476
|
-
C(Ee, { onInsert:
|
|
475
|
+
C(Ee, { onInsert: V }),
|
|
477
476
|
e.canRequestMergeTag ? (r(), c(S, { key: 0 }, [C($), _("button", {
|
|
478
477
|
type: "button",
|
|
479
478
|
class: "tpl:flex tpl:h-8 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded tpl:border-none tpl:bg-transparent tpl:px-2.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)] tpl:transition-all tpl:hover:bg-[var(--tpl-bg-active)]",
|
|
480
|
-
"aria-label": d(
|
|
481
|
-
title: d(
|
|
479
|
+
"aria-label": d(R).mergeTag.insert,
|
|
480
|
+
title: d(R).mergeTag.insert,
|
|
482
481
|
onClick: i[14] ||= (e) => f("add-merge-tag")
|
|
483
|
-
}, [C(d(
|
|
482
|
+
}, [C(d(oe), {
|
|
484
483
|
size: 16,
|
|
485
484
|
"stroke-width": 2
|
|
486
|
-
}), l(" " + v(d(
|
|
485
|
+
}), l(" " + v(d(R).mergeTag.insertShort), 1)], 8, Ie)], 64)) : m("", !0),
|
|
487
486
|
e.canInsertLogicTag ? (r(), c(S, { key: 1 }, [C($), _("button", {
|
|
488
487
|
type: "button",
|
|
489
488
|
class: "tpl:flex tpl:h-8 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded tpl:border-none tpl:bg-transparent tpl:px-2.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)] tpl:transition-all tpl:hover:bg-[var(--tpl-bg-active)]",
|
|
490
|
-
"aria-label": d(
|
|
491
|
-
title: d(
|
|
489
|
+
"aria-label": d(R).logicTag.insert,
|
|
490
|
+
title: d(R).logicTag.insert,
|
|
492
491
|
"data-testid": "insert-logic-button",
|
|
493
492
|
onClick: i[15] ||= (e) => f("add-logic-tag")
|
|
494
|
-
}, [C(d(
|
|
493
|
+
}, [C(d(ie), {
|
|
495
494
|
size: 16,
|
|
496
495
|
"stroke-width": 2
|
|
497
|
-
}), l(" " + v(d(
|
|
496
|
+
}), l(" " + v(d(R).logicTag.insertShort), 1)], 8, Le)], 64)) : m("", !0),
|
|
498
497
|
u.value ? (r(), c(S, { key: 2 }, [C($), C(d(n), { editor: e.editor }, null, 8, ["editor"])], 64)) : m("", !0)
|
|
499
|
-
])], 64)) : (r(), c("div", Re, [C(d(
|
|
498
|
+
])], 64)) : (r(), c("div", Re, [C(d(le), {
|
|
500
499
|
class: "tpl-spinner",
|
|
501
500
|
size: 14,
|
|
502
501
|
"stroke-width": 2
|
|
503
|
-
}), l(" " + v(d(
|
|
502
|
+
}), l(" " + v(d(R).errors.editorLoading), 1)]))], 8, Ne)], 12, Me))], 8, ["to"])) : m("", !0);
|
|
504
503
|
}
|
|
505
504
|
}), Be = { class: "tpl-text-editor-wrapper tpl:relative" }, Ve = /*@__PURE__*/ n({
|
|
506
505
|
__name: "ParagraphEditor",
|
|
@@ -510,25 +509,25 @@ var Me = ["data-tpl-theme", "aria-label"], Ne = ["disabled", "inert"], Pe = { cl
|
|
|
510
509
|
},
|
|
511
510
|
emits: ["done"],
|
|
512
511
|
setup(e, { emit: t }) {
|
|
513
|
-
let n = e, i = t, o = O(), l = a(
|
|
512
|
+
let n = e, i = t, o = O(), l = a(ee, null), u = l?.content ? A(l) : null, f = y(() => k(u?.settings.value ?? { locale: "en" }) === "rtl" ? "right" : "left"), { editor: p, EditorContent: m, isLoading: h, isEditable: g, initError: _, retry: v, showLinkDialog: b, linkUrl: x, linkColor: S, linkDialogRef: E, canRequestMergeTag: D, canInsertLogicTag: j, openLinkDialog: te, insertLink: ne, removeLink: M, closeLinkDialog: N, handleLinkKeydown: P, handleAddMergeTag: F, handleAddLogicTag: I } = w({
|
|
514
513
|
blockId: () => n.block.id,
|
|
515
514
|
blockContent: () => n.block.content,
|
|
516
515
|
onDone: () => i("done"),
|
|
517
516
|
editorName: "ParagraphEditor",
|
|
518
517
|
async loadExtensions({ mergeTags: e, syntax: t, triggerChar: n, autocompleteEnabled: r, suggestionEmptyText: i }) {
|
|
519
|
-
let [{ Editor: a, EditorContent: s }, { default: c }, { default: l }, { default: u }, { default: d }, { default: p }, { default: m }, { TextStyle: h }, { default: g }, { default: _ }, { default: v }, { MergeTagNode: y, MergeTagSuggestion: b, LogicMergeTagNode: x, FontSize: S, LineHeight: C, LetterSpacing: w, LineBoundaryKeys:
|
|
520
|
-
import("./tiptap-
|
|
521
|
-
import("./tiptap-
|
|
522
|
-
import("./tiptap-
|
|
523
|
-
import("./tiptap-
|
|
524
|
-
import("./tiptap-
|
|
525
|
-
import("./tiptap-
|
|
526
|
-
import("./tiptap-
|
|
527
|
-
import("./tiptap-
|
|
528
|
-
import("./tiptap-
|
|
529
|
-
import("./tiptap-
|
|
530
|
-
import("./tiptap-
|
|
531
|
-
import("./extensions-
|
|
518
|
+
let [{ Editor: a, EditorContent: s }, { default: c }, { default: l }, { default: u }, { default: d }, { default: p }, { default: m }, { TextStyle: h }, { default: g }, { default: _ }, { default: v }, { MergeTagNode: y, MergeTagSuggestion: b, LogicMergeTagNode: x, FontSize: S, LineHeight: C, LetterSpacing: w, LineBoundaryKeys: E }] = await Promise.all([
|
|
519
|
+
import("./tiptap-DLW5XdqI.js").then((e) => e.i),
|
|
520
|
+
import("./tiptap-DLW5XdqI.js").then((e) => e.a),
|
|
521
|
+
import("./tiptap-DLW5XdqI.js").then((e) => e.u),
|
|
522
|
+
import("./tiptap-DLW5XdqI.js").then((e) => e.o),
|
|
523
|
+
import("./tiptap-DLW5XdqI.js").then((e) => e.l),
|
|
524
|
+
import("./tiptap-DLW5XdqI.js").then((e) => e.c),
|
|
525
|
+
import("./tiptap-DLW5XdqI.js").then((e) => e.s),
|
|
526
|
+
import("./tiptap-DLW5XdqI.js").then((e) => e.m),
|
|
527
|
+
import("./tiptap-DLW5XdqI.js").then((e) => e.p),
|
|
528
|
+
import("./tiptap-DLW5XdqI.js").then((e) => e.f),
|
|
529
|
+
import("./tiptap-DLW5XdqI.js").then((e) => e.d),
|
|
530
|
+
import("./extensions-Br2hHeiR.js")
|
|
532
531
|
]);
|
|
533
532
|
return {
|
|
534
533
|
TiptapEditor: a,
|
|
@@ -545,7 +544,7 @@ var Me = ["data-tpl-theme", "aria-label"], Ne = ["disabled", "inert"], Pe = { cl
|
|
|
545
544
|
u,
|
|
546
545
|
d,
|
|
547
546
|
p,
|
|
548
|
-
|
|
547
|
+
T(l).configure({
|
|
549
548
|
openOnClick: !1,
|
|
550
549
|
HTMLAttributes: {
|
|
551
550
|
target: "_blank",
|
|
@@ -583,7 +582,7 @@ var Me = ["data-tpl-theme", "aria-label"], Ne = ["disabled", "inert"], Pe = { cl
|
|
|
583
582
|
syntax: t
|
|
584
583
|
}),
|
|
585
584
|
x.configure({ syntax: t }),
|
|
586
|
-
|
|
585
|
+
E,
|
|
587
586
|
...r && n && e.value.length > 0 ? [b.configure({
|
|
588
587
|
mergeTags: () => e.value,
|
|
589
588
|
char: n,
|
|
@@ -600,9 +599,9 @@ var Me = ["data-tpl-theme", "aria-label"], Ne = ["disabled", "inert"], Pe = { cl
|
|
|
600
599
|
"toolbar-position": e.toolbarPosition,
|
|
601
600
|
"is-loading": d(h),
|
|
602
601
|
"is-editable": d(g),
|
|
603
|
-
"can-request-merge-tag": d(
|
|
602
|
+
"can-request-merge-tag": d(D),
|
|
604
603
|
"can-insert-logic-tag": d(j),
|
|
605
|
-
onOpenLinkDialog: d(
|
|
604
|
+
onOpenLinkDialog: d(te),
|
|
606
605
|
onAddMergeTag: d(F),
|
|
607
606
|
onAddLogicTag: d(I)
|
|
608
607
|
}, null, 8, [
|
|
@@ -616,7 +615,7 @@ var Me = ["data-tpl-theme", "aria-label"], Ne = ["disabled", "inert"], Pe = { cl
|
|
|
616
615
|
"onAddMergeTag",
|
|
617
616
|
"onAddLogicTag"
|
|
618
617
|
]),
|
|
619
|
-
C(
|
|
618
|
+
C(H, {
|
|
620
619
|
editor: d(p),
|
|
621
620
|
"editor-content": d(m),
|
|
622
621
|
"is-loading": d(h),
|
|
@@ -629,17 +628,17 @@ var Me = ["data-tpl-theme", "aria-label"], Ne = ["disabled", "inert"], Pe = { cl
|
|
|
629
628
|
"init-error",
|
|
630
629
|
"onRetry"
|
|
631
630
|
]),
|
|
632
|
-
C(
|
|
631
|
+
C(V, {
|
|
633
632
|
visible: d(b),
|
|
634
633
|
"is-editing-link": d(p)?.isActive("link") ?? !1,
|
|
635
|
-
"dialog-ref": d(
|
|
636
|
-
"onUpdate:dialogRef": n[0] ||= (e) => s(
|
|
634
|
+
"dialog-ref": d(E),
|
|
635
|
+
"onUpdate:dialogRef": n[0] ||= (e) => s(E) ? E.value = e : null,
|
|
637
636
|
"link-url": d(x),
|
|
638
637
|
"onUpdate:linkUrl": n[1] ||= (e) => s(x) ? x.value = e : null,
|
|
639
638
|
"link-color": d(S),
|
|
640
639
|
"onUpdate:linkColor": n[2] ||= (e) => s(S) ? S.value = e : null,
|
|
641
640
|
onClose: d(N),
|
|
642
|
-
onInsert: d(
|
|
641
|
+
onInsert: d(ne),
|
|
643
642
|
onRemove: d(M),
|
|
644
643
|
onKeydown: d(P)
|
|
645
644
|
}, null, 8, [
|
|
@@ -656,6 +655,6 @@ var Me = ["data-tpl-theme", "aria-label"], Ne = ["disabled", "inert"], Pe = { cl
|
|
|
656
655
|
]));
|
|
657
656
|
}
|
|
658
657
|
}), He = /* @__PURE__ */ e({ default: () => Ue }), Ue = Ve;
|
|
659
|
-
export { Ue as default,
|
|
658
|
+
export { Ue as default, K as n, He as t };
|
|
660
659
|
|
|
661
|
-
//# sourceMappingURL=ParagraphEditor-
|
|
660
|
+
//# sourceMappingURL=ParagraphEditor-CWjMxuy0.js.map
|