@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,359 +0,0 @@
|
|
|
1
|
-
import { At as e, C as t, D as n, H as r, I as i, Mt as a, N as o, Q as s, V as ee, _ as c, c as l, d as u, f as d, j as f, jt as te, l as p, ot as m, r as h, u as g, v as ne, y as _, z as re } from "./vue.runtime.esm-bundler-CrlI8j5R.js";
|
|
2
|
-
import { a as v, c as y, i as b, s as x } from "./runtime-dom.esm-bundler-CLGymEyk.js";
|
|
3
|
-
import "./useEditorCore-DG9UvWUm.js";
|
|
4
|
-
import { $ as S, U as ie, X as ae, g as oe } from "./keys-DBjrQkYH.js";
|
|
5
|
-
import { t as se } from "./useI18n-CeTm777E.js";
|
|
6
|
-
import { t as C } from "./blockTypeIcons-yt7SLzub.js";
|
|
7
|
-
import { t as w } from "./package-B40Vkfsp.js";
|
|
8
|
-
import { t as ce } from "./pencil-CYdAHTds.js";
|
|
9
|
-
import { t as le } from "./search-BZEo08gi.js";
|
|
10
|
-
import { t as ue } from "./trash-CGbk4Sgt.js";
|
|
11
|
-
import { t as de } from "./x-zcrnmcmU.js";
|
|
12
|
-
import { t as fe } from "./formatAbsoluteDateTime-Ck2_zXra.js";
|
|
13
|
-
import { v as pe } from "./styleConstants-B8xVRiwX.js";
|
|
14
|
-
import { t as me } from "./formatRelativeTime-BTD8Ktt-.js";
|
|
15
|
-
import { t as he } from "./TplModal-9IndEYk5.js";
|
|
16
|
-
// src/components/SavedBlocksBrowserModal.vue?vue&type=script&setup=true&lang.ts
|
|
17
|
-
var ge = {
|
|
18
|
-
role: "dialog",
|
|
19
|
-
"aria-modal": "true",
|
|
20
|
-
"data-testid": "saved-blocks-browser",
|
|
21
|
-
"aria-labelledby": "tpl-saved-blocks-browser-title",
|
|
22
|
-
class: "tpl-scale-in tpl:flex tpl:max-h-[90%] tpl:w-[1000px] tpl:max-w-full tpl:flex-col tpl:rounded-[var(--tpl-radius-lg)]",
|
|
23
|
-
style: {
|
|
24
|
-
"background-color": "var(--tpl-bg-elevated)",
|
|
25
|
-
"box-shadow": "var(--tpl-shadow-xl)"
|
|
26
|
-
}
|
|
27
|
-
}, _e = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:px-5 tpl:py-4 tpl:border-[var(--tpl-border)]" }, ve = {
|
|
28
|
-
id: "tpl-saved-blocks-browser-title",
|
|
29
|
-
class: "tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
|
|
30
|
-
}, ye = ["aria-label"], be = { class: "tpl:flex tpl:min-h-0 tpl:flex-1 tpl:overflow-hidden" }, xe = { class: "tpl:flex tpl:w-[300px] tpl:shrink-0 tpl:flex-col tpl:overflow-hidden" }, Se = { class: "tpl:flex tpl:flex-col tpl:gap-2 tpl:px-4 tpl:pt-4 tpl:pb-3" }, Ce = { class: "tpl:relative" }, we = ["placeholder", "disabled"], Te = ["aria-label"], Ee = { value: "" }, De = ["value"], Oe = { id: "tpl-saved-block-browser-categories" }, ke = ["value"], Ae = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:px-4 tpl:pb-4" }, je = ["aria-label"], Me = {
|
|
31
|
-
key: 1,
|
|
32
|
-
class: "tpl:flex tpl:flex-col tpl:gap-1"
|
|
33
|
-
}, Ne = ["onFocusout"], Pe = ["aria-label", "onKeydown"], Fe = [
|
|
34
|
-
"aria-label",
|
|
35
|
-
"placeholder",
|
|
36
|
-
"onKeydown"
|
|
37
|
-
], Ie = ["onClick"], Le = ["aria-pressed"], Re = { class: "tpl:flex tpl:items-center tpl:gap-2" }, ze = {
|
|
38
|
-
"data-testid": "saved-block-name",
|
|
39
|
-
class: "tpl:flex-1 tpl:truncate tpl:text-xs tpl:font-semibold tpl:text-[var(--tpl-text)]"
|
|
40
|
-
}, Be = { class: "tpl:shrink-0 tpl:rounded-full tpl:px-1.5 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)]" }, Ve = {
|
|
41
|
-
key: 0,
|
|
42
|
-
class: "tpl:mt-1 tpl:flex tpl:items-center"
|
|
43
|
-
}, He = {
|
|
44
|
-
"data-testid": "saved-block-category",
|
|
45
|
-
class: "tpl:max-w-full tpl:truncate tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]"
|
|
46
|
-
}, Ue = { class: "tpl:mt-1 tpl:flex tpl:items-center tpl:gap-1" }, We = {
|
|
47
|
-
key: 0,
|
|
48
|
-
class: "tpl:shrink-0 tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]"
|
|
49
|
-
}, Ge = ["title"], Ke = [
|
|
50
|
-
"aria-label",
|
|
51
|
-
"onClick",
|
|
52
|
-
"onKeydown"
|
|
53
|
-
], qe = [
|
|
54
|
-
"aria-label",
|
|
55
|
-
"title",
|
|
56
|
-
"onClick"
|
|
57
|
-
], Je = [
|
|
58
|
-
"aria-label",
|
|
59
|
-
"title",
|
|
60
|
-
"onClick"
|
|
61
|
-
], Ye = {
|
|
62
|
-
key: 2,
|
|
63
|
-
class: "tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:py-12"
|
|
64
|
-
}, Xe = {
|
|
65
|
-
key: 0,
|
|
66
|
-
class: "tpl:mt-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
67
|
-
}, Ze = { class: "tpl:mt-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]" }, Qe = { class: "tpl:mt-1 tpl:max-w-[220px] tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]" }, $e = { class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-hidden tpl:border-l tpl:border-[var(--tpl-border)]" }, et = {
|
|
68
|
-
key: 0,
|
|
69
|
-
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-hidden"
|
|
70
|
-
}, tt = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, nt = {
|
|
71
|
-
key: 1,
|
|
72
|
-
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:items-center tpl:justify-center tpl:px-4"
|
|
73
|
-
}, rt = { class: "tpl:mt-2 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]" }, it = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-t tpl:px-5 tpl:py-3 tpl:border-[var(--tpl-border)]" }, at = { class: "tpl:flex tpl:items-center tpl:gap-2" }, ot = { class: "tpl:shrink-0 tpl:text-xs tpl:text-[var(--tpl-text-dim)]" }, st = ["value"], ct = { class: "tpl:flex tpl:gap-2" }, lt = ["disabled"], ut = ".tpl-saved-block-select", T = ".tpl-saved-block-rename-btn", dt = ".tpl-saved-block-delete-btn", E = /* @__PURE__ */ _({
|
|
74
|
-
__name: "SavedBlocksBrowserModal",
|
|
75
|
-
props: { visible: { type: Boolean } },
|
|
76
|
-
emits: ["close", "insert"],
|
|
77
|
-
setup(_, { emit: E }) {
|
|
78
|
-
let ft = _, D = E, pt = ne(() => import("./BlockPreviewCanvas-Df9iz7sK.js").then((e) => e.n)), { t: O, format: k } = se(), A = S(ie, "SavedBlocksBrowserModal"), j = S(oe, "SavedBlocksBrowserModal"), mt = t(ae, void 0), M = s(""), N = s(""), P = s(null), F = s(null), I = s(null), L = s(""), R = s(""), z = s(null), B = s(null), V = s(null), H = s("end"), U = /* @__PURE__ */ new Map();
|
|
79
|
-
function ht(e, t) {
|
|
80
|
-
t ? U.set(e, t) : U.delete(e);
|
|
81
|
-
}
|
|
82
|
-
async function W(e, t) {
|
|
83
|
-
await n(), U.get(e)?.querySelector(t)?.focus();
|
|
84
|
-
}
|
|
85
|
-
let G = l(() => {
|
|
86
|
-
let e = M.value.trim().toLowerCase(), t = N.value;
|
|
87
|
-
return A.savedBlocks.value.filter((n) => !(e && !n.name.toLowerCase().includes(e) || t && n.category !== t));
|
|
88
|
-
}), K = l(() => A.isLoading.value && A.savedBlocks.value.length === 0), gt = l(() => M.value.trim().length > 0 || N.value !== ""), q = l(() => P.value ? A.savedBlocks.value.find((e) => e.id === P.value) ?? null : null), _t = l(() => {
|
|
89
|
-
let e = [{
|
|
90
|
-
value: "beginning",
|
|
91
|
-
label: O.savedBlocks.insertAtBeginning
|
|
92
|
-
}], t = j.content.value.blocks;
|
|
93
|
-
for (let n = 0; n < t.length; n++) {
|
|
94
|
-
let r = t[n], i = r.type, a = O.blocks[i] ?? r.type;
|
|
95
|
-
e.push({
|
|
96
|
-
value: r.id,
|
|
97
|
-
label: k(O.savedBlocks.insertAfterBlock, { block: `${a} ${n + 1}` })
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
return e.push({
|
|
101
|
-
value: "end",
|
|
102
|
-
label: O.savedBlocks.insertAtEnd
|
|
103
|
-
}), e;
|
|
104
|
-
}), vt = l(() => {
|
|
105
|
-
if (H.value === "end") return;
|
|
106
|
-
if (H.value === "beginning") return 0;
|
|
107
|
-
let e = j.content.value.blocks.findIndex((e) => e.id === H.value);
|
|
108
|
-
if (e !== -1) return e + 1;
|
|
109
|
-
});
|
|
110
|
-
re(() => ft.visible, (e) => {
|
|
111
|
-
if (e) {
|
|
112
|
-
M.value = "", N.value = "", P.value = null, F.value = null, I.value = null;
|
|
113
|
-
let e = j.state.selectedBlockId;
|
|
114
|
-
if (e) {
|
|
115
|
-
let t = j.content.value.blocks.findIndex((t) => t.id === e);
|
|
116
|
-
H.value = t === -1 ? "end" : e;
|
|
117
|
-
} else H.value = "end";
|
|
118
|
-
}
|
|
119
|
-
}, { immediate: !0 });
|
|
120
|
-
function yt(e) {
|
|
121
|
-
let t = [], n = /* @__PURE__ */ new Set();
|
|
122
|
-
for (let r of e.content) if (!n.has(r.type) && C[r.type] && (n.add(r.type), t.push({
|
|
123
|
-
type: r.type,
|
|
124
|
-
icon: C[r.type]
|
|
125
|
-
})), t.length >= 5) break;
|
|
126
|
-
return t;
|
|
127
|
-
}
|
|
128
|
-
function J(e) {
|
|
129
|
-
let t = new Set(e.content.map((e) => e.type));
|
|
130
|
-
return Math.max(0, t.size - 5);
|
|
131
|
-
}
|
|
132
|
-
function Y(e) {
|
|
133
|
-
let t = e.updatedAt ?? e.createdAt;
|
|
134
|
-
return t ? me(t, O.time, k) ?? "" : "";
|
|
135
|
-
}
|
|
136
|
-
function bt(e) {
|
|
137
|
-
let t = e.updatedAt ?? e.createdAt;
|
|
138
|
-
return t ? fe(t, mt) : "";
|
|
139
|
-
}
|
|
140
|
-
async function xt(e) {
|
|
141
|
-
F.value = e, await n(), V.value?.focus();
|
|
142
|
-
}
|
|
143
|
-
function X(e) {
|
|
144
|
-
return F.value = null, W(e, dt);
|
|
145
|
-
}
|
|
146
|
-
async function St(e) {
|
|
147
|
-
let t = G.value.findIndex((t) => t.id === e);
|
|
148
|
-
try {
|
|
149
|
-
await A.remove(e);
|
|
150
|
-
} catch (t) {
|
|
151
|
-
throw await X(e), t;
|
|
152
|
-
}
|
|
153
|
-
F.value = null, P.value === e && (P.value = null);
|
|
154
|
-
let r = G.value, i = r[Math.min(t, r.length - 1)];
|
|
155
|
-
i ? await W(i.id, ut) : (await n(), B.value?.focus());
|
|
156
|
-
}
|
|
157
|
-
async function Ct(e) {
|
|
158
|
-
A.canUpdateBlock(e) && (I.value = e.id, L.value = e.name, R.value = e.category ?? "", F.value = null, await n(), z.value?.focus(), z.value?.select());
|
|
159
|
-
}
|
|
160
|
-
function Z() {
|
|
161
|
-
I.value = null, L.value = "", R.value = "";
|
|
162
|
-
}
|
|
163
|
-
async function Q(e) {
|
|
164
|
-
if (I.value !== e) return;
|
|
165
|
-
let t = L.value.trim(), n = R.value.trim(), r = A.savedBlocks.value.find((t) => t.id === e), i = {};
|
|
166
|
-
if (t && t !== r?.name && (i.name = t), n !== (r?.category ?? "") && (i.category = n), Object.keys(i).length === 0) Z();
|
|
167
|
-
else try {
|
|
168
|
-
await A.update(e, i);
|
|
169
|
-
} finally {
|
|
170
|
-
Z();
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
async function wt(e) {
|
|
174
|
-
try {
|
|
175
|
-
await Q(e);
|
|
176
|
-
} finally {
|
|
177
|
-
await W(e, T);
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
function Tt(e) {
|
|
181
|
-
return Z(), W(e, T);
|
|
182
|
-
}
|
|
183
|
-
function Et(e, t) {
|
|
184
|
-
let n = e.currentTarget, r = e.relatedTarget;
|
|
185
|
-
r && n.contains(r) || Q(t);
|
|
186
|
-
}
|
|
187
|
-
function Dt() {
|
|
188
|
-
q.value && D("insert", q.value, vt.value);
|
|
189
|
-
}
|
|
190
|
-
function $() {
|
|
191
|
-
D("close");
|
|
192
|
-
}
|
|
193
|
-
function Ot(e) {
|
|
194
|
-
I.value || (e.key === "Escape" && $(), e.key === "Enter" && q.value && (e.preventDefault(), Dt()));
|
|
195
|
-
}
|
|
196
|
-
return (t, n) => (f(), g(he, {
|
|
197
|
-
visible: _.visible,
|
|
198
|
-
onClose: $,
|
|
199
|
-
onKeydown: Ot
|
|
200
|
-
}, {
|
|
201
|
-
default: ee(() => [p("div", ge, [
|
|
202
|
-
p("div", _e, [p("h3", ve, a(m(O).savedBlocks.browse), 1), p("button", {
|
|
203
|
-
"aria-label": m(O).savedBlocks.close,
|
|
204
|
-
class: "tpl:cursor-pointer tpl:rounded-md tpl:border-none tpl:bg-transparent tpl:p-1 tpl:transition-colors tpl:text-[var(--tpl-text-dim)]",
|
|
205
|
-
onClick: $
|
|
206
|
-
}, [c(m(de), {
|
|
207
|
-
size: 16,
|
|
208
|
-
"stroke-width": 2
|
|
209
|
-
})], 8, ye)]),
|
|
210
|
-
p("div", be, [p("div", xe, [
|
|
211
|
-
p("div", Se, [p("div", Ce, [c(m(le), {
|
|
212
|
-
size: 14,
|
|
213
|
-
"stroke-width": 2,
|
|
214
|
-
class: "tpl:pointer-events-none tpl:absolute tpl:left-3 tpl:top-1/2 tpl:-translate-y-1/2 tpl:text-[var(--tpl-text-dim)]"
|
|
215
|
-
}), r(p("input", {
|
|
216
|
-
ref_key: "searchInput",
|
|
217
|
-
ref: B,
|
|
218
|
-
"onUpdate:modelValue": n[0] ||= (e) => M.value = e,
|
|
219
|
-
type: "text",
|
|
220
|
-
placeholder: m(O).savedBlocks.search,
|
|
221
|
-
disabled: K.value,
|
|
222
|
-
class: "tpl:h-9 tpl:w-full tpl:rounded-md tpl:border tpl:pl-9 tpl:pr-3 tpl:text-sm tpl:outline-none tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)] tpl:disabled:opacity-50 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"
|
|
223
|
-
}, null, 8, we), [[v, M.value]])]), m(A).categories.value.length > 0 ? r((f(), d("select", {
|
|
224
|
-
key: 0,
|
|
225
|
-
"onUpdate:modelValue": n[1] ||= (e) => N.value = e,
|
|
226
|
-
"data-testid": "saved-blocks-category-filter",
|
|
227
|
-
"aria-label": m(O).savedBlocks.filterByCategory,
|
|
228
|
-
class: "tpl:h-8 tpl:w-full tpl:rounded-md tpl:border tpl:px-2 tpl:text-xs 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)]"
|
|
229
|
-
}, [p("option", Ee, a(m(O).savedBlocks.allCategories), 1), (f(!0), d(h, null, o(m(A).categories.value, (e) => (f(), d("option", {
|
|
230
|
-
key: e,
|
|
231
|
-
value: e
|
|
232
|
-
}, a(e), 9, De))), 128))], 8, Te)), [[b, N.value]]) : u("", !0)]),
|
|
233
|
-
p("datalist", Oe, [(f(!0), d(h, null, o(m(A).categories.value, (e) => (f(), d("option", {
|
|
234
|
-
key: e,
|
|
235
|
-
value: e
|
|
236
|
-
}, null, 8, ke))), 128))]),
|
|
237
|
-
p("div", Ae, [K.value ? (f(), d("div", {
|
|
238
|
-
key: 0,
|
|
239
|
-
"data-testid": "saved-blocks-loading",
|
|
240
|
-
class: "tpl:flex tpl:flex-col tpl:gap-1",
|
|
241
|
-
role: "status",
|
|
242
|
-
"aria-busy": "true",
|
|
243
|
-
"aria-label": m(O).savedBlocks.loading
|
|
244
|
-
}, [(f(), d(h, null, o(3, (e) => p("div", {
|
|
245
|
-
key: e,
|
|
246
|
-
"aria-hidden": "true",
|
|
247
|
-
class: "tpl-saved-block-skeleton tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:px-3 tpl:py-2 tpl:border-[var(--tpl-border)]"
|
|
248
|
-
}, [...n[5] ||= [p("div", { class: "tpl:h-3 tpl:w-1/2 tpl:rounded tpl:bg-[var(--tpl-bg-hover)]" }, null, -1), p("div", { class: "tpl:mt-2 tpl:h-2.5 tpl:w-1/4 tpl:rounded tpl:bg-[var(--tpl-bg-hover)]" }, null, -1)]])), 64))], 8, je)) : G.value.length > 0 ? (f(), d("div", Me, [(f(!0), d(h, null, o(G.value, (t) => (f(), d(h, { key: t.id }, [I.value === t.id ? (f(), d("div", {
|
|
249
|
-
key: 0,
|
|
250
|
-
class: "tpl:flex tpl:w-full tpl:flex-col tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:px-3 tpl:py-2 tpl:border-[var(--tpl-primary)]",
|
|
251
|
-
style: { "background-color": "var(--tpl-primary-light)" },
|
|
252
|
-
onFocusout: (e) => Et(e, t.id)
|
|
253
|
-
}, [r(p("input", {
|
|
254
|
-
ref_for: !0,
|
|
255
|
-
ref: (e) => z.value = e,
|
|
256
|
-
"onUpdate:modelValue": n[2] ||= (e) => L.value = e,
|
|
257
|
-
type: "text",
|
|
258
|
-
"aria-label": m(O).savedBlocks.rename,
|
|
259
|
-
class: "tpl:h-7 tpl:w-full tpl:rounded-md tpl:border tpl:px-2 tpl:text-xs 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)]",
|
|
260
|
-
onKeydown: [x(y((e) => wt(t.id), ["prevent", "stop"]), ["enter"]), x(y((e) => Tt(t.id), ["prevent", "stop"]), ["esc"])]
|
|
261
|
-
}, null, 40, Pe), [[v, L.value]]), r(p("input", {
|
|
262
|
-
"onUpdate:modelValue": n[3] ||= (e) => R.value = e,
|
|
263
|
-
type: "text",
|
|
264
|
-
"data-testid": "saved-blocks-edit-category",
|
|
265
|
-
"aria-label": m(O).savedBlocks.category,
|
|
266
|
-
placeholder: m(O).savedBlocks.categoryPlaceholder,
|
|
267
|
-
list: "tpl-saved-block-browser-categories",
|
|
268
|
-
class: "tpl:h-7 tpl:w-full tpl:rounded-md tpl:border tpl:px-2 tpl:text-xs 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)]",
|
|
269
|
-
onKeydown: [x(y((e) => wt(t.id), ["prevent", "stop"]), ["enter"]), x(y((e) => Tt(t.id), ["prevent", "stop"]), ["esc"])]
|
|
270
|
-
}, null, 40, Fe), [[v, R.value]])], 40, Ne)) : (f(), d("div", {
|
|
271
|
-
key: 1,
|
|
272
|
-
"data-testid": "saved-block-card",
|
|
273
|
-
class: "tpl:group/card tpl:relative tpl:w-full tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:bg-transparent tpl:px-3 tpl:py-2 tpl:text-left tpl:transition-all tpl:duration-[120ms]",
|
|
274
|
-
style: te({
|
|
275
|
-
borderColor: P.value === t.id ? "var(--tpl-primary)" : "var(--tpl-border)",
|
|
276
|
-
backgroundColor: P.value === t.id ? "var(--tpl-primary-light)" : "transparent"
|
|
277
|
-
}),
|
|
278
|
-
onClick: (e) => P.value = t.id,
|
|
279
|
-
ref_for: !0,
|
|
280
|
-
ref: (e) => ht(t.id, e)
|
|
281
|
-
}, [p("button", {
|
|
282
|
-
type: "button",
|
|
283
|
-
"aria-pressed": P.value === t.id,
|
|
284
|
-
class: "tpl-saved-block-select tpl:block tpl:w-full tpl:text-left"
|
|
285
|
-
}, [p("span", Re, [p("span", ze, a(t.name), 1), p("span", Be, a(m(k)(m(O).savedBlocks.blockCount, { count: t.content.length })), 1)]), t.category ? (f(), d("span", Ve, [p("span", He, a(t.category), 1)])) : u("", !0)], 8, Le), p("div", Ue, [
|
|
286
|
-
(f(!0), d(h, null, o(yt(t), (e) => (f(), g(i(e.icon), {
|
|
287
|
-
key: e.type,
|
|
288
|
-
size: 14,
|
|
289
|
-
"stroke-width": 1.5,
|
|
290
|
-
class: "tpl:shrink-0 tpl:text-[var(--tpl-text-dim)]"
|
|
291
|
-
}))), 128)),
|
|
292
|
-
J(t) > 0 ? (f(), d("span", We, " +" + a(J(t)), 1)) : u("", !0),
|
|
293
|
-
Y(t) ? (f(), d("span", {
|
|
294
|
-
key: 1,
|
|
295
|
-
"data-testid": "saved-block-updated",
|
|
296
|
-
class: "tpl:ml-1 tpl:truncate tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]",
|
|
297
|
-
title: bt(t)
|
|
298
|
-
}, a(Y(t)), 9, Ge)) : u("", !0),
|
|
299
|
-
F.value === t.id ? (f(), d("button", {
|
|
300
|
-
key: 2,
|
|
301
|
-
ref_for: !0,
|
|
302
|
-
ref: (e) => V.value = e,
|
|
303
|
-
"aria-label": m(O).savedBlocks.deleteConfirm,
|
|
304
|
-
class: "tpl:ml-auto tpl:shrink-0 tpl:cursor-pointer tpl:whitespace-nowrap tpl:rounded-md tpl:border tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:transition-colors tpl:border-[var(--tpl-danger)] tpl:text-[var(--tpl-danger)]",
|
|
305
|
-
style: { "background-color": "transparent" },
|
|
306
|
-
onClick: y((e) => St(t.id), ["stop"]),
|
|
307
|
-
onKeydown: x(y((e) => X(t.id), ["prevent", "stop"]), ["esc"])
|
|
308
|
-
}, a(m(O).savedBlocks.deleteConfirmShort), 41, Ke)) : (f(), d(h, { key: 3 }, [m(A).canUpdateBlock(t) ? (f(), d("button", {
|
|
309
|
-
key: 0,
|
|
310
|
-
class: "tpl-saved-block-rename-btn tpl:ml-auto tpl:cursor-pointer tpl:rounded-md tpl:border-none tpl:bg-transparent tpl:p-0.5 tpl:transition-colors tpl:text-[var(--tpl-text-dim)]",
|
|
311
|
-
"aria-label": m(O).savedBlocks.rename,
|
|
312
|
-
title: m(O).savedBlocks.rename,
|
|
313
|
-
onClick: y((e) => Ct(t), ["stop"])
|
|
314
|
-
}, [c(m(ce), {
|
|
315
|
-
size: 12,
|
|
316
|
-
"stroke-width": 1.5
|
|
317
|
-
})], 8, qe)) : u("", !0), m(A).canDeleteBlock(t) ? (f(), d("button", {
|
|
318
|
-
key: 1,
|
|
319
|
-
class: e(["tpl-saved-block-delete-btn tpl:cursor-pointer tpl:rounded-md tpl:border-none tpl:bg-transparent tpl:p-0.5 tpl:transition-colors tpl:text-[var(--tpl-text-dim)]", { "tpl:ml-auto": !m(A).canUpdateBlock(t) }]),
|
|
320
|
-
"aria-label": m(O).savedBlocks.delete,
|
|
321
|
-
title: m(O).savedBlocks.delete,
|
|
322
|
-
onClick: y((e) => xt(t.id), ["stop"])
|
|
323
|
-
}, [c(m(ue), {
|
|
324
|
-
size: 12,
|
|
325
|
-
"stroke-width": 1.5
|
|
326
|
-
})], 10, Je)) : u("", !0)], 64))
|
|
327
|
-
])], 12, Ie))], 64))), 128))])) : (f(), d("div", Ye, [c(m(w), {
|
|
328
|
-
size: 32,
|
|
329
|
-
"stroke-width": 1,
|
|
330
|
-
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
331
|
-
}), gt.value ? (f(), d("p", Xe, a(m(O).savedBlocks.noResults), 1)) : (f(), d(h, { key: 1 }, [p("p", Ze, a(m(O).savedBlocks.empty), 1), p("p", Qe, a(m(O).savedBlocks.emptyHint), 1)], 64))]))])
|
|
332
|
-
]), p("div", $e, [q.value ? (f(), d("div", et, [p("div", tt, [c(m(pt), { blocks: q.value.content }, null, 8, ["blocks"])])])) : (f(), d("div", nt, [c(m(w), {
|
|
333
|
-
size: 32,
|
|
334
|
-
"stroke-width": 1,
|
|
335
|
-
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
336
|
-
}), p("p", rt, a(m(O).savedBlocks.selectToPreview), 1)]))])]),
|
|
337
|
-
p("div", it, [p("div", at, [p("label", ot, a(m(O).savedBlocks.insertPosition), 1), r(p("select", {
|
|
338
|
-
"onUpdate:modelValue": n[4] ||= (e) => H.value = e,
|
|
339
|
-
class: "tpl:h-7 tpl:max-w-[220px] tpl:rounded-md tpl:border tpl:px-2 tpl:text-xs 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)]"
|
|
340
|
-
}, [(f(!0), d(h, null, o(_t.value, (e) => (f(), d("option", {
|
|
341
|
-
key: e.value,
|
|
342
|
-
value: e.value
|
|
343
|
-
}, a(e.label), 9, st))), 128))], 512), [[b, H.value]])]), p("div", ct, [p("button", {
|
|
344
|
-
type: "button",
|
|
345
|
-
"data-testid": "saved-blocks-browser-close",
|
|
346
|
-
class: "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)]",
|
|
347
|
-
onClick: $
|
|
348
|
-
}, a(m(O).savedBlocks.close), 1), p("button", {
|
|
349
|
-
type: "button",
|
|
350
|
-
class: e(m(pe)),
|
|
351
|
-
disabled: !q.value,
|
|
352
|
-
onClick: Dt
|
|
353
|
-
}, a(m(O).savedBlocks.insert), 11, lt)])])
|
|
354
|
-
])]),
|
|
355
|
-
_: 1
|
|
356
|
-
}, 8, ["visible"]));
|
|
357
|
-
}
|
|
358
|
-
});
|
|
359
|
-
export { E as default };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { C as e, D as t, P as n, _ as r, g as i, h as a, lt as o, ot as s, p as c } from "./draggable-B8hTTYFO.js";
|
|
2
|
-
import { K as l } from "./keys-BF9gazbd.js";
|
|
3
|
-
import { t as u } from "./useI18n-11iqzC6m.js";
|
|
4
|
-
import { Pt as d, d as f } from "./icons-HCBP93Ch.js";
|
|
5
|
-
// src/components/canvas/BlockIssueBadge.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
-
var p = ["title", "aria-label"], m = /* @__PURE__ */ e({
|
|
7
|
-
__name: "BlockIssueBadge",
|
|
8
|
-
props: { blockId: {} },
|
|
9
|
-
setup(e) {
|
|
10
|
-
let m = e, { t: h } = u(), g = t(l, null), _ = c(() => (g?.issues.value ?? []).filter((e) => e.blockId === m.blockId)), v = c(() => _.value.some((e) => e.severity === "error") ? "error" : _.value.some((e) => e.severity === "warning") ? "warning" : null), y = c(() => v.value === "error" ? h.issues.badgeError : h.issues.badgeWarning);
|
|
11
|
-
return (e, t) => v.value ? (n(), r("span", {
|
|
12
|
-
key: 0,
|
|
13
|
-
class: o(["tpl:absolute tpl:top-1 tpl:right-1 tpl:z-10 tpl:flex tpl:size-5 tpl:items-center tpl:justify-center tpl:rounded-full tpl:bg-[var(--tpl-bg)] tpl:shadow-[var(--tpl-shadow-sm)] tpl:ring-1 tpl:ring-[var(--tpl-border)]", v.value === "error" ? "tpl:text-[var(--tpl-danger)]" : "tpl:text-[var(--tpl-warning)]"]),
|
|
14
|
-
title: y.value,
|
|
15
|
-
"aria-label": y.value,
|
|
16
|
-
role: "img"
|
|
17
|
-
}, [v.value === "error" ? (n(), a(s(d), {
|
|
18
|
-
key: 0,
|
|
19
|
-
size: 14,
|
|
20
|
-
"stroke-width": 2.25,
|
|
21
|
-
fill: "currentColor",
|
|
22
|
-
stroke: "var(--tpl-bg)"
|
|
23
|
-
})) : (n(), a(s(f), {
|
|
24
|
-
key: 1,
|
|
25
|
-
size: 14,
|
|
26
|
-
"stroke-width": 2.25,
|
|
27
|
-
fill: "currentColor",
|
|
28
|
-
stroke: "var(--tpl-bg)"
|
|
29
|
-
}))], 10, p)) : i("", !0);
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
export { m as default };
|
|
33
|
-
|
|
34
|
-
//# sourceMappingURL=BlockIssueBadge-DIJDqqcY.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BlockIssueBadge-DIJDqqcY.js","names":["_openBlock","_createElementBlock","_normalizeClass","_createBlock","_unref","_createCommentVNode","_sfc_main","defineComponent","inject","openBlock","createElementBlock","createCommentVNode","createBlock","normalizeClass","unref","computed","TEMPLATE_LINT_KEY","useI18n","CircleAlert","TriangleAlert","_hoisted_1","BlockIssueBadge_default","props","__props","lint","blockIssues","i","severity","tooltip","t"],"sources":["../../../src/components/canvas/BlockIssueBadge.vue","../../../src/components/canvas/BlockIssueBadge.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, inject } from \"vue\";\nimport { CircleAlert, TriangleAlert } from \"@lucide/vue\";\nimport { useI18n } from \"../../composables/useI18n\";\nimport { TEMPLATE_LINT_KEY } from \"../../keys\";\n\nconst props = defineProps<{ blockId: string }>();\nconst { t } = useI18n();\nconst lint = inject(TEMPLATE_LINT_KEY, null);\n\nconst blockIssues = computed(() =>\n (lint?.issues.value ?? []).filter((i) => i.blockId === props.blockId),\n);\n\nconst severity = computed<\"error\" | \"warning\" | null>(() => {\n if (blockIssues.value.some((i) => i.severity === \"error\")) return \"error\";\n if (blockIssues.value.some((i) => i.severity === \"warning\")) return \"warning\";\n return null;\n});\n\nconst tooltip = computed(() =>\n severity.value === \"error\" ? t.issues.badgeError : t.issues.badgeWarning,\n);\n</script>\n\n<template>\n <span\n v-if=\"severity\"\n class=\"tpl:absolute tpl:top-1 tpl:right-1 tpl:z-10 tpl:flex tpl:size-5 tpl:items-center tpl:justify-center tpl:rounded-full tpl:bg-[var(--tpl-bg)] tpl:shadow-[var(--tpl-shadow-sm)] tpl:ring-1 tpl:ring-[var(--tpl-border)]\"\n :class=\"\n severity === 'error'\n ? 'tpl:text-[var(--tpl-danger)]'\n : 'tpl:text-[var(--tpl-warning)]'\n \"\n :title=\"tooltip\"\n :aria-label=\"tooltip\"\n role=\"img\"\n >\n <CircleAlert\n v-if=\"severity === 'error'\"\n :size=\"14\"\n :stroke-width=\"2.25\"\n fill=\"currentColor\"\n stroke=\"var(--tpl-bg)\"\n />\n <TriangleAlert\n v-else\n :size=\"14\"\n :stroke-width=\"2.25\"\n fill=\"currentColor\"\n stroke=\"var(--tpl-bg)\"\n />\n </span>\n</template>\n","<script setup lang=\"ts\">\nimport { computed, inject } from \"vue\";\nimport { CircleAlert, TriangleAlert } from \"@lucide/vue\";\nimport { useI18n } from \"../../composables/useI18n\";\nimport { TEMPLATE_LINT_KEY } from \"../../keys\";\n\nconst props = defineProps<{ blockId: string }>();\nconst { t } = useI18n();\nconst lint = inject(TEMPLATE_LINT_KEY, null);\n\nconst blockIssues = computed(() =>\n (lint?.issues.value ?? []).filter((i) => i.blockId === props.blockId),\n);\n\nconst severity = computed<\"error\" | \"warning\" | null>(() => {\n if (blockIssues.value.some((i) => i.severity === \"error\")) return \"error\";\n if (blockIssues.value.some((i) => i.severity === \"warning\")) return \"warning\";\n return null;\n});\n\nconst tooltip = computed(() =>\n severity.value === \"error\" ? t.issues.badgeError : t.issues.badgeWarning,\n);\n</script>\n\n<template>\n <span\n v-if=\"severity\"\n class=\"tpl:absolute tpl:top-1 tpl:right-1 tpl:z-10 tpl:flex tpl:size-5 tpl:items-center tpl:justify-center tpl:rounded-full tpl:bg-[var(--tpl-bg)] tpl:shadow-[var(--tpl-shadow-sm)] tpl:ring-1 tpl:ring-[var(--tpl-border)]\"\n :class=\"\n severity === 'error'\n ? 'tpl:text-[var(--tpl-danger)]'\n : 'tpl:text-[var(--tpl-warning)]'\n \"\n :title=\"tooltip\"\n :aria-label=\"tooltip\"\n role=\"img\"\n >\n <CircleAlert\n v-if=\"severity === 'error'\"\n :size=\"14\"\n :stroke-width=\"2.25\"\n fill=\"currentColor\"\n stroke=\"var(--tpl-bg)\"\n />\n <TriangleAlert\n v-else\n :size=\"14\"\n :stroke-width=\"2.25\"\n fill=\"currentColor\"\n stroke=\"var(--tpl-bg)\"\n />\n </span>\n</template>\n"],"mappings":";;;;;;;;;EAMA,IAAMsB,IAAQC,GACR,EAAE,SAAMN,EAAQ,GAChBO,IAAOhB,EAAOQ,GAAmB,IAAI,GAErCS,IAAcV,SACjBS,GAAM,OAAO,SAAS,CAAC,EAAA,CAAG,QAAQ,MAAME,EAAE,YAAYJ,EAAM,OAAO,CACtE,GAEMK,IAAWZ,QACXU,EAAY,MAAM,MAAM,MAAMC,EAAE,aAAa,OAAO,IAAU,UAC9DD,EAAY,MAAM,MAAM,MAAMC,EAAE,aAAa,SAAS,IAAU,YAC7D,IACR,GAEKE,IAAUb,QACdY,EAAS,UAAU,UAAUE,EAAE,OAAO,aAAaA,EAAE,OAAO,YAC9D;E,iBAKUF,EAAA,SADR3B,EAAA,GAAAC,EA0BO,QAAA;;GAxBL,OAAKC,EAAA,CAAC,yNACSyB,EAAA,UAAQ,U;GAKtB,OAAOC,EAAA;GACP,cAAYA,EAAA;GACb,MAAK;E,IAGGD,EAAA,UAAQ,WADhB3B,EAAA,GAAAG,EAMEC,EAAAc,CAAA,GAAA;;GAJC,MAAM;GACN,gBAAc;GACf,MAAK;GACL,QAAO;E,OAETlB,EAAA,GAAAG,EAMEC,EAAAe,CAAA,GAAA;;GAJC,MAAM;GACN,gBAAc;GACf,MAAK;GACL,QAAO"}
|