@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,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { g as f } from "./dist-
|
|
3
|
-
import { $ as p, v as m } from "./keys-
|
|
4
|
-
import { t as h } from "./useI18n-
|
|
1
|
+
import { $ as e, Mt as t, N as n, Nt as r, c as i, d as a, f as o, j as s, l as c, r as l, st as u, y as d } from "./vue.runtime.esm-bundler-CnEeTfhs.js";
|
|
2
|
+
import { g as f } from "./dist-CVy-7PHQ.js";
|
|
3
|
+
import { $ as p, v as m } from "./keys-BgRERHzu.js";
|
|
4
|
+
import { t as h } from "./useI18n-BBrHTdu8.js";
|
|
5
5
|
// src/components/blocks/CountdownBlock.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var g = {
|
|
7
7
|
key: 0,
|
|
@@ -16,15 +16,15 @@ var g = {
|
|
|
16
16
|
viewport: {}
|
|
17
17
|
},
|
|
18
18
|
setup(d) {
|
|
19
|
-
let y = d, { t: b } = h(), x =
|
|
19
|
+
let y = d, { t: b } = h(), x = e(Date.now());
|
|
20
20
|
f(() => {
|
|
21
21
|
x.value = Date.now();
|
|
22
22
|
}, 1e3);
|
|
23
|
-
let S =
|
|
23
|
+
let S = i(() => {
|
|
24
24
|
if (!y.block.targetDate) return null;
|
|
25
25
|
let e = new Date(y.block.targetDate);
|
|
26
26
|
return isNaN(e.getTime()) ? null : e.getTime();
|
|
27
|
-
}), C =
|
|
27
|
+
}), C = i(() => S.value ? x.value >= S.value : !1), w = i(() => {
|
|
28
28
|
if (!S.value || C.value) return {
|
|
29
29
|
days: 0,
|
|
30
30
|
hours: 0,
|
|
@@ -38,7 +38,7 @@ var g = {
|
|
|
38
38
|
minutes: Math.floor(t % 3600 / 60),
|
|
39
39
|
seconds: t % 60
|
|
40
40
|
};
|
|
41
|
-
}), T =
|
|
41
|
+
}), T = i(() => {
|
|
42
42
|
let e = [];
|
|
43
43
|
return y.block.showDays && e.push({
|
|
44
44
|
value: String(w.value.days).padStart(2, "0"),
|
|
@@ -53,39 +53,39 @@ var g = {
|
|
|
53
53
|
value: String(w.value.seconds).padStart(2, "0"),
|
|
54
54
|
label: y.block.labelSeconds
|
|
55
55
|
}), e;
|
|
56
|
-
}), E = p(m, "CountdownBlock"), D =
|
|
56
|
+
}), E = p(m, "CountdownBlock"), D = i(() => y.block.fontFamily ? E.resolveFontFamily(y.block.fontFamily) : "inherit"), O = i(() => ({
|
|
57
57
|
backgroundColor: y.block.backgroundColor,
|
|
58
58
|
fontFamily: D.value
|
|
59
|
-
})), k =
|
|
59
|
+
})), k = i(() => ({
|
|
60
60
|
fontSize: `${y.block.digitFontSize}px`,
|
|
61
61
|
fontWeight: "bold",
|
|
62
62
|
color: y.block.digitColor,
|
|
63
63
|
lineHeight: "1.2"
|
|
64
|
-
})), A =
|
|
64
|
+
})), A = i(() => ({
|
|
65
65
|
fontSize: `${y.block.labelFontSize}px`,
|
|
66
66
|
color: y.block.labelColor,
|
|
67
67
|
marginTop: "4px"
|
|
68
|
-
})), j =
|
|
68
|
+
})), j = i(() => ({
|
|
69
69
|
fontSize: `${y.block.digitFontSize}px`,
|
|
70
70
|
color: y.block.digitColor,
|
|
71
71
|
fontFamily: D.value
|
|
72
72
|
}));
|
|
73
|
-
return (
|
|
73
|
+
return (e, i) => d.block.targetDate ? C.value && d.block.hideOnExpiry ? (s(), o("div", _, r(u(b).countdown.hidden), 1)) : C.value ? (s(), o("div", {
|
|
74
74
|
key: 2,
|
|
75
|
-
style:
|
|
75
|
+
style: t(O.value),
|
|
76
76
|
class: "tpl:py-4 tpl:text-center"
|
|
77
|
-
}, [c("span", { style:
|
|
77
|
+
}, [c("span", { style: t({
|
|
78
78
|
fontSize: `${d.block.digitFontSize}px`,
|
|
79
79
|
color: d.block.digitColor
|
|
80
|
-
}) },
|
|
80
|
+
}) }, r(d.block.expiredMessage), 5)], 4)) : (s(), o("div", {
|
|
81
81
|
key: 3,
|
|
82
|
-
style:
|
|
82
|
+
style: t(O.value),
|
|
83
83
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-2 tpl:py-4"
|
|
84
|
-
}, [(
|
|
84
|
+
}, [(s(!0), o(l, null, n(T.value, (e, n) => (s(), o(l, { key: e.label }, [n > 0 ? (s(), o("span", {
|
|
85
85
|
key: 0,
|
|
86
|
-
style:
|
|
86
|
+
style: t(j.value),
|
|
87
87
|
class: "tpl:self-start"
|
|
88
|
-
},
|
|
88
|
+
}, r(d.block.separator), 5)) : a("", !0), c("div", v, [c("div", { style: t(k.value) }, r(e.value), 5), c("div", { style: t(A.value) }, r(e.label), 5)])], 64))), 128))], 4)) : (s(), o("div", g, r(u(b).countdown.setDate), 1));
|
|
89
89
|
}
|
|
90
90
|
});
|
|
91
91
|
export { y as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as p } from "./useI18n-
|
|
3
|
-
import { c as m } from "./LogicTagInsertButton-
|
|
1
|
+
import { H as e, N as t, Nt as n, _ as r, c as i, f as a, j as o, jt as s, l as c, r as l, st as u, u as d, y as f } from "./vue.runtime.esm-bundler-CnEeTfhs.js";
|
|
2
|
+
import { t as p } from "./useI18n-BBrHTdu8.js";
|
|
3
|
+
import { c as m } from "./LogicTagInsertButton-CfscnwCn.js";
|
|
4
4
|
import { p as h } from "./styleConstants-B8xVRiwX.js";
|
|
5
|
-
import { t as g } from "./ToggleSwitch-
|
|
6
|
-
import { t as _ } from "./withCurrentFont-
|
|
7
|
-
import { i as v, n as y, r as b } from "./Toolbar-
|
|
5
|
+
import { t as g } from "./ToggleSwitch-JykPyD_8.js";
|
|
6
|
+
import { t as _ } from "./withCurrentFont-B22FXAF5.js";
|
|
7
|
+
import { i as v, n as y, r as b } from "./Toolbar-BZPFfKrf.js";
|
|
8
8
|
// src/components/toolbar/CountdownToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
9
9
|
var x = ["value"], S = ["value"], C = ["value"], w = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-2" }, T = ["value"], E = { value: "" }, D = ["value"], O = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, k = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, A = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-2" }, j = [
|
|
10
10
|
"value",
|
|
@@ -52,7 +52,7 @@ var x = ["value"], S = ["value"], C = ["value"], w = { class: "tpl:grid tpl:grid
|
|
|
52
52
|
"Hours",
|
|
53
53
|
"Minutes",
|
|
54
54
|
"Seconds"
|
|
55
|
-
], B =
|
|
55
|
+
], B = i(() => z.map((e) => ({
|
|
56
56
|
unit: e,
|
|
57
57
|
showKey: `show${e}`,
|
|
58
58
|
labelKey: `label${e}`,
|
|
@@ -61,33 +61,33 @@ var x = ["value"], S = ["value"], C = ["value"], w = { class: "tpl:grid tpl:grid
|
|
|
61
61
|
function V(e, t) {
|
|
62
62
|
F("update", { [e]: t });
|
|
63
63
|
}
|
|
64
|
-
return (
|
|
65
|
-
|
|
66
|
-
default:
|
|
64
|
+
return (i, p) => (o(), a(l, null, [
|
|
65
|
+
r(y, { label: u(I).countdown.targetDate }, {
|
|
66
|
+
default: e(() => [c("input", {
|
|
67
67
|
type: "datetime-local",
|
|
68
|
-
class:
|
|
68
|
+
class: s(u(h)),
|
|
69
69
|
value: f.block.targetDate,
|
|
70
70
|
onInput: p[0] ||= (e) => V("targetDate", e.target.value)
|
|
71
71
|
}, null, 42, x)]),
|
|
72
72
|
_: 1
|
|
73
73
|
}, 8, ["label"]),
|
|
74
|
-
|
|
75
|
-
default:
|
|
76
|
-
class:
|
|
74
|
+
r(y, { label: u(I).countdown.timezone }, {
|
|
75
|
+
default: e(() => [c("select", {
|
|
76
|
+
class: s(u(h)),
|
|
77
77
|
value: f.block.timezone,
|
|
78
78
|
onChange: p[1] ||= (e) => V("timezone", e.target.value)
|
|
79
|
-
}, [(
|
|
79
|
+
}, [(o(), a(l, null, t(L, (e) => c("option", {
|
|
80
80
|
key: e,
|
|
81
81
|
value: e
|
|
82
|
-
},
|
|
82
|
+
}, n(e), 9, C)), 64))], 42, S)]),
|
|
83
83
|
_: 1
|
|
84
84
|
}, 8, ["label"]),
|
|
85
|
-
|
|
86
|
-
default:
|
|
85
|
+
r(y, { label: u(I).countdown.display }, {
|
|
86
|
+
default: e(() => [c("div", w, [(o(!0), a(l, null, t(B.value, (e) => (o(), d(g, {
|
|
87
87
|
key: e.unit,
|
|
88
88
|
class: "tpl:text-[12px] tpl:text-[var(--tpl-text)]",
|
|
89
89
|
"model-value": f.block[e.showKey],
|
|
90
|
-
label:
|
|
90
|
+
label: u(I).countdown[e.translationKey],
|
|
91
91
|
"onUpdate:modelValue": (t) => V(e.showKey, t)
|
|
92
92
|
}, null, 8, [
|
|
93
93
|
"model-value",
|
|
@@ -96,27 +96,27 @@ var x = ["value"], S = ["value"], C = ["value"], w = { class: "tpl:grid tpl:grid
|
|
|
96
96
|
]))), 128))])]),
|
|
97
97
|
_: 1
|
|
98
98
|
}, 8, ["label"]),
|
|
99
|
-
|
|
100
|
-
default:
|
|
99
|
+
r(y, { label: u(I).countdown.separator }, {
|
|
100
|
+
default: e(() => [r(v, {
|
|
101
101
|
options: R,
|
|
102
102
|
"model-value": f.block.separator,
|
|
103
103
|
"onUpdate:modelValue": p[2] ||= (e) => V("separator", e)
|
|
104
104
|
}, null, 8, ["model-value"])]),
|
|
105
105
|
_: 1
|
|
106
106
|
}, 8, ["label"]),
|
|
107
|
-
|
|
108
|
-
default:
|
|
109
|
-
class:
|
|
110
|
-
value:
|
|
107
|
+
r(y, { label: u(I).countdown.fontFamily }, {
|
|
108
|
+
default: e(() => [c("select", {
|
|
109
|
+
class: s(u(h)),
|
|
110
|
+
value: u(_)(f.block.fontFamily),
|
|
111
111
|
onChange: p[3] ||= (e) => V("fontFamily", e.target.value || void 0)
|
|
112
|
-
}, [c("option", E,
|
|
112
|
+
}, [c("option", E, n(u(I).countdown.inheritFont), 1), (o(!0), a(l, null, t(f.fontFamilies, (e) => (o(), a("option", {
|
|
113
113
|
key: e.value,
|
|
114
114
|
value: e.value
|
|
115
|
-
},
|
|
115
|
+
}, n(e.label), 9, D))), 128))], 42, T)]),
|
|
116
116
|
_: 1
|
|
117
117
|
}, 8, ["label"]),
|
|
118
|
-
c("div", O, [
|
|
119
|
-
default:
|
|
118
|
+
c("div", O, [r(y, { label: u(I).countdown.digitFontSize }, {
|
|
119
|
+
default: e(() => [r(b, {
|
|
120
120
|
"model-value": f.block.digitFontSize,
|
|
121
121
|
min: 12,
|
|
122
122
|
max: 72,
|
|
@@ -124,8 +124,8 @@ var x = ["value"], S = ["value"], C = ["value"], w = { class: "tpl:grid tpl:grid
|
|
|
124
124
|
"onUpdate:modelValue": p[4] ||= (e) => V("digitFontSize", e)
|
|
125
125
|
}, null, 8, ["model-value"])]),
|
|
126
126
|
_: 1
|
|
127
|
-
}, 8, ["label"]),
|
|
128
|
-
default:
|
|
127
|
+
}, 8, ["label"]), r(y, { label: u(I).countdown.labelFontSize }, {
|
|
128
|
+
default: e(() => [r(b, {
|
|
129
129
|
"model-value": f.block.labelFontSize,
|
|
130
130
|
min: 8,
|
|
131
131
|
max: 24,
|
|
@@ -134,61 +134,61 @@ var x = ["value"], S = ["value"], C = ["value"], w = { class: "tpl:grid tpl:grid
|
|
|
134
134
|
}, null, 8, ["model-value"])]),
|
|
135
135
|
_: 1
|
|
136
136
|
}, 8, ["label"])]),
|
|
137
|
-
c("div", k, [
|
|
138
|
-
default:
|
|
137
|
+
c("div", k, [r(y, { label: u(I).countdown.digitColor }, {
|
|
138
|
+
default: e(() => [r(m, {
|
|
139
139
|
"model-value": f.block.digitColor,
|
|
140
140
|
"onUpdate:modelValue": p[6] ||= (e) => V("digitColor", e)
|
|
141
141
|
}, null, 8, ["model-value"])]),
|
|
142
142
|
_: 1
|
|
143
|
-
}, 8, ["label"]),
|
|
144
|
-
default:
|
|
143
|
+
}, 8, ["label"]), r(y, { label: u(I).countdown.labelColor }, {
|
|
144
|
+
default: e(() => [r(m, {
|
|
145
145
|
"model-value": f.block.labelColor,
|
|
146
146
|
"onUpdate:modelValue": p[7] ||= (e) => V("labelColor", e)
|
|
147
147
|
}, null, 8, ["model-value"])]),
|
|
148
148
|
_: 1
|
|
149
149
|
}, 8, ["label"])]),
|
|
150
|
-
|
|
151
|
-
default:
|
|
150
|
+
r(y, { label: u(I).countdown.background }, {
|
|
151
|
+
default: e(() => [r(m, {
|
|
152
152
|
"model-value": f.block.backgroundColor,
|
|
153
153
|
"onUpdate:modelValue": p[8] ||= (e) => V("backgroundColor", e)
|
|
154
154
|
}, null, 8, ["model-value"])]),
|
|
155
155
|
_: 1
|
|
156
156
|
}, 8, ["label"]),
|
|
157
|
-
|
|
158
|
-
default:
|
|
159
|
-
key:
|
|
157
|
+
r(y, { label: u(I).countdown.labels }, {
|
|
158
|
+
default: e(() => [c("div", A, [(o(!0), a(l, null, t(B.value, (e) => (o(), a("input", {
|
|
159
|
+
key: e.unit,
|
|
160
160
|
type: "text",
|
|
161
|
-
class:
|
|
162
|
-
value: f.block[
|
|
163
|
-
placeholder:
|
|
164
|
-
onInput: (
|
|
161
|
+
class: s(u(h)),
|
|
162
|
+
value: f.block[e.labelKey],
|
|
163
|
+
placeholder: u(I).countdown[e.translationKey],
|
|
164
|
+
onInput: (t) => V(e.labelKey, t.target.value)
|
|
165
165
|
}, null, 42, j))), 128))])]),
|
|
166
166
|
_: 1
|
|
167
167
|
}, 8, ["label"]),
|
|
168
|
-
|
|
169
|
-
default:
|
|
168
|
+
r(y, { label: u(I).countdown.expiry }, {
|
|
169
|
+
default: e(() => [c("input", {
|
|
170
170
|
type: "text",
|
|
171
|
-
class:
|
|
171
|
+
class: s(u(h)),
|
|
172
172
|
value: f.block.expiredMessage,
|
|
173
|
-
placeholder:
|
|
173
|
+
placeholder: u(I).countdown.expiredMessagePlaceholder,
|
|
174
174
|
onInput: p[9] ||= (e) => V("expiredMessage", e.target.value)
|
|
175
175
|
}, null, 42, M)]),
|
|
176
176
|
_: 1
|
|
177
177
|
}, 8, ["label"]),
|
|
178
|
-
|
|
179
|
-
default:
|
|
178
|
+
r(y, { label: u(I).countdown.expiredImageUrl }, {
|
|
179
|
+
default: e(() => [c("input", {
|
|
180
180
|
type: "url",
|
|
181
|
-
class:
|
|
181
|
+
class: s(u(h)),
|
|
182
182
|
value: f.block.expiredImageUrl,
|
|
183
183
|
placeholder: "https://...",
|
|
184
184
|
onInput: p[10] ||= (e) => V("expiredImageUrl", e.target.value)
|
|
185
185
|
}, null, 42, N)]),
|
|
186
186
|
_: 1
|
|
187
187
|
}, 8, ["label"]),
|
|
188
|
-
|
|
188
|
+
r(g, {
|
|
189
189
|
class: "tpl:mb-3.5 tpl:text-[12px] tpl:text-[var(--tpl-text)]",
|
|
190
190
|
"model-value": f.block.hideOnExpiry,
|
|
191
|
-
label:
|
|
191
|
+
label: u(I).countdown.hideOnExpiry,
|
|
192
192
|
"onUpdate:modelValue": p[11] ||= (e) => V("hideOnExpiry", e)
|
|
193
193
|
}, null, 8, ["model-value", "label"])
|
|
194
194
|
], 64));
|
|
@@ -0,0 +1,359 @@
|
|
|
1
|
+
import { $ as e, A as t, C as n, D as r, I as ee, N as te, Nt as i, _ as a, c as o, d as s, f as c, g as l, j as u, jt as ne, l as d, r as f, st as p, u as m, v as re, y as ie, z as h } from "./vue.runtime.esm-bundler-CnEeTfhs.js";
|
|
2
|
+
import { G as ae, K as oe, X as se, g as ce, t as le } from "./keys-BgRERHzu.js";
|
|
3
|
+
import { t as ue } from "./useI18n-BBrHTdu8.js";
|
|
4
|
+
import { t as g } from "./createLucideIcon-CvhTA2KG.js";
|
|
5
|
+
import { t as de } from "./check-BZ8o0eet.js";
|
|
6
|
+
import { t as fe } from "./circle-alert-CShJwVFv.js";
|
|
7
|
+
import { t as pe } from "./info-Cxi3-Kh9.js";
|
|
8
|
+
import { a as me, n as he, o as ge, r as _e, t as ve } from "./useScrollToBlock-BSyAV4pk.js";
|
|
9
|
+
import { t as _ } from "./sparkles-CdaTtvoz.js";
|
|
10
|
+
import { t as ye } from "./square-BbCROH_f.js";
|
|
11
|
+
import { t as be } from "./triangle-alert-7_oaitpf.js";
|
|
12
|
+
var xe = g({
|
|
13
|
+
name: "arrow-right",
|
|
14
|
+
size: 24,
|
|
15
|
+
node: [["path", {
|
|
16
|
+
d: "M5 12h14",
|
|
17
|
+
key: "1ays0h"
|
|
18
|
+
}], ["path", {
|
|
19
|
+
d: "m12 5 7 7-7 7",
|
|
20
|
+
key: "xquz4c"
|
|
21
|
+
}]]
|
|
22
|
+
}), Se = g({
|
|
23
|
+
name: "wrench",
|
|
24
|
+
size: 24,
|
|
25
|
+
node: [["path", {
|
|
26
|
+
d: "M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",
|
|
27
|
+
key: "1ngwbx"
|
|
28
|
+
}]]
|
|
29
|
+
}), Ce = { class: "tpl:flex tpl:flex-col tpl:gap-4 tpl:p-4" }, we = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Te = ["title"], Ee = {
|
|
30
|
+
key: 0,
|
|
31
|
+
class: "tpl:flex tpl:flex-col tpl:gap-2 tpl:text-xs"
|
|
32
|
+
}, De = { class: "tpl:m-0 tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Oe = { class: "tpl:m-0 tpl:text-[var(--tpl-text-muted)]" }, ke = ["disabled"], Ae = {
|
|
33
|
+
key: 0,
|
|
34
|
+
"data-testid": "issue-size-result",
|
|
35
|
+
class: "tpl:m-0 tpl:flex tpl:items-center tpl:gap-1 tpl:text-[var(--tpl-text-muted)]"
|
|
36
|
+
}, je = {
|
|
37
|
+
key: 1,
|
|
38
|
+
role: "status",
|
|
39
|
+
class: "tpl:m-0 tpl:text-[var(--tpl-text-muted)]"
|
|
40
|
+
}, Me = {
|
|
41
|
+
key: 2,
|
|
42
|
+
role: "alert",
|
|
43
|
+
class: "tpl:m-0 tpl:text-[var(--tpl-danger)]"
|
|
44
|
+
}, Ne = {
|
|
45
|
+
key: 1,
|
|
46
|
+
role: "status",
|
|
47
|
+
"data-testid": "issue-ai-status",
|
|
48
|
+
class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
49
|
+
}, Pe = ["disabled"], Fe = {
|
|
50
|
+
key: 4,
|
|
51
|
+
class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
52
|
+
}, Ie = {
|
|
53
|
+
key: 5,
|
|
54
|
+
class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
55
|
+
}, Le = { class: "tpl:ml-auto tpl:font-normal tpl:opacity-70" }, Re = {
|
|
56
|
+
key: 1,
|
|
57
|
+
class: "tpl:m-0 tpl:mb-3 tpl:flex tpl:list-none tpl:flex-col tpl:gap-2 tpl:p-0"
|
|
58
|
+
}, ze = { class: "tpl:m-0 tpl:mb-2 tpl:text-xs tpl:text-[var(--tpl-text)]" }, Be = { class: "tpl:m-0 tpl:mb-2 tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Ve = { class: "tpl:m-0 tpl:mb-2 tpl:font-mono tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, He = { class: "tpl:flex tpl:flex-wrap tpl:items-center tpl:gap-1.5" }, Ue = ["href"], We = ["onClick"], Ge = ["title", "onClick"], Ke = ["disabled", "onClick"], qe = ["disabled", "onClick"], Je = {
|
|
59
|
+
key: 1,
|
|
60
|
+
role: "status",
|
|
61
|
+
class: "tpl:m-0 tpl:mt-2 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
62
|
+
}, v = /* @__PURE__ */ ie({
|
|
63
|
+
__name: "IssuesPanel",
|
|
64
|
+
setup(ie) {
|
|
65
|
+
let g = re(() => import("./AiAltTextPopover-DawbUywc.js")), v = re(() => import("./AiAltTextReview-9ySsXOTU.js")), y = e(null), b = e(null);
|
|
66
|
+
function Ye() {
|
|
67
|
+
A && !A.busy.value && (D(), y.value = [...Q.value]);
|
|
68
|
+
}
|
|
69
|
+
async function x() {
|
|
70
|
+
y.value = null, await r(), !B && S.value === null && (b.value ?? w.value)?.focus();
|
|
71
|
+
}
|
|
72
|
+
let S = e(null), Xe = o(() => S.value?.blockId ?? null), C = e(null), w = e(null), T = null;
|
|
73
|
+
function E(e) {
|
|
74
|
+
let t = S.value;
|
|
75
|
+
return t !== null && t.blockId === e.blockId && t.ruleId === e.ruleId && t.severity === e.severity;
|
|
76
|
+
}
|
|
77
|
+
function Ze(e, t) {
|
|
78
|
+
e.blockId && !E(e) && (y.value = null, C.value?.abort(), C.value = null, T = t.currentTarget, S.value = {
|
|
79
|
+
blockId: e.blockId,
|
|
80
|
+
ruleId: e.ruleId,
|
|
81
|
+
severity: e.severity
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
async function D(e = "button") {
|
|
85
|
+
if (S.value === null) return;
|
|
86
|
+
S.value = null, C.value?.abort(), C.value = null;
|
|
87
|
+
let t = T;
|
|
88
|
+
T = null, await r(), !(B || S.value !== null || y.value !== null) && (e === "button" && t?.isConnected ? t : w.value)?.focus();
|
|
89
|
+
}
|
|
90
|
+
function Qe(e, t) {
|
|
91
|
+
E(e) && (C.value = t);
|
|
92
|
+
}
|
|
93
|
+
let { t: O, format: k } = ue(), A = n(le, null), j = n(oe, null), M = n(ce, null), N = n(ae, null), $e = n(se, "en"), et = ve(), tt = o(() => !!N && !N.cloud && N.canRenderHtml() && N.options.disabled !== !0 && N.options.compatibility !== !1 && N.options.compatibility?.rules?.["compat.gmail-clipping"] !== "off"), P = e(!1), F = e(null), I = e(null), L = e(""), R = e(!1), z = 0, B = !1;
|
|
94
|
+
M && h(M.content, () => {
|
|
95
|
+
z++, F.value !== null && (R.value = !0);
|
|
96
|
+
}, { deep: !0 }), t(() => {
|
|
97
|
+
B = !0;
|
|
98
|
+
});
|
|
99
|
+
async function nt() {
|
|
100
|
+
if (!N || !tt.value || P.value) return;
|
|
101
|
+
let e = z;
|
|
102
|
+
P.value = !0, L.value = "";
|
|
103
|
+
try {
|
|
104
|
+
let t = await N.renderHtml(), n = await import("@templatical/quality");
|
|
105
|
+
if (B) return;
|
|
106
|
+
F.value = new TextEncoder().encode(t).byteLength, I.value = n.lintCompiledHtml(t, {
|
|
107
|
+
...N.options,
|
|
108
|
+
locale: N.options.locale ?? $e
|
|
109
|
+
})[0] ?? null, R.value = e !== z;
|
|
110
|
+
} catch (e) {
|
|
111
|
+
B || (L.value = e instanceof Error ? e.message : String(e));
|
|
112
|
+
} finally {
|
|
113
|
+
B || (P.value = !1);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
let V = o(() => [...j?.issues.value ?? [], ...I.value && !R.value ? [I.value] : []]), H = o(() => V.value.filter((e) => e.severity === "error")), U = o(() => V.value.filter((e) => e.severity === "warning")), W = o(() => V.value.filter((e) => e.severity === "info")), G = o(() => H.value.length + U.value.length + W.value.length), K = /* @__PURE__ */ new Set(), q = e(/* @__PURE__ */ new Set()), J = e(null), Y = (e) => JSON.stringify([e.ruleId, e.blockId]);
|
|
117
|
+
function X(e) {
|
|
118
|
+
let t = new Set(e.map(Y));
|
|
119
|
+
for (let e of q.value) t.has(e) || q.value.delete(e);
|
|
120
|
+
for (let e of K) t.has(e) && q.value.add(e);
|
|
121
|
+
K.clear();
|
|
122
|
+
}
|
|
123
|
+
j && h(j.issues, X, { flush: "sync" }), A && (h([
|
|
124
|
+
A.templateId,
|
|
125
|
+
A.isAvailable,
|
|
126
|
+
() => M?.loadVersion?.value
|
|
127
|
+
], () => {
|
|
128
|
+
y.value !== null && x();
|
|
129
|
+
}, { flush: "sync" }), h(A.templateSession, () => {
|
|
130
|
+
D();
|
|
131
|
+
}, { flush: "sync" }), h(A.sessionIdentity, () => {
|
|
132
|
+
K.clear(), q.value.clear();
|
|
133
|
+
}, { flush: "sync" }));
|
|
134
|
+
let Z = o(() => {
|
|
135
|
+
let e = /* @__PURE__ */ new Set();
|
|
136
|
+
return new Set([
|
|
137
|
+
...H.value,
|
|
138
|
+
...U.value,
|
|
139
|
+
...W.value
|
|
140
|
+
].filter((t) => {
|
|
141
|
+
let n = Y(t);
|
|
142
|
+
return !e.has(n) && (e.add(n), !0);
|
|
143
|
+
}));
|
|
144
|
+
}), rt = o(() => {
|
|
145
|
+
let e = /* @__PURE__ */ new Set();
|
|
146
|
+
return new Set([
|
|
147
|
+
...H.value,
|
|
148
|
+
...U.value,
|
|
149
|
+
...W.value
|
|
150
|
+
].filter((t) => !t.blockId || !he.includes(t.ruleId) || e.has(t.blockId) ? !1 : (e.add(t.blockId), !0)));
|
|
151
|
+
}), Q = o(() => {
|
|
152
|
+
if (!M) return [];
|
|
153
|
+
let e = new Set(V.value.filter((e) => he.includes(e.ruleId)).map((e) => e.blockId).filter((e) => e !== null)), t = M.content.value.blocks;
|
|
154
|
+
return [...e].flatMap((e) => {
|
|
155
|
+
let n = M.findBlockLocation(e);
|
|
156
|
+
return n ? [{
|
|
157
|
+
id: e,
|
|
158
|
+
root: n.targetSectionId ? t.findIndex((e) => e.id === n.targetSectionId) : n.index,
|
|
159
|
+
column: n.columnIndex ?? -1,
|
|
160
|
+
index: n.index
|
|
161
|
+
}] : [];
|
|
162
|
+
}).sort((e, t) => e.root - t.root || e.column - t.column || e.index - t.index).map(({ id: e }) => e);
|
|
163
|
+
});
|
|
164
|
+
h(() => S.value === null || V.value.some(E) && (!M || M.findBlockLocation(S.value.blockId) !== null), (e) => {
|
|
165
|
+
e || D("panel");
|
|
166
|
+
}, { flush: "sync" });
|
|
167
|
+
function it(e) {
|
|
168
|
+
return !!A && A.isAvailable.value && A.has("altText") && rt.value.has(e);
|
|
169
|
+
}
|
|
170
|
+
function $(e) {
|
|
171
|
+
return !!A && A.isAvailable.value && A.has("fixFinding") && !e.fix && _e.includes(e.ruleId) && Z.value.has(e);
|
|
172
|
+
}
|
|
173
|
+
async function at(e) {
|
|
174
|
+
if (!$(e) || !A || A.busy.value || J.value !== null) return;
|
|
175
|
+
let t = Y(e), n = A.sessionIdentity.value;
|
|
176
|
+
J.value = t, q.value.delete(t);
|
|
177
|
+
try {
|
|
178
|
+
let r = await A.fix(me(e));
|
|
179
|
+
!B && A.sessionIdentity.value === n && !r.failed && (K.add(t), j?.contentVersion && j.lintVersion.value === j.contentVersion.value && X(j.issues.value));
|
|
180
|
+
} finally {
|
|
181
|
+
J.value = null;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
function ot(e) {
|
|
185
|
+
M && e.blockId && (M.selectBlock(e.blockId), et(e.blockId));
|
|
186
|
+
}
|
|
187
|
+
function st(e) {
|
|
188
|
+
j?.applyFix(e);
|
|
189
|
+
}
|
|
190
|
+
return (e, t) => (u(), c("div", Ce, [
|
|
191
|
+
d("header", we, [
|
|
192
|
+
a(p(ge), {
|
|
193
|
+
size: 16,
|
|
194
|
+
"stroke-width": 1.5
|
|
195
|
+
}),
|
|
196
|
+
d("h3", {
|
|
197
|
+
ref_key: "panelHeading",
|
|
198
|
+
ref: w,
|
|
199
|
+
tabindex: "-1",
|
|
200
|
+
class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
|
|
201
|
+
}, i(p(O).issues.panelTitle), 513),
|
|
202
|
+
G.value > 0 ? (u(), c("span", {
|
|
203
|
+
key: 0,
|
|
204
|
+
class: "tpl:ml-auto tpl:rounded-full tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]",
|
|
205
|
+
title: p(k)(p(O).issues.issueCountTooltip, { count: G.value })
|
|
206
|
+
}, i(G.value), 9, Te)) : s("", !0)
|
|
207
|
+
]),
|
|
208
|
+
tt.value ? (u(), c("section", Ee, [
|
|
209
|
+
d("h4", De, i(p(O).issues.emailSize), 1),
|
|
210
|
+
d("p", Oe, i(p(O).issues.sizeExplainer), 1),
|
|
211
|
+
d("button", {
|
|
212
|
+
type: "button",
|
|
213
|
+
"data-testid": "issue-check-size",
|
|
214
|
+
disabled: P.value,
|
|
215
|
+
class: "tpl:w-full tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2.5 tpl:py-1.5 tpl:font-medium tpl:text-[var(--tpl-text)] tpl:hover:bg-[var(--tpl-bg-active)] tpl:focus-visible:outline-2 tpl:focus-visible:outline-[var(--tpl-primary)] tpl:disabled:opacity-60",
|
|
216
|
+
onClick: nt
|
|
217
|
+
}, i(P.value ? p(O).issues.checkingSize : R.value ? p(O).issues.checkSizeAgain : p(O).issues.checkSize), 9, ke),
|
|
218
|
+
F.value === null ? s("", !0) : (u(), c("p", Ae, [!I.value && !R.value ? (u(), m(p(de), {
|
|
219
|
+
key: 0,
|
|
220
|
+
size: 14,
|
|
221
|
+
"stroke-width": 2,
|
|
222
|
+
"aria-hidden": "true"
|
|
223
|
+
})) : s("", !0), l(" " + i(p(k)(!I.value && !R.value ? p(O).issues.sizePass : p(O).issues.sizeResult, { size: new Intl.NumberFormat(p($e), {
|
|
224
|
+
minimumFractionDigits: 1,
|
|
225
|
+
maximumFractionDigits: 1
|
|
226
|
+
}).format(F.value / 1024) })), 1)])),
|
|
227
|
+
R.value ? (u(), c("p", je, i(p(O).issues.sizeOutdated), 1)) : s("", !0),
|
|
228
|
+
L.value ? (u(), c("p", Me, i(p(k)(p(O).issues.sizeError, { error: L.value })), 1)) : s("", !0)
|
|
229
|
+
])) : s("", !0),
|
|
230
|
+
J.value !== null || C.value !== null ? (u(), c("div", Ne, [d("span", null, i(C.value ? p(O).ai.altText.drafting : p(O).ai.fix.fixing), 1), d("button", {
|
|
231
|
+
type: "button",
|
|
232
|
+
"data-testid": "issue-ai-stop",
|
|
233
|
+
class: "tpl:flex tpl:items-center tpl:gap-1 tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)] tpl:focus-visible:outline-2 tpl:focus-visible:outline-[var(--tpl-primary)]",
|
|
234
|
+
onClick: t[0] ||= (e) => C.value ? C.value.abort() : p(A)?.stop()
|
|
235
|
+
}, [a(p(ye), {
|
|
236
|
+
size: 10,
|
|
237
|
+
"stroke-width": 2
|
|
238
|
+
}), l(" " + i(p(O).ai.chat.stop), 1)])])) : s("", !0),
|
|
239
|
+
p(A)?.isAvailable.value && p(A).has("altText") && Q.value.length >= 2 ? (u(), c("button", {
|
|
240
|
+
key: 2,
|
|
241
|
+
ref_key: "bulkButton",
|
|
242
|
+
ref: b,
|
|
243
|
+
type: "button",
|
|
244
|
+
"data-testid": "issue-ai-alt-text-bulk",
|
|
245
|
+
disabled: p(A).busy.value,
|
|
246
|
+
class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2.5 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)] tpl:focus-visible:outline-2 tpl:focus-visible:outline-[var(--tpl-primary)] tpl:disabled:opacity-60",
|
|
247
|
+
onClick: Ye
|
|
248
|
+
}, [a(p(_), {
|
|
249
|
+
size: 12,
|
|
250
|
+
"stroke-width": 2,
|
|
251
|
+
"aria-hidden": "true"
|
|
252
|
+
}), l(" " + i(p(k)(p(O).ai.altText.bulk, { count: Q.value.length })), 1)], 8, Pe)) : s("", !0),
|
|
253
|
+
y.value !== null && p(A) ? (u(), m(p(v), {
|
|
254
|
+
key: 3,
|
|
255
|
+
"block-ids": y.value,
|
|
256
|
+
feature: p(A),
|
|
257
|
+
onClose: x
|
|
258
|
+
}, null, 8, ["block-ids", "feature"])) : s("", !0),
|
|
259
|
+
!p(j) || p(j).unavailable.value ? (u(), c("div", Fe)) : G.value === 0 ? (u(), c("div", Ie, i(p(O).issues.emptyState), 1)) : (u(!0), c(f, { key: 6 }, te([
|
|
260
|
+
{
|
|
261
|
+
key: "errors",
|
|
262
|
+
title: p(O).issues.groupErrors,
|
|
263
|
+
icon: p(fe),
|
|
264
|
+
items: H.value,
|
|
265
|
+
tone: "tpl:text-[var(--tpl-danger)]"
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
key: "warnings",
|
|
269
|
+
title: p(O).issues.groupWarnings,
|
|
270
|
+
icon: p(be),
|
|
271
|
+
items: U.value,
|
|
272
|
+
tone: "tpl:text-[var(--tpl-warning)]"
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
key: "info",
|
|
276
|
+
title: p(O).issues.groupInfo,
|
|
277
|
+
icon: p(pe),
|
|
278
|
+
items: W.value,
|
|
279
|
+
tone: "tpl:text-[var(--tpl-text-muted)]"
|
|
280
|
+
}
|
|
281
|
+
], (e) => (u(), c("section", { key: e.key }, [e.items.length > 0 ? (u(), c("header", {
|
|
282
|
+
key: 0,
|
|
283
|
+
class: ne(["tpl:mb-2 tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:font-semibold tpl:uppercase tpl:tracking-wide", e.tone])
|
|
284
|
+
}, [
|
|
285
|
+
(u(), m(ee(e.icon), {
|
|
286
|
+
size: 12,
|
|
287
|
+
"stroke-width": 2
|
|
288
|
+
})),
|
|
289
|
+
l(" " + i(e.title) + " ", 1),
|
|
290
|
+
d("span", Le, i(e.items.length), 1)
|
|
291
|
+
], 2)) : s("", !0), e.items.length > 0 ? (u(), c("ul", Re, [(u(!0), c(f, null, te(e.items, (e) => (u(), c("li", {
|
|
292
|
+
key: `${e.ruleId}-${e.blockId ?? "template"}`,
|
|
293
|
+
class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3"
|
|
294
|
+
}, [
|
|
295
|
+
d("p", ze, i(e.message), 1),
|
|
296
|
+
d("p", Be, i(e.suggestion), 1),
|
|
297
|
+
d("p", Ve, i(e.ruleId), 1),
|
|
298
|
+
d("div", He, [
|
|
299
|
+
d("a", {
|
|
300
|
+
href: e.reference,
|
|
301
|
+
target: "_blank",
|
|
302
|
+
rel: "noopener",
|
|
303
|
+
class: "tpl:inline-block tpl:text-xs tpl:text-[var(--tpl-primary)] tpl:underline tpl:underline-offset-2 tpl:focus-visible:outline-2 tpl:focus-visible:outline-[var(--tpl-primary)]"
|
|
304
|
+
}, i(p(O).issues.learnMore), 9, Ue),
|
|
305
|
+
e.blockId ? (u(), c("button", {
|
|
306
|
+
key: 0,
|
|
307
|
+
type: "button",
|
|
308
|
+
"data-testid": "issue-jump",
|
|
309
|
+
class: "tpl:flex tpl:items-center tpl:gap-1 tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]",
|
|
310
|
+
onClick: (t) => ot(e)
|
|
311
|
+
}, [a(p(xe), {
|
|
312
|
+
size: 10,
|
|
313
|
+
"stroke-width": 2
|
|
314
|
+
}), l(" " + i(p(O).issues.jump), 1)], 8, We)) : s("", !0),
|
|
315
|
+
e.fix ? (u(), c("button", {
|
|
316
|
+
key: 1,
|
|
317
|
+
type: "button",
|
|
318
|
+
class: "tpl:flex tpl:items-center tpl:gap-1 tpl:rounded-md tpl:bg-[var(--tpl-primary)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-on-primary)]",
|
|
319
|
+
title: e.fix.description,
|
|
320
|
+
onClick: (t) => st(e)
|
|
321
|
+
}, [a(p(Se), {
|
|
322
|
+
size: 10,
|
|
323
|
+
"stroke-width": 2
|
|
324
|
+
}), l(" " + i(p(O).issues.fix), 1)], 8, Ge)) : s("", !0),
|
|
325
|
+
it(e) ? (u(), c("button", {
|
|
326
|
+
key: 2,
|
|
327
|
+
type: "button",
|
|
328
|
+
"data-testid": "issue-ai-alt-text",
|
|
329
|
+
disabled: p(A).busy.value,
|
|
330
|
+
class: "tpl:flex tpl:items-center tpl:gap-1 tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)] tpl:focus-visible:outline-2 tpl:focus-visible:outline-[var(--tpl-primary)] tpl:disabled:opacity-60",
|
|
331
|
+
onClick: (t) => Ze(e, t)
|
|
332
|
+
}, [a(p(_), {
|
|
333
|
+
size: 10,
|
|
334
|
+
"stroke-width": 2
|
|
335
|
+
}), l(" " + i(p(O).ai.altText.button), 1)], 8, Ke)) : s("", !0),
|
|
336
|
+
$(e) ? (u(), c("button", {
|
|
337
|
+
key: 3,
|
|
338
|
+
type: "button",
|
|
339
|
+
"data-testid": "issue-ai-fix",
|
|
340
|
+
disabled: p(A).busy.value,
|
|
341
|
+
class: "tpl:flex tpl:items-center tpl:gap-1 tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)] tpl:focus-visible:outline-2 tpl:focus-visible:outline-[var(--tpl-primary)] tpl:disabled:opacity-60",
|
|
342
|
+
onClick: (t) => at(e)
|
|
343
|
+
}, [a(p(_), {
|
|
344
|
+
size: 10,
|
|
345
|
+
"stroke-width": 2
|
|
346
|
+
}), l(" " + i(p(O).ai.fix.button), 1)], 8, qe)) : s("", !0)
|
|
347
|
+
]),
|
|
348
|
+
E(e) && Z.value.has(e) ? (u(), m(p(g), {
|
|
349
|
+
key: JSON.stringify(S.value),
|
|
350
|
+
"block-id": Xe.value,
|
|
351
|
+
onClose: D,
|
|
352
|
+
onDrafting: (t) => Qe(e, t)
|
|
353
|
+
}, null, 8, ["block-id", "onDrafting"])) : s("", !0),
|
|
354
|
+
q.value.has(Y(e)) && Z.value.has(e) ? (u(), c("p", Je, i(p(O).ai.fix.stillFlagged), 1)) : s("", !0)
|
|
355
|
+
]))), 128))])) : s("", !0)]))), 128))
|
|
356
|
+
]));
|
|
357
|
+
}
|
|
358
|
+
});
|
|
359
|
+
export { v as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as e, j as t } from "./vue.runtime.esm-bundler-
|
|
1
|
+
import { f as e, j as t } from "./vue.runtime.esm-bundler-CnEeTfhs.js";
|
|
2
2
|
import { t as n } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
3
3
|
// src/components/LoadingTrack.vue
|
|
4
4
|
var r = {}, i = { class: "tpl-loading-track" };
|