@templatical/editor 0.49.0 → 0.50.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.
Files changed (378) hide show
  1. package/README.md +4 -2
  2. package/dist/AiAltTextPopover-BZQ95GXL.js +106 -0
  3. package/dist/AiAltTextReview-DoBEudnE.js +206 -0
  4. package/dist/AiChatPanel-Bs6sES3b.js +550 -0
  5. package/dist/AiHeaderMenu-BEaTazx4.js +36 -0
  6. package/dist/AiPanels-CfN7A-ZA.js +33 -0
  7. package/dist/AiRewriteMenu-C3ZfDDYy.js +276 -0
  8. package/dist/{BlockIssueBadge-BdpJwim0.js → BlockIssueBadge-CKwZ1Vgn.js} +11 -11
  9. package/dist/{BlockPreviewCanvas-D_sowkf0.js → BlockPreviewCanvas-BXNLLLYi.js} +33 -33
  10. package/dist/CloudHeaderExtras-CsJMEiyN.js +23 -0
  11. package/dist/{CloudPanels-1hwFiJ0G.js → CloudPanels-B4F5m7vy.js} +66 -85
  12. package/dist/{CollaborationNotices-BWpKzueF.js → CollaborationNotices-CNuDp7Y2.js} +19 -16
  13. package/dist/{CollaboratorBar-D87phJsw.js → CollaboratorBar-BtHPiuHq.js} +22 -22
  14. package/dist/{CommentsPanel-BUvUzO3T.js → CommentsPanel-CyCM-BvT.js} +4 -4
  15. package/dist/CommentsSidebar-Ca3DyFOX.js +500 -0
  16. package/dist/{cdn/chunks/CountdownBlock-DB4JNdqh.js → CountdownBlock-DR4Xm2-T.js} +24 -26
  17. package/dist/{CountdownToolbar-CLMIwfK7.js → CountdownToolbar-CEIMPojJ.js} +55 -55
  18. package/dist/IssuesPanel-C8nMUccy.js +360 -0
  19. package/dist/{LoadingTrack-BXOptf5g.js → LoadingTrack-B0RKQWq3.js} +2 -2
  20. package/dist/{LogicTagInsertButton-CR5E4jSG.js → LogicTagInsertButton-CqfU52CO.js} +273 -268
  21. package/dist/{cdn/chunks/MediaEditModal-DD0SZ-S3.js → MediaEditModal-DHtkZ4OU.js} +202 -186
  22. package/dist/{MediaPanels-BVXDkqtH.js → MediaPanels-CGcOB2pR.js} +4 -4
  23. package/dist/{MergeTagInput-BEw_r0PJ.js → MergeTagInput-YnEkorTZ.js} +25 -25
  24. package/dist/{MergeTagModeToggle-CJTpFmVd.js → MergeTagModeToggle-Dhb1DAcQ.js} +40 -40
  25. package/dist/MergeTagTextarea-e4lnwtqZ.js +70 -0
  26. package/dist/ParagraphEditor-B6NK0ytw.js +799 -0
  27. package/dist/{RestoreVersionDialog-BaDpy3cL.js → RestoreVersionDialog-Bq_IGOLJ.js} +21 -21
  28. package/dist/{RichTextEditorContent-CsvniFlI.js → RichTextEditorContent-AOM6fylS.js} +48 -48
  29. package/dist/{SaveBlockDialog-DzWURF_e.js → SaveBlockDialog-C8GngfQx.js} +87 -87
  30. package/dist/{cdn/chunks/SavedBlocksBrowserModal-BMtyUrUP.js → SavedBlocksBrowserModal-wnkvxpm_.js} +102 -99
  31. package/dist/{SavedBlocksPanels-B3Af8ns2.js → SavedBlocksPanels-C2s3q0pJ.js} +9 -9
  32. package/dist/{SavedBlocksPickBar-Dj11-Lqp.js → SavedBlocksPickBar-BjcTiV87.js} +13 -13
  33. package/dist/TemplateSettings-BVBWpiDU.js +237 -0
  34. package/dist/{TestEmailModal-BeRYV3eg.js → TestEmailModal-SyhO9bn3.js} +57 -57
  35. package/dist/{TestEmailPanel-B8c3fQi2.js → TestEmailPanel-BDd2Rtav.js} +4 -4
  36. package/dist/{TitleEditor-CvpNUoAp.js → TitleEditor-pxD53y_l.js} +75 -75
  37. package/dist/ToggleSwitch-D51U9cmR.js +37 -0
  38. package/dist/{Toolbar-BadDSkkF.js → Toolbar-CZSPZYbj.js} +1138 -1138
  39. package/dist/{TplModal-BZgi9Tes.js → TplModal-DCzBzicE.js} +19 -19
  40. package/dist/{VersionHistoryMenu-BRlcQ8wX.js → VersionHistoryMenu-BQeWPT85.js} +35 -35
  41. package/dist/{VersionHistoryPanels-DGkllN3a.js → VersionHistoryPanels-BBm7YbRQ.js} +5 -5
  42. package/dist/{VersionPreviewBanner-F-811aps.js → VersionPreviewBanner-DUGF0tUJ.js} +9 -9
  43. package/dist/WrapperBlock-BO619LAb.js +45 -0
  44. package/dist/aiErrors-D5UOoYOt.js +41 -0
  45. package/dist/aiImageContext-BH4Ss1h3.js +48 -0
  46. package/dist/aiRewritePreview-DLGM05Ge.js +44 -0
  47. package/dist/{blockTypeIcons-CayLluou.js → blockTypeIcons-NzaYvAI4.js} +15 -14
  48. package/dist/bundle-stats.json +8 -8
  49. package/dist/{cdn/chunks/ca-DSJwJ5ov.js → ca-C7mTzW1r.js} +130 -13
  50. package/dist/cdn/chunks/AiAltTextPopover-CQu0Q_ZX.js +107 -0
  51. package/dist/cdn/chunks/AiAltTextPopover-CQu0Q_ZX.js.map +1 -0
  52. package/dist/cdn/chunks/AiAltTextReview-CI2HbWfn.js +207 -0
  53. package/dist/cdn/chunks/AiAltTextReview-CI2HbWfn.js.map +1 -0
  54. package/dist/cdn/chunks/AiChatPanel-BYqn1bKu.js +476 -0
  55. package/dist/cdn/chunks/AiChatPanel-BYqn1bKu.js.map +1 -0
  56. package/dist/cdn/chunks/AiHeaderMenu-oldAAFyL.js +37 -0
  57. package/dist/cdn/chunks/AiHeaderMenu-oldAAFyL.js.map +1 -0
  58. package/dist/cdn/chunks/AiPanels-CIFKQv8Y.js +34 -0
  59. package/dist/cdn/chunks/AiPanels-CIFKQv8Y.js.map +1 -0
  60. package/dist/cdn/chunks/AiRewriteMenu-Bhh71zcc.js +208 -0
  61. package/dist/cdn/chunks/AiRewriteMenu-Bhh71zcc.js.map +1 -0
  62. package/dist/cdn/chunks/{BlockIssueBadge-D1VBS_6x.js → BlockIssueBadge-DAn2vsMJ.js} +13 -13
  63. package/dist/cdn/chunks/{BlockIssueBadge-D1VBS_6x.js.map → BlockIssueBadge-DAn2vsMJ.js.map} +1 -1
  64. package/dist/cdn/chunks/{BlockPreviewCanvas-m2tWRyWv.js → BlockPreviewCanvas-D0--EQkP.js} +38 -38
  65. package/dist/cdn/chunks/{BlockPreviewCanvas-m2tWRyWv.js.map → BlockPreviewCanvas-D0--EQkP.js.map} +1 -1
  66. package/dist/cdn/chunks/CloudHeaderExtras-DaUU8P8R.js +25 -0
  67. package/dist/cdn/chunks/CloudHeaderExtras-DaUU8P8R.js.map +1 -0
  68. package/dist/cdn/chunks/{CloudPanels-XufhBZYF.js → CloudPanels-C3jsxo_f.js} +52 -71
  69. package/dist/cdn/chunks/CloudPanels-C3jsxo_f.js.map +1 -0
  70. package/dist/cdn/chunks/{CollaborationNotices-CBvKEj1Q.js → CollaborationNotices-DjRI8gvs.js} +23 -20
  71. package/dist/cdn/chunks/CollaborationNotices-DjRI8gvs.js.map +1 -0
  72. package/dist/cdn/chunks/{CollaboratorBar-DWW54Bn_.js → CollaboratorBar-Dfzm6A9A.js} +20 -20
  73. package/dist/cdn/chunks/{CollaboratorBar-DWW54Bn_.js.map → CollaboratorBar-Dfzm6A9A.js.map} +1 -1
  74. package/dist/cdn/chunks/CommentsPanel-CSO79OeX.js +20 -0
  75. package/dist/cdn/chunks/{CommentsPanel-R8YLLO3v.js.map → CommentsPanel-CSO79OeX.js.map} +1 -1
  76. package/dist/cdn/chunks/CommentsSidebar-CCvplq1Z.js +470 -0
  77. package/dist/cdn/chunks/{CommentsSidebar-96NZHVq3.js.map → CommentsSidebar-CCvplq1Z.js.map} +1 -1
  78. package/dist/{CountdownBlock-DPQXWRvU.js → cdn/chunks/CountdownBlock-C6USdwk3.js} +19 -17
  79. package/dist/cdn/chunks/{CountdownBlock-DB4JNdqh.js.map → CountdownBlock-C6USdwk3.js.map} +1 -1
  80. package/dist/cdn/chunks/{CountdownToolbar-tmiTPEXm.js → CountdownToolbar-Cjud2Tos.js} +70 -70
  81. package/dist/cdn/chunks/{CountdownToolbar-tmiTPEXm.js.map → CountdownToolbar-Cjud2Tos.js.map} +1 -1
  82. package/dist/cdn/chunks/IssuesPanel-BaWHPDxZ.js +340 -0
  83. package/dist/cdn/chunks/IssuesPanel-BaWHPDxZ.js.map +1 -0
  84. package/dist/cdn/chunks/{LoadingTrack-YU44CM8X.js → LoadingTrack-BIcL4NiY.js} +2 -2
  85. package/dist/cdn/chunks/{LoadingTrack-YU44CM8X.js.map → LoadingTrack-BIcL4NiY.js.map} +1 -1
  86. package/dist/cdn/chunks/{LogicTagInsertButton-BJ2t2vxC.js → LogicTagInsertButton-CsL2JDOG.js} +367 -362
  87. package/dist/cdn/chunks/LogicTagInsertButton-CsL2JDOG.js.map +1 -0
  88. package/dist/{MediaEditModal-C_wxoUMG.js → cdn/chunks/MediaEditModal-BuHCiyMu.js} +544 -560
  89. package/dist/cdn/chunks/MediaEditModal-BuHCiyMu.js.map +1 -0
  90. package/dist/cdn/chunks/MediaPanels-DAgUf_T1.js +45 -0
  91. package/dist/cdn/chunks/{MediaPanels-CkdJ_kGp.js.map → MediaPanels-DAgUf_T1.js.map} +1 -1
  92. package/dist/cdn/chunks/{MergeTagInput-7wXX71DH.js → MergeTagInput-C8U-7LxL.js} +33 -33
  93. package/dist/cdn/chunks/{MergeTagInput-7wXX71DH.js.map → MergeTagInput-C8U-7LxL.js.map} +1 -1
  94. package/dist/cdn/chunks/{MergeTagModeToggle-r9vHH4u_.js → MergeTagModeToggle-Mm-p0A52.js} +41 -41
  95. package/dist/cdn/chunks/{MergeTagModeToggle-r9vHH4u_.js.map → MergeTagModeToggle-Mm-p0A52.js.map} +1 -1
  96. package/dist/cdn/chunks/MergeTagTextarea-DuLScsWM.js +72 -0
  97. package/dist/cdn/chunks/MergeTagTextarea-DuLScsWM.js.map +1 -0
  98. package/dist/cdn/chunks/ParagraphEditor-CqSj6Ayz.js +634 -0
  99. package/dist/cdn/chunks/ParagraphEditor-CqSj6Ayz.js.map +1 -0
  100. package/dist/cdn/chunks/{RestoreVersionDialog-C5cxBRKi.js → RestoreVersionDialog-CdA5osuA.js} +25 -25
  101. package/dist/cdn/chunks/{RestoreVersionDialog-C5cxBRKi.js.map → RestoreVersionDialog-CdA5osuA.js.map} +1 -1
  102. package/dist/cdn/chunks/{RichTextEditorContent-BfE7Bkge.js → RichTextEditorContent-Q1d2xqBT.js} +46 -46
  103. package/dist/cdn/chunks/{RichTextEditorContent-BfE7Bkge.js.map → RichTextEditorContent-Q1d2xqBT.js.map} +1 -1
  104. package/dist/cdn/chunks/{SaveBlockDialog-BKbjUnPM.js → SaveBlockDialog-CijargAy.js} +77 -77
  105. package/dist/cdn/chunks/{SaveBlockDialog-BKbjUnPM.js.map → SaveBlockDialog-CijargAy.js.map} +1 -1
  106. package/dist/cdn/chunks/SavedBlocksBrowserModal-DtOz_X5S.js +357 -0
  107. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BMtyUrUP.js.map → SavedBlocksBrowserModal-DtOz_X5S.js.map} +1 -1
  108. package/dist/cdn/chunks/SavedBlocksPanels-BowyED5h.js +38 -0
  109. package/dist/cdn/chunks/{SavedBlocksPanels-s_gxi1im.js.map → SavedBlocksPanels-BowyED5h.js.map} +1 -1
  110. package/dist/cdn/chunks/{SavedBlocksPickBar-B8WHk5mI.js → SavedBlocksPickBar-BPRaJBv3.js} +18 -18
  111. package/dist/cdn/chunks/{SavedBlocksPickBar-B8WHk5mI.js.map → SavedBlocksPickBar-BPRaJBv3.js.map} +1 -1
  112. package/dist/cdn/chunks/TemplateSettings-ByZeBO34.js +209 -0
  113. package/dist/cdn/chunks/{TemplateSettings-CtrzzQWl.js.map → TemplateSettings-ByZeBO34.js.map} +1 -1
  114. package/dist/cdn/chunks/{TestEmailModal-DuZKYMWD.js → TestEmailModal-BUVTj3Ic.js} +54 -54
  115. package/dist/cdn/chunks/{TestEmailModal-DuZKYMWD.js.map → TestEmailModal-BUVTj3Ic.js.map} +1 -1
  116. package/dist/cdn/chunks/TestEmailPanel-BxutYoWg.js +35 -0
  117. package/dist/cdn/chunks/{TestEmailPanel-DERaCdpG.js.map → TestEmailPanel-BxutYoWg.js.map} +1 -1
  118. package/dist/cdn/chunks/TitleEditor-Ccv6uoTz.js +199 -0
  119. package/dist/cdn/chunks/{TitleEditor-CEgxjtUX.js.map → TitleEditor-Ccv6uoTz.js.map} +1 -1
  120. package/dist/cdn/chunks/ToggleSwitch-Ctdmj621.js +39 -0
  121. package/dist/cdn/chunks/ToggleSwitch-Ctdmj621.js.map +1 -0
  122. package/dist/cdn/chunks/{Toolbar-GFIZQHzw.js → Toolbar-DoprRgTn.js} +986 -987
  123. package/dist/cdn/chunks/{Toolbar-GFIZQHzw.js.map → Toolbar-DoprRgTn.js.map} +1 -1
  124. package/dist/cdn/chunks/{TplModal-DDrbWJcE.js → TplModal-BXQzmsJX.js} +21 -21
  125. package/dist/cdn/chunks/{TplModal-DDrbWJcE.js.map → TplModal-BXQzmsJX.js.map} +1 -1
  126. package/dist/cdn/chunks/{VersionHistoryMenu-MlxsUmuT.js → VersionHistoryMenu-BF2fNCvq.js} +41 -41
  127. package/dist/cdn/chunks/{VersionHistoryMenu-MlxsUmuT.js.map → VersionHistoryMenu-BF2fNCvq.js.map} +1 -1
  128. package/dist/cdn/chunks/VersionHistoryPanels-Dal0Uk69.js +48 -0
  129. package/dist/cdn/chunks/{VersionHistoryPanels-DVOV8QLv.js.map → VersionHistoryPanels-Dal0Uk69.js.map} +1 -1
  130. package/dist/cdn/chunks/{VersionPreviewBanner-BQwRKc6S.js → VersionPreviewBanner-BaGcn-b1.js} +12 -12
  131. package/dist/cdn/chunks/{VersionPreviewBanner-BQwRKc6S.js.map → VersionPreviewBanner-BaGcn-b1.js.map} +1 -1
  132. package/dist/cdn/chunks/WrapperBlock-DkQJtLz0.js +47 -0
  133. package/dist/cdn/chunks/{WrapperBlock-CFuP4R0c.js.map → WrapperBlock-DkQJtLz0.js.map} +1 -1
  134. package/dist/cdn/chunks/aiErrors-D5UOoYOt.js +43 -0
  135. package/dist/cdn/chunks/aiErrors-D5UOoYOt.js.map +1 -0
  136. package/dist/cdn/chunks/aiImageContext-BH4Ss1h3.js +50 -0
  137. package/dist/cdn/chunks/aiImageContext-BH4Ss1h3.js.map +1 -0
  138. package/dist/cdn/chunks/aiRewritePreview-DLGM05Ge.js +46 -0
  139. package/dist/cdn/chunks/aiRewritePreview-DLGM05Ge.js.map +1 -0
  140. package/dist/cdn/chunks/blockTypeIcons-ikZAmd6U.js +22 -0
  141. package/dist/cdn/chunks/{blockTypeIcons-BnAd8qsP.js.map → blockTypeIcons-ikZAmd6U.js.map} +1 -1
  142. package/dist/{ca-DSJwJ5ov.js → cdn/chunks/ca-C7mTzW1r.js} +132 -11
  143. package/dist/cdn/chunks/ca-C7mTzW1r.js.map +1 -0
  144. package/dist/cdn/chunks/{cloud-CI_fgDyy.js → createCloudRuntime-DpBWhrv3.js} +489 -593
  145. package/dist/cdn/chunks/createCloudRuntime-DpBWhrv3.js.map +1 -0
  146. package/dist/cdn/chunks/de-DBOTcDj2.js +22 -0
  147. package/dist/cdn/chunks/de-DBOTcDj2.js.map +1 -0
  148. package/dist/{de-CBE6O79z.js → cdn/chunks/de-DNuYQTmS.js} +132 -11
  149. package/dist/cdn/chunks/de-DNuYQTmS.js.map +1 -0
  150. package/dist/{dist-Bv_GBr2l.js → cdn/chunks/dist-Bo8Thh8v.js} +60 -58
  151. package/dist/cdn/chunks/{dist-Doy3r07H.js.map → dist-Bo8Thh8v.js.map} +1 -1
  152. package/dist/cdn/chunks/dist-S-rLGqax.js +406 -0
  153. package/dist/cdn/chunks/{dist-DdwjXLme.js.map → dist-S-rLGqax.js.map} +1 -1
  154. package/dist/cdn/chunks/{draggable-akeQH_JP.js → draggable-DZ0gwUJ6.js} +1822 -1728
  155. package/dist/cdn/chunks/draggable-DZ0gwUJ6.js.map +1 -0
  156. package/dist/cdn/chunks/{editor-modal-HJBy9kLj.js → editor-modal-CI6EfeMd.js} +884 -884
  157. package/dist/cdn/chunks/{editor-modal-HJBy9kLj.js.map → editor-modal-CI6EfeMd.js.map} +1 -1
  158. package/dist/cdn/chunks/en-CDhWRrF_.js +22 -0
  159. package/dist/cdn/chunks/en-CDhWRrF_.js.map +1 -0
  160. package/dist/{en-CDexnk0p.js → cdn/chunks/en-CW71OK66.js} +132 -11
  161. package/dist/cdn/chunks/en-CW71OK66.js.map +1 -0
  162. package/dist/cdn/chunks/en-ifvu6oPv.js +1 -0
  163. package/dist/{es-BE42B6uN.js → cdn/chunks/es-DdK7zQfi.js} +132 -11
  164. package/dist/cdn/chunks/es-DdK7zQfi.js.map +1 -0
  165. package/dist/cdn/chunks/{extensions-koOuDeZS.js → extensions-taJTZlLK.js} +59 -59
  166. package/dist/cdn/chunks/{extensions-koOuDeZS.js.map → extensions-taJTZlLK.js.map} +1 -1
  167. package/dist/{fr-DlJFPDQR.js → cdn/chunks/fr-Dz5Bgb7-.js} +132 -11
  168. package/dist/cdn/chunks/fr-Dz5Bgb7-.js.map +1 -0
  169. package/dist/cdn/chunks/{icons-CjlNV8xD.js → icons-DNX6StSs.js} +178 -145
  170. package/dist/cdn/chunks/icons-DNX6StSs.js.map +1 -0
  171. package/dist/{ja-CUT8gkNI.js → cdn/chunks/ja-Di-zJiT8.js} +132 -11
  172. package/dist/cdn/chunks/ja-Di-zJiT8.js.map +1 -0
  173. package/dist/cdn/chunks/keys-BTpmg2Tt.js +12 -0
  174. package/dist/cdn/chunks/keys-BTpmg2Tt.js.map +1 -0
  175. package/dist/{logger-BBlvSn6q.js → cdn/chunks/logger-Tj0RPskW.js} +7 -1
  176. package/dist/cdn/chunks/logger-Tj0RPskW.js.map +1 -0
  177. package/dist/{nl-bXWqqRyS.js → cdn/chunks/nl-CvVuHYFL.js} +132 -11
  178. package/dist/cdn/chunks/{nl-bXWqqRyS.js.map → nl-CvVuHYFL.js.map} +1 -1
  179. package/dist/cdn/chunks/normalizeMergeTagMarkup-DyePIGqu.js +199 -0
  180. package/dist/cdn/chunks/normalizeMergeTagMarkup-DyePIGqu.js.map +1 -0
  181. package/dist/cdn/chunks/{preRenderCustomBlocks-DqKbdTJ8.js → preRenderCustomBlocks-Dc-QLntG.js} +4 -4
  182. package/dist/cdn/chunks/{preRenderCustomBlocks-DqKbdTJ8.js.map → preRenderCustomBlocks-Dc-QLntG.js.map} +1 -1
  183. package/dist/cdn/chunks/pt-BR-CHM-ZKvE.js +22 -0
  184. package/dist/cdn/chunks/pt-BR-CHM-ZKvE.js.map +1 -0
  185. package/dist/{pt-BR-2_H4-wlb.js → cdn/chunks/pt-BR-ZhO4vgyq.js} +132 -11
  186. package/dist/cdn/chunks/pt-BR-ZhO4vgyq.js.map +1 -0
  187. package/dist/cdn/chunks/sanitizeRichTextHtml-DeISfLFr.js +62 -0
  188. package/dist/cdn/chunks/sanitizeRichTextHtml-DeISfLFr.js.map +1 -0
  189. package/dist/cdn/chunks/socialIcons-BBvsTwCV.js +2032 -0
  190. package/dist/cdn/chunks/socialIcons-BBvsTwCV.js.map +1 -0
  191. package/dist/{dist-DBG3nh3k.js → cdn/chunks/src-BNFnxfrA.js} +552 -350
  192. package/dist/cdn/chunks/src-BNFnxfrA.js.map +1 -0
  193. package/dist/cdn/chunks/{src-B77z1iw4.js → src-BcTUmgLe.js} +113 -113
  194. package/dist/cdn/chunks/{src-B77z1iw4.js.map → src-BcTUmgLe.js.map} +1 -1
  195. package/dist/cdn/chunks/src-Bs_yxk3h.js +4392 -0
  196. package/dist/cdn/chunks/src-Bs_yxk3h.js.map +1 -0
  197. package/dist/cdn/chunks/{tiptap-B1RfWFzB.js → tiptap-CtVrAViq.js} +43 -43
  198. package/dist/cdn/chunks/{tiptap-B1RfWFzB.js.map → tiptap-CtVrAViq.js.map} +1 -1
  199. package/dist/cdn/chunks/{useCloudI18n-kp07GQmk.js → useCloudI18n-AVXhzbhQ.js} +4 -4
  200. package/dist/cdn/chunks/{useCloudI18n-kp07GQmk.js.map → useCloudI18n-AVXhzbhQ.js.map} +1 -1
  201. package/dist/cdn/chunks/useEditorCore-CCVFi1YZ.js +2586 -0
  202. package/dist/cdn/chunks/useEditorCore-CCVFi1YZ.js.map +1 -0
  203. package/dist/cdn/chunks/useEditorRoot-CR5GjJD6.js +10 -0
  204. package/dist/cdn/chunks/{useEditorRoot-5SBqm90x.js.map → useEditorRoot-CR5GjJD6.js.map} +1 -1
  205. package/dist/cdn/chunks/{useI18n-DEqtEgOs.js → useI18n-CbVubQhM.js} +3 -3
  206. package/dist/cdn/chunks/{useI18n-DEqtEgOs.js.map → useI18n-CbVubQhM.js.map} +1 -1
  207. package/dist/cdn/chunks/{useLogicTag-X8bc5qNl.js → useLogicTag-B49Nc53Y.js} +5 -5
  208. package/dist/cdn/chunks/{useLogicTag-X8bc5qNl.js.map → useLogicTag-B49Nc53Y.js.map} +1 -1
  209. package/dist/cdn/chunks/{useMergeTag-DFoOexIQ.js → useMergeTag-B0KryMj8.js} +5 -5
  210. package/dist/cdn/chunks/{useMergeTag-DFoOexIQ.js.map → useMergeTag-B0KryMj8.js.map} +1 -1
  211. package/dist/cdn/chunks/{usePopoverPosition-Cz9-XiXR.js → usePopoverPosition-C829ps5i.js} +4 -4
  212. package/dist/cdn/chunks/{usePopoverPosition-Cz9-XiXR.js.map → usePopoverPosition-C829ps5i.js.map} +1 -1
  213. package/dist/cdn/chunks/useScrollToBlock-CAwvulog.js +51 -0
  214. package/dist/cdn/chunks/useScrollToBlock-CAwvulog.js.map +1 -0
  215. package/dist/cdn/chunks/{withCurrentFont-D-f61ghC.js → withCurrentFont-DFPXeVfG.js} +2 -2
  216. package/dist/cdn/chunks/{withCurrentFont-D-f61ghC.js.map → withCurrentFont-DFPXeVfG.js.map} +1 -1
  217. package/dist/cdn/editor.css +1 -1
  218. package/dist/cdn/editor.js +2151 -1480
  219. package/dist/cdn/editor.js.map +1 -1
  220. package/dist/{check-DQQzkmIC.js → check-yYsp5Xpk.js} +1 -1
  221. package/dist/{chevron-down-CIF4bdon.js → chevron-down-DTmD06_j.js} +1 -1
  222. package/dist/{chevron-right-Cg7Xu-ev.js → chevron-right-BSeYZOxc.js} +1 -1
  223. package/dist/{chevron-up-Csu7ISD-.js → chevron-up-BOApwrxi.js} +1 -1
  224. package/dist/{circle-alert-YUvIJAgY.js → circle-alert-BMszY8im.js} +1 -1
  225. package/dist/{clock-CnSIGKQW.js → clock-HADxnl6-.js} +1 -1
  226. package/dist/{cloud-YUYDtdHt.js → createCloudRuntime-DVQI_ReU.js} +474 -570
  227. package/dist/{createLucideIcon-BcP1sjdp.js → createLucideIcon-0lYYH3EW.js} +6 -6
  228. package/dist/de-DBOTcDj2.js +20 -0
  229. package/dist/{cdn/chunks/de-CBE6O79z.js → de-DNuYQTmS.js} +130 -13
  230. package/dist/{cdn/chunks/dist-Doy3r07H.js → dist-C7EtxNCb.js} +49 -51
  231. package/dist/{dist-CNqjHA8e.js → dist-C_dV9QAx.js} +130 -130
  232. package/dist/{cdn/chunks/dist-DdwjXLme.js → dist-DI4_YSnG.js} +111 -110
  233. package/dist/{cdn/chunks/src-CvLTYGdO.js → dist-DtOF3bDW.js} +446 -393
  234. package/dist/{editor-modal--7_9A6j-.js → editor-modal-Bzhl-PgI.js} +832 -834
  235. package/dist/en-CDhWRrF_.js +20 -0
  236. package/dist/{cdn/chunks/en-CDexnk0p.js → en-CW71OK66.js} +130 -13
  237. package/dist/en-DwV15ltA.js +1 -0
  238. package/dist/{cdn/chunks/es-BE42B6uN.js → es-DdK7zQfi.js} +130 -13
  239. package/dist/{extensions-zwsZlWjH.js → extensions-CdyweA50.js} +57 -57
  240. package/dist/{eye-B1bua-ck.js → eye-DWkSvYpj.js} +1 -1
  241. package/dist/{cdn/chunks/fr-DlJFPDQR.js → fr-Dz5Bgb7-.js} +130 -13
  242. package/dist/image-DesWjcZ4.js +28 -0
  243. package/dist/index.d.ts +361 -24
  244. package/dist/{info-x26nGOo2.js → info-ClWJGoZy.js} +1 -1
  245. package/dist/{cdn/chunks/ja-CUT8gkNI.js → ja-Di-zJiT8.js} +130 -13
  246. package/dist/keys-Zd9KWRD1.js +10 -0
  247. package/dist/{link-CezhndyR.js → link-BqRicFTA.js} +1 -1
  248. package/dist/{list-DQqdptI0.js → list-bojQr9bn.js} +1 -1
  249. package/dist/{loader-circle-DCEeoYoi.js → loader-circle-B2B8LbUu.js} +1 -1
  250. package/dist/{cdn/chunks/logger-ByvdoAwq.js → logger-k9Nbj3Cp.js} +5 -3
  251. package/dist/{message-circle-BLGzfv_7.js → message-circle-BEuiNsyZ.js} +1 -1
  252. package/dist/{cdn/chunks/nl-bXWqqRyS.js → nl-CvVuHYFL.js} +130 -13
  253. package/dist/normalizeMergeTagMarkup-P6SUBuPv.js +197 -0
  254. package/dist/{package-D_kEQCMU.js → package-DCROB4aM.js} +1 -1
  255. package/dist/{pencil-Dct8zGLy.js → pencil-CEotCKbf.js} +1 -1
  256. package/dist/{preRenderCustomBlocks-CtKJecE-.js → preRenderCustomBlocks-D8rr61_z.js} +4 -4
  257. package/dist/pt-BR-CHM-ZKvE.js +20 -0
  258. package/dist/{cdn/chunks/pt-BR-2_H4-wlb.js → pt-BR-ZhO4vgyq.js} +130 -13
  259. package/dist/{refresh-cw-tGMRDxr8.js → refresh-cw-C6M2mHNC.js} +12 -2
  260. package/dist/{runtime-dom.esm-bundler-DYn1z2Xf.js → runtime-dom.esm-bundler-B8WCZWUm.js} +134 -134
  261. package/dist/sanitizeRichTextHtml-DeISfLFr.js +60 -0
  262. package/dist/{search-Bm2cCQpe.js → search-Cy99zPYf.js} +1 -1
  263. package/dist/{send-sVLaKZ7f.js → send-BDLJFsf3.js} +1 -1
  264. package/dist/{smartphone-B2W81p02.js → smartphone-CVvQaNA4.js} +1 -1
  265. package/dist/{cdn/chunks/socialIcons-CkZSYpoG.js → socialIcons-Dd-jRiVe.js} +688 -693
  266. package/dist/{sparkles-a1qkBZ8X.js → sparkles-Ce0Qz0ox.js} +1 -1
  267. package/dist/square-BWlolnXe.js +15 -0
  268. package/dist/style.css +1 -1
  269. package/dist/templatical-editor.js +2114 -1422
  270. package/dist/{text-align-start-CTuwQ5YW.js → text-align-start-D1V5gPTy.js} +1 -1
  271. package/dist/{trash-I3D2peFQ.js → trash-CZfiUFmw.js} +1 -1
  272. package/dist/{triangle-alert-CenxmLRE.js → triangle-alert-CFDzyFC7.js} +1 -1
  273. package/dist/upload-BJfvdIrD.js +36 -0
  274. package/dist/{useCloudI18n-CGVEZV3o.js → useCloudI18n-Dcjua65H.js} +5 -5
  275. package/dist/{useEditorCore-DRbMRe8F.js → useEditorCore-BTLeAVlM.js} +1463 -1499
  276. package/dist/{useEditorRoot-BVm2-1N8.js → useEditorRoot-DUy67lJu.js} +2 -2
  277. package/dist/{useI18n-CSh4gO5c.js → useI18n-BdoY7xDE.js} +4 -4
  278. package/dist/{useLogicTag-zcI6BWIf.js → useLogicTag-DKLZ1T9H.js} +3 -3
  279. package/dist/{useMergeTag-C-iBLlp0.js → useMergeTag-Bhdx7AKk.js} +3 -3
  280. package/dist/{usePopoverPosition-CMcsMBtK.js → usePopoverPosition-BZea45XK.js} +2 -2
  281. package/dist/useScrollToBlock-FmNMALM_.js +74 -0
  282. package/dist/{vue.runtime.esm-bundler-DV0Wx4r_.js → vue.runtime.esm-bundler-DgFJ6GPG.js} +1428 -1332
  283. package/dist/{withCurrentFont-D62njRLu.js → withCurrentFont-BATJHNve.js} +1 -1
  284. package/dist/{x-KFQ4S-Kz.js → x-CZ0Js0hA.js} +1 -1
  285. package/package.json +14 -12
  286. package/dist/AiChatSidebar-CdjTb9ej.js +0 -230
  287. package/dist/AiFeatureMenu-DKm7VYCs.js +0 -57
  288. package/dist/CloudHeaderExtras-CI8RR9hG.js +0 -55
  289. package/dist/CommentsSidebar-J65znlrH.js +0 -500
  290. package/dist/DesignReferenceSidebar-BTwCFgz8.js +0 -279
  291. package/dist/IssuesPanel-DeeVsfG7.js +0 -117
  292. package/dist/ParagraphEditor-zLV44z-R.js +0 -797
  293. package/dist/SavedBlocksBrowserModal-B8DCFW7t.js +0 -360
  294. package/dist/TemplateScoringPanel-Ba9sgvjS.js +0 -273
  295. package/dist/TemplateSettings-Cu5X9DgA.js +0 -246
  296. package/dist/ToggleSwitch-DHweVJOr.js +0 -102
  297. package/dist/WrapperBlock-DiiaxpMb.js +0 -45
  298. package/dist/cdn/chunks/AiChatSidebar-yXJ85Zcg.js +0 -205
  299. package/dist/cdn/chunks/AiChatSidebar-yXJ85Zcg.js.map +0 -1
  300. package/dist/cdn/chunks/AiFeatureMenu-4ydjrhsQ.js +0 -57
  301. package/dist/cdn/chunks/AiFeatureMenu-4ydjrhsQ.js.map +0 -1
  302. package/dist/cdn/chunks/CloudHeaderExtras-DEkRww7n.js +0 -56
  303. package/dist/cdn/chunks/CloudHeaderExtras-DEkRww7n.js.map +0 -1
  304. package/dist/cdn/chunks/CloudPanels-XufhBZYF.js.map +0 -1
  305. package/dist/cdn/chunks/CollaborationNotices-CBvKEj1Q.js.map +0 -1
  306. package/dist/cdn/chunks/CommentsPanel-R8YLLO3v.js +0 -20
  307. package/dist/cdn/chunks/CommentsSidebar-96NZHVq3.js +0 -470
  308. package/dist/cdn/chunks/DesignReferenceSidebar-D14IIu_P.js +0 -229
  309. package/dist/cdn/chunks/DesignReferenceSidebar-D14IIu_P.js.map +0 -1
  310. package/dist/cdn/chunks/IssuesPanel-BoPiCLGc.js +0 -100
  311. package/dist/cdn/chunks/IssuesPanel-BoPiCLGc.js.map +0 -1
  312. package/dist/cdn/chunks/LogicTagInsertButton-BJ2t2vxC.js.map +0 -1
  313. package/dist/cdn/chunks/MediaEditModal-DD0SZ-S3.js.map +0 -1
  314. package/dist/cdn/chunks/MediaPanels-CkdJ_kGp.js +0 -45
  315. package/dist/cdn/chunks/ParagraphEditor-CJQjRHXV.js +0 -632
  316. package/dist/cdn/chunks/ParagraphEditor-CJQjRHXV.js.map +0 -1
  317. package/dist/cdn/chunks/SavedBlocksPanels-s_gxi1im.js +0 -38
  318. package/dist/cdn/chunks/TemplateScoringPanel-BBPnHILC.js +0 -237
  319. package/dist/cdn/chunks/TemplateScoringPanel-BBPnHILC.js.map +0 -1
  320. package/dist/cdn/chunks/TemplateSettings-CtrzzQWl.js +0 -208
  321. package/dist/cdn/chunks/TestEmailPanel-DERaCdpG.js +0 -35
  322. package/dist/cdn/chunks/TitleEditor-CEgxjtUX.js +0 -199
  323. package/dist/cdn/chunks/ToggleSwitch-DGQ7iRc-.js +0 -104
  324. package/dist/cdn/chunks/ToggleSwitch-DGQ7iRc-.js.map +0 -1
  325. package/dist/cdn/chunks/VersionHistoryPanels-DVOV8QLv.js +0 -48
  326. package/dist/cdn/chunks/WrapperBlock-CFuP4R0c.js +0 -47
  327. package/dist/cdn/chunks/blockTypeIcons-BnAd8qsP.js +0 -22
  328. package/dist/cdn/chunks/ca-DSJwJ5ov.js.map +0 -1
  329. package/dist/cdn/chunks/cloud-CI_fgDyy.js.map +0 -1
  330. package/dist/cdn/chunks/createCloudRuntime-DiYCJ21w.js +0 -358
  331. package/dist/cdn/chunks/createCloudRuntime-DiYCJ21w.js.map +0 -1
  332. package/dist/cdn/chunks/de-CBE6O79z.js.map +0 -1
  333. package/dist/cdn/chunks/de-D_atmUVB.js +0 -89
  334. package/dist/cdn/chunks/de-D_atmUVB.js.map +0 -1
  335. package/dist/cdn/chunks/draggable-akeQH_JP.js.map +0 -1
  336. package/dist/cdn/chunks/en-CDexnk0p.js.map +0 -1
  337. package/dist/cdn/chunks/en-DhJLnaBx.js +0 -89
  338. package/dist/cdn/chunks/en-DhJLnaBx.js.map +0 -1
  339. package/dist/cdn/chunks/en-Ve-PWSXu.js +0 -1
  340. package/dist/cdn/chunks/es-BE42B6uN.js.map +0 -1
  341. package/dist/cdn/chunks/fr-DlJFPDQR.js.map +0 -1
  342. package/dist/cdn/chunks/icons-CjlNV8xD.js.map +0 -1
  343. package/dist/cdn/chunks/ja-CUT8gkNI.js.map +0 -1
  344. package/dist/cdn/chunks/keys-UAWhQ3zW.js +0 -12
  345. package/dist/cdn/chunks/keys-UAWhQ3zW.js.map +0 -1
  346. package/dist/cdn/chunks/logger-ByvdoAwq.js.map +0 -1
  347. package/dist/cdn/chunks/pt-BR-2_H4-wlb.js.map +0 -1
  348. package/dist/cdn/chunks/pt-BR-BphMoUTw.js +0 -89
  349. package/dist/cdn/chunks/pt-BR-BphMoUTw.js.map +0 -1
  350. package/dist/cdn/chunks/socialIcons-CkZSYpoG.js.map +0 -1
  351. package/dist/cdn/chunks/src-B1e5SSYP.js +0 -1272
  352. package/dist/cdn/chunks/src-B1e5SSYP.js.map +0 -1
  353. package/dist/cdn/chunks/src-CvLTYGdO.js.map +0 -1
  354. package/dist/cdn/chunks/timeouts-o5Y9BuqI.js +0 -6
  355. package/dist/cdn/chunks/timeouts-o5Y9BuqI.js.map +0 -1
  356. package/dist/cdn/chunks/useAliveFlag-PuXh83UK.js +0 -12
  357. package/dist/cdn/chunks/useAliveFlag-PuXh83UK.js.map +0 -1
  358. package/dist/cdn/chunks/useEditorCore-DpCFvHg_.js +0 -2623
  359. package/dist/cdn/chunks/useEditorCore-DpCFvHg_.js.map +0 -1
  360. package/dist/cdn/chunks/useEditorRoot-5SBqm90x.js +0 -10
  361. package/dist/cdn/chunks/useScrollToBlock-MNzurEZV.js +0 -21
  362. package/dist/cdn/chunks/useScrollToBlock-MNzurEZV.js.map +0 -1
  363. package/dist/copy-CUC43md_.js +0 -19
  364. package/dist/createCloudRuntime-BMDRjL0k.js +0 -356
  365. package/dist/de-D_atmUVB.js +0 -87
  366. package/dist/dist-CCqn-RqE.js +0 -407
  367. package/dist/en-BHCMzqib.js +0 -1
  368. package/dist/en-DhJLnaBx.js +0 -87
  369. package/dist/image-up-BqiO7KCO.js +0 -27
  370. package/dist/keys-BymCnLHD.js +0 -10
  371. package/dist/plus-BDd0gTEm.js +0 -14
  372. package/dist/pt-BR-BphMoUTw.js +0 -87
  373. package/dist/shield-check-YhsbXfQc.js +0 -14
  374. package/dist/socialIcons-Bwv-49EB.js +0 -2167
  375. package/dist/timeouts-o5Y9BuqI.js +0 -4
  376. package/dist/upload-uU2cK0Ce.js +0 -21
  377. package/dist/useAliveFlag-BjP0Gxza.js +0 -10
  378. package/dist/useScrollToBlock-CdCQK9QQ.js +0 -47
@@ -1,1272 +0,0 @@
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
- import { t as f } from "./htmlparser-CDRsn-gn.js";
4
- //#region ../quality/src/types.ts
5
- var p = {
6
- altMaxLength: 125,
7
- minFontSize: 14,
8
- allCapsMinLength: 20,
9
- minTouchTargetPx: 44
10
- }, m = [
11
- "localhost",
12
- "127.0.0.1",
13
- "0.0.0.0",
14
- "*.local",
15
- "*.staging.*",
16
- "*.dev.*"
17
- ];
18
- //#endregion
19
- //#region ../quality/src/contrast.ts
20
- function h(e, t) {
21
- let n = g(e), r = g(t);
22
- if (!n || !r) return NaN;
23
- let i = v(n), a = v(r), o = Math.max(i, a), s = Math.min(i, a);
24
- return (o + .05) / (s + .05);
25
- }
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
- if (typeof e != "string") return null;
29
- let t = e.trim(), n = ae.exec(t);
30
- if (n) return n[4].toLowerCase() === "ff" ? {
31
- r: parseInt(n[1], 16),
32
- g: parseInt(n[2], 16),
33
- b: parseInt(n[3], 16)
34
- } : null;
35
- let r = ie.exec(t);
36
- if (r) return {
37
- r: parseInt(r[1], 16),
38
- g: parseInt(r[2], 16),
39
- b: parseInt(r[3], 16)
40
- };
41
- let i = re.exec(t);
42
- return i ? {
43
- r: parseInt(i[1] + i[1], 16),
44
- g: parseInt(i[2] + i[2], 16),
45
- b: parseInt(i[3] + i[3], 16)
46
- } : null;
47
- }
48
- function _(e) {
49
- return g(e ?? "") !== null;
50
- }
51
- function v({ r: e, g: t, b: n }) {
52
- let r = y(e / 255), i = y(t / 255), a = y(n / 255);
53
- return .2126 * r + .7152 * i + .0722 * a;
54
- }
55
- function y(e) {
56
- return e <= .03928 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4;
57
- }
58
- //#endregion
59
- //#region ../quality/src/walk.ts
60
- var b = "#ffffff", oe = "#1a1a1a";
61
- function x(e, t) {
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
- ...n,
66
- resolvedBackgroundColor: a
67
- }), u(e)) for (let t of e.children) i(t, {
68
- parent: e,
69
- section: n.section,
70
- columnIndex: null,
71
- depth: n.depth + 1,
72
- resolvedBackgroundColor: a,
73
- resolvedTextColor: n.resolvedTextColor
74
- });
75
- else l(e) && e.children.forEach((t, r) => {
76
- t.forEach((t) => i(t, {
77
- parent: e,
78
- section: e,
79
- columnIndex: r,
80
- depth: n.depth + 1,
81
- resolvedBackgroundColor: a,
82
- resolvedTextColor: n.resolvedTextColor
83
- }));
84
- });
85
- };
86
- for (let t of e.blocks) i(t, {
87
- parent: null,
88
- section: null,
89
- columnIndex: null,
90
- depth: 0,
91
- resolvedBackgroundColor: n,
92
- resolvedTextColor: r
93
- });
94
- }
95
- //#endregion
96
- //#region ../quality/src/run-rules.ts
97
- function S(e, t, n, r) {
98
- let i = [];
99
- function a(e, t, i) {
100
- let a = i.messageVariant ? `${e}.${i.messageVariant}` : e;
101
- return {
102
- blockId: i.blockId,
103
- ruleId: e,
104
- severity: t,
105
- message: r(n.locale, a, i.params),
106
- fix: i.fix
107
- };
108
- }
109
- x(e, (e, r) => {
110
- for (let o of t) {
111
- let t = n.severity(o.meta.id);
112
- if (t === "off" || !o.block) continue;
113
- let s = o.block(e, r, n);
114
- s !== null && i.push(a(o.meta.id, t, s));
115
- }
116
- });
117
- for (let r of t) {
118
- let t = n.severity(r.meta.id);
119
- if (t === "off" || !r.template) continue;
120
- let o = r.template(e, n);
121
- for (let e of o) i.push(a(r.meta.id, t, e));
122
- }
123
- return i;
124
- }
125
- function C(e) {
126
- let t = e.overrides ?? {}, n = {
127
- ...p,
128
- ...e.thresholds ?? {}
129
- }, r = { nonProductionHosts: e.nonProductionHosts ?? m }, i = e.locale ?? "en", a = e.rules;
130
- return {
131
- locale: i,
132
- rules: t,
133
- thresholds: n,
134
- links: r,
135
- severity: (e) => {
136
- let n = t[e];
137
- return n === void 0 ? a.find((t) => t.meta.id === e)?.meta.severity ?? "warning" : n;
138
- }
139
- };
140
- }
141
- function se(e, t, n) {
142
- return C({
143
- locale: e,
144
- rules: n,
145
- overrides: t.rules,
146
- thresholds: t.thresholds,
147
- nonProductionHosts: void 0
148
- });
149
- }
150
- function ce(e, t, n) {
151
- return C({
152
- locale: e,
153
- rules: n,
154
- overrides: t.rules,
155
- thresholds: void 0,
156
- nonProductionHosts: void 0
157
- });
158
- }
159
- function le(e, t, n) {
160
- return C({
161
- locale: e,
162
- rules: n,
163
- overrides: t.rules,
164
- thresholds: void 0,
165
- nonProductionHosts: t.nonProductionHosts
166
- });
167
- }
168
- //#endregion
169
- //#region ../quality/src/accessibility/messages/de.ts
170
- var ue = /* @__PURE__ */ e({ default: () => de }), de = {
171
- "a11y.img-missing-alt": "Bild ohne Alt-Text. Füge eine kurze Beschreibung hinzu oder markiere das Bild als dekorativ.",
172
- "a11y.img-alt-is-filename": "Alt-Text sieht wie ein Dateiname aus (\"{alt}\"). Beschreibe stattdessen kurz, was das Bild zeigt.",
173
- "a11y.img-alt-too-long": "Alt-Text ist {length} Zeichen lang; bleibe unter {max}.",
174
- "a11y.img-decorative-needs-empty-alt": "Dekoratives Bild hat Alt-Text. Entferne den Alt-Text oder hebe die Markierung als dekorativ auf.",
175
- "a11y.img-linked-no-context": "Verlinktes Bild beschreibt nur das Motiv, nicht das Linkziel. Nenne das Ziel (z. B. „Frühlingssale ansehen“).",
176
- "a11y.heading-empty": "Überschrift ist leer. Füge Text hinzu oder entferne den Block.",
177
- "a11y.heading-skip-level": "Überschrift springt von H{from} auf H{to}. Eine Ebene pro Schritt.",
178
- "a11y.heading-multiple-h1": "E-Mail enthält mehr als eine H1. Verwende H1 nur einmal für die Hauptüberschrift.",
179
- "a11y.link-empty": "Ein Link in diesem Block hat keinen Text und kein beschriebenes Bild.",
180
- "a11y.link-vague-text": "Link-Text „{text}“ ist unspezifisch. Beschreibe stattdessen das Ziel.",
181
- "a11y.link-href-empty": "Ein Link in diesem Block hat ein leeres oder „#“-href.",
182
- "a11y.link-target-blank-no-rel": "Link öffnet in neuem Tab, aber rel=\"noopener\" fehlt – ergänze es, damit das Ziel nicht auf window.opener zugreifen kann.",
183
- "a11y.link-nested-anchor": "Ein Link liegt innerhalb eines anderen Links. Verschachtelte Anker sind ungültiges HTML und werden von E-Mail-Clients unterschiedlich gerendert – flache einen einzigen Anker daraus.",
184
- "a11y.text-all-caps": "Längere Texte in Großbuchstaben sind schwerer lesbar. Verwende Groß- und Kleinschreibung.",
185
- "a11y.text-justified": "Blocksatz dehnt die Wortabstände zu ungleichmäßigen „Flüssen“ aus Leerraum, die für Menschen mit Legasthenie und Sehbeeinträchtigung am schwersten zu verfolgen sind. Verwende linksbündigen Text.",
186
- "a11y.text-low-contrast": "Überschriftskontrast beträgt {ratio}:1; WCAG AA verlangt mindestens {required}:1.",
187
- "a11y.text-too-small": "Text ist {size}px; mindestens {min}px verwenden.",
188
- "a11y.button-vague-label": "Button-Beschriftung „{text}“ ist unspezifisch. Beschreibe die Aktion.",
189
- "a11y.button-touch-target": "Button ist etwa {height}px hoch; mindestens {min}px verwenden, um Fehltipper auf Mobilgeräten zu vermeiden.",
190
- "a11y.button-low-contrast": "Buttontextkontrast beträgt {ratio}:1; WCAG AA verlangt mindestens {required}:1.",
191
- "a11y.missing-preheader": "Kein Preheader-Text gesetzt. Postfächer zeigen sonst Bruchstücke des ersten Blocks an."
192
- }, fe = /* @__PURE__ */ e({ default: () => w }), w = {
193
- "a11y.img-missing-alt": "Image is missing alt text. Add a short description, or mark the image as decorative.",
194
- "a11y.img-alt-is-filename": "Alt text looks like a filename (\"{alt}\"). Replace with a short description of what the image conveys.",
195
- "a11y.img-alt-too-long": "Alt text is {length} characters; aim for under {max}.",
196
- "a11y.img-decorative-needs-empty-alt": "Decorative image has alt text. Either clear the alt text or unmark the image as decorative.",
197
- "a11y.img-linked-no-context": "Linked image alt describes the image but not the link destination. Include where the link goes (e.g. 'Buy spring sale').",
198
- "a11y.heading-empty": "Heading is empty. Add text or remove the block.",
199
- "a11y.heading-skip-level": "Heading jumps from H{from} to H{to}. Step one level at a time.",
200
- "a11y.heading-multiple-h1": "Email has more than one H1. Use H1 once for the main heading.",
201
- "a11y.link-empty": "A link in this block has no text and no described image.",
202
- "a11y.link-vague-text": "Link text \"{text}\" is vague. Describe the destination instead.",
203
- "a11y.link-href-empty": "A link in this block has an empty or '#' href.",
204
- "a11y.link-target-blank-no-rel": "Link opens in a new tab but is missing rel=\"noopener\" — add it to prevent the destination from accessing window.opener.",
205
- "a11y.link-nested-anchor": "A link is nested inside another link. Nested anchors are invalid HTML and clients render them inconsistently — flatten to a single anchor.",
206
- "a11y.text-all-caps": "Long all-caps text is harder to read for everyone. Use sentence case.",
207
- "a11y.text-justified": "Justified text stretches word spacing into uneven 'rivers' of white space, which is hardest to track for dyslexic and low-vision readers. Use left-aligned text.",
208
- "a11y.text-low-contrast": "Heading contrast is {ratio}:1; WCAG AA requires at least {required}:1.",
209
- "a11y.text-too-small": "Text is {size}px; aim for at least {min}px.",
210
- "a11y.button-vague-label": "Button label \"{text}\" is vague. Describe the action.",
211
- "a11y.button-touch-target": "Button is roughly {height}px tall; aim for at least {min}px to avoid mis-taps on mobile.",
212
- "a11y.button-low-contrast": "Button text contrast is {ratio}:1; WCAG AA requires at least {required}:1.",
213
- "a11y.missing-preheader": "No preheader text set. Inboxes will fall back to fragments of the first block."
214
- }, T = /* #__PURE__ */ Object.assign({
215
- "./de.ts": ue,
216
- "./en.ts": fe
217
- }), E = {};
218
- for (let e in T) {
219
- let t = /\.\/([^/]+)\.ts$/.exec(e);
220
- if (!t) continue;
221
- let n = t[1];
222
- n !== "index" && (E[n] = T[e].default);
223
- }
224
- function pe(e) {
225
- return E[e.split("-")[0]?.toLowerCase() ?? "en"] ?? E.en ?? w;
226
- }
227
- function me(e, t, n) {
228
- let r = pe(e)[t] ?? w[t];
229
- return n ? r.replace(/\{(\w+)\}/g, (e, t) => {
230
- let r = n[t];
231
- return r === void 0 ? `{${t}}` : String(r);
232
- }) : r;
233
- }
234
- var he = {
235
- meta: {
236
- id: "a11y.img-missing-alt",
237
- severity: "error"
238
- },
239
- block(e) {
240
- return !d(e) || e.decorative === !0 || (e.alt?.trim() ?? "") !== "" || (e.src ?? "").trim() === "" ? null : { blockId: e.id };
241
- }
242
- }, ge = {
243
- id: "a11y.img-alt-is-filename",
244
- severity: "warning"
245
- }, _e = [
246
- /\.(jpe?g|png|gif|webp|svg)$/i,
247
- /^IMG[_-]?\d+/i,
248
- /^Untitled/i,
249
- /^Screen[\s_-]?Shot/i,
250
- /^DSC[_-]?\d+/i
251
- ], ve = {
252
- meta: ge,
253
- block(e) {
254
- if (!d(e) || e.decorative === !0) return null;
255
- let t = e.alt?.trim() ?? "";
256
- return t === "" || !_e.some((e) => e.test(t)) ? null : {
257
- blockId: e.id,
258
- params: { alt: t }
259
- };
260
- }
261
- }, ye = {
262
- meta: {
263
- id: "a11y.img-alt-too-long",
264
- severity: "warning"
265
- },
266
- block(e, t, n) {
267
- if (!d(e) || e.decorative === !0) return null;
268
- let r = e.alt ?? "";
269
- return r.length <= n.thresholds.altMaxLength ? null : {
270
- blockId: e.id,
271
- params: {
272
- length: r.length,
273
- max: n.thresholds.altMaxLength
274
- }
275
- };
276
- }
277
- }, be = {
278
- meta: {
279
- id: "a11y.img-decorative-needs-empty-alt",
280
- severity: "info"
281
- },
282
- block(e) {
283
- return !d(e) || e.decorative !== !0 || (e.alt ?? "").trim() === "" ? null : {
284
- blockId: e.id,
285
- fix: {
286
- description: "Clear alt text",
287
- apply: (t) => t.updateBlock(e.id, { alt: "" })
288
- }
289
- };
290
- }
291
- }, xe = /* @__PURE__ */ e({ default: () => Se }), Se = {
292
- vagueLinkText: [
293
- "hier klicken",
294
- "hier",
295
- "mehr lesen",
296
- "mehr",
297
- "weiter",
298
- "weiterlesen",
299
- "siehe mehr",
300
- "dies",
301
- "dieser link",
302
- "link",
303
- "klick"
304
- ],
305
- vagueButtonLabels: [
306
- "hier klicken",
307
- "klicken",
308
- "senden",
309
- "los",
310
- "ok",
311
- "okay",
312
- "ja",
313
- "nein"
314
- ],
315
- linkedImageActionHints: [
316
- "kaufen",
317
- "shoppen",
318
- "ansehen",
319
- "lesen",
320
- "lernen",
321
- "öffnen",
322
- "los",
323
- "sehen",
324
- "entdecken",
325
- "erkunden",
326
- "stöbern",
327
- "herunterladen",
328
- "holen",
329
- "abholen",
330
- "einlösen",
331
- "anschauen",
332
- "jetzt"
333
- ]
334
- }, Ce = /* @__PURE__ */ e({ default: () => we }), we = {
335
- vagueLinkText: [
336
- "click here",
337
- "here",
338
- "read more",
339
- "more",
340
- "learn more",
341
- "see more",
342
- "this",
343
- "this link",
344
- "link",
345
- "click"
346
- ],
347
- vagueButtonLabels: [
348
- "click here",
349
- "click",
350
- "submit",
351
- "go",
352
- "ok",
353
- "okay",
354
- "yes",
355
- "no"
356
- ],
357
- linkedImageActionHints: [
358
- "buy",
359
- "shop",
360
- "view",
361
- "read",
362
- "learn",
363
- "open",
364
- "go",
365
- "see",
366
- "explore",
367
- "discover",
368
- "browse",
369
- "download",
370
- "get",
371
- "claim",
372
- "redeem",
373
- "watch"
374
- ]
375
- }, D = /* #__PURE__ */ Object.assign({
376
- "./de.ts": xe,
377
- "./en.ts": Ce
378
- }), O = {};
379
- for (let e in D) {
380
- let t = /\.\/([^/]+)\.ts$/.exec(e);
381
- if (!t) continue;
382
- let n = t[1];
383
- n !== "index" && (O[n] = D[e].default);
384
- }
385
- function k(e) {
386
- return Te;
387
- }
388
- function A(e) {
389
- let t = /* @__PURE__ */ new Set();
390
- for (let n of Object.values(O)) for (let r of e(n)) t.add(r);
391
- return Array.from(t);
392
- }
393
- var Te = {
394
- vagueLinkText: A((e) => e.vagueLinkText),
395
- vagueButtonLabels: A((e) => e.vagueButtonLabels),
396
- linkedImageActionHints: A((e) => e.linkedImageActionHints)
397
- };
398
- function j(e) {
399
- return e.toLowerCase().replace(/\s+/g, " ").replace(/^[^\p{L}\p{N}]+|[^\p{L}\p{N}]+$/gu, "").trim();
400
- }
401
- var Ee = {
402
- meta: {
403
- id: "a11y.img-linked-no-context",
404
- severity: "warning"
405
- },
406
- block(e, t, n) {
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 };
412
- }
413
- };
414
- //#endregion
415
- //#region ../quality/src/html-utils.ts
416
- function M(e) {
417
- let t = [], n = null, r = "", i = () => {
418
- n !== null && (n.text = r.trim(), t.push(n), n = null, r = "");
419
- }, a = new f({
420
- onopentag(e, t) {
421
- e === "a" ? (i(), n = {
422
- href: t.href ?? "",
423
- text: "",
424
- target: t.target ?? null,
425
- rel: t.rel ?? null,
426
- hasImageWithAlt: !1
427
- }) : e === "img" && n !== null && (t.alt ?? "").trim() !== "" && (n.hasImageWithAlt = !0);
428
- },
429
- ontext(e) {
430
- n !== null && (r += e);
431
- },
432
- onclosetag(e) {
433
- e === "a" && i();
434
- }
435
- });
436
- return a.write(e), a.end(), i(), t;
437
- }
438
- function De(e) {
439
- let t = Oe(e).matchAll(/<\/?a\b[^<>]*>/gi), n = 0;
440
- for (let e of t) if (e[0].startsWith("</")) n > 0 && n--;
441
- else {
442
- if (n > 0) return !0;
443
- n++;
444
- }
445
- return !1;
446
- }
447
- function Oe(e) {
448
- let t = "", n = 0;
449
- for (; n < e.length;) {
450
- let r = e.indexOf("<!--", n);
451
- if (r === -1) {
452
- t += e.substring(n);
453
- break;
454
- }
455
- t += e.substring(n, r);
456
- let i = e.indexOf("-->", r + 4);
457
- if (i === -1) break;
458
- n = i + 3;
459
- }
460
- return t;
461
- }
462
- function N(e) {
463
- let t = "", n = new f({ ontext(e) {
464
- t += e;
465
- } });
466
- return n.write(e), n.end(), t.trim();
467
- }
468
- var ke = {
469
- meta: {
470
- id: "a11y.heading-empty",
471
- severity: "error"
472
- },
473
- block(e) {
474
- return !s(e) || N(e.content ?? "") !== "" ? null : { blockId: e.id };
475
- }
476
- }, Ae = {
477
- id: "a11y.heading-skip-level",
478
- severity: "error"
479
- };
480
- function P(e, t) {
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);
483
- }
484
- var je = {
485
- meta: Ae,
486
- template(e) {
487
- let t = [];
488
- P(e.blocks, t);
489
- let n = [], r = 0;
490
- for (let e of t) r !== 0 && e.level > r + 1 && n.push({
491
- blockId: e.id,
492
- params: {
493
- from: r,
494
- to: e.level
495
- }
496
- }), r = e.level;
497
- return n;
498
- }
499
- }, Me = {
500
- id: "a11y.heading-multiple-h1",
501
- severity: "warning"
502
- };
503
- function F(e, t) {
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);
506
- }
507
- var Ne = {
508
- meta: Me,
509
- template(e) {
510
- let t = [];
511
- F(e.blocks, t);
512
- let n = t.filter((e) => e.level === 1);
513
- return n.length <= 1 ? [] : n.slice(1).map((e) => ({ blockId: e.id }));
514
- }
515
- }, Pe = {
516
- id: "a11y.link-empty",
517
- severity: "error"
518
- };
519
- function Fe(e) {
520
- return a(e) || s(e) ? e.content : null;
521
- }
522
- var Ie = {
523
- meta: Pe,
524
- block(e) {
525
- let t = Fe(e);
526
- return t === null || !M(t).find((e) => e.text === "" && !e.hasImageWithAlt) ? null : { blockId: e.id };
527
- }
528
- }, Le = {
529
- id: "a11y.link-vague-text",
530
- severity: "warning"
531
- };
532
- function Re(e) {
533
- return a(e) || s(e) ? e.content : null;
534
- }
535
- var ze = {
536
- meta: Le,
537
- block(e, t, n) {
538
- let r = Re(e);
539
- if (r === null) return null;
540
- let i = k(n.locale).vagueLinkText, a = M(r).find((e) => {
541
- let t = j(e.text);
542
- return t !== "" && i.includes(t);
543
- });
544
- return a ? {
545
- blockId: e.id,
546
- params: { text: a.text }
547
- } : null;
548
- }
549
- }, Be = {
550
- id: "a11y.link-href-empty",
551
- severity: "error"
552
- };
553
- function Ve(e) {
554
- return a(e) || s(e) ? e.content : null;
555
- }
556
- var He = {
557
- meta: Be,
558
- block(e) {
559
- let t = Ve(e);
560
- return t === null || !M(t).find((e) => {
561
- let t = e.href.trim();
562
- return t === "" || t === "#";
563
- }) ? null : { blockId: e.id };
564
- }
565
- }, Ue = {
566
- id: "a11y.link-target-blank-no-rel",
567
- severity: "warning"
568
- };
569
- function We(e) {
570
- return a(e) || s(e) ? e.content : null;
571
- }
572
- function Ge(e) {
573
- if (e === null) return !1;
574
- let t = e.toLowerCase().split(/\s+/);
575
- return t.includes("noopener") || t.includes("noreferrer");
576
- }
577
- var Ke = {
578
- meta: Ue,
579
- block(e) {
580
- let t = We(e);
581
- return t === null || !M(t).find((e) => e.target === "_blank" && !Ge(e.rel)) ? null : {
582
- blockId: e.id,
583
- fix: {
584
- description: "Add rel=\"noopener\"",
585
- apply: (t) => {
586
- if (!a(e) && !s(e)) return;
587
- let n = Ye(e.content ?? "");
588
- t.updateBlock(e.id, { content: n });
589
- }
590
- }
591
- };
592
- }
593
- }, I = /([^\s"'>/=]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'=<>`]+)))?/g;
594
- function qe(e) {
595
- let t = [], n = new RegExp(I.source, I.flags), r;
596
- for (; (r = n.exec(e)) !== null;) t.push({
597
- raw: r[0],
598
- name: r[1],
599
- value: r[2] ?? r[3] ?? r[4] ?? null,
600
- start: r.index
601
- });
602
- return t;
603
- }
604
- function Je(e) {
605
- return e.some((e) => e.name.toLowerCase() === "target" && e.value !== null && e.value.toLowerCase() === "_blank");
606
- }
607
- function Ye(e) {
608
- return e.replace(/<a\b([^>]*)>/gi, (e, t) => {
609
- let n = qe(t);
610
- if (!Je(n)) return e;
611
- let r = n.find((e) => e.name.toLowerCase() === "rel");
612
- if (r) {
613
- let n = (r.value ?? "").toLowerCase().split(/\s+/);
614
- if (n.includes("noopener") || n.includes("noreferrer")) return e;
615
- let i = `${r.value ?? ""} noopener`.trim();
616
- return `<a${t.slice(0, r.start)}rel="${i}"${t.slice(r.start + r.raw.length)}>`;
617
- }
618
- return `<a${t} rel="noopener">`;
619
- });
620
- }
621
- //#endregion
622
- //#region ../quality/src/accessibility/rules/link-nested-anchor.ts
623
- var Xe = {
624
- id: "a11y.link-nested-anchor",
625
- severity: "error"
626
- };
627
- function L(e) {
628
- return a(e) || s(e) ? e.content : null;
629
- }
630
- var Ze = {
631
- meta: Xe,
632
- block(e) {
633
- let t = L(e);
634
- return t === null || !De(t) ? null : { blockId: e.id };
635
- }
636
- }, Qe = {
637
- meta: {
638
- id: "a11y.text-all-caps",
639
- severity: "warning"
640
- },
641
- block(e, t, n) {
642
- if (!a(e) && !s(e)) return null;
643
- let r = N(e.content ?? "").replace(/[^\p{L}]/gu, "");
644
- return r.length < n.thresholds.allCapsMinLength || ![...r].some((e) => e.toLocaleLowerCase() !== e.toLocaleUpperCase()) || r !== r.toLocaleUpperCase() ? null : { blockId: e.id };
645
- }
646
- }, $e = {
647
- id: "a11y.text-justified",
648
- severity: "warning"
649
- }, et = /(^|;)\s*text-align\s*:\s*([^;]*)/i, R = /\sstyle\s*=\s*(?:"([^"]*)"|'([^']*)')/gi;
650
- function tt(e) {
651
- let t = [], n = new RegExp(R.source, R.flags), r;
652
- for (; (r = n.exec(e)) !== null;) t.push(r[1] ?? r[2] ?? "");
653
- return t;
654
- }
655
- function z(e) {
656
- let t = et.exec(e);
657
- return t !== null && t[2].trim().toLowerCase() === "justify";
658
- }
659
- function nt(e) {
660
- return e.split(";").filter((e) => !/^\s*text-align\s*:/i.test(e)).map((e) => e.trim()).filter((e) => e !== "").join("; ");
661
- }
662
- function rt(e) {
663
- return e.replace(/\sstyle\s*=\s*(?:"([^"]*)"|'([^']*)')/gi, (e, t, n) => {
664
- let r = t ?? n ?? "";
665
- if (!z(r)) return e;
666
- let i = nt(r);
667
- return i === "" ? "" : ` style="${i}"`;
668
- });
669
- }
670
- var it = {
671
- meta: $e,
672
- block(e) {
673
- return !a(e) || !tt(e.content ?? "").some(z) ? null : {
674
- blockId: e.id,
675
- fix: {
676
- description: "Remove justified alignment",
677
- apply: (t) => {
678
- a(e) && t.updateBlock(e.id, { content: rt(e.content ?? "") });
679
- }
680
- }
681
- };
682
- }
683
- }, at = {
684
- meta: {
685
- id: "a11y.text-low-contrast",
686
- severity: "error"
687
- },
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);
693
- return Number.isNaN(a) || a >= i ? null : {
694
- blockId: e.id,
695
- params: {
696
- ratio: a.toFixed(2),
697
- required: i
698
- }
699
- };
700
- }
701
- }, ot = {
702
- id: "a11y.text-too-small",
703
- severity: "warning"
704
- };
705
- function st(e) {
706
- return c(e) || ne(e) ? e.fontSize : null;
707
- }
708
- //#endregion
709
- //#region ../quality/src/accessibility/index.ts
710
- var B = [
711
- he,
712
- ve,
713
- ye,
714
- be,
715
- Ee,
716
- ke,
717
- je,
718
- Ne,
719
- Ie,
720
- ze,
721
- He,
722
- Ke,
723
- Ze,
724
- Qe,
725
- it,
726
- at,
727
- {
728
- meta: ot,
729
- block(e, t, n) {
730
- let r = st(e);
731
- return r === null || r >= n.thresholds.minFontSize ? null : {
732
- blockId: e.id,
733
- params: {
734
- size: r,
735
- min: n.thresholds.minFontSize
736
- }
737
- };
738
- }
739
- },
740
- {
741
- meta: {
742
- id: "a11y.button-vague-label",
743
- severity: "warning"
744
- },
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 : {
749
- blockId: e.id,
750
- params: { text: e.text }
751
- };
752
- }
753
- },
754
- {
755
- meta: {
756
- id: "a11y.button-touch-target",
757
- severity: "warning"
758
- },
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 : {
765
- blockId: e.id,
766
- params: {
767
- height: Math.round(a),
768
- min: r.thresholds.minTouchTargetPx
769
- }
770
- };
771
- }
772
- },
773
- {
774
- meta: {
775
- id: "a11y.button-low-contrast",
776
- severity: "error"
777
- },
778
- block(e) {
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 : {
784
- blockId: e.id,
785
- params: {
786
- ratio: n.toFixed(2),
787
- required: r
788
- }
789
- };
790
- }
791
- },
792
- {
793
- meta: {
794
- id: "a11y.missing-preheader",
795
- severity: "info"
796
- },
797
- template(e) {
798
- return (e.settings.preheaderText?.trim() ?? "") === "" ? [{ blockId: null }] : [];
799
- }
800
- }
801
- ];
802
- function ct(e, t = {}) {
803
- return t.disabled === !0 || t.accessibility === !1 ? [] : S(e, B, se(t.locale, t.accessibility ?? {}, B), (e, t, n) => me(e, t, n));
804
- }
805
- //#endregion
806
- //#region ../quality/src/structure/messages/de.ts
807
- var lt = /* @__PURE__ */ e({ default: () => ut }), ut = {
808
- "structure.duplicate-block-id": "Block-ID erscheint {count}-mal im Baum. Jeder Block muss eine eindeutige ID haben.",
809
- "structure.section-column-mismatch": "Sektion verwendet Layout „{layout}\" (erwartet {expected} Spalten), hat aber {actual}. Deutet auf beschädigten Zustand hin.",
810
- "structure.nested-section": "Sektion ist in einer anderen Sektion verschachtelt. Sektionen können nicht verschachtelt werden – der Renderer wird sich falsch verhalten.",
811
- "structure.empty-section": "Sektion enthält keine Blöcke. Entferne sie oder füge Inhalt hinzu.",
812
- "structure.empty-column": "Spalte {columnIndex} dieser Sektion ist leer. Füge Inhalt hinzu oder reduziere die Spaltenanzahl.",
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.",
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 = {
819
- "structure.duplicate-block-id": "Block id appears {count} times in the tree. Each block must have a unique id.",
820
- "structure.section-column-mismatch": "Section uses layout \"{layout}\" (expects {expected} columns) but has {actual}. Indicates corrupted state.",
821
- "structure.nested-section": "Section is nested inside another section. Sections cannot nest — the renderer will misbehave.",
822
- "structure.empty-section": "Section has no blocks. Remove it or add content.",
823
- "structure.empty-column": "Column {columnIndex} of this section is empty. Add content or reduce the column count.",
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.",
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({
830
- "./de.ts": lt,
831
- "./en.ts": dt
832
- }), U = {};
833
- for (let e in H) {
834
- let t = /\.\/([^/]+)\.ts$/.exec(e);
835
- if (!t) continue;
836
- let n = t[1];
837
- n !== "index" && (U[n] = H[e].default);
838
- }
839
- function ft(e) {
840
- return U[e.split("-")[0]?.toLowerCase() ?? "en"] ?? U.en ?? V;
841
- }
842
- function pt(e, t, n) {
843
- let r = ft(e)[t] ?? V[t];
844
- return n ? r.replace(/\{(\w+)\}/g, (e, t) => {
845
- let r = n[t];
846
- return r === void 0 ? `{${t}}` : String(r);
847
- }) : r;
848
- }
849
- //#endregion
850
- //#region ../quality/src/structure/rules/duplicate-block-id.ts
851
- var mt = {
852
- id: "structure.duplicate-block-id",
853
- severity: "error"
854
- };
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);
857
- }
858
- var ht = {
859
- meta: mt,
860
- template(e) {
861
- let t = /* @__PURE__ */ new Map();
862
- W(e.blocks, t);
863
- let n = [];
864
- for (let [e, r] of t) r > 1 && n.push({
865
- blockId: e,
866
- params: { count: r }
867
- });
868
- return n;
869
- }
870
- }, gt = {
871
- id: "structure.empty-column",
872
- severity: "warning"
873
- };
874
- function G(e, t) {
875
- for (let n of e) {
876
- if (!l(n)) continue;
877
- let e = n;
878
- e.children.length > 1 && e.children.forEach((n, r) => {
879
- n.length === 0 && t.push({
880
- blockId: e.id,
881
- params: { columnIndex: r + 1 }
882
- });
883
- });
884
- for (let n of e.children) G(n, t);
885
- }
886
- }
887
- var _t = {
888
- meta: gt,
889
- template(e) {
890
- let t = [];
891
- return G(e.blocks, t), t;
892
- }
893
- }, vt = {
894
- id: "structure.empty-section",
895
- severity: "warning"
896
- };
897
- function yt(e) {
898
- return e.children.length === 0 || e.children.every((e) => e.length === 0);
899
- }
900
- var bt = {
901
- meta: vt,
902
- block(e) {
903
- if (!l(e)) return null;
904
- let t = e;
905
- return yt(t) ? {
906
- blockId: t.id,
907
- fix: {
908
- description: "Remove the empty section",
909
- apply: (e) => {
910
- e.removeBlock(t.id);
911
- }
912
- }
913
- } : null;
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
- }
933
- };
934
- //#endregion
935
- //#region ../quality/src/structure/band.ts
936
- function K(e, t) {
937
- return e.wrapper ? e.wrapper : t.parent && u(t.parent) ? {
938
- backgroundColor: t.parent.styles?.backgroundColor,
939
- backgroundImage: t.parent.backgroundImage
940
- } : null;
941
- }
942
- function St(e) {
943
- if (typeof e != "string") return !1;
944
- let t = e.trim().toLowerCase();
945
- return t !== "" && t !== "transparent";
946
- }
947
- var Ct = {
948
- meta: {
949
- id: "structure.nested-background-image",
950
- severity: "warning"
951
- },
952
- block(e, t) {
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 };
956
- }
957
- }, wt = {
958
- meta: {
959
- id: "structure.nested-section",
960
- severity: "error"
961
- },
962
- block(e, t) {
963
- return !l(e) || t.section === null ? null : {
964
- blockId: e.id,
965
- params: { parentId: t.section.id }
966
- };
967
- }
968
- }, Tt = {
969
- id: "structure.section-column-mismatch",
970
- severity: "error"
971
- };
972
- function Et(e) {
973
- return e === "1" ? 1 : e === "3" ? 3 : 2;
974
- }
975
- //#endregion
976
- //#region ../quality/src/structure/index.ts
977
- var q = [
978
- ht,
979
- bt,
980
- _t,
981
- wt,
982
- {
983
- meta: Tt,
984
- block(e) {
985
- if (!l(e)) return null;
986
- let t = e, n = Et(t.columns), r = t.children.length;
987
- return r === n ? null : {
988
- blockId: t.id,
989
- params: {
990
- layout: t.columns,
991
- expected: n,
992
- actual: r
993
- }
994
- };
995
- }
996
- },
997
- {
998
- meta: {
999
- id: "structure.wrapper-color-over-background-image",
1000
- severity: "warning"
1001
- },
1002
- block(e, t) {
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 };
1006
- }
1007
- },
1008
- Ct,
1009
- xt
1010
- ];
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));
1013
- }
1014
- //#endregion
1015
- //#region ../quality/src/links/messages/de.ts
1016
- var Ot = /* @__PURE__ */ e({ default: () => kt }), kt = {
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.",
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.",
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).",
1020
- "link.malformed-tel": "Der tel:-Link enthält Zeichen, die keine Ziffern, +, Leerzeichen, Bindestriche, Klammern oder Punkte sind.",
1021
- "link.localhost-or-staging": "Der URL-Host „{host}\" entspricht einem Nicht-Produktionsmuster. Ersetze ihn vor dem Versand durch die Produktions-URL.",
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://…)."
1023
- }, At = /* @__PURE__ */ e({ default: () => J }), J = {
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.",
1025
- "link.unsupported-protocol": "URL uses the \"{protocol}\" protocol, which most email clients do not support. Use http, https, mailto, tel, or sms.",
1026
- "link.malformed-mailto": "mailto: link is malformed. Expected a single recipient address before any query string (e.g. mailto:hello@example.com).",
1027
- "link.malformed-tel": "tel: link contains characters that are not digits, +, spaces, dashes, parentheses, or dots.",
1028
- "link.localhost-or-staging": "URL host \"{host}\" matches a non-production pattern. Replace with the production URL before sending.",
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://…)."
1030
- }, Y = /* #__PURE__ */ Object.assign({
1031
- "./de.ts": Ot,
1032
- "./en.ts": At
1033
- }), X = {};
1034
- for (let e in Y) {
1035
- let t = /\.\/([^/]+)\.ts$/.exec(e);
1036
- if (!t) continue;
1037
- let n = t[1];
1038
- n !== "index" && (X[n] = Y[e].default);
1039
- }
1040
- function jt(e) {
1041
- return X[e.split("-")[0]?.toLowerCase() ?? "en"] ?? X.en ?? J;
1042
- }
1043
- function Mt(e, t, n) {
1044
- let r = jt(e)[t] ?? J[t];
1045
- return n ? r.replace(/\{(\w+)\}/g, (e, t) => {
1046
- let r = n[t];
1047
- return r === void 0 ? `{${t}}` : String(r);
1048
- }) : r;
1049
- }
1050
- //#endregion
1051
- //#region ../quality/src/url-walker.ts
1052
- function Z(e) {
1053
- let n = [];
1054
- return x(e, (e) => {
1055
- if (s(e) || a(e) || te(e)) for (let t of M(e.content)) n.push({
1056
- url: t.href,
1057
- blockId: e.id,
1058
- source: "anchor",
1059
- label: t.text
1060
- });
1061
- else if (t(e)) n.push({
1062
- url: e.url,
1063
- blockId: e.id,
1064
- source: "button",
1065
- label: e.text
1066
- });
1067
- else if (d(e)) e.linkUrl && e.linkUrl !== "" && n.push({
1068
- url: e.linkUrl,
1069
- blockId: e.id,
1070
- source: "image-link",
1071
- label: e.alt || void 0
1072
- });
1073
- else if (ee(e)) n.push({
1074
- url: e.url,
1075
- blockId: e.id,
1076
- source: "video",
1077
- label: e.alt || void 0
1078
- });
1079
- else if (c(e)) for (let t of e.items) n.push({
1080
- url: t.url,
1081
- blockId: e.id,
1082
- source: "menu-item",
1083
- label: t.text
1084
- });
1085
- else if (o(e)) for (let t of e.icons) n.push({
1086
- url: t.url,
1087
- blockId: e.id,
1088
- source: "social-icon",
1089
- label: t.platform
1090
- });
1091
- }), n;
1092
- }
1093
- //#endregion
1094
- //#region ../quality/src/links/rules/javascript-protocol.ts
1095
- var Nt = {
1096
- id: "link.javascript-protocol",
1097
- severity: "error"
1098
- }, Q = [
1099
- "javascript",
1100
- "data",
1101
- "vbscript"
1102
- ];
1103
- function Pt(e) {
1104
- if (!e) return null;
1105
- let t = e.replace(/\s+/g, "");
1106
- for (let e of Q) if (RegExp(`^${e}:`, "i").test(t)) return e;
1107
- return null;
1108
- }
1109
- var Ft = {
1110
- meta: Nt,
1111
- template(e) {
1112
- let t = [];
1113
- for (let n of Z(e)) {
1114
- let e = Pt(n.url);
1115
- e !== null && t.push({
1116
- blockId: n.blockId,
1117
- params: { protocol: e }
1118
- });
1119
- }
1120
- return t;
1121
- }
1122
- }, It = {
1123
- id: "link.unsupported-protocol",
1124
- severity: "warning"
1125
- }, Lt = /* @__PURE__ */ new Set([
1126
- "http",
1127
- "https",
1128
- "mailto",
1129
- "tel",
1130
- "sms"
1131
- ]), Rt = new Set(Q);
1132
- function zt(e) {
1133
- if (!e) return null;
1134
- let t = e.trim(), n = /^([a-z][a-z0-9+\-.]*):/i.exec(t);
1135
- return n ? n[1].toLowerCase() : null;
1136
- }
1137
- var Bt = {
1138
- meta: It,
1139
- template(e) {
1140
- let t = [];
1141
- for (let n of Z(e)) {
1142
- let e = zt(n.url);
1143
- e !== null && (Rt.has(e) || Lt.has(e) || t.push({
1144
- blockId: n.blockId,
1145
- params: { protocol: e }
1146
- }));
1147
- }
1148
- return t;
1149
- }
1150
- }, Vt = {
1151
- id: "link.malformed-mailto",
1152
- severity: "warning"
1153
- };
1154
- function Ht(e) {
1155
- let t = e.trim();
1156
- if (!/^mailto:/i.test(t)) return !1;
1157
- let [n] = t.slice(7).split("?", 2);
1158
- if (n.trim() === "") return !0;
1159
- let r = n.split(",").map((e) => e.trim());
1160
- for (let e of r) {
1161
- if (e === "") return !0;
1162
- let t = e.split("@");
1163
- if (t.length !== 2) return !0;
1164
- let [n, r] = t;
1165
- if (n === "" || r === "" || !r.includes(".")) return !0;
1166
- }
1167
- return !1;
1168
- }
1169
- var Ut = {
1170
- meta: Vt,
1171
- template(e) {
1172
- let t = [];
1173
- for (let n of Z(e)) Ht(n.url) && t.push({ blockId: n.blockId });
1174
- return t;
1175
- }
1176
- }, Wt = {
1177
- id: "link.malformed-tel",
1178
- severity: "warning"
1179
- }, Gt = /^[+0-9\s().\-]+$/, Kt = /^[A-Za-z0-9-]+(=[^;]+)?$/;
1180
- function qt(e) {
1181
- let t = e.trim();
1182
- if (!/^tel:/i.test(t)) return !1;
1183
- let n = t.slice(4).trim();
1184
- if (n === "") return !0;
1185
- let [r, ...i] = n.split(";");
1186
- return !Gt.test(r) || i.some((e) => !Kt.test(e));
1187
- }
1188
- var Jt = {
1189
- meta: Wt,
1190
- template(e) {
1191
- let t = [];
1192
- for (let n of Z(e)) qt(n.url) && t.push({ blockId: n.blockId });
1193
- return t;
1194
- }
1195
- }, Yt = {
1196
- id: "link.localhost-or-staging",
1197
- severity: "warning"
1198
- };
1199
- function Xt(e) {
1200
- let t = e.replace(/[.+?^${}()|[\]\\]/g, "\\$&").replace(/\*/g, ".*");
1201
- return RegExp(`^${t}$`, "i");
1202
- }
1203
- function Zt(e) {
1204
- if (!e) return null;
1205
- let t = e.trim();
1206
- if (!/^(https?|ftps?):\/\//i.test(t)) return null;
1207
- try {
1208
- return new URL(t).hostname.toLowerCase();
1209
- } catch {
1210
- return null;
1211
- }
1212
- }
1213
- var Qt = {
1214
- meta: Yt,
1215
- template(e, t) {
1216
- let n = t.links.nonProductionHosts;
1217
- if (n.length === 0) return [];
1218
- let r = n.map(Xt), i = [];
1219
- for (let t of Z(e)) {
1220
- let e = Zt(t.url);
1221
- e !== null && r.some((t) => t.test(e)) && i.push({
1222
- blockId: t.blockId,
1223
- params: { host: e }
1224
- });
1225
- }
1226
- return i;
1227
- }
1228
- }, $t = {
1229
- id: "link.relative-url",
1230
- severity: "warning"
1231
- }, en = /^(?:\/|\.{1,2}\/|\?)/, $ = [
1232
- Ft,
1233
- Bt,
1234
- Ut,
1235
- Jt,
1236
- Qt,
1237
- {
1238
- meta: $t,
1239
- template(e) {
1240
- let t = [];
1241
- for (let n of Z(e)) {
1242
- let e = n.url?.trim();
1243
- e && en.test(e) && t.push({
1244
- blockId: n.blockId,
1245
- params: { url: e }
1246
- });
1247
- }
1248
- return t;
1249
- }
1250
- }
1251
- ];
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));
1254
- }
1255
- //#endregion
1256
- //#region ../quality/src/util.ts
1257
- function nn(e) {
1258
- return e ? e.disabled === !0 || e.accessibility === !1 && e.structure === !1 && e.links === !1 : !1;
1259
- }
1260
- //#endregion
1261
- //#region ../quality/src/lint-template.ts
1262
- function rn(e, t = {}) {
1263
- return nn(t) ? [] : [
1264
- ...ct(e, t),
1265
- ...Dt(e, t),
1266
- ...tn(e, t)
1267
- ];
1268
- }
1269
- //#endregion
1270
- export { rn as lintTemplate };
1271
-
1272
- //# sourceMappingURL=src-B1e5SSYP.js.map