@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,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as f } from "./
|
|
3
|
-
import { t as p } from "./
|
|
4
|
-
import { t as m } from "./
|
|
5
|
-
import {
|
|
6
|
-
import { t as v } from "./TplModal-
|
|
1
|
+
import { Ft as e, M as t, Mt as n, U as r, _ as i, ct as a, d as o, f as s, g as c, l, u, y as d } from "./vue.runtime.esm-bundler-BJXc_Mri.js";
|
|
2
|
+
import { t as f } from "./loader-circle-BbDItE_O.js";
|
|
3
|
+
import { t as p } from "./triangle-alert-BYbKu7zZ.js";
|
|
4
|
+
import { t as m } from "./useI18n-CgtvtF4C.js";
|
|
5
|
+
import { C as h, b as g, f as _ } from "./styleConstants-CgiNKdnc.js";
|
|
6
|
+
import { t as v } from "./TplModal-ZoXu40T9.js";
|
|
7
7
|
// src/components/RestoreVersionDialog.vue?vue&type=script&setup=true&lang.ts
|
|
8
8
|
var y = ["aria-busy"], b = { class: "tpl:flex tpl:items-center tpl:gap-2" }, x = {
|
|
9
9
|
id: "tpl-restore-version-title",
|
|
@@ -24,12 +24,12 @@ var y = ["aria-busy"], b = { class: "tpl:flex tpl:items-center tpl:gap-2" }, x =
|
|
|
24
24
|
"discard-and-restore"
|
|
25
25
|
],
|
|
26
26
|
setup(d, { emit: D }) {
|
|
27
|
-
let O = D, { t: k } =
|
|
28
|
-
return (
|
|
27
|
+
let O = D, { t: k } = m();
|
|
28
|
+
return (m, D) => (t(), u(v, {
|
|
29
29
|
visible: d.visible,
|
|
30
30
|
onClose: D[3] ||= (e) => O("cancel")
|
|
31
31
|
}, {
|
|
32
|
-
default:
|
|
32
|
+
default: r(() => [l("div", {
|
|
33
33
|
role: "alertdialog",
|
|
34
34
|
"aria-modal": "true",
|
|
35
35
|
"aria-busy": d.isBusy,
|
|
@@ -42,40 +42,40 @@ var y = ["aria-busy"], b = { class: "tpl:flex tpl:items-center tpl:gap-2" }, x =
|
|
|
42
42
|
"box-shadow": "var(--tpl-shadow-xl)"
|
|
43
43
|
}
|
|
44
44
|
}, [
|
|
45
|
-
|
|
45
|
+
l("div", b, [i(a(p), {
|
|
46
46
|
size: 18,
|
|
47
47
|
"stroke-width": 2,
|
|
48
48
|
class: "tpl:text-[var(--tpl-warning)]"
|
|
49
|
-
}),
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
}), l("h3", x, e(a(k).versionPreview.restoreConfirm.title), 1)]),
|
|
50
|
+
l("p", S, e(d.canSave ? a(k).versionPreview.restoreConfirm.unsavedWithSave : a(k).versionPreview.restoreConfirm.unsavedNoSave), 1),
|
|
51
|
+
l("div", C, [
|
|
52
|
+
l("button", {
|
|
53
53
|
type: "button",
|
|
54
54
|
"data-testid": "restore-version-cancel",
|
|
55
|
-
class:
|
|
55
|
+
class: n(a(h)),
|
|
56
56
|
disabled: d.isBusy,
|
|
57
57
|
onClick: D[0] ||= (e) => O("cancel")
|
|
58
|
-
},
|
|
59
|
-
|
|
58
|
+
}, e(a(k).versionPreview.restoreConfirm.cancel), 11, w),
|
|
59
|
+
l("button", {
|
|
60
60
|
type: "button",
|
|
61
61
|
"data-testid": "restore-version-discard",
|
|
62
|
-
class:
|
|
62
|
+
class: n(a(_)),
|
|
63
63
|
disabled: d.isBusy,
|
|
64
64
|
onClick: D[1] ||= (e) => O("discard-and-restore")
|
|
65
|
-
},
|
|
66
|
-
d.canSave ? (
|
|
65
|
+
}, e(a(k).versionPreview.restoreConfirm.restoreAnyway), 11, T),
|
|
66
|
+
d.canSave ? (t(), s("button", {
|
|
67
67
|
key: 0,
|
|
68
68
|
type: "button",
|
|
69
69
|
"data-testid": "restore-version-save-first",
|
|
70
|
-
class:
|
|
70
|
+
class: n(a(g)),
|
|
71
71
|
disabled: d.isBusy,
|
|
72
72
|
onClick: D[2] ||= (e) => O("save-and-restore")
|
|
73
|
-
}, [d.isBusy ? (
|
|
73
|
+
}, [d.isBusy ? (t(), u(a(f), {
|
|
74
74
|
key: 0,
|
|
75
75
|
class: "tpl:animate-spin",
|
|
76
76
|
size: 12,
|
|
77
77
|
"stroke-width": 2
|
|
78
|
-
})) :
|
|
78
|
+
})) : o("", !0), c(" " + e(a(k).versionPreview.restoreConfirm.saveAndRestore), 1)], 10, E)) : o("", !0)
|
|
79
79
|
])
|
|
80
80
|
], 8, y)]),
|
|
81
81
|
_: 1
|
|
@@ -1,20 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as _ } from "./runtime-dom.esm-bundler-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { t as E } from "./MergeTagInput-
|
|
10
|
-
var D =
|
|
11
|
-
name: "bold",
|
|
12
|
-
size: 24,
|
|
13
|
-
node: [["path", {
|
|
14
|
-
d: "M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",
|
|
15
|
-
key: "mg9rjx"
|
|
16
|
-
}]]
|
|
17
|
-
}), O = C({
|
|
1
|
+
import { E as e, Ft as t, L as n, M as r, Pt as i, R as a, _ as o, a as s, c, ct as l, d as u, f as d, g as f, l as p, u as m, w as h, y as g } from "./vue.runtime.esm-bundler-BJXc_Mri.js";
|
|
2
|
+
import { c as _ } from "./runtime-dom.esm-bundler-DlHp8xgy.js";
|
|
3
|
+
import { t as v } from "./createLucideIcon-Dw5e5gVE.js";
|
|
4
|
+
import { c as y } from "./LogicTagInsertButton-BjYs-UQX.js";
|
|
5
|
+
import { t as b } from "./x-B7NZYzhx.js";
|
|
6
|
+
import { et as x, it as S, v as C } from "./keys-BCqskl51.js";
|
|
7
|
+
import { t as w } from "./useI18n-CgtvtF4C.js";
|
|
8
|
+
import { n as T } from "./usePopoverPosition-VDQjyX_A.js";
|
|
9
|
+
import { t as E } from "./MergeTagInput-BsnogCeY.js";
|
|
10
|
+
var D = v({
|
|
18
11
|
name: "italic",
|
|
19
12
|
size: 24,
|
|
20
13
|
node: [
|
|
@@ -40,12 +33,20 @@ var D = C({
|
|
|
40
33
|
key: "uljnxc"
|
|
41
34
|
}]
|
|
42
35
|
]
|
|
36
|
+
}), O = v({
|
|
37
|
+
name: "letter-b",
|
|
38
|
+
size: 24,
|
|
39
|
+
node: [["path", {
|
|
40
|
+
d: "M6 12h9a4 4 0 010 8H7a1 1 0 01-1-1V5a1 1 0 011-1h7a4 4 0 010 8",
|
|
41
|
+
key: "n8tvfh"
|
|
42
|
+
}]],
|
|
43
|
+
aliases: ["bold"]
|
|
43
44
|
}), k = ["data-tpl-theme"], A = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-5 tpl:py-4" }, j = {
|
|
44
45
|
id: "tpl-link-dialog-title",
|
|
45
46
|
class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
|
|
46
47
|
}, M = ["aria-label"], N = { class: "tpl:p-5" }, P = { class: "tpl:mb-4 tpl:last:mb-0" }, F = { class: "tpl:mb-1.5 tpl:block tpl:text-xs tpl:font-medium tpl:tracking-wide tpl:text-[var(--tpl-text-muted)] tpl:uppercase" }, I = { class: "tpl:mb-4 tpl:last:mb-0" }, L = { class: "tpl:mb-1.5 tpl:block tpl:text-xs tpl:font-medium tpl:tracking-wide tpl:text-[var(--tpl-text-muted)] tpl:uppercase" }, R = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-t tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)] tpl:px-5 tpl:py-4" }, z = { class: "tpl:ml-auto tpl:flex tpl:gap-2" }, B = /* @__PURE__ */ g({
|
|
47
48
|
__name: "RichTextLinkDialog",
|
|
48
|
-
props: /*@__PURE__*/
|
|
49
|
+
props: /*@__PURE__*/ e({
|
|
49
50
|
visible: { type: Boolean },
|
|
50
51
|
isEditingLink: { type: Boolean }
|
|
51
52
|
}, {
|
|
@@ -56,7 +57,7 @@ var D = C({
|
|
|
56
57
|
dialogRef: { required: !0 },
|
|
57
58
|
dialogRefModifiers: {}
|
|
58
59
|
}),
|
|
59
|
-
emits: /*@__PURE__*/
|
|
60
|
+
emits: /*@__PURE__*/ e([
|
|
60
61
|
"close",
|
|
61
62
|
"insert",
|
|
62
63
|
"remove",
|
|
@@ -66,62 +67,62 @@ var D = C({
|
|
|
66
67
|
"update:linkColor",
|
|
67
68
|
"update:dialogRef"
|
|
68
69
|
]),
|
|
69
|
-
setup(
|
|
70
|
-
let
|
|
71
|
-
return (
|
|
70
|
+
setup(e, { emit: n }) {
|
|
71
|
+
let f = a(e, "linkUrl"), g = a(e, "linkColor"), v = a(e, "dialogRef"), D = n, O = h(x, null), B = h(S, null), V = T(), H = h(C, null), U = c(() => H?.content.value.settings.linkColor || "#2c85de"), { t: W } = w();
|
|
72
|
+
return (n, a) => l(V) ? (r(), m(s, {
|
|
72
73
|
key: 0,
|
|
73
|
-
to:
|
|
74
|
-
}, [
|
|
74
|
+
to: l(V)
|
|
75
|
+
}, [e.visible ? (r(), d("div", {
|
|
75
76
|
key: 0,
|
|
76
|
-
"data-tpl-theme":
|
|
77
|
+
"data-tpl-theme": l(B),
|
|
77
78
|
class: "tpl tpl-link-dialog tpl:fixed tpl:inset-0 tpl:flex tpl:items-center tpl:justify-center",
|
|
78
|
-
style:
|
|
79
|
-
onClick:
|
|
79
|
+
style: i(l(O)),
|
|
80
|
+
onClick: a[7] ||= _((e) => D("close"), ["self"])
|
|
80
81
|
}, [p("div", {
|
|
81
|
-
ref: (e) =>
|
|
82
|
+
ref: (e) => v.value = e,
|
|
82
83
|
role: "dialog",
|
|
83
84
|
"aria-modal": "true",
|
|
84
85
|
"aria-labelledby": "tpl-link-dialog-title",
|
|
85
86
|
"data-testid": "link-dialog",
|
|
86
87
|
class: "tpl:w-[400px] tpl:overflow-hidden tpl:rounded-lg tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:shadow-[var(--tpl-shadow-lg)]"
|
|
87
88
|
}, [
|
|
88
|
-
p("div", A, [p("h4", j,
|
|
89
|
+
p("div", A, [p("h4", j, t(e.isEditingLink ? l(W).linkDialog.editLink : l(W).linkDialog.insertLink), 1), p("button", {
|
|
89
90
|
type: "button",
|
|
90
|
-
"aria-label":
|
|
91
|
+
"aria-label": l(W).linkDialog.cancel,
|
|
91
92
|
class: "tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded tpl:border-none tpl:bg-transparent tpl:p-0 tpl:text-[var(--tpl-text-muted)] tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
|
|
92
|
-
onClick:
|
|
93
|
-
}, [
|
|
93
|
+
onClick: a[0] ||= (e) => D("close")
|
|
94
|
+
}, [o(l(b), {
|
|
94
95
|
size: 16,
|
|
95
96
|
"stroke-width": 2
|
|
96
97
|
})], 8, M)]),
|
|
97
|
-
p("div", N, [p("div", P, [p("label", F,
|
|
98
|
-
"model-value":
|
|
98
|
+
p("div", N, [p("div", P, [p("label", F, t(l(W).linkDialog.urlLabel), 1), o(E, {
|
|
99
|
+
"model-value": f.value,
|
|
99
100
|
type: "url",
|
|
100
101
|
"data-testid": "link-dialog-url",
|
|
101
|
-
placeholder:
|
|
102
|
-
"onUpdate:modelValue":
|
|
103
|
-
onKeydown:
|
|
104
|
-
}, null, 8, ["model-value", "placeholder"])]), p("div", I, [p("label", L,
|
|
102
|
+
placeholder: l(W).linkDialog.urlPlaceholder,
|
|
103
|
+
"onUpdate:modelValue": a[1] ||= (e) => f.value = e,
|
|
104
|
+
onKeydown: a[2] ||= (e) => D("keydown", e)
|
|
105
|
+
}, null, 8, ["model-value", "placeholder"])]), p("div", I, [p("label", L, t(l(W).linkDialog.colorLabel), 1), o(y, {
|
|
105
106
|
"model-value": g.value,
|
|
106
107
|
"seed-color": U.value,
|
|
107
|
-
"onUpdate:modelValue":
|
|
108
|
+
"onUpdate:modelValue": a[3] ||= (e) => g.value = e
|
|
108
109
|
}, null, 8, ["model-value", "seed-color"])])]),
|
|
109
|
-
p("div", R, [
|
|
110
|
+
p("div", R, [e.isEditingLink ? (r(), d("button", {
|
|
110
111
|
key: 0,
|
|
111
112
|
type: "button",
|
|
112
113
|
class: "tpl:inline-flex tpl:cursor-pointer tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-danger)] tpl:bg-transparent tpl:px-4 tpl:py-2 tpl:text-[13px] tpl:font-medium tpl:text-[var(--tpl-danger)] tpl:transition-all tpl:hover:bg-[var(--tpl-danger-light)]",
|
|
113
|
-
onClick:
|
|
114
|
-
},
|
|
114
|
+
onClick: a[4] ||= (e) => D("remove")
|
|
115
|
+
}, t(l(W).linkDialog.removeLink), 1)) : u("", !0), p("div", z, [p("button", {
|
|
115
116
|
type: "button",
|
|
116
117
|
class: "tpl:inline-flex tpl:cursor-pointer tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-transparent tpl:px-4 tpl:py-2 tpl:text-[13px] tpl:font-medium tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
|
|
117
|
-
onClick:
|
|
118
|
-
},
|
|
118
|
+
onClick: a[5] ||= (e) => D("close")
|
|
119
|
+
}, t(l(W).linkDialog.cancel), 1), p("button", {
|
|
119
120
|
type: "button",
|
|
120
121
|
class: "tpl:inline-flex tpl:cursor-pointer tpl:items-center tpl:rounded-md tpl:border-none tpl:bg-[var(--tpl-primary)] tpl:px-4 tpl:py-2 tpl:text-[13px] tpl:font-medium tpl:transition-all tpl:hover:bg-[var(--tpl-primary-hover)] tpl:text-[var(--tpl-on-primary)]",
|
|
121
122
|
"data-testid": "link-dialog-submit",
|
|
122
|
-
onClick:
|
|
123
|
-
},
|
|
124
|
-
], 512)], 12, k)) :
|
|
123
|
+
onClick: a[6] ||= (e) => D("insert")
|
|
124
|
+
}, t(e.isEditingLink ? l(W).linkDialog.updateLink : l(W).linkDialog.insertLink), 1)])])
|
|
125
|
+
], 512)], 12, k)) : u("", !0)], 8, ["to"])) : u("", !0);
|
|
125
126
|
}
|
|
126
127
|
}), V = {
|
|
127
128
|
key: 0,
|
|
@@ -138,16 +139,16 @@ var D = C({
|
|
|
138
139
|
initError: {}
|
|
139
140
|
},
|
|
140
141
|
emits: ["retry"],
|
|
141
|
-
setup(e, { emit:
|
|
142
|
-
let
|
|
143
|
-
return (
|
|
142
|
+
setup(e, { emit: i }) {
|
|
143
|
+
let a = i, { t: o } = w();
|
|
144
|
+
return (i, s) => e.isLoading ? (r(), d("div", V, [p("div", H, t(l(o).errors.editorLoading), 1)])) : e.initError ? (r(), d("div", U, [f(t(l(o).errors.editorLoadFailed) + " ", 1), p("button", {
|
|
144
145
|
class: "tpl:ml-1 tpl:cursor-pointer tpl:border-none tpl:bg-transparent tpl:p-0 tpl:underline tpl:text-[var(--tpl-primary)]",
|
|
145
|
-
onClick:
|
|
146
|
-
},
|
|
146
|
+
onClick: s[0] ||= (e) => a("retry")
|
|
147
|
+
}, t(l(o).errors.retry), 1)])) : e.editorContent && e.editor ? (r(), m(n(e.editorContent), {
|
|
147
148
|
key: 2,
|
|
148
149
|
editor: e.editor,
|
|
149
150
|
class: "tpl-text-editable"
|
|
150
|
-
}, null, 8, ["editor"])) :
|
|
151
|
+
}, null, 8, ["editor"])) : u("", !0);
|
|
151
152
|
}
|
|
152
153
|
});
|
|
153
154
|
export { D as i, B as n, O as r, W as t };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as C, c as w, s as T } from "./runtime-dom.esm-bundler-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import {
|
|
9
|
-
import { t as F } from "./
|
|
10
|
-
import {
|
|
11
|
-
import { t as L } from "./TplModal-
|
|
12
|
-
import { t as R } from "./BlockPreviewCanvas-
|
|
1
|
+
import { A as e, B as t, Ft as n, L as r, M as i, Mt as a, P as o, Pt as s, U as c, W as l, _ as u, c as d, ct as f, d as p, et as m, f as h, g, k as _, l as v, r as y, u as b, w as x, y as S } from "./vue.runtime.esm-bundler-BJXc_Mri.js";
|
|
2
|
+
import { a as C, c as w, s as T } from "./runtime-dom.esm-bundler-DlHp8xgy.js";
|
|
3
|
+
import { l as E, y as D } from "./socialIcons-Dqr4DJOz.js";
|
|
4
|
+
import { H as ee, c as O } from "./composables-BOP3ERRP.js";
|
|
5
|
+
import { t as k } from "./chevron-down-Bh6cp6PI.js";
|
|
6
|
+
import { t as A } from "./chevron-up-XsDeJxQN.js";
|
|
7
|
+
import { t as j } from "./loader-circle-BbDItE_O.js";
|
|
8
|
+
import { Y as M, h as N, ot as P, v as te } from "./keys-BCqskl51.js";
|
|
9
|
+
import { t as F } from "./useI18n-CgtvtF4C.js";
|
|
10
|
+
import { b as I } from "./styleConstants-CgiNKdnc.js";
|
|
11
|
+
import { t as L } from "./TplModal-ZoXu40T9.js";
|
|
12
|
+
import { t as R } from "./BlockPreviewCanvas-DO-2TP_6.js";
|
|
13
13
|
// src/components/SavedBlockPreviewRow.vue?vue&type=script&setup=true&lang.ts
|
|
14
14
|
var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relative tpl:min-w-0 tpl:flex-1" }, H = {
|
|
15
15
|
key: 0,
|
|
@@ -17,7 +17,7 @@ var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relati
|
|
|
17
17
|
"aria-hidden": "true",
|
|
18
18
|
class: "tpl:pointer-events-none tpl:absolute tpl:inset-x-0 tpl:bottom-0 tpl:h-10",
|
|
19
19
|
style: { background: "linear-gradient(\n to bottom,\n transparent,\n var(--tpl-bg) 90%\n )" }
|
|
20
|
-
}, U = ["aria-label", "aria-expanded"], W = 240, G = /* @__PURE__ */
|
|
20
|
+
}, U = ["aria-label", "aria-expanded"], W = 240, G = /* @__PURE__ */ S({
|
|
21
21
|
__name: "SavedBlockPreviewRow",
|
|
22
22
|
props: {
|
|
23
23
|
block: {},
|
|
@@ -25,69 +25,69 @@ var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relati
|
|
|
25
25
|
total: {}
|
|
26
26
|
},
|
|
27
27
|
emits: ["move"],
|
|
28
|
-
setup(
|
|
29
|
-
let
|
|
28
|
+
setup(t, { emit: a }) {
|
|
29
|
+
let o = t, c = a, { t: l, format: y } = F(), S = x(N, []), C = x(te, null), O = d(() => E(C?.content.value.settings)), j = m(null), M = m(null), P = m(1), I = m(null), L = m(!1), G = null, K = d(() => I.value !== null && I.value > W), q = d(() => I.value === null ? null : L.value || !K.value ? I.value : W);
|
|
30
30
|
function J() {
|
|
31
|
-
let e =
|
|
31
|
+
let e = j.value, t = M.value;
|
|
32
32
|
if (!e || !t) return;
|
|
33
33
|
let n = e.clientWidth;
|
|
34
34
|
if (n <= 0) return;
|
|
35
|
-
let r = Math.min(1, n /
|
|
36
|
-
|
|
35
|
+
let r = Math.min(1, n / O.value);
|
|
36
|
+
P.value = r, I.value = t.offsetHeight * r;
|
|
37
37
|
}
|
|
38
|
-
|
|
39
|
-
J(), typeof ResizeObserver < "u" && (G = new ResizeObserver(() => J()),
|
|
40
|
-
}),
|
|
38
|
+
e(() => {
|
|
39
|
+
J(), typeof ResizeObserver < "u" && (G = new ResizeObserver(() => J()), j.value && G.observe(j.value), M.value && G.observe(M.value));
|
|
40
|
+
}), _(() => {
|
|
41
41
|
G?.disconnect(), G = null;
|
|
42
42
|
});
|
|
43
|
-
let Y =
|
|
43
|
+
let Y = d(() => D(o.block, l, S)), X = d(() => y(l.savedBlocks.reorderHandle, {
|
|
44
44
|
block: Y.value,
|
|
45
|
-
position:
|
|
46
|
-
total:
|
|
47
|
-
})), Z =
|
|
48
|
-
return (
|
|
45
|
+
position: o.position,
|
|
46
|
+
total: o.total
|
|
47
|
+
})), Z = d(() => y(L.value ? l.savedBlocks.collapsePreview : l.savedBlocks.expandPreview, { block: Y.value }));
|
|
48
|
+
return (e, a) => (i(), h("div", {
|
|
49
49
|
"data-testid": "saved-blocks-reorder-row",
|
|
50
|
-
"data-block-id":
|
|
50
|
+
"data-block-id": t.block.id,
|
|
51
51
|
class: "tpl:flex tpl:items-start tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:p-1.5 tpl:border-[var(--tpl-border)]",
|
|
52
52
|
style: { "background-color": "var(--tpl-bg)" }
|
|
53
|
-
}, [
|
|
53
|
+
}, [v("button", {
|
|
54
54
|
type: "button",
|
|
55
55
|
"data-testid": "saved-blocks-reorder-handle",
|
|
56
56
|
class: "tpl-saved-block-reorder-handle tpl:mt-0.5 tpl:shrink-0 tpl:cursor-grab tpl:rounded tpl:border-none tpl:bg-transparent tpl:p-0.5 tpl:text-[var(--tpl-text-dim)]",
|
|
57
57
|
"aria-label": X.value,
|
|
58
|
-
title:
|
|
59
|
-
onKeydown: [
|
|
60
|
-
}, [
|
|
58
|
+
title: f(l).savedBlocks.reorderHint,
|
|
59
|
+
onKeydown: [a[0] ||= T(w((e) => c("move", -1), ["prevent"]), ["up"]), a[1] ||= T(w((e) => c("move", 1), ["prevent"]), ["down"])]
|
|
60
|
+
}, [u(f(ee), {
|
|
61
61
|
size: 14,
|
|
62
62
|
"stroke-width": 1.5
|
|
63
|
-
})], 40, B),
|
|
64
|
-
|
|
63
|
+
})], 40, B), v("div", V, [
|
|
64
|
+
v("div", {
|
|
65
65
|
ref_key: "frameEl",
|
|
66
|
-
ref:
|
|
66
|
+
ref: j,
|
|
67
67
|
class: "tpl:overflow-hidden",
|
|
68
|
-
style:
|
|
69
|
-
}, [
|
|
68
|
+
style: s({ height: q.value === null ? void 0 : `${q.value}px` })
|
|
69
|
+
}, [v("div", {
|
|
70
70
|
ref_key: "contentEl",
|
|
71
|
-
ref:
|
|
72
|
-
style:
|
|
73
|
-
width: `${
|
|
74
|
-
transform: `scale(${
|
|
71
|
+
ref: M,
|
|
72
|
+
style: s({
|
|
73
|
+
width: `${O.value}px`,
|
|
74
|
+
transform: `scale(${P.value})`,
|
|
75
75
|
transformOrigin: "top left"
|
|
76
76
|
})
|
|
77
|
-
}, [
|
|
78
|
-
K.value && !L.value ? (
|
|
79
|
-
K.value ? (
|
|
77
|
+
}, [u(R, { blocks: [t.block] }, null, 8, ["blocks"])], 4)], 4),
|
|
78
|
+
K.value && !L.value ? (i(), h("div", H)) : p("", !0),
|
|
79
|
+
K.value ? (i(), h("button", {
|
|
80
80
|
key: 1,
|
|
81
81
|
type: "button",
|
|
82
82
|
"data-testid": "saved-blocks-preview-toggle",
|
|
83
83
|
class: "tpl:absolute tpl:bottom-1 tpl:right-1 tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-0.5 tpl:rounded tpl:border tpl:px-1.5 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)] tpl:text-[var(--tpl-text-muted)]",
|
|
84
84
|
"aria-label": Z.value,
|
|
85
85
|
"aria-expanded": L.value,
|
|
86
|
-
onClick:
|
|
87
|
-
}, [(
|
|
86
|
+
onClick: a[2] ||= (e) => L.value = !L.value
|
|
87
|
+
}, [(i(), b(r(L.value ? f(A) : f(k)), {
|
|
88
88
|
size: 11,
|
|
89
89
|
"stroke-width": 2
|
|
90
|
-
})),
|
|
90
|
+
})), g(" " + n(L.value ? f(l).savedBlocks.collapse : f(l).savedBlocks.expand), 1)], 8, U)) : p("", !0)
|
|
91
91
|
])], 8, z));
|
|
92
92
|
}
|
|
93
93
|
}), K = ["aria-busy"], q = {
|
|
@@ -114,18 +114,18 @@ var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relati
|
|
|
114
114
|
}, de = { class: "tpl:flex tpl:shrink-0 tpl:justify-end tpl:gap-2" }, fe = ["disabled"], pe = ["disabled"], me = {
|
|
115
115
|
key: 0,
|
|
116
116
|
class: "tpl:flex tpl:items-center tpl:gap-1.5"
|
|
117
|
-
}, he = { key: 1 }, Q = /* @__PURE__ */
|
|
117
|
+
}, he = { key: 1 }, Q = /* @__PURE__ */ S({
|
|
118
118
|
__name: "SaveBlockDialog",
|
|
119
119
|
props: {
|
|
120
120
|
visible: { type: Boolean },
|
|
121
121
|
pickedIds: {}
|
|
122
122
|
},
|
|
123
123
|
emits: ["close", "saved"],
|
|
124
|
-
setup(
|
|
125
|
-
let
|
|
124
|
+
setup(e, { emit: r }) {
|
|
125
|
+
let s = e, _ = r, { t: S, format: w } = F(), T = P(te, "SaveBlockDialog"), E = P(M, "SaveBlockDialog"), ee = x(N, []), k = m(""), A = m(""), R = m(!1), z = m(null), B = m(""), V = m([]), H = d(() => {
|
|
126
126
|
let e = new Map(T.content.value.blocks.map((e) => [e.id, e]));
|
|
127
127
|
return V.value.map((t) => e.get(t)).filter((e) => e !== void 0);
|
|
128
|
-
}), U =
|
|
128
|
+
}), U = d({
|
|
129
129
|
get: () => H.value,
|
|
130
130
|
set: (e) => {
|
|
131
131
|
V.value = e.map((e) => e.id);
|
|
@@ -136,27 +136,27 @@ var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relati
|
|
|
136
136
|
if (r === -1 || i < 0 || i >= n.length) return;
|
|
137
137
|
[n[r], n[i]] = [n[i], n[r]], V.value = n;
|
|
138
138
|
let a = H.value[i];
|
|
139
|
-
B.value = a ? w(
|
|
139
|
+
B.value = a ? w(S.savedBlocks.reorderAnnouncement, {
|
|
140
140
|
block: Q(a),
|
|
141
141
|
position: i + 1,
|
|
142
142
|
total: n.length
|
|
143
143
|
}) : "";
|
|
144
144
|
}
|
|
145
145
|
function Q(e) {
|
|
146
|
-
return
|
|
146
|
+
return D(e, S, ee);
|
|
147
147
|
}
|
|
148
|
-
let ge =
|
|
149
|
-
|
|
150
|
-
e && (
|
|
148
|
+
let ge = d(() => H.value.map(Q).join(", "));
|
|
149
|
+
t(() => s.visible, (e) => {
|
|
150
|
+
e && (k.value = "", A.value = "", z.value = null, B.value = "", V.value = [...s.pickedIds]);
|
|
151
151
|
}, { immediate: !0 });
|
|
152
|
-
let _e =
|
|
152
|
+
let _e = d(() => k.value.trim().length > 0 && H.value.length > 0 && !R.value);
|
|
153
153
|
async function ve() {
|
|
154
154
|
if (!_e.value) return;
|
|
155
155
|
let e = H.value;
|
|
156
156
|
if (e.length !== 0) {
|
|
157
157
|
R.value = !0, z.value = null;
|
|
158
158
|
try {
|
|
159
|
-
await
|
|
159
|
+
await E.create(k.value.trim(), e, A.value.trim() || void 0), _("saved"), _("close");
|
|
160
160
|
} catch (e) {
|
|
161
161
|
z.value = e.message;
|
|
162
162
|
} finally {
|
|
@@ -165,17 +165,17 @@ var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relati
|
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
function $() {
|
|
168
|
-
R.value ||
|
|
168
|
+
R.value || _("close");
|
|
169
169
|
}
|
|
170
170
|
function ye(e) {
|
|
171
171
|
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), ve()), e.key === "Escape" && $();
|
|
172
172
|
}
|
|
173
|
-
return (t,
|
|
174
|
-
visible:
|
|
173
|
+
return (t, r) => (i(), b(L, {
|
|
174
|
+
visible: e.visible,
|
|
175
175
|
onClose: $,
|
|
176
176
|
onKeydown: ye
|
|
177
177
|
}, {
|
|
178
|
-
default: c(() => [
|
|
178
|
+
default: c(() => [v("div", {
|
|
179
179
|
role: "dialog",
|
|
180
180
|
"aria-modal": "true",
|
|
181
181
|
"aria-busy": R.value,
|
|
@@ -186,37 +186,37 @@ var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relati
|
|
|
186
186
|
"box-shadow": "var(--tpl-shadow-xl)"
|
|
187
187
|
}
|
|
188
188
|
}, [
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
"onUpdate:modelValue":
|
|
189
|
+
v("h3", q, n(f(S).savedBlocks.saveAsBlock), 1),
|
|
190
|
+
v("div", J, [v("label", Y, n(f(S).savedBlocks.name), 1), l(v("input", {
|
|
191
|
+
"onUpdate:modelValue": r[0] ||= (e) => k.value = e,
|
|
192
192
|
type: "text",
|
|
193
193
|
"data-testid": "saved-blocks-name-input",
|
|
194
|
-
placeholder:
|
|
194
|
+
placeholder: f(S).savedBlocks.namePlaceholder,
|
|
195
195
|
class: "tpl:h-9 tpl:w-full tpl:rounded-md tpl:border tpl:px-3 tpl:py-1 tpl:text-sm tpl:shadow-[var(--tpl-shadow-sm)] tpl:outline-none tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)] tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]",
|
|
196
196
|
disabled: R.value
|
|
197
|
-
}, null, 8, X), [[C,
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
197
|
+
}, null, 8, X), [[C, k.value]])]),
|
|
198
|
+
v("div", Z, [
|
|
199
|
+
v("label", ne, n(f(S).savedBlocks.category), 1),
|
|
200
|
+
l(v("input", {
|
|
201
201
|
id: "tpl-save-block-category",
|
|
202
|
-
"onUpdate:modelValue":
|
|
202
|
+
"onUpdate:modelValue": r[1] ||= (e) => A.value = e,
|
|
203
203
|
type: "text",
|
|
204
204
|
"data-testid": "saved-blocks-category-input",
|
|
205
205
|
list: "tpl-saved-block-categories",
|
|
206
|
-
placeholder:
|
|
206
|
+
placeholder: f(S).savedBlocks.categoryPlaceholder,
|
|
207
207
|
class: "tpl:h-9 tpl:w-full tpl:rounded-md tpl:border tpl:px-3 tpl:py-1 tpl:text-sm tpl:shadow-[var(--tpl-shadow-sm)] tpl:outline-none tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)] tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]",
|
|
208
208
|
disabled: R.value
|
|
209
|
-
}, null, 8, re), [[C,
|
|
210
|
-
|
|
209
|
+
}, null, 8, re), [[C, A.value]]),
|
|
210
|
+
v("datalist", ie, [(i(!0), h(y, null, o(f(E).categories.value, (e) => (i(), h("option", {
|
|
211
211
|
key: e,
|
|
212
212
|
value: e
|
|
213
213
|
}, null, 8, ae))), 128))])
|
|
214
214
|
]),
|
|
215
|
-
|
|
216
|
-
H.value.length > 1 ? (
|
|
217
|
-
|
|
215
|
+
v("p", oe, [g(n(f(w)(f(S).savedBlocks.savingCount, { count: H.value.length })) + " ", 1), v("span", se, n(ge.value), 1)]),
|
|
216
|
+
H.value.length > 1 ? (i(), h("p", ce, n(f(S).savedBlocks.reorderHint), 1)) : p("", !0),
|
|
217
|
+
u(f(O), {
|
|
218
218
|
modelValue: U.value,
|
|
219
|
-
"onUpdate:modelValue":
|
|
219
|
+
"onUpdate:modelValue": r[2] ||= (e) => U.value = e,
|
|
220
220
|
"data-testid": "saved-blocks-reorder-list",
|
|
221
221
|
animation: 150,
|
|
222
222
|
"ghost-class": "tpl-ghost",
|
|
@@ -225,7 +225,7 @@ var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relati
|
|
|
225
225
|
"force-fallback": !0,
|
|
226
226
|
class: "tpl:mb-4 tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl:gap-1.5 tpl:overflow-y-auto"
|
|
227
227
|
}, {
|
|
228
|
-
default: c(() => [(
|
|
228
|
+
default: c(() => [(i(!0), h(y, null, o(U.value, (e, t) => (i(), b(G, {
|
|
229
229
|
key: e.id,
|
|
230
230
|
block: e,
|
|
231
231
|
position: t + 1,
|
|
@@ -239,23 +239,23 @@ var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relati
|
|
|
239
239
|
]))), 128))]),
|
|
240
240
|
_: 1
|
|
241
241
|
}, 8, ["modelValue"]),
|
|
242
|
-
|
|
243
|
-
z.value ? (
|
|
244
|
-
|
|
242
|
+
v("div", le, n(B.value), 1),
|
|
243
|
+
z.value ? (i(), h("p", ue, n(z.value), 1)) : p("", !0),
|
|
244
|
+
v("div", de, [v("button", {
|
|
245
245
|
type: "button",
|
|
246
|
-
class:
|
|
246
|
+
class: a(["tpl:cursor-pointer tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:shadow-[var(--tpl-shadow-sm)] tpl:transition-all tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)]", { "tpl:cursor-not-allowed tpl:opacity-50": R.value }]),
|
|
247
247
|
disabled: R.value,
|
|
248
248
|
onClick: $
|
|
249
|
-
},
|
|
249
|
+
}, n(f(S).savedBlocks.cancel), 11, fe), v("button", {
|
|
250
250
|
type: "button",
|
|
251
|
-
class:
|
|
251
|
+
class: a(f(I)),
|
|
252
252
|
disabled: !_e.value,
|
|
253
253
|
onClick: ve
|
|
254
|
-
}, [R.value ? (
|
|
254
|
+
}, [R.value ? (i(), h("span", me, [u(f(j), {
|
|
255
255
|
class: "tpl:animate-spin",
|
|
256
256
|
size: 12,
|
|
257
257
|
"stroke-width": 2
|
|
258
|
-
}),
|
|
258
|
+
}), g(" " + n(f(S).savedBlocks.saving), 1)])) : (i(), h("span", he, n(f(S).savedBlocks.save), 1))], 10, pe)])
|
|
259
259
|
], 8, K)]),
|
|
260
260
|
_: 1
|
|
261
261
|
}, 8, ["visible"]));
|