@templatical/editor 0.60.0 → 0.60.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AiAltTextPopover-DiIaqDtB.js → AiAltTextPopover-DSA1wiiW.js} +1 -1
- package/dist/{AiAltTextReview-DIe0WBbj.js → AiAltTextReview-B9-vfzCj.js} +1 -1
- package/dist/{AiChatPanel-aj2TPO9F.js → AiChatPanel-DPoq2Til.js} +8 -8
- package/dist/{AiPanels-CRM3jf82.js → AiPanels-UdfhAzzu.js} +1 -1
- package/dist/{AiRewriteMenu-F3GyXBsk.js → AiRewriteMenu-BaeMlSEx.js} +8 -8
- package/dist/{BlockIssueBadge-DlhA_I6J.js → BlockIssueBadge-DQ_6NI4p.js} +2 -2
- package/dist/{BlockPreviewCanvas-DYspUXMO.js → BlockPreviewCanvas-DWDfih6j.js} +4 -4
- package/dist/{CloudPanels-CAMn545-.js → CloudPanels-ClHDM3ge.js} +3 -3
- package/dist/{CollaborationNotices-CnfS8BQy.js → CollaborationNotices-PqWv0q8W.js} +1 -1
- package/dist/{CollaboratorBar-DufLdLQP.js → CollaboratorBar-p-_PWqXW.js} +1 -1
- package/dist/{CommentsPanel-C2hFFs0o.js → CommentsPanel-BUo-YhSX.js} +1 -1
- package/dist/{CommentsSidebar-CgEwxt2T.js → CommentsSidebar-D_Pz7FPz.js} +10 -10
- package/dist/{CountdownToolbar-CNqYDevp.js → CountdownToolbar-DYFSFwkD.js} +4 -4
- package/dist/{IssuesPanel-cPKhimE9.js → IssuesPanel-C7mBrK6a.js} +9 -9
- package/dist/{LanguageMenu-zxlpmw2x.js → LanguageMenu-f7js1FF8.js} +10 -10
- package/dist/{LocaleNotices-PIfpvCCI.js → LocaleNotices-CAvDAawJ.js} +2 -2
- package/dist/{LogicTagInsertButton-DqTkGJSR.js → LogicTagInsertButton-Clc3JTg_.js} +6 -6
- package/dist/{MediaEditModal-C2Bn8WGb.js → MediaEditModal-YXOL0d_y.js} +1 -1
- package/dist/{MediaPanels-BAZByHRA.js → MediaPanels-VCv5epgs.js} +1 -1
- package/dist/{MergeTagInput-Jly1Pw0v.js → MergeTagInput-B5a9noTB.js} +1 -1
- package/dist/{MergeTagModeToggle-5kaFLRAm.js → MergeTagModeToggle-D1r2aH5x.js} +4 -4
- package/dist/{MergeTagTextarea-CCfirhcR.js → MergeTagTextarea-CA9dPfMH.js} +3 -3
- package/dist/{ParagraphEditor-DTdnxgDZ.js → ParagraphEditor-ByzfpepN.js} +13 -13
- package/dist/{RestoreVersionDialog-cUYu3Xqs.js → RestoreVersionDialog-Da5sTCFI.js} +3 -3
- package/dist/{RichTextEditorContent-Aub9tOHF.js → RichTextEditorContent-gnRxu4-L.js} +4 -4
- package/dist/{SaveBlockDialog-D_ie3uIF.js → SaveBlockDialog-BM1Fki_2.js} +7 -7
- package/dist/{SavedBlocksBrowserModal-fhSnYT1l.js → SavedBlocksBrowserModal-DHOTdJKB.js} +9 -9
- package/dist/{SavedBlocksPanels-Lklqy4XI.js → SavedBlocksPanels-BJ2OM0cG.js} +1 -1
- package/dist/{SavedBlocksPickBar-CpWkCa8G.js → SavedBlocksPickBar-C4Bv1K_9.js} +2 -2
- package/dist/{TemplateSettings-BJ4a8RBr.js → TemplateSettings-DsaSsCC8.js} +8 -8
- package/dist/{TestEmailModal-BEoapoDc.js → TestEmailModal-CMo0cJik.js} +8 -8
- package/dist/{TestEmailPanel-DgyzokCf.js → TestEmailPanel-B2OoOy9K.js} +1 -1
- package/dist/{TitleEditor-BQoSPgOi.js → TitleEditor--gFbrR7V.js} +6 -6
- package/dist/{Toolbar-KhPpWyX1.js → Toolbar-UXT03-Dc.js} +552 -442
- package/dist/{TplModal-F_kA7luG.js → TplModal-DkoyIwy1.js} +1 -1
- package/dist/{VersionHistoryMenu-Bz4G8cNm.js → VersionHistoryMenu-D-RCk3oB.js} +5 -5
- package/dist/{VersionHistoryPanels-DmVRyWv9.js → VersionHistoryPanels-TzzRlmqK.js} +1 -1
- package/dist/{VersionPreviewBanner-BeppXZyn.js → VersionPreviewBanner-DMg2sw3V.js} +1 -1
- package/dist/{WrapperBlock-Ds7yfbhg.js → WrapperBlock-B4mdW2CP.js} +3 -3
- package/dist/{blockTypeIcons-Do1QqDjg.js → blockTypeIcons-MX-xQH_Z.js} +3 -3
- package/dist/bundle-stats.json +6 -6
- package/dist/{cdn/chunks/ca-Ce3NmK9v.js → ca-C8N05sCU.js} +4 -3
- package/dist/cdn/chunks/{AiAltTextPopover-CUzIaLRK.js → AiAltTextPopover-BLNN_Pnd.js} +2 -2
- package/dist/cdn/chunks/{AiAltTextPopover-CUzIaLRK.js.map → AiAltTextPopover-BLNN_Pnd.js.map} +1 -1
- package/dist/cdn/chunks/{AiAltTextReview-BXBlE71X.js → AiAltTextReview-Db8vSNpe.js} +2 -2
- package/dist/cdn/chunks/{AiAltTextReview-BXBlE71X.js.map → AiAltTextReview-Db8vSNpe.js.map} +1 -1
- package/dist/cdn/chunks/{AiChatPanel-BKydciDQ.js → AiChatPanel-cIT2haLo.js} +2 -2
- package/dist/cdn/chunks/{AiChatPanel-BKydciDQ.js.map → AiChatPanel-cIT2haLo.js.map} +1 -1
- package/dist/cdn/chunks/{AiPanels-De-cIZ4p.js → AiPanels-B4GG8w3J.js} +2 -2
- package/dist/cdn/chunks/{AiPanels-De-cIZ4p.js.map → AiPanels-B4GG8w3J.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-C9vBUTIB.js → AiRewriteMenu-C34wZVcW.js} +6 -6
- package/dist/cdn/chunks/{AiRewriteMenu-C9vBUTIB.js.map → AiRewriteMenu-C34wZVcW.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-B3CTTvgw.js → BlockIssueBadge-C50pmOMZ.js} +2 -2
- package/dist/cdn/chunks/{BlockIssueBadge-B3CTTvgw.js.map → BlockIssueBadge-C50pmOMZ.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-B4Bj--kc.js → BlockPreviewCanvas-CUOrwkWR.js} +5 -5
- package/dist/cdn/chunks/{BlockPreviewCanvas-B4Bj--kc.js.map → BlockPreviewCanvas-CUOrwkWR.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-CQ75I3hQ.js → CloudPanels-BAGDHObm.js} +3 -3
- package/dist/cdn/chunks/{CloudPanels-CQ75I3hQ.js.map → CloudPanels-BAGDHObm.js.map} +1 -1
- package/dist/cdn/chunks/{CollaborationNotices-CgLea-hu.js → CollaborationNotices-CTmjjbHv.js} +2 -2
- package/dist/cdn/chunks/{CollaborationNotices-CgLea-hu.js.map → CollaborationNotices-CTmjjbHv.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-CjRcbebT.js → CollaboratorBar-CzHjawjF.js} +2 -2
- package/dist/cdn/chunks/{CollaboratorBar-CjRcbebT.js.map → CollaboratorBar-CzHjawjF.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-D_ud9GMN.js → CommentsPanel-Dh0_eRBe.js} +2 -2
- package/dist/cdn/chunks/{CommentsPanel-D_ud9GMN.js.map → CommentsPanel-Dh0_eRBe.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-CXn1EGAI.js → CommentsSidebar-JxZ-O2mY.js} +2 -2
- package/dist/cdn/chunks/{CommentsSidebar-CXn1EGAI.js.map → CommentsSidebar-JxZ-O2mY.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-BOyk_4k7.js → CountdownToolbar-BBiK9EaU.js} +5 -5
- package/dist/cdn/chunks/{CountdownToolbar-BOyk_4k7.js.map → CountdownToolbar-BBiK9EaU.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-DOC94ZsH.js → IssuesPanel-BtAn12hl.js} +4 -4
- package/dist/cdn/chunks/{IssuesPanel-DOC94ZsH.js.map → IssuesPanel-BtAn12hl.js.map} +1 -1
- package/dist/cdn/chunks/{LanguageMenu-DktneIpL.js → LanguageMenu-BDldm-Hp.js} +5 -5
- package/dist/cdn/chunks/{LanguageMenu-DktneIpL.js.map → LanguageMenu-BDldm-Hp.js.map} +1 -1
- package/dist/cdn/chunks/{LocaleNotices-B2NgnHoP.js → LocaleNotices-CzrNKR-N.js} +2 -2
- package/dist/cdn/chunks/{LocaleNotices-B2NgnHoP.js.map → LocaleNotices-CzrNKR-N.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-CQ8RiOou.js → LogicTagInsertButton-B4wuPoMa.js} +5 -5
- package/dist/cdn/chunks/{LogicTagInsertButton-CQ8RiOou.js.map → LogicTagInsertButton-B4wuPoMa.js.map} +1 -1
- package/dist/cdn/chunks/{MediaEditModal-Cs7_Om7e.js → MediaEditModal-DJ2wxInt.js} +2 -2
- package/dist/cdn/chunks/{MediaEditModal-Cs7_Om7e.js.map → MediaEditModal-DJ2wxInt.js.map} +1 -1
- package/dist/cdn/chunks/{MediaPanels-BeekGmql.js → MediaPanels-BJawNjr9.js} +2 -2
- package/dist/cdn/chunks/{MediaPanels-BeekGmql.js.map → MediaPanels-BJawNjr9.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-D7FZ0ca0.js → MergeTagInput-DZD-p4nR.js} +2 -2
- package/dist/cdn/chunks/{MergeTagInput-D7FZ0ca0.js.map → MergeTagInput-DZD-p4nR.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-CySCCEDs.js → MergeTagModeToggle-DGuJCgqO.js} +3 -3
- package/dist/cdn/chunks/{MergeTagModeToggle-CySCCEDs.js.map → MergeTagModeToggle-DGuJCgqO.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagTextarea-DJbWTYVH.js → MergeTagTextarea-BRiaRBr_.js} +4 -4
- package/dist/cdn/chunks/{MergeTagTextarea-DJbWTYVH.js.map → MergeTagTextarea-BRiaRBr_.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-DAQUWqQJ.js → ParagraphEditor-CPYQXRIc.js} +10 -10
- package/dist/cdn/chunks/{ParagraphEditor-DAQUWqQJ.js.map → ParagraphEditor-CPYQXRIc.js.map} +1 -1
- package/dist/cdn/chunks/{RestoreVersionDialog-COTRe_rM.js → RestoreVersionDialog-NjbHial9.js} +3 -3
- package/dist/cdn/chunks/{RestoreVersionDialog-COTRe_rM.js.map → RestoreVersionDialog-NjbHial9.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-DeWPMd9V.js → RichTextEditorContent-CtV0Q0SO.js} +4 -4
- package/dist/cdn/chunks/{RichTextEditorContent-DeWPMd9V.js.map → RichTextEditorContent-CtV0Q0SO.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-adQMbKR1.js → SaveBlockDialog-BZqPkGrE.js} +6 -6
- package/dist/cdn/chunks/{SaveBlockDialog-adQMbKR1.js.map → SaveBlockDialog-BZqPkGrE.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-CGIFCRAx.js → SavedBlocksBrowserModal-CqfyRtlX.js} +6 -6
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-CGIFCRAx.js.map → SavedBlocksBrowserModal-CqfyRtlX.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-Du0RYlEf.js → SavedBlocksPanels-BILHEdkP.js} +2 -2
- package/dist/cdn/chunks/{SavedBlocksPanels-Du0RYlEf.js.map → SavedBlocksPanels-BILHEdkP.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-DmleyUrn.js → SavedBlocksPickBar-C9NKqOEU.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPickBar-DmleyUrn.js.map → SavedBlocksPickBar-C9NKqOEU.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-Csjef99q.js → TemplateSettings--_ZfbhnU.js} +6 -6
- package/dist/cdn/chunks/{TemplateSettings-Csjef99q.js.map → TemplateSettings--_ZfbhnU.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-ClkexOtF.js → TestEmailModal-CtfoV82K.js} +7 -7
- package/dist/cdn/chunks/{TestEmailModal-ClkexOtF.js.map → TestEmailModal-CtfoV82K.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-DYEYzhU2.js → TestEmailPanel-NK26SU2u.js} +2 -2
- package/dist/cdn/chunks/{TestEmailPanel-DYEYzhU2.js.map → TestEmailPanel-NK26SU2u.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-opvaIgVr.js → TitleEditor-DXN_aOn0.js} +5 -5
- package/dist/cdn/chunks/{TitleEditor-opvaIgVr.js.map → TitleEditor-DXN_aOn0.js.map} +1 -1
- package/dist/cdn/chunks/{Toolbar-DbqkKRXy.js → Toolbar-HCxD4Ifc.js} +532 -422
- package/dist/cdn/chunks/Toolbar-HCxD4Ifc.js.map +1 -0
- package/dist/cdn/chunks/{TplModal-DLV5OeMD.js → TplModal-DzHoLmGo.js} +2 -2
- package/dist/cdn/chunks/{TplModal-DLV5OeMD.js.map → TplModal-DzHoLmGo.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-DBd0zwjE.js → VersionHistoryMenu-CVGlUPwS.js} +2 -2
- package/dist/cdn/chunks/{VersionHistoryMenu-DBd0zwjE.js.map → VersionHistoryMenu-CVGlUPwS.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-hy_Ybxie.js → VersionHistoryPanels-Du8sQry2.js} +2 -2
- package/dist/cdn/chunks/{VersionHistoryPanels-hy_Ybxie.js.map → VersionHistoryPanels-Du8sQry2.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-D-yHxWWY.js → VersionPreviewBanner-5RFz4AQx.js} +2 -2
- package/dist/cdn/chunks/{VersionPreviewBanner-D-yHxWWY.js.map → VersionPreviewBanner-5RFz4AQx.js.map} +1 -1
- package/dist/cdn/chunks/{WrapperBlock-Ce_k8m_x.js → WrapperBlock-DTayPD6Q.js} +4 -4
- package/dist/cdn/chunks/{WrapperBlock-Ce_k8m_x.js.map → WrapperBlock-DTayPD6Q.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-DBoP1HkR.js → blockTypeIcons-BOonB9gK.js} +2 -2
- package/dist/cdn/chunks/{blockTypeIcons-DBoP1HkR.js.map → blockTypeIcons-BOonB9gK.js.map} +1 -1
- package/dist/{ca-Ce3NmK9v.js → cdn/chunks/ca-C8N05sCU.js} +6 -1
- package/dist/cdn/chunks/ca-C8N05sCU.js.map +1 -0
- package/dist/cdn/chunks/{composables-Brr4m0Sg.js → composables-BJBr8B4t.js} +110 -66
- package/dist/cdn/chunks/composables-BJBr8B4t.js.map +1 -0
- package/dist/cdn/chunks/{createCloudRuntime-QPeg45XL.js → createCloudRuntime-CUlw09ix.js} +3 -3
- package/dist/cdn/chunks/{createCloudRuntime-QPeg45XL.js.map → createCloudRuntime-CUlw09ix.js.map} +1 -1
- package/dist/{da-4YwDAuEr.js → cdn/chunks/da-Dno_4nGy.js} +6 -1
- package/dist/cdn/chunks/da-Dno_4nGy.js.map +1 -0
- package/dist/{de-BlQ0vdZJ.js → cdn/chunks/de-DRR5JSkh.js} +6 -1
- package/dist/cdn/chunks/de-DRR5JSkh.js.map +1 -0
- package/dist/cdn/chunks/{editor-modal-BCcbvIxc.js → editor-modal-BVM_0uoL.js} +4 -4
- package/dist/cdn/chunks/{editor-modal-BCcbvIxc.js.map → editor-modal-BVM_0uoL.js.map} +1 -1
- package/dist/cdn/chunks/{en-MlNeQVSG.js → en-DAcLbbpg.js} +5 -2
- package/dist/cdn/chunks/en-DAcLbbpg.js.map +1 -0
- package/dist/cdn/chunks/en-DlDEofnd.js +1 -0
- package/dist/cdn/chunks/{es-2s8x4OM2.js → es-BcEQLQxe.js} +5 -2
- package/dist/cdn/chunks/es-BcEQLQxe.js.map +1 -0
- package/dist/cdn/chunks/{extensions-BpuyqKVY.js → extensions-BPZirXpF.js} +4 -4
- package/dist/cdn/chunks/{extensions-BpuyqKVY.js.map → extensions-BPZirXpF.js.map} +1 -1
- package/dist/{fr-D3MjrsgQ.js → cdn/chunks/fr-CNQG7ESr.js} +6 -1
- package/dist/cdn/chunks/fr-CNQG7ESr.js.map +1 -0
- package/dist/cdn/chunks/{icons-BJ6AtVgu.js → icons-CWEBTtbR.js} +6 -6
- package/dist/cdn/chunks/{icons-BJ6AtVgu.js.map → icons-CWEBTtbR.js.map} +1 -1
- package/dist/{ja-B4Kx7uBX.js → cdn/chunks/ja-CMxWxqSH.js} +6 -1
- package/dist/cdn/chunks/ja-CMxWxqSH.js.map +1 -0
- package/dist/{nl-U65iX7wN.js → cdn/chunks/nl-BjyYZDkC.js} +6 -1
- package/dist/cdn/chunks/nl-BjyYZDkC.js.map +1 -0
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-B81BAWKT.js → normalizeMergeTagMarkup-CExCfSYI.js} +2 -2
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-B81BAWKT.js.map → normalizeMergeTagMarkup-CExCfSYI.js.map} +1 -1
- package/dist/cdn/chunks/{preRenderCustomBlocks-CQuaMxuv.js → preRenderCustomBlocks-BLVFtvl8.js} +2 -2
- package/dist/cdn/chunks/{preRenderCustomBlocks-CQuaMxuv.js.map → preRenderCustomBlocks-BLVFtvl8.js.map} +1 -1
- package/dist/cdn/chunks/{pt-BR-_jsX1xLv.js → pt-BR-DC2A3C0v.js} +5 -2
- package/dist/cdn/chunks/pt-BR-DC2A3C0v.js.map +1 -0
- package/dist/cdn/chunks/{sanitizeHtml-BdAjvU9I.js → sanitizeHtml-Db0S2JVP.js} +2 -2
- package/dist/cdn/chunks/{sanitizeHtml-BdAjvU9I.js.map → sanitizeHtml-Db0S2JVP.js.map} +1 -1
- package/dist/cdn/chunks/{socialIcons-Df9dNe7I.js → socialIcons-WD1cjZDr.js} +3 -3
- package/dist/cdn/chunks/{socialIcons-Df9dNe7I.js.map → socialIcons-WD1cjZDr.js.map} +1 -1
- package/dist/cdn/chunks/{src-BHgVGOTi.js → src-A0kzK-pR.js} +5 -1
- package/dist/cdn/chunks/src-A0kzK-pR.js.map +1 -0
- package/dist/cdn/chunks/{src-C5V_yzAU.js → src-C9opbQj_.js} +207 -196
- package/dist/cdn/chunks/src-C9opbQj_.js.map +1 -0
- package/dist/cdn/chunks/{src-B3v_3j9b.js → src-edESkGqO.js} +366 -293
- package/dist/cdn/chunks/src-edESkGqO.js.map +1 -0
- package/dist/cdn/chunks/{useLocalizedDisplay-C3lIetmX.js → useLocalizedDisplay-Brdkp3KH.js} +2 -2
- package/dist/cdn/chunks/{useLocalizedDisplay-C3lIetmX.js.map → useLocalizedDisplay-Brdkp3KH.js.map} +1 -1
- package/dist/cdn/chunks/{useLogicTag-DOIlsGk8.js → useLogicTag-CKtQlJDa.js} +2 -2
- package/dist/cdn/chunks/{useLogicTag-DOIlsGk8.js.map → useLogicTag-CKtQlJDa.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-DUNl364g.js → useMergeTag-Dwy3U0PI.js} +2 -2
- package/dist/cdn/chunks/{useMergeTag-DUNl364g.js.map → useMergeTag-Dwy3U0PI.js.map} +1 -1
- package/dist/cdn/chunks/{withCurrentFont-ufGLu2Vt.js → withCurrentFont-C4pIesdB.js} +2 -2
- package/dist/cdn/chunks/{withCurrentFont-ufGLu2Vt.js.map → withCurrentFont-C4pIesdB.js.map} +1 -1
- package/dist/cdn/editor.js +21 -21
- package/dist/{check-CWq6Nfjj.js → check-C82yyyf1.js} +1 -1
- package/dist/{chevron-down-B9t0SK_-.js → chevron-down-BaBVjNbM.js} +1 -1
- package/dist/{chevron-right-B_qslOCS.js → chevron-right-DkS-bw8X.js} +1 -1
- package/dist/{chevron-up-CxZ2teV2.js → chevron-up-C1KzUIK4.js} +1 -1
- package/dist/{circle-exclamation-point-B1tbhkNb.js → circle-exclamation-point-DsmqtTUQ.js} +1 -1
- package/dist/{clock-Rw4btQn-.js → clock-dpIs7vo0.js} +1 -1
- package/dist/{composables-5KJV0O9T.js → composables-DjCuq6RV.js} +1307 -1263
- package/dist/{createCloudRuntime-BdoKeYJi.js → createCloudRuntime-CiEo0wkr.js} +2 -2
- package/dist/{createLucideIcon-B6Zkn9r0.js → createLucideIcon-BSam2AUu.js} +5 -5
- package/dist/{cdn/chunks/da-4YwDAuEr.js → da-Dno_4nGy.js} +4 -3
- package/dist/{cdn/chunks/de-BlQ0vdZJ.js → de-DRR5JSkh.js} +4 -3
- package/dist/{dist-DsA7NeIy.js → dist-DX_IQgcU.js} +4 -0
- package/dist/{editor-modal-_ylhrf4g.js → editor-modal-odubnc9x.js} +15 -15
- package/dist/en-CAImT1hl.js +1 -0
- package/dist/{en-MlNeQVSG.js → en-DAcLbbpg.js} +4 -1
- package/dist/{es-2s8x4OM2.js → es-BcEQLQxe.js} +4 -1
- package/dist/{extensions-DCJGAZ9z.js → extensions-C7OLgMEj.js} +3 -3
- package/dist/{eye-BE-DeEqG.js → eye-CxCHEszj.js} +1 -1
- package/dist/{cdn/chunks/fr-D3MjrsgQ.js → fr-CNQG7ESr.js} +4 -3
- package/dist/{image-DfRxUmUh.js → image-DvXPzqNd.js} +1 -1
- package/dist/index.d.ts +35 -6
- package/dist/{info-D1PS-81D.js → info-2KHWaZ2L.js} +1 -1
- package/dist/{cdn/chunks/ja-B4Kx7uBX.js → ja-CMxWxqSH.js} +4 -3
- package/dist/{link-DLaACaIz.js → link-_OmrcJMv.js} +1 -1
- package/dist/{list-CvtzVlvM.js → list-Dekd7JE8.js} +1 -1
- package/dist/{loader-circle-DCkSXApP.js → loader-circle-D_hT5mFS.js} +1 -1
- package/dist/{message-circle-Bj4F9bBO.js → message-circle-DDbiG-jz.js} +1 -1
- package/dist/{cdn/chunks/nl-U65iX7wN.js → nl-BjyYZDkC.js} +4 -3
- package/dist/{normalizeMergeTagMarkup-B7n_-4Dz.js → normalizeMergeTagMarkup-Cv5Wvs5f.js} +1 -1
- package/dist/{package-By1au8Wi.js → package-cORUe57D.js} +1 -1
- package/dist/{pencil-T4qqyRLl.js → pencil-D67H4fxq.js} +1 -1
- package/dist/{plus-3Zry-1gs.js → plus-BpTZAx28.js} +1 -1
- package/dist/{preRenderCustomBlocks-D3GzENVB.js → preRenderCustomBlocks-6CLw2rP6.js} +1 -1
- package/dist/{pt-BR-_jsX1xLv.js → pt-BR-DC2A3C0v.js} +4 -1
- package/dist/{refresh-cw-BwaO0ioc.js → refresh-cw-B4T0IFwI.js} +1 -1
- package/dist/{rotate-ccw-C3E0W5q-.js → rotate-ccw-BDQgjpuo.js} +1 -1
- package/dist/{sanitizeHtml-BcbjlypU.js → sanitizeHtml-Ru5_-IbM.js} +2 -2
- package/dist/{search-DfExisVv.js → search-Dp9pkaVt.js} +1 -1
- package/dist/{send-FRC7Giap.js → send-DO9GhgCH.js} +1 -1
- package/dist/{smartphone-BlYU_z_x.js → smartphone-CPW3I3hV.js} +1 -1
- package/dist/{socialIcons-By2LPWOQ.js → socialIcons-CPBiLTjY.js} +4 -4
- package/dist/{sparkles-DSi61skE.js → sparkles-CIBjNfij.js} +1 -1
- package/dist/{square-DEE8tT2w.js → square-3W65qrrH.js} +1 -1
- package/dist/templatical-editor.js +35 -35
- package/dist/{text-align-start-DGdrmKcG.js → text-align-start-Bs70tpRU.js} +1 -1
- package/dist/{trash-YZPJMZc7.js → trash-CTzhAm1o.js} +1 -1
- package/dist/{triangle-exclamation-point-BR-W6pQm.js → triangle-exclamation-point-D_13CuJY.js} +1 -1
- package/dist/{upload-B_Eoqj-4.js → upload-DFxkP9MI.js} +1 -1
- package/dist/{useLocalizedDisplay-_P6-hXaO.js → useLocalizedDisplay-DfiE-KjV.js} +1 -1
- package/dist/{useLogicTag-f0SJ1Cd2.js → useLogicTag-K5CPoMTk.js} +1 -1
- package/dist/{useMergeTag-0-EudwkV.js → useMergeTag-tsU_Sw2x.js} +1 -1
- package/dist/{useScrollToBlock-CtM_ydOS.js → useScrollToBlock-194ePl4q.js} +1 -1
- package/dist/{withCurrentFont-BOg3jmCT.js → withCurrentFont-C-_IYTqP.js} +1 -1
- package/dist/{x-C0X5MoK3.js → x-D7L8mLHJ.js} +1 -1
- package/package.json +9 -9
- package/dist/cdn/chunks/Toolbar-DbqkKRXy.js.map +0 -1
- package/dist/cdn/chunks/ca-Ce3NmK9v.js.map +0 -1
- package/dist/cdn/chunks/composables-Brr4m0Sg.js.map +0 -1
- package/dist/cdn/chunks/da-4YwDAuEr.js.map +0 -1
- package/dist/cdn/chunks/de-BlQ0vdZJ.js.map +0 -1
- package/dist/cdn/chunks/en-DkulseE1.js +0 -1
- package/dist/cdn/chunks/en-MlNeQVSG.js.map +0 -1
- package/dist/cdn/chunks/es-2s8x4OM2.js.map +0 -1
- package/dist/cdn/chunks/fr-D3MjrsgQ.js.map +0 -1
- package/dist/cdn/chunks/ja-B4Kx7uBX.js.map +0 -1
- package/dist/cdn/chunks/nl-U65iX7wN.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-_jsX1xLv.js.map +0 -1
- package/dist/cdn/chunks/src-B3v_3j9b.js.map +0 -1
- package/dist/cdn/chunks/src-BHgVGOTi.js.map +0 -1
- package/dist/cdn/chunks/src-C5V_yzAU.js.map +0 -1
- package/dist/en-DwxgN_-Y.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as e } from "./rolldown-runtime-QGRDbDUS.js";
|
|
2
|
-
import { At as t, Ct as n, Dt as r, En as i, Jt as a, Kt as o, Mt as s, R as c, St as l, Tt as u, Vt as d, _n as f, _t as p, ct as m, d as h, hn as ee, in as g, jt as te, kt as ne, ln as re, lt as _, mn as ie, nn as ae, rt as oe, s as se, tn as ce, tt as le, vt as ue, wt as v, xt as de } from "./src-
|
|
2
|
+
import { At as t, Ct as n, Dt as r, En as i, Jt as a, Kt as o, Mt as s, R as c, St as l, Tt as u, Vt as d, _n as f, _t as p, ct as m, d as h, hn as ee, in as g, jt as te, kt as ne, ln as re, lt as _, mn as ie, nn as ae, rt as oe, s as se, tn as ce, tt as le, vt as ue, wt as v, xt as de } from "./src-A0kzK-pR.js";
|
|
3
3
|
import { t as y } from "./htmlparser-hu3YnNQU.js";
|
|
4
4
|
// ../quality/src/types.ts
|
|
5
5
|
var fe = { minTextLength: 200 }, pe = { maxHtmlBytes: 92160 }, me = {
|
|
@@ -294,6 +294,10 @@ var ke = /* @__PURE__ */ e({ default: () => Ae }), Ae = {
|
|
|
294
294
|
"a11y.missing-preheader": {
|
|
295
295
|
message: "Kein Preheader-Text gesetzt, daher zeigen Postfächer Bruchstücke des ersten Blocks.",
|
|
296
296
|
suggestion: "Ergänze einen Preheader-Text als Vorschau auf die E-Mail."
|
|
297
|
+
},
|
|
298
|
+
"a11y.social-icon-missing-alt": {
|
|
299
|
+
message: "Symbol {iconIndex} ist ein benutzerdefiniertes Symbol ohne Alternativtext.",
|
|
300
|
+
suggestion: "Füge einen Alt-Text hinzu. Das Bild ist der einzige Inhalt des Links."
|
|
297
301
|
}
|
|
298
302
|
}, je = /* @__PURE__ */ e({ default: () => E }), E = {
|
|
299
303
|
"a11y.img-missing-alt": {
|
|
@@ -379,6 +383,10 @@ var ke = /* @__PURE__ */ e({ default: () => Ae }), Ae = {
|
|
|
379
383
|
"a11y.missing-preheader": {
|
|
380
384
|
message: "No preheader text is set, so inboxes show fragments of the first block.",
|
|
381
385
|
suggestion: "Add preheader text that previews the email."
|
|
386
|
+
},
|
|
387
|
+
"a11y.social-icon-missing-alt": {
|
|
388
|
+
message: "Icon {iconIndex} is a custom icon with no text alternative.",
|
|
389
|
+
suggestion: "Add alt text. The image is the link's only content."
|
|
382
390
|
}
|
|
383
391
|
};
|
|
384
392
|
// ../quality/src/format-message.ts
|
|
@@ -1006,8 +1014,93 @@ var Ft = {
|
|
|
1006
1014
|
function Rt(e) {
|
|
1007
1015
|
return n(e) || ne(e) ? e.fontSize : null;
|
|
1008
1016
|
}
|
|
1017
|
+
var zt = {
|
|
1018
|
+
meta: Lt,
|
|
1019
|
+
block(e, t, n) {
|
|
1020
|
+
let r = Rt(e);
|
|
1021
|
+
return r === null || r >= n.thresholds.minFontSize ? null : {
|
|
1022
|
+
blockId: e.id,
|
|
1023
|
+
params: {
|
|
1024
|
+
size: r,
|
|
1025
|
+
min: n.thresholds.minFontSize
|
|
1026
|
+
}
|
|
1027
|
+
};
|
|
1028
|
+
}
|
|
1029
|
+
}, Bt = {
|
|
1030
|
+
meta: {
|
|
1031
|
+
id: "a11y.button-vague-label",
|
|
1032
|
+
reference: "https://docs.templatical.com/quality/accessibility/rule-catalog#buttons",
|
|
1033
|
+
severity: "warning"
|
|
1034
|
+
},
|
|
1035
|
+
block(e, t, n) {
|
|
1036
|
+
if (!p(e)) return null;
|
|
1037
|
+
let r = Je(e.text ?? "");
|
|
1038
|
+
return r === "" || !k(n.locale).vagueButtonLabels.includes(r) ? null : {
|
|
1039
|
+
blockId: e.id,
|
|
1040
|
+
params: { text: e.text }
|
|
1041
|
+
};
|
|
1042
|
+
}
|
|
1043
|
+
}, Vt = {
|
|
1044
|
+
meta: {
|
|
1045
|
+
id: "a11y.button-touch-target",
|
|
1046
|
+
reference: "https://docs.templatical.com/quality/accessibility/rule-catalog#buttons",
|
|
1047
|
+
severity: "warning"
|
|
1048
|
+
},
|
|
1049
|
+
block(e, t, n) {
|
|
1050
|
+
if (!p(e)) return null;
|
|
1051
|
+
let r = e.buttonPadding;
|
|
1052
|
+
if (!r) return null;
|
|
1053
|
+
let i = e.fontSize * 1.4 + r.top + r.bottom;
|
|
1054
|
+
return i >= n.thresholds.minTouchTargetPx ? null : {
|
|
1055
|
+
blockId: e.id,
|
|
1056
|
+
params: {
|
|
1057
|
+
height: Math.round(i),
|
|
1058
|
+
min: n.thresholds.minTouchTargetPx
|
|
1059
|
+
}
|
|
1060
|
+
};
|
|
1061
|
+
}
|
|
1062
|
+
}, Ht = {
|
|
1063
|
+
meta: {
|
|
1064
|
+
id: "a11y.button-low-contrast",
|
|
1065
|
+
reference: "https://www.w3.org/WAI/WCAG21/Understanding/contrast-minimum",
|
|
1066
|
+
severity: "error"
|
|
1067
|
+
},
|
|
1068
|
+
block(e) {
|
|
1069
|
+
if (!p(e)) return null;
|
|
1070
|
+
let t = _e(e.textColor, e.backgroundColor);
|
|
1071
|
+
if (Number.isNaN(t)) return null;
|
|
1072
|
+
let n = e.fontSize >= 24 ? 3 : 4.5;
|
|
1073
|
+
return t >= n ? null : {
|
|
1074
|
+
blockId: e.id,
|
|
1075
|
+
params: {
|
|
1076
|
+
ratio: t.toFixed(2),
|
|
1077
|
+
required: n
|
|
1078
|
+
}
|
|
1079
|
+
};
|
|
1080
|
+
}
|
|
1081
|
+
}, Ut = {
|
|
1082
|
+
meta: {
|
|
1083
|
+
id: "a11y.missing-preheader",
|
|
1084
|
+
reference: "https://docs.templatical.com/quality/accessibility/rule-catalog#template-level",
|
|
1085
|
+
severity: "info"
|
|
1086
|
+
},
|
|
1087
|
+
template(e) {
|
|
1088
|
+
return (e.settings.preheaderText?.trim() ?? "") === "" ? [{ blockId: null }] : [];
|
|
1089
|
+
}
|
|
1090
|
+
}, Wt = {
|
|
1091
|
+
id: "a11y.social-icon-missing-alt",
|
|
1092
|
+
reference: "https://www.w3.org/WAI/tutorials/images/",
|
|
1093
|
+
severity: "warning"
|
|
1094
|
+
};
|
|
1095
|
+
function Gt(e) {
|
|
1096
|
+
if (e.platform !== "custom") return !1;
|
|
1097
|
+
let t = e.imageUrl;
|
|
1098
|
+
if (typeof t != "string" || t.trim() === "") return !1;
|
|
1099
|
+
let n = e.alt;
|
|
1100
|
+
return typeof n != "string" || n.trim() === "";
|
|
1101
|
+
}
|
|
1009
1102
|
// ../quality/src/accessibility/index.ts
|
|
1010
|
-
var
|
|
1103
|
+
var Kt = [
|
|
1011
1104
|
Fe,
|
|
1012
1105
|
Re,
|
|
1013
1106
|
ze,
|
|
@@ -1024,90 +1117,31 @@ var zt = [
|
|
|
1024
1117
|
Et,
|
|
1025
1118
|
Ft,
|
|
1026
1119
|
It,
|
|
1120
|
+
zt,
|
|
1121
|
+
Bt,
|
|
1122
|
+
Vt,
|
|
1123
|
+
Ht,
|
|
1124
|
+
Ut,
|
|
1027
1125
|
{
|
|
1028
|
-
meta:
|
|
1029
|
-
block(e, t, n) {
|
|
1030
|
-
let r = Rt(e);
|
|
1031
|
-
return r === null || r >= n.thresholds.minFontSize ? null : {
|
|
1032
|
-
blockId: e.id,
|
|
1033
|
-
params: {
|
|
1034
|
-
size: r,
|
|
1035
|
-
min: n.thresholds.minFontSize
|
|
1036
|
-
}
|
|
1037
|
-
};
|
|
1038
|
-
}
|
|
1039
|
-
},
|
|
1040
|
-
{
|
|
1041
|
-
meta: {
|
|
1042
|
-
id: "a11y.button-vague-label",
|
|
1043
|
-
reference: "https://docs.templatical.com/quality/accessibility/rule-catalog#buttons",
|
|
1044
|
-
severity: "warning"
|
|
1045
|
-
},
|
|
1046
|
-
block(e, t, n) {
|
|
1047
|
-
if (!p(e)) return null;
|
|
1048
|
-
let r = Je(e.text ?? "");
|
|
1049
|
-
return r === "" || !k(n.locale).vagueButtonLabels.includes(r) ? null : {
|
|
1050
|
-
blockId: e.id,
|
|
1051
|
-
params: { text: e.text }
|
|
1052
|
-
};
|
|
1053
|
-
}
|
|
1054
|
-
},
|
|
1055
|
-
{
|
|
1056
|
-
meta: {
|
|
1057
|
-
id: "a11y.button-touch-target",
|
|
1058
|
-
reference: "https://docs.templatical.com/quality/accessibility/rule-catalog#buttons",
|
|
1059
|
-
severity: "warning"
|
|
1060
|
-
},
|
|
1061
|
-
block(e, t, n) {
|
|
1062
|
-
if (!p(e)) return null;
|
|
1063
|
-
let r = e.buttonPadding;
|
|
1064
|
-
if (!r) return null;
|
|
1065
|
-
let i = e.fontSize * 1.4 + r.top + r.bottom;
|
|
1066
|
-
return i >= n.thresholds.minTouchTargetPx ? null : {
|
|
1067
|
-
blockId: e.id,
|
|
1068
|
-
params: {
|
|
1069
|
-
height: Math.round(i),
|
|
1070
|
-
min: n.thresholds.minTouchTargetPx
|
|
1071
|
-
}
|
|
1072
|
-
};
|
|
1073
|
-
}
|
|
1074
|
-
},
|
|
1075
|
-
{
|
|
1076
|
-
meta: {
|
|
1077
|
-
id: "a11y.button-low-contrast",
|
|
1078
|
-
reference: "https://www.w3.org/WAI/WCAG21/Understanding/contrast-minimum",
|
|
1079
|
-
severity: "error"
|
|
1080
|
-
},
|
|
1081
|
-
block(e) {
|
|
1082
|
-
if (!p(e)) return null;
|
|
1083
|
-
let t = _e(e.textColor, e.backgroundColor);
|
|
1084
|
-
if (Number.isNaN(t)) return null;
|
|
1085
|
-
let n = e.fontSize >= 24 ? 3 : 4.5;
|
|
1086
|
-
return t >= n ? null : {
|
|
1087
|
-
blockId: e.id,
|
|
1088
|
-
params: {
|
|
1089
|
-
ratio: t.toFixed(2),
|
|
1090
|
-
required: n
|
|
1091
|
-
}
|
|
1092
|
-
};
|
|
1093
|
-
}
|
|
1094
|
-
},
|
|
1095
|
-
{
|
|
1096
|
-
meta: {
|
|
1097
|
-
id: "a11y.missing-preheader",
|
|
1098
|
-
reference: "https://docs.templatical.com/quality/accessibility/rule-catalog#template-level",
|
|
1099
|
-
severity: "info"
|
|
1100
|
-
},
|
|
1126
|
+
meta: Wt,
|
|
1101
1127
|
template(e) {
|
|
1102
|
-
|
|
1128
|
+
let t = [];
|
|
1129
|
+
return C(e, (e) => {
|
|
1130
|
+
r(e) && e.icons.forEach((n, r) => {
|
|
1131
|
+
Gt(n) && t.push({
|
|
1132
|
+
blockId: e.id,
|
|
1133
|
+
params: { iconIndex: r + 1 }
|
|
1134
|
+
});
|
|
1135
|
+
});
|
|
1136
|
+
}), t;
|
|
1103
1137
|
}
|
|
1104
1138
|
}
|
|
1105
1139
|
];
|
|
1106
|
-
function
|
|
1107
|
-
return t.disabled === !0 || t.accessibility === !1 ? [] : w(e,
|
|
1140
|
+
function qt(e, t = {}) {
|
|
1141
|
+
return t.disabled === !0 || t.accessibility === !1 ? [] : w(e, Kt, Ee(t.locale, t.accessibility ?? {}, Kt), (e, t, n) => Pe(e, t, n));
|
|
1108
1142
|
}
|
|
1109
1143
|
// ../quality/src/structure/messages/de.ts
|
|
1110
|
-
var
|
|
1144
|
+
var Jt = /* @__PURE__ */ e({ default: () => Yt }), Yt = {
|
|
1111
1145
|
"structure.duplicate-block-id": {
|
|
1112
1146
|
message: "Block-ID erscheint {count}-mal im Baum.",
|
|
1113
1147
|
suggestion: "Gib jedem Block eine eindeutige ID."
|
|
@@ -1155,8 +1189,12 @@ var Vt = /* @__PURE__ */ e({ default: () => Ht }), Ht = {
|
|
|
1155
1189
|
"structure.column-widths-ignored.value": {
|
|
1156
1190
|
message: "Diese Spaltenbreiten enthalten einen Wert, der keine endliche Zahl über 0 ist, deshalb gilt die Aufteilung des Layouts.",
|
|
1157
1191
|
suggestion: "Verwende für jede Spalte eine positive Zahl oder entferne die Breiten."
|
|
1192
|
+
},
|
|
1193
|
+
"structure.social-icon-missing-image": {
|
|
1194
|
+
message: "Symbol {iconIndex} ist ein benutzerdefiniertes Symbol ohne Bild.",
|
|
1195
|
+
suggestion: "Füge eine Bild-URL hinzu, wähle eine Plattform oder entferne das Symbol."
|
|
1158
1196
|
}
|
|
1159
|
-
},
|
|
1197
|
+
}, Xt = /* @__PURE__ */ e({ default: () => R }), R = {
|
|
1160
1198
|
"structure.duplicate-block-id": {
|
|
1161
1199
|
message: "Block id appears {count} times in the tree.",
|
|
1162
1200
|
suggestion: "Give each block a unique id."
|
|
@@ -1204,37 +1242,41 @@ var Vt = /* @__PURE__ */ e({ default: () => Ht }), Ht = {
|
|
|
1204
1242
|
"structure.column-widths-ignored.value": {
|
|
1205
1243
|
message: "These column widths include a value that isn't a finite number above 0, so the layout's split is used.",
|
|
1206
1244
|
suggestion: "Use a positive number for each column, or remove the widths."
|
|
1245
|
+
},
|
|
1246
|
+
"structure.social-icon-missing-image": {
|
|
1247
|
+
message: "Icon {iconIndex} is a custom icon with no image.",
|
|
1248
|
+
suggestion: "Add an image URL, or choose a platform or remove the icon."
|
|
1207
1249
|
}
|
|
1208
|
-
},
|
|
1209
|
-
"./de.ts":
|
|
1210
|
-
"./en.ts":
|
|
1250
|
+
}, Zt = /* #__PURE__ */ Object.assign({
|
|
1251
|
+
"./de.ts": Jt,
|
|
1252
|
+
"./en.ts": Xt
|
|
1211
1253
|
}), z = {};
|
|
1212
|
-
for (let e in
|
|
1254
|
+
for (let e in Zt) {
|
|
1213
1255
|
let t = /\.\/([^/]+)\.ts$/.exec(e);
|
|
1214
1256
|
if (!t) continue;
|
|
1215
1257
|
let n = t[1];
|
|
1216
|
-
n !== "index" && (z[n] =
|
|
1258
|
+
n !== "index" && (z[n] = Zt[e].default);
|
|
1217
1259
|
}
|
|
1218
|
-
function
|
|
1260
|
+
function Qt(e) {
|
|
1219
1261
|
return z[e.split("-")[0]?.toLowerCase() ?? "en"] ?? z.en ?? R;
|
|
1220
1262
|
}
|
|
1221
|
-
function
|
|
1222
|
-
return D(
|
|
1263
|
+
function $t(e, t, n) {
|
|
1264
|
+
return D(Qt(e)[t] ?? R[t], n);
|
|
1223
1265
|
}
|
|
1224
1266
|
// ../quality/src/structure/rules/duplicate-block-id.ts
|
|
1225
|
-
var
|
|
1267
|
+
var en = {
|
|
1226
1268
|
id: "structure.duplicate-block-id",
|
|
1227
1269
|
reference: "https://docs.templatical.com/quality/structure/rule-catalog#tree-integrity",
|
|
1228
1270
|
severity: "error"
|
|
1229
1271
|
};
|
|
1230
|
-
function
|
|
1231
|
-
for (let n of e) if (t.set(n.id, (t.get(n.id) ?? 0) + 1), u(n)) for (let e of n.children)
|
|
1272
|
+
function tn(e, t) {
|
|
1273
|
+
for (let n of e) if (t.set(n.id, (t.get(n.id) ?? 0) + 1), u(n)) for (let e of n.children) tn(e, t);
|
|
1232
1274
|
}
|
|
1233
|
-
var
|
|
1234
|
-
meta:
|
|
1275
|
+
var nn = {
|
|
1276
|
+
meta: en,
|
|
1235
1277
|
template(e) {
|
|
1236
1278
|
let t = /* @__PURE__ */ new Map();
|
|
1237
|
-
|
|
1279
|
+
tn(e.blocks, t);
|
|
1238
1280
|
let n = [];
|
|
1239
1281
|
for (let [e, r] of t) r > 1 && n.push({
|
|
1240
1282
|
blockId: e,
|
|
@@ -1242,12 +1284,12 @@ var Yt = {
|
|
|
1242
1284
|
});
|
|
1243
1285
|
return n;
|
|
1244
1286
|
}
|
|
1245
|
-
},
|
|
1287
|
+
}, rn = {
|
|
1246
1288
|
id: "structure.empty-column",
|
|
1247
1289
|
reference: "https://docs.templatical.com/quality/structure/rule-catalog#content-presence",
|
|
1248
1290
|
severity: "warning"
|
|
1249
1291
|
};
|
|
1250
|
-
function
|
|
1292
|
+
function an(e, t) {
|
|
1251
1293
|
for (let n of e) {
|
|
1252
1294
|
if (!u(n)) continue;
|
|
1253
1295
|
let e = n;
|
|
@@ -1257,29 +1299,29 @@ function Zt(e, t) {
|
|
|
1257
1299
|
params: { columnIndex: r + 1 }
|
|
1258
1300
|
});
|
|
1259
1301
|
});
|
|
1260
|
-
for (let n of e.children)
|
|
1302
|
+
for (let n of e.children) an(n, t);
|
|
1261
1303
|
}
|
|
1262
1304
|
}
|
|
1263
|
-
var
|
|
1264
|
-
meta:
|
|
1305
|
+
var on = {
|
|
1306
|
+
meta: rn,
|
|
1265
1307
|
template(e) {
|
|
1266
1308
|
let t = [];
|
|
1267
|
-
return
|
|
1309
|
+
return an(e.blocks, t), t;
|
|
1268
1310
|
}
|
|
1269
|
-
},
|
|
1311
|
+
}, sn = {
|
|
1270
1312
|
id: "structure.empty-section",
|
|
1271
1313
|
reference: "https://docs.templatical.com/quality/structure/rule-catalog#content-presence",
|
|
1272
1314
|
severity: "warning"
|
|
1273
1315
|
};
|
|
1274
|
-
function
|
|
1316
|
+
function cn(e) {
|
|
1275
1317
|
return e.children.length === 0 || e.children.every((e) => e.length === 0);
|
|
1276
1318
|
}
|
|
1277
|
-
var
|
|
1278
|
-
meta:
|
|
1319
|
+
var ln = {
|
|
1320
|
+
meta: sn,
|
|
1279
1321
|
block(e) {
|
|
1280
1322
|
if (!u(e)) return null;
|
|
1281
1323
|
let t = e;
|
|
1282
|
-
return
|
|
1324
|
+
return cn(t) ? {
|
|
1283
1325
|
blockId: t.id,
|
|
1284
1326
|
fix: {
|
|
1285
1327
|
description: "Remove the empty section",
|
|
@@ -1290,7 +1332,7 @@ var tn = {
|
|
|
1290
1332
|
}
|
|
1291
1333
|
} : null;
|
|
1292
1334
|
}
|
|
1293
|
-
},
|
|
1335
|
+
}, un = {
|
|
1294
1336
|
meta: {
|
|
1295
1337
|
id: "structure.column-widths-ignored",
|
|
1296
1338
|
reference: "https://docs.templatical.com/quality/structure/rule-catalog#section-layout",
|
|
@@ -1305,7 +1347,30 @@ var tn = {
|
|
|
1305
1347
|
messageVariant: t
|
|
1306
1348
|
};
|
|
1307
1349
|
}
|
|
1308
|
-
},
|
|
1350
|
+
}, dn = {
|
|
1351
|
+
id: "structure.social-icon-missing-image",
|
|
1352
|
+
reference: "https://docs.templatical.com/quality/structure/rule-catalog#social-icons",
|
|
1353
|
+
severity: "error"
|
|
1354
|
+
};
|
|
1355
|
+
function fn(e) {
|
|
1356
|
+
if (e.platform !== "custom") return !1;
|
|
1357
|
+
let t = e.imageUrl;
|
|
1358
|
+
return typeof t != "string" || t.trim() === "";
|
|
1359
|
+
}
|
|
1360
|
+
var pn = {
|
|
1361
|
+
meta: dn,
|
|
1362
|
+
template(e) {
|
|
1363
|
+
let t = [];
|
|
1364
|
+
return C(e, (e) => {
|
|
1365
|
+
r(e) && e.icons.forEach((n, r) => {
|
|
1366
|
+
fn(n) && t.push({
|
|
1367
|
+
blockId: e.id,
|
|
1368
|
+
params: { iconIndex: r + 1 }
|
|
1369
|
+
});
|
|
1370
|
+
});
|
|
1371
|
+
}), t;
|
|
1372
|
+
}
|
|
1373
|
+
}, mn = {
|
|
1309
1374
|
meta: {
|
|
1310
1375
|
id: "structure.hero-not-applied",
|
|
1311
1376
|
reference: "https://docs.templatical.com/quality/structure/rule-catalog#content-presence",
|
|
@@ -1326,22 +1391,22 @@ var tn = {
|
|
|
1326
1391
|
}
|
|
1327
1392
|
};
|
|
1328
1393
|
// ../quality/src/structure/band.ts
|
|
1329
|
-
function
|
|
1394
|
+
function hn(e, t) {
|
|
1330
1395
|
return e.wrapper ? e.wrapper : t.parent && s(t.parent) ? {
|
|
1331
1396
|
backgroundColor: t.parent.styles?.backgroundColor,
|
|
1332
1397
|
backgroundImage: t.parent.backgroundImage
|
|
1333
1398
|
} : null;
|
|
1334
1399
|
}
|
|
1335
|
-
function
|
|
1400
|
+
function gn(e) {
|
|
1336
1401
|
if (typeof e != "string") return !1;
|
|
1337
1402
|
let t = e.trim().toLowerCase();
|
|
1338
1403
|
return t !== "" && t !== "transparent";
|
|
1339
1404
|
}
|
|
1340
1405
|
// ../quality/src/structure/index.ts
|
|
1341
|
-
var
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1406
|
+
var _n = [
|
|
1407
|
+
nn,
|
|
1408
|
+
ln,
|
|
1409
|
+
on,
|
|
1345
1410
|
{
|
|
1346
1411
|
meta: {
|
|
1347
1412
|
id: "structure.nested-section",
|
|
@@ -1382,8 +1447,8 @@ var sn = [
|
|
|
1382
1447
|
},
|
|
1383
1448
|
block(e, t) {
|
|
1384
1449
|
if (!u(e) || o(e.backgroundImage) === null) return null;
|
|
1385
|
-
let n =
|
|
1386
|
-
return n === null || !
|
|
1450
|
+
let n = hn(e, t);
|
|
1451
|
+
return n === null || !gn(n.backgroundColor) ? null : { blockId: e.id };
|
|
1387
1452
|
}
|
|
1388
1453
|
},
|
|
1389
1454
|
{
|
|
@@ -1394,18 +1459,19 @@ var sn = [
|
|
|
1394
1459
|
},
|
|
1395
1460
|
block(e, t) {
|
|
1396
1461
|
if (!u(e) || o(e.backgroundImage) === null) return null;
|
|
1397
|
-
let n =
|
|
1462
|
+
let n = hn(e, t);
|
|
1398
1463
|
return n === null || o(n.backgroundImage) === null ? null : { blockId: e.id };
|
|
1399
1464
|
}
|
|
1400
1465
|
},
|
|
1401
|
-
|
|
1402
|
-
|
|
1466
|
+
mn,
|
|
1467
|
+
un,
|
|
1468
|
+
pn
|
|
1403
1469
|
];
|
|
1404
|
-
function
|
|
1405
|
-
return t.disabled === !0 || t.structure === !1 ? [] : w(e,
|
|
1470
|
+
function vn(e, t = {}) {
|
|
1471
|
+
return t.disabled === !0 || t.structure === !1 ? [] : w(e, _n, De(t.locale, t.structure ?? {}, _n), (e, t, n) => $t(e, t, n));
|
|
1406
1472
|
}
|
|
1407
1473
|
// ../quality/src/links/messages/de.ts
|
|
1408
|
-
var
|
|
1474
|
+
var yn = /* @__PURE__ */ e({ default: () => bn }), bn = {
|
|
1409
1475
|
"link.javascript-protocol": {
|
|
1410
1476
|
message: "Die URL verwendet das Protokoll „{protocol}:\", das beliebigen Skriptcode ausführen kann und aus Sicherheitsgründen beim Rendern entfernt wird.",
|
|
1411
1477
|
suggestion: "Ersetze sie durch eine echte URL oder entferne sie."
|
|
@@ -1430,7 +1496,7 @@ var ln = /* @__PURE__ */ e({ default: () => un }), un = {
|
|
|
1430
1496
|
message: "Die URL „{url}\" ist relativ. Eine versendete E-Mail hat keine Seitenadresse, gegen die sie aufgelöst werden kann, daher funktioniert der Link nicht.",
|
|
1431
1497
|
suggestion: "Verwende eine absolute URL (https://…)."
|
|
1432
1498
|
}
|
|
1433
|
-
},
|
|
1499
|
+
}, xn = /* @__PURE__ */ e({ default: () => B }), B = {
|
|
1434
1500
|
"link.javascript-protocol": {
|
|
1435
1501
|
message: "URL uses the \"{protocol}:\" protocol, which can execute arbitrary script and is stripped at render time for safety.",
|
|
1436
1502
|
suggestion: "Replace it with a real link or remove the URL."
|
|
@@ -1455,21 +1521,21 @@ var ln = /* @__PURE__ */ e({ default: () => un }), un = {
|
|
|
1455
1521
|
message: "URL \"{url}\" is relative. A sent email has no page address to resolve it against, so the link breaks.",
|
|
1456
1522
|
suggestion: "Use an absolute URL (https://…)."
|
|
1457
1523
|
}
|
|
1458
|
-
},
|
|
1459
|
-
"./de.ts":
|
|
1460
|
-
"./en.ts":
|
|
1524
|
+
}, Sn = /* #__PURE__ */ Object.assign({
|
|
1525
|
+
"./de.ts": yn,
|
|
1526
|
+
"./en.ts": xn
|
|
1461
1527
|
}), V = {};
|
|
1462
|
-
for (let e in
|
|
1528
|
+
for (let e in Sn) {
|
|
1463
1529
|
let t = /\.\/([^/]+)\.ts$/.exec(e);
|
|
1464
1530
|
if (!t) continue;
|
|
1465
1531
|
let n = t[1];
|
|
1466
|
-
n !== "index" && (V[n] =
|
|
1532
|
+
n !== "index" && (V[n] = Sn[e].default);
|
|
1467
1533
|
}
|
|
1468
|
-
function
|
|
1534
|
+
function Cn(e) {
|
|
1469
1535
|
return V[e.split("-")[0]?.toLowerCase() ?? "en"] ?? V.en ?? B;
|
|
1470
1536
|
}
|
|
1471
|
-
function
|
|
1472
|
-
return D(
|
|
1537
|
+
function wn(e, t, n) {
|
|
1538
|
+
return D(Cn(e)[t] ?? B[t], n);
|
|
1473
1539
|
}
|
|
1474
1540
|
// ../quality/src/url-walker.ts
|
|
1475
1541
|
function H(e) {
|
|
@@ -1514,21 +1580,21 @@ function H(e) {
|
|
|
1514
1580
|
}), i;
|
|
1515
1581
|
}
|
|
1516
1582
|
// ../quality/src/links/rules/javascript-protocol.ts
|
|
1517
|
-
var
|
|
1583
|
+
var Tn = {
|
|
1518
1584
|
id: "link.javascript-protocol",
|
|
1519
1585
|
reference: "https://docs.templatical.com/quality/links/rule-catalog#dangerous-protocols",
|
|
1520
1586
|
severity: "error"
|
|
1521
|
-
},
|
|
1522
|
-
function
|
|
1587
|
+
}, En = se;
|
|
1588
|
+
function Dn(e) {
|
|
1523
1589
|
let t = h(e), n = h(e.replace(/\s+/g, ""));
|
|
1524
|
-
return
|
|
1590
|
+
return En.find((e) => e === t || e === n) ?? null;
|
|
1525
1591
|
}
|
|
1526
|
-
var
|
|
1527
|
-
meta:
|
|
1592
|
+
var On = {
|
|
1593
|
+
meta: Tn,
|
|
1528
1594
|
template(e) {
|
|
1529
1595
|
let t = [];
|
|
1530
1596
|
for (let n of H(e)) {
|
|
1531
|
-
let e =
|
|
1597
|
+
let e = Dn(n.url);
|
|
1532
1598
|
e !== null && t.push({
|
|
1533
1599
|
blockId: n.blockId,
|
|
1534
1600
|
params: { protocol: e }
|
|
@@ -1536,41 +1602,41 @@ var vn = {
|
|
|
1536
1602
|
}
|
|
1537
1603
|
return t;
|
|
1538
1604
|
}
|
|
1539
|
-
},
|
|
1605
|
+
}, kn = {
|
|
1540
1606
|
id: "link.unsupported-protocol",
|
|
1541
1607
|
reference: "https://docs.templatical.com/quality/links/rule-catalog#unsupported-protocols",
|
|
1542
1608
|
severity: "warning"
|
|
1543
|
-
},
|
|
1609
|
+
}, An = /* @__PURE__ */ new Set([
|
|
1544
1610
|
"http",
|
|
1545
1611
|
"https",
|
|
1546
1612
|
"mailto",
|
|
1547
1613
|
"tel",
|
|
1548
1614
|
"sms"
|
|
1549
|
-
]),
|
|
1550
|
-
function
|
|
1615
|
+
]), jn = new Set(En);
|
|
1616
|
+
function Mn(e) {
|
|
1551
1617
|
if (!e) return null;
|
|
1552
1618
|
let t = e.trim(), n = /^([a-z][a-z0-9+\-.]*):/i.exec(t);
|
|
1553
1619
|
return n ? n[1].toLowerCase() : null;
|
|
1554
1620
|
}
|
|
1555
|
-
var
|
|
1556
|
-
meta:
|
|
1621
|
+
var Nn = {
|
|
1622
|
+
meta: kn,
|
|
1557
1623
|
template(e) {
|
|
1558
1624
|
let t = [];
|
|
1559
1625
|
for (let n of H(e)) {
|
|
1560
|
-
let e =
|
|
1561
|
-
e !== null && (
|
|
1626
|
+
let e = Mn(n.url);
|
|
1627
|
+
e !== null && (jn.has(e) || An.has(e) || t.push({
|
|
1562
1628
|
blockId: n.blockId,
|
|
1563
1629
|
params: { protocol: e }
|
|
1564
1630
|
}));
|
|
1565
1631
|
}
|
|
1566
1632
|
return t;
|
|
1567
1633
|
}
|
|
1568
|
-
},
|
|
1634
|
+
}, Pn = {
|
|
1569
1635
|
id: "link.malformed-mailto",
|
|
1570
1636
|
reference: "https://docs.templatical.com/quality/links/rule-catalog#malformed-uris",
|
|
1571
1637
|
severity: "warning"
|
|
1572
1638
|
};
|
|
1573
|
-
function
|
|
1639
|
+
function Fn(e) {
|
|
1574
1640
|
let t = e.trim();
|
|
1575
1641
|
if (!/^mailto:/i.test(t)) return !1;
|
|
1576
1642
|
let [n] = t.slice(7).split("?", 2);
|
|
@@ -1585,39 +1651,39 @@ function Tn(e) {
|
|
|
1585
1651
|
}
|
|
1586
1652
|
return !1;
|
|
1587
1653
|
}
|
|
1588
|
-
var
|
|
1589
|
-
meta:
|
|
1654
|
+
var In = {
|
|
1655
|
+
meta: Pn,
|
|
1590
1656
|
template(e) {
|
|
1591
1657
|
let t = [];
|
|
1592
|
-
for (let n of H(e))
|
|
1658
|
+
for (let n of H(e)) Fn(n.url) && t.push({ blockId: n.blockId });
|
|
1593
1659
|
return t;
|
|
1594
1660
|
}
|
|
1595
|
-
},
|
|
1661
|
+
}, Ln = {
|
|
1596
1662
|
id: "link.malformed-tel",
|
|
1597
1663
|
reference: "https://docs.templatical.com/quality/links/rule-catalog#malformed-uris",
|
|
1598
1664
|
severity: "warning"
|
|
1599
|
-
},
|
|
1600
|
-
function
|
|
1665
|
+
}, Rn = /^[+0-9\s().\-]+$/, zn = /^[A-Za-z0-9-]+(=[^;]+)?$/;
|
|
1666
|
+
function Bn(e) {
|
|
1601
1667
|
let t = e.trim();
|
|
1602
1668
|
if (!/^tel:/i.test(t)) return !1;
|
|
1603
1669
|
let n = t.slice(4).trim();
|
|
1604
1670
|
if (n === "") return !0;
|
|
1605
1671
|
let [r, ...i] = n.split(";");
|
|
1606
|
-
return !
|
|
1672
|
+
return !Rn.test(r) || i.some((e) => !zn.test(e));
|
|
1607
1673
|
}
|
|
1608
|
-
var
|
|
1609
|
-
meta:
|
|
1674
|
+
var Vn = {
|
|
1675
|
+
meta: Ln,
|
|
1610
1676
|
template(e) {
|
|
1611
1677
|
let t = [];
|
|
1612
|
-
for (let n of H(e))
|
|
1678
|
+
for (let n of H(e)) Bn(n.url) && t.push({ blockId: n.blockId });
|
|
1613
1679
|
return t;
|
|
1614
1680
|
}
|
|
1615
|
-
},
|
|
1681
|
+
}, Hn = {
|
|
1616
1682
|
id: "link.localhost-or-staging",
|
|
1617
1683
|
reference: "https://docs.templatical.com/quality/links/rule-catalog#environment-leaks",
|
|
1618
1684
|
severity: "warning"
|
|
1619
1685
|
};
|
|
1620
|
-
function
|
|
1686
|
+
function Un(e, t) {
|
|
1621
1687
|
let n = e.toLowerCase().split("*");
|
|
1622
1688
|
if (n.length === 1) return t === n[0];
|
|
1623
1689
|
let r = n[0], i = n[n.length - 1];
|
|
@@ -1631,7 +1697,7 @@ function Nn(e, t) {
|
|
|
1631
1697
|
}
|
|
1632
1698
|
return !0;
|
|
1633
1699
|
}
|
|
1634
|
-
function
|
|
1700
|
+
function Wn(e) {
|
|
1635
1701
|
if (!e) return null;
|
|
1636
1702
|
let t = e.trim();
|
|
1637
1703
|
if (!/^(https?|ftps?):\/\//i.test(t)) return null;
|
|
@@ -1641,38 +1707,38 @@ function Pn(e) {
|
|
|
1641
1707
|
return null;
|
|
1642
1708
|
}
|
|
1643
1709
|
}
|
|
1644
|
-
var
|
|
1645
|
-
meta:
|
|
1710
|
+
var Gn = {
|
|
1711
|
+
meta: Hn,
|
|
1646
1712
|
template(e, t) {
|
|
1647
1713
|
let n = t.links.nonProductionHosts;
|
|
1648
1714
|
if (n.length === 0) return [];
|
|
1649
1715
|
let r = [];
|
|
1650
1716
|
for (let t of H(e)) {
|
|
1651
|
-
let e =
|
|
1652
|
-
e !== null && n.some((t) =>
|
|
1717
|
+
let e = Wn(t.url);
|
|
1718
|
+
e !== null && n.some((t) => Un(t, e)) && r.push({
|
|
1653
1719
|
blockId: t.blockId,
|
|
1654
1720
|
params: { host: e }
|
|
1655
1721
|
});
|
|
1656
1722
|
}
|
|
1657
1723
|
return r;
|
|
1658
1724
|
}
|
|
1659
|
-
},
|
|
1725
|
+
}, Kn = {
|
|
1660
1726
|
id: "link.relative-url",
|
|
1661
1727
|
reference: "https://docs.templatical.com/quality/links/rule-catalog#unsupported-protocols",
|
|
1662
1728
|
severity: "warning"
|
|
1663
|
-
},
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1729
|
+
}, qn = /^(?:\/|\.{1,2}\/|\?)/, Jn = [
|
|
1730
|
+
On,
|
|
1731
|
+
Nn,
|
|
1732
|
+
In,
|
|
1733
|
+
Vn,
|
|
1734
|
+
Gn,
|
|
1669
1735
|
{
|
|
1670
|
-
meta:
|
|
1736
|
+
meta: Kn,
|
|
1671
1737
|
template(e) {
|
|
1672
1738
|
let t = [];
|
|
1673
1739
|
for (let n of H(e)) {
|
|
1674
1740
|
let e = n.url?.trim();
|
|
1675
|
-
e &&
|
|
1741
|
+
e && qn.test(e) && t.push({
|
|
1676
1742
|
blockId: n.blockId,
|
|
1677
1743
|
params: { url: e }
|
|
1678
1744
|
});
|
|
@@ -1681,11 +1747,11 @@ var Fn = {
|
|
|
1681
1747
|
}
|
|
1682
1748
|
}
|
|
1683
1749
|
];
|
|
1684
|
-
function
|
|
1685
|
-
return t.disabled === !0 || t.links === !1 ? [] : w(e,
|
|
1750
|
+
function Yn(e, t = {}) {
|
|
1751
|
+
return t.disabled === !0 || t.links === !1 ? [] : w(e, Jn, Oe(t.locale, t.links ?? {}, Jn), (e, t, n) => wn(e, t, n));
|
|
1686
1752
|
}
|
|
1687
1753
|
// ../quality/src/deliverability/messages/de.ts
|
|
1688
|
-
var
|
|
1754
|
+
var Xn = /* @__PURE__ */ e({ default: () => Zn }), Zn = {
|
|
1689
1755
|
"deliverability.link-text-domain-mismatch": {
|
|
1690
1756
|
message: "Der Linktext zeigt {textHost}, der Link führt aber zu {linkHost}. Spamfilter werten solche Links als Phishing.",
|
|
1691
1757
|
suggestion: "Lass den Text zum Ziel passen oder verwende Wörter statt einer Adresse."
|
|
@@ -1702,7 +1768,7 @@ var Bn = /* @__PURE__ */ e({ default: () => Vn }), Vn = {
|
|
|
1702
1768
|
message: "Diese E-Mail enthält Bilder, aber nur {count} Zeichen Text (weniger als {min}). Manche Spamfilter bewerten bildlastige E-Mails mit wenig Text negativ, und wer Bilder blockiert, sieht fast nichts.",
|
|
1703
1769
|
suggestion: "Ergänze Text, der die Botschaft trägt."
|
|
1704
1770
|
}
|
|
1705
|
-
},
|
|
1771
|
+
}, Qn = /* @__PURE__ */ e({ default: () => U }), U = {
|
|
1706
1772
|
"deliverability.link-text-domain-mismatch": {
|
|
1707
1773
|
message: "The link text shows {textHost}, but the link goes to {linkHost}. Spam filters flag links like this as phishing.",
|
|
1708
1774
|
suggestion: "Make the text match the destination, or use words instead of an address."
|
|
@@ -1719,24 +1785,24 @@ var Bn = /* @__PURE__ */ e({ default: () => Vn }), Vn = {
|
|
|
1719
1785
|
message: "This email has images but only {count} characters of text (under {min}). Some spam filters score image-heavy emails with little text, and readers who block images see almost nothing.",
|
|
1720
1786
|
suggestion: "Add text that carries the message."
|
|
1721
1787
|
}
|
|
1722
|
-
},
|
|
1723
|
-
"./de.ts":
|
|
1724
|
-
"./en.ts":
|
|
1788
|
+
}, $n = /* #__PURE__ */ Object.assign({
|
|
1789
|
+
"./de.ts": Xn,
|
|
1790
|
+
"./en.ts": Qn
|
|
1725
1791
|
}), W = {};
|
|
1726
|
-
for (let e in
|
|
1792
|
+
for (let e in $n) {
|
|
1727
1793
|
let t = /\.\/([^/]+)\.ts$/.exec(e);
|
|
1728
1794
|
if (!t) continue;
|
|
1729
1795
|
let n = t[1];
|
|
1730
|
-
n !== "index" && (W[n] =
|
|
1796
|
+
n !== "index" && (W[n] = $n[e].default);
|
|
1731
1797
|
}
|
|
1732
|
-
function
|
|
1798
|
+
function er(e) {
|
|
1733
1799
|
return W[e.split("-")[0]?.toLowerCase() ?? "en"] ?? W.en ?? U;
|
|
1734
1800
|
}
|
|
1735
|
-
function
|
|
1736
|
-
return D(
|
|
1801
|
+
function tr(e, t, n) {
|
|
1802
|
+
return D(er(e)[t] ?? U[t], n);
|
|
1737
1803
|
}
|
|
1738
1804
|
// ../quality/src/deliverability/same-site.ts
|
|
1739
|
-
var
|
|
1805
|
+
var nr = "ac.jp ac.uk co.at co.id co.il co.in co.jp co.kr co.nz co.uk co.za com.ar com.au com.br com.cn com.co com.hk com.mx com.my com.ph com.pl com.sg com.tr com.tw com.ua edu.au go.jp gov.au gov.uk ltd.uk me.uk ne.jp net.au net.br net.cn net.in net.nz or.at or.jp or.kr org.au org.br org.cn org.in org.nz org.uk plc.uk".split(" "), rr = new Set(nr);
|
|
1740
1806
|
function G(e) {
|
|
1741
1807
|
try {
|
|
1742
1808
|
let t = new URL(e);
|
|
@@ -1748,38 +1814,38 @@ function G(e) {
|
|
|
1748
1814
|
function K(e) {
|
|
1749
1815
|
return e.hostname.toLowerCase().replace(/\.$/, "").replace(/^www\./, "");
|
|
1750
1816
|
}
|
|
1751
|
-
function
|
|
1817
|
+
function ir(e) {
|
|
1752
1818
|
if (/^\d+\.\d+\.\d+\.\d+$/.test(e) || e.startsWith("[")) return e;
|
|
1753
1819
|
let t = e.split("."), n = t.slice(-2).join(".");
|
|
1754
|
-
return t.slice(-(
|
|
1820
|
+
return t.slice(-(rr.has(n) ? 3 : 2)).join(".");
|
|
1755
1821
|
}
|
|
1756
|
-
function
|
|
1822
|
+
function ar(e, t) {
|
|
1757
1823
|
let n = G(`http://${e}`), r = G(`http://${t}`);
|
|
1758
|
-
return !n || !r ? !1 :
|
|
1824
|
+
return !n || !r ? !1 : ir(K(n)) === ir(K(r));
|
|
1759
1825
|
}
|
|
1760
1826
|
// ../quality/src/deliverability/rules/link-text-domain-mismatch.ts
|
|
1761
|
-
var
|
|
1827
|
+
var or = {
|
|
1762
1828
|
id: "deliverability.link-text-domain-mismatch",
|
|
1763
1829
|
reference: "https://docs.rspamd.com/modules/phishing/",
|
|
1764
1830
|
severity: "warning"
|
|
1765
|
-
},
|
|
1766
|
-
function
|
|
1831
|
+
}, sr = /^(?:https?:\/\/)?(?:[\p{L}\p{N}](?:[\p{L}\p{N}-]*[\p{L}\p{N}])?\.)+(?:\p{L}{2,}|xn--[a-z0-9-]+)(?::\d+)?(?:[/?#][^\s]*)?$/iu;
|
|
1832
|
+
function cr(e) {
|
|
1767
1833
|
if (!e) return null;
|
|
1768
1834
|
let t = e.trim();
|
|
1769
|
-
return t.startsWith("<") && t.endsWith(">") && (t = t.slice(1, -1)), t = t.replace(/[.,;:!?)]+$/, ""),
|
|
1835
|
+
return t.startsWith("<") && t.endsWith(">") && (t = t.slice(1, -1)), t = t.replace(/[.,;:!?)]+$/, ""), sr.test(t) ? G(/^https?:\/\//i.test(t) ? t : `http://${t}`) : null;
|
|
1770
1836
|
}
|
|
1771
1837
|
// ../quality/src/deliverability/index.ts
|
|
1772
|
-
var
|
|
1838
|
+
var lr = [
|
|
1773
1839
|
{
|
|
1774
|
-
meta:
|
|
1840
|
+
meta: or,
|
|
1775
1841
|
template(e) {
|
|
1776
1842
|
let t = [];
|
|
1777
1843
|
for (let n of H(e)) {
|
|
1778
1844
|
if (n.source !== "anchor" && n.source !== "button" && n.source !== "menu-item") continue;
|
|
1779
|
-
let e =
|
|
1845
|
+
let e = cr(n.label), r = G(n.url);
|
|
1780
1846
|
if (!e || !r) continue;
|
|
1781
1847
|
let i = K(e), a = K(r);
|
|
1782
|
-
|
|
1848
|
+
ar(i, a) || t.push({
|
|
1783
1849
|
blockId: n.blockId,
|
|
1784
1850
|
params: {
|
|
1785
1851
|
textHost: i,
|
|
@@ -1853,11 +1919,11 @@ var $n = [
|
|
|
1853
1919
|
}
|
|
1854
1920
|
}
|
|
1855
1921
|
];
|
|
1856
|
-
function
|
|
1857
|
-
return t.disabled === !0 || t.deliverability === !1 ? [] : w(e,
|
|
1922
|
+
function ur(e, t = {}) {
|
|
1923
|
+
return t.disabled === !0 || t.deliverability === !1 ? [] : w(e, lr, we(t.locale, t.deliverability ?? {}, lr), (e, t, n) => tr(e, t, n));
|
|
1858
1924
|
}
|
|
1859
1925
|
// ../quality/src/compatibility/data/caniemail.generated.ts
|
|
1860
|
-
var
|
|
1926
|
+
var dr = {
|
|
1861
1927
|
family: {
|
|
1862
1928
|
gmail: "Gmail",
|
|
1863
1929
|
outlook: "Outlook",
|
|
@@ -1894,7 +1960,7 @@ var tr = {
|
|
|
1894
1960
|
"windows-mail": "Windows Mail",
|
|
1895
1961
|
"outlook-com": "Outlook.com"
|
|
1896
1962
|
}
|
|
1897
|
-
},
|
|
1963
|
+
}, fr = {
|
|
1898
1964
|
"css-display-flex": {
|
|
1899
1965
|
title: "display:flex",
|
|
1900
1966
|
url: "https://www.caniemail.com/features/css-display-flex/",
|
|
@@ -3925,7 +3991,7 @@ var tr = {
|
|
|
3925
3991
|
}
|
|
3926
3992
|
}
|
|
3927
3993
|
}
|
|
3928
|
-
},
|
|
3994
|
+
}, pr = [
|
|
3929
3995
|
"css-display-flex",
|
|
3930
3996
|
"css-display-grid",
|
|
3931
3997
|
"css-position",
|
|
@@ -3945,7 +4011,7 @@ var tr = {
|
|
|
3945
4011
|
"image-base64"
|
|
3946
4012
|
];
|
|
3947
4013
|
// ../quality/src/compatibility/scan.ts
|
|
3948
|
-
function
|
|
4014
|
+
function mr(e) {
|
|
3949
4015
|
let t = "", n = 0;
|
|
3950
4016
|
for (;;) {
|
|
3951
4017
|
let r = e.indexOf("/*", n);
|
|
@@ -3990,8 +4056,8 @@ function q(e) {
|
|
|
3990
4056
|
o = l + 1;
|
|
3991
4057
|
}
|
|
3992
4058
|
}
|
|
3993
|
-
function
|
|
3994
|
-
let a = [], o =
|
|
4059
|
+
function hr(e, t, n, r, i) {
|
|
4060
|
+
let a = [], o = mr(e).replace(/data:([\w.+-]+\/[\w.+-]+)[^)"']*/gi, "data:$1");
|
|
3995
4061
|
for (let e of o.matchAll(/(?:^|[;{])\s*([\w-]+)\s*:\s*([^;}]+)/g)) a.push({
|
|
3996
4062
|
prop: e[1].toLowerCase(),
|
|
3997
4063
|
value: e[2].trim(),
|
|
@@ -4002,17 +4068,17 @@ function ar(e, t, n, r, i) {
|
|
|
4002
4068
|
});
|
|
4003
4069
|
return a;
|
|
4004
4070
|
}
|
|
4005
|
-
function
|
|
4071
|
+
function gr(e, t = "", n = []) {
|
|
4006
4072
|
let r = {
|
|
4007
4073
|
tags: [],
|
|
4008
4074
|
css: [],
|
|
4009
4075
|
cssTexts: [],
|
|
4010
4076
|
urls: [...n]
|
|
4011
4077
|
}, i = !1, a = "", o = 0, s = (e, t, n, i) => {
|
|
4012
|
-
r.cssTexts.push(
|
|
4078
|
+
r.cssTexts.push(mr(e));
|
|
4013
4079
|
let a = o++;
|
|
4014
|
-
if (i) r.css.push(...
|
|
4015
|
-
else for (let [i, o] of e.split("}").entries()) r.css.push(...
|
|
4080
|
+
if (i) r.css.push(...hr(e, t, n, !0, `${a}`));
|
|
4081
|
+
else for (let [i, o] of e.split("}").entries()) r.css.push(...hr(o, t, n, !1, `${a}:${i}`));
|
|
4016
4082
|
};
|
|
4017
4083
|
return new y({
|
|
4018
4084
|
onopentag(e, t) {
|
|
@@ -4029,7 +4095,7 @@ function or(e, t = "", n = []) {
|
|
|
4029
4095
|
}
|
|
4030
4096
|
}, { decodeEntities: !0 }).end(e), t && s(t, "stylesheet", {}, !1), r;
|
|
4031
4097
|
}
|
|
4032
|
-
function
|
|
4098
|
+
function _r(e) {
|
|
4033
4099
|
let t = [], n = [], r = [];
|
|
4034
4100
|
switch (e.type) {
|
|
4035
4101
|
case "html":
|
|
@@ -4052,17 +4118,24 @@ function sr(e) {
|
|
|
4052
4118
|
case "section":
|
|
4053
4119
|
e.backgroundImage && r.push(e.backgroundImage.url), e.wrapper?.backgroundImage && r.push(e.wrapper.backgroundImage.url);
|
|
4054
4120
|
break;
|
|
4055
|
-
case "wrapper":
|
|
4121
|
+
case "wrapper":
|
|
4122
|
+
e.backgroundImage && r.push(e.backgroundImage.url);
|
|
4123
|
+
break;
|
|
4124
|
+
case "social": for (let t of e.icons) {
|
|
4125
|
+
if (t.platform !== "custom") continue;
|
|
4126
|
+
let e = t.imageUrl;
|
|
4127
|
+
typeof e == "string" && r.push(e);
|
|
4128
|
+
}
|
|
4056
4129
|
}
|
|
4057
|
-
return
|
|
4130
|
+
return gr(t.join("\n"), n.join("\n"), r);
|
|
4058
4131
|
}
|
|
4059
4132
|
// ../quality/src/compatibility/detect.ts
|
|
4060
|
-
var
|
|
4061
|
-
function
|
|
4133
|
+
var vr = (e) => e.replace(/\s+/g, " ").trim().slice(0, 80), J = ({ prop: e, value: t }) => vr(`${e}: ${t}`), yr = (e) => `<${e}>`, br = /#[0-9a-f]{3,8}\b|\b(?:rgba?|hsla?)\(/i;
|
|
4134
|
+
function xr(e) {
|
|
4062
4135
|
let t = /^\s*data:(image\/[\w.+-]+)/i.exec(e);
|
|
4063
4136
|
return t ? t[1].toLowerCase() : null;
|
|
4064
4137
|
}
|
|
4065
|
-
function
|
|
4138
|
+
function Sr(e) {
|
|
4066
4139
|
let t = /* @__PURE__ */ new Map();
|
|
4067
4140
|
for (let n of e.css) {
|
|
4068
4141
|
let e = n.group, r = t.get(e);
|
|
@@ -4070,10 +4143,10 @@ function fr(e) {
|
|
|
4070
4143
|
}
|
|
4071
4144
|
for (let e of t.values()) {
|
|
4072
4145
|
let t = e.find((e) => (e.prop === "background" || e.prop === "background-image") && /url\(/i.test(e.value));
|
|
4073
|
-
if (!(!t || "bgcolor" in t.attrs) && !e.some((e) => e.prop === "background-color" || e.prop === "background" &&
|
|
4146
|
+
if (!(!t || "bgcolor" in t.attrs) && !e.some((e) => e.prop === "background-color" || e.prop === "background" && br.test(q(e.value)))) return t;
|
|
4074
4147
|
}
|
|
4075
4148
|
}
|
|
4076
|
-
function
|
|
4149
|
+
function Cr(e, t) {
|
|
4077
4150
|
let n = e.css, r = e.tags, i, a;
|
|
4078
4151
|
switch (t) {
|
|
4079
4152
|
case "compat.css-display-flex":
|
|
@@ -4098,13 +4171,13 @@ function pr(e, t) {
|
|
|
4098
4171
|
case "compat.html-video":
|
|
4099
4172
|
case "compat.html-audio":
|
|
4100
4173
|
case "compat.html-script":
|
|
4101
|
-
case "compat.html-iframe": return a = t.slice(12), r.some((e) => e.tag === a) ? { excerpt:
|
|
4174
|
+
case "compat.html-iframe": return a = t.slice(12), r.some((e) => e.tag === a) ? { excerpt: yr(a) } : null;
|
|
4102
4175
|
case "compat.html-form": return a = r.find((e) => [
|
|
4103
4176
|
"form",
|
|
4104
4177
|
"input",
|
|
4105
4178
|
"select",
|
|
4106
4179
|
"textarea"
|
|
4107
|
-
].includes(e.tag))?.tag, a ? { excerpt:
|
|
4180
|
+
].includes(e.tag))?.tag, a ? { excerpt: yr(a) } : null;
|
|
4108
4181
|
case "compat.css-width": return i = n.find((e) => e.inline && e.prop === "width" && ([
|
|
4109
4182
|
"div",
|
|
4110
4183
|
"p",
|
|
@@ -4122,9 +4195,9 @@ function pr(e, t) {
|
|
|
4122
4195
|
excerpt: J(i),
|
|
4123
4196
|
tag: i.tag
|
|
4124
4197
|
} : null;
|
|
4125
|
-
case "compat.css-background-image": return i =
|
|
4198
|
+
case "compat.css-background-image": return i = Sr(e), i ? { excerpt: J(i) } : null;
|
|
4126
4199
|
case "compat.image-base64": {
|
|
4127
|
-
let t = e.cssTexts.flatMap((e) => [...e.matchAll(/url\(\s*['"]?\s*(data:image\/[\w.+-]+)/gi)].map((e) => e[1])), n = [...e.urls, ...t].map(
|
|
4200
|
+
let t = e.cssTexts.flatMap((e) => [...e.matchAll(/url\(\s*['"]?\s*(data:image\/[\w.+-]+)/gi)].map((e) => e[1])), n = [...e.urls, ...t].map(xr).find((e) => e !== null);
|
|
4128
4201
|
return n ? {
|
|
4129
4202
|
excerpt: `data:${n}`,
|
|
4130
4203
|
usage: n
|
|
@@ -4134,14 +4207,14 @@ function pr(e, t) {
|
|
|
4134
4207
|
}
|
|
4135
4208
|
}
|
|
4136
4209
|
// ../quality/src/compatibility/support.ts
|
|
4137
|
-
var
|
|
4210
|
+
var wr = fr, Tr = [
|
|
4138
4211
|
"gmail",
|
|
4139
4212
|
"outlook",
|
|
4140
4213
|
"apple-mail",
|
|
4141
4214
|
"yahoo",
|
|
4142
4215
|
"samsung-email"
|
|
4143
|
-
], Y =
|
|
4144
|
-
function
|
|
4216
|
+
], Y = dr.family, Er = dr.platform;
|
|
4217
|
+
function Dr(e, t, n) {
|
|
4145
4218
|
switch (e) {
|
|
4146
4219
|
case "css-display-flex": return t === 2 && n === "inline-flex";
|
|
4147
4220
|
case "css-position": {
|
|
@@ -4160,14 +4233,14 @@ function _r(e, t, n) {
|
|
|
4160
4233
|
default: return !1;
|
|
4161
4234
|
}
|
|
4162
4235
|
}
|
|
4163
|
-
function
|
|
4164
|
-
let n =
|
|
4236
|
+
function Or(e, t = "") {
|
|
4237
|
+
let n = wr[e];
|
|
4165
4238
|
if (!n) return [];
|
|
4166
4239
|
let r = [];
|
|
4167
4240
|
for (let [i, a] of Object.entries(n.cells)) {
|
|
4168
|
-
let o = i.indexOf("."), s = i.slice(0, o), c = i.slice(o + 1), l = a.notes.some((n) =>
|
|
4241
|
+
let o = i.indexOf("."), s = i.slice(0, o), c = i.slice(o + 1), l = a.notes.some((n) => Dr(e, n, t)) || a.value === "n" ? "unsupported" : a.value === "a" ? "partial" : null;
|
|
4169
4242
|
if (!l) continue;
|
|
4170
|
-
let u = Y[s] ?? s, d =
|
|
4243
|
+
let u = Y[s] ?? s, d = Er[c] ?? c;
|
|
4171
4244
|
r.push({
|
|
4172
4245
|
id: i,
|
|
4173
4246
|
name: d.toLowerCase().includes(u.toLowerCase()) ? d : `${u} ${d}`,
|
|
@@ -4178,7 +4251,7 @@ function vr(e, t = "") {
|
|
|
4178
4251
|
}
|
|
4179
4252
|
return r;
|
|
4180
4253
|
}
|
|
4181
|
-
function
|
|
4254
|
+
function kr(e, t, n) {
|
|
4182
4255
|
let r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
|
|
4183
4256
|
for (let n of e) {
|
|
4184
4257
|
let e = n.id.split(".")[0], a = r.get(e);
|
|
@@ -4188,16 +4261,16 @@ function yr(e, t, n) {
|
|
|
4188
4261
|
}
|
|
4189
4262
|
}
|
|
4190
4263
|
let a = [...i.keys()].sort((e, t) => {
|
|
4191
|
-
let n =
|
|
4264
|
+
let n = Tr.indexOf(e), r = Tr.indexOf(t);
|
|
4192
4265
|
return n === r ? (Y[e] ?? e).localeCompare(Y[t] ?? t) : (n < 0 ? Infinity : n) - (r < 0 ? Infinity : r);
|
|
4193
4266
|
}).map((e) => {
|
|
4194
4267
|
let t = Y[e] ?? e, n = i.get(e);
|
|
4195
|
-
return n.length === r.get(e).length ? t : `${t} (${n.map((e) =>
|
|
4268
|
+
return n.length === r.get(e).length ? t : `${t} (${n.map((e) => Er[e.id.split(".")[1]] ?? e.name).join(", ")})`;
|
|
4196
4269
|
}), o = a.slice(0, 4);
|
|
4197
4270
|
return a.length > 4 && o.push(`${a.length - 4} ${n.startsWith("de") ? "weitere" : "more"}`), new Intl.ListFormat(n.startsWith("de") ? "de" : "en", { type: "conjunction" }).format(o);
|
|
4198
4271
|
}
|
|
4199
4272
|
// ../quality/src/compatibility/messages/de.ts
|
|
4200
|
-
var
|
|
4273
|
+
var Ar = /* @__PURE__ */ e({ default: () => jr }), jr = {
|
|
4201
4274
|
templates: {
|
|
4202
4275
|
unsupported: "{feature} funktioniert in {unsupported} nicht.",
|
|
4203
4276
|
partial: "{feature} funktioniert in {partial} nur teilweise.",
|
|
@@ -4288,7 +4361,7 @@ var br = /* @__PURE__ */ e({ default: () => xr }), xr = {
|
|
|
4288
4361
|
suggestion: "Bleibe unter {max} KB: Kürze den Inhalt, verschiebe lange Abschnitte auf eine Webseite oder ersetze Base64-Bilder durch gehostete Bilder."
|
|
4289
4362
|
}
|
|
4290
4363
|
}
|
|
4291
|
-
},
|
|
4364
|
+
}, Mr = /* @__PURE__ */ e({ default: () => Nr }), Nr = {
|
|
4292
4365
|
templates: {
|
|
4293
4366
|
unsupported: "{feature} doesn't work in {unsupported}.",
|
|
4294
4367
|
partial: "{feature} only partly works in {partial}.",
|
|
@@ -4379,16 +4452,16 @@ var br = /* @__PURE__ */ e({ default: () => xr }), xr = {
|
|
|
4379
4452
|
suggestion: "Bring it under {max} KB: shorten the content, move long sections to a web page, or replace base64 images with hosted ones."
|
|
4380
4453
|
}
|
|
4381
4454
|
}
|
|
4382
|
-
},
|
|
4383
|
-
"./de.ts":
|
|
4384
|
-
"./en.ts":
|
|
4455
|
+
}, Pr = /* #__PURE__ */ Object.assign({
|
|
4456
|
+
"./de.ts": Ar,
|
|
4457
|
+
"./en.ts": Mr
|
|
4385
4458
|
}), X = {};
|
|
4386
|
-
for (let e in
|
|
4387
|
-
function
|
|
4388
|
-
return X[e.split("-")[0]?.toLowerCase() ?? "en"] ?? X.en ??
|
|
4459
|
+
for (let e in Pr) X[e.slice(2, -3)] = Pr[e].default;
|
|
4460
|
+
function Fr(e) {
|
|
4461
|
+
return X[e.split("-")[0]?.toLowerCase() ?? "en"] ?? X.en ?? Nr;
|
|
4389
4462
|
}
|
|
4390
|
-
function
|
|
4391
|
-
let r =
|
|
4463
|
+
function Ir(e, t, n = {}) {
|
|
4464
|
+
let r = Fr(e), i = r.hand[t];
|
|
4392
4465
|
if (i) return D(i, n);
|
|
4393
4466
|
let a = t.slice(7), o = r.features[a];
|
|
4394
4467
|
if (!o) throw Error(`Missing compatibility message: ${t}`);
|
|
@@ -4405,22 +4478,22 @@ function Er(e, t, n = {}) {
|
|
|
4405
4478
|
});
|
|
4406
4479
|
}
|
|
4407
4480
|
// ../quality/src/compatibility/index.ts
|
|
4408
|
-
var
|
|
4409
|
-
...
|
|
4481
|
+
var Lr = "https://docs.templatical.com/quality/compatibility/rule-catalog", Rr = ["html-script", "html-iframe"], Z = [
|
|
4482
|
+
...pr.map((e) => ({ meta: {
|
|
4410
4483
|
id: `compat.${e}`,
|
|
4411
4484
|
severity: "warning",
|
|
4412
|
-
reference:
|
|
4485
|
+
reference: fr[e].url
|
|
4413
4486
|
} })),
|
|
4414
|
-
...
|
|
4487
|
+
...Rr.map((e) => ({ meta: {
|
|
4415
4488
|
id: `compat.${e}`,
|
|
4416
4489
|
severity: "warning",
|
|
4417
|
-
reference: `${
|
|
4490
|
+
reference: `${Lr}#compat-${e}`
|
|
4418
4491
|
} })),
|
|
4419
4492
|
{
|
|
4420
4493
|
meta: {
|
|
4421
4494
|
id: "compat.gmail-clipping",
|
|
4422
4495
|
severity: "warning",
|
|
4423
|
-
reference: `${
|
|
4496
|
+
reference: `${Lr}#compat-gmail-clipping`
|
|
4424
4497
|
},
|
|
4425
4498
|
compiledHtml(e, t) {
|
|
4426
4499
|
let n = new TextEncoder().encode(e).byteLength;
|
|
@@ -4440,22 +4513,22 @@ var Dr = "https://docs.templatical.com/quality/compatibility/rule-catalog", Or =
|
|
|
4440
4513
|
}
|
|
4441
4514
|
}
|
|
4442
4515
|
];
|
|
4443
|
-
function
|
|
4516
|
+
function zr(e, t, n) {
|
|
4444
4517
|
let r = n.compatibility || {}, i = Te(n.locale, r, Z), a = [];
|
|
4445
4518
|
for (let n of Z) {
|
|
4446
4519
|
let o = n.meta.id;
|
|
4447
4520
|
if (o === "compat.gmail-clipping" || i.severity(o) === "off") continue;
|
|
4448
|
-
let s =
|
|
4521
|
+
let s = Cr(e, o);
|
|
4449
4522
|
if (!s) continue;
|
|
4450
|
-
let c = o === "compat.html-script" || o === "compat.html-iframe", l = c ? void 0 :
|
|
4523
|
+
let c = o === "compat.html-script" || o === "compat.html-iframe", l = c ? void 0 : Or(o.slice(7), s.usage);
|
|
4451
4524
|
if (!c && l?.length === 0) continue;
|
|
4452
4525
|
let u = l?.some((e) => e.support === "unsupported") ?? !0, d = u ? "warning" : "info", f = r.rules?.[o], p = f && f !== "off" ? f : d, m = {
|
|
4453
4526
|
excerpt: s.excerpt,
|
|
4454
4527
|
value: s.value ?? "",
|
|
4455
4528
|
tag: s.tag ?? ""
|
|
4456
4529
|
};
|
|
4457
|
-
l && (u && (m.unsupported =
|
|
4458
|
-
let h =
|
|
4530
|
+
l && (u && (m.unsupported = kr(l, "unsupported", i.locale)), l.some((e) => e.support === "partial") && (m.partial = kr(l, "partial", i.locale)));
|
|
4531
|
+
let h = Ir(i.locale, o, m);
|
|
4459
4532
|
a.push({
|
|
4460
4533
|
blockId: t,
|
|
4461
4534
|
ruleId: o,
|
|
@@ -4468,27 +4541,27 @@ function kr(e, t, n) {
|
|
|
4468
4541
|
}
|
|
4469
4542
|
return a;
|
|
4470
4543
|
}
|
|
4471
|
-
function
|
|
4544
|
+
function Br(e, t = {}) {
|
|
4472
4545
|
if (t.disabled === !0 || t.compatibility === !1) return [];
|
|
4473
4546
|
let n = [], r = /* @__PURE__ */ new WeakMap();
|
|
4474
4547
|
return C(e, (e) => {
|
|
4475
4548
|
let i = r.get(e);
|
|
4476
|
-
i || (i =
|
|
4549
|
+
i || (i = _r(e), r.set(e, i)), n.push(...zr(i, e.id, t));
|
|
4477
4550
|
}), n;
|
|
4478
4551
|
}
|
|
4479
|
-
function
|
|
4552
|
+
function Vr(e, t = {}) {
|
|
4480
4553
|
if (t.disabled === !0 || t.compatibility === !1) return [];
|
|
4481
4554
|
let n = Te(t.locale, t.compatibility || {}, Z), r = Z.find((e) => e.meta.id === "compat.gmail-clipping"), i = n.severity(r.meta.id);
|
|
4482
4555
|
return i === "off" ? [] : r.compiledHtml(e, n).map((e) => ({
|
|
4483
4556
|
blockId: null,
|
|
4484
4557
|
ruleId: r.meta.id,
|
|
4485
4558
|
severity: i,
|
|
4486
|
-
...
|
|
4559
|
+
...Ir(n.locale, r.meta.id, e.params),
|
|
4487
4560
|
reference: r.meta.reference
|
|
4488
4561
|
}));
|
|
4489
4562
|
}
|
|
4490
4563
|
// ../quality/src/localization/messages/de.ts
|
|
4491
|
-
var
|
|
4564
|
+
var Hr = /* @__PURE__ */ e({ default: () => Ur }), Ur = {
|
|
4492
4565
|
"localization.untranslated": {
|
|
4493
4566
|
message: "Das Feld {field} hat keine Übersetzung.",
|
|
4494
4567
|
suggestion: "Übersetze {field} oder verwende die Standardsprache als Fallback."
|
|
@@ -4501,7 +4574,7 @@ var Mr = /* @__PURE__ */ e({ default: () => Nr }), Nr = {
|
|
|
4501
4574
|
message: "Die Merge-Tags in {field} weichen von der Standardsprache ab.",
|
|
4502
4575
|
suggestion: "Verwende in {field} dieselben Merge-Tags mit derselben Anzahl an Vorkommen."
|
|
4503
4576
|
}
|
|
4504
|
-
},
|
|
4577
|
+
}, Wr = /* @__PURE__ */ e({ default: () => Q }), Q = {
|
|
4505
4578
|
"localization.untranslated": {
|
|
4506
4579
|
message: "The field {field} has no translation.",
|
|
4507
4580
|
suggestion: "Translate {field}, or keep the default language as a fallback."
|
|
@@ -4514,24 +4587,24 @@ var Mr = /* @__PURE__ */ e({ default: () => Nr }), Nr = {
|
|
|
4514
4587
|
message: "The merge tags in {field} differ from the default language.",
|
|
4515
4588
|
suggestion: "Keep the same merge tags and occurrence counts in {field}."
|
|
4516
4589
|
}
|
|
4517
|
-
},
|
|
4518
|
-
"./de.ts":
|
|
4519
|
-
"./en.ts":
|
|
4590
|
+
}, Gr = /* #__PURE__ */ Object.assign({
|
|
4591
|
+
"./de.ts": Hr,
|
|
4592
|
+
"./en.ts": Wr
|
|
4520
4593
|
}), $ = {};
|
|
4521
|
-
for (let e in
|
|
4594
|
+
for (let e in Gr) {
|
|
4522
4595
|
let t = /\.\/([^/]+)\.ts$/.exec(e);
|
|
4523
4596
|
if (!t) continue;
|
|
4524
4597
|
let n = t[1];
|
|
4525
|
-
n !== "index" && ($[n] =
|
|
4598
|
+
n !== "index" && ($[n] = Gr[e].default);
|
|
4526
4599
|
}
|
|
4527
|
-
function
|
|
4600
|
+
function Kr(e) {
|
|
4528
4601
|
return $[e.split("-")[0]?.toLowerCase() ?? "en"] ?? $.en ?? Q;
|
|
4529
4602
|
}
|
|
4530
|
-
function
|
|
4531
|
-
return D(
|
|
4603
|
+
function qr(e, t, n) {
|
|
4604
|
+
return D(Kr(e)[t] ?? Q[t], n);
|
|
4532
4605
|
}
|
|
4533
4606
|
// ../quality/src/localization/rules.ts
|
|
4534
|
-
function
|
|
4607
|
+
function Jr(e, t) {
|
|
4535
4608
|
let n = /* @__PURE__ */ new Map();
|
|
4536
4609
|
C(e, (e) => {
|
|
4537
4610
|
for (let r of f(e, t.customBlocks)) n.set(`${e.id}/${r}`, {
|
|
@@ -4549,16 +4622,16 @@ function Rr(e, t) {
|
|
|
4549
4622
|
});
|
|
4550
4623
|
return n;
|
|
4551
4624
|
}
|
|
4552
|
-
function
|
|
4625
|
+
function Yr({ blockId: e, field: t }) {
|
|
4553
4626
|
return {
|
|
4554
4627
|
blockId: e,
|
|
4555
4628
|
params: { field: t }
|
|
4556
4629
|
};
|
|
4557
4630
|
}
|
|
4558
|
-
function
|
|
4631
|
+
function Xr(e, t) {
|
|
4559
4632
|
return re(e, t.contentLocale, t.customBlocks);
|
|
4560
4633
|
}
|
|
4561
|
-
function
|
|
4634
|
+
function Zr(e, t, n) {
|
|
4562
4635
|
let r = [], i = "\0MT";
|
|
4563
4636
|
for (; e.includes(i);) i += "_";
|
|
4564
4637
|
let a = n === "html" ? m(e, (e) => {
|
|
@@ -4593,7 +4666,7 @@ function Vr(e, t, n) {
|
|
|
4593
4666
|
}
|
|
4594
4667
|
return [...r, ...s.map((e) => e.value)].sort();
|
|
4595
4668
|
}
|
|
4596
|
-
var
|
|
4669
|
+
var Qr = [
|
|
4597
4670
|
{
|
|
4598
4671
|
meta: {
|
|
4599
4672
|
id: "localization.untranslated",
|
|
@@ -4601,8 +4674,8 @@ var Hr = [
|
|
|
4601
4674
|
reference: "https://docs.templatical.com/guide/localized-templates#missing-values"
|
|
4602
4675
|
},
|
|
4603
4676
|
template: (e, t) => {
|
|
4604
|
-
let n =
|
|
4605
|
-
return
|
|
4677
|
+
let n = Jr(e, t);
|
|
4678
|
+
return Xr(e, t).missing.map((e) => Yr(n.get(e)));
|
|
4606
4679
|
}
|
|
4607
4680
|
},
|
|
4608
4681
|
{
|
|
@@ -4612,8 +4685,8 @@ var Hr = [
|
|
|
4612
4685
|
reference: "https://docs.templatical.com/guide/localized-templates#out-of-date-values"
|
|
4613
4686
|
},
|
|
4614
4687
|
template: (e, t) => {
|
|
4615
|
-
let n =
|
|
4616
|
-
return
|
|
4688
|
+
let n = Jr(e, t);
|
|
4689
|
+
return Xr(e, t).stale.map((e) => Yr(n.get(e)));
|
|
4617
4690
|
}
|
|
4618
4691
|
},
|
|
4619
4692
|
{
|
|
@@ -4623,22 +4696,22 @@ var Hr = [
|
|
|
4623
4696
|
reference: "https://docs.templatical.com/guide/localized-templates#merge-tags"
|
|
4624
4697
|
},
|
|
4625
4698
|
template: (e, t) => {
|
|
4626
|
-
let n =
|
|
4699
|
+
let n = Jr(e, t), r = Xr(e, t), i = le(t.mergeTagSyntax);
|
|
4627
4700
|
return [...r.translated, ...r.stale].flatMap((e) => {
|
|
4628
4701
|
let r = n.get(e), { target: a, field: o, format: s } = r, c = ie(a, o), l = a?.l10n?.[t.contentLocale]?.text?.[o]?.value;
|
|
4629
|
-
return typeof c != "string" || l === void 0 || JSON.stringify(
|
|
4702
|
+
return typeof c != "string" || l === void 0 || JSON.stringify(Zr(c, i, s)) === JSON.stringify(Zr(l, i, s)) ? [] : [Yr(r)];
|
|
4630
4703
|
});
|
|
4631
4704
|
}
|
|
4632
4705
|
}
|
|
4633
4706
|
];
|
|
4634
4707
|
// ../quality/src/localization/index.ts
|
|
4635
|
-
function
|
|
4708
|
+
function $r(e, t = {}) {
|
|
4636
4709
|
if (t.disabled === !0 || t.localization === !1) return [];
|
|
4637
4710
|
let n = t.contentLocale ?? g(e);
|
|
4638
|
-
return n === g(e) ? [] : (e.settings.locales?.includes(n) || ee(e, n), w(e,
|
|
4711
|
+
return n === g(e) ? [] : (e.settings.locales?.includes(n) || ee(e, n), w(e, Qr, {
|
|
4639
4712
|
...T({
|
|
4640
4713
|
locale: t.locale,
|
|
4641
|
-
rules:
|
|
4714
|
+
rules: Qr,
|
|
4642
4715
|
overrides: t.localization?.rules,
|
|
4643
4716
|
thresholds: void 0,
|
|
4644
4717
|
nonProductionHosts: void 0
|
|
@@ -4646,22 +4719,22 @@ function Ur(e, t = {}) {
|
|
|
4646
4719
|
contentLocale: n,
|
|
4647
4720
|
customBlocks: t.customBlocks,
|
|
4648
4721
|
mergeTagSyntax: t.mergeTagSyntax
|
|
4649
|
-
}, (e, t, n) =>
|
|
4722
|
+
}, (e, t, n) => qr(e, t, n)));
|
|
4650
4723
|
}
|
|
4651
4724
|
// ../quality/src/util.ts
|
|
4652
|
-
function
|
|
4725
|
+
function ei(e) {
|
|
4653
4726
|
return e ? e.disabled === !0 || e.accessibility === !1 && e.structure === !1 && e.links === !1 && e.deliverability === !1 && e.compatibility === !1 && e.localization === !1 : !1;
|
|
4654
4727
|
}
|
|
4655
4728
|
// ../quality/src/lint-template.ts
|
|
4656
|
-
function
|
|
4657
|
-
if (
|
|
4729
|
+
function ti(e, t = {}) {
|
|
4730
|
+
if (ei(t)) return [];
|
|
4658
4731
|
let n = g(e), r = t.contentLocale ?? n, i = ee(e, r), a = [
|
|
4659
|
-
...
|
|
4660
|
-
...
|
|
4661
|
-
...
|
|
4662
|
-
...
|
|
4663
|
-
...
|
|
4664
|
-
|
|
4732
|
+
...qt(i, t),
|
|
4733
|
+
...vn(i, t),
|
|
4734
|
+
...Yn(i, t),
|
|
4735
|
+
...ur(i, t),
|
|
4736
|
+
...Br(i, t),
|
|
4737
|
+
...$r(e, t)
|
|
4665
4738
|
];
|
|
4666
4739
|
return r === n ? a : a.map((e) => {
|
|
4667
4740
|
if (!e.fix?.removesBlock) return e;
|
|
@@ -4669,6 +4742,6 @@ function Gr(e, t = {}) {
|
|
|
4669
4742
|
return delete t.fix, t;
|
|
4670
4743
|
});
|
|
4671
4744
|
}
|
|
4672
|
-
export {
|
|
4745
|
+
export { Vr as lintCompiledHtml, ti as lintTemplate };
|
|
4673
4746
|
|
|
4674
|
-
//# sourceMappingURL=src-
|
|
4747
|
+
//# sourceMappingURL=src-edESkGqO.js.map
|