@templatical/editor 0.34.3 → 0.36.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 (290) hide show
  1. package/dist/{AiChatSidebar-CkHJ28sf.js → AiChatSidebar-tu4eLcf_.js} +78 -70
  2. package/dist/{AiFeatureMenu-DWdKguDN.js → AiFeatureMenu-BF0i0vA4.js} +17 -17
  3. package/dist/{BlockIssueBadge-DcyHTAqw.js → BlockIssueBadge-DT-FqKeC.js} +9 -9
  4. package/dist/BlockPreviewCanvas-DDCmMram.js +131 -0
  5. package/dist/CloudHeaderExtras-NPhudovT.js +59 -0
  6. package/dist/{CloudPanels-BGz9ygo6.js → CloudPanels-Iwnky0iA.js} +78 -108
  7. package/dist/CollaboratorBar-DAITu0hz.js +103 -0
  8. package/dist/{ColorPicker-C6EOwtHC.js → ColorPicker-BqlZ_TqG.js} +193 -193
  9. package/dist/{CommentsPanel-DmWh8f08.js → CommentsPanel-CDvgmWP1.js} +3 -3
  10. package/dist/{CommentsSidebar-CL_tffzT.js → CommentsSidebar-X_xqM3dR.js} +182 -173
  11. package/dist/{CountdownBlock-D1fsNsyS.js → CountdownBlock-ZFJIdbP6.js} +12 -12
  12. package/dist/{CountdownToolbar-B8J4i5Xp.js → CountdownToolbar-DBFoG3a6.js} +67 -67
  13. package/dist/{DesignReferenceSidebar-BDhEeaAh.js → DesignReferenceSidebar--QtXjLrw.js} +103 -95
  14. package/dist/{FieldRow-BWt7ECqo.js → FieldRow-C8nOknr_.js} +39 -39
  15. package/dist/IssuesPanel-BLbNFMSX.js +117 -0
  16. package/dist/{LoadingTrack-SQXoZVf2.js → LoadingTrack-BlTL4zFv.js} +2 -2
  17. package/dist/MediaPanels-CMTAhDXB.js +43 -0
  18. package/dist/{MergeTagInput-RytOlh1A.js → MergeTagInput-BEjzj4Iu.js} +153 -144
  19. package/dist/{MergeTagModeToggle-Bi-FydXj.js → MergeTagModeToggle-DKN6ihI5.js} +108 -96
  20. package/dist/{MergeTagSuggestion-CoCuzEmW.js → MergeTagSuggestion-DKoLEeoj.js} +21 -21
  21. package/dist/ParagraphEditor-1E9yzOfk.js +782 -0
  22. package/dist/{RestoreVersionDialog-Db5rZRMA.js → RestoreVersionDialog-BMGUkcd8.js} +28 -28
  23. package/dist/RichTextEditorContent-BnxbQUV9.js +154 -0
  24. package/dist/{SaveBlockDialog-CDCzx6Bo.js → SaveBlockDialog-WKASpCCT.js} +78 -78
  25. package/dist/SavedBlocksBrowserModal-AYEXTMtQ.js +323 -0
  26. package/dist/{SavedBlocksPanels-DFzV0CRD.js → SavedBlocksPanels-D_CpacTl.js} +6 -6
  27. package/dist/{SavedBlocksPickBar-XyXmnSnO.js → SavedBlocksPickBar-BHMwg-1G.js} +11 -11
  28. package/dist/TemplateScoringPanel-CSin43YM.js +267 -0
  29. package/dist/{TestEmailModal-DIfJy9eE.js → TestEmailModal-BxizsRCd.js} +59 -59
  30. package/dist/{TestEmailPanel-C8Wx5yPS.js → TestEmailPanel-vd2e5HzT.js} +3 -3
  31. package/dist/TitleEditor-CLJ68Ty4.js +199 -0
  32. package/dist/TplModal-Q9fDgS1M.js +51 -0
  33. package/dist/{VersionHistoryMenu-CV90OhXs.js → VersionHistoryMenu-eGYVhM4H.js} +48 -46
  34. package/dist/{VersionHistoryPanels-BE3pplJG.js → VersionHistoryPanels-C7Ntrrfq.js} +4 -4
  35. package/dist/{VersionPreviewBanner-BwUWBtlH.js → VersionPreviewBanner-BbQXnR0M.js} +9 -9
  36. package/dist/blockTypeIcons-5qD4bB76.js +163 -0
  37. package/dist/bundle-stats.json +8 -8
  38. package/dist/{ca-C0hfqt4U.js → ca-D9S-UCfZ.js} +2 -0
  39. package/dist/ca-Jx2CDwtn.js +83 -0
  40. package/dist/cdn/chunks/{AiChatSidebar-BEnIWn6s.js → AiChatSidebar-dyqqHAcI.js} +4 -4
  41. package/dist/cdn/chunks/{AiChatSidebar-BEnIWn6s.js.map → AiChatSidebar-dyqqHAcI.js.map} +1 -1
  42. package/dist/cdn/chunks/{AiFeatureMenu-DMl23akc.js → AiFeatureMenu-BjVMwhW8.js} +5 -5
  43. package/dist/cdn/chunks/{AiFeatureMenu-DMl23akc.js.map → AiFeatureMenu-BjVMwhW8.js.map} +1 -1
  44. package/dist/cdn/chunks/{BlockIssueBadge-CloK4k3M.js → BlockIssueBadge-BJ__oEtm.js} +4 -4
  45. package/dist/cdn/chunks/{BlockIssueBadge-CloK4k3M.js.map → BlockIssueBadge-BJ__oEtm.js.map} +1 -1
  46. package/dist/cdn/chunks/BlockPreviewCanvas-B5f26eLE.js +133 -0
  47. package/dist/cdn/chunks/BlockPreviewCanvas-B5f26eLE.js.map +1 -0
  48. package/dist/cdn/chunks/{CloudHeaderExtras-b4KpVeUN.js → CloudHeaderExtras-D5P5IEKA.js} +4 -4
  49. package/dist/cdn/chunks/{CloudHeaderExtras-b4KpVeUN.js.map → CloudHeaderExtras-D5P5IEKA.js.map} +1 -1
  50. package/dist/cdn/chunks/{CloudPanels-DzwOq9lp.js → CloudPanels-DkmR05nB.js} +15 -45
  51. package/dist/cdn/chunks/{CloudPanels-DzwOq9lp.js.map → CloudPanels-DkmR05nB.js.map} +1 -1
  52. package/dist/cdn/chunks/{CollaboratorBar-WXKvpoGK.js → CollaboratorBar-Yn7KSpt4.js} +4 -4
  53. package/dist/cdn/chunks/{CollaboratorBar-WXKvpoGK.js.map → CollaboratorBar-Yn7KSpt4.js.map} +1 -1
  54. package/dist/cdn/chunks/{ColorPicker-BubTDiS1.js → ColorPicker-LcrzgMoW.js} +7 -7
  55. package/dist/cdn/chunks/{ColorPicker-BubTDiS1.js.map → ColorPicker-LcrzgMoW.js.map} +1 -1
  56. package/dist/cdn/chunks/{CommentsPanel-DAA2VqX4.js → CommentsPanel-CntwwocI.js} +2 -2
  57. package/dist/cdn/chunks/{CommentsPanel-DAA2VqX4.js.map → CommentsPanel-CntwwocI.js.map} +1 -1
  58. package/dist/cdn/chunks/{CommentsSidebar-Ci0M2ePp.js → CommentsSidebar-BLDKnKy7.js} +4 -4
  59. package/dist/cdn/chunks/{CommentsSidebar-Ci0M2ePp.js.map → CommentsSidebar-BLDKnKy7.js.map} +1 -1
  60. package/dist/cdn/chunks/{CountdownBlock-rK055jpy.js → CountdownBlock-B4AfqJwb.js} +2 -2
  61. package/dist/cdn/chunks/{CountdownBlock-rK055jpy.js.map → CountdownBlock-B4AfqJwb.js.map} +1 -1
  62. package/dist/cdn/chunks/{CountdownToolbar-CzZq26Vp.js → CountdownToolbar-CA1dpuOI.js} +3 -3
  63. package/dist/cdn/chunks/{CountdownToolbar-CzZq26Vp.js.map → CountdownToolbar-CA1dpuOI.js.map} +1 -1
  64. package/dist/cdn/chunks/{DesignReferenceSidebar-C_ehdX5C.js → DesignReferenceSidebar-D1Y9Hswe.js} +5 -5
  65. package/dist/cdn/chunks/{DesignReferenceSidebar-C_ehdX5C.js.map → DesignReferenceSidebar-D1Y9Hswe.js.map} +1 -1
  66. package/dist/cdn/chunks/{IssuesPanel-BXAN2_al.js → IssuesPanel-Q62LTqvd.js} +5 -5
  67. package/dist/cdn/chunks/{IssuesPanel-BXAN2_al.js.map → IssuesPanel-Q62LTqvd.js.map} +1 -1
  68. package/dist/cdn/chunks/MediaPanels-D21M6shx.js +45 -0
  69. package/dist/cdn/chunks/MediaPanels-D21M6shx.js.map +1 -0
  70. package/dist/cdn/chunks/{MergeTagInput-1vcI9uQH.js → MergeTagInput-l7paaAml.js} +8 -8
  71. package/dist/cdn/chunks/{MergeTagInput-1vcI9uQH.js.map → MergeTagInput-l7paaAml.js.map} +1 -1
  72. package/dist/cdn/chunks/{MergeTagModeToggle-B_mUYJo4.js → MergeTagModeToggle-DYxkAGtA.js} +5 -5
  73. package/dist/cdn/chunks/{MergeTagModeToggle-B_mUYJo4.js.map → MergeTagModeToggle-DYxkAGtA.js.map} +1 -1
  74. package/dist/cdn/chunks/{ParagraphEditor-DCDHMcmx.js → ParagraphEditor-Bd-GQXee.js} +176 -172
  75. package/dist/cdn/chunks/{ParagraphEditor-DCDHMcmx.js.map → ParagraphEditor-Bd-GQXee.js.map} +1 -1
  76. package/dist/cdn/chunks/{RestoreVersionDialog-BkSSwf-Q.js → RestoreVersionDialog-2X9RpM9A.js} +4 -4
  77. package/dist/cdn/chunks/{RestoreVersionDialog-BkSSwf-Q.js.map → RestoreVersionDialog-2X9RpM9A.js.map} +1 -1
  78. package/dist/cdn/chunks/{RichTextEditorContent-S4KogjIj.js → RichTextEditorContent-D_rb0rmU.js} +8 -8
  79. package/dist/cdn/chunks/{RichTextEditorContent-S4KogjIj.js.map → RichTextEditorContent-D_rb0rmU.js.map} +1 -1
  80. package/dist/cdn/chunks/{SaveBlockDialog-BH774Nt0.js → SaveBlockDialog-CufdTomT.js} +15 -15
  81. package/dist/cdn/chunks/{SaveBlockDialog-BH774Nt0.js.map → SaveBlockDialog-CufdTomT.js.map} +1 -1
  82. package/dist/cdn/chunks/{SavedBlocksBrowserModal-CSUqw_dD.js → SavedBlocksBrowserModal-CqpaNsk7.js} +8 -8
  83. package/dist/cdn/chunks/{SavedBlocksBrowserModal-CSUqw_dD.js.map → SavedBlocksBrowserModal-CqpaNsk7.js.map} +1 -1
  84. package/dist/cdn/chunks/{SavedBlocksPanels-B6ApbCjG.js → SavedBlocksPanels-DpxYxddo.js} +2 -2
  85. package/dist/cdn/chunks/{SavedBlocksPanels-B6ApbCjG.js.map → SavedBlocksPanels-DpxYxddo.js.map} +1 -1
  86. package/dist/cdn/chunks/{SavedBlocksPickBar-C9MXSRcR.js → SavedBlocksPickBar-Drpoav1B.js} +4 -4
  87. package/dist/cdn/chunks/{SavedBlocksPickBar-C9MXSRcR.js.map → SavedBlocksPickBar-Drpoav1B.js.map} +1 -1
  88. package/dist/cdn/chunks/{TemplateScoringPanel-QVOxc9TZ.js → TemplateScoringPanel-DBjUNULq.js} +5 -5
  89. package/dist/cdn/chunks/{TemplateScoringPanel-QVOxc9TZ.js.map → TemplateScoringPanel-DBjUNULq.js.map} +1 -1
  90. package/dist/cdn/chunks/{TestEmailModal-_CZvaO58.js → TestEmailModal-BTNlSW6f.js} +11 -11
  91. package/dist/cdn/chunks/{TestEmailModal-_CZvaO58.js.map → TestEmailModal-BTNlSW6f.js.map} +1 -1
  92. package/dist/cdn/chunks/{TestEmailPanel-DXLxvyrD.js → TestEmailPanel-D0A9Zgxr.js} +2 -2
  93. package/dist/cdn/chunks/{TestEmailPanel-DXLxvyrD.js.map → TestEmailPanel-D0A9Zgxr.js.map} +1 -1
  94. package/dist/cdn/chunks/{TitleEditor-BuCOahW3.js → TitleEditor-CrnuIq62.js} +9 -9
  95. package/dist/cdn/chunks/{TitleEditor-BuCOahW3.js.map → TitleEditor-CrnuIq62.js.map} +1 -1
  96. package/dist/cdn/chunks/{TplModal-CqY8R3hn.js → TplModal-DYXrTz42.js} +5 -5
  97. package/dist/cdn/chunks/{TplModal-CqY8R3hn.js.map → TplModal-DYXrTz42.js.map} +1 -1
  98. package/dist/cdn/chunks/{VersionHistoryMenu-DDjIBvad.js → VersionHistoryMenu-bDGnE4hb.js} +6 -6
  99. package/dist/cdn/chunks/VersionHistoryMenu-bDGnE4hb.js.map +1 -0
  100. package/dist/cdn/chunks/{VersionHistoryPanels-BuTw04T5.js → VersionHistoryPanels-82P0Q0HM.js} +2 -2
  101. package/dist/cdn/chunks/{VersionHistoryPanels-BuTw04T5.js.map → VersionHistoryPanels-82P0Q0HM.js.map} +1 -1
  102. package/dist/cdn/chunks/{VersionPreviewBanner-fGAv20qI.js → VersionPreviewBanner-BJiwKkVC.js} +3 -3
  103. package/dist/cdn/chunks/{VersionPreviewBanner-fGAv20qI.js.map → VersionPreviewBanner-BJiwKkVC.js.map} +1 -1
  104. package/dist/cdn/chunks/{blockTypeIcons-ZEzEpCti.js → blockTypeIcons-CNjJSFun.js} +2 -2
  105. package/dist/cdn/chunks/{blockTypeIcons-ZEzEpCti.js.map → blockTypeIcons-CNjJSFun.js.map} +1 -1
  106. package/dist/cdn/chunks/{ca-C0hfqt4U.js → ca-D9S-UCfZ.js} +3 -1
  107. package/dist/cdn/chunks/{ca-C0hfqt4U.js.map → ca-D9S-UCfZ.js.map} +1 -1
  108. package/dist/cdn/chunks/{ca-CNRWAMHI.js → ca-Jx2CDwtn.js} +2 -6
  109. package/dist/cdn/chunks/ca-Jx2CDwtn.js.map +1 -0
  110. package/dist/cdn/chunks/{cloud-BP5-6__d.js → cloud-BLgCKP7Z.js} +453 -228
  111. package/dist/cdn/chunks/cloud-BLgCKP7Z.js.map +1 -0
  112. package/dist/cdn/chunks/createCloudRuntime-U-qCH-dq.js +385 -0
  113. package/dist/cdn/chunks/createCloudRuntime-U-qCH-dq.js.map +1 -0
  114. package/dist/{de-C6J2Iae8.js → cdn/chunks/de-BUPszLpi.js} +4 -0
  115. package/dist/cdn/chunks/{de-C6J2Iae8.js.map → de-BUPszLpi.js.map} +1 -1
  116. package/dist/cdn/chunks/{de-DFYCT4QU.js → de-Ck0pBGHu.js} +2 -6
  117. package/dist/cdn/chunks/de-Ck0pBGHu.js.map +1 -0
  118. package/dist/cdn/chunks/{src-Cxl-9O-L.js → editor-modal-MXgtarMl.js} +1473 -1934
  119. package/dist/cdn/chunks/editor-modal-MXgtarMl.js.map +1 -0
  120. package/dist/cdn/chunks/{en-BaUYOQi8.js → en-BbOC5x3w.js} +3 -1
  121. package/dist/cdn/chunks/en-BbOC5x3w.js.map +1 -0
  122. package/dist/cdn/chunks/en-C9U7N77n.js +2 -0
  123. package/dist/cdn/chunks/{es-CKDYfJYn.js → es-0bCDcT9p.js} +3 -1
  124. package/dist/cdn/chunks/{es-CKDYfJYn.js.map → es-0bCDcT9p.js.map} +1 -1
  125. package/dist/cdn/chunks/{es-OgkdMZGX.js → es-lagTvUfX.js} +2 -6
  126. package/dist/cdn/chunks/es-lagTvUfX.js.map +1 -0
  127. package/dist/cdn/chunks/{extensions-7z04EIGg.js → extensions-B8_jnIkD.js} +4 -4
  128. package/dist/cdn/chunks/{extensions-7z04EIGg.js.map → extensions-B8_jnIkD.js.map} +1 -1
  129. package/dist/{fr-L8DR73mK.js → cdn/chunks/fr-Brr8mJ9e.js} +4 -0
  130. package/dist/cdn/chunks/fr-Brr8mJ9e.js.map +1 -0
  131. package/dist/cdn/chunks/{fr-Dswns199.js → fr-C4hVl5Lk.js} +2 -6
  132. package/dist/cdn/chunks/fr-C4hVl5Lk.js.map +1 -0
  133. package/dist/cdn/chunks/icons-BUlqGSgd.js +1675 -0
  134. package/dist/cdn/chunks/icons-BUlqGSgd.js.map +1 -0
  135. package/dist/cdn/chunks/{keys-DQp8x7Nx.js → keys-DBFhDFng.js} +4 -4
  136. package/dist/cdn/chunks/{keys-DQp8x7Nx.js.map → keys-DBFhDFng.js.map} +1 -1
  137. package/dist/cdn/chunks/{nl-CbcPJlrL.js → nl-CReD7Apd.js} +2 -6
  138. package/dist/cdn/chunks/nl-CReD7Apd.js.map +1 -0
  139. package/dist/{nl-GDWeuX18.js → cdn/chunks/nl-Co3_RL0M.js} +4 -0
  140. package/dist/cdn/chunks/nl-Co3_RL0M.js.map +1 -0
  141. package/dist/cdn/chunks/{preRenderCustomBlocks-LFB-e-0m.js → preRenderCustomBlocks-Bdpiiw4A.js} +2 -2
  142. package/dist/cdn/chunks/{preRenderCustomBlocks-LFB-e-0m.js.map → preRenderCustomBlocks-Bdpiiw4A.js.map} +1 -1
  143. package/dist/cdn/chunks/{pt-BR-B1AVVhWj.js → pt-BR-BECez5b0.js} +3 -1
  144. package/dist/cdn/chunks/{pt-BR-B1AVVhWj.js.map → pt-BR-BECez5b0.js.map} +1 -1
  145. package/dist/cdn/chunks/{pt-BR-BibOQm-o.js → pt-BR-BRA0-vGP.js} +2 -6
  146. package/dist/cdn/chunks/pt-BR-BRA0-vGP.js.map +1 -0
  147. package/dist/cdn/chunks/{src-BM3f9I7t.js → src-CUvZWL6Y.js} +83 -83
  148. package/dist/cdn/chunks/src-CUvZWL6Y.js.map +1 -0
  149. package/dist/cdn/chunks/{src-BDvZrpFH.js → src-DZ0C9mH7.js} +161 -160
  150. package/dist/cdn/chunks/src-DZ0C9mH7.js.map +1 -0
  151. package/dist/cdn/chunks/{src-CLoCCDfs.js → src-Dwgq7hf4.js} +71 -48
  152. package/dist/cdn/chunks/src-Dwgq7hf4.js.map +1 -0
  153. package/dist/cdn/chunks/{useCloudI18n-MxgHWrV6.js → useCloudI18n-DSWSGj-A.js} +2 -2
  154. package/dist/cdn/chunks/{useCloudI18n-MxgHWrV6.js.map → useCloudI18n-DSWSGj-A.js.map} +1 -1
  155. package/dist/cdn/chunks/{useEditorCore-ehUSEsbw.js → useEditorCore-Cs7rYVBo.js} +614 -522
  156. package/dist/cdn/chunks/useEditorCore-Cs7rYVBo.js.map +1 -0
  157. package/dist/cdn/chunks/{useEditorRoot-CteADR3y.js → useEditorRoot-B0zW2nT4.js} +2 -2
  158. package/dist/cdn/chunks/{useEditorRoot-CteADR3y.js.map → useEditorRoot-B0zW2nT4.js.map} +1 -1
  159. package/dist/cdn/chunks/{useI18n-Ct1VIFcf.js → useI18n-Dlo7R9RA.js} +2 -2
  160. package/dist/cdn/chunks/{useI18n-Ct1VIFcf.js.map → useI18n-Dlo7R9RA.js.map} +1 -1
  161. package/dist/cdn/chunks/{useMergeTag-TLhF2fGK.js → useMergeTag-BYAifvh8.js} +4 -4
  162. package/dist/cdn/chunks/{useMergeTag-TLhF2fGK.js.map → useMergeTag-BYAifvh8.js.map} +1 -1
  163. package/dist/cdn/chunks/{usePopoverPosition-BxVWE5_0.js → usePopoverPosition-ElP3ABaV.js} +2 -2
  164. package/dist/cdn/chunks/{usePopoverPosition-BxVWE5_0.js.map → usePopoverPosition-ElP3ABaV.js.map} +1 -1
  165. package/dist/cdn/chunks/{useScrollToBlock-Cz3fpgTK.js → useScrollToBlock-nTbWkgaU.js} +2 -2
  166. package/dist/cdn/chunks/{useScrollToBlock-Cz3fpgTK.js.map → useScrollToBlock-nTbWkgaU.js.map} +1 -1
  167. package/dist/cdn/editor.css +1 -1
  168. package/dist/cdn/editor.js +1195 -1095
  169. package/dist/cdn/editor.js.map +1 -1
  170. package/dist/check-DWtkBzBU.js +11 -0
  171. package/dist/chevron-down-C-Fjxcqj.js +11 -0
  172. package/dist/chevron-right-SOkn2d4P.js +11 -0
  173. package/dist/chevron-up-lntU1ypp.js +11 -0
  174. package/dist/circle-alert-CjzUTwy3.js +30 -0
  175. package/dist/clock-pB2QKPsJ.js +16 -0
  176. package/dist/{cloud-BMzRKCbk.js → cloud-DdidMW6f.js} +446 -201
  177. package/dist/copy-CId1E038.js +19 -0
  178. package/dist/createCloudRuntime-x5WZm3p8.js +383 -0
  179. package/dist/createLucideIcon-Cwf_nTzE.js +96 -0
  180. package/dist/{cdn/chunks/de-C6J2Iae8.js → de-BUPszLpi.js} +2 -2
  181. package/dist/de-Ck0pBGHu.js +83 -0
  182. package/dist/{dist-BxFbxpgW.js → dist-BVqAYoRB.js} +125 -125
  183. package/dist/dist-D8i1ixHK.js +177 -0
  184. package/dist/dist-DBirAJIs.js +410 -0
  185. package/dist/{dist-PL6vP4SC.js → dist-tGkjkX-v.js} +143 -122
  186. package/dist/editor-modal-B_LaQf0s.js +5998 -0
  187. package/dist/{en-BaUYOQi8.js → en-BbOC5x3w.js} +2 -0
  188. package/dist/en-DcmpWV53.js +2 -0
  189. package/dist/{es-CKDYfJYn.js → es-0bCDcT9p.js} +2 -0
  190. package/dist/es-lagTvUfX.js +83 -0
  191. package/dist/{extensions-Mf8iHey9.js → extensions-CHOBZRab.js} +43 -43
  192. package/dist/eye-BuGtFUoJ.js +16 -0
  193. package/dist/{cdn/chunks/fr-L8DR73mK.js → fr-Brr8mJ9e.js} +2 -2
  194. package/dist/fr-C4hVl5Lk.js +83 -0
  195. package/dist/image-up-gH4JEpU5.js +27 -0
  196. package/dist/index.d.ts +77 -11
  197. package/dist/info-BQ60P82u.js +23 -0
  198. package/dist/{keys-C3P1yxnr.js → keys-DQA2i1k1.js} +4 -4
  199. package/dist/link-3R8it3J7.js +14 -0
  200. package/dist/list-Ccdgj46T.js +33 -0
  201. package/dist/loader-circle-B_tAD4k6.js +12 -0
  202. package/dist/message-circle-P-KSc6V0.js +11 -0
  203. package/dist/nl-CReD7Apd.js +83 -0
  204. package/dist/{cdn/chunks/nl-GDWeuX18.js → nl-Co3_RL0M.js} +2 -2
  205. package/dist/pencil-9ZiwqS4r.js +14 -0
  206. package/dist/plus-BwJEzCaO.js +14 -0
  207. package/dist/{preRenderCustomBlocks-CSIF-HyJ.js → preRenderCustomBlocks-DFXH54Zr.js} +1 -1
  208. package/dist/{pt-BR-B1AVVhWj.js → pt-BR-BECez5b0.js} +2 -0
  209. package/dist/pt-BR-BRA0-vGP.js +83 -0
  210. package/dist/refresh-cw-DEgfb2FK.js +25 -0
  211. package/dist/{runtime-dom.esm-bundler-BuG03jBM.js → runtime-dom.esm-bundler-PnoZU512.js} +106 -106
  212. package/dist/search-DqQ8Li5E.js +16 -0
  213. package/dist/send-CE6uvqop.js +14 -0
  214. package/dist/shield-check-DhD1Z3rd.js +14 -0
  215. package/dist/sparkles-R0ZQHa6F.js +28 -0
  216. package/dist/style.css +1 -1
  217. package/dist/templatical-editor.js +2742 -2590
  218. package/dist/text-align-start-DSux2UNn.js +58 -0
  219. package/dist/trash-Cf_SqsER.js +30 -0
  220. package/dist/triangle-alert-C6tGa6jw.js +22 -0
  221. package/dist/upload-DusKjpVr.js +21 -0
  222. package/dist/{useAliveFlag-PVmp95MT.js → useAliveFlag-oyByIcjy.js} +1 -1
  223. package/dist/{useCloudI18n-BKoiYsWZ.js → useCloudI18n-BLyh_e2T.js} +2 -2
  224. package/dist/{useEditorCore-DdkQuTHl.js → useEditorCore-DhlKOYwe.js} +1780 -1651
  225. package/dist/{useEditorRoot-DkRGTQRs.js → useEditorRoot-ds57-l6F.js} +2 -2
  226. package/dist/{useI18n-CL6RfPzK.js → useI18n-BbdxxpOE.js} +2 -2
  227. package/dist/{useMergeTag-gSuYus-M.js → useMergeTag-DlvOBW_B.js} +4 -4
  228. package/dist/{usePopoverPosition-CWxaIWd3.js → usePopoverPosition-CprM5p-c.js} +2 -2
  229. package/dist/useScrollToBlock-BTFw0b9O.js +48 -0
  230. package/dist/{vue.runtime.esm-bundler-D9JUcKrV.js → vue.runtime.esm-bundler-DShF3P6k.js} +1192 -1181
  231. package/dist/x-D_-42Ukq.js +14 -0
  232. package/package.json +9 -12
  233. package/dist/BlockPreviewCanvas-B621ANn9.js +0 -129
  234. package/dist/CloudHeaderExtras-BJ3Cebhv.js +0 -59
  235. package/dist/CollaboratorBar-KphmSQeZ.js +0 -95
  236. package/dist/IssuesPanel-CiOjeRFI.js +0 -109
  237. package/dist/ParagraphEditor-C87tkmtE.js +0 -767
  238. package/dist/RichTextEditorContent-BmTcV2-a.js +0 -152
  239. package/dist/SavedBlocksBrowserModal-DQR6kJB1.js +0 -322
  240. package/dist/TemplateScoringPanel-CpyEKMzC.js +0 -257
  241. package/dist/TitleEditor-iNFOisr4.js +0 -198
  242. package/dist/TplModal-CowM3o_F.js +0 -51
  243. package/dist/blockTypeIcons-DQsKtHik.js +0 -134
  244. package/dist/cdn/chunks/BlockPreviewCanvas-DSiJFJa0.js +0 -131
  245. package/dist/cdn/chunks/BlockPreviewCanvas-DSiJFJa0.js.map +0 -1
  246. package/dist/cdn/chunks/VersionHistoryMenu-DDjIBvad.js.map +0 -1
  247. package/dist/cdn/chunks/ca-CNRWAMHI.js.map +0 -1
  248. package/dist/cdn/chunks/cloud-BP5-6__d.js.map +0 -1
  249. package/dist/cdn/chunks/createCloudRuntime-JFE-sxbT.js +0 -443
  250. package/dist/cdn/chunks/createCloudRuntime-JFE-sxbT.js.map +0 -1
  251. package/dist/cdn/chunks/de-DFYCT4QU.js.map +0 -1
  252. package/dist/cdn/chunks/en-BaUYOQi8.js.map +0 -1
  253. package/dist/cdn/chunks/en-mEKGL1PX.js +0 -2
  254. package/dist/cdn/chunks/es-OgkdMZGX.js.map +0 -1
  255. package/dist/cdn/chunks/fr-Dswns199.js.map +0 -1
  256. package/dist/cdn/chunks/fr-L8DR73mK.js.map +0 -1
  257. package/dist/cdn/chunks/icons-SP5Itd-A.js +0 -1218
  258. package/dist/cdn/chunks/icons-SP5Itd-A.js.map +0 -1
  259. package/dist/cdn/chunks/nl-CbcPJlrL.js.map +0 -1
  260. package/dist/cdn/chunks/nl-GDWeuX18.js.map +0 -1
  261. package/dist/cdn/chunks/pt-BR-BibOQm-o.js.map +0 -1
  262. package/dist/cdn/chunks/src-BDvZrpFH.js.map +0 -1
  263. package/dist/cdn/chunks/src-BM3f9I7t.js.map +0 -1
  264. package/dist/cdn/chunks/src-CLoCCDfs.js.map +0 -1
  265. package/dist/cdn/chunks/src-Cxl-9O-L.js.map +0 -1
  266. package/dist/cdn/chunks/useEditorCore-ehUSEsbw.js.map +0 -1
  267. package/dist/check-JK8Uacq0.js +0 -7
  268. package/dist/chevron-down-a-fb_Ijn.js +0 -7
  269. package/dist/chevron-up-x4l0et_Y.js +0 -7
  270. package/dist/circle-alert-CJDW5LZo.js +0 -25
  271. package/dist/clock-BW6rXk2f.js +0 -12
  272. package/dist/createCloudRuntime-DbTFm1ES.js +0 -441
  273. package/dist/createLucideIcon-Bvw1Zx56.js +0 -43
  274. package/dist/dist-dNiknO7j.js +0 -251
  275. package/dist/dist-heatwAdo.js +0 -150
  276. package/dist/image-up-CuzFc1mu.js +0 -23
  277. package/dist/info-DybAwcA3.js +0 -19
  278. package/dist/loader-circle-t-SVgmJ3.js +0 -7
  279. package/dist/message-circle-DtwKrlhN.js +0 -7
  280. package/dist/pencil-2qhC-Y4q.js +0 -10
  281. package/dist/refresh-cw-C8SBuPdg.js +0 -29
  282. package/dist/send-BoqJliF6.js +0 -10
  283. package/dist/shield-check-D0dMaHtE.js +0 -10
  284. package/dist/sparkles-Dy2BJjiX.js +0 -23
  285. package/dist/text-align-start-DrxjxvIy.js +0 -43
  286. package/dist/trash-rYMzzHZd.js +0 -25
  287. package/dist/triangle-alert-DxnFj4-B.js +0 -17
  288. package/dist/upload-DZu1adQz.js +0 -17
  289. package/dist/useScrollToBlock-CdI8fGqt.js +0 -44
  290. package/dist/x-DJOd1hS4.js +0 -10
@@ -0,0 +1,14 @@
1
+ import { t as e } from "./createLucideIcon-Cwf_nTzE.js";
2
+ var t = e({
3
+ name: "x",
4
+ size: 24,
5
+ node: [["path", {
6
+ d: "M18 6 6 18",
7
+ key: "1bl5f8"
8
+ }], ["path", {
9
+ d: "m6 6 12 12",
10
+ key: "d8bk6v"
11
+ }]]
12
+ });
13
+ //#endregion
14
+ export { t };
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "@templatical/editor",
3
3
  "description": "Vue 3 visual drag-and-drop email editor powered by Templatical",
4
- "version": "0.34.3",
4
+ "version": "0.36.0",
5
5
  "bugs": "https://github.com/templatical/sdk/issues",
6
6
  "devDependencies": {
7
- "@lucide/vue": "^1.41.0",
8
- "@templatical/core": "0.34.3",
9
- "@templatical/quality": "0.34.3",
10
- "@templatical/types": "0.34.3",
7
+ "@lucide/vue": "^1.43.0",
8
+ "@templatical/core": "0.36.0",
9
+ "@templatical/media-library": "0.36.0",
10
+ "@templatical/quality": "0.36.0",
11
+ "@templatical/types": "0.36.0",
11
12
  "@tiptap/core": "^3.31.3",
12
13
  "@tiptap/extension-color": "^3.31.3",
13
14
  "@tiptap/extension-font-family": "^3.31.3",
@@ -24,7 +25,7 @@
24
25
  "@vitejs/plugin-vue": "^6.0.8",
25
26
  "@vue/test-utils": "^2.5.0",
26
27
  "@vueuse/core": "^14.4.0",
27
- "es-module-lexer": "^2.3.2",
28
+ "es-module-lexer": "^3.0.2",
28
29
  "happy-dom": "^20.14.0",
29
30
  "jsdom": "30.0.1",
30
31
  "liquidjs": "^10.29.0",
@@ -63,17 +64,13 @@
63
64
  "license": "FSL-1.1-MIT",
64
65
  "module": "./dist/templatical-editor.js",
65
66
  "peerDependencies": {
66
- "@templatical/media-library": "0.34.3",
67
- "@templatical/quality": "0.34.3",
68
- "@templatical/renderer": "0.34.3"
67
+ "@templatical/quality": "0.36.0",
68
+ "@templatical/renderer": "0.36.0"
69
69
  },
70
70
  "peerDependenciesMeta": {
71
71
  "@templatical/renderer": {
72
72
  "optional": true
73
73
  },
74
- "@templatical/media-library": {
75
- "optional": true
76
- },
77
74
  "@templatical/quality": {
78
75
  "optional": true
79
76
  }
@@ -1,129 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { A as t, N as n, Ot as r, P as i, S as a, c as o, d as s, j as c, k as l, l as u, r as d, rt as f, s as p, v as m } from "./vue.runtime.esm-bundler-D9JUcKrV.js";
3
- import { R as h, a as g, b as _, d as v, f as y, g as b, h as x, i as S, l as C, m as w, n as T, p as E, r as D, v as O, y as k } from "./useEditorCore-DdkQuTHl.js";
4
- import { A, d as j, h as M, q as N, s as P } from "./keys-C3P1yxnr.js";
5
- import { n as F, t as I } from "./emailFrameWidth-BmFCN2dp.js";
6
- //#region src/components/blocks/PreviewSectionBlock.vue?vue&type=script&setup=true&lang.ts
7
- var L = { class: "tpl:w-full" }, R = { class: "tpl:flex tpl:gap-0" }, z = /* @__PURE__ */ m({
8
- name: "PreviewSectionBlock",
9
- __name: "PreviewSectionBlock",
10
- props: {
11
- block: {},
12
- viewport: {}
13
- },
14
- setup(e) {
15
- let t = {
16
- title: C,
17
- paragraph: w,
18
- image: b,
19
- video: T,
20
- button: h,
21
- divider: k,
22
- social: g,
23
- menu: x,
24
- table: D,
25
- spacer: S,
26
- html: O,
27
- custom: _
28
- }, m = e, y = a(P, null), A = p(() => {
29
- switch (m.block.columns) {
30
- case "2": return ["50%", "50%"];
31
- case "3": return [
32
- "33.33%",
33
- "33.33%",
34
- "33.33%"
35
- ];
36
- case "1-2": return ["33.33%", "66.67%"];
37
- case "2-1": return ["66.67%", "33.33%"];
38
- default: return ["100%"];
39
- }
40
- }), j = p(() => {
41
- let e = A.value.length, t = [...m.block.children];
42
- for (; t.length < e;) t.push([]);
43
- return t.slice(0, e);
44
- });
45
- function M(e) {
46
- return j.value[e] || [];
47
- }
48
- function N(e) {
49
- return E(e, y, t);
50
- }
51
- return (e, t) => {
52
- let a = n("PreviewSectionBlock", !0);
53
- return l(), s("div", L, [o("div", R, [(l(!0), s(d, null, c(j.value, (e, t) => (l(), s("div", {
54
- key: t,
55
- style: r({ width: A.value[t] })
56
- }, [(l(!0), s(d, null, c(M(t), (e) => (l(), s("div", {
57
- key: e.id,
58
- style: r(f(v)(e))
59
- }, [e.type === "section" ? (l(), u(a, {
60
- key: 0,
61
- block: e,
62
- viewport: "desktop"
63
- }, null, 8, ["block"])) : (l(), u(i(N(e)), {
64
- key: 1,
65
- block: e,
66
- viewport: "desktop"
67
- }, null, 8, ["block"]))], 4))), 128))], 4))), 128))])]);
68
- };
69
- }
70
- }), B = ["lang"], V = /*@__PURE__*/ m({
71
- __name: "BlockPreviewCanvas",
72
- props: {
73
- blocks: {},
74
- viewport: { default: "desktop" },
75
- applyConditionFilter: {
76
- type: Boolean,
77
- default: !0
78
- }
79
- },
80
- setup(e) {
81
- let n = e, m = a(P), L = a(M, null), R = a(j, null), V = a(A, null);
82
- t(N, p(() => V?.value ?? !1));
83
- let H = p(() => n.applyConditionFilter ? n.blocks.filter((e) => !R?.isHidden(e.id)) : n.blocks), U = p(() => F(L?.content.value.settings, n.viewport)), W = p(() => L ? y(L.content.value.settings) : {}), G = p(() => L?.content.value.settings?.locale?.trim() || void 0), K = p(() => L?.content.value.settings.backgroundColor || "var(--tpl-canvas-bg)"), q = p(() => U.value + 192), J = {
84
- section: z,
85
- title: C,
86
- paragraph: w,
87
- image: b,
88
- video: T,
89
- button: h,
90
- divider: k,
91
- social: g,
92
- menu: x,
93
- table: D,
94
- spacer: S,
95
- html: O,
96
- custom: _
97
- };
98
- function Y(e) {
99
- return E(e, m, J);
100
- }
101
- return (t, n) => (l(), s("div", {
102
- "data-testid": "block-preview-stage",
103
- class: "tpl:pointer-events-none tpl:mx-auto tpl:flex tpl:select-none tpl:justify-center tpl:rounded-lg",
104
- style: r({
105
- width: `${q.value}px`,
106
- minWidth: `${U.value}px`,
107
- maxWidth: "100%",
108
- backgroundColor: K.value,
109
- boxShadow: "var(--tpl-shadow-sm)"
110
- })
111
- }, [o("div", {
112
- "data-testid": "block-preview-canvas",
113
- lang: G.value,
114
- style: r({
115
- width: `${U.value}px`,
116
- transition: f(I),
117
- ...W.value
118
- })
119
- }, [(l(!0), s(d, null, c(H.value, (t) => (l(), s("div", {
120
- key: t.id,
121
- style: r(f(v)(t))
122
- }, [(l(), u(i(Y(t)), {
123
- block: t,
124
- viewport: e.viewport
125
- }, null, 8, ["block", "viewport"]))], 4))), 128))], 12, B)], 4));
126
- }
127
- }), H = /* @__PURE__ */ e({ default: () => U }), U = V;
128
- //#endregion
129
- export { H as n, U as t };
@@ -1,59 +0,0 @@
1
- import { Dt as e, _ as t, c as n, d as r, g as i, h as a, k as o, kt as s, l as c, r as l, rt as u, u as d, v as f, z as p } from "./vue.runtime.esm-bundler-D9JUcKrV.js";
2
- import { c as m, t as h } from "./runtime-dom.esm-bundler-BuG03jBM.js";
3
- import { t as g } from "./sparkles-Dy2BJjiX.js";
4
- import { n as _ } from "./useCloudI18n-BKoiYsWZ.js";
5
- //#region src/cloud/components/CloudHeaderExtras.vue?vue&type=script&setup=true&lang.ts
6
- var v = {
7
- key: 0,
8
- "data-testid": "cloud-template-usage",
9
- class: "tpl:text-xs tpl:opacity-60 tpl:text-[var(--tpl-text-muted)]"
10
- }, y = ["aria-expanded"], b = {
11
- key: 0,
12
- class: "tpl:absolute tpl:right-0 tpl:top-full tpl:z-50 tpl:mt-1 tpl:origin-top-right"
13
- }, x = /* @__PURE__ */ f({
14
- __name: "CloudHeaderExtras",
15
- props: {
16
- part: {},
17
- cloud: {}
18
- },
19
- setup(f) {
20
- let x = t(() => import("./CollaboratorBar-KphmSQeZ.js")), S = t(() => import("./AiFeatureMenu-DWdKguDN.js")), { t: C, format: w } = _();
21
- return (t, _) => f.part === "left" ? (o(), r(l, { key: 0 }, [f.cloud.featureFlags.templateLimit.value === null ? d("", !0) : (o(), r("span", v, s(u(w)(u(C).header.templatesUsed, {
22
- used: f.cloud.featureFlags.templateCount.value,
23
- max: f.cloud.featureFlags.templateLimit.value
24
- })), 1)), f.cloud.collaboration && f.cloud.isCollaborationEnabled.value ? (o(), c(u(x), {
25
- key: 1,
26
- collaborators: f.cloud.collaboration.collaborators.value,
27
- "is-connected": f.cloud.websocket.isConnected.value
28
- }, null, 8, ["collaborators", "is-connected"])) : d("", !0)], 64)) : f.part === "right" ? (o(), r(l, { key: 1 }, [f.cloud.featureFlags.canUseAiGeneration.value && f.cloud.featureFlags.hasTemplateSaved.value ? (o(), r("div", {
29
- key: 0,
30
- ref: (e) => f.cloud.panelState.aiMenuRef.value = e,
31
- class: "tpl:relative"
32
- }, [n("button", {
33
- type: "button",
34
- "data-testid": "ai-menu-trigger",
35
- "aria-expanded": f.cloud.panelState.aiMenuOpen.value,
36
- class: e(["tpl-ai-btn tpl:inline-flex tpl:items-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-4 tpl:py-2 tpl:text-sm tpl:font-semibold tpl:whitespace-nowrap tpl:transition-all tpl:duration-200", f.cloud.panelState.aiButtonActive.value ? "tpl-ai-btn--active" : "tpl-ai-btn--idle"]),
37
- onClick: _[0] ||= m((...e) => f.cloud.panelState.toggleAiMenu && f.cloud.panelState.toggleAiMenu(...e), ["stop"])
38
- }, [i(u(g), {
39
- size: 16,
40
- "stroke-width": 2,
41
- class: "tpl-ai-btn-icon"
42
- }), a(" " + s(u(C).aiChat.button), 1)], 10, y), i(h, {
43
- "enter-active-class": "tpl:transition-all tpl:ease-out",
44
- "enter-from-class": "tpl:scale-95 tpl:opacity-0",
45
- "enter-to-class": "tpl:scale-100 tpl:opacity-100",
46
- "leave-active-class": "tpl:transition-all tpl:duration-100 tpl:ease-in",
47
- "leave-from-class": "tpl:scale-100 tpl:opacity-100",
48
- "leave-to-class": "tpl:scale-95 tpl:opacity-0"
49
- }, {
50
- default: p(() => [f.cloud.panelState.aiMenuOpen.value ? (o(), r("div", b, [i(u(S), {
51
- "active-feature": f.cloud.panelState.activeAiFeature.value,
52
- onSelect: f.cloud.panelState.handleAiFeatureSelect
53
- }, null, 8, ["active-feature", "onSelect"])])) : d("", !0)]),
54
- _: 1
55
- })], 512)) : d("", !0)], 64)) : d("", !0);
56
- }
57
- });
58
- //#endregion
59
- export { x as default };
@@ -1,95 +0,0 @@
1
- import { Ot as e, c as t, d as n, j as r, k as i, kt as a, l as o, r as s, rt as c, s as l, u, v as d } from "./vue.runtime.esm-bundler-D9JUcKrV.js";
2
- import "./useEditorCore-DdkQuTHl.js";
3
- import { t as f } from "./createLucideIcon-Bvw1Zx56.js";
4
- import { n as p } from "./useCloudI18n-BKoiYsWZ.js";
5
- import { t as m } from "./readableTextColor-f8Kykfnh.js";
6
- var h = f("wifi-off", [
7
- ["path", {
8
- d: "M12 20h.01",
9
- key: "zekei9"
10
- }],
11
- ["path", {
12
- d: "M8.5 16.429a5 5 0 0 1 7 0",
13
- key: "1bycff"
14
- }],
15
- ["path", {
16
- d: "M5 12.859a10 10 0 0 1 5.17-2.69",
17
- key: "1dl1wf"
18
- }],
19
- ["path", {
20
- d: "M19 12.859a10 10 0 0 0-2.007-1.523",
21
- key: "4k23kn"
22
- }],
23
- ["path", {
24
- d: "M2 8.82a15 15 0 0 1 4.177-2.643",
25
- key: "1grhjp"
26
- }],
27
- ["path", {
28
- d: "M22 8.82a15 15 0 0 0-11.288-3.764",
29
- key: "z3jwby"
30
- }],
31
- ["path", {
32
- d: "m2 2 20 20",
33
- key: "1ooewy"
34
- }]
35
- ]), g = f("wifi", [
36
- ["path", {
37
- d: "M12 20h.01",
38
- key: "zekei9"
39
- }],
40
- ["path", {
41
- d: "M2 8.82a15 15 0 0 1 20 0",
42
- key: "dnpr2z"
43
- }],
44
- ["path", {
45
- d: "M5 12.859a10 10 0 0 1 14 0",
46
- key: "1x1e6c"
47
- }],
48
- ["path", {
49
- d: "M8.5 16.429a5 5 0 0 1 7 0",
50
- key: "1bycff"
51
- }]
52
- ]), _ = { class: "tpl-collaborator-bar tpl:flex tpl:items-center tpl:gap-2" }, v = ["title"], y = {
53
- key: 0,
54
- class: "tpl:flex tpl:items-center tpl:-space-x-1.5"
55
- }, b = ["title"], x = ["title"], S = 3, C = /* @__PURE__ */ d({
56
- __name: "CollaboratorBar",
57
- props: {
58
- collaborators: {},
59
- isConnected: { type: Boolean }
60
- },
61
- setup(d) {
62
- let f = d, { t: C } = p(), w = l(() => f.collaborators.slice(0, S)), T = l(() => f.collaborators.slice(S)), E = l(() => T.value.length), D = l(() => T.value.map((e) => e.name).join("\n"));
63
- function O(e) {
64
- let t = e.trim().split(/\s+/);
65
- return t.length >= 2 ? (t[0].charAt(0) + t[t.length - 1].charAt(0)).toUpperCase() : e.charAt(0).toUpperCase();
66
- }
67
- return (l, f) => (i(), n("div", _, [t("div", {
68
- class: "tpl:flex tpl:items-center tpl:gap-1 tpl:text-[11px]",
69
- style: e({ color: d.isConnected ? "var(--tpl-success)" : "var(--tpl-text-muted)" }),
70
- title: d.isConnected ? c(C).collaboration.connected : c(C).collaboration.disconnected
71
- }, [d.isConnected ? (i(), o(c(g), {
72
- key: 0,
73
- size: 12,
74
- "stroke-width": 2
75
- })) : (i(), o(c(h), {
76
- key: 1,
77
- size: 12,
78
- "stroke-width": 2
79
- }))], 12, v), d.collaborators.length > 0 ? (i(), n("div", y, [(i(!0), n(s, null, r(w.value, (t) => (i(), n("div", {
80
- key: t.id,
81
- class: "tpl-collaborator-avatar tpl:relative tpl:flex tpl:size-6 tpl:items-center tpl:justify-center tpl:rounded-full tpl:border-2 tpl:text-[10px] tpl:font-bold tpl:transition-transform tpl:hover:z-10 tpl:hover:scale-110 tpl:border-[var(--tpl-bg)]",
82
- style: e({
83
- backgroundColor: t.color,
84
- color: c(m)(t.color)
85
- }),
86
- title: t.name
87
- }, a(O(t.name)), 13, b))), 128)), E.value > 0 ? (i(), n("div", {
88
- key: 0,
89
- class: "tpl:relative tpl:flex tpl:size-6 tpl:items-center tpl:justify-center tpl:rounded-full tpl:border-2 tpl:text-[9px] tpl:font-bold tpl:border-[var(--tpl-bg)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)]",
90
- title: D.value
91
- }, " +" + a(E.value), 9, x)) : u("", !0)])) : u("", !0)]));
92
- }
93
- });
94
- //#endregion
95
- export { C as default };
@@ -1,109 +0,0 @@
1
- import { Dt as e, P as t, S as n, c as r, d as i, g as a, h as o, j as s, k as c, kt as l, l as u, r as d, rt as f, s as p, u as m, v as h } from "./vue.runtime.esm-bundler-D9JUcKrV.js";
2
- import { V as g, h as _ } from "./keys-C3P1yxnr.js";
3
- import { t as v } from "./useI18n-CL6RfPzK.js";
4
- import { t as y } from "./createLucideIcon-Bvw1Zx56.js";
5
- import { t as b } from "./circle-alert-CJDW5LZo.js";
6
- import { t as x } from "./info-DybAwcA3.js";
7
- import { n as S, t as C } from "./useScrollToBlock-CdI8fGqt.js";
8
- import { t as w } from "./triangle-alert-DxnFj4-B.js";
9
- var T = y("arrow-right", [["path", {
10
- d: "M5 12h14",
11
- key: "1ays0h"
12
- }], ["path", {
13
- d: "m12 5 7 7-7 7",
14
- key: "xquz4c"
15
- }]]), E = y("wrench", [["path", {
16
- d: "M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",
17
- key: "1ngwbx"
18
- }]]), D = { class: "tpl:flex tpl:flex-col tpl:gap-4 tpl:p-4" }, O = { class: "tpl:flex tpl:items-center tpl:gap-2" }, k = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, A = ["title"], j = {
19
- key: 0,
20
- class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
21
- }, M = {
22
- key: 1,
23
- class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
24
- }, N = { class: "tpl:ml-auto tpl:font-normal tpl:opacity-70" }, P = {
25
- key: 1,
26
- class: "tpl:m-0 tpl:mb-3 tpl:flex tpl:list-none tpl:flex-col tpl:gap-2 tpl:p-0"
27
- }, F = { class: "tpl:m-0 tpl:mb-2 tpl:text-xs tpl:text-[var(--tpl-text)]" }, I = { class: "tpl:m-0 tpl:mb-2 tpl:font-mono tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, L = { class: "tpl:flex tpl:gap-1.5" }, R = ["onClick"], z = ["title", "onClick"], B = /* @__PURE__ */ h({
28
- __name: "IssuesPanel",
29
- setup(h) {
30
- let { t: y, format: B } = v(), V = n(g, null), H = n(_, null), U = C(), W = p(() => (V?.issues.value ?? []).filter((e) => e.severity === "error")), G = p(() => (V?.issues.value ?? []).filter((e) => e.severity === "warning")), K = p(() => (V?.issues.value ?? []).filter((e) => e.severity === "info")), q = p(() => W.value.length + G.value.length + K.value.length);
31
- function J(e) {
32
- H && e.blockId && (H.selectBlock(e.blockId), U(e.blockId));
33
- }
34
- function Y(e) {
35
- V?.applyFix(e);
36
- }
37
- return (n, p) => (c(), i("div", D, [r("header", O, [
38
- a(f(S), {
39
- size: 16,
40
- "stroke-width": 1.5
41
- }),
42
- r("h3", k, l(f(y).issues.panelTitle), 1),
43
- q.value > 0 ? (c(), i("span", {
44
- key: 0,
45
- class: "tpl:ml-auto tpl:rounded-full tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-0.5 tpl:text-[11px] tpl:text-[var(--tpl-text-muted)]",
46
- title: f(B)(f(y).issues.issueCountTooltip, { count: q.value })
47
- }, l(q.value), 9, A)) : m("", !0)
48
- ]), !f(V) || f(V).unavailable.value ? (c(), i("div", j)) : q.value === 0 ? (c(), i("div", M, l(f(y).issues.emptyState), 1)) : (c(!0), i(d, { key: 2 }, s([
49
- {
50
- key: "errors",
51
- title: f(y).issues.groupErrors,
52
- icon: f(b),
53
- items: W.value,
54
- tone: "tpl:text-[var(--tpl-danger)]"
55
- },
56
- {
57
- key: "warnings",
58
- title: f(y).issues.groupWarnings,
59
- icon: f(w),
60
- items: G.value,
61
- tone: "tpl:text-[var(--tpl-warning)]"
62
- },
63
- {
64
- key: "info",
65
- title: f(y).issues.groupInfo,
66
- icon: f(x),
67
- items: K.value,
68
- tone: "tpl:text-[var(--tpl-text-muted)]"
69
- }
70
- ], (n) => (c(), i("section", { key: n.key }, [n.items.length > 0 ? (c(), i("header", {
71
- key: 0,
72
- class: e(["tpl:mb-2 tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-[11px] tpl:font-semibold tpl:uppercase tpl:tracking-wide", n.tone])
73
- }, [
74
- (c(), u(t(n.icon), {
75
- size: 12,
76
- "stroke-width": 2
77
- })),
78
- o(" " + l(n.title) + " ", 1),
79
- r("span", N, l(n.items.length), 1)
80
- ], 2)) : m("", !0), n.items.length > 0 ? (c(), i("ul", P, [(c(!0), i(d, null, s(n.items, (e) => (c(), i("li", {
81
- key: `${e.ruleId}-${e.blockId ?? "template"}`,
82
- class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3"
83
- }, [
84
- r("p", F, l(e.message), 1),
85
- r("p", I, l(e.ruleId), 1),
86
- r("div", L, [e.blockId ? (c(), i("button", {
87
- key: 0,
88
- type: "button",
89
- "data-testid": "issue-jump",
90
- class: "tpl:flex tpl:items-center tpl:gap-1 tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-1 tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text)]",
91
- onClick: (t) => J(e)
92
- }, [a(f(T), {
93
- size: 10,
94
- "stroke-width": 2
95
- }), o(" " + l(f(y).issues.jump), 1)], 8, R)) : m("", !0), e.fix ? (c(), i("button", {
96
- key: 1,
97
- type: "button",
98
- class: "tpl:flex tpl:items-center tpl:gap-1 tpl:rounded-md tpl:bg-[var(--tpl-primary)] tpl:px-2 tpl:py-1 tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-on-primary)]",
99
- title: e.fix.description,
100
- onClick: (t) => Y(e)
101
- }, [a(f(E), {
102
- size: 10,
103
- "stroke-width": 2
104
- }), o(" " + l(f(y).issues.fix), 1)], 8, z)) : m("", !0)])
105
- ]))), 128))])) : m("", !0)]))), 128))]));
106
- }
107
- });
108
- //#endregion
109
- export { B as default };