@templatical/editor 0.37.0 → 0.39.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/dist/{AiChatSidebar-tu4eLcf_.js → AiChatSidebar-jVlXXND3.js} +66 -66
- package/dist/{AiFeatureMenu-BF0i0vA4.js → AiFeatureMenu-C1HCntyQ.js} +6 -6
- package/dist/{BlockIssueBadge-DT-FqKeC.js → BlockIssueBadge-JhNgcUmZ.js} +4 -4
- package/dist/{BlockPreviewCanvas-DDCmMram.js → BlockPreviewCanvas-C_rA5LJN.js} +2 -2
- package/dist/{CloudHeaderExtras-NPhudovT.js → CloudHeaderExtras-DvYyNsPB.js} +3 -3
- package/dist/{CloudPanels-Iwnky0iA.js → CloudPanels-CDPhPVdd.js} +5 -5
- package/dist/{CollaboratorBar-DAITu0hz.js → CollaboratorBar-Co9UPoB0.js} +3 -3
- package/dist/{ColorPicker-BqlZ_TqG.js → ColorPicker-BTtN94te.js} +6 -6
- package/dist/{CommentsPanel-CDvgmWP1.js → CommentsPanel-CRcVN9Ri.js} +1 -1
- package/dist/{CommentsSidebar-X_xqM3dR.js → CommentsSidebar-gDU977br.js} +12 -12
- package/dist/{CountdownBlock-ZFJIdbP6.js → CountdownBlock-CEzrfe5R.js} +1 -1
- package/dist/{CountdownToolbar-DBFoG3a6.js → CountdownToolbar-B00zhkNJ.js} +2 -2
- package/dist/{DesignReferenceSidebar--QtXjLrw.js → DesignReferenceSidebar-DedivZZl.js} +7 -7
- package/dist/{IssuesPanel-BLbNFMSX.js → IssuesPanel-C-PjdmAV.js} +7 -7
- package/dist/{MediaPanels-CMTAhDXB.js → MediaPanels-BpQNY8YX.js} +1 -1
- package/dist/{MergeTagInput-BEjzj4Iu.js → MergeTagInput-Cw1RoMly.js} +201 -149
- package/dist/{MergeTagModeToggle-DKN6ihI5.js → MergeTagModeToggle-DGuzSAdX.js} +35 -35
- package/dist/{MergeTagSuggestion-DKoLEeoj.js → MergeTagSuggestion-BXO3UIXW.js} +2 -2
- package/dist/{ParagraphEditor-1E9yzOfk.js → ParagraphEditor-jMKLLTa8.js} +38 -38
- package/dist/{RestoreVersionDialog-BMGUkcd8.js → RestoreVersionDialog-DG1jUdBM.js} +4 -4
- package/dist/{RichTextEditorContent-BnxbQUV9.js → RichTextEditorContent-JrNEg0kv.js} +8 -8
- package/dist/{SaveBlockDialog-WKASpCCT.js → SaveBlockDialog-C0KC-OKs.js} +8 -8
- package/dist/{SavedBlocksBrowserModal-AYEXTMtQ.js → SavedBlocksBrowserModal-zyOiRgWZ.js} +10 -10
- package/dist/{SavedBlocksPanels-D_CpacTl.js → SavedBlocksPanels-epMd799w.js} +1 -1
- package/dist/{SavedBlocksPickBar-BHMwg-1G.js → SavedBlocksPickBar-CJqqQ3jd.js} +3 -3
- package/dist/{TemplateScoringPanel-CSin43YM.js → TemplateScoringPanel-m2FOeaai.js} +103 -103
- package/dist/{TestEmailModal-BxizsRCd.js → TestEmailModal-D58kYkMV.js} +54 -54
- package/dist/{TestEmailPanel-vd2e5HzT.js → TestEmailPanel-BmFVBIQt.js} +1 -1
- package/dist/{TitleEditor-CLJ68Ty4.js → TitleEditor-C4BGPXnf.js} +13 -13
- package/dist/{TplModal-Q9fDgS1M.js → TplModal-BIDJw4Kj.js} +3 -3
- package/dist/{VersionHistoryMenu-eGYVhM4H.js → VersionHistoryMenu-dt_aZQfh.js} +7 -7
- package/dist/{VersionHistoryPanels-C7Ntrrfq.js → VersionHistoryPanels-B_5SBRrr.js} +1 -1
- package/dist/{VersionPreviewBanner-BbQXnR0M.js → VersionPreviewBanner-DttvOkwd.js} +2 -2
- package/dist/{blockTypeIcons-5qD4bB76.js → blockTypeIcons-CzTizYmK.js} +2 -2
- package/dist/bundle-stats.json +8 -8
- package/dist/{cdn/chunks/ca-D9S-UCfZ.js → ca-YlPDhElv.js} +5 -3
- package/dist/cdn/chunks/{AiChatSidebar-dyqqHAcI.js → AiChatSidebar-DeZl9Tk0.js} +54 -54
- package/dist/cdn/chunks/AiChatSidebar-DeZl9Tk0.js.map +1 -0
- package/dist/cdn/chunks/{AiFeatureMenu-BjVMwhW8.js → AiFeatureMenu-Bv8jMu9p.js} +5 -5
- package/dist/cdn/chunks/{AiFeatureMenu-BjVMwhW8.js.map → AiFeatureMenu-Bv8jMu9p.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-BJ__oEtm.js → BlockIssueBadge-B6PpoOPv.js} +4 -4
- package/dist/cdn/chunks/{BlockIssueBadge-BJ__oEtm.js.map → BlockIssueBadge-B6PpoOPv.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-B5f26eLE.js → BlockPreviewCanvas-DfEtDosD.js} +3 -3
- package/dist/cdn/chunks/{BlockPreviewCanvas-B5f26eLE.js.map → BlockPreviewCanvas-DfEtDosD.js.map} +1 -1
- package/dist/cdn/chunks/{CloudHeaderExtras-D5P5IEKA.js → CloudHeaderExtras-Hk98ub-C.js} +4 -4
- package/dist/cdn/chunks/{CloudHeaderExtras-D5P5IEKA.js.map → CloudHeaderExtras-Hk98ub-C.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-DkmR05nB.js → CloudPanels-Ba3GLmvF.js} +5 -5
- package/dist/cdn/chunks/{CloudPanels-DkmR05nB.js.map → CloudPanels-Ba3GLmvF.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-Yn7KSpt4.js → CollaboratorBar-D2dCQ9gg.js} +4 -4
- package/dist/cdn/chunks/{CollaboratorBar-Yn7KSpt4.js.map → CollaboratorBar-D2dCQ9gg.js.map} +1 -1
- package/dist/cdn/chunks/{ColorPicker-LcrzgMoW.js → ColorPicker-BaonTCAQ.js} +7 -7
- package/dist/cdn/chunks/{ColorPicker-LcrzgMoW.js.map → ColorPicker-BaonTCAQ.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-CntwwocI.js → CommentsPanel-CV2HveQk.js} +2 -2
- package/dist/cdn/chunks/{CommentsPanel-CntwwocI.js.map → CommentsPanel-CV2HveQk.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-BLDKnKy7.js → CommentsSidebar-Dok_vaRc.js} +4 -4
- package/dist/cdn/chunks/{CommentsSidebar-BLDKnKy7.js.map → CommentsSidebar-Dok_vaRc.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-B4AfqJwb.js → CountdownBlock-DGDl3ota.js} +2 -2
- package/dist/cdn/chunks/{CountdownBlock-B4AfqJwb.js.map → CountdownBlock-DGDl3ota.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-CA1dpuOI.js → CountdownToolbar-B9Rin64t.js} +3 -3
- package/dist/cdn/chunks/{CountdownToolbar-CA1dpuOI.js.map → CountdownToolbar-B9Rin64t.js.map} +1 -1
- package/dist/cdn/chunks/{DesignReferenceSidebar-D1Y9Hswe.js → DesignReferenceSidebar-eCuTFak2.js} +4 -4
- package/dist/cdn/chunks/{DesignReferenceSidebar-D1Y9Hswe.js.map → DesignReferenceSidebar-eCuTFak2.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-Q62LTqvd.js → IssuesPanel-CP7FEzw7.js} +5 -5
- package/dist/cdn/chunks/{IssuesPanel-Q62LTqvd.js.map → IssuesPanel-CP7FEzw7.js.map} +1 -1
- package/dist/cdn/chunks/{MediaPanels-D21M6shx.js → MediaPanels-TYrKKHX5.js} +2 -2
- package/dist/cdn/chunks/{MediaPanels-D21M6shx.js.map → MediaPanels-TYrKKHX5.js.map} +1 -1
- package/dist/cdn/chunks/MergeTagInput-CSIThqkz.js +470 -0
- package/dist/cdn/chunks/MergeTagInput-CSIThqkz.js.map +1 -0
- package/dist/cdn/chunks/{MergeTagModeToggle-DYxkAGtA.js → MergeTagModeToggle-QGTUIWWo.js} +32 -32
- package/dist/cdn/chunks/{MergeTagModeToggle-DYxkAGtA.js.map → MergeTagModeToggle-QGTUIWWo.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagSuggestion-t8Uj00Er.js → MergeTagSuggestion-CY6WK8Eb.js} +3 -3
- package/dist/cdn/chunks/MergeTagSuggestion-CY6WK8Eb.js.map +1 -0
- package/dist/cdn/chunks/{ParagraphEditor-Bd-GQXee.js → ParagraphEditor-D1tsPv4v.js} +22 -22
- package/dist/cdn/chunks/{ParagraphEditor-Bd-GQXee.js.map → ParagraphEditor-D1tsPv4v.js.map} +1 -1
- package/dist/cdn/chunks/{RestoreVersionDialog-2X9RpM9A.js → RestoreVersionDialog-BeCxNPLS.js} +4 -4
- package/dist/cdn/chunks/{RestoreVersionDialog-2X9RpM9A.js.map → RestoreVersionDialog-BeCxNPLS.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-D_rb0rmU.js → RichTextEditorContent-BBxzACFQ.js} +8 -8
- package/dist/cdn/chunks/{RichTextEditorContent-D_rb0rmU.js.map → RichTextEditorContent-BBxzACFQ.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-CufdTomT.js → SaveBlockDialog-CLgh_g7H.js} +7 -7
- package/dist/cdn/chunks/{SaveBlockDialog-CufdTomT.js.map → SaveBlockDialog-CLgh_g7H.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-CqpaNsk7.js → SavedBlocksBrowserModal-B4TcUJJe.js} +8 -8
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-CqpaNsk7.js.map → SavedBlocksBrowserModal-B4TcUJJe.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-DpxYxddo.js → SavedBlocksPanels-CaBsHoRC.js} +2 -2
- package/dist/cdn/chunks/{SavedBlocksPanels-DpxYxddo.js.map → SavedBlocksPanels-CaBsHoRC.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-Drpoav1B.js → SavedBlocksPickBar-iG35XCDx.js} +4 -4
- package/dist/cdn/chunks/{SavedBlocksPickBar-Drpoav1B.js.map → SavedBlocksPickBar-iG35XCDx.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateScoringPanel-DBjUNULq.js → TemplateScoringPanel-DuQJBykq.js} +86 -86
- package/dist/cdn/chunks/TemplateScoringPanel-DuQJBykq.js.map +1 -0
- package/dist/cdn/chunks/{TestEmailModal-BTNlSW6f.js → TestEmailModal-D6Woss3r.js} +52 -52
- package/dist/cdn/chunks/TestEmailModal-D6Woss3r.js.map +1 -0
- package/dist/cdn/chunks/{TestEmailPanel-D0A9Zgxr.js → TestEmailPanel-CWQFB7J3.js} +2 -2
- package/dist/cdn/chunks/{TestEmailPanel-D0A9Zgxr.js.map → TestEmailPanel-CWQFB7J3.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-CrnuIq62.js → TitleEditor-CbY1tgSl.js} +12 -12
- package/dist/cdn/chunks/TitleEditor-CbY1tgSl.js.map +1 -0
- package/dist/cdn/chunks/{TplModal-DYXrTz42.js → TplModal-CGpp-d_r.js} +4 -4
- package/dist/cdn/chunks/{TplModal-DYXrTz42.js.map → TplModal-CGpp-d_r.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-bDGnE4hb.js → VersionHistoryMenu-ByVJXDbK.js} +4 -4
- package/dist/cdn/chunks/{VersionHistoryMenu-bDGnE4hb.js.map → VersionHistoryMenu-ByVJXDbK.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-82P0Q0HM.js → VersionHistoryPanels-CQJ5OggF.js} +2 -2
- package/dist/cdn/chunks/{VersionHistoryPanels-82P0Q0HM.js.map → VersionHistoryPanels-CQJ5OggF.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-BJiwKkVC.js → VersionPreviewBanner-G4lLbfr8.js} +3 -3
- package/dist/cdn/chunks/{VersionPreviewBanner-BJiwKkVC.js.map → VersionPreviewBanner-G4lLbfr8.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-CNjJSFun.js → blockTypeIcons-CQY-vxdM.js} +2 -2
- package/dist/cdn/chunks/{blockTypeIcons-CNjJSFun.js.map → blockTypeIcons-CQY-vxdM.js.map} +1 -1
- package/dist/{ca-D9S-UCfZ.js → cdn/chunks/ca-YlPDhElv.js} +7 -1
- package/dist/cdn/chunks/{ca-D9S-UCfZ.js.map → ca-YlPDhElv.js.map} +1 -1
- package/dist/cdn/chunks/cloud-BLgCKP7Z.js.map +1 -1
- package/dist/cdn/chunks/{createCloudRuntime-U-qCH-dq.js → createCloudRuntime-ClvtMBF1.js} +2 -2
- package/dist/cdn/chunks/{createCloudRuntime-U-qCH-dq.js.map → createCloudRuntime-ClvtMBF1.js.map} +1 -1
- package/dist/cdn/chunks/{de-BUPszLpi.js → de-CONjnzrF.js} +6 -2
- package/dist/cdn/chunks/{de-BUPszLpi.js.map → de-CONjnzrF.js.map} +1 -1
- package/dist/cdn/chunks/draggable-kbOhCgnk.js.map +1 -1
- package/dist/cdn/chunks/{editor-modal-MXgtarMl.js → editor-modal-B6IdQWlf.js} +3 -3
- package/dist/cdn/chunks/{editor-modal-MXgtarMl.js.map → editor-modal-B6IdQWlf.js.map} +1 -1
- package/dist/cdn/chunks/{en-BbOC5x3w.js → en-BAMooiOF.js} +6 -2
- package/dist/cdn/chunks/{en-BbOC5x3w.js.map → en-BAMooiOF.js.map} +1 -1
- package/dist/cdn/chunks/en-DjunooBz.js +2 -0
- package/dist/{es-0bCDcT9p.js → cdn/chunks/es-I47lHs2m.js} +7 -1
- package/dist/cdn/chunks/{es-0bCDcT9p.js.map → es-I47lHs2m.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-B8_jnIkD.js → extensions-D2YIhF7u.js} +126 -101
- package/dist/cdn/chunks/extensions-D2YIhF7u.js.map +1 -0
- package/dist/cdn/chunks/{fr-Brr8mJ9e.js → fr-B8MIKjT4.js} +6 -2
- package/dist/cdn/chunks/{fr-Brr8mJ9e.js.map → fr-B8MIKjT4.js.map} +1 -1
- package/dist/cdn/chunks/htmlparser-ClUZ6waR.js +1113 -0
- package/dist/cdn/chunks/htmlparser-ClUZ6waR.js.map +1 -0
- package/dist/cdn/chunks/{icons-BUlqGSgd.js → icons-DdrAicM2.js} +33 -33
- package/dist/cdn/chunks/{icons-BUlqGSgd.js.map → icons-DdrAicM2.js.map} +1 -1
- package/dist/cdn/chunks/keys-DXYJTLZF.js +12 -0
- package/dist/cdn/chunks/keys-DXYJTLZF.js.map +1 -0
- package/dist/{nl-Co3_RL0M.js → cdn/chunks/nl-CBLxcb-0.js} +7 -1
- package/dist/cdn/chunks/{nl-Co3_RL0M.js.map → nl-CBLxcb-0.js.map} +1 -1
- package/dist/{pt-BR-BECez5b0.js → cdn/chunks/pt-BR-CMSRfX7t.js} +7 -1
- package/dist/cdn/chunks/{pt-BR-BECez5b0.js.map → pt-BR-CMSRfX7t.js.map} +1 -1
- package/dist/cdn/chunks/{src-CUvZWL6Y.js → src-CaNsA_WX.js} +2 -2
- package/dist/cdn/chunks/{src-CUvZWL6Y.js.map → src-CaNsA_WX.js.map} +1 -1
- package/dist/cdn/chunks/src-Dwgq7hf4.js.map +1 -1
- package/dist/cdn/chunks/{src-Ozknnj-v.js → src-fn7uy1FD.js} +3 -3
- package/dist/cdn/chunks/{src-Ozknnj-v.js.map → src-fn7uy1FD.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-DSWSGj-A.js → useCloudI18n-OezCj0cx.js} +2 -2
- package/dist/cdn/chunks/{useCloudI18n-DSWSGj-A.js.map → useCloudI18n-OezCj0cx.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorCore-Cs7rYVBo.js → useEditorCore-06PtcUi1.js} +482 -473
- package/dist/cdn/chunks/useEditorCore-06PtcUi1.js.map +1 -0
- package/dist/cdn/chunks/{useEditorRoot-B0zW2nT4.js → useEditorRoot-ByHPMqYT.js} +2 -2
- package/dist/cdn/chunks/{useEditorRoot-B0zW2nT4.js.map → useEditorRoot-ByHPMqYT.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-Dlo7R9RA.js → useI18n-BhE7ndNr.js} +2 -2
- package/dist/cdn/chunks/{useI18n-Dlo7R9RA.js.map → useI18n-BhE7ndNr.js.map} +1 -1
- package/dist/cdn/chunks/useMergeTag-DE2mpy1w.js +60 -0
- package/dist/cdn/chunks/useMergeTag-DE2mpy1w.js.map +1 -0
- package/dist/cdn/chunks/{usePopoverPosition-ElP3ABaV.js → usePopoverPosition-BPL891uG.js} +2 -2
- package/dist/cdn/chunks/{usePopoverPosition-ElP3ABaV.js.map → usePopoverPosition-BPL891uG.js.map} +1 -1
- package/dist/cdn/chunks/{useScrollToBlock-nTbWkgaU.js → useScrollToBlock-DwF4pVur.js} +2 -2
- package/dist/cdn/chunks/{useScrollToBlock-nTbWkgaU.js.map → useScrollToBlock-DwF4pVur.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +894 -857
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-DWtkBzBU.js → check-9xX6RVHz.js} +1 -1
- package/dist/{chevron-down-C-Fjxcqj.js → chevron-down-J5hFJ6TL.js} +1 -1
- package/dist/{chevron-right-SOkn2d4P.js → chevron-right-BJuo5PQ-.js} +1 -1
- package/dist/{chevron-up-lntU1ypp.js → chevron-up-Qfi5k52_.js} +1 -1
- package/dist/{circle-alert-CjzUTwy3.js → circle-alert-BiArYmkB.js} +1 -1
- package/dist/{clock-pB2QKPsJ.js → clock-BkYJZ7Y0.js} +1 -1
- package/dist/{copy-CId1E038.js → copy-BRLUNHwF.js} +1 -1
- package/dist/{createCloudRuntime-x5WZm3p8.js → createCloudRuntime-CNFXaTNQ.js} +1 -1
- package/dist/{createLucideIcon-Cwf_nTzE.js → createLucideIcon-CDDkF1Tm.js} +5 -5
- package/dist/{de-BUPszLpi.js → de-CONjnzrF.js} +5 -1
- package/dist/{editor-modal-B_LaQf0s.js → editor-modal-uAEB6xKz.js} +15 -15
- package/dist/{en-BbOC5x3w.js → en-BAMooiOF.js} +5 -1
- package/dist/en-CQWkDCpm.js +2 -0
- package/dist/{cdn/chunks/es-0bCDcT9p.js → es-I47lHs2m.js} +5 -3
- package/dist/{extensions-CHOBZRab.js → extensions-CcGj7OfS.js} +129 -104
- package/dist/{eye-BuGtFUoJ.js → eye-DwhBOaV8.js} +1 -1
- package/dist/{fr-Brr8mJ9e.js → fr-B8MIKjT4.js} +5 -1
- package/dist/{image-up-gH4JEpU5.js → image-up-CiyQNZBt.js} +1 -1
- package/dist/index.d.ts +15 -0
- package/dist/{info-BQ60P82u.js → info-D6A1qEiF.js} +1 -1
- package/dist/keys-DD1rl72F.js +10 -0
- package/dist/{link-3R8it3J7.js → link-tKGmYWsB.js} +1 -1
- package/dist/{list-Ccdgj46T.js → list-DjZQRpeI.js} +1 -1
- package/dist/{loader-circle-B_tAD4k6.js → loader-circle-D9ZL3Sv0.js} +1 -1
- package/dist/{message-circle-P-KSc6V0.js → message-circle-KTHxCcpB.js} +1 -1
- package/dist/{cdn/chunks/nl-Co3_RL0M.js → nl-CBLxcb-0.js} +5 -3
- package/dist/{pencil-9ZiwqS4r.js → pencil-Bq-nbQ7F.js} +1 -1
- package/dist/{plus-BwJEzCaO.js → plus-CRMnR4IG.js} +1 -1
- package/dist/{cdn/chunks/pt-BR-BECez5b0.js → pt-BR-CMSRfX7t.js} +5 -3
- package/dist/{refresh-cw-DEgfb2FK.js → refresh-cw-D7bYS5tm.js} +1 -1
- package/dist/{search-DqQ8Li5E.js → search-DUo0YwPz.js} +1 -1
- package/dist/{send-CE6uvqop.js → send-DaVMQphu.js} +1 -1
- package/dist/{shield-check-DhD1Z3rd.js → shield-check-DxaaurL9.js} +1 -1
- package/dist/{sparkles-R0ZQHa6F.js → sparkles-D6T6k30e.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/templatical-editor.js +1156 -1119
- package/dist/{text-align-start-DSux2UNn.js → text-align-start-vreFpmCX.js} +1 -1
- package/dist/{trash-Cf_SqsER.js → trash-DBv8MGY6.js} +1 -1
- package/dist/{triangle-alert-C6tGa6jw.js → triangle-alert-CmNS2LLv.js} +1 -1
- package/dist/{upload-DusKjpVr.js → upload-DDB9Fs0P.js} +1 -1
- package/dist/{useCloudI18n-BLyh_e2T.js → useCloudI18n-C1wuXik6.js} +1 -1
- package/dist/{useEditorCore-DhlKOYwe.js → useEditorCore-jfwgLThK.js} +1077 -1068
- package/dist/{useEditorRoot-ds57-l6F.js → useEditorRoot-eVv4doqZ.js} +1 -1
- package/dist/{useI18n-BbdxxpOE.js → useI18n-VOtdfENx.js} +1 -1
- package/dist/useMergeTag-CQM9pFca.js +58 -0
- package/dist/{usePopoverPosition-CprM5p-c.js → usePopoverPosition-gZjRywai.js} +1 -1
- package/dist/{useScrollToBlock-BTFw0b9O.js → useScrollToBlock-C0Ehnyl4.js} +2 -2
- package/dist/{x-D_-42Ukq.js → x-B7sgO_z8.js} +1 -1
- package/package.json +10 -10
- package/dist/cdn/chunks/AiChatSidebar-dyqqHAcI.js.map +0 -1
- package/dist/cdn/chunks/MergeTagInput-l7paaAml.js +0 -419
- package/dist/cdn/chunks/MergeTagInput-l7paaAml.js.map +0 -1
- package/dist/cdn/chunks/MergeTagSuggestion-t8Uj00Er.js.map +0 -1
- package/dist/cdn/chunks/TemplateScoringPanel-DBjUNULq.js.map +0 -1
- package/dist/cdn/chunks/TestEmailModal-BTNlSW6f.js.map +0 -1
- package/dist/cdn/chunks/TitleEditor-CrnuIq62.js.map +0 -1
- package/dist/cdn/chunks/en-C9U7N77n.js +0 -2
- package/dist/cdn/chunks/extensions-B8_jnIkD.js.map +0 -1
- package/dist/cdn/chunks/htmlparser-DTML8Gvz.js +0 -1007
- package/dist/cdn/chunks/htmlparser-DTML8Gvz.js.map +0 -1
- package/dist/cdn/chunks/keys-DBFhDFng.js +0 -12
- package/dist/cdn/chunks/keys-DBFhDFng.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-Cs7rYVBo.js.map +0 -1
- package/dist/cdn/chunks/useMergeTag-BYAifvh8.js +0 -46
- package/dist/cdn/chunks/useMergeTag-BYAifvh8.js.map +0 -1
- package/dist/en-DcmpWV53.js +0 -2
- package/dist/keys-DQA2i1k1.js +0 -10
- package/dist/useMergeTag-DlvOBW_B.js +0 -44
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { A as e, At as t, B as n, F as r, M as i, R as ee, S as a, Z as
|
|
2
|
-
import { t as
|
|
3
|
-
import { D as re,
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as ce } from "./triangle-alert-
|
|
14
|
-
import { t as le } from "./x-
|
|
1
|
+
import { A as e, At as t, B as n, F as r, M as i, R as ee, S as a, Z as o, at as s, c, d as l, g as u, h as d, jt as f, kt as p, l as m, r as h, u as g, v as _ } from "./vue.runtime.esm-bundler-DShF3P6k.js";
|
|
2
|
+
import { t as te } from "./runtime-dom.esm-bundler-PnoZU512.js";
|
|
3
|
+
import { D as ne, P as re, U as v, Z as y, g as b } from "./keys-DD1rl72F.js";
|
|
4
|
+
import { t as x } from "./createLucideIcon-CDDkF1Tm.js";
|
|
5
|
+
import { t as ie } from "./chevron-down-J5hFJ6TL.js";
|
|
6
|
+
import { t as S } from "./circle-alert-BiArYmkB.js";
|
|
7
|
+
import { t as ae } from "./eye-DwhBOaV8.js";
|
|
8
|
+
import { t as oe } from "./info-D6A1qEiF.js";
|
|
9
|
+
import { t as se } from "./loader-circle-D9ZL3Sv0.js";
|
|
10
|
+
import { t as C } from "./refresh-cw-D7bYS5tm.js";
|
|
11
|
+
import { t as w } from "./shield-check-DxaaurL9.js";
|
|
12
|
+
import { t as T } from "./sparkles-D6T6k30e.js";
|
|
13
|
+
import { t as ce } from "./triangle-alert-CmNS2LLv.js";
|
|
14
|
+
import { t as le } from "./x-B7sgO_z8.js";
|
|
15
15
|
import { t as ue } from "./LoadingTrack-BlTL4zFv.js";
|
|
16
|
-
import { t as
|
|
17
|
-
import { n as
|
|
18
|
-
var
|
|
16
|
+
import { t as E } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
17
|
+
import { n as D } from "./useCloudI18n-C1wuXik6.js";
|
|
18
|
+
var O = x({
|
|
19
19
|
name: "shield-x",
|
|
20
20
|
size: 24,
|
|
21
21
|
node: [
|
|
@@ -33,7 +33,7 @@ var D = v({
|
|
|
33
33
|
}]
|
|
34
34
|
],
|
|
35
35
|
aliases: ["shield-close"]
|
|
36
|
-
}),
|
|
36
|
+
}), k = x({
|
|
37
37
|
name: "zap",
|
|
38
38
|
size: 24,
|
|
39
39
|
node: [["path", {
|
|
@@ -43,71 +43,71 @@ var D = v({
|
|
|
43
43
|
});
|
|
44
44
|
//#endregion
|
|
45
45
|
//#region src/cloud/utils/scoringStyles.ts
|
|
46
|
-
function
|
|
46
|
+
function A(e) {
|
|
47
47
|
return e >= 80 ? "var(--tpl-success)" : e >= 60 ? "var(--tpl-warning)" : "var(--tpl-danger)";
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function j(e) {
|
|
50
50
|
return e >= 80 ? "var(--tpl-success-light)" : e >= 60 ? "var(--tpl-warning-light)" : "var(--tpl-danger-light)";
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function M(e) {
|
|
53
53
|
return e === "high" ? "var(--tpl-danger)" : e === "medium" ? "var(--tpl-warning)" : "var(--tpl-text-muted)";
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function N(e) {
|
|
56
56
|
return e === "high" ? "var(--tpl-danger-light)" : e === "medium" ? "var(--tpl-warning-light)" : "var(--tpl-bg-hover)";
|
|
57
57
|
}
|
|
58
58
|
//#endregion
|
|
59
59
|
//#region src/cloud/components/TemplateScoringPanel.vue?vue&type=script&setup=true&lang.ts
|
|
60
|
-
var
|
|
60
|
+
var P = {
|
|
61
61
|
key: 0,
|
|
62
62
|
class: "tpl-scoring-panel tpl:absolute tpl:top-14 tpl:right-0 tpl:bottom-0 tpl:flex tpl:w-[360px] tpl:flex-col tpl:border-l tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)]"
|
|
63
|
-
},
|
|
63
|
+
}, F = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3" }, I = { class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-primary)]" }, L = { class: "tpl:flex tpl:items-center tpl:gap-1" }, R = ["title"], z = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, B = {
|
|
64
64
|
key: 0,
|
|
65
65
|
class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:text-center"
|
|
66
|
-
},
|
|
66
|
+
}, V = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, H = {
|
|
67
67
|
key: 1,
|
|
68
68
|
class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:text-center"
|
|
69
|
-
},
|
|
69
|
+
}, U = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, de = {
|
|
70
70
|
key: 2,
|
|
71
71
|
class: "tpl:flex tpl:flex-col tpl:gap-4"
|
|
72
|
-
},
|
|
72
|
+
}, fe = { class: "tpl:text-xs tpl:font-medium tpl:uppercase tpl:tracking-wider tpl:text-[var(--tpl-text-muted)]" }, pe = {
|
|
73
73
|
key: 0,
|
|
74
74
|
class: "tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
75
|
-
},
|
|
75
|
+
}, me = {
|
|
76
76
|
key: 0,
|
|
77
77
|
class: "tpl:flex tpl:items-start tpl:gap-2 tpl:rounded-lg tpl:px-3 tpl:py-2 tpl:text-xs tpl:bg-[var(--tpl-danger-light)] tpl:text-[var(--tpl-danger)]"
|
|
78
|
-
},
|
|
78
|
+
}, he = ["onClick"], ge = { class: "tpl:flex-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, _e = {
|
|
79
79
|
key: 0,
|
|
80
80
|
class: "tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]"
|
|
81
|
-
},
|
|
81
|
+
}, ve = {
|
|
82
82
|
key: 0,
|
|
83
83
|
class: "tpl:border-t tpl:border-[var(--tpl-border)]"
|
|
84
|
-
},
|
|
84
|
+
}, ye = {
|
|
85
85
|
key: 0,
|
|
86
86
|
class: "tpl:px-3 tpl:py-3 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
87
|
-
},
|
|
87
|
+
}, be = { class: "tpl:flex tpl:items-start tpl:gap-2" }, xe = { class: "tpl:flex-1 tpl:min-w-0" }, Se = { class: "tpl:flex tpl:items-start tpl:gap-1.5" }, Ce = { class: "tpl:text-xs tpl:leading-snug tpl:text-[var(--tpl-text)]" }, we = {
|
|
88
88
|
key: 0,
|
|
89
89
|
class: "tpl:mt-1 tpl:text-[11px] tpl:leading-snug tpl:text-[var(--tpl-text-dim)]"
|
|
90
|
-
},
|
|
90
|
+
}, Te = {
|
|
91
91
|
key: 1,
|
|
92
92
|
class: "tpl:mt-2 tpl:flex tpl:justify-center"
|
|
93
|
-
},
|
|
93
|
+
}, Ee = ["disabled", "onClick"], De = {
|
|
94
94
|
key: 0,
|
|
95
95
|
class: "tpl:mt-1.5 tpl:text-[11px] tpl:text-[var(--tpl-danger)]"
|
|
96
|
-
},
|
|
96
|
+
}, Oe = {
|
|
97
97
|
key: 3,
|
|
98
98
|
class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:text-center"
|
|
99
|
-
},
|
|
99
|
+
}, ke = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, W = { class: "tpl:m-0 tpl:px-4 tpl:pb-2 tpl:pt-2 tpl:text-center tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, G = /*#__PURE__*/ E(/* @__PURE__ */ _({
|
|
100
100
|
__name: "TemplateScoringPanel",
|
|
101
101
|
props: { visible: { type: Boolean } },
|
|
102
102
|
emits: ["close"],
|
|
103
|
-
setup(
|
|
104
|
-
let
|
|
103
|
+
setup(_, { emit: x }) {
|
|
104
|
+
let E = _, G = x, { t: K } = D(), q = y(b, "TemplateScoringPanel"), J = y(v, "TemplateScoringPanel"), Y = a(ne, re), X = o({
|
|
105
105
|
spam: !0,
|
|
106
106
|
readability: !0,
|
|
107
107
|
accessibility: !0,
|
|
108
108
|
bestPractices: !0
|
|
109
109
|
});
|
|
110
|
-
function
|
|
110
|
+
function Ae(e) {
|
|
111
111
|
X.value[e] = !X.value[e];
|
|
112
112
|
}
|
|
113
113
|
let Z = [
|
|
@@ -115,31 +115,31 @@ var N = {
|
|
|
115
115
|
"readability",
|
|
116
116
|
"accessibility",
|
|
117
117
|
"bestPractices"
|
|
118
|
-
],
|
|
119
|
-
spam:
|
|
120
|
-
readability:
|
|
121
|
-
accessibility:
|
|
122
|
-
bestPractices:
|
|
118
|
+
], je = {
|
|
119
|
+
spam: O,
|
|
120
|
+
readability: ae,
|
|
121
|
+
accessibility: T,
|
|
122
|
+
bestPractices: k
|
|
123
123
|
};
|
|
124
124
|
function Q() {
|
|
125
|
-
J.score(q.content.value, Y);
|
|
125
|
+
J.score(q.content.value, Y.value);
|
|
126
126
|
}
|
|
127
|
-
ee(() =>
|
|
127
|
+
ee(() => E.visible, (e) => {
|
|
128
128
|
e && !J.scoringResult.value && !J.isScoring.value && Q();
|
|
129
129
|
});
|
|
130
|
-
async function
|
|
130
|
+
async function Me(e) {
|
|
131
131
|
if (!e.blockId) return;
|
|
132
132
|
let t = q.content.value.blocks.find((t) => t.id === e.blockId);
|
|
133
133
|
if (!t) return;
|
|
134
134
|
let n = t.content;
|
|
135
135
|
if (!n) return;
|
|
136
|
-
let r = await J.fixFinding(n, e, Y);
|
|
136
|
+
let r = await J.fixFinding(n, e, Y.value);
|
|
137
137
|
r && (q.updateBlock(e.blockId, { content: r }), J.removeFinding(e.category, e.id));
|
|
138
138
|
}
|
|
139
139
|
function $() {
|
|
140
140
|
return J.scoringResult.value ? Z.reduce((e, t) => e + (J.scoringResult.value?.categories[t]?.findings.length ?? 0), 0) : 0;
|
|
141
141
|
}
|
|
142
|
-
return (ee, a) => (e(),
|
|
142
|
+
return (ee, a) => (e(), m(te, {
|
|
143
143
|
"enter-active-class": "tpl-scoring-slide-enter-active",
|
|
144
144
|
"enter-from-class": "tpl:translate-x-full",
|
|
145
145
|
"enter-to-class": "tpl:translate-x-0",
|
|
@@ -147,121 +147,121 @@ var N = {
|
|
|
147
147
|
"leave-from-class": "tpl:translate-x-0",
|
|
148
148
|
"leave-to-class": "tpl:translate-x-full"
|
|
149
149
|
}, {
|
|
150
|
-
default: n(() => [
|
|
150
|
+
default: n(() => [_.visible ? (e(), l("div", P, [c("div", F, [c("div", I, [u(s(w), {
|
|
151
151
|
size: 13,
|
|
152
152
|
"stroke-width": 2
|
|
153
|
-
}),
|
|
153
|
+
}), c("span", null, f(s(K).scoring.title), 1)]), c("div", L, [s(J).scoringResult.value && !s(J).isScoring.value ? (e(), l("button", {
|
|
154
154
|
key: 0,
|
|
155
155
|
class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:text-[var(--tpl-text-muted)]",
|
|
156
|
-
title:
|
|
156
|
+
title: s(K).scoring.rescore,
|
|
157
157
|
onClick: a[0] ||= (e) => Q()
|
|
158
|
-
}, [
|
|
158
|
+
}, [u(s(C), {
|
|
159
159
|
size: 14,
|
|
160
160
|
"stroke-width": 2
|
|
161
|
-
})], 8,
|
|
161
|
+
})], 8, R)) : g("", !0), c("button", {
|
|
162
162
|
class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:text-[var(--tpl-text-muted)]",
|
|
163
163
|
onClick: a[1] ||= (e) => G("close")
|
|
164
|
-
}, [
|
|
164
|
+
}, [u(s(le), {
|
|
165
165
|
size: 14,
|
|
166
166
|
"stroke-width": 2
|
|
167
|
-
})])])]),
|
|
168
|
-
|
|
167
|
+
})])])]), c("div", z, [s(J).isScoring.value ? (e(), l("div", B, [c("p", V, f(s(K).scoring.scoring), 1), u(ue, { class: "tpl:w-3/4" })])) : s(J).error.value && !s(J).scoringResult.value ? (e(), l("div", H, [
|
|
168
|
+
u(s(S), {
|
|
169
169
|
size: 32,
|
|
170
170
|
"stroke-width": 1.5,
|
|
171
171
|
class: "tpl:text-[var(--tpl-danger)]"
|
|
172
172
|
}),
|
|
173
|
-
|
|
174
|
-
|
|
173
|
+
c("p", U, f(s(K).scoring.error), 1),
|
|
174
|
+
c("button", {
|
|
175
175
|
class: "tpl:mt-2 tpl:inline-flex tpl:items-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-muted)]",
|
|
176
176
|
onClick: a[2] ||= (e) => Q()
|
|
177
|
-
}, [
|
|
177
|
+
}, [u(s(C), {
|
|
178
178
|
size: 12,
|
|
179
179
|
"stroke-width": 2
|
|
180
|
-
}),
|
|
181
|
-
])) :
|
|
182
|
-
|
|
180
|
+
}), d(" " + f(s(K).scoring.rescore), 1)])
|
|
181
|
+
])) : s(J).scoringResult.value ? (e(), l("div", de, [
|
|
182
|
+
c("div", {
|
|
183
183
|
class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-2 tpl:rounded-[var(--tpl-radius)] tpl:p-5",
|
|
184
|
-
style: t({ backgroundColor:
|
|
184
|
+
style: t({ backgroundColor: s(j)(s(J).scoringResult.value.score) })
|
|
185
185
|
}, [
|
|
186
|
-
|
|
186
|
+
c("span", {
|
|
187
187
|
class: "tpl:text-4xl tpl:font-bold tpl:tabular-nums",
|
|
188
|
-
style: t({ color:
|
|
189
|
-
},
|
|
190
|
-
|
|
191
|
-
$() > 0 ? (e(),
|
|
188
|
+
style: t({ color: s(A)(s(J).scoringResult.value.score) })
|
|
189
|
+
}, f(s(J).scoringResult.value.score), 5),
|
|
190
|
+
c("span", fe, f(s(K).scoring.overallScore), 1),
|
|
191
|
+
$() > 0 ? (e(), l("span", pe, f($()) + " " + f(s(K).scoring.findings), 1)) : g("", !0)
|
|
192
192
|
], 4),
|
|
193
|
-
|
|
193
|
+
s(J).fixError.value ? (e(), l("div", me, [u(s(S), {
|
|
194
194
|
size: 14,
|
|
195
195
|
"stroke-width": 2,
|
|
196
196
|
class: "tpl:mt-0.5 tpl:shrink-0"
|
|
197
|
-
}),
|
|
198
|
-
(e(),
|
|
197
|
+
}), c("span", null, f(s(K).scoring.fixError), 1)])) : g("", !0),
|
|
198
|
+
(e(), l(h, null, i(Z, (n) => c("div", {
|
|
199
199
|
key: n,
|
|
200
200
|
class: "tpl:overflow-hidden tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)]"
|
|
201
|
-
}, [
|
|
201
|
+
}, [c("button", {
|
|
202
202
|
class: "tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-center tpl:gap-2.5 tpl:px-3 tpl:py-2.5 tpl:text-left tpl:transition-colors tpl:bg-[var(--tpl-bg)]",
|
|
203
|
-
onClick: (e) =>
|
|
203
|
+
onClick: (e) => Ae(n)
|
|
204
204
|
}, [
|
|
205
|
-
(e(),
|
|
205
|
+
(e(), m(r(je[n]), {
|
|
206
206
|
size: 14,
|
|
207
207
|
"stroke-width": 2,
|
|
208
|
-
style: t({ color:
|
|
208
|
+
style: t({ color: s(A)(s(J).scoringResult.value.categories[n].score) })
|
|
209
209
|
}, null, 8, ["style"])),
|
|
210
|
-
|
|
211
|
-
|
|
210
|
+
c("span", ge, f(s(K).scoring.categories[n]), 1),
|
|
211
|
+
c("span", {
|
|
212
212
|
class: "tpl:rounded-full tpl:px-2 tpl:py-0.5 tpl:text-xs tpl:font-semibold tpl:tabular-nums",
|
|
213
213
|
style: t({
|
|
214
|
-
color:
|
|
215
|
-
backgroundColor:
|
|
214
|
+
color: s(A)(s(J).scoringResult.value.categories[n].score),
|
|
215
|
+
backgroundColor: s(j)(s(J).scoringResult.value.categories[n].score)
|
|
216
216
|
})
|
|
217
|
-
},
|
|
218
|
-
|
|
219
|
-
|
|
217
|
+
}, f(s(J).scoringResult.value.categories[n].score), 5),
|
|
218
|
+
s(J).scoringResult.value.categories[n].findings.length > 0 ? (e(), l("span", _e, f(s(J).scoringResult.value.categories[n].findings.length), 1)) : g("", !0),
|
|
219
|
+
u(s(ie), {
|
|
220
220
|
size: 12,
|
|
221
221
|
"stroke-width": 2,
|
|
222
|
-
class:
|
|
222
|
+
class: p(["tpl:transition-transform tpl:duration-200 tpl:text-[var(--tpl-text-dim)]", X.value[n] ? "tpl:rotate-0" : "tpl:-rotate-90"])
|
|
223
223
|
}, null, 8, ["class"])
|
|
224
|
-
], 8,
|
|
224
|
+
], 8, he), X.value[n] ? (e(), l("div", ve, [s(J).scoringResult.value.categories[n].findings.length === 0 ? (e(), l("div", ye, f(s(K).scoring.noFindings), 1)) : g("", !0), (e(!0), l(h, null, i(s(J).scoringResult.value.categories[n].findings, (n) => (e(), l("div", {
|
|
225
225
|
key: n.id,
|
|
226
226
|
class: "tpl:border-t tpl:px-3 tpl:py-2.5 tpl:first:border-t-0 tpl:border-[var(--tpl-border-light)]"
|
|
227
|
-
}, [
|
|
227
|
+
}, [c("div", be, [(e(), m(r(n.severity === "high" ? s(S) : n.severity === "medium" ? s(ce) : s(oe)), {
|
|
228
228
|
size: 13,
|
|
229
229
|
"stroke-width": 2,
|
|
230
230
|
class: "tpl:mt-0.5 tpl:shrink-0",
|
|
231
|
-
style: t({ color:
|
|
232
|
-
}, null, 8, ["style"])),
|
|
233
|
-
|
|
231
|
+
style: t({ color: s(M)(n.severity) })
|
|
232
|
+
}, null, 8, ["style"])), c("div", xe, [
|
|
233
|
+
c("div", Se, [c("span", {
|
|
234
234
|
class: "tpl:mt-0.5 tpl:shrink-0 tpl:rounded tpl:px-1 tpl:py-px tpl:text-[10px] tpl:font-medium tpl:leading-tight",
|
|
235
235
|
style: t({
|
|
236
|
-
color:
|
|
237
|
-
backgroundColor:
|
|
236
|
+
color: s(M)(n.severity),
|
|
237
|
+
backgroundColor: s(N)(n.severity)
|
|
238
238
|
})
|
|
239
|
-
},
|
|
240
|
-
n.suggestion ? (e(),
|
|
241
|
-
n.blockId ? (e(),
|
|
239
|
+
}, f(s(K).scoring.severity[n.severity]), 5), c("span", Ce, f(n.message), 1)]),
|
|
240
|
+
n.suggestion ? (e(), l("p", we, f(n.suggestion), 1)) : g("", !0),
|
|
241
|
+
n.blockId ? (e(), l("div", Te, [c("button", {
|
|
242
242
|
class: "tpl-scoring-fix-btn tpl:inline-flex tpl:items-center tpl:gap-1.5 tpl:rounded tpl:border tpl:px-3 tpl:py-1.5 tpl:text-[11px] tpl:font-medium tpl:transition-all tpl:disabled:opacity-50 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-primary)]",
|
|
243
243
|
style: { "background-color": "transparent" },
|
|
244
|
-
disabled:
|
|
245
|
-
onClick: (e) =>
|
|
246
|
-
}, [
|
|
244
|
+
disabled: s(J).fixingFindingId.value !== null,
|
|
245
|
+
onClick: (e) => Me(n)
|
|
246
|
+
}, [s(J).fixingFindingId.value === n.id ? (e(), m(s(se), {
|
|
247
247
|
key: 0,
|
|
248
248
|
class: "tpl-spinner",
|
|
249
249
|
size: 11,
|
|
250
250
|
"stroke-width": 2
|
|
251
|
-
})) : (e(),
|
|
251
|
+
})) : (e(), m(s(T), {
|
|
252
252
|
key: 1,
|
|
253
253
|
size: 11,
|
|
254
254
|
"stroke-width": 2
|
|
255
|
-
})),
|
|
256
|
-
])])]))), 128))])) :
|
|
257
|
-
])) : (e(),
|
|
255
|
+
})), d(" " + f(s(J).fixingFindingId.value === n.id ? s(K).scoring.fixing : s(K).scoring.fix), 1)], 8, Ee), s(J).fixError.value ? (e(), l("p", De, f(s(J).fixError.value), 1)) : g("", !0)])) : g("", !0)
|
|
256
|
+
])])]))), 128))])) : g("", !0)])), 64))
|
|
257
|
+
])) : (e(), l("div", Oe, [u(s(w), {
|
|
258
258
|
size: 32,
|
|
259
259
|
"stroke-width": 1.5,
|
|
260
260
|
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
261
|
-
}),
|
|
261
|
+
}), c("p", ke, f(s(K).scoring.emptyState), 1)])), c("p", W, f(s(K).aiMenu.disclaimer), 1)])])) : g("", !0)]),
|
|
262
262
|
_: 1
|
|
263
263
|
}));
|
|
264
264
|
}
|
|
265
|
-
}), [["__scopeId", "data-v-
|
|
265
|
+
}), [["__scopeId", "data-v-e9458def"]]);
|
|
266
266
|
//#endregion
|
|
267
267
|
export { G as default };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { A as e, B as t, M as n, R as r, S as i, V as a, Z as o, at as s, c, d as l, g as u, h as d, jt as f, kt as p, l as m, r as h, s as g, u as _, v } from "./vue.runtime.esm-bundler-DShF3P6k.js";
|
|
2
|
-
import { a as ee, i as
|
|
3
|
-
import { N as
|
|
4
|
-
import { X as
|
|
5
|
-
import { D as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { n as
|
|
10
|
-
import { v as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
2
|
+
import { a as ee, i as te } from "./runtime-dom.esm-bundler-PnoZU512.js";
|
|
3
|
+
import { N as ne } from "./dist-tGkjkX-v.js";
|
|
4
|
+
import { X as re } from "./useEditorCore-jfwgLThK.js";
|
|
5
|
+
import { D as ie, P as ae, V as y, g as oe, j as se } from "./keys-DD1rl72F.js";
|
|
6
|
+
import { t as ce } from "./useI18n-VOtdfENx.js";
|
|
7
|
+
import { t as le } from "./check-9xX6RVHz.js";
|
|
8
|
+
import { t as ue } from "./loader-circle-D9ZL3Sv0.js";
|
|
9
|
+
import { n as de, t as fe } from "./MergeTagModeToggle-DGuzSAdX.js";
|
|
10
|
+
import { v as pe } from "./styleConstants-C_YAPdQS.js";
|
|
11
|
+
import { t as me } from "./TplModal-BIDJw4Kj.js";
|
|
12
|
+
import { t as he } from "./BlockPreviewCanvas-C_rA5LJN.js";
|
|
13
13
|
//#region src/utils/validateEmailShape.ts
|
|
14
14
|
var b = /[,;<>()[\]\\"'`|/?#@!$%^&*+=~{}]/;
|
|
15
|
-
function
|
|
15
|
+
function x(e) {
|
|
16
16
|
let t = e.trim();
|
|
17
17
|
if (t.length === 0 || /\s/.test(t)) return !1;
|
|
18
18
|
let n = t.split("@");
|
|
@@ -24,47 +24,47 @@ function he(e) {
|
|
|
24
24
|
}
|
|
25
25
|
//#endregion
|
|
26
26
|
//#region src/components/TestEmailModal.vue?vue&type=script&setup=true&lang.ts
|
|
27
|
-
var
|
|
27
|
+
var S = ["aria-busy"], C = {
|
|
28
28
|
id: "tpl-test-email-title",
|
|
29
29
|
class: "tpl:mb-4 tpl:shrink-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
|
|
30
|
-
},
|
|
30
|
+
}, w = { class: "tpl:mb-3 tpl:shrink-0" }, T = {
|
|
31
31
|
for: "tpl-test-email-recipient",
|
|
32
32
|
class: "tpl:mb-1.5 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]"
|
|
33
|
-
},
|
|
33
|
+
}, E = ["value"], D = ["disabled"], O = ["value"], k = ["placeholder", "disabled"], A = {
|
|
34
34
|
key: 3,
|
|
35
35
|
class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
36
|
-
},
|
|
36
|
+
}, j = { class: "tpl:mb-2 tpl:shrink-0" }, M = { class: "tpl:flex tpl:flex-wrap tpl:items-center tpl:justify-between tpl:gap-2" }, N = { class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, P = { class: "tpl:flex tpl:items-center tpl:gap-2" }, F = {
|
|
37
37
|
"data-testid": "test-email-preview-hint",
|
|
38
38
|
class: "tpl:mt-1 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
39
|
-
},
|
|
39
|
+
}, I = {
|
|
40
40
|
id: "tpl-test-email-preview",
|
|
41
41
|
"data-testid": "test-email-preview",
|
|
42
42
|
class: "tpl:mb-3 tpl:min-h-0 tpl:flex-1 tpl:overflow-y-auto tpl:rounded-[var(--tpl-radius-sm)] tpl:p-3 tpl:bg-[var(--tpl-canvas-bg)]"
|
|
43
|
-
},
|
|
43
|
+
}, L = {
|
|
44
44
|
key: 0,
|
|
45
45
|
role: "status",
|
|
46
46
|
"aria-busy": "true",
|
|
47
47
|
"data-testid": "preview-resolution-loading",
|
|
48
48
|
class: "tpl:flex tpl:flex-col tpl:gap-3"
|
|
49
|
-
},
|
|
49
|
+
}, R = { class: "tpl:sr-only" }, ge = {
|
|
50
50
|
key: 1,
|
|
51
51
|
role: "status",
|
|
52
52
|
"data-testid": "preview-resolution-failed",
|
|
53
53
|
class: "tpl:mb-2 tpl:rounded-md tpl:px-3 tpl:py-2 tpl:text-xs tpl:text-[var(--tpl-text-muted)] tpl:bg-[var(--tpl-bg-hover)]"
|
|
54
|
-
},
|
|
54
|
+
}, _e = {
|
|
55
55
|
key: 0,
|
|
56
56
|
role: "status",
|
|
57
57
|
"data-testid": "test-email-success",
|
|
58
58
|
class: "tpl:mb-3 tpl:flex tpl:shrink-0 tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-success,var(--tpl-primary))]"
|
|
59
|
-
},
|
|
59
|
+
}, ve = {
|
|
60
60
|
key: 1,
|
|
61
61
|
role: "alert",
|
|
62
62
|
"data-testid": "test-email-error",
|
|
63
63
|
class: "tpl:mb-3 tpl:shrink-0 tpl:text-xs tpl:text-[var(--tpl-danger)]"
|
|
64
|
-
},
|
|
64
|
+
}, ye = { class: "tpl:flex tpl:shrink-0 tpl:justify-end tpl:gap-2" }, be = ["disabled"], xe = ["disabled"], Se = {
|
|
65
65
|
key: 0,
|
|
66
66
|
class: "tpl:flex tpl:items-center tpl:gap-1.5"
|
|
67
|
-
},
|
|
67
|
+
}, Ce = { key: 1 }, z = /* @__PURE__ */ v({
|
|
68
68
|
__name: "TestEmailModal",
|
|
69
69
|
props: {
|
|
70
70
|
visible: { type: Boolean },
|
|
@@ -76,37 +76,37 @@ var x = ["aria-busy"], S = {
|
|
|
76
76
|
},
|
|
77
77
|
emits: ["send", "close"],
|
|
78
78
|
setup(v, { emit: b }) {
|
|
79
|
-
let z = v, B = b, { t: V } =
|
|
80
|
-
resolvePreview:
|
|
81
|
-
getContent: () =>
|
|
79
|
+
let z = v, B = b, { t: V } = ce(), we = i(oe, null), H = o(""), U = o("desktop"), Te = i(y, void 0), W = re({
|
|
80
|
+
resolvePreview: Te ?? void 0,
|
|
81
|
+
getContent: () => we?.content.value ?? {
|
|
82
82
|
blocks: [],
|
|
83
83
|
settings: {}
|
|
84
84
|
},
|
|
85
85
|
isActive: () => z.visible,
|
|
86
86
|
getRecipient: () => H.value || void 0
|
|
87
|
-
}), G = i(
|
|
87
|
+
}), G = i(se, null), K = o(ne(i(ie, ae).value)), q = g({
|
|
88
88
|
get: () => W.isConfigured ? !1 : G?.value ?? K.value,
|
|
89
89
|
set: (e) => {
|
|
90
90
|
G ? G.value = e : K.value = e;
|
|
91
91
|
}
|
|
92
|
-
}),
|
|
92
|
+
}), Ee = g(() => W.content.value.blocks ?? []), J = g(() => z.allowedRecipients !== void 0 && z.allowedRecipients.length > 0), De = g(() => z.allowedRecipients?.length === 1);
|
|
93
93
|
r(() => z.visible, (e) => {
|
|
94
94
|
e && (H.value = z.defaultRecipient ?? z.allowedRecipients?.[0] ?? "");
|
|
95
95
|
}, { immediate: !0 });
|
|
96
|
-
let Y = g(() => J.value ? H.value.length > 0 :
|
|
96
|
+
let Y = g(() => J.value ? H.value.length > 0 : x(H.value)), X = g(() => Y.value && !z.isSending && !z.justSent), Oe = g(() => !J.value && H.value.trim().length > 0 && !Y.value), Z = g(() => z.error ? z.error.kind === "provider" ? z.error.message : V.testEmail.recipientNotAllowed : null);
|
|
97
97
|
function Q() {
|
|
98
98
|
X.value && B("send", H.value.trim());
|
|
99
99
|
}
|
|
100
100
|
function $() {
|
|
101
101
|
z.isSending || B("close");
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function ke(e) {
|
|
104
104
|
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Q()), e.key === "Escape" && $();
|
|
105
105
|
}
|
|
106
|
-
return (r, i) => (e(), m(
|
|
106
|
+
return (r, i) => (e(), m(me, {
|
|
107
107
|
visible: v.visible,
|
|
108
108
|
onClose: $,
|
|
109
|
-
onKeydown:
|
|
109
|
+
onKeydown: ke
|
|
110
110
|
}, {
|
|
111
111
|
default: t(() => [c("div", {
|
|
112
112
|
role: "dialog",
|
|
@@ -119,10 +119,10 @@ var x = ["aria-busy"], S = {
|
|
|
119
119
|
"box-shadow": "var(--tpl-shadow-xl)"
|
|
120
120
|
}
|
|
121
121
|
}, [
|
|
122
|
-
c("h3",
|
|
123
|
-
c("div",
|
|
124
|
-
c("label",
|
|
125
|
-
|
|
122
|
+
c("h3", C, f(s(V).testEmail.title), 1),
|
|
123
|
+
c("div", w, [
|
|
124
|
+
c("label", T, f(s(V).testEmail.recipientLabel), 1),
|
|
125
|
+
De.value ? (e(), l("input", {
|
|
126
126
|
key: 0,
|
|
127
127
|
id: "tpl-test-email-recipient",
|
|
128
128
|
type: "text",
|
|
@@ -130,7 +130,7 @@ var x = ["aria-busy"], S = {
|
|
|
130
130
|
disabled: "",
|
|
131
131
|
"data-testid": "test-email-recipient",
|
|
132
132
|
class: "tpl:h-9 tpl:w-full tpl:rounded-md tpl:border tpl:px-3 tpl:py-1 tpl:text-sm tpl:opacity-70 tpl:shadow-[var(--tpl-shadow-sm)] tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"
|
|
133
|
-
}, null, 8,
|
|
133
|
+
}, null, 8, E)) : J.value ? a((e(), l("select", {
|
|
134
134
|
key: 1,
|
|
135
135
|
id: "tpl-test-email-recipient",
|
|
136
136
|
"onUpdate:modelValue": i[0] ||= (e) => H.value = e,
|
|
@@ -140,7 +140,7 @@ var x = ["aria-busy"], S = {
|
|
|
140
140
|
}, [(e(!0), l(h, null, n(v.allowedRecipients, (t) => (e(), l("option", {
|
|
141
141
|
key: t,
|
|
142
142
|
value: t
|
|
143
|
-
}, f(t), 9,
|
|
143
|
+
}, f(t), 9, O))), 128))], 8, D)), [[te, H.value]]) : a((e(), l("input", {
|
|
144
144
|
key: 2,
|
|
145
145
|
id: "tpl-test-email-recipient",
|
|
146
146
|
"onUpdate:modelValue": i[1] ||= (e) => H.value = e,
|
|
@@ -151,24 +151,24 @@ var x = ["aria-busy"], S = {
|
|
|
151
151
|
disabled: v.isSending || v.justSent,
|
|
152
152
|
"data-testid": "test-email-recipient",
|
|
153
153
|
class: "tpl:h-9 tpl:w-full tpl:rounded-md tpl:border tpl:px-3 tpl:py-1 tpl:text-sm tpl:shadow-[var(--tpl-shadow-sm)] tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"
|
|
154
|
-
}, null, 8,
|
|
155
|
-
|
|
154
|
+
}, null, 8, k)), [[ee, H.value]]),
|
|
155
|
+
Oe.value ? (e(), l("p", A, f(s(V).testEmail.invalidAddress), 1)) : _("", !0)
|
|
156
156
|
]),
|
|
157
|
-
c("div",
|
|
157
|
+
c("div", j, [c("div", M, [c("span", N, f(s(V).testEmail.preview), 1), c("div", P, [s(W).supersedesSamples.value ? _("", !0) : (e(), m(fe, {
|
|
158
158
|
key: 0,
|
|
159
159
|
"sample-mode": q.value,
|
|
160
160
|
onChange: i[2] ||= (e) => q.value = e
|
|
161
|
-
}, null, 8, ["sample-mode"])), u(
|
|
161
|
+
}, null, 8, ["sample-mode"])), u(de, {
|
|
162
162
|
viewport: U.value,
|
|
163
163
|
onChange: i[3] ||= (e) => U.value = e
|
|
164
|
-
}, null, 8, ["viewport"])])]), c("p",
|
|
165
|
-
c("div",
|
|
164
|
+
}, null, 8, ["viewport"])])]), c("p", F, f(s(W).supersedesSamples.value ? s(V).previewResolution.hint : q.value ? s(V).testEmail.previewHintSample : s(V).testEmail.previewHint), 1)]),
|
|
165
|
+
c("div", I, [s(W).isInitialResolve.value ? (e(), l("div", L, [c("span", R, f(s(V).previewResolution.resolving), 1), (e(), l(h, null, n(3, (e) => c("div", {
|
|
166
166
|
key: e,
|
|
167
167
|
"aria-hidden": "true",
|
|
168
168
|
class: "tpl-pulse tpl:h-16 tpl:rounded-md tpl:bg-[var(--tpl-bg-hover)]"
|
|
169
|
-
})), 64))])) : s(W).hasFailed.value ? (e(), l("p",
|
|
169
|
+
})), 64))])) : s(W).hasFailed.value ? (e(), l("p", ge, f(s(V).previewResolution.failed), 1)) : _("", !0), s(W).isInitialResolve.value ? _("", !0) : (e(), m(he, {
|
|
170
170
|
key: 2,
|
|
171
|
-
blocks:
|
|
171
|
+
blocks: Ee.value,
|
|
172
172
|
viewport: U.value,
|
|
173
173
|
"apply-condition-filter": !s(W).isConfigured
|
|
174
174
|
}, null, 8, [
|
|
@@ -176,28 +176,28 @@ var x = ["aria-busy"], S = {
|
|
|
176
176
|
"viewport",
|
|
177
177
|
"apply-condition-filter"
|
|
178
178
|
]))]),
|
|
179
|
-
v.justSent ? (e(), l("p",
|
|
179
|
+
v.justSent ? (e(), l("p", _e, [u(s(le), {
|
|
180
180
|
size: 13,
|
|
181
181
|
"stroke-width": 2.5
|
|
182
|
-
}), d(" " + f(s(V).testEmail.success), 1)])) : Z.value ? (e(), l("p",
|
|
183
|
-
c("div",
|
|
182
|
+
}), d(" " + f(s(V).testEmail.success), 1)])) : Z.value ? (e(), l("p", ve, f(Z.value), 1)) : _("", !0),
|
|
183
|
+
c("div", ye, [c("button", {
|
|
184
184
|
type: "button",
|
|
185
185
|
"data-testid": "test-email-cancel",
|
|
186
186
|
class: p(["tpl:cursor-pointer tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:shadow-[var(--tpl-shadow-sm)] tpl:transition-all tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)]", { "tpl:cursor-not-allowed tpl:opacity-50": v.isSending }]),
|
|
187
187
|
disabled: v.isSending,
|
|
188
188
|
onClick: $
|
|
189
|
-
}, f(s(V).testEmail.cancel), 11,
|
|
189
|
+
}, f(s(V).testEmail.cancel), 11, be), c("button", {
|
|
190
190
|
type: "button",
|
|
191
191
|
"data-testid": "test-email-send",
|
|
192
|
-
class: p(s(
|
|
192
|
+
class: p(s(pe)),
|
|
193
193
|
disabled: !X.value,
|
|
194
194
|
onClick: Q
|
|
195
|
-
}, [v.isSending ? (e(), l("span",
|
|
195
|
+
}, [v.isSending ? (e(), l("span", Se, [u(s(ue), {
|
|
196
196
|
class: "tpl:animate-spin",
|
|
197
197
|
size: 12,
|
|
198
198
|
"stroke-width": 2
|
|
199
|
-
}), d(" " + f(s(V).testEmail.sending), 1)])) : (e(), l("span",
|
|
200
|
-
], 8,
|
|
199
|
+
}), d(" " + f(s(V).testEmail.sending), 1)])) : (e(), l("span", Ce, f(s(V).testEmail.send), 1))], 10, xe)])
|
|
200
|
+
], 8, S)]),
|
|
201
201
|
_: 1
|
|
202
202
|
}, 8, ["visible"]));
|
|
203
203
|
}
|
|
@@ -5,7 +5,7 @@ var o = /* @__PURE__ */ a({
|
|
|
5
5
|
__name: "TestEmailPanel",
|
|
6
6
|
props: { feature: {} },
|
|
7
7
|
setup(a) {
|
|
8
|
-
let o = a, s = t(() => import("./TestEmailModal-
|
|
8
|
+
let o = a, s = t(() => import("./TestEmailModal-D58kYkMV.js"));
|
|
9
9
|
function c(e) {
|
|
10
10
|
o.feature.send(e);
|
|
11
11
|
}
|