@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
@@ -1,257 +0,0 @@
1
- import { Dt as e, L as t, Ot as n, P as r, S as i, X as a, c as o, d as s, g as c, h as l, j as u, k as d, kt as f, l as p, r as m, rt as h, u as g, v as _, z as ee } from "./vue.runtime.esm-bundler-D9JUcKrV.js";
2
- import { t as te } from "./runtime-dom.esm-bundler-BuG03jBM.js";
3
- import { B as ne, E as re, J as v, h as y } from "./keys-C3P1yxnr.js";
4
- import { t as b } from "./createLucideIcon-Bvw1Zx56.js";
5
- import { t as ie } from "./chevron-down-a-fb_Ijn.js";
6
- import { t as x } from "./circle-alert-CJDW5LZo.js";
7
- import { n as ae, t as S } from "./refresh-cw-C8SBuPdg.js";
8
- import { t as C } from "./info-DybAwcA3.js";
9
- import { t as w } from "./loader-circle-t-SVgmJ3.js";
10
- import { t as T } from "./shield-check-D0dMaHtE.js";
11
- import { t as E } from "./sparkles-Dy2BJjiX.js";
12
- import { t as oe } from "./triangle-alert-DxnFj4-B.js";
13
- import { t as se } from "./x-DJOd1hS4.js";
14
- import { t as ce } from "./LoadingTrack-SQXoZVf2.js";
15
- import { t as D } from "./_plugin-vue_export-helper-B3ysoDQm.js";
16
- import { n as le } from "./useCloudI18n-BKoiYsWZ.js";
17
- var O = b("shield-x", [
18
- ["path", {
19
- d: "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",
20
- key: "oel41y"
21
- }],
22
- ["path", {
23
- d: "m14.5 9.5-5 5",
24
- key: "17q4r4"
25
- }],
26
- ["path", {
27
- d: "m9.5 9.5 5 5",
28
- key: "18nt4w"
29
- }]
30
- ]), k = b("zap", [["path", {
31
- d: "M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z",
32
- key: "1v7up4"
33
- }]]);
34
- //#endregion
35
- //#region src/cloud/utils/scoringStyles.ts
36
- function A(e) {
37
- return e >= 80 ? "var(--tpl-success)" : e >= 60 ? "var(--tpl-warning)" : "var(--tpl-danger)";
38
- }
39
- function j(e) {
40
- return e >= 80 ? "var(--tpl-success-light)" : e >= 60 ? "var(--tpl-warning-light)" : "var(--tpl-danger-light)";
41
- }
42
- function M(e) {
43
- return e === "high" ? "var(--tpl-danger)" : e === "medium" ? "var(--tpl-warning)" : "var(--tpl-text-muted)";
44
- }
45
- function N(e) {
46
- return e === "high" ? "var(--tpl-danger-light)" : e === "medium" ? "var(--tpl-warning-light)" : "var(--tpl-bg-hover)";
47
- }
48
- //#endregion
49
- //#region src/cloud/components/TemplateScoringPanel.vue?vue&type=script&setup=true&lang.ts
50
- var P = {
51
- key: 0,
52
- class: "tpl-scoring-panel tpl:absolute tpl:top-14 tpl:right-0 tpl:bottom-0 tpl:flex tpl:w-[360px] tpl:flex-col tpl:border-l tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)]"
53
- }, F = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3" }, I = { class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-primary)]" }, L = { class: "tpl:flex tpl:items-center tpl:gap-1" }, R = ["title"], z = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, B = {
54
- key: 0,
55
- class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:text-center"
56
- }, V = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, H = {
57
- key: 1,
58
- class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:text-center"
59
- }, U = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, W = {
60
- key: 2,
61
- class: "tpl:flex tpl:flex-col tpl:gap-4"
62
- }, ue = { class: "tpl:text-xs tpl:font-medium tpl:uppercase tpl:tracking-wider tpl:text-[var(--tpl-text-muted)]" }, de = {
63
- key: 0,
64
- class: "tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
65
- }, fe = {
66
- key: 0,
67
- class: "tpl:flex tpl:items-start tpl:gap-2 tpl:rounded-lg tpl:px-3 tpl:py-2 tpl:text-xs tpl:bg-[var(--tpl-danger-light)] tpl:text-[var(--tpl-danger)]"
68
- }, pe = ["onClick"], me = { class: "tpl:flex-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, he = {
69
- key: 0,
70
- class: "tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]"
71
- }, ge = {
72
- key: 0,
73
- class: "tpl:border-t tpl:border-[var(--tpl-border)]"
74
- }, _e = {
75
- key: 0,
76
- class: "tpl:px-3 tpl:py-3 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
77
- }, ve = { class: "tpl:flex tpl:items-start tpl:gap-2" }, ye = { class: "tpl:flex-1 tpl:min-w-0" }, be = { class: "tpl:flex tpl:items-start tpl:gap-1.5" }, xe = { class: "tpl:text-xs tpl:leading-snug tpl:text-[var(--tpl-text)]" }, Se = {
78
- key: 0,
79
- class: "tpl:mt-1 tpl:text-[11px] tpl:leading-snug tpl:text-[var(--tpl-text-dim)]"
80
- }, Ce = {
81
- key: 1,
82
- class: "tpl:mt-2 tpl:flex tpl:justify-center"
83
- }, we = ["disabled", "onClick"], Te = {
84
- key: 0,
85
- class: "tpl:mt-1.5 tpl:text-[11px] tpl:text-[var(--tpl-danger)]"
86
- }, Ee = {
87
- key: 3,
88
- class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:text-center"
89
- }, De = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Oe = { class: "tpl:m-0 tpl:px-4 tpl:pb-2 tpl:pt-2 tpl:text-center tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, G = /*#__PURE__*/ D(/* @__PURE__ */ _({
90
- __name: "TemplateScoringPanel",
91
- props: { visible: { type: Boolean } },
92
- emits: ["close"],
93
- setup(_, { emit: b }) {
94
- let D = _, G = b, { t: K } = le(), q = v(y, "TemplateScoringPanel"), J = v(ne, "TemplateScoringPanel"), Y = i(re, []), X = a({
95
- spam: !0,
96
- readability: !0,
97
- accessibility: !0,
98
- bestPractices: !0
99
- });
100
- function ke(e) {
101
- X.value[e] = !X.value[e];
102
- }
103
- let Z = [
104
- "spam",
105
- "readability",
106
- "accessibility",
107
- "bestPractices"
108
- ], Ae = {
109
- spam: O,
110
- readability: ae,
111
- accessibility: E,
112
- bestPractices: k
113
- };
114
- function Q() {
115
- J.score(q.content.value, Y);
116
- }
117
- t(() => D.visible, (e) => {
118
- e && !J.scoringResult.value && !J.isScoring.value && Q();
119
- });
120
- async function je(e) {
121
- if (!e.blockId) return;
122
- let t = q.content.value.blocks.find((t) => t.id === e.blockId);
123
- if (!t) return;
124
- let n = t.content;
125
- if (!n) return;
126
- let r = await J.fixFinding(n, e, Y);
127
- r && (q.updateBlock(e.blockId, { content: r }), J.removeFinding(e.category, e.id));
128
- }
129
- function $() {
130
- return J.scoringResult.value ? Z.reduce((e, t) => e + (J.scoringResult.value?.categories[t]?.findings.length ?? 0), 0) : 0;
131
- }
132
- return (t, i) => (d(), p(te, {
133
- "enter-active-class": "tpl-scoring-slide-enter-active",
134
- "enter-from-class": "tpl:translate-x-full",
135
- "enter-to-class": "tpl:translate-x-0",
136
- "leave-active-class": "tpl-scoring-slide-leave-active",
137
- "leave-from-class": "tpl:translate-x-0",
138
- "leave-to-class": "tpl:translate-x-full"
139
- }, {
140
- default: ee(() => [_.visible ? (d(), s("div", P, [o("div", F, [o("div", I, [c(h(T), {
141
- size: 13,
142
- "stroke-width": 2
143
- }), o("span", null, f(h(K).scoring.title), 1)]), o("div", L, [h(J).scoringResult.value && !h(J).isScoring.value ? (d(), s("button", {
144
- key: 0,
145
- class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:text-[var(--tpl-text-muted)]",
146
- title: h(K).scoring.rescore,
147
- onClick: i[0] ||= (e) => Q()
148
- }, [c(h(S), {
149
- size: 14,
150
- "stroke-width": 2
151
- })], 8, R)) : g("", !0), o("button", {
152
- class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:text-[var(--tpl-text-muted)]",
153
- onClick: i[1] ||= (e) => G("close")
154
- }, [c(h(se), {
155
- size: 14,
156
- "stroke-width": 2
157
- })])])]), o("div", z, [h(J).isScoring.value ? (d(), s("div", B, [o("p", V, f(h(K).scoring.scoring), 1), c(ce, { class: "tpl:w-3/4" })])) : h(J).error.value && !h(J).scoringResult.value ? (d(), s("div", H, [
158
- c(h(x), {
159
- size: 32,
160
- "stroke-width": 1.5,
161
- class: "tpl:text-[var(--tpl-danger)]"
162
- }),
163
- o("p", U, f(h(K).scoring.error), 1),
164
- o("button", {
165
- class: "tpl:mt-2 tpl:inline-flex tpl:items-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-muted)]",
166
- onClick: i[2] ||= (e) => Q()
167
- }, [c(h(S), {
168
- size: 12,
169
- "stroke-width": 2
170
- }), l(" " + f(h(K).scoring.rescore), 1)])
171
- ])) : h(J).scoringResult.value ? (d(), s("div", W, [
172
- o("div", {
173
- class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-2 tpl:rounded-[var(--tpl-radius)] tpl:p-5",
174
- style: n({ backgroundColor: h(j)(h(J).scoringResult.value.score) })
175
- }, [
176
- o("span", {
177
- class: "tpl:text-4xl tpl:font-bold tpl:tabular-nums",
178
- style: n({ color: h(A)(h(J).scoringResult.value.score) })
179
- }, f(h(J).scoringResult.value.score), 5),
180
- o("span", ue, f(h(K).scoring.overallScore), 1),
181
- $() > 0 ? (d(), s("span", de, f($()) + " " + f(h(K).scoring.findings), 1)) : g("", !0)
182
- ], 4),
183
- h(J).fixError.value ? (d(), s("div", fe, [c(h(x), {
184
- size: 14,
185
- "stroke-width": 2,
186
- class: "tpl:mt-0.5 tpl:shrink-0"
187
- }), o("span", null, f(h(K).scoring.fixError), 1)])) : g("", !0),
188
- (d(), s(m, null, u(Z, (t) => o("div", {
189
- key: t,
190
- class: "tpl:overflow-hidden tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)]"
191
- }, [o("button", {
192
- class: "tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-center tpl:gap-2.5 tpl:px-3 tpl:py-2.5 tpl:text-left tpl:transition-colors tpl:bg-[var(--tpl-bg)]",
193
- onClick: (e) => ke(t)
194
- }, [
195
- (d(), p(r(Ae[t]), {
196
- size: 14,
197
- "stroke-width": 2,
198
- style: n({ color: h(A)(h(J).scoringResult.value.categories[t].score) })
199
- }, null, 8, ["style"])),
200
- o("span", me, f(h(K).scoring.categories[t]), 1),
201
- o("span", {
202
- class: "tpl:rounded-full tpl:px-2 tpl:py-0.5 tpl:text-xs tpl:font-semibold tpl:tabular-nums",
203
- style: n({
204
- color: h(A)(h(J).scoringResult.value.categories[t].score),
205
- backgroundColor: h(j)(h(J).scoringResult.value.categories[t].score)
206
- })
207
- }, f(h(J).scoringResult.value.categories[t].score), 5),
208
- h(J).scoringResult.value.categories[t].findings.length > 0 ? (d(), s("span", he, f(h(J).scoringResult.value.categories[t].findings.length), 1)) : g("", !0),
209
- c(h(ie), {
210
- size: 12,
211
- "stroke-width": 2,
212
- class: e(["tpl:transition-transform tpl:duration-200 tpl:text-[var(--tpl-text-dim)]", X.value[t] ? "tpl:rotate-0" : "tpl:-rotate-90"])
213
- }, null, 8, ["class"])
214
- ], 8, pe), X.value[t] ? (d(), s("div", ge, [h(J).scoringResult.value.categories[t].findings.length === 0 ? (d(), s("div", _e, f(h(K).scoring.noFindings), 1)) : g("", !0), (d(!0), s(m, null, u(h(J).scoringResult.value.categories[t].findings, (e) => (d(), s("div", {
215
- key: e.id,
216
- class: "tpl:border-t tpl:px-3 tpl:py-2.5 tpl:first:border-t-0 tpl:border-[var(--tpl-border-light)]"
217
- }, [o("div", ve, [(d(), p(r(e.severity === "high" ? h(x) : e.severity === "medium" ? h(oe) : h(C)), {
218
- size: 13,
219
- "stroke-width": 2,
220
- class: "tpl:mt-0.5 tpl:shrink-0",
221
- style: n({ color: h(M)(e.severity) })
222
- }, null, 8, ["style"])), o("div", ye, [
223
- o("div", be, [o("span", {
224
- class: "tpl:mt-0.5 tpl:shrink-0 tpl:rounded tpl:px-1 tpl:py-px tpl:text-[10px] tpl:font-medium tpl:leading-tight",
225
- style: n({
226
- color: h(M)(e.severity),
227
- backgroundColor: h(N)(e.severity)
228
- })
229
- }, f(h(K).scoring.severity[e.severity]), 5), o("span", xe, f(e.message), 1)]),
230
- e.suggestion ? (d(), s("p", Se, f(e.suggestion), 1)) : g("", !0),
231
- e.blockId ? (d(), s("div", Ce, [o("button", {
232
- class: "tpl-scoring-fix-btn tpl:inline-flex tpl:items-center tpl:gap-1.5 tpl:rounded tpl:border tpl:px-3 tpl:py-1.5 tpl:text-[11px] tpl:font-medium tpl:transition-all tpl:disabled:opacity-50 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-primary)]",
233
- style: { "background-color": "transparent" },
234
- disabled: h(J).fixingFindingId.value !== null,
235
- onClick: (t) => je(e)
236
- }, [h(J).fixingFindingId.value === e.id ? (d(), p(h(w), {
237
- key: 0,
238
- class: "tpl-spinner",
239
- size: 11,
240
- "stroke-width": 2
241
- })) : (d(), p(h(E), {
242
- key: 1,
243
- size: 11,
244
- "stroke-width": 2
245
- })), l(" " + f(h(J).fixingFindingId.value === e.id ? h(K).scoring.fixing : h(K).scoring.fix), 1)], 8, we), h(J).fixError.value ? (d(), s("p", Te, f(h(J).fixError.value), 1)) : g("", !0)])) : g("", !0)
246
- ])])]))), 128))])) : g("", !0)])), 64))
247
- ])) : (d(), s("div", Ee, [c(h(T), {
248
- size: 32,
249
- "stroke-width": 1.5,
250
- class: "tpl:text-[var(--tpl-text-dim)]"
251
- }), o("p", De, f(h(K).scoring.emptyState), 1)])), o("p", Oe, f(h(K).aiMenu.disclaimer), 1)])])) : g("", !0)]),
252
- _: 1
253
- }));
254
- }
255
- }), [["__scopeId", "data-v-1b4ea13b"]]);
256
- //#endregion
257
- export { G as default };
@@ -1,198 +0,0 @@
1
- import { Dt as e, G as t, Ot as n, S as r, c as i, d as a, g as o, h as s, i as c, k as l, kt as u, l as d, r as f, rt as p, s as m, u as h, v as g } from "./vue.runtime.esm-bundler-D9JUcKrV.js";
2
- import { C as ee, S as te } from "./useEditorCore-DdkQuTHl.js";
3
- import { K as ne, O as re, U as _, w as v } from "./keys-C3P1yxnr.js";
4
- import { t as y } from "./useI18n-CL6RfPzK.js";
5
- import { n as b } from "./usePopoverPosition-CWxaIWd3.js";
6
- import { a as ie, i as x, n as S, r as ae, t as oe } from "./RichTextEditorContent-BmTcV2-a.js";
7
- import { o as se, s as ce } from "./MergeTagInput-RytOlh1A.js";
8
- import { t as le } from "./loader-circle-t-SVgmJ3.js";
9
- //#region src/components/blocks/TitleEditor.vue?vue&type=script&setup=true&lang.ts
10
- var C = { class: "tpl-text-editor-wrapper tpl:relative" }, w = ["data-tpl-theme", "aria-label"], T = ["aria-label", "title"], E = ["aria-label", "title"], D = ["aria-label", "title"], O = {
11
- key: 0,
12
- class: "tpl:mx-1.5 tpl:h-6 tpl:w-px tpl:bg-[var(--tpl-border)]"
13
- }, k = ["aria-label", "title"], A = {
14
- key: 2,
15
- class: "tpl:mx-1.5 tpl:h-6 tpl:w-px tpl:bg-[var(--tpl-border)]"
16
- }, j = ["aria-label", "title"], M = {
17
- key: 1,
18
- class: "tpl:flex tpl:items-center tpl:gap-2 tpl:px-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
19
- }, N = /* @__PURE__ */ g({
20
- __name: "TitleEditor",
21
- props: {
22
- block: {},
23
- toolbarPosition: {}
24
- },
25
- emits: ["done"],
26
- setup(g, { emit: N }) {
27
- let P = g, F = N, I = r(_, null), L = r(ne, null), R = b(), z = r(re, null), B = r(v, null), V = m(() => (z?.isOpen.value ?? !1) || (B?.isOpen.value ?? !1)), { t: H } = y(), { editor: U, EditorContent: W, isLoading: G, initError: ue, retry: de, showLinkDialog: fe, linkUrl: K, linkColor: q, linkDialogRef: J, canRequestMergeTag: Y, canInsertLogicTag: X, openLinkDialog: Z, insertLink: pe, removeLink: me, closeLinkDialog: he, handleLinkKeydown: ge, handleAddMergeTag: Q, handleAddLogicTag: $ } = te({
28
- blockId: () => P.block.id,
29
- blockContent: () => P.block.content,
30
- onDone: () => F("done"),
31
- editorName: "TitleEditor",
32
- async loadExtensions({ mergeTags: e, syntax: t, triggerChar: n, autocompleteEnabled: r, suggestionEmptyText: i }) {
33
- let [{ Editor: a, EditorContent: o }, { default: s }, { default: c }, { MergeTagNode: l, MergeTagSuggestion: u, LogicMergeTagNode: d, LineBoundaryKeys: f }] = await Promise.all([
34
- import("./dist-BxFbxpgW.js").then((e) => e.r),
35
- import("./dist-DkcA6epL.js"),
36
- import("./dist-C1tsW_99.js"),
37
- import("./extensions-Mf8iHey9.js")
38
- ]);
39
- return {
40
- TiptapEditor: a,
41
- EC: o,
42
- extensions: [
43
- s.configure({
44
- heading: !1,
45
- codeBlock: !1,
46
- blockquote: !1,
47
- horizontalRule: !1,
48
- bulletList: !1,
49
- orderedList: !1,
50
- listItem: !1,
51
- strike: !1,
52
- link: !1
53
- }),
54
- ee(c).configure({
55
- openOnClick: !1,
56
- HTMLAttributes: {
57
- target: "_blank",
58
- rel: "noopener noreferrer"
59
- }
60
- }),
61
- l.configure({
62
- mergeTags: e,
63
- syntax: t
64
- }),
65
- d.configure({ syntax: t }),
66
- f,
67
- ...r && n && e.length > 0 ? [u.configure({
68
- mergeTags: e,
69
- char: n,
70
- emptyText: i,
71
- popoverRoot: R
72
- })] : []
73
- ]
74
- };
75
- }
76
- });
77
- return (r, m) => (l(), a("div", C, [
78
- p(R) && !V.value ? (l(), d(c, {
79
- key: 0,
80
- to: p(R)
81
- }, [i("div", {
82
- "data-tpl-theme": p(L),
83
- role: "toolbar",
84
- "aria-label": p(H).titleEditor.toolbar,
85
- class: "tpl tpl-text-toolbar tpl:absolute tpl:flex tpl:items-center tpl:gap-1 tpl:rounded-lg tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2 tpl:shadow-[var(--tpl-shadow-lg)]",
86
- style: n({
87
- ...p(I),
88
- top: `${g.toolbarPosition.top}px`,
89
- left: `${g.toolbarPosition.left}px`,
90
- transform: "translateY(-100%)"
91
- })
92
- }, [!p(G) && p(U) ? (l(), a(f, { key: 0 }, [
93
- i("button", {
94
- type: "button",
95
- class: e(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": p(U)?.isActive("bold") }]),
96
- "aria-label": p(H).titleEditor.bold,
97
- title: p(H).titleEditor.bold,
98
- onClick: m[0] ||= (e) => p(U)?.chain().focus().toggleBold().run()
99
- }, [o(p(ie), {
100
- size: 16,
101
- "stroke-width": 2.5
102
- })], 10, T),
103
- i("button", {
104
- type: "button",
105
- class: e(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": p(U)?.isActive("italic") }]),
106
- "aria-label": p(H).titleEditor.italic,
107
- title: p(H).titleEditor.italic,
108
- onClick: m[1] ||= (e) => p(U)?.chain().focus().toggleItalic().run()
109
- }, [o(p(x), {
110
- size: 16,
111
- "stroke-width": 2
112
- })], 10, E),
113
- m[8] ||= i("span", {
114
- class: "tpl:mx-1.5 tpl:h-6 tpl:w-px tpl:bg-[var(--tpl-border)]",
115
- "aria-hidden": "true"
116
- }, null, -1),
117
- i("button", {
118
- type: "button",
119
- class: e(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": p(U)?.isActive("link") }]),
120
- "aria-label": p(H).titleEditor.addLink,
121
- title: p(H).titleEditor.addLink,
122
- onClick: m[2] ||= (...e) => p(Z) && p(Z)(...e)
123
- }, [o(p(ae), {
124
- size: 16,
125
- "stroke-width": 2
126
- })], 10, D),
127
- p(Y) ? (l(), a("span", O)) : h("", !0),
128
- p(Y) ? (l(), a("button", {
129
- key: 1,
130
- type: "button",
131
- class: "tpl:flex tpl:h-8 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded tpl:border-none tpl:bg-transparent tpl:px-2.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)] tpl:transition-all tpl:hover:bg-[var(--tpl-bg-active)]",
132
- "aria-label": p(H).mergeTag.insert,
133
- title: p(H).mergeTag.insert,
134
- onClick: m[3] ||= (...e) => p(Q) && p(Q)(...e)
135
- }, [o(p(se), {
136
- size: 16,
137
- "stroke-width": 2
138
- }), s(" " + u(p(H).mergeTag.insertShort), 1)], 8, k)) : h("", !0),
139
- p(X) ? (l(), a("span", A)) : h("", !0),
140
- p(X) ? (l(), a("button", {
141
- key: 3,
142
- type: "button",
143
- class: "tpl:flex tpl:h-8 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded tpl:border-none tpl:bg-transparent tpl:px-2.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)] tpl:transition-all tpl:hover:bg-[var(--tpl-bg-active)]",
144
- "aria-label": p(H).logicTag.insert,
145
- title: p(H).logicTag.insert,
146
- "data-testid": "insert-logic-button",
147
- onClick: m[4] ||= (...e) => p($) && p($)(...e)
148
- }, [o(p(ce), {
149
- size: 16,
150
- "stroke-width": 2
151
- }), s(" " + u(p(H).logicTag.insertShort), 1)], 8, j)) : h("", !0)
152
- ], 64)) : (l(), a("div", M, [o(p(le), {
153
- class: "tpl-spinner",
154
- size: 14,
155
- "stroke-width": 2
156
- }), s(" " + u(p(H).errors.editorLoading), 1)]))], 12, w)], 8, ["to"])) : h("", !0),
157
- o(oe, {
158
- editor: p(U),
159
- "editor-content": p(W),
160
- "is-loading": p(G),
161
- "init-error": p(ue),
162
- onRetry: p(de)
163
- }, null, 8, [
164
- "editor",
165
- "editor-content",
166
- "is-loading",
167
- "init-error",
168
- "onRetry"
169
- ]),
170
- o(S, {
171
- visible: p(fe),
172
- "is-editing-link": p(U)?.isActive("link") ?? !1,
173
- "dialog-ref": p(J),
174
- "onUpdate:dialogRef": m[5] ||= (e) => t(J) ? J.value = e : null,
175
- "link-url": p(K),
176
- "onUpdate:linkUrl": m[6] ||= (e) => t(K) ? K.value = e : null,
177
- "link-color": p(q),
178
- "onUpdate:linkColor": m[7] ||= (e) => t(q) ? q.value = e : null,
179
- onClose: p(he),
180
- onInsert: p(pe),
181
- onRemove: p(me),
182
- onKeydown: p(ge)
183
- }, null, 8, [
184
- "visible",
185
- "is-editing-link",
186
- "dialog-ref",
187
- "link-url",
188
- "link-color",
189
- "onClose",
190
- "onInsert",
191
- "onRemove",
192
- "onKeydown"
193
- ])
194
- ]));
195
- }
196
- });
197
- //#endregion
198
- export { N as default };
@@ -1,51 +0,0 @@
1
- import { M as e, Ot as t, S as n, X as r, c as i, d as a, g as o, i as s, k as c, l, rt as u, s as d, u as f, v as p, z as m } from "./vue.runtime.esm-bundler-D9JUcKrV.js";
2
- import { c as h, t as g } from "./runtime-dom.esm-bundler-BuG03jBM.js";
3
- import { D as _ } from "./useEditorCore-DdkQuTHl.js";
4
- import { K as v, U as y } from "./keys-C3P1yxnr.js";
5
- import { n as b } from "./usePopoverPosition-CWxaIWd3.js";
6
- //#region src/components/TplModal.vue?vue&type=script&setup=true&lang.ts
7
- var x = ["data-tpl-theme"], S = /* @__PURE__ */ p({
8
- __name: "TplModal",
9
- props: { visible: { type: Boolean } },
10
- emits: ["close", "keydown"],
11
- setup(p, { emit: S }) {
12
- let C = p, w = S, T = r(null), E = d(() => C.visible);
13
- _(T, E);
14
- let D = n(v), O = n(y, null), k = b();
15
- function A(e) {
16
- e.key === "Escape" && w("close"), w("keydown", e);
17
- }
18
- return (n, r) => u(k) ? (c(), l(s, {
19
- key: 0,
20
- to: u(k)
21
- }, [o(g, {
22
- "enter-active-class": "tpl:transition",
23
- "enter-from-class": "tpl:opacity-0",
24
- "enter-to-class": "tpl:opacity-100",
25
- "leave-active-class": "tpl:transition tpl:duration-100",
26
- "leave-from-class": "tpl:opacity-100",
27
- "leave-to-class": "tpl:opacity-0"
28
- }, {
29
- default: m(() => [p.visible ? (c(), a("div", {
30
- key: 0,
31
- "data-tpl-theme": u(D),
32
- class: "tpl tpl:fixed tpl:inset-0 tpl:z-10 tpl:flex tpl:items-center tpl:justify-center tpl:p-4",
33
- style: t([{
34
- "background-color": "var(--tpl-overlay)",
35
- "backdrop-filter": "blur(8px)",
36
- "-webkit-backdrop-filter": "blur(8px)"
37
- }, u(O)]),
38
- onClick: r[1] ||= h((e) => w("close"), ["self"]),
39
- onKeydown: A
40
- }, [i("div", {
41
- ref_key: "dialogRef",
42
- ref: T,
43
- class: "tpl:flex tpl:h-full tpl:items-center tpl:justify-center",
44
- onClick: r[0] ||= h((e) => w("close"), ["self"])
45
- }, [e(n.$slots, "default")], 512)], 44, x)) : f("", !0)]),
46
- _: 3
47
- })], 8, ["to"])) : f("", !0);
48
- }
49
- });
50
- //#endregion
51
- export { S as t };
@@ -1,134 +0,0 @@
1
- import { A as e, I as t, M as n, j as r, k as i } from "./useEditorCore-DdkQuTHl.js";
2
- import { t as a } from "./createLucideIcon-Bvw1Zx56.js";
3
- var o = a("columns-3", [
4
- ["rect", {
5
- width: "18",
6
- height: "18",
7
- x: "3",
8
- y: "3",
9
- rx: "2",
10
- key: "afitv7"
11
- }],
12
- ["path", {
13
- d: "M9 3v18",
14
- key: "fh3hqa"
15
- }],
16
- ["path", {
17
- d: "M15 3v18",
18
- key: "14nvp0"
19
- }]
20
- ]), s = a("heading", [
21
- ["path", {
22
- d: "M6 12h12",
23
- key: "8npq4p"
24
- }],
25
- ["path", {
26
- d: "M6 20V4",
27
- key: "1w1bmo"
28
- }],
29
- ["path", {
30
- d: "M18 20V4",
31
- key: "o2hl4u"
32
- }]
33
- ]), c = a("minus", [["path", {
34
- d: "M5 12h14",
35
- key: "1ays0h"
36
- }]]), l = a("move-vertical", [
37
- ["path", {
38
- d: "M12 2v20",
39
- key: "t6zp3m"
40
- }],
41
- ["path", {
42
- d: "m8 18 4 4 4-4",
43
- key: "bh5tu3"
44
- }],
45
- ["path", {
46
- d: "m8 6 4-4 4 4",
47
- key: "ybng9g"
48
- }]
49
- ]), u = a("package", [
50
- ["path", {
51
- d: "M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",
52
- key: "1a0edw"
53
- }],
54
- ["path", {
55
- d: "M12 22V12",
56
- key: "d0xqtd"
57
- }],
58
- ["polyline", {
59
- points: "3.29 7 12 12 20.71 7",
60
- key: "ousv84"
61
- }],
62
- ["path", {
63
- d: "m7.5 4.27 9 5.15",
64
- key: "1c824w"
65
- }]
66
- ]), d = a("pilcrow", [
67
- ["path", {
68
- d: "M13 4v16",
69
- key: "8vvj80"
70
- }],
71
- ["path", {
72
- d: "M17 4v16",
73
- key: "7dpous"
74
- }],
75
- ["path", {
76
- d: "M19 4H9.5a4.5 4.5 0 0 0 0 9H13",
77
- key: "sh4n9v"
78
- }]
79
- ]), f = a("play", [["path", {
80
- d: "M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",
81
- key: "10ikf1"
82
- }]]), p = a("rectangle-horizontal", [["rect", {
83
- width: "20",
84
- height: "12",
85
- x: "2",
86
- y: "6",
87
- rx: "2",
88
- key: "9lu3g6"
89
- }]]), m = a("search", [["path", {
90
- d: "m21 21-4.34-4.34",
91
- key: "14j7rj"
92
- }], ["circle", {
93
- cx: "11",
94
- cy: "11",
95
- r: "8",
96
- key: "4ej97u"
97
- }]]), h = a("timer", [
98
- ["line", {
99
- x1: "10",
100
- x2: "14",
101
- y1: "2",
102
- y2: "2",
103
- key: "14vaq8"
104
- }],
105
- ["line", {
106
- x1: "12",
107
- x2: "15",
108
- y1: "14",
109
- y2: "11",
110
- key: "17fdiu"
111
- }],
112
- ["circle", {
113
- cx: "12",
114
- cy: "14",
115
- r: "8",
116
- key: "1e1u0o"
117
- }]
118
- ]), g = {
119
- section: o,
120
- title: s,
121
- paragraph: d,
122
- image: n,
123
- button: p,
124
- divider: c,
125
- video: f,
126
- social: e,
127
- menu: r,
128
- table: i,
129
- spacer: l,
130
- countdown: h,
131
- html: t
132
- };
133
- //#endregion
134
- export { c as i, m as n, u as r, g as t };