@templatical/editor 0.52.0 → 0.52.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AiAltTextPopover-Cm11CsKH.js → AiAltTextPopover-DawbUywc.js} +13 -13
- package/dist/{AiAltTextReview-DE8t8Rud.js → AiAltTextReview-9ySsXOTU.js} +22 -22
- package/dist/{AiChatPanel-7ftS7d40.js → AiChatPanel-CupPhmsN.js} +137 -137
- package/dist/{AiPanels-CxGp6klr.js → AiPanels-DqT4PgQ0.js} +4 -4
- package/dist/{AiRewriteMenu-DNI-5CUj.js → AiRewriteMenu-28agTycW.js} +62 -62
- package/dist/BlockIssueBadge-BxpDy3u-.js +33 -0
- package/dist/{BlockPreviewCanvas-Df9iz7sK.js → BlockPreviewCanvas-B-4bmJ3t.js} +23 -23
- package/dist/{CloudHeaderExtras-CsgyNNV1.js → CloudHeaderExtras-QI82yF54.js} +3 -3
- package/dist/{CloudPanels-BDV4XQ_l.js → CloudPanels-BKJaLkUN.js} +50 -50
- package/dist/{CollaborationNotices-JQ3vQoqO.js → CollaborationNotices-CTw4JThq.js} +11 -11
- package/dist/{CollaboratorBar-EeqqWcX6.js → CollaboratorBar-CXQqN3VP.js} +15 -15
- package/dist/{CommentsPanel-BuftXc0U.js → CommentsPanel-DwwFuh1h.js} +2 -2
- package/dist/CommentsSidebar-9ZfiC2DO.js +500 -0
- package/dist/{CountdownBlock-BT3ZTH1F.js → CountdownBlock-CU2yTWtF.js} +20 -20
- package/dist/{CountdownToolbar-CrL4WKy9.js → CountdownToolbar-BqoYzf_6.js} +53 -53
- package/dist/IssuesPanel-4ykrf1ax.js +359 -0
- package/dist/{LoadingTrack-DZA5AoP9.js → LoadingTrack-DM4g6j7b.js} +1 -1
- package/dist/{LogicTagInsertButton-CSD9cfJB.js → LogicTagInsertButton-CfscnwCn.js} +234 -234
- package/dist/{MediaEditModal-DQl5w44r.js → MediaEditModal-Dy08GEwE.js} +446 -446
- package/dist/{MediaPanels-BFWYuJot.js → MediaPanels-BgEp7iCp.js} +2 -2
- package/dist/{MergeTagInput-DE7kWwXx.js → MergeTagInput-B9dtUthD.js} +11 -11
- package/dist/{MergeTagModeToggle-DvD0ne7N.js → MergeTagModeToggle-DxujhYJ4.js} +30 -30
- package/dist/{MergeTagTextarea-DVPQkiYY.js → MergeTagTextarea-CPFEjJZd.js} +11 -11
- package/dist/{ParagraphEditor-D-nqs82g.js → ParagraphEditor-CWXfurGh.js} +201 -201
- package/dist/{RestoreVersionDialog-DqUPsLB9.js → RestoreVersionDialog-C4s_JYCx.js} +14 -14
- package/dist/{RichTextEditorContent-Xq9D0Zs3.js → RichTextEditorContent-o6HmE8GR.js} +40 -39
- package/dist/{SaveBlockDialog-DAPv70p4.js → SaveBlockDialog-CWLrly6l.js} +56 -56
- package/dist/SavedBlocksBrowserModal-CE8n4EBS.js +359 -0
- package/dist/{SavedBlocksPanels-ChbL9v9x.js → SavedBlocksPanels-BE1N9rNZ.js} +6 -6
- package/dist/{SavedBlocksPickBar-hRaiLNdu.js → SavedBlocksPickBar-Dwl94xhP.js} +12 -12
- package/dist/{TemplateSettings-D0XcH32O.js → TemplateSettings-CS0f1Ues.js} +74 -74
- package/dist/{TestEmailModal-Cb5t0yB2.js → TestEmailModal-DBD0X5nV.js} +52 -52
- package/dist/{TestEmailPanel-COJQa2A9.js → TestEmailPanel-DaFjP9QK.js} +2 -2
- package/dist/{TitleEditor-BYk_9SpQ.js → TitleEditor-DSqtle77.js} +75 -75
- package/dist/{ToggleSwitch-poGWbduy.js → ToggleSwitch-JykPyD_8.js} +4 -4
- package/dist/{Toolbar-Dku_pZni.js → Toolbar-BZPFfKrf.js} +913 -913
- package/dist/{TplModal-9IndEYk5.js → TplModal-DLMssVlt.js} +15 -15
- package/dist/{VersionHistoryMenu-BG5qayvg.js → VersionHistoryMenu-BkbYUs0Q.js} +35 -35
- package/dist/{VersionHistoryPanels-hPg7Q5-f.js → VersionHistoryPanels-DP7HaYWv.js} +4 -4
- package/dist/{VersionPreviewBanner-CSs7zum_.js → VersionPreviewBanner-DECaBwLq.js} +9 -9
- package/dist/{WrapperBlock-DwjK_IdJ.js → WrapperBlock-BsJv_Fiw.js} +16 -16
- package/dist/{blockTypeIcons-yt7SLzub.js → blockTypeIcons-BHjlPnPf.js} +23 -22
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AiAltTextPopover-DjMoJCgU.js → AiAltTextPopover-SEEjkd-I.js} +21 -21
- package/dist/cdn/chunks/{AiAltTextPopover-DjMoJCgU.js.map → AiAltTextPopover-SEEjkd-I.js.map} +1 -1
- package/dist/cdn/chunks/{AiAltTextReview-BafAtBoA.js → AiAltTextReview-BGLLSKLm.js} +41 -41
- package/dist/cdn/chunks/{AiAltTextReview-BafAtBoA.js.map → AiAltTextReview-BGLLSKLm.js.map} +1 -1
- package/dist/cdn/chunks/{AiChatPanel-DXeZgc7D.js → AiChatPanel-DKDAaBNi.js} +127 -127
- package/dist/cdn/chunks/{AiChatPanel-DXeZgc7D.js.map → AiChatPanel-DKDAaBNi.js.map} +1 -1
- package/dist/cdn/chunks/{AiPanels-B4uAVRoO.js → AiPanels-0wBarZSH.js} +3 -3
- package/dist/cdn/chunks/{AiPanels-B4uAVRoO.js.map → AiPanels-0wBarZSH.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-4F6vwhJ5.js → AiRewriteMenu-qf-cfEpy.js} +43 -43
- package/dist/cdn/chunks/{AiRewriteMenu-4F6vwhJ5.js.map → AiRewriteMenu-qf-cfEpy.js.map} +1 -1
- package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js +34 -0
- package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js.map +1 -0
- package/dist/cdn/chunks/{BlockPreviewCanvas-Ny1X_mee.js → BlockPreviewCanvas-DGBh6mqe.js} +20 -20
- package/dist/cdn/chunks/{BlockPreviewCanvas-Ny1X_mee.js.map → BlockPreviewCanvas-DGBh6mqe.js.map} +1 -1
- package/dist/cdn/chunks/{CloudHeaderExtras-DtMORiLS.js → CloudHeaderExtras-BMNK_F9p.js} +3 -3
- package/dist/cdn/chunks/{CloudHeaderExtras-DtMORiLS.js.map → CloudHeaderExtras-BMNK_F9p.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-BkmLc2Fl.js → CloudPanels-JMWIoVWh.js} +32 -32
- package/dist/cdn/chunks/{CloudPanels-BkmLc2Fl.js.map → CloudPanels-JMWIoVWh.js.map} +1 -1
- package/dist/cdn/chunks/{CollaborationNotices-Hf8r08Sw.js → CollaborationNotices-Bsf1rGW9.js} +12 -12
- package/dist/cdn/chunks/{CollaborationNotices-Hf8r08Sw.js.map → CollaborationNotices-Bsf1rGW9.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-II8eYtKu.js → CollaboratorBar-CXByAoUz.js} +14 -14
- package/dist/cdn/chunks/{CollaboratorBar-II8eYtKu.js.map → CollaboratorBar-CXByAoUz.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-CAiwilM2.js → CommentsPanel-DoJnKLXI.js} +3 -3
- package/dist/cdn/chunks/{CommentsPanel-CAiwilM2.js.map → CommentsPanel-DoJnKLXI.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-Dj8sDiLN.js → CommentsSidebar-CUtgvdBC.js} +100 -99
- package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js.map +1 -0
- package/dist/cdn/chunks/{CountdownBlock-Dyr5P0IP.js → CountdownBlock-BqRw147R.js} +18 -18
- package/dist/cdn/chunks/{CountdownBlock-Dyr5P0IP.js.map → CountdownBlock-BqRw147R.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-CguFJdqn.js → CountdownToolbar-xobieKoU.js} +26 -26
- package/dist/cdn/chunks/{CountdownToolbar-CguFJdqn.js.map → CountdownToolbar-xobieKoU.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-pr7_nuLI.js → IssuesPanel-C7LfxaAY.js} +75 -75
- package/dist/cdn/chunks/{IssuesPanel-pr7_nuLI.js.map → IssuesPanel-C7LfxaAY.js.map} +1 -1
- package/dist/cdn/chunks/{LoadingTrack-DfJ_C33G.js → LoadingTrack-CZuLTazv.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-DfJ_C33G.js.map → LoadingTrack-CZuLTazv.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-B_ldj3TO.js → LogicTagInsertButton-BIi05UQu.js} +250 -250
- package/dist/cdn/chunks/{LogicTagInsertButton-B_ldj3TO.js.map → LogicTagInsertButton-BIi05UQu.js.map} +1 -1
- package/dist/cdn/chunks/{MediaEditModal-CGfzcHwP.js → MediaEditModal-Cpcod6_U.js} +148 -148
- package/dist/cdn/chunks/{MediaEditModal-CGfzcHwP.js.map → MediaEditModal-Cpcod6_U.js.map} +1 -1
- package/dist/cdn/chunks/{MediaPanels-D0BdxdqP.js → MediaPanels-BIdcW_1f.js} +3 -3
- package/dist/cdn/chunks/{MediaPanels-D0BdxdqP.js.map → MediaPanels-BIdcW_1f.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-CFu9VXPS.js → MergeTagInput-BvWg8o5E.js} +32 -32
- package/dist/cdn/chunks/{MergeTagInput-CFu9VXPS.js.map → MergeTagInput-BvWg8o5E.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-BFpK5dxg.js → MergeTagModeToggle-BgKEVUtV.js} +27 -27
- package/dist/cdn/chunks/{MergeTagModeToggle-BFpK5dxg.js.map → MergeTagModeToggle-BgKEVUtV.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagTextarea-Zo0mYWbf.js → MergeTagTextarea-tBz8McZf.js} +32 -32
- package/dist/cdn/chunks/{MergeTagTextarea-Zo0mYWbf.js.map → MergeTagTextarea-tBz8McZf.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-DsPLVAgm.js → ParagraphEditor-B3Rj_cWF.js} +191 -191
- package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js.map +1 -0
- package/dist/cdn/chunks/{RestoreVersionDialog-B866zFP0.js → RestoreVersionDialog-CjOdD2xj.js} +19 -19
- package/dist/cdn/chunks/{RestoreVersionDialog-B866zFP0.js.map → RestoreVersionDialog-CjOdD2xj.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-DaY63kye.js → RichTextEditorContent-DNjR_sNN.js} +29 -29
- package/dist/cdn/chunks/{RichTextEditorContent-DaY63kye.js.map → RichTextEditorContent-DNjR_sNN.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-B7nftAAS.js → SaveBlockDialog-CUhpawq0.js} +75 -75
- package/dist/cdn/chunks/{SaveBlockDialog-B7nftAAS.js.map → SaveBlockDialog-CUhpawq0.js.map} +1 -1
- package/dist/cdn/chunks/SavedBlocksBrowserModal-BPYcRoGa.js +356 -0
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-B9XCjDfm.js.map → SavedBlocksBrowserModal-BPYcRoGa.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-C3nK90pz.js → SavedBlocksPanels-C6--Bc81.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPanels-C3nK90pz.js.map → SavedBlocksPanels-C6--Bc81.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-B166Mek9.js → SavedBlocksPickBar-DUavxpbU.js} +14 -14
- package/dist/cdn/chunks/{SavedBlocksPickBar-B166Mek9.js.map → SavedBlocksPickBar-DUavxpbU.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-jWpmuWDR.js → TemplateSettings-CKtI-dof.js} +69 -69
- package/dist/cdn/chunks/{TemplateSettings-jWpmuWDR.js.map → TemplateSettings-CKtI-dof.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-DcwKhFnI.js → TestEmailModal-CDQTgESD.js} +65 -65
- package/dist/cdn/chunks/{TestEmailModal-DcwKhFnI.js.map → TestEmailModal-CDQTgESD.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-BDBAvAfI.js → TestEmailPanel-CcUpEpAn.js} +3 -3
- package/dist/cdn/chunks/{TestEmailPanel-BDBAvAfI.js.map → TestEmailPanel-CcUpEpAn.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-R2lQw6WA.js → TitleEditor-Cob7RLyK.js} +70 -70
- package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js.map +1 -0
- package/dist/cdn/chunks/{ToggleSwitch-BDMugNES.js → ToggleSwitch-J7Vwhvha.js} +5 -5
- package/dist/cdn/chunks/{ToggleSwitch-BDMugNES.js.map → ToggleSwitch-J7Vwhvha.js.map} +1 -1
- package/dist/cdn/chunks/{Toolbar-CnvfW72e.js → Toolbar-CdpsvNOR.js} +893 -893
- package/dist/cdn/chunks/{Toolbar-CnvfW72e.js.map → Toolbar-CdpsvNOR.js.map} +1 -1
- package/dist/cdn/chunks/TplModal-CFPDgbwQ.js +51 -0
- package/dist/cdn/chunks/{TplModal-BDyeS69p.js.map → TplModal-CFPDgbwQ.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-CmpgUI4Q.js → VersionHistoryMenu-BYlLRvRJ.js} +32 -32
- package/dist/cdn/chunks/{VersionHistoryMenu-CmpgUI4Q.js.map → VersionHistoryMenu-BYlLRvRJ.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-DB_FZyyg.js → VersionHistoryPanels-C6SOVoiT.js} +3 -3
- package/dist/cdn/chunks/{VersionHistoryPanels-DB_FZyyg.js.map → VersionHistoryPanels-C6SOVoiT.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-CZ--HOoa.js → VersionPreviewBanner-Dvg0ZfAW.js} +10 -10
- package/dist/cdn/chunks/{VersionPreviewBanner-CZ--HOoa.js.map → VersionPreviewBanner-Dvg0ZfAW.js.map} +1 -1
- package/dist/cdn/chunks/{WrapperBlock-D3obNGab.js → WrapperBlock-C7Md56IT.js} +13 -13
- package/dist/cdn/chunks/{WrapperBlock-D3obNGab.js.map → WrapperBlock-C7Md56IT.js.map} +1 -1
- package/dist/cdn/chunks/blockTypeIcons-D7FW7Ypo.js +21 -0
- package/dist/cdn/chunks/blockTypeIcons-D7FW7Ypo.js.map +1 -0
- package/dist/cdn/chunks/{createCloudRuntime-D6niZ2Rc.js → createCloudRuntime-Cth2JCEh.js} +36 -36
- package/dist/cdn/chunks/{createCloudRuntime-D6niZ2Rc.js.map → createCloudRuntime-Cth2JCEh.js.map} +1 -1
- package/dist/cdn/chunks/{dist-C2epoAwW.js → dist-8ym3y-pH.js} +43 -43
- package/dist/cdn/chunks/{dist-C2epoAwW.js.map → dist-8ym3y-pH.js.map} +1 -1
- package/dist/{dist-BA-jTQgw.js → cdn/chunks/dist-BMzNabtD.js} +106 -107
- package/dist/cdn/chunks/{dist-CONcGNwy.js.map → dist-BMzNabtD.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-B8hTTYFO.js → draggable-Du8AUMFT.js} +639 -636
- package/dist/cdn/chunks/draggable-Du8AUMFT.js.map +1 -0
- package/dist/cdn/chunks/{editor-modal-cvYkpbHD.js → editor-modal-CyCe560f.js} +891 -891
- package/dist/cdn/chunks/{editor-modal-cvYkpbHD.js.map → editor-modal-CyCe560f.js.map} +1 -1
- package/dist/cdn/chunks/en-TIqv4ag3.js +1 -0
- package/dist/cdn/chunks/{extensions-ClDhn88e.js → extensions-CFF2KWy-.js} +55 -55
- package/dist/cdn/chunks/{extensions-ClDhn88e.js.map → extensions-CFF2KWy-.js.map} +1 -1
- package/dist/cdn/chunks/{icons-HCBP93Ch.js → icons-okSPsLOa.js} +99 -97
- package/dist/cdn/chunks/icons-okSPsLOa.js.map +1 -0
- package/dist/cdn/chunks/{keys-BF9gazbd.js → keys-CUj6UA38.js} +2 -2
- package/dist/cdn/chunks/{keys-BF9gazbd.js.map → keys-CUj6UA38.js.map} +1 -1
- 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/cdn/chunks/{normalizeMergeTagMarkup-DpHCSESZ.js → normalizeMergeTagMarkup-C_KlfSW4.js} +2 -2
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-DpHCSESZ.js.map → normalizeMergeTagMarkup-C_KlfSW4.js.map} +1 -1
- package/dist/cdn/chunks/{preRenderCustomBlocks-D-dsBq5t.js → preRenderCustomBlocks-BcXIz7oJ.js} +2 -2
- package/dist/cdn/chunks/{preRenderCustomBlocks-D-dsBq5t.js.map → preRenderCustomBlocks-BcXIz7oJ.js.map} +1 -1
- package/dist/cdn/chunks/{sanitizeHtml-B2h15u0_.js → sanitizeHtml-CN85EDrO.js} +2 -2
- package/dist/cdn/chunks/{sanitizeHtml-B2h15u0_.js.map → sanitizeHtml-CN85EDrO.js.map} +1 -1
- package/dist/cdn/chunks/{socialIcons-rJoqO1TJ.js → socialIcons-jsTDmkbb.js} +480 -480
- package/dist/cdn/chunks/{socialIcons-rJoqO1TJ.js.map → socialIcons-jsTDmkbb.js.map} +1 -1
- package/dist/cdn/chunks/{src-CUH_EI7k.js → src-C7bkofBL.js} +6 -6
- package/dist/cdn/chunks/{src-CUH_EI7k.js.map → src-C7bkofBL.js.map} +1 -1
- package/dist/cdn/chunks/{src-BKpAis_q.js → src-DEd87i_U.js} +2 -2
- package/dist/cdn/chunks/{src-BKpAis_q.js.map → src-DEd87i_U.js.map} +1 -1
- package/dist/cdn/chunks/{src-C9DTvn1H.js → src-DwWrYnUj.js} +3 -22
- package/dist/cdn/chunks/src-DwWrYnUj.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-ChSZybTi.js → tiptap-CbiTlECY.js} +45 -45
- package/dist/cdn/chunks/{tiptap-ChSZybTi.js.map → tiptap-CbiTlECY.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-RJXyVnIf.js → useCloudI18n-DY8_-ETE.js} +3 -3
- package/dist/cdn/chunks/{useCloudI18n-RJXyVnIf.js.map → useCloudI18n-DY8_-ETE.js.map} +1 -1
- package/dist/cdn/chunks/useEditorCore-BrY66C2y.js +2582 -0
- package/dist/cdn/chunks/useEditorCore-BrY66C2y.js.map +1 -0
- package/dist/cdn/chunks/useEditorRoot-vjZJwKrV.js +9 -0
- package/dist/cdn/chunks/{useEditorRoot-BT3c9CXj.js.map → useEditorRoot-vjZJwKrV.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-11iqzC6m.js → useI18n-D8pY4LTq.js} +3 -3
- package/dist/cdn/chunks/{useI18n-11iqzC6m.js.map → useI18n-D8pY4LTq.js.map} +1 -1
- package/dist/{useLogicTag-DFDYJeMN.js → cdn/chunks/useLogicTag-DBJDtpKA.js} +5 -3
- package/dist/cdn/chunks/{useLogicTag-vy5KGg5D.js.map → useLogicTag-DBJDtpKA.js.map} +1 -1
- package/dist/{useMergeTag-B46vACAG.js → cdn/chunks/useMergeTag-B-aG--s1.js} +7 -5
- package/dist/cdn/chunks/{useMergeTag-BFBBjnwh.js.map → useMergeTag-B-aG--s1.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-AnVIwiVv.js → usePopoverPosition-DSMtmu2W.js} +4 -4
- package/dist/cdn/chunks/{usePopoverPosition-AnVIwiVv.js.map → usePopoverPosition-DSMtmu2W.js.map} +1 -1
- package/dist/cdn/chunks/{useScrollToBlock-C0dawxGr.js → useScrollToBlock-vjQ0fe-L.js} +3 -3
- package/dist/cdn/chunks/{useScrollToBlock-C0dawxGr.js.map → useScrollToBlock-vjQ0fe-L.js.map} +1 -1
- package/dist/cdn/chunks/{withCurrentFont-C3CquBQN.js → withCurrentFont-hZTvYBHO.js} +2 -2
- package/dist/cdn/chunks/{withCurrentFont-C3CquBQN.js.map → withCurrentFont-hZTvYBHO.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +1422 -1422
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-N3x4z_rH.js → check-BZ8o0eet.js} +1 -1
- package/dist/{chevron-down-gXu9qNwO.js → chevron-down-DfAAfILv.js} +1 -1
- package/dist/{chevron-right-rL0ayGk5.js → chevron-right-Bk4mGdr7.js} +1 -1
- package/dist/{chevron-up-0ugh8HnW.js → chevron-up-MhUf_azW.js} +1 -1
- package/dist/{circle-alert-B9Ls75B5.js → circle-alert-CShJwVFv.js} +1 -1
- package/dist/{clock-BqHBaCLm.js → clock-CTfD6OCt.js} +1 -1
- package/dist/{createCloudRuntime-B5VIdnwz.js → createCloudRuntime-DCgO4A1r.js} +24 -24
- package/dist/{createLucideIcon-BV7Gwz_Z.js → createLucideIcon-CvhTA2KG.js} +6 -6
- package/dist/{cdn/chunks/dist-CONcGNwy.js → dist-ByCWA2Tv.js} +100 -99
- package/dist/{dist-CzrLYq2s.js → dist-CKi_npZM.js} +2 -21
- package/dist/{dist-CEdyyDn7.js → dist-CVy-7PHQ.js} +54 -54
- package/dist/{dist-DDN7yR-w.js → dist-D6cMdrfG.js} +129 -129
- package/dist/{editor-modal-Du9VI9q4.js → editor-modal-zaZHcmlO.js} +812 -812
- package/dist/en-Db76vJbY.js +1 -0
- package/dist/{extensions-FRYhx7qa.js → extensions-fo_c-vqf.js} +32 -32
- package/dist/{eye-BKj9Tfnc.js → eye-7W4t5e0Q.js} +1 -1
- package/dist/{image-DNdvdTla.js → image-BDiRFzSd.js} +1 -1
- package/dist/{info-Bx-kBkbH.js → info-Cxi3-Kh9.js} +1 -1
- package/dist/{keys-DBjrQkYH.js → keys-BgRERHzu.js} +1 -1
- package/dist/{link-D8-rYdIQ.js → link-ju_2Cmir.js} +1 -1
- package/dist/{liquid.browser-D1RxawkY.js → liquid.browser-DUXEekoN.js} +781 -745
- package/dist/{list-BneisA27.js → list-DYZJf0aZ.js} +1 -1
- package/dist/{loader-circle-DBEXphyx.js → loader-circle-BZRD0a4I.js} +1 -1
- package/dist/{message-circle-Bg4xInCM.js → message-circle-DuEw4Zfx.js} +1 -1
- package/dist/{normalizeMergeTagMarkup-IH8COHzd.js → normalizeMergeTagMarkup-CELnOlgK.js} +1 -1
- package/dist/{package-B40Vkfsp.js → package-CePMr2kK.js} +1 -1
- package/dist/{pencil-CYdAHTds.js → pencil-D3aFCL7c.js} +1 -1
- package/dist/{preRenderCustomBlocks-AbZArwkR.js → preRenderCustomBlocks--_xc0XK3.js} +1 -1
- package/dist/{refresh-cw-Bb1FWrU0.js → refresh-cw-xnro7_Sk.js} +1 -1
- package/dist/{runtime-dom.esm-bundler-CLGymEyk.js → runtime-dom.esm-bundler-BURR-bj5.js} +118 -118
- package/dist/{sanitizeHtml-CnOA1efV.js → sanitizeHtml-BzfzpYJY.js} +1 -1
- package/dist/{search-BZEo08gi.js → search-CDrstRBv.js} +1 -1
- package/dist/{send-DHtrnXQs.js → send-DROkPOaX.js} +1 -1
- package/dist/{smartphone-dlN3vpA3.js → smartphone-Bx6u_tjn.js} +1 -1
- package/dist/{socialIcons-B_d52_eS.js → socialIcons-D7MGsg0d.js} +366 -366
- package/dist/{sparkles-NOttoDnJ.js → sparkles-CdaTtvoz.js} +1 -1
- package/dist/{square-B1CJgdt2.js → square-BbCROH_f.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/templatical-editor.js +1096 -1096
- package/dist/{text-align-start-zpoXmb-Z.js → text-align-start-CGacJ9Vw.js} +1 -1
- package/dist/{trash-CGbk4Sgt.js → trash-DxCd7zIy.js} +1 -1
- package/dist/{triangle-alert-CKLMyGVp.js → triangle-alert-7_oaitpf.js} +1 -1
- package/dist/{upload-DQoackAn.js → upload-DuFEOi_0.js} +1 -1
- package/dist/{useCloudI18n-DcLtxOQZ.js → useCloudI18n-DEMmUKuO.js} +2 -2
- package/dist/{useEditorCore-DG9UvWUm.js → useEditorCore-BSo2sSID.js} +1518 -1470
- package/dist/useEditorRoot-BMcoCLBx.js +7 -0
- package/dist/{useI18n-CeTm777E.js → useI18n-BBrHTdu8.js} +2 -2
- package/dist/{cdn/chunks/useLogicTag-vy5KGg5D.js → useLogicTag-ZPC39rfH.js} +3 -5
- package/dist/{cdn/chunks/useMergeTag-BFBBjnwh.js → useMergeTag-BQ4qqWpQ.js} +5 -7
- package/dist/{usePopoverPosition-C42kD7zt.js → usePopoverPosition-DV1PxL66.js} +3 -3
- package/dist/{useScrollToBlock-C-NzvjeO.js → useScrollToBlock-BSyAV4pk.js} +3 -3
- package/dist/{vue.runtime.esm-bundler-CrlI8j5R.js → vue.runtime.esm-bundler-CnEeTfhs.js} +993 -990
- package/dist/{withCurrentFont-v_a4Oso8.js → withCurrentFont-B22FXAF5.js} +1 -1
- package/dist/{x-zcrnmcmU.js → x-BpfG7v9g.js} +1 -1
- package/package.json +10 -10
- package/dist/BlockIssueBadge-6Ri2FfX-.js +0 -33
- package/dist/CommentsSidebar-Co3x4uH0.js +0 -499
- package/dist/IssuesPanel-BHFQ3wrP.js +0 -359
- package/dist/SavedBlocksBrowserModal-SRtN5h9q.js +0 -359
- package/dist/cdn/chunks/BlockIssueBadge-DIJDqqcY.js +0 -34
- package/dist/cdn/chunks/BlockIssueBadge-DIJDqqcY.js.map +0 -1
- package/dist/cdn/chunks/CommentsSidebar-Dj8sDiLN.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-DsPLVAgm.js.map +0 -1
- package/dist/cdn/chunks/SavedBlocksBrowserModal-B9XCjDfm.js +0 -356
- package/dist/cdn/chunks/TitleEditor-R2lQw6WA.js.map +0 -1
- package/dist/cdn/chunks/TplModal-BDyeS69p.js +0 -51
- package/dist/cdn/chunks/blockTypeIcons-DFf7AyqI.js +0 -21
- package/dist/cdn/chunks/blockTypeIcons-DFf7AyqI.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/icons-HCBP93Ch.js.map +0 -1
- package/dist/cdn/chunks/liquid.browser-DkLBNrft.js.map +0 -1
- package/dist/cdn/chunks/src-C9DTvn1H.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/en-CyEE7FPY.js +0 -1
- package/dist/useEditorRoot-BKr6nNkC.js +0 -7
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as f } from "./useI18n-
|
|
3
|
-
import { t as p } from "./loader-circle-
|
|
4
|
-
import { t as m } from "./triangle-alert-
|
|
1
|
+
import { H as e, Nt as t, _ as n, d as r, f as i, g as a, j as o, jt as s, l as c, st as l, u, y as d } from "./vue.runtime.esm-bundler-CnEeTfhs.js";
|
|
2
|
+
import { t as f } from "./useI18n-BBrHTdu8.js";
|
|
3
|
+
import { t as p } from "./loader-circle-BZRD0a4I.js";
|
|
4
|
+
import { t as m } from "./triangle-alert-7_oaitpf.js";
|
|
5
5
|
import { d as h, v as g, x as _ } from "./styleConstants-B8xVRiwX.js";
|
|
6
|
-
import { t as v } from "./TplModal-
|
|
6
|
+
import { t as v } from "./TplModal-DLMssVlt.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",
|
|
@@ -25,11 +25,11 @@ var y = ["aria-busy"], b = { class: "tpl:flex tpl:items-center tpl:gap-2" }, x =
|
|
|
25
25
|
],
|
|
26
26
|
setup(d, { emit: D }) {
|
|
27
27
|
let O = D, { t: k } = f();
|
|
28
|
-
return (f, D) => (
|
|
28
|
+
return (f, D) => (o(), u(v, {
|
|
29
29
|
visible: d.visible,
|
|
30
30
|
onClose: D[3] ||= (e) => O("cancel")
|
|
31
31
|
}, {
|
|
32
|
-
default:
|
|
32
|
+
default: e(() => [c("div", {
|
|
33
33
|
role: "alertdialog",
|
|
34
34
|
"aria-modal": "true",
|
|
35
35
|
"aria-busy": d.isBusy,
|
|
@@ -42,7 +42,7 @@ 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
|
-
c("div", b, [
|
|
45
|
+
c("div", b, [n(l(m), {
|
|
46
46
|
size: 18,
|
|
47
47
|
"stroke-width": 2,
|
|
48
48
|
class: "tpl:text-[var(--tpl-warning)]"
|
|
@@ -52,30 +52,30 @@ var y = ["aria-busy"], b = { class: "tpl:flex tpl:items-center tpl:gap-2" }, x =
|
|
|
52
52
|
c("button", {
|
|
53
53
|
type: "button",
|
|
54
54
|
"data-testid": "restore-version-cancel",
|
|
55
|
-
class:
|
|
55
|
+
class: s(l(_)),
|
|
56
56
|
disabled: d.isBusy,
|
|
57
57
|
onClick: D[0] ||= (e) => O("cancel")
|
|
58
58
|
}, t(l(k).versionPreview.restoreConfirm.cancel), 11, w),
|
|
59
59
|
c("button", {
|
|
60
60
|
type: "button",
|
|
61
61
|
"data-testid": "restore-version-discard",
|
|
62
|
-
class:
|
|
62
|
+
class: s(l(h)),
|
|
63
63
|
disabled: d.isBusy,
|
|
64
64
|
onClick: D[1] ||= (e) => O("discard-and-restore")
|
|
65
65
|
}, t(l(k).versionPreview.restoreConfirm.restoreAnyway), 11, T),
|
|
66
|
-
d.canSave ? (
|
|
66
|
+
d.canSave ? (o(), i("button", {
|
|
67
67
|
key: 0,
|
|
68
68
|
type: "button",
|
|
69
69
|
"data-testid": "restore-version-save-first",
|
|
70
|
-
class:
|
|
70
|
+
class: s(l(g)),
|
|
71
71
|
disabled: d.isBusy,
|
|
72
72
|
onClick: D[2] ||= (e) => O("save-and-restore")
|
|
73
|
-
}, [d.isBusy ? (
|
|
73
|
+
}, [d.isBusy ? (o(), u(l(p), {
|
|
74
74
|
key: 0,
|
|
75
75
|
class: "tpl:animate-spin",
|
|
76
76
|
size: 12,
|
|
77
77
|
"stroke-width": 2
|
|
78
|
-
})) :
|
|
78
|
+
})) : r("", !0), a(" " + t(l(k).versionPreview.restoreConfirm.saveAndRestore), 1)], 10, E)) : r("", !0)
|
|
79
79
|
])
|
|
80
80
|
], 8, y)]),
|
|
81
81
|
_: 1
|
|
@@ -1,20 +1,13 @@
|
|
|
1
|
-
import { C as e, I as t, L as n, Mt as r,
|
|
2
|
-
import { c as _ } from "./runtime-dom.esm-bundler-
|
|
3
|
-
import { J as v, Z as y, g as b } from "./keys-
|
|
4
|
-
import { t as x } from "./useI18n-
|
|
5
|
-
import { n as S } from "./usePopoverPosition-
|
|
6
|
-
import { t as C } from "./createLucideIcon-
|
|
7
|
-
import { c as w } from "./LogicTagInsertButton-
|
|
8
|
-
import { t as T } from "./x-
|
|
9
|
-
import { t as E } from "./MergeTagInput-
|
|
1
|
+
import { C as e, I as t, L as n, Mt as r, Nt as i, T as a, _ as o, a as s, c, d as l, f as u, g as d, j as f, l as p, st as m, u as h, y as g } from "./vue.runtime.esm-bundler-CnEeTfhs.js";
|
|
2
|
+
import { c as _ } from "./runtime-dom.esm-bundler-BURR-bj5.js";
|
|
3
|
+
import { J as v, Z as y, g as b } from "./keys-BgRERHzu.js";
|
|
4
|
+
import { t as x } from "./useI18n-BBrHTdu8.js";
|
|
5
|
+
import { n as S } from "./usePopoverPosition-DV1PxL66.js";
|
|
6
|
+
import { t as C } from "./createLucideIcon-CvhTA2KG.js";
|
|
7
|
+
import { c as w } from "./LogicTagInsertButton-CfscnwCn.js";
|
|
8
|
+
import { t as T } from "./x-BpfG7v9g.js";
|
|
9
|
+
import { t as E } from "./MergeTagInput-B9dtUthD.js";
|
|
10
10
|
var D = C({
|
|
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({
|
|
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 = C({
|
|
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__*/ a({
|
|
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__*/ a([
|
|
60
61
|
"close",
|
|
61
62
|
"insert",
|
|
62
63
|
"remove",
|
|
@@ -66,16 +67,16 @@ var D = C({
|
|
|
66
67
|
"update:linkColor",
|
|
67
68
|
"update:dialogRef"
|
|
68
69
|
]),
|
|
69
|
-
setup(t, { emit:
|
|
70
|
-
let
|
|
71
|
-
return (e, n) => m(V) ? (
|
|
70
|
+
setup(t, { emit: a }) {
|
|
71
|
+
let d = n(t, "linkUrl"), g = n(t, "linkColor"), C = n(t, "dialogRef"), D = a, O = e(v, null), B = e(y, null), V = S(), H = e(b, null), U = c(() => H?.content.value.settings.linkColor || "#2c85de"), { t: W } = x();
|
|
72
|
+
return (e, n) => m(V) ? (f(), h(s, {
|
|
72
73
|
key: 0,
|
|
73
74
|
to: m(V)
|
|
74
|
-
}, [t.visible ? (
|
|
75
|
+
}, [t.visible ? (f(), u("div", {
|
|
75
76
|
key: 0,
|
|
76
77
|
"data-tpl-theme": m(B),
|
|
77
78
|
class: "tpl tpl-link-dialog tpl:fixed tpl:inset-0 tpl:flex tpl:items-center tpl:justify-center",
|
|
78
|
-
style:
|
|
79
|
+
style: r(m(O)),
|
|
79
80
|
onClick: n[7] ||= _((e) => D("close"), ["self"])
|
|
80
81
|
}, [p("div", {
|
|
81
82
|
ref: (e) => C.value = e,
|
|
@@ -85,43 +86,43 @@ var D = C({
|
|
|
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, i(t.isEditingLink ? m(W).linkDialog.editLink : m(W).linkDialog.insertLink), 1), p("button", {
|
|
89
90
|
type: "button",
|
|
90
91
|
"aria-label": m(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
93
|
onClick: n[0] ||= (e) => D("close")
|
|
93
|
-
}, [
|
|
94
|
+
}, [o(m(T), {
|
|
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, i(m(W).linkDialog.urlLabel), 1), o(E, {
|
|
99
|
+
"model-value": d.value,
|
|
99
100
|
type: "url",
|
|
100
101
|
"data-testid": "link-dialog-url",
|
|
101
102
|
placeholder: m(W).linkDialog.urlPlaceholder,
|
|
102
|
-
"onUpdate:modelValue": n[1] ||= (e) =>
|
|
103
|
+
"onUpdate:modelValue": n[1] ||= (e) => d.value = e,
|
|
103
104
|
onKeydown: n[2] ||= (e) => D("keydown", e)
|
|
104
|
-
}, null, 8, ["model-value", "placeholder"])]), p("div", I, [p("label", L,
|
|
105
|
+
}, null, 8, ["model-value", "placeholder"])]), p("div", I, [p("label", L, i(m(W).linkDialog.colorLabel), 1), o(w, {
|
|
105
106
|
"model-value": g.value,
|
|
106
107
|
"seed-color": U.value,
|
|
107
108
|
"onUpdate:modelValue": n[3] ||= (e) => g.value = e
|
|
108
109
|
}, null, 8, ["model-value", "seed-color"])])]),
|
|
109
|
-
p("div", R, [t.isEditingLink ? (
|
|
110
|
+
p("div", R, [t.isEditingLink ? (f(), u("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
114
|
onClick: n[4] ||= (e) => D("remove")
|
|
114
|
-
},
|
|
115
|
+
}, i(m(W).linkDialog.removeLink), 1)) : l("", !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
118
|
onClick: n[5] ||= (e) => D("close")
|
|
118
|
-
},
|
|
119
|
+
}, i(m(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
123
|
onClick: n[6] ||= (e) => D("insert")
|
|
123
|
-
},
|
|
124
|
-
], 512)], 12, k)) :
|
|
124
|
+
}, i(t.isEditingLink ? m(W).linkDialog.updateLink : m(W).linkDialog.insertLink), 1)])])
|
|
125
|
+
], 512)], 12, k)) : l("", !0)], 8, ["to"])) : l("", !0);
|
|
125
126
|
}
|
|
126
127
|
}), V = {
|
|
127
128
|
key: 0,
|
|
@@ -139,15 +140,15 @@ var D = C({
|
|
|
139
140
|
},
|
|
140
141
|
emits: ["retry"],
|
|
141
142
|
setup(e, { emit: n }) {
|
|
142
|
-
let
|
|
143
|
-
return (n, o) => e.isLoading ? (
|
|
143
|
+
let r = n, { t: a } = x();
|
|
144
|
+
return (n, o) => e.isLoading ? (f(), u("div", V, [p("div", H, i(m(a).errors.editorLoading), 1)])) : e.initError ? (f(), u("div", U, [d(i(m(a).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: o[0] ||= (e) =>
|
|
146
|
-
},
|
|
146
|
+
onClick: o[0] ||= (e) => r("retry")
|
|
147
|
+
}, i(m(a).errors.retry), 1)])) : e.editorContent && e.editor ? (f(), h(t(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"])) : l("", !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 { S as E, c as D } from "./socialIcons-
|
|
4
|
-
import { T as O, s as k } from "./useEditorCore-
|
|
5
|
-
import { $ as A, U as j, g as ee, p as te } from "./keys-
|
|
6
|
-
import { t as M } from "./useI18n-
|
|
7
|
-
import { t as N } from "./chevron-down-
|
|
8
|
-
import { t as P } from "./chevron-up-
|
|
9
|
-
import { t as F } from "./loader-circle-
|
|
1
|
+
import { $ as e, C as t, H as n, I as r, Mt as i, N as a, Nt as o, O as s, U as c, _ as l, c as u, d, f, g as p, j as m, jt as h, k as g, l as _, r as v, st as y, u as b, y as x, z as S } from "./vue.runtime.esm-bundler-CnEeTfhs.js";
|
|
2
|
+
import { a as C, c as w, s as T } from "./runtime-dom.esm-bundler-BURR-bj5.js";
|
|
3
|
+
import { S as E, c as D } from "./socialIcons-D7MGsg0d.js";
|
|
4
|
+
import { T as O, s as k } from "./useEditorCore-BSo2sSID.js";
|
|
5
|
+
import { $ as A, U as j, g as ee, p as te } from "./keys-BgRERHzu.js";
|
|
6
|
+
import { t as M } from "./useI18n-BBrHTdu8.js";
|
|
7
|
+
import { t as N } from "./chevron-down-DfAAfILv.js";
|
|
8
|
+
import { t as P } from "./chevron-up-MhUf_azW.js";
|
|
9
|
+
import { t as F } from "./loader-circle-BZRD0a4I.js";
|
|
10
10
|
import { v as I } from "./styleConstants-B8xVRiwX.js";
|
|
11
|
-
import { t as L } from "./TplModal-
|
|
12
|
-
import { t as R } from "./BlockPreviewCanvas-
|
|
11
|
+
import { t as L } from "./TplModal-DLMssVlt.js";
|
|
12
|
+
import { t as R } from "./BlockPreviewCanvas-B-4bmJ3t.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,
|
|
@@ -25,8 +25,8 @@ 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(n, { emit: a }) {
|
|
29
|
+
let c = n, h = a, { t: v, format: x } = M(), S = t(te, []), C = t(ee, null), k = u(() => D(C?.content.value.settings)), A = e(null), j = e(null), F = e(1), I = e(null), L = e(!1), G = null, K = u(() => I.value !== null && I.value > W), q = u(() => I.value === null ? null : L.value || !K.value ? I.value : W);
|
|
30
30
|
function J() {
|
|
31
31
|
let e = A.value, t = j.value;
|
|
32
32
|
if (!e || !t) return;
|
|
@@ -37,17 +37,17 @@ var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relati
|
|
|
37
37
|
}
|
|
38
38
|
g(() => {
|
|
39
39
|
J(), typeof ResizeObserver < "u" && (G = new ResizeObserver(() => J()), A.value && G.observe(A.value), j.value && G.observe(j.value));
|
|
40
|
-
}),
|
|
40
|
+
}), s(() => {
|
|
41
41
|
G?.disconnect(), G = null;
|
|
42
42
|
});
|
|
43
|
-
let Y = u(() => E(
|
|
43
|
+
let Y = u(() => E(c.block, v, S)), X = u(() => x(v.savedBlocks.reorderHandle, {
|
|
44
44
|
block: Y.value,
|
|
45
|
-
position:
|
|
46
|
-
total:
|
|
47
|
-
})), Z = u(() => x(L.value ?
|
|
48
|
-
return (
|
|
45
|
+
position: c.position,
|
|
46
|
+
total: c.total
|
|
47
|
+
})), Z = u(() => x(L.value ? v.savedBlocks.collapsePreview : v.savedBlocks.expandPreview, { block: Y.value }));
|
|
48
|
+
return (e, t) => (m(), f("div", {
|
|
49
49
|
"data-testid": "saved-blocks-reorder-row",
|
|
50
|
-
"data-block-id":
|
|
50
|
+
"data-block-id": n.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
|
}, [_("button", {
|
|
@@ -55,9 +55,9 @@ var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relati
|
|
|
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: v
|
|
59
|
-
onKeydown: [
|
|
60
|
-
}, [l(
|
|
58
|
+
title: y(v).savedBlocks.reorderHint,
|
|
59
|
+
onKeydown: [t[0] ||= T(w((e) => h("move", -1), ["prevent"]), ["up"]), t[1] ||= T(w((e) => h("move", 1), ["prevent"]), ["down"])]
|
|
60
|
+
}, [l(y(O), {
|
|
61
61
|
size: 14,
|
|
62
62
|
"stroke-width": 1.5
|
|
63
63
|
})], 40, B), _("div", V, [
|
|
@@ -65,16 +65,16 @@ var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relati
|
|
|
65
65
|
ref_key: "frameEl",
|
|
66
66
|
ref: A,
|
|
67
67
|
class: "tpl:overflow-hidden",
|
|
68
|
-
style:
|
|
68
|
+
style: i({ height: q.value === null ? void 0 : `${q.value}px` })
|
|
69
69
|
}, [_("div", {
|
|
70
70
|
ref_key: "contentEl",
|
|
71
71
|
ref: j,
|
|
72
|
-
style:
|
|
72
|
+
style: i({
|
|
73
73
|
width: `${k.value}px`,
|
|
74
74
|
transform: `scale(${F.value})`,
|
|
75
75
|
transformOrigin: "top left"
|
|
76
76
|
})
|
|
77
|
-
}, [l(R, { blocks: [
|
|
77
|
+
}, [l(R, { blocks: [n.block] }, null, 8, ["blocks"])], 4)], 4),
|
|
78
78
|
K.value && !L.value ? (m(), f("div", H)) : d("", !0),
|
|
79
79
|
K.value ? (m(), f("button", {
|
|
80
80
|
key: 1,
|
|
@@ -83,11 +83,11 @@ var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relati
|
|
|
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
|
-
}, [(m(), b(r(L.value ?
|
|
86
|
+
onClick: t[2] ||= (e) => L.value = !L.value
|
|
87
|
+
}, [(m(), b(r(L.value ? y(P) : y(N)), {
|
|
88
88
|
size: 11,
|
|
89
89
|
"stroke-width": 2
|
|
90
|
-
})), p(" " +
|
|
90
|
+
})), p(" " + o(L.value ? y(v).savedBlocks.collapse : y(v).savedBlocks.expand), 1)], 8, U)) : d("", !0)
|
|
91
91
|
])], 8, z));
|
|
92
92
|
}
|
|
93
93
|
}), K = ["aria-busy"], q = {
|
|
@@ -121,8 +121,8 @@ var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relati
|
|
|
121
121
|
pickedIds: {}
|
|
122
122
|
},
|
|
123
123
|
emits: ["close", "saved"],
|
|
124
|
-
setup(r, { emit:
|
|
125
|
-
let
|
|
124
|
+
setup(r, { emit: i }) {
|
|
125
|
+
let s = r, g = i, { t: x, format: w } = M(), T = A(ee, "SaveBlockDialog"), D = A(j, "SaveBlockDialog"), O = t(te, []), N = e(""), P = e(""), R = e(!1), z = e(null), B = e(""), V = e([]), H = u(() => {
|
|
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
128
|
}), U = u({
|
|
@@ -146,8 +146,8 @@ var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relati
|
|
|
146
146
|
return E(e, x, O);
|
|
147
147
|
}
|
|
148
148
|
let ge = u(() => H.value.map(Q).join(", "));
|
|
149
|
-
S(() =>
|
|
150
|
-
e && (N.value = "", P.value = "", z.value = null, B.value = "", V.value = [...
|
|
149
|
+
S(() => s.visible, (e) => {
|
|
150
|
+
e && (N.value = "", P.value = "", z.value = null, B.value = "", V.value = [...s.pickedIds]);
|
|
151
151
|
}, { immediate: !0 });
|
|
152
152
|
let _e = u(() => N.value.trim().length > 0 && H.value.length > 0 && !R.value);
|
|
153
153
|
async function ve() {
|
|
@@ -170,12 +170,12 @@ var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relati
|
|
|
170
170
|
function ye(e) {
|
|
171
171
|
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), ve()), e.key === "Escape" && $();
|
|
172
172
|
}
|
|
173
|
-
return (
|
|
173
|
+
return (e, t) => (m(), b(L, {
|
|
174
174
|
visible: r.visible,
|
|
175
175
|
onClose: $,
|
|
176
176
|
onKeydown: ye
|
|
177
177
|
}, {
|
|
178
|
-
default:
|
|
178
|
+
default: n(() => [_("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
|
-
_("h3", q,
|
|
190
|
-
_("div", J, [_("label", Y,
|
|
191
|
-
"onUpdate:modelValue":
|
|
189
|
+
_("h3", q, o(y(x).savedBlocks.saveAsBlock), 1),
|
|
190
|
+
_("div", J, [_("label", Y, o(y(x).savedBlocks.name), 1), c(_("input", {
|
|
191
|
+
"onUpdate:modelValue": t[0] ||= (e) => N.value = e,
|
|
192
192
|
type: "text",
|
|
193
193
|
"data-testid": "saved-blocks-name-input",
|
|
194
|
-
placeholder:
|
|
194
|
+
placeholder: y(x).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
197
|
}, null, 8, X), [[C, N.value]])]),
|
|
198
198
|
_("div", Z, [
|
|
199
|
-
_("label", ne,
|
|
200
|
-
|
|
199
|
+
_("label", ne, o(y(x).savedBlocks.category), 1),
|
|
200
|
+
c(_("input", {
|
|
201
201
|
id: "tpl-save-block-category",
|
|
202
|
-
"onUpdate:modelValue":
|
|
202
|
+
"onUpdate:modelValue": t[1] ||= (e) => P.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: y(x).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
209
|
}, null, 8, re), [[C, P.value]]),
|
|
210
|
-
_("datalist", ie, [(m(!0), f(
|
|
210
|
+
_("datalist", ie, [(m(!0), f(v, null, a(y(D).categories.value, (e) => (m(), f("option", {
|
|
211
211
|
key: e,
|
|
212
212
|
value: e
|
|
213
213
|
}, null, 8, ae))), 128))])
|
|
214
214
|
]),
|
|
215
|
-
_("p", oe, [p(
|
|
216
|
-
H.value.length > 1 ? (m(), f("p", ce,
|
|
217
|
-
l(
|
|
215
|
+
_("p", oe, [p(o(y(w)(y(x).savedBlocks.savingCount, { count: H.value.length })) + " ", 1), _("span", se, o(ge.value), 1)]),
|
|
216
|
+
H.value.length > 1 ? (m(), f("p", ce, o(y(x).savedBlocks.reorderHint), 1)) : d("", !0),
|
|
217
|
+
l(y(k), {
|
|
218
218
|
modelValue: U.value,
|
|
219
|
-
"onUpdate:modelValue":
|
|
219
|
+
"onUpdate:modelValue": t[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:
|
|
228
|
+
default: n(() => [(m(!0), f(v, null, a(U.value, (e, t) => (m(), 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
|
-
_("div", le,
|
|
243
|
-
z.value ? (m(), f("p", ue,
|
|
242
|
+
_("div", le, o(B.value), 1),
|
|
243
|
+
z.value ? (m(), f("p", ue, o(z.value), 1)) : d("", !0),
|
|
244
244
|
_("div", de, [_("button", {
|
|
245
245
|
type: "button",
|
|
246
|
-
class:
|
|
246
|
+
class: h(["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
|
+
}, o(y(x).savedBlocks.cancel), 11, fe), _("button", {
|
|
250
250
|
type: "button",
|
|
251
|
-
class:
|
|
251
|
+
class: h(y(I)),
|
|
252
252
|
disabled: !_e.value,
|
|
253
253
|
onClick: ve
|
|
254
|
-
}, [R.value ? (m(), f("span", me, [l(
|
|
254
|
+
}, [R.value ? (m(), f("span", me, [l(y(F), {
|
|
255
255
|
class: "tpl:animate-spin",
|
|
256
256
|
size: 12,
|
|
257
257
|
"stroke-width": 2
|
|
258
|
-
}), p(" " +
|
|
258
|
+
}), p(" " + o(y(x).savedBlocks.saving), 1)])) : (m(), f("span", he, o(y(x).savedBlocks.save), 1))], 10, pe)])
|
|
259
259
|
], 8, K)]),
|
|
260
260
|
_: 1
|
|
261
261
|
}, 8, ["visible"]));
|