@templatical/editor 0.47.0 → 0.49.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/{AiChatSidebar-BPOv5Ra8.js → AiChatSidebar-CdjTb9ej.js} +14 -14
- package/dist/{AiFeatureMenu-H_WT4YR8.js → AiFeatureMenu-DKm7VYCs.js} +7 -7
- package/dist/{BlockIssueBadge-AgO5abEB.js → BlockIssueBadge-BdpJwim0.js} +5 -5
- package/dist/BlockPreviewCanvas-D_sowkf0.js +141 -0
- package/dist/CloudHeaderExtras-CI8RR9hG.js +55 -0
- package/dist/{CloudPanels-H_GdbOfZ.js → CloudPanels-1hwFiJ0G.js} +39 -68
- package/dist/CollaborationNotices-BWpKzueF.js +73 -0
- package/dist/CollaboratorBar-D87phJsw.js +123 -0
- package/dist/{CommentsPanel-CMgsG_yh.js → CommentsPanel-BUvUzO3T.js} +2 -2
- package/dist/{CommentsSidebar-DCh8DTP8.js → CommentsSidebar-J65znlrH.js} +14 -14
- package/dist/{CountdownBlock-zx39Dyby.js → CountdownBlock-DPQXWRvU.js} +4 -4
- package/dist/{CountdownToolbar-DVuucA3v.js → CountdownToolbar-CLMIwfK7.js} +7 -7
- package/dist/{DesignReferenceSidebar-DxNV4lQp.js → DesignReferenceSidebar-BTwCFgz8.js} +13 -13
- package/dist/{IssuesPanel-CUpW54P4.js → IssuesPanel-DeeVsfG7.js} +8 -8
- package/dist/{LoadingTrack-6XsqodoY.js → LoadingTrack-BXOptf5g.js} +1 -1
- package/dist/{LogicTagInsertButton-DDYKnqmj.js → LogicTagInsertButton-CR5E4jSG.js} +17 -17
- package/dist/{MediaEditModal-D_we0Scr.js → MediaEditModal-C_wxoUMG.js} +3 -3
- package/dist/{MediaPanels-L95BwWV1.js → MediaPanels-BVXDkqtH.js} +2 -2
- package/dist/{MergeTagInput-DAL998tx.js → MergeTagInput-BEw_r0PJ.js} +3 -3
- package/dist/{MergeTagModeToggle-CjHO26rb.js → MergeTagModeToggle-CJTpFmVd.js} +7 -7
- package/dist/{ParagraphEditor-CcEN1N6n.js → ParagraphEditor-zLV44z-R.js} +135 -135
- package/dist/{RestoreVersionDialog-B2OH5rgs.js → RestoreVersionDialog-BaDpy3cL.js} +6 -6
- package/dist/{RichTextEditorContent-BGeTg-QL.js → RichTextEditorContent-CsvniFlI.js} +9 -9
- package/dist/{SaveBlockDialog-CCVyU-7y.js → SaveBlockDialog-DzWURF_e.js} +34 -35
- package/dist/{SavedBlocksBrowserModal-_WmSeqIh.js → SavedBlocksBrowserModal-B8DCFW7t.js} +14 -14
- package/dist/{SavedBlocksPanels-DVX_ruQ7.js → SavedBlocksPanels-B3Af8ns2.js} +2 -2
- package/dist/{SavedBlocksPickBar-DVJC28hP.js → SavedBlocksPickBar-Dj11-Lqp.js} +5 -5
- package/dist/{TemplateScoringPanel-U0QFiwdI.js → TemplateScoringPanel-Ba9sgvjS.js} +16 -16
- package/dist/{TemplateSettings-CdhTm9JQ.js → TemplateSettings-Cu5X9DgA.js} +11 -11
- package/dist/{TestEmailModal-BqToA_ls.js → TestEmailModal-BeRYV3eg.js} +14 -14
- package/dist/{TestEmailPanel-Cn4Ptq0j.js → TestEmailPanel-B8c3fQi2.js} +2 -2
- package/dist/{TitleEditor-CZdqeltH.js → TitleEditor-CvpNUoAp.js} +13 -13
- package/dist/{ToggleSwitch-BR8Sgzib.js → ToggleSwitch-DHweVJOr.js} +2 -2
- package/dist/Toolbar-BadDSkkF.js +3153 -0
- package/dist/{TplModal-CoczSDma.js → TplModal-BZgi9Tes.js} +5 -5
- package/dist/{VersionHistoryMenu-DY5z5FZr.js → VersionHistoryMenu-BRlcQ8wX.js} +10 -10
- package/dist/{VersionHistoryPanels-DowHeDAQ.js → VersionHistoryPanels-DGkllN3a.js} +2 -2
- package/dist/{VersionPreviewBanner-Bo8NxBbh.js → VersionPreviewBanner-F-811aps.js} +4 -4
- package/dist/WrapperBlock-DiiaxpMb.js +45 -0
- package/dist/{blockTypeIcons-4E1U8f99.js → blockTypeIcons-CayLluou.js} +49 -19
- package/dist/bundle-stats.json +7 -7
- package/dist/{ca-DMoGGP9L.js → ca-DSJwJ5ov.js} +40 -2
- package/dist/cdn/chunks/{AiChatSidebar-B72rI0be.js → AiChatSidebar-yXJ85Zcg.js} +12 -12
- package/dist/cdn/chunks/{AiChatSidebar-B72rI0be.js.map → AiChatSidebar-yXJ85Zcg.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-BqSG9iEd.js → AiFeatureMenu-4ydjrhsQ.js} +6 -6
- package/dist/cdn/chunks/{AiFeatureMenu-BqSG9iEd.js.map → AiFeatureMenu-4ydjrhsQ.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-CS7ytN-z.js → BlockIssueBadge-D1VBS_6x.js} +5 -5
- package/dist/cdn/chunks/{BlockIssueBadge-CS7ytN-z.js.map → BlockIssueBadge-D1VBS_6x.js.map} +1 -1
- package/dist/cdn/chunks/BlockPreviewCanvas-m2tWRyWv.js +143 -0
- package/dist/cdn/chunks/BlockPreviewCanvas-m2tWRyWv.js.map +1 -0
- package/dist/cdn/chunks/{CloudHeaderExtras-DJXLTUHc.js → CloudHeaderExtras-DEkRww7n.js} +16 -20
- package/dist/cdn/chunks/CloudHeaderExtras-DEkRww7n.js.map +1 -0
- package/dist/cdn/chunks/{CloudPanels-D1fPLjG8.js → CloudPanels-XufhBZYF.js} +38 -67
- package/dist/cdn/chunks/CloudPanels-XufhBZYF.js.map +1 -0
- package/dist/cdn/chunks/CollaborationNotices-CBvKEj1Q.js +75 -0
- package/dist/cdn/chunks/CollaborationNotices-CBvKEj1Q.js.map +1 -0
- package/dist/cdn/chunks/CollaboratorBar-DWW54Bn_.js +72 -0
- package/dist/cdn/chunks/CollaboratorBar-DWW54Bn_.js.map +1 -0
- package/dist/cdn/chunks/{CommentsPanel-CmxPylNf.js → CommentsPanel-R8YLLO3v.js} +3 -3
- package/dist/cdn/chunks/{CommentsPanel-CmxPylNf.js.map → CommentsPanel-R8YLLO3v.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-CrleQTbo.js → CommentsSidebar-96NZHVq3.js} +16 -16
- package/dist/cdn/chunks/{CommentsSidebar-CrleQTbo.js.map → CommentsSidebar-96NZHVq3.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-Dasj191h.js → CountdownBlock-DB4JNdqh.js} +5 -5
- package/dist/cdn/chunks/{CountdownBlock-Dasj191h.js.map → CountdownBlock-DB4JNdqh.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-DPIOtlN0.js → CountdownToolbar-tmiTPEXm.js} +8 -8
- package/dist/cdn/chunks/{CountdownToolbar-DPIOtlN0.js.map → CountdownToolbar-tmiTPEXm.js.map} +1 -1
- package/dist/cdn/chunks/{DesignReferenceSidebar-BgTNqgCy.js → DesignReferenceSidebar-D14IIu_P.js} +40 -40
- package/dist/cdn/chunks/{DesignReferenceSidebar-BgTNqgCy.js.map → DesignReferenceSidebar-D14IIu_P.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-BGjLcNpQ.js → IssuesPanel-BoPiCLGc.js} +6 -6
- package/dist/cdn/chunks/{IssuesPanel-BGjLcNpQ.js.map → IssuesPanel-BoPiCLGc.js.map} +1 -1
- package/dist/cdn/chunks/{LoadingTrack-DbH97JR9.js → LoadingTrack-YU44CM8X.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-DbH97JR9.js.map → LoadingTrack-YU44CM8X.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-BEsqPhMr.js → LogicTagInsertButton-BJ2t2vxC.js} +98 -98
- package/dist/cdn/chunks/{LogicTagInsertButton-BEsqPhMr.js.map → LogicTagInsertButton-BJ2t2vxC.js.map} +1 -1
- package/dist/cdn/chunks/{MediaEditModal-C1Ao0i2c.js → MediaEditModal-DD0SZ-S3.js} +3 -3
- package/dist/cdn/chunks/{MediaEditModal-C1Ao0i2c.js.map → MediaEditModal-DD0SZ-S3.js.map} +1 -1
- package/dist/cdn/chunks/{MediaPanels-1GPYiZZ0.js → MediaPanels-CkdJ_kGp.js} +3 -3
- package/dist/cdn/chunks/{MediaPanels-1GPYiZZ0.js.map → MediaPanels-CkdJ_kGp.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-Dy13_OLc.js → MergeTagInput-7wXX71DH.js} +4 -4
- package/dist/cdn/chunks/{MergeTagInput-Dy13_OLc.js.map → MergeTagInput-7wXX71DH.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-B2CPZOeF.js → MergeTagModeToggle-r9vHH4u_.js} +6 -6
- package/dist/cdn/chunks/{MergeTagModeToggle-B2CPZOeF.js.map → MergeTagModeToggle-r9vHH4u_.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-BGLIw7kg.js → ParagraphEditor-CJQjRHXV.js} +52 -52
- package/dist/cdn/chunks/{ParagraphEditor-BGLIw7kg.js.map → ParagraphEditor-CJQjRHXV.js.map} +1 -1
- package/dist/cdn/chunks/{RestoreVersionDialog-BhykE8En.js → RestoreVersionDialog-C5cxBRKi.js} +8 -8
- package/dist/cdn/chunks/{RestoreVersionDialog-BhykE8En.js.map → RestoreVersionDialog-C5cxBRKi.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-B-txUvPL.js → RichTextEditorContent-BfE7Bkge.js} +8 -8
- package/dist/cdn/chunks/{RichTextEditorContent-B-txUvPL.js.map → RichTextEditorContent-BfE7Bkge.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-BHqEp7jw.js → SaveBlockDialog-BKbjUnPM.js} +25 -26
- package/dist/cdn/chunks/{SaveBlockDialog-BHqEp7jw.js.map → SaveBlockDialog-BKbjUnPM.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-BhR6AI0f.js → SavedBlocksBrowserModal-BMtyUrUP.js} +10 -10
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-BhR6AI0f.js.map → SavedBlocksBrowserModal-BMtyUrUP.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-YwffJtfY.js → SavedBlocksPanels-s_gxi1im.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPanels-YwffJtfY.js.map → SavedBlocksPanels-s_gxi1im.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-BtpFU7es.js → SavedBlocksPickBar-B8WHk5mI.js} +6 -6
- package/dist/cdn/chunks/{SavedBlocksPickBar-BtpFU7es.js.map → SavedBlocksPickBar-B8WHk5mI.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateScoringPanel-N4ySFh5w.js → TemplateScoringPanel-BBPnHILC.js} +10 -10
- package/dist/cdn/chunks/{TemplateScoringPanel-N4ySFh5w.js.map → TemplateScoringPanel-BBPnHILC.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-C7b5X34U.js → TemplateSettings-CtrzzQWl.js} +14 -14
- package/dist/cdn/chunks/{TemplateSettings-C7b5X34U.js.map → TemplateSettings-CtrzzQWl.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-DHJKI5y5.js → TestEmailModal-DuZKYMWD.js} +15 -15
- package/dist/cdn/chunks/{TestEmailModal-DHJKI5y5.js.map → TestEmailModal-DuZKYMWD.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-lYtzTXpR.js → TestEmailPanel-DERaCdpG.js} +3 -3
- package/dist/cdn/chunks/{TestEmailPanel-lYtzTXpR.js.map → TestEmailPanel-DERaCdpG.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-5eY01ypW.js → TitleEditor-CEgxjtUX.js} +20 -20
- package/dist/cdn/chunks/{TitleEditor-5eY01ypW.js.map → TitleEditor-CEgxjtUX.js.map} +1 -1
- package/dist/cdn/chunks/{ToggleSwitch-BN8rMC2m.js → ToggleSwitch-DGQ7iRc-.js} +3 -3
- package/dist/cdn/chunks/{ToggleSwitch-BN8rMC2m.js.map → ToggleSwitch-DGQ7iRc-.js.map} +1 -1
- package/dist/cdn/chunks/Toolbar-GFIZQHzw.js +3070 -0
- package/dist/cdn/chunks/Toolbar-GFIZQHzw.js.map +1 -0
- package/dist/cdn/chunks/{TplModal-WIBiBrGy.js → TplModal-DDrbWJcE.js} +5 -5
- package/dist/cdn/chunks/{TplModal-WIBiBrGy.js.map → TplModal-DDrbWJcE.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-CZnlS9K5.js → VersionHistoryMenu-MlxsUmuT.js} +11 -11
- package/dist/cdn/chunks/{VersionHistoryMenu-CZnlS9K5.js.map → VersionHistoryMenu-MlxsUmuT.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-xjLSpR1e.js → VersionHistoryPanels-DVOV8QLv.js} +3 -3
- package/dist/cdn/chunks/{VersionHistoryPanels-xjLSpR1e.js.map → VersionHistoryPanels-DVOV8QLv.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-sARpn4hh.js → VersionPreviewBanner-BQwRKc6S.js} +5 -5
- package/dist/cdn/chunks/{VersionPreviewBanner-sARpn4hh.js.map → VersionPreviewBanner-BQwRKc6S.js.map} +1 -1
- package/dist/cdn/chunks/WrapperBlock-CFuP4R0c.js +47 -0
- package/dist/cdn/chunks/WrapperBlock-CFuP4R0c.js.map +1 -0
- package/dist/cdn/chunks/blockTypeIcons-BnAd8qsP.js +22 -0
- package/dist/cdn/chunks/blockTypeIcons-BnAd8qsP.js.map +1 -0
- package/dist/cdn/chunks/{ca-DMoGGP9L.js → ca-DSJwJ5ov.js} +41 -3
- package/dist/cdn/chunks/ca-DSJwJ5ov.js.map +1 -0
- package/dist/{cloud-DwjaAdwK.js → cdn/chunks/cloud-CI_fgDyy.js} +116 -293
- package/dist/cdn/chunks/cloud-CI_fgDyy.js.map +1 -0
- package/dist/cdn/chunks/{createCloudRuntime-DtIZ2Lee.js → createCloudRuntime-DiYCJ21w.js} +127 -169
- package/dist/cdn/chunks/createCloudRuntime-DiYCJ21w.js.map +1 -0
- package/dist/{de-DgAelLbM.js → cdn/chunks/de-CBE6O79z.js} +42 -2
- package/dist/cdn/chunks/de-CBE6O79z.js.map +1 -0
- package/dist/{de-mMY5yQJu.js → cdn/chunks/de-D_atmUVB.js} +2 -4
- package/dist/cdn/chunks/{de-mMY5yQJu.js.map → de-D_atmUVB.js.map} +1 -1
- package/dist/cdn/chunks/{dist-MNQYSEWU.js → dist-DdwjXLme.js} +3 -3
- package/dist/cdn/chunks/{dist-MNQYSEWU.js.map → dist-DdwjXLme.js.map} +1 -1
- package/dist/cdn/chunks/{dist-CjL6JHML.js → dist-Doy3r07H.js} +2 -2
- package/dist/cdn/chunks/{dist-CjL6JHML.js.map → dist-Doy3r07H.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-DrsNwZuB.js → draggable-akeQH_JP.js} +1682 -1683
- package/dist/cdn/chunks/draggable-akeQH_JP.js.map +1 -0
- package/dist/cdn/chunks/{editor-modal-Bcwo0orC.js → editor-modal-HJBy9kLj.js} +69 -69
- package/dist/cdn/chunks/{editor-modal-Bcwo0orC.js.map → editor-modal-HJBy9kLj.js.map} +1 -1
- package/dist/cdn/chunks/{en-Dekrl7HA.js → en-CDexnk0p.js} +41 -3
- package/dist/cdn/chunks/en-CDexnk0p.js.map +1 -0
- package/dist/{en-ChVeGQBY.js → cdn/chunks/en-DhJLnaBx.js} +2 -4
- package/dist/cdn/chunks/en-DhJLnaBx.js.map +1 -0
- package/dist/cdn/chunks/en-Ve-PWSXu.js +1 -0
- package/dist/{es-BaZzyidV.js → cdn/chunks/es-BE42B6uN.js} +42 -2
- package/dist/cdn/chunks/es-BE42B6uN.js.map +1 -0
- package/dist/cdn/chunks/{extensions-T-t8MKDb.js → extensions-koOuDeZS.js} +23 -23
- package/dist/cdn/chunks/{extensions-T-t8MKDb.js.map → extensions-koOuDeZS.js.map} +1 -1
- package/dist/{fr-C5ucb1HK.js → cdn/chunks/fr-DlJFPDQR.js} +42 -2
- package/dist/cdn/chunks/fr-DlJFPDQR.js.map +1 -0
- package/dist/cdn/chunks/{icons-C4fX9Bwy.js → icons-CjlNV8xD.js} +121 -92
- package/dist/cdn/chunks/icons-CjlNV8xD.js.map +1 -0
- package/dist/{ja-CUgR3mV0.js → cdn/chunks/ja-CUT8gkNI.js} +42 -2
- package/dist/cdn/chunks/ja-CUT8gkNI.js.map +1 -0
- package/dist/cdn/chunks/{keys-HI-INbkz.js → keys-UAWhQ3zW.js} +2 -2
- package/dist/cdn/chunks/{keys-HI-INbkz.js.map → keys-UAWhQ3zW.js.map} +1 -1
- package/dist/{nl-qrLY7hMS.js → cdn/chunks/nl-bXWqqRyS.js} +42 -2
- package/dist/cdn/chunks/nl-bXWqqRyS.js.map +1 -0
- package/dist/cdn/chunks/{preRenderCustomBlocks-Co0oi0Jf.js → preRenderCustomBlocks-DqKbdTJ8.js} +5 -5
- package/dist/cdn/chunks/{preRenderCustomBlocks-Co0oi0Jf.js.map → preRenderCustomBlocks-DqKbdTJ8.js.map} +1 -1
- package/dist/{pt-BR-C6hMTQYi.js → cdn/chunks/pt-BR-2_H4-wlb.js} +42 -2
- package/dist/cdn/chunks/pt-BR-2_H4-wlb.js.map +1 -0
- package/dist/{pt-BR-CoCwRUi0.js → cdn/chunks/pt-BR-BphMoUTw.js} +2 -4
- package/dist/cdn/chunks/{pt-BR-CoCwRUi0.js.map → pt-BR-BphMoUTw.js.map} +1 -1
- package/dist/cdn/chunks/{pusher-C8DeiO2X.js → pusher-Cs4GGEtd.js} +2 -2
- package/dist/cdn/chunks/pusher-Cs4GGEtd.js.map +1 -0
- package/dist/cdn/chunks/{rolldown-runtime-B0aSnxlc.js → rolldown-runtime-Y_bBpyJl.js} +1 -1
- package/dist/cdn/chunks/socialIcons-CkZSYpoG.js +2091 -0
- package/dist/cdn/chunks/socialIcons-CkZSYpoG.js.map +1 -0
- package/dist/cdn/chunks/{src-CHlVFp7r.js → src-B1e5SSYP.js} +312 -286
- package/dist/cdn/chunks/src-B1e5SSYP.js.map +1 -0
- package/dist/cdn/chunks/src-B77z1iw4.js +649 -0
- package/dist/cdn/chunks/src-B77z1iw4.js.map +1 -0
- package/dist/cdn/chunks/{src-BnJlDuyB.js → src-CvLTYGdO.js} +555 -283
- package/dist/cdn/chunks/src-CvLTYGdO.js.map +1 -0
- package/dist/cdn/chunks/{styleConstants-D1Jz-TFU.js → styleConstants-v1dNKgJf.js} +2 -4
- package/dist/cdn/chunks/{styleConstants-D1Jz-TFU.js.map → styleConstants-v1dNKgJf.js.map} +1 -1
- package/dist/cdn/chunks/{timeouts-DHPZQ0G3.js → timeouts-o5Y9BuqI.js} +2 -2
- package/dist/cdn/chunks/timeouts-o5Y9BuqI.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-BPigZk5G.js → tiptap-B1RfWFzB.js} +3 -3
- package/dist/cdn/chunks/tiptap-B1RfWFzB.js.map +1 -0
- package/dist/cdn/chunks/{useAliveFlag-DCB96vzR.js → useAliveFlag-PuXh83UK.js} +2 -2
- package/dist/cdn/chunks/{useAliveFlag-DCB96vzR.js.map → useAliveFlag-PuXh83UK.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-BBF4waXO.js → useCloudI18n-kp07GQmk.js} +3 -3
- package/dist/cdn/chunks/{useCloudI18n-BBF4waXO.js.map → useCloudI18n-kp07GQmk.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorCore-Bf2d1DKI.js → useEditorCore-DpCFvHg_.js} +758 -732
- package/dist/cdn/chunks/useEditorCore-DpCFvHg_.js.map +1 -0
- package/dist/cdn/chunks/useEditorRoot-5SBqm90x.js +10 -0
- package/dist/cdn/chunks/{useEditorRoot-CTc6O8al.js.map → useEditorRoot-5SBqm90x.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-DUlyyIJJ.js → useI18n-DEqtEgOs.js} +3 -3
- package/dist/cdn/chunks/{useI18n-DUlyyIJJ.js.map → useI18n-DEqtEgOs.js.map} +1 -1
- package/dist/cdn/chunks/{useLogicTag-3S63go4E.js → useLogicTag-X8bc5qNl.js} +4 -4
- package/dist/cdn/chunks/{useLogicTag-3S63go4E.js.map → useLogicTag-X8bc5qNl.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-BQtxUHq1.js → useMergeTag-DFoOexIQ.js} +6 -6
- package/dist/cdn/chunks/{useMergeTag-BQtxUHq1.js.map → useMergeTag-DFoOexIQ.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-IbaW6-Ao.js → usePopoverPosition-Cz9-XiXR.js} +3 -3
- package/dist/cdn/chunks/{usePopoverPosition-IbaW6-Ao.js.map → usePopoverPosition-Cz9-XiXR.js.map} +1 -1
- package/dist/cdn/chunks/{useScrollToBlock-uUa601I4.js → useScrollToBlock-MNzurEZV.js} +3 -3
- package/dist/cdn/chunks/{useScrollToBlock-uUa601I4.js.map → useScrollToBlock-MNzurEZV.js.map} +1 -1
- package/dist/cdn/chunks/{withCurrentFont-DwJd-lKc.js → withCurrentFont-D-f61ghC.js} +2 -2
- package/dist/cdn/chunks/{withCurrentFont-DwJd-lKc.js.map → withCurrentFont-D-f61ghC.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +1328 -1069
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-B5R4zXr7.js → check-DQQzkmIC.js} +1 -1
- package/dist/{chevron-down-BKyl85NV.js → chevron-down-CIF4bdon.js} +1 -1
- package/dist/{chevron-right-BmToZ8qX.js → chevron-right-Cg7Xu-ev.js} +1 -1
- package/dist/{chevron-up-DNYdOxPC.js → chevron-up-Csu7ISD-.js} +1 -1
- package/dist/{circle-alert-Dx9ju3YZ.js → circle-alert-YUvIJAgY.js} +1 -1
- package/dist/{clock-Dv9bxsSH.js → clock-CnSIGKQW.js} +1 -1
- package/dist/{cdn/chunks/cloud-Cd7ptfhL.js → cloud-YUYDtdHt.js} +308 -569
- package/dist/{copy-BsKl4dcy.js → copy-CUC43md_.js} +1 -1
- package/dist/{createCloudRuntime-C8gpPsSi.js → createCloudRuntime-BMDRjL0k.js} +126 -168
- package/dist/{createLucideIcon-DziKp5iU.js → createLucideIcon-BcP1sjdp.js} +6 -6
- package/dist/{cdn/chunks/de-DgAelLbM.js → de-CBE6O79z.js} +40 -4
- package/dist/{cdn/chunks/de-mMY5yQJu.js → de-D_atmUVB.js} +0 -6
- package/dist/{dist-CUWI-IvA.js → dist-Bv_GBr2l.js} +1 -1
- package/dist/{dist-DAAJogrx.js → dist-CCqn-RqE.js} +2 -2
- package/dist/{dist-DuufrR8O.js → dist-CNqjHA8e.js} +2 -2
- package/dist/{dist-C8koXLhl.js → dist-DBG3nh3k.js} +550 -284
- package/dist/{editor-modal-BwyIUnV_.js → editor-modal--7_9A6j-.js} +27 -27
- package/dist/en-BHCMzqib.js +1 -0
- package/dist/{en-Dekrl7HA.js → en-CDexnk0p.js} +40 -2
- package/dist/{cdn/chunks/en-ChVeGQBY.js → en-DhJLnaBx.js} +0 -6
- package/dist/{cdn/chunks/es-BaZzyidV.js → es-BE42B6uN.js} +40 -4
- package/dist/{extensions-DHyKjsNZ.js → extensions-zwsZlWjH.js} +23 -23
- package/dist/{eye-DQuinb9k.js → eye-B1bua-ck.js} +1 -1
- package/dist/{cdn/chunks/fr-C5ucb1HK.js → fr-DlJFPDQR.js} +40 -4
- package/dist/{image-up-yTfLjOrj.js → image-up-BqiO7KCO.js} +1 -1
- package/dist/index.d.ts +356 -38
- package/dist/{info-C7OjlS11.js → info-x26nGOo2.js} +1 -1
- package/dist/{cdn/chunks/ja-CUgR3mV0.js → ja-CUT8gkNI.js} +40 -4
- package/dist/{keys-BKFq19a2.js → keys-BymCnLHD.js} +1 -1
- package/dist/{link-CrUFaZ0t.js → link-CezhndyR.js} +1 -1
- package/dist/{list-CLgv6M-k.js → list-DQqdptI0.js} +1 -1
- package/dist/{loader-circle-BXM5VO0K.js → loader-circle-DCEeoYoi.js} +1 -1
- package/dist/{message-circle-BisdQ8H9.js → message-circle-BLGzfv_7.js} +1 -1
- package/dist/{cdn/chunks/nl-qrLY7hMS.js → nl-bXWqqRyS.js} +40 -4
- package/dist/{package-C1T4AxV1.js → package-D_kEQCMU.js} +1 -1
- package/dist/{pencil-oo2mwf4C.js → pencil-Dct8zGLy.js} +1 -1
- package/dist/{plus-BIilXopD.js → plus-BDd0gTEm.js} +1 -1
- package/dist/{preRenderCustomBlocks-lFX0HHiV.js → preRenderCustomBlocks-CtKJecE-.js} +1 -1
- package/dist/{cdn/chunks/pt-BR-C6hMTQYi.js → pt-BR-2_H4-wlb.js} +40 -4
- package/dist/{cdn/chunks/pt-BR-CoCwRUi0.js → pt-BR-BphMoUTw.js} +0 -6
- package/dist/{refresh-cw-DrLlkEVC.js → refresh-cw-tGMRDxr8.js} +1 -1
- package/dist/{runtime-dom.esm-bundler-lFF-QG3j.js → runtime-dom.esm-bundler-DYn1z2Xf.js} +1 -1
- package/dist/{search-DNu9lImk.js → search-Bm2cCQpe.js} +1 -1
- package/dist/{send-DDNh3LoJ.js → send-sVLaKZ7f.js} +1 -1
- package/dist/{shield-check-aXM3o14f.js → shield-check-YhsbXfQc.js} +1 -1
- package/dist/{smartphone-isccgDee.js → smartphone-B2W81p02.js} +1 -1
- package/dist/socialIcons-Bwv-49EB.js +2167 -0
- package/dist/{sparkles-CIMfFxKv.js → sparkles-a1qkBZ8X.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{styleConstants-D1Jz-TFU.js → styleConstants-v1dNKgJf.js} +1 -3
- package/dist/templatical-editor.js +1448 -1189
- package/dist/{text-align-start-C4JFeqsq.js → text-align-start-CTuwQ5YW.js} +1 -1
- package/dist/{timeouts-DHPZQ0G3.js → timeouts-o5Y9BuqI.js} +1 -1
- package/dist/{trash-8ZD9pK_c.js → trash-I3D2peFQ.js} +1 -1
- package/dist/{triangle-alert-pq45xEHl.js → triangle-alert-CenxmLRE.js} +1 -1
- package/dist/{upload-DrNFmVes.js → upload-uU2cK0Ce.js} +1 -1
- package/dist/{useAliveFlag-Dd06mRxe.js → useAliveFlag-BjP0Gxza.js} +1 -1
- package/dist/{useCloudI18n-Nwqo7pI_.js → useCloudI18n-CGVEZV3o.js} +2 -2
- package/dist/{useEditorCore-BcT7UI4e.js → useEditorCore-DRbMRe8F.js} +1103 -1076
- package/dist/{useEditorRoot-BD3piYtD.js → useEditorRoot-BVm2-1N8.js} +2 -2
- package/dist/{useI18n-CxVEpurs.js → useI18n-CSh4gO5c.js} +2 -2
- package/dist/{useLogicTag-D-dI8H6p.js → useLogicTag-zcI6BWIf.js} +3 -3
- package/dist/{useMergeTag-5wMeDBi-.js → useMergeTag-C-iBLlp0.js} +5 -5
- package/dist/{usePopoverPosition-CwnH1o5g.js → usePopoverPosition-CMcsMBtK.js} +2 -2
- package/dist/{useScrollToBlock-Do3suaqp.js → useScrollToBlock-CdCQK9QQ.js} +3 -3
- package/dist/{vue.runtime.esm-bundler-CAzmrXdD.js → vue.runtime.esm-bundler-DV0Wx4r_.js} +1079 -1080
- package/dist/{withCurrentFont-B4YnsG_2.js → withCurrentFont-D62njRLu.js} +1 -1
- package/dist/{x-CBFKGLB1.js → x-KFQ4S-Kz.js} +1 -1
- package/package.json +12 -12
- package/dist/BlockPreviewCanvas-CZDBSPoG.js +0 -136
- package/dist/CloudHeaderExtras-gXsTYoGG.js +0 -59
- package/dist/CollaboratorBar-BazGNMqN.js +0 -103
- package/dist/Toolbar-OGakTBEg.js +0 -2851
- package/dist/WrapperBlock-BOABSX9W.js +0 -46
- package/dist/cdn/chunks/BlockPreviewCanvas-cOTMFRcg.js +0 -138
- package/dist/cdn/chunks/BlockPreviewCanvas-cOTMFRcg.js.map +0 -1
- package/dist/cdn/chunks/CloudHeaderExtras-DJXLTUHc.js.map +0 -1
- package/dist/cdn/chunks/CloudPanels-D1fPLjG8.js.map +0 -1
- package/dist/cdn/chunks/CollaboratorBar-MeRQB1eN.js +0 -52
- package/dist/cdn/chunks/CollaboratorBar-MeRQB1eN.js.map +0 -1
- package/dist/cdn/chunks/Toolbar-Ik54UO_-.js +0 -2767
- package/dist/cdn/chunks/Toolbar-Ik54UO_-.js.map +0 -1
- package/dist/cdn/chunks/WrapperBlock-fsLe7goL.js +0 -48
- package/dist/cdn/chunks/WrapperBlock-fsLe7goL.js.map +0 -1
- package/dist/cdn/chunks/blockTypeIcons-D3g5QzdT.js +0 -21
- package/dist/cdn/chunks/blockTypeIcons-D3g5QzdT.js.map +0 -1
- package/dist/cdn/chunks/ca-DMoGGP9L.js.map +0 -1
- package/dist/cdn/chunks/cloud-Cd7ptfhL.js.map +0 -1
- package/dist/cdn/chunks/createCloudRuntime-DtIZ2Lee.js.map +0 -1
- package/dist/cdn/chunks/de-DgAelLbM.js.map +0 -1
- package/dist/cdn/chunks/draggable-DrsNwZuB.js.map +0 -1
- package/dist/cdn/chunks/en-BANFWZdr.js +0 -1
- package/dist/cdn/chunks/en-ChVeGQBY.js.map +0 -1
- package/dist/cdn/chunks/en-Dekrl7HA.js.map +0 -1
- package/dist/cdn/chunks/es-BaZzyidV.js.map +0 -1
- package/dist/cdn/chunks/fr-C5ucb1HK.js.map +0 -1
- package/dist/cdn/chunks/icons-C4fX9Bwy.js.map +0 -1
- package/dist/cdn/chunks/ja-CUgR3mV0.js.map +0 -1
- package/dist/cdn/chunks/nl-qrLY7hMS.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-C6hMTQYi.js.map +0 -1
- package/dist/cdn/chunks/pusher-C8DeiO2X.js.map +0 -1
- package/dist/cdn/chunks/socialIcons-DACw1wA8.js +0 -1103
- package/dist/cdn/chunks/socialIcons-DACw1wA8.js.map +0 -1
- package/dist/cdn/chunks/src-BnJlDuyB.js.map +0 -1
- package/dist/cdn/chunks/src-Bu0qBpbf.js +0 -616
- package/dist/cdn/chunks/src-Bu0qBpbf.js.map +0 -1
- package/dist/cdn/chunks/src-CHlVFp7r.js.map +0 -1
- package/dist/cdn/chunks/timeouts-DHPZQ0G3.js.map +0 -1
- package/dist/cdn/chunks/tiptap-BPigZk5G.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-Bf2d1DKI.js.map +0 -1
- package/dist/cdn/chunks/useEditorRoot-CTc6O8al.js +0 -10
- package/dist/en-CC-57eC_.js +0 -1
- package/dist/socialIcons-BctavKBN.js +0 -1180
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { n as e } from "./rolldown-runtime-
|
|
2
|
-
import {
|
|
1
|
+
import { n as e } from "./rolldown-runtime-Y_bBpyJl.js";
|
|
2
|
+
import { $ as t, Dt as n, Ft as r, Mt as i, at as a, ct as o, dt as s, ft as ee, it as c, nt as te, ot as l, pt as u, rt as d, ut as ne } from "./src-CvLTYGdO.js";
|
|
3
3
|
import { t as f } from "./htmlparser-CDRsn-gn.js";
|
|
4
4
|
//#region ../quality/src/types.ts
|
|
5
|
-
var
|
|
5
|
+
var p = {
|
|
6
6
|
altMaxLength: 125,
|
|
7
7
|
minFontSize: 14,
|
|
8
8
|
allCapsMinLength: 20,
|
|
9
9
|
minTouchTargetPx: 44
|
|
10
|
-
},
|
|
10
|
+
}, m = [
|
|
11
11
|
"localhost",
|
|
12
12
|
"127.0.0.1",
|
|
13
13
|
"0.0.0.0",
|
|
@@ -17,14 +17,14 @@ var ne = {
|
|
|
17
17
|
];
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region ../quality/src/contrast.ts
|
|
20
|
-
function
|
|
21
|
-
let n =
|
|
20
|
+
function h(e, t) {
|
|
21
|
+
let n = g(e), r = g(t);
|
|
22
22
|
if (!n || !r) return NaN;
|
|
23
|
-
let i =
|
|
23
|
+
let i = v(n), a = v(r), o = Math.max(i, a), s = Math.min(i, a);
|
|
24
24
|
return (o + .05) / (s + .05);
|
|
25
25
|
}
|
|
26
|
-
var
|
|
27
|
-
function
|
|
26
|
+
var re = /^#?([0-9a-f])([0-9a-f])([0-9a-f])$/i, ie = /^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i, ae = /^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i;
|
|
27
|
+
function g(e) {
|
|
28
28
|
if (typeof e != "string") return null;
|
|
29
29
|
let t = e.trim(), n = ae.exec(t);
|
|
30
30
|
if (n) return n[4].toLowerCase() === "ff" ? {
|
|
@@ -38,52 +38,52 @@ function h(e) {
|
|
|
38
38
|
g: parseInt(r[2], 16),
|
|
39
39
|
b: parseInt(r[3], 16)
|
|
40
40
|
};
|
|
41
|
-
let i =
|
|
41
|
+
let i = re.exec(t);
|
|
42
42
|
return i ? {
|
|
43
43
|
r: parseInt(i[1] + i[1], 16),
|
|
44
44
|
g: parseInt(i[2] + i[2], 16),
|
|
45
45
|
b: parseInt(i[3] + i[3], 16)
|
|
46
46
|
} : null;
|
|
47
47
|
}
|
|
48
|
-
function
|
|
49
|
-
return
|
|
48
|
+
function _(e) {
|
|
49
|
+
return g(e ?? "") !== null;
|
|
50
50
|
}
|
|
51
|
-
function
|
|
52
|
-
let r =
|
|
51
|
+
function v({ r: e, g: t, b: n }) {
|
|
52
|
+
let r = y(e / 255), i = y(t / 255), a = y(n / 255);
|
|
53
53
|
return .2126 * r + .7152 * i + .0722 * a;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function y(e) {
|
|
56
56
|
return e <= .03928 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4;
|
|
57
57
|
}
|
|
58
58
|
//#endregion
|
|
59
59
|
//#region ../quality/src/walk.ts
|
|
60
|
-
var
|
|
60
|
+
var b = "#ffffff", oe = "#1a1a1a";
|
|
61
61
|
function x(e, t) {
|
|
62
|
-
let n =
|
|
63
|
-
let r = e.styles?.backgroundColor,
|
|
64
|
-
if (t(e,
|
|
62
|
+
let n = _(e.settings.backgroundColor) ? e.settings.backgroundColor.toLowerCase() : b, r = _(e.settings.textColor) ? e.settings.textColor.toLowerCase() : oe, i = (e, n) => {
|
|
63
|
+
let r = e.styles?.backgroundColor, a = _(r) ? r.toLowerCase() : n.resolvedBackgroundColor;
|
|
64
|
+
if (t(e, a === n.resolvedBackgroundColor ? n : {
|
|
65
65
|
...n,
|
|
66
|
-
resolvedBackgroundColor:
|
|
67
|
-
}),
|
|
66
|
+
resolvedBackgroundColor: a
|
|
67
|
+
}), u(e)) for (let t of e.children) i(t, {
|
|
68
68
|
parent: e,
|
|
69
69
|
section: n.section,
|
|
70
70
|
columnIndex: null,
|
|
71
71
|
depth: n.depth + 1,
|
|
72
|
-
resolvedBackgroundColor:
|
|
72
|
+
resolvedBackgroundColor: a,
|
|
73
73
|
resolvedTextColor: n.resolvedTextColor
|
|
74
74
|
});
|
|
75
|
-
else
|
|
76
|
-
t.forEach((t) =>
|
|
75
|
+
else l(e) && e.children.forEach((t, r) => {
|
|
76
|
+
t.forEach((t) => i(t, {
|
|
77
77
|
parent: e,
|
|
78
78
|
section: e,
|
|
79
79
|
columnIndex: r,
|
|
80
80
|
depth: n.depth + 1,
|
|
81
|
-
resolvedBackgroundColor:
|
|
81
|
+
resolvedBackgroundColor: a,
|
|
82
82
|
resolvedTextColor: n.resolvedTextColor
|
|
83
83
|
}));
|
|
84
84
|
});
|
|
85
85
|
};
|
|
86
|
-
for (let t of e.blocks)
|
|
86
|
+
for (let t of e.blocks) i(t, {
|
|
87
87
|
parent: null,
|
|
88
88
|
section: null,
|
|
89
89
|
columnIndex: null,
|
|
@@ -97,11 +97,12 @@ function x(e, t) {
|
|
|
97
97
|
function S(e, t, n, r) {
|
|
98
98
|
let i = [];
|
|
99
99
|
function a(e, t, i) {
|
|
100
|
+
let a = i.messageVariant ? `${e}.${i.messageVariant}` : e;
|
|
100
101
|
return {
|
|
101
102
|
blockId: i.blockId,
|
|
102
103
|
ruleId: e,
|
|
103
104
|
severity: t,
|
|
104
|
-
message: r(n.locale,
|
|
105
|
+
message: r(n.locale, a, i.params),
|
|
105
106
|
fix: i.fix
|
|
106
107
|
};
|
|
107
108
|
}
|
|
@@ -123,9 +124,9 @@ function S(e, t, n, r) {
|
|
|
123
124
|
}
|
|
124
125
|
function C(e) {
|
|
125
126
|
let t = e.overrides ?? {}, n = {
|
|
126
|
-
...
|
|
127
|
+
...p,
|
|
127
128
|
...e.thresholds ?? {}
|
|
128
|
-
}, r = { nonProductionHosts: e.nonProductionHosts ??
|
|
129
|
+
}, r = { nonProductionHosts: e.nonProductionHosts ?? m }, i = e.locale ?? "en", a = e.rules;
|
|
129
130
|
return {
|
|
130
131
|
locale: i,
|
|
131
132
|
rules: t,
|
|
@@ -137,7 +138,7 @@ function C(e) {
|
|
|
137
138
|
}
|
|
138
139
|
};
|
|
139
140
|
}
|
|
140
|
-
function
|
|
141
|
+
function se(e, t, n) {
|
|
141
142
|
return C({
|
|
142
143
|
locale: e,
|
|
143
144
|
rules: n,
|
|
@@ -146,7 +147,7 @@ function oe(e, t, n) {
|
|
|
146
147
|
nonProductionHosts: void 0
|
|
147
148
|
});
|
|
148
149
|
}
|
|
149
|
-
function
|
|
150
|
+
function ce(e, t, n) {
|
|
150
151
|
return C({
|
|
151
152
|
locale: e,
|
|
152
153
|
rules: n,
|
|
@@ -155,7 +156,7 @@ function se(e, t, n) {
|
|
|
155
156
|
nonProductionHosts: void 0
|
|
156
157
|
});
|
|
157
158
|
}
|
|
158
|
-
function
|
|
159
|
+
function le(e, t, n) {
|
|
159
160
|
return C({
|
|
160
161
|
locale: e,
|
|
161
162
|
rules: n,
|
|
@@ -166,7 +167,7 @@ function ce(e, t, n) {
|
|
|
166
167
|
}
|
|
167
168
|
//#endregion
|
|
168
169
|
//#region ../quality/src/accessibility/messages/de.ts
|
|
169
|
-
var
|
|
170
|
+
var ue = /* @__PURE__ */ e({ default: () => de }), de = {
|
|
170
171
|
"a11y.img-missing-alt": "Bild ohne Alt-Text. Füge eine kurze Beschreibung hinzu oder markiere das Bild als dekorativ.",
|
|
171
172
|
"a11y.img-alt-is-filename": "Alt-Text sieht wie ein Dateiname aus (\"{alt}\"). Beschreibe stattdessen kurz, was das Bild zeigt.",
|
|
172
173
|
"a11y.img-alt-too-long": "Alt-Text ist {length} Zeichen lang; bleibe unter {max}.",
|
|
@@ -188,7 +189,7 @@ var le = /* @__PURE__ */ e({ default: () => ue }), ue = {
|
|
|
188
189
|
"a11y.button-touch-target": "Button ist etwa {height}px hoch; mindestens {min}px verwenden, um Fehltipper auf Mobilgeräten zu vermeiden.",
|
|
189
190
|
"a11y.button-low-contrast": "Buttontextkontrast beträgt {ratio}:1; WCAG AA verlangt mindestens {required}:1.",
|
|
190
191
|
"a11y.missing-preheader": "Kein Preheader-Text gesetzt. Postfächer zeigen sonst Bruchstücke des ersten Blocks an."
|
|
191
|
-
},
|
|
192
|
+
}, fe = /* @__PURE__ */ e({ default: () => w }), w = {
|
|
192
193
|
"a11y.img-missing-alt": "Image is missing alt text. Add a short description, or mark the image as decorative.",
|
|
193
194
|
"a11y.img-alt-is-filename": "Alt text looks like a filename (\"{alt}\"). Replace with a short description of what the image conveys.",
|
|
194
195
|
"a11y.img-alt-too-long": "Alt text is {length} characters; aim for under {max}.",
|
|
@@ -211,8 +212,8 @@ var le = /* @__PURE__ */ e({ default: () => ue }), ue = {
|
|
|
211
212
|
"a11y.button-low-contrast": "Button text contrast is {ratio}:1; WCAG AA requires at least {required}:1.",
|
|
212
213
|
"a11y.missing-preheader": "No preheader text set. Inboxes will fall back to fragments of the first block."
|
|
213
214
|
}, T = /* #__PURE__ */ Object.assign({
|
|
214
|
-
"./de.ts":
|
|
215
|
-
"./en.ts":
|
|
215
|
+
"./de.ts": ue,
|
|
216
|
+
"./en.ts": fe
|
|
216
217
|
}), E = {};
|
|
217
218
|
for (let e in T) {
|
|
218
219
|
let t = /\.\/([^/]+)\.ts$/.exec(e);
|
|
@@ -220,66 +221,66 @@ for (let e in T) {
|
|
|
220
221
|
let n = t[1];
|
|
221
222
|
n !== "index" && (E[n] = T[e].default);
|
|
222
223
|
}
|
|
223
|
-
function
|
|
224
|
+
function pe(e) {
|
|
224
225
|
return E[e.split("-")[0]?.toLowerCase() ?? "en"] ?? E.en ?? w;
|
|
225
226
|
}
|
|
226
|
-
function
|
|
227
|
-
let r =
|
|
227
|
+
function me(e, t, n) {
|
|
228
|
+
let r = pe(e)[t] ?? w[t];
|
|
228
229
|
return n ? r.replace(/\{(\w+)\}/g, (e, t) => {
|
|
229
230
|
let r = n[t];
|
|
230
231
|
return r === void 0 ? `{${t}}` : String(r);
|
|
231
232
|
}) : r;
|
|
232
233
|
}
|
|
233
|
-
var
|
|
234
|
+
var he = {
|
|
234
235
|
meta: {
|
|
235
236
|
id: "a11y.img-missing-alt",
|
|
236
237
|
severity: "error"
|
|
237
238
|
},
|
|
238
239
|
block(e) {
|
|
239
|
-
return !
|
|
240
|
+
return !d(e) || e.decorative === !0 || (e.alt?.trim() ?? "") !== "" || (e.src ?? "").trim() === "" ? null : { blockId: e.id };
|
|
240
241
|
}
|
|
241
|
-
},
|
|
242
|
+
}, ge = {
|
|
242
243
|
id: "a11y.img-alt-is-filename",
|
|
243
244
|
severity: "warning"
|
|
244
|
-
},
|
|
245
|
+
}, _e = [
|
|
245
246
|
/\.(jpe?g|png|gif|webp|svg)$/i,
|
|
246
247
|
/^IMG[_-]?\d+/i,
|
|
247
248
|
/^Untitled/i,
|
|
248
249
|
/^Screen[\s_-]?Shot/i,
|
|
249
250
|
/^DSC[_-]?\d+/i
|
|
250
|
-
],
|
|
251
|
-
meta:
|
|
251
|
+
], ve = {
|
|
252
|
+
meta: ge,
|
|
252
253
|
block(e) {
|
|
253
|
-
if (!
|
|
254
|
+
if (!d(e) || e.decorative === !0) return null;
|
|
254
255
|
let t = e.alt?.trim() ?? "";
|
|
255
|
-
return t === "" || !
|
|
256
|
+
return t === "" || !_e.some((e) => e.test(t)) ? null : {
|
|
256
257
|
blockId: e.id,
|
|
257
258
|
params: { alt: t }
|
|
258
259
|
};
|
|
259
260
|
}
|
|
260
|
-
},
|
|
261
|
+
}, ye = {
|
|
261
262
|
meta: {
|
|
262
263
|
id: "a11y.img-alt-too-long",
|
|
263
264
|
severity: "warning"
|
|
264
265
|
},
|
|
265
266
|
block(e, t, n) {
|
|
266
|
-
if (!
|
|
267
|
-
let
|
|
268
|
-
return
|
|
267
|
+
if (!d(e) || e.decorative === !0) return null;
|
|
268
|
+
let r = e.alt ?? "";
|
|
269
|
+
return r.length <= n.thresholds.altMaxLength ? null : {
|
|
269
270
|
blockId: e.id,
|
|
270
271
|
params: {
|
|
271
|
-
length:
|
|
272
|
+
length: r.length,
|
|
272
273
|
max: n.thresholds.altMaxLength
|
|
273
274
|
}
|
|
274
275
|
};
|
|
275
276
|
}
|
|
276
|
-
},
|
|
277
|
+
}, be = {
|
|
277
278
|
meta: {
|
|
278
279
|
id: "a11y.img-decorative-needs-empty-alt",
|
|
279
280
|
severity: "info"
|
|
280
281
|
},
|
|
281
282
|
block(e) {
|
|
282
|
-
return !
|
|
283
|
+
return !d(e) || e.decorative !== !0 || (e.alt ?? "").trim() === "" ? null : {
|
|
283
284
|
blockId: e.id,
|
|
284
285
|
fix: {
|
|
285
286
|
description: "Clear alt text",
|
|
@@ -287,7 +288,7 @@ var me = {
|
|
|
287
288
|
}
|
|
288
289
|
};
|
|
289
290
|
}
|
|
290
|
-
},
|
|
291
|
+
}, xe = /* @__PURE__ */ e({ default: () => Se }), Se = {
|
|
291
292
|
vagueLinkText: [
|
|
292
293
|
"hier klicken",
|
|
293
294
|
"hier",
|
|
@@ -330,7 +331,7 @@ var me = {
|
|
|
330
331
|
"anschauen",
|
|
331
332
|
"jetzt"
|
|
332
333
|
]
|
|
333
|
-
},
|
|
334
|
+
}, Ce = /* @__PURE__ */ e({ default: () => we }), we = {
|
|
334
335
|
vagueLinkText: [
|
|
335
336
|
"click here",
|
|
336
337
|
"here",
|
|
@@ -372,8 +373,8 @@ var me = {
|
|
|
372
373
|
"watch"
|
|
373
374
|
]
|
|
374
375
|
}, D = /* #__PURE__ */ Object.assign({
|
|
375
|
-
"./de.ts":
|
|
376
|
-
"./en.ts":
|
|
376
|
+
"./de.ts": xe,
|
|
377
|
+
"./en.ts": Ce
|
|
377
378
|
}), O = {};
|
|
378
379
|
for (let e in D) {
|
|
379
380
|
let t = /\.\/([^/]+)\.ts$/.exec(e);
|
|
@@ -382,14 +383,14 @@ for (let e in D) {
|
|
|
382
383
|
n !== "index" && (O[n] = D[e].default);
|
|
383
384
|
}
|
|
384
385
|
function k(e) {
|
|
385
|
-
return
|
|
386
|
+
return Te;
|
|
386
387
|
}
|
|
387
388
|
function A(e) {
|
|
388
389
|
let t = /* @__PURE__ */ new Set();
|
|
389
390
|
for (let n of Object.values(O)) for (let r of e(n)) t.add(r);
|
|
390
391
|
return Array.from(t);
|
|
391
392
|
}
|
|
392
|
-
var
|
|
393
|
+
var Te = {
|
|
393
394
|
vagueLinkText: A((e) => e.vagueLinkText),
|
|
394
395
|
vagueButtonLabels: A((e) => e.vagueButtonLabels),
|
|
395
396
|
linkedImageActionHints: A((e) => e.linkedImageActionHints)
|
|
@@ -397,17 +398,17 @@ var we = {
|
|
|
397
398
|
function j(e) {
|
|
398
399
|
return e.toLowerCase().replace(/\s+/g, " ").replace(/^[^\p{L}\p{N}]+|[^\p{L}\p{N}]+$/gu, "").trim();
|
|
399
400
|
}
|
|
400
|
-
var
|
|
401
|
+
var Ee = {
|
|
401
402
|
meta: {
|
|
402
403
|
id: "a11y.img-linked-no-context",
|
|
403
404
|
severity: "warning"
|
|
404
405
|
},
|
|
405
406
|
block(e, t, n) {
|
|
406
|
-
if (!
|
|
407
|
-
let
|
|
408
|
-
if (
|
|
409
|
-
let
|
|
410
|
-
return
|
|
407
|
+
if (!d(e) || e.decorative === !0 || !e.linkUrl || e.linkUrl.trim() === "") return null;
|
|
408
|
+
let r = (e.alt ?? "").trim();
|
|
409
|
+
if (r === "") return null;
|
|
410
|
+
let i = r.toLocaleLowerCase().split(/[^\p{L}\p{N}]+/u).filter(Boolean), a = k(n.locale).linkedImageActionHints;
|
|
411
|
+
return i.some((e) => a.includes(e)) ? null : { blockId: e.id };
|
|
411
412
|
}
|
|
412
413
|
};
|
|
413
414
|
//#endregion
|
|
@@ -434,8 +435,8 @@ function M(e) {
|
|
|
434
435
|
});
|
|
435
436
|
return a.write(e), a.end(), i(), t;
|
|
436
437
|
}
|
|
437
|
-
function
|
|
438
|
-
let t =
|
|
438
|
+
function De(e) {
|
|
439
|
+
let t = Oe(e).matchAll(/<\/?a\b[^<>]*>/gi), n = 0;
|
|
439
440
|
for (let e of t) if (e[0].startsWith("</")) n > 0 && n--;
|
|
440
441
|
else {
|
|
441
442
|
if (n > 0) return !0;
|
|
@@ -443,7 +444,7 @@ function Ee(e) {
|
|
|
443
444
|
}
|
|
444
445
|
return !1;
|
|
445
446
|
}
|
|
446
|
-
function
|
|
447
|
+
function Oe(e) {
|
|
447
448
|
let t = "", n = 0;
|
|
448
449
|
for (; n < e.length;) {
|
|
449
450
|
let r = e.indexOf("<!--", n);
|
|
@@ -464,24 +465,24 @@ function N(e) {
|
|
|
464
465
|
} });
|
|
465
466
|
return n.write(e), n.end(), t.trim();
|
|
466
467
|
}
|
|
467
|
-
var
|
|
468
|
+
var ke = {
|
|
468
469
|
meta: {
|
|
469
470
|
id: "a11y.heading-empty",
|
|
470
471
|
severity: "error"
|
|
471
472
|
},
|
|
472
473
|
block(e) {
|
|
473
|
-
return !
|
|
474
|
+
return !s(e) || N(e.content ?? "") !== "" ? null : { blockId: e.id };
|
|
474
475
|
}
|
|
475
|
-
},
|
|
476
|
+
}, Ae = {
|
|
476
477
|
id: "a11y.heading-skip-level",
|
|
477
478
|
severity: "error"
|
|
478
479
|
};
|
|
479
480
|
function P(e, t) {
|
|
480
|
-
for (let n of e) if (
|
|
481
|
-
else if (
|
|
481
|
+
for (let n of e) if (s(n)) t.push(n);
|
|
482
|
+
else if (l(n)) for (let e of n.children) P(e, t);
|
|
482
483
|
}
|
|
483
|
-
var
|
|
484
|
-
meta:
|
|
484
|
+
var je = {
|
|
485
|
+
meta: Ae,
|
|
485
486
|
template(e) {
|
|
486
487
|
let t = [];
|
|
487
488
|
P(e.blocks, t);
|
|
@@ -495,46 +496,46 @@ var Ae = {
|
|
|
495
496
|
}), r = e.level;
|
|
496
497
|
return n;
|
|
497
498
|
}
|
|
498
|
-
},
|
|
499
|
+
}, Me = {
|
|
499
500
|
id: "a11y.heading-multiple-h1",
|
|
500
501
|
severity: "warning"
|
|
501
502
|
};
|
|
502
503
|
function F(e, t) {
|
|
503
|
-
for (let n of e) if (
|
|
504
|
-
else if (
|
|
504
|
+
for (let n of e) if (s(n)) t.push(n);
|
|
505
|
+
else if (l(n)) for (let e of n.children) F(e, t);
|
|
505
506
|
}
|
|
506
|
-
var
|
|
507
|
-
meta:
|
|
507
|
+
var Ne = {
|
|
508
|
+
meta: Me,
|
|
508
509
|
template(e) {
|
|
509
510
|
let t = [];
|
|
510
511
|
F(e.blocks, t);
|
|
511
512
|
let n = t.filter((e) => e.level === 1);
|
|
512
513
|
return n.length <= 1 ? [] : n.slice(1).map((e) => ({ blockId: e.id }));
|
|
513
514
|
}
|
|
514
|
-
},
|
|
515
|
+
}, Pe = {
|
|
515
516
|
id: "a11y.link-empty",
|
|
516
517
|
severity: "error"
|
|
517
518
|
};
|
|
518
|
-
function
|
|
519
|
-
return
|
|
519
|
+
function Fe(e) {
|
|
520
|
+
return a(e) || s(e) ? e.content : null;
|
|
520
521
|
}
|
|
521
|
-
var
|
|
522
|
-
meta:
|
|
522
|
+
var Ie = {
|
|
523
|
+
meta: Pe,
|
|
523
524
|
block(e) {
|
|
524
|
-
let t =
|
|
525
|
+
let t = Fe(e);
|
|
525
526
|
return t === null || !M(t).find((e) => e.text === "" && !e.hasImageWithAlt) ? null : { blockId: e.id };
|
|
526
527
|
}
|
|
527
|
-
},
|
|
528
|
+
}, Le = {
|
|
528
529
|
id: "a11y.link-vague-text",
|
|
529
530
|
severity: "warning"
|
|
530
531
|
};
|
|
531
|
-
function
|
|
532
|
-
return
|
|
532
|
+
function Re(e) {
|
|
533
|
+
return a(e) || s(e) ? e.content : null;
|
|
533
534
|
}
|
|
534
|
-
var
|
|
535
|
-
meta:
|
|
535
|
+
var ze = {
|
|
536
|
+
meta: Le,
|
|
536
537
|
block(e, t, n) {
|
|
537
|
-
let r =
|
|
538
|
+
let r = Re(e);
|
|
538
539
|
if (r === null) return null;
|
|
539
540
|
let i = k(n.locale).vagueLinkText, a = M(r).find((e) => {
|
|
540
541
|
let t = j(e.text);
|
|
@@ -545,52 +546,52 @@ var Re = {
|
|
|
545
546
|
params: { text: a.text }
|
|
546
547
|
} : null;
|
|
547
548
|
}
|
|
548
|
-
},
|
|
549
|
+
}, Be = {
|
|
549
550
|
id: "a11y.link-href-empty",
|
|
550
551
|
severity: "error"
|
|
551
552
|
};
|
|
552
|
-
function
|
|
553
|
-
return
|
|
553
|
+
function Ve(e) {
|
|
554
|
+
return a(e) || s(e) ? e.content : null;
|
|
554
555
|
}
|
|
555
|
-
var
|
|
556
|
-
meta:
|
|
556
|
+
var He = {
|
|
557
|
+
meta: Be,
|
|
557
558
|
block(e) {
|
|
558
|
-
let t =
|
|
559
|
+
let t = Ve(e);
|
|
559
560
|
return t === null || !M(t).find((e) => {
|
|
560
561
|
let t = e.href.trim();
|
|
561
562
|
return t === "" || t === "#";
|
|
562
563
|
}) ? null : { blockId: e.id };
|
|
563
564
|
}
|
|
564
|
-
},
|
|
565
|
+
}, Ue = {
|
|
565
566
|
id: "a11y.link-target-blank-no-rel",
|
|
566
567
|
severity: "warning"
|
|
567
568
|
};
|
|
568
|
-
function Ue(e) {
|
|
569
|
-
return u(e) || l(e) ? e.content : null;
|
|
570
|
-
}
|
|
571
569
|
function We(e) {
|
|
570
|
+
return a(e) || s(e) ? e.content : null;
|
|
571
|
+
}
|
|
572
|
+
function Ge(e) {
|
|
572
573
|
if (e === null) return !1;
|
|
573
574
|
let t = e.toLowerCase().split(/\s+/);
|
|
574
575
|
return t.includes("noopener") || t.includes("noreferrer");
|
|
575
576
|
}
|
|
576
|
-
var
|
|
577
|
-
meta:
|
|
577
|
+
var Ke = {
|
|
578
|
+
meta: Ue,
|
|
578
579
|
block(e) {
|
|
579
|
-
let t =
|
|
580
|
-
return t === null || !M(t).find((e) => e.target === "_blank" && !
|
|
580
|
+
let t = We(e);
|
|
581
|
+
return t === null || !M(t).find((e) => e.target === "_blank" && !Ge(e.rel)) ? null : {
|
|
581
582
|
blockId: e.id,
|
|
582
583
|
fix: {
|
|
583
584
|
description: "Add rel=\"noopener\"",
|
|
584
585
|
apply: (t) => {
|
|
585
|
-
if (!
|
|
586
|
-
let n =
|
|
586
|
+
if (!a(e) && !s(e)) return;
|
|
587
|
+
let n = Ye(e.content ?? "");
|
|
587
588
|
t.updateBlock(e.id, { content: n });
|
|
588
589
|
}
|
|
589
590
|
}
|
|
590
591
|
};
|
|
591
592
|
}
|
|
592
593
|
}, I = /([^\s"'>/=]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'=<>`]+)))?/g;
|
|
593
|
-
function
|
|
594
|
+
function qe(e) {
|
|
594
595
|
let t = [], n = new RegExp(I.source, I.flags), r;
|
|
595
596
|
for (; (r = n.exec(e)) !== null;) t.push({
|
|
596
597
|
raw: r[0],
|
|
@@ -600,13 +601,13 @@ function Ke(e) {
|
|
|
600
601
|
});
|
|
601
602
|
return t;
|
|
602
603
|
}
|
|
603
|
-
function
|
|
604
|
+
function Je(e) {
|
|
604
605
|
return e.some((e) => e.name.toLowerCase() === "target" && e.value !== null && e.value.toLowerCase() === "_blank");
|
|
605
606
|
}
|
|
606
|
-
function
|
|
607
|
+
function Ye(e) {
|
|
607
608
|
return e.replace(/<a\b([^>]*)>/gi, (e, t) => {
|
|
608
|
-
let n =
|
|
609
|
-
if (!
|
|
609
|
+
let n = qe(t);
|
|
610
|
+
if (!Je(n)) return e;
|
|
610
611
|
let r = n.find((e) => e.name.toLowerCase() === "rel");
|
|
611
612
|
if (r) {
|
|
612
613
|
let n = (r.value ?? "").toLowerCase().split(/\s+/);
|
|
@@ -619,18 +620,18 @@ function Je(e) {
|
|
|
619
620
|
}
|
|
620
621
|
//#endregion
|
|
621
622
|
//#region ../quality/src/accessibility/rules/link-nested-anchor.ts
|
|
622
|
-
var
|
|
623
|
+
var Xe = {
|
|
623
624
|
id: "a11y.link-nested-anchor",
|
|
624
625
|
severity: "error"
|
|
625
626
|
};
|
|
626
|
-
function
|
|
627
|
-
return
|
|
627
|
+
function L(e) {
|
|
628
|
+
return a(e) || s(e) ? e.content : null;
|
|
628
629
|
}
|
|
629
630
|
var Ze = {
|
|
630
|
-
meta:
|
|
631
|
+
meta: Xe,
|
|
631
632
|
block(e) {
|
|
632
|
-
let t =
|
|
633
|
-
return t === null || !
|
|
633
|
+
let t = L(e);
|
|
634
|
+
return t === null || !De(t) ? null : { blockId: e.id };
|
|
634
635
|
}
|
|
635
636
|
}, Qe = {
|
|
636
637
|
meta: {
|
|
@@ -638,20 +639,20 @@ var Ze = {
|
|
|
638
639
|
severity: "warning"
|
|
639
640
|
},
|
|
640
641
|
block(e, t, n) {
|
|
641
|
-
if (!
|
|
642
|
+
if (!a(e) && !s(e)) return null;
|
|
642
643
|
let r = N(e.content ?? "").replace(/[^\p{L}]/gu, "");
|
|
643
644
|
return r.length < n.thresholds.allCapsMinLength || ![...r].some((e) => e.toLocaleLowerCase() !== e.toLocaleUpperCase()) || r !== r.toLocaleUpperCase() ? null : { blockId: e.id };
|
|
644
645
|
}
|
|
645
646
|
}, $e = {
|
|
646
647
|
id: "a11y.text-justified",
|
|
647
648
|
severity: "warning"
|
|
648
|
-
}, et = /(^|;)\s*text-align\s*:\s*([^;]*)/i,
|
|
649
|
+
}, et = /(^|;)\s*text-align\s*:\s*([^;]*)/i, R = /\sstyle\s*=\s*(?:"([^"]*)"|'([^']*)')/gi;
|
|
649
650
|
function tt(e) {
|
|
650
|
-
let t = [], n = new RegExp(
|
|
651
|
+
let t = [], n = new RegExp(R.source, R.flags), r;
|
|
651
652
|
for (; (r = n.exec(e)) !== null;) t.push(r[1] ?? r[2] ?? "");
|
|
652
653
|
return t;
|
|
653
654
|
}
|
|
654
|
-
function
|
|
655
|
+
function z(e) {
|
|
655
656
|
let t = et.exec(e);
|
|
656
657
|
return t !== null && t[2].trim().toLowerCase() === "justify";
|
|
657
658
|
}
|
|
@@ -661,7 +662,7 @@ function nt(e) {
|
|
|
661
662
|
function rt(e) {
|
|
662
663
|
return e.replace(/\sstyle\s*=\s*(?:"([^"]*)"|'([^']*)')/gi, (e, t, n) => {
|
|
663
664
|
let r = t ?? n ?? "";
|
|
664
|
-
if (!
|
|
665
|
+
if (!z(r)) return e;
|
|
665
666
|
let i = nt(r);
|
|
666
667
|
return i === "" ? "" : ` style="${i}"`;
|
|
667
668
|
});
|
|
@@ -669,12 +670,12 @@ function rt(e) {
|
|
|
669
670
|
var it = {
|
|
670
671
|
meta: $e,
|
|
671
672
|
block(e) {
|
|
672
|
-
return !
|
|
673
|
+
return !a(e) || !tt(e.content ?? "").some(z) ? null : {
|
|
673
674
|
blockId: e.id,
|
|
674
675
|
fix: {
|
|
675
676
|
description: "Remove justified alignment",
|
|
676
677
|
apply: (t) => {
|
|
677
|
-
|
|
678
|
+
a(e) && t.updateBlock(e.id, { content: rt(e.content ?? "") });
|
|
678
679
|
}
|
|
679
680
|
}
|
|
680
681
|
};
|
|
@@ -684,11 +685,11 @@ var it = {
|
|
|
684
685
|
id: "a11y.text-low-contrast",
|
|
685
686
|
severity: "error"
|
|
686
687
|
},
|
|
687
|
-
block(e,
|
|
688
|
-
if (!
|
|
689
|
-
let
|
|
690
|
-
if (!
|
|
691
|
-
let i =
|
|
688
|
+
block(e, t) {
|
|
689
|
+
if (!s(e)) return null;
|
|
690
|
+
let n = e.color ?? t.resolvedTextColor;
|
|
691
|
+
if (!_(n) || !_(t.resolvedBackgroundColor)) return null;
|
|
692
|
+
let i = r[e.level] >= 24 ? 3 : 4.5, a = h(n, t.resolvedBackgroundColor);
|
|
692
693
|
return Number.isNaN(a) || a >= i ? null : {
|
|
693
694
|
blockId: e.id,
|
|
694
695
|
params: {
|
|
@@ -702,23 +703,23 @@ var it = {
|
|
|
702
703
|
severity: "warning"
|
|
703
704
|
};
|
|
704
705
|
function st(e) {
|
|
705
|
-
return c(e) ||
|
|
706
|
+
return c(e) || ne(e) ? e.fontSize : null;
|
|
706
707
|
}
|
|
707
708
|
//#endregion
|
|
708
709
|
//#region ../quality/src/accessibility/index.ts
|
|
709
|
-
var
|
|
710
|
-
|
|
711
|
-
_e,
|
|
710
|
+
var B = [
|
|
711
|
+
he,
|
|
712
712
|
ve,
|
|
713
713
|
ye,
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
714
|
+
be,
|
|
715
|
+
Ee,
|
|
716
|
+
ke,
|
|
717
|
+
je,
|
|
718
|
+
Ne,
|
|
719
|
+
Ie,
|
|
720
|
+
ze,
|
|
721
|
+
He,
|
|
722
|
+
Ke,
|
|
722
723
|
Ze,
|
|
723
724
|
Qe,
|
|
724
725
|
it,
|
|
@@ -741,10 +742,10 @@ var z = [
|
|
|
741
742
|
id: "a11y.button-vague-label",
|
|
742
743
|
severity: "warning"
|
|
743
744
|
},
|
|
744
|
-
block(e,
|
|
745
|
-
if (!
|
|
746
|
-
let
|
|
747
|
-
return
|
|
745
|
+
block(e, n, r) {
|
|
746
|
+
if (!t(e)) return null;
|
|
747
|
+
let i = j(e.text ?? "");
|
|
748
|
+
return i === "" || !k(r.locale).vagueButtonLabels.includes(i) ? null : {
|
|
748
749
|
blockId: e.id,
|
|
749
750
|
params: { text: e.text }
|
|
750
751
|
};
|
|
@@ -755,16 +756,16 @@ var z = [
|
|
|
755
756
|
id: "a11y.button-touch-target",
|
|
756
757
|
severity: "warning"
|
|
757
758
|
},
|
|
758
|
-
block(e,
|
|
759
|
-
if (!
|
|
760
|
-
let
|
|
761
|
-
if (!
|
|
762
|
-
let
|
|
763
|
-
return
|
|
759
|
+
block(e, n, r) {
|
|
760
|
+
if (!t(e)) return null;
|
|
761
|
+
let i = e.buttonPadding;
|
|
762
|
+
if (!i) return null;
|
|
763
|
+
let a = e.fontSize * 1.4 + i.top + i.bottom;
|
|
764
|
+
return a >= r.thresholds.minTouchTargetPx ? null : {
|
|
764
765
|
blockId: e.id,
|
|
765
766
|
params: {
|
|
766
|
-
height: Math.round(
|
|
767
|
-
min:
|
|
767
|
+
height: Math.round(a),
|
|
768
|
+
min: r.thresholds.minTouchTargetPx
|
|
768
769
|
}
|
|
769
770
|
};
|
|
770
771
|
}
|
|
@@ -775,15 +776,15 @@ var z = [
|
|
|
775
776
|
severity: "error"
|
|
776
777
|
},
|
|
777
778
|
block(e) {
|
|
778
|
-
if (!
|
|
779
|
-
let
|
|
780
|
-
if (Number.isNaN(
|
|
781
|
-
let
|
|
782
|
-
return
|
|
779
|
+
if (!t(e)) return null;
|
|
780
|
+
let n = h(e.textColor, e.backgroundColor);
|
|
781
|
+
if (Number.isNaN(n)) return null;
|
|
782
|
+
let r = e.fontSize >= 24 ? 3 : 4.5;
|
|
783
|
+
return n >= r ? null : {
|
|
783
784
|
blockId: e.id,
|
|
784
785
|
params: {
|
|
785
|
-
ratio:
|
|
786
|
-
required:
|
|
786
|
+
ratio: n.toFixed(2),
|
|
787
|
+
required: r
|
|
787
788
|
}
|
|
788
789
|
};
|
|
789
790
|
}
|
|
@@ -799,7 +800,7 @@ var z = [
|
|
|
799
800
|
}
|
|
800
801
|
];
|
|
801
802
|
function ct(e, t = {}) {
|
|
802
|
-
return t.disabled === !0 || t.accessibility === !1 ? [] : S(e,
|
|
803
|
+
return t.disabled === !0 || t.accessibility === !1 ? [] : S(e, B, se(t.locale, t.accessibility ?? {}, B), (e, t, n) => me(e, t, n));
|
|
803
804
|
}
|
|
804
805
|
//#endregion
|
|
805
806
|
//#region ../quality/src/structure/messages/de.ts
|
|
@@ -810,30 +811,36 @@ var lt = /* @__PURE__ */ e({ default: () => ut }), ut = {
|
|
|
810
811
|
"structure.empty-section": "Sektion enthält keine Blöcke. Entferne sie oder füge Inhalt hinzu.",
|
|
811
812
|
"structure.empty-column": "Spalte {columnIndex} dieser Sektion ist leer. Füge Inhalt hinzu oder reduziere die Spaltenanzahl.",
|
|
812
813
|
"structure.wrapper-color-over-background-image": "Outlook unter Windows malt die Hintergrundfarbe des Wrappers über das Hintergrundbild dieser Sektion. Entferne die Wrapper-Farbe oder lege das Bild auf den Wrapper.",
|
|
813
|
-
"structure.nested-background-image": "Diese Sektion und ihr Wrapper haben beide ein Hintergrundbild. Outlook unter Windows kann sie nicht übereinanderlegen und zerstört das Layout. Behalte das Bild nur auf einem von beiden."
|
|
814
|
-
|
|
814
|
+
"structure.nested-background-image": "Diese Sektion und ihr Wrapper haben beide ein Hintergrundbild. Outlook unter Windows kann sie nicht übereinanderlegen und zerstört das Layout. Behalte das Bild nur auf einem von beiden.",
|
|
815
|
+
"structure.hero-not-applied.columns": "Der Hero-Modus braucht eine einspaltige Sektion, deshalb wird diese Sektion als normale Sektion dargestellt. Stelle wieder eine Spalte ein oder schalte den Hero-Modus aus.",
|
|
816
|
+
"structure.hero-not-applied.image": "Der Hero-Modus braucht ein Hintergrundbild, deshalb wird diese Sektion als normale Sektion dargestellt, bis sie eines hat.",
|
|
817
|
+
"structure.hero-not-applied.size": "Der Hero-Modus kann die Form dieses Hintergrundbilds nicht übernehmen, weil seine Größe unbekannt ist (eine Merge-Tag-URL oder ein Bild, das der Editor nicht vermessen hat), deshalb wird die Sektion als normale Sektion dargestellt. Gib ihr eine feste Höhe oder trage die Größe der Bilddatei ein."
|
|
818
|
+
}, dt = /* @__PURE__ */ e({ default: () => V }), V = {
|
|
815
819
|
"structure.duplicate-block-id": "Block id appears {count} times in the tree. Each block must have a unique id.",
|
|
816
820
|
"structure.section-column-mismatch": "Section uses layout \"{layout}\" (expects {expected} columns) but has {actual}. Indicates corrupted state.",
|
|
817
821
|
"structure.nested-section": "Section is nested inside another section. Sections cannot nest — the renderer will misbehave.",
|
|
818
822
|
"structure.empty-section": "Section has no blocks. Remove it or add content.",
|
|
819
823
|
"structure.empty-column": "Column {columnIndex} of this section is empty. Add content or reduce the column count.",
|
|
820
824
|
"structure.wrapper-color-over-background-image": "Outlook on Windows paints the wrapper's background color over this section's background image. Remove the wrapper color or put the image on the wrapper.",
|
|
821
|
-
"structure.nested-background-image": "This section and its wrapper both have a background image. Outlook on Windows can't layer them and breaks the layout. Keep the image on one of them."
|
|
822
|
-
|
|
825
|
+
"structure.nested-background-image": "This section and its wrapper both have a background image. Outlook on Windows can't layer them and breaks the layout. Keep the image on one of them.",
|
|
826
|
+
"structure.hero-not-applied.columns": "Hero mode needs a one-column section, so this section renders as a regular one. Switch it back to one column, or turn hero mode off.",
|
|
827
|
+
"structure.hero-not-applied.image": "Hero mode needs a background image, so this section renders as a regular one until it has one.",
|
|
828
|
+
"structure.hero-not-applied.size": "Hero mode can't match this background image's shape because its size is unknown (a merge-tag URL, or an image the editor didn't measure), so the section renders as a regular one. Give it a fixed height, or set the image file's size."
|
|
829
|
+
}, H = /* #__PURE__ */ Object.assign({
|
|
823
830
|
"./de.ts": lt,
|
|
824
831
|
"./en.ts": dt
|
|
825
|
-
}),
|
|
826
|
-
for (let e in
|
|
832
|
+
}), U = {};
|
|
833
|
+
for (let e in H) {
|
|
827
834
|
let t = /\.\/([^/]+)\.ts$/.exec(e);
|
|
828
835
|
if (!t) continue;
|
|
829
836
|
let n = t[1];
|
|
830
|
-
n !== "index" && (
|
|
837
|
+
n !== "index" && (U[n] = H[e].default);
|
|
831
838
|
}
|
|
832
839
|
function ft(e) {
|
|
833
|
-
return
|
|
840
|
+
return U[e.split("-")[0]?.toLowerCase() ?? "en"] ?? U.en ?? V;
|
|
834
841
|
}
|
|
835
842
|
function pt(e, t, n) {
|
|
836
|
-
let r = ft(e)[t] ??
|
|
843
|
+
let r = ft(e)[t] ?? V[t];
|
|
837
844
|
return n ? r.replace(/\{(\w+)\}/g, (e, t) => {
|
|
838
845
|
let r = n[t];
|
|
839
846
|
return r === void 0 ? `{${t}}` : String(r);
|
|
@@ -845,14 +852,14 @@ var mt = {
|
|
|
845
852
|
id: "structure.duplicate-block-id",
|
|
846
853
|
severity: "error"
|
|
847
854
|
};
|
|
848
|
-
function
|
|
849
|
-
for (let n of e) if (t.set(n.id, (t.get(n.id) ?? 0) + 1),
|
|
855
|
+
function W(e, t) {
|
|
856
|
+
for (let n of e) if (t.set(n.id, (t.get(n.id) ?? 0) + 1), l(n)) for (let e of n.children) W(e, t);
|
|
850
857
|
}
|
|
851
858
|
var ht = {
|
|
852
859
|
meta: mt,
|
|
853
860
|
template(e) {
|
|
854
861
|
let t = /* @__PURE__ */ new Map();
|
|
855
|
-
|
|
862
|
+
W(e.blocks, t);
|
|
856
863
|
let n = [];
|
|
857
864
|
for (let [e, r] of t) r > 1 && n.push({
|
|
858
865
|
blockId: e,
|
|
@@ -864,9 +871,9 @@ var ht = {
|
|
|
864
871
|
id: "structure.empty-column",
|
|
865
872
|
severity: "warning"
|
|
866
873
|
};
|
|
867
|
-
function
|
|
874
|
+
function G(e, t) {
|
|
868
875
|
for (let n of e) {
|
|
869
|
-
if (!
|
|
876
|
+
if (!l(n)) continue;
|
|
870
877
|
let e = n;
|
|
871
878
|
e.children.length > 1 && e.children.forEach((n, r) => {
|
|
872
879
|
n.length === 0 && t.push({
|
|
@@ -874,14 +881,14 @@ function W(e, t) {
|
|
|
874
881
|
params: { columnIndex: r + 1 }
|
|
875
882
|
});
|
|
876
883
|
});
|
|
877
|
-
for (let n of e.children)
|
|
884
|
+
for (let n of e.children) G(n, t);
|
|
878
885
|
}
|
|
879
886
|
}
|
|
880
887
|
var _t = {
|
|
881
888
|
meta: gt,
|
|
882
889
|
template(e) {
|
|
883
890
|
let t = [];
|
|
884
|
-
return
|
|
891
|
+
return G(e.blocks, t), t;
|
|
885
892
|
}
|
|
886
893
|
}, vt = {
|
|
887
894
|
id: "structure.empty-section",
|
|
@@ -893,7 +900,7 @@ function yt(e) {
|
|
|
893
900
|
var bt = {
|
|
894
901
|
meta: vt,
|
|
895
902
|
block(e) {
|
|
896
|
-
if (!
|
|
903
|
+
if (!l(e)) return null;
|
|
897
904
|
let t = e;
|
|
898
905
|
return yt(t) ? {
|
|
899
906
|
blockId: t.id,
|
|
@@ -905,60 +912,78 @@ var bt = {
|
|
|
905
912
|
}
|
|
906
913
|
} : null;
|
|
907
914
|
}
|
|
915
|
+
}, xt = {
|
|
916
|
+
meta: {
|
|
917
|
+
id: "structure.hero-not-applied",
|
|
918
|
+
severity: "warning",
|
|
919
|
+
messageVariants: [
|
|
920
|
+
"columns",
|
|
921
|
+
"image",
|
|
922
|
+
"size"
|
|
923
|
+
]
|
|
924
|
+
},
|
|
925
|
+
block(e) {
|
|
926
|
+
if (!l(e)) return null;
|
|
927
|
+
let t = n(e);
|
|
928
|
+
return t === null || t.applied ? null : {
|
|
929
|
+
blockId: e.id,
|
|
930
|
+
messageVariant: t.reason
|
|
931
|
+
};
|
|
932
|
+
}
|
|
908
933
|
};
|
|
909
934
|
//#endregion
|
|
910
935
|
//#region ../quality/src/structure/band.ts
|
|
911
|
-
function
|
|
912
|
-
return e.wrapper ? e.wrapper : t.parent &&
|
|
936
|
+
function K(e, t) {
|
|
937
|
+
return e.wrapper ? e.wrapper : t.parent && u(t.parent) ? {
|
|
913
938
|
backgroundColor: t.parent.styles?.backgroundColor,
|
|
914
939
|
backgroundImage: t.parent.backgroundImage
|
|
915
940
|
} : null;
|
|
916
941
|
}
|
|
917
|
-
function
|
|
942
|
+
function St(e) {
|
|
918
943
|
if (typeof e != "string") return !1;
|
|
919
944
|
let t = e.trim().toLowerCase();
|
|
920
945
|
return t !== "" && t !== "transparent";
|
|
921
946
|
}
|
|
922
|
-
var
|
|
947
|
+
var Ct = {
|
|
923
948
|
meta: {
|
|
924
949
|
id: "structure.nested-background-image",
|
|
925
950
|
severity: "warning"
|
|
926
951
|
},
|
|
927
952
|
block(e, t) {
|
|
928
|
-
if (!
|
|
929
|
-
let
|
|
930
|
-
return
|
|
953
|
+
if (!l(e) || i(e.backgroundImage) === null) return null;
|
|
954
|
+
let n = K(e, t);
|
|
955
|
+
return n === null || i(n.backgroundImage) === null ? null : { blockId: e.id };
|
|
931
956
|
}
|
|
932
|
-
},
|
|
957
|
+
}, wt = {
|
|
933
958
|
meta: {
|
|
934
959
|
id: "structure.nested-section",
|
|
935
960
|
severity: "error"
|
|
936
961
|
},
|
|
937
962
|
block(e, t) {
|
|
938
|
-
return !
|
|
963
|
+
return !l(e) || t.section === null ? null : {
|
|
939
964
|
blockId: e.id,
|
|
940
965
|
params: { parentId: t.section.id }
|
|
941
966
|
};
|
|
942
967
|
}
|
|
943
|
-
},
|
|
968
|
+
}, Tt = {
|
|
944
969
|
id: "structure.section-column-mismatch",
|
|
945
970
|
severity: "error"
|
|
946
971
|
};
|
|
947
|
-
function
|
|
972
|
+
function Et(e) {
|
|
948
973
|
return e === "1" ? 1 : e === "3" ? 3 : 2;
|
|
949
974
|
}
|
|
950
975
|
//#endregion
|
|
951
976
|
//#region ../quality/src/structure/index.ts
|
|
952
|
-
var
|
|
977
|
+
var q = [
|
|
953
978
|
ht,
|
|
954
979
|
bt,
|
|
955
980
|
_t,
|
|
956
|
-
|
|
981
|
+
wt,
|
|
957
982
|
{
|
|
958
|
-
meta:
|
|
983
|
+
meta: Tt,
|
|
959
984
|
block(e) {
|
|
960
|
-
if (!
|
|
961
|
-
let t = e, n =
|
|
985
|
+
if (!l(e)) return null;
|
|
986
|
+
let t = e, n = Et(t.columns), r = t.children.length;
|
|
962
987
|
return r === n ? null : {
|
|
963
988
|
blockId: t.id,
|
|
964
989
|
params: {
|
|
@@ -975,47 +1000,48 @@ var K = [
|
|
|
975
1000
|
severity: "warning"
|
|
976
1001
|
},
|
|
977
1002
|
block(e, t) {
|
|
978
|
-
if (!
|
|
979
|
-
let
|
|
980
|
-
return
|
|
1003
|
+
if (!l(e) || i(e.backgroundImage) === null) return null;
|
|
1004
|
+
let n = K(e, t);
|
|
1005
|
+
return n === null || !St(n.backgroundColor) ? null : { blockId: e.id };
|
|
981
1006
|
}
|
|
982
1007
|
},
|
|
983
|
-
|
|
1008
|
+
Ct,
|
|
1009
|
+
xt
|
|
984
1010
|
];
|
|
985
|
-
function
|
|
986
|
-
return t.disabled === !0 || t.structure === !1 ? [] : S(e,
|
|
1011
|
+
function Dt(e, t = {}) {
|
|
1012
|
+
return t.disabled === !0 || t.structure === !1 ? [] : S(e, q, ce(t.locale, t.structure ?? {}, q), (e, t, n) => pt(e, t, n));
|
|
987
1013
|
}
|
|
988
1014
|
//#endregion
|
|
989
1015
|
//#region ../quality/src/links/messages/de.ts
|
|
990
|
-
var
|
|
1016
|
+
var Ot = /* @__PURE__ */ e({ default: () => kt }), kt = {
|
|
991
1017
|
"link.javascript-protocol": "Die URL verwendet das Protokoll „{protocol}:\", das beliebigen Skriptcode ausführen kann und aus Sicherheitsgründen beim Rendern entfernt wird. Ersetze sie durch eine echte URL oder entferne sie.",
|
|
992
1018
|
"link.unsupported-protocol": "Die URL verwendet das Protokoll „{protocol}\", das von den meisten E-Mail-Clients nicht unterstützt wird. Verwende http, https, mailto, tel oder sms.",
|
|
993
1019
|
"link.malformed-mailto": "Der mailto:-Link ist fehlerhaft. Erwartet wird eine einzelne Empfängeradresse vor einer eventuellen Querystring (z. B. mailto:hallo@example.com).",
|
|
994
1020
|
"link.malformed-tel": "Der tel:-Link enthält Zeichen, die keine Ziffern, +, Leerzeichen, Bindestriche, Klammern oder Punkte sind.",
|
|
995
1021
|
"link.localhost-or-staging": "Der URL-Host „{host}\" entspricht einem Nicht-Produktionsmuster. Ersetze ihn vor dem Versand durch die Produktions-URL.",
|
|
996
1022
|
"link.relative-url": "Die URL „{url}\" ist relativ. Eine versendete E-Mail hat keine Seitenadresse, gegen die sie aufgelöst werden kann, daher funktioniert der Link nicht. Verwende eine absolute URL (https://…)."
|
|
997
|
-
},
|
|
1023
|
+
}, At = /* @__PURE__ */ e({ default: () => J }), J = {
|
|
998
1024
|
"link.javascript-protocol": "URL uses the \"{protocol}:\" protocol, which can execute arbitrary script and is stripped at render time for safety. Replace it with a real link or remove the URL.",
|
|
999
1025
|
"link.unsupported-protocol": "URL uses the \"{protocol}\" protocol, which most email clients do not support. Use http, https, mailto, tel, or sms.",
|
|
1000
1026
|
"link.malformed-mailto": "mailto: link is malformed. Expected a single recipient address before any query string (e.g. mailto:hello@example.com).",
|
|
1001
1027
|
"link.malformed-tel": "tel: link contains characters that are not digits, +, spaces, dashes, parentheses, or dots.",
|
|
1002
1028
|
"link.localhost-or-staging": "URL host \"{host}\" matches a non-production pattern. Replace with the production URL before sending.",
|
|
1003
1029
|
"link.relative-url": "URL \"{url}\" is relative. A sent email has no page address to resolve it against, so the link breaks. Use an absolute URL (https://…)."
|
|
1004
|
-
},
|
|
1005
|
-
"./de.ts":
|
|
1006
|
-
"./en.ts":
|
|
1007
|
-
}),
|
|
1008
|
-
for (let e in
|
|
1030
|
+
}, Y = /* #__PURE__ */ Object.assign({
|
|
1031
|
+
"./de.ts": Ot,
|
|
1032
|
+
"./en.ts": At
|
|
1033
|
+
}), X = {};
|
|
1034
|
+
for (let e in Y) {
|
|
1009
1035
|
let t = /\.\/([^/]+)\.ts$/.exec(e);
|
|
1010
1036
|
if (!t) continue;
|
|
1011
1037
|
let n = t[1];
|
|
1012
|
-
n !== "index" && (
|
|
1038
|
+
n !== "index" && (X[n] = Y[e].default);
|
|
1013
1039
|
}
|
|
1014
|
-
function
|
|
1015
|
-
return
|
|
1040
|
+
function jt(e) {
|
|
1041
|
+
return X[e.split("-")[0]?.toLowerCase() ?? "en"] ?? X.en ?? J;
|
|
1016
1042
|
}
|
|
1017
|
-
function
|
|
1018
|
-
let r =
|
|
1043
|
+
function Mt(e, t, n) {
|
|
1044
|
+
let r = jt(e)[t] ?? J[t];
|
|
1019
1045
|
return n ? r.replace(/\{(\w+)\}/g, (e, t) => {
|
|
1020
1046
|
let r = n[t];
|
|
1021
1047
|
return r === void 0 ? `{${t}}` : String(r);
|
|
@@ -1023,69 +1049,69 @@ function jt(e, t, n) {
|
|
|
1023
1049
|
}
|
|
1024
1050
|
//#endregion
|
|
1025
1051
|
//#region ../quality/src/url-walker.ts
|
|
1026
|
-
function
|
|
1027
|
-
let
|
|
1052
|
+
function Z(e) {
|
|
1053
|
+
let n = [];
|
|
1028
1054
|
return x(e, (e) => {
|
|
1029
|
-
if (
|
|
1030
|
-
url:
|
|
1055
|
+
if (s(e) || a(e) || te(e)) for (let t of M(e.content)) n.push({
|
|
1056
|
+
url: t.href,
|
|
1031
1057
|
blockId: e.id,
|
|
1032
1058
|
source: "anchor",
|
|
1033
|
-
label:
|
|
1059
|
+
label: t.text
|
|
1034
1060
|
});
|
|
1035
|
-
else if (
|
|
1061
|
+
else if (t(e)) n.push({
|
|
1036
1062
|
url: e.url,
|
|
1037
1063
|
blockId: e.id,
|
|
1038
1064
|
source: "button",
|
|
1039
1065
|
label: e.text
|
|
1040
1066
|
});
|
|
1041
|
-
else if (
|
|
1067
|
+
else if (d(e)) e.linkUrl && e.linkUrl !== "" && n.push({
|
|
1042
1068
|
url: e.linkUrl,
|
|
1043
1069
|
blockId: e.id,
|
|
1044
1070
|
source: "image-link",
|
|
1045
1071
|
label: e.alt || void 0
|
|
1046
1072
|
});
|
|
1047
|
-
else if (ee(e))
|
|
1073
|
+
else if (ee(e)) n.push({
|
|
1048
1074
|
url: e.url,
|
|
1049
1075
|
blockId: e.id,
|
|
1050
1076
|
source: "video",
|
|
1051
1077
|
label: e.alt || void 0
|
|
1052
1078
|
});
|
|
1053
|
-
else if (c(e)) for (let
|
|
1054
|
-
url:
|
|
1079
|
+
else if (c(e)) for (let t of e.items) n.push({
|
|
1080
|
+
url: t.url,
|
|
1055
1081
|
blockId: e.id,
|
|
1056
1082
|
source: "menu-item",
|
|
1057
|
-
label:
|
|
1083
|
+
label: t.text
|
|
1058
1084
|
});
|
|
1059
|
-
else if (
|
|
1060
|
-
url:
|
|
1085
|
+
else if (o(e)) for (let t of e.icons) n.push({
|
|
1086
|
+
url: t.url,
|
|
1061
1087
|
blockId: e.id,
|
|
1062
1088
|
source: "social-icon",
|
|
1063
|
-
label:
|
|
1089
|
+
label: t.platform
|
|
1064
1090
|
});
|
|
1065
|
-
}),
|
|
1091
|
+
}), n;
|
|
1066
1092
|
}
|
|
1067
1093
|
//#endregion
|
|
1068
1094
|
//#region ../quality/src/links/rules/javascript-protocol.ts
|
|
1069
|
-
var
|
|
1095
|
+
var Nt = {
|
|
1070
1096
|
id: "link.javascript-protocol",
|
|
1071
1097
|
severity: "error"
|
|
1072
|
-
},
|
|
1098
|
+
}, Q = [
|
|
1073
1099
|
"javascript",
|
|
1074
1100
|
"data",
|
|
1075
1101
|
"vbscript"
|
|
1076
1102
|
];
|
|
1077
|
-
function
|
|
1103
|
+
function Pt(e) {
|
|
1078
1104
|
if (!e) return null;
|
|
1079
1105
|
let t = e.replace(/\s+/g, "");
|
|
1080
|
-
for (let e of
|
|
1106
|
+
for (let e of Q) if (RegExp(`^${e}:`, "i").test(t)) return e;
|
|
1081
1107
|
return null;
|
|
1082
1108
|
}
|
|
1083
|
-
var
|
|
1084
|
-
meta:
|
|
1109
|
+
var Ft = {
|
|
1110
|
+
meta: Nt,
|
|
1085
1111
|
template(e) {
|
|
1086
1112
|
let t = [];
|
|
1087
|
-
for (let n of
|
|
1088
|
-
let e =
|
|
1113
|
+
for (let n of Z(e)) {
|
|
1114
|
+
let e = Pt(n.url);
|
|
1089
1115
|
e !== null && t.push({
|
|
1090
1116
|
blockId: n.blockId,
|
|
1091
1117
|
params: { protocol: e }
|
|
@@ -1093,39 +1119,39 @@ var Pt = {
|
|
|
1093
1119
|
}
|
|
1094
1120
|
return t;
|
|
1095
1121
|
}
|
|
1096
|
-
},
|
|
1122
|
+
}, It = {
|
|
1097
1123
|
id: "link.unsupported-protocol",
|
|
1098
1124
|
severity: "warning"
|
|
1099
|
-
},
|
|
1125
|
+
}, Lt = /* @__PURE__ */ new Set([
|
|
1100
1126
|
"http",
|
|
1101
1127
|
"https",
|
|
1102
1128
|
"mailto",
|
|
1103
1129
|
"tel",
|
|
1104
1130
|
"sms"
|
|
1105
|
-
]),
|
|
1106
|
-
function
|
|
1131
|
+
]), Rt = new Set(Q);
|
|
1132
|
+
function zt(e) {
|
|
1107
1133
|
if (!e) return null;
|
|
1108
1134
|
let t = e.trim(), n = /^([a-z][a-z0-9+\-.]*):/i.exec(t);
|
|
1109
1135
|
return n ? n[1].toLowerCase() : null;
|
|
1110
1136
|
}
|
|
1111
|
-
var
|
|
1112
|
-
meta:
|
|
1137
|
+
var Bt = {
|
|
1138
|
+
meta: It,
|
|
1113
1139
|
template(e) {
|
|
1114
1140
|
let t = [];
|
|
1115
|
-
for (let n of
|
|
1116
|
-
let e =
|
|
1117
|
-
e !== null && (
|
|
1141
|
+
for (let n of Z(e)) {
|
|
1142
|
+
let e = zt(n.url);
|
|
1143
|
+
e !== null && (Rt.has(e) || Lt.has(e) || t.push({
|
|
1118
1144
|
blockId: n.blockId,
|
|
1119
1145
|
params: { protocol: e }
|
|
1120
1146
|
}));
|
|
1121
1147
|
}
|
|
1122
1148
|
return t;
|
|
1123
1149
|
}
|
|
1124
|
-
},
|
|
1150
|
+
}, Vt = {
|
|
1125
1151
|
id: "link.malformed-mailto",
|
|
1126
1152
|
severity: "warning"
|
|
1127
1153
|
};
|
|
1128
|
-
function
|
|
1154
|
+
function Ht(e) {
|
|
1129
1155
|
let t = e.trim();
|
|
1130
1156
|
if (!/^mailto:/i.test(t)) return !1;
|
|
1131
1157
|
let [n] = t.slice(7).split("?", 2);
|
|
@@ -1140,41 +1166,41 @@ function Vt(e) {
|
|
|
1140
1166
|
}
|
|
1141
1167
|
return !1;
|
|
1142
1168
|
}
|
|
1143
|
-
var
|
|
1144
|
-
meta:
|
|
1169
|
+
var Ut = {
|
|
1170
|
+
meta: Vt,
|
|
1145
1171
|
template(e) {
|
|
1146
1172
|
let t = [];
|
|
1147
|
-
for (let n of
|
|
1173
|
+
for (let n of Z(e)) Ht(n.url) && t.push({ blockId: n.blockId });
|
|
1148
1174
|
return t;
|
|
1149
1175
|
}
|
|
1150
|
-
},
|
|
1176
|
+
}, Wt = {
|
|
1151
1177
|
id: "link.malformed-tel",
|
|
1152
1178
|
severity: "warning"
|
|
1153
|
-
},
|
|
1154
|
-
function
|
|
1179
|
+
}, Gt = /^[+0-9\s().\-]+$/, Kt = /^[A-Za-z0-9-]+(=[^;]+)?$/;
|
|
1180
|
+
function qt(e) {
|
|
1155
1181
|
let t = e.trim();
|
|
1156
1182
|
if (!/^tel:/i.test(t)) return !1;
|
|
1157
1183
|
let n = t.slice(4).trim();
|
|
1158
1184
|
if (n === "") return !0;
|
|
1159
1185
|
let [r, ...i] = n.split(";");
|
|
1160
|
-
return !
|
|
1186
|
+
return !Gt.test(r) || i.some((e) => !Kt.test(e));
|
|
1161
1187
|
}
|
|
1162
|
-
var
|
|
1163
|
-
meta:
|
|
1188
|
+
var Jt = {
|
|
1189
|
+
meta: Wt,
|
|
1164
1190
|
template(e) {
|
|
1165
1191
|
let t = [];
|
|
1166
|
-
for (let n of
|
|
1192
|
+
for (let n of Z(e)) qt(n.url) && t.push({ blockId: n.blockId });
|
|
1167
1193
|
return t;
|
|
1168
1194
|
}
|
|
1169
|
-
},
|
|
1195
|
+
}, Yt = {
|
|
1170
1196
|
id: "link.localhost-or-staging",
|
|
1171
1197
|
severity: "warning"
|
|
1172
1198
|
};
|
|
1173
|
-
function
|
|
1199
|
+
function Xt(e) {
|
|
1174
1200
|
let t = e.replace(/[.+?^${}()|[\]\\]/g, "\\$&").replace(/\*/g, ".*");
|
|
1175
1201
|
return RegExp(`^${t}$`, "i");
|
|
1176
1202
|
}
|
|
1177
|
-
function
|
|
1203
|
+
function Zt(e) {
|
|
1178
1204
|
if (!e) return null;
|
|
1179
1205
|
let t = e.trim();
|
|
1180
1206
|
if (!/^(https?|ftps?):\/\//i.test(t)) return null;
|
|
@@ -1184,14 +1210,14 @@ function Yt(e) {
|
|
|
1184
1210
|
return null;
|
|
1185
1211
|
}
|
|
1186
1212
|
}
|
|
1187
|
-
var
|
|
1188
|
-
meta:
|
|
1213
|
+
var Qt = {
|
|
1214
|
+
meta: Yt,
|
|
1189
1215
|
template(e, t) {
|
|
1190
1216
|
let n = t.links.nonProductionHosts;
|
|
1191
1217
|
if (n.length === 0) return [];
|
|
1192
|
-
let r = n.map(
|
|
1193
|
-
for (let t of
|
|
1194
|
-
let e =
|
|
1218
|
+
let r = n.map(Xt), i = [];
|
|
1219
|
+
for (let t of Z(e)) {
|
|
1220
|
+
let e = Zt(t.url);
|
|
1195
1221
|
e !== null && r.some((t) => t.test(e)) && i.push({
|
|
1196
1222
|
blockId: t.blockId,
|
|
1197
1223
|
params: { host: e }
|
|
@@ -1199,22 +1225,22 @@ var Xt = {
|
|
|
1199
1225
|
}
|
|
1200
1226
|
return i;
|
|
1201
1227
|
}
|
|
1202
|
-
},
|
|
1228
|
+
}, $t = {
|
|
1203
1229
|
id: "link.relative-url",
|
|
1204
1230
|
severity: "warning"
|
|
1205
|
-
},
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1231
|
+
}, en = /^(?:\/|\.{1,2}\/|\?)/, $ = [
|
|
1232
|
+
Ft,
|
|
1233
|
+
Bt,
|
|
1234
|
+
Ut,
|
|
1235
|
+
Jt,
|
|
1236
|
+
Qt,
|
|
1211
1237
|
{
|
|
1212
|
-
meta:
|
|
1238
|
+
meta: $t,
|
|
1213
1239
|
template(e) {
|
|
1214
1240
|
let t = [];
|
|
1215
|
-
for (let n of
|
|
1241
|
+
for (let n of Z(e)) {
|
|
1216
1242
|
let e = n.url?.trim();
|
|
1217
|
-
e &&
|
|
1243
|
+
e && en.test(e) && t.push({
|
|
1218
1244
|
blockId: n.blockId,
|
|
1219
1245
|
params: { url: e }
|
|
1220
1246
|
});
|
|
@@ -1223,24 +1249,24 @@ var Xt = {
|
|
|
1223
1249
|
}
|
|
1224
1250
|
}
|
|
1225
1251
|
];
|
|
1226
|
-
function
|
|
1227
|
-
return t.disabled === !0 || t.links === !1 ? [] : S(e, $,
|
|
1252
|
+
function tn(e, t = {}) {
|
|
1253
|
+
return t.disabled === !0 || t.links === !1 ? [] : S(e, $, le(t.locale, t.links ?? {}, $), (e, t, n) => Mt(e, t, n));
|
|
1228
1254
|
}
|
|
1229
1255
|
//#endregion
|
|
1230
1256
|
//#region ../quality/src/util.ts
|
|
1231
|
-
function
|
|
1257
|
+
function nn(e) {
|
|
1232
1258
|
return e ? e.disabled === !0 || e.accessibility === !1 && e.structure === !1 && e.links === !1 : !1;
|
|
1233
1259
|
}
|
|
1234
1260
|
//#endregion
|
|
1235
1261
|
//#region ../quality/src/lint-template.ts
|
|
1236
|
-
function
|
|
1237
|
-
return
|
|
1262
|
+
function rn(e, t = {}) {
|
|
1263
|
+
return nn(t) ? [] : [
|
|
1238
1264
|
...ct(e, t),
|
|
1239
|
-
...
|
|
1240
|
-
|
|
1265
|
+
...Dt(e, t),
|
|
1266
|
+
...tn(e, t)
|
|
1241
1267
|
];
|
|
1242
1268
|
}
|
|
1243
1269
|
//#endregion
|
|
1244
|
-
export {
|
|
1270
|
+
export { rn as lintTemplate };
|
|
1245
1271
|
|
|
1246
|
-
//# sourceMappingURL=src-
|
|
1272
|
+
//# sourceMappingURL=src-B1e5SSYP.js.map
|