@templatical/editor 0.52.0 → 0.53.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/README.md +1 -1
- package/dist/AiAltTextPopover-NMJqQKvD.js +106 -0
- package/dist/{AiAltTextReview-DE8t8Rud.js → AiAltTextReview-Ci4zHwRc.js} +68 -66
- package/dist/{AiChatPanel-7ftS7d40.js → AiChatPanel-DdhtfsmO.js} +223 -210
- package/dist/{AiPanels-CxGp6klr.js → AiPanels-HBx7xoJR.js} +6 -6
- package/dist/{AiRewriteMenu-DNI-5CUj.js → AiRewriteMenu-DPzSekZt.js} +78 -107
- package/dist/BlockIssueBadge-eIXZJ9M3.js +33 -0
- package/dist/BlockPreviewCanvas-DO-2TP_6.js +140 -0
- package/dist/{CloudHeaderExtras-CsgyNNV1.js → CloudHeaderExtras-XpjJjn3o.js} +4 -4
- package/dist/{CloudPanels-BDV4XQ_l.js → CloudPanels-i2kZdrdP.js} +44 -44
- package/dist/CollaborationNotices-DANsjl7c.js +65 -0
- package/dist/{CollaboratorBar-EeqqWcX6.js → CollaboratorBar-CbbAA0m1.js} +24 -24
- package/dist/CommentsPanel-CYW3LWis.js +16 -0
- package/dist/CommentsSidebar-CcF4ISMi.js +526 -0
- package/dist/{CountdownBlock-BT3ZTH1F.js → CountdownBlock-BMezkFbJ.js} +21 -21
- package/dist/CountdownToolbar-D3Lv74kU.js +258 -0
- package/dist/{IssuesPanel-BHFQ3wrP.js → IssuesPanel-BMAG9042.js} +141 -129
- package/dist/LanguageMenu-FlP_Jbup.js +403 -0
- package/dist/{LoadingTrack-DZA5AoP9.js → LoadingTrack-BG8cg9xi.js} +2 -2
- package/dist/LocaleNotices-DAnVszWu.js +46 -0
- package/dist/{LogicTagInsertButton-CSD9cfJB.js → LogicTagInsertButton-BjYs-UQX.js} +439 -430
- package/dist/{MediaEditModal-DQl5w44r.js → MediaEditModal-LnG-cF_S.js} +160 -160
- package/dist/{MediaPanels-BFWYuJot.js → MediaPanels-C2r5fiFo.js} +4 -4
- package/dist/{cdn/chunks/MergeTagInput-CFu9VXPS.js → MergeTagInput-BsnogCeY.js} +32 -34
- package/dist/{MergeTagModeToggle-DvD0ne7N.js → MergeTagModeToggle-DiufIQ-_.js} +49 -49
- package/dist/MergeTagTextarea-BweI-Xsi.js +126 -0
- package/dist/{ParagraphEditor-D-nqs82g.js → ParagraphEditor-qgBp5yIB.js} +286 -257
- package/dist/{RestoreVersionDialog-DqUPsLB9.js → RestoreVersionDialog-DdYUrFiK.js} +23 -23
- package/dist/{RichTextEditorContent-Xq9D0Zs3.js → RichTextEditorContent-C5MAzx3E.js} +54 -53
- package/dist/{SaveBlockDialog-DAPv70p4.js → SaveBlockDialog-eK6fjtTy.js} +86 -86
- package/dist/SavedBlocksBrowserModal-D2QHd2Yp.js +359 -0
- package/dist/{SavedBlocksPanels-ChbL9v9x.js → SavedBlocksPanels-Cl61f4Mf.js} +9 -9
- package/dist/{SavedBlocksPickBar-hRaiLNdu.js → SavedBlocksPickBar-CXP2dkeB.js} +15 -15
- package/dist/TemplateSettings-BKJrdZcH.js +294 -0
- package/dist/TestEmailModal-DQotJg6g.js +212 -0
- package/dist/{TestEmailPanel-COJQa2A9.js → TestEmailPanel-CwiTzJsh.js} +4 -4
- package/dist/TitleEditor-CzSvsPAn.js +202 -0
- package/dist/ToggleSwitch-R3wCCYE6.js +43 -0
- package/dist/Toolbar-Cd75ci5W.js +3711 -0
- package/dist/{TplModal-9IndEYk5.js → TplModal-ZoXu40T9.js} +17 -17
- package/dist/{VersionHistoryMenu-BG5qayvg.js → VersionHistoryMenu-BvhN-Ofk.js} +39 -39
- package/dist/{VersionHistoryPanels-hPg7Q5-f.js → VersionHistoryPanels-DPWMnYbd.js} +5 -5
- package/dist/VersionPreviewBanner-CuJnasxH.js +37 -0
- package/dist/WrapperBlock-D4fPwO0t.js +44 -0
- package/dist/{blockTypeIcons-yt7SLzub.js → blockTypeIcons-BXMxu86H.js} +27 -26
- package/dist/bundle-stats.json +8 -8
- package/dist/{cdn/chunks/ca-CD-Kt1qz.js → ca-DOuIxWRv.js} +114 -2
- package/dist/cdn/chunks/AiAltTextPopover-ByZ0FEqI.js +107 -0
- package/dist/cdn/chunks/AiAltTextPopover-ByZ0FEqI.js.map +1 -0
- package/dist/cdn/chunks/{AiAltTextReview-BafAtBoA.js → AiAltTextReview-Dtm3A2cD.js} +71 -69
- package/dist/cdn/chunks/AiAltTextReview-Dtm3A2cD.js.map +1 -0
- package/dist/cdn/chunks/AiChatPanel-DciEt27y.js +487 -0
- package/dist/cdn/chunks/AiChatPanel-DciEt27y.js.map +1 -0
- package/dist/cdn/chunks/{AiPanels-B4uAVRoO.js → AiPanels-BV5D1itk.js} +11 -11
- package/dist/cdn/chunks/{AiPanels-B4uAVRoO.js.map → AiPanels-BV5D1itk.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-4F6vwhJ5.js → AiRewriteMenu-D3jkh6Xb.js} +80 -80
- package/dist/cdn/chunks/AiRewriteMenu-D3jkh6Xb.js.map +1 -0
- package/dist/cdn/chunks/BlockIssueBadge-DyEgBZtR.js +34 -0
- package/dist/cdn/chunks/BlockIssueBadge-DyEgBZtR.js.map +1 -0
- package/dist/cdn/chunks/BlockPreviewCanvas-RQFilqXC.js +142 -0
- package/dist/cdn/chunks/{BlockPreviewCanvas-Ny1X_mee.js.map → BlockPreviewCanvas-RQFilqXC.js.map} +1 -1
- package/dist/cdn/chunks/{CloudHeaderExtras-DtMORiLS.js → CloudHeaderExtras-BtqdN777.js} +4 -4
- package/dist/cdn/chunks/{CloudHeaderExtras-DtMORiLS.js.map → CloudHeaderExtras-BtqdN777.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-BkmLc2Fl.js → CloudPanels-BSJ-Z5Hw.js} +43 -43
- package/dist/cdn/chunks/{CloudPanels-BkmLc2Fl.js.map → CloudPanels-BSJ-Z5Hw.js.map} +1 -1
- package/dist/cdn/chunks/CollaborationNotices-BS7xrlPE.js +67 -0
- package/dist/cdn/chunks/CollaborationNotices-BS7xrlPE.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-II8eYtKu.js → CollaboratorBar-Bc9914Az.js} +16 -16
- package/dist/cdn/chunks/{CollaboratorBar-II8eYtKu.js.map → CollaboratorBar-Bc9914Az.js.map} +1 -1
- package/dist/cdn/chunks/CommentsPanel-DbR9phAk.js +18 -0
- package/dist/cdn/chunks/{CommentsPanel-CAiwilM2.js.map → CommentsPanel-DbR9phAk.js.map} +1 -1
- package/dist/cdn/chunks/CommentsSidebar-BD4--XP2.js +496 -0
- package/dist/cdn/chunks/CommentsSidebar-BD4--XP2.js.map +1 -0
- package/dist/cdn/chunks/{CountdownBlock-Dyr5P0IP.js → CountdownBlock-CjMhMhnv.js} +26 -26
- package/dist/cdn/chunks/{CountdownBlock-Dyr5P0IP.js.map → CountdownBlock-CjMhMhnv.js.map} +1 -1
- package/dist/cdn/chunks/CountdownToolbar-DxwYBw-d.js +260 -0
- package/dist/cdn/chunks/CountdownToolbar-DxwYBw-d.js.map +1 -0
- package/dist/cdn/chunks/{IssuesPanel-pr7_nuLI.js → IssuesPanel-CUmI4HMm.js} +132 -120
- package/dist/cdn/chunks/IssuesPanel-CUmI4HMm.js.map +1 -0
- package/dist/cdn/chunks/LanguageMenu-3ydCozQJ.js +359 -0
- package/dist/cdn/chunks/LanguageMenu-3ydCozQJ.js.map +1 -0
- package/dist/cdn/chunks/{LoadingTrack-DfJ_C33G.js → LoadingTrack-DUYcDHOV.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-DfJ_C33G.js.map → LoadingTrack-DUYcDHOV.js.map} +1 -1
- package/dist/cdn/chunks/LocaleNotices-BfoH6gST.js +47 -0
- package/dist/cdn/chunks/LocaleNotices-BfoH6gST.js.map +1 -0
- package/dist/cdn/chunks/{LogicTagInsertButton-B_ldj3TO.js → LogicTagInsertButton-5Z3fFzjc.js} +465 -456
- package/dist/cdn/chunks/LogicTagInsertButton-5Z3fFzjc.js.map +1 -0
- package/dist/cdn/chunks/{MediaEditModal-CGfzcHwP.js → MediaEditModal-DDCIwr9U.js} +439 -439
- package/dist/cdn/chunks/MediaEditModal-DDCIwr9U.js.map +1 -0
- package/dist/cdn/chunks/{MediaPanels-D0BdxdqP.js → MediaPanels-Dz79oy8P.js} +5 -5
- package/dist/cdn/chunks/{MediaPanels-D0BdxdqP.js.map → MediaPanels-Dz79oy8P.js.map} +1 -1
- package/dist/cdn/chunks/MergeTagInput-CIWy-cXf.js +82 -0
- package/dist/cdn/chunks/{MergeTagInput-CFu9VXPS.js.map → MergeTagInput-CIWy-cXf.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-BFpK5dxg.js → MergeTagModeToggle-BrP5GR-x.js} +50 -50
- package/dist/cdn/chunks/MergeTagModeToggle-BrP5GR-x.js.map +1 -0
- package/dist/cdn/chunks/MergeTagTextarea-D3nNDlhV.js +128 -0
- package/dist/cdn/chunks/MergeTagTextarea-D3nNDlhV.js.map +1 -0
- package/dist/cdn/chunks/ParagraphEditor-DDolH_Pf.js +660 -0
- package/dist/cdn/chunks/ParagraphEditor-DDolH_Pf.js.map +1 -0
- package/dist/cdn/chunks/{RestoreVersionDialog-B866zFP0.js → RestoreVersionDialog-Crj1DBqC.js} +18 -18
- package/dist/cdn/chunks/{RestoreVersionDialog-B866zFP0.js.map → RestoreVersionDialog-Crj1DBqC.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-DaY63kye.js → RichTextEditorContent-rCCqFlwJ.js} +43 -43
- package/dist/cdn/chunks/{RichTextEditorContent-DaY63kye.js.map → RichTextEditorContent-rCCqFlwJ.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-B7nftAAS.js → SaveBlockDialog-C34RW1aM.js} +71 -71
- package/dist/cdn/chunks/{SaveBlockDialog-B7nftAAS.js.map → SaveBlockDialog-C34RW1aM.js.map} +1 -1
- package/dist/cdn/chunks/SavedBlocksBrowserModal-CJnwWPT-.js +356 -0
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-B9XCjDfm.js.map → SavedBlocksBrowserModal-CJnwWPT-.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-C3nK90pz.js → SavedBlocksPanels-CA2PqXIH.js} +9 -9
- package/dist/cdn/chunks/{SavedBlocksPanels-C3nK90pz.js.map → SavedBlocksPanels-CA2PqXIH.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-B166Mek9.js → SavedBlocksPickBar-Dj3ortee.js} +16 -16
- package/dist/cdn/chunks/{SavedBlocksPickBar-B166Mek9.js.map → SavedBlocksPickBar-Dj3ortee.js.map} +1 -1
- package/dist/cdn/chunks/TemplateSettings-sW0ZlDl1.js +266 -0
- package/dist/cdn/chunks/TemplateSettings-sW0ZlDl1.js.map +1 -0
- package/dist/cdn/chunks/{TestEmailModal-DcwKhFnI.js → TestEmailModal-BXeCtTjU.js} +81 -78
- package/dist/cdn/chunks/TestEmailModal-BXeCtTjU.js.map +1 -0
- package/dist/cdn/chunks/{TestEmailPanel-BDBAvAfI.js → TestEmailPanel-CpZcpB9D.js} +5 -5
- package/dist/cdn/chunks/{TestEmailPanel-BDBAvAfI.js.map → TestEmailPanel-CpZcpB9D.js.map} +1 -1
- package/dist/cdn/chunks/TitleEditor-Bv3SmSO6.js +202 -0
- package/dist/cdn/chunks/TitleEditor-Bv3SmSO6.js.map +1 -0
- package/dist/cdn/chunks/ToggleSwitch-BSkySwA1.js +45 -0
- package/dist/cdn/chunks/ToggleSwitch-BSkySwA1.js.map +1 -0
- package/dist/cdn/chunks/Toolbar-BJKpJ2Mg.js +3626 -0
- package/dist/cdn/chunks/Toolbar-BJKpJ2Mg.js.map +1 -0
- package/dist/cdn/chunks/{TplModal-BDyeS69p.js → TplModal-DDDUDMYC.js} +19 -19
- package/dist/cdn/chunks/{TplModal-BDyeS69p.js.map → TplModal-DDDUDMYC.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-CmpgUI4Q.js → VersionHistoryMenu-DSElv3Sv.js} +36 -36
- package/dist/cdn/chunks/{VersionHistoryMenu-CmpgUI4Q.js.map → VersionHistoryMenu-DSElv3Sv.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-DB_FZyyg.js → VersionHistoryPanels-H2nuik1l.js} +6 -6
- package/dist/cdn/chunks/{VersionHistoryPanels-DB_FZyyg.js.map → VersionHistoryPanels-H2nuik1l.js.map} +1 -1
- package/dist/cdn/chunks/VersionPreviewBanner-Whwxh55w.js +39 -0
- package/dist/cdn/chunks/VersionPreviewBanner-Whwxh55w.js.map +1 -0
- package/dist/cdn/chunks/WrapperBlock-jTqsuLnS.js +46 -0
- package/dist/cdn/chunks/WrapperBlock-jTqsuLnS.js.map +1 -0
- package/dist/cdn/chunks/blockTypeIcons-DMgLcuI8.js +21 -0
- package/dist/cdn/chunks/blockTypeIcons-DMgLcuI8.js.map +1 -0
- package/dist/{ca-CD-Kt1qz.js → cdn/chunks/ca-DOuIxWRv.js} +116 -0
- package/dist/cdn/chunks/ca-DOuIxWRv.js.map +1 -0
- package/dist/cdn/chunks/composables-D0UYam2P.js +3039 -0
- package/dist/cdn/chunks/composables-D0UYam2P.js.map +1 -0
- package/dist/cdn/chunks/{createCloudRuntime-D6niZ2Rc.js → createCloudRuntime-BdsclY8_.js} +85 -83
- package/dist/cdn/chunks/createCloudRuntime-BdsclY8_.js.map +1 -0
- package/dist/{de-CeFJ6wbM.js → cdn/chunks/de-DaOUfYBX.js} +116 -0
- package/dist/cdn/chunks/de-DaOUfYBX.js.map +1 -0
- package/dist/{dist-CEdyyDn7.js → cdn/chunks/dist-BzXULHvI.js} +63 -61
- package/dist/cdn/chunks/{dist-C2epoAwW.js.map → dist-BzXULHvI.js.map} +1 -1
- package/dist/{dist-BA-jTQgw.js → cdn/chunks/dist-DqGgijFI.js} +108 -109
- package/dist/cdn/chunks/{dist-CONcGNwy.js.map → dist-DqGgijFI.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-B8hTTYFO.js → draggable-DepKdldn.js} +1384 -1376
- package/dist/cdn/chunks/draggable-DepKdldn.js.map +1 -0
- package/dist/cdn/chunks/{editor-modal-cvYkpbHD.js → editor-modal-CPbgthOv.js} +986 -986
- package/dist/cdn/chunks/{editor-modal-cvYkpbHD.js.map → editor-modal-CPbgthOv.js.map} +1 -1
- package/dist/{en-D14i5nFh.js → cdn/chunks/en-C0pHHMiR.js} +116 -0
- package/dist/cdn/chunks/en-C0pHHMiR.js.map +1 -0
- package/dist/cdn/chunks/en-IYVryJRl.js +1 -0
- package/dist/{es-zDacbMhs.js → cdn/chunks/es-CxyEKr6n.js} +116 -0
- package/dist/cdn/chunks/es-CxyEKr6n.js.map +1 -0
- package/dist/cdn/chunks/{extensions-ClDhn88e.js → extensions-Uh9vuFfK.js} +57 -57
- package/dist/cdn/chunks/{extensions-ClDhn88e.js.map → extensions-Uh9vuFfK.js.map} +1 -1
- package/dist/{fr-CSgYtjOd.js → cdn/chunks/fr-CYbamiI6.js} +116 -0
- package/dist/cdn/chunks/fr-CYbamiI6.js.map +1 -0
- package/dist/cdn/chunks/{icons-HCBP93Ch.js → icons-CSSMtbGK.js} +187 -144
- package/dist/cdn/chunks/icons-CSSMtbGK.js.map +1 -0
- package/dist/{ja-B7H3ID8O.js → cdn/chunks/ja-DfaIAoGI.js} +116 -0
- package/dist/cdn/chunks/ja-DfaIAoGI.js.map +1 -0
- package/dist/cdn/chunks/keys-CoQtCqNv.js +11 -0
- package/dist/cdn/chunks/keys-CoQtCqNv.js.map +1 -0
- package/dist/cdn/chunks/languageName-DEEOhDWI.js +12 -0
- package/dist/cdn/chunks/languageName-DEEOhDWI.js.map +1 -0
- package/dist/cdn/chunks/{liquid.browser-DkLBNrft.js → liquid.browser-rubac0VA.js} +782 -746
- package/dist/cdn/chunks/liquid.browser-rubac0VA.js.map +1 -0
- package/dist/{nl-176ySmc5.js → cdn/chunks/nl-DkrB-VKZ.js} +116 -0
- package/dist/cdn/chunks/nl-DkrB-VKZ.js.map +1 -0
- package/dist/cdn/chunks/normalizeMergeTagMarkup-oGhwVscw.js +290 -0
- package/dist/cdn/chunks/normalizeMergeTagMarkup-oGhwVscw.js.map +1 -0
- package/dist/cdn/chunks/noticeTones-D7BPu-Le.js +16 -0
- package/dist/cdn/chunks/noticeTones-D7BPu-Le.js.map +1 -0
- package/dist/cdn/chunks/plural-CyxrJXL1.js +17 -0
- package/dist/cdn/chunks/plural-CyxrJXL1.js.map +1 -0
- package/dist/cdn/chunks/{preRenderCustomBlocks-D-dsBq5t.js → preRenderCustomBlocks-C8k7tw98.js} +5 -5
- package/dist/cdn/chunks/{preRenderCustomBlocks-D-dsBq5t.js.map → preRenderCustomBlocks-C8k7tw98.js.map} +1 -1
- package/dist/cdn/chunks/{pt-BR-dDlTwX18.js → pt-BR-CY5Ye7eP.js} +115 -1
- package/dist/cdn/chunks/pt-BR-CY5Ye7eP.js.map +1 -0
- package/dist/cdn/chunks/sanitizeHtml-DYklmvgX.js +61 -0
- package/dist/cdn/chunks/sanitizeHtml-DYklmvgX.js.map +1 -0
- package/dist/cdn/chunks/socialIcons-BAiuHyJs.js +2638 -0
- package/dist/cdn/chunks/socialIcons-BAiuHyJs.js.map +1 -0
- package/dist/cdn/chunks/src-CACM3o--.js +2606 -0
- package/dist/cdn/chunks/src-CACM3o--.js.map +1 -0
- package/dist/cdn/chunks/{src-CUH_EI7k.js → src-Ddpm4HsS.js} +225 -259
- package/dist/cdn/chunks/src-Ddpm4HsS.js.map +1 -0
- package/dist/cdn/chunks/{src-BKpAis_q.js → src-DheBmnvF.js} +635 -478
- package/dist/cdn/chunks/src-DheBmnvF.js.map +1 -0
- package/dist/{styleConstants-B8xVRiwX.js → cdn/chunks/styleConstants-CgiNKdnc.js} +7 -5
- package/dist/cdn/chunks/styleConstants-CgiNKdnc.js.map +1 -0
- package/dist/cdn/chunks/templateSettingsFields-cjlP-jdw.js.map +1 -1
- package/dist/cdn/chunks/{tiptap-ChSZybTi.js → tiptap-Dipw_zOQ.js} +48 -48
- package/dist/cdn/chunks/{tiptap-ChSZybTi.js.map → tiptap-Dipw_zOQ.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-RJXyVnIf.js → useCloudI18n-Cc5NZqiI.js} +3 -3
- package/dist/cdn/chunks/{useCloudI18n-RJXyVnIf.js.map → useCloudI18n-Cc5NZqiI.js.map} +1 -1
- package/dist/cdn/chunks/useEditorRoot-D_LuZ_hE.js +9 -0
- package/dist/cdn/chunks/{useEditorRoot-BT3c9CXj.js.map → useEditorRoot-D_LuZ_hE.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-11iqzC6m.js → useI18n-BnJYydPv.js} +3 -3
- package/dist/cdn/chunks/{useI18n-11iqzC6m.js.map → useI18n-BnJYydPv.js.map} +1 -1
- package/dist/cdn/chunks/useLocalizedDisplay-yXbRKNrs.js +33 -0
- package/dist/cdn/chunks/useLocalizedDisplay-yXbRKNrs.js.map +1 -0
- package/dist/cdn/chunks/{useLogicTag-vy5KGg5D.js → useLogicTag-B7RpqVFQ.js} +5 -5
- package/dist/cdn/chunks/{useLogicTag-vy5KGg5D.js.map → useLogicTag-B7RpqVFQ.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-BFBBjnwh.js → useMergeTag-C-32ETjj.js} +6 -6
- package/dist/cdn/chunks/{useMergeTag-BFBBjnwh.js.map → useMergeTag-C-32ETjj.js.map} +1 -1
- package/dist/cdn/chunks/usePopoverPosition-BWAXWeBv.js +78 -0
- package/dist/cdn/chunks/usePopoverPosition-BWAXWeBv.js.map +1 -0
- package/dist/cdn/chunks/{useScrollToBlock-C0dawxGr.js → useScrollToBlock-Ct1AwLD-.js} +5 -5
- package/dist/cdn/chunks/useScrollToBlock-Ct1AwLD-.js.map +1 -0
- package/dist/cdn/chunks/{withCurrentFont-C3CquBQN.js → withCurrentFont-D33ZXoWp.js} +2 -2
- package/dist/cdn/chunks/{withCurrentFont-C3CquBQN.js.map → withCurrentFont-D33ZXoWp.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +2503 -1809
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-N3x4z_rH.js → check-ChQ0l8EQ.js} +1 -1
- package/dist/{chevron-down-gXu9qNwO.js → chevron-down-Bh6cp6PI.js} +1 -1
- package/dist/{chevron-right-rL0ayGk5.js → chevron-right-LUgdqdoW.js} +1 -1
- package/dist/{chevron-up-0ugh8HnW.js → chevron-up-XsDeJxQN.js} +1 -1
- package/dist/{circle-alert-B9Ls75B5.js → circle-alert-lODfDsrj.js} +1 -1
- package/dist/{clock-BqHBaCLm.js → clock-DrqFEZkT.js} +1 -1
- package/dist/composables-BOP3ERRP.js +4517 -0
- package/dist/{createCloudRuntime-B5VIdnwz.js → createCloudRuntime-DGV5a5Af.js} +47 -45
- package/dist/{createLucideIcon-BV7Gwz_Z.js → createLucideIcon-Dw5e5gVE.js} +16 -16
- package/dist/{cdn/chunks/de-CeFJ6wbM.js → de-DaOUfYBX.js} +114 -2
- package/dist/{cdn/chunks/dist-CONcGNwy.js → dist-0alKVRc_.js} +100 -99
- package/dist/{dist-Cy8I5scI.js → dist-54VCNoC0.js} +2 -2
- package/dist/dist-6DU0me3E.js +4 -0
- package/dist/{dist-p3wymUDt.js → dist-B8dY8drK.js} +2 -2
- package/dist/{dist-Dd5MU2Ev.js → dist-B9a7iVye.js} +2 -2
- package/dist/{dist-V7W1UhVr.js → dist-BWflWcpW.js} +2 -2
- package/dist/{dist-D6fZec6r.js → dist-C3hu_C3w.js} +2 -2
- package/dist/{cdn/chunks/dist-C2epoAwW.js → dist-CX7skkvG.js} +29 -31
- package/dist/dist-CcOn7WCo.js +4 -0
- package/dist/dist-Cdkm20M6.js +2542 -0
- package/dist/{dist-BS5uKktL.js → dist-ChOb5XHW.js} +2 -2
- package/dist/{dist-BF5zEHop.js → dist-DZ3X-uB8.js} +2 -2
- package/dist/{dist-CWSG7Kj0.js → dist-D_XrUEET.js} +5 -5
- package/dist/{dist-txQLT2sF.js → dist-TAv500j6.js} +2 -2
- package/dist/{dist-DDN7yR-w.js → dist-fqSers8_.js} +131 -131
- package/dist/{editor-modal-Du9VI9q4.js → editor-modal-B_2EAOjN.js} +907 -906
- package/dist/{cdn/chunks/en-D14i5nFh.js → en-C0pHHMiR.js} +114 -2
- package/dist/en-DTtwco2Q.js +1 -0
- package/dist/{cdn/chunks/es-zDacbMhs.js → es-CxyEKr6n.js} +114 -2
- package/dist/{extensions-FRYhx7qa.js → extensions-DOLZkLzV.js} +173 -173
- package/dist/{eye-BKj9Tfnc.js → eye-DChfk0gi.js} +1 -1
- package/dist/{cdn/chunks/fr-CSgYtjOd.js → fr-CYbamiI6.js} +114 -2
- package/dist/{image-DNdvdTla.js → image--Hj2by1G.js} +1 -1
- package/dist/index.d.ts +182 -14
- package/dist/{info-Bx-kBkbH.js → info-BbXgy82f.js} +1 -1
- package/dist/{cdn/chunks/ja-B7H3ID8O.js → ja-DfaIAoGI.js} +114 -2
- package/dist/keys-BCqskl51.js +9 -0
- package/dist/languageName-DEEOhDWI.js +10 -0
- package/dist/{link-D8-rYdIQ.js → link-C2_8yJno.js} +1 -1
- package/dist/{liquid.browser-D1RxawkY.js → liquid.browser-DUXEekoN.js} +781 -745
- package/dist/{list-BneisA27.js → list-DLGs2n0V.js} +1 -1
- package/dist/{loader-circle-DBEXphyx.js → loader-circle-BbDItE_O.js} +1 -1
- package/dist/{message-circle-Bg4xInCM.js → message-circle-NAModq0p.js} +1 -1
- package/dist/{cdn/chunks/nl-176ySmc5.js → nl-DkrB-VKZ.js} +114 -2
- package/dist/normalizeMergeTagMarkup-CUCo7B5X.js +288 -0
- package/dist/noticeTones-D7BPu-Le.js +14 -0
- package/dist/{package-B40Vkfsp.js → package-BuzsfRyH.js} +1 -1
- package/dist/{pencil-CYdAHTds.js → pencil-BTUUECH4.js} +1 -1
- package/dist/plural-CyxrJXL1.js +15 -0
- package/dist/plus-Dm7DN65T.js +13 -0
- package/dist/{preRenderCustomBlocks-AbZArwkR.js → preRenderCustomBlocks-Bs3N9no-.js} +4 -4
- package/dist/{pt-BR-dDlTwX18.js → pt-BR-CY5Ye7eP.js} +114 -0
- package/dist/{refresh-cw-Bb1FWrU0.js → refresh-cw-xMURqGWi.js} +2 -12
- package/dist/rotate-ccw-DqVcEIn5.js +13 -0
- package/dist/{runtime-dom.esm-bundler-CLGymEyk.js → runtime-dom.esm-bundler-DlHp8xgy.js} +167 -167
- package/dist/sanitizeHtml-mKgNUdME.js +962 -0
- package/dist/{search-BZEo08gi.js → search-Cfr3W44N.js} +1 -1
- package/dist/{send-DHtrnXQs.js → send-CH1SrvyB.js} +1 -1
- package/dist/{smartphone-dlN3vpA3.js → smartphone-pAkvzjdI.js} +1 -1
- package/dist/socialIcons-Dqr4DJOz.js +2705 -0
- package/dist/{sparkles-NOttoDnJ.js → sparkles-CRO0cCnp.js} +1 -1
- package/dist/{square-B1CJgdt2.js → square-CaQWMntx.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{cdn/chunks/styleConstants-B8xVRiwX.js → styleConstants-CgiNKdnc.js} +5 -7
- package/dist/templatical-editor.js +2294 -1608
- package/dist/{text-align-start-zpoXmb-Z.js → text-align-start-BQ39AaRK.js} +1 -1
- package/dist/{trash-CGbk4Sgt.js → trash-BL5gEFHN.js} +1 -1
- package/dist/{triangle-alert-CKLMyGVp.js → triangle-alert-BYbKu7zZ.js} +1 -1
- package/dist/{upload-DQoackAn.js → upload-BhmL4Vqx.js} +1 -1
- package/dist/{useCloudI18n-DcLtxOQZ.js → useCloudI18n-Dh2iydo1.js} +4 -4
- package/dist/useEditorRoot-DY3mgcHm.js +7 -0
- package/dist/{useI18n-CeTm777E.js → useI18n-CgtvtF4C.js} +4 -4
- package/dist/useLocalizedDisplay-DNNwDRxL.js +31 -0
- package/dist/{useLogicTag-DFDYJeMN.js → useLogicTag-BXXXQQmi.js} +4 -4
- package/dist/{useMergeTag-B46vACAG.js → useMergeTag-C9Okr87y.js} +5 -5
- package/dist/usePopoverPosition-VDQjyX_A.js +76 -0
- package/dist/{useScrollToBlock-C-NzvjeO.js → useScrollToBlock-C0Kapxdh.js} +5 -5
- package/dist/{vue.runtime.esm-bundler-CrlI8j5R.js → vue.runtime.esm-bundler-BJXc_Mri.js} +1247 -1239
- package/dist/withCurrentFont-DJiQqZzL.js +18 -0
- package/dist/{x-zcrnmcmU.js → x-B7NZYzhx.js} +1 -1
- package/package.json +23 -23
- package/dist/AiAltTextPopover-Cm11CsKH.js +0 -105
- package/dist/BlockIssueBadge-6Ri2FfX-.js +0 -33
- package/dist/BlockPreviewCanvas-Df9iz7sK.js +0 -140
- package/dist/CollaborationNotices-JQ3vQoqO.js +0 -75
- package/dist/CommentsPanel-BuftXc0U.js +0 -16
- package/dist/CommentsSidebar-Co3x4uH0.js +0 -499
- package/dist/CountdownToolbar-CrL4WKy9.js +0 -197
- package/dist/MergeTagInput-DE7kWwXx.js +0 -80
- package/dist/MergeTagTextarea-DVPQkiYY.js +0 -69
- package/dist/SavedBlocksBrowserModal-SRtN5h9q.js +0 -359
- package/dist/TemplateSettings-D0XcH32O.js +0 -236
- package/dist/TestEmailModal-Cb5t0yB2.js +0 -209
- package/dist/TitleEditor-BYk_9SpQ.js +0 -198
- package/dist/ToggleSwitch-poGWbduy.js +0 -36
- package/dist/Toolbar-Dku_pZni.js +0 -3145
- package/dist/VersionPreviewBanner-CSs7zum_.js +0 -37
- package/dist/WrapperBlock-DwjK_IdJ.js +0 -44
- package/dist/cdn/chunks/AiAltTextPopover-DjMoJCgU.js +0 -106
- package/dist/cdn/chunks/AiAltTextPopover-DjMoJCgU.js.map +0 -1
- package/dist/cdn/chunks/AiAltTextReview-BafAtBoA.js.map +0 -1
- package/dist/cdn/chunks/AiChatPanel-DXeZgc7D.js +0 -474
- package/dist/cdn/chunks/AiChatPanel-DXeZgc7D.js.map +0 -1
- package/dist/cdn/chunks/AiRewriteMenu-4F6vwhJ5.js.map +0 -1
- package/dist/cdn/chunks/BlockIssueBadge-DIJDqqcY.js +0 -34
- package/dist/cdn/chunks/BlockIssueBadge-DIJDqqcY.js.map +0 -1
- package/dist/cdn/chunks/BlockPreviewCanvas-Ny1X_mee.js +0 -142
- package/dist/cdn/chunks/CollaborationNotices-Hf8r08Sw.js +0 -77
- package/dist/cdn/chunks/CollaborationNotices-Hf8r08Sw.js.map +0 -1
- package/dist/cdn/chunks/CommentsPanel-CAiwilM2.js +0 -18
- package/dist/cdn/chunks/CommentsSidebar-Dj8sDiLN.js +0 -469
- package/dist/cdn/chunks/CommentsSidebar-Dj8sDiLN.js.map +0 -1
- package/dist/cdn/chunks/CountdownToolbar-CguFJdqn.js +0 -199
- package/dist/cdn/chunks/CountdownToolbar-CguFJdqn.js.map +0 -1
- package/dist/cdn/chunks/IssuesPanel-pr7_nuLI.js.map +0 -1
- package/dist/cdn/chunks/LogicTagInsertButton-B_ldj3TO.js.map +0 -1
- package/dist/cdn/chunks/MediaEditModal-CGfzcHwP.js.map +0 -1
- package/dist/cdn/chunks/MergeTagModeToggle-BFpK5dxg.js.map +0 -1
- package/dist/cdn/chunks/MergeTagTextarea-Zo0mYWbf.js +0 -71
- package/dist/cdn/chunks/MergeTagTextarea-Zo0mYWbf.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-DsPLVAgm.js +0 -631
- package/dist/cdn/chunks/ParagraphEditor-DsPLVAgm.js.map +0 -1
- package/dist/cdn/chunks/SavedBlocksBrowserModal-B9XCjDfm.js +0 -356
- package/dist/cdn/chunks/TemplateSettings-jWpmuWDR.js +0 -208
- package/dist/cdn/chunks/TemplateSettings-jWpmuWDR.js.map +0 -1
- package/dist/cdn/chunks/TestEmailModal-DcwKhFnI.js.map +0 -1
- package/dist/cdn/chunks/TitleEditor-R2lQw6WA.js +0 -198
- package/dist/cdn/chunks/TitleEditor-R2lQw6WA.js.map +0 -1
- package/dist/cdn/chunks/ToggleSwitch-BDMugNES.js +0 -38
- package/dist/cdn/chunks/ToggleSwitch-BDMugNES.js.map +0 -1
- package/dist/cdn/chunks/Toolbar-CnvfW72e.js +0 -3061
- package/dist/cdn/chunks/Toolbar-CnvfW72e.js.map +0 -1
- package/dist/cdn/chunks/VersionPreviewBanner-CZ--HOoa.js +0 -39
- package/dist/cdn/chunks/VersionPreviewBanner-CZ--HOoa.js.map +0 -1
- package/dist/cdn/chunks/WrapperBlock-D3obNGab.js +0 -46
- package/dist/cdn/chunks/WrapperBlock-D3obNGab.js.map +0 -1
- package/dist/cdn/chunks/blockTypeIcons-DFf7AyqI.js +0 -21
- package/dist/cdn/chunks/blockTypeIcons-DFf7AyqI.js.map +0 -1
- package/dist/cdn/chunks/ca-CD-Kt1qz.js.map +0 -1
- package/dist/cdn/chunks/createCloudRuntime-D6niZ2Rc.js.map +0 -1
- package/dist/cdn/chunks/de-CeFJ6wbM.js.map +0 -1
- package/dist/cdn/chunks/draggable-B8hTTYFO.js.map +0 -1
- package/dist/cdn/chunks/en-CKAXAo3Z.js +0 -1
- package/dist/cdn/chunks/en-D14i5nFh.js.map +0 -1
- package/dist/cdn/chunks/es-zDacbMhs.js.map +0 -1
- package/dist/cdn/chunks/fr-CSgYtjOd.js.map +0 -1
- package/dist/cdn/chunks/icons-HCBP93Ch.js.map +0 -1
- package/dist/cdn/chunks/ja-B7H3ID8O.js.map +0 -1
- package/dist/cdn/chunks/keys-BF9gazbd.js +0 -11
- package/dist/cdn/chunks/keys-BF9gazbd.js.map +0 -1
- package/dist/cdn/chunks/liquid.browser-DkLBNrft.js.map +0 -1
- package/dist/cdn/chunks/nl-176ySmc5.js.map +0 -1
- package/dist/cdn/chunks/normalizeMergeTagMarkup-DpHCSESZ.js +0 -198
- package/dist/cdn/chunks/normalizeMergeTagMarkup-DpHCSESZ.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-dDlTwX18.js.map +0 -1
- package/dist/cdn/chunks/sanitizeHtml-B2h15u0_.js +0 -72
- package/dist/cdn/chunks/sanitizeHtml-B2h15u0_.js.map +0 -1
- package/dist/cdn/chunks/socialIcons-rJoqO1TJ.js +0 -2008
- package/dist/cdn/chunks/socialIcons-rJoqO1TJ.js.map +0 -1
- package/dist/cdn/chunks/src-BKpAis_q.js.map +0 -1
- package/dist/cdn/chunks/src-C9DTvn1H.js +0 -1423
- package/dist/cdn/chunks/src-C9DTvn1H.js.map +0 -1
- package/dist/cdn/chunks/src-CUH_EI7k.js.map +0 -1
- package/dist/cdn/chunks/styleConstants-B8xVRiwX.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-CjaEV_01.js +0 -2534
- package/dist/cdn/chunks/useEditorCore-CjaEV_01.js.map +0 -1
- package/dist/cdn/chunks/useEditorRoot-BT3c9CXj.js +0 -9
- package/dist/cdn/chunks/usePopoverPosition-AnVIwiVv.js +0 -70
- package/dist/cdn/chunks/usePopoverPosition-AnVIwiVv.js.map +0 -1
- package/dist/cdn/chunks/useScrollToBlock-C0dawxGr.js.map +0 -1
- package/dist/dist-CzrLYq2s.js +0 -1363
- package/dist/dist-DyFArF_G.js +0 -4
- package/dist/dist-pA3ooG6N.js +0 -4
- package/dist/en-CyEE7FPY.js +0 -1
- package/dist/keys-DBjrQkYH.js +0 -9
- package/dist/normalizeMergeTagMarkup-IH8COHzd.js +0 -196
- package/dist/sanitizeHtml-CnOA1efV.js +0 -942
- package/dist/socialIcons-B_d52_eS.js +0 -2075
- package/dist/useEditorCore-DG9UvWUm.js +0 -4011
- package/dist/useEditorRoot-BKr6nNkC.js +0 -7
- package/dist/usePopoverPosition-C42kD7zt.js +0 -68
- package/dist/withCurrentFont-v_a4Oso8.js +0 -18
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-CGnMp29N.js";
|
|
2
|
-
import {
|
|
3
|
-
import { c as S, s as C } from "./runtime-dom.esm-bundler-
|
|
4
|
-
import {
|
|
5
|
-
import { t as T } from "./
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { t as F } from "./
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { t as
|
|
14
|
-
import {
|
|
15
|
-
import { t as
|
|
16
|
-
import { n as
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { n as
|
|
20
|
-
|
|
2
|
+
import { Ft as t, L as n, M as r, Mt as i, P as a, Pt as o, Y as s, _ as c, a as l, c as u, ct as d, d as f, et as p, f as m, g as h, l as g, r as _, u as v, v as y, w as b, y as x } from "./vue.runtime.esm-bundler-BJXc_Mri.js";
|
|
3
|
+
import { c as S, s as C } from "./runtime-dom.esm-bundler-DlHp8xgy.js";
|
|
4
|
+
import { Rt as w } from "./dist-Cdkm20M6.js";
|
|
5
|
+
import { t as T } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
6
|
+
import { t as E } from "./createLucideIcon-Dw5e5gVE.js";
|
|
7
|
+
import { B as D, L as O, R as k, V as A } from "./composables-BOP3ERRP.js";
|
|
8
|
+
import { c as j, l as M, u as N } from "./LogicTagInsertButton-BjYs-UQX.js";
|
|
9
|
+
import { i as P, n as ee, r as te, t as ne } from "./RichTextEditorContent-C5MAzx3E.js";
|
|
10
|
+
import { t as F } from "./link-C2_8yJno.js";
|
|
11
|
+
import { t as re } from "./list-DLGs2n0V.js";
|
|
12
|
+
import { t as ie } from "./loader-circle-BbDItE_O.js";
|
|
13
|
+
import { n as ae, r as oe, t as se } from "./text-align-start-BQ39AaRK.js";
|
|
14
|
+
import { I as ce, M as le, b as ue, d as de, et as fe, it as pe, ot as me, v as I } from "./keys-BCqskl51.js";
|
|
15
|
+
import { t as L } from "./useI18n-CgtvtF4C.js";
|
|
16
|
+
import { n as R } from "./useLocalizedDisplay-DNNwDRxL.js";
|
|
17
|
+
import { a as he, n as ge, o as _e, s as ve } from "./styleConstants-CgiNKdnc.js";
|
|
18
|
+
import { t as z } from "./dist-0alKVRc_.js";
|
|
19
|
+
import { n as B } from "./usePopoverPosition-VDQjyX_A.js";
|
|
20
|
+
import { n as ye, t as be } from "./withCurrentFont-DJiQqZzL.js";
|
|
21
|
+
var V = E({
|
|
21
22
|
name: "face-slightly-smiling",
|
|
22
23
|
size: 24,
|
|
23
24
|
node: [
|
|
@@ -41,7 +42,7 @@ var B = F({
|
|
|
41
42
|
}]
|
|
42
43
|
],
|
|
43
44
|
aliases: ["smile"]
|
|
44
|
-
}), xe =
|
|
45
|
+
}), xe = E({
|
|
45
46
|
name: "list-ordered",
|
|
46
47
|
size: 24,
|
|
47
48
|
node: [
|
|
@@ -70,7 +71,7 @@ var B = F({
|
|
|
70
71
|
key: "xtkcd5"
|
|
71
72
|
}]
|
|
72
73
|
]
|
|
73
|
-
}), Se =
|
|
74
|
+
}), Se = E({
|
|
74
75
|
name: "remove-formatting",
|
|
75
76
|
size: 24,
|
|
76
77
|
node: [
|
|
@@ -95,7 +96,7 @@ var B = F({
|
|
|
95
96
|
key: "11p7ol"
|
|
96
97
|
}]
|
|
97
98
|
]
|
|
98
|
-
}), Ce =
|
|
99
|
+
}), Ce = E({
|
|
99
100
|
name: "strikethrough",
|
|
100
101
|
size: 24,
|
|
101
102
|
node: [
|
|
@@ -115,7 +116,7 @@ var B = F({
|
|
|
115
116
|
key: "1e0a9i"
|
|
116
117
|
}]
|
|
117
118
|
]
|
|
118
|
-
}), we =
|
|
119
|
+
}), we = E({
|
|
119
120
|
name: "subscript",
|
|
120
121
|
size: 24,
|
|
121
122
|
node: [
|
|
@@ -132,7 +133,7 @@ var B = F({
|
|
|
132
133
|
key: "e8ta8j"
|
|
133
134
|
}]
|
|
134
135
|
]
|
|
135
|
-
}), Te =
|
|
136
|
+
}), Te = E({
|
|
136
137
|
name: "superscript",
|
|
137
138
|
size: 24,
|
|
138
139
|
node: [
|
|
@@ -149,7 +150,7 @@ var B = F({
|
|
|
149
150
|
key: "1dfcux"
|
|
150
151
|
}]
|
|
151
152
|
]
|
|
152
|
-
}), Ee =
|
|
153
|
+
}), Ee = E({
|
|
153
154
|
name: "text-align-justify",
|
|
154
155
|
size: 24,
|
|
155
156
|
node: [
|
|
@@ -167,7 +168,7 @@ var B = F({
|
|
|
167
168
|
}]
|
|
168
169
|
],
|
|
169
170
|
aliases: ["align-justify"]
|
|
170
|
-
}), De =
|
|
171
|
+
}), De = E({
|
|
171
172
|
name: "underline",
|
|
172
173
|
size: 24,
|
|
173
174
|
node: [["path", {
|
|
@@ -180,11 +181,11 @@ var B = F({
|
|
|
180
181
|
y2: "20",
|
|
181
182
|
key: "nun2al"
|
|
182
183
|
}]]
|
|
183
|
-
}),
|
|
184
|
+
}), H = [
|
|
184
185
|
"value",
|
|
185
186
|
"aria-label",
|
|
186
187
|
"title"
|
|
187
|
-
],
|
|
188
|
+
], U = { value: "" }, W = ["value"], G = /* @__PURE__ */ x({
|
|
188
189
|
__name: "ToolbarSelect",
|
|
189
190
|
props: {
|
|
190
191
|
modelValue: {},
|
|
@@ -195,14 +196,14 @@ var B = F({
|
|
|
195
196
|
},
|
|
196
197
|
emits: ["update:modelValue"],
|
|
197
198
|
setup(e, { emit: n }) {
|
|
198
|
-
let
|
|
199
|
-
function s(e) {
|
|
200
|
-
o("update:modelValue", e.target.value);
|
|
201
|
-
}
|
|
199
|
+
let o = e, s = n;
|
|
202
200
|
function c(e) {
|
|
201
|
+
s("update:modelValue", e.target.value);
|
|
202
|
+
}
|
|
203
|
+
function l(e) {
|
|
203
204
|
return typeof e == "string" ? e : e.value;
|
|
204
205
|
}
|
|
205
|
-
function
|
|
206
|
+
function d(e) {
|
|
206
207
|
return typeof e == "string" ? e : e.label;
|
|
207
208
|
}
|
|
208
209
|
let f = /* @__PURE__ */ new Set([
|
|
@@ -211,79 +212,79 @@ var B = F({
|
|
|
211
212
|
"unset",
|
|
212
213
|
"revert",
|
|
213
214
|
"revert-layer"
|
|
214
|
-
]),
|
|
215
|
-
let e =
|
|
216
|
-
return e === "" ||
|
|
215
|
+
]), p = u(() => f.has(o.modelValue) ? "" : o.modelValue), h = u(() => {
|
|
216
|
+
let e = p.value;
|
|
217
|
+
return e === "" || o.options.some((t) => l(t) === e) ? o.options : [e, ...o.options];
|
|
217
218
|
});
|
|
218
|
-
return (n,
|
|
219
|
-
class:
|
|
220
|
-
value:
|
|
219
|
+
return (n, o) => (r(), m("select", {
|
|
220
|
+
class: i(["tpl:h-8 tpl:cursor-pointer tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-2 tpl:text-xs tpl:text-[var(--tpl-text)] tpl:outline-none tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)]", e.widthClass ?? "tpl:w-20"]),
|
|
221
|
+
value: p.value,
|
|
221
222
|
"aria-label": e.label,
|
|
222
223
|
title: e.label,
|
|
223
|
-
onChange:
|
|
224
|
-
}, [
|
|
225
|
-
key:
|
|
226
|
-
value:
|
|
227
|
-
},
|
|
224
|
+
onChange: c
|
|
225
|
+
}, [g("option", U, t(e.placeholder ?? ""), 1), (r(!0), m(_, null, a(h.value, (e) => (r(), m("option", {
|
|
226
|
+
key: l(e),
|
|
227
|
+
value: l(e)
|
|
228
|
+
}, t(d(e)), 9, W))), 128))], 42, H));
|
|
228
229
|
}
|
|
229
|
-
}),
|
|
230
|
+
}), K = [
|
|
230
231
|
"aria-label",
|
|
231
232
|
"title",
|
|
232
233
|
"aria-expanded"
|
|
233
|
-
],
|
|
234
|
+
], q = ["aria-label"], J = { class: "tpl:mb-1.5 tpl:text-[10px] tpl:font-medium tpl:tracking-wide tpl:text-[var(--tpl-text-muted)] tpl:uppercase" }, Y = { class: "tpl:grid tpl:grid-cols-10 tpl:gap-0.5" }, X = ["aria-label", "onClick"], Oe = /* @__PURE__ */ x({
|
|
234
235
|
__name: "EmojiPickerDropdown",
|
|
235
236
|
emits: ["insert"],
|
|
236
237
|
setup(e, { emit: n }) {
|
|
237
|
-
let
|
|
238
|
-
|
|
239
|
-
|
|
238
|
+
let o = n, { categories: s, isOpen: l, toggle: h, close: v } = D(), { t: y, format: b } = L(), x = p(null), w = p(null), T = u(() => l.value);
|
|
239
|
+
A(x, T), z(w, () => {
|
|
240
|
+
l.value && v();
|
|
240
241
|
});
|
|
241
|
-
function
|
|
242
|
-
|
|
242
|
+
function E(e) {
|
|
243
|
+
o("insert", e), v();
|
|
243
244
|
}
|
|
244
|
-
return (e, n) => (
|
|
245
|
+
return (e, n) => (r(), m("div", {
|
|
245
246
|
ref_key: "rootRef",
|
|
246
247
|
ref: w,
|
|
247
248
|
class: "tpl:relative"
|
|
248
|
-
}, [
|
|
249
|
+
}, [g("button", {
|
|
249
250
|
type: "button",
|
|
250
|
-
class:
|
|
251
|
-
"aria-label":
|
|
252
|
-
title:
|
|
253
|
-
"aria-expanded":
|
|
251
|
+
class: i(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": d(l) }]),
|
|
252
|
+
"aria-label": d(y).paragraphEditor.insertEmoji,
|
|
253
|
+
title: d(y).paragraphEditor.insertEmoji,
|
|
254
|
+
"aria-expanded": d(l),
|
|
254
255
|
"aria-haspopup": "dialog",
|
|
255
256
|
"aria-controls": "tpl-emoji-picker",
|
|
256
|
-
onClick: n[0] ||= (...e) =>
|
|
257
|
-
}, [
|
|
257
|
+
onClick: n[0] ||= (...e) => d(h) && d(h)(...e)
|
|
258
|
+
}, [c(d(V), {
|
|
258
259
|
size: 16,
|
|
259
260
|
"stroke-width": 2
|
|
260
|
-
})], 10,
|
|
261
|
+
})], 10, K), d(l) ? (r(), m("div", {
|
|
261
262
|
key: 0,
|
|
262
263
|
id: "tpl-emoji-picker",
|
|
263
264
|
ref_key: "pickerRef",
|
|
264
265
|
ref: x,
|
|
265
266
|
role: "dialog",
|
|
266
267
|
"aria-modal": "false",
|
|
267
|
-
"aria-label":
|
|
268
|
+
"aria-label": d(y).paragraphEditor.insertEmoji,
|
|
268
269
|
tabindex: "-1",
|
|
269
270
|
class: "tpl-emoji-picker tpl:absolute tpl:top-full tpl:left-0 tpl:z-10 tpl:mt-2 tpl:w-72 tpl:rounded-lg tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-2 tpl:shadow-[var(--tpl-shadow-lg)]",
|
|
270
|
-
onKeydown: n[1] ||= C(S((...e) =>
|
|
271
|
-
}, [(
|
|
271
|
+
onKeydown: n[1] ||= C(S((...e) => d(v) && d(v)(...e), ["stop", "prevent"]), ["esc"])
|
|
272
|
+
}, [(r(!0), m(_, null, a(d(s), (e) => (r(), m("div", {
|
|
272
273
|
key: e.key,
|
|
273
274
|
class: "tpl:mb-2 tpl:last:mb-0"
|
|
274
|
-
}, [
|
|
275
|
+
}, [g("div", J, t(d(y).emoji[e.key]), 1), g("div", Y, [(r(!0), m(_, null, a(e.emojis, (e) => (r(), m("button", {
|
|
275
276
|
key: e,
|
|
276
277
|
type: "button",
|
|
277
|
-
"aria-label":
|
|
278
|
+
"aria-label": d(b)(d(y).paragraphEditor.emojiItemLabel, { emoji: e }),
|
|
278
279
|
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)]",
|
|
279
|
-
onClick: (t) =>
|
|
280
|
-
},
|
|
280
|
+
onClick: (t) => E(e)
|
|
281
|
+
}, t(e), 9, X))), 128))])]))), 128))], 40, q)) : f("", !0)], 512));
|
|
281
282
|
}
|
|
282
|
-
}),
|
|
283
|
+
}), Z = [
|
|
283
284
|
"aria-label",
|
|
284
285
|
"title",
|
|
285
286
|
"aria-pressed"
|
|
286
|
-
],
|
|
287
|
+
], Q = /* @__PURE__ */ x({
|
|
287
288
|
__name: "ToolbarIconButton",
|
|
288
289
|
props: {
|
|
289
290
|
icon: {},
|
|
@@ -293,39 +294,40 @@ var B = F({
|
|
|
293
294
|
size: {}
|
|
294
295
|
},
|
|
295
296
|
setup(e) {
|
|
296
|
-
return (
|
|
297
|
+
return (t, a) => (r(), m("button", {
|
|
297
298
|
type: "button",
|
|
298
|
-
class:
|
|
299
|
+
class: i(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": e.active }]),
|
|
299
300
|
"aria-label": e.label,
|
|
300
301
|
title: e.label,
|
|
301
302
|
"aria-pressed": e.active ? "true" : "false"
|
|
302
|
-
}, [(
|
|
303
|
+
}, [(r(), v(n(e.icon), {
|
|
303
304
|
size: e.size ?? 16,
|
|
304
305
|
"stroke-width": e.strokeWidth ?? 2
|
|
305
|
-
}, null, 8, ["size", "stroke-width"]))], 10,
|
|
306
|
+
}, null, 8, ["size", "stroke-width"]))], 10, Z));
|
|
306
307
|
}
|
|
307
|
-
}),
|
|
308
|
+
}), ke = {}, Ae = {
|
|
308
309
|
class: "tpl:mx-1 tpl:h-6 tpl:w-px tpl:bg-[var(--tpl-border)]",
|
|
309
310
|
"aria-hidden": "true"
|
|
310
311
|
};
|
|
311
|
-
function
|
|
312
|
-
return
|
|
312
|
+
function je(e, t) {
|
|
313
|
+
return r(), m("span", Ae);
|
|
313
314
|
}
|
|
314
|
-
var $ = /*#__PURE__*/
|
|
315
|
+
var $ = /*#__PURE__*/ T(ke, [["render", je]]);
|
|
315
316
|
// src/utils/richTextColor.ts
|
|
316
|
-
function
|
|
317
|
+
function Me(e, t) {
|
|
317
318
|
return e || t || "#000000";
|
|
318
319
|
}
|
|
319
320
|
// src/components/blocks/ParagraphToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
320
|
-
var
|
|
321
|
+
var Ne = ["data-tpl-theme", "aria-label"], Pe = ["disabled", "inert"], Fe = { class: "tpl:flex tpl:items-center tpl:gap-1" }, Ie = { class: "tpl:flex tpl:items-center tpl:gap-1" }, Le = ["aria-label", "title"], Re = ["aria-label", "title"], ze = {
|
|
321
322
|
key: 1,
|
|
322
323
|
class: "tpl:flex tpl:items-center tpl:gap-2 tpl:px-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
323
|
-
},
|
|
324
|
+
}, Be = /* @__PURE__ */ x({
|
|
324
325
|
__name: "ParagraphToolbar",
|
|
325
326
|
props: {
|
|
326
327
|
editor: {},
|
|
327
328
|
toolbarPosition: {},
|
|
328
329
|
isLoading: { type: Boolean },
|
|
330
|
+
isEditable: { type: Boolean },
|
|
329
331
|
canRequestMergeTag: { type: Boolean },
|
|
330
332
|
canInsertLogicTag: { type: Boolean }
|
|
331
333
|
},
|
|
@@ -334,15 +336,15 @@ var Me = ["data-tpl-theme", "aria-label"], Ne = { class: "tpl:flex tpl:items-cen
|
|
|
334
336
|
"add-merge-tag",
|
|
335
337
|
"add-logic-tag"
|
|
336
338
|
],
|
|
337
|
-
setup(e, { emit:
|
|
338
|
-
let
|
|
339
|
+
setup(e, { emit: n }) {
|
|
340
|
+
let i = y(() => import("./AiRewriteMenu-DPzSekZt.js")), a = e, s = b(de, {}), p = u(() => s.ai?.isFeatureEnabled("rewrite") ?? !1), x = n, S = b(fe, null), C = b(pe, null), w = me(ue, "ParagraphToolbar"), T = B(), E = b(ce, null), D = b(le, null), O = b(I, null), k = u(() => (E?.isOpen.value ?? !1) || (D?.isOpen.value ?? !1)), { t: A } = L(), ee = w.fonts, ne = _e.map((e) => ({
|
|
339
341
|
value: e,
|
|
340
|
-
label: e === "normal" ?
|
|
342
|
+
label: e === "normal" ? A.paragraphEditor.letterSpacingNormal : e
|
|
341
343
|
}));
|
|
342
|
-
function
|
|
343
|
-
a.editor?.chain().focus().insertContent(e).run();
|
|
344
|
+
function R(e) {
|
|
345
|
+
a.isEditable !== !1 && a.editor?.chain().focus().insertContent(e).run();
|
|
344
346
|
}
|
|
345
|
-
function
|
|
347
|
+
function z(e) {
|
|
346
348
|
return a.editor?.getAttributes("textStyle")[e] || "";
|
|
347
349
|
}
|
|
348
350
|
function V(e) {
|
|
@@ -356,19 +358,20 @@ var Me = ["data-tpl-theme", "aria-label"], Ne = { class: "tpl:flex tpl:items-cen
|
|
|
356
358
|
function U() {
|
|
357
359
|
return a.editor?.isActive("link") ?? !1;
|
|
358
360
|
}
|
|
359
|
-
function
|
|
361
|
+
function W() {
|
|
360
362
|
return a.editor?.getAttributes("link").color || "";
|
|
361
363
|
}
|
|
362
364
|
function K(e) {
|
|
365
|
+
if (a.isEditable === !1) return;
|
|
363
366
|
let t = a.editor?.chain().focus();
|
|
364
367
|
t && (U() ? (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());
|
|
365
368
|
}
|
|
366
369
|
function q() {
|
|
367
370
|
let e = O?.content.value.settings;
|
|
368
|
-
return U() ?
|
|
371
|
+
return U() ? Me(W(), e?.linkColor || e?.textColor) : Me(z("color"), e?.textColor);
|
|
369
372
|
}
|
|
370
373
|
function J() {
|
|
371
|
-
return U() ?
|
|
374
|
+
return U() ? W() : z("color");
|
|
372
375
|
}
|
|
373
376
|
function Y() {
|
|
374
377
|
return a.editor?.getAttributes("paragraph").lineHeight || "";
|
|
@@ -377,7 +380,7 @@ var Me = ["data-tpl-theme", "aria-label"], Ne = { class: "tpl:flex tpl:items-cen
|
|
|
377
380
|
let t = a.editor?.chain().focus();
|
|
378
381
|
e ? t?.setLineHeight(e).run() : t?.unsetLineHeight().run();
|
|
379
382
|
}
|
|
380
|
-
function
|
|
383
|
+
function Z(e) {
|
|
381
384
|
let t = a.editor?.chain().focus();
|
|
382
385
|
e && e !== "normal" ? t?.setLetterSpacing(e).run() : t?.unsetLetterSpacing().run();
|
|
383
386
|
}
|
|
@@ -385,30 +388,35 @@ var Me = ["data-tpl-theme", "aria-label"], Ne = { class: "tpl:flex tpl:items-cen
|
|
|
385
388
|
return a.editor?.getAttributes("highlight").color || "";
|
|
386
389
|
}
|
|
387
390
|
function Ae(e) {
|
|
391
|
+
if (a.isEditable === !1) return;
|
|
388
392
|
let t = a.editor?.chain().focus();
|
|
389
393
|
e ? t?.setHighlight({ color: e }).run() : t?.unsetHighlight().run();
|
|
390
394
|
}
|
|
391
|
-
return (
|
|
395
|
+
return (n, a) => d(T) && !k.value ? (r(), v(l, {
|
|
392
396
|
key: 0,
|
|
393
|
-
to:
|
|
394
|
-
}, [
|
|
395
|
-
"data-tpl-theme":
|
|
397
|
+
to: d(T)
|
|
398
|
+
}, [g("div", {
|
|
399
|
+
"data-tpl-theme": d(C),
|
|
396
400
|
role: "toolbar",
|
|
397
|
-
"aria-label":
|
|
401
|
+
"aria-label": d(A).paragraphEditor.toolbar,
|
|
398
402
|
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)]",
|
|
399
|
-
style:
|
|
400
|
-
...
|
|
403
|
+
style: o({
|
|
404
|
+
...d(S),
|
|
401
405
|
top: `${e.toolbarPosition.top}px`,
|
|
402
406
|
left: `${e.toolbarPosition.left}px`,
|
|
403
407
|
transform: "translateY(-100%)",
|
|
404
408
|
flexDirection: "column"
|
|
405
409
|
})
|
|
406
|
-
}, [
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
410
|
+
}, [g("fieldset", {
|
|
411
|
+
disabled: e.isEditable === !1,
|
|
412
|
+
inert: e.isEditable === !1,
|
|
413
|
+
class: "tpl:contents"
|
|
414
|
+
}, [!e.isLoading && e.editor ? (r(), m(_, { key: 0 }, [g("div", Fe, [
|
|
415
|
+
c(G, {
|
|
416
|
+
"model-value": d(be)(z("fontFamily")),
|
|
417
|
+
options: d(ye)(d(ee), z("fontFamily")),
|
|
418
|
+
label: d(A).paragraphEditor.fontFamily,
|
|
419
|
+
placeholder: d(A).paragraphEditor.defaultFont,
|
|
412
420
|
"width-class": "tpl:w-32",
|
|
413
421
|
"onUpdate:modelValue": V
|
|
414
422
|
}, null, 8, [
|
|
@@ -417,11 +425,11 @@ var Me = ["data-tpl-theme", "aria-label"], Ne = { class: "tpl:flex tpl:items-cen
|
|
|
417
425
|
"label",
|
|
418
426
|
"placeholder"
|
|
419
427
|
]),
|
|
420
|
-
|
|
421
|
-
"model-value":
|
|
422
|
-
options:
|
|
423
|
-
label:
|
|
424
|
-
placeholder:
|
|
428
|
+
c(G, {
|
|
429
|
+
"model-value": z("fontSize"),
|
|
430
|
+
options: d(he),
|
|
431
|
+
label: d(A).paragraphEditor.fontSize,
|
|
432
|
+
placeholder: d(A).paragraphEditor.defaultSize,
|
|
425
433
|
"width-class": "tpl:w-20",
|
|
426
434
|
"onUpdate:modelValue": H
|
|
427
435
|
}, null, 8, [
|
|
@@ -430,175 +438,179 @@ var Me = ["data-tpl-theme", "aria-label"], Ne = { class: "tpl:flex tpl:items-cen
|
|
|
430
438
|
"label",
|
|
431
439
|
"placeholder"
|
|
432
440
|
]),
|
|
433
|
-
|
|
434
|
-
|
|
441
|
+
c($),
|
|
442
|
+
c(j, {
|
|
435
443
|
"swatch-only": "",
|
|
444
|
+
disabled: e.isEditable === !1,
|
|
436
445
|
size: "sm",
|
|
437
446
|
"data-testid": "text-color-picker",
|
|
438
447
|
"model-value": J(),
|
|
439
448
|
"seed-color": q(),
|
|
440
|
-
"aria-label":
|
|
449
|
+
"aria-label": d(A).paragraphEditor.textColor,
|
|
441
450
|
"onUpdate:modelValue": K
|
|
442
451
|
}, null, 8, [
|
|
452
|
+
"disabled",
|
|
443
453
|
"model-value",
|
|
444
454
|
"seed-color",
|
|
445
455
|
"aria-label"
|
|
446
456
|
]),
|
|
447
|
-
|
|
457
|
+
c(j, {
|
|
448
458
|
"swatch-only": "",
|
|
459
|
+
disabled: e.isEditable === !1,
|
|
449
460
|
size: "sm",
|
|
450
461
|
"data-testid": "highlight-color-picker",
|
|
451
462
|
"model-value": ke(),
|
|
452
|
-
"seed-color":
|
|
453
|
-
"aria-label":
|
|
463
|
+
"seed-color": d(ge),
|
|
464
|
+
"aria-label": d(A).paragraphEditor.highlightColor,
|
|
454
465
|
"onUpdate:modelValue": Ae
|
|
455
466
|
}, null, 8, [
|
|
467
|
+
"disabled",
|
|
456
468
|
"model-value",
|
|
457
469
|
"seed-color",
|
|
458
470
|
"aria-label"
|
|
459
471
|
]),
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
icon:
|
|
463
|
-
label:
|
|
472
|
+
c($),
|
|
473
|
+
c(Q, {
|
|
474
|
+
icon: d(te),
|
|
475
|
+
label: d(A).paragraphEditor.bold,
|
|
464
476
|
active: e.editor.isActive("bold"),
|
|
465
477
|
"stroke-width": 2.5,
|
|
466
|
-
onClick:
|
|
478
|
+
onClick: a[0] ||= (t) => e.editor.chain().focus().toggleBold().run()
|
|
467
479
|
}, null, 8, [
|
|
468
480
|
"icon",
|
|
469
481
|
"label",
|
|
470
482
|
"active"
|
|
471
483
|
]),
|
|
472
|
-
|
|
473
|
-
icon:
|
|
474
|
-
label:
|
|
484
|
+
c(Q, {
|
|
485
|
+
icon: d(P),
|
|
486
|
+
label: d(A).paragraphEditor.italic,
|
|
475
487
|
active: e.editor.isActive("italic"),
|
|
476
|
-
onClick:
|
|
488
|
+
onClick: a[1] ||= (t) => e.editor.chain().focus().toggleItalic().run()
|
|
477
489
|
}, null, 8, [
|
|
478
490
|
"icon",
|
|
479
491
|
"label",
|
|
480
492
|
"active"
|
|
481
493
|
]),
|
|
482
|
-
|
|
483
|
-
icon:
|
|
484
|
-
label:
|
|
494
|
+
c(Q, {
|
|
495
|
+
icon: d(De),
|
|
496
|
+
label: d(A).paragraphEditor.underline,
|
|
485
497
|
active: e.editor.isActive("underline"),
|
|
486
|
-
onClick:
|
|
498
|
+
onClick: a[2] ||= (t) => e.editor.chain().focus().toggleUnderline().run()
|
|
487
499
|
}, null, 8, [
|
|
488
500
|
"icon",
|
|
489
501
|
"label",
|
|
490
502
|
"active"
|
|
491
503
|
]),
|
|
492
|
-
|
|
493
|
-
icon:
|
|
494
|
-
label:
|
|
504
|
+
c(Q, {
|
|
505
|
+
icon: d(Ce),
|
|
506
|
+
label: d(A).paragraphEditor.strikethrough,
|
|
495
507
|
active: e.editor.isActive("strike"),
|
|
496
|
-
onClick:
|
|
508
|
+
onClick: a[3] ||= (t) => e.editor.chain().focus().toggleStrike().run()
|
|
497
509
|
}, null, 8, [
|
|
498
510
|
"icon",
|
|
499
511
|
"label",
|
|
500
512
|
"active"
|
|
501
513
|
]),
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
icon:
|
|
505
|
-
label:
|
|
514
|
+
c($),
|
|
515
|
+
c(Q, {
|
|
516
|
+
icon: d(we),
|
|
517
|
+
label: d(A).paragraphEditor.subscript,
|
|
506
518
|
active: e.editor.isActive("subscript"),
|
|
507
|
-
onClick:
|
|
519
|
+
onClick: a[4] ||= (t) => e.editor.chain().focus().toggleSubscript().run()
|
|
508
520
|
}, null, 8, [
|
|
509
521
|
"icon",
|
|
510
522
|
"label",
|
|
511
523
|
"active"
|
|
512
524
|
]),
|
|
513
|
-
|
|
514
|
-
icon:
|
|
515
|
-
label:
|
|
525
|
+
c(Q, {
|
|
526
|
+
icon: d(Te),
|
|
527
|
+
label: d(A).paragraphEditor.superscript,
|
|
516
528
|
active: e.editor.isActive("superscript"),
|
|
517
|
-
onClick:
|
|
529
|
+
onClick: a[5] ||= (t) => e.editor.chain().focus().toggleSuperscript().run()
|
|
518
530
|
}, null, 8, [
|
|
519
531
|
"icon",
|
|
520
532
|
"label",
|
|
521
533
|
"active"
|
|
522
534
|
]),
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
icon:
|
|
526
|
-
label:
|
|
535
|
+
c($),
|
|
536
|
+
c(Q, {
|
|
537
|
+
icon: d(F),
|
|
538
|
+
label: d(A).paragraphEditor.addLink,
|
|
527
539
|
active: e.editor.isActive("link"),
|
|
528
|
-
onClick:
|
|
540
|
+
onClick: a[6] ||= (e) => x("open-link-dialog")
|
|
529
541
|
}, null, 8, [
|
|
530
542
|
"icon",
|
|
531
543
|
"label",
|
|
532
544
|
"active"
|
|
533
545
|
])
|
|
534
|
-
]),
|
|
535
|
-
|
|
536
|
-
icon:
|
|
537
|
-
label:
|
|
546
|
+
]), g("div", Ie, [
|
|
547
|
+
c(Q, {
|
|
548
|
+
icon: d(re),
|
|
549
|
+
label: d(A).paragraphEditor.bulletList,
|
|
538
550
|
active: e.editor.isActive("bulletList"),
|
|
539
|
-
onClick:
|
|
551
|
+
onClick: a[7] ||= (t) => e.editor.chain().focus().toggleBulletList().run()
|
|
540
552
|
}, null, 8, [
|
|
541
553
|
"icon",
|
|
542
554
|
"label",
|
|
543
555
|
"active"
|
|
544
556
|
]),
|
|
545
|
-
|
|
546
|
-
icon:
|
|
547
|
-
label:
|
|
557
|
+
c(Q, {
|
|
558
|
+
icon: d(xe),
|
|
559
|
+
label: d(A).paragraphEditor.numberedList,
|
|
548
560
|
active: e.editor.isActive("orderedList"),
|
|
549
|
-
onClick:
|
|
561
|
+
onClick: a[8] ||= (t) => e.editor.chain().focus().toggleOrderedList().run()
|
|
550
562
|
}, null, 8, [
|
|
551
563
|
"icon",
|
|
552
564
|
"label",
|
|
553
565
|
"active"
|
|
554
566
|
]),
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
icon:
|
|
558
|
-
label:
|
|
567
|
+
c($),
|
|
568
|
+
c(Q, {
|
|
569
|
+
icon: d(se),
|
|
570
|
+
label: d(A).paragraphEditor.alignLeft,
|
|
559
571
|
active: e.editor.isActive({ textAlign: "left" }),
|
|
560
|
-
onClick:
|
|
572
|
+
onClick: a[9] ||= (t) => e.editor.chain().focus().setTextAlign("left").run()
|
|
561
573
|
}, null, 8, [
|
|
562
574
|
"icon",
|
|
563
575
|
"label",
|
|
564
576
|
"active"
|
|
565
577
|
]),
|
|
566
|
-
|
|
567
|
-
icon:
|
|
568
|
-
label:
|
|
578
|
+
c(Q, {
|
|
579
|
+
icon: d(oe),
|
|
580
|
+
label: d(A).paragraphEditor.alignCenter,
|
|
569
581
|
active: e.editor.isActive({ textAlign: "center" }),
|
|
570
|
-
onClick:
|
|
582
|
+
onClick: a[10] ||= (t) => e.editor.chain().focus().setTextAlign("center").run()
|
|
571
583
|
}, null, 8, [
|
|
572
584
|
"icon",
|
|
573
585
|
"label",
|
|
574
586
|
"active"
|
|
575
587
|
]),
|
|
576
|
-
|
|
577
|
-
icon:
|
|
578
|
-
label:
|
|
588
|
+
c(Q, {
|
|
589
|
+
icon: d(ae),
|
|
590
|
+
label: d(A).paragraphEditor.alignRight,
|
|
579
591
|
active: e.editor.isActive({ textAlign: "right" }),
|
|
580
|
-
onClick:
|
|
592
|
+
onClick: a[11] ||= (t) => e.editor.chain().focus().setTextAlign("right").run()
|
|
581
593
|
}, null, 8, [
|
|
582
594
|
"icon",
|
|
583
595
|
"label",
|
|
584
596
|
"active"
|
|
585
597
|
]),
|
|
586
|
-
|
|
587
|
-
icon:
|
|
588
|
-
label:
|
|
598
|
+
c(Q, {
|
|
599
|
+
icon: d(Ee),
|
|
600
|
+
label: d(A).paragraphEditor.alignJustify,
|
|
589
601
|
active: e.editor.isActive({ textAlign: "justify" }),
|
|
590
|
-
onClick:
|
|
602
|
+
onClick: a[12] ||= (t) => e.editor.chain().focus().setTextAlign("justify").run()
|
|
591
603
|
}, null, 8, [
|
|
592
604
|
"icon",
|
|
593
605
|
"label",
|
|
594
606
|
"active"
|
|
595
607
|
]),
|
|
596
|
-
|
|
597
|
-
|
|
608
|
+
c($),
|
|
609
|
+
c(G, {
|
|
598
610
|
"model-value": Y(),
|
|
599
|
-
options:
|
|
600
|
-
label:
|
|
601
|
-
placeholder:
|
|
611
|
+
options: d(ve),
|
|
612
|
+
label: d(A).paragraphEditor.lineHeight,
|
|
613
|
+
placeholder: d(A).paragraphEditor.lineHeightShort,
|
|
602
614
|
"width-class": "tpl:w-16",
|
|
603
615
|
"onUpdate:modelValue": X
|
|
604
616
|
}, null, 8, [
|
|
@@ -607,56 +619,56 @@ var Me = ["data-tpl-theme", "aria-label"], Ne = { class: "tpl:flex tpl:items-cen
|
|
|
607
619
|
"label",
|
|
608
620
|
"placeholder"
|
|
609
621
|
]),
|
|
610
|
-
|
|
611
|
-
"model-value":
|
|
612
|
-
options:
|
|
613
|
-
label:
|
|
614
|
-
placeholder:
|
|
622
|
+
c(G, {
|
|
623
|
+
"model-value": z("letterSpacing"),
|
|
624
|
+
options: d(ne),
|
|
625
|
+
label: d(A).paragraphEditor.letterSpacing,
|
|
626
|
+
placeholder: d(A).paragraphEditor.letterSpacingShort,
|
|
615
627
|
"width-class": "tpl:w-20",
|
|
616
|
-
"onUpdate:modelValue":
|
|
628
|
+
"onUpdate:modelValue": Z
|
|
617
629
|
}, null, 8, [
|
|
618
630
|
"model-value",
|
|
619
631
|
"options",
|
|
620
632
|
"label",
|
|
621
633
|
"placeholder"
|
|
622
634
|
]),
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
icon:
|
|
626
|
-
label:
|
|
627
|
-
onClick:
|
|
635
|
+
c($),
|
|
636
|
+
c(Q, {
|
|
637
|
+
icon: d(Se),
|
|
638
|
+
label: d(A).paragraphEditor.clearFormatting,
|
|
639
|
+
onClick: a[13] ||= (t) => e.editor.chain().focus().clearNodes().unsetAllMarks().run()
|
|
628
640
|
}, null, 8, ["icon", "label"]),
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
e.canRequestMergeTag ? (
|
|
641
|
+
c($),
|
|
642
|
+
c(Oe, { onInsert: R }),
|
|
643
|
+
e.canRequestMergeTag ? (r(), m(_, { key: 0 }, [c($), g("button", {
|
|
632
644
|
type: "button",
|
|
633
645
|
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)]",
|
|
634
|
-
"aria-label":
|
|
635
|
-
title:
|
|
636
|
-
onClick:
|
|
637
|
-
}, [
|
|
646
|
+
"aria-label": d(A).mergeTag.insert,
|
|
647
|
+
title: d(A).mergeTag.insert,
|
|
648
|
+
onClick: a[14] ||= (e) => x("add-merge-tag")
|
|
649
|
+
}, [c(d(M), {
|
|
638
650
|
size: 16,
|
|
639
651
|
"stroke-width": 2
|
|
640
|
-
}),
|
|
641
|
-
e.canInsertLogicTag ? (
|
|
652
|
+
}), h(" " + t(d(A).mergeTag.insertShort), 1)], 8, Le)], 64)) : f("", !0),
|
|
653
|
+
e.canInsertLogicTag ? (r(), m(_, { key: 1 }, [c($), g("button", {
|
|
642
654
|
type: "button",
|
|
643
655
|
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)]",
|
|
644
|
-
"aria-label":
|
|
645
|
-
title:
|
|
656
|
+
"aria-label": d(A).logicTag.insert,
|
|
657
|
+
title: d(A).logicTag.insert,
|
|
646
658
|
"data-testid": "insert-logic-button",
|
|
647
|
-
onClick:
|
|
648
|
-
}, [
|
|
659
|
+
onClick: a[15] ||= (e) => x("add-logic-tag")
|
|
660
|
+
}, [c(d(N), {
|
|
649
661
|
size: 16,
|
|
650
662
|
"stroke-width": 2
|
|
651
|
-
}),
|
|
652
|
-
|
|
653
|
-
])], 64)) : (
|
|
663
|
+
}), h(" " + t(d(A).logicTag.insertShort), 1)], 8, Re)], 64)) : f("", !0),
|
|
664
|
+
p.value ? (r(), m(_, { key: 2 }, [c($), c(d(i), { editor: e.editor }, null, 8, ["editor"])], 64)) : f("", !0)
|
|
665
|
+
])], 64)) : (r(), m("div", ze, [c(d(ie), {
|
|
654
666
|
class: "tpl-spinner",
|
|
655
667
|
size: 14,
|
|
656
668
|
"stroke-width": 2
|
|
657
|
-
}),
|
|
669
|
+
}), h(" " + t(d(A).errors.editorLoading), 1)]))], 8, Pe)], 12, Ne)], 8, ["to"])) : f("", !0);
|
|
658
670
|
}
|
|
659
|
-
}),
|
|
671
|
+
}), Ve = { class: "tpl-text-editor-wrapper tpl:relative" }, He = /*@__PURE__*/ x({
|
|
660
672
|
__name: "ParagraphEditor",
|
|
661
673
|
props: {
|
|
662
674
|
block: {},
|
|
@@ -664,31 +676,31 @@ var Me = ["data-tpl-theme", "aria-label"], Ne = { class: "tpl:flex tpl:items-cen
|
|
|
664
676
|
},
|
|
665
677
|
emits: ["done"],
|
|
666
678
|
setup(e, { emit: t }) {
|
|
667
|
-
let
|
|
668
|
-
blockId: () =>
|
|
669
|
-
blockContent: () =>
|
|
679
|
+
let n = e, i = t, a = B(), o = b(I, null), l = o?.content ? R(o) : null, f = u(() => w(l?.settings.value ?? { locale: "en" }) === "rtl" ? "right" : "left"), { editor: p, EditorContent: h, isLoading: g, isEditable: _, initError: v, retry: y, showLinkDialog: x, linkUrl: S, linkColor: C, linkDialogRef: T, canRequestMergeTag: E, canInsertLogicTag: D, openLinkDialog: A, insertLink: j, removeLink: M, closeLinkDialog: N, handleLinkKeydown: P, handleAddMergeTag: te, handleAddLogicTag: F } = O({
|
|
680
|
+
blockId: () => n.block.id,
|
|
681
|
+
blockContent: () => n.block.content,
|
|
670
682
|
onDone: () => i("done"),
|
|
671
683
|
editorName: "ParagraphEditor",
|
|
672
684
|
async loadExtensions({ mergeTags: e, syntax: t, triggerChar: n, autocompleteEnabled: r, suggestionEmptyText: i }) {
|
|
673
|
-
let [{ Editor: o, EditorContent: s }, { default:
|
|
674
|
-
import("./dist-
|
|
675
|
-
import("./dist-
|
|
676
|
-
import("./dist-
|
|
677
|
-
import("./dist-
|
|
678
|
-
import("./dist-
|
|
679
|
-
import("./dist-
|
|
680
|
-
import("./dist-
|
|
681
|
-
import("./dist-
|
|
682
|
-
import("./dist-
|
|
683
|
-
import("./dist-
|
|
684
|
-
import("./dist-
|
|
685
|
-
import("./extensions-
|
|
685
|
+
let [{ Editor: o, 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: T }] = await Promise.all([
|
|
686
|
+
import("./dist-fqSers8_.js").then((e) => e.r),
|
|
687
|
+
import("./dist-D_XrUEET.js"),
|
|
688
|
+
import("./dist-TAv500j6.js"),
|
|
689
|
+
import("./dist-B9a7iVye.js"),
|
|
690
|
+
import("./dist-DZ3X-uB8.js"),
|
|
691
|
+
import("./dist-54VCNoC0.js"),
|
|
692
|
+
import("./dist-ChOb5XHW.js"),
|
|
693
|
+
import("./dist-B8dY8drK.js"),
|
|
694
|
+
import("./dist-CcOn7WCo.js"),
|
|
695
|
+
import("./dist-6DU0me3E.js"),
|
|
696
|
+
import("./dist-C3hu_C3w.js"),
|
|
697
|
+
import("./extensions-DOLZkLzV.js")
|
|
686
698
|
]);
|
|
687
699
|
return {
|
|
688
700
|
TiptapEditor: o,
|
|
689
701
|
EC: s,
|
|
690
702
|
extensions: [
|
|
691
|
-
|
|
703
|
+
c.configure({
|
|
692
704
|
heading: !1,
|
|
693
705
|
codeBlock: !1,
|
|
694
706
|
blockquote: !1,
|
|
@@ -696,19 +708,34 @@ var Me = ["data-tpl-theme", "aria-label"], Ne = { class: "tpl:flex tpl:items-cen
|
|
|
696
708
|
link: !1,
|
|
697
709
|
underline: !1
|
|
698
710
|
}),
|
|
711
|
+
u,
|
|
699
712
|
d,
|
|
700
|
-
f,
|
|
701
713
|
p,
|
|
702
|
-
|
|
714
|
+
k(l).configure({
|
|
703
715
|
openOnClick: !1,
|
|
704
716
|
HTMLAttributes: {
|
|
705
717
|
target: "_blank",
|
|
706
718
|
rel: "noopener noreferrer"
|
|
707
719
|
}
|
|
708
720
|
}),
|
|
709
|
-
m.
|
|
710
|
-
|
|
711
|
-
|
|
721
|
+
m.extend({
|
|
722
|
+
addOptions() {
|
|
723
|
+
return {
|
|
724
|
+
...this.parent(),
|
|
725
|
+
types: ["paragraph"],
|
|
726
|
+
defaultAlignment: f.value
|
|
727
|
+
};
|
|
728
|
+
},
|
|
729
|
+
addGlobalAttributes() {
|
|
730
|
+
return [{
|
|
731
|
+
types: this.options.types,
|
|
732
|
+
attributes: { textAlign: {
|
|
733
|
+
default: null,
|
|
734
|
+
parseHTML: (e) => this.options.alignments.includes(e.style.textAlign) ? e.style.textAlign : null,
|
|
735
|
+
renderHTML: (e) => e.textAlign !== f.value && this.options.alignments.includes(e.textAlign) ? { style: `text-align: ${e.textAlign}` } : {}
|
|
736
|
+
} }
|
|
737
|
+
}];
|
|
738
|
+
}
|
|
712
739
|
}),
|
|
713
740
|
h,
|
|
714
741
|
g,
|
|
@@ -733,32 +760,34 @@ var Me = ["data-tpl-theme", "aria-label"], Ne = { class: "tpl:flex tpl:items-cen
|
|
|
733
760
|
};
|
|
734
761
|
}
|
|
735
762
|
});
|
|
736
|
-
return (t, n) => (
|
|
737
|
-
|
|
738
|
-
editor:
|
|
763
|
+
return (t, n) => (r(), m("div", Ve, [
|
|
764
|
+
c(Be, {
|
|
765
|
+
editor: d(p),
|
|
739
766
|
"toolbar-position": e.toolbarPosition,
|
|
740
|
-
"is-loading": g
|
|
741
|
-
"
|
|
742
|
-
"can-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
767
|
+
"is-loading": d(g),
|
|
768
|
+
"is-editable": d(_),
|
|
769
|
+
"can-request-merge-tag": d(E),
|
|
770
|
+
"can-insert-logic-tag": d(D),
|
|
771
|
+
onOpenLinkDialog: d(A),
|
|
772
|
+
onAddMergeTag: d(te),
|
|
773
|
+
onAddLogicTag: d(F)
|
|
746
774
|
}, null, 8, [
|
|
747
775
|
"editor",
|
|
748
776
|
"toolbar-position",
|
|
749
777
|
"is-loading",
|
|
778
|
+
"is-editable",
|
|
750
779
|
"can-request-merge-tag",
|
|
751
780
|
"can-insert-logic-tag",
|
|
752
781
|
"onOpenLinkDialog",
|
|
753
782
|
"onAddMergeTag",
|
|
754
783
|
"onAddLogicTag"
|
|
755
784
|
]),
|
|
756
|
-
|
|
757
|
-
editor:
|
|
758
|
-
"editor-content":
|
|
759
|
-
"is-loading": g
|
|
760
|
-
"init-error":
|
|
761
|
-
onRetry:
|
|
785
|
+
c(ne, {
|
|
786
|
+
editor: d(p),
|
|
787
|
+
"editor-content": d(h),
|
|
788
|
+
"is-loading": d(g),
|
|
789
|
+
"init-error": d(v),
|
|
790
|
+
onRetry: d(y)
|
|
762
791
|
}, null, 8, [
|
|
763
792
|
"editor",
|
|
764
793
|
"editor-content",
|
|
@@ -766,19 +795,19 @@ var Me = ["data-tpl-theme", "aria-label"], Ne = { class: "tpl:flex tpl:items-cen
|
|
|
766
795
|
"init-error",
|
|
767
796
|
"onRetry"
|
|
768
797
|
]),
|
|
769
|
-
|
|
770
|
-
visible:
|
|
771
|
-
"is-editing-link":
|
|
772
|
-
"dialog-ref":
|
|
773
|
-
"onUpdate:dialogRef": n[0] ||= (e) =>
|
|
774
|
-
"link-url":
|
|
775
|
-
"onUpdate:linkUrl": n[1] ||= (e) =>
|
|
776
|
-
"link-color":
|
|
777
|
-
"onUpdate:linkColor": n[2] ||= (e) =>
|
|
778
|
-
onClose:
|
|
779
|
-
onInsert:
|
|
780
|
-
onRemove:
|
|
781
|
-
onKeydown:
|
|
798
|
+
c(ee, {
|
|
799
|
+
visible: d(x),
|
|
800
|
+
"is-editing-link": d(p)?.isActive("link") ?? !1,
|
|
801
|
+
"dialog-ref": d(T),
|
|
802
|
+
"onUpdate:dialogRef": n[0] ||= (e) => s(T) ? T.value = e : null,
|
|
803
|
+
"link-url": d(S),
|
|
804
|
+
"onUpdate:linkUrl": n[1] ||= (e) => s(S) ? S.value = e : null,
|
|
805
|
+
"link-color": d(C),
|
|
806
|
+
"onUpdate:linkColor": n[2] ||= (e) => s(C) ? C.value = e : null,
|
|
807
|
+
onClose: d(N),
|
|
808
|
+
onInsert: d(j),
|
|
809
|
+
onRemove: d(M),
|
|
810
|
+
onKeydown: d(P)
|
|
782
811
|
}, null, 8, [
|
|
783
812
|
"visible",
|
|
784
813
|
"is-editing-link",
|
|
@@ -792,5 +821,5 @@ var Me = ["data-tpl-theme", "aria-label"], Ne = { class: "tpl:flex tpl:items-cen
|
|
|
792
821
|
])
|
|
793
822
|
]));
|
|
794
823
|
}
|
|
795
|
-
}),
|
|
796
|
-
export {
|
|
824
|
+
}), Ue = /* @__PURE__ */ e({ default: () => We }), We = He;
|
|
825
|
+
export { We as default, G as n, Ue as t };
|