@templatical/editor 0.52.1 → 0.54.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/AiAltTextPopover-NMJqQKvD.js +106 -0
- package/dist/{AiAltTextReview-9ySsXOTU.js → AiAltTextReview-Ci4zHwRc.js} +68 -66
- package/dist/AiChatPanel-C8SeEJRP.js +561 -0
- package/dist/{AiPanels-DqT4PgQ0.js → AiPanels-CR6zphjP.js} +6 -6
- package/dist/{AiRewriteMenu-28agTycW.js → AiRewriteMenu-CIHUnPud.js} +76 -105
- package/dist/BlockIssueBadge-DaPTq1RE.js +33 -0
- package/dist/BlockPreviewCanvas-B70RSavL.js +140 -0
- package/dist/{CloudHeaderExtras-QI82yF54.js → CloudHeaderExtras-XpjJjn3o.js} +4 -4
- package/dist/{CloudPanels-BKJaLkUN.js → CloudPanels-VpSQiLLL.js} +53 -53
- package/dist/CollaborationNotices-Cnx0XHzZ.js +65 -0
- package/dist/{CollaboratorBar-CXQqN3VP.js → CollaboratorBar-BaBoNhwB.js} +24 -24
- package/dist/CommentsPanel-Ck3QmqiC.js +16 -0
- package/dist/CommentsSidebar-CHknhOar.js +526 -0
- package/dist/{CountdownBlock-CU2yTWtF.js → CountdownBlock-BMezkFbJ.js} +15 -15
- package/dist/CountdownToolbar-CM4XNEuO.js +258 -0
- package/dist/IssuesPanel-1wGV0wiy.js +371 -0
- package/dist/LanguageMenu-d2GlX67r.js +403 -0
- package/dist/{LoadingTrack-DM4g6j7b.js → LoadingTrack-BG8cg9xi.js} +2 -2
- package/dist/LocaleNotices-WzsYtBRs.js +46 -0
- package/dist/LogicTagInsertButton-DgTJ6Lvx.js +1096 -0
- package/dist/{MediaEditModal-Dy08GEwE.js → MediaEditModal-C3U9Mi31.js} +451 -451
- package/dist/{MediaPanels-BgEp7iCp.js → MediaPanels-CGmk9ufe.js} +4 -4
- package/dist/{MergeTagInput-B9dtUthD.js → MergeTagInput-B_51YcQO.js} +30 -30
- package/dist/{MergeTagModeToggle-DxujhYJ4.js → MergeTagModeToggle-D3Q2z317.js} +49 -49
- package/dist/MergeTagTextarea-DZz1L9DE.js +126 -0
- package/dist/ParagraphEditor-CI68PYDL.js +825 -0
- package/dist/{RestoreVersionDialog-C4s_JYCx.js → RestoreVersionDialog-DcuhpOIz.js} +23 -23
- package/dist/{RichTextEditorContent-o6HmE8GR.js → RichTextEditorContent-Dstovi0m.js} +47 -47
- package/dist/{SaveBlockDialog-CWLrly6l.js → SaveBlockDialog-vuwvoi-d.js} +86 -86
- package/dist/{cdn/chunks/SavedBlocksBrowserModal-BPYcRoGa.js → SavedBlocksBrowserModal-DUJm0dOv.js} +135 -132
- package/dist/{SavedBlocksPanels-BE1N9rNZ.js → SavedBlocksPanels-BiMXQ5lY.js} +9 -9
- package/dist/{SavedBlocksPickBar-Dwl94xhP.js → SavedBlocksPickBar-CAstZfG7.js} +15 -15
- package/dist/TemplateSettings-Baar78_s.js +294 -0
- package/dist/TestEmailModal-Bl_GHdrN.js +212 -0
- package/dist/{TestEmailPanel-DaFjP9QK.js → TestEmailPanel-CpTBF7B5.js} +4 -4
- package/dist/TitleEditor-DkbEDAZB.js +202 -0
- package/dist/ToggleSwitch-R3wCCYE6.js +43 -0
- package/dist/Toolbar-bOZ_eq7X.js +3711 -0
- package/dist/{TplModal-DLMssVlt.js → TplModal-wk2gLa7_.js} +17 -17
- package/dist/{VersionHistoryMenu-BkbYUs0Q.js → VersionHistoryMenu-BnP0EyLl.js} +39 -39
- package/dist/{VersionHistoryPanels-DP7HaYWv.js → VersionHistoryPanels-Cq2rFKIX.js} +5 -5
- package/dist/VersionPreviewBanner-BPP939cD.js +37 -0
- package/dist/WrapperBlock-cWT_nZgQ.js +44 -0
- package/dist/{blockTypeIcons-BHjlPnPf.js → blockTypeIcons-BUyPZ7Su.js} +7 -7
- package/dist/bundle-stats.json +8 -8
- package/dist/{cdn/chunks/ca-CD-Kt1qz.js → ca-DOuIxWRv.js} +114 -2
- package/dist/cdn/chunks/AiAltTextPopover-Cnc_kUmb.js +107 -0
- package/dist/cdn/chunks/AiAltTextPopover-Cnc_kUmb.js.map +1 -0
- package/dist/cdn/chunks/{AiAltTextReview-BGLLSKLm.js → AiAltTextReview-DPeSY-7r.js} +70 -68
- package/dist/cdn/chunks/AiAltTextReview-DPeSY-7r.js.map +1 -0
- package/dist/cdn/chunks/AiChatPanel-By8Uo1nH.js +487 -0
- package/dist/cdn/chunks/AiChatPanel-By8Uo1nH.js.map +1 -0
- package/dist/cdn/chunks/{AiPanels-0wBarZSH.js → AiPanels-BblCSkQy.js} +11 -11
- package/dist/cdn/chunks/{AiPanels-0wBarZSH.js.map → AiPanels-BblCSkQy.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-qf-cfEpy.js → AiRewriteMenu-C4btyN4W.js} +79 -79
- package/dist/cdn/chunks/AiRewriteMenu-C4btyN4W.js.map +1 -0
- package/dist/cdn/chunks/BlockIssueBadge-D3Plo_wt.js +34 -0
- package/dist/cdn/chunks/BlockIssueBadge-D3Plo_wt.js.map +1 -0
- package/dist/cdn/chunks/BlockPreviewCanvas-CTKmBPsq.js +142 -0
- package/dist/cdn/chunks/{BlockPreviewCanvas-DGBh6mqe.js.map → BlockPreviewCanvas-CTKmBPsq.js.map} +1 -1
- package/dist/cdn/chunks/{CloudHeaderExtras-BMNK_F9p.js → CloudHeaderExtras-BtqdN777.js} +4 -4
- package/dist/cdn/chunks/{CloudHeaderExtras-BMNK_F9p.js.map → CloudHeaderExtras-BtqdN777.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-JMWIoVWh.js → CloudPanels-COU26R83.js} +45 -45
- package/dist/cdn/chunks/{CloudPanels-JMWIoVWh.js.map → CloudPanels-COU26R83.js.map} +1 -1
- package/dist/cdn/chunks/CollaborationNotices-DraFUhyo.js +67 -0
- package/dist/cdn/chunks/CollaborationNotices-DraFUhyo.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-CXByAoUz.js → CollaboratorBar-0OEH3hrj.js} +17 -17
- package/dist/cdn/chunks/{CollaboratorBar-CXByAoUz.js.map → CollaboratorBar-0OEH3hrj.js.map} +1 -1
- package/dist/cdn/chunks/CommentsPanel-tZZswofV.js +18 -0
- package/dist/cdn/chunks/{CommentsPanel-DoJnKLXI.js.map → CommentsPanel-tZZswofV.js.map} +1 -1
- package/dist/cdn/chunks/CommentsSidebar-7Hfl3Hdj.js +496 -0
- package/dist/cdn/chunks/CommentsSidebar-7Hfl3Hdj.js.map +1 -0
- package/dist/cdn/chunks/{CountdownBlock-BqRw147R.js → CountdownBlock-CjMhMhnv.js} +22 -22
- package/dist/cdn/chunks/{CountdownBlock-BqRw147R.js.map → CountdownBlock-CjMhMhnv.js.map} +1 -1
- package/dist/cdn/chunks/CountdownToolbar-CNgsNL5-.js +260 -0
- package/dist/cdn/chunks/CountdownToolbar-CNgsNL5-.js.map +1 -0
- package/dist/cdn/chunks/{IssuesPanel-C7LfxaAY.js → IssuesPanel-Duic0mIs.js} +133 -121
- package/dist/cdn/chunks/IssuesPanel-Duic0mIs.js.map +1 -0
- package/dist/cdn/chunks/LanguageMenu-B1Aue_lf.js +359 -0
- package/dist/cdn/chunks/LanguageMenu-B1Aue_lf.js.map +1 -0
- package/dist/cdn/chunks/{LoadingTrack-CZuLTazv.js → LoadingTrack-DUYcDHOV.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-CZuLTazv.js.map → LoadingTrack-DUYcDHOV.js.map} +1 -1
- package/dist/cdn/chunks/LocaleNotices-8J2DRWeg.js +47 -0
- package/dist/cdn/chunks/LocaleNotices-8J2DRWeg.js.map +1 -0
- package/dist/{LogicTagInsertButton-CfscnwCn.js → cdn/chunks/LogicTagInsertButton-Bhvi0nWz.js} +422 -449
- package/dist/cdn/chunks/LogicTagInsertButton-Bhvi0nWz.js.map +1 -0
- package/dist/cdn/chunks/{MediaEditModal-Cpcod6_U.js → MediaEditModal-Dz972UFx.js} +421 -421
- package/dist/cdn/chunks/MediaEditModal-Dz972UFx.js.map +1 -0
- package/dist/cdn/chunks/{MediaPanels-BIdcW_1f.js → MediaPanels-C6Hqtp1H.js} +5 -5
- package/dist/cdn/chunks/{MediaPanels-BIdcW_1f.js.map → MediaPanels-C6Hqtp1H.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-BvWg8o5E.js → MergeTagInput-CrhZm-AW.js} +28 -28
- package/dist/cdn/chunks/{MergeTagInput-BvWg8o5E.js.map → MergeTagInput-CrhZm-AW.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-BgKEVUtV.js → MergeTagModeToggle-CWVtXLYa.js} +52 -52
- package/dist/cdn/chunks/MergeTagModeToggle-CWVtXLYa.js.map +1 -0
- package/dist/cdn/chunks/MergeTagTextarea-hTIBwX0F.js +128 -0
- package/dist/cdn/chunks/MergeTagTextarea-hTIBwX0F.js.map +1 -0
- package/dist/cdn/chunks/ParagraphEditor-B2UU1Q5I.js +660 -0
- package/dist/cdn/chunks/ParagraphEditor-B2UU1Q5I.js.map +1 -0
- package/dist/cdn/chunks/{RestoreVersionDialog-CjOdD2xj.js → RestoreVersionDialog-C1Y5Ewo_.js} +22 -22
- package/dist/cdn/chunks/{RestoreVersionDialog-CjOdD2xj.js.map → RestoreVersionDialog-C1Y5Ewo_.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-DNjR_sNN.js → RichTextEditorContent-up4AqL7D.js} +44 -44
- package/dist/cdn/chunks/{RichTextEditorContent-DNjR_sNN.js.map → RichTextEditorContent-up4AqL7D.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-CUhpawq0.js → SaveBlockDialog-B9lwEP_T.js} +77 -77
- package/dist/cdn/chunks/{SaveBlockDialog-CUhpawq0.js.map → SaveBlockDialog-B9lwEP_T.js.map} +1 -1
- package/dist/{SavedBlocksBrowserModal-CE8n4EBS.js → cdn/chunks/SavedBlocksBrowserModal-fAeHUyxb.js} +103 -106
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-BPYcRoGa.js.map → SavedBlocksBrowserModal-fAeHUyxb.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-C6--Bc81.js → SavedBlocksPanels-DRDTLDyZ.js} +9 -9
- package/dist/cdn/chunks/{SavedBlocksPanels-C6--Bc81.js.map → SavedBlocksPanels-DRDTLDyZ.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-DUavxpbU.js → SavedBlocksPickBar-B6b5z-o3.js} +16 -16
- package/dist/cdn/chunks/{SavedBlocksPickBar-DUavxpbU.js.map → SavedBlocksPickBar-B6b5z-o3.js.map} +1 -1
- package/dist/cdn/chunks/TemplateSettings-CWUpUKJb.js +266 -0
- package/dist/cdn/chunks/TemplateSettings-CWUpUKJb.js.map +1 -0
- package/dist/cdn/chunks/TestEmailModal-DQxnW5Q5.js +212 -0
- package/dist/cdn/chunks/TestEmailModal-DQxnW5Q5.js.map +1 -0
- package/dist/cdn/chunks/{TestEmailPanel-CcUpEpAn.js → TestEmailPanel-BcO_-16H.js} +5 -5
- package/dist/cdn/chunks/{TestEmailPanel-CcUpEpAn.js.map → TestEmailPanel-BcO_-16H.js.map} +1 -1
- package/dist/cdn/chunks/TitleEditor-pmycpmTd.js +202 -0
- package/dist/cdn/chunks/TitleEditor-pmycpmTd.js.map +1 -0
- package/dist/cdn/chunks/ToggleSwitch-BSkySwA1.js +45 -0
- package/dist/cdn/chunks/ToggleSwitch-BSkySwA1.js.map +1 -0
- package/dist/cdn/chunks/Toolbar-BlWVQRcA.js +3626 -0
- package/dist/cdn/chunks/Toolbar-BlWVQRcA.js.map +1 -0
- package/dist/cdn/chunks/{TplModal-CFPDgbwQ.js → TplModal-ClSSGX7a.js} +20 -20
- package/dist/cdn/chunks/{TplModal-CFPDgbwQ.js.map → TplModal-ClSSGX7a.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-BYlLRvRJ.js → VersionHistoryMenu-CZury5gU.js} +33 -33
- package/dist/cdn/chunks/{VersionHistoryMenu-BYlLRvRJ.js.map → VersionHistoryMenu-CZury5gU.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-C6SOVoiT.js → VersionHistoryPanels-B8GPBKMq.js} +6 -6
- package/dist/cdn/chunks/{VersionHistoryPanels-C6SOVoiT.js.map → VersionHistoryPanels-B8GPBKMq.js.map} +1 -1
- package/dist/cdn/chunks/VersionPreviewBanner-C4Ji8nu4.js +39 -0
- package/dist/cdn/chunks/VersionPreviewBanner-C4Ji8nu4.js.map +1 -0
- package/dist/cdn/chunks/WrapperBlock-BoUflYwY.js +46 -0
- package/dist/cdn/chunks/WrapperBlock-BoUflYwY.js.map +1 -0
- package/dist/cdn/chunks/{blockTypeIcons-D7FW7Ypo.js → blockTypeIcons-Cc6RJ27V.js} +5 -5
- package/dist/cdn/chunks/{blockTypeIcons-D7FW7Ypo.js.map → blockTypeIcons-Cc6RJ27V.js.map} +1 -1
- package/dist/{ca-CD-Kt1qz.js → cdn/chunks/ca-DOuIxWRv.js} +116 -0
- package/dist/cdn/chunks/ca-DOuIxWRv.js.map +1 -0
- package/dist/cdn/chunks/composables-C1KU4ZHw.js +3039 -0
- package/dist/cdn/chunks/composables-C1KU4ZHw.js.map +1 -0
- package/dist/cdn/chunks/{createCloudRuntime-Cth2JCEh.js → createCloudRuntime-C2Zs5F1O.js} +75 -73
- package/dist/cdn/chunks/createCloudRuntime-C2Zs5F1O.js.map +1 -0
- package/dist/{de-CeFJ6wbM.js → cdn/chunks/de-DaOUfYBX.js} +116 -0
- package/dist/cdn/chunks/de-DaOUfYBX.js.map +1 -0
- package/dist/cdn/chunks/{dist-8ym3y-pH.js → dist-BzXULHvI.js} +48 -48
- package/dist/cdn/chunks/{dist-8ym3y-pH.js.map → dist-BzXULHvI.js.map} +1 -1
- package/dist/cdn/chunks/{dist-BMzNabtD.js → dist-DqGgijFI.js} +114 -114
- package/dist/cdn/chunks/{dist-BMzNabtD.js.map → dist-DqGgijFI.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-Du8AUMFT.js → draggable-DepKdldn.js} +1491 -1486
- package/dist/cdn/chunks/draggable-DepKdldn.js.map +1 -0
- package/dist/cdn/chunks/{editor-modal-CyCe560f.js → editor-modal-erQEOHZN.js} +781 -781
- package/dist/cdn/chunks/{editor-modal-CyCe560f.js.map → editor-modal-erQEOHZN.js.map} +1 -1
- package/dist/cdn/chunks/en-B6tLGRHq.js +1 -0
- package/dist/{en-D14i5nFh.js → cdn/chunks/en-C0pHHMiR.js} +116 -0
- package/dist/cdn/chunks/en-C0pHHMiR.js.map +1 -0
- package/dist/{es-zDacbMhs.js → cdn/chunks/es-CxyEKr6n.js} +116 -0
- package/dist/cdn/chunks/es-CxyEKr6n.js.map +1 -0
- package/dist/cdn/chunks/{extensions-CFF2KWy-.js → extensions-DcMKZpzh.js} +59 -59
- package/dist/cdn/chunks/{extensions-CFF2KWy-.js.map → extensions-DcMKZpzh.js.map} +1 -1
- package/dist/{fr-CSgYtjOd.js → cdn/chunks/fr-CYbamiI6.js} +116 -0
- package/dist/cdn/chunks/fr-CYbamiI6.js.map +1 -0
- package/dist/cdn/chunks/{icons-okSPsLOa.js → icons-Da9GKjPx.js} +188 -147
- package/dist/cdn/chunks/icons-Da9GKjPx.js.map +1 -0
- package/dist/{ja-B7H3ID8O.js → cdn/chunks/ja-DfaIAoGI.js} +116 -0
- package/dist/cdn/chunks/ja-DfaIAoGI.js.map +1 -0
- package/dist/cdn/chunks/keys-CoQtCqNv.js +11 -0
- package/dist/cdn/chunks/keys-CoQtCqNv.js.map +1 -0
- package/dist/cdn/chunks/languageName-DEEOhDWI.js +12 -0
- package/dist/cdn/chunks/languageName-DEEOhDWI.js.map +1 -0
- package/dist/{nl-176ySmc5.js → cdn/chunks/nl-DkrB-VKZ.js} +116 -0
- package/dist/cdn/chunks/nl-DkrB-VKZ.js.map +1 -0
- package/dist/cdn/chunks/normalizeMergeTagMarkup-cC32Ox6A.js +290 -0
- package/dist/cdn/chunks/normalizeMergeTagMarkup-cC32Ox6A.js.map +1 -0
- package/dist/cdn/chunks/noticeTones-D7BPu-Le.js +16 -0
- package/dist/cdn/chunks/noticeTones-D7BPu-Le.js.map +1 -0
- package/dist/cdn/chunks/plural-CyxrJXL1.js +17 -0
- package/dist/cdn/chunks/plural-CyxrJXL1.js.map +1 -0
- package/dist/{preRenderCustomBlocks--_xc0XK3.js → cdn/chunks/preRenderCustomBlocks-f7GEKdvw.js} +5 -3
- package/dist/cdn/chunks/{preRenderCustomBlocks-BcXIz7oJ.js.map → preRenderCustomBlocks-f7GEKdvw.js.map} +1 -1
- package/dist/{pt-BR-dDlTwX18.js → cdn/chunks/pt-BR-CY5Ye7eP.js} +116 -0
- package/dist/cdn/chunks/pt-BR-CY5Ye7eP.js.map +1 -0
- package/dist/cdn/chunks/sanitizeHtml-WTfz9lZd.js +61 -0
- package/dist/cdn/chunks/sanitizeHtml-WTfz9lZd.js.map +1 -0
- package/dist/cdn/chunks/socialIcons-DeCYorUT.js +2638 -0
- package/dist/cdn/chunks/socialIcons-DeCYorUT.js.map +1 -0
- package/dist/cdn/chunks/{src-DEd87i_U.js → src-A_cKeTM_.js} +618 -461
- package/dist/cdn/chunks/src-A_cKeTM_.js.map +1 -0
- package/dist/cdn/chunks/src-BQUv2CYU.js +2606 -0
- package/dist/cdn/chunks/src-BQUv2CYU.js.map +1 -0
- package/dist/cdn/chunks/src-BWX_xVxO.js +671 -0
- package/dist/cdn/chunks/src-BWX_xVxO.js.map +1 -0
- package/dist/{styleConstants-B8xVRiwX.js → cdn/chunks/styleConstants-CgiNKdnc.js} +7 -5
- package/dist/cdn/chunks/styleConstants-CgiNKdnc.js.map +1 -0
- package/dist/cdn/chunks/templateSettingsFields-cjlP-jdw.js.map +1 -1
- package/dist/cdn/chunks/{tiptap-CbiTlECY.js → tiptap-Dipw_zOQ.js} +40 -40
- package/dist/cdn/chunks/{tiptap-CbiTlECY.js.map → tiptap-Dipw_zOQ.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-DY8_-ETE.js → useCloudI18n-Cc5NZqiI.js} +3 -3
- package/dist/cdn/chunks/{useCloudI18n-DY8_-ETE.js.map → useCloudI18n-Cc5NZqiI.js.map} +1 -1
- package/dist/cdn/chunks/useEditorRoot-D_LuZ_hE.js +9 -0
- package/dist/cdn/chunks/{useEditorRoot-vjZJwKrV.js.map → useEditorRoot-D_LuZ_hE.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-D8pY4LTq.js → useI18n-BnJYydPv.js} +3 -3
- package/dist/cdn/chunks/{useI18n-D8pY4LTq.js.map → useI18n-BnJYydPv.js.map} +1 -1
- package/dist/cdn/chunks/useLocalizedDisplay-aGfnO90D.js +33 -0
- package/dist/cdn/chunks/useLocalizedDisplay-aGfnO90D.js.map +1 -0
- package/dist/cdn/chunks/{useLogicTag-DBJDtpKA.js → useLogicTag-DtYe8HIq.js} +5 -5
- package/dist/cdn/chunks/{useLogicTag-DBJDtpKA.js.map → useLogicTag-DtYe8HIq.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-B-aG--s1.js → useMergeTag-B8ULmsnp.js} +6 -6
- package/dist/cdn/chunks/{useMergeTag-B-aG--s1.js.map → useMergeTag-B8ULmsnp.js.map} +1 -1
- package/dist/cdn/chunks/usePopoverPosition-BWAXWeBv.js +78 -0
- package/dist/cdn/chunks/usePopoverPosition-BWAXWeBv.js.map +1 -0
- package/dist/cdn/chunks/{useScrollToBlock-vjQ0fe-L.js → useScrollToBlock-Ct1AwLD-.js} +5 -5
- package/dist/cdn/chunks/useScrollToBlock-Ct1AwLD-.js.map +1 -0
- package/dist/cdn/chunks/{withCurrentFont-hZTvYBHO.js → withCurrentFont-MK8ga9q9.js} +2 -2
- package/dist/cdn/chunks/{withCurrentFont-hZTvYBHO.js.map → withCurrentFont-MK8ga9q9.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +2189 -1495
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-BZ8o0eet.js → check-XMnOOIEC.js} +1 -1
- package/dist/{chevron-down-DfAAfILv.js → chevron-down-DmamTEWQ.js} +1 -1
- package/dist/{chevron-right-Bk4mGdr7.js → chevron-right-BEFXOH27.js} +1 -1
- package/dist/{chevron-up-MhUf_azW.js → chevron-up-Dw7woXj8.js} +1 -1
- package/dist/{circle-alert-CShJwVFv.js → circle-alert-BTKC9vkq.js} +1 -1
- package/dist/{clock-CTfD6OCt.js → clock-BVT5u2uG.js} +1 -1
- package/dist/composables-CMIrGXJ1.js +4517 -0
- package/dist/{createCloudRuntime-DCgO4A1r.js → createCloudRuntime-DGV5a5Af.js} +54 -52
- package/dist/{createLucideIcon-CvhTA2KG.js → createLucideIcon-CgDE3xAR.js} +16 -16
- package/dist/{cdn/chunks/de-CeFJ6wbM.js → de-DaOUfYBX.js} +114 -2
- package/dist/{dist-ByCWA2Tv.js → dist-0alKVRc_.js} +101 -101
- package/dist/{dist-Cy8I5scI.js → dist-54VCNoC0.js} +2 -2
- package/dist/dist-6DU0me3E.js +4 -0
- package/dist/{dist-p3wymUDt.js → dist-B8dY8drK.js} +2 -2
- package/dist/{dist-Dd5MU2Ev.js → dist-B9a7iVye.js} +2 -2
- package/dist/{dist-V7W1UhVr.js → dist-BWflWcpW.js} +2 -2
- package/dist/{dist-D6fZec6r.js → dist-C3hu_C3w.js} +2 -2
- package/dist/{dist-CVy-7PHQ.js → dist-CX7skkvG.js} +48 -48
- package/dist/dist-CcOn7WCo.js +4 -0
- package/dist/dist-Cdkm20M6.js +2542 -0
- package/dist/{dist-BS5uKktL.js → dist-ChOb5XHW.js} +2 -2
- package/dist/{dist-BF5zEHop.js → dist-DZ3X-uB8.js} +2 -2
- package/dist/{dist-CWSG7Kj0.js → dist-D_XrUEET.js} +5 -5
- package/dist/{dist-txQLT2sF.js → dist-TAv500j6.js} +2 -2
- package/dist/{dist-D6cMdrfG.js → dist-fqSers8_.js} +55 -55
- package/dist/{editor-modal-zaZHcmlO.js → editor-modal-BeX6otLk.js} +953 -952
- package/dist/{cdn/chunks/en-D14i5nFh.js → en-C0pHHMiR.js} +114 -2
- package/dist/en-Do0SU6tR.js +1 -0
- package/dist/{cdn/chunks/es-zDacbMhs.js → es-CxyEKr6n.js} +114 -2
- package/dist/{extensions-fo_c-vqf.js → extensions-BJ184osp.js} +173 -173
- package/dist/{eye-7W4t5e0Q.js → eye-ByMgHeA_.js} +1 -1
- package/dist/{cdn/chunks/fr-CSgYtjOd.js → fr-CYbamiI6.js} +114 -2
- package/dist/{image-BDiRFzSd.js → image-Ch8tR35K.js} +1 -1
- package/dist/index.d.ts +182 -14
- package/dist/{info-Cxi3-Kh9.js → info-DzSD-Wpk.js} +1 -1
- package/dist/{cdn/chunks/ja-B7H3ID8O.js → ja-DfaIAoGI.js} +114 -2
- package/dist/keys-BCqskl51.js +9 -0
- package/dist/languageName-DEEOhDWI.js +10 -0
- package/dist/{link-ju_2Cmir.js → link-oDn9AR2w.js} +1 -1
- package/dist/{list-DYZJf0aZ.js → list-C5t07dp8.js} +1 -1
- package/dist/{loader-circle-BZRD0a4I.js → loader-circle-k6xvKgUB.js} +1 -1
- package/dist/{message-circle-DuEw4Zfx.js → message-circle-C23R6OJR.js} +1 -1
- package/dist/{cdn/chunks/nl-176ySmc5.js → nl-DkrB-VKZ.js} +114 -2
- package/dist/normalizeMergeTagMarkup-CUCo7B5X.js +288 -0
- package/dist/noticeTones-D7BPu-Le.js +14 -0
- package/dist/{package-CePMr2kK.js → package-C90eQ7NU.js} +1 -1
- package/dist/{pencil-D3aFCL7c.js → pencil-BK7GrQuA.js} +1 -1
- package/dist/plural-CyxrJXL1.js +15 -0
- package/dist/plus-Cr0Mis63.js +13 -0
- package/dist/{cdn/chunks/preRenderCustomBlocks-BcXIz7oJ.js → preRenderCustomBlocks-Bs3N9no-.js} +4 -6
- package/dist/{cdn/chunks/pt-BR-dDlTwX18.js → pt-BR-CY5Ye7eP.js} +114 -2
- package/dist/{refresh-cw-xnro7_Sk.js → refresh-cw-_ZLOIEvA.js} +2 -12
- package/dist/rotate-ccw-CB5wsHwv.js +13 -0
- package/dist/{runtime-dom.esm-bundler-BURR-bj5.js → runtime-dom.esm-bundler-DlHp8xgy.js} +154 -154
- package/dist/sanitizeHtml-2rjV0r-6.js +962 -0
- package/dist/{search-CDrstRBv.js → search-BmrQNox8.js} +1 -1
- package/dist/{send-DROkPOaX.js → send-blAsIBBg.js} +1 -1
- package/dist/{smartphone-Bx6u_tjn.js → smartphone-BPpWYrwV.js} +1 -1
- package/dist/socialIcons-TFiOkpoU.js +2705 -0
- package/dist/{sparkles-CdaTtvoz.js → sparkles-OqIxrNp-.js} +1 -1
- package/dist/{square-BbCROH_f.js → square-BP-V7iT-.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{cdn/chunks/styleConstants-B8xVRiwX.js → styleConstants-CgiNKdnc.js} +5 -7
- package/dist/templatical-editor.js +2438 -1752
- package/dist/{text-align-start-CGacJ9Vw.js → text-align-start-4mwX2o-F.js} +13 -13
- package/dist/{trash-DxCd7zIy.js → trash-B99WixTA.js} +1 -1
- package/dist/{triangle-alert-7_oaitpf.js → triangle-alert-CHMiDkHa.js} +1 -1
- package/dist/{upload-DuFEOi_0.js → upload-Cp8o-hrN.js} +1 -1
- package/dist/{useCloudI18n-DEMmUKuO.js → useCloudI18n-Dh2iydo1.js} +4 -4
- package/dist/useEditorRoot-DY3mgcHm.js +7 -0
- package/dist/{useI18n-BBrHTdu8.js → useI18n-CgtvtF4C.js} +4 -4
- package/dist/useLocalizedDisplay-DNNwDRxL.js +31 -0
- package/dist/{useLogicTag-ZPC39rfH.js → useLogicTag-BXXXQQmi.js} +4 -4
- package/dist/{useMergeTag-BQ4qqWpQ.js → useMergeTag-C9Okr87y.js} +5 -5
- package/dist/usePopoverPosition-VDQjyX_A.js +76 -0
- package/dist/{useScrollToBlock-BSyAV4pk.js → useScrollToBlock-B35ObCGK.js} +5 -5
- package/dist/{vue.runtime.esm-bundler-CnEeTfhs.js → vue.runtime.esm-bundler-BJXc_Mri.js} +1373 -1368
- package/dist/withCurrentFont-DJiQqZzL.js +18 -0
- package/dist/{x-BpfG7v9g.js → x-BIBStNMS.js} +1 -1
- package/package.json +21 -21
- package/dist/AiAltTextPopover-DawbUywc.js +0 -105
- package/dist/AiChatPanel-CupPhmsN.js +0 -548
- package/dist/BlockIssueBadge-BxpDy3u-.js +0 -33
- package/dist/BlockPreviewCanvas-B-4bmJ3t.js +0 -140
- package/dist/CollaborationNotices-CTw4JThq.js +0 -75
- package/dist/CommentsPanel-DwwFuh1h.js +0 -16
- package/dist/CommentsSidebar-9ZfiC2DO.js +0 -500
- package/dist/CountdownToolbar-BqoYzf_6.js +0 -197
- package/dist/IssuesPanel-4ykrf1ax.js +0 -359
- package/dist/MergeTagTextarea-CPFEjJZd.js +0 -69
- package/dist/ParagraphEditor-CWXfurGh.js +0 -796
- package/dist/TemplateSettings-CS0f1Ues.js +0 -236
- package/dist/TestEmailModal-DBD0X5nV.js +0 -209
- package/dist/TitleEditor-DSqtle77.js +0 -198
- package/dist/ToggleSwitch-JykPyD_8.js +0 -36
- package/dist/Toolbar-BZPFfKrf.js +0 -3145
- package/dist/VersionPreviewBanner-DECaBwLq.js +0 -37
- package/dist/WrapperBlock-BsJv_Fiw.js +0 -44
- package/dist/cdn/chunks/AiAltTextPopover-SEEjkd-I.js +0 -106
- package/dist/cdn/chunks/AiAltTextPopover-SEEjkd-I.js.map +0 -1
- package/dist/cdn/chunks/AiAltTextReview-BGLLSKLm.js.map +0 -1
- package/dist/cdn/chunks/AiChatPanel-DKDAaBNi.js +0 -474
- package/dist/cdn/chunks/AiChatPanel-DKDAaBNi.js.map +0 -1
- package/dist/cdn/chunks/AiRewriteMenu-qf-cfEpy.js.map +0 -1
- package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js +0 -34
- package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js.map +0 -1
- package/dist/cdn/chunks/BlockPreviewCanvas-DGBh6mqe.js +0 -142
- package/dist/cdn/chunks/CollaborationNotices-Bsf1rGW9.js +0 -77
- package/dist/cdn/chunks/CollaborationNotices-Bsf1rGW9.js.map +0 -1
- package/dist/cdn/chunks/CommentsPanel-DoJnKLXI.js +0 -18
- package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js +0 -470
- package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js.map +0 -1
- package/dist/cdn/chunks/CountdownToolbar-xobieKoU.js +0 -199
- package/dist/cdn/chunks/CountdownToolbar-xobieKoU.js.map +0 -1
- package/dist/cdn/chunks/IssuesPanel-C7LfxaAY.js.map +0 -1
- package/dist/cdn/chunks/LogicTagInsertButton-BIi05UQu.js +0 -1051
- package/dist/cdn/chunks/LogicTagInsertButton-BIi05UQu.js.map +0 -1
- package/dist/cdn/chunks/MediaEditModal-Cpcod6_U.js.map +0 -1
- package/dist/cdn/chunks/MergeTagModeToggle-BgKEVUtV.js.map +0 -1
- package/dist/cdn/chunks/MergeTagTextarea-tBz8McZf.js +0 -71
- package/dist/cdn/chunks/MergeTagTextarea-tBz8McZf.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js +0 -631
- package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js.map +0 -1
- package/dist/cdn/chunks/TemplateSettings-CKtI-dof.js +0 -208
- package/dist/cdn/chunks/TemplateSettings-CKtI-dof.js.map +0 -1
- package/dist/cdn/chunks/TestEmailModal-CDQTgESD.js +0 -209
- package/dist/cdn/chunks/TestEmailModal-CDQTgESD.js.map +0 -1
- package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js +0 -198
- package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js.map +0 -1
- package/dist/cdn/chunks/ToggleSwitch-J7Vwhvha.js +0 -38
- package/dist/cdn/chunks/ToggleSwitch-J7Vwhvha.js.map +0 -1
- package/dist/cdn/chunks/Toolbar-CdpsvNOR.js +0 -3061
- package/dist/cdn/chunks/Toolbar-CdpsvNOR.js.map +0 -1
- package/dist/cdn/chunks/VersionPreviewBanner-Dvg0ZfAW.js +0 -39
- package/dist/cdn/chunks/VersionPreviewBanner-Dvg0ZfAW.js.map +0 -1
- package/dist/cdn/chunks/WrapperBlock-C7Md56IT.js +0 -46
- package/dist/cdn/chunks/WrapperBlock-C7Md56IT.js.map +0 -1
- package/dist/cdn/chunks/ca-CD-Kt1qz.js.map +0 -1
- package/dist/cdn/chunks/createCloudRuntime-Cth2JCEh.js.map +0 -1
- package/dist/cdn/chunks/de-CeFJ6wbM.js.map +0 -1
- package/dist/cdn/chunks/draggable-Du8AUMFT.js.map +0 -1
- package/dist/cdn/chunks/en-D14i5nFh.js.map +0 -1
- package/dist/cdn/chunks/en-TIqv4ag3.js +0 -1
- package/dist/cdn/chunks/es-zDacbMhs.js.map +0 -1
- package/dist/cdn/chunks/fr-CSgYtjOd.js.map +0 -1
- package/dist/cdn/chunks/icons-okSPsLOa.js.map +0 -1
- package/dist/cdn/chunks/ja-B7H3ID8O.js.map +0 -1
- package/dist/cdn/chunks/keys-CUj6UA38.js +0 -11
- package/dist/cdn/chunks/keys-CUj6UA38.js.map +0 -1
- package/dist/cdn/chunks/nl-176ySmc5.js.map +0 -1
- package/dist/cdn/chunks/normalizeMergeTagMarkup-C_KlfSW4.js +0 -198
- package/dist/cdn/chunks/normalizeMergeTagMarkup-C_KlfSW4.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-dDlTwX18.js.map +0 -1
- package/dist/cdn/chunks/sanitizeHtml-CN85EDrO.js +0 -72
- package/dist/cdn/chunks/sanitizeHtml-CN85EDrO.js.map +0 -1
- package/dist/cdn/chunks/socialIcons-jsTDmkbb.js +0 -2008
- package/dist/cdn/chunks/socialIcons-jsTDmkbb.js.map +0 -1
- package/dist/cdn/chunks/src-C7bkofBL.js +0 -647
- package/dist/cdn/chunks/src-C7bkofBL.js.map +0 -1
- package/dist/cdn/chunks/src-DEd87i_U.js.map +0 -1
- package/dist/cdn/chunks/src-DwWrYnUj.js +0 -1404
- package/dist/cdn/chunks/src-DwWrYnUj.js.map +0 -1
- package/dist/cdn/chunks/styleConstants-B8xVRiwX.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-BrY66C2y.js +0 -2582
- package/dist/cdn/chunks/useEditorCore-BrY66C2y.js.map +0 -1
- package/dist/cdn/chunks/useEditorRoot-vjZJwKrV.js +0 -9
- package/dist/cdn/chunks/usePopoverPosition-DSMtmu2W.js +0 -70
- package/dist/cdn/chunks/usePopoverPosition-DSMtmu2W.js.map +0 -1
- package/dist/cdn/chunks/useScrollToBlock-vjQ0fe-L.js.map +0 -1
- package/dist/dist-CKi_npZM.js +0 -1344
- package/dist/dist-DyFArF_G.js +0 -4
- package/dist/dist-pA3ooG6N.js +0 -4
- package/dist/en-Db76vJbY.js +0 -1
- package/dist/keys-BgRERHzu.js +0 -9
- package/dist/normalizeMergeTagMarkup-CELnOlgK.js +0 -196
- package/dist/sanitizeHtml-BzfzpYJY.js +0 -942
- package/dist/socialIcons-D7MGsg0d.js +0 -2075
- package/dist/useEditorCore-BSo2sSID.js +0 -4059
- package/dist/useEditorRoot-BMcoCLBx.js +0 -7
- package/dist/usePopoverPosition-DV1PxL66.js +0 -68
- package/dist/withCurrentFont-B22FXAF5.js +0 -18
|
@@ -1,197 +0,0 @@
|
|
|
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
|
-
import { p as h } from "./styleConstants-B8xVRiwX.js";
|
|
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
|
-
// src/components/toolbar/CountdownToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
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
|
-
"value",
|
|
11
|
-
"placeholder",
|
|
12
|
-
"onInput"
|
|
13
|
-
], M = ["value", "placeholder"], N = ["value"], P = /* @__PURE__ */ f({
|
|
14
|
-
__name: "CountdownToolbar",
|
|
15
|
-
props: {
|
|
16
|
-
block: {},
|
|
17
|
-
fontFamilies: {}
|
|
18
|
-
},
|
|
19
|
-
emits: ["update"],
|
|
20
|
-
setup(f, { emit: P }) {
|
|
21
|
-
let F = P, { t: I } = p(), L = [
|
|
22
|
-
"UTC",
|
|
23
|
-
"America/New_York",
|
|
24
|
-
"America/Chicago",
|
|
25
|
-
"America/Denver",
|
|
26
|
-
"America/Los_Angeles",
|
|
27
|
-
"Europe/London",
|
|
28
|
-
"Europe/Berlin",
|
|
29
|
-
"Europe/Paris",
|
|
30
|
-
"Europe/Moscow",
|
|
31
|
-
"Asia/Dubai",
|
|
32
|
-
"Asia/Kolkata",
|
|
33
|
-
"Asia/Shanghai",
|
|
34
|
-
"Asia/Tokyo",
|
|
35
|
-
"Australia/Sydney",
|
|
36
|
-
"Pacific/Auckland"
|
|
37
|
-
], R = [
|
|
38
|
-
{
|
|
39
|
-
value: ":",
|
|
40
|
-
label: ":"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
value: "-",
|
|
44
|
-
label: "-"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
value: " ",
|
|
48
|
-
label: "␣"
|
|
49
|
-
}
|
|
50
|
-
], z = [
|
|
51
|
-
"Days",
|
|
52
|
-
"Hours",
|
|
53
|
-
"Minutes",
|
|
54
|
-
"Seconds"
|
|
55
|
-
], B = i(() => z.map((e) => ({
|
|
56
|
-
unit: e,
|
|
57
|
-
showKey: `show${e}`,
|
|
58
|
-
labelKey: `label${e}`,
|
|
59
|
-
translationKey: e.toLowerCase()
|
|
60
|
-
})));
|
|
61
|
-
function V(e, t) {
|
|
62
|
-
F("update", { [e]: t });
|
|
63
|
-
}
|
|
64
|
-
return (i, p) => (o(), a(l, null, [
|
|
65
|
-
r(y, { label: u(I).countdown.targetDate }, {
|
|
66
|
-
default: e(() => [c("input", {
|
|
67
|
-
type: "datetime-local",
|
|
68
|
-
class: s(u(h)),
|
|
69
|
-
value: f.block.targetDate,
|
|
70
|
-
onInput: p[0] ||= (e) => V("targetDate", e.target.value)
|
|
71
|
-
}, null, 42, x)]),
|
|
72
|
-
_: 1
|
|
73
|
-
}, 8, ["label"]),
|
|
74
|
-
r(y, { label: u(I).countdown.timezone }, {
|
|
75
|
-
default: e(() => [c("select", {
|
|
76
|
-
class: s(u(h)),
|
|
77
|
-
value: f.block.timezone,
|
|
78
|
-
onChange: p[1] ||= (e) => V("timezone", e.target.value)
|
|
79
|
-
}, [(o(), a(l, null, t(L, (e) => c("option", {
|
|
80
|
-
key: e,
|
|
81
|
-
value: e
|
|
82
|
-
}, n(e), 9, C)), 64))], 42, S)]),
|
|
83
|
-
_: 1
|
|
84
|
-
}, 8, ["label"]),
|
|
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
|
-
key: e.unit,
|
|
88
|
-
class: "tpl:text-[12px] tpl:text-[var(--tpl-text)]",
|
|
89
|
-
"model-value": f.block[e.showKey],
|
|
90
|
-
label: u(I).countdown[e.translationKey],
|
|
91
|
-
"onUpdate:modelValue": (t) => V(e.showKey, t)
|
|
92
|
-
}, null, 8, [
|
|
93
|
-
"model-value",
|
|
94
|
-
"label",
|
|
95
|
-
"onUpdate:modelValue"
|
|
96
|
-
]))), 128))])]),
|
|
97
|
-
_: 1
|
|
98
|
-
}, 8, ["label"]),
|
|
99
|
-
r(y, { label: u(I).countdown.separator }, {
|
|
100
|
-
default: e(() => [r(v, {
|
|
101
|
-
options: R,
|
|
102
|
-
"model-value": f.block.separator,
|
|
103
|
-
"onUpdate:modelValue": p[2] ||= (e) => V("separator", e)
|
|
104
|
-
}, null, 8, ["model-value"])]),
|
|
105
|
-
_: 1
|
|
106
|
-
}, 8, ["label"]),
|
|
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
|
-
onChange: p[3] ||= (e) => V("fontFamily", e.target.value || void 0)
|
|
112
|
-
}, [c("option", E, n(u(I).countdown.inheritFont), 1), (o(!0), a(l, null, t(f.fontFamilies, (e) => (o(), a("option", {
|
|
113
|
-
key: e.value,
|
|
114
|
-
value: e.value
|
|
115
|
-
}, n(e.label), 9, D))), 128))], 42, T)]),
|
|
116
|
-
_: 1
|
|
117
|
-
}, 8, ["label"]),
|
|
118
|
-
c("div", O, [r(y, { label: u(I).countdown.digitFontSize }, {
|
|
119
|
-
default: e(() => [r(b, {
|
|
120
|
-
"model-value": f.block.digitFontSize,
|
|
121
|
-
min: 12,
|
|
122
|
-
max: 72,
|
|
123
|
-
suffix: "px",
|
|
124
|
-
"onUpdate:modelValue": p[4] ||= (e) => V("digitFontSize", e)
|
|
125
|
-
}, null, 8, ["model-value"])]),
|
|
126
|
-
_: 1
|
|
127
|
-
}, 8, ["label"]), r(y, { label: u(I).countdown.labelFontSize }, {
|
|
128
|
-
default: e(() => [r(b, {
|
|
129
|
-
"model-value": f.block.labelFontSize,
|
|
130
|
-
min: 8,
|
|
131
|
-
max: 24,
|
|
132
|
-
suffix: "px",
|
|
133
|
-
"onUpdate:modelValue": p[5] ||= (e) => V("labelFontSize", e)
|
|
134
|
-
}, null, 8, ["model-value"])]),
|
|
135
|
-
_: 1
|
|
136
|
-
}, 8, ["label"])]),
|
|
137
|
-
c("div", k, [r(y, { label: u(I).countdown.digitColor }, {
|
|
138
|
-
default: e(() => [r(m, {
|
|
139
|
-
"model-value": f.block.digitColor,
|
|
140
|
-
"onUpdate:modelValue": p[6] ||= (e) => V("digitColor", e)
|
|
141
|
-
}, null, 8, ["model-value"])]),
|
|
142
|
-
_: 1
|
|
143
|
-
}, 8, ["label"]), r(y, { label: u(I).countdown.labelColor }, {
|
|
144
|
-
default: e(() => [r(m, {
|
|
145
|
-
"model-value": f.block.labelColor,
|
|
146
|
-
"onUpdate:modelValue": p[7] ||= (e) => V("labelColor", e)
|
|
147
|
-
}, null, 8, ["model-value"])]),
|
|
148
|
-
_: 1
|
|
149
|
-
}, 8, ["label"])]),
|
|
150
|
-
r(y, { label: u(I).countdown.background }, {
|
|
151
|
-
default: e(() => [r(m, {
|
|
152
|
-
"model-value": f.block.backgroundColor,
|
|
153
|
-
"onUpdate:modelValue": p[8] ||= (e) => V("backgroundColor", e)
|
|
154
|
-
}, null, 8, ["model-value"])]),
|
|
155
|
-
_: 1
|
|
156
|
-
}, 8, ["label"]),
|
|
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
|
-
type: "text",
|
|
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
|
-
}, null, 42, j))), 128))])]),
|
|
166
|
-
_: 1
|
|
167
|
-
}, 8, ["label"]),
|
|
168
|
-
r(y, { label: u(I).countdown.expiry }, {
|
|
169
|
-
default: e(() => [c("input", {
|
|
170
|
-
type: "text",
|
|
171
|
-
class: s(u(h)),
|
|
172
|
-
value: f.block.expiredMessage,
|
|
173
|
-
placeholder: u(I).countdown.expiredMessagePlaceholder,
|
|
174
|
-
onInput: p[9] ||= (e) => V("expiredMessage", e.target.value)
|
|
175
|
-
}, null, 42, M)]),
|
|
176
|
-
_: 1
|
|
177
|
-
}, 8, ["label"]),
|
|
178
|
-
r(y, { label: u(I).countdown.expiredImageUrl }, {
|
|
179
|
-
default: e(() => [c("input", {
|
|
180
|
-
type: "url",
|
|
181
|
-
class: s(u(h)),
|
|
182
|
-
value: f.block.expiredImageUrl,
|
|
183
|
-
placeholder: "https://...",
|
|
184
|
-
onInput: p[10] ||= (e) => V("expiredImageUrl", e.target.value)
|
|
185
|
-
}, null, 42, N)]),
|
|
186
|
-
_: 1
|
|
187
|
-
}, 8, ["label"]),
|
|
188
|
-
r(g, {
|
|
189
|
-
class: "tpl:mb-3.5 tpl:text-[12px] tpl:text-[var(--tpl-text)]",
|
|
190
|
-
"model-value": f.block.hideOnExpiry,
|
|
191
|
-
label: u(I).countdown.hideOnExpiry,
|
|
192
|
-
"onUpdate:modelValue": p[11] ||= (e) => V("hideOnExpiry", e)
|
|
193
|
-
}, null, 8, ["model-value", "label"])
|
|
194
|
-
], 64));
|
|
195
|
-
}
|
|
196
|
-
});
|
|
197
|
-
export { P as default };
|
|
@@ -1,359 +0,0 @@
|
|
|
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,69 +0,0 @@
|
|
|
1
|
-
import { $ as e, _ as t, d as n, f as r, j as i, jt as a, l as o, st as s, u as c, y as l } from "./vue.runtime.esm-bundler-CnEeTfhs.js";
|
|
2
|
-
import { i as u, n as d, r as f, t as p } from "./LogicTagInsertButton-CfscnwCn.js";
|
|
3
|
-
// src/components/MergeTagTextarea.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
-
var m = { key: 0 }, h = {
|
|
5
|
-
key: 0,
|
|
6
|
-
class: "tpl:flex tpl:flex-wrap tpl:gap-1.5"
|
|
7
|
-
}, g = { key: 1 }, _ = [
|
|
8
|
-
"value",
|
|
9
|
-
"placeholder",
|
|
10
|
-
"rows"
|
|
11
|
-
], v = {
|
|
12
|
-
key: 0,
|
|
13
|
-
class: "tpl:flex tpl:flex-wrap tpl:gap-1.5"
|
|
14
|
-
}, y = "tpl:w-full tpl:resize-y tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:shadow-[var(--tpl-shadow-sm)] tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2 tpl:text-sm tpl:text-[var(--tpl-text)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:placeholder:text-[var(--tpl-text-dim)] tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)]", b = "tpl:flex tpl:w-full tpl:min-h-20 tpl:cursor-pointer tpl:items-start tpl:flex-wrap tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:shadow-[var(--tpl-shadow-sm)] tpl:bg-[var(--tpl-bg)] tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2 tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", x = /* @__PURE__ */ l({
|
|
15
|
-
__name: "MergeTagTextarea",
|
|
16
|
-
props: {
|
|
17
|
-
modelValue: {},
|
|
18
|
-
placeholder: { default: "" },
|
|
19
|
-
rows: { default: 3 }
|
|
20
|
-
},
|
|
21
|
-
emits: ["update:modelValue"],
|
|
22
|
-
setup(l, { emit: x }) {
|
|
23
|
-
let S = l, C = x, w = e(null), { segments: T, hasMergeTags: E, canRequestMergeTag: D, isRequestingMergeTag: O, canInsertLogicTag: k, isRequestingLogicTag: A, isEditing: j, startEditing: M, handleInput: N, handleKeydown: P, handleClick: F, handleBlur: I, clearValue: L, insertMergeTag: R, insertLogicTag: z, replaceMergeTagAt: B } = u({
|
|
24
|
-
modelValue: () => S.modelValue,
|
|
25
|
-
emit: (e) => C("update:modelValue", e),
|
|
26
|
-
elementRef: w
|
|
27
|
-
});
|
|
28
|
-
return (e, u) => s(E) && !s(j) ? (i(), r("div", m, [t(f, {
|
|
29
|
-
segments: s(T),
|
|
30
|
-
"display-class": b,
|
|
31
|
-
onEdit: s(M),
|
|
32
|
-
onClear: s(L),
|
|
33
|
-
onRepick: s(B)
|
|
34
|
-
}, null, 8, [
|
|
35
|
-
"segments",
|
|
36
|
-
"onEdit",
|
|
37
|
-
"onClear",
|
|
38
|
-
"onRepick"
|
|
39
|
-
]), s(D) || s(k) ? (i(), r("div", h, [s(D) ? (i(), c(d, {
|
|
40
|
-
key: 0,
|
|
41
|
-
disabled: s(O),
|
|
42
|
-
onInsert: s(R)
|
|
43
|
-
}, null, 8, ["disabled", "onInsert"])) : n("", !0), s(k) ? (i(), c(p, {
|
|
44
|
-
key: 1,
|
|
45
|
-
disabled: s(A),
|
|
46
|
-
onInsert: s(z)
|
|
47
|
-
}, null, 8, ["disabled", "onInsert"])) : n("", !0)])) : n("", !0)])) : (i(), r("div", g, [o("textarea", {
|
|
48
|
-
ref_key: "textareaRef",
|
|
49
|
-
ref: w,
|
|
50
|
-
class: a(y),
|
|
51
|
-
value: l.modelValue,
|
|
52
|
-
placeholder: l.placeholder,
|
|
53
|
-
rows: l.rows,
|
|
54
|
-
onInput: u[0] ||= (...e) => s(N) && s(N)(...e),
|
|
55
|
-
onKeydown: u[1] ||= (...e) => s(P) && s(P)(...e),
|
|
56
|
-
onClick: u[2] ||= (...e) => s(F) && s(F)(...e),
|
|
57
|
-
onBlur: u[3] ||= (...e) => s(I) && s(I)(...e)
|
|
58
|
-
}, null, 40, _), s(D) || s(k) ? (i(), r("div", v, [s(D) ? (i(), c(d, {
|
|
59
|
-
key: 0,
|
|
60
|
-
disabled: s(O),
|
|
61
|
-
onInsert: s(R)
|
|
62
|
-
}, null, 8, ["disabled", "onInsert"])) : n("", !0), s(k) ? (i(), c(p, {
|
|
63
|
-
key: 1,
|
|
64
|
-
disabled: s(A),
|
|
65
|
-
onInsert: s(z)
|
|
66
|
-
}, null, 8, ["disabled", "onInsert"])) : n("", !0)])) : n("", !0)]));
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
export { x as t };
|